@nuvin/agent-core 0.2.0-rc.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/VERSION +2 -2
  2. package/dist/agent/index.js +1 -1
  3. package/dist/chunk-D5IVWJHX.js +1 -1
  4. package/dist/chunk-FFIZ6TKW.js +1 -1
  5. package/dist/chunk-GAZGO6N7.js +1 -0
  6. package/dist/chunk-IUZALP6K.js +1 -1
  7. package/dist/chunk-KIIEBXJF.js +1 -0
  8. package/dist/chunk-LIE76IJA.js +1 -1
  9. package/dist/chunk-X7VAACWY.js +1 -1
  10. package/dist/chunk-YNOIG4FD.js +1 -1
  11. package/dist/formats/index.js +1 -1
  12. package/dist/hooks/index.js +1 -1
  13. package/dist/models/index.d.ts +1 -0
  14. package/dist/models/index.js +1 -1
  15. package/dist/shared/index.js +1 -1
  16. package/dist/shared/types.d.ts +25 -7
  17. package/dist/tools/{internal-tool-runtime.d.ts → core/internal-tool-runtime.d.ts} +1 -1
  18. package/dist/tools/core/mock-tool-runtime.d.ts +3 -0
  19. package/dist/tools/core/runtime-manager-tools.d.ts +132 -0
  20. package/dist/tools/{tool-output-offload.d.ts → core/tool-output-offload.d.ts} +1 -1
  21. package/dist/tools/{tools.d.ts → core/tools.d.ts} +1 -1
  22. package/dist/tools/file-editing/anchored-file-edit.d.ts +53 -0
  23. package/dist/tools/file-editing/anchored-file-errors.d.ts +5 -0
  24. package/dist/tools/file-editing/anchored-file-operations.d.ts +38 -0
  25. package/dist/tools/file-editing/anchored-file-read.d.ts +37 -0
  26. package/dist/tools/file-editing/atomic-file-write.d.ts +19 -0
  27. package/dist/tools/file-editing/file-edit-tool.d.ts +166 -0
  28. package/dist/tools/file-editing/file-mutation-coordinator.d.ts +13 -0
  29. package/dist/tools/{file-new-tool.d.ts → file-editing/file-new-tool.d.ts} +5 -2
  30. package/dist/tools/file-editing/file-observation-store.d.ts +40 -0
  31. package/dist/tools/{file-read-tool.d.ts → file-editing/file-read-tool.d.ts} +8 -2
  32. package/dist/tools/file-editing/file-snapshot.d.ts +16 -0
  33. package/dist/tools/file-editing/hashline-file-edit-adapter.d.ts +19 -0
  34. package/dist/tools/file-editing/structured-file-edit-adapter.d.ts +94 -0
  35. package/dist/tools/file-editing/workspace-paths.d.ts +20 -0
  36. package/dist/tools/index.d.ts +43 -34
  37. package/dist/tools/index.js +1 -1
  38. package/dist/tools/{mcp-connection-generation.d.ts → mcp/mcp-connection-generation.d.ts} +1 -1
  39. package/dist/tools/mcp/mcp-tool-adapter.d.ts +72 -0
  40. package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
  41. package/dist/tools/{grep-tool.d.ts → search/grep-tool.d.ts} +2 -2
  42. package/dist/tools/{ls-tool.d.ts → search/ls-tool.d.ts} +2 -2
  43. package/dist/tools/{view-file-tool.d.ts → search/view-file-tool.d.ts} +2 -2
  44. package/dist/tools/{ask-user-tool.d.ts → session/ask-user-tool.d.ts} +4 -4
  45. package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +5 -5
  46. package/dist/tools/{skill-tool.d.ts → session/skill-tool.d.ts} +2 -2
  47. package/dist/tools/{todo-write-tool.d.ts → session/todo-write-tool.d.ts} +2 -2
  48. package/dist/tools/session/update-topic-tool.d.ts +12 -0
  49. package/dist/tools/{bash-output-tool.d.ts → shell/bash-output-tool.d.ts} +2 -2
  50. package/dist/tools/{bash-tool.d.ts → shell/bash-tool.d.ts} +5 -5
  51. package/dist/tools/{command-tool.d.ts → shell/command-tool.d.ts} +2 -2
  52. package/dist/tools/{kill-shell-tool.d.ts → shell/kill-shell-tool.d.ts} +2 -2
  53. package/dist/tools/{web-fetch-tool.d.ts → web/web-fetch-tool.d.ts} +2 -2
  54. package/dist/tools/{web-search-tool.d.ts → web/web-search-tool.d.ts} +2 -2
  55. package/package.json +3 -2
  56. package/dist/chunk-A4CS4HLK.js +0 -1
  57. package/dist/tools/file-edit-tool.d.ts +0 -34
  58. package/dist/tools/mcp-tool-adapter.d.ts +0 -72
  59. package/dist/tools/mock-tool-runtime.d.ts +0 -3
  60. package/dist/tools/runtime-manager-tools.d.ts +0 -79
  61. package/dist/tools/update-topic-tool.d.ts +0 -12
  62. package/dist/tools/workspace-paths.d.ts +0 -5
  63. /package/dist/tools/{file-mutation.d.ts → file-editing/file-mutation.d.ts} +0 -0
  64. /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
  65. /package/dist/tools/{mcp-safe-error-provenance.d.ts → mcp/mcp-safe-error-provenance.d.ts} +0 -0
  66. /package/dist/tools/{mcp-safe-error.d.ts → mcp/mcp-safe-error.d.ts} +0 -0
  67. /package/dist/tools/{mcp-server-manager.d.ts → mcp/mcp-server-manager.d.ts} +0 -0
  68. /package/dist/tools/{grep-engine.d.ts → search/grep-engine.d.ts} +0 -0
  69. /package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +0 -0
  70. /package/dist/tools/{background-process-registry.d.ts → shell/background-process-registry.d.ts} +0 -0
  71. /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
  72. /package/dist/tools/{process-tree-termination.d.ts → shell/process-tree-termination.d.ts} +0 -0
  73. /package/dist/tools/{terminal-output-normalizer.d.ts → shell/terminal-output-normalizer.d.ts} +0 -0
  74. /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
