@nuvin/agent-core 0.2.0-rc.5 → 0.2.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-A4CS4HLK.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +8 -0
- package/dist/tools/file-mutation.d.ts +15 -0
- package/dist/tools/grep-engine.d.ts +22 -0
- package/dist/tools/grep-tool.d.ts +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/ripgrep.d.ts +1 -0
- package/package.json +2 -2
package/dist/chunk-D5IVWJHX.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1011(){var _0x281f45=['mtGXmte3nKHOEMfKDW','mJeZDNzMBxLp','nZu1nZGWy29Wy01b','odrpAvH4Axq','mtHWzMDZq3y','mZa2otnszKDSCwW','odi1mZLbC3DOyxu','mJGWAwDpDMDQ','mtrnvunotuK','nZu4mtK1sunpr1nS','mte1nZy1mwXeCezsrq','mta3mdH5s2jnB1a'];_0x1011=function(){return _0x281f45;};return _0x1011();}(function(_0x4a5b30,_0x36fc91){var _0x32c643={_0x3d0f44:0x2b9,_0x28aa8a:0x2ba,_0x46c4ae:0x2b1,_0x499d63:0x16f,_0x40abc2:0x171,_0x1cc385:0x177,_0x345b9c:0x16a,_0x30b3e8:0x16e,_0xd05d27:0x16b,_0x1a3a31:0x2b8,_0x326052:0x2b9,_0x49f7ba:0x2b4,_0x1b0bab:0x2b0,_0x45e232:0x2b0},_0x79d711={_0x54720f:0x3e7},_0x11abcb=_0x4a5b30();function _0x5713b1(_0x570641,_0x73eb8a,_0x38d77c,_0x22847b){return _0x2796(_0x73eb8a- -_0x79d711._0x54720f,_0x22847b);}function _0x35f1f7(_0x1ff01e,_0x5ae40a,_0x4dd044,_0x2ac8db){return _0x2796(_0x5ae40a-0x3e,_0x4dd044);}while(!![]){try{var _0x1d6387=-parseInt(_0x5713b1(-_0x32c643._0x3d0f44,-_0x32c643._0x28aa8a,-0x2b4,-0x2bd))/0x1+parseInt(_0x5713b1(-0x2af,-_0x32c643._0x46c4ae,-0x2b5,-0x2ae))/0x2+-parseInt(_0x35f1f7(_0x32c643._0x499d63,0x173,0x171,0x174))/0x3*(parseInt(_0x35f1f7(0x16f,_0x32c643._0x40abc2,0x171,_0x32c643._0x1cc385))/0x4)+-parseInt(_0x35f1f7(0x174,0x16f,_0x32c643._0x345b9c,0x175))/0x5*(parseInt(_0x35f1f7(0x171,0x176,0x177,0x17b))/0x6)+parseInt(_0x35f1f7(0x174,_0x32c643._0x30b3e8,_0x32c643._0xd05d27,0x172))/0x7*(-parseInt(_0x5713b1(-0x2b7,-0x2b3,-0x2b0,-_0x32c643._0x3d0f44))/0x8)+-parseInt(_0x5713b1(-0x2b7,-0x2b9,-0x2bb,-0x2be))/0x9*(-parseInt(_0x5713b1(-0x2b2,-_0x32c643._0x1a3a31,-_0x32c643._0x1a3a31,-0x2ba))/0xa)+-parseInt(_0x5713b1(-0x2bb,-0x2b5,-_0x32c643._0x326052,-_0x32c643._0x49f7ba))/0xb*(-parseInt(_0x5713b1(-_0x32c643._0x1b0bab,-_0x32c643._0x45e232,-0x2b0,-0x2b1))/0xc);if(_0x1d6387===_0x36fc91)break;else _0x11abcb['push'](_0x11abcb['shift']());}catch(_0x2234fa){_0x11abcb['push'](_0x11abcb['shift']());}}}(_0x1011,0x3b4ce));function modelIdentityFromParts(_0x2d7eb1,_0x2254e6){if(_0x2d7eb1)return _0x2d7eb1+':'+_0x2254e6;return _0x2254e6['includes'](':')?':'+_0x2254e6:_0x2254e6;}function _0x2796(_0x52cf70,_0x5651c3){_0x52cf70=_0x52cf70-0x12d;var _0x101155=_0x1011();var _0x279668=_0x101155[_0x52cf70];if(_0x2796['ddcUOF']===undefined){var _0x40f5e7=function(_0x407ea8){var _0x6a6f19='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2d7eb1='',_0x2254e6='';for(var _0xf264d6=0x0,_0x2cad12,_0x54c70a,_0x1d08ad=0x0;_0x54c70a=_0x407ea8['charAt'](_0x1d08ad++);~_0x54c70a&&(_0x2cad12=_0xf264d6%0x4?_0x2cad12*0x40+_0x54c70a:_0x54c70a,_0xf264d6++%0x4)?_0x2d7eb1+=String['fromCharCode'](0xff&_0x2cad12>>(-0x2*_0xf264d6&0x6)):0x0){_0x54c70a=_0x6a6f19['indexOf'](_0x54c70a);}for(var _0x30a1eb=0x0,_0x33f71b=_0x2d7eb1['length'];_0x30a1eb<_0x33f71b;_0x30a1eb++){_0x2254e6+='%'+('00'+_0x2d7eb1['charCodeAt'](_0x30a1eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2254e6);};_0x2796['JphBpU']=_0x40f5e7,_0x2796['slonYS']={},_0x2796['ddcUOF']=!![];}var _0x19e15b=_0x101155[0x0],_0x5884cf=_0x52cf70+_0x19e15b,_0x4c23c5=_0x2796['slonYS'][_0x5884cf];return!_0x4c23c5?(_0x279668=_0x2796['JphBpU'](_0x279668),_0x2796['slonYS'][_0x5884cf]=_0x279668):_0x279668=_0x4c23c5,_0x279668;}export{modelIdentityFromParts};
|
package/dist/chunk-FFIZ6TKW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0xdf3f(_0x1e8f93,_0x16f6c3){_0x1e8f93=_0x1e8f93-0x1e9;var _0x50680e=_0x5068();var _0xdf3fc4=_0x50680e[_0x1e8f93];if(_0xdf3f['Lfueiu']===undefined){var _0x4dbf60=function(_0x570555){var _0x5c299b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x7356c0='',_0x55ed1b='';for(var _0x3cfc31=0x0,_0x46e2fa,_0x46bc05,_0x785c1f=0x0;_0x46bc05=_0x570555['charAt'](_0x785c1f++);~_0x46bc05&&(_0x46e2fa=_0x3cfc31%0x4?_0x46e2fa*0x40+_0x46bc05:_0x46bc05,_0x3cfc31++%0x4)?_0x7356c0+=String['fromCharCode'](0xff&_0x46e2fa>>(-0x2*_0x3cfc31&0x6)):0x0){_0x46bc05=_0x5c299b['indexOf'](_0x46bc05);}for(var _0x98e7af=0x0,_0x14cdc3=_0x7356c0['length'];_0x98e7af<_0x14cdc3;_0x98e7af++){_0x55ed1b+='%'+('00'+_0x7356c0['charCodeAt'](_0x98e7af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55ed1b);};_0xdf3f['gLKNBV']=_0x4dbf60,_0xdf3f['WlIJGK']={},_0xdf3f['Lfueiu']=!![];}var _0x3a2ba3=_0x50680e[0x0],_0x36fa2a=_0x1e8f93+_0x3a2ba3,_0x5b667c=_0xdf3f['WlIJGK'][_0x36fa2a];return!_0x5b667c?(_0xdf3fc4=_0xdf3f['gLKNBV'](_0xdf3fc4),_0xdf3f['WlIJGK'][_0x36fa2a]=_0xdf3fc4):_0xdf3fc4=_0x5b667c,_0xdf3fc4;}function _0x5af44e(_0x536d6d,_0x5a3d2e,_0x13fdbb,_0xf52ec9){var _0x168770={_0x35edcc:0x348};return _0xdf3f(_0x536d6d- -_0x168770._0x35edcc,_0x13fdbb);}(function(_0x17eda9,_0x5e0726){var _0x4e7f8b={_0x258708:0xf4,_0x45d1f0:0xf4,_0x674776:0xea,_0x2b4185:0xf1,_0x3d5d29:0x4fb,_0x2aa4d2:0x4f6,_0x2a2e74:0x4f8,_0x3d21cb:0x4fd,_0x1801ad:0x4eb,_0x5c4321:0x4e4,_0x26b0cd:0x4ec,_0x52b99a:0x4ed,_0x2a6003:0x4f3,_0x5085f8:0x4ee,_0x17d3d0:0x4f4,_0xf37d35:0x4e6,_0x128bea:0x4eb,_0x290487:0x4f1,_0x364afa:0xf9,_0x19ac91:0xfb,_0x1dc915:0xec,_0x186873:0xf3,_0x2be3e6:0x103,_0x1fb36e:0xfc,_0xabc8b6:0x4f8,_0x1cf12e:0x4ea},_0x4c1d29={_0x57c4d7:0x300};function _0x390f1(_0x221a2e,_0xe2dad4,_0x564cf1,_0x4378f8){return _0xdf3f(_0x4378f8- -0x2e8,_0x221a2e);}var _0x87f696=_0x17eda9();function _0x4bd6ea(_0x2dd8e6,_0x284918,_0x5249c4,_0x2988f6){return _0xdf3f(_0x284918-_0x4c1d29._0x57c4d7,_0x5249c4);}while(!![]){try{var _0x389f4d=parseInt(_0x390f1(-_0x4e7f8b._0x258708,-0xf9,-_0x4e7f8b._0x45d1f0,-0xfa))/0x1+parseInt(_0x390f1(-_0x4e7f8b._0x674776,-0xf6,-0xef,-_0x4e7f8b._0x2b4185))/0x2*(parseInt(_0x4bd6ea(_0x4e7f8b._0x3d5d29,_0x4e7f8b._0x2aa4d2,_0x4e7f8b._0x2a2e74,_0x4e7f8b._0x3d21cb))/0x3)+-parseInt(_0x4bd6ea(_0x4e7f8b._0x1801ad,0x4e9,_0x4e7f8b._0x5c4321,_0x4e7f8b._0x26b0cd))/0x4*(parseInt(_0x4bd6ea(_0x4e7f8b._0x52b99a,_0x4e7f8b._0x2a6003,_0x4e7f8b._0x5085f8,_0x4e7f8b._0x17d3d0))/0x5)+-parseInt(_0x4bd6ea(0x4e8,0x4ed,_0x4e7f8b._0xf37d35,0x4f0))/0x6*(parseInt(_0x4bd6ea(0x4e4,_0x4e7f8b._0x128bea,0x4f2,_0x4e7f8b._0x290487))/0x7)+parseInt(_0x390f1(-0xff,-_0x4e7f8b._0x2b4185,-0x100,-_0x4e7f8b._0x364afa))/0x8*(-parseInt(_0x390f1(-_0x4e7f8b._0x19ac91,-_0x4e7f8b._0x1dc915,-_0x4e7f8b._0x186873,-_0x4e7f8b._0x45d1f0))/0x9)+parseInt(_0x390f1(-0x100,-_0x4e7f8b._0x2be3e6,-0xfa,-_0x4e7f8b._0x1fb36e))/0xa+parseInt(_0x4bd6ea(_0x4e7f8b._0xabc8b6,0x4f2,_0x4e7f8b._0x1cf12e,0x4ed))/0xb;if(_0x389f4d===_0x5e0726)break;else _0x87f696['push'](_0x87f696['shift']());}catch(_0x565b14){_0x87f696['push'](_0x87f696['shift']());}}}(_0x5068,0xa4ea8));var TurnFailedError=class extends Error{[_0x5af44e(-0x153,-0x156,-0x157,-0x153)];constructor(_0x7356c0,_0x55ed1b){var _0x4a7e21={_0x9b6160:0x144,_0x125a60:0x19b,_0x59a8f7:0x19b,_0x2e80e8:0x1a1,_0x49aeec:0x142,_0x330c78:0x140},_0x34c767={_0x8551f0:0x13,_0x38b14e:0x1c6},_0x607031={_0x479b7a:0x2fc,_0x193c22:0x82};function _0xc5bcdf(_0x57a292,_0x4b9082,_0x1ff917,_0x16784f){return _0x5af44e(_0x16784f-_0x607031._0x479b7a,_0x4b9082-0x2f,_0x57a292,_0x16784f-_0x607031._0x193c22);}super(_0x7356c0 instanceof Error?_0x7356c0[_0x54f407(-0x144,-0x14b,-0x13f,-_0x4a7e21._0x9b6160)]:_0xc5bcdf(0x1ac,0x1a0,0x1a8,0x1a4),{'cause':_0x7356c0}),this['name']=_0xc5bcdf(_0x4a7e21._0x125a60,_0x4a7e21._0x59a8f7,_0x4a7e21._0x2e80e8,0x19e);function _0x54f407(_0x563c59,_0x5c8b93,_0xed7b6e,_0xc7866c){return _0x5af44e(_0xc7866c-_0x34c767._0x8551f0,_0x5c8b93-0x16,_0x5c8b93,_0xc7866c-_0x34c767._0x38b14e);}this[_0x54f407(-_0x4a7e21._0x49aeec,-0x143,-0x142,-_0x4a7e21._0x330c78)]=_0x55ed1b;}};function _0x5068(){var _0x251803=['nJu3mZi0rvH3uw9s','mtuYmZu2ofLRBKz5qW','vhvYBIbMywLSzwq','BwvZC2fNzq','mtK4nda3mZnZCxv6D2O','nvDHuKjhuq','mZzyAurzvhm','C3rHDgu','mtK1otaZnMP4z21KuG','mLL3ru9syq','ndu1mJq0nhrVEgnqrG','vhvYBKzHAwXLzevYCM9Y','mJqXnJreqLbsy1G','ntqXodi4mgPqrun4yG','mtG3oeD0rvrQvG'];_0x5068=function(){return _0x251803;};return _0x5068();}export{TurnFailedError};
|
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc96215,_0x58e6ff){var _0x592b62={_0x49f724:0x370,_0xc0e3bd:0x36e,_0x92e01e:0x37d,_0x32693d:0x123,_0x1c9118:0x120,_0x17f5dd:0x125,_0x55b898:0x373,_0x3f8612:0x375,_0x50dbfc:0x36f,_0x3e2803:0x36a,_0x21b4a0:0x371,_0x147cac:0x370,_0x54e401:0x137,_0x270f9c:0x377,_0x7209f7:0x373},_0x3440e1={_0x3d4d62:0x25a},_0x3765ff={_0x46e89d:0x16},_0xac2f97=_0xc96215();function _0x5eb1a0(_0x6f0720,_0x40a4dc,_0x19bc8b,_0x4d0418){return _0x3b42(_0x4d0418-_0x3765ff._0x46e89d,_0x6f0720);}function _0x5e3c0b(_0x2e33ee,_0x3f86eb,_0x59afb4,_0x56474d){return _0x3b42(_0x59afb4-_0x3440e1._0x3d4d62,_0x56474d);}while(!![]){try{var _0xdd8d04=-parseInt(_0x5e3c0b(_0x592b62._0x49f724,_0x592b62._0xc0e3bd,0x373,0x36e))/0x1*(-parseInt(_0x5e3c0b(_0x592b62._0x92e01e,0x378,0x376,_0x592b62._0x92e01e))/0x2)+-parseInt(_0x5eb1a0(0x125,0x123,_0x592b62._0x32693d,0x128))/0x3*(parseInt(_0x5eb1a0(_0x592b62._0x1c9118,0x11f,_0x592b62._0x17f5dd,0x125))/0x4)+-parseInt(_0x5e3c0b(_0x592b62._0x55b898,0x378,_0x592b62._0x3f8612,0x371))/0x5+parseInt(_0x5e3c0b(_0x592b62._0x50dbfc,_0x592b62._0x3e2803,_0x592b62._0x3e2803,0x36d))/0x6+-parseInt(_0x5e3c0b(_0x592b62._0x21b4a0,0x378,_0x592b62._0x21b4a0,_0x592b62._0x147cac))/0x7*(parseInt(_0x5e3c0b(0x373,0x373,0x36e,0x36a))/0x8)+-parseInt(_0x5eb1a0(0x131,_0x592b62._0x54e401,0x137,0x130))/0x9*(-parseInt(_0x5e3c0b(0x368,0x370,0x36b,0x36a))/0xa)+parseInt(_0x5e3c0b(_0x592b62._0x270f9c,0x374,_0x592b62._0x49f724,_0x592b62._0x7209f7))/0xb;if(_0xdd8d04===_0x58e6ff)break;else _0xac2f97['push'](_0xac2f97['shift']());}catch(_0x1f2e24){_0xac2f97['push'](_0xac2f97['shift']());}}}(_0x244b,0xa5ed5));function resolveAnthropicReasoningConfig(_0x36125b){var _0x3cffb5={_0x32262a:0xe4,_0x312275:0xe1,_0x57a402:0xea},_0x517b5c={_0x39f7e4:0x32};function _0x2a7dfb(_0x405815,_0x3c1c1f,_0x280074,_0x402140){return _0x3b42(_0x3c1c1f- -_0x517b5c._0x39f7e4,_0x405815);}return _0x36125b?.['anthropic']?structuredClone(_0x36125b[_0x2a7dfb(_0x3cffb5._0x32262a,0xe3,_0x3cffb5._0x312275,_0x3cffb5._0x57a402)]):void 0x0;}function _0x244b(){var _0x438cb8=['mJa3nJuWmePHC1Puwq','neXyBwnTCq','mtu3nLvpsMn6zG','nZaYmJyYmLverLPYAa','mtbPy0jHCuy','nZKYnMP3vvzZBW','y29KzxG','mZq3mZm2AgTQAe9j','yw50AhjVCgLJ','nZq3oty3DNvytNjP','ndjnt3r2AKC','B3bLBMfP','ndi1odm3zgnNvMve','mJC1nJuXmwnjDvjJqG'];_0x244b=function(){return _0x438cb8;};return _0x244b();}function resolveOpenAiReasoningConfig(_0x576314){var _0x50a612={_0x9ba6cd:0xac,_0x6b5f00:0xae,_0x434050:0xad,_0x34cdcf:0xac,_0x6da30b:0xb7,_0x587ce4:0xb1,_0x5cd320:0x24b},_0x603a4d={_0x4b14d1:0x363};function _0x4643ba(_0x4ecb6f,_0x2a9a25,_0x26d854,_0x5bc303){return _0x3b42(_0x2a9a25- -0x67,_0x26d854);}function _0x2e3729(_0x486c11,_0x14e993,_0x4c706b,_0x2b5f64){return _0x3b42(_0x4c706b- -_0x603a4d._0x4b14d1,_0x486c11);}if(_0x576314?.[_0x4643ba(0xab,_0x50a612._0x9ba6cd,_0x50a612._0x6b5f00,_0x50a612._0x434050)])return structuredClone(_0x576314[_0x4643ba(_0x50a612._0x434050,_0x50a612._0x34cdcf,0xaf,0xae)]);return _0x576314?.[_0x4643ba(_0x50a612._0x6da30b,_0x50a612._0x587ce4,0xac,0xb5)]?structuredClone(_0x576314[_0x2e3729(-0x244,-0x24e,-_0x50a612._0x5cd320,-0x245)]):void 0x0;}function _0x3b42(_0x28b53b,_0x1901e0){_0x28b53b=_0x28b53b-0x10f;var _0x244b88=_0x244b();var _0x3b420f=_0x244b88[_0x28b53b];if(_0x3b42['YfNPUp']===undefined){var _0x4bdcf9=function(_0x2c3973){var _0x3b7292='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x36125b='',_0x576314='';for(var _0x3d6c83=0x0,_0x4d8ffc,_0xb2ce5e,_0x211f01=0x0;_0xb2ce5e=_0x2c3973['charAt'](_0x211f01++);~_0xb2ce5e&&(_0x4d8ffc=_0x3d6c83%0x4?_0x4d8ffc*0x40+_0xb2ce5e:_0xb2ce5e,_0x3d6c83++%0x4)?_0x36125b+=String['fromCharCode'](0xff&_0x4d8ffc>>(-0x2*_0x3d6c83&0x6)):0x0){_0xb2ce5e=_0x3b7292['indexOf'](_0xb2ce5e);}for(var _0x58be5d=0x0,_0x268d08=_0x36125b['length'];_0x58be5d<_0x268d08;_0x58be5d++){_0x576314+='%'+('00'+_0x36125b['charCodeAt'](_0x58be5d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x576314);};_0x3b42['rUfQuc']=_0x4bdcf9,_0x3b42['QYTRwd']={},_0x3b42['YfNPUp']=!![];}var _0x28823a=_0x244b88[0x0],_0x44c40b=_0x28b53b+_0x28823a,_0x2f62b9=_0x3b42['QYTRwd'][_0x44c40b];return!_0x2f62b9?(_0x3b420f=_0x3b42['rUfQuc'](_0x3b420f),_0x3b42['QYTRwd'][_0x44c40b]=_0x3b420f):_0x3b420f=_0x2f62b9,_0x3b420f;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x224883,_0x293018){const _0x52f613={_0xa92bcc:0x86,_0x481f66:0x268,_0x5a360d:0x27c,_0x2f73f8:0x281,_0x1bca47:0x25b,_0x4c4c1b:0x273,_0x541300:0xa4,_0x3551cc:0x8b,_0x27070f:0x97,_0x39daf8:0x96,_0x348ae2:0x77,_0x540c05:0x65,_0x2f4623:0x28d,_0x534662:0x286,_0x1e04f7:0x64,_0x34bf2f:0x75,_0x2d9162:0xa3,_0x2007b9:0x283,_0x16f95e:0x62},_0x5d5baf={_0x427999:0x16b};function _0x53dc25(_0x94839b,_0x33bc8e,_0x40e0b2,_0x1117f2){return _0x10d1(_0x1117f2- -_0x5d5baf._0x427999,_0x33bc8e);}const _0x4eae1c=_0x224883();function _0x3f548c(_0x3b561b,_0x4cec3f,_0x34a487,_0x41004b){return _0x10d1(_0x34a487- -0x346,_0x3b561b);}while(!![]){try{const _0x318f95=parseInt(_0x53dc25(-0x95,-_0x52f613._0xa92bcc,-0xbc,-0x9e))/0x1*(-parseInt(_0x3f548c(-0x281,-0x280,-_0x52f613._0x481f66,-0x25d))/0x2)+-parseInt(_0x3f548c(-0x282,-_0x52f613._0x5a360d,-_0x52f613._0x2f73f8,-0x268))/0x3*(parseInt(_0x3f548c(-0x25b,-0x241,-_0x52f613._0x1bca47,-_0x52f613._0x4c4c1b))/0x4)+-parseInt(_0x53dc25(-_0x52f613._0x541300,-0x7f,-0x8a,-0x9f))/0x5*(-parseInt(_0x53dc25(-0x8d,-_0x52f613._0x3551cc,-_0x52f613._0x27070f,-_0x52f613._0x39daf8))/0x6)+-parseInt(_0x53dc25(-_0x52f613._0x348ae2,-0x62,-_0x52f613._0x540c05,-0x7d))/0x7+parseInt(_0x3f548c(-_0x52f613._0x2f4623,-_0x52f613._0x534662,-0x28d,-0x275))/0x8*(parseInt(_0x53dc25(-_0x52f613._0x1e04f7,-0x96,-_0x52f613._0x34bf2f,-0x81))/0x9)+parseInt(_0x53dc25(-0x9d,-0x71,-0x7b,-0x87))/0xa*(-parseInt(_0x53dc25(-0xbc,-0xb3,-0xbf,-_0x52f613._0x2d9162))/0xb)+parseInt(_0x3f548c(-0x29b,-0x28c,-_0x52f613._0x2007b9,-0x294))/0xc*(parseInt(_0x53dc25(-0x9a,-_0x52f613._0x16f95e,-0x95,-0x7c))/0xd);if(_0x318f95===_0x293018)break;else _0x4eae1c['push'](_0x4eae1c['shift']());}catch(_0x554da1){_0x4eae1c['push'](_0x4eae1c['shift']());}}}(_0x4fae,0x3d752));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x32c85b){const _0x1a6fc7={_0x3b5f08:0x218,_0x24d221:0x221,_0x51cbcc:0x22a,_0x3e437b:0x5a};function _0x2503ab(_0x373d1c,_0x3b7537,_0x36e72b,_0x102b3f){return _0x10d1(_0x102b3f- -0x307,_0x36e72b);}function _0x29cf9c(_0x4e5aa4,_0x3c29e7,_0x3329cb,_0x4c05f6){return _0x10d1(_0x3c29e7- -0x5f,_0x4c05f6);}return normalizeContent(_0x32c85b)[_0x2503ab(-_0x1a6fc7._0x3b5f08,-0x241,-_0x1a6fc7._0x24d221,-_0x1a6fc7._0x51cbcc)](_0xff694c=>_0xff694c[_0x29cf9c(0x8f,0x83,0x69,0x80)]===_0x2503ab(-0x247,-0x223,-0x20b,-0x22b))[_0x29cf9c(0x82,0x6c,0x75,_0x1a6fc7._0x3e437b)](_0x1ce3c8=>_0x1ce3c8[_0x29cf9c(0x9d,0x7d,0x99,0x92)])['join']('\x0a\x0a');}function _0x4fae(){const _0x4bee4c=['mtm4mJbzyvj2uNy','mZG3nJmZrMrdr2jS','CMvHC29UAw5N','zgf0yq','y29KzxG','C3vTBwfYEq','C2nOzw1H','zgvZy3jPChrPB24','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','nZC0DMr6yLvM','B3v0Chv0x3rLEhq','B2jQzwn0','DxnLCG','Dg9VBhm','C3LZDgvT','y29UDgvUDa','Dgv4Da','zMLSDgvY','mMPjwhvZtq','ChjVDMLKzxjtDgf0zq','yxv0BW','BwvZC2fNzxm','DhLWzq','zNvUy3rPB24','nJeZme5StvzQAq','DhjPBq','zNvUy3rPB25Fy2fSBa','BMfTzq','Aw5WDxq','C3rHDhvZ','mJqZvenwDg5M','ndb1rxbxCe8','C3rYDwn0DxjLzf9VDxrWDxq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','mJu3otiYn1rZt0TjuG','otC1ywjeDurR','DMLZAwjPBgL0Eq','Aw5WDxrFAw1Hz2u','Dg9VBf91C2u','zgf0ytO','B3v0Chv0rM9YBwf0','zNvUy3rPB25Fy2fSBf9VDxrWDxq','BwvKAwfFDhLWzq','C291CMnL','Bw9KzwW','mtG1odrcAwLbugG','C3rYAw5N','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw5WDxrFC2nOzw1H','BgvUz3rO','o2jHC2u2ncW','Bwf4vg9Rzw5Z','Dg9VBf91C2vFAwq','Aw1Hz2u','ChvZAa','mtuYotuYywHJzgrJ','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','odqYotfHrujbB0y','DxnLCI12AxnPyMXL','AxnbCNjHEq','mtu1mwTPsxPWvW','CM9Szq','yMfZzty0','BwfW'];_0x4fae=function(){return _0x4bee4c;};return _0x4fae();}function pushUserContentMessage(_0xb56cca,_0x33687c,_0x6b0b89){const _0x233432={_0x7dc7f8:0x126,_0x5481d6:0x11a,_0x5b65e4:0x11e},_0x219fbc={_0x5080fe:0x180};if(_0x6b0b89[_0x2239a4(0x122,0x11a,0x11c,_0x233432._0x7dc7f8)]===0x0)return;function _0x3e692a(_0x2fa336,_0x293d5a,_0x534499,_0x35da70){return _0x10d1(_0x534499- -_0x219fbc._0x5080fe,_0x35da70);}function _0x2239a4(_0x4f88c7,_0x2313de,_0x35b725,_0x5804e7){return _0x10d1(_0x4f88c7-0x65,_0x2313de);}_0xb56cca[_0x2239a4(0x127,0x117,_0x233432._0x5481d6,_0x233432._0x5b65e4)]({'type':'message','role':_0x33687c,'content':_0x6b0b89});}function hasSerializableToolUse(_0x1a6680){const _0x150616={_0x416e95:0x403,_0x277555:0x412,_0xa5c943:0x40b,_0x2bdcd6:0x3f7,_0x44c787:0x3e8};function _0x5a7db7(_0x3a15a3,_0x207a40,_0x5dccfe,_0x2fd452){return _0x10d1(_0x207a40-0x2eb,_0x3a15a3);}function _0x170293(_0xdb05fa,_0xadc8e8,_0x59a45e,_0x9fe5db){return _0x10d1(_0xadc8e8-0x32d,_0x9fe5db);}return _0x1a6680['id'][_0x170293(_0x150616._0x416e95,_0x150616._0x277555,_0x150616._0xa5c943,0x3f9)]()['length']>0x0&&_0x1a6680[_0x170293(0x411,0x414,_0x150616._0x2bdcd6,0x3fe)]['trim']()[_0x170293(0x3d7,0x3ea,_0x150616._0x44c787,0x3f3)]>0x0;}function hasSerializableToolResult(_0x15f808){const _0x5105e0={_0x424126:0x40f,_0x28ad3c:0x407,_0x23591c:0x3fa,_0x4eb4cf:0x3f2,_0x34f868:0x443,_0x552194:0x407,_0x3847d8:0x413},_0x527d36={_0x50a0be:0x347};function _0x11968c(_0x294e1b,_0x3e0b49,_0x4d103d,_0x380d24){return _0x10d1(_0x3e0b49-_0x527d36._0x50a0be,_0x4d103d);}function _0x287460(_0x15f953,_0x13ed81,_0x7974e8,_0x4e8eb4){return _0x10d1(_0x4e8eb4-0x244,_0x13ed81);}return _0x15f808[_0x11968c(_0x5105e0._0x424126,_0x5105e0._0x28ad3c,_0x5105e0._0x23591c,_0x5105e0._0x4eb4cf)][_0x11968c(0x43e,0x42c,_0x5105e0._0x34f868,0x440)]()[_0x11968c(_0x5105e0._0x552194,0x404,_0x5105e0._0x424126,_0x5105e0._0x3847d8)]>0x0;}function isResponseInputObject(_0x21f451){const _0x1bf938={_0x48a93e:0x245,_0x4edced:0x243,_0x1aef13:0x289,_0x56fcaa:0x2a4,_0x227ce7:0x269},_0x5487de={_0xd365a8:0x343};function _0x29b64e(_0x33a6a6,_0x465b85,_0x1cf124,_0x3e857c){return _0x10d1(_0x1cf124- -0x77,_0x465b85);}if(typeof _0x21f451!=='object'||_0x21f451===null||Array[_0x4f3600(-0x27c,-0x27c,-0x298,-0x28c)](_0x21f451))return![];const _0x229442=_0x21f451;function _0x4f3600(_0x29d841,_0x17c412,_0x50e79f,_0x2b15f6){return _0x10d1(_0x29d841- -_0x5487de._0xd365a8,_0x50e79f);}return typeof _0x229442[_0x4f3600(-0x261,-0x255,-_0x1bf938._0x48a93e,-_0x1bf938._0x4edced)]===_0x4f3600(-_0x1bf938._0x1aef13,-_0x1bf938._0x56fcaa,-_0x1bf938._0x227ce7,-0x28d);}function isImageToolResultBlock(_0x3cafde){const _0x56bb63={_0x29693e:0x233,_0x2fa8c2:0x221,_0x20da4d:0x22e,_0x530416:0x23b,_0x1375e4:0x18a,_0x2012c6:0x1ba,_0x5935e0:0x19b,_0x41088a:0x197,_0x20d219:0x192,_0x5916a0:0x176,_0x2006a9:0x21c,_0x346ca5:0x22c};if(typeof _0x3cafde!==_0x53c33e(_0x56bb63._0x29693e,0x227,_0x56bb63._0x2fa8c2,_0x56bb63._0x20da4d)||_0x3cafde===null||Array[_0x53c33e(0x234,0x239,0x213,0x21e)](_0x3cafde))return![];function _0x253170(_0x571c0a,_0x583342,_0x56856c,_0xc2a155){return _0x10d1(_0x571c0a- -0x261,_0x56856c);}function _0x53c33e(_0x4fd2a5,_0x4f349c,_0x4b3a6f,_0x161eb2){return _0x10d1(_0x161eb2-0x157,_0x4f349c);}const _0x3ec522=_0x3cafde;return _0x3ec522[_0x53c33e(0x233,_0x56bb63._0x530416,0x245,0x239)]===_0x253170(-0x1a0,-_0x56bb63._0x1375e4,-_0x56bb63._0x2012c6,-_0x56bb63._0x5935e0)&&_0x3ec522['source']?.['type']===_0x253170(-_0x56bb63._0x41088a,-0x18f,-0x18d,-0x18f)&&typeof _0x3ec522['source']['media_type']==='string'&&typeof _0x3ec522['source'][_0x253170(-_0x56bb63._0x20d219,-0x182,-0x17f,-_0x56bb63._0x5916a0)]===_0x53c33e(_0x56bb63._0x2006a9,0x202,_0x56bb63._0x346ca5,0x211);}function getToolResultText(_0x1b7b65){const _0x329c0e={_0x5629c8:0x1fb,_0x32fdcb:0x1e2,_0x8f4e87:0x1ef,_0x354da5:0x1d1,_0x16a3f1:0x1b7,_0x421370:0x1ab,_0x412014:0x1af,_0x9763b5:0x195},_0x16f5b4={_0x3136f5:0x225,_0x413cdd:0x20d,_0x260363:0x23f,_0x2d3a39:0x230,_0x54859a:0x23a},_0x5333a1={_0x1a00ea:0x192,_0x5f3ab6:0x61a},_0x8294b9={_0x38883a:0x192,_0x422a7b:0x3ea};if(typeof _0x1b7b65===_0x4b8403(-_0x329c0e._0x5629c8,-_0x329c0e._0x32fdcb,-0x1dd,-_0x329c0e._0x8f4e87))return _0x1b7b65;function _0x4b8403(_0x149bbc,_0x508e58,_0x3e576e,_0xda435d){return _0x10d1(_0x508e58- -0x29c,_0xda435d);}function _0x48c7dd(_0x410942,_0x5a814a,_0x491945,_0x2c1d7c){return _0x10d1(_0x2c1d7c- -0x2e6,_0x491945);}const _0x529bb4=_0x1b7b65['filter'](_0x5addde=>{function _0x11a10c(_0x2d1dd4,_0x231cc,_0x5abe7b,_0x5f0194){return _0x4b8403(_0x2d1dd4-_0x8294b9._0x38883a,_0x2d1dd4-_0x8294b9._0x422a7b,_0x5abe7b-0x18f,_0x5abe7b);}function _0x596354(_0x38263a,_0x237251,_0x3165fb,_0x30aaca){return _0x4b8403(_0x38263a-_0x5333a1._0x1a00ea,_0x38263a-_0x5333a1._0x5f3ab6,_0x3165fb-0x96,_0x30aaca);}return typeof _0x5addde===_0x11a10c(_0x16f5b4._0x3136f5,0x235,_0x16f5b4._0x413cdd,_0x16f5b4._0x260363)&&_0x5addde!==null&&_0x5addde[_0x11a10c(_0x16f5b4._0x2d3a39,0x21a,0x225,_0x16f5b4._0x54859a)]===_0x11a10c(0x22a,0x229,0x20f,0x232);})[_0x4b8403(-0x1e8,-_0x329c0e._0x354da5,-0x1d1,-0x1b4)](_0x40f58a=>_0x40f58a['text'])['join']('\x0a\x0a')[_0x4b8403(-0x1d0,-_0x329c0e._0x16a3f1,-0x19e,-0x19b)]();return _0x529bb4['length']>0x0?_0x529bb4:_0x4b8403(-_0x329c0e._0x421370,-_0x329c0e._0x412014,-0x1c9,-_0x329c0e._0x9763b5);}function getToolResultImages(_0x1de968){return Array['isArray'](_0x1de968)?_0x1de968['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x48b337){const _0x4872ac={_0x6e6ae:0x16d,_0x524920:0x16a,_0x3b911c:0x162,_0x3010b6:0x17c,_0x8d5024:0x1cd,_0x485f23:0x1eb,_0x30f9f4:0x1e6,_0x21d310:0x1e6};function _0x1239f8(_0x4d4107,_0x3aadbb,_0x48a21f,_0xccc8dc){return _0x10d1(_0x48a21f-0x120,_0x4d4107);}function _0x9b30ae(_0x5ea234,_0x5ea6fa,_0x12e4fb,_0x5dce2f){return _0x10d1(_0x12e4fb- -0x252,_0x5ea6fa);}return _0x48b337[_0x9b30ae(-_0x4872ac._0x6e6ae,-0x171,-0x184,-0x187)]?.[_0x9b30ae(-_0x4872ac._0x524920,-0x14c,-_0x4872ac._0x3b911c,-_0x4872ac._0x3010b6)]??_0x1239f8(_0x4872ac._0x8d5024,_0x4872ac._0x485f23,_0x4872ac._0x30f9f4,_0x4872ac._0x21d310);}function createOpenAiResponsesReasoning(_0x57c02a){const _0x3f3193={_0x148702:0xd5,_0x4fa2d1:0xea,_0x2c7ba4:0x55,_0x4c12fc:0x58,_0x3bf49b:0x75,_0x12d10c:0x71,_0x206fbd:0x60,_0x177e5c:0xc3,_0x45b8d2:0xe0,_0x4b6848:0xdd,_0x2c7cce:0xd2,_0x42c361:0xc7,_0x551514:0xf6,_0x117c36:0xc9,_0x952d29:0x6b,_0x437176:0x72,_0xb79db7:0x7e},_0x45a269={_0x2bfa58:0x1a3},_0x2ff39e={_0xfaf116:0x126},_0x2eaaa8=resolveOpenAiReasoningConfig(_0x57c02a['reasoning']);if(!_0x2eaaa8)return{};const _0x2d9ca0={},_0x3910d8=_0x57c02a[_0x2cd8bb(-0xba,-_0x3f3193._0x148702,-0xb5,-_0x3f3193._0x4fa2d1)]?.[_0x2cd8bb(-0xca,-0xd3,-0xbf,-0xe2)]!==void 0x0;function _0x5a6cde(_0x590421,_0x2d2f39,_0x5f123e,_0x1c1e7){return _0x10d1(_0x590421- -_0x2ff39e._0xfaf116,_0x5f123e);}const _0x767837=(!_0x3910d8&&'summary'in _0x2eaaa8?_0x2eaaa8[_0x5a6cde(-_0x3f3193._0x2c7ba4,-0x3c,-_0x3f3193._0x4c12fc,-_0x3f3193._0x3bf49b)]:void 0x0)??(resolveReasoningVisibility(_0x57c02a)===_0x5a6cde(-0x60,-_0x3f3193._0x12d10c,-0x52,-_0x3f3193._0x206fbd)?_0x2cd8bb(-0xd1,-_0x3f3193._0x177e5c,-_0x3f3193._0x45b8d2,-_0x3f3193._0x4b6848):void 0x0);_0x2eaaa8['effort']&&(_0x2d9ca0['effort']=_0x2eaaa8['effort']);_0x767837&&(_0x2d9ca0[_0x2cd8bb(-0xd3,-_0x3f3193._0x2c7cce,-0xc2,-_0x3f3193._0x42c361)]=_0x767837);function _0x2cd8bb(_0x5b8303,_0x6c99d,_0x34287d,_0x56c40f){return _0x10d1(_0x6c99d- -_0x45a269._0x2bfa58,_0x56c40f);}return{...!_0x3910d8&&_0x2cd8bb(-0x103,-0xe8,-_0x3f3193._0x551514,-_0x3f3193._0x117c36)in _0x2eaaa8&&_0x2eaaa8[_0x5a6cde(-_0x3f3193._0x952d29,-_0x3f3193._0x437176,-_0x3f3193._0xb79db7,-0x6a)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object['keys'](_0x2d9ca0)['length']>0x0?{'reasoning':_0x2d9ca0}:{}};}function _0x10d1(_0x3801f9,_0x28ffce){_0x3801f9=_0x3801f9-0xb1;const _0x4fae9d=_0x4fae();let _0x10d170=_0x4fae9d[_0x3801f9];if(_0x10d1['SmRaGK']===undefined){var _0x4bb85d=function(_0x3fb747){const _0x2c0e1f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32c85b='',_0xff694c='';for(let _0x1ce3c8=0x0,_0xb56cca,_0x33687c,_0x6b0b89=0x0;_0x33687c=_0x3fb747['charAt'](_0x6b0b89++);~_0x33687c&&(_0xb56cca=_0x1ce3c8%0x4?_0xb56cca*0x40+_0x33687c:_0x33687c,_0x1ce3c8++%0x4)?_0x32c85b+=String['fromCharCode'](0xff&_0xb56cca>>(-0x2*_0x1ce3c8&0x6)):0x0){_0x33687c=_0x2c0e1f['indexOf'](_0x33687c);}for(let _0x1a6680=0x0,_0x15f808=_0x32c85b['length'];_0x1a6680<_0x15f808;_0x1a6680++){_0xff694c+='%'+('00'+_0x32c85b['charCodeAt'](_0x1a6680)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xff694c);};_0x10d1['faHrap']=_0x4bb85d,_0x10d1['YJbMiC']={},_0x10d1['SmRaGK']=!![];}const _0x17e09c=_0x4fae9d[0x0],_0x14aa5a=_0x3801f9+_0x17e09c,_0x4dde5b=_0x10d1['YJbMiC'][_0x14aa5a];return!_0x4dde5b?(_0x10d170=_0x10d1['faHrap'](_0x10d170),_0x10d1['YJbMiC'][_0x14aa5a]=_0x10d170):_0x10d170=_0x4dde5b,_0x10d170;}function pushAssistantProviderState(_0x4e9860,_0x3ad1eb,_0x5a269a){const _0x46d7a5={_0x25c352:0x263,_0x5cbe7d:0x278,_0x499d1c:0x3a,_0x18f0b1:0x243,_0x21f68d:0x251,_0x22a5bd:0x285,_0x15ac6c:0x27d,_0x17aac3:0x276,_0x311bb8:0x250,_0x3c83a1:0x262,_0x387f33:0x25e,_0x3cb690:0x2d,_0x13a89f:0x57,_0x53b736:0x37},_0x55f13b={_0x412c38:0x194};function _0x3b4df8(_0x15b25f,_0x2a6d1b,_0x59c6a5,_0x160aa0){return _0x10d1(_0x59c6a5- -0x8a,_0x15b25f);}if(_0x3ad1eb[_0x3b4df8(0x3f,0x29,0x3f,0x42)]!=='assistant')return![];if(!isProviderStateCompatible(_0x3ad1eb,_0x5a269a))return![];const _0x2a4dce=_0x3ad1eb[_0xf0bc57(0x280,_0x46d7a5._0x25c352,_0x46d7a5._0x5cbe7d,0x273)]?.[_0x3b4df8(0x2f,0x4c,_0x46d7a5._0x499d1c,0x1c)]??[];if(_0x2a4dce[_0xf0bc57(0x260,_0x46d7a5._0x18f0b1,0x26b,_0x46d7a5._0x21f68d)]===0x0)return![];for(const _0x479fab of _0x2a4dce){if(isResponseInputObject(_0x479fab)){const _0x24c73f=structuredClone(_0x479fab);delete _0x24c73f[_0xf0bc57(0x284,0x269,_0x46d7a5._0x22a5bd,_0x46d7a5._0x15ac6c)],_0x24c73f[_0xf0bc57(0x28d,0x26a,0x263,_0x46d7a5._0x17aac3)]===_0xf0bc57(_0x46d7a5._0x311bb8,_0x46d7a5._0x21f68d,0x25a,_0x46d7a5._0x3c83a1)&&!Array['isArray'](_0x24c73f[_0xf0bc57(_0x46d7a5._0x387f33,0x284,0x285,0x265)])&&(_0x24c73f[_0x3b4df8(0x4a,_0x46d7a5._0x3cb690,0x47,0x63)]=[]),_0x4e9860[_0x3b4df8(_0x46d7a5._0x13a89f,0x24,0x38,_0x46d7a5._0x53b736)](_0x24c73f);}}function _0xf0bc57(_0x19457d,_0x436fae,_0x9a8d6c,_0x5b06e5){return _0x10d1(_0x5b06e5-_0x55f13b._0x412c38,_0x19457d);}return!![];}function toOpenAiResponsesRequest(_0x1dab16){const _0x5eb9b6={_0x2bad4e:0x314,_0x56435b:0x3b0,_0x1afc48:0x392,_0x5a2ccb:0x315,_0x586bb1:0x312,_0x5c1cb8:0x301,_0x1c99ce:0x385,_0x25af3c:0x2f0,_0x442f8c:0x305,_0x493862:0x31c,_0x251c1e:0x307,_0x14dfd4:0x38c,_0x1f8d00:0x31b,_0x1af87c:0x363,_0x3b7492:0x36b,_0x53093c:0x378,_0x5218a4:0x2f5,_0x40faa2:0x306,_0x4929fb:0x2d7,_0x1ae11d:0x2fb,_0x14f2a4:0x2f8,_0x31c738:0x2d1,_0x579e59:0x2e6,_0x122cda:0x2c9,_0xf2bd30:0x303,_0x5cd4a8:0x384,_0x261220:0x354,_0x51a33d:0x376,_0x1e65d7:0x375,_0x28f24b:0x360,_0x3feadf:0x36d,_0x5d3d1c:0x35e,_0x15b72f:0x2ea,_0x26453b:0x308,_0x582b5d:0x2e5,_0x13d8ad:0x2e1,_0x3df640:0x39b,_0x12f6c7:0x379,_0x31dedd:0x3b8,_0xb429c2:0x383,_0x471b38:0x39e,_0x72ef68:0x395,_0x42dd10:0x319,_0x26778e:0x2e5,_0x29269b:0x357,_0x196133:0x30e,_0x161abb:0x313,_0xc0734:0x374,_0x2582f9:0x30b,_0x58c5b8:0x318,_0x3142ad:0x320,_0x745033:0x30f,_0x1e8588:0x318,_0x433001:0x2fd,_0x204db1:0x2f9,_0xb8796f:0x38a,_0x326a23:0x391,_0x66d372:0x37d,_0x1bdb32:0x376,_0xde4c54:0x2fd,_0x550b92:0x2fe,_0x75f89a:0x31d,_0x5d1f9d:0x2e0,_0x1c0e50:0x383,_0x215498:0x339,_0xb451e6:0x388,_0x1d77bd:0x397,_0x11dae3:0x36a,_0x261691:0x35c},_0x260e56={_0x3af0a3:0x1ac,_0xa82f31:0x18e,_0x1ee1ae:0x1a8,_0x3d0a21:0x19b,_0x237e5a:0x1d3,_0x79b807:0x1c8,_0x2879f4:0x1d3},_0x4064a8={_0x534190:0x4c2,_0x59637e:0x193},_0x29935e={_0x1b9b7e:0x260},_0x159291=[];for(const _0x3f594b of _0x1dab16[_0x53014b(_0x5eb9b6._0x2bad4e,0x301,0x30b,0x31d)]){if(pushAssistantProviderState(_0x159291,_0x3f594b,_0x1dab16))continue;const _0x15df0a=[];for(const _0x21bd76 of normalizeContent(_0x3f594b[_0x7b01d7(0x3b1,_0x5eb9b6._0x56435b,0x397,_0x5eb9b6._0x1afc48)])){if(_0x21bd76[_0x53014b(_0x5eb9b6._0x5a2ccb,0x334,_0x5eb9b6._0x586bb1,_0x5eb9b6._0x5c1cb8)]===_0x7b01d7(0x393,_0x5eb9b6._0x1c99ce,0x3a7,0x393)){_0x15df0a['push'](_0x3f594b['role']==='assistant'?{'type':_0x53014b(0x309,0x300,_0x5eb9b6._0x25af3c,_0x5eb9b6._0x442f8c),'text':_0x21bd76[_0x53014b(0x30f,_0x5eb9b6._0x493862,_0x5eb9b6._0x251c1e,0x2f5)]}:{'type':'input_text','text':_0x21bd76[_0x7b01d7(_0x5eb9b6._0x14dfd4,0x381,0x37d,0x393)]});continue;}if(_0x21bd76[_0x53014b(_0x5eb9b6._0x5a2ccb,_0x5eb9b6._0x1f8d00,0x324,0x32f)]===_0x7b01d7(_0x5eb9b6._0x1af87c,0x368,_0x5eb9b6._0x3b7492,_0x5eb9b6._0x53093c)){_0x15df0a[_0x53014b(_0x5eb9b6._0x5218a4,_0x5eb9b6._0x40faa2,_0x5eb9b6._0x4929fb,0x2e6)]({'type':_0x53014b(0x2e4,_0x5eb9b6._0x1ae11d,_0x5eb9b6._0x14f2a4,_0x5eb9b6._0x31c738),'image_url':_0x53014b(_0x5eb9b6._0x579e59,_0x5eb9b6._0x31c738,_0x5eb9b6._0x122cda,_0x5eb9b6._0xf2bd30)+_0x21bd76[_0x7b01d7(_0x5eb9b6._0x5cd4a8,0x370,_0x5eb9b6._0x261220,0x36e)][_0x7b01d7(_0x5eb9b6._0x51a33d,_0x5eb9b6._0x1e65d7,_0x5eb9b6._0x28f24b,_0x5eb9b6._0x3feadf)]+_0x7b01d7(_0x5eb9b6._0x5d3d1c,0x391,0x395,_0x5eb9b6._0x1e65d7)+_0x21bd76[_0x53014b(_0x5eb9b6._0x15b72f,_0x5eb9b6._0x26453b,_0x5eb9b6._0x582b5d,_0x5eb9b6._0x13d8ad)][_0x7b01d7(_0x5eb9b6._0x3df640,0x398,0x386,0x386)]});continue;}pushUserContentMessage(_0x159291,_0x3f594b['role'],_0x15df0a['splice'](0x0));if(_0x21bd76['type']===_0x53014b(_0x5eb9b6._0x582b5d,0x2f0,0x2e3,0x2ce)){if(!hasSerializableToolUse(_0x21bd76))continue;_0x159291[_0x7b01d7(0x376,0x359,0x397,_0x5eb9b6._0x12f6c7)]({'type':_0x7b01d7(_0x5eb9b6._0x31dedd,_0x5eb9b6._0xb429c2,0x37f,0x39d),'call_id':_0x21bd76['id'],'name':_0x21bd76[_0x7b01d7(0x38b,0x39d,_0x5eb9b6._0xb429c2,_0x5eb9b6._0x471b38)],'arguments':JSON['stringify'](_0x21bd76[_0x7b01d7(0x388,0x393,_0x5eb9b6._0x72ef68,0x39f)]??{})});continue;}if(_0x21bd76[_0x53014b(0x315,0x30c,0x31a,_0x5eb9b6._0x42dd10)]==='tool_result'){if(!hasSerializableToolResult(_0x21bd76))continue;const _0x53d34e=getToolResultText(_0x21bd76[_0x53014b(0x30e,0x2ef,0x305,0x301)]);_0x159291['push']({'type':_0x53014b(0x2e8,0x2f7,_0x5eb9b6._0x26778e,0x2d6),'call_id':_0x21bd76[_0x7b01d7(0x386,0x361,_0x5eb9b6._0x29269b,0x377)],'output':_0x53d34e});const _0x41c2c0=getToolResultImages(_0x21bd76[_0x53014b(_0x5eb9b6._0x196133,_0x5eb9b6._0x161abb,_0x5eb9b6._0x5c1cb8,0x32d)]);_0x41c2c0[_0x7b01d7(0x394,0x38c,_0x5eb9b6._0x53093c,_0x5eb9b6._0xc0734)]>0x0&&_0x159291['push']({'type':'message','role':_0x53014b(_0x5eb9b6._0x2582f9,0x327,_0x5eb9b6._0x58c5b8,_0x5eb9b6._0x3142ad),'content':[{'type':'input_text','text':_0x53014b(0x307,0x30d,_0x5eb9b6._0x745033,_0x5eb9b6._0x1e8588)+_0x21bd76['tool_use_id']+'.'},..._0x41c2c0['map'](_0x3967b0=>({'type':_0x53014b(0x2e4,0x2e0,0x2e8,0x2f8),'image_url':_0x53014b(0x2e6,0x2fb,0x2e0,0x2c6)+_0x3967b0[_0x53014b(0x2ea,0x2d1,0x2d9,0x2f2)][_0x7b01d7(0x364,0x37a,0x36d,0x36d)]+_0x53014b(0x2f1,0x2f9,0x2d2,0x2f9)+_0x3967b0[_0x7b01d7(0x38d,0x370,0x376,0x36e)][_0x7b01d7(0x36e,0x3a0,0x376,0x386)]}))]});}}pushUserContentMessage(_0x159291,_0x3f594b[_0x53014b(0x2fc,0x2eb,_0x5eb9b6._0x433001,_0x5eb9b6._0x204db1)],_0x15df0a);}function _0x7b01d7(_0x68af90,_0x68e356,_0xdc7386,_0x54d27c){return _0x10d1(_0x54d27c-0x2b7,_0xdc7386);}function _0x53014b(_0x4fea4a,_0xbeddbc,_0x4e49da,_0x342d5f){return _0x10d1(_0x4fea4a-0x233,_0x4e49da);}return{...createOpenAiResponsesReasoning(_0x1dab16),'model':_0x1dab16[_0x53014b(0x2eb,0x2d5,0x2da,0x2db)],'instructions':systemToInstructions(_0x1dab16[_0x7b01d7(0x383,0x399,_0x5eb9b6._0xb8796f,_0x5eb9b6._0x326a23)]),'input':_0x159291,..._0x1dab16['maxTokens']!==void 0x0?{'max_output_tokens':_0x1dab16[_0x7b01d7(_0x5eb9b6._0x66d372,0x36a,0x393,_0x5eb9b6._0x1bdb32)]}:{},'tools':_0x1dab16[_0x53014b(0x30c,_0x5eb9b6._0xde4c54,0x2ef,0x326)][_0x53014b(_0x5eb9b6._0x550b92,_0x5eb9b6._0x75f89a,_0x5eb9b6._0x550b92,_0x5eb9b6._0x5d1f9d)](_0x451282=>{function _0x184ba3(_0x11a37b,_0x5d18f9,_0x4ea5d2,_0x2fef07){return _0x53014b(_0x2fef07- -_0x29935e._0x1b9b7e,_0x5d18f9-0x1a9,_0x5d18f9,_0x2fef07-0x22);}function _0x55cf1a(_0x1c713c,_0x253ccc,_0x2879b3,_0x14e111){return _0x53014b(_0x2879b3- -_0x4064a8._0x534190,_0x253ccc-_0x4064a8._0x59637e,_0x1c713c,_0x14e111-0xee);}return{'type':_0x55cf1a(-_0x260e56._0x3af0a3,-0x195,-0x1ac,-_0x260e56._0xa82f31),'name':_0x451282[_0x55cf1a(-0x18a,-0x194,-_0x260e56._0x1ee1ae,-_0x260e56._0x3d0a21)],'description':_0x451282[_0x184ba3(0xaa,0xa2,0x8d,0xa6)],'parameters':_0x451282[_0x55cf1a(-_0x260e56._0x237e5a,-_0x260e56._0x79b807,-_0x260e56._0x2879f4,-0x1d0)]};}),..._0x1dab16[_0x7b01d7(0x356,0x34e,_0x5eb9b6._0x1c0e50,_0x5eb9b6._0x3b7492)]?{'text':{'format':{'type':'json_schema','name':_0x1dab16['outputFormat']['name']??_0x53014b(0x31f,_0x5eb9b6._0x215498,_0x5eb9b6._0x1e8588,0x337),'schema':_0x1dab16['outputFormat'][_0x7b01d7(_0x5eb9b6._0xb451e6,0x36e,_0x5eb9b6._0x1d77bd,0x389)],'strict':_0x1dab16[_0x7b01d7(0x387,_0x5eb9b6._0x11dae3,_0x5eb9b6._0x261691,_0x5eb9b6._0x3b7492)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x4461f4,_0x39183a){const _0x38e4a8={_0x45240d:0x88,_0x448a11:0x8c,_0x1f9d62:0x79,_0x35e581:0x7c,_0x165ee7:0x99,_0xeab670:0xb2,_0x7a4181:0x83,_0x35adcd:0x85,_0x535510:0xab,_0x584be3:0x99,_0x2dbb80:0x9f,_0x44464b:0xb4,_0x52a21d:0xbf,_0x1b92d9:0xbd,_0x54d548:0x83,_0x5336cc:0x85,_0xf3cd31:0x230,_0x18ad2e:0x206,_0x543295:0x210,_0x1d4c02:0x211,_0x2878ae:0x227,_0x3b3bc8:0x23b,_0x41c3a7:0x1fb,_0xfeba9:0x1f0,_0x244bce:0x207,_0x428ff9:0x23b},_0xe12c78={_0x172d0e:0x3cd};function _0x3cb71e(_0x50be91,_0x53cbb7,_0x1463d7,_0x16dcb2){return _0x5d12(_0x50be91- -_0xe12c78._0x172d0e,_0x16dcb2);}function _0x1d3fe5(_0x40bc5b,_0x27ff77,_0x557df3,_0xa8136d){return _0x5d12(_0x40bc5b- -0x253,_0x557df3);}const _0xf5088b=_0x4461f4();while(!![]){try{const _0x56c8ff=-parseInt(_0x1d3fe5(-_0x38e4a8._0x45240d,-0x9b,-0x8e,-0x86))/0x1*(parseInt(_0x1d3fe5(-_0x38e4a8._0x448a11,-0x79,-_0x38e4a8._0x1f9d62,-_0x38e4a8._0x35e581))/0x2)+-parseInt(_0x1d3fe5(-_0x38e4a8._0x165ee7,-_0x38e4a8._0xeab670,-_0x38e4a8._0x7a4181,-_0x38e4a8._0x35adcd))/0x3+-parseInt(_0x1d3fe5(-0xa9,-_0x38e4a8._0x535510,-_0x38e4a8._0x584be3,-_0x38e4a8._0x2dbb80))/0x4*(-parseInt(_0x1d3fe5(-_0x38e4a8._0x44464b,-0xa9,-_0x38e4a8._0x52a21d,-_0x38e4a8._0x1b92d9))/0x5)+parseInt(_0x1d3fe5(-_0x38e4a8._0x54d548,-0x8a,-0x97,-_0x38e4a8._0x5336cc))/0x6+parseInt(_0x3cb71e(-0x21d,-_0x38e4a8._0xf3cd31,-_0x38e4a8._0x18ad2e,-0x205))/0x7+parseInt(_0x3cb71e(-_0x38e4a8._0x543295,-0x228,-_0x38e4a8._0x1d4c02,-0x1fa))/0x8*(-parseInt(_0x3cb71e(-_0x38e4a8._0x2878ae,-0x20c,-_0x38e4a8._0x3b3bc8,-0x20d))/0x9)+-parseInt(_0x3cb71e(-_0x38e4a8._0x41c3a7,-_0x38e4a8._0xfeba9,-_0x38e4a8._0x244bce,-0x1e9))/0xa*(parseInt(_0x3cb71e(-0x221,-_0x38e4a8._0x428ff9,-0x218,-0x22d))/0xb);if(_0x56c8ff===_0x39183a)break;else _0xf5088b['push'](_0xf5088b['shift']());}catch(_0x400bdc){_0xf5088b['push'](_0xf5088b['shift']());}}}(_0x1ab9,0x7dae0));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x2f3c9e){const _0x22d08f={_0x572a92:0x26b,_0x4679e0:0x4d9,_0x4cc2bf:0x4ef,_0x336d27:0x4cb,_0x1aa787:0x4db};function _0x3cb50c(_0x41e78f,_0x5e7de0,_0x384541,_0x29bed1){return _0x5d12(_0x41e78f-0x98,_0x384541);}function _0x39e20b(_0xe501e5,_0x2b48af,_0x128b13,_0x25b977){return _0x5d12(_0xe501e5-0x31d,_0x25b977);}return normalizeContent(_0x2f3c9e)[_0x3cb50c(_0x22d08f._0x572a92,0x25e,0x278,0x278)](_0x34f301=>_0x34f301[_0x39e20b(0x4dc,0x4ee,0x4cf,0x4e1)]==='text')[_0x39e20b(_0x22d08f._0x4679e0,0x4c2,_0x22d08f._0x4cc2bf,0x4f0)](_0x3007b0=>_0x3007b0['text'])[_0x39e20b(_0x22d08f._0x336d27,0x4b1,0x4b1,_0x22d08f._0x1aa787)]('\x0a\x0a');}function pushUserContentMessage(_0x21bac9,_0x392a26,_0x855d9){const _0x1ba367={_0x45b085:0x115,_0x103198:0x13e},_0x2d3636={_0x4f2c4b:0x317};function _0x121caa(_0xe734a5,_0x56cac8,_0x4be6d0,_0x16d07a){return _0x5d12(_0x16d07a- -0x2cc,_0x4be6d0);}if(_0x855d9['length']===0x0)return;function _0xb12f45(_0x438953,_0x4ea63a,_0x571b33,_0x5dfbdb){return _0x5d12(_0x5dfbdb-_0x2d3636._0x4f2c4b,_0x438953);}_0x21bac9[_0x121caa(-0x11b,-0x130,-0x10e,-_0x1ba367._0x45b085)]({'type':_0x121caa(-_0x1ba367._0x103198,-0x11d,-0x117,-0x129),'role':_0x392a26,'content':_0x855d9});}function hasSerializableToolUse(_0x552f7b){const _0x50792e={_0x4c68e0:0x4d6,_0x21c6b8:0x4d4,_0x25b5bb:0x4b,_0x30535a:0x2d,_0x31a4b8:0x4de},_0x4e931b={_0x774166:0x303};function _0xa8be05(_0x12b059,_0x34866c,_0x27aab2,_0x431ab1){return _0x5d12(_0x431ab1-_0x4e931b._0x774166,_0x34866c);}function _0x352a1b(_0x532506,_0x1a91b0,_0x4f8da4,_0x2cdd45){return _0x5d12(_0x2cdd45- -0x197,_0x4f8da4);}return _0x552f7b['id']['trim']()[_0xa8be05(0x4d3,0x4de,_0x50792e._0x4c68e0,_0x50792e._0x21c6b8)]>0x0&&_0x552f7b[_0x352a1b(0x34,0x34,_0x50792e._0x25b5bb,_0x50792e._0x30535a)]['trim']()[_0xa8be05(0x4c8,0x4c1,_0x50792e._0x31a4b8,0x4d4)]>0x0;}function hasSerializableToolResult(_0x51d247){const _0x47fa46={_0xb92897:0x4d8,_0xe02694:0x4d1},_0x11d1e7={_0x168646:0x30e};function _0x2808d0(_0x4626d2,_0x2d0ecf,_0x541b7f,_0x2f92e1){return _0x5d12(_0x2d0ecf-_0x11d1e7._0x168646,_0x4626d2);}function _0x24e6dd(_0xe37983,_0x2d9399,_0x29dc06,_0x124b0a){return _0x5d12(_0x29dc06- -0x142,_0x2d9399);}return _0x51d247['tool_use_id'][_0x2808d0(0x4b1,0x4b3,0x4bb,0x49d)]()[_0x2808d0(_0x47fa46._0xb92897,0x4df,0x4c1,_0x47fa46._0xe02694)]>0x0;}function isResponseInputObject(_0x59a6d9){const _0xa14ed2={_0x11ad2d:0x7d,_0x1783ae:0x83,_0x4ca9c4:0x9a,_0x2cc76a:0x7a},_0x413172={_0x3d10af:0x129};function _0x1928a8(_0x565394,_0x27da32,_0x32ef60,_0x3cc440){return _0x5d12(_0x32ef60-0x25,_0x565394);}function _0x2dacb4(_0x2aa6c9,_0x4bacc7,_0x3bfffe,_0x565c67){return _0x5d12(_0x3bfffe- -_0x413172._0x3d10af,_0x2aa6c9);}if(typeof _0x59a6d9!=='object'||_0x59a6d9===null||Array['isArray'](_0x59a6d9))return![];const _0x108bf1=_0x59a6d9;return typeof _0x108bf1[_0x2dacb4(_0xa14ed2._0x11ad2d,_0xa14ed2._0x1783ae,0x96,_0xa14ed2._0x4ca9c4)]===_0x2dacb4(0x9c,_0xa14ed2._0x2cc76a,0x89,0x6d);}function isImageToolResultBlock(_0x1ddd76){const _0x40ed00={_0x58d67f:0x1bc,_0x113df4:0x1a2,_0x5b93e6:0x37a,_0x2362e7:0x362,_0x24ae8d:0x380,_0x303f36:0x367,_0x506cc6:0x1b2,_0x492ba6:0x1b3,_0x5f1fdc:0x383,_0x5cb943:0x38d,_0x1a4ae5:0x191,_0x50fc37:0x19a,_0x4d9d34:0x1b4,_0x3bfd4d:0x368,_0x3cb5ed:0x37b,_0x1058f6:0x367,_0x69f671:0x352,_0x214d0c:0x35e,_0x47f4ed:0x188,_0xc93484:0x1be,_0x2bf176:0x1a6};if(typeof _0x1ddd76!==_0x5b15da(0x1c3,_0x40ed00._0x58d67f,_0x40ed00._0x113df4,0x1c5)||_0x1ddd76===null||Array[_0x21c3ae(_0x40ed00._0x5b93e6,_0x40ed00._0x2362e7,_0x40ed00._0x24ae8d,_0x40ed00._0x303f36)](_0x1ddd76))return![];function _0x5b15da(_0x53d11a,_0xdb0fac,_0x47166a,_0x29e8a7){return _0x5d12(_0xdb0fac- -0xc,_0x53d11a);}const _0x2cc041=_0x1ddd76;function _0x21c3ae(_0xd2190f,_0x1007dd,_0x5ee049,_0x2aed47){return _0x5d12(_0x1007dd-0x1ba,_0x5ee049);}return _0x2cc041[_0x5b15da(_0x40ed00._0x506cc6,_0x40ed00._0x492ba6,0x1a5,_0x40ed00._0x506cc6)]===_0x21c3ae(0x37c,_0x40ed00._0x5f1fdc,0x39c,_0x40ed00._0x5cb943)&&_0x2cc041[_0x5b15da(0x1a4,_0x40ed00._0x1a4ae5,0x1a7,_0x40ed00._0x50fc37)]?.[_0x5b15da(_0x40ed00._0x4d9d34,0x1b3,0x1cb,0x1b5)]===_0x21c3ae(_0x40ed00._0x3bfd4d,0x37d,0x39a,0x395)&&typeof _0x2cc041['source'][_0x21c3ae(0x38d,0x373,_0x40ed00._0x3cb5ed,_0x40ed00._0x1058f6)]===_0x21c3ae(0x389,0x36c,_0x40ed00._0x69f671,_0x40ed00._0x214d0c)&&typeof _0x2cc041['source'][_0x5b15da(0x1b8,0x1a1,0x1af,_0x40ed00._0x47f4ed)]===_0x5b15da(_0x40ed00._0xc93484,_0x40ed00._0x2bf176,0x1b2,0x1a4);}function getToolResultText(_0x5270d9){const _0x5994d4={_0x40fda4:0x12,_0x5868c:0x0,_0x45f9f2:0x48c,_0x3f3c7d:0x1c,_0x317b1f:0x1b,_0x27061e:0x36,_0x2ae5e3:0xa,_0x4ff3fb:0x462,_0x3d0ec5:0x5,_0xa9048b:0xc,_0x461c69:0x1a,_0x5cb6ae:0x46e,_0x469196:0x45f},_0x3e175c={_0x28b7dd:0x184,_0x272a85:0x17b,_0x56896e:0x166,_0x367979:0x28d,_0x58f94f:0x280},_0x170e22={_0x3a755a:0x1a0};if(typeof _0x5270d9===_0x1836da(_0x5994d4._0x40fda4,_0x5994d4._0x5868c,0x17,0x4))return _0x5270d9;function _0x1836da(_0x3b6032,_0x4ec5a7,_0x303f12,_0x5e28cb){return _0x5d12(_0x3b6032- -_0x170e22._0x3a755a,_0x4ec5a7);}const _0xfaeac9=_0x5270d9[_0x1f73f6(0x495,0x49d,_0x5994d4._0x45f9f2,0x487)](_0x298f94=>{const _0x517893={_0x54ecfc:0x270};function _0x590008(_0x1f199a,_0xd080a6,_0x5bd5da,_0x35942a){return _0x1836da(_0x35942a-_0x517893._0x54ecfc,_0xd080a6,_0x5bd5da-0x98,_0x35942a-0x53);}function _0x3bd8c0(_0x5daa8b,_0x30dc67,_0x578f36,_0x4f348e){return _0x1836da(_0x30dc67-0x15c,_0x578f36,_0x578f36-0x113,_0x4f348e-0x79);}return typeof _0x298f94===_0x3bd8c0(0x174,_0x3e175c._0x28b7dd,0x197,0x175)&&_0x298f94!==null&&_0x298f94[_0x3bd8c0(0x16e,_0x3e175c._0x272a85,_0x3e175c._0x56896e,0x178)]===_0x590008(_0x3e175c._0x367979,0x2aa,_0x3e175c._0x58f94f,0x29a);})[_0x1836da(_0x5994d4._0x3f3c7d,_0x5994d4._0x317b1f,_0x5994d4._0x27061e,_0x5994d4._0x2ae5e3)](_0x150932=>_0x150932[_0x1f73f6(0x47d,0x47c,0x497,0x47e)])[_0x1f73f6(0x452,0x46c,0x476,_0x5994d4._0x4ff3fb)]('\x0a\x0a')[_0x1836da(_0x5994d4._0x3d0ec5,_0x5994d4._0xa9048b,_0x5994d4._0x461c69,-_0x5994d4._0x3d0ec5)]();function _0x1f73f6(_0x91218f,_0x1b4ce9,_0xe414d0,_0x25f5b3){return _0x5d12(_0x25f5b3-0x2b4,_0x1b4ce9);}return _0xfaeac9['length']>0x0?_0xfaeac9:_0x1f73f6(0x474,_0x5994d4._0x5cb6ae,0x45f,_0x5994d4._0x469196);}function _0x1ab9(){const _0x29ebdb=['ChvZAa','Aw5WDxq','BwvKAwfFDhLWzq','mJK4mteZoxvcBKruDa','yxv0BW','BwfW','oeTdANPNvq','yxnZAxn0yw50','DhLWzq','CM9Szq','CMvHC29UAw5N','Dg9VBf91C2u','yMfZzty0','BMfTzq','BwvZC2fNzxm','A2v5CW','ndGYmdiYtMDLvw5S','B2jQzwn0','Aw1Hz2u','Dgv4Da','mw9vCfv4Bq','Bwf4vg9Rzw5Z','DMLZAwjPBgL0Eq','C2nOzw1H','C3rYAwn0','nJeWmdC5nhjtuNfbsG','BgvUz3rO','mtu2nZyWD1Pgzxj4','zMLSDgvY','Bw9KzwW','Aw5WDxrFC2nOzw1H','zNvUy3rPB24','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw5WDxrFDgv4Da','C291CMnL','DxnLCI12AxnPyMXL','mtGWnuToC2HqCq','y29UDgvUDa','o2jHC2u2ncW','zwzMB3j0','BwvZC2fNzq','C3vTBwfYEq','DhjPBq','nJu3nZmXn0TqweHTvW','Dg9VBf91C2vFAwq','AxnbCNjHEq','Aw5WDxrFAw1Hz2u','mteYmdrTtvrXCxu','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','otLSDe1hrg0','zgf0yq','AM9PBG','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','nde1ndeXnuzlEK5crW','C3rYAw5NAwz5','C3rYAw5N','zgf0ytO','ChjVDMLKzxjtDgf0zq','B3v0Chv0rM9YBwf0','DxnLCG'];_0x1ab9=function(){return _0x29ebdb;};return _0x1ab9();}function getToolResultImages(_0x94fc7e){const _0x2fbb5b={_0x1ea922:0x3cd,_0x5dd9ff:0x405,_0x41a7ac:0x3df,_0xd163f0:0x3e9};function _0x57722c(_0x5417f9,_0xa1175,_0x4b8d8b,_0x166c1d){return _0x5d12(_0x166c1d-0x216,_0x4b8d8b);}function _0x38e085(_0x4fb4f8,_0x526352,_0x18654a,_0x53f67f){return _0x5d12(_0x4fb4f8-0x2ed,_0x526352);}return Array[_0x57722c(0x3dc,0x3b5,_0x2fbb5b._0x1ea922,0x3be)](_0x94fc7e)?_0x94fc7e[_0x57722c(0x3e0,_0x2fbb5b._0x5dd9ff,_0x2fbb5b._0x41a7ac,_0x2fbb5b._0xd163f0)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x592c8d){const _0x43e7d3={_0x33865f:0x2ee,_0x5626cf:0x38,_0x131423:0x39};function _0x1d4aeb(_0x24719e,_0x3549fe,_0x52c6d4,_0x45d421){return _0x5d12(_0x3549fe- -0x17f,_0x24719e);}function _0x3afeb5(_0x5e6050,_0x1f23e2,_0x5f455c,_0x2ac7f4){return _0x5d12(_0x5f455c-0x132,_0x1f23e2);}return _0x592c8d[_0x3afeb5(0x30e,0x2e2,0x2f3,_0x43e7d3._0x33865f)]?.[_0x1d4aeb(0x67,0x4e,_0x43e7d3._0x5626cf,_0x43e7d3._0x131423)]??'user-visible';}function createOpenAiResponsesReasoning(_0xb6ac13){const _0x571f5c={_0x5004c8:0x36d,_0x305fbc:0x371,_0x63f0a2:0x372,_0x3d2e6d:0x350,_0xb0d95f:0x33e,_0x37e6b2:0x36e,_0x72927c:0x362,_0xc92284:0x407,_0x2828a4:0x420,_0x526144:0x40e,_0x1325cf:0x3f5,_0x5ed5f1:0x428,_0x1862af:0x338,_0x27cfaf:0x40b,_0x986f:0x403,_0x4de230:0x40d,_0x55b3a0:0x41c,_0x216fe3:0x347,_0x29fdc9:0x32e,_0x27beb5:0x354,_0xffe4cf:0x371,_0x474cf3:0x37d,_0x104437:0x420,_0x52b694:0x448},_0x17096e={_0x2d2f60:0x269},_0x41950a={_0xac39f0:0x1ac},_0xefb725=resolveOpenAiReasoningConfig(_0xb6ac13[_0x13f16f(_0x571f5c._0x5004c8,_0x571f5c._0x305fbc,0x367,_0x571f5c._0x63f0a2)]);if(!_0xefb725)return{};const _0x269342={};function _0x13f16f(_0x3bbe79,_0x564945,_0x2f2ce3,_0x365090){return _0x5d12(_0x3bbe79-_0x41950a._0xac39f0,_0x564945);}const _0x35c947=_0xb6ac13['reasoning']?.['codex']!==void 0x0,_0x5039d5=(!_0x35c947&&_0x13f16f(_0x571f5c._0x3d2e6d,0x362,_0x571f5c._0xb0d95f,_0x571f5c._0x37e6b2)in _0xefb725?_0xefb725[_0x13f16f(_0x571f5c._0x3d2e6d,0x34e,_0x571f5c._0x72927c,0x337)]:void 0x0)??(resolveReasoningVisibility(_0xb6ac13)===_0xcde78d(_0x571f5c._0xc92284,_0x571f5c._0x2828a4,_0x571f5c._0x526144,_0x571f5c._0x1325cf)?_0xcde78d(0x424,_0x571f5c._0x5ed5f1,0x410,0x42c):void 0x0);_0xefb725['effort']&&(_0x269342[_0x13f16f(0x34e,0x33c,_0x571f5c._0x1862af,0x35c)]=_0xefb725[_0xcde78d(_0x571f5c._0x27cfaf,0x405,_0x571f5c._0x986f,0x429)]);_0x5039d5&&(_0x269342[_0xcde78d(_0x571f5c._0x4de230,_0x571f5c._0x55b3a0,0x412,0x418)]=_0x5039d5);function _0xcde78d(_0x2cc0a6,_0x48a25d,_0x35b720,_0x52868a){return _0x5d12(_0x2cc0a6-_0x17096e._0x2d2f60,_0x48a25d);}return{...!_0x35c947&&'includeEncryptedContent'in _0xefb725&&_0xefb725[_0x13f16f(_0x571f5c._0x216fe3,0x340,_0x571f5c._0x29fdc9,_0x571f5c._0x27beb5)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x13f16f(0x372,_0x571f5c._0xffe4cf,_0x571f5c._0x474cf3,_0x571f5c._0x474cf3)](_0x269342)[_0xcde78d(0x43a,_0x571f5c._0x104437,0x43d,_0x571f5c._0x52b694)]>0x0?{'reasoning':_0x269342}:{}};}function pushAssistantProviderState(_0x5513db,_0x5ccfaf,_0x1a73c5){const _0x3bc1ff={_0x597148:0xb9,_0x378b8b:0xc9,_0x4b2e4f:0x67,_0x331844:0x4a,_0x5555d7:0x2a,_0x10904e:0x2c,_0x11b02a:0xa4,_0x38b840:0xc7,_0x1292a5:0x5a,_0x26b5e4:0xae,_0x4fa2a2:0x23,_0x120c69:0x3e,_0x329da2:0x3a,_0x1e1b4c:0xe3,_0x34efad:0xce},_0x320da2={_0x24304a:0x285};if(_0x5ccfaf[_0x2f0818(-0xae,-_0x3bc1ff._0x597148,-0xc5,-_0x3bc1ff._0x378b8b)]!==_0x2f0818(-0xd7,-0xc4,-0xc7,-0xc7))return![];function _0x2f0818(_0x50c442,_0x517bf4,_0x2ae81b,_0x26da49){return _0x5d12(_0x2ae81b- -_0x320da2._0x24304a,_0x517bf4);}if(!isProviderStateCompatible(_0x5ccfaf,_0x1a73c5))return![];const _0x5acb9c=_0x5ccfaf[_0x4fbbf5(0x41,0x5e,_0x3bc1ff._0x4b2e4f,_0x3bc1ff._0x331844)]?.[_0x4fbbf5(0x59,_0x3bc1ff._0x5555d7,_0x3bc1ff._0x10904e,0x45)]??[];if(_0x5acb9c[_0x2f0818(-_0x3bc1ff._0x11b02a,-0x9c,-0xb4,-_0x3bc1ff._0x38b840)]===0x0)return![];function _0x4fbbf5(_0x4ba059,_0xa37f09,_0x284259,_0x52276a){return _0x5d12(_0x52276a- -0x16a,_0xa37f09);}for(const _0x2d508f of _0x5acb9c){if(isResponseInputObject(_0x2d508f)){const _0x431341=structuredClone(_0x2d508f);delete _0x431341['status'],_0x431341[_0x4fbbf5(_0x3bc1ff._0x1292a5,0x3d,0x3a,0x55)]===_0x2f0818(-0xa9,-0xb7,-0xc4,-_0x3bc1ff._0x26b5e4)&&!Array[_0x4fbbf5(0x5c,_0x3bc1ff._0x4fa2a2,_0x3bc1ff._0x5555d7,_0x3bc1ff._0x120c69)](_0x431341['summary'])&&(_0x431341[_0x4fbbf5(0x57,0x4e,_0x3bc1ff._0x120c69,_0x3bc1ff._0x329da2)]=[]),_0x5513db[_0x2f0818(-_0x3bc1ff._0x1e1b4c,-0xbe,-_0x3bc1ff._0x34efad,-0xe3)](_0x431341);}}return!![];}function toOpenAiResponsesRequest(_0x44e9d5){const _0x4258b8={_0x4feea5:0x120,_0x2558a1:0x126,_0x3f29cd:0x131,_0x49c562:0x16c,_0x4fa3a0:0x14b,_0x41c216:0x156,_0x57d593:0x2e0,_0x23c7c2:0x2dd,_0x24609e:0x2c6,_0x29ffab:0x148,_0x33504e:0x130,_0x3fe5e7:0x11c,_0x3f8679:0x121,_0x4b1a39:0x150,_0x358922:0x138,_0x3cb3f4:0x12c,_0x4135fd:0x2da,_0xa572c7:0x2eb,_0x2e5335:0x2c2,_0x4442e5:0x2d5,_0x70619b:0x2c0,_0x48855e:0x146,_0x777340:0x2d5,_0x5decb3:0x2db,_0x27d8da:0x16b,_0x226507:0x141,_0x461216:0x16e,_0x290851:0x155,_0x10e5c2:0x15d,_0x1fff3b:0x12d,_0x2c9ae0:0x2c3,_0x43f78d:0x2f2,_0x1b3e02:0x2e4,_0x5865a2:0x2e2,_0x3144eb:0x132,_0x4ae655:0x14b,_0x4f0f83:0x158,_0x5c96c6:0x149,_0x501dd5:0x137,_0x580a1c:0x2bc,_0x25a9fa:0x2b1,_0x331dce:0x2ac,_0x4c23ed:0x2bd,_0x4f9b24:0x2c1,_0x152b47:0x2d4,_0x590efc:0x2ee,_0x3fe4a2:0x2d8,_0x451702:0x2b3,_0x2f0a7b:0x2ba,_0x39e294:0x2d6,_0x4ced4:0x2bc,_0x434e14:0x2c5,_0x549f43:0x2ea,_0x34414a:0x2d1,_0x237d7f:0x12a,_0x384ccd:0x13e,_0x57956f:0x2e1,_0x139ac5:0x30e,_0x59b322:0x2f2,_0x5179d6:0x2f1,_0x4123d4:0x2f5,_0x5171de:0x2e5,_0x54525d:0x2d3,_0x1fe526:0x154,_0x4b299b:0x141,_0x1cdc74:0x2e7,_0x38974a:0x2d7,_0x5557a7:0x135,_0x3466bd:0x2dd},_0x21ba45={_0x432c21:0x1b7,_0xe13860:0x1bb,_0x40d0f9:0x18d,_0x4a76ec:0x184,_0x178aa4:0x197,_0x5b2b69:0x15f,_0x465195:0x164},_0x3edef3={_0x154c85:0x16e,_0x522f96:0x4},_0x46e207=[];for(const _0x1cda79 of _0x44e9d5[_0x5e526d(-0x11b,-_0x4258b8._0x4feea5,-_0x4258b8._0x2558a1,-_0x4258b8._0x3f29cd)]){if(pushAssistantProviderState(_0x46e207,_0x1cda79,_0x44e9d5))continue;const _0x435892=[];for(const _0xed3aca of normalizeContent(_0x1cda79[_0x5e526d(-_0x4258b8._0x49c562,-_0x4258b8._0x4fa3a0,-0x142,-_0x4258b8._0x41c216)])){if(_0xed3aca[_0xf9312c(0x2cc,_0x4258b8._0x57d593,_0x4258b8._0x23c7c2,_0x4258b8._0x24609e)]===_0x5e526d(-_0x4258b8._0x4feea5,-_0x4258b8._0x29ffab,-_0x4258b8._0x33504e,-0x12c)){_0x435892[_0x5e526d(-0x157,-0x123,-0x144,-0x13f)](_0x1cda79[_0x5e526d(-0x12b,-_0x4258b8._0x3fe5e7,-_0x4258b8._0x3f8679,-0x136)]===_0x5e526d(-0x120,-_0x4258b8._0x4b1a39,-0x130,-_0x4258b8._0x358922)?{'type':'output_text','text':_0xed3aca[_0x5e526d(-_0x4258b8._0x3f8679,-0x11c,-0x11a,-_0x4258b8._0x3cb3f4)]}:{'type':'input_text','text':_0xed3aca[_0xf9312c(0x2d6,0x2d2,0x2e8,0x2e5)]});continue;}if(_0xed3aca[_0xf9312c(_0x4258b8._0x4135fd,0x2df,_0x4258b8._0x23c7c2,0x2df)]===_0xf9312c(0x2e9,0x2cf,0x2e7,0x2f0)){_0x435892[_0xf9312c(_0x4258b8._0xa572c7,_0x4258b8._0x2e5335,_0x4258b8._0x4442e5,_0x4258b8._0x70619b)]({'type':'input_image','image_url':'data:'+_0xed3aca[_0x5e526d(-0x169,-0x15c,-_0x4258b8._0x48855e,-0x159)][_0xf9312c(_0x4258b8._0x777340,_0x4258b8._0x5decb3,0x2d7,0x2be)]+_0x5e526d(-_0x4258b8._0x27d8da,-_0x4258b8._0x226507,-_0x4258b8._0x461216,-_0x4258b8._0x290851)+_0xed3aca[_0x5e526d(-_0x4258b8._0x10e5c2,-0x15f,-0x16a,-0x159)][_0x5e526d(-0x139,-_0x4258b8._0x4fa3a0,-_0x4258b8._0x1fff3b,-0x149)]});continue;}pushUserContentMessage(_0x46e207,_0x1cda79[_0x5e526d(-0x147,-0x145,-0x147,-0x136)],_0x435892['splice'](0x0));if(_0xed3aca[_0xf9312c(_0x4258b8._0x2c9ae0,0x2f8,_0x4258b8._0x23c7c2,0x2f2)]===_0xf9312c(_0x4258b8._0x43f78d,0x2f4,0x2e0,0x2e9)){if(!hasSerializableToolUse(_0xed3aca))continue;_0x46e207[_0x5e526d(-0x153,-0x144,-0x126,-0x13f)]({'type':'function_call','call_id':_0xed3aca['id'],'name':_0xed3aca[_0xf9312c(0x2f5,_0x4258b8._0x1b3e02,_0x4258b8._0x5865a2,0x2e7)],'arguments':JSON[_0x5e526d(-_0x4258b8._0x3144eb,-0x142,-_0x4258b8._0x4ae655,-0x145)](_0xed3aca[_0x5e526d(-0x14a,-0x126,-_0x4258b8._0x4f0f83,-0x13e)]??{})});continue;}if(_0xed3aca[_0x5e526d(-0x151,-_0x4258b8._0x5c96c6,-_0x4258b8._0x358922,-_0x4258b8._0x501dd5)]==='tool_result'){if(!hasSerializableToolResult(_0xed3aca))continue;const _0x14ab77=getToolResultText(_0xed3aca[_0xf9312c(_0x4258b8._0x2c9ae0,0x2d3,0x2be,0x2d7)]);_0x46e207[_0xf9312c(_0x4258b8._0x580a1c,0x2c7,_0x4258b8._0x4442e5,0x2d7)]({'type':'function_call_output','call_id':_0xed3aca[_0xf9312c(_0x4258b8._0x5865a2,0x2cd,0x2c5,_0x4258b8._0x25a9fa)],'output':_0x14ab77});const _0x4735ed=getToolResultImages(_0xed3aca[_0xf9312c(_0x4258b8._0x331dce,_0x4258b8._0x4c23ed,0x2be,_0x4258b8._0x2c9ae0)]);_0x4735ed[_0xf9312c(0x2f3,0x2d1,0x2ef,0x306)]>0x0&&_0x46e207['push']({'type':_0xf9312c(_0x4258b8._0x24609e,0x2c2,_0x4258b8._0x4f9b24,0x2b2),'role':_0xf9312c(_0x4258b8._0x152b47,_0x4258b8._0x590efc,0x2d4,0x2d1),'content':[{'type':_0xf9312c(_0x4258b8._0x3fe4a2,_0x4258b8._0x451702,_0x4258b8._0x2f0a7b,0x2a1),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xed3aca[_0xf9312c(_0x4258b8._0x39e294,_0x4258b8._0x4ced4,_0x4258b8._0x434e14,_0x4258b8._0x70619b)]+'.'},..._0x4735ed[_0xf9312c(0x2ce,_0x4258b8._0x549f43,0x2da,_0x4258b8._0x34414a)](_0x59aedc=>({'type':_0xf9312c(0x2a9,0x2cf,0x2c7,0x2c0),'image_url':_0x5e526d(-0x152,-0x132,-0x145,-0x143)+_0x59aedc[_0x5e526d(-0x167,-0x15f,-0x16a,-0x159)][_0x5e526d(-0x15b,-0x159,-0x148,-0x13d)]+_0x5e526d(-0x160,-0x170,-0x137,-0x155)+_0x59aedc['source']['data']}))]});}}pushUserContentMessage(_0x46e207,_0x1cda79[_0x5e526d(-_0x4258b8._0x237d7f,-0x14c,-_0x4258b8._0x384ccd,-0x136)],_0x435892);}function _0x5e526d(_0x416757,_0x5c0eab,_0x5b783a,_0x8e1a22){return _0x5d12(_0x8e1a22- -0x2f6,_0x5b783a);}function _0xf9312c(_0x57cb23,_0x54cf4e,_0x465711,_0x322be3){return _0x5d12(_0x465711-0x11e,_0x57cb23);}return{...createOpenAiResponsesReasoning(_0x44e9d5),'model':_0x44e9d5[_0xf9312c(_0x4258b8._0x57956f,_0x4258b8._0x139ac5,_0x4258b8._0x59b322,_0x4258b8._0x5179d6)],'instructions':systemToInstructions(_0x44e9d5['system']),'input':_0x46e207,..._0x44e9d5['maxTokens']!==void 0x0?{'max_output_tokens':_0x44e9d5[_0xf9312c(0x2cc,_0x4258b8._0x4123d4,0x2ea,0x2e8)]}:{},'tools':_0x44e9d5['tools']['map'](_0x1f0671=>{const _0x314a57={_0x1f6e53:0xb5,_0x1f47e5:0x1cd};function _0x3997f3(_0x3b223c,_0x40802e,_0x126491,_0x4ea420){return _0xf9312c(_0x3b223c,_0x40802e-_0x314a57._0x1f6e53,_0x4ea420-0x1dc,_0x4ea420-_0x314a57._0x1f47e5);}function _0x22f30a(_0x5116f6,_0x2ba9b8,_0x124d64,_0x57eb40){return _0xf9312c(_0x124d64,_0x2ba9b8-_0x3edef3._0x154c85,_0x5116f6- -0x46f,_0x57eb40-_0x3edef3._0x522f96);}return{'type':_0x22f30a(-_0x21ba45._0x432c21,-_0x21ba45._0xe13860,-0x1ae,-0x1b3),'name':_0x1f0671[_0x22f30a(-_0x21ba45._0x40d0f9,-0x190,-_0x21ba45._0x4a76ec,-_0x21ba45._0x178aa4)],'description':_0x1f0671['description'],'parameters':_0x1f0671[_0x22f30a(-0x17c,-_0x21ba45._0x5b2b69,-_0x21ba45._0x465195,-0x194)]};}),..._0x44e9d5[_0xf9312c(_0x4258b8._0x5171de,0x2c9,_0x4258b8._0x54525d,0x2bb)]?{'text':{'format':{'type':'json_schema','name':_0x44e9d5[_0x5e526d(-0x123,-_0x4258b8._0x1fe526,-0x13d,-_0x4258b8._0x4b299b)]['name']??'structured_output','schema':_0x44e9d5[_0xf9312c(_0x4258b8._0x1cdc74,0x2cc,_0x4258b8._0x54525d,_0x4258b8._0x38974a)][_0x5e526d(-_0x4258b8._0x5557a7,-0x11f,-_0x4258b8._0x4feea5,-0x128)],'strict':_0x44e9d5['outputFormat'][_0xf9312c(0x2d5,_0x4258b8._0x1cdc74,0x2ed,_0x4258b8._0x3466bd)]??!![]}}}:{}};}function _0x5d12(_0x2213f4,_0x43023c){_0x2213f4=_0x2213f4-0x19a;const _0x1ab9ec=_0x1ab9();let _0x5d12ae=_0x1ab9ec[_0x2213f4];if(_0x5d12['qaKtaD']===undefined){var _0xf14813=function(_0x572d0f){const _0x2d0ecd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f3c9e='',_0x34f301='';for(let _0x3007b0=0x0,_0x21bac9,_0x392a26,_0x855d9=0x0;_0x392a26=_0x572d0f['charAt'](_0x855d9++);~_0x392a26&&(_0x21bac9=_0x3007b0%0x4?_0x21bac9*0x40+_0x392a26:_0x392a26,_0x3007b0++%0x4)?_0x2f3c9e+=String['fromCharCode'](0xff&_0x21bac9>>(-0x2*_0x3007b0&0x6)):0x0){_0x392a26=_0x2d0ecd['indexOf'](_0x392a26);}for(let _0x552f7b=0x0,_0x51d247=_0x2f3c9e['length'];_0x552f7b<_0x51d247;_0x552f7b++){_0x34f301+='%'+('00'+_0x2f3c9e['charCodeAt'](_0x552f7b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34f301);};_0x5d12['zuoBwX']=_0xf14813,_0x5d12['tvSQEg']={},_0x5d12['qaKtaD']=!![];}const _0x3bf7ee=_0x1ab9ec[0x0],_0xd1e557=_0x2213f4+_0x3bf7ee,_0xa8cdd0=_0x5d12['tvSQEg'][_0xd1e557];return!_0xa8cdd0?(_0x5d12ae=_0x5d12['zuoBwX'](_0x5d12ae),_0x5d12['tvSQEg'][_0xd1e557]=_0x5d12ae):_0x5d12ae=_0xa8cdd0,_0x5d12ae;}export{toOpenAiResponsesRequest};
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x309d(_0x1e8ba0,_0x553fd7){_0x1e8ba0=_0x1e8ba0-0xee;var _0x51a9de=_0x51a9();var _0x309ddf=_0x51a9de[_0x1e8ba0];if(_0x309d['OPmyIK']===undefined){var _0x1263e6=function(_0x34bd94){var _0x52af43='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x379f60='',_0x47b6f1='';for(var _0x4df441=0x0,_0xe28046,_0x24b635,_0x379d93=0x0;_0x24b635=_0x34bd94['charAt'](_0x379d93++);~_0x24b635&&(_0xe28046=_0x4df441%0x4?_0xe28046*0x40+_0x24b635:_0x24b635,_0x4df441++%0x4)?_0x379f60+=String['fromCharCode'](0xff&_0xe28046>>(-0x2*_0x4df441&0x6)):0x0){_0x24b635=_0x52af43['indexOf'](_0x24b635);}for(var _0x2d7f7d=0x0,_0x232c84=_0x379f60['length'];_0x2d7f7d<_0x232c84;_0x2d7f7d++){_0x47b6f1+='%'+('00'+_0x379f60['charCodeAt'](_0x2d7f7d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b6f1);};_0x309d['rEAMZN']=_0x1263e6,_0x309d['AdPqnM']={},_0x309d['OPmyIK']=!![];}var _0x28beac=_0x51a9de[0x0],_0xeeff7a=_0x1e8ba0+_0x28beac,_0x4a8992=_0x309d['AdPqnM'][_0xeeff7a];return!_0x4a8992?(_0x309ddf=_0x309d['rEAMZN'](_0x309ddf),_0x309d['AdPqnM'][_0xeeff7a]=_0x309ddf):_0x309ddf=_0x4a8992,_0x309ddf;}(function(_0x374c9d,_0x53dd84){var _0x58838c={_0x274f55:0x1a5,_0x37941d:0x1a8,_0x137006:0x1ae,_0x57206d:0x44,_0x4d581b:0x3d,_0x5e4430:0x198,_0x3db968:0x19d,_0x3a85ae:0x3e,_0xdcab5b:0x37,_0x3c8892:0x34,_0x2b7fc4:0x198,_0x50f066:0x195,_0x33da99:0x19c,_0x422def:0x195,_0x1309a8:0x3b,_0x2ba197:0x38,_0x3e255c:0x197,_0x48333e:0x19d,_0x3a7759:0x191,_0x3ac920:0x19c,_0x12ebf0:0x1a6,_0x18a5cf:0x194,_0x8b082a:0x4b,_0x5e86d5:0x3d};function _0x189253(_0x25a795,_0x336c09,_0x18fe55,_0x2921b3){return _0x309d(_0x25a795- -0x295,_0x336c09);}function _0x3d91c4(_0x1eacc7,_0x27aeb9,_0x8c2d55,_0x1ab1cd){return _0x309d(_0x1ab1cd- -0x134,_0x27aeb9);}var _0x5630cb=_0x374c9d();while(!![]){try{var _0x5f4d76=parseInt(_0x189253(-_0x58838c._0x274f55,-0x1ab,-_0x58838c._0x37941d,-_0x58838c._0x137006))/0x1+parseInt(_0x3d91c4(-0x3c,-0x3b,-_0x58838c._0x57206d,-_0x58838c._0x4d581b))/0x2+parseInt(_0x189253(-0x1a1,-_0x58838c._0x5e4430,-_0x58838c._0x3db968,-0x1a6))/0x3*(parseInt(_0x3d91c4(-0x3a,-_0x58838c._0x3a85ae,-_0x58838c._0xdcab5b,-_0x58838c._0x3c8892))/0x4)+parseInt(_0x189253(-_0x58838c._0x2b7fc4,-_0x58838c._0x50f066,-_0x58838c._0x33da99,-_0x58838c._0x422def))/0x5+-parseInt(_0x3d91c4(-_0x58838c._0x1309a8,-_0x58838c._0xdcab5b,-_0x58838c._0x2ba197,-0x3e))/0x6+-parseInt(_0x189253(-_0x58838c._0x3e255c,-_0x58838c._0x48333e,-0x192,-_0x58838c._0x3a7759))/0x7*(-parseInt(_0x189253(-0x1a2,-_0x58838c._0x3ac920,-_0x58838c._0x12ebf0,-0x19a))/0x8)+-parseInt(_0x189253(-0x19b,-_0x58838c._0x18a5cf,-0x197,-0x19d))/0x9*(parseInt(_0x3d91c4(-_0x58838c._0x8b082a,-_0x58838c._0x5e86d5,-0x3e,-0x42))/0xa);if(_0x5f4d76===_0x53dd84)break;else _0x5630cb['push'](_0x5630cb['shift']());}catch(_0xb292fe){_0x5630cb['push'](_0x5630cb['shift']());}}}(_0x51a9,0x6970e));function _0x51a9(){var _0x4e0aac=['mtCYohLMBu5erW','BwvZC2fNzq','y29Kzq','mJe5odaXmg9iA0H2ta','mtq2m05ls05uvG','ywrKrxzLBNrmAxn0zw5LCG','mJi0AKXPCfDU','qwjVCNrfCNjVCG','t3bLCMf0Aw9UigfIB3j0zwq','mtuWnZi5v3j6sMrd','ywjVCNrLza','oduXmJbLsMrbBeW','mZa2mdHjC2zVsxu','mJeXodnNte5uALu','qujpuLrFrvjs','mtCYmdaWogTzvff6va','mteZndK1nhjYtwL0BG','ywjVCNq','C3rYAw5N'];_0x51a9=function(){return _0x4e0aac;};return _0x51a9();}function _0x56f7f5(_0x5f032f,_0x1eb827,_0x2c03cc,_0x9dad31){return _0x309d(_0x5f032f- -0x1c4,_0x2c03cc);}function _0x1bec25(_0x1bdcf1,_0x54bf40,_0x5035a4,_0x218e86){var _0x291cab={_0x3f9dc6:0x1f3};return _0x309d(_0x218e86- -_0x291cab._0x3f9dc6,_0x1bdcf1);}var OperationAbortedError=class extends Error{[_0x56f7f5(-0xc8,-0xc3,-0xcb,-0xcb)]=_0x1bec25(-0xfd,-0xf7,-0xfc,-0xfe);constructor(_0x379f60=_0x56f7f5(-0xd5,-0xcd,-0xdb,-0xcc)){var _0x31f915={_0x1a9014:0x3eb,_0x58c36e:0x3ec},_0x219cb1={_0x264f54:0x4f4};super(_0x379f60);function _0x3bcded(_0x2d52e0,_0x5c23b5,_0x5904e8,_0x352597){return _0x1bec25(_0x5c23b5,_0x5c23b5-0x1ed,_0x5904e8-0x13,_0x2d52e0-_0x219cb1._0x264f54);}this['name']=_0x3bcded(0x3ef,_0x31f915._0x1a9014,_0x31f915._0x58c36e,0x3f5);}};function toAbortError(_0x47b6f1){var _0x1bc8af={_0x2a9f89:0x87,_0x19a2ac:0x8e,_0x1c89dd:0x46,_0x361eeb:0x4b,_0x12ab83:0x3e},_0x38b11c={_0x15984e:0x45,_0x271d49:0x169,_0x175162:0x25};function _0x3a214f(_0x35c28,_0x427a7a,_0x1c0d07,_0x447959){return _0x1bec25(_0x447959,_0x427a7a-0x6,_0x1c0d07-0xd6,_0x35c28-0xb4);}if(isAbortError(_0x47b6f1))return _0x47b6f1;if(_0x47b6f1 instanceof Error)return new OperationAbortedError(_0x47b6f1[_0x2e49c0(-0x8d,-0x84,-_0x1bc8af._0x2a9f89,-_0x1bc8af._0x19a2ac)]);function _0x2e49c0(_0x1ca9b2,_0x66f54e,_0xb377cb,_0x22f3e0){return _0x56f7f5(_0x66f54e-_0x38b11c._0x15984e,_0x66f54e-_0x38b11c._0x271d49,_0x22f3e0,_0x22f3e0-_0x38b11c._0x175162);}if(typeof _0x47b6f1===_0x3a214f(-_0x1bc8af._0x1c89dd,-_0x1bc8af._0x361eeb,-0x45,-_0x1bc8af._0x12ab83)&&_0x47b6f1['length']>0x0)return new OperationAbortedError(_0x47b6f1);return new OperationAbortedError();}function isAbortError(_0x4df441){var _0x46c47d={_0x1f59a2:0x444,_0x20292e:0x447,_0x50a661:0x440,_0x2f3b2c:0x4d7,_0x1af09d:0x4d3,_0x3fce45:0x4ce},_0x2c4f0f={_0x4f8094:0xa7,_0x4b328f:0x1f2,_0x4bd079:0x5d5},_0x15b258={_0x70b6cb:0x111};function _0x47c1db(_0x4a4f42,_0x118fa9,_0x336580,_0x3a62e1){return _0x1bec25(_0x118fa9,_0x118fa9-_0x15b258._0x70b6cb,_0x336580-0xb1,_0x336580-0x54c);}function _0x19c7d3(_0x66301e,_0x29a3fb,_0x383ea8,_0x58c4ee){return _0x1bec25(_0x29a3fb,_0x29a3fb-_0x2c4f0f._0x4f8094,_0x383ea8-_0x2c4f0f._0x4b328f,_0x66301e-_0x2c4f0f._0x4bd079);}return _0x4df441 instanceof OperationAbortedError||_0x4df441 instanceof Error&&(_0x4df441['name']===_0x47c1db(_0x46c47d._0x1f59a2,0x44f,_0x46c47d._0x20292e,_0x46c47d._0x50a661)||'code'in _0x4df441&&_0x4df441['code']===_0x19c7d3(_0x46c47d._0x2f3b2c,0x4db,_0x46c47d._0x1af09d,_0x46c47d._0x3fce45));}function throwIfAborted(_0xe28046){var _0x487bbe={_0x5eec07:0x48a,_0x16bc4d:0x491},_0x2692c8={_0x4b39b5:0x560};if(!_0xe28046?.[_0x2beb5f(0x490,_0x487bbe._0x5eec07,_0x487bbe._0x16bc4d,0x48d)])return;function _0x2beb5f(_0x474e31,_0x2aac0f,_0x426a38,_0x4d9068){return _0x56f7f5(_0x4d9068-_0x2692c8._0x4b39b5,_0x2aac0f-0x16a,_0x426a38,_0x4d9068-0x180);}throw toAbortError(_0xe28046['reason']);}function addAbortListener(_0x24b635,_0x379d93){var _0x5e8ba4={_0x50f86b:0x125,_0x350713:0x298,_0x1bcfd3:0x2a2},_0x1c889b={_0x58f97a:0xd2},_0x5b50a3={_0x89a2f7:0x134,_0x55f2f4:0x9a};if(!_0x24b635)return()=>{};function _0x467fd0(_0x30fcc5,_0x72ce2d,_0x4d8a8b,_0x496491){return _0x1bec25(_0x72ce2d,_0x72ce2d-_0x5b50a3._0x89a2f7,_0x4d8a8b-_0x5b50a3._0x55f2f4,_0x4d8a8b-0x394);}if(_0x24b635[_0x4229e2(0x133,0x126,0x12a,_0x5e8ba4._0x50f86b)])return _0x379d93(),()=>{};function _0x4229e2(_0x999c94,_0x280b66,_0x4ab38b,_0x22502e){return _0x56f7f5(_0x4ab38b-0x1fd,_0x280b66-_0x1c889b._0x58f97a,_0x999c94,_0x22502e-0x63);}const _0x2d7f7d=()=>{_0x379d93();};return _0x24b635[_0x467fd0(0x298,0x296,0x2a0,0x2a1)](_0x467fd0(0x298,_0x5e8ba4._0x350713,0x299,_0x5e8ba4._0x1bcfd3),_0x2d7f7d,{'once':!![]}),()=>{_0x24b635['removeEventListener']('abort',_0x2d7f7d);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|
package/dist/chunk-YNOIG4FD.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x309286,_0x48370d){const _0x11f927={_0x51e8f7:0x16,_0x485b3c:0x39,_0xe7ae7b:0x1f6,_0x224a94:0x212,_0x7bfd8a:0x7,_0x8add06:0x14,_0x270b81:0xb,_0xe3faf3:0xe,_0x3e1240:0x217,_0x384d4e:0x202,_0x100880:0x36,_0x5756ed:0x7,_0x5411a8:0x1d,_0x14ef2d:0xe,_0x3caca7:0x2,_0x31bf67:0x5,_0x461fa9:0x1b,_0x2832a8:0x2,_0x5f5d63:0x1,_0x392336:0x1c},_0x5deb93={_0x28f4dd:0xe0},_0xba9688=_0x309286();function _0x2693e6(_0x15b02e,_0x1d3ef0,_0x157b7d,_0x178679){return _0x1b30(_0x1d3ef0- -_0x5deb93._0x28f4dd,_0x178679);}function _0x51529b(_0x4479d9,_0x238cf2,_0x254462,_0x39d5d2){return _0x1b30(_0x238cf2- -0x305,_0x254462);}while(!![]){try{const _0xdba62=-parseInt(_0x2693e6(0x23,0x27,_0x11f927._0x51e8f7,_0x11f927._0x485b3c))/0x1+-parseInt(_0x51529b(-_0x11f927._0xe7ae7b,-0x200,-0x1e2,-_0x11f927._0x224a94))/0x2+-parseInt(_0x2693e6(_0x11f927._0x7bfd8a,_0x11f927._0x8add06,-_0x11f927._0x270b81,_0x11f927._0xe3faf3))/0x3*(parseInt(_0x51529b(-_0x11f927._0x3e1240,-_0x11f927._0x384d4e,-0x206,-0x21e))/0x4)+parseInt(_0x2693e6(_0x11f927._0x100880,0x16,-0x3,-_0x11f927._0x5756ed))/0x5*(-parseInt(_0x2693e6(_0x11f927._0x5411a8,0xa,-_0x11f927._0x14ef2d,-0xf))/0x6)+-parseInt(_0x2693e6(_0x11f927._0x3caca7,0x3,-0x12,-_0x11f927._0x31bf67))/0x7+-parseInt(_0x2693e6(-_0x11f927._0x461fa9,-_0x11f927._0x2832a8,_0x11f927._0x5f5d63,-0x1e))/0x8*(parseInt(_0x2693e6(0x2c,0x1b,0x2b,0x1))/0x9)+parseInt(_0x2693e6(0x1f,0x11,_0x11f927._0x392336,0x1))/0xa;if(_0xdba62===_0x48370d)break;else _0xba9688['push'](_0xba9688['shift']());}catch(_0x9ef164){_0xba9688['push'](_0xba9688['shift']());}}}(_0x3a0d,0x41669));function createTextBlock(_0x47d619){const _0x4f8908={_0x194c0d:0x43,_0x52c3e5:0x5a};function _0x117a25(_0x3d803c,_0x55d16f,_0x444d2f,_0x409c9c){return _0x1b30(_0x409c9c- -0x13a,_0x3d803c);}return{'type':_0x117a25(-0x64,-0x3c,-_0x4f8908._0x194c0d,-_0x4f8908._0x52c3e5),'text':_0x47d619};}function normalizeTextBlock(_0x1a4c36){const _0x86587f={_0x5365c9:0x16d,_0x16b8ac:0x167};function _0x339cc7(_0x6b748a,_0x214d14,_0xe10452,_0x5911f0){return _0x1b30(_0x214d14- -0x24d,_0x5911f0);}return createTextBlock(_0x1a4c36[_0x339cc7(-0x18a,-_0x86587f._0x5365c9,-0x165,-_0x86587f._0x16b8ac)]??'');}function normalizeContent(_0x577a7e){const _0x63f550={_0x407689:0x7a,_0x581508:0x2f4},_0x349d4b={_0x314e95:0x399,_0x42abb8:0x233,_0x2c47ca:0x247,_0x8afdc0:0x22f,_0x40663b:0x23a},_0x1e1b8a={_0x535b7a:0x17,_0x3a273d:0xe6},_0x37bfa0={_0xa46245:0x52};if(typeof _0x577a7e===_0x4b56eb(0x6f,0x71,_0x63f550._0x407689,0x89))return[createTextBlock(_0x577a7e)];function _0xf0f5e7(_0x2b424c,_0x1a1e3c,_0x274ee9,_0x425fe7){return _0x1b30(_0x425fe7-0x205,_0x274ee9);}function _0x4b56eb(_0x3b08aa,_0x58567d,_0x441610,_0x2f36a0){return _0x1b30(_0x2f36a0- -_0x37bfa0._0xa46245,_0x441610);}if(!Array[_0xf0f5e7(0x2f5,0x2fb,0x2fe,_0x63f550._0x581508)](_0x577a7e))return[];return _0x577a7e['map'](_0x4594f9=>{const _0xc363b0={_0x125142:0x1ec,_0x1c4454:0x17};function _0x5266ce(_0x4eb56d,_0x1abc4f,_0x16a0cb,_0x9d19f){return _0xf0f5e7(_0x4eb56d-_0x1e1b8a._0x535b7a,_0x1abc4f-_0x1e1b8a._0x3a273d,_0x1abc4f,_0x4eb56d- -0xb2);}function _0x4a3918(_0x38b63f,_0x3ea801,_0x2ce5ff,_0xc16af1){return _0xf0f5e7(_0x38b63f-_0xc363b0._0x125142,_0x3ea801-_0xc363b0._0x1c4454,_0x3ea801,_0x2ce5ff-0xa1);}if(_0x4594f9[_0x4a3918(_0x349d4b._0x314e95,0x3c4,0x3a7,0x3ba)]===_0x5266ce(_0x349d4b._0x42abb8,_0x349d4b._0x2c47ca,_0x349d4b._0x8afdc0,_0x349d4b._0x40663b))return normalizeTextBlock(_0x4594f9);return structuredClone(_0x4594f9);});}function _0x1b30(_0x2fefb1,_0x1720f4){_0x2fefb1=_0x2fefb1-0xdb;const _0x3a0d64=_0x3a0d();let _0x1b305a=_0x3a0d64[_0x2fefb1];if(_0x1b30['fpAmUb']===undefined){var _0x1aea57=function(_0x3574e7){const _0x8c280e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x47d619='',_0x1a4c36='';for(let _0x577a7e=0x0,_0x4594f9,_0x22d9eb,_0x330d83=0x0;_0x22d9eb=_0x3574e7['charAt'](_0x330d83++);~_0x22d9eb&&(_0x4594f9=_0x577a7e%0x4?_0x4594f9*0x40+_0x22d9eb:_0x22d9eb,_0x577a7e++%0x4)?_0x47d619+=String['fromCharCode'](0xff&_0x4594f9>>(-0x2*_0x577a7e&0x6)):0x0){_0x22d9eb=_0x8c280e['indexOf'](_0x22d9eb);}for(let _0x4865ce=0x0,_0x1d885b=_0x47d619['length'];_0x4865ce<_0x1d885b;_0x4865ce++){_0x1a4c36+='%'+('00'+_0x47d619['charCodeAt'](_0x4865ce)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a4c36);};_0x1b30['KOMtxD']=_0x1aea57,_0x1b30['XZOxto']={},_0x1b30['fpAmUb']=!![];}const _0x340906=_0x3a0d64[0x0],_0x232202=_0x2fefb1+_0x340906,_0x896a01=_0x1b30['XZOxto'][_0x232202];return!_0x896a01?(_0x1b305a=_0x1b30['KOMtxD'](_0x1b305a),_0x1b30['XZOxto'][_0x232202]=_0x1b305a):_0x1b305a=_0x896a01,_0x1b305a;}function normalizeSystem(_0x22d9eb=[]){const _0x2952d3={_0x4f82f1:0xf8};function _0x5113d2(_0x29b588,_0x26e2fb,_0x230d82,_0x3c44aa){return _0x1b30(_0x29b588- -_0x2952d3._0x4f82f1,_0x3c44aa);}return normalizeContent(_0x22d9eb)['filter'](_0x330d83=>_0x330d83[_0x5113d2(0x9,-0x3,0x21,-0xb)]==='text');}function isProviderStateCompatible(_0x4865ce,_0x1d885b){const _0x5f5873={_0x25db10:0x25f,_0x2cdfda:0x26b,_0xe1811b:0x1cf,_0x8ae8eb:0x1d0,_0x5793c3:0x1ab,_0x50b434:0x1c6,_0xf73fb4:0x1d5,_0x598b8d:0x24f,_0x4ae5a9:0x253},_0x3eb0fb={_0x5aff83:0x2c6};function _0x101615(_0x5d1bbc,_0x1dad21,_0x17b219,_0x420a0c){return _0x1b30(_0x17b219- -_0x3eb0fb._0x5aff83,_0x5d1bbc);}const _0x1c78b4=_0x4865ce[_0xd682ed(-0x27f,-0x262,-_0x5f5873._0x25db10,-_0x5f5873._0x2cdfda)]?.[_0x101615(-_0x5f5873._0xe1811b,-0x1d1,-0x1e4,-0x1d2)];function _0xd682ed(_0x24aa49,_0x3b95e5,_0x5004e8,_0x1121d4){return _0x1b30(_0x1121d4- -0x34a,_0x3b95e5);}return _0x1c78b4===void 0x0||_0x1c78b4===_0x1d885b[_0x101615(-_0x5f5873._0x8ae8eb,-_0x5f5873._0x5793c3,-_0x5f5873._0x50b434,-_0x5f5873._0xf73fb4)]['modelIdentity']||_0x1c78b4===_0x1d885b[_0xd682ed(-_0x5f5873._0x598b8d,-_0x5f5873._0x4ae5a9,-0x242,-0x25d)];}function normalizeMessage(_0x2f5972){const _0x2c173c={_0x4fd41c:0x359,_0x9f8b:0x376,_0x13343e:0x389,_0x33edc1:0x40b},_0x1848ea={_0x2acdaa:0x266};function _0x185226(_0x16164d,_0x5e9186,_0x16f4ff,_0x474e6b){return _0x1b30(_0x5e9186-0x347,_0x474e6b);}function _0x4c8377(_0x571d83,_0x1787a9,_0x599020,_0x4a3517){return _0x1b30(_0x599020-_0x1848ea._0x2acdaa,_0x4a3517);}return{...typeof _0x2f5972['id']===_0x4c8377(0x33c,0x340,0x341,0x342)?{'id':_0x2f5972['id']}:{},'role':_0x2f5972['role'],'content':normalizeContent(_0x2f5972[_0x4c8377(_0x2c173c._0x4fd41c,0x393,_0x2c173c._0x9f8b,_0x2c173c._0x13343e)]),..._0x2f5972['providerState']?{'providerState':structuredClone(_0x2f5972[_0x185226(_0x2c173c._0x33edc1,0x426,0x417,0x437)])}:{}};}function compileRequest(_0x2dcb69){const _0x3a0105={_0x524fb8:0x2dc,_0x58000e:0x3f,_0x106a21:0x64,_0x155b50:0x2ed,_0x452455:0x303,_0x3e8a82:0x2d9,_0x50fd4c:0x2f7,_0x579e35:0x2df,_0x441606:0x2ce,_0x7f37f4:0x300,_0x108bfc:0x33,_0x4ec378:0x49,_0x2ad75e:0x60,_0x40fded:0x46,_0x39f935:0x2da,_0x46464b:0x2f9,_0x3d3a9d:0x37},_0x3566da={_0x311131:0x15a};function _0xc228f7(_0x2397da,_0xe4fbf5,_0x164c3f,_0x1adc8f){return _0x1b30(_0x1adc8f-0x1e0,_0x2397da);}function _0x25df17(_0x1707bf,_0x136e62,_0x478fc3,_0xda7fcd){return _0x1b30(_0x136e62- -_0x3566da._0x311131,_0x478fc3);}return{'model':_0x2dcb69[_0xc228f7(0x2db,0x2b7,_0x3a0105._0x524fb8,0x2cd)]??_0x25df17(-_0x3a0105._0x58000e,-0x46,-_0x3a0105._0x106a21,-0x53),..._0x2dcb69[_0xc228f7(_0x3a0105._0x155b50,_0x3a0105._0x452455,_0x3a0105._0x3e8a82,_0x3a0105._0x50fd4c)]!==void 0x0?{'max_tokens':_0x2dcb69[_0xc228f7(_0x3a0105._0x579e35,0x2e7,0x2fb,0x2f7)]}:{},..._0x2dcb69['reasoning']?{'reasoning':structuredClone(_0x2dcb69[_0xc228f7(_0x3a0105._0x441606,0x309,_0x3a0105._0x7f37f4,0x2ea)])}:{},'system':normalizeSystem(_0x2dcb69[_0x25df17(-_0x3a0105._0x108bfc,-0x51,-_0x3a0105._0x108bfc,-0x3b)]),'messages':_0x2dcb69[_0x25df17(-0x58,-_0x3a0105._0x4ec378,-0x2d,-0x2f)][_0x25df17(-0x6f,-0x54,-0x4c,-_0x3a0105._0x2ad75e)](normalizeMessage),'tools':structuredClone(_0x2dcb69[_0x25df17(-_0x3a0105._0x40fded,-0x42,-_0x3a0105._0x40fded,-0x4f)]??[]),'metadata':{'session_id':_0x2dcb69[_0xc228f7(0x2b9,_0x3a0105._0x39f935,_0x3a0105._0x46464b,_0x3a0105._0x3e8a82)],'turn_id':_0x2dcb69[_0x25df17(-0x2d,-0x48,-_0x3a0105._0x3d3a9d,-0x52)]}};}function toChatRequest(_0x282cec){const _0x3000ec={_0x3b2099:0x118,_0x3adae6:0x121,_0x8539cc:0x113,_0x19356a:0x121,_0x496a6f:0x104,_0x48201f:0x109,_0x436a35:0xf6,_0x23e680:0x102,_0x287b32:0x120,_0x4c2a8d:0x125,_0x398313:0x388,_0xdf993e:0x387,_0x17cc65:0x377,_0x33193a:0x39c,_0x3b5830:0x39c,_0x165e0c:0x396,_0x5db343:0x39f,_0x17d576:0x37e,_0x37f657:0x361,_0x1300cc:0x37b,_0x4f6574:0x119,_0x3c31c6:0x129,_0x24ce77:0x126,_0x557af9:0x122,_0x37c0c8:0x10e,_0x568b23:0x39d,_0x5be95a:0x126,_0x2953c4:0x143,_0x3c072b:0x12a,_0x32f251:0x36c,_0x5b1d9b:0x382,_0x17343e:0x356,_0x582e74:0x384,_0x3de446:0x12b,_0x265574:0x378,_0x107131:0x35d,_0x3a274a:0x371,_0x1deb44:0x364,_0x77439f:0x161,_0x13452a:0x133,_0xf7c358:0x142},_0x3b808b={_0x37a3ba:0x27e};function _0x3abe09(_0x452e0e,_0x36c017,_0x52356f,_0x4f8c24){return _0x1b30(_0x52356f- -0x22a,_0x36c017);}function _0x2d3a5c(_0xf98f02,_0x2da1ad,_0x5caac8,_0x21f6c0){return _0x1b30(_0xf98f02-_0x3b808b._0x37a3ba,_0x5caac8);}return{'model':_0x282cec['model'],..._0x282cec[_0x3abe09(-_0x3000ec._0x3b2099,-_0x3000ec._0x3adae6,-_0x3000ec._0x8539cc,-_0x3000ec._0x19356a)]!==void 0x0?{'maxTokens':_0x282cec[_0x3abe09(-_0x3000ec._0x496a6f,-_0x3000ec._0x48201f,-0x113,-_0x3000ec._0x436a35)]}:{},..._0x282cec[_0x3abe09(-0x101,-_0x3000ec._0x23e680,-_0x3000ec._0x287b32,-_0x3000ec._0x4c2a8d)]?{'reasoning':structuredClone(_0x282cec[_0x2d3a5c(_0x3000ec._0x398313,0x3a4,0x373,0x39f)])}:{},'system':structuredClone(_0x282cec[_0x2d3a5c(_0x3000ec._0xdf993e,0x377,_0x3000ec._0x17cc65,0x385)]),'messages':structuredClone(_0x282cec[_0x2d3a5c(0x38f,0x389,_0x3000ec._0x33193a,_0x3000ec._0x3b5830)]),'tools':structuredClone(_0x282cec[_0x2d3a5c(_0x3000ec._0x165e0c,_0x3000ec._0x5db343,0x38b,0x398)]),'metadata':{'sessionId':_0x282cec[_0x2d3a5c(_0x3000ec._0x17d576,_0x3000ec._0x37f657,_0x3000ec._0x1300cc,0x389)]['session_id'],'turnId':_0x282cec[_0x3abe09(-0x140,-_0x3000ec._0x4f6574,-0x12a,-0x149)][_0x3abe09(-_0x3000ec._0x3c31c6,-_0x3000ec._0x24ce77,-_0x3000ec._0x557af9,-_0x3000ec._0x37c0c8)],..._0x282cec[_0x2d3a5c(_0x3000ec._0x17d576,0x38a,0x376,_0x3000ec._0x568b23)]['model_identity']!==void 0x0?{'modelIdentity':_0x282cec[_0x3abe09(-_0x3000ec._0x5be95a,-_0x3000ec._0x2953c4,-_0x3000ec._0x3c072b,-0x12c)][_0x2d3a5c(_0x3000ec._0x32f251,_0x3000ec._0x5b1d9b,_0x3000ec._0x17343e,0x375)]}:{},..._0x282cec[_0x2d3a5c(0x37e,0x36f,0x392,_0x3000ec._0x582e74)]['pricing_provider_id']!==void 0x0?{'pricingProviderId':_0x282cec[_0x3abe09(-0x123,-0x13f,-0x12a,-_0x3000ec._0x3de446)][_0x2d3a5c(_0x3000ec._0x265574,_0x3000ec._0x107131,_0x3000ec._0x3a274a,_0x3000ec._0x1deb44)]}:{}},..._0x282cec[_0x3abe09(-_0x3000ec._0x77439f,-_0x3000ec._0x13452a,-0x142,-0x128)]?{'outputFormat':structuredClone(_0x282cec[_0x3abe09(-0x14d,-0x129,-_0x3000ec._0xf7c358,-0x157)])}:{}};}function toModelRequest(_0x26186c){const _0x528f98={_0x455ac8:0x87,_0x194f1f:0x6c,_0x260533:0x74,_0x5c66b5:0x7c,_0x16c207:0x9c,_0x2ea90f:0x9c,_0x4fe4f0:0xa1,_0x236fe2:0x9d,_0x198fa7:0x11c,_0x515e63:0x120,_0x5220c8:0x9f,_0x52cf16:0xa9,_0x225540:0xb2,_0x700169:0xb2,_0x32b0e1:0xc3,_0x428315:0xc6,_0x5de782:0x134,_0x4c19b5:0x15e,_0x251919:0x141,_0x30a8a3:0x130,_0x8473d3:0x14a,_0x1a6a63:0x147,_0x5632d5:0x14d,_0x38843f:0x155,_0x4f6ced:0x13a,_0x3ea69f:0x8e,_0x12746f:0x12d,_0x4d30e3:0x153,_0x289db0:0xa6,_0x576c69:0xae,_0x1d92aa:0x8b,_0x1f2f1a:0x8d,_0x8ead6c:0xbd,_0x287cb6:0xad,_0x5c8e52:0x9a,_0xcacfbe:0xb9,_0x3874fd:0x136,_0x19730:0x143,_0x2c2592:0x82,_0x131679:0x96,_0x1b2118:0x168,_0x17cf78:0x159},_0x522d8e={_0x27b0cd:0x241};function _0x347cf1(_0x2bcc2c,_0x7babb7,_0x232857,_0x191e0c){return _0x1b30(_0x232857- -_0x522d8e._0x27b0cd,_0x191e0c);}function _0x349237(_0xa7bcaf,_0x34499d,_0x50781a,_0x13e206){return _0x1b30(_0xa7bcaf- -0x66,_0x50781a);}return{'model':_0x26186c[_0x349237(_0x528f98._0x455ac8,_0x528f98._0x194f1f,_0x528f98._0x260533,_0x528f98._0x5c66b5)],..._0x26186c[_0x349237(_0x528f98._0x16c207,0xab,0xbb,0x9e)]!==void 0x0?{'max_tokens':_0x26186c[_0x349237(_0x528f98._0x2ea90f,_0x528f98._0x4fe4f0,_0x528f98._0x236fe2,0x91)]}:{},..._0x26186c[_0x347cf1(-0x152,-_0x528f98._0x198fa7,-0x137,-_0x528f98._0x515e63)]?{'reasoning':structuredClone(_0x26186c['reasoning'])}:{},'system':structuredClone(_0x26186c[_0x349237(0xa3,0x8a,0x91,0xbe)]),'messages':structuredClone(_0x26186c[_0x349237(0xab,0x9d,_0x528f98._0x5220c8,_0x528f98._0x52cf16)]),'tools':structuredClone(_0x26186c[_0x349237(_0x528f98._0x225540,_0x528f98._0x700169,_0x528f98._0x32b0e1,_0x528f98._0x428315)]),'metadata':{'session_id':_0x26186c[_0x349237(0x9a,0x86,0xa8,0xab)]['sessionId'],'turn_id':_0x26186c[_0x347cf1(-_0x528f98._0x5de782,-_0x528f98._0x4c19b5,-_0x528f98._0x251919,-_0x528f98._0x30a8a3)][_0x347cf1(-_0x528f98._0x8473d3,-_0x528f98._0x1a6a63,-0x12f,-0x132)],..._0x26186c[_0x347cf1(-_0x528f98._0x5632d5,-_0x528f98._0x38843f,-0x141,-_0x528f98._0x4f6ced)][_0x349237(0xa6,_0x528f98._0x3ea69f,0xb1,0x94)]!==void 0x0?{'model_identity':_0x26186c[_0x347cf1(-_0x528f98._0x12746f,-0x14f,-_0x528f98._0x251919,-_0x528f98._0x4d30e3)][_0x349237(_0x528f98._0x289db0,_0x528f98._0x576c69,0xc4,_0x528f98._0x1d92aa)]}:{},..._0x26186c['metadata'][_0x349237(0xa7,_0x528f98._0x1f2f1a,_0x528f98._0x8ead6c,_0x528f98._0x287cb6)]!==void 0x0?{'pricing_provider_id':_0x26186c[_0x349237(0x9a,_0x528f98._0x5c8e52,0x83,_0x528f98._0xcacfbe)][_0x347cf1(-0x14e,-_0x528f98._0x3874fd,-0x134,-_0x528f98._0x19730)]}:{}},..._0x26186c[_0x349237(_0x528f98._0x2c2592,_0x528f98._0x131679,0x6e,_0x528f98._0x5c8e52)]?{'outputFormat':structuredClone(_0x26186c[_0x347cf1(-0x14b,-_0x528f98._0x1b2118,-_0x528f98._0x17cf78,-0x177)])}:{}};}function toProviderModelRequest(_0x35b30a){const _0x587976={_0x29a3b5:0x322,_0x5c86a2:0x321,_0x306239:0x337,_0x2fe307:0x34a,_0x934d95:0x32c,_0x4bf2eb:0x346},_0x32bc52={_0x56fe5b:0xb},_0x4df438={_0x4bc9a7:0x235};function _0x3e231e(_0x1fb989,_0x296aa3,_0x50ef77,_0x3c0715){return _0x1b30(_0x1fb989-_0x4df438._0x4bc9a7,_0x3c0715);}function _0x17a9f5(_0xfe0fc5,_0x95d2e3,_0x126254,_0xafa2f8){return _0x1b30(_0xafa2f8- -_0x32bc52._0x56fe5b,_0x95d2e3);}return{'model':_0x35b30a[_0x3e231e(_0x587976._0x29a3b5,0x33b,0x32c,_0x587976._0x5c86a2)],..._0x35b30a['maxTokens']!==void 0x0?{'max_tokens':_0x35b30a[_0x3e231e(_0x587976._0x306239,_0x587976._0x2fe307,_0x587976._0x934d95,0x331)]}:{},'system':structuredClone(_0x35b30a['system']),'messages':structuredClone(_0x35b30a[_0x3e231e(_0x587976._0x4bf2eb,0x360,0x33c,0x32a)]),'tools':structuredClone(_0x35b30a['tools'])};}function toChatResponse(_0x318ead){const _0x56c89f={_0x2c4ef0:0x482,_0x1875fc:0x3d1,_0x39522a:0x39c,_0x11ac34:0x399,_0x38277f:0x3e0,_0x30bad8:0x3e9,_0x38c45a:0x38e,_0x306a9a:0x3af,_0x584c0c:0x3b1,_0x8dfdcd:0x391,_0x381043:0x3a5,_0x216a88:0x3b3,_0x285a27:0x396,_0x51052a:0x394,_0x32250d:0x39b},_0x4824f4={_0x43ebb1:0x35e};function _0x1650d0(_0x410cfd,_0xbc9323,_0x3916a3,_0x39b57f){return _0x1b30(_0x39b57f-0x2bc,_0x3916a3);}function _0x35d61a(_0x204c56,_0x1bedd3,_0x58f3bb,_0x4ee16c){return _0x1b30(_0x4ee16c-_0x4824f4._0x43ebb1,_0x1bedd3);}return{'id':_0x318ead['id'],'content':structuredClone(_0x318ead[_0x35d61a(_0x56c89f._0x2c4ef0,0x46e,0x466,0x46e)]),'stopReason':_0x318ead['stop_reason'],'usage':{'inputTokens':_0x318ead[_0x1650d0(_0x56c89f._0x1875fc,0x3e9,0x3dc,0x3d1)][_0x1650d0(_0x56c89f._0x39522a,0x37b,0x39a,_0x56c89f._0x11ac34)],'outputTokens':_0x318ead[_0x1650d0(_0x56c89f._0x38277f,0x3f1,_0x56c89f._0x30bad8,0x3d1)][_0x1650d0(_0x56c89f._0x38c45a,0x38f,_0x56c89f._0x306a9a,0x3a3)],..._0x318ead['usage'][_0x1650d0(_0x56c89f._0x584c0c,0x3a1,_0x56c89f._0x8dfdcd,_0x56c89f._0x381043)]!==void 0x0?{'reasoningTokens':_0x318ead[_0x1650d0(0x3bf,0x3bc,_0x56c89f._0x216a88,0x3d1)][_0x1650d0(_0x56c89f._0x285a27,0x3ac,_0x56c89f._0x51052a,0x3a5)]}:{}},..._0x318ead[_0x35d61a(0x421,0x429,0x43e,0x43d)]?{'providerState':structuredClone(_0x318ead[_0x1650d0(0x3ad,0x382,0x3b9,_0x56c89f._0x32250d)])}:{}};}function toModelResponse(_0x53e659){const _0x347a0c={_0x29c384:0x48d,_0x177fcd:0x48e,_0x137c64:0x48f,_0xb06cde:0x4a0,_0x4615e8:0x49e,_0x1dda16:0x2da,_0xe172bf:0x2c7,_0x1657b6:0x2b8,_0x53ab6d:0x4ba,_0x3de11b:0x2d5,_0x45ef75:0x2ad,_0x364b8b:0x486,_0xd916c2:0x489,_0x2acf70:0x28d,_0x1d911b:0x2a9,_0x352654:0x2aa},_0x53fda0={_0x2030e3:0x38b};function _0x5e8e82(_0x15052c,_0x995ceb,_0x8705f5,_0x5a9ffb){return _0x1b30(_0x995ceb-0x1ca,_0x8705f5);}function _0x314f11(_0x4d7bb0,_0x39df0b,_0x4918df,_0x272dcc){return _0x1b30(_0x39df0b-_0x53fda0._0x2030e3,_0x4918df);}return{'id':_0x53e659['id'],'type':_0x314f11(0x489,0x483,0x48d,_0x347a0c._0x29c384),'role':'assistant','content':structuredClone(_0x53e659['content']),'stop_reason':_0x53e659['stopReason'],'stop_sequence':null,'usage':{'input_tokens':_0x53e659[_0x314f11(_0x347a0c._0x177fcd,0x4a0,0x4a0,_0x347a0c._0x137c64)]['inputTokens'],'output_tokens':_0x53e659[_0x314f11(0x4b8,_0x347a0c._0xb06cde,_0x347a0c._0x4615e8,0x499)][_0x5e8e82(_0x347a0c._0x1dda16,_0x347a0c._0xe172bf,_0x347a0c._0x1657b6,0x2ac)],..._0x53e659[_0x314f11(_0x347a0c._0x53ab6d,_0x347a0c._0xb06cde,0x4a0,0x484)][_0x5e8e82(_0x347a0c._0x3de11b,0x2bc,0x2bb,_0x347a0c._0x45ef75)]!==void 0x0?{'reasoning_tokens':_0x53e659['usage'][_0x314f11(_0x347a0c._0x364b8b,0x47d,_0x347a0c._0xd916c2,0x494)]}:{}},..._0x53e659[_0x5e8e82(_0x347a0c._0x2acf70,_0x347a0c._0x1d911b,0x298,_0x347a0c._0x352654)]?{'providerState':structuredClone(_0x53e659['providerState'])}:{}};}function responseToAssistantMessage(_0xbfa7a8){const _0x2d648f={_0x300244:0x432,_0x3e14ca:0x28b,_0x396a97:0x296,_0x5169f8:0x2aa,_0x1f34db:0x41d,_0x13bd73:0x412};function _0x2ddac2(_0x4619d4,_0xea076d,_0x2519e4,_0x4ff63b){return _0x1b30(_0x4619d4-0x17b,_0xea076d);}function _0x39a97c(_0x39688b,_0x462c09,_0xacba43,_0x502afc){return _0x1b30(_0x502afc-0x34f,_0x39688b);}return{'role':_0x39a97c(0x43a,_0x2d648f._0x300244,0x41b,0x43b),'content':normalizeContent(_0xbfa7a8[_0x2ddac2(_0x2d648f._0x3e14ca,_0x2d648f._0x396a97,0x2a6,_0x2d648f._0x5169f8)]),..._0xbfa7a8[_0x39a97c(_0x2d648f._0x1f34db,0x41a,_0x2d648f._0x13bd73,0x42e)]?{'providerState':structuredClone(_0xbfa7a8[_0x2ddac2(0x25a,0x270,0x25c,0x244)])}:{}};}function createReasoningMessage(_0x108ec6){const _0x2b58ec={_0x2fa069:0x238,_0x8928c4:0x22f},_0x529b51={_0x56e696:0x37d},_0x163626={_0x362f1b:0x2d2,_0x281563:0x2e8,_0x30eada:0x2d6,_0x283adc:0x2db,_0x5776b7:0x2f4,_0x440ee6:0x2bc,_0x5576af:0x2de,_0xa950ec:0x2df,_0x42325a:0x2ef,_0x5794af:0x2c6,_0x11a61f:0x2da,_0x23af39:0x2d9},_0x4e7620=normalizeContent(_0x108ec6?.[_0x1c524d(-0x1fe,-0x1ff,-0x212,-0x215)])['filter'](_0x481b6b=>{const _0x4374a8={_0x10c1bd:0x123,_0x59a16a:0x122};function _0x33a5c7(_0x5a42bd,_0x16e6c8,_0x53f628,_0x2da95e){return _0x1c524d(_0x5a42bd-0xc1,_0x5a42bd- -0xcd,_0x53f628-0x115,_0x16e6c8);}function _0x3680bf(_0xbd9d52,_0x6651fc,_0x7f79b9,_0x2c0b61){return _0x1c524d(_0xbd9d52-_0x4374a8._0x10c1bd,_0x2c0b61-0x4e8,_0x7f79b9-_0x4374a8._0x59a16a,_0xbd9d52);}return _0x481b6b[_0x3680bf(_0x163626._0x362f1b,_0x163626._0x281563,_0x163626._0x30eada,0x2da)]==='anthropic_redacted_thinking'||_0x481b6b[_0x33a5c7(-_0x163626._0x283adc,-0x2e9,-_0x163626._0x5776b7,-_0x163626._0x440ee6)]===_0x33a5c7(-_0x163626._0x5576af,-_0x163626._0xa950ec,-_0x163626._0x42325a,-0x2e6)||_0x481b6b[_0x3680bf(0x2bc,0x2f0,_0x163626._0x5794af,_0x163626._0x11a61f)]===_0x33a5c7(-0x2d8,-0x2de,-_0x163626._0x23af39,-0x2ef);});function _0x54a7a5(_0x21ac60,_0x422d0b,_0x30f77c,_0x4e9f08){return _0x1b30(_0x21ac60- -_0x529b51._0x56e696,_0x422d0b);}function _0x1c524d(_0x5aa4c2,_0x495abf,_0xd37381,_0x56fd27){return _0x1b30(_0x495abf- -0x30f,_0x56fd27);}if(_0x4e7620['length']===0x0)return void 0x0;return{'role':_0x1c524d(-0x236,-0x223,-_0x2b58ec._0x2fa069,-_0x2b58ec._0x8928c4),'content':_0x4e7620};}function createAssistantTextMessage(_0xd3c50c){const _0x5a77e4={_0x15412e:0x475,_0x16e6e5:0x418,_0x1c9bd1:0x3e6,_0x2e30d1:0x40a,_0x457512:0x3e3},_0x108387={_0x418be7:0x30a},_0x2a1d26={_0x52bc16:0x22f,_0x2cfe38:0x21a,_0x12ca39:0x207,_0x2567d9:0x301};function _0x4e04cb(_0x2c6b3d,_0x4e0fd0,_0x37bf1a,_0x264321){return _0x1b30(_0x4e0fd0-0x36e,_0x37bf1a);}const _0x2465ca=normalizeContent(_0xd3c50c?.[_0x4e04cb(0x485,0x47e,_0x5a77e4._0x15412e,0x495)])[_0x521311(0x3ff,_0x5a77e4._0x16e6e5,0x402,0x3f8)](_0x226401=>{const _0x1cbcf6={_0x3eca7a:0x6e},_0x50bd65={_0x532e11:0x625,_0x15d006:0x86};function _0x33e708(_0x6118d6,_0x3cdbe3,_0x52b05b,_0x36cfca){return _0x521311(_0x3cdbe3- -_0x50bd65._0x532e11,_0x3cdbe3-_0x50bd65._0x15d006,_0x52b05b-0x1e2,_0x36cfca);}function _0x4e8b57(_0xcdecfa,_0x2d2c80,_0x66a3f2,_0x40f9bb){return _0x521311(_0x66a3f2- -0xcc,_0x2d2c80-0xd7,_0x66a3f2-_0x1cbcf6._0x3eca7a,_0x40f9bb);}return _0x226401[_0x33e708(-_0x2a1d26._0x52bc16,-_0x2a1d26._0x2cfe38,-_0x2a1d26._0x12ca39,-0x21d)]===_0x4e8b57(0x316,0x333,0x31e,_0x2a1d26._0x2567d9);});if(_0x2465ca[_0x521311(_0x5a77e4._0x1c9bd1,0x3d1,0x3de,0x3d5)]===0x0)return void 0x0;function _0x521311(_0x22f48a,_0x2be9d3,_0x32dc52,_0x57a7e9){return _0x1b30(_0x22f48a-_0x108387._0x418be7,_0x57a7e9);}return{'role':_0x521311(0x3f6,0x40c,_0x5a77e4._0x2e30d1,_0x5a77e4._0x457512),'content':_0x2465ca};}function createToolUseMessage(_0x37328c){const _0x28a0db={_0x451b78:0x448,_0x4c4026:0x45e,_0x411b53:0x1f1,_0x2c98e9:0x1d8},_0x2ec00b={_0x5c232d:0x3dd,_0x4e3451:0x415,_0x40e88c:0x319,_0x53357a:0x31e},_0x5cb806={_0x43815a:0xda},_0x3fa699={_0x3e1d17:0x2e6};function _0x3d33cb(_0x1e6d48,_0x5cb922,_0x81112c,_0x421076){return _0x1b30(_0x5cb922- -_0x3fa699._0x3e1d17,_0x1e6d48);}const _0x57c3d5=normalizeContent(_0x37328c?.[_0x21c537(_0x28a0db._0x451b78,_0x28a0db._0x4c4026,0x435,0x43f)])[_0x3d33cb(-0x1d5,-_0x28a0db._0x411b53,-0x1fb,-_0x28a0db._0x2c98e9)](_0x2f503a=>{function _0x870e8c(_0x4d0572,_0x1f9923,_0xd5fcc2,_0x3c92a7){return _0x21c537(_0x4d0572-0x1d0,_0x1f9923-0xde,_0x1f9923,_0xd5fcc2- -0x3b);}function _0x2fa9b4(_0x88393d,_0x21ed2e,_0x111436,_0x132979){return _0x3d33cb(_0x88393d,_0x21ed2e-0x503,_0x111436-_0x5cb806._0x43815a,_0x132979-0x29);}return _0x2f503a[_0x870e8c(0x412,_0x2ec00b._0x5c232d,0x3f5,_0x2ec00b._0x4e3451)]===_0x2fa9b4(0x339,_0x2ec00b._0x40e88c,0x31c,_0x2ec00b._0x53357a);});function _0x21c537(_0x293368,_0x1a15f2,_0x556d0a,_0x47a4ac){return _0x1b30(_0x47a4ac-0x32f,_0x556d0a);}if(_0x57c3d5['length']===0x0)return void 0x0;return{'role':'assistant','content':_0x57c3d5};}function getTextFromMessage(_0x25ddab){const _0x13889d={_0x384126:0x251,_0x4bc429:0x263,_0xabca53:0x256,_0x42bd78:0x235},_0x19f2d5={_0x4c2435:0x34b};function _0x48e79e(_0x2b199f,_0x367b58,_0x2e7a80,_0x41e96a){return _0x1b30(_0x41e96a-0x12e,_0x2e7a80);}function _0x43a014(_0x30db11,_0x2f8e1b,_0xf7b2a7,_0x2a1dad){return _0x1b30(_0x2f8e1b- -_0x19f2d5._0x4c2435,_0x2a1dad);}return normalizeContent(_0x25ddab?.[_0x43a014(-0x235,-0x23b,-_0x13889d._0x384126,-0x251)])[_0x43a014(-_0x13889d._0x4bc429,-_0x13889d._0xabca53,-0x251,-0x26f)](_0x164805=>_0x164805[_0x43a014(-0x24e,-0x24a,-0x242,-0x231)]===_0x43a014(-0x272,-0x26b,-0x272,-0x263))['map'](_0x28b756=>_0x28b756[_0x48e79e(0x22a,0x20d,0x1fe,0x20e)])[_0x48e79e(0x229,0x23a,_0x13889d._0x42bd78,0x23d)]('\x0a');}function getReasoningTextFromMessage(_0x109d56){const _0x431127={_0x1229ca:0x12c,_0x541620:0x133},_0x760e95={_0x1a5186:0x1e3,_0x2f3ad2:0x1cf,_0x32918b:0x1c3,_0x238cf7:0x1b2,_0x2ecdcc:0x1ae,_0x2eebb2:0x19c,_0x2da9a0:0x1b5,_0x185f2d:0x199,_0x4821ca:0x1cc,_0x19f745:0x1b0,_0x377591:0x1d6,_0x5bee74:0x1c6,_0x195945:0x1d0,_0x1cd9b9:0x19a,_0x5be5cb:0x198,_0x2041c2:0x1a5,_0x5e11d8:0x1ab,_0x1f4839:0x1c1,_0x18c174:0x1c5,_0x3d9adc:0x1d1,_0x5c8909:0x1a3,_0x483e4b:0x1a0,_0x2d5c81:0x1a5,_0x217ffb:0x1af,_0x130eb1:0x1ce,_0x5f0e5c:0x1d0},_0x41c7ab={_0x9543dd:0x1bb,_0x12ad83:0xae},_0x5d004f={_0x579b7d:0x13f,_0x11b2bf:0x2da},_0x13edcb={_0x458321:0x1c8};function _0x5aacfe(_0x5d191f,_0x4f2ec6,_0x8daa26,_0x8f65f9){return _0x1b30(_0x8f65f9-0x24,_0x5d191f);}function _0x296422(_0x124900,_0xebb2e9,_0x2d4989,_0x3a9d3d){return _0x1b30(_0xebb2e9-_0x13edcb._0x458321,_0x3a9d3d);}return normalizeContent(_0x109d56?.[_0x5aacfe(0x117,0x145,0x13d,0x134)])['flatMap'](_0x52affa=>{if(_0x52affa['type']===_0x13c119(0x1d8,0x1d0,0x1d9,0x1d5))return _0x52affa['thinking'][_0x76d24(-0x1be,-_0x760e95._0x1a5186,-_0x760e95._0x2f3ad2,-_0x760e95._0x32918b)]()['length']>0x0?[_0x52affa[_0x13c119(0x1d5,0x1d1,_0x760e95._0x238cf7,0x1c4)]]:[];function _0x76d24(_0x3a9a5d,_0x596b1f,_0x32e86e,_0x3489d5){return _0x5aacfe(_0x596b1f,_0x596b1f-0x1f2,_0x32e86e-_0x5d004f._0x579b7d,_0x3489d5- -_0x5d004f._0x11b2bf);}if(_0x52affa[_0x76d24(-_0x760e95._0x2ecdcc,-0x1c5,-_0x760e95._0x2eebb2,-_0x760e95._0x2da9a0)]===_0x13c119(_0x760e95._0x185f2d,0x1b6,0x1b0,_0x760e95._0x4821ca))return['(redacted\x20reasoning)'];if(_0x52affa[_0x76d24(-0x1b5,-_0x760e95._0x19f745,-0x19b,-0x1b5)]!==_0x13c119(0x1b7,_0x760e95._0x377591,_0x760e95._0x5bee74,0x1f0))return[];const _0x4e4f4c=_0x52affa[_0x76d24(-0x1b0,-0x1b7,-0x19f,-0x1ab)][_0x76d24(-_0x760e95._0x195945,-_0x760e95._0x1cd9b9,-_0x760e95._0x5be5cb,-_0x760e95._0x19f745)](_0x33838a=>_0x33838a['text'])[_0x76d24(-_0x760e95._0x2041c2,-_0x760e95._0x5e11d8,-0x1d0,-0x1c1)](_0x49e045=>_0x49e045['trim']()[_0x76d24(-0x1d7,-0x1e6,-0x1ec,-0x1da)]>0x0)[_0x76d24(-0x191,-_0x760e95._0x1f4839,-_0x760e95._0x2eebb2,-0x1a7)]('\x0a\x0a');if(_0x4e4f4c[_0x76d24(-_0x760e95._0x18c174,-_0x760e95._0x3d9adc,-0x1e9,-0x1da)]>0x0)return[_0x4e4f4c];if(_0x52affa['text']&&_0x52affa[_0x13c119(0x1be,0x1b2,_0x760e95._0x5c8909,_0x760e95._0x483e4b)][_0x76d24(-0x1c6,-0x1de,-0x1b7,-_0x760e95._0x32918b)]()[_0x13c119(0x1c3,0x1ae,_0x760e95._0x2d5c81,_0x760e95._0x217ffb)]>0x0)return[_0x52affa['text']];function _0x13c119(_0x1ab4f9,_0x524273,_0x4fa2fc,_0x151853){return _0x5aacfe(_0x4fa2fc,_0x524273-_0x41c7ab._0x9543dd,_0x4fa2fc-0x1b6,_0x524273-_0x41c7ab._0x12ad83);}return _0x52affa[_0x76d24(-0x1c2,-0x1c4,-_0x760e95._0x130eb1,-_0x760e95._0x5f0e5c)]?['(encrypted\x20reasoning)']:[];})[_0x5aacfe(_0x431127._0x1229ca,0x145,0x14d,_0x431127._0x541620)]('\x0a\x0a');}function _0x3a0d(){const _0x42c8cb=['mJa3odu1mfvntK1lvW','DxnLCG','yxnZAxn0yw50','Bw9KzwW','Bw9KzwXFAwrLBNrPDhK','AxnbCNjHEq','C3rHDhvZ','mtCYmJeYmdb0zxbsBuO','CMvHC29UAw5Nvg9Rzw5Z','DhjPBq','otaXofncCwP5Da','zMLSDgvY','nwfVBvDsBG','Dg9VBf9Yzxn1Bhq','BwvZC2fNzq','C2vZC2LVBKLK','ChjPy2LUz19WCM92AwrLCL9Pza','mtiXnw9zzfDfsW','Dg9VBf91C2u','B3v0Chv0vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','DgHPBMTPBMC','Bwv0ywrHDge','DhLWzq','Bwf4vg9Rzw5Z','ntmYC05ms1Dt','B3bLBMfPx3jLyxnVBMLUzW','mJyZmdm4Chbczhr4','BwfW','mJuYntG5sM12r3vc','DhvYBL9Pza','C3LZDgvT','CMvHC29UAw5N','C3vTBwfYEq','Bw9KzwXjzgvUDgL0Eq','ChjPy2LUz1bYB3zPzgvYswq','AgfZ','AM9PBG','y29UDgvUDa','BwvZC2fNzxm','DhvYBKLK','y2fSBeLK','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DxnHz2u','ChvZAa','Bwf4x3rVA2vUCW','Dg9VBhm','ywrK','C3rYAw5N','BgvUz3rO','Aw5WDxrFDg9Rzw5Z','mtiWz0DxqM1W','ChjVDMLKzxjtDgf0zq','Dgv4Da','B3v0Chv0','B3jPz2LUtw9KzwXjzgvUDgL0Eq','mJi1mZe4mwXvBMDADW','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','zxjYB3i','zw5JCNLWDgvKq29UDgvUDa','B3v0Chv0x3rVA2vUCW','B3v0Chv0rM9YBwf0','CMvHC29UAw5Nx3rVA2vUCW'];_0x3a0d=function(){return _0x42c8cb;};return _0x3a0d();}function getToolUseBlocks(_0x1abbe7){const _0x5938cd={_0x31f540:0x4f0,_0xd883ae:0x4d6,_0x26f357:0x5f},_0xeee809={_0x1026c1:0x14b},_0x16e207={_0x12c341:0x3e0};function _0x230942(_0x411a25,_0x52c7c3,_0x5dad5d,_0x3f9a6b){return _0x1b30(_0x52c7c3-_0x16e207._0x12c341,_0x3f9a6b);}function _0x114207(_0x1bdbc2,_0x1b5f37,_0x5d92a8,_0x61159e){return _0x1b30(_0x1bdbc2- -_0xeee809._0x1026c1,_0x1b5f37);}return normalizeContent(_0x1abbe7?.[_0x230942(0x502,_0x5938cd._0x31f540,0x501,_0x5938cd._0xd883ae)])[_0x114207(-0x56,-_0x5938cd._0x26f357,-0x40,-0x5a)](_0x5b5333=>_0x5b5333[_0x230942(0x4dd,0x4e1,0x4de,0x4cc)]==='tool_use');}function getToolResultBlocks(_0x5cdec7){const _0x4e1b6d={_0x134d2c:0x260},_0x2168b8={_0x2b7666:0x2f7};function _0x4f1492(_0xded6e,_0x401ca6,_0xbd2b1d,_0x161975){return _0x1b30(_0xded6e-_0x2168b8._0x2b7666,_0xbd2b1d);}function _0x191bd1(_0x37a4c1,_0x9556db,_0x125270,_0x3448e2){return _0x1b30(_0x9556db- -_0x4e1b6d._0x134d2c,_0x37a4c1);}return normalizeContent(_0x5cdec7?.['content'])['filter'](_0x241cd1=>_0x241cd1[_0x4f1492(0x3f8,0x409,0x3fd,0x3ff)]===_0x191bd1(-0x178,-0x169,-0x16b,-0x176));}function createToolResultUserMessage(_0x1ae7d3){const _0xee7bb9={_0x5b24e3:0xee,_0x22a4b1:0xe3,_0x333280:0x10a,_0x164e9f:0x104,_0x342995:0x111,_0x182725:0x391,_0x1f5d6b:0x352,_0x44a358:0x349,_0x26eabc:0xe7,_0x3f00bf:0x105,_0x35b87d:0x35d,_0x835ae5:0x359,_0x45fcf4:0x360,_0x3c03a8:0x35f};return{'role':'user','content':_0x1ae7d3['map'](_0x1a6060=>{const _0x1ff847={_0x544322:0x9};function _0x38bfdb(_0x31ebb3,_0x30301e,_0x28fe65,_0x3815da){return _0x1b30(_0x3815da-0x27a,_0x31ebb3);}function _0x112eec(_0xd470fe,_0x43660d,_0x3b6d21,_0x3d098d){return _0x1b30(_0xd470fe- -_0x1ff847._0x544322,_0x43660d);}return{'type':_0x112eec(_0xee7bb9._0x5b24e3,0xd2,_0xee7bb9._0x22a4b1,0x106),'tool_use_id':_0x1a6060[_0x112eec(_0xee7bb9._0x333280,_0xee7bb9._0x164e9f,0xf4,_0xee7bb9._0x342995)],'content':_0x1a6060[_0x38bfdb(0x38b,0x397,_0xee7bb9._0x182725,0x38a)]??_0x1a6060[_0x38bfdb(_0xee7bb9._0x1f5d6b,_0xee7bb9._0x44a358,0x35b,0x35b)],'is_error':_0x1a6060[_0x112eec(_0xee7bb9._0x26eabc,0xdc,_0xee7bb9._0x3f00bf,0xee)]===_0x38bfdb(_0xee7bb9._0x35b87d,_0xee7bb9._0x835ae5,_0xee7bb9._0x45fcf4,_0xee7bb9._0x3c03a8)};})};}var INTERRUPTED_TOOL_RESULT_TEXT='Tool\x20execution\x20was\x20interrupted\x20before\x20completion\x20and\x20produced\x20no\x20result.';function synthesizeMissingToolResults(_0x1fe073){const _0x412dc1={_0xcd9033:0x1cd,_0x432da4:0x1b8,_0x50a5df:0x1af,_0x10d3f2:0x215,_0x42e11c:0x1f8,_0x18b9bb:0x4ab,_0x4fab39:0x4ae,_0x25ba6d:0x493,_0x3f81f5:0x486,_0x25c118:0x499},_0x3363f8=new Set();for(const _0x1f5834 of _0x1fe073){for(const _0x8fb747 of getToolResultBlocks(_0x1f5834)){_0x3363f8['add'](_0x8fb747['tool_use_id']);}}const _0x59ed28=[];function _0x5e16f5(_0x13bba0,_0x177a18,_0x39af51,_0x31ac87){return _0x1b30(_0x177a18-0x389,_0x13bba0);}for(const _0x3e6d33 of _0x1fe073){_0x59ed28[_0x48905d(-0x1c0,-_0x412dc1._0xcd9033,-_0x412dc1._0x432da4,-_0x412dc1._0x50a5df)](_0x3e6d33);const _0x11af89=getToolUseBlocks(_0x3e6d33)[_0x5e16f5(0x468,0x47e,0x47f,0x46c)](_0x423a07=>!_0x3363f8[_0x48905d(-0x1d1,-0x1d5,-0x1be,-0x1c5)](_0x423a07['id']));if(_0x11af89['length']===0x0)continue;_0x59ed28['push']({'role':_0x48905d(-_0x412dc1._0x10d3f2,-_0x412dc1._0x42e11c,-0x1de,-0x218),'content':_0x11af89[_0x5e16f5(_0x412dc1._0x18b9bb,0x48f,_0x412dc1._0x4fab39,0x473)](_0x446bc0=>({'type':_0x48905d(-0x1ef,-0x1ec,-0x205,-0x1f3),'tool_use_id':_0x446bc0['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x1f516d of _0x11af89){_0x3363f8[_0x5e16f5(_0x412dc1._0x25ba6d,0x4a2,_0x412dc1._0x3f81f5,_0x412dc1._0x25c118)](_0x1f516d['id']);}}function _0x48905d(_0x4cf74e,_0x1fb7bd,_0x50fd81,_0x555e8b){return _0x1b30(_0x1fb7bd- -0x2e3,_0x555e8b);}return _0x59ed28;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
|
1
|
+
function _0x4027e0(_0x1e6add,_0x2a84d5,_0x7d826,_0x212716){const _0x532578={_0x444811:0xc7};return _0x3c5a(_0x7d826- -_0x532578._0x444811,_0x212716);}(function(_0x506d58,_0xcdf698){const _0x21d3e6={_0x1eb5de:0x4bc,_0x5c39b7:0x10b,_0x570dbd:0x10f,_0x2ec840:0xe5,_0x3fdea0:0x104,_0x205aaf:0x108,_0x1755ea:0xfd,_0x5c96d3:0x107,_0x12cad2:0x4be,_0x39f342:0x142,_0x20f094:0x14f,_0x37a260:0x4cf,_0x4dce01:0x4d1,_0x5e95a3:0x4bb,_0x4b7a57:0x123},_0x432b19={_0x200e4f:0x61};function _0x40cd85(_0x1992c,_0x4ea0a2,_0x376229,_0x4ac94a){return _0x3c5a(_0x4ea0a2- -_0x432b19._0x200e4f,_0x376229);}function _0x34e9ac(_0x5e6a89,_0xc3c790,_0x2fa77b,_0x149f5e){return _0x3c5a(_0x149f5e-0x349,_0x5e6a89);}const _0x5c4c7a=_0x506d58();while(!![]){try{const _0xdc81c8=-parseInt(_0x34e9ac(0x4da,0x4d9,0x4d7,0x4c7))/0x1+parseInt(_0x34e9ac(_0x21d3e6._0x1eb5de,0x4da,0x4c8,0x4c6))/0x2+parseInt(_0x40cd85(0xfa,0x103,_0x21d3e6._0x5c39b7,_0x21d3e6._0x570dbd))/0x3*(-parseInt(_0x40cd85(0x111,0x130,0x11a,0x130))/0x4)+-parseInt(_0x40cd85(_0x21d3e6._0x2ec840,_0x21d3e6._0x3fdea0,_0x21d3e6._0x205aaf,0xf6))/0x5*(parseInt(_0x40cd85(_0x21d3e6._0x1755ea,_0x21d3e6._0x5c96d3,0x121,0x100))/0x6)+parseInt(_0x34e9ac(_0x21d3e6._0x12cad2,0x4c5,0x4b9,0x4d8))/0x7+parseInt(_0x40cd85(_0x21d3e6._0x39f342,0x139,_0x21d3e6._0x20f094,0x156))/0x8+parseInt(_0x34e9ac(_0x21d3e6._0x37a260,0x4b1,_0x21d3e6._0x4dce01,_0x21d3e6._0x5e95a3))/0x9*(parseInt(_0x40cd85(0x130,0x121,_0x21d3e6._0x4b7a57,0x120))/0xa);if(_0xdc81c8===_0xcdf698)break;else _0x5c4c7a['push'](_0x5c4c7a['shift']());}catch(_0x1786f3){_0x5c4c7a['push'](_0x5c4c7a['shift']());}}}(_0x290e,0xd6390));function createTextBlock(_0x482c00){return{'type':'text','text':_0x482c00};}function normalizeTextBlock(_0x4ca21a){const _0xd3c47c={_0x1ea801:0x3df,_0x257339:0x3ea};function _0x5cb118(_0x26d572,_0x38201b,_0x526894,_0x269d4e){return _0x3c5a(_0x526894-0x25b,_0x26d572);}return createTextBlock(_0x4ca21a[_0x5cb118(_0xd3c47c._0x1ea801,_0xd3c47c._0x257339,0x3e5,0x3cb)]??'');}function normalizeContent(_0x1056e7){const _0x149d81={_0x5b74b7:0x61,_0x5c1223:0x71,_0x293400:0x8d,_0x4f092d:0x8f,_0x2caaf1:0x141,_0x12b841:0x14e},_0xd8838={_0x3fcf66:0x59,_0xeb86ad:0x71},_0x55ba84={_0x28f34c:0x10a,_0x421fa5:0x1cf},_0x11afb3={_0x231d66:0x3b},_0x12bbd6={_0x224016:0x207};if(typeof _0x1056e7===_0xc0f26f(-_0x149d81._0x5b74b7,-_0x149d81._0x5c1223,-_0x149d81._0x293400,-_0x149d81._0x4f092d))return[createTextBlock(_0x1056e7)];function _0xc0f26f(_0x5666d4,_0x21f097,_0x35f761,_0xaf5c21){return _0x3c5a(_0x21f097- -_0x12bbd6._0x224016,_0xaf5c21);}function _0x58d7f8(_0x3b6917,_0x2222af,_0x3cd1e7,_0x5f1d25){return _0x3c5a(_0x3cd1e7- -_0x11afb3._0x231d66,_0x2222af);}if(!Array[_0x58d7f8(0x123,0x15b,_0x149d81._0x2caaf1,_0x149d81._0x12b841)](_0x1056e7))return[];return _0x1056e7['map'](_0x534c74=>{if(_0x534c74['type']===_0x495f5b(0x6d,_0xd8838._0x3fcf66,0x45,_0xd8838._0xeb86ad))return normalizeTextBlock(_0x534c74);function _0x495f5b(_0x506596,_0x4ec62d,_0x3f109d,_0xb1b476){return _0xc0f26f(_0x506596-_0x55ba84._0x28f34c,_0x4ec62d-0xd6,_0x3f109d-_0x55ba84._0x421fa5,_0x506596);}return structuredClone(_0x534c74);});}function normalizeSystem(_0x5057e1=[]){const _0x314753={_0x13ec4d:0x449},_0x567bc9={_0x2da99d:0x7d};function _0x12460a(_0x26a7b0,_0x5ca002,_0xcc6061,_0x1e26bb){return _0x3c5a(_0x26a7b0-0x2cd,_0x1e26bb);}function _0x431f35(_0x520fd8,_0x32a671,_0x42fbb5,_0x3d9051){return _0x3c5a(_0x520fd8- -_0x567bc9._0x2da99d,_0x42fbb5);}return normalizeContent(_0x5057e1)[_0x12460a(0x453,0x462,0x453,_0x314753._0x13ec4d)](_0x4a959a=>_0x4a959a['type']===_0x431f35(0x10d,0xef,0x111,0xf8));}function isProviderStateCompatible(_0x1cb83b,_0x4e21c5){const _0x5ab4ba={_0x173741:0x108,_0x3a715d:0xec,_0xf94e5d:0x289,_0x5c9c0d:0x280,_0x1a05e8:0xe1,_0x24fcb8:0xd5,_0xdd93f1:0x103,_0x493b3d:0x124,_0x287200:0xe5},_0x5a41f3={_0x57e8f3:0xf2},_0x387c12={_0x15e801:0x278},_0x440959=_0x1cb83b[_0x42f86d(-0x107,-_0x5ab4ba._0x173741,-0xe7,-_0x5ab4ba._0x3a715d)]?.[_0x42f86d(-0xdf,-0xf2,-0xc3,-0xf0)];function _0x42f86d(_0x170956,_0x4d06a6,_0x2c19f2,_0x26ed1e){return _0x3c5a(_0x170956- -_0x387c12._0x15e801,_0x26ed1e);}function _0x5d512b(_0x1d88eb,_0x18c9e8,_0x1521a4,_0x10d6e5){return _0x3c5a(_0x1521a4-_0x5a41f3._0x57e8f3,_0x18c9e8);}return _0x440959===void 0x0||_0x440959===_0x4e21c5[_0x5d512b(_0x5ab4ba._0xf94e5d,0x264,0x284,_0x5ab4ba._0x5c9c0d)][_0x42f86d(-0xf4,-0x102,-_0x5ab4ba._0x1a05e8,-_0x5ab4ba._0x24fcb8)]||_0x440959===_0x4e21c5[_0x42f86d(-_0x5ab4ba._0xdd93f1,-0x10e,-_0x5ab4ba._0x493b3d,-_0x5ab4ba._0x287200)];}function normalizeMessage(_0x538a37){const _0x2c4881={_0x2b3a17:0x16b,_0xbaad65:0x15b,_0x1b69e1:0x16c,_0x2d7d0b:0x218,_0x26f613:0x212,_0x38d88e:0x165,_0x91b25b:0x155,_0x376836:0x147,_0x592784:0x14b,_0x1e4636:0x230},_0xa999ff={_0x4f37b6:0x397},_0x3ca01f={_0x3453e9:0x1f};function _0x4e179b(_0x3224b0,_0x39d6fb,_0x473054,_0x431880){return _0x3c5a(_0x3224b0- -_0x3ca01f._0x3453e9,_0x39d6fb);}function _0x32c85b(_0x19f359,_0x11e3e6,_0x47df0e,_0x22a5a6){return _0x3c5a(_0x22a5a6- -_0xa999ff._0x4f37b6,_0x19f359);}return{...typeof _0x538a37['id']===_0x4e179b(0x177,_0x2c4881._0x2b3a17,_0x2c4881._0xbaad65,_0x2c4881._0x1b69e1)?{'id':_0x538a37['id']}:{},'role':_0x538a37[_0x32c85b(-0x22a,-0x1f3,-_0x2c4881._0x2d7d0b,-_0x2c4881._0x26f613)],'content':normalizeContent(_0x538a37[_0x4e179b(0x171,0x174,_0x2c4881._0x38d88e,0x16c)]),..._0x538a37[_0x4e179b(0x152,_0x2c4881._0x91b25b,_0x2c4881._0x376836,_0x2c4881._0x592784)]?{'providerState':structuredClone(_0x538a37[_0x32c85b(-0x23a,-0x235,-_0x2c4881._0x1e4636,-0x226)])}:{}};}function compileRequest(_0x5573cb){const _0x34e683={_0x40c589:0x51,_0xb25a0e:0x6e,_0x1b2aa8:0x56,_0x550915:0x54,_0xb1f9da:0x73,_0x49315c:0x21c,_0xc5674c:0x1fe,_0x33ea45:0x1d9,_0x19cbf1:0x1f4,_0x51aa47:0x1d4,_0x406bd2:0x1d8,_0x3a873d:0x70},_0x46da61={_0xe996f4:0x360},_0xf6a63a={_0x30661f:0x11a};function _0x532110(_0x55bdaf,_0x58a09b,_0x5bcc9d,_0x40fdf8){return _0x3c5a(_0x58a09b- -_0xf6a63a._0x30661f,_0x55bdaf);}function _0x2c05f5(_0x6590d7,_0x31f33b,_0x3954b6,_0x2320d6){return _0x3c5a(_0x3954b6- -_0x46da61._0xe996f4,_0x31f33b);}return{'model':_0x5573cb['model']??'claude-sonnet-4-20250514',..._0x5573cb[_0x532110(_0x34e683._0x40c589,0x5d,0x6a,0x44)]!==void 0x0?{'max_tokens':_0x5573cb[_0x532110(_0x34e683._0xb25a0e,0x5d,0x4a,_0x34e683._0x1b2aa8)]}:{},..._0x5573cb[_0x532110(_0x34e683._0x550915,0x6d,_0x34e683._0xb1f9da,0x6e)]?{'reasoning':structuredClone(_0x5573cb['reasoning'])}:{},'system':normalizeSystem(_0x5573cb[_0x2c05f5(-0x1ed,-_0x34e683._0x49315c,-_0x34e683._0xc5674c,-0x209)]),'messages':_0x5573cb[_0x2c05f5(-0x209,-_0x34e683._0x33ea45,-_0x34e683._0x19cbf1,-0x200)]['map'](normalizeMessage),'tools':structuredClone(_0x5573cb['tools']??[]),'metadata':{'session_id':_0x5573cb[_0x2c05f5(-0x1de,-_0x34e683._0x51aa47,-_0x34e683._0x406bd2,-0x1c3)],'turn_id':_0x5573cb[_0x532110(0x95,0x7e,_0x34e683._0x3a873d,0x75)]}};}function toChatRequest(_0x1fe5a3){const _0x47a666={_0x468605:0x55,_0x2814cc:0x45,_0x1a30c4:0x49,_0x13fa46:0x3a,_0x2e9b8c:0x50,_0x546f49:0x49,_0x287c3a:0x34,_0x1dc170:0x60,_0x282c09:0x5e,_0x589cd1:0x65,_0x20b6e5:0x4d,_0x556e21:0x54,_0x1c4021:0x38,_0x5ba589:0x49,_0x727293:0x24,_0x56ff0a:0x35,_0x1931e3:0x32,_0x180de8:0x50,_0x4df776:0x3d,_0x4b0959:0x3f,_0x492a57:0x44,_0x30f078:0x32,_0x37d6df:0x17,_0x24df3c:0x25,_0x34ea15:0x1f,_0x529121:0x1f,_0x177be3:0x2e,_0x5ee93b:0x22,_0x179fa2:0x5a,_0x3216b2:0x57},_0x1a5bf3={_0x5dbfbf:0x1d0};function _0x2f3791(_0x59a88c,_0xe1b2c,_0x2ea711,_0x281819){return _0x3c5a(_0xe1b2c- -_0x1a5bf3._0x5dbfbf,_0x281819);}function _0x463259(_0x57e22b,_0x419c2b,_0x4399bd,_0x4ce074){return _0x3c5a(_0x419c2b- -0x1c0,_0x4399bd);}return{'model':_0x1fe5a3[_0x2f3791(-_0x47a666._0x468605,-0x5b,-0x49,-_0x47a666._0x2814cc)],..._0x1fe5a3[_0x463259(-0x5b,-_0x47a666._0x1a30c4,-_0x47a666._0x13fa46,-0x62)]!==void 0x0?{'maxTokens':_0x1fe5a3[_0x2f3791(-0x78,-0x59,-0x4a,-_0x47a666._0x2e9b8c)]}:{},..._0x1fe5a3[_0x2f3791(-0x4a,-_0x47a666._0x546f49,-0x2b,-_0x47a666._0x287c3a)]?{'reasoning':structuredClone(_0x1fe5a3[_0x463259(-0x36,-0x39,-0x2f,-0x55)])}:{},'system':structuredClone(_0x1fe5a3[_0x463259(-_0x47a666._0x1dc170,-_0x47a666._0x282c09,-_0x47a666._0x589cd1,-0x57)]),'messages':structuredClone(_0x1fe5a3[_0x463259(-_0x47a666._0x20b6e5,-_0x47a666._0x556e21,-_0x47a666._0x1c4021,-_0x47a666._0x5ba589)]),'tools':structuredClone(_0x1fe5a3[_0x463259(-_0x47a666._0x727293,-0x34,-0x24,-0x47)]),'metadata':{'sessionId':_0x1fe5a3[_0x2f3791(-0x25,-0x3e,-0x40,-_0x47a666._0x56ff0a)][_0x2f3791(-_0x47a666._0x1931e3,-_0x47a666._0x180de8,-0x66,-0x5f)],'turnId':_0x1fe5a3['metadata'][_0x2f3791(-0x72,-0x6f,-0x7f,-0x8f)],..._0x1fe5a3['metadata'][_0x2f3791(-0x40,-0x42,-_0x47a666._0x4df776,-0x37)]!==void 0x0?{'modelIdentity':_0x1fe5a3[_0x463259(-0x4a,-0x2e,-_0x47a666._0x4b0959,-0x34)][_0x463259(-_0x47a666._0x492a57,-_0x47a666._0x30f078,-_0x47a666._0x37d6df,-0x12)]}:{},..._0x1fe5a3[_0x463259(-_0x47a666._0x24df3c,-0x2e,-0x2b,-_0x47a666._0x34ea15)]['pricing_provider_id']!==void 0x0?{'pricingProviderId':_0x1fe5a3[_0x463259(-_0x47a666._0x529121,-_0x47a666._0x177be3,-_0x47a666._0x5ee93b,-_0x47a666._0x20b6e5)][_0x463259(-0x58,-_0x47a666._0x179fa2,-0x5a,-_0x47a666._0x3216b2)]}:{}},..._0x1fe5a3['outputFormat']?{'outputFormat':structuredClone(_0x1fe5a3['outputFormat'])}:{}};}function toModelRequest(_0x1812bc){const _0x4404e4={_0x3da433:0x145,_0x4f10f2:0x155,_0x5e4389:0xde,_0x27bb2f:0x152,_0x365749:0x118,_0x28e529:0x14b,_0x51ba20:0x16f,_0x279222:0x162,_0xda6399:0xdc,_0x32bb7a:0xe7,_0x4b89dd:0xe8,_0x1e13b4:0x149,_0x292208:0x163,_0x488529:0x176,_0x48deca:0x134,_0xb69a4d:0x12f,_0x22f30e:0x11a,_0x579852:0xce,_0x13fa77:0xfa,_0xf421d9:0xcd},_0x33a36f={_0x58d89b:0x27a};function _0xaba1d6(_0x4d467a,_0x5ba406,_0x20a68a,_0xb4e8da){return _0x3c5a(_0xb4e8da- -0x21,_0x4d467a);}function _0x2387f6(_0x520277,_0x1c36b7,_0x4574b6,_0x54c558){return _0x3c5a(_0x54c558- -_0x33a36f._0x58d89b,_0x4574b6);}return{'model':_0x1812bc[_0xaba1d6(0x15e,_0x4404e4._0x3da433,0x14a,0x154)],..._0x1812bc[_0xaba1d6(0x152,0x14c,_0x4404e4._0x4f10f2,0x14d)]!==void 0x0?{'max_tokens':_0x1812bc['maxTokens']}:{},..._0x1812bc[_0x2387f6(-0xdd,-0x104,-_0x4404e4._0x5e4389,-0xf3)]?{'reasoning':structuredClone(_0x1812bc[_0xaba1d6(0x14b,0x15b,_0x4404e4._0x27bb2f,0x166)])}:{},'system':structuredClone(_0x1812bc[_0x2387f6(-0x12d,-0x11b,-0x131,-_0x4404e4._0x365749)]),'messages':structuredClone(_0x1812bc[_0xaba1d6(0x165,0x137,0x168,_0x4404e4._0x28e529)]),'tools':structuredClone(_0x1812bc[_0xaba1d6(_0x4404e4._0x51ba20,0x16f,_0x4404e4._0x279222,0x16b)]),'metadata':{'session_id':_0x1812bc[_0x2387f6(-_0x4404e4._0xda6399,-0xe4,-0x105,-0xe8)]['sessionId'],'turn_id':_0x1812bc[_0x2387f6(-0xf9,-_0x4404e4._0x32bb7a,-0x109,-_0x4404e4._0x4b89dd)]['turnId'],..._0x1812bc[_0x2387f6(-0xee,-0xcd,-0xdd,-_0x4404e4._0x4b89dd)][_0xaba1d6(0x14b,0x171,_0x4404e4._0x1e13b4,_0x4404e4._0x292208)]!==void 0x0?{'model_identity':_0x1812bc[_0xaba1d6(0x161,_0x4404e4._0x488529,0x15d,0x171)][_0xaba1d6(0x14d,0x14d,0x155,0x163)]}:{},..._0x1812bc['metadata'][_0x2387f6(-_0x4404e4._0x48deca,-0x131,-_0x4404e4._0xb69a4d,-_0x4404e4._0x22f30e)]!==void 0x0?{'pricing_provider_id':_0x1812bc[_0x2387f6(-0xf8,-0xf2,-_0x4404e4._0x579852,-0xe8)]['pricingProviderId']}:{}},..._0x1812bc['outputFormat']?{'outputFormat':structuredClone(_0x1812bc[_0x2387f6(-0x10c,-_0x4404e4._0x13fa77,-_0x4404e4._0xf421d9,-0xed)])}:{}};}function toProviderModelRequest(_0x1319b8){const _0x1cf316={_0x179630:0x5a,_0xd31e24:0x6c,_0x2a4a07:0x6f,_0x2a6454:0x76,_0x47827f:0x5f,_0x890fa5:0x62,_0x13ad4a:0x61,_0xdfe3c7:0x435,_0x1cc53c:0x408,_0x39a4ab:0x433,_0x5607ff:0x41f,_0x40f369:0x43f},_0x7e7296={_0x254a3c:0x2b3};function _0x57b595(_0x1b12d9,_0x1b7da9,_0x317f18,_0x6dfbcf){return _0x3c5a(_0x317f18-_0x7e7296._0x254a3c,_0x1b7da9);}function _0x584811(_0x22f276,_0xfbd8da,_0x4c9bfe,_0x455c49){return _0x3c5a(_0x455c49- -0x1e4,_0x22f276);}return{'model':_0x1319b8[_0x584811(-0x71,-_0x1cf316._0x179630,-_0x1cf316._0xd31e24,-_0x1cf316._0x2a4a07)],..._0x1319b8[_0x584811(-0x68,-0x8b,-0x83,-_0x1cf316._0x2a6454)]!==void 0x0?{'max_tokens':_0x1319b8[_0x584811(-_0x1cf316._0x47827f,-_0x1cf316._0x890fa5,-_0x1cf316._0x13ad4a,-0x76)]}:{},'system':structuredClone(_0x1319b8[_0x57b595(_0x1cf316._0xdfe3c7,0x436,0x415,_0x1cf316._0x1cc53c)]),'messages':structuredClone(_0x1319b8[_0x57b595(0x400,_0x1cf316._0x39a4ab,_0x1cf316._0x5607ff,0x42c)]),'tools':structuredClone(_0x1319b8[_0x57b595(0x43c,0x430,_0x1cf316._0x40f369,0x446)])};}function toChatResponse(_0x4d7f65){const _0x2ff070={_0x5e006c:0x205,_0x2bd1f4:0x228,_0x1ddce7:0x1fd,_0x415e9f:0x212,_0x5af902:0x212,_0x2f9aa6:0x20f,_0x3797f0:0x225,_0x732864:0x1db,_0x53cacd:0x1e3,_0x1d8a84:0x4ab,_0x4607e9:0x4c8,_0x2fff11:0x4a5,_0x1b4acc:0x207,_0x46e356:0x218,_0x499876:0x215,_0x5f4240:0x4e2,_0x2f813f:0x4cf,_0x5c1cdf:0x4c9,_0x2c5703:0x4cd,_0x5e2a02:0x4d3,_0x3d010c:0x4c4,_0x13c642:0x4e4,_0x367035:0x1e5,_0x235f59:0x1f5},_0x30acec={_0x10fad7:0x363};function _0x263c25(_0x383980,_0x24bc5e,_0x3c8042,_0x49ba47){return _0x3c5a(_0x3c8042-_0x30acec._0x10fad7,_0x49ba47);}function _0x451f50(_0x15e8a7,_0x4cd526,_0x4a35b9,_0x5c5f6c){return _0x3c5a(_0x4cd526- -0x371,_0x15e8a7);}return{'id':_0x4d7f65['id'],'content':structuredClone(_0x4d7f65['content']),'stopReason':_0x4d7f65['stop_reason'],'usage':{'inputTokens':_0x4d7f65[_0x451f50(-_0x2ff070._0x5e006c,-0x212,-_0x2ff070._0x2bd1f4,-_0x2ff070._0x1ddce7)]['input_tokens'],'outputTokens':_0x4d7f65[_0x451f50(-_0x2ff070._0x415e9f,-_0x2ff070._0x5af902,-_0x2ff070._0x2f9aa6,-_0x2ff070._0x3797f0)][_0x451f50(-_0x2ff070._0x732864,-0x1d4,-_0x2ff070._0x53cacd,-0x1c1)],..._0x4d7f65[_0x263c25(_0x2ff070._0x1d8a84,_0x2ff070._0x4607e9,0x4c2,_0x2ff070._0x2fff11)][_0x451f50(-0x1ec,-_0x2ff070._0x1b4acc,-_0x2ff070._0x46e356,-_0x2ff070._0x499876)]!==void 0x0?{'reasoningTokens':_0x4d7f65[_0x263c25(0x4c8,_0x2ff070._0x5f4240,0x4c2,0x4bf)][_0x263c25(_0x2ff070._0x2f813f,_0x2ff070._0x5c1cdf,_0x2ff070._0x2c5703,_0x2ff070._0x5e2a02)]}:{}},..._0x4d7f65[_0x263c25(0x4cc,_0x2ff070._0x3d010c,0x4d4,_0x2ff070._0x13c642)]?{'providerState':structuredClone(_0x4d7f65[_0x451f50(-_0x2ff070._0x367035,-0x200,-_0x2ff070._0x235f59,-0x1ed)])}:{}};}function toModelResponse(_0x3e6c37){const _0x1c9c10={_0x330ebb:0x3dc,_0x46cf60:0x3bc,_0x47d6da:0x1db,_0x12b854:0x1be,_0xfc8a6:0x1f8,_0xce34de:0x1e2,_0x3fae2b:0x3c1,_0x49c6f0:0x3ca,_0x36d5a6:0x1d5,_0x1cd626:0x3a3,_0x4e3566:0x3a9,_0x19a9fa:0x3ad,_0x362e89:0x3bf,_0x166411:0x3a4,_0x36d9a5:0x3b4,_0xd480b8:0x3bb,_0x1820d9:0x3a6,_0x1a66cd:0x3cc,_0x10ddde:0x3ab},_0x333daa={_0x539c94:0x5e};function _0x30cd9f(_0x423153,_0x576076,_0x257d7d,_0x1b34fd){return _0x3c5a(_0x576076-_0x333daa._0x539c94,_0x1b34fd);}function _0xf57fd(_0x15a676,_0x10400b,_0x4d3ad5,_0x51855f){return _0x3c5a(_0x10400b-0x245,_0x15a676);}return{'id':_0x3e6c37['id'],'type':_0xf57fd(0x3f1,_0x1c9c10._0x330ebb,0x3ca,_0x1c9c10._0x46cf60),'role':_0x30cd9f(_0x1c9c10._0x47d6da,0x1d2,_0x1c9c10._0x12b854,0x1dc),'content':structuredClone(_0x3e6c37[_0x30cd9f(0x1fd,0x1ee,_0x1c9c10._0xfc8a6,_0x1c9c10._0xce34de)]),'stop_reason':_0x3e6c37[_0xf57fd(_0x1c9c10._0x3fae2b,0x3da,_0x1c9c10._0x49c6f0,0x3f0)],'stop_sequence':null,'usage':{'input_tokens':_0x3e6c37[_0x30cd9f(_0x1c9c10._0x36d5a6,0x1bd,0x1af,0x1bf)][_0xf57fd(0x3be,_0x1c9c10._0x1cd626,_0x1c9c10._0x4e3566,_0x1c9c10._0x19a9fa)],'output_tokens':_0x3e6c37[_0xf57fd(_0x1c9c10._0x362e89,_0x1c9c10._0x166411,0x393,0x3bf)]['outputTokens'],..._0x3e6c37['usage']['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x3e6c37['usage'][_0xf57fd(_0x1c9c10._0x36d9a5,_0x1c9c10._0xd480b8,0x3cf,_0x1c9c10._0x1820d9)]}:{}},..._0x3e6c37[_0xf57fd(0x3bb,0x3b6,0x3b4,0x39f)]?{'providerState':structuredClone(_0x3e6c37[_0xf57fd(_0x1c9c10._0x1a66cd,0x3b6,0x3bd,_0x1c9c10._0x10ddde)])}:{}};}function _0x290e(){const _0x29fdd6=['mJeYmdu5ofrMsfryzq','odCXntG0vuDXy0Pf','ywrK','C2vZC2LVBL9Pza','zw5JCNLWDgvKq29UDgvUDa','ntG2mZKWAMffAevJ','DxnLCG','Bw9KzwXjzgvUDgL0Eq','CM9Szq','zMLSDgvY','CMvHC29UAw5N','C2vZC2LVBKLK','C3vTBwfYEq','Dgv4Da','B3bLBMfPx3jLyxnVBMLUzW','Dg9VBhm','B3v0Chv0rM9YBwf0','Bw9KzwXFAwrLBNrPDhK','mtG4mdCZoujNwvjSEq','y29UDgvUDa','nJK0nZa4tw1xD0n1','Bwv0ywrHDge','DgHPBMTPBMC','DhjPBq','C3rVCfjLyxnVBG','C3rYAw5N','BwvZC2fNzq','DhvYBKLK','B3jPz2LUtw9KzwXjzgvUDgL0Eq','mZC3mJm0neXZtgXjCa','BwfW','zxjYB3i','B3v0Chv0x3rVA2vUCW','DhLWzq','Aw5WDxruB2TLBNm','DxnHz2u','ChjPy2LUz1bYB3zPzgvYswq','DhvYBL9Pza','C3LZDgvT','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ovfUq09nBq','nvHxrNPqCq','ChjPy2LUz19WCM92AwrLCL9Pza','B3v0Chv0','mZq5mtK0wLziruTO','Dg9VBf9Yzxn1Bhq','CMvHC29UAw5Nx3rVA2vUCW','yw50AhjVCgLJx3rOAw5RAw5N','BwvZC2fNzxm','BgvUz3rO','Bwf4vg9Rzw5Z','Dg9VBf91C2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','ChjVDMLKzxjtDgf0zq','odfdC0vHqMK','AM9PBG','yxnZAxn0yw50','Bw9KzwW','CMvHC29UAw5Nvg9Rzw5Z','Bwf4x3rVA2vUCW','zMXHDe1HCa','y2fSBeLK','ChvZAa','C3rHDhvZ','AxnbCNjHEq'];_0x290e=function(){return _0x29fdd6;};return _0x290e();}function responseToAssistantMessage(_0x54424a){const _0x579bb6={_0x5be379:0x2ad,_0x3e5c94:0x2b1,_0x180302:0x2ad,_0x15f69f:0x2b4,_0x466466:0xc9,_0x5bca42:0xe3,_0x28ec01:0xd4,_0x426d95:0xc4,_0x3135b6:0x2a4,_0x1d0250:0x2be};function _0x47c3be(_0x398baf,_0x3a235e,_0x97f09b,_0x29003b){return _0x3c5a(_0x398baf-0x139,_0x29003b);}function _0x1c45e8(_0x6c2c67,_0x279f32,_0x5d5ce0,_0x334367){return _0x3c5a(_0x5d5ce0- -0xad,_0x6c2c67);}return{'role':_0x47c3be(_0x579bb6._0x5be379,_0x579bb6._0x3e5c94,_0x579bb6._0x180302,_0x579bb6._0x15f69f),'content':normalizeContent(_0x54424a[_0x1c45e8(0xcd,_0x579bb6._0x466466,_0x579bb6._0x5bca42,0xfc)]),..._0x54424a[_0x1c45e8(_0x579bb6._0x28ec01,0xc1,_0x579bb6._0x426d95,0xce)]?{'providerState':structuredClone(_0x54424a[_0x47c3be(0x2aa,_0x579bb6._0x3135b6,_0x579bb6._0x3e5c94,_0x579bb6._0x1d0250)])}:{}};}function createReasoningMessage(_0x542b2f){const _0x211549={_0x180ffb:0x45f,_0x61fbf2:0x446,_0xcbe56b:0x44b,_0xf00748:0x443,_0x47d756:0x448},_0x3a55b0={_0x20955f:0xf0},_0x505f0c={_0x5cd85c:0x2cf},_0x20d3a3={_0x276a57:0xe0,_0x54d167:0xff,_0x28e12d:0x113,_0x2d73c8:0x11a,_0x24752a:0x120,_0x1fbd13:0x210,_0x51da9d:0x120,_0x3c4a07:0x11f,_0x23f99e:0x123,_0x2658cf:0x108,_0x214586:0x1eb,_0x32a821:0x205},_0x3b92b1=normalizeContent(_0x542b2f?.[_0x6f7c72(0x47d,0x443,_0x211549._0x180ffb,_0x211549._0x61fbf2)])['filter'](_0x416dc=>{const _0x54eda2={_0x43a1a7:0x16e,_0x13f674:0x268,_0x222146:0xe7},_0x52e239={_0x4850f3:0x559,_0x4a6829:0x13c};function _0x393b53(_0x5b0a22,_0x43261a,_0x44d9ae,_0x9276b3){return _0x6f7c72(_0x5b0a22-0x163,_0x9276b3,_0x43261a- -_0x52e239._0x4850f3,_0x9276b3-_0x52e239._0x4a6829);}function _0x53c503(_0x6b3d70,_0x4d2d6c,_0x5d74b8,_0x112050){return _0x6f7c72(_0x6b3d70-_0x54eda2._0x43a1a7,_0x5d74b8,_0x112050- -_0x54eda2._0x13f674,_0x112050-_0x54eda2._0x222146);}return _0x416dc[_0x393b53(-0xf3,-0xec,-_0x20d3a3._0x276a57,-_0x20d3a3._0x54d167)]===_0x393b53(-_0x20d3a3._0x28e12d,-_0x20d3a3._0x2d73c8,-_0x20d3a3._0x24752a,-0x109)||_0x416dc[_0x53c503(0x214,_0x20d3a3._0x1fbd13,0x20d,0x205)]===_0x393b53(-_0x20d3a3._0x51da9d,-_0x20d3a3._0x3c4a07,-_0x20d3a3._0x23f99e,-_0x20d3a3._0x2658cf)||_0x416dc[_0x53c503(0x1f4,0x1ef,_0x20d3a3._0x214586,_0x20d3a3._0x32a821)]==='openai_reasoning';});function _0x6f7c72(_0x10d5f7,_0x261574,_0x4d7da8,_0xddae26){return _0x3c5a(_0x4d7da8-_0x505f0c._0x5cd85c,_0x261574);}if(_0x3b92b1['length']===0x0)return void 0x0;function _0x50b36d(_0x41bb45,_0x2ca45f,_0x24a7eb,_0x406ef8){return _0x3c5a(_0x2ca45f-_0x3a55b0._0x20955f,_0x24a7eb);}return{'role':_0x6f7c72(_0x211549._0xcbe56b,0x436,_0x211549._0xf00748,_0x211549._0x47d756),'content':_0x3b92b1};}function createAssistantTextMessage(_0x2978b9){const _0x2430bb={_0x564fdb:0xd2,_0x220675:0xc5,_0x3bbcb1:0xc1,_0x47ca8e:0x81,_0x368189:0x70},_0xc4faaa={_0x3604e4:0x186},_0x22cbe1={_0x173f50:0xd5,_0x3b0d74:0xfb},_0x4d9fdc=normalizeContent(_0x2978b9?.['content'])[_0x15e7f2(-_0x2430bb._0x564fdb,-0xb4,-_0x2430bb._0x220675,-_0x2430bb._0x3bbcb1)](_0x552b74=>{function _0x12442e(_0x73da30,_0x3959da,_0x2d27fa,_0x2cd448){return _0x15e7f2(_0x3959da,_0x3959da-_0x22cbe1._0x173f50,_0x2cd448-0x237,_0x2cd448-_0x22cbe1._0x3b0d74);}return _0x552b74['type']===_0x12442e(_0xc4faaa._0x3604e4,0x15e,0x164,0x176);});if(_0x4d9fdc[_0x58ac26(_0x2430bb._0x47ca8e,_0x2430bb._0x47ca8e,_0x2430bb._0x368189,0x55)]===0x0)return void 0x0;function _0x58ac26(_0xffc8e0,_0x599822,_0x9f62af,_0x455a58){return _0x3c5a(_0x9f62af- -0xfd,_0xffc8e0);}function _0x15e7f2(_0x134489,_0x573339,_0x1311d4,_0x4f13e1){return _0x3c5a(_0x1311d4- -0x24b,_0x134489);}return{'role':'assistant','content':_0x4d9fdc};}function createToolUseMessage(_0x17cf46){const _0x240f96={_0x1f14a4:0xc8,_0x5d6cdb:0x100,_0x401386:0xfe,_0x43b49a:0xea,_0x68e26c:0xef,_0x4fa3b9:0xf5,_0x58602c:0x103,_0x35c4e1:0x1ef,_0x4fa22e:0x1d4},_0xd0ebef={_0x2d084d:0x270},_0x1c17b7={_0x537c56:0x3d7,_0x2b87ec:0x39b,_0x4c4694:0x399},_0x203218={_0x25a152:0x16b},_0x754985={_0x4392f2:0x363};function _0x5edb4c(_0x5b6503,_0x158da3,_0xab19f9,_0x3e3115){return _0x3c5a(_0x5b6503- -_0x754985._0x4392f2,_0x158da3);}const _0x35f2f0=normalizeContent(_0x17cf46?.[_0x192c7a(-0xc0,-_0x240f96._0x1f14a4,-0xfc,-0xe0)])[_0x192c7a(-0xeb,-_0x240f96._0x5d6cdb,-_0x240f96._0x401386,-_0x240f96._0x43b49a)](_0x41747f=>{const _0x347a40={_0x25de8c:0x13a,_0x2c53a7:0x49c};function _0x230a87(_0x707846,_0x3496c7,_0x167cea,_0x28fb04){return _0x192c7a(_0x28fb04,_0x3496c7-0xef,_0x167cea-_0x347a40._0x25de8c,_0x3496c7-_0x347a40._0x2c53a7);}function _0x14f434(_0x4c0e25,_0x126286,_0x193e92,_0x3574d0){return _0x192c7a(_0x126286,_0x126286-_0x203218._0x25a152,_0x193e92-0x193,_0x4c0e25-0x356);}return _0x41747f[_0x230a87(0x3e7,0x3ca,_0x1c17b7._0x537c56,0x3c2)]===_0x230a87(0x3aa,_0x1c17b7._0x2b87ec,0x396,_0x1c17b7._0x4c4694);});if(_0x35f2f0[_0x192c7a(-0x11b,-_0x240f96._0x68e26c,-_0x240f96._0x4fa3b9,-_0x240f96._0x58602c)]===0x0)return void 0x0;function _0x192c7a(_0x54b619,_0x3ab00c,_0x11475b,_0x7b30){return _0x3c5a(_0x7b30- -_0xd0ebef._0x2d084d,_0x54b619);}return{'role':_0x5edb4c(-_0x240f96._0x35c4e1,-_0x240f96._0x4fa22e,-0x1d2,-0x1e4),'content':_0x35f2f0};}function getTextFromMessage(_0x4c90aa){const _0x3745ed={_0x42598e:0x37,_0x2af8d5:0x24,_0x35eba2:0x1e,_0xa8b17e:0x1b};function _0x4230ea(_0x41083c,_0x1fa573,_0x1d26db,_0x454ece){return _0x3c5a(_0x1fa573- -0x16c,_0x1d26db);}function _0x2776fa(_0x1b8612,_0x52268e,_0x15bc81,_0x1354d6){return _0x3c5a(_0x15bc81-0x254,_0x1354d6);}return normalizeContent(_0x4c90aa?.[_0x4230ea(_0x3745ed._0x42598e,_0x3745ed._0x2af8d5,_0x3745ed._0x35eba2,_0x3745ed._0xa8b17e)])['filter'](_0x513616=>_0x513616[_0x4230ea(0x17,0x32,0x2b,0x33)]===_0x4230ea(0x38,0x1e,0x2b,0x2e))[_0x4230ea(0x23,0x2f,0x33,0x29)](_0x13718d=>_0x13718d[_0x2776fa(0x3c2,0x3f2,0x3de,0x3e5)])['join']('\x0a');}function getReasoningTextFromMessage(_0x15fc09){const _0x3509d7={_0x29c707:0x30,_0x77cf3f:0x3b,_0x33791c:0x331,_0x3dd669:0x33d,_0x240415:0x34e,_0x3708de:0x33b},_0x14ed0a={_0x5810bc:0x31e,_0x3f6bdb:0x319,_0xe19f7:0x310,_0x1f7d9e:0x307,_0x54027c:0x342,_0x40e162:0x316,_0x29ebe5:0x41b,_0x7ea393:0x2f5,_0x33894b:0x2ff,_0x18f12a:0x309,_0x2f23a1:0x414,_0x3a2e85:0x432,_0x1b642a:0x31b,_0x27fd1b:0x31d,_0x26645c:0x41a,_0x4fc812:0x407,_0x15fad9:0x43a,_0x298c17:0x322,_0x33625f:0x332,_0x5c3c5f:0x30b,_0x56dfbd:0x327,_0x40b60b:0x425,_0x4a4902:0x40a,_0x4252c2:0x3f2,_0x34b2b1:0x40a,_0x556807:0x3ec,_0x223482:0x3f4,_0x1dbda1:0x3f6,_0x476620:0x3f9,_0x56e00e:0x3dc,_0x4ff81c:0x40b,_0x3562f6:0x2f2,_0xb66e21:0x2ef,_0x1639c4:0x307,_0x4c1240:0x321,_0x529e96:0x3ec,_0x286748:0x403},_0x2e534b={_0x55f79e:0x160},_0x3fc8c6={_0x1d4dc7:0x49},_0x49fc25={_0x4b3b8b:0x1d6};function _0x3dedf6(_0x3650d2,_0x5863f5,_0x46e953,_0x401ac1){return _0x3c5a(_0x46e953- -0x146,_0x401ac1);}function _0x4c19d5(_0x57968c,_0x63552d,_0x28daab,_0x146ff5){return _0x3c5a(_0x28daab-_0x49fc25._0x4b3b8b,_0x146ff5);}return normalizeContent(_0x15fc09?.[_0x3dedf6(_0x3509d7._0x29c707,0x3c,0x4a,_0x3509d7._0x77cf3f)])[_0x4c19d5(_0x3509d7._0x33791c,_0x3509d7._0x3dd669,_0x3509d7._0x240415,_0x3509d7._0x3708de)](_0x4b3b25=>{if(_0x4b3b25[_0xa0a2f5(_0x14ed0a._0x5810bc,_0x14ed0a._0x3f6bdb,0x32f,0x33a)]===_0xa0a2f5(0x2ef,_0x14ed0a._0xe19f7,0x2f0,_0x14ed0a._0x1f7d9e))return _0x4b3b25[_0xa0a2f5(_0x14ed0a._0x54027c,_0x14ed0a._0x40e162,0x329,0x32f)][_0x5e7d73(0x3f8,0x415,_0x14ed0a._0x29ebe5,0x408)]()[_0xa0a2f5(_0x14ed0a._0x7ea393,_0x14ed0a._0x33894b,0x327,_0x14ed0a._0x18f12a)]>0x0?[_0x4b3b25[_0x5e7d73(0x414,_0x14ed0a._0x2f23a1,0x3f5,_0x14ed0a._0x3a2e85)]]:[];if(_0x4b3b25['type']===_0xa0a2f5(0x2f7,_0x14ed0a._0x1b642a,_0x14ed0a._0x27fd1b,0x30c))return['(redacted\x20reasoning)'];if(_0x4b3b25[_0x5e7d73(_0x14ed0a._0x26645c,0x41f,_0x14ed0a._0x4fc812,_0x14ed0a._0x15fad9)]!==_0xa0a2f5(_0x14ed0a._0x298c17,_0x14ed0a._0x33625f,_0x14ed0a._0x5c3c5f,_0x14ed0a._0x56dfbd))return[];const _0x565073=_0x4b3b25[_0x5e7d73(_0x14ed0a._0x40b60b,_0x14ed0a._0x4a4902,_0x14ed0a._0x4252c2,_0x14ed0a._0x34b2b1)][_0x5e7d73(0x406,0x41c,0x401,0x3fb)](_0x315682=>_0x315682[_0x5e7d73(0x3f8,0x40b,0x411,0x417)])['filter'](_0x199da6=>_0x199da6['trim']()[_0x5e7d73(0x406,0x3ee,0x3d2,0x3fe)]>0x0)[_0x5e7d73(_0x14ed0a._0x556807,_0x14ed0a._0x223482,_0x14ed0a._0x1dbda1,_0x14ed0a._0x476620)]('\x0a\x0a');function _0xa0a2f5(_0x1e214d,_0x4366b6,_0x2b9789,_0x5dfa6c){return _0x4c19d5(_0x1e214d-_0x3fc8c6._0x1d4dc7,_0x4366b6-0xd9,_0x5dfa6c- -0x3a,_0x4366b6);}function _0x5e7d73(_0x329842,_0x3b8460,_0x22ea37,_0x1b9148){return _0x3dedf6(_0x329842-0x1f3,_0x3b8460-_0x2e534b._0x55f79e,_0x3b8460-0x3c7,_0x1b9148);}if(_0x565073[_0x5e7d73(0x3f6,0x3ee,_0x14ed0a._0x56e00e,_0x14ed0a._0x4ff81c)]>0x0)return[_0x565073];if(_0x4b3b25['text']&&_0x4b3b25['text'][_0xa0a2f5(0x318,0x33f,0x34d,0x330)]()[_0xa0a2f5(_0x14ed0a._0x3562f6,_0x14ed0a._0xb66e21,0x310,_0x14ed0a._0x18f12a)]>0x0)return[_0x4b3b25[_0xa0a2f5(_0x14ed0a._0x1639c4,_0x14ed0a._0x4c1240,0x320,0x326)]];return _0x4b3b25[_0x5e7d73(_0x14ed0a._0x529e96,0x402,_0x14ed0a._0x286748,_0x14ed0a._0x4ff81c)]?['(encrypted\x20reasoning)']:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x312ede){const _0x4f0233={_0x299a2e:0x39c,_0x4654f4:0x388,_0x5a62af:0x382,_0x10b3a5:0x3af,_0x1c9045:0x373};function _0x37e630(_0x2f2c41,_0x52fefc,_0x3967f6,_0x2e6dbe){return _0x3c5a(_0x52fefc- -0x184,_0x2f2c41);}function _0x7b4173(_0x317c82,_0xa9ec10,_0x14e546,_0xd3c59){return _0x3c5a(_0x317c82-0x208,_0x14e546);}return normalizeContent(_0x312ede?.[_0x7b4173(0x398,_0x4f0233._0x299a2e,_0x4f0233._0x4654f4,_0x4f0233._0x5a62af)])[_0x7b4173(0x38e,_0x4f0233._0x10b3a5,_0x4f0233._0x1c9045,0x390)](_0x136e39=>_0x136e39[_0x37e630(0x32,0x1a,0x3a,0x34)]==='tool_use');}function _0x3c5a(_0x5a21da,_0x572ea9){_0x5a21da=_0x5a21da-0x15e;const _0x290e59=_0x290e();let _0x3c5af0=_0x290e59[_0x5a21da];if(_0x3c5a['eklcBS']===undefined){var _0x2d12ba=function(_0x479d45){const _0x3c3987='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x482c00='',_0x4ca21a='';for(let _0x1056e7=0x0,_0x534c74,_0x5057e1,_0x4a959a=0x0;_0x5057e1=_0x479d45['charAt'](_0x4a959a++);~_0x5057e1&&(_0x534c74=_0x1056e7%0x4?_0x534c74*0x40+_0x5057e1:_0x5057e1,_0x1056e7++%0x4)?_0x482c00+=String['fromCharCode'](0xff&_0x534c74>>(-0x2*_0x1056e7&0x6)):0x0){_0x5057e1=_0x3c3987['indexOf'](_0x5057e1);}for(let _0x1cb83b=0x0,_0x4e21c5=_0x482c00['length'];_0x1cb83b<_0x4e21c5;_0x1cb83b++){_0x4ca21a+='%'+('00'+_0x482c00['charCodeAt'](_0x1cb83b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4ca21a);};_0x3c5a['CWbFBj']=_0x2d12ba,_0x3c5a['uKYgiF']={},_0x3c5a['eklcBS']=!![];}const _0x107835=_0x290e59[0x0],_0xce25ee=_0x5a21da+_0x107835,_0x4ed322=_0x3c5a['uKYgiF'][_0xce25ee];return!_0x4ed322?(_0x3c5af0=_0x3c5a['CWbFBj'](_0x3c5af0),_0x3c5a['uKYgiF'][_0xce25ee]=_0x3c5af0):_0x3c5af0=_0x4ed322,_0x3c5af0;}function getToolResultBlocks(_0x3b3890){const _0x95e79a={_0xd67643:0x178,_0x3e32f0:0x14e,_0x340c52:0x50d},_0x402d5c={_0x1cf1b2:0x2fd},_0x5e5666={_0x7f1307:0x391};function _0x16b88b(_0x3d6995,_0x5c7a64,_0x2c9b88,_0x1019f6){return _0x3c5a(_0x3d6995-_0x5e5666._0x7f1307,_0x2c9b88);}function _0x4c7954(_0xdddcc1,_0x36a017,_0xcf2500,_0x5c8e35){return _0x3c5a(_0x36a017- -_0x402d5c._0x1cf1b2,_0x5c8e35);}return normalizeContent(_0x3b3890?.[_0x4c7954(-_0x95e79a._0xd67643,-0x16d,-_0x95e79a._0x3e32f0,-0x14e)])[_0x16b88b(0x517,0x50d,0x50e,_0x95e79a._0x340c52)](_0x3a0c6c=>_0x3a0c6c['type']===_0x4c7954(-0x18a,-0x194,-0x17d,-0x17b));}function createToolResultUserMessage(_0x3fe137){const _0x411b1d={_0x24719a:0x466,_0x30ea2a:0x49e},_0x4dd9a0={_0x1e2df1:0xa,_0x34f5b3:0xe,_0xa9a39a:0xb,_0x4f06c7:0x101,_0x3c39f5:0x139,_0x30b355:0xe5,_0x194143:0x103,_0x431410:0x103,_0x18196e:0x116,_0x115bdf:0xfb,_0x3f9ad0:0x25,_0x19e65b:0x5a,_0x25dbeb:0x51},_0x4a20c5={_0x374836:0x103,_0x305202:0xb5},_0x1739d0={_0x196055:0x461};function _0xca2742(_0x55376f,_0x579b87,_0x5db0ed,_0x56c452){return _0x3c5a(_0x579b87- -0x13a,_0x56c452);}function _0x2d3f51(_0x566f89,_0x4d3e95,_0x2e2a38,_0x3d8e89){return _0x3c5a(_0x3d8e89-0x303,_0x566f89);}return{'role':_0x2d3f51(0x46e,0x49c,_0x411b1d._0x24719a,0x486),'content':_0x3fe137[_0x2d3f51(0x49d,0x4b4,0x4b8,_0x411b1d._0x30ea2a)](_0xb2f2a7=>{function _0x21b6e3(_0xc0b6ac,_0x4bda87,_0x544ebf,_0x4dd451){return _0x2d3f51(_0x4bda87,_0x4bda87-0xfe,_0x544ebf-0x109,_0x544ebf- -_0x1739d0._0x196055);}function _0x3012ee(_0x321bef,_0x43c5b6,_0x7c43b6,_0x1315fa){return _0x2d3f51(_0x7c43b6,_0x43c5b6-_0x4a20c5._0x374836,_0x7c43b6-_0x4a20c5._0x305202,_0x321bef- -0x37b);}return{'type':_0x21b6e3(-_0x4dd9a0._0x1e2df1,_0x4dd9a0._0x34f5b3,_0x4dd9a0._0xa9a39a,0x1a),'tool_use_id':_0xb2f2a7[_0x3012ee(0x101,0x10a,0x112,_0x4dd9a0._0x4f06c7)],'content':_0xb2f2a7[_0x3012ee(0x118,0x121,_0x4dd9a0._0x3c39f5,0x11a)]??_0xb2f2a7[_0x3012ee(0xef,_0x4dd9a0._0x30b355,0xd0,_0x4dd9a0._0x194143)],'is_error':_0xb2f2a7[_0x3012ee(_0x4dd9a0._0x431410,_0x4dd9a0._0x18196e,0x10d,_0x4dd9a0._0x115bdf)]===_0x21b6e3(_0x4dd9a0._0x3f9ad0,_0x4dd9a0._0x19e65b,0x3e,_0x4dd9a0._0x25dbeb)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x4027e0(0xac,0xaa,0x9c,0x96);function synthesizeMissingToolResults(_0x142ca0){const _0x12e941={_0x9e844b:0x473,_0x36836f:0x467,_0x1781b2:0x48c,_0x1e1c42:0x46a,_0x29330e:0x2fe,_0x2ea118:0x30a,_0x578eb3:0x45e,_0x17c751:0x473,_0x40e6ad:0x320,_0x48f2c1:0x330,_0x48d615:0x2fd,_0x270132:0x31c},_0xea7722={_0x28bb6a:0x182,_0x450917:0x264},_0x5eb807={_0x554551:0x3c0},_0xe1856a=new Set();for(const _0x52da26 of _0x142ca0){for(const _0x5b93de of getToolResultBlocks(_0x52da26)){_0xe1856a['add'](_0x5b93de['tool_use_id']);}}const _0x285cf8=[];for(const _0x45ab77 of _0x142ca0){_0x285cf8[_0xd9602d(0x470,0x46f,_0x12e941._0x9e844b,0x465)](_0x45ab77);const _0x3c17e2=getToolUseBlocks(_0x45ab77)[_0xd9602d(_0x12e941._0x36836f,_0x12e941._0x1781b2,0x47f,_0x12e941._0x1e1c42)](_0x426896=>!_0xe1856a['has'](_0x426896['id']));if(_0x3c17e2[_0x347ab3(_0x12e941._0x29330e,0x319,_0x12e941._0x2ea118,0x2eb)]===0x0)continue;_0x285cf8[_0xd9602d(0x48e,_0x12e941._0x578eb3,_0x12e941._0x17c751,0x484)]({'role':_0x347ab3(0x325,0x319,_0x12e941._0x40e6ad,0x340),'content':_0x3c17e2[_0x347ab3(0x341,0x319,0x338,_0x12e941._0x48f2c1)](_0x6e2c62=>({'type':'tool_result','tool_use_id':_0x6e2c62['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x52d063 of _0x3c17e2){_0xe1856a[_0x347ab3(_0x12e941._0x48d615,0x338,_0x12e941._0x270132,0x31e)](_0x52d063['id']);}}function _0xd9602d(_0x15462d,_0x4517e2,_0x41437a,_0x57db3a){return _0x4027e0(_0x15462d-0x1d4,_0x4517e2-0x1b,_0x41437a-_0x5eb807._0x554551,_0x15462d);}function _0x347ab3(_0x1bca1a,_0x5c9cfa,_0x53dc25,_0x4823fb){return _0x4027e0(_0x1bca1a-0xb3,_0x5c9cfa-_0xea7722._0x28bb6a,_0x53dc25-_0xea7722._0x450917,_0x1bca1a);}return _0x285cf8;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x512710,_0x1fc3bd){const _0x3c912a={_0x2d1e4a:0x185,_0x4ec717:0x17e,_0x2b96d2:0x180,_0xf68939:0x2bb,_0x9e03f7:0x2c0,_0x47c8b2:0x2b3,_0x17b012:0x2bb,_0xb1bc98:0x2af,_0x1523b6:0x2b2,_0x1e8af9:0x2ab,_0x20b55e:0x2bc,_0x135534:0x2b4,_0x1efd7f:0x184,_0x4ca3ec:0x189,_0x21a98b:0x2b6,_0x51fd18:0x2bd,_0x2b95ec:0x2bf,_0x39e240:0x2bd};function _0x42c559(_0x1e58cf,_0x5f3181,_0x37a9c9,_0x514c09){return _0x5248(_0x5f3181-0x10d,_0x514c09);}function _0x2924a1(_0x4a5ab7,_0x218307,_0x2471f0,_0x396951){return _0x5248(_0x4a5ab7- -0x339,_0x396951);}const _0x1bfdec=_0x512710();while(!![]){try{const _0x4a096e=parseInt(_0x2924a1(-0x185,-_0x3c912a._0x2d1e4a,-_0x3c912a._0x4ec717,-_0x3c912a._0x2b96d2))/0x1+parseInt(_0x42c559(_0x3c912a._0xf68939,0x2b4,_0x3c912a._0x9e03f7,0x2af))/0x2+-parseInt(_0x42c559(0x2a9,_0x3c912a._0x47c8b2,0x2b7,_0x3c912a._0x17b012))/0x3+-parseInt(_0x42c559(0x2b2,0x2b8,0x2b4,0x2b2))/0x4+parseInt(_0x42c559(0x2b6,_0x3c912a._0xb1bc98,_0x3c912a._0x1523b6,_0x3c912a._0x1e8af9))/0x5*(-parseInt(_0x42c559(_0x3c912a._0x47c8b2,_0x3c912a._0x20b55e,0x2c5,_0x3c912a._0x135534))/0x6)+parseInt(_0x2924a1(-_0x3c912a._0x1efd7f,-_0x3c912a._0x4ca3ec,-0x189,-0x189))/0x7*(parseInt(_0x42c559(_0x3c912a._0x21a98b,_0x3c912a._0x17b012,0x2b3,_0x3c912a._0x51fd18))/0x8)+parseInt(_0x42c559(0x2c2,_0x3c912a._0x2b95ec,0x2c8,_0x3c912a._0x39e240))/0x9;if(_0x4a096e===_0x1fc3bd)break;else _0x1bfdec['push'](_0x1bfdec['shift']());}catch(_0x153dbb){_0x1bfdec['push'](_0x1bfdec['shift']());}}}(_0xf911,0x36edd));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';function _0x5248(_0x2f93b2,_0x1afc3e){_0x2f93b2=_0x2f93b2-0x19f;const _0xf911dd=_0xf911();let _0x52484a=_0xf911dd[_0x2f93b2];if(_0x5248['XbuAXY']===undefined){var _0x137b6b=function(_0x4ff03d){const _0x572aaf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2021cd='',_0x2f653f='';for(let _0x4e5d7f=0x0,_0x3e89c7,_0x35faab,_0x5e8772=0x0;_0x35faab=_0x4ff03d['charAt'](_0x5e8772++);~_0x35faab&&(_0x3e89c7=_0x4e5d7f%0x4?_0x3e89c7*0x40+_0x35faab:_0x35faab,_0x4e5d7f++%0x4)?_0x2021cd+=String['fromCharCode'](0xff&_0x3e89c7>>(-0x2*_0x4e5d7f&0x6)):0x0){_0x35faab=_0x572aaf['indexOf'](_0x35faab);}for(let _0x23218d=0x0,_0x22bb2e=_0x2021cd['length'];_0x23218d<_0x22bb2e;_0x23218d++){_0x2f653f+='%'+('00'+_0x2021cd['charCodeAt'](_0x23218d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2f653f);};_0x5248['GoYUDT']=_0x137b6b,_0x5248['IKKNDc']={},_0x5248['XbuAXY']=!![];}const _0x2450b8=_0xf911dd[0x0],_0x2ebdd3=_0x2f93b2+_0x2450b8,_0x49eb3c=_0x5248['IKKNDc'][_0x2ebdd3];return!_0x49eb3c?(_0x52484a=_0x5248['GoYUDT'](_0x52484a),_0x5248['IKKNDc'][_0x2ebdd3]=_0x52484a):_0x52484a=_0x49eb3c,_0x52484a;}import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';function _0xf911(){const _0x22f206=['Aw1Hz2uVANbN','ChvZAa','DgvZDa','mta2odKWnu5UDKDPEq','Aw1Hz2uVANbLzW','zNjVBq','BgfZDeLUzgv4','mtaZmteWmfjbuvnjEq','nZmXmJK2wejxtgPv','C2XPy2u','CMvWBgfJzq','Dgv4Da','nZq2mJy4t0XgBw5y','zMLSDgvY','Aw1Hz2u','ogjuuwPLyq','nKrgAwD6va','Bwf0y2HbBgW','yMfZzty0','mZmZntmZn0DJB2Leva','BgvUz3rO','odeZmJjOyMztBwy','mta2mdmXoe1RBu9UuW'];_0xf911=function(){return _0x22f206;};return _0xf911();}var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x2021cd){const _0x3870c2={_0x3e1862:0x8d,_0x580d7f:0x91,_0x1c5508:0x497},_0x23c592={_0x12523d:0x2f4};function _0x4bf77a(_0x3207c7,_0xae5b5e,_0x169772,_0x1946c1){return _0x5248(_0x169772-_0x23c592._0x12523d,_0x1946c1);}function _0x1b303a(_0xa64ae7,_0x16dd09,_0x3e673d,_0x5dafa0){return _0x5248(_0x5dafa0- -0x230,_0xa64ae7);}return _0x2021cd===_0x1b303a(-0x8b,-0x91,-_0x3870c2._0x3e1862,-_0x3870c2._0x580d7f)?_0x4bf77a(0x495,0x48d,_0x3870c2._0x1c5508,0x49c):_0x2021cd;}function isValidBase64(_0x2f653f){const _0x5e3b39={_0x5ca05a:0x427,_0x3b65fe:0x197,_0x3e8a03:0x199,_0x2d1377:0x194},_0xfa0548={_0x423c1c:0x27e},_0x423a8d={_0x1852bf:0x8};function _0x3e1cfa(_0x5eecba,_0x1e4491,_0x236540,_0x48240b){return _0x5248(_0x48240b- -_0x423a8d._0x1852bf,_0x5eecba);}function _0x91d8d(_0x507fa1,_0x50c973,_0x1823f6,_0x2279ed){return _0x5248(_0x50c973-_0xfa0548._0x423c1c,_0x507fa1);}if(_0x2f653f[_0x91d8d(0x427,0x431,0x42e,0x434)]===0x0||_0x2f653f[_0x91d8d(0x434,0x431,_0x5e3b39._0x5ca05a,0x433)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x3e1cfa(_0x5e3b39._0x3b65fe,_0x5e3b39._0x3e8a03,_0x5e3b39._0x2d1377,0x199)](_0x2f653f);}function collectImageMatches(_0x4e5d7f){const _0x3dcb8d={_0x3c99fc:0x449,_0x44d64d:0x43b,_0x543a73:0x448,_0xe76f95:0x227,_0x1d49ea:0x230,_0x3143ec:0x21d,_0x30fa70:0x223,_0xdf457d:0x445,_0xdb8517:0x444},_0xf934d={_0xbb117:0x14e,_0x4a22d7:0x147},_0x3a28d6={_0x2ff66a:0x2fb,_0x15c59f:0x130,_0x405122:0x1a0},_0x592765={_0x303d7e:0x299};function _0x55fa16(_0x45d63f,_0x450047,_0xbb2126,_0x50f4b7){return _0x5248(_0x45d63f-_0x592765._0x303d7e,_0x450047);}function _0x5c2459(_0x40f2d9,_0x3e83d2,_0x3e620b,_0x330671){return _0x5248(_0x3e620b- -0x3d4,_0x40f2d9);}return DATA_URI_REGEX[_0x55fa16(0x43e,_0x3dcb8d._0x3c99fc,_0x3dcb8d._0x44d64d,_0x3dcb8d._0x543a73)]=0x0,Array[_0x5c2459(-0x232,-_0x3dcb8d._0xe76f95,-_0x3dcb8d._0x1d49ea,-0x239)](_0x4e5d7f[_0x5c2459(-0x22b,-_0x3dcb8d._0x3143ec,-0x224,-_0x3dcb8d._0x30fa70)](DATA_URI_REGEX))[_0x55fa16(_0x3dcb8d._0xdf457d,0x440,_0x3dcb8d._0xdb8517,0x448)](_0x3e89c7=>{const _0x35faab=(_0x3e89c7[0x2]??'')[_0x1e3980(_0xf934d._0xbb117,_0xf934d._0x4a22d7,0x149,0x13c)](/[\r\n]/g,'');function _0x1e3980(_0x3d8e5d,_0x10b6db,_0x4c92c0,_0x34f77c){return _0x55fa16(_0x10b6db- -_0x3a28d6._0x2ff66a,_0x4c92c0,_0x4c92c0-_0x3a28d6._0x15c59f,_0x34f77c-_0x3a28d6._0x405122);}return isValidBase64(_0x35faab);});}function hasPastedImages(_0x5e8772){const _0x3bd8e7={_0x4a5a47:0xba},_0x8530b2={_0x105e11:0xfd};function _0x23251b(_0x558c0d,_0x4aa662,_0x2f2e4f,_0x160f2f){return _0x5248(_0x558c0d- -_0x8530b2._0x105e11,_0x4aa662);}return collectImageMatches(_0x5e8772)[_0x23251b(0xb6,0xac,0xb2,_0x3bd8e7._0x4a5a47)]>0x0;}function contentFromPastedText(_0x23218d){const _0xc13030={_0x12e83e:0x6a,_0x36c2cc:0x72,_0x209685:0x60,_0x272216:0x56,_0x2ecf66:0x62,_0x377f8b:0x65,_0x23bd57:0x58,_0x3e9aa4:0x444,_0x5bf14e:0x448,_0x20be6e:0x61,_0x225f6e:0x5b,_0x1d6a96:0x45e,_0x4ad3e1:0x455,_0x52a196:0x453,_0x38d7d3:0x449,_0x17016c:0x444,_0x5b55bf:0x447,_0x4f5dac:0x5e,_0x2fb160:0x44c,_0x43c37d:0x44a},_0x34a4f7={_0x2580cf:0x2a2},_0x22bb2e=collectImageMatches(_0x23218d);function _0x2a544a(_0x10bbd5,_0x3ee341,_0x68aa68,_0x4f9e4d){return _0x5248(_0x10bbd5-_0x34a4f7._0x2580cf,_0x3ee341);}const _0xb4ece1=[];let _0x411125=0x0;function _0x2eedd0(_0x2b6fdb,_0x540aac,_0x2a4c0f,_0x498926){return _0x5248(_0x540aac- -0x20a,_0x2b6fdb);}for(const _0x4ee57d of _0x22bb2e){const _0x128c9d=_0x4ee57d['index']??0x0,[_0x1f3a50,_0x518744,_0x3084f6]=_0x4ee57d;_0x128c9d>_0x411125&&_0xb4ece1[_0x2eedd0(-0x6d,-_0xc13030._0x12e83e,-_0xc13030._0x36c2cc,-0x64)]({'type':_0x2eedd0(-_0xc13030._0x12e83e,-_0xc13030._0x209685,-_0xc13030._0x272216,-0x6a),'text':_0x23218d[_0x2eedd0(-0x58,-_0xc13030._0x2ecf66,-_0xc13030._0x377f8b,-_0xc13030._0x23bd57)](_0x411125,_0x128c9d)}),_0xb4ece1['push']({'type':_0x2a544a(0x44f,_0xc13030._0x3e9aa4,0x44d,0x44d),'source':{'type':_0x2a544a(0x453,0x456,0x44a,_0xc13030._0x5bf14e),'media_type':normalizeMediaType(_0x518744),'data':_0x3084f6[_0x2eedd0(-_0xc13030._0x23bd57,-_0xc13030._0x20be6e,-0x68,-_0xc13030._0x225f6e)](/[\r\n]/g,'')}}),_0x411125=_0x128c9d+_0x1f3a50[_0x2a544a(0x455,0x44a,_0xc13030._0x1d6a96,0x456)];}return _0x411125<_0x23218d[_0x2a544a(_0xc13030._0x4ad3e1,_0xc13030._0x52a196,0x455,0x459)]&&_0xb4ece1[_0x2a544a(0x442,_0xc13030._0x38d7d3,_0xc13030._0x17016c,_0xc13030._0x5b55bf)]({'type':'text','text':_0x23218d['slice'](_0x411125)}),_0xb4ece1[_0x2eedd0(-0x50,-0x57,-_0xc13030._0x4f5dac,-0x58)]>0x0?_0xb4ece1:[{'type':_0x2a544a(_0xc13030._0x2fb160,0x440,0x456,_0xc13030._0x43c37d),'text':_0x23218d}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
|