@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(_0x211c7d,_0x50e35c){const _0x3eb03c={_0x3ad1b0:0x8c,_0x53436d:0xd3,_0x231e89:0xdb,_0x5e48e3:0xf4,_0x4479f7:0xe1,_0x110979:0xc4,_0x13831a:0xd7,_0x525e0b:0xfa,_0x2fec5e:0xa9,_0x6b4a59:0x8e,_0xa888ed:0xa0,_0x1a6427:0x70,_0x3cce50:0x74,_0x362204:0x6a,_0x49df83:0x56,_0x15ceb8:0x88},_0x180b25={_0x5c006e:0x15f},_0x1b15c1={_0x4b5942:0xb};function _0x1d3cad(_0x116e89,_0x47a4de,_0x4aed03,_0x2c9f56){return _0x1ee8(_0x4aed03- -_0x1b15c1._0x4b5942,_0x47a4de);}const _0x342a22=_0x211c7d();function _0x24357f(_0x28c105,_0xc81dbb,_0x479bbb,_0x53845d){return _0x1ee8(_0x28c105- -_0x180b25._0x5c006e,_0x479bbb);}while(!![]){try{const _0x53ab55=parseInt(_0x1d3cad(0x77,0x7f,_0x3eb03c._0x3ad1b0,0x93))/0x1+parseInt(_0x24357f(-_0x3eb03c._0x53436d,-0xb8,-0xe6,-0xb2))/0x2+parseInt(_0x24357f(-0xd5,-_0x3eb03c._0x231e89,-_0x3eb03c._0x5e48e3,-0xed))/0x3*(-parseInt(_0x24357f(-_0x3eb03c._0x4479f7,-0xca,-0xd1,-_0x3eb03c._0x110979))/0x4)+-parseInt(_0x24357f(-0xe4,-0xc5,-_0x3eb03c._0x13831a,-_0x3eb03c._0x525e0b))/0x5+-parseInt(_0x1d3cad(_0x3eb03c._0x2fec5e,0x87,_0x3eb03c._0x6b4a59,_0x3eb03c._0xa888ed))/0x6+-parseInt(_0x1d3cad(_0x3eb03c._0x6b4a59,_0x3eb03c._0x1a6427,0x89,_0x3eb03c._0x3cce50))/0x7*(parseInt(_0x1d3cad(0x76,0x5d,0x71,_0x3eb03c._0x362204))/0x8)+-parseInt(_0x1d3cad(0x46,0x49,0x66,_0x3eb03c._0x49df83))/0x9*(-parseInt(_0x1d3cad(_0x3eb03c._0x15ceb8,0x85,0x69,0x68))/0xa);if(_0x53ab55===_0x50e35c)break;else _0x342a22['push'](_0x342a22['shift']());}catch(_0x88c629){_0x342a22['push'](_0x342a22['shift']());}}}(_0x4e56,0x44174));function _0x4e56(){const _0x76a8a9=['BwvKAwfFDhLWzq','Dg9VBhm','C3vTBwfYEq','BwfW','yxv0BW','AM9PBG','mti1mtq3meXPBKjTtq','mta1mZK0neDovK5wCq','zgf0ytO','mJq4nZztu1jnqwO','zwzMB3j0','C3rYAw5N','BwvZC2fNzq','Bwf4vg9Rzw5Z','DxnLCI12AxnPyMXL','DhjPBq','zMLSDgvY','C3bSAwnL','ChjVDMLKzxjtDgf0zq','C3rYAw5NAwz5','Aw5WDxrFC2nOzw1H','mZzlt1PlyLi','B2jQzwn0','nZyYmZy0A3nWtMHk','Dg9VBf91C2vFAwq','DhLWzq','zgf0yq','o2jHC2u2ncW','zgvZy3jPChrPB24','C3LZDgvT','zNvUy3rPB25Fy2fSBa','mJfAuejMuxy','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','yxnZAxn0yw50','mJmWmJKWyKzAq25x','C291CMnL','mJu4nJu0nLLxDwTLAG','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','B3v0Chv0rM9YBwf0','AxnbCNjHEq','ChvZAa','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','CMvHC29UAw5N','Aw5WDxrFAw1Hz2u','CM9Szq','BgvUz3rO','y29UDgvUDa','Bw9KzwW','BwvZC2fNzxm','DMLZAwjPBgL0Eq','C3rYDwn0DxjLzf9VDxrWDxq','DxnLCG','Aw5WDxrFDgv4Da','BMfTzq','B3v0Chv0x3rLEhq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB24','Dg9VBf91C2u','Dgv4Da','C3rYAwn0','C2nOzw1H','mti3mdm1u0rjsMXR','Aw1Hz2u','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','ntGWAMTbrLf3'];_0x4e56=function(){return _0x76a8a9;};return _0x4e56();}import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-QDOE7NWO.js';function _0x1ee8(_0x3083f5,_0x55b9e5){_0x3083f5=_0x3083f5-0x6c;const _0x4e566b=_0x4e56();let _0x1ee854=_0x4e566b[_0x3083f5];if(_0x1ee8['UuDTsW']===undefined){var _0x2f1173=function(_0xf04505){const _0x2454f5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c26e9='',_0x1dbb33='';for(let _0x270e30=0x0,_0x43b532,_0x13fd37,_0x34ef90=0x0;_0x13fd37=_0xf04505['charAt'](_0x34ef90++);~_0x13fd37&&(_0x43b532=_0x270e30%0x4?_0x43b532*0x40+_0x13fd37:_0x13fd37,_0x270e30++%0x4)?_0x1c26e9+=String['fromCharCode'](0xff&_0x43b532>>(-0x2*_0x270e30&0x6)):0x0){_0x13fd37=_0x2454f5['indexOf'](_0x13fd37);}for(let _0x53250e=0x0,_0x1ba206=_0x1c26e9['length'];_0x53250e<_0x1ba206;_0x53250e++){_0x1dbb33+='%'+('00'+_0x1c26e9['charCodeAt'](_0x53250e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1dbb33);};_0x1ee8['EZcBcR']=_0x2f1173,_0x1ee8['NiQelF']={},_0x1ee8['UuDTsW']=!![];}const _0x12b3c8=_0x4e566b[0x0],_0x29170f=_0x3083f5+_0x12b3c8,_0x36b997=_0x1ee8['NiQelF'][_0x29170f];return!_0x36b997?(_0x1ee854=_0x1ee8['EZcBcR'](_0x1ee854),_0x1ee8['NiQelF'][_0x29170f]=_0x1ee854):_0x1ee854=_0x36b997,_0x1ee854;}function systemToInstructions(_0x1c26e9){const _0x52dad1={_0x1e8058:0x219,_0x59914b:0x236,_0x11b131:0x1f2,_0x4213e0:0x1f4,_0x17df9e:0x20e,_0x4ee1b5:0xd4,_0x1a92aa:0xd6,_0x1c5e1c:0xe5},_0x5dffe6={_0x44472d:0x196},_0x8a1f11={_0x45903b:0x14e};function _0x585e2d(_0x1a53a2,_0x33273e,_0x2c1bf3,_0x326337){return _0x1ee8(_0x33273e- -_0x8a1f11._0x45903b,_0x326337);}function _0x28fb3a(_0x3b99b3,_0x298fe5,_0x478c41,_0xd4c38d){return _0x1ee8(_0x478c41-_0x5dffe6._0x44472d,_0x298fe5);}return normalizeContent(_0x1c26e9)[_0x28fb3a(_0x52dad1._0x1e8058,0x233,0x21b,_0x52dad1._0x59914b)](_0x1dbb33=>_0x1dbb33[_0x585e2d(-0xc7,-0xc0,-0xce,-0xa0)]===_0x585e2d(-0xf9,-0xe0,-0xd8,-0xc2))[_0x28fb3a(_0x52dad1._0x11b131,_0x52dad1._0x4213e0,_0x52dad1._0x17df9e,0x227)](_0x270e30=>_0x270e30[_0x28fb3a(0x1e6,0x1fd,0x204,0x1f0)])[_0x585e2d(-0xd3,-_0x52dad1._0x4ee1b5,-_0x52dad1._0x1a92aa,-_0x52dad1._0x1c5e1c)]('\x0a\x0a');}function pushUserContentMessage(_0x43b532,_0x13fd37,_0x34ef90){const _0x5818e6={_0x4c950f:0x7b,_0x4fae2f:0x75,_0x4f0847:0x275,_0x139531:0x27d},_0x3d83b9={_0x5bdf1f:0x301};function _0x30e501(_0x3e3680,_0x45ff0d,_0x2e7ef7,_0x216a84){return _0x1ee8(_0x45ff0d- -0x3d,_0x216a84);}if(_0x34ef90[_0x29558b(-0x25f,-0x275,-0x265,-0x253)]===0x0)return;function _0x29558b(_0x513d70,_0x1471c7,_0x3bfe0f,_0x5ef7d0){return _0x1ee8(_0x513d70- -_0x3d83b9._0x5bdf1f,_0x5ef7d0);}_0x43b532[_0x30e501(_0x5818e6._0x4c950f,0x60,0x78,_0x5818e6._0x4fae2f)]({'type':_0x29558b(-0x280,-0x28c,-_0x5818e6._0x4f0847,-_0x5818e6._0x139531),'role':_0x13fd37,'content':_0x34ef90});}function hasSerializableToolUse(_0x53250e){const _0x7a7b89={_0x22b7c1:0x4f,_0x1064e4:0x5d,_0x4c6f10:0x33,_0x193d30:0x162,_0x2259ee:0x14f},_0x313443={_0x367307:0xad},_0x2786b9={_0x4609c3:0x42};function _0x22c3bc(_0x3f7266,_0x4fc2d2,_0xfcdc58,_0x3f3037){return _0x1ee8(_0x4fc2d2- -_0x2786b9._0x4609c3,_0xfcdc58);}function _0x1fd8d6(_0x259704,_0x1b53ac,_0x51d0da,_0x2c7004){return _0x1ee8(_0x51d0da-_0x313443._0x367307,_0x259704);}return _0x53250e['id'][_0x22c3bc(_0x7a7b89._0x22b7c1,0x42,0x45,0x2d)]()['length']>0x0&&_0x53250e[_0x22c3bc(0x7b,0x68,0x53,_0x7a7b89._0x1064e4)][_0x22c3bc(0x5e,0x42,0x5c,_0x7a7b89._0x4c6f10)]()[_0x1fd8d6(0x12e,_0x7a7b89._0x193d30,_0x7a7b89._0x2259ee,0x13e)]>0x0;}function hasSerializableToolResult(_0x1ba206){const _0x5e98e0={_0x572ef9:0xb,_0x380cd4:0x11,_0x3c6b00:0x31e,_0x37c052:0x346,_0x3acadb:0x315},_0x230fd3={_0x5f90fa:0x7c};function _0x180b5d(_0x53848d,_0x37d16b,_0x5724fc,_0x50b426){return _0x1ee8(_0x37d16b-0x293,_0x5724fc);}function _0x44ff35(_0x34e82d,_0x3b4d5b,_0x4df6bd,_0x21cbe7){return _0x1ee8(_0x4df6bd- -_0x230fd3._0x5f90fa,_0x34e82d);}return _0x1ba206[_0x44ff35(0xb,-_0x5e98e0._0x572ef9,_0x5e98e0._0x380cd4,0x1f)]['trim']()[_0x180b5d(_0x5e98e0._0x3c6b00,0x335,_0x5e98e0._0x37c052,_0x5e98e0._0x3acadb)]>0x0;}function isResponseInputObject(_0x23422e){const _0x79e352={_0x23bc18:0x30},_0x42055b={_0x5d87b3:0xb7};function _0xdba564(_0x470c08,_0x15ddf3,_0x34c7bc,_0x3436fa){return _0x1ee8(_0x34c7bc-0x106,_0x3436fa);}function _0xb9cee0(_0x1e1ac3,_0x492eab,_0x5ba7a3,_0x15d04f){return _0x1ee8(_0x1e1ac3- -_0x42055b._0x5d87b3,_0x492eab);}if(typeof _0x23422e!==_0xb9cee0(-0x2c,-0x39,-0xf,-_0x79e352._0x23bc18)||_0x23422e===null||Array[_0xb9cee0(-0x1b,-0x10,-0x19,-0xa)](_0x23422e))return![];const _0x2f5c7d=_0x23422e;return typeof _0x2f5c7d['type']==='string';}function isImageToolResultBlock(_0x50275b){const _0x2fdf13={_0x1da6f0:0xbf,_0x461abf:0xad,_0x20a3a2:0xbc,_0x2e9810:0xb7,_0x142a46:0xb4,_0x4195ff:0x37,_0x5712a6:0x1c,_0x59aa8d:0x3c,_0x5f2ece:0x24,_0x30d9bc:0x23,_0x21394e:0x2e,_0x31fb15:0x4e,_0x2ec36b:0x26,_0x2cae21:0x46,_0x392cda:0x94,_0x3c4fdc:0xae,_0x502189:0x33},_0x5ac027={_0x15d509:0x52};function _0x42a60c(_0x6efe11,_0x352490,_0x2cc691,_0x1e17d7){return _0x1ee8(_0x2cc691-0x1f,_0x352490);}function _0x4dd281(_0x452798,_0x3998b4,_0x5a3b52,_0x332249){return _0x1ee8(_0x5a3b52- -_0x5ac027._0x15d509,_0x452798);}if(typeof _0x50275b!=='object'||_0x50275b===null||Array['isArray'](_0x50275b))return![];const _0x194442=_0x50275b;return _0x194442[_0x42a60c(_0x2fdf13._0x1da6f0,0xa0,_0x2fdf13._0x461abf,0xae)]==='image'&&_0x194442[_0x42a60c(0x97,_0x2fdf13._0x20a3a2,_0x2fdf13._0x2e9810,_0x2fdf13._0x142a46)]?.[_0x4dd281(_0x2fdf13._0x4195ff,_0x2fdf13._0x5712a6,_0x2fdf13._0x59aa8d,0x37)]==='base64'&&typeof _0x194442['source'][_0x4dd281(0x7,_0x2fdf13._0x5f2ece,_0x2fdf13._0x30d9bc,0x17)]===_0x4dd281(0x43,0x10,_0x2fdf13._0x21394e,_0x2fdf13._0x31fb15)&&typeof _0x194442[_0x4dd281(_0x2fdf13._0x2ec36b,0x44,_0x2fdf13._0x2cae21,0x2d)][_0x42a60c(0xaa,_0x2fdf13._0x392cda,_0x2fdf13._0x3c4fdc,0xc7)]===_0x4dd281(0x1d,0x1b,0x2e,_0x2fdf13._0x502189);}function getToolResultText(_0x278990){const _0x3e1949={_0x372581:0x262,_0x17d5dd:0x265,_0xfdd11e:0x242,_0x41d5cb:0x254,_0x403264:0x192,_0x29ee5a:0x199,_0x172e3e:0x1b9,_0x1d69b9:0x259,_0x5e3b10:0x247,_0x524a83:0x24b},_0x577608={_0xfe403a:0x27,_0x403de5:0x9,_0x1876f9:0xad,_0x1da0b5:0x99,_0x3483af:0x8e,_0x598b2b:0xa,_0x5a2396:0x7,_0x2a3a84:0x3},_0x1d0eeb={_0x621b7d:0x27e,_0x2ed336:0x82},_0x2e6f4a={_0x60456c:0x2ed};function _0x50e617(_0x150f6b,_0xbb7019,_0x57332e,_0x543b89){return _0x1ee8(_0x150f6b- -0x2e2,_0x57332e);}function _0x4e2592(_0xb61055,_0x3bf892,_0x3a6d86,_0x2e62da){return _0x1ee8(_0xb61055- -0x22b,_0x2e62da);}if(typeof _0x278990===_0x50e617(-_0x3e1949._0x372581,-_0x3e1949._0x17d5dd,-_0x3e1949._0xfdd11e,-_0x3e1949._0x41d5cb))return _0x278990;const _0x15bb63=_0x278990['filter'](_0x1c88a2=>{function _0xd1e770(_0x583504,_0x174c6a,_0x1702bc,_0x1a692e){return _0x50e617(_0x174c6a-_0x2e6f4a._0x60456c,_0x174c6a-0x9c,_0x1a692e,_0x1a692e-0x3b);}function _0x5015ee(_0x156042,_0x20ca1a,_0x1258c1,_0x266d99){return _0x50e617(_0x20ca1a-_0x1d0eeb._0x621b7d,_0x20ca1a-0x1b0,_0x1258c1,_0x266d99-_0x1d0eeb._0x2ed336);}return typeof _0x1c88a2===_0x5015ee(0x29,_0x577608._0xfe403a,_0x577608._0x403de5,0x9)&&_0x1c88a2!==null&&_0x1c88a2[_0xd1e770(_0x577608._0x1876f9,_0x577608._0x1da0b5,0xa2,_0x577608._0x3483af)]===_0x5015ee(-0x10,_0x577608._0x598b2b,_0x577608._0x5a2396,-_0x577608._0x2a3a84);})[_0x4e2592(-0x1b3,-0x1d2,-_0x3e1949._0x403264,-_0x3e1949._0x29ee5a)](_0x45e535=>_0x45e535[_0x50e617(-0x274,-0x26f,-0x27e,-0x26f)])[_0x4e2592(-0x1b1,-0x197,-0x19b,-_0x3e1949._0x172e3e)]('\x0a\x0a')['trim']();return _0x15bb63['length']>0x0?_0x15bb63:_0x50e617(-0x248,-_0x3e1949._0x1d69b9,-_0x3e1949._0x5e3b10,-_0x3e1949._0x524a83);}function getToolResultImages(_0x1cbf15){const _0x1e7ca9={_0x17bde3:0x6a,_0x25cf18:0x72,_0x36711d:0x76,_0x58f2a6:0x61},_0x342c66={_0x5a63ba:0x247};function _0xee9562(_0x11b3fe,_0x7493c6,_0x44d8d6,_0x17cd30){return _0x1ee8(_0x17cd30-_0x342c66._0x5a63ba,_0x11b3fe);}function _0x439c2e(_0x135aff,_0x523a99,_0x14c445,_0x281ebe){return _0x1ee8(_0x135aff- -0x1b,_0x14c445);}return Array[_0x439c2e(0x81,0x7a,0x9b,0x8f)](_0x1cbf15)?_0x1cbf15[_0x439c2e(_0x1e7ca9._0x17bde3,_0x1e7ca9._0x25cf18,_0x1e7ca9._0x36711d,_0x1e7ca9._0x58f2a6)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x113d2c){const _0x3e25cc={_0x15b910:0x61,_0x2ff6fb:0x5d,_0x44ae02:0x33d,_0x594d70:0x359},_0x29bf7e={_0x5a0eb1:0xea},_0x56e388={_0x20e7da:0x2b3};function _0x4adbb6(_0x19898a,_0x5a1d69,_0x132bfb,_0x23d7ca){return _0x1ee8(_0x23d7ca-_0x56e388._0x20e7da,_0x132bfb);}function _0x46fccd(_0x2ce50e,_0x282376,_0x4c6551,_0xdd737){return _0x1ee8(_0x4c6551- -_0x29bf7e._0x5a0eb1,_0xdd737);}return _0x113d2c[_0x46fccd(-_0x3e25cc._0x15b910,-_0x3e25cc._0x2ff6fb,-0x4b,-_0x3e25cc._0x2ff6fb)]?.[_0x4adbb6(0x36b,_0x3e25cc._0x44ae02,0x373,_0x3e25cc._0x594d70)]??'user-visible';}function createOpenAiResponsesReasoning(_0xa21856){const _0x575f72={_0x53f808:0x1ed,_0x184c1c:0x204,_0x5ad061:0x210,_0x3dca3f:0x205,_0x1df445:0x227,_0x647d2f:0x20a,_0x3a4a6a:0x20c,_0xd8344:0x209,_0x2f4c5b:0x28a,_0x10ab13:0x268,_0x2fcad3:0x254,_0x3b768f:0x23c},_0x436f04={_0x520314:0x2f2},_0x4e919a={_0x44570f:0x18d},_0x10ca1f=resolveOpenAiReasoningConfig(_0xa21856['reasoning']);if(!_0x10ca1f)return{};const _0x386a65={},_0xf6f55b=_0x10ca1f[_0x154081(_0x575f72._0x53f808,0x210,_0x575f72._0x184c1c,0x20a)]??(resolveReasoningVisibility(_0xa21856)===_0x154081(_0x575f72._0x5ad061,0x230,0x210,0x228)?_0x154081(0x219,0x221,0x206,_0x575f72._0x3dca3f):void 0x0);function _0x154081(_0x2ef43d,_0x3b949c,_0x2f3ef5,_0x2ddaa2){return _0x1ee8(_0x2f3ef5-_0x4e919a._0x44570f,_0x2ddaa2);}_0x10ca1f[_0x154081(_0x575f72._0x1df445,_0x575f72._0x647d2f,_0x575f72._0x3a4a6a,_0x575f72._0xd8344)]&&(_0x386a65[_0x58dce5(-0x26c,-0x28b,-0x273,-_0x575f72._0x2f4c5b)]=_0x10ca1f['effort']);_0xf6f55b&&(_0x386a65[_0x154081(0x217,0x1ee,0x204,0x223)]=_0xf6f55b);function _0x58dce5(_0x39c9b7,_0x1b1447,_0x4786be,_0x478310){return _0x1ee8(_0x4786be- -_0x436f04._0x520314,_0x39c9b7);}return{..._0x10ca1f[_0x154081(0x21c,0x20c,0x200,0x1df)]===![]?{}:{'include':[_0x58dce5(-0x23c,-_0x575f72._0x10ab13,-_0x575f72._0x2fcad3,-0x238)]},...Object['keys'](_0x386a65)[_0x154081(_0x575f72._0x3b768f,0x243,0x22f,0x216)]>0x0?{'reasoning':_0x386a65}:{}};}function pushAssistantProviderState(_0x3ca11f,_0x345bbd){const _0xad5d3d={_0x5c3218:0x21c,_0x5197ed:0x224,_0x2288d0:0x218,_0x5c8dad:0x76,_0x5d446e:0x85,_0x3dd099:0x256,_0x298123:0x22d,_0x5d1b9f:0x23e,_0x194775:0x222,_0x33d355:0x8c,_0x4ff432:0x8c,_0x40c61b:0x79,_0x2a826b:0x99,_0x46716b:0x5d,_0x155d26:0x6a},_0xf6a367={_0x199947:0x20};function _0x376889(_0x3aaf88,_0x5cd4eb,_0x2d340d,_0x7c60fb){return _0x1ee8(_0x5cd4eb- -_0xf6a367._0x199947,_0x7c60fb);}if(_0x345bbd[_0x358c7b(-_0xad5d3d._0x5c3218,-0x224,-_0xad5d3d._0x5197ed,-_0xad5d3d._0x2288d0)]!==_0x376889(0x84,_0xad5d3d._0x5c8dad,_0xad5d3d._0x5d446e,0x69))return![];const _0x55e8a4=_0x345bbd[_0x358c7b(-_0xad5d3d._0x3dd099,-_0xad5d3d._0x298123,-_0xad5d3d._0x5d1b9f,-_0xad5d3d._0x194775)]?.[_0x376889(0xa4,_0xad5d3d._0x33d355,_0xad5d3d._0x4ff432,0xa5)]??[];function _0x358c7b(_0x58529b,_0x517cda,_0x463db2,_0xff6111){return _0x1ee8(_0x463db2- -0x2c5,_0x517cda);}if(_0x55e8a4[_0x376889(_0xad5d3d._0x40c61b,0x82,0x92,_0xad5d3d._0x2a826b)]===0x0)return![];for(const _0x528dde of _0x55e8a4){isResponseInputObject(_0x528dde)&&_0x3ca11f[_0x376889(_0xad5d3d._0x46716b,0x7d,_0xad5d3d._0x155d26,0x94)](structuredClone(_0x528dde));}return!![];}function toOpenAiResponsesRequest(_0x2dc027){const _0x495f7a={_0xc20182:0x12,_0x30c129:0x7,_0x33f822:0x12,_0x440b31:0x17f,_0xe2337:0x175,_0x2dfcc8:0x139,_0x3bd9c3:0x14d,_0xfe0e49:0x148,_0x17be18:0x158,_0x4674d1:0x1b,_0x11c036:0x36,_0x365212:0x5,_0x53ae4f:0x16,_0x353c73:0x176,_0x54c1d0:0x171,_0x34af3d:0x13f,_0x191f68:0x150,_0x41e572:0x146,_0x39bce0:0x138,_0x5c330c:0x14b,_0x3fa950:0x143,_0x29036d:0x2e,_0x45e2e2:0x47,_0xcce9b3:0x32,_0x3499f1:0x10,_0xe60b17:0x4c,_0x351e9a:0xe,_0x11438e:0x14,_0x527791:0x1d,_0x10f739:0xf,_0x230182:0x15,_0x365fc9:0x8,_0x7a6a7f:0x2c,_0x324300:0x3,_0x2de2da:0x1a,_0x401878:0x2b,_0x4662b8:0x15f,_0x16c1ba:0x155,_0x4768fa:0x194,_0x3bd0ff:0x12b,_0x449c4e:0x154,_0x320f0b:0x6,_0x5e849f:0x12,_0x1aafe2:0x14a,_0x93ac4a:0x15b,_0x175c34:0x23,_0x428b11:0x122,_0x1d0e9a:0x15e,_0x20a7ec:0x138,_0x525873:0x13f,_0xb93180:0x13a,_0x5e3244:0xc,_0x4f7339:0x9,_0x184b08:0x1c,_0x223cfa:0x7,_0x2a641c:0x16d,_0x4e5aa3:0x159,_0x46016c:0x162,_0x1d5a68:0xe,_0x3946d9:0xc,_0x580e08:0xf,_0x242aad:0x26,_0x534fea:0x36,_0x3db935:0x17,_0x5b6942:0x20,_0x34ab27:0x17e,_0x52f741:0x18b,_0x50087a:0x16b,_0x42d41f:0x5,_0x8975f:0x134,_0x401465:0x13f,_0xb3aee7:0x158,_0x2283b6:0x166,_0x4e8292:0x151,_0x3d8fee:0x16c,_0xa76c17:0x168,_0x39905f:0x161,_0x236fd1:0x2e,_0x3e833f:0x18,_0x2ece0f:0x19,_0x510dff:0x10,_0x493b0a:0x1d,_0x58c28a:0x41,_0x5839df:0x129,_0xc4451d:0x166,_0x28e53c:0x137,_0x21de89:0x13c,_0x4f37dc:0x55,_0x34d630:0x49,_0x34aba2:0x3f,_0x4bc804:0x3,_0xc3edc4:0x17,_0x33deb2:0x19},_0x25e20a={_0x21df0a:0xb4,_0x15396c:0xbf,_0x3e0e02:0xb1,_0x4f3948:0x4d,_0x2a4412:0xf0,_0x487aeb:0xc3,_0x8e35a7:0xd6,_0x34b2f1:0x46,_0x13fce1:0x38,_0x6d815e:0x56},_0x5bb484={_0xadc78f:0x61,_0x42220b:0x14c},_0x492928=[];function _0x3666ce(_0x1d4b07,_0x1d7b5f,_0x111ede,_0x1aaba0){return _0x1ee8(_0x1aaba0- -0x1e3,_0x1d4b07);}for(const _0x2564f of _0x2dc027[_0x123fc8(-0x16,0x1,-0x11,_0x495f7a._0xc20182)]){if(pushAssistantProviderState(_0x492928,_0x2564f))continue;const _0xf25ce3=[];for(const _0xf768d7 of normalizeContent(_0x2564f[_0x123fc8(-_0x495f7a._0x30c129,-0x1,0x1e,0xf)])){if(_0xf768d7[_0x123fc8(-_0x495f7a._0x33f822,-0x16,-0x28,-0x8)]===_0x3666ce(-_0x495f7a._0x440b31,-0x160,-0x174,-_0x495f7a._0xe2337)){_0xf25ce3['push'](_0x2564f['role']===_0x3666ce(-0x133,-0x12e,-_0x495f7a._0x2dfcc8,-_0x495f7a._0x3bd9c3)?{'type':_0x3666ce(-_0x495f7a._0xfe0e49,-0x139,-_0x495f7a._0x17be18,-0x138),'text':_0xf768d7[_0x123fc8(-_0x495f7a._0x4674d1,-_0x495f7a._0x11c036,-0x36,-0x33)]}:{'type':_0x123fc8(0x1a,_0x495f7a._0x365212,_0x495f7a._0x53ae4f,-0x8),'text':_0xf768d7['text']});continue;}if(_0xf768d7[_0x3666ce(-0x16f,-0x15e,-0x172,-0x155)]===_0x3666ce(-_0x495f7a._0x353c73,-0x16f,-0x175,-_0x495f7a._0x54c1d0)){_0xf25ce3[_0x3666ce(-_0x495f7a._0x34af3d,-_0x495f7a._0x191f68,-0x131,-_0x495f7a._0x41e572)]({'type':_0x3666ce(-_0x495f7a._0x39bce0,-_0x495f7a._0x5c330c,-0x12a,-_0x495f7a._0x3fa950),'image_url':_0x123fc8(-_0x495f7a._0x29036d,-0x27,-_0x495f7a._0x45e2e2,-_0x495f7a._0xcce9b3)+_0xf768d7[_0x123fc8(-0x1f,-0xc,-0x1,_0x495f7a._0x3499f1)][_0x123fc8(-_0x495f7a._0xe60b17,-0x2f,-0x3e,-_0x495f7a._0x351e9a)]+_0x123fc8(-0x29,-_0x495f7a._0x11438e,-_0x495f7a._0x527791,-_0x495f7a._0x10f739)+_0xf768d7['source'][_0x123fc8(-0x1c,-_0x495f7a._0x230182,_0x495f7a._0x365fc9,-_0x495f7a._0x7a6a7f)]});continue;}pushUserContentMessage(_0x492928,_0x2564f[_0x123fc8(-0x15,-_0x495f7a._0x324300,-_0x495f7a._0x2de2da,0xe)],_0xf25ce3[_0x123fc8(-0x19,-0x1e,-_0x495f7a._0x401878,-0x1c)](0x0));if(_0xf768d7[_0x3666ce(-0x146,-0x157,-_0x495f7a._0x4662b8,-_0x495f7a._0x16c1ba)]===_0x3666ce(-0x165,-_0x495f7a._0x4768fa,-0x195,-0x176)){if(!hasSerializableToolUse(_0xf768d7))continue;_0x492928[_0x3666ce(-_0x495f7a._0x3bd0ff,-_0x495f7a._0x449c4e,-0x135,-0x146)]({'type':_0x3666ce(-0x137,-0x14a,-0x13f,-0x150),'call_id':_0xf768d7['id'],'name':_0xf768d7[_0x123fc8(0x24,_0x495f7a._0x320f0b,-_0x495f7a._0x5e849f,-0xb)],'arguments':JSON[_0x3666ce(-0x162,-0x145,-_0x495f7a._0x1aafe2,-_0x495f7a._0x93ac4a)](_0xf768d7['input']??{})});continue;}if(_0xf768d7[_0x123fc8(-_0x495f7a._0x175c34,-_0x495f7a._0x53ae4f,0xa,-_0x495f7a._0x29036d)]==='tool_result'){if(!hasSerializableToolResult(_0xf768d7))continue;const _0x22117a=getToolResultText(_0xf768d7[_0x3666ce(-_0x495f7a._0x428b11,-_0x495f7a._0x1d0e9a,-_0x495f7a._0x20a7ec,-0x140)]);_0x492928[_0x3666ce(-_0x495f7a._0x525873,-0x157,-_0x495f7a._0xb93180,-0x146)]({'type':'function_call_output','call_id':_0xf768d7[_0x123fc8(0x1,-0x17,-_0x495f7a._0x5e3244,_0x495f7a._0x4f7339)],'output':_0x22117a});const _0xc010f1=getToolResultImages(_0xf768d7[_0x123fc8(_0x495f7a._0x184b08,-0x1,-_0x495f7a._0x2de2da,0x1b)]);_0xc010f1[_0x3666ce(-_0x495f7a._0x428b11,-0x162,-0x151,-0x141)]>0x0&&_0x492928[_0x123fc8(0x6,-_0x495f7a._0x30c129,-0xf,_0x495f7a._0x223cfa)]({'type':_0x3666ce(-_0x495f7a._0x2a641c,-_0x495f7a._0x4e5aa3,-0x174,-_0x495f7a._0x46016c),'role':_0x123fc8(-0x16,0x4,_0x495f7a._0x1d5a68,0x17),'content':[{'type':_0x123fc8(0x4,0x5,-0x8,_0x495f7a._0x3946d9),'text':_0x123fc8(-0x29,-_0x495f7a._0x580e08,-_0x495f7a._0x242aad,_0x495f7a._0x5e3244)+_0xf768d7[_0x123fc8(-_0x495f7a._0x534fea,-_0x495f7a._0x3db935,-_0x495f7a._0x5b6942,-0x2c)]+'.'},..._0xc010f1[_0x3666ce(-_0x495f7a._0x34ab27,-0x167,-_0x495f7a._0x52f741,-_0x495f7a._0x50087a)](_0x21f96a=>({'type':'input_image','image_url':'data:'+_0x21f96a[_0x3666ce(-0x167,-0x15a,-0x130,-0x14b)][_0x123fc8(-0x32,-0x2f,-0x13,-0x28)]+_0x123fc8(-0x2a,-0x14,-0x30,-0x2f)+_0x21f96a[_0x123fc8(-0xc,-0xc,-0xe,-0x21)][_0x123fc8(-0x16,-0x15,-0x1,0x2)]}))]});}}pushUserContentMessage(_0x492928,_0x2564f[_0x123fc8(-0x22,-_0x495f7a._0x324300,-0x8,-_0x495f7a._0x42d41f)],_0xf25ce3);}function _0x123fc8(_0x3bc612,_0x57cbbb,_0x2b47f3,_0xd71dbe){return _0x1ee8(_0x57cbbb- -0xa4,_0xd71dbe);}return{...createOpenAiResponsesReasoning(_0x2dc027),'model':_0x2dc027[_0x3666ce(-0x11f,-_0x495f7a._0x8975f,-_0x495f7a._0x401465,-_0x495f7a._0x401465)],'instructions':systemToInstructions(_0x2dc027[_0x3666ce(-0x138,-_0x495f7a._0xb3aee7,-_0x495f7a._0x2283b6,-_0x495f7a._0x4e8292)]),'input':_0x492928,'max_output_tokens':_0x2dc027[_0x3666ce(-_0x495f7a._0x3d8fee,-_0x495f7a._0xa76c17,-0x164,-_0x495f7a._0x39905f)],'tools':_0x2dc027[_0x123fc8(-0x20,-_0x495f7a._0x236fd1,-_0x495f7a._0x3e833f,-_0x495f7a._0x2ece0f)][_0x123fc8(-_0x495f7a._0x510dff,-0x2c,-_0x495f7a._0x493b0a,-_0x495f7a._0x58c28a)](_0x3212de=>{const _0x57b5b3={_0x11f54e:0x174,_0x4c301a:0x228};function _0x4816ef(_0x3cfeb6,_0x311726,_0x245310,_0x4b7358){return _0x123fc8(_0x3cfeb6-0x39,_0x3cfeb6-_0x5bb484._0xadc78f,_0x245310-_0x5bb484._0x42220b,_0x4b7358);}function _0x5d0295(_0x38ae1f,_0x1b8661,_0x22a3c0,_0x870a94){return _0x3666ce(_0x22a3c0,_0x1b8661-0x51,_0x22a3c0-_0x57b5b3._0x11f54e,_0x870a94-_0x57b5b3._0x4c301a);}return{'type':_0x5d0295(_0x25e20a._0x21df0a,0xa4,_0x25e20a._0x15396c,_0x25e20a._0x3e0e02),'name':_0x3212de[_0x4816ef(0x67,_0x25e20a._0x4f3948,0x73,0x60)],'description':_0x3212de[_0x5d0295(_0x25e20a._0x2a4412,_0x25e20a._0x487aeb,0xba,_0x25e20a._0x8e35a7)],'parameters':_0x3212de[_0x4816ef(_0x25e20a._0x34b2f1,_0x25e20a._0x13fce1,0x4a,_0x25e20a._0x6d815e)]};}),..._0x2dc027[_0x3666ce(-_0x495f7a._0x4662b8,-_0x495f7a._0x5839df,-_0x495f7a._0xc4451d,-_0x495f7a._0xfe0e49)]?{'text':{'format':{'type':'json_schema','name':_0x2dc027['outputFormat']['name']??_0x3666ce(-0x129,-_0x495f7a._0x28e53c,-0x12d,-_0x495f7a._0x21de89),'schema':_0x2dc027['outputFormat'][_0x123fc8(-_0x495f7a._0x4f37dc,-0x34,-_0x495f7a._0x34d630,-_0x495f7a._0x34aba2)],'strict':_0x2dc027[_0x123fc8(-_0x495f7a._0x4bc804,-0x9,_0x495f7a._0xc3edc4,-0x13)][_0x123fc8(-_0x495f7a._0x33deb2,-0x35,-0x28,-_0x495f7a._0x58c28a)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x3c51f2,_0x4f4af2){const _0x8985df={_0x102db9:0xa6,_0x22e82c:0xb9,_0x3780d3:0xb4,_0x99d6f8:0x7b,_0x43e151:0x5f,_0x34e09a:0x84,_0x439450:0x7d,_0x5cefe9:0x293,_0x4f45f4:0x28b,_0xb12c2b:0x2ad,_0x39126d:0x2af,_0x55dc32:0x286,_0x224f8c:0x2a1,_0x506bb4:0x281,_0x1c4525:0x88,_0x5ae65e:0x98,_0x4be2b9:0xa6,_0x3bb0b2:0xb2,_0x2db08b:0xaa,_0x5cddd3:0xc6,_0x15313e:0x28a};function _0x4a6b48(_0x5bacc6,_0x57c034,_0x223878,_0x30bd70){return _0x2c13(_0x5bacc6- -0x3b7,_0x30bd70);}function _0x4eb896(_0x18e272,_0x445f67,_0x4914d7,_0x2f5e32){return _0x2c13(_0x2f5e32- -0x92,_0x445f67);}const _0x3c61a3=_0x3c51f2();while(!![]){try{const _0xe9394a=-parseInt(_0x4eb896(_0x8985df._0x102db9,_0x8985df._0x22e82c,0x99,_0x8985df._0x3780d3))/0x1+parseInt(_0x4eb896(_0x8985df._0x99d6f8,_0x8985df._0x43e151,0x79,0x7b))/0x2*(-parseInt(_0x4eb896(0xb9,0xc8,0xc2,0xa9))/0x3)+-parseInt(_0x4eb896(_0x8985df._0x34e09a,0x9b,0x80,0x81))/0x4+parseInt(_0x4eb896(_0x8985df._0x439450,0x96,0x93,0x9d))/0x5*(-parseInt(_0x4a6b48(-_0x8985df._0x5cefe9,-_0x8985df._0x4f45f4,-_0x8985df._0xb12c2b,-_0x8985df._0x39126d))/0x6)+-parseInt(_0x4a6b48(-_0x8985df._0x55dc32,-_0x8985df._0x224f8c,-_0x8985df._0x506bb4,-0x277))/0x7*(-parseInt(_0x4eb896(0x7e,0x88,_0x8985df._0x1c4525,_0x8985df._0x5ae65e))/0x8)+-parseInt(_0x4eb896(0xa7,_0x8985df._0x4be2b9,_0x8985df._0x3bb0b2,0x9c))/0x9+parseInt(_0x4eb896(_0x8985df._0x2db08b,0xbc,_0x8985df._0x5cddd3,0xa5))/0xa*(parseInt(_0x4a6b48(-_0x8985df._0x15313e,-0x280,-0x291,-0x278))/0xb);if(_0xe9394a===_0x4f4af2)break;else _0x3c61a3['push'](_0x3c61a3['shift']());}catch(_0x1384b9){_0x3c61a3['push'](_0x3c61a3['shift']());}}}(_0x2524,0x22fe6));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-QDOE7NWO.js';function systemToInstructions(_0x15eed9){const _0x186727={_0x2f5da9:0x200,_0x236f1a:0x208},_0x1c58aa={_0x7625f4:0x338};function _0x45f6be(_0x1ce0b0,_0x418ad4,_0x2c454a,_0x5bd4d4){return _0x2c13(_0x418ad4- -_0x1c58aa._0x7625f4,_0x5bd4d4);}function _0x327ca8(_0x26a6aa,_0x560e40,_0x1f419f,_0x109f30){return _0x2c13(_0x1f419f-0xdc,_0x26a6aa);}return normalizeContent(_0x15eed9)['filter'](_0x21e0bd=>_0x21e0bd[_0x45f6be(-0x201,-0x217,-0x22f,-0x22d)]===_0x45f6be(-0x1f8,-0x1f7,-0x1dd,-0x20a))['map'](_0x120c5c=>_0x120c5c[_0x45f6be(-0x1f3,-0x1f7,-0x1e6,-0x1fb)])[_0x45f6be(-0x1ff,-_0x186727._0x2f5da9,-_0x186727._0x236f1a,-0x21b)]('\x0a\x0a');}function pushUserContentMessage(_0x46d5b3,_0x2fb79e,_0x19a5c9){const _0x306bd7={_0x3ba082:0x423,_0x3ad222:0x43e,_0x1f07f7:0x415};if(_0x19a5c9[_0x25098a(0x42f,_0x306bd7._0x3ba082,_0x306bd7._0x3ad222,_0x306bd7._0x1f07f7)]===0x0)return;function _0x25098a(_0x28af29,_0x32e4a6,_0xd521d,_0xbe3b1e){return _0x2c13(_0x32e4a6-0x2e5,_0xbe3b1e);}_0x46d5b3['push']({'type':'message','role':_0x2fb79e,'content':_0x19a5c9});}function hasSerializableToolUse(_0x2c9497){const _0x3880a3={_0x2b76bd:0x21d,_0x616b6d:0x212,_0x2a939e:0x20e,_0x4dbf1b:0x1ac,_0x4ab06c:0x1a0,_0x3d11c2:0x208,_0x173fce:0x215,_0x97da9d:0x20e,_0x5866d9:0x1da,_0x3b2478:0x1db,_0x28bff6:0x1d3,_0x745aa4:0x1ce},_0x35ca41={_0x235940:0x8f},_0x498320={_0x3376c3:0x318};function _0x5bcd75(_0x4f78a4,_0x438ce1,_0x7d15b2,_0x150369){return _0x2c13(_0x4f78a4- -_0x498320._0x3376c3,_0x150369);}function _0x3a0c93(_0x1ca0b2,_0x4c6f73,_0x3cf8b8,_0x36b692){return _0x2c13(_0x4c6f73-_0x35ca41._0x235940,_0x3cf8b8);}return _0x2c9497['id'][_0x5bcd75(-0x208,-_0x3880a3._0x2b76bd,-_0x3880a3._0x616b6d,-_0x3880a3._0x2a939e)]()['length']>0x0&&_0x2c9497[_0x3a0c93(0x1af,_0x3880a3._0x4dbf1b,_0x3880a3._0x4ab06c,0x1a7)][_0x5bcd75(-_0x3880a3._0x3d11c2,-_0x3880a3._0x173fce,-0x224,-_0x3880a3._0x97da9d)]()[_0x5bcd75(-_0x3880a3._0x5866d9,-_0x3880a3._0x3b2478,-_0x3880a3._0x28bff6,-_0x3880a3._0x745aa4)]>0x0;}function hasSerializableToolResult(_0x3b2888){const _0x3ea642={_0x5a8412:0x32f},_0x1a6cf4={_0x159f97:0x2da},_0x16ccb8={_0x40dd5d:0x1d0};function _0x53deb4(_0x852bc4,_0x1a57f2,_0x2c5e28,_0x2fc808){return _0x2c13(_0x2c5e28-_0x16ccb8._0x40dd5d,_0x2fc808);}function _0x8197f6(_0x3bd1e3,_0xc718e1,_0x7b1437,_0x54656c){return _0x2c13(_0xc718e1- -_0x1a6cf4._0x159f97,_0x3bd1e3);}return _0x3b2888['tool_use_id'][_0x8197f6(-0x1d8,-0x1ca,-0x1b1,-0x1df)]()[_0x53deb4(_0x3ea642._0x5a8412,0x309,0x30e,0x309)]>0x0;}function isResponseInputObject(_0x45a23a){const _0x55f458={_0x59f1cf:0x1c7,_0x1d9bac:0x1b2,_0x2aaed:0x197,_0x58ea13:0x3ba,_0x3a0599:0x39c,_0x3209ee:0x1b8,_0x56fb9d:0x1bc},_0x2f115e={_0x12486c:0x280};function _0x48dd24(_0x29e1f4,_0x4d015c,_0x4d667d,_0x1fa53e){return _0x2c13(_0x4d015c- -0x2c1,_0x29e1f4);}if(typeof _0x45a23a!==_0x48dd24(-_0x55f458._0x59f1cf,-_0x55f458._0x1d9bac,-0x1b0,-_0x55f458._0x2aaed)||_0x45a23a===null||Array[_0xba0df9(_0x55f458._0x58ea13,0x394,0x396,_0x55f458._0x3a0599)](_0x45a23a))return![];const _0x4dda9e=_0x45a23a;function _0xba0df9(_0x7560ff,_0x28b10a,_0x1cee2b,_0xf9515d){return _0x2c13(_0xf9515d-_0x2f115e._0x12486c,_0x7560ff);}return typeof _0x4dda9e['type']===_0x48dd24(-_0x55f458._0x3209ee,-0x1a8,-_0x55f458._0x56fb9d,-0x195);}function _0x2c13(_0x701875,_0x28f688){_0x701875=_0x701875-0x10a;const _0x2524ba=_0x2524();let _0x2c1370=_0x2524ba[_0x701875];if(_0x2c13['xdJlJx']===undefined){var _0x29c675=function(_0x569e81){const _0x4d128d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15eed9='',_0x21e0bd='';for(let _0x120c5c=0x0,_0x46d5b3,_0x2fb79e,_0x19a5c9=0x0;_0x2fb79e=_0x569e81['charAt'](_0x19a5c9++);~_0x2fb79e&&(_0x46d5b3=_0x120c5c%0x4?_0x46d5b3*0x40+_0x2fb79e:_0x2fb79e,_0x120c5c++%0x4)?_0x15eed9+=String['fromCharCode'](0xff&_0x46d5b3>>(-0x2*_0x120c5c&0x6)):0x0){_0x2fb79e=_0x4d128d['indexOf'](_0x2fb79e);}for(let _0x2c9497=0x0,_0x3b2888=_0x15eed9['length'];_0x2c9497<_0x3b2888;_0x2c9497++){_0x21e0bd+='%'+('00'+_0x15eed9['charCodeAt'](_0x2c9497)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x21e0bd);};_0x2c13['YADPDA']=_0x29c675,_0x2c13['UBNrBk']={},_0x2c13['xdJlJx']=!![];}const _0x479f52=_0x2524ba[0x0],_0x243f58=_0x701875+_0x479f52,_0x145f3a=_0x2c13['UBNrBk'][_0x243f58];return!_0x145f3a?(_0x2c1370=_0x2c13['YADPDA'](_0x2c1370),_0x2c13['UBNrBk'][_0x243f58]=_0x2c1370):_0x2c1370=_0x145f3a,_0x2c1370;}function isImageToolResultBlock(_0x154689){const _0x2f833f={_0x282d46:0x48b,_0x5b6a05:0x46b,_0x4da57a:0x466,_0x324751:0x36e,_0x5d1950:0x37a,_0x56f898:0x4a8,_0x1ff2fd:0x353,_0x1db701:0x336,_0x15528e:0x352,_0x52bfdf:0x355,_0x514e32:0x367,_0x36e7b0:0x471,_0x2fd579:0x459,_0x3fa0c2:0x480,_0x16d8da:0x472,_0x11141f:0x49a};function _0x2d3dee(_0x364c96,_0x56b007,_0x48bdfd,_0x2c6765){return _0x2c13(_0x364c96-0x232,_0x56b007);}if(typeof _0x154689!==_0x2022e6(_0x2f833f._0x282d46,0x475,_0x2f833f._0x5b6a05,_0x2f833f._0x4da57a)||_0x154689===null||Array['isArray'](_0x154689))return![];const _0x3ad15a=_0x154689;function _0x2022e6(_0x490b12,_0x3a42db,_0x34c29f,_0x47472d){return _0x2c13(_0x3a42db-0x366,_0x34c29f);}return _0x3ad15a[_0x2d3dee(0x353,0x340,_0x2f833f._0x324751,0x34e)]===_0x2d3dee(0x35b,0x36d,_0x2f833f._0x5d1950,0x365)&&_0x3ad15a[_0x2022e6(0x47c,0x49c,0x4b8,_0x2f833f._0x56f898)]?.[_0x2d3dee(_0x2f833f._0x1ff2fd,_0x2f833f._0x1db701,_0x2f833f._0x15528e,0x369)]===_0x2d3dee(0x35e,_0x2f833f._0x52bfdf,0x371,_0x2f833f._0x514e32)&&typeof _0x3ad15a['source'][_0x2022e6(0x452,_0x2f833f._0x36e7b0,_0x2f833f._0x2fd579,0x48c)]==='string'&&typeof _0x3ad15a[_0x2d3dee(0x368,0x367,0x379,0x35f)][_0x2022e6(0x484,_0x2f833f._0x3fa0c2,_0x2f833f._0x16d8da,_0x2f833f._0x11141f)]==='string';}function getToolResultText(_0x585928){const _0x492e8c={_0x31babc:0x262,_0x40975a:0x268,_0x373da8:0x25a,_0x4520d2:0x1b9,_0x5d74d4:0x1c9,_0x4eedcd:0x1bb,_0x36644b:0x1bd,_0x2ff2bf:0x1d4,_0x285c59:0x1e5,_0x548899:0x1a5,_0xedfb16:0x194,_0x22e240:0x19d,_0x4a251f:0x1a1,_0x323f39:0x1b5},_0x2c134d={_0x11561f:0x180,_0x2ab54f:0x183,_0x1ce3a6:0x368,_0x54813d:0x35d,_0x5932f4:0x370,_0x1b17fc:0x197},_0x26c1b0={_0x57a1a6:0x5ca,_0x50fdba:0x197};if(typeof _0x585928===_0x53a4b0(-_0x492e8c._0x31babc,-_0x492e8c._0x40975a,-0x270,-_0x492e8c._0x373da8))return _0x585928;const _0x42b28f=_0x585928[_0x21071d(_0x492e8c._0x4520d2,0x1af,_0x492e8c._0x5d74d4,_0x492e8c._0x4eedcd)](_0x25e3a5=>{const _0x550035={_0x1fed0a:0x108};function _0x535e24(_0x9a2bd2,_0x572ff6,_0x1408da,_0x52dafa){return _0x53a4b0(_0x1408da-_0x26c1b0._0x57a1a6,_0x572ff6-_0x26c1b0._0x50fdba,_0x9a2bd2,_0x52dafa-0x54);}function _0x2608f6(_0x5dd40c,_0x171b80,_0x597f3d,_0xa2d3b9){return _0x21071d(_0x5dd40c-_0x550035._0x1fed0a,_0x171b80-0x144,_0xa2d3b9- -0x37,_0x5dd40c);}return typeof _0x25e3a5===_0x2608f6(_0x2c134d._0x11561f,0x159,_0x2c134d._0x2ab54f,0x165)&&_0x25e3a5!==null&&_0x25e3a5[_0x535e24(_0x2c134d._0x1ce3a6,_0x2c134d._0x54813d,_0x2c134d._0x5932f4,0x386)]===_0x2608f6(0x179,0x1a6,0x17c,_0x2c134d._0x1b17fc);})[_0x21071d(0x1b6,_0x492e8c._0x36644b,_0x492e8c._0x2ff2bf,_0x492e8c._0x285c59)](_0x1c3d34=>_0x1c3d34[_0x53a4b0(-0x23a,-0x238,-0x233,-0x23b)])[_0x21071d(0x1e4,0x1dd,0x1c5,_0x492e8c._0x548899)]('\x0a\x0a')[_0x21071d(0x1b1,_0x492e8c._0xedfb16,_0x492e8c._0x22e240,0x190)]();function _0x21071d(_0x391323,_0x1de2f5,_0x2aa40c,_0x1cf570){return _0x2c13(_0x2aa40c-0x8d,_0x1cf570);}function _0x53a4b0(_0x356d16,_0x46bc60,_0x8ebefc,_0x19b1ca){return _0x2c13(_0x356d16- -0x37b,_0x8ebefc);}return _0x42b28f[_0x21071d(0x1b4,0x1d5,0x1cb,0x1db)]>0x0?_0x42b28f:_0x21071d(_0x492e8c._0x4a251f,0x19a,_0x492e8c._0x323f39,_0x492e8c._0x2ff2bf);}function getToolResultImages(_0x18eb3d){const _0x36dece={_0x5fa980:0xfc};function _0x216d56(_0x34d1e7,_0x2a7b6f,_0x105d0b,_0x5bdc3b){return _0x2c13(_0x2a7b6f- -0x40,_0x34d1e7);}return Array['isArray'](_0x18eb3d)?_0x18eb3d[_0x216d56(0xee,_0x36dece._0x5fa980,0xe7,0xe2)](isImageToolResultBlock):[];}function _0x2524(){const _0x7cffdb=['zMLSDgvY','Dg9VBhm','BgvUz3rO','B3v0Chv0x3rLEhq','Aw5WDxrFC2nOzw1H','Dgv4Da','ChjVDMLKzxjtDgf0zq','Dg9VBf9Yzxn1Bhq','C3rYAw5NAwz5','C3vTBwfYEq','oti1nJfLuMz1y0C','BwfW','Aw5WDxrFAw1Hz2u','BwvZC2fNzxm','Aw5WDxq','Dg9VBf91C2vFAwq','BwvKAwfFDhLWzq','CMvHC29UAw5N','mtrzCM5lrMe','yxv0BW','B2jQzwn0','DhjPBq','Dg9VBf91C2u','DxnLCI12AxnPyMXL','mtG0nJrHugHWEuW','CM9Szq','C3rYAwn0','ANnVBL9Zy2HLBwe','DxnLCG','zgf0ytO','C3rYAw5N','zgf0yq','C3bSAwnL','AxnbCNjHEq','BMfTzq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','zgvZy3jPChrPB24','B3v0Chv0rM9YBwf0','DhLWzq','y29UDgvUDa','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','nLrnugvPAa','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','yxnZAxn0yw50','Aw5WDxrFDgv4Da','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','Aw1Hz2u','mtuXotjQrwLczKi','DMLZAwjPBgL0Eq','yMfZzty0','nJeYn2fyzwXhEG','mtu3mZG2nMrtELfSuW','mtm1mZm1werWvKT2','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','ndyYDfLgsgvd','BwvZC2fNzq','C3LZDgvT','Bw9KzwW','o2jHC2u2ncW','C291CMnL','nZuWmePyyvnptG','AM9PBG','ChvZAa','zwzMB3j0','ndmXmJHqEwzxwKK'];_0x2524=function(){return _0x7cffdb;};return _0x2524();}function resolveReasoningVisibility(_0x4ece7a){const _0x8b045e={_0x517459:0x399,_0x519185:0x3a1,_0x5dd524:0x376,_0x55d5d0:0x390,_0x3fd01a:0x3ce,_0x44822c:0x39c,_0x506c16:0x3af},_0x28cae6={_0x5e6794:0x258};function _0x51d762(_0x1a456b,_0x3ad490,_0x3a5789,_0x2b395a){return _0x2c13(_0x3a5789- -_0x28cae6._0x5e6794,_0x1a456b);}function _0x183a7a(_0x4080f1,_0x5a38f0,_0x5f417d,_0x32fb95){return _0x2c13(_0x32fb95-0x284,_0x5a38f0);}return _0x4ece7a[_0x183a7a(_0x8b045e._0x517459,_0x8b045e._0x519185,_0x8b045e._0x5dd524,_0x8b045e._0x55d5d0)]?.[_0x183a7a(_0x8b045e._0x3fd01a,0x39c,_0x8b045e._0x44822c,_0x8b045e._0x506c16)]??'user-visible';}function createOpenAiResponsesReasoning(_0x4f010c){const _0x4660fe={_0x3141d5:0x35a,_0x4124c1:0x36f,_0x22cf55:0x359,_0x2c81b6:0x128,_0x1b371f:0x11a,_0x31c020:0x360,_0xc719fa:0x372,_0x4f7c74:0x375,_0x1ce1e1:0x393,_0x5aebea:0x381,_0x548c00:0x38f,_0x247d14:0x124,_0x65bd2b:0x12f,_0xfbf708:0x373,_0x1b5beb:0x390,_0x807045:0x38b,_0x410a59:0x125,_0x5af217:0x121},_0x15e03d={_0x5ca456:0x25f},_0xed0402=resolveOpenAiReasoningConfig(_0x4f010c[_0x2a02af(_0x4660fe._0x3141d5,_0x4660fe._0x4124c1,0x35d,_0x4660fe._0x22cf55)]);if(!_0xed0402)return{};const _0x2d2013={};function _0x4140d5(_0x38b2bb,_0x227ee5,_0x541b87,_0x4798ff){return _0x2c13(_0x4798ff- -_0x15e03d._0x5ca456,_0x38b2bb);}const _0x5c9829=_0xed0402[_0x4140d5(-_0x4660fe._0x2c81b6,-0x139,-0xfa,-_0x4660fe._0x1b371f)]??(resolveReasoningVisibility(_0x4f010c)===_0x2a02af(_0x4660fe._0x31c020,0x378,0x368,_0x4660fe._0xc719fa)?_0x2a02af(0x35c,0x374,_0x4660fe._0x4f7c74,0x354):void 0x0);_0xed0402['effort']&&(_0x2d2013['effort']=_0xed0402[_0x4140d5(-0x12f,-0x126,-0x119,-0x125)]);function _0x2a02af(_0x52ff42,_0x37ec68,_0x2d6862,_0x163c88){return _0x2c13(_0x52ff42-0x24e,_0x37ec68);}return _0x5c9829&&(_0x2d2013[_0x2a02af(_0x4660fe._0x1ce1e1,_0x4660fe._0x5aebea,_0x4660fe._0x548c00,0x37c)]=_0x5c9829),{..._0xed0402[_0x4140d5(-_0x4660fe._0x247d14,-0x125,-0x123,-_0x4660fe._0x65bd2b)]===![]?{}:{'include':[_0x2a02af(_0x4660fe._0xfbf708,0x379,_0x4660fe._0x1b5beb,_0x4660fe._0x807045)]},...Object['keys'](_0x2d2013)[_0x4140d5(-0x121,-_0x4660fe._0x410a59,-0x13d,-_0x4660fe._0x5af217)]>0x0?{'reasoning':_0x2d2013}:{}};}function pushAssistantProviderState(_0x226aac,_0x14d48e){const _0x4a2c5e={_0x48581a:0x1fc,_0x3fd62d:0x1fc,_0x4ce77a:0x4f1,_0x51a635:0x1eb,_0x48a3c1:0x509,_0xefe4d4:0x215},_0xe35047={_0x4771c6:0x3cb},_0x5d00c0={_0x3c0a2e:0xcb};if(_0x14d48e[_0x5f09e0(_0x4a2c5e._0x48581a,0x1f4,_0x4a2c5e._0x3fd62d,0x1df)]!==_0x4f3f8b(0x4f1,0x4ff,_0x4a2c5e._0x4ce77a,0x4fa))return![];function _0x5f09e0(_0x26364d,_0x16d0b3,_0x52514f,_0x1c0bca){return _0x2c13(_0x1c0bca-_0x5d00c0._0x3c0a2e,_0x26364d);}function _0x4f3f8b(_0x25400f,_0x341570,_0x5e3b71,_0x30022b){return _0x2c13(_0x25400f-_0xe35047._0x4771c6,_0x30022b);}const _0x3e6634=_0x14d48e[_0x4f3f8b(0x50d,0x505,0x50c,0x519)]?.[_0x5f09e0(0x1fa,0x1fd,_0x4a2c5e._0x51a635,0x1ee)]??[];if(_0x3e6634[_0x4f3f8b(_0x4a2c5e._0x48a3c1,0x4f5,_0x4a2c5e._0x48a3c1,0x522)]===0x0)return![];for(const _0x2133b6 of _0x3e6634){isResponseInputObject(_0x2133b6)&&_0x226aac[_0x5f09e0(0x216,_0x4a2c5e._0xefe4d4,0x219,0x204)](structuredClone(_0x2133b6));}return!![];}function toOpenAiResponsesRequest(_0x26eaae){const _0x3797aa={_0x2d7783:0x366,_0x229c80:0x381,_0x3ce8dd:0x3a0,_0x51a668:0x1d7,_0x4f0923:0x1c7,_0x57cce6:0x1ec,_0x1f9eb4:0x1ee,_0x1180bd:0x1ee,_0x49926b:0x198,_0x3841ae:0x1b7,_0x50af50:0x19b,_0x5ba4b6:0x1ac,_0x35ece3:0x1c3,_0x3dec06:0x337,_0x455669:0x34a,_0x183be1:0x34e,_0x90c5e2:0x1d2,_0x11b09c:0x1d5,_0x15687a:0x1a8,_0xdff9d2:0x36d,_0x1eade6:0x351,_0xcc610e:0x35f,_0x3372a7:0x388,_0x4cde40:0x369,_0x405ae0:0x378,_0x363de0:0x1da,_0x37dc10:0x1f0,_0x32ccc1:0x368,_0x2f9f6d:0x1cf,_0x1db162:0x1b0,_0x72d239:0x1c4,_0x5b7766:0x1dc,_0x2baf16:0x1fc,_0x2d24f0:0x1ed,_0x12473a:0x1e5,_0x5547ca:0x1db,_0x522f43:0x1d6,_0x1cad94:0x1de,_0x3af17e:0x1de,_0x26b701:0x33e,_0x41716f:0x34a,_0x57fbb7:0x359,_0x198dfc:0x1e1,_0x464976:0x1e7,_0x37d3b3:0x1e8,_0x1d91b0:0x1eb,_0x1b070e:0x35e,_0x1b7214:0x384,_0x59ed4e:0x388,_0x372dc5:0x1cb,_0x1f50be:0x1ba,_0x4a89b9:0x1d8,_0x52747f:0x1ca,_0x4270e9:0x367,_0x3848cf:0x378,_0x1d6e2f:0x1bd,_0x4bada0:0x1a6,_0x41737f:0x1c9,_0x26918f:0x1cb,_0x6da5a4:0x33c,_0x163be9:0x37c,_0x1e9411:0x373,_0x255a0c:0x34f,_0x6277a8:0x342,_0x50ec69:0x34c,_0x563f3d:0x371,_0x363167:0x39c,_0x321034:0x1fd,_0x1a9a96:0x1b3,_0x4464f1:0x1bb,_0x79aa25:0x1d2,_0x479840:0x1b1,_0x37aee7:0x1a3,_0xb63f5b:0x1a4,_0x4f52bc:0x344,_0x26a7ef:0x349,_0x6e093f:0x33e,_0x46a149:0x35f,_0x319854:0x358,_0x57b848:0x33c,_0x5ad065:0x355,_0x13fc4a:0x1d9,_0x334859:0x1f9,_0x557e4d:0x1f8},_0x1a5b0c={_0xfa7060:0x2b3,_0x2200a4:0x29c,_0x263642:0x2ad,_0x5590ee:0x279,_0x394216:0x292},_0x35e582={_0x5bb094:0x5d,_0xdc8b01:0x7f},_0x2b4343={_0xea7100:0x2f8},_0x47840f=[];function _0x5c0884(_0x3b8ab7,_0x8750d2,_0x4364de,_0x383989){return _0x2c13(_0x4364de-0x238,_0x383989);}for(const _0x782098 of _0x26eaae[_0x5c0884(_0x3797aa._0x2d7783,0x37a,_0x3797aa._0x229c80,_0x3797aa._0x3ce8dd)]){if(pushAssistantProviderState(_0x47840f,_0x782098))continue;const _0x96be81=[];for(const _0x1222ef of normalizeContent(_0x782098[_0x2bd240(-_0x3797aa._0x51a668,-0x1d6,-_0x3797aa._0x4f0923,-_0x3797aa._0x57cce6)])){if(_0x1222ef[_0x2bd240(-_0x3797aa._0x1f9eb4,-0x1d7,-_0x3797aa._0x1180bd,-0x1bb)]===_0x2bd240(-_0x3797aa._0x49926b,-_0x3797aa._0x3841ae,-0x1c1,-_0x3797aa._0x50af50)){_0x96be81[_0x2bd240(-_0x3797aa._0x5ba4b6,-0x1bf,-_0x3797aa._0x35ece3,-0x1db)](_0x782098[_0x5c0884(_0x3797aa._0x3dec06,_0x3797aa._0x455669,0x34c,_0x3797aa._0x183be1)]===_0x2bd240(-0x1b1,-_0x3797aa._0x90c5e2,-0x1bc,-0x1ec)?{'type':_0x2bd240(-_0x3797aa._0x11b09c,-0x1b9,-0x1a2,-_0x3797aa._0x15687a),'text':_0x1222ef['text']}:{'type':_0x5c0884(_0x3797aa._0xdff9d2,_0x3797aa._0x1eade6,_0x3797aa._0xcc610e,0x371),'text':_0x1222ef[_0x5c0884(_0x3797aa._0x3372a7,_0x3797aa._0x4cde40,0x379,_0x3797aa._0x405ae0)]});continue;}if(_0x1222ef[_0x2bd240(-_0x3797aa._0x363de0,-0x1d7,-_0x3797aa._0x37dc10,-0x1c9)]===_0x5c0884(0x346,_0x3797aa._0x32ccc1,0x361,0x366)){_0x96be81[_0x2bd240(-0x1b8,-0x1bf,-_0x3797aa._0x2f9f6d,-0x1a3)]({'type':_0x2bd240(-0x194,-_0x3797aa._0x1db162,-0x1c2,-_0x3797aa._0x72d239),'image_url':'data:'+_0x1222ef[_0x2bd240(-0x1c2,-0x1c2,-0x1da,-_0x3797aa._0x5b7766)][_0x2bd240(-_0x3797aa._0x2baf16,-_0x3797aa._0x2d24f0,-_0x3797aa._0x12473a,-0x1cd)]+_0x2bd240(-_0x3797aa._0x5547ca,-_0x3797aa._0x35ece3,-_0x3797aa._0x522f43,-0x1aa)+_0x1222ef['source'][_0x2bd240(-_0x3797aa._0x1cad94,-_0x3797aa._0x3af17e,-0x1f0,-0x1f2)]});continue;}pushUserContentMessage(_0x47840f,_0x782098['role'],_0x96be81[_0x5c0884(_0x3797aa._0x26b701,0x337,0x353,_0x3797aa._0x41716f)](0x0));if(_0x1222ef[_0x5c0884(0x364,0x357,_0x3797aa._0x57fbb7,0x34f)]===_0x2bd240(-_0x3797aa._0x198dfc,-_0x3797aa._0x464976,-_0x3797aa._0x37d3b3,-_0x3797aa._0x2f9f6d)){if(!hasSerializableToolUse(_0x1222ef))continue;_0x47840f['push']({'type':'function_call','call_id':_0x1222ef['id'],'name':_0x1222ef[_0x2bd240(-_0x3797aa._0x2f9f6d,-_0x3797aa._0x5547ca,-_0x3797aa._0x1d91b0,-0x1dc)],'arguments':JSON[_0x5c0884(0x38f,0x397,0x37c,_0x3797aa._0x1b070e)](_0x1222ef[_0x5c0884(_0x3797aa._0x1b7214,_0x3797aa._0x59ed4e,0x382,0x385)]??{})});continue;}if(_0x1222ef[_0x2bd240(-_0x3797aa._0x372dc5,-0x1d7,-_0x3797aa._0x1f50be,-_0x3797aa._0x4a89b9)]===_0x2bd240(-0x1d3,-0x1b5,-_0x3797aa._0x52747f,-0x1d4)){if(!hasSerializableToolResult(_0x1222ef))continue;const _0xc149e9=getToolResultText(_0x1222ef[_0x5c0884(0x348,_0x3797aa._0x4270e9,0x35a,_0x3797aa._0x3848cf)]);_0x47840f[_0x2bd240(-0x1c9,-0x1bf,-_0x3797aa._0x522f43,-0x1ce)]({'type':'function_call_output','call_id':_0x1222ef['tool_use_id'],'output':_0xc149e9});const _0x578da1=getToolResultImages(_0x1222ef[_0x2bd240(-0x1e8,-0x1d6,-0x1c8,-_0x3797aa._0x1d6e2f)]);_0x578da1['length']>0x0&&_0x47840f[_0x2bd240(-0x1bb,-0x1bf,-_0x3797aa._0x4bada0,-_0x3797aa._0x41737f)]({'type':_0x2bd240(-0x1b3,-0x1c6,-0x1a5,-_0x3797aa._0x26918f),'role':_0x5c0884(0x369,_0x3797aa._0x6da5a4,0x34f,0x33d),'content':[{'type':_0x5c0884(_0x3797aa._0x163be9,0x34e,0x35f,0x35a),'text':_0x5c0884(0x344,_0x3797aa._0x1e9411,0x356,_0x3797aa._0x255a0c)+_0x1222ef[_0x5c0884(0x340,0x345,_0x3797aa._0x6277a8,_0x3797aa._0x50ec69)]+'.'},..._0x578da1[_0x5c0884(0x36e,_0x3797aa._0x563f3d,0x37f,_0x3797aa._0x363167)](_0x544ea4=>({'type':_0x2bd240(-0x199,-0x1b0,-0x1ce,-0x190),'image_url':_0x2bd240(-0x1dc,-0x1e0,-0x1d5,-0x1e5)+_0x544ea4[_0x5c0884(0x378,0x38b,0x36e,0x360)][_0x5c0884(0x33e,0x328,0x343,0x363)]+_0x5c0884(0x352,0x386,0x36d,0x376)+_0x544ea4[_0x2bd240(-0x1da,-0x1c2,-0x1a5,-0x1a5)][_0x5c0884(0x355,0x371,0x352,0x335)]}))]});}}pushUserContentMessage(_0x47840f,_0x782098[_0x2bd240(-_0x3797aa._0x321034,-0x1e4,-0x203,-0x1e7)],_0x96be81);}function _0x2bd240(_0x579109,_0x3881e7,_0x1b4c5e,_0x54881c){return _0x2c13(_0x3881e7- -_0x2b4343._0xea7100,_0x579109);}return{...createOpenAiResponsesReasoning(_0x26eaae),'model':_0x26eaae[_0x5c0884(_0x3797aa._0x4cde40,0x363,0x36c,0x35f)],'instructions':systemToInstructions(_0x26eaae[_0x2bd240(-0x1bc,-0x1c5,-0x1a5,-_0x3797aa._0x1a9a96)]),'input':_0x47840f,'max_output_tokens':_0x26eaae['maxTokens'],'tools':_0x26eaae[_0x2bd240(-0x1d6,-_0x3797aa._0x4464f1,-0x1bb,-_0x3797aa._0x26918f)][_0x2bd240(-_0x3797aa._0x79aa25,-_0x3797aa._0x479840,-_0x3797aa._0x37aee7,-_0x3797aa._0xb63f5b)](_0x5c55d5=>{const _0x2f8cc3={_0x199de3:0x2e,_0x524e1c:0x39};function _0x40579c(_0x1a34f7,_0x3fca38,_0x492ce1,_0x1b84ee){return _0x2bd240(_0x492ce1,_0x3fca38-0x279,_0x492ce1-_0x35e582._0x5bb094,_0x1b84ee-_0x35e582._0xdc8b01);}function _0x1cfef3(_0x4c0c5f,_0x303820,_0x5210bb,_0x2a1372){return _0x5c0884(_0x4c0c5f-_0x2f8cc3._0x199de3,_0x303820-_0x2f8cc3._0x524e1c,_0x303820- -0x5f1,_0x4c0c5f);}return{'type':'function','name':_0x5c55d5[_0x1cfef3(-_0x1a5b0c._0xfa7060,-_0x1a5b0c._0x2200a4,-_0x1a5b0c._0x263642,-0x2ba)],'description':_0x5c55d5[_0x1cfef3(-0x281,-0x29a,-0x2a8,-0x2ad)],'parameters':_0x5c55d5[_0x1cfef3(-0x271,-_0x1a5b0c._0x5590ee,-0x288,-_0x1a5b0c._0x394216)]};}),..._0x26eaae[_0x5c0884(0x347,0x33b,0x358,_0x3797aa._0x4f52bc)]?{'text':{'format':{'type':_0x5c0884(_0x3797aa._0x26a7ef,_0x3797aa._0x6e093f,_0x3797aa._0x183be1,_0x3797aa._0x46a149),'name':_0x26eaae[_0x5c0884(0x350,0x347,_0x3797aa._0x319854,0x370)][_0x5c0884(_0x3797aa._0x57b848,0x334,_0x3797aa._0x5ad065,_0x3797aa._0x1eade6)]??'structured_output','schema':_0x26eaae[_0x2bd240(-_0x3797aa._0x57cce6,-_0x3797aa._0x4a89b9,-0x1cf,-_0x3797aa._0x13fc4a)]['schema'],'strict':_0x26eaae['outputFormat'][_0x2bd240(-_0x3797aa._0x334859,-0x1e3,-0x1e5,-_0x3797aa._0x557e4d)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
@@ -1 +1 @@
1
- (function(_0x4215ba,_0x3c36e1){var _0x1b8c07={_0x7f01cf:0xcf,_0xdce011:0xcd,_0x47dfc6:0xd3,_0x33ff8d:0xcb,_0x4ceef9:0x33a,_0x46877e:0x333,_0x42c619:0xd8,_0x1b9a00:0xd9,_0x5809c7:0xda,_0x534a1d:0xd0,_0x2a9a72:0xd5,_0x442991:0x32a,_0x524404:0x332,_0x1a345d:0xd7,_0x2f6507:0xe0,_0x192272:0x321,_0x2063b6:0x32b,_0x36ac9f:0x322,_0x5bdbab:0xc4,_0x27d90e:0x328,_0x36b2d5:0x32d,_0x292579:0x324,_0x4378dd:0xd9,_0x28b7c8:0x32d};function _0x23df17(_0x7a5b5f,_0x4338da,_0x34d2e1,_0xfb9bf1){return _0x14f7(_0x4338da-0x55,_0x7a5b5f);}function _0x44a7ff(_0xdfa6da,_0x4dfad8,_0x2ddb25,_0x1fec65){return _0x14f7(_0x1fec65- -0x3a9,_0x2ddb25);}var _0x552170=_0x4215ba();while(!![]){try{var _0x405fb5=-parseInt(_0x23df17(_0x1b8c07._0x7f01cf,0xd2,_0x1b8c07._0xdce011,_0x1b8c07._0x7f01cf))/0x1*(parseInt(_0x23df17(0xca,_0x1b8c07._0x47dfc6,0xdc,_0x1b8c07._0x33ff8d))/0x2)+-parseInt(_0x44a7ff(-0x331,-_0x1b8c07._0x4ceef9,-0x32d,-_0x1b8c07._0x46877e))/0x3*(-parseInt(_0x23df17(0xd7,_0x1b8c07._0x42c619,_0x1b8c07._0x1b9a00,_0x1b8c07._0x5809c7))/0x4)+parseInt(_0x23df17(_0x1b8c07._0x534a1d,_0x1b8c07._0x2a9a72,0xd2,0xd6))/0x5+parseInt(_0x44a7ff(-0x32b,-_0x1b8c07._0x46877e,-_0x1b8c07._0x442991,-_0x1b8c07._0x524404))/0x6*(parseInt(_0x23df17(0xd0,_0x1b8c07._0x1a345d,_0x1b8c07._0x2f6507,_0x1b8c07._0x1a345d))/0x7)+-parseInt(_0x44a7ff(-_0x1b8c07._0x192272,-0x328,-_0x1b8c07._0x2063b6,-_0x1b8c07._0x36ac9f))/0x8*(-parseInt(_0x23df17(_0x1b8c07._0xdce011,0xcd,_0x1b8c07._0x5bdbab,0xc6))/0x9)+parseInt(_0x44a7ff(-_0x1b8c07._0x27d90e,-_0x1b8c07._0x36b2d5,-_0x1b8c07._0x292579,-_0x1b8c07._0x36b2d5))/0xa*(parseInt(_0x23df17(0xd4,0xce,0xcb,0xc9))/0xb)+-parseInt(_0x23df17(0xe0,_0x1b8c07._0x4378dd,0xe1,0xdd))/0xc*(parseInt(_0x44a7ff(-0x322,-_0x1b8c07._0x292579,-_0x1b8c07._0x28b7c8,-_0x1b8c07._0x442991))/0xd);if(_0x405fb5===_0x3c36e1)break;else _0x552170['push'](_0x552170['shift']());}catch(_0x30882a){_0x552170['push'](_0x552170['shift']());}}}(_0x4417,0xd72ee));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x3ddc6d){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x3ddc6d];}function resolveAnthropicThinkingConfig(_0x1da967){var _0x1ff689={_0x2a8529:0x33e,_0x5135c3:0x33d,_0x412de2:0x343,_0x42058f:0x32c,_0x5a0e29:0x87},_0x4c1351={_0x4bd9d5:0x3b7};if(!_0x1da967)return void 0x0;function _0x39b3b1(_0x4cd736,_0x4d0482,_0x1b83b3,_0x2f2243){return _0x14f7(_0x1b83b3- -_0x4c1351._0x4bd9d5,_0x2f2243);}if(_0x1da967[_0x39b3b1(-0x342,-_0x1ff689._0x2a8529,-_0x1ff689._0x5135c3,-_0x1ff689._0x412de2)])return structuredClone(_0x1da967['anthropic']);function _0x585e57(_0x2518e1,_0x4a23f3,_0xffc0d7,_0x174213){return _0x14f7(_0x174213-0xe,_0x2518e1);}if(!_0x1da967['auto'])return void 0x0;return{'type':_0x39b3b1(-0x33a,-_0x1ff689._0x42058f,-0x332,-0x32d),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x1da967['auto'][_0x585e57(0x82,0x8f,_0x1ff689._0x5a0e29,0x89)])};}function resolveOpenAiReasoningConfig(_0x3890ea){var _0x312a4c={_0x4473bd:0xfa,_0x366163:0x1eb,_0x393706:0x1e8,_0x3fe8a2:0x1e6,_0x57db58:0x1e2,_0x41508d:0x1e1,_0x4dc5f9:0xfc,_0x20ebda:0xf8},_0x7ff3c1={_0x4b9c2d:0x165},_0x6ac505={_0x206b82:0x74};function _0x572cb3(_0x33d0d2,_0x585067,_0x34aa98,_0x259ecc){return _0x14f7(_0x259ecc-_0x6ac505._0x206b82,_0x585067);}if(!_0x3890ea)return void 0x0;const _0x4d753a=_0x3890ea[_0x572cb3(_0x312a4c._0x4473bd,0xfc,0xf5,_0x312a4c._0x4473bd)]?{'effort':_0x3890ea[_0x3bce47(_0x312a4c._0x366163,_0x312a4c._0x393706,_0x312a4c._0x3fe8a2,_0x312a4c._0x57db58)]['effort']}:void 0x0;function _0x3bce47(_0x44f9ad,_0x13e6c1,_0x140c9a,_0x465c7c){return _0x14f7(_0x44f9ad-_0x7ff3c1._0x4b9c2d,_0x465c7c);}if(!_0x3890ea[_0x3bce47(0x1e6,0x1ed,0x1e7,_0x312a4c._0x41508d)])return _0x4d753a;return{..._0x4d753a??{},...structuredClone(_0x3890ea[_0x572cb3(0xee,_0x312a4c._0x4dc5f9,_0x312a4c._0x20ebda,0xf5)])};}function _0x4417(){var _0x492866=['ndK1t1DNzLnV','mtuWvM9xterH','nde2mJC3qwPUtwL5','mtC5mJiWmJv6swLpvNu','yw50AhjVCgLJ','zwzMB3j0','mtb5qNv3q0K','nZG4n2LyyMzfCa','mZyWANrRqMLQ','ota5odD3zxDeq3y','mZa1otK0nvP3D0DrzW','B3bLBMfP','mZKYmZCXEhD6AgDp','nde4odrSuxPHCeO','nZGWmhruBg5mAG','zw5HyMXLza','yxv0BW','mJu2DhPTr0fP'];_0x4417=function(){return _0x492866;};return _0x4417();}function _0x14f7(_0x4958c6,_0x491f04){_0x4958c6=_0x4958c6-0x76;var _0x4417e7=_0x4417();var _0x14f794=_0x4417e7[_0x4958c6];if(_0x14f7['ZQrAem']===undefined){var _0x164b71=function(_0x232307){var _0x1b9212='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3ddc6d='',_0x1da967='';for(var _0x3890ea=0x0,_0x4d753a,_0x52cce0,_0x94a45d=0x0;_0x52cce0=_0x232307['charAt'](_0x94a45d++);~_0x52cce0&&(_0x4d753a=_0x3890ea%0x4?_0x4d753a*0x40+_0x52cce0:_0x52cce0,_0x3890ea++%0x4)?_0x3ddc6d+=String['fromCharCode'](0xff&_0x4d753a>>(-0x2*_0x3890ea&0x6)):0x0){_0x52cce0=_0x1b9212['indexOf'](_0x52cce0);}for(var _0x5e6b43=0x0,_0x403dc5=_0x3ddc6d['length'];_0x5e6b43<_0x403dc5;_0x5e6b43++){_0x1da967+='%'+('00'+_0x3ddc6d['charCodeAt'](_0x5e6b43)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1da967);};_0x14f7['iZptXM']=_0x164b71,_0x14f7['cEwrcS']={},_0x14f7['ZQrAem']=!![];}var _0x261268=_0x4417e7[0x0],_0x5d6ff5=_0x4958c6+_0x261268,_0xaf42f8=_0x14f7['cEwrcS'][_0x5d6ff5];return!_0xaf42f8?(_0x14f794=_0x14f7['iZptXM'](_0x14f794),_0x14f7['cEwrcS'][_0x5d6ff5]=_0x14f794):_0x14f794=_0xaf42f8,_0x14f794;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
1
+ function _0x5339(){var _0x5d59e7=['yxv0BW','mJiXmZCZnMTHs1vjAq','ndu3odm2nwHhsgfQwG','ndK3mMrrzwnAsa','nhzWAurXDW','mJeYnJyXB051C3PZ','yw50AhjVCgLJ','zw5HyMXLza','nJrLAwTxs0y','nJa2vKr5CMPQ','ndGZn0PZAgzvCW','zwzMB3j0','mMfYuhDYta','mZaXmdmZmJbzExHrt2W','mJe3nZbpCNbRv2m','nZq3nJuXwgHOAKXR','B3bLBMfP'];_0x5339=function(){return _0x5d59e7;};return _0x5339();}(function(_0x16ace6,_0x172350){var _0x927fab={_0x41e969:0x475,_0x186b42:0x479,_0x59d44e:0x2fa,_0x501004:0x2fd,_0x388af3:0x2f9,_0x551fda:0x474,_0x314b36:0x46c,_0x486352:0x47c,_0x1bd3f3:0x473,_0x5103a:0x2f8,_0x2a44a7:0x2fc,_0x389347:0x46a,_0x351ff8:0x477,_0x39c422:0x2f1,_0x5132ec:0x2fe,_0x3da070:0x306,_0x3fbe19:0x2fa,_0x8f78a6:0x2f5};function _0x468a10(_0x457a06,_0x365547,_0x182e41,_0x2a2bb1){return _0x2d88(_0x2a2bb1-0x21d,_0x365547);}function _0x235670(_0x431de7,_0x57bca8,_0x39e62f,_0x4b0085){return _0x2d88(_0x4b0085-0x395,_0x431de7);}var _0x421763=_0x16ace6();while(!![]){try{var _0x3dd6b3=parseInt(_0x235670(0x472,_0x927fab._0x41e969,0x47f,_0x927fab._0x186b42))/0x1*(parseInt(_0x468a10(0x2fd,_0x927fab._0x59d44e,0x2f7,0x2fe))/0x2)+-parseInt(_0x235670(0x483,0x47b,0x482,0x47c))/0x3+-parseInt(_0x468a10(0x2fc,_0x927fab._0x501004,_0x927fab._0x388af3,0x2f6))/0x4*(parseInt(_0x235670(_0x927fab._0x551fda,0x46d,0x464,_0x927fab._0x314b36))/0x5)+parseInt(_0x235670(0x46d,_0x927fab._0x486352,0x471,_0x927fab._0x1bd3f3))/0x6*(parseInt(_0x468a10(0x304,_0x927fab._0x59d44e,_0x927fab._0x5103a,_0x927fab._0x2a44a7))/0x7)+parseInt(_0x235670(_0x927fab._0x389347,_0x927fab._0x351ff8,0x46a,0x472))/0x8*(-parseInt(_0x468a10(_0x927fab._0x39c422,_0x927fab._0x5132ec,0x2f0,0x2f7))/0x9)+-parseInt(_0x468a10(_0x927fab._0x59d44e,_0x927fab._0x3da070,_0x927fab._0x3fbe19,0x300))/0xa*(parseInt(_0x468a10(0x2f3,0x2f6,0x2ed,_0x927fab._0x8f78a6))/0xb)+parseInt(_0x235670(0x47b,_0x927fab._0x486352,_0x927fab._0x351ff8,0x477))/0xc;if(_0x3dd6b3===_0x172350)break;else _0x421763['push'](_0x421763['shift']());}catch(_0x22b353){_0x421763['push'](_0x421763['shift']());}}}(_0x5339,0x79ee7));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x46c6bb){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x46c6bb];}function resolveAnthropicThinkingConfig(_0x35baf5){var _0x216c4d={_0x5c2a00:0x27f,_0x40776e:0x286,_0x410831:0x27e,_0x2649b0:0x285,_0x13c216:0x113,_0x557960:0x114,_0x2b666b:0x11e,_0x4bd31c:0x284,_0x56b8fc:0x27b,_0xa0d2ae:0x279},_0x53e9df={_0x42253b:0x34},_0x4d8484={_0x399da1:0x361};if(!_0x35baf5)return void 0x0;if(_0x35baf5[_0x555a02(-0x286,-_0x216c4d._0x5c2a00,-0x28c,-_0x216c4d._0x40776e)])return structuredClone(_0x35baf5[_0x555a02(-0x28a,-_0x216c4d._0x410831,-_0x216c4d._0x2649b0,-_0x216c4d._0x40776e)]);if(!_0x35baf5[_0x11459d(_0x216c4d._0x13c216,_0x216c4d._0x557960,0x11a,_0x216c4d._0x2b666b)])return void 0x0;function _0x555a02(_0x58daea,_0x3920f8,_0x20be5e,_0x220fea){return _0x2d88(_0x220fea- -_0x4d8484._0x399da1,_0x20be5e);}function _0x11459d(_0x257bee,_0x4b780d,_0x2c3863,_0x53abc1){return _0x2d88(_0x2c3863-_0x53e9df._0x42253b,_0x257bee);}return{'type':_0x555a02(-0x28c,-0x288,-_0x216c4d._0x4bd31c,-_0x216c4d._0x2649b0),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x35baf5[_0x555a02(-0x279,-_0x216c4d._0x56b8fc,-0x277,-0x27b)][_0x555a02(-0x282,-_0x216c4d._0xa0d2ae,-0x27d,-0x281)])};}function resolveOpenAiReasoningConfig(_0x33d938){var _0xd15a36={_0x5c9068:0x256,_0xdc1aa7:0x251,_0x212647:0xea,_0x5a783c:0xe2,_0x958a05:0xe8,_0x4105b8:0xe0,_0x35c7de:0xe5,_0xde207f:0x24d,_0x3db7a7:0x255,_0x4563bb:0x252,_0x5ae450:0x24d,_0x1de2a5:0x259},_0x276b00={_0x4e620d:0x2},_0x4e345f={_0x5648c6:0x337};if(!_0x33d938)return void 0x0;const _0x4b00d2=_0x33d938[_0x3a6406(-_0xd15a36._0x5c9068,-_0xd15a36._0xdc1aa7,-0x24d,-0x251)]?{'effort':_0x33d938[_0xaf0566(_0xd15a36._0x212647,0xef,_0xd15a36._0x5a783c,_0xd15a36._0x958a05)][_0xaf0566(_0xd15a36._0x4105b8,0xe1,_0xd15a36._0x35c7de,0xe2)]}:void 0x0;function _0x3a6406(_0x40ddcd,_0x5ecaab,_0x383d4a,_0x328aed){return _0x2d88(_0x5ecaab- -_0x4e345f._0x5648c6,_0x383d4a);}if(!_0x33d938[_0x3a6406(-0x254,-0x252,-_0xd15a36._0xde207f,-_0xd15a36._0x3db7a7)])return _0x4b00d2;function _0xaf0566(_0x33e2b3,_0x2dec9a,_0x6ec50d,_0x1a3638){return _0x2d88(_0x1a3638-_0x276b00._0x4e620d,_0x2dec9a);}return{..._0x4b00d2??{},...structuredClone(_0x33d938[_0x3a6406(-0x256,-_0xd15a36._0x4563bb,-_0xd15a36._0x5ae450,-_0xd15a36._0x1de2a5)])};}function _0x2d88(_0x454f66,_0x7ad7a5){_0x454f66=_0x454f66-0xd7;var _0x533906=_0x5339();var _0x2d88b3=_0x533906[_0x454f66];if(_0x2d88['vRrpbc']===undefined){var _0x104013=function(_0x3df4e6){var _0xddbf53='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x46c6bb='',_0x35baf5='';for(var _0x33d938=0x0,_0x4b00d2,_0x2a549e,_0x536054=0x0;_0x2a549e=_0x3df4e6['charAt'](_0x536054++);~_0x2a549e&&(_0x4b00d2=_0x33d938%0x4?_0x4b00d2*0x40+_0x2a549e:_0x2a549e,_0x33d938++%0x4)?_0x46c6bb+=String['fromCharCode'](0xff&_0x4b00d2>>(-0x2*_0x33d938&0x6)):0x0){_0x2a549e=_0xddbf53['indexOf'](_0x2a549e);}for(var _0xc772eb=0x0,_0x3faff0=_0x46c6bb['length'];_0xc772eb<_0x3faff0;_0xc772eb++){_0x35baf5+='%'+('00'+_0x46c6bb['charCodeAt'](_0xc772eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x35baf5);};_0x2d88['JjuvGw']=_0x104013,_0x2d88['oDJqpQ']={},_0x2d88['vRrpbc']=!![];}var _0x228547=_0x533906[0x0],_0x2b7cc2=_0x454f66+_0x228547,_0x4fb5ad=_0x2d88['oDJqpQ'][_0x2b7cc2];return!_0x4fb5ad?(_0x2d88b3=_0x2d88['JjuvGw'](_0x2d88b3),_0x2d88['oDJqpQ'][_0x2b7cc2]=_0x2d88b3):_0x2d88b3=_0x4fb5ad,_0x2d88b3;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x116a59,_0x2baea8){const _0x3c7562={_0x1252dd:0x86,_0x4ce8d6:0x77,_0x57db83:0x2d,_0x4e77cf:0x273,_0xed4bf9:0x264,_0x4459a9:0x240,_0x49d9f1:0x23b,_0x20da48:0x23c,_0x30da39:0x257,_0x1b26c2:0x8f,_0x5b594d:0x83,_0x3c660e:0x6e,_0x23b373:0x78,_0x5d92aa:0x5b,_0x19f12b:0x4b,_0x36b2e7:0x251,_0x116703:0x236,_0x486d82:0x25c},_0x59c1c0={_0x2c6a3e:0x44};function _0x1adcb2(_0x4d466a,_0xebc98b,_0x350f9f,_0x533f16){return _0x3a4e(_0x350f9f-_0x59c1c0._0x2c6a3e,_0x4d466a);}const _0x350678=_0x116a59();function _0x52c264(_0x1ffa26,_0x113522,_0x56722e,_0x239469){return _0x3a4e(_0x239469- -0x25d,_0x1ffa26);}while(!![]){try{const _0x2605e2=parseInt(_0x52c264(-0x74,-_0x3c7562._0x1252dd,-0x61,-_0x3c7562._0x4ce8d6))/0x1*(parseInt(_0x52c264(-0x38,-0x3a,-_0x3c7562._0x57db83,-0x49))/0x2)+parseInt(_0x1adcb2(_0x3c7562._0x4e77cf,0x26d,0x261,_0x3c7562._0xed4bf9))/0x3+-parseInt(_0x1adcb2(0x235,_0x3c7562._0x4459a9,0x23d,0x243))/0x4*(parseInt(_0x1adcb2(_0x3c7562._0x49d9f1,0x22f,0x23a,0x220))/0x5)+parseInt(_0x1adcb2(_0x3c7562._0x20da48,0x23b,_0x3c7562._0x30da39,0x272))/0x6+parseInt(_0x52c264(-_0x3c7562._0x1b26c2,-_0x3c7562._0x5b594d,-_0x3c7562._0x3c660e,-_0x3c7562._0x23b373))/0x7+-parseInt(_0x52c264(-_0x3c7562._0x5d92aa,-0x49,-0x3e,-_0x3c7562._0x19f12b))/0x8+parseInt(_0x1adcb2(_0x3c7562._0x36b2e7,_0x3c7562._0x116703,0x251,_0x3c7562._0x486d82))/0x9;if(_0x2605e2===_0x2baea8)break;else _0x350678['push'](_0x350678['shift']());}catch(_0x17a223){_0x350678['push'](_0x350678['shift']());}}}(_0x4570,0x4a060));function _0x5c18a3(_0x548e7f,_0x4c23d3,_0x5a4806,_0xbb7d50){return _0x3a4e(_0x5a4806-0x330,_0xbb7d50);}function createTextBlock(_0x2fa9a8){const _0xe31308={_0x5715b7:0x51f},_0x1f6331={_0x550941:0x338};function _0x4867b3(_0x33e155,_0x36688c,_0x268a6d,_0x124a36){return _0x3a4e(_0x268a6d-_0x1f6331._0x550941,_0x33e155);}return{'type':_0x4867b3(_0xe31308._0x5715b7,0x558,0x53c,0x521),'text':_0x2fa9a8};}function normalizeTextBlock(_0x27098c){const _0x40121a={_0x51361a:0xef},_0x3b77be={_0x521036:0x10e};function _0x32abe3(_0x57c991,_0x48e893,_0x6a59ff,_0x350b64){return _0x3a4e(_0x350b64- -_0x3b77be._0x521036,_0x57c991);}return createTextBlock(_0x27098c[_0x32abe3(0xf4,_0x40121a._0x51361a,0xf2,0xf6)]??'');}function _0x4570(){const _0x6ebb81=['AgfZ','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','B3bLBMfPx3jLyxnVBMLUzW','AM9PBG','zMLSDgvY','DhvYBL9Pza','mJC5mZK2mg5dCKz0Ba','yxnZAxn0yw50','khjLzgfJDgvKihjLyxnVBMLUzYK','DhvYBKLK','Dg9VBf91C2u','mZi3nJiYnfPWsMDRsG','mtaXmdGYz2TgAwzs','nMLRzgPQta','BgvUz3rO','B3v0Chv0x3rVA2vUCW','Bwf4vg9Rzw5Z','DxnHz2u','BwvZC2fNzxm','BwfW','AxnbCNjHEq','zMXHDe1HCa','nJa1nZi0teX4vwDj','DhjPBq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','mty4mdK3m3DoDeXAtq','mtuWntKZDNneuNvc','Aw5WDxrFDg9Rzw5Z','B3v0Chv0','DxnLCG','C3rVCf9YzwfZB24','B3v0Chv0vg9Rzw5Z','B3v0Chv0rM9YBwf0','Bwv0ywrHDge','C3LZDgvT','Bw9KzwW','CMvHC29UAw5Nx3rVA2vUCW','C3rVCfjLyxnVBG','CM9Szq','Dg9VBf9Yzxn1Bhq','ChjVDMLKzxjtDgf0zq','zw5JCNLWDgvKq29UDgvUDa','nta4mZG1DNDPwwDL','Dg9VBhm','y29UDgvUDa','mJbpBM9nqui','CMvHC29UAw5N','yw50AhjVCgLJx3rOAw5RAw5N','DgHPBMTPBMC','ywrK','ChvZAa','Bwf4x3rVA2vUCW','C3rHDhvZ','C2vZC2LVBKLK','y2fSBeLK','C3rYAw5N','Dgv4Da','DhLWzq'];_0x4570=function(){return _0x6ebb81;};return _0x4570();}function normalizeContent(_0x20a715){const _0x311b78={_0x4631e2:0xaf,_0x37f366:0x9c,_0x76e0d1:0xa2,_0x1a9f2c:0x60,_0x3824d9:0x8c,_0x2a0f2c:0x68,_0x190e0d:0x6e,_0x4cbe9d:0x50},_0x117ebc={_0x530de7:0xcc,_0x5d3fdf:0xbc,_0x145411:0xac,_0x10b6da:0xbd,_0x3976e4:0xc9},_0x1bc066={_0x52810f:0x196},_0x2fd6ce={_0x59902f:0x1d,_0x407e70:0x18b,_0x31ef32:0x115},_0x537d7c={_0x36e76a:0x161};if(typeof _0x20a715===_0x3b5a6d(0xb4,_0x311b78._0x4631e2,_0x311b78._0x37f366,_0x311b78._0x76e0d1))return[createTextBlock(_0x20a715)];if(!Array[_0x2647aa(_0x311b78._0x1a9f2c,_0x311b78._0x3824d9,0x6f,0x6d)](_0x20a715))return[];function _0x2647aa(_0x40c9a2,_0x18a781,_0x2608a9,_0x28ab9a){return _0x3a4e(_0x2608a9- -0x1ac,_0x28ab9a);}function _0x3b5a6d(_0x5865fc,_0x2a105d,_0x6c1136,_0xa17088){return _0x3a4e(_0xa17088- -_0x537d7c._0x36e76a,_0x2a105d);}return _0x20a715[_0x2647aa(_0x311b78._0x1a9f2c,_0x311b78._0x2a0f2c,_0x311b78._0x190e0d,_0x311b78._0x4cbe9d)](_0x20669c=>{function _0x35f75(_0x17e0a,_0x2f927a,_0x123539,_0x410927){return _0x2647aa(_0x17e0a-_0x2fd6ce._0x59902f,_0x2f927a-_0x2fd6ce._0x407e70,_0x2f927a- -_0x2fd6ce._0x31ef32,_0x123539);}if(_0x20669c[_0x35f75(-_0x117ebc._0x530de7,-_0x117ebc._0x5d3fdf,-0xaf,-0xb9)]===_0x35f75(-_0x117ebc._0x145411,-_0x117ebc._0x10b6da,-_0x117ebc._0x3976e4,-0xbc))return normalizeTextBlock(_0x20669c);function _0x4fc791(_0x58c106,_0x449045,_0x168cf2,_0x8f4c7a){return _0x3b5a6d(_0x58c106-0x45,_0x449045,_0x168cf2-0x184,_0x8f4c7a- -_0x1bc066._0x52810f);}return structuredClone(_0x20669c);});}function normalizeSystem(_0x4916f4=[]){const _0x15db0f={_0x53b8ef:0x3a7,_0x1cb05d:0x395},_0x20e941={_0x53f99c:0x19c};function _0x41d85f(_0x59b414,_0x55e421,_0x42d4a5,_0x57c714){return _0x3a4e(_0x55e421-_0x20e941._0x53f99c,_0x59b414);}function _0x34d7b2(_0x5ae5b3,_0x3746d7,_0x5a3781,_0x494117){return _0x3a4e(_0x494117- -0x1a7,_0x5a3781);}return normalizeContent(_0x4916f4)[_0x41d85f(0x3bb,_0x15db0f._0x53b8ef,0x3ab,_0x15db0f._0x1cb05d)](_0x1ee3fa=>_0x1ee3fa[_0x34d7b2(0x54,0x7a,0x6f,0x5e)]===_0x34d7b2(0x76,0x64,0x5a,0x5d));}function normalizeMessage(_0x3ac5b9){const _0x5f4ec6={_0x5f4b28:0x273,_0x5a63f2:0x265,_0x3e582d:0x346};function _0x4df136(_0x2fbacb,_0x647e88,_0x3aa95a,_0x3db7c8){return _0x3a4e(_0x647e88-0x73,_0x3db7c8);}function _0x2bb215(_0x118cec,_0x377707,_0x3bb24a,_0x468db6){return _0x3a4e(_0x118cec-0x13d,_0x468db6);}return{...typeof _0x3ac5b9['id']==='string'?{'id':_0x3ac5b9['id']}:{},'role':_0x3ac5b9[_0x4df136(_0x5f4ec6._0x5f4b28,_0x5f4ec6._0x5a63f2,0x27a,0x24e)],'content':normalizeContent(_0x3ac5b9['content']),..._0x3ac5b9[_0x2bb215(0x331,0x319,_0x5f4ec6._0x3e582d,_0x5f4ec6._0x3e582d)]?{'providerState':structuredClone(_0x3ac5b9['providerState'])}:{}};}function compileRequest(_0x4708e9){const _0x5279d6={_0x581b16:0x4f0,_0xf2ef4e:0x4e7,_0x58aec9:0x23,_0x100f32:0x4fb,_0x132190:0x4de,_0x1ecdef:0x50c,_0x5e42f4:0xd,_0x1c6de1:0xf,_0x45f0f7:0x52d,_0x37efa0:0x503,_0x33ba1c:0x18,_0x4e151e:0xd,_0x593c23:0x25},_0x14ffcc={_0x53418a:0x301},_0x347cd6={_0xb7134:0x1f7};function _0x165713(_0x538974,_0x5d4e32,_0x2690af,_0x7b4100){return _0x3a4e(_0x2690af- -_0x347cd6._0xb7134,_0x7b4100);}function _0x1422b5(_0x67990c,_0x48688f,_0x24fd9c,_0x308e1a){return _0x3a4e(_0x48688f-_0x14ffcc._0x53418a,_0x24fd9c);}return{'model':_0x4708e9[_0x1422b5(0x4dc,_0x5279d6._0x581b16,0x4e8,_0x5279d6._0xf2ef4e)]??_0x165713(0x2c,0x21,0x28,0xc),'max_tokens':_0x4708e9[_0x165713(_0x5279d6._0x58aec9,0x6,0x8,0x0)]??0x400,..._0x4708e9[_0x1422b5(0x4f2,_0x5279d6._0x100f32,_0x5279d6._0x132190,0x506)]?{'reasoning':structuredClone(_0x4708e9[_0x1422b5(0x4f4,0x4fb,_0x5279d6._0x132190,_0x5279d6._0x1ecdef)])}:{},'system':normalizeSystem(_0x4708e9[_0x165713(-_0x5279d6._0x5e42f4,0xc,-0x9,_0x5279d6._0x1c6de1)]),'messages':_0x4708e9[_0x1422b5(_0x5279d6._0x45f0f7,0x51a,_0x5279d6._0x37efa0,0x50a)]['map'](normalizeMessage),'tools':structuredClone(_0x4708e9[_0x165713(-_0x5279d6._0x33ba1c,0x5,0x0,-0xf)]??[]),'metadata':{'session_id':_0x4708e9[_0x165713(-_0x5279d6._0x4e151e,_0x5279d6._0x593c23,0xa,0xd)],'turn_id':_0x4708e9['turnId']}};}function toChatRequest(_0xf7542d){const _0x3fdaae={_0x358d1a:0x3da,_0x183e23:0x3e1,_0xaf6a8a:0x3df,_0x2aff0a:0x44a,_0x3c0e03:0x448,_0x5b1f63:0x3f3,_0x31d966:0x3cb,_0x185dc3:0x3e1,_0x318eff:0x3e5,_0x55aadf:0x3d5,_0x2b667a:0x3ec,_0xcf20e8:0x3ea,_0x494687:0x3ee,_0x2c9993:0x45c,_0x537003:0x46c,_0x14d986:0x462,_0x200be4:0x44d,_0x2c9c99:0x43b,_0x47f154:0x42e,_0x47358d:0x431,_0x55b39:0x436,_0x19096b:0x438,_0x292235:0x455,_0x5ef3da:0x427,_0x2d25d6:0x41e},_0x247fdd={_0x165895:0x249},_0x1ccde4={_0x1bff5d:0x1eb};function _0x195e71(_0x5b4ea1,_0xa8131b,_0x17aa3a,_0x3831a1){return _0x3a4e(_0x5b4ea1-_0x1ccde4._0x1bff5d,_0x3831a1);}function _0x35fefa(_0x320307,_0x5f1581,_0x9e9c95,_0x7b8a4e){return _0x3a4e(_0x7b8a4e-_0x247fdd._0x165895,_0x9e9c95);}return{'model':_0xf7542d[_0x195e71(_0x3fdaae._0x358d1a,_0x3fdaae._0x183e23,0x3d0,_0x3fdaae._0xaf6a8a)],'maxTokens':_0xf7542d[_0x35fefa(0x44f,0x461,_0x3fdaae._0x2aff0a,_0x3fdaae._0x3c0e03)],..._0xf7542d[_0x195e71(0x3e5,_0x3fdaae._0x5b1f63,_0x3fdaae._0x31d966,_0x3fdaae._0x185dc3)]?{'reasoning':structuredClone(_0xf7542d[_0x195e71(_0x3fdaae._0x318eff,_0x3fdaae._0x55aadf,_0x3fdaae._0x2b667a,_0x3fdaae._0xcf20e8)])}:{},'system':structuredClone(_0xf7542d[_0x195e71(0x3d9,_0x3fdaae._0x494687,0x3ec,0x3e9)]),'messages':structuredClone(_0xf7542d[_0x35fefa(_0x3fdaae._0x2c9993,_0x3fdaae._0x537003,0x452,_0x3fdaae._0x14d986)]),'tools':structuredClone(_0xf7542d[_0x35fefa(_0x3fdaae._0x200be4,_0x3fdaae._0x2c9c99,_0x3fdaae._0x47f154,0x440)]),'metadata':{'sessionId':_0xf7542d[_0x35fefa(_0x3fdaae._0x47358d,_0x3fdaae._0x55b39,_0x3fdaae._0x19096b,_0x3fdaae._0x55b39)]['session_id'],'turnId':_0xf7542d['metadata'][_0x35fefa(0x43b,0x453,0x446,_0x3fdaae._0x292235)]},..._0xf7542d[_0x35fefa(0x43a,0x443,0x41b,0x435)]?{'outputFormat':structuredClone(_0xf7542d[_0x35fefa(0x41f,_0x3fdaae._0x5ef3da,_0x3fdaae._0x2d25d6,0x435)])}:{}};}function toModelRequest(_0x58f599){const _0x262003={_0x15385e:0x327,_0x386385:0x308,_0x16cef6:0x319,_0x188fa9:0x2f8,_0x543958:0x2e5,_0x29a8d3:0x321,_0x515d95:0x337,_0xb120cb:0x2f2,_0x605ff9:0x30e,_0x3a67d0:0x2ef,_0xf0334f:0x309,_0x1059ec:0x2e7,_0x29962b:0x2e3},_0x42008d={_0x3298be:0xf7},_0x11d2ea={_0x21e731:0x108};function _0x418d69(_0x12acc1,_0x544240,_0x220e3c,_0x4d5e62){return _0x3a4e(_0x544240-_0x11d2ea._0x21e731,_0x220e3c);}function _0x147db9(_0x2bc054,_0x33ee09,_0x2cab5e,_0x45fb74){return _0x3a4e(_0x33ee09-_0x42008d._0x3298be,_0x45fb74);}return{'model':_0x58f599['model'],'max_tokens':_0x58f599[_0x418d69(_0x262003._0x15385e,0x31f,_0x262003._0x386385,_0x262003._0x16cef6)],..._0x58f599['reasoning']?{'reasoning':structuredClone(_0x58f599[_0x147db9(_0x262003._0x188fa9,0x2f1,0x2e6,_0x262003._0x543958)])}:{},'system':structuredClone(_0x58f599[_0x147db9(0x2cc,0x2e5,0x2e1,0x2e5)]),'messages':structuredClone(_0x58f599[_0x418d69(0x32f,_0x262003._0x29a8d3,0x30f,_0x262003._0x515d95)]),'tools':structuredClone(_0x58f599['tools']),'metadata':{'session_id':_0x58f599[_0x418d69(0x303,0x2f5,_0x262003._0xb120cb,0x30c)][_0x418d69(_0x262003._0x605ff9,0x309,_0x262003._0x3a67d0,0x310)],'turn_id':_0x58f599['metadata'][_0x147db9(_0x262003._0x29a8d3,0x307,_0x262003._0xf0334f,0x302)]},..._0x58f599[_0x147db9(_0x262003._0x1059ec,0x2e3,0x2e1,0x2d0)]?{'outputFormat':structuredClone(_0x58f599[_0x147db9(0x2f9,_0x262003._0x29962b,0x2ef,0x2f4)])}:{}};}function toProviderModelRequest(_0x255639){const _0x18a917={_0x40af6f:0x5aa,_0x2adc18:0x595,_0x47fa10:0x5ba,_0x5ea889:0x23e,_0x4d382d:0x234,_0x3931ca:0x59e,_0xe3d0b0:0x5b2,_0x2e2179:0x5a8};function _0x5db4e6(_0x491d1d,_0x1f46fc,_0x37005e,_0x3dd02c){return _0x3a4e(_0x1f46fc-0x3bb,_0x491d1d);}function _0x2b6bd3(_0x4e188f,_0x14ede9,_0x4c0873,_0x38ea96){return _0x3a4e(_0x38ea96-0x5a,_0x14ede9);}return{'model':_0x255639[_0x5db4e6(0x5a0,_0x18a917._0x40af6f,_0x18a917._0x2adc18,_0x18a917._0x47fa10)],'max_tokens':_0x255639['maxTokens'],'system':structuredClone(_0x255639[_0x2b6bd3(_0x18a917._0x5ea889,_0x18a917._0x4d382d,0x260,0x248)]),'messages':structuredClone(_0x255639['messages']),'tools':structuredClone(_0x255639[_0x5db4e6(_0x18a917._0x3931ca,_0x18a917._0xe3d0b0,0x599,_0x18a917._0x2e2179)])};}function toChatResponse(_0xeaa9e5){const _0x518ce6={_0x271f76:0x27e,_0x16f48a:0x27c,_0x4e2027:0x28b,_0x32dd75:0x26f,_0x381f94:0x31a,_0x34885d:0x285,_0x55c16d:0x29e,_0x3c0329:0x323,_0x160afd:0x317,_0x1ec9e5:0x349,_0x3d113c:0x331,_0x580143:0x348,_0x15c0a1:0x34d,_0x8e09ea:0x328,_0xa9c3d4:0x310,_0x56ca9e:0x33c,_0xd8af41:0x356,_0x292cb1:0x35f,_0x475ff5:0x30e,_0x1d0ac1:0x30b};function _0x46d3dc(_0x512a25,_0x26c530,_0x4565c9,_0x6a77f0){return _0x3a4e(_0x26c530-0x84,_0x512a25);}function _0x358dc1(_0x240b17,_0x31e8c8,_0x55da42,_0x5cd904){return _0x3a4e(_0x31e8c8-0x130,_0x5cd904);}return{'id':_0xeaa9e5['id'],'content':structuredClone(_0xeaa9e5[_0x46d3dc(_0x518ce6._0x271f76,_0x518ce6._0x16f48a,_0x518ce6._0x4e2027,_0x518ce6._0x32dd75)]),'stopReason':_0xeaa9e5[_0x358dc1(0x31b,_0x518ce6._0x381f94,0x308,0x330)],'usage':{'inputTokens':_0xeaa9e5[_0x46d3dc(_0x518ce6._0x34885d,0x29c,0x2a5,_0x518ce6._0x55c16d)][_0x358dc1(_0x518ce6._0x3c0329,_0x518ce6._0x160afd,0x317,0x306)],'outputTokens':_0xeaa9e5['usage'][_0x358dc1(_0x518ce6._0x1ec9e5,0x346,_0x518ce6._0x3d113c,0x330)],..._0xeaa9e5[_0x358dc1(0x355,_0x518ce6._0x580143,_0x518ce6._0x15c0a1,0x340)][_0x358dc1(_0x518ce6._0x8e09ea,0x320,_0x518ce6._0xa9c3d4,0x329)]!==void 0x0?{'reasoningTokens':_0xeaa9e5[_0x358dc1(_0x518ce6._0x56ca9e,0x348,_0x518ce6._0xd8af41,_0x518ce6._0x292cb1)][_0x358dc1(0x321,0x320,_0x518ce6._0x475ff5,_0x518ce6._0x1d0ac1)]}:{}},..._0xeaa9e5['providerState']?{'providerState':structuredClone(_0xeaa9e5['providerState'])}:{}};}function toModelResponse(_0x5ba56f){const _0x332a8e={_0x412e8a:0x154,_0x2b6de1:0x15b,_0x51b8ee:0x13e,_0x4f6672:0x13d,_0x37bffd:0x156,_0x3fd5ec:0x17c,_0x1ec759:0x598,_0x5ac6bf:0x584,_0x5ad12a:0x5b2,_0x52f784:0x13c,_0x4ad449:0x596,_0x1d5bc6:0x58e},_0x323ca6={_0x160a07:0x39a};function _0x4b49ba(_0xeb61f3,_0x574837,_0x14eed7,_0x344131){return _0x3a4e(_0x14eed7-_0x323ca6._0x160a07,_0xeb61f3);}function _0x397e89(_0xb07091,_0xafb352,_0x3622ae,_0x4a69d8){return _0x3a4e(_0xafb352- -0xba,_0x4a69d8);}return{'id':_0x5ba56f['id'],'type':'message','role':_0x397e89(0x144,_0x332a8e._0x412e8a,0x144,0x152),'content':structuredClone(_0x5ba56f[_0x397e89(_0x332a8e._0x2b6de1,_0x332a8e._0x51b8ee,_0x332a8e._0x4f6672,_0x332a8e._0x37bffd)]),'stop_reason':_0x5ba56f[_0x397e89(0x14c,0x137,0x13a,0x13c)],'stop_sequence':null,'usage':{'input_tokens':_0x5ba56f['usage']['inputTokens'],'output_tokens':_0x5ba56f[_0x397e89(_0x332a8e._0x3fd5ec,0x15e,0x179,0x165)][_0x4b49ba(_0x332a8e._0x1ec759,_0x332a8e._0x5ac6bf,0x585,0x5a2)],..._0x5ba56f['usage']['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x5ba56f[_0x4b49ba(0x5b9,0x5c9,_0x332a8e._0x5ad12a,0x5a9)]['reasoningTokens']}:{}},..._0x5ba56f[_0x397e89(0x120,0x13a,0x142,_0x332a8e._0x52f784)]?{'providerState':structuredClone(_0x5ba56f[_0x4b49ba(0x59f,_0x332a8e._0x4ad449,_0x332a8e._0x1d5bc6,0x575)])}:{}};}function responseToAssistantMessage(_0x295e80){const _0x169726={_0x363a92:0x145,_0x3d657a:0x136,_0x49a212:0x1fa,_0x4824ce:0x201,_0x7a5b5a:0x1f5,_0x3bcf4b:0x20b,_0x5e3069:0x1f2},_0x708586={_0x3f3679:0xc9};function _0xa7b1a6(_0xc311e2,_0x13a353,_0x95e706,_0x554c2c){return _0x3a4e(_0x95e706- -_0x708586._0x3f3679,_0xc311e2);}function _0x2a9254(_0x2f244c,_0xe562e3,_0x3de95c,_0x3597b7){return _0x3a4e(_0xe562e3-0xd,_0x3de95c);}return{'role':_0xa7b1a6(0x154,0x12e,_0x169726._0x363a92,_0x169726._0x3d657a),'content':normalizeContent(_0x295e80[_0x2a9254(_0x169726._0x49a212,0x205,0x1f7,0x21a)]),..._0x295e80[_0x2a9254(_0x169726._0x4824ce,0x201,0x1f2,_0x169726._0x7a5b5a)]?{'providerState':structuredClone(_0x295e80[_0x2a9254(0x1fc,0x201,_0x169726._0x3bcf4b,_0x169726._0x5e3069)])}:{}};}function createReasoningMessage(_0xf3a8e4){const _0x256f0f={_0x574c39:0x1bd,_0x16e483:0x1c0,_0x3651c9:0x19b,_0x3166cb:0x1b7,_0x97d277:0x19f,_0x2697a4:0x1a1,_0x4966d0:0x1a1,_0x4a885b:0x1a3,_0x4e2320:0x1ab},_0x4cff31={_0x17a923:0x3b},_0xa54e5f={_0x89fc90:0x478,_0x23f8c7:0x466,_0x45eb52:0x469,_0x1a8187:0x48e,_0xab1eeb:0x495},_0x171ddc={_0x4a3c9e:0xa4,_0x2f063b:0x84,_0x27237e:0x2dd},_0x4faa48=normalizeContent(_0xf3a8e4?.[_0x54ad48(0x1ad,0x1c9,_0x256f0f._0x574c39,_0x256f0f._0x16e483)])[_0x52f5a4(_0x256f0f._0x3651c9,_0x256f0f._0x3166cb,_0x256f0f._0x97d277,_0x256f0f._0x2697a4)](_0x265827=>{const _0x4eb087={_0x193c58:0x376,_0x4ef7c6:0x14f};function _0x56c7e5(_0x180f9d,_0x494ca7,_0x5f2cec,_0x2afcda){return _0x54ad48(_0x5f2cec,_0x494ca7-0xd7,_0x2afcda- -_0x4eb087._0x193c58,_0x2afcda-_0x4eb087._0x4ef7c6);}function _0x545719(_0x4214c6,_0x7e8283,_0x388d89,_0x56b35f){return _0x52f5a4(_0x4214c6-_0x171ddc._0x4a3c9e,_0x4214c6,_0x388d89-_0x171ddc._0x2f063b,_0x56b35f-_0x171ddc._0x27237e);}return _0x265827['type']==='anthropic_redacted_thinking'||_0x265827[_0x545719(_0xa54e5f._0x89fc90,0x475,0x473,0x478)]==='anthropic_thinking'||_0x265827[_0x545719(_0xa54e5f._0x23f8c7,_0xa54e5f._0x45eb52,0x477,0x478)]===_0x545719(0x466,_0xa54e5f._0x1a8187,_0xa54e5f._0xab1eeb,0x47c);});function _0x54ad48(_0x5cd5bd,_0x21f2ee,_0x47b02c,_0x33f1be){return _0x3a4e(_0x47b02c- -_0x4cff31._0x17a923,_0x5cd5bd);}if(_0x4faa48[_0x52f5a4(_0x256f0f._0x4966d0,_0x256f0f._0x4a885b,0x1bf,_0x256f0f._0x4e2320)]===0x0)return void 0x0;function _0x52f5a4(_0x203071,_0x2ff5fe,_0x377929,_0x5777ab){return _0x3a4e(_0x5777ab- -0x6a,_0x2ff5fe);}return{'role':'assistant','content':_0x4faa48};}function createAssistantTextMessage(_0x33adcf){const _0x453938={_0x2839ee:0x360,_0x3b9065:0x555,_0x1efec4:0x538},_0x5c153c={_0x47814d:0x32a},_0x359cdf=normalizeContent(_0x33adcf?.[_0x198806(0x348,_0x453938._0x2839ee,0x37b,0x360)])['filter'](_0x1b2904=>{const _0x105585={_0xf6e17b:0x200,_0x5b1403:0xb4,_0x1b7e53:0x12e};function _0x24063d(_0x478c52,_0x24831c,_0x5722ff,_0x2f3498){return _0x198806(_0x24831c,_0x478c52- -_0x105585._0xf6e17b,_0x5722ff-_0x105585._0x5b1403,_0x2f3498-_0x105585._0x1b7e53);}return _0x1b2904['type']===_0x24063d(0x16c,0x16d,0x172,0x165);});if(_0x359cdf['length']===0x0)return void 0x0;function _0x198806(_0x20aeda,_0xa13589,_0x5cf0f3,_0x32dabb){return _0x3a4e(_0xa13589-0x168,_0x20aeda);}function _0x82961f(_0x32ffb3,_0x1d6ba7,_0xc3794b,_0x236cdb){return _0x3a4e(_0x236cdb-_0x5c153c._0x47814d,_0x1d6ba7);}return{'role':_0x82961f(0x537,_0x453938._0x3b9065,0x54a,_0x453938._0x1efec4),'content':_0x359cdf};}function createToolUseMessage(_0x24d104){const _0x39b1b2={_0x492235:0x408,_0x16ff18:0x413,_0x1a6b7e:0x416,_0x1ec611:0x3ef},_0x4ad7bc={_0x1c1922:0xc8},_0x4b9fc1={_0x158035:0x1fc},_0x2b60ce={_0x1adf33:0x1ab},_0x3c3fb9=normalizeContent(_0x24d104?.[_0x45c015(0x139,0x121,0x130,0x133)])[_0x487d82(_0x39b1b2._0x492235,0x400,0x424,0x407)](_0x593347=>{const _0x493bbb={_0x3de020:0x5a};function _0x8b0382(_0x3f1405,_0x21ffe3,_0x1609bd,_0x3ed0fa){return _0x487d82(_0x3f1405-_0x493bbb._0x3de020,_0x21ffe3-0xa9,_0x3f1405,_0x3ed0fa- -0x5ac);}return _0x593347[_0x8b0382(-0x1a9,-0x1b2,-0x1b7,-_0x2b60ce._0x1adf33)]==='tool_use';});function _0x487d82(_0x374644,_0x269d2d,_0x378272,_0x4cd70b){return _0x3a4e(_0x4cd70b-_0x4b9fc1._0x158035,_0x378272);}function _0x45c015(_0x3fec8a,_0x551ee3,_0x5dfce4,_0x236b3b){return _0x3a4e(_0x5dfce4- -_0x4ad7bc._0x1c1922,_0x3fec8a);}if(_0x3c3fb9[_0x487d82(0x413,0x3f6,0x41d,0x411)]===0x0)return void 0x0;return{'role':_0x487d82(_0x39b1b2._0x16ff18,_0x39b1b2._0x1a6b7e,_0x39b1b2._0x1ec611,0x40a),'content':_0x3c3fb9};}function getTextFromMessage(_0x267a76){const _0x40a61e={_0x4543a9:0x259,_0x4b800a:0x274,_0x24a902:0x356,_0x55464f:0x321,_0x5dded5:0x315,_0x5e7508:0x32a},_0x2320c1={_0x4da38d:0x120};function _0x540203(_0xb99d6e,_0x4bc8f1,_0x3bf0ca,_0x1ad944){return _0x3a4e(_0x3bf0ca-_0x2320c1._0x4da38d,_0x1ad944);}function _0x3e296b(_0x2a118f,_0x4fe23c,_0x4dbd5a,_0x36ec4b){return _0x3a4e(_0x4fe23c-0x61,_0x4dbd5a);}return normalizeContent(_0x267a76?.[_0x3e296b(0x23d,_0x40a61e._0x4543a9,0x267,_0x40a61e._0x4b800a)])['filter'](_0x25277a=>_0x25277a[_0x540203(0x30d,0x335,0x325,0x308)]===_0x540203(0x30e,0x32c,0x324,0x327))[_0x540203(0x32f,_0x40a61e._0x24a902,0x33a,0x31f)](_0x5a7295=>_0x5a7295[_0x540203(0x336,0x30d,0x324,0x323)])[_0x540203(_0x40a61e._0x55464f,_0x40a61e._0x5dded5,_0x40a61e._0x5e7508,0x342)]('\x0a');}function getReasoningTextFromMessage(_0x3f5772){const _0x4781b4={_0x19cd00:0x193,_0x48e09a:0x1b0,_0x1cdbb6:0x1a1},_0x10e0a1={_0x518bd2:0x4fc,_0x3e342f:0x50e,_0x4b911a:0x25a,_0x8a7b44:0x23d,_0x38da66:0x526,_0x511a12:0x519,_0x1a8514:0x531,_0x5ef89f:0x25d,_0x4c2c69:0x264,_0x4d81c0:0x278,_0x30c718:0x265,_0xc281fc:0x253,_0x5a7592:0x25d,_0x45c9f0:0x259,_0x3a9721:0x26f,_0x1f14b7:0x269,_0x3baa6a:0x517,_0x25fdce:0x51b,_0x25d252:0x51d,_0x179012:0x523,_0x32e32d:0x502,_0x21aad7:0x51e,_0x392c6b:0x279,_0xdd7312:0x258,_0x10dce5:0x27c,_0x105ac4:0x272,_0x4b3628:0x280,_0x2ee345:0x288,_0x5011f9:0x26d,_0x510b53:0x509,_0x27ea54:0x4ee,_0x46ffd8:0x508},_0x56b81e={_0xb4139f:0x82};function _0x145e03(_0x19939c,_0x489b26,_0x2d0fd5,_0x37abcb){return _0x3a4e(_0x19939c- -_0x56b81e._0xb4139f,_0x2d0fd5);}function _0x5ba311(_0x147c4e,_0x3a3ae6,_0x2c707c,_0x351b6d){return _0x3a4e(_0x2c707c- -0x121,_0x3a3ae6);}return normalizeContent(_0x3f5772?.[_0x145e03(0x176,0x17a,0x17c,_0x4781b4._0x19cd00)])[_0x145e03(0x19a,0x1b2,_0x4781b4._0x48e09a,_0x4781b4._0x1cdbb6)](_0x5ebec6=>{const _0x108b69={_0x9c4dbe:0x1d6};if(_0x5ebec6['type']===_0x47ff95(_0x10e0a1._0x518bd2,_0x10e0a1._0x518bd2,0x522,_0x10e0a1._0x3e342f))return _0x5ebec6[_0x395e12(_0x10e0a1._0x4b911a,0x25b,_0x10e0a1._0x8a7b44,0x274)][_0x47ff95(_0x10e0a1._0x38da66,0x534,_0x10e0a1._0x511a12,_0x10e0a1._0x1a8514)]()[_0x395e12(0x273,_0x10e0a1._0x5ef89f,0x278,_0x10e0a1._0x4c2c69)]>0x0?[_0x5ebec6[_0x395e12(0x25a,0x271,0x265,0x255)]]:[];function _0x47ff95(_0xce4176,_0xc8bb7e,_0x358e34,_0x2ff44f){return _0x5ba311(_0xce4176-0x6d,_0xce4176,_0x2ff44f-0x434,_0x2ff44f-0x184);}function _0x395e12(_0x5e6583,_0xd0e092,_0xffd9f3,_0x26151d){return _0x5ba311(_0x5e6583-0x56,_0xffd9f3,_0x5e6583-0x17f,_0x26151d-_0x108b69._0x9c4dbe);}if(_0x5ebec6[_0x395e12(0x263,_0x10e0a1._0x4d81c0,0x24d,0x262)]===_0x395e12(_0x10e0a1._0x30c718,_0x10e0a1._0xc281fc,0x269,_0x10e0a1._0x5a7592))return[_0x395e12(0x26d,_0x10e0a1._0x45c9f0,_0x10e0a1._0x3a9721,_0x10e0a1._0x1f14b7)];if(_0x5ebec6[_0x47ff95(_0x10e0a1._0x3baa6a,0x517,0x50e,0x518)]!==_0x47ff95(0x52e,0x500,0x535,0x51c))return[];const _0x570a5f=_0x5ebec6['summary'][_0x47ff95(0x541,_0x10e0a1._0x25fdce,_0x10e0a1._0x25d252,0x52d)](_0x251a14=>_0x251a14[_0x47ff95(0x521,0x501,0x518,0x517)])[_0x47ff95(0x52e,_0x10e0a1._0x179012,_0x10e0a1._0x32e32d,_0x10e0a1._0x21aad7)](_0xcedbb4=>_0xcedbb4[_0x395e12(0x27c,0x28f,0x292,0x297)]()[_0x395e12(0x273,0x278,0x25d,0x274)]>0x0)['join']('\x0a\x0a');if(_0x570a5f[_0x395e12(0x273,0x27f,_0x10e0a1._0x392c6b,_0x10e0a1._0xdd7312)]>0x0)return[_0x570a5f];if(_0x5ebec6['text']&&_0x5ebec6[_0x395e12(0x262,0x27b,0x27b,0x270)][_0x395e12(_0x10e0a1._0x10dce5,0x287,_0x10e0a1._0x105ac4,_0x10e0a1._0x4b3628)]()[_0x395e12(0x273,_0x10e0a1._0x2ee345,_0x10e0a1._0x5011f9,0x25b)]>0x0)return[_0x5ebec6['text']];return _0x5ebec6[_0x47ff95(_0x10e0a1._0x510b53,_0x10e0a1._0x27ea54,0x4fa,_0x10e0a1._0x46ffd8)]?['(encrypted\x20reasoning)']:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x21156e){const _0x28dffd={_0x1fce7d:0x410,_0x2cbb89:0x438},_0x10ffeb={_0x73a65e:0x22d};function _0x1f4062(_0x1b4b45,_0x3b0f68,_0x585646,_0x1f5faa){return _0x3a4e(_0x1f5faa-_0x10ffeb._0x73a65e,_0x3b0f68);}function _0x118d03(_0x1fc3fe,_0x2bce7c,_0x34ac1c,_0x4b17f4){return _0x3a4e(_0x2bce7c-0x3c4,_0x4b17f4);}return normalizeContent(_0x21156e?.[_0x1f4062(0x417,_0x28dffd._0x1fce7d,_0x28dffd._0x2cbb89,0x425)])['filter'](_0x662206=>_0x662206[_0x118d03(0x5af,0x5c9,0x5cb,0x5de)]===_0x1f4062(0x442,0x425,0x43f,0x43e));}function getToolResultBlocks(_0x9608e1){const _0xac03b9={_0x2c66b4:0x429,_0x4936e9:0x414};function _0x53c624(_0x20077e,_0x3f877a,_0x331a54,_0x4064ca){return _0x3a4e(_0x3f877a-0x21c,_0x331a54);}function _0x341b4a(_0x246fe2,_0x4953a2,_0x35087d,_0x2aea4b){return _0x3a4e(_0x4953a2- -0x22b,_0x35087d);}return normalizeContent(_0x9608e1?.[_0x53c624(_0xac03b9._0x2c66b4,_0xac03b9._0x4936e9,0x420,0x416)])['filter'](_0x2fee22=>_0x2fee22[_0x53c624(0x436,0x421,0x425,0x423)]===_0x53c624(0x418,0x40f,0x413,0x420));}function _0x3a4e(_0x275d7a,_0x384c6f){_0x275d7a=_0x275d7a-0x1e5;const _0x45704b=_0x4570();let _0x3a4eb0=_0x45704b[_0x275d7a];if(_0x3a4e['XONiqK']===undefined){var _0x1cc997=function(_0x2a4569){const _0x155e6c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2fa9a8='',_0x27098c='';for(let _0x20a715=0x0,_0x20669c,_0x4916f4,_0x1ee3fa=0x0;_0x4916f4=_0x2a4569['charAt'](_0x1ee3fa++);~_0x4916f4&&(_0x20669c=_0x20a715%0x4?_0x20669c*0x40+_0x4916f4:_0x4916f4,_0x20a715++%0x4)?_0x2fa9a8+=String['fromCharCode'](0xff&_0x20669c>>(-0x2*_0x20a715&0x6)):0x0){_0x4916f4=_0x155e6c['indexOf'](_0x4916f4);}for(let _0x3ac5b9=0x0,_0x4708e9=_0x2fa9a8['length'];_0x3ac5b9<_0x4708e9;_0x3ac5b9++){_0x27098c+='%'+('00'+_0x2fa9a8['charCodeAt'](_0x3ac5b9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x27098c);};_0x3a4e['ZqtYRF']=_0x1cc997,_0x3a4e['tzjrds']={},_0x3a4e['XONiqK']=!![];}const _0x59b8a9=_0x45704b[0x0],_0x5f44d8=_0x275d7a+_0x59b8a9,_0x33848e=_0x3a4e['tzjrds'][_0x5f44d8];return!_0x33848e?(_0x3a4eb0=_0x3a4e['ZqtYRF'](_0x3a4eb0),_0x3a4e['tzjrds'][_0x5f44d8]=_0x3a4eb0):_0x3a4eb0=_0x33848e,_0x3a4eb0;}function createToolResultUserMessage(_0xe3b818){const _0xd0a467={_0x3e4dab:0xab,_0xc42233:0xbd,_0x3dfb08:0x95,_0x1b1195:0x7a,_0x1e0577:0x92,_0x48fdfc:0x68},_0xa57d33={_0x1added:0x173,_0x50fbd9:0x17d,_0x33b78d:0x198,_0x1c0a96:0x1a2,_0x148af5:0x1af,_0xf97b43:0x194,_0x46040b:0x487,_0x8381a0:0x4b8},_0x3aadb9={_0x4dfbe9:0x56,_0x3c6821:0xd9},_0x3b7668={_0x43387d:0x294},_0x138c77={_0x3cbb47:0x37d};function _0xaf2306(_0x2fcb22,_0xae83df,_0x1cdd85,_0x1db209){return _0x3a4e(_0x1db209-_0x138c77._0x3cbb47,_0x1cdd85);}function _0x2ba05e(_0x220cac,_0x16b13a,_0x1b5cd9,_0x4158f6){return _0x3a4e(_0x220cac- -_0x3b7668._0x43387d,_0x1b5cd9);}return{'role':_0x2ba05e(-_0xd0a467._0x3e4dab,-_0xd0a467._0xc42233,-_0xd0a467._0x3dfb08,-0xa0),'content':_0xe3b818[_0x2ba05e(-_0xd0a467._0x1b1195,-_0xd0a467._0x1e0577,-0x87,-_0xd0a467._0x48fdfc)](_0xaa5a9b=>{const _0x2e421d={_0x2069d6:0x22a,_0x5852d6:0x11f,_0xcfc28b:0x161};function _0x1a8039(_0x310f43,_0x589e78,_0x18f07c,_0x2143f7){return _0xaf2306(_0x310f43-0x50,_0x589e78-_0x3aadb9._0x4dfbe9,_0x589e78,_0x18f07c- -_0x3aadb9._0x3c6821);}function _0x3f33fa(_0x3a919b,_0xc55962,_0x23450f,_0x562e6f){return _0x2ba05e(_0x3a919b-_0x2e421d._0x2069d6,_0xc55962-_0x2e421d._0x5852d6,_0x23450f,_0x562e6f-_0x2e421d._0xcfc28b);}return{'type':_0x3f33fa(0x189,_0xa57d33._0x1added,0x178,_0xa57d33._0x50fbd9),'tool_use_id':_0xaa5a9b[_0x3f33fa(_0xa57d33._0x33b78d,0x17f,_0xa57d33._0x1c0a96,_0xa57d33._0x148af5)],'content':_0xaa5a9b[_0x3f33fa(0x18e,0x193,0x179,0x184)]??_0xaa5a9b[_0x3f33fa(0x17e,0x192,_0xa57d33._0xf97b43,0x19b)],'is_error':_0xaa5a9b[_0x1a8039(_0xa57d33._0x46040b,_0xa57d33._0x8381a0,0x4a4,0x4b0)]==='error'};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x5c18a3(0x51b,0x553,0x538,0x548);function synthesizeMissingToolResults(_0x5237d0){const _0x29a3c2={_0x3e7c1e:0x185,_0x57da04:0xb0,_0x12db80:0x172,_0x53b7b3:0x159,_0x288c9a:0x187,_0x41c3f8:0x189,_0x5a7041:0x16f,_0x409f6b:0x184,_0x15cc24:0x16d,_0x1b2025:0x169,_0x2d13c7:0xbd,_0x1c68f1:0x9d,_0x5d0002:0xb3},_0x5553c1={_0x3583b0:0xa,_0x4e3e2e:0x89};function _0x3b6306(_0x409c2f,_0x26efc0,_0x3f42a7,_0x25b1f7){return _0x5c18a3(_0x409c2f-_0x5553c1._0x3583b0,_0x26efc0-_0x5553c1._0x4e3e2e,_0x409c2f- -0x5e6,_0x25b1f7);}const _0x4e1a87=new Set();for(const _0xabe492 of _0x5237d0){for(const _0x500d79 of getToolResultBlocks(_0xabe492)){_0x4e1a87[_0x125a4c(-0x181,-0x18a,-_0x29a3c2._0x3e7c1e,-0x17b)](_0x500d79['tool_use_id']);}}const _0x47c01e=[];for(const _0xf83bef of _0x5237d0){_0x47c01e[_0x3b6306(-0xb8,-_0x29a3c2._0x57da04,-0xca,-0xa1)](_0xf83bef);const _0x2ddbbc=getToolUseBlocks(_0xf83bef)['filter'](_0x27234b=>!_0x4e1a87[_0x125a4c(-0x17f,-0x181,-0x16c,-0x177)](_0x27234b['id']));if(_0x2ddbbc[_0x125a4c(-0x184,-_0x29a3c2._0x12db80,-0x164,-_0x29a3c2._0x53b7b3)]===0x0)continue;_0x47c01e[_0x125a4c(-_0x29a3c2._0x288c9a,-_0x29a3c2._0x41c3f8,-_0x29a3c2._0x5a7041,-_0x29a3c2._0x409f6b)]({'role':'user','content':_0x2ddbbc[_0x125a4c(-_0x29a3c2._0x409f6b,-_0x29a3c2._0x15cc24,-_0x29a3c2._0x1b2025,-_0x29a3c2._0x12db80)](_0x3d9c3f=>({'type':'tool_result','tool_use_id':_0x3d9c3f['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x102ff8 of _0x2ddbbc){_0x4e1a87[_0x3b6306(-0xb9,-_0x29a3c2._0x2d13c7,-_0x29a3c2._0x1c68f1,-_0x29a3c2._0x5d0002)](_0x102ff8['id']);}}function _0x125a4c(_0x14a855,_0x42fa9f,_0x5a235b,_0x5c4941){return _0x5c18a3(_0x14a855-0xee,_0x42fa9f-0x124,_0x42fa9f- -0x6b7,_0x14a855);}return _0x47c01e;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
1
+ (function(_0x4e8083,_0x48a3c2){const _0x39c7c1={_0x27b634:0x6,_0x32894a:0xa,_0x54bd80:0x171,_0x4c0b7e:0x25,_0x39ff2c:0x16a,_0xdb2886:0x166,_0x13fe6c:0x15d,_0xbe9f57:0x15f,_0xe15b3d:0x14b,_0x1771ac:0x2e,_0xb7ea1a:0x168,_0x130b39:0x180,_0x184f4c:0xa,_0x5f2f00:0x1d,_0x1e0d0e:0x1c,_0x12d3c8:0x1b,_0x1d0735:0x4,_0x406bde:0x3},_0x4c868f={_0x54216f:0x7f},_0x25a908={_0x4f0870:0xfd},_0x5001f7=_0x4e8083();function _0x551fca(_0x12d13c,_0x28b9a3,_0x70a407,_0x17bfe9){return _0x4593(_0x12d13c- -_0x25a908._0x4f0870,_0x28b9a3);}function _0x34278f(_0x36254c,_0x5bc332,_0xc9f54,_0x3000e7){return _0x4593(_0x36254c-_0x4c868f._0x54216f,_0x5bc332);}while(!![]){try{const _0xaa1419=parseInt(_0x551fca(0x8,-0xc,_0x39c7c1._0x27b634,-_0x39c7c1._0x32894a))/0x1*(-parseInt(_0x34278f(0x170,_0x39c7c1._0x54bd80,0x17e,0x183))/0x2)+parseInt(_0x551fca(-0xd,-0x1a,-_0x39c7c1._0x4c0b7e,-0x16))/0x3+-parseInt(_0x34278f(_0x39c7c1._0x39ff2c,0x159,_0x39c7c1._0xdb2886,_0x39c7c1._0x13fe6c))/0x4+-parseInt(_0x34278f(0x176,_0x39c7c1._0xbe9f57,0x17f,0x169))/0x5*(-parseInt(_0x34278f(0x162,0x160,_0x39c7c1._0xe15b3d,_0x39c7c1._0xbe9f57))/0x6)+-parseInt(_0x551fca(0x13,0xe,0x2e,_0x39c7c1._0x1771ac))/0x7*(parseInt(_0x34278f(_0x39c7c1._0xb7ea1a,_0x39c7c1._0x130b39,0x17d,0x157))/0x8)+parseInt(_0x551fca(_0x39c7c1._0x184f4c,_0x39c7c1._0x5f2f00,_0x39c7c1._0x1e0d0e,-0xa))/0x9*(-parseInt(_0x551fca(-0x1d,-0xc,-_0x39c7c1._0x12d3c8,-0x34))/0xa)+parseInt(_0x551fca(_0x39c7c1._0x1d0735,0xe,-_0x39c7c1._0x1d0735,-_0x39c7c1._0x406bde))/0xb;if(_0xaa1419===_0x48a3c2)break;else _0x5001f7['push'](_0x5001f7['shift']());}catch(_0x6db9d1){_0x5001f7['push'](_0x5001f7['shift']());}}}(_0x5652,0x252f4));function _0x10c552(_0x3a7325,_0x592c3c,_0x345dde,_0x2eff74){return _0x4593(_0x2eff74-0x144,_0x3a7325);}function createTextBlock(_0x5602d1){return{'type':'text','text':_0x5602d1};}function normalizeTextBlock(_0x2b6655){return createTextBlock(_0x2b6655['text']??'');}function normalizeContent(_0x283fc9){const _0x59e69d={_0x5277e:0x456,_0x2048d3:0x450},_0x13d26f={_0xa0a877:0x1d7,_0x6db85c:0x1de,_0x58c134:0x1ce};if(typeof _0x283fc9==='string')return[createTextBlock(_0x283fc9)];if(!Array['isArray'](_0x283fc9))return[];function _0x402654(_0x2cde72,_0x532d68,_0x85ce16,_0xd04beb){return _0x4593(_0x532d68-0x35c,_0x85ce16);}return _0x283fc9[_0x402654(0x462,_0x59e69d._0x5277e,0x441,_0x59e69d._0x2048d3)](_0x5a5e2d=>{const _0x5f29c8={_0xfb686a:0x151,_0x50d71b:0x274};function _0x393af4(_0x1b90aa,_0xb6128,_0x3f5d52,_0x5cdc25){return _0x402654(_0x1b90aa-_0x5f29c8._0xfb686a,_0x3f5d52- -_0x5f29c8._0x50d71b,_0x5cdc25,_0x5cdc25-0x13b);}if(_0x5a5e2d[_0x393af4(_0x13d26f._0xa0a877,_0x13d26f._0x6db85c,_0x13d26f._0x58c134,0x1dd)]==='text')return normalizeTextBlock(_0x5a5e2d);return structuredClone(_0x5a5e2d);});}function normalizeSystem(_0x2e2c3b=[]){const _0x73809f={_0x3fe73b:0x115,_0x56f602:0xfe,_0x5a3004:0xee,_0x34c363:0x116},_0x40c213={_0x28608d:0x220},_0x54e9ab={_0x1edf5d:0x0};function _0x4e06a4(_0x5c53cd,_0x5b0209,_0x3f8c3d,_0xb1298d){return _0x4593(_0x5b0209-_0x54e9ab._0x1edf5d,_0xb1298d);}function _0x4378ce(_0x4ef8de,_0x487685,_0x520073,_0x1a6607){return _0x4593(_0x4ef8de-_0x40c213._0x28608d,_0x487685);}return normalizeContent(_0x2e2c3b)[_0x4e06a4(_0x73809f._0x3fe73b,_0x73809f._0x56f602,_0x73809f._0x5a3004,_0x73809f._0x34c363)](_0x3f962c=>_0x3f962c[_0x4e06a4(0xec,0xe6,0xf0,0xdc)]===_0x4e06a4(0xfd,0xf9,0xf2,0xf0));}function normalizeMessage(_0x31b152){const _0x45f34f={_0xd3e9fd:0x182,_0x5bf9be:0x177,_0x3f9ff0:0x24d,_0x4efd4f:0x244,_0x1533f8:0x23b},_0x1363be={_0xd2b7aa:0x137};function _0x6681a2(_0x1d69ef,_0x5cfcfe,_0x3bfa3f,_0x569982){return _0x4593(_0x1d69ef-_0x1363be._0xd2b7aa,_0x569982);}function _0x173f5d(_0x49f3c7,_0x21e206,_0x581a10,_0xe5e0c1){return _0x4593(_0x581a10- -0x26f,_0x49f3c7);}return{...typeof _0x31b152['id']===_0x173f5d(-0x188,-_0x45f34f._0xd3e9fd,-0x16d,-_0x45f34f._0x5bf9be)?{'id':_0x31b152['id']}:{},'role':_0x31b152['role'],'content':normalizeContent(_0x31b152[_0x6681a2(_0x45f34f._0x3f9ff0,0x25b,0x247,0x24e)]),..._0x31b152[_0x6681a2(_0x45f34f._0x4efd4f,0x236,0x23b,_0x45f34f._0x1533f8)]?{'providerState':structuredClone(_0x31b152['providerState'])}:{}};}function compileRequest(_0x2bb073){const _0x3c1ce3={_0x2a80b6:0x2a5,_0x93186:0x28b,_0x585675:0xa1,_0x415b86:0x8b,_0x45f62e:0x2a2,_0x2c4c90:0x2ad,_0x33a8bb:0x97,_0x19172d:0xb0,_0x2f3dc1:0x29a,_0x2000f3:0x2ae,_0x4fbc1b:0xa2},_0x1cf754={_0x3134de:0x19f};function _0x4fe668(_0x5195ea,_0x37f777,_0x29e785,_0x6fd0fe){return _0x4593(_0x6fd0fe- -0x19d,_0x5195ea);}function _0x4f9a78(_0x4f3bc3,_0x1f0afb,_0x21be1d,_0x52c94d){return _0x4593(_0x4f3bc3-_0x1cf754._0x3134de,_0x21be1d);}return{'model':_0x2bb073[_0x4fe668(-0xb4,-0xa1,-0x94,-0xa5)]??'claude-sonnet-4-20250514','max_tokens':_0x2bb073[_0x4f9a78(_0x3c1ce3._0x2a80b6,0x290,_0x3c1ce3._0x93186,0x2be)]??0x400,..._0x2bb073[_0x4fe668(-0x8d,-0x78,-_0x3c1ce3._0x585675,-_0x3c1ce3._0x415b86)]?{'reasoning':structuredClone(_0x2bb073[_0x4f9a78(0x2b1,_0x3c1ce3._0x45f62e,0x2c3,_0x3c1ce3._0x2c4c90)])}:{},'system':normalizeSystem(_0x2bb073[_0x4fe668(-0xc8,-_0x3c1ce3._0x33a8bb,-0xbc,-_0x3c1ce3._0x19172d)]),'messages':_0x2bb073[_0x4f9a78(_0x3c1ce3._0x2f3dc1,0x292,0x2b1,_0x3c1ce3._0x2000f3)][_0x4fe668(-0x9b,-0x97,-_0x3c1ce3._0x4fbc1b,-0xa3)](normalizeMessage),'tools':structuredClone(_0x2bb073['tools']??[]),'metadata':{'session_id':_0x2bb073['sessionId'],'turn_id':_0x2bb073['turnId']}};}function toChatRequest(_0x406af9){const _0x2fa7d0={_0x3b13a2:0x3c9,_0x1fbf30:0x3ce,_0x2e045b:0x3d2,_0x26ee48:0x3d7,_0x4282ba:0x3e9,_0xdf9344:0x3d1,_0x542879:0x137,_0x3dc9f5:0x146,_0x7d95b:0x3e3,_0x2e5848:0x3cc,_0x316cc6:0x3b3,_0x594209:0x3b9,_0x5b765b:0x144,_0x203310:0x140,_0x5d8196:0x15c},_0x718da7={_0x3b7505:0x4a},_0x5566df={_0x4e8bcc:0x2d1};function _0x4b3645(_0x182511,_0x15d819,_0x4c0f3c,_0x5d3487){return _0x4593(_0x5d3487-_0x5566df._0x4e8bcc,_0x182511);}function _0x5bdef8(_0x3891ab,_0x3163b2,_0x39fa71,_0x2062f1){return _0x4593(_0x3163b2-_0x718da7._0x3b7505,_0x2062f1);}return{'model':_0x406af9['model'],'maxTokens':_0x406af9[_0x4b3645(_0x2fa7d0._0x3b13a2,_0x2fa7d0._0x1fbf30,_0x2fa7d0._0x2e045b,_0x2fa7d0._0x26ee48)],..._0x406af9[_0x4b3645(_0x2fa7d0._0x4282ba,0x3e0,_0x2fa7d0._0xdf9344,0x3e3)]?{'reasoning':structuredClone(_0x406af9[_0x5bdef8(0x164,0x15c,0x147,0x143)])}:{},'system':structuredClone(_0x406af9[_0x5bdef8(0x12b,_0x2fa7d0._0x542879,_0x2fa7d0._0x3dc9f5,0x152)]),'messages':structuredClone(_0x406af9[_0x4b3645(_0x2fa7d0._0x3b13a2,_0x2fa7d0._0x7d95b,0x3c7,_0x2fa7d0._0x2e5848)]),'tools':structuredClone(_0x406af9['tools']),'metadata':{'sessionId':_0x406af9[_0x4b3645(0x3d3,_0x2fa7d0._0x316cc6,0x3c7,0x3b9)]['session_id'],'turnId':_0x406af9[_0x4b3645(0x3b7,0x3b6,0x3ba,_0x2fa7d0._0x594209)][_0x5bdef8(_0x2fa7d0._0x5b765b,_0x2fa7d0._0x203310,0x132,_0x2fa7d0._0x5d8196)]},..._0x406af9['outputFormat']?{'outputFormat':structuredClone(_0x406af9['outputFormat'])}:{}};}function toModelRequest(_0x9d9db3){const _0xf07be8={_0x44d8d7:0x1be,_0x4465ea:0x1a9,_0x4197bb:0x192,_0x591e29:0x1a7,_0x943ec5:0x1b5,_0x11b00b:0x19a,_0xfd4b53:0x1c1,_0x1d1cb6:0x17d,_0x134b8b:0x19c,_0x5c2003:0x1a0,_0x41c6f6:0x1ab,_0x4c0d6b:0x195,_0x5f24a0:0x182,_0x432706:0x1af},_0x57d9ab={_0x435bcb:0x11a};function _0x322005(_0x3d0867,_0x2f5ba3,_0x36c6c0,_0x423078){return _0x4593(_0x3d0867-_0x57d9ab._0x435bcb,_0x36c6c0);}function _0x1d67ce(_0x4da944,_0x488a72,_0xb06901,_0x31e32c){return _0x4593(_0xb06901- -0x2a1,_0x4da944);}return{'model':_0x9d9db3[_0x1d67ce(-0x1b1,-_0xf07be8._0x44d8d7,-_0xf07be8._0x4465ea,-_0xf07be8._0x4197bb)],'max_tokens':_0x9d9db3[_0x1d67ce(-_0xf07be8._0x591e29,-0x1b8,-0x1a1,-_0xf07be8._0x943ec5)],..._0x9d9db3['reasoning']?{'reasoning':structuredClone(_0x9d9db3[_0x1d67ce(-0x192,-0x17d,-0x18f,-_0xf07be8._0x11b00b)])}:{},'system':structuredClone(_0x9d9db3['system']),'messages':structuredClone(_0x9d9db3[_0x1d67ce(-0x198,-_0xf07be8._0xfd4b53,-0x1a6,-0x1ba)]),'tools':structuredClone(_0x9d9db3[_0x1d67ce(-_0xf07be8._0x1d1cb6,-_0xf07be8._0x134b8b,-0x193,-0x18c)]),'metadata':{'session_id':_0x9d9db3[_0x1d67ce(-0x19f,-0x1b5,-0x1b9,-_0xf07be8._0x5c2003)]['sessionId'],'turn_id':_0x9d9db3['metadata'][_0x322005(0x21d,0x231,0x206,0x233)]},..._0x9d9db3[_0x1d67ce(-0x193,-_0xf07be8._0x41c6f6,-_0xf07be8._0x4c0d6b,-_0xf07be8._0x5f24a0)]?{'outputFormat':structuredClone(_0x9d9db3[_0x1d67ce(-0x17d,-_0xf07be8._0x432706,-_0xf07be8._0x4c0d6b,-0x179)])}:{}};}function toProviderModelRequest(_0x4fea6f){const _0x3f3c81={_0x3caeb9:0x4c9,_0x6d260f:0x49b,_0x39dd0e:0x1e9,_0x395edd:0x1dd,_0x18d06b:0x1cf,_0x127e79:0x1d2,_0x70abbe:0x1bd,_0x41818f:0x1d2},_0x3191f2={_0x2cb12a:0x2d6},_0x34ee23={_0x3e03dc:0x3b7};function _0x5e45be(_0x364c85,_0x499956,_0x4bc784,_0x19fcda){return _0x4593(_0x499956-_0x34ee23._0x3e03dc,_0x364c85);}function _0x542ba6(_0x714367,_0x3782cf,_0x2d6da7,_0x5dde17){return _0x4593(_0x714367- -_0x3191f2._0x2cb12a,_0x5dde17);}return{'model':_0x4fea6f[_0x5e45be(_0x3f3c81._0x3caeb9,0x4af,0x49a,_0x3f3c81._0x6d260f)],'max_tokens':_0x4fea6f[_0x542ba6(-0x1d6,-_0x3f3c81._0x39dd0e,-_0x3f3c81._0x395edd,-0x1e1)],'system':structuredClone(_0x4fea6f['system']),'messages':structuredClone(_0x4fea6f[_0x542ba6(-0x1db,-0x1c2,-0x1d7,-_0x3f3c81._0x18d06b)]),'tools':structuredClone(_0x4fea6f[_0x542ba6(-0x1c8,-_0x3f3c81._0x127e79,-_0x3f3c81._0x70abbe,-_0x3f3c81._0x41818f)])};}function toChatResponse(_0x281fa4){const _0x5ef4f4={_0x2c7c56:0x156,_0x3073ab:0x143,_0x25d507:0x163,_0x345dc2:0x1fc,_0x7a948d:0x217,_0x5cc233:0x1f3,_0x381eb0:0x20c,_0x184f7e:0x171,_0x22ebb:0x158,_0x126e99:0x164,_0x4fe044:0x157,_0x2e3bba:0x16b,_0x420a09:0x231,_0x423757:0x22d,_0x2eed51:0x20a,_0x5de87b:0x215},_0x3581e4={_0x255292:0x10e};function _0x1b9820(_0x53490f,_0x21c357,_0x476f8f,_0x41f3a4){return _0x4593(_0x53490f-_0x3581e4._0x255292,_0x476f8f);}function _0x44a410(_0x2361cd,_0x2c90fd,_0x7144c6,_0x548c82){return _0x4593(_0x2c90fd- -0x267,_0x7144c6);}return{'id':_0x281fa4['id'],'content':structuredClone(_0x281fa4[_0x1b9820(0x224,0x235,0x211,0x235)]),'stopReason':_0x281fa4[_0x1b9820(0x1f3,0x207,0x1ef,0x1fc)],'usage':{'inputTokens':_0x281fa4['usage'][_0x44a410(-0x14a,-_0x5ef4f4._0x2c7c56,-_0x5ef4f4._0x3073ab,-_0x5ef4f4._0x25d507)],'outputTokens':_0x281fa4['usage'][_0x1b9820(_0x5ef4f4._0x345dc2,_0x5ef4f4._0x7a948d,_0x5ef4f4._0x5cc233,_0x5ef4f4._0x381eb0)],..._0x281fa4[_0x44a410(-_0x5ef4f4._0x184f7e,-_0x5ef4f4._0x22ebb,-0x15f,-0x164)][_0x44a410(-0x179,-0x15e,-0x178,-0x177)]!==void 0x0?{'reasoningTokens':_0x281fa4[_0x44a410(-_0x5ef4f4._0x126e99,-0x158,-_0x5ef4f4._0x4fe044,-_0x5ef4f4._0x2e3bba)][_0x1b9820(_0x5ef4f4._0x7a948d,_0x5ef4f4._0x420a09,_0x5ef4f4._0x423757,_0x5ef4f4._0x2eed51)]}:{}},..._0x281fa4[_0x44a410(-0x157,-0x15a,-0x15a,-0x171)]?{'providerState':structuredClone(_0x281fa4[_0x1b9820(0x21b,0x205,0x202,_0x5ef4f4._0x5de87b)])}:{}};}function toModelResponse(_0x3eac31){const _0x19896d={_0x32fd29:0x32b,_0x35f254:0x348,_0x28603f:0x32f,_0x1467f6:0xc0,_0x548d2e:0xcb,_0x3b07d0:0x346,_0xda0397:0x33c,_0x212fd0:0xd4,_0x51ffb7:0xd6,_0x2766bc:0xed,_0x378ea0:0xc2,_0x5351c7:0xf3,_0x12c4e7:0xd2,_0x165092:0x102,_0x592486:0xf5,_0x35aa0c:0x111},_0x4cb77a={_0x106827:0x24e};function _0x8c657a(_0x578997,_0x5e5a1f,_0x4dda44,_0x5b76bb){return _0x4593(_0x4dda44- -0x1e1,_0x5b76bb);}function _0x3bd3d2(_0x473e93,_0x4f8bd9,_0xf29643,_0x3586f0){return _0x4593(_0x3586f0-_0x4cb77a._0x106827,_0xf29643);}return{'id':_0x3eac31['id'],'type':_0x3bd3d2(_0x19896d._0x32fd29,_0x19896d._0x35f254,0x34a,_0x19896d._0x28603f),'role':'assistant','content':structuredClone(_0x3eac31[_0x8c657a(-0xb9,-_0x19896d._0x1467f6,-_0x19896d._0x548d2e,-0xc0)]),'stop_reason':_0x3eac31[_0x3bd3d2(_0x19896d._0x3b07d0,_0x19896d._0xda0397,0x354,0x34a)],'stop_sequence':null,'usage':{'input_tokens':_0x3eac31['usage'][_0x8c657a(-0xeb,-_0x19896d._0x212fd0,-0xdd,-_0x19896d._0x51ffb7)],'output_tokens':_0x3eac31[_0x8c657a(-0xb9,-_0x19896d._0x2766bc,-0xd2,-_0x19896d._0x378ea0)][_0x8c657a(-_0x19896d._0x5351c7,-0xda,-0xd9,-_0x19896d._0x548d2e)],..._0x3eac31[_0x8c657a(-0xe5,-0xcf,-_0x19896d._0x12c4e7,-0xd5)][_0x8c657a(-_0x19896d._0x165092,-0xf6,-_0x19896d._0x592486,-0x109)]!==void 0x0?{'reasoning_tokens':_0x3eac31['usage'][_0x8c657a(-0xe9,-_0x19896d._0x35aa0c,-0xf5,-0xfe)]}:{}},..._0x3eac31['providerState']?{'providerState':structuredClone(_0x3eac31['providerState'])}:{}};}function responseToAssistantMessage(_0x4c75bb){const _0x3cd9da={_0xb665f5:0x48c,_0x3f327e:0x483,_0x4cdc07:0x46e,_0x3a3ef0:0x488},_0x17f5d5={_0x55640f:0x1cb};function _0x383b11(_0x1eb40b,_0x5c95b6,_0x9b15cb,_0x1fa3d8){return _0x4593(_0x1fa3d8-0x37b,_0x1eb40b);}function _0x494227(_0x5e39f9,_0x188d95,_0x5dfce3,_0x193a5b){return _0x4593(_0x188d95- -_0x17f5d5._0x55640f,_0x5dfce3);}return{'role':'assistant','content':normalizeContent(_0x4c75bb[_0x383b11(_0x3cd9da._0xb665f5,0x4a4,_0x3cd9da._0x3f327e,0x491)]),..._0x4c75bb[_0x383b11(0x4a1,_0x3cd9da._0x4cdc07,0x478,_0x3cd9da._0x3a3ef0)]?{'providerState':structuredClone(_0x4c75bb['providerState'])}:{}};}function createReasoningMessage(_0x2a7836){const _0x1e40d3={_0x3b4eae:0x4fc,_0xec7ad9:0x4e2,_0x18c17d:0x4ed},_0xcc40cd={_0x1b784e:0x280,_0x6fab1e:0x28f,_0x5040ea:0x283,_0x13f559:0x286,_0x1f42b2:0x29b,_0x3f619d:0x2aa,_0x19a0f3:0x281,_0x47b7fb:0x28d,_0x24e35a:0x28f,_0x275133:0x284},_0x2e997d=normalizeContent(_0x2a7836?.['content'])[_0x53b5cd(0x4f0,_0x1e40d3._0x3b4eae,_0x1e40d3._0xec7ad9,0x4e3)](_0x430792=>{const _0x2b4653={_0x320601:0x7a};function _0x4e5c3d(_0x15d11c,_0x2f41d6,_0x42e57e,_0x4b44a1){return _0x53b5cd(_0x15d11c-0x29,_0x42e57e,_0x2f41d6- -0x371,_0x4b44a1-0x18b);}function _0x5aaa84(_0x25805e,_0x2e58c8,_0x1496d0,_0x343f91){return _0x53b5cd(_0x25805e-_0x2b4653._0x320601,_0x25805e,_0x343f91- -0x23b,_0x343f91-0x155);}return _0x430792[_0x5aaa84(_0xcc40cd._0x1b784e,0x2a8,0x297,_0xcc40cd._0x6fab1e)]===_0x5aaa84(_0xcc40cd._0x5040ea,_0xcc40cd._0x13f559,_0xcc40cd._0x1f42b2,0x29c)||_0x430792[_0x5aaa84(_0xcc40cd._0x3f619d,_0xcc40cd._0x19a0f3,_0xcc40cd._0x47b7fb,_0xcc40cd._0x24e35a)]==='anthropic_thinking'||_0x430792[_0x5aaa84(0x28e,_0xcc40cd._0x275133,0x27a,_0xcc40cd._0x24e35a)]==='openai_reasoning';});function _0x2d6d57(_0x30fc3f,_0x1effc2,_0x4ed34b,_0x2e29b4){return _0x4593(_0x30fc3f- -0xbd,_0x1effc2);}if(_0x2e997d['length']===0x0)return void 0x0;function _0x53b5cd(_0x7a836e,_0x5253ad,_0x4ad0c6,_0x2b56c2){return _0x4593(_0x4ad0c6-0x3e4,_0x5253ad);}return{'role':_0x53b5cd(0x4ed,_0x1e40d3._0x18c17d,0x4ee,0x4fe),'content':_0x2e997d};}function createAssistantTextMessage(_0x3ec9c5){const _0x48e710={_0x1dd053:0x4f8,_0x422999:0x4e4,_0x7017f6:0x4c4,_0x4bba01:0x4d0,_0x218fc3:0x49e,_0x29ca95:0x4b5},_0x520e46={_0x57c55e:0x2b2,_0x218a40:0x29a};function _0x1b293c(_0x3df1b4,_0x41acdb,_0x1e2704,_0x53813b){return _0x4593(_0x41acdb-0x3ce,_0x1e2704);}const _0x149a03=normalizeContent(_0x3ec9c5?.[_0x1b293c(_0x48e710._0x1dd053,_0x48e710._0x422999,0x4ce,0x4cd)])[_0x1b293c(_0x48e710._0x7017f6,0x4cc,0x4ca,0x4c0)](_0x2c8594=>{const _0x53610d={_0x5c7a96:0xc};function _0x563995(_0x3a5872,_0x13b798,_0x5d2f2c,_0x816c3a){return _0x1b293c(_0x3a5872-_0x53610d._0x5c7a96,_0x3a5872- -0x779,_0x816c3a,_0x816c3a-0x2b);}return _0x2c8594['type']===_0x563995(-_0x520e46._0x57c55e,-_0x520e46._0x218a40,-0x2c8,-0x2b2);});function _0x2fcea3(_0x1fd06e,_0x33f623,_0x5a310b,_0x1e0a62){return _0x4593(_0x5a310b- -0x329,_0x1fd06e);}if(_0x149a03[_0x1b293c(_0x48e710._0x4bba01,0x4b8,_0x48e710._0x218fc3,_0x48e710._0x29ca95)]===0x0)return void 0x0;return{'role':'assistant','content':_0x149a03};}function createToolUseMessage(_0x5c3e43){const _0x365567={_0x4db2e2:0x129,_0x5b40df:0x12c},_0x524177={_0x4ea91a:0x3da,_0x23178f:0x3c0};function _0x3f4202(_0x4d38ae,_0x20b60e,_0x46e106,_0x30b6cd){return _0x4593(_0x30b6cd-0x16,_0x4d38ae);}const _0x5b0d0c=normalizeContent(_0x5c3e43?.[_0x3f4202(0x132,0x11e,_0x365567._0x4db2e2,_0x365567._0x5b40df)])['filter'](_0x400557=>{const _0x4ada91={_0x5f4586:0x17b,_0x11825d:0x2cf};function _0x19a8c3(_0x5f03f3,_0xb09297,_0x4e2ec4,_0x575fc2){return _0x3f4202(_0xb09297,_0xb09297-_0x4ada91._0x5f4586,_0x4e2ec4-0x141,_0x4e2ec4-_0x4ada91._0x11825d);}return _0x400557['type']===_0x19a8c3(0x3e7,0x3c6,_0x524177._0x4ea91a,_0x524177._0x23178f);});if(_0x5b0d0c['length']===0x0)return void 0x0;return{'role':'assistant','content':_0x5b0d0c};}function _0x4593(_0x2881a8,_0x201eea){_0x2881a8=_0x2881a8-0xe0;const _0x5652a7=_0x5652();let _0x459311=_0x5652a7[_0x2881a8];if(_0x4593['wIRCxk']===undefined){var _0x400fca=function(_0x140004){const _0xdc58ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5602d1='',_0x2b6655='';for(let _0x283fc9=0x0,_0x5a5e2d,_0x2e2c3b,_0x3f962c=0x0;_0x2e2c3b=_0x140004['charAt'](_0x3f962c++);~_0x2e2c3b&&(_0x5a5e2d=_0x283fc9%0x4?_0x5a5e2d*0x40+_0x2e2c3b:_0x2e2c3b,_0x283fc9++%0x4)?_0x5602d1+=String['fromCharCode'](0xff&_0x5a5e2d>>(-0x2*_0x283fc9&0x6)):0x0){_0x2e2c3b=_0xdc58ba['indexOf'](_0x2e2c3b);}for(let _0x31b152=0x0,_0x2bb073=_0x5602d1['length'];_0x31b152<_0x2bb073;_0x31b152++){_0x2b6655+='%'+('00'+_0x5602d1['charCodeAt'](_0x31b152)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b6655);};_0x4593['hGZkIe']=_0x400fca,_0x4593['zlCvCf']={},_0x4593['wIRCxk']=!![];}const _0x3ea280=_0x5652a7[0x0],_0x2b7155=_0x2881a8+_0x3ea280,_0x2c1596=_0x4593['zlCvCf'][_0x2b7155];return!_0x2c1596?(_0x459311=_0x4593['hGZkIe'](_0x459311),_0x4593['zlCvCf'][_0x2b7155]=_0x459311):_0x459311=_0x2c1596,_0x459311;}function getTextFromMessage(_0x35f20e){const _0xb4808a={_0x3d1bf1:0x9d,_0x53f2e0:0x77,_0x46c9e1:0x88,_0x5ad14a:0x83,_0x57450e:0x7b,_0x4bf5cf:0x63},_0x23976f={_0x5a5c9a:0x254};function _0x17a501(_0x14e8ae,_0x46cd2a,_0x3f3473,_0x4ed26e){return _0x4593(_0x3f3473- -0x8e,_0x46cd2a);}function _0x4bf50f(_0x554cf9,_0x259c14,_0x3f848e,_0x53fee7){return _0x4593(_0x554cf9- -_0x23976f._0x5a5c9a,_0x3f848e);}return normalizeContent(_0x35f20e?.[_0x17a501(_0xb4808a._0x3d1bf1,_0xb4808a._0x53f2e0,_0xb4808a._0x46c9e1,0x9f)])[_0x17a501(_0xb4808a._0x5ad14a,_0xb4808a._0x57450e,0x70,0x60)](_0x5521e4=>_0x5521e4[_0x17a501(0x5c,0x64,0x58,0x61)]===_0x17a501(0x78,0x55,0x6b,0x51))[_0x17a501(_0xb4808a._0x4bf5cf,0x5c,0x6c,0x64)](_0x389de1=>_0x389de1['text'])['join']('\x0a');}function _0x5652(){const _0x2f7624=['BwvZC2fNzxm','C3rVCfjLyxnVBG','AM9PBG','zMLSDgvY','B3bLBMfPx3jLyxnVBMLUzW','Bwf4vg9Rzw5Z','mZuYmZqYmw94qwHJBa','C3rYAw5N','DhvYBKLK','Aw5WDxruB2TLBNm','nta2mdrNsK9bANq','Bwf4x3rVA2vUCW','mZzfr3fjtwC','B3v0Chv0vg9Rzw5Z','CMvHC29UAw5Nx3rVA2vUCW','yxnZAxn0yw50','Dg9VBf9Yzxn1Bhq','B3v0Chv0rM9YBwf0','ChjVDMLKzxjtDgf0zq','Dg9VBhm','DxnHz2u','ndC4nZneu21iqMe','Aw5WDxrFDg9Rzw5Z','CMvHC29UAw5N','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','DhjPBq','kgvUy3j5ChrLzcbYzwfZB25PBMCP','y29UDgvUDa','mZi2mZbXwLjAENG','BwvZC2fNzq','zxjYB3i','mJrlCg91D3G','B3v0Chv0','C3rVCf9YzwfZB24','DhLWzq','DgHPBMTPBMC','Bwv0ywrHDge','mtm2tK9kEMjz','BgvUz3rO','otG4nZiWt2fYqMvS','CMvHC29UAw5Nvg9Rzw5Z','C3LZDgvT','B3v0Chv0x3rVA2vUCW','ywrK','nta3mdi0s1vKvK5q','mM5NEfPJDq','DxnLCG','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3rHDhvZ','Dg9VBf91C2u','DhvYBL9Pza','mteYnJeWzM13D0Xn','Bw9KzwW','Dgv4Da','BwfW'];_0x5652=function(){return _0x2f7624;};return _0x5652();}function getReasoningTextFromMessage(_0xf677d4){const _0x3304ac={_0x1701d1:0x173,_0x1af7f4:0x192},_0x2442e5={_0x3574d1:0x1b9,_0x58cad0:0x1d3,_0x50aa13:0x1cf,_0x453a78:0x245,_0x47e3d8:0x24f,_0x419bc8:0x1b5,_0x114c8a:0x1b2,_0x3db71f:0x1cc,_0x5b614b:0x1dc,_0x4b5863:0x1cf,_0x488b06:0x221,_0x3d7ced:0x212,_0x20d039:0x1c3,_0x1fe3a9:0x1ca,_0x392e9a:0x1d0,_0x6b4f25:0x1bf,_0x17f502:0x1a6,_0x492ffd:0x1c9,_0x3c2d2b:0x1b6,_0x2d43e5:0x1ac,_0x568bbd:0x235,_0x1cd6ed:0x1b9,_0x1dcbb6:0x1c1,_0x2f5583:0x1ac,_0x4929d0:0x1c9,_0x5022da:0x1bd,_0x1fb4c7:0x19f,_0x1fd1df:0x189,_0xaba26c:0x18f};function _0xa4c5a3(_0x2812a1,_0x4434f8,_0x6633f5,_0x5780a4){return _0x4593(_0x2812a1- -0x29e,_0x5780a4);}return normalizeContent(_0xf677d4?.[_0xa4c5a3(-0x188,-_0x3304ac._0x1701d1,-_0x3304ac._0x1af7f4,-0x1a4)])['flatMap'](_0x42836a=>{const _0x33727f={_0x493880:0x18},_0x143c6e={_0x2eee80:0x3d9,_0xfb9781:0x1bb};if(_0x42836a['type']==='anthropic_thinking')return _0x42836a[_0x409f1f(-0x1b4,-_0x2442e5._0x3574d1,-_0x2442e5._0x58cad0,-_0x2442e5._0x50aa13)][_0x19c506(0x244,_0x2442e5._0x453a78,_0x2442e5._0x47e3d8,0x251)]()[_0x409f1f(-_0x2442e5._0x419bc8,-0x1d7,-_0x2442e5._0x114c8a,-_0x2442e5._0x3db71f)]>0x0?[_0x42836a[_0x409f1f(-0x1cc,-_0x2442e5._0x5b614b,-0x1e3,-_0x2442e5._0x4b5863)]]:[];function _0x19c506(_0x2bbafb,_0x597bb9,_0x18b59b,_0x546c2c){return _0xa4c5a3(_0x18b59b-_0x143c6e._0x2eee80,_0x597bb9-_0x143c6e._0xfb9781,_0x18b59b-0x43,_0x2bbafb);}if(_0x42836a[_0x19c506(0x212,0x216,_0x2442e5._0x488b06,_0x2442e5._0x3d7ced)]===_0x409f1f(-0x1c1,-0x1ba,-0x1d1,-_0x2442e5._0x20d039))return['(redacted\x20reasoning)'];if(_0x42836a[_0x409f1f(-0x1bd,-_0x2442e5._0x1fe3a9,-_0x2442e5._0x392e9a,-_0x2442e5._0x392e9a)]!==_0x409f1f(-_0x2442e5._0x6b4f25,-_0x2442e5._0x419bc8,-_0x2442e5._0x17f502,-0x1b7))return[];const _0x3599e3=_0x42836a['summary'][_0x409f1f(-_0x2442e5._0x492ffd,-_0x2442e5._0x3c2d2b,-_0x2442e5._0x2d43e5,-0x1bc)](_0xd4a2fd=>_0xd4a2fd[_0x19c506(0x24d,0x243,0x234,0x224)])[_0x19c506(0x249,_0x2442e5._0x568bbd,0x239,0x22b)](_0x1c1aaf=>_0x1c1aaf[_0x19c506(0x25f,0x248,0x24f,0x23b)]()[_0x409f1f(-0x1b1,-0x1c1,-0x1d1,-0x1cc)]>0x0)[_0x409f1f(-0x1c8,-0x1b9,-0x1b4,-_0x2442e5._0x1cd6ed)]('\x0a\x0a');if(_0x3599e3['length']>0x0)return[_0x3599e3];if(_0x42836a[_0x409f1f(-0x1a7,-_0x2442e5._0x1dcbb6,-_0x2442e5._0x2f5583,-0x1bd)]&&_0x42836a[_0x409f1f(-0x1c7,-_0x2442e5._0x4929d0,-0x1b4,-_0x2442e5._0x5022da)][_0x409f1f(-0x1a1,-0x19a,-_0x2442e5._0x1fb4c7,-0x1a2)]()[_0x409f1f(-0x1e6,-0x1ca,-0x1dc,-_0x2442e5._0x3db71f)]>0x0)return[_0x42836a['text']];function _0x409f1f(_0x34dd67,_0x28d11f,_0xcc3223,_0xa4ed0c){return _0xa4c5a3(_0xa4ed0c- -_0x33727f._0x493880,_0x28d11f-0x64,_0xcc3223-0x1a3,_0x34dd67);}return _0x42836a['encryptedContent']?[_0x409f1f(-_0x2442e5._0x1fd1df,-_0x2442e5._0xaba26c,-0x1b2,-0x1a1)]:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x2917b2){const _0x5bce50={_0x44e7d7:0x29e,_0x292c78:0x2ac,_0x1c797c:0x161},_0x2e1174={_0x4610fa:0x3b4};function _0x7f190c(_0x49478a,_0x42ba1c,_0x55d3a8,_0x24b267){return _0x4593(_0x49478a- -_0x2e1174._0x4610fa,_0x55d3a8);}function _0x1fc302(_0x1ed50a,_0x10e985,_0x5969b1,_0x109f97){return _0x4593(_0x109f97-0x5b,_0x10e985);}return normalizeContent(_0x2917b2?.[_0x7f190c(-_0x5bce50._0x44e7d7,-0x2a4,-_0x5bce50._0x292c78,-0x2a5)])[_0x1fc302(_0x5bce50._0x1c797c,0x14e,0x147,0x159)](_0x22e7f3=>_0x22e7f3[_0x7f190c(-0x2ce,-0x2b8,-0x2ce,-0x2da)]===_0x1fc302(0x157,0x14b,0x145,0x150));}function getToolResultBlocks(_0x41dd9b){const _0x226305={_0x4c80d5:0xad,_0x419877:0xb0},_0x396346={_0x334dbe:0x2b2};function _0x2df3ab(_0x49d596,_0x55dacd,_0x541d41,_0x3307e3){return _0x4593(_0x49d596- -_0x396346._0x334dbe,_0x541d41);}function _0x1eb3fd(_0x12fb89,_0x11ae31,_0x43867d,_0x4ccc52){return _0x4593(_0x4ccc52- -0x56,_0x11ae31);}return normalizeContent(_0x41dd9b?.[_0x1eb3fd(_0x226305._0x4c80d5,0xd8,0xa9,0xc0)])[_0x1eb3fd(0xa3,0x99,_0x226305._0x419877,0xa8)](_0x4ffd97=>_0x4ffd97[_0x2df3ab(-0x1cc,-0x1b2,-0x1e7,-0x1cd)]===_0x1eb3fd(0xc9,0xba,0xa4,0xb5));}function createToolResultUserMessage(_0x437294){const _0x5afb57={_0xc14f64:0x104,_0x3d87c8:0x116,_0x21f468:0xea,_0x39d4d3:0x36,_0x103291:0x32},_0x1d8095={_0x1c2a02:0x330,_0x5891c1:0x317,_0x138132:0x36,_0x9f99a6:0x50,_0x28eaa0:0x2fa,_0x969035:0x2e0,_0x582e89:0x2e8,_0x409dfa:0x310,_0x66a4da:0x2f6,_0x244366:0x30a,_0x220351:0x7c,_0x449b64:0x87};function _0x2b1e6b(_0x27bc44,_0x52bea9,_0x56b3e8,_0xfbccdd){return _0x4593(_0xfbccdd-0xb,_0x52bea9);}function _0x17b3b7(_0x3cfc05,_0x441b8f,_0x22156f,_0x4b90cd){return _0x4593(_0x22156f- -0xc8,_0x3cfc05);}return{'role':_0x2b1e6b(_0x5afb57._0xc14f64,_0x5afb57._0x3d87c8,_0x5afb57._0x21f468,0xfd),'content':_0x437294[_0x17b3b7(_0x5afb57._0x39d4d3,0x48,_0x5afb57._0x103291,0x4c)](_0x33bbc2=>{const _0xcdbf47={_0x324fc0:0xa8};function _0x5f1205(_0x4a9ea5,_0x38cf0a,_0x3146ca,_0x473d98){return _0x17b3b7(_0x4a9ea5,_0x38cf0a-_0xcdbf47._0x324fc0,_0x38cf0a-0x2de,_0x473d98-0xe);}function _0x58c4b5(_0x3a670a,_0x79d0c4,_0x2a5467,_0x4b58af){return _0x2b1e6b(_0x3a670a-0x12a,_0x4b58af,_0x2a5467-0x1be,_0x2a5467- -0x169);}return{'type':_0x5f1205(0x30a,0x321,_0x1d8095._0x1c2a02,_0x1d8095._0x5891c1),'tool_use_id':_0x33bbc2['callId'],'content':_0x33bbc2[_0x58c4b5(-_0x1d8095._0x138132,-_0x1d8095._0x9f99a6,-0x48,-0x2d)]??_0x33bbc2[_0x5f1205(0x2f7,_0x1d8095._0x28eaa0,_0x1d8095._0x969035,_0x1d8095._0x582e89)],'is_error':_0x33bbc2[_0x5f1205(_0x1d8095._0x409dfa,0x30a,_0x1d8095._0x66a4da,_0x1d8095._0x244366)]===_0x58c4b5(-0x7e,-0x6b,-_0x1d8095._0x220351,-_0x1d8095._0x449b64)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x10c552(0x24d,0x25d,0x272,0x257);function synthesizeMissingToolResults(_0x464f16){const _0x40c263={_0x24befd:0x296,_0x5766ef:0x2ae,_0x41456d:0x2be,_0x328703:0x29f,_0x28e4d3:0x2b2,_0x2e410c:0x2b7,_0x10a265:0x4e0,_0xc05e3b:0x4d2,_0x2870e1:0x4d7,_0x15639e:0x4d1},_0x3c0f93={_0x364313:0x78,_0x25c60f:0x1b9},_0x29167f={_0x456c1a:0x1ab,_0x22c269:0x294},_0x276ade=new Set();for(const _0x2b564e of _0x464f16){for(const _0x4535da of getToolResultBlocks(_0x2b564e)){_0x276ade[_0x45de8b(-_0x40c263._0x24befd,-_0x40c263._0x5766ef,-_0x40c263._0x41456d,-0x2b4)](_0x4535da['tool_use_id']);}}function _0x3acb31(_0x3dc89a,_0x16132d,_0x11d3ca,_0x53deb4){return _0x10c552(_0x53deb4,_0x16132d-0x14f,_0x11d3ca-_0x29167f._0x456c1a,_0x16132d-_0x29167f._0x22c269);}const _0xf06f15=[];function _0x45de8b(_0x25e91c,_0x2ee1ae,_0x25a42e,_0x18ae91){return _0x10c552(_0x25e91c,_0x2ee1ae-_0x3c0f93._0x364313,_0x25a42e-_0x3c0f93._0x25c60f,_0x2ee1ae- -0x4e1);}for(const _0x3cbe39 of _0x464f16){_0xf06f15['push'](_0x3cbe39);const _0x3dcce1=getToolUseBlocks(_0x3cbe39)[_0x45de8b(-0x2a7,-_0x40c263._0x328703,-_0x40c263._0x28e4d3,-_0x40c263._0x2e410c)](_0x296061=>!_0x276ade['has'](_0x296061['id']));if(_0x3dcce1['length']===0x0)continue;_0xf06f15['push']({'role':_0x3acb31(0x4bd,0x4ca,0x4dd,_0x40c263._0x10a265),'content':_0x3dcce1[_0x3acb31(0x4df,_0x40c263._0xc05e3b,0x4de,0x4bf)](_0x21cafc=>({'type':_0x45de8b(-0x29c,-0x292,-0x2a0,-0x27c),'tool_use_id':_0x21cafc['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x28e25c of _0x3dcce1){_0x276ade[_0x3acb31(0x4b2,0x4c7,_0x40c263._0x2870e1,_0x40c263._0x15639e)](_0x28e25c['id']);}}return _0xf06f15;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
@@ -1 +1 @@
1
- function _0x104f(){var _0x377b56=['ndi2mdK3ENHIz0nW','ndjIrMjAD3u','mKPgAwvJqG','odGXodDLDvbyAKG','mtyZmNDKzg5uyG','qujpuLrFrvjs','mZq0ote2AxPlqLvn','mtH1CuvMCuW','BgvUz3rO','ywjVCNrLza','BMfTzq','C3rYAw5N','ou5urw5vCG','ywrKrxzLBNrmAxn0zw5LCG','ywjVCNq','CMvTB3zLrxzLBNrmAxn0zw5LCG','y29Kzq','mtmZnti5mu5ABKrSsa','mZq5otvSsNbdAg4','qwjVCNrfCNjVCG','ntC5ota0B2DutMnt','CMvHC29U','mZqYmdC3meH1y0LwDG'];_0x104f=function(){return _0x377b56;};return _0x104f();}(function(_0x2e1c9c,_0x1a156f){var _0x392155={_0x46dff0:0x54,_0x27e142:0x5e,_0x1fd5f2:0x57,_0x4ab74f:0x54,_0x39982a:0x59,_0x4a4c8d:0x5c,_0x30b866:0x1d7,_0x53987e:0x1de,_0x4a3210:0x1d9,_0x5f3f03:0x1e9,_0x4e9966:0x1de,_0x248090:0x60,_0x3db852:0x58,_0x50e687:0x5d,_0x1f2c8b:0x1cd,_0x104857:0x1df,_0x32c4fe:0x1d4,_0x22daea:0x5f,_0x216679:0x1e5,_0x53a344:0x66,_0xd2cefe:0x5a,_0x13c077:0x55},_0x2460fe=_0x2e1c9c();function _0x15e93c(_0xc8ebce,_0x399971,_0x399501,_0x3c0cac){return _0xdf50(_0x399501- -0x22d,_0x3c0cac);}function _0x14a39d(_0x42aea7,_0x49c9a6,_0x31df47,_0x2b3154){return _0xdf50(_0x42aea7- -0x3b7,_0x2b3154);}while(!![]){try{var _0x5ea4a7=-parseInt(_0x15e93c(-0x57,-_0x392155._0x46dff0,-_0x392155._0x27e142,-_0x392155._0x1fd5f2))/0x1+parseInt(_0x15e93c(-_0x392155._0x4ab74f,-_0x392155._0x39982a,-_0x392155._0x4a4c8d,-0x5c))/0x2*(-parseInt(_0x14a39d(-_0x392155._0x30b866,-_0x392155._0x53987e,-_0x392155._0x4a3210,-0x1d7))/0x3)+parseInt(_0x14a39d(-0x1e2,-0x1da,-0x1e9,-_0x392155._0x4a3210))/0x4+-parseInt(_0x14a39d(-0x1d6,-0x1d6,-0x1e2,-0x1dd))/0x5*(-parseInt(_0x14a39d(-0x1e1,-_0x392155._0x5f3f03,-0x1ed,-_0x392155._0x4e9966))/0x6)+parseInt(_0x15e93c(-_0x392155._0x248090,-_0x392155._0x3db852,-_0x392155._0x50e687,-0x64))/0x7*(-parseInt(_0x14a39d(-0x1d4,-_0x392155._0x1f2c8b,-_0x392155._0x104857,-0x1d0))/0x8)+parseInt(_0x14a39d(-0x1dc,-0x1dc,-0x1d8,-_0x392155._0x32c4fe))/0x9*(parseInt(_0x15e93c(-0x5e,-0x60,-_0x392155._0x22daea,-0x6b))/0xa)+parseInt(_0x14a39d(-_0x392155._0x216679,-0x1f0,-0x1e0,-0x1eb))/0xb*(parseInt(_0x15e93c(-_0x392155._0x53a344,-0x63,-_0x392155._0xd2cefe,-_0x392155._0x13c077))/0xc);if(_0x5ea4a7===_0x1a156f)break;else _0x2460fe['push'](_0x2460fe['shift']());}catch(_0x48578f){_0x2460fe['push'](_0x2460fe['shift']());}}}(_0x104f,0x39015));var OperationAbortedError=class extends Error{['code']=_0x41ca99(-0x188,-0x185,-0x187,-0x182);constructor(_0xc41c0f='Operation\x20aborted'){super(_0xc41c0f),this['name']='AbortError';}};function toAbortError(_0xa5adeb){var _0x4c59b5={_0x419059:0x2e2,_0x4833a6:0x2de,_0x39a71e:0x2e1},_0x201850={_0x276370:0xf3},_0x20bfbf={_0xa6e5f3:0x52};if(isAbortError(_0xa5adeb))return _0xa5adeb;if(_0xa5adeb instanceof Error)return new OperationAbortedError(_0xa5adeb['message']);function _0x26435c(_0x1818ca,_0x5959ee,_0x16607c,_0x435544){return _0x41ca99(_0x1818ca-0x144,_0x1818ca,_0x16607c-_0x20bfbf._0xa6e5f3,_0x435544-0x147);}if(typeof _0xa5adeb===_0xb82af6(0x2e4,0x2e9,_0x4c59b5._0x419059,0x2e2)&&_0xa5adeb[_0xb82af6(_0x4c59b5._0x4833a6,_0x4c59b5._0x39a71e,0x2e8,0x2df)]>0x0)return new OperationAbortedError(_0xa5adeb);function _0xb82af6(_0x15c289,_0x44fa38,_0x5a4554,_0x46def6){return _0x41ca99(_0x15c289-0x70,_0x5a4554,_0x5a4554-_0x201850._0x276370,_0x46def6-0x45e);}return new OperationAbortedError();}function isAbortError(_0x19d9c8){var _0x1d0c76={_0x599a2e:0x24c,_0x1f69d1:0x24f,_0x1cfb13:0x257,_0x2ad863:0x250,_0x5df628:0x24e,_0x46d175:0x262,_0x3d2a08:0x259,_0x4f2297:0x72,_0x5245d4:0x70,_0x1538e5:0x77,_0x57ddf7:0x6d,_0x222cba:0x25b,_0x405fbd:0x256},_0x141545={_0x24c983:0x188,_0x5719f3:0xd},_0x4ccc85={_0x1c713:0x3cd};function _0x447fe1(_0xc59451,_0x139f37,_0x31687d,_0x216811){return _0x41ca99(_0xc59451-0x5,_0x31687d,_0x31687d-0x18d,_0x216811-_0x4ccc85._0x1c713);}function _0x2edd1c(_0x1bc2c3,_0x5a41c6,_0x41cce3,_0x2fee94){return _0x41ca99(_0x1bc2c3-_0x141545._0x24c983,_0x5a41c6,_0x41cce3-_0x141545._0x5719f3,_0x41cce3-0x100);}return _0x19d9c8 instanceof OperationAbortedError||_0x19d9c8 instanceof Error&&(_0x19d9c8[_0x447fe1(_0x1d0c76._0x599a2e,_0x1d0c76._0x1f69d1,_0x1d0c76._0x1cfb13,_0x1d0c76._0x2ad863)]===_0x447fe1(_0x1d0c76._0x5df628,_0x1d0c76._0x46d175,0x257,_0x1d0c76._0x3d2a08)||_0x2edd1c(-_0x1d0c76._0x4f2297,-_0x1d0c76._0x5245d4,-_0x1d0c76._0x1538e5,-_0x1d0c76._0x57ddf7)in _0x19d9c8&&_0x19d9c8[_0x447fe1(0x25c,_0x1d0c76._0x222cba,_0x1d0c76._0x1f69d1,_0x1d0c76._0x405fbd)]==='ABORT_ERR');}function _0x41ca99(_0x74eee9,_0x436c29,_0x5c189e,_0x5067af){return _0xdf50(_0x5067af- -0x356,_0x436c29);}function throwIfAborted(_0x12a8e9){var _0x29e4e1={_0x2fe136:0x159,_0x534185:0x15e,_0x58cc3f:0x148},_0x243343={_0x24577d:0xc,_0x5f3536:0x20};if(!_0x12a8e9?.[_0x8f1eda(-_0x29e4e1._0x2fe136,-_0x29e4e1._0x534185,-0x15e,-0x15c)])return;function _0x8f1eda(_0x565feb,_0x4e9726,_0xbdce14,_0x50cc95){return _0x41ca99(_0x565feb-0x194,_0x4e9726,_0xbdce14-_0x243343._0x24577d,_0xbdce14-_0x243343._0x5f3536);}function _0x50bc2c(_0x3fef06,_0x23b63b,_0x12cefc,_0x2799a0){return _0x41ca99(_0x3fef06-0x104,_0x23b63b,_0x12cefc-0x0,_0x12cefc-0x61d);}throw toAbortError(_0x12a8e9[_0x8f1eda(-0x15c,-0x155,-0x152,-_0x29e4e1._0x58cc3f)]);}function _0xdf50(_0x3934f6,_0x43ee5f){_0x3934f6=_0x3934f6-0x1ce;var _0x104fb5=_0x104f();var _0xdf50ef=_0x104fb5[_0x3934f6];if(_0xdf50['aHbzzG']===undefined){var _0x3f51d1=function(_0x446f6a){var _0x2a057b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xc41c0f='',_0xa5adeb='';for(var _0x19d9c8=0x0,_0x12a8e9,_0x4665fc,_0xc5a3da=0x0;_0x4665fc=_0x446f6a['charAt'](_0xc5a3da++);~_0x4665fc&&(_0x12a8e9=_0x19d9c8%0x4?_0x12a8e9*0x40+_0x4665fc:_0x4665fc,_0x19d9c8++%0x4)?_0xc41c0f+=String['fromCharCode'](0xff&_0x12a8e9>>(-0x2*_0x19d9c8&0x6)):0x0){_0x4665fc=_0x2a057b['indexOf'](_0x4665fc);}for(var _0x198348=0x0,_0xe27532=_0xc41c0f['length'];_0x198348<_0xe27532;_0x198348++){_0xa5adeb+='%'+('00'+_0xc41c0f['charCodeAt'](_0x198348)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xa5adeb);};_0xdf50['DyiEzS']=_0x3f51d1,_0xdf50['EZMzEU']={},_0xdf50['aHbzzG']=!![];}var _0x581ffd=_0x104fb5[0x0],_0x4023ad=_0x3934f6+_0x581ffd,_0x215dbb=_0xdf50['EZMzEU'][_0x4023ad];return!_0x215dbb?(_0xdf50ef=_0xdf50['DyiEzS'](_0xdf50ef),_0xdf50['EZMzEU'][_0x4023ad]=_0xdf50ef):_0xdf50ef=_0x215dbb,_0xdf50ef;}function addAbortListener(_0x4665fc,_0xc5a3da){var _0xec9998={_0x4740dd:0x4c,_0x5c7bc0:0x4b,_0x3b043c:0x50,_0x288d0b:0x46,_0x55a84d:0x57,_0xe2d74b:0x58,_0x14c7d0:0x51},_0x2631d6={_0x19af71:0x280,_0x5828fd:0x543,_0x51cd5c:0x54b,_0x1e7b46:0x54c},_0x42abf7={_0x2694a6:0x22e,_0x493b3c:0x1ba},_0x224070={_0x33a420:0x16b,_0x4a5e20:0x165},_0x1c9a2f={_0x1eecb8:0x43,_0x171ee9:0x165,_0x42c843:0x1ca},_0x4a509e={_0x1a70bf:0x3b};if(!_0x4665fc)return()=>{};if(_0x4665fc[_0x482455(0x4b,_0xec9998._0x4740dd,_0xec9998._0x5c7bc0,0x44)])return _0xc5a3da(),()=>{};function _0x160f5f(_0x76a035,_0x3cdb19,_0x3f60b9,_0x118d1a){return _0x41ca99(_0x76a035-0xb6,_0x3f60b9,_0x3f60b9-0x1c9,_0x3cdb19-_0x4a509e._0x1a70bf);}const _0x198348=()=>{_0xc5a3da();};_0x4665fc[_0x482455(0x5b,_0xec9998._0x3b043c,_0xec9998._0x288d0b,_0xec9998._0x55a84d)](_0x482455(_0xec9998._0xe2d74b,_0xec9998._0x14c7d0,_0xec9998._0x288d0b,0x5c),_0x198348,{'once':!![]});function _0x482455(_0x3a010b,_0x5876b7,_0x77741b,_0x4ccd0f){return _0x41ca99(_0x3a010b-_0x1c9a2f._0x1eecb8,_0x3a010b,_0x77741b-_0x1c9a2f._0x171ee9,_0x5876b7-_0x1c9a2f._0x42c843);}return()=>{function _0x173b77(_0xb8b55e,_0x3160df,_0x1ce5ca,_0x17046b){return _0x160f5f(_0xb8b55e-_0x224070._0x33a420,_0x3160df-0x681,_0x1ce5ca,_0x17046b-_0x224070._0x4a5e20);}function _0x11fadf(_0x4bfa97,_0x1c9c4e,_0x13b7a5,_0x21933e){return _0x482455(_0x21933e,_0x4bfa97-_0x42abf7._0x2694a6,_0x13b7a5-_0x42abf7._0x493b3c,_0x21933e-0x152);}_0x4665fc[_0x11fadf(_0x2631d6._0x19af71,0x285,0x27f,0x282)](_0x173b77(0x547,_0x2631d6._0x5828fd,_0x2631d6._0x51cd5c,_0x2631d6._0x1e7b46),_0x198348);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ (function(_0x59bb4f,_0x3848b6){var _0x260649={_0x17a0c4:0x340,_0x399595:0xaf,_0x1cfe5b:0xb9,_0x386cde:0xbc,_0x22b595:0xb4,_0x16c173:0xad,_0x2843ee:0xbb,_0x5627a:0xae,_0x1db8bc:0xb5,_0x338fc9:0xbb,_0x17518e:0xb8,_0x571db7:0x349,_0x55f597:0x342,_0x38e15f:0x33b,_0x134398:0x34c,_0x2ec9bd:0x346},_0x141d28={_0x4caa6a:0x1e1},_0x885889={_0xe8bad4:0x219},_0x2f7ebc=_0x59bb4f();function _0x4508a8(_0x5f1f8d,_0x15d6b6,_0x3c47d0,_0x179d01){return _0x3d41(_0x15d6b6-_0x885889._0xe8bad4,_0x179d01);}function _0x4b3bc3(_0x2803f3,_0xfd6296,_0x4c5e75,_0x2dda46){return _0x3d41(_0x4c5e75- -_0x141d28._0x4caa6a,_0x2dda46);}while(!![]){try{var _0x425475=-parseInt(_0x4508a8(_0x260649._0x17a0c4,0x33b,0x335,0x334))/0x1*(-parseInt(_0x4b3bc3(-_0x260649._0x399595,-0xa6,-0xaf,-0xb8))/0x2)+parseInt(_0x4b3bc3(-0xc3,-_0x260649._0x1cfe5b,-_0x260649._0x386cde,-_0x260649._0x22b595))/0x3+-parseInt(_0x4b3bc3(-_0x260649._0x16c173,-_0x260649._0x2843ee,-0xb2,-0xb5))/0x4+-parseInt(_0x4b3bc3(-_0x260649._0x5627a,-0xb1,-_0x260649._0x1db8bc,-_0x260649._0x22b595))/0x5+parseInt(_0x4b3bc3(-0xb4,-0xb7,-_0x260649._0x338fc9,-0xba))/0x6*(parseInt(_0x4b3bc3(-0xb3,-_0x260649._0x17518e,-0xb0,-0xa8))/0x7)+parseInt(_0x4508a8(_0x260649._0x571db7,_0x260649._0x55f597,_0x260649._0x38e15f,0x346))/0x8+-parseInt(_0x4508a8(0x341,0x349,_0x260649._0x134398,_0x260649._0x2ec9bd))/0x9;if(_0x425475===_0x3848b6)break;else _0x2f7ebc['push'](_0x2f7ebc['shift']());}catch(_0x1083e9){_0x2f7ebc['push'](_0x2f7ebc['shift']());}}}(_0xb477,0x24849));var OperationAbortedError=class extends Error{['code']='ABORT_ERR';constructor(_0x38546f=_0x4f1518(0xa0,0x9b,0xa5,0x9e)){super(_0x38546f),this['name']='AbortError';}};function _0x4f1518(_0x354cbf,_0x2130ff,_0x30f125,_0x29df23){var _0x160798={_0x5901eb:0x8a};return _0x3d41(_0x354cbf- -_0x160798._0x5901eb,_0x29df23);}function _0xb477(){var _0x1dedc1=['nJKXnJmYB3P4DNbl','mtaYsvjZDhb4','C3rYAw5N','qwjVCNrfCNjVCG','mtaYnJmYohrorfHMtW','t3bLCMf0Aw9UigfIB3j0zwq','ywjVCNq','mti0otuYmfvAvwrMtG','BMfTzq','qujpuLrFrvjs','ntaZnJKYtg54AvLS','mtiXndaXmez2uNnlEq','nde2mJLdANrtEK4','ndbLuhvQDfe','CMvHC29U','mtaWmtHuuLrjAeG','ywjVCNrLza','y29Kzq'];_0xb477=function(){return _0x1dedc1;};return _0xb477();}function toAbortError(_0x39adf1){var _0x1ccb63={_0x59d44b:0x1e0,_0x568112:0x1db},_0x12f7b5={_0x3b4a1b:0x278,_0x184ff0:0x130};if(isAbortError(_0x39adf1))return _0x39adf1;function _0x382ed1(_0x7fab19,_0x49cc7d,_0x2da698,_0x39e81d){return _0x4f1518(_0x2da698- -_0x12f7b5._0x3b4a1b,_0x49cc7d-_0x12f7b5._0x184ff0,_0x2da698-0xa3,_0x7fab19);}if(_0x39adf1 instanceof Error)return new OperationAbortedError(_0x39adf1['message']);if(typeof _0x39adf1===_0x382ed1(-_0x1ccb63._0x59d44b,-0x1e3,-_0x1ccb63._0x568112,-0x1d2)&&_0x39adf1['length']>0x0)return new OperationAbortedError(_0x39adf1);return new OperationAbortedError();}function isAbortError(_0x5d4fdc){var _0x1ac335={_0x2f2b99:0x425,_0x255b80:0xcd,_0x196ca0:0xc5,_0x470bed:0xca,_0x1f37d4:0xd7,_0x8a5b10:0xd1,_0x2098e9:0xc4,_0x247332:0xd0},_0x403b38={_0x517d20:0x37c,_0x392023:0x172},_0x21113f={_0x15c22:0x16b,_0x521530:0x1d8,_0x5e9707:0x8b};function _0x53cd3f(_0x4d2fca,_0x201a1d,_0x5195de,_0x28cc3a){return _0x4f1518(_0x4d2fca- -_0x21113f._0x15c22,_0x201a1d-_0x21113f._0x521530,_0x5195de-_0x21113f._0x5e9707,_0x28cc3a);}function _0x304f72(_0x2959c9,_0x11451b,_0x393c6f,_0x1b207a){return _0x4f1518(_0x393c6f-_0x403b38._0x517d20,_0x11451b-0x185,_0x393c6f-_0x403b38._0x392023,_0x1b207a);}return _0x5d4fdc instanceof OperationAbortedError||_0x5d4fdc instanceof Error&&(_0x5d4fdc[_0x304f72(0x424,_0x1ac335._0x2f2b99,0x41f,0x418)]===_0x53cd3f(-_0x1ac335._0x255b80,-_0x1ac335._0x196ca0,-0xc9,-0xc9)||_0x53cd3f(-0xd1,-_0x1ac335._0x470bed,-_0x1ac335._0x1f37d4,-_0x1ac335._0x8a5b10)in _0x5d4fdc&&_0x5d4fdc['code']===_0x53cd3f(-0xc7,-_0x1ac335._0x2098e9,-_0x1ac335._0x247332,-0xbf));}function throwIfAborted(_0x415f4e){var _0x1c745f={_0x467f5d:0x2cc,_0xc603a6:0x2c5,_0xc34377:0x2c7,_0x5085f9:0x2c9,_0x8b392d:0x297,_0x310fe1:0x288},_0x35ad2e={_0x4ed670:0x230,_0x41faef:0xb3},_0x2c06ce={_0x2ecbf4:0x33a,_0x225c59:0x76,_0x34e1ac:0xfb};if(!_0x415f4e?.[_0x4e4dad(_0x1c745f._0x467f5d,_0x1c745f._0xc603a6,_0x1c745f._0xc34377,_0x1c745f._0x5085f9)])return;function _0x2ff1f3(_0x5e260d,_0x3bf959,_0x3010b7,_0x39a211){return _0x4f1518(_0x5e260d- -_0x2c06ce._0x2ecbf4,_0x3bf959-_0x2c06ce._0x225c59,_0x3010b7-_0x2c06ce._0x34e1ac,_0x3bf959);}function _0x4e4dad(_0x46cfb7,_0x384a07,_0x376da8,_0x11e9ee){return _0x4f1518(_0x11e9ee-_0x35ad2e._0x4ed670,_0x384a07-0x61,_0x376da8-_0x35ad2e._0x41faef,_0x384a07);}throw toAbortError(_0x415f4e[_0x2ff1f3(-0x291,-0x297,-_0x1c745f._0x8b392d,-_0x1c745f._0x310fe1)]);}function addAbortListener(_0xbb9392,_0x3a9f11){var _0x2621cd={_0x54429f:0x24d},_0x3509a3={_0xf637b:0x1ed},_0x1cf41e={_0x257ec2:0x2f4,_0x3a98cc:0xa0,_0x112d3d:0x1e9};if(!_0xbb9392)return()=>{};if(_0xbb9392[_0x58bc2f(0x3d5,0x3dd,0x3d6,0x3d3)])return _0x3a9f11(),()=>{};function _0x593991(_0x42d673,_0x3ce694,_0x52e156,_0x342086){return _0x4f1518(_0x3ce694- -_0x1cf41e._0x257ec2,_0x3ce694-_0x1cf41e._0x3a98cc,_0x52e156-_0x1cf41e._0x112d3d,_0x52e156);}function _0x58bc2f(_0x5aca64,_0x4ef6b7,_0x3b92d4,_0x35f686){return _0x4f1518(_0x5aca64-0x33c,_0x4ef6b7-_0x3509a3._0xf637b,_0x3b92d4-0x164,_0x3b92d4);}const _0x340771=()=>{_0x3a9f11();};return _0xbb9392['addEventListener'](_0x593991(-_0x2621cd._0x54429f,-0x253,-0x254,-0x253),_0x340771,{'once':!![]}),()=>{_0xbb9392['removeEventListener']('abort',_0x340771);};}function _0x3d41(_0x47bcea,_0x4b28bc){_0x47bcea=_0x47bcea-0x122;var _0xb47718=_0xb477();var _0x3d4148=_0xb47718[_0x47bcea];if(_0x3d41['SNQjOG']===undefined){var _0x25d8ef=function(_0x1bbce9){var _0x1767f4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x38546f='',_0x39adf1='';for(var _0x5d4fdc=0x0,_0x415f4e,_0xbb9392,_0x3a9f11=0x0;_0xbb9392=_0x1bbce9['charAt'](_0x3a9f11++);~_0xbb9392&&(_0x415f4e=_0x5d4fdc%0x4?_0x415f4e*0x40+_0xbb9392:_0xbb9392,_0x5d4fdc++%0x4)?_0x38546f+=String['fromCharCode'](0xff&_0x415f4e>>(-0x2*_0x5d4fdc&0x6)):0x0){_0xbb9392=_0x1767f4['indexOf'](_0xbb9392);}for(var _0x340771=0x0,_0x5432fd=_0x38546f['length'];_0x340771<_0x5432fd;_0x340771++){_0x39adf1+='%'+('00'+_0x38546f['charCodeAt'](_0x340771)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39adf1);};_0x3d41['PbFzFh']=_0x25d8ef,_0x3d41['EVwoug']={},_0x3d41['SNQjOG']=!![];}var _0x5d71c9=_0xb47718[0x0],_0x398f3c=_0x47bcea+_0x5d71c9,_0x2c5c02=_0x3d41['EVwoug'][_0x398f3c];return!_0x2c5c02?(_0x3d4148=_0x3d41['PbFzFh'](_0x3d4148),_0x3d41['EVwoug'][_0x398f3c]=_0x3d4148):_0x3d4148=_0x2c5c02,_0x3d4148;}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
@@ -1 +1 @@
1
- function _0xcce1(){const _0x43224f=['yMfZzty0','mtq5odaYohz5BwX6qq','Aw1Hz2uVANbLzW','BgfZDeLUzgv4','DgvZDa','Aw1Hz2uVANbN','Aw5KzxG','otGXmtuXmLzst0rota','mtq3mJiYzLzcwgfK','C2XPy2u','mZnwrvfLD3y','Bwf0y2HbBgW','zNjVBq','mJa0odi0meD6vxPmyG','BgvUz3rO','mtmXmZLks0T0shq','ChvZAa','Aw1Hz2u','mZG4mJy0mfHhvuvWCq','Dgv4Da','mtuXodq5mMzcAxzeAW','CMvWBgfJzq','nde4mKvIEg5mwq'];_0xcce1=function(){return _0x43224f;};return _0xcce1();}(function(_0x429c53,_0xad244c){const _0x2d440f={_0x42aeb1:0x14a,_0x45c7a4:0x14a,_0x211211:0x148,_0x17447d:0x153,_0x53b6b2:0x151,_0x258f3f:0x15d,_0x41c8f5:0x84,_0x32402c:0x8b,_0x4b70fb:0x146,_0x1bdd36:0x147,_0x5dfb67:0x7e,_0xc154c7:0x7b,_0x140ba3:0x80,_0x5547bd:0x14f,_0x1ac9ec:0x89,_0x1cc838:0x8f,_0x327d39:0x8e,_0x661bf7:0x150,_0x466db8:0x14d,_0x151be9:0x156},_0x5ef6e3={_0x34f0e8:0x50};function _0x7e8794(_0x201415,_0x27bf2d,_0x3850c7,_0x3ba72c){return _0x14a3(_0x3ba72c- -0x118,_0x3850c7);}const _0x218972=_0x429c53();function _0x561e06(_0x13ca7e,_0xa9cae8,_0x4ba2af,_0x316140){return _0x14a3(_0xa9cae8- -_0x5ef6e3._0x34f0e8,_0x13ca7e);}while(!![]){try{const _0x160ffb=-parseInt(_0x561e06(_0x2d440f._0x42aeb1,_0x2d440f._0x45c7a4,_0x2d440f._0x211211,_0x2d440f._0x17447d))/0x1+parseInt(_0x561e06(_0x2d440f._0x45c7a4,_0x2d440f._0x53b6b2,_0x2d440f._0x17447d,_0x2d440f._0x258f3f))/0x2*(parseInt(_0x7e8794(0x8d,_0x2d440f._0x41c8f5,0x96,_0x2d440f._0x32402c))/0x3)+-parseInt(_0x561e06(0x146,_0x2d440f._0x4b70fb,0x148,0x13e))/0x4+-parseInt(_0x561e06(0x13d,0x144,0x13f,_0x2d440f._0x1bdd36))/0x5+-parseInt(_0x7e8794(_0x2d440f._0x5dfb67,0x74,_0x2d440f._0xc154c7,_0x2d440f._0x140ba3))/0x6*(-parseInt(_0x561e06(_0x2d440f._0x258f3f,0x158,0x162,_0x2d440f._0x5547bd))/0x7)+parseInt(_0x7e8794(_0x2d440f._0x1ac9ec,_0x2d440f._0x1cc838,_0x2d440f._0x327d39,_0x2d440f._0x327d39))/0x8+parseInt(_0x561e06(0x159,_0x2d440f._0x661bf7,_0x2d440f._0x466db8,_0x2d440f._0x151be9))/0x9;if(_0x160ffb===_0xad244c)break;else _0x218972['push'](_0x218972['shift']());}catch(_0x27c9fe){_0x218972['push'](_0x218972['shift']());}}}(_0xcce1,0xc5c19));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import'../chunk-NYZR4XKO.js';function _0x14a3(_0x34366b,_0x3b83c2){_0x34366b=_0x34366b-0x193;const _0xcce1c4=_0xcce1();let _0x14a335=_0xcce1c4[_0x34366b];if(_0x14a3['GhviWv']===undefined){var _0x3ac543=function(_0x36689c){const _0x35319c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f3783='',_0x2f52c8='';for(let _0x5873ea=0x0,_0x33b315,_0x2fa164,_0x12eaa4=0x0;_0x2fa164=_0x36689c['charAt'](_0x12eaa4++);~_0x2fa164&&(_0x33b315=_0x5873ea%0x4?_0x33b315*0x40+_0x2fa164:_0x2fa164,_0x5873ea++%0x4)?_0x2f3783+=String['fromCharCode'](0xff&_0x33b315>>(-0x2*_0x5873ea&0x6)):0x0){_0x2fa164=_0x35319c['indexOf'](_0x2fa164);}for(let _0x59b454=0x0,_0x33f23d=_0x2f3783['length'];_0x59b454<_0x33f23d;_0x59b454++){_0x2f52c8+='%'+('00'+_0x2f3783['charCodeAt'](_0x59b454)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f52c8);};_0x14a3['yIUsxX']=_0x3ac543,_0x14a3['zGZUPi']={},_0x14a3['GhviWv']=!![];}const _0x5e2a04=_0xcce1c4[0x0],_0x515319=_0x34366b+_0x5e2a04,_0x3d1f2b=_0x14a3['zGZUPi'][_0x515319];return!_0x3d1f2b?(_0x14a335=_0x14a3['yIUsxX'](_0x14a335),_0x14a3['zGZUPi'][_0x515319]=_0x14a335):_0x14a335=_0x3d1f2b,_0x14a335;}import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-QDOE7NWO.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x2f3783){const _0x2d1ede={_0x4b9cd7:0x442,_0x3a8738:0x43d,_0x1c5334:0x43c,_0x4d3f9e:0x439,_0x54ea03:0x444},_0x471cec={_0xa16e50:0x29e};function _0x5b9e72(_0x4d9e7a,_0x3e9fa0,_0x1c05b9,_0x24a4b7){return _0x14a3(_0x1c05b9-_0x471cec._0xa16e50,_0x24a4b7);}function _0x5b4bbd(_0x317340,_0x511df9,_0x288d65,_0x43745a){return _0x14a3(_0x511df9- -0x1d3,_0x43745a);}return _0x2f3783===_0x5b9e72(_0x2d1ede._0x4b9cd7,_0x2d1ede._0x3a8738,_0x2d1ede._0x1c5334,0x442)?_0x5b9e72(0x444,0x43d,_0x2d1ede._0x4d3f9e,_0x2d1ede._0x54ea03):_0x2f3783;}function isValidBase64(_0x2f52c8){const _0x2642fc={_0x344b89:0xda,_0x5b540b:0xd8,_0x389a81:0x35f,_0x5b242c:0x367},_0x33c97f={_0x460a6c:0x1c2};if(_0x2f52c8[_0x52ab8f(0xd5,_0x2642fc._0x344b89,0xdc,_0x2642fc._0x5b540b)]===0x0||_0x2f52c8['length']%0x4!==0x0)return![];function _0x52ab8f(_0x5675a4,_0x59d423,_0x219cc1,_0x2810a7){return _0x14a3(_0x59d423- -0xcd,_0x5675a4);}function _0x1e1d32(_0x36cdf3,_0x34f389,_0x8c4c9d,_0x4fa6ec){return _0x14a3(_0x36cdf3-_0x33c97f._0x460a6c,_0x8c4c9d);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x1e1d32(_0x2642fc._0x389a81,0x364,_0x2642fc._0x5b242c,0x357)](_0x2f52c8);}function collectImageMatches(_0x5873ea){const _0x4ead4={_0x3ead0a:0x275,_0x27209b:0x285,_0x34d663:0x28b,_0x34970e:0x28c,_0xaebf4:0x283,_0x314091:0x278},_0x3d2031={_0x3502ef:0x50},_0x41b14c={_0x57cb82:0xdf};function _0x442bab(_0x129139,_0x46b72d,_0x15b417,_0x382f50){return _0x14a3(_0x46b72d-0x225,_0x15b417);}DATA_URI_REGEX[_0x5c505d(0x27b,_0x4ead4._0x3ead0a,_0x4ead4._0x3ead0a,_0x4ead4._0x27209b)]=0x0;function _0x5c505d(_0x4edebb,_0x2d9e29,_0x1347b0,_0x253469){return _0x14a3(_0x4edebb-_0x41b14c._0x57cb82,_0x1347b0);}return Array[_0x5c505d(0x284,_0x4ead4._0x34d663,_0x4ead4._0x34970e,0x28b)](_0x5873ea[_0x5c505d(_0x4ead4._0xaebf4,_0x4ead4._0x314091,0x27b,0x280)](DATA_URI_REGEX))['filter'](_0x33b315=>{const _0x2fa164=(_0x33b315[0x2]??'')[_0x58bdb2(0x4d6,0x4d3,0x4d3,0x4df)](/[\r\n]/g,'');function _0x58bdb2(_0x5464c2,_0x3f17b8,_0x5b6727,_0x2046a2){return _0x5c505d(_0x5464c2-0x260,_0x3f17b8-0xb1,_0x5b6727,_0x2046a2-_0x3d2031._0x3502ef);}return isValidBase64(_0x2fa164);});}function hasPastedImages(_0x12eaa4){const _0x468860={_0x37ead8:0x65},_0x2a47f7={_0x20aaa4:0x20d};function _0x5964b7(_0x2a0946,_0x80f0af,_0x670e76,_0x495b8){return _0x14a3(_0x2a0946- -_0x2a47f7._0x20aaa4,_0x670e76);}return collectImageMatches(_0x12eaa4)[_0x5964b7(-0x66,-_0x468860._0x37ead8,-0x6e,-0x5f)]>0x0;}function contentFromPastedText(_0x59b454){const _0x32b25d={_0x1e2a8e:0x2ae,_0x4642dc:0xee,_0x5f5d4b:0xf5,_0x24332d:0xea,_0x1549d5:0xe1,_0x39c639:0x2bc,_0x37ba92:0x2bf,_0x5a6bcd:0xdf,_0x28f984:0xd6,_0x10d86c:0xea,_0x50c2e4:0xe5,_0x49e26e:0xf3,_0x376f3e:0xf8,_0x337c45:0xf3,_0x5e37d7:0xfe,_0x334c89:0xff,_0x578ea9:0xed,_0x38ac26:0x2a5,_0x5c1bf9:0xf9,_0x157a76:0xf4,_0x270462:0x2ad,_0x41b633:0x2b3,_0x4f642e:0x2be,_0x489adb:0x29f,_0x5a1772:0x2a1,_0x476866:0x2a2},_0x33f23d=collectImageMatches(_0x59b454);function _0x28bc08(_0x2b8b1b,_0x1cc7a4,_0x3075e4,_0x5e70db){return _0x14a3(_0x1cc7a4-0x10c,_0x5e70db);}function _0x1125e3(_0x51f910,_0x30032d,_0x82a0d6,_0x43a000){return _0x14a3(_0x82a0d6- -0xb4,_0x43a000);}const _0x1092f1=[];let _0x2c81c6=0x0;for(const _0x20edc6 of _0x33f23d){const _0x512b66=_0x20edc6[_0x28bc08(_0x32b25d._0x1e2a8e,0x2ab,0x2a1,0x2b1)]??0x0,[_0x23fbd4,_0x4486bf,_0x24cc83]=_0x20edc6;_0x512b66>_0x2c81c6&&_0x1092f1[_0x1125e3(0xf9,_0x32b25d._0x4642dc,_0x32b25d._0x5f5d4b,0xeb)]({'type':_0x1125e3(_0x32b25d._0x24332d,0xe3,0xe1,_0x32b25d._0x1549d5),'text':_0x59b454['slice'](_0x2c81c6,_0x512b66)}),_0x1092f1[_0x28bc08(_0x32b25d._0x39c639,0x2b5,_0x32b25d._0x37ba92,0x2b0)]({'type':_0x1125e3(0xdb,0xe8,_0x32b25d._0x5a6bcd,_0x32b25d._0x28f984),'source':{'type':_0x1125e3(_0x32b25d._0x10d86c,0xe2,_0x32b25d._0x50c2e4,0xdd),'media_type':normalizeMediaType(_0x4486bf),'data':_0x24cc83['replace'](/[\r\n]/g,'')}}),_0x2c81c6=_0x512b66+_0x23fbd4[_0x1125e3(0xf6,0xed,_0x32b25d._0x49e26e,0xf0)];}return _0x2c81c6<_0x59b454[_0x1125e3(_0x32b25d._0x376f3e,0xed,_0x32b25d._0x337c45,_0x32b25d._0x5e37d7)]&&_0x1092f1[_0x1125e3(_0x32b25d._0x334c89,_0x32b25d._0x578ea9,_0x32b25d._0x5f5d4b,0xfc)]({'type':_0x28bc08(_0x32b25d._0x38ac26,0x2a1,0x29e,0x29d),'text':_0x59b454[_0x1125e3(_0x32b25d._0x5c1bf9,0xe9,_0x32b25d._0x4642dc,_0x32b25d._0x157a76)](_0x2c81c6)}),_0x1092f1[_0x28bc08(_0x32b25d._0x270462,_0x32b25d._0x41b633,0x2b7,_0x32b25d._0x4f642e)]>0x0?_0x1092f1:[{'type':_0x28bc08(_0x32b25d._0x489adb,_0x32b25d._0x5a1772,_0x32b25d._0x476866,0x296),'text':_0x59b454}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
1
+ (function(_0x3c7513,_0x54c9e0){const _0x47623f={_0x7f63a6:0x19c,_0x9233ad:0x196,_0x32f4fd:0x256,_0x28e64b:0x266,_0x394aa4:0x25e,_0x534c27:0x263,_0x1d337d:0x1a8,_0x431d54:0x19b,_0x5023da:0x26f,_0xd2f1ff:0x261,_0x4f5314:0x261,_0xc01be0:0x264,_0x3db9de:0x1ae,_0x5321fe:0x260,_0x250bd0:0x265,_0x3887d8:0x25f},_0x2486ad={_0x1c61e5:0x16b},_0xa4b19e={_0x5212a6:0xab};function _0x5bb32e(_0x39aafe,_0x13321a,_0x5e40c8,_0x475d2c){return _0x33d1(_0x39aafe-_0xa4b19e._0x5212a6,_0x13321a);}const _0x5b4a1c=_0x3c7513();function _0x563d79(_0x412450,_0x418fcd,_0xc5e1c5,_0x23d440){return _0x33d1(_0x412450-_0x2486ad._0x1c61e5,_0xc5e1c5);}while(!![]){try{const _0x5257f5=parseInt(_0x5bb32e(_0x47623f._0x7f63a6,0x19a,_0x47623f._0x9233ad,0x19f))/0x1*(-parseInt(_0x563d79(0x25e,0x25c,_0x47623f._0x32f4fd,0x258))/0x2)+parseInt(_0x563d79(_0x47623f._0x28e64b,_0x47623f._0x394aa4,0x260,_0x47623f._0x534c27))/0x3+-parseInt(_0x5bb32e(0x1a5,0x19e,_0x47623f._0x1d337d,0x1a3))/0x4+parseInt(_0x5bb32e(0x199,_0x47623f._0x431d54,0x1a2,0x1a0))/0x5+-parseInt(_0x563d79(0x268,_0x47623f._0x5023da,_0x47623f._0xd2f1ff,_0x47623f._0x28e64b))/0x6*(-parseInt(_0x563d79(_0x47623f._0x4f5314,0x260,_0x47623f._0xc01be0,_0x47623f._0xc01be0))/0x7)+-parseInt(_0x5bb32e(0x1a7,0x1ae,0x1b0,_0x47623f._0x3db9de))/0x8+-parseInt(_0x563d79(0x25d,0x265,_0x47623f._0x5321fe,0x256))/0x9*(-parseInt(_0x563d79(0x264,_0x47623f._0x250bd0,0x26a,_0x47623f._0x3887d8))/0xa);if(_0x5257f5===_0x54c9e0)break;else _0x5b4a1c['push'](_0x5b4a1c['shift']());}catch(_0x17be03){_0x5b4a1c['push'](_0x5b4a1c['shift']());}}}(_0x3c5b,0x4275a));function _0x33d1(_0x395549,_0x33c1e7){_0x395549=_0x395549-0xee;const _0x3c5ba7=_0x3c5b();let _0x33d1a9=_0x3c5ba7[_0x395549];if(_0x33d1['aKBOZB']===undefined){var _0x2bf11a=function(_0xbb32b){const _0x3c25c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x402ca0='',_0x4f4f11='';for(let _0xe1c4e4=0x0,_0x29c1a9,_0x45c784,_0x50fe5b=0x0;_0x45c784=_0xbb32b['charAt'](_0x50fe5b++);~_0x45c784&&(_0x29c1a9=_0xe1c4e4%0x4?_0x29c1a9*0x40+_0x45c784:_0x45c784,_0xe1c4e4++%0x4)?_0x402ca0+=String['fromCharCode'](0xff&_0x29c1a9>>(-0x2*_0xe1c4e4&0x6)):0x0){_0x45c784=_0x3c25c1['indexOf'](_0x45c784);}for(let _0x1c3e79=0x0,_0xb8195e=_0x402ca0['length'];_0x1c3e79<_0xb8195e;_0x1c3e79++){_0x4f4f11+='%'+('00'+_0x402ca0['charCodeAt'](_0x1c3e79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f4f11);};_0x33d1['cfqAYL']=_0x2bf11a,_0x33d1['nAlkFa']={},_0x33d1['aKBOZB']=!![];}const _0xd88092=_0x3c5ba7[0x0],_0x199ac5=_0x395549+_0xd88092,_0x98e3ea=_0x33d1['nAlkFa'][_0x199ac5];return!_0x98e3ea?(_0x33d1a9=_0x33d1['cfqAYL'](_0x33d1a9),_0x33d1['nAlkFa'][_0x199ac5]=_0x33d1a9):_0x33d1a9=_0x98e3ea,_0x33d1a9;}import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-QDOE7NWO.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x402ca0){return _0x402ca0==='image/jpg'?'image/jpeg':_0x402ca0;}function isValidBase64(_0x4f4f11){const _0x4f3d19={_0x1af18f:0x184};function _0x5b879e(_0x4a1453,_0x3421af,_0x4d3305,_0x9957bd){return _0x33d1(_0x4d3305-_0x4f3d19._0x1af18f,_0x4a1453);}if(_0x4f4f11['length']===0x0||_0x4f4f11[_0x5b879e(0x280,0x278,0x27b,0x27f)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x4f4f11);}function collectImageMatches(_0xe1c4e4){const _0x938705={_0x34a921:0x46a,_0x457d8c:0x471,_0x595e42:0x431,_0x392f98:0x443},_0x1a8a01={_0x3d0954:0xfb,_0x3562c6:0xfd},_0x1f8d64={_0x4baeba:0x337},_0x4eb3a3={_0x57b3bc:0x33c},_0x1c1faa={_0x2c7d69:0x37b};DATA_URI_REGEX[_0x390ada(0x42c,0x42c,0x42a,0x433)]=0x0;function _0x48f7f9(_0xbabf7f,_0x1606ac,_0x4b7cc9,_0x4c164){return _0x33d1(_0x4c164-_0x1c1faa._0x2c7d69,_0xbabf7f);}function _0x390ada(_0x127cbb,_0x30e95e,_0x20e666,_0xd62c5f){return _0x33d1(_0x30e95e-_0x4eb3a3._0x57b3bc,_0xd62c5f);}return Array['from'](_0xe1c4e4[_0x48f7f9(_0x938705._0x34a921,0x466,_0x938705._0x457d8c,0x46a)](DATA_URI_REGEX))[_0x390ada(_0x938705._0x595e42,0x43a,_0x938705._0x392f98,_0x938705._0x595e42)](_0x29c1a9=>{const _0x45c784=(_0x29c1a9[0x2]??'')[_0x47a597(0xfa,0xf8,_0x1a8a01._0x3d0954,_0x1a8a01._0x3562c6)](/[\r\n]/g,'');function _0x47a597(_0x4a9e54,_0x121559,_0x510fea,_0x4c02e6){return _0x390ada(_0x4a9e54-0x80,_0x4a9e54- -_0x1f8d64._0x4baeba,_0x510fea-0x62,_0x510fea);}return isValidBase64(_0x45c784);});}function hasPastedImages(_0x50fe5b){function _0x2208f7(_0x3020c9,_0x38ef0a,_0x50e774,_0x5f2d40){return _0x33d1(_0x38ef0a- -0x73,_0x50e774);}return collectImageMatches(_0x50fe5b)[_0x2208f7(0x89,0x84,0x7e,0x86)]>0x0;}function contentFromPastedText(_0x1c3e79){const _0x5a40bc={_0x3f51b7:0x56,_0x161d51:0x59,_0x2a0346:0x2a6,_0x361f2f:0x2ac,_0x286e98:0x2a2,_0x5980c6:0x298,_0x26b4ed:0x53,_0x379ed9:0x4d,_0x16da20:0x4a,_0x55b316:0x4b,_0x7a9042:0x5b,_0x3f31a0:0x55,_0x229cc8:0x29b,_0x165d6d:0x54,_0x4a3e24:0x29a,_0x5880c1:0x2a3},_0xfe9534={_0x4dde8a:0x1a9},_0x42fd63={_0x3dd145:0x14a},_0xb8195e=collectImageMatches(_0x1c3e79);function _0x572fbb(_0x2a35e9,_0x48b5ec,_0x803c77,_0x467acf){return _0x33d1(_0x2a35e9- -_0x42fd63._0x3dd145,_0x803c77);}function _0x2136e6(_0x85d379,_0x53a235,_0x2a5c13,_0x4182e1){return _0x33d1(_0x4182e1-_0xfe9534._0x4dde8a,_0x85d379);}const _0xa17381=[];let _0x2d5143=0x0;for(const _0x2c0b1b of _0xb8195e){const _0x1ccb23=_0x2c0b1b['index']??0x0,[_0x57aae5,_0x25d9e3,_0x4c079b]=_0x2c0b1b;_0x1ccb23>_0x2d5143&&_0xa17381['push']({'type':_0x572fbb(-_0x5a40bc._0x3f51b7,-0x59,-_0x5a40bc._0x161d51,-0x59),'text':_0x1c3e79['slice'](_0x2d5143,_0x1ccb23)}),_0xa17381[_0x2136e6(_0x5a40bc._0x2a0346,_0x5a40bc._0x361f2f,_0x5a40bc._0x286e98,0x2a8)]({'type':'image','source':{'type':'base64','media_type':normalizeMediaType(_0x25d9e3),'data':_0x4c079b[_0x2136e6(0x297,_0x5a40bc._0x5980c6,0x2a4,0x29e)](/[\r\n]/g,'')}}),_0x2d5143=_0x1ccb23+_0x57aae5['length'];}return _0x2d5143<_0x1c3e79[_0x572fbb(-_0x5a40bc._0x26b4ed,-0x54,-_0x5a40bc._0x379ed9,-_0x5a40bc._0x16da20)]&&_0xa17381[_0x572fbb(-_0x5a40bc._0x55b316,-0x42,-0x46,-0x45)]({'type':_0x572fbb(-0x56,-0x4d,-_0x5a40bc._0x7a9042,-_0x5a40bc._0x3f31a0),'text':_0x1c3e79[_0x2136e6(0x298,_0x5a40bc._0x229cc8,_0x5a40bc._0x286e98,0x2a1)](_0x2d5143)}),_0xa17381[_0x572fbb(-0x53,-0x5b,-_0x5a40bc._0x165d6d,-0x5c)]>0x0?_0xa17381:[{'type':_0x2136e6(0x29c,_0x5a40bc._0x4a3e24,_0x5a40bc._0x5880c1,0x29d),'text':_0x1c3e79}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};function _0x3c5b(){const _0x5dc2ea=['mti4otm5ngDhA1DLCq','mtC3odaXnKTSrfjuuW','ntmZodK4z3zIwLDk','zMLSDgvY','ChvZAa','mta3ntGYme9dqKLPtW','Bwf0y2HbBgW','BgfZDeLUzgv4','mwHuA0DPvW','mtCZotDnrM11sNe','ndG5mdiYA0rTBvbc','Dgv4Da','CMvWBgfJzq','ndjiyLvOuuy','BgvUz3rO','C2XPy2u','nduWzNvkDMff','mJeWnZq1nLzbC3nbEG'];_0x3c5b=function(){return _0x5dc2ea;};return _0x3c5b();}
@@ -1 +1 @@
1
- function _0xeb76(){const _0x56e9bd=['CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','C3rHDgu','mtq0BNntAKrp','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','CgfYC2u','CgLWzq','ywz0zxjuDxjUq29TCgXLDgu','BMfTzq','C2vZC2LVBKLK','Dg9tDhjPBMC','ntG4ntGWBwD4B09M','DgvZDa','Ag9VAZPtDg9W','A2LSBa','ywXSB3C','AgfZsg9VA3m','zw5Kx3r1CM4','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','C3rKzxjY','CMvHC29U','C3rHDhvZ','z2v0sg9VA3m','mZaXmMHYsu9Oqq','mZq1m2zNs25jAG','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','nJbjs3jeCKm','Ag9VAZPqB3n0vg9VBfvZzq','Dg9VBe5HBwu','BgvUz3rO','yMXVy2S','zgvJAxnPB24','u0Lhs0Lmta','CNvU','uhjLvg9VBfvZzq','DgLTzw91Da','nZuXmJe1m0Hot1vyDG','zxjYB3i','Bwf0y2HLCG','nZiXnJmYswXKsxj3','Ag9VA1nWzwnPzMLJt3v0Chv0','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','ndi0otLwrhrXyLi','Aw5WDxq','mZuWndHHzeTNC0m','BM93','y29Kzq','y2XVC2u','xIG/oG','CMvQzwn0','ywz0zxjuB29SuMvZDwX0','CgfZCW','ug9ZDfrVB2XvC2u','BwfW','tM90AwzPy2f0Aw9U','Ag9VAZPoB3rPzMLJyxrPB24','DhjPBq','B3v0Chv0','B2jZzxj2zxi','zw5K','C3rKAw4','mZCXnJuWy2jZEMLu','Ag9VA3m','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','otfdzhrmsuy','y29TBwfUza','u3rVCa','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','C3rYAw5NAwz5','ChvZAa','zgf0yq'];_0xeb76=function(){return _0x56e9bd;};return _0xeb76();}(function(_0x412af9,_0x5d7057){const _0x540d2f={_0x3a4f76:0x119,_0x5bfe0a:0x102,_0x3c284f:0xf9,_0x1e0f8d:0x149,_0x2bbb25:0x15a,_0x100a81:0x33f,_0x535854:0x317,_0x288ab9:0x329,_0x5e84a7:0x32f,_0x5d2bd7:0x302,_0x10494d:0x2f2,_0x5084cb:0x332,_0x1f507d:0x335,_0x3dbbe9:0x340,_0x1b2edf:0x2f9,_0x250abb:0x2f1,_0x5eafb4:0xfd,_0x33924f:0x11b,_0x1b7e93:0x10f,_0x3616fb:0x324,_0x545866:0x12a,_0xe576c8:0x140,_0x51f792:0x134,_0x26e46a:0x33c},_0x47d40f={_0x535bc6:0x93},_0x145a05={_0x285cd1:0x150},_0x453bf0=_0x412af9();function _0x45a49e(_0x5e7b3f,_0x2c494b,_0x2c17d1,_0xae429f){return _0x1f31(_0x2c494b-_0x145a05._0x285cd1,_0xae429f);}function _0x52bb1c(_0x19deb1,_0x16d557,_0x452354,_0x587ecb){return _0x1f31(_0x16d557- -_0x47d40f._0x535bc6,_0x19deb1);}while(!![]){try{const _0x3b9076=parseInt(_0x52bb1c(0x10c,_0x540d2f._0x3a4f76,_0x540d2f._0x5bfe0a,_0x540d2f._0x3c284f))/0x1+parseInt(_0x52bb1c(_0x540d2f._0x1e0f8d,0x15c,0x176,_0x540d2f._0x2bbb25))/0x2+-parseInt(_0x45a49e(_0x540d2f._0x100a81,0x330,0x353,_0x540d2f._0x535854))/0x3*(parseInt(_0x45a49e(_0x540d2f._0x288ab9,_0x540d2f._0x5e84a7,0x336,0x33e))/0x4)+parseInt(_0x45a49e(_0x540d2f._0x5d2bd7,0x30f,0x311,_0x540d2f._0x10494d))/0x5*(-parseInt(_0x45a49e(0x322,_0x540d2f._0x5084cb,_0x540d2f._0x1f507d,_0x540d2f._0x3dbbe9))/0x6)+-parseInt(_0x45a49e(_0x540d2f._0x1b2edf,0x312,0x324,_0x540d2f._0x250abb))/0x7*(-parseInt(_0x52bb1c(_0x540d2f._0x5eafb4,_0x540d2f._0x33924f,0xf8,_0x540d2f._0x1b7e93))/0x8)+parseInt(_0x45a49e(0x324,0x31b,0x329,_0x540d2f._0x3616fb))/0x9*(parseInt(_0x52bb1c(_0x540d2f._0x545866,_0x540d2f._0xe576c8,0x153,_0x540d2f._0x51f792))/0xa)+parseInt(_0x45a49e(0x35e,_0x540d2f._0x26e46a,0x31e,0x34b))/0xb;if(_0x3b9076===_0x5d7057)break;else _0x453bf0['push'](_0x453bf0['shift']());}catch(_0x148235){_0x453bf0['push'](_0x453bf0['shift']());}}}(_0xeb76,0x73f24));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x3b74a0,_0x133195,_0x30de15=DEFAULT_TIMEOUT_S,_0x10c3be){const _0x1fdf58={_0x576097:0xd2,_0x40935f:0xe0,_0x58a3e5:0x149,_0x449e89:0x14c,_0x553832:0x138,_0x1e8037:0x14d,_0x408c26:0xdd,_0x12a7a3:0xdf,_0x4de621:0x16e,_0x464d8f:0x16b,_0x24bd97:0x159,_0x35d592:0x14c,_0xbde0fa:0xe4,_0x43e96d:0xca,_0x22568b:0xe2,_0x4f05e8:0x15b,_0x5b41f2:0x14b,_0x13181b:0x142,_0x1aa332:0x13b,_0x248592:0x141,_0x36d3c0:0x130,_0x49dfd9:0x142},_0x13345c={_0xb214bb:0x82},_0x5d499e={_0x3209f1:0x582},_0x346db7=Date['now']();return new Promise(_0x3f3c02=>{const _0x1a5d4c={_0x31958c:0x12f},_0xa3ea57={_0x296e24:0x399,_0x2c92aa:0x38b,_0x5ea9a8:0x3d1,_0x31981a:0x3a2,_0x42b0c3:0x3a1,_0x4f10f1:0x3d0,_0x266a54:0x3b5,_0x66c3c0:0x3ef,_0x18350f:0x3cd,_0x3a1cf3:0x291,_0x3f9ea7:0x28a,_0x1f9cb1:0x29d,_0x2c8acb:0x2b0,_0x5f46fd:0x295,_0x5487e9:0x388,_0x13fb6:0x398,_0x307c3a:0x38a,_0x15417b:0x396,_0x2358af:0x2dc,_0x97ad52:0x3aa,_0x45729e:0x373,_0xc086f9:0x391,_0x2f4296:0x2b9},_0x3b97c7={_0x68b8f5:0x25e},_0x520953={_0x3d8309:0x9c,_0x7984d3:0xe4},_0x295974={_0x50ed68:0x326,_0x9df368:0x345,_0x40f010:0x32a,_0x18c152:0x6,_0x9b1853:0x9,_0x355051:0x33,_0x131b78:0x10,_0x438b6c:0x15,_0x4d9911:0x317,_0x512ab2:0x31f,_0x549d7a:0x2fe,_0x56dda4:0x2a,_0x436188:0x44,_0x55a8e5:0x29},_0x2a8f67={_0x1286a5:0x1f3},_0x2055d6={_0x2e964f:0xfc},_0x3f75bc={_0x2934b7:0x82},_0x129160={_0x115ed8:0x199},_0x15d563={_0x1c78a2:0xdb,_0x2ba537:0x88},_0x23ef95=spawn('sh',['-c',_0x3b74a0],{'stdio':[_0x6eefd8(0xb1,_0x1fdf58._0x576097,_0x1fdf58._0x40935f,0xb4),'pipe',_0x39ebc0(0x130,_0x1fdf58._0x58a3e5,_0x1fdf58._0x449e89,_0x1fdf58._0x553832)],'env':{...process['env'],'CLAUDE_PROJECT_DIR':_0x10c3be??process['cwd']()}});let _0x3fc909='',_0x6647fd='';_0x23ef95['stdout']['on'](_0x39ebc0(_0x1fdf58._0x1e8037,0x129,0x146,0x13f),_0x112237=>{_0x3fc909+=_0x112237['toString']();}),_0x23ef95[_0x6eefd8(_0x1fdf58._0x408c26,_0x1fdf58._0x12a7a3,0xe6,0xfa)]['on']('data',_0x2c76c0=>{function _0x17759e(_0x37e7fa,_0x1f7dc1,_0x3a8c26,_0x3a5143){return _0x39ebc0(_0x1f7dc1,_0x1f7dc1-_0x15d563._0x1c78a2,_0x37e7fa-0x411,_0x3a5143-_0x15d563._0x2ba537);}_0x6647fd+=_0x2c76c0[_0x17759e(0x561,0x552,0x55e,_0x5d499e._0x3209f1)]();}),_0x23ef95['stdin']['on'](_0x39ebc0(0x17e,_0x1fdf58._0x4de621,_0x1fdf58._0x464d8f,0x163),_0xc1bbdb=>{function _0x28e218(_0x57dbdc,_0x1ba502,_0x334e3a,_0x3ee467){return _0x39ebc0(_0x57dbdc,_0x1ba502-0x24,_0x3ee467- -_0x129160._0x115ed8,_0x3ee467-0x17);}if(_0xc1bbdb[_0x28e218(-0x50,-_0x13345c._0xb214bb,-0x61,-0x6b)]!=='EPIPE')throw _0xc1bbdb;}),_0x23ef95[_0x39ebc0(0x134,_0x1fdf58._0x24bd97,0x13c,_0x1fdf58._0x35d592)]['write'](JSON[_0x6eefd8(_0x1fdf58._0xbde0fa,_0x1fdf58._0x43e96d,_0x1fdf58._0x22568b,0xce)](_0x133195));function _0x39ebc0(_0xb22b27,_0x490d52,_0x1f6a63,_0x262aae){return _0x1f31(_0x1f6a63- -_0x3f75bc._0x2934b7,_0xb22b27);}_0x23ef95[_0x39ebc0(_0x1fdf58._0x4f05e8,0x12f,0x13c,0x11a)][_0x39ebc0(_0x1fdf58._0x5b41f2,_0x1fdf58._0x13181b,_0x1fdf58._0x1aa332,0x152)]();function _0x6eefd8(_0x53e663,_0x514f83,_0xfa4b0a,_0x54c542){return _0x1f31(_0x514f83- -_0x2055d6._0x2e964f,_0x53e663);}const _0x31f9d8=setTimeout(()=>{const _0x36383a={_0x2bdcd9:0x156};function _0x20bca9(_0x227994,_0x23fcce,_0x53da3c,_0x3007ac){return _0x39ebc0(_0x227994,_0x23fcce-0x29,_0x3007ac- -_0x36383a._0x2bdcd9,_0x3007ac-0x170);}_0x23ef95[_0x140d87(_0x295974._0x50ed68,_0x295974._0x9df368,0x334,_0x295974._0x40f010)](_0x20bca9(-_0x295974._0x18c152,_0x295974._0x9b1853,_0x295974._0x355051,_0x295974._0x131b78));function _0x140d87(_0x372bf6,_0x6ffd1d,_0x2893ad,_0x4c85a8){return _0x6eefd8(_0x2893ad,_0x4c85a8-0x250,_0x2893ad-_0x2a8f67._0x1286a5,_0x4c85a8-0x87);}_0x3f3c02({'status':_0x20bca9(0x23,0x22,0x4,_0x295974._0x438b6c),'error':_0x140d87(_0x295974._0x4d9911,_0x295974._0x512ab2,_0x295974._0x549d7a,0x320)+_0x30de15+'s','duration_ms':Date[_0x20bca9(-_0x295974._0x56dda4,-_0x295974._0x436188,-0x2b,-_0x295974._0x55a8e5)]()-_0x346db7});},_0x30de15*0x3e8);_0x23ef95['on'](_0x39ebc0(_0x1fdf58._0x248592,_0x1fdf58._0x36d3c0,0x12f,_0x1fdf58._0x49dfd9),_0x586cbb=>{clearTimeout(_0x31f9d8);const _0x50c38a=Date[_0x4bebd3(_0xa3ea57._0x296e24,0x36d,0x39e,_0xa3ea57._0x2c92aa)]()-_0x346db7;if(_0x586cbb===0x2){_0x3f3c02({'status':'block','output':{'decision':_0x4bebd3(_0xa3ea57._0x5ea9a8,0x3ca,0x3a6,0x3c2),'reason':_0x6647fd['trim']()||_0x4bebd3(_0xa3ea57._0x31981a,0x39f,0x390,_0xa3ea57._0x42b0c3)},'duration_ms':_0x50c38a});return;}if(_0x586cbb!==0x0){_0x3f3c02({'status':'error','error':_0x4bebd3(_0xa3ea57._0x4f10f1,_0xa3ea57._0x266a54,_0xa3ea57._0x66c3c0,_0xa3ea57._0x18350f)+_0x586cbb+(_0x6647fd[_0x54b216(0x282,0x27e,_0xa3ea57._0x3a1cf3,_0xa3ea57._0x3f9ea7)]()?':\x20'+_0x6647fd[_0x54b216(_0xa3ea57._0x1f9cb1,_0xa3ea57._0x2c8acb,_0xa3ea57._0x3a1cf3,_0xa3ea57._0x5f46fd)]():''),'duration_ms':_0x50c38a});return;}function _0x54b216(_0x26cf43,_0x47beb0,_0x3b6926,_0x3694fb){return _0x39ebc0(_0x26cf43,_0x47beb0-_0x520953._0x3d8309,_0x3b6926-0x159,_0x3694fb-_0x520953._0x7984d3);}function _0x4bebd3(_0x36351c,_0x1e0e86,_0x232a9a,_0x231c85){return _0x39ebc0(_0x232a9a,_0x1e0e86-0xc0,_0x231c85-_0x3b97c7._0x68b8f5,_0x231c85-0x5b);}const _0x5eaa9c=_0x3fc909[_0x4bebd3(_0xa3ea57._0x5487e9,_0xa3ea57._0x13fb6,_0xa3ea57._0x307c3a,_0xa3ea57._0x15417b)]();if(_0x5eaa9c[_0x54b216(0x2df,_0xa3ea57._0x2358af,0x2bc,0x2b2)]===0x0){_0x3f3c02({'status':_0x4bebd3(_0xa3ea57._0x97ad52,0x36e,_0xa3ea57._0x45729e,_0xa3ea57._0xc086f9),'duration_ms':_0x50c38a});return;}try{const _0x698b7c=JSON[_0x54b216(_0xa3ea57._0x2f4296,_0xa3ea57._0x2c8acb,0x2a4,0x2bb)](_0x5eaa9c);_0x3f3c02({'status':'pass','output':_0x698b7c,'duration_ms':_0x50c38a});}catch{_0x3f3c02({'status':'pass','duration_ms':_0x50c38a});}}),_0x23ef95['on']('error',_0x359e33=>{const _0x3fc729={_0x3bca6d:0x102};clearTimeout(_0x31f9d8);function _0x5a01d2(_0x395b5e,_0x250d61,_0x344842,_0x1e11e4){return _0x6eefd8(_0x395b5e,_0x1e11e4- -0x218,_0x344842-0x64,_0x1e11e4-_0x3fc729._0x3bca6d);}_0x3f3c02({'status':_0x5a01d2(-0x11c,-0x132,-_0x1a5d4c._0x31958c,-0x127),'error':_0x359e33['message'],'duration_ms':Date['now']()-_0x346db7});});});}function createHookExtensions(_0x3a1c9f,_0xcaa5a3,_0x430657={}){const _0x49f838={_0x2fa999:0x9e,_0x4968a1:0x28d,_0x55239f:0xaa,_0x51dc40:0xbe,_0x8566f5:0x295,_0x3697ec:0x267,_0x515c08:0x9b,_0x3a27af:0xb7,_0x1f4d34:0xaf,_0x245f24:0x8d,_0x4eebb8:0x299,_0xbf9026:0x297,_0x408cb2:0x292,_0x143792:0xa4,_0x1a4cd4:0x94,_0x614f09:0xb2,_0x46eaee:0x27c,_0x129d9f:0x291,_0x1ff979:0xaf,_0x385e2a:0xa5,_0x554c01:0xb8,_0x64b1d:0xa2,_0x5adb4c:0xa5,_0x1f2b49:0x272},_0x14c131={_0x471862:0x38c,_0x4d55c4:0x22f,_0x388243:0x242,_0x2f761:0x233,_0x1ab1f7:0x230,_0x19904f:0x22c,_0x3dd5f7:0x220,_0x3638db:0x23a,_0xc0c083:0x231,_0x34ef48:0x21e,_0x108ef1:0x236,_0x214c29:0x3ac,_0x1bb8a8:0x376,_0x28397d:0x394},_0x3ca108={_0x53e9b1:0x124,_0x1f2700:0x69,_0x20fec2:0xbb},_0x2263fa={_0x154f29:0x1d1,_0x35d538:0x1db,_0x22211b:0x1b4,_0x155242:0x1a8,_0x86c14e:0x1c2,_0x364caf:0x1f6,_0x6576ce:0x1e0,_0x56aae6:0x1f7,_0x519f74:0x208},_0x1f40db={_0x28bfb9:0x13e},_0x3a914d={_0x5df127:0xdc,_0x1c77ce:0xf6,_0x8a71e2:0x1bf,_0x46bb82:0x1db,_0x4cfc12:0xd6,_0x37abd3:0xbb,_0x13b829:0xda,_0x1fd571:0x106,_0x3113db:0x214,_0x21e6ad:0x202,_0x2489c9:0x1cf,_0x4b794c:0x1fa,_0x232cd0:0x20f,_0x187298:0x1e1,_0x169b48:0x20d,_0x46da43:0x217,_0x5c8df4:0xf7,_0x492550:0xcf},_0x76ce40={_0x1ef40f:0x14a},_0x20f023={_0x58c80c:0xc4},_0x1a510f={_0x1daea8:0x118},_0x52cecd=[];function _0x3ead6c(_0x3fe6dc,_0xeb94af,_0x504878,_0x4aa2d7){return _0x1f31(_0x3fe6dc- -_0x1a510f._0x1daea8,_0x504878);}const {sessionId:_0x4517bd,projectDir:_0x2ae21a}=_0x430657;function _0x4087b5(_0x19f492,_0x282c87,_0x78dcc,_0x37c70f){return _0x1f31(_0x282c87-_0x20f023._0x58c80c,_0x37c70f);}const _0x3933a4=_0x405418=>_0x3a1c9f['hasHooks']?_0x3a1c9f[_0x3ead6c(0xc0,0xc7,0xdc,0xe0)](_0x405418):_0x3a1c9f[_0x3ead6c(0xc6,0xd0,0xdf,0xde)](_0x405418)[_0x3ead6c(0xcd,0xbc,0xbd,0xcf)]>0x0;return _0x3933a4(_0x3ead6c(0x9e,0xab,_0x49f838._0x2fa999,0x9f))&&_0x52cecd[_0x4087b5(0x29b,0x28b,0x2a8,_0x49f838._0x4968a1)]({'id':_0x3ead6c(0xcb,_0x49f838._0x55239f,0xbf,_0x49f838._0x51dc40),'stage':_0x4087b5(_0x49f838._0x8566f5,0x278,0x28d,_0x49f838._0x3697ec),'kind':_0x3ead6c(0xa4,_0x49f838._0x515c08,0xa0,_0x49f838._0x3a27af),'order':0x0,'enabled':!![],'run':async(_0x11b2dc,_0xc608d)=>{function _0x5844b0(_0xea2641,_0x4b63dc,_0x540237,_0x322980){return _0x4087b5(_0xea2641-0xd6,_0xea2641- -0x37e,_0x540237-0x56,_0x322980);}function _0x22b1c9(_0x2025b3,_0x1780d0,_0x322436,_0x55e17c){return _0x3ead6c(_0x322436-0x13d,_0x1780d0-_0x76ce40._0x1ef40f,_0x2025b3,_0x55e17c-0x50);}const _0x40a02c=_0x3a1c9f[_0x5844b0(-_0x3a914d._0x5df127,-0xea,-_0x3a914d._0x1c77ce,-0xef)](_0x22b1c9(0x1c3,_0x3a914d._0x8a71e2,_0x3a914d._0x46bb82,0x1c7),_0x11b2dc[_0x5844b0(-_0x3a914d._0x4cfc12,-0xbd,-0xb6,-_0x3a914d._0x37abd3)]);for(const _0x3978e9 of _0x40a02c){const _0x43b6f6={'tool_name':_0x11b2dc[_0x5844b0(-0xd6,-0xc6,-0xf9,-_0x3a914d._0x13b829)],'tool_input':void 0x0,'tool_output':_0x11b2dc[_0x5844b0(-0xff,-0x107,-_0x3a914d._0x1fd571,-0x10c)],'tool_result_status':_0x11b2dc[_0x22b1c9(0x1f9,_0x3a914d._0x3113db,_0x3a914d._0x21e6ad,0x1f4)],'session_id':_0x4517bd??_0xc608d[_0x22b1c9(_0x3a914d._0x2489c9,_0x3a914d._0x4b794c,0x1ef,_0x3a914d._0x232cd0)][_0x22b1c9(_0x3a914d._0x187298,_0x3a914d._0x169b48,0x1f6,_0x3a914d._0x46da43)]};await _0xcaa5a3(_0x3978e9[_0x5844b0(-_0x3a914d._0x5c8df4,-0xe6,-0xdd,-_0x3a914d._0x1fd571)],_0x43b6f6,_0x3978e9[_0x5844b0(-_0x3a914d._0x492550,-0xb4,-0xd4,-0xc0)],_0x2ae21a);}}}),_0x3933a4('Stop')&&_0x52cecd[_0x3ead6c(_0x49f838._0x1f4d34,_0x49f838._0x245f24,_0x49f838._0x1f4d34,0x91)]({'id':_0x4087b5(0x2a5,_0x49f838._0x4eebb8,_0x49f838._0xbf9026,_0x49f838._0x408cb2),'stage':'beforeFinalOutput','kind':_0x3ead6c(_0x49f838._0x143792,_0x49f838._0x1a4cd4,_0x49f838._0x614f09,0xba),'order':0x0,'enabled':!![],'run':async(_0x54b68e,_0x519dcd)=>{const _0x24b8f7={_0x20721c:0x260,_0x19d897:0x86,_0x55026b:0x130};function _0x25a89e(_0x2e301f,_0x33a776,_0x32e0b8,_0x3ec032){return _0x3ead6c(_0x32e0b8- -_0x24b8f7._0x20721c,_0x33a776-_0x24b8f7._0x19d897,_0x3ec032,_0x3ec032-_0x24b8f7._0x55026b);}const _0x50964a=_0x3a1c9f[_0x875987(_0x2263fa._0x154f29,0x1ea,0x200,0x1ea)](_0x875987(_0x2263fa._0x35d538,0x1d0,0x1b8,0x1c2));function _0x875987(_0x25868d,_0x286810,_0x25b6f1,_0x24f8f1){return _0x3ead6c(_0x286810-0x124,_0x286810-0x99,_0x25b6f1,_0x24f8f1-_0x1f40db._0x28bfb9);}for(const _0x413bc4 of _0x50964a){const _0x241727={'stop_reason':_0x25a89e(-_0x2263fa._0x22211b,-0x18a,-0x19f,-0x19b),'session_id':_0x4517bd??_0x519dcd[_0x25a89e(-_0x2263fa._0x155242,-0x1c9,-0x1ae,-0x1a7)][_0x875987(0x1da,0x1dd,_0x2263fa._0x86c14e,_0x2263fa._0x364caf)]};await _0xcaa5a3(_0x413bc4['command'],_0x241727,_0x413bc4[_0x875987(_0x2263fa._0x6576ce,_0x2263fa._0x56aae6,0x1d5,_0x2263fa._0x519f74)],_0x2ae21a);}}}),_0x3933a4(_0x4087b5(0x27d,_0x49f838._0x46eaee,0x26b,_0x49f838._0x129d9f))&&_0x52cecd[_0x3ead6c(_0x49f838._0x1ff979,_0x49f838._0x385e2a,_0x49f838._0x554c01,_0x49f838._0x64b1d)]({'id':_0x3ead6c(0xa1,_0x49f838._0x3a27af,_0x49f838._0x5adb4c,0x96),'stage':_0x4087b5(_0x49f838._0x1f2b49,0x293,0x2b1,0x270),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x1fd4ba,_0x2621c9)=>{function _0x56fce8(_0x2009b1,_0xf50b36,_0x376a26,_0x4cbcef){return _0x4087b5(_0x2009b1-_0x3ca108._0x53e9b1,_0x376a26- -_0x3ca108._0x1f2700,_0x376a26-_0x3ca108._0x20fec2,_0x2009b1);}function _0x591b2b(_0x20d1bb,_0x4d4d38,_0x249088,_0x16b879){return _0x4087b5(_0x20d1bb-0x14a,_0x249088-0xe5,_0x249088-0x1f1,_0x4d4d38);}const _0x3c15f5=_0x3a1c9f[_0x591b2b(0x39d,0x38e,0x387,_0x14c131._0x471862)]('Notification');for(const _0x47d4b3 of _0x3c15f5){const _0x88b690={'message':_0x56fce8(_0x14c131._0x4d55c4,_0x14c131._0x388243,0x235,0x257),'session_id':_0x4517bd??_0x1fd4ba[_0x56fce8(_0x14c131._0x2f761,_0x14c131._0x1ab1f7,_0x14c131._0x19904f,_0x14c131._0x3dd5f7)]};await _0xcaa5a3(_0x47d4b3[_0x56fce8(_0x14c131._0x3638db,_0x14c131._0xc0c083,_0x14c131._0x34ef48,_0x14c131._0x108ef1)],_0x88b690,_0x47d4b3[_0x591b2b(_0x14c131._0x214c29,_0x14c131._0x1bb8a8,_0x14c131._0x28397d,0x3b3)],_0x2ae21a);}}}),_0x52cecd;}function _0x1f31(_0x494d1e,_0xe3e021){_0x494d1e=_0x494d1e-0x1ac;const _0xeb76c6=_0xeb76();let _0x1f31b6=_0xeb76c6[_0x494d1e];if(_0x1f31['XhBKFq']===undefined){var _0x689e5e=function(_0x124cee){const _0xa5a8e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b74a0='',_0x133195='';for(let _0x30de15=0x0,_0x10c3be,_0x346db7,_0x3f3c02=0x0;_0x346db7=_0x124cee['charAt'](_0x3f3c02++);~_0x346db7&&(_0x10c3be=_0x30de15%0x4?_0x10c3be*0x40+_0x346db7:_0x346db7,_0x30de15++%0x4)?_0x3b74a0+=String['fromCharCode'](0xff&_0x10c3be>>(-0x2*_0x30de15&0x6)):0x0){_0x346db7=_0xa5a8e9['indexOf'](_0x346db7);}for(let _0x23ef95=0x0,_0x3fc909=_0x3b74a0['length'];_0x23ef95<_0x3fc909;_0x23ef95++){_0x133195+='%'+('00'+_0x3b74a0['charCodeAt'](_0x23ef95)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x133195);};_0x1f31['ObZVLA']=_0x689e5e,_0x1f31['OCVUZA']={},_0x1f31['XhBKFq']=!![];}const _0x48b7cf=_0xeb76c6[0x0],_0x54e0d3=_0x494d1e+_0x48b7cf,_0x214c6c=_0x1f31['OCVUZA'][_0x54e0d3];return!_0x214c6c?(_0x1f31b6=_0x1f31['ObZVLA'](_0x1f31b6),_0x1f31['OCVUZA'][_0x54e0d3]=_0x1f31b6):_0x1f31b6=_0x214c6c,_0x1f31b6;}function createHookOnToolCallMiddleware(_0x4fe611,_0x1df0b9,_0x139608,_0x102ee2={}){const _0x3e4930={_0x18d376:0x1e8,_0x44e24f:0x1cd,_0x568580:0x1d3,_0x4a9c72:0x1dc,_0x86744:0x1de,_0x102741:0x123,_0x3c375a:0x139,_0x121658:0x109,_0x331696:0x1f6,_0xeb5b45:0x1f5,_0x1e9df0:0x1ff,_0x236e28:0x161,_0x919794:0x152,_0x59130c:0x1fe,_0x15715a:0x1f0,_0x169151:0x1ea,_0xf68d34:0x183,_0x74743f:0x160,_0x1c2bab:0x1e2,_0x2d1698:0x14d,_0x3a7f21:0x217,_0x556385:0x1e9,_0x3a1b64:0x1f9,_0x19d791:0x166,_0x21d7ae:0x15f,_0x451d84:0x133,_0x4c2aaa:0x157,_0x290b3c:0x16b,_0x37882b:0x146,_0x1ecb19:0x127,_0x447608:0x153,_0x3b4e7c:0x15c,_0x2e8ebf:0x1fe,_0x58721a:0x1e9,_0x309b01:0x1ee,_0x18c905:0x1f9,_0x2ceed0:0x15c,_0x2ff786:0x163,_0x5ed70b:0x13f,_0x24f392:0x21e,_0xfe690c:0x20d,_0x1786a3:0x169,_0xb3ed92:0x143,_0x4af2ba:0x13f},_0x4ce0fa={_0x318057:0x8a},{sessionId:_0x52abef,projectDir:_0x4cd9a9}=_0x102ee2;return async(_0x4d3736,_0x482441)=>{function _0x56e8d3(_0x2b0078,_0x32befb,_0x4ab153,_0x1ca45f){return _0x1f31(_0x2b0078- -_0x4ce0fa._0x318057,_0x32befb);}const _0x15eaa1=_0x4fe611[_0x6077b2(-0x1db,-0x1fc,-_0x3e4930._0x18d376,-_0x3e4930._0x44e24f)](_0x6077b2(-0x1cf,-_0x3e4930._0x568580,-0x1d5,-0x1c2),_0x4d3736['name']);for(const _0x2cdf2b of _0x15eaa1){const _0x39f851={'tool_name':_0x4d3736[_0x6077b2(-0x1e9,-_0x3e4930._0x4a9c72,-_0x3e4930._0x86744,-0x1fa)],'tool_input':_0x4d3736[_0x56e8d3(_0x3e4930._0x102741,_0x3e4930._0x3c375a,0x132,_0x3e4930._0x121658)],'session_id':_0x52abef},_0x81328b=await _0x1df0b9(_0x2cdf2b[_0x6077b2(-_0x3e4930._0x331696,-_0x3e4930._0xeb5b45,-0x1f3,-_0x3e4930._0x1e9df0)],_0x39f851,_0x2cdf2b[_0x56e8d3(_0x3e4930._0x236e28,0x165,0x184,_0x3e4930._0x919794)],_0x4cd9a9),_0x40676a=_0x81328b[_0x6077b2(-_0x3e4930._0x59130c,-_0x3e4930._0x15715a,-0x1e9,-_0x3e4930._0x169151)]?.[_0x56e8d3(0x166,_0x3e4930._0xf68d34,_0x3e4930._0x74743f,0x185)]?.['permissionDecision'];if(_0x40676a===_0x6077b2(-_0x3e4930._0x1c2bab,-0x1d4,-_0x3e4930._0x86744,-0x1cd))return{'action':_0x56e8d3(0x15f,_0x3e4930._0x2d1698,0x14c,0x146)};if(_0x40676a==='deny')return{'action':_0x6077b2(-0x206,-0x1ed,-_0x3e4930._0x3a7f21,-0x229),'reason':_0x81328b[_0x6077b2(-0x1fe,-_0x3e4930._0x556385,-_0x3e4930._0x3a1b64,-0x1f1)]?.[_0x56e8d3(_0x3e4930._0x19d791,0x151,0x15f,_0x3e4930._0x21d7ae)]?.[_0x56e8d3(0x13f,0x13d,0x157,_0x3e4930._0x451d84)]||_0x56e8d3(_0x3e4930._0x4c2aaa,0x177,_0x3e4930._0x290b3c,0x15b)+_0x4d3736[_0x56e8d3(_0x3e4930._0x37882b,0x164,0x13c,_0x3e4930._0x1ecb19)]};if(_0x81328b[_0x56e8d3(_0x3e4930._0x447608,0x166,0x16c,0x175)]===_0x56e8d3(_0x3e4930._0x3b4e7c,0x13b,0x14f,0x162)||_0x81328b[_0x6077b2(-_0x3e4930._0x2e8ebf,-_0x3e4930._0x58721a,-_0x3e4930._0x309b01,-_0x3e4930._0x18c905)]?.[_0x6077b2(-0x1d2,-0x1e8,-0x1cd,-0x1c7)]===_0x56e8d3(_0x3e4930._0x2ceed0,_0x3e4930._0x2ff786,0x17f,_0x3e4930._0x5ed70b))return{'action':_0x6077b2(-0x206,-0x210,-_0x3e4930._0x24f392,-_0x3e4930._0xfe690c),'reason':_0x81328b['output']?.[_0x56e8d3(0x152,0x14b,_0x3e4930._0x1786a3,_0x3e4930._0xb3ed92)]||_0x56e8d3(0x137,0x129,0x14f,_0x3e4930._0x4af2ba)+_0x4d3736[_0x56e8d3(0x146,0x134,0x15f,0x133)]};}function _0x6077b2(_0x25d759,_0x3c6a32,_0x335a8b,_0x2af0f5){return _0x1f31(_0x25d759- -0x3b9,_0x335a8b);}return _0x139608(_0x4d3736,_0x482441);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x34870b){const _0x331362={_0xe102cb:0x134,_0x339932:0x13a,_0x58dfb5:0x106,_0x57804f:0xf5,_0x1bfec7:0x386,_0x4f3d27:0x155,_0x37ba0f:0x12e,_0x2229bd:0x106,_0x4c8e14:0xfb,_0x2147cc:0xf4,_0x36e32c:0xfd},_0xbcb151={_0x4305d2:0x1c2};return{'hasHooks'(_0x17f3fe){return(_0x34870b[_0x17f3fe]?.['length']??0x0)>0x0;},'getHooks'(_0x4a133d,_0x59658c){const _0x384a1b={_0x41ada1:0xba},_0x5920ed=_0x34870b[_0x4a133d];if(!_0x5920ed)return[];function _0x3b5a5f(_0x17b173,_0x5309c3,_0x3d4ba5,_0x16831f){return _0x1f31(_0x17b173- -_0x384a1b._0x41ada1,_0x5309c3);}function _0x356657(_0x39fab5,_0xbe7f5c,_0x422f76,_0x2423cb){return _0x1f31(_0x39fab5-_0xbcb151._0x4305d2,_0x2423cb);}const _0x17e8af=[];for(const _0x5cb28f of _0x5920ed){if(!_0x5cb28f[_0x3b5a5f(_0x331362._0xe102cb,0x13a,_0x331362._0x339932,0x118)]||_0x5cb28f['matcher']==='*'){_0x17e8af['push'](..._0x5cb28f[_0x3b5a5f(_0x331362._0x58dfb5,0xfa,_0x331362._0x57804f,0xf1)][_0x356657(0x379,_0x331362._0x1bfec7,0x38d,0x365)](_0x490db4=>({'command':_0x490db4[_0x3b5a5f(0x109,0xed,0xfa,0xed)],'timeout':_0x490db4[_0x3b5a5f(0x131,0x14b,0x136,0x14d)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x59658c===void 0x0)continue;const _0x2726d7=new RegExp(_0x356657(0x374,0x364,0x38b,0x361)+_0x5cb28f[_0x3b5a5f(_0x331362._0xe102cb,_0x331362._0x4f3d27,0x130,0x117)]+')$');_0x2726d7[_0x3b5a5f(0x11a,_0x331362._0x37ba0f,0x116,0x10c)](_0x59658c)&&_0x17e8af['push'](..._0x5cb28f[_0x3b5a5f(_0x331362._0x2229bd,0xf5,_0x331362._0x4c8e14,_0x331362._0x2147cc)][_0x3b5a5f(_0x331362._0x36e32c,0xfe,0x11f,0x11e)](_0x59f711=>({'command':_0x59f711[_0x3b5a5f(0x109,0x11b,0x10e,0xf7)],'timeout':_0x59f711[_0x3b5a5f(0x131,0x115,0x11e,0x132)]??DEFAULT_TIMEOUT_S2})));}return _0x17e8af;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0x50b841,_0x24d95e){const _0x37003d={_0x17446a:0x1d4,_0x106a21:0x1ba,_0x4d104f:0x1d1,_0x5e635f:0x19d,_0x46b5dd:0x139,_0x4e0fe3:0x122,_0x348d6c:0x128,_0x226b5c:0x116,_0x23fe98:0x1c0,_0x1459f7:0x1a5,_0x554f85:0x14d,_0x546834:0x15f,_0x5a59f3:0x14c,_0x7a7ac6:0x14e,_0x23c181:0x154,_0x39c43e:0x13a,_0x5cb170:0x15f,_0x1800a4:0x140};function _0x57b3c0(_0x474332,_0x42a4bc,_0x3056f1,_0x3b7f94){return _0x5be1(_0x3056f1- -0x2f5,_0x42a4bc);}function _0x139edd(_0x4abfb7,_0x37bd4d,_0x4d79cc,_0x38d269){return _0x5be1(_0x4abfb7- -0x9,_0x37bd4d);}const _0x1b8f08=_0x50b841();while(!![]){try{const _0x53a39f=parseInt(_0x57b3c0(-0x1c1,-0x1d3,-0x1b8,-0x1be))/0x1*(-parseInt(_0x57b3c0(-_0x37003d._0x17446a,-_0x37003d._0x106a21,-_0x37003d._0x4d104f,-0x1d9))/0x2)+-parseInt(_0x57b3c0(-0x180,-_0x37003d._0x5e635f,-0x19d,-0x19b))/0x3+-parseInt(_0x139edd(0x13b,_0x37003d._0x46b5dd,0x133,_0x37003d._0x4e0fe3))/0x4*(parseInt(_0x139edd(_0x37003d._0x348d6c,_0x37003d._0x226b5c,0x13a,0x10d))/0x5)+parseInt(_0x57b3c0(-_0x37003d._0x23fe98,-0x1ad,-_0x37003d._0x1459f7,-0x18a))/0x6*(-parseInt(_0x139edd(0x13e,0x130,0x12e,_0x37003d._0x554f85))/0x7)+parseInt(_0x139edd(0x13d,0x150,0x144,_0x37003d._0x546834))/0x8+-parseInt(_0x139edd(0x140,_0x37003d._0x5a59f3,0x140,0x162))/0x9*(parseInt(_0x139edd(_0x37003d._0x7a7ac6,_0x37003d._0x23c181,_0x37003d._0x39c43e,_0x37003d._0x5cb170))/0xa)+parseInt(_0x139edd(0x142,_0x37003d._0x1800a4,0x127,0x134))/0xb;if(_0x53a39f===_0x24d95e)break;else _0x1b8f08['push'](_0x1b8f08['shift']());}catch(_0xeae0ba){_0x1b8f08['push'](_0x1b8f08['shift']());}}}(_0x226d,0x1e8d0));function _0x226d(){const _0x158c52=['zxjYB3i','uhjLvg9VBfvZzq','mZq0nJzev3DOr0S','BM93','z2v0sg9VA3m','y3DK','tM90AwzPy2f0Aw9U','DhjPBq','C3rKAw4','zgf0yq','CgfYC2u','ChvZAa','C3rHDgu','u3rVCa','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','mtKYmfH4BKrAwa','BgvUz3rO','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','C3rHDhvZ','ywXSB3C','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','Dg9tDhjPBMC','CMvQzwn0','zw5Kx3r1CM4','Ag9VA3m','CgfZCW','ngXkALHysq','Ag9VA1nWzwnPzMLJt3v0Chv0','ywz0zxjuDxjUq29TCgXLDgu','y29TBwfUza','yMvMB3jLrMLUywXpDxrWDxq','B3v0Chv0','C2vZC2LVBKLK','mteXmML6vLj3vG','Dg9VBe5HBwu','nJqXmdaWrwz1zMHb','n2HwvePUDG','u0Lhs0Lmta','mZuZn1PlzwfnzG','yMXVy2S','nZu0nZm1m3vbtuLeAa','BwfW','BMfTzq','CgLWzq','Bwf0y2HLCG','mtiXmZi2nKn2z1ftwa','AgfZsg9VA3m','y29Kzq','C3rKB3v0','CgvYBwLZC2LVBKrLy2LZAw9U','zw52','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','mtq2mfj1swrOvG','nJe3nte3reDlB3bg','DgvZDa','DgLTzw91Da','B2jZzxj2zxi','C3rKzxjY','zgvUEq','ug9ZDfrVB2XvC2u','D3jPDgu','Aw5WDxq','rvbjueu','ywz0zxjuB29SuMvZDwX0','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','xIG/oG','C3rYAw5NAwz5'];_0x226d=function(){return _0x158c52;};return _0x226d();}import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x55eada,_0x14ea44,_0x303d26=DEFAULT_TIMEOUT_S,_0x21cd6d){const _0x19f402={_0x8e5f9a:0x2d3,_0x4af928:0x2b7},_0x4f8db4={_0x506728:0x409,_0x4e1c5e:0x410,_0x1c99c6:0x3db,_0x2935f3:0x405,_0x1ed613:0x410,_0x4595f2:0x410,_0x238c5a:0x406,_0xdcbad0:0x3f9,_0x24849e:0x518,_0x2859e0:0x3e0,_0x424d1d:0x3c1,_0x1c8358:0x3dd,_0x402e0f:0x3d2,_0x313c60:0x4f6,_0x4254fe:0x50d,_0x3a7d68:0x4f1,_0x2463ba:0x4d5,_0x5d2dff:0x3f2,_0x5a5db5:0x3f3,_0xf5644:0x407,_0x1dd85b:0x3d5,_0x4719fc:0x404,_0x318f32:0x404,_0xf38d6a:0x3b1,_0xc782e1:0x3bc,_0x4a290d:0x3cc,_0x53d89b:0x3e4,_0x5cf546:0x3d5,_0x3d9d5f:0x3d3},_0x47ba06={_0x10958a:0x158,_0x2d437d:0x154,_0x16c127:0x135,_0x383ec8:0x134},_0x392953={_0x226794:0x16,_0x561cb6:0x28b,_0x58f6f0:0x277,_0x460ab6:0x2ac,_0x5599e3:0x2a9,_0x34ae39:0x282},_0x51640a={_0x24c1aa:0x3ad},_0x40d106={_0x1dc975:0x31f},_0x582a03={_0x6a58df:0x196};function _0x1db0bd(_0x18fa6c,_0x237890,_0x53a87d,_0x1c3c18){return _0x5be1(_0x1c3c18-_0x582a03._0x6a58df,_0x237890);}const _0x1e8158=Date[_0x1db0bd(_0x19f402._0x8e5f9a,_0x19f402._0x4af928,0x2a8,0x2bb)]();return new Promise(_0x33f333=>{const _0x7f78d4={_0x4aa7c4:0x12b},_0xe96be0={_0x1fa180:0x41,_0x4c30d2:0xe3,_0x2df428:0x111,_0x4fd206:0x11d,_0x1a796c:0xc3,_0x45efa7:0xc0,_0x316242:0x5a,_0x2052c3:0xf0,_0x3a98de:0x51,_0x3e83b9:0xea,_0x381327:0x116,_0xed3b4f:0xf0,_0x2f2ebd:0xf6,_0x2450ce:0xcf,_0x25efa7:0x47,_0x3f9372:0x4c,_0x297e4b:0x2b,_0x318e85:0x47,_0x25fb74:0x47},_0x5272ff={_0x19f738:0x10d},_0x382989={_0x1a4826:0xa0,_0x35fdf7:0x8f,_0x1f07ba:0x31e,_0x106c5c:0x32b},_0x43326c={_0x7570d9:0x188,_0x6ca5ea:0xaf},_0xbc8d92={_0x58218a:0x122},_0x37ef64=spawn('sh',['-c',_0x55eada],{'stdio':[_0x342235(_0x4f8db4._0x506728,_0x4f8db4._0x4e1c5e,_0x4f8db4._0x1c99c6,0x3f9),_0x342235(0x402,_0x4f8db4._0x2935f3,0x3f6,0x3f9),_0x342235(_0x4f8db4._0x1ed613,_0x4f8db4._0x4595f2,_0x4f8db4._0x238c5a,_0x4f8db4._0xdcbad0)],'env':{...process[_0x1702aa(_0x4f8db4._0x24849e,0x518,0x536,0x4fc)],'CLAUDE_PROJECT_DIR':_0x21cd6d??process[_0x342235(_0x4f8db4._0x2859e0,_0x4f8db4._0x424d1d,_0x4f8db4._0x1c8358,_0x4f8db4._0x402e0f)]()}});let _0x41a78f='';function _0x342235(_0x50ae39,_0x1b5f86,_0x556d64,_0x7ce167){return _0x1db0bd(_0x50ae39-_0xbc8d92._0x58218a,_0x556d64,_0x556d64-0x13d,_0x7ce167-0x115);}let _0x382217='';_0x37ef64[_0x1702aa(0x516,0x531,_0x4f8db4._0x313c60,_0x4f8db4._0x4254fe)]['on'](_0x1702aa(0x4ee,_0x4f8db4._0x3a7d68,0x4f1,_0x4f8db4._0x2463ba),_0x4d54b7=>{const _0x51561f={_0x4244e9:0x1cd,_0x237625:0xc4};function _0x2f0bab(_0x330a13,_0x2a96fd,_0xb5fda1,_0x46b3fd){return _0x342235(_0x330a13-_0x51561f._0x4244e9,_0x2a96fd-0xb2,_0x330a13,_0x46b3fd- -_0x51561f._0x237625);}_0x41a78f+=_0x4d54b7[_0x2f0bab(0x33d,0x304,0x313,_0x40d106._0x1dc975)]();}),_0x37ef64[_0x342235(_0x4f8db4._0x5d2dff,0x404,_0x4f8db4._0x5a5db5,_0x4f8db4._0xf5644)]['on']('data',_0x3c23a3=>{const _0x3495e5={_0x249b64:0x1c9,_0x242b5a:0x36};function _0x21beea(_0xf224af,_0x31944d,_0xb0339b,_0x38f032){return _0x342235(_0xf224af-0x1cf,_0x31944d-_0x3495e5._0x249b64,_0x38f032,_0xb0339b- -_0x3495e5._0x242b5a);}_0x382217+=_0x3c23a3[_0x21beea(0x3b4,0x3c6,_0x51640a._0x24c1aa,0x3cd)]();}),_0x37ef64[_0x342235(0x3cf,0x3d4,0x3d3,_0x4f8db4._0x1dd85b)]['on']('error',_0x131dad=>{const _0x3302f3={_0x3514c4:0xab};function _0x53dc1d(_0x42effb,_0x493ab5,_0x110d67,_0x227f8f){return _0x342235(_0x42effb-0x7f,_0x493ab5-_0x3302f3._0x3514c4,_0x493ab5,_0x227f8f- -0xf5);}function _0x49af8b(_0x2681d2,_0x3e024c,_0x4e2bc4,_0x233e2c){return _0x1702aa(_0x3e024c- -0x479,_0x3e024c-_0x43326c._0x7570d9,_0x233e2c,_0x233e2c-_0x43326c._0x6ca5ea);}if(_0x131dad[_0x49af8b(_0x382989._0x1a4826,0x9c,_0x382989._0x35fdf7,0xb6)]!==_0x53dc1d(_0x382989._0x1f07ba,0x2fc,_0x382989._0x106c5c,0x317))throw _0x131dad;});function _0x1702aa(_0x2d2ca9,_0x1d7eba,_0x12e191,_0x2699ed){return _0x1db0bd(_0x2d2ca9-0xc5,_0x12e191,_0x12e191-0xf6,_0x2d2ca9-0x22d);}_0x37ef64['stdin'][_0x342235(_0x4f8db4._0x4719fc,_0x4f8db4._0x318f32,0x41e,0x40a)](JSON[_0x342235(_0x4f8db4._0xf38d6a,0x3c3,_0x4f8db4._0xc782e1,_0x4f8db4._0x4a290d)](_0x14ea44)),_0x37ef64[_0x342235(0x3d4,0x3b6,_0x4f8db4._0x53d89b,_0x4f8db4._0x5cf546)]['end']();const _0x38250a=setTimeout(()=>{const _0x4a49ed={_0x166a7d:0x23};function _0x5c32e3(_0x28041b,_0x5f1c7e,_0x5096da,_0x21a43a){return _0x1702aa(_0x5f1c7e- -0x25a,_0x5f1c7e-_0x4a49ed._0x166a7d,_0x21a43a,_0x21a43a-0x10b);}_0x37ef64['kill'](_0x49e5d5(_0x392953._0x226794,0x1c,0x3,0x38));function _0x49e5d5(_0x1fd956,_0x4b6c34,_0xc8106b,_0x5df8f7){return _0x342235(_0x1fd956-0x189,_0x4b6c34-_0x5272ff._0x19f738,_0x5df8f7,_0x4b6c34- -0x3d7);}_0x33f333({'status':_0x5c32e3(0x27a,_0x392953._0x561cb6,_0x392953._0x58f6f0,_0x392953._0x460ab6),'error':_0x5c32e3(0x292,0x299,_0x392953._0x5599e3,_0x392953._0x34ae39)+_0x303d26+'s','duration_ms':Date['now']()-_0x1e8158});},_0x303d26*0x3e8);_0x37ef64['on']('close',_0x12c4c7=>{const _0x4643c8={_0x57ef2c:0x186,_0x174cc6:0xb1},_0x27445a={_0xbfab05:0x546,_0xd03535:0x176,_0xab4930:0xf0};clearTimeout(_0x38250a);const _0x34a613=Date['now']()-_0x1e8158;if(_0x12c4c7===0x2){_0x33f333({'status':'block','output':{'decision':_0x412475(-_0xe96be0._0x1fa180,-0x4f,-0x1a,-0x39),'reason':_0x382217[_0x19dd0c(0xe1,0xd3,0xee,_0xe96be0._0x4c30d2)]()||_0x19dd0c(0x135,0x114,_0xe96be0._0x2df428,_0xe96be0._0x4fd206)},'duration_ms':_0x34a613});return;}if(_0x12c4c7!==0x0){_0x33f333({'status':_0x19dd0c(0xd1,_0xe96be0._0x1a796c,_0xe96be0._0x45efa7,0xdc),'error':'Hook\x20exited\x20with\x20code\x20'+_0x12c4c7+(_0x382217[_0x412475(-0x70,-0x76,-0x77,-_0xe96be0._0x316242)]()?':\x20'+_0x382217[_0x19dd0c(0xe0,0xf3,_0xe96be0._0x2052c3,0xe3)]():''),'duration_ms':_0x34a613});return;}function _0x412475(_0x2f518d,_0x1f68ad,_0x252026,_0x26a351){return _0x1702aa(_0x26a351- -_0x27445a._0xbfab05,_0x1f68ad-_0x27445a._0xd03535,_0x2f518d,_0x26a351-_0x27445a._0xab4930);}function _0x19dd0c(_0x19edea,_0x229e0d,_0x355ebb,_0x29c380){return _0x342235(_0x19edea-_0x4643c8._0x57ef2c,_0x229e0d-_0x4643c8._0x174cc6,_0x19edea,_0x29c380- -0x2f1);}const _0x41e5c2=_0x41a78f['trim']();if(_0x41e5c2[_0x412475(-0x35,-0x4e,-0x6a,-_0xe96be0._0x3a98de)]===0x0){_0x33f333({'status':_0x19dd0c(_0xe96be0._0x3e83b9,_0xe96be0._0x381327,_0xe96be0._0xed3b4f,_0xe96be0._0x2f2ebd),'duration_ms':_0x34a613});return;}try{const _0x55912b=JSON[_0x19dd0c(0xfa,0xf2,_0xe96be0._0x2450ce,0xe6)](_0x41e5c2);_0x33f333({'status':_0x412475(-0x5f,-0x4e,-0x67,-_0xe96be0._0x25efa7),'output':_0x55912b,'duration_ms':_0x34a613});}catch{_0x33f333({'status':_0x412475(-_0xe96be0._0x3f9372,-_0xe96be0._0x297e4b,-_0xe96be0._0x318e85,-_0xe96be0._0x25fb74),'duration_ms':_0x34a613});}}),_0x37ef64['on'](_0x342235(0x3af,0x3ac,_0x4f8db4._0x3d9d5f,0x3cd),_0x5808a9=>{const _0x4b9fdf={_0x3dce98:0x1c3};function _0x373c7d(_0x4c22d0,_0x25b037,_0x4fba5c,_0x53a4a1){return _0x342235(_0x4c22d0-_0x4b9fdf._0x3dce98,_0x25b037-0x8b,_0x53a4a1,_0x4c22d0- -0x27c);}clearTimeout(_0x38250a);function _0x207bad(_0x3252b1,_0x143f60,_0x472961,_0xf92e51){return _0x342235(_0x3252b1-0xf7,_0x143f60-_0x7f78d4._0x4aa7c4,_0x143f60,_0x472961- -0x29c);}_0x33f333({'status':_0x373c7d(0x151,_0x47ba06._0x10958a,_0x47ba06._0x2d437d,0x16a),'error':_0x5808a9['message'],'duration_ms':Date[_0x207bad(_0x47ba06._0x16c127,0x120,_0x47ba06._0x383ec8,0x12f)]()-_0x1e8158});});});}function createHookExtensions(_0x699954,_0x2e788e,_0x2b00fd={}){const _0x1695b2={_0x275167:0x181,_0x11aac0:0x180,_0x2a001c:0x16c,_0x5777ed:0x15b,_0x602775:0x158,_0x53218d:0x138,_0x178267:0x13a,_0x43c624:0x145,_0xb9554e:0x153,_0x40ed62:0x17a,_0x9f133c:0x141,_0x5b6371:0x129,_0x529b2b:0x156,_0x2f6d92:0x160,_0x3b56e1:0x169,_0x6bced2:0x17f},_0x5ee178={_0x5ce500:0x294,_0x34d165:0x290,_0x11d4e0:0x2aa,_0x4d43bd:0x27f,_0x5c55be:0x293,_0x5f20c7:0x28b,_0x7dec75:0x3ee,_0x5f5745:0x41b,_0x2f1334:0x415,_0x367472:0x426,_0x582b51:0x3f2,_0x5e6c42:0x3f8},_0x1f7193={_0x21ede7:0x136,_0x467c86:0x12e,_0x244f18:0x8b},_0xa98a92={_0x549d9d:0x40a,_0x541a0d:0x1bf,_0x3d265e:0x1d6,_0x58d318:0x1c0,_0xca1246:0x1c2,_0x4ac589:0x1d1,_0x3fc193:0x1bc,_0x167985:0x1aa,_0x3db416:0x422},_0x802f90={_0x1a682e:0x56},_0x2a4c82={_0xc2e7a9:0x19f},_0x52d530={_0x41f4ec:0x278,_0x30f194:0xf0,_0x2ffd76:0xc5,_0x559e58:0xbc,_0x543b75:0xad,_0x1d84fb:0xd9,_0x236519:0x249,_0x5ce5c6:0x258,_0xeb74d2:0xae,_0x238e5f:0xc1,_0x38f9b9:0x92,_0x1b2ca9:0x248,_0x550099:0x238,_0x5e9d22:0x244,_0xa66c99:0x24b,_0x3f07b8:0xea,_0x407654:0xf3},_0x6b76d6={_0x3c065b:0x2e},_0x24b69d=[],{sessionId:_0x285fd7,projectDir:_0x51d2c8}=_0x2b00fd;function _0xdd68bf(_0x39f282,_0x34b5a5,_0x44d956,_0x4584d2){return _0x5be1(_0x34b5a5-_0x6b76d6._0x3c065b,_0x39f282);}const _0x981c2b=_0x5dc811=>_0x699954[_0xdd68bf(0x166,0x17f,0x173,0x16f)]?_0x699954[_0xdd68bf(0x181,0x17f,0x180,0x176)](_0x5dc811):_0x699954[_0x58e7bb(-0x160,-0x15c,-0x176,-0x192)](_0x5dc811)[_0x58e7bb(-0x158,-0x164,-0x16a,-0x162)]>0x0;_0x981c2b(_0xdd68bf(_0x1695b2._0x275167,0x18c,_0x1695b2._0x11aac0,_0x1695b2._0x2a001c))&&_0x24b69d[_0xdd68bf(0x154,_0x1695b2._0x5777ed,0x168,0x16d)]({'id':'hook:PostToolUse','stage':_0x58e7bb(-_0x1695b2._0x602775,-_0x1695b2._0x53218d,-_0x1695b2._0x178267,-_0x1695b2._0x43c624),'kind':_0xdd68bf(0x1aa,0x189,0x184,0x175),'order':0x0,'enabled':!![],'run':async(_0x517601,_0x104acf)=>{const _0x40f7ca={_0x31123d:0x22,_0xb945e9:0xef,_0x22d846:0x144},_0x186dc8={_0xe45769:0x1d4},_0x21baed=_0x699954[_0x26e253(-0x265,-0x243,-_0x52d530._0x41f4ec,-0x258)](_0x1c3f17(0xde,_0x52d530._0x30f194,0xef,0xf8),_0x517601['toolName']);function _0x1c3f17(_0x34d776,_0x15bf54,_0x5a0206,_0x1cc610){return _0xdd68bf(_0x1cc610,_0x34d776- -0xae,_0x5a0206-_0x186dc8._0xe45769,_0x1cc610-0x1cb);}function _0x26e253(_0x22c72e,_0xffeb56,_0x2c7e45,_0x4cb4af){return _0x58e7bb(_0xffeb56,_0xffeb56-_0x40f7ca._0x31123d,_0x22c72e- -_0x40f7ca._0xb945e9,_0x4cb4af-_0x40f7ca._0x22d846);}for(const _0x1b14b1 of _0x21baed){const _0x80c4e4={'tool_name':_0x517601[_0x1c3f17(_0x52d530._0x2ffd76,_0x52d530._0x559e58,_0x52d530._0x543b75,_0x52d530._0x1d84fb)],'tool_input':void 0x0,'tool_output':_0x517601[_0x26e253(-_0x52d530._0x236519,-0x264,-_0x52d530._0x5ce5c6,-0x24b)],'tool_result_status':_0x517601[_0x1c3f17(0xb4,0xce,_0x52d530._0xeb74d2,_0x52d530._0x238e5f)],'session_id':_0x285fd7??_0x104acf[_0x1c3f17(_0x52d530._0xeb74d2,0xa7,_0x52d530._0x38f9b9,0xb0)][_0x26e253(-_0x52d530._0x1b2ca9,-0x263,-_0x52d530._0x550099,-_0x52d530._0x5e9d22)]};await _0x2e788e(_0x1b14b1[_0x26e253(-_0x52d530._0xa66c99,-0x234,-0x22f,-0x265)],_0x80c4e4,_0x1b14b1[_0x1c3f17(0xda,0xc4,_0x52d530._0x3f07b8,_0x52d530._0x407654)],_0x51d2c8);}}});_0x981c2b('Stop')&&_0x24b69d[_0x58e7bb(-_0x1695b2._0xb9554e,-_0x1695b2._0x40ed62,-0x16f,-0x185)]({'id':'hook:Stop','stage':_0x58e7bb(-0x159,-0x149,-0x15b,-0x144),'kind':_0x58e7bb(-0x13c,-_0x1695b2._0x9f133c,-0x141,-_0x1695b2._0x5b6371),'order':0x0,'enabled':!![],'run':async(_0x2e63f0,_0x560ee5)=>{function _0x14a436(_0x5cf120,_0xfa21ac,_0x48a8ad,_0x44408e){return _0xdd68bf(_0xfa21ac,_0x48a8ad-0x2ce,_0x48a8ad-0x1ba,_0x44408e-_0x2a4c82._0xc2e7a9);}function _0x4a1f8e(_0x546c9d,_0x303bc8,_0x51fb3d,_0x1c24da){return _0x58e7bb(_0x51fb3d,_0x303bc8-_0x802f90._0x1a682e,_0x303bc8- -0x63,_0x1c24da-0x1b0);}const _0x10e495=_0x699954[_0x14a436(0x436,0x414,0x422,_0xa98a92._0x549d9d)](_0x4a1f8e(-_0xa98a92._0x541a0d,-0x1d0,-_0xa98a92._0x3d265e,-_0xa98a92._0x58d318));for(const _0x175063 of _0x10e495){const _0x1762cd={'stop_reason':_0x4a1f8e(-0x1aa,-0x1c5,-_0xa98a92._0xca1246,-0x1a3),'session_id':_0x285fd7??_0x560ee5[_0x4a1f8e(-_0xa98a92._0x541a0d,-_0xa98a92._0x4ac589,-0x1b5,-0x1d3)][_0x4a1f8e(-0x1b2,-_0xa98a92._0x3fc193,-_0xa98a92._0x167985,-0x1ce)]};await _0x2e788e(_0x175063[_0x14a436(0x43b,_0xa98a92._0x3db416,0x43c,0x433)],_0x1762cd,_0x175063['timeout'],_0x51d2c8);}}});function _0x58e7bb(_0x3e509e,_0x2d5a1c,_0x40f493,_0x36ede3){return _0x5be1(_0x40f493- -0x29c,_0x3e509e);}return _0x981c2b(_0xdd68bf(0x166,_0x1695b2._0x529b2b,_0x1695b2._0x2f6d92,_0x1695b2._0x3b56e1))&&_0x24b69d['push']({'id':'hook:Notification','stage':_0xdd68bf(_0x1695b2._0x6bced2,0x16d,0x18d,0x162),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x2a231a,_0x45786c)=>{const _0x3caee8=_0x699954[_0x31b061(-_0x5ee178._0x5ce500,-0x2a4,-0x2c5,-0x299)](_0x31b061(-0x2af,-0x2a2,-_0x5ee178._0x34d165,-_0x5ee178._0x11d4e0));function _0x881565(_0xd318fd,_0x175189,_0x5c7ac7,_0x49567b){return _0xdd68bf(_0x49567b,_0xd318fd-0x28c,_0x5c7ac7-0x1b7,_0x49567b-0xdd);}function _0x31b061(_0x5b8602,_0x5f5532,_0x39e75d,_0x8e629a){return _0x58e7bb(_0x8e629a,_0x5f5532-_0x1f7193._0x21ede7,_0x5f5532- -_0x1f7193._0x467c86,_0x8e629a-_0x1f7193._0x244f18);}for(const _0x43395b of _0x3caee8){const _0x42d523={'message':_0x31b061(-_0x5ee178._0x4d43bd,-_0x5ee178._0x5c55be,-_0x5ee178._0x5f20c7,-0x2b1),'session_id':_0x285fd7??_0x2a231a[_0x881565(0x3fd,_0x5ee178._0x7dec75,_0x5ee178._0x5f5745,0x3db)]};await _0x2e788e(_0x43395b[_0x881565(0x3fa,0x41b,_0x5ee178._0x5f5745,_0x5ee178._0x2f1334)],_0x42d523,_0x43395b[_0x881565(0x414,_0x5ee178._0x367472,_0x5ee178._0x582b51,_0x5ee178._0x5e6c42)],_0x51d2c8);}}}),_0x24b69d;}function createHookOnToolCallMiddleware(_0x5e3433,_0x58bed7,_0x3693bf,_0x1d4b73={}){const _0x42125e={_0x15e27b:0x348,_0x41f4b7:0x336,_0x4a72f7:0x34f,_0x579598:0x347,_0x220ac7:0x34a,_0x46b0cb:0x36d,_0x23c380:0x367,_0x49e838:0x34b,_0x6b9067:0x355,_0x3ede99:0x34c,_0x4e03e3:0x335,_0x5571d6:0x357,_0x2f2224:0x351,_0x56cc9d:0x35e,_0x3bd833:0x342,_0x5d0b70:0x17b,_0x53999a:0x14f,_0x4c2292:0x16b,_0x7558cb:0x157,_0x171c9d:0x18f,_0x2e2404:0x162,_0xfb3bba:0x14e,_0x3521c9:0x15e,_0x42bf3a:0x150,_0x4013a3:0x33a,_0x2f141f:0x14b,_0x231ba3:0x155,_0x4d9d53:0x173,_0x396933:0x14d,_0x4a9207:0x12b,_0x31c384:0x360,_0x357a48:0x372,_0x1acc05:0x17e,_0x4c6140:0x16e,_0x500767:0x35d,_0x55bcdc:0x343,_0x827a64:0x362,_0x1ae8d0:0x353,_0x17a464:0x341,_0x1d1969:0x35d,_0x4087ec:0x373,_0x3f7f42:0x378,_0x194819:0x33a,_0xb3cb4a:0x35f,_0x46e0f6:0x153,_0x423bee:0x183},_0x5051c5={_0x252791:0x17},{sessionId:_0x19a311,projectDir:_0x57b05b}=_0x1d4b73;return async(_0x2c46df,_0x2a6df7)=>{const _0x11a99b={_0xd52863:0x213},_0x360ce8=_0x5e3433[_0x34ace2(0x339,0x34d,_0x42125e._0x15e27b,0x350)](_0x34ace2(_0x42125e._0x41f4b7,0x319,_0x42125e._0x4a72f7,0x336),_0x2c46df[_0x34ace2(0x360,0x348,0x365,_0x42125e._0x579598)]);function _0x585d5b(_0x30a057,_0x257125,_0xd1f087,_0xef4401){return _0x5be1(_0xd1f087-_0x5051c5._0x252791,_0x257125);}for(const _0x3c210a of _0x360ce8){const _0x2bafb0={'tool_name':_0x2c46df[_0x34ace2(0x360,0x35f,0x375,_0x42125e._0x220ac7)],'tool_input':_0x2c46df[_0x34ace2(0x373,0x35e,0x364,0x38b)],'session_id':_0x19a311},_0x5bef98=await _0x58bed7(_0x3c210a[_0x585d5b(0x13c,0x15c,0x157,0x13e)],_0x2bafb0,_0x3c210a[_0x34ace2(_0x42125e._0x46b0cb,0x381,_0x42125e._0x23c380,_0x42125e._0x49e838)],_0x57b05b),_0xa475be=_0x5bef98[_0x34ace2(_0x42125e._0x6b9067,_0x42125e._0x3ede99,_0x42125e._0x4e03e3,_0x42125e._0x5571d6)]?.[_0x34ace2(_0x42125e._0x2f2224,0x352,_0x42125e._0x56cc9d,_0x42125e._0x3bd833)]?.[_0x585d5b(_0x42125e._0x5d0b70,_0x42125e._0x53999a,_0x42125e._0x4c2292,0x151)];if(_0xa475be===_0x585d5b(0x15a,_0x42125e._0x7558cb,0x14c,0x147))return{'action':'run'};if(_0xa475be===_0x585d5b(_0x42125e._0x171c9d,_0x42125e._0x2e2404,0x174,0x15d))return{'action':_0x585d5b(_0x42125e._0xfb3bba,_0x42125e._0x3521c9,0x150,_0x42125e._0x42bf3a),'reason':_0x5bef98[_0x34ace2(_0x42125e._0x6b9067,0x357,0x373,_0x42125e._0x4013a3)]?.[_0x585d5b(0x14f,_0x42125e._0x2f141f,_0x42125e._0x231ba3,_0x42125e._0x4d9d53)]?.[_0x585d5b(0x13b,0x13c,_0x42125e._0x396933,_0x42125e._0x4a9207)]||_0x34ace2(0x369,_0x42125e._0x31c384,0x37b,_0x42125e._0x357a48)+_0x2c46df[_0x585d5b(_0x42125e._0x1acc05,_0x42125e._0x4c6140,0x164,0x147)]};if(_0x5bef98['status']===_0x34ace2(_0x42125e._0x500767,_0x42125e._0x55bcdc,_0x42125e._0x46b0cb,_0x42125e._0x827a64)||_0x5bef98[_0x34ace2(0x355,_0x42125e._0x1ae8d0,0x36f,_0x42125e._0x17a464)]?.['decision']===_0x34ace2(_0x42125e._0x1d1969,_0x42125e._0x56cc9d,_0x42125e._0x4087ec,_0x42125e._0x3f7f42))return{'action':_0x34ace2(0x34c,0x368,0x34c,_0x42125e._0x49e838),'reason':_0x5bef98['output']?.['reason']||_0x34ace2(0x346,0x34b,_0x42125e._0x194819,_0x42125e._0xb3cb4a)+_0x2c46df[_0x585d5b(_0x42125e._0x3521c9,_0x42125e._0x46e0f6,0x164,_0x42125e._0x423bee)]};}function _0x34ace2(_0x188a21,_0x908d9d,_0x2a993d,_0x4b4dcf){return _0x5be1(_0x188a21-_0x11a99b._0xd52863,_0x2a993d);}return _0x3693bf(_0x2c46df,_0x2a6df7);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x29b23a){const _0x21492d={_0x2e18cd:0x120,_0x1408a6:0x119,_0x312d43:0x124,_0x5b79d2:0x102,_0x20cb0a:0x124,_0x1d2365:0x123,_0x329f2b:0x112,_0x155a26:0x102,_0x47102f:0x14a,_0x10fd57:0x181,_0x440bbf:0x18b,_0x4c3739:0x16b,_0xe4d3e1:0x12c,_0x182dcb:0x103,_0x41658:0x102,_0xcfbf02:0x166,_0x38a412:0x14f,_0x373778:0x144,_0x5a7180:0x155,_0x554b45:0x141};return{'hasHooks'(_0x66cdbf){return(_0x29b23a[_0x66cdbf]?.['length']??0x0)>0x0;},'getHooks'(_0x4ae501,_0x544911){const _0x22c4f5={_0x71e237:0x2a1},_0x3cf83e={_0x166d7c:0x2b},_0x3925c=_0x29b23a[_0x4ae501];function _0x1de319(_0x290604,_0xa8e2fd,_0x5812c3,_0x4c22bc){return _0x5be1(_0x5812c3- -_0x3cf83e._0x166d7c,_0x4c22bc);}if(!_0x3925c)return[];function _0x7d945f(_0x15b487,_0x186bb6,_0x576f3a,_0x3dab6d){return _0x5be1(_0x15b487- -_0x22c4f5._0x71e237,_0x3dab6d);}const _0xb8ef=[];for(const _0xdb3a0c of _0x3925c){if(!_0xdb3a0c[_0x1de319(_0x21492d._0x2e18cd,_0x21492d._0x1408a6,_0x21492d._0x312d43,_0x21492d._0x5b79d2)]||_0xdb3a0c[_0x1de319(0x107,0x119,_0x21492d._0x20cb0a,_0x21492d._0x1d2365)]==='*'){_0xb8ef[_0x1de319(0xf6,_0x21492d._0x329f2b,_0x21492d._0x155a26,0x103)](..._0xdb3a0c['hooks'][_0x7d945f(-0x155,-_0x21492d._0x47102f,-0x16e,-0x141)](_0xe5608c=>({'command':_0xe5608c[_0x7d945f(-0x161,-0x180,-0x157,-0x171)],'timeout':_0xe5608c[_0x1de319(0x11c,0x150,0x12f,0x13b)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x544911===void 0x0)continue;const _0x5744bf=new RegExp(_0x7d945f(-_0x21492d._0x10fd57,-0x18d,-_0x21492d._0x440bbf,-_0x21492d._0x4c3739)+_0xdb3a0c['matcher']+')$');_0x5744bf[_0x7d945f(-0x148,-0x14f,-0x12c,-_0x21492d._0xe4d3e1)](_0x544911)&&_0xb8ef[_0x1de319(0x116,_0x21492d._0x182dcb,_0x21492d._0x41658,0x107)](..._0xdb3a0c[_0x7d945f(-_0x21492d._0xcfbf02,-_0x21492d._0x38a412,-_0x21492d._0x10fd57,-_0x21492d._0x373778)][_0x7d945f(-_0x21492d._0x5a7180,-0x156,-_0x21492d._0x554b45,-0x153)](_0x43558b=>({'command':_0x43558b[_0x1de319(0xf4,0x123,0x115,0xff)],'timeout':_0x43558b[_0x1de319(0x14c,0x13b,0x12f,0x14d)]??DEFAULT_TIMEOUT_S2})));}return _0xb8ef;}};}function _0x5be1(_0x2dcbef,_0x615054){_0x2dcbef=_0x2dcbef-0x120;const _0x226d93=_0x226d();let _0x5be11a=_0x226d93[_0x2dcbef];if(_0x5be1['DWtsSX']===undefined){var _0x53f8d4=function(_0x28b307){const _0x3a5ab6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x55eada='',_0x14ea44='';for(let _0x303d26=0x0,_0x21cd6d,_0x1e8158,_0x33f333=0x0;_0x1e8158=_0x28b307['charAt'](_0x33f333++);~_0x1e8158&&(_0x21cd6d=_0x303d26%0x4?_0x21cd6d*0x40+_0x1e8158:_0x1e8158,_0x303d26++%0x4)?_0x55eada+=String['fromCharCode'](0xff&_0x21cd6d>>(-0x2*_0x303d26&0x6)):0x0){_0x1e8158=_0x3a5ab6['indexOf'](_0x1e8158);}for(let _0x37ef64=0x0,_0x41a78f=_0x55eada['length'];_0x37ef64<_0x41a78f;_0x37ef64++){_0x14ea44+='%'+('00'+_0x55eada['charCodeAt'](_0x37ef64)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14ea44);};_0x5be1['wSswLN']=_0x53f8d4,_0x5be1['HAEigL']={},_0x5be1['DWtsSX']=!![];}const _0x4eaa34=_0x226d93[0x0],_0x2022dd=_0x2dcbef+_0x4eaa34,_0x1cf975=_0x5be1['HAEigL'][_0x2022dd];return!_0x1cf975?(_0x5be11a=_0x5be1['wSswLN'](_0x5be11a),_0x5be1['HAEigL'][_0x2022dd]=_0x5be11a):_0x5be11a=_0x1cf975,_0x5be11a;}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};