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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x3175d7,_0x25e123){var _0x416212={_0x231078:0x436,_0x43b713:0x439,_0x464919:0x437,_0x13ae98:0x43a,_0x46ae2f:0x434,_0x5b1bd7:0x431,_0x3ef259:0x43f,_0x3052a9:0x439,_0x2b57a6:0x43c,_0x34899f:0x43e,_0x46dc7e:0x443,_0xbf5e18:0x1fc,_0x57b01f:0x438},_0x47b811={_0x1ce69b:0x36d};function _0x1b0f3d(_0x268860,_0x24422f,_0x1bf6ea,_0x447f89){return _0x7fe0(_0x24422f-0x2ca,_0x447f89);}var _0x2a61dc=_0x3175d7();function _0xee7741(_0x359c91,_0x210b0a,_0x530738,_0xab2d96){return _0x7fe0(_0x210b0a- -_0x47b811._0x1ce69b,_0xab2d96);}while(!![]){try{var _0x52bb6e=-parseInt(_0x1b0f3d(_0x416212._0x231078,_0x416212._0x43b713,0x43d,0x437))/0x1+parseInt(_0x1b0f3d(0x43c,0x43d,0x439,0x43e))/0x2+-parseInt(_0x1b0f3d(_0x416212._0x464919,0x436,_0x416212._0x13ae98,_0x416212._0x464919))/0x3+parseInt(_0x1b0f3d(_0x416212._0x46ae2f,_0x416212._0x464919,_0x416212._0x5b1bd7,0x432))/0x4+parseInt(_0x1b0f3d(0x440,_0x416212._0x3ef259,_0x416212._0x3052a9,0x43e))/0x5*(-parseInt(_0x1b0f3d(_0x416212._0x2b57a6,0x441,0x442,0x441))/0x6)+-parseInt(_0x1b0f3d(0x442,_0x416212._0x34899f,_0x416212._0x46dc7e,0x438))/0x7+parseInt(_0xee7741(-_0x416212._0xbf5e18,-0x1fd,-0x1f7,-0x1fa))/0x8*(parseInt(_0x1b0f3d(0x43d,_0x416212._0x57b01f,_0x416212._0x231078,_0x416212._0x34899f))/0x9);if(_0x52bb6e===_0x25e123)break;else _0x2a61dc['push'](_0x2a61dc['shift']());}catch(_0x119e25){_0x2a61dc['push'](_0x2a61dc['shift']());}}}(_0x5944,0xd2b37));function _0x5944(){var _0x2ef323=['mtq1mtC2n1z3s0rVBa','mtaWmefkvuTtDq','yw50AhjVCgLJ','B3bLBMfP','mtKYodmZnMLPtxjwBq','mte4odCYnMzzCejNza','mte5otm1ENf0EK9H','y29KzxG','ntrvEg9WqK4','mtmZndy3m1HpzxPlrG','mZeZntm4ogzjDvvquq','mtaWnJeXsuTiAuDe'];_0x5944=function(){return _0x2ef323;};return _0x5944();}function resolveAnthropicReasoningConfig(_0x7ea6fe){var _0xa82210={_0x45c983:0x61};function _0x549bbd(_0x155b5a,_0x3e9224,_0xb827cb,_0x22e1dc){return _0x7fe0(_0x3e9224- -_0xa82210._0x45c983,_0xb827cb);}return _0x7ea6fe?.[_0x549bbd(0x112,0x110,0x113,0x114)]?structuredClone(_0x7ea6fe['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x437f15){var _0x19ce22={_0x5904c6:0x49e,_0x3a4ad3:0x3c,_0x3dd2d5:0x34,_0x35e16f:0x36,_0x4c141f:0x35,_0x436bd2:0x41,_0x2225ee:0x499,_0x2a85ec:0x4a0};if(_0x437f15?.[_0x5f14ea(0x4a2,0x4a6,0x4a1,_0x19ce22._0x5904c6)])return structuredClone(_0x437f15[_0xb3c60b(-0x37,-_0x19ce22._0x3a4ad3,-_0x19ce22._0x3dd2d5,-_0x19ce22._0x35e16f)]);function _0x5f14ea(_0xa80d54,_0x5604f2,_0x25312c,_0x2addd4){return _0x7fe0(_0x25312c-0x32b,_0x5604f2);}function _0xb3c60b(_0xfa7089,_0x2577c8,_0x2c9626,_0x254ba8){return _0x7fe0(_0xfa7089- -0x1ad,_0x254ba8);}return _0x437f15?.[_0xb3c60b(-0x3b,-_0x19ce22._0x3a4ad3,-_0x19ce22._0x4c141f,-_0x19ce22._0x436bd2)]?structuredClone(_0x437f15[_0x5f14ea(_0x19ce22._0x2225ee,_0x19ce22._0x2a85ec,0x49d,0x49b)]):void 0x0;}function _0x7fe0(_0x4be0ab,_0x425444){_0x4be0ab=_0x4be0ab-0x16c;var _0x5944f4=_0x5944();var _0x7fe08d=_0x5944f4[_0x4be0ab];if(_0x7fe0['QQiOhw']===undefined){var _0x4609b7=function(_0x544fe8){var _0x6749b8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x7ea6fe='',_0x437f15='';for(var _0x50dae6=0x0,_0x7961cb,_0x4a5258,_0x236637=0x0;_0x4a5258=_0x544fe8['charAt'](_0x236637++);~_0x4a5258&&(_0x7961cb=_0x50dae6%0x4?_0x7961cb*0x40+_0x4a5258:_0x4a5258,_0x50dae6++%0x4)?_0x7ea6fe+=String['fromCharCode'](0xff&_0x7961cb>>(-0x2*_0x50dae6&0x6)):0x0){_0x4a5258=_0x6749b8['indexOf'](_0x4a5258);}for(var _0x455734=0x0,_0x29b9a4=_0x7ea6fe['length'];_0x455734<_0x29b9a4;_0x455734++){_0x437f15+='%'+('00'+_0x7ea6fe['charCodeAt'](_0x455734)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x437f15);};_0x7fe0['hPOBCJ']=_0x4609b7,_0x7fe0['JiqXjT']={},_0x7fe0['QQiOhw']=!![];}var _0x445208=_0x5944f4[0x0],_0x5bc448=_0x4be0ab+_0x445208,_0x202332=_0x7fe0['JiqXjT'][_0x5bc448];return!_0x202332?(_0x7fe08d=_0x7fe0['hPOBCJ'](_0x7fe08d),_0x7fe0['JiqXjT'][_0x5bc448]=_0x7fe08d):_0x7fe08d=_0x202332,_0x7fe08d;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0x3365d2,_0x3f375e){var _0x54b6ac={_0x2ba275:0x20d,_0x5a61e9:0x29e,_0xb9209d:0x2a1,_0x44d3ac:0x2a2,_0x5e558a:0x2a0,_0x16e200:0x2a5,_0x25e6cd:0x2a6,_0x541be5:0x2a5,_0x3a7b14:0x29c,_0x16a4af:0x20c,_0x4701aa:0x205,_0x1a0146:0x29a,_0x1e9270:0x29f,_0x3c091b:0x202,_0x1733a4:0x1ff},_0x3cb397={_0x2e8fe2:0x35b},_0x249270={_0x3e086f:0x14d};function _0x3a61a4(_0x262421,_0x1af80b,_0x4c4b8e,_0x457aa2){return _0x470f(_0x4c4b8e-_0x249270._0x3e086f,_0x457aa2);}var _0x7b17e=_0x3365d2();function _0x2e1aa4(_0x11938b,_0x489fca,_0x3b35ba,_0x504579){return _0x470f(_0x11938b- -_0x3cb397._0x2e8fe2,_0x489fca);}while(!![]){try{var _0x1fcf51=-parseInt(_0x2e1aa4(-0x208,-0x20a,-_0x54b6ac._0x2ba275,-0x20c))/0x1*(parseInt(_0x3a61a4(_0x54b6ac._0x5a61e9,_0x54b6ac._0xb9209d,_0x54b6ac._0x44d3ac,_0x54b6ac._0x5e558a))/0x2)+parseInt(_0x3a61a4(_0x54b6ac._0x16e200,0x2a6,_0x54b6ac._0x25e6cd,_0x54b6ac._0x541be5))/0x3+parseInt(_0x3a61a4(_0x54b6ac._0x3a7b14,0x2a1,0x29d,0x2a2))/0x4+-parseInt(_0x2e1aa4(-0x207,-_0x54b6ac._0x16a4af,-0x202,-_0x54b6ac._0x4701aa))/0x5+-parseInt(_0x3a61a4(_0x54b6ac._0x1a0146,0x299,_0x54b6ac._0x1e9270,0x2a4))/0x6+parseInt(_0x2e1aa4(-0x203,-_0x54b6ac._0x3c091b,-0x203,-0x1ff))/0x7+parseInt(_0x2e1aa4(-0x204,-_0x54b6ac._0x1733a4,-0x204,-0x1ff))/0x8;if(_0x1fcf51===_0x3f375e)break;else _0x7b17e['push'](_0x7b17e['shift']());}catch(_0x7a02a0){_0x7b17e['push'](_0x7b17e['shift']());}}}(_0x5c91,0xabeb3));function _0x470f(_0x29577e,_0x29c176){_0x29577e=_0x29577e-0x150;var _0x5c91bd=_0x5c91();var _0x470fa4=_0x5c91bd[_0x29577e];if(_0x470f['qPPogb']===undefined){var _0x45bc3f=function(_0x1db701){var _0x3c1172='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4fed95='',_0x9c5c7b='';for(var _0x400636=0x0,_0x192c0c,_0x53d591,_0x363a3a=0x0;_0x53d591=_0x1db701['charAt'](_0x363a3a++);~_0x53d591&&(_0x192c0c=_0x400636%0x4?_0x192c0c*0x40+_0x53d591:_0x53d591,_0x400636++%0x4)?_0x4fed95+=String['fromCharCode'](0xff&_0x192c0c>>(-0x2*_0x400636&0x6)):0x0){_0x53d591=_0x3c1172['indexOf'](_0x53d591);}for(var _0x270cb3=0x0,_0x4e9aac=_0x4fed95['length'];_0x270cb3<_0x4e9aac;_0x270cb3++){_0x9c5c7b+='%'+('00'+_0x4fed95['charCodeAt'](_0x270cb3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x9c5c7b);};_0x470f['cnoMkJ']=_0x45bc3f,_0x470f['EtVYhV']={},_0x470f['qPPogb']=!![];}var _0x2299dd=_0x5c91bd[0x0],_0x4e974d=_0x29577e+_0x2299dd,_0x4d1287=_0x470f['EtVYhV'][_0x4e974d];return!_0x4d1287?(_0x470fa4=_0x470f['cnoMkJ'](_0x470fa4),_0x470f['EtVYhV'][_0x4e974d]=_0x470fa4):_0x470fa4=_0x4d1287,_0x470fa4;}function _0x5c91(){var _0x1be528=['mZiWmZa2mu1ywM1hAa','y29KzxG','nZCYnJaWD2jyExjW','yw50AhjVCgLJ','nZu4mte1mevhzvDVBa','mNLeC25syW','mti3ntG5mhjuthrbDq','nJy1mdK4sK9LBwnh','B3bLBMfP','nZK2mZqZmM9ArMzcDa','ndqYmtK5ofLRB3rWBG'];_0x5c91=function(){return _0x1be528;};return _0x5c91();}function resolveAnthropicReasoningConfig(_0x4fed95){var _0x3d21de={_0x53a555:0x3dd,_0xe2d21d:0x3d9},_0x1abbab={_0x16306e:0x28c};function _0x358aee(_0x25fb54,_0x2ca94c,_0x54b41c,_0x457eb5){return _0x470f(_0x25fb54-_0x1abbab._0x16306e,_0x2ca94c);}return _0x4fed95?.[_0x358aee(_0x3d21de._0x53a555,0x3e1,0x3e0,_0x3d21de._0xe2d21d)]?structuredClone(_0x4fed95['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x9c5c7b){var _0x4915da={_0x2c48f9:0x270,_0x270433:0x274,_0x26561a:0x275,_0xe25db7:0x271,_0x17cd43:0x272,_0x3b4ae9:0x277};function _0x2f76ff(_0x23ce9b,_0x62be98,_0x92492,_0x1fa487){return _0x470f(_0x62be98- -0x251,_0x23ce9b);}if(_0x9c5c7b?.[_0x4f4572(-0x274,-_0x4915da._0x2c48f9,-_0x4915da._0x270433,-_0x4915da._0x26561a)])return structuredClone(_0x9c5c7b[_0x4f4572(-_0x4915da._0xe25db7,-0x270,-_0x4915da._0x17cd43,-0x270)]);function _0x4f4572(_0x234219,_0x588105,_0x315496,_0x4202ed){return _0x470f(_0x588105- -0x3ca,_0x315496);}return _0x9c5c7b?.[_0x4f4572(-_0x4915da._0x3b4ae9,-0x274,-0x274,-0x274)]?structuredClone(_0x9c5c7b['openai']):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x34e588,_0x1c0882){const _0x215102={_0x1b3256:0x283,_0x328aed:0x283,_0x3aca19:0x254,_0x583b6e:0x23f,_0x1d6733:0x217,_0x34d88c:0x212,_0x54bcd5:0x2c8,_0x4302c0:0x28f,_0x2693ca:0x2b6,_0x2c8274:0x21f,_0x26f500:0x28d,_0x4fcc91:0x286,_0x3c5787:0x22a,_0x4b0f6e:0x213,_0x175824:0x2b3,_0x58ff41:0x2c2,_0x42fe6c:0x2a6,_0x12a8b4:0x2c1,_0x33695f:0x289,_0x34e3eb:0x287},_0x3592e9=_0x34e588();function _0x42e89f(_0x3ca5c2,_0x5930b9,_0x27c411,_0x5e2e8f){return _0x4951(_0x5e2e8f-0x17d,_0x27c411);}function _0x24093e(_0x46dd46,_0x44886b,_0x1bed6b,_0x5f9a16){return _0x4951(_0x46dd46- -0x33f,_0x44886b);}while(!![]){try{const _0x57aa69=-parseInt(_0x24093e(-_0x215102._0x1b3256,-0x26a,-0x271,-_0x215102._0x328aed))/0x1+-parseInt(_0x42e89f(_0x215102._0x3aca19,0x247,_0x215102._0x583b6e,0x237))/0x2+-parseInt(_0x42e89f(0x22e,_0x215102._0x1d6733,0x205,_0x215102._0x34d88c))/0x3*(parseInt(_0x24093e(-0x2ab,-_0x215102._0x54bcd5,-_0x215102._0x4302c0,-_0x215102._0x2693ca))/0x4)+parseInt(_0x42e89f(0x223,_0x215102._0x2c8274,0x236,0x21b))/0x5+parseInt(_0x24093e(-0x27c,-_0x215102._0x26f500,-0x25f,-_0x215102._0x4fcc91))/0x6*(parseInt(_0x42e89f(_0x215102._0x3c5787,0x21d,0x215,_0x215102._0x4b0f6e))/0x7)+parseInt(_0x24093e(-_0x215102._0x175824,-_0x215102._0x58ff41,-0x2b9,-_0x215102._0x42fe6c))/0x8*(parseInt(_0x24093e(-0x2a2,-0x29f,-0x28e,-_0x215102._0x12a8b4))/0x9)+parseInt(_0x24093e(-_0x215102._0x33695f,-0x2a4,-_0x215102._0x34e3eb,-0x2a5))/0xa;if(_0x57aa69===_0x1c0882)break;else _0x3592e9['push'](_0x3592e9['shift']());}catch(_0x1ce3a1){_0x3592e9['push'](_0x3592e9['shift']());}}}(_0x40e3,0x563d5));function _0x4951(_0x64925,_0x30da20){_0x64925=_0x64925-0x8b;const _0x40e39f=_0x40e3();let _0x495110=_0x40e39f[_0x64925];if(_0x4951['RIBAhd']===undefined){var _0x3d9588=function(_0x57f7e1){const _0x9d7ca7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4af38c='',_0x303763='';for(let _0x32ea50=0x0,_0x4e93c1,_0xabc67f,_0x552e2b=0x0;_0xabc67f=_0x57f7e1['charAt'](_0x552e2b++);~_0xabc67f&&(_0x4e93c1=_0x32ea50%0x4?_0x4e93c1*0x40+_0xabc67f:_0xabc67f,_0x32ea50++%0x4)?_0x4af38c+=String['fromCharCode'](0xff&_0x4e93c1>>(-0x2*_0x32ea50&0x6)):0x0){_0xabc67f=_0x9d7ca7['indexOf'](_0xabc67f);}for(let _0x403fc0=0x0,_0x4db5aa=_0x4af38c['length'];_0x403fc0<_0x4db5aa;_0x403fc0++){_0x303763+='%'+('00'+_0x4af38c['charCodeAt'](_0x403fc0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x303763);};_0x4951['Gvraju']=_0x3d9588,_0x4951['EJaBsv']={},_0x4951['RIBAhd']=!![];}const _0x51a4fd=_0x40e39f[0x0],_0x268303=_0x64925+_0x51a4fd,_0x3548de=_0x4951['EJaBsv'][_0x268303];return!_0x3548de?(_0x495110=_0x4951['Gvraju'](_0x495110),_0x4951['EJaBsv'][_0x268303]=_0x495110):_0x495110=_0x3548de,_0x495110;}import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4af38c){const _0x1e9835={_0x53d35f:0x2e0,_0x4cf878:0x30c,_0x24650f:0x2fd,_0x54f458:0x2e1,_0x5af7f:0x1ca},_0x205894={_0x52276f:0x106};function _0x4146df(_0x312127,_0x5ba190,_0x1e7bab,_0x3fdc23){return _0x4951(_0x1e7bab- -0x3a0,_0x3fdc23);}function _0x16de64(_0x1242da,_0x4a3c9c,_0x54a755,_0x255fc4){return _0x4951(_0x255fc4-_0x205894._0x52276f,_0x1242da);}return normalizeContent(_0x4af38c)[_0x4146df(-_0x1e9835._0x53d35f,-0x2ec,-0x2fe,-0x2f2)](_0x303763=>_0x303763[_0x4146df(-0x2d9,-0x2fa,-0x2eb,-0x2f1)]===_0x16de64(0x1a5,0x1d2,0x1c0,0x1c3))[_0x4146df(-_0x1e9835._0x4cf878,-0x2fa,-_0x1e9835._0x24650f,-_0x1e9835._0x54f458)](_0x32ea50=>_0x32ea50[_0x16de64(0x1b6,0x1ce,0x1dd,0x1c3)])[_0x16de64(0x1b5,0x1b6,0x1c5,_0x1e9835._0x5af7f)]('\x0a\x0a');}function pushUserContentMessage(_0x4e93c1,_0xabc67f,_0x552e2b){const _0x156b72={_0x3d1248:0xcc,_0x42deaf:0xb3,_0x5ba9e7:0xc4,_0x5814b6:0x12e,_0x1970a2:0x134};function _0x35dc26(_0x34a901,_0x3ee05c,_0x12c694,_0x5dab99){return _0x4951(_0x5dab99- -0x173,_0x12c694);}function _0x5dff2f(_0x3ef439,_0x2d230b,_0x355a2a,_0x236b7e){return _0x4951(_0x236b7e-0xa3,_0x3ef439);}if(_0x552e2b['length']===0x0)return;_0x4e93c1[_0x35dc26(-_0x156b72._0x3d1248,-_0x156b72._0x42deaf,-_0x156b72._0x5ba9e7,-0xcf)]({'type':_0x5dff2f(_0x156b72._0x5814b6,_0x156b72._0x1970a2,0x155,0x143),'role':_0xabc67f,'content':_0x552e2b});}function hasSerializableToolUse(_0x403fc0){const _0x37b0c2={_0x243224:0xb6,_0x380f37:0xc6,_0x5fda53:0xde,_0x3f11ba:0xb2,_0x4eb0cb:0xbb,_0x125749:0xad,_0x27dfeb:0xa8,_0x35632f:0xe0,_0xf7070a:0xb0},_0x4849d6={_0x21c7d2:0x6};function _0x3f06ea(_0x3ac14b,_0x4f2d3d,_0x148ea3,_0x1b7d26){return _0x4951(_0x148ea3-_0x4849d6._0x21c7d2,_0x4f2d3d);}function _0xcb0034(_0x373c75,_0x221745,_0xea55,_0x49e7c7){return _0x4951(_0x221745- -0x13a,_0xea55);}return _0x403fc0['id'][_0x3f06ea(_0x37b0c2._0x243224,0xaa,_0x37b0c2._0x380f37,_0x37b0c2._0x5fda53)]()[_0x3f06ea(_0x37b0c2._0x3f11ba,0xb1,0xa1,0xba)]>0x0&&_0x403fc0[_0x3f06ea(_0x37b0c2._0x4eb0cb,0xa9,0xbe,_0x37b0c2._0x125749)][_0x3f06ea(_0x37b0c2._0x27dfeb,_0x37b0c2._0x35632f,_0x37b0c2._0x380f37,0xbe)]()[_0xcb0034(-0x91,-0x9f,-_0x37b0c2._0xf7070a,-0x91)]>0x0;}function hasSerializableToolResult(_0x4db5aa){const _0x27e94f={_0x41bd2d:0x2c7,_0x4755fe:0x2e4,_0x250769:0x2d2,_0x4c7b31:0x2e0},_0xdf5745={_0x234c3e:0x122},_0xd486eb={_0x2c8583:0x237};function _0x42fe9c(_0x39612b,_0x4b43ab,_0x1dd71c,_0x271a49){return _0x4951(_0x39612b-_0xd486eb._0x2c8583,_0x4b43ab);}function _0x16c878(_0x72065f,_0x46b47e,_0xabbf05,_0x53e2d9){return _0x4951(_0x46b47e-_0xdf5745._0x234c3e,_0x72065f);}return _0x4db5aa[_0x42fe9c(_0x27e94f._0x41bd2d,_0x27e94f._0x4755fe,_0x27e94f._0x250769,0x2b9)]['trim']()[_0x42fe9c(0x2d2,0x2c3,_0x27e94f._0x4c7b31,0x2c3)]>0x0;}function _0x40e3(){const _0x37efbd=['zwzMB3j0','C3rYDwn0DxjLzf9VDxrWDxq','ChjVDMLKzxjtDgf0zq','CM9Szq','C3rYAw5N','DhLWzq','ndq5mZC5mhDIBff0uq','B2jQzwn0','BMfTzq','DxnLCI12AxnPyMXL','mta2nZe2nfvVCLDWsG','B3v0Chv0rM9YBwf0','mJy4nZmXEvrgqxfm','Dgv4Da','DxnLCG','o2jHC2u2ncW','DhjPBq','Aw5WDxrFAw1Hz2u','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','nZyYnKLqEwDPEa','AM9PBG','BwvZC2fNzxm','Bwf4vg9Rzw5Z','BwvKAwfFDhLWzq','AxnbCNjHEq','DMLZAwjPBgL0Eq','mtG0odi0ohnqBMjjyW','zNvUy3rPB24','yxnZAxn0yw50','Dg9VBf9Yzxn1Bhq','Dg9VBf91C2vFAwq','zgf0ytO','zgf0yq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','mJa1nKHsse5bDG','mtK4z0HhvMjY','ndi3tw5pDvLw','CMvHC29UAw5N','C3vTBwfYEq','C3LZDgvT','A2v5CW','BgvUz3rO','Dg9VBhm','ou1NzhHxAG','mJe1nZy2nvHzsuTzsq','B3v0Chv0x3rLEhq','BwvZC2fNzq','yMfZzty0','zMLSDgvY','BwfW','ChvZAa','Aw5WDxrFDgv4Da','C3bSAwnL','ANnVBL9Zy2HLBwe','C291CMnL','y29UDgvUDa','zgvZy3jPChrPB24','Aw5WDxq','C2nOzw1H','Aw1Hz2u','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Bw9KzwW'];_0x40e3=function(){return _0x37efbd;};return _0x40e3();}function isResponseInputObject(_0x7e7f38){const _0x1fdd60={_0x1665c3:0x2d1,_0x20bb33:0x2e5,_0x1aac3f:0x2ed,_0x140e3b:0x4ac,_0x280d58:0x485,_0x166cd1:0x2d0,_0x1d8d89:0x2f3};function _0x1d7a6b(_0x5ce32d,_0xa7ba1c,_0x337753,_0x4be29d){return _0x4951(_0x4be29d-0x236,_0xa7ba1c);}if(typeof _0x7e7f38!==_0x1d7a6b(_0x1fdd60._0x1665c3,0x2dc,_0x1fdd60._0x20bb33,_0x1fdd60._0x1aac3f)||_0x7e7f38===null||Array[_0x5c2180(0x49c,_0x1fdd60._0x140e3b,_0x1fdd60._0x280d58,0x48c)](_0x7e7f38))return![];function _0x5c2180(_0x16bffd,_0x3c7508,_0x17739e,_0x46f427){return _0x4951(_0x16bffd-0x3d4,_0x46f427);}const _0x32dfa5=_0x7e7f38;return typeof _0x32dfa5['type']===_0x1d7a6b(_0x1fdd60._0x166cd1,_0x1fdd60._0x1d8d89,0x307,0x2ea);}function isImageToolResultBlock(_0x4e1402){const _0x46bb4f={_0xf76bb1:0xdf,_0x181959:0xca,_0x4ab1f0:0xd1,_0x155c84:0x106,_0x771d56:0x108,_0x5095d3:0x3b0,_0x45040a:0x391,_0xe2a91e:0x3aa,_0x84522:0x38b,_0x21392e:0x372,_0x546df7:0x380,_0x2190d2:0x384,_0x2bb4bb:0x394,_0x4a2d8c:0x3a2,_0x3de45a:0x396,_0x13a2fa:0x37d,_0x1c2ee2:0x384,_0xf02777:0x395,_0x581f4a:0x373,_0x4d6a05:0xe0,_0xdf4104:0xe2,_0x59f376:0xda,_0x4c8fd6:0xd6,_0x375bdf:0x37d,_0x1ff671:0x363},_0x433c6a={_0xc97774:0x2e};function _0x57d1dd(_0x337817,_0x49ea8c,_0x7c0b1e,_0x3fd91d){return _0x4951(_0x49ea8c-0x2dc,_0x3fd91d);}if(typeof _0x4e1402!==_0x1cc953(_0x46bb4f._0xf76bb1,_0x46bb4f._0x181959,_0x46bb4f._0x4ab1f0,0xe5)||_0x4e1402===null||Array[_0x1cc953(_0x46bb4f._0x155c84,_0x46bb4f._0x771d56,0xe0,0xf6)](_0x4e1402))return![];const _0x1c308e=_0x4e1402;function _0x1cc953(_0x325708,_0x329713,_0x5e7be8,_0x16356a){return _0x4951(_0x16356a-_0x433c6a._0xc97774,_0x329713);}return _0x1c308e[_0x57d1dd(_0x46bb4f._0x5095d3,_0x46bb4f._0x45040a,0x3a2,_0x46bb4f._0xe2a91e)]===_0x57d1dd(0x377,0x389,_0x46bb4f._0x84522,_0x46bb4f._0x21392e)&&_0x1c308e[_0x57d1dd(_0x46bb4f._0x546df7,_0x46bb4f._0x2190d2,0x37e,0x381)]?.[_0x57d1dd(0x397,0x391,_0x46bb4f._0x2bb4bb,_0x46bb4f._0x4a2d8c)]===_0x57d1dd(_0x46bb4f._0x3de45a,_0x46bb4f._0x13a2fa,_0x46bb4f._0x2190d2,0x36b)&&typeof _0x1c308e[_0x57d1dd(0x3a2,_0x46bb4f._0x1c2ee2,_0x46bb4f._0xf02777,_0x46bb4f._0x581f4a)]['media_type']===_0x1cc953(0xe0,_0x46bb4f._0x4d6a05,0xeb,_0x46bb4f._0xdf4104)&&typeof _0x1c308e[_0x1cc953(0xd4,0xf3,_0x46bb4f._0x59f376,_0x46bb4f._0x4c8fd6)][_0x57d1dd(_0x46bb4f._0x375bdf,0x36e,0x363,_0x46bb4f._0x1ff671)]==='string';}function getToolResultText(_0x5bacb2){const _0x21fc65={_0x49f86a:0x276,_0x49e45a:0x266,_0x104d54:0x269,_0x19ace9:0x292,_0x47496b:0x281,_0xe3c57:0x2a8,_0xf59b3a:0x28d,_0x3cc032:0x289},_0x36dd29={_0x3371c8:0x2c5,_0x585d21:0x2b8,_0x449ff1:0x2b0,_0x3098b9:0x3ca,_0x3cfb0e:0x3c1,_0x525a81:0x3ac,_0xdb1035:0x2ad},_0x5f11db={_0xa6c0aa:0x21,_0x3395c5:0x623},_0x3eb5aa={_0xc2688a:0x33c};if(typeof _0x5bacb2==='string')return _0x5bacb2;function _0x3e1d81(_0x556f77,_0x206cdc,_0x5e4207,_0x57b3c1){return _0x4951(_0x5e4207- -_0x3eb5aa._0xc2688a,_0x556f77);}function _0x1941d3(_0x30ad68,_0xfc5f99,_0x8d0859,_0x4df722){return _0x4951(_0x4df722- -0x324,_0x8d0859);}const _0x4b9561=_0x5bacb2[_0x1941d3(-_0x21fc65._0x49f86a,-0x28b,-_0x21fc65._0x49e45a,-0x282)](_0x2d2346=>{function _0x28d157(_0x73015b,_0x13516f,_0x5875bb,_0x3b25e6){return _0x1941d3(_0x73015b-_0x5f11db._0xa6c0aa,_0x13516f-0x103,_0x73015b,_0x3b25e6-_0x5f11db._0x3395c5);}function _0x487260(_0x1ffe9a,_0x49f35e,_0x386afc,_0x2d7d50){return _0x1941d3(_0x1ffe9a-0x1d0,_0x49f35e-0xf7,_0x386afc,_0x49f35e- -0x5f);}return typeof _0x2d2346===_0x487260(-_0x36dd29._0x3371c8,-0x2cc,-_0x36dd29._0x585d21,-_0x36dd29._0x449ff1)&&_0x2d2346!==null&&_0x2d2346[_0x28d157(_0x36dd29._0x3098b9,_0x36dd29._0x3cfb0e,_0x36dd29._0x525a81,0x3b4)]===_0x487260(-0x2b8,-0x2c6,-0x2c8,-_0x36dd29._0xdb1035);})[_0x1941d3(-_0x21fc65._0x104d54,-_0x21fc65._0x19ace9,-0x269,-_0x21fc65._0x47496b)](_0x2f0cd7=>_0x2f0cd7[_0x1941d3(-0x285,-0x251,-0x252,-0x267)])[_0x1941d3(-0x242,-0x253,-0x271,-0x260)]('\x0a\x0a')[_0x3e1d81(-0x26f,-0x266,-0x27c,-0x265)]();return _0x4b9561[_0x1941d3(-_0x21fc65._0xe3c57,-_0x21fc65._0xf59b3a,-0x2a0,-_0x21fc65._0x3cc032)]>0x0?_0x4b9561:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x1ed736){const _0x240a4e={_0x412673:0x193,_0xd6f80b:0x15e,_0x19955e:0x159,_0x4baad4:0x157},_0x3e2f07={_0x2dfa4c:0x1db};function _0x100ca0(_0x2ace87,_0x7fad93,_0x577bbb,_0xa278aa){return _0x4951(_0x2ace87-_0x3e2f07._0x2dfa4c,_0xa278aa);}function _0x85830b(_0x15255f,_0x45102d,_0x79a81,_0x139570){return _0x4951(_0x79a81-0xb7,_0x45102d);}return Array[_0x85830b(_0x240a4e._0x412673,0x17f,0x17f,0x165)](_0x1ed736)?_0x1ed736[_0x85830b(_0x240a4e._0xd6f80b,0x14e,_0x240a4e._0x19955e,_0x240a4e._0x4baad4)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x268660){const _0x29bcd9={_0x2c82f8:0x41d,_0x18c7ea:0x3ec,_0x4b4bd3:0x416,_0x3a4010:0x3f5,_0x3c66fa:0x3f1,_0x14a97a:0x30f,_0x39c733:0x307},_0x51a814={_0x1f3ac5:0x3be},_0x4f41a1={_0x1cba0c:0x369};function _0x279dda(_0x3e4498,_0x47267f,_0x17f1c8,_0x508407){return _0x4951(_0x47267f-_0x4f41a1._0x1cba0c,_0x3e4498);}function _0x15a309(_0x2805a3,_0x57c6e5,_0x295300,_0x18cd4c){return _0x4951(_0x2805a3- -_0x51a814._0x1f3ac5,_0x57c6e5);}return _0x268660[_0x279dda(_0x29bcd9._0x2c82f8,0x400,_0x29bcd9._0x18c7ea,_0x29bcd9._0x4b4bd3)]?.[_0x279dda(_0x29bcd9._0x3a4010,0x3f4,0x3ed,_0x29bcd9._0x3c66fa)]??_0x15a309(-0x305,-_0x29bcd9._0x14a97a,-_0x29bcd9._0x39c733,-0x2f4);}function createOpenAiResponsesReasoning(_0x127cc9){const _0x3f709a={_0x47ed90:0x3ce,_0x5592d6:0x3c7,_0x50e99a:0x3f6,_0x50ad62:0x3e1,_0x47990c:0x3f3,_0x483b2b:0x3fb,_0x562e2d:0x3d3,_0x47263c:0x41f,_0x15dfe6:0x41b,_0x452373:0x440,_0x1a9d89:0x414,_0x22a89d:0x424,_0x2556d7:0x422,_0x155807:0x3e2,_0x37e34a:0x40c,_0x376b0f:0x410,_0x14749c:0x3f9,_0x3fe4b1:0x41b,_0x4d84bd:0x41a,_0x2d6fc8:0x423},_0x52dfd7={_0x13fdb8:0x34a},_0x23a248=resolveOpenAiReasoningConfig(_0x127cc9[_0x28029b(0x3e1,_0x3f709a._0x47ed90,_0x3f709a._0x5592d6,_0x3f709a._0x50e99a)]);if(!_0x23a248)return{};const _0x483137={},_0x314dda=_0x127cc9[_0x28029b(_0x3f709a._0x50ad62,0x3f2,_0x3f709a._0x47990c,0x3c2)]?.['codex']!==void 0x0,_0x2de51d=(!_0x314dda&&_0x5ac3c0(0x419,0x425,0x408,_0x3f709a._0x483b2b)in _0x23a248?_0x23a248[_0x28029b(0x3e2,0x3d1,_0x3f709a._0x562e2d,0x3f0)]:void 0x0)??(resolveReasoningVisibility(_0x127cc9)==='user-visible'?'auto':void 0x0);_0x23a248[_0x5ac3c0(0x431,0x433,_0x3f709a._0x47263c,0x432)]&&(_0x483137[_0x5ac3c0(0x431,_0x3f709a._0x15dfe6,_0x3f709a._0x452373,0x44b)]=_0x23a248['effort']);function _0x28029b(_0x253821,_0x136d59,_0x213b95,_0x50aec9){return _0x4951(_0x253821-_0x52dfd7._0x13fdb8,_0x213b95);}function _0x5ac3c0(_0x11b727,_0x2d23d8,_0x4e44ba,_0x2e24b8){return _0x4951(_0x11b727-0x381,_0x2d23d8);}return _0x2de51d&&(_0x483137['summary']=_0x2de51d),{...!_0x314dda&&_0x5ac3c0(_0x3f709a._0x1a9d89,_0x3f709a._0x22a89d,0x411,_0x3f709a._0x2556d7)in _0x23a248&&_0x23a248[_0x28029b(0x3dd,_0x3f709a._0x155807,0x3c3,0x3df)]===![]?{}:{'include':[_0x28029b(_0x3f709a._0x37e34a,_0x3f709a._0x376b0f,0x400,_0x3f709a._0x14749c)]},...Object[_0x5ac3c0(_0x3f709a._0x3fe4b1,_0x3f709a._0x4d84bd,_0x3f709a._0x2d6fc8,0x409)](_0x483137)['length']>0x0?{'reasoning':_0x483137}:{}};}function pushAssistantProviderState(_0x29f75f,_0x57780f,_0x1bebe5){const _0x18e59b={_0x4fc235:0x219,_0x53b3db:0x22d,_0x2fcdf0:0x243,_0x1ee402:0x24a,_0x209231:0x26f,_0x24f369:0x224,_0x489f2f:0x212,_0x1d657c:0x219,_0x3b0dfb:0x22b,_0xed1842:0x239,_0x540e20:0x333,_0xa09105:0x32d,_0x9db554:0x364,_0x2805d6:0x382,_0x68cf91:0x334,_0x3a542f:0x248,_0x2ef24f:0x240},_0x199bab={_0x53df60:0x2e0},_0x2ce43a={_0x3fb28b:0x29c};if(_0x57780f[_0x57645a(-0x243,-_0x18e59b._0x4fc235,-_0x18e59b._0x53b3db,-_0x18e59b._0x2fcdf0)]!==_0x57645a(-_0x18e59b._0x1ee402,-_0x18e59b._0x209231,-0x252,-0x24e))return![];function _0x535da9(_0x3a4cf1,_0x2180ef,_0x4743ac,_0x3ffc15){return _0x4951(_0x3a4cf1-_0x2ce43a._0x3fb28b,_0x2180ef);}if(!isProviderStateCompatible(_0x57780f,_0x1bebe5))return![];const _0x1ab927=_0x57780f[_0x57645a(-_0x18e59b._0x24f369,-0x23b,-0x22e,-0x241)]?.['openaiResponsesOutput']??[];if(_0x1ab927['length']===0x0)return![];for(const _0x4e82e1 of _0x1ab927){if(isResponseInputObject(_0x4e82e1)){const _0x56d6dc=structuredClone(_0x4e82e1);delete _0x56d6dc['status'],_0x56d6dc[_0x57645a(-_0x18e59b._0x489f2f,-_0x18e59b._0x1d657c,-_0x18e59b._0x3b0dfb,-_0x18e59b._0xed1842)]===_0x535da9(_0x18e59b._0x540e20,0x34e,_0x18e59b._0xa09105,0x328)&&!Array[_0x535da9(_0x18e59b._0x9db554,0x357,0x36f,_0x18e59b._0x2805d6)](_0x56d6dc[_0x535da9(_0x18e59b._0x68cf91,0x322,0x336,0x344)])&&(_0x56d6dc[_0x57645a(-0x232,-0x231,-_0x18e59b._0x3a542f,-_0x18e59b._0x2ef24f)]=[]),_0x29f75f['push'](_0x56d6dc);}}function _0x57645a(_0x867e25,_0x22eb63,_0x3516ed,_0x2db42c){return _0x4951(_0x3516ed- -_0x199bab._0x53df60,_0x2db42c);}return!![];}function toOpenAiResponsesRequest(_0xfa2b84){const _0x515e2e={_0xed9d3e:0x13a,_0x1d90ef:0x11f,_0x8fc1e7:0x226,_0x3e45d3:0x235,_0x48eb3c:0x229,_0x20135a:0x222,_0x101a23:0x231,_0x5b0d3a:0x257,_0x2cb42f:0x217,_0x3c2a94:0x21c,_0x4125b7:0x12d,_0x4473f7:0x102,_0x352471:0x12a,_0x47638c:0x119,_0x480a06:0x21b,_0xcecfbb:0x22a,_0x46fe5f:0x201,_0x502758:0x233,_0x40dc47:0x21d,_0x204081:0x11d,_0x3bf361:0x128,_0x24b953:0xfe,_0x3c8f32:0x13c,_0x1958fd:0x12c,_0x102a70:0x129,_0x5e42c3:0x12f,_0x462b1f:0x143,_0xe9714a:0x11d,_0x5b272a:0x21e,_0x561550:0x22b,_0x2195e2:0x23f,_0x41bcd7:0x121,_0x44d5fb:0x263,_0x815394:0x244,_0x5e6524:0x23e,_0x573f4b:0x253,_0x1cfb13:0x222,_0x4e9e1f:0xf0,_0x2ff166:0x12c,_0x1f61cd:0x11e,_0x472d4c:0x104,_0x2c369a:0x227,_0xe4e36:0x230,_0x32f5f4:0x109,_0x47562c:0x135,_0x643ffa:0x113,_0x4d9061:0x225,_0x365668:0x125,_0xa1587b:0x11b,_0x59ed76:0x125,_0x9df7c8:0x110,_0x20a5ab:0x106,_0x13de4f:0x111,_0x3baa1b:0x13d,_0x5653ed:0x133,_0x3eb6dd:0x131,_0xec2543:0x132,_0x129a25:0x11a,_0x33c49:0x12a,_0x526c6b:0x23b,_0x1865e2:0x130,_0x22c838:0x12a,_0x900854:0x24b,_0xc6f2ee:0x25d,_0x3d6ecc:0x216,_0x53bbac:0x225,_0x30edd1:0x11c,_0x66ef7e:0x117,_0x1f4bd1:0x11e,_0x3f8184:0x241},_0x2da4ee={_0x423037:0x3c3,_0xb1c1b4:0x3e1,_0x2b214c:0x408,_0x1ee2a9:0x401,_0x30effe:0x3f0,_0x2d606b:0x3e3,_0x23d877:0x96},_0x1297d5={_0x442221:0x105},_0x31d854=[];for(const _0x4ed29c of _0xfa2b84[_0x33c57f(0x130,_0x515e2e._0xed9d3e,0x156,_0x515e2e._0x1d90ef)]){if(pushAssistantProviderState(_0x31d854,_0x4ed29c,_0xfa2b84))continue;const _0x515dda=[];for(const _0x5e7867 of normalizeContent(_0x4ed29c[_0x5f5b18(_0x515e2e._0x8fc1e7,0x231,0x24b,_0x515e2e._0x3e45d3)])){if(_0x5e7867[_0x5f5b18(_0x515e2e._0x48eb3c,_0x515e2e._0x20135a,0x240,0x241)]===_0x5f5b18(0x23b,0x25c,_0x515e2e._0x101a23,0x249)){_0x515dda['push'](_0x4ed29c[_0x5f5b18(0x251,0x232,_0x515e2e._0x5b0d3a,0x23f)]===_0x5f5b18(_0x515e2e._0x2cb42f,_0x515e2e._0x3c2a94,0x208,0x21a)?{'type':_0x33c57f(0x132,0x114,_0x515e2e._0x4125b7,_0x515e2e._0x4473f7),'text':_0x5e7867['text']}:{'type':'input_text','text':_0x5e7867[_0x33c57f(0x120,0x132,0x14b,0x12d)]});continue;}if(_0x5e7867[_0x33c57f(0x13a,_0x515e2e._0x352471,_0x515e2e._0x47638c,0x11c)]===_0x5f5b18(0x23b,_0x515e2e._0x480a06,_0x515e2e._0xcecfbb,0x239)){_0x515dda['push']({'type':'input_image','image_url':_0x5f5b18(_0x515e2e._0x46fe5f,0x23a,_0x515e2e._0x502758,_0x515e2e._0x40dc47)+_0x5e7867[_0x33c57f(0x116,_0x515e2e._0x204081,_0x515e2e._0x3bf361,_0x515e2e._0x24b953)][_0x33c57f(_0x515e2e._0x1d90ef,_0x515e2e._0x3c8f32,0x12e,_0x515e2e._0x1958fd)]+_0x33c57f(_0x515e2e._0x102a70,0x134,_0x515e2e._0x5e42c3,_0x515e2e._0x462b1f)+_0x5e7867[_0x33c57f(0x128,_0x515e2e._0xe9714a,_0x515e2e._0x5e42c3,0x12e)][_0x5f5b18(0x22c,0x232,0x231,_0x515e2e._0x5b272a)]});continue;}pushUserContentMessage(_0x31d854,_0x4ed29c[_0x5f5b18(0x226,0x230,_0x515e2e._0x561550,_0x515e2e._0x2195e2)],_0x515dda[_0x33c57f(0x118,0x11b,_0x515e2e._0x41bcd7,0x120)](0x0));if(_0x5e7867['type']==='tool_use'){if(!hasSerializableToolUse(_0x5e7867))continue;_0x31d854['push']({'type':'function_call','call_id':_0x5e7867['id'],'name':_0x5e7867[_0x5f5b18(0x24c,0x225,_0x515e2e._0x44d5fb,_0x515e2e._0x815394)],'arguments':JSON['stringify'](_0x5e7867[_0x5f5b18(_0x515e2e._0x5e6524,_0x515e2e._0x573f4b,_0x515e2e._0x1cfb13,0x237)]??{})});continue;}if(_0x5e7867[_0x33c57f(0x138,_0x515e2e._0x352471,_0x515e2e._0x1958fd,0x10b)]===_0x33c57f(0x107,0x104,_0x515e2e._0x4e9e1f,0x10c)){if(!hasSerializableToolResult(_0x5e7867))continue;const _0x53d83e=getToolResultText(_0x5e7867[_0x33c57f(_0x515e2e._0x2ff166,_0x515e2e._0x1f61cd,_0x515e2e._0x472d4c,_0x515e2e._0x352471)]);_0x31d854[_0x5f5b18(0x24a,0x24b,_0x515e2e._0x2c369a,_0x515e2e._0xe4e36)]({'type':_0x33c57f(_0x515e2e._0x32f5f4,0x123,_0x515e2e._0x47562c,_0x515e2e._0x643ffa),'call_id':_0x5e7867[_0x5f5b18(_0x515e2e._0x20135a,_0x515e2e._0x4d9061,0x232,0x21c)],'output':_0x53d83e});const _0x3491e3=getToolResultImages(_0x5e7867[_0x33c57f(_0x515e2e._0x365668,0x11e,_0x515e2e._0xa1587b,_0x515e2e._0x59ed76)]);_0x3491e3[_0x33c57f(0x118,_0x515e2e._0x9df7c8,_0x515e2e._0x20a5ab,0x121)]>0x0&&_0x31d854['push']({'type':_0x33c57f(0x11a,0x115,0xf8,_0x515e2e._0x13de4f),'role':_0x33c57f(_0x515e2e._0x3baa1b,_0x515e2e._0x5653ed,_0x515e2e._0x3eb6dd,_0x515e2e._0xec2543),'content':[{'type':_0x33c57f(0x111,_0x515e2e._0x129a25,0x11c,_0x515e2e._0x33c49),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x5e7867['tool_use_id']+'.'},..._0x3491e3['map'](_0xe060bc=>({'type':_0x5f5b18(0x244,0x23f,0x239,0x24d),'image_url':_0x5f5b18(0x236,0x203,0x222,0x21d)+_0xe060bc[_0x5f5b18(0x224,0x21a,0x252,0x234)][_0x5f5b18(0x270,0x26e,0x264,0x253)]+_0x33c57f(0x12a,0x134,0x145,0x150)+_0xe060bc[_0x5f5b18(0x223,0x253,0x215,0x234)]['data']}))]});}}pushUserContentMessage(_0x31d854,_0x4ed29c[_0x5f5b18(0x23b,0x258,0x236,0x23f)],_0x515dda);}function _0x5f5b18(_0x586dcf,_0x5b3436,_0x2586f5,_0x25a2ea){return _0x4951(_0x25a2ea-0x18c,_0x2586f5);}function _0x33c57f(_0x21caf4,_0x58f46b,_0xa4ea2e,_0x2cf015){return _0x4951(_0x58f46b-0x75,_0x21caf4);}return{...createOpenAiResponsesReasoning(_0xfa2b84),'model':_0xfa2b84[_0x5f5b18(0x247,0x245,0x226,_0x515e2e._0x526c6b)],'instructions':systemToInstructions(_0xfa2b84[_0x5f5b18(0x20b,0x21c,0x21a,0x225)]),'input':_0x31d854,..._0xfa2b84[_0x33c57f(_0x515e2e._0x1865e2,0x13b,0x140,_0x515e2e._0x22c838)]!==void 0x0?{'max_output_tokens':_0xfa2b84[_0x5f5b18(_0x515e2e._0x900854,0x258,_0x515e2e._0xc6f2ee,0x252)]}:{},'tools':_0xfa2b84[_0x5f5b18(_0x515e2e._0x3d6ecc,0x21b,0x22d,0x228)][_0x5f5b18(_0x515e2e._0x53bbac,0x218,0x220,0x22f)](_0x109bbd=>{const _0x3972f3={_0xd547ff:0xa4,_0x1ff355:0x50,_0x2aaff4:0x192};function _0x39cc05(_0xd7ac3c,_0x456408,_0x50f487,_0x5721d0){return _0x33c57f(_0xd7ac3c,_0x50f487-0x2c3,_0x50f487-0x33,_0x5721d0-_0x1297d5._0x442221);}function _0x582180(_0x4226bf,_0x4d5069,_0x18bfe3,_0x491838){return _0x33c57f(_0x491838,_0x4d5069- -_0x3972f3._0xd547ff,_0x18bfe3-_0x3972f3._0x1ff355,_0x491838-_0x3972f3._0x2aaff4);}return{'type':_0x39cc05(0x3ad,_0x2da4ee._0x423037,0x3c5,_0x2da4ee._0xb1c1b4),'name':_0x109bbd[_0x39cc05(_0x2da4ee._0x2b214c,_0x2da4ee._0x1ee2a9,_0x2da4ee._0x30effe,_0x2da4ee._0x2d606b)],'description':_0x109bbd[_0x582180(0x92,0x7b,_0x2da4ee._0x23d877,0x83)],'parameters':_0x109bbd['input_schema']};}),..._0xfa2b84['outputFormat']?{'text':{'format':{'type':_0x33c57f(0x108,_0x515e2e._0x30edd1,0x119,_0x515e2e._0x66ef7e),'name':_0xfa2b84['outputFormat'][_0x33c57f(0x12f,0x12d,_0x515e2e._0x365668,_0x515e2e._0x1f4bd1)]??_0x5f5b18(0x22d,0x223,0x247,0x23d),'schema':_0xfa2b84[_0x33c57f(0x146,0x130,0x134,_0x515e2e._0x41bcd7)][_0x5f5b18(0x24a,_0x515e2e._0x3f8184,0x22b,0x238)],'strict':_0xfa2b84['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x17e08d,_0x59f959){const _0x14e955={_0x4283ed:0x179,_0x176fc7:0x184,_0x4ceb05:0x15e,_0x4b8af8:0x370,_0x135c24:0x35e,_0x27ccc2:0x191,_0x3c9cf4:0x166,_0x4aad36:0x16a,_0x15cd19:0x35b,_0x580e6c:0x170,_0x53755d:0x36a,_0x41b429:0x377,_0x2ce9cf:0x39a,_0x2236f7:0x177,_0x208be3:0x15f,_0x5f5155:0x169,_0x54a51c:0x3ad,_0x5788b5:0x391},_0x50fa1b={_0x3d75b9:0x392};function _0x468edc(_0x27de35,_0x4d64f5,_0xfa78a,_0xf8af90){return _0x1074(_0x27de35- -_0x50fa1b._0x3d75b9,_0x4d64f5);}function _0x4bfb0e(_0x15c3eb,_0x58ca67,_0x2205f4,_0x50fc2f){return _0x1074(_0x58ca67-0x17f,_0x15c3eb);}const _0x5df284=_0x17e08d();while(!![]){try{const _0x596fb1=-parseInt(_0x468edc(-0x19f,-0x197,-0x1b5,-0x1a8))/0x1*(parseInt(_0x468edc(-_0x14e955._0x4283ed,-0x166,-_0x14e955._0x176fc7,-_0x14e955._0x4ceb05))/0x2)+parseInt(_0x4bfb0e(0x358,_0x14e955._0x4b8af8,0x36a,_0x14e955._0x135c24))/0x3+parseInt(_0x468edc(-_0x14e955._0x27ccc2,-0x18b,-0x1a7,-0x18b))/0x4*(parseInt(_0x468edc(-_0x14e955._0x3c9cf4,-0x163,-0x183,-_0x14e955._0x4aad36))/0x5)+parseInt(_0x4bfb0e(0x381,0x37a,_0x14e955._0x15cd19,0x374))/0x6*(-parseInt(_0x468edc(-_0x14e955._0x580e6c,-0x154,-0x173,-0x18a))/0x7)+-parseInt(_0x4bfb0e(_0x14e955._0x53755d,0x37d,_0x14e955._0x41b429,0x36b))/0x8*(parseInt(_0x4bfb0e(0x39f,0x39e,0x394,_0x14e955._0x2ce9cf))/0x9)+-parseInt(_0x468edc(-_0x14e955._0x2236f7,-_0x14e955._0x208be3,-_0x14e955._0x5f5155,-0x15e))/0xa+parseInt(_0x4bfb0e(_0x14e955._0x54a51c,0x3a3,0x3ab,_0x14e955._0x5788b5))/0xb;if(_0x596fb1===_0x59f959)break;else _0x5df284['push'](_0x5df284['shift']());}catch(_0x5742bd){_0x5df284['push'](_0x5df284['shift']());}}}(_0x4db4,0x436d6));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4f5c95){function _0x2e0440(_0x5969bd,_0x691e96,_0x4315a5,_0x3a5b8c){return _0x1074(_0x691e96- -0x105,_0x4315a5);}return normalizeContent(_0x4f5c95)['filter'](_0x563ebd=>_0x563ebd['type']===_0x2e0440(0xf9,0xff,0xfe,0xfc))['map'](_0x45f5bf=>_0x45f5bf['text'])['join']('\x0a\x0a');}function pushUserContentMessage(_0x135ec9,_0x52bcf5,_0x31d778){const _0x1ca88c={_0x22dcad:0x4f3,_0xbe2bc6:0x4f3,_0x16c51e:0x4c4,_0x6e34d5:0x4c3,_0x3beab7:0x4e8,_0x4f680e:0x510,_0x1805a8:0x4f2},_0x4a82bb={_0x23ea8e:0x2ec};function _0x187240(_0x1d3214,_0x551f60,_0x2dfd15,_0x5af3a5){return _0x1074(_0x2dfd15-_0x4a82bb._0x23ea8e,_0x551f60);}if(_0x31d778[_0x187240(0x4f9,0x4e0,_0x1ca88c._0x22dcad,0x50c)]===0x0)return;function _0x206637(_0x5a6a61,_0x5b6fe2,_0x49d257,_0x3bd51f){return _0x1074(_0x5b6fe2-0x389,_0x49d257);}_0x135ec9[_0x187240(_0x1ca88c._0xbe2bc6,_0x1ca88c._0x16c51e,0x4de,_0x1ca88c._0x6e34d5)]({'type':_0x187240(_0x1ca88c._0x3beab7,_0x1ca88c._0x4f680e,_0x1ca88c._0x1805a8,0x4fe),'role':_0x52bcf5,'content':_0x31d778});}function hasSerializableToolUse(_0x1b7e4a){const _0x3a85cd={_0x395c3c:0x1ab,_0x4b0640:0x1a0,_0x814ff:0x3d7,_0x4eecc9:0x1a3,_0x31c089:0x3c8,_0x264472:0x3f7,_0x221908:0x3e0},_0x244e7c={_0x8655c4:0x3b1},_0x44dd57={_0x1531ae:0x1d9};function _0x4bf4f0(_0xddee88,_0x62c731,_0x3146fa,_0x38373c){return _0x1074(_0x38373c-_0x44dd57._0x1531ae,_0x62c731);}function _0x2d9517(_0x44bc62,_0x4d4b31,_0x420c87,_0xcb2574){return _0x1074(_0xcb2574- -_0x244e7c._0x8655c4,_0x420c87);}return _0x1b7e4a['id'][_0x2d9517(-0x19c,-_0x3a85cd._0x395c3c,-_0x3a85cd._0x4b0640,-0x1a3)]()[_0x4bf4f0(0x3fe,_0x3a85cd._0x814ff,0x3c3,0x3e0)]>0x0&&_0x1b7e4a[_0x4bf4f0(0x3cd,0x3cf,0x3d8,0x3e5)][_0x2d9517(-0x18d,-_0x3a85cd._0x395c3c,-0x1c0,-_0x3a85cd._0x4eecc9)]()[_0x4bf4f0(0x3f0,_0x3a85cd._0x31c089,_0x3a85cd._0x264472,_0x3a85cd._0x221908)]>0x0;}function _0x4db4(){const _0x1a5ea6=['DhjPBq','Bwf4vg9Rzw5Z','zNvUy3rPB24','C3rHDhvZ','Aw5WDxrFDgv4Da','Aw1Hz2u','Aw5WDxq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','A2v5CW','C291CMnL','B3v0Chv0rM9YBwf0','mta2mZyYngDPA0TMAG','C2nOzw1H','ndKWndmWmhDqCw9PDW','DxnLCG','C3vTBwfYEq','CMvHC29UAw5N','nta0ouD1yxfHEq','BwfW','AxnbCNjHEq','n2jWzuLQtq','zgf0ytO','mtqYndmYntfirMjSwgC','B3v0Chv0x3rLEhq','C3rYAwn0','zwzMB3j0','Dg9VBhm','DhLWzq','ANnVBL9Zy2HLBwe','y29UDgvUDa','mtq2mde5nwHvqwLNvq','AM9PBG','Dg9VBf91C2u','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','nduWnJi0AxP4Avjd','ChvZAa','mwnQCgveAa','zgvZy3jPChrPB24','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','DMLZAwjPBgL0Eq','C3LZDgvT','C3rYAw5NAwz5','zNvUy3rPB25Fy2fSBa','zNvUy3rPB25Fy2fSBf9VDxrWDxq','mJyYodyXofHnCMneyq','yMfZzty0','Dg9VBf91C2vFAwq','oejHDuLMzq','zgf0yq','CM9Szq','ng5cD2PNCa','BwvKAwfFDhLWzq','zMLSDgvY','Dgv4Da','Aw5WDxrFAw1Hz2u','BwvZC2fNzq','BgvUz3rO','yxnZAxn0yw50','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','o2jHC2u2ncW','C3rYAw5N','BMfTzq','Bw9KzwW'];_0x4db4=function(){return _0x1a5ea6;};return _0x4db4();}function hasSerializableToolResult(_0x57ee43){const _0x38c48d={_0x5f089d:0x317,_0x29147f:0x334,_0x43e2e4:0x318,_0x570155:0x329,_0x5b27d4:0x321},_0x264c08={_0xb608ed:0x287},_0x1642ce={_0x168221:0x11a};function _0x436477(_0x233497,_0x518f9d,_0x405b7a,_0x3feb00){return _0x1074(_0x405b7a-_0x1642ce._0x168221,_0x233497);}function _0x3859ee(_0x4e014c,_0x5e2e0f,_0x143d9c,_0x39511f){return _0x1074(_0x143d9c-_0x264c08._0xb608ed,_0x39511f);}return _0x57ee43[_0x436477(0x317,0x30e,_0x38c48d._0x5f089d,0x317)][_0x436477(_0x38c48d._0x29147f,_0x38c48d._0x43e2e4,0x328,0x321)]()[_0x436477(0x304,_0x38c48d._0x570155,_0x38c48d._0x5b27d4,0x30c)]>0x0;}function isResponseInputObject(_0x25514d){const _0x405e92={_0x491fd7:0x206,_0x2fa294:0x205,_0x51200b:0x202,_0x2946df:0x50c,_0xa30760:0x503},_0xcb9b24={_0x3b46a5:0x1f},_0x5434f1={_0x5813c7:0x306};if(typeof _0x25514d!=='object'||_0x25514d===null||Array[_0x49aa9a(_0x405e92._0x491fd7,0x1f0,_0x405e92._0x2fa294,_0x405e92._0x51200b)](_0x25514d))return![];const _0x16b7a2=_0x25514d;function _0xc710cc(_0x2eaa24,_0x380e4e,_0x4bb05c,_0x3340c0){return _0x1074(_0x4bb05c-_0x5434f1._0x5813c7,_0x3340c0);}function _0x49aa9a(_0x1b51ce,_0xb5ad58,_0x484be7,_0x52ebd8){return _0x1074(_0x52ebd8- -_0xcb9b24._0x3b46a5,_0xb5ad58);}return typeof _0x16b7a2['type']===_0xc710cc(0x513,_0x405e92._0x2946df,0x511,_0x405e92._0xa30760);}function isImageToolResultBlock(_0x46b8c3){const _0x5bcc94={_0x5cb660:0x200,_0xff0895:0x3d0,_0xf9e4cb:0x3c8,_0x19398c:0x1d4,_0x38b4da:0x1ed,_0x5b6737:0x1c0,_0x5f0a6f:0x1a2,_0x5b1e87:0x3fd,_0x4fe3e9:0x3b5,_0x316595:0x3da,_0x2b5ee1:0x1db,_0x5b5246:0x1d6,_0x5f1960:0x1e7,_0x39f93a:0x3c6,_0x2cb245:0x3d2,_0x4f6aab:0x3d2,_0x5cc6e1:0x1cf,_0x3e1fe7:0x1e8,_0x1c6a27:0x1d8},_0x21deaf={_0x2b8590:0x1c7};if(typeof _0x46b8c3!=='object'||_0x46b8c3===null||Array['isArray'](_0x46b8c3))return![];function _0x2532b4(_0x591556,_0xb73258,_0x4a8291,_0x5139da){return _0x1074(_0x591556- -0x3c,_0x5139da);}function _0x48613e(_0x3af867,_0x44cb8b,_0x2ee0f3,_0x26dffb){return _0x1074(_0x3af867-_0x21deaf._0x2b8590,_0x44cb8b);}const _0x2acb7b=_0x46b8c3;return _0x2acb7b[_0x2532b4(0x1ed,0x1d3,_0x5bcc94._0x5cb660,0x1e9)]===_0x48613e(0x3da,0x3c8,_0x5bcc94._0xff0895,_0x5bcc94._0xf9e4cb)&&_0x2acb7b[_0x2532b4(0x1db,0x1bc,_0x5bcc94._0x19398c,0x1f2)]?.[_0x2532b4(_0x5bcc94._0x38b4da,0x1f9,0x1ff,0x1fa)]===_0x2532b4(_0x5bcc94._0x5b6737,0x1c5,_0x5bcc94._0x5f0a6f,0x1a8)&&typeof _0x2acb7b[_0x48613e(0x3de,0x3f9,_0x5bcc94._0x5b1e87,0x3dc)][_0x48613e(0x3c9,0x3d3,0x3d3,0x3d5)]===_0x48613e(0x3d2,0x3ea,_0x5bcc94._0x4fe3e9,_0x5bcc94._0x316595)&&typeof _0x2acb7b[_0x2532b4(_0x5bcc94._0x2b5ee1,0x1cf,_0x5bcc94._0x5b5246,_0x5bcc94._0x5f1960)][_0x48613e(_0x5bcc94._0x39f93a,_0x5bcc94._0x2cb245,0x3ba,_0x5bcc94._0x4f6aab)]===_0x2532b4(_0x5bcc94._0x5cc6e1,_0x5bcc94._0x3e1fe7,_0x5bcc94._0x1c6a27,0x1c5);}function _0x1074(_0x48ca11,_0x47c9d9){_0x48ca11=_0x48ca11-0x1f0;const _0x4db4bd=_0x4db4();let _0x1074e9=_0x4db4bd[_0x48ca11];if(_0x1074['ecUuLd']===undefined){var _0xbb8cd3=function(_0x37d8aa){const _0x5c4883='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f5c95='',_0x563ebd='';for(let _0x45f5bf=0x0,_0x135ec9,_0x52bcf5,_0x31d778=0x0;_0x52bcf5=_0x37d8aa['charAt'](_0x31d778++);~_0x52bcf5&&(_0x135ec9=_0x45f5bf%0x4?_0x135ec9*0x40+_0x52bcf5:_0x52bcf5,_0x45f5bf++%0x4)?_0x4f5c95+=String['fromCharCode'](0xff&_0x135ec9>>(-0x2*_0x45f5bf&0x6)):0x0){_0x52bcf5=_0x5c4883['indexOf'](_0x52bcf5);}for(let _0x1b7e4a=0x0,_0x57ee43=_0x4f5c95['length'];_0x1b7e4a<_0x57ee43;_0x1b7e4a++){_0x563ebd+='%'+('00'+_0x4f5c95['charCodeAt'](_0x1b7e4a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x563ebd);};_0x1074['FiFUch']=_0xbb8cd3,_0x1074['qbDJsh']={},_0x1074['ecUuLd']=!![];}const _0x25036e=_0x4db4bd[0x0],_0x30d88f=_0x48ca11+_0x25036e,_0x31c8ff=_0x1074['qbDJsh'][_0x30d88f];return!_0x31c8ff?(_0x1074e9=_0x1074['FiFUch'](_0x1074e9),_0x1074['qbDJsh'][_0x30d88f]=_0x1074e9):_0x1074e9=_0x31c8ff,_0x1074e9;}function getToolResultText(_0x14ad64){const _0x5b8f2e={_0x5a9a8e:0x31a,_0x311e6d:0x307,_0x563be9:0x30f,_0x3bf106:0x5f9,_0x3b4597:0x5f7,_0x3aa5f3:0x337,_0x3794af:0x618,_0x59692d:0x60b,_0x350173:0x602,_0x52119d:0x322,_0x20d378:0x306,_0x576b6c:0x30c,_0x569fe3:0x2f1},_0x5a0b2b={_0x194e56:0x549},_0x5dfcc2={_0x58446f:0xfc};function _0x463448(_0x107eb7,_0x353abe,_0x42f1f0,_0x1436a6){return _0x1074(_0x1436a6-_0x5dfcc2._0x58446f,_0x107eb7);}if(typeof _0x14ad64===_0x463448(_0x5b8f2e._0x5a9a8e,_0x5b8f2e._0x311e6d,_0x5b8f2e._0x563be9,0x307))return _0x14ad64;const _0x695258=_0x14ad64[_0x31ade4(_0x5b8f2e._0x3bf106,_0x5b8f2e._0x3b4597,0x5e1,0x5ef)](_0x157eab=>{const _0x2ca8e1={_0x32ecab:0x237};function _0x265718(_0x1001ae,_0x28b136,_0x1b92a2,_0xd6ade5){return _0x463448(_0x1b92a2,_0x28b136-0x101,_0x1b92a2-0x85,_0x28b136-_0x2ca8e1._0x32ecab);}return typeof _0x157eab==='object'&&_0x157eab!==null&&_0x157eab['type']===_0x265718(0x524,0x537,_0x5a0b2b._0x194e56,0x53c);})[_0x463448(_0x5b8f2e._0x3aa5f3,0x328,0x322,0x31c)](_0x4ca255=>_0x4ca255[_0x31ade4(0x5f0,0x5e9,0x5e2,0x5cb)])[_0x31ade4(_0x5b8f2e._0x3794af,0x60d,_0x5b8f2e._0x59692d,_0x5b8f2e._0x350173)]('\x0a\x0a')[_0x463448(0x2f1,_0x5b8f2e._0x52119d,0x31f,0x30a)]();function _0x31ade4(_0x30791c,_0x8be386,_0x53df61,_0x55acb6){return _0x1074(_0x53df61-0x3de,_0x8be386);}return _0x695258[_0x463448(_0x5b8f2e._0x20d378,0x2fc,_0x5b8f2e._0x576b6c,0x303)]>0x0?_0x695258:_0x463448(_0x5b8f2e._0x569fe3,0x2ea,0x307,_0x5b8f2e._0x569fe3);}function getToolResultImages(_0x46dbca){const _0xa28edf={_0x1e5ab3:0x25f,_0x3004dc:0x231};function _0x1b0e70(_0x4116c2,_0x5520f7,_0x538950,_0x7efe29){return _0x1074(_0x7efe29-0x24,_0x4116c2);}return Array[_0x1b0e70(_0xa28edf._0x1e5ab3,_0xa28edf._0x3004dc,0x249,0x245)](_0x46dbca)?_0x46dbca['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0xa25ef2){const _0x1e543b={_0x290b66:0x47,_0x514194:0x3a,_0x396dd4:0x249},_0x530a27={_0x198134:0x56};function _0x34104a(_0x2e88f2,_0x2f33b5,_0x226a40,_0x58d0f5){return _0x1074(_0x58d0f5- -0x258,_0x226a40);}function _0x2cdfe4(_0xd819c5,_0x1e88bc,_0x32a579,_0x241d1d){return _0x1074(_0x241d1d-_0x530a27._0x198134,_0x32a579);}return _0xa25ef2[_0x34104a(-0x4e,-0x3c,-_0x1e543b._0x290b66,-_0x1e543b._0x514194)]?.[_0x2cdfe4(_0x1e543b._0x396dd4,0x23a,0x26c,0x24c)]??'user-visible';}function createOpenAiResponsesReasoning(_0x1fadb4){const _0x591b41={_0x2e9f4b:0x23f,_0x250f78:0x243,_0x1ed147:0x538,_0x1453fb:0x539,_0x444e98:0x54f,_0x4f5a4b:0x524,_0x2572c2:0x53c,_0x489d1e:0x543,_0xbd7ded:0x526,_0x2a5dbe:0x230,_0xe1bd21:0x242,_0x4cf56d:0x226,_0x495490:0x223,_0x22609a:0x273,_0x67257f:0x258,_0x3e10a9:0x24b,_0x20a57c:0x23b,_0x2068c1:0x21e,_0x55e406:0x213,_0x4704cc:0x245,_0x1379e5:0x22c,_0x438e28:0x23d},_0x1313a0={_0xeacf85:0x25},_0x1f40e8=resolveOpenAiReasoningConfig(_0x1fadb4['reasoning']);function _0x28cdd9(_0x4f6ca8,_0x421fe9,_0x64f85c,_0x19d326){return _0x1074(_0x64f85c-0x31c,_0x421fe9);}function _0xaba056(_0x1eaaf4,_0x35bee0,_0x2b84bb,_0x549f8f){return _0x1074(_0x2b84bb-_0x1313a0._0xeacf85,_0x1eaaf4);}if(!_0x1f40e8)return{};const _0x1b577b={},_0x7cfe6f=_0x1fadb4[_0xaba056(_0x591b41._0x2e9f4b,0x263,_0x591b41._0x250f78,0x25f)]?.['codex']!==void 0x0,_0x259668=(!_0x7cfe6f&&_0x28cdd9(0x526,_0x591b41._0x1ed147,_0x591b41._0x1453fb,_0x591b41._0x444e98)in _0x1f40e8?_0x1f40e8['summary']:void 0x0)??(resolveReasoningVisibility(_0x1fadb4)==='user-visible'?'auto':void 0x0);return _0x1f40e8[_0x28cdd9(_0x591b41._0x4f5a4b,_0x591b41._0x2572c2,_0x591b41._0x489d1e,0x533)]&&(_0x1b577b[_0x28cdd9(_0x591b41._0xbd7ded,0x55c,0x543,0x523)]=_0x1f40e8[_0x28cdd9(0x543,0x557,_0x591b41._0x489d1e,0x538)]),_0x259668&&(_0x1b577b[_0xaba056(0x247,_0x591b41._0x2a5dbe,_0x591b41._0xe1bd21,0x225)]=_0x259668),{...!_0x7cfe6f&&_0xaba056(0x21f,_0x591b41._0x4cf56d,0x22e,_0x591b41._0x495490)in _0x1f40e8&&_0x1f40e8['includeEncryptedContent']===![]?{}:{'include':[_0xaba056(_0x591b41._0x22609a,0x24c,0x254,_0x591b41._0x67257f)]},...Object[_0xaba056(_0x591b41._0x3e10a9,0x238,_0x591b41._0x20a57c,_0x591b41._0x2068c1)](_0x1b577b)[_0xaba056(_0x591b41._0x55e406,_0x591b41._0x4704cc,_0x591b41._0x1379e5,_0x591b41._0x438e28)]>0x0?{'reasoning':_0x1b577b}:{}};}function pushAssistantProviderState(_0x32b043,_0x5d24e6,_0x3f4794){const _0x3a84a5={_0x355058:0x18b,_0x1bb9c4:0x16f,_0x1e68a1:0x17b,_0x20e3da:0x16c,_0x1b17e2:0x165,_0x458f74:0x182,_0x2cc78d:0x1ac,_0x209233:0x181,_0x1e66a8:0x4fb,_0x570974:0x502,_0x3d534a:0x507,_0x1281c1:0x51f,_0x5c49f1:0x161,_0x4fb375:0x156,_0x4c79f5:0x178,_0x3800ff:0x147,_0x294ada:0x166,_0xa3d653:0x155,_0x2c11f0:0x16f,_0x4b2300:0x154},_0x5d0394={_0x389ea7:0x383},_0x5ab77b={_0x89ecb7:0x2ea};if(_0x5d24e6[_0x350b2a(-0x183,-_0x3a84a5._0x355058,-_0x3a84a5._0x1bb9c4,-0x19b)]!==_0x350b2a(-_0x3a84a5._0x1e68a1,-_0x3a84a5._0x20e3da,-_0x3a84a5._0x1b17e2,-0x166))return![];function _0x1fd934(_0xd9c9ec,_0x33c874,_0x600b3f,_0x435908){return _0x1074(_0x600b3f-_0x5ab77b._0x89ecb7,_0x33c874);}if(!isProviderStateCompatible(_0x5d24e6,_0x3f4794))return![];const _0x281467=_0x5d24e6['providerState']?.[_0x350b2a(-0x193,-_0x3a84a5._0x458f74,-_0x3a84a5._0x2cc78d,-_0x3a84a5._0x209233)]??[];if(_0x281467['length']===0x0)return![];function _0x350b2a(_0x132a97,_0x514af2,_0x5ba9b2,_0x27517a){return _0x1074(_0x132a97- -_0x5d0394._0x389ea7,_0x514af2);}for(const _0x2b025f of _0x281467){if(isResponseInputObject(_0x2b025f)){const _0x5943de=structuredClone(_0x2b025f);delete _0x5943de[_0x1fd934(0x4f7,0x4e3,_0x3a84a5._0x1e66a8,0x4f8)],_0x5943de[_0x1fd934(0x528,0x50c,0x513,_0x3a84a5._0x570974)]===_0x1fd934(0x4f3,_0x3a84a5._0x3d534a,0x508,_0x3a84a5._0x1281c1)&&!Array[_0x350b2a(-0x162,-_0x3a84a5._0x5c49f1,-_0x3a84a5._0x4fb375,-0x164)](_0x5943de[_0x350b2a(-0x166,-_0x3a84a5._0x4c79f5,-0x158,-_0x3a84a5._0x3800ff)])&&(_0x5943de[_0x350b2a(-_0x3a84a5._0x294ada,-_0x3a84a5._0xa3d653,-_0x3a84a5._0x2c11f0,-_0x3a84a5._0x4b2300)]=[]),_0x32b043['push'](_0x5943de);}}return!![];}function toOpenAiResponsesRequest(_0x4dd5e3){const _0x45ac94={_0x5ebac2:0x170,_0x4f5d5e:0x17f,_0x52d74f:0x16e,_0x3ff8b4:0x14a,_0x5bf797:0x128,_0x20282c:0x15b,_0x1580a0:0x144,_0x36cee1:0x131,_0x335351:0x13d,_0x4d38b8:0x159,_0x1f107f:0x16a,_0x105874:0x162,_0x4adfe8:0x164,_0xd8c901:0x147,_0xa77ea1:0x13e,_0x3b38ce:0x138,_0x4bb8b9:0x155,_0x2bf6c0:0x127,_0x43466a:0x164,_0xce904c:0x130,_0x16645b:0x147,_0x44867e:0x185,_0x35c231:0x16c,_0x2a73f4:0x16d,_0x398ed5:0x156,_0x1c992f:0x13c,_0x2daa7b:0x12f,_0x16c5ee:0x153,_0x548755:0x140,_0x1790d7:0x148,_0x5262b3:0x156,_0x1f0ca8:0x15a,_0x388aaa:0x135,_0x368800:0x140,_0x52b026:0x15a,_0x339450:0x142,_0x1d1340:0x149,_0x8e1541:0x13b,_0x529c19:0x126,_0x5a1343:0x180,_0x40e38b:0x12e,_0x1cfa72:0x153,_0x149cf3:0x11f,_0x46ca37:0x135,_0x388282:0x128,_0x47f86d:0x128,_0x477d13:0x13c,_0x159258:0x149,_0x25d09b:0x169,_0x2ede9f:0x181,_0x574771:0x184,_0x4fad23:0x168,_0x1c9cba:0x11d,_0x40090c:0x14c,_0x28f6e:0x130,_0x545b34:0x146,_0xee6f3f:0x143,_0x3735cd:0x14f,_0x3b0a79:0x153,_0x1320ed:0x13c,_0x31d137:0x16a,_0x19ff7a:0x153,_0x3c7b4e:0x152,_0x3a2c56:0x153,_0x3fc854:0x13d,_0x1acbb0:0x16f,_0x53157b:0x150,_0x397283:0x138,_0x41129a:0x134,_0x2dc141:0x15b,_0x447081:0x15c,_0x5c4785:0x160,_0x594b5b:0x14b,_0x4993f9:0x145,_0x3239f6:0x165,_0x415956:0x172,_0x5b34f0:0x14e,_0x306d7e:0x155,_0x256f2c:0x16a,_0x2c686c:0x13a,_0x4e83d1:0x153,_0x25ee2b:0x148,_0x45b5a7:0x176,_0x1fbcd8:0x171},_0x25c0c5={_0x2364c3:0x556,_0x59b2ef:0x554,_0x35c1b8:0x565,_0x8972af:0x568,_0x9c1ddb:0x33d,_0x35b62a:0x347},_0x1a3bab={_0x5af1ab:0x1b5},_0x1e553b={_0x3683f6:0xbd},_0x2ee78e={_0xd01fb:0xc3},_0x249cd6=[];function _0x171ba2(_0x5c4c98,_0x378a62,_0x9fdae7,_0x35d574){return _0x1074(_0x35d574- -_0x2ee78e._0xd01fb,_0x5c4c98);}for(const _0x1b8bc0 of _0x4dd5e3['messages']){if(pushAssistantProviderState(_0x249cd6,_0x1b8bc0,_0x4dd5e3))continue;const _0x531ac2=[];for(const _0x4e8a09 of normalizeContent(_0x1b8bc0[_0x234f32(_0x45ac94._0x5ebac2,_0x45ac94._0x4f5d5e,0x161,_0x45ac94._0x52d74f)])){if(_0x4e8a09['type']===_0x234f32(_0x45ac94._0x3ff8b4,_0x45ac94._0x5bf797,_0x45ac94._0x20282c,0x147)){_0x531ac2['push'](_0x1b8bc0[_0x171ba2(_0x45ac94._0x1580a0,0x129,_0x45ac94._0x36cee1,_0x45ac94._0x335351)]==='assistant'?{'type':_0x171ba2(0x15c,_0x45ac94._0x4d38b8,_0x45ac94._0x1f107f,_0x45ac94._0x105874),'text':_0x4e8a09[_0x234f32(0x150,_0x45ac94._0x4adfe8,0x147,_0x45ac94._0xd8c901)]}:{'type':_0x234f32(_0x45ac94._0xa77ea1,_0x45ac94._0x3b38ce,0x142,_0x45ac94._0x4bb8b9),'text':_0x4e8a09[_0x234f32(_0x45ac94._0x2bf6c0,_0x45ac94._0x43466a,_0x45ac94._0xce904c,_0x45ac94._0x16645b)]});continue;}if(_0x4e8a09[_0x234f32(_0x45ac94._0x44867e,0x17a,_0x45ac94._0x20282c,_0x45ac94._0x35c231)]===_0x234f32(_0x45ac94._0x2a73f4,0x14d,0x157,_0x45ac94._0x398ed5)){_0x531ac2[_0x171ba2(_0x45ac94._0x1c992f,0x138,0x146,_0x45ac94._0x2daa7b)]({'type':_0x234f32(_0x45ac94._0x16c5ee,_0x45ac94._0x548755,0x166,_0x45ac94._0x1790d7),'image_url':'data:'+_0x4e8a09[_0x234f32(0x15b,_0x45ac94._0x5262b3,0x142,_0x45ac94._0x1f0ca8)][_0x171ba2(_0x45ac94._0x388aaa,_0x45ac94._0x368800,_0x45ac94._0x52b026,0x13f)]+';base64,'+_0x4e8a09[_0x234f32(0x178,0x149,0x143,0x15a)][_0x234f32(0x13d,0x15b,0x152,_0x45ac94._0x339450)]});continue;}pushUserContentMessage(_0x249cd6,_0x1b8bc0[_0x234f32(_0x45ac94._0x1d1340,_0x45ac94._0x8e1541,_0x45ac94._0x529c19,0x143)],_0x531ac2['splice'](0x0));if(_0x4e8a09['type']===_0x234f32(0x162,0x160,_0x45ac94._0x5a1343,0x171)){if(!hasSerializableToolUse(_0x4e8a09))continue;_0x249cd6[_0x234f32(_0x45ac94._0x40e38b,_0x45ac94._0x1cfa72,_0x45ac94._0x149cf3,_0x45ac94._0x46ca37)]({'type':_0x234f32(_0x45ac94._0x388282,0x122,_0x45ac94._0x47f86d,_0x45ac94._0x477d13),'call_id':_0x4e8a09['id'],'name':_0x4e8a09[_0x171ba2(0x139,_0x45ac94._0x4d38b8,0x138,_0x45ac94._0x159258)],'arguments':JSON[_0x234f32(_0x45ac94._0x16645b,0x142,0x14d,0x13b)](_0x4e8a09[_0x234f32(0x150,_0x45ac94._0x25d09b,0x16e,0x157)]??{})});continue;}if(_0x4e8a09['type']==='tool_result'){if(!hasSerializableToolResult(_0x4e8a09))continue;const _0x13ccaf=getToolResultText(_0x4e8a09[_0x171ba2(0x173,_0x45ac94._0x2ede9f,_0x45ac94._0x574771,_0x45ac94._0x4fad23)]);_0x249cd6[_0x171ba2(_0x45ac94._0x1c9cba,0x120,0x12e,0x12f)]({'type':_0x234f32(0x134,0x12b,0x14f,0x13d),'call_id':_0x4e8a09['tool_use_id'],'output':_0x13ccaf});const _0x579057=getToolResultImages(_0x4e8a09['content']);_0x579057['length']>0x0&&_0x249cd6[_0x234f32(_0x45ac94._0x40090c,0x14a,_0x45ac94._0x28f6e,_0x45ac94._0x46ca37)]({'type':_0x171ba2(0x150,0x15c,_0x45ac94._0x545b34,_0x45ac94._0xee6f3f),'role':_0x171ba2(0x175,0x142,_0x45ac94._0x3735cd,0x159),'content':[{'type':_0x171ba2(_0x45ac94._0x3b0a79,_0x45ac94._0x1320ed,_0x45ac94._0x31d137,_0x45ac94._0x3735cd),'text':_0x171ba2(_0x45ac94._0x339450,_0x45ac94._0x19ff7a,0x171,_0x45ac94._0x3c7b4e)+_0x4e8a09[_0x234f32(0x153,0x158,0x126,0x140)]+'.'},..._0x579057[_0x234f32(0x17d,0x157,_0x45ac94._0x1790d7,0x163)](_0x422d46=>({'type':_0x171ba2(0x132,0x129,0x12f,0x142),'image_url':_0x171ba2(0x148,0x170,0x178,0x160)+_0x422d46[_0x234f32(0x142,0x155,0x152,0x15a)][_0x171ba2(0x131,0x120,0x148,0x13f)]+_0x234f32(0x165,0x137,0x144,0x14d)+_0x422d46[_0x234f32(0x156,0x164,0x174,0x15a)][_0x171ba2(0x13f,0x131,0x128,0x13c)]}))]});}}pushUserContentMessage(_0x249cd6,_0x1b8bc0[_0x171ba2(0x120,0x145,_0x45ac94._0x3a2c56,_0x45ac94._0x3fc854)],_0x531ac2);}function _0x234f32(_0x7cf38b,_0x20a733,_0x1860ab,_0x3373c8){return _0x1074(_0x3373c8- -_0x1e553b._0x3683f6,_0x20a733);}return{...createOpenAiResponsesReasoning(_0x4dd5e3),'model':_0x4dd5e3[_0x234f32(0x13f,_0x45ac94._0x1acbb0,0x155,_0x45ac94._0x53157b)],'instructions':systemToInstructions(_0x4dd5e3[_0x171ba2(0x114,_0x45ac94._0x149cf3,_0x45ac94._0x397283,_0x45ac94._0x41129a)]),'input':_0x249cd6,..._0x4dd5e3[_0x171ba2(0x165,_0x45ac94._0x2dc141,_0x45ac94._0x447081,0x14c)]!==void 0x0?{'max_output_tokens':_0x4dd5e3[_0x171ba2(_0x45ac94._0x16c5ee,_0x45ac94._0x5c4785,_0x45ac94._0x594b5b,_0x45ac94._0x40090c)]}:{},'tools':_0x4dd5e3[_0x171ba2(_0x45ac94._0x4993f9,0x168,_0x45ac94._0x20282c,_0x45ac94._0x3239f6)]['map'](_0x230138=>{const _0x29598d={_0x2517fc:0x2f,_0x39e015:0x400};function _0x22aab9(_0x30baf6,_0x38161a,_0xac9301,_0x5eced5){return _0x234f32(_0x30baf6-_0x29598d._0x2517fc,_0xac9301,_0xac9301-0x1e1,_0x5eced5-_0x29598d._0x39e015);}function _0x3ee6fb(_0x21cc3e,_0xb86aaf,_0x39e718,_0x31be46){return _0x171ba2(_0x31be46,_0xb86aaf-_0x1a3bab._0x5af1ab,_0x39e718-0x2b,_0xb86aaf-0x216);}return{'type':_0x22aab9(_0x25c0c5._0x2364c3,_0x25c0c5._0x59b2ef,_0x25c0c5._0x35c1b8,0x553),'name':_0x230138[_0x22aab9(0x548,0x559,_0x25c0c5._0x8972af,0x54f)],'description':_0x230138[_0x3ee6fb(_0x25c0c5._0x9c1ddb,_0x25c0c5._0x35b62a,0x338,0x361)],'parameters':_0x230138['input_schema']};}),..._0x4dd5e3['outputFormat']?{'text':{'format':{'type':_0x234f32(0x14f,0x189,_0x45ac94._0x415956,0x16d),'name':_0x4dd5e3[_0x171ba2(_0x45ac94._0x5b34f0,_0x45ac94._0x52d74f,_0x45ac94._0x545b34,_0x45ac94._0x306d7e)][_0x234f32(_0x45ac94._0x256f2c,0x164,_0x45ac94._0x2c686c,_0x45ac94._0x3735cd)]??'structured_output','schema':_0x4dd5e3[_0x234f32(0x15f,_0x45ac94._0x415956,_0x45ac94._0x4e83d1,0x15b)][_0x171ba2(0x16d,_0x45ac94._0x25ee2b,_0x45ac94._0x45b5a7,0x157)],'strict':_0x4dd5e3[_0x234f32(0x15a,0x17b,_0x45ac94._0x25ee2b,_0x45ac94._0x2dc141)][_0x234f32(0x14b,_0x45ac94._0x1fbcd8,_0x45ac94._0x415956,0x169)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};