@nuvin/agent-core 0.4.0-rc.6 → 0.4.0-rc.7
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-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-WCUIFNCL.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/chunk-YTDATWXW.js +1 -1
- 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/index.js +1 -1
- package/dist/shared/types.d.ts +6 -0
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-HDFJFRPX.js +0 -1
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x59e2(_0x13d156,_0x2df23e){_0x13d156=_0x13d156-0x88;var _0x122690=_0x1226();var _0x59e24d=_0x122690[_0x13d156];if(_0x59e2['vaOLvN']===undefined){var _0x457cd2=function(_0x299b81){var _0x330430='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x103f7d='',_0xd7a805='';for(var _0x46ea8c=0x0,_0x2d0fdb,_0x4948d5,_0x5795ee=0x0;_0x4948d5=_0x299b81['charAt'](_0x5795ee++);~_0x4948d5&&(_0x2d0fdb=_0x46ea8c%0x4?_0x2d0fdb*0x40+_0x4948d5:_0x4948d5,_0x46ea8c++%0x4)?_0x103f7d+=String['fromCharCode'](0xff&_0x2d0fdb>>(-0x2*_0x46ea8c&0x6)):0x0){_0x4948d5=_0x330430['indexOf'](_0x4948d5);}for(var _0x222173=0x0,_0x29731f=_0x103f7d['length'];_0x222173<_0x29731f;_0x222173++){_0xd7a805+='%'+('00'+_0x103f7d['charCodeAt'](_0x222173)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd7a805);};_0x59e2['xYWakb']=_0x457cd2,_0x59e2['lArvjV']={},_0x59e2['vaOLvN']=!![];}var _0x9bbeba=_0x122690[0x0],_0x1cf87e=_0x13d156+_0x9bbeba,_0x5148ca=_0x59e2['lArvjV'][_0x1cf87e];return!_0x5148ca?(_0x59e24d=_0x59e2['xYWakb'](_0x59e24d),_0x59e2['lArvjV'][_0x1cf87e]=_0x59e24d):_0x59e24d=_0x5148ca,_0x59e24d;}(function(_0x155a63,_0x507f0e){var _0x597784={_0x2a745e:0x263,_0x11810c:0x258,_0x291185:0x24e,_0x496d20:0x27a,_0x29d045:0x281,_0x3c1497:0x27b,_0x514bbf:0x27d,_0x52f91d:0x275,_0x5a0013:0x289,_0x36b1a3:0x252,_0x59cd84:0x255,_0x3caa07:0x251,_0x3aad36:0x28e,_0x4194e4:0x28c,_0x20adcf:0x287,_0x23964d:0x285,_0x192255:0x27e,_0x529846:0x25a,_0x27e6f7:0x256,_0x1ec8b2:0x25e,_0x2c66b2:0x25d,_0x40cc25:0x259},_0x5d7e71={_0x598a3f:0x2e6};function _0x452aeb(_0x536543,_0x1a1822,_0x7536a1,_0x1b701e){return _0x59e2(_0x1b701e- -_0x5d7e71._0x598a3f,_0x536543);}function _0x4baeeb(_0x3aff41,_0x160e1a,_0x586ddf,_0x12a711){return _0x59e2(_0x586ddf- -0x310,_0x3aff41);}var _0x35a690=_0x155a63();while(!![]){try{var _0x2ea958=parseInt(_0x452aeb(-_0x597784._0x2a745e,-_0x597784._0x11810c,-0x263,-0x25c))/0x1*(-parseInt(_0x452aeb(-0x250,-0x24c,-_0x597784._0x291185,-0x254))/0x2)+parseInt(_0x4baeeb(-0x275,-0x27e,-_0x597784._0x496d20,-0x280))/0x3*(parseInt(_0x4baeeb(-0x27a,-0x284,-_0x597784._0x29d045,-_0x597784._0x3c1497))/0x4)+-parseInt(_0x4baeeb(-0x27a,-0x27d,-_0x597784._0x514bbf,-_0x597784._0x52f91d))/0x5*(-parseInt(_0x4baeeb(-_0x597784._0x5a0013,-0x27d,-0x282,-0x288))/0x6)+parseInt(_0x452aeb(-_0x597784._0x36b1a3,-_0x597784._0x59cd84,-0x251,-_0x597784._0x3caa07))/0x7*(-parseInt(_0x4baeeb(-_0x597784._0x3aad36,-_0x597784._0x4194e4,-_0x597784._0x20adcf,-0x281))/0x8)+parseInt(_0x4baeeb(-_0x597784._0x23964d,-_0x597784._0x192255,-0x27f,-0x284))/0x9*(-parseInt(_0x452aeb(-0x25b,-_0x597784._0x529846,-_0x597784._0x27e6f7,-_0x597784._0x1ec8b2))/0xa)+parseInt(_0x452aeb(-_0x597784._0x2c66b2,-0x25c,-0x25c,-0x25b))/0xb+parseInt(_0x452aeb(-_0x597784._0x40cc25,-_0x597784._0x11810c,-0x25b,-0x256))/0xc;if(_0x2ea958===_0x507f0e)break;else _0x35a690['push'](_0x35a690['shift']());}catch(_0x17d54e){_0x35a690['push'](_0x35a690['shift']());}}}(_0x1226,0x229ae));function resolveAnthropicReasoningConfig(_0x103f7d){var _0x1eb82b={_0x2c8e44:0x69,_0x538271:0x67,_0x25e1b1:0x60},_0x3a3d64={_0x215ce1:0x2b};function _0x3ce906(_0x42d2b8,_0x21f08d,_0x15baa2,_0xc5cbc6){return _0x59e2(_0x15baa2- -_0x3a3d64._0x215ce1,_0xc5cbc6);}return _0x103f7d?.['anthropic']?structuredClone(_0x103f7d[_0x3ce906(_0x1eb82b._0x2c8e44,_0x1eb82b._0x538271,0x62,_0x1eb82b._0x25e1b1)]):void 0x0;}function resolveOpenAiReasoningConfig(_0xd7a805){var _0x12fb19={_0xd6748c:0x2dc,_0x3975d8:0x2d7,_0x1bdd58:0xa0,_0x5dbf7a:0x99,_0x511289:0x2e7,_0x540b99:0x2dd,_0x3bae67:0x2e4,_0x4d69db:0x2e2};function _0x502f29(_0x4834c6,_0x2977a4,_0x62a5c8,_0x386e24){return _0x59e2(_0x62a5c8-0xd,_0x386e24);}if(_0xd7a805?.[_0x1b1bc7(-0x2d7,-0x2dd,-_0x12fb19._0xd6748c,-_0x12fb19._0x3975d8)])return structuredClone(_0xd7a805['codex']);function _0x1b1bc7(_0xd699c5,_0x52a9d2,_0x2108ad,_0x9338b){return _0x59e2(_0x2108ad- -0x370,_0x9338b);}return _0xd7a805?.[_0x502f29(0x99,_0x12fb19._0x1bdd58,_0x12fb19._0x5dbf7a,0xa0)]?structuredClone(_0xd7a805[_0x1b1bc7(-_0x12fb19._0x511289,-_0x12fb19._0x540b99,-_0x12fb19._0x3bae67,-_0x12fb19._0x4d69db)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};function _0x1226(){var _0x1ff592=['nJq0odG4suHTtw5f','mtj0qvfNr08','mtq0otC4ou9XB1z6uW','B3bLBMfP','yw50AhjVCgLJ','mtqYmZmWmLDwwhHPDG','nJq3nNL3qKPltW','nJa0otjTufbhzfi','mtHqCgDfEMq','ndq0nJzYqvfzuKu','nvzfqNreuW','y29KzxG','n0HQt0jqqG','mJGYuhrms2XQ','mtG1ndCWExf4DKXM'];_0x1226=function(){return _0x1ff592;};return _0x1226();}
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
(function(_0x375142,_0x42640b){const _0x508674={_0x4d9e11:0x147,_0x4b9162:0x13c,_0x4119c2:0x124,_0x452610:0x110,_0x11daa8:0x14a,_0x2b6796:0x135,_0x2a92f7:0x127,_0x421d42:0x12f,_0x4f1509:0x40a,_0x1f3dca:0x3f8,_0x4bcc7c:0x3f8,_0x19650d:0x412,_0x19b8fd:0x423,_0x17698c:0x112,_0x48c069:0x129,_0x4e01d2:0xf0,_0x32b4d7:0x12f,_0x2003ba:0xfb,_0x4d6f3a:0x123,_0x1fbeaa:0x3e1,_0x4e2ff4:0x3d9,_0x2fbf8c:0xe2,_0x29b7dd:0xfa,_0x207374:0x3d6,_0x3254ce:0x3e4},_0x1a8d9d={_0x370c37:0x2c4};function _0x23112a(_0x3cf43c,_0x12548d,_0x722ca4,_0x14f5bc){return _0x4f64(_0x3cf43c- -_0x1a8d9d._0x370c37,_0x722ca4);}const _0x3533eb=_0x375142();function _0x26da7b(_0x3e5f60,_0x17bc62,_0x399e6c,_0x5a277d){return _0x4f64(_0x17bc62-0x254,_0x5a277d);}while(!![]){try{const _0xa0892f=parseInt(_0x23112a(-0x12a,-_0x508674._0x4d9e11,-0x12b,-_0x508674._0x4b9162))/0x1+parseInt(_0x23112a(-0x128,-_0x508674._0x4119c2,-_0x508674._0x452610,-_0x508674._0x11daa8))/0x2+-parseInt(_0x23112a(-_0x508674._0x2b6796,-0x14b,-_0x508674._0x2a92f7,-_0x508674._0x421d42))/0x3*(-parseInt(_0x26da7b(_0x508674._0x4f1509,0x3f8,_0x508674._0x1f3dca,_0x508674._0x4f1509))/0x4)+parseInt(_0x26da7b(_0x508674._0x4bcc7c,_0x508674._0x19650d,0x410,0x3ff))/0x5*(parseInt(_0x26da7b(_0x508674._0x19b8fd,0x41b,0x425,0x437))/0x6)+-parseInt(_0x23112a(-_0x508674._0x17698c,-0x12c,-_0x508674._0x48c069,-_0x508674._0x4e01d2))/0x7*(parseInt(_0x26da7b(0x409,0x3f9,0x3d9,0x3e2))/0x8)+parseInt(_0x23112a(-0x114,-_0x508674._0x32b4d7,-_0x508674._0x2003ba,-_0x508674._0x4d6f3a))/0x9*(-parseInt(_0x26da7b(_0x508674._0x1fbeaa,0x3e1,_0x508674._0x4e2ff4,0x3d9))/0xa)+-parseInt(_0x23112a(-0x100,-_0x508674._0x2fbf8c,-_0x508674._0x29b7dd,-0x111))/0xb*(-parseInt(_0x26da7b(_0x508674._0x207374,0x3ea,_0x508674._0x3254ce,0x3e0))/0xc);if(_0xa0892f===_0x42640b)break;else _0x3533eb['push'](_0x3533eb['shift']());}catch(_0x26329a){_0x3533eb['push'](_0x3533eb['shift']());}}}(_0x1d32,0x673c5));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x3dd481){const _0x2bef1d={_0xf610f5:0x49a,_0x11ab8b:0x49b,_0xc8c3b7:0x56e,_0x57d56e:0x516,_0x3797bc:0x536,_0x4db861:0x523},_0x188c79={_0x5a49c3:0x2ec},_0x58a416={_0x544f6a:0x39e};function _0x189f70(_0xd23c67,_0x4f7780,_0x4d9174,_0x5dde8a){return _0x4f64(_0x4f7780-_0x58a416._0x544f6a,_0x5dde8a);}function _0xb813e1(_0xf11134,_0x1e8990,_0x338a34,_0x51b9e5){return _0x4f64(_0x1e8990-_0x188c79._0x5a49c3,_0x51b9e5);}return normalizeContent(_0x3dd481)[_0xb813e1(_0x2bef1d._0xf610f5,0x495,0x4b4,_0x2bef1d._0x11ab8b)](_0x5394e7=>_0x5394e7[_0xb813e1(0x49a,0x481,0x467,0x46e)]===_0xb813e1(0x49a,0x4b9,0x4c7,0x4b5))[_0x189f70(0x548,0x563,_0x2bef1d._0xc8c3b7,0x57c)](_0xb810e0=>_0xb810e0[_0xb813e1(0x4c3,0x4b9,0x4bd,0x4c8)])[_0x189f70(_0x2bef1d._0x57d56e,_0x2bef1d._0x3797bc,0x514,_0x2bef1d._0x4db861)]('\x0a\x0a');}function pushUserContentMessage(_0x1798f4,_0x40e57a,_0x466466){const _0x3e2bc8={_0x206a11:0x13a,_0x1308cf:0x148,_0xa02b7e:0x13c},_0x275a15={_0x5d4f44:0x306};function _0x4a44ec(_0x5add86,_0x10469f,_0x49a18e,_0x315766){return _0x4f64(_0x315766- -_0x275a15._0x5d4f44,_0x10469f);}function _0x5581bd(_0xc3220d,_0x2fe493,_0x23df50,_0x1eff67){return _0x4f64(_0xc3220d-0x37c,_0x1eff67);}if(_0x466466['length']===0x0)return;_0x1798f4[_0x4a44ec(-_0x3e2bc8._0x206a11,-_0x3e2bc8._0x1308cf,-0x145,-_0x3e2bc8._0x206a11)]({'type':_0x4a44ec(-0x15d,-0x125,-0x137,-_0x3e2bc8._0xa02b7e),'role':_0x40e57a,'content':_0x466466});}function hasSerializableToolUse(_0x3cd7b2){const _0x5e748f={_0x1ba311:0x4ac,_0x2cc549:0x4a0,_0x5571a5:0x31c,_0x1a6c94:0x344,_0x11cf37:0x328,_0x530d53:0x316};function _0x1b41e0(_0x3cd49e,_0x29ac5e,_0x5a5731,_0x5a3b20){return _0x4f64(_0x5a5731-0x30d,_0x3cd49e);}function _0x3aaa03(_0x59240f,_0x123ce4,_0x333c1c,_0x1f4c87){return _0x4f64(_0x1f4c87-0x17e,_0x59240f);}return _0x3cd7b2['id'][_0x1b41e0(0x495,_0x5e748f._0x1ba311,_0x5e748f._0x2cc549,0x49a)]()[_0x3aaa03(_0x5e748f._0x5571a5,_0x5e748f._0x1a6c94,0x30c,_0x5e748f._0x11cf37)]>0x0&&_0x3cd7b2['name'][_0x3aaa03(0x2f8,0x2f3,_0x5e748f._0x530d53,0x311)]()[_0x1b41e0(0x4d6,0x4b2,0x4b7,0x4c1)]>0x0;}function hasSerializableToolResult(_0x1190ba){const _0x3792cc={_0x464a13:0x3d,_0x5f08e5:0x5f,_0x5521e0:0x29,_0x392f6e:0x17,_0x3d9f5b:0x9,_0x4d6a5e:0x61,_0x532411:0x41},_0x1d3617={_0x36ef73:0x20b};function _0x2a51c1(_0x42aa77,_0x16c11c,_0x3f8c49,_0x5aa981){return _0x4f64(_0x16c11c- -_0x1d3617._0x36ef73,_0x5aa981);}function _0x5a0036(_0x2d833b,_0x40589f,_0x29e8be,_0x486fe4){return _0x4f64(_0x40589f- -0x17c,_0x2d833b);}return _0x1190ba[_0x5a0036(0x4a,_0x3792cc._0x464a13,_0x3792cc._0x5f08e5,_0x3792cc._0x5521e0)][_0x5a0036(0x30,_0x3792cc._0x392f6e,0x1c,_0x3792cc._0x3d9f5b)]()[_0x2a51c1(-0x62,-_0x3792cc._0x4d6a5e,-0x44,-_0x3792cc._0x532411)]>0x0;}function isResponseInputObject(_0x48fa06){const _0x46c38c={_0x30acc1:0xb6,_0x17c968:0xd0,_0x287d06:0x1cc,_0xd5e838:0x1e8,_0x11f8e4:0x1bb,_0x25ce07:0x1d7},_0x2e0661={_0x218c95:0xee},_0x21d133={_0x444dfe:0x32};if(typeof _0x48fa06!==_0x150f38(0xc1,_0x46c38c._0x30acc1,0xba,_0x46c38c._0x17c968)||_0x48fa06===null||Array[_0x498b26(_0x46c38c._0x287d06,_0x46c38c._0xd5e838,0x1ef,0x1d0)](_0x48fa06))return![];const _0x556773=_0x48fa06;function _0x498b26(_0x5acfb6,_0x1e8c84,_0x456366,_0x1a41ee){return _0x4f64(_0x1a41ee-_0x21d133._0x444dfe,_0x5acfb6);}function _0x150f38(_0x42f8db,_0x1e17f2,_0x1a7f21,_0x1d744c){return _0x4f64(_0x42f8db- -_0x2e0661._0x218c95,_0x1a7f21);}return typeof _0x556773[_0x498b26(0x1db,0x1d4,_0x46c38c._0x11f8e4,0x1c7)]===_0x498b26(0x1f6,_0x46c38c._0x25ce07,0x1d4,0x1d8);}function isImageToolResultBlock(_0x5801ec){const _0x3b039a={_0x122d32:0x15,_0x54265b:0xd,_0xa70672:0x19,_0x35d285:0x4,_0x2ba60a:0x1b,_0x29b82b:0xc,_0x215c80:0x5,_0x42ab56:0x26,_0x5f1700:0x5,_0x198f53:0x43e,_0x5df117:0x445,_0x2a5adf:0x459,_0x41daea:0x43b,_0x49b9ae:0x429,_0x4ae4dc:0x42f,_0x2a2bae:0x44f,_0x1e11c5:0x438,_0x574a7a:0x436,_0xa1f356:0x438,_0x3ca51c:0x42f,_0x55d988:0x435},_0x172dc9={_0x24211d:0x292},_0x370543={_0x2e08e9:0x19a};if(typeof _0x5801ec!==_0x514584(_0x3b039a._0x122d32,0x10,-_0x3b039a._0x54265b,_0x3b039a._0xa70672)||_0x5801ec===null||Array[_0x514584(_0x3b039a._0x35d285,-0x1b,-0xa,_0x3b039a._0x2ba60a)](_0x5801ec))return![];function _0x514584(_0x2aee51,_0x326c5c,_0x4e46bc,_0x17a661){return _0x4f64(_0x2aee51- -_0x370543._0x2e08e9,_0x17a661);}function _0x3c080d(_0x376b54,_0x4f18f0,_0x1d5ea2,_0x3babf8){return _0x4f64(_0x4f18f0-_0x172dc9._0x24211d,_0x3babf8);}const _0x1eb07d=_0x5801ec;return _0x1eb07d['type']==='image'&&_0x1eb07d[_0x514584(-0x3,-0x23,-_0x3b039a._0x29b82b,0x0)]?.[_0x514584(-_0x3b039a._0x215c80,-_0x3b039a._0x42ab56,_0x3b039a._0x5f1700,-0x24)]===_0x3c080d(0x447,_0x3b039a._0x198f53,_0x3b039a._0x5df117,_0x3b039a._0x2a5adf)&&typeof _0x1eb07d[_0x3c080d(_0x3b039a._0x41daea,_0x3b039a._0x49b9ae,0x449,0x42b)][_0x3c080d(_0x3b039a._0x4ae4dc,_0x3b039a._0x2a2bae,0x465,0x43a)]===_0x3c080d(0x41d,_0x3b039a._0x1e11c5,_0x3b039a._0x574a7a,0x432)&&typeof _0x1eb07d['source']['data']===_0x3c080d(0x42d,_0x3b039a._0xa1f356,_0x3b039a._0x3ca51c,_0x3b039a._0x55d988);}function getToolResultText(_0x570f2f){const _0x4d286d={_0x4d4346:0x62,_0x2e8a1d:0x4e,_0x5cd14a:0x41,_0xcd105d:0x47,_0x46174b:0x4b,_0x48b52e:0x34,_0x40edae:0x7f,_0xe72af2:0x60,_0x5ac84e:0x61,_0x1e85ba:0x7c,_0x521845:0x42,_0xfa2d42:0x18,_0x1786fe:0x2e},_0x4028bf={_0x1692d7:0x199,_0x2b6114:0x1b4};if(typeof _0x570f2f===_0x585ed2(-_0x4d286d._0x4d4346,-_0x4d286d._0x2e8a1d,-_0x4d286d._0x5cd14a,-0x53))return _0x570f2f;function _0x585ed2(_0x3438ee,_0x1ff26c,_0x42a841,_0x2de363){return _0x4f64(_0x2de363- -0x1f9,_0x1ff26c);}const _0x8b3842=_0x570f2f['filter'](_0x2e5635=>{const _0x24ee6c={_0x250876:0x90},_0x415b9b={_0x62f9bc:0x111,_0x2d322e:0x188};function _0x34447b(_0x44d831,_0x577ee8,_0x4b2544,_0x5204e8){return _0x585ed2(_0x44d831-0x12a,_0x5204e8,_0x4b2544-_0x415b9b._0x62f9bc,_0x4b2544- -_0x415b9b._0x2d322e);}function _0x386b6b(_0x5a6a77,_0x281e3b,_0x550d3a,_0x221753){return _0x585ed2(_0x5a6a77-0x15e,_0x550d3a,_0x550d3a-_0x24ee6c._0x250876,_0x221753- -0x15c);}return typeof _0x2e5635==='object'&&_0x2e5635!==null&&_0x2e5635[_0x34447b(-0x20c,-0x204,-0x1ec,-0x1d3)]===_0x34447b(-_0x4028bf._0x1692d7,-0x1c0,-_0x4028bf._0x2b6114,-0x1d4);})[_0x585ed2(-0x23,-_0x4d286d._0xcd105d,-_0x4d286d._0x46174b,-_0x4d286d._0x48b52e)](_0x1e1393=>_0x1e1393[_0x461e9d(-0xbe,-0xc7,-0xc2,-0xe0)])[_0x585ed2(-_0x4d286d._0x40edae,-0x44,-_0x4d286d._0xe72af2,-_0x4d286d._0x5ac84e)]('\x0a\x0a')[_0x585ed2(-0x5a,-_0x4d286d._0x1e85ba,-0x67,-0x66)]();function _0x461e9d(_0xe22947,_0x2739a7,_0x31aa3b,_0x4c3f63){return _0x4f64(_0x31aa3b- -0x28f,_0x4c3f63);}return _0x8b3842[_0x585ed2(-_0x4d286d._0x521845,-0x67,-0x55,-0x4f)]>0x0?_0x8b3842:_0x585ed2(-0x32,-0x45,-_0x4d286d._0xfa2d42,-_0x4d286d._0x1786fe);}function getToolResultImages(_0x38a939){const _0x5e72d0={_0x29e002:0x328,_0x7b7545:0x345,_0x559e76:0x6f,_0x16a340:0x95,_0x3c9db5:0x78},_0x3b9d11={_0x360b1c:0x131};function _0x56805c(_0x178083,_0x503278,_0x47235f,_0x31b573){return _0x4f64(_0x31b573- -_0x3b9d11._0x360b1c,_0x47235f);}function _0x45bd12(_0x1f4793,_0x24461f,_0x3256d9,_0xbb6c3){return _0x4f64(_0x1f4793-0x18a,_0xbb6c3);}return Array[_0x45bd12(_0x5e72d0._0x29e002,0x31e,_0x5e72d0._0x7b7545,0x316)](_0x38a939)?_0x38a939[_0x56805c(0x74,_0x5e72d0._0x559e76,_0x5e72d0._0x16a340,_0x5e72d0._0x3c9db5)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x4a1f2f){const _0x4f8f25={_0x2a5cd3:0x55c,_0x2497dc:0x57f,_0x42aa66:0x59b},_0x271e1e={_0x478e2c:0x3ca};function _0x1dcf17(_0x32bf6f,_0x375048,_0x7e3ad9,_0x241859){return _0x4f64(_0x32bf6f-_0x271e1e._0x478e2c,_0x241859);}return _0x4a1f2f['reasoning']?.[_0x1dcf17(0x57b,_0x4f8f25._0x2a5cd3,_0x4f8f25._0x2497dc,_0x4f8f25._0x42aa66)]??'user-visible';}function createOpenAiResponsesReasoning(_0x39d0ee){const _0x29da70={_0x3b71ec:0x34,_0x25a503:0x5e,_0xb06e1f:0x49,_0x793bb1:0x49,_0x28b46d:0x55,_0x5c4e9f:0x63,_0x34e3a7:0x74,_0xb5cefe:0x8c,_0x27b845:0x5d,_0x1ef1d6:0x70,_0x205eeb:0x5f,_0x73f42d:0x81,_0x5b463c:0x91,_0x259986:0x75,_0x5e787c:0x24,_0x3734d6:0x46,_0x5cc7ce:0x16,_0x1929c9:0x39,_0x125f45:0x26,_0x2f8a5c:0x61,_0x13afaa:0x6b,_0x5aac02:0x93},_0x6f094b={_0x1aabed:0x21d},_0x2bc42d=resolveOpenAiReasoningConfig(_0x39d0ee['reasoning']);if(!_0x2bc42d)return{};function _0x1c5b8c(_0x45a341,_0x49f754,_0x43b7be,_0x11cb42){return _0x4f64(_0x11cb42- -0x162,_0x45a341);}const _0x4dbb6a={},_0xccd69b=_0x39d0ee['reasoning']?.[_0x1c5b8c(_0x29da70._0x3b71ec,_0x29da70._0x25a503,0x30,_0x29da70._0xb06e1f)]!==void 0x0,_0x362e9e=(!_0xccd69b&&_0x1c5b8c(0x4c,_0x29da70._0x793bb1,_0x29da70._0x28b46d,0x54)in _0x2bc42d?_0x2bc42d[_0x1c5b8c(0x40,0x76,_0x29da70._0x5c4e9f,0x54)]:void 0x0)??(resolveReasoningVisibility(_0x39d0ee)===_0x328fa4(-_0x29da70._0x34e3a7,-_0x29da70._0xb5cefe,-0x85,-0xa8)?_0x328fa4(-_0x29da70._0x27b845,-_0x29da70._0x1ef1d6,-_0x29da70._0x205eeb,-_0x29da70._0x73f42d):void 0x0);_0x2bc42d[_0x328fa4(-_0x29da70._0x5b463c,-_0x29da70._0x259986,-_0x29da70._0x27b845,-0x5e)]&&(_0x4dbb6a[_0x1c5b8c(0x3d,_0x29da70._0x5e787c,0x27,_0x29da70._0x3734d6)]=_0x2bc42d['effort']);function _0x328fa4(_0x1793cf,_0x389b59,_0x3fb1df,_0x182198){return _0x4f64(_0x389b59- -_0x6f094b._0x1aabed,_0x3fb1df);}return _0x362e9e&&(_0x4dbb6a['summary']=_0x362e9e),{...!_0xccd69b&&'includeEncryptedContent'in _0x2bc42d&&_0x2bc42d[_0x1c5b8c(_0x29da70._0x5cc7ce,_0x29da70._0x1929c9,_0x29da70._0x125f45,0x29)]===![]?{}:{'include':[_0x1c5b8c(0x58,0x44,0x48,0x66)]},...Object['keys'](_0x4dbb6a)[_0x328fa4(-_0x29da70._0x2f8a5c,-0x73,-_0x29da70._0x13afaa,-_0x29da70._0x5aac02)]>0x0?{'reasoning':_0x4dbb6a}:{}};}function pushAssistantProviderState(_0x4f1b0,_0x5aae8d,_0x1a1e98){const _0x50b208={_0x3a658b:0x125,_0x25bbe9:0x111,_0x32487c:0x14b,_0x1c6435:0x113,_0x2fb410:0x14c,_0x28ed3e:0x136,_0x3cb9a3:0x133,_0x45e1be:0x11c,_0x168dba:0x109,_0x590007:0x14a,_0x113f3a:0x167,_0x12ae6d:0x175,_0xe5c0f1:0x187,_0x3e9a66:0x143,_0x452424:0x142,_0x4c5420:0x11a,_0x430641:0x127,_0x4e82b6:0x145,_0xd90e22:0x17f,_0x3157eb:0x173,_0x315580:0x18c,_0x36bf3a:0x154,_0x1ff027:0x157},_0x5ba436={_0x10f058:0x8e};if(_0x5aae8d[_0x27711c(0x130,_0x50b208._0x3a658b,_0x50b208._0x25bbe9,0x12b)]!==_0x27711c(_0x50b208._0x32487c,0x120,0x12d,_0x50b208._0x1c6435))return![];if(!isProviderStateCompatible(_0x5aae8d,_0x1a1e98))return![];const _0x161d35=_0x5aae8d['providerState']?.[_0x27711c(_0x50b208._0x2fb410,0x150,0x131,_0x50b208._0x28ed3e)]??[];function _0x3d4e26(_0xe61f63,_0x41ddea,_0x3a9789,_0x5413fc){return _0x4f64(_0x3a9789- -0x329,_0xe61f63);}if(_0x161d35[_0x27711c(_0x50b208._0x3cb9a3,0x106,_0x50b208._0x45e1be,_0x50b208._0x168dba)]===0x0)return![];for(const _0x586fba of _0x161d35){if(isResponseInputObject(_0x586fba)){const _0x3edca2=structuredClone(_0x586fba);delete _0x3edca2[_0x3d4e26(-0x146,-_0x50b208._0x590007,-_0x50b208._0x113f3a,-0x173)],_0x3edca2[_0x3d4e26(-_0x50b208._0x12ae6d,-0x1aa,-0x194,-_0x50b208._0xe5c0f1)]===_0x27711c(_0x50b208._0x3e9a66,_0x50b208._0x452424,0x129,_0x50b208._0x4c5420)&&!Array['isArray'](_0x3edca2[_0x27711c(_0x50b208._0x430641,0x12f,0x128,_0x50b208._0x4e82b6)])&&(_0x3edca2[_0x3d4e26(-0x166,-_0x50b208._0xd90e22,-_0x50b208._0x3157eb,-_0x50b208._0x315580)]=[]),_0x4f1b0[_0x3d4e26(-_0x50b208._0x36bf3a,-_0x50b208._0x1ff027,-0x15d,-0x15a)](_0x3edca2);}}function _0x27711c(_0x109143,_0x8eb130,_0x3ec13f,_0x320725){return _0x4f64(_0x3ec13f- -_0x5ba436._0x10f058,_0x109143);}return!![];}function toOpenAiResponsesRequest(_0x32bec5){const _0x384d8b={_0x500b1b:0x173,_0x32941f:0x152,_0x670ecc:0x182,_0x1823f2:0x4cc,_0x15e960:0x4bf,_0x5cd77c:0x4ca,_0x365665:0x168,_0x66d3c1:0x151,_0x320242:0x4e1,_0x5e5a59:0x4ef,_0x2c6a6a:0x50f,_0x61f1a3:0x4d4,_0x558366:0x4f0,_0x1c3339:0x4d6,_0x4f989a:0x4fa,_0x515001:0x4e2,_0x256c1d:0x510,_0x59f1e9:0x502,_0x3684dc:0x4e3,_0x3fd57b:0x515,_0x16ef85:0x4f6,_0x135ffb:0x181,_0x32737e:0x4c7,_0x5e8d22:0x14a,_0x477867:0x17b,_0x530b42:0x1ad,_0x415cd1:0x18f,_0x3a5e47:0x16e,_0x5391c3:0x4d1,_0x567719:0x4de,_0x55e5d6:0x18c,_0x2731eb:0x4c9,_0x2f2f2e:0x4fd,_0x32d76e:0x15c,_0x47758d:0x16f,_0x112f36:0x4e7,_0x14b2c9:0x188,_0x514206:0x1a3,_0x12135d:0x188,_0x52b822:0x4f8,_0x266a5f:0x4fe,_0x3c3b93:0x4df,_0x175ee9:0x4e3,_0x57924c:0x4cf,_0x7123a0:0x4d6,_0x22b13a:0x152,_0xa547e2:0x14b,_0x2da4c2:0x183,_0xe065f6:0x4ed,_0x45403a:0x4ee,_0x19b77f:0x4ce,_0xf84547:0x4cd,_0x3b7cb9:0x17a,_0x792470:0x149,_0x38f50e:0x15f,_0x555773:0x170,_0x5b5f56:0x15f,_0x76ccfa:0x4f8,_0x4e4fb9:0x501,_0x4db7e6:0x509,_0x46dc56:0x194,_0x4f7a57:0x199,_0x2c9840:0x177,_0x718e0f:0x196,_0x371fdb:0x4fb,_0x1f167b:0x510,_0x2fb42f:0x4d8,_0x29ff1b:0x4dc,_0x4fdfa6:0x4fa,_0x17fcbb:0x4f4,_0x1f6140:0x4ed,_0x1150b9:0x4d5,_0x57cdef:0x4c3,_0x1dbd3d:0x4c8,_0x3191ec:0x4d6,_0x274d0c:0x4d2,_0x15c653:0x4b6,_0x38d85a:0x4d0,_0x36d442:0x4c9,_0x5608f5:0x4bf,_0x3c432b:0x160,_0x39bf55:0x514,_0xdf429c:0x4bd,_0x29063e:0x185,_0x5d6f02:0x4c9,_0x5c25a1:0x4e4,_0x5e675a:0x4ea,_0x11ed96:0x18e},_0x1df8f6={_0x571fa2:0x185,_0x46f4aa:0x1a3,_0x5ed710:0x196,_0x42c21a:0x19b,_0xfbfd1e:0x1af,_0x52a96e:0x175,_0x32206f:0x17f,_0x379796:0x16b},_0x5ef073={_0x3e6d9b:0x1e5},_0xbe744b={_0x106d5d:0x31},_0x3db276=[];function _0x3ec8cc(_0x20143b,_0x2b5865,_0x392c60,_0x352c7c){return _0x4f64(_0x20143b-0x335,_0x392c60);}for(const _0x495fd9 of _0x32bec5[_0x599c49(_0x384d8b._0x500b1b,_0x384d8b._0x32941f,_0x384d8b._0x670ecc,0x172)]){if(pushAssistantProviderState(_0x3db276,_0x495fd9,_0x32bec5))continue;const _0x16da4f=[];for(const _0xfc234 of normalizeContent(_0x495fd9[_0x3ec8cc(0x4c5,_0x384d8b._0x1823f2,_0x384d8b._0x15e960,_0x384d8b._0x5cd77c)])){if(_0xfc234[_0x599c49(_0x384d8b._0x365665,_0x384d8b._0x66d3c1,0x149,0x164)]===_0x3ec8cc(0x502,0x4f0,0x4e2,_0x384d8b._0x320242)){_0x16da4f[_0x3ec8cc(0x501,_0x384d8b._0x5e5a59,0x4eb,_0x384d8b._0x2c6a6a)](_0x495fd9[_0x3ec8cc(_0x384d8b._0x61f1a3,0x4c2,0x4c6,0x4c6)]===_0x3ec8cc(_0x384d8b._0x558366,0x508,_0x384d8b._0x1c3339,0x4e1)?{'type':_0x3ec8cc(0x4fe,_0x384d8b._0x4f989a,_0x384d8b._0x515001,_0x384d8b._0x256c1d),'text':_0xfc234[_0x3ec8cc(_0x384d8b._0x59f1e9,_0x384d8b._0x3684dc,_0x384d8b._0x3fd57b,_0x384d8b._0x16ef85)]}:{'type':'input_text','text':_0xfc234[_0x599c49(_0x384d8b._0x135ffb,0x19f,0x19e,0x19c)]});continue;}if(_0xfc234[_0x3ec8cc(0x4ca,0x4d5,_0x384d8b._0x32737e,0x4da)]===_0x599c49(_0x384d8b._0x5e8d22,_0x384d8b._0x477867,0x14f,0x15b)){_0x16da4f[_0x3ec8cc(0x501,0x51b,0x4e4,0x4e1)]({'type':_0x599c49(_0x384d8b._0x530b42,_0x384d8b._0x415cd1,_0x384d8b._0x3a5e47,0x18b),'image_url':'data:'+_0xfc234[_0x3ec8cc(0x4cc,0x4e8,_0x384d8b._0x5391c3,_0x384d8b._0x567719)][_0x599c49(0x1a8,0x19c,0x173,_0x384d8b._0x55e5d6)]+_0x3ec8cc(0x4e8,_0x384d8b._0x2731eb,0x4cc,_0x384d8b._0x2f2f2e)+_0xfc234['source']['data']});continue;}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,0x4e0,0x4be,0x4c1)],_0x16da4f[_0x599c49(0x169,0x16a,_0x384d8b._0x32d76e,_0x384d8b._0x47758d)](0x0));if(_0xfc234['type']===_0x3ec8cc(0x4f6,_0x384d8b._0x112f36,0x4d8,0x4df)){if(!hasSerializableToolUse(_0xfc234))continue;_0x3db276[_0x599c49(_0x384d8b._0x14b2c9,_0x384d8b._0x514206,_0x384d8b._0x12135d,0x19b)]({'type':_0x3ec8cc(_0x384d8b._0x52b822,0x4ed,_0x384d8b._0x266a5f,_0x384d8b._0x3c3b93),'call_id':_0xfc234['id'],'name':_0xfc234[_0x3ec8cc(_0x384d8b._0x175ee9,_0x384d8b._0x57924c,_0x384d8b._0x59f1e9,_0x384d8b._0x1823f2)],'arguments':JSON[_0x3ec8cc(_0x384d8b._0x7123a0,0x4b7,0x4f7,0x4d3)](_0xfc234['input']??{})});continue;}if(_0xfc234[_0x599c49(_0x384d8b._0x22b13a,_0x384d8b._0xa547e2,_0x384d8b._0x2da4c2,0x164)]===_0x3ec8cc(_0x384d8b._0xe065f6,_0x384d8b._0x45403a,_0x384d8b._0x19b77f,_0x384d8b._0xf84547)){if(!hasSerializableToolResult(_0xfc234))continue;const _0x16d3ba=getToolResultText(_0xfc234[_0x599c49(_0x384d8b._0x3b7cb9,0x152,_0x384d8b._0x792470,_0x384d8b._0x38f50e)]);_0x3db276['push']({'type':_0x3ec8cc(0x4f5,0x50a,0x4db,0x4e0),'call_id':_0xfc234[_0x599c49(0x1a2,0x18c,0x179,0x188)],'output':_0x16d3ba});const _0xfda327=getToolResultImages(_0xfc234[_0x599c49(0x161,_0x384d8b._0x555773,0x149,_0x384d8b._0x5b5f56)]);_0xfda327[_0x3ec8cc(0x4df,0x4d4,_0x384d8b._0x76ccfa,0x4d2)]>0x0&&_0x3db276[_0x3ec8cc(_0x384d8b._0x4e4fb9,0x50a,0x501,_0x384d8b._0x4db7e6)]({'type':_0x599c49(0x19d,0x184,_0x384d8b._0x46dc56,_0x384d8b._0x4f7a57),'role':'user','content':[{'type':_0x599c49(_0x384d8b._0x415cd1,_0x384d8b._0x2c9840,_0x384d8b._0x718e0f,0x189),'text':_0x3ec8cc(_0x384d8b._0x371fdb,_0x384d8b._0x1f167b,_0x384d8b._0x320242,0x4eb)+_0xfc234[_0x3ec8cc(_0x384d8b._0x45403a,0x4fe,_0x384d8b._0x2fb42f,_0x384d8b._0x29ff1b)]+'.'},..._0xfda327[_0x3ec8cc(_0x384d8b._0x4fdfa6,_0x384d8b._0x17fcbb,0x505,0x509)](_0x93d609=>({'type':_0x3ec8cc(0x4f1,0x4e5,0x50f,0x4e4),'image_url':_0x599c49(0x146,0x137,0x163,0x159)+_0x93d609['source'][_0x3ec8cc(0x4f2,0x510,0x4d0,0x4e2)]+_0x599c49(0x192,0x16c,0x198,0x182)+_0x93d609[_0x3ec8cc(0x4cc,0x4ca,0x4d5,0x4e3)]['data']}))]});}}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,_0x384d8b._0x1f6140,0x4ce,_0x384d8b._0x1150b9)],_0x16da4f);}function _0x599c49(_0x1fd1ae,_0x43291e,_0x4b503b,_0x56e687){return _0x4f64(_0x56e687- -_0xbe744b._0x106d5d,_0x1fd1ae);}return{...createOpenAiResponsesReasoning(_0x32bec5),'model':_0x32bec5[_0x3ec8cc(_0x384d8b._0x57cdef,_0x384d8b._0x1c3339,_0x384d8b._0x1dbd3d,_0x384d8b._0x3191ec)],'instructions':systemToInstructions(_0x32bec5[_0x3ec8cc(_0x384d8b._0x274d0c,0x4ea,0x4be,_0x384d8b._0x15c653)]),'input':_0x3db276,..._0x32bec5[_0x3ec8cc(_0x384d8b._0x38d85a,_0x384d8b._0x36d442,_0x384d8b._0x5608f5,0x4bc)]!==void 0x0?{'max_output_tokens':_0x32bec5[_0x3ec8cc(0x4d0,0x4cd,_0x384d8b._0x515001,0x4d6)]}:{},'tools':_0x32bec5[_0x599c49(_0x384d8b._0x3c432b,0x187,0x15e,0x171)][_0x3ec8cc(0x4fa,_0x384d8b._0x39bf55,0x4fe,0x503)](_0x242bcc=>{const _0x273c80={_0x2c9953:0x34d};function _0x1540a9(_0x473141,_0x2bc978,_0x50c7c6,_0x301271){return _0x3ec8cc(_0x2bc978- -0x3a9,_0x2bc978-0x18e,_0x473141,_0x301271-_0x5ef073._0x3e6d9b);}function _0x101e08(_0x29ea3e,_0x23bf98,_0x42c662,_0x3dd3f4){return _0x3ec8cc(_0x29ea3e- -_0x273c80._0x2c9953,_0x23bf98-0x15c,_0x3dd3f4,_0x3dd3f4-0x18b);}return{'type':_0x101e08(0x18f,0x1a2,_0x1df8f6._0x571fa2,_0x1df8f6._0x46f4aa),'name':_0x242bcc[_0x101e08(_0x1df8f6._0x5ed710,_0x1df8f6._0x42c21a,_0x1df8f6._0xfbfd1e,_0x1df8f6._0x52a96e)],'description':_0x242bcc[_0x101e08(0x17a,_0x1df8f6._0x32206f,0x18b,_0x1df8f6._0x379796)],'parameters':_0x242bcc['input_schema']};}),..._0x32bec5[_0x3ec8cc(0x4ce,_0x384d8b._0x57cdef,_0x384d8b._0xdf429c,0x4d9)]?{'text':{'format':{'type':'json_schema','name':_0x32bec5['outputFormat'][_0x599c49(0x169,_0x384d8b._0x46dc56,_0x384d8b._0x29063e,0x17d)]??_0x3ec8cc(_0x384d8b._0x5d6f02,_0x384d8b._0x5c25a1,0x4bd,0x4e9),'schema':_0x32bec5['outputFormat'][_0x3ec8cc(_0x384d8b._0x5e675a,_0x384d8b._0x7123a0,0x4e3,0x4ef)],'strict':_0x32bec5[_0x3ec8cc(0x4ce,0x4cc,0x4e5,0x4d5)][_0x599c49(0x167,_0x384d8b._0x11ed96,_0x384d8b._0x555773,0x183)]??!![]}}}:{}};}function _0x1d32(){const _0xadd699=['BMfTzq','B2jQzwn0','mtmWmJm5uvLLy1Hy','DMLZAwjPBgL0Eq','ndLjteDgquW','o2jHC2u2ncW','C3rYAwn0','C2nOzw1H','C3vTBwfYEq','CMvHC29UAw5N','Dg9VBf9Yzxn1Bhq','Dg9VBf91C2vFAwq','Aw5WDxrFDgv4Da','yxnZAxn0yw50','Aw5WDxrFAw1Hz2u','BwvKAwfFDhLWzq','nxHLDgPVDq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf91C2u','C3rHDhvZ','zNvUy3rPB25Fy2fSBa','mZnsq3D0yMW','BwfW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','mJeZntuWogzerffdzq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','B3v0Chv0x3rLEhq','BwvZC2fNzq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ChvZAa','Dgv4Da','zgf0ytO','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw1Hz2u','mJaWtvzMq0jI','Bw9KzwW','m3nmANLWqW','y29UDgvUDa','DxnLCI12AxnPyMXL','zgvZy3jPChrPB24','DhjPBq','C3rYDwn0DxjLzf9VDxrWDxq','DhLWzq','mtu4mda4ogXIyKfiqG','C291CMnL','AM9PBG','B3v0Chv0rM9YBwf0','mtm4otuWAuzKv0jV','Bwf4vg9Rzw5Z','mZGZnde4AvL0zKr4','C3LZDgvT','AxnbCNjHEq','CM9Szq','C3bSAwnL','C3rYAw5NAwz5','Dg9VBhm','BwvZC2fNzxm','ndaYodeYC3DKzuPb','ntm3mtC2yMjzuefS','C3rYAw5N','zNvUy3rPB24','zwzMB3j0','zMLSDgvY','BgvUz3rO','y29KzxG','yMfZzty0','yxv0BW'];_0x1d32=function(){return _0xadd699;};return _0x1d32();}function _0x4f64(_0x1d2fed,_0x5ed6f7){_0x1d2fed=_0x1d2fed-0x18a;const _0x1d320c=_0x1d32();let _0x4f646f=_0x1d320c[_0x1d2fed];if(_0x4f64['iKJTPi']===undefined){var _0x364c47=function(_0x432fad){const _0xe828d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3dd481='',_0x5394e7='';for(let _0xb810e0=0x0,_0x1798f4,_0x40e57a,_0x466466=0x0;_0x40e57a=_0x432fad['charAt'](_0x466466++);~_0x40e57a&&(_0x1798f4=_0xb810e0%0x4?_0x1798f4*0x40+_0x40e57a:_0x40e57a,_0xb810e0++%0x4)?_0x3dd481+=String['fromCharCode'](0xff&_0x1798f4>>(-0x2*_0xb810e0&0x6)):0x0){_0x40e57a=_0xe828d4['indexOf'](_0x40e57a);}for(let _0x3cd7b2=0x0,_0x1190ba=_0x3dd481['length'];_0x3cd7b2<_0x1190ba;_0x3cd7b2++){_0x5394e7+='%'+('00'+_0x3dd481['charCodeAt'](_0x3cd7b2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5394e7);};_0x4f64['rEhwlk']=_0x364c47,_0x4f64['GWqXsl']={},_0x4f64['iKJTPi']=!![];}const _0x5046e7=_0x1d320c[0x0],_0x482324=_0x1d2fed+_0x5046e7,_0x4e36f6=_0x4f64['GWqXsl'][_0x482324];return!_0x4e36f6?(_0x4f646f=_0x4f64['rEhwlk'](_0x4f646f),_0x4f64['GWqXsl'][_0x482324]=_0x4f646f):_0x4f646f=_0x4e36f6,_0x4f646f;}export{toOpenAiResponsesRequest};
|