@nuvin/agent-core 0.4.0-rc.5 → 0.4.0-rc.6
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.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-HDFJFRPX.js +1 -0
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/chunk-YTDATWXW.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/bash-completion-visibility.d.ts +12 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +7 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CVOXBVKH.js +0 -1
- package/dist/chunk-XNXDKQ47.js +0 -1
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x57b8(){const _0x65fe17=['AM9PBG','Aw5WDxq','BMfTzq','ANnVBL9Zy2HLBwe','BgvUz3rO','Bw9KzwW','C3vTBwfYEq','yxv0BW','mtiWmdCZntbxBufoBK0','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw1Hz2u','ChjVDMLKzxjtDgf0zq','B3v0Chv0rM9YBwf0','C3rYAw5N','AxnbCNjHEq','Dg9VBf9Yzxn1Bhq','Aw5WDxrFDgv4Da','zNvUy3rPB25Fy2fSBf9VDxrWDxq','B2jQzwn0','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB24','o2jHC2u2ncW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','DhjPBq','zgf0yq','y29KzxG','DhLWzq','yMfZzty0','y29UDgvUDa','BwfW','Dg9VBf91C2vFAwq','CM9Szq','DxnLCI12AxnPyMXL','C3rHDhvZ','mJfjtNv1yLC','mtaXtNzSBg5n','Aw5WDxrFC2nOzw1H','ChvZAa','C3rYDwn0DxjLzf9VDxrWDxq','C2nOzw1H','C3LZDgvT','zgvZy3jPChrPB24','otC3mJaWAunsyKri','zNvUy3rPB25Fy2fSBa','Dgv4Da','ndKYneDwvgXMtG','nZaZotm4CuDtvNHA','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Dg9VBf91C2u','BwvZC2fNzxm','mtuYnJG2neTjveHiqG','mtm0nde0mxLqD3bzrG','Bwf4vg9Rzw5Z','C291CMnL','B3v0Chv0x3rLEhq','BwvKAwfFDhLWzq','CMvHC29UAw5N','BwvZC2fNzq','C3bSAwnL','DMLZAwjPBgL0Eq','zwzMB3j0','mJG3nZCWthHZB2fK','Dg9VBhm'];_0x57b8=function(){return _0x65fe17;};return _0x57b8();}(function(_0x2099a3,_0x4e6339){const _0x46d9fb={_0x5df26d:0x5c,_0x8eb9f:0x4e,_0x103594:0x7a,_0x5d0217:0x65,_0xbe5fe9:0x7a,_0x444d7a:0x5b,_0x2759e1:0x108,_0x567d99:0x11e,_0x151e70:0x12e,_0x6cd52a:0x144,_0x51a8d2:0x12c,_0x15148a:0x12b,_0x3fdf9b:0x40,_0x20afcf:0x58,_0x22f6e2:0x3a,_0x5e72ae:0x35},_0x2ab89d={_0xd700eb:0x5a},_0x102660=_0x2099a3();function _0x17e9eb(_0xec78bd,_0x3d8c9c,_0x418885,_0x543908){return _0x55ca(_0xec78bd- -0x13d,_0x3d8c9c);}function _0x40476a(_0x2d7fd5,_0x257e88,_0x16e4b9,_0x2c9be6){return _0x55ca(_0x16e4b9- -_0x2ab89d._0xd700eb,_0x257e88);}while(!![]){try{const _0x296214=parseInt(_0x17e9eb(0x56,0x52,0x3e,0x4e))/0x1*(parseInt(_0x17e9eb(0x60,0x4a,0x68,_0x46d9fb._0x5df26d))/0x2)+parseInt(_0x17e9eb(0x66,0x77,_0x46d9fb._0x8eb9f,_0x46d9fb._0x103594))/0x3+parseInt(_0x17e9eb(_0x46d9fb._0x5d0217,_0x46d9fb._0xbe5fe9,_0x46d9fb._0x444d7a,0x5b))/0x4+parseInt(_0x40476a(0x133,_0x46d9fb._0x2759e1,0x113,_0x46d9fb._0x567d99))/0x5+parseInt(_0x40476a(_0x46d9fb._0x151e70,0x139,_0x46d9fb._0x6cd52a,0x15d))/0x6+-parseInt(_0x40476a(0x135,_0x46d9fb._0x51a8d2,0x138,_0x46d9fb._0x15148a))/0x7*(-parseInt(_0x17e9eb(0x5d,_0x46d9fb._0x3fdf9b,0x5d,_0x46d9fb._0x20afcf))/0x8)+-parseInt(_0x17e9eb(_0x46d9fb._0x22f6e2,_0x46d9fb._0x5e72ae,0x33,0x38))/0x9;if(_0x296214===_0x4e6339)break;else _0x102660['push'](_0x102660['shift']());}catch(_0x25c935){_0x102660['push'](_0x102660['shift']());}}}(_0x57b8,0x45ba2));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4c0edd){const _0x2cb299={_0x10808b:0x3eb,_0x31b06b:0x3d0,_0x3e6098:0x3a1,_0x99a977:0x3b4},_0x2d2936={_0x2e1e73:0x245},_0x1b61cf={_0x1883e9:0x2};function _0x3d7c91(_0x561b36,_0x24aeed,_0x217cba,_0x320e69){return _0x55ca(_0x320e69-_0x1b61cf._0x1883e9,_0x24aeed);}function _0x28fac2(_0x26d87f,_0x2d013c,_0x1f400a,_0x149e8f){return _0x55ca(_0x149e8f-_0x2d2936._0x2e1e73,_0x26d87f);}return normalizeContent(_0x4c0edd)['filter'](_0x2735e0=>_0x2735e0[_0x28fac2(0x3b0,0x3c2,0x3b0,0x3cf)]==='text')[_0x28fac2(_0x2cb299._0x10808b,0x3be,0x3bd,0x3d2)](_0x2ffef0=>_0x2ffef0['text'])[_0x28fac2(0x3a5,_0x2cb299._0x31b06b,_0x2cb299._0x3e6098,_0x2cb299._0x99a977)]('\x0a\x0a');}function pushUserContentMessage(_0x41209b,_0x3fa06a,_0x30d611){const _0x1af76d={_0x4fe88f:0x366,_0x45f763:0x385,_0x68c4f0:0x4a5,_0x144c8f:0x4b1,_0x50989a:0x4b2,_0x4717b1:0x363,_0x34007c:0x36a},_0x4b9203={_0x3538d2:0x2fd};function _0x451013(_0x2f10d3,_0xf4c4f9,_0x515833,_0x50dd2d){return _0x55ca(_0x2f10d3-_0x4b9203._0x3538d2,_0x50dd2d);}function _0x991838(_0x3cbf0c,_0xdd1360,_0x3717ab,_0x2fd708){return _0x55ca(_0x3cbf0c-0x1f3,_0xdd1360);}if(_0x30d611[_0x991838(_0x1af76d._0x4fe88f,_0x1af76d._0x45f763,0x37a,0x34c)]===0x0)return;_0x41209b[_0x451013(0x492,_0x1af76d._0x68c4f0,_0x1af76d._0x144c8f,_0x1af76d._0x50989a)]({'type':_0x991838(0x35c,_0x1af76d._0x4717b1,_0x1af76d._0x34007c,0x36c),'role':_0x3fa06a,'content':_0x30d611});}function hasSerializableToolUse(_0x5becb0){const _0x43ed6b={_0x20ae50:0x235,_0x2c1f19:0x24d,_0x4788d9:0x22d,_0x2998a7:0x247,_0x4a5825:0x226,_0x46d7c5:0x218},_0x1b6249={_0x4e61df:0x3bc};function _0x11c3b8(_0x47fada,_0xcc8800,_0x1b712d,_0x29ff89){return _0x55ca(_0x47fada- -_0x1b6249._0x4e61df,_0xcc8800);}function _0x8039d8(_0x31b603,_0x14e3ba,_0x16e29b,_0x570fa6){return _0x55ca(_0x570fa6- -0x168,_0x31b603);}return _0x5becb0['id'][_0x11c3b8(-_0x43ed6b._0x20ae50,-0x234,-0x250,-0x255)]()[_0x11c3b8(-0x249,-_0x43ed6b._0x2c1f19,-_0x43ed6b._0x4788d9,-0x231)]>0x0&&_0x5becb0['name'][_0x11c3b8(-_0x43ed6b._0x20ae50,-_0x43ed6b._0x2998a7,-_0x43ed6b._0x4a5825,-_0x43ed6b._0x46d7c5)]()['length']>0x0;}function hasSerializableToolResult(_0x11f725){const _0x54e86c={_0x3c6dd7:0x381,_0x42b844:0x39b,_0x20bfcb:0x422};function _0x438461(_0x24775b,_0x4cb5bd,_0x50f10a,_0x2060c6){return _0x55ca(_0x50f10a-0x29b,_0x24775b);}function _0x2d499a(_0x285e3e,_0x1cb261,_0x4920e7,_0x41a40e){return _0x55ca(_0x1cb261-0x1fa,_0x41a40e);}return _0x11f725['tool_use_id'][_0x2d499a(_0x54e86c._0x3c6dd7,0x381,_0x54e86c._0x42b844,0x38e)]()[_0x438461(_0x54e86c._0x20bfcb,0x3fd,0x40e,0x3fe)]>0x0;}function isResponseInputObject(_0x56c24b){const _0x375df9={_0x55bbb2:0x203,_0x55032e:0x21b,_0x2fe828:0x116,_0x15109b:0x112,_0x3788e6:0x206,_0x2cd25a:0x212,_0x5743c1:0x115,_0xefaaf5:0xfd},_0x353048={_0x51b2f9:0x39c},_0xf02e30={_0xd0a742:0x67};if(typeof _0x56c24b!==_0x2741ff(-0x21a,-_0x375df9._0x55bbb2,-0x21c,-_0x375df9._0x55032e)||_0x56c24b===null||Array[_0x1352c2(_0x375df9._0x2fe828,0x11a,_0x375df9._0x15109b,0x132)](_0x56c24b))return![];function _0x1352c2(_0x3d404c,_0x447fb9,_0x3a1ca0,_0xea69d8){return _0x55ca(_0x3d404c- -_0xf02e30._0xd0a742,_0x447fb9);}function _0x2741ff(_0x1ae556,_0x5dd0f8,_0x57aa97,_0x4f1633){return _0x55ca(_0x4f1633- -_0x353048._0x51b2f9,_0x5dd0f8);}const _0x48e94a=_0x56c24b;return typeof _0x48e94a[_0x2741ff(-0x20c,-_0x375df9._0x3788e6,-0x226,-_0x375df9._0x2cd25a)]===_0x1352c2(_0x375df9._0x5743c1,0x101,0x11e,_0x375df9._0xefaaf5);}function isImageToolResultBlock(_0xb1cd71){const _0x1421b6={_0x15ed18:0x19b,_0x212daa:0x160,_0x30cdad:0x1e6,_0x28cee0:0x1dd,_0x74a52a:0x1fd,_0x491350:0x1e6,_0x359580:0x1e1,_0x451373:0x1fa,_0x51609d:0x19f,_0x504eb0:0x19d,_0x13b733:0x181,_0x4ceaa6:0x1db,_0x25bd13:0x1e9,_0x501cf4:0x1f4,_0x2d6268:0x149,_0x1f492e:0x15b,_0x255561:0x192,_0x277f2d:0x192,_0x51fca1:0x205},_0x274fab={_0x43b85e:0x6d},_0x2f66c7={_0x3672d4:0x306};if(typeof _0xb1cd71!=='object'||_0xb1cd71===null||Array[_0xe13779(-0x189,-0x180,-0x172,-0x198)](_0xb1cd71))return![];function _0xe13779(_0xe6afa1,_0x3235d2,_0x4ac272,_0x4de200){return _0x55ca(_0xe6afa1- -_0x2f66c7._0x3672d4,_0x4ac272);}const _0x2d4af8=_0xb1cd71;function _0x1f6904(_0x242ca1,_0x33b6a6,_0x5f02f9,_0x1b6ba2){return _0x55ca(_0x33b6a6-_0x274fab._0x43b85e,_0x5f02f9);}return _0x2d4af8[_0xe13779(-0x17c,-_0x1421b6._0x15ed18,-0x15c,-_0x1421b6._0x212daa)]===_0x1f6904(0x1ea,_0x1421b6._0x30cdad,0x1f8,_0x1421b6._0x28cee0)&&_0x2d4af8[_0x1f6904(_0x1421b6._0x74a52a,0x212,0x1f9,0x22b)]?.[_0x1f6904(_0x1421b6._0x491350,0x1f7,0x202,_0x1421b6._0x359580)]===_0x1f6904(0x1f5,0x1f8,0x210,_0x1421b6._0x451373)&&typeof _0x2d4af8['source'][_0xe13779(-_0x1421b6._0x51609d,-0x1b3,-_0x1421b6._0x504eb0,-_0x1421b6._0x13b733)]===_0x1f6904(_0x1421b6._0x4ceaa6,_0x1421b6._0x25bd13,0x1e3,_0x1421b6._0x501cf4)&&typeof _0x2d4af8[_0xe13779(-0x161,-0x148,-_0x1421b6._0x2d6268,-_0x1421b6._0x1f492e)][_0xe13779(-0x17e,-_0x1421b6._0x255561,-_0x1421b6._0x277f2d,-0x184)]===_0x1f6904(_0x1421b6._0x51fca1,0x1e9,0x1dc,0x1cc);}function getToolResultText(_0xc436bc){const _0x477672={_0x58c0a5:0xf1,_0x470c51:0xed,_0x314a25:0xf7,_0x2232a3:0x114,_0x4247e7:0x3c8,_0x9a3fb3:0x3c1,_0x59f383:0x3a6,_0x240cde:0x3d2},_0x5243ad={_0x5cfe90:0x23b},_0x4e03ba={_0x48ee6a:0x27e},_0x50eeee={_0x221388:0x4fe,_0x4754b7:0x4d7,_0x5dc5a8:0x4e6,_0x377824:0x54};if(typeof _0xc436bc==='string')return _0xc436bc;const _0x51e02c=_0xc436bc['filter'](_0xdb207=>{function _0x301ce5(_0x1b5ecd,_0x2f4aba,_0x338537,_0x2ebdee){return _0x55ca(_0x2ebdee- -0x161,_0x1b5ecd);}function _0x11efd7(_0x5b7a93,_0x5f3fcb,_0x359ccb,_0x284e86){return _0x55ca(_0x5b7a93-0x365,_0x284e86);}return typeof _0xdb207===_0x11efd7(0x4e6,_0x50eeee._0x221388,_0x50eeee._0x4754b7,_0x50eeee._0x5dc5a8)&&_0xdb207!==null&&_0xdb207[_0x301ce5(0x18,0x1d,0x2c,0x29)]===_0x301ce5(_0x50eeee._0x377824,0x4a,0x22,0x3b);})[_0x4790dd(-0xe3,-_0x477672._0x58c0a5,-_0x477672._0x470c51,-0xfe)](_0x342f4b=>_0x342f4b[_0x4790dd(-0xe0,-0xe2,-0xfc,-0xcc)])['join']('\x0a\x0a')[_0x4790dd(-0x100,-_0x477672._0x314a25,-_0x477672._0x2232a3,-0xfd)]();function _0x4790dd(_0x286d7f,_0x2bce3a,_0x5455db,_0x25124d){return _0x55ca(_0x2bce3a- -_0x4e03ba._0x48ee6a,_0x25124d);}function _0x23c8f6(_0x120d0b,_0x46e501,_0x4c7e04,_0xe94c92){return _0x55ca(_0x120d0b-_0x5243ad._0x5cfe90,_0x4c7e04);}return _0x51e02c[_0x23c8f6(0x3ae,0x3a0,0x39e,_0x477672._0x4247e7)]>0x0?_0x51e02c:_0x23c8f6(_0x477672._0x9a3fb3,0x3cc,_0x477672._0x59f383,_0x477672._0x240cde);}function getToolResultImages(_0x7cd36f){const _0xcc64dc={_0x78f58a:0x40};function _0x433a36(_0x1ec82a,_0x30811e,_0xa0b617,_0x1dd3ac){return _0x55ca(_0x30811e- -0x1ae,_0xa0b617);}return Array[_0x433a36(-_0xcc64dc._0x78f58a,-0x31,-0x24,-0x1f)](_0x7cd36f)?_0x7cd36f['filter'](isImageToolResultBlock):[];}function _0x55ca(_0x59f8fc,_0xf67a19){_0x59f8fc=_0x59f8fc-0x166;const _0x57b87f=_0x57b8();let _0x55ca10=_0x57b87f[_0x59f8fc];if(_0x55ca['XWoixF']===undefined){var _0x4c39a6=function(_0x21fb75){const _0x3b4dbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c0edd='',_0x2735e0='';for(let _0x2ffef0=0x0,_0x41209b,_0x3fa06a,_0x30d611=0x0;_0x3fa06a=_0x21fb75['charAt'](_0x30d611++);~_0x3fa06a&&(_0x41209b=_0x2ffef0%0x4?_0x41209b*0x40+_0x3fa06a:_0x3fa06a,_0x2ffef0++%0x4)?_0x4c0edd+=String['fromCharCode'](0xff&_0x41209b>>(-0x2*_0x2ffef0&0x6)):0x0){_0x3fa06a=_0x3b4dbe['indexOf'](_0x3fa06a);}for(let _0x5becb0=0x0,_0x11f725=_0x4c0edd['length'];_0x5becb0<_0x11f725;_0x5becb0++){_0x2735e0+='%'+('00'+_0x4c0edd['charCodeAt'](_0x5becb0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2735e0);};_0x55ca['lzUcji']=_0x4c39a6,_0x55ca['TbplTA']={},_0x55ca['XWoixF']=!![];}const _0x1f28f7=_0x57b87f[0x0],_0x9cfafb=_0x59f8fc+_0x1f28f7,_0x302bd4=_0x55ca['TbplTA'][_0x9cfafb];return!_0x302bd4?(_0x55ca10=_0x55ca['lzUcji'](_0x55ca10),_0x55ca['TbplTA'][_0x9cfafb]=_0x55ca10):_0x55ca10=_0x302bd4,_0x55ca10;}function resolveReasoningVisibility(_0x2ad0d0){const _0x3a1eb5={_0x5402ea:0x20e,_0x3047b6:0x20b,_0x56f9b3:0x21b,_0x6b882f:0x225},_0x27d494={_0x3b15a8:0x95};function _0x5e1047(_0x400972,_0x4eacb7,_0x330543,_0x3bf3ea){return _0x55ca(_0x330543-_0x27d494._0x3b15a8,_0x4eacb7);}function _0x35578d(_0x25680f,_0x5ee688,_0x4d0816,_0x1fe270){return _0x55ca(_0x1fe270- -0x32d,_0x4d0816);}return _0x2ad0d0[_0x5e1047(_0x3a1eb5._0x5402ea,_0x3a1eb5._0x3047b6,0x1fd,0x204)]?.[_0x5e1047(_0x3a1eb5._0x56f9b3,0x21e,0x200,0x209)]??_0x5e1047(0x22f,0x241,_0x3a1eb5._0x6b882f,0x207);}function createOpenAiResponsesReasoning(_0x5170d0){const _0x1e7166={_0x287851:0x3e1,_0x208c04:0x3e4,_0x294c97:0x128,_0x438fca:0x126,_0xd1ab41:0x3e6,_0x306aca:0x3fc,_0x1ff833:0x3fe,_0x48b37c:0x104,_0x42f4a0:0x3f4,_0x1f05e7:0x128,_0xd272cb:0x10b,_0x3856e0:0x12b,_0x3f3088:0x3e3,_0x371ce5:0x3ea,_0x35d7f6:0x3f5,_0x57c168:0x3f9,_0x1378d7:0x414,_0x18499f:0x120,_0x4c7338:0x136,_0x47f82c:0xf5,_0x53202c:0xfc},_0x5e5ab6={_0x34d4d0:0x61},_0x105c65={_0x1a4c8d:0x281},_0x4bb287=resolveOpenAiReasoningConfig(_0x5170d0['reasoning']);if(!_0x4bb287)return{};const _0x22a3cb={},_0x3d8f79=_0x5170d0[_0x3a4ba7(_0x1e7166._0x287851,_0x1e7166._0x208c04,0x3ee,0x3e9)]?.[_0x8ef924(_0x1e7166._0x294c97,0x134,0x122,_0x1e7166._0x438fca)]!==void 0x0,_0x5edbcf=(!_0x3d8f79&&_0x3a4ba7(_0x1e7166._0xd1ab41,_0x1e7166._0x306aca,_0x1e7166._0x1ff833,0x3f6)in _0x4bb287?_0x4bb287[_0x8ef924(0x114,0x132,0x11e,_0x1e7166._0x48b37c)]:void 0x0)??(resolveReasoningVisibility(_0x5170d0)===_0x3a4ba7(0x413,_0x1e7166._0x42f4a0,0x3f6,0x411)?_0x8ef924(0x115,0x110,0x118,_0x1e7166._0x1f05e7):void 0x0);_0x4bb287[_0x8ef924(_0x1e7166._0xd272cb,0x107,_0x1e7166._0x3856e0,0xf0)]&&(_0x22a3cb['effort']=_0x4bb287[_0x3a4ba7(0x3f3,_0x1e7166._0x3f3088,0x3e7,0x3ed)]);_0x5edbcf&&(_0x22a3cb[_0x8ef924(0x114,0x125,0x113,0x12e)]=_0x5edbcf);function _0x3a4ba7(_0x296d0b,_0x1e4862,_0x25f0c1,_0x4a016d){return _0x55ca(_0x4a016d-_0x105c65._0x1a4c8d,_0x1e4862);}function _0x8ef924(_0x16b928,_0x104479,_0x217823,_0x6be4b1){return _0x55ca(_0x16b928- -_0x5e5ab6._0x34d4d0,_0x6be4b1);}return{...!_0x3d8f79&&_0x3a4ba7(_0x1e7166._0x371ce5,_0x1e7166._0x3f3088,_0x1e7166._0x35d7f6,_0x1e7166._0x57c168)in _0x4bb287&&_0x4bb287[_0x3a4ba7(_0x1e7166._0x1378d7,0x3fe,_0x1e7166._0x208c04,0x3f9)]===![]?{}:{'include':[_0x8ef924(0x13e,_0x1e7166._0x18499f,0x123,_0x1e7166._0x4c7338)]},...Object['keys'](_0x22a3cb)[_0x8ef924(0x112,0x106,_0x1e7166._0x47f82c,_0x1e7166._0x53202c)]>0x0?{'reasoning':_0x22a3cb}:{}};}function pushAssistantProviderState(_0xf9f8a7,_0x9a1c30,_0x25ad68){const _0x6d5eb3={_0x4e3f19:0x4df,_0x610579:0x4f6,_0x5d155f:0x500,_0x46a022:0x4cb,_0x577781:0x4e1,_0x2cb539:0x2b3,_0x4c2b68:0x294,_0x1fa655:0x2b9,_0x383384:0x4e1,_0x24e1fb:0x4f9,_0xf0d5fd:0x4c2,_0x8277b7:0x2c5,_0x2f9f40:0x2b5,_0x10e543:0x4e4,_0x42e1d2:0x4e9,_0x4eb82d:0x4fe,_0xcc1299:0x4f1,_0x9773e6:0x2aa,_0x4c742e:0x4dc,_0x32ea86:0x4cb,_0x5374bf:0x4ee},_0x53af72={_0x3725b5:0x12d};function _0x718047(_0x574dd3,_0x1335f1,_0x1ae144,_0x370680){return _0x55ca(_0x370680-0x367,_0x1ae144);}if(_0x9a1c30[_0x718047(0x4eb,_0x6d5eb3._0x4e3f19,0x511,_0x6d5eb3._0x610579)]!=='assistant')return![];if(!isProviderStateCompatible(_0x9a1c30,_0x25ad68))return![];const _0x507570=_0x9a1c30[_0x718047(_0x6d5eb3._0x5d155f,0x4fd,_0x6d5eb3._0x46a022,_0x6d5eb3._0x577781)]?.[_0x5293f4(0x2b0,_0x6d5eb3._0x2cb539,_0x6d5eb3._0x4c2b68,_0x6d5eb3._0x1fa655)]??[];function _0x5293f4(_0x5e964f,_0xa128a,_0x5e2573,_0x55ac05){return _0x55ca(_0x5e964f-_0x53af72._0x3725b5,_0x55ac05);}if(_0x507570[_0x718047(_0x6d5eb3._0x383384,_0x6d5eb3._0x24e1fb,_0x6d5eb3._0xf0d5fd,0x4da)]===0x0)return![];for(const _0x51513d of _0x507570){if(isResponseInputObject(_0x51513d)){const _0x3dde40=structuredClone(_0x51513d);delete _0x3dde40[_0x5293f4(0x2be,_0x6d5eb3._0x8277b7,_0x6d5eb3._0x2f9f40,0x2b3)],_0x3dde40[_0x718047(_0x6d5eb3._0x10e543,_0x6d5eb3._0x42e1d2,_0x6d5eb3._0x4eb82d,_0x6d5eb3._0xcc1299)]===_0x5293f4(0x295,0x283,_0x6d5eb3._0x9773e6,0x2b4)&&!Array[_0x718047(0x4f8,0x4db,0x4d9,0x4e4)](_0x3dde40[_0x718047(0x4f7,0x4e3,0x4cf,_0x6d5eb3._0x4c742e)])&&(_0x3dde40[_0x718047(0x4e4,_0x6d5eb3._0x32ea86,_0x6d5eb3._0x5374bf,_0x6d5eb3._0x4c742e)]=[]),_0xf9f8a7['push'](_0x3dde40);}}return!![];}function toOpenAiResponsesRequest(_0x2d60b0){const _0x5115a3={_0x584a60:0x520,_0x100ea7:0x517,_0x27f468:0x51d,_0x1aaa43:0x502,_0x501a48:0x503,_0x104807:0x504,_0x37699f:0x4f9,_0x454bbe:0x514,_0x2a1757:0x533,_0x215e20:0x513,_0x3437ec:0x52f,_0x26ffcc:0x4e7,_0x5f0dbf:0x4e6,_0x64f7fb:0x501,_0x4bf1c9:0x530,_0x3a9af8:0x4ee,_0x1e053d:0x4f8,_0x21f5a8:0x509,_0x2d7a3b:0x4cb,_0x563c17:0x4e9,_0x45265f:0x4d3,_0x2ae35f:0x504,_0x20f8b3:0x4e4,_0x4489c2:0x509,_0x3ee8fa:0x4f8,_0x2b4c5e:0x50e,_0x3c0615:0x512,_0x158623:0x523,_0xed28ba:0x4e5,_0x2db24f:0x504,_0x3a8f3c:0x500,_0x571c0a:0x506,_0x5a26b5:0x537,_0x562e11:0x501,_0x243a3e:0x50c,_0x4e051b:0x532,_0x3d41c0:0x4d4,_0x285ec6:0x4dc,_0x123de4:0x4ed,_0x5bcd89:0x4e6,_0x4cdc82:0x4fc,_0x427956:0x4f2,_0x206adb:0x4eb,_0x1af27a:0x4d1,_0x4803aa:0x510,_0x3c0679:0x50a,_0x4a9a98:0x4d9,_0x2f1db5:0x4ef,_0x341e38:0x4f2,_0x5cc913:0x4f4,_0x2f6712:0x4f0,_0x57db02:0x505,_0x27ab50:0x4d7,_0x27fdea:0x4c1,_0x59938c:0x519,_0x31d77e:0x4e3,_0x491767:0x4ec,_0x186538:0x4ff,_0x285cc5:0x506,_0x137848:0x4fa,_0x2308b4:0x512,_0x5f5235:0x4fe,_0x3aa37f:0x4e4,_0x3851c4:0x51c,_0x11dc8f:0x528,_0x2cec0d:0x508,_0x59479b:0x511,_0x2b9f97:0x509,_0xf78698:0x4f1,_0x532b2b:0x4fd,_0x54b96a:0x4d4,_0x25298b:0x4f5,_0x152852:0x4d2,_0x1146b4:0x4fb,_0x37447c:0x539,_0x3971a6:0x528,_0x17e428:0x51e},_0x2e2a91={_0x9a0a03:0x199,_0x4348a9:0x18a,_0xb5d232:0x181,_0x370c35:0x1a1,_0x3edd82:0x1c9,_0x4ff4e9:0x1a9,_0x1753c3:0x18e,_0x5965d9:0x1c6};function _0x22251b(_0x2f1431,_0x4f0847,_0x571133,_0x34e966){return _0x55ca(_0x2f1431-0x364,_0x4f0847);}const _0x113b0a=[];for(const _0x1f6038 of _0x2d60b0[_0x5cd109(_0x5115a3._0x584a60,0x525,_0x5115a3._0x100ea7,_0x5115a3._0x27f468)]){if(pushAssistantProviderState(_0x113b0a,_0x1f6038,_0x2d60b0))continue;const _0x23607e=[];for(const _0xe32b6e of normalizeContent(_0x1f6038[_0x5cd109(_0x5115a3._0x1aaa43,0x510,0x4fd,0x4f0)])){if(_0xe32b6e[_0x22251b(0x4ee,_0x5115a3._0x501a48,_0x5115a3._0x104807,0x4f3)]===_0x5cd109(0x517,0x520,0x514,0x524)){_0x23607e[_0x22251b(_0x5115a3._0x37699f,0x4e4,0x515,_0x5115a3._0x454bbe)](_0x1f6038[_0x5cd109(_0x5115a3._0x2a1757,_0x5115a3._0x215e20,0x528,_0x5115a3._0x3437ec)]==='assistant'?{'type':_0x5cd109(_0x5115a3._0x26ffcc,0x4ea,0x4f1,0x4cf),'text':_0xe32b6e['text']}:{'type':_0x5cd109(_0x5115a3._0x5f0dbf,_0x5115a3._0x501a48,0x51c,_0x5115a3._0x454bbe),'text':_0xe32b6e[_0x5cd109(_0x5115a3._0x64f7fb,0x520,_0x5115a3._0x4bf1c9,0x50a)]});continue;}if(_0xe32b6e[_0x22251b(_0x5115a3._0x3a9af8,0x4fb,0x4ed,_0x5115a3._0x1e053d)]==='image'){_0x23607e['push']({'type':'input_image','image_url':'data:'+_0xe32b6e[_0x22251b(_0x5115a3._0x21f5a8,_0x5115a3._0x584a60,0x506,0x50c)][_0x22251b(_0x5115a3._0x2d7a3b,0x4d7,_0x5115a3._0x563c17,_0x5115a3._0x45265f)]+_0x22251b(0x4e9,_0x5115a3._0x2ae35f,0x4d0,_0x5115a3._0x20f8b3)+_0xe32b6e[_0x22251b(_0x5115a3._0x4489c2,0x507,0x50d,0x515)][_0x5cd109(_0x5115a3._0x3ee8fa,0x50c,0x4fd,_0x5115a3._0x2b4c5e)]});continue;}pushUserContentMessage(_0x113b0a,_0x1f6038[_0x5cd109(_0x5115a3._0x3c0615,0x513,_0x5115a3._0x158623,0x50b)],_0x23607e[_0x5cd109(0x4eb,_0x5115a3._0x3a9af8,0x4d4,0x503)](0x0));if(_0xe32b6e[_0x22251b(0x4ee,0x4e4,0x4cf,_0x5115a3._0xed28ba)]===_0x22251b(_0x5115a3._0x2db24f,_0x5115a3._0x3a8f3c,0x50d,0x4f1)){if(!hasSerializableToolUse(_0xe32b6e))continue;_0x113b0a[_0x5cd109(_0x5115a3._0x571c0a,0x519,_0x5115a3._0x5a26b5,_0x5115a3._0x3437ec)]({'type':_0x5cd109(_0x5115a3._0x562e11,0x51f,_0x5115a3._0x243a3e,_0x5115a3._0x4e051b),'call_id':_0xe32b6e['id'],'name':_0xe32b6e['name'],'arguments':JSON['stringify'](_0xe32b6e[_0x22251b(_0x5115a3._0x3d41c0,_0x5115a3._0x285ec6,_0x5115a3._0x123de4,_0x5115a3._0x5bcd89)]??{})});continue;}if(_0xe32b6e[_0x22251b(0x4ee,0x4f6,_0x5115a3._0x4cdc82,_0x5115a3._0x1e053d)]===_0x22251b(0x4e2,_0x5115a3._0x427956,_0x5115a3._0x206adb,_0x5115a3._0x1af27a)){if(!hasSerializableToolResult(_0xe32b6e))continue;const _0x3846e0=getToolResultText(_0xe32b6e[_0x22251b(0x4f0,_0x5115a3._0x4803aa,0x4fe,_0x5115a3._0x3c0679)]);_0x113b0a[_0x22251b(0x4f9,0x505,0x4fe,_0x5115a3._0x4a9a98)]({'type':_0x5cd109(_0x5115a3._0x563c17,0x504,0x509,_0x5115a3._0x2f1db5),'call_id':_0xe32b6e[_0x22251b(_0x5115a3._0x341e38,0x4d9,0x4fd,_0x5115a3._0x5cc913)],'output':_0x3846e0});const _0x56901e=getToolResultImages(_0xe32b6e[_0x22251b(_0x5115a3._0x2f6712,0x4e2,_0x5115a3._0x571c0a,_0x5115a3._0x57db02)]);_0x56901e[_0x22251b(_0x5115a3._0x27ab50,_0x5115a3._0x27fdea,0x4ed,0x4ef)]>0x0&&_0x113b0a[_0x5cd109(_0x5115a3._0x1aaa43,0x519,0x536,_0x5115a3._0x59938c)]({'type':'message','role':'user','content':[{'type':_0x22251b(_0x5115a3._0x31d77e,0x4e0,0x502,_0x5115a3._0x491767),'text':_0x5cd109(_0x5115a3._0x186538,_0x5115a3._0x285cc5,_0x5115a3._0x137848,0x514)+_0xe32b6e[_0x5cd109(0x528,_0x5115a3._0x2308b4,_0x5115a3._0x5f5235,0x50a)]+'.'},..._0x56901e[_0x22251b(0x4f1,0x4f5,_0x5115a3._0x1aaa43,0x4e9)](_0x4ea83f=>({'type':'input_image','image_url':'data:'+_0x4ea83f[_0x5cd109(0x522,0x529,0x537,0x524)][_0x5cd109(0x4cc,0x4eb,0x4df,0x4f3)]+_0x22251b(0x4e9,0x4f5,0x4d2,0x504)+_0x4ea83f['source'][_0x22251b(0x4ec,0x4ee,0x4e0,0x4d9)]}))]});}}pushUserContentMessage(_0x113b0a,_0x1f6038['role'],_0x23607e);}function _0x5cd109(_0x1d83a0,_0x8bbede,_0x4218b0,_0x3e8cbc){return _0x55ca(_0x8bbede-0x384,_0x1d83a0);}return{...createOpenAiResponsesReasoning(_0x2d60b0),'model':_0x2d60b0[_0x5cd109(0x515,0x4f8,0x4df,_0x5115a3._0x3aa37f)],'instructions':systemToInstructions(_0x2d60b0[_0x22251b(0x4fc,_0x5115a3._0x3851c4,_0x5115a3._0x3ee8fa,0x517)]),'input':_0x113b0a,..._0x2d60b0[_0x5cd109(0x527,_0x5115a3._0x11dc8f,_0x5115a3._0x2b4c5e,0x50f)]!==void 0x0?{'max_output_tokens':_0x2d60b0[_0x22251b(_0x5115a3._0x2cec0d,0x503,0x4ea,0x4fe)]}:{},'tools':_0x2d60b0[_0x5cd109(_0x5115a3._0x59479b,0x4f2,0x4eb,_0x5115a3._0x2b9f97)][_0x22251b(_0x5115a3._0xf78698,0x503,_0x5115a3._0x532b2b,_0x5115a3._0x54b96a)](_0x3c3aae=>{const _0x4310db={_0x42d8dd:0x36f,_0x5b8fc5:0x11f},_0x1b61c0={_0x189171:0x374};function _0x4aa3c6(_0x2caf8f,_0x1335a1,_0x306d8c,_0x3456c8){return _0x5cd109(_0x3456c8,_0x2caf8f- -_0x1b61c0._0x189171,_0x306d8c-0x18,_0x3456c8-0x151);}function _0x3dad25(_0x1da0b1,_0x524fb0,_0x565cd6,_0x369af8){return _0x5cd109(_0x565cd6,_0x1da0b1- -_0x4310db._0x42d8dd,_0x565cd6-_0x4310db._0x5b8fc5,_0x369af8-0x17c);}return{'type':_0x3dad25(_0x2e2a91._0x9a0a03,_0x2e2a91._0x4348a9,0x18c,_0x2e2a91._0xb5d232),'name':_0x3c3aae[_0x4aa3c6(0x181,0x164,0x185,_0x2e2a91._0x370c35)],'description':_0x3c3aae[_0x3dad25(0x1ae,0x192,0x1c9,_0x2e2a91._0x3edd82)],'parameters':_0x3c3aae[_0x3dad25(_0x2e2a91._0x4ff4e9,0x18a,_0x2e2a91._0x1753c3,_0x2e2a91._0x5965d9)]};}),..._0x2d60b0[_0x22251b(0x4df,0x4f2,_0x5115a3._0x25298b,0x4db)]?{'text':{'format':{'type':_0x22251b(0x4d6,_0x5115a3._0x152852,0x4f2,0x4db),'name':_0x2d60b0['outputFormat'][_0x5cd109(0x4f6,0x4f5,0x4fb,0x508)]??_0x22251b(0x4fa,_0x5115a3._0x1146b4,_0x5115a3._0x37699f,0x4da),'schema':_0x2d60b0['outputFormat'][_0x5cd109(_0x5115a3._0x37447c,0x51b,_0x5115a3._0x501a48,_0x5115a3._0x3971a6)],'strict':_0x2d60b0[_0x5cd109(_0x5115a3._0x2cec0d,0x4ff,_0x5115a3._0x17e428,0x508)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x5ad3ea,_0x17395c){const _0x166f4e={_0x394fe1:0xc1,_0x1f3900:0x99,_0x40b306:0xb3,_0x4178ca:0x2c1,_0xb7b01:0x2be,_0xcdd151:0x28e,_0x7244cf:0x2c5,_0x4fa628:0x88,_0x131975:0x84,_0x456b52:0x2b0,_0x409ef6:0x8b,_0x3c395e:0x98,_0xa67cfc:0x72,_0x596fae:0x7c,_0x54e85b:0x6c,_0x5cb24d:0x2c7,_0x811c36:0x297,_0x545a25:0xad,_0xbc6519:0x6b,_0x37de67:0x58},_0x3a3d27={_0x569ffd:0x3};function _0x456eba(_0x17ad0f,_0x20a352,_0x4edf01,_0x357d42){return _0x4fd3(_0x4edf01- -0x344,_0x17ad0f);}function _0x4a2a5b(_0x212b36,_0x25b547,_0x264d02,_0x29f7d3){return _0x4fd3(_0x212b36-_0x3a3d27._0x569ffd,_0x25b547);}const _0x2d0915=_0x5ad3ea();while(!![]){try{const _0x5768d8=-parseInt(_0x4a2a5b(0x9f,_0x166f4e._0x394fe1,_0x166f4e._0x1f3900,_0x166f4e._0x40b306))/0x1*(-parseInt(_0x456eba(-0x2a3,-_0x166f4e._0x4178ca,-_0x166f4e._0xb7b01,-0x2c9))/0x2)+-parseInt(_0x456eba(-0x2b5,-0x2e3,-0x2d1,-0x2b2))/0x3+-parseInt(_0x4a2a5b(0x93,0x81,0x90,0x7e))/0x4*(parseInt(_0x456eba(-0x2b5,-_0x166f4e._0xcdd151,-0x2a4,-_0x166f4e._0x7244cf))/0x5)+-parseInt(_0x4a2a5b(0x72,_0x166f4e._0x4fa628,_0x166f4e._0x131975,0x5b))/0x6*(-parseInt(_0x456eba(-0x2a8,-0x2a8,-_0x166f4e._0x456b52,-0x2b8))/0x7)+parseInt(_0x4a2a5b(_0x166f4e._0x409ef6,_0x166f4e._0x3c395e,_0x166f4e._0xa67cfc,0x71))/0x8+-parseInt(_0x4a2a5b(_0x166f4e._0x596fae,0x84,0x76,_0x166f4e._0x54e85b))/0x9*(-parseInt(_0x456eba(-0x286,-_0x166f4e._0x5cb24d,-0x2a7,-_0x166f4e._0x811c36))/0xa)+parseInt(_0x4a2a5b(0x9c,0xbc,_0x166f4e._0x545a25,_0x166f4e._0x409ef6))/0xb*(-parseInt(_0x4a2a5b(_0x166f4e._0xbc6519,0x80,0x50,_0x166f4e._0x37de67))/0xc);if(_0x5768d8===_0x17395c)break;else _0x2d0915['push'](_0x2d0915['shift']());}catch(_0x2af600){_0x2d0915['push'](_0x2d0915['shift']());}}}(_0x42fa,0x2ca56));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';function _0x4fd3(_0x1d7b01,_0x4f9de7){_0x1d7b01=_0x1d7b01-0x64;const _0x42fac3=_0x42fa();let _0x4fd3a8=_0x42fac3[_0x1d7b01];if(_0x4fd3['TIQnvd']===undefined){var _0x432e10=function(_0x41d636){const _0xb0dd55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x466ddb='',_0x4c409c='';for(let _0x238d10=0x0,_0x2a0f97,_0x53e377,_0x376f77=0x0;_0x53e377=_0x41d636['charAt'](_0x376f77++);~_0x53e377&&(_0x2a0f97=_0x238d10%0x4?_0x2a0f97*0x40+_0x53e377:_0x53e377,_0x238d10++%0x4)?_0x466ddb+=String['fromCharCode'](0xff&_0x2a0f97>>(-0x2*_0x238d10&0x6)):0x0){_0x53e377=_0xb0dd55['indexOf'](_0x53e377);}for(let _0x49d62a=0x0,_0x3140d0=_0x466ddb['length'];_0x49d62a<_0x3140d0;_0x49d62a++){_0x4c409c+='%'+('00'+_0x466ddb['charCodeAt'](_0x49d62a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c409c);};_0x4fd3['HcduDD']=_0x432e10,_0x4fd3['DpnHgi']={},_0x4fd3['TIQnvd']=!![];}const _0x51c0f7=_0x42fac3[0x0],_0x8c4994=_0x1d7b01+_0x51c0f7,_0x13f254=_0x4fd3['DpnHgi'][_0x8c4994];return!_0x13f254?(_0x4fd3a8=_0x4fd3['HcduDD'](_0x4fd3a8),_0x4fd3['DpnHgi'][_0x8c4994]=_0x4fd3a8):_0x4fd3a8=_0x13f254,_0x4fd3a8;}import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x466ddb){const _0x2bcd76={_0x3d0932:0x388},_0x3154c0={_0x27ddb8:0x122};function _0x1c6984(_0xc8c51b,_0x501372,_0x59ff60,_0x397dee){return _0x4fd3(_0x501372- -_0x3154c0._0x27ddb8,_0x397dee);}function _0x18760e(_0xcad3f3,_0x2d60bb,_0x176d7a,_0x59032e){return _0x4fd3(_0x59032e- -_0x2bcd76._0x3d0932,_0x176d7a);}return normalizeContent(_0x466ddb)['filter'](_0x4c409c=>_0x4c409c[_0x18760e(-0x31f,-0x32a,-0x304,-0x30b)]==='text')['map'](_0x238d10=>_0x238d10[_0x1c6984(-0xa2,-0xb5,-0xa5,-0x9a)])['join']('\x0a\x0a');}function pushUserContentMessage(_0x2a0f97,_0x53e377,_0x376f77){const _0x290455={_0x49f88c:0x2ea,_0xc49585:0x306,_0x1bd2b1:0x30d,_0x4a5728:0x29,_0x4b3791:0x22,_0x7ec9fd:0x11},_0x4984eb={_0x70f9fa:0xac},_0x4c593b={_0x4b7f33:0x378};function _0x478bbe(_0xbf9383,_0x93fa21,_0xb2b963,_0x4ad60a){return _0x4fd3(_0xbf9383- -_0x4c593b._0x4b7f33,_0xb2b963);}if(_0x376f77[_0x478bbe(-0x2ef,-_0x290455._0x49f88c,-_0x290455._0xc49585,-_0x290455._0x1bd2b1)]===0x0)return;function _0x45d3ae(_0x11c3f2,_0x537531,_0x140260,_0xa6ff2c){return _0x4fd3(_0x11c3f2- -_0x4984eb._0x70f9fa,_0x140260);}_0x2a0f97[_0x45d3ae(-_0x290455._0x4a5728,-0x17,-0x11,-_0x290455._0x4b3791)]({'type':_0x45d3ae(-0xa,0x7,_0x290455._0x7ec9fd,-0xf),'role':_0x53e377,'content':_0x376f77});}function hasSerializableToolUse(_0x49d62a){const _0x4cf581={_0x164534:0x38a,_0x532991:0x31d,_0x26554c:0x327,_0x1c7a94:0x31c,_0x291fd6:0x376,_0xc3d80f:0x39b,_0x165ede:0x37e,_0x1b11f4:0x32d,_0x4801be:0x324},_0x2e7c05={_0x585a1a:0x314};function _0x4ccbde(_0x2876d7,_0x4c047a,_0x448bae,_0x1f1b0a){return _0x4fd3(_0x1f1b0a-_0x2e7c05._0x585a1a,_0x448bae);}function _0x4c4d0e(_0x33700a,_0x31d804,_0x4f9a84,_0x5ebe10){return _0x4fd3(_0x4f9a84- -0x3a5,_0x31d804);}return _0x49d62a['id'][_0x4ccbde(0x3a2,0x3bd,_0x4cf581._0x164534,0x39b)]()[_0x4c4d0e(-_0x4cf581._0x532991,-_0x4cf581._0x26554c,-_0x4cf581._0x1c7a94,-0x31f)]>0x0&&_0x49d62a[_0x4ccbde(_0x4cf581._0x291fd6,_0x4cf581._0xc3d80f,0x37a,_0x4cf581._0x165ede)]['trim']()[_0x4c4d0e(-_0x4cf581._0x1b11f4,-0x302,-_0x4cf581._0x1c7a94,-_0x4cf581._0x4801be)]>0x0;}function hasSerializableToolResult(_0x3140d0){const _0x387209={_0x55fd35:0x228,_0x5b4a7c:0x240,_0x35f867:0x207,_0x22d1ef:0x213,_0x592c80:0x1ec,_0x45b690:0x20a,_0x2a9d76:0x1ef},_0x59c878={_0x375f39:0x181},_0x54099a={_0x20396e:0x367};function _0x153353(_0x19d6a4,_0x4d5388,_0x43efaa,_0x1c1e79){return _0x4fd3(_0x1c1e79- -_0x54099a._0x20396e,_0x4d5388);}function _0x1e78a0(_0x32ddbf,_0x3f7a84,_0x52d9a4,_0x4444e8){return _0x4fd3(_0x3f7a84-_0x59c878._0x375f39,_0x32ddbf);}return _0x3140d0[_0x1e78a0(0x20a,_0x387209._0x55fd35,0x236,_0x387209._0x5b4a7c)][_0x1e78a0(_0x387209._0x35f867,0x208,_0x387209._0x22d1ef,_0x387209._0x592c80)]()[_0x1e78a0(0x1ea,_0x387209._0x45b690,_0x387209._0x2a9d76,0x229)]>0x0;}function isResponseInputObject(_0x3d4561){const _0x4068d3={_0x43a14a:0x144,_0x18712e:0x129,_0x24aba4:0x11e,_0x266317:0x129,_0x18fab5:0x12a,_0x1a1824:0x151,_0x388753:0x117,_0x4a37d3:0x146,_0x4d5026:0x11b,_0x2dca50:0xd4,_0x3165ea:0xbc},_0x402455={_0x567379:0x2e},_0x5b25d5={_0x1b6f74:0x1a3};function _0x153d4b(_0x516dbc,_0x3555de,_0x5edafa,_0x32de52){return _0x4fd3(_0x3555de- -_0x5b25d5._0x1b6f74,_0x5edafa);}if(typeof _0x3d4561!==_0x153d4b(-_0x4068d3._0x43a14a,-_0x4068d3._0x18712e,-_0x4068d3._0x24aba4,-_0x4068d3._0x266317)||_0x3d4561===null||Array[_0x153d4b(-0x13e,-0x138,-_0x4068d3._0x18fab5,-_0x4068d3._0x1a1824)](_0x3d4561))return![];const _0x25356f=_0x3d4561;function _0x5ec9a0(_0x52bc77,_0x3c4e9b,_0x2a8084,_0x7c5424){return _0x4fd3(_0x52bc77-_0x402455._0x567379,_0x7c5424);}return typeof _0x25356f[_0x153d4b(-_0x4068d3._0x388753,-0x126,-_0x4068d3._0x4a37d3,-_0x4068d3._0x4d5026)]===_0x5ec9a0(_0x4068d3._0x2dca50,0xd0,0xbd,_0x4068d3._0x3165ea);}function isImageToolResultBlock(_0x3fa4c7){const _0x58d46b={_0x166e78:0xbf,_0x502907:0x14c,_0x332a8f:0x160,_0x43952c:0x156,_0x23f0ae:0x14a,_0x59a53a:0x17b,_0x3368c8:0x186,_0x2c1d1b:0x17e,_0x3c88d7:0x173,_0x3eb0a8:0xa3,_0x38b7c1:0xaf,_0x33b443:0xba,_0x4be874:0x138,_0x561969:0x144,_0x48e089:0xc9},_0x4abe93={_0x5db074:0xe2};function _0x2e331a(_0xe8e486,_0x347652,_0x4f0850,_0x3c2c14){return _0x4fd3(_0x3c2c14-_0x4abe93._0x5db074,_0x4f0850);}function _0x58a03d(_0x148440,_0x3bb2d7,_0x339698,_0xbba9c2){return _0x4fd3(_0xbba9c2-0x3b,_0x339698);}if(typeof _0x3fa4c7!=='object'||_0x3fa4c7===null||Array[_0x58a03d(0xc1,0xae,_0x58d46b._0x166e78,0xa6)](_0x3fa4c7))return![];const _0x36d08e=_0x3fa4c7;return _0x36d08e['type']==='image'&&_0x36d08e[_0x2e331a(0x148,_0x58d46b._0x502907,_0x58d46b._0x332a8f,_0x58d46b._0x43952c)]?.[_0x2e331a(0x164,_0x58d46b._0x23f0ae,_0x58d46b._0x59a53a,0x15f)]===_0x2e331a(_0x58d46b._0x3368c8,_0x58d46b._0x2c1d1b,0x178,_0x58d46b._0x3c88d7)&&typeof _0x36d08e[_0x58a03d(0xb4,0xcb,_0x58d46b._0x3eb0a8,_0x58d46b._0x38b7c1)][_0x58a03d(0xb6,0x94,_0x58d46b._0x33b443,0x9f)]==='string'&&typeof _0x36d08e['source'][_0x2e331a(_0x58d46b._0x4be874,_0x58d46b._0x561969,0x146,0x152)]===_0x58a03d(_0x58d46b._0x48e089,0xe4,0xcb,0xe1);}function getToolResultText(_0x7e2eb9){const _0x93c92c={_0xb25644:0x97,_0x584ca7:0x85,_0x4925ae:0xaa,_0xd82714:0x455,_0x28c07d:0x433,_0x20e519:0x5e,_0x4c372f:0x81,_0x268050:0x9b,_0x448d1c:0x456,_0x213ded:0x451,_0x20c582:0x461,_0x2b88f5:0x82,_0x411339:0x99,_0x2acb2f:0x64},_0x57e517={_0x54c0aa:0x16d,_0x37b8f0:0x187,_0x43d7cd:0x17a,_0x3afcf1:0x15d},_0x58127d={_0x553f76:0x3c3};function _0x42c0e2(_0x4a0440,_0x2f00ca,_0x146408,_0x398dcd){return _0x4fd3(_0x146408-_0x58127d._0x553f76,_0x2f00ca);}function _0x3edc17(_0x4f5c5b,_0x4bacd9,_0xddd6e1,_0x213600){return _0x4fd3(_0xddd6e1- -0xd,_0x213600);}if(typeof _0x7e2eb9===_0x3edc17(_0x93c92c._0xb25644,_0x93c92c._0x584ca7,0x99,_0x93c92c._0x4925ae))return _0x7e2eb9;const _0x1e4f20=_0x7e2eb9[_0x42c0e2(0x42b,_0x93c92c._0xd82714,0x43e,_0x93c92c._0x28c07d)](_0x4afdf2=>{const _0x1029b1={_0x4fe15f:0x1ad,_0x27f08b:0x5aa,_0x22fff9:0xb};function _0x1921fb(_0x2b5d11,_0x4c5842,_0x437a46,_0x1b5416){return _0x42c0e2(_0x2b5d11-_0x1029b1._0x4fe15f,_0x437a46,_0x2b5d11- -_0x1029b1._0x27f08b,_0x1b5416-_0x1029b1._0x22fff9);}function _0x4020c1(_0x43248c,_0x48ffab,_0x2b2fa9,_0x22392e){return _0x42c0e2(_0x43248c-0x119,_0x2b2fa9,_0x22392e- -0x5cb,_0x22392e-0x36);}return typeof _0x4afdf2===_0x1921fb(-_0x57e517._0x54c0aa,-_0x57e517._0x37b8f0,-0x187,-0x17f)&&_0x4afdf2!==null&&_0x4afdf2['type']===_0x1921fb(-_0x57e517._0x43d7cd,-_0x57e517._0x54c0aa,-0x167,-_0x57e517._0x3afcf1);})[_0x3edc17(_0x93c92c._0x20e519,0x93,_0x93c92c._0x4c372f,0x67)](_0x2fdb4e=>_0x2fdb4e[_0x42c0e2(0x412,0x44e,0x430,0x41a)])['join']('\x0a\x0a')[_0x3edc17(0x5f,_0x93c92c._0x268050,0x7a,0x6a)]();return _0x1e4f20[_0x42c0e2(_0x93c92c._0x448d1c,_0x93c92c._0x213ded,0x44c,_0x93c92c._0x20c582)]>0x0?_0x1e4f20:_0x3edc17(_0x93c92c._0x2b88f5,_0x93c92c._0x411339,0x80,_0x93c92c._0x2acb2f);}function getToolResultImages(_0x3d6ef4){const _0x28ccbb={_0x44d2b1:0x2f3,_0x5e5763:0x2d4,_0x4dc0dc:0x2d7};function _0x5ea3b1(_0x2b6fe0,_0x574260,_0x2c3af5,_0x21b8df){return _0x4fd3(_0x574260- -0x34f,_0x2b6fe0);}return Array['isArray'](_0x3d6ef4)?_0x3d6ef4[_0x5ea3b1(-_0x28ccbb._0x44d2b1,-_0x28ccbb._0x5e5763,-0x2d4,-_0x28ccbb._0x4dc0dc)](isImageToolResultBlock):[];}function _0x42fa(){const _0xe9d63f=['yMfZzty0','DMLZAwjPBgL0Eq','C3rYDwn0DxjLzf9VDxrWDxq','mZmXmwTTA05ABa','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','C3bSAwnL','DxnLCG','zgf0ytO','mtfmq0rnB0i','Aw5WDxq','C3LZDgvT','mZy1oeznyu5xBq','mJqXnZi2mfHrwvD1vG','o2jHC2u2ncW','Bw9KzwW','mJiWv2TjAgD2','ChjVDMLKzxjtDgf0zq','BwvZC2fNzq','Aw5WDxrFAw1Hz2u','Bwf4vg9Rzw5Z','B3v0Chv0x3rLEhq','C3rYAw5N','Dg9VBf91C2vFAwq','B3v0Chv0rM9YBwf0','BwvKAwfFDhLWzq','DxnLCI12AxnPyMXL','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','zNvUy3rPB25Fy2fSBf9VDxrWDxq','mJu0mJq0uMHvD01V','Dg9VBhm','BMfTzq','AxnbCNjHEq','C2nOzw1H','Dgv4Da','zwzMB3j0','ndi0mMLwAxPSBG','zgf0yq','zNvUy3rPB24','C3vTBwfYEq','otu5mJGZruLHuhfb','C291CMnL','Aw5WDxrFC2nOzw1H','Dg9VBf9Yzxn1Bhq','yxnZAxn0yw50','ANnVBL9Zy2HLBwe','owf6ALr0Aq','B2jQzwn0','zMLSDgvY','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','DhLWzq','Aw5WDxrFDgv4Da','C3rYAw5NAwz5','CMvHC29UAw5N','CM9Szq','Dg9VBf91C2u','ChvZAa','zNvUy3rPB25Fy2fSBa','y29UDgvUDa','mNfhqKTOyG','DhjPBq','mZq0ntm2wxrSCffL','BgvUz3rO','y29KzxG','A2v5CW','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BwfW','BwvZC2fNzxm','otaWnhvpDMvvBW'];_0x42fa=function(){return _0xe9d63f;};return _0x42fa();}function resolveReasoningVisibility(_0x5009e5){const _0x3f102c={_0xd05420:0x11d,_0x97648a:0x11b,_0xe08f6c:0x16a,_0x42023f:0x14c},_0x46e64a={_0x5218a0:0x1ad},_0x1a87c1={_0x342e9a:0xab};function _0x3761d9(_0x3d7987,_0x308679,_0x349c41,_0x381649){return _0x4fd3(_0x3d7987-_0x1a87c1._0x342e9a,_0x308679);}function _0x41c7af(_0x3e99b8,_0x3985e7,_0x4ebbff,_0x2ab6fb){return _0x4fd3(_0x4ebbff- -_0x46e64a._0x5218a0,_0x3e99b8);}return _0x5009e5['reasoning']?.[_0x41c7af(-0xfe,-_0x3f102c._0xd05420,-_0x3f102c._0x97648a,-0x124)]??_0x41c7af(-0x13c,-_0x3f102c._0xe08f6c,-0x148,-_0x3f102c._0x42023f);}function createOpenAiResponsesReasoning(_0x13448b){const _0x183a9f={_0x3aaa34:0x142,_0x1fc12f:0x15e,_0x5e5614:0x105,_0x498335:0x107,_0x327126:0x186,_0x51972f:0x18d,_0x444f46:0x151,_0x379a2d:0x16c,_0x4b6db9:0xea,_0x17c3ca:0xcb,_0x412396:0x15c,_0x5130de:0x14d,_0x1d42e9:0xfa,_0x46266e:0xc8,_0x1bd146:0x10c,_0x288008:0xea,_0x308594:0xf3,_0x66bd5a:0x13d,_0xd45ffd:0x152,_0x4dbbc1:0x155,_0x387b2a:0x117,_0x20c0e0:0x103,_0x3173e9:0x119,_0x1b402f:0x115,_0x3f6039:0xf8,_0x18919c:0xfa},_0x4dbd76=resolveOpenAiReasoningConfig(_0x13448b[_0x6e649(-0x15b,-0x16c,-_0x183a9f._0x3aaa34,-_0x183a9f._0x1fc12f)]);if(!_0x4dbd76)return{};const _0x3b0213={},_0x3eaaf2=_0x13448b[_0x3cb2a2(_0x183a9f._0x5e5614,0xf8,_0x183a9f._0x498335,0xe1)]?.[_0x6e649(-0x174,-0x13e,-0x140,-0x154)]!==void 0x0,_0x57345a=(!_0x3eaaf2&&_0x6e649(-_0x183a9f._0x327126,-_0x183a9f._0x51972f,-_0x183a9f._0x444f46,-_0x183a9f._0x379a2d)in _0x4dbd76?_0x4dbd76[_0x3cb2a2(0xf1,_0x183a9f._0x4b6db9,_0x183a9f._0x17c3ca,_0x183a9f._0x5e5614)]:void 0x0)??(resolveReasoningVisibility(_0x13448b)==='user-visible'?'auto':void 0x0);_0x4dbd76[_0x6e649(-0x18c,-_0x183a9f._0x412396,-_0x183a9f._0x5130de,-0x170)]&&(_0x3b0213['effort']=_0x4dbd76[_0x3cb2a2(_0x183a9f._0x1d42e9,0xe6,_0x183a9f._0x46266e,0xf2)]);function _0x3cb2a2(_0x4fba1c,_0x2cc1da,_0x511212,_0x5c1af8){return _0x4fd3(_0x2cc1da-0x78,_0x5c1af8);}function _0x6e649(_0xda0e2c,_0x53208d,_0x4b0673,_0x2455ff){return _0x4fd3(_0x2455ff- -0x1de,_0x53208d);}return _0x57345a&&(_0x3b0213[_0x3cb2a2(_0x183a9f._0x1bd146,_0x183a9f._0x288008,_0x183a9f._0x308594,0xf8)]=_0x57345a),{...!_0x3eaaf2&&_0x6e649(-_0x183a9f._0x66bd5a,-0x135,-0x15e,-_0x183a9f._0xd45ffd)in _0x4dbd76&&_0x4dbd76['includeEncryptedContent']===![]?{}:{'include':[_0x6e649(-0x19a,-_0x183a9f._0x4dbbc1,-0x15e,-0x178)]},...Object[_0x3cb2a2(_0x183a9f._0x387b2a,_0x183a9f._0x20c0e0,_0x183a9f._0x3173e9,_0x183a9f._0x1b402f)](_0x3b0213)[_0x3cb2a2(0x122,0x101,_0x183a9f._0x3f6039,_0x183a9f._0x18919c)]>0x0?{'reasoning':_0x3b0213}:{}};}function pushAssistantProviderState(_0x2358e6,_0x2254b2,_0xf46538){const _0x504432={_0x24abed:0x154,_0x582be4:0x142,_0x114a05:0x14b,_0x2970c6:0x150,_0x39de69:0x119,_0x223d94:0x14d,_0x264707:0x15e,_0x1e57df:0x152,_0x2065ac:0x13c,_0x37462e:0x11c,_0x1fd9e1:0x134,_0x44af0e:0x117,_0x17642e:0x13b,_0x35dd10:0x119,_0x3da5e6:0x136,_0x3401af:0x11d},_0x2d835e={_0xcabd0d:0x1b9};if(_0x2254b2[_0x29105c(_0x504432._0x24abed,0x14a,0x153,0x163)]!==_0x4cf7bd(-_0x504432._0x582be4,-_0x504432._0x114a05,-0x12d,-_0x504432._0x2970c6))return![];if(!isProviderStateCompatible(_0x2254b2,_0xf46538))return![];const _0x5951e2=_0x2254b2[_0x4cf7bd(-0x118,-_0x504432._0x39de69,-0x106,-0x13b)]?.[_0x29105c(_0x504432._0x223d94,_0x504432._0x264707,0x16a,0x153)]??[];function _0x29105c(_0xc80ff5,_0x18f2a0,_0x31cb3d,_0x275384){return _0x4fd3(_0x18f2a0-0xc9,_0x31cb3d);}if(_0x5951e2[_0x29105c(0x15a,_0x504432._0x1e57df,_0x504432._0x2065ac,0x170)]===0x0)return![];for(const _0x4c5f31 of _0x5951e2){if(isResponseInputObject(_0x4c5f31)){const _0x41e186=structuredClone(_0x4c5f31);delete _0x41e186['status'],_0x41e186['type']===_0x4cf7bd(-0x139,-_0x504432._0x114a05,-_0x504432._0x37462e,-0x13a)&&!Array[_0x29105c(0x148,_0x504432._0x1fd9e1,_0x504432._0x44af0e,0x14e)](_0x41e186['summary'])&&(_0x41e186[_0x29105c(0x12a,_0x504432._0x17642e,_0x504432._0x1e57df,_0x504432._0x35dd10)]=[]),_0x2358e6[_0x4cf7bd(-_0x504432._0x3da5e6,-0x125,-0x140,-_0x504432._0x3401af)](_0x41e186);}}function _0x4cf7bd(_0x1a6fba,_0x14e6a0,_0x4f36ae,_0x139482){return _0x4fd3(_0x1a6fba- -_0x2d835e._0xcabd0d,_0x139482);}return!![];}function toOpenAiResponsesRequest(_0x54f1ec){const _0x239756={_0xa4fea9:0x31d,_0x20015d:0x2da,_0x48f74f:0x2fd,_0x258854:0x2fb,_0x46a5d2:0x2fc,_0x325063:0x308,_0x5b3262:0x2f1,_0x504caf:0x304,_0x5274c2:0x2eb,_0x295093:0x2e2,_0x44fc8f:0x326,_0x1de5df:0x30e,_0x3603ee:0x2d8,_0xde7e6e:0x2e6,_0x2691b9:0x308,_0x12780f:0x2f2,_0x11c568:0x2e7,_0x4d065b:0x2f9,_0x288b50:0x301,_0x427c2f:0x2f8,_0x279f90:0x2ca,_0x50c0e5:0x302,_0x2d8e90:0x302,_0x37d512:0x2ee,_0x4cdac6:0x1a1,_0x1edeb8:0x186,_0x469bd1:0x2e5,_0x2bd3b5:0x30d,_0x5ad525:0x2df,_0x344c0c:0x141,_0xcd025d:0x134,_0x40565f:0x327,_0x3adae2:0x309,_0xe14f2a:0x2ec,_0x3eb43c:0x15a,_0x1354f3:0x13d,_0x148b06:0x2dc,_0x1dd617:0x2f2,_0x5aab42:0x310,_0x352e40:0x2e3,_0x1f97a0:0x2f5,_0x50800f:0x2d3,_0x184516:0x2e0,_0x38208e:0x30a,_0x4659d8:0x2ef,_0x46bab2:0x13f,_0x7fe312:0x14a,_0x34c0e8:0x179,_0x45081c:0x31b,_0x1ad143:0x2ed,_0x1bebfb:0x305,_0x3fdca2:0x17d,_0x489627:0x2f4,_0x402647:0x2e8,_0x585c56:0x2e1,_0x34bf64:0x2d6,_0x2f5cb8:0x2e4,_0x4a33b0:0x303,_0x5d8a65:0x2c7,_0x20c2e8:0x2b9,_0x54483a:0x173,_0x51a1ba:0x328,_0x2858da:0x174,_0x1d75e2:0x15d,_0x4d65c7:0x170,_0x4fba29:0x13c,_0x2ca1f4:0x150,_0x4ce055:0x185,_0x5b3cb8:0x2d3,_0x4c6f0a:0x320,_0x232a3e:0x16a,_0x51fcf6:0x196,_0x119428:0x2f6,_0x333c61:0x31e,_0x104262:0x315,_0x37b13b:0x324,_0x5710c2:0x30f,_0x15804c:0x2b5,_0x42eeba:0x2d4,_0x1cc029:0x178,_0x2d8e63:0x305,_0x5f57b5:0x304,_0x40bcd1:0x147,_0x50a45d:0x312,_0x5f1c99:0x2e9,_0x1d5c47:0x2fe,_0x5d1da4:0x2d7},_0x50dd90={_0x5c13e1:0x1d8,_0x27380f:0x1cf,_0x4747ab:0x1be,_0x4af18b:0x353,_0x3c7da2:0x322},_0x2d2630={_0x5f20d3:0x76},_0x43c898={_0x36d391:0xdd},_0x47544a=[];function _0x35aff0(_0x46d3e4,_0x5ed026,_0x5f4b26,_0x586870){return _0x4fd3(_0x46d3e4-_0x43c898._0x36d391,_0x5f4b26);}for(const _0x5dfc41 of _0x54f1ec[_0x33cfed(_0x239756._0xa4fea9,_0x239756._0x20015d,_0x239756._0x48f74f,0x2fa)]){if(pushAssistantProviderState(_0x47544a,_0x5dfc41,_0x54f1ec))continue;const _0x490b19=[];for(const _0x2094d3 of normalizeContent(_0x5dfc41[_0x33cfed(0x302,_0x239756._0x258854,0x2d4,0x2f0)])){if(_0x2094d3[_0x33cfed(0x2e1,_0x239756._0x46a5d2,0x2e6,0x2e8)]==='text'){_0x490b19[_0x33cfed(0x30f,_0x239756._0x325063,_0x239756._0x5b3262,0x2ee)](_0x5dfc41['role']===_0x33cfed(_0x239756._0x504caf,0x2c4,_0x239756._0x5274c2,_0x239756._0x295093)?{'type':_0x33cfed(_0x239756._0x44fc8f,_0x239756._0x1de5df,0x319,0x310),'text':_0x2094d3[_0x33cfed(0x2df,0x2c5,0x2c8,_0x239756._0x3603ee)]}:{'type':_0x33cfed(_0x239756._0xde7e6e,0x2d0,_0x239756._0x2691b9,0x2e9),'text':_0x2094d3[_0x33cfed(_0x239756._0x12780f,_0x239756._0x11c568,_0x239756._0x4d065b,0x2d8)]});continue;}if(_0x2094d3[_0x33cfed(_0x239756._0x288b50,_0x239756._0x427c2f,_0x239756._0x279f90,0x2e8)]==='image'){_0x490b19[_0x33cfed(0x2f2,_0x239756._0x50c0e5,_0x239756._0x2d8e90,_0x239756._0x37d512)]({'type':_0x35aff0(0x180,_0x239756._0x4cdac6,_0x239756._0x1edeb8,0x192),'image_url':_0x33cfed(_0x239756._0x469bd1,0x2f1,_0x239756._0x2bd3b5,0x303)+_0x2094d3[_0x33cfed(_0x239756._0x4d065b,0x2c9,0x300,_0x239756._0x5ad525)][_0x35aff0(_0x239756._0x344c0c,0x14f,0x127,_0x239756._0xcd025d)]+_0x33cfed(_0x239756._0x40565f,0x302,0x31b,_0x239756._0x3adae2)+_0x2094d3['source'][_0x33cfed(0x2d1,0x2df,0x2da,0x2db)]});continue;}pushUserContentMessage(_0x47544a,_0x5dfc41[_0x33cfed(0x2cb,0x2df,0x2da,_0x239756._0xe14f2a)],_0x490b19[_0x35aff0(0x173,0x196,0x166,0x16b)](0x0));if(_0x2094d3[_0x35aff0(_0x239756._0x3eb43c,0x167,0x147,_0x239756._0x1354f3)]===_0x33cfed(_0x239756._0x148b06,0x2f0,_0x239756._0x1dd617,0x2ed)){if(!hasSerializableToolUse(_0x2094d3))continue;_0x47544a[_0x33cfed(_0x239756._0x5aab42,_0x239756._0x352e40,_0x239756._0x1f97a0,_0x239756._0x37d512)]({'type':_0x33cfed(_0x239756._0x50800f,_0x239756._0x184516,_0x239756._0x38208e,_0x239756._0x4659d8),'call_id':_0x2094d3['id'],'name':_0x2094d3['name'],'arguments':JSON[_0x35aff0(0x15c,_0x239756._0x46bab2,_0x239756._0x7fe312,_0x239756._0x34c0e8)](_0x2094d3[_0x33cfed(_0x239756._0x45081c,_0x239756._0x1ad143,0x30f,_0x239756._0x1bebfb)]??{})});continue;}if(_0x2094d3[_0x35aff0(0x15a,_0x239756._0x3fdca2,0x16b,0x155)]===_0x33cfed(_0x239756._0x489627,_0x239756._0x402647,0x302,_0x239756._0x585c56)){if(!hasSerializableToolResult(_0x2094d3))continue;const _0xf29d71=getToolResultText(_0x2094d3[_0x33cfed(_0x239756._0x34bf64,_0x239756._0x2f5cb8,0x2f4,0x2f0)]);_0x47544a[_0x33cfed(0x2d2,_0x239756._0x4a33b0,0x2e5,0x2ee)]({'type':_0x33cfed(_0x239756._0x5d8a65,_0x239756._0x20c2e8,_0x239756._0x1dd617,0x2d2),'call_id':_0x2094d3['tool_use_id'],'output':_0xf29d71});const _0x5a8ec0=getToolResultImages(_0x2094d3['content']);_0x5a8ec0['length']>0x0&&_0x47544a[_0x35aff0(0x160,_0x239756._0x54483a,0x145,_0x239756._0x7fe312)]({'type':_0x33cfed(_0x239756._0x46a5d2,_0x239756._0x51a1ba,_0x239756._0x5274c2,_0x239756._0x2bd3b5),'role':_0x35aff0(_0x239756._0x2858da,_0x239756._0x1d75e2,0x182,0x17f),'content':[{'type':_0x35aff0(0x15b,0x15d,0x160,_0x239756._0x4d65c7),'text':_0x35aff0(0x159,_0x239756._0x4fba29,_0x239756._0x2ca1f4,_0x239756._0x4fba29)+_0x2094d3[_0x35aff0(0x184,_0x239756._0x4ce055,0x16e,0x175)]+'.'},..._0x5a8ec0['map'](_0x122e79=>({'type':_0x33cfed(0x306,0x2f7,0x301,0x30e),'image_url':_0x35aff0(0x175,0x179,0x181,0x16b)+_0x122e79['source']['media_type']+_0x35aff0(0x17b,0x19b,0x170,0x159)+_0x122e79[_0x33cfed(0x2d3,0x2c5,0x2d6,0x2df)][_0x33cfed(0x2f9,0x2f1,0x2dc,0x2db)]}))]});}}pushUserContentMessage(_0x47544a,_0x5dfc41[_0x33cfed(0x2ea,_0x239756._0x5b3cb8,_0x239756._0x489627,_0x239756._0xe14f2a)],_0x490b19);}function _0x33cfed(_0x5ece68,_0x32e06c,_0x54677f,_0x2bf790){return _0x4fd3(_0x2bf790-0x26b,_0x5ece68);}return{...createOpenAiResponsesReasoning(_0x54f1ec),'model':_0x54f1ec[_0x33cfed(0x30c,_0x239756._0x4c6f0a,0x2fa,0x30a)],'instructions':systemToInstructions(_0x54f1ec[_0x35aff0(0x178,_0x239756._0x232a3e,_0x239756._0x51fcf6,0x189)]),'input':_0x47544a,..._0x54f1ec[_0x33cfed(_0x239756._0x119428,_0x239756._0x333c61,_0x239756._0x46a5d2,0x30f)]!==void 0x0?{'max_output_tokens':_0x54f1ec[_0x33cfed(_0x239756._0x104262,_0x239756._0x37b13b,0x319,_0x239756._0x5710c2)]}:{},'tools':_0x54f1ec[_0x33cfed(0x2b2,_0x239756._0x15804c,0x2d3,_0x239756._0x42eeba)][_0x35aff0(0x16b,0x173,_0x239756._0x1cc029,0x17d)](_0x3c78ce=>{const _0x1f67fd={_0x32f859:0x1e3,_0x1cc117:0x1a0};function _0x4e08c4(_0x3b6e16,_0x2315ec,_0x4fb64b,_0x959d3c){return _0x35aff0(_0x2315ec-_0x1f67fd._0x32f859,_0x2315ec-0xaa,_0x4fb64b,_0x959d3c-_0x1f67fd._0x1cc117);}function _0x18de0f(_0x5f5502,_0x438bce,_0x4ba15e,_0x1a89d9){return _0x35aff0(_0x438bce- -0x326,_0x438bce-0x1c1,_0x4ba15e,_0x1a89d9-_0x2d2630._0x5f20d3);}return{'type':_0x18de0f(-0x1bc,-_0x50dd90._0x5c13e1,-0x1c4,-0x1f3),'name':_0x3c78ce[_0x18de0f(-_0x50dd90._0x27380f,-0x1df,-_0x50dd90._0x4747ab,-0x1d5)],'description':_0x3c78ce['description'],'parameters':_0x3c78ce[_0x4e08c4(_0x50dd90._0x4af18b,0x335,_0x50dd90._0x3c7da2,0x324)]};}),..._0x54f1ec['outputFormat']?{'text':{'format':{'type':_0x33cfed(0x2da,0x2cd,0x2ed,0x2e3),'name':_0x54f1ec[_0x33cfed(0x31b,_0x239756._0x2d8e63,_0x239756._0x5f57b5,0x313)][_0x35aff0(_0x239756._0x40bcd1,_0x239756._0x4fba29,0x130,0x129)]??_0x33cfed(_0x239756._0x50a45d,0x30d,_0x239756._0x5f1c99,_0x239756._0x1d5c47),'schema':_0x54f1ec['outputFormat'][_0x33cfed(0x2c8,_0x239756._0x15804c,_0x239756._0x37d512,_0x239756._0x5d1da4)],'strict':_0x54f1ec['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5215ff(_0x3431b8,_0x48efcd,_0x409aee,_0x3de5ed){var _0x5bff47={_0x568ad5:0x240};return _0x3578(_0x409aee-_0x5bff47._0x568ad5,_0x48efcd);}function _0x271d23(_0x1ba1bd,_0xfa6eb,_0x59bfd3,_0x4f4937){return _0x3578(_0xfa6eb-0x282,_0x59bfd3);}(function(_0xa67a2d,_0x391f97){var _0xa84230={_0x7b6bff:0x310,_0x1d49ba:0x310,_0x3ad28c:0x303,_0x40d386:0x30b,_0x13aa24:0x315,_0x4a426e:0x317,_0x351b75:0x30d,_0x332871:0x30f,_0x39f487:0x315,_0x2e500c:0x314,_0x2596b9:0x2e2,_0x142331:0x305,_0xbbadeb:0x310,_0x569176:0x2de,_0x555a12:0x2e0,_0x2199b6:0x311,_0x5f55a2:0x307,_0x3d559a:0x322,_0xc59524:0x31f,_0x43b1cc:0x2cc,_0x2890b3:0x2c4,_0x3e1a81:0x2d5,_0x150416:0x2da,_0xc39a0f:0x2d6},_0x6d4703={_0x25c1ec:0x255};function _0x2c0beb(_0x50af47,_0x290e29,_0x4f22d7,_0x3480b3){return _0x3578(_0x4f22d7-0x292,_0x50af47);}function _0x3bfc77(_0x59aa76,_0x53f0b2,_0x18bc67,_0xb6f20){return _0x3578(_0x59aa76-_0x6d4703._0x25c1ec,_0xb6f20);}var _0x19172f=_0xa67a2d();while(!![]){try{var _0x493656=-parseInt(_0x2c0beb(_0xa84230._0x7b6bff,0x2fa,0x307,0x307))/0x1*(parseInt(_0x2c0beb(_0xa84230._0x1d49ba,_0xa84230._0x3ad28c,_0xa84230._0x40d386,_0xa84230._0x13aa24))/0x2)+-parseInt(_0x2c0beb(_0xa84230._0x4a426e,0x303,0x30e,_0xa84230._0x351b75))/0x3+-parseInt(_0x2c0beb(0x318,_0xa84230._0x332871,_0xa84230._0x39f487,_0xa84230._0x2e500c))/0x4*(parseInt(_0x3bfc77(0x2e1,_0xa84230._0x2596b9,0x2d7,0x2d7))/0x5)+-parseInt(_0x2c0beb(_0xa84230._0x142331,_0xa84230._0xbbadeb,0x308,0x2ff))/0x6*(parseInt(_0x3bfc77(_0xa84230._0x569176,_0xa84230._0x555a12,0x2e1,0x2d6))/0x7)+parseInt(_0x2c0beb(0x312,0x30d,_0xa84230._0x2199b6,_0xa84230._0x5f55a2))/0x8+parseInt(_0x2c0beb(0x31b,0x316,0x31d,0x312))/0x9*(-parseInt(_0x2c0beb(_0xa84230._0x3d559a,_0xa84230._0x4a426e,0x31f,_0xa84230._0xc59524))/0xa)+parseInt(_0x3bfc77(_0xa84230._0x43b1cc,_0xa84230._0x2890b3,0x2d3,0x2d2))/0xb*(parseInt(_0x3bfc77(0x2d2,_0xa84230._0x3e1a81,_0xa84230._0x150416,_0xa84230._0xc39a0f))/0xc);if(_0x493656===_0x391f97)break;else _0x19172f['push'](_0x19172f['shift']());}catch(_0x3048ba){_0x19172f['push'](_0x19172f['shift']());}}}(_0xbf3a,0xdf2f6));var OperationAbortedError=class extends Error{[_0x5215ff(0x2c4,0x2c4,0x2c2,0x2b8)]=_0x5215ff(0x2b8,0x2bf,0x2c0,0x2cd);constructor(_0x50b5c7=_0x5215ff(0x2d5,0x2c8,0x2c8,0x2d0)){var _0x44ab02={_0x26fa99:0x17f,_0x5b7d81:0x185,_0xccfe0e:0x17e,_0x17658d:0x188,_0x2bf5c6:0x181},_0x1a5bfe={_0x3c4c6c:0x4b},_0x2fc638={_0x47dc7f:0xb2};function _0x417bb2(_0x31a0c5,_0x3ababf,_0x369d83,_0x2d8732){return _0x271d23(_0x31a0c5-_0x2fc638._0x47dc7f,_0x369d83- -0x1f4,_0x3ababf,_0x2d8732-0xf7);}super(_0x50b5c7);function _0x5a20be(_0x3d252d,_0x2236c7,_0x550d2e,_0x38da40){return _0x271d23(_0x3d252d-0x53,_0x3d252d- -0x481,_0x38da40,_0x38da40-_0x1a5bfe._0x3c4c6c);}this[_0x5a20be(-0x179,-_0x44ab02._0x26fa99,-_0x44ab02._0x5b7d81,-0x182)]=_0x5a20be(-_0x44ab02._0xccfe0e,-0x17d,-_0x44ab02._0x17658d,-_0x44ab02._0x2bf5c6);}};function _0xbf3a(){var _0x561ab2=['t3bLCMf0Aw9UigfIB3j0zwq','ntGXmez4sK5Vvq','BgvUz3rO','mZzSreTJDw0','nZu0ote1ue50uLDs','mtC3mty3mg9uCNDNrq','nZmZt3LMqwDt','mty4nMfyyxr3Bq','mtfUALrgsxK','ywjVCNrLza','ndiYmMPeCvHkDa','ywrKrxzLBNrmAxn0zw5LCG','ywjVCNq','mJa2ndG4mNjwt1v5vq','ndK5nJq0ndHtDhjgwuW','C3rYAw5N','nJmYmdaWzLDuEMPP','qujpuLrFrvjs','qwjVCNrfCNjVCG','y29Kzq','ne9Ts2roBW','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvHC29U','BMfTzq','BwvZC2fNzq'];_0xbf3a=function(){return _0x561ab2;};return _0xbf3a();}function toAbortError(_0x380ca0){var _0x5c4089={_0x4c9fd7:0x1eb,_0xe32def:0x1de,_0x2f2bd9:0x1e4,_0x171c1b:0x1e6,_0x2a1152:0x1ed,_0x341d2c:0xd1,_0x5be687:0xc6},_0x42ee19={_0x167b1b:0x390};if(isAbortError(_0x380ca0))return _0x380ca0;function _0xf6a712(_0x510203,_0x1d4f50,_0x30126c,_0x38ce64){return _0x5215ff(_0x510203-0xef,_0x38ce64,_0x30126c- -0xd8,_0x38ce64-0xf1);}if(_0x380ca0 instanceof Error)return new OperationAbortedError(_0x380ca0[_0xf6a712(0x1ee,_0x5c4089._0x4c9fd7,0x1ef,0x1f9)]);function _0x14b5ea(_0x5a9921,_0x22f3d8,_0x2b9f2d,_0x249848){return _0x5215ff(_0x5a9921-0x1d3,_0x249848,_0x22f3d8- -_0x42ee19._0x167b1b,_0x249848-0xf2);}if(typeof _0x380ca0===_0xf6a712(_0x5c4089._0xe32def,_0x5c4089._0x2f2bd9,_0x5c4089._0x171c1b,_0x5c4089._0x2a1152)&&_0x380ca0[_0x14b5ea(-_0x5c4089._0x341d2c,-_0x5c4089._0x5be687,-0xc0,-0xc4)]>0x0)return new OperationAbortedError(_0x380ca0);return new OperationAbortedError();}function _0x3578(_0x2f0439,_0x3006ac){_0x2f0439=_0x2f0439-0x75;var _0xbf3aed=_0xbf3a();var _0x357821=_0xbf3aed[_0x2f0439];if(_0x3578['DfElmg']===undefined){var _0x6a121e=function(_0x1ea0a1){var _0x257764='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x50b5c7='',_0x380ca0='';for(var _0x4ccee7=0x0,_0x298b64,_0x31d970,_0x5d5c0c=0x0;_0x31d970=_0x1ea0a1['charAt'](_0x5d5c0c++);~_0x31d970&&(_0x298b64=_0x4ccee7%0x4?_0x298b64*0x40+_0x31d970:_0x31d970,_0x4ccee7++%0x4)?_0x50b5c7+=String['fromCharCode'](0xff&_0x298b64>>(-0x2*_0x4ccee7&0x6)):0x0){_0x31d970=_0x257764['indexOf'](_0x31d970);}for(var _0x66bb2e=0x0,_0x5645e5=_0x50b5c7['length'];_0x66bb2e<_0x5645e5;_0x66bb2e++){_0x380ca0+='%'+('00'+_0x50b5c7['charCodeAt'](_0x66bb2e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x380ca0);};_0x3578['gllTtc']=_0x6a121e,_0x3578['owRXyI']={},_0x3578['DfElmg']=!![];}var _0x178997=_0xbf3aed[0x0],_0x2d8bb0=_0x2f0439+_0x178997,_0x58c859=_0x3578['owRXyI'][_0x2d8bb0];return!_0x58c859?(_0x357821=_0x3578['gllTtc'](_0x357821),_0x3578['owRXyI'][_0x2d8bb0]=_0x357821):_0x357821=_0x58c859,_0x357821;}function isAbortError(_0x4ccee7){var _0x15df4b={_0x253118:0xa2,_0x38dc14:0xb5,_0x169414:0xa9,_0x257787:0xa4,_0x43631c:0xad,_0x1adc7e:0xa6,_0x4a54f4:0xb1,_0x5e34be:0xb8,_0x4dc9c8:0xad},_0x261194={_0x25ad17:0x24},_0x3e5c7f={_0xaa61ee:0x3fd};function _0xd7b599(_0x4f4f74,_0x276ed4,_0x1ffd4f,_0x443a0d){return _0x271d23(_0x4f4f74-0x1ee,_0x1ffd4f- -_0x3e5c7f._0xaa61ee,_0x4f4f74,_0x443a0d-0x160);}function _0x27d85c(_0x94c76,_0x5bd2d8,_0x501221,_0x53a7ac){return _0x5215ff(_0x94c76-0x127,_0x94c76,_0x53a7ac- -0x36f,_0x53a7ac-_0x261194._0x25ad17);}return _0x4ccee7 instanceof OperationAbortedError||_0x4ccee7 instanceof Error&&(_0x4ccee7[_0x27d85c(-_0x15df4b._0x253118,-0xb4,-_0x15df4b._0x38dc14,-_0x15df4b._0x169414)]==='AbortError'||_0x27d85c(-0xb1,-_0x15df4b._0x257787,-0xa9,-_0x15df4b._0x43631c)in _0x4ccee7&&_0x4ccee7[_0x27d85c(-_0x15df4b._0x1adc7e,-_0x15df4b._0x4a54f4,-_0x15df4b._0x5e34be,-_0x15df4b._0x4dc9c8)]==='ABORT_ERR');}function throwIfAborted(_0x298b64){var _0x1927c6={_0x365ac4:0x237,_0xb6d5c6:0x234},_0x32c648={_0x25ec9c:0xf8,_0x23a2ba:0x4f1},_0x1dc07b={_0x465167:0xda,_0x5b3af8:0x1e};function _0x3ab7ee(_0x157f82,_0x58579d,_0x2cf958,_0x4fc9b9){return _0x271d23(_0x157f82-0x18f,_0x58579d- -_0x1dc07b._0x465167,_0x157f82,_0x4fc9b9-_0x1dc07b._0x5b3af8);}function _0x590d22(_0x534b84,_0xedb569,_0x3aeeaa,_0x59e381){return _0x5215ff(_0x534b84-_0x32c648._0x25ec9c,_0x3aeeaa,_0x534b84- -_0x32c648._0x23a2ba,_0x59e381-0x56);}if(!_0x298b64?.[_0x590d22(-0x239,-0x246,-0x246,-0x230)])return;throw toAbortError(_0x298b64[_0x590d22(-0x22c,-_0x1927c6._0x365ac4,-0x228,-_0x1927c6._0xb6d5c6)]);}function addAbortListener(_0x31d970,_0x5d5c0c){var _0xc46c06={_0x55abda:0x195,_0x5dab9e:0x19e,_0x5437cb:0x1de,_0xa283ed:0x1ed,_0x1e83be:0x1ef,_0xcdca07:0x19e,_0x360b82:0x198,_0x38d603:0x1a4,_0x55c1e6:0x18f},_0xe564ae={_0x378732:0x1dc,_0x19f52b:0x1df},_0x161b0b={_0x5c75ec:0x55},_0xe3f4d2={_0x56cc32:0xda,_0x5bdbb7:0x123};if(!_0x31d970)return()=>{};if(_0x31d970[_0x5b8d6a(0x1a2,_0xc46c06._0x55abda,_0xc46c06._0x5dab9e,0x19e)])return _0x5d5c0c(),()=>{};const _0x66bb2e=()=>{_0x5d5c0c();};function _0x5b8d6a(_0x290b53,_0x1a6850,_0x31a799,_0x519cd1){return _0x5215ff(_0x290b53-_0xe3f4d2._0x56cc32,_0x290b53,_0x1a6850- -_0xe3f4d2._0x5bdbb7,_0x519cd1-0x18f);}function _0x503168(_0x591f70,_0x42233e,_0x1cb450,_0x5bcea7){return _0x271d23(_0x591f70-0x99,_0x591f70- -0x4e6,_0x5bcea7,_0x5bcea7-_0x161b0b._0x5c75ec);}return _0x31d970[_0x503168(-0x1ea,-_0xc46c06._0x5437cb,-_0xc46c06._0xa283ed,-_0xc46c06._0x1e83be)](_0x5b8d6a(_0xc46c06._0xcdca07,_0xc46c06._0x360b82,_0xc46c06._0x38d603,_0xc46c06._0x55c1e6),_0x66bb2e,{'once':!![]}),()=>{var _0x564796={_0x357c76:0x9};function _0xc6b23f(_0xae5dcb,_0x53708a,_0x527d9c,_0x13b0f0){return _0x503168(_0x13b0f0-_0x564796._0x357c76,_0x53708a-0x87,_0x527d9c-0xc9,_0x527d9c);}_0x31d970[_0xc6b23f(-_0xe564ae._0x378732,-_0xe564ae._0x19f52b,-0x1e3,-0x1d7)]('abort',_0x66bb2e);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|
package/dist/chunk-YNOIG4FD.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3cd041,_0x2e4cfd){const _0x28dc21={_0x3dd5c1:0x22,_0x3f0bed:0x37,_0x58fa10:0xb,_0x1d30ab:0x19,_0xa48ed5:0x7,_0x19edff:0x2f,_0x3725af:0x20,_0x452d40:0x332,_0x45a06c:0x349,_0x3f2e20:0x34e,_0x35ceb0:0x1,_0x2e24eb:0x10,_0x3df9df:0x334,_0x32e6e9:0xa,_0x4da18e:0x34d,_0x2eba41:0x36f,_0xe5ad01:0x38a,_0x2bfbb1:0x35f,_0x47e8a6:0x20,_0x19c9dd:0x3,_0x2614f1:0x1b,_0x536e2e:0x31},_0x253c2a={_0x4d506f:0x153};function _0x5caee3(_0x5a9fe4,_0x3e82c4,_0x54fbf8,_0x1bdd29){return _0x5de3(_0x3e82c4-_0x253c2a._0x4d506f,_0x54fbf8);}function _0x5915ac(_0x4f757b,_0x1aeaae,_0x571365,_0x4ff180){return _0x5de3(_0x4f757b- -0x1fd,_0x571365);}const _0x2f2eb7=_0x3cd041();while(!![]){try{const _0x51a9b9=-parseInt(_0x5915ac(_0x28dc21._0x3dd5c1,_0x28dc21._0x3f0bed,_0x28dc21._0x58fa10,0x30))/0x1*(parseInt(_0x5915ac(_0x28dc21._0x1d30ab,0x32,_0x28dc21._0xa48ed5,_0x28dc21._0x19edff))/0x2)+parseInt(_0x5915ac(-0x1b,-0x17,-_0x28dc21._0x3725af,-0x3b))/0x3*(parseInt(_0x5caee3(_0x28dc21._0x452d40,_0x28dc21._0x45a06c,_0x28dc21._0x3f2e20,0x348))/0x4)+parseInt(_0x5915ac(0x17,-_0x28dc21._0x35ceb0,0xf,0x34))/0x5*(parseInt(_0x5915ac(-_0x28dc21._0x2e24eb,0xf,-0x2a,-0x16))/0x6)+-parseInt(_0x5caee3(0x31f,_0x28dc21._0x3df9df,0x34e,0x32b))/0x7+-parseInt(_0x5caee3(0x369,0x34c,0x35c,0x36b))/0x8+-parseInt(_0x5915ac(-0x15,-_0x28dc21._0x32e6e9,-0x23,-0x2))/0x9+parseInt(_0x5caee3(_0x28dc21._0x4da18e,_0x28dc21._0x2eba41,_0x28dc21._0xe5ad01,_0x28dc21._0x2bfbb1))/0xa*(parseInt(_0x5915ac(-_0x28dc21._0x47e8a6,-_0x28dc21._0x19c9dd,-_0x28dc21._0x2614f1,-_0x28dc21._0x536e2e))/0xb);if(_0x51a9b9===_0x2e4cfd)break;else _0x2f2eb7['push'](_0x2f2eb7['shift']());}catch(_0x1fc0ff){_0x2f2eb7['push'](_0x2f2eb7['shift']());}}}(_0x586c,0xa892f));function createTextBlock(_0x5f58d9){const _0x599c69={_0x193f25:0xa2,_0x554956:0xbf};function _0x2104b9(_0x27ebce,_0x5e562b,_0x3c8e80,_0x4c45bc){return _0x5de3(_0x3c8e80- -0x2c8,_0x5e562b);}return{'type':_0x2104b9(-0xd3,-_0x599c69._0x193f25,-_0x599c69._0x554956,-0xd5),'text':_0x5f58d9};}function normalizeTextBlock(_0x388483){const _0x420b84={_0x44b703:0x47c};function _0x37d3ae(_0xbbfeeb,_0x2b387e,_0x598a8b,_0x3559fc){return _0x5de3(_0x598a8b-0x28e,_0xbbfeeb);}return createTextBlock(_0x388483[_0x37d3ae(_0x420b84._0x44b703,0x49c,0x497,0x487)]??'');}function normalizeContent(_0x48f571){const _0x4992a6={_0x48858d:0x551,_0x73ae20:0x542,_0x1d41e4:0x55d,_0x48990d:0x57b},_0xbbb6a7={_0x5e19e4:0x449,_0x51c67a:0x460,_0x1120d4:0x58},_0x4ca5a5={_0x1935d2:0x10b},_0x564958={_0xda5cc0:0x351};function _0x5b0620(_0x2aaac4,_0x31efdc,_0x1592b3,_0x8cc3a){return _0x5de3(_0x31efdc-_0x564958._0xda5cc0,_0x1592b3);}if(typeof _0x48f571==='string')return[createTextBlock(_0x48f571)];function _0x23a16e(_0x37a2e6,_0x415633,_0x38d5c2,_0x3940f4){return _0x5de3(_0x37a2e6-0x200,_0x415633);}if(!Array[_0x5b0620(0x554,_0x4992a6._0x48858d,_0x4992a6._0x73ae20,0x554)](_0x48f571))return[];return _0x48f571[_0x5b0620(0x578,0x56c,_0x4992a6._0x1d41e4,_0x4992a6._0x48990d)](_0x24c515=>{const _0x639384={_0x5927e0:0xe3};if(_0x24c515[_0x5ab3c8(0x433,_0xbbb6a7._0x5e19e4,_0xbbb6a7._0x51c67a,0x434)]===_0xf780cf(_0xbbb6a7._0x1120d4,0x50,0x3c,0x2c))return normalizeTextBlock(_0x24c515);function _0xf780cf(_0x4c1d5c,_0x35e81a,_0x57bea1,_0x1c3be7){return _0x5b0620(_0x4c1d5c-0x72,_0x57bea1- -0x51e,_0x1c3be7,_0x1c3be7-_0x639384._0x5927e0);}function _0x5ab3c8(_0xe6e6ff,_0xb077a4,_0x5e0ebf,_0x536e80){return _0x5b0620(_0xe6e6ff-0x170,_0xb077a4- -_0x4ca5a5._0x1935d2,_0xe6e6ff,_0x536e80-0x151);}return structuredClone(_0x24c515);});}function _0x5de3(_0x2ccd3a,_0x4ad46d){_0x2ccd3a=_0x2ccd3a-0x1dc;const _0x586cf3=_0x586c();let _0x5de39f=_0x586cf3[_0x2ccd3a];if(_0x5de3['hCDROM']===undefined){var _0x241180=function(_0x42f9d9){const _0x36fa11='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f58d9='',_0x388483='';for(let _0x48f571=0x0,_0x24c515,_0x334b64,_0x71edfc=0x0;_0x334b64=_0x42f9d9['charAt'](_0x71edfc++);~_0x334b64&&(_0x24c515=_0x48f571%0x4?_0x24c515*0x40+_0x334b64:_0x334b64,_0x48f571++%0x4)?_0x5f58d9+=String['fromCharCode'](0xff&_0x24c515>>(-0x2*_0x48f571&0x6)):0x0){_0x334b64=_0x36fa11['indexOf'](_0x334b64);}for(let _0x3100d4=0x0,_0x46ce95=_0x5f58d9['length'];_0x3100d4<_0x46ce95;_0x3100d4++){_0x388483+='%'+('00'+_0x5f58d9['charCodeAt'](_0x3100d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x388483);};_0x5de3['YZFTrw']=_0x241180,_0x5de3['aCJBoS']={},_0x5de3['hCDROM']=!![];}const _0x315c13=_0x586cf3[0x0],_0x176868=_0x2ccd3a+_0x315c13,_0xefd494=_0x5de3['aCJBoS'][_0x176868];return!_0xefd494?(_0x5de39f=_0x5de3['YZFTrw'](_0x5de39f),_0x5de3['aCJBoS'][_0x176868]=_0x5de39f):_0x5de39f=_0xefd494,_0x5de39f;}function normalizeSystem(_0x334b64=[]){const _0x450e11={_0x7fb984:0xfc,_0xf767f9:0x11a,_0x56b011:0x122,_0x276390:0x111},_0x2e8486={_0x189772:0x339};function _0x165a4d(_0x2736d5,_0x3f4e16,_0x2226a1,_0x128052){return _0x5de3(_0x2226a1-_0x2e8486._0x189772,_0x3f4e16);}function _0x3fa8aa(_0x10f518,_0x289bba,_0x3858a9,_0x5ce8f5){return _0x5de3(_0x289bba- -0xd7,_0x5ce8f5);}return normalizeContent(_0x334b64)[_0x3fa8aa(_0x450e11._0x7fb984,_0x450e11._0xf767f9,_0x450e11._0x56b011,_0x450e11._0x276390)](_0x71edfc=>_0x71edfc[_0x3fa8aa(0x11d,0x12c,0x10d,0x11e)]===_0x3fa8aa(0x13f,0x132,0x120,0x13a));}function isProviderStateCompatible(_0x3100d4,_0x46ce95){const _0x54b403={_0x482977:0x84,_0x41bf93:0x68,_0x18c1bf:0x24,_0x42edab:0x43,_0x154bb7:0x92,_0x8e5608:0xc2},_0x427acf={_0x3d6e99:0x256};function _0x16409e(_0x18965c,_0xe7bf8f,_0x41ef09,_0x5e5426){return _0x5de3(_0x5e5426- -_0x427acf._0x3d6e99,_0xe7bf8f);}const _0x5eea8a=_0x3100d4['providerState']?.[_0x16409e(-0x82,-_0x54b403._0x482977,-0x85,-_0x54b403._0x41bf93)];function _0x224edf(_0x2efd6e,_0x20260d,_0x166cfc,_0x2a3d18){return _0x5de3(_0x2efd6e- -0x158,_0x20260d);}return _0x5eea8a===void 0x0||_0x5eea8a===_0x46ce95[_0x16409e(-_0x54b403._0x18c1bf,-0x3b,-0x34,-_0x54b403._0x42edab)]['modelIdentity']||_0x5eea8a===_0x46ce95[_0x224edf(0xaa,_0x54b403._0x154bb7,0x9b,_0x54b403._0x8e5608)];}function normalizeMessage(_0x3b9516){const _0x14e476={_0x53905f:0x2c8,_0x31346e:0x2b7,_0x5d73d:0x2ba,_0x38ae31:0x2c1,_0x2c9862:0x2c6,_0x96bce4:0x2b3,_0x44580b:0x2a5,_0x21120b:0x2aa,_0x1fa887:0x287,_0x2cafa4:0x2a5},_0x47a69d={_0x4f6274:0xba};function _0x152639(_0x45ba02,_0x29c973,_0x213417,_0x71bbf6){return _0x5de3(_0x213417-0x8d,_0x71bbf6);}function _0x2dc68f(_0x492550,_0x11ae28,_0x3f2b01,_0x5822ff){return _0x5de3(_0x5822ff-_0x47a69d._0x4f6274,_0x11ae28);}return{...typeof _0x3b9516['id']===_0x2dc68f(_0x14e476._0x53905f,0x2a4,0x2b0,_0x14e476._0x31346e)?{'id':_0x3b9516['id']}:{},'role':_0x3b9516[_0x152639(0x2a6,0x2bc,0x29b,_0x14e476._0x5d73d)],'content':normalizeContent(_0x3b9516['content']),..._0x3b9516[_0x2dc68f(_0x14e476._0x38ae31,_0x14e476._0x2c9862,_0x14e476._0x96bce4,_0x14e476._0x44580b)]?{'providerState':structuredClone(_0x3b9516[_0x2dc68f(_0x14e476._0x21120b,_0x14e476._0x1fa887,0x291,_0x14e476._0x2cafa4)])}:{}};}function compileRequest(_0x4e178c){const _0x561a51={_0x255ee8:0x417,_0x258a42:0x38a,_0x41580c:0x371,_0x569caa:0x3a0,_0x1f88ff:0x385,_0x349ba3:0x393,_0x372dd8:0x38e,_0x2a3ee4:0x3ae,_0x56fa8e:0x399,_0x5b65b9:0x377,_0x15f92f:0x398,_0x114799:0x396,_0x186be2:0x425,_0x5edbb5:0x440,_0x4d6c11:0x378,_0x19958b:0x396,_0x54d9df:0x434,_0x28a380:0x43f,_0x2ab86b:0x44b,_0x28db16:0x3a7,_0x41f94f:0x397,_0xdc1919:0x388,_0x2b3a11:0x41f,_0x3d3b3d:0x42a},_0x3298a7={_0x31edfa:0x235},_0x5b5c5a={_0x53f2f2:0x193};function _0x8f9e7d(_0x20e524,_0x488304,_0xafa9cd,_0xec4ad5){return _0x5de3(_0x20e524-_0x5b5c5a._0x53f2f2,_0xec4ad5);}function _0x5ba8ae(_0x3956f8,_0x56e4b7,_0x13a361,_0x4f0da6){return _0x5de3(_0x4f0da6-_0x3298a7._0x31edfa,_0x3956f8);}return{'model':_0x4e178c[_0x5ba8ae(0x43f,_0x561a51._0x255ee8,0x439,0x437)]??_0x8f9e7d(_0x561a51._0x258a42,_0x561a51._0x41580c,0x373,_0x561a51._0x569caa),..._0x4e178c[_0x8f9e7d(0x38e,_0x561a51._0x1f88ff,_0x561a51._0x349ba3,0x39b)]!==void 0x0?{'max_tokens':_0x4e178c[_0x8f9e7d(_0x561a51._0x372dd8,0x392,0x389,_0x561a51._0x2a3ee4)]}:{},..._0x4e178c[_0x8f9e7d(0x377,_0x561a51._0x56fa8e,0x378,_0x561a51._0x41580c)]?{'reasoning':structuredClone(_0x4e178c[_0x8f9e7d(_0x561a51._0x5b65b9,_0x561a51._0x15f92f,0x379,_0x561a51._0x114799)])}:{},'system':normalizeSystem(_0x4e178c[_0x5ba8ae(0x432,_0x561a51._0x186be2,0x457,_0x561a51._0x5edbb5)]),'messages':_0x4e178c[_0x8f9e7d(_0x561a51._0x4d6c11,0x385,_0x561a51._0x19958b,0x362)][_0x5ba8ae(_0x561a51._0x54d9df,_0x561a51._0x28a380,_0x561a51._0x2ab86b,0x450)](normalizeMessage),'tools':structuredClone(_0x4e178c[_0x8f9e7d(0x3ab,_0x561a51._0x28db16,_0x561a51._0x41f94f,0x3a0)]??[]),'metadata':{'session_id':_0x4e178c[_0x8f9e7d(0x399,_0x561a51._0xdc1919,0x37d,0x3bb)],'turn_id':_0x4e178c[_0x5ba8ae(0x44a,_0x561a51._0x2b3a11,0x41d,_0x561a51._0x3d3b3d)]}};}function toChatRequest(_0x5cde43){const _0x3e9d6e={_0x16d1df:0x56d,_0x2da4c7:0x582,_0x5863e0:0x586,_0x78d719:0x4f6,_0x508248:0x4e3,_0x3e0578:0x4e6,_0x4ffe2c:0x559,_0x2e35fc:0x57f,_0x928baf:0x517,_0x3e2e42:0x514,_0x1572c7:0x598,_0x3f9569:0x572,_0x485f7e:0x56c,_0x5452d7:0x55e,_0x4c1356:0x55b,_0x2926bd:0x546,_0xe64faf:0x564,_0x252ce3:0x567,_0x2616b5:0x4f9,_0x337b71:0x510,_0x5a3597:0x56f,_0x220fa0:0x57e,_0x5d56cc:0x4e5,_0x262ea0:0x4f9,_0x2dccf8:0x505,_0x505bbb:0x508,_0x59ccf5:0x4c1,_0x280d91:0x4d7,_0x47c509:0x4e8,_0x15fcf7:0x571,_0x3b3155:0x577,_0x587cfc:0x4e8,_0x19808c:0x4b8,_0x3bd114:0x591},_0x28ad76={_0x21d3ff:0x2fb},_0x2549c8={_0x118530:0x36b};function _0x5b2919(_0x157912,_0x65152d,_0x4d1463,_0x471fce){return _0x5de3(_0x65152d-_0x2549c8._0x118530,_0x471fce);}function _0x2fb866(_0x4c1670,_0x5db78c,_0xf172e6,_0x4816f3){return _0x5de3(_0xf172e6-_0x28ad76._0x21d3ff,_0x4c1670);}return{'model':_0x5cde43[_0x5b2919(0x581,_0x3e9d6e._0x16d1df,_0x3e9d6e._0x2da4c7,0x55e)],..._0x5cde43[_0x5b2919(_0x3e9d6e._0x5863e0,0x566,0x56a,0x56e)]!==void 0x0?{'maxTokens':_0x5cde43[_0x2fb866(_0x3e9d6e._0x78d719,0x4e5,0x4f6,_0x3e9d6e._0x508248)]}:{},..._0x5cde43[_0x2fb866(_0x3e9d6e._0x3e0578,0x4f0,0x4df,0x4d3)]?{'reasoning':structuredClone(_0x5cde43['reasoning'])}:{},'system':structuredClone(_0x5cde43[_0x5b2919(0x573,0x576,_0x3e9d6e._0x4ffe2c,_0x3e9d6e._0x2e35fc)]),'messages':structuredClone(_0x5cde43['messages']),'tools':structuredClone(_0x5cde43[_0x2fb866(_0x3e9d6e._0x928baf,0x530,0x513,_0x3e9d6e._0x3e2e42)]),'metadata':{'sessionId':_0x5cde43[_0x5b2919(_0x3e9d6e._0x1572c7,0x57e,_0x3e9d6e._0x3f9569,_0x3e9d6e._0x485f7e)][_0x5b2919(_0x3e9d6e._0x5452d7,_0x3e9d6e._0x4c1356,_0x3e9d6e._0x2926bd,_0x3e9d6e._0xe64faf)],'turnId':_0x5cde43['metadata'][_0x5b2919(0x55e,_0x3e9d6e._0x252ce3,0x54b,0x57a)],..._0x5cde43[_0x2fb866(_0x3e9d6e._0x2616b5,0x4f7,0x50e,0x510)][_0x2fb866(0x50e,_0x3e9d6e._0x337b71,0x4f9,0x4dc)]!==void 0x0?{'modelIdentity':_0x5cde43[_0x5b2919(_0x3e9d6e._0x5a3597,_0x3e9d6e._0x220fa0,0x587,0x590)][_0x2fb866(0x507,_0x3e9d6e._0x5d56cc,_0x3e9d6e._0x262ea0,0x516)]}:{},..._0x5cde43[_0x2fb866(_0x3e9d6e._0x2dccf8,0x505,0x50e,_0x3e9d6e._0x505bbb)][_0x2fb866(_0x3e9d6e._0x59ccf5,0x4b8,_0x3e9d6e._0x280d91,_0x3e9d6e._0x47c509)]!==void 0x0?{'pricingProviderId':_0x5cde43[_0x5b2919(_0x3e9d6e._0x15fcf7,0x57e,0x576,_0x3e9d6e._0x3b3155)][_0x2fb866(0x4eb,_0x3e9d6e._0x587cfc,0x4d7,_0x3e9d6e._0x19808c)]}:{}},..._0x5cde43[_0x5b2919(0x563,0x577,_0x3e9d6e._0x3bd114,0x556)]?{'outputFormat':structuredClone(_0x5cde43['outputFormat'])}:{}};}function toModelRequest(_0x5e3f90){const _0x5003f6={_0x23d06d:0x72,_0x48b683:0x8b,_0xd94700:0x6c,_0x180845:0x57,_0x1eb16e:0x463,_0x483cba:0x471,_0x8ca088:0x67,_0x5d87ba:0x445,_0x431048:0x457,_0x56e615:0x7d,_0xa3c17a:0x468,_0x1b6287:0x467,_0xed13d1:0x446,_0x3ca64f:0x43c,_0x4f6582:0x44e,_0x2a66f0:0x433,_0x2f34aa:0x44d,_0x5c128f:0x471,_0x16ef55:0x91,_0x55325f:0x78,_0x5b7209:0x7b},_0x42f347={_0x464f78:0x284};function _0x256bfd(_0x1a191e,_0x10a44d,_0x3c549d,_0x4f4759){return _0x5de3(_0x10a44d- -_0x42f347._0x464f78,_0x3c549d);}function _0x4bde78(_0x521431,_0x3f2836,_0x458297,_0x2d7601){return _0x5de3(_0x3f2836-0x250,_0x2d7601);}return{'model':_0x5e3f90[_0x256bfd(-0x6b,-0x82,-0x91,-0x9f)],..._0x5e3f90['maxTokens']!==void 0x0?{'max_tokens':_0x5e3f90[_0x256bfd(-_0x5003f6._0x23d06d,-0x73,-0x7b,-0x93)]}:{},..._0x5e3f90['reasoning']?{'reasoning':structuredClone(_0x5e3f90['reasoning'])}:{},'system':structuredClone(_0x5e3f90[_0x256bfd(-_0x5003f6._0x48b683,-0x79,-_0x5003f6._0xd94700,-_0x5003f6._0x180845)]),'messages':structuredClone(_0x5e3f90['messages']),'tools':structuredClone(_0x5e3f90[_0x4bde78(0x457,0x468,0x474,0x459)]),'metadata':{'session_id':_0x5e3f90[_0x4bde78(0x450,_0x5003f6._0x1eb16e,_0x5003f6._0x483cba,0x46b)]['sessionId'],'turn_id':_0x5e3f90[_0x256bfd(-_0x5003f6._0x8ca088,-0x71,-0x5f,-0x53)][_0x4bde78(0x438,_0x5003f6._0x5d87ba,_0x5003f6._0x431048,0x43f)],..._0x5e3f90[_0x256bfd(-_0x5003f6._0x56e615,-0x71,-0x7c,-0x73)][_0x4bde78(0x487,0x467,0x45c,_0x5003f6._0xa3c17a)]!==void 0x0?{'model_identity':_0x5e3f90['metadata'][_0x4bde78(0x466,_0x5003f6._0x1b6287,0x488,_0x5003f6._0xed13d1)]}:{},..._0x5e3f90['metadata'][_0x4bde78(_0x5003f6._0x3ca64f,0x433,_0x5003f6._0x4f6582,0x428)]!==void 0x0?{'pricing_provider_id':_0x5e3f90['metadata'][_0x4bde78(0x451,_0x5003f6._0x2a66f0,0x441,_0x5003f6._0x2f34aa)]}:{}},..._0x5e3f90[_0x4bde78(0x45a,0x45c,_0x5003f6._0x5c128f,0x46e)]?{'outputFormat':structuredClone(_0x5e3f90[_0x256bfd(-_0x5003f6._0x16ef55,-_0x5003f6._0x55325f,-0x90,-_0x5003f6._0x5b7209)])}:{}};}function toProviderModelRequest(_0x29dd8b){const _0x160740={_0x5c65d2:0x3cc,_0x4ac632:0x1a6,_0x215b90:0x3f3,_0x47cab5:0x1b7,_0x49e315:0x1c1,_0x346874:0x19f,_0x28f13e:0x199},_0x15dd2a={_0x34ba40:0x1c1},_0x108863={_0x4523d5:0x3b7};function _0x2f498f(_0x611807,_0x2b5654,_0x5e28e8,_0x30032f){return _0x5de3(_0x5e28e8- -_0x108863._0x4523d5,_0x2b5654);}function _0x545155(_0xcb4f85,_0x275f69,_0x2c3616,_0x4fa673){return _0x5de3(_0x275f69-_0x15dd2a._0x34ba40,_0x2c3616);}return{'model':_0x29dd8b[_0x545155(0x3bd,0x3c3,0x3dc,_0x160740._0x5c65d2)],..._0x29dd8b[_0x2f498f(-0x1be,-0x194,-_0x160740._0x4ac632,-0x18e)]!==void 0x0?{'max_tokens':_0x29dd8b[_0x545155(0x3df,0x3d2,_0x160740._0x215b90,0x3d4)]}:{},'system':structuredClone(_0x29dd8b[_0x2f498f(-0x1ad,-0x1cd,-0x1ac,-_0x160740._0x47cab5)]),'messages':structuredClone(_0x29dd8b['messages']),'tools':structuredClone(_0x29dd8b[_0x2f498f(-0x1be,-_0x160740._0x49e315,-_0x160740._0x346874,-_0x160740._0x28f13e)])};}function toChatResponse(_0x3eb919){const _0x504b66={_0x5b0c7c:0x22,_0x4ca645:0x3f,_0x1098c6:0xa,_0x708fc0:0x503,_0xe5c44:0x51e,_0x2be174:0x3,_0x487f08:0xf,_0x513463:0x1c,_0x4f9890:0x20,_0x4a5456:0xe,_0x5af16c:0x0,_0x4c0c10:0xf,_0x149f4e:0x522,_0x4cb19c:0x52e,_0x5e6157:0x553,_0x332cb7:0x10,_0x43d628:0x31,_0x21d352:0x26},_0x38d259={_0x422e84:0x324},_0x8f3082={_0x59e58b:0x207};function _0x1e6fc(_0xe3f1b6,_0x33aa6f,_0x52635b,_0x5d545e){return _0x5de3(_0x5d545e- -_0x8f3082._0x59e58b,_0x52635b);}function _0x245667(_0x31c7ea,_0x3b3a39,_0x1c161c,_0x47bc38){return _0x5de3(_0x47bc38-_0x38d259._0x422e84,_0x31c7ea);}return{'id':_0x3eb919['id'],'content':structuredClone(_0x3eb919[_0x1e6fc(-_0x504b66._0x5b0c7c,-_0x504b66._0x4ca645,-_0x504b66._0x1098c6,-0x20)]),'stopReason':_0x3eb919['stop_reason'],'usage':{'inputTokens':_0x3eb919[_0x245667(0x4f5,_0x504b66._0x708fc0,_0x504b66._0xe5c44,0x50a)][_0x1e6fc(_0x504b66._0x2be174,-0xa,0x9,-_0x504b66._0x487f08)],'outputTokens':_0x3eb919['usage'][_0x1e6fc(_0x504b66._0x513463,-_0x504b66._0x4f9890,-_0x504b66._0x4a5456,_0x504b66._0x5af16c)],..._0x3eb919['usage'][_0x1e6fc(_0x504b66._0x4c0c10,0x26,0x9,0x9)]!==void 0x0?{'reasoningTokens':_0x3eb919['usage'][_0x245667(_0x504b66._0x149f4e,_0x504b66._0x4cb19c,_0x504b66._0x5e6157,0x534)]}:{}},..._0x3eb919[_0x1e6fc(-_0x504b66._0x332cb7,-_0x504b66._0x43d628,-0x2b,-_0x504b66._0x513463)]?{'providerState':structuredClone(_0x3eb919[_0x1e6fc(-0x7,-0x33,-_0x504b66._0x21d352,-0x1c)])}:{}};}function toModelResponse(_0x5a6666){const _0x28ecff={_0x539ecd:0x2da,_0x48749f:0x2a9,_0xa8d549:0x2c5,_0x2fb9cb:0x2ba,_0x1903d9:0x2d6,_0x4c75d9:0x2db,_0x1ab609:0x297,_0x607a54:0x282,_0x2d8a11:0x2c6,_0xcb41a1:0x2c2,_0x2d795a:0x28d,_0x81c4ca:0x461,_0x351e41:0x457,_0x57ddfb:0x454,_0x37cb8b:0x427,_0x379f87:0x430,_0x3aec2a:0x439,_0x453011:0x443,_0x4df646:0x446,_0x184f47:0x467,_0x347fce:0x287,_0xfee2e3:0x2b0,_0x5416dc:0x299,_0x109741:0x444,_0x3ae477:0x44b},_0x26fb8e={_0x5cb28f:0xb0};function _0xb902b1(_0x4118a1,_0x1a1e5c,_0x373317,_0x3d6b7c){return _0x5de3(_0x373317-0x260,_0x4118a1);}function _0x4533fb(_0x3adc3f,_0xbea2a5,_0x47ae0b,_0x2fda96){return _0x5de3(_0x2fda96-_0x26fb8e._0x5cb28f,_0xbea2a5);}return{'id':_0x5a6666['id'],'type':_0x4533fb(0x2bf,_0x28ecff._0x539ecd,_0x28ecff._0x48749f,_0x28ecff._0xa8d549),'role':_0x4533fb(_0x28ecff._0x2fb9cb,_0x28ecff._0x1903d9,_0x28ecff._0x4c75d9,_0x28ecff._0x2fb9cb),'content':structuredClone(_0x5a6666[_0x4533fb(0x294,_0x28ecff._0x1ab609,_0x28ecff._0x607a54,0x297)]),'stop_reason':_0x5a6666[_0x4533fb(_0x28ecff._0x2d8a11,0x2b8,0x2b8,_0x28ecff._0xcb41a1)],'stop_sequence':null,'usage':{'input_tokens':_0x5a6666[_0x4533fb(_0x28ecff._0x2d795a,0x2a1,0x27c,0x296)][_0xb902b1(_0x28ecff._0x81c4ca,_0x28ecff._0x351e41,_0x28ecff._0x57ddfb,0x452)],'output_tokens':_0x5a6666[_0xb902b1(0x440,_0x28ecff._0x37cb8b,0x446,0x435)]['outputTokens'],..._0x5a6666[_0xb902b1(_0x28ecff._0x379f87,0x428,0x446,_0x28ecff._0x3aec2a)][_0xb902b1(0x43e,0x452,0x453,0x452)]!==void 0x0?{'reasoning_tokens':_0x5a6666[_0xb902b1(_0x28ecff._0x453011,0x43d,_0x28ecff._0x4df646,_0x28ecff._0x184f47)][_0x4533fb(0x292,0x2bc,_0x28ecff._0x347fce,0x2a3)]}:{}},..._0x5a6666[_0x4533fb(_0x28ecff._0xfee2e3,0x2bc,_0x28ecff._0x5416dc,0x29b)]?{'providerState':structuredClone(_0x5a6666[_0xb902b1(0x42c,_0x28ecff._0x109741,_0x28ecff._0x3ae477,0x441)])}:{}};}function _0x4b5803(_0x397a15,_0x114d54,_0x2639c8,_0x392f9a){const _0x431d5e={_0x46e869:0x3d8};return _0x5de3(_0x2639c8-_0x431d5e._0x46e869,_0x397a15);}function responseToAssistantMessage(_0x480643){const _0x22a7f4={_0xc6b4a1:0x20c,_0x473105:0x24d,_0x3e7acb:0x43,_0x421159:0x21,_0x413d5e:0x216,_0x5bcb17:0x20f},_0x29b5d5={_0x27a5de:0x1af};function _0x4f209e(_0x2137d5,_0x9082e8,_0x280ae3,_0x5a12ed){return _0x5de3(_0x5a12ed-0x24,_0x2137d5);}function _0x3c522b(_0x4fe889,_0x448ea9,_0x350db5,_0x81cf34){return _0x5de3(_0x81cf34- -_0x29b5d5._0x27a5de,_0x350db5);}return{'role':_0x4f209e(_0x22a7f4._0xc6b4a1,_0x22a7f4._0x473105,0x213,0x22e),'content':normalizeContent(_0x480643['content']),..._0x480643[_0x3c522b(0x41,_0x22a7f4._0x3e7acb,_0x22a7f4._0x421159,0x3c)]?{'providerState':structuredClone(_0x480643[_0x4f209e(0x211,_0x22a7f4._0x413d5e,0x205,_0x22a7f4._0x5bcb17)])}:{}};}function createReasoningMessage(_0xad03f7){const _0x57dbf1={_0x460d97:0x335,_0x18ee87:0xca,_0x15ae03:0xb6,_0xa921d2:0x368,_0x3071b6:0x357,_0x1073e4:0x359},_0x474d3a={_0x10c2a6:0x2bb},_0x3109fb={_0x5a1984:0x1af,_0x210db1:0x1ad,_0x1aa0ec:0x1d7,_0x209096:0x1c5,_0xe2d497:0x1c0,_0x46513d:0x1a8,_0x1b4a0f:0x1be},_0x4a3587={_0x6237cc:0x14f};function _0x4b64d0(_0x559cf9,_0x5556a3,_0x5cc1da,_0x220b2d){return _0x5de3(_0x5556a3-_0x4a3587._0x6237cc,_0x5cc1da);}const _0xd68ddb=normalizeContent(_0xad03f7?.[_0x4b64d0(_0x57dbf1._0x460d97,0x336,0x33b,0x354)])[_0x8b335d(-_0x57dbf1._0x18ee87,-_0x57dbf1._0x15ae03,-0xdf,-0xa8)](_0x4f27c4=>{const _0x9a1457={_0x391d5a:0x6a3},_0x2c7319={_0x4e7349:0x517,_0x156306:0xe0};function _0x1439b2(_0x38004f,_0x58e5da,_0x13af01,_0x568492){return _0x4b64d0(_0x38004f-0x1a7,_0x568492- -_0x2c7319._0x4e7349,_0x38004f,_0x568492-_0x2c7319._0x156306);}function _0x63835b(_0x5a8368,_0xf2266b,_0x50f081,_0x335028){return _0x8b335d(_0x50f081-_0x9a1457._0x391d5a,_0xf2266b-0x1a1,_0x5a8368,_0x335028-0x3);}return _0x4f27c4[_0x1439b2(-0x1c8,-_0x3109fb._0x5a1984,-_0x3109fb._0x210db1,-0x1c5)]===_0x63835b(0x622,0x611,0x601,0x621)||_0x4f27c4[_0x1439b2(-0x1c3,-_0x3109fb._0x1aa0ec,-0x1bd,-_0x3109fb._0x209096)]===_0x1439b2(-0x1ad,-0x1ca,-0x1bf,-0x1c4)||_0x4f27c4[_0x1439b2(-_0x3109fb._0xe2d497,-_0x3109fb._0x46513d,-_0x3109fb._0x1b4a0f,-0x1c5)]==='openai_reasoning';});if(_0xd68ddb[_0x4b64d0(_0x57dbf1._0xa921d2,_0x57dbf1._0x3071b6,0x36e,_0x57dbf1._0x1073e4)]===0x0)return void 0x0;function _0x8b335d(_0x722880,_0x3e57b3,_0x25fb61,_0x139be4){return _0x5de3(_0x722880- -_0x474d3a._0x10c2a6,_0x25fb61);}return{'role':'assistant','content':_0xd68ddb};}function createAssistantTextMessage(_0x1def80){const _0x7b4efa={_0x355acd:0xad,_0x4aeec7:0x350,_0x4fe571:0x34d},_0x29ce68={_0x4b09e8:0x15d},_0x148a9d={_0x31a3c7:0x277},_0x4eee9f={_0x154e8f:0x8d,_0x3cfba6:0x9d,_0x15a452:0xad},_0x605b8={_0x1e9847:0x97,_0x4a6293:0x194},_0x58d7fc=normalizeContent(_0x1def80?.[_0x3121c1(-0x90,-0x86,-0xa2,-_0x7b4efa._0x355acd)])[_0x4998f9(_0x7b4efa._0x4aeec7,_0x7b4efa._0x4fe571,0x35d,0x34e)](_0x487d09=>{function _0x50cf8c(_0x1fbe5d,_0x1f332d,_0x4705ba,_0x2ba376){return _0x3121c1(_0x1f332d-0x10b,_0x1f332d-_0x605b8._0x1e9847,_0x2ba376,_0x2ba376-_0x605b8._0x4a6293);}return _0x487d09['type']===_0x50cf8c(_0x4eee9f._0x154e8f,_0x4eee9f._0x3cfba6,0x9a,_0x4eee9f._0x15a452);});function _0x3121c1(_0x13fc4c,_0x965de,_0x2f869a,_0x8d29ae){return _0x5de3(_0x13fc4c- -_0x148a9d._0x31a3c7,_0x2f869a);}if(_0x58d7fc['length']===0x0)return void 0x0;function _0x4998f9(_0x29cd14,_0x2bb966,_0x44f18a,_0x54bff3){return _0x5de3(_0x54bff3-_0x29ce68._0x4b09e8,_0x44f18a);}return{'role':_0x3121c1(-0x6d,-0x4d,-0x5a,-0x52),'content':_0x58d7fc};}function createToolUseMessage(_0x1cc37c){const _0x5d37a6={_0x1566d9:0x54d,_0xf72731:0x1a4,_0x658d48:0x16b,_0x1f3b29:0x176,_0x32d392:0x162},_0x41ecda={_0x5c965c:0x2cf,_0x19bd34:0x2ee,_0x233cdd:0x2ea};function _0x25a9b2(_0x534d01,_0x4d77ae,_0x2f2427,_0x59412a){return _0x5de3(_0x534d01-0x352,_0x2f2427);}function _0x440b5f(_0x3dd9a0,_0xd237d,_0x3eab30,_0x11e07f){return _0x5de3(_0xd237d- -0x37e,_0x3dd9a0);}const _0x1d1183=normalizeContent(_0x1cc37c?.[_0x25a9b2(0x539,_0x5d37a6._0x1566d9,0x541,0x545)])[_0x440b5f(-0x18c,-0x18d,-_0x5d37a6._0xf72731,-0x1a8)](_0x30d0b6=>{const _0x1e4313={_0x58945a:0xbc,_0x3efb0b:0x1b6};function _0x35ebe7(_0x3c2385,_0x359756,_0x150fdc,_0x24c527){return _0x440b5f(_0x24c527,_0x3c2385-0x435,_0x150fdc-_0x1e4313._0x58945a,_0x24c527-_0x1e4313._0x3efb0b);}return _0x30d0b6['type']===_0x35ebe7(0x2d1,_0x41ecda._0x5c965c,_0x41ecda._0x19bd34,_0x41ecda._0x233cdd);});if(_0x1d1183[_0x440b5f(-_0x5d37a6._0x658d48,-_0x5d37a6._0x1f3b29,-_0x5d37a6._0x32d392,-0x183)]===0x0)return void 0x0;return{'role':'assistant','content':_0x1d1183};}function getTextFromMessage(_0x52e42a){const _0x5246be={_0x561503:0x15d,_0x1ba47c:0x183,_0x19772d:0x17c,_0x3f5d64:0x173,_0xfc9420:0x137,_0x5ee223:0x154,_0xa3340c:0x14c,_0x3a339d:0x160},_0xb0e705={_0x6ed377:0x36d},_0x5e9f33={_0x4319c3:0x219};function _0x5d7a30(_0x4c2f15,_0x564484,_0x4c89c1,_0x77cea3){return _0x5de3(_0x4c89c1- -_0x5e9f33._0x4319c3,_0x564484);}function _0x47660f(_0x281fee,_0xdd7226,_0x5a1d5b,_0xc0bf28){return _0x5de3(_0x5a1d5b- -_0xb0e705._0x6ed377,_0xc0bf28);}return normalizeContent(_0x52e42a?.['content'])[_0x47660f(-_0x5246be._0x561503,-_0x5246be._0x1ba47c,-_0x5246be._0x19772d,-0x195)](_0x14b8ae=>_0x14b8ae[_0x5d7a30(-0xd,-0x33,-0x16,-0x19)]===_0x5d7a30(-0x2b,-0x14,-0x10,-0x25))[_0x47660f(-_0x5246be._0x3f5d64,-_0x5246be._0xfc9420,-0x152,-0x167)](_0x5197cf=>_0x5197cf[_0x47660f(-0x155,-0x184,-0x164,-0x150)])[_0x47660f(-_0x5246be._0x5ee223,-_0x5246be._0xa3340c,-_0x5246be._0x3a339d,-0x15e)]('\x0a');}function getReasoningTextFromMessage(_0x1b9c66){const _0x57efff={_0x465bc8:0x1bd,_0xc54659:0x1d0,_0x507aa8:0x1e9},_0x260ba7={_0x30eeb4:0xf7,_0xf455de:0x10c,_0x696a9c:0xfd,_0x2d220a:0xf3,_0x4fd5f6:0xfe,_0x37311c:0x10b,_0x50c946:0xf0,_0x127d54:0x478,_0x5acae5:0x45d,_0x139730:0x496,_0x417141:0x449,_0x33e133:0x455,_0x26eb4a:0x491,_0x3004f0:0xeb,_0x57a4ef:0x108,_0x20336c:0x129,_0x511ab3:0x467,_0x1c15dc:0x464,_0x132c3a:0x463,_0x1fbc3b:0x480,_0x6e1db2:0x10c,_0x2dfdcd:0x490,_0x3cb9c1:0x476,_0x24122d:0x465,_0x35ee9f:0x45b,_0x522f72:0x48b,_0x52c27c:0xdc,_0xe3df87:0xf6,_0x3a6481:0xfc},_0x4eb896={_0x935893:0x273};function _0x1e7116(_0x20edd4,_0x2a2dac,_0x3cd3bd,_0x4b4bea){return _0x5de3(_0x3cd3bd- -0x3d,_0x20edd4);}return normalizeContent(_0x1b9c66?.['content'])['flatMap'](_0x1bae7f=>{const _0x469a82={_0x1ac057:0x2fa};if(_0x1bae7f[_0x593886(-_0x260ba7._0x30eeb4,-_0x260ba7._0xf455de,-_0x260ba7._0x696a9c,-0x10b)]===_0x593886(-0xf6,-0xe7,-_0x260ba7._0x2d220a,-_0x260ba7._0x4fd5f6))return _0x1bae7f[_0x593886(-_0x260ba7._0x37311c,-0xef,-0x102,-_0x260ba7._0x50c946)][_0x4e1ced(_0x260ba7._0x127d54,0x47e,0x442,_0x260ba7._0x5acae5)]()[_0x4e1ced(0x47a,0x45c,_0x260ba7._0x139730,0x47b)]>0x0?[_0x1bae7f[_0x4e1ced(0x479,_0x260ba7._0x417141,0x472,0x462)]]:[];function _0x4e1ced(_0x50c265,_0x1916a5,_0x484676,_0xd20dd4){return _0x5de3(_0xd20dd4-_0x4eb896._0x935893,_0x1916a5);}if(_0x1bae7f[_0x4e1ced(_0x260ba7._0x33e133,_0x260ba7._0x26eb4a,0x498,0x476)]==='anthropic_redacted_thinking')return['(redacted\x20reasoning)'];if(_0x1bae7f['type']!==_0x593886(-_0x260ba7._0x3004f0,-0xcb,-0xe2,-0xf0))return[];const _0x178cba=_0x1bae7f[_0x593886(-_0x260ba7._0x57a4ef,-0xf8,-0x125,-_0x260ba7._0x20336c)]['map'](_0xfb3b89=>_0xfb3b89[_0x593886(-0xf1,-0xdb,-0x112,-0xe9)])[_0x4e1ced(0x447,_0x260ba7._0x511ab3,0x485,_0x260ba7._0x1c15dc)](_0x325938=>_0x325938[_0x4e1ced(0x46f,0x46c,0x473,0x45d)]()[_0x4e1ced(0x46e,0x45a,0x48d,0x47b)]>0x0)[_0x4e1ced(0x475,0x498,_0x260ba7._0x132c3a,_0x260ba7._0x1fbc3b)]('\x0a\x0a');if(_0x178cba['length']>0x0)return[_0x178cba];if(_0x1bae7f[_0x593886(-0xf1,-0xe5,-_0x260ba7._0x696a9c,-_0x260ba7._0x6e1db2)]&&_0x1bae7f[_0x4e1ced(_0x260ba7._0x2dfdcd,0x49c,_0x260ba7._0x3cb9c1,0x47c)][_0x4e1ced(_0x260ba7._0x24122d,0x44c,_0x260ba7._0x35ee9f,0x45d)]()[_0x593886(-0xf2,-0xf7,-0x100,-0xdd)]>0x0)return[_0x1bae7f[_0x4e1ced(_0x260ba7._0x24122d,0x46a,_0x260ba7._0x522f72,0x47c)]];function _0x593886(_0x26b778,_0x1b1ab6,_0x15711f,_0x1b4aca){return _0x5de3(_0x26b778- -_0x469a82._0x1ac057,_0x15711f);}return _0x1bae7f[_0x593886(-_0x260ba7._0x52c27c,-_0x260ba7._0x50c946,-_0x260ba7._0xe3df87,-_0x260ba7._0x3a6481)]?['(encrypted\x20reasoning)']:[];})[_0x1e7116(0x1d8,_0x57efff._0x465bc8,_0x57efff._0xc54659,_0x57efff._0x507aa8)]('\x0a\x0a');}function getToolUseBlocks(_0x41a3cf){const _0x522ce0={_0x40c930:0xdf,_0x536aff:0xea,_0x46c155:0xda},_0x25c8f4={_0x1c0c9a:0x2c1};function _0x2bc0dc(_0x2cd4e4,_0x3c9ebb,_0x2f65c1,_0x4b4d3f){return _0x5de3(_0x4b4d3f- -_0x25c8f4._0x1c0c9a,_0x2cd4e4);}function _0x510013(_0x2a2222,_0x3eb7eb,_0x2e2c3a,_0x39bc1b){return _0x5de3(_0x3eb7eb-0x1a1,_0x39bc1b);}return normalizeContent(_0x41a3cf?.[_0x2bc0dc(-0xbd,-_0x522ce0._0x40c930,-_0x522ce0._0x536aff,-_0x522ce0._0x46c155)])['filter'](_0x2728f0=>_0x2728f0[_0x510013(0x393,0x3a4,0x397,0x38c)]===_0x510013(0x3a2,0x3bb,0x3ab,0x3a9));}function getToolResultBlocks(_0x12cf58){const _0x45c0d9={_0x5df063:0x145};function _0x203457(_0x53e993,_0x2b50e6,_0x39c150,_0x33968a){return _0x5de3(_0x39c150- -0xc1,_0x2b50e6);}function _0x2e4078(_0x184e20,_0x32ce3d,_0x35d1cc,_0x44731d){return _0x5de3(_0x184e20- -0x109,_0x32ce3d);}return normalizeContent(_0x12cf58?.[_0x203457(_0x45c0d9._0x5df063,0x136,0x126,0x137)])['filter'](_0x2a88ea=>_0x2a88ea[_0x2e4078(0xfa,0x10b,0xfb,0x111)]===_0x203457(0x109,0x11e,0x11e,0x137));}function createToolResultUserMessage(_0x23d52c){const _0x53e0ce={_0x39dec5:0x1,_0x14ae7c:0x12},_0x32139a={_0x1bdcf1:0x21e,_0x18cb52:0x238,_0x49cb1a:0x23e,_0x1403c6:0x31d,_0x5354df:0x30f,_0x8ac831:0x30a,_0x4cf2cc:0x2f2};function _0x3fb741(_0x57829c,_0x23ff25,_0xb71ee5,_0x18289f){return _0x5de3(_0x18289f- -0x213,_0xb71ee5);}return{'role':_0x3fb741(-0x25,-0x7,_0x53e0ce._0x39dec5,-_0x53e0ce._0x14ae7c),'content':_0x23d52c['map'](_0x39fdc4=>{const _0x470517={_0x1ad7c9:0xd4},_0x44cc24={_0x49c81e:0x33f};function _0x473bc0(_0x4fc70d,_0x5bc005,_0x2777d0,_0x5ec284){return _0x3fb741(_0x4fc70d-0x88,_0x5bc005-0x1e3,_0x4fc70d,_0x2777d0-_0x44cc24._0x49c81e);}function _0x397289(_0x4e63de,_0x561007,_0x33cd80,_0x1f8967){return _0x3fb741(_0x4e63de-_0x470517._0x1ad7c9,_0x561007-0x11e,_0x561007,_0x4e63de-0x251);}return{'type':'tool_result','tool_use_id':_0x39fdc4[_0x397289(_0x32139a._0x1bdcf1,0x21c,_0x32139a._0x18cb52,_0x32139a._0x49cb1a)],'content':_0x39fdc4['content']??_0x39fdc4[_0x397289(_0x32139a._0x18cb52,0x230,0x239,0x255)],'is_error':_0x39fdc4[_0x473bc0(0x2fd,0x310,0x315,0x318)]===_0x473bc0(_0x32139a._0x1403c6,_0x32139a._0x5354df,_0x32139a._0x8ac831,_0x32139a._0x4cf2cc)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x4b5803(0x5d7,0x5ec,0x5dd,0x5d0);function synthesizeMissingToolResults(_0x3c31fd){const _0x6313cf={_0xb3d002:0x47f,_0xe0e26c:0x486,_0x37cded:0x4a5,_0x3bdb6a:0x5d5,_0x5d1717:0x5be,_0x432abe:0x493},_0x138eb7={_0x353369:0xb6},_0x371dd7={_0x3401a3:0x3d,_0xb68b3a:0xc,_0x4ae729:0xff},_0x51803d=new Set();function _0x2e7d26(_0x9c400a,_0x3165ce,_0x52c07e,_0x15287e){return _0x4b5803(_0x9c400a,_0x3165ce-_0x371dd7._0x3401a3,_0x3165ce-_0x371dd7._0xb68b3a,_0x15287e-_0x371dd7._0x4ae729);}for(const _0x34df64 of _0x3c31fd){for(const _0x3077be of getToolResultBlocks(_0x34df64)){_0x51803d[_0x2e7d26(0x5fb,0x5e3,0x5f0,0x5c6)](_0x3077be[_0x573ce2(_0x6313cf._0xb3d002,_0x6313cf._0xe0e26c,0x4a6,_0x6313cf._0x37cded)]);}}function _0x573ce2(_0x2cbd9b,_0x3262eb,_0x1178cb,_0x1bd108){return _0x4b5803(_0x1bd108,_0x3262eb-0x17e,_0x3262eb- -0x16f,_0x1bd108-_0x138eb7._0x353369);}const _0x3cc8c8=[];for(const _0x8910d5 of _0x3c31fd){_0x3cc8c8['push'](_0x8910d5);const _0x48439b=getToolUseBlocks(_0x8910d5)[_0x2e7d26(0x5f4,_0x6313cf._0x3bdb6a,_0x6313cf._0x5d1717,0x5df)](_0x18a685=>!_0x51803d[_0x573ce2(0x446,0x455,0x448,0x460)](_0x18a685['id']));if(_0x48439b[_0x573ce2(0x46d,0x471,0x462,_0x6313cf._0x432abe)]===0x0)continue;_0x3cc8c8['push']({'role':'user','content':_0x48439b['map'](_0x4a407c=>({'type':_0x2e7d26(0x5bf,0x5c3,0x5b2,0x5bb),'tool_use_id':_0x4a407c['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x21ab97 of _0x48439b){_0x51803d['add'](_0x21ab97['id']);}}return _0x3cc8c8;}function _0x586c(){const _0x5e65f0=['mJqXmJm2oePlB2TIyW','B3v0Chv0','Bwf4x3rVA2vUCW','DhvYBL9Pza','C3rYAw5N','Bw9KzwXFAwrLBNrPDhK','ywrK','AxnbCNjHEq','DxnLCG','Bw9KzwW','DhLWzq','yw50AhjVCgLJx3rOAw5RAw5N','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','C2vZC2LVBKLK','B3v0Chv0x3rVA2vUCW','BgvUz3rO','Dgv4Da','yxnZAxn0yw50','C3LZDgvT','B3v0Chv0rM9YBwf0','AM9PBG','CM9Szq','B3bLBMfPx3jLyxnVBMLUzW','CMvHC29UAw5Nx3rVA2vUCW','Bwf4vg9Rzw5Z','C3rVCfjLyxnVBG','Bwv0ywrHDge','ndq5meHkC1zMva','BwvZC2fNzq','mte0CNjnAu95','Bw9KzwXjzgvUDgL0Eq','Dg9VBhm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Dg9VBf91C2u','BwfW','mJa5mJaYotbqrMnLBM4','Dg9VBf91C2vFAwq','zw5JCNLWDgvKq29UDgvUDa','nJC1muzIBhvwqG','ChjPy2LUz19WCM92AwrLCL9Pza','mtfAvhHIufy','zxjYB3i','Dg9VBf9Yzxn1Bhq','y2fSBeLK','mte1ndKWowjgC2LACq','mJy3mhb1A2PlEq','ChjPy2LUz1bYB3zPzgvYswq','CMvHC29UAw5N','BwvZC2fNzxm','DxnHz2u','y29UDgvUDa','nZm0mtK0ohvRzwTHzG','C3rHDhvZ','DhjPBq','ChjVDMLKzxjtDgf0zq','AgfZ','oti0BLHYu2nr','B3jPz2LUtw9KzwXjzgvUDgL0Eq','DgHPBMTPBMC','C2vZC2LVBL9Pza','zMLSDgvY','C3vTBwfYEq','CMvHC29UAw5Nvg9Rzw5Z','Aw5WDxruB2TLBNm','DhvYBKLK','ntCYterJDwPl','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Aw5WDxrFDg9Rzw5Z'];_0x586c=function(){return _0x5e65f0;};return _0x586c();}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
|
1
|
+
(function(_0x1c75ed,_0x305737){const _0x58c9ef={_0x5330d6:0x1c1,_0x205b10:0x245,_0x361447:0x24d,_0x12d10b:0x1db,_0x427f49:0x1ea,_0x215e00:0x232,_0xf4b5fc:0x25b,_0x1f68b9:0x217,_0xd33f65:0x205,_0x4f3ead:0x1fb,_0x172ea1:0x1e7,_0x8ce128:0x1d9},_0x1fed08={_0x479a0c:0x2f4};function _0x2d8d49(_0x402b4b,_0x3faf6d,_0x4c0d2b,_0xffe009){return _0x443d(_0xffe009-0x11b,_0x3faf6d);}function _0x1e8406(_0x45aa96,_0x10f99a,_0x2d7dc2,_0x2d221){return _0x443d(_0x2d221- -_0x1fed08._0x479a0c,_0x10f99a);}const _0x47b33e=_0x1c75ed();while(!![]){try{const _0x32c326=-parseInt(_0x1e8406(-_0x58c9ef._0x5330d6,-0x1af,-0x1c3,-0x1c9))/0x1+-parseInt(_0x1e8406(-0x1c8,-0x1ac,-0x1d9,-0x1be))/0x2+parseInt(_0x2d8d49(_0x58c9ef._0x205b10,_0x58c9ef._0x361447,0x24c,0x252))/0x3+-parseInt(_0x1e8406(-_0x58c9ef._0x12d10b,-_0x58c9ef._0x427f49,-0x202,-0x1e9))/0x4+-parseInt(_0x2d8d49(_0x58c9ef._0x215e00,0x238,_0x58c9ef._0xf4b5fc,0x23d))/0x5+-parseInt(_0x1e8406(-_0x58c9ef._0x1f68b9,-_0x58c9ef._0xd33f65,-0x1de,-_0x58c9ef._0x4f3ead))/0x6+parseInt(_0x1e8406(-_0x58c9ef._0x172ea1,-_0x58c9ef._0x8ce128,-0x1eb,-0x1d0))/0x7;if(_0x32c326===_0x305737)break;else _0x47b33e['push'](_0x47b33e['shift']());}catch(_0x4f3096){_0x47b33e['push'](_0x47b33e['shift']());}}}(_0x1a20,0x6256d));function createTextBlock(_0x5ed14e){const _0x285a6b={_0x2b2ba6:0x481};function _0x3a1c8e(_0x51f72c,_0x440813,_0x2b724e,_0x506c5b){return _0x443d(_0x440813-0x3a4,_0x506c5b);}return{'type':_0x3a1c8e(_0x285a6b._0x2b2ba6,0x49b,0x48d,0x49b),'text':_0x5ed14e};}function normalizeTextBlock(_0x369024){const _0x343749={_0xa527ee:0x240,_0x14b2b0:0x254,_0x4db587:0x260};function _0x3bb56d(_0x35c2aa,_0x171751,_0x304903,_0x4e878c){return _0x443d(_0x171751- -0x337,_0x35c2aa);}return createTextBlock(_0x369024[_0x3bb56d(-0x233,-_0x343749._0xa527ee,-_0x343749._0x14b2b0,-_0x343749._0x4db587)]??'');}function normalizeContent(_0x4a1641){const _0x4fc2a5={_0x27bce8:0x2bb,_0x588b1c:0x2c6,_0x3b881f:0x2bd},_0x8218e3={_0x300fa4:0x18c,_0x2c2717:0x19e,_0x317a35:0x15f},_0x12be29={_0x3098f9:0x188};if(typeof _0x4a1641==='string')return[createTextBlock(_0x4a1641)];if(!Array['isArray'](_0x4a1641))return[];function _0x4a4312(_0x154299,_0x5722d7,_0x41a6d6,_0x2662a4){return _0x443d(_0x5722d7-_0x12be29._0x3098f9,_0x41a6d6);}return _0x4a1641[_0x4a4312(0x2a5,_0x4fc2a5._0x27bce8,_0x4fc2a5._0x588b1c,_0x4fc2a5._0x3b881f)](_0x42cbcf=>{const _0x26ff9a={_0x22c952:0x11c,_0x419a05:0x3ff};if(_0x42cbcf['type']===_0x50f243(-_0x8218e3._0x300fa4,-_0x8218e3._0x2c2717,-_0x8218e3._0x317a35,-0x180))return normalizeTextBlock(_0x42cbcf);function _0x50f243(_0x55df18,_0x40f098,_0x37ac72,_0x96455a){return _0x4a4312(_0x55df18-_0x26ff9a._0x22c952,_0x96455a- -_0x26ff9a._0x419a05,_0x40f098,_0x96455a-0xcf);}return structuredClone(_0x42cbcf);});}function normalizeSystem(_0x459b06=[]){const _0x20c5b={_0x253b8f:0x2a0,_0x5e797b:0x297},_0x17bb78={_0xb52812:0x18a};function _0x1b0b99(_0x40f51a,_0x2f757a,_0x8e5624,_0x254eb3){return _0x443d(_0x2f757a- -0x3c1,_0x40f51a);}function _0x2d55ce(_0x2bdf4f,_0x2e5963,_0xdfc9c6,_0x272d8f){return _0x443d(_0x272d8f-_0x17bb78._0xb52812,_0xdfc9c6);}return normalizeContent(_0x459b06)[_0x2d55ce(0x29c,_0x20c5b._0x253b8f,_0x20c5b._0x5e797b,0x2b7)](_0x5db23e=>_0x5db23e[_0x2d55ce(0x2a1,0x287,0x277,0x294)]===_0x2d55ce(0x26f,0x297,0x272,0x281));}function isProviderStateCompatible(_0x270a3e,_0x1fa893){const _0x4f5520={_0x147a32:0x1ea,_0x1f2149:0x3ea,_0x4ec140:0x3dc,_0x13787b:0x41c,_0x38cd54:0x416,_0x14ed4b:0x415,_0x4d47b5:0x1f9,_0x25bf42:0x1db,_0x2c8592:0x411,_0x1e8a8d:0x409},_0x6b21e={_0x42d08a:0x2dd};function _0x462b96(_0x35f1d7,_0x5294a3,_0x2adb65,_0x71945d){return _0x443d(_0x35f1d7- -0x2ef,_0x5294a3);}const _0x3b83a7=_0x270a3e[_0x462b96(-0x1d6,-0x1ee,-0x1cf,-_0x4f5520._0x147a32)]?.[_0xf87c61(0x3d5,0x3e1,_0x4f5520._0x1f2149,_0x4f5520._0x4ec140)];function _0xf87c61(_0x1e46b7,_0x13d012,_0x1e0273,_0x555aba){return _0x443d(_0x555aba-_0x6b21e._0x42d08a,_0x1e0273);}return _0x3b83a7===void 0x0||_0x3b83a7===_0x1fa893[_0xf87c61(0x3f5,_0x4f5520._0x13787b,_0x4f5520._0x38cd54,_0x4f5520._0x14ed4b)][_0x462b96(-0x1e0,-0x1f7,-_0x4f5520._0x4d47b5,-_0x4f5520._0x25bf42)]||_0x3b83a7===_0x1fa893[_0xf87c61(_0x4f5520._0x2c8592,0x40e,_0x4f5520._0x1e8a8d,0x3f8)];}function normalizeMessage(_0xa319c4){const _0x340d53={_0x293dbf:0x23,_0x1b5bf6:0x1,_0x15f217:0x0,_0xb07d3e:0x8,_0x3f4a19:0x10};function _0x182c30(_0x5bb906,_0x18ec2c,_0x4a5994,_0x364ea7){return _0x443d(_0x18ec2c-0xec,_0x364ea7);}function _0x1527a9(_0x3f5d86,_0x54a826,_0x545175,_0x54039a){return _0x443d(_0x545175- -0x11d,_0x54039a);}return{...typeof _0xa319c4['id']===_0x1527a9(-_0x340d53._0x293dbf,-0x1d,-0x1,_0x340d53._0x1b5bf6)?{'id':_0xa319c4['id']}:{},'role':_0xa319c4[_0x1527a9(_0x340d53._0x15f217,0x6,_0x340d53._0xb07d3e,0x4)],'content':normalizeContent(_0xa319c4[_0x1527a9(0x31,-_0x340d53._0x3f4a19,0xf,0x0)]),..._0xa319c4['providerState']?{'providerState':structuredClone(_0xa319c4['providerState'])}:{}};}function compileRequest(_0x43cfe3){const _0x596589={_0x37254d:0x213,_0x3bc32c:0x1ed,_0x1dfe4a:0x1f3,_0x96bee3:0x1f7,_0x171740:0x1fd,_0x68f977:0x223,_0xb431c1:0x4a,_0xd6d607:0x68,_0x18de3a:0x1f0,_0x548dd6:0x208,_0x31dc47:0x22c,_0x137f1b:0x217,_0x33e8c8:0x209,_0x33409b:0x1f9,_0x37313a:0x79,_0x4a3008:0x92,_0x2f5d64:0x1e1,_0xe75882:0x77,_0x179818:0x6f},_0x554ecb={_0x4677c2:0x30e};function _0x39ca70(_0x76255e,_0x143c23,_0x3a80be,_0x5824b6){return _0x443d(_0x76255e- -0xa1,_0x143c23);}function _0x5ad4b3(_0x4698f7,_0x35e243,_0x35c2a3,_0x1b4138){return _0x443d(_0x1b4138- -_0x554ecb._0x4677c2,_0x4698f7);}return{'model':_0x43cfe3[_0x5ad4b3(-_0x596589._0x37254d,-0x1e4,-_0x596589._0x3bc32c,-_0x596589._0x1dfe4a)]??_0x5ad4b3(-0x1f7,-0x211,-_0x596589._0x96bee3,-_0x596589._0x171740),..._0x43cfe3[_0x5ad4b3(-0x210,-_0x596589._0x68f977,-0x211,-0x20c)]!==void 0x0?{'max_tokens':_0x43cfe3[_0x39ca70(0x61,0x49,_0x596589._0xb431c1,0x69)]}:{},..._0x43cfe3[_0x39ca70(0x63,0x6b,0x4f,_0x596589._0xd6d607)]?{'reasoning':structuredClone(_0x43cfe3[_0x5ad4b3(-_0x596589._0x18de3a,-_0x596589._0x548dd6,-_0x596589._0x31dc47,-0x20a)])}:{},'system':normalizeSystem(_0x43cfe3[_0x5ad4b3(-_0x596589._0x137f1b,-0x200,-_0x596589._0x33e8c8,-_0x596589._0x33409b)]),'messages':_0x43cfe3['messages'][_0x39ca70(0x92,_0x596589._0x37313a,_0x596589._0x4a3008,0xa9)](normalizeMessage),'tools':structuredClone(_0x43cfe3['tools']??[]),'metadata':{'session_id':_0x43cfe3[_0x5ad4b3(-0x1de,-_0x596589._0x2f5d64,-0x1ea,-0x1d5)],'turn_id':_0x43cfe3[_0x39ca70(_0x596589._0xe75882,_0x596589._0x179818,0x95,0x66)]}};}function toChatRequest(_0x92aab5){const _0x3b0c28={_0x548bc4:0x3f,_0x284130:0x27,_0x4cf838:0x15d,_0xd43f66:0x15d,_0x286e2e:0x168,_0x14be77:0x150,_0x399580:0x15a,_0x55c31b:0x16e,_0x1d201a:0x185,_0x3a862c:0x187,_0x3f5027:0x156,_0x18ad7b:0x40,_0x5cd18f:0x5d,_0x576ef2:0xe,_0x47eb91:0x28,_0x2cb1c9:0x14,_0x5c8bd9:0x191,_0x3bfcc0:0x181,_0x2c9be0:0xf,_0x5e0899:0x2d,_0x1518f4:0x188,_0x44cad5:0x189,_0x14c52a:0x16d,_0x34e6f1:0x3c,_0x3abd8c:0x25,_0x276151:0x57,_0x53c464:0x36},_0x5b1263={_0x39bf66:0xdb};function _0x5e5781(_0x1d3d28,_0x24d1e5,_0x2db59d,_0x3dcb75){return _0x443d(_0x1d3d28-0x59,_0x2db59d);}function _0x3e6a6c(_0x19083b,_0x580556,_0x315576,_0x146479){return _0x443d(_0x315576- -_0x5b1263._0x39bf66,_0x19083b);}return{'model':_0x92aab5['model'],..._0x92aab5['max_tokens']!==void 0x0?{'maxTokens':_0x92aab5[_0x3e6a6c(_0x3b0c28._0x548bc4,0x47,_0x3b0c28._0x284130,0x2d)]}:{},..._0x92aab5[_0x5e5781(_0x3b0c28._0x4cf838,0x15b,0x16c,0x16d)]?{'reasoning':structuredClone(_0x92aab5[_0x5e5781(_0x3b0c28._0xd43f66,_0x3b0c28._0x286e2e,_0x3b0c28._0x14be77,_0x3b0c28._0x399580)])}:{},'system':structuredClone(_0x92aab5[_0x5e5781(_0x3b0c28._0x55c31b,_0x3b0c28._0x1d201a,_0x3b0c28._0x3a862c,_0x3b0c28._0x3f5027)]),'messages':structuredClone(_0x92aab5['messages']),'tools':structuredClone(_0x92aab5[_0x5e5781(_0x3b0c28._0x399580,0x162,0x165,0x154)]),'metadata':{'sessionId':_0x92aab5[_0x3e6a6c(_0x3b0c28._0x18ad7b,0x75,_0x3b0c28._0x5cd18f,0x6c)][_0x3e6a6c(_0x3b0c28._0x576ef2,_0x3b0c28._0x47eb91,0x23,_0x3b0c28._0x2cb1c9)],'turnId':_0x92aab5[_0x5e5781(_0x3b0c28._0x5c8bd9,0x171,_0x3b0c28._0x3bfcc0,0x1ab)][_0x3e6a6c(_0x3b0c28._0x2c9be0,0x44,_0x3b0c28._0x5e0899,0x2c)],..._0x92aab5[_0x5e5781(0x191,_0x3b0c28._0x1518f4,0x17a,0x190)][_0x5e5781(0x16d,0x172,0x18d,0x157)]!==void 0x0?{'modelIdentity':_0x92aab5[_0x5e5781(0x191,0x1a3,0x1aa,_0x3b0c28._0x44cad5)][_0x5e5781(_0x3b0c28._0x14c52a,0x189,0x18d,0x179)]}:{},..._0x92aab5['metadata']['pricing_provider_id']!==void 0x0?{'pricingProviderId':_0x92aab5['metadata'][_0x3e6a6c(_0x3b0c28._0x34e6f1,0x32,0x46,0x55)]}:{}},..._0x92aab5[_0x3e6a6c(_0x3b0c28._0x3abd8c,0x24,0x45,0x52)]?{'outputFormat':structuredClone(_0x92aab5[_0x3e6a6c(_0x3b0c28._0x276151,_0x3b0c28._0x53c464,0x45,0x35)])}:{}};}function toModelRequest(_0x5e6378){const _0x4081dd={_0x486881:0x2e4,_0x445185:0x2ba,_0x3b082a:0x2db,_0x3ede86:0x2bd,_0x29060d:0x2f8,_0x50fbc6:0x31b,_0x29a5a0:0x309,_0x2f247a:0x2f5,_0x114d5c:0x301,_0xf3a6c7:0x301,_0x30b6af:0x30c,_0x558d4b:0x2fc,_0x36d795:0x303,_0x314ee1:0x2fa,_0x5d1790:0x2d8,_0x57e9fc:0x2cc,_0x563fbe:0x308,_0x400354:0x2ff,_0x3b2c08:0x2f6,_0x560d31:0x2b6,_0xf975b6:0x2ce,_0x4b8538:0x2c9,_0x16a6b2:0x2e9};function _0x2ca303(_0x524d47,_0x1f10a9,_0x18237f,_0x5406ff){return _0x443d(_0x18237f-0x1c9,_0x1f10a9);}function _0x5b5fb5(_0x7663b0,_0x2be1b9,_0x4f5b78,_0x316d50){return _0x443d(_0x316d50-0x1a9,_0x2be1b9);}return{'model':_0x5e6378[_0x2ca303(0x2f0,0x2ff,0x2e4,0x2dc)],..._0x5e6378['maxTokens']!==void 0x0?{'max_tokens':_0x5e6378[_0x5b5fb5(_0x4081dd._0x486881,_0x4081dd._0x445185,0x2f1,_0x4081dd._0x3b082a)]}:{},..._0x5e6378['reasoning']?{'reasoning':structuredClone(_0x5e6378[_0x5b5fb5(_0x4081dd._0x3ede86,0x2ae,0x2b4,0x2ad)])}:{},'system':structuredClone(_0x5e6378['system']),'messages':structuredClone(_0x5e6378[_0x5b5fb5(_0x4081dd._0x29060d,0x2e7,0x2cc,0x2d8)]),'tools':structuredClone(_0x5e6378[_0x5b5fb5(0x2c1,0x2c6,0x2b0,0x2aa)]),'metadata':{'session_id':_0x5e6378[_0x2ca303(0x2f0,_0x4081dd._0x50fbc6,0x301,0x2ff)]['sessionId'],'turn_id':_0x5e6378[_0x2ca303(0x2df,_0x4081dd._0x29a5a0,0x301,0x2fe)][_0x2ca303(0x2c4,0x2da,0x2e1,_0x4081dd._0x2f247a)],..._0x5e6378[_0x2ca303(0x2f8,_0x4081dd._0x114d5c,_0x4081dd._0xf3a6c7,_0x4081dd._0x30b6af)][_0x2ca303(0x2be,0x2e3,0x2d8,0x2f1)]!==void 0x0?{'model_identity':_0x5e6378[_0x2ca303(_0x4081dd._0x558d4b,_0x4081dd._0x36d795,_0x4081dd._0x114d5c,0x30d)][_0x2ca303(0x2bf,_0x4081dd._0x314ee1,_0x4081dd._0x5d1790,_0x4081dd._0x57e9fc)]}:{},..._0x5e6378[_0x2ca303(0x319,0x310,_0x4081dd._0x114d5c,_0x4081dd._0x563fbe)]['pricingProviderId']!==void 0x0?{'pricing_provider_id':_0x5e6378['metadata'][_0x5b5fb5(_0x4081dd._0x400354,_0x4081dd._0x3b2c08,0x2c2,0x2de)]}:{}},..._0x5e6378[_0x5b5fb5(0x2e3,_0x4081dd._0x560d31,_0x4081dd._0xf975b6,_0x4081dd._0x4b8538)]?{'outputFormat':structuredClone(_0x5e6378[_0x2ca303(0x2d2,0x2fe,_0x4081dd._0x16a6b2,0x2d7)])}:{}};}function toProviderModelRequest(_0x57b56f){const _0x11d5cf={_0x1ee117:0x2a0,_0x16fe3a:0x29a,_0x638f9f:0x30,_0x1694be:0x45,_0x324508:0x52,_0x827bd0:0x2a6,_0x163786:0x293,_0x34c4f7:0x1,_0x399476:0xa};function _0xdbec7c(_0x55cf6f,_0x3b9c58,_0xc31e8f,_0x366c8d){return _0x443d(_0x3b9c58- -0x102,_0x55cf6f);}function _0x50cbe3(_0x1747f9,_0x33767,_0x57ee07,_0x20b368){return _0x443d(_0x1747f9- -0x3bb,_0x57ee07);}return{'model':_0x57b56f[_0x50cbe3(-_0x11d5cf._0x1ee117,-0x29c,-_0x11d5cf._0x16fe3a,-0x2b9)],..._0x57b56f[_0xdbec7c(0x40,_0x11d5cf._0x638f9f,_0x11d5cf._0x1694be,_0x11d5cf._0x324508)]!==void 0x0?{'max_tokens':_0x57b56f[_0xdbec7c(0xe,0x30,0x24,0x31)]}:{},'system':structuredClone(_0x57b56f[_0x50cbe3(-_0x11d5cf._0x827bd0,-_0x11d5cf._0x163786,-0x29a,-0x29a)]),'messages':structuredClone(_0x57b56f['messages']),'tools':structuredClone(_0x57b56f[_0xdbec7c(-0x17,-_0x11d5cf._0x34c4f7,0xe,-_0x11d5cf._0x399476)])};}function toChatResponse(_0x1ae5b6){const _0x543402={_0x596872:0x133,_0x10030a:0x336,_0x59580c:0x352,_0x598ab4:0x354,_0x37bc90:0xef,_0x2550f8:0x102,_0x1bd8cf:0x11f,_0x227cee:0x10a,_0xf1acb3:0x32a,_0x200448:0x10e,_0x507164:0x117,_0x199eb8:0x103,_0x266048:0x335,_0x353800:0x357,_0x5431bb:0xf7,_0x250215:0xda,_0x475a6f:0x34e,_0x38bf9c:0x356};function _0x2e6992(_0x40b17a,_0x3f1298,_0x1c864b,_0xefb9b3){return _0x443d(_0x40b17a-0x22f,_0xefb9b3);}function _0x200809(_0x31f6df,_0x3244a5,_0x2aaa11,_0x4bb4b8){return _0x443d(_0x31f6df- -0x215,_0x4bb4b8);}return{'id':_0x1ae5b6['id'],'content':structuredClone(_0x1ae5b6['content']),'stopReason':_0x1ae5b6[_0x200809(-0x112,-0xf0,-_0x543402._0x596872,-0x100)],'usage':{'inputTokens':_0x1ae5b6[_0x2e6992(_0x543402._0x10030a,_0x543402._0x59580c,0x339,_0x543402._0x598ab4)][_0x200809(-_0x543402._0x37bc90,-0xf0,-0xf6,-_0x543402._0x2550f8)],'outputTokens':_0x1ae5b6[_0x200809(-0x10e,-_0x543402._0x1bd8cf,-_0x543402._0x227cee,-0x128)][_0x2e6992(_0x543402._0xf1acb3,0x331,0x326,0x33f)],..._0x1ae5b6[_0x200809(-_0x543402._0x200448,-_0x543402._0x507164,-0x102,-_0x543402._0x199eb8)]['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x1ae5b6[_0x2e6992(_0x543402._0x10030a,_0x543402._0x266048,_0x543402._0x353800,0x352)][_0x200809(-_0x543402._0x5431bb,-_0x543402._0x250215,-0x103,-0xdd)]}:{}},..._0x1ae5b6[_0x2e6992(0x348,_0x543402._0x475a6f,_0x543402._0x38bf9c,_0x543402._0x353800)]?{'providerState':structuredClone(_0x1ae5b6['providerState'])}:{}};}function toModelResponse(_0x3d3de8){const _0x539153={_0x447499:0x15,_0x45ebd6:0x26,_0x8ecac4:0x151,_0x4e699e:0x4,_0x17a3e9:0x12f,_0x2798ec:0x2d,_0x5b0ee6:0x43,_0x4d128e:0x28,_0x412a22:0x13b,_0x4d4258:0x16,_0x3b2108:0x34,_0x1a949b:0x3d,_0x5692c8:0xb,_0x4697fa:0x138,_0x38d51a:0x158},_0xff8ab3={_0x535abb:0x255},_0x23eb3c={_0x5d1b9c:0xf1};function _0x34bcb1(_0x12fa08,_0xcfb3b1,_0x5b4ddf,_0x372fe4){return _0x443d(_0xcfb3b1- -_0x23eb3c._0x5d1b9c,_0x5b4ddf);}function _0x51f4e7(_0x17d15a,_0x3cf8f9,_0x2cc459,_0x43c574){return _0x443d(_0x2cc459- -_0xff8ab3._0x535abb,_0x43c574);}return{'id':_0x3d3de8['id'],'type':_0x34bcb1(_0x539153._0x447499,_0x539153._0x45ebd6,0x26,0x3d),'role':'assistant','content':structuredClone(_0x3d3de8['content']),'stop_reason':_0x3d3de8[_0x51f4e7(-_0x539153._0x8ecac4,-0x15b,-0x15b,-0x155)],'stop_sequence':null,'usage':{'input_tokens':_0x3d3de8[_0x34bcb1(_0x539153._0x4e699e,0x16,0x15,0x33)][_0x51f4e7(-_0x539153._0x17a3e9,-0x149,-0x14c,-0x12b)],'output_tokens':_0x3d3de8['usage'][_0x34bcb1(_0x539153._0x2798ec,0x40,_0x539153._0x5b0ee6,0x26)],..._0x3d3de8[_0x34bcb1(0x11,0x16,_0x539153._0x4d128e,0xf)][_0x51f4e7(-0x130,-0x122,-_0x539153._0x412a22,-0x128)]!==void 0x0?{'reasoning_tokens':_0x3d3de8[_0x34bcb1(0x16,_0x539153._0x4d4258,_0x539153._0x3b2108,0xe)][_0x34bcb1(0x3c,0x29,_0x539153._0x1a949b,_0x539153._0x5692c8)]}:{}},..._0x3d3de8[_0x51f4e7(-0x128,-_0x539153._0x4697fa,-0x13c,-0x148)]?{'providerState':structuredClone(_0x3d3de8[_0x51f4e7(-_0x539153._0x38d51a,-0x135,-0x13c,-0x146)])}:{}};}function responseToAssistantMessage(_0x597e1e){const _0x569605={_0x330ce4:0x1d6,_0x4a77ca:0x1b1,_0x5e1b3c:0x19b},_0x4913bc={_0x3ded6b:0x2b7};function _0x8e92c0(_0x3a4ad1,_0x312c4a,_0x22ca5e,_0x42aca3){return _0x443d(_0x312c4a-0x9c,_0x42aca3);}function _0x4954fc(_0x5c6209,_0x35a12d,_0x16af0e,_0xef3924){return _0x443d(_0x5c6209- -_0x4913bc._0x3ded6b,_0x35a12d);}return{'role':_0x4954fc(-0x1bf,-0x1ba,-0x1b4,-_0x569605._0x330ce4),'content':normalizeContent(_0x597e1e['content']),..._0x597e1e['providerState']?{'providerState':structuredClone(_0x597e1e[_0x8e92c0(_0x569605._0x4a77ca,0x1b5,_0x569605._0x5e1b3c,0x1bd)])}:{}};}function createReasoningMessage(_0x5e3ca9){const _0x50f59f={_0x582f10:0x19a,_0x531048:0x1a0,_0x4b98fc:0x17e,_0x1c39c8:0x1ef,_0x3b87c8:0x1e8},_0x529223={_0x2efb84:0x2cd},_0x1b95fc={_0x52f8af:0x20b},_0x4f08bd={_0xe510f2:0x21b,_0x38ae0d:0x231,_0x25ce8c:0x20b,_0x25e1b9:0x44c,_0x15ff2b:0x432,_0x4c7b22:0x41d,_0x2524a8:0x461,_0x3e4aaf:0x202,_0x364cd1:0x20b},_0x53a8c4={_0x39462c:0xff,_0x4053b5:0x547},_0x9dbf53=normalizeContent(_0x5e3ca9?.[_0x3c1b9b(-0x1a1,-0x1af,-0x1c3,-_0x50f59f._0x582f10)])[_0x3c1b9b(-_0x50f59f._0x531048,-_0x50f59f._0x4b98fc,-0x191,-0x184)](_0x1e22c4=>{function _0x34574c(_0x119ff0,_0x36583b,_0x1d23fe,_0x110170){return _0x14c3b0(_0x119ff0-_0x53a8c4._0x39462c,_0x110170,_0x1d23fe-0x52,_0x36583b-_0x53a8c4._0x4053b5);}function _0x1450c5(_0x51e831,_0x43a34b,_0x4d0461,_0x4a72d7){return _0x14c3b0(_0x51e831-0x127,_0x4d0461,_0x4d0461-0x47,_0x43a34b- -0x11a);}return _0x1e22c4[_0x1450c5(-0x236,-_0x4f08bd._0xe510f2,-0x214,-0x1fc)]===_0x1450c5(-_0x4f08bd._0x38ae0d,-0x218,-_0x4f08bd._0x25ce8c,-0x214)||_0x1e22c4['type']===_0x34574c(_0x4f08bd._0x25e1b9,_0x4f08bd._0x15ff2b,0x43d,_0x4f08bd._0x4c7b22)||_0x1e22c4[_0x34574c(0x435,0x446,0x44d,_0x4f08bd._0x2524a8)]===_0x1450c5(-0x216,-_0x4f08bd._0x3e4aaf,-0x1e5,-_0x4f08bd._0x364cd1);});if(_0x9dbf53[_0x3c1b9b(-0x1d0,-_0x50f59f._0x1c39c8,-0x1e1,-_0x50f59f._0x3b87c8)]===0x0)return void 0x0;function _0x14c3b0(_0x408fbc,_0x446723,_0x484697,_0x8fc3b0){return _0x443d(_0x8fc3b0- -_0x1b95fc._0x52f8af,_0x446723);}function _0x3c1b9b(_0x958d0d,_0x5b1196,_0x4366cb,_0x4dca64){return _0x443d(_0x958d0d- -_0x529223._0x2efb84,_0x4dca64);}return{'role':'assistant','content':_0x9dbf53};}function createAssistantTextMessage(_0x4fba41){const _0x420550={_0xf5dc99:0xd7,_0x37302b:0xcc,_0x5c200f:0xc8,_0x2b512a:0xd1},_0x21bb77={_0x306010:0x1c9},_0xf8899={_0x2f112a:0x204,_0x160199:0x20e,_0x206937:0x218,_0x1d9d5e:0xd6,_0x26c305:0xce,_0x35289e:0xe5},_0x5f153b=normalizeContent(_0x4fba41?.['content'])['filter'](_0x49ec88=>{function _0x354120(_0x3e4126,_0x13e373,_0x58f697,_0x8a69b1){return _0x443d(_0x58f697- -0x1c5,_0x3e4126);}function _0x714127(_0x2f9735,_0x4e9561,_0x2156f8,_0x11f49b){return _0x443d(_0x11f49b- -0x322,_0x4e9561);}return _0x49ec88[_0x714127(-0x213,-_0xf8899._0x2f112a,-_0xf8899._0x160199,-_0xf8899._0x206937)]===_0x354120(-_0xf8899._0x1d9d5e,-0xc9,-_0xf8899._0x26c305,-_0xf8899._0x35289e);});function _0x5770b8(_0x53c6de,_0x4b2e59,_0x341aff,_0x3dc2d2){return _0x443d(_0x4b2e59-0x191,_0x3dc2d2);}function _0x4ba027(_0x259df6,_0x3df3c3,_0x390253,_0x391c3a){return _0x443d(_0x391c3a- -_0x21bb77._0x306010,_0x3df3c3);}if(_0x5f153b[_0x4ba027(-_0x420550._0xf5dc99,-0xe6,-0xed,-_0x420550._0x37302b)]===0x0)return void 0x0;return{'role':_0x4ba027(-0xc9,-0xb9,-_0x420550._0x5c200f,-_0x420550._0x2b512a),'content':_0x5f153b};}function createToolUseMessage(_0x125fe1){const _0x547d5d={_0x50d527:0x196,_0x3c7b2d:0x155,_0x578a31:0x150,_0xe55fc8:0x6,_0x3a82e7:0x1a,_0x2c61be:0x15},_0x5af695={_0x5baccc:0x69},_0x3283cc={_0x5d669f:0x7a,_0x3153ad:0x64,_0x1cb6af:0x88,_0x118106:0x4fe,_0x3f89e0:0x50d,_0x3c75fa:0x4ee};function _0x2cdb29(_0x5ea00f,_0x129d4f,_0x2a9cba,_0x24405d){return _0x443d(_0x5ea00f- -0xf2,_0x2a9cba);}const _0x47803e=normalizeContent(_0x125fe1?.['content'])[_0x578c00(0x1ae,_0x547d5d._0x50d527,0x1ad,0x182)](_0x5c3aab=>{const _0x349bd9={_0x45f5b3:0x1ed},_0xf27049={_0x568a17:0x147,_0x321b6a:0x1ae};function _0x48af76(_0x46d092,_0x443a54,_0x51dd4c,_0x57eea8){return _0x578c00(_0x46d092-_0xf27049._0x568a17,_0x57eea8-0x35e,_0x51dd4c,_0x57eea8-_0xf27049._0x321b6a);}function _0x4a9e73(_0x41f6dc,_0x4ff150,_0x53bf26,_0x12e59e){return _0x578c00(_0x41f6dc-0x107,_0x41f6dc- -_0x349bd9._0x45f5b3,_0x12e59e,_0x12e59e-0x8c);}return _0x5c3aab[_0x4a9e73(-_0x3283cc._0x5d669f,-0x72,-_0x3283cc._0x3153ad,-_0x3283cc._0x1cb6af)]===_0x48af76(_0x3283cc._0x118106,_0x3283cc._0x3f89e0,0x4f2,_0x3283cc._0x3c75fa);});if(_0x47803e[_0x578c00(_0x547d5d._0x3c7b2d,0x166,0x149,_0x547d5d._0x578a31)]===0x0)return void 0x0;function _0x578c00(_0x37b849,_0x34935f,_0x3dc355,_0x2e999e){return _0x443d(_0x34935f-_0x5af695._0x5baccc,_0x3dc355);}return{'role':_0x2cdb29(_0x547d5d._0xe55fc8,0x21,-_0x547d5d._0x3a82e7,_0x547d5d._0x2c61be),'content':_0x47803e};}function _0x1a20(){const _0x3e2deb=['DhjPBq','zMXHDe1HCa','ndG3mdG4CxzRsg9c','y29UDgvUDa','zMLSDgvY','Dg9VBf91C2vFAwq','BwvZC2fNzxm','kgvUy3j5ChrLzcbYzwfZB25PBMCP','B3v0Chv0vg9Rzw5Z','Bwf4vg9Rzw5Z','BwfW','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ChjPy2LUz1bYB3zPzgvYswq','otm2nJK2BMPsz1bd','mti1mdK5mwjSDK1dqq','Bwv0ywrHDge','C2vZC2LVBKLK','yw50AhjVCgLJx3rOAw5RAw5N','Dgv4Da','yxnZAxn0yw50','ndGWnJi4ohvHsLncEq','C3rVCfjLyxnVBG','B3v0Chv0x3rVA2vUCW','B3v0Chv0','BgvUz3rO','C2vZC2LVBL9Pza','B3jPz2LUtw9KzwXjzgvUDgL0Eq','Dg9VBf9Yzxn1Bhq','Dg9VBhm','Bwf4x3rVA2vUCW','C3rVCf9YzwfZB24','CMvHC29UAw5N','zxjYB3i','AM9PBG','DxnHz2u','DhvYBL9Pza','Aw5WDxruB2TLBNm','DhLWzq','mta2mZu4nfb2vMzvDW','DgHPBMTPBMC','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3vTBwfYEq','Bw9KzwXjzgvUDgL0Eq','ywrK','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','AgfZ','khjLzgfJDgvKihjLyxnVBMLUzYK','Bw9KzwXFAwrLBNrPDhK','C3LZDgvT','zw5JCNLWDgvKq29UDgvUDa','BwvZC2fNzq','DhvYBKLK','ChjVDMLKzxjtDgf0zq','CMvHC29UAw5Nvg9Rzw5Z','Bw9KzwW','C3rYAw5N','ChvZAa','CMvHC29UAw5Nx3rVA2vUCW','C3rHDhvZ','B3v0Chv0rM9YBwf0','ChjPy2LUz19WCM92AwrLCL9Pza','mtGYnJeXmhPiBu91tG','B3bLBMfPx3jLyxnVBMLUzW','mty2mtm4mtresejsAfC','CM9Szq','Aw5WDxrFDg9Rzw5Z','Dg9VBf91C2u','DxnLCG'];_0x1a20=function(){return _0x3e2deb;};return _0x1a20();}function getTextFromMessage(_0x16b302){const _0x5ae935={_0x54bf8f:0x1d3,_0x2a072c:0x1d3,_0x4018e7:0xeb,_0x28f814:0xfe,_0x1ba32c:0xe5,_0x4eacd6:0xee},_0x50b059={_0x314a9c:0x218},_0x11c993={_0x16cbc8:0xa7};function _0x25ad0d(_0x2af092,_0x121246,_0x205a86,_0x142967){return _0x443d(_0x121246-_0x11c993._0x16cbc8,_0x205a86);}function _0x41af08(_0x122f96,_0x18eae1,_0x52ef61,_0x55c74f){return _0x443d(_0x18eae1- -_0x50b059._0x314a9c,_0x122f96);}return normalizeContent(_0x16b302?.[_0x25ad0d(0x1e9,_0x5ae935._0x54bf8f,0x1bf,_0x5ae935._0x2a072c)])[_0x41af08(-0x103,-_0x5ae935._0x4018e7,-_0x5ae935._0x28f814,-0xde)](_0x3f6625=>_0x3f6625[_0x25ad0d(0x1d0,0x1b1,0x1a0,0x19e)]===_0x41af08(-0x11d,-0x121,-0x10d,-0x12e))[_0x41af08(-0xdc,-_0x5ae935._0x1ba32c,-0xd7,-_0x5ae935._0x4eacd6)](_0x4d7acf=>_0x4d7acf[_0x25ad0d(0x1ad,0x19e,0x199,0x195)])['join']('\x0a');}function getReasoningTextFromMessage(_0x2ecf0c){const _0x4a5226={_0x2f3f58:0x390,_0x1e8cc3:0x3a3,_0x468f3b:0x383,_0x41fa64:0xdf,_0x39f3b3:0x107,_0x40f59d:0x118},_0x593d7b={_0x21d44e:0x8f,_0x49ca9e:0x91,_0x124a4e:0xb8,_0x165f47:0xad,_0x2f0f67:0x8f,_0x4d3ebf:0x86,_0x54c76b:0x9e,_0x1bf415:0x9c,_0x1aca14:0x8b,_0x39b597:0x8f,_0x33887d:0x84,_0x523d94:0x276,_0xdbf6b1:0x2ae,_0x2736cd:0x28e,_0x3ba946:0x29b,_0x40064d:0x276,_0x1ebea1:0x2ae,_0x18aee5:0x292,_0x1d0363:0x299,_0x2d1cb4:0x2b8,_0x47c221:0x296,_0x5db405:0x2d2,_0xa636e:0x2b5,_0x23e3fb:0x274,_0x286fde:0x26f,_0x5d75c8:0x285,_0x4f0bf5:0x97,_0x15fa2f:0xa4,_0x3b8922:0xa9,_0x565d63:0x2a9,_0x337d89:0x2ca,_0x2818f1:0x2b1,_0x52c373:0x285,_0x3e3ab3:0xac,_0x5b34c6:0xab,_0x3bb05c:0x2a0,_0x40a1b6:0x29e,_0xeb48f3:0x77},_0x585b73={_0x12e924:0x264};function _0x22beaa(_0x515906,_0x323d0c,_0x3998d9,_0x197700){return _0x443d(_0x515906-_0x585b73._0x12e924,_0x323d0c);}function _0x637623(_0x539b7b,_0x5a1f86,_0x4cf664,_0x122493){return _0x443d(_0x5a1f86- -0x223,_0x539b7b);}return normalizeContent(_0x2ecf0c?.[_0x22beaa(_0x4a5226._0x2f3f58,_0x4a5226._0x1e8cc3,0x387,_0x4a5226._0x468f3b)])[_0x637623(-_0x4a5226._0x41fa64,-0xf9,-_0x4a5226._0x39f3b3,-0x105)](_0x42a4de=>{const _0x222179={_0x23b90a:0x88,_0x455517:0x7c},_0x1379d3={_0x26ec2b:0x9c};if(_0x42a4de['type']===_0x20abf2(-_0x593d7b._0x21d44e,-0xa5,-_0x593d7b._0x49ca9e,-_0x593d7b._0x124a4e))return _0x42a4de[_0x20abf2(-_0x593d7b._0x165f47,-_0x593d7b._0x2f0f67,-_0x593d7b._0x4d3ebf,-0x71)]['trim']()[_0x20abf2(-0x83,-_0x593d7b._0x54c76b,-_0x593d7b._0x1bf415,-_0x593d7b._0x1aca14)]>0x0?[_0x42a4de[_0x20abf2(-0x96,-_0x593d7b._0x39b597,-0x86,-_0x593d7b._0x33887d)]]:[];if(_0x42a4de[_0x4c633a(_0x593d7b._0x523d94,_0x593d7b._0xdbf6b1,0x278,0x292)]===_0x4c633a(0x27e,0x2ad,0x279,0x295))return[_0x4c633a(_0x593d7b._0x2736cd,0x2b8,0x2bb,_0x593d7b._0x3ba946)];function _0x4c633a(_0x570be8,_0x1c8e28,_0x1585b7,_0x5e93e8){return _0x637623(_0x1c8e28,_0x5e93e8-0x3ab,_0x1585b7-_0x1379d3._0x26ec2b,_0x5e93e8-0x9c);}if(_0x42a4de[_0x4c633a(_0x593d7b._0x40064d,_0x593d7b._0x1ebea1,0x27b,_0x593d7b._0x18aee5)]!=='openai_reasoning')return[];const _0x3c930d=_0x42a4de[_0x4c633a(_0x593d7b._0x1d0363,_0x593d7b._0x2d1cb4,0x297,_0x593d7b._0x47c221)]['map'](_0x1b2edf=>_0x1b2edf[_0x4c633a(0x29b,0x291,0x299,0x27f)])[_0x4c633a(0x294,0x2b7,_0x593d7b._0x5db405,_0x593d7b._0xa636e)](_0x83e343=>_0x83e343['trim']()[_0x4c633a(0x272,0x2a1,0x286,0x285)]>0x0)['join']('\x0a\x0a');function _0x20abf2(_0x43f1b4,_0x4d6632,_0x239533,_0x33ee1b){return _0x637623(_0x43f1b4,_0x4d6632-_0x222179._0x23b90a,_0x239533-0x111,_0x33ee1b-_0x222179._0x455517);}if(_0x3c930d[_0x4c633a(_0x593d7b._0x23e3fb,_0x593d7b._0x286fde,0x276,_0x593d7b._0x5d75c8)]>0x0)return[_0x3c930d];if(_0x42a4de[_0x20abf2(-_0x593d7b._0x4f0bf5,-_0x593d7b._0x15fa2f,-0xb2,-_0x593d7b._0x3b8922)]&&_0x42a4de[_0x4c633a(0x27b,0x27c,0x27e,0x27f)][_0x4c633a(_0x593d7b._0x565d63,0x2a3,_0x593d7b._0x337d89,_0x593d7b._0x2818f1)]()[_0x4c633a(0x2a1,0x298,0x28f,_0x593d7b._0x52c373)]>0x0)return[_0x42a4de[_0x20abf2(-_0x593d7b._0x3e3ab3,-_0x593d7b._0x15fa2f,-_0x593d7b._0x5b34c6,-0x9d)]];return _0x42a4de[_0x4c633a(0x28a,_0x593d7b._0x3bb05c,0x2aa,_0x593d7b._0x40a1b6)]?[_0x20abf2(-0x75,-0x6b,-_0x593d7b._0xeb48f3,-0x77)]:[];})[_0x637623(-0x125,-0x11d,-_0x4a5226._0x40f59d,-0x128)]('\x0a\x0a');}function getToolUseBlocks(_0x303806){const _0x44364a={_0x1d1119:0x3d0,_0x1cfe6d:0x3f2,_0x1b2bc8:0x3f8},_0x51f9ac={_0x4bdae2:0x2c5};function _0xf9106(_0x55df07,_0x583ba9,_0x5c7adb,_0x249771){return _0x443d(_0x5c7adb-0x3bb,_0x583ba9);}function _0x3d834c(_0x14fd55,_0x526d67,_0x126fc8,_0xc12d93){return _0x443d(_0x126fc8-_0x51f9ac._0x4bdae2,_0xc12d93);}return normalizeContent(_0x303806?.['content'])[_0x3d834c(_0x44364a._0x1d1119,0x401,_0x44364a._0x1cfe6d,_0x44364a._0x1b2bc8)](_0x46e732=>_0x46e732[_0xf9106(0x4e0,0x4bc,0x4c5,0x4c9)]===_0x3d834c(0x3f3,0x3f2,0x3ec,0x3d9));}function getToolResultBlocks(_0x479f51){const _0x5f1efa={_0x406834:0xa4,_0x4c9067:0xad,_0x26278c:0x403,_0x2f8f02:0x409},_0x35e4c6={_0x45b118:0x2dc};function _0x2648df(_0x332161,_0x5b6761,_0x56d924,_0xeac288){return _0x443d(_0xeac288-_0x35e4c6._0x45b118,_0x5b6761);}function _0x2467fd(_0x1f3393,_0x4b0290,_0x21491b,_0x576278){return _0x443d(_0x21491b- -0x85,_0x576278);}return normalizeContent(_0x479f51?.[_0x2467fd(_0x5f1efa._0x406834,0xc4,0xa7,_0x5f1efa._0x4c9067)])[_0x2648df(0x40f,_0x5f1efa._0x26278c,0x3ff,_0x5f1efa._0x2f8f02)](_0x230b91=>_0x230b91['type']==='tool_result');}function createToolResultUserMessage(_0x3ea69c){const _0x3c4dc0={_0x24124c:0x13d,_0x20826a:0x140},_0x198c56={_0x481dbe:0x1b,_0x553abb:0x3b,_0x479a8e:0x22,_0x27ec9a:0xb,_0x52a807:0x2a,_0x52cac3:0x14,_0x16e4cf:0x23,_0x23b7ad:0x3f7,_0xbed317:0x415,_0x51d624:0x433,_0x7e8e99:0x428},_0x41d9e7={_0x390451:0x1ba,_0x121193:0x5a},_0x3e20aa={_0x5e9f74:0x17b,_0x4f1ba7:0x162};function _0x468d26(_0x1b693a,_0x1c7903,_0x4381f0,_0x18d99f){return _0x443d(_0x18d99f-0x18,_0x4381f0);}function _0x439676(_0x27a9f5,_0x3029ba,_0x29369d,_0xdb263d){return _0x443d(_0x27a9f5-0x396,_0xdb263d);}return{'role':_0x468d26(_0x3c4dc0._0x24124c,0x15a,0x12d,_0x3c4dc0._0x20826a),'content':_0x3ea69c[_0x468d26(0x16b,0x154,0x129,0x14b)](_0x561faf=>{function _0x1f2b55(_0x784ce9,_0x24df47,_0x3cd240,_0x175eab){return _0x439676(_0x24df47- -0x86,_0x24df47-_0x3e20aa._0x5e9f74,_0x3cd240-_0x3e20aa._0x4f1ba7,_0x3cd240);}function _0x46d24e(_0x37bc5b,_0x2b7065,_0x139900,_0x2f017f){return _0x468d26(_0x37bc5b-_0x41d9e7._0x390451,_0x2b7065-_0x41d9e7._0x121193,_0x37bc5b,_0x2b7065- -0x129);}return{'type':'tool_result','tool_use_id':_0x561faf['callId'],'content':_0x561faf[_0x46d24e(0x2a,_0x198c56._0x481dbe,_0x198c56._0x553abb,_0x198c56._0x479a8e)]??_0x561faf[_0x46d24e(-0x11,-0x15,-0x1b,_0x198c56._0x27ec9a)],'is_error':_0x561faf[_0x46d24e(_0x198c56._0x52a807,0xe,_0x198c56._0x52cac3,_0x198c56._0x16e4cf)]===_0x1f2b55(_0x198c56._0x23b7ad,_0x198c56._0xbed317,_0x198c56._0x51d624,_0x198c56._0x7e8e99)};})};}function _0x3945f7(_0x5b9ee2,_0x184059,_0xaaa2b3,_0x1e4537){const _0x2d38e3={_0x710e93:0x14d};return _0x443d(_0xaaa2b3-_0x2d38e3._0x710e93,_0x1e4537);}var INTERRUPTED_TOOL_RESULT_TEXT=_0x3945f7(0x265,0x286,0x281,0x284);function synthesizeMissingToolResults(_0x4e6236){const _0x2d174d={_0x23729c:0x168,_0x940de0:0x119,_0x3084f6:0x146,_0x2fe908:0x14b,_0x4d92e3:0x142,_0x33d907:0x158,_0x187a58:0x108,_0x51601c:0x125,_0x3027cc:0xf9},_0x15ec49={_0x237e5e:0x1ed,_0x62839f:0x3b6},_0x32de08={_0x14498a:0x16,_0x326c4b:0x155},_0x467d61=new Set();for(const _0x28b905 of _0x4e6236){for(const _0x4a0d70 of getToolResultBlocks(_0x28b905)){_0x467d61[_0xe7466f(-0x159,-0x157,-_0x2d174d._0x23729c,-0x15e)](_0x4a0d70[_0xe7466f(-0x13b,-0x139,-_0x2d174d._0x940de0,-0x14f)]);}}const _0x394101=[];function _0x6394e4(_0xd5b1e3,_0x7b5edc,_0x146833,_0x2517c7){return _0x3945f7(_0xd5b1e3-0xec,_0x7b5edc-_0x32de08._0x14498a,_0xd5b1e3- -_0x32de08._0x326c4b,_0x146833);}function _0xe7466f(_0x3d6f1f,_0x4db0fd,_0x5a549a,_0x10a089){return _0x3945f7(_0x3d6f1f-_0x15ec49._0x237e5e,_0x4db0fd-0x13f,_0x3d6f1f- -_0x15ec49._0x62839f,_0x10a089);}for(const _0x38d4ff of _0x4e6236){_0x394101[_0xe7466f(-0x14c,-_0x2d174d._0x3084f6,-_0x2d174d._0x2fe908,-_0x2d174d._0x4d92e3)](_0x38d4ff);const _0xb6fa16=getToolUseBlocks(_0x38d4ff)['filter'](_0x13917d=>!_0x467d61[_0xe7466f(-0x157,-0x157,-0x156,-0x179)](_0x13917d['id']));if(_0xb6fa16[_0xe7466f(-0x16c,-0x189,-0x15d,-0x188)]===0x0)continue;_0x394101['push']({'role':'user','content':_0xb6fa16[_0xe7466f(-0x136,-0x117,-_0x2d174d._0x33d907,-0x12f)](_0x4d14e2=>({'type':_0xe7466f(-0x169,-0x16e,-0x149,-0x17c),'tool_use_id':_0x4d14e2['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x34e9ae of _0xb6fa16){_0x467d61[_0x6394e4(_0x2d174d._0x187a58,_0x2d174d._0x51601c,_0x2d174d._0x3027cc,0xef)](_0x34e9ae['id']);}}return _0x394101;}function _0x443d(_0x1d9f7f,_0x589e2b){_0x1d9f7f=_0x1d9f7f-0xf6;const _0x1a201f=_0x1a20();let _0x443dc6=_0x1a201f[_0x1d9f7f];if(_0x443d['TsMdiJ']===undefined){var _0x5ac93c=function(_0x56dd15){const _0x1ec896='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5ed14e='',_0x369024='';for(let _0x4a1641=0x0,_0x42cbcf,_0x459b06,_0x5db23e=0x0;_0x459b06=_0x56dd15['charAt'](_0x5db23e++);~_0x459b06&&(_0x42cbcf=_0x4a1641%0x4?_0x42cbcf*0x40+_0x459b06:_0x459b06,_0x4a1641++%0x4)?_0x5ed14e+=String['fromCharCode'](0xff&_0x42cbcf>>(-0x2*_0x4a1641&0x6)):0x0){_0x459b06=_0x1ec896['indexOf'](_0x459b06);}for(let _0x270a3e=0x0,_0x1fa893=_0x5ed14e['length'];_0x270a3e<_0x1fa893;_0x270a3e++){_0x369024+='%'+('00'+_0x5ed14e['charCodeAt'](_0x270a3e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369024);};_0x443d['cjnARV']=_0x5ac93c,_0x443d['NsBhcw']={},_0x443d['TsMdiJ']=!![];}const _0x5b67c4=_0x1a201f[0x0],_0x7ce9d=_0x1d9f7f+_0x5b67c4,_0x4995e9=_0x443d['NsBhcw'][_0x7ce9d];return!_0x4995e9?(_0x443dc6=_0x443d['cjnARV'](_0x443dc6),_0x443d['NsBhcw'][_0x7ce9d]=_0x443dc6):_0x443dc6=_0x4995e9,_0x443dc6;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x365e(){var _0x30588e=['mtiZnvDNzMvwtq','BM90AwnLuM9Szq','mZuWotqWmfbpyMzMvW','mMfYEurfEa','odiXoencDefwuq','zgvSAxzLCNLlAw5K','nJG1mMTywNjnAW','C3vIywDLBNrszxbVCNq','mZa4mdG5ohbLrLLqyW','DhjHBNnJCMLWDfzPC2LIAwXPDhK','BwvZC2fNzq','ywDLBNqTB25SEq','C3rHDgu','vhvYBIbMywLSzwq','ndm3odCXu01VEKnk','mJe0neTdAxvNBG','mtGWmJKZmMDPA05dDq','odC0mZCXBKvir0rW','yMfJA2DYB3vUzc13B3jRlxn0B3bWzwq','yMfZAc1JB21WBgv0Aw9U','ChjLC2vUDgf0Aw9U'];_0x365e=function(){return _0x30588e;};return _0x365e();}(function(_0x1db985,_0x164c08){var _0x372e34={_0x2b4ad3:0x101,_0x38e986:0x103,_0x292365:0x102,_0x2a3a15:0x10f,_0x4782d0:0x9,_0x5ee453:0x104,_0x42ca25:0x105,_0x2684ed:0x104,_0x2645be:0x105,_0x359015:0x113,_0x2082be:0xf2,_0x2ae87d:0x105,_0x1318cf:0x10c,_0x349cc3:0x10d,_0x3a3e06:0x103,_0x3f00dd:0xc,_0x7d0126:0x4,_0x1f2440:0xfc},_0x20b72d={_0x5e6f62:0x1bc};function _0x40f6e5(_0x4efcc7,_0x358428,_0x4fccf0,_0x13addf){return _0x3448(_0x4fccf0- -0xc5,_0x358428);}function _0x17337b(_0x3438ce,_0x5305c8,_0x28fae7,_0x49695f){return _0x3448(_0x3438ce- -_0x20b72d._0x5e6f62,_0x49695f);}var _0xf278ff=_0x1db985();while(!![]){try{var _0x24829c=-parseInt(_0x40f6e5(_0x372e34._0x2b4ad3,_0x372e34._0x38e986,_0x372e34._0x292365,0xfd))/0x1+parseInt(_0x40f6e5(0x10a,_0x372e34._0x2a3a15,0x10c,0x107))/0x2*(parseInt(_0x17337b(0xe,0x13,_0x372e34._0x4782d0,0x18))/0x3)+parseInt(_0x40f6e5(_0x372e34._0x5ee453,_0x372e34._0x42ca25,_0x372e34._0x2684ed,0x103))/0x4+-parseInt(_0x40f6e5(_0x372e34._0x2645be,0x100,0x109,_0x372e34._0x359015))/0x5*(-parseInt(_0x40f6e5(_0x372e34._0x2082be,0xf5,0xfa,_0x372e34._0x2ae87d))/0x6)+parseInt(_0x40f6e5(0x102,_0x372e34._0x1318cf,_0x372e34._0x349cc3,_0x372e34._0x3a3e06))/0x7*(-parseInt(_0x17337b(_0x372e34._0x3f00dd,0x2,0xb,_0x372e34._0x7d0126))/0x8)+parseInt(_0x40f6e5(0xf6,0xf3,_0x372e34._0x1f2440,_0x372e34._0x2645be))/0x9+-parseInt(_0x40f6e5(0x114,0x10a,0x10b,0x112))/0xa;if(_0x24829c===_0x164c08)break;else _0xf278ff['push'](_0xf278ff['shift']());}catch(_0x22c8e2){_0xf278ff['push'](_0xf278ff['shift']());}}}(_0x365e,0x403e7));var TurnFailedError=class extends Error{['state'];constructor(_0x128ba3,_0x202aba){var _0x14a045={_0xf61ce2:0x127,_0x442876:0x120,_0x31e4ba:0x538,_0x231d27:0x543};function _0x2663f5(_0x4f313a,_0x155e4b,_0x51397d,_0x424786){return _0x3448(_0x51397d-0x37d,_0x155e4b);}function _0x563a8c(_0x528146,_0x5751fd,_0x531e05,_0x31e6df){return _0x3448(_0x531e05- -0x2ea,_0x5751fd);}super(_0x128ba3 instanceof Error?_0x128ba3[_0x563a8c(-0x12e,-0x12d,-_0x14a045._0xf61ce2,-_0x14a045._0x442876)]:_0x2663f5(0x542,_0x14a045._0x31e4ba,0x543,_0x14a045._0x231d27),{'cause':_0x128ba3}),this['name']='TurnFailedError',this[_0x563a8c(-0x128,-0x127,-0x125,-0x123)]=_0x202aba;}};function isTrustedCoordinatorNoticeShape(_0x9de860){var _0x2db31b={_0x1bd0b4:0x1e0,_0x32efde:0x1e5,_0x4610eb:0x1d6,_0xbdf894:0x1df,_0x2811e9:0x1da,_0x37b2e8:0x1cd,_0x5cdfc2:0x1ca,_0x5e4968:0x1d2,_0x545032:0x1cb,_0x55246e:0x1c6},_0x3bf16d={_0x49e59c:0x39a};function _0x323761(_0x27398a,_0x3ee5c5,_0x544eff,_0x682fb5){return _0x3448(_0x27398a- -0x3a2,_0x3ee5c5);}function _0x4a13c2(_0xf1bd75,_0x1bfe33,_0x3ecf36,_0x176b1b){return _0x3448(_0x3ecf36- -_0x3bf16d._0x49e59c,_0xf1bd75);}return typeof _0x9de860==='object'&&_0x9de860!==null&&'transcriptVisibility'in _0x9de860&&_0x9de860[_0x323761(-_0x2db31b._0x1bd0b4,-_0x2db31b._0x32efde,-0x1e8,-0x1e5)]===_0x4a13c2(-0x1cd,-0x1cf,-_0x2db31b._0x4610eb,-_0x2db31b._0xbdf894)&&(!(_0x4a13c2(-0x1d0,-0x1d7,-_0x2db31b._0x2811e9,-0x1cf)in _0x9de860)||_0x9de860['subagentReport']===void 0x0)&&(!('presentation'in _0x9de860)||_0x9de860[_0x323761(-0x1d5,-_0x2db31b._0x37b2e8,-_0x2db31b._0x5cdfc2,-_0x2db31b._0x5e4968)]===void 0x0)&&(!(_0x4a13c2(-0x1c5,-0x1c7,-_0x2db31b._0x545032,-0x1c7)in _0x9de860)||_0x9de860[_0x4a13c2(-_0x2db31b._0x4610eb,-0x1c9,-0x1cb,-_0x2db31b._0x55246e)]===void 0x0);}function isAgentOnlyBashCompletion(_0x3e4101){var _0x42ba63={_0x3f9f41:0x23e,_0x494bc5:0x234,_0x39fb48:0x239};function _0x3aabe4(_0x23acd3,_0x1336c6,_0x308561,_0x1caedf){return _0x3448(_0x308561-0x7b,_0x23acd3);}return isTrustedCoordinatorNoticeShape(_0x3e4101)&&_0x3aabe4(_0x42ba63._0x3f9f41,_0x42ba63._0x494bc5,_0x42ba63._0x39fb48,0x240)in _0x3e4101&&_0x3e4101['deliveryKind']==='bash-completion';}function _0x3448(_0x190f42,_0x36cb32){_0x190f42=_0x190f42-0x1be;var _0x365e5b=_0x365e();var _0x344847=_0x365e5b[_0x190f42];if(_0x3448['CvkubY']===undefined){var _0x53f62f=function(_0x17fa0){var _0x4d198f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x128ba3='',_0x202aba='';for(var _0x9de860=0x0,_0x3e4101,_0x2c608d,_0x114b8b=0x0;_0x2c608d=_0x17fa0['charAt'](_0x114b8b++);~_0x2c608d&&(_0x3e4101=_0x9de860%0x4?_0x3e4101*0x40+_0x2c608d:_0x2c608d,_0x9de860++%0x4)?_0x128ba3+=String['fromCharCode'](0xff&_0x3e4101>>(-0x2*_0x9de860&0x6)):0x0){_0x2c608d=_0x4d198f['indexOf'](_0x2c608d);}for(var _0x804fe2=0x0,_0x4a17d0=_0x128ba3['length'];_0x804fe2<_0x4a17d0;_0x804fe2++){_0x202aba+='%'+('00'+_0x128ba3['charCodeAt'](_0x804fe2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x202aba);};_0x3448['wOfvrU']=_0x53f62f,_0x3448['hNgclv']={},_0x3448['CvkubY']=!![];}var _0x36fef5=_0x365e5b[0x0],_0x5c6a5c=_0x190f42+_0x36fef5,_0x503f35=_0x3448['hNgclv'][_0x5c6a5c];return!_0x503f35?(_0x344847=_0x3448['wOfvrU'](_0x344847),_0x3448['hNgclv'][_0x5c6a5c]=_0x344847):_0x344847=_0x503f35,_0x344847;}function isAgentOnlyCoordinatorNotice(_0x2c608d){var _0x55ab8f={_0x3a7db7:0x3d,_0x269d3b:0x3c,_0x30fe82:0x43,_0x4fd2eb:0x39,_0xf6dfc6:0x51,_0x45a6ff:0x47},_0x5b5ce6={_0x18970d:0x205};function _0x2fdf80(_0xcb2de,_0x505021,_0xfb4730,_0x284833){return _0x3448(_0x284833- -_0x5b5ce6._0x18970d,_0xcb2de);}function _0x433cfc(_0x5e18b3,_0x4cc005,_0xb62a3c,_0x2aeb82){return _0x3448(_0x5e18b3- -0x1f3,_0x4cc005);}return isTrustedCoordinatorNoticeShape(_0x2c608d)&&_0x2fdf80(-0x4f,-0x4e,-_0x55ab8f._0x3a7db7,-0x47)in _0x2c608d&&(_0x2c608d[_0x2fdf80(-0x4d,-0x49,-_0x55ab8f._0x269d3b,-0x47)]===_0x2fdf80(-0x35,-0x43,-_0x55ab8f._0x30fe82,-_0x55ab8f._0x4fd2eb)||_0x2c608d[_0x2fdf80(-0x4a,-_0x55ab8f._0xf6dfc6,-0x4b,-_0x55ab8f._0x45a6ff)]===_0x2fdf80(-0x3b,-0x31,-0x32,-0x3a));}export{TurnFailedError,isAgentOnlyBashCompletion,isAgentOnlyCoordinatorNotice};
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5aa3c9,_0x5f3a1c){const _0x50ab6c={_0x2b87a6:0x209,_0x4662e7:0x204,_0x121b1c:0x206,_0x150add:0x217,_0x181cd0:0x20d,_0x4f60e7:0x4d3,_0x3e3973:0x4d7,_0x465268:0x4d6,_0x286025:0x4dd,_0x1491c9:0x4df,_0x5dccb9:0x4c7,_0x54455f:0x4d7,_0x5ae4ec:0x20b,_0x3db11c:0x4ce,_0x1c6dcd:0x4c8,_0x136d05:0x4d1,_0x85b91b:0x204},_0x913911=_0x5aa3c9();function _0x539e88(_0x3835a4,_0x554fcd,_0x494cbf,_0x35ec9c){return _0x5831(_0x35ec9c-0x5f,_0x494cbf);}function _0x454ea7(_0x4c6cea,_0x1d8c01,_0x497d64,_0x560b0e){return _0x5831(_0x560b0e-0x32b,_0x1d8c01);}while(!![]){try{const _0xab4fa2=-parseInt(_0x539e88(0x20b,_0x50ab6c._0x2b87a6,0x1ff,0x209))/0x1*(-parseInt(_0x539e88(0x202,0x1f9,0x20a,_0x50ab6c._0x4662e7))/0x2)+-parseInt(_0x539e88(_0x50ab6c._0x121b1c,0x205,_0x50ab6c._0x150add,_0x50ab6c._0x181cd0))/0x3+parseInt(_0x539e88(0x214,0x20f,0x205,0x20a))/0x4+parseInt(_0x454ea7(0x4d2,0x4d7,_0x50ab6c._0x4f60e7,_0x50ab6c._0x3e3973))/0x5+-parseInt(_0x454ea7(_0x50ab6c._0x465268,0x4e4,_0x50ab6c._0x286025,_0x50ab6c._0x1491c9))/0x6*(-parseInt(_0x454ea7(_0x50ab6c._0x5dccb9,0x4cc,_0x50ab6c._0x54455f,0x4cf))/0x7)+parseInt(_0x539e88(0x214,0x20a,_0x50ab6c._0x5ae4ec,0x20c))/0x8*(-parseInt(_0x454ea7(0x4c9,_0x50ab6c._0x5dccb9,_0x50ab6c._0x3db11c,_0x50ab6c._0x3db11c))/0x9)+-parseInt(_0x454ea7(0x4d5,_0x50ab6c._0x1c6dcd,0x4d4,_0x50ab6c._0x136d05))/0xa*(parseInt(_0x539e88(0x209,_0x50ab6c._0x85b91b,0x1fe,0x208))/0xb);if(_0xab4fa2===_0x5f3a1c)break;else _0x913911['push'](_0x913911['shift']());}catch(_0x1a2253){_0x913911['push'](_0x913911['shift']());}}}(_0x3724,0xb0284));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function _0x3724(){const _0x3d281a=['mte1ndm0ne1urhDysq','mZq0mdm1nxj3tM1bAa','Dgv4Da','CMvWBgfJzq','zMLSDgvY','yMfZzty0','Aw1Hz2uVANbLzW','ndaZmJqYqxrrshfq','zNjVBq','ChvZAa','BgvUz3rO','BgfZDeLUzgv4','mZzzBKzhr2G','n1nhu3v2Dq','mLrfEe9QtG','mZa4mtbhsMvKtxq','C2XPy2u','DgvZDa','ntGZu3bKEvjv','mtiXotaXovbHEKntBW','mZmYmdi5nK9kCfrMAq','mJq2mJq1menrCMTzDa'];_0x3724=function(){return _0x3d281a;};return _0x3724();}function normalizeMediaType(_0x37a5cd){const _0x41a2a9={_0x2b9ac6:0x2ef,_0x146e9e:0x2fc,_0x214188:0x2f2,_0x44cf21:0x2f4};function _0x29693e(_0x31f7fc,_0x543a5e,_0x2feb66,_0x4cfb00){return _0x5831(_0x2feb66-0x13f,_0x31f7fc);}return _0x37a5cd==='image/jpg'?_0x29693e(_0x41a2a9._0x2b9ac6,_0x41a2a9._0x146e9e,_0x41a2a9._0x214188,_0x41a2a9._0x44cf21):_0x37a5cd;}function isValidBase64(_0x118921){const _0x1b5652={_0x5599dd:0x455,_0x161621:0x6b,_0x407173:0x64,_0xa6f655:0x65};function _0x5541be(_0x2eca35,_0x268db5,_0x1561b3,_0x4aa035){return _0x5831(_0x2eca35-0x2a5,_0x1561b3);}if(_0x118921[_0x5541be(0x45c,_0x1b5652._0x5599dd,0x454,0x459)]===0x0||_0x118921['length']%0x4!==0x0)return![];function _0x34effe(_0x3f4494,_0x374385,_0x81e620,_0x215d9e){return _0x5831(_0x374385- -0x144,_0x3f4494);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x34effe(_0x1b5652._0x161621,_0x1b5652._0x407173,_0x1b5652._0xa6f655,0x5e)](_0x118921);}function collectImageMatches(_0x420d64){const _0x1b5562={_0x41f8b9:0x17d,_0x5a0f4b:0x188,_0x482247:0x17d,_0x16aacf:0x186,_0x386f7a:0x15f,_0x348e7f:0x16a,_0x1e7dd4:0x423},_0x3034c3={_0x30e87c:0x31f};function _0x2f571e(_0x4e0438,_0x8848e8,_0x20d081,_0x2524c1){return _0x5831(_0x4e0438-0x27a,_0x8848e8);}function _0xa4e6a9(_0x56bc53,_0x243db4,_0x9e7545,_0x4afcd6){return _0x5831(_0x9e7545- -_0x3034c3._0x30e87c,_0x4afcd6);}return DATA_URI_REGEX[_0xa4e6a9(-_0x1b5562._0x41f8b9,-_0x1b5562._0x5a0f4b,-_0x1b5562._0x482247,-_0x1b5562._0x16aacf)]=0x0,Array[_0xa4e6a9(-_0x1b5562._0x386f7a,-0x16c,-_0x1b5562._0x348e7f,-0x16d)](_0x420d64['matchAll'](DATA_URI_REGEX))[_0x2f571e(0x42b,0x435,0x427,_0x1b5562._0x1e7dd4)](_0x1d8985=>{const _0x577f57=(_0x1d8985[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x577f57);});}function hasPastedImages(_0x48b92){const _0x45c7fc={_0x53f908:0x72,_0xb793c7:0x6b};function _0x467525(_0x4f5b42,_0x15d43a,_0x299fa3,_0xe38d6c){return _0x5831(_0x299fa3- -0x228,_0x15d43a);}return collectImageMatches(_0x48b92)[_0x467525(-_0x45c7fc._0x53f908,-0x75,-0x71,-_0x45c7fc._0xb793c7)]>0x0;}function contentFromPastedText(_0x17693d){const _0xbdaed={_0x3d6ec2:0x3c,_0xf3fc9:0x3a,_0x123128:0x35,_0x1828ba:0x43,_0x701973:0x4b,_0x32a99b:0x4f,_0x4091d6:0x4f,_0x3b38ef:0x55,_0x6c9ed3:0x3c,_0x5d9c45:0x36,_0x5835e8:0x38,_0x2df9dc:0x3f,_0x5672a7:0x299,_0x49e888:0x2a0,_0x375a6:0x39,_0x2714e0:0x32,_0x3c0e04:0x31,_0x5509f5:0x3b,_0xb01313:0x44,_0x26fa0b:0x4c},_0x5bdcaf={_0x3e142e:0x1f2},_0x3034ee=collectImageMatches(_0x17693d);function _0x469c9b(_0x10dffb,_0x1c6ec9,_0x71a4b,_0x2499d1){return _0x5831(_0x10dffb-0xe9,_0x71a4b);}const _0x15ce86=[];function _0x506305(_0x37186d,_0x1467f3,_0x1e8c65,_0x4e35c7){return _0x5831(_0x37186d- -_0x5bdcaf._0x3e142e,_0x4e35c7);}let _0x5b29a5=0x0;for(const _0x3b4eee of _0x3034ee){const _0x1317bc=_0x3b4eee['index']??0x0,[_0x314bc7,_0x17d872,_0x181a8c]=_0x3b4eee;_0x1317bc>_0x5b29a5&&_0x15ce86[_0x506305(-_0xbdaed._0x3d6ec2,-_0xbdaed._0xf3fc9,-_0xbdaed._0x123128,-_0xbdaed._0x1828ba)]({'type':'text','text':_0x17693d[_0x506305(-_0xbdaed._0x701973,-_0xbdaed._0x32a99b,-_0xbdaed._0x4091d6,-_0xbdaed._0x3b38ef)](_0x5b29a5,_0x1317bc)}),_0x15ce86[_0x506305(-_0xbdaed._0x6c9ed3,-_0xbdaed._0x5d9c45,-0x3b,-0x38)]({'type':'image','source':{'type':_0x506305(-0x40,-_0xbdaed._0x5835e8,-_0xbdaed._0x2df9dc,-_0xbdaed._0x2df9dc),'media_type':normalizeMediaType(_0x17d872),'data':_0x181a8c[_0x469c9b(_0xbdaed._0x5672a7,_0xbdaed._0x5672a7,_0xbdaed._0x49e888,0x297)](/[\r\n]/g,'')}}),_0x5b29a5=_0x1317bc+_0x314bc7[_0x506305(-0x3b,-0x36,-_0xbdaed._0x375a6,-0x3f)];}return _0x5b29a5<_0x17693d[_0x506305(-0x3b,-_0xbdaed._0x2714e0,-_0xbdaed._0x3c0e04,-_0xbdaed._0x1828ba)]&&_0x15ce86['push']({'type':'text','text':_0x17693d['slice'](_0x5b29a5)}),_0x15ce86[_0x506305(-_0xbdaed._0x5509f5,-0x3f,-_0xbdaed._0xb01313,-_0xbdaed._0x3d6ec2)]>0x0?_0x15ce86:[{'type':_0x506305(-0x43,-0x4d,-_0xbdaed._0x26fa0b,-_0xbdaed._0x5835e8),'text':_0x17693d}];}function _0x5831(_0xee5b9,_0x587aab){_0xee5b9=_0xee5b9-0x1a2;const _0x3724a9=_0x3724();let _0x583190=_0x3724a9[_0xee5b9];if(_0x5831['qZeKXs']===undefined){var _0x1c2405=function(_0x40758f){const _0x332e47='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x37a5cd='',_0x118921='';for(let _0x420d64=0x0,_0x1d8985,_0x577f57,_0x48b92=0x0;_0x577f57=_0x40758f['charAt'](_0x48b92++);~_0x577f57&&(_0x1d8985=_0x420d64%0x4?_0x1d8985*0x40+_0x577f57:_0x577f57,_0x420d64++%0x4)?_0x37a5cd+=String['fromCharCode'](0xff&_0x1d8985>>(-0x2*_0x420d64&0x6)):0x0){_0x577f57=_0x332e47['indexOf'](_0x577f57);}for(let _0x17693d=0x0,_0x3034ee=_0x37a5cd['length'];_0x17693d<_0x3034ee;_0x17693d++){_0x118921+='%'+('00'+_0x37a5cd['charCodeAt'](_0x17693d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x118921);};_0x5831['UYFzUC']=_0x1c2405,_0x5831['olgFns']={},_0x5831['qZeKXs']=!![];}const _0x4d234a=_0x3724a9[0x0],_0x336184=_0xee5b9+_0x4d234a,_0x4bde8f=_0x5831['olgFns'][_0x336184];return!_0x4bde8f?(_0x583190=_0x5831['UYFzUC'](_0x583190),_0x5831['olgFns'][_0x336184]=_0x583190):_0x583190=_0x4bde8f,_0x583190;}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
|
package/dist/hooks/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x34b1(_0x18d844,_0xd19d3){_0x18d844=_0x18d844-0x16c;const _0x4e8da5=_0x4e8d();let _0x34b137=_0x4e8da5[_0x18d844];if(_0x34b1['amrJTr']===undefined){var _0x920bce=function(_0x321403){const _0x31f3ef='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x250b2b='',_0x297e83='';for(let _0x40c13a=0x0,_0x4b1d69,_0x30ae50,_0x153f71=0x0;_0x30ae50=_0x321403['charAt'](_0x153f71++);~_0x30ae50&&(_0x4b1d69=_0x40c13a%0x4?_0x4b1d69*0x40+_0x30ae50:_0x30ae50,_0x40c13a++%0x4)?_0x250b2b+=String['fromCharCode'](0xff&_0x4b1d69>>(-0x2*_0x40c13a&0x6)):0x0){_0x30ae50=_0x31f3ef['indexOf'](_0x30ae50);}for(let _0x242ffd=0x0,_0x4f5257=_0x250b2b['length'];_0x242ffd<_0x4f5257;_0x242ffd++){_0x297e83+='%'+('00'+_0x250b2b['charCodeAt'](_0x242ffd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x297e83);};_0x34b1['gZUvTV']=_0x920bce,_0x34b1['jwoRBH']={},_0x34b1['amrJTr']=!![];}const _0x457713=_0x4e8da5[0x0],_0x4a434a=_0x18d844+_0x457713,_0x4014ad=_0x34b1['jwoRBH'][_0x4a434a];return!_0x4014ad?(_0x34b137=_0x34b1['gZUvTV'](_0x34b137),_0x34b1['jwoRBH'][_0x4a434a]=_0x34b137):_0x34b137=_0x4014ad,_0x34b137;}(function(_0x3e72db,_0x494ddf){const _0x3ecb1a={_0x1be0c8:0x571,_0x6d04f3:0x2d,_0x42dd02:0x2f,_0x58153d:0x574,_0x16a63f:0x58a,_0x35efd7:0x37,_0x50f0ad:0x564,_0x558ed1:0x55e,_0x24f5fa:0x537,_0x2f032f:0x558,_0x5ac548:0x4a,_0x3cc5ff:0x44,_0x2d4900:0x4b,_0x434521:0x57d,_0x1cded1:0x563,_0xe51294:0x560,_0x24df50:0x41,_0x3b83b0:0x5a,_0x3001c2:0x57},_0x2e39d2={_0x5b6658:0x1c7},_0x3987fe=_0x3e72db();function _0x1a4227(_0x2bf369,_0x1b0b96,_0x3706d0,_0x5a0333){return _0x34b1(_0x5a0333- -_0x2e39d2._0x5b6658,_0x3706d0);}function _0x2eb5a9(_0x49d1b1,_0x452365,_0x27f91a,_0x375afd){return _0x34b1(_0x375afd-0x3cf,_0x452365);}while(!![]){try{const _0x5c7c64=parseInt(_0x2eb5a9(0x544,_0x3ecb1a._0x1be0c8,0x53b,0x556))/0x1+-parseInt(_0x1a4227(-_0x3ecb1a._0x6d04f3,-_0x3ecb1a._0x42dd02,-0x30,-0x39))/0x2*(-parseInt(_0x2eb5a9(_0x3ecb1a._0x58153d,0x59d,_0x3ecb1a._0x16a63f,0x57c))/0x3)+-parseInt(_0x1a4227(-0x44,-0x48,-0x16,-_0x3ecb1a._0x35efd7))/0x4+-parseInt(_0x2eb5a9(0x568,_0x3ecb1a._0x50f0ad,_0x3ecb1a._0x558ed1,0x569))/0x5+-parseInt(_0x2eb5a9(0x53c,_0x3ecb1a._0x24f5fa,0x55f,0x553))/0x6*(parseInt(_0x2eb5a9(0x56b,_0x3ecb1a._0x2f032f,0x57e,0x55e))/0x7)+-parseInt(_0x1a4227(-_0x3ecb1a._0x5ac548,-_0x3ecb1a._0x3cc5ff,-_0x3ecb1a._0x2d4900,-0x33))/0x8*(-parseInt(_0x2eb5a9(_0x3ecb1a._0x434521,_0x3ecb1a._0x1cded1,0x56c,_0x3ecb1a._0xe51294))/0x9)+parseInt(_0x1a4227(-0x4c,-_0x3ecb1a._0x24df50,-_0x3ecb1a._0x3b83b0,-_0x3ecb1a._0x3001c2))/0xa;if(_0x5c7c64===_0x494ddf)break;else _0x3987fe['push'](_0x3987fe['shift']());}catch(_0x135aeb){_0x3987fe['push'](_0x3987fe['shift']());}}}(_0x4e8d,0xefd32));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x250b2b,_0x297e83,_0x40c13a=DEFAULT_TIMEOUT_S,_0x4b1d69){const _0x3cd4a7={_0x21a4f6:0x81},_0x1ad644={_0x4f7993:0x60,_0xa8e33e:0x1cc,_0xbe43d6:0x1c4,_0x55ef5f:0x1bc,_0x106b98:0x1fb,_0x51c61a:0x6a,_0x229897:0x5b,_0x2c0e38:0x7c,_0x3fb1d7:0x97,_0x6ca000:0x1cf,_0x15a17d:0xaf,_0x35cf77:0x8d,_0x111cc5:0xa7,_0x54ff62:0x20c,_0x438c81:0x88,_0x4f27a2:0x4f,_0x350167:0x86,_0x1caaf5:0x93,_0x4f943e:0x8a,_0x59b69c:0x1dc,_0x75d002:0x1b9},_0x4b58d1={_0x3fe8a5:0x313,_0x4fa6b1:0x325,_0x1a8597:0x2fc,_0x1d51ed:0x2f7,_0x433bc4:0x13c,_0x95e689:0x312,_0x3b0b19:0x2f0,_0x50815a:0x32b,_0x2555df:0x32e,_0x5ab503:0x338,_0x7435c3:0x31d,_0x587934:0x30e,_0xfc7d7b:0x315,_0x212362:0x163,_0x4ddf6f:0x2f7,_0x10662a:0x311,_0x345b78:0x2e7,_0x4a2e84:0x162,_0x13b1de:0x320,_0x10808e:0x32a,_0x251cb9:0x13f,_0x3e7a55:0x16b,_0x55f011:0x14a,_0x81f271:0x13b,_0x125210:0x163},_0x3294e3={_0x1e0a09:0x473,_0x374e4a:0x297,_0x26ae40:0x289,_0x370644:0x281},_0x1ce698={_0x513d0d:0x20a},_0x30ae50=Date[_0x4df5de(-0x8a,-0x8c,-_0x3cd4a7._0x21a4f6,-0x81)]();function _0x4df5de(_0x32596e,_0x3bdcb8,_0x57dd15,_0x41332c){return _0x34b1(_0x57dd15- -_0x1ce698._0x513d0d,_0x3bdcb8);}return new Promise(_0x153f71=>{const _0x25e8b0={_0xb55d99:0x152,_0x15226f:0x12b},_0x54a189={_0x462d38:0x1ae},_0x58e391={_0x4a8d39:0xb,_0x2fc0e7:0xfe},_0xcdd02a={_0x2a8535:0x18,_0x3e38b4:0x37,_0x45890a:0x17,_0x919bbb:0xfc,_0x11131f:0x117,_0x14004a:0x10f,_0x2fdc28:0xda},_0x560db3={_0x136332:0x262,_0x5267de:0x48},_0x76f561={_0x4fa4fa:0x508,_0x48831d:0x50f,_0x26db5e:0x513},_0x242ffd=spawn('sh',['-c',_0x250b2b],{'stdio':[_0x155735(_0x1ad644._0x4f7993,0x49,0x56,_0x1ad644._0x4f7993),'pipe',_0x8edef5(_0x1ad644._0xa8e33e,_0x1ad644._0xbe43d6,_0x1ad644._0x55ef5f,0x1c6)],'env':{...process[_0x8edef5(_0x1ad644._0x106b98,0x1da,0x1c4,0x1f7)],'CLAUDE_PROJECT_DIR':_0x4b1d69??process['cwd']()}});let _0x4f5257='',_0xe727d='';_0x242ffd['stdout']['on']('data',_0x2dec57=>{_0x4f5257+=_0x2dec57['toString']();}),_0x242ffd[_0x155735(_0x1ad644._0x51c61a,_0x1ad644._0x229897,0x64,0x63)]['on'](_0x155735(0x92,_0x1ad644._0x2c0e38,_0x1ad644._0x3fb1d7,0x7b),_0x42a7c7=>{function _0x38232c(_0xf65ddc,_0x2c45c0,_0x44a565,_0x4cdeaf){return _0x155735(_0x2c45c0-0x475,_0x2c45c0-0x92,_0x44a565-0x191,_0x44a565);}_0xe727d+=_0x42a7c7[_0x38232c(0x4f8,_0x76f561._0x4fa4fa,_0x76f561._0x48831d,_0x76f561._0x26db5e)]();}),_0x242ffd[_0x8edef5(0x1d7,0x1ea,0x1e5,_0x1ad644._0x6ca000)]['on'](_0x155735(0x95,0x92,_0x1ad644._0x15a17d,0x86),_0x283c38=>{const _0x2f75e5={_0x39587e:0x188},_0x4d414b={_0x117694:0x149,_0x555b62:0x136};function _0x4e59c0(_0x1ff5a1,_0x585753,_0x3ffb97,_0x145bbf){return _0x8edef5(_0x1ff5a1-_0x4d414b._0x117694,_0x3ffb97-0x8e,_0x585753,_0x145bbf-_0x4d414b._0x555b62);}function _0x24d524(_0x181113,_0x56fa05,_0x4661e3,_0x1a059b){return _0x155735(_0x56fa05-0x403,_0x56fa05-_0x2f75e5._0x39587e,_0x4661e3-0xb8,_0x181113);}if(_0x283c38[_0x24d524(0x485,0x493,0x4ae,_0x3294e3._0x1e0a09)]!==_0x4e59c0(_0x3294e3._0x374e4a,_0x3294e3._0x26ae40,_0x3294e3._0x370644,0x281))throw _0x283c38;}),_0x242ffd[_0x155735(0x86,_0x1ad644._0x35cf77,0xa1,_0x1ad644._0x111cc5)][_0x8edef5(0x1ef,0x1fd,_0x1ad644._0x54ff62,0x215)](JSON[_0x155735(0x6c,_0x1ad644._0x438c81,_0x1ad644._0x4f27a2,0x58)](_0x297e83));function _0x8edef5(_0xf021d7,_0x587a92,_0x31305d,_0x305f2f){return _0x4df5de(_0xf021d7-0x28,_0x31305d,_0x587a92-_0x560db3._0x136332,_0x305f2f-_0x560db3._0x5267de);}_0x242ffd[_0x155735(_0x1ad644._0x350167,_0x1ad644._0x1caaf5,_0x1ad644._0x4f943e,0x7e)][_0x8edef5(_0x1ad644._0x59b69c,_0x1ad644._0x6ca000,0x1e2,_0x1ad644._0x75d002)]();const _0x46eeb7=setTimeout(()=>{const _0x1a5f9a={_0x1f1859:0xb1,_0x1756d1:0x7d,_0x1b6ba5:0xd5};_0x242ffd[_0x28801f(0x0,-_0xcdd02a._0x2a8535,-_0xcdd02a._0x3e38b4,-_0xcdd02a._0x45890a)]('SIGKILL');function _0x28801f(_0x62b63,_0x320a70,_0x48750d,_0x211878){return _0x155735(_0x211878- -_0x1a5f9a._0x1f1859,_0x320a70-_0x1a5f9a._0x1756d1,_0x48750d-_0x1a5f9a._0x1b6ba5,_0x62b63);}function _0x574451(_0x45909b,_0x3e1c90,_0x528f15,_0x114366){return _0x8edef5(_0x45909b-0x30,_0x3e1c90- -0xe2,_0x528f15,_0x114366-0x1b);}_0x153f71({'status':_0x574451(_0xcdd02a._0x919bbb,_0xcdd02a._0x11131f,0x136,_0xcdd02a._0x14004a),'error':_0x574451(_0xcdd02a._0x2fdc28,0xea,0xe9,0xdf)+_0x40c13a+'s','duration_ms':Date['now']()-_0x30ae50});},_0x40c13a*0x3e8);function _0x155735(_0x2824da,_0x3bf9f9,_0x1079ea,_0x56eca3){return _0x4df5de(_0x2824da-_0x58e391._0x4a8d39,_0x56eca3,_0x2824da-_0x58e391._0x2fc0e7,_0x56eca3-0xcf);}_0x242ffd['on']('close',_0xef1d93=>{const _0x2660f3={_0x1625e1:0x12,_0x4d4c2d:0x41},_0x1b49cd={_0x4f6386:0x7c,_0x37fa52:0x11a};clearTimeout(_0x46eeb7);const _0x360a70=Date[_0x10d2d6(_0x4b58d1._0x3fe8a5,0x317,_0x4b58d1._0x4fa6b1,0x2fd)]()-_0x30ae50;if(_0xef1d93===0x2){_0x153f71({'status':_0x10d2d6(0x30b,_0x4b58d1._0x1a8597,0x2fa,_0x4b58d1._0x1d51ed),'output':{'decision':_0x1062dd(_0x4b58d1._0x433bc4,0x15d,0x173,0x148),'reason':_0xe727d[_0x10d2d6(0x2fd,_0x4b58d1._0x95e689,_0x4b58d1._0x3b0b19,0x2e1)]()||_0x10d2d6(0x2f9,0x2d8,0x308,0x2de)},'duration_ms':_0x360a70});return;}function _0x1062dd(_0x3802c8,_0x2da649,_0x5f13e6,_0x287f47){return _0x8edef5(_0x3802c8-0x97,_0x2da649- -_0x1b49cd._0x4f6386,_0x3802c8,_0x287f47-_0x1b49cd._0x37fa52);}if(_0xef1d93!==0x0){_0x153f71({'status':_0x10d2d6(_0x4b58d1._0x50815a,_0x4b58d1._0x2555df,_0x4b58d1._0x5ab503,0x328),'error':_0x10d2d6(_0x4b58d1._0x7435c3,_0x4b58d1._0x587934,0x30e,_0x4b58d1._0xfc7d7b)+_0xef1d93+(_0xe727d[_0x1062dd(0x157,0x14f,_0x4b58d1._0x212362,0x132)]()?':\x20'+_0xe727d[_0x10d2d6(0x2fd,_0x4b58d1._0x4ddf6f,_0x4b58d1._0x10662a,_0x4b58d1._0x345b78)]():''),'duration_ms':_0x360a70});return;}function _0x10d2d6(_0x14ad3f,_0x15b616,_0x1d37d8,_0x1dcafa){return _0x155735(_0x14ad3f-0x296,_0x15b616-_0x2660f3._0x1625e1,_0x1d37d8-_0x2660f3._0x4d4c2d,_0x15b616);}const _0x33ceba=_0x4f5257[_0x1062dd(0x144,0x14f,_0x4b58d1._0x4a2e84,0x14e)]();if(_0x33ceba[_0x10d2d6(_0x4b58d1._0x13b1de,_0x4b58d1._0x10808e,0x31d,_0x4b58d1._0x50815a)]===0x0){_0x153f71({'status':'pass','duration_ms':_0x360a70});return;}try{const _0x4e2e2b=JSON[_0x1062dd(_0x4b58d1._0x251cb9,0x158,0x14d,0x14b)](_0x33ceba);_0x153f71({'status':_0x1062dd(_0x4b58d1._0x3e7a55,_0x4b58d1._0x55f011,_0x4b58d1._0x81f271,0x159),'output':_0x4e2e2b,'duration_ms':_0x360a70});}catch{_0x153f71({'status':_0x1062dd(0x141,_0x4b58d1._0x55f011,_0x4b58d1._0x125210,0x131),'duration_ms':_0x360a70});}}),_0x242ffd['on']('error',_0x956eda=>{clearTimeout(_0x46eeb7);function _0x124f42(_0x334940,_0x318dfa,_0x29de2b,_0x238661){return _0x8edef5(_0x334940-_0x54a189._0x462d38,_0x334940- -0x9a,_0x29de2b,_0x238661-0xd9);}_0x153f71({'status':'error','error':_0x956eda[_0x124f42(0x14b,_0x25e8b0._0xb55d99,_0x25e8b0._0x15226f,0x14d)],'duration_ms':Date['now']()-_0x30ae50});});});}function _0x4e8d(){const _0x428181=['BM93','C2vZC2LVBKLK','zgvJAxnPB24','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','BwvZC2fNzq','mNnhyxPWDW','mtC2mJaXouPuzhHhta','nJm3mZG5nKztsu95CG','mJe0mMHowNbMsW','C3rKAw4','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','mZu4nJr4AwXNsKS','Ag9VAZPoB3rPzMLJyxrPB24','BgvUz3rO','BwfW','y29TBwfUza','Ag9VAZPqB3n0vg9VBfvZzq','otu0mdaXmgfeAvjAsq','rvbjueu','y29Kzq','zgvUEq','zgf0yq','Dg9tDhjPBMC','Ag9VA3m','zxjYB3i','ChvZAa','ywXSB3C','CMvQzwn0','D3jPDgu','A2LSBa','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','C3rHDgu','CMvHC29U','DgLTzw91Da','C3rHDhvZ','CgvYBwLZC2LVBKrLy2LZAw9U','mJi1mJa0m2zyBNPvCW','CgLWzq','ug9ZDfrVB2XvC2u','CgfZCW','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','mJKZmZeYnJbtqMPXDu0','tM90AwzPy2f0Aw9U','Bwf0y2HLCG','DhjPBq','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','C3rKzxjY','zw5K','C3rYAw5NAwz5','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','ywz0zxjuDxjUq29TCgXLDgu','yMvMB3jLrMLUywXpDxrWDxq','CgfYC2u','zw5Kx3r1CM4','z2v0sg9VA3m','B3v0Chv0','B2jZzxj2zxi','yMXVy2S','zw52','Dg9VBe5HBwu','ndjJvNDrB0u','Ag9VA1nWzwnPzMLJt3v0Chv0','BMfTzq','mtq5nta1nNbctffHva','u3rVCa'];_0x4e8d=function(){return _0x428181;};return _0x4e8d();}function createHookExtensions(_0x25cf34,_0x27f879,_0x3b7de1={}){const _0x2db718={_0x3e7866:0x7c,_0x225e1c:0x3b4,_0x626108:0x3a4,_0xcfeab3:0x392,_0x35a6b9:0x391,_0x14757b:0x36a,_0x5c234e:0x8a,_0x4496bc:0x9d,_0x3895dc:0x37e,_0x562817:0x38d,_0x47832a:0x365,_0x768957:0xb0,_0x349e7e:0xab,_0x12f530:0x3b3,_0x3283aa:0x389,_0x4770d7:0x38f,_0x174786:0x37d,_0x2c542a:0x38c,_0x303a6b:0x391,_0x4c0a5a:0x3a2,_0x1ba367:0x378},_0x2742cf={_0x5a7e5e:0x450,_0x31455a:0x446,_0x2cb39c:0x1bd,_0x285a27:0x1b6,_0x5663fb:0x1c0,_0x58d3d9:0x1ff,_0x19f9c4:0x201,_0x52439e:0x1d0,_0x2618f7:0x476,_0x1f61af:0x1df},_0x36efab={_0x1fa3bb:0xa9,_0x9a35ca:0xbf,_0x3f9413:0xc9,_0x47eba5:0x175,_0xc8697d:0x16d,_0xf51320:0x17f,_0x34f5ec:0x182,_0x2200f4:0x198,_0x1dfca4:0xb0,_0x20ebc7:0xb7,_0xb31406:0xc1,_0x28c07c:0xac},_0x564887={_0x4f06ff:0x1d3},_0x5a6bf3={_0x2c147b:0x444,_0x53a6b4:0xac},_0x19bc21={_0xef9316:0x1bc,_0x43327d:0x1af,_0x5d5974:0x361,_0x6ed4a4:0x349,_0x26d8a0:0x330,_0x40b43d:0x363,_0x3c7490:0x349,_0x5f0f18:0x1a9,_0x45901a:0x1aa,_0x18bda4:0x1b9,_0x7e67d1:0x36f,_0x7d481:0x369,_0x1a8e7f:0x39d,_0x3ef4d1:0x367,_0x1cc598:0x354,_0x52e8de:0x375,_0x52c8a6:0x381},_0x5df4a6={_0xd95feb:0x203},_0x5bf168={_0x3f313a:0x21e},_0x35b069=[];function _0x10a94a(_0x23d6a7,_0x32c87f,_0x5053d6,_0x551e7e){return _0x34b1(_0x32c87f- -_0x5bf168._0x3f313a,_0x5053d6);}const {sessionId:_0x57a53c,projectDir:_0x270d93}=_0x3b7de1,_0x46d4f4=_0x3a4779=>_0x25cf34['hasHooks']?_0x25cf34['hasHooks'](_0x3a4779):_0x25cf34[_0x526319(0x381,0x38a,0x365,0x36e)](_0x3a4779)[_0x526319(0x399,0x37f,0x394,0x39d)]>0x0;function _0x526319(_0x158372,_0x3c83c2,_0x272ad9,_0x553eda){return _0x34b1(_0x158372-_0x5df4a6._0xd95feb,_0x3c83c2);}return _0x46d4f4('PostToolUse')&&_0x35b069[_0x10a94a(-0x72,-_0x2db718._0x3e7866,-0x86,-0x93)]({'id':_0x526319(0x39c,_0x2db718._0x225e1c,_0x2db718._0x626108,_0x2db718._0xcfeab3),'stage':'afterToolResult','kind':_0x526319(0x383,0x395,_0x2db718._0x35a6b9,_0x2db718._0x14757b),'order':0x0,'enabled':!![],'run':async(_0x59eb22,_0x25c93f)=>{const _0x3caa2c={_0x41cbd9:0x1a0,_0xcd95e4:0x1b};function _0x1bf015(_0xcf7687,_0x492393,_0x836283,_0x4fbd51){return _0x10a94a(_0xcf7687-_0x3caa2c._0x41cbd9,_0x836283-0x3fb,_0x492393,_0x4fbd51-_0x3caa2c._0xcd95e4);}const _0x31eb4f=_0x25cf34[_0x10a60e(-0x1bb,-_0x19bc21._0xef9316,-_0x19bc21._0x43327d,-0x1b0)](_0x1bf015(_0x19bc21._0x5d5974,_0x19bc21._0x6ed4a4,0x34a,_0x19bc21._0x26d8a0),_0x59eb22[_0x1bf015(0x366,_0x19bc21._0x40b43d,0x360,_0x19bc21._0x3c7490)]);function _0x10a60e(_0x105732,_0x508a99,_0x1aa76e,_0x57ddc0){return _0x526319(_0x105732- -0x53c,_0x57ddc0,_0x1aa76e-0x1bf,_0x57ddc0-0x154);}for(const _0x457bb1 of _0x31eb4f){const _0x244d3d={'tool_name':_0x59eb22[_0x10a60e(-0x1b6,-_0x19bc21._0x5f0f18,-_0x19bc21._0x45901a,-_0x19bc21._0x18bda4)],'tool_input':void 0x0,'tool_output':_0x59eb22[_0x1bf015(0x366,_0x19bc21._0x7e67d1,0x35c,0x376)],'tool_result_status':_0x59eb22['status'],'session_id':_0x57a53c??_0x25c93f[_0x1bf015(_0x19bc21._0x7d481,_0x19bc21._0x1a8e7f,0x385,0x39e)][_0x1bf015(0x368,0x36d,_0x19bc21._0x3ef4d1,0x381)]};await _0x27f879(_0x457bb1[_0x1bf015(0x354,_0x19bc21._0x1cc598,_0x19bc21._0x52e8de,_0x19bc21._0x52c8a6)],_0x244d3d,_0x457bb1['timeout'],_0x270d93);}}}),_0x46d4f4('Stop')&&_0x35b069[_0x10a94a(-_0x2db718._0x5c234e,-0x7c,-0x72,-_0x2db718._0x4496bc)]({'id':'hook:Stop','stage':_0x526319(_0x2db718._0x3895dc,0x374,_0x2db718._0x562817,_0x2db718._0x47832a),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x37c7e7,_0x323690)=>{function _0x48dbf1(_0x4c8da1,_0x360477,_0x2bf5ef,_0x27d60d){return _0x526319(_0x360477- -_0x5a6bf3._0x2c147b,_0x27d60d,_0x2bf5ef-_0x5a6bf3._0x53a6b4,_0x27d60d-0x10f);}const _0x5ca630=_0x25cf34[_0x48dbf1(-0xde,-0xc3,-0xc0,-_0x36efab._0x1fa3bb)](_0x48dbf1(-_0x36efab._0x9a35ca,-0xb9,-_0x36efab._0x3f9413,-0xc2));function _0x375e90(_0x3d8631,_0x27f1d8,_0x4b2c92,_0x4d15a7){return _0x526319(_0x4d15a7- -0x213,_0x4b2c92,_0x4b2c92-0x127,_0x4d15a7-_0x564887._0x4f06ff);}for(const _0x2c7ede of _0x5ca630){const _0x4d380e={'stop_reason':_0x375e90(0x15b,_0x36efab._0x47eba5,0x156,_0x36efab._0xc8697d),'session_id':_0x57a53c??_0x323690[_0x375e90(0x1a7,_0x36efab._0xf51320,_0x36efab._0x34f5ec,_0x36efab._0x2200f4)][_0x48dbf1(-_0x36efab._0x1dfca4,-_0x36efab._0x20ebc7,-0xd8,-_0x36efab._0xb31406)]};await _0x27f879(_0x2c7ede[_0x48dbf1(-_0x36efab._0x28c07c,-0xa9,-_0x36efab._0x1dfca4,-0xa4)],_0x4d380e,_0x2c7ede[_0x48dbf1(-0xb7,-0x97,-0x8c,-0xa0)],_0x270d93);}}}),_0x46d4f4(_0x10a94a(-_0x2db718._0x768957,-0xad,-0xaa,-_0x2db718._0x349e7e))&&_0x35b069[_0x10a94a(-0x66,-0x7c,-0x71,-0x7d)]({'id':_0x526319(0x398,_0x2db718._0x12f530,_0x2db718._0x3283aa,_0x2db718._0x4770d7),'stage':_0x526319(_0x2db718._0x174786,0x380,_0x2db718._0x2c542a,0x370),'kind':_0x526319(0x383,_0x2db718._0x303a6b,_0x2db718._0x4c0a5a,_0x2db718._0x1ba367),'order':0x0,'enabled':!![],'run':async(_0x4d10c4,_0x337a22)=>{const _0x4b4945={_0x1eda7c:0x263};function _0xdd60e6(_0x4ecedd,_0x2cb2d9,_0x110e37,_0xe842ef){return _0x10a94a(_0x4ecedd-0xb4,_0x2cb2d9-_0x4b4945._0x1eda7c,_0xe842ef,_0xe842ef-0x11d);}const _0x45be4a=_0x25cf34[_0x45d01c(0x44d,_0x2742cf._0x5a7e5e,_0x2742cf._0x31455a,0x447)](_0xdd60e6(_0x2742cf._0x2cb39c,_0x2742cf._0x285a27,_0x2742cf._0x5663fb,0x1b7));function _0x45d01c(_0x34817f,_0x129ebb,_0x258b5a,_0x2f5ec0){return _0x10a94a(_0x34817f-0x10d,_0x258b5a-0x4e6,_0x34817f,_0x2f5ec0-0xba);}for(const _0x40d8fd of _0x45be4a){const _0x2b0e6d={'message':_0xdd60e6(_0x2742cf._0x58d3d9,0x1ec,0x1d4,_0x2742cf._0x19f9c4),'session_id':_0x57a53c??_0x4d10c4[_0xdd60e6(_0x2742cf._0x52439e,0x1cf,0x1f0,0x1e1)]};await _0x27f879(_0x40d8fd[_0x45d01c(_0x2742cf._0x2618f7,0x481,0x460,0x441)],_0x2b0e6d,_0x40d8fd[_0xdd60e6(0x205,0x1ef,0x1ce,_0x2742cf._0x1f61af)],_0x270d93);}}}),_0x35b069;}function createHookOnToolCallMiddleware(_0x1aae39,_0x16fc57,_0x5a00cf,_0x142353={}){const _0x2546d6={_0x57f589:0x14b,_0x6f6e35:0x12e,_0x1dfee0:0x159,_0x56795e:0x12b,_0x289846:0x53b,_0x33c3ee:0x51d,_0x5e58d1:0x525,_0x5e4b34:0x14d,_0x5c1ec5:0x110,_0x3f0ba2:0x54e,_0x341cbc:0x54d,_0x4c5eee:0x561,_0xa5d40b:0x570,_0x37673a:0x567,_0x140b2a:0x558,_0x277597:0x56e,_0x4b3815:0x540,_0x6b0b42:0x55b,_0x1dfaca:0x12c,_0x482a7a:0x12f,_0x25891e:0x126,_0x2e8cd2:0x127,_0x16c4f5:0x125,_0x51f384:0x133,_0xb39c5a:0x11e,_0x5b87e2:0x148,_0x2ec127:0x162,_0x1a9253:0x149,_0x5921bc:0x541,_0x11b955:0x538,_0x2df1ba:0x530,_0x408edf:0x134,_0x5c1b04:0x559,_0x255df4:0x15c,_0x1d68d9:0x14a,_0x115ed5:0x14c,_0x4a1a7d:0x12a,_0x50f986:0x54f,_0x55b81b:0x548,_0x16c34e:0x148,_0x782789:0x129,_0x218fdf:0x14a,_0x2429ba:0x14e,_0x563ba5:0x120,_0x1b8d28:0x115,_0xa897c4:0x158,_0xd57038:0x13b,_0x35752f:0x143,_0x85aba1:0x15e,_0x470d99:0x13e,_0x58d788:0x138},_0x4e95f8={_0x3ba379:0x2c9},{sessionId:_0x26473b,projectDir:_0x1ad50d}=_0x142353;return async(_0x8b06d7,_0x4556f7)=>{function _0x1035eb(_0xb8d428,_0x3d57c7,_0x1b03b7,_0xa66b27){return _0x34b1(_0xb8d428- -_0x4e95f8._0x3ba379,_0x1b03b7);}const _0x1d5797=_0x1aae39[_0x1035eb(-_0x2546d6._0x57f589,-_0x2546d6._0x6f6e35,-0x167,-0x13a)]('PreToolUse',_0x8b06d7[_0x1035eb(-0x143,-0x149,-_0x2546d6._0x1dfee0,-_0x2546d6._0x56795e)]);for(const _0x28bc6e of _0x1d5797){const _0x46d212={'tool_name':_0x8b06d7[_0x426616(_0x2546d6._0x289846,_0x2546d6._0x33c3ee,0x521,_0x2546d6._0x5e58d1)],'tool_input':_0x8b06d7['input'],'session_id':_0x26473b},_0x1870cc=await _0x16fc57(_0x28bc6e[_0x1035eb(-0x131,-_0x2546d6._0x5e4b34,-0x149,-_0x2546d6._0x5c1ec5)],_0x46d212,_0x28bc6e['timeout'],_0x1ad50d),_0x3afc23=_0x1870cc['output']?.[_0x426616(0x53a,_0x2546d6._0x3f0ba2,_0x2546d6._0x341cbc,0x53e)]?.[_0x426616(_0x2546d6._0x4c5eee,_0x2546d6._0xa5d40b,_0x2546d6._0x37673a,0x57d)];if(_0x3afc23===_0x426616(_0x2546d6._0x140b2a,_0x2546d6._0x277597,_0x2546d6._0x4b3815,_0x2546d6._0x6b0b42))break;if(_0x3afc23===_0x1035eb(-_0x2546d6._0x1dfaca,-_0x2546d6._0x482a7a,-_0x2546d6._0x25891e,-_0x2546d6._0x2e8cd2))return{'action':_0x1035eb(-_0x2546d6._0x16c4f5,-_0x2546d6._0x51f384,-_0x2546d6._0xb39c5a,-0x121),'reason':_0x1870cc['output']?.[_0x1035eb(-0x144,-_0x2546d6._0x5b87e2,-_0x2546d6._0x2ec127,-_0x2546d6._0x1a9253)]?.[_0x426616(_0x2546d6._0x5921bc,0x559,0x558,_0x2546d6._0x11b955)]||_0x426616(0x52e,_0x2546d6._0x2df1ba,0x516,0x51f)+_0x8b06d7[_0x1035eb(-0x143,-0x125,-0x12e,-_0x2546d6._0x408edf)]};if(_0x1870cc[_0x426616(0x560,0x55b,0x551,_0x2546d6._0x5c1b04)]===_0x1035eb(-0x148,-0x140,-0x168,-_0x2546d6._0x255df4)||_0x1870cc[_0x1035eb(-_0x2546d6._0x1d68d9,-_0x2546d6._0x115ed5,-0x155,-_0x2546d6._0x4a1a7d)]?.[_0x426616(_0x2546d6._0x4b3815,_0x2546d6._0x50f986,_0x2546d6._0x55b81b,0x543)]===_0x1035eb(-_0x2546d6._0x16c34e,-0x129,-0x14c,-_0x2546d6._0x782789))return{'action':'reject','reason':_0x1870cc[_0x1035eb(-_0x2546d6._0x218fdf,-0x14c,-0x130,-_0x2546d6._0x2429ba)]?.[_0x1035eb(-_0x2546d6._0x563ba5,-0x114,-_0x2546d6._0x1b8d28,-0x110)]||_0x1035eb(-0x154,-0x14c,-_0x2546d6._0xa897c4,-_0x2546d6._0xd57038)+_0x8b06d7[_0x1035eb(-_0x2546d6._0x35752f,-_0x2546d6._0x85aba1,-_0x2546d6._0x470d99,-_0x2546d6._0x58d788)]};}function _0x426616(_0x3074e6,_0x401e21,_0x3ba4ab,_0xff2724){return _0x34b1(_0x3074e6-0x3b5,_0x3ba4ab);}return _0x5a00cf(_0x8b06d7,_0x4556f7);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x1862fa){const _0x2b61c8={_0x3ba150:0x25,_0xf30d68:0x4d,_0x4331b0:0x53,_0x335b74:0x56,_0x4d675a:0x52,_0x49651f:0x8f,_0x1a6a26:0x72,_0x48ecb0:0x73,_0x2b91f1:0x6d,_0x149d2e:0x4c,_0x1fccea:0x45,_0x1706bd:0x7d,_0x5c532a:0x55,_0x28d8f7:0x6d,_0x222bce:0x7b,_0x769451:0x73},_0x4eebe8={_0x2167d1:0x12d},_0x15d1b9={_0x342ab3:0x1e2};return{'hasHooks'(_0x388072){function _0x5cb84d(_0x5470fc,_0x402012,_0x5db1ba,_0x757a8d){return _0x34b1(_0x5470fc- -0x359,_0x5db1ba);}return(_0x1862fa[_0x388072]?.[_0x5cb84d(-0x1c3,-0x1c2,-_0x15d1b9._0x342ab3,-0x1be)]??0x0)>0x0;},'getHooks'(_0x46635d,_0x3a8158){const _0x1e5e4e=_0x1862fa[_0x46635d];if(!_0x1e5e4e)return[];function _0x22499d(_0x34660d,_0x2087d2,_0x4fea15,_0x15f38e){return _0x34b1(_0x15f38e- -0x1f4,_0x2087d2);}const _0x12a73a=[];function _0x215b06(_0xc4a780,_0x473230,_0x308f6a,_0x2de37d){return _0x34b1(_0x2de37d- -_0x4eebe8._0x2167d1,_0xc4a780);}for(const _0x5b42ae of _0x1e5e4e){if(!_0x5b42ae[_0x22499d(-0x70,-0xa0,-0x68,-0x82)]||_0x5b42ae[_0x215b06(_0x2b61c8._0x3ba150,0x27,_0x2b61c8._0xf30d68,0x45)]==='*'){_0x12a73a[_0x22499d(-_0x2b61c8._0x4331b0,-_0x2b61c8._0x335b74,-0x4d,-_0x2b61c8._0x4d675a)](..._0x5b42ae[_0x215b06(_0x2b61c8._0x49651f,0x90,_0x2b61c8._0x1a6a26,_0x2b61c8._0x48ecb0)][_0x22499d(-0x62,-0x64,-_0x2b61c8._0x2b91f1,-0x5d)](_0x27b02a=>({'command':_0x27b02a[_0x215b06(0x89,0x79,0x73,0x6b)],'timeout':_0x27b02a[_0x22499d(-0x2f,-0x2a,-0x63,-0x4a)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x3a8158===void 0x0)continue;const _0xcba905=new RegExp('^(?:'+_0x5b42ae[_0x215b06(0x62,0x51,_0x2b61c8._0x149d2e,_0x2b61c8._0x1fccea)]+')$');_0xcba905['test'](_0x3a8158)&&_0x12a73a[_0x215b06(_0x2b61c8._0x1706bd,_0x2b61c8._0x5c532a,0x54,0x75)](..._0x5b42ae[_0x215b06(0x88,_0x2b61c8._0x1706bd,0x7f,0x73)][_0x215b06(_0x2b61c8._0x28d8f7,_0x2b61c8._0x222bce,_0x2b61c8._0x769451,0x6a)](_0x51dba2=>({'command':_0x51dba2[_0x215b06(0x84,0x76,0x55,0x6b)],'timeout':_0x51dba2[_0x22499d(-0x68,-0x55,-0x54,-0x4a)]??DEFAULT_TIMEOUT_S2})));}return _0x12a73a;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
|
|
1
|
+
function _0x13bc(_0x451db5,_0x34b05e){_0x451db5=_0x451db5-0x1cc;const _0x1f1982=_0x1f19();let _0x13bc92=_0x1f1982[_0x451db5];if(_0x13bc['kPYcjD']===undefined){var _0x3684a2=function(_0x15bd96){const _0x418925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10746b='',_0x301b9a='';for(let _0x1d2379=0x0,_0x5f2560,_0x2489ff,_0x443b27=0x0;_0x2489ff=_0x15bd96['charAt'](_0x443b27++);~_0x2489ff&&(_0x5f2560=_0x1d2379%0x4?_0x5f2560*0x40+_0x2489ff:_0x2489ff,_0x1d2379++%0x4)?_0x10746b+=String['fromCharCode'](0xff&_0x5f2560>>(-0x2*_0x1d2379&0x6)):0x0){_0x2489ff=_0x418925['indexOf'](_0x2489ff);}for(let _0x53f9fb=0x0,_0x19c787=_0x10746b['length'];_0x53f9fb<_0x19c787;_0x53f9fb++){_0x301b9a+='%'+('00'+_0x10746b['charCodeAt'](_0x53f9fb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x301b9a);};_0x13bc['jkGWCp']=_0x3684a2,_0x13bc['OredhE']={},_0x13bc['kPYcjD']=!![];}const _0x317f31=_0x1f1982[0x0],_0x467602=_0x451db5+_0x317f31,_0x1d692a=_0x13bc['OredhE'][_0x467602];return!_0x1d692a?(_0x13bc92=_0x13bc['jkGWCp'](_0x13bc92),_0x13bc['OredhE'][_0x467602]=_0x13bc92):_0x13bc92=_0x1d692a,_0x13bc92;}(function(_0x51ad9f,_0x4e3920){const _0x2d8f7e={_0x296770:0x180,_0x1bc106:0x19a,_0x550f7b:0x183,_0x1a4e17:0x194,_0x22abf1:0x186,_0x522ec0:0x17e,_0x59c8df:0x182,_0x3cb3b6:0x38,_0x5a230b:0x4b,_0x252efa:0x2c,_0x1835e4:0x18d,_0x5a29f1:0x170,_0x25fcbe:0x172,_0x170e6b:0x165,_0x484bd8:0x21,_0x40a5b0:0x2d,_0x3c6a89:0x38,_0x3a0d24:0x36,_0x49078c:0x19e,_0x4039c2:0x1a2},_0x4e0a89={_0xc72be3:0x221};function _0xb6b677(_0x2f8313,_0x250f09,_0x2cb0cb,_0x101e14){return _0x13bc(_0x2cb0cb- -0x6e,_0x101e14);}const _0x5044d9=_0x51ad9f();function _0x4cfab3(_0x1c87de,_0x3126c0,_0x3f04f5,_0x40580a){return _0x13bc(_0x1c87de- -_0x4e0a89._0xc72be3,_0x3f04f5);}while(!![]){try{const _0x2ac9f1=-parseInt(_0xb6b677(0x182,_0x2d8f7e._0x296770,0x17d,0x172))/0x1+-parseInt(_0xb6b677(0x199,_0x2d8f7e._0x1bc106,_0x2d8f7e._0x550f7b,_0x2d8f7e._0x1a4e17))/0x2*(-parseInt(_0xb6b677(_0x2d8f7e._0x22abf1,_0x2d8f7e._0x522ec0,0x172,_0x2d8f7e._0x59c8df))/0x3)+parseInt(_0x4cfab3(-0x19,-0xd,-_0x2d8f7e._0x3cb3b6,-0x19))/0x4*(-parseInt(_0x4cfab3(-_0x2d8f7e._0x5a230b,-_0x2d8f7e._0x252efa,-0x42,-0x4f))/0x5)+parseInt(_0xb6b677(0x17c,_0x2d8f7e._0x1835e4,_0x2d8f7e._0x5a29f1,_0x2d8f7e._0x25fcbe))/0x6*(parseInt(_0xb6b677(0x18b,_0x2d8f7e._0x170e6b,0x174,0x17c))/0x7)+-parseInt(_0x4cfab3(-_0x2d8f7e._0x484bd8,-_0x2d8f7e._0x40a5b0,-_0x2d8f7e._0x3c6a89,-0x17))/0x8+-parseInt(_0x4cfab3(-0x32,-0x3d,-_0x2d8f7e._0x3a0d24,-0x26))/0x9+parseInt(_0xb6b677(_0x2d8f7e._0x49078c,0x1b1,0x19b,_0x2d8f7e._0x4039c2))/0xa;if(_0x2ac9f1===_0x4e3920)break;else _0x5044d9['push'](_0x5044d9['shift']());}catch(_0x5a266e){_0x5044d9['push'](_0x5044d9['shift']());}}}(_0x1f19,0xca977));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x10746b,_0x301b9a,_0x1d2379=DEFAULT_TIMEOUT_S,_0x5f2560){const _0x22b7d6={_0x4170e9:0x4f7,_0x1b8b8e:0x4e6,_0x47e91b:0x4f5},_0x242a5d={_0x1ae6fd:0x208,_0x235375:0x207,_0x16b4d9:0x20a,_0x391835:0x4b1,_0x2c12a4:0x20e,_0x3c7ec3:0x4a2,_0x376707:0x4b7,_0xaf02e2:0x498,_0x2173f8:0x4c1,_0x34353b:0x4d5,_0x370a6a:0x4c7,_0x2eaaf8:0x4c6,_0x59df3c:0x1fb,_0xead9ff:0x1f9,_0x8acbe8:0x210,_0xc48346:0x4d4,_0x195ca7:0x4aa,_0x2fbc1c:0x4aa,_0x5e90ed:0x49d,_0x5e9988:0x48d,_0x24c27f:0x236,_0x339ca3:0x212,_0x471a75:0x4a7,_0x3c12d2:0x4a4},_0x3c644e={_0x127997:0x18c,_0x30384a:0x196,_0x223710:0x17f,_0x14ade9:0x197,_0x535163:0x1a9,_0x593dac:0x18a},_0x51a1ac={_0x348ca9:0x35};function _0x5633ec(_0x413d08,_0x33956c,_0x9671c1,_0x19766d){return _0x13bc(_0x413d08-0x2fe,_0x9671c1);}const _0x2489ff=Date[_0x5633ec(_0x22b7d6._0x4170e9,_0x22b7d6._0x1b8b8e,_0x22b7d6._0x47e91b,0x514)]();return new Promise(_0x443b27=>{const _0x6c9057={_0x3be8f4:0x373,_0x4c52a5:0x374,_0x5df593:0x361,_0x39935c:0x343,_0x261827:0x346,_0x3f833a:0x36e,_0x29600f:0xf1,_0x37f622:0x100,_0x539df9:0x10b,_0x31b88f:0x37c,_0x322707:0x35a,_0x56204a:0x357,_0x11c871:0x369,_0x5ecc26:0x352,_0x334331:0x35b,_0xf63396:0x353,_0x4bc1c4:0x348,_0x2c4486:0x340,_0x6c440a:0x359,_0x366f8e:0x350,_0x1be9ce:0x338},_0x3b5079={_0x45573e:0x3f1,_0x2339ae:0x3d2,_0x4e5fc0:0x4,_0x398f8a:0x1f},_0x22e51b={_0x370ca2:0x1a4},_0x15efd8={_0x27a455:0x211,_0x215dec:0x76,_0x58371e:0x70},_0x2381fa={_0x2ac328:0x10f,_0x421861:0xf5},_0x1e65d8={_0xc305c4:0x1e4},_0x696e1e={_0x41ba67:0xd4},_0x11607a={_0x4070bc:0xf5},_0x53f9fb=spawn('sh',['-c',_0x10746b],{'stdio':[_0x149939(_0x242a5d._0x1ae6fd,_0x242a5d._0x235375,0x20a,_0x242a5d._0x16b4d9),_0x5c658c(0x4c0,_0x242a5d._0x391835,0x4c3,0x492),'pipe'],'env':{...process[_0x149939(0x21d,_0x242a5d._0x2c12a4,0x21f,0x221)],'CLAUDE_PROJECT_DIR':_0x5f2560??process['cwd']()}});let _0x19c787='',_0x4b5ed0='';_0x53f9fb[_0x5c658c(_0x242a5d._0x3c7ec3,_0x242a5d._0x376707,_0x242a5d._0xaf02e2,_0x242a5d._0x2173f8)]['on']('data',_0x1ea915=>{_0x19c787+=_0x1ea915['toString']();});function _0x149939(_0x198b5a,_0x527739,_0x2dd44b,_0x5c9b11){return _0x5633ec(_0x198b5a- -0x2de,_0x527739-_0x11607a._0x4070bc,_0x5c9b11,_0x5c9b11-0x1ec);}_0x53f9fb[_0x5c658c(_0x242a5d._0x34353b,_0x242a5d._0x370a6a,_0x242a5d._0x2eaaf8,0x4e0)]['on'](_0x149939(_0x242a5d._0x59df3c,_0x242a5d._0x235375,0x1e7,_0x242a5d._0xead9ff),_0x1a393b=>{function _0x20105a(_0x40358c,_0x38a176,_0x57558b,_0x315944){return _0x149939(_0x57558b- -0x148,_0x38a176-0x178,_0x57558b-0x121,_0x40358c);}_0x4b5ed0+=_0x1a393b[_0x20105a(_0x696e1e._0x41ba67,0xc5,0xcc,0xd4)]();}),_0x53f9fb[_0x149939(0x1f4,0x1df,_0x242a5d._0x8acbe8,0x1fe)]['on'](_0x5c658c(_0x242a5d._0xc48346,_0x242a5d._0x2173f8,_0x242a5d._0x195ca7,0x4b9),_0x3a3130=>{function _0x584327(_0x58409a,_0x444d56,_0x1d55c9,_0x2c724d){return _0x149939(_0x1d55c9- -0xe1,_0x444d56-_0x1e65d8._0xc305c4,_0x1d55c9-0x23,_0x2c724d);}if(_0x3a3130['code']!==_0x584327(0x126,0x11c,_0x2381fa._0x2ac328,_0x2381fa._0x421861))throw _0x3a3130;}),_0x53f9fb[_0x5c658c(_0x242a5d._0x2fbc1c,_0x242a5d._0x5e90ed,_0x242a5d._0x5e9988,0x49e)]['write'](JSON[_0x149939(0x21a,0x21f,_0x242a5d._0x24c27f,0x20f)](_0x301b9a)),_0x53f9fb[_0x149939(0x1f4,_0x242a5d._0x339ca3,0x1fb,0x1e2)][_0x5c658c(0x4a4,0x4a8,0x4c3,_0x242a5d._0x471a75)]();function _0x5c658c(_0x45bed8,_0x4bd490,_0x3a3a1c,_0x491d58){return _0x5633ec(_0x4bd490- -_0x51a1ac._0x348ca9,_0x4bd490-0x108,_0x45bed8,_0x491d58-0x164);}const _0x14198c=setTimeout(()=>{function _0xd218e8(_0x307a71,_0x386c62,_0x340f82,_0x10eb54){return _0x149939(_0x340f82- -_0x15efd8._0x27a455,_0x386c62-_0x15efd8._0x215dec,_0x340f82-_0x15efd8._0x58371e,_0x386c62);}_0x53f9fb[_0x4d417c(0x3e5,0x3e8,_0x3b5079._0x45573e,0x3fb)](_0x4d417c(0x3b9,0x3be,0x3bf,_0x3b5079._0x2339ae));function _0x4d417c(_0x1faee8,_0x242493,_0x2dae96,_0x28a3d8){return _0x5c658c(_0x242493,_0x2dae96- -0xd7,_0x2dae96-0x8,_0x28a3d8-_0x22e51b._0x370ca2);}_0x443b27({'status':_0xd218e8(-_0x3b5079._0x4e5fc0,-0xf,0x7,0x4),'error':_0xd218e8(0x28,0x22,0x11,-0x8)+_0x1d2379+'s','duration_ms':Date[_0xd218e8(-0x14,0x9,0x8,_0x3b5079._0x398f8a)]()-_0x2489ff});},_0x1d2379*0x3e8);_0x53f9fb['on']('close',_0x53a406=>{const _0x4316df={_0x4b5ae7:0x3a5};clearTimeout(_0x14198c);const _0x71174=Date[_0x2058e9(_0x6c9057._0x3be8f4,0x358,_0x6c9057._0x4c52a5,0x391)]()-_0x2489ff;function _0x2058e9(_0x6c90a8,_0x297aa4,_0x2eedb4,_0x55b3c4){return _0x5c658c(_0x297aa4,_0x6c90a8- -0x14f,_0x2eedb4-0x131,_0x55b3c4-0xd2);}if(_0x53a406===0x2){_0x443b27({'status':_0x2058e9(_0x6c9057._0x5df593,0x34e,_0x6c9057._0x39935c,0x380),'output':{'decision':_0x2058e9(0x361,0x372,_0x6c9057._0x261827,_0x6c9057._0x3f833a),'reason':_0x4b5ed0[_0xec9f17(0xfd,0x10a,0xfe,_0x6c9057._0x29600f)]()||'Hook\x20blocked\x20execution'},'duration_ms':_0x71174});return;}if(_0x53a406!==0x0){_0x443b27({'status':_0xec9f17(0x131,0x11c,_0x6c9057._0x37f622,_0x6c9057._0x539df9),'error':'Hook\x20exited\x20with\x20code\x20'+_0x53a406+(_0x4b5ed0[_0x2058e9(0x360,_0x6c9057._0x31b88f,_0x6c9057._0x322707,_0x6c9057._0x56204a)]()?':\x20'+_0x4b5ed0[_0x2058e9(0x360,_0x6c9057._0x11c871,_0x6c9057._0x5ecc26,_0x6c9057._0x334331)]():''),'duration_ms':_0x71174});return;}const _0x1994cf=_0x19c787['trim']();function _0xec9f17(_0x30f97e,_0x4ff7f1,_0x302ae8,_0xbf35f){return _0x5c658c(_0x302ae8,_0x4ff7f1- -_0x4316df._0x4b5ae7,_0x302ae8-0x171,_0xbf35f-0x1da);}if(_0x1994cf['length']===0x0){_0x443b27({'status':_0x2058e9(0x348,0x344,0x350,_0x6c9057._0xf63396),'duration_ms':_0x71174});return;}try{const _0x3797a1=JSON['parse'](_0x1994cf);_0x443b27({'status':_0x2058e9(_0x6c9057._0x4bc1c4,_0x6c9057._0x2c4486,_0x6c9057._0x6c440a,_0x6c9057._0x5df593),'output':_0x3797a1,'duration_ms':_0x71174});}catch{_0x443b27({'status':_0x2058e9(_0x6c9057._0x4bc1c4,0x33f,_0x6c9057._0x366f8e,_0x6c9057._0x1be9ce),'duration_ms':_0x71174});}}),_0x53f9fb['on'](_0x5c658c(_0x242a5d._0x3c12d2,_0x242a5d._0x2173f8,0x4d4,0x4d5),_0x5d9387=>{clearTimeout(_0x14198c);function _0x26e1d7(_0x34ebbf,_0x7ccd70,_0x14d486,_0xe51e76){return _0x5c658c(_0xe51e76,_0x34ebbf- -0x659,_0x14d486-0x12e,_0xe51e76-0x9);}function _0xa6fb99(_0xad635,_0x1afd9c,_0x23540d,_0x390272){return _0x149939(_0x390272- -0x371,_0x1afd9c-0x12a,_0x23540d-0x53,_0x1afd9c);}_0x443b27({'status':'error','error':_0x5d9387[_0xa6fb99(-_0x3c644e._0x127997,-_0x3c644e._0x30384a,-0x176,-_0x3c644e._0x223710)],'duration_ms':Date[_0x26e1d7(-_0x3c644e._0x14ade9,-_0x3c644e._0x535163,-0x1aa,-_0x3c644e._0x593dac)]()-_0x2489ff});});});}function createHookExtensions(_0x4756e6,_0x2b2c76,_0x53769d={}){const _0x21ebd8={_0x108ab7:0x36a,_0x40b00f:0x37a,_0x18deef:0x352,_0x42d872:0x37d,_0x390f6d:0x35d,_0x155388:0x76,_0x148417:0x7b,_0x2945d3:0x85,_0x5c243c:0x347,_0x1f5d6f:0x330,_0x53c687:0x340,_0x2e102b:0x364,_0x1969d2:0x379,_0x36b093:0x366,_0x48f329:0x363,_0x20ac6d:0x382,_0x90ec17:0x365,_0x4b32fa:0x351,_0x395696:0x36f,_0x2289df:0x33d},_0x29e806={_0x8bdf64:0x50a,_0x32cb6b:0x505,_0x450929:0x4fd,_0x3e74ed:0x4eb,_0x30d99d:0x509,_0x51f079:0x8a,_0x4023fb:0xa2,_0x189285:0x7d,_0x378f72:0x4e8,_0x3e629:0x4da,_0x3dd919:0x4ca},_0x281ba9={_0x5914f6:0x15},_0x14e08a={_0x32c949:0x53},_0x5aa893={_0x22c30c:0x30f,_0x35b152:0x32e,_0x552ae2:0x350,_0x9a8300:0x328,_0x1ec503:0x2fe,_0x6ec51:0x319,_0x2bc6ac:0x32d,_0x4dd7de:0x318},_0x18ae0c={_0x3f2d08:0x2ab,_0x5f0c2f:0x114},_0x26fc18={_0x19626c:0x3d0,_0x1c33b8:0x3cb,_0x279a2b:0x3d9,_0x17d4b3:0x2da,_0x15feb:0x2fc,_0x2b75f9:0x2f6,_0x2082b0:0x3ee,_0x3f5aad:0x2ce,_0x346b4f:0x2c7,_0x21c38c:0x2d0,_0x45574e:0x2ca,_0x3c038d:0x2e8},_0x6db698={_0x23566a:0x263},_0x85b2fa={_0x5b6d0e:0x75},_0x258926={_0xeb31e3:0x16e},_0x41edf8=[],{sessionId:_0x5825b0,projectDir:_0x1b21fa}=_0x53769d;function _0x2f5f83(_0x376088,_0x48f5e9,_0x3740db,_0xc07cae){return _0x13bc(_0x48f5e9- -0x16f,_0x376088);}const _0x3bddb7=_0x5a20da=>_0x4756e6[_0x2f5f83(0x4c,0x60,0x66,0x79)]?_0x4756e6[_0x163761(0x33d,0x34e,0x352,0x34f)](_0x5a20da):_0x4756e6['getHooks'](_0x5a20da)[_0x2f5f83(0x86,0x97,0xa9,0x9e)]>0x0;function _0x163761(_0x5a6670,_0x14d0d3,_0x475b2f,_0x43061f){return _0x13bc(_0x5a6670-_0x258926._0xeb31e3,_0x14d0d3);}return _0x3bddb7(_0x163761(_0x21ebd8._0x108ab7,0x35b,_0x21ebd8._0x40b00f,0x375))&&_0x41edf8[_0x163761(0x364,_0x21ebd8._0x18deef,_0x21ebd8._0x42d872,_0x21ebd8._0x390f6d)]({'id':_0x2f5f83(_0x21ebd8._0x155388,0x68,_0x21ebd8._0x148417,_0x21ebd8._0x2945d3),'stage':_0x163761(_0x21ebd8._0x5c243c,_0x21ebd8._0x1f5d6f,_0x21ebd8._0x390f6d,_0x21ebd8._0x1f5d6f),'kind':_0x163761(0x35a,_0x21ebd8._0x53c687,0x361,_0x21ebd8._0x18deef),'order':0x0,'enabled':!![],'run':async(_0x1b8586,_0x2fbd09)=>{const _0x51440d=_0x4756e6[_0x477465(_0x26fc18._0x19626c,0x3e1,_0x26fc18._0x1c33b8,_0x26fc18._0x279a2b)](_0xd591da(0x30b,0x2f0,0x2f2,0x30b),_0x1b8586['toolName']);function _0x477465(_0x1cb894,_0x4efe1c,_0x110c4c,_0x59fa99){return _0x2f5f83(_0x110c4c,_0x4efe1c-0x35e,_0x110c4c-0xee,_0x59fa99-_0x85b2fa._0x5b6d0e);}function _0xd591da(_0x513a77,_0x34eaae,_0x36f394,_0x1b9137){return _0x2f5f83(_0x1b9137,_0x34eaae-_0x6db698._0x23566a,_0x36f394-0x81,_0x1b9137-0x64);}for(const _0x5ac8d6 of _0x51440d){const _0x1c286e={'tool_name':_0x1b8586[_0xd591da(_0x26fc18._0x17d4b3,0x2f7,_0x26fc18._0x15feb,_0x26fc18._0x2b75f9)],'tool_input':void 0x0,'tool_output':_0x1b8586[_0x477465(0x3c0,_0x26fc18._0x279a2b,_0x26fc18._0x2082b0,0x3bc)],'tool_result_status':_0x1b8586[_0xd591da(0x2bd,0x2c0,_0x26fc18._0x3f5aad,_0x26fc18._0x346b4f)],'session_id':_0x5825b0??_0x2fbd09[_0xd591da(_0x26fc18._0x21c38c,0x2d8,_0x26fc18._0x45574e,0x2bf)]['sessionId']};await _0x2b2c76(_0x5ac8d6[_0xd591da(_0x26fc18._0x3c038d,0x2d0,0x2ec,0x2e2)],_0x1c286e,_0x5ac8d6['timeout'],_0x1b21fa);}}}),_0x3bddb7(_0x2f5f83(0x6e,0x8c,0x87,0xa1))&&_0x41edf8[_0x163761(_0x21ebd8._0x2e102b,_0x21ebd8._0x1969d2,0x35a,_0x21ebd8._0x36b093)]({'id':_0x163761(_0x21ebd8._0x48f329,_0x21ebd8._0x20ac6d,0x369,0x35d),'stage':'beforeFinalOutput','kind':_0x163761(0x35a,_0x21ebd8._0x90ec17,0x372,0x33e),'order':0x0,'enabled':!![],'run':async(_0x383fae,_0xc15fb6)=>{const _0x38cdce={_0x214d5c:0x1f3,_0x290898:0x1a5},_0x448d46=_0x4756e6[_0x3eea25(0x31f,0x332,_0x5aa893._0x22c30c,_0x5aa893._0x35b152)](_0x3eea25(_0x5aa893._0x552ae2,0x320,0x343,0x337));function _0x3c7890(_0x5aabf7,_0x3cdd15,_0xb5ccee,_0xa6e683){return _0x163761(_0xb5ccee- -0x1a4,_0x3cdd15,_0xb5ccee-_0x38cdce._0x214d5c,_0xa6e683-_0x38cdce._0x290898);}function _0x3eea25(_0x3b505c,_0x2d09f1,_0x2f871c,_0x115a69){return _0x2f5f83(_0x3b505c,_0x115a69-_0x18ae0c._0x3f2d08,_0x2f871c-_0x18ae0c._0x5f0c2f,_0x115a69-0xe8);}for(const _0x140bc8 of _0x448d46){const _0x2d578d={'stop_reason':'end_turn','session_id':_0x5825b0??_0xc15fb6['state'][_0x3eea25(_0x5aa893._0x9a8300,0x300,_0x5aa893._0x1ec503,0x314)]};await _0x2b2c76(_0x140bc8[_0x3eea25(0x318,_0x5aa893._0x6ec51,_0x5aa893._0x2bc6ac,_0x5aa893._0x4dd7de)],_0x2d578d,_0x140bc8['timeout'],_0x1b21fa);}}}),_0x3bddb7('Notification')&&_0x41edf8['push']({'id':_0x163761(_0x21ebd8._0x4b32fa,0x34b,_0x21ebd8._0x395696,_0x21ebd8._0x2289df),'stage':'afterTurnComplete','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x3218a4,_0x134c7b)=>{function _0x3dd33d(_0x2b32fe,_0x1019a1,_0x4285f4,_0x4a3319){return _0x2f5f83(_0x4a3319,_0x1019a1-0x46c,_0x4285f4-_0x14e08a._0x32c949,_0x4a3319-0x1af);}function _0x5deafe(_0x52a45e,_0x41303d,_0x116fe8,_0x1e5b71){return _0x2f5f83(_0x1e5b71,_0x52a45e- -0xf7,_0x116fe8-0x93,_0x1e5b71-_0x281ba9._0x5914f6);}const _0x381a3c=_0x4756e6[_0x3dd33d(_0x29e806._0x8bdf64,0x4ef,_0x29e806._0x32cb6b,_0x29e806._0x450929)]('Notification');for(const _0x301b20 of _0x381a3c){const _0x320cb0={'message':_0x3dd33d(0x507,0x4ea,_0x29e806._0x3e74ed,_0x29e806._0x30d99d),'session_id':_0x5825b0??_0x3218a4['sessionId']};await _0x2b2c76(_0x301b20[_0x5deafe(-_0x29e806._0x51f079,-_0x29e806._0x4023fb,-0x9e,-_0x29e806._0x189285)],_0x320cb0,_0x301b20[_0x3dd33d(_0x29e806._0x378f72,_0x29e806._0x3e629,0x4e7,_0x29e806._0x3dd919)],_0x1b21fa);}}}),_0x41edf8;}function _0x1f19(){const _0x3c13d7=['qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','C3rKAw4','CgvYBwLZC2LVBKrLy2LZAw9U','mJq3nxH4sKTQuq','Ag9VAZPqB3n0vg9VBfvZzq','C2vZC2LVBKLK','ywz0zxjuB29SuMvZDwX0','Bwf0y2HLCG','zgf0yq','y29TBwfUza','DgLTzw91Da','mZK3mJb5vNP1Exi','zw5K','otmXmJGXEhLcuKHl','ywXSB3C','mtq0mLH1txPevq','Ag9VAZPoB3rPzMLJyxrPB24','C3rHDgu','Aw5WDxq','DhjPBq','yMXVy2S','CgLWzq','Ag9VA3m','B3v0Chv0','mtuZmZa2mwrOD3bXCa','B2jZzxj2zxi','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','C3rKB3v0','nZGXmZm2ofbts1jAsq','Ag9VA1nWzwnPzMLJt3v0Chv0','mKPlCMLUBa','z2v0sg9VA3m','BMfTzq','Dg9tDhjPBMC','Ag9VAZPtDg9W','ChvZAa','CMvHC29U','zxjYB3i','BM93','C3rYAw5NAwz5','u3rVCa','ug9ZDfrVB2XvC2u','zw52','C3rKzxjY','A2LSBa','ntu4mJC2ogfnCvDiqq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','Dg9VBe5HBwu','zgvJAxnPB24','CMvQzwn0','BgvUz3rO','BwfW','mte2mtjsD2nitKS','mZy5mtCXmJbTyKXWDhu','C3rHDhvZ','u0Lhs0Lmta','CgfZCW','AgfZsg9VA3m','rvbjueu','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','BwvZC2fNzq'];_0x1f19=function(){return _0x3c13d7;};return _0x1f19();}function createHookOnToolCallMiddleware(_0x17d316,_0x1ec4ad,_0x433c08,_0x3dc975={}){const _0x418885={_0x117fc8:0x1b6,_0x3bf529:0xb5,_0x3e895b:0xa5,_0x385fd6:0x1a9,_0x17d9a7:0x1b9,_0x36e4b0:0xa2,_0x9bb43a:0xb7,_0x3a3c2f:0xbd,_0x4fa0c0:0x1c7,_0x1dc68f:0x1d5,_0x330cd2:0x1cc,_0x34706c:0x1c3,_0x4a1907:0x1b7,_0x39b615:0xc2,_0x552a42:0xbb,_0x3bb3c4:0xfe,_0x3f7fb7:0xb0,_0x4bd943:0xc4,_0x5cfd30:0xd9,_0x7048c1:0xdb,_0x2f645e:0xf4,_0x40bd56:0x1ae,_0x113f9b:0x1c0,_0x3297f8:0x1d0,_0x37cd94:0x1ca,_0x2c6e4d:0x194,_0x552fdc:0x1b2,_0x5ef8f7:0xd7,_0x187b58:0xce,_0x1c1e7d:0xc4,_0x37e813:0x1e4,_0x2791de:0xe9,_0x230669:0xc7,_0x242675:0xbe,_0x4f11ef:0x1c4,_0x10affe:0x1d4,_0x369998:0x1d6,_0x5356dd:0xbf,_0x51b239:0x1ea},_0x364aba={_0x567295:0x126},{sessionId:_0x37fba0,projectDir:_0x3b1a33}=_0x3dc975;return async(_0x3e0cab,_0xeb43a4)=>{const _0x12ff30=_0x17d316[_0x1a3226(0x1b6,0x1cf,_0x418885._0x117fc8,0x1b6)]('PreToolUse',_0x3e0cab[_0x1a3226(0x1d6,0x1d0,0x1b7,0x1e6)]);function _0x1a3226(_0x5424c1,_0x1e1690,_0x521bd2,_0x36aadb){return _0x13bc(_0x1e1690- -0x23,_0x36aadb);}for(const _0xf2bd1b of _0x12ff30){const _0x5b6895={'tool_name':_0x3e0cab[_0x5b6ac2(0xae,_0x418885._0x3bf529,0xcd,0xba)],'tool_input':_0x3e0cab[_0x5b6ac2(_0x418885._0x3e895b,0xc1,0xbf,0xa6)],'session_id':_0x37fba0},_0x3b6e27=await _0x1ec4ad(_0xf2bd1b[_0x1a3226(_0x418885._0x385fd6,_0x418885._0x17d9a7,0x1ba,0x1b8)],_0x5b6895,_0xf2bd1b[_0x5b6ac2(0x99,_0x418885._0x36e4b0,_0x418885._0x9bb43a,_0x418885._0x3a3c2f)],_0x3b1a33),_0x9dfab0=_0x3b6e27[_0x1a3226(_0x418885._0x385fd6,_0x418885._0x4fa0c0,_0x418885._0x1dc68f,0x1c1)]?.[_0x1a3226(_0x418885._0x330cd2,0x1cd,_0x418885._0x34706c,_0x418885._0x4a1907)]?.[_0x1a3226(0x1b1,0x1b2,0x1c4,0x1ca)];if(_0x9dfab0===_0x5b6ac2(_0x418885._0x39b615,0xbd,_0x418885._0x552a42,0xcc))break;if(_0x9dfab0==='deny')return{'action':_0x5b6ac2(0xf1,_0x418885._0x3bb3c4,0xdf,0xea),'reason':_0x3b6e27[_0x5b6ac2(_0x418885._0x3a3c2f,_0x418885._0x3f7fb7,_0x418885._0x4bd943,_0x418885._0x5cfd30)]?.['hookSpecificOutput']?.[_0x5b6ac2(0xcf,0xd0,_0x418885._0x7048c1,_0x418885._0x2f645e)]||_0x1a3226(0x1bd,_0x418885._0x40bd56,0x198,_0x418885._0x113f9b)+_0x3e0cab[_0x1a3226(0x1cc,_0x418885._0x3297f8,_0x418885._0x37cd94,0x1e2)]};if(_0x3b6e27[_0x1a3226(0x194,0x1a9,_0x418885._0x2c6e4d,_0x418885._0x552fdc)]===_0x5b6ac2(_0x418885._0x5ef8f7,0xc5,0xc1,_0x418885._0x187b58)||_0x3b6e27[_0x5b6ac2(0xb0,0xcf,_0x418885._0x1c1e7d,0xca)]?.[_0x1a3226(0x1f1,0x1e1,0x1d0,_0x418885._0x37e813)]==='block')return{'action':_0x5b6ac2(_0x418885._0x2791de,_0x418885._0x230669,0xdf,_0x418885._0x2791de),'reason':_0x3b6e27[_0x5b6ac2(0xe3,_0x418885._0x242675,0xc4,0xe2)]?.[_0x1a3226(_0x418885._0x4f11ef,_0x418885._0x10affe,_0x418885._0x369998,0x1d0)]||_0x5b6ac2(0xc8,_0x418885._0x5356dd,0xad,0x9d)+_0x3e0cab[_0x1a3226(_0x418885._0x51b239,0x1d0,0x1e7,0x1c1)]};}function _0x5b6ac2(_0x4275b1,_0x420f2b,_0x38288a,_0xf7f474){return _0x13bc(_0x38288a- -_0x364aba._0x567295,_0xf7f474);}return _0x433c08(_0x3e0cab,_0xeb43a4);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x181838){const _0x18da62={_0x250dd6:0x311,_0x1d9a1a:0x322,_0x4890b9:0x10d,_0x475a1d:0x31f,_0x234887:0x300,_0x274a2e:0x322,_0x31c94a:0xdd,_0x1cca3b:0xee,_0x1bdc1f:0x129,_0x2274e7:0x10a,_0x4fd100:0x348,_0x2a911c:0x31e,_0x187f58:0xd7,_0x104be5:0xee},_0x170f1a={_0x772978:0x136},_0x3419db={_0x3e9367:0x5dc,_0x4c01e8:0x5aa};return{'hasHooks'(_0x3b95c8){const _0x2404db={_0x4f320a:0x3c0};function _0x5192b3(_0x49912a,_0x3d3940,_0x524f2a,_0x5279d0){return _0x13bc(_0x3d3940-_0x2404db._0x4f320a,_0x524f2a);}return(_0x181838[_0x3b95c8]?.[_0x5192b3(_0x3419db._0x3e9367,0x5c6,0x5aa,_0x3419db._0x4c01e8)]??0x0)>0x0;},'getHooks'(_0x186d34,_0x1a3b93){const _0x2ac0fd=_0x181838[_0x186d34];if(!_0x2ac0fd)return[];const _0x162b74=[];function _0x3caf49(_0x234629,_0x4b489f,_0x322424,_0x3617f7){return _0x13bc(_0x234629-_0x170f1a._0x772978,_0x4b489f);}function _0x319c90(_0x5c72a7,_0x5e7b15,_0x264b72,_0x444457){return _0x13bc(_0x5e7b15- -0x2e4,_0x5c72a7);}for(const _0x32debd of _0x2ac0fd){if(!_0x32debd[_0x3caf49(0x310,_0x18da62._0x250dd6,0x2fc,_0x18da62._0x1d9a1a)]||_0x32debd[_0x319c90(-0x128,-0x10a,-0xef,-_0x18da62._0x4890b9)]==='*'){_0x162b74['push'](..._0x32debd[_0x3caf49(_0x18da62._0x475a1d,_0x18da62._0x234887,0x315,_0x18da62._0x274a2e)][_0x319c90(-0xca,-_0x18da62._0x31c94a,-_0x18da62._0x1cca3b,-0xca)](_0x11b3cd=>({'command':_0x11b3cd[_0x319c90(-0x10f,-0x108,-0xed,-0x10c)],'timeout':_0x11b3cd['timeout']??DEFAULT_TIMEOUT_S2})));continue;}if(_0x1a3b93===void 0x0)continue;const _0x52dc0b=new RegExp('^(?:'+_0x32debd[_0x319c90(-_0x18da62._0x1bdc1f,-_0x18da62._0x2274e7,-0x110,-0xfe)]+')$');_0x52dc0b['test'](_0x1a3b93)&&_0x162b74[_0x3caf49(0x32c,0x34a,_0x18da62._0x4fd100,_0x18da62._0x2a911c)](..._0x32debd['hooks'][_0x319c90(-_0x18da62._0x187f58,-0xdd,-0xf0,-_0x18da62._0x104be5)](_0x2123db=>({'command':_0x2123db['command'],'timeout':_0x2123db[_0x319c90(-0x11f,-0x107,-0x119,-0xf7)]??DEFAULT_TIMEOUT_S2})));}return _0x162b74;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
|
package/dist/isolate/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x120d(_0x5112cc,_0x1dc34d){_0x5112cc=_0x5112cc-0xf2;var _0x111eed=_0x111e();var _0x120da8=_0x111eed[_0x5112cc];if(_0x120d['YqSySy']===undefined){var _0x27b286=function(_0x523d05){var _0x10ffe7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x33412c='',_0x43e24b='';for(var _0x5195da=0x0,_0x543839,_0x4b5d41,_0x1c3a31=0x0;_0x4b5d41=_0x523d05['charAt'](_0x1c3a31++);~_0x4b5d41&&(_0x543839=_0x5195da%0x4?_0x543839*0x40+_0x4b5d41:_0x4b5d41,_0x5195da++%0x4)?_0x33412c+=String['fromCharCode'](0xff&_0x543839>>(-0x2*_0x5195da&0x6)):0x0){_0x4b5d41=_0x10ffe7['indexOf'](_0x4b5d41);}for(var _0x44393a=0x0,_0xfd89b5=_0x33412c['length'];_0x44393a<_0xfd89b5;_0x44393a++){_0x43e24b+='%'+('00'+_0x33412c['charCodeAt'](_0x44393a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43e24b);};_0x120d['VqyQzE']=_0x27b286,_0x120d['nEOpNJ']={},_0x120d['YqSySy']=!![];}var _0x57d9dc=_0x111eed[0x0],_0x19fc5a=_0x5112cc+_0x57d9dc,_0x5abcd6=_0x120d['nEOpNJ'][_0x19fc5a];return!_0x5abcd6?(_0x120da8=_0x120d['VqyQzE'](_0x120da8),_0x120d['nEOpNJ'][_0x19fc5a]=_0x120da8):_0x120da8=_0x5abcd6,_0x120da8;}(function(_0x46b535,_0x469b42){var _0x27c7c1={_0x3a4141:0x1a9,_0x341c57:0x1aa,_0x3dfd16:0x22b,_0x163b06:0x22b,_0x254eb6:0x22a,_0x19705e:0x22c,_0x3f9ab6:0x231,_0x6bf011:0x229,_0x4f455c:0x222,_0x42254b:0x223,_0x5dab92:0x228,_0x3d7286:0x1ad,_0x49a480:0x1ae,_0xff27f:0x1b2,_0x49ced9:0x1af,_0x3dfa67:0x1a9,_0x4324ee:0x1ab,_0x498936:0x1a6,_0x210692:0x1a6},_0x2ce2d2={_0x21b1ef:0x31f},_0x5b4b71={_0x3b831d:0xb4};function _0x1681fc(_0x34547f,_0x457fc8,_0x1ced5a,_0x42c0db){return _0x120d(_0x1ced5a-_0x5b4b71._0x3b831d,_0x457fc8);}var _0x55d94b=_0x46b535();function _0x236482(_0x3b5c68,_0x3a6b53,_0x4934ec,_0x2f9b87){return _0x120d(_0x3a6b53- -_0x2ce2d2._0x21b1ef,_0x4934ec);}while(!![]){try{var _0x10373=parseInt(_0x1681fc(0x1ab,_0x27c7c1._0x3a4141,0x1a9,_0x27c7c1._0x341c57))/0x1+parseInt(_0x236482(-0x226,-_0x27c7c1._0x3dfd16,-0x226,-_0x27c7c1._0x163b06))/0x2*(parseInt(_0x236482(-_0x27c7c1._0x254eb6,-_0x27c7c1._0x19705e,-0x231,-_0x27c7c1._0x3f9ab6))/0x3)+parseInt(_0x236482(-_0x27c7c1._0x6bf011,-0x228,-_0x27c7c1._0x6bf011,-0x229))/0x4+parseInt(_0x236482(-_0x27c7c1._0x4f455c,-0x226,-_0x27c7c1._0x42254b,-_0x27c7c1._0x5dab92))/0x5+-parseInt(_0x1681fc(_0x27c7c1._0x3d7286,0x1af,_0x27c7c1._0x49a480,_0x27c7c1._0xff27f))/0x6*(parseInt(_0x1681fc(_0x27c7c1._0x49ced9,_0x27c7c1._0x3dfa67,0x1ac,_0x27c7c1._0x4324ee))/0x7)+parseInt(_0x1681fc(_0x27c7c1._0x498936,0x1aa,0x1aa,_0x27c7c1._0x3dfa67))/0x8+-parseInt(_0x1681fc(_0x27c7c1._0x210692,0x1a5,_0x27c7c1._0x210692,0x1a4))/0x9;if(_0x10373===_0x469b42)break;else _0x55d94b['push'](_0x55d94b['shift']());}catch(_0x5ab712){_0x55d94b['push'](_0x55d94b['shift']());}}}(_0x111e,0x8e7e9));import{IsolateLimitError,IsolationUnavailableError,classifyIsolateError,loadIsolatedVm}from'../chunk-EQGBU73Q.js';function _0x111e(){var _0x6a659e=['mZm4nZKWnujUAxDPyG','otzyuMHPDee','mJeWnta0mdzvz1nqvMe','mZyWm253Bej0Ba','mtm4mNL4yxrktG','ndK0ndqYC0LktKzj','ndaYmJa0ogrtywvfra','mZu3nZu0mePeq0j2uq','mJa4nduZuhP5txvr'];_0x111e=function(){return _0x6a659e;};return _0x111e();}export{IsolateLimitError,IsolationUnavailableError,classifyIsolateError,loadIsolatedVm};
|