@@ -1 +1 @@
1
- (function(_0x14ca57,_0x27bfc8){const _0x542385={_0x3cd274:0x253,_0x36eb27:0x240,_0x4964bd:0x233,_0x51e67b:0x216,_0x52aa93:0x205,_0x1280c6:0x202,_0x236767:0x229,_0x2d36a8:0x321,_0x51421e:0x326,_0x3039b3:0x32d,_0x130514:0x2f7,_0x733d59:0x30c,_0x36fee0:0x311,_0x24b137:0x22f,_0x4f2a07:0x220,_0x440380:0x245,_0x4eaa0d:0x241,_0x20f6ce:0x235},_0x1e868a={_0x13e051:0x17b},_0x14e009=_0x14ca57();function _0x596b57(_0x154b58,_0x411112,_0x27fcdf,_0x35d3dc){return _0x23af(_0x411112-_0x1e868a._0x13e051,_0x35d3dc);}function _0x561480(_0x45c07a,_0x3c54f8,_0x448186,_0x296c2a){return _0x23af(_0x448186- -0x3ca,_0x3c54f8);}while(!![]){try{const _0x392dea=parseInt(_0x561480(-_0x542385._0x3cd274,-0x25a,-_0x542385._0x36eb27,-0x226))/0x1+parseInt(_0x561480(-_0x542385._0x4964bd,-0x22a,-_0x542385._0x51e67b,-_0x542385._0x52aa93))/0x2+-parseInt(_0x561480(-_0x542385._0x1280c6,-0x202,-0x211,-_0x542385._0x236767))/0x3*(-parseInt(_0x596b57(0x325,0x321,0x31d,0x31f))/0x4)+parseInt(_0x596b57(_0x542385._0x2d36a8,_0x542385._0x51421e,0x335,_0x542385._0x3039b3))/0x5+-parseInt(_0x596b57(_0x542385._0x130514,_0x542385._0x733d59,0x2f6,_0x542385._0x36fee0))/0x6*(-parseInt(_0x561480(-0x245,-0x220,-0x235,-_0x542385._0x24b137))/0x7)+-parseInt(_0x561480(-_0x542385._0x4f2a07,-_0x542385._0x440380,-0x22b,-0x20b))/0x8+-parseInt(_0x561480(-_0x542385._0x4eaa0d,-_0x542385._0x20f6ce,-0x22c,-0x23b))/0x9;if(_0x392dea===_0x27bfc8)break;else _0x14e009['push'](_0x14e009['shift']());}catch(_0x549d90){_0x14e009['push'](_0x14e009['shift']());}}}(_0x591a,0x5b305));function _0x591a(){const _0x82366c=['DhjPBq','zw5JCNLWDgvKq29UDgvUDa','otC0mti1u3DlEMrh','zMXHDe1HCa','y29UDgvUDa','C3rVCf9YzwfZB24','Dgv4Da','ChjVDMLKzxjtDgf0zq','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Aw5WDxrFDg9Rzw5Z','y2fSBeLK','nJaZnZq2zgXWqK9q','BwfW','ChvZAa','AM9PBG','B3bLBMfPx3jLyxnVBMLUzW','mJu4vuHlBfbO','Dg9VBf91C2u','B3v0Chv0','BwvZC2fNzxm','Bw9KzwXjzgvUDgL0Eq','BgvUz3rO','CM9Szq','Bwf4x3rVA2vUCW','B3v0Chv0rM9YBwf0','DhvYBKLK','CMvHC29UAw5Nvg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','zxjYB3i','zMLSDgvY','Bw9KzwW','C2vZC2LVBKLK','C2vZC2LVBL9Pza','Bwv0ywrHDge','mZK4mtiYAhjJC3Hp','DxnHz2u','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','ChjPy2LUz1bYB3zPzgvYswq','AgfZ','DhLWzq','C3LZDgvT','mtHbq1v1vKC','C3rYAw5N','BwvZC2fNzq','B3v0Chv0x3rVA2vUCW','mta0nZy1nxnHD0DMzG','C3rHDhvZ','Dg9VBhm','ywrK','Dg9VBf9Yzxn1Bhq','ChjPy2LUz19WCM92AwrLCL9Pza','DgHPBMTPBMC','khjLzgfJDgvKihjLyxnVBMLUzYK','DxnLCG','nZiXmtiWnxjOy2XNua','mZu4mZy3mLn5wNLRwG','Dg9VBf91C2vFAwq','Aw5WDxruB2TLBNm','Bw9KzwXFAwrLBNrPDhK','CMvHC29UAw5N','B3v0Chv0vg9Rzw5Z','Bwf4vg9Rzw5Z','mti5nZj4DfDsDwm','yxnZAxn0yw50','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N'];_0x591a=function(){return _0x82366c;};return _0x591a();}function createTextBlock(_0x232f06){return{'type':'text','text':_0x232f06};}function normalizeTextBlock(_0x1d4acc){const _0x5c6c10={_0x176d38:0x2a,_0x3c42b0:0x8,_0x3610da:0x25},_0x597869={_0x2c802c:0x1a0};function _0x2df38b(_0x8fabd0,_0x5dd51e,_0x5ed9ef,_0x4823ca){return _0x23af(_0x8fabd0- -_0x597869._0x2c802c,_0x4823ca);}return createTextBlock(_0x1d4acc[_0x2df38b(0xf,_0x5c6c10._0x176d38,-_0x5c6c10._0x3c42b0,_0x5c6c10._0x3610da)]??'');}function normalizeContent(_0x68cf49){const _0x40c652={_0x31d766:0x323,_0x3973b5:0x320,_0x1f1cfc:0x375,_0x276535:0x377},_0x11a01e={_0x1f89d3:0x1ed,_0x2d584f:0x1d6,_0x166de0:0x1db,_0x1e4d8f:0x1ef,_0x371f39:0x1ae,_0x109007:0x1ad},_0x241dfd={_0x3a7743:0x68,_0x426169:0x84},_0x7735a3={_0x428f2b:0x175},_0x2f36ef={_0x57f704:0x1ad},_0x19b5d8={_0x14c3b6:0x71};if(typeof _0x68cf49===_0x2faf03(_0x40c652._0x31d766,0x33f,0x331,_0x40c652._0x3973b5))return[createTextBlock(_0x68cf49)];function _0xf17d36(_0x1857e6,_0xb9f4e4,_0x29cc0d,_0x20fceb){return _0x23af(_0xb9f4e4- -_0x19b5d8._0x14c3b6,_0x20fceb);}function _0x2faf03(_0x5255aa,_0x393c8f,_0x1fc263,_0x561300){return _0x23af(_0x393c8f-_0x2f36ef._0x57f704,_0x5255aa);}if(!Array['isArray'](_0x68cf49))return[];return _0x68cf49[_0x2faf03(_0x40c652._0x1f1cfc,0x362,0x37c,_0x40c652._0x276535)](_0x45b3df=>{function _0x2c531b(_0x8491bb,_0x2066f3,_0x337ba3,_0x326c73){return _0xf17d36(_0x8491bb-_0x7735a3._0x428f2b,_0x8491bb- -0x30b,_0x337ba3-0x1aa,_0x2066f3);}if(_0x45b3df[_0x2c531b(-_0x11a01e._0x1f89d3,-_0x11a01e._0x2d584f,-_0x11a01e._0x166de0,-_0x11a01e._0x1e4d8f)]===_0x2c531b(-0x1cd,-_0x11a01e._0x371f39,-0x1cb,-_0x11a01e._0x109007))return normalizeTextBlock(_0x45b3df);function _0x322cc8(_0x54a255,_0x2a7dff,_0x1c24b5,_0x4b7020){return _0xf17d36(_0x54a255-0x10f,_0x54a255-_0x241dfd._0x3a7743,_0x1c24b5-_0x241dfd._0x426169,_0x4b7020);}return structuredClone(_0x45b3df);});}function normalizeSystem(_0xe9c985=[]){function _0x8270ae(_0xbb1a60,_0x59978b,_0x1fff6b,_0x53b2b8){return _0x23af(_0x53b2b8- -0x11d,_0x1fff6b);}function _0x3bbfb(_0x28f953,_0x1251d1,_0x56c4a0,_0x30eafa){return _0x23af(_0x28f953- -0x325,_0x56c4a0);}return normalizeContent(_0xe9c985)['filter'](_0x501ed1=>_0x501ed1[_0x8270ae(0x6e,0x64,0x65,0x72)]===_0x8270ae(0xaf,0x9d,0x86,0x92));}function isProviderStateCompatible(_0x3bb8e5,_0x25d177){const _0x5ebc30={_0x276215:0xe6,_0x31d393:0xe9,_0x419a1:0x3d6,_0xcabd85:0xd1,_0x3edaa8:0xdb,_0xd7b398:0x121},_0x77d088={_0x3f12af:0x24d};function _0x1bd192(_0x454f8a,_0x30d034,_0x4f40f1,_0x2da317){return _0x23af(_0x4f40f1-_0x77d088._0x3f12af,_0x454f8a);}function _0x31a062(_0x32b92c,_0x38227a,_0x1e42f7,_0x2b1d28){return _0x23af(_0x32b92c- -0x28e,_0x2b1d28);}const _0x41b20d=_0x3bb8e5[_0x31a062(-0xde,-_0x5ebc30._0x276215,-0xfc,-_0x5ebc30._0x31d393)]?.['originModelIdentity'];return _0x41b20d===void 0x0||_0x41b20d===_0x25d177[_0x1bd192(0x3d8,0x3d6,_0x5ebc30._0x419a1,0x3b5)][_0x31a062(-_0x5ebc30._0xcabd85,-0xdc,-_0x5ebc30._0x3edaa8,-0xb1)]||_0x41b20d===_0x25d177[_0x31a062(-0x108,-_0x5ebc30._0xd7b398,-_0x5ebc30._0x31d393,-0x105)];}function normalizeMessage(_0x5ea9e1){const _0x9487da={_0x1a2a09:0x25d,_0x30833a:0x25a,_0x1353e9:0x23c,_0x67f9f5:0x1fa,_0x11abdb:0x200,_0x14ff96:0x1ea,_0x21b11a:0x271,_0x1a7d85:0x278,_0xa57b3:0x21f,_0x48bc4c:0x22b},_0x5d0426={_0x5a7dd5:0x6c};function _0x10059f(_0x54363f,_0x734912,_0x2e0b36,_0x244b8c){return _0x23af(_0x734912-0xc8,_0x244b8c);}function _0x9dcaa8(_0xd5ff03,_0x2b5327,_0x5990bd,_0x4631a1){return _0x23af(_0x4631a1-_0x5d0426._0x5a7dd5,_0xd5ff03);}return{...typeof _0x5ea9e1['id']===_0x10059f(_0x9487da._0x1a2a09,_0x9487da._0x30833a,_0x9487da._0x1353e9,0x271)?{'id':_0x5ea9e1['id']}:{},'role':_0x5ea9e1[_0x9dcaa8(_0x9487da._0x67f9f5,_0x9487da._0x11abdb,0x1fb,_0x9487da._0x14ff96)],'content':normalizeContent(_0x5ea9e1['content']),..._0x5ea9e1[_0x10059f(_0x9487da._0x21b11a,_0x9487da._0x1a7d85,0x283,0x277)]?{'providerState':structuredClone(_0x5ea9e1[_0x9dcaa8(0x208,_0x9487da._0xa57b3,_0x9487da._0x48bc4c,0x21c)])}:{}};}function compileRequest(_0xdadd38){const _0x514e92={_0x1d9a3b:0x10,_0x566174:0x11,_0x573fa7:0x20,_0x2f100e:0x28,_0x795ea1:0x167,_0x374383:0x13d,_0x2cb671:0x171,_0x3271fc:0x150,_0x46b735:0x141,_0x53ded6:0x154,_0x38a574:0x166,_0x15fc20:0x19,_0x4b88a9:0x1d,_0x3fe501:0x18,_0xc0336b:0x7,_0xbb47cc:0x0,_0xaa5c9a:0x10,_0x12eb6c:0x22,_0x2ad6e3:0x24,_0x508c02:0x16},_0x4622a5={_0x4a5b50:0x2f},_0x4c8e77={_0x4aa3b4:0x197};function _0x4ef8f3(_0x47b74d,_0xed5fa3,_0xfc7fdc,_0x4ffec8){return _0x23af(_0xed5fa3- -_0x4c8e77._0x4aa3b4,_0x47b74d);}function _0x56276f(_0x3ad16a,_0x55f142,_0x3e4bc3,_0x553ec4){return _0x23af(_0x55f142- -_0x4622a5._0x4a5b50,_0x553ec4);}return{'model':_0xdadd38[_0x4ef8f3(-_0x514e92._0x1d9a3b,-_0x514e92._0x566174,-_0x514e92._0x573fa7,-_0x514e92._0x2f100e)]??_0x56276f(0x165,0x15d,0x16c,0x14f),..._0xdadd38[_0x56276f(_0x514e92._0x795ea1,0x150,_0x514e92._0x374383,0x16b)]!==void 0x0?{'max_tokens':_0xdadd38[_0x56276f(_0x514e92._0x2cb671,_0x514e92._0x3271fc,_0x514e92._0x46b735,_0x514e92._0x53ded6)]}:{},..._0xdadd38['reasoning']?{'reasoning':structuredClone(_0xdadd38[_0x56276f(_0x514e92._0x38a574,0x174,0x15f,0x17a)])}:{},'system':normalizeSystem(_0xdadd38[_0x4ef8f3(_0x514e92._0x15fc20,-0x7,-0x28,_0x514e92._0x15fc20)]),'messages':_0xdadd38[_0x4ef8f3(0x35,0x25,_0x514e92._0x4b88a9,_0x514e92._0x3fe501)][_0x4ef8f3(0x35,0x1e,_0x514e92._0xc0336b,-0x3)](normalizeMessage),'tools':structuredClone(_0xdadd38[_0x4ef8f3(0x18,_0x514e92._0xbb47cc,0x1a,0x16)]??[]),'metadata':{'session_id':_0xdadd38[_0x4ef8f3(-_0x514e92._0xaa5c9a,-0x10,-0x21,-_0x514e92._0x12eb6c)],'turn_id':_0xdadd38[_0x4ef8f3(-_0x514e92._0x2ad6e3,-_0x514e92._0x508c02,-0x6,0x0)]}};}function _0x23af(_0x3e8796,_0x5022f3){_0x3e8796=_0x3e8796-0x17d;const _0x591a74=_0x591a();let _0x23af06=_0x591a74[_0x3e8796];if(_0x23af['gYwybg']===undefined){var _0x700372=function(_0x30cfff){const _0x285583='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x232f06='',_0x1d4acc='';for(let _0x68cf49=0x0,_0x45b3df,_0xe9c985,_0x501ed1=0x0;_0xe9c985=_0x30cfff['charAt'](_0x501ed1++);~_0xe9c985&&(_0x45b3df=_0x68cf49%0x4?_0x45b3df*0x40+_0xe9c985:_0xe9c985,_0x68cf49++%0x4)?_0x232f06+=String['fromCharCode'](0xff&_0x45b3df>>(-0x2*_0x68cf49&0x6)):0x0){_0xe9c985=_0x285583['indexOf'](_0xe9c985);}for(let _0x3bb8e5=0x0,_0x25d177=_0x232f06['length'];_0x3bb8e5<_0x25d177;_0x3bb8e5++){_0x1d4acc+='%'+('00'+_0x232f06['charCodeAt'](_0x3bb8e5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1d4acc);};_0x23af['PRlzbd']=_0x700372,_0x23af['fGsNWY']={},_0x23af['gYwybg']=!![];}const _0x2d36fe=_0x591a74[0x0],_0x199d1f=_0x3e8796+_0x2d36fe,_0x5f46d5=_0x23af['fGsNWY'][_0x199d1f];return!_0x5f46d5?(_0x23af06=_0x23af['PRlzbd'](_0x23af06),_0x23af['fGsNWY'][_0x199d1f]=_0x23af06):_0x23af06=_0x5f46d5,_0x23af06;}function toChatRequest(_0x146d2f){const _0x29ea57={_0x2526f3:0x2c1,_0x1e9ede:0x2b9,_0x227d99:0x2a5,_0x1bd756:0x2bf,_0x455cf6:0x290,_0x1a1048:0x2e7,_0xdf07ac:0x2c5,_0x1809fe:0x2db,_0x4649d4:0x2cb,_0x461ce9:0x2d3,_0xc76e76:0x2d9,_0x300efe:0x2cb,_0x374c84:0x2cd,_0x504d11:0x2ba,_0x53273f:0x2b8,_0x28d228:0x2be,_0x2598cc:0x2b1,_0x4ad2a2:0x304,_0x4f663d:0x2fc,_0x28ca96:0x291,_0x14f9a8:0x319,_0x4e6d32:0x2de,_0x1c0bf6:0x323,_0x3e33dd:0x2c7,_0x3634ca:0x331,_0x35b32f:0x32a,_0x5bce9c:0x2c2,_0x3dff29:0x2b1,_0x16f87c:0x306,_0x16e478:0x2fb,_0x11f657:0x30c,_0x26f7ef:0x306,_0x3c7bc5:0x299,_0x5d65e5:0x2bd,_0x5a86d9:0x30d,_0x3c7866:0x30b,_0x29a58:0x308},_0x3dfaf3={_0x4cc31e:0x174},_0x19eb95={_0x4e0e26:0x128};function _0x2b54f2(_0x30349d,_0x32865f,_0xd137cb,_0x347a95){return _0x23af(_0x347a95-_0x19eb95._0x4e0e26,_0x32865f);}function _0x428cfd(_0x4dba12,_0x350d3c,_0x127c16,_0x191a6a){return _0x23af(_0x191a6a-_0x3dfaf3._0x4cc31e,_0x350d3c);}return{'model':_0x146d2f[_0x2b54f2(_0x29ea57._0x2526f3,_0x29ea57._0x1e9ede,_0x29ea57._0x227d99,0x2ae)],..._0x146d2f[_0x2b54f2(0x2ab,0x2c5,_0x29ea57._0x1bd756,0x2a7)]!==void 0x0?{'maxTokens':_0x146d2f[_0x2b54f2(0x2a9,0x2ad,_0x29ea57._0x455cf6,0x2a7)]}:{},..._0x146d2f[_0x2b54f2(_0x29ea57._0x1a1048,_0x29ea57._0xdf07ac,_0x29ea57._0x1809fe,_0x29ea57._0x4649d4)]?{'reasoning':structuredClone(_0x146d2f[_0x2b54f2(_0x29ea57._0x461ce9,_0x29ea57._0xc76e76,0x2c5,_0x29ea57._0x300efe)])}:{},'system':structuredClone(_0x146d2f[_0x2b54f2(0x2c5,_0x29ea57._0x374c84,_0x29ea57._0x504d11,_0x29ea57._0x53273f)]),'messages':structuredClone(_0x146d2f['messages']),'tools':structuredClone(_0x146d2f['tools']),'metadata':{'sessionId':_0x146d2f[_0x2b54f2(0x2b9,0x2c2,_0x29ea57._0x28d228,_0x29ea57._0x2598cc)][_0x428cfd(0x2f5,0x2dc,_0x29ea57._0x4ad2a2,_0x29ea57._0x4f663d)],'turnId':_0x146d2f[_0x2b54f2(0x2a5,_0x29ea57._0x300efe,_0x29ea57._0x28ca96,0x2b1)]['turn_id'],..._0x146d2f[_0x428cfd(_0x29ea57._0x14f9a8,0x2f8,_0x29ea57._0x4e6d32,0x2fd)][_0x428cfd(0x319,_0x29ea57._0x1c0bf6,0x31d,0x316)]!==void 0x0?{'modelIdentity':_0x146d2f[_0x2b54f2(0x2aa,_0x29ea57._0x3e33dd,0x2b6,_0x29ea57._0x2598cc)][_0x428cfd(_0x29ea57._0x3634ca,0x30d,_0x29ea57._0x35b32f,0x316)]}:{},..._0x146d2f[_0x2b54f2(0x29d,_0x29ea57._0x5bce9c,0x2ae,_0x29ea57._0x3dff29)][_0x428cfd(_0x29ea57._0x16f87c,_0x29ea57._0x16e478,_0x29ea57._0x11f657,0x30e)]!==void 0x0?{'pricingProviderId':_0x146d2f[_0x428cfd(0x30e,_0x29ea57._0x26f7ef,_0x29ea57._0x16e478,0x2fd)]['pricing_provider_id']}:{}},..._0x146d2f[_0x2b54f2(_0x29ea57._0x3c7bc5,0x290,_0x29ea57._0x5d65e5,0x2a8)]?{'outputFormat':structuredClone(_0x146d2f[_0x428cfd(_0x29ea57._0x5a86d9,_0x29ea57._0x3c7866,_0x29ea57._0x29a58,0x2f4)])}:{}};}function toModelRequest(_0x3972d7){const _0x20cfc9={_0x29deda:0x1ed,_0xf633bd:0x1d5,_0x5ea0fc:0x1e0,_0x519f8a:0x1de,_0x5ee1bf:0x20f,_0x5b1094:0x1f4,_0x5148d7:0x1f1,_0x583bd5:0x54,_0x175628:0x49,_0x5e8d98:0x7b,_0x1add58:0x1f7,_0x3df27e:0x1f1,_0x3b8665:0x1e6,_0x57bcc0:0x1c7,_0x5e1829:0x1d8,_0x1cfe7c:0x1ee,_0x3ea7fe:0x1f8,_0x2391bb:0x1d8,_0x26a56a:0x70,_0x2fa5bb:0x80,_0x53e971:0x1ea,_0x136cac:0x70,_0x2e6842:0x85,_0x4f3603:0x1c5,_0x3cfc53:0x34,_0x543877:0x1ee,_0x5a27be:0x33,_0x2ab178:0x33,_0x2908f2:0x2a},_0x2f10f5={_0x1e7d5c:0x14d},_0x530125={_0x5541e6:0x4f};function _0x3bdd1b(_0x43c246,_0x2464fb,_0x325e19,_0x25f3cf){return _0x23af(_0x25f3cf-_0x530125._0x5541e6,_0x2464fb);}function _0x44a057(_0x207aaf,_0x4f4cc4,_0x1a3147,_0xe090f8){return _0x23af(_0x207aaf- -_0x2f10f5._0x1e7d5c,_0xe090f8);}return{'model':_0x3972d7[_0x3bdd1b(_0x20cfc9._0x29deda,0x1ee,0x1d2,_0x20cfc9._0xf633bd)],..._0x3972d7[_0x3bdd1b(0x1d9,_0x20cfc9._0x5ea0fc,_0x20cfc9._0x519f8a,0x1f4)]!==void 0x0?{'max_tokens':_0x3972d7[_0x3bdd1b(_0x20cfc9._0x5ee1bf,0x1e7,0x1e2,_0x20cfc9._0x5b1094)]}:{},..._0x3972d7[_0x3bdd1b(0x209,_0x20cfc9._0x5148d7,0x1dd,0x1f2)]?{'reasoning':structuredClone(_0x3972d7['reasoning'])}:{},'system':structuredClone(_0x3972d7[_0x44a057(0x43,0x4f,_0x20cfc9._0x583bd5,_0x20cfc9._0x175628)]),'messages':structuredClone(_0x3972d7[_0x44a057(0x6f,0x54,_0x20cfc9._0x5e8d98,0x5c)]),'tools':structuredClone(_0x3972d7[_0x3bdd1b(_0x20cfc9._0x1add58,_0x20cfc9._0x3df27e,0x200,_0x20cfc9._0x3b8665)]),'metadata':{'session_id':_0x3972d7[_0x3bdd1b(0x1df,0x1f1,_0x20cfc9._0x57bcc0,_0x20cfc9._0x5e1829)][_0x3bdd1b(_0x20cfc9._0x1cfe7c,0x1e5,0x1dd,0x1d6)],'turn_id':_0x3972d7[_0x3bdd1b(_0x20cfc9._0x1cfe7c,0x1d2,_0x20cfc9._0x3ea7fe,_0x20cfc9._0x2391bb)]['turnId'],..._0x3972d7['metadata'][_0x44a057(_0x20cfc9._0x26a56a,0x77,0x8d,_0x20cfc9._0x2fa5bb)]!==void 0x0?{'model_identity':_0x3972d7[_0x3bdd1b(0x1c4,0x1bb,_0x20cfc9._0x53e971,0x1d8)][_0x44a057(_0x20cfc9._0x136cac,0x74,_0x20cfc9._0x2e6842,0x8c)]}:{},..._0x3972d7[_0x3bdd1b(_0x20cfc9._0x4f3603,0x1ba,0x1dc,_0x20cfc9._0x2391bb)][_0x44a057(0x40,0x28,0x58,_0x20cfc9._0x3cfc53)]!==void 0x0?{'pricing_provider_id':_0x3972d7[_0x3bdd1b(_0x20cfc9._0x543877,0x1e2,0x1c8,0x1d8)]['pricingProviderId']}:{}},..._0x3972d7['outputFormat']?{'outputFormat':structuredClone(_0x3972d7[_0x44a057(_0x20cfc9._0x5a27be,0x51,_0x20cfc9._0x2ab178,_0x20cfc9._0x2908f2)])}:{}};}function toProviderModelRequest(_0x71bfcb){const _0x3b7c25={_0x508692:0x243,_0x28d59e:0x25f,_0x23c174:0x21,_0x287b3b:0x1f,_0x38e4d5:0xf,_0x2ed386:0x30,_0x335542:0x51,_0x2519e3:0x3e},_0x2932e6={_0x47dc27:0x1d5},_0x30c950={_0x39ebcc:0xca};function _0x9d08ee(_0x198712,_0x3fe62d,_0x426967,_0x41726b){return _0x23af(_0x41726b-_0x30c950._0x39ebcc,_0x3fe62d);}function _0x486dbb(_0x358633,_0xbc28bb,_0x38fc36,_0x2ce75f){return _0x23af(_0x358633- -_0x2932e6._0x47dc27,_0xbc28bb);}return{'model':_0x71bfcb[_0x9d08ee(_0x3b7c25._0x508692,0x245,_0x3b7c25._0x28d59e,0x250)],..._0x71bfcb[_0x486dbb(-0x30,-_0x3b7c25._0x23c174,-_0x3b7c25._0x287b3b,-_0x3b7c25._0x38e4d5)]!==void 0x0?{'max_tokens':_0x71bfcb[_0x486dbb(-_0x3b7c25._0x2ed386,-0x13,-_0x3b7c25._0x335542,-0x18)]}:{},'system':structuredClone(_0x71bfcb['system']),'messages':structuredClone(_0x71bfcb['messages']),'tools':structuredClone(_0x71bfcb[_0x486dbb(-_0x3b7c25._0x2519e3,-0x3e,-0x2f,-0x1e)])};}function toChatResponse(_0x5659f3){const _0x202adc={_0x332861:0x52d,_0x5864fa:0x54b,_0x46208d:0x530,_0x2761a8:0x47,_0xaa7300:0x51,_0x2098c7:0x4a,_0x44396d:0x4ed,_0x87dd77:0x509,_0x1415cf:0x524,_0x198914:0x4f,_0x1fe5c3:0x8d,_0x2a2d98:0x6d,_0x447e98:0x51d,_0x592ad0:0x537,_0x745c9c:0x537,_0x41e282:0x517,_0x478c0a:0x50b,_0x171056:0x50e,_0x226f89:0x51,_0x5d9f6f:0x6a,_0x14490c:0x6d,_0x5f02e8:0x53a},_0x1b8ba9={_0x515826:0x1f8};function _0x229939(_0x229f48,_0x4316ec,_0x368d5d,_0x1a137d){return _0x23af(_0x1a137d-0x383,_0x229f48);}function _0xe61ce2(_0x4683a8,_0xcf7927,_0x841f05,_0x3e4675){return _0x23af(_0x3e4675- -_0x1b8ba9._0x515826,_0x841f05);}return{'id':_0x5659f3['id'],'content':structuredClone(_0x5659f3[_0x229939(0x522,_0x202adc._0x332861,_0x202adc._0x5864fa,_0x202adc._0x46208d)]),'stopReason':_0x5659f3[_0xe61ce2(-_0x202adc._0x2761a8,-0x5c,-_0x202adc._0xaa7300,-_0x202adc._0x2098c7)],'usage':{'inputTokens':_0x5659f3[_0x229939(_0x202adc._0x44396d,0x4f0,_0x202adc._0x87dd77,0x50e)][_0x229939(0x51d,_0x202adc._0x1415cf,0x52e,0x535)],'outputTokens':_0x5659f3[_0xe61ce2(-_0x202adc._0x198914,-_0x202adc._0x1fe5c3,-0x89,-_0x202adc._0x2a2d98)][_0x229939(_0x202adc._0x447e98,_0x202adc._0x592ad0,_0x202adc._0x745c9c,_0x202adc._0x41e282)],..._0x5659f3[_0x229939(0x51c,_0x202adc._0x478c0a,0x512,_0x202adc._0x171056)]['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x5659f3[_0xe61ce2(-_0x202adc._0xaa7300,-_0x202adc._0x226f89,-_0x202adc._0x5d9f6f,-_0x202adc._0x14490c)]['reasoning_tokens']}:{}},..._0x5659f3[_0x229939(_0x202adc._0x5f02e8,_0x202adc._0x5f02e8,0x521,0x533)]?{'providerState':structuredClone(_0x5659f3[_0xe61ce2(-0x44,-0x5f,-0x59,-0x48)])}:{}};}function toModelResponse(_0x2a8c74){const _0x5ed625={_0x4a143e:0x25f,_0x422d49:0x252,_0x1b1313:0x29e,_0x1e8849:0x2c2,_0x335a44:0x2cc,_0x5f0d54:0x2c9,_0x3964f7:0x2a6,_0x461f31:0x289,_0x5924ac:0x297,_0x213650:0x26b,_0x314a42:0x25c,_0x4c0026:0x234,_0x3d0702:0x222,_0x187849:0x2b9,_0x1389fb:0x2b4,_0x1a0c4d:0x27f,_0x4fa8c3:0x263,_0x55a7e0:0x257,_0x448877:0x2c5,_0x358002:0x2db,_0x4fa21f:0x2cf,_0x63b382:0x238,_0x35d20f:0x235,_0x416b24:0x249},_0x181d03={_0x1e8419:0x115};function _0x28c15c(_0x295c1a,_0x41d208,_0x2f2ed4,_0x463b0d){return _0x23af(_0x41d208- -0x3e5,_0x295c1a);}function _0x348953(_0x47f0c5,_0x189f39,_0x150ac8,_0x51fcad){return _0x23af(_0x189f39-_0x181d03._0x1e8419,_0x51fcad);}return{'id':_0x2a8c74['id'],'type':_0x28c15c(-_0x5ed625._0x4a143e,-_0x5ed625._0x422d49,-0x270,-0x26b),'role':_0x348953(_0x5ed625._0x1b1313,0x2bc,0x2a8,0x2d1),'content':structuredClone(_0x2a8c74[_0x348953(0x2a1,_0x5ed625._0x1e8849,_0x5ed625._0x335a44,_0x5ed625._0x5f0d54)]),'stop_reason':_0x2a8c74['stopReason'],'stop_sequence':null,'usage':{'input_tokens':_0x2a8c74[_0x348953(_0x5ed625._0x3964f7,0x2a0,_0x5ed625._0x461f31,0x292)][_0x348953(0x2b0,0x2b6,_0x5ed625._0x5924ac,_0x5ed625._0x5924ac)],'output_tokens':_0x2a8c74[_0x28c15c(-_0x5ed625._0x213650,-0x25a,-0x258,-_0x5ed625._0x314a42)][_0x28c15c(-0x25f,-0x241,-_0x5ed625._0x4c0026,-_0x5ed625._0x3d0702)],..._0x2a8c74[_0x348953(_0x5ed625._0x187849,0x2a0,0x2b2,_0x5ed625._0x1389fb)]['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x2a8c74['usage'][_0x28c15c(-_0x5ed625._0x1a0c4d,-_0x5ed625._0x4fa8c3,-_0x5ed625._0x55a7e0,-0x270)]}:{}},..._0x2a8c74[_0x348953(0x2ab,_0x5ed625._0x448877,_0x5ed625._0x358002,_0x5ed625._0x4fa21f)]?{'providerState':structuredClone(_0x2a8c74[_0x28c15c(-_0x5ed625._0x63b382,-_0x5ed625._0x35d20f,-0x229,-_0x5ed625._0x416b24)])}:{}};}function responseToAssistantMessage(_0x341d75){const _0x1911f0={_0x118c54:0x2ad,_0x546c98:0x2d0,_0x1d73ce:0x2b9,_0x457ac2:0x293,_0x5a62ea:0x2b3,_0x2ab64e:0x2c2,_0x1e3e91:0x2b6},_0x111f81={_0x250a60:0x17a};function _0x461a8b(_0x525e3a,_0x1d9250,_0x34a24c,_0x22f2da){return _0x23af(_0x22f2da-0x106,_0x34a24c);}function _0x2c92c5(_0x3503b7,_0x29515d,_0x1571da,_0x4830a0){return _0x23af(_0x1571da- -_0x111f81._0x250a60,_0x3503b7);}return{'role':_0x461a8b(0x2b2,0x28e,0x2c3,_0x1911f0._0x118c54),'content':normalizeContent(_0x341d75[_0x461a8b(_0x1911f0._0x546c98,_0x1911f0._0x1d73ce,_0x1911f0._0x457ac2,_0x1911f0._0x5a62ea)]),..._0x341d75[_0x461a8b(0x2af,_0x1911f0._0x2ab64e,0x2c3,_0x1911f0._0x1e3e91)]?{'providerState':structuredClone(_0x341d75['providerState'])}:{}};}function createReasoningMessage(_0x1fd8c6){const _0x1b6510={_0x1e25e4:0x32c,_0x5bfb88:0x353,_0x54c1e0:0x337,_0x271702:0x358},_0x43c4db={_0x3e563e:0x48,_0x1686b3:0x68,_0x470d6d:0x3a,_0x2ac310:0x50,_0x3501e2:0x1f7,_0x3d39b4:0x1ee,_0x42eda7:0x1fc,_0x3dc238:0x1fb,_0x1d8359:0x226,_0x16a396:0x224},_0x372654=normalizeContent(_0x1fd8c6?.['content'])['filter'](_0x4e876f=>{function _0x2abe76(_0x13050b,_0x1a77c3,_0x2f19b3,_0xc24214){return _0x23af(_0x13050b- -0x147,_0x1a77c3);}function _0x4125c0(_0x11a2a5,_0x126aa4,_0x4015d6,_0x310182){return _0x23af(_0x310182-0x6c,_0x11a2a5);}return _0x4e876f[_0x2abe76(_0x43c4db._0x3e563e,_0x43c4db._0x1686b3,_0x43c4db._0x470d6d,_0x43c4db._0x2ac310)]===_0x4125c0(_0x43c4db._0x3501e2,0x206,0x1ff,0x214)||_0x4e876f['type']==='anthropic_thinking'||_0x4e876f[_0x4125c0(_0x43c4db._0x3d39b4,0x200,_0x43c4db._0x42eda7,_0x43c4db._0x3dc238)]===_0x4125c0(_0x43c4db._0x1d8359,0x22b,0x23d,_0x43c4db._0x16a396);});if(_0x372654[_0x58ee96(0x331,_0x1b6510._0x1e25e4,0x32b,0x329)]===0x0)return void 0x0;function _0x502839(_0x2265fa,_0x2e6fed,_0x52132f,_0x25a68b){return _0x23af(_0x2265fa- -0x13f,_0x2e6fed);}function _0x58ee96(_0xff1bc4,_0x2d9870,_0x1ded8c,_0x3789a6){return _0x23af(_0x1ded8c-0x1ae,_0x2d9870);}return{'role':_0x58ee96(_0x1b6510._0x5bfb88,_0x1b6510._0x54c1e0,0x355,_0x1b6510._0x271702),'content':_0x372654};}function createAssistantTextMessage(_0x296351){const _0x207aa3={_0x48e927:0x312,_0x3dba35:0x2da,_0x92f148:0xd7,_0x540ab3:0xe2,_0x289050:0x101,_0x4b259c:0xe5},_0xdca3a4={_0x26a13d:0x14e},_0x48be2a={_0x3f2360:0x124},_0x21fece={_0x59f0c3:0x12b},_0x1f722a=normalizeContent(_0x296351?.[_0x558cc7(_0x207aa3._0x48e927,0x2e2,_0x207aa3._0x3dba35,0x2fb)])['filter'](_0x24806a=>{function _0x156a9b(_0x3ff11d,_0x2c7877,_0x204e02,_0x5b25f7){return _0x558cc7(_0x3ff11d-0x16f,_0x2c7877-0x6b,_0x5b25f7,_0x2c7877- -_0x21fece._0x59f0c3);}function _0x482830(_0x5a4fc2,_0x204355,_0x1a73c4,_0x4efc8a){return _0x558cc7(_0x5a4fc2-0x2e,_0x204355-0x188,_0x4efc8a,_0x5a4fc2- -0x19b);}return _0x24806a[_0x482830(0x142,_0x48be2a._0x3f2360,0x13c,0x15f)]===_0x482830(0x162,0x16d,0x16a,0x14c);});function _0x558cc7(_0x4df5be,_0x50ed53,_0x4c0a0d,_0x2fe1a4){return _0x23af(_0x2fe1a4-_0xdca3a4._0x26a13d,_0x4c0a0d);}function _0x55c9ab(_0x4591d3,_0x2ba5a1,_0x1d4160,_0x55b492){return _0x23af(_0x1d4160- -0xa6,_0x55b492);}if(_0x1f722a[_0x55c9ab(0xd9,_0x207aa3._0x92f148,_0x207aa3._0x92f148,_0x207aa3._0x540ab3)]===0x0)return void 0x0;return{'role':_0x55c9ab(0x119,0xfc,_0x207aa3._0x289050,_0x207aa3._0x4b259c),'content':_0x1f722a};}function createToolUseMessage(_0xaa0a6c){const _0x35ee87={_0x3f3d1f:0xba,_0x46d1cf:0xd5,_0x33a12e:0x8a,_0x3e4d90:0x78,_0x5186ba:0x91},_0x5d6626={_0x367a74:0x47e,_0x35981b:0x459,_0x50fb23:0x448,_0x452894:0x493},_0x1cb908={_0x2a7721:0x3c2,_0x996ffd:0x1ee};function _0x424b22(_0x30e615,_0x2ceb22,_0x4cddcd,_0x268f12){return _0x23af(_0x2ceb22-0x26b,_0x4cddcd);}const _0x17773c=normalizeContent(_0xaa0a6c?.[_0x27ed9f(_0x35ee87._0x3f3d1f,0xd6,_0x35ee87._0x46d1cf,0xb8)])['filter'](_0x129926=>{const _0xaf3517={_0xc207bb:0x1d5};function _0x5bdefa(_0x775c3c,_0x3100c3,_0x4cc85f,_0xc0f712){return _0x27ed9f(_0x3100c3- -0x151,_0x3100c3-0xcd,_0x4cc85f-_0xaf3517._0xc207bb,_0x4cc85f);}function _0x3ae48f(_0x527b2c,_0x3e83a9,_0x3d830f,_0x4284e6){return _0x27ed9f(_0x527b2c-_0x1cb908._0x2a7721,_0x3e83a9-0x15,_0x3d830f-_0x1cb908._0x996ffd,_0x4284e6);}return _0x129926[_0x3ae48f(0x45e,_0x5d6626._0x367a74,_0x5d6626._0x35981b,_0x5d6626._0x50fb23)]===_0x3ae48f(0x489,0x49a,0x475,_0x5d6626._0x452894);});function _0x27ed9f(_0x4ef6ca,_0x4c142f,_0x3a42d5,_0x397d73){return _0x23af(_0x4ef6ca- -0xf3,_0x397d73);}if(_0x17773c[_0x27ed9f(_0x35ee87._0x33a12e,_0x35ee87._0x3e4d90,0x85,_0x35ee87._0x5186ba)]===0x0)return void 0x0;return{'role':'assistant','content':_0x17773c};}function getTextFromMessage(_0x3a1f68){const _0x30a32a={_0x473bab:0x111,_0x654947:0x10f,_0x386ac0:0x110,_0x5edd28:0x11f,_0x360394:0x1ac,_0xd7b830:0x193},_0x2d8753={_0x36b524:0x2a7};function _0xc7eaed(_0x2eeb95,_0x22eafd,_0x2ccdfc,_0x167b17){return _0x23af(_0x167b17- -_0x2d8753._0x36b524,_0x22eafd);}function _0x1a3ad6(_0x3195da,_0x4e68aa,_0x13e5fe,_0x8d44eb){return _0x23af(_0x13e5fe- -0x343,_0x8d44eb);}return normalizeContent(_0x3a1f68?.[_0xc7eaed(-_0x30a32a._0x473bab,-_0x30a32a._0x654947,-_0x30a32a._0x386ac0,-0xfa)])[_0xc7eaed(-0x115,-_0x30a32a._0x5edd28,-0x13b,-0x122)](_0x10c63f=>_0x10c63f[_0xc7eaed(-0x120,-0x115,-0x117,-0x118)]===_0xc7eaed(-0xe6,-0xde,-0x10a,-0xf8))['map'](_0x4a4611=>_0x4a4611[_0xc7eaed(-0xee,-0xd9,-0xe5,-0xf8)])[_0x1a3ad6(-_0x30a32a._0x360394,-_0x30a32a._0xd7b830,-0x18c,-0x199)]('\x0a');}function getReasoningTextFromMessage(_0x55a079){const _0x51e5aa={_0x4306a4:0x465,_0x1c639d:0x468,_0x86e10f:0x467,_0x4b93b1:0x479,_0x5a1ceb:0x44c},_0x5704db={_0x3f3e8c:0x227,_0x86066f:0x235,_0x35ab92:0x1ff,_0x482f61:0x1ed,_0x1a6195:0x1f8,_0x4f24d9:0x20e,_0x2d3e72:0x212,_0x5e2faf:0x1f9,_0x7dcfd1:0x1c8,_0x40e8f3:0x1fa,_0x379cf1:0x214,_0x46c7a2:0x21d,_0x4a00aa:0x229,_0x185f84:0x213,_0x1183e5:0x23b,_0x164e10:0x216,_0x5ef1f7:0x1ea,_0x2034a6:0x1f5,_0x23dc28:0x1ee,_0x431529:0x1d9,_0x319bf7:0x1e9,_0x2c349c:0x1df,_0x3f6815:0x1f9,_0x295482:0x23f,_0x2c1555:0x1da,_0x365c37:0x24c,_0x54a7b8:0x24b,_0x1729e3:0x231,_0x515f01:0x1df,_0xcc2aee:0x1df,_0xf46bb3:0x21b,_0x155828:0x1f4,_0x275099:0x1e8,_0x476809:0x24e,_0x1e883d:0x218,_0x5b7eab:0x1e4,_0x419e81:0x219,_0x2edc0e:0x1fd,_0x1ea52e:0x205,_0x594864:0x204,_0x118418:0x213,_0x3e3b53:0x20a},_0x190b56={_0x4775e6:0x2bb};function _0x46fa37(_0x1d95be,_0x12e534,_0x3c48d5,_0x108392){return _0x23af(_0x1d95be-0x17e,_0x3c48d5);}function _0x4eeb9c(_0x2cd819,_0x572753,_0x436da3,_0x251d6b){return _0x23af(_0x572753-_0x190b56._0x4775e6,_0x251d6b);}return normalizeContent(_0x55a079?.[_0x4eeb9c(_0x51e5aa._0x4306a4,_0x51e5aa._0x1c639d,0x488,0x476)])[_0x4eeb9c(0x45d,_0x51e5aa._0x86e10f,_0x51e5aa._0x4b93b1,_0x51e5aa._0x5a1ceb)](_0x33fa3b=>{const _0x973cd0={_0x26bd73:0x162};if(_0x33fa3b[_0x2bc993(-_0x5704db._0x3f3e8c,-_0x5704db._0x86066f,-_0x5704db._0x35ab92,-0x21f)]===_0x7aee1a(-_0x5704db._0x482f61,-_0x5704db._0x1a6195,-0x1fb,-_0x5704db._0x4f24d9))return _0x33fa3b[_0x2bc993(-_0x5704db._0x2d3e72,-0x217,-0x220,-0x213)][_0x7aee1a(-_0x5704db._0x5e2faf,-_0x5704db._0x7dcfd1,-0x203,-0x1e8)]()[_0x7aee1a(-0x22a,-0x210,-_0x5704db._0x40e8f3,-_0x5704db._0x379cf1)]>0x0?[_0x33fa3b[_0x2bc993(-_0x5704db._0x46c7a2,-0x21b,-_0x5704db._0x4a00aa,-_0x5704db._0x185f84)]]:[];if(_0x33fa3b[_0x2bc993(-_0x5704db._0x1183e5,-0x221,-0x23c,-0x21f)]==='anthropic_redacted_thinking')return[_0x7aee1a(-_0x5704db._0x164e10,-0x215,-_0x5704db._0x5ef1f7,-_0x5704db._0x2034a6)];function _0x2bc993(_0x279412,_0x4151e2,_0x362a09,_0x640e2f){return _0x46fa37(_0x640e2f- -0x52c,_0x4151e2-0x119,_0x279412,_0x640e2f-0x112);}if(_0x33fa3b['type']!==_0x7aee1a(-_0x5704db._0x23dc28,-0x1ba,-0x1b9,-_0x5704db._0x431529))return[];const _0x30fec7=_0x33fa3b['summary'][_0x2bc993(-0x1fb,-_0x5704db._0x319bf7,-_0x5704db._0x2c349c,-_0x5704db._0x3f6815)](_0x59f69c=>_0x59f69c[_0x2bc993(-0x1e8,-0x1ea,-0x1e3,-0x1ff)])[_0x2bc993(-0x245,-0x20e,-_0x5704db._0x295482,-0x229)](_0x4eafd7=>_0x4eafd7['trim']()[_0x7aee1a(-0x226,-0x201,-0x205,-0x214)]>0x0)[_0x7aee1a(-0x1e6,-0x1d3,-0x1ec,-_0x5704db._0x2c1555)]('\x0a\x0a');if(_0x30fec7[_0x2bc993(-0x245,-_0x5704db._0x365c37,-_0x5704db._0x54a7b8,-_0x5704db._0x1729e3)]>0x0)return[_0x30fec7];if(_0x33fa3b[_0x2bc993(-_0x5704db._0x515f01,-0x1ea,-0x1f1,-0x1ff)]&&_0x33fa3b[_0x2bc993(-_0x5704db._0xcc2aee,-0x1e0,-_0x5704db._0xf46bb3,-0x1ff)][_0x7aee1a(-0x1df,-_0x5704db._0x155828,-0x1d1,-_0x5704db._0x275099)]()[_0x2bc993(-_0x5704db._0x476809,-0x22c,-0x23f,-_0x5704db._0x1729e3)]>0x0)return[_0x33fa3b[_0x2bc993(-0x1f7,-_0x5704db._0x1e883d,-_0x5704db._0x5b7eab,-0x1ff)]];function _0x7aee1a(_0x57fcdd,_0x5cba40,_0x191ec1,_0x5bb858){return _0x4eeb9c(_0x57fcdd-_0x973cd0._0x26bd73,_0x5bb858- -0x64c,_0x191ec1-0xa5,_0x5cba40);}return _0x33fa3b[_0x2bc993(-_0x5704db._0x419e81,-_0x5704db._0x2edc0e,-_0x5704db._0x1ea52e,-_0x5704db._0x594864)]?[_0x2bc993(-_0x5704db._0x118418,-_0x5704db._0x3e3b53,-_0x5704db._0x4f24d9,-0x1fd)]:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x17df15){const _0x96db7b={_0x556257:0xdf,_0x236fb5:0x106,_0x348c46:0x3f7,_0x3f4ed9:0x3e8,_0xd0cdd7:0x3d8},_0x2b7739={_0x39a18b:0x2a6},_0x200f4a={_0x4f1d5e:0x263};function _0x398bdb(_0x1dc9b2,_0x50c367,_0x2001b1,_0x1d513e){return _0x23af(_0x2001b1-_0x200f4a._0x4f1d5e,_0x50c367);}function _0xc7bf5a(_0x512a32,_0x4b3a8f,_0xae63cc,_0x144a3c){return _0x23af(_0x144a3c- -_0x2b7739._0x39a18b,_0x512a32);}return normalizeContent(_0x17df15?.[_0xc7bf5a(-_0x96db7b._0x556257,-_0x96db7b._0x236fb5,-0xfe,-0xf9)])[_0x398bdb(0x3ec,_0x96db7b._0x348c46,_0x96db7b._0x3f4ed9,_0x96db7b._0xd0cdd7)](_0x5c4e6f=>_0x5c4e6f[_0xc7bf5a(-0x133,-0x10a,-0x115,-0x117)]===_0x398bdb(0x437,0x435,0x41d,0x424));}function getToolResultBlocks(_0x4b445a){const _0x5176b1={_0x39c416:0x4c2,_0x204ea6:0x4cc},_0x391240={_0x3e8430:0x3c4},_0x58b620={_0x2498b0:0x31e};function _0x57c2d1(_0x14d632,_0x3354d7,_0x125afa,_0x45a9e4){return _0x23af(_0x14d632-_0x58b620._0x2498b0,_0x45a9e4);}function _0x4e46d2(_0x405895,_0xada8de,_0x2c795f,_0x3902bc){return _0x23af(_0x3902bc- -_0x391240._0x3e8430,_0xada8de);}return normalizeContent(_0x4b445a?.[_0x57c2d1(0x4cb,_0x5176b1._0x39c416,_0x5176b1._0x204ea6,0x4e6)])['filter'](_0x3f8637=>_0x3f8637[_0x57c2d1(0x4ad,0x4cb,0x49c,0x4cc)]===_0x4e46d2(-0x23e,-0x23e,-0x242,-0x22b));}function createToolResultUserMessage(_0x54eae5){const _0xf880fd={_0x258030:0x300,_0x2954f7:0x320,_0x280d80:0x13a,_0x2a32eb:0x14e,_0x495142:0x13d},_0x414bbc={_0x7c689d:0x2e3,_0x403f85:0x2b6,_0x392365:0x13b,_0x280b4f:0x132,_0x19c8da:0x14b,_0x102047:0x13c,_0x3c2767:0x15d,_0x5e1439:0x160,_0x52f0cc:0x12f,_0x2df65e:0x133,_0x2b864e:0x134,_0x1f7c5f:0x137,_0x3782be:0x122,_0x5a3a10:0x116},_0x2a834d={_0x18bb6c:0x18a,_0x18ea8a:0x185,_0x4adb15:0x35},_0x536ecd={_0x43ede5:0x163},_0x17c2bb={_0x1225d3:0x67};function _0x37c7a7(_0x3d097c,_0x3235ee,_0x5c2b84,_0x5498cd){return _0x23af(_0x3235ee- -_0x17c2bb._0x1225d3,_0x5498cd);}function _0x6f9986(_0x86476e,_0x4e0942,_0x3fe896,_0x20bbba){return _0x23af(_0x4e0942-_0x536ecd._0x43ede5,_0x86476e);}return{'role':_0x6f9986(0x309,_0xf880fd._0x258030,0x30a,_0xf880fd._0x2954f7),'content':_0x54eae5[_0x37c7a7(_0xf880fd._0x280d80,_0xf880fd._0x2a32eb,_0xf880fd._0x495142,0x148)](_0x5023b6=>{function _0x129271(_0x23e811,_0x3453b7,_0x501239,_0x2c5b63){return _0x37c7a7(_0x23e811-0xf8,_0x501239-0x5,_0x501239-0x17,_0x23e811);}function _0x271fde(_0x322529,_0x321150,_0x34e5b5,_0x5caeab){return _0x37c7a7(_0x322529-_0x2a834d._0x18bb6c,_0x321150-_0x2a834d._0x18ea8a,_0x34e5b5-_0x2a834d._0x4adb15,_0x322529);}return{'type':'tool_result','tool_use_id':_0x5023b6[_0x271fde(0x2b6,0x2d1,_0x414bbc._0x7c689d,_0x414bbc._0x403f85)],'content':_0x5023b6[_0x129271(_0x414bbc._0x392365,_0x414bbc._0x280b4f,_0x414bbc._0x19c8da,_0x414bbc._0x102047)]??_0x5023b6[_0x129271(0x157,_0x414bbc._0x3c2767,0x159,_0x414bbc._0x5e1439)],'is_error':_0x5023b6[_0x129271(_0x414bbc._0x52f0cc,_0x414bbc._0x2df65e,_0x414bbc._0x2b864e,_0x414bbc._0x1f7c5f)]===_0x129271(0x106,0x11a,_0x414bbc._0x3782be,_0x414bbc._0x5a3a10)};})};}var INTERRUPTED_TOOL_RESULT_TEXT='Tool\x20execution\x20was\x20interrupted\x20before\x20completion\x20and\x20produced\x20no\x20result.';function synthesizeMissingToolResults(_0x7ebce4){const _0x11ba77={_0x312f3:0x3ef,_0x277769:0x26d,_0x153863:0x26a,_0x10eac3:0x418,_0x4c5d2d:0x3c6,_0x17d98f:0x3c5,_0x28f8de:0x3e2,_0x83b8f4:0x3ef,_0x33e778:0x3da,_0x57119d:0x416,_0x571352:0x42d,_0x448398:0x413,_0x4b60d1:0x241},_0x6f2629={_0x3a8111:0xae};function _0x54425b(_0x481425,_0x200d93,_0x84d520,_0x153809){return _0x23af(_0x153809-0x25d,_0x481425);}function _0x4b2a75(_0x2051f7,_0x3b5c1e,_0x1df7a9,_0x4b6792){return _0x23af(_0x2051f7-_0x6f2629._0x3a8111,_0x1df7a9);}const _0x1c6b03=new Set();for(const _0xeb8fa1 of _0x7ebce4){for(const _0x1c1895 of getToolResultBlocks(_0xeb8fa1)){_0x1c6b03[_0x54425b(0x3d7,_0x11ba77._0x312f3,0x3fb,0x3f5)](_0x1c1895[_0x4b2a75(0x24e,_0x11ba77._0x277769,0x22d,_0x11ba77._0x153863)]);}}const _0x33e83b=[];for(const _0x39d416 of _0x7ebce4){_0x33e83b[_0x54425b(0x40c,_0x11ba77._0x10eac3,0x423,0x413)](_0x39d416);const _0x34eb06=getToolUseBlocks(_0x39d416)[_0x54425b(_0x11ba77._0x4c5d2d,0x3e5,_0x11ba77._0x17d98f,_0x11ba77._0x28f8de)](_0x37b192=>!_0x1c6b03[_0x4b2a75(0x23c,0x24a,0x257,0x23c)](_0x37b192['id']));if(_0x34eb06[_0x54425b(0x3eb,_0x11ba77._0x83b8f4,0x3d3,_0x11ba77._0x33e778)]===0x0)continue;_0x33e83b[_0x54425b(_0x11ba77._0x57119d,0x41c,_0x11ba77._0x571352,_0x11ba77._0x448398)]({'role':'user','content':_0x34eb06['map'](_0x4521ea=>({'type':_0x54425b(0x3fe,0x3fe,0x414,0x3f6),'tool_use_id':_0x4521ea['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x4f2608 of _0x34eb06){_0x1c6b03[_0x4b2a75(0x246,0x228,_0x11ba77._0x4b60d1,0x264)](_0x4f2608['id']);}}return _0x33e83b;}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(_0x5ed89a,_0x946fb1){const _0x566e81={_0x2ac227:0xb5,_0xb3761b:0x9c,_0x148482:0xb9,_0x162f8e:0xcf,_0x45da56:0x83,_0xc554fd:0x98,_0x4e3dd6:0x2fc,_0x5f08dd:0x31d,_0x1f08c8:0x311,_0x507871:0xc6,_0x588d42:0xae,_0x51792b:0xc1,_0x273c19:0xce,_0xb5bd5a:0xb8,_0x2fd5f9:0xd5,_0x15f7b0:0x33e,_0x20d317:0x315,_0x3c0c39:0x332,_0x57e5cc:0x2ee,_0x17f892:0x2f7,_0x22392d:0x303,_0x16f652:0xa1,_0x205d0c:0xa6,_0x9600a1:0xc2},_0x52fa24={_0x55af06:0x145},_0x4bde10=_0x5ed89a();function _0x5f48d6(_0x77faf6,_0x493140,_0x5361bc,_0x585793){return _0x1699(_0x585793-_0x52fa24._0x55af06,_0x77faf6);}function _0x18d155(_0x15b4d2,_0x64311a,_0x2feff3,_0x29b90c){return _0x1699(_0x2feff3- -0x140,_0x15b4d2);}while(!![]){try{const _0x3a9c11=parseInt(_0x18d155(_0x566e81._0x2ac227,_0x566e81._0xb3761b,_0x566e81._0x148482,_0x566e81._0x162f8e))/0x1*(parseInt(_0x18d155(0x8f,0x6f,_0x566e81._0x45da56,_0x566e81._0xc554fd))/0x2)+parseInt(_0x18d155(0xa9,0xbc,0xb5,0xbe))/0x3+-parseInt(_0x18d155(0x8e,0x87,0x81,0x70))/0x4+parseInt(_0x5f48d6(_0x566e81._0x4e3dd6,_0x566e81._0x5f08dd,_0x566e81._0x1f08c8,0x30b))/0x5+-parseInt(_0x18d155(_0x566e81._0x507871,_0x566e81._0x588d42,0xbc,_0x566e81._0x507871))/0x6*(-parseInt(_0x5f48d6(0x33e,0x325,0x338,0x32c))/0x7)+-parseInt(_0x18d155(_0x566e81._0x51792b,_0x566e81._0x273c19,_0x566e81._0xb5bd5a,_0x566e81._0x2fd5f9))/0x8*(-parseInt(_0x5f48d6(0x34d,_0x566e81._0x15f7b0,_0x566e81._0x20d317,_0x566e81._0x3c0c39))/0x9)+-parseInt(_0x5f48d6(0x2f5,_0x566e81._0x57e5cc,_0x566e81._0x17f892,_0x566e81._0x22392d))/0xa*(parseInt(_0x18d155(0x8f,_0x566e81._0x16f652,_0x566e81._0x205d0c,_0x566e81._0x9600a1))/0xb);if(_0x3a9c11===_0x946fb1)break;else _0x4bde10['push'](_0x4bde10['shift']());}catch(_0x24f81a){_0x4bde10['push'](_0x4bde10['shift']());}}}(_0x432c,0xebd85));function createTextBlock(_0x40765c){function _0x3e6ba8(_0x1324f7,_0x25afc0,_0xd1e888,_0x4663ac){return _0x1699(_0x1324f7- -0x257,_0x25afc0);}return{'type':_0x3e6ba8(-0x5c,-0x5c,-0x4d,-0x77),'text':_0x40765c};}function normalizeTextBlock(_0x2216b4){return createTextBlock(_0x2216b4['text']??'');}function _0x7d6272(_0x456bd7,_0x318eae,_0x2a393b,_0x3b9491){const _0xee767a={_0x539c08:0x25d};return _0x1699(_0x456bd7-_0xee767a._0x539c08,_0x2a393b);}function normalizeContent(_0x3325e1){const _0x3b5bfa={_0x1fa0ac:0x7b,_0x5b13ff:0x126,_0x505ce5:0x133},_0x24922d={_0x447a25:0x24,_0x2f60f7:0x18},_0x384223={_0x3c62e0:0x12b,_0x3e1c84:0xfb},_0x4a54fd={_0x3fb75e:0x245};if(typeof _0x3325e1==='string')return[createTextBlock(_0x3325e1)];function _0x3cb9b5(_0x3a5e83,_0x54770f,_0x34ddfd,_0x464d99){return _0x1699(_0x464d99- -0x2f3,_0x3a5e83);}if(!Array[_0x2ce9e6(-0x7b,-_0x3b5bfa._0x1fa0ac,-0x5b,-0x83)](_0x3325e1))return[];function _0x2ce9e6(_0x5cff96,_0x1975f6,_0x3b3b5d,_0x2fb997){return _0x1699(_0x5cff96- -_0x4a54fd._0x3fb75e,_0x1975f6);}return _0x3325e1[_0x3cb9b5(-0x107,-_0x3b5bfa._0x5b13ff,-_0x3b5bfa._0x505ce5,-0x123)](_0x252d02=>{function _0x8fce5c(_0x5e24f5,_0x175576,_0x57b4fe,_0x366c0a){return _0x3cb9b5(_0x175576,_0x175576-0xae,_0x57b4fe-_0x384223._0x3c62e0,_0x366c0a-_0x384223._0x3e1c84);}if(_0x252d02['type']===_0x8fce5c(_0x24922d._0x447a25,0x24,-_0x24922d._0x2f60f7,0x3))return normalizeTextBlock(_0x252d02);return structuredClone(_0x252d02);});}function normalizeSystem(_0x32268d=[]){const _0x165d6f={_0x525f86:0x593,_0xc58389:0x579,_0x2c096d:0x58a};function _0x419e9b(_0x494643,_0x5792a3,_0x5f21aa,_0x4b7c83){return _0x1699(_0x5792a3-0x39a,_0x494643);}function _0xfe5696(_0x2cb8b8,_0x12d99d,_0x4422a5,_0x227cbd){return _0x1699(_0x12d99d-0x61,_0x4422a5);}return normalizeContent(_0x32268d)[_0x419e9b(_0x165d6f._0x525f86,0x579,_0x165d6f._0xc58389,_0x165d6f._0x2c096d)](_0x243f18=>_0x243f18[_0xfe5696(0x249,0x242,0x22d,0x235)]===_0x419e9b(0x5b3,0x595,0x596,0x599));}function isProviderStateCompatible(_0x96f03,_0x2563ca){const _0x510bce={_0x3da4a9:0x26,_0x5d0eba:0x34,_0x1ac3ec:0x3d,_0x23fa06:0x30,_0x2d64cc:0x35,_0x5c007e:0x2d,_0x930f28:0x3d,_0x3c5891:0xc},_0x264320={_0x3fe406:0x1b8};function _0x24c821(_0x55ba13,_0x4baafa,_0x2a2a27,_0x27196e){return _0x1699(_0x4baafa- -_0x264320._0x3fe406,_0x55ba13);}function _0x5bef8f(_0x1bf9b8,_0x3b0705,_0x1a6e19,_0x1f1abe){return _0x1699(_0x1a6e19- -0x190,_0x1bf9b8);}const _0x29e925=_0x96f03[_0x24c821(0x1d,_0x510bce._0x3da4a9,0x3e,_0x510bce._0x5d0eba)]?.['originModelIdentity'];return _0x29e925===void 0x0||_0x29e925===_0x2563ca[_0x5bef8f(_0x510bce._0x1ac3ec,0x3f,_0x510bce._0x23fa06,0x1c)][_0x5bef8f(_0x510bce._0x2d64cc,_0x510bce._0x5c007e,_0x510bce._0x930f28,0x2d)]||_0x29e925===_0x2563ca[_0x24c821(0x40,0x24,_0x510bce._0x3c5891,0x1e)];}function normalizeMessage(_0xb8d234){const _0x5d6b9d={_0x270271:0x2c7,_0x4f9709:0x2e3},_0x197c6e={_0x458b14:0xf0};function _0xbe001(_0x1c8096,_0x692ca8,_0x499a24,_0x6db6a8){return _0x1699(_0x499a24-_0x197c6e._0x458b14,_0x1c8096);}return{...typeof _0xb8d234['id']==='string'?{'id':_0xb8d234['id']}:{},'role':_0xb8d234['role'],'content':normalizeContent(_0xb8d234[_0xbe001(_0x5d6b9d._0x270271,0x2c8,_0x5d6b9d._0x4f9709,0x2c3)]),..._0xb8d234['providerState']?{'providerState':structuredClone(_0xb8d234['providerState'])}:{}};}function compileRequest(_0x45eddf){const _0xca7371={_0x39de87:0xb5,_0x5f7aa7:0x9b,_0xdae63:0xa6,_0x421bce:0x99,_0x570022:0xa7,_0x4fa516:0xa3,_0x5d91ad:0x88,_0xb4dc28:0x2e8,_0x18213e:0x2fe,_0x302bbc:0xac,_0xe04b65:0x81,_0x5af647:0x78,_0x469326:0x8d,_0x46eae3:0x2df,_0x1240ac:0x8f,_0x5200af:0xbd,_0x5c4843:0xae,_0xd59fd:0xbc,_0x30dc1f:0x64,_0x2aedf5:0x9b},_0x1da5dd={_0x39d9f6:0x141};function _0x119a5e(_0x110e83,_0x104cdf,_0x2999d8,_0x592a8f){return _0x1699(_0x104cdf-0x126,_0x110e83);}function _0x749319(_0x3dfd30,_0x506c54,_0x3840c2,_0x290c27){return _0x1699(_0x506c54- -_0x1da5dd._0x39d9f6,_0x3dfd30);}return{'model':_0x45eddf[_0x749319(_0xca7371._0x39de87,_0xca7371._0x5f7aa7,_0xca7371._0xdae63,_0xca7371._0x421bce)]??_0x749319(_0xca7371._0x570022,_0xca7371._0x4fa516,_0xca7371._0x5d91ad,0xb6),..._0x45eddf[_0x119a5e(_0xca7371._0xb4dc28,_0xca7371._0x18213e,0x2f2,0x2ee)]!==void 0x0?{'max_tokens':_0x45eddf[_0x749319(_0xca7371._0x302bbc,0x97,0x9b,_0xca7371._0xe04b65)]}:{},..._0x45eddf['reasoning']?{'reasoning':structuredClone(_0x45eddf[_0x749319(_0xca7371._0x5af647,0x87,0x72,_0xca7371._0x469326)])}:{},'system':normalizeSystem(_0x45eddf[_0x119a5e(0x2f8,0x2ef,0x307,_0xca7371._0x46eae3)]),'messages':_0x45eddf['messages'][_0x749319(_0xca7371._0x421bce,_0xca7371._0x1240ac,0x9c,0x85)](normalizeMessage),'tools':structuredClone(_0x45eddf[_0x749319(_0xca7371._0x5200af,_0xca7371._0x5c4843,0xb4,_0xca7371._0xd59fd)]??[]),'metadata':{'session_id':_0x45eddf['sessionId'],'turn_id':_0x45eddf[_0x749319(0x86,0x7b,_0xca7371._0x30dc1f,_0xca7371._0x2aedf5)]}};}function toChatRequest(_0x428fd8){const _0x50dd80={_0x5e240b:0x2e,_0x33fc60:0x27,_0x112d66:0xce,_0x30cc7f:0xe3,_0x284844:0x29,_0x362e99:0xdc,_0x5eb107:0xc2,_0xb04019:0x4b,_0x44bdbe:0xee,_0xc9e2f0:0xdb,_0x19dc72:0xf3,_0x4615ff:0x10d,_0x21eb0c:0xd0,_0x1d9ee8:0xc0,_0x4f6e68:0x25,_0x12a290:0x26,_0xacd4c1:0x2b,_0x2977e8:0x26,_0x44b0e9:0x42,_0x84758d:0xe2,_0x3f468f:0xf6,_0x4543f2:0xc6,_0x5398f1:0xdb,_0x11ea84:0x2c,_0x2b1691:0x56,_0x4f0136:0xe1,_0x3f3651:0xe0,_0x118506:0x109,_0x391cc5:0xf5,_0x3405ea:0xde},_0x1cea20={_0x5ed4e8:0xe5},_0x46ec6a={_0x532a6f:0x1ff};function _0x3b2334(_0x27aad7,_0x11a3d7,_0x3aae18,_0x20ef1b){return _0x1699(_0x11a3d7- -_0x46ec6a._0x532a6f,_0x27aad7);}function _0x553211(_0x2aa18f,_0x94153,_0x519e5b,_0x266b02){return _0x1699(_0x266b02- -_0x1cea20._0x5ed4e8,_0x2aa18f);}return{'model':_0x428fd8[_0x3b2334(-0x6,-0x23,-0x43,-_0x50dd80._0x5e240b)],..._0x428fd8[_0x553211(0xe7,0xd7,0xdb,0xf3)]!==void 0x0?{'maxTokens':_0x428fd8[_0x3b2334(-0x28,-_0x50dd80._0x33fc60,-0x18,-0x29)]}:{},..._0x428fd8[_0x553211(_0x50dd80._0x112d66,0xd6,0xe6,_0x50dd80._0x30cc7f)]?{'reasoning':structuredClone(_0x428fd8['reasoning'])}:{},'system':structuredClone(_0x428fd8['system']),'messages':structuredClone(_0x428fd8['messages']),'tools':structuredClone(_0x428fd8[_0x3b2334(-0x25,-0x10,0xa,-_0x50dd80._0x284844)]),'metadata':{'sessionId':_0x428fd8[_0x553211(_0x50dd80._0x362e99,_0x50dd80._0x5eb107,0xd2,0xdb)][_0x3b2334(-_0x50dd80._0xb04019,-0x2e,-0xd,-0x2b)],'turnId':_0x428fd8[_0x553211(_0x50dd80._0x44bdbe,0xe8,0xcc,_0x50dd80._0xc9e2f0)][_0x553211(0x117,_0x50dd80._0x19dc72,0x12c,_0x50dd80._0x4615ff)],..._0x428fd8[_0x553211(_0x50dd80._0x21eb0c,0xdf,_0x50dd80._0x1d9ee8,0xdb)][_0x3b2334(-_0x50dd80._0x4f6e68,-_0x50dd80._0x12a290,-0x47,-0xc)]!==void 0x0?{'modelIdentity':_0x428fd8['metadata'][_0x3b2334(-_0x50dd80._0xacd4c1,-_0x50dd80._0x2977e8,-_0x50dd80._0x44b0e9,-0x3c)]}:{},..._0x428fd8[_0x553211(_0x50dd80._0x84758d,_0x50dd80._0x3f468f,_0x50dd80._0x4543f2,_0x50dd80._0x5398f1)]['pricing_provider_id']!==void 0x0?{'pricingProviderId':_0x428fd8[_0x3b2334(-_0x50dd80._0x11ea84,-0x3f,-_0x50dd80._0x2b1691,-0x38)][_0x3b2334(-0x40,-0x3b,-0x55,-0x45)]}:{}},..._0x428fd8[_0x553211(_0x50dd80._0x4f0136,_0x50dd80._0x3f3651,_0x50dd80._0x118506,_0x50dd80._0x391cc5)]?{'outputFormat':structuredClone(_0x428fd8[_0x553211(_0x50dd80._0x3405ea,0xe3,0xdb,_0x50dd80._0x391cc5)])}:{}};}function toModelRequest(_0x4221dd){const _0x54a030={_0x47d1b7:0x2c1,_0x5906ae:0x2d7,_0x4c01fa:0x2d9,_0x22967a:0x241,_0xae316b:0x236,_0x564faa:0x307,_0x369e98:0x2af,_0x59b762:0x2b2,_0x29cbc8:0x2ab,_0x2cb0ff:0x2c4,_0xaca8b6:0x2ca,_0x8a8937:0x2f8,_0x2aa5bb:0x2dd,_0x1e199b:0x217,_0x4321e9:0x214,_0x35cb4f:0x237,_0x37bfac:0x216,_0x118801:0x2bb,_0x2a2fd1:0x2d6,_0x310985:0x1f9,_0x4d01e1:0x224,_0x54d06b:0x211,_0x36d56e:0x218,_0x13f60a:0x2c3,_0x478c4d:0x2b6,_0x4bdcf0:0x2bb,_0x325727:0x218,_0x14d213:0x20b,_0x4b11aa:0x2f2,_0x3815c6:0x2eb,_0x830fd7:0x2d2,_0x1291b2:0x2c6,_0x3aa39f:0x2cd,_0x1cf299:0x2d5,_0x73994b:0x2ef,_0x3ddc69:0x22a},_0x24e856={_0x547c4d:0xfb};function _0x543df7(_0x38b5cf,_0x1a7327,_0x46eabe,_0x1dfc8e){return _0x1699(_0x46eabe-_0x24e856._0x547c4d,_0x1dfc8e);}function _0x608962(_0x3ff4bd,_0xe47260,_0x283dde,_0x4823c3){return _0x1699(_0x283dde-0x4b,_0xe47260);}return{'model':_0x4221dd[_0x543df7(0x2f0,_0x54a030._0x47d1b7,_0x54a030._0x5906ae,_0x54a030._0x4c01fa)],..._0x4221dd[_0x608962(0x233,_0x54a030._0x22967a,_0x54a030._0xae316b,0x22c)]!==void 0x0?{'max_tokens':_0x4221dd[_0x543df7(_0x54a030._0x564faa,0x2c9,0x2e6,0x2d5)]}:{},..._0x4221dd[_0x543df7(_0x54a030._0x369e98,0x2b4,0x2c3,_0x54a030._0x59b762)]?{'reasoning':structuredClone(_0x4221dd['reasoning'])}:{},'system':structuredClone(_0x4221dd[_0x543df7(0x2ce,_0x54a030._0x29cbc8,_0x54a030._0x2cb0ff,0x2d5)]),'messages':structuredClone(_0x4221dd[_0x543df7(_0x54a030._0xaca8b6,_0x54a030._0x8a8937,_0x54a030._0x2aa5bb,0x2d4)]),'tools':structuredClone(_0x4221dd['tools']),'metadata':{'session_id':_0x4221dd[_0x608962(_0x54a030._0x1e199b,0x222,0x20b,0x215)][_0x608962(_0x54a030._0x4321e9,_0x54a030._0x35cb4f,_0x54a030._0x37bfac,0x21e)],'turn_id':_0x4221dd[_0x543df7(0x2a9,0x2bf,_0x54a030._0x118801,0x2ba)][_0x543df7(_0x54a030._0x2a2fd1,0x2c1,0x2b7,0x2d5)],..._0x4221dd[_0x608962(_0x54a030._0x310985,0x1f6,0x20b,_0x54a030._0x4d01e1)][_0x608962(_0x54a030._0x54d06b,0x239,_0x54a030._0x36d56e,0x234)]!==void 0x0?{'model_identity':_0x4221dd[_0x543df7(_0x54a030._0x13f60a,_0x54a030._0x478c4d,_0x54a030._0x4bdcf0,0x2c9)]['modelIdentity']}:{},..._0x4221dd[_0x608962(0x229,_0x54a030._0x325727,_0x54a030._0x14d213,0x1ec)]['pricingProviderId']!==void 0x0?{'pricing_provider_id':_0x4221dd['metadata'][_0x543df7(_0x54a030._0x4b11aa,_0x54a030._0x3815c6,_0x54a030._0x830fd7,0x2c2)]}:{}},..._0x4221dd[_0x543df7(_0x54a030._0x1291b2,_0x54a030._0x3aa39f,_0x54a030._0x1cf299,_0x54a030._0x73994b)]?{'outputFormat':structuredClone(_0x4221dd[_0x608962(_0x54a030._0x3ddc69,0x212,0x225,0x23c)])}:{}};}function toProviderModelRequest(_0x352cc1){const _0x11c8df={_0x5c5894:0x35e,_0x195c21:0x340,_0x1d7e34:0x360,_0xb8ffd0:0x37b,_0x338950:0x36a,_0x56a30e:0x39e,_0x2c55d5:0x394,_0x39296c:0x37f},_0x3723d8={_0x228e96:0x1b2};function _0x336bba(_0x505662,_0x3e4142,_0x3fd4c3,_0x153680){return _0x1699(_0x3fd4c3-0x16c,_0x505662);}function _0xd4a201(_0x50315f,_0x9aca02,_0x23c22c,_0x3d0340){return _0x1699(_0x23c22c-_0x3723d8._0x228e96,_0x9aca02);}return{'model':_0x352cc1[_0x336bba(_0x11c8df._0x5c5894,0x335,0x348,_0x11c8df._0x195c21)],..._0x352cc1['maxTokens']!==void 0x0?{'max_tokens':_0x352cc1[_0x336bba(0x344,0x367,0x357,0x372)]}:{},'system':structuredClone(_0x352cc1[_0xd4a201(_0x11c8df._0x1d7e34,0x36e,_0x11c8df._0xb8ffd0,_0x11c8df._0x338950)]),'messages':structuredClone(_0x352cc1[_0xd4a201(_0x11c8df._0x56a30e,0x3ac,_0x11c8df._0x2c55d5,_0x11c8df._0x39296c)]),'tools':structuredClone(_0x352cc1['tools'])};}function toChatResponse(_0x2b0b6a){const _0x1ebb62={_0xf57a99:0x15a,_0x333bdb:0x174,_0x11a586:0x173,_0x405267:0x172,_0x555556:0x12d,_0x1574ed:0x140,_0x5781c0:0x160,_0x36d491:0x13e,_0x2dbd77:0x148,_0x2b94a9:0x132,_0xf7e241:0x156,_0x504294:0x149,_0x4c239e:0x135,_0x1fb705:0x122,_0x278711:0x125,_0x240578:0x138,_0x54646b:0x127,_0x2053d8:0x14d,_0x3a8539:0x15c,_0xbad8ba:0x134,_0x406ffb:0x12b,_0xee97c7:0x13f,_0x1a8838:0x134,_0x572aac:0x133,_0x4ca000:0x11f},_0x573ae7={_0x248ccb:0x335};function _0x4bb8fb(_0x35a0b4,_0x5c4267,_0x31b911,_0x49a978){return _0x1699(_0x5c4267- -0xaa,_0x31b911);}function _0x20b066(_0x1bbc1a,_0x6eb549,_0x454213,_0x2407be){return _0x1699(_0x6eb549- -_0x573ae7._0x248ccb,_0x2407be);}return{'id':_0x2b0b6a['id'],'content':structuredClone(_0x2b0b6a[_0x20b066(-0x13f,-0x142,-0x15f,-_0x1ebb62._0xf57a99)]),'stopReason':_0x2b0b6a[_0x20b066(-_0x1ebb62._0x333bdb,-_0x1ebb62._0x11a586,-_0x1ebb62._0x405267,-0x18f)],'usage':{'inputTokens':_0x2b0b6a[_0x20b066(-0x12f,-0x13e,-_0x1ebb62._0x555556,-0x15c)][_0x4bb8fb(0x12b,_0x1ebb62._0x1574ed,_0x1ebb62._0x5781c0,_0x1ebb62._0x36d491)],'outputTokens':_0x2b0b6a[_0x20b066(-_0x1ebb62._0x2dbd77,-0x13e,-_0x1ebb62._0x2b94a9,-0x151)][_0x20b066(-_0x1ebb62._0xf7e241,-_0x1ebb62._0x504294,-_0x1ebb62._0x4c239e,-0x13d)],..._0x2b0b6a[_0x20b066(-0x15c,-0x13e,-_0x1ebb62._0x1fb705,-_0x1ebb62._0x278711)][_0x4bb8fb(_0x1ebb62._0x240578,0x12b,0x13a,_0x1ebb62._0x54646b)]!==void 0x0?{'reasoningTokens':_0x2b0b6a[_0x4bb8fb(_0x1ebb62._0x1574ed,_0x1ebb62._0x2053d8,_0x1ebb62._0x3a8539,0x157)][_0x4bb8fb(_0x1ebb62._0xbad8ba,_0x1ebb62._0x406ffb,0x136,0x122)]}:{}},..._0x2b0b6a[_0x4bb8fb(_0x1ebb62._0xee97c7,_0x1ebb62._0x1a8838,_0x1ebb62._0x572aac,0x131)]?{'providerState':structuredClone(_0x2b0b6a[_0x4bb8fb(0x132,_0x1ebb62._0xbad8ba,_0x1ebb62._0x4ca000,_0x1ebb62._0x406ffb)])}:{}};}function toModelResponse(_0x220daa){const _0xe85331={_0xb67fb8:0x488,_0x4f44b6:0x48e,_0x37fcc4:0x4a5,_0x55ff9f:0x4ba,_0x216917:0x4c7,_0x4f69e7:0x3d7,_0x2f2ccf:0x3cc,_0x48f09d:0x3cf,_0x42ae90:0x3ef,_0x27192b:0x4c8,_0x597a9:0x4d2,_0x4b4613:0x3d5,_0x2c760b:0x3be,_0x1f3e16:0x4b1,_0x506cee:0x3e6,_0x5eef18:0x3ea,_0x4a32c1:0x3b9,_0x1b0e6a:0x3a0,_0x58a266:0x4e7,_0x1f1f04:0x489,_0x118671:0x492,_0x20d4dc:0x4cc,_0x121b0e:0x4af,_0x18243e:0x4ad},_0x5399ff={_0x1d031f:0x2d1};function _0x2bc8b3(_0x410fd0,_0x420056,_0x24bd54,_0x31b9eb){return _0x1699(_0x24bd54-0x1dc,_0x410fd0);}function _0x437f76(_0x2c81e2,_0x7af52f,_0x4e1700,_0xd85e07){return _0x1699(_0x7af52f-_0x5399ff._0x1d031f,_0x2c81e2);}return{'id':_0x220daa['id'],'type':_0x437f76(_0xe85331._0xb67fb8,_0xe85331._0x4f44b6,0x485,_0xe85331._0x37fcc4),'role':_0x437f76(0x4d8,_0xe85331._0x55ff9f,_0xe85331._0x216917,0x4cb),'content':structuredClone(_0x220daa[_0x2bc8b3(_0xe85331._0x4f69e7,_0xe85331._0x2f2ccf,_0xe85331._0x48f09d,_0xe85331._0x42ae90)]),'stop_reason':_0x220daa[_0x437f76(_0xe85331._0x27192b,0x4ac,0x4a3,0x48f)],'stop_sequence':null,'usage':{'input_tokens':_0x220daa[_0x437f76(0x4ba,0x4c8,0x4e7,_0xe85331._0x597a9)]['inputTokens'],'output_tokens':_0x220daa[_0x2bc8b3(_0xe85331._0x4b4613,0x3ba,0x3d3,_0xe85331._0x2c760b)][_0x437f76(0x4a7,0x4c5,_0xe85331._0x1f3e16,0x4e2)],..._0x220daa[_0x2bc8b3(0x3b7,_0xe85331._0x506cee,0x3d3,_0xe85331._0x5eef18)][_0x2bc8b3(_0xe85331._0x4a32c1,0x393,0x39b,_0xe85331._0x1b0e6a)]!==void 0x0?{'reasoning_tokens':_0x220daa[_0x437f76(_0xe85331._0x58a266,_0xe85331._0x27192b,0x4d2,0x4d9)][_0x437f76(0x487,0x490,_0xe85331._0x1f1f04,_0xe85331._0x118671)]}:{}},..._0x220daa['providerState']?{'providerState':structuredClone(_0x220daa[_0x437f76(_0xe85331._0x20d4dc,_0xe85331._0x121b0e,0x4c9,_0xe85331._0x18243e)])}:{}};}function responseToAssistantMessage(_0x277355){const _0x295659={_0x2cf2df:0x117,_0x3c08de:0x11f,_0x36a493:0x291,_0xdb2dee:0x141,_0x3da119:0x12a,_0xe1fad3:0x123,_0x46fcf2:0x12a},_0x255800={_0x5a6e12:0x308};function _0x65977(_0x51dad5,_0x22f830,_0x4d3db6,_0x508bf9){return _0x1699(_0x508bf9- -_0x255800._0x5a6e12,_0x22f830);}function _0xc09e14(_0x16698d,_0x42e567,_0x423d56,_0x59b26a){return _0x1699(_0x59b26a-0x9e,_0x42e567);}return{'role':_0x65977(-0x135,-0x11b,-_0x295659._0x2cf2df,-_0x295659._0x3c08de),'content':normalizeContent(_0x277355[_0xc09e14(0x293,0x2b2,0x28a,_0x295659._0x36a493)]),..._0x277355[_0x65977(-_0x295659._0xdb2dee,-0x132,-0x125,-_0x295659._0x3da119)]?{'providerState':structuredClone(_0x277355[_0x65977(-0x11c,-0x10b,-_0x295659._0xe1fad3,-_0x295659._0x46fcf2)])}:{}};}function createReasoningMessage(_0x500118){const _0x1b9926={_0x26474c:0x4fe,_0x4d71a1:0x4dd,_0x520704:0x339,_0x34955a:0x319,_0x1e1e01:0x4f0,_0x2d7d02:0x4e4,_0x59402c:0x502,_0xed518d:0x4fd},_0x87fcd={_0x37ed5f:0x434,_0x7f67c8:0x199,_0xc27629:0x196,_0x23f2a0:0x16b,_0x1db269:0x181},_0x3e300a={_0x4a4624:0x30b},_0xe687eb={_0xb116b0:0x13a};function _0x587620(_0x4e9c1a,_0x3f10e0,_0x27c996,_0x4dcef6){return _0x1699(_0x4dcef6-_0xe687eb._0xb116b0,_0x3f10e0);}function _0x9b168a(_0x4a3f0a,_0x463124,_0x3a0d32,_0x54ad66){return _0x1699(_0x4a3f0a-_0x3e300a._0x4a4624,_0x54ad66);}const _0x253dfa=normalizeContent(_0x500118?.[_0x9b168a(_0x1b9926._0x26474c,0x4ea,0x4fb,_0x1b9926._0x4d71a1)])[_0x587620(0x339,0x31d,_0x1b9926._0x520704,_0x1b9926._0x34955a)](_0x597d9a=>{const _0x239068={_0x2ee355:0x1ee,_0x379672:0x173,_0x137a6d:0x13a},_0x22c121={_0x3b7d5e:0xf8,_0x5c905a:0x18b};function _0x4a3760(_0x4272c5,_0x1f72e6,_0x36cdc9,_0x437369){return _0x587620(_0x4272c5-_0x22c121._0x3b7d5e,_0x4272c5,_0x36cdc9-_0x22c121._0x5c905a,_0x36cdc9- -0x19a);}function _0x1ed997(_0x38335c,_0x31177e,_0x7a6ff,_0x4f4d1d){return _0x587620(_0x38335c-_0x239068._0x2ee355,_0x7a6ff,_0x7a6ff-_0x239068._0x379672,_0x4f4d1d-_0x239068._0x137a6d);}return _0x597d9a['type']==='anthropic_redacted_thinking'||_0x597d9a[_0x1ed997(0x440,_0x87fcd._0x37ed5f,0x449,0x455)]===_0x4a3760(_0x87fcd._0x7f67c8,0x187,_0x87fcd._0xc27629,0x1a1)||_0x597d9a[_0x4a3760(_0x87fcd._0x23f2a0,0x165,_0x87fcd._0x1db269,0x189)]==='openai_reasoning';});if(_0x253dfa[_0x9b168a(_0x1b9926._0x1e1e01,0x4d5,_0x1b9926._0x2d7d02,_0x1b9926._0x59402c)]===0x0)return void 0x0;return{'role':_0x9b168a(0x4f4,_0x1b9926._0xed518d,0x4d6,0x4dd),'content':_0x253dfa};}function createAssistantTextMessage(_0x47582a){const _0x5a6c2e={_0x42efe7:0x3f5,_0x290993:0x3d4,_0x8a0502:0x3e4,_0xd4bacd:0x3c9,_0x52507c:0x3d1,_0x2f7bea:0x3cb,_0x2f7083:0x4b4},_0x2eefc8={_0x3b8647:0x40c,_0x67c0b9:0x40e,_0x3bc3a8:0x574},_0x1d6848={_0x3578d7:0xc0,_0x2de33d:0xa6};function _0x3c5fdd(_0x45322,_0x547e23,_0x439feb,_0x41b612){return _0x1699(_0x41b612-0x1ec,_0x439feb);}const _0x4fcbde=normalizeContent(_0x47582a?.[_0x3c5fdd(_0x5a6c2e._0x42efe7,_0x5a6c2e._0x290993,_0x5a6c2e._0x8a0502,0x3df)])[_0x3c5fdd(_0x5a6c2e._0xd4bacd,0x3b4,_0x5a6c2e._0x52507c,_0x5a6c2e._0x2f7bea)](_0x1dd2ec=>{function _0x266d74(_0x11a6ff,_0x148433,_0x7cab9e,_0x1b16d9){return _0x29406f(_0x11a6ff-0x1d9,_0x7cab9e- -_0x1d6848._0x3578d7,_0x148433,_0x1b16d9-_0x1d6848._0x2de33d);}function _0x40e0ee(_0x2fc0b7,_0x392e2a,_0x545ba2,_0x1be80d){return _0x29406f(_0x2fc0b7-0x183,_0x1be80d-0x98,_0x545ba2,_0x1be80d-0x4e);}return _0x1dd2ec[_0x266d74(0x3fe,0x41b,_0x2eefc8._0x3b8647,_0x2eefc8._0x67c0b9)]===_0x40e0ee(_0x2eefc8._0x3bc3a8,0x56b,0x582,0x57e);});if(_0x4fcbde['length']===0x0)return void 0x0;function _0x29406f(_0x1f7ebe,_0x3b26e4,_0x46adc7,_0x2ca987){return _0x1699(_0x3b26e4-0x2eb,_0x46adc7);}return{'role':_0x29406f(0x4d1,0x4d4,0x4cc,_0x5a6c2e._0x2f7083),'content':_0x4fcbde};}function createToolUseMessage(_0x2473ef){const _0x2a4760={_0x476a6b:0x283,_0x1f4897:0x297,_0x2f30c6:0x28e,_0x1f7364:0x1c4},_0x29d5bd={_0x2c030f:0x3b9,_0x5ef6d5:0x3d7,_0x242d99:0x3bf,_0x3e88fb:0x3ba,_0x3f1400:0x3e7},_0x2ff111={_0x313bcb:0x1f5,_0x5ee708:0x1aa,_0xc687c1:0xe4},_0x4faec2={_0x5701b9:0x118,_0x5077df:0x38};function _0x2b78df(_0x422956,_0x3e7c0a,_0xacd4b1,_0x40f5c7){return _0x1699(_0x422956- -0x17,_0xacd4b1);}const _0x34c03a=normalizeContent(_0x2473ef?.[_0xc5272e(_0x2a4760._0x476a6b,0x26c,0x295,_0x2a4760._0x1f4897)])[_0xc5272e(0x26f,0x290,0x254,0x286)](_0x2dcba2=>{function _0x4daad9(_0x1da6be,_0x2131c8,_0x400e29,_0x50708f){return _0x2b78df(_0x2131c8- -0x2a7,_0x2131c8-_0x4faec2._0x5701b9,_0x1da6be,_0x50708f-_0x4faec2._0x5077df);}function _0x373d5b(_0x8ffc5a,_0x5eda6d,_0x2f0b86,_0x46fd8f){return _0x2b78df(_0x46fd8f-_0x2ff111._0x313bcb,_0x5eda6d-_0x2ff111._0x5ee708,_0x8ffc5a,_0x46fd8f-_0x2ff111._0xc687c1);}return _0x2dcba2[_0x373d5b(0x3d4,_0x29d5bd._0x2c030f,_0x29d5bd._0x5ef6d5,_0x29d5bd._0x242d99)]===_0x373d5b(_0x29d5bd._0x3e88fb,0x3d0,_0x29d5bd._0x3f1400,0x3db);});function _0xc5272e(_0x201cd9,_0xbc05a0,_0x5c19db,_0x2fe9c7){return _0x1699(_0x201cd9-0x90,_0x5c19db);}if(_0x34c03a[_0xc5272e(0x275,0x281,_0x2a4760._0x2f30c6,0x281)]===0x0)return void 0x0;return{'role':_0x2b78df(0x1d2,0x1df,_0x2a4760._0x1f7364,0x1c2),'content':_0x34c03a};}function getTextFromMessage(_0x58ef3){const _0xe28672={_0x48f0b3:0x426,_0x5660bb:0x41e,_0x5293f4:0x419,_0x105407:0x3ff,_0x5b79d7:0x3e7,_0x2cecc7:0x56b,_0x54771a:0x550},_0x5e3060={_0x5ae5a7:0x226};function _0x271dd9(_0x2f2531,_0x39fa6a,_0x1d659b,_0x1b9c26){return _0x1699(_0x1d659b-0x380,_0x39fa6a);}function _0x261a17(_0x2d1070,_0x547f36,_0x489259,_0x2ad777){return _0x1699(_0x2ad777-_0x5e3060._0x5ae5a7,_0x489259);}return normalizeContent(_0x58ef3?.[_0x261a17(_0xe28672._0x48f0b3,0x3fa,_0xe28672._0x5660bb,_0xe28672._0x5293f4)])[_0x261a17(0x3f2,_0xe28672._0x105407,_0xe28672._0x5b79d7,0x405)](_0x2fe85d=>_0x2fe85d[_0x261a17(0x3f8,0x3f7,0x3f0,0x407)]===_0x261a17(0x42d,0x40f,0x43d,0x421))[_0x271dd9(0x532,_0xe28672._0x2cecc7,_0xe28672._0x54771a,0x54d)](_0xfb7faf=>_0xfb7faf[_0x271dd9(0x589,0x59c,0x57b,0x576)])['join']('\x0a');}function getReasoningTextFromMessage(_0x4e70bd){const _0x21b9ce={_0xdd64b0:0x8f,_0x1fd6c5:0xc2},_0x3b2f4a={_0x167f61:0x25c,_0x140594:0x277,_0x40f873:0x263,_0x50438f:0x259,_0x496e31:0x271,_0x1a107b:0x27e,_0x1a2e27:0x24d,_0x21a627:0x242,_0x350c8d:0x24d,_0x260cd8:0x54,_0x109c3a:0x39,_0x34436c:0x23,_0x121e28:0x22,_0x4a212c:0x1b,_0xb000cb:0x10,_0xecd9b6:0x235,_0x1d26a1:0x24d,_0x5297e2:0x240,_0x2ca935:0x24c,_0x14ac77:0x19,_0x13361f:0x3a,_0x23c572:0x4a,_0x57797b:0x257,_0x41e8a3:0x21,_0x1422ad:0x2c,_0x54ca70:0x257,_0x13d41d:0x285,_0x125b24:0x257,_0x1178c2:0x260,_0x36fc96:0x271,_0x49fe08:0x5,_0x3cceeb:0x1,_0x4744f3:0x18,_0x5a06ba:0x1e,_0x100f75:0x247,_0x5d4113:0x260,_0x4f1331:0x22,_0x16a7d3:0x1f},_0x3fcaec={_0x2790f0:0x1b,_0x3e4d8a:0x2f9,_0x5076d3:0x189};function _0x2f0a3e(_0x3ce9b9,_0x6c76f9,_0x533689,_0x5a6a77){return _0x1699(_0x3ce9b9-0x285,_0x6c76f9);}function _0x4323ef(_0x3efd5a,_0x1693c7,_0x35f770,_0x28aee2){return _0x1699(_0x1693c7- -0x27e,_0x28aee2);}return normalizeContent(_0x4e70bd?.['content'])[_0x4323ef(-_0x21b9ce._0xdd64b0,-0xaa,-0x92,-_0x21b9ce._0x1fd6c5)](_0x91b3ba=>{if(_0x91b3ba[_0x47a873(0x261,0x246,_0x3b2f4a._0x167f61,_0x3b2f4a._0x140594)]===_0x47a873(_0x3b2f4a._0x40f873,_0x3b2f4a._0x50438f,_0x3b2f4a._0x496e31,_0x3b2f4a._0x1a107b))return _0x91b3ba[_0x47a873(_0x3b2f4a._0x1a2e27,_0x3b2f4a._0x21a627,_0x3b2f4a._0x350c8d,0x25e)][_0x524aff(-_0x3b2f4a._0x260cd8,-_0x3b2f4a._0x109c3a,-_0x3b2f4a._0x34436c,-0x20)]()[_0x524aff(-_0x3b2f4a._0x121e28,-_0x3b2f4a._0x4a212c,-_0x3b2f4a._0xb000cb,-_0x3b2f4a._0x109c3a)]>0x0?[_0x91b3ba[_0x47a873(0x268,_0x3b2f4a._0xecd9b6,_0x3b2f4a._0x1d26a1,0x257)]]:[];function _0x47a873(_0x13c991,_0x382f4b,_0x8954af,_0x56043b){return _0x4323ef(_0x13c991-_0x3fcaec._0x2790f0,_0x8954af-_0x3fcaec._0x3e4d8a,_0x8954af-_0x3fcaec._0x5076d3,_0x56043b);}if(_0x91b3ba[_0x47a873(_0x3b2f4a._0x5297e2,_0x3b2f4a._0x496e31,_0x3b2f4a._0x167f61,_0x3b2f4a._0x2ca935)]==='anthropic_redacted_thinking')return['(redacted\x20reasoning)'];if(_0x91b3ba[_0x524aff(-0x9,-0x1f,-0xb,-_0x3b2f4a._0x14ac77)]!==_0x524aff(-_0x3b2f4a._0x13361f,-0x31,-0x3e,-_0x3b2f4a._0x23c572))return[];const _0x511621=_0x91b3ba['summary'][_0x47a873(0x26a,_0x3b2f4a._0x57797b,0x24b,0x263)](_0x44a97d=>_0x44a97d[_0x524aff(-0x22,-0x5,0x18,-0x5)])[_0x524aff(-0x1e,-_0x3b2f4a._0x41e8a3,-0x42,-_0x3b2f4a._0x1422ad)](_0x3fc4d9=>_0x3fc4d9['trim']()[_0x47a873(0x268,0x252,0x260,0x27e)]>0x0)[_0x47a873(0x24b,_0x3b2f4a._0x54ca70,0x26c,_0x3b2f4a._0x13d41d)]('\x0a\x0a');function _0x524aff(_0x36cbd9,_0x4a8a31,_0x4ca3a0,_0x1faafd){return _0x4323ef(_0x36cbd9-0x1a6,_0x4a8a31-0x7e,_0x4ca3a0-0x175,_0x36cbd9);}if(_0x511621[_0x47a873(0x244,_0x3b2f4a._0x125b24,_0x3b2f4a._0x1178c2,_0x3b2f4a._0x36fc96)]>0x0)return[_0x511621];if(_0x91b3ba[_0x524aff(-0x1d,-_0x3b2f4a._0x49fe08,-_0x3b2f4a._0x3cceeb,_0x3b2f4a._0x4744f3)]&&_0x91b3ba[_0x524aff(-_0x3b2f4a._0x5a06ba,-0x5,0xf,-0x7)]['trim']()[_0x47a873(0x26f,_0x3b2f4a._0x100f75,_0x3b2f4a._0x5d4113,0x259)]>0x0)return[_0x91b3ba[_0x524aff(-_0x3b2f4a._0x4f1331,-0x5,0x1b,-0x1d)]];return _0x91b3ba['encryptedContent']?[_0x524aff(-_0x3b2f4a._0x4a212c,-0x12,-0x2e,-_0x3b2f4a._0x16a7d3)]:[];})[_0x4323ef(-0x79,-0x8d,-0x6c,-0xa4)]('\x0a\x0a');}function getToolUseBlocks(_0x352e0a){const _0x43267d={_0x3982d6:0x446,_0x2a431c:0x66},_0x1c74ed={_0x190ae4:0x243};function _0x34d1c3(_0x43540d,_0x161e6c,_0x3895bd,_0x476257){return _0x1699(_0x43540d-_0x1c74ed._0x190ae4,_0x3895bd);}function _0x3ead76(_0x1d1569,_0x44ad3b,_0x134344,_0x588b0f){return _0x1699(_0x1d1569- -0x179,_0x134344);}return normalizeContent(_0x352e0a?.[_0x34d1c3(0x436,_0x43267d._0x3982d6,0x443,0x415)])[_0x3ead76(_0x43267d._0x2a431c,0x69,0x5d,0x45)](_0x3a6e4f=>_0x3a6e4f['type']==='tool_use');}function _0x432c(){const _0x259d17=['y2fSBeLK','yxnZAxn0yw50','Aw5WDxrFDg9Rzw5Z','Bwf4vg9Rzw5Z','B3v0Chv0x3rVA2vUCW','owLAq1joyG','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Dg9VBhm','ChvZAa','AM9PBG','DhvYBL9Pza','y29UDgvUDa','B3v0Chv0vg9Rzw5Z','mtqWnJeWz25pvhjl','yw50AhjVCgLJx3rOAw5RAw5N','DxnHz2u','mZaYoteXmNjMtufxyq','mtqYmJqYuK5IuuTU','zxjYB3i','Dgv4Da','nNv1DMrWqW','Dg9VBf91C2u','DhvYBKLK','BwvZC2fNzq','mtbjvuTNA1a','CMvHC29UAw5Nvg9Rzw5Z','Bwv0ywrHDge','ndGWntm0meDvDvbhAa','C3rVCf9YzwfZB24','nKLoqLn4EG','ChjPy2LUz19WCM92AwrLCL9Pza','B3v0Chv0','nJq5otu1nujhBe9pza','DhjPBq','CMvHC29UAw5N','C3LZDgvT','AxnbCNjHEq','C2vZC2LVBKLK','AgfZ','Bw9KzwXjzgvUDgL0Eq','ywrK','B3bLBMfPx3jLyxnVBMLUzW','BwfW','C2vZC2LVBL9Pza','DgHPBMTPBMC','Dg9VBf91C2vFAwq','zMXHDe1HCa','CMvHC29UAw5Nx3rVA2vUCW','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ChjPy2LUz1bYB3zPzgvYswq','Bwf4x3rVA2vUCW','Bw9KzwXFAwrLBNrPDhK','B3v0Chv0rM9YBwf0','C3rVCfjLyxnVBG','Bw9KzwW','C3rHDhvZ','ChjVDMLKzxjtDgf0zq','zMLSDgvY','DxnLCG','DhLWzq','BwvZC2fNzxm','Dg9VBf9Yzxn1Bhq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','BgvUz3rO','odm1odm4m1vJrNDkEq','ntqYntq0mvLyD3nlCG'];_0x432c=function(){return _0x259d17;};return _0x432c();}function getToolResultBlocks(_0x511a9e){const _0x39512f={_0x2f81b4:0x2a3,_0x3ba8cd:0x2b8,_0x1b35a8:0x17f},_0x78fdc8={_0x3aa277:0x355};function _0x3fd2d5(_0xe8ac4a,_0x4ff770,_0x47689a,_0x379c89){return _0x1699(_0x4ff770-0xb0,_0xe8ac4a);}function _0x5dc116(_0x4d7178,_0x34f3cc,_0x2bc02c,_0x5c7692){return _0x1699(_0x4d7178- -_0x78fdc8._0x3aa277,_0x5c7692);}return normalizeContent(_0x511a9e?.[_0x3fd2d5(0x2af,0x2a3,_0x39512f._0x2f81b4,_0x39512f._0x3ba8cd)])[_0x5dc116(-0x176,-0x161,-_0x39512f._0x1b35a8,-0x15a)](_0x4c6b80=>_0x4c6b80[_0x3fd2d5(0x2a7,0x291,0x289,0x299)]===_0x5dc116(-0x172,-0x18c,-0x154,-0x181));}function createToolResultUserMessage(_0x17c9c3){const _0x4dadf3={_0x1e33c1:0x5d9,_0x1d77d5:0x5aa,_0x5e2285:0x59a},_0x3dbb8a={_0x52354a:0x1c9,_0x491cee:0x1ac,_0x19c0ce:0x1e8,_0x3800c9:0x1b3,_0x171342:0xa0,_0x50d332:0x199,_0x124767:0x1d7},_0x5da143={_0x2daa7c:0x401,_0x246b0f:0x143},_0xe63312={_0x367e0b:0x18e},_0x526fec={_0x5abc58:0x26a},_0x5a4223={_0xea7775:0x3de};function _0x5f44ee(_0x37f3e2,_0x469532,_0x43aecb,_0x53d1ea){return _0x1699(_0x37f3e2-_0x5a4223._0xea7775,_0x469532);}function _0x3e325e(_0x10f6bb,_0x1c4387,_0x302177,_0x50678b){return _0x1699(_0x10f6bb- -_0x526fec._0x5abc58,_0x50678b);}return{'role':_0x5f44ee(0x5be,_0x4dadf3._0x1e33c1,0x5db,_0x4dadf3._0x1d77d5),'content':_0x17c9c3[_0x5f44ee(0x5ae,0x5cd,0x5b7,_0x4dadf3._0x5e2285)](_0x527582=>{function _0x5a305d(_0x2d2b51,_0x18341e,_0x326b0e,_0x56fe92){return _0x3e325e(_0x2d2b51-0x2,_0x18341e-_0xe63312._0x367e0b,_0x326b0e-0x1eb,_0x18341e);}function _0x6e1d20(_0x290dcc,_0x276dad,_0x3b6c22,_0xaed32e){return _0x5f44ee(_0xaed32e- -_0x5da143._0x2daa7c,_0x290dcc,_0x3b6c22-0x1a7,_0xaed32e-_0x5da143._0x246b0f);}return{'type':'tool_result','tool_use_id':_0x527582[_0x6e1d20(_0x3dbb8a._0x52354a,0x1a7,_0x3dbb8a._0x491cee,0x1c5)],'content':_0x527582[_0x6e1d20(0x1af,_0x3dbb8a._0x19c0ce,_0x3dbb8a._0x3800c9,0x1d0)]??_0x527582[_0x5a305d(-0xa3,-_0x3dbb8a._0x171342,-0xc4,-0xb1)],'is_error':_0x527582[_0x6e1d20(_0x3dbb8a._0x50d332,0x1d9,0x1b7,0x1ba)]===_0x6e1d20(0x1f1,0x1d7,0x1f8,_0x3dbb8a._0x124767)};})};}function _0x1699(_0x4af56f,_0x102114){_0x4af56f=_0x4af56f-0x1bc;const _0x432c59=_0x432c();let _0x16995a=_0x432c59[_0x4af56f];if(_0x1699['OMljft']===undefined){var _0x36932a=function(_0x4ab5e6){const _0x356c46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40765c='',_0x2216b4='';for(let _0x3325e1=0x0,_0x252d02,_0x32268d,_0x243f18=0x0;_0x32268d=_0x4ab5e6['charAt'](_0x243f18++);~_0x32268d&&(_0x252d02=_0x3325e1%0x4?_0x252d02*0x40+_0x32268d:_0x32268d,_0x3325e1++%0x4)?_0x40765c+=String['fromCharCode'](0xff&_0x252d02>>(-0x2*_0x3325e1&0x6)):0x0){_0x32268d=_0x356c46['indexOf'](_0x32268d);}for(let _0x96f03=0x0,_0x2563ca=_0x40765c['length'];_0x96f03<_0x2563ca;_0x96f03++){_0x2216b4+='%'+('00'+_0x40765c['charCodeAt'](_0x96f03)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2216b4);};_0x1699['SzmeIb']=_0x36932a,_0x1699['juwljH']={},_0x1699['OMljft']=!![];}const _0x309d48=_0x432c59[0x0],_0x29f3f9=_0x4af56f+_0x309d48,_0x464f2=_0x1699['juwljH'][_0x29f3f9];return!_0x464f2?(_0x16995a=_0x1699['SzmeIb'](_0x16995a),_0x1699['juwljH'][_0x29f3f9]=_0x16995a):_0x16995a=_0x464f2,_0x16995a;}var INTERRUPTED_TOOL_RESULT_TEXT=_0x7d6272(0x433,0x43a,0x44e,0x41f);function synthesizeMissingToolResults(_0x16ae93){const _0x5a1913={_0x40c9bc:0x291,_0xcf7250:0x2a4,_0x5721bd:0x29e,_0x5dfacf:0x6c,_0x2f9931:0x2b5,_0x207060:0x2b9,_0x30feea:0x2d1,_0x391a4b:0x2c4,_0x538f3d:0x2cf,_0x57a01c:0x2ae,_0x3c70f3:0x2bb,_0x58ab5c:0x98,_0x301041:0x9c,_0x3de812:0x85,_0xdc8689:0x2a2},_0x166d0e={_0x4d2b96:0x4b8},_0x213c70={_0x3c1661:0x189,_0x1dbecc:0x1ef},_0x2f0978=new Set();for(const _0x1f3a0c of _0x16ae93){for(const _0x2980ea of getToolResultBlocks(_0x1f3a0c)){_0x2f0978[_0x29de8b(_0x5a1913._0x40c9bc,0x2a2,_0x5a1913._0xcf7250,_0x5a1913._0x5721bd)](_0x2980ea[_0xd00937(-0x88,-_0x5a1913._0x5dfacf,-0x8e,-0x97)]);}}function _0x29de8b(_0x2c4b64,_0xf0d365,_0x3b254d,_0x36de19){return _0x7d6272(_0xf0d365- -_0x213c70._0x3c1661,_0xf0d365-0x1ca,_0x2c4b64,_0x36de19-_0x213c70._0x1dbecc);}const _0x165cb7=[];for(const _0x2e2aa2 of _0x16ae93){_0x165cb7['push'](_0x2e2aa2);const _0x3fea9a=getToolUseBlocks(_0x2e2aa2)[_0xd00937(-0x7c,-0x93,-0x8a,-0x65)](_0x56c956=>!_0x2f0978[_0xd00937(-0x8f,-0x98,-0xaa,-0x8f)](_0x56c956['id']));if(_0x3fea9a[_0x29de8b(_0x5a1913._0x2f9931,_0x5a1913._0x207060,_0x5a1913._0x30feea,0x2ba)]===0x0)continue;_0x165cb7[_0x29de8b(0x2c3,_0x5a1913._0x391a4b,_0x5a1913._0x538f3d,0x2c1)]({'role':_0x29de8b(0x2ca,0x2b4,_0x5a1913._0x57a01c,_0x5a1913._0x3c70f3),'content':_0x3fea9a[_0xd00937(-0x8b,-_0x5a1913._0x58ab5c,-_0x5a1913._0x301041,-_0x5a1913._0x3de812)](_0x1e011d=>({'type':_0x29de8b(0x2ce,0x2b7,0x2ca,0x2cc),'tool_use_id':_0x1e011d['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x4a5f47 of _0x3fea9a){_0x2f0978[_0x29de8b(0x2b2,_0x5a1913._0xdc8689,0x29c,0x281)](_0x4a5f47['id']);}}function _0xd00937(_0xc45d30,_0xdf9b1e,_0x88a706,_0x12a283){return _0x7d6272(_0xc45d30- -_0x166d0e._0x4d2b96,_0xdf9b1e-0x37,_0x88a706,_0x12a283-0x28);}return _0x165cb7;}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 +1 @@
1
- (function(_0x540d54,_0x14ffe5){const _0x4192ee={_0xa02282:0x296,_0x1079e5:0x223,_0x2b90ea:0x22a,_0x285ebe:0x22b,_0x1380b0:0x22b,_0x4b6508:0x239,_0x16fb96:0x247,_0x54e9af:0x243,_0x2b05cf:0x242,_0x4c512e:0x23c,_0x5cf1d3:0x281,_0x2ef1f6:0x279,_0x1f8bb9:0x289,_0x532c9b:0x295,_0x34829c:0x29d,_0x1c1186:0x287,_0x35a1f9:0x292,_0x43950b:0x282,_0x30270a:0x22e},_0x4f9272={_0x447b13:0xbb},_0xc23c5=_0x540d54();function _0x2b2847(_0x2f2a41,_0x5d9b53,_0x524527,_0x160874){return _0x395d(_0x524527-_0x4f9272._0x447b13,_0x160874);}function _0x4922f0(_0xb539b2,_0x142394,_0x837e9,_0x118350){return _0x395d(_0x142394-0x111,_0x118350);}while(!![]){try{const _0x55deb6=-parseInt(_0x4922f0(0x293,_0x4192ee._0xa02282,0x293,0x2a2))/0x1+-parseInt(_0x2b2847(0x234,_0x4192ee._0x1079e5,0x22a,_0x4192ee._0x2b90ea))/0x2+parseInt(_0x2b2847(0x22b,_0x4192ee._0x285ebe,0x22f,_0x4192ee._0x1380b0))/0x3*(parseInt(_0x2b2847(0x22e,0x237,_0x4192ee._0x4b6508,0x245))/0x4)+parseInt(_0x2b2847(0x242,_0x4192ee._0x16fb96,0x23c,_0x4192ee._0x54e9af))/0x5*(parseInt(_0x2b2847(_0x4192ee._0x2b05cf,_0x4192ee._0x4c512e,0x23a,_0x4192ee._0x54e9af))/0x6)+parseInt(_0x4922f0(0x275,0x281,_0x4192ee._0x5cf1d3,_0x4192ee._0x2ef1f6))/0x7*(parseInt(_0x4922f0(0x28e,_0x4192ee._0x1f8bb9,_0x4192ee._0x532c9b,0x283))/0x8)+parseInt(_0x4922f0(0x28d,0x295,0x294,_0x4192ee._0x34829c))/0x9*(parseInt(_0x4922f0(0x292,0x28b,0x27f,0x28e))/0xa)+parseInt(_0x4922f0(0x293,_0x4192ee._0x1c1186,_0x4192ee._0x35a1f9,_0x4192ee._0x43950b))/0xb*(-parseInt(_0x2b2847(0x230,_0x4192ee._0x30270a,0x234,0x235))/0xc);if(_0x55deb6===_0x14ffe5)break;else _0xc23c5['push'](_0xc23c5['shift']());}catch(_0x5668f7){_0xc23c5['push'](_0xc23c5['shift']());}}}(_0x1acb,0x413dd));function _0x1acb(){const _0x5dcb12=['mtGWvNfwu1PW','mJmWrvPkBePi','DgvZDa','Dgv4Da','Aw1Hz2uVANbLzW','ntm2sfvlsgnd','mtiZnZK2mMnhAxzqCa','zNjVBq','mtbzAwDkyxy','Aw1Hz2uVANbN','CMvWBgfJzq','mti4mdDWzKruCKm','nti0nxrpCe1kvG','ntu2mZzKwMrhsuG','otKXmtq0y0HMDLDX','Aw1Hz2u','ChvZAa','BgvUz3rO','mtm1owLlA21Htq','Aw5KzxG','mJu0nZq5zwv3yuP6','C2XPy2u','ohfiu1HXCG'];_0x1acb=function(){return _0x5dcb12;};return _0x1acb();}import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';function _0x395d(_0x726591,_0x24dd47){_0x726591=_0x726591-0x16f;const _0x1acb16=_0x1acb();let _0x395d83=_0x1acb16[_0x726591];if(_0x395d['OKDhmw']===undefined){var _0x28514a=function(_0x19c09d){const _0x4245dd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d91a8='',_0x5700e9='';for(let _0x4e66f5=0x0,_0x2a5d89,_0x2ea8e6,_0x48ed93=0x0;_0x2ea8e6=_0x19c09d['charAt'](_0x48ed93++);~_0x2ea8e6&&(_0x2a5d89=_0x4e66f5%0x4?_0x2a5d89*0x40+_0x2ea8e6:_0x2ea8e6,_0x4e66f5++%0x4)?_0x5d91a8+=String['fromCharCode'](0xff&_0x2a5d89>>(-0x2*_0x4e66f5&0x6)):0x0){_0x2ea8e6=_0x4245dd['indexOf'](_0x2ea8e6);}for(let _0x3d6307=0x0,_0x557476=_0x5d91a8['length'];_0x3d6307<_0x557476;_0x3d6307++){_0x5700e9+='%'+('00'+_0x5d91a8['charCodeAt'](_0x3d6307)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5700e9);};_0x395d['oEmCfc']=_0x28514a,_0x395d['XznpIA']={},_0x395d['OKDhmw']=!![];}const _0x47fbb7=_0x1acb16[0x0],_0x518a83=_0x726591+_0x47fbb7,_0x5338d9=_0x395d['XznpIA'][_0x518a83];return!_0x5338d9?(_0x395d83=_0x395d['oEmCfc'](_0x395d83),_0x395d['XznpIA'][_0x518a83]=_0x395d83):_0x395d83=_0x5338d9,_0x395d83;}import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x5d91a8){const _0x502531={_0x419657:0x305,_0x49cf2a:0x3cc,_0x356a7d:0x3cb},_0x3cc260={_0x332319:0x24a},_0x25cb96={_0x1c0740:0x183};function _0x3e1e8d(_0x98bd05,_0x21b6ce,_0x395561,_0x27a443){return _0x395d(_0x98bd05-_0x25cb96._0x1c0740,_0x395561);}function _0x154f9e(_0x265e6f,_0x29f54f,_0x42c375,_0x3c531a){return _0x395d(_0x29f54f-_0x3cc260._0x332319,_0x42c375);}return _0x5d91a8===_0x3e1e8d(_0x502531._0x419657,0x306,0x310,0x309)?_0x154f9e(_0x502531._0x49cf2a,0x3c7,_0x502531._0x356a7d,0x3bc):_0x5d91a8;}function isValidBase64(_0x5700e9){const _0xd0cce8={_0x141019:0x37b,_0x476c7e:0x36f,_0x2a192b:0x36b,_0x370409:0x374,_0x4d1676:0x36a,_0x274a48:0x499,_0x37c4de:0x49a},_0xa1cd40={_0x140dca:0x326};function _0x124bd0(_0x1d9105,_0x1d73bb,_0x120ea7,_0x51ce83){return _0x395d(_0x1d9105-_0xa1cd40._0x140dca,_0x1d73bb);}function _0x231bbb(_0x16fbfc,_0x18eeeb,_0x1968d7,_0x2b9017){return _0x395d(_0x18eeeb-0x1fc,_0x16fbfc);}if(_0x5700e9[_0x231bbb(_0xd0cce8._0x141019,_0xd0cce8._0x476c7e,_0xd0cce8._0x2a192b,0x367)]===0x0||_0x5700e9[_0x231bbb(_0xd0cce8._0x370409,0x36f,0x36f,_0xd0cce8._0x4d1676)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x124bd0(0x4a1,0x4ac,_0xd0cce8._0x274a48,_0xd0cce8._0x37c4de)](_0x5700e9);}function collectImageMatches(_0x4e66f5){const _0x12450f={_0x2afccf:0x10b},_0x17bf41={_0x2e1924:0x6d,_0x10959b:0x6c,_0x4a90ab:0x6e},_0x2a4214={_0x2b36b8:0x75};function _0x558155(_0x4f6cf2,_0x2fe676,_0xf83cc4,_0x50e009){return _0x395d(_0x4f6cf2- -_0x2a4214._0x2b36b8,_0x2fe676);}return DATA_URI_REGEX['lastIndex']=0x0,Array[_0x558155(_0x12450f._0x2afccf,0x100,0x10b,0x113)](_0x4e66f5['matchAll'](DATA_URI_REGEX))['filter'](_0x2a5d89=>{const _0x9c1c99={_0x44fa8b:0xa2,_0x9e49d6:0x16c},_0x2ea8e6=(_0x2a5d89[0x2]??'')[_0x454591(_0x17bf41._0x2e1924,_0x17bf41._0x10959b,0x73,_0x17bf41._0x4a90ab)](/[\r\n]/g,'');function _0x454591(_0x40270a,_0x580084,_0x15514f,_0x165448){return _0x558155(_0x580084- -_0x9c1c99._0x44fa8b,_0x15514f,_0x15514f-0x1b0,_0x165448-_0x9c1c99._0x9e49d6);}return isValidBase64(_0x2ea8e6);});}function hasPastedImages(_0x48ed93){const _0x36dd9a={_0x23065f:0x22f,_0x5867a0:0x226,_0x1c1221:0x225,_0xc6f5a9:0x228},_0x47f397={_0x2c0bfc:0x39b};function _0x303daa(_0x88de4d,_0x356b8a,_0x22a5d2,_0xaba44b){return _0x395d(_0xaba44b- -_0x47f397._0x2c0bfc,_0x22a5d2);}return collectImageMatches(_0x48ed93)[_0x303daa(-_0x36dd9a._0x23065f,-_0x36dd9a._0x5867a0,-_0x36dd9a._0x1c1221,-_0x36dd9a._0xc6f5a9)]>0x0;}function contentFromPastedText(_0x3d6307){const _0x312146={_0x38dd9b:0x550,_0x4ee228:0x541,_0x3d17ae:0x542,_0x494d0c:0xb7,_0xc77e77:0xb4,_0x4d6482:0x548,_0x1bd7d8:0x54a,_0x186cb4:0x542,_0x27193d:0x542,_0x21e706:0xb8,_0x27ce1b:0xc1,_0xa4206:0xc4,_0x3e8a71:0x54a,_0x30d6ae:0x545,_0x479e89:0x556,_0x3b4326:0x559,_0x25fef0:0x557,_0x17efee:0x54e,_0x341377:0xad,_0x1e1373:0xbb},_0x62cac1={_0x4e9fb0:0xbb},_0x557476=collectImageMatches(_0x3d6307),_0x21902b=[];function _0x3ffb2a(_0x70a09a,_0xb48b81,_0x197590,_0x534ef3){return _0x395d(_0x70a09a- -_0x62cac1._0x4e9fb0,_0x534ef3);}let _0x47e512=0x0;for(const _0x40bd3d of _0x557476){const _0x5e1241=_0x40bd3d[_0xdef9fd(_0x312146._0x38dd9b,0x54c,_0x312146._0x4ee228,_0x312146._0x3d17ae)]??0x0,[_0x423a34,_0x51819d,_0x27d4f6]=_0x40bd3d;_0x5e1241>_0x47e512&&_0x21902b[_0x3ffb2a(_0x312146._0x494d0c,0xbf,_0x312146._0xc77e77,0xb8)]({'type':'text','text':_0x3d6307['slice'](_0x47e512,_0x5e1241)}),_0x21902b['push']({'type':_0xdef9fd(0x540,_0x312146._0x4d6482,0x54d,0x53e),'source':{'type':'base64','media_type':normalizeMediaType(_0x51819d),'data':_0x27d4f6['replace'](/[\r\n]/g,'')}}),_0x47e512=_0x5e1241+_0x423a34[_0xdef9fd(_0x312146._0x38dd9b,_0x312146._0x1bd7d8,_0x312146._0x186cb4,_0x312146._0x27193d)];}_0x47e512<_0x3d6307[_0x3ffb2a(_0x312146._0x21e706,_0x312146._0x27ce1b,_0x312146._0xa4206,0xb6)]&&_0x21902b[_0xdef9fd(_0x312146._0x3e8a71,0x549,0x547,_0x312146._0x30d6ae)]({'type':_0xdef9fd(_0x312146._0x479e89,0x553,_0x312146._0x3b4326,_0x312146._0x25fef0),'text':_0x3d6307[_0xdef9fd(0x54e,0x54e,_0x312146._0x17efee,0x543)](_0x47e512)});function _0xdef9fd(_0x39070f,_0x3b3eb5,_0x37777a,_0x201dd1){return _0x395d(_0x3b3eb5-0x3d7,_0x37777a);}return _0x21902b[_0x3ffb2a(0xb8,0xb7,_0x312146._0x341377,_0x312146._0x1e1373)]>0x0?_0x21902b:[{'type':'text','text':_0x3d6307}];}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};
1
+ (function(_0x3d129d,_0xfe87db){const _0x3d17f8={_0x49144e:0x296,_0x13e381:0x28f,_0x2fe576:0x283,_0x3d2631:0x287,_0x28d616:0x290,_0x3ebb8e:0x28d,_0xd9f61:0x2a2,_0x4d79f8:0x29e,_0x2d2b8c:0x2a2,_0x5e5318:0x25,_0x15d148:0x21,_0x4e81eb:0x29d,_0x49fd9b:0x29c,_0x5d4c5e:0x16,_0x50cbd2:0x298,_0x3fcff6:0x9,_0x130b30:0x14,_0x5a3cb4:0x10};function _0x58af68(_0x28230d,_0x4f1fe3,_0x3b9459,_0x4f1474){return _0x4079(_0x4f1fe3-0x12d,_0x4f1474);}function _0x1c9a62(_0x2bfe32,_0x225277,_0x2efea3,_0x3ad2ef){return _0x4079(_0x3ad2ef- -0x17e,_0x2efea3);}const _0x4cc1fb=_0x3d129d();while(!![]){try{const _0x36d5c9=parseInt(_0x58af68(_0x3d17f8._0x49144e,0x28f,_0x3d17f8._0x13e381,_0x3d17f8._0x2fe576))/0x1*(-parseInt(_0x58af68(0x291,_0x3d17f8._0x3d2631,0x293,0x291))/0x2)+-parseInt(_0x58af68(0x2a3,0x297,_0x3d17f8._0x28d616,0x298))/0x3+parseInt(_0x58af68(_0x3d17f8._0x3ebb8e,0x296,_0x3d17f8._0xd9f61,0x299))/0x4+parseInt(_0x58af68(0x2a6,_0x3d17f8._0x4d79f8,0x2a7,_0x3d17f8._0x2d2b8c))/0x5+-parseInt(_0x1c9a62(-0x2d,-_0x3d17f8._0x5e5318,-0x16,-_0x3d17f8._0x15d148))/0x6+-parseInt(_0x58af68(_0x3d17f8._0x4e81eb,_0x3d17f8._0x49fd9b,0x299,0x2a7))/0x7*(parseInt(_0x1c9a62(-0x18,-0x14,-_0x3d17f8._0x5d4c5e,-0x1d))/0x8)+-parseInt(_0x58af68(0x29c,_0x3d17f8._0x50cbd2,0x291,_0x3d17f8._0x49fd9b))/0x9*(-parseInt(_0x1c9a62(-_0x3d17f8._0x3fcff6,-0x1a,-_0x3d17f8._0x130b30,-_0x3d17f8._0x5a3cb4))/0xa);if(_0x36d5c9===_0xfe87db)break;else _0x4cc1fb['push'](_0x4cc1fb['shift']());}catch(_0xeaad1a){_0x4cc1fb['push'](_0x4cc1fb['shift']());}}}(_0x47bd,0xbef04));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x59302d){const _0x44c159={_0x47f193:0x48a,_0x107115:0x494,_0x555028:0x48d},_0x4212f8={_0x39670f:0x39f};function _0x326cf3(_0x1e093c,_0x5e7c4d,_0x3f2a1f,_0x1a3a82){return _0x4079(_0x3f2a1f- -_0x4212f8._0x39670f,_0x1a3a82);}function _0x5804bf(_0x53d53e,_0x1c227e,_0xc245d4,_0x37b405){return _0x4079(_0x37b405-0x326,_0xc245d4);}return _0x59302d===_0x5804bf(0x48f,0x48e,_0x44c159._0x47f193,0x484)?_0x5804bf(0x488,_0x44c159._0x107115,0x481,_0x44c159._0x555028):_0x59302d;}function isValidBase64(_0x125f92){const _0x3810dd={_0x145705:0x3fb,_0x19e596:0x3fa,_0x2c2299:0x139,_0x2c7002:0x122,_0x50fbd9:0x12e},_0x1c0d74={_0x364a5e:0x28d};function _0x390c5a(_0x46c7ba,_0x429ccc,_0x23f690,_0x745340){return _0x4079(_0x23f690-0x28f,_0x46c7ba);}function _0x1eeb66(_0x369d38,_0x1bfa8c,_0x3b98a9,_0x4a0341){return _0x4079(_0x4a0341- -_0x1c0d74._0x364a5e,_0x369d38);}if(_0x125f92[_0x390c5a(_0x3810dd._0x145705,_0x3810dd._0x19e596,0x3fc,0x405)]===0x0||_0x125f92['length']%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x1eeb66(-_0x3810dd._0x2c2299,-_0x3810dd._0x2c7002,-0x138,-_0x3810dd._0x50fbd9)](_0x125f92);}function _0x4079(_0x3504c2,_0x3f8176){_0x3504c2=_0x3504c2-0x15a;const _0x47bdc2=_0x47bd();let _0x40790f=_0x47bdc2[_0x3504c2];if(_0x4079['YkHxIs']===undefined){var _0x4eff92=function(_0x57b241){const _0x236651='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59302d='',_0x125f92='';for(let _0x4f5b6a=0x0,_0x477f60,_0x16af6f,_0x24b50d=0x0;_0x16af6f=_0x57b241['charAt'](_0x24b50d++);~_0x16af6f&&(_0x477f60=_0x4f5b6a%0x4?_0x477f60*0x40+_0x16af6f:_0x16af6f,_0x4f5b6a++%0x4)?_0x59302d+=String['fromCharCode'](0xff&_0x477f60>>(-0x2*_0x4f5b6a&0x6)):0x0){_0x16af6f=_0x236651['indexOf'](_0x16af6f);}for(let _0x1c562d=0x0,_0x36f4f2=_0x59302d['length'];_0x1c562d<_0x36f4f2;_0x1c562d++){_0x125f92+='%'+('00'+_0x59302d['charCodeAt'](_0x1c562d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x125f92);};_0x4079['TDqKCZ']=_0x4eff92,_0x4079['MNthzD']={},_0x4079['YkHxIs']=!![];}const _0x4758d5=_0x47bdc2[0x0],_0x58745b=_0x3504c2+_0x4758d5,_0x5bf6c0=_0x4079['MNthzD'][_0x58745b];return!_0x5bf6c0?(_0x40790f=_0x4079['TDqKCZ'](_0x40790f),_0x4079['MNthzD'][_0x58745b]=_0x40790f):_0x40790f=_0x5bf6c0,_0x40790f;}function collectImageMatches(_0x4f5b6a){const _0x430442={_0x299572:0x356,_0x3274b0:0x355,_0x1661a4:0x3a0,_0x717fcd:0x397,_0x2f389b:0x38d,_0x28bc34:0x39c,_0x310003:0x35b,_0xc793e9:0x35a},_0x4db808={_0x3bb6ad:0x166},_0x586870={_0x1d77fb:0x165},_0x25511d={_0x40993a:0x1f3},_0x22b229={_0xad4f22:0x23b};function _0x2adf98(_0x2f1265,_0x1fc513,_0x5a1ae6,_0x2663a4){return _0x4079(_0x5a1ae6-_0x22b229._0xad4f22,_0x2f1265);}DATA_URI_REGEX[_0x4ffb09(_0x430442._0x299572,0x351,_0x430442._0x3274b0,0x35d)]=0x0;function _0x4ffb09(_0x350b5f,_0x365687,_0x28ce2a,_0xb19f1a){return _0x4079(_0x350b5f-_0x25511d._0x40993a,_0x365687);}return Array[_0x2adf98(0x399,0x399,_0x430442._0x1661a4,_0x430442._0x717fcd)](_0x4f5b6a[_0x2adf98(_0x430442._0x2f389b,_0x430442._0x28bc34,0x396,0x398)](DATA_URI_REGEX))[_0x4ffb09(0x35f,_0x430442._0x310003,_0x430442._0x3274b0,_0x430442._0xc793e9)](_0x477f60=>{const _0x16af6f=(_0x477f60[0x2]??'')[_0x49d5b7(0x16a,0x15d,_0x4db808._0x3bb6ad,0x15b)](/[\r\n]/g,'');function _0x49d5b7(_0x1d01e1,_0x5eb6ee,_0x261da7,_0x4b0ee2){return _0x2adf98(_0x1d01e1,_0x5eb6ee-_0x586870._0x1d77fb,_0x5eb6ee- -0x242,_0x4b0ee2-0x1f4);}return isValidBase64(_0x16af6f);});}function hasPastedImages(_0x24b50d){const _0x1b1f3a={_0x181b19:0x551,_0xaf5a58:0x544,_0x13d8e7:0x541};function _0x48bd02(_0x20b33d,_0x477ffa,_0x3159f4,_0x2661e9){return _0x4079(_0x3159f4-0x3dd,_0x477ffa);}return collectImageMatches(_0x24b50d)[_0x48bd02(_0x1b1f3a._0x181b19,_0x1b1f3a._0xaf5a58,0x54a,_0x1b1f3a._0x13d8e7)]>0x0;}function contentFromPastedText(_0x1c562d){const _0x2d94f1={_0x3f6176:0x9,_0x2d3f09:0xf,_0x23eb2c:0x222,_0x506d75:0x220,_0x352450:0x21a,_0x27d686:0x21f,_0x569852:0x21b,_0x14091b:0x1,_0x41c23d:0x8,_0x2b86ac:0x5,_0x1064fb:0xd,_0x33d97c:0x227,_0xf2103d:0x228,_0x1f6c35:0x19,_0x1df811:0x17,_0x2440da:0x1b,_0x39722c:0x1c},_0x36f4f2=collectImageMatches(_0x1c562d),_0x142745=[];function _0x3d76ff(_0x52a6e3,_0x33cfd8,_0x3dc6bb,_0xcc9062){return _0x4079(_0x52a6e3-0xba,_0xcc9062);}let _0x4effd4=0x0;for(const _0x36c3c0 of _0x36f4f2){const _0x5225e9=_0x36c3c0[_0x4c35a7(_0x2d94f1._0x3f6176,0xd,0xe,_0x2d94f1._0x2d3f09)]??0x0,[_0xae2acc,_0x18b9f6,_0x346eac]=_0x36c3c0;_0x5225e9>_0x4effd4&&_0x142745[_0x3d76ff(_0x2d94f1._0x23eb2c,_0x2d94f1._0x506d75,0x223,0x22e)]({'type':_0x3d76ff(0x22c,0x222,0x224,0x22c),'text':_0x1c562d[_0x3d76ff(_0x2d94f1._0x352450,0x226,_0x2d94f1._0x27d686,_0x2d94f1._0x569852)](_0x4effd4,_0x5225e9)}),_0x142745['push']({'type':_0x3d76ff(0x22a,0x229,0x223,0x231),'source':{'type':_0x4c35a7(_0x2d94f1._0x14091b,0x6,-_0x2d94f1._0x41c23d,_0x2d94f1._0x2b86ac),'media_type':normalizeMediaType(_0x18b9f6),'data':_0x346eac[_0x4c35a7(0x10,0x15,0xb,_0x2d94f1._0x1064fb)](/[\r\n]/g,'')}}),_0x4effd4=_0x5225e9+_0xae2acc[_0x3d76ff(_0x2d94f1._0x33d97c,_0x2d94f1._0x352450,_0x2d94f1._0xf2103d,0x220)];}_0x4effd4<_0x1c562d['length']&&_0x142745['push']({'type':_0x4c35a7(0x14,_0x2d94f1._0x1f6c35,_0x2d94f1._0x1df811,_0x2d94f1._0x2440da),'text':_0x1c562d[_0x3d76ff(0x21a,0x223,0x215,0x216)](_0x4effd4)});function _0x4c35a7(_0x351a0b,_0x241690,_0x3e6c3e,_0xe2aed){return _0x4079(_0xe2aed- -0x157,_0x3e6c3e);}return _0x142745[_0x4c35a7(_0x2d94f1._0x39722c,0xa,0x11,0x16)]>0x0?_0x142745:[{'type':_0x4c35a7(0x26,0x1f,0x1f,0x1b),'text':_0x1c562d}];}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};function _0x47bd(){const _0x31ff70=['BgvUz3rO','mJGYnJqXntbtsvrRBvu','ndeZCwXVEKvx','Aw1Hz2u','nJKXodaZmenkAfzgvG','Dgv4Da','mtm3oev5AMvssa','Bwf0y2HbBgW','yMfZzty0','odqYmty5nKLpuLDxEG','Aw1Hz2uVANbN','DgvZDa','C2XPy2u','oteXndr2AKniCuq','mJe1m1PoDwreDa','BgfZDeLUzgv4','CMvWBgfJzq','zNjVBq','Aw5KzxG','Aw1Hz2uVANbLzW','ChvZAa','ntu5odCYzfDku3PL','mJyWntvrruHSrg0','ou9vr2jbwG','zMLSDgvY'];_0x47bd=function(){return _0x31ff70;};return _0x47bd();}
@@ -1 +1 @@
1
- function _0x51c1(){const _0x11e127=['y29TBwfUza','mJy4mu9KrKndqq','BgvUz3rO','CgvYBwLZC2LVBKrLy2LZAw9U','zxjYB3i','ug9ZDfrVB2XvC2u','C3rHDhvZ','BwfW','ywXSB3C','rvbjueu','ntu3nZGYteH3uM9w','mtm0mti1nvjXAxj4va','mtKZodyXmKLlA0XWAW','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','uhjLvg9VBfvZzq','Dg9tDhjPBMC','Ag9VAZPqB3n0vg9VBfvZzq','tM90AwzPy2f0Aw9U','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','y2XVC2u','nteXmZK1mhHqvhDKzW','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','BwvZC2fNzq','Bwf0y2HLCG','z2v0sg9VA3m','Ag9VA1nWzwnPzMLJt3v0Chv0','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','zw5K','C3rKAw4','ywz0zxjuB29SuMvZDwX0','CgfZCW','C2vZC2LVBKLK','odqWnte0qKXkEgjL','AgfZsg9VA3m','A2LSBa','BMfTzq','ChvZAa','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','CgLWzq','CMvQzwn0','u3rVCa','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','C3rKB3v0','mtGZmJHUCNrtBLa','DhjPBq','zgf0yq','zw52','CMvHC29U','y3DK','yMXVy2S','zw5Kx3r1CM4','u0Lhs0Lmta','B3v0Chv0','y29Kzq','BM93','C3rHDgu','Ag9VAZPtDg9W','zgvJAxnPB24','B2jZzxj2zxi','DgLTzw91Da','mJi3nJG4ngfuuhvIBa','Dg9VBe5HBwu'];_0x51c1=function(){return _0x11e127;};return _0x51c1();}(function(_0xb94c49,_0x358084){const _0x428f2f={_0xef3658:0x7,_0x4f4065:0x2,_0x391243:0x2b2,_0x14df36:0x293,_0x1daa8e:0x1,_0x4b7de2:0x29e,_0x2e6abc:0x2a5,_0x1b9e37:0x299,_0x2cc51f:0x2af,_0x36bd04:0x16,_0x5c3ea4:0x18,_0x50e1e4:0x3,_0x3f2108:0xc,_0x48ba60:0x26,_0x51a347:0x1,_0x3e701a:0x7,_0x199c54:0x2bc,_0x5154e7:0x2b2},_0x7a4d13={_0x537a3b:0xa5},_0x554d0b=_0xb94c49();function _0xdf5c3a(_0x2eb888,_0xaad903,_0xcb461f,_0x23eed6){return _0x5001(_0x23eed6-_0x7a4d13._0x537a3b,_0x2eb888);}function _0x19c987(_0xd1250a,_0x371e1b,_0x68f91f,_0x4bb5be){return _0x5001(_0x4bb5be- -0x214,_0xd1250a);}while(!![]){try{const _0x1e0717=parseInt(_0x19c987(_0x428f2f._0xef3658,-0x18,-0x1b,_0x428f2f._0x4f4065))/0x1+-parseInt(_0xdf5c3a(_0x428f2f._0x391243,0x27a,0x27b,_0x428f2f._0x14df36))/0x2+parseInt(_0x19c987(-0x3,-0x15,-_0x428f2f._0x1daa8e,0x4))/0x3+-parseInt(_0xdf5c3a(_0x428f2f._0x4b7de2,_0x428f2f._0x2e6abc,_0x428f2f._0x1b9e37,_0x428f2f._0x2cc51f))/0x4+parseInt(_0x19c987(-0x13,_0x428f2f._0x36bd04,-_0x428f2f._0x5c3ea4,_0x428f2f._0x50e1e4))/0x5+-parseInt(_0x19c987(0x25,0x9,0x4,_0x428f2f._0x3f2108))/0x6+-parseInt(_0x19c987(0x1,-_0x428f2f._0x48ba60,_0x428f2f._0x51a347,-_0x428f2f._0x3e701a))/0x7*(-parseInt(_0xdf5c3a(_0x428f2f._0x199c54,0x29e,_0x428f2f._0x5154e7,0x29e))/0x8);if(_0x1e0717===_0x358084)break;else _0x554d0b['push'](_0x554d0b['shift']());}catch(_0x3677f2){_0x554d0b['push'](_0x554d0b['shift']());}}}(_0x51c1,0x7bfef));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x32b813,_0x581e86,_0x141b2e=DEFAULT_TIMEOUT_S,_0x25bf68){const _0x1c8b58={_0x12a299:0x18f},_0xfdd593={_0x2abe16:0x1c5,_0x3b9d8f:0x1e3,_0x4513b4:0x1de,_0x307341:0x1e6,_0x321fad:0x1ed,_0x1c1ab6:0x49,_0x3f5171:0x55,_0x2b3084:0x3d,_0x32a321:0x5b,_0x20e933:0x65,_0x107777:0x81,_0x4d8c10:0x4e,_0x49519c:0x66,_0x3aa894:0x64,_0x4db696:0x1d0,_0x10c1ff:0x1d9,_0x1be9fa:0x67,_0x523f92:0x6a,_0x331d0f:0x23,_0xfb922:0x1f0},_0x5f4adb={_0xd438b5:0x116,_0x682ac9:0x115,_0x4587fc:0x12f,_0x1c87f3:0x110,_0x25ab5e:0x109,_0x21dae3:0x11d,_0xb0b829:0x115,_0x58e8c6:0x110,_0x18a7b8:0x115,_0x53c13d:0x135,_0x17b00f:0x10d,_0x293ef5:0x3c2,_0x1bef2c:0x3ca,_0x14143d:0x3d2,_0x5087b5:0x138,_0x2f00cf:0x124,_0x2a6944:0x398,_0xc5bf5e:0x3aa,_0x3868fc:0x396,_0x5e238b:0x121,_0x1169a6:0x113,_0x49f5f7:0x3a0,_0x982ed0:0x39f,_0x3d008c:0x389,_0x57b309:0x3b7,_0x4ef761:0x3ae,_0x2098ad:0x3ad},_0x3990ae={_0x426a18:0x362,_0x2a0e7c:0x348},_0xcfc388={_0x15f214:0x1cf},_0x11e782={_0x49597e:0x93};function _0xe896c(_0x266232,_0x401ec0,_0xb66830,_0x2febbf){return _0x5001(_0x2febbf- -0x65,_0x401ec0);}const _0x4b643b=Date[_0xe896c(_0x1c8b58._0x12a299,0x18d,0x184,0x19f)]();return new Promise(_0x5736d1=>{const _0x24be10={_0x2b9ea1:0x26e,_0x512e16:0x26c,_0x3ec600:0x13b},_0x39332e={_0x1371d7:0x1f2,_0x51f1a3:0x211,_0xf74e04:0x242,_0x291f74:0x247,_0x2f4448:0x20e,_0x56c60b:0x20c},_0x13d5dd={_0x468e2f:0x1f2},_0x458699={_0x57f507:0x1d},_0x2dded1={_0x6e37a5:0x2f7,_0x14d1e4:0x320},_0x591710={_0x369be0:0xfa},_0x3770b6={_0x4c7cfe:0x1c0};function _0x275da0(_0x54717f,_0x4c5a06,_0x5cdb0f,_0x1408ba){return _0xe896c(_0x54717f-0x110,_0x54717f,_0x5cdb0f-_0x3770b6._0x4c7cfe,_0x5cdb0f-0x54);}const _0x43bf1b=spawn('sh',['-c',_0x32b813],{'stdio':[_0x275da0(_0xfdd593._0x2abe16,0x1e7,_0xfdd593._0x3b9d8f,_0xfdd593._0x4513b4),'pipe','pipe'],'env':{...process[_0x275da0(0x1dd,0x200,0x1eb,0x1d6)],'CLAUDE_PROJECT_DIR':_0x25bf68??process[_0x275da0(0x1d1,_0xfdd593._0x307341,_0xfdd593._0x321fad,0x1d1)]()}});let _0x2ba3f0='';function _0x5a49db(_0x2679e7,_0x2d90c1,_0x2f2429,_0x3a599b){return _0xe896c(_0x2679e7-0x1c7,_0x3a599b,_0x2f2429-_0x11e782._0x49597e,_0x2f2429- -0x1eb);}let _0x106ae7='';_0x43bf1b[_0x275da0(0x1f4,0x1f1,0x1e7,0x1d5)]['on'](_0x5a49db(-_0xfdd593._0x1c1ab6,-0x4c,-_0xfdd593._0x3f5171,-_0xfdd593._0x2b3084),_0x44f62f=>{function _0x1e0ab7(_0xbe5951,_0x117b49,_0x43303e,_0x115fbd){return _0x275da0(_0x117b49,_0x117b49-0x7a,_0x115fbd-_0x591710._0x369be0,_0x115fbd-0xe3);}_0x2ba3f0+=_0x44f62f[_0x1e0ab7(_0x2dded1._0x6e37a5,0x300,_0x2dded1._0x14d1e4,0x304)]();}),_0x43bf1b['stderr']['on'](_0x5a49db(-0x6d,-0x5c,-0x55,-_0xfdd593._0x32a321),_0x1360a6=>{function _0x5a70d9(_0x15bcb4,_0x2ed204,_0x325b5e,_0x27140b){return _0x275da0(_0x15bcb4,_0x2ed204-_0x458699._0x57f507,_0x325b5e- -0x50,_0x27140b-0x135);}_0x106ae7+=_0x1360a6[_0x5a70d9(0x1b8,0x1bc,0x1ba,_0xcfc388._0x15f214)]();}),_0x43bf1b[_0x5a49db(-_0xfdd593._0x20e933,-_0xfdd593._0x107777,-0x66,-_0xfdd593._0x4d8c10)]['on']('error',_0x2fcf23=>{const _0x1cf77d={_0x648104:0x105};function _0xe4173f(_0x6b551,_0x29ff1d,_0x3e4402,_0x1ece08){return _0x5a49db(_0x6b551-_0x13d5dd._0x468e2f,_0x29ff1d-0x113,_0x29ff1d-0x38f,_0x1ece08);}function _0x53d2be(_0x3dd22d,_0x305881,_0x4421df,_0x26b5f1){return _0x275da0(_0x26b5f1,_0x305881-0x35,_0x3dd22d- -_0x1cf77d._0x648104,_0x26b5f1-0x112);}if(_0x2fcf23[_0x53d2be(0xed,0xe5,0xf1,0xcf)]!==_0xe4173f(_0x3990ae._0x426a18,0x354,_0x3990ae._0x2a0e7c,0x344))throw _0x2fcf23;}),_0x43bf1b[_0x5a49db(-0x73,-0x54,-_0xfdd593._0x49519c,-_0xfdd593._0x3aa894)]['write'](JSON['stringify'](_0x581e86)),_0x43bf1b[_0x275da0(0x1ed,_0xfdd593._0x4db696,_0xfdd593._0x10c1ff,0x1d8)][_0x5a49db(-0x7e,-0x4e,-_0xfdd593._0x1be9fa,-_0xfdd593._0x523f92)]();const _0x2f277a=setTimeout(()=>{const _0x1c9c84={_0x2e181f:0x10a,_0x33bee0:0x35,_0x5591a6:0x44},_0x4e3907={_0x3602b8:0x32,_0x2a390c:0x38};_0x43bf1b[_0x568af4(0x20b,_0x39332e._0x1371d7,_0x39332e._0x51f1a3,0x22f)](_0x4015be(0x236,0x225,0x227,0x219));function _0x568af4(_0x41d9a2,_0x40b967,_0x2f15d8,_0x1c9343){return _0x275da0(_0x1c9343,_0x40b967-0x63,_0x2f15d8-_0x4e3907._0x3602b8,_0x1c9343-_0x4e3907._0x2a390c);}function _0x4015be(_0x9a0ca8,_0x502bed,_0x106d5f,_0x1acad5){return _0x275da0(_0x106d5f,_0x502bed-_0x1c9c84._0x2e181f,_0x502bed-_0x1c9c84._0x33bee0,_0x1acad5-_0x1c9c84._0x5591a6);}_0x5736d1({'status':'error','error':_0x4015be(0x226,_0x39332e._0xf74e04,_0x39332e._0x291f74,0x256)+_0x141b2e+'s','duration_ms':Date[_0x4015be(_0x39332e._0x2f4448,0x228,_0x39332e._0x56c60b,_0x39332e._0x291f74)]()-_0x4b643b});},_0x141b2e*0x3e8);_0x43bf1b['on'](_0x5a49db(-_0xfdd593._0x331d0f,-0x40,-0x31,-0x23),_0x29fde5=>{const _0x3cc578={_0x274438:0x112,_0xf4d173:0xc4},_0x225166={_0x3e6f4b:0xce,_0x5e733f:0x14};function _0x4ad47a(_0x1280fe,_0x237c5a,_0x79e480,_0x584f0f){return _0x5a49db(_0x1280fe-_0x225166._0x3e6f4b,_0x237c5a-_0x225166._0x5e733f,_0x1280fe-0x404,_0x237c5a);}clearTimeout(_0x2f277a);const _0x3d058a=Date[_0x133910(-_0x5f4adb._0xd438b5,-_0x5f4adb._0x682ac9,-_0x5f4adb._0x4587fc,-_0x5f4adb._0x1c87f3)]()-_0x4b643b;if(_0x29fde5===0x2){_0x5736d1({'status':_0x133910(-0x130,-_0x5f4adb._0x25ab5e,-_0x5f4adb._0x21dae3,-_0x5f4adb._0xb0b829),'output':{'decision':_0x133910(-0x106,-_0x5f4adb._0x58e8c6,-0x11b,-_0x5f4adb._0x18a7b8),'reason':_0x106ae7['trim']()||_0x133910(-_0x5f4adb._0x53c13d,-0x134,-_0x5f4adb._0x17b00f,-_0x5f4adb._0x21dae3)},'duration_ms':_0x3d058a});return;}if(_0x29fde5!==0x0){_0x5736d1({'status':_0x4ad47a(0x3c4,_0x5f4adb._0x293ef5,_0x5f4adb._0x1bef2c,_0x5f4adb._0x14143d),'error':_0x133910(-_0x5f4adb._0x5087b5,-0x140,-_0x5f4adb._0x2f00cf,-0x12c)+_0x29fde5+(_0x106ae7[_0x133910(-0x11a,-0x138,-0x10b,-0x11a)]()?':\x20'+_0x106ae7[_0x4ad47a(0x3ae,_0x5f4adb._0x2a6944,_0x5f4adb._0xc5bf5e,_0x5f4adb._0x3868fc)]():''),'duration_ms':_0x3d058a});return;}const _0x51c574=_0x2ba3f0[_0x133910(-0x103,-_0x5f4adb._0x5e238b,-_0x5f4adb._0x1169a6,-0x11a)]();function _0x133910(_0x5800ae,_0x56d8f5,_0x591572,_0x306ba6){return _0x5a49db(_0x5800ae-0x11,_0x56d8f5-_0x3cc578._0x274438,_0x306ba6- -_0x3cc578._0xf4d173,_0x5800ae);}if(_0x51c574['length']===0x0){_0x5736d1({'status':'pass','duration_ms':_0x3d058a});return;}try{const _0x4f5224=JSON['parse'](_0x51c574);_0x5736d1({'status':_0x4ad47a(_0x5f4adb._0x49f5f7,_0x5f4adb._0x982ed0,_0x5f4adb._0x3d008c,_0x5f4adb._0x57b309),'output':_0x4f5224,'duration_ms':_0x3d058a});}catch{_0x5736d1({'status':_0x4ad47a(0x3a0,0x397,_0x5f4adb._0x4ef761,_0x5f4adb._0x2098ad),'duration_ms':_0x3d058a});}}),_0x43bf1b['on'](_0x275da0(0x1ea,_0xfdd593._0xfb922,0x1ff,0x1ef),_0x29fc54=>{const _0x57e01e={_0x15a7d0:0x36,_0x5437d1:0x181},_0x264407={_0x52bbd6:0x99,_0x2bcb75:0xc};function _0x81e5de(_0x263578,_0x94ad3c,_0x2069b8,_0x109bfc){return _0x275da0(_0x94ad3c,_0x94ad3c-0x150,_0x2069b8-_0x264407._0x52bbd6,_0x109bfc-_0x264407._0x2bcb75);}clearTimeout(_0x2f277a);function _0x5c39ef(_0x362813,_0x338e04,_0x58c076,_0x393765){return _0x5a49db(_0x362813-0x9d,_0x338e04-_0x57e01e._0x15a7d0,_0x58c076-_0x57e01e._0x5437d1,_0x338e04);}_0x5736d1({'status':'error','error':_0x29fc54[_0x81e5de(_0x24be10._0x2b9ea1,0x269,_0x24be10._0x512e16,0x264)],'duration_ms':Date[_0x5c39ef(0x11f,_0x24be10._0x3ec600,0x135,0x14c)]()-_0x4b643b});});});}function createHookExtensions(_0x219718,_0x5232f1,_0x438343={}){const _0x88fcf2={_0x59d4e5:0x85,_0x443742:0x7f,_0xcea0de:0x71,_0x109a01:0x7a,_0x2b378e:0xbb,_0x46ee44:0xa1,_0x4d8fa4:0xa2,_0x4a222a:0x8e,_0x372e12:0x69,_0x57e188:0x7a,_0x461b99:0x77,_0x1b9012:0xae,_0xbeb737:0xa7,_0xc2bf86:0x79,_0x13d708:0x9d,_0x28b271:0x68,_0x1f3cbc:0x87,_0x1a2743:0xac,_0x38eed5:0xb0,_0x4f65f4:0x88,_0x446da6:0x7e},_0x24ccfd={_0x3f4591:0x17f},_0x4a2e9e={_0x42d228:0x9,_0x293455:0x14,_0x528b7f:0x1bd,_0x3a10cd:0x1a7,_0x573ef9:0x25},_0x2b9eee={_0x40e9b2:0x11d,_0x2ee602:0xb2},_0xb6691={_0x1dd35f:0xfb,_0x1559fd:0xe5,_0x27be13:0x100,_0x40f032:0x116,_0x73ed0b:0x18c,_0x4f13f4:0x194,_0x4bef5d:0x1ae},_0x364765={_0x15b3f6:0x18a,_0x293ec6:0x7a},_0xf225fc={_0x14cf8c:0x170,_0x16730c:0x167,_0x12586c:0x137,_0x2286eb:0x130,_0x1986dd:0x51c,_0x1e2047:0x52d,_0x42bf2c:0x148,_0x2ce774:0x15c,_0x2df844:0x179,_0x18a9bc:0x160,_0x5bc0df:0x157,_0x145f96:0x522,_0x4b3182:0x531,_0x579cbb:0x15c,_0x5a21b5:0x15c},_0x5152d5={_0x17dc7e:0x7c};function _0x4ea213(_0x2aadc0,_0x2bab96,_0x5c5b61,_0x23efc9){return _0x5001(_0x23efc9- -0x296,_0x2aadc0);}const _0xb13af6=[],{sessionId:_0x3c3ee9,projectDir:_0x2c1498}=_0x438343,_0x1ffaaf=_0x20b10d=>_0x219718['hasHooks']?_0x219718[_0x29d319(0x59,0x51,0x6a,0x70)](_0x20b10d):_0x219718['getHooks'](_0x20b10d)['length']>0x0;_0x1ffaaf(_0x4ea213(-_0x88fcf2._0x59d4e5,-0x95,-0x80,-0x85))&&_0xb13af6[_0x29d319(0x74,_0x88fcf2._0x443742,0x85,0x73)]({'id':_0x4ea213(-0x78,-0x8b,-_0x88fcf2._0xcea0de,-_0x88fcf2._0x109a01),'stage':_0x4ea213(-0xa8,-_0x88fcf2._0x2b378e,-0xb4,-0xab),'kind':_0x4ea213(-_0x88fcf2._0x46ee44,-0x7d,-_0x88fcf2._0x4d8fa4,-_0x88fcf2._0x4a222a),'order':0x0,'enabled':!![],'run':async(_0x488a55,_0x962ed1)=>{const _0x5962b8={_0x5cd1de:0x18c,_0x104882:0x104,_0x199296:0x1ce};function _0x38d3a8(_0x369e7b,_0x2ea6e3,_0x351b40,_0x3e9bb2){return _0x29d319(_0x351b40,_0x2ea6e3-0x1a0,_0x351b40-_0x5152d5._0x17dc7e,_0x3e9bb2-0x4aa);}function _0x12118c(_0x3df4d1,_0x1923b9,_0x19a605,_0x2d7763){return _0x29d319(_0x19a605,_0x1923b9-_0x5962b8._0x5cd1de,_0x19a605-_0x5962b8._0x104882,_0x1923b9- -_0x5962b8._0x199296);}const _0x143ac5=_0x219718[_0x12118c(-_0xf225fc._0x14cf8c,-_0xf225fc._0x16730c,-0x16d,-0x159)]('PostToolUse',_0x488a55[_0x12118c(-_0xf225fc._0x12586c,-0x142,-_0xf225fc._0x2286eb,-0x14b)]);for(const _0x5db5ee of _0x143ac5){const _0x2d59b7={'tool_name':_0x488a55['toolName'],'tool_input':void 0x0,'tool_output':_0x488a55[_0x38d3a8(_0xf225fc._0x1986dd,0x51c,0x50f,_0xf225fc._0x1e2047)],'tool_result_status':_0x488a55['status'],'session_id':_0x3c3ee9??_0x962ed1[_0x12118c(-0x142,-_0xf225fc._0x42bf2c,-_0xf225fc._0x2ce774,-0x144)][_0x12118c(-_0xf225fc._0x2df844,-_0xf225fc._0x18a9bc,-_0xf225fc._0x5bc0df,-0x156)]};await _0x5232f1(_0x5db5ee[_0x38d3a8(0x535,_0xf225fc._0x145f96,_0xf225fc._0x4b3182,0x537)],_0x2d59b7,_0x5db5ee[_0x12118c(-_0xf225fc._0x579cbb,-0x144,-_0xf225fc._0x5a21b5,-0x14a)],_0x2c1498);}}});_0x1ffaaf(_0x29d319(_0x88fcf2._0x372e12,_0x88fcf2._0x57e188,0x83,_0x88fcf2._0x461b99))&&_0xb13af6[_0x4ea213(-0x8b,-_0x88fcf2._0x1b9012,-_0x88fcf2._0xbeb737,-0xa4)]({'id':_0x29d319(_0x88fcf2._0xc2bf86,_0x88fcf2._0x13d708,_0x88fcf2._0x28b271,_0x88fcf2._0x1f3cbc),'stage':'beforeFinalOutput','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x36f40d,_0x403f60)=>{const _0x3117a1={_0x27fdf1:0x1c7};function _0x26e38a(_0x2bbb56,_0x30174d,_0x63cfb3,_0x58632d){return _0x29d319(_0x30174d,_0x30174d-_0x364765._0x15b3f6,_0x63cfb3-0x1c7,_0x63cfb3-_0x364765._0x293ec6);}function _0x2737fa(_0x1150c6,_0x4127ad,_0x3b9c10,_0x19147c){return _0x4ea213(_0x19147c,_0x4127ad-_0x3117a1._0x27fdf1,_0x3b9c10-0x12,_0x4127ad- -0x107);}const _0x3a7d3e=_0x219718[_0x2737fa(-0x1b8,-0x1b7,-0x1ab,-0x1b5)]('Stop');for(const _0x46542e of _0x3a7d3e){const _0x3407da={'stop_reason':_0x26e38a(0x10c,0xdd,_0xb6691._0x1dd35f,0xe7),'session_id':_0x3c3ee9??_0x403f60[_0x26e38a(0x116,_0xb6691._0x1559fd,_0xb6691._0x27be13,_0xb6691._0x40f032)]['sessionId']};await _0x5232f1(_0x46542e[_0x2737fa(-0x188,-0x191,-0x18a,-0x195)],_0x3407da,_0x46542e[_0x2737fa(-_0xb6691._0x73ed0b,-_0xb6691._0x4f13f4,-0x17b,-_0xb6691._0x4bef5d)],_0x2c1498);}}});_0x1ffaaf(_0x29d319(_0x88fcf2._0x1a2743,_0x88fcf2._0x38eed5,_0x88fcf2._0x4f65f4,0x9e))&&_0xb13af6[_0x29d319(_0x88fcf2._0x446da6,0x71,0x91,0x73)]({'id':'hook:Notification','stage':'afterTurnComplete','kind':'observer','order':0x0,'enabled':!![],'run':async(_0x281379,_0x2fcb04)=>{const _0x274f69={_0x3624c9:0xe8};function _0x3ca758(_0x8f3a4f,_0x903532,_0x254e4a,_0x3d844d){return _0x29d319(_0x903532,_0x903532-_0x274f69._0x3624c9,_0x254e4a-0x1c1,_0x254e4a-0x12c);}function _0x10b7dd(_0x246147,_0x5d0bcd,_0x1ebff5,_0x3f92dd){return _0x29d319(_0x5d0bcd,_0x5d0bcd-0x1ce,_0x1ebff5-_0x2b9eee._0x40e9b2,_0x1ebff5- -_0x2b9eee._0x2ee602);}const _0x602b41=_0x219718[_0x3ca758(0x1a8,0x198,0x193,0x1b1)](_0x10b7dd(-0x19,-_0x4a2e9e._0x42d228,-_0x4a2e9e._0x293455,-0xd));for(const _0x17564b of _0x602b41){const _0x3ba5e9={'message':_0x3ca758(0x1b6,_0x4a2e9e._0x528b7f,0x1a0,0x1ae),'session_id':_0x3c3ee9??_0x281379[_0x3ca758(0x187,_0x4a2e9e._0x3a10cd,0x19a,0x199)]};await _0x5232f1(_0x17564b['command'],_0x3ba5e9,_0x17564b[_0x10b7dd(-0x1c,-_0x4a2e9e._0x573ef9,-0x28,-0x2d)],_0x2c1498);}}});function _0x29d319(_0x2b316d,_0x1725e4,_0x583744,_0x15acb3){return _0x5001(_0x15acb3- -_0x24ccfd._0x3f4591,_0x2b316d);}return _0xb13af6;}function _0x5001(_0x53e1ef,_0xfd76c0){_0x53e1ef=_0x53e1ef-0x1e3;const _0x51c1e6=_0x51c1();let _0x5001e0=_0x51c1e6[_0x53e1ef];if(_0x5001['HpUaZL']===undefined){var _0x48093d=function(_0x5e0a9f){const _0x347be6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32b813='',_0x581e86='';for(let _0x141b2e=0x0,_0x25bf68,_0x4b643b,_0x5736d1=0x0;_0x4b643b=_0x5e0a9f['charAt'](_0x5736d1++);~_0x4b643b&&(_0x25bf68=_0x141b2e%0x4?_0x25bf68*0x40+_0x4b643b:_0x4b643b,_0x141b2e++%0x4)?_0x32b813+=String['fromCharCode'](0xff&_0x25bf68>>(-0x2*_0x141b2e&0x6)):0x0){_0x4b643b=_0x347be6['indexOf'](_0x4b643b);}for(let _0x43bf1b=0x0,_0x2ba3f0=_0x32b813['length'];_0x43bf1b<_0x2ba3f0;_0x43bf1b++){_0x581e86+='%'+('00'+_0x32b813['charCodeAt'](_0x43bf1b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x581e86);};_0x5001['LWmUXi']=_0x48093d,_0x5001['JTrBTS']={},_0x5001['HpUaZL']=!![];}const _0x499c5c=_0x51c1e6[0x0],_0x53620c=_0x53e1ef+_0x499c5c,_0x4c2a6a=_0x5001['JTrBTS'][_0x53620c];return!_0x4c2a6a?(_0x5001e0=_0x5001['LWmUXi'](_0x5001e0),_0x5001['JTrBTS'][_0x53620c]=_0x5001e0):_0x5001e0=_0x4c2a6a,_0x5001e0;}function createHookOnToolCallMiddleware(_0xc76ff,_0x52637c,_0x1a91bc,_0x30413e={}){const _0x11dd55={_0x5776b4:0x2b,_0x546c09:0x18,_0x2d79b0:0x1c,_0x160da5:0x16,_0x109cf3:0x24,_0x54d271:0x5e,_0x33c3d3:0x21,_0x27db74:0x3f,_0x552ebd:0x8,_0x4dcccb:0xf,_0x211f59:0x23,_0x14b16b:0x20,_0x3be16c:0x19,_0xdaa6bb:0x1e,_0x39a4f9:0x39,_0x15e946:0x48,_0x39135d:0x2d,_0x24eab8:0x20,_0x5c489e:0x13,_0x1e375f:0x17,_0x16da36:0x8,_0x257e60:0xf,_0x2984e6:0x2f,_0x2c6a63:0x36,_0x333773:0x3a,_0x2af584:0x25,_0x479a95:0x2d,_0x1c491d:0x6,_0x45f033:0x61,_0x30ca1e:0x5f,_0x18de91:0x59,_0xc2dd1a:0x44,_0x37625f:0x1,_0x211efb:0xc,_0x5c1512:0x2a},{sessionId:_0x5543c1,projectDir:_0x512932}=_0x30413e;return async(_0x244fa1,_0x542020)=>{const _0x2299b3={_0x5b4afe:0x1ef};function _0x504945(_0x12c204,_0x37447b,_0x29b33c,_0x5cdf45){return _0x5001(_0x5cdf45- -0x241,_0x12c204);}function _0x4521a6(_0x547060,_0x144c84,_0x1c3f6e,_0x53f81f){return _0x5001(_0x1c3f6e- -_0x2299b3._0x5b4afe,_0x547060);}const _0x3b726e=_0xc76ff['getHooks'](_0x4521a6(0x29,0x21,_0x11dd55._0x5776b4,_0x11dd55._0x546c09),_0x244fa1[_0x4521a6(_0x11dd55._0x2d79b0,-_0x11dd55._0x160da5,0x2,-0x5)]);for(const _0x2a65ba of _0x3b726e){const _0x5458af={'tool_name':_0x244fa1['name'],'tool_input':_0x244fa1['input'],'session_id':_0x5543c1},_0x44e351=await _0x52637c(_0x2a65ba['command'],_0x5458af,_0x2a65ba[_0x4521a6(0x2d,_0x11dd55._0x109cf3,0x1a,0x2f)],_0x512932),_0x45b8e0=_0x44e351[_0x504945(-0x4d,-_0x11dd55._0x54d271,-_0x11dd55._0x33c3d3,-_0x11dd55._0x27db74)]?.[_0x4521a6(-0x3,-0x9,-_0x11dd55._0x552ebd,_0x11dd55._0x4dcccb)]?.[_0x4521a6(_0x11dd55._0x211f59,0xb,_0x11dd55._0x14b16b,0x34)];if(_0x45b8e0===_0x4521a6(0x13,_0x11dd55._0x3be16c,0x25,_0x11dd55._0xdaa6bb))break;if(_0x45b8e0==='deny')return{'action':_0x504945(-0x5b,-_0x11dd55._0x39a4f9,-_0x11dd55._0x15e946,-0x4c),'reason':_0x44e351[_0x4521a6(_0x11dd55._0x39135d,_0x11dd55._0x24eab8,_0x11dd55._0x5c489e,_0x11dd55._0x1e375f)]?.[_0x4521a6(-0x9,-0x17,-_0x11dd55._0x16da36,0x10)]?.[_0x504945(-_0x11dd55._0x257e60,-_0x11dd55._0x2984e6,-0x16,-0x28)]||'Permission\x20denied\x20for\x20'+_0x244fa1['name']};if(_0x44e351[_0x504945(-_0x11dd55._0xdaa6bb,-0x33,-_0x11dd55._0x2c6a63,-0x2f)]==='block'||_0x44e351[_0x504945(-0x2b,-0x32,-_0x11dd55._0x2c6a63,-0x3f)]?.[_0x504945(-_0x11dd55._0x2d79b0,-0x3f,-0x27,-_0x11dd55._0x333773)]===_0x4521a6(_0x11dd55._0x2af584,_0x11dd55._0x479a95,0x10,-_0x11dd55._0x1c491d))return{'action':'reject','reason':_0x44e351[_0x4521a6(0xd,0xa,0x13,_0x11dd55._0x160da5)]?.[_0x504945(-_0x11dd55._0x45f033,-_0x11dd55._0x30ca1e,-_0x11dd55._0x18de91,-_0x11dd55._0xc2dd1a)]||_0x4521a6(_0x11dd55._0x37625f,-0x1f,-_0x11dd55._0x211efb,-_0x11dd55._0x5c1512)+_0x244fa1[_0x4521a6(0x4,-_0x11dd55._0x160da5,0x2,-0x9)]};}return _0x1a91bc(_0x244fa1,_0x542020);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x4c0055){const _0x334fbc={_0x49d574:0x50f,_0x43bc05:0x53c,_0x29d91f:0x4b,_0x3ccfdb:0x6f,_0x3292dd:0x5c,_0x2c71aa:0x53,_0x54bcfd:0x540,_0x203ad3:0x517,_0x3f8786:0x51f,_0x16bf80:0x53c},_0x48c1a3={_0x43279b:0x19,_0x19db67:0x28},_0x2a040e={_0x1b031c:0x1e6};return{'hasHooks'(_0x3f4313){function _0x54f3f0(_0x5197af,_0x5c32b2,_0x4139b2,_0x5b22e4){return _0x5001(_0x4139b2- -_0x2a040e._0x1b031c,_0x5197af);}return(_0x4c0055[_0x3f4313]?.[_0x54f3f0(0xa,_0x48c1a3._0x43279b,_0x48c1a3._0x19db67,0x28)]??0x0)>0x0;},'getHooks'(_0x2e3aea,_0x73ba0){const _0x5e4c40={_0x139be5:0x196},_0x1a88c6=_0x4c0055[_0x2e3aea];function _0x16ffe8(_0x570836,_0x236644,_0x2e0d12,_0x3f476b){return _0x5001(_0x3f476b-0x33a,_0x236644);}if(!_0x1a88c6)return[];function _0x390561(_0x322d7,_0x21f595,_0x566397,_0x14fc56){return _0x5001(_0x566397- -_0x5e4c40._0x139be5,_0x322d7);}const _0x33ec50=[];for(const _0x387569 of _0x1a88c6){if(!_0x387569[_0x16ffe8(_0x334fbc._0x49d574,_0x334fbc._0x43bc05,0x51e,0x51f)]||_0x387569['matcher']==='*'){_0x33ec50[_0x390561(_0x334fbc._0x29d91f,_0x334fbc._0x3ccfdb,_0x334fbc._0x3292dd,_0x334fbc._0x2c71aa)](..._0x387569['hooks'][_0x16ffe8(0x55b,_0x334fbc._0x54bcfd,0x558,0x54d)](_0x534fa1=>({'command':_0x534fa1[_0x16ffe8(0x561,0x527,0x534,0x546)],'timeout':_0x534fa1[_0x390561(0x58,0x5b,0x73,0x57)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x73ba0===void 0x0)continue;const _0x45dcc3=new RegExp('^(?:'+_0x387569[_0x16ffe8(0x520,0x514,_0x334fbc._0x203ad3,_0x334fbc._0x3f8786)]+')$');_0x45dcc3['test'](_0x73ba0)&&_0x33ec50['push'](..._0x387569['hooks'][_0x16ffe8(0x55a,_0x334fbc._0x16bf80,0x558,0x54d)](_0x48d3c4=>({'command':_0x48d3c4['command'],'timeout':_0x48d3c4[_0x16ffe8(0x534,0x545,0x54a,0x543)]??DEFAULT_TIMEOUT_S2})));}return _0x33ec50;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0x55c2ec,_0x337b7b){const _0x3b5cb9={_0x2aa2d4:0x259,_0x10366c:0x254,_0x2badc8:0x284,_0x56ea9f:0x269,_0x39cc60:0x20f,_0x55dfbc:0x1d7,_0x2769d5:0x24a,_0x51fc18:0x25f,_0x5d2220:0x200,_0x45ffee:0x207,_0x45cffd:0x28d,_0x2014e0:0x28f,_0x4b9afd:0x260,_0x55df67:0x25a,_0x3387a8:0x265,_0x1570c5:0x25d,_0x255470:0x255,_0x4a14d5:0x235,_0x46b474:0x235};function _0x581708(_0x3ed976,_0x5303a4,_0x2702de,_0x261f07){return _0xc1ae(_0x261f07- -0x27e,_0x2702de);}function _0x1d43d5(_0x2140bf,_0x3c2f97,_0x531e8a,_0x37f5c7){return _0xc1ae(_0x37f5c7- -0x2f8,_0x3c2f97);}const _0xff1feb=_0x55c2ec();while(!![]){try{const _0x15b670=parseInt(_0x1d43d5(-_0x3b5cb9._0x2aa2d4,-_0x3b5cb9._0x10366c,-_0x3b5cb9._0x2badc8,-_0x3b5cb9._0x56ea9f))/0x1*(-parseInt(_0x581708(-_0x3b5cb9._0x39cc60,-0x1e8,-0x21a,-0x1fd))/0x2)+-parseInt(_0x581708(-0x1ea,-0x1bb,-0x1f2,-_0x3b5cb9._0x55dfbc))/0x3*(parseInt(_0x1d43d5(-0x25c,-0x269,-_0x3b5cb9._0x2769d5,-_0x3b5cb9._0x51fc18))/0x4)+-parseInt(_0x581708(-0x21e,-_0x3b5cb9._0x5d2220,-0x209,-_0x3b5cb9._0x45ffee))/0x5+parseInt(_0x1d43d5(-_0x3b5cb9._0x45cffd,-0x262,-_0x3b5cb9._0x2014e0,-0x26e))/0x6+parseInt(_0x1d43d5(-0x23a,-_0x3b5cb9._0x4b9afd,-0x272,-_0x3b5cb9._0x55df67))/0x7+parseInt(_0x1d43d5(-0x243,-0x278,-0x255,-_0x3b5cb9._0x3387a8))/0x8*(-parseInt(_0x1d43d5(-_0x3b5cb9._0x1570c5,-0x238,-0x233,-_0x3b5cb9._0x255470))/0x9)+parseInt(_0x581708(-0x21f,-_0x3b5cb9._0x4a14d5,-_0x3b5cb9._0x46b474,-0x217))/0xa*(parseInt(_0x581708(-0x1f3,-0x20d,-0x1e2,-0x203))/0xb);if(_0x15b670===_0x337b7b)break;else _0xff1feb['push'](_0xff1feb['shift']());}catch(_0x4dbd05){_0xff1feb['push'](_0xff1feb['shift']());}}}(_0x5d60,0x77117));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x435b9c,_0x1e1205,_0x44df08=DEFAULT_TIMEOUT_S,_0x556bdf){const _0x3df013={_0x34346d:0x458,_0x2e66b1:0x463},_0x36db2c={_0x121c57:0x21c,_0x409256:0x223,_0x1da577:0x20b,_0x24c7f6:0x1f2,_0x416d13:0x202,_0x3a9576:0x358,_0x393c0f:0x33c,_0x480f65:0x339,_0x1c7cbb:0x209,_0x47f12f:0x205,_0x1418ab:0x220,_0x17b5bc:0x1ec,_0x29f193:0x1fc,_0x2ddbc1:0x31c,_0x253a45:0x31c,_0x596065:0x217,_0x1c00cd:0x1fe,_0x2fef34:0x1dc,_0x4f8e9a:0x34a,_0x40131a:0x32e},_0x3dcbe7={_0xb6e825:0x330,_0x3f3328:0x351,_0x2cce30:0x363,_0x55fd90:0x369,_0x5c6171:0x24,_0x4e2c79:0x19,_0x54cc63:0x29,_0x2a8505:0x2e,_0x512e8f:0x12,_0x42e5a9:0x32e,_0x54a3ca:0x336,_0x40ba90:0x16,_0x552790:0x1d,_0x4303e5:0x8,_0x4bae7b:0x4e,_0xff4206:0x63,_0x24bbf1:0x49,_0x1ca228:0x328,_0x4b6ebf:0x33d,_0x203b26:0x348,_0x6fa2eb:0x318,_0x3ba3ff:0x32a,_0x3e9e65:0x341},_0x2b8c74={_0x2ed1ea:0x2b6,_0x3dea26:0x2a0,_0x2919bd:0x2b8,_0x47f38f:0x296,_0x1db77e:0x29a,_0x45b851:0x2a9,_0x418715:0x29c,_0x4549c7:0x29b,_0x1d6dc4:0x296},_0x29f156={_0x2072d5:0x75f,_0x857106:0x1b5},_0x151594={_0x2ea9ca:0x248,_0x48c3e2:0x248,_0x1b7921:0x25e,_0xfb9827:0x17,_0x571267:0x23},_0x128013={_0x1b9256:0x224,_0x17f2fc:0x1d0,_0x347639:0x9b};function _0x408a17(_0x136a60,_0x1c3d9e,_0x301fe1,_0x2d3999){return _0xc1ae(_0x136a60-0x3af,_0x2d3999);}const _0x33c16d=Date[_0x408a17(0x44e,_0x3df013._0x34346d,_0x3df013._0x2e66b1,0x455)]();return new Promise(_0x5cbfa8=>{const _0x3eafd2={_0x22b425:0xba,_0x165d60:0xd1,_0x4f7399:0xd6,_0x3deb98:0xd1,_0x2a90e4:0x2db,_0x5f4154:0x2b4},_0x187754={_0x725322:0x8e,_0x1ee9c9:0x188},_0x5a21ba={_0xbbd62:0x134,_0x1e027d:0x10a},_0x3ed709={_0x5a2366:0x4f,_0x43612f:0x4cd},_0x197f6c={_0x1e2ade:0x148,_0x3e089f:0xe2},_0x1f0aa9=spawn('sh',['-c',_0x435b9c],{'stdio':[_0x4a5758(0x21c,0x23b,0x217,0x20f),'pipe',_0x4a5758(_0x36db2c._0x121c57,0x1fd,_0x36db2c._0x409256,0x223)],'env':{...process[_0x4a5758(_0x36db2c._0x1da577,0x225,0x1ec,0x1eb)],'CLAUDE_PROJECT_DIR':_0x556bdf??process[_0x4a5758(0x20a,0x219,_0x36db2c._0x24c7f6,_0x36db2c._0x416d13)]()}});let _0x28f469='',_0x201896='';_0x1f0aa9[_0x3c4e06(-0x353,-_0x36db2c._0x3a9576,-_0x36db2c._0x393c0f,-_0x36db2c._0x480f65)]['on'](_0x4a5758(0x207,_0x36db2c._0x1c7cbb,_0x36db2c._0x47f12f,_0x36db2c._0x1418ab),_0x45dab8=>{_0x28f469+=_0x45dab8['toString']();}),_0x1f0aa9['stderr']['on'](_0x4a5758(0x207,_0x36db2c._0x17b5bc,0x1ed,_0x36db2c._0x29f193),_0x5a7285=>{_0x201896+=_0x5a7285['toString']();});function _0x4a5758(_0x581988,_0x51711e,_0x390c5b,_0x5b1953){return _0x408a17(_0x581988- -_0x128013._0x1b9256,_0x51711e-_0x128013._0x17f2fc,_0x390c5b-_0x128013._0x347639,_0x51711e);}_0x1f0aa9[_0x3c4e06(-_0x36db2c._0x2ddbc1,-0x315,-_0x36db2c._0x253a45,-0x31d)]['on']('error',_0x211d13=>{const _0x332b3e={_0x1e4102:0x62,_0x47d877:0x554};function _0x303618(_0xa7a385,_0xf8a76e,_0x210c37,_0x177b0a){return _0x3c4e06(_0x210c37,_0xf8a76e-_0x332b3e._0x1e4102,_0xa7a385-_0x332b3e._0x47d877,_0x177b0a-0x1e5);}function _0x273d35(_0x372b4e,_0xeefd8a,_0x3de807,_0x2d0e8e){return _0x4a5758(_0x372b4e- -0x212,_0x3de807,_0x3de807-_0x197f6c._0x1e2ade,_0x2d0e8e-_0x197f6c._0x3e089f);}if(_0x211d13[_0x303618(_0x151594._0x2ea9ca,0x26a,_0x151594._0x48c3e2,_0x151594._0x1b7921)]!==_0x273d35(-0xd,-0xf,-_0x151594._0xfb9827,-_0x151594._0x571267))throw _0x211d13;}),_0x1f0aa9[_0x3c4e06(-0x32b,-0x300,-0x31c,-0x31f)]['write'](JSON['stringify'](_0x1e1205)),_0x1f0aa9['stdin'][_0x4a5758(_0x36db2c._0x596065,0x20d,0x20d,0x217)]();function _0x3c4e06(_0x59bc30,_0x2d91bb,_0x1c572c,_0x3c802a){return _0x408a17(_0x1c572c- -_0x29f156._0x2072d5,_0x2d91bb-0x7f,_0x1c572c-_0x29f156._0x857106,_0x59bc30);}const _0x3e8583=setTimeout(()=>{function _0x2745b2(_0x5ac7d2,_0x2597ca,_0x4f7177,_0x5b8911){return _0x3c4e06(_0x5b8911,_0x2597ca-_0x3ed709._0x5a2366,_0x5ac7d2-_0x3ed709._0x43612f,_0x5b8911-0x72);}function _0x420ec9(_0x26b49c,_0x3da6e3,_0x1a34c6,_0x5556eb){return _0x3c4e06(_0x1a34c6,_0x3da6e3-0x11,_0x26b49c-0x76,_0x5556eb-0xfa);}_0x1f0aa9[_0x420ec9(-_0x2b8c74._0x2ed1ea,-_0x2b8c74._0x2ed1ea,-0x29c,-_0x2b8c74._0x3dea26)](_0x420ec9(-0x2a3,-0x2bf,-0x288,-0x2c0)),_0x5cbfa8({'status':_0x420ec9(-_0x2b8c74._0x2919bd,-_0x2b8c74._0x47f38f,-0x2a6,-_0x2b8c74._0x1db77e),'error':_0x420ec9(-0x292,-0x28a,-_0x2b8c74._0x45b851,-_0x2b8c74._0x418715)+_0x44df08+'s','duration_ms':Date[_0x420ec9(-_0x2b8c74._0x4549c7,-0x29b,-_0x2b8c74._0x1d6dc4,-0x2aa)]()-_0x33c16d});},_0x44df08*0x3e8);_0x1f0aa9['on'](_0x4a5758(0x1fc,_0x36db2c._0x1c00cd,_0x36db2c._0x2fef34,0x1f3),_0x2ecb81=>{function _0x5af5ff(_0x3d991a,_0x27f600,_0x53538a,_0x32f2c5){return _0x3c4e06(_0x3d991a,_0x27f600-0x18f,_0x27f600-0x662,_0x32f2c5-0x1f1);}clearTimeout(_0x3e8583);const _0x4eed96=Date[_0x5af5ff(_0x3dcbe7._0xb6e825,_0x3dcbe7._0x3f3328,_0x3dcbe7._0x2cce30,_0x3dcbe7._0x55fd90)]()-_0x33c16d;if(_0x2ecb81===0x2){_0x5cbfa8({'status':_0xbaac1b(-_0x3dcbe7._0x5c6171,-_0x3dcbe7._0x4e2c79,-0x1b,-_0x3dcbe7._0x54cc63),'output':{'decision':_0xbaac1b(-0x1,-0x7,-0x1b,-_0x3dcbe7._0x2a8505),'reason':_0x201896['trim']()||_0xbaac1b(-0xb,-_0x3dcbe7._0x512e8f,-0x10,-0x6)},'duration_ms':_0x4eed96});return;}function _0xbaac1b(_0xc110ee,_0x15a0a3,_0x27d648,_0x4e2297){return _0x3c4e06(_0xc110ee,_0x15a0a3-_0x5a21ba._0xbbd62,_0x27d648-0x2fa,_0x4e2297-_0x5a21ba._0x1e027d);}if(_0x2ecb81!==0x0){_0x5cbfa8({'status':_0x5af5ff(_0x3dcbe7._0x42e5a9,0x334,_0x3dcbe7._0x54a3ca,0x338),'error':_0xbaac1b(-_0x3dcbe7._0x40ba90,-_0x3dcbe7._0x552790,-0x16,_0x3dcbe7._0x4303e5)+_0x2ecb81+(_0x201896[_0xbaac1b(-0x3f,-0x6e,-_0x3dcbe7._0x4bae7b,-0x34)]()?':\x20'+_0x201896[_0xbaac1b(-0x34,-0x57,-0x4e,-0x67)]():''),'duration_ms':_0x4eed96});return;}const _0x455da3=_0x28f469[_0xbaac1b(-_0x3dcbe7._0xff4206,-_0x3dcbe7._0x24bbf1,-0x4e,-0x47)]();if(_0x455da3['length']===0x0){_0x5cbfa8({'status':_0x5af5ff(_0x3dcbe7._0x1ca228,_0x3dcbe7._0x4b6ebf,0x321,_0x3dcbe7._0x203b26),'duration_ms':_0x4eed96});return;}try{const _0xc99668=JSON[_0x5af5ff(_0x3dcbe7._0x6fa2eb,_0x3dcbe7._0x3ba3ff,_0x3dcbe7._0x3e9e65,0x326)](_0x455da3);_0x5cbfa8({'status':'pass','output':_0xc99668,'duration_ms':_0x4eed96});}catch{_0x5cbfa8({'status':_0x5af5ff(0x354,_0x3dcbe7._0x4b6ebf,0x34e,0x347),'duration_ms':_0x4eed96});}}),_0x1f0aa9['on'](_0x3c4e06(-0x345,-_0x36db2c._0x4f8e9a,-_0x36db2c._0x40131a,-0x32a),_0x210a14=>{const _0x5b7a1d={_0x38004f:0xc6};function _0x4354ee(_0x272f94,_0x5b439f,_0x2852b7,_0x29363c){return _0x3c4e06(_0x272f94,_0x5b439f-0xed,_0x29363c-0x53,_0x29363c-_0x5b7a1d._0x38004f);}function _0x36888f(_0xde3bd1,_0x55b7f4,_0x57bb69,_0x2d64e8){return _0x3c4e06(_0x57bb69,_0x55b7f4-_0x187754._0x725322,_0xde3bd1-0x3e8,_0x2d64e8-_0x187754._0x1ee9c9);}clearTimeout(_0x3e8583),_0x5cbfa8({'status':_0x36888f(_0x3eafd2._0x22b425,_0x3eafd2._0x165d60,0xb6,0xbf),'error':_0x210a14[_0x36888f(0xbf,0xd3,_0x3eafd2._0x4f7399,_0x3eafd2._0x3deb98)],'duration_ms':Date[_0x4354ee(-_0x3eafd2._0x2a90e4,-0x2c9,-_0x3eafd2._0x5f4154,-0x2be)]()-_0x33c16d});});});}function createHookExtensions(_0x19d530,_0x116b75,_0x52d386={}){const _0x427453={_0x5cb654:0x35,_0x290d06:0x87,_0x44c67f:0x72,_0x3898a2:0x299,_0x61555e:0x5b,_0x38105b:0x78,_0x42273e:0x6b,_0x53a884:0x2dd,_0x482d2c:0x296,_0x5c567b:0x298,_0x44f831:0x68,_0x37ff76:0x83,_0x5c9216:0x7a,_0x3c1763:0x69,_0x1b7077:0x2bb,_0x5f4c52:0x2b5,_0x1eef14:0x2ca,_0x29d539:0x2d1,_0x53f384:0x2b3,_0xcd46de:0x287,_0x557187:0x280,_0x57c4e5:0x72,_0x2f96e4:0x82,_0x46e580:0x9f},_0xe222e0={_0x158dd6:0x1c3,_0x1fd2c9:0x1a1,_0x327847:0x1d5,_0x1343bf:0x1de,_0x20ac3e:0x197,_0x50d6b2:0x19e,_0x454d18:0x1bb,_0x1cafa4:0x1aa,_0x4a206c:0x209,_0x24e38e:0x1db},_0x467803={_0x5a715d:0xc1},_0x2c6d89={_0x2560cd:0x236},_0x342f13={_0x54c3b0:0xfa,_0x59f467:0xd2,_0x38614e:0xce,_0x575e9f:0xbe,_0x25ee23:0xbf,_0x3feb6b:0x107},_0x37211b={_0x58a783:0x366,_0x37c831:0xa7},_0x199198={_0x10cab3:0x3,_0x54b501:0x8,_0x39f702:0x1c,_0x4c744a:0x2,_0x532f61:0x14,_0x1fa970:0x42,_0x51c18f:0x23,_0x4d4305:0x175,_0x18527e:0x18b,_0x2ac3b1:0x18d,_0x4d9655:0x179,_0x931feb:0x19f},_0x5bbdb2={_0x45c05b:0x1a9,_0x1a1f78:0x52};function _0x25ea42(_0x14ce30,_0x19027,_0x277140,_0x1f5fc3){return _0xc1ae(_0x19027- -0xe8,_0x14ce30);}const _0x5a7c82=[];function _0x2cf543(_0x5ee639,_0x2aa5b1,_0x1a1e10,_0x303e0e){return _0xc1ae(_0x5ee639-0x21e,_0x303e0e);}const {sessionId:_0x2b5006,projectDir:_0xcf19e7}=_0x52d386,_0x47aea6=_0x142418=>_0x19d530[_0x25ea42(-0x5c,-0x50,-0x5b,-0x6f)]?_0x19d530[_0x25ea42(-0x52,-0x50,-0x34,-0x44)](_0x142418):_0x19d530[_0x25ea42(-0x6c,-0x5f,-0x7d,-0x6e)](_0x142418)['length']>0x0;return _0x47aea6('PostToolUse')&&_0x5a7c82[_0x25ea42(-_0x427453._0x5cb654,-0x4b,-0x43,-0x4c)]({'id':_0x25ea42(-_0x427453._0x290d06,-0x6a,-_0x427453._0x44c67f,-0x4d),'stage':_0x2cf543(0x294,0x27a,_0x427453._0x3898a2,0x29d),'kind':_0x25ea42(-0x98,-0x82,-0x71,-0x8b),'order':0x0,'enabled':!![],'run':async(_0x17291c,_0x2a19a9)=>{const _0x1e264c={_0xda4e9c:0x1b8,_0x4185a7:0xec},_0x15d1f2=_0x19d530[_0x392bac(-0x4,0x21,0x2,_0x199198._0x10cab3)]('PostToolUse',_0x17291c['toolName']);function _0x46d502(_0x20c5f6,_0x185e72,_0x29017d,_0x1d0053){return _0x25ea42(_0x29017d,_0x20c5f6- -0x112,_0x29017d-_0x1e264c._0xda4e9c,_0x1d0053-_0x1e264c._0x4185a7);}function _0x392bac(_0x5b7224,_0x4af33a,_0x1077cb,_0x20417e){return _0x2cf543(_0x20417e- -0x2a4,_0x4af33a-_0x5bbdb2._0x45c05b,_0x1077cb-_0x5bbdb2._0x1a1f78,_0x5b7224);}for(const _0x15f89c of _0x15d1f2){const _0x1e0d43={'tool_name':_0x17291c[_0x392bac(-_0x199198._0x54b501,-_0x199198._0x39f702,_0x199198._0x4c744a,-_0x199198._0x532f61)],'tool_input':void 0x0,'tool_output':_0x17291c[_0x392bac(_0x199198._0x1fa970,0xa,0xe,_0x199198._0x51c18f)],'tool_result_status':_0x17291c[_0x46d502(-_0x199198._0x4d4305,-_0x199198._0x18527e,-0x18c,-0x164)],'session_id':_0x2b5006??_0x2a19a9['state']['sessionId']};await _0x116b75(_0x15f89c[_0x46d502(-_0x199198._0x2ac3b1,-_0x199198._0x4d9655,-_0x199198._0x931feb,-0x17d)],_0x1e0d43,_0x15f89c['timeout'],_0xcf19e7);}}}),_0x47aea6(_0x25ea42(-_0x427453._0x61555e,-_0x427453._0x38105b,-_0x427453._0x42273e,-0x90))&&_0x5a7c82[_0x2cf543(0x2bb,_0x427453._0x53a884,0x2ae,0x2b8)]({'id':_0x2cf543(0x29b,_0x427453._0x482d2c,0x287,_0x427453._0x5c567b),'stage':'beforeFinalOutput','kind':_0x25ea42(-_0x427453._0x44f831,-0x82,-_0x427453._0x37ff76,-0x7f),'order':0x0,'enabled':!![],'run':async(_0x383030,_0x3b218b)=>{const _0x49f49e={_0x45624c:0x1ad},_0x1f7600=_0x19d530[_0x548aa1(_0x342f13._0x54c3b0,0xff,0x117,0xf8)](_0x83f3bb(-_0x342f13._0x59f467,-_0x342f13._0x38614e,-0xc0,-0xd8));function _0x83f3bb(_0x1421f2,_0x20df86,_0x47fe63,_0x1e5f44){return _0x2cf543(_0x1e5f44- -_0x37211b._0x58a783,_0x20df86-_0x37211b._0x37c831,_0x47fe63-0xb6,_0x1421f2);}function _0x548aa1(_0x596327,_0xd12e26,_0x549b6d,_0x2b2df1){return _0x2cf543(_0x596327- -_0x49f49e._0x45624c,_0xd12e26-0x78,_0x549b6d-0x9d,_0xd12e26);}for(const _0x2ccae of _0x1f7600){const _0x199fdb={'stop_reason':_0x83f3bb(-_0x342f13._0x575e9f,-_0x342f13._0x25ee23,-0xc5,-0xb6),'session_id':_0x2b5006??_0x3b218b['state'][_0x548aa1(_0x342f13._0x3feb6b,0xfa,0xee,0x11e)]};await _0x116b75(_0x2ccae['command'],_0x199fdb,_0x2ccae['timeout'],_0xcf19e7);}}}),_0x47aea6(_0x25ea42(-_0x427453._0x37ff76,-_0x427453._0x5c9216,-0x5e,-_0x427453._0x3c1763))&&_0x5a7c82[_0x2cf543(_0x427453._0x1b7077,_0x427453._0x5f4c52,_0x427453._0x1eef14,_0x427453._0x29d539)]({'id':_0x2cf543(0x293,0x299,0x29c,_0x427453._0x53f384),'stage':_0x2cf543(_0x427453._0xcd46de,0x28f,0x2a5,_0x427453._0x557187),'kind':_0x25ea42(-_0x427453._0x57c4e5,-_0x427453._0x2f96e4,-_0x427453._0x42273e,-_0x427453._0x46e580),'order':0x0,'enabled':!![],'run':async(_0x31911e,_0x55e35a)=>{function _0x41145e(_0x57875e,_0x165190,_0x180d79,_0x1c194f){return _0x25ea42(_0x165190,_0x57875e-_0x2c6d89._0x2560cd,_0x180d79-0x113,_0x1c194f-0x72);}function _0x4c7f83(_0x4666c2,_0x2be777,_0x1d96d1,_0x4271fe){return _0x2cf543(_0x4271fe- -0x116,_0x2be777-_0x467803._0x5a715d,_0x1d96d1-0x123,_0x2be777);}const _0x5299fe=_0x19d530['getHooks'](_0x41145e(0x1bc,_0xe222e0._0x158dd6,_0xe222e0._0x1fd2c9,_0xe222e0._0x327847));for(const _0x5047fe of _0x5299fe){const _0x5dcfb8={'message':_0x41145e(_0xe222e0._0x1343bf,0x1c2,0x1cd,0x1cc),'session_id':_0x2b5006??_0x31911e[_0x4c7f83(0x1b6,_0xe222e0._0x20ac3e,_0xe222e0._0x20ac3e,_0xe222e0._0x50d6b2)]};await _0x116b75(_0x5047fe[_0x41145e(_0xe222e0._0x454d18,0x19f,0x1d4,_0xe222e0._0x1cafa4)],_0x5dcfb8,_0x5047fe[_0x41145e(0x1e8,_0xe222e0._0x4a206c,_0xe222e0._0x24e38e,0x1d4)],_0xcf19e7);}}}),_0x5a7c82;}function createHookOnToolCallMiddleware(_0x436c02,_0x5e35ed,_0x50048b,_0x5ded56={}){const _0x1c18e8={_0x34d2b7:0x200,_0x3bae3a:0x1f7,_0x4f66a6:0x1ee,_0x3ea825:0x204,_0x38888e:0x9a,_0x10fd3e:0x81,_0x3b0153:0x85,_0x151560:0x85,_0x240652:0x1f6,_0x304e1c:0x22c,_0x55ae06:0x20a,_0x93d78:0x1ff,_0x6f207:0x95,_0x23248f:0x65,_0x53fbdb:0x7d,_0x2f461d:0xa9,_0x503e9d:0xbc,_0x4cfd98:0x221,_0x268d0c:0xa0,_0x58c590:0xca,_0x273ab5:0xab,_0x1451da:0x1e9,_0x344cde:0x71,_0x133004:0x8f,_0x495230:0x67,_0x437be8:0x7d,_0x530104:0x1e9,_0x2f6b82:0x1f9,_0x1f8b1a:0x20e,_0x434ea8:0x1f4,_0x1f3e29:0x1ea,_0x44fb4d:0x209,_0x5d91b7:0x1f2,_0xf03dc8:0x7f,_0x197b0b:0x1ad,_0x170dab:0x1b2,_0x197b14:0x86,_0x948584:0xad,_0x146d73:0xa0,_0xb67fc9:0x81,_0x461663:0x73,_0x2b0b92:0x8b,_0x29fc68:0x7c,_0x4bae6d:0x7b,_0x34fec7:0x20c,_0x243310:0x212,_0x30f645:0xb2,_0xfd1110:0x80,_0x1a49d4:0x99},_0x1cb575={_0x39e8b5:0x277},_0x20ccaf={_0x245bfe:0x126},{sessionId:_0x1d8428,projectDir:_0x43808f}=_0x5ded56;return async(_0x2c229a,_0x360f29)=>{function _0x3b4bde(_0x6aad01,_0x340c9b,_0xd9a7c7,_0x32fbe1){return _0xc1ae(_0x32fbe1- -_0x20ccaf._0x245bfe,_0x6aad01);}const _0xf0c48f=_0x436c02[_0x1ff60b(-_0x1c18e8._0x34d2b7,-_0x1c18e8._0x3bae3a,-_0x1c18e8._0x4f66a6,-_0x1c18e8._0x3ea825)]('PreToolUse',_0x2c229a[_0x3b4bde(-_0x1c18e8._0x38888e,-_0x1c18e8._0x10fd3e,-_0x1c18e8._0x3b0153,-0x99)]);for(const _0x3b2c79 of _0xf0c48f){const _0x33a1b2={'tool_name':_0x2c229a['name'],'tool_input':_0x2c229a[_0x3b4bde(-0x6a,-0x66,-0x94,-_0x1c18e8._0x151560)],'session_id':_0x1d8428},_0x5852a8=await _0x5e35ed(_0x3b2c79[_0x1ff60b(-_0x1c18e8._0x240652,-_0x1c18e8._0x304e1c,-_0x1c18e8._0x55ae06,-_0x1c18e8._0x93d78)],_0x33a1b2,_0x3b2c79[_0x3b4bde(-0x90,-0xad,-0x9d,-0x8c)],_0x43808f),_0xf0a718=_0x5852a8[_0x3b4bde(-0x6c,-_0x1c18e8._0x6f207,-_0x1c18e8._0x23248f,-_0x1c18e8._0x53fbdb)]?.[_0x3b4bde(-0xac,-0xdb,-_0x1c18e8._0x2f461d,-_0x1c18e8._0x503e9d)]?.[_0x1ff60b(-0x1eb,-_0x1c18e8._0x4cfd98,-0x20b,-0x1f1)];if(_0xf0a718==='allow')break;if(_0xf0a718===_0x3b4bde(-_0x1c18e8._0x268d0c,-_0x1c18e8._0x58c590,-_0x1c18e8._0x273ab5,-0xad))return{'action':_0x1ff60b(-0x1b4,-_0x1c18e8._0x1451da,-0x1d5,-0x1df),'reason':_0x5852a8[_0x3b4bde(-_0x1c18e8._0x344cde,-_0x1c18e8._0x133004,-_0x1c18e8._0x495230,-_0x1c18e8._0x437be8)]?.['hookSpecificOutput']?.[_0x1ff60b(-0x1e8,-0x1e9,-_0x1c18e8._0x530104,-_0x1c18e8._0x2f6b82)]||_0x1ff60b(-_0x1c18e8._0x1f8b1a,-0x1fb,-_0x1c18e8._0x434ea8,-0x1e2)+_0x2c229a[_0x1ff60b(-0x1d0,-0x1e9,-_0x1c18e8._0x1f3e29,-0x1c8)]};if(_0x5852a8[_0x1ff60b(-_0x1c18e8._0x44fb4d,-0x1f8,-_0x1c18e8._0x5d91b7,-0x1d1)]===_0x3b4bde(-_0x1c18e8._0xf03dc8,-0x8d,-0x6e,-0x8b)||_0x5852a8[_0x1ff60b(-_0x1c18e8._0x197b0b,-_0x1c18e8._0x170dab,-0x1ce,-0x1e7)]?.[_0x3b4bde(-_0x1c18e8._0x197b14,-_0x1c18e8._0x948584,-0xaa,-_0x1c18e8._0x146d73)]===_0x3b4bde(-_0x1c18e8._0xb67fc9,-0x91,-_0x1c18e8._0x461663,-_0x1c18e8._0x2b0b92))return{'action':_0x3b4bde(-0x98,-0x90,-_0x1c18e8._0x29fc68,-0x84),'reason':_0x5852a8[_0x3b4bde(-0x68,-_0x1c18e8._0x4bae6d,-0x7b,-0x7d)]?.[_0x1ff60b(-0x20a,-0x201,-0x208,-_0x1c18e8._0x34fec7)]||_0x1ff60b(-_0x1c18e8._0x4cfd98,-0x22b,-_0x1c18e8._0x34fec7,-_0x1c18e8._0x243310)+_0x2c229a[_0x3b4bde(-_0x1c18e8._0x30f645,-_0x1c18e8._0xfd1110,-0x8d,-_0x1c18e8._0x1a49d4)]};}function _0x1ff60b(_0x14f7fb,_0x10d095,_0x108c4f,_0x4ebc85){return _0xc1ae(_0x108c4f- -_0x1cb575._0x39e8b5,_0x10d095);}return _0x50048b(_0x2c229a,_0x360f29);};}var DEFAULT_TIMEOUT_S2=0x3c;function _0xc1ae(_0x793101,_0x246ea6){_0x793101=_0x793101-0x66;const _0x5d6093=_0x5d60();let _0xc1aef=_0x5d6093[_0x793101];if(_0xc1ae['UwHsZk']===undefined){var _0x366612=function(_0x2f8927){const _0x53d1ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x435b9c='',_0x1e1205='';for(let _0x44df08=0x0,_0x556bdf,_0x33c16d,_0x5cbfa8=0x0;_0x33c16d=_0x2f8927['charAt'](_0x5cbfa8++);~_0x33c16d&&(_0x556bdf=_0x44df08%0x4?_0x556bdf*0x40+_0x33c16d:_0x33c16d,_0x44df08++%0x4)?_0x435b9c+=String['fromCharCode'](0xff&_0x556bdf>>(-0x2*_0x44df08&0x6)):0x0){_0x33c16d=_0x53d1ce['indexOf'](_0x33c16d);}for(let _0x1f0aa9=0x0,_0x28f469=_0x435b9c['length'];_0x1f0aa9<_0x28f469;_0x1f0aa9++){_0x1e1205+='%'+('00'+_0x435b9c['charCodeAt'](_0x1f0aa9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e1205);};_0xc1ae['DQUxjm']=_0x366612,_0xc1ae['MTHKaZ']={},_0xc1ae['UwHsZk']=!![];}const _0x4ae0a0=_0x5d6093[0x0],_0x5188c3=_0x793101+_0x4ae0a0,_0x3b50f2=_0xc1ae['MTHKaZ'][_0x5188c3];return!_0x3b50f2?(_0xc1aef=_0xc1ae['DQUxjm'](_0xc1aef),_0xc1ae['MTHKaZ'][_0x5188c3]=_0xc1aef):_0xc1aef=_0x3b50f2,_0xc1aef;}function _0x5d60(){const _0x582835=['Ag9VA3m','C2vZC2LVBKLK','u0Lhs0Lmta','AgfZsg9VA3m','mtCZmZG0wKz1tvrz','DgLTzw91Da','yMXVy2S','Bwf0y2HLCG','ChvZAa','nJGYmtq5m3HbyufNuG','BM93','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','Aw5WDxq','CMvQzwn0','mJuXmwH5rejUyG','y29Kzq','BgvUz3rO','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','mJrKB3fXwva','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','B3v0Chv0','B2jZzxj2zxi','mJyWDNzlrKnV','DhjPBq','ywz0zxjuDxjUq29TCgXLDgu','Ag9VA1nWzwnPzMLJt3v0Chv0','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','CgvYBwLZC2LVBKrLy2LZAw9U','y29TBwfUza','tM90AwzPy2f0Aw9U','CMvHC29U','u3rVCa','y2XVC2u','Dg9VBe5HBwu','BwfW','C3rKB3v0','Ag9VAZPoB3rPzMLJyxrPB24','ywz0zxjuB29SuMvZDwX0','mJG5nJq5nvzwBw5LDG','CgfYC2u','zgvUEq','rvbjueu','mZG0ntKZDezlD29M','zgf0yq','Ag9VAZPtDg9W','Ag9VAZPqB3n0vg9VBfvZzq','y3DK','zw52','mJa5ntq4qNzKz0T4','zxjYB3i','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','A2LSBa','C3rHDhvZ','zgvJAxnPB24','BwvZC2fNzq','DgvZDa','z2v0sg9VA3m','mtKYnJyZnMDHA2HRvW','CgfZCW','zw5K','BMfTzq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','nuvJAgLfrq','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','CgLWzq','zw5Kx3r1CM4','nZy1nKPnAfjhqq','C3rKAw4'];_0x5d60=function(){return _0x582835;};return _0x5d60();}function createHookRegistry(_0x5c8355){const _0x5b17ff={_0x5d8ad3:0x11a,_0x4ee350:0x11f,_0x332e93:0x120,_0x1db8ef:0x137,_0x2ec7b9:0x30c,_0x51b9a2:0x304,_0x2a5826:0xde,_0x417b1f:0xee,_0x15c403:0xf6,_0xafd3:0xdc,_0x507da0:0x137,_0x40a5e6:0x13e,_0x232edf:0x125,_0x2a4d3b:0x10b,_0x4bc93e:0xf9,_0x2dc781:0x107},_0x51db85={_0x51424e:0x399},_0x5b95ea={_0x84805b:0x2d6,_0x1ef979:0x2c8},_0x429867={_0x220827:0x360};return{'hasHooks'(_0x372196){function _0x1670ab(_0x189ea7,_0x1a78c4,_0x5b66f8,_0x3033e8){return _0xc1ae(_0x5b66f8- -_0x429867._0x220827,_0x3033e8);}return(_0x5c8355[_0x372196]?.[_0x1670ab(-_0x5b95ea._0x84805b,-_0x5b95ea._0x1ef979,-0x2bb,-0x29f)]??0x0)>0x0;},'getHooks'(_0x31cebf,_0x500e57){const _0x1d0579=_0x5c8355[_0x31cebf];if(!_0x1d0579)return[];function _0x51bc51(_0x507093,_0x248662,_0x8d0e6,_0x36e130){return _0xc1ae(_0x8d0e6-0x83,_0x248662);}const _0x57ab38=[];for(const _0x18aa75 of _0x1d0579){if(!_0x18aa75[_0x51bc51(0x115,0x105,0x11f,_0x5b17ff._0x5d8ad3)]||_0x18aa75[_0x51bc51(0x10d,0x109,_0x5b17ff._0x4ee350,0x13b)]==='*'){_0x57ab38[_0x51bc51(0x13f,0x10a,_0x5b17ff._0x332e93,_0x5b17ff._0x1db8ef)](..._0x18aa75[_0x4aa340(-0x320,-_0x5b17ff._0x2ec7b9,-_0x5b17ff._0x51b9a2,-0x318)][_0x51bc51(_0x5b17ff._0x2a5826,_0x5b17ff._0x417b1f,_0x5b17ff._0x15c403,_0x5b17ff._0xafd3)](_0x356edc=>({'command':_0x356edc[_0x51bc51(0xd8,0xce,0xf0,0x101)],'timeout':_0x356edc[_0x51bc51(0x10d,0x106,0x11d,0x126)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x500e57===void 0x0)continue;const _0x2f8490=new RegExp('^(?:'+_0x18aa75[_0x51bc51(0x11e,_0x5b17ff._0x507da0,_0x5b17ff._0x4ee350,_0x5b17ff._0x40a5e6)]+')$');_0x2f8490[_0x51bc51(0xf3,_0x5b17ff._0x232edf,_0x5b17ff._0x2a4d3b,_0x5b17ff._0x4bc93e)](_0x500e57)&&_0x57ab38['push'](..._0x18aa75['hooks'][_0x51bc51(0x10b,_0x5b17ff._0x2dc781,_0x5b17ff._0x15c403,0xf7)](_0x48e799=>({'command':_0x48e799[_0x51bc51(0x10c,0x110,0xf0,0xf5)],'timeout':_0x48e799[_0x51bc51(0x10b,0x100,0x11d,0x13c)]??DEFAULT_TIMEOUT_S2})));}function _0x4aa340(_0x4b82d9,_0x4837fe,_0x3964d0,_0x39ebcd){return _0xc1ae(_0x3964d0- -_0x51db85._0x51424e,_0x4b82d9);}return _0x57ab38;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
@@ -6,6 +6,7 @@ export * from "./http-transport.ts";
6
6
  export * from "./mock-model.ts";
7
7
  export { USD_TICKS_PER_DOLLAR } from "./model-cost.ts";
8
8
  export * from "./model-limits.ts";
9
+ export * from "./model-pricing.ts";
9
10
  export * from "./model-pricing-products.ts";
10
11
  export * from "./model-registry.ts";
11
12
  export * from "./model-surface-router.ts";