@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +14 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-LXQDGX4K.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BHDQNPHa.d.ts → provider-adapters-Cb5hUJoD.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +177 -6
- package/dist/tools/index.js +1 -1
- package/dist/{types-BueDJWnx.d.ts → types-QPBW5jHO.d.ts} +23 -3
- package/package.json +13 -11
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-EJTTW4JQ.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x349f64,_0x2ca0db){const _0x41ed6d={_0x1db3dc:0x57d,_0x44d547:0x5d0,_0x533877:0x529,_0x49b1bf:0x4e4,_0x423a1f:0x557,_0x5f39f6:0x44a,_0x3ae926:0x3df,_0x36ff49:0x487,_0x3dd4e7:0x546,_0x19ff2b:0x577,_0xf45976:0x59e,_0x4354bd:0x524,_0x92e4e8:0x596},_0x35c5fb={_0xe6c95b:0x367};function _0x3c121a(_0xf8bd62,_0xd320d1,_0x10ed18,_0x319737){return _0x501c(_0x10ed18-_0x35c5fb._0xe6c95b,_0x319737);}function _0x41d2dd(_0x3a9c45,_0x3a005d,_0x3bd665,_0xdc6edf){return _0x501c(_0x3a005d-0x38d,_0xdc6edf);}const _0x40d21b=_0x349f64();while(!![]){try{const _0x387798=parseInt(_0x3c121a(_0x41ed6d._0x1db3dc,_0x41ed6d._0x44d547,_0x41ed6d._0x533877,_0x41ed6d._0x49b1bf))/0x1*(-parseInt(_0x3c121a(0x5c4,0x4ca,_0x41ed6d._0x423a1f,0x604))/0x2)+-parseInt(_0x41d2dd(0x420,0x4dd,0x501,0x557))/0x3+parseInt(_0x41d2dd(0x52b,0x50c,_0x41ed6d._0x5f39f6,0x505))/0x4+-parseInt(_0x41d2dd(0x61b,0x5ad,0x562,0x64c))/0x5+-parseInt(_0x41d2dd(_0x41ed6d._0x3ae926,_0x41ed6d._0x36ff49,0x4a9,0x3e5))/0x6*(-parseInt(_0x41d2dd(0x44b,0x478,0x4f3,0x538))/0x7)+parseInt(_0x3c121a(_0x41ed6d._0x3dd4e7,0x5ec,_0x41ed6d._0x19ff2b,_0x41ed6d._0xf45976))/0x8+parseInt(_0x3c121a(0x580,0x495,_0x41ed6d._0x4354bd,_0x41ed6d._0x92e4e8))/0x9;if(_0x387798===_0x2ca0db)break;else _0x40d21b['push'](_0x40d21b['shift']());}catch(_0x1ed114){_0x40d21b['push'](_0x40d21b['shift']());}}}(_0x5737,0x814cb));import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-C6OLKGP6.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x65d232(0xdd,0x8a,0x15a,0x10f);function parseToolInput(_0x3e0b8a){const _0xc847e6={_0x24a1db:0x5a,_0x580e00:0x30,_0xa49734:0x4a,_0x1a0443:0x4},_0x966e0d={_0x51555b:0x17a};function _0x4c0839(_0x2c6be8,_0x594c2f,_0x294d89,_0x56d0c6){return _0x65d232(_0x2c6be8- -0xba,_0x56d0c6,_0x294d89-_0x966e0d._0x51555b,_0x56d0c6-0x3e);}try{return JSON[_0x4c0839(-_0xc847e6._0x24a1db,-_0xc847e6._0x580e00,-_0xc847e6._0xa49734,_0xc847e6._0x1a0443)](_0x3e0b8a);}catch{return _0x3e0b8a;}}function resolveReasoningVisibility(_0x1dfed9){const _0x2036a5={_0x552341:0x2c7,_0x2ed9bf:0x317,_0x34ae01:0x263,_0x125931:0x34c},_0x4d3355={_0x36d191:0x2bf,_0x4beb5b:0xa5,_0x4cd1b2:0xc5};function _0x383d69(_0x257ace,_0x11af4e,_0x440ffe,_0x5baaf5){return _0x65d232(_0x5baaf5- -0x49,_0x257ace,_0x440ffe-0x180,_0x5baaf5-0x127);}function _0xdc6166(_0x2d73dd,_0x2d3f2d,_0x2e95da,_0x2fe467){return _0x65d232(_0x2e95da- -_0x4d3355._0x36d191,_0x2d3f2d,_0x2e95da-_0x4d3355._0x4beb5b,_0x2fe467-_0x4d3355._0x4cd1b2);}return _0x1dfed9[_0xdc6166(-0x334,-_0x2036a5._0x552341,-0x27a,-_0x2036a5._0x2ed9bf)]?.['visibility']??_0xdc6166(-0x345,-_0x2036a5._0x34ae01,-0x29c,-_0x2036a5._0x125931);}function isUserVisibleThinking(_0x12ab80){const _0x5e48ab={_0x41c88d:0x306,_0x49ef4f:0x37f,_0xbad981:0x4a7},_0x19150f={_0x25db55:0x2b0,_0xbd1c19:0x161,_0x42a858:0x10a},_0x3963f4=resolveAnthropicThinkingConfig(_0x12ab80['reasoning']);function _0x3d1cfd(_0x4e08de,_0x4293ea,_0x4258f2,_0x799aab){return _0x65d232(_0x4258f2-_0x19150f._0x25db55,_0x799aab,_0x4258f2-_0x19150f._0xbd1c19,_0x799aab-_0x19150f._0x42a858);}function _0x32f16d(_0x2c98dd,_0x589640,_0x646aab,_0x3bdf47){return _0x65d232(_0x3bdf47-0x4b7,_0x2c98dd,_0x646aab-0x1f1,_0x3bdf47-0x176);}return _0x3963f4!==void 0x0&&_0x3963f4['type']!==_0x3d1cfd(0x38e,_0x5e48ab._0x41c88d,0x2f9,_0x5e48ab._0x49ef4f)&&resolveReasoningVisibility(_0x12ab80)===_0x32f16d(_0x5e48ab._0xbad981,0x450,0x4b9,0x4da);}function createAnthropicThinkingBody(_0x2e2399){const _0x428bfb={_0xd3732a:0x65,_0x287180:0x91,_0x4bfe5f:0x58,_0x4e2b85:0xaa,_0x20997e:0xf7,_0x48d517:0x41,_0x5221d4:0xc,_0x3a66e4:0x120,_0x4ea79f:0x6c,_0x29ec3d:0xe6,_0x4a93ef:0x23,_0x5b601c:0xd8,_0x4dcde3:0x8a,_0x571b0e:0x7e,_0x70279a:0xd4,_0x369fa6:0xe4,_0x3a8b0d:0xde,_0x52a555:0x94,_0x5b6441:0x4c,_0x1a08af:0x2},_0x4e82f4={_0x178d6a:0x4f,_0x1d42fa:0x197},_0x599611={_0x2f2e0f:0xfc,_0x3b73db:0x14f},_0x4d6d7c=resolveAnthropicThinkingConfig(_0x2e2399[_0x37f49b(-_0x428bfb._0xd3732a,0x8,_0x428bfb._0x287180,_0x428bfb._0x4bfe5f)]);if(!_0x4d6d7c||_0x4d6d7c[_0x37f49b(0x1a,_0x428bfb._0x4e2b85,_0x428bfb._0x20997e,_0x428bfb._0x48d517)]===_0x37f49b(-0x2c,0xc,-0x71,0x7c))return{};const _0x4b034d=_0x4d6d7c[_0x3fc9a7(0x21,0xa5,-0xc8,-0x7)]??(isUserVisibleThinking(_0x2e2399)?'summarized':'omitted');function _0x3fc9a7(_0x583f4f,_0x4a5172,_0x23c1f6,_0xc67a94){return _0x65d232(_0xc67a94- -_0x599611._0x2f2e0f,_0x583f4f,_0x23c1f6-0xbd,_0xc67a94-_0x599611._0x3b73db);}const _0x37bdb9=_0x4d6d7c[_0x37f49b(-0xff,-0x72,_0x428bfb._0x5221d4,-_0x428bfb._0x3a66e4)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x4d6d7c[_0x37f49b(_0x428bfb._0x4ea79f,0xaa,0xd9,0xd3)]===_0x37f49b(0xd5,0x4e,0xf8,_0x428bfb._0x29ec3d))return{..._0x37bdb9?{'headers':_0x37bdb9}:{},'thinking':{'type':_0x3fc9a7(-0x8,_0x428bfb._0x4a93ef,-0xac,-0x71),'budget_tokens':_0x4d6d7c[_0x3fc9a7(-_0x428bfb._0x5b601c,0x34,-_0x428bfb._0x4dcde3,-_0x428bfb._0x571b0e)],'display':_0x4b034d}};function _0x37f49b(_0x43c12a,_0x2d10bb,_0x57b28b,_0x2f656a){return _0x65d232(_0x2d10bb- -0x3d,_0x2f656a,_0x57b28b-_0x4e82f4._0x178d6a,_0x2f656a-_0x4e82f4._0x1d42fa);}return{..._0x37bdb9?{'headers':_0x37bdb9}:{},'thinking':{'type':_0x37f49b(_0x428bfb._0x70279a,_0x428bfb._0x369fa6,0x168,_0x428bfb._0x3a8b0d),..._0x4d6d7c[_0x3fc9a7(-_0x428bfb._0x52a555,-0x8f,_0x428bfb._0x5b6441,-_0x428bfb._0x1a08af)]?{'effort':_0x4d6d7c['effort']}:{},'display':_0x4b034d}};}function toAnthropicRequestContent(_0x92bcc7){const _0x427bd0={_0x59060b:0x1cc,_0x4cc630:0x25f,_0x3a5687:0x31b,_0x411896:0x271,_0x46a5eb:0x20d,_0x6a136:0x1e4,_0x4bd358:0x25a,_0x4f5fa1:0x339,_0x9850d3:0x2b4,_0x5a56e9:0x2c4,_0x27dee9:0x2d5,_0x50fe73:0x263,_0x1417c5:0x307,_0xa43834:0x2e6,_0x52c321:0x2ca,_0xb5985c:0x38d,_0x4edcc9:0x1ca,_0x26f6fa:0x27c,_0x737aef:0x228,_0x50ad91:0x2cb,_0x40d2b3:0x27e,_0x3eec18:0x35d,_0x53016c:0x2c3,_0x224059:0x204,_0x3218f2:0x22e,_0xd33f6f:0x254,_0x30da6f:0x211,_0x2ce233:0x158,_0x3bd60e:0x34d,_0x39e092:0x27b},_0x3ff14e={_0x56883b:0x220,_0x191fd5:0x1f4,_0x12b8cf:0x48},_0xe814f3={_0x169668:0x19f};function _0x4eced5(_0x38faa9,_0x334ed6,_0x35c77c,_0x27398f){return _0x65d232(_0x27398f-0x20f,_0x38faa9,_0x35c77c-0x101,_0x27398f-_0xe814f3._0x169668);}if(_0x92bcc7[_0x863347(_0x427bd0._0x59060b,_0x427bd0._0x4cc630,_0x427bd0._0x3a5687,0x216)]===_0x863347(0x1f3,0x28d,0x33e,_0x427bd0._0x411896)&&_0x92bcc7[_0x4eced5(0x1fe,_0x427bd0._0x46a5eb,_0x427bd0._0x6a136,0x2a3)]?.[_0x4eced5(0x2d5,0x273,0x2d4,_0x427bd0._0x4bd358)])return structuredClone(_0x92bcc7[_0x863347(_0x427bd0._0x4f5fa1,_0x427bd0._0x9850d3,0x2af,0x22f)][_0x863347(_0x427bd0._0x5a56e9,0x26b,0x24e,_0x427bd0._0x27dee9)]);const _0x3fd567=[];for(const _0x38317e of normalizeContent(_0x92bcc7['content'])){if(_0x38317e[_0x863347(_0x427bd0._0x50fe73,_0x427bd0._0x1417c5,_0x427bd0._0xa43834,_0x427bd0._0x52c321)]===_0x863347(0x3ad,0x304,_0x427bd0._0xb5985c,0x353))continue;if(_0x38317e['type']===_0x863347(_0x427bd0._0x4edcc9,_0x427bd0._0x26f6fa,0x1ff,_0x427bd0._0x737aef)){_0x3fd567[_0x4eced5(0x243,_0x427bd0._0x5a56e9,_0x427bd0._0x50ad91,0x2c3)]({'type':'thinking','thinking':_0x38317e['thinking'],'signature':_0x38317e[_0x863347(0x2e6,0x278,0x2ae,_0x427bd0._0x40d2b3)]});continue;}if(_0x38317e[_0x863347(_0x427bd0._0x3eec18,_0x427bd0._0x1417c5,0x2c4,0x3c3)]===_0x863347(0x291,0x248,_0x427bd0._0x53016c,0x20a)){_0x3fd567[_0x4eced5(_0x427bd0._0x224059,_0x427bd0._0x3218f2,_0x427bd0._0xd33f6f,0x2c3)]({'type':_0x863347(0x2ca,_0x427bd0._0x30da6f,_0x427bd0._0x2ce233,0x168),'data':_0x38317e[_0x863347(0x2a1,0x2f2,0x2cc,_0x427bd0._0x3bd60e)]});continue;}_0x3fd567[_0x4eced5(0x349,0x215,_0x427bd0._0x39e092,0x2c3)](structuredClone(_0x38317e));}function _0x863347(_0x2d8286,_0x4d28fd,_0x68ef3b,_0x1a930e){return _0x65d232(_0x4d28fd-_0x3ff14e._0x56883b,_0x2d8286,_0x68ef3b-_0x3ff14e._0x191fd5,_0x1a930e-_0x3ff14e._0x12b8cf);}return _0x3fd567;}function createAnthropicRequest(_0x12b985,_0x4cbc5e){const _0xe2466b={_0x1660e3:0x136,_0x9ead8c:0x77,_0x223e28:0x9,_0x5e33a:0x8e,_0x2bf507:0x3f,_0x5b16d1:0xc9,_0x3ff0c5:0xe3,_0x4771f9:0x24,_0x378fc5:0xa3,_0x15cf59:0xa7,_0x566825:0x34,_0xdccad3:0x4b,_0x7e6546:0xc,_0x269dbd:0x10b},_0x469ab4={_0x28fdde:0x1a0,_0x44ae09:0x63},_0x148e49={_0x1bb94b:0x108};function _0x24e13d(_0x5892bf,_0x1bdb25,_0x41c08c,_0x2b3ee2){return _0x65d232(_0x2b3ee2- -_0x148e49._0x1bb94b,_0x1bdb25,_0x41c08c-0xd0,_0x2b3ee2-0x130);}const _0x567aea=toProviderModelRequest(_0x12b985),_0x385a2b=createAnthropicThinkingBody(_0x12b985);function _0xb6e4ee(_0x387283,_0x41215c,_0xd9c9e7,_0x20f81c){return _0x65d232(_0x20f81c- -_0x469ab4._0x28fdde,_0x41215c,_0xd9c9e7-_0x469ab4._0x44ae09,_0x20f81c-0x52);}return{'accept':_0x4cbc5e?_0xb6e4ee(-_0xe2466b._0x1660e3,-_0xe2466b._0x9ead8c,_0xe2466b._0x223e28,-0x7a):_0x24e13d(-_0xe2466b._0x5e33a,0x22,-0xb,-_0xe2466b._0x2bf507),'body':{..._0x567aea,'messages':_0x12b985[_0xb6e4ee(-_0xe2466b._0x5b16d1,-0x36,-0xa8,-_0xe2466b._0x3ff0c5)][_0x24e13d(-0xca,-0xde,-0x7c,-0x8d)](_0x43c98a=>{return{'role':_0x43c98a['role'],'content':toAnthropicRequestContent(_0x43c98a)};}),..._0x385a2b[_0x24e13d(-_0xe2466b._0x4771f9,-_0xe2466b._0x378fc5,-0x61,-0x34)]?{'thinking':_0x385a2b[_0x24e13d(-0x22,-0x44,-_0xe2466b._0x15cf59,-_0xe2466b._0x566825)]}:{},..._0x4cbc5e?{'stream':!![]}:{}},..._0x385a2b['headers']?{'headers':_0x385a2b[_0xb6e4ee(0x2b,-0x81,_0xe2466b._0xdccad3,-0x67)]}:{},'path':_0x24e13d(-_0xe2466b._0x7e6546,-0xe5,-_0xe2466b._0x269dbd,-0x50)};}function parseAnthropicResponse(_0x258241,_0x1942ee){const _0x264b2d={_0x109755:0x61,_0x2200c8:0xd3,_0x410e66:0x1df,_0x282e6d:0x18a,_0x254031:0x18a,_0x406cad:0x1ff,_0x59818a:0x1b6,_0x4f7e8a:0x257,_0x2b69fb:0x254,_0x140f16:0x2bb,_0x2c70a0:0x104,_0x53ccaa:0x4b,_0x570cd1:0xe9,_0x5aaefe:0x153,_0x4240d6:0x63,_0x1eecf2:0x1cc,_0x124ad0:0x270,_0x47747f:0x263,_0x67b3d1:0xeb,_0x59dcde:0x14f,_0x17be6c:0x105,_0x3491f8:0x2a6,_0x2a8d71:0x1d0,_0x4eeee6:0xb0,_0x3a4c13:0x46,_0x41ee5f:0x50,_0x327e5d:0x27,_0x3bbf55:0x1ba,_0x3bf1d3:0x13e,_0x1709fa:0x14b,_0x188cfb:0x1a1,_0x43a343:0x1ae,_0x3e469b:0xf9,_0x44c13e:0x155,_0x461db5:0x10e,_0x233112:0x51,_0x4384a5:0x205,_0x28b22c:0x17f,_0x59a38e:0x23a,_0x339232:0x205,_0x1ece89:0x17d,_0xf58bad:0x2a5,_0x362227:0x194,_0x3bd9f1:0x1ad,_0x19f5a4:0x147,_0xc1fb94:0x9d},_0x56c2e5={_0x5cd1a9:0x15,_0x5e8921:0x90,_0x187e86:0x5b},_0x304878=[];function _0x3b15b8(_0xbabf0b,_0x40cc81,_0x105ee5,_0x1d8f4a){return _0x65d232(_0x105ee5-_0x56c2e5._0x5cd1a9,_0x40cc81,_0x105ee5-_0x56c2e5._0x5e8921,_0x1d8f4a-_0x56c2e5._0x187e86);}const _0xb2edc4=_0x258241[_0x3b15b8(_0x264b2d._0x109755,_0x264b2d._0x2200c8,0xd3,0xb7)]??[];let _0x2f4480=![];for(const _0x1590d0 of _0xb2edc4){if(_0x1590d0['type']===_0x591e5e(-_0x264b2d._0x410e66,-_0x264b2d._0x282e6d,-0x223,-_0x264b2d._0x254031)){_0x2f4480=!![];isUserVisibleThinking(_0x1942ee)&&_0x304878[_0x591e5e(-_0x264b2d._0x406cad,-0x1fa,-0x298,-_0x264b2d._0x59818a)]({'type':_0x591e5e(-_0x264b2d._0x4f7e8a,-_0x264b2d._0x2b69fb,-_0x264b2d._0x140f16,-0x267),'thinking':_0x1590d0[_0x3b15b8(_0x264b2d._0x2c70a0,_0x264b2d._0x53ccaa,_0x264b2d._0x570cd1,0xd1)],'signature':_0x1590d0[_0x591e5e(-0x25b,-0x295,-0x1ed,-0x23b)]});continue;}if(_0x1590d0[_0x3b15b8(0x9b,0x79,0xfc,_0x264b2d._0x5aaefe)]==='redacted_thinking'){_0x2f4480=!![];isUserVisibleThinking(_0x1942ee)&&_0x304878['push']({'type':_0x591e5e(-0x28b,-0x1d5,-0x2ad,-0x1f2),'data':_0x1590d0[_0x3b15b8(0x26,_0x264b2d._0x4240d6,0xe7,0xf2)]});continue;}if(_0x1590d0[_0x591e5e(-_0x264b2d._0x1eecf2,-0x252,-0x256,-_0x264b2d._0x124ad0)]===_0x591e5e(-0x1a5,-_0x264b2d._0x47747f,-0x18a,-_0x264b2d._0x67b3d1)){_0x1590d0['text'][_0x3b15b8(0xc1,_0x264b2d._0x59dcde,0xfa,_0x264b2d._0x17be6c)]>0x0&&_0x304878[_0x591e5e(-0x1ff,-0x144,-_0x264b2d._0x3491f8,-_0x264b2d._0x2a8d71)](structuredClone(_0x1590d0));continue;}_0x304878[_0x3b15b8(0xc,_0x264b2d._0x4eeee6,0xc9,0xf6)](structuredClone(_0x1590d0));}function _0x591e5e(_0xe952da,_0x1ad07c,_0x2b8d8b,_0x493ddf){return _0x65d232(_0xe952da- -0x2b3,_0x1ad07c,_0x2b8d8b-0x1e8,_0x493ddf-0xd0);}return{'id':_0x258241['id']??_0x3b15b8(_0x264b2d._0x2200c8,-0x7b,_0x264b2d._0x3a4c13,-_0x264b2d._0x41ee5f)+Date['now'](),'content':_0x304878,'stopReason':_0x304878[_0x3b15b8(0x2,0x4,_0x264b2d._0x327e5d,-0x2c)](_0x112d46=>_0x112d46[_0x3b15b8(0x60,0xf7,0xfc,0xcf)]===_0x3b15b8(0xe6,0xc2,0x10e,0xc6))?_0x591e5e(-_0x264b2d._0x3bbf55,-_0x264b2d._0x3bf1d3,-_0x264b2d._0x1709fa,-_0x264b2d._0x188cfb):_0x258241[_0x3b15b8(0x1a8,_0x264b2d._0x43a343,0xf3,_0x264b2d._0x3e469b)]===_0x3b15b8(0x1b5,0x133,0x10e,0x116)?_0x3b15b8(0xb2,_0x264b2d._0x44c13e,_0x264b2d._0x461db5,_0x264b2d._0x233112):'end_turn','usage':{'inputTokens':_0x258241[_0x591e5e(-_0x264b2d._0x4384a5,-_0x264b2d._0x28b22c,-0x22a,-_0x264b2d._0x59a38e)]?.['input_tokens']??0x0,'outputTokens':_0x258241[_0x591e5e(-_0x264b2d._0x339232,-_0x264b2d._0x1ece89,-0x25f,-_0x264b2d._0xf58bad)]?.[_0x3b15b8(_0x264b2d._0x362227,_0x264b2d._0x3bd9f1,_0x264b2d._0x19f5a4,_0x264b2d._0xc1fb94)]??0x0},..._0x2f4480?{'providerState':{'anthropicAssistantContent':structuredClone(_0xb2edc4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x65d232(0x11b,0xae,0xa0,0x188)]=new Map();[_0x65d232(-0x1b,-0x50,0x2c,-0x4)]=0x0;['messageId']=_0x65d232(0x31,0x86,-0x35,0x37)+Date[_0x65d232(0x4e,0x71,-0x2e,-0x1f)]();['outputTokens']=0x0;[_0x65d232(-0x14,-0xae,-0x4a,0x32)];['stopReason']='end_turn';constructor(_0x3bfa7e){const _0x311d6e={_0x1e42b2:0x231,_0xbc280b:0x28c},_0x41bb23={_0x3d7955:0x5d,_0x116d9c:0x1d3};function _0x7f2b4c(_0x3fab74,_0x1019c5,_0x355fdf,_0x413fb1){return _0x3c7c8d(_0x1019c5-_0x41bb23._0x3d7955,_0x1019c5-_0x41bb23._0x116d9c,_0x355fdf-0x2a,_0x3fab74);}this[_0x7f2b4c(0x23c,0x2c1,_0x311d6e._0x1e42b2,_0x311d6e._0xbc280b)]=_0x3bfa7e;}[_0x3c7c8d(0x32b,0x33f,0x3e7,0x3cf)](_0x407c4d){const _0x3cd51c={_0x5203fa:0x3b6,_0x2fd5f4:0x448,_0x2ae07a:0x462,_0x55eabe:0x261,_0x555303:0x299,_0x23b18d:0x21f,_0x1d8016:0x2fa,_0x19ad2a:0x3da,_0x26ba41:0x30e,_0x1128fb:0x142,_0x43712f:0x4a9,_0x5683bb:0x251,_0x492183:0x300,_0x4b73ad:0x346,_0x365edb:0x1a4,_0x48b7d9:0x150,_0x10b357:0x3b2,_0x53d05c:0x394,_0x3e85c9:0x42b,_0x5528aa:0x3d2,_0x51b7e0:0x367,_0x311280:0x37d,_0x2b96d0:0x23b,_0x9b459a:0x1da,_0x217f8e:0x268,_0x3c5ce9:0x2b9,_0x45a1b1:0x183,_0x47a6d2:0x225,_0x4b23c6:0x377,_0x48d045:0x317,_0x57c4c4:0x286,_0x2a24dc:0x38c,_0x103fde:0x2f8,_0x178d3c:0x39c,_0x5007ad:0x2d6,_0x47af65:0x280,_0x388c37:0x333,_0x3d3d34:0x340,_0x353ff7:0x43,_0x2e9db0:0xa8,_0x5a560d:0x342,_0x751fb3:0x2be,_0x3edea4:0x2fb,_0x10463f:0x362,_0xb8681d:0x135,_0x5d7ad4:0x210,_0x4fc38b:0x54,_0x2ddd77:0x121,_0x39f5b4:0x113,_0x1736ae:0x155,_0x2458ad:0x191,_0x52c1dc:0x1e4,_0x4475f7:0x24f,_0x3578b4:0x1b7,_0x40c2d0:0x1c4,_0x454700:0xe2,_0x227348:0x209,_0x552ce2:0x162,_0x157467:0xb2,_0x12fff6:0x1a8,_0x46047b:0x12f,_0x43d7c4:0x271,_0x3ce54f:0x147,_0x4c8e6d:0x3e1,_0x45bbbb:0x469,_0x1e8e09:0x1d5,_0x5682fc:0x15a,_0x40897c:0x387,_0x347212:0x3fa,_0x1f99f8:0x345,_0x5af668:0x495,_0x370c87:0x424,_0x5d750a:0x354,_0x436a5d:0x388,_0x12f5cb:0x303,_0x2dca40:0x1fe,_0x256a64:0x3cf,_0x39745b:0x32d,_0x2e3b1d:0x36b,_0x172508:0x421,_0x5aa6aa:0x2cd,_0x3d039e:0x31c,_0x442613:0x199,_0x556dc6:0xba,_0x3bb585:0x19c,_0x3fd6ef:0x270,_0x241161:0x225,_0x5ee4a9:0x1e7,_0x33bf47:0x9a,_0x3f2ab:0x23d,_0x292bcf:0x3d5,_0x453e13:0x378,_0x53969d:0x3b0,_0x48c039:0x375,_0x2fe60d:0x1da,_0x5d239c:0x3b5,_0x5a4ca6:0x3e5,_0x586115:0x312,_0x2384e9:0x2a2,_0x4672c3:0x3c9,_0x19cc55:0x130,_0x59d89d:0x3eb,_0x25e429:0x371,_0x36c234:0xde,_0xad1656:0x120,_0xea8c89:0x1e9,_0x3c4928:0x246,_0x33ed2a:0x284,_0x5c4e0d:0x314,_0x16dde8:0x316,_0x4dc875:0x2ef,_0x101bde:0x1a5,_0xb6e622:0xcb,_0xda3785:0x19b,_0x28b806:0x124,_0x264695:0x420,_0x147af9:0x44e,_0x1a0e22:0xcc,_0x2f392a:0x106,_0x3720c4:0x45f,_0x28392c:0x458,_0x236a9e:0x3ed,_0x78996e:0x438,_0x3826da:0x35d,_0x4d1490:0x3c0,_0x2876da:0x288,_0x5cdaac:0x2e1,_0x1cd82e:0x371,_0x5a743d:0x40c,_0xedbbee:0x4a4,_0xe6ba9b:0x3c3,_0xc9e159:0x1db,_0x5f598f:0x2d1,_0x381302:0x2e0,_0x1c6d5b:0x161,_0x5c5922:0x42e,_0x3d73ac:0x2b0,_0x91b50c:0x26c,_0x590add:0x271,_0x4f7d47:0x3e0,_0x234419:0x3b7,_0x3b27bb:0x457,_0x192722:0xa3,_0x449f08:0x114,_0xeda11c:0x3b8,_0x204d84:0x287,_0x3eabbf:0x386,_0x430e9c:0x149,_0x148169:0x3b6,_0xaba65d:0x8d,_0x329fdb:0x147,_0xb35522:0x19f,_0x5c4c55:0x1ee,_0x4acc13:0x12b,_0x6cb2ee:0x169,_0x89730e:0x16a,_0x1372b4:0x225,_0x115a4b:0x1da,_0x53c90e:0x1d6,_0x9b03d3:0x366,_0x30288f:0x3e9,_0x243f74:0x343,_0x2dca66:0x2d0,_0x5a11ff:0x2b2,_0x1a3b4f:0x2c5,_0x47e60c:0xf8,_0x2cfd94:0x1e5,_0x338900:0x180,_0x56fff0:0x36a,_0x379ded:0x329,_0x223307:0x398,_0x111fae:0x445,_0xace202:0x505,_0x47838d:0x2dd,_0x2794b5:0x2a9,_0x2e3d10:0x18c,_0x520e43:0x1cd,_0x4466d7:0xe5,_0x54f5e1:0x462,_0x41b7c1:0x451,_0x5dc956:0x18a,_0x2fee6b:0x135,_0x5ecfa1:0x488,_0x42304b:0x395,_0x4b41a1:0x41a,_0x5e5a97:0x405,_0x1897d7:0x3ac,_0x11f750:0x25b},_0x4f1985={_0x58507b:0x4a6},_0x2fa245={_0xa06f39:0x3a},_0x1b41ee=_0x407c4d[_0x46b4ed(_0x3cd51c._0x5203fa,0x3b5,0x3ce,0x3b8)]('\x0a'),_0x9f2b5b=_0x1b41ee[_0x46b4ed(0x3b6,0x4c6,_0x3cd51c._0x2fd5f4,_0x3cd51c._0x2ae07a)](_0x34acc9=>_0x34acc9[_0x46b4ed(0x356,0x31a,0x32c,0x2ab)](_0x46b4ed(0x2bb,0x2b2,0x31d,0x2ac)))?.[_0x4196df(-0x22a,-0x1cd,-0x10a,-0x18d)](0x6)[_0x4196df(-0x1f5,-0x2bc,-0x249,-_0x3cd51c._0x55eabe)](),_0x4cdafd=_0x1b41ee[_0x4196df(-0x1d7,-_0x3cd51c._0x555303,-0x292,-_0x3cd51c._0x23b18d)](_0x22f443=>_0x22f443['startsWith'](_0x46b4ed(0x38d,0x313,0x387,0x3ec)))[_0x46b4ed(_0x3cd51c._0x1d8016,_0x3cd51c._0x19ad2a,0x38e,_0x3cd51c._0x26ba41)](_0x16b129=>_0x16b129[_0x46b4ed(0x467,0x320,0x3b4,0x362)](0x5)[_0x4196df(-0x1c5,-0x1da,-0x205,-0x26f)]())[_0x4196df(-0x1ba,-0x93,-0xc0,-_0x3cd51c._0x1128fb)]('\x0a')['trim']();if(_0x4cdafd[_0x46b4ed(0x346,0x408,0x3f8,_0x3cd51c._0x43712f)]===0x0||_0x4cdafd===_0x46b4ed(_0x3cd51c._0x5683bb,_0x3cd51c._0x492183,0x2d3,_0x3cd51c._0x4b73ad))return[];function _0x46b4ed(_0x14182f,_0x342201,_0x455cfa,_0x4e1d20){return _0x65d232(_0x455cfa-0x313,_0x342201,_0x455cfa-_0x2fa245._0xa06f39,_0x4e1d20-0x39);}function _0x4196df(_0x14b598,_0x211720,_0xac5b86,_0x354514){return _0x3c7c8d(_0x354514- -_0x4f1985._0x58507b,_0x211720-0xd7,_0xac5b86-0x39,_0x211720);}const _0x3bad6a=JSON[_0x4196df(-_0x3cd51c._0x365edb,-_0x3cd51c._0x48b7d9,-0x1fa,-0x1ce)](_0x4cdafd);switch(_0x9f2b5b){case _0x46b4ed(_0x3cd51c._0x10b357,0x2dd,0x33d,0x3b9):{const _0x42e443=_0x3bad6a[_0x46b4ed(0x3df,_0x3cd51c._0x53d05c,_0x3cd51c._0x3e85c9,0x381)];this[_0x46b4ed(0x30c,_0x3cd51c._0x5528aa,_0x3cd51c._0x51b7e0,_0x3cd51c._0x311280)]=_0x42e443?.['id']??this[_0x4196df(-_0x3cd51c._0x2b96d0,-0x21a,-0x1fc,-_0x3cd51c._0x9b459a)],this[_0x4196df(-_0x3cd51c._0x217f8e,-0x231,-_0x3cd51c._0x3c5ce9,-0x249)]=_0x42e443?.[_0x4196df(-_0x3cd51c._0x45a1b1,-0x239,-_0x3cd51c._0x47a6d2,-0x180)]?.[_0x46b4ed(_0x3cd51c._0x4b23c6,0x2e4,_0x3cd51c._0x48d045,_0x3cd51c._0x57c4c4)]??this[_0x46b4ed(0x390,_0x3cd51c._0x2a24dc,_0x3cd51c._0x103fde,0x3a5)];break;}case _0x46b4ed(_0x3cd51c._0x178d3c,_0x3cd51c._0x5007ad,0x38b,0x428):{const _0x44d6c5=typeof _0x3bad6a[_0x46b4ed(_0x3cd51c._0x47af65,_0x3cd51c._0x388c37,0x2fb,_0x3cd51c._0x3d3d34)]===_0x4196df(-_0x3cd51c._0x353ff7,-0x93,-_0x3cd51c._0x2e9db0,-0xf6)?_0x3bad6a[_0x46b4ed(_0x3cd51c._0x5a560d,_0x3cd51c._0x751fb3,_0x3cd51c._0x3edea4,_0x3cd51c._0x10463f)]:0x0,_0x563a54=_0x3bad6a['content_block'];if(_0x563a54?.['type']===_0x4196df(-0x108,-0x132,-0x7b,-_0x3cd51c._0xb8681d)&&_0x563a54['id']&&_0x563a54[_0x4196df(-0x23b,-_0x3cd51c._0x5d7ad4,-0x1af,-0x1ca)])return this[_0x4196df(-_0x3cd51c._0x4fc38b,-_0x3cd51c._0x2ddd77,-0x19b,-_0x3cd51c._0x39f5b4)][_0x4196df(-0x214,-0x113,-_0x3cd51c._0x1736ae,-_0x3cd51c._0x2458ad)](_0x44d6c5,{'id':_0x563a54['id'],'index':_0x44d6c5,'inputJson':JSON['stringify'](_0x563a54[_0x4196df(-_0x3cd51c._0x52c1dc,-_0x3cd51c._0x4475f7,-_0x3cd51c._0x3578b4,-0x268)]??{}),'kind':_0x4196df(-_0x3cd51c._0x40c2d0,-_0x3cd51c._0x454700,-0xb9,-0x135),'name':_0x563a54[_0x4196df(-0x19e,-_0x3cd51c._0x227348,-0x1d8,-0x1ca)]}),[{'type':_0x4196df(-_0x3cd51c._0x552ce2,-_0x3cd51c._0x157467,-_0x3cd51c._0x12fff6,-_0x3cd51c._0x46047b),'id':_0x563a54['id'],'index':_0x44d6c5,'name':_0x563a54[_0x4196df(-0x1e6,-_0x3cd51c._0x43d7c4,-_0x3cd51c._0x3ce54f,-0x1ca)]}];if(_0x563a54?.[_0x46b4ed(_0x3cd51c._0x4c8e6d,0x3e4,0x3fa,_0x3cd51c._0x45bbbb)]===_0x4196df(-_0x3cd51c._0x1e8e09,-0x15e,-0x1b4,-_0x3cd51c._0x5682fc)){this[_0x46b4ed(_0x3cd51c._0x40897c,0x488,0x42e,0x463)][_0x46b4ed(_0x3cd51c._0x347212,0x3b9,0x3b0,_0x3cd51c._0x1f99f8)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x46b4ed(_0x3cd51c._0x5af668,_0x3cd51c._0x370c87,0x3e7,_0x3cd51c._0x5d750a),'signature':typeof _0x563a54[_0x46b4ed(_0x3cd51c._0x436a5d,0x3e5,0x36b,_0x3cd51c._0x12f5cb)]===_0x4196df(-0x2a9,-0x192,-_0x3cd51c._0x2dca40,-_0x3cd51c._0x47a6d2)?_0x563a54[_0x46b4ed(_0x3cd51c._0x256a64,_0x3cd51c._0x39745b,_0x3cd51c._0x2e3b1d,0x362)]:'','thinking':typeof _0x563a54[_0x46b4ed(0x3e7,0x40b,_0x3cd51c._0x172508,0x3e6)]===_0x46b4ed(0x28d,_0x3cd51c._0x5aa6aa,_0x3cd51c._0x3d039e,_0x3cd51c._0x5a560d)?_0x563a54[_0x4196df(-_0x3cd51c._0x442613,-_0x3cd51c._0x556dc6,-0x75,-0x120)]:typeof _0x563a54['thinking']===_0x4196df(-_0x3cd51c._0x3bb585,-0x22a,-_0x3cd51c._0x3fd6ef,-_0x3cd51c._0x241161)?String(_0x563a54[_0x4196df(-0x1be,-0xe7,-_0x3cd51c._0x5ee4a9,-_0x3cd51c._0x5682fc)]):''});break;}if(_0x563a54?.[_0x4196df(-_0x3cd51c._0x33bf47,-0x18a,-0xd4,-_0x3cd51c._0x3ce54f)]===_0x4196df(-0x280,-0x261,-0x209,-_0x3cd51c._0x3f2ab)){this['blocks'][_0x46b4ed(_0x3cd51c._0x292bcf,_0x3cd51c._0x453e13,_0x3cd51c._0x53969d,_0x3cd51c._0x48c039)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x4196df(-_0x3cd51c._0x2fe60d,-_0x3cd51c._0x43d7c4,-0x1d0,-0x23d),'data':typeof _0x563a54[_0x46b4ed(0x33b,_0x3cd51c._0x5d239c,_0x3cd51c._0x5a4ca6,0x41e)]===_0x46b4ed(_0x3cd51c._0x586115,_0x3cd51c._0x2384e9,0x31c,_0x3cd51c._0x4672c3)?String(_0x563a54['data']):''});break;}this[_0x4196df(-0xc5,-0x113,-0x18e,-0x113)][_0x4196df(-_0x3cd51c._0x19cc55,-0x207,-0x120,-0x191)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x46b4ed(_0x3cd51c._0x59d89d,_0x3cd51c._0x25e429,0x421,0x3dc),'text':_0x563a54?.[_0x4196df(-0x104,-_0x3cd51c._0x36c234,-0x19f,-_0x3cd51c._0xad1656)]??''});break;}case _0x4196df(-0x155,-0x1b5,-0x16c,-0x185):{const _0x5013c5=typeof _0x3bad6a[_0x4196df(-0x22d,-_0x3cd51c._0xea8c89,-0x29c,-_0x3cd51c._0x3c4928)]==='number'?_0x3bad6a[_0x46b4ed(_0x3cd51c._0x33ed2a,0x374,_0x3cd51c._0x3edea4,_0x3cd51c._0x5c4e0d)]:0x0,_0x3e6204=this['blocks'][_0x46b4ed(0x2c5,0x383,0x305,0x2dc)](_0x5013c5),_0x3f434e=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x16dde8,0x33a,_0x3cd51c._0x4dc875,0x299)];if(!_0x3e6204||!_0x3f434e?.[_0x4196df(-_0x3cd51c._0x101bde,-_0x3cd51c._0xb6e622,-_0x3cd51c._0xda3785,-0x147)])break;if(_0x3f434e[_0x4196df(-0x1a3,-_0x3cd51c._0x28b806,-0x16a,-0x147)]===_0x46b4ed(_0x3cd51c._0x4b23c6,_0x3cd51c._0x264695,0x3cc,_0x3cd51c._0x147af9)&&_0x3e6204['kind']===_0x4196df(-_0x3cd51c._0x3ce54f,-_0x3cd51c._0x1a0e22,-_0x3cd51c._0x2f392a,-_0x3cd51c._0xad1656)&&typeof _0x3f434e[_0x46b4ed(_0x3cd51c._0x3720c4,_0x3cd51c._0x28392c,0x421,0x3c6)]==='string')return _0x3e6204['text']+=_0x3f434e[_0x46b4ed(0x41e,_0x3cd51c._0x236a9e,0x421,_0x3cd51c._0x78996e)],[{'type':_0x46b4ed(0x324,_0x3cd51c._0x292bcf,_0x3cd51c._0x3826da,_0x3cd51c._0x4d1490),'index':_0x5013c5,'text':_0x3f434e[_0x4196df(-0xf5,-0x1c3,-0xce,-_0x3cd51c._0xad1656)]}];if(_0x3f434e['type']==='input_json_delta'&&_0x3e6204[_0x4196df(-_0x3cd51c._0x2876da,-_0x3cd51c._0x5cdaac,-0x24f,-_0x3cd51c._0x43d7c4)]===_0x46b4ed(_0x3cd51c._0x1cd82e,0x42b,_0x3cd51c._0x5a743d,_0x3cd51c._0xedbbee)&&typeof _0x3f434e[_0x46b4ed(0x3dc,_0x3cd51c._0xe6ba9b,0x3e0,0x3fa)]===_0x4196df(-_0x3cd51c._0x5cdaac,-0x2d3,-_0x3cd51c._0xc9e159,-0x225))return _0x3e6204['inputJson']==='{}'&&(_0x3e6204['inputJson']=''),_0x3e6204[_0x4196df(-_0x3cd51c._0x3c5ce9,-_0x3cd51c._0x5f598f,-_0x3cd51c._0x381302,-0x244)]+=_0x3f434e[_0x4196df(-0x214,-0x1b6,-0x152,-_0x3cd51c._0x1c6d5b)],[{'type':'tool_use_delta','id':_0x3e6204['id'],'index':_0x5013c5,'inputDelta':_0x3f434e[_0x46b4ed(0x3ec,_0x3cd51c._0x5c5922,0x3e0,0x463)]}];if(_0x3f434e['type']==='thinking_delta'&&_0x3e6204[_0x4196df(-_0x3cd51c._0x3d73ac,-0x1d8,-_0x3cd51c._0x91b50c,-_0x3cd51c._0x590add)]===_0x46b4ed(_0x3cd51c._0x4f7d47,_0x3cd51c._0x234419,0x3e7,_0x3cd51c._0x3b27bb)){const _0x254b22=typeof _0x3f434e[_0x4196df(-_0x3cd51c._0x192722,-_0x3cd51c._0x9b459a,-_0x3cd51c._0x449f08,-0x15a)]===_0x46b4ed(_0x3cd51c._0xeda11c,_0x3cd51c._0x204d84,0x31c,_0x3cd51c._0x3eabbf)?String(_0x3f434e[_0x46b4ed(0x397,0x340,0x3e7,0x454)]):'';if(_0x254b22[_0x4196df(-0xf9,-0x200,-0x1b6,-_0x3cd51c._0x430e9c)]>0x0){_0x3e6204['thinking']+=_0x254b22;if(isUserVisibleThinking(this['request']))return[{'type':_0x46b4ed(0x41d,_0x3cd51c._0x5528aa,_0x3cd51c._0x5203fa,_0x3cd51c._0x148169),'index':_0x5013c5,'thinking':_0x254b22}];}}if(_0x3f434e[_0x4196df(-_0x3cd51c._0xaba65d,-0x19d,-0x17e,-_0x3cd51c._0x329fdb)]===_0x4196df(-0xa5,-_0x3cd51c._0xb35522,-0x164,-0x126)&&_0x3e6204['kind']===_0x4196df(-0x194,-_0x3cd51c._0x5c4c55,-0x1a2,-0x15a)){const _0x375a26=typeof _0x3f434e[_0x4196df(-0x234,-_0x3cd51c._0x4acc13,-_0x3cd51c._0x6cb2ee,-0x1d6)]===_0x4196df(-0x29d,-_0x3cd51c._0x5683bb,-_0x3cd51c._0x89730e,-_0x3cd51c._0x1372b4)?String(_0x3f434e[_0x4196df(-_0x3cd51c._0x115a4b,-0x253,-0x1e7,-_0x3cd51c._0x53c90e)]):'';if(_0x375a26[_0x46b4ed(0x399,_0x3cd51c._0x9b03d3,0x3f8,0x35a)]>0x0){_0x3e6204['signature']=_0x375a26;if(isUserVisibleThinking(this['request']))return[{'type':_0x46b4ed(_0x3cd51c._0x30288f,0x323,_0x3cd51c._0x243f74,_0x3cd51c._0x5f598f),'index':_0x5013c5,'signature':_0x375a26}];}}break;}case'message_delta':{const _0x5c4141=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x2dca66,_0x3cd51c._0x5a11ff,0x2ef,_0x3cd51c._0x1a3b4f)],_0x5986eb=_0x3bad6a[_0x4196df(-0xca,-_0x3cd51c._0x47e60c,-_0x3cd51c._0x2cfd94,-_0x3cd51c._0x338900)];this[_0x46b4ed(_0x3cd51c._0x56fff0,0x328,_0x3cd51c._0x379ded,0x271)]=_0x5986eb?.[_0x46b4ed(_0x3cd51c._0x223307,0x491,_0x3cd51c._0x111fae,_0x3cd51c._0xace202)]??this[_0x46b4ed(_0x3cd51c._0x47838d,0x3b2,0x329,_0x3cd51c._0x2794b5)],this[_0x4196df(-_0x3cd51c._0x2e3d10,-0x196,-0x1b9,-_0x3cd51c._0x520e43)]=_0x5c4141?.[_0x4196df(-_0x3cd51c._0x4466d7,-0x10d,-0xd9,-0x150)]===_0x46b4ed(0x39c,_0x3cd51c._0x54f5e1,0x40c,_0x3cd51c._0x41b7c1)?_0x4196df(-0x92,-0xaa,-_0x3cd51c._0x5dc956,-_0x3cd51c._0x2fee6b):'end_turn';break;}case _0x46b4ed(_0x3cd51c._0x5ecfa1,_0x3cd51c._0x42304b,0x420,_0x3cd51c._0x4b41a1):{const _0x3f742f=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x5e5a97,_0x3cd51c._0x1897d7,_0x3cd51c._0x264695,0x3fd)];throw new Error(_0x3f742f?.[_0x4196df(-0x7f,-0x126,-0xdf,-0x116)]??_0x4196df(-0x104,-_0x3cd51c._0x5682fc,-_0x3cd51c._0x11f750,-0x1aa));}}return[];}[_0x65d232(0x10b,0x179,0x1aa,0x1c5)](){const _0x39238d={_0x398d67:0x501,_0x11b127:0x482,_0x21540c:0x64c,_0x1b657c:0x4ee,_0x41d8f9:0x506,_0x1306d1:0x402,_0x39e9e3:0x41a,_0x1d0772:0x410,_0x2559c9:0x442,_0x73218:0x3e7,_0x3730f4:0x3b6,_0x2aaa89:0x438,_0x4ce351:0x32b,_0x46e416:0x662,_0x29d1bc:0x5bf,_0x280885:0x630,_0x4b6e9b:0x3a9,_0x22ed20:0x34f,_0xa41395:0x251,_0x218722:0x38d,_0x24e1d6:0x42e,_0xd05b2c:0x43f,_0x41b628:0x433,_0x2080c4:0x3a6,_0x2777a8:0x3d6,_0x3597c7:0x497,_0x2898ba:0x35a,_0x4645bf:0x3d2,_0x174aeb:0x495,_0x1978cf:0x50e,_0x1630b3:0x532,_0x34b89d:0x282,_0x406faa:0x583,_0x15c190:0x5d6,_0x25522b:0x665,_0x1dd1a2:0x5aa,_0x31d8a0:0x49b,_0x2d9627:0x3e7,_0x7ed332:0x337,_0x240c3e:0x480,_0x4542d9:0x4a4,_0x129a74:0x505,_0x2d7087:0x32e,_0x3964bf:0x36f,_0x887c97:0x3e3,_0x19926a:0x512,_0x818c15:0x584,_0xf5b9ef:0x229,_0x2ca7d6:0x2e7,_0x3ccc82:0x2ee,_0xe3a384:0x3a9},_0x40ada0={_0x28c709:0x239,_0xef67f5:0x66,_0x416e98:0x110},_0x5bf140={_0x1fb81d:0x8a,_0x1b6d72:0x1c3,_0x1e42c3:0x44};function _0x2e7476(_0x56afe6,_0x1f0f8b,_0x4357aa,_0x52d95d){return _0x3c7c8d(_0x1f0f8b-_0x5bf140._0x1fb81d,_0x1f0f8b-_0x5bf140._0x1b6d72,_0x4357aa-_0x5bf140._0x1e42c3,_0x4357aa);}const _0x13f0d6=Array[_0x19a437(0x466,0x559,_0x39238d._0x398d67,_0x39238d._0x11b127)](this[_0x19a437(_0x39238d._0x21540c,0x609,0x5cc,0x596)][_0x19a437(_0x39238d._0x1b657c,0x5d2,0x567,_0x39238d._0x41d8f9)]())[_0x2e7476(0x485,_0x39238d._0x1306d1,_0x39238d._0x39e9e3,0x479)]((_0xeaf212,_0x5985a2)=>_0xeaf212[_0x19a437(0x444,0x4c4,0x499,0x47f)]-_0x5985a2['index']),_0x50057f=[];function _0x19a437(_0x5df83c,_0x56244b,_0xeb6cb,_0xd04193){return _0x3c7c8d(_0xeb6cb-_0x40ada0._0x28c709,_0x56244b-_0x40ada0._0xef67f5,_0xeb6cb-_0x40ada0._0x416e98,_0x5df83c);}for(const _0x1d0ffb of _0x13f0d6){if(_0x1d0ffb['kind']==='text'){_0x1d0ffb[_0x2e7476(0x3f0,_0x39238d._0x1d0772,0x489,_0x39238d._0x2559c9)][_0x2e7476(0x3a2,_0x39238d._0x73218,0x3ec,0x3ec)]>0x0&&_0x50057f[_0x2e7476(0x346,_0x39238d._0x3730f4,_0x39238d._0x2aaa89,_0x39238d._0x4ce351)]({'type':_0x19a437(0x565,_0x39238d._0x46e416,_0x39238d._0x29d1bc,_0x39238d._0x280885),'text':_0x1d0ffb[_0x2e7476(0x390,0x410,_0x39238d._0x4b6e9b,0x3c6)]});continue;}if(_0x1d0ffb[_0x2e7476(_0x39238d._0x22ed20,0x2bf,0x248,_0x39238d._0xa41395)]===_0x2e7476(0x48f,0x3d6,_0x39238d._0x218722,_0x39238d._0x24e1d6)){_0x50057f[_0x2e7476(_0x39238d._0xd05b2c,_0x39238d._0x3730f4,0x30d,_0x39238d._0x41b628)]({'type':_0x2e7476(_0x39238d._0x2080c4,_0x39238d._0x2777a8,0x3eb,_0x39238d._0x3597c7),'thinking':_0x1d0ffb['thinking'],'signature':_0x1d0ffb[_0x2e7476(0x2a1,_0x39238d._0x2898ba,0x2d5,0x345)]});continue;}if(_0x1d0ffb[_0x19a437(0x4f4,0x4fb,0x46e,_0x39238d._0x4645bf)]===_0x19a437(_0x39238d._0x174aeb,_0x39238d._0x1978cf,0x4a2,_0x39238d._0x1630b3)){_0x50057f[_0x2e7476(0x372,0x3b6,0x446,0x33c)]({'type':_0x2e7476(0x324,0x2f3,0x347,_0x39238d._0x34b89d),'data':_0x1d0ffb[_0x19a437(0x5bf,0x50f,_0x39238d._0x406faa,_0x39238d._0x15c190)]});continue;}_0x50057f['push']({'type':_0x19a437(0x5d8,_0x39238d._0x25522b,_0x39238d._0x1dd1a2,0x54e),'id':_0x1d0ffb['id'],'name':_0x1d0ffb['name'],'input':parseToolInput(_0x1d0ffb[_0x19a437(0x425,0x472,_0x39238d._0x31d8a0,0x466)][_0x2e7476(0x3fd,_0x39238d._0x2d9627,_0x39238d._0x7ed332,0x417)]>0x0?_0x1d0ffb['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x19a437(_0x39238d._0x240c3e,_0x39238d._0x4542d9,_0x39238d._0x129a74,0x4a3)],'type':'message','role':_0x2e7476(_0x39238d._0x2d7087,_0x39238d._0x3964bf,_0x39238d._0x887c97,0x3ee),'content':_0x50057f,'stop_reason':this[_0x19a437(0x50b,0x472,_0x39238d._0x19926a,_0x39238d._0x818c15)],'stop_sequence':null,'usage':{'input_tokens':this[_0x2e7476(_0x39238d._0xf5b9ef,_0x39238d._0x2ca7d6,0x22f,0x228)],'output_tokens':this['outputTokens']}},this[_0x2e7476(0x343,_0x39238d._0x3ccc82,_0x39238d._0xe3a384,0x22d)]);}};function createAnthropicSurfaces(){const _0x463b6a={_0xd6dc6:0x4df,_0x35724b:0x4fe,_0x5f38e2:0x46c},_0xc19999={_0x2c86c6:0x43f,_0x3c2297:0x1e3};function _0x3390d2(_0xc01733,_0x4ab471,_0x5084ce,_0x59e2ed){return _0x65d232(_0x5084ce-_0xc19999._0x2c86c6,_0x59e2ed,_0x5084ce-_0xc19999._0x3c2297,_0x59e2ed-0x100);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3390d2(_0x463b6a._0xd6dc6,_0x463b6a._0x35724b,_0x463b6a._0x5f38e2,0x467),'createRequest'(_0x3ce19c){return createAnthropicRequest(_0x3ce19c,![]);},'parseResponse'(_0x3a70ea,_0x508b2e){return parseAnthropicResponse(_0x3a70ea,_0x508b2e);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x393b94){return createAnthropicRequest(_0x393b94,!![]);},'createStreamParser'(_0x3ce147){return new AnthropicMessagesStreamParser(_0x3ce147);}}];}var StaticModelSurfaceRouter=class{[_0x3c7c8d(0x337,0x3f4,0x322,0x2cb)];[_0x3c7c8d(0x2b5,0x237,0x240,0x248)];constructor(_0x1bb17c){const _0x6fa386={_0x55d543:0xe4,_0x4d05b5:0x251,_0x402ea0:0x341,_0x3a8597:0x26d,_0x46671b:0x13b,_0x4c919a:0x1cd},_0x111119={_0x56a88f:0x55,_0x1992cf:0x8c},_0x23f72e={_0x572ae1:0x207,_0x4e2d2d:0x35};function _0x152989(_0x407e37,_0x3012ba,_0x2a2c6e,_0x5aedac){return _0x65d232(_0x5aedac- -_0x23f72e._0x572ae1,_0x407e37,_0x2a2c6e-0xd3,_0x5aedac-_0x23f72e._0x4e2d2d);}this[_0x152989(-_0x6fa386._0x55d543,-0x125,-0x102,-0x148)]=_0x1bb17c[_0x152989(-_0x6fa386._0x4d05b5,-0x17e,-0x1df,-0x208)];function _0x5c6bfe(_0x502787,_0x55be1c,_0x5e69fd,_0x2c1a7c){return _0x65d232(_0x502787-0x255,_0x2c1a7c,_0x5e69fd-_0x111119._0x56a88f,_0x2c1a7c-_0x111119._0x1992cf);}this[_0x5c6bfe(0x292,0x307,0x316,_0x6fa386._0x402ea0)]=_0x1bb17c[_0x152989(-_0x6fa386._0x3a8597,-_0x6fa386._0x46671b,-0x226,-_0x6fa386._0x4c919a)];}[_0x3c7c8d(0x37d,0x416,0x427,0x2ff)](_0x123599,_0x5bb65b){const _0x2c5a6c={_0x31d09a:0x27c,_0x5e75d1:0x31d,_0x5907d8:0x2ba,_0x4d2257:0x250,_0x2c061c:0x27f,_0x3e2669:0xa4,_0x5a58e0:0x1,_0x4567fc:0x97,_0x35a9ad:0x81,_0x596f4a:0x77},_0x1fd80f={_0x3541cb:0xe1,_0x3a53c9:0xf4},_0x172efe={_0xfeda3d:0x88,_0x49631d:0x137};function _0x3470c0(_0x3a5631,_0x11aadf,_0x5ec0be,_0x4e84de){return _0x65d232(_0x3a5631- -0x2a3,_0x5ec0be,_0x5ec0be-_0x172efe._0xfeda3d,_0x4e84de-_0x172efe._0x49631d);}function _0x305cab(_0x3d20e2,_0x5cd5cc,_0x3a039e,_0xa553b4){return _0x65d232(_0x5cd5cc- -_0x1fd80f._0x3541cb,_0x3a039e,_0x3a039e-_0x1fd80f._0x3a53c9,_0xa553b4-0xcd);}return _0x5bb65b[_0x3470c0(-_0x2c5a6c._0x31d09a,-_0x2c5a6c._0x5e75d1,-_0x2c5a6c._0x5907d8,-0x32e)]===_0x3470c0(-0x269,-_0x2c5a6c._0x4d2257,-_0x2c5a6c._0x2c061c,-0x1ee)?this[_0x305cab(-0x162,-_0x2c5a6c._0x3e2669,-_0x2c5a6c._0x5a58e0,-_0x2c5a6c._0x4567fc)]:this[_0x305cab(-0x5b,-0x22,_0x2c5a6c._0x35a9ad,_0x2c5a6c._0x596f4a)];}};function trimTrailingSlashes(_0x79a0a2){const _0xa39030={_0x4aeadd:0xf9,_0x1855e4:0x47},_0x2a7cc3={_0x587bb8:0x11,_0x600358:0x1bf};function _0x31cab4(_0x22d894,_0x541997,_0xba5e25,_0x2bf365){return _0x3c7c8d(_0x2bf365- -0x345,_0x541997-_0x2a7cc3._0x587bb8,_0xba5e25-_0x2a7cc3._0x600358,_0x541997);}return _0x79a0a2[_0x31cab4(-_0xa39030._0x4aeadd,-0xb4,0x4d,-_0xa39030._0x1855e4)](/\/+$/,'');}function resolveApiCredential(_0x7a8ed4,_0x5304d6){const _0x1a92d8={_0x2b8b4d:0x162,_0x5a8496:0x1d9,_0x4caec7:0x141,_0x2ef3d8:0xe0},_0x5ac44a={_0x4d8e35:0x3cf,_0x4581dd:0x1aa},_0x38d400={_0x922b58:0xf3,_0x4a2481:0xaf};if(_0x5304d6?.[_0x2dcc17(-0xd5,-_0x1a92d8._0x2b8b4d,-0xa9,-0x172)])return _0x5304d6[_0x2dcc17(-_0x1a92d8._0x5a8496,-_0x1a92d8._0x2b8b4d,-_0x1a92d8._0x4caec7,-_0x1a92d8._0x2ef3d8)];function _0x351377(_0x1e9cd3,_0x495cd4,_0xf54824,_0xed7764){return _0x65d232(_0x1e9cd3- -_0x38d400._0x922b58,_0xf54824,_0xf54824-0x1cf,_0xed7764-_0x38d400._0x4a2481);}function _0x2dcc17(_0x553ad9,_0x516517,_0x2dab14,_0x167134){return _0x3c7c8d(_0x516517- -_0x5ac44a._0x4d8e35,_0x516517-_0x5ac44a._0x4581dd,_0x2dab14-0xe3,_0x553ad9);}if(!_0x7a8ed4)return void 0x0;return{'kind':'api-key','value':_0x7a8ed4};}function resolveSessionBaseUrl(_0x419341,_0x545cf7){const _0x30b218={_0x14d0de:0x28f,_0x592a36:0x2a8,_0x400c6c:0x2b3},_0x388143={_0x51a7ec:0x1d7},_0x573c29={_0x401b6f:0x51,_0x87646e:0x17d};function _0x5db376(_0x1a14a1,_0xc53d65,_0x24bb6f,_0x4a683f){return _0x3c7c8d(_0xc53d65- -_0x573c29._0x401b6f,_0xc53d65-0xd9,_0x24bb6f-_0x573c29._0x87646e,_0x24bb6f);}function _0x5433f9(_0x499ccd,_0x45e5c2,_0x21d164,_0xd249b3){return _0x3c7c8d(_0x21d164- -0x4e5,_0x45e5c2-_0x388143._0x51a7ec,_0x21d164-0x1ee,_0xd249b3);}return trimTrailingSlashes(_0x545cf7?.[_0x5433f9(-0x343,-_0x30b218._0x14d0de,-_0x30b218._0x592a36,-0x23e)]?.[_0x5db376(0x2dd,0x285,_0x30b218._0x400c6c,0x1d6)]??_0x419341);}function toErrorMessage(_0x59216a){const _0x541022={_0x1840f0:0x184,_0x387a52:0x266,_0x53a932:0x2b5,_0x26f04d:0x12d,_0xa96404:0x9e,_0xd5a4fb:0x1e3},_0x1871f3={_0x3fa08e:0x245,_0x164806:0x35};if(_0x59216a instanceof Error&&_0x59216a['message'][_0x1274bf(-_0x541022._0x1840f0,-_0x541022._0x387a52,-0x207,-_0x541022._0x53a932)]>0x0)return _0x59216a[_0x51eec4(-0xe1,-0x14b,-_0x541022._0x26f04d,-_0x541022._0xa96404)];function _0x51eec4(_0x36a04b,_0xa87f16,_0x1244bd,_0x4f163b){return _0x65d232(_0x1244bd- -_0x1871f3._0x3fa08e,_0x36a04b,_0x1244bd-0x184,_0x4f163b-_0x1871f3._0x164806);}function _0x1274bf(_0x3a8698,_0x199222,_0x392b5d,_0x371bb3){return _0x3c7c8d(_0x392b5d- -0x564,_0x199222-0x1f0,_0x392b5d-0xe0,_0x3a8698);}return _0x51eec4(-0x12e,-0x1e5,-_0x541022._0xd5a4fb,-0x1dd);}function createDefaultWebSocketFactory(){const _0x1ad336={_0x2830d1:0x3af};return({headers:_0x17ad07,url:_0x2735c1})=>{const _0x4d46de={_0x4ca981:0x232};function _0x207317(_0x51a550,_0x5be0b9,_0x1052e5,_0x186c85){return _0x501c(_0x1052e5-_0x4d46de._0x4ca981,_0x5be0b9);}const _0x4d77b6=globalThis[_0x207317(0x430,0x310,0x37a,_0x1ad336._0x2830d1)];return new _0x4d77b6(_0x2735c1,{'headers':_0x17ad07,'protocols':[]});};}async function*iterateSseEvents(_0x69bc8e,_0x3bf236){const _0x2c1f8c={_0x2477c1:0x47a,_0x4ec687:0x89,_0x5e6866:0x3ce,_0xf7bdcc:0x429,_0x3fedbe:0x397,_0x5fece5:0x55,_0x5f1661:0x66,_0x4b53fa:0x378,_0x41ec70:0x59,_0x1d3b85:0xf,_0x5752b3:0x10,_0x19d6dc:0x55,_0x5b73a7:0x36e,_0x6569e:0x3a0},_0x1e4a3a={_0x3466fa:0x139},_0x1f98dc={_0x407314:0x15b,_0x29ab16:0x196,_0x3b2d7b:0x1db},_0x4a9fa1={_0xbe1494:0x25};function _0x34b82a(_0x404a42,_0x18a147,_0x4554bb,_0x29fd61){return _0x65d232(_0x4554bb- -0x8c,_0x29fd61,_0x4554bb-0xd0,_0x29fd61-_0x4a9fa1._0xbe1494);}function _0xdbf4f9(_0x5c1502,_0x13dfb9,_0x2d8472,_0x189ff4){return _0x3c7c8d(_0x189ff4-_0x1f98dc._0x407314,_0x13dfb9-_0x1f98dc._0x29ab16,_0x2d8472-_0x1f98dc._0x3b2d7b,_0x2d8472);}const _0x1ca0de=_0x69bc8e[_0xdbf4f9(0x48c,_0x2c1f8c._0x2477c1,0x3b5,0x46e)]?.['getReader']();if(!_0x1ca0de)return;const _0x434e2f=new TextDecoder('utf-8');let _0x142889='';const _0x36bf27=addAbortListener(_0x3bf236,()=>{const _0x472102={_0x2e42c7:0x562};function _0x54c6b0(_0x5911cf,_0xc5b2d6,_0x398a7b,_0x183c3b){return _0xdbf4f9(_0x5911cf-0x6c,_0xc5b2d6-0x6f,_0x183c3b,_0x398a7b- -_0x472102._0x2e42c7);}void _0x1ca0de['cancel'](toAbortError(_0x3bf236?.['reason']))[_0x54c6b0(-0x180,-0x26a,-0x1d3,-_0x1e4a3a._0x3466fa)](()=>{});});try{while(!![]){throwIfAborted(_0x3bf236);const {value:_0x33accb,done:_0x2b17fc}=await _0x1ca0de[_0x34b82a(0x6,0x1f,_0x2c1f8c._0x4ec687,-0x20)]();throwIfAborted(_0x3bf236);if(_0x2b17fc)break;_0x142889+=_0x434e2f['decode'](_0x33accb,{'stream':!![]});while(!![]){const _0x4474cf=_0x142889[_0xdbf4f9(_0x2c1f8c._0x5e6866,_0x2c1f8c._0xf7bdcc,0x2e6,_0x2c1f8c._0x3fedbe)]('\x0a\x0a');if(_0x4474cf===-0x1)break;const _0x5b06b2=_0x142889[_0x34b82a(-0x2b,_0x2c1f8c._0x5fece5,0x15,_0x2c1f8c._0x5f1661)](0x0,_0x4474cf);_0x142889=_0x142889['slice'](_0x4474cf+0x2),_0x5b06b2[_0xdbf4f9(0x3b8,0x32c,_0x2c1f8c._0x4b53fa,0x3a0)]()[_0x34b82a(-0x40,0x103,_0x2c1f8c._0x41ec70,_0x2c1f8c._0x1d3b85)]>0x0&&(yield _0x5b06b2);}}_0x142889+=_0x434e2f[_0x34b82a(-0xb,_0x2c1f8c._0x5752b3,-0x51,-_0x2c1f8c._0x19d6dc)](),throwIfAborted(_0x3bf236),_0x142889[_0xdbf4f9(0x2fd,_0x2c1f8c._0x5b73a7,0x412,_0x2c1f8c._0x6569e)]()[_0x34b82a(-0xf,0x2c,0x59,0xb9)]>0x0&&(yield _0x142889);}finally{_0x36bf27();}}async function waitForWebSocketOpen(_0x2242fb,_0x1d37a2){const _0x1c241c={_0x2924e0:0x3dd,_0x96ea57:0x46d,_0x26a6a6:0x438,_0x444d9b:0x35d},_0x5d3913={_0x4c97b2:0x26e,_0x16acfc:0x30b,_0x58fde0:0x263,_0x4bd020:0x37d,_0x5344b1:0x30a,_0xa61ef5:0x3aa,_0x1daf94:0x1a3,_0x14cad7:0x151,_0x53a13e:0x34c,_0x40874f:0x3cf,_0x4f9b6c:0x2eb,_0x464772:0x2cc,_0x1e8d29:0x300,_0x1d665b:0x237},_0x382451={_0x7422f4:0x53b,_0x299fe9:0xa1},_0x4be06c={_0x5226a8:0x2df,_0x33eabb:0x26e,_0xa095fa:0x493,_0x55af3f:0x4a2,_0xab5163:0x434,_0x269317:0x3b6,_0x2eb7ee:0x341},_0x2fbe8f={_0x31cd4f:0x1f5,_0x446a14:0x228,_0x4d7eaa:0x124,_0x31325d:0x17f,_0x47d29c:0x8d,_0x585365:0x197,_0x5f04b1:0x1fc,_0x5339df:0x1d7,_0xb3c2ea:0x165,_0x508f1e:0x1e2,_0x5b9e47:0x14c,_0x10d739:0x174},_0x37633e={_0xaea5da:0x8,_0x99deb2:0x96,_0x17b0ba:0x19e,_0x4c1192:0x14d,_0x508f9d:0x1c5,_0x41f0a2:0x16f},_0x1243db={_0x17b2d4:0x176},_0x35dbcf={_0x16c9ae:0x2b};if(_0x2242fb[_0x2ef8ca(_0x1c241c._0x2924e0,_0x1c241c._0x96ea57,0x3f7,_0x1c241c._0x26a6a6)]===WebSocket[_0x5efab5(0x30d,_0x1c241c._0x444d9b,0x2fc,0x328)]){throwIfAborted(_0x1d37a2);return;}function _0x5efab5(_0x48ad17,_0x206329,_0x5c5575,_0x2b87cf){return _0x3c7c8d(_0x48ad17- -_0x35dbcf._0x16c9ae,_0x206329-0xa,_0x5c5575-0xea,_0x5c5575);}function _0x2ef8ca(_0x1c101c,_0x5e9782,_0x51ae70,_0x297207){return _0x3c7c8d(_0x1c101c-_0x1243db._0x17b2d4,_0x5e9782-0x192,_0x51ae70-0x5d,_0x51ae70);}throwIfAborted(_0x1d37a2),await new Promise((_0x442042,_0x4b9e7c)=>{const _0x507e37={_0x4f41d7:0x2a2},_0x56bdd7={_0x13f322:0x1c5,_0x5dab90:0x1dd,_0x419784:0x184,_0xb4858:0x4d8,_0x32e019:0x44b},_0x3d9801={_0x59aee9:0x3cb},_0x2a0efa={_0x1d8bbe:0x383},_0x28407c={_0x2428da:0xe9,_0x2e5377:0x143,_0x1cc093:0x16};function _0x201d8d(_0x27bd58,_0x4a45f0,_0x49ad5f,_0x2f23f2){return _0x5efab5(_0x4a45f0-_0x28407c._0x2428da,_0x4a45f0-_0x28407c._0x2e5377,_0x49ad5f,_0x2f23f2-_0x28407c._0x1cc093);}const _0x4313d2=()=>{_0x251b64(),_0x442042();},_0x4b3c95=_0x419cdd=>{function _0x55f5ca(_0x78069c,_0x489d8a,_0x2983ed,_0x44f41a){return _0x501c(_0x489d8a-_0x2a0efa._0x1d8bbe,_0x44f41a);}_0x251b64();function _0x14b16d(_0x688b25,_0xfac0c2,_0x52a736,_0x442ad6){return _0x501c(_0x688b25- -_0x3d9801._0x59aee9,_0x442ad6);}_0x4b9e7c(new Error(_0x419cdd[_0x14b16d(-0x1c0,-_0x56bdd7._0x13f322,-_0x56bdd7._0x5dab90,-_0x56bdd7._0x419784)]||_0x55f5ca(0x47b,_0x56bdd7._0xb4858,_0x56bdd7._0x32e019,0x4de)));},_0x3713e5=_0x22debb=>{const _0x76c650={_0x1085e1:0x11a};function _0x32ab93(_0x19a737,_0x5be84b,_0x563e19,_0x48a5e6){return _0x501c(_0x5be84b- -_0x76c650._0x1085e1,_0x19a737);}function _0x4861e3(_0x42d44c,_0x6751f9,_0x3d4aad,_0x3f8d59){return _0x501c(_0x3f8d59-0xb2,_0x42d44c);}_0x251b64();const _0x3d1d2b=_0x22debb;_0x4b9e7c(new Error(_0x3d1d2b[_0x32ab93(-0x9a,-_0x37633e._0xaea5da,_0x37633e._0x99deb2,-0xc3)]||_0x4861e3(_0x37633e._0x17b0ba,_0x37633e._0x4c1192,_0x37633e._0x508f9d,_0x37633e._0x41f0a2)));},_0x3e73ec=()=>{const _0x54f7e9={_0x2318cc:0x2f8};function _0x4d8265(_0x1c86f6,_0x41c4ef,_0x47a95d,_0x1f5f74){return _0x501c(_0x1c86f6- -0x2d7,_0x47a95d);}_0x251b64();function _0x2bac00(_0x1199b1,_0x49151c,_0x574781,_0xdcdc18){return _0x501c(_0x1199b1- -_0x54f7e9._0x2318cc,_0x574781);}_0x2242fb[_0x4d8265(-_0x2fbe8f._0x31cd4f,-0x1cc,-0x1d3,-_0x2fbe8f._0x446a14)]===WebSocket[_0x4d8265(-_0x2fbe8f._0x4d7eaa,-_0x2fbe8f._0x31325d,-0x18f,-_0x2fbe8f._0x47d29c)]&&_0x2242fb[_0x2bac00(-_0x2fbe8f._0x585365,-_0x2fbe8f._0x5f04b1,-0x125,-_0x2fbe8f._0x5339df)](0x3e8,_0x4d8265(-_0x2fbe8f._0xb3c2ea,-_0x2fbe8f._0x508f1e,-_0x2fbe8f._0x5b9e47,-_0x2fbe8f._0x10d739)),_0x4b9e7c(toAbortError(_0x1d37a2?.['reason']));},_0x251b64=()=>{_0x2242fb[_0x47cb7d(0x370,0x3cb,0x349,0x3fc)](_0x4e5ac8(0x2dc,0x237,_0x4be06c._0x5226a8,_0x4be06c._0x33eabb),_0x4313d2),_0x2242fb['removeEventListener'](_0x47cb7d(_0x4be06c._0xa095fa,_0x4be06c._0x55af3f,0x498,0x4eb),_0x4b3c95),_0x2242fb[_0x47cb7d(0x3f6,0x3cb,0x34a,0x3f4)]('close',_0x3713e5);function _0x47cb7d(_0x4094a6,_0x4c415f,_0xf11e31,_0x9be177){return _0x501c(_0x4c415f-_0x507e37._0x4f41d7,_0x9be177);}function _0x4e5ac8(_0x45ee05,_0x4d7a54,_0xb55053,_0x2fff3d){return _0x501c(_0x45ee05-0x215,_0x4d7a54);}_0x1d37a2?.[_0x47cb7d(_0x4be06c._0xab5163,0x3cb,0x483,_0x4be06c._0x269317)](_0x4e5ac8(0x32e,0x3c2,0x381,_0x4be06c._0x2eb7ee),_0x3e73ec);};function _0x945991(_0x2fe326,_0xf649ba,_0x1e11b0,_0x12130c){return _0x5efab5(_0x2fe326- -_0x382451._0x7422f4,_0xf649ba-_0x382451._0x299fe9,_0x12130c,_0x12130c-0x91);}_0x2242fb[_0x201d8d(_0x5d3913._0x4c97b2,_0x5d3913._0x16acfc,_0x5d3913._0x58fde0,0x315)](_0x201d8d(_0x5d3913._0x4bd020,0x30a,_0x5d3913._0x5344b1,_0x5d3913._0xa61ef5),_0x4313d2),_0x2242fb['addEventListener'](_0x945991(-0x1e1,-0x1d2,-_0x5d3913._0x1daf94,-_0x5d3913._0x14cad7),_0x4b3c95),_0x2242fb[_0x945991(-0x319,-0x370,-_0x5d3913._0x53a13e,-_0x5d3913._0x40874f)](_0x201d8d(0x377,0x3a4,_0x5d3913._0x4f9b6c,0x390),_0x3713e5),_0x1d37a2?.[_0x201d8d(_0x5d3913._0x464772,0x30b,0x323,_0x5d3913._0x1e8d29)](_0x945991(-0x2c8,-_0x5d3913._0x1d665b,-0x2c4,-0x2b7),_0x3e73ec,{'once':!![]});});}function iterateWebSocketMessages(_0x3fae5b,_0x49ea16){const _0x521cd1={_0xc46daa:0x3b1,_0x5a286d:0x3b4,_0x4e2c5d:0x2bc,_0x20864d:0x21a,_0x349e7a:0x2bf,_0xa749ed:0x2af,_0x3c0ddc:0x253,_0x17ba69:0x3e8,_0x4225ce:0x460},_0x13f76f={_0x912a07:0x31f,_0x43a487:0x30b,_0x550d51:0x2c9,_0x494b14:0x270,_0x4d721e:0x34b,_0x32709e:0x352,_0x4bf878:0x31e,_0x27a3bd:0x54,_0x2eaeb0:0x2a5,_0x37f809:0x6f,_0x2be0dc:0xd5},_0x232aea={_0x8f8c16:0x19d,_0x570ad0:0x1f},_0x44daae={_0x362eb2:0x3b0,_0x21571f:0x46e,_0x8bed6d:0x214,_0xcac81c:0x365,_0x573aaa:0x4d0,_0x161d9b:0x468,_0x1fec28:0x5ba,_0xf6eb67:0x420,_0x512f36:0x484,_0x22a6dd:0x4ce,_0x365cec:0x4e7},_0x3e6208={_0x15ea61:0x35c},_0x3f0446={_0x2a394f:0x3e2,_0x248ae7:0x414,_0x5699a9:0x364,_0x31b3b2:0x2cc,_0x60be4a:0x18a},_0x22a684={_0x4a862d:0x22c,_0x4b080b:0x132,_0x327366:0x23},_0x1f6f18={_0x42b520:0x4cf,_0x3eeeba:0x510,_0x1414ec:0x5a1,_0x5cd589:0x512,_0x12c8c3:0x53f},_0x1a5936={_0x2fe356:0x10,_0x38e6db:0xf5,_0x4dab25:0x403,_0x465163:0x422,_0x409e4c:0x307},_0x4dc614={_0x3f265f:0x23e},_0x449022=[];let _0x2b33c4=![],_0x1dddfd,_0x9c0a0c;const _0x5a09f1=_0x5806b4=>{const _0x53bf11=_0x5806b4;function _0x16f715(_0x4a38c6,_0x5819a7,_0xfa73c1,_0x2c7ba0){return _0x501c(_0x4a38c6-_0x4dc614._0x3f265f,_0xfa73c1);}function _0x58209c(_0x3a848f,_0x2e70d9,_0x1c357d,_0x35e830){return _0x501c(_0x2e70d9- -0xed,_0x3a848f);}try{_0x449022['push'](JSON[_0x58209c(-_0x1a5936._0x2fe356,0x66,_0x1a5936._0x38e6db,0xee)](String(_0x53bf11[_0x16f715(_0x1a5936._0x4dab25,0x3b8,0x3d6,_0x1a5936._0x465163)]))),_0x9c0a0c?.(),_0x9c0a0c=void 0x0;}catch(_0x4849a0){_0x1dddfd=new Error(_0x16f715(0x38a,_0x1a5936._0x409e4c,0x388,0x3d7)+toErrorMessage(_0x4849a0)),_0x9c0a0c?.(),_0x9c0a0c=void 0x0;}},_0x1301a8=_0x5c7025=>{function _0x33a33c(_0x5b9845,_0x3892b0,_0x52a091,_0x2300d2){return _0x501c(_0x3892b0-0x2c4,_0x2300d2);}const _0x3b396d=_0x5c7025;_0x1dddfd=new Error(_0x3b396d[_0x33a33c(0x4bd,_0x1f6f18._0x42b520,0x445,_0x1f6f18._0x3eeeba)]||_0x353609(_0x1f6f18._0x1414ec,_0x1f6f18._0x5cd589,0x45e,_0x1f6f18._0x12c8c3));function _0x353609(_0x423ba3,_0x28e7db,_0x11059c,_0x3d53b0){return _0x501c(_0x28e7db-0x3bd,_0x11059c);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;};function _0x4b7a1a(_0x447470,_0x2b7f8e,_0x82ab43,_0x1f4986){return _0x65d232(_0x1f4986-_0x22a684._0x4a862d,_0x82ab43,_0x82ab43-_0x22a684._0x4b080b,_0x1f4986-_0x22a684._0x327366);}const _0x4424a4=_0x99a860=>{const _0x28d6ea=_0x99a860;!_0x2b33c4&&_0x28d6ea[_0x22f9b9(0x4bf,_0x3f0446._0x2a394f,_0x3f0446._0x248ae7,0x3da)]!==0x3e8&&!_0x1dddfd&&(_0x1dddfd=new Error(_0x28d6ea[_0x22f9b9(0x37c,_0x3f0446._0x5699a9,0x3e4,0x3a5)]||_0xa1fbe3(0x2be,0x20e,_0x3f0446._0x31b3b2,_0x3f0446._0x60be4a)+_0x28d6ea[_0xa1fbe3(0x2f4,0x283,0x276,0x2ea)]));function _0x22f9b9(_0x5a9fc4,_0x410791,_0x435f01,_0x5c24be){return _0x501c(_0x435f01-0x2d2,_0x5c24be);}_0x2b33c4=!![];function _0xa1fbe3(_0x9ca1a,_0x324e1e,_0x24ae01,_0x5dc9cc){return _0x501c(_0x324e1e-0x141,_0x5dc9cc);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;},_0x237751=addAbortListener(_0x49ea16,()=>{_0x1dddfd=toAbortError(_0x49ea16?.[_0x3c5dec(0x45d,_0x44daae._0x362eb2,_0x44daae._0x21571f,0x448)]);_0x3fae5b[_0x39fc4c(0x203,0x2b6,_0x44daae._0x8bed6d,_0x44daae._0xcac81c)]===WebSocket[_0x3c5dec(_0x44daae._0x573aaa,_0x44daae._0x161d9b,0x50f,_0x44daae._0x1fec28)]&&_0x3fae5b['close'](0x3e8,_0x3c5dec(_0x44daae._0xf6eb67,_0x44daae._0x512f36,_0x44daae._0x22a6dd,_0x44daae._0x365cec));function _0x3c5dec(_0x490339,_0x24c96b,_0x4f3ac6,_0x642b59){return _0x501c(_0x4f3ac6-_0x3e6208._0x15ea61,_0x490339);}function _0x39fc4c(_0x4012e3,_0x403fe7,_0x5835cb,_0x4a3e28){return _0x501c(_0x403fe7-0x1d4,_0x5835cb);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;});function _0x3c2694(_0x57f7f,_0x594cd7,_0x403674,_0x2f5762){return _0x3c7c8d(_0x57f7f-0x72,_0x594cd7-_0x232aea._0x8f8c16,_0x403674-_0x232aea._0x570ad0,_0x594cd7);}return _0x3fae5b['addEventListener'](_0x3c2694(0x402,0x360,_0x521cd1._0xc46daa,_0x521cd1._0x5a286d),_0x5a09f1),_0x3fae5b[_0x3c2694(0x2bf,0x322,_0x521cd1._0x4e2c5d,_0x521cd1._0x20864d)]('error',_0x1301a8),_0x3fae5b[_0x3c2694(_0x521cd1._0x349e7a,_0x521cd1._0xa749ed,_0x521cd1._0x3c0ddc,0x2d5)]('close',_0x4424a4),{async*[Symbol[_0x3c2694(_0x521cd1._0x17ba69,_0x521cd1._0x4225ce,0x394,0x37c)]](){const _0x2d07b3={_0x228724:0xd9,_0x4d806a:0x1f1},_0x1140ac={_0x10e47c:0x167,_0x2a9090:0xe};function _0x3dda79(_0x45286a,_0x1d2b30,_0x1b1c19,_0x2a5e45){return _0x4b7a1a(_0x45286a-_0x1140ac._0x10e47c,_0x1d2b30-0x124,_0x1d2b30,_0x1b1c19-_0x1140ac._0x2a9090);}function _0x5d49f3(_0x2e0b41,_0x1a6d1e,_0x10b5ec,_0xc2a992){return _0x3c2694(_0xc2a992- -0x42d,_0x2e0b41,_0x10b5ec-_0x2d07b3._0x228724,_0xc2a992-_0x2d07b3._0x4d806a);}try{while(!![]){if(_0x1dddfd)throw _0x1dddfd;if(_0x449022[_0x3dda79(0x3a1,0x37f,_0x13f76f._0x912a07,0x30e)]>0x0){yield _0x449022[_0x3dda79(0x3d1,_0x13f76f._0x43a487,0x358,0x3f0)]();continue;}if(_0x2b33c4)break;await new Promise(_0x2ee2eb=>{_0x9c0a0c=_0x2ee2eb;});}}finally{_0x3fae5b[_0x3dda79(0x214,_0x13f76f._0x550d51,_0x13f76f._0x494b14,0x2fc)](_0x3dda79(_0x13f76f._0x4d721e,0x2a9,_0x13f76f._0x32709e,_0x13f76f._0x4bf878),_0x5a09f1),_0x3fae5b['removeEventListener'](_0x5d49f3(0x48,-_0x13f76f._0x27a3bd,-0x6f,-0x36),_0x1301a8),_0x3fae5b[_0x3dda79(0x1fe,0x1d8,0x270,_0x13f76f._0x2eaeb0)](_0x5d49f3(-0x17f,-0x14e,-_0x13f76f._0x37f809,-_0x13f76f._0x2be0dc),_0x4424a4),_0x237751();}}};}function toWebSocketUrl(_0x22f506,_0x288208){const _0x5ae79b={_0x8bf7e4:0x269,_0x5a7cf6:0x32f,_0x4e8036:0x2bc,_0xaeb9a5:0x4ac,_0x518fe8:0x5bd,_0x3db32d:0x3f1,_0x3999f4:0x498,_0x22891d:0x3bd,_0xe80af0:0x433},_0x1adbbb={_0x1bc18f:0x8a},_0x125cf8={_0x23a421:0x185};function _0x12f26b(_0x29e351,_0x37a250,_0x26c651,_0x51a4e0){return _0x3c7c8d(_0x26c651-0x198,_0x37a250-0x1ae,_0x26c651-_0x125cf8._0x23a421,_0x37a250);}const _0x14eb15=new URL(_0x288208,_0x22f506);_0x14eb15[_0x400ce8(_0x5ae79b._0x8bf7e4,0x27b,_0x5ae79b._0x5a7cf6,0x2bc)]=_0x14eb15[_0x400ce8(0x20c,0x28a,0x342,_0x5ae79b._0x4e8036)]===_0x12f26b(_0x5ae79b._0xaeb9a5,0x4f0,0x538,_0x5ae79b._0x518fe8)?'wss:':_0x12f26b(_0x5ae79b._0x3db32d,0x348,0x400,_0x5ae79b._0x3999f4);function _0x400ce8(_0x2f112f,_0x5ade09,_0x289001,_0x46a248){return _0x3c7c8d(_0x46a248-_0x1adbbb._0x1bc18f,_0x5ade09-0x14c,_0x289001-0x1f0,_0x289001);}return _0x14eb15[_0x400ce8(0x3fb,0x452,_0x5ae79b._0x22891d,_0x5ae79b._0xe80af0)]();}var ProviderSessionManager=class{[_0x65d232(0x125,0x19c,0x9c,0x1e6)];[_0x3c7c8d(0x2e8,0x323,0x2f0,0x255)];constructor(_0xbf7fc7){this['resolver']=_0xbf7fc7;}async['resolve'](_0x245a0a){const _0xb3cdf1={_0x55dde5:0x51,_0x3c94e1:0xef,_0x26cf5e:0x33,_0x57db61:0xef,_0x5e01ee:0x19,_0x4dc688:0xc6,_0x7feb31:0x56,_0x1a04e6:0x11b},_0x29fa62={_0x5df03c:0x8a},_0x4e8f3e={_0x24ce74:0xd3};function _0xf57e6d(_0x1f31d1,_0x55547e,_0x335dfa,_0x4f076f){return _0x65d232(_0x4f076f- -0x15f,_0x55547e,_0x335dfa-_0x4e8f3e._0x24ce74,_0x4f076f-0x192);}function _0x486a72(_0x44fe58,_0x3720b8,_0x4888c2,_0x10a230){return _0x3c7c8d(_0x10a230- -0x4eb,_0x3720b8-_0x29fa62._0x5df03c,_0x4888c2-0xd6,_0x3720b8);}return!this[_0xf57e6d(-0x177,-_0xb3cdf1._0x55dde5,-0x41,-_0xb3cdf1._0x3c94e1)]&&(this[_0xf57e6d(-0x9f,-_0xb3cdf1._0x26cf5e,-0x118,-_0xb3cdf1._0x57db61)]=this['resolver'][_0xf57e6d(-_0xb3cdf1._0x5e01ee,-0x100,-0xee,-_0xb3cdf1._0x4dc688)](_0x245a0a)),structuredClone(await this[_0xf57e6d(-_0xb3cdf1._0x7feb31,-_0xb3cdf1._0x1a04e6,-0x109,-0xef)]);}['invalidate'](){const _0x13c343={_0x463f45:0x2db,_0x26d545:0x2b8},_0x130dc7={_0x476eb2:0x52a};function _0x5c1adf(_0x2ac8c7,_0x3a569c,_0xb2c42a,_0x359ae6){return _0x3c7c8d(_0x2ac8c7- -_0x130dc7._0x476eb2,_0x3a569c-0xf8,_0xb2c42a-0xc4,_0x3a569c);}this[_0x5c1adf(-0x242,-0x230,-_0x13c343._0x463f45,-_0x13c343._0x26d545)]=void 0x0;}};async function prepareProviderRequest(_0x45837a,_0x449049={}){const _0x599d88={_0x15d026:0x1b0,_0x4ac848:0xad,_0x28fbf3:0x40,_0x5d7971:0x34,_0x5adffa:0x66,_0x8187c7:0x3c,_0x58352f:0x5e,_0x3d6c62:0xc},_0x31d6fe={_0x414091:0x9a,_0x32acaf:0x51};let _0x46f0ef={'request':structuredClone(_0x45837a),'session':_0x449049[_0x3c97c9(-_0x599d88._0x15d026,-_0x599d88._0x4ac848,-0x11a,-0x110)]?await _0x449049[_0x5c9559(_0x599d88._0x28fbf3,-_0x599d88._0x5d7971,-_0x599d88._0x5adffa,-_0x599d88._0x8187c7)]['resolve'](_0x449049['signal']):void 0x0};function _0x5c9559(_0x2c9529,_0x4beec5,_0x5a1dd5,_0x1933e9){return _0x65d232(_0x4beec5- -_0x31d6fe._0x414091,_0x1933e9,_0x5a1dd5-_0x31d6fe._0x32acaf,_0x1933e9-0x45);}function _0x3c97c9(_0x4841d8,_0xeff375,_0x4ef154,_0x37eb9c){return _0x3c7c8d(_0x4ef154- -0x3f8,_0xeff375-0x1d8,_0x4ef154-0xb9,_0x37eb9c);}for(const _0x36e499 of _0x449049[_0x3c97c9(-0x37,-0x58,-_0x599d88._0x58352f,_0x599d88._0x3d6c62)]??[]){_0x46f0ef=await _0x36e499(_0x46f0ef);}return _0x46f0ef;}var RoutedModel=class{[_0x3c7c8d(0x32a,0x32e,0x3bc,0x314)];[_0x65d232(0x117,0x19e,0x1d1,0xa4)];[_0x3c7c8d(0x2bd,0x248,0x334,0x208)];[_0x3c7c8d(0x309,0x323,0x392,0x30e)];['baseUrl'];['fetchImpl'];[_0x65d232(0xc2,0xce,0x14f,0x67)];[_0x65d232(0x122,0x19e,0x148,0x193)];[_0x3c7c8d(0x367,0x3c8,0x2ec,0x3ca)];['sessionManager'];[_0x65d232(0x6c,0x1,-0x51,0xb2)];['surfaces']=new Map();constructor(_0x28beff){const _0x120413={_0x7e7220:0x183,_0x1f6505:0x26d,_0x41b2a7:0x316,_0x26f7ba:0x2a9,_0x58c4a7:0x2d1,_0x2550a2:0x26f,_0x24043e:0x102,_0x36dc64:0x14b,_0x1eba04:0x1ae,_0x40de3f:0xb3,_0x446ff9:0x177,_0x1ae1fd:0x1cc,_0x25226d:0x1e7,_0x91ac2d:0x27a,_0x2017ab:0x223,_0x5c5a1a:0x124,_0x5bd340:0x26d,_0x100641:0x222,_0x272e01:0x22d,_0x15e93d:0x1f2,_0x3dd38b:0x273,_0xd60c1c:0x22b,_0x51b1b4:0x2e3,_0x574417:0x1b0,_0x50c2a9:0x1f6,_0x2ee951:0x258,_0x48e9ba:0x15b,_0x1c9fa9:0x1c0,_0x565448:0x152,_0x531774:0x129,_0x181ee7:0x19e,_0x1268ee:0x14d,_0x12a0f9:0x13d,_0x9dd4cb:0x1a3,_0x18b580:0x162,_0x531afd:0x1d5,_0x18b0a6:0x122,_0x9106f1:0x1a1,_0x551748:0xc9,_0x2e334f:0xb9,_0x4f0017:0x29b,_0x38bfdb:0x2b1,_0x339bff:0x206},_0x4ceacb={_0x5ae90a:0x3a},_0x1a0497={_0x23ed45:0xb3};function _0xbeae4(_0x53aa79,_0x53eeac,_0x5dc46a,_0x42e393){return _0x65d232(_0x42e393-0xd1,_0x5dc46a,_0x5dc46a-_0x1a0497._0x23ed45,_0x42e393-0x6a);}this[_0xbeae4(0x128,0x1e6,0x154,_0x120413._0x7e7220)]=_0x28beff[_0x4d3b1b(0x2a1,_0x120413._0x1f6505,0x1de,0x21b)],this['maxTokens']=_0x28beff[_0x4d3b1b(_0x120413._0x41b2a7,_0x120413._0x26f7ba,_0x120413._0x58c4a7,0x280)]??0x4000,this[_0xbeae4(0xa6,0xa2,0xa3,0x116)]=_0x28beff[_0x4d3b1b(0x199,0x267,0x16e,0x1ae)]?structuredClone(_0x28beff[_0x4d3b1b(_0x120413._0x2550a2,_0x120413._0x24043e,_0x120413._0x36dc64,_0x120413._0x1eba04)]):void 0x0,this['apiKey']=_0x28beff[_0xbeae4(_0x120413._0x40de3f,_0x120413._0x446ff9,_0x120413._0x1ae1fd,0x162)],this[_0x4d3b1b(_0x120413._0x25226d,0x2a7,_0x120413._0x91ac2d,_0x120413._0x2017ab)]=_0x28beff['baseUrl'],this[_0xbeae4(_0x120413._0x5c5a1a,0x18e,0x114,0xed)]=_0x28beff[_0xbeae4(_0x120413._0x5bd340,_0x120413._0x100641,0x1ff,0x1db)]??globalThis[_0x4d3b1b(_0x120413._0x272e01,_0x120413._0x15e93d,0x275,_0x120413._0x3dd38b)],this[_0x4d3b1b(0x2d0,0x1e3,0x2be,_0x120413._0xd60c1c)]=_0x28beff['providerAdapter'],this['requestMutators']=_0x28beff[_0x4d3b1b(_0x120413._0x51b1b4,0x2ff,0x2ce,0x28b)]??[];function _0x4d3b1b(_0x15349a,_0x4a8af8,_0xaf3dcd,_0x242eab){return _0x65d232(_0x242eab-0x169,_0x15349a,_0xaf3dcd-0x27,_0x242eab-_0x4ceacb._0x5ae90a);}this[_0x4d3b1b(0x22c,_0x120413._0x574417,_0x120413._0x50c2a9,_0x120413._0x2ee951)]=_0x28beff[_0xbeae4(_0x120413._0x48e9ba,0x160,0x239,_0x120413._0x1c9fa9)],this[_0x4d3b1b(0x172,_0x120413._0x565448,_0x120413._0x531774,0x1cf)]=_0x28beff[_0x4d3b1b(0x26b,0x144,0x1ab,0x1cf)]??(_0x28beff['providerSessionResolver']?new ProviderSessionManager(_0x28beff[_0x4d3b1b(_0x120413._0x181ee7,0x1ff,0x231,0x25c)]):void 0x0),this[_0xbeae4(0xc1,_0x120413._0x1268ee,0x8a,_0x120413._0x12a0f9)]=_0x28beff[_0x4d3b1b(0x230,_0x120413._0x9dd4cb,_0x120413._0x18b580,_0x120413._0x531afd)]??createDefaultWebSocketFactory();for(const _0x32194a of _0x28beff[_0x4d3b1b(0x1e7,_0x120413._0x18b0a6,0x207,_0x120413._0x9106f1)]){this[_0xbeae4(_0x120413._0x551748,0x14b,_0x120413._0x2e334f,0x109)][_0x4d3b1b(_0x120413._0x4f0017,0x2b5,_0x120413._0x38bfdb,_0x120413._0x339bff)](_0x32194a['id'],_0x32194a);}}[_0x65d232(-0x1,-0x76,-0x4a,-0xbe)](_0x282863,_0x45a42b){const _0x30419a={_0x516bf8:0x3d},_0x463258={_0xf5db60:0x34b,_0x36bcc1:0x1d3};function _0xa85164(_0x331310,_0x1e8f8b,_0x19901f,_0x4e62fc){return _0x3c7c8d(_0x19901f- -_0x463258._0xf5db60,_0x1e8f8b-0x61,_0x19901f-_0x463258._0x36bcc1,_0x4e62fc);}return this[_0xa85164(0x72,-0x2c,_0x30419a._0x516bf8,-0x31)](_0x282863,_0x45a42b);}['stream'](_0x69293a,_0x3f7856){const _0x56e4d3={_0x331319:0x82,_0x4a85ae:0x21,_0x1d75f7:0x43},_0x2a8d06={_0x3a90e5:0x124,_0x5c6416:0xea,_0x27514e:0x167};function _0x41d29e(_0x39c4b1,_0x497c39,_0x3e7cd9,_0x274677){return _0x65d232(_0x3e7cd9- -_0x2a8d06._0x3a90e5,_0x274677,_0x3e7cd9-_0x2a8d06._0x5c6416,_0x274677-_0x2a8d06._0x27514e);}return this[_0x41d29e(-_0x56e4d3._0x331319,_0x56e4d3._0x4a85ae,-0x37,_0x56e4d3._0x1d75f7)](_0x69293a,_0x3f7856);}async[_0x3c7c8d(0x388,0x428,0x2d8,0x347)](_0x5b7cb5,_0x667eba){const _0x564a0a={_0xea159e:0x13b,_0x3ad02c:0x232,_0x4e537c:0x85,_0x1fd8d5:0x4a,_0x41fa75:0x33,_0x54d9f2:0x4b},_0x12ed1c={_0x38f038:0xd6,_0x2c55a5:0xa6},_0x38fdc4={_0x5846db:0x5a},_0x1d74d9=this['applyModelDefaults'](_0x5b7cb5);function _0x4dba91(_0x459c82,_0x37b020,_0x4cee8,_0x24c130){return _0x65d232(_0x37b020- -_0x38fdc4._0x5846db,_0x4cee8,_0x4cee8-0x55,_0x24c130-0xa4);}function _0x44581b(_0x5c8db5,_0x188aba,_0x4c012c,_0x2b1e22){return _0x3c7c8d(_0x188aba- -0x1ae,_0x188aba-_0x12ed1c._0x38f038,_0x4c012c-_0x12ed1c._0x2c55a5,_0x5c8db5);}const _0x46fd0a=await this[_0x44581b(0x1b6,0x1b9,0x244,_0x564a0a._0xea159e)][_0x44581b(0x291,0x1cf,0x225,_0x564a0a._0x3ad02c)](_0x1d74d9,{'mode':_0x44581b(0xff,0xc9,_0x564a0a._0x4e537c,0x51)});return this[_0x4dba91(-0x10,_0x564a0a._0x1fd8d5,_0x564a0a._0x41fa75,-_0x564a0a._0x54d9f2)](_0x1d74d9,_0x46fd0a,_0x667eba);}async*[_0x3c7c8d(0x365,0x345,0x388,0x3d1)](_0x6a5914,_0x347c99){const _0x3f77cd={_0x2eb185:0x4de,_0x39f5c8:0x548,_0x16072b:0x4ee,_0x329baf:0x46c,_0x40fc23:0x451,_0x342420:0x454,_0x4a2ea6:0x4ca,_0x52b3bb:0x521,_0x163707:0x4ce,_0x391434:0x5a7},_0x2b2eff={_0x483584:0xac},_0xa33668={_0x15bc1b:0x1a8};function _0x483c9b(_0x3375d4,_0x17f30d,_0x423583,_0x58a4f9){return _0x65d232(_0x17f30d-0x41c,_0x3375d4,_0x423583-_0xa33668._0x15bc1b,_0x58a4f9-0x60);}function _0x240b6a(_0x145cdc,_0x11be0c,_0xd10c78,_0x1c7b1c){return _0x3c7c8d(_0x1c7b1c-0x220,_0x11be0c-0x147,_0xd10c78-_0x2b2eff._0x483584,_0xd10c78);}const _0x103ca5=this[_0x483c9b(_0x3f77cd._0x2eb185,_0x3f77cd._0x39f5c8,0x4f1,_0x3f77cd._0x16072b)](_0x6a5914),_0x13e20f=await this[_0x483c9b(_0x3f77cd._0x329baf,0x50b,_0x3f77cd._0x40fc23,_0x3f77cd._0x342420)][_0x483c9b(_0x3f77cd._0x4a2ea6,_0x3f77cd._0x52b3bb,0x4b2,0x546)](_0x103ca5,{'mode':_0x240b6a(_0x3f77cd._0x163707,0x496,0x492,0x4d2)});yield*this[_0x483c9b(0x493,0x4fb,0x4e6,_0x3f77cd._0x391434)](_0x103ca5,_0x13e20f,_0x347c99);}async[_0x65d232(0xa4,0x77,0x45,0x15)](_0x585b34,_0x4c840a,_0x29b8a8){const _0x405a78={_0x2dcc05:0x33c,_0x392de0:0x4f9,_0x55f3da:0x3bb,_0x352b42:0x433,_0x29254b:0x4d2,_0x33a42b:0x451,_0x5551ea:0x440,_0x264b0a:0x41d,_0x164b58:0x37a,_0x48e217:0x3dc,_0x2bd701:0x36d,_0x103b6c:0x2b2,_0x1cb61e:0x30f,_0x4aee54:0x39a,_0x722757:0x3c6,_0x97cf0f:0x297,_0x2d526c:0x25c,_0x7c49ac:0x2b0,_0x515d1b:0x29d,_0x23b84b:0x2f5,_0x380964:0x3f8,_0x157645:0x374,_0x64041e:0x326,_0x2f6b54:0x320,_0x3a184d:0x351,_0x25620f:0x377},_0x1ec73c={_0x19b6bb:0x19b},_0x16e486={_0x262a10:0x188},_0x416208=this[_0x119e9d(0x40d,0x387,0x402,_0x405a78._0x2dcc05)](_0x585b34),_0x4e9b8f=this[_0x4c0148(0x49b,0x43c,_0x405a78._0x392de0,0x43f)](_0x4c840a);if(_0x4e9b8f[_0x4c0148(_0x405a78._0x55f3da,0x4c4,_0x405a78._0x352b42,_0x405a78._0x29254b)]===_0x4c0148(0x4ba,_0x405a78._0x33a42b,_0x405a78._0x5551ea,_0x405a78._0x264b0a)){const _0x1b7fef=await this[_0x4c0148(_0x405a78._0x164b58,0x356,_0x405a78._0x48e217,0x495)](_0x416208,_0x4e9b8f,![],_0x29b8a8?.[_0x119e9d(0x33f,_0x405a78._0x2bd701,_0x405a78._0x103b6c,_0x405a78._0x1cb61e)]);if(!_0x1b7fef['ok'])throw await this[_0x4c0148(_0x405a78._0x4aee54,0x405,0x3e9,_0x405a78._0x722757)](_0x1b7fef);if(!_0x4e9b8f['parseResponse'])throw new Error('Surface\x20'+_0x4c840a+_0x119e9d(_0x405a78._0x97cf0f,_0x405a78._0x2d526c,0x296,0x1c6));return _0x4e9b8f[_0x119e9d(0x304,0x292,0x318,_0x405a78._0x7c49ac)](await _0x1b7fef['json'](),_0x416208);}function _0x119e9d(_0x118795,_0x1f5a2b,_0x2909c1,_0x1167e9){return _0x3c7c8d(_0x1f5a2b- -0x1d,_0x1f5a2b-_0x16e486._0x262a10,_0x2909c1-0x1d4,_0x2909c1);}function _0x4c0148(_0x1763d4,_0x4ed33a,_0x467f94,_0xc1da01){return _0x3c7c8d(_0x467f94-_0x1ec73c._0x19b6bb,_0x4ed33a-0x178,_0x467f94-0x7f,_0x1763d4);}let _0x10767d;for await(const _0x1f5c19 of this[_0x119e9d(0x28e,0x33a,_0x405a78._0x515d1b,_0x405a78._0x23b84b)](_0x416208,_0x4c840a,_0x29b8a8)){_0x1f5c19[_0x119e9d(0x370,0x342,_0x405a78._0x380964,0x2e1)]==='done'&&(_0x10767d=_0x1f5c19[_0x119e9d(0x356,_0x405a78._0x157645,0x35f,0x409)]);}if(!_0x10767d)throw new Error(_0x119e9d(0x313,_0x405a78._0x64041e,0x393,0x2e6)+_0x4c840a+_0x119e9d(0x2ac,_0x405a78._0x2f6b54,_0x405a78._0x3a184d,_0x405a78._0x25620f));return _0x10767d;}async*[_0x3c7c8d(0x357,0x29b,0x3c7,0x356)](_0x4f16d1,_0x2676fb,_0x3bbf56){const _0x114804={_0x7acf46:0x5a,_0x456e1c:0x57a,_0x4a007c:0x2e2,_0x372ab8:0x419,_0x309177:0x46d,_0xa282d9:0x4c1,_0x3b816c:0x482,_0x22868a:0x4d5,_0x44b921:0x45f,_0x43108e:0x497,_0x291758:0x18a,_0x2bb378:0x226,_0x13d6e7:0x29c,_0x548166:0x4cd,_0xd2f5ca:0x2a6,_0x245c9d:0x2f8,_0x2823aa:0x15d,_0x52b06d:0x134,_0xf78c04:0x119,_0x4b3de4:0x4dd,_0x107863:0x57a,_0x529806:0x662,_0x1740f4:0x5a6},_0x33f7c7={_0x4f0f7d:0x21c,_0x5d2698:0x10b},_0x13d5bb=this[_0x38985c(-0x1d3,-_0x114804._0x7acf46,-0xb4,-0x117)](_0x4f16d1),_0x2973f0=this[_0xa2013f(0x5af,0x514,0x53c,_0x114804._0x456e1c)](_0x2676fb);function _0x38985c(_0x4f136c,_0x495a9b,_0x30f273,_0x450835){return _0x65d232(_0x450835- -0x243,_0x4f136c,_0x30f273-0x132,_0x450835-0x17a);}if(_0x2973f0[_0x38985c(-0x29f,-_0x114804._0x4a007c,-0x1b7,-0x223)]===_0xa2013f(_0x114804._0x372ab8,_0x114804._0x309177,0x523,_0x114804._0xa282d9)){yield{'type':_0xa2013f(_0x114804._0x3b816c,_0x114804._0x22868a,_0x114804._0x44b921,_0x114804._0x43108e),'response':await this[_0x38985c(-0x22e,-_0x114804._0x291758,-_0x114804._0x2bb378,-0x19f)](_0x13d5bb,_0x2676fb,_0x3bbf56)};return;}function _0xa2013f(_0x413745,_0x2f59f8,_0x29d34d,_0x42f3e1){return _0x3c7c8d(_0x42f3e1-_0x33f7c7._0x4f0f7d,_0x2f59f8-0x82,_0x29d34d-_0x33f7c7._0x5d2698,_0x413745);}if(_0x2973f0[_0x38985c(-0x1a7,-_0x114804._0x13d6e7,-0x1f8,-0x223)]===_0xa2013f(0x4d9,0x418,0x4df,_0x114804._0x548166)){yield*this[_0x38985c(-0x26e,-_0x114804._0xd2f5ca,-_0x114804._0x245c9d,-0x28b)](_0x13d5bb,_0x2973f0,_0x3bbf56?.[_0x38985c(-_0x114804._0x2823aa,-_0x114804._0x52b06d,-_0x114804._0xf78c04,-0x131)]);return;}yield*this[_0xa2013f(0x5fa,_0x114804._0x4b3de4,0x5a7,0x56c)](_0x13d5bb,_0x2973f0,_0x3bbf56?.[_0xa2013f(_0x114804._0x107863,_0x114804._0x529806,0x61b,_0x114804._0x1740f4)]);}async['sendRawRequest'](_0x2c2b88){const _0x2b9460={_0x3d941b:0x272,_0x53e712:0x98,_0x4ef051:0x16c,_0x41ec85:0x166,_0x4af3c8:0xc3,_0x24d951:0xd4},_0x5edf34={_0x20a3ea:0x1a9,_0x1104c1:0x12f,_0x468217:0xec},_0x27aefa={_0x29d483:0x31b,_0x5a38ba:0x35a,_0x5e238b:0x2f9,_0x1d00d3:0x32c,_0x2cfb01:0x3be,_0x3d7078:0x2e3,_0x9fd3db:0x313,_0x3bc607:0x275,_0x5cf61b:0x271,_0x453ca9:0x2c5,_0x5061f6:0x292,_0x5f0288:0x236,_0x499436:0x295,_0x4d8df1:0x2c9,_0x95df0c:0x3a4,_0xfeb4cb:0x35a,_0x14697e:0x31e,_0xd5cf70:0x39e,_0x4e7b86:0x32e,_0x361f7c:0x396,_0x5d5845:0x23e,_0x3ddd4f:0x2ab,_0x2b534d:0x2f2,_0x335d27:0x22c,_0x207423:0x1ff,_0x33d39c:0x21d,_0x5a6b56:0x334,_0x537115:0x2db,_0x1ca271:0x2c3,_0x31dbb0:0x22c,_0x4cfba2:0x252,_0x576e19:0x2b5,_0x3fbf98:0x219,_0x2e25b4:0x32e,_0x5675c4:0x3a2,_0x68fb39:0x336,_0x4bdd9c:0x29e,_0x4bc6cc:0x27f,_0x48c050:0x313},_0x51857a=async()=>{const _0x59c6d4=this[_0x383c9e(0x290,0x27b,_0x27aefa._0x29d483,0x267)]?await this[_0x54121b(_0x27aefa._0x5a38ba,0x2b1,_0x27aefa._0x5e238b,_0x27aefa._0x1d00d3)]['resolve'](_0x2c2b88[_0x383c9e(_0x27aefa._0x2cfb01,0x287,_0x27aefa._0x3d7078,_0x27aefa._0x9fd3db)]):void 0x0;function _0x383c9e(_0x42021b,_0x461b55,_0x597069,_0x16f4b9){return _0x501c(_0x16f4b9-0x10e,_0x461b55);}function _0x54121b(_0x244dfb,_0x2556b3,_0x38af14,_0xf2f831){return _0x501c(_0x38af14-0x1a0,_0xf2f831);}const _0x5502dd=this[_0x383c9e(_0x27aefa._0x3bc607,0x323,_0x27aefa._0x5cf61b,0x2c3)]['resolveCredential'](this[_0x383c9e(0x285,0x1d0,_0x27aefa._0x453ca9,_0x27aefa._0x5061f6)],_0x59c6d4);if(!_0x5502dd)throw this[_0x54121b(0x1d7,_0x27aefa._0x5f0288,_0x27aefa._0x499436,_0x27aefa._0x4d8df1)]();const _0x2fde92=await this[_0x54121b(0x3df,_0x27aefa._0x95df0c,_0x27aefa._0xfeb4cb,_0x27aefa._0x14697e)]({'body':_0x2c2b88[_0x54121b(_0x27aefa._0xd5cf70,0x3e6,_0x27aefa._0x4e7b86,_0x27aefa._0x361f7c)],'credential':_0x5502dd,'session':_0x59c6d4,'stream':![]},{'accept':_0x2c2b88['accept']??_0x383c9e(0x237,0x2a4,0x27a,0x2ca),'includeContentType':_0x2c2b88[_0x54121b(0x358,_0x27aefa._0x5d5845,_0x27aefa._0x3ddd4f,0x2de)]===_0x383c9e(0x2df,0x2b3,0x248,_0x27aefa._0x2b534d)});return this[_0x383c9e(_0x27aefa._0x335d27,0x1d5,_0x27aefa._0x207423,_0x27aefa._0x33d39c)](''+this[_0x383c9e(_0x27aefa._0x5a6b56,0x349,_0x27aefa._0x537115,_0x27aefa._0x1ca271)]['resolveBaseUrl'](this['baseUrl'],_0x59c6d4)+_0x2c2b88['path'],{'method':_0x2c2b88[_0x383c9e(_0x27aefa._0x31dbb0,_0x27aefa._0x4cfba2,_0x27aefa._0x576e19,_0x27aefa._0x3fbf98)],'headers':_0x2fde92,..._0x2c2b88[_0x54121b(0x363,0x2fc,_0x27aefa._0x2e25b4,_0x27aefa._0x5675c4)]!==void 0x0?{'body':JSON['stringify'](_0x2c2b88[_0x54121b(_0x27aefa._0x68fb39,0x3a3,0x32e,_0x27aefa._0x4bdd9c)])}:{},'signal':_0x2c2b88[_0x383c9e(_0x27aefa._0x4bc6cc,0x266,0x2d7,_0x27aefa._0x48c050)]});},_0x47fa33=await _0x51857a();function _0x612081(_0x45b0a9,_0x3bceea,_0x4ac23f,_0x55e78c){return _0x3c7c8d(_0x55e78c- -_0x5edf34._0x20a3ea,_0x3bceea-_0x5edf34._0x1104c1,_0x4ac23f-_0x5edf34._0x468217,_0x3bceea);}if(_0x47fa33[_0x612081(_0x2b9460._0x3d941b,0x257,0x202,0x1db)]!==0x191||!this[_0x543776(-0x126,-0x159,-_0x2b9460._0x53e712,-_0x2b9460._0x4ef051)])return _0x47fa33;function _0x543776(_0x3d27b2,_0x4ca86f,_0x157f97,_0x2d3669){return _0x3c7c8d(_0x3d27b2- -0x404,_0x4ca86f-0x1bc,_0x157f97-0x163,_0x157f97);}return this[_0x543776(-0x126,-0x129,-0x160,-0x132)][_0x612081(_0x2b9460._0x41ec85,_0x2b9460._0x4af3c8,0x43,_0x2b9460._0x24d951)](),_0x51857a();}[_0x3c7c8d(0x27a,0x28e,0x339,0x30b)](){const _0x4f4ee4={_0x596efe:0x173,_0x301ecd:0x13d},_0x5bd8d8={_0x4bfe31:0x4ff};function _0x2a98a3(_0x3a102e,_0x2f0f80,_0x1c3093,_0xcaafd9){return _0x65d232(_0x1c3093-0x13b,_0x3a102e,_0x1c3093-0x24,_0xcaafd9-0x14e);}function _0x8647f1(_0x5b14e7,_0x4caf84,_0x5584aa,_0x13e9bc){return _0x3c7c8d(_0x13e9bc- -_0x5bd8d8._0x4bfe31,_0x4caf84-0x199,_0x5584aa-0xf7,_0x5584aa);}return this[_0x8647f1(-0x23f,-_0x4f4ee4._0x596efe,-0x22f,-0x1c5)][_0x2a98a3(0x177,0x134,_0x4f4ee4._0x301ecd,0x1c3)]();}async[_0x65d232(0xc7,0x61,0x2d,0xd1)](_0x19233a,_0x250094){const _0x1067ea={_0x348434:0x35d,_0x19f016:0x34d},_0x295223={_0x4aec8c:0xef};function _0x3b148c(_0x4075cc,_0x4a0718,_0x4b1ed4,_0x5ae727){return _0x3c7c8d(_0x4b1ed4-0x263,_0x4a0718-0xc7,_0x4b1ed4-0x149,_0x4a0718);}function _0xf659d1(_0x5121d,_0x34599e,_0x3c31ea,_0xf92303){return _0x65d232(_0x5121d-0x2a9,_0xf92303,_0x3c31ea-0x139,_0xf92303-_0x295223._0x4aec8c);}return await this[_0xf659d1(0x36b,_0x1067ea._0x348434,_0x1067ea._0x19f016,0x3e4)][_0xf659d1(0x370,0x2ef,0x309,0x318)](_0x19233a,_0x250094);}[_0x3c7c8d(0x397,0x3ed,0x2e1,0x329)](_0x59f2aa){const _0x354521={_0x21b21f:0x24a,_0x3270bd:0x223,_0x10c008:0x21c,_0x39b4b9:0x21b,_0x1de2c7:0x24f,_0x63b569:0x1c3},_0x4cd8b4={_0x1f7985:0xa4,_0x30a11a:0x97,_0x1ba574:0x141},_0x22eace={_0x1f8d73:0xd6,_0x3448d3:0x149};function _0x31e686(_0x306c81,_0x3d0586,_0x2e91aa,_0x3d18e7){return _0x3c7c8d(_0x2e91aa- -_0x22eace._0x1f8d73,_0x3d0586-0x145,_0x2e91aa-_0x22eace._0x3448d3,_0x3d18e7);}function _0x45100b(_0x40071d,_0x302e3d,_0x1e3ba2,_0x19157d){return _0x65d232(_0x19157d-_0x4cd8b4._0x1f7985,_0x1e3ba2,_0x1e3ba2-_0x4cd8b4._0x30a11a,_0x19157d-_0x4cd8b4._0x1ba574);}return this[_0x31e686(_0x354521._0x21b21f,_0x354521._0x3270bd,0x264,_0x354521._0x10c008)][_0x45100b(_0x354521._0x39b4b9,0x166,_0x354521._0x1de2c7,_0x354521._0x63b569)](_0x59f2aa);}async[_0x3c7c8d(0x24e,0x1ea,0x1da,0x1ed)](_0x454ab1){const _0x41ad00={_0x5c115f:0xf8},_0x27f47c={_0x44c761:0x242,_0x5a7347:0x13e};function _0x9c214a(_0x2ed27f,_0x51adb1,_0x28a9f4,_0x2659b9){return _0x3c7c8d(_0x28a9f4- -_0x27f47c._0x44c761,_0x51adb1-0x127,_0x28a9f4-_0x27f47c._0x5a7347,_0x2ed27f);}return await this[_0x9c214a(0x9c,0xad,_0x41ad00._0x5c115f,0x18b)]['toApiError'](_0x454ab1);}['getSurface'](_0xf46436){const _0x1a8a7b={_0x1d2b33:0x371,_0x49b0d2:0x3fd,_0x3f5fb5:0x450,_0x5e7d7c:0x3ad,_0x10cde9:0x2e5,_0x5138bd:0x2f0,_0x4f26c7:0x253,_0x5574cf:0x278,_0x459beb:0x290},_0x3ecedd={_0x1e9feb:0x363,_0x447cfe:0x19,_0x2ed526:0x9b},_0x41951a={_0x253dbb:0x217,_0x5636b4:0x113};function _0xdb923a(_0x1878c0,_0x1f09e2,_0x454e80,_0x5d8f85){return _0x65d232(_0x1f09e2-_0x41951a._0x253dbb,_0x454e80,_0x454e80-_0x41951a._0x5636b4,_0x5d8f85-0x17f);}function _0x38a833(_0x29b07e,_0x26c435,_0x24f727,_0x53fd03){return _0x65d232(_0x26c435-_0x3ecedd._0x1e9feb,_0x29b07e,_0x24f727-_0x3ecedd._0x447cfe,_0x53fd03-_0x3ecedd._0x2ed526);}const _0x527800=this[_0x38a833(_0x1a8a7b._0x1d2b33,0x39b,_0x1a8a7b._0x49b0d2,_0x1a8a7b._0x3f5fb5)][_0x38a833(_0x1a8a7b._0x5e7d7c,0x355,0x301,_0x1a8a7b._0x10cde9)](_0xf46436);if(!_0x527800)throw new Error(_0xdb923a(_0x1a8a7b._0x5138bd,_0x1a8a7b._0x4f26c7,_0x1a8a7b._0x5574cf,_0x1a8a7b._0x459beb)+_0xf46436);return _0x527800;}async[_0x65d232(0x8,-0x32,0x3a,0x90)](_0x5fa2b3,_0x356acf){const _0x4eca47={_0xc3f3d4:0x344,_0x29b680:0x2aa,_0x1f92f1:0x3d1,_0x443dd2:0x314,_0x4c79cc:0x2cc,_0x5bbfe0:0x2a0,_0x19588b:0x2c8,_0x56409c:0x4f5,_0x1f15a0:0x48d,_0x4f4786:0x3e7,_0xde1570:0x3b3,_0x2e4c3a:0x3f5,_0x4b84e5:0x327,_0x4b1cce:0x4a7,_0x2ef8cb:0x494,_0x5f0b3f:0x464,_0x6c5f9e:0x372,_0x3ed97b:0x2fe,_0x190899:0x276,_0x3a01ad:0x2d4},_0x3befca={_0x24e93f:0x1aa},_0x9b94db=toModelRequest(_0x5fa2b3),_0x8f3d76=await prepareProviderRequest(_0x9b94db,{'sessionManager':this[_0x372b6f(_0x4eca47._0xc3f3d4,_0x4eca47._0x29b680,0x271,0x296)],'requestMutators':this['requestMutators'],'signal':_0x356acf}),_0x4263b9=toChatRequest(_0x8f3d76[_0x1fa85b(_0x4eca47._0x1f92f1,0x41d,_0x4eca47._0x443dd2,0x33d)]),_0x3c1f2b=this['providerAdapter'][_0x372b6f(0x229,_0x4eca47._0x4c79cc,_0x4eca47._0x5bbfe0,_0x4eca47._0x19588b)](this[_0x1fa85b(0x476,0x4dc,_0x4eca47._0x56409c,_0x4eca47._0x1f15a0)],_0x8f3d76['session']);function _0x1fa85b(_0xca5458,_0x72a9e4,_0x139f05,_0x1fc3da){return _0x3c7c8d(_0xca5458-0x16d,_0x72a9e4-0x150,_0x139f05-0x1cd,_0x139f05);}if(!_0x3c1f2b)throw this[_0x1fa85b(_0x4eca47._0x4f4786,_0x4eca47._0xde1570,_0x4eca47._0x2e4c3a,_0x4eca47._0x4b84e5)]();function _0x372b6f(_0x4398fd,_0x4b832e,_0xce94e3,_0x209c31){return _0x3c7c8d(_0x4b832e- -0x34,_0x4b832e-0x115,_0xce94e3-_0x3befca._0x24e93f,_0x4398fd);}return{'baseUrl':this[_0x1fa85b(_0x4eca47._0x4b1cce,_0x4eca47._0x2ef8cb,0x3f6,_0x4eca47._0x5f0b3f)]['resolveBaseUrl'](this[_0x372b6f(_0x4eca47._0x6c5f9e,_0x4eca47._0x3ed97b,_0x4eca47._0x190899,_0x4eca47._0x3a01ad)],_0x8f3d76['session']),'credential':_0x3c1f2b,'request':_0x4263b9,'session':_0x8f3d76['session']};}[_0x65d232(0x12c,0x194,0x122,0x1b8)](_0x1b777){const _0x4d09ff={_0x30fb6e:0x379,_0xde9138:0x343},_0x2989ba={_0x5086a1:0x55},_0x20ca93={_0xb742ce:0x32d};function _0x480a25(_0xb76343,_0x536aa3,_0x198e90,_0x16ca15){return _0x65d232(_0x16ca15-_0x20ca93._0xb742ce,_0x536aa3,_0x198e90-0xb4,_0x16ca15-0x6d);}function _0x333882(_0x48e94d,_0x37eae3,_0x2b3e36,_0x28cb51){return _0x3c7c8d(_0x28cb51-0x86,_0x37eae3-_0x2989ba._0x5086a1,_0x2b3e36-0x12,_0x2b3e36);}return{...structuredClone(_0x1b777),..._0x1b777['reasoning']===void 0x0&&this[_0x480a25(0x421,0x415,0x35b,0x372)]!==void 0x0?{'reasoning':structuredClone(this[_0x333882(0x2c5,0x355,_0x4d09ff._0x30fb6e,_0x4d09ff._0xde9138)])}:{}};}async['sendHttpSurfaceRequest'](_0x1b23fb,_0x5a6511,_0x5578ed,_0x362565){const _0x56fb4d={_0x566bfe:0x187,_0x2a3785:0x18b,_0x25e760:0x1be,_0x4d8d40:0x27a,_0x1c8411:0x245,_0xeb3099:0x264,_0x5d4c55:0x264,_0x4aab34:0x23d},_0x43699d={_0x4e023c:0x1c3,_0x56d12c:0x52},_0x4a1c3e={_0x3144c6:0x2ca,_0x1e3ace:0x26},_0x57a369={_0x4aeff7:0x1fe,_0x2a7f10:0x5d,_0x429c02:0x8d,_0x43755c:0x223,_0x245f9d:0x43,_0x313f0f:0x1b8,_0x1bae56:0x1c9,_0x7cbd7c:0x275,_0x3137fa:0x1b,_0x4f8a48:0x1d,_0x166829:0xa5,_0x86e507:0xe1,_0x335646:0x1c2,_0x4690aa:0x211,_0x4c4eb2:0x11d,_0x157fef:0xc0,_0x299f75:0x21c,_0x40cafb:0x107,_0x519461:0xea,_0x7ffd84:0x169,_0x487665:0x64,_0x161304:0x115,_0x450e63:0x92,_0x44f701:0x16b,_0x454986:0xc4},_0x2306bc=async()=>{const _0x50bb99=await this[_0x34bb94(-0x293,-_0x57a369._0x4aeff7,-0x190,-0x179)](_0x1b23fb,_0x362565),_0x103533=_0x5a6511[_0x101873(-_0x57a369._0x2a7f10,-0x1b,-_0x57a369._0x429c02,-0x29)](_0x50bb99['request']);function _0x34bb94(_0x572068,_0x33c00d,_0x5c1942,_0x422a61){return _0x501c(_0x33c00d- -0x2f9,_0x572068);}function _0x101873(_0x165124,_0x31c75e,_0x247332,_0x2a99af){return _0x501c(_0x31c75e- -0xfc,_0x2a99af);}if(!_0x103533[_0x34bb94(-0x2cf,-_0x57a369._0x43755c,-0x283,-0x299)])throw new Error(_0x101873(0x12c,0xc2,0x125,_0x57a369._0x245f9d)+_0x5a6511['id']+_0x34bb94(-_0x57a369._0x313f0f,-0x206,-_0x57a369._0x1bae56,-_0x57a369._0x7cbd7c));const _0x285fad=await this['createHeaders']({'request':_0x50bb99[_0x101873(_0x57a369._0x3137fa,-_0x57a369._0x4f8a48,-0x80,-_0x57a369._0x166829)],'body':_0x103533[_0x101873(0x10a,0x92,_0x57a369._0x86e507,0xb5)],'credential':_0x50bb99[_0x34bb94(-_0x57a369._0x335646,-_0x57a369._0x4690aa,-0x1d2,-0x280)],'session':_0x50bb99['session'],'stream':_0x5578ed},{'accept':_0x103533['accept']??(_0x5578ed?_0x101873(0x17d,_0x57a369._0x4c4eb2,0x1ac,0xd0):_0x101873(0x14f,_0x57a369._0x157fef,0x37,0xba)),'includeContentType':_0x103533['body']!==void 0x0});for(const [_0x46fb1b,_0x1288d7]of Object[_0x34bb94(-0xd8,-0x15a,-_0x57a369._0x299f75,-0xfe)](_0x103533[_0x34bb94(-_0x57a369._0x40cafb,-0xcd,-0xb4,-_0x57a369._0x519461)]??{})){_0x285fad[_0x34bb94(-0x1a8,-_0x57a369._0x7ffd84,-0xc0,-0x1b2)](_0x46fb1b,_0x1288d7);}return this['fetchImpl'](''+_0x50bb99[_0x101873(0xa2,0xb1,_0x57a369._0x487665,0x39)]+_0x103533['path'],{'method':_0x34bb94(-0xea,-_0x57a369._0x161304,-0x16e,-0x7b),'headers':_0x285fad,..._0x103533[_0x101873(0xab,_0x57a369._0x450e63,0x81,0x45)]!==void 0x0?{'body':JSON['stringify'](_0x103533[_0x34bb94(-0x111,-_0x57a369._0x44f701,-_0x57a369._0x454986,-0xc9)])}:{},'signal':_0x362565});},_0x129c71=await _0x2306bc();function _0x85e171(_0x1f2826,_0x1c79e0,_0x5caf80,_0xdada4e){return _0x65d232(_0x5caf80- -_0x4a1c3e._0x3144c6,_0x1c79e0,_0x5caf80-0x1df,_0xdada4e-_0x4a1c3e._0x1e3ace);}if(_0x129c71[_0x85e171(-_0x56fb4d._0x566bfe,-_0x56fb4d._0x2a3785,-_0x56fb4d._0x25e760,-0x1e6)]!==0x191||!this[_0x85e171(-_0x56fb4d._0x4d8d40,-_0x56fb4d._0x1c8411,-_0x56fb4d._0xeb3099,-0x326)])return _0x129c71;function _0x5e1ae2(_0x2b6dbb,_0x11fa2d,_0x34b902,_0x217063){return _0x3c7c8d(_0x34b902- -0x100,_0x11fa2d-_0x43699d._0x4e023c,_0x34b902-_0x43699d._0x56d12c,_0x11fa2d);}return this[_0x85e171(-0x2e7,-0x27c,-_0x56fb4d._0x5d4c55,-0x202)][_0x85e171(-0x208,-_0x56fb4d._0x4aab34,-0x2c5,-0x20d)](),_0x2306bc();}async*[_0x3c7c8d(0x230,0x1c6,0x268,0x1de)](_0x431803,_0x59c165,_0x17f59a){const _0x14b594={_0x1ddb4d:0x1d5,_0x143d06:0x166,_0x258a43:0x14d,_0x447c17:0x1c8,_0x438843:0x63,_0x50d7c9:0x8b,_0x17615b:0x5,_0x39b4dc:0x9b,_0x4e6290:0xbc,_0x5904d3:0x23f,_0x29cc6a:0x1c9,_0x154da0:0x57},_0x4b350d={_0x54e8e6:0x1b1},_0x413c77={_0x263100:0xa1},_0x667e4=await this[_0xd003dd(-0x147,-_0x14b594._0x1ddb4d,-_0x14b594._0x143d06,-_0x14b594._0x258a43)](_0x431803,_0x59c165,!![],_0x17f59a);if(!_0x667e4['ok'])throw await this[_0xd003dd(-0x27a,-_0x14b594._0x447c17,-0x118,-0x1b6)](_0x667e4);const _0x3512d3=_0x59c165['createStreamParser']?.(_0x431803);if(!_0x3512d3?.[_0x333d4d(-_0x14b594._0x438843,_0x14b594._0x50d7c9,0x12,-_0x14b594._0x17615b)])throw new Error(_0xd003dd(-_0x14b594._0x39b4dc,-0xd3,-_0x14b594._0x4e6290,-0xe1)+_0x59c165['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0xa659dd of iterateSseEvents(_0x667e4,_0x17f59a)){yield*_0x3512d3['consumeSseEvent'](_0xa659dd);}function _0x333d4d(_0x3b2ddb,_0x59d467,_0xa34043,_0x2f763b){return _0x65d232(_0xa34043- -_0x413c77._0x263100,_0x3b2ddb,_0xa34043-0x148,_0x2f763b-0x10b);}function _0xd003dd(_0x22326e,_0x430896,_0x13a0b8,_0xbe6622){return _0x65d232(_0x430896- -0x19e,_0x13a0b8,_0x13a0b8-0x10e,_0xbe6622-_0x4b350d._0x54e8e6);}yield{'type':_0xd003dd(-0x20a,-0x19b,-_0x14b594._0x5904d3,-_0x14b594._0x29cc6a),'response':_0x3512d3[_0xd003dd(-0x134,-0x93,-0x88,-_0x14b594._0x154da0)]()};}async*[_0x3c7c8d(0x350,0x303,0x2cb,0x323)](_0x844b5a,_0x146683,_0x54626c){const _0x5aba69={_0x44c6fa:0x3bb,_0x3d0264:0x338,_0x109d38:0x3c1,_0x5ba442:0x321,_0x53fdbe:0x370,_0x4698cd:0x31f,_0x372b7a:0x12a,_0x1fceeb:0x127,_0x43bede:0x17e,_0x51e751:0x316,_0x4c5a25:0x3ae,_0xa2f800:0x2e5,_0x1c8fe8:0x3b9,_0x50bde7:0x214,_0x199494:0x16d,_0x19e992:0x23d,_0x812aa4:0x287,_0x2e4d16:0x210,_0x4b7c93:0x248,_0x5f1af8:0x27d,_0x177fb1:0x399,_0x51c596:0x36f,_0x45a5a1:0x270,_0x45f132:0x26b,_0x4ef1c1:0x183,_0x45f5b9:0x212,_0x2145bd:0x1bd,_0x36c7d2:0x236,_0x3e14fc:0x19e,_0x23a9a2:0x24f,_0x5b8c31:0x197,_0x5631f9:0xd6,_0x5ae27c:0x446,_0x563d54:0x394,_0x39d99b:0x3ea,_0x43e9bd:0x3f3,_0x4f6fd:0x21a,_0x52fb1c:0x2a0,_0x244a55:0x1e0,_0x51a7b5:0x41f,_0xfdb75d:0x3ba,_0x4e6a34:0x499,_0x306ada:0x4c5,_0x4686ac:0x475,_0x3d5d74:0x3e5,_0x19636e:0x138,_0xd5cbd9:0x152,_0x29b997:0x7a,_0x11b0e0:0x180,_0x1725f1:0x3f8,_0x4c932b:0x3ba,_0x5db440:0x396,_0x413349:0x365,_0x91f5b4:0x309,_0x2bd746:0x1cc,_0x281982:0x189,_0x1e143e:0x231},_0x20c535={_0x2982d8:0x333,_0x22a64e:0x55};function _0x46246a(_0x110ac9,_0x21ee77,_0x21afcb,_0x859fff){return _0x3c7c8d(_0x110ac9- -0x12f,_0x21ee77-0x37,_0x21afcb-0x1b8,_0x21ee77);}const _0x21ec18=await this[_0x1ad16b(0x33b,_0x5aba69._0x44c6fa,_0x5aba69._0x3d0264,_0x5aba69._0x109d38)](_0x844b5a,_0x54626c),_0x4d4c2a=_0x146683[_0x1ad16b(_0x5aba69._0x5ba442,0x30c,0x304,_0x5aba69._0x53fdbe)](_0x21ec18[_0x1ad16b(_0x5aba69._0x4698cd,0x27b,0x2b8,0x267)]),_0x24775f=_0x146683[_0x46246a(0x1ce,0x1da,0x220,0x21f)]?.(_0x844b5a);if(!_0x24775f?.['consumeWebSocketEvent'])throw new Error('Surface\x20'+_0x146683['id']+_0x46246a(_0x5aba69._0x372b7a,0x12f,_0x5aba69._0x1fceeb,0x14f));const _0x4366b8=_0x4d4c2a['url']??(_0x4d4c2a[_0x1ad16b(0x316,0x38d,0x26b,0x263)]?(''+_0x21ec18[_0x46246a(0x203,_0x5aba69._0x43bede,0x1d3,0x18b)]+_0x4d4c2a[_0x1ad16b(_0x5aba69._0x51e751,_0x5aba69._0x4c5a25,0x292,_0x5aba69._0xa2f800)])[_0x1ad16b(_0x5aba69._0x1c8fe8,0x3f0,0x2fd,0x3ad)](/^http:/,'ws:')['replace'](/^https:/,'wss:'):void 0x0);function _0x1ad16b(_0x502181,_0x2339d8,_0xd26a5f,_0x3182ec){return _0x65d232(_0x502181-_0x20c535._0x2982d8,_0x3182ec,_0xd26a5f-0x179,_0x3182ec-_0x20c535._0x22a64e);}if(!_0x4366b8)throw new Error(_0x46246a(_0x5aba69._0x50bde7,0x16a,_0x5aba69._0x199494,_0x5aba69._0x19e992)+_0x146683['id']+_0x46246a(0x1e9,0x216,0x2a8,_0x5aba69._0x812aa4));const _0x5cd2c4=await this[_0x46246a(_0x5aba69._0x2e4d16,0x163,0x24f,_0x5aba69._0x4b7c93)]({'request':_0x21ec18[_0x1ad16b(0x31f,0x3aa,_0x5aba69._0x5f1af8,_0x5aba69._0x177fb1)],'body':_0x4d4c2a[_0x1ad16b(0x404,0x44f,0x3c5,_0x5aba69._0x51c596)],'credential':_0x21ec18['credential'],'session':_0x21ec18[_0x1ad16b(0x2f1,_0x5aba69._0x45a5a1,_0x5aba69._0x45f132,0x301)],'stream':!![]},{'accept':_0x4d4c2a[_0x46246a(0x1d8,0x160,_0x5aba69._0x4ef1c1,0x1c8)]??_0x46246a(_0x5aba69._0x45f5b9,_0x5aba69._0x2145bd,_0x5aba69._0x36c7d2,_0x5aba69._0x3e14fc),'includeContentType':![]});for(const [_0x4b3a76,_0x202a17]of Object['entries'](_0x4d4c2a[_0x46246a(0x282,0x236,_0x5aba69._0x23a9a2,0x299)]??{})){_0x5cd2c4[_0x1ad16b(0x3d0,0x3ea,0x44d,0x413)](_0x4b3a76,_0x202a17);}_0x5cd2c4[_0x46246a(0x12b,_0x5aba69._0x5b8c31,_0x5aba69._0x5631f9,0xf3)]('accept');const _0x81ebc4=this[_0x1ad16b(0x39f,0x407,0x300,_0x5aba69._0x5ae27c)]({'headers':Object['fromEntries'](_0x5cd2c4[_0x1ad16b(0x3df,0x325,_0x5aba69._0x563d54,_0x5aba69._0x39d99b)]()),'url':_0x4366b8});try{throwIfAborted(_0x54626c);_0x81ebc4['readyState']!==WebSocket[_0x1ad16b(_0x5aba69._0x43e9bd,0x3ce,0x46e,0x3b1)]&&await waitForWebSocketOpen(_0x81ebc4,_0x54626c);throwIfAborted(_0x54626c);_0x4d4c2a[_0x46246a(_0x5aba69._0x4f6fd,_0x5aba69._0x52fb1c,_0x5aba69._0x244a55,0x170)]!==void 0x0&&_0x81ebc4[_0x1ad16b(0x380,0x403,_0x5aba69._0x51a7b5,_0x5aba69._0xfdb75d)](JSON['stringify'](_0x4d4c2a[_0x1ad16b(0x404,_0x5aba69._0x4e6a34,_0x5aba69._0x306ada,_0x5aba69._0x4686ac)]));for await(const _0x20d293 of iterateWebSocketMessages(_0x81ebc4,_0x54626c)){yield*_0x24775f['consumeWebSocketEvent'](_0x20d293);if(_0x24775f[_0x46246a(0x200,0x233,0x1a6,0x282)]?.())break;}yield{'type':'done','response':_0x24775f[_0x1ad16b(0x43e,_0x5aba69._0x3d5d74,0x3fe,0x4f8)]()};}finally{_0x81ebc4[_0x46246a(_0x5aba69._0x19636e,_0x5aba69._0xd5cbd9,_0x5aba69._0x29b997,_0x5aba69._0x11b0e0)]===WebSocket[_0x1ad16b(0x3f3,_0x5aba69._0x1725f1,_0x5aba69._0x4c932b,0x48f)]&&_0x81ebc4[_0x1ad16b(0x3a1,0x347,_0x5aba69._0x5db440,_0x5aba69._0x3d0264)](0x3e8,_0x54626c?.['aborted']?_0x1ad16b(0x3b2,_0x5aba69._0x413349,_0x5aba69._0x91f5b4,0x434):_0x46246a(0x22a,_0x5aba69._0x2bd746,_0x5aba69._0x281982,_0x5aba69._0x1e143e));}}};async function createHttpError(_0xe52ea){const _0x20c3ef={_0x2928da:0x231,_0x37cb91:0x24e,_0x36aea4:0x2e6,_0x445c33:0x317,_0x42733f:0x27f},_0x50986f={_0x1d2fe9:0x465,_0x2d8092:0xb0},_0x59f0b7={_0x4bdb78:0x105};function _0x1d7b9d(_0x8f85c3,_0x5c94a6,_0x596154,_0x488962){return _0x3c7c8d(_0x488962- -_0x59f0b7._0x4bdb78,_0x5c94a6-0x13b,_0x596154-0x1f1,_0x596154);}function _0x559175(_0x22c3e2,_0xaf34c7,_0x168ef2,_0x11927b){return _0x3c7c8d(_0x22c3e2- -_0x50986f._0x1d2fe9,_0xaf34c7-0x3f,_0x168ef2-_0x50986f._0x2d8092,_0xaf34c7);}const _0x236fc6=await _0xe52ea['text'](),_0x34d1be=_0x236fc6[_0x559175(-0x220,-_0x20c3ef._0x2928da,-0x1f2,-0x18e)]()||_0xe52ea[_0x1d7b9d(0x2d8,0x271,0x2ab,_0x20c3ef._0x37cb91)]||'Unknown\x20provider\x20error';return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0xe52ea[_0x1d7b9d(0x2c7,_0x20c3ef._0x36aea4,_0x20c3ef._0x445c33,_0x20c3ef._0x42733f)]+':\x20'+_0x34d1be);}var AnthropicProviderAdapter=class{[_0x65d232(0xe2,0x116,0x155,0xe0)];[_0x65d232(-0x28,-0xd3,-0x68,-0x10)];[_0x65d232(0xc3,0x2,0x122,0x144)];constructor(_0x1a0e2d){const _0x5b453a={_0x4d825b:0x35f,_0x4e142c:0x2dc,_0x179914:0x2fe,_0xc668c2:0x349,_0x1be0a8:0x2e8,_0x345048:0x365,_0x59fa52:0x49d,_0x514aa6:0x473,_0x56394b:0x3fa,_0x5ad318:0x40f,_0x2bb927:0x337},_0x3c4f75={_0x35b131:0x7e,_0x4bac91:0x33},_0x499a43={_0x25d51b:0x162,_0x2c5912:0x103};function _0x2cf92b(_0x4915b6,_0x4348f5,_0x1c4c67,_0x54f264){return _0x3c7c8d(_0x4915b6-_0x499a43._0x25d51b,_0x4348f5-_0x499a43._0x2c5912,_0x1c4c67-0x1ce,_0x4348f5);}this[_0x40c67f(_0x5b453a._0x4d825b,0x367,_0x5b453a._0x4e142c,_0x5b453a._0x179914)]=_0x1a0e2d[_0x40c67f(_0x5b453a._0x4d825b,_0x5b453a._0xc668c2,_0x5b453a._0x1be0a8,_0x5b453a._0x345048)];function _0x40c67f(_0xdaba8a,_0x26820b,_0x267208,_0x5c71e0){return _0x65d232(_0xdaba8a-0x27d,_0x5c71e0,_0x267208-_0x3c4f75._0x35b131,_0x5c71e0-_0x3c4f75._0x4bac91);}this['headerResolver']=_0x1a0e2d['headerResolver'],this[_0x2cf92b(_0x5b453a._0x59fa52,_0x5b453a._0x514aa6,_0x5b453a._0x56394b,_0x5b453a._0x5ad318)]=_0x1a0e2d[_0x40c67f(0x340,_0x5b453a._0x2bb927,0x346,0x368)];}[_0x3c7c8d(0x27a,0x31b,0x230,0x32c)](){const _0x486748={_0x444a1b:0x11f,_0x840b29:0x137};function _0x5f34c1(_0x36ffe2,_0x4f7b61,_0x174f53,_0x150c97){return _0x65d232(_0x150c97-0x143,_0x174f53,_0x174f53-0x23,_0x150c97-0x6b);}return new Error(_0x5f34c1(_0x486748._0x444a1b,0x14c,_0x486748._0x840b29,0x1d8));}async['createHeaders'](_0x2a92f7,_0x5c191d){const _0x50d97c={_0x36cf29:0x1b0,_0xf59bff:0x27d,_0x34b485:0x20c,_0x1034cf:0x18b,_0x5a9bd7:0x164,_0x3102b3:0x22b,_0x1ef1a0:0x201,_0x504789:0x24a,_0x118f02:0x15a,_0x4318f4:0x375,_0xe4a5a1:0x382,_0x261435:0x227,_0x486085:0x2d1,_0x47bf78:0x344,_0x510dac:0x219,_0x59fcd4:0x1fb,_0x38cfba:0x14b,_0x1aa5bd:0x38f,_0x12d82c:0x3c1,_0x154c24:0x363,_0x5dcc9d:0x1ee,_0x2267c5:0x227,_0xd6f030:0x2df,_0x4ce75b:0x26f,_0x356799:0x339,_0x265ef9:0x2a8,_0x7e6cdb:0x31d,_0x422589:0x27a,_0x390a70:0x34a,_0x404726:0x3d6,_0x2098aa:0x2cf,_0x2af212:0x2b1,_0x1ee844:0x34c,_0x2c51f6:0x351,_0x22fe72:0x2f3,_0x51ccf5:0x22f,_0x5a3cfc:0x3d1,_0x235388:0x381,_0x44918e:0x22f,_0x35644e:0x2e7,_0x220003:0x2e8,_0x3e5a74:0x359,_0x29cbbd:0x2d5,_0x1efe73:0x2cb},_0x5abe4d={_0x56be2d:0x53c,_0x5077bc:0xa6},_0x4ac377={_0x5db9ed:0x2ad,_0x319375:0x1a5},_0x2b85bf=new Headers();_0x2b85bf[_0x1c7560(-0x1ca,-0x227,-_0x50d97c._0x36cf29,-0x26b)](_0x1c7560(-0x21f,-0x235,-_0x50d97c._0xf59bff,-_0x50d97c._0x34b485),_0x5c191d['accept']),_0x2b85bf['set'](_0x1c7560(-_0x50d97c._0x1034cf,-0x21e,-0x1fe,-_0x50d97c._0x5a9bd7),this[_0x1c7560(-_0x50d97c._0x3102b3,-_0x50d97c._0x1ef1a0,-_0x50d97c._0x504789,-_0x50d97c._0x118f02)]);_0x5c191d[_0x1c7560(-_0x50d97c._0x4318f4,-0x2c6,-0x368,-_0x50d97c._0xe4a5a1)]!==![]&&_0x2b85bf[_0x1c7560(-0x1d4,-_0x50d97c._0x261435,-0x177,-0x26a)](_0x1c7560(-0x31e,-_0x50d97c._0x486085,-_0x50d97c._0x47bf78,-0x26c),_0x1c7560(-_0x50d97c._0x510dac,-_0x50d97c._0x59fcd4,-_0x50d97c._0x38cfba,-0x251));function _0x370687(_0x28dc2c,_0x4d0f13,_0x20261b,_0x11ddcd){return _0x65d232(_0x4d0f13-_0x4ac377._0x5db9ed,_0x28dc2c,_0x20261b-_0x4ac377._0x319375,_0x11ddcd-0xe2);}function _0x1c7560(_0x4198a5,_0x2db726,_0x89f05c,_0xa68e0a){return _0x3c7c8d(_0x2db726- -_0x5abe4d._0x56be2d,_0x2db726-_0x5abe4d._0x5077bc,_0x89f05c-0x195,_0x89f05c);}this[_0x370687(0x3dc,_0x50d97c._0x1aa5bd,0x3b8,0x350)]===_0x370687(0x32a,_0x50d97c._0x12d82c,0x454,_0x50d97c._0x154c24)?_0x2b85bf[_0x1c7560(-_0x50d97c._0x5dcc9d,-_0x50d97c._0x2267c5,-_0x50d97c._0xd6f030,-0x299)](_0x370687(0x264,0x296,_0x50d97c._0x4ce75b,_0x50d97c._0x356799),_0x1c7560(-_0x50d97c._0x265ef9,-0x242,-0x2b7,-0x2a1)+_0x2a92f7[_0x1c7560(-_0x50d97c._0x7e6cdb,-0x2cf,-0x302,-_0x50d97c._0x422589)]['value']):_0x2b85bf[_0x370687(0x360,_0x50d97c._0x390a70,0x2fb,0x342)](_0x370687(0x409,_0x50d97c._0x404726,0x3f9,0x3c1),_0x2a92f7[_0x1c7560(-0x22f,-_0x50d97c._0x2098aa,-0x29f,-0x26c)][_0x370687(_0x50d97c._0x2af212,0x2bd,_0x50d97c._0x265ef9,_0x50d97c._0x1ee844)]);const _0x32c76e=await this[_0x1c7560(-_0x50d97c._0x2c51f6,-0x2ec,-_0x50d97c._0x22fe72,-_0x50d97c._0x51ccf5)]?.({'body':_0x2a92f7[_0x370687(_0x50d97c._0x5a3cfc,0x348,0x286,_0x50d97c._0x235388)],'credential':_0x2a92f7['credential'],'request':_0x2a92f7[_0x1c7560(-0x376,-0x2d8,-0x289,-_0x50d97c._0x44918e)],'session':_0x2a92f7['session'],'stream':_0x2a92f7[_0x370687(0x24e,_0x50d97c._0x35644e,0x315,_0x50d97c._0x220003)]});for(const [_0x8f6dbc,_0x1c3e3c]of Object[_0x370687(0x3fc,_0x50d97c._0x3e5a74,_0x50d97c._0x29cbbd,_0x50d97c._0x1efe73)](_0x32c76e??{})){_0x2b85bf['set'](_0x8f6dbc,_0x1c3e3c);}return _0x2b85bf;}[_0x3c7c8d(0x397,0x38c,0x3fa,0x3c7)](_0x235b05){return _0x235b05;}['resolveBaseUrl'](_0x5b3468,_0x7e65bc){return resolveSessionBaseUrl(_0x5b3468,_0x7e65bc);}[_0x65d232(0x88,0xc,0xe1,0xa0)](_0x259fd9,_0x629045){return resolveApiCredential(_0x259fd9,_0x629045);}async[_0x3c7c8d(0x24e,0x19c,0x2b4,0x220)](_0x21c10d){return await createHttpError(_0x21c10d);}},AnthropicModel=class extends RoutedModel{constructor(_0x183a7d={}){const _0x46c2d9={_0x3141bc:0x431,_0x2b7676:0x4df,_0x890744:0x45e,_0x1be721:0xbe,_0x302a20:0x45,_0x6d7739:0x34,_0x5f5361:0x16,_0x1b2fae:0x7f,_0x1b8080:0x193,_0x4f340b:0x427,_0x5ec8a4:0x513,_0x4113e1:0x2,_0x4f7b1a:0x34c,_0x31e232:0x496,_0x4953a7:0x54a,_0x495797:0x493,_0xbf35ac:0x45c,_0x2a54c3:0x484},_0x52e906={_0x2dd2ca:0xcf},_0x3de3eb={_0x32237d:0x128,_0x3a52cd:0x3d};function _0x4851f0(_0x28cfb8,_0x439e51,_0x153b03,_0x384719){return _0x3c7c8d(_0x153b03-_0x3de3eb._0x32237d,_0x439e51-_0x3de3eb._0x3a52cd,_0x153b03-0x70,_0x384719);}function _0xba9d4(_0x5af320,_0x55aedc,_0x56d543,_0x495319){return _0x3c7c8d(_0x495319- -0x40e,_0x55aedc-_0x52e906._0x2dd2ca,_0x56d543-0xb8,_0x5af320);}super({'apiKey':_0x183a7d[_0x4851f0(0x407,0x4a2,_0x46c2d9._0x3141bc,0x4b8)],'baseUrl':trimTrailingSlashes(_0x183a7d[_0x4851f0(_0x46c2d9._0x2b7676,0x4aa,0x45a,0x4f1)]??_0x4851f0(0x4bb,0x370,0x423,_0x46c2d9._0x890744)),'fetch':_0x183a7d[_0xba9d4(-_0x46c2d9._0x1be721,-_0x46c2d9._0x302a20,-_0x46c2d9._0x1be721,-0x8c)],'maxTokens':_0x183a7d[_0xba9d4(_0x46c2d9._0x6d7739,-0x10d,_0x46c2d9._0x5f5361,-_0x46c2d9._0x1b2fae)]??0x4000,'model':_0x183a7d[_0xba9d4(-0x2c,-0x11d,-_0x46c2d9._0x1b8080,-0xe4)]??'claude-sonnet-4-20250514','reasoning':_0x183a7d['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x183a7d[_0x4851f0(_0x46c2d9._0x4f340b,0x3ec,0x482,_0x46c2d9._0x5ec8a4)]??_0xba9d4(_0x46c2d9._0x4113e1,-0x8,-0xed,-0x6d),'headerResolver':_0x183a7d[_0x4851f0(_0x46c2d9._0x4f7b1a,0x2cc,0x378,0x401)],'protocolVersion':_0x183a7d['protocolVersion']??_0x4851f0(0x512,0x473,0x49b,_0x46c2d9._0x31e232)}),'providerSessionResolver':_0x183a7d[_0x4851f0(_0x46c2d9._0x4953a7,0x4cf,_0x46c2d9._0x495797,0x453)],'requestMutators':_0x183a7d[_0x4851f0(0x469,_0x46c2d9._0xbf35ac,0x4c2,_0x46c2d9._0x2a54c3)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x3c7c8d(0x277,0x1bd,0x338,0x335)](_0x492650,_0x215e48){return this['completeViaSurface'](_0x492650,ANTHROPIC_MESSAGES_SURFACE,_0x215e48);}[_0x65d232(0x3a,-0x5b,0xe6,-0x37)](_0x428d22,_0x5c0259){return this['streamViaSurface'](_0x428d22,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x5c0259);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x3c7c8d(0x389,0x2ea,0x42d,0x3bd),OPENAI_RESPONSES_SURFACE=_0x3c7c8d(0x2e3,0x245,0x22e,0x380),OPENAI_RESPONSES_STREAM_SURFACE=_0x3c7c8d(0x37b,0x378,0x370,0x406),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x3c7c8d(0x339,0x2d3,0x38d,0x296),OpenAiApiError=class extends Error{['status'];[_0x3c7c8d(0x313,0x2c3,0x367,0x33f)];constructor(_0x38e9d0,_0x590739,_0xe79d2e){const _0x4ea857={_0x21c887:0x508,_0xbf1fbf:0x38d,_0x199274:0x397,_0x47e3cc:0x3a1},_0x102ad3={_0x1e411b:0xd6},_0x156ee9={_0x338ee8:0x5c,_0x3c12c9:0x14a};super(_0xe79d2e);function _0x3c9fb3(_0x56593b,_0x4b1a4a,_0x5433c1,_0x5dd84f){return _0x3c7c8d(_0x5dd84f-0x8e,_0x4b1a4a-_0x156ee9._0x338ee8,_0x5433c1-_0x156ee9._0x3c12c9,_0x5433c1);}function _0x394354(_0x5a4f05,_0x130a23,_0x580da2,_0x567b08){return _0x3c7c8d(_0x5a4f05-0x221,_0x130a23-_0x102ad3._0x1e411b,_0x580da2-0x6b,_0x580da2);}this[_0x394354(0x4fd,_0x4ea857._0x21c887,0x555,0x582)]='OpenAiApiError',this[_0x3c9fb3(0x38d,0x3ec,0x466,0x412)]=_0x38e9d0,this[_0x3c9fb3(_0x4ea857._0xbf1fbf,_0x4ea857._0x199274,0x35f,_0x4ea857._0x47e3cc)]=_0x590739;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x3c7c8d(0x384,0x43f,0x392,0x2fa)];constructor(_0x113924,_0x2ecab7={}){const _0xc7eb32={_0x347560:0x16b,_0x4488b6:0xe6,_0x510eb4:0x156,_0xd3e79c:0x125,_0x5c2419:0x76,_0x4fe6da:0x11e,_0x596479:0x37,_0x1e475d:0x63,_0x196bd5:0x6b,_0x68a1cb:0x61},_0x581897={_0x3abeac:0xe1},_0x213b40={_0x45bc61:0x3bb,_0x1a08fc:0x42,_0x305ec9:0x37};super(_0x113924),this[_0x2bfc03(-_0xc7eb32._0x347560,-0x191,-_0xc7eb32._0x4488b6,-_0xc7eb32._0x510eb4)]=_0x2bfc03(-0xaf,-_0xc7eb32._0xd3e79c,-_0xc7eb32._0x5c2419,-0x56);function _0x1637d0(_0x4474be,_0x18f8ae,_0x172adc,_0x2bb856){return _0x3c7c8d(_0x18f8ae- -_0x213b40._0x45bc61,_0x18f8ae-_0x213b40._0x1a08fc,_0x172adc-_0x213b40._0x305ec9,_0x4474be);}function _0x2bfc03(_0x48ffc1,_0x252bb0,_0x3295f2,_0x44a800){return _0x3c7c8d(_0x48ffc1- -0x447,_0x252bb0-_0x581897._0x3abeac,_0x3295f2-0x141,_0x3295f2);}this['code']=_0x2ecab7[_0x2bfc03(-0x180,-0xf0,-0x1d1,-_0xc7eb32._0x4fe6da)],this[_0x1637d0(-0x1b,-_0xc7eb32._0x596479,-0x5a,-_0xc7eb32._0x1e475d)]=_0x2ecab7[_0x1637d0(_0xc7eb32._0x196bd5,-0x37,-0x90,-_0xc7eb32._0x68a1cb)];}};function stringifySystem(_0x34fa3d){const _0xff770c={_0x397440:0x212,_0x5a282f:0x244,_0x2c3a5a:0x2ab},_0x2c7af3={_0x1dcc86:0x230,_0x46cb21:0x12},_0x322b3e={_0x27f77c:0x3e1,_0x4ef60b:0x14a};function _0x5c9a98(_0x7c37f3,_0x134b42,_0x2b8dd3,_0x2ba749){return _0x65d232(_0x7c37f3-_0x322b3e._0x27f77c,_0x134b42,_0x2b8dd3-0x125,_0x2ba749-_0x322b3e._0x4ef60b);}function _0x1e694d(_0x54f4f1,_0x5c7a03,_0x5a7a05,_0x31dc93){return _0x65d232(_0x31dc93-_0x2c7af3._0x1dcc86,_0x5c7a03,_0x5a7a05-_0x2c7af3._0x46cb21,_0x31dc93-0x112);}return _0x34fa3d[_0x1e694d(0x2cc,_0xff770c._0x397440,_0xff770c._0x5a282f,_0xff770c._0x2c3a5a)](_0x295013=>_0x295013[_0x5c9a98(0x4ef,0x447,0x56b,0x47e)])[_0x5c9a98(0x4cd,0x4ba,0x4a9,0x46d)]('\x0a\x0a');}function createToolDefinitions(_0x10d8c7){const _0x55276e={_0xb7101:0x1b4,_0x25d623:0x185},_0xa24ab8={_0x3a6128:0x3b4,_0x30af26:0xb5,_0x44ffb7:0x57,_0x3fd353:0x58a,_0x3a5627:0x3ab,_0x2b1384:0x38e},_0x2fa036={_0x5434b8:0x7f},_0x17800b={_0x29690c:0xfa,_0x4183b5:0x6a};function _0x3663ff(_0x289ed6,_0x4b206f,_0x1ba2b0,_0x3b0fdb){return _0x3c7c8d(_0x3b0fdb- -0xc4,_0x4b206f-0x1b4,_0x1ba2b0-0x7b,_0x289ed6);}if(_0x10d8c7[_0x3663ff(0x211,0x1f6,0x316,0x299)]===0x0)return void 0x0;function _0x4221e5(_0x4fd407,_0x1b9404,_0xf86724,_0x3fa62c){return _0x3c7c8d(_0x1b9404-_0x17800b._0x29690c,_0x1b9404-0x9e,_0xf86724-_0x17800b._0x4183b5,_0x4fd407);}return _0x10d8c7[_0x3663ff(_0x55276e._0xb7101,0x28b,_0x55276e._0x25d623,0x22f)](_0x120395=>{const _0x833d1e={_0x2ab34e:0x9d,_0x57d167:0x1a1};function _0x4b81c2(_0x4a3cc6,_0x11779a,_0x1e559c,_0xdd4564){return _0x4221e5(_0x1e559c,_0x11779a-_0x833d1e._0x2ab34e,_0x1e559c-0x18e,_0xdd4564-_0x833d1e._0x57d167);}function _0x231f7a(_0x58f57c,_0x3c7ad1,_0x18c02a,_0x3d9306){return _0x3663ff(_0x18c02a,_0x3c7ad1-0x192,_0x18c02a-_0x2fa036._0x5434b8,_0x3d9306- -0x1c1);}return{'type':_0x4b81c2(_0xa24ab8._0x3a6128,0x44f,0x466,0x456),'function':{'name':_0x120395[_0x231f7a(-0x3a,_0xa24ab8._0x30af26,0xca,_0xa24ab8._0x44ffb7)],'description':_0x120395[_0x4b81c2(_0xa24ab8._0x3fd353,0x4df,0x562,0x567)],'parameters':_0x120395[_0x4b81c2(0x46a,0x3db,_0xa24ab8._0x3a5627,_0xa24ab8._0x2b1384)]}};});}function stringifyValue(_0x38899b){const _0xf0a178={_0x1e0227:0x6c,_0x456aeb:0x112,_0x52c083:0x3b,_0x5ed66e:0x41},_0x17c0df={_0x1548b2:0xa0};function _0x27ca44(_0x3b00b0,_0x102fe6,_0x53cf2c,_0x29d0d3){return _0x65d232(_0x3b00b0- -_0x17c0df._0x1548b2,_0x53cf2c,_0x53cf2c-0x64,_0x29d0d3-0x4);}return typeof _0x38899b==='string'?_0x38899b:JSON[_0x27ca44(-_0xf0a178._0x1e0227,-_0xf0a178._0x456aeb,-_0xf0a178._0x52c083,-_0xf0a178._0x5ed66e)](_0x38899b);}function parseToolInput2(_0x415ac3){const _0x10d3e2={_0x4c83eb:0x28,_0x181139:0x5e},_0x10d4d7={_0x25fa6d:0xb};function _0x31ca54(_0x377aa0,_0x49be9e,_0x31ff3e,_0x5059d2){return _0x65d232(_0x49be9e- -_0x10d4d7._0x25fa6d,_0x5059d2,_0x31ff3e-0x1c4,_0x5059d2-0x8c);}try{return JSON[_0x31ca54(-_0x10d3e2._0x4c83eb,0x55,_0x10d3e2._0x181139,0x6e)](_0x415ac3);}catch{return _0x415ac3;}}function isResponsesReasoningItem(_0x5db4b2){const _0xe4399d={_0x29ecc0:0x203,_0x209758:0x32e,_0x27479c:0x26f,_0x362661:0x205,_0xc4136b:0x2ba},_0x272a01={_0x188590:0x1fd,_0x264267:0xb7},_0x1b580f={_0xd3a2d8:0x3,_0x490ade:0x1c0};function _0x16e497(_0x31d904,_0x1bf250,_0x2baab2,_0xc490ef){return _0x3c7c8d(_0xc490ef- -_0x1b580f._0xd3a2d8,_0x1bf250-_0x1b580f._0x490ade,_0x2baab2-0x99,_0x2baab2);}function _0xfe851c(_0xb031ba,_0xbce773,_0x2e4c60,_0x29825a){return _0x3c7c8d(_0xbce773- -_0x272a01._0x188590,_0xbce773-_0x272a01._0x264267,_0x2e4c60-0xe1,_0x29825a);}return typeof _0x5db4b2===_0x16e497(_0xe4399d._0x29ecc0,_0xe4399d._0x209758,0x295,_0xe4399d._0x27479c)&&_0x5db4b2!==null&&'type'in _0x5db4b2&&_0x5db4b2['type']===_0x16e497(0x200,_0xe4399d._0x362661,0x227,_0xe4399d._0xc4136b);}function isResponsesMessageItem(_0x470541){const _0x5dd322={_0x5408dc:0x4e2,_0x569f94:0x46b,_0x539361:0x502},_0x2446d7={_0x286c66:0x471,_0x56736c:0x1d3};function _0x53ff74(_0xc742f5,_0x1119c0,_0x47932d,_0x15dc7f){return _0x65d232(_0x47932d-_0x2446d7._0x286c66,_0xc742f5,_0x47932d-0x1df,_0x15dc7f-_0x2446d7._0x56736c);}return typeof _0x470541===_0x53ff74(_0x5dd322._0x5408dc,0x4b5,_0x5dd322._0x569f94,_0x5dd322._0x539361)&&_0x470541!==null&&'type'in _0x470541&&_0x470541['type']==='message';}function isResponsesFunctionCallItem(_0x18e606){const _0x2791f3={_0x4ba5c4:0x44e,_0x40ea61:0x4d0,_0x43c2af:0x617,_0xc5432c:0x601,_0x473e64:0x5bb,_0x30198f:0x4e9,_0x3263ee:0x523,_0x579438:0x441},_0x3f9e34={_0x12d25c:0x1be},_0x123a50={_0x5e6705:0x262,_0x1ff564:0x3,_0xe665ae:0x180};function _0x71f435(_0x3b4c4e,_0x1cfd05,_0x150ff6,_0x1d98b0){return _0x3c7c8d(_0x1cfd05-_0x123a50._0x5e6705,_0x1cfd05-_0x123a50._0x1ff564,_0x150ff6-_0x123a50._0xe665ae,_0x3b4c4e);}function _0x31e726(_0xe987dd,_0x4be7ca,_0x1721c5,_0x3e439f){return _0x65d232(_0xe987dd-0x42e,_0x3e439f,_0x1721c5-_0x3f9e34._0x12d25c,_0x3e439f-0x133);}return typeof _0x18e606===_0x71f435(_0x2791f3._0x4ba5c4,0x4d4,0x56a,_0x2791f3._0x40ea61)&&_0x18e606!==null&&_0x71f435(_0x2791f3._0x43c2af,0x5c1,_0x2791f3._0xc5432c,_0x2791f3._0x473e64)in _0x18e606&&_0x18e606[_0x31e726(0x515,_0x2791f3._0x30198f,0x5d6,_0x2791f3._0x3263ee)]===_0x31e726(0x3f0,_0x2791f3._0x579438,0x44c,0x4a7);}function createContentBlocks(_0x25d236,_0x1c57a1){const _0x36e21b={_0x4df3fa:0x29c,_0x1fbfe0:0x2c6,_0x391ff8:0x279,_0x5adc2d:0x1ec,_0x2811d8:0x2f8,_0x1545ff:0x267,_0x4aab2f:0x2d3,_0x4891d8:0x23a,_0x4b9504:0x26f,_0x3e7bc2:0x20c,_0x22b731:0x2d0,_0x545f4c:0x48e,_0x517896:0x355,_0xb91b6a:0x50f,_0x2f1712:0x58b,_0x1a871b:0x523,_0xc8e2b4:0x4f9,_0x15b2dc:0x50b,_0x2eef75:0x3e3,_0x5327ff:0x46d,_0x4bef6d:0x15e,_0x49f2b5:0x10d,_0x2cb8e0:0x18b,_0x5d3aaa:0x13e},_0x280115={_0x5003b4:0x1c5,_0x39a084:0xcc},_0x289a98={_0x4d3502:0x42a,_0x37f2ee:0x10c},_0x1af423=[];_0x25d236[_0x347e89(0x346,0x2aa,_0x36e21b._0x4df3fa,_0x36e21b._0x1fbfe0)]>0x0&&_0x1af423[_0x347e89(0x29e,_0x36e21b._0x391ff8,_0x36e21b._0x5adc2d,_0x36e21b._0x2811d8)]({'type':_0x347e89(_0x36e21b._0x1545ff,_0x36e21b._0x4aab2f,_0x36e21b._0x4891d8,_0x36e21b._0x4b9504),'text':_0x25d236});for(const _0x5e1711 of _0x1c57a1){if(_0x5e1711['id']['trim']()[_0x347e89(0x244,0x2aa,_0x36e21b._0x3e7bc2,_0x36e21b._0x22b731)]===0x0||_0x5e1711['function'][_0x205e6e(_0x36e21b._0x545f4c,0x44f,0x3d0,0x4aa)][_0x205e6e(0x3f7,0x370,_0x36e21b._0x517896,0x462)]()[_0x205e6e(_0x36e21b._0xb91b6a,0x4de,0x507,_0x36e21b._0x2f1712)]===0x0)continue;_0x1af423['push']({'type':_0x205e6e(_0x36e21b._0x1a871b,0x4fb,_0x36e21b._0xc8e2b4,0x46d),'id':_0x5e1711['id'],'name':_0x5e1711['function'][_0x205e6e(_0x36e21b._0x545f4c,_0x36e21b._0x15b2dc,_0x36e21b._0x2eef75,_0x36e21b._0x5327ff)],'input':parseToolInput2(_0x5e1711[_0x347e89(0x1df,0x205,_0x36e21b._0x4bef6d,0x22a)][_0x347e89(_0x36e21b._0x49f2b5,0x1a3,_0x36e21b._0x2cb8e0,_0x36e21b._0x5d3aaa)])});}function _0x205e6e(_0x2bc29d,_0x3b42c5,_0x33c559,_0x50c554){return _0x65d232(_0x2bc29d-_0x289a98._0x4d3502,_0x3b42c5,_0x33c559-0x39,_0x50c554-_0x289a98._0x37f2ee);}function _0x347e89(_0x163608,_0x478930,_0x1b3fb1,_0x5756cf){return _0x65d232(_0x478930-_0x280115._0x5003b4,_0x5756cf,_0x1b3fb1-_0x280115._0x39a084,_0x5756cf-0x1a9);}return _0x1af423;}function createUsage(_0x29a4e7){const _0x263a80={_0x43292c:0x3d2,_0x28b3a3:0x41d,_0x3ebbc6:0x394,_0xada250:0x496,_0x53e5ad:0x53d,_0x2659ef:0x4ea,_0x4a7ac1:0x436,_0x228c24:0x555},_0x150023={_0x42973b:0x1f0,_0x145362:0xd7},_0x25b377={_0x167f69:0x14e,_0x241101:0x194};function _0x5f5230(_0x588031,_0x55877e,_0x5e500a,_0x2fdf1a){return _0x3c7c8d(_0x55877e-_0x25b377._0x167f69,_0x55877e-0x1c2,_0x5e500a-_0x25b377._0x241101,_0x588031);}function _0x113334(_0x1c87f1,_0x48f2db,_0x3207b2,_0x4b93d7){return _0x3c7c8d(_0x48f2db-_0x150023._0x42973b,_0x48f2db-0x68,_0x3207b2-_0x150023._0x145362,_0x3207b2);}return{'inputTokens':_0x29a4e7?.[_0x5f5230(_0x263a80._0x43292c,_0x263a80._0x28b3a3,_0x263a80._0x3ebbc6,0x4da)]??0x0,'outputTokens':_0x29a4e7?.[_0x113334(_0x263a80._0xada250,0x500,_0x263a80._0x53e5ad,0x528)]??0x0,..._0x29a4e7?.[_0x5f5230(_0x263a80._0x2659ef,0x4ea,_0x263a80._0x4a7ac1,_0x263a80._0x228c24)]?.[_0x5f5230(0x49e,0x443,0x455,0x495)]!==void 0x0?{'reasoningTokens':_0x29a4e7['completion_tokens_details']['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x355ad6){const _0x5cc091={_0x41512c:0xf7,_0x5246d9:0xc6,_0xfa60aa:0x48a,_0x57c728:0x4dd,_0x5b2a14:0x543},_0x3e9822={_0xdab0e7:0x177};function _0x568bff(_0x24451e,_0x3e7197,_0x2535c3,_0xe07986){return _0x65d232(_0x3e7197-0x4bc,_0xe07986,_0x2535c3-0xfe,_0xe07986-0x124);}function _0xcb86a3(_0x4c0004,_0x431075,_0x24b9d9,_0x7aa8ad){return _0x65d232(_0x24b9d9- -0x10b,_0x4c0004,_0x24b9d9-_0x3e9822._0xdab0e7,_0x7aa8ad-0xef);}return _0x355ad6[_0xcb86a3(-0x7b,-_0x5cc091._0x41512c,-_0x5cc091._0x5246d9,-0x7)]?.[_0x568bff(0x467,_0x5cc091._0xfa60aa,_0x5cc091._0x57c728,_0x5cc091._0x5b2a14)]??'user-visible';}function isUserVisibleReasoning(_0x5d0b45){const _0x427ae2={_0x1caf4f:0x182},_0x1e65a3={_0x7f4586:0x1b1,_0x5d94d7:0x195};function _0x4484a3(_0x828543,_0x47a3f8,_0x1cfad6,_0x21f67d){return _0x65d232(_0x21f67d-0x9f,_0x1cfad6,_0x1cfad6-_0x1e65a3._0x7f4586,_0x21f67d-_0x1e65a3._0x5d94d7);}return resolveOpenAiReasoningConfig(_0x5d0b45[_0x4484a3(0x8d,_0x427ae2._0x1caf4f,0xf2,0xe4)])!==void 0x0&&resolveReasoningVisibility2(_0x5d0b45)==='user-visible';}function createChatRequestBody(_0x21615e,_0x4020f9){const _0x55bd9d={_0x66af4e:0x86,_0x32ee0c:0x13b,_0x196e2f:0x51a,_0x46c1ec:0x501,_0x47339a:0x5a7,_0x5ecf3b:0x5b9,_0x1d0753:0x576,_0x40a6d7:0x495,_0x57bdcd:0x16f,_0x3aaf78:0xc6,_0x1c7b36:0xb5,_0xf64880:0x5bc,_0x4c5dcb:0x20,_0x63ae6a:0xc9,_0xaf7d80:0x93,_0x316336:0x112,_0x555443:0x5b,_0x35ec4a:0x2b,_0x109a1:0x19,_0x481212:0xb,_0x34ca05:0x48a,_0x218720:0x590,_0x543b65:0x458,_0x55bc2a:0x488,_0x333dc1:0x1a,_0x480565:0xec,_0x15fcb2:0x26,_0x518214:0x568,_0x45ec88:0xb4,_0xf9b730:0xd,_0xe76df4:0x5c4,_0x3922d2:0x5fb,_0x46143f:0x5d9,_0x1ee565:0x52c,_0x5eaec8:0x5bc,_0x17f30a:0xc3,_0x53082f:0x4e1,_0x139acd:0x476,_0x44b8c9:0x4d5,_0x28d63f:0x509},_0x162a6f={_0x14992e:0xb6},_0x18a340={_0x1f0e0e:0x25,_0x187892:0xba,_0x2c7b3b:0x66,_0x1321a5:0x19,_0x267ce6:0x23e,_0x50d531:0x2ff,_0x1a581e:0x2a9,_0x45cffb:0x55,_0xc5055f:0x2e6,_0x4c26ba:0x3b,_0x23e189:0x82,_0x2a4cb6:0x5c,_0x58690:0x42,_0x354d91:0x6a,_0x5a748c:0x10,_0x4fb213:0xf7,_0x2fae37:0x2e,_0x5bd765:0x2bb,_0x2ae6d0:0x2dd,_0x13700b:0x335,_0x445b06:0x23c,_0xf408e4:0x33f,_0x4d1ad0:0x10,_0x3db5df:0x2c},_0x3e078a={_0x27aee7:0xce,_0x3292be:0x17b},_0xe5e0=[];function _0x54b079(_0x51ac83,_0x46fe4a,_0xd4133b,_0x348dce){return _0x65d232(_0xd4133b- -0x59,_0x51ac83,_0xd4133b-0x1f1,_0x348dce-0x119);}const _0x1e0ec5=stringifySystem(_0x21615e[_0x54b079(-0x5d,-0xc6,-_0x55bd9d._0x66af4e,-_0x55bd9d._0x32ee0c)]);_0x1e0ec5[_0x16910f(_0x55bd9d._0x196e2f,0x53c,_0x55bd9d._0x46c1ec,_0x55bd9d._0x47339a)]>0x0&&_0xe5e0[_0x16910f(0x602,0x570,_0x55bd9d._0x5ecf3b,_0x55bd9d._0x1d0753)]({'role':_0x16910f(0x47e,0x452,0x40e,_0x55bd9d._0x40a6d7),'content':_0x1e0ec5});for(const _0x5416e7 of _0x21615e['messages']){const _0x125577=[],_0x308973=[],_0x1cee4c=()=>{const _0x2104d2={_0x4cb3a0:0x2a4,_0x149edd:0x117};if(_0x5416e7['role']===_0x444536(-0xc3,-_0x18a340._0x1f0e0e,-_0x18a340._0x187892,-0x118)){if(_0x125577[_0x444536(_0x18a340._0x2c7b3b,_0x18a340._0x1321a5,-0x42,-0xac)]===0x0&&_0x308973['length']===0x0)return;_0xe5e0[_0x3f1c5(_0x18a340._0x267ce6,0x248,_0x18a340._0x50d531,_0x18a340._0x1a581e)]({'role':_0x444536(-0x75,-0x53,-0xba,-_0x18a340._0x45cffb),'content':_0x125577[_0x3f1c5(_0x18a340._0xc5055f,0x2aa,0x330,0x2af)]>0x0?_0x125577[_0x444536(-0xf4,-0x12,-_0x18a340._0x4c26ba,_0x18a340._0x23e189)]('\x0a\x0a'):null,..._0x308973[_0x444536(-_0x18a340._0x2a4cb6,-0xc4,-_0x18a340._0x58690,0x12)]>0x0?{'tool_calls':_0x308973[_0x444536(_0x18a340._0x354d91,-0x96,_0x18a340._0x5a748c,0xb4)](0x0)}:{}}),_0x125577[_0x444536(-_0x18a340._0x4fb213,-_0x18a340._0x2fae37,-0x42,-0x4f)]=0x0;return;}function _0x3f1c5(_0x1ae67d,_0x5d8c0d,_0x1bacf0,_0x2e5e6a){return _0x54b079(_0x5d8c0d,_0x5d8c0d-0x107,_0x1bacf0-_0x2104d2._0x4cb3a0,_0x2e5e6a-_0x2104d2._0x149edd);}function _0x444536(_0x2b596e,_0x4f8403,_0x75b95,_0x150fc2){return _0x54b079(_0x4f8403,_0x4f8403-0x14e,_0x75b95- -_0x3e078a._0x27aee7,_0x150fc2-_0x3e078a._0x3292be);}if(_0x125577[_0x444536(-0x40,-0xc6,-0x42,0x76)]===0x0)return;_0xe5e0[_0x3f1c5(_0x18a340._0x5bd765,0x33e,_0x18a340._0x50d531,_0x18a340._0x2ae6d0)]({'role':_0x5416e7[_0x3f1c5(_0x18a340._0x13700b,_0x18a340._0x445b06,0x28a,_0x18a340._0xf408e4)],'content':_0x125577[_0x444536(-_0x18a340._0x4d1ad0,-0x58,-0x3b,_0x18a340._0x3db5df)]('\x0a\x0a')}),_0x125577['length']=0x0;};for(const _0x17e93e of normalizeContent(_0x5416e7['content'])){if(_0x17e93e['type']==='text'){_0x125577['push'](_0x17e93e[_0x54b079(_0x55bd9d._0x57bdcd,_0x55bd9d._0x3aaf78,_0x55bd9d._0x1c7b36,0xb3)]);continue;}if(_0x17e93e[_0x16910f(0x5a1,0x62c,_0x55bd9d._0xf64880,0x5a9)]===_0x54b079(0xfb,-_0x55bd9d._0x4c5dcb,0xa0,_0x55bd9d._0x63ae6a)){_0x308973[_0x54b079(_0x55bd9d._0xaf7d80,_0x55bd9d._0x316336,_0x55bd9d._0x555443,-_0x55bd9d._0x35ec4a)]({'id':_0x17e93e['id'],'type':_0x54b079(0xa8,-0xa,-_0x55bd9d._0x109a1,-0xd5),'function':{'name':_0x17e93e[_0x54b079(-0x9d,-0xb6,_0x55bd9d._0x481212,0x45)],'arguments':JSON[_0x16910f(0x58f,_0x55bd9d._0x34ca05,_0x55bd9d._0x218720,0x4f6)](_0x17e93e[_0x16910f(0x3e3,_0x55bd9d._0x543b65,0x52e,_0x55bd9d._0x55bc2a)]??{})}});continue;}if(_0x17e93e[_0x54b079(-_0x55bd9d._0x333dc1,0x136,0x8e,_0x55bd9d._0x480565)]!=='tool_result')continue;_0x1cee4c(),_0xe5e0['push']({'role':_0x54b079(_0x55bd9d._0x15fcb2,-0xbb,-0x4d,-0x108),'content':stringifyValue(_0x17e93e['content']),'tool_call_id':_0x17e93e['tool_use_id']});}_0x1cee4c();}const _0x551be7=resolveOpenAiReasoningConfig(_0x21615e[_0x16910f(0x4cd,_0x55bd9d._0x518214,0x481,0x507)]);function _0x16910f(_0x297cb3,_0x2c090a,_0x173b4b,_0x271532){return _0x65d232(_0x271532-0x4c2,_0x297cb3,_0x173b4b-0x7c,_0x271532-_0x162a6f._0x14992e);}return{'model':_0x21615e[_0x54b079(_0x55bd9d._0x45ec88,-0x48,0x59,-_0x55bd9d._0xf9b730)],'messages':_0xe5e0,'stream':_0x4020f9,..._0x551be7?{'max_completion_tokens':_0x21615e['maxTokens']}:{'max_tokens':_0x21615e[_0x16910f(_0x55bd9d._0xe76df4,0x60f,_0x55bd9d._0x3922d2,_0x55bd9d._0x46143f)]},..._0x551be7?.[_0x16910f(0x62d,_0x55bd9d._0x1ee565,0x637,_0x55bd9d._0x5eaec8)]?{'reasoning_effort':_0x551be7[_0x54b079(0x14f,_0x55bd9d._0x17f30a,0xa1,0xd6)]}:{},...createToolDefinitions(_0x21615e[_0x16910f(_0x55bd9d._0x53082f,_0x55bd9d._0x139acd,_0x55bd9d._0x44b8c9,_0x55bd9d._0x28d63f)])?{'tools':createToolDefinitions(_0x21615e['tools'])}:{}};}function createResponsesRequestBody(_0x48ca1c,_0x27583a){return{...toOpenAiResponsesRequest(_0x48ca1c),..._0x27583a?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3f703e,_0x32e49f={}){const _0x5095a1={_0x20c55d:0x290,_0x47dc53:0x384,_0x256abb:0x2e9,_0x24f236:0x2e5,_0x2b4a5d:0x313},_0x31314a={_0x39da78:0x544,_0x1f48cb:0xf1};function _0x1837fd(_0x570691,_0x360624,_0x592ed5,_0x3ea1f0){return _0x65d232(_0x592ed5- -0x256,_0x3ea1f0,_0x592ed5-0xdf,_0x3ea1f0-0xd6);}function _0x4a540d(_0xfc1859,_0x1ce3ec,_0x2adcaa,_0x28a044){return _0x3c7c8d(_0x1ce3ec- -_0x31314a._0x39da78,_0x1ce3ec-0x52,_0x2adcaa-_0x31314a._0x1f48cb,_0x2adcaa);}const _0x3ec250=toOpenAiResponsesRequest(_0x3f703e);return{'type':'response.create',..._0x3ec250,..._0x32e49f[_0x1837fd(-0x34b,-0x1ea,-_0x5095a1._0x20c55d,-0x1fd)]?{'input':_0x32e49f[_0x4a540d(-_0x5095a1._0x47dc53,-0x306,-_0x5095a1._0x256abb,-0x285)]}:{},..._0x32e49f['previousResponseId']?{'previous_response_id':_0x32e49f[_0x4a540d(-_0x5095a1._0x24f236,-_0x5095a1._0x2b4a5d,-0x2a9,-0x28c)]}:{},'store':![]};}function normalizeAssistantContent(_0x1e914d){const _0x476b77={_0x1cd696:0x20a,_0x5c97a5:0x288,_0x217672:0x25f,_0x26aa37:0x2b4,_0x5db24a:0x252,_0x45abdb:0x332,_0x3ec77d:0x2df,_0xa7c31f:0x47},_0x4d10b4={_0x5dc7ca:0x1e8,_0x33479d:0x24b,_0x4b27f4:0x22e,_0x4896e7:0x11d,_0x3d69a9:0x19b,_0x4380f8:0x1c5},_0x4db66c={_0x6d01b1:0x141},_0x128eea={_0x34f272:0x176};function _0x16e3ec(_0x126c24,_0x4b4c91,_0x41c49b,_0x480f44){return _0x65d232(_0x41c49b- -0x73,_0x126c24,_0x41c49b-_0x128eea._0x34f272,_0x480f44-0x1a7);}if(typeof _0x1e914d===_0x49cea6(_0x476b77._0x1cd696,_0x476b77._0x5c97a5,_0x476b77._0x217672,0x1e9))return _0x1e914d;if(!Array[_0x49cea6(_0x476b77._0x26aa37,0x1eb,_0x476b77._0x5db24a,0x2d0)](_0x1e914d))return'';function _0x49cea6(_0x18ee28,_0x56284b,_0x597a5e,_0x15c095){return _0x3c7c8d(_0x597a5e- -0x22,_0x56284b-_0x4db66c._0x6d01b1,_0x597a5e-0xef,_0x15c095);}return _0x1e914d[_0x49cea6(_0x476b77._0x45abdb,_0x476b77._0x3ec77d,0x2d1,0x251)](_0x588157=>{const _0x184fa7={_0x45c995:0xd7},_0x1109c1={_0x534e97:0x1b6,_0x3b9b2f:0x136};function _0x259cea(_0x370305,_0x49a40a,_0x2065c9,_0x8cb5c9){return _0x49cea6(_0x370305-_0x1109c1._0x534e97,_0x49a40a-0xdd,_0x8cb5c9- -_0x1109c1._0x3b9b2f,_0x2065c9);}function _0x27d6ae(_0x43450b,_0x396bc5,_0x13ec94,_0x300c1d){return _0x49cea6(_0x43450b-_0x184fa7._0x45c995,_0x396bc5-0x140,_0x43450b- -0x481,_0x300c1d);}return _0x588157['type']===_0x259cea(0x209,_0x4d10b4._0x5dc7ca,_0x4d10b4._0x33479d,_0x4d10b4._0x4b27f4)?_0x588157[_0x27d6ae(-_0x4d10b4._0x4896e7,-0xc0,-_0x4d10b4._0x3d69a9,-_0x4d10b4._0x4380f8)]:_0x588157[_0x27d6ae(-0x134,-0xe5,-0x172,-0x180)];})[_0x16e3ec(0x2a,0xf6,0x79,_0x476b77._0xa7c31f)]('');}function normalizeResponsesMessageContent(_0x1e157a){const _0x56bc06={_0x55c270:0x3c,_0x5c1587:0x94,_0xdf1713:0x1b3,_0x4268dc:0x126,_0x565c0f:0x155,_0x4c1d9c:0x184,_0x54769b:0x1b6},_0x5a381b={_0x36f124:0x199,_0x1d6dd1:0x140,_0x3a0419:0x35,_0x18bdba:0x1b,_0x478865:0x78,_0x5894d3:0xee,_0x2f7a1d:0x17d,_0x112205:0x223,_0x2aaedd:0x254,_0x4b4052:0x263,_0x580b1a:0x298,_0x544b8f:0xf5,_0x38a398:0x33,_0xe94460:0x238,_0x1539a1:0x2ec,_0x4015ba:0x6f,_0x53401a:0x8f,_0xfdebf6:0x60},_0x2d2b9f={_0x44c41c:0xae},_0x442606={_0x477efd:0x1c},_0x4bbd09={_0x1972f2:0x1e0};function _0x5948af(_0x2cfb3a,_0x4f036e,_0x4d4689,_0x49ee7d){return _0x3c7c8d(_0x4d4689- -_0x4bbd09._0x1972f2,_0x4f036e-0x99,_0x4d4689-0x8a,_0x49ee7d);}function _0x24fbb5(_0x243acc,_0x21f84d,_0x11477d,_0x2c3f1e){return _0x3c7c8d(_0x11477d-0x1ef,_0x21f84d-0xc6,_0x11477d-_0x442606._0x477efd,_0x2c3f1e);}if(!Array[_0x5948af(0xed,_0x56bc06._0x55c270,_0x56bc06._0x5c1587,0x56)](_0x1e157a))return'';return _0x1e157a[_0x5948af(0x106,0x12e,0x113,_0x56bc06._0xdf1713)](_0x1f9f1e=>{if(!_0x1f9f1e||typeof _0x1f9f1e!==_0x1c51d3(_0x5a381b._0x36f124,_0x5a381b._0x1d6dd1,0xc7,0x1da))return'';const _0x7f760a=_0x1f9f1e;if(_0x7f760a[_0x1f1145(-0x6a,-_0x5a381b._0x3a0419,-0x9f,-_0x5a381b._0x18bdba)]==='output_text'&&typeof _0x7f760a[_0x1f1145(-0x60,0x9,-_0x5a381b._0x478865,-_0x5a381b._0x478865)]===_0x1f1145(-0x239,-_0x5a381b._0x5894d3,-_0x5a381b._0x2f7a1d,-0x1e0))return _0x7f760a[_0x1c51d3(_0x5a381b._0x112205,_0x5a381b._0x2aaedd,_0x5a381b._0x4b4052,_0x5a381b._0x580b1a)];function _0x1f1145(_0x316d91,_0x1b8fe9,_0x46459b,_0x9a2119){return _0x5948af(_0x316d91-0x98,_0x1b8fe9-0x2b,_0x46459b- -0x21e,_0x316d91);}if(_0x7f760a[_0x1f1145(-_0x5a381b._0x544b8f,-0xec,-0x9f,-_0x5a381b._0x38a398)]===_0x1c51d3(_0x5a381b._0xe94460,0x23d,_0x5a381b._0x1539a1,0x2af)&&typeof _0x7f760a[_0x1f1145(-_0x5a381b._0x4015ba,-0x9f,-_0x5a381b._0x53401a,-_0x5a381b._0xfdebf6)]==='string')return _0x7f760a['refusal'];function _0x1c51d3(_0x543d6b,_0x19f651,_0x2b1ab9,_0x5a88a3){return _0x5948af(_0x543d6b-0xfc,_0x19f651-0x1e3,_0x19f651-_0x2d2b9f._0x44c41c,_0x5a88a3);}return'';})[_0x5948af(_0x56bc06._0x4268dc,_0x56bc06._0x565c0f,_0x56bc06._0x4c1d9c,_0x56bc06._0x54769b)]('');}function extractOpenAiReasoningText(_0x3ab915){const _0x117bb2={_0x11ede2:0x81,_0x1d8bce:0x1,_0x21ff92:0xda,_0x5ea668:0x247,_0x4a51e6:0x368,_0x3c2b9e:0x2bd,_0x282df4:0x225,_0x1dde30:0x2ca,_0x1ca7a4:0x37f,_0x698bad:0x33a,_0x579596:0x180,_0x9fece5:0xd7,_0x38e3af:0x33c,_0x204b54:0x333,_0x56fcab:0x28c,_0x5919a5:0xa3,_0x259268:0x134},_0x4bd804={_0x317b78:0x10f};if(typeof _0x3ab915[_0x19c750(-_0x117bb2._0x11ede2,_0x117bb2._0x1d8bce,-_0x117bb2._0x21ff92,-0x118)]===_0x381c54(0x2ca,0x38a,0x2d5,_0x117bb2._0x5ea668))return _0x3ab915[_0x381c54(0x3cf,0x3f1,_0x117bb2._0x4a51e6,0x37a)];function _0x381c54(_0x5cbc8c,_0x3ba7ed,_0x2a124a,_0x165cff){return _0x65d232(_0x5cbc8c-0x2c1,_0x2a124a,_0x2a124a-0x99,_0x165cff-0xc1);}if(!Array[_0x381c54(_0x117bb2._0x3c2b9e,0x356,_0x117bb2._0x282df4,_0x117bb2._0x1dde30)](_0x3ab915[_0x381c54(_0x117bb2._0x1ca7a4,_0x117bb2._0x698bad,0x3d6,0x3de)]))return'';function _0x19c750(_0x2abdbe,_0x412315,_0x24a44c,_0x48a7a0){return _0x65d232(_0x2abdbe- -0x18f,_0x412315,_0x24a44c-_0x4bd804._0x317b78,_0x48a7a0-0x26);}return _0x3ab915['content'][_0x19c750(-_0x117bb2._0x579596,-0xc9,-0x10c,-_0x117bb2._0x9fece5)](_0x3280b6=>_0x3280b6[_0x19c750(-0xa8,-0x6a,-0x85,-0x149)]===_0x381c54(0x3f1,0x438,0x383,0x462)&&typeof _0x3280b6['text']===_0x19c750(-0x186,-0x22a,-0x21f,-0x1fa))[_0x381c54(_0x117bb2._0x38e3af,0x307,_0x117bb2._0x204b54,_0x117bb2._0x56fcab)](_0x151a0a=>_0x151a0a[_0x381c54(0x3cf,0x3b1,0x41e,0x340)]??'')[_0x19c750(-_0x117bb2._0x5919a5,-0xe3,-_0x117bb2._0x259268,0x1b)]('');}function createOpenAiReasoningBlock(_0x50e7bf){const _0x1d024f={_0x44e4fb:0x296,_0x405fb5:0x21c,_0x37d39c:0x1a2,_0x463f5b:0x2c2,_0x54d5f6:0x10d,_0x490c23:0x10b},_0x33d47e={_0x103a54:0x26,_0x35b3bd:0x27},_0x4aeb7e={_0x453cb6:0x16e,_0x3b3590:0xd8},_0x1b339a=extractOpenAiReasoningText(_0x50e7bf);function _0x5358bf(_0x3b4ab6,_0x4f758f,_0x26b631,_0x1512bb){return _0x3c7c8d(_0x4f758f- -0x55a,_0x4f758f-_0x4aeb7e._0x453cb6,_0x26b631-_0x4aeb7e._0x3b3590,_0x3b4ab6);}function _0x5bc9ce(_0x410580,_0x4cb179,_0x4d3dd6,_0x262308){return _0x65d232(_0x4d3dd6-_0x33d47e._0x103a54,_0x262308,_0x4d3dd6-0xdb,_0x262308-_0x33d47e._0x35b3bd);}return{'type':'openai_reasoning','summary':structuredClone(_0x50e7bf['summary']??[]),..._0x50e7bf['id']?{'id':_0x50e7bf['id']}:{},..._0x50e7bf[_0x5358bf(-_0x1d024f._0x44e4fb,-_0x1d024f._0x405fb5,-0x211,-0x2d2)]?{'encryptedContent':_0x50e7bf[_0x5358bf(-_0x1d024f._0x37d39c,-_0x1d024f._0x405fb5,-0x1b3,-_0x1d024f._0x463f5b)]}:{},..._0x1b339a[_0x5bc9ce(0xb8,_0x1d024f._0x54d5f6,_0x1d024f._0x490c23,0x87)]>0x0?{'text':_0x1b339a}:{}};}function _0x3c7c8d(_0x540556,_0x3ecfe5,_0xd00d65,_0xe770f3){return _0x501c(_0x540556-0x185,_0xe770f3);}function hasVisibleOpenAiReasoning(_0x1ee875){const _0x277a46={_0x1e4bbb:0x35c,_0x34f4b6:0x33f,_0x541335:0x312,_0x5d0909:0x468,_0x50e310:0xeb,_0x173a11:0x174,_0x200dd5:0x234},_0x109657={_0x268c3f:0x18c,_0x3a5fcb:0x16b},_0x24bba2={_0x5cca2c:0x178,_0x491ea8:0x68};function _0x46b7c2(_0x5ef805,_0x37da90,_0x12f4b2,_0x27c0bc){return _0x65d232(_0x12f4b2- -0x282,_0x5ef805,_0x12f4b2-_0x24bba2._0x5cca2c,_0x27c0bc-_0x24bba2._0x491ea8);}function _0x305c70(_0x183e8e,_0x4834a9,_0x43e349,_0x17c947){return _0x3c7c8d(_0x43e349-0x138,_0x4834a9-_0x109657._0x268c3f,_0x43e349-_0x109657._0x3a5fcb,_0x4834a9);}return _0x1ee875[_0x305c70(_0x277a46._0x1e4bbb,_0x277a46._0x34f4b6,0x3a6,_0x277a46._0x541335)][_0x305c70(_0x277a46._0x5d0909,0x498,0x495,0x3dd)]>0x0||typeof _0x1ee875[_0x46b7c2(-0x191,-_0x277a46._0x50e310,-_0x277a46._0x173a11,-_0x277a46._0x200dd5)]==='string';}function parseChatCompletionResponse(_0x37d1c5){const _0xab9b90={_0x1ecd38:0x1a0,_0x4fdcff:0x1bf,_0x5453b4:0x245,_0x38a221:0x15d,_0x5959b1:0x21d,_0x13b896:0x21e,_0x19fad8:0x26c,_0x579c0a:0x1eb,_0x58aae2:0x106,_0x3a5934:0x110,_0x11a77d:0x195,_0x120d4d:0x1a8,_0x5ec72e:0x2bc,_0x2ef9f8:0x238,_0x8189a9:0x254,_0x148a8a:0x140,_0x43dfc1:0x11e,_0x242f9c:0x1d2,_0x24ef09:0x1ff,_0x1c7412:0x189,_0x333540:0x157,_0x1d373a:0x88,_0x598446:0xce,_0x56dfb9:0x19e,_0x2278f9:0x120,_0x5cf429:0x10c,_0x3232b5:0x256,_0x23f42c:0x2bd,_0xaf07af:0x215,_0x17959c:0x1fc,_0x223169:0x2ec,_0x1ddcd5:0x25c},_0x565f5a={_0x2e57aa:0x1ae,_0x42cd83:0x2f},_0x59dfc0=[],_0x47789c=[];let _0x5baf3d=_0x46dc3c(-_0xab9b90._0x1ecd38,-_0xab9b90._0x4fdcff,-0x242,-0x105);function _0x5ef377(_0x32ba2d,_0x1122bd,_0x5d7029,_0x23afcb){return _0x65d232(_0x23afcb-_0x565f5a._0x2e57aa,_0x5d7029,_0x5d7029-_0x565f5a._0x42cd83,_0x23afcb-0x1a7);}function _0x46dc3c(_0x23c633,_0x520142,_0x1bfbf6,_0x509ec3){return _0x3c7c8d(_0x520142- -0x47d,_0x520142-0x1c6,_0x1bfbf6-0x1f,_0x509ec3);}for(const _0x53e20c of _0x37d1c5[_0x46dc3c(-0x1be,-0x1ab,-_0xab9b90._0x5453b4,-_0xab9b90._0x38a221)]??[]){const _0xdbbc68=_0x53e20c['message'],_0x55af31=normalizeAssistantContent(_0xdbbc68?.[_0x5ef377(_0xab9b90._0x5959b1,0x26b,_0xab9b90._0x13b896,_0xab9b90._0x19fad8)]);_0x55af31['length']>0x0&&_0x59dfc0[_0x46dc3c(-0x14d,-0x151,-_0xab9b90._0x579c0a,-_0xab9b90._0x58aae2)](_0x55af31),_0xdbbc68?.[_0x5ef377(_0xab9b90._0x3a5934,0x129,0x14e,_0xab9b90._0x11a77d)]&&_0x47789c[_0x5ef377(0x1b5,_0xab9b90._0x120d4d,_0xab9b90._0x5ec72e,0x262)](..._0xdbbc68[_0x46dc3c(-0x206,-_0xab9b90._0x13b896,-_0xab9b90._0x2ef9f8,-_0xab9b90._0x8189a9)]),_0x53e20c[_0x5ef377(_0xab9b90._0x148a8a,0x18c,_0xab9b90._0x43dfc1,_0xab9b90._0x242f9c)]===_0x5ef377(_0xab9b90._0x24ef09,0x22b,_0xab9b90._0x1c7412,0x195)&&(_0x5baf3d=_0x46dc3c(-_0xab9b90._0x333540,-0x10c,-_0xab9b90._0x1d373a,-_0xab9b90._0x598446));}return _0x47789c[_0x46dc3c(-_0xab9b90._0x56dfb9,-_0xab9b90._0x2278f9,-0x148,-0x1c2)]>0x0&&(_0x5baf3d=_0x46dc3c(-0x1b3,-_0xab9b90._0x5cf429,-0xa5,-0x119)),{'id':_0x37d1c5['id']??_0x46dc3c(-_0xab9b90._0x3232b5,-0x23d,-_0xab9b90._0x23f42c,-0x18b)+Date[_0x5ef377(0x2ad,_0xab9b90._0xaf07af,0x18b,_0xab9b90._0x17959c)](),'content':createContentBlocks(_0x59dfc0[_0x46dc3c(-0x101,-0x119,-0x94,-0xb0)](''),_0x47789c),'stopReason':_0x5baf3d,'usage':createUsage(_0x37d1c5[_0x5ef377(_0xab9b90._0x223169,0x234,0x304,_0xab9b90._0x1ddcd5)])};}function parseResponsesResponse(_0x840b9e,_0x434cb7){const _0x2357d5={_0x55cfd0:0x14,_0x54a9eb:0x83,_0x5ae7e8:0x19b,_0xcccfd7:0xcd,_0x3783ad:0x20f,_0xebc08a:0x157,_0x5ea41c:0x14a,_0xddaafd:0xbc,_0x53e9f9:0x1b1,_0x424f81:0x26b,_0x14adfe:0x1a0,_0x20fed0:0x199,_0x5657a5:0x1e3,_0x42845e:0x179,_0x2f91c0:0x197,_0x4a2efa:0x59,_0x2d95ce:0x9d,_0x39e1e4:0xaf,_0x5d417a:0x188,_0x275130:0x229,_0xf2c9ea:0x10f,_0x2bcfaf:0x1ec,_0x3600ff:0x63,_0x598037:0x10a,_0x407294:0xf1,_0x327a40:0x209,_0x281154:0x179,_0xb2ae5e:0x166,_0x2f19aa:0xe9,_0x2224d8:0x14,_0xa3a009:0x7,_0x48263c:0x14b,_0x30eed5:0x1b6,_0x2f1248:0x1c4,_0x2c6bf8:0x164,_0x275d9a:0x1dd,_0x24f7cf:0xc0,_0x3bbe51:0x1c2,_0x34b7bc:0x1ac,_0x16d7bc:0x159,_0x5b4857:0xe4,_0x234c8:0x1b5,_0x1d195f:0x143,_0x55e6f8:0x151,_0x19ae97:0x1da,_0x5a1361:0x6f,_0x25bf0f:0x11f,_0x38bf88:0x110,_0x2e688c:0x15c,_0x1606b8:0x7a,_0x31c5b7:0x5d,_0xddf446:0x8b,_0x18167d:0x1de,_0x4035a7:0x191,_0x46bca2:0x6e,_0x1ba9f3:0x83},_0x441db4={_0x59c63b:0x1f},_0x264250={_0x19e17b:0x1d5},_0xe0d379=[];for(const _0x3f59c1 of _0x840b9e[_0x41928f(_0x2357d5._0x55cfd0,-0xf1,-_0x2357d5._0x54a9eb,0x3c)]??[]){if(isResponsesReasoningItem(_0x3f59c1)){if(isUserVisibleReasoning(_0x434cb7)){const _0x12480a=createOpenAiReasoningBlock(_0x3f59c1);hasVisibleOpenAiReasoning(_0x12480a)&&_0xe0d379['push'](_0x12480a);}continue;}if(isResponsesMessageItem(_0x3f59c1)){const _0x518cfa=normalizeResponsesMessageContent(_0x3f59c1[_0x41928f(-0xf7,-_0x2357d5._0x5ae7e8,-0x100,-0x136)]);_0x518cfa[_0x41928f(-0x16c,-0xe7,-0xd9,-_0x2357d5._0xcccfd7)]>0x0&&_0xe0d379[_0x2f3ec2(_0x2357d5._0x3783ad,_0x2357d5._0xebc08a,_0x2357d5._0x5ea41c,_0x2357d5._0xddaafd)]({'type':_0x2f3ec2(0x19d,_0x2357d5._0x53e9f9,_0x2357d5._0x424f81,0x114),'text':_0x518cfa});continue;}if(!isResponsesFunctionCallItem(_0x3f59c1)||typeof _0x3f59c1['call_id']!==_0x41928f(-_0x2357d5._0x14adfe,-0x1e1,-0x1b5,-_0x2357d5._0x20fed0)||_0x3f59c1[_0x2f3ec2(_0x2357d5._0x5657a5,_0x2357d5._0x42845e,0xbc,_0x2357d5._0x2f91c0)]['trim']()[_0x41928f(-0x17c,-_0x2357d5._0x4a2efa,-0xd9,-0x93)]===0x0||typeof _0x3f59c1[_0x2f3ec2(_0x2357d5._0x2d95ce,0x107,_0x2357d5._0x39e1e4,0x147)]!=='string'||_0x3f59c1['name']['trim']()[_0x2f3ec2(0x117,_0x2357d5._0x5d417a,0x234,_0x2357d5._0x275130)]===0x0||typeof _0x3f59c1['arguments']!==_0x41928f(-_0x2357d5._0xf2c9ea,-_0x2357d5._0x2bcfaf,-0x1b5,-0x241))continue;_0xe0d379[_0x41928f(-0x133,-_0x2357d5._0x3600ff,-_0x2357d5._0x598037,-_0x2357d5._0x407294)]({'type':'tool_use','id':_0x3f59c1[_0x2f3ec2(_0x2357d5._0x327a40,_0x2357d5._0x281154,_0x2357d5._0xb2ae5e,0xfc)],'name':_0x3f59c1['name'],'input':parseToolInput2(_0x3f59c1[_0x2f3ec2(_0x2357d5._0x2f19aa,0x81,_0x2357d5._0x2224d8,-_0x2357d5._0xa3a009)])});}!_0xe0d379[_0x41928f(-_0x2357d5._0x48263c,-_0x2357d5._0x30eed5,-0x1ac,-_0x2357d5._0x2f1248)](_0x164e1f=>_0x164e1f[_0x2f3ec2(0x125,0x18a,0x170,0x162)]===_0x2f3ec2(0x136,0x1b1,0x17d,0x25a))&&_0x840b9e['output_text']&&_0xe0d379[_0x2f3ec2(_0x2357d5._0x2c6bf8,0x157,_0x2357d5._0x275d9a,0x1be)]({'type':_0x2f3ec2(0x1c1,0x1b1,0x1b7,0x25f),'text':_0x840b9e[_0x2f3ec2(0xd3,0xae,_0x2357d5._0x24f7cf,0x149)]});function _0x2f3ec2(_0x3f2276,_0x200a13,_0x1c161f,_0x5e94df){return _0x3c7c8d(_0x200a13- -_0x264250._0x19e17b,_0x200a13-0xaa,_0x1c161f-0xcc,_0x1c161f);}function _0x41928f(_0x24a0da,_0x58e3f7,_0xe56879,_0x5b59db){return _0x3c7c8d(_0xe56879- -0x436,_0x58e3f7-0x13c,_0xe56879-_0x441db4._0x59c63b,_0x24a0da);}return{'id':_0x840b9e['id'],'content':_0xe0d379,'stopReason':_0xe0d379[_0x41928f(-_0x2357d5._0x3bbe51,-0x236,-_0x2357d5._0x34b7bc,-0x220)](_0x44a4de=>_0x44a4de[_0x2f3ec2(0xf2,0x18a,0xeb,0x140)]===_0x2f3ec2(0x1dd,0x19c,0x25e,0x115))?'tool_use':_0x41928f(-_0x2357d5._0x16d7bc,-_0x2357d5._0x5b4857,-0x178,-0x13a),'usage':{'inputTokens':_0x840b9e[_0x2f3ec2(_0x2357d5._0x234c8,0x151,_0x2357d5._0x1d195f,0x1a0)]?.[_0x41928f(-0x198,-0x1bb,-0x1ba,-0x112)]??0x0,'outputTokens':_0x840b9e[_0x2f3ec2(0x1b7,_0x2357d5._0x55e6f8,_0x2357d5._0x19ae97,0x164)]?.['output_tokens']??0x0,..._0x840b9e[_0x41928f(-_0x2357d5._0x5a1361,-_0x2357d5._0x25bf0f,-_0x2357d5._0x38bf88,-_0x2357d5._0x2e688c)]?.[_0x2f3ec2(-0x16,_0x2357d5._0x1606b8,0x13a,_0x2357d5._0x31c5b7)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x840b9e['usage']['output_tokens_details'][_0x41928f(-0x1e3,-_0x2357d5._0xddf446,-0x141,-0xaf)]}:{}},..._0x840b9e[_0x2f3ec2(0x1e0,_0x2357d5._0x18167d,0x189,_0x2357d5._0x4035a7)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x840b9e[_0x41928f(-_0x2357d5._0x46bca2,-0xa2,-_0x2357d5._0x1ba9f3,-0xb9)]),'openaiResponsesResponseId':_0x840b9e['id']}}:{}};}function _0x501c(_0x154bb5,_0x443d40){_0x154bb5=_0x154bb5-0xab;const _0x57372b=_0x5737();let _0x501ce3=_0x57372b[_0x154bb5];if(_0x501c['fMEdlz']===undefined){var _0x1b8b0f=function(_0x5d8cde){const _0x581e2e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e0b8a='',_0x1dfed9='';for(let _0x12ab80=0x0,_0x3963f4,_0x2e2399,_0x4d6d7c=0x0;_0x2e2399=_0x5d8cde['charAt'](_0x4d6d7c++);~_0x2e2399&&(_0x3963f4=_0x12ab80%0x4?_0x3963f4*0x40+_0x2e2399:_0x2e2399,_0x12ab80++%0x4)?_0x3e0b8a+=String['fromCharCode'](0xff&_0x3963f4>>(-0x2*_0x12ab80&0x6)):0x0){_0x2e2399=_0x581e2e['indexOf'](_0x2e2399);}for(let _0x4b034d=0x0,_0x37bdb9=_0x3e0b8a['length'];_0x4b034d<_0x37bdb9;_0x4b034d++){_0x1dfed9+='%'+('00'+_0x3e0b8a['charCodeAt'](_0x4b034d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1dfed9);};_0x501c['nGmJhI']=_0x1b8b0f,_0x501c['tcyJJQ']={},_0x501c['fMEdlz']=!![];}const _0x4b9b00=_0x57372b[0x0],_0x291627=_0x154bb5+_0x4b9b00,_0x2d8600=_0x501c['tcyJJQ'][_0x291627];return!_0x2d8600?(_0x501ce3=_0x501c['nGmJhI'](_0x501ce3),_0x501c['tcyJJQ'][_0x291627]=_0x501ce3):_0x501ce3=_0x2d8600,_0x501ce3;}function extractErrorMessage(_0x4a5f9e){const _0x5c3c06={_0x1a6d03:0x4cc,_0x91c198:0x106,_0x51bb51:0x188,_0x354ea2:0x596,_0x54fde6:0x64e,_0x51b6bc:0x5b0,_0x42892a:0x56c,_0x6b5ff7:0xf6,_0x2ec61b:0x114,_0x39df85:0x77,_0x410174:0x2d,_0x103c66:0x4ff,_0x566b70:0x5bb,_0x1f13fb:0x155,_0x12a319:0x1b7,_0x5c5bbc:0x218,_0x23d1e2:0x566,_0x1a7739:0x51c,_0x5c3be7:0x64f,_0x278eb1:0x572,_0x1501c2:0x17b,_0xcbee53:0x205,_0x35f56b:0x5fb,_0x221a4c:0x588,_0x6c67be:0x524,_0x1934bd:0x628,_0x58b659:0x4cf,_0x22fcfb:0x448,_0x53dcfe:0x3bf,_0x4d8b3d:0x470},_0x5144d6={_0x7b6bcb:0x3fc},_0x55965b={_0x1cb95a:0x22b,_0x161bcd:0x4d};function _0x40ce09(_0x7b6a25,_0x23bb3c,_0x4c6722,_0x2c445c){return _0x3c7c8d(_0x2c445c-_0x55965b._0x1cb95a,_0x23bb3c-0xe9,_0x4c6722-_0x55965b._0x161bcd,_0x4c6722);}if(_0x4a5f9e[_0x40ce09(0x586,_0x5c3c06._0x1a6d03,0x5bc,0x588)]===0x0)return'';try{const _0x1da4e4=JSON[_0x403951(-0x74,-_0x5c3c06._0x91c198,-0x124,-_0x5c3c06._0x51bb51)](_0x4a5f9e);if(typeof _0x1da4e4[_0x40ce09(0x628,_0x5c3c06._0x354ea2,_0x5c3c06._0x54fde6,_0x5c3c06._0x51b6bc)]?.[_0x40ce09(_0x5c3c06._0x42892a,0x632,0x61b,0x5bb)]===_0x403951(-0x152,-0x117,-0x17b,-_0x5c3c06._0x6b5ff7)&&_0x1da4e4[_0x403951(0x2e,-_0x5c3c06._0x2ec61b,-_0x5c3c06._0x39df85,-_0x5c3c06._0x410174)][_0x40ce09(_0x5c3c06._0x103c66,0x5fb,0x63a,_0x5c3c06._0x566b70)][_0x403951(-0x172,-_0x5c3c06._0x1f13fb,-_0x5c3c06._0x12a319,-_0x5c3c06._0x5c5bbc)]()['length']>0x0)return _0x1da4e4['error'][_0x40ce09(0x618,0x50f,_0x5c3c06._0x23d1e2,0x5bb)]['trim']();if(typeof _0x1da4e4['message']==='string'&&_0x1da4e4[_0x40ce09(_0x5c3c06._0x1a7739,_0x5c3c06._0x5c3be7,_0x5c3c06._0x278eb1,0x5bb)][_0x403951(-0x241,-_0x5c3c06._0x1501c2,-0x1b7,-_0x5c3c06._0xcbee53)]()[_0x40ce09(_0x5c3c06._0x35f56b,0x5d3,_0x5c3c06._0x42892a,_0x5c3c06._0x221a4c)]>0x0)return _0x1da4e4[_0x40ce09(_0x5c3c06._0x6c67be,0x5b9,_0x5c3c06._0x1934bd,_0x5c3c06._0x566b70)][_0x40ce09(_0x5c3c06._0x58b659,_0x5c3c06._0x22fcfb,_0x5c3c06._0x53dcfe,_0x5c3c06._0x4d8b3d)]();}catch{return _0x4a5f9e;}function _0x403951(_0x32396a,_0x5b5da1,_0x5de12d,_0x560051){return _0x3c7c8d(_0x5de12d- -_0x5144d6._0x7b6bcb,_0x5b5da1-0x1ce,_0x5de12d-0x177,_0x560051);}return _0x4a5f9e;}async function createOpenAiApiError(_0x4a2631){const _0x560475={_0x48fc6b:0x288,_0x243741:0x2f2,_0x2c1802:0x2bf,_0x45f468:0x2ad,_0x9a083a:0x26c,_0x4150e2:0x1a2,_0x77fca7:0x260,_0x1d2ef7:0x25d,_0x3c32e2:0x26a,_0x2b327e:0x258,_0x261438:0x27d,_0x28f6f0:0x306,_0xd383fa:0x298},_0x3f88d5={_0x5b8276:0x14,_0x1062e2:0x7a},_0x1f2c9b={_0x2c7968:0x1e4,_0x22e5db:0x155},_0xc9a517=(await _0x4a2631[_0x9ccf42(0x2ca,_0x560475._0x48fc6b,_0x560475._0x243741,_0x560475._0x2c1802)]())['trim']();function _0x9ccf42(_0x4e730e,_0x366aad,_0x141c18,_0x90f739){return _0x65d232(_0x141c18-_0x1f2c9b._0x2c7968,_0x90f739,_0x141c18-_0x1f2c9b._0x22e5db,_0x90f739-0xbc);}const _0x51438a=extractErrorMessage(_0xc9a517)||_0x4a2631[_0x8b7ea6(0x28d,_0x560475._0x45f468,0x239,_0x560475._0x9a083a)]||_0x9ccf42(0x264,_0x560475._0x4150e2,_0x560475._0x77fca7,0x1d0)+_0x4a2631[_0x8b7ea6(0x2b5,_0x560475._0x1d2ef7,_0x560475._0x3c32e2,_0x560475._0x2b327e)];function _0x8b7ea6(_0x381bdf,_0x3a05cb,_0x5e6efc,_0x4db57a){return _0x3c7c8d(_0x5e6efc- -0x11a,_0x3a05cb-_0x3f88d5._0x5b8276,_0x5e6efc-_0x3f88d5._0x1062e2,_0x381bdf);}return new OpenAiApiError(_0x4a2631[_0x8b7ea6(_0x560475._0x261438,_0x560475._0x28f6f0,_0x560475._0x3c32e2,_0x560475._0xd383fa)],_0xc9a517,_0x51438a);}function readSseData(_0x365bfd){const _0x471e47={_0x5aa7fb:0xb2,_0x682635:0x11,_0x1cc846:0x61,_0x277417:0x188,_0x564535:0xe3,_0x406667:0xcf},_0x2f4e66={_0x31f900:0x76},_0xc8aedc={_0x3aa55a:0x9,_0x2d323d:0x1e2};function _0xb40b42(_0x14bd5f,_0x3ae857,_0x41913f,_0x2aa4e6){return _0x65d232(_0x41913f- -_0xc8aedc._0x3aa55a,_0x2aa4e6,_0x41913f-0x7e,_0x2aa4e6-_0xc8aedc._0x2d323d);}function _0x356885(_0x281ef8,_0x40e85a,_0xc22f9,_0x1a82aa){return _0x65d232(_0x281ef8-0x33e,_0x1a82aa,_0xc22f9-_0x2f4e66._0x31f900,_0x1a82aa-0x131);}return _0x365bfd[_0xb40b42(0x16e,0x8d,_0x471e47._0x5aa7fb,_0x471e47._0x682635)]('\x0a')[_0xb40b42(-0x99,-0x5c,0x6,_0x471e47._0x1cc846)](_0x5858be=>_0x5858be[_0xb40b42(-0xd,0x5f,0x10,0x48)](_0xb40b42(0x2b,0xed,0x6b,0x8d)))['map'](_0x4923b7=>_0x4923b7[_0xb40b42(0xd5,0x19,0x98,0xe1)](0x5)['trimStart']())[_0xb40b42(0x14c,_0x471e47._0x277417,_0x471e47._0x564535,_0x471e47._0x406667)]('\x0a')[_0x356885(0x30b,0x3b7,0x2e0,0x2a4)]();}var OpenAiChatCompletionsStreamParser=class{[_0x3c7c8d(0x3ac,0x44d,0x2f3,0x38a)]=[];['toolCallsByIndex']=new Map();[_0x3c7c8d(0x2ed,0x2c9,0x330,0x35d)]=[];[_0x65d232(0xf2,0x95,0x191,0x148)]=new Set();[_0x65d232(0x56,0x8e,0x42,0x52)]='';[_0x3c7c8d(0x2d9,0x2cb,0x306,0x224)]='end_turn';['usage'];[_0x3c7c8d(0x32b,0x36c,0x303,0x39f)](_0x2bdd92){const _0x344df6={_0x102da0:0x68,_0x35c5a0:0x103,_0x20303e:0x6d,_0x399b80:0x2fb,_0x5ca270:0x2de,_0xa2816a:0xbc,_0x2aae7b:0x1ee,_0x23d040:0x16e,_0x5e0caa:0x186},_0x3db767={_0x2f9647:0xa3,_0x232cef:0x90},_0x43abc5={_0x54605e:0x148,_0x2c320a:0x75},_0x578118=readSseData(_0x2bdd92);if(_0x578118['length']===0x0||_0x578118===_0x59f6ab(0x63,_0x344df6._0x102da0,0xfc,0xcb))return[];const _0x466b02=JSON[_0x59f6ab(_0x344df6._0x35c5a0,0x95,0x98,0x195)](_0x578118);this['responseId']=_0x466b02['id']??this[_0x59f6ab(0xf9,_0x344df6._0x20303e,0x51,0x167)],this[_0xf70f49(_0x344df6._0x399b80,_0x344df6._0x5ca270,0x2e7,0x31d)]=_0x466b02['usage']??this[_0x59f6ab(0x151,0x145,_0x344df6._0xa2816a,_0x344df6._0x2aae7b)];function _0xf70f49(_0x17e283,_0x1a6ffb,_0x49fa69,_0x2c17c0){return _0x3c7c8d(_0x17e283- -0x2b,_0x1a6ffb-_0x43abc5._0x54605e,_0x49fa69-_0x43abc5._0x2c320a,_0x49fa69);}function _0x59f6ab(_0xa59abb,_0x12d8bb,_0x556b59,_0x4c560c){return _0x65d232(_0xa59abb-_0x3db767._0x2f9647,_0x12d8bb,_0x556b59-0x12f,_0x4c560c-_0x3db767._0x232cef);}return this[_0x59f6ab(0xe7,0x149,_0x344df6._0x23d040,_0x344df6._0x5e0caa)](_0x466b02);}[_0x65d232(0x10b,0x7b,0x10a,0x1b4)](){const _0x592748={_0x1018f6:0x1f6,_0x600616:0x1ab,_0x59b2df:0x1ce,_0x3b0a93:0x66,_0x372b2b:0xc,_0x39c419:0x88,_0x1d9a91:0x65,_0x13a659:0x23,_0x18e3fe:0x12b,_0x30603c:0x11b,_0x21a08c:0x9e,_0x4cd52e:0x2b5,_0x264745:0x2d1,_0x7c3ce2:0x2f6,_0x5f4d2c:0x85,_0x6a3d75:0x15,_0x377610:0xb1,_0x35ea02:0x81,_0x51fd4c:0xbe,_0x1f386e:0x50,_0xccbfd3:0x43,_0x455932:0x8d},_0x2dd8f8={_0x3f339e:0x181},_0x370801={_0x1ffc1b:0x369};function _0x2c68a9(_0x140059,_0x5dbc92,_0x592127,_0x2c6835){return _0x3c7c8d(_0x5dbc92- -_0x370801._0x1ffc1b,_0x5dbc92-0x1dc,_0x592127-0x13d,_0x592127);}this[_0x58f045(_0x592748._0x1018f6,0x174,_0x592748._0x600616,_0x592748._0x59b2df)][_0x2c68a9(-_0x592748._0x3b0a93,-_0x592748._0x372b2b,-0x99,0x6b)]>0x0&&(this['stopReason']=_0x2c68a9(_0x592748._0x39c419,0x8,_0x592748._0x1d9a91,_0x592748._0x13a659));function _0x58f045(_0x502bd1,_0x4a7769,_0x3860f8,_0x39ebc3){return _0x65d232(_0x502bd1-_0x2dd8f8._0x3f339e,_0x4a7769,_0x3860f8-0xbc,_0x39ebc3-0x42);}return{'id':this[_0x2c68a9(-_0x592748._0x18e3fe,-0x9b,-0x33,-_0x592748._0x30603c)]||_0x58f045(0x149,0x92,0x17f,_0x592748._0x21a08c)+Date['now'](),'content':createContentBlocks(this[_0x58f045(_0x592748._0x4cd52e,_0x592748._0x264745,0x2d3,_0x592748._0x7c3ce2)][_0x2c68a9(-_0x592748._0x5f4d2c,-0x5,-0xbb,_0x592748._0x6a3d75)](''),this[_0x2c68a9(-_0x592748._0x377610,-0x7c,-_0x592748._0x35ea02,0xb)]),'stopReason':this[_0x2c68a9(-0x9c,-0x90,-_0x592748._0x51fd4c,-0x99)],'usage':createUsage(this[_0x2c68a9(_0x592748._0x1f386e,-_0x592748._0xccbfd3,-0x6,-_0x592748._0x455932)])};}[_0x3c7c8d(0x2bc,0x365,0x24e,0x33d)](_0x156713){const _0x54f29d={_0x153ec1:0x373,_0x5e53be:0x2be,_0x2b279c:0x2ff,_0x4da5c6:0xa,_0x13c0b9:0x21,_0x1e97ab:0x359,_0x26a5f6:0x374,_0x4f304d:0x2c,_0x10dc86:0x2f5,_0x2d6212:0x36d,_0x4a2c0a:0x139,_0x3a14af:0xa5,_0x1320fd:0x96,_0x1e4690:0xb9,_0x42e89e:0x24,_0x45eaa1:0x13,_0x4a8875:0x4e,_0x1598ba:0x282,_0x34fcbd:0x294,_0x273da4:0x28d,_0x5addd0:0x201,_0x4ac66d:0x1d8,_0x94a05:0x3e6,_0x21ffd8:0x333,_0x3bc91d:0x2f1,_0x4b6934:0x305,_0x468701:0xa5,_0x2c457e:0x2c2,_0x1f3043:0x85,_0x2bb183:0x69,_0x189c35:0xe2,_0x56fc3e:0x3e,_0x216291:0x45,_0x247293:0xba,_0x2dc3a5:0x6b,_0x37ed10:0xc2,_0x2cc347:0x4d,_0x1772ab:0x2af,_0x3a6c27:0x221,_0x155d7b:0x87,_0x48ee63:0x2e0,_0x319706:0x343,_0x4808fb:0x2ec,_0x1f39f7:0x2db,_0x10ca84:0x238,_0x4b72f2:0x3f2,_0xb7d953:0xd4,_0x491712:0x50,_0x3d005f:0xb7,_0x572f2b:0x3c5,_0x59f5f2:0x2fa,_0x19e478:0x37a,_0x3ccd55:0x14,_0x13d33c:0x29,_0x507fcd:0x177,_0x514d58:0xdf},_0xdb6726={_0x4645cf:0x23,_0x404c45:0x155},_0x374a68={_0x5aae03:0x62},_0x2c0df7=[];for(const _0x146669 of _0x156713[_0x1ab9ef(0x2f5,_0x54f29d._0x153ec1,_0x54f29d._0x5e53be,_0x54f29d._0x2b279c)]??[]){const _0x377302=_0x146669['delta'],_0x13dfb5=typeof _0x377302?.['content']===_0x26b991(0xe,-_0x54f29d._0x4da5c6,_0x54f29d._0x13c0b9,-0x61)?_0x377302[_0x1ab9ef(_0x54f29d._0x1e97ab,0x2b6,_0x54f29d._0x26a5f6,0x3ec)]:typeof _0x377302?.['refusal']===_0x26b991(0xe,0x71,_0x54f29d._0x4f304d,0x75)?_0x377302['refusal']:'';_0x13dfb5[_0x1ab9ef(0x380,0x3ef,_0x54f29d._0x10dc86,_0x54f29d._0x2d6212)]>0x0&&(this[_0x26b991(_0x54f29d._0x4a2c0a,_0x54f29d._0x3a14af,0x1a1,_0x54f29d._0x1320fd)][_0x26b991(_0x54f29d._0x1e4690,0xa,0x23,-0x9)](_0x13dfb5),_0x2c0df7['push']({'type':_0x26b991(0x4f,_0x54f29d._0x42e89e,_0x54f29d._0x45eaa1,_0x54f29d._0x4a8875),'index':0x0,'text':_0x13dfb5}));for(const _0x327fc7 of _0x377302?.[_0x1ab9ef(_0x54f29d._0x1598ba,0x2c4,0x29b,0x262)]??[]){const _0xdce695=_0x327fc7['index']??0x0;let _0x55e2b4=this[_0x1ab9ef(_0x54f29d._0x34fcbd,0x2d3,0x2c1,0x2d8)][_0x1ab9ef(_0x54f29d._0x273da4,0x2aa,_0x54f29d._0x5addd0,_0x54f29d._0x4ac66d)](_0xdce695);!_0x55e2b4&&(_0x55e2b4={'id':_0x327fc7['id']??_0x1ab9ef(0x329,_0x54f29d._0x94a05,_0x54f29d._0x21ffd8,0x33d)+_0xdce695,'type':_0x26b991(0x45,0x90,0x1b,-0x79),'function':{'name':_0x327fc7[_0x1ab9ef(0x2db,0x24b,_0x54f29d._0x3bc91d,_0x54f29d._0x4b6934)]?.[_0x26b991(0x69,_0x54f29d._0x468701,-0x27,0xcd)]??'','arguments':''}},this['toolCallsByIndex'][_0x1ab9ef(0x338,_0x54f29d._0x2c457e,0x352,0x2f5)](_0xdce695,_0x55e2b4),this[_0x26b991(0x7a,_0x54f29d._0x1f3043,-0xf,-0x7)][_0x26b991(0xb9,0x12f,0x25,0xc3)](_0x55e2b4));_0x327fc7['id']&&(_0x55e2b4['id']=_0x327fc7['id']);_0x327fc7['function']?.[_0x26b991(_0x54f29d._0x2bb183,_0x54f29d._0x189c35,-_0x54f29d._0x56fc3e,0x5f)]&&(_0x55e2b4[_0x26b991(_0x54f29d._0x216291,_0x54f29d._0x247293,_0x54f29d._0x189c35,_0x54f29d._0x2dc3a5)]['name']=_0x327fc7[_0x26b991(0x45,_0x54f29d._0x37ed10,-0x1a,0x2d)][_0x26b991(_0x54f29d._0x2bb183,_0x54f29d._0x2cc347,0x92,-0x4d)]);!this['toolUseStartEmitted'][_0x1ab9ef(_0x54f29d._0x1772ab,_0x54f29d._0x3a6c27,0x349,0x279)](_0xdce695)&&_0x55e2b4[_0x26b991(_0x54f29d._0x216291,0x2b,-0xf,0x36)][_0x26b991(0x69,0xab,_0x54f29d._0x155d7b,0x77)]['trim']()[_0x1ab9ef(0x380,0x37f,_0x54f29d._0x48ee63,0x346)]>0x0&&(_0x2c0df7[_0x1ab9ef(0x34f,_0x54f29d._0x319706,0x31a,_0x54f29d._0x4808fb)]({'type':'tool_use_delta','id':_0x55e2b4['id'],'index':_0xdce695,'name':_0x55e2b4['function']['name']}),this['toolUseStartEmitted']['add'](_0xdce695));const _0x2103a2=_0x327fc7[_0x1ab9ef(_0x54f29d._0x1f39f7,_0x54f29d._0x10ca84,0x246,0x306)]?.['arguments']??'';_0x2103a2[_0x1ab9ef(0x380,_0x54f29d._0x4b72f2,0x393,0x3e2)]>0x0&&(_0x55e2b4[_0x26b991(0x45,_0x54f29d._0xb7d953,-_0x54f29d._0x491712,_0x54f29d._0x3d005f)]['arguments']+=_0x2103a2,_0x2c0df7['push']({'type':_0x1ab9ef(0x39a,0x352,0x458,_0x54f29d._0x572f2b),'id':_0x55e2b4['id'],'index':_0xdce695,'inputDelta':_0x2103a2}));}_0x146669[_0x1ab9ef(0x2bf,_0x54f29d._0x59f5f2,0x35a,_0x54f29d._0x19e478)]===_0x26b991(-_0x54f29d._0x3ccd55,-0xb2,-0xae,-0x49)&&(this[_0x26b991(0x66,0xe8,0x0,-_0x54f29d._0x13d33c)]=_0x26b991(0xfe,_0x54f29d._0x507fcd,0x122,_0x54f29d._0x514d58));}function _0x26b991(_0x59182f,_0xc8c282,_0x2dbf87,_0x4d078d){return _0x3c7c8d(_0x59182f- -0x273,_0xc8c282-_0x374a68._0x5aae03,_0x2dbf87-0x9,_0x4d078d);}function _0x1ab9ef(_0x8a3623,_0x50e12e,_0x3bd438,_0x5916b2){return _0x3c7c8d(_0x8a3623-_0xdb6726._0x4645cf,_0x50e12e-_0xdb6726._0x404c45,_0x3bd438-0x120,_0x50e12e);}return _0x2c0df7;}},OpenAiResponsesStreamParser=class{[_0x3c7c8d(0x2cb,0x302,0x311,0x27a)]=new Map();[_0x3c7c8d(0x362,0x3c6,0x300,0x34a)];[_0x65d232(0x35,-0x21,-0x1,0x91)]=new Map();[_0x3c7c8d(0x275,0x2d6,0x2da,0x2aa)]=new Map();['reasoningItems']=new Map();[_0x3c7c8d(0x264,0x319,0x1fb,0x314)];['responseTextParts']=new Map();[_0x65d232(0xd,0xab,0x50,0xb8)]=new Map();constructor(_0x36672f){const _0x3de2f2={_0x595b45:0x29c,_0xaefeba:0x209,_0x35fa41:0x2f6},_0x579c03={_0x5ea025:0x38,_0x302939:0xe7};function _0x1bde02(_0x4fc909,_0x3c25a1,_0x20139d,_0xa3989f){return _0x3c7c8d(_0x4fc909-_0x579c03._0x5ea025,_0x3c25a1-0xee,_0x20139d-_0x579c03._0x302939,_0xa3989f);}this[_0x1bde02(_0x3de2f2._0x595b45,_0x3de2f2._0xaefeba,0x1e8,_0x3de2f2._0x35fa41)]=_0x36672f;}['consumeSseEvent'](_0x57cb30){const _0x4ecac2={_0x32d170:0x4d8,_0x4f1f89:0xbe,_0x4fb2f3:0x2b5,_0x509895:0x2c9,_0x11d065:0x365,_0x4f0c0a:0x371,_0x18a74b:0x294,_0x564445:0x48e,_0x5215ea:0x533,_0x59ba2c:0x5e6,_0x23e35d:0x5d3,_0xd9b771:0x387,_0x5cc77c:0x338,_0xaa7aaf:0x48b},_0xb39755={_0x4556fd:0x1e1,_0x229ff9:0x5a},_0x5b63d2={_0xe3914c:0x1cf,_0x82f77a:0xeb},_0x254ab4=_0x57cb30[_0x50b6eb(0x502,0x510,0x574,_0x4ecac2._0x32d170)]('\x0a');function _0x50b6eb(_0x43dd90,_0x566f71,_0x47b0af,_0x4012d3){return _0x3c7c8d(_0x43dd90-_0x5b63d2._0xe3914c,_0x566f71-_0x5b63d2._0x82f77a,_0x47b0af-0x109,_0x566f71);}function _0x580cef(_0x31769c,_0xb2cb89,_0x1f8e92,_0x1a97ec){return _0x3c7c8d(_0xb2cb89- -0x50e,_0xb2cb89-_0xb39755._0x4556fd,_0x1f8e92-_0xb39755._0x229ff9,_0x31769c);}const _0x25235c=_0x254ab4[_0x580cef(-0x107,-0x161,-0x1f8,-_0x4ecac2._0x4f1f89)](_0x5ee06a=>_0x5ee06a[_0x50b6eb(0x460,0x4f9,0x502,0x424)](_0x580cef(-0x312,-0x28c,-0x1d0,-0x268)))?.['slice'](0x6)[_0x580cef(-_0x4ecac2._0x4fb2f3,-_0x4ecac2._0x509895,-_0x4ecac2._0x11d065,-_0x4ecac2._0x4f0c0a)](),_0x2aba66=_0x254ab4[_0x580cef(-_0x4ecac2._0x18a74b,-0x287,-0x1d7,-0x2ee)](_0x3d3896=>_0x3d3896[_0x50b6eb(0x460,0x3be,0x440,0x3c9)](_0x50b6eb(0x4bb,0x406,0x4ba,0x522)))[_0x50b6eb(0x4c2,_0x4ecac2._0x564445,0x4fa,0x4dc)](_0x2982d1=>_0x2982d1['slice'](0x5)[_0x50b6eb(0x406,0x457,0x44a,0x4c7)]())[_0x50b6eb(_0x4ecac2._0x5215ea,_0x4ecac2._0x59ba2c,0x491,_0x4ecac2._0x23e35d)]('\x0a')[_0x580cef(-0x381,-_0x4ecac2._0x509895,-_0x4ecac2._0xd9b771,-0x31e)]();if(_0x2aba66['length']===0x0||_0x2aba66===_0x580cef(-_0x4ecac2._0x5cc77c,-0x2d6,-0x2cc,-0x30a))return[];const _0x5f09a0=JSON[_0x580cef(-0x1f6,-0x236,-0x1f1,-0x2c0)](_0x2aba66);return this[_0x50b6eb(_0x4ecac2._0xaa7aaf,0x48e,_0x4ecac2._0x5215ea,0x4e9)](_0x25235c??String(_0x5f09a0['type']??''),_0x5f09a0);}[_0x3c7c8d(0x301,0x399,0x350,0x318)](_0x37aa3d){const _0x55e131={_0x1baf46:0x4cb},_0x1156bc={_0x216a41:0x19f};function _0x252f2b(_0x589f78,_0xbbb903,_0x39af74,_0x25daa1){return _0x65d232(_0xbbb903-0x443,_0x589f78,_0x39af74-_0x1156bc._0x216a41,_0x25daa1-0xb3);}return this['consumeEvent'](String(_0x37aa3d[_0x252f2b(0x495,0x52a,_0x55e131._0x1baf46,0x5e8)]??''),_0x37aa3d);}[_0x65d232(0x10b,0x1c5,0xf0,0x8a)](){const _0x312c5d={_0x3e3f3c:0x183,_0x5d31a4:0x4b,_0xda4fe2:0xdc,_0xc2fb5e:0x147,_0x21911a:0xa9,_0xc56955:0x12c,_0x294337:0xca,_0x1dde13:0x166,_0x22ead6:0x309,_0x47f1c6:0x253},_0xf81995={_0x95b122:0x260},_0x238ba1={_0x347e11:0x31};function _0x5a7df4(_0x4f3164,_0x5f1567,_0x578f6a,_0x25a27d){return _0x3c7c8d(_0x4f3164- -0x3bb,_0x5f1567-0x98,_0x578f6a-_0x238ba1._0x347e11,_0x578f6a);}function _0x376bca(_0x3d9513,_0x39107c,_0x4d4bd5,_0x1825eb){return _0x65d232(_0x4d4bd5- -_0xf81995._0x95b122,_0x1825eb,_0x4d4bd5-0x25,_0x1825eb-0x1c0);}const _0x15802a=this['finalResponse']??{'id':_0x376bca(-0xf6,-0x173,-0x194,-0x161)+Date[_0x5a7df4(-0xf5,-_0x312c5d._0x3e3f3c,-0xcb,-_0x312c5d._0x5d31a4)](),'object':_0x376bca(-_0x312c5d._0xda4fe2,-0x156,-_0x312c5d._0xc2fb5e,-_0x312c5d._0x21911a),'status':_0x376bca(-_0x312c5d._0xc56955,-_0x312c5d._0x294337,-0x17f,-_0x312c5d._0x1dde13),'output':this[_0x376bca(-_0x312c5d._0x22ead6,-_0x312c5d._0x47f1c6,-0x28e,-0x30d)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x15802a,this['request']);}[_0x3c7c8d(0x32f,0x285,0x312,0x398)](){const _0x5341f3={_0x6843e0:0x116,_0x5ed878:0xbe,_0x528405:0x143},_0x205259={_0x472524:0xab,_0x14f1cc:0x181};function _0x5ad262(_0x4322c7,_0x1757be,_0x531d4,_0x626a13){return _0x3c7c8d(_0x531d4- -0x21f,_0x1757be-_0x205259._0x472524,_0x531d4-_0x205259._0x14f1cc,_0x626a13);}return this[_0x5ad262(_0x5341f3._0x6843e0,_0x5341f3._0x5ed878,_0x5341f3._0x528405,0x15d)]!==void 0x0;}[_0x3c7c8d(0x2bc,0x274,0x258,0x270)](_0x530d7f,_0x8567cf){const _0x497e95={_0x5bdaf7:0x65a,_0x261b15:0x632,_0x4c0dc8:0x20e,_0x1093bb:0x2d8,_0x282f88:0x562,_0x588474:0x4e2,_0x226557:0x522,_0x3d64f7:0x549,_0x3efb24:0x4b4,_0x464d74:0x4f8,_0x576de1:0x4ed,_0x2469cf:0x44b,_0x5eca83:0x533,_0x2d4b1f:0x669,_0x7d4bc2:0x154,_0xa2e8fa:0x1ab,_0x2a36e7:0x19c,_0x5e8fba:0x469,_0x580ab3:0x575,_0x57d146:0x115,_0x1c9bfc:0x11c,_0x5a70b7:0xcd,_0x45dc4b:0x52b,_0x4ef994:0x4e5,_0x665b66:0x221,_0x688c01:0x1ce,_0x2cef9d:0x1ca,_0x3f6fdd:0x488,_0x364613:0x24c,_0x1c437b:0x22b,_0x17fddc:0x111,_0x58cf9b:0x106,_0xc4d66d:0xb3,_0x3c1d47:0x1ab,_0x2c7c71:0x23e,_0x165afe:0x4ec,_0x35965d:0x4ca,_0x12dfaa:0xfe,_0x5dff71:0x151,_0x58a8f5:0x153,_0x25ed1b:0x53e,_0x5d10df:0x625,_0x1575f7:0x1d7,_0x30b4c1:0x21a,_0x33d0c1:0x539,_0x402c6d:0x53d,_0xa350d2:0x5f5,_0x58a87f:0x624,_0x3afac9:0x558,_0x36ecbc:0x209,_0x599779:0x2db,_0x948bc2:0x1e1,_0x51057c:0x29f,_0x569ce9:0x52f,_0x3c1f32:0x4a9,_0x5ea952:0x183,_0x2d9081:0x295,_0x5d1778:0x51d,_0x199d0b:0x55d,_0x4c836e:0x60e,_0x2a231c:0x116,_0x3a9ee0:0x56a,_0x292cd1:0x5ae,_0x591325:0x52d,_0x45a629:0x50c,_0x2cbc9d:0x562,_0x337947:0x4ef,_0x3d6d3e:0x483,_0x48574d:0x190,_0x557c4f:0x556,_0x2f2ad5:0x133,_0x3a0b74:0x1e4,_0x3561fd:0x447,_0x4acddc:0x423,_0x4697d2:0x2cd,_0x14df7c:0x229,_0x187d9d:0x463,_0x2484e7:0x518,_0x176c83:0x496,_0xbfb673:0x122,_0x572125:0x159,_0x29e2aa:0x243,_0x59ac8b:0x551,_0x5728bb:0x580,_0x5448b2:0x4fa,_0x163f6b:0x5a7,_0x3452e9:0x562,_0x41fdc7:0x33a,_0x5cba4a:0x27c,_0x48b7d3:0x4c2,_0x66a30b:0x54e,_0x8e9aea:0x2ff,_0x39636b:0x559,_0x59b10c:0x530,_0x1fe617:0x50d,_0x15c2f6:0x4e9,_0x5cd73d:0x52e,_0x5650e3:0x491,_0x5d167b:0x1ce,_0x560c1a:0x1d9,_0xae5c6a:0x58a,_0x2c50be:0x4be,_0x1f8788:0xb7,_0x4c1559:0x1cd,_0x5a57d7:0x14d,_0x45ec7c:0x18c,_0x1162c7:0x4b6,_0x30f09a:0x573,_0x5d831c:0x497,_0xe0f9f6:0x4eb,_0x747544:0x14f,_0x405bf8:0x610,_0xa801c8:0x566,_0x3aaf92:0x5aa,_0x1207db:0x509,_0xf625ae:0x5f1,_0x2a5d80:0x517,_0x229694:0x278,_0x18e069:0x1cf,_0x141250:0x179,_0x2c3626:0x190,_0xa9c0fc:0x136,_0x2f91e1:0xc0,_0x284f5e:0x136,_0xa8948e:0xcb,_0x52a495:0x1bc,_0x5a2411:0x1c0,_0x1b7008:0x490,_0xfeedf2:0x4e1,_0x1d06e8:0x49e,_0x1cb869:0x543,_0x3a9039:0x633,_0x308a19:0x5bf,_0x1650f2:0x569,_0x2b9435:0x4ef,_0x2a3c20:0x1e9,_0xbe0fec:0x20a,_0x51e7ce:0x28e,_0x4da38d:0x1c4,_0x595d7d:0x107,_0x610a39:0x18a,_0x1acd8f:0x20a,_0x5c7f4d:0x27f,_0x527b7e:0x4ef,_0x2f18fc:0x513,_0x17c89d:0x4ce,_0x7de3fc:0x49d,_0x5661e7:0x651,_0x329ece:0x607,_0x4c4e74:0x570,_0x36003b:0x435,_0x462cfa:0x265,_0x5a8502:0x188,_0xf65b8c:0x23c,_0x51bf4b:0x18d,_0x200389:0x298,_0x42b69d:0x252,_0x13fd04:0x1f6,_0x40c71d:0x19d,_0x5dd29b:0x233,_0x166047:0x4e4,_0x2eb264:0x449,_0x3dedde:0x4bd,_0x195e6f:0x5c9,_0x1ea61c:0x2d8,_0x207c53:0x252,_0x2275a5:0x1a6,_0x253985:0x11f,_0x435b97:0x142,_0x1a4f06:0x14d,_0x1c341b:0xdf,_0xb2ed64:0x120,_0x484ec8:0x7c,_0x2cdc45:0x5fa,_0x402873:0x5a8,_0x4943c1:0x47f,_0x1ff387:0x4fe,_0x71a2c8:0x502,_0x24a811:0x1ab,_0x50e25d:0x277,_0x53dd11:0x32b,_0x3d1d1d:0x27c,_0x3a5892:0x233,_0xfef847:0xbb,_0x54f10c:0x141,_0x2d8c19:0x111,_0x43b294:0x245,_0x259c16:0x1bf,_0x3eae2f:0x231,_0x24cd2a:0x25b,_0x454e3a:0x226,_0x5623e5:0x4e6,_0x24e538:0x4d5,_0x39e565:0x4bc,_0x22c331:0x4c5,_0xbe0ce:0x67d,_0x138682:0x645,_0x265ab4:0x4a8,_0x36118f:0x454,_0x24f69b:0x2b0,_0x1a141e:0x190,_0x40da36:0x50b,_0x39d061:0x575,_0x5b70dc:0x17e,_0x5e5711:0x2cd,_0x20a653:0x46f,_0x217c8d:0x437,_0x4ec2c5:0x462,_0x194911:0x4c4,_0x13a782:0x55c,_0x5dee69:0x611,_0x43110f:0x18e,_0x3b0f8d:0x108,_0x4a1824:0x122,_0xe6eef:0x1d7,_0x4cc080:0x56c,_0x482b24:0x4bc,_0x52b945:0x5b5,_0x20ba41:0x56b,_0x387164:0x288,_0x45c71f:0x179,_0x2334e8:0x2dd,_0x1754d2:0x27c,_0x210d46:0x281,_0x2fa715:0x1d1,_0x469b9b:0x149,_0x580884:0x5c0,_0x26bcc4:0x641,_0x41936c:0x57f,_0x4d1632:0x5c6,_0x38ac9d:0x173,_0x5b3586:0x1d6,_0xd5122c:0x1b3,_0x447038:0x220,_0x1047cf:0x27c,_0xb40468:0x2a7,_0x469561:0x596,_0x2ccbbc:0x50b,_0x26ccc9:0x64c,_0x34ef20:0x692,_0x1f4759:0x5a9,_0x34c813:0x696,_0xe1cb8c:0x4b0,_0x1b3c80:0x57d,_0x260ed2:0x5d0,_0x31480c:0x4ba,_0x4712bf:0x4f3,_0x4cc1bd:0x45f,_0x1c6f68:0x4f6,_0x4b6708:0xd7,_0x596617:0x4ee,_0x39105e:0x4d1,_0x1420f2:0x4bf,_0x5c46ba:0x22e,_0x32d8a5:0x288,_0x5464b0:0x1ed,_0x143f91:0x521,_0x26b95d:0x51e,_0x3bc829:0x546,_0x444c83:0x338,_0x44caa6:0x27c,_0x4b2b93:0x5d8,_0x34b235:0x572,_0xdc0674:0x52c,_0x456f19:0x1f4,_0x1ac263:0x266,_0x42013c:0x27a,_0x446455:0x588,_0x1d14ae:0x589,_0x17e6c9:0x20c,_0x1f07b7:0x1c5,_0x59ea67:0x27a,_0x243378:0x542,_0x19399d:0x5c7,_0xc9c2bf:0x529,_0x4d362c:0x537,_0x290339:0x474,_0x2aa425:0x4e1,_0x1d8ee5:0x56f,_0xe212f6:0x50b,_0x443ac0:0x57e,_0xdc8df1:0x56b,_0x589506:0x209,_0x4c1beb:0x453,_0x188585:0x4a6,_0x172dcf:0x562,_0x50d810:0x4df,_0xc9b560:0x5b3,_0x55d953:0x52c,_0x3f1879:0x562,_0x6d6117:0x23f,_0x29201c:0x1d5,_0x26b8fb:0x267,_0x390770:0x512,_0xeac86d:0x47c,_0x27efd4:0x542,_0x2296ea:0x2a9,_0xe4b871:0x1c7,_0x22d5ea:0x323,_0x38e511:0x28a,_0x55d61f:0xfe,_0xe06efd:0x128,_0x1ab418:0x5ae,_0x2a12e0:0x650,_0x543a8c:0x159,_0x34d6b7:0x5e5,_0x145a00:0x633,_0x44a446:0x547,_0x157c60:0x5fc,_0xfa5c2a:0x1b5,_0x52d183:0xde,_0x3d0a05:0x590,_0x2007a0:0x2a1,_0x2fa67c:0x4b5,_0x2123c5:0x525,_0x2ed603:0x5e4,_0x33d824:0x610,_0x8b7cf7:0x6af,_0x4ba4b1:0x250,_0x5e4d65:0x1bd},_0xac57aa={_0x25a523:0x1d8},_0x4d49ab={_0x32cb0b:0x260,_0x22c53f:0x8a};function _0x373b5f(_0x53cf5f,_0x4e5f15,_0x1e0c91,_0x3098d4){return _0x3c7c8d(_0x1e0c91-_0x4d49ab._0x32cb0b,_0x4e5f15-0xf6,_0x1e0c91-_0x4d49ab._0x22c53f,_0x3098d4);}function _0x30152c(_0x3b15f4,_0x5821c2,_0xef8afc,_0x397cab){return _0x3c7c8d(_0xef8afc- -0x134,_0x5821c2-0x17a,_0xef8afc-_0xac57aa._0x25a523,_0x5821c2);}switch(_0x530d7f){case _0x373b5f(0x672,_0x497e95._0x5bdaf7,0x5c8,_0x497e95._0x261b15):{const _0x1ea8d6=typeof _0x8567cf['output_index']===_0x30152c(_0x497e95._0x4c0dc8,_0x497e95._0x1093bb,0x27c,0x259)?_0x8567cf[_0x373b5f(0x533,0x5b3,_0x497e95._0x282f88,_0x497e95._0x588474)]:0x0,_0x5550c7=typeof _0x8567cf[_0x373b5f(_0x497e95._0x226557,_0x497e95._0x3d64f7,_0x497e95._0x3efb24,0x513)]===_0x373b5f(_0x497e95._0x464d74,0x4d2,0x4e1,_0x497e95._0x576de1)?_0x8567cf[_0x373b5f(0x4f6,0x442,_0x497e95._0x3efb24,_0x497e95._0x2469cf)]:'';if(_0x5550c7[_0x373b5f(_0x497e95._0x5eca83,_0x497e95._0x2d4b1f,0x5bd,0x5cb)]>0x0){const _0x4ffa58=this['responseTextParts'][_0x30152c(0x1dd,0x165,0x136,_0x497e95._0x7d4bc2)](_0x1ea8d6)??[];return _0x4ffa58[_0x30152c(_0x497e95._0xa2e8fa,_0x497e95._0x2a36e7,0x1f8,0x1a8)](_0x5550c7),this[_0x373b5f(0x4a2,0x51c,0x4b1,_0x497e95._0x5e8fba)][_0x373b5f(0x549,0x620,_0x497e95._0x580ab3,0x613)](_0x1ea8d6,_0x4ffa58),[{'type':_0x30152c(_0x497e95._0x57d146,_0x497e95._0x1c9bfc,0x18e,_0x497e95._0x5a70b7),'index':_0x1ea8d6,'text':_0x5550c7}];}break;}case _0x373b5f(_0x497e95._0x45dc4b,_0x497e95._0x4ef994,0x5a0,0x566):{const _0x539c3b=typeof _0x8567cf['output_index']==='number'?_0x8567cf[_0x30152c(_0x497e95._0x665b66,0x1b2,_0x497e95._0x688c01,_0x497e95._0x2cef9d)]:void 0x0,_0x4928a0=_0x8567cf[_0x373b5f(_0x497e95._0x3f6fdd,0x53b,0x533,0x4da)];if(_0x4928a0?.[_0x30152c(_0x497e95._0x364613,0x261,_0x497e95._0x1c437b,0x2a5)]===_0x30152c(0x1a9,_0x497e95._0x17fddc,_0x497e95._0x58cf9b,_0x497e95._0xc4d66d)&&_0x4928a0[_0x30152c(_0x497e95._0x3c1d47,_0x497e95._0x2c7c71,0x21a,0x25d)]&&_0x4928a0[_0x373b5f(_0x497e95._0x165afe,_0x497e95._0x35965d,0x53c,0x575)])return this[_0x30152c(0x165,_0x497e95._0x12dfaa,_0x497e95._0x5dff71,_0x497e95._0x58a8f5)]['set'](_0x4928a0['call_id'],{'id':_0x4928a0['call_id'],'type':_0x373b5f(0x4b8,0x4e7,0x518,_0x497e95._0x25ed1b),'function':{'name':_0x4928a0['name'],'arguments':''}}),_0x539c3b!==void 0x0&&(this['outputIndexToCallId'][_0x373b5f(0x4ca,_0x497e95._0x5d10df,0x575,0x522)](_0x539c3b,_0x4928a0[_0x30152c(0x257,_0x497e95._0x1575f7,_0x497e95._0x30b4c1,0x226)]),this[_0x373b5f(_0x497e95._0x33d0c1,_0x497e95._0x402c6d,0x52b,0x4d9)][_0x373b5f(_0x497e95._0xa350d2,_0x497e95._0x58a87f,0x575,_0x497e95._0x3afac9)](_0x4928a0[_0x30152c(0x188,0x19d,0x21a,_0x497e95._0x36ecbc)],_0x539c3b)),[{'type':_0x30152c(_0x497e95._0x599779,_0x497e95._0x948bc2,0x243,_0x497e95._0x51057c),'id':_0x4928a0[_0x30152c(0x1c8,0x24c,0x21a,0x18e)],'index':_0x539c3b??0x0,'name':_0x4928a0[_0x373b5f(_0x497e95._0x569ce9,0x491,0x53c,_0x497e95._0x3c1f32)]}];if(_0x4928a0?.[_0x30152c(_0x497e95._0x5ea952,0x229,0x22b,_0x497e95._0x2d9081)]===_0x373b5f(0x539,0x568,_0x497e95._0x5d1778,_0x497e95._0x199d0b)&&_0x4928a0['id']){const _0x4363eb=this['getOrCreateReasoningItem'](_0x4928a0['id'],_0x539c3b);_0x539c3b!==void 0x0&&this['outputIndexToReasoningId'][_0x373b5f(_0x497e95._0x4c836e,0x4dd,0x575,0x5b4)](_0x539c3b,_0x4363eb['id']);}break;}case _0x30152c(0x12f,0xa5,0x152,_0x497e95._0x2a231c):{const _0x2eff17=typeof _0x8567cf[_0x373b5f(0x515,_0x497e95._0x3a9ee0,_0x497e95._0x292cd1,_0x497e95._0x591325)]==='string'?_0x8567cf['call_id']:typeof _0x8567cf[_0x373b5f(0x4d4,_0x497e95._0x45a629,_0x497e95._0x2cbc9d,0x54e)]==='number'?this['outputIndexToCallId'][_0x373b5f(_0x497e95._0x337947,0x4a8,0x4ca,_0x497e95._0x3d6d3e)](_0x8567cf[_0x30152c(0x151,0x1d3,0x1ce,_0x497e95._0x48574d)]):void 0x0,_0x31ff6c=typeof _0x8567cf[_0x373b5f(0x53c,0x535,0x4b4,_0x497e95._0x557c4f)]===_0x30152c(0x1ab,0x1a8,0x14d,_0x497e95._0x2f2ad5)?_0x8567cf[_0x373b5f(0x48a,0x429,_0x497e95._0x3efb24,0x550)]:'',_0x57517e=_0x2eff17?this[_0x30152c(_0x497e95._0x3a0b74,0x132,0x151,0x1d7)][_0x373b5f(_0x497e95._0x3561fd,0x4f8,_0x497e95._0x35965d,_0x497e95._0x4acddc)](_0x2eff17):void 0x0;if(_0x57517e&&_0x31ff6c[_0x30152c(_0x497e95._0x2c7c71,_0x497e95._0x4697d2,_0x497e95._0x14df7c,0x2ac)]>0x0)return _0x57517e[_0x373b5f(_0x497e95._0x187d9d,0x59c,_0x497e95._0x2484e7,_0x497e95._0x176c83)][_0x30152c(0xcd,0xf7,_0x497e95._0xbfb673,_0x497e95._0x572125)]+=_0x31ff6c,[{'type':_0x30152c(0x19a,0x1b4,_0x497e95._0x29e2aa,0x207),'id':_0x57517e['id'],'index':this[_0x373b5f(0x542,0x4a1,0x52b,_0x497e95._0x59ac8b)][_0x373b5f(0x441,_0x497e95._0x5728bb,_0x497e95._0x35965d,_0x497e95._0x5448b2)](_0x57517e['id'])??(typeof _0x8567cf[_0x373b5f(_0x497e95._0x163f6b,0x4a4,_0x497e95._0x3452e9,_0x497e95._0x557c4f)]===_0x30152c(_0x497e95._0x41fdc7,0x293,_0x497e95._0x5cba4a,0x257)?_0x8567cf['output_index']:0x0),'inputDelta':_0x31ff6c}];break;}case'response.function_call_arguments.done':{const _0x5f1694=typeof _0x8567cf['call_id']===_0x373b5f(0x534,_0x497e95._0x48b7d3,0x4e1,0x4c5)?_0x8567cf[_0x373b5f(0x66e,_0x497e95._0x576de1,0x5ae,0x59f)]:typeof _0x8567cf[_0x373b5f(_0x497e95._0x66a30b,0x578,0x562,0x5c6)]===_0x30152c(0x32e,_0x497e95._0x8e9aea,0x27c,0x281)?this[_0x373b5f(_0x497e95._0x39636b,_0x497e95._0x59b10c,_0x497e95._0x1fe617,_0x497e95._0x15c2f6)][_0x373b5f(_0x497e95._0x5cd73d,_0x497e95._0x5650e3,0x4ca,_0x497e95._0x464d74)](_0x8567cf[_0x30152c(0x1d6,0x1cf,_0x497e95._0x5d167b,_0x497e95._0x560c1a)]):void 0x0,_0x3246ac=_0x5f1694?this['toolCalls'][_0x373b5f(_0x497e95._0xae5c6a,0x4e2,_0x497e95._0x35965d,_0x497e95._0x2c50be)](_0x5f1694):void 0x0;_0x3246ac&&typeof _0x8567cf['arguments']===_0x30152c(_0x497e95._0x1f8788,_0x497e95._0x4c1559,_0x497e95._0x5a57d7,_0x497e95._0x45ec7c)&&(_0x3246ac['function'][_0x373b5f(0x45f,0x459,_0x497e95._0x1162c7,0x417)]=_0x8567cf[_0x30152c(0x168,0x17f,0x122,0x7d)]);break;}case _0x373b5f(_0x497e95._0x30f09a,_0x497e95._0x5d831c,_0x497e95._0xe0f9f6,0x50d):{const _0x41e94e=typeof _0x8567cf[_0x30152c(_0x497e95._0x747544,0x24f,0x1ce,0x11c)]===_0x373b5f(0x61c,0x5f7,_0x497e95._0x405bf8,_0x497e95._0xa801c8)?_0x8567cf[_0x373b5f(_0x497e95._0x3aaf92,_0x497e95._0x1207db,_0x497e95._0x2cbc9d,_0x497e95._0xf625ae)]:void 0x0,_0x166553=_0x8567cf[_0x373b5f(_0x497e95._0x2a5d80,0x4f6,0x533,0x51f)];if(_0x166553?.[_0x30152c(0x1c9,0x2e1,_0x497e95._0x1c437b,_0x497e95._0x229694)]===_0x30152c(_0x497e95._0xc4d66d,0xf2,0x106,0x10a)){const _0x3d4302=_0x166553['call_id']??(_0x41e94e!==void 0x0?this[_0x30152c(0x167,_0x497e95._0x18e069,_0x497e95._0x141250,_0x497e95._0x2c3626)][_0x30152c(0x106,0x15b,_0x497e95._0xa9c0fc,_0x497e95._0x57d146)](_0x41e94e):void 0x0),_0x250b61=_0x3d4302?this['toolCalls'][_0x30152c(_0x497e95._0x2f91e1,0x97,_0x497e95._0x284f5e,0x16c)](_0x3d4302):void 0x0;_0x250b61&&typeof _0x166553[_0x30152c(_0x497e95._0xa8948e,_0x497e95._0x52a495,0x122,_0x497e95._0x5a2411)]===_0x373b5f(_0x497e95._0x1b7008,0x556,_0x497e95._0xfeedf2,0x487)&&(_0x250b61['function'][_0x30152c(0x183,0x10d,0x122,0xeb)]=_0x166553[_0x373b5f(0x416,_0x497e95._0x1d06e8,0x4b6,_0x497e95._0x1cb869)]);break;}if(_0x166553?.[_0x373b5f(0x566,_0x497e95._0x3a9039,_0x497e95._0x308a19,0x5fc)]===_0x373b5f(0x496,0x536,_0x497e95._0x5d1778,0x4e8)&&_0x166553['id']){const _0x2ba986=this[_0x373b5f(_0x497e95._0x1650f2,0x556,_0x497e95._0x2b9435,0x4aa)](_0x166553['id'],_0x41e94e);typeof _0x166553[_0x30152c(0x29d,_0x497e95._0x2a3c20,_0x497e95._0xbe0fec,_0x497e95._0x51e7ce)]===_0x30152c(_0x497e95._0x4da38d,_0x497e95._0x595d7d,_0x497e95._0x5a57d7,0xc3)&&(_0x2ba986['encryptedContent']=_0x166553[_0x30152c(0x1e9,_0x497e95._0x610a39,_0x497e95._0x1acd8f,_0x497e95._0x5c7f4d)]);if(Array['isArray'](_0x166553['summary']))for(let _0x1d8021=0x0;_0x1d8021<_0x166553[_0x373b5f(0x42e,_0x497e95._0x527b7e,0x4ce,_0x497e95._0x2f18fc)]['length'];_0x1d8021+=0x1){const _0x1d5c68=_0x166553[_0x373b5f(0x475,0x4b3,_0x497e95._0x17c89d,_0x497e95._0x7de3fc)][_0x1d8021];_0x1d5c68['type']===_0x373b5f(0x6a7,_0x497e95._0x5661e7,_0x497e95._0x329ece,_0x497e95._0x4c4e74)&&typeof _0x1d5c68['text']===_0x373b5f(0x4d9,0x481,_0x497e95._0xfeedf2,_0x497e95._0x36003b)&&_0x2ba986[_0x30152c(_0x497e95._0x462cfa,_0x497e95._0x5a8502,_0x497e95._0xf65b8c,_0x497e95._0x51bf4b)]['set'](_0x1d8021,_0x1d5c68[_0x30152c(_0x497e95._0x200389,0x1cf,_0x497e95._0x42b69d,0x292)]);}typeof _0x166553[_0x30152c(_0x497e95._0x13fd04,_0x497e95._0x40c71d,_0x497e95._0x42b69d,_0x497e95._0x5dd29b)]===_0x373b5f(_0x497e95._0x166047,_0x497e95._0x2eb264,0x4e1,0x4f4)&&_0x2ba986['textByIndex'][_0x373b5f(_0x497e95._0x3dedde,0x4c6,0x575,_0x497e95._0x195e6f)](0x0,_0x166553[_0x30152c(_0x497e95._0x1ea61c,0x213,_0x497e95._0x207c53,0x300)]);}break;}case _0x30152c(_0x497e95._0x2275a5,0x6c,_0x497e95._0x253985,0xf1):{const _0x32df71=typeof _0x8567cf['delta']===_0x30152c(0xf5,_0x497e95._0x435b97,_0x497e95._0x1a4f06,0x1d0)?_0x8567cf[_0x30152c(0x181,_0x497e95._0x1c341b,_0x497e95._0xb2ed64,_0x497e95._0x484ec8)]:'',_0x5b1cff=typeof _0x8567cf[_0x373b5f(_0x497e95._0x2cdc45,_0x497e95._0x402873,0x56b,0x590)]===_0x373b5f(_0x497e95._0x4943c1,_0x497e95._0x1ff387,0x4e1,_0x497e95._0x71a2c8)?_0x8567cf[_0x30152c(0x189,_0x497e95._0x24a811,0x1d7,_0x497e95._0x51bf4b)]:typeof _0x8567cf['output_index']===_0x30152c(_0x497e95._0x50e25d,_0x497e95._0x53dd11,_0x497e95._0x3d1d1d,_0x497e95._0x3a5892)?this[_0x30152c(_0x497e95._0xfef847,0xc5,_0x497e95._0x54f10c,_0x497e95._0x2d8c19)][_0x30152c(0x1da,0xe3,0x136,0x1e4)](_0x8567cf['output_index']):void 0x0,_0x162945=typeof _0x8567cf[_0x30152c(_0x497e95._0x43b294,_0x497e95._0x259c16,0x1ce,_0x497e95._0x3eae2f)]===_0x30152c(0x243,_0x497e95._0x24cd2a,0x27c,_0x497e95._0x454e3a)?_0x8567cf[_0x373b5f(_0x497e95._0x5623e5,_0x497e95._0x24e538,_0x497e95._0x3452e9,0x5f5)]:0x0,_0x152e4e=typeof _0x8567cf[_0x373b5f(0x460,_0x497e95._0x39e565,0x50b,_0x497e95._0x22c331)]==='number'?_0x8567cf[_0x373b5f(0x484,0x45d,0x50b,0x4f0)]:0x0;if(_0x5b1cff&&_0x32df71[_0x373b5f(0x5c3,_0x497e95._0xbe0ce,0x5bd,_0x497e95._0x138682)]>0x0){const _0x37eed8=this[_0x373b5f(_0x497e95._0x265ab4,_0x497e95._0x36118f,0x4ef,0x51e)](_0x5b1cff,_0x162945);_0x37eed8[_0x30152c(0x2ef,_0x497e95._0x24f69b,0x23c,_0x497e95._0x1a141e)][_0x373b5f(0x628,_0x497e95._0x40da36,_0x497e95._0x39d061,0x4e5)](_0x152e4e,''+(_0x37eed8[_0x30152c(0x2fa,_0x497e95._0x5b70dc,0x23c,_0x497e95._0x5e5711)][_0x373b5f(_0x497e95._0x20a653,0x58a,0x4ca,_0x497e95._0x217c8d)](_0x152e4e)??'')+_0x32df71);if(isUserVisibleReasoning(this[_0x373b5f(_0x497e95._0x4ec2c5,0x4e7,_0x497e95._0x194911,_0x497e95._0x13a782)]))return[{'type':_0x373b5f(0x579,0x657,0x612,_0x497e95._0x5dee69),'delta':_0x32df71,'itemId':_0x5b1cff,'outputIndex':_0x162945,'summaryIndex':_0x152e4e}];}break;}case _0x30152c(_0x497e95._0x43110f,_0x497e95._0x3b0f8d,0x155,0x152):{const _0xe5a93c=typeof _0x8567cf[_0x30152c(0x270,_0x497e95._0x4a1824,_0x497e95._0xe6eef,0x228)]===_0x373b5f(_0x497e95._0x4cc080,0x4a8,0x4e1,_0x497e95._0x482b24)?_0x8567cf[_0x373b5f(0x56e,_0x497e95._0x52b945,_0x497e95._0x20ba41,0x5b4)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x387164,_0x497e95._0x45c71f,0x1ce,0x207)]===_0x30152c(0x275,_0x497e95._0x2334e8,_0x497e95._0x1754d2,_0x497e95._0x210d46)?this['outputIndexToReasoningId']['get'](_0x8567cf[_0x30152c(_0x497e95._0x3a0b74,0x1a5,0x1ce,_0x497e95._0x2fa715)]):void 0x0,_0x2df10c=typeof _0x8567cf[_0x30152c(0x144,0x142,0x1ce,_0x497e95._0x469b9b)]===_0x373b5f(_0x497e95._0x580884,_0x497e95._0x26bcc4,0x610,0x5b0)?_0x8567cf[_0x373b5f(_0x497e95._0x41936c,_0x497e95._0x4d1632,0x562,0x561)]:0x0,_0x578766=typeof _0x8567cf[_0x30152c(_0x497e95._0x38ac9d,_0x497e95._0x5b3586,0x177,_0x497e95._0xd5122c)]===_0x30152c(_0x497e95._0x447038,0x32e,_0x497e95._0x1047cf,_0x497e95._0xb40468)?_0x8567cf[_0x373b5f(0x45f,_0x497e95._0x469561,_0x497e95._0x2ccbbc,0x4fb)]:0x0,_0x46bb0c=typeof _0x8567cf[_0x373b5f(_0x497e95._0x26ccc9,_0x497e95._0x34ef20,0x5e6,_0x497e95._0x1f4759)]==='string'?_0x8567cf[_0x373b5f(0x52e,0x622,0x5e6,_0x497e95._0x34c813)]:'';_0xe5a93c&&this[_0x373b5f(0x50c,0x5ad,0x4ef,_0x497e95._0xe1cb8c)](_0xe5a93c,_0x2df10c)[_0x373b5f(0x59b,_0x497e95._0x1b3c80,_0x497e95._0x260ed2,0x5b8)]['set'](_0x578766,_0x46bb0c);break;}case _0x373b5f(_0x497e95._0x31480c,0x458,0x4f6,_0x497e95._0x4712bf):{const _0x5ecd7e=typeof _0x8567cf[_0x373b5f(0x403,0x566,_0x497e95._0x3efb24,_0x497e95._0x4cc1bd)]===_0x373b5f(0x4d6,0x57b,0x4e1,_0x497e95._0x1c6f68)?_0x8567cf[_0x30152c(0xb2,_0x497e95._0x4b6708,_0x497e95._0xb2ed64,0xb8)]:'',_0x40a53d=typeof _0x8567cf['item_id']===_0x373b5f(_0x497e95._0x596617,0x57d,0x4e1,0x49e)?_0x8567cf[_0x373b5f(0x5b5,_0x497e95._0x39105e,0x56b,_0x497e95._0x1420f2)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x5c46ba,0x1f0,0x1ce,0x19f)]===_0x30152c(0x316,0x21e,0x27c,_0x497e95._0x32d8a5)?this[_0x30152c(0x155,0x8a,0x141,_0x497e95._0x5464b0)][_0x30152c(0x131,0x1ac,0x136,0x161)](_0x8567cf['output_index']):void 0x0,_0x89b3fa=typeof _0x8567cf[_0x30152c(_0x497e95._0x40c71d,0x162,0x1ce,_0x497e95._0x2c7c71)]==='number'?_0x8567cf[_0x373b5f(0x5c6,_0x497e95._0x143f91,0x562,0x5af)]:0x0,_0xfcba26=typeof _0x8567cf[_0x373b5f(_0x497e95._0x26b95d,0x4fa,0x572,_0x497e95._0x3bc829)]===_0x30152c(_0x497e95._0x444c83,0x2c3,_0x497e95._0x44caa6,0x2a8)?_0x8567cf[_0x373b5f(0x5a0,_0x497e95._0x4b2b93,_0x497e95._0x34b235,_0x497e95._0xdc0674)]:0x0;if(_0x40a53d&&_0x5ecd7e[_0x30152c(0x219,0x291,_0x497e95._0x14df7c,_0x497e95._0x456f19)]>0x0){const _0x1713d1=this[_0x373b5f(_0x497e95._0xdc0674,_0x497e95._0x1c6f68,0x4ef,0x45f)](_0x40a53d,_0x89b3fa);_0x1713d1[_0x30152c(_0x497e95._0x1ac263,0x20a,_0x497e95._0x42013c,0x1f6)][_0x373b5f(_0x497e95._0x446455,_0x497e95._0x1d14ae,_0x497e95._0x580ab3,0x541)](_0xfcba26,''+(_0x1713d1[_0x30152c(_0x497e95._0x17e6c9,_0x497e95._0x1f07b7,_0x497e95._0x59ea67,0x2ff)]['get'](_0xfcba26)??'')+_0x5ecd7e);if(isUserVisibleReasoning(this[_0x30152c(0x172,0x177,0x130,0x109)]))return[{'type':_0x373b5f(0x5d8,_0x497e95._0x3bc829,_0x497e95._0x243378,_0x497e95._0x19399d),'contentIndex':_0xfcba26,'delta':_0x5ecd7e,'itemId':_0x40a53d,'outputIndex':_0x89b3fa}];}break;}case _0x373b5f(_0x497e95._0xc9c2bf,_0x497e95._0x4d362c,0x5af,0x5ce):{const _0x52fe42=typeof _0x8567cf['item_id']===_0x373b5f(_0x497e95._0x290339,0x569,_0x497e95._0x2aa425,_0x497e95._0x1d8ee5)?_0x8567cf[_0x373b5f(_0x497e95._0xe212f6,_0x497e95._0x443ac0,_0x497e95._0xdc8df1,0x51b)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x589506,0x260,0x1ce,0x130)]==='number'?this['outputIndexToReasoningId'][_0x373b5f(_0x497e95._0x4ef994,0x586,0x4ca,_0x497e95._0x4c1beb)](_0x8567cf[_0x373b5f(_0x497e95._0x188585,0x52e,_0x497e95._0x172dcf,_0x497e95._0x50d810)]):void 0x0,_0x1953ba=typeof _0x8567cf[_0x373b5f(_0x497e95._0xc9b560,_0x497e95._0x55d953,_0x497e95._0x3f1879,0x582)]===_0x30152c(_0x497e95._0x6d6117,_0x497e95._0x29201c,_0x497e95._0x44caa6,_0x497e95._0x26b8fb)?_0x8567cf['output_index']:0x0,_0x12e4c5=typeof _0x8567cf[_0x373b5f(0x62f,0x5cb,0x572,_0x497e95._0xc9b560)]==='number'?_0x8567cf[_0x373b5f(0x545,0x4d5,0x572,_0x497e95._0x390770)]:0x0,_0x310985=typeof _0x8567cf['text']===_0x373b5f(_0x497e95._0xeac86d,_0x497e95._0x187d9d,_0x497e95._0x2aa425,_0x497e95._0x27efd4)?_0x8567cf['text']:'';_0x52fe42&&this['getOrCreateReasoningItem'](_0x52fe42,_0x1953ba)[_0x30152c(_0x497e95._0x2296ea,_0x497e95._0xe4b871,0x27a,_0x497e95._0x22d5ea)][_0x30152c(0x129,0x13e,0x1e1,_0x497e95._0x38e511)](_0x12e4c5,_0x310985);break;}case _0x30152c(_0x497e95._0x55d61f,_0x497e95._0xe06efd,0x182,_0x497e95._0x3b0f8d):{this[_0x373b5f(_0x497e95._0x1ab418,_0x497e95._0x2a12e0,0x5c2,0x548)]=_0x8567cf['response'];break;}case _0x30152c(0x13f,0x200,_0x497e95._0x543a8c,_0x497e95._0x29201c):{const _0x2360cc=_0x8567cf['response'];throw new OpenAiResponsesStreamError(_0x2360cc?.[_0x373b5f(0x614,_0x497e95._0x52b945,_0x497e95._0x34d6b7,_0x497e95._0x145a00)]?.['message']??'Responses\x20stream\x20failed',{'code':_0x2360cc?.[_0x373b5f(_0x497e95._0x44a446,0x572,0x5e5,_0x497e95._0x157c60)]?.[_0x30152c(_0x497e95._0xfa5c2a,_0x497e95._0x52d183,0x193,0x17e)]});}case _0x373b5f(0x620,0x57b,0x5e5,_0x497e95._0x3d64f7):{const _0x2de1ee=_0x8567cf['error'];throw new OpenAiResponsesStreamError(_0x2de1ee?.[_0x373b5f(0x69d,_0x497e95._0x446455,0x5f0,_0x497e95._0x3d0a05)]??_0x30152c(0x2e0,0x2db,0x220,_0x497e95._0x2007a0),{'code':_0x2de1ee?.[_0x373b5f(_0x497e95._0x2fa67c,0x599,0x527,_0x497e95._0x2123c5)],'status':typeof _0x8567cf[_0x373b5f(0x578,0x669,_0x497e95._0x2ed603,0x5c2)]===_0x373b5f(0x66d,0x592,_0x497e95._0x33d824,_0x497e95._0x8b7cf7)?_0x8567cf[_0x30152c(0x205,0x20b,_0x497e95._0x4ba4b1,_0x497e95._0x5e4d65)]:void 0x0});}}return[];}[_0x65d232(-0x2e,-0xee,0x45,-0xbd)](){const _0x3170a8={_0x559428:0x220,_0x430934:0x354,_0x18b42f:0x130,_0x1d7296:0x148,_0x1af2bf:0x3b6,_0x44e896:0x38d,_0x5c442d:0x35c,_0x300563:0x44c,_0x141345:0x335,_0x23b557:0x386,_0x1183d6:0x315,_0x33ff89:0x269,_0x486deb:0x3d2,_0x23d01b:0x1d7,_0x1947ca:0x1da,_0x21ef30:0x417,_0x5f3154:0x35e,_0x63aa28:0x349,_0x265444:0x183,_0x6ff678:0x181,_0x3a13f8:0xd4,_0x3c6a30:0x185,_0x16b6db:0x354,_0x61e68c:0x438,_0x285f49:0xa2,_0x45eb7c:0x79,_0xf7d4eb:0x3cc,_0x33a46c:0x30d,_0x450d22:0x2f8,_0x449e3f:0x349,_0x418360:0x2fe,_0x2dd219:0x63,_0x4b8267:0xe5,_0x59ae01:0x3b9,_0x2e3769:0x308,_0x42533a:0x377,_0xf22e36:0x1ed,_0x4e7ff0:0x112,_0x255e85:0x195,_0xbb03c0:0x19d,_0x2b7806:0x161,_0x385d3e:0xaf,_0x13050f:0x132,_0x433416:0xaa,_0x338d68:0x336,_0x1a29e2:0x381,_0x31810c:0x2f4,_0x4f50d6:0x6d,_0x254b38:0x1b1,_0x40f742:0x7b,_0x3ea6b8:0x1f3,_0x101492:0x133,_0x4018fc:0x13b,_0x2727e6:0x26a,_0xefd104:0x1b9,_0x3b9479:0x33d,_0x54533f:0x31b,_0x21ed07:0x348,_0x45c1ac:0x37a,_0xf4f051:0x278,_0x1ed3fc:0x1cc,_0x1180ff:0x123,_0x492d52:0x399,_0x2e520e:0x323,_0x4c51ff:0x291,_0x2d41bc:0x394},_0x385f69={_0xfcba85:0x21},_0x5ea291={_0x93f96c:0x143},_0x4beee3={_0x23b6af:0x18e,_0x3b225f:0x2c8},_0x233132={_0x270748:0x45d},_0x4f91c2=[];function _0xae46b3(_0xff0526,_0x8751ee,_0x1e84b2,_0x936940){return _0x3c7c8d(_0x1e84b2- -_0x233132._0x270748,_0x8751ee-0x13c,_0x1e84b2-0x65,_0xff0526);}for(const [_0x2fe34d,_0x4ea84a]of this[_0x1b53ea(0x327,0x281,0x1d3,_0x3170a8._0x559428)][_0x1b53ea(0x34a,_0x3170a8._0x430934,0x412,0x3c2)]()){const _0x5b00eb=_0x4ea84a[_0xae46b3(-0x72,-_0x3170a8._0x18b42f,-0xf9,-_0x3170a8._0x1d7296)]('');if(_0x5b00eb[_0x1b53ea(_0x3170a8._0x1af2bf,_0x3170a8._0x44e896,0x401,0x44a)]===0x0)continue;_0x4f91c2[_0x1b53ea(0x348,_0x3170a8._0x5c442d,0x2f7,0x3a3)]({'index':_0x2fe34d,'item':{'type':_0x1b53ea(_0x3170a8._0x300563,0x3c0,_0x3170a8._0x141345,0x3a0),'role':_0x1b53ea(_0x3170a8._0x23b557,_0x3170a8._0x1183d6,_0x3170a8._0x33ff89,_0x3170a8._0x486deb),'content':[{'type':_0xae46b3(-0x261,-_0x3170a8._0x23d01b,-_0x3170a8._0x1947ca,-0x21c),'text':_0x5b00eb}]}});}for(const _0x51eae3 of this['reasoningItems'][_0x1b53ea(_0x3170a8._0x21ef30,_0x3170a8._0x5f3154,0x3b5,0x3fc)]()){_0x4f91c2['push']({'index':_0x51eae3[_0x1b53ea(0x379,0x30f,_0x3170a8._0x63aa28,0x32b)]??_0x4f91c2[_0xae46b3(-_0x3170a8._0x265444,-0x85,-0x100,-_0x3170a8._0x6ff678)],'item':{'type':'reasoning','id':_0x51eae3['id'],..._0x51eae3[_0xae46b3(-_0x3170a8._0x3a13f8,-0xa4,-0xfa,-_0x3170a8._0x3c6a30)]?{'encrypted_content':_0x51eae3[_0x1b53ea(_0x3170a8._0x16b6db,0x393,_0x3170a8._0x61e68c,0x3a8)]}:{},..._0x51eae3[_0xae46b3(-_0x3170a8._0x285f49,-_0x3170a8._0x45eb7c,-0xed,-0x127)][_0x1b53ea(_0x3170a8._0xf7d4eb,0x33a,0x3b3,_0x3170a8._0x33a46c)]>0x0?{'summary':Array[_0x1b53ea(0x317,_0x3170a8._0x450d22,_0x3170a8._0x449e3f,0x2ff)](_0x51eae3['summaryByIndex'][_0x1b53ea(_0x3170a8._0x418360,_0x3170a8._0x16b6db,0x2a6,0x2bc)]())[_0xae46b3(-_0x3170a8._0x2dd219,-0x1a3,-_0x3170a8._0x4b8267,-0x10b)]((_0x46f037,_0x32f782)=>_0x46f037[0x0]-_0x32f782[0x0])[_0x1b53ea(_0x3170a8._0x59ae01,0x323,0x3c2,_0x3170a8._0x2e3769)](([,_0x4bf183])=>{function _0x16ee79(_0x3226a8,_0x4f3f87,_0x334b43,_0x23f2df){return _0x1b53ea(_0x3226a8-_0x4beee3._0x23b6af,_0x3226a8- -_0x4beee3._0x3b225f,_0x4f3f87,_0x23f2df-0xd1);}return{'type':_0x16ee79(0x10f,0x106,_0x5ea291._0x93f96c,0x154),'text':_0x4bf183};})}:{},..._0x51eae3[_0x1b53ea(0x3ce,0x3de,_0x3170a8._0x42533a,0x448)]['size']>0x0?{'text':Array[_0xae46b3(-_0x3170a8._0xf22e36,-_0x3170a8._0x4e7ff0,-_0x3170a8._0x255e85,-_0x3170a8._0xbb03c0)](_0x51eae3[_0xae46b3(-0x136,-_0x3170a8._0x2b7806,-_0x3170a8._0x385d3e,-_0x3170a8._0x13050f)][_0xae46b3(-0xdf,-_0x3170a8._0x433416,-0x139,-0xd1)]())[_0x1b53ea(0x400,0x3a8,0x34f,_0x3170a8._0x338d68)]((_0x29de0c,_0x2dd4a1)=>_0x29de0c[0x0]-_0x2dd4a1[0x0])[_0x1b53ea(_0x3170a8._0x2e3769,0x323,_0x3170a8._0x1a29e2,_0x3170a8._0x31810c)](([,_0x394274])=>_0x394274)[_0xae46b3(-0xe5,-_0x3170a8._0x4f50d6,-0xf9,-_0x3170a8._0x254b38)]('')}:{}}});}function _0x1b53ea(_0x189fe8,_0x45412f,_0x226295,_0x3d21d1){return _0x3c7c8d(_0x45412f-0x30,_0x45412f-_0x385f69._0xfcba85,_0x226295-0x1a5,_0x226295);}for(const _0x2352a2 of this[_0x1b53ea(0x22e,0x2b5,0x2dd,0x2b4)][_0xae46b3(-_0x3170a8._0x40f742,-0x71,-0x12f,-0x1d1)]()){_0x4f91c2[_0x1b53ea(0x41d,0x35c,0x385,0x3d9)]({'index':this['callIdToOutputIndex'][_0xae46b3(-0x1e0,-0x212,-_0x3170a8._0x3ea6b8,-0x17e)](_0x2352a2['id'])??_0x4f91c2[_0xae46b3(-_0x3170a8._0x101492,-0x12a,-0x100,-_0x3170a8._0x4018fc)],'item':{'type':_0x1b53ea(0x2ad,_0x3170a8._0x2727e6,_0x3170a8._0xefd104,0x20b),'call_id':_0x2352a2['id'],'name':_0x2352a2[_0x1b53ea(_0x3170a8._0x3b9479,0x2e8,0x2c0,_0x3170a8._0x54533f)]['name'],'arguments':_0x2352a2[_0x1b53ea(0x2cc,0x2e8,_0x3170a8._0x21ed07,_0x3170a8._0x45c1ac)][_0xae46b3(-0x170,-_0x3170a8._0xf4f051,-0x207,-_0x3170a8._0x1ed3fc)]}});}return _0x4f91c2[_0xae46b3(-0x108,-_0x3170a8._0x1180ff,-0xe5,-0x8d)]((_0x57baae,_0x4b303e)=>_0x57baae[_0xae46b3(-0x224,-0x1af,-0x1fd,-0x16b)]-_0x4b303e[_0x1b53ea(0x348,0x290,0x294,0x234)])[_0x1b53ea(_0x3170a8._0x492d52,_0x3170a8._0x2e520e,_0x3170a8._0x4c51ff,_0x3170a8._0x2d41bc)](_0x42c5d5=>_0x42c5d5[_0x1b53ea(0x294,0x303,0x38f,0x3b9)]);}[_0x65d232(0x17,-0x7d,0x98,-0x4f)](_0x9a944c,_0x5da55a){const _0x171913={_0x35e63a:0x76,_0x489eab:0x2,_0x3e9e32:0x28,_0x38d95e:0x7b,_0x5bbde4:0x76,_0x559ae1:0x52,_0x285c22:0x11,_0x486ad3:0x6a,_0x432a91:0xc7,_0x5d84e6:0xbe,_0x2b0318:0x66},_0x342f61={_0x53a0a3:0x42f,_0x111eb6:0x1cf},_0x45e0b3={_0x3b8d58:0x264,_0x46de75:0x128},_0x1cd5fa=this[_0x5797a7(-_0x171913._0x35e63a,-0x10d,-0x182,-0xea)]['get'](_0x9a944c);function _0x200b36(_0x25f36a,_0x299d0b,_0x1682b3,_0x3011a0){return _0x3c7c8d(_0x1682b3- -_0x45e0b3._0x3b8d58,_0x299d0b-_0x45e0b3._0x46de75,_0x1682b3-0x2a,_0x3011a0);}if(_0x1cd5fa)return _0x5da55a!==void 0x0&&(_0x1cd5fa[_0x200b36(-_0x171913._0x489eab,-_0x171913._0x3e9e32,_0x171913._0x38d95e,0xd3)]=_0x5da55a,this[_0x200b36(-_0x171913._0x5bbde4,_0x171913._0x559ae1,_0x171913._0x285c22,_0x171913._0x486ad3)][_0x200b36(0x49,0x21,0xb1,0x14a)](_0x5da55a,_0x9a944c)),_0x1cd5fa;function _0x5797a7(_0x222e4d,_0x41f7a0,_0x55d034,_0xe59af8){return _0x3c7c8d(_0x41f7a0- -_0x342f61._0x53a0a3,_0x41f7a0-0x9a,_0x55d034-_0x342f61._0x111eb6,_0xe59af8);}const _0x320347={'id':_0x9a944c,'outputIndex':_0x5da55a,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x200b36(0x12e,_0x171913._0x432a91,_0x171913._0x5d84e6,0x10b)]['set'](_0x9a944c,_0x320347),_0x5da55a!==void 0x0&&this[_0x200b36(-_0x171913._0x559ae1,_0x171913._0x2b0318,_0x171913._0x285c22,0xc0)]['set'](_0x5da55a,_0x9a944c),_0x320347;}};function createOpenAiResponsesStreamParser(_0x1a8d94){return new OpenAiResponsesStreamParser(_0x1a8d94);}function createOpenAiSurfaces(_0x329d6e={}){const _0x26e450={_0x29c593:0x3fb,_0x209fc6:0x39f,_0x26c5a3:0x381,_0x6625a0:0x33a,_0x20923f:0x33d,_0x3bf225:0x30c,_0xec576b:0x29c,_0x3b048a:0x393,_0x7ac0f2:0x314,_0x16cc09:0x524,_0x225b87:0x31b,_0x58d603:0x324,_0x5547ab:0x2ff,_0x4178c7:0x3ef,_0x318c90:0x358},_0x4e7727={_0x21ea3d:0x140,_0x461be6:0x133},_0xde0133={_0x5e6414:0x250},_0x1a45a3={_0x223e97:0x14a,_0x8f5ad5:0xb4,_0x3e1c20:0x177},_0x17d0c9={_0x3cae43:0xeb,_0x5dd1e6:0x19c},_0x304dd4={_0x34f0b0:0xe4},_0x1082df={_0x40138b:0x43f,_0x3ae9f7:0x13},_0x66eba4=_0x329d6e[_0x5097d8(_0x26e450._0x29c593,0x2c6,0x3f0,0x382)]??_0x5097d8(0x317,_0x26e450._0x209fc6,_0x26e450._0x26c5a3,_0x26e450._0x6625a0);function _0x1eeefb(_0x47dd9c,_0x4a3eb5,_0x47933e,_0x4c187f){return _0x65d232(_0x4c187f-_0x1082df._0x40138b,_0x4a3eb5,_0x47933e-_0x1082df._0x3ae9f7,_0x4c187f-0x1ef);}function _0x5097d8(_0xd1fc96,_0x10876f,_0xb401d2,_0x4a2926){return _0x3c7c8d(_0x4a2926-0x63,_0x10876f-0x99,_0xb401d2-_0x304dd4._0x34f0b0,_0xd1fc96);}const _0x573416=_0x329d6e[_0x5097d8(_0x26e450._0x20923f,_0x26e450._0x3bf225,0x36a,0x340)]??'/responses';return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x2a1287){function _0x2fe7f6(_0x34c027,_0x3dc10e,_0x47a9a2,_0x13208e){return _0x1eeefb(_0x34c027-_0x17d0c9._0x3cae43,_0x47a9a2,_0x47a9a2-_0x17d0c9._0x5dd1e6,_0x34c027- -0x652);}return{'accept':_0x2fe7f6(-_0x1a45a3._0x223e97,-0x1d1,-_0x1a45a3._0x8f5ad5,-_0x1a45a3._0x3e1c20),'body':createChatRequestBody(_0x2a1287,![]),'path':_0x66eba4};},'parseResponse'(_0xfb1fbe){return parseChatCompletionResponse(_0xfb1fbe);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x5097d8(0x3bc,_0x26e450._0xec576b,_0x26e450._0x3b048a,_0x26e450._0x7ac0f2),'createRequest'(_0x1ecb3b){function _0x3fa301(_0x117ed3,_0x1331b8,_0x2f6af7,_0x3672f8){return _0x5097d8(_0x2f6af7,_0x1331b8-0x86,_0x2f6af7-0x1bf,_0x1331b8- -0x197);}return{'accept':_0x3fa301(0x313,0x26a,_0xde0133._0x5e6414,0x2f8),'body':createChatRequestBody(_0x1ecb3b,!![]),'path':_0x66eba4};},'createStreamParser'(){return new OpenAiChatCompletionsStreamParser();}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1eeefb(_0x26e450._0x16cc09,0x43b,0x51f,0x46c),'createRequest'(_0x57ecd0){function _0x29f05d(_0x53ca46,_0x339d6d,_0xc9dd8b,_0x3345cf){return _0x1eeefb(_0x53ca46-_0x4e7727._0x21ea3d,_0x53ca46,_0xc9dd8b-0x1e6,_0x3345cf- -_0x4e7727._0x461be6);}return{'accept':_0x29f05d(0x347,0x3b0,0x375,0x3d5),'body':createResponsesRequestBody(_0x57ecd0,![]),'path':_0x573416};},'parseResponse'(_0x4c541b,_0x439480){return parseResponsesResponse(_0x4c541b,_0x439480);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x5097d8(_0x26e450._0x225b87,_0x26e450._0x58d603,0x320,0x314),'createRequest'(_0x2a9e5e){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x2a9e5e,!![]),'path':_0x573416};},'createStreamParser'(_0x2cda5c){return new OpenAiResponsesStreamParser(_0x2cda5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x5097d8(_0x26e450._0x5547ab,_0x26e450._0x4178c7,_0x26e450._0x318c90,0x37d),'createRequest'(_0x3108b9){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x3108b9),'path':_0x573416};},'createStreamParser'(_0x3724b4){return createOpenAiResponsesStreamParser(_0x3724b4);}}];}var OpenAiProviderAdapter=class{[_0x65d232(-0x28,-0x90,-0x1d,-0x8d)];constructor(_0x4427f9){this['headerResolver']=_0x4427f9;}[_0x65d232(0x2,0x46,0x91,0x10)](){const _0x18a80f={_0x5e2187:0x109,_0xa22beb:0x10e},_0x3fe696={_0x48a4cc:0x112,_0x1307cd:0x63,_0x4a31af:0xca};function _0x525715(_0x499b0b,_0x2e86c8,_0x42d4b1,_0x2fb2e9){return _0x65d232(_0x2fb2e9- -_0x3fe696._0x48a4cc,_0x42d4b1,_0x42d4b1-_0x3fe696._0x1307cd,_0x2fb2e9-_0x3fe696._0x4a31af);}return new Error(_0x525715(0x19,-_0x18a80f._0x5e2187,-_0x18a80f._0xa22beb,-0x67));}async[_0x3c7c8d(0x33f,0x2bd,0x29c,0x2c7)](_0x296ff9,_0x333bc0){const _0x7ea2d6={_0x345e0c:0x3bc,_0x42afcd:0x4b7,_0x818d57:0x4f0,_0x7ccdd9:0x2a2,_0x2e0967:0x349,_0x27f65a:0x356,_0x49ed72:0x43a,_0x47b6db:0x4a8,_0x3762f8:0x4a9,_0x4bb1bc:0x223,_0x2da69e:0x18c,_0x5f4f2c:0x222,_0x814c30:0x203,_0x5c1348:0x1a7,_0x4e0816:0x10d,_0x4c3e28:0x3b6,_0xd051c7:0x3a4,_0x5d3a4e:0x1e1,_0x1c321e:0x295,_0x4c1150:0x405,_0x24ae50:0x481,_0x21f16a:0x4c3,_0x1475d6:0x508,_0x1284b1:0x16f,_0x1497b2:0x106,_0x18b823:0x232,_0x5306a5:0x21b,_0x2a20e9:0x244,_0x4880c5:0x3ad,_0xfb7f99:0x2fb,_0x55cb4d:0x1bd,_0x306bb6:0x3f2,_0x1c004d:0x3fc,_0x4607b6:0x464,_0x5acbf0:0x3aa,_0x333270:0x497,_0x144a67:0x4c8,_0x3365b2:0x234,_0x350af1:0x1cd},_0x3e1040={_0x3be796:0x197},_0x241bc4={_0x4d86c8:0x140,_0x182404:0x11d};function _0x2a4ad1(_0x31e0b6,_0x1c5081,_0x1e02e2,_0xc56903){return _0x3c7c8d(_0x31e0b6-_0x241bc4._0x4d86c8,_0x1c5081-0x49,_0x1e02e2-_0x241bc4._0x182404,_0x1c5081);}const _0x317129=new Headers();function _0x5a857d(_0x51c27a,_0x1d578e,_0x3e267c,_0x53b974){return _0x65d232(_0x1d578e-_0x3e1040._0x3be796,_0x51c27a,_0x3e267c-0xa2,_0x53b974-0x5b);}_0x317129[_0x2a4ad1(0x455,0x516,0x42d,_0x7ea2d6._0x345e0c)](_0x2a4ad1(0x447,_0x7ea2d6._0x42afcd,0x3f7,_0x7ea2d6._0x818d57),_0x333bc0['accept']),_0x317129[_0x5a857d(0x20e,0x234,0x193,_0x7ea2d6._0x7ccdd9)](_0x2a4ad1(0x3a1,_0x7ea2d6._0x2e0967,0x325,_0x7ea2d6._0x27f65a),_0x2a4ad1(_0x7ea2d6._0x49ed72,0x4d7,_0x7ea2d6._0x47b6db,_0x7ea2d6._0x3762f8)+_0x296ff9[_0x5a857d(_0x7ea2d6._0x4bb1bc,_0x7ea2d6._0x2da69e,_0x7ea2d6._0x5f4f2c,0xe8)][_0x5a857d(_0x7ea2d6._0x814c30,_0x7ea2d6._0x5c1348,0x264,_0x7ea2d6._0x4e0816)]);_0x333bc0[_0x2a4ad1(_0x7ea2d6._0x4c3e28,0x3a7,_0x7ea2d6._0xd051c7,0x36b)]!==![]&&_0x317129[_0x5a857d(0x21f,0x234,_0x7ea2d6._0x5d3a4e,_0x7ea2d6._0x1c321e)](_0x2a4ad1(0x3ab,_0x7ea2d6._0x4c1150,0x424,0x31f),_0x2a4ad1(_0x7ea2d6._0x24ae50,0x527,_0x7ea2d6._0x21f16a,_0x7ea2d6._0x1475d6));const _0x18bfee=await this[_0x5a857d(0xff,_0x7ea2d6._0x1284b1,0x17f,_0x7ea2d6._0x1497b2)]?.({'body':_0x296ff9[_0x5a857d(0x190,_0x7ea2d6._0x18b823,_0x7ea2d6._0x5306a5,_0x7ea2d6._0x2a20e9)],'credential':_0x296ff9[_0x2a4ad1(_0x7ea2d6._0x4880c5,0x384,0x425,_0x7ea2d6._0xfb7f99)],'request':_0x296ff9['request'],'session':_0x296ff9[_0x5a857d(0x171,0x155,0x155,_0x7ea2d6._0x55cb4d)],'stream':_0x296ff9[_0x2a4ad1(_0x7ea2d6._0x306bb6,0x389,_0x7ea2d6._0x1c004d,0x3c6)]});for(const [_0x280916,_0x1313d8]of Object[_0x2a4ad1(_0x7ea2d6._0x4607b6,_0x7ea2d6._0x5acbf0,_0x7ea2d6._0x333270,_0x7ea2d6._0x144a67)](_0x18bfee??{})){_0x317129[_0x5a857d(0x287,_0x7ea2d6._0x3365b2,0x1b9,_0x7ea2d6._0x350af1)](_0x280916,_0x1313d8);}return _0x317129;}[_0x65d232(0x11f,0x10a,0x16c,0xe5)](_0x4e8494){return _0x4e8494;}['resolveBaseUrl'](_0x4324ec,_0x490e7d){return resolveSessionBaseUrl(_0x4324ec,_0x490e7d);}['resolveCredential'](_0x5177da,_0x5c5153){return resolveApiCredential(_0x5177da,_0x5c5153);}async[_0x3c7c8d(0x24e,0x268,0x2ae,0x299)](_0x319834){return await createOpenAiApiError(_0x319834);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x3c7c8d(0x37c,0x382,0x3c4,0x2c3)]=new Map();['chatCompletionsPath'];['responsesPath'];constructor(_0x9c6cfa={}){const _0x2300d5={_0x4f1f72:0x231,_0x30ecfd:0x1af,_0x254000:0x2e1,_0xb12a74:0x1fd,_0x391fed:0x276,_0x498469:0x21a,_0x18c681:0x1cc,_0x20e08e:0x162,_0x1bd423:0x14e,_0xcbd700:0x15f,_0x4d776c:0x1db,_0x391286:0x203,_0x1d4d82:0x167,_0x411a2b:0x252,_0xa74f85:0x2a9,_0x32ce14:0x309,_0x2c74ba:0x229,_0x147596:0x2ac,_0x2b2525:0x1e2,_0x499029:0x19b,_0x118828:0x192,_0x59cde0:0x286,_0x55d821:0x29e,_0xabda8:0x230,_0x1e02fb:0x1b5,_0x4eaf8c:0x154,_0x3db10c:0x1c1,_0x365003:0x1f9,_0x4dfb5f:0x27d,_0x215bff:0x277,_0x510c49:0x333,_0x54a4b1:0x1f7,_0x38cb26:0x2cd,_0x5d25ed:0x172,_0xa0f9a6:0x223,_0x3d25d8:0x274},_0x5c5d7c={_0xfb7a4f:0xfc,_0x12103c:0x12e},_0x5a9528={_0x467fac:0x195},_0x58cda3=_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x4f1f72,-_0x2300d5._0x30ecfd,-0x1eb,-_0x2300d5._0x254000)]??_0x3de0c4(0x1c6,_0x2300d5._0xb12a74,_0x2300d5._0x391fed,_0x2300d5._0x498469),_0x46332f=_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x18c681,-_0x2300d5._0x20e08e,-_0x2300d5._0x1bd423,-0x24e)]??0x4000,_0x1bbf71=_0x9c6cfa['chatCompletionsPath']??_0x3de0c4(0x25e,_0x2300d5._0xcbd700,0x1ec,_0x2300d5._0x4d776c),_0x1961f3=_0x9c6cfa[_0x3de0c4(0x146,_0x2300d5._0x391286,0x1c3,0x1e1)]??_0x46b9b9(-0x1e7,-_0x2300d5._0x1d4d82,-0x290,-0x203);function _0x46b9b9(_0x2e4494,_0x503ee9,_0x3529c4,_0x57c08f){return _0x3c7c8d(_0x2e4494- -0x55b,_0x503ee9-_0x5a9528._0x467fac,_0x3529c4-0x11a,_0x3529c4);}function _0x3de0c4(_0x4d9bd2,_0x76bfaf,_0x31e005,_0x332cb8){return _0x3c7c8d(_0x332cb8- -_0x5c5d7c._0xfb7a4f,_0x76bfaf-_0x5c5d7c._0x12103c,_0x31e005-0x11b,_0x76bfaf);}super({'apiKey':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x411a2b,-_0x2300d5._0xa74f85,-_0x2300d5._0x32ce14,-0x1e5)],'baseUrl':trimTrailingSlashes(_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x2c74ba,-_0x2300d5._0x147596,-_0x2300d5._0x2b2525,-_0x2300d5._0x499029)]??_0x46b9b9(-0x24d,-0x1c2,-_0x2300d5._0x118828,-0x262)),'fetch':_0x9c6cfa[_0x3de0c4(0x274,0x27b,0x2dc,_0x2300d5._0x59cde0)],'maxTokens':_0x46332f,'model':_0x58cda3,'reasoning':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x55d821,-0x25a,-_0x2300d5._0xabda8,-0x23e)],'providerAdapter':new OpenAiProviderAdapter(_0x9c6cfa[_0x3de0c4(0x188,0x167,_0x2300d5._0x1e02fb,_0x2300d5._0x4eaf8c)]),'providerSessionResolver':_0x9c6cfa['providerSessionResolver'],'requestMutators':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x3db10c,-0x186,-_0x2300d5._0x365003,-0x213)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x4dfb5f,-0x1d2,-0x252,-0x268)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x1bbf71,'responsesPath':_0x1961f3}),'webSocketFactory':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x215bff,-_0x2300d5._0x510c49,-_0x2300d5._0x54a4b1,-_0x2300d5._0x38cb26)]}),this[_0x3de0c4(_0x2300d5._0x5d25ed,0x178,0x1d8,_0x2300d5._0xa0f9a6)]=_0x1bbf71,this[_0x46b9b9(-0x27e,-_0x2300d5._0x3d25d8,-0x2d3,-0x328)]=_0x1961f3;}[_0x3c7c8d(0x32d,0x347,0x2dc,0x35e)](_0xbc8719,_0x3f60c0){const _0x188bac={_0x2c7dac:0x1ad,_0x16a06b:0x21b},_0x3e549d={_0x2e8b90:0x109,_0xad092f:0xec,_0x78516a:0x163};function _0x4f6099(_0x25104d,_0x2e2178,_0x3461ec,_0x143406){return _0x65d232(_0x2e2178-_0x3e549d._0x2e8b90,_0x25104d,_0x3461ec-_0x3e549d._0xad092f,_0x143406-_0x3e549d._0x78516a);}return this[_0x4f6099(0x22b,_0x188bac._0x2c7dac,0x248,_0x188bac._0x16a06b)](_0xbc8719,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x3f60c0);}['completeViaResponsesSurface'](_0x2d30d5,_0x32ece4){const _0x1bf46a={_0x21d663:0x447},_0x4478e9={_0x4fcf1e:0x125,_0x29192b:0x152,_0x5f25bf:0xb1};function _0x3ab73b(_0x21bdc2,_0x878d79,_0x5ee0bc,_0x2ba9db){return _0x3c7c8d(_0x21bdc2-_0x4478e9._0x4fcf1e,_0x878d79-_0x4478e9._0x29192b,_0x5ee0bc-_0x4478e9._0x5f25bf,_0x878d79);}return this[_0x3ab73b(0x441,0x4c8,0x3fc,_0x1bf46a._0x21d663)](_0x2d30d5,OPENAI_RESPONSES_SURFACE,_0x32ece4);}[_0x3c7c8d(0x352,0x39a,0x2cf,0x38e)](_0x233054,_0x5eaa9d){const _0x34357e={_0x1a7f97:0x1da},_0x1ccf8e={_0x1ad4e6:0x139,_0x38f435:0x151,_0x153c64:0x86};function _0x139dd2(_0x1aeff9,_0xfe9f7d,_0x1cb2a6,_0x4891ad){return _0x65d232(_0x1cb2a6-_0x1ccf8e._0x1ad4e6,_0x4891ad,_0x1cb2a6-_0x1ccf8e._0x38f435,_0x4891ad-_0x1ccf8e._0x153c64);}return this[_0x139dd2(_0x34357e._0x1a7f97,0x281,0x1dd,0x279)](_0x233054,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5eaa9d);}[_0x3c7c8d(0x3a6,0x3ac,0x30f,0x39e)](_0x48a58d,_0x2f42e1){return this['streamViaSurface'](_0x48a58d,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x2f42e1);}[_0x3c7c8d(0x361,0x3cc,0x2b3,0x34a)](_0x2a489e,_0x10f027){const _0x532624={_0xd00675:0x4b8,_0x205445:0x4ba,_0x4098ed:0x587,_0x2ca398:0x534},_0x4a6949={_0x7fcc8b:0x455,_0x1e298b:0x58};function _0x1e7d95(_0x3bfec4,_0x4a5cab,_0x21e5d9,_0x69238){return _0x65d232(_0x69238-_0x4a6949._0x7fcc8b,_0x21e5d9,_0x21e5d9-_0x4a6949._0x1e298b,_0x69238-0x65);}return this[_0x1e7d95(_0x532624._0xd00675,_0x532624._0x205445,_0x532624._0x4098ed,_0x532624._0x2ca398)](_0x2a489e,OPENAI_RESPONSES_STREAM_SURFACE,_0x10f027);}[_0x65d232(0x79,0x122,0xe,0x17)](_0x2bfd7a,_0x598b02){const _0x19bc5c={_0x39a503:0x10a,_0x56f0b9:0x28,_0x3524a1:0x19f};function _0x1a4e4b(_0x394928,_0x273ebd,_0x559b37,_0x37bfd5){return _0x3c7c8d(_0x273ebd-_0x19bc5c._0x39a503,_0x273ebd-_0x19bc5c._0x56f0b9,_0x559b37-_0x19bc5c._0x3524a1,_0x559b37);}return this[_0x1a4e4b(0x50a,0x461,0x4bf,0x43f)](_0x2bfd7a,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x598b02);}async[_0x65d232(0x2f,0x8c,-0x50,0xef)](_0x33a28c,_0x3ba6c5){try{return await this['completeViaChatCompletionsSurface'](_0x33a28c,_0x3ba6c5);}catch(_0x4d6521){if(_0x4d6521 instanceof OpenAiApiError)throw this['mapApiError'](_0x4d6521);throw _0x4d6521;}}async['response'](_0x2863fe,_0x1f08c5){const _0x465b53={_0x1d0faf:0x45f,_0x4158ec:0x376,_0x57ae9f:0x3f9},_0x4a63b8={_0x10dce6:0x116,_0x2f8340:0x2d};function _0x4cdab1(_0x2d26cd,_0x1ed96e,_0x359644,_0x48f9cf){return _0x3c7c8d(_0x48f9cf-0x62,_0x1ed96e-_0x4a63b8._0x10dce6,_0x359644-_0x4a63b8._0x2f8340,_0x359644);}try{return await this['completeViaResponsesSurface'](_0x2863fe,_0x1f08c5);}catch(_0x410aba){if(_0x410aba instanceof OpenAiApiError)throw this[_0x4cdab1(_0x465b53._0x1d0faf,_0x465b53._0x4158ec,0x3a5,_0x465b53._0x57ae9f)](_0x410aba);throw _0x410aba;}}async[_0x3c7c8d(0x2ea,0x265,0x2dd,0x2ff)](_0x445f6c,_0x45f56c){const _0x408c09={_0xfc0e16:0x25a,_0xba038c:0x1b1,_0x2c1201:0x23d,_0x11b96c:0x462,_0x2e331a:0x2f6,_0x39cbf8:0x268,_0x9e45c9:0x2a9,_0x375b14:0x14e,_0x27645a:0x11f},_0x3084eb={_0x1ef981:0xda,_0x835d21:0x15c},_0x222c0b={_0x3c790:0x2c5,_0x1e0a7d:0x16d,_0x1e383b:0x1ea};function _0x4e9df9(_0x331818,_0x2bcd8f,_0x3cf5c4,_0x684ea4){return _0x65d232(_0x3cf5c4-_0x222c0b._0x3c790,_0x684ea4,_0x3cf5c4-_0x222c0b._0x1e0a7d,_0x684ea4-_0x222c0b._0x1e383b);}function _0x12fc8b(_0x3fb03c,_0x5bc41f,_0x1a4b3c,_0x5b883){return _0x3c7c8d(_0x5b883- -_0x3084eb._0x1ef981,_0x5bc41f-0x77,_0x1a4b3c-_0x3084eb._0x835d21,_0x5bc41f);}try{let _0x1a6838;for await(const _0x381b8a of this[_0x12fc8b(_0x408c09._0xfc0e16,_0x408c09._0xba038c,0x2ab,_0x408c09._0x2c1201)](_0x445f6c,_0x45f56c)){_0x381b8a[_0x4e9df9(0x41b,0x30d,0x3ac,_0x408c09._0x11b96c)]===_0x4e9df9(_0x408c09._0x2e331a,_0x408c09._0x39cbf8,0x2c8,_0x408c09._0x9e45c9)&&(_0x1a6838=_0x381b8a['response']);}if(!_0x1a6838)throw new Error(_0x12fc8b(_0x408c09._0x375b14,_0x408c09._0x27645a,0x12d,0x1c0));return _0x1a6838;}catch(_0x4ff247){if(_0x4ff247 instanceof OpenAiApiError)throw this['mapApiError'](_0x4ff247);throw _0x4ff247;}}async*[_0x65d232(0xe0,0xc7,0xe4,0x121)](_0x3b61b5,_0x428189){const _0x19cd8f={_0x1e190f:0x14d,_0x1ab5e0:0x10c},_0x135ac1={_0x59740c:0x230,_0x219fbb:0xaf};function _0x70055f(_0x494bf0,_0x32e8ff,_0x31c3dd,_0x1efb07){return _0x3c7c8d(_0x1efb07- -_0x135ac1._0x59740c,_0x32e8ff-_0x135ac1._0x219fbb,_0x31c3dd-0x119,_0x31c3dd);}try{yield*this[_0x70055f(_0x19cd8f._0x1e190f,0xb5,_0x19cd8f._0x1ab5e0,0x176)](_0x3b61b5,_0x428189);}catch(_0x29a064){if(_0x29a064 instanceof OpenAiApiError)throw this['mapApiError'](_0x29a064);throw _0x29a064;}}async*[_0x3c7c8d(0x392,0x353,0x3e1,0x3ec)](_0x5a2986,_0x353962){const _0x54b9ca={_0x2d07dd:0x1e7},_0x5f23a5={_0x485f18:0x76,_0x1b6872:0x74};function _0x18fed6(_0x2120af,_0x36a14a,_0x42400d,_0x5a1316){return _0x65d232(_0x5a1316-_0x5f23a5._0x485f18,_0x36a14a,_0x42400d-0x151,_0x5a1316-_0x5f23a5._0x1b6872);}try{yield*this[_0x18fed6(0xfb,_0x54b9ca._0x2d07dd,0xdf,0x15f)](_0x5a2986,_0x353962);}catch(_0xf73526){if(_0xf73526 instanceof OpenAiApiError)throw this['mapApiError'](_0xf73526);throw _0xf73526;}}async*[_0x3c7c8d(0x317,0x259,0x378,0x2f7)](_0x3c721a,_0x4e3f42){const _0x3c8f15={_0x1b6eca:0x47a,_0x50ee9c:0x4d0},_0x713cb9={_0x4ff0a1:0x372,_0x525f59:0x193};function _0x42322e(_0x316037,_0xd115d8,_0x13a7b4,_0x2c2ee7){return _0x65d232(_0x316037-_0x713cb9._0x4ff0a1,_0xd115d8,_0x13a7b4-_0x713cb9._0x525f59,_0x2c2ee7-0x2b);}try{yield*this['streamViaPersistentResponsesSocket'](_0x3c721a,_0x4e3f42);}catch(_0x2f8043){if(_0x2f8043 instanceof OpenAiApiError)throw this[_0x42322e(0x491,_0x3c8f15._0x1b6eca,_0x3c8f15._0x50ee9c,0x4b3)](_0x2f8043);throw _0x2f8043;}}[_0x65d232(-0x1,0xb3,0xb7,-0x91)](_0x5cf840,_0x5eb0ea){const _0x92c923={_0x82ddad:0x3e9,_0x3b8325:0x361},_0x515555={_0x4a7f86:0x13};function _0x20b328(_0x2a47e4,_0xf92a4c,_0x2c2c73,_0x54b4b9){return _0x3c7c8d(_0x2c2c73-0xba,_0xf92a4c-0x121,_0x2c2c73-_0x515555._0x4a7f86,_0x54b4b9);}return this[_0x20b328(0x36b,_0x92c923._0x82ddad,0x361,_0x92c923._0x3b8325)](_0x5cf840,_0x5eb0ea);}[_0x65d232(0x3a,0x44,0xae,0xb9)](_0x1bfd6e,_0x4ceee7){return this['chatStream'](_0x1bfd6e,_0x4ceee7);}[_0x3c7c8d(0x2c0,0x2bc,0x23d,0x32c)](_0x3b5054){const _0x80a04a={_0xee440d:0x11f,_0x2ec354:0x10a,_0xe605ec:0x196,_0x289060:0x14f,_0x3162a9:0xea,_0x21d6b6:0xe0,_0x34cdec:0x6a},_0x42a9e4={_0x23b7c4:0x109},_0x557b21={_0x5679fb:0x1e6},_0x855986=this[_0x58af34(_0x80a04a._0xee440d,0x1a8,0x226,_0x80a04a._0x2ec354)](_0x3b5054);function _0x58af34(_0x1da733,_0x5c88d5,_0x1e9d42,_0x6ac930){return _0x3c7c8d(_0x5c88d5- -_0x557b21._0x5679fb,_0x5c88d5-0xc9,_0x1e9d42-0x169,_0x6ac930);}function _0x2d091b(_0x2e98a9,_0x5ca47f,_0x234ce1,_0x6c1692){return _0x65d232(_0x234ce1-0x43,_0x2e98a9,_0x234ce1-0x25,_0x6c1692-_0x42a9e4._0x23b7c4);}let _0x33d15c=_OpenAiModel[_0x58af34(0xf8,_0x80a04a._0xe605ec,0x1b1,_0x80a04a._0x289060)][_0x58af34(-0x3,0x84,0xd2,0xcd)](_0x855986);return!_0x33d15c&&(_0x33d15c={'pending':Promise['resolve']()},_OpenAiModel['sharedResponsesSocketSessions'][_0x2d091b(0x14a,_0x80a04a._0x3162a9,_0x80a04a._0x21d6b6,_0x80a04a._0x34cdec)](_0x855986,_0x33d15c)),_0x33d15c;}[_0x3c7c8d(0x38e,0x412,0x3bb,0x37c)](_0x47db58){const _0x56a93b={_0x378ecc:0x63b,_0x1f9000:0x511,_0x9bb17e:0x53a,_0x390ec3:0x480},_0x31f1ab={_0xa8fb75:0x4c,_0x1fdc8d:0x152};function _0x5a91c5(_0x189222,_0x465dc7,_0x5603a2,_0x522f0b){return _0x3c7c8d(_0x465dc7- -_0x31f1ab._0xa8fb75,_0x465dc7-0x60,_0x5603a2-_0x31f1ab._0x1fdc8d,_0x189222);}function _0x3e895f(_0x20be53,_0x5500bb,_0x505eb9,_0x14310d){return _0x65d232(_0x5500bb-0x4d5,_0x505eb9,_0x505eb9-0x157,_0x14310d-0x170);}return''+trimTrailingSlashes(this[_0x3e895f(0x528,0x58f,_0x56a93b._0x378ecc,_0x56a93b._0x1f9000)])+this[_0x3e895f(0x543,_0x56a93b._0x9bb17e,_0x56a93b._0x390ec3,0x4e6)]+'::'+_0x47db58;}async[_0x65d232(0x1a,-0xa6,0xab,0x6)](_0x44bf77){const _0x17a227={_0x594ac0:0x3f6,_0x4c7517:0xb5,_0x356de8:0x8a,_0x4f0209:0x101,_0x52687a:0xf3,_0xc93db9:0x42c,_0xe8e9ad:0x41d,_0xe00438:0x48e,_0x8e189:0x4ec,_0x8f3997:0x57d},_0x12affb={_0x19e569:0x137,_0x318d87:0x9a},_0x48adbd={_0x13edf7:0x185};function _0x5808a8(_0x5b607e,_0x142b09,_0x221089,_0x4815da){return _0x3c7c8d(_0x221089- -0x133,_0x142b09-_0x48adbd._0x13edf7,_0x221089-0x1b8,_0x142b09);}const _0xae21c6=_0x44bf77[_0x38c297(0x3c9,0x41d,0x444,_0x17a227._0x594ac0)][_0x5808a8(_0x17a227._0x4c7517,_0x17a227._0x356de8,_0x17a227._0x4f0209,_0x17a227._0x52687a)](()=>{});function _0x38c297(_0x496dff,_0x57400c,_0x184960,_0x1d49dc){return _0x65d232(_0x57400c-0x437,_0x184960,_0x184960-_0x12affb._0x19e569,_0x1d49dc-_0x12affb._0x318d87);}let _0x5cab58;const _0x2a4743=new Promise(_0x4b144b=>{_0x5cab58=_0x4b144b;});return _0x44bf77[_0x38c297(_0x17a227._0xc93db9,_0x17a227._0xe8e9ad,_0x17a227._0xe00438,0x391)]=_0xae21c6[_0x38c297(0x561,0x561,_0x17a227._0x8e189,_0x17a227._0x8f3997)](()=>_0x2a4743),await _0xae21c6,()=>{_0x5cab58?.();};}async[_0x3c7c8d(0x394,0x3b2,0x411,0x385)](_0x29b7f1,_0x3c17e3){const _0xa15f77={_0x2db25d:0x8c,_0x483a66:0x2b,_0x5ec5e1:0xd1,_0xd060fa:0x156,_0x9688d5:0x19e,_0x55915f:0x8d,_0x5e567b:0xcb,_0x51f939:0x4f,_0xe3b149:0xb3,_0x1dfe82:0x4d,_0x201391:0x17a},_0x2df8e6={_0x290d62:0xe6},_0x3b2abb={_0x4cf88f:0x331,_0x284941:0x72},_0x476b1c=this['applyModelDefaults'](_0x29b7f1);function _0xed5d85(_0x1f9db3,_0x262a97,_0x387f35,_0x48acda){return _0x3c7c8d(_0x387f35- -_0x3b2abb._0x4cf88f,_0x262a97-_0x3b2abb._0x284941,_0x387f35-0x16,_0x48acda);}const _0x2ea310=toModelRequest(_0x476b1c),_0x58a0d0=await prepareProviderRequest(_0x2ea310,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x3c17e3}),_0xc13b63=toChatRequest(_0x58a0d0[_0x187bf0(_0xa15f77._0x2db25d,-0x8,0x25,_0xa15f77._0x483a66)]),_0x569695=this['providerAdapter'][_0x187bf0(0x128,_0xa15f77._0x5ec5e1,_0xa15f77._0xd060fa,_0xa15f77._0x9688d5)](this[_0x187bf0(0x131,0x1de,_0xa15f77._0x55915f,0xe9)],_0x58a0d0[_0xed5d85(-0xa5,-_0xa15f77._0x5e567b,-0xfb,-0x1a3)]);if(!_0x569695)throw this[_0xed5d85(-_0xa15f77._0x51f939,-0xd9,-0xb7,-0xcf)]();function _0x187bf0(_0x275a3c,_0x537827,_0x31fb81,_0x4ebe4f){return _0x3c7c8d(_0x275a3c- -0x1d8,_0x537827-0x133,_0x31fb81-_0x2df8e6._0x290d62,_0x537827);}return{'baseUrl':this[_0xed5d85(-_0xa15f77._0xe3b149,0x97,0x9,_0xa15f77._0x1dfe82)][_0x187bf0(0x1b3,_0xa15f77._0x201391,0x143,0x1c3)](this['baseUrl'],_0x58a0d0[_0xed5d85(-0xd7,-0x7b,-0xfb,-0xf3)]),'credential':_0x569695,'request':_0xc13b63,'session':_0x58a0d0['session']};}['buildResponsesSocketEvent'](_0x1619e0,_0x1c80f3,_0x2cba35={}){const _0x274869={_0x2aac8f:0x226,_0x88c1b9:0x2c3,_0x2b3597:0x359,_0x46359d:0x32a,_0xe87df3:0x3bb,_0xd37f16:0x355,_0x4387d8:0x29c,_0x389c23:0x2cf,_0xfb9bfb:0x339,_0x3446c4:0x259,_0x37539c:0x252,_0x5151b0:0x1db,_0x15894d:0x268,_0x45eca8:0x2e3,_0x2c29ef:0x268},_0x4864bc={_0x146485:0x4a},_0x2f77ae={_0x40157c:0x9c};if(!_0x2cba35['forceFullReplay']){const _0x22d7d6=this[_0xa81075(0x1d6,_0x274869._0x2aac8f,0x1ef,0x1de)](_0x1619e0);if(_0x22d7d6&&_0x1c80f3[_0xa81075(0x24b,0x356,_0x274869._0x88c1b9,0x2fa)]&&_0x22d7d6[_0x407d2f(_0x274869._0x2b3597,_0x274869._0x46359d,0x2ce,_0x274869._0xe87df3)]===_0x1c80f3['lastResponseId']){const _0x4c7206=toOpenAiResponsesRequest({..._0x1619e0,'messages':_0x1619e0[_0xa81075(_0x274869._0xd37f16,_0x274869._0x4387d8,_0x274869._0x389c23,0x38c)]['slice'](_0x22d7d6[_0x407d2f(0x331,0x352,_0x274869._0xfb9bfb,0x2d5)]+0x1)})[_0x407d2f(0x2c9,0x278,_0x274869._0x3446c4,0x268)];return{'event':createOpenAiResponsesWebSocketEvent(_0x1619e0,{'input':_0x4c7206,'previousResponseId':_0x22d7d6[_0xa81075(_0x274869._0x37539c,_0x274869._0x5151b0,_0x274869._0x15894d,_0x274869._0x45eca8)]}),'previousResponseId':_0x22d7d6[_0xa81075(0x2e4,0x2ca,_0x274869._0x2c29ef,0x2a0)]};}}function _0x407d2f(_0x240421,_0x16db26,_0x467d0d,_0x2d4e3c){return _0x3c7c8d(_0x240421-0x8b,_0x16db26-_0x2f77ae._0x40157c,_0x467d0d-0x19d,_0x16db26);}function _0xa81075(_0x3f2566,_0x1ece21,_0x4d0df2,_0x109e0f){return _0x3c7c8d(_0x4d0df2- -0x66,_0x1ece21-0x16b,_0x4d0df2-_0x4864bc._0x146485,_0x1ece21);}return{'event':createOpenAiResponsesWebSocketEvent(_0x1619e0)};}[_0x65d232(-0x23,0x80,-0x29,-0x6e)](_0x2d2ea5){const _0x3982fc={_0x41fc57:0x8d,_0x41c7fd:0xc6,_0xe8acd6:0x180,_0x2ce6aa:0x150,_0x537f68:0x12b,_0x1886b6:0x15a,_0x5d4cca:0x9c},_0x1192a3={_0x5ec7ed:0x1ab},_0x31149b={_0x452d3b:0x130,_0x33d4e7:0x4b,_0x1cb8f7:0x181};function _0x27e585(_0x142d15,_0x549dff,_0x413b80,_0x1abd33){return _0x65d232(_0x413b80- -_0x31149b._0x452d3b,_0x549dff,_0x413b80-_0x31149b._0x33d4e7,_0x1abd33-_0x31149b._0x1cb8f7);}for(let _0x568f7d=_0x2d2ea5['messages'][_0x583755(-0x4,-0x1f,-_0x3982fc._0x41fc57,-_0x3982fc._0x41c7fd)]-0x1;_0x568f7d>=0x0;_0x568f7d-=0x1){const _0x2abf82=_0x2d2ea5[_0x583755(-_0x3982fc._0xe8acd6,-0x8e,-_0x3982fc._0x2ce6aa,-0xee)][_0x568f7d],_0x152340=_0x2abf82['role']==='assistant'?_0x2abf82[_0x27e585(-_0x3982fc._0x537f68,-_0x3982fc._0x1886b6,-_0x3982fc._0x5d4cca,-0x85)]?.['openaiResponsesResponseId']:void 0x0;if(_0x152340)return{'messageIndex':_0x568f7d,'responseId':_0x152340};}function _0x583755(_0x2c405b,_0x5d8f7d,_0x4f518e,_0x343a40){return _0x65d232(_0x343a40- -_0x1192a3._0x5ec7ed,_0x2c405b,_0x4f518e-0x18b,_0x343a40-0x190);}return void 0x0;}[_0x65d232(0x77,0x76,0x26,0x64)](_0x494f6f){const _0x165e0e={_0x5814f5:0x343,_0xf48519:0x39a,_0x204477:0x458,_0x18f725:0x35e,_0x1aa2f5:0x397},_0x547a17={_0x25f74e:0xdf,_0x21e5dc:0xfe},_0x22bb6f={_0x1f4883:0x35,_0xf5253c:0x14d};function _0x3a2961(_0x43a72b,_0x2c6762,_0x5e81d7,_0x3fe0f2){return _0x3c7c8d(_0x43a72b- -0x51f,_0x2c6762-_0x22bb6f._0x1f4883,_0x5e81d7-_0x22bb6f._0xf5253c,_0x2c6762);}function _0x537999(_0x48b102,_0x21f19e,_0x37e254,_0x130122){return _0x3c7c8d(_0x48b102-_0x547a17._0x25f74e,_0x21f19e-_0x547a17._0x21e5dc,_0x37e254-0x58,_0x37e254);}return _0x494f6f instanceof OpenAiResponsesStreamError&&(_0x494f6f[_0x537999(0x3a6,0x3d4,0x43a,_0x165e0e._0x5814f5)]==='previous_response_not_found'||_0x494f6f['code']===_0x537999(_0x165e0e._0xf48519,_0x165e0e._0x204477,_0x165e0e._0x18f725,_0x165e0e._0x1aa2f5));}[_0x65d232(0x25,0xc7,0x24,-0x6e)](_0x240c2b){const _0x49ffdf={_0x278e06:0xc1,_0x4ebd00:0x57,_0x4f5e25:0xe0,_0x949631:0x51,_0x1e674a:0x13b,_0x2304d4:0x1d8,_0x26f316:0x138,_0x25ad28:0x1d5,_0x325515:0xf2,_0x3f4803:0x181,_0xbb7798:0x17e,_0x27a61e:0x97,_0x940664:0xb0,_0x3d4f74:0x258,_0x159c0d:0x18a},_0x561dd2={_0x185b51:0x170},_0x2fdc87=_0x240c2b['socket'];_0x240c2b[_0xb874a7(0xcf,0x1a6,0x12f,0x145)]=void 0x0,_0x240c2b[_0x6e235f(-_0x49ffdf._0x278e06,-_0x49ffdf._0x4ebd00,-_0x49ffdf._0x4f5e25,-_0x49ffdf._0x949631)]=void 0x0;function _0x6e235f(_0x493e11,_0x150a54,_0x3723e1,_0xd9f89a){return _0x65d232(_0x3723e1- -_0x561dd2._0x185b51,_0x493e11,_0x3723e1-0x1bd,_0xd9f89a-0x3d);}function _0xb874a7(_0x199170,_0x2df341,_0x18ba78,_0x45d18b){return _0x65d232(_0x45d18b-0x124,_0x2df341,_0x18ba78-0x129,_0x45d18b-0x17f);}_0x240c2b[_0xb874a7(_0x49ffdf._0x1e674a,_0x49ffdf._0x2304d4,_0x49ffdf._0x26f316,_0x49ffdf._0x25ad28)]=void 0x0,_0x2fdc87?.[_0x6e235f(-_0x49ffdf._0x325515,-0x218,-_0x49ffdf._0x3f4803,-_0x49ffdf._0xbb7798)]===WebSocket[_0x6e235f(-_0x49ffdf._0x27a61e,-0x13d,-_0x49ffdf._0x940664,-0xf8)]&&_0x2fdc87['close'](0x3e8,_0xb874a7(_0x49ffdf._0x3d4f74,0x1b6,_0x49ffdf._0x159c0d,0x218));}async[_0x65d232(0xa5,0x9e,0x33,0x6a)](_0x39c6a5,_0x2ae30c,_0x4caff8,_0x339ce6,_0x54ea02){const _0x35e467={_0x3e8087:0x6a,_0x4c3acb:0x4b,_0xfa0adf:0x61,_0x1a5564:0x26,_0x2d54c3:0x2f,_0x21d255:0x83,_0x53aebb:0x3e,_0x29d8eb:0x35,_0x5196d0:0xae,_0x5342f1:0x10d},_0x54d40e={_0xb1b7d1:0x22f,_0x133da2:0x1bf},_0x38e2c4={_0x4fdf12:0xea,_0x152984:0x80,_0xfd2445:0x4e,_0x5ef07b:0xf5,_0x27d98c:0xd9,_0x4a3ca2:0xd5,_0x3d55f7:0x32,_0x17cdf9:0xe3,_0xe33bca:0x4,_0x3d59b7:0x58,_0x383f71:0x72,_0x2522c3:0x95,_0x33795e:0x30,_0x5cc088:0xc,_0x971b8:0x2b,_0x40dd14:0xbd,_0x5685a2:0x5c,_0x8c571c:0x11,_0x3032fd:0xaf,_0x373417:0xb,_0x48c4a4:0x12,_0x199334:0x86,_0xc6ca09:0xbc,_0x59461e:0x51,_0x32c875:0x6e,_0x35b0ca:0x9e,_0x157b6a:0x55,_0x3deee2:0x5f,_0x3bae8f:0xa0,_0x12bf98:0x11c,_0x7c5c0:0x13d},_0x524674={_0x27103c:0xbe,_0x46e48b:0x1b3,_0xe449b6:0xf3},_0x1b99d4={_0x342023:0x2c8,_0x118ece:0x20};if(_0x2ae30c[_0x5a87f6(_0x35e467._0x3e8087,-0x2f,_0x35e467._0x4c3acb,-0x15)]?.[_0x5a87f6(-0xb9,-_0x35e467._0xfa0adf,-0x33,-_0x35e467._0x1a5564)]===WebSocket['OPEN'])return _0x2ae30c[_0x5a87f6(-0x3d,-_0x35e467._0x2d54c3,-_0x35e467._0x21d255,0x55)];function _0x5a87f6(_0x53913e,_0x59cb33,_0x132b0e,_0xfff5b0){return _0x3c7c8d(_0x59cb33- -_0x1b99d4._0x342023,_0x59cb33-0x189,_0x132b0e-_0x1b99d4._0x118ece,_0x132b0e);}if(_0x2ae30c[_0x4d7d19(0xd9,0x160,0x169,_0x35e467._0x53aebb)])return await _0x2ae30c[_0x4d7d19(0xd9,_0x35e467._0x29d8eb,0x18c,0x123)];_0x2ae30c['connecting']=((async()=>{const _0x1ec913={_0x2213a8:0x83},_0x2f6135={_0x64be8a:0xc8},_0x480bd4=await this[_0x187c7d(_0x38e2c4._0x4fdf12,0x37,_0x38e2c4._0x152984,0x8d)]({'request':_0x4caff8[_0x187c7d(-0x4a,-0xf8,0x51,-_0x38e2c4._0xfd2445)],'body':_0x339ce6,'credential':_0x4caff8[_0x187c7d(-0xb9,-0xca,-_0x38e2c4._0x5ef07b,-0x45)],'session':_0x4caff8['session'],'stream':!![]},{'accept':_0x187c7d(-0x22,0x6e,0xf1,0x8f),'includeContentType':![]});_0x480bd4['delete']('accept');const _0x12431e=this[_0x187c7d(0x39,_0x38e2c4._0x27d98c,_0x38e2c4._0x4a3ca2,_0x38e2c4._0x3d55f7)]({'headers':Object[_0x187c7d(-0xb6,-_0x38e2c4._0x17cdf9,_0x38e2c4._0xe33bca,-0x46)](_0x480bd4[_0x187c7d(0x134,_0x38e2c4._0x3d59b7,_0x38e2c4._0x383f71,0x72)]()),'url':(''+_0x4caff8[_0x44b45b(0xe9,0x12,_0x38e2c4._0x2522c3,0x45)]+this[_0x187c7d(-_0x38e2c4._0x33795e,-_0x38e2c4._0x5cc088,0xa2,_0x38e2c4._0x971b8)])['replace'](/^http:/,_0x44b45b(-_0x38e2c4._0x40dd14,-0x19,-0x52,-0x85))[_0x44b45b(-0x87,-_0x38e2c4._0x5685a2,-0x75,_0x38e2c4._0x8c571c)](/^https:/,_0x44b45b(-_0x38e2c4._0x3032fd,0x17,-0x53,_0x38e2c4._0x373417))});function _0x44b45b(_0x2a31bb,_0x376538,_0x2df675,_0x3205cf){return _0x4d7d19(_0x3205cf- -_0x524674._0x27103c,_0x376538-_0x524674._0x46e48b,_0x2a31bb,_0x3205cf-_0x524674._0xe449b6);}const _0x521bff=()=>{function _0x1ecedd(_0x4aed00,_0x28e2e9,_0xee64b7,_0x47168f){return _0x44b45b(_0x28e2e9,_0x28e2e9-0x1c7,_0xee64b7-0x122,_0x47168f-_0x2f6135._0x64be8a);}_0x2ae30c['socket']===_0x12431e&&(_0x2ae30c['socket']=void 0x0,_0x2ae30c[_0x1ecedd(0xa9,0x63,0x120,0x104)]=void 0x0);};_0x12431e['addEventListener']('close',_0x521bff);function _0x187c7d(_0x401f1f,_0x4a8f63,_0x460352,_0xd2cbcc){return _0x4d7d19(_0xd2cbcc- -_0x1ec913._0x2213a8,_0x4a8f63-_0x1ec913._0x2213a8,_0x401f1f,_0xd2cbcc-0x93);}try{return throwIfAborted(_0x54ea02),_0x12431e[_0x44b45b(-0x106,-0x22,_0x38e2c4._0x48c4a4,-_0x38e2c4._0x199334)]!==WebSocket[_0x44b45b(_0x38e2c4._0xc6ca09,_0x38e2c4._0x59461e,0x28,0x4b)]&&await waitForWebSocketOpen(_0x12431e,_0x54ea02),throwIfAborted(_0x54ea02),_0x2ae30c[_0x44b45b(0x38,_0x38e2c4._0x32c875,0x36,-0x54)]=_0x12431e,_0x12431e;}catch(_0x2c4fda){_0x521bff();_0x12431e[_0x44b45b(-0x133,-0x133,0x0,-_0x38e2c4._0x199334)]===WebSocket[_0x187c7d(_0x38e2c4._0x35b0ca,0x109,_0x38e2c4._0x157b6a,_0x38e2c4._0x199334)]&&_0x12431e[_0x187c7d(_0x38e2c4._0x199334,_0x38e2c4._0x3deee2,_0x38e2c4._0x3bae8f,0x34)](0x3e8,_0x44b45b(-0xff,-_0x38e2c4._0x12bf98,-_0x38e2c4._0x7c5c0,-0x8a));throw _0x2c4fda;}})());function _0x4d7d19(_0x2674f4,_0x5c5b6a,_0x124a46,_0x1b1a3e){return _0x3c7c8d(_0x2674f4- -_0x54d40e._0xb1b7d1,_0x5c5b6a-0x1a4,_0x124a46-_0x54d40e._0x133da2,_0x124a46);}try{return await _0x2ae30c[_0x4d7d19(0xd9,_0x35e467._0x5196d0,_0x35e467._0x5342f1,0x80)];}finally{_0x2ae30c['connecting']=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x495d2d,_0x503d59){const _0x3af452={_0x157cfe:0x21b,_0x9b5a1d:0x307,_0x608dae:0x3a0,_0x33939e:0xaf,_0x505fc7:0x143,_0x39ed3d:0xb1,_0x1da6f4:0x8a,_0x57b6ea:0x199,_0xfa1e2e:0x17c,_0x194efd:0x143,_0x1469ce:0x11,_0x2da98a:0x14,_0x5922a4:0x87,_0x53c144:0x253,_0x1fdc92:0x1a7,_0x25c624:0xfa,_0x2abf9b:0xc0,_0x383ae7:0x6a,_0x2049d1:0xe9,_0x2f3628:0x196,_0xbb1782:0xd5,_0x752bb8:0x1e4,_0x292fbc:0x2ce,_0x1b4b96:0x1de,_0x54908c:0x15c},_0x425771={_0x29520e:0x160,_0x5d19d1:0x16d},_0x5136f1={_0x5ee6e1:0x106,_0x4ee8bd:0x1c5},_0x52b8bb=this[_0x25e918(-0x1a8,-0x1db,-0x181,-_0x3af452._0x157cfe)](_0x495d2d);function _0x25e918(_0x27d14a,_0x485a25,_0x4f84f7,_0x9970e8){return _0x3c7c8d(_0x27d14a- -0x54c,_0x485a25-_0x5136f1._0x5ee6e1,_0x4f84f7-_0x5136f1._0x4ee8bd,_0x4f84f7);}function _0x8e1d71(_0x1c2b92,_0x4cd64f,_0x1578df,_0x30d20a){return _0x65d232(_0x1578df- -_0x425771._0x29520e,_0x1c2b92,_0x1578df-_0x425771._0x5d19d1,_0x30d20a-0x137);}const _0x4525cc=this['getResponsesSocketSessionState'](_0x52b8bb[_0x25e918(-0x2f5,-_0x3af452._0x9b5a1d,-0x337,-_0x3af452._0x608dae)][_0x8e1d71(-0x88,-_0x3af452._0x33939e,-_0x3af452._0x505fc7,-_0x3af452._0x39ed3d)]),_0x429e16=await this[_0x8e1d71(-0xbb,-_0x3af452._0x1da6f4,-0x146,-0xe1)](_0x4525cc);try{const _0x4c60bf=this[_0x8e1d71(-_0x3af452._0x57b6ea,-_0x3af452._0xfa1e2e,-0x15a,-0xd9)](_0x52b8bb,_0x4525cc);try{yield*this[_0x8e1d71(-0x15,0x2d,-0x7d,-0xac)](_0x52b8bb['metadata'][_0x8e1d71(-0x17c,-0x8f,-_0x3af452._0x194efd,-0x16b)],_0x4525cc,_0x52b8bb,_0x4c60bf[_0x8e1d71(-_0x3af452._0x1469ce,-_0x3af452._0x2da98a,-_0x3af452._0x5922a4,-0xe2)],_0x503d59?.['signal']);return;}catch(_0x24610a){if(!_0x4c60bf[_0x8e1d71(-_0x3af452._0x53c144,-0x1fc,-_0x3af452._0x1fdc92,-_0x3af452._0x25c624)]||!this[_0x8e1d71(-_0x3af452._0x2abf9b,-_0x3af452._0x383ae7,-_0x3af452._0x2049d1,-_0x3af452._0x2f3628)](_0x24610a)){this[_0x8e1d71(-0xd9,-_0x3af452._0xbb1782,-0x13b,-_0x3af452._0x752bb8)](_0x4525cc);throw _0x24610a;}}this['invalidateResponsesSocketSession'](_0x4525cc);const _0x3e5b4=this[_0x25e918(-_0x3af452._0x292fbc,-0x388,-0x32e,-0x279)](_0x52b8bb,_0x4525cc,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x52b8bb['metadata']['sessionId'],_0x4525cc,_0x52b8bb,_0x3e5b4['event'],_0x503d59?.[_0x25e918(-0x1c2,-_0x3af452._0x1b4b96,-0x1d9,-_0x3af452._0x54908c)]);}finally{_0x429e16();}}async*['streamViaResponsesSocketAttempt'](_0x445fdf,_0x58b0fe,_0x184111,_0x3bb574,_0x1944c9){const _0x1fbbd5={_0x51baac:0x552,_0x36385b:0x4a8,_0x60f1f7:0x4b1,_0x3c0d88:0x493,_0x43da46:0x49c,_0x235d1f:0x2ce,_0x450841:0x34d,_0x5226b9:0x44f,_0x5e0285:0x3e2,_0x290b21:0x3cc,_0x1db894:0x3b1},_0x54680d={_0x3ff22e:0x2e,_0x2c52e4:0x16},_0x30308c={_0x30134d:0x207,_0x11bdd6:0xb8,_0x13a662:0xa6};function _0x90377a(_0x405c2c,_0x243cd2,_0x408998,_0x4dbed9){return _0x3c7c8d(_0x243cd2-_0x30308c._0x30134d,_0x243cd2-_0x30308c._0x11bdd6,_0x408998-_0x30308c._0x13a662,_0x4dbed9);}const _0x2b751f=await this[_0x90377a(0x637,0x59b,0x517,0x61e)](_0x184111,_0x1944c9),_0x51cba3=await this[_0x90377a(_0x1fbbd5._0x51baac,0x524,_0x1fbbd5._0x36385b,0x510)](_0x445fdf,_0x58b0fe,_0x2b751f,_0x3bb574,_0x1944c9),_0x57e8fd=createOpenAiResponsesStreamParser(_0x184111);throwIfAborted(_0x1944c9),_0x51cba3[_0x90377a(0x444,0x4cc,0x42f,_0x1fbbd5._0x60f1f7)](JSON[_0x90377a(0x4b7,0x4b3,0x4d1,_0x1fbbd5._0x3c0d88)](_0x3bb574));for await(const _0x4e45e6 of iterateWebSocketMessages(_0x51cba3,_0x1944c9)){const _0x381cfc=_0x57e8fd['consumeWebSocketEvent']?.(_0x4e45e6)??[];yield*_0x381cfc;if(_0x57e8fd[_0x90377a(_0x1fbbd5._0x43da46,0x536,0x54b,0x476)]?.())break;}function _0x1e6054(_0x55c663,_0x6b19ee,_0x4910a2,_0x4b2caf){return _0x3c7c8d(_0x4b2caf-_0x54680d._0x3ff22e,_0x6b19ee-_0x54680d._0x2c52e4,_0x4910a2-0x183,_0x6b19ee);}if(!_0x57e8fd[_0x1e6054(0x2c5,_0x1fbbd5._0x235d1f,_0x1fbbd5._0x450841,0x35d)]?.())throw new Error(_0x90377a(0x4ee,_0x1fbbd5._0x5226b9,0x41d,0x3ee));const _0x10e632=_0x57e8fd[_0x1e6054(_0x1fbbd5._0x5e0285,0x42d,_0x1fbbd5._0x290b21,_0x1fbbd5._0x1db894)](),_0x2c169a=_0x10e632['providerState']?.['openaiResponsesResponseId']??_0x10e632['id'];_0x2c169a&&(_0x58b0fe['lastResponseId']=_0x2c169a),yield{'type':'done','response':_0x10e632};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x65d232(0x71,-0x36,0xfc,0x12a),_0x3c7c8d(0x314,0x2d9,0x26b,0x355),_0x65d232(0x6b,0x41,0x32,-0x22),_0x65d232(0xc1,0x127,0x75,0xe2)];function isAnthropicSurface(_0x568c5c){const _0x3485c8={_0x38cfc9:0x108},_0x5e6338={_0x3753b2:0x15b};function _0x41d6dc(_0x433721,_0x9adf72,_0x40e0f0,_0x37310b){return _0x3c7c8d(_0x433721- -_0x5e6338._0x3753b2,_0x9adf72-0x1cd,_0x40e0f0-0x11d,_0x37310b);}return _0x568c5c===_0x41d6dc(0x18e,_0x3485c8._0x38cfc9,0x228,0xf6);}function _0x65d232(_0x1b77ed,_0x2520bb,_0x278f46,_0x29db10){const _0x258227={_0x5d3027:0xf3};return _0x501c(_0x1b77ed- -_0x258227._0x5d3027,_0x2520bb);}function resolveDefaultBaseUrl(_0x3f802f){return isAnthropicSurface(_0x3f802f)?'https://api.anthropic.com':'https://api.openai.com/v1';}var ChatModel=class{[_0x65d232(0xb2,0x11f,0x7b,0x43)];['maxTokens'];[_0x65d232(0x12b,0xf0,0x186,0x9f)];[_0x65d232(-0x39,-0xc4,-0xc,-0xdc)];[_0x3c7c8d(0x39f,0x2ee,0x332,0x313)];constructor(_0x437e2b={}){const _0x135911={_0x3bdf6f:0x111,_0x17c599:0x1ab,_0x379156:0x604,_0x5a0f94:0x12e,_0x374848:0x279,_0xb7ced6:0x1f0,_0x2ef2a4:0x235,_0xa3dbff:0x138,_0x4dcbf9:0x139,_0x4b16d1:0x56a,_0x1fa5ed:0x297,_0x4b4bf5:0x3e1,_0x3c3730:0x406,_0x241051:0x5c4,_0x1f8fb1:0x521,_0x210c75:0x1ea,_0x3148e4:0x1cf,_0x55b7c0:0x1dc,_0x366180:0x1f9,_0x254f6b:0x1fa,_0x346da5:0x177,_0x4bd5fe:0x4d,_0x4715fc:0x10a,_0x51a064:0x10f,_0x3f3ca2:0x5a2,_0x15f5da:0x5e4,_0x1f6002:0x5cf,_0x58daa0:0x532,_0x58f529:0x5ee,_0x46eb3f:0x566,_0x2d4518:0x202,_0x55678b:0x5d0,_0x34bb4b:0x5c9,_0x54922c:0x3e6,_0x3b2121:0x468,_0x165993:0x42a,_0x20828f:0x5c8,_0x192da2:0x4e9,_0x222811:0x595,_0x317f44:0x556,_0x595556:0x491,_0x101601:0x3dc,_0x40352d:0x484,_0x1bf39b:0x219},_0x5eb035={_0x35a1d6:0x43f},_0x296d41={_0x1661bf:0x1b3,_0x36d1ba:0x1a3};this[_0x1ba8e5(_0x135911._0x3bdf6f,0x21d,0x177,0x1b9)]=_0x437e2b['model']??'gpt-4o',this[_0x1ba8e5(0x12a,_0x135911._0x17c599,0x1dc,0x1ff)]=_0x437e2b['maxTokens']??0x4000;function _0x1ba8e5(_0x31fe7d,_0x48e600,_0x389f61,_0x33281b){return _0x3c7c8d(_0x389f61- -_0x296d41._0x1661bf,_0x48e600-_0x296d41._0x36d1ba,_0x389f61-0x18e,_0x48e600);}this[_0x1815f3(_0x135911._0x379156,0x60f,0x4d6,0x56a)]=_0x437e2b[_0x1ba8e5(_0x135911._0x5a0f94,_0x135911._0x374848,_0x135911._0xb7ced6,0x153)]??'openai-chat-completions';const _0x464c86=trimTrailingSlashes(_0x437e2b[_0x1ba8e5(_0x135911._0x2ef2a4,_0x135911._0xa3dbff,0x17f,_0x135911._0x4dcbf9)]??resolveDefaultBaseUrl(this[_0x1815f3(0x60a,0x563,0x5dc,_0x135911._0x4b16d1)]));if(isAnthropicSurface(this[_0x1ba8e5(0x19e,0x1df,0x1f0,_0x135911._0x1fa5ed)])){this[_0x1815f3(0x492,_0x135911._0x4b4bf5,0x35a,_0x135911._0x3c3730)]=new AnthropicModel({'apiKey':_0x437e2b[_0x1ba8e5(0xf7,0x106,0x156,0xc2)],'authScheme':_0x437e2b[_0x1815f3(0x4fb,0x57b,_0x135911._0x241051,_0x135911._0x1f8fb1)],'baseUrl':_0x464c86,'fetch':_0x437e2b[_0x1ba8e5(0x28f,_0x135911._0x210c75,_0x135911._0x3148e4,0x1a9)],'maxTokens':this[_0x1ba8e5(0x21c,0x128,_0x135911._0x55b7c0,_0x135911._0x366180)],'model':this[_0x1ba8e5(0x1f6,_0x135911._0x254f6b,_0x135911._0x346da5,0x1fb)],'reasoning':_0x437e2b[_0x1ba8e5(0x1c0,_0x135911._0x4bd5fe,_0x135911._0x4715fc,_0x135911._0x51a064)],'providerSessionResolver':_0x437e2b[_0x1815f3(_0x135911._0x3f3ca2,_0x135911._0x15f5da,_0x135911._0x1f6002,_0x135911._0x58daa0)],'requestMutators':_0x437e2b['requestMutators']});return;}function _0x1815f3(_0x406603,_0x33c085,_0x42f2fa,_0x1b8cb3){return _0x65d232(_0x1b8cb3-_0x5eb035._0x35a1d6,_0x406603,_0x42f2fa-0x1e3,_0x1b8cb3-0x44);}this[_0x1815f3(0x58b,0x553,_0x135911._0x58f529,_0x135911._0x46eb3f)]=new OpenAiModel({'apiKey':_0x437e2b[_0x1ba8e5(0x1de,0x193,0x156,_0x135911._0x2d4518)],'baseUrl':_0x464c86,'fetch':_0x437e2b[_0x1815f3(_0x135911._0x55678b,_0x135911._0x34bb4b,0x536,0x549)],'headerResolver':_0x437e2b[_0x1815f3(_0x135911._0x54922c,_0x135911._0x3b2121,_0x135911._0x165993,0x417)],'maxTokens':this[_0x1815f3(_0x135911._0x20828f,_0x135911._0x192da2,_0x135911._0x222811,_0x135911._0x317f44)],'model':this['model'],'reasoning':_0x437e2b[_0x1815f3(_0x135911._0x595556,_0x135911._0x101601,0x4c9,_0x135911._0x40352d)],'providerSessionResolver':_0x437e2b[_0x1ba8e5(0x26f,0x272,0x1b8,_0x135911._0x1bf39b)],'requestMutators':_0x437e2b['requestMutators'],'webSocketFactory':_0x437e2b['webSocketFactory']});}[_0x65d232(0xc4,0xba,0x28,0x16a)](){const _0x204322={_0xc4212a:0x2e,_0x510b99:0x89,_0x4ea314:0xb3,_0x368fca:0x177,_0x64c9cb:0x6b,_0x1dacaf:0xd0,_0x1ab428:0x3a,_0x597dc3:0x9a,_0x1796c1:0x25},_0x252b6f={_0x1ce8d4:0x1e9,_0x562994:0x19d},_0x29ab39={_0x2bae83:0x2d9,_0x2af105:0x111};if(!this[_0x57d3c3(_0x204322._0xc4212a,_0x204322._0x510b99,-0x24,_0x204322._0x4ea314)])throw new Error(_0x57d3c3(_0x204322._0x368fca,0x113,0xa1,_0x204322._0x64c9cb)+this[_0x5a39e8(_0x204322._0x1dacaf,_0x204322._0x1ab428,0xca,0x80)]);function _0x5a39e8(_0x11a43f,_0x559c73,_0x123996,_0x5c06b0){return _0x3c7c8d(_0x123996- -_0x29ab39._0x2bae83,_0x559c73-0x1e5,_0x123996-_0x29ab39._0x2af105,_0x559c73);}function _0x57d3c3(_0x4d6912,_0x429194,_0x4bb69f,_0x53dc0d){return _0x3c7c8d(_0x429194- -0x1b6,_0x429194-_0x252b6f._0x1ce8d4,_0x4bb69f-_0x252b6f._0x562994,_0x4d6912);}return this[_0x5a39e8(-0xa8,-0x53,-_0x204322._0x597dc3,-_0x204322._0x1796c1)];}[_0x65d232(-0x2f,-0xa1,-0x3e,0x8b)](){const _0x2bc504={_0x561e92:0xc4,_0x5e9bc0:0x11e,_0x40faa0:0xc8,_0x381eb8:0x1bf,_0x76303a:0x21d,_0x393dde:0x1be,_0xdb1522:0x1a9},_0x5af0e4={_0x4775a7:0xf2,_0x398157:0x87},_0x41dcae={_0x100089:0x2da,_0x128e33:0x16e};function _0x17544f(_0x53cfb9,_0x1ed841,_0x5e4f97,_0x396423){return _0x65d232(_0x396423- -_0x41dcae._0x100089,_0x5e4f97,_0x5e4f97-_0x41dcae._0x128e33,_0x396423-0x179);}if(!this['openAiDelegate'])throw new Error(_0x25b87f(_0x2bc504._0x561e92,_0x2bc504._0x5e9bc0,_0x2bc504._0x40faa0,_0x2bc504._0x381eb8)+this[_0x25b87f(0x1da,_0x2bc504._0x76303a,_0x2bc504._0x393dde,_0x2bc504._0xdb1522)]);function _0x25b87f(_0x41b2cb,_0x10166d,_0x16175f,_0x9c7348){return _0x65d232(_0x10166d-_0x5af0e4._0x4775a7,_0x16175f,_0x16175f-_0x5af0e4._0x398157,_0x9c7348-0xaf);}return this['openAiDelegate'];}[_0x65d232(-0x1,0x39,-0x7f,0xbc)](_0x34d336,_0x3e2d29){const _0xd47993={_0x25d831:0x267,_0xc28802:0x2e1,_0x5d2058:0x2d9,_0x19d53c:0x279,_0x3d2901:0x3e9,_0x1381b7:0x208,_0x2b2a0f:0x214,_0x539386:0x2a4,_0x475982:0x236,_0x3fe4a9:0x27e,_0x201a25:0x146,_0x20d89e:0x8e,_0x38fb14:0xdc,_0x100abe:0x1c5,_0x42c2be:0x285,_0x5c4a32:0x195,_0x5401ac:0xf3,_0x57ee31:0x29f},_0x4b3acf={_0x3af11c:0x47f,_0x22086a:0xd3,_0x3d044f:0x198};function _0x6b8354(_0x35ae5d,_0x480f8e,_0x39d499,_0x10739e){return _0x3c7c8d(_0x35ae5d- -_0x4b3acf._0x3af11c,_0x480f8e-_0x4b3acf._0x22086a,_0x39d499-_0x4b3acf._0x3d044f,_0x10739e);}function _0x5e23c2(_0x374672,_0x2b86f3,_0x17a0f6,_0x5708e5){return _0x65d232(_0x2b86f3-0x270,_0x5708e5,_0x17a0f6-0x1b9,_0x5708e5-0x1f4);}switch(this['surface']){case _0x5e23c2(_0xd47993._0x25d831,_0xd47993._0xc28802,_0xd47993._0x5d2058,0x273):return this[_0x5e23c2(_0xd47993._0x19d53c,0x334,0x29a,_0xd47993._0x3d2901)]()[_0x6b8354(-_0xd47993._0x1381b7,-_0xd47993._0x2b2a0f,-_0xd47993._0x539386,-0x1d1)](_0x34d336,_0x3e2d29);case _0x5e23c2(0x331,0x2db,0x258,0x350):return this[_0x6b8354(-_0xd47993._0x475982,-0x2ac,-_0xd47993._0x3fe4a9,-0x225)]()['response'](_0x34d336,_0x3e2d29);case _0x6b8354(-_0xd47993._0x201a25,-_0xd47993._0x20d89e,-0x18f,-_0xd47993._0x38fb14):return this[_0x6b8354(-0x236,-_0xd47993._0x100abe,-0x226,-_0xd47993._0x42c2be)]()[_0x6b8354(-_0xd47993._0x5c4a32,-_0xd47993._0x5401ac,-0x164,-0x145)](_0x34d336,_0x3e2d29);default:return this[_0x6b8354(-0x236,-0x228,-0x27f,-0x209)]()[_0x5e23c2(0x1ef,_0xd47993._0x57ee31,0x2ea,0x29c)](_0x34d336,_0x3e2d29);}}[_0x65d232(0x3a,0xf0,0xf7,-0x60)](_0x48c594,_0x3d77dd){const _0x1f2ba7={_0x50d513:0x38,_0x580d94:0x94,_0x258e23:0x1b,_0x42cdc3:0x43,_0x256cdc:0x181,_0x1ca21c:0x10c,_0xf1233d:0x9f,_0x12ade0:0x12,_0x3258b3:0x117,_0x3c7da1:0x145,_0x52cdc4:0x203,_0x43cead:0x4d,_0x28a103:0x1a0,_0x1cba47:0x15c,_0xc27def:0xa,_0x52b5c7:0xa4,_0x2631f4:0x85,_0x4fb7cb:0x58,_0x86202:0xed,_0x5d439c:0xcb,_0x20d905:0xc3,_0x4a7d78:0x17d,_0x5a2732:0x196,_0x49bb19:0xb5,_0xa4191c:0x143},_0x478e17={_0x2ad653:0x163,_0x87118:0x1e};function _0x45f976(_0x3268f6,_0x492a17,_0x25277d,_0x1888d0){return _0x65d232(_0x492a17-0x110,_0x25277d,_0x25277d-0x115,_0x1888d0-0x1b5);}function _0x517e1b(_0x37cd51,_0x2de72d,_0x2b6c4d,_0x3a0332){return _0x65d232(_0x37cd51- -_0x478e17._0x2ad653,_0x3a0332,_0x2b6c4d-_0x478e17._0x87118,_0x3a0332-0x144);}switch(this[_0x517e1b(-_0x1f2ba7._0x50d513,-_0x1f2ba7._0x580d94,_0x1f2ba7._0x258e23,_0x1f2ba7._0x42cdc3)]){case _0x45f976(0x237,_0x1f2ba7._0x256cdc,_0x1f2ba7._0x1ca21c,0x1b1):return this[_0x517e1b(-_0x1f2ba7._0xf1233d,-0x1e,-0x106,_0x1f2ba7._0x12ade0)]()[_0x45f976(_0x1f2ba7._0x3258b3,0x14a,_0x1f2ba7._0x3c7da1,_0x1f2ba7._0x52cdc4)](_0x48c594,_0x3d77dd);case _0x517e1b(-0xf8,-_0x1f2ba7._0x43cead,-0x66,-0x1ae):return this[_0x45f976(_0x1f2ba7._0x28a103,0xe1,_0x1f2ba7._0x1cba47,0x40)]()[_0x517e1b(-0x49,-0xcd,_0x1f2ba7._0xc27def,-0xca)](_0x48c594,_0x3d77dd);case _0x517e1b(-0xa2,-_0x1f2ba7._0x52b5c7,-_0x1f2ba7._0x2631f4,-_0x1f2ba7._0x4fb7cb):return this[_0x45f976(_0x1f2ba7._0x86202,0xe1,_0x1f2ba7._0x5d439c,_0x1f2ba7._0x20d905)]()[_0x45f976(_0x1f2ba7._0x4a7d78,0x1af,_0x1f2ba7._0x5a2732,0x165)](_0x48c594,_0x3d77dd);default:return this[_0x45f976(_0x1f2ba7._0x49bb19,0xe1,_0x1f2ba7._0xa4191c,0x6e)]()['chatStream'](_0x48c594,_0x3d77dd);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x3c7c8d(0x360,0x398,0x403,0x3ac)];[_0x3c7c8d(0x332,0x2e2,0x3a3,0x324)];[_0x65d232(0x1c,0x63,-0x13,0x37)];[_0x65d232(0x73,0x103,0x26,-0x31)];['tokenExchangeApiVersion'];constructor(_0x3dba66){const _0x2d7a7c={_0x2dd2b5:0x218,_0x262478:0x200,_0x3d9fd4:0x1b5,_0x15e916:0x4ea,_0x3f6df2:0x374,_0x260759:0x362,_0xb31ff1:0x374,_0x5e2af7:0x3b8,_0x3510b9:0x3f2,_0x103aac:0x424,_0x5c339e:0x45e,_0x3f192a:0x43c},_0x5c7ece={_0x2ca774:0xd6,_0x5d3d65:0x140},_0x18de1a={_0x413c3f:0x2e8};this[_0x24fb44(-_0x2d7a7c._0x2dd2b5,-_0x2d7a7c._0x262478,-_0x2d7a7c._0x3d9fd4,-0x249)]=_0x3dba66[_0x538e96(_0x2d7a7c._0x15e916,0x38a,0x3e4,0x436)];function _0x24fb44(_0x164864,_0x4d5c46,_0x330bd9,_0x14864b){return _0x65d232(_0x4d5c46- -_0x18de1a._0x413c3f,_0x330bd9,_0x330bd9-0x198,_0x14864b-0x68);}this[_0x538e96(_0x2d7a7c._0x3f6df2,_0x2d7a7c._0x260759,0x399,0x408)]=trimTrailingSlashes2(_0x3dba66['baseUrl']),this['fetchImpl']=_0x3dba66['fetch'],this[_0x538e96(_0x2d7a7c._0xb31ff1,_0x2d7a7c._0x5e2af7,_0x2d7a7c._0x3510b9,0x3c1)]=trimTrailingSlashes2(_0x3dba66['githubApiUrl']);function _0x538e96(_0x363a46,_0x136cb7,_0x5a1d1e,_0x579bcd){return _0x3c7c8d(_0x579bcd-_0x5c7ece._0x2ca774,_0x136cb7-0xc0,_0x5a1d1e-_0x5c7ece._0x5d3d65,_0x136cb7);}this['tokenExchangeApiVersion']=_0x3dba66[_0x538e96(0x4b8,_0x2d7a7c._0x103aac,_0x2d7a7c._0x5c339e,_0x2d7a7c._0x3f192a)];}async[_0x65d232(0x99,0x25,0x12,0x5)](_0x2da43a){const _0x1e8edf={_0x5ca3c7:0x223,_0x538001:0x284,_0x37a3c5:0x1ce,_0x5a7c0b:0x1cc,_0x31bdfb:0x2af,_0x51bf3a:0x211,_0x5a3d2d:0x9f,_0x9d61dc:0x157,_0x20be7d:0x1a1,_0x4cba77:0x16c,_0x3c087d:0x1ad,_0x554a87:0x20b,_0x538e76:0x16a,_0x1f6701:0xe1,_0x1e3440:0x1de,_0x3ae28d:0x1b4,_0x2df414:0x202,_0x2facb4:0x249,_0x4a99ae:0x1b8,_0x327e1a:0x295,_0x25e830:0xe7,_0xfcbf1f:0x92,_0x465352:0xda,_0x10b97c:0x115,_0x4a2d4b:0xd9,_0x22ef86:0x171,_0x3b25e2:0x1fe,_0x438d36:0x231,_0x36556a:0xe7,_0x17ac3c:0xb8,_0x2bc2f2:0x27a,_0x1221d5:0x22c,_0x4074b1:0x2ff,_0x41ecf2:0x1f7,_0x547b00:0x171,_0x5ef78d:0x165,_0x3569cf:0x12a,_0x10b704:0x2a9,_0x2d3261:0x301,_0x3e24ff:0x322,_0x11cd7c:0x1da,_0x2afa79:0x264,_0x53704f:0x1d8,_0x58fc71:0x11b},_0x2d1373={_0x299eef:0x1df,_0x49b524:0x12b},_0x2b7b4b={_0x1b66d5:0xff};function _0x10f682(_0x3f1074,_0x59dd6a,_0x10e84a,_0x29b768){return _0x65d232(_0x59dd6a- -0x1cf,_0x29b768,_0x10e84a-_0x2b7b4b._0x1b66d5,_0x29b768-0xd2);}function _0x2daae5(_0x4f5de2,_0x1e2799,_0x17642f,_0x45f2f5){return _0x65d232(_0x4f5de2- -0x23f,_0x17642f,_0x17642f-_0x2d1373._0x299eef,_0x45f2f5-_0x2d1373._0x49b524);}const _0x4e9139=await this[_0x2daae5(-_0x1e8edf._0x5ca3c7,-_0x1e8edf._0x538001,-_0x1e8edf._0x37a3c5,-0x2a4)](this[_0x2daae5(-_0x1e8edf._0x5a7c0b,-0x15f,-0x1b0,-0x1f6)]+_0x10f682(-_0x1e8edf._0x31bdfb,-0x20c,-_0x1e8edf._0x51bf3a,-0x238),{'method':'GET','headers':new Headers({'accept':_0x10f682(-0xd0,-0x106,-_0x1e8edf._0x5a3d2d,-0x11d),'authorization':'Bearer\x20'+this[_0x2daae5(-_0x1e8edf._0x9d61dc,-_0x1e8edf._0x20be7d,-0x97,-_0x1e8edf._0x4cba77)],'editor-version':_0x10f682(-_0x1e8edf._0x3c087d,-0x1b4,-_0x1e8edf._0x554a87,-0x14c),'user-agent':_0x2daae5(-_0x1e8edf._0x538e76,-_0x1e8edf._0x1f6701,-0xd8,-0x102),'x-github-api-version':this[_0x2daae5(-0x151,-_0x1e8edf._0x1e3440,-_0x1e8edf._0x3ae28d,-_0x1e8edf._0x2df414)]}),'signal':_0x2da43a});if(!_0x4e9139['ok'])return{'credential':{'kind':_0x10f682(-_0x1e8edf._0x2facb4,-0x20e,-_0x1e8edf._0x4a99ae,-_0x1e8edf._0x327e1a),'value':this[_0x10f682(-0x14e,-_0x1e8edf._0x25e830,-_0x1e8edf._0xfcbf1f,-0xba)]},'endpoints':{'api':this[_0x10f682(-_0x1e8edf._0x465352,-_0x1e8edf._0x10b97c,-0x163,-0xe6)]}};const _0xd2ee63=await _0x4e9139['json']();return{'credential':{'kind':_0x10f682(-0x13c,-_0x1e8edf._0x4a2d4b,-_0x1e8edf._0x22ef86,-0xa3),'value':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x3b25e2,-_0x1e8edf._0x438d36,-0x23d,-0x1f3)]??this[_0x10f682(-0x18f,-_0x1e8edf._0x36556a,-0x126,-_0x1e8edf._0x17ac3c)]},'endpoints':{'api':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x2bc2f2,-0x2be,-_0x1e8edf._0x1221d5,-_0x1e8edf._0x4074b1)]?.[_0x10f682(-_0x1e8edf._0x41ecf2,-_0x1e8edf._0x547b00,-_0x1e8edf._0x5ef78d,-0x118)]??this[_0x2daae5(-0x185,-0x228,-0x1fa,-_0x1e8edf._0x3569cf)],'originTracker':_0xd2ee63['endpoints']?.['origin-tracker'],'proxy':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x2bc2f2,-_0x1e8edf._0x10b704,-_0x1e8edf._0x2d3261,-_0x1e8edf._0x3e24ff)]?.[_0x10f682(-0xb4,-0x138,-0xf3,-0x13d)],'telemetry':_0xd2ee63[_0x10f682(-0x1e6,-0x20a,-0x1ac,-_0x1e8edf._0x11cd7c)]?.[_0x10f682(-_0x1e8edf._0x2afa79,-_0x1e8edf._0x53704f,-0x221,-_0x1e8edf._0x58fc71)]}};}};function trimTrailingSlashes2(_0x57dc55){const _0x84dbcb={_0x2224d3:0x14,_0x2da433:0xd},_0x3abfdb={_0x212a58:0xa,_0x21716b:0x1f3,_0x5d4bdd:0x13d};function _0x6d63bb(_0x5ec2f6,_0x4b0ec7,_0x1d8da4,_0x25173e){return _0x65d232(_0x4b0ec7- -_0x3abfdb._0x212a58,_0x1d8da4,_0x1d8da4-_0x3abfdb._0x21716b,_0x25173e-_0x3abfdb._0x5d4bdd);}return _0x57dc55[_0x6d63bb(0xba,0x7c,_0x84dbcb._0x2224d3,_0x84dbcb._0x2da433)](/\/+$/,'');}function createModelInfo(_0x4b0373){const _0x150f30={_0x6a92bf:0x232,_0x11573e:0x274,_0x1118d8:0x1e3,_0x249a4b:0x10f,_0x5650dc:0x1be,_0x216afd:0x261,_0x583b21:0x1e0,_0x2c54d8:0x262,_0x272e00:0x27f,_0x5da50a:0x287,_0x2d49af:0x21e,_0x5036e4:0x221},_0x268dc2={_0x16ebc9:0x1ba},_0x3d4c1f={_0x314204:0x509,_0x26ae52:0x13b};function _0x3b099e(_0x118393,_0x42ed15,_0x2daef8,_0x1f6227){return _0x3c7c8d(_0x1f6227- -_0x3d4c1f._0x314204,_0x42ed15-_0x3d4c1f._0x26ae52,_0x2daef8-0x13b,_0x2daef8);}const _0x2e88f2=_0x4b0373[_0xabb308(0x206,0x155,_0x150f30._0x6a92bf,_0x150f30._0x11573e)]??_0x4b0373['capable_endpoints'],_0xd0e49a=_0x4b0373['capabilities']?.[_0x3b099e(-0x201,-_0x150f30._0x1118d8,-_0x150f30._0x249a4b,-_0x150f30._0x5650dc)]?.[_0x3b099e(-_0x150f30._0x216afd,-0x162,-_0x150f30._0x583b21,-0x204)],_0x44a3c0=_0x4b0373[_0xabb308(_0x150f30._0x2c54d8,_0x150f30._0x272e00,0x235,0x323)]?.[_0xabb308(0x28d,0x23d,_0x150f30._0x5da50a,0x211)]?.['max_output_tokens'];function _0xabb308(_0x38462a,_0x368b42,_0x3f6af0,_0x14c820){return _0x65d232(_0x38462a-_0x268dc2._0x16ebc9,_0x3f6af0,_0x3f6af0-0xc6,_0x14c820-0x1e);}const _0x3ac42d=_0xd0e49a!==void 0x0||_0x44a3c0!==void 0x0?{..._0xd0e49a!==void 0x0?{'contextWindow':_0xd0e49a}:{},..._0x44a3c0!==void 0x0?{'maxOutput':_0x44a3c0}:{}}:void 0x0;return{'id':_0x4b0373['id'],'name':_0x4b0373[_0xabb308(_0x150f30._0x2d49af,_0x150f30._0x5036e4,0x265,0x20b)]??_0x4b0373['id'],..._0x3ac42d?{'limits':_0x3ac42d}:{},..._0x2e88f2?{'supportedEndpoints':_0x2e88f2}:{}};}function deduplicateModels(_0x190043){const _0x12d0a7={_0xe41991:0x49,_0x589019:0x60,_0xbdb5cd:0x41,_0x71a44f:0xb6,_0x355d4b:0x10},_0xdf2d3e={_0x54a8e5:0x195,_0x314e7a:0x180},_0x5c2591={_0x42505b:0x8,_0x1006ea:0x19d};function _0x3461c5(_0x5b56ed,_0x4ac77d,_0x424a38,_0x2b9810){return _0x3c7c8d(_0x424a38- -0x2a5,_0x4ac77d-_0x5c2591._0x42505b,_0x424a38-_0x5c2591._0x1006ea,_0x2b9810);}function _0x2c1002(_0x5dee36,_0x2675ae,_0x411df6,_0x2475d2){return _0x3c7c8d(_0x5dee36- -0x307,_0x2675ae-_0xdf2d3e._0x54a8e5,_0x411df6-_0xdf2d3e._0x314e7a,_0x2475d2);}const _0x3ab555=new Map();for(const _0x1b8f1c of _0x190043){!_0x3ab555[_0x2c1002(-0x7b,-0x27,-0x7f,-_0x12d0a7._0xe41991)](_0x1b8f1c['id'])&&_0x3ab555[_0x2c1002(0xe,-0xac,_0x12d0a7._0x589019,_0x12d0a7._0xbdb5cd)](_0x1b8f1c['id'],_0x1b8f1c);}return Array['from'](_0x3ab555[_0x2c1002(0x27,_0x12d0a7._0x71a44f,0x8a,_0x12d0a7._0x355d4b)]());}function hasUserPromptContent(_0x419e71){const _0x1f36af={_0x5c884d:0x157,_0x4bc52b:0x272,_0x3e2782:0x293,_0x272c3f:0x13d,_0xf1e8e7:0x1af,_0xc78b29:0x13c,_0x5174ec:0x226,_0x5f5007:0x277,_0x2059dd:0x270,_0x3924f1:0x210,_0x48df07:0x176,_0x235635:0x273,_0x2cd302:0x209},_0x4c8bcd={_0x1cbfa9:0x4a9,_0x243771:0x2b4,_0x2f38f2:0x32a,_0x2f42f7:0x23d,_0x542bfb:0x2f7,_0x146277:0x1e0,_0x4e4910:0x21c,_0x1af744:0x223,_0x3111df:0x17f,_0x3bc6a7:0x10b,_0x26da31:0x276,_0x4cf2fc:0x1b8,_0x397f26:0x275,_0x46350f:0x372,_0x1bb01f:0x2bd,_0x560f9a:0x35d,_0x27cc6b:0x2f9,_0x2df084:0x4a7},_0x1a2f62={_0x3e4efb:0x49a},_0x56d566={_0x31be42:0x2c6,_0x451bd1:0x14a};function _0x2eebe4(_0x1829df,_0x313cc0,_0x479049,_0x33063b){return _0x65d232(_0x313cc0-_0x56d566._0x31be42,_0x479049,_0x479049-0xbb,_0x33063b-_0x56d566._0x451bd1);}function _0x42d6ad(_0x2e66bb,_0x5683c4,_0x512863,_0x168497){return _0x3c7c8d(_0x2e66bb- -_0x1a2f62._0x3e4efb,_0x5683c4-0x35,_0x512863-0x144,_0x512863);}if(typeof _0x419e71===_0x42d6ad(-0x219,-_0x1f36af._0x5c884d,-_0x1f36af._0x4bc52b,-0x21c))return _0x419e71[_0x2eebe4(0x23e,_0x1f36af._0x3e2782,0x352,0x1fe)]()[_0x42d6ad(-_0x1f36af._0x272c3f,-_0x1f36af._0xf1e8e7,-_0x1f36af._0xc78b29,-0xc1)]>0x0;if(!Array[_0x42d6ad(-_0x1f36af._0x5174ec,-_0x1f36af._0x5f5007,-0x2ad,-_0x1f36af._0x2059dd)](_0x419e71))return![];return _0x419e71[_0x42d6ad(-_0x1f36af._0x3924f1,-_0x1f36af._0x48df07,-_0x1f36af._0x235635,-_0x1f36af._0x2cd302)](_0xaca3ee=>{function _0x62a85b(_0x59d470,_0x20f599,_0x404a41,_0x16a344){return _0x42d6ad(_0x404a41-0x5e4,_0x20f599-0xf2,_0x20f599,_0x16a344-0x5b);}if(!_0xaca3ee||typeof _0xaca3ee!=='object')return![];const _0x3a9b9f=_0xaca3ee;function _0x5b21e2(_0x91f4b3,_0xf31a78,_0x53c289,_0x1e23b1){return _0x42d6ad(_0x1e23b1- -0xa4,_0xf31a78-0x15f,_0x91f4b3,_0x1e23b1-0x1c0);}return(_0x3a9b9f[_0x62a85b(0x548,0x441,_0x4c8bcd._0x1cbfa9,0x4e8)]===_0x5b21e2(-_0x4c8bcd._0x243771,-_0x4c8bcd._0x2f38f2,-_0x4c8bcd._0x2f42f7,-_0x4c8bcd._0x542bfb)||_0x3a9b9f[_0x5b21e2(-_0x4c8bcd._0x146277,-_0x4c8bcd._0x4e4910,-_0x4c8bcd._0x1af744,-0x1df)]===_0x62a85b(0x585,0x45b,0x4d0,0x56f))&&typeof _0x3a9b9f[_0x5b21e2(-_0x4c8bcd._0x3111df,-_0x4c8bcd._0x3bc6a7,-_0x4c8bcd._0x26da31,-_0x4c8bcd._0x4cf2fc)]===_0x5b21e2(-0x2a5,-_0x4c8bcd._0x397f26,-_0x4c8bcd._0x46350f,-_0x4c8bcd._0x1bb01f)&&_0x3a9b9f['text'][_0x5b21e2(-0x3af,-_0x4c8bcd._0x560f9a,-0x2aa,-_0x4c8bcd._0x27cc6b)]()[_0x62a85b(0x489,0x3f6,_0x4c8bcd._0x2df084,0x4e2)]>0x0;});}function isUserPromptEntry(_0x41113f){const _0xcb3ab9={_0x142435:0x2fc,_0x13150e:0x380,_0x324576:0x2e0,_0x14760f:0x1a8,_0xa3ccd9:0x183,_0x3b2b36:0xe3,_0x542c70:0x148,_0x445246:0xd9},_0x274d1c={_0x32fd26:0x7,_0x3fa265:0x1b5},_0x3a2519={_0x4a433c:0xe};if(!_0x41113f||typeof _0x41113f!==_0x5b0bac(-0x2df,-_0xcb3ab9._0x142435,-_0xcb3ab9._0x13150e,-_0xcb3ab9._0x324576))return![];function _0x5b0bac(_0x1c95a3,_0x2df783,_0x566523,_0x1c728f){return _0x65d232(_0x1c728f- -0x2da,_0x1c95a3,_0x566523-_0x3a2519._0x4a433c,_0x1c728f-0x142);}const _0x26a926=_0x41113f;if(_0x26a926['role']!=='user')return![];function _0x34c9e8(_0x40be05,_0x164c7b,_0xa7e4ce,_0x497ad2){return _0x65d232(_0x164c7b-_0x274d1c._0x32fd26,_0x497ad2,_0xa7e4ce-_0x274d1c._0x3fa265,_0x497ad2-0xaa);}if(_0x26a926['type']!==void 0x0&&_0x26a926[_0x5b0bac(-0x1d3,-_0xcb3ab9._0x14760f,-_0xcb3ab9._0xa3ccd9,-0x1f3)]!==_0x34c9e8(_0xcb3ab9._0x3b2b36,0x11f,0x1ac,0xea))return![];return hasUserPromptContent(_0x26a926[_0x34c9e8(_0xcb3ab9._0x542c70,0xc5,_0xcb3ab9._0x445246,0x156)]);}function determineInitiator(_0x252835){const _0x446645={_0x31292d:0x1ea,_0x35fa38:0x214,_0x161994:0xc0,_0x3cba7c:0x136,_0xf6cf6f:0x1db,_0x5014cb:0x1eb,_0x3eeb2c:0x1fc,_0x9f052a:0x1ac,_0x5f57c7:0x1ec,_0x201105:0x20f,_0x3b2d2b:0x2e0,_0x1d3b26:0x2d5,_0x2dda5b:0x356,_0x50a81b:0xf6},_0x212082={_0x49938b:0x88,_0x16f66b:0xcd},_0x2b93a0={_0x199338:0x24b,_0x33fa62:0xb0,_0xf78e4:0xcf};if(!_0x252835||typeof _0x252835!==_0x2e491a(0x183,_0x446645._0x31292d,0x19a,_0x446645._0x35fa38))return _0x3e6822(-0x13c,-_0x446645._0x161994,-_0x446645._0x3cba7c,-_0x446645._0xf6cf6f);const _0x363461=_0x2e491a(0x2dc,0x2ad,0x29a,_0x446645._0x5014cb)in _0x252835?_0x252835[_0x3e6822(-0x18e,-0x202,-_0x446645._0x3eeb2c,-0x124)]:'input'in _0x252835?_0x252835['input']:void 0x0;function _0x3e6822(_0x299400,_0x5498a1,_0x398588,_0x1db324){return _0x65d232(_0x299400- -_0x2b93a0._0x199338,_0x5498a1,_0x398588-_0x2b93a0._0x33fa62,_0x1db324-_0x2b93a0._0xf78e4);}function _0x2e491a(_0xf1c48f,_0x26412e,_0x3354e4,_0x22922f){return _0x3c7c8d(_0x26412e- -_0x212082._0x49938b,_0x26412e-0x1cb,_0x3354e4-_0x212082._0x16f66b,_0x22922f);}if(!Array[_0x2e491a(_0x446645._0x9f052a,_0x446645._0x5f57c7,0x1e5,_0x446645._0x201105)](_0x363461)||_0x363461[_0x2e491a(_0x446645._0x3b2d2b,_0x446645._0x1d3b26,0x34a,0x29a)]===0x0)return'agent';return isUserPromptEntry(_0x363461[_0x363461[_0x2e491a(_0x446645._0x2dda5b,_0x446645._0x1d3b26,0x380,0x2ac)]-0x1])?'user':_0x3e6822(-0x13c,-_0x446645._0x50a81b,-0x1d4,-0x11a);}function isUnsupportedApiForModel(_0x1e8e2d){const _0x22ade4={_0x5a899b:0x11a,_0xd0ad6d:0x57,_0x47426d:0x10d,_0x14d42d:0x108},_0x236dbc={_0x4e3134:0x3a9,_0x57ed7e:0x22,_0x258d2c:0x1c2};function _0x2e5537(_0x18570f,_0x2b7221,_0x560e7f,_0x4c7837){return _0x3c7c8d(_0x4c7837- -_0x236dbc._0x4e3134,_0x2b7221-_0x236dbc._0x57ed7e,_0x560e7f-_0x236dbc._0x258d2c,_0x560e7f);}return _0x1e8e2d['includes'](_0x2e5537(-_0x22ade4._0x5a899b,-_0x22ade4._0xd0ad6d,-_0x22ade4._0x47426d,-_0x22ade4._0x14d42d));}function createResponseError(_0x30cef1,_0x146449){const _0x1516ea={_0x13d2f6:0x70,_0xa1583f:0x23,_0x37bcca:0x61,_0xac62f9:0x99,_0x10b6a2:0x13b,_0x223a8c:0xfd,_0x421d39:0x9,_0x4a9297:0xdf,_0x1911ee:0x38},_0x7f89d4={_0x5a72ad:0x27b,_0x327911:0x25},_0x219654={_0x39640c:0x1ac};if(_0x30cef1===0x191||_0x30cef1===0x193)return new Error(_0x532f45(-_0x1516ea._0x13d2f6,-_0x1516ea._0xa1583f,_0x1516ea._0x37bcca,_0x1516ea._0xac62f9));if(_0x30cef1===0x198||_0x30cef1===0x1ad)return new Error(_0x532f45(_0x1516ea._0x10b6a2,0x106,_0x1516ea._0x223a8c,0x193));function _0x5d7507(_0x140d77,_0x686c91,_0x3f3aec,_0x2eb0e0){return _0x65d232(_0x2eb0e0- -0x84,_0x140d77,_0x3f3aec-_0x219654._0x39640c,_0x2eb0e0-0x6);}if(_0x30cef1===0x190)return new Error(_0x5d7507(_0x1516ea._0x421d39,_0x1516ea._0x4a9297,0x75,_0x1516ea._0x1911ee)+_0x146449);function _0x532f45(_0x3f733d,_0x33c420,_0xdd96cc,_0x41bcbb){return _0x3c7c8d(_0x33c420- -_0x7f89d4._0x5a72ad,_0x33c420-_0x7f89d4._0x327911,_0xdd96cc-0x9d,_0x3f733d);}return new Error(_0x146449||'GitHub\x20API\x20error\x20'+_0x30cef1);}var GitHubModel=class extends OpenAiModel{[_0x3c7c8d(0x23f,0x2cb,0x21a,0x17f)];['modelEndpointCache']=new Map();[_0x3c7c8d(0x3a3,0x384,0x3ca,0x2ff)];constructor(_0x9d55f7={}){const _0x17cd9c={_0x60050:0x445,_0x10a9c:0x3aa,_0x4f8b68:0x477,_0x5baf27:0x423,_0x42e059:0x37c,_0x390f81:0x451,_0x168031:0x3ae,_0x273ac0:0x429,_0x28a1b1:0x49d,_0xc7b694:0x437,_0x7d8ca4:0x424,_0x45d0d2:0x40e,_0x5d73ac:0x409,_0x31e23c:0x4e3,_0x37df97:0x482,_0x521e6a:0x39e,_0x2b4f22:0x339,_0x6a14db:0x3d0,_0xa370d0:0x380,_0x844ab9:0x352,_0x472c9c:0x42f,_0x41678a:0x302,_0x283f81:0x34d,_0x24c6fe:0x361,_0x4e6902:0x387,_0x48c471:0x452,_0x1b59d9:0x46d,_0xf88f61:0x37f,_0x53f313:0x3c7,_0x377ba3:0x498,_0x49c34e:0x4cb,_0x2b5a1d:0x4ab,_0x5f3747:0x575,_0x5e864b:0x54c},_0x46b28e={_0x3d5df0:0x7f},_0x4c490b={_0x6b568f:0x76};function _0x1e0566(_0x3e896c,_0x114122,_0xb43e5a,_0xbeb21d){return _0x65d232(_0x3e896c-0x33b,_0x114122,_0xb43e5a-0x1c,_0xbeb21d-_0x4c490b._0x6b568f);}const _0x5b624b=trimTrailingSlashes2(_0x9d55f7['baseUrl']??'https://api.individual.githubcopilot.com'),_0x3db5a0=_0x9d55f7['fetch']??globalThis[_0x1e0566(_0x17cd9c._0x60050,_0x17cd9c._0x10a9c,0x4e3,0x448)],_0x47323b=_0x9d55f7['providerSessionResolver']??(_0x9d55f7[_0x1e0566(0x423,_0x17cd9c._0x4f8b68,0x474,0x3dc)]?new GitHubAccessTokenResolver({'accessToken':_0x9d55f7[_0x1e0566(_0x17cd9c._0x5baf27,0x3e7,_0x17cd9c._0x42e059,_0x17cd9c._0x390f81)],'baseUrl':_0x5b624b,'fetch':_0x3db5a0,'githubApiUrl':_0x9d55f7[_0x1e0566(_0x17cd9c._0x168031,0x3ab,0x307,0x42d)]??'https://api.github.com','tokenExchangeApiVersion':_0x9d55f7[_0x1e0566(_0x17cd9c._0x273ac0,0x3ea,_0x17cd9c._0x28a1b1,0x3fa)]??_0x44f494(_0x17cd9c._0xc7b694,0x37e,_0x17cd9c._0x7d8ca4,_0x17cd9c._0x45d0d2)}):void 0x0),_0x4e84bd=_0x9d55f7[_0x1e0566(_0x17cd9c._0x5d73ac,0x3dc,0x364,0x3dc)]??_0x44f494(0x485,0x472,_0x17cd9c._0x31e23c,_0x17cd9c._0x37df97),_0xc886e7=_0x9d55f7[_0x44f494(0x4cd,0x515,0x53b,0x4c6)]??_0x1e0566(_0x17cd9c._0x521e6a,0x331,_0x17cd9c._0x2b4f22,_0x17cd9c._0x6a14db),_0x1e4a59=({body:_0x4ff96c})=>{return{'editor-plugin-version':_0xc886e7,'editor-version':_0x4e84bd,'x-initiator':determineInitiator(_0x4ff96c),'x-request-id':randomUUID()};};function _0x44f494(_0x327393,_0x26c4f5,_0x175fd6,_0x52964c){return _0x65d232(_0x327393-0x453,_0x26c4f5,_0x175fd6-0x1c9,_0x52964c-_0x46b28e._0x3d5df0);}const _0x16fa65={'apiKey':_0x9d55f7['apiKey'],'baseUrl':_0x5b624b,'fetch':_0x3db5a0,'maxTokens':_0x9d55f7[_0x1e0566(0x452,0x3a6,0x425,0x3c0)],'model':_0x9d55f7['model'],'reasoning':_0x9d55f7[_0x1e0566(_0x17cd9c._0xa370d0,0x369,0x2e1,_0x17cd9c._0x844ab9)],'providerSessionResolver':_0x47323b,'requestMutators':_0x9d55f7[_0x44f494(0x575,0x516,0x4f2,0x56d)],'headerResolver':_0x1e4a59};super(_0x16fa65),this['surface']=_0x9d55f7[_0x1e0566(0x466,0x4d2,0x4a7,_0x17cd9c._0x472c9c)]??'auto',this[_0x1e0566(_0x17cd9c._0x41678a,_0x17cd9c._0x283f81,_0x17cd9c._0x24c6fe,0x399)]=new AnthropicModel({'apiKey':_0x9d55f7[_0x1e0566(0x3cc,_0x17cd9c._0x4e6902,0x418,_0x17cd9c._0x7d8ca4)],'authScheme':'bearer','baseUrl':_0x5b624b,'fetch':_0x3db5a0,'headerResolver':_0x1e4a59,'maxTokens':_0x9d55f7[_0x1e0566(_0x17cd9c._0x48c471,0x3a9,0x3ca,0x4c8)],'model':_0x9d55f7[_0x1e0566(0x3ed,_0x17cd9c._0x1b59d9,_0x17cd9c._0xf88f61,_0x17cd9c._0x53f313)],'reasoning':_0x9d55f7[_0x44f494(_0x17cd9c._0x377ba3,_0x17cd9c._0x49c34e,0x403,_0x17cd9c._0x2b5a1d)],'providerSessionResolver':_0x47323b,'requestMutators':_0x9d55f7[_0x44f494(_0x17cd9c._0x5f3747,0x5a2,_0x17cd9c._0x5e864b,0x628)]});}['createMissingCredentialError'](){const _0x389d04={_0x4e457e:0x58e},_0x53f8ab={_0x3f12c0:0x488};function _0x507282(_0x23914a,_0x56d615,_0x2f1729,_0x4e2cdd){return _0x65d232(_0x4e2cdd-_0x53f8ab._0x3f12c0,_0x23914a,_0x2f1729-0x1da,_0x4e2cdd-0x130);}return new Error(_0x507282(0x56e,0x629,_0x389d04._0x4e457e,0x58a));}[_0x65d232(-0x5,-0x49,-0x1,0x5)](_0x262a94){const _0x19d0c8={_0x389cfc:0x52b,_0x5cf42e:0x532,_0x47dad8:0x4e2,_0x3de4f4:0x4e4,_0x5020ff:0x1,_0x360e9f:0x637},_0x6db51={_0x2dbdc5:0xea},_0x34dc17={_0x6f9f19:0x19},_0xb4dd3d=this[_0x3cd2cc(_0x19d0c8._0x389cfc,_0x19d0c8._0x5cf42e,0x4e3,0x552)]['get'](_0x262a94);if(!_0xb4dd3d)return![];function _0x3cd2cc(_0xdda9bd,_0x4277d6,_0x3bb1a1,_0x16aa52){return _0x65d232(_0x3bb1a1-0x47a,_0x4277d6,_0x3bb1a1-_0x34dc17._0x6f9f19,_0x16aa52-0x4a);}function _0x593d58(_0x2a1d77,_0x2edeb8,_0x17bab8,_0xf5d5e0){return _0x3c7c8d(_0x2edeb8- -0x37b,_0x2edeb8-_0x6db51._0x2dbdc5,_0x17bab8-0x29,_0x2a1d77);}return!_0xb4dd3d[_0x3cd2cc(0x4a0,0x4dd,_0x19d0c8._0x47dad8,_0x19d0c8._0x3de4f4)](_0x593d58(-0xd1,-0xa4,_0x19d0c8._0x5020ff,-0xf9))&&_0xb4dd3d['includes'](_0x3cd2cc(0x638,0x634,0x576,_0x19d0c8._0x360e9f));}[_0x3c7c8d(0x328,0x31b,0x2e5,0x271)](_0x553205){const _0xae1e37={_0x4c7bdd:0x165,_0x1f7797:0x2f0,_0x43b0bc:0x296,_0x424937:0x3ec,_0x3781a8:0x423,_0x15d070:0x436,_0x101065:0x3e3,_0x29e2d1:0x12f,_0x18bfaa:0x13c},_0x36e55f={_0x52d3ae:0x1be},_0x5e175f=this[_0x378210(0x1de,0xe0,0x19d,_0xae1e37._0x4c7bdd)][_0xe474b8(0x32c,_0xae1e37._0x1f7797,_0xae1e37._0x43b0bc,0x363)](_0x553205[_0xe474b8(_0xae1e37._0x424937,0x412,_0xae1e37._0x3781a8,0x461)]);if(!_0x5e175f)return![];if(resolveOpenAiReasoningConfig(_0x553205['reasoning']))return _0x5e175f['includes'](_0xe474b8(_0xae1e37._0x15d070,0x4d4,_0xae1e37._0x101065,0x442));function _0xe474b8(_0x43fcbc,_0x10cefa,_0x116fcd,_0x14f358){return _0x3c7c8d(_0x43fcbc-0xc2,_0x10cefa-0xfd,_0x116fcd-0xd2,_0x14f358);}function _0x378210(_0x175ec0,_0x241305,_0x4c7cfc,_0x30cbb3){return _0x3c7c8d(_0x4c7cfc- -0x144,_0x241305-0x22,_0x4c7cfc-_0x36e55f._0x52d3ae,_0x241305);}return this[_0x378210(0x176,0xc0,_0xae1e37._0x29e2d1,_0xae1e37._0x18bfaa)](_0x553205['model']);}[_0x65d232(0x76,-0x3c,0x7b,0x80)](_0x50586c){const _0xcc5703={_0x20d29a:0xdf},_0x17456e={_0x229f6e:0x1c4},_0x520484={_0x480a7a:0x290};function _0x12a829(_0x4e934a,_0x4b0782,_0x2c2747,_0x42ddc2){return _0x65d232(_0x42ddc2- -_0x520484._0x480a7a,_0x4e934a,_0x2c2747-0x73,_0x42ddc2-0x71);}function _0x3dda4f(_0x7b304,_0x4546fc,_0x2ffaf9,_0x52fe87){return _0x3c7c8d(_0x52fe87- -0x193,_0x4546fc-0x98,_0x2ffaf9-_0x17456e._0x229f6e,_0x7b304);}this['modelEndpointCache'][_0x3dda4f(0x129,_0xcc5703._0x20d29a,0x119,0x182)](_0x50586c,[_0x12a829(-0x1f7,-0x140,-0x120,-0x194)]);}[_0x3c7c8d(0x397,0x387,0x2ff,0x2f9)](_0x3f386f){const _0x4cd804={_0x22d8d0:0x35,_0x4972b9:0x6c,_0x13e8cd:0x55},_0xe2df1a={_0x9dd42f:0x3c3},_0x1d6aec={_0x27e68a:0x66,_0x36f9cf:0x49};function _0x6f3d0(_0x12ff2c,_0x445ad5,_0x3050b6,_0x59162f){return _0x65d232(_0x12ff2c- -_0x1d6aec._0x27e68a,_0x3050b6,_0x3050b6-_0x1d6aec._0x36f9cf,_0x59162f-0xc5);}function _0x3b2c8e(_0xf57c01,_0x43d0f0,_0x10f62e,_0x2913c8){return _0x65d232(_0x10f62e-_0xe2df1a._0x9dd42f,_0x43d0f0,_0x10f62e-0x77,_0x2913c8-0xe8);}if(_0x3f386f instanceof OpenAiApiError)return createResponseError(_0x3f386f['status'],_0x3f386f[_0x6f3d0(_0x4cd804._0x22d8d0,0x48,-_0x4cd804._0x4972b9,_0x4cd804._0x13e8cd)]||_0x3f386f[_0x3b2c8e(0x41a,0x509,0x4db,0x592)]);return _0x3f386f;}[_0x65d232(0x133,0x16c,0xbc,0xec)](_0x2ef4a0,_0x341f1e){const _0x9d00bf={_0x302663:0x61,_0x1bdd09:0x96,_0x3cf950:0x255,_0x5d5bc8:0x288,_0x2bd8f6:0x2b6,_0x4d1bc6:0x4},_0x1897c1={_0x23c39c:0x287,_0x3f9817:0x1d6},_0x36b8c7={_0x448551:0x132,_0x45e712:0x2d,_0x2deb04:0x124};function _0x11ee09(_0x362bba,_0x5d2007,_0x5607b0,_0x7e584c){return _0x65d232(_0x5d2007- -_0x36b8c7._0x448551,_0x362bba,_0x5607b0-_0x36b8c7._0x45e712,_0x7e584c-_0x36b8c7._0x2deb04);}function _0x4b6db4(_0x5ad6cb,_0x4baf7d,_0x364de8,_0x2cefc3){return _0x65d232(_0x4baf7d-_0x1897c1._0x23c39c,_0x5ad6cb,_0x364de8-_0x1897c1._0x3f9817,_0x2cefc3-0x10e);}switch(this[_0x11ee09(_0x9d00bf._0x302663,-0x7,_0x9d00bf._0x1bdd09,-0xb8)]){case _0x4b6db4(0x358,0x2f8,0x305,_0x9d00bf._0x3cf950):return this[_0x4b6db4(0x271,0x24e,0x18c,0x1ab)]['complete'](_0x2ef4a0,_0x341f1e);case'openai-chat-completions':return this[_0x4b6db4(_0x9d00bf._0x5d5bc8,_0x9d00bf._0x2bd8f6,0x303,0x2e3)](_0x2ef4a0,_0x341f1e);case'openai-responses':return this['response'](_0x2ef4a0,_0x341f1e);case _0x11ee09(-_0x9d00bf._0x4d1bc6,-0x71,-0x55,-0x71):return this['responseSocket'](_0x2ef4a0,_0x341f1e);case'auto':return this['complete'](_0x2ef4a0,_0x341f1e);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}[_0x65d232(-0x45,-0x7b,-0x54,-0x24)](_0x98f8de,_0x40bcd6){const _0x3a8a6c={_0x223a3c:0x9,_0x6b1416:0x35,_0x47cd45:0x44,_0x39cefd:0x289,_0x4c9640:0x227,_0x19fdbd:0x299,_0x470452:0x252,_0x945edc:0x250,_0x5f24df:0x1e3,_0x7d7341:0xd9,_0x3c7e57:0x119,_0x6fb82d:0x69,_0x15d184:0x2b7,_0x2f40dc:0x306,_0x442508:0x24b,_0x28dedf:0x39c},_0x9ae41={_0xcd0101:0x190},_0x2d3bc={_0x4f88e8:0x60};function _0x574d09(_0x31e722,_0x4725c6,_0x4d4d9c,_0xeeaeb8){return _0x3c7c8d(_0x31e722- -_0x2d3bc._0x4f88e8,_0x4725c6-0x8d,_0x4d4d9c-0x11b,_0x4d4d9c);}function _0xc55240(_0x4ca3d0,_0x1b0008,_0xc7da64,_0x318def){return _0x3c7c8d(_0x318def- -0x3e7,_0x1b0008-_0x9ae41._0xcd0101,_0xc7da64-0xd0,_0x4ca3d0);}switch(this[_0xc55240(-0x89,-_0x3a8a6c._0x223a3c,_0x3a8a6c._0x6b1416,-_0x3a8a6c._0x47cd45)]){case _0x574d09(_0x3a8a6c._0x39cefd,_0x3a8a6c._0x4c9640,0x1e2,0x28e):return this[_0x574d09(0x1df,0x1d2,0x1cd,_0x3a8a6c._0x19fdbd)][_0x574d09(_0x3a8a6c._0x470452,0x2cc,_0x3a8a6c._0x945edc,_0x3a8a6c._0x5f24df)](_0x98f8de,_0x40bcd6);case'openai-chat-completions':return this[_0xc55240(-_0x3a8a6c._0x7d7341,0x24,-_0x3a8a6c._0x3c7e57,-0x8f)](_0x98f8de,_0x40bcd6);case _0xc55240(-0x11a,-0x45,-_0x3a8a6c._0x6fb82d,-0x104):return this['responseStream'](_0x98f8de,_0x40bcd6);case _0x574d09(0x2d9,0x283,0x2a6,0x38d):return this[_0x574d09(_0x3a8a6c._0x15d184,_0x3a8a6c._0x2f40dc,0x30d,_0x3a8a6c._0x442508)](_0x98f8de,_0x40bcd6);case _0x574d09(0x33b,_0x3a8a6c._0x28dedf,0x341,0x36d):return this['stream'](_0x98f8de,_0x40bcd6);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}async[_0x3c7c8d(0x277,0x2d3,0x1c2,0x2d1)](_0x179f84,_0x11ec76){const _0x174953={_0x20b03f:0x487,_0x314685:0x427,_0x1cef34:0x555,_0x297899:0x493,_0x48d856:0x4e8,_0x424424:0x4d7,_0x2392bc:0x4d5,_0x25da29:0x4dc,_0xadce1a:0x436,_0x2b0068:0x570,_0x496081:0x3db,_0x3d5fe3:0x43c,_0x5b4afa:0x51b,_0x5b3b75:0x52a,_0x553b45:0x4cd,_0x46f276:0x514,_0x36f5d2:0x4bd,_0x22359d:0x469,_0x1cc6e9:0x3ff,_0x4025b3:0x4fa,_0xcfc794:0x44f,_0x370b46:0x3ac,_0x15dedf:0x48c,_0xe18bf3:0x45b,_0x4afb73:0x480,_0x4b8cab:0x495,_0x3d51ed:0x557,_0x23bdca:0x42e,_0x82224a:0x4d3},_0x40868c={_0x47fb6a:0x13c,_0x598483:0x17a},_0x2a32ab={_0x5b8daa:0x3a9};function _0x3a4a1e(_0x1c3c37,_0x102505,_0x758ad3,_0x40bcb5){return _0x65d232(_0x102505-_0x2a32ab._0x5b8daa,_0x40bcb5,_0x758ad3-0x15f,_0x40bcb5-0x12c);}const _0x59a2d6=this[_0x178a90(0x522,0x425,0x531,0x4e0)](_0x179f84);if(this[_0x3a4a1e(_0x174953._0x20b03f,0x4d4,_0x174953._0x314685,_0x174953._0x1cef34)]!==_0x178a90(0x4c8,_0x174953._0x297899,_0x174953._0x48d856,_0x174953._0x424424))return this[_0x3a4a1e(_0x174953._0x2392bc,_0x174953._0x25da29,_0x174953._0xadce1a,_0x174953._0x2b0068)](_0x59a2d6,_0x11ec76);function _0x178a90(_0x7a6c49,_0x397d3a,_0x227806,_0x46bc8d){return _0x3c7c8d(_0x46bc8d-_0x40868c._0x47fb6a,_0x397d3a-_0x40868c._0x598483,_0x227806-0x123,_0x227806);}if(this[_0x178a90(_0x174953._0x496081,_0x174953._0x3d5fe3,_0x174953._0x5b4afa,0x464)](_0x59a2d6))return this[_0x178a90(_0x174953._0x5b3b75,0x489,0x55e,_0x174953._0x553b45)](_0x59a2d6,_0x11ec76);try{return await this[_0x178a90(_0x174953._0x46f276,_0x174953._0x36f5d2,0x50e,_0x174953._0x22359d)](_0x59a2d6,_0x11ec76);}catch(_0x25fdf6){if(_0x25fdf6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x25fdf6[_0x178a90(_0x174953._0x1cc6e9,0x48a,_0x174953._0x4025b3,_0x174953._0xcfc794)]))return this[_0x3a4a1e(_0x174953._0x370b46,0x41f,_0x174953._0x15dedf,0x43c)](_0x59a2d6[_0x3a4a1e(0x4a6,_0x174953._0xe18bf3,_0x174953._0x4afb73,_0x174953._0x4b8cab)]),this[_0x3a4a1e(0x49c,0x4c2,0x51a,0x527)](_0x59a2d6,_0x11ec76);throw this[_0x178a90(_0x174953._0x3d51ed,0x590,_0x174953._0x23bdca,_0x174953._0x82224a)](_0x25fdf6);}throw _0x25fdf6;}}async*[_0x65d232(0x3a,-0x48,0xa,0x82)](_0x9c211a,_0x304b77){const _0x636bc2={_0x1afc6b:0x105,_0x1eb822:0x112,_0x43aecf:0x2b5,_0x4a90d9:0x242,_0x151cf5:0xd1,_0x56abef:0x235,_0x51710b:0x1c4,_0x25fa96:0x1a7,_0x11b399:0x100,_0x1782a8:0x31,_0x4b1bc7:0x82,_0x4c3315:0x3e,_0x522c41:0x3f,_0x168c37:0x278,_0x568f98:0x240,_0x5b6798:0x2a5,_0x46681c:0xf0,_0x507a49:0xea,_0x1b21c6:0x173,_0x329e85:0x101},_0x498432={_0x512a64:0x3b,_0x40b8ff:0xf3},_0x219799={_0x17c54e:0x2f2,_0x31e30c:0x16},_0x1ab333=this['applyModelDefaults'](_0x9c211a);if(this[_0x26b0e6(0x15d,0x1c6,_0x636bc2._0x1afc6b,_0x636bc2._0x1eb822)]!==_0x576061(-0x15f,-0x1f4,-0x1cf,-0x169)){yield*this['streamViaConfiguredSurface'](_0x1ab333,_0x304b77);return;}if(this[_0x576061(-0x2dc,-_0x636bc2._0x43aecf,-_0x636bc2._0x4a90d9,-0x1b9)](_0x1ab333)){yield*this[_0x26b0e6(0x15c,_0x636bc2._0x151cf5,0xbc,0x101)](_0x1ab333,_0x304b77);return;}function _0x576061(_0xe66cf6,_0x38ae8c,_0x4c178f,_0x505312){return _0x65d232(_0x4c178f- -_0x219799._0x17c54e,_0xe66cf6,_0x4c178f-0x1eb,_0x505312-_0x219799._0x31e30c);}function _0x26b0e6(_0x427bfd,_0x104da2,_0x4bd2a7,_0x4af319){return _0x65d232(_0x4af319- -0x19,_0x4bd2a7,_0x4bd2a7-_0x498432._0x512a64,_0x4af319-_0x498432._0x40b8ff);}try{yield*this[_0x576061(-_0x636bc2._0x56abef,-0x1fa,-_0x636bc2._0x51710b,-_0x636bc2._0x25fa96)](_0x1ab333,_0x304b77);}catch(_0x27dcdd){if(_0x27dcdd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x27dcdd[_0x26b0e6(_0x636bc2._0x11b399,0xc,-_0x636bc2._0x1782a8,_0x636bc2._0x4b1bc7)])){this[_0x26b0e6(_0x636bc2._0x4c3315,_0x636bc2._0x522c41,0x50,0x5d)](_0x1ab333[_0x576061(-_0x636bc2._0x168c37,-0x17e,-_0x636bc2._0x568f98,-_0x636bc2._0x5b6798)]),yield*this[_0x26b0e6(_0x636bc2._0x46681c,_0x636bc2._0x507a49,_0x636bc2._0x1b21c6,_0x636bc2._0x329e85)](_0x1ab333,_0x304b77);return;}throw this['mapApiError'](_0x27dcdd);}throw _0x27dcdd;}}async['getModels'](_0x1c8eac){const _0x2817fe={_0x51d291:0x454,_0x56dabb:0x468,_0x164488:0x197,_0x34878d:0x139,_0x53ad2f:0x13d,_0x22484f:0x466,_0x3ac720:0x2db,_0x526851:0xcf,_0x51cc97:0xa9,_0xab2dae:0x1e2,_0x483d24:0x1f9,_0x47c264:0x127,_0x422a60:0x18b,_0xc204f:0x191},_0x3d749e={_0x40e6cb:0x449,_0x19274f:0x3eb,_0x44ad7d:0x39c,_0xaec48e:0x286,_0x2c2b19:0x209,_0x18be51:0x2b0,_0x30db4b:0x144,_0x301cd3:0x163,_0x15f6cc:0x1fc},_0xc1ecab={_0x2852d0:0xa4},_0xe75df4=await this[_0x479172(_0x2817fe._0x51d291,0x472,_0x2817fe._0x56dabb,0x3cb)]({'path':_0x5844c2(_0x2817fe._0x164488,_0x2817fe._0x34878d,0x1d9,_0x2817fe._0x53ad2f),'method':'GET','signal':_0x1c8eac});if(!_0xe75df4['ok'])throw this[_0x479172(0x485,0x483,_0x2817fe._0x22484f,0x43b)](await this[_0x479172(_0x2817fe._0x3ac720,0x2b8,0x392,0x2f2)](_0xe75df4));function _0x5844c2(_0x10a4bf,_0x3346b1,_0x33c6ab,_0x2fa497){return _0x3c7c8d(_0x10a4bf- -0x168,_0x3346b1-0x112,_0x33c6ab-0x85,_0x33c6ab);}function _0x479172(_0x56e7d4,_0x3144da,_0x85a92d,_0x3f3d22){return _0x3c7c8d(_0x3f3d22-_0xc1ecab._0x2852d0,_0x3144da-0x172,_0x85a92d-0xcc,_0x85a92d);}const _0x544baa=await _0xe75df4[_0x5844c2(0x13b,0x79,_0x2817fe._0x526851,_0x2817fe._0x51cc97)](),_0x496310=(_0x544baa[_0x5844c2(_0x2817fe._0xab2dae,0x1be,_0x2817fe._0x483d24,_0x2817fe._0x47c264)]??[])[_0x5844c2(_0x2817fe._0x422a60,_0x2817fe._0xc204f,0xe1,0x21c)](_0x2c19b4=>{function _0x4fc8da(_0x15f6a2,_0x49b35e,_0x330287,_0x451d7c){return _0x5844c2(_0x15f6a2-0x34c,_0x49b35e-0x25,_0x330287,_0x451d7c-0x104);}function _0x146df2(_0x98e8ba,_0x3858f4,_0xba2a12,_0x2997a0){return _0x479172(_0x98e8ba-0x86,_0x3858f4-0x17b,_0x3858f4,_0xba2a12- -0x1a6);}const _0x3fd1c2=createModelInfo(_0x2c19b4);return _0x3fd1c2[_0x4fc8da(_0x3d749e._0x40e6cb,0x421,_0x3d749e._0x19274f,_0x3d749e._0x44ad7d)]&&this['modelEndpointCache'][_0x146df2(_0x3d749e._0xaec48e,_0x3d749e._0x2c2b19,0x213,_0x3d749e._0x18be51)](_0x3fd1c2['id'],_0x3fd1c2[_0x146df2(0x1fc,_0x3d749e._0x30db4b,_0x3d749e._0x301cd3,_0x3d749e._0x15f6cc)]),_0x3fd1c2;});return deduplicateModels(_0x496310);}};function _0x5737(){const _0xa6397d=['zwzMB3j0','mJaYmY0WnI0Wmq','l3jLC3bVBNnLCW','mJGWotG4AMLxy1bt','yxn5BMnjDgvYyxrVCG','Dg9VBf91C2vFzgvSDge','C29YDa','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C2vSzwn0u3vYzMfJzq','DgvZDa','qMfZAa','C2LNBMf0DxjLx2rLBhrH','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zMv0y2G','zMLUAxnO','C3rHDhvZ','zxjYB3i','Dgv4Da','ywDLBNq','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','C2LNBMfS','CMvZB2X2zujHC2vvCMW','yMvHCMvY','CMvHza','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','Bwf4vg9Rzw5Z','BwvZC2fNzq','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','yMXVy2TZ','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','nJeZoteZnMTNveT5va','C2HPzNq','BwfWqxbPrxjYB3i','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','ywrHChrPDMu','CMvXDwvZDe11Dgf0B3jZ','yxv0BW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','CMvZB2X2zxi','Dgv4Dc9LDMvUDc1ZDhjLyw0','B3bLBKfPrgvSzwDHDgu','Ahr0Chm6','Ec1HCgKTA2v5','DgHLBG','C3vYzMfJzq','yxbWBhLnB2rLBerLzMf1BhrZ','ndeXnJG1nuPhChb6sW','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','C3vTBwfYEv90zxH0','CMvHC29UAw5Nx3rLEhq','Dg9tDhjPBMC','B3v0Chv0x3rVA2vUCW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','Dgv4DfbHCNrZ','zMLUza','Dgv4Dej5sw5KzxG','C3bSAwnL','BNvTyMvY','AgvHzgvYCW','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','B3v0Chv0','C3rYzwfTshr0Cfn1CMzHy2u','ChjLDMLVDxnszxnWB25ZzuLK','ChjVDg9JB2W','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','y2f0y2G','A2LUza','C2vZC2LVBG','DhjPBvn0yxj0','w0rptKvD','B2f1DgGTDg9Rzw4','zNvUy3rPB25Fy2fSBa','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Aw5KzxHpzG','zw5KCg9PBNrZ','Aw5WDxq','yw50AhjVCgLJrgvSzwDHDgu','y2HHDgnTCgWT','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Aw50zxjSzwf2zwq','Aw5WDxrFC2nOzw1H','DhjPBq','DMLZAwjPBgL0Eq','Aw5WDxrFDgv4Da','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','z2v0t3bLBKfPrgvSzwDHDgu','yNvPBgrqyxj0AwfSt3v0Chv0','C3LZDgvT','B3bLBG','ywrKrxzLBNrmAxn0zw5LCG','Dg9bCgLfCNjVCG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','AgvHzgvYuMvZB2X2zxi','CMvZCg9UC2vuzxH0ugfYDhm','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','zgvSDge','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','yxjNDw1LBNrZ','Bwv0ywrHDge','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','zgvSzxrL','Cgf0Aa','mJaYns0Xmc0Wmq','Aw5WDxruB2TLBNm','CgvUzgLUzW','Dg9VBf9JywXSCW','Aw5KzxG','yxv0Ag9YAxPHDgLVBG','Aw5WDxrkC29U','y29UBMvJDf9MywLSzwq','CMvXDwvZDa','C3vWCg9YDgvKrw5KCg9PBNrZ','y3jLyxrLuMvXDwvZDa','CMvHzhLtDgf0zq','D3m6','CMvKywn0zwrFDgHPBMTPBMC','z2v0','y29UDgvUDc10ExbL','zNjVBuvUDhjPzxm','y3jLzgvUDgLHBa','C3vTBwfYEq','DgvSzw1LDhj5','ndLYuMHTqwS','Dg9VBenHBgXZqNLjBMrLEa','B2jQzwn0','DxnLC1jLC3bVBNnLC0fWAq','AxnbCNjHEq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw5JBhvKzunVBNrLBNruExbL','y29TCgXLDgu','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zg9Uzq','Aw5WDxrFDg9Rzw5Z','Aw52ywXPzgf0zq','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntaWoteWz1fLCwze','ChjLCgfYzunOyxrszxf1zxn0','C3rYAw5N','zxzLBNq6','B3v0Chv0x3rLEhq','Dg9VBa','Dg9VBenHBgXZ','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMLSDgvY','DMfSDwu','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C29Tzq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','AgfZ','CMvZCg9UC2uUzMfPBgvK','B3v0Chv0vg9Rzw5Z','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Bwv0Ag9K','C3rHCNrZv2L0Aa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','DNnJB2rLlZeUmta2lJe','zMv0y2HjBxbS','C2vZC2LVBKLK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvHC29U','DhjHBNnWB3j0','C29JA2v0','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','DxnLCI12AxnPyMXL','zMLUAxnOx3jLyxnVBG','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','ywjVCNq','Bw9Kzq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','BwvZC2fNzv9ZDgfYDa','ANnVBG','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Ahr0Cc1QC29U','BwvZC2fNzuLUzgv4','y2HHDenVBxbSzxrL','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','BxnNlq','DNnJB2rLlZeUmta0lJi','C3vTBwfYEv9PBMrLEa','C3rYAw5NAwz5','B3v0Chv0sw5KzxHuB0nHBgXjza','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2vszxnWB25Zzq','C3vYzMfJzxm','Ahr0Cc1ZC2u','C3rYzwfT','zgvJB2rL','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUy29TCgXLDgvK','CM9Szq','zNvUy3rPB24','Dg9Rzw4','yxnZAxn0yw50lq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29UC3vTzuv2zw50','CMvHC29UAw5N','zw5Kx3r1CM4','Dg9VBhm','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','zgLZywjSzwq','y29UDgvUDf9KzwX0yq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','C3vWCg9YDgvKx2vUzhbVAw50CW','C2vUza','BM93','y29Kzq','zNjVBq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','y2fSBeLKvg9pDxrWDxrjBMrLEa','BwvZC2fNzuLK','v2vIu29JA2v0','CMvZCg9UC2vjza','ChjVBxb0x3rVA2vUCW','C2LNBMf0DxjL','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','y2HVAwnLCW','AxrLBq','yw50AhjVCgLJx3rOAw5RAw5N','ota0ndK3Chr6B1Ph','yxbP','l2nOyxqVy29TCgXLDgLVBNm','CgfYC2u','C3rVCfjLyxnVBG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','y29WAwXVDc1JAgf0lZaUmZeUmW','BMfTzq','CMvZCg9UC2vZugf0Aa','C2vZC2LVBK1HBMfNzxi','B3v0Chv0sw5KzxG','Aw5JBhvKzxm','Bw9KzwXfBMrWB2LUDenHy2HL','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B3bLBMfPlxjLC3bVBNnLCW','D2vIu29JA2v0rMfJDg9YEq','yxnZAxn0yw50','y2XVC2u','Bw9JAW','y2fJAgvK','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZCg9UC2vtB2nRzxq','z2L0AhvIqxbPvxjS','zgf0ytO','Dg9VBenHBgXpCMrLCG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y29UDgvUDf9IBg9JA19ZDgfYDa','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','zwrPDg9YugX1z2LUvMvYC2LVBG','BwfW','t3bLBKfjiefqssbLCNjVCIa','CMvHC29UAw5Nx3rVA2vUCW','yNvKz2v0vg9Rzw5Z','ywjVCNrLza','D3nZoG','rgLYzwn0igfUC3DLCJOG','qMvHCMvYia','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','y3jLyxrLu3rYzwfTugfYC2vY','CMvWBgfJzq','l21VzgvSCW','CMvZB2X2zunYzwrLBNrPywW','y29UC3vTzvDLyLnVy2TLDev2zw50','B3v0Chv0x2LUzgv4','zw5HyMXLza','mJK5nJi0r2D4D2PX','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','Dg9VBc1JywXSlq','ywnJzxb0','y29UBMvJDgLUzW','yxbPs2v5','C2L6zq','AxrLBv9Pza','ChjVDMLKzxjtDgf0zq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','ChjVEhK','y29TCgXLDgLVBL90B2TLBNm','CMvZB2X2zq','y29UDgvUDf9PBMrLEa','yM9KEq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2v0','z3b0ltrV','CMvZCg9UC2vtB2nRzxrtDhjLyw0','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','C2XPy2u','D2vIC29JA2v0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y29TCgXLDgvwAwftDxjMywnL','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','yw50AhjVCgLJlxzLCNnPB24','y2HHDenVBxbSzxrPB25Zugf0Aa','y2fWywjPBgL0AwvZ','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHC29UAw5NsxrLBxm','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','zw50CMLLCW','CMvXDwvZDhm','DxnHz2u','C2vUzfjHD1jLCxvLC3q','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','BgfZDfjLC3bVBNnLswq','Bw9KzwW','y29UC3vTzvnZzuv2zw50','ChvZAa','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','DMfSDwvZ','AxneB25L','l3yXl21LC3nHz2vZ','Dgv4Df9KzwX0yq','yMfZzvvYBa','C3bSAxq','sw52ywXPzcbYzxf1zxn0oIa','BwvZC2fNzxm','y29UDgvUDa','y29TCgXLDgvtDxjMywnL','t1bftG','B3bLBMfPlxjLC3bVBNnLCY13CW','ChjVDMLKzxjbzgfWDgvY','ChjVDg9JB2XwzxjZAw9U','z2v0qw50AhjVCgLJrgvSzwDHDgu','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zw5JCNLWDgvKx2nVBNrLBNq','y3jLyxrLsgvHzgvYCW','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','yxbWBgLJyxrPB24VANnVBG','ntG0mZqZmhfysgrftG','u3vYzMfJzsa','CMvZCc0','CgfYDgLHBf9QC29U','zwrPDg9YvMvYC2LVBG','m2H4A0DpuW','zgvZy3jPChrPB24','Aw5PDgLHBev2zw50','zgf0yq','BgLTAxrZ','DgHPBMTPBMC','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y2fSBf9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','zxzLBNq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3rVCf9YzwfZB24','C3rYzwfTvMLHu3vYzMfJzq','y2HHDfn0CMvHBq','y29TCgXLDgvK','yxv0AfnJAgvTzq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','B3bLBMfPx3jLyxnVBMLUzW','BgvUz3rO','z2v0u3vYzMfJzq','DhLWzq','ywnJzxnZvg9Rzw4','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','zMLUywXszxnWB25Zzq','zw5JCNLWDgvKq29UDgvUDa','AM9PBG','C3rYzwfTvMLHuM91DgvY','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','CM91DgvY','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','ue9tva','Dg9VBfvZzvn0yxj0rw1PDhrLza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvZzxq','zgLZCgXHEq','C2vZC2LVBI10B2TLBG','CMvMDxnHBa','C3vTBwfYEuj5sw5KzxG','Dg9VBf91C2u'];_0x5737=function(){return _0xa6397d;};return _0x5737();}function createHeaders(_0x1e6d7e){const _0x4e1978={_0x2233c9:0x21e};function _0x111c87(_0x496366,_0x1449d2,_0x5126b4,_0x3eda49){return _0x3c7c8d(_0x1449d2- -0x62,_0x1449d2-0x49,_0x5126b4-0xbe,_0x496366);}const _0x1aade1=new Headers();for(const [_0x48c911,_0x2d7af2]of Object[_0x111c87(0x32c,0x2c2,_0x4e1978._0x2233c9,0x277)](_0x1e6d7e)){_0x1aade1['set'](_0x48c911,_0x2d7af2);}return _0x1aade1;}async function fetchRawResponse(_0x2a4a0c){const _0x31ca0f={_0x2cfd19:0x4cc,_0x2bbb04:0x377,_0x52b705:0x346,_0x21fb95:0x35e,_0x4e7728:0x339,_0x2fa985:0x4f9,_0x431346:0x2a1,_0x2a4e35:0x212,_0xf576bf:0x3d7,_0x29a231:0x435},_0x3dea12={_0x3d1360:0x26d},_0x76a0b6={_0x7e31fc:0x334,_0x44886d:0x106};function _0x19bf15(_0x2121de,_0x5547a4,_0x2a4d18,_0x2f274b){return _0x65d232(_0x2a4d18-_0x76a0b6._0x7e31fc,_0x2f274b,_0x2a4d18-_0x76a0b6._0x44886d,_0x2f274b-0x170);}const _0x31cbaf=_0x2a4a0c[_0x19bf15(_0x31ca0f._0x2cfd19,0x3a4,0x43e,0x4b3)]??globalThis[_0x28db8c(_0x31ca0f._0x2bbb04,0x36c,_0x31ca0f._0x52b705,0x398)];function _0x28db8c(_0x5914ac,_0x4a7024,_0x4506f6,_0x1c8bf4){return _0x65d232(_0x5914ac-_0x3dea12._0x3d1360,_0x4506f6,_0x4506f6-0xad,_0x1c8bf4-0x1c);}return _0x31cbaf(_0x2a4a0c['url'],{'method':_0x28db8c(_0x31ca0f._0x21fb95,_0x31ca0f._0x4e7728,0x34b,0x3aa),'headers':createHeaders(_0x2a4a0c[_0x19bf15(_0x31ca0f._0x2fa985,0x4e4,0x46d,0x438)]),'body':JSON[_0x28db8c(_0x31ca0f._0x431346,0x219,0x219,_0x31ca0f._0x2a4e35)](_0x2a4a0c[_0x19bf15(0x476,0x3d4,0x3cf,_0x31ca0f._0xf576bf)]),'signal':_0x2a4a0c[_0x19bf15(_0x31ca0f._0x29a231,0x43c,0x446,0x4cd)]});}async function fetchJsonResponse(_0x5ac658){const _0x4ca1d0={_0x374a02:0x4d,_0x8f03c5:0xae,_0x277572:0x182,_0x4421f7:0x287,_0x299944:0x232,_0x5eccf8:0xba,_0x392c4f:0x75,_0x6a07dd:0xab,_0x47cadc:0x39,_0x2b5b06:0x178,_0x59c1ef:0x1eb,_0x55803d:0x2e1,_0x17d9ae:0x27c},_0x15a1f4={_0x748e45:0x340,_0x36bb51:0x11e},_0x58ae62={_0xdc7c6c:0x4fc,_0x54ceb6:0x82,_0x36df58:0x1ae},_0x25af48=await fetchRawResponse(_0x5ac658);function _0x57d486(_0x3f6b66,_0x3f67da,_0x32cb4f,_0x54794d){return _0x3c7c8d(_0x54794d- -_0x58ae62._0xdc7c6c,_0x3f67da-_0x58ae62._0x54ceb6,_0x32cb4f-_0x58ae62._0x36df58,_0x3f6b66);}function _0x16fa0b(_0x1c11c2,_0x265f89,_0x311b7a,_0x18e5f5){return _0x3c7c8d(_0x18e5f5- -_0x15a1f4._0x748e45,_0x265f89-0x1da,_0x311b7a-_0x15a1f4._0x36bb51,_0x1c11c2);}if(!_0x25af48['ok']){const _0x25f7b9=await _0x25af48[_0x16fa0b(0xae,0xca,-_0x4ca1d0._0x374a02,0x46)](),_0x2f4148=_0x25f7b9['trim']()||_0x25af48[_0x16fa0b(0x2a,0xc5,-_0x4ca1d0._0x8f03c5,0x13)]||_0x57d486(-_0x4ca1d0._0x277572,-0x1cd,-_0x4ca1d0._0x4421f7,-_0x4ca1d0._0x299944);throw new Error(_0x16fa0b(_0x4ca1d0._0x5eccf8,_0x4ca1d0._0x392c4f,_0x4ca1d0._0x6a07dd,_0x4ca1d0._0x47cadc)+_0x25af48[_0x57d486(-0x1a0,-0x11b,-0x176,-_0x4ca1d0._0x2b5b06)]+':\x20'+_0x2f4148);}return await _0x25af48[_0x57d486(-_0x4ca1d0._0x59c1ef,-_0x4ca1d0._0x55803d,-_0x4ca1d0._0x17d9ae,-0x259)]();}function findLastMessage(_0x46a9c7,_0x50da0d){const _0xd7c4c1={_0x24c746:0x16e,_0x40e404:0x106,_0x142e56:0x27d,_0x21167b:0x2a8,_0x41907c:0x205},_0x2b2f18={_0xe9da65:0x284},_0x32856d={_0x2ce969:0xc3};function _0x3835d5(_0x5dcc39,_0x592ca2,_0x14fd87,_0x4ec4b8){return _0x3c7c8d(_0x5dcc39- -0x3a,_0x592ca2-_0x32856d._0x2ce969,_0x14fd87-0x1ef,_0x592ca2);}function _0x12723b(_0x4fc379,_0x2695eb,_0x781f9c,_0x59fc6d){return _0x65d232(_0x781f9c- -_0x2b2f18._0xe9da65,_0x2695eb,_0x781f9c-0x102,_0x59fc6d-0x1ad);}for(let _0x25e17c=_0x46a9c7[_0x12723b(-0x114,-_0xd7c4c1._0x24c746,-0x19f,-_0xd7c4c1._0x40e404)]-0x1;_0x25e17c>=0x0;_0x25e17c-=0x1){if(_0x46a9c7[_0x25e17c][_0x3835d5(_0xd7c4c1._0x142e56,0x29e,_0xd7c4c1._0x21167b,_0xd7c4c1._0x41907c)]===_0x50da0d)return _0x46a9c7[_0x25e17c];}return void 0x0;}function hasTool(_0x1e7a2f,_0x5425f6){const _0x2d4747={_0x329c60:0x258,_0x57caad:0x2bd,_0x5941f6:0x69},_0x307dae={_0x28c888:0x95,_0x557827:0x56,_0x586c0c:0x182};function _0x5f5750(_0x3e5c4f,_0x39399f,_0x227a06,_0x1bf98e){return _0x65d232(_0x39399f- -_0x307dae._0x28c888,_0x227a06,_0x227a06-_0x307dae._0x557827,_0x1bf98e-_0x307dae._0x586c0c);}function _0x32cd36(_0x1d2691,_0x568c41,_0x16fdb0,_0x9c2ac9){return _0x3c7c8d(_0x16fdb0- -0x4bb,_0x568c41-0x1f4,_0x16fdb0-0x105,_0x1d2691);}return _0x1e7a2f[_0x32cd36(-_0x2d4747._0x329c60,-_0x2d4747._0x57caad,-0x1fc,-0x274)][_0x5f5750(0x19,-0x83,0xe,-_0x2d4747._0x5941f6)](_0x8f70fb=>_0x8f70fb[_0x5f5750(0xc,-0x31,-0x77,-0xae)]===_0x5425f6);}function createMockResponse(_0x7ffaad,_0x480baa,_0x5e14c0,_0x16eb91){return{'id':_0x7ffaad,'content':_0x480baa,'stopReason':_0x5e14c0,'usage':_0x16eb91};}var MockModel=class{['model'];['maxTokens'];[_0x65d232(0xad,0xaf,0x6a,0x3c)]=[];[_0x65d232(0x45,0xf2,-0x14,0x80)];constructor(_0x2e7919={}){const _0x15d7a5={_0x5de02e:0x1e3,_0x4a7cf1:0x98,_0x114f8a:0x154,_0x1f7878:0xfa,_0x315fb3:0x4a,_0x4a2594:0xa8,_0x16c639:0x109,_0x5911d6:0x202,_0x337960:0x187,_0x36b85f:0x146,_0x442bbe:0xd0,_0x4c5c51:0x15d},_0x314812={_0x5f0d28:0x160},_0x2e131a={_0x4a95f6:0x498};function _0x241f93(_0x38fe3c,_0x12f662,_0x31f4e7,_0x27a93c){return _0x3c7c8d(_0x27a93c- -_0x2e131a._0x4a95f6,_0x12f662-0x34,_0x31f4e7-0xd8,_0x31f4e7);}this[_0x2c4769(0x16d,0x13d,_0x15d7a5._0x5de02e,_0x15d7a5._0x4a7cf1)]=_0x2e7919['model']??_0x2c4769(_0x15d7a5._0x114f8a,_0x15d7a5._0x1f7878,0x56,_0x15d7a5._0x315fb3),this[_0x241f93(-0x84,-0xd2,-_0x15d7a5._0x4a2594,-_0x15d7a5._0x16c639)]=_0x2e7919['maxTokens']??0x4000;function _0x2c4769(_0xf6c9ab,_0xd2590d,_0x218b4f,_0x2f9567){return _0x3c7c8d(_0xd2590d- -0x1ed,_0xd2590d-_0x314812._0x5f0d28,_0x218b4f-0x12c,_0x2f9567);}this[_0x241f93(-0x174,-_0x15d7a5._0x5911d6,-0x21d,-0x1db)]=_0x2e7919[_0x2c4769(_0x15d7a5._0x337960,0xd0,_0x15d7a5._0x36b85f,0x1d)]?structuredClone(_0x2e7919[_0x2c4769(0xfe,_0x15d7a5._0x442bbe,0x145,_0x15d7a5._0x4c5c51)]):void 0x0;}async[_0x3c7c8d(0x277,0x22b,0x27d,0x2be)](_0x1a11fb,_0x86dbe8){const _0x557329={_0x488a53:0x29c,_0x19f232:0x32a,_0x1684c7:0xa5,_0x186a51:0x4f,_0x582515:0x110,_0x590b41:0xce,_0x5aba9d:0x195,_0x3d4c7f:0x178,_0x5e1494:0x30b,_0x2dec99:0x32d,_0x49458f:0x1f9,_0x56e3a9:0x188,_0x6053e6:0xe4,_0x264a11:0x13d,_0x167782:0x10d,_0x120d13:0x10c,_0x368929:0x1f7,_0x42149d:0x246,_0x1512f3:0x1c7,_0x516e93:0x2e7,_0x1016f4:0x319,_0x3d6358:0x35d,_0x7cb891:0x1b7,_0x15748d:0x15a,_0x2c8df6:0x1c5,_0x47c62b:0x1d2,_0x10e536:0x322,_0x5761ec:0xff,_0x532ba9:0x35e,_0x1712a4:0x3d7,_0x114bc5:0x3e7,_0x26f818:0xa9,_0x28386b:0x14c},_0x2be839={_0x32c1ee:0x21,_0x468ed0:0x16a,_0xecf2e2:0xcb},_0x3d5431={_0x4c74bd:0x1ad,_0x2207f7:0xa6},_0x29fe1a={...structuredClone(_0x1a11fb),..._0x1a11fb[_0x52d9db(0x29c,0x320,0x357,0x31e)]===void 0x0&&this[_0x52d9db(_0x557329._0x488a53,0x342,_0x557329._0x19f232,0x317)]!==void 0x0?{'reasoning':structuredClone(this[_0x288b83(_0x557329._0x1684c7,_0x557329._0x186a51,0xdb,_0x557329._0x582515)])}:{}};function _0x288b83(_0xe53488,_0x4fbdba,_0x1ea7e7,_0x10e6be){return _0x3c7c8d(_0x10e6be- -_0x3d5431._0x4c74bd,_0x4fbdba-0x1ba,_0x1ea7e7-_0x3d5431._0x2207f7,_0x1ea7e7);}this[_0x288b83(0x196,_0x557329._0x590b41,_0x557329._0x5aba9d,_0x557329._0x3d4c7f)][_0x52d9db(_0x557329._0x5e1494,0x25a,_0x557329._0x2dec99,0x24d)](_0x29fe1a);const _0x558d6a=findLastMessage(_0x29fe1a[_0x288b83(0x138,0x11f,_0x557329._0x49458f,_0x557329._0x56e3a9)],'user'),_0x29319b=getToolResultBlocks(_0x558d6a),_0x5115c7=_0x288b83(0x121,_0x557329._0x6053e6,_0x557329._0x264a11,_0x557329._0x167782)+this[_0x288b83(0x15f,_0x557329._0x120d13,_0x557329._0x368929,0x178)][_0x288b83(_0x557329._0x42149d,0x250,0x1ab,0x1b0)];if(_0x29319b['length']>0x0)return createMockResponse(_0x5115c7,[{'type':_0x288b83(0x242,0x21b,0x1c4,0x1d9),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x29319b[0x0][_0x288b83(0x158,0x1d3,_0x557329._0x1512f3,0x189)]}],_0x52d9db(0x29d,_0x557329._0x516e93,_0x557329._0x1016f4,0x22a),{'inputTokens':0x78,'outputTokens':0x28});const _0x223593=getTextFromMessage(_0x558d6a);if(/list .*files|workspace/i[_0x52d9db(_0x557329._0x3d6358,0x365,0x332,0x316)](_0x223593)&&hasTool(_0x29fe1a,_0x288b83(_0x557329._0x7cb891,_0x557329._0x15748d,_0x557329._0x2c8df6,_0x557329._0x47c62b)))return createMockResponse(_0x5115c7,[{'type':'tool_use','id':_0x52d9db(0x2e5,0x2d9,0x2f3,0x322)+this[_0x52d9db(0x304,0x25a,0x287,_0x557329._0x10e536)][_0x288b83(0x100,0x143,_0x557329._0x5761ec,0x1b0)],'name':_0x52d9db(_0x557329._0x532ba9,_0x557329._0x1712a4,0x3a7,_0x557329._0x114bc5),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x52d9db(_0x168f08,_0x4db2da,_0x526b10,_0x29f195){return _0x3c7c8d(_0x168f08- -_0x2be839._0x32c1ee,_0x4db2da-_0x2be839._0x468ed0,_0x526b10-_0x2be839._0xecf2e2,_0x526b10);}return createMockResponse(_0x5115c7,[{'type':'text','text':_0x288b83(0x135,0x155,_0x557329._0x26f818,_0x557329._0x28386b)+_0x223593}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x4538b7,_0x47a6cf){const _0x4855af={_0x6e6d6f:0xfa,_0x312215:0x1af,_0x2add5b:0x199,_0x7b1de3:0x15d,_0x54a770:0xeb,_0x269675:0x9a,_0x4eefce:0xd1,_0x390a5e:0xb7,_0x40f0a7:0xbc,_0x2a1379:0x118,_0x3665bb:0xb1,_0x478a58:0x17,_0x4003ee:0x6b,_0x3ff48b:0xe8,_0x2e0c0b:0xbd,_0x4daa48:0x27,_0x3a3c40:0xd7,_0x70d1aa:0x5c,_0x387c01:0x63,_0x1c5a73:0x1c,_0x523d39:0xd2,_0x10d6a6:0x30,_0x503480:0x1d,_0x52e176:0x97,_0x1961e8:0xae,_0x4e49ba:0x38,_0x5051d1:0x4e},_0x24b096={_0x2a6b05:0x259};function _0x656686(_0x5c5963,_0x213a15,_0x3fbedd,_0x212152){return _0x25f1(_0x5c5963- -_0x24b096._0x2a6b05,_0x212152);}function _0x1a2c88(_0x8872b8,_0x50cbcc,_0x33b9b4,_0x9f47c){return _0x25f1(_0x50cbcc- -0x267,_0x9f47c);}const _0x39323a=_0x4538b7();while(!![]){try{const _0x2e5541=parseInt(_0x656686(-_0x4855af._0x6e6d6f,-0x13a,-0x72,-_0x4855af._0x312215))/0x1*(-parseInt(_0x1a2c88(-_0x4855af._0x2add5b,-0x107,-0x156,-0x13a))/0x2)+parseInt(_0x1a2c88(-_0x4855af._0x7b1de3,-0xc5,-_0x4855af._0x54a770,-0xca))/0x3*(parseInt(_0x1a2c88(-_0x4855af._0x269675,-_0x4855af._0x4eefce,-_0x4855af._0x390a5e,-_0x4855af._0x40f0a7))/0x4)+-parseInt(_0x1a2c88(-0x36,-0xe4,-_0x4855af._0x2a1379,-_0x4855af._0x3665bb))/0x5*(parseInt(_0x656686(_0x4855af._0x478a58,0x5,_0x4855af._0x4003ee,0x5b))/0x6)+parseInt(_0x1a2c88(-0x16d,-_0x4855af._0x3ff48b,-_0x4855af._0x2e0c0b,-_0x4855af._0x4daa48))/0x7*(-parseInt(_0x1a2c88(_0x4855af._0x3a3c40,0x2f,-0x36,-_0x4855af._0x269675))/0x8)+-parseInt(_0x656686(-_0x4855af._0x70d1aa,_0x4855af._0x387c01,-0x4,-0xee))/0x9*(parseInt(_0x656686(-0x8c,_0x4855af._0x1c5a73,0xd,-0x7c))/0xa)+-parseInt(_0x1a2c88(-0x6e,-0x1f,-_0x4855af._0x523d39,-_0x4855af._0x10d6a6))/0xb+-parseInt(_0x656686(-_0x4855af._0x503480,-0x21,_0x4855af._0x52e176,-_0x4855af._0x1961e8))/0xc*(-parseInt(_0x1a2c88(-_0x4855af._0x4e49ba,0x1d,0xa5,_0x4855af._0x5051d1))/0xd);if(_0x2e5541===_0x47a6cf)break;else _0x39323a['push'](_0x39323a['shift']());}catch(_0x24eb97){_0x39323a['push'](_0x39323a['shift']());}}}(_0x35dd,0xb8971));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE=_0x2b6123(0x28b,0x35b,0x2b7,0x22c),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x2b6123(0x1d5,0x1b7,0x239,0x245);function parseToolInput(_0x59edd8){try{return JSON['parse'](_0x59edd8);}catch{return _0x59edd8;}}function resolveReasoningVisibility(_0x19c802){const _0x37a579={_0x4caea3:0x2ca,_0x255b63:0x381,_0x5076cd:0x3c4},_0x5f185f={_0x208bd5:0x14e,_0x106891:0x76},_0x3d3e8c={_0x5cba3c:0x1cd,_0x543a28:0x9f,_0x3c3978:0x71};function _0x3533b0(_0x9cfff0,_0x4700cb,_0x4278d2,_0x24408c){return _0x2b6123(_0x9cfff0,_0x4700cb-_0x3d3e8c._0x5cba3c,_0x4278d2- -_0x3d3e8c._0x543a28,_0x24408c-_0x3d3e8c._0x3c3978);}function _0x56eec5(_0x195ede,_0x24b2c8,_0x297908,_0x1dac19){return _0x2b6123(_0x1dac19,_0x24b2c8-_0x5f185f._0x208bd5,_0x297908-0x86,_0x1dac19-_0x5f185f._0x106891);}return _0x19c802[_0x3533b0(0x2e0,0x2fc,_0x37a579._0x4caea3,_0x37a579._0x255b63)]?.[_0x56eec5(_0x37a579._0x5076cd,0x3ea,0x373,0x2f5)]??'user-visible';}function isUserVisibleThinking(_0x436f18){const _0x34e238={_0x475d89:0x253,_0x5a1475:0x19d,_0x7d10ee:0xb,_0x1809d9:0x37,_0x182477:0x32},_0x2d9917={_0xbfd783:0x1ee},_0x1febf0={_0x2dda8d:0x13c};function _0x453a1e(_0x18830e,_0x2280b7,_0x4e2942,_0x3f81e0){return _0x2b6123(_0x18830e,_0x2280b7-_0x1febf0._0x2dda8d,_0x2280b7- -0x2a9,_0x3f81e0-0x9d);}const _0x2e3f26=resolveAnthropicThinkingConfig(_0x436f18['reasoning']);function _0x2fa5c3(_0x133f0e,_0x2e2e39,_0x578672,_0x592b6d){return _0x2b6123(_0x2e2e39,_0x2e2e39-0x132,_0x133f0e- -0x4ba,_0x592b6d-_0x2d9917._0xbfd783);}return _0x2e3f26!==void 0x0&&_0x2e3f26[_0x2fa5c3(-0x1fb,-0x282,-_0x34e238._0x475d89,-_0x34e238._0x5a1475)]!=='disabled'&&resolveReasoningVisibility(_0x436f18)===_0x453a1e(-_0x34e238._0x7d10ee,0x2d,-_0x34e238._0x1809d9,-_0x34e238._0x182477);}function createAnthropicThinkingBody(_0x1ffc19){const _0x2b8257={_0x102cc2:0x200,_0x4607d9:0x1d5,_0x32fdd0:0x188,_0xe7cf63:0x10d,_0x24e76b:0x60,_0xf7d6ee:0x189,_0x422672:0xec,_0x18fc6d:0x173,_0x5c1960:0x11c,_0xfc9943:0x1eb,_0x3ec95a:0x125,_0x205618:0x10c,_0x6832b4:0x18c,_0x54d168:0x118,_0x223489:0x1c6,_0x2ab71b:0x1e0,_0x3f8818:0x200,_0x28dba1:0x1da,_0x1d3b6f:0x1a0,_0x27618a:0x143,_0x186cb9:0xc9,_0x261b63:0x23e,_0x27d00d:0x1f0,_0x333d2f:0x1ff,_0x453be5:0x246,_0x536334:0xb6,_0x30e910:0x9d,_0x59689f:0x118},_0x57153e={_0x35eff2:0xcc,_0x431d62:0x5ef,_0x7732c6:0x9a},_0x2dcd3={_0x26db6e:0x197};function _0x3debaf(_0x4611f3,_0x391cd1,_0x5135a9,_0x52455c){return _0x2b6123(_0x5135a9,_0x391cd1-0x15b,_0x391cd1- -0x1dc,_0x52455c-_0x2dcd3._0x26db6e);}function _0x131355(_0x358c2c,_0x338a67,_0x2648f0,_0x17970f){return _0x38c793(_0x2648f0,_0x338a67-_0x57153e._0x35eff2,_0x17970f- -_0x57153e._0x431d62,_0x17970f-_0x57153e._0x7732c6);}const _0xa1db61=resolveAnthropicThinkingConfig(_0x1ffc19[_0x3debaf(0x1bc,0x18d,0x111,0x118)]);if(!_0xa1db61||_0xa1db61[_0x131355(-0x1f9,-0x235,-0x29a,-_0x2b8257._0x102cc2)]===_0x3debaf(0x22d,_0x2b8257._0x4607d9,_0x2b8257._0x32fdd0,0x139))return{};const _0x37f518=_0xa1db61[_0x3debaf(0xfd,_0x2b8257._0xe7cf63,0x42,_0x2b8257._0x24e76b)]??(isUserVisibleThinking(_0x1ffc19)?_0x131355(-_0x2b8257._0xf7d6ee,-_0x2b8257._0x422672,-_0x2b8257._0x18fc6d,-_0x2b8257._0x5c1960):_0x3debaf(0xc7,0x160,0x1e3,_0x2b8257._0xfc9943)),_0x3d797a=_0xa1db61[_0x3debaf(_0x2b8257._0x3ec95a,_0x2b8257._0x205618,0x154,_0x2b8257._0x6832b4)]?{'anthropic-beta':_0x131355(-_0x2b8257._0x54d168,-0x287,-_0x2b8257._0x223489,-_0x2b8257._0x2ab71b)}:void 0x0;if(_0xa1db61[_0x131355(-0x183,-0x254,-0x19a,-_0x2b8257._0x3f8818)]===_0x131355(-0x18e,-0x15d,-_0x2b8257._0x28dba1,-_0x2b8257._0x1d3b6f))return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':_0x3debaf(0x152,_0x2b8257._0x27618a,_0x2b8257._0x186cb9,0xd4),'budget_tokens':_0xa1db61[_0x3debaf(0x1e4,0x173,_0x2b8257._0x261b63,0x197)],'display':_0x37f518}};return{..._0x3d797a?{'headers':_0x3d797a}:{},'thinking':{'type':'adaptive',..._0xa1db61[_0x131355(-_0x2b8257._0x27d00d,-0x2f5,-_0x2b8257._0x333d2f,-_0x2b8257._0x453be5)]?{'effort':_0xa1db61[_0x3debaf(_0x2b8257._0x536334,_0x2b8257._0x30e910,_0x2b8257._0x59689f,0x150)]}:{},'display':_0x37f518}};}function toAnthropicRequestContent(_0x37f43b){const _0x4b2409={_0x3f6a27:0x694,_0x3d0948:0x699,_0x99fe26:0x52a,_0x56b0d8:0x505,_0x2e2ad9:0x4e6,_0x594f55:0x487,_0x504043:0x57c,_0xfa2b32:0x3df,_0x1d9612:0x47d,_0x55108c:0x430,_0x265166:0x3f0,_0x3892db:0x3ed,_0x17d05c:0x440,_0x56ba92:0x4ad,_0x4cb6dd:0x49b,_0x2e51bf:0x435,_0x98140:0x491,_0x4f8301:0x3a0,_0x26c3a3:0x46b,_0x44d2d6:0x31c,_0x4bb8f3:0x5f5,_0x194a33:0x5dc,_0x1d2aae:0x5b6,_0x564e3c:0x4cc,_0x14c1a6:0x4e0,_0x15d006:0x4bb,_0x37951c:0x499,_0xa82966:0x46b,_0x44d1c6:0x4cb,_0xaf6b86:0x5f4,_0x1a280f:0x4bb,_0x15ce00:0x568,_0x487d7c:0x5b9,_0x326630:0x4f5},_0x389a1e={_0x308038:0x10f};if(_0x37f43b['role']===_0x55b63f(_0x4b2409._0x3f6a27,0x636,_0x4b2409._0x3d0948,0x682)&&_0x37f43b[_0x1ab11a(_0x4b2409._0x99fe26,_0x4b2409._0x56b0d8,_0x4b2409._0x2e2ad9,0x487)]?.['anthropicAssistantContent'])return structuredClone(_0x37f43b[_0x1ab11a(0x47f,0x505,_0x4b2409._0x594f55,_0x4b2409._0x504043)][_0x1ab11a(_0x4b2409._0xfa2b32,_0x4b2409._0x1d9612,_0x4b2409._0x55108c,_0x4b2409._0x265166)]);function _0x55b63f(_0x315e0e,_0x1a0f38,_0x28ff20,_0x4f3808){return _0x2b6123(_0x4f3808,_0x1a0f38-0x117,_0x1a0f38-0x2c8,_0x4f3808-0xbd);}const _0x1d6b53=[];function _0x1ab11a(_0x44306d,_0xfe052d,_0x596ef7,_0x3ec3fd){return _0x38c793(_0x3ec3fd,_0xfe052d-_0x389a1e._0x308038,_0xfe052d-0x35,_0x3ec3fd-0x18d);}for(const _0x5c771c of normalizeContent(_0x37f43b[_0x1ab11a(_0x4b2409._0x3892db,_0x4b2409._0x17d05c,_0x4b2409._0x56ba92,0x3f3)])){if(_0x5c771c['type']===_0x1ab11a(_0x4b2409._0x4cb6dd,_0x4b2409._0x2e51bf,0x3e8,_0x4b2409._0x98140))continue;if(_0x5c771c['type']===_0x1ab11a(0x373,_0x4b2409._0x4f8301,_0x4b2409._0x26c3a3,_0x4b2409._0x44d2d6)){_0x1d6b53[_0x55b63f(_0x4b2409._0x4bb8f3,_0x4b2409._0x194a33,0x593,_0x4b2409._0x1d2aae)]({'type':_0x1ab11a(0x572,_0x4b2409._0x564e3c,_0x4b2409._0x14c1a6,0x593),'thinking':_0x5c771c['thinking'],'signature':_0x5c771c[_0x1ab11a(0x443,_0x4b2409._0x15d006,_0x4b2409._0x37951c,_0x4b2409._0xa82966)]});continue;}if(_0x5c771c[_0x55b63f(_0x4b2409._0x44d1c6,0x587,0x572,_0x4b2409._0xaf6b86)]===_0x55b63f(_0x4b2409._0x1a280f,_0x4b2409._0x15ce00,_0x4b2409._0x487d7c,0x5ca)){_0x1d6b53['push']({'type':'redacted_thinking','data':_0x5c771c['data']});continue;}_0x1d6b53[_0x1ab11a(0x51c,0x479,_0x4b2409._0x326630,0x41d)](structuredClone(_0x5c771c));}return _0x1d6b53;}function createAnthropicRequest(_0x5f15c9,_0x51e727){const _0x428363={_0x20dfd0:0x6c,_0x306262:0x73,_0x5c0a1f:0xef,_0x53877d:0x3a,_0x2f0216:0xf,_0x3caf6f:0xc1,_0x11a5dd:0x89,_0x6996e6:0x8e,_0x3b9524:0xd,_0x521bb0:0x8d,_0x5b058b:0x11,_0x23c68c:0x9a},_0x140147={_0x5d0313:0x4f2,_0x1bea98:0x4e4,_0x456d64:0x58c},_0x2cd9b8={_0x124f1b:0x4a9},_0x1e0ba5={_0xba0747:0x12b},_0xafc13e={_0x1c5334:0x46},_0xb676d0=toProviderModelRequest(_0x5f15c9);function _0x53f91a(_0x80de,_0x3cbb48,_0x3533ee,_0x58cef8){return _0x2b6123(_0x80de,_0x3cbb48-_0xafc13e._0x1c5334,_0x3533ee- -0x29b,_0x58cef8-0xd9);}const _0x4d6e17=createAnthropicThinkingBody(_0x5f15c9);function _0x229293(_0x43579a,_0x1940b9,_0xf5812c,_0x220e89){return _0x2b6123(_0x220e89,_0x1940b9-0x4a,_0xf5812c- -0x2d9,_0x220e89-_0x1e0ba5._0xba0747);}return{'accept':_0x51e727?_0x229293(-0x4d,_0x428363._0x20dfd0,_0x428363._0x306262,0x117):_0x53f91a(-0x69,0xab,-0x1a,-0xa2),'body':{..._0xb676d0,'messages':_0x5f15c9[_0x229293(-_0x428363._0x5c0a1f,-0xc3,-_0x428363._0x53877d,-0x20)]['map'](_0x1632ae=>{function _0x1a47d7(_0x1fa77b,_0x12db7d,_0x23029f,_0x180def){return _0x53f91a(_0x1fa77b,_0x12db7d-0xcd,_0x12db7d-_0x2cd9b8._0x124f1b,_0x180def-0x93);}return{'role':_0x1632ae[_0x1a47d7(_0x140147._0x5d0313,0x529,_0x140147._0x1bea98,_0x140147._0x456d64)],'content':toAnthropicRequestContent(_0x1632ae)};}),..._0x4d6e17[_0x229293(_0x428363._0x2f0216,0x44,0x8e,0x7a)]?{'thinking':_0x4d6e17[_0x229293(_0x428363._0x3caf6f,_0x428363._0x11a5dd,_0x428363._0x6996e6,0x100)]}:{},..._0x51e727?{'stream':!![]}:{}},..._0x4d6e17[_0x53f91a(_0x428363._0x3b9524,0x5e,-0x27,-_0x428363._0x521bb0)]?{'headers':_0x4d6e17['headers']}:{},'path':_0x229293(_0x428363._0x5b058b,0x11,0x9b,_0x428363._0x23c68c)};}function parseAnthropicResponse(_0x32e2f3,_0x2dfa0c){const _0x32f391={_0x459466:0x458,_0x463edc:0x49f,_0x1e1b66:0x3d1,_0x52a003:0x4ff,_0x121369:0x39e,_0x2c9dfc:0x448,_0x53887c:0x507,_0x55d3b6:0x41b,_0x4e8b5d:0x433,_0x2ac84e:0x421,_0x5add9f:0x46a,_0x12cd44:0x434,_0x4b7cfc:0x434,_0x45b796:0x451,_0x2e4f84:0x3d4,_0x1f7dbf:0x3ff,_0x1edc32:0x370,_0x5e4f6b:0x37c,_0x27b647:0x414,_0x522fba:0x3b8,_0xe0b40c:0x446,_0x34ca2e:0x4f9,_0x32f461:0x3d0,_0x4f2724:0x4f4,_0x3cae2e:0x38d,_0x1a215c:0x3c7,_0x5e8255:0x4a5,_0x21fdb4:0x4d4,_0x45a1da:0x4a2,_0x5ab588:0x397,_0x49784f:0x423,_0x359bae:0x373,_0x3bb63d:0x407,_0x4c931c:0x3d0,_0x24ca21:0x4b3,_0x22eadb:0x469,_0xf5a0c6:0x3ea,_0x2a5d98:0x380,_0xd8d982:0x436,_0x4ba89e:0x364,_0x360f1a:0x44f,_0x30e362:0x3c6,_0xfa47c7:0x34e,_0x32b3a8:0x339,_0x54d6a1:0x394},_0x959459={_0x22cb45:0x134,_0x3ce950:0x1f2},_0x82dcc2={_0x34d8e5:0x1a3},_0x1bc717=[];function _0x5d5296(_0x52ee2c,_0x1427f2,_0x30354f,_0x2c25f0){return _0x2b6123(_0x30354f,_0x1427f2-_0x82dcc2._0x34d8e5,_0x2c25f0-0x1e0,_0x2c25f0-0x1af);}const _0x2fd9d4=_0x32e2f3['content']??[];let _0x331cc7=![];function _0x429ade(_0x454524,_0x51c609,_0x18a10d,_0x1d993e){return _0x2b6123(_0x454524,_0x51c609-0xdc,_0x51c609-_0x959459._0x22cb45,_0x1d993e-_0x959459._0x3ce950);}for(const _0x2c3b05 of _0x2fd9d4){if(_0x2c3b05[_0x5d5296(0x43e,0x4bd,_0x32f391._0x459466,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x1e1b66,0x49b,_0x32f391._0x52a003,0x433)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(_0x32f391._0x121369,_0x32f391._0x2c9dfc,0x3c5,_0x32f391._0x53887c)]({'type':_0x5d5296(0x3ee,0x3ae,0x3ad,_0x32f391._0x55d3b6),'thinking':_0x2c3b05['thinking'],'signature':_0x2c3b05[_0x429ade(_0x32f391._0x4e8b5d,0x48a,_0x32f391._0x2ac84e,_0x32f391._0x5add9f)]});continue;}if(_0x2c3b05['type']===_0x5d5296(0x382,_0x32f391._0x12cd44,0x398,_0x32f391._0x4b7cfc)){_0x331cc7=!![];isUserVisibleThinking(_0x2dfa0c)&&_0x1bc717[_0x429ade(0x42b,0x448,0x3d2,_0x32f391._0x45b796)]({'type':_0x429ade(0x38c,_0x32f391._0x2e4f84,0x3bc,_0x32f391._0x1f7dbf),'data':_0x2c3b05[_0x429ade(0x34d,0x3a4,_0x32f391._0x1edc32,_0x32f391._0x5e4f6b)]});continue;}if(_0x2c3b05[_0x5d5296(_0x32f391._0x27b647,0x4b0,0x55a,_0x32f391._0x463edc)]===_0x429ade(_0x32f391._0x522fba,_0x32f391._0xe0b40c,_0x32f391._0x34ca2e,_0x32f391._0x32f461)){_0x2c3b05[_0x429ade(0x497,0x446,0x3b9,0x49c)][_0x5d5296(0x4f9,_0x32f391._0x522fba,0x4e3,0x47b)]>0x0&&_0x1bc717[_0x5d5296(0x47f,0x44d,0x545,_0x32f391._0x4f2724)](structuredClone(_0x2c3b05));continue;}_0x1bc717[_0x429ade(0x388,0x448,_0x32f391._0x3cae2e,_0x32f391._0x1a215c)](structuredClone(_0x2c3b05));}return{'id':_0x32e2f3['id']??_0x429ade(0x487,0x40e,_0x32f391._0x5e8255,0x42d)+Date[_0x5d5296(_0x32f391._0x4b7cfc,0x428,0x4ea,_0x32f391._0x21fdb4)](),'content':_0x1bc717,'stopReason':_0x1bc717[_0x5d5296(0x61d,0x577,_0x32f391._0x45a1da,0x55d)](_0xf6f270=>_0xf6f270[_0x429ade(0x335,0x3f3,0x393,0x3f5)]==='tool_use')?'tool_use':_0x32e2f3[_0x429ade(0x2ed,_0x32f391._0x5ab588,_0x32f391._0x49784f,_0x32f391._0x359bae)]===_0x429ade(0x46c,_0x32f391._0x3bb63d,_0x32f391._0x4c931c,0x4d0)?_0x5d5296(0x546,0x433,0x4f6,_0x32f391._0x24ca21):_0x5d5296(_0x32f391._0x22eadb,_0x32f391._0xf5a0c6,_0x32f391._0x2a5d98,_0x32f391._0xd8d982),'usage':{'inputTokens':_0x32e2f3[_0x429ade(0x317,_0x32f391._0x4ba89e,0x3e4,0x2e7)]?.[_0x429ade(_0x32f391._0x360f1a,_0x32f391._0x30e362,_0x32f391._0xfa47c7,_0x32f391._0x32b3a8)]??0x0,'outputTokens':_0x32e2f3[_0x5d5296(0x3ef,0x3f0,_0x32f391._0x54d6a1,0x410)]?.['output_tokens']??0x0},..._0x331cc7?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2fd9d4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x2b6123(0x267,0x1e3,0x2a6,0x2b0)]=new Map();[_0x38c793(0x4e5,0x50d,0x49a,0x3f4)]=0x0;[_0x2b6123(0x46b,0x3ca,0x3b9,0x42a)]=_0x38c793(0x3df,0x3f8,0x40a,0x3b6)+Date[_0x2b6123(0x287,0x234,0x2f4,0x25e)]();[_0x38c793(0x30e,0x390,0x36a,0x323)]=0x0;[_0x38c793(0x415,0x328,0x3dd,0x3ac)];[_0x2b6123(0x1ec,0x2d0,0x25a,0x1cb)]=_0x2b6123(0x293,0x1f3,0x256,0x2a5);constructor(_0x5150dc){const _0x10580c={_0x3c69aa:0x45e,_0x1d82c3:0x3fd},_0x387d08={_0x3d652a:0x1e6,_0x35cd09:0x126};function _0x121364(_0x2913a7,_0x42536,_0x17a6a6,_0x2a5aef){return _0x2b6123(_0x17a6a6,_0x42536-_0x387d08._0x3d652a,_0x2913a7-0x1b1,_0x2a5aef-_0x387d08._0x35cd09);}this[_0x121364(_0x10580c._0x3c69aa,0x4a9,_0x10580c._0x1d82c3,0x4ef)]=_0x5150dc;}[_0x2b6123(0x2b3,0x1e1,0x29c,0x20b)](_0x8788ff){const _0x3b432d={_0x1cd60b:0x385,_0x15470b:0x4f8,_0x2b1bc1:0x39d,_0xcc60f0:0x4ad,_0x420dbd:0x50d,_0x420d23:0x36f,_0x4984e7:0x436,_0x47c155:0x30b,_0x18abe7:0x3d2,_0x387e8d:0x4b3,_0x64de64:0x33d,_0x33ae0a:0x339,_0x5c3536:0x2b8,_0xc459bb:0x32b,_0x257b0d:0x357,_0x2000a6:0x2d1,_0x15090c:0x333,_0x289013:0x43d,_0x4f16ce:0x452,_0x3855a9:0x3d0,_0x119802:0x317,_0x4b1d3c:0x348,_0x410bde:0x431,_0x317126:0x4e4,_0x8a685f:0x4ea,_0x519faa:0x414,_0x42cd94:0x36c,_0x191632:0x46e,_0x1f98db:0x453,_0x5199e3:0x469,_0x37f3f0:0x401,_0x2ec1fd:0x3e1,_0x549a92:0x3a9,_0x237e0b:0x405,_0x446fcf:0x435,_0x44e7c2:0x3a0,_0x415dc2:0x3ec,_0x336467:0x315,_0x3e4556:0x3e7,_0x5377af:0x41f,_0x405935:0x42f,_0x838ed9:0x364,_0x40d7e1:0x453,_0x3ae5c3:0x491,_0x2e37dd:0x2ec,_0x4d8854:0x53e,_0x3edfe8:0x53e,_0x8e52e4:0x3a5,_0x3cc5ea:0x4ea,_0x91f65c:0x5ad,_0x55feba:0x3d7,_0x59f769:0x476,_0x482ae5:0x390,_0x43c062:0x409,_0x1769b7:0x36a,_0xc1e766:0x4bf,_0x2f74df:0x4fb,_0x44b4ec:0x4ce,_0x2ce060:0x4c8,_0x547f91:0x504,_0x4d2e62:0x3c8,_0x12d1f8:0x515,_0x269924:0x45f,_0x3afe78:0x480,_0xa07d4d:0x48f,_0x5c8f36:0x404,_0x51e520:0x3fa,_0xabddd4:0x43a,_0x11cfbf:0x416,_0x26ddfb:0x48c,_0x2489c9:0x448,_0x5db4ca:0x46b,_0x1153c3:0x4e8,_0x250e19:0x415,_0x11e08b:0x3d1,_0x40dd9c:0x3b2,_0x1b85ab:0x415,_0x122bec:0x464,_0x3c2164:0x408,_0x42edcd:0x42b,_0x344a31:0x420,_0x750f5f:0x4c2,_0x371e66:0x399,_0x4d9bb5:0x43f,_0x4694ee:0x4a6,_0x2b88d0:0x4fd,_0x663990:0x445,_0x534fa6:0x4bf,_0x65da1e:0x3af,_0x4cc2ec:0x444,_0x11e565:0x3bc,_0x319418:0x2ef,_0xd3b99a:0x431,_0x40fb69:0x48a,_0x150195:0x305,_0x564f9e:0x2d4,_0x10d27d:0x3ff,_0x222421:0x4cb,_0x3fec4d:0x49e,_0x29f776:0x410,_0x1838f2:0x408,_0x2deb89:0x444,_0x22abc3:0x376,_0x14dd27:0x494,_0x49fd71:0x493,_0x4a4efb:0x440,_0x19dc71:0x48e,_0x181c2b:0x46c,_0x4a162f:0x2ba,_0x57e671:0x43e,_0x43480d:0x433,_0x5d2ed6:0x3d4,_0x3b9cc2:0x460,_0x324fbf:0x42c,_0x60534d:0x37d,_0xf75e84:0x544,_0x1f3178:0x470,_0x3f395d:0x4bc,_0x220ff3:0x4fb,_0x52a7ba:0x3f4,_0x56c7b4:0x46c,_0x5b36fb:0x3df,_0x57c4b6:0x560,_0x54114c:0x54c,_0x10d5fb:0x4ea,_0x3e1233:0x457,_0x9484c4:0x4d1,_0xe7a4e1:0x3b0,_0x4077c8:0x48d,_0x7b44ef:0x50b,_0x3ba544:0x441,_0x571736:0x499,_0x48cd36:0x436,_0x255915:0x491,_0x4be047:0x472,_0x4b15c3:0x496,_0x29959c:0x31a,_0x2729f:0x3c4,_0xcbb877:0x377,_0x25e2c5:0x32c,_0x228765:0x3c8,_0x50579f:0x478,_0x5437a1:0x505,_0x3b84cd:0x44a,_0x5bbb80:0x412,_0x614c9f:0x365,_0x1979d0:0x32e,_0x39dd75:0x3dd,_0xc1f8b:0x3fd,_0x8cf38e:0x590,_0x11e30f:0x534,_0x59f83c:0x570,_0x536746:0x4d6,_0x17679a:0x497,_0xfd8106:0x3b8,_0x25d97b:0x46f,_0xc7f383:0x318},_0x1f0521={_0x8d8f8b:0x16c,_0x529b82:0x1c7},_0x3f1bcf={_0x35c9ae:0x6b,_0x2653fc:0x8};function _0x40119f(_0x3f4192,_0x4442ac,_0x178cf2,_0x4974c7){return _0x38c793(_0x4974c7,_0x4442ac-0x1db,_0x3f4192- -_0x3f1bcf._0x35c9ae,_0x4974c7-_0x3f1bcf._0x2653fc);}const _0x32e976=_0x8788ff[_0x40119f(0x3d2,0x446,_0x3b432d._0x1cd60b,0x37b)]('\x0a'),_0x924b9e=_0x32e976[_0x40119f(0x462,_0x3b432d._0x15470b,_0x3b432d._0x2b1bc1,0x406)](_0xf674dd=>_0xf674dd[_0x40119f(0x3b5,0x446,0x33e,0x43b)](_0x40119f(0x44e,0x4d8,0x420,0x384)))?.['slice'](0x6)['trim'](),_0x34ff7f=_0x32e976['filter'](_0x4a6361=>_0x4a6361['startsWith'](_0x40119f(0x33f,0x2f1,0x3dc,0x3a1)))[_0x20a203(0x522,0x516,_0x3b432d._0xcc60f0,_0x3b432d._0x420dbd)](_0x52cc48=>_0x52cc48[_0x20a203(0x4f5,0x463,0x3e5,0x4f3)](0x5)['trimStart']())['join']('\x0a')[_0x20a203(_0x3b432d._0x420d23,_0x3b432d._0x4984e7,0x3da,0x3b2)]();if(_0x34ff7f[_0x40119f(0x360,0x39d,0x2d2,_0x3b432d._0x47c155)]===0x0||_0x34ff7f==='[DONE]')return[];const _0x44b5d8=JSON[_0x20a203(_0x3b432d._0x18abe7,0x48b,0x430,_0x3b432d._0x387e8d)](_0x34ff7f);switch(_0x924b9e){case _0x40119f(_0x3b432d._0x64de64,0x34f,_0x3b432d._0x33ae0a,_0x3b432d._0x5c3536):{const _0x440e8f=_0x44b5d8['message'];this['messageId']=_0x440e8f?.['id']??this['messageId'],this['inputTokens']=_0x440e8f?.[_0x40119f(0x2f5,_0x3b432d._0xc459bb,0x236,0x2e9)]?.[_0x40119f(_0x3b432d._0x257b0d,_0x3b432d._0x2000a6,_0x3b432d._0x15090c,0x3cd)]??this[_0x40119f(0x42f,_0x3b432d._0x289013,0x3d7,_0x3b432d._0x4f16ce)];break;}case _0x40119f(_0x3b432d._0x3855a9,_0x3b432d._0x119802,_0x3b432d._0x4b1d3c,_0x3b432d._0x410bde):{const _0x4d4bb4=typeof _0x44b5d8[_0x20a203(0x54a,_0x3b432d._0x317126,_0x3b432d._0x8a685f,0x517)]===_0x20a203(0x3b3,_0x3b432d._0x519faa,_0x3b432d._0x42cd94,_0x3b432d._0x191632)?_0x44b5d8['index']:0x0,_0x352970=_0x44b5d8['content_block'];if(_0x352970?.[_0x20a203(0x494,_0x3b432d._0x1f98db,0x4c7,_0x3b432d._0x5199e3)]==='tool_use'&&_0x352970['id']&&_0x352970[_0x20a203(_0x3b432d._0x37f3f0,_0x3b432d._0x2ec1fd,_0x3b432d._0x549a92,_0x3b432d._0x237e0b)])return this['blocks'][_0x40119f(_0x3b432d._0x446fcf,0x488,0x3d8,_0x3b432d._0x44e7c2)](_0x4d4bb4,{'id':_0x352970['id'],'index':_0x4d4bb4,'inputJson':JSON[_0x20a203(_0x3b432d._0x415dc2,0x3d1,_0x3b432d._0x336467,_0x3b432d._0x3e4556)](_0x352970[_0x40119f(_0x3b432d._0x5377af,0x406,0x4ae,_0x3b432d._0x405935)]??{}),'kind':'tool_use','name':_0x352970['name']}),[{'type':'tool_use_delta','id':_0x352970['id'],'index':_0x4d4bb4,'name':_0x352970[_0x40119f(0x312,0x3cf,0x322,_0x3b432d._0x838ed9)]}];if(_0x352970?.[_0x20a203(0x48f,_0x3b432d._0x40d7e1,0x41a,0x4cb)]===_0x40119f(0x42c,_0x3b432d._0x3ae5c3,0x39b,0x481)){this[_0x40119f(0x36b,0x3fb,_0x3b432d._0x2e37dd,0x3b1)][_0x20a203(0x500,0x504,0x446,0x572)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'thinking','signature':typeof _0x352970[_0x20a203(_0x3b432d._0x4d8854,0x4ea,0x436,_0x3b432d._0x3edfe8)]===_0x40119f(0x390,0x3da,_0x3b432d._0x8e52e4,0x315)?_0x352970[_0x20a203(0x4eb,_0x3b432d._0x3cc5ea,0x4a9,_0x3b432d._0x91f65c)]:'','thinking':typeof _0x352970[_0x40119f(_0x3b432d._0x55feba,0x39b,_0x3b432d._0x59f769,0x43f)]===_0x40119f(_0x3b432d._0x482ae5,_0x3b432d._0x43c062,_0x3b432d._0x1769b7,0x34a)?_0x352970['text']:typeof _0x352970[_0x20a203(0x472,0x4fb,0x4ca,0x4be)]===_0x40119f(_0x3b432d._0x482ae5,0x3d6,0x3e9,0x32a)?String(_0x352970[_0x20a203(_0x3b432d._0xc1e766,_0x3b432d._0x2f74df,_0x3b432d._0x44b4ec,0x5b6)]):''});break;}if(_0x352970?.[_0x20a203(0x3a7,0x453,0x3fc,0x492)]==='redacted_thinking'){this[_0x40119f(0x36b,0x2a3,0x37e,0x400)][_0x20a203(_0x3b432d._0x2ce060,_0x3b432d._0x547f91,0x44e,0x47c)](_0x4d4bb4,{'index':_0x4d4bb4,'kind':_0x20a203(_0x3b432d._0x4d2e62,0x3e8,0x3c4,0x331),'data':typeof _0x352970['data']===_0x20a203(_0x3b432d._0x12d1f8,_0x3b432d._0x269924,_0x3b432d._0x3afe78,0x3fb)?String(_0x352970[_0x20a203(_0x3b432d._0xa07d4d,_0x3b432d._0x5c8f36,_0x3b432d._0x51e520,0x3d2)]):''});break;}this[_0x20a203(0x498,_0x3b432d._0xabddd4,_0x3b432d._0x11cfbf,0x425)]['set'](_0x4d4bb4,{'index':_0x4d4bb4,'kind':'text','text':_0x352970?.[_0x40119f(0x3d7,_0x3b432d._0x26ddfb,0x3ae,0x322)]??''});break;}case _0x40119f(_0x3b432d._0x2489c9,_0x3b432d._0x5db4ca,0x404,_0x3b432d._0x1153c3):{const _0xc2cff=typeof _0x44b5d8[_0x40119f(_0x3b432d._0x250e19,0x36e,_0x3b432d._0x11e08b,0x38e)]===_0x20a203(0x42a,0x414,_0x3b432d._0x40dd9c,0x483)?_0x44b5d8[_0x40119f(_0x3b432d._0x1b85ab,_0x3b432d._0x122bec,_0x3b432d._0x3c2164,0x4c4)]:0x0,_0x399b6a=this['blocks']['get'](_0xc2cff),_0x1be16a=_0x44b5d8['delta'];if(!_0x399b6a||!_0x1be16a?.['type'])break;if(_0x1be16a[_0x20a203(_0x3b432d._0x42edcd,0x453,0x47f,_0x3b432d._0x344a31)]===_0x40119f(0x3fb,_0x3b432d._0x750f5f,_0x3b432d._0x371e66,0x4bd)&&_0x399b6a['kind']==='text'&&typeof _0x1be16a[_0x20a203(_0x3b432d._0x4d9bb5,_0x3b432d._0x4694ee,_0x3b432d._0x2b88d0,_0x3b432d._0x663990)]===_0x20a203(_0x3b432d._0x534fa6,_0x3b432d._0x269924,_0x3b432d._0x65da1e,0x3dd))return _0x399b6a[_0x40119f(0x3d7,0x373,_0x3b432d._0x4cc2ec,_0x3b432d._0x11e565)]+=_0x1be16a[_0x20a203(0x56d,0x4a6,0x4de,0x414)],[{'type':'content_delta','index':_0xc2cff,'text':_0x1be16a['text']}];if(_0x1be16a[_0x40119f(0x384,0x411,_0x3b432d._0x319418,_0x3b432d._0xd3b99a)]===_0x40119f(0x3f9,_0x3b432d._0x40fb69,0x3e4,0x43f)&&_0x399b6a[_0x40119f(_0x3b432d._0x150195,_0x3b432d._0x564f9e,0x30e,0x282)]===_0x20a203(_0x3b432d._0x10d27d,0x467,0x488,_0x3b432d._0x222421)&&typeof _0x1be16a[_0x20a203(0x407,_0x3b432d._0x3fec4d,0x3f6,0x528)]==='string')return _0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x364,_0x3b432d._0x1838f2,0x43e)]==='{}'&&(_0x399b6a[_0x20a203(0x452,0x4df,_0x3b432d._0x2deb89,0x473)]=''),_0x399b6a[_0x40119f(_0x3b432d._0x29f776,0x3cc,_0x3b432d._0x22abc3,_0x3b432d._0x1cd60b)]+=_0x1be16a[_0x20a203(0x502,0x49e,_0x3b432d._0x14dd27,0x47d)],[{'type':_0x20a203(0x4cd,0x476,_0x3b432d._0x49fd71,0x52f),'id':_0x399b6a['id'],'index':_0xc2cff,'inputDelta':_0x1be16a[_0x40119f(0x3cf,_0x3b432d._0x4a4efb,_0x3b432d._0x19dc71,_0x3b432d._0x181c2b)]}];if(_0x1be16a[_0x40119f(0x384,_0x3b432d._0x4a162f,0x3d2,_0x3b432d._0x57e671)]===_0x40119f(0x47a,0x3e7,0x4e0,_0x3b432d._0x43480d)&&_0x399b6a[_0x20a203(0x45e,_0x3b432d._0x5d2ed6,_0x3b432d._0x3b9cc2,0x321)]===_0x40119f(_0x3b432d._0x324fbf,0x38c,0x4af,_0x3b432d._0x60534d)){const _0x41e4a8=typeof _0x1be16a[_0x20a203(0x5a5,_0x3b432d._0x2f74df,_0x3b432d._0xf75e84,0x55a)]===_0x20a203(0x39f,_0x3b432d._0x269924,_0x3b432d._0x1f3178,0x441)?String(_0x1be16a[_0x20a203(_0x3b432d._0x3f395d,_0x3b432d._0x220ff3,0x555,0x467)]):'';if(_0x41e4a8[_0x20a203(_0x3b432d._0x181c2b,0x42f,0x3a0,_0x3b432d._0x52a7ba)]>0x0){_0x399b6a['thinking']+=_0x41e4a8;if(isUserVisibleThinking(this['request']))return[{'type':_0x40119f(0x3cd,0x39d,0x477,_0x3b432d._0x56c7b4),'index':_0xc2cff,'thinking':_0x41e4a8}];}}if(_0x1be16a['type']===_0x40119f(0x425,_0x3b432d._0x5b36fb,0x472,0x427)&&_0x399b6a['kind']===_0x20a203(_0x3b432d._0x57c4b6,0x4fb,_0x3b432d._0x54114c,0x5bf)){const _0x1d85f9=typeof _0x1be16a[_0x20a203(0x446,_0x3b432d._0x10d5fb,0x599,_0x3b432d._0x3e1233)]===_0x20a203(_0x3b432d._0x9484c4,0x45f,_0x3b432d._0xe7a4e1,_0x3b432d._0x750f5f)?String(_0x1be16a[_0x20a203(0x4e1,0x4ea,0x571,_0x3b432d._0x4077c8)]):'';if(_0x1d85f9['length']>0x0){_0x399b6a[_0x20a203(0x423,_0x3b432d._0x3cc5ea,0x436,0x423)]=_0x1d85f9;if(isUserVisibleThinking(this[_0x20a203(_0x3b432d._0x7b44ef,_0x3b432d._0x3ba544,0x4e4,0x41f)]))return[{'type':_0x20a203(_0x3b432d._0x4694ee,0x50f,0x4df,_0x3b432d._0x571736),'index':_0xc2cff,'signature':_0x1d85f9}];}}break;}case _0x20a203(_0x3b432d._0x48cd36,_0x3b432d._0x255915,_0x3b432d._0x4be047,_0x3b432d._0x4b15c3):{const _0x3a64e2=_0x44b5d8['delta'],_0x26ae5f=_0x44b5d8[_0x20a203(_0x3b432d._0x29959c,_0x3b432d._0x2729f,0x34a,_0x3b432d._0xcbb877)];this[_0x40119f(0x2ff,_0x3b432d._0x25e2c5,_0x3b432d._0x228765,0x2be)]=_0x26ae5f?.[_0x40119f(_0x3b432d._0x50579f,0x3e3,_0x3b432d._0x5437a1,_0x3b432d._0x3b84cd)]??this[_0x20a203(_0x3b432d._0x5bbb80,0x3ce,0x3e2,_0x3b432d._0x614c9f)],this['stopReason']=_0x3a64e2?.[_0x40119f(0x328,_0x3b432d._0x1979d0,0x301,0x34a)]===_0x20a203(0x4bc,0x467,0x4c8,_0x3b432d._0x40d7e1)?_0x20a203(_0x3b432d._0x39dd75,0x467,_0x3b432d._0xc1f8b,0x46a):'end_turn';break;}case _0x20a203(0x488,0x4d6,_0x3b432d._0x8cf38e,_0x3b432d._0x11e30f):{const _0x18a613=_0x44b5d8[_0x20a203(_0x3b432d._0x59f83c,_0x3b432d._0x536746,_0x3b432d._0x17679a,0x411)];throw new Error(_0x18a613?.['message']??_0x40119f(_0x3b432d._0xfd8106,_0x3b432d._0x25d97b,_0x3b432d._0xc7f383,0x403));}}function _0x20a203(_0x49517e,_0x2f05f6,_0x1b50e9,_0x5e5c8e){return _0x38c793(_0x49517e,_0x2f05f6-_0x1f0521._0x8d8f8b,_0x2f05f6-0x64,_0x5e5c8e-_0x1f0521._0x529b82);}return[];}[_0x2b6123(0x3c7,0x360,0x38e,0x458)](){const _0x4ac3a0={_0x351178:0x3b3,_0x676f32:0x468,_0x167d5b:0x3f9,_0x886451:0x4f7,_0x484c7c:0x4c3,_0x1b349b:0x4e1,_0x3a61f5:0x118,_0x18cd06:0xe1,_0x2cbe06:0x159,_0x115000:0x16d,_0x410b97:0x240,_0x44bced:0x468,_0x407c36:0x4f7,_0x21d02e:0x426,_0x50c67a:0x4e2,_0x3cba0e:0x45d,_0x258c79:0x44b,_0x2925e9:0x1b5,_0x5ef27c:0x1c5,_0x3f6670:0x12a,_0x11ad7a:0x16f,_0x2ac202:0x157,_0x30e1a6:0x390,_0x1b0261:0x36d,_0x59477e:0x402,_0x1cb3e5:0x4ca,_0x90b063:0x55f,_0x547e54:0x59d,_0x215bd3:0x520,_0x5e9589:0x58d,_0x34a2bc:0x449,_0x20af11:0x465,_0x26458b:0x1a0,_0x1bb4bb:0x208,_0x1e6dfe:0x2a1,_0xef927a:0x518,_0x329a9c:0x5cc,_0x2312e4:0x3a0,_0x52d162:0x3a2,_0x1b299f:0x3ab,_0x3233fb:0x416,_0x6a1ca:0x172,_0x59eabc:0x1b5,_0x7fad18:0x203,_0x1f6000:0x1fa,_0x499946:0x1f0,_0x2ad857:0x155,_0x334120:0x142,_0x13af06:0xd6,_0x59a3e0:0x63,_0x582ace:0x50d,_0x45f931:0x4b1,_0x2126f9:0x528,_0x13d68f:0x198,_0x317876:0x1d8,_0x9e227e:0x290,_0x1edb4a:0x42c,_0x85bbc3:0x4be,_0x37a412:0x42d,_0x3b98c2:0x43d,_0x4ae560:0x3fc,_0xdf40f0:0x431},_0x3a6827={_0x41ddf9:0x59,_0x1a7b3c:0xd1},_0x2cc983={_0xfb7e7:0x14b,_0x3e094a:0x168};function _0x58a84e(_0x426c11,_0x4f9d14,_0xb958fa,_0x27711c){return _0x2b6123(_0x426c11,_0x4f9d14-_0x2cc983._0xfb7e7,_0xb958fa-0x1c2,_0x27711c-_0x2cc983._0x3e094a);}const _0x2c2f83=Array['from'](this[_0x58a84e(0x4b3,_0x4ac3a0._0x351178,_0x4ac3a0._0x676f32,0x51e)][_0x58a84e(_0x4ac3a0._0x167d5b,0x416,0x4a9,_0x4ac3a0._0x886451)]())[_0x58a84e(0x421,0x486,_0x4ac3a0._0x484c7c,_0x4ac3a0._0x1b349b)]((_0x55e008,_0x41cd79)=>_0x55e008[_0x3eee00(0x284,0x1f1,0x13d,0x177)]-_0x41cd79[_0x3eee00(0x12c,0x1f1,0x221,0x143)]),_0x287d4c=[];function _0x3eee00(_0x23b092,_0x4b9c85,_0x180998,_0x5a70d5){return _0x38c793(_0x180998,_0x4b9c85-_0x3a6827._0x41ddf9,_0x4b9c85- -0x28f,_0x5a70d5-_0x3a6827._0x1a7b3c);}for(const _0x3d043c of _0x2c2f83){if(_0x3d043c[_0x3eee00(_0x4ac3a0._0x3a61f5,_0x4ac3a0._0x18cd06,_0x4ac3a0._0x2cbe06,0x144)]===_0x3eee00(0x22f,0x1b3,_0x4ac3a0._0x115000,_0x4ac3a0._0x410b97)){_0x3d043c[_0x58a84e(_0x4ac3a0._0x44bced,_0x4ac3a0._0x407c36,0x4d4,_0x4ac3a0._0x21d02e)][_0x58a84e(_0x4ac3a0._0x50c67a,0x49b,_0x4ac3a0._0x3cba0e,_0x4ac3a0._0x258c79)]>0x0&&_0x287d4c[_0x3eee00(0x1be,_0x4ac3a0._0x2925e9,_0x4ac3a0._0x5ef27c,0x25b)]({'type':_0x3eee00(_0x4ac3a0._0x3f6670,0x1b3,_0x4ac3a0._0x11ad7a,_0x4ac3a0._0x2ac202),'text':_0x3d043c['text']});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x30e1a6,_0x4ac3a0._0x1b0261,_0x4ac3a0._0x59477e,_0x4ac3a0._0x1cb3e5)]===_0x58a84e(_0x4ac3a0._0x90b063,_0x4ac3a0._0x547e54,0x529,_0x4ac3a0._0x215bd3)){_0x287d4c[_0x58a84e(_0x4ac3a0._0x5e9589,_0x4ac3a0._0x34a2bc,0x4d6,_0x4ac3a0._0x20af11)]({'type':'thinking','thinking':_0x3d043c[_0x3eee00(_0x4ac3a0._0x26458b,_0x4ac3a0._0x1bb4bb,_0x4ac3a0._0x1e6dfe,0x205)],'signature':_0x3d043c[_0x58a84e(0x5ba,0x46a,_0x4ac3a0._0xef927a,_0x4ac3a0._0x329a9c)]});continue;}if(_0x3d043c[_0x58a84e(_0x4ac3a0._0x2312e4,_0x4ac3a0._0x52d162,0x402,_0x4ac3a0._0x1b299f)]===_0x58a84e(0x435,0x3e9,_0x4ac3a0._0x3233fb,0x397)){_0x287d4c[_0x3eee00(_0x4ac3a0._0x6a1ca,_0x4ac3a0._0x59eabc,_0x4ac3a0._0x7fad18,0x270)]({'type':'redacted_thinking','data':_0x3d043c['data']});continue;}_0x287d4c[_0x3eee00(_0x4ac3a0._0x1f6000,0x1b5,_0x4ac3a0._0x499946,_0x4ac3a0._0x2ad857)]({'type':'tool_use','id':_0x3d043c['id'],'name':_0x3d043c[_0x3eee00(_0x4ac3a0._0x334120,0xee,_0x4ac3a0._0x13af06,_0x4ac3a0._0x59a3e0)],'input':parseToolInput(_0x3d043c[_0x58a84e(0x45b,0x570,_0x4ac3a0._0x582ace,0x571)][_0x58a84e(0x4ac,_0x4ac3a0._0x45f931,0x45d,_0x4ac3a0._0x2126f9)]>0x0?_0x3d043c['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x3eee00(_0x4ac3a0._0x13d68f,0x25a,_0x4ac3a0._0x317876,_0x4ac3a0._0x9e227e)],'type':_0x58a84e(_0x4ac3a0._0x1edb4a,0x3b6,0x474,_0x4ac3a0._0x85bbc3),'role':'assistant','content':_0x287d4c,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x58a84e(_0x4ac3a0._0x37a412,_0x4ac3a0._0x3b98c2,_0x4ac3a0._0x4ae560,_0x4ac3a0._0xdf40f0)]}},this['request']);}};function createAnthropicSurfaces(){const _0x1d6734={_0x17af88:0x36b,_0x424342:0xdf,_0x47f907:0xc4,_0x4eb062:0x7},_0x504f82={_0x444cf1:0x77};function _0x42194e(_0x55fd64,_0x26de0c,_0x2c187a,_0x301389){return _0x38c793(_0x301389,_0x26de0c-0x1b7,_0x2c187a- -0x29e,_0x301389-0x104);}function _0x5f42aa(_0x2fa778,_0x33568f,_0x2b3847,_0x3aa9ef){return _0x2b6123(_0x33568f,_0x33568f-0x2e,_0x2b3847-_0x504f82._0x444cf1,_0x3aa9ef-0x1d4);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x5f42aa(0x32a,0x2a2,0x2d0,_0x1d6734._0x17af88),'createRequest'(_0x2fa7d3){return createAnthropicRequest(_0x2fa7d3,![]);},'parseResponse'(_0xe8a2aa,_0x4782d8){return parseAnthropicResponse(_0xe8a2aa,_0x4782d8);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x42194e(_0x1d6734._0x424342,0x1a,_0x1d6734._0x47f907,_0x1d6734._0x4eb062),'createRequest'(_0xe120f2){return createAnthropicRequest(_0xe120f2,!![]);},'createStreamParser'(_0x1640d7){return new AnthropicMessagesStreamParser(_0x1640d7);}}];}var StaticModelSurfaceRouter=class{[_0x38c793(0x398,0x473,0x3eb,0x416)];[_0x38c793(0x2ef,0x2c6,0x35f,0x39d)];constructor(_0x53e5cc){const _0x647e9c={_0x2ccfac:0x5f8,_0x3ffca5:0x5f6,_0x130f20:0x66f,_0x463b80:0x5a4},_0x54984e={_0x1e3650:0x51};this[_0x33bcaa(0x568,_0x647e9c._0x2ccfac,0x4b9,0x5a7)]=_0x53e5cc['complete'];function _0x33bcaa(_0x2ff4ac,_0x5c5f7a,_0x5a85d7,_0x2820cb){return _0x38c793(_0x5a85d7,_0x5c5f7a-0xbb,_0x2ff4ac-0x17d,_0x2820cb-0x1b8);}function _0x5d75d2(_0x33ac4d,_0x251116,_0x4fc27a,_0x148ed5){return _0x2b6123(_0x33ac4d,_0x251116-0x7,_0x148ed5-_0x54984e._0x1e3650,_0x148ed5-0x12a);}this['streamSurface']=_0x53e5cc[_0x33bcaa(_0x647e9c._0x3ffca5,0x66c,_0x647e9c._0x130f20,_0x647e9c._0x463b80)];}['selectSurface'](_0x4d1c72,_0x5a4c1c){const _0x53d5f5={_0x3a0a93:0x265,_0x5c354a:0x1bb,_0x28958e:0x1f,_0xebfc40:0x170,_0xe11813:0x24e,_0x449d2d:0x22e},_0x546571={_0x5bd093:0x1f4};function _0x5069dd(_0xcc3702,_0x2708d9,_0x1a4941,_0xbe63bc){return _0x38c793(_0x1a4941,_0x2708d9-0x121,_0xcc3702- -0x5ac,_0xbe63bc-_0x546571._0x5bd093);}function _0x3a7b2(_0x1c2657,_0x2c4686,_0x14c0d7,_0x492520){return _0x38c793(_0x14c0d7,_0x2c4686-0x1c5,_0x2c4686- -0x410,_0x492520-0xf4);}return _0x5a4c1c[_0x5069dd(-0x1e9,-_0x53d5f5._0x3a0a93,-_0x53d5f5._0x5c354a,-0x14a)]===_0x3a7b2(-_0x53d5f5._0x28958e,0x69,0x90,0x3f)?this['streamSurface']:this[_0x5069dd(-0x1c1,-_0x53d5f5._0xebfc40,-_0x53d5f5._0xe11813,-_0x53d5f5._0x449d2d)];}};function trimTrailingSlashes(_0x48058d){const _0x272144={_0x5cf57e:0x343,_0x183e6c:0x364,_0x53fbf5:0x32a},_0x49414f={_0x25808b:0x8b,_0x3d6a1b:0x186,_0x5a08ff:0xd};function _0x22c12e(_0x584a1e,_0x100529,_0x1338f3,_0x58a2d9){return _0x38c793(_0x1338f3,_0x100529-_0x49414f._0x25808b,_0x584a1e- -_0x49414f._0x3d6a1b,_0x58a2d9-_0x49414f._0x5a08ff);}return _0x48058d[_0x22c12e(0x2da,_0x272144._0x5cf57e,_0x272144._0x183e6c,_0x272144._0x53fbf5)](/\/+$/,'');}function resolveApiCredential(_0x6bf615,_0x35b43e){const _0x395a16={_0xeefdb7:0x4cc,_0x2a4a7c:0x15d,_0x1956de:0x1c0},_0x2d6b04={_0x425961:0x98},_0x430e41={_0x34465b:0x1c8,_0x52dfcd:0x130};function _0x2e5dd0(_0x26d9ea,_0x406301,_0x32738e,_0x31a3a5){return _0x2b6123(_0x406301,_0x406301-0x134,_0x32738e- -_0x430e41._0x34465b,_0x31a3a5-_0x430e41._0x52dfcd);}if(_0x35b43e?.[_0x3c8b4d(0x359,0x41c,0x4dc,_0x395a16._0xeefdb7)])return _0x35b43e[_0x3c8b4d(0x3a7,0x41c,0x48c,0x4d7)];function _0x3c8b4d(_0x2fddbd,_0x7699be,_0x423607,_0x5aeaea){return _0x38c793(_0x5aeaea,_0x7699be-0x133,_0x7699be- -_0x2d6b04._0x425961,_0x5aeaea-0x13d);}if(!_0x6bf615)return void 0x0;return{'kind':_0x2e5dd0(_0x395a16._0x2a4a7c,0x19c,_0x395a16._0x1956de,0x238),'value':_0x6bf615};}function resolveSessionBaseUrl(_0x101d46,_0x4e3258){const _0x437532={_0x2d6ea8:0xf,_0xd76074:0x6f,_0x2ba3d3:0xe1,_0x26c003:0x35},_0x5e0c7d={_0x30338b:0x3d2,_0x4e32fa:0xb1};function _0x51cb52(_0x1d9159,_0x5d8673,_0x55bc9f,_0x16cb95){return _0x38c793(_0x16cb95,_0x5d8673-0x168,_0x5d8673-0x26,_0x16cb95-0x4d);}function _0x1d9438(_0x4a230d,_0x3b5e2a,_0x3a16ba,_0x5b772c){return _0x38c793(_0x3a16ba,_0x3b5e2a-0xd5,_0x3b5e2a- -_0x5e0c7d._0x30338b,_0x5b772c-_0x5e0c7d._0x4e32fa);}return trimTrailingSlashes(_0x4e3258?.[_0x1d9438(-_0x437532._0x2d6ea8,_0x437532._0xd76074,-0x26,_0x437532._0x2ba3d3)]?.[_0x1d9438(0xb8,_0x437532._0x26c003,0x14,0xe5)]??_0x101d46);}function toErrorMessage(_0x356af5){const _0x3670da={_0x2460a2:0x3a4,_0x113c82:0x3d,_0x40e59e:0x55,_0x4ed865:0x88,_0x407317:0x7e,_0x23478e:0x19},_0x3257ee={_0x482972:0x319,_0x38190e:0x3f},_0x496a13={_0x1f556c:0x193,_0x358d7c:0xf2,_0x1b8ae2:0xd3};function _0x87d7c0(_0x4491b5,_0x4de173,_0x5a6fd0,_0x53e808){return _0x2b6123(_0x5a6fd0,_0x4de173-_0x496a13._0x1f556c,_0x4de173-_0x496a13._0x358d7c,_0x53e808-_0x496a13._0x1b8ae2);}function _0x18af36(_0x591f5a,_0x3e1576,_0x14fff3,_0x52c302){return _0x2b6123(_0x3e1576,_0x3e1576-0x160,_0x52c302- -_0x3257ee._0x482972,_0x52c302-_0x3257ee._0x38190e);}if(_0x356af5 instanceof Error&&_0x356af5[_0x87d7c0(0x431,_0x3670da._0x2460a2,0x3dc,0x330)][_0x18af36(-_0x3670da._0x113c82,-_0x3670da._0x40e59e,-_0x3670da._0x4ed865,-_0x3670da._0x407317)]>0x0)return _0x356af5['message'];return _0x18af36(0x98,0x29,0x81,_0x3670da._0x23478e);}function createDefaultWebSocketFactory(){const _0x235696={_0x7593d4:0x4af,_0x14aa57:0x480,_0xaddc2b:0x45a},_0x3400ae={_0x23632a:0x1f1};return({headers:_0xd88590,url:_0x2b7cec})=>{const _0x4f9906=globalThis[_0x4c2e6a(_0x235696._0x7593d4,0x55b,_0x235696._0x14aa57,_0x235696._0xaddc2b)];function _0x4c2e6a(_0x43ae71,_0xa6c685,_0x48cab8,_0x247a25){return _0x25f1(_0x43ae71-_0x3400ae._0x23632a,_0x48cab8);}return new _0x4f9906(_0x2b7cec,{'headers':_0xd88590,'protocols':[]});};}async function*iterateSseEvents(_0x13b3a7,_0x187dde){const _0x4a8a2a={_0x4b17cb:0x57,_0x10fd0d:0x277,_0x1fcf8c:0x1f1,_0x26da05:0xe3,_0x413f96:0x75,_0x50b235:0x106,_0xadf783:0x164,_0x5c35f0:0x1d8,_0x33f92e:0x82,_0x22484a:0x115,_0x28fcba:0x61,_0x1b14a8:0x24d,_0x1cfacf:0x2f2},_0x509e2b={_0x1f9742:0x168,_0x1faae3:0xc3,_0x5ee7c6:0xab,_0x5a07f5:0x3b},_0x3a0d90={_0x1c87da:0x17a,_0x479ccf:0x17,_0x4ec713:0x73},_0x2f2a1d={_0x372101:0x384},_0x76a1c5={_0x2dc4e4:0x29b};function _0x53b4b9(_0x3a4e37,_0x3083cd,_0x26eb83,_0x5a2d45){return _0x38c793(_0x26eb83,_0x3083cd-0x190,_0x3083cd- -_0x76a1c5._0x2dc4e4,_0x5a2d45-0x1cd);}const _0x566e91=_0x13b3a7[_0x53b4b9(0xec,0xd4,_0x4a8a2a._0x4b17cb,0x166)]?.[_0x53b4b9(_0x4a8a2a._0x10fd0d,_0x4a8a2a._0x1fcf8c,0x245,0x24b)]();if(!_0x566e91)return;function _0x545560(_0x52c75c,_0x54776d,_0x303d09,_0x4317bb){return _0x2b6123(_0x303d09,_0x54776d-0x1c7,_0x54776d- -_0x2f2a1d._0x372101,_0x4317bb-0x2a);}const _0x4ed76b=new TextDecoder('utf-8');let _0x4f239f='';const _0x86df66=addAbortListener(_0x187dde,()=>{const _0x5b8628={_0x5bd472:0x12b,_0x1aeae4:0x5b9};function _0x4791b8(_0x56e68f,_0x3eb37e,_0x58df0b,_0x469b36){return _0x545560(_0x56e68f-_0x5b8628._0x5bd472,_0x58df0b-_0x5b8628._0x1aeae4,_0x56e68f,_0x469b36-0x71);}function _0x393533(_0x398cca,_0x44f15e,_0x57b318,_0x13475a){return _0x545560(_0x398cca-_0x3a0d90._0x1c87da,_0x13475a-_0x3a0d90._0x479ccf,_0x398cca,_0x13475a-_0x3a0d90._0x4ec713);}void _0x566e91[_0x393533(-0x127,-_0x509e2b._0x1f9742,-0xfe,-_0x509e2b._0x1faae3)](toAbortError(_0x187dde?.[_0x393533(-0x29,_0x509e2b._0x5ee7c6,0x2f,_0x509e2b._0x5a07f5)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x187dde);const {value:_0x3adf1e,done:_0xec4b1a}=await _0x566e91['read']();throwIfAborted(_0x187dde);if(_0xec4b1a)break;_0x4f239f+=_0x4ed76b[_0x53b4b9(0x24b,0x24d,0x1a6,0x1bb)](_0x3adf1e,{'stream':!![]});while(!![]){const _0x1c5bd0=_0x4f239f[_0x545560(-_0x4a8a2a._0x26da05,-_0x4a8a2a._0x413f96,0x34,-_0x4a8a2a._0x50b235)]('\x0a\x0a');if(_0x1c5bd0===-0x1)break;const _0x24671a=_0x4f239f['slice'](0x0,_0x1c5bd0);_0x4f239f=_0x4f239f[_0x53b4b9(0x1f3,_0x4a8a2a._0xadf783,0x12b,0x13a)](_0x1c5bd0+0x2),_0x24671a[_0x53b4b9(_0x4a8a2a._0x5c35f0,0x137,_0x4a8a2a._0x33f92e,_0x4a8a2a._0x22484a)]()[_0x545560(-0x59,-0xe9,-_0x4a8a2a._0x28fcba,-0x24)]>0x0&&(yield _0x24671a);}}_0x4f239f+=_0x4ed76b[_0x53b4b9(0x29e,_0x4a8a2a._0x1b14a8,_0x4a8a2a._0x1cfacf,0x27d)](),throwIfAborted(_0x187dde),_0x4f239f['trim']()['length']>0x0&&(yield _0x4f239f);}finally{_0x86df66();}}async function waitForWebSocketOpen(_0x57d6e3,_0x3f93fc){const _0x1aa18f={_0x16b49e:0x24b,_0x51a5ae:0x35a,_0x5cefd9:0x35f,_0x3fab36:0x2c6,_0x5a1fff:0x23a,_0x85f8e6:0x1f9,_0x5c25ce:0x337},_0x33d5e6={_0x463d13:0xcc},_0x1f198e={_0x1b23bd:0x1de,_0x523fc6:0x138,_0x32030f:0xf0,_0x482da4:0xb2},_0x59e497={_0x418814:0x2cb};if(_0x57d6e3['readyState']===WebSocket['OPEN']){throwIfAborted(_0x3f93fc);return;}throwIfAborted(_0x3f93fc),await new Promise((_0x41af25,_0x44d26a)=>{const _0x14b1ad={_0x1e8335:0x106},_0x54cdd3={_0x1a1043:0x4ef,_0x54227d:0x551,_0x25a59f:0x527,_0x5ecfbf:0x276,_0xcfc670:0x2a9,_0x59b53a:0x321,_0x5af63b:0x2cc,_0x564722:0x274,_0x581f91:0x2ba,_0x40271b:0x2a3},_0x403706={_0xac61ea:0x29b},_0x15f24d={_0x529fcd:0x62},_0x1790dd={_0x213fb3:0x3af,_0x3ce66f:0x309},_0x377d84=()=>{_0x3648c7(),_0x41af25();},_0x5bac92=_0x2dad3f=>{const _0x53d47a={_0xf8720c:0x82};_0x3648c7();function _0x55c697(_0x5e32e8,_0x1f19db,_0x3f69ea,_0x37a54e){return _0x25f1(_0x3f69ea-_0x53d47a._0xf8720c,_0x1f19db);}_0x44d26a(new Error(_0x2dad3f['message']||_0x55c697(0x33b,0x22f,_0x59e497._0x418814,0x381)));},_0x21f341=_0x1983d3=>{const _0xc39286={_0xe82ee9:0x44};_0x3648c7();function _0x2e5946(_0xd63987,_0xdb78b4,_0x243062,_0x474b6e){return _0x25f1(_0xdb78b4-_0xc39286._0xe82ee9,_0xd63987);}const _0x24f0ba=_0x1983d3;_0x44d26a(new Error(_0x24f0ba[_0x2e5946(_0x1790dd._0x213fb3,0x303,_0x1790dd._0x3ce66f,0x388)]||'WebSocket\x20closed\x20before\x20opening'));},_0x283d20=()=>{_0x3648c7();function _0xaedc23(_0x1f6e20,_0x43744b,_0x409dc7,_0x231f86){return _0x25f1(_0x231f86- -0x391,_0x1f6e20);}_0x57d6e3[_0x1d4996(_0x1f198e._0x1b23bd,0x22d,0x29c,0x1d9)]===WebSocket[_0xaedc23(-_0x1f198e._0x523fc6,-0xea,-0x39,-_0x1f198e._0x32030f)]&&_0x57d6e3['close'](0x3e8,_0xaedc23(-0x15,-_0x1f198e._0x482da4,-0x13e,-0xc0));function _0x1d4996(_0x5ca1a5,_0x4fdded,_0x3bfc86,_0x199290){return _0x25f1(_0x4fdded-_0x15f24d._0x529fcd,_0x5ca1a5);}_0x44d26a(toAbortError(_0x3f93fc?.['reason']));},_0x3648c7=()=>{const _0x28a71d={_0x14b1a9:0x1d};function _0x2c269f(_0x3bcfee,_0x4aa065,_0x5c2b05,_0x23cd76){return _0x25f1(_0x3bcfee-_0x28a71d._0x14b1a9,_0x5c2b05);}_0x57d6e3['removeEventListener'](_0x33d03f(0x56c,_0x54cdd3._0x1a1043,_0x54cdd3._0x54227d,0x512),_0x377d84);function _0x33d03f(_0x460287,_0x2a26fd,_0x3fcdfb,_0x3a0d0b){return _0x25f1(_0x2a26fd-_0x403706._0xac61ea,_0x3a0d0b);}_0x57d6e3[_0x33d03f(0x4be,_0x54cdd3._0x25a59f,0x55a,0x4bc)](_0x2c269f(_0x54cdd3._0x5ecfbf,0x2b0,0x256,0x249),_0x5bac92),_0x57d6e3['removeEventListener'](_0x2c269f(0x209,0x216,0x14d,0x2b0),_0x21f341),_0x3f93fc?.[_0x2c269f(_0x54cdd3._0xcfc670,0x33b,_0x54cdd3._0x59b53a,_0x54cdd3._0x5af63b)](_0x2c269f(_0x54cdd3._0x564722,_0x54cdd3._0x581f91,0x1e3,_0x54cdd3._0x40271b),_0x283d20);};_0x57d6e3[_0x5e3142(0x2c5,0x346,_0x1aa18f._0x16b49e,0x342)](_0x5e3142(_0x1aa18f._0x51a5ae,0x2ef,0x391,0x34a),_0x377d84);function _0x4da2b4(_0x27b363,_0x3fa21b,_0xa5f9c6,_0xf2f290){return _0x25f1(_0xa5f9c6-_0x33d5e6._0x463d13,_0x27b363);}function _0x5e3142(_0x216379,_0x1c0838,_0x29880d,_0x252b40){return _0x25f1(_0x216379-_0x14b1ad._0x1e8335,_0x252b40);}_0x57d6e3['addEventListener'](_0x5e3142(_0x1aa18f._0x5cefd9,0x409,0x3e7,_0x1aa18f._0x3fab36),_0x5bac92),_0x57d6e3[_0x5e3142(0x2c5,0x2e9,0x220,0x2f0)]('close',_0x21f341),_0x3f93fc?.[_0x4da2b4(_0x1aa18f._0x5a1fff,_0x1aa18f._0x85f8e6,0x28b,_0x1aa18f._0x5c25ce)]('abort',_0x283d20,{'once':!![]});});}function iterateWebSocketMessages(_0x3cd1c2,_0x3c4c46){const _0x198e25={_0x4569d1:0x9,_0x1a04b3:0xd0,_0x56b28a:0x1,_0x5303b1:0x62,_0x52af88:0x11,_0x21804a:0xc6,_0x56b9de:0x1ad,_0x13c4d4:0x188,_0x51e1ea:0x5b,_0x13afff:0xee,_0x4379b0:0x73,_0x25a9bc:0xd9,_0x1001fd:0x7,_0x24930f:0x59,_0x5f20d2:0x29,_0xf0321f:0x2a,_0x1e3848:0x6a},_0x5cf113={_0x4e0192:0x5be,_0x5fdd27:0x56e,_0x1b4f4a:0x524,_0x3e1a38:0x6d6,_0x53c6f9:0x41d,_0x595573:0x3cd,_0x1b94c7:0x625,_0xa86424:0x5a7,_0x135feb:0x5d7,_0x2a9f69:0x585},_0x3edcc4={_0x4c68eb:0x152,_0x18703b:0xdf},_0x17feea={_0x32de48:0x25e,_0x26ee65:0x2c2,_0x314322:0x242,_0xd34d3e:0x1a4,_0x19d99e:0x17d,_0x33be60:0x42,_0x1bdab8:0xac,_0x535983:0x2b,_0x2a3234:0x6c,_0xfaacfb:0x29c,_0x216c70:0x92,_0x1d799d:0x7},_0x356495={_0x94ee79:0x5f7,_0x1380c1:0x612,_0x580c03:0x47d},_0x2edb29={_0x3cd5f7:0x130},_0x2c877a={_0x4955f4:0x4c2,_0x32d13e:0x54a,_0x167b65:0x403,_0x227522:0x608,_0x572a52:0x5cc,_0x20ad5f:0x637},_0x529f77={_0x59c3ec:0x2f9},_0x49f1f5={_0x193599:0x383},_0x529f15={_0x4c4ad6:0x157,_0x8eb20d:0x9b},_0x1ebe02={_0x79ff6c:0x3f2,_0x4a3d85:0x46c,_0x2c15a5:0x534,_0x49553d:0x3d7,_0x223bdb:0x241,_0x97eaf4:0x2c3},_0x2408ea=[];let _0x50e148=![],_0x29c96d,_0x31d18f;const _0x1adc22=_0x4231db=>{const _0x1b8682={_0x1dfa77:0x19};function _0x5d93d4(_0xb40def,_0x2649f8,_0x494698,_0x213359){return _0x25f1(_0x2649f8-0x25e,_0x494698);}function _0xb8186d(_0x463487,_0x12bd7b,_0x4c0e29,_0x44e4d5){return _0x25f1(_0x463487- -_0x1b8682._0x1dfa77,_0x12bd7b);}const _0x19b31d=_0x4231db;try{_0x2408ea[_0x5d93d4(0x471,0x489,_0x1ebe02._0x79ff6c,0x4ef)](JSON[_0x5d93d4(0x45b,_0x1ebe02._0x4a3d85,_0x1ebe02._0x2c15a5,_0x1ebe02._0x49553d)](String(_0x19b31d['data']))),_0x31d18f?.(),_0x31d18f=void 0x0;}catch(_0x95b4eb){_0x29c96d=new Error(_0xb8186d(_0x1ebe02._0x223bdb,0x218,0x225,_0x1ebe02._0x97eaf4)+toErrorMessage(_0x95b4eb)),_0x31d18f?.(),_0x31d18f=void 0x0;}};function _0x245c8e(_0x5ea19b,_0x453553,_0x27e652,_0x40b826){return _0x2b6123(_0x5ea19b,_0x453553-_0x529f15._0x4c4ad6,_0x27e652- -0x430,_0x40b826-_0x529f15._0x8eb20d);}const _0x2248cd=_0x3cc835=>{const _0x492735=_0x3cc835;function _0xa84928(_0x432e88,_0x475a49,_0x41412f,_0x425ed4){return _0x25f1(_0x475a49-_0x49f1f5._0x193599,_0x432e88);}function _0x4b33d0(_0x557402,_0x68c1fc,_0x299210,_0x1d4ebb){return _0x25f1(_0x557402-_0x529f77._0x59c3ec,_0x1d4ebb);}_0x29c96d=new Error(_0x492735[_0x4b33d0(_0x2c877a._0x4955f4,_0x2c877a._0x32d13e,0x534,_0x2c877a._0x167b65)]||_0xa84928(_0x2c877a._0x227522,_0x2c877a._0x572a52,_0x2c877a._0x20ad5f,0x5ab)),_0x31d18f?.(),_0x31d18f=void 0x0;},_0x27e5bc=_0x413fbf=>{function _0x3c1a65(_0x121e6e,_0x48d6e9,_0xebd8ff,_0x1866cf){return _0x25f1(_0xebd8ff-_0x2edb29._0x3cd5f7,_0x121e6e);}const _0x124ba8=_0x413fbf;function _0x2eaf45(_0x2e4dc7,_0x4575a8,_0x15b901,_0x12e5b9){return _0x25f1(_0x2e4dc7-0x322,_0x15b901);}!_0x50e148&&_0x124ba8[_0x2eaf45(_0x356495._0x94ee79,0x68b,_0x356495._0x1380c1,0x581)]!==0x3e8&&!_0x29c96d&&(_0x29c96d=new Error(_0x124ba8['reason']||_0x3c1a65(_0x356495._0x580c03,0x381,0x3dd,0x3b4)+_0x124ba8[_0x2eaf45(0x5f7,0x695,0x6bd,0x543)])),_0x50e148=!![],_0x31d18f?.(),_0x31d18f=void 0x0;},_0x4eab76=addAbortListener(_0x3c4c46,()=>{_0x29c96d=toAbortError(_0x3c4c46?.[_0x201f19(_0x17feea._0x32de48,0x312,_0x17feea._0x26ee65,_0x17feea._0x314322)]);_0x3cd1c2[_0x55b2f1(-_0x17feea._0xd34d3e,-0x101,-_0x17feea._0x19d99e,-_0x17feea._0x33be60)]===WebSocket[_0x55b2f1(-_0x17feea._0x1bdab8,-_0x17feea._0x535983,0x1a,_0x17feea._0x2a3234)]&&_0x3cd1c2[_0x201f19(0x157,_0x17feea._0xfaacfb,0x1ef,0x1da)](0x3e8,_0x55b2f1(0x21,0x5,-_0x17feea._0x216c70,-_0x17feea._0x1d799d));_0x31d18f?.();function _0x201f19(_0x54f810,_0x21f022,_0x3ccfc8,_0x1f25d4){return _0x25f1(_0x3ccfc8-0x3,_0x1f25d4);}function _0x55b2f1(_0x16ac19,_0x18e1df,_0x20c6ae,_0x46a48d){return _0x25f1(_0x18e1df- -0x2cc,_0x20c6ae);}_0x31d18f=void 0x0;});_0x3cd1c2[_0x20c087(-_0x198e25._0x4569d1,-_0x198e25._0x1a04b3,0x8e,-0x29)](_0x20c087(_0x198e25._0x56b28a,_0x198e25._0x5303b1,_0x198e25._0x52af88,_0x198e25._0x21804a),_0x1adc22),_0x3cd1c2[_0x245c8e(-0x251,-_0x198e25._0x56b9de,-_0x198e25._0x13c4d4,-0x1c3)](_0x245c8e(-_0x198e25._0x51e1ea,-0x1a5,-_0x198e25._0x13afff,-_0x198e25._0x4379b0),_0x2248cd),_0x3cd1c2['addEventListener'](_0x20c087(0x24,_0x198e25._0x25a9bc,_0x198e25._0x1001fd,-_0x198e25._0x24930f),_0x27e5bc);function _0x20c087(_0x1e6a58,_0x353729,_0x276def,_0x1a688d){return _0x2b6123(_0x353729,_0x353729-0x154,_0x1e6a58- -0x2b1,_0x1a688d-0x1c7);}return{async*[Symbol[_0x20c087(_0x198e25._0x4569d1,-_0x198e25._0x5f20d2,-_0x198e25._0xf0321f,_0x198e25._0x1e3848)]](){const _0x5c5606={_0x1cb42a:0xd6};function _0x2f46be(_0x54d86a,_0xfc8bb1,_0x3f9af9,_0x430c37){return _0x20c087(_0x3f9af9-0x561,_0x54d86a,_0x3f9af9-_0x5c5606._0x1cb42a,_0x430c37-0x186);}function _0x129571(_0x206ed1,_0x372aa0,_0xc48a41,_0x47ee5a){return _0x245c8e(_0xc48a41,_0x372aa0-_0x3edcc4._0x4c68eb,_0x372aa0-0x5f8,_0x47ee5a-_0x3edcc4._0x18703b);}try{while(!![]){if(_0x29c96d)throw _0x29c96d;if(_0x2408ea['length']>0x0){yield _0x2408ea[_0x2f46be(0x607,_0x5cf113._0x4e0192,_0x5cf113._0x5fdd27,_0x5cf113._0x1b4f4a)]();continue;}if(_0x50e148)break;await new Promise(_0x107779=>{_0x31d18f=_0x107779;});}}finally{_0x3cd1c2[_0x2f46be(_0x5cf113._0x3e1a38,0x67c,0x625,0x5c1)](_0x129571(_0x5cf113._0x53c6f9,0x47a,0x43a,_0x5cf113._0x595573),_0x1adc22),_0x3cd1c2[_0x2f46be(0x5ae,0x5ce,_0x5cf113._0x1b94c7,0x6ea)](_0x2f46be(0x565,0x568,0x5f2,_0x5cf113._0xa86424),_0x2248cd),_0x3cd1c2['removeEventListener'](_0x2f46be(_0x5cf113._0x135feb,0x5ac,_0x5cf113._0x2a9f69,0x586),_0x27e5bc),_0x4eab76();}}};}function toWebSocketUrl(_0x308e1c,_0x6eca10){const _0x3e76ef={_0x5ebdde:0x492,_0x264cb6:0x4ce,_0x34bc2e:0x460,_0x1aa2ad:0x479,_0xf80d83:0x537,_0x5c9e05:0x516,_0x4f18cf:0x3cb},_0x3a7b53={_0x372599:0x64,_0x4a7289:0xa},_0xba05f={_0x3e7193:0x47f},_0x337799=new URL(_0x6eca10,_0x308e1c);function _0x4961d5(_0x42e698,_0x83529e,_0x26881b,_0x2c9aaf){return _0x2b6123(_0x83529e,_0x83529e-0x48,_0x42e698- -_0xba05f._0x3e7193,_0x2c9aaf-0x1aa);}function _0x54046a(_0x21a8c3,_0x99c35d,_0x947033,_0x3a7e23){return _0x2b6123(_0x99c35d,_0x99c35d-_0x3a7b53._0x372599,_0x21a8c3-0x1e5,_0x3a7e23-_0x3a7b53._0x4a7289);}return _0x337799['protocol']=_0x337799['protocol']===_0x54046a(0x40e,_0x3e76ef._0x5ebdde,0x368,0x450)?_0x54046a(0x48c,0x4ba,0x519,_0x3e76ef._0x264cb6):_0x54046a(0x437,0x3a9,_0x3e76ef._0x34bc2e,0x47d),_0x337799[_0x54046a(_0x3e76ef._0x1aa2ad,_0x3e76ef._0xf80d83,_0x3e76ef._0x5c9e05,_0x3e76ef._0x4f18cf)]();}var ProviderSessionManager=class{[_0x2b6123(0x403,0x289,0x341,0x32a)];[_0x38c793(0x482,0x4ed,0x494,0x53a)];constructor(_0x6e3947){const _0x1ac21a={_0x1c3465:0x1c6,_0x203279:0x140},_0x4b12d4={_0x12cd61:0xe2,_0x1d3577:0x16b};function _0x423bc2(_0x489a2c,_0x2f4a25,_0x3f65d5,_0x337db5){return _0x2b6123(_0x2f4a25,_0x2f4a25-_0x4b12d4._0x12cd61,_0x337db5- -0x481,_0x337db5-_0x4b12d4._0x1d3577);}this[_0x423bc2(-0x179,-0x193,-_0x1ac21a._0x1c3465,-_0x1ac21a._0x203279)]=_0x6e3947;}async['resolve'](_0x124ea8){const _0x59eeb1={_0x52948d:0x248,_0x2277e5:0x2d4,_0x565a38:0x183,_0x3648d9:0x1ae,_0x2eedb9:0x1c0},_0x51fb7a={_0x31304a:0x11b};function _0x4cd285(_0x13647e,_0xcf8308,_0x2d5175,_0x3352bb){return _0x38c793(_0x2d5175,_0xcf8308-0x126,_0x13647e- -0x236,_0x3352bb-0x8f);}!this[_0x4cd285(0x25e,_0x59eeb1._0x52948d,_0x59eeb1._0x2277e5,0x296)]&&(this[_0x3e107b(-0xd3,-0x106,-0x154,-0x37)]=this[_0x3e107b(-0xf6,-_0x59eeb1._0x565a38,-_0x59eeb1._0x3648d9,-_0x59eeb1._0x2eedb9)][_0x3e107b(-0x96,-0x2a,0x4,-0x118)](_0x124ea8));function _0x3e107b(_0x15ff98,_0x40904d,_0x5821bd,_0x4292b7){return _0x38c793(_0x5821bd,_0x40904d-0x2,_0x15ff98- -0x567,_0x4292b7-_0x51fb7a._0x31304a);}return structuredClone(await this['cached']);}['invalidate'](){const _0x335087={_0x4f9bb0:0xe4,_0x2a4821:0x3c},_0x46a80b={_0xbc6a2f:0x40,_0x481c1d:0x3cd};function _0x45bd1f(_0x532b17,_0x8cfad7,_0x4d9a25,_0x722975){return _0x2b6123(_0x532b17,_0x8cfad7-_0x46a80b._0xbc6a2f,_0x4d9a25- -_0x46a80b._0x481c1d,_0x722975-0xe6);}this[_0x45bd1f(-_0x335087._0x4f9bb0,-0xb7,-0x69,-_0x335087._0x2a4821)]=void 0x0;}};async function prepareProviderRequest(_0x53895f,_0x1b44dd={}){const _0x1e1523={_0x125094:0x2a3,_0x30ad18:0x1f0,_0x3852f3:0x225,_0x3b8fb3:0x21c,_0x239046:0x146,_0x1384ae:0x160,_0x5a2f72:0x196,_0x3aba3e:0xbd,_0x33fc12:0x158},_0x4b691e={_0x25b34c:0x82};function _0x4dcc2c(_0x1ca7e5,_0x42142e,_0x24eb5e,_0x174936){return _0x2b6123(_0x1ca7e5,_0x42142e-0x196,_0x24eb5e- -0x1c4,_0x174936-0x18);}function _0x475da2(_0x29cc66,_0x1e1494,_0x2ce258,_0x2600df){return _0x38c793(_0x1e1494,_0x1e1494-0xd6,_0x2600df- -0x2ee,_0x2600df-_0x4b691e._0x25b34c);}let _0x242b0c={'request':structuredClone(_0x53895f),'session':_0x1b44dd[_0x4dcc2c(0x1ce,_0x1e1523._0x125094,_0x1e1523._0x30ad18,_0x1e1523._0x3852f3)]?await _0x1b44dd[_0x4dcc2c(_0x1e1523._0x3b8fb3,_0x1e1523._0x239046,0x1f0,0x21f)]['resolve'](_0x1b44dd['signal']):void 0x0};for(const _0x2a3763 of _0x1b44dd[_0x475da2(_0x1e1523._0x1384ae,_0x1e1523._0x5a2f72,_0x1e1523._0x3aba3e,_0x1e1523._0x33fc12)]??[]){_0x242b0c=await _0x2a3763(_0x242b0c);}return _0x242b0c;}var RoutedModel=class{[_0x38c793(0x51c,0x4a9,0x4ac,0x4e2)];[_0x2b6123(0x1e9,0x1b0,0x26f,0x312)];[_0x38c793(0x498,0x3f2,0x499,0x524)];['apiKey'];[_0x2b6123(0x37a,0x356,0x399,0x463)];['fetchImpl'];[_0x38c793(0x32f,0x2e4,0x36e,0x3b7)];['requestMutators'];[_0x2b6123(0x1ef,0x262,0x27d,0x1dc)];[_0x2b6123(0x360,0x314,0x3b4,0x458)];[_0x2b6123(0x3a6,0x36d,0x3ab,0x3a6)];[_0x2b6123(0x345,0x319,0x2fb,0x3a5)]=new Map();constructor(_0x4284b0){const _0x1f43d6={_0x2238d:0x471,_0x54ac0c:0x417,_0x5ee0ec:0x3f8,_0xc11dd6:0x3f2,_0x38f177:0x425,_0x525a93:0x314,_0x2d47b2:0x200,_0x607f35:0x45e,_0x1ac183:0x442,_0x2fddcf:0x43b,_0x56f231:0x38e,_0x5b8c4e:0x48e,_0x1f9478:0x544,_0x1cbfdf:0x4fc,_0x2a203e:0x2ab,_0x2c3bab:0x452,_0x5952bb:0x3ad,_0x533bcc:0x4c2,_0x18dd2e:0x210,_0xaa497a:0x1c0,_0x43f198:0xf1,_0xb866c1:0x123,_0x1e75a8:0x40b,_0x340d9c:0x4bb,_0x5485e8:0x482,_0xcf7f6f:0x385,_0x37472b:0x360,_0x4602cc:0x2b6,_0x9f7141:0x331,_0x3fe097:0x3cf,_0x2b0011:0x130,_0x13cffa:0x189,_0x11ad19:0x9f,_0x175280:0x267,_0x5dcedc:0x343,_0x92257c:0x3a0,_0x5e6619:0x4a0,_0x509339:0x47a,_0x514980:0x25e,_0x1f6897:0x3f0,_0x3285b0:0x3ee},_0x2f4853={_0x17e8c9:0x3d,_0x22898e:0x5f},_0x3eaf1e={_0x33e9a7:0x111,_0x5022db:0xf5,_0x1b73e4:0xd};this['model']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2238d,0x513,_0x1f43d6._0x54ac0c,_0x1f43d6._0x5ee0ec)],this[_0x5e0b74(0x364,_0x1f43d6._0xc11dd6,0x3ee,_0x1f43d6._0x38f177)]=_0x4284b0[_0x5e0b74(0x364,0x3dd,0x2af,_0x1f43d6._0x525a93)]??0x4000,this[_0x5e7bea(0x21c,0x15f,_0x1f43d6._0x2d47b2,0x282)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x607f35,0x49a,0x3c1,_0x1f43d6._0x1ac183)]?structuredClone(_0x4284b0[_0x5e0b74(0x45e,0x3e4,0x4ae,_0x1f43d6._0x2fddcf)]):void 0x0,this[_0x5e0b74(0x3fc,0x364,_0x1f43d6._0x56f231,0x3ee)]=_0x4284b0['apiKey'],this['baseUrl']=_0x4284b0[_0x5e0b74(_0x1f43d6._0x5b8c4e,0x50b,_0x1f43d6._0x1f9478,_0x1f43d6._0x1cbfdf)],this[_0x5e0b74(0x35e,0x3e4,_0x1f43d6._0x2a203e,0x3b9)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x2c3bab,_0x1f43d6._0x5952bb,_0x1f43d6._0x533bcc,0x480)]??globalThis[_0x5e7bea(_0x1f43d6._0x18dd2e,_0x1f43d6._0xaa497a,0x2d5,0x146)],this['providerAdapter']=_0x4284b0[_0x5e7bea(_0x1f43d6._0x43f198,0x107,0xd6,_0x1f43d6._0xb866c1)],this[_0x5e0b74(_0x1f43d6._0x1e75a8,0x3a7,_0x1f43d6._0x340d9c,_0x1f43d6._0x5485e8)]=_0x4284b0[_0x5e0b74(_0x1f43d6._0x1e75a8,_0x1f43d6._0xcf7f6f,0x4ad,_0x1f43d6._0x37472b)]??[];function _0x5e0b74(_0x535fca,_0x401755,_0x33f63b,_0xb8402c){return _0x2b6123(_0xb8402c,_0x401755-_0x3eaf1e._0x33e9a7,_0x535fca-_0x3eaf1e._0x5022db,_0xb8402c-_0x3eaf1e._0x1b73e4);}this[_0x5e0b74(0x372,_0x1f43d6._0x4602cc,_0x1f43d6._0x9f7141,_0x1f43d6._0x3fe097)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x2b0011,_0x1f43d6._0x13cffa,0x14e,_0x1f43d6._0x11ad19)];function _0x5e7bea(_0x52b375,_0x55b01f,_0xdd10e3,_0x4e7295){return _0x2b6123(_0x55b01f,_0x55b01f-_0x2f4853._0x17e8c9,_0x52b375- -0x14d,_0x4e7295-_0x2f4853._0x22898e);}this[_0x5e7bea(_0x1f43d6._0x175280,0x2de,0x241,0x1d8)]=_0x4284b0['sessionManager']??(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x3d6,0x3fc,0x343)]?new ProviderSessionManager(_0x4284b0[_0x5e0b74(_0x1f43d6._0x5dcedc,0x2a6,0x3e3,_0x1f43d6._0x92257c)]):void 0x0),this[_0x5e0b74(_0x1f43d6._0x5e6619,_0x1f43d6._0x509339,0x3f1,0x4ee)]=_0x4284b0[_0x5e7bea(_0x1f43d6._0x514980,0x1b4,0x217,0x230)]??createDefaultWebSocketFactory();for(const _0x15d392 of _0x4284b0['surfaces']){this[_0x5e0b74(_0x1f43d6._0x1f6897,0x4a2,_0x1f43d6._0x3285b0,0x36c)]['set'](_0x15d392['id'],_0x15d392);}}['complete'](_0x2557d7,_0x48c980){const _0x52f91a={_0x2d1981:0x14d,_0x6d850d:0x79};function _0x5f1954(_0x5a5b95,_0x5c49d4,_0x2a4af5,_0x23057f){return _0x38c793(_0x2a4af5,_0x5c49d4-_0x52f91a._0x2d1981,_0x5a5b95-_0x52f91a._0x6d850d,_0x23057f-0x115);}return this[_0x5f1954(0x441,0x39b,0x3f7,0x484)](_0x2557d7,_0x48c980);}[_0x38c793(0x3fd,0x43b,0x479,0x4d4)](_0x240da8,_0x25ca27){const _0x146497={_0x1fa415:0x5df,_0x50ad4c:0x5ad,_0x5d6ae3:0x53b};function _0xe857d7(_0x3a17f7,_0x314e2d,_0x135e57,_0x4e6941){return _0x2b6123(_0x4e6941,_0x314e2d-0x175,_0x135e57-0x191,_0x4e6941-0xf5);}return this[_0xe857d7(_0x146497._0x1fa415,_0x146497._0x50ad4c,_0x146497._0x5d6ae3,0x5b0)](_0x240da8,_0x25ca27);}async['completeViaRouter'](_0x3dc059,_0x32b93b){const _0x2b8fef={_0x51b4ce:0x9e,_0x32941d:0x77,_0x1dcf5b:0x97,_0x5619a3:0x66,_0x95271b:0xd8,_0x511fa6:0x127,_0x4efbe5:0x33,_0x2bc98a:0x9c,_0x17ead0:0x148,_0x4640b1:0x2d},_0xea8b5={_0x5ae274:0x152,_0x1fde71:0x1d0,_0x7b822:0x16d},_0x1c0660={_0x2644c1:0x3ac,_0x56c197:0x176};function _0x1a91a1(_0x1f1d1a,_0x1f51e2,_0xab9140,_0x4cd6b1){return _0x2b6123(_0x1f1d1a,_0x1f51e2-0x1a0,_0x4cd6b1- -_0x1c0660._0x2644c1,_0x4cd6b1-_0x1c0660._0x56c197);}const _0x235b78=this[_0x1a91a1(0x16,-_0x2b8fef._0x51b4ce,0x4d,-_0x2b8fef._0x32941d)](_0x3dc059),_0x49f103=await this[_0x7ad778(0xad,_0x2b8fef._0x1dcf5b,_0x2b8fef._0x5619a3,_0x2b8fef._0x95271b)][_0x7ad778(0xdf,_0x2b8fef._0x511fa6,_0x2b8fef._0x4efbe5,_0x2b8fef._0x2bc98a)](_0x235b78,{'mode':_0x1a91a1(-0x43,-_0x2b8fef._0x17ead0,_0x2b8fef._0x4640b1,-_0x2b8fef._0x1dcf5b)});function _0x7ad778(_0x30cb9b,_0x283971,_0xb6cc7c,_0x3f3a4d){return _0x2b6123(_0x3f3a4d,_0x283971-_0xea8b5._0x5ae274,_0x30cb9b- -_0xea8b5._0x1fde71,_0x3f3a4d-_0xea8b5._0x7b822);}return this[_0x1a91a1(-0x10f,-0xaf,0x16,-0x5b)](_0x235b78,_0x49f103,_0x32b93b);}async*[_0x2b6123(0x3fb,0x36a,0x3aa,0x30b)](_0x1367e3,_0x20f9b0){const _0x42c4c7={_0x24c209:0x343,_0x307f9d:0xcc,_0x1c9e0e:0xdb,_0xd4332b:0x82,_0x45a1f4:0x234,_0x3efddc:0x225,_0x40ecc3:0x249,_0x24e3e8:0x2ce,_0x154a8b:0x1d6},_0x52a281={_0x1c9d9c:0x6c,_0x39a571:0x2ea,_0x212770:0x190},_0x425a21=this[_0x22ea9f(0x2ba,0x239,0x2b4,_0x42c4c7._0x24c209)](_0x1367e3);function _0x3217aa(_0x214472,_0x98f310,_0x5e70ed,_0x5ae0fb){return _0x2b6123(_0x5e70ed,_0x98f310-_0x52a281._0x1c9d9c,_0x5ae0fb- -_0x52a281._0x39a571,_0x5ae0fb-_0x52a281._0x212770);}function _0x22ea9f(_0xbb8f70,_0x329cf9,_0x4a9d47,_0x3ea1bf){return _0x2b6123(_0x3ea1bf,_0x329cf9-0xea,_0xbb8f70- -0x7b,_0x3ea1bf-0x5d);}const _0x29f5de=await this[_0x3217aa(-_0x42c4c7._0x307f9d,-_0x42c4c7._0x1c9e0e,-_0x42c4c7._0xd4332b,-0x6d)][_0x22ea9f(_0x42c4c7._0x45a1f4,_0x42c4c7._0x3efddc,_0x42c4c7._0x40ecc3,0x1a3)](_0x425a21,{'mode':_0x22ea9f(_0x42c4c7._0x24e3e8,0x28d,0x30e,0x32e)});yield*this[_0x22ea9f(_0x42c4c7._0x154a8b,0x18d,0x23a,0x197)](_0x425a21,_0x29f5de,_0x20f9b0);}async['completeViaSurface'](_0x45b43e,_0x3ca22b,_0x552583){const _0x1f6a80={_0x40f8f6:0x132,_0x18a6b8:0x204,_0x33cf12:0x135,_0x35aee8:0x185,_0x5d2495:0x7d,_0x453ab2:0x246,_0x2fa936:0x204,_0x48a730:0x1dc,_0x3ee904:0x155,_0x1e94b3:0xd4,_0x3c2e24:0x176,_0x62f61b:0x1a7,_0x4652da:0x189,_0x163a80:0x1ed,_0x257115:0x14e,_0x14acad:0xe9,_0x4f012d:0xb,_0x23fbe6:0x64,_0x16fee9:0x17a,_0x3a360b:0x183,_0x88b211:0x1d4,_0x2b87e7:0x1bf,_0x2a6766:0x169,_0x354911:0x1c2,_0x375f1f:0x1ac,_0x310a51:0x9c,_0x1b8ecb:0x1f3,_0x1d32c5:0x16d,_0x544b3c:0xbe,_0x514dfa:0x218,_0x23067e:0x22f,_0xe18477:0x1eb,_0x261e8e:0x1e3},_0x188590={_0x57f49f:0x12d,_0x3a58a9:0x45d,_0x1f917c:0xaf},_0x45a8c9={_0x54a9a6:0x14f,_0x5b1793:0x140};function _0x31c880(_0x30efb4,_0x2171dc,_0x1c7060,_0x1bacc3){return _0x38c793(_0x2171dc,_0x2171dc-_0x45a8c9._0x54a9a6,_0x30efb4- -0x2b4,_0x1bacc3-_0x45a8c9._0x5b1793);}function _0x547b16(_0x3c83ae,_0x194b46,_0x39a2a3,_0x1b132a){return _0x2b6123(_0x1b132a,_0x194b46-_0x188590._0x57f49f,_0x39a2a3- -_0x188590._0x3a58a9,_0x1b132a-_0x188590._0x1f917c);}const _0x34ff21=this[_0x31c880(0x1b1,_0x1f6a80._0x40f8f6,_0x1f6a80._0x18a6b8,0x11e)](_0x45b43e),_0x16fffb=this['getSurface'](_0x3ca22b);if(_0x16fffb[_0x31c880(_0x1f6a80._0x33cf12,0x19b,_0x1f6a80._0x35aee8,_0x1f6a80._0x5d2495)]===_0x547b16(-_0x1f6a80._0x453ab2,-0x2cc,-_0x1f6a80._0x2fa936,-_0x1f6a80._0x48a730)){const _0x2f622d=await this['sendHttpSurfaceRequest'](_0x34ff21,_0x16fffb,![],_0x552583?.[_0x31c880(_0x1f6a80._0x3ee904,0x143,_0x1f6a80._0x1e94b3,_0x1f6a80._0x3c2e24)]);if(!_0x2f622d['ok'])throw await this[_0x547b16(-_0x1f6a80._0x62f61b,-_0x1f6a80._0x4652da,-0x105,-0x189)](_0x2f622d);if(!_0x16fffb[_0x31c880(0x1e7,_0x1f6a80._0x163a80,0x178,0x11e)])throw new Error(_0x547b16(-_0x1f6a80._0x257115,-0xd,-0xc1,-0x39)+_0x3ca22b+_0x547b16(-_0x1f6a80._0x14acad,_0x1f6a80._0x4f012d,-0xb7,-0x14a));return _0x16fffb[_0x547b16(-0x44,-0xdf,-0xf2,-_0x1f6a80._0x23fbe6)](await _0x2f622d[_0x547b16(-_0x1f6a80._0x16fee9,-_0x1f6a80._0x3a360b,-_0x1f6a80._0x88b211,-0x15b)](),_0x34ff21);}let _0x15ebce;for await(const _0x30a447 of this[_0x547b16(-_0x1f6a80._0x2b87e7,-_0x1f6a80._0x2a6766,-0x20c,-_0x1f6a80._0x354911)](_0x34ff21,_0x3ca22b,_0x552583)){_0x30a447[_0x31c880(0x13b,_0x1f6a80._0x375f1f,_0x1f6a80._0x310a51,_0x1f6a80._0x1b8ecb)]===_0x31c880(_0x1f6a80._0x1d32c5,0x1a3,_0x1f6a80._0x544b3c,0x233)&&(_0x15ebce=_0x30a447['response']);}if(!_0x15ebce)throw new Error(_0x31c880(_0x1f6a80._0x514dfa,_0x1f6a80._0x23067e,0x162,0x24e)+_0x3ca22b+_0x31c880(_0x1f6a80._0xe18477,0x270,_0x1f6a80._0x261e8e,0x1eb));return _0x15ebce;}async*[_0x2b6123(0x1c6,0x286,0x251,0x288)](_0x30b49e,_0x1686d8,_0x264f71){const _0x1f9288={_0x14a003:0x28,_0x558bb4:0x25,_0x20db06:0x1b0,_0x5555ba:0xc0,_0x4e583c:0xeb,_0x24c962:0xdd,_0x4aa98f:0x148,_0x4fe27d:0x11e,_0x1ae7ea:0x139,_0x4ca8c5:0x18b,_0x30c69a:0x1f7,_0x43d560:0x69,_0x38e714:0x11b,_0xa3d149:0xcf,_0x45f978:0x128,_0x406307:0x160,_0x1b5381:0xa1,_0xe53e25:0x172,_0x41f701:0xbe,_0x135c6e:0x67,_0xad1b1e:0xb7},_0x2d24bc={_0x37c918:0x4c6,_0x3f33f2:0x1c1},_0x4bca05={_0xddb3b7:0x114};function _0x342a67(_0x32418d,_0x3aa56a,_0x2aaf54,_0x958fe3){return _0x38c793(_0x32418d,_0x3aa56a-_0x4bca05._0xddb3b7,_0x958fe3- -0x2c1,_0x958fe3-0x168);}const _0x10014f=this[_0x1be058(-_0x1f9288._0x14a003,0x53,-_0x1f9288._0x558bb4,-0x61)](_0x30b49e);function _0x1be058(_0x3bb915,_0x4cfe12,_0x36b702,_0x12d0d2){return _0x38c793(_0x3bb915,_0x4cfe12-0x7e,_0x12d0d2- -_0x2d24bc._0x37c918,_0x12d0d2-_0x2d24bc._0x3f33f2);}const _0x5dfddb=this[_0x342a67(0x27d,_0x1f9288._0x20db06,0x279,0x202)](_0x1686d8);if(_0x5dfddb[_0x1be058(-_0x1f9288._0x5555ba,-0x118,-_0x1f9288._0x4e583c,-_0x1f9288._0x24c962)]===_0x342a67(_0x1f9288._0x4aa98f,_0x1f9288._0x4fe27d,_0x1f9288._0x1ae7ea,0xc8)){yield{'type':_0x342a67(_0x1f9288._0x4ca8c5,0xfc,_0x1f9288._0x30c69a,0x160),'response':await this[_0x1be058(_0x1f9288._0x43d560,0x2a,0x2e,-0x45)](_0x10014f,_0x1686d8,_0x264f71)};return;}if(_0x5dfddb[_0x342a67(0xa4,_0x1f9288._0x38e714,_0x1f9288._0xa3d149,_0x1f9288._0x45f978)]===_0x342a67(0x110,0x64,_0x1f9288._0x406307,_0x1f9288._0x1b5381)){yield*this[_0x342a67(_0x1f9288._0xe53e25,0x250,0x1a5,0x1ef)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x342a67(0x1c7,_0x1f9288._0x41f701,_0x1f9288._0x20db06,0x148)]);return;}yield*this[_0x1be058(0x29,0x62,_0x1f9288._0x135c6e,-_0x1f9288._0x558bb4)](_0x10014f,_0x5dfddb,_0x264f71?.[_0x1be058(-_0x1f9288._0xad1b1e,-0x130,-0x1f,-0xbd)]);}async[_0x38c793(0x36b,0x3b0,0x40d,0x4c7)](_0x2c3cc8){const _0xf210b3={_0xf4b146:0x3bf,_0x3ca674:0x4fa,_0x18c904:0x1c2,_0x47d154:0x227,_0x2b4715:0x30f},_0x11c3ae={_0x581b70:0x4a9,_0x5f5dde:0x49b,_0x38a36c:0x390,_0x4b49b8:0x3fd,_0x517cbe:0x39c,_0x446a76:0x394,_0xc460fe:0xfb,_0x2cc7a2:0x111,_0x134593:0xd6,_0x1bd035:0xb9,_0x5c38b8:0xde,_0x5ab02e:0x1a7,_0x54f293:0x1a1,_0x20bee8:0x196,_0x42973a:0x1c2,_0x2c421e:0x151,_0x31e18c:0x2d3,_0x282b35:0x242,_0x2e324c:0x279,_0x4b0140:0x205,_0x2bf8c2:0x440,_0x4cdbc7:0x468,_0x2af937:0x353,_0x4ff975:0x31b,_0x1b436b:0x493,_0x541103:0x489,_0x161bd7:0xb7,_0x2cb2c0:0x6a,_0x520f90:0x101,_0x5f1f23:0x153,_0x357269:0x1e2},_0x57e024={_0x51be6b:0x91,_0xaaa869:0x23c,_0x4005c0:0xbd};function _0x24a7be(_0x294a46,_0x3c8909,_0x3275e3,_0x4b7d48){return _0x2b6123(_0x4b7d48,_0x3c8909-_0x57e024._0x51be6b,_0x3275e3- -_0x57e024._0xaaa869,_0x4b7d48-_0x57e024._0x4005c0);}const _0x512b29=async()=>{const _0x42567d=this[_0x5b5674(0x418,0x3f1,_0x11c3ae._0x581b70,0x483)]?await this[_0x5b5674(_0x11c3ae._0x5f5dde,0x3d6,0x483,0x483)]['resolve'](_0x2c3cc8[_0x5b5674(0x388,_0x11c3ae._0x38a36c,_0x11c3ae._0x4b49b8,0x3a8)]):void 0x0,_0x2f2345=this[_0x5b5674(_0x11c3ae._0x517cbe,0x2ac,0x2db,0x30d)]['resolveCredential'](this['apiKey'],_0x42567d);if(!_0x2f2345)throw this[_0x5b5674(0x458,0x347,0x2d3,_0x11c3ae._0x446a76)]();const _0x12c64f=await this[_0x45a066(0xdf,_0x11c3ae._0xc460fe,_0x11c3ae._0x2cc7a2,_0x11c3ae._0x134593)]({'body':_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0x8f,-0xc,_0x11c3ae._0x5c38b8)],'credential':_0x2f2345,'session':_0x42567d,'stream':![]},{'accept':_0x2c3cc8[_0x45a066(0x19a,0x1fd,_0x11c3ae._0x5ab02e,_0x11c3ae._0x54f293)]??'application/json','includeContentType':_0x2c3cc8[_0x5b5674(0x3d4,_0x11c3ae._0x517cbe,0x411,0x3c9)]===_0x45a066(_0x11c3ae._0x20bee8,0x246,_0x11c3ae._0x42973a,_0x11c3ae._0x2c421e)});function _0x5b5674(_0x3b43d2,_0x5411e3,_0x5945b7,_0x397e0e){return _0x25f1(_0x397e0e-0x1b8,_0x3b43d2);}function _0x45a066(_0x5a2103,_0x11a151,_0x23d839,_0x4dcb02){return _0x25f1(_0x5a2103- -0x9d,_0x23d839);}return this[_0x5b5674(0x292,0x3ca,_0x11c3ae._0x31e18c,0x338)](''+this[_0x5b5674(0x390,_0x11c3ae._0x282b35,_0x11c3ae._0x2e324c,0x30d)][_0x45a066(_0x11c3ae._0x4b0140,0x1e4,0x171,0x27b)](this[_0x5b5674(0x469,0x418,_0x11c3ae._0x2bf8c2,_0x11c3ae._0x4cdbc7)],_0x42567d)+_0x2c3cc8[_0x5b5674(_0x11c3ae._0x2af937,0x2be,0x344,_0x11c3ae._0x4ff975)],{'method':_0x2c3cc8[_0x5b5674(0x370,_0x11c3ae._0x1b436b,_0x11c3ae._0x541103,0x3c9)],'headers':_0x12c64f,..._0x2c3cc8['body']!==void 0x0?{'body':JSON[_0x45a066(_0x11c3ae._0x161bd7,0x16,0x173,_0x11c3ae._0x2cb2c0)](_0x2c3cc8[_0x45a066(_0x11c3ae._0x1bd035,0xf7,_0x11c3ae._0x520f90,0x11c)])}:{},'signal':_0x2c3cc8[_0x45a066(_0x11c3ae._0x5f1f23,0x1cf,_0x11c3ae._0x357269,0xc6)]});},_0x9ef7ff=await _0x512b29();if(_0x9ef7ff[_0x134fbf(_0xf210b3._0xf4b146,0x339,0x370,0x31c)]!==0x191||!this[_0x134fbf(0x51b,_0xf210b3._0x3ca674,0x480,0x3ee)])return _0x9ef7ff;this[_0x24a7be(_0xf210b3._0x18c904,_0xf210b3._0x47d154,0x178,0x243)][_0x134fbf(0x38d,_0xf210b3._0x2b4715,0x362,0x41e)]();function _0x134fbf(_0x4ab0fb,_0x52694b,_0x142075,_0x3fed2c){return _0x2b6123(_0x4ab0fb,_0x52694b-0x145,_0x142075-0xcc,_0x3fed2c-0x108);}return _0x512b29();}['createMissingCredentialError'](){const _0x126407={_0x30ca8b:0x86,_0x5683fa:0x33,_0x42837a:0xba},_0x157f9f={_0x566475:0x5ce},_0x248f97={_0x2070d1:0xa7};function _0x4dd26b(_0xbf0f28,_0x3a5411,_0x2183f7,_0x18e77f){return _0x2b6123(_0x3a5411,_0x3a5411-_0x248f97._0x2070d1,_0x2183f7- -0x1e9,_0x18e77f-0x4e);}function _0x2a718c(_0x18d422,_0x591011,_0x4edc3d,_0x1a4c3b){return _0x38c793(_0x1a4c3b,_0x591011-0x3a,_0x4edc3d- -_0x157f9f._0x566475,_0x1a4c3b-0x1a2);}return this[_0x4dd26b(_0x126407._0x30ca8b,-_0x126407._0x5683fa,0x55,_0x126407._0x42837a)][_0x4dd26b(0x16c,0x52,0xdc,0x12d)]();}async[_0x38c793(0x40b,0x322,0x395,0x315)](_0x588fee,_0x40d391){const _0x441b78={_0xa30260:0x23e,_0x1188d5:0xb5,_0x257d4a:0x102},_0x474655={_0x7b87a7:0x148,_0x2c3e1e:0xec};function _0x57cac4(_0x323bb3,_0x3e7a16,_0x2b2cfa,_0x466f41){return _0x38c793(_0x3e7a16,_0x3e7a16-0x192,_0x2b2cfa- -0x2e0,_0x466f41-0x157);}function _0x42c7c4(_0x297b71,_0x5ee099,_0x20d4d9,_0x26d651){return _0x38c793(_0x297b71,_0x5ee099-_0x474655._0x7b87a7,_0x5ee099- -0xf1,_0x26d651-_0x474655._0x2c3e1e);}return await this[_0x42c7c4(0x327,0x27d,_0x441b78._0xa30260,0x2e0)][_0x57cac4(0xcb,0x66,_0x441b78._0x1188d5,_0x441b78._0x257d4a)](_0x588fee,_0x40d391);}[_0x2b6123(0x215,0x1da,0x287,0x1d0)](_0x4db71a){const _0xc46189={_0xaaa3f7:0x160,_0x1182be:0x16e,_0x205661:0xf7},_0x32ae70={_0x2c9ebb:0x163,_0x55be8d:0x4ae},_0x42c285={_0x4839fb:0x331};function _0x5cb309(_0x11a0ca,_0x4d6b4f,_0x521c0d,_0x151cd5){return _0x2b6123(_0x521c0d,_0x4d6b4f-0x70,_0x4d6b4f- -_0x42c285._0x4839fb,_0x151cd5-0x193);}function _0x28f5e5(_0x41c651,_0xf0d8bd,_0x495739,_0x3c598c){return _0x38c793(_0x495739,_0xf0d8bd-_0x32ae70._0x2c9ebb,_0x3c598c- -_0x32ae70._0x55be8d,_0x3c598c-0x9d);}return this[_0x28f5e5(-_0xc46189._0xaaa3f7,-_0xc46189._0x1182be,-0xb2,-0x140)][_0x28f5e5(-0xe8,-0xba,-0x14a,-_0xc46189._0x205661)](_0x4db71a);}async[_0x2b6123(0x30c,0x358,0x358,0x3a4)](_0x867dce){const _0x387ed4={_0x4b5652:0x8e},_0x375f5f={_0x17e28d:0x24f},_0x42bb6b={_0xcb3179:0x85};function _0x1fd827(_0x2d3f9d,_0x53de3c,_0x2a374c,_0x5401f8){return _0x2b6123(_0x53de3c,_0x53de3c-0x39,_0x2a374c- -0x4c7,_0x5401f8-_0x42bb6b._0xcb3179);}function _0x2ba130(_0x1da873,_0x22944b,_0x31946b,_0x4013b5){return _0x2b6123(_0x22944b,_0x22944b-0xf3,_0x31946b- -_0x375f5f._0x17e28d,_0x4013b5-0x1d0);}return await this[_0x2ba130(-0xb0,-0x89,-0x11,0x61)][_0x2ba130(_0x387ed4._0x4b5652,0x194,0x109,0x6a)](_0x867dce);}[_0x2b6123(0x303,0x38b,0x393,0x437)](_0x312189){const _0x3254cd={_0x235ca2:0x25e,_0x5b2561:0x2fa},_0x59a3ad={_0x541fdb:0x162,_0x21f4b5:0x14c},_0x2d28e8={_0x217cf2:0x271,_0x3f3170:0x10b};function _0x1c3509(_0x470bec,_0x48ead0,_0x13445f,_0x4bb00e){return _0x2b6123(_0x4bb00e,_0x48ead0-0x112,_0x13445f-_0x2d28e8._0x217cf2,_0x4bb00e-_0x2d28e8._0x3f3170);}function _0x28c35d(_0x26f3fc,_0x4ea732,_0xbc343f,_0x9e6e0b){return _0x38c793(_0x26f3fc,_0x4ea732-_0x59a3ad._0x541fdb,_0xbc343f- -0xba,_0x9e6e0b-_0x59a3ad._0x21f4b5);}const _0x2a980e=this[_0x28c35d(0x2b1,0x2be,0x371,0x2bb)][_0x28c35d(0x2ee,_0x3254cd._0x235ca2,_0x3254cd._0x5b2561,0x2e5)](_0x312189);if(!_0x2a980e)throw new Error('Unknown\x20model\x20surface:\x20'+_0x312189);return _0x2a980e;}async[_0x38c793(0x2eb,0x341,0x373,0x2fe)](_0x297b36,_0x346993){const _0x31d684={_0x16ead1:0x5fa,_0x532edf:0x5ea,_0x492a13:0x56a,_0x3cc3b6:0x522,_0x37b306:0x4e3,_0x1841a5:0x5da,_0xf8be54:0x597,_0x4002bd:0x59c,_0x2b6ec6:0x5be,_0x538423:0x5eb,_0x86bdbc:0x54a,_0x78b328:0x55d,_0x462782:0x3f7,_0x888ab6:0x393,_0x2a85c1:0x430,_0x50a7ed:0x3f6,_0x1b687f:0x5a9,_0xc3d43a:0x311,_0x1af92a:0x3e5,_0x2f6b2e:0x462,_0xce993:0x3f7},_0x53a5fe={_0x58afc5:0x190},_0x461829={_0x2a7c64:0x177},_0x46631f=toModelRequest(_0x297b36),_0x370397=await prepareProviderRequest(_0x46631f,{'sessionManager':this['sessionManager'],'requestMutators':this[_0xc83df6(0x583,_0x31d684._0x16ead1,0x55a,_0x31d684._0x532edf)],'signal':_0x346993}),_0x1f3d76=toChatRequest(_0x370397['request']);function _0xc83df6(_0x2ada3f,_0x1807b5,_0x4bf656,_0xde74d){return _0x38c793(_0xde74d,_0x1807b5-0x1bb,_0x1807b5-0x1b4,_0xde74d-_0x461829._0x2a7c64);}const _0x47773c=this[_0xc83df6(_0x31d684._0x492a13,_0x31d684._0x3cc3b6,0x499,_0x31d684._0x37b306)][_0xc83df6(_0x31d684._0x1841a5,_0x31d684._0xf8be54,0x4d2,_0x31d684._0x4002bd)](this[_0xc83df6(_0x31d684._0x2b6ec6,_0x31d684._0x538423,_0x31d684._0x86bdbc,_0x31d684._0x78b328)],_0x370397[_0x3b0bf4(_0x31d684._0x462782,_0x31d684._0x888ab6,_0x31d684._0x2a85c1,_0x31d684._0x50a7ed)]);if(!_0x47773c)throw this[_0xc83df6(0x660,_0x31d684._0x1b687f,0x502,0x61c)]();function _0x3b0bf4(_0x2e6052,_0x38c3cb,_0x16693f,_0x107d4b){return _0x2b6123(_0x16693f,_0x38c3cb-_0x53a5fe._0x58afc5,_0x2e6052-0x6b,_0x107d4b-0x1c0);}return{'baseUrl':this[_0x3b0bf4(0x2a9,0x346,0x2b7,_0x31d684._0xc3d43a)][_0x3b0bf4(_0x31d684._0x50a7ed,0x3e0,0x447,_0x31d684._0x1af92a)](this['baseUrl'],_0x370397[_0x3b0bf4(0x3f7,_0x31d684._0x2f6b2e,0x413,0x374)]),'credential':_0x47773c,'request':_0x1f3d76,'session':_0x370397[_0x3b0bf4(_0x31d684._0xce993,0x3a1,0x34e,0x3c0)]};}['applyModelDefaults'](_0x18b2d1){const _0x757c02={_0x5e8946:0x2cf,_0x31bc08:0x288,_0x33b4d2:0x2ad,_0x183ba7:0x212},_0x180bd5={_0x2d868d:0x75,_0x24b7b3:0x439,_0x30f2b9:0x88},_0x536bea={_0x5791cc:0x63};function _0x56c740(_0x3bac85,_0x479714,_0x15a10e,_0x22bc67){return _0x2b6123(_0x22bc67,_0x479714-_0x536bea._0x5791cc,_0x15a10e- -0xe1,_0x22bc67-0x57);}function _0x376725(_0x541de4,_0x185e6c,_0x411ad9,_0x3f9e38){return _0x2b6123(_0x411ad9,_0x185e6c-_0x180bd5._0x2d868d,_0x3f9e38- -_0x180bd5._0x24b7b3,_0x3f9e38-_0x180bd5._0x30f2b9);}return{...structuredClone(_0x18b2d1),..._0x18b2d1['reasoning']===void 0x0&&this[_0x56c740(_0x757c02._0x5e8946,0x258,_0x757c02._0x31bc08,_0x757c02._0x33b4d2)]!==void 0x0?{'reasoning':structuredClone(this[_0x56c740(0x30b,0x2ac,0x288,_0x757c02._0x183ba7)])}:{}};}async[_0x2b6123(0x27d,0x326,0x329,0x26e)](_0x4dcf8e,_0x154638,_0x2bf90a,_0x391731){const _0x38e6c8={_0x110df7:0x11f,_0x177cb5:0xef,_0x1bb070:0x42d,_0xcc6704:0x489,_0x3c7547:0x48d,_0x4314e5:0x1b8,_0x219805:0x30f,_0xd617a1:0x2ec},_0x54e684={_0x23dc47:0xe3},_0x313d9e={_0x504c93:0x56,_0x2601d9:0x38,_0x513a47:0x6a,_0x37d69a:0x153,_0x50ca8a:0x207,_0x4edf02:0x20a,_0x43a7e2:0x21b,_0x27bddf:0x1d9,_0x4248ca:0x27c,_0x2f4f84:0x125,_0x547017:0x18,_0x152255:0x2e,_0x231a23:0x14d,_0x901abc:0x144,_0x569950:0x263,_0x21ea7c:0x1fb,_0x5f4660:0xaa,_0x485a6a:0x1eb,_0x3a3149:0x94,_0x54f2f1:0x12f,_0x48679f:0xe,_0x324d71:0x349,_0x5ddd8b:0x1d7,_0x373d69:0x289,_0x17bbef:0xf4,_0x40651e:0xd5,_0x543201:0x28c,_0x494290:0x254,_0x13310d:0x2f4,_0x30fddd:0x13f,_0x3afcca:0x162,_0x444105:0x166,_0x55fb95:0x202,_0x2d7e64:0x207,_0xa854c5:0x33d,_0x3cf5c9:0x2de,_0x55f41b:0x2db,_0x4d17f3:0x52,_0x4c9f9e:0x42,_0xa7eb31:0xdd},_0x46a2fa={_0x10ac22:0xca};function _0x505c03(_0x248e7b,_0xb1c76a,_0x30b0b9,_0xa4ddd3){return _0x2b6123(_0xa4ddd3,_0xb1c76a-0x181,_0xb1c76a-0x79,_0xa4ddd3-_0x46a2fa._0x10ac22);}const _0x502d6f=async()=>{const _0x35926e=await this[_0x496438(_0x313d9e._0x504c93,_0x313d9e._0x2601d9,0x107,-_0x313d9e._0x513a47)](_0x4dcf8e,_0x391731),_0x5f0446=_0x154638[_0x32df09(-_0x313d9e._0x37d69a,-0xba,-0x152,-_0x313d9e._0x50ca8a)](_0x35926e[_0x32df09(-0x187,-_0x313d9e._0x4edf02,-_0x313d9e._0x43a7e2,-_0x313d9e._0x27bddf)]);if(!_0x5f0446[_0x32df09(-0x221,-0x1fe,-_0x313d9e._0x4248ca,-0x310)])throw new Error(_0x496438(0x1af,0x205,_0x313d9e._0x2f4f84,0x189)+_0x154638['id']+_0x496438(0x9b,_0x313d9e._0x547017,0xc,_0x313d9e._0x152255));function _0x496438(_0x580c85,_0x54c564,_0x92e547,_0x577075){return _0x25f1(_0x580c85- -0x104,_0x92e547);}const _0x2c99eb=await this['createHeaders']({'request':_0x35926e['request'],'body':_0x5f0446['body'],'credential':_0x35926e[_0x32df09(-0x145,-_0x313d9e._0x231a23,-_0x313d9e._0x901abc,-0x1c9)],'session':_0x35926e[_0x496438(0x19f,_0x313d9e._0x569950,0xdd,0x12a)],'stream':_0x2bf90a},{'accept':_0x5f0446[_0x32df09(-0x269,-0x197,-0x1a8,-_0x313d9e._0x21ea7c)]??(_0x2bf90a?_0x496438(0x15f,0x1b6,_0x313d9e._0x5f4660,_0x313d9e._0x485a6a):_0x496438(_0x313d9e._0x3a3149,_0x313d9e._0x54f2f1,0x72,_0x313d9e._0x48679f)),'includeContentType':_0x5f0446[_0x32df09(-_0x313d9e._0x324d71,-_0x313d9e._0x5ddd8b,-_0x313d9e._0x373d69,-0x1ef)]!==void 0x0});function _0x32df09(_0x2b037c,_0x3e67c9,_0x1e214f,_0x1b0cc7){return _0x25f1(_0x1e214f- -0x3df,_0x3e67c9);}for(const [_0x2aa417,_0x349fd1]of Object[_0x496438(_0x313d9e._0x17bbef,_0x313d9e._0x40651e,0x85,0x60)](_0x5f0446[_0x32df09(-_0x313d9e._0x543201,-0x1ec,-_0x313d9e._0x494290,-0x242)]??{})){_0x2c99eb['set'](_0x2aa417,_0x349fd1);}return this[_0x32df09(-_0x313d9e._0x13310d,-0x1a7,-0x25f,-0x283)](''+_0x35926e[_0x32df09(-_0x313d9e._0x30fddd,-_0x313d9e._0x3afcca,-0x12f,-_0x313d9e._0x444105)]+_0x5f0446['path'],{'method':_0x32df09(-_0x313d9e._0x55fb95,-0x257,-0x1ac,-_0x313d9e._0x2d7e64),'headers':_0x2c99eb,..._0x5f0446[_0x32df09(-0x27f,-_0x313d9e._0xa854c5,-0x289,-0x238)]!==void 0x0?{'body':JSON[_0x32df09(-_0x313d9e._0x3cf5c9,-_0x313d9e._0x55f41b,-0x28b,-0x2e8)](_0x5f0446[_0x496438(_0x313d9e._0x4d17f3,-_0x313d9e._0x4c9f9e,_0x313d9e._0xa7eb31,0x0)])}:{},'signal':_0x391731});},_0xef568d=await _0x502d6f();if(_0xef568d[_0x51fc80(_0x38e6c8._0x110df7,_0x38e6c8._0x177cb5,0xa8,0x104)]!==0x191||!this[_0x505c03(0x38c,_0x38e6c8._0x1bb070,_0x38e6c8._0xcc6704,_0x38e6c8._0x3c7547)])return _0xef568d;function _0x51fc80(_0x2e0bd4,_0x36ec73,_0xd1878c,_0xc4ed34){return _0x38c793(_0x2e0bd4,_0x36ec73-_0x54e684._0x23dc47,_0xd1878c- -0x32c,_0xc4ed34-0x1c7);}return this[_0x51fc80(0x223,0x223,_0x38e6c8._0x4314e5,0x26a)][_0x505c03(0x37f,_0x38e6c8._0x219805,0x2e9,_0x38e6c8._0xd617a1)](),_0x502d6f();}async*[_0x2b6123(0x2ce,0x3a8,0x380,0x3d7)](_0x3c3690,_0xdc790f,_0x7a1ea1){const _0x1109ea={_0x27114e:0x16b,_0xe7612a:0xbf,_0x1ae754:0x144,_0x50ed78:0x13a,_0x452a1d:0xfd,_0x47a9c8:0x5b,_0x4e3196:0x31,_0x394480:0xe6,_0x15192b:0x38,_0x514255:0x1aa,_0x254d01:0x200,_0x26e8c1:0xdf,_0x1371b9:0xbb,_0x39eafc:0xe4,_0x255148:0xa9,_0x2ee6d:0x10e},_0x4f8c69={_0x1dcacb:0x1a},_0x95cb76={_0xe28fd:0x105,_0x1a1ec6:0x49c},_0x32b1eb=await this['sendHttpSurfaceRequest'](_0x3c3690,_0xdc790f,!![],_0x7a1ea1);function _0x42e3d9(_0x19b526,_0x3a8601,_0x5b0ade,_0x16d984){return _0x2b6123(_0x5b0ade,_0x3a8601-_0x95cb76._0xe28fd,_0x16d984- -_0x95cb76._0x1a1ec6,_0x16d984-0x28);}if(!_0x32b1eb['ok'])throw await this[_0x42e3d9(-0x1d3,-_0x1109ea._0x27114e,-_0x1109ea._0xe7612a,-_0x1109ea._0x1ae754)](_0x32b1eb);const _0x111a66=_0xdc790f[_0x5c4128(0xce,_0x1109ea._0x50ed78,0x17b,0xf0)]?.(_0x3c3690);if(!_0x111a66?.['consumeSseEvent'])throw new Error(_0x5c4128(0x18a,0x12d,_0x1109ea._0x452a1d,0xf2)+_0xdc790f['id']+_0x5c4128(_0x1109ea._0x47a9c8,-_0x1109ea._0x4e3196,_0x1109ea._0x394480,_0x1109ea._0x15192b));function _0x5c4128(_0x2672e2,_0x2abc97,_0x5530dd,_0x3bc47c){return _0x38c793(_0x3bc47c,_0x2abc97-_0x4f8c69._0x1dcacb,_0x2672e2- -0x342,_0x3bc47c-0x1a);}for await(const _0x3ffb56 of iterateSseEvents(_0x32b1eb,_0x7a1ea1)){yield*_0x111a66[_0x42e3d9(-0x182,-_0x1109ea._0x514255,-0x1a4,-_0x1109ea._0x254d01)](_0x3ffb56);}yield{'type':_0x5c4128(_0x1109ea._0x26e8c1,_0x1109ea._0x1371b9,0x28,0xd7),'response':_0x111a66[_0x42e3d9(-0x1d0,-_0x1109ea._0x39eafc,-_0x1109ea._0x255148,-_0x1109ea._0x2ee6d)]()};}async*['streamWebSocketSurface'](_0x1047d9,_0x2e6332,_0x113345){const _0x5d152e={_0x57f589:0x14,_0x310e34:0x92,_0x1d97b0:0x146,_0x1bd7c8:0x14a,_0x450094:0x110,_0x597f74:0x7d,_0x3c2c53:0xf2,_0xe256de:0x267,_0x46e1f3:0x2e8,_0x15984e:0x250,_0x2584f0:0x273,_0x34e4e3:0x14a,_0x54a14c:0x183,_0x37fb25:0x8a,_0x2f9407:0x17d,_0x1012d6:0x7c,_0x27245d:0x169,_0x3122cd:0xa0,_0xb42fa1:0x15b,_0x39385a:0x100,_0x539d70:0xb1,_0x7b49ec:0x111,_0x27f4ef:0x22,_0x5622fb:0x6c,_0x297c46:0x227,_0x2f3d4c:0x11b,_0x166137:0x18b,_0x2c1f67:0x35,_0x4fdf2a:0xf3,_0x4015b7:0xcb,_0x3e3c44:0xc9,_0x2bf3d6:0x121,_0x1cce94:0x1ab,_0x4eae08:0x184,_0x2983da:0x90,_0x3d0c8a:0x1df,_0x30796c:0x263,_0xa28855:0xc,_0x211e02:0x116,_0x1d6875:0x6e,_0x14d13c:0x44,_0x4bb54d:0x7e,_0x51e91c:0x4a,_0x40fa8c:0x202,_0x3d6222:0x247,_0x1ebf5d:0xe0,_0x22fdbf:0x151,_0x3b2408:0xf0,_0x3ac3fe:0xbe,_0x545aca:0x2b,_0x1406f8:0x1b5,_0x2655d5:0xb3,_0x4ce76a:0x8e,_0x4b0893:0xb1,_0x2bb58f:0xf3,_0x26c899:0x2c,_0x23856f:0x1b1,_0x32abb7:0x264,_0x1f95d4:0xde,_0x3bec79:0x217,_0x2a4809:0x3,_0x158906:0x55,_0x158df0:0xaa,_0x244b29:0x5e,_0xdd00e3:0x120,_0x4d6aaf:0x28,_0x33c6f0:0x167,_0x27201c:0x12f,_0x5936f5:0x15e,_0x131d46:0xbb,_0x32f9d0:0x1fc,_0x2762bc:0x2f3,_0x32e387:0x261,_0x520861:0x170,_0x354dc5:0x272,_0x3ac9c3:0x244,_0x4d758a:0x1ac,_0x16dd65:0x79,_0x4d99d8:0xe7,_0x118764:0xef},_0x53b691={_0xa06e0a:0x19a,_0x554206:0x230},_0x12a640=await this[_0x2342cd(0x13,-_0x5d152e._0x57f589,-_0x5d152e._0x310e34,0x3f)](_0x1047d9,_0x113345),_0x34f2ca=_0x2e6332[_0x2342cd(_0x5d152e._0x1d97b0,0x110,_0x5d152e._0x1bd7c8,_0x5d152e._0x450094)](_0x12a640[_0x2342cd(_0x5d152e._0x597f74,0x92,-0x3f,0x10d)]),_0x5255cd=_0x2e6332[_0x17948f(_0x5d152e._0x3c2c53,_0x5d152e._0xe256de,0x238,0x1b7)]?.(_0x1047d9);if(!_0x5255cd?.['consumeWebSocketEvent'])throw new Error(_0x17948f(_0x5d152e._0x46e1f3,_0x5d152e._0x15984e,0x266,_0x5d152e._0x2584f0)+_0x2e6332['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x2675c1=_0x34f2ca[_0x2342cd(_0x5d152e._0x34e4e3,_0x5d152e._0x54a14c,_0x5d152e._0x37fb25,_0x5d152e._0x2f9407)]??(_0x34f2ca[_0x17948f(0xfa,_0x5d152e._0x1012d6,0xea,0x123)]?(''+_0x12a640[_0x2342cd(_0x5d152e._0x27245d,_0x5d152e._0x3122cd,0x1c7,0x1c0)]+_0x34f2ca[_0x17948f(0x6d,_0x5d152e._0xb42fa1,0xdf,0x123)])[_0x2342cd(_0x5d152e._0x39385a,_0x5d152e._0x539d70,0x74,_0x5d152e._0x7b49ec)](/^http:/,_0x2342cd(_0x5d152e._0x27f4ef,0xc4,0x5f,_0x5d152e._0x5622fb))[_0x17948f(0x2af,0x20e,0x1dc,0x207)](/^https:/,_0x17948f(0x23a,0x15e,_0x5d152e._0x297c46,0x17e)):void 0x0);function _0x17948f(_0x256fa3,_0x1f605b,_0x509bb3,_0x242472){return _0x38c793(_0x509bb3,_0x1f605b-0x1eb,_0x242472- -0x259,_0x242472-0x199);}if(!_0x2675c1)throw new Error(_0x2342cd(0x16c,0x223,_0x5d152e._0x2f3d4c,_0x5d152e._0x166137)+_0x2e6332['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x517a28=await this[_0x2342cd(_0x5d152e._0x2c1f67,_0x5d152e._0x4fdf2a,_0x5d152e._0x4015b7,_0x5d152e._0x3e3c44)]({'request':_0x12a640[_0x17948f(0x1d9,_0x5d152e._0x2bf3d6,_0x5d152e._0x1cce94,_0x5d152e._0x4eae08)],'body':_0x34f2ca[_0x17948f(_0x5d152e._0x2983da,0x142,0x160,0x14e)],'credential':_0x12a640['credential'],'session':_0x12a640[_0x17948f(0x1a5,_0x5d152e._0x3d0c8a,0x27b,_0x5d152e._0x30796c)],'stream':!![]},{'accept':_0x34f2ca['accept']??_0x2342cd(0x51,0xd1,_0x5d152e._0xa28855,-0x58),'includeContentType':![]});for(const [_0x4fc9c5,_0x29d5c7]of Object[_0x2342cd(0xb1,_0x5d152e._0x211e02,_0x5d152e._0x1d6875,0xad)](_0x34f2ca[_0x2342cd(_0x5d152e._0x14d13c,0x46,-_0x5d152e._0x4bb54d,_0x5d152e._0x51e91c)]??{})){_0x517a28[_0x17948f(0x22e,_0x5d152e._0x40fa8c,0x1fd,_0x5d152e._0x3d6222)](_0x4fc9c5,_0x29d5c7);}function _0x2342cd(_0x533024,_0xa0ee6c,_0x164730,_0x455d67){return _0x2b6123(_0x455d67,_0xa0ee6c-_0x53b691._0xa06e0a,_0x533024- -_0x53b691._0x554206,_0x455d67-0x170);}_0x517a28[_0x2342cd(_0x5d152e._0x1ebf5d,_0x5d152e._0xb42fa1,_0x5d152e._0x22fdbf,0x17)](_0x2342cd(_0x5d152e._0x3b2408,_0x5d152e._0x3ac3fe,_0x5d152e._0x545aca,0x7e));const _0x181c40=this['webSocketFactory']({'headers':Object[_0x2342cd(0x12b,_0x5d152e._0x1406f8,_0x5d152e._0x2655d5,_0x5d152e._0x4ce76a)](_0x517a28[_0x2342cd(_0x5d152e._0x4b0893,-0x15,_0x5d152e._0x2bb58f,_0x5d152e._0x26c899)]()),'url':_0x2675c1});try{throwIfAborted(_0x113345);_0x181c40['readyState']!==WebSocket[_0x17948f(_0x5d152e._0x23856f,_0x5d152e._0x32abb7,0x223,0x261)]&&await waitForWebSocketOpen(_0x181c40,_0x113345);throwIfAborted(_0x113345);_0x34f2ca['initialEvent']!==void 0x0&&_0x181c40['send'](JSON[_0x17948f(0x1d8,_0x5d152e._0x4eae08,_0x5d152e._0x1f95d4,0x114)](_0x34f2ca[_0x17948f(0x136,0x92,_0x5d152e._0x3bec79,0x14e)]));for await(const _0x216511 of iterateWebSocketMessages(_0x181c40,_0x113345)){yield*_0x5255cd[_0x2342cd(-_0x5d152e._0x2a4809,-_0x5d152e._0x158906,-_0x5d152e._0x158df0,-0xad)](_0x216511);if(_0x5255cd[_0x2342cd(_0x5d152e._0x244b29,-0x2c,_0x5d152e._0xdd00e3,-_0x5d152e._0x4d6aaf)]?.())break;}yield{'type':_0x17948f(_0x5d152e._0x33c6f0,_0x5d152e._0x27201c,0x263,0x1c8),'response':_0x5255cd[_0x2342cd(_0x5d152e._0x5936f5,_0x5d152e._0x131d46,0x104,0x171)]()};}finally{_0x181c40[_0x2342cd(0x84,-0x1d,0x64,-0x24)]===WebSocket[_0x17948f(_0x5d152e._0x32f9d0,_0x5d152e._0x2762bc,0x1a7,_0x5d152e._0x32e387)]&&_0x181c40[_0x17948f(_0x5d152e._0x520861,_0x5d152e._0x354dc5,_0x5d152e._0x3ac9c3,_0x5d152e._0x4d758a)](0x3e8,_0x113345?.['aborted']?'aborted':_0x2342cd(_0x5d152e._0x16dd65,0x144,_0x5d152e._0x4d99d8,_0x5d152e._0x118764));}}};async function createHttpError(_0x448db0){const _0x39f9e6={_0x1a4976:0x426,_0x4b9ef8:0x479,_0x46c42b:0x4ba,_0x5c9408:0x522,_0x358e5c:0x4e0,_0x11d1ac:0x469,_0x3d24d6:0x447,_0x592836:0x482,_0x3d5e55:0x363,_0x573338:0x40d},_0xc90ef2={_0x21f8c9:0x75,_0x1ad54b:0x174},_0x32dc1f=await _0x448db0[_0x1085c5(_0x39f9e6._0x1a4976,_0x39f9e6._0x4b9ef8,_0x39f9e6._0x46c42b,_0x39f9e6._0x5c9408)]();function _0x25ff55(_0xdfb45f,_0x50e9e3,_0x182aa6,_0x1d1d03){return _0x38c793(_0xdfb45f,_0x50e9e3-_0xc90ef2._0x21f8c9,_0x182aa6-0x1c,_0x1d1d03-_0xc90ef2._0x1ad54b);}const _0x1ebaed=_0x32dc1f['trim']()||_0x448db0[_0x25ff55(0x4f6,_0x39f9e6._0x358e5c,_0x39f9e6._0x11d1ac,_0x39f9e6._0x3d24d6)]||'Unknown\x20provider\x20error';function _0x1085c5(_0x53f6b8,_0x5681a6,_0x15195c,_0x1f7ba2){return _0x38c793(_0x53f6b8,_0x5681a6-0x11b,_0x15195c-0x78,_0x1f7ba2-0x11c);}return new Error(_0x25ff55(_0x39f9e6._0x592836,_0x39f9e6._0x3d5e55,_0x39f9e6._0x573338,0x3ad)+_0x448db0[_0x1085c5(0x3d5,0x39e,0x44c,0x485)]+':\x20'+_0x1ebaed);}var AnthropicProviderAdapter=class{['authScheme'];[_0x38c793(0x412,0x4bb,0x474,0x52b)];[_0x38c793(0x3f6,0x3be,0x487,0x4dd)];constructor(_0x1e3487){const _0x5ca8b5={_0x2839a2:0x269,_0x272a63:0x20f,_0x1600b2:0x1cc,_0x34fa7e:0x5b3,_0x3617e0:0x5b8,_0x14dba9:0x626,_0x55acc6:0xa8,_0x5d2f3e:0x16c,_0x7f4e33:0x1ae},_0x1cfb0d={_0x1853c1:0xb1,_0x5b8a0a:0xfe},_0x9b9856={_0x5804c6:0xe1};this[_0x1c34c5(_0x5ca8b5._0x2839a2,_0x5ca8b5._0x272a63,_0x5ca8b5._0x1600b2,0x18b)]=_0x1e3487[_0x1d5e6f(0x650,_0x5ca8b5._0x34fa7e,0x5fd,0x66f)];function _0x1c34c5(_0x216437,_0x21e94f,_0x2b326c,_0x1f0dc4){return _0x2b6123(_0x216437,_0x21e94f-_0x9b9856._0x5804c6,_0x2b326c- -0x1eb,_0x1f0dc4-0x19e);}function _0x1d5e6f(_0x464d4b,_0x1a16fb,_0x2df29b,_0x527921){return _0x2b6123(_0x1a16fb,_0x1a16fb-_0x1cfb0d._0x1853c1,_0x527921-0x2b8,_0x527921-_0x1cfb0d._0x5b8a0a);}this['headerResolver']=_0x1e3487[_0x1d5e6f(0x632,_0x5ca8b5._0x3617e0,_0x5ca8b5._0x14dba9,0x5fc)],this[_0x1c34c5(0xc8,_0x5ca8b5._0x55acc6,_0x5ca8b5._0x5d2f3e,_0x5ca8b5._0x7f4e33)]=_0x1e3487['protocolVersion'];}[_0x38c793(0x439,0x48a,0x3f5,0x400)](){const _0x58eb3f={_0x144f63:0x205,_0x2682ce:0x209};function _0x26826(_0x25b356,_0x55de83,_0x334fcd,_0x577c19){return _0x2b6123(_0x25b356,_0x55de83-0x1ef,_0x55de83- -0xf3,_0x577c19-0x13b);}return new Error(_0x26826(0x167,_0x58eb3f._0x144f63,0x1e2,_0x58eb3f._0x2682ce));}async[_0x38c793(0x402,0x420,0x395,0x2ff)](_0xfe70cd,_0x10af7d){const _0xe4a0b1={_0x330e1f:0x36e,_0x2fef9e:0x391,_0x5da239:0x3ba,_0x46d9e0:0xd8,_0x511bd3:0x33,_0xcaa43d:0x362,_0x1e5e23:0x31a,_0x261031:0x3fe,_0xdc8bb6:0x3a7,_0x4689fa:0x307,_0x435076:0xaa,_0x2b3f1c:0x14f,_0x3e574a:0x5a,_0x49b544:0x129,_0x546f50:0x22a,_0x39eadc:0x28d,_0xe3fa66:0x325,_0x58e0d6:0x38b,_0x38d123:0x2d4,_0x5738d8:0x2f7,_0x5ea53c:0x258,_0xdcbab1:0x24a,_0x3d816c:0x2fa,_0x2507cb:0x38c,_0x243c33:0x0,_0x9ceea2:0xb8,_0x33b51a:0x31a,_0x2567ec:0x339,_0x5aaeb9:0x379,_0x16068b:0x354,_0x19ad3a:0x2a0,_0x37ee84:0x2eb,_0x5312f6:0x326,_0x32a8c6:0x3,_0x18fa31:0xa,_0x1c50a2:0x197,_0x4dcd9a:0x2dd,_0x2640e5:0xc9,_0x2cf25e:0x45,_0x1e93b4:0x2b,_0x5068bd:0xc,_0x517806:0x41},_0x4d1059={_0xe8279a:0x154},_0x487c27={_0x199cbc:0x98,_0x1030c4:0x32b},_0x3a68a6=new Headers();_0x3a68a6['set']('accept',_0x10af7d[_0x4ad90a(0x255,0x2d5,_0xe4a0b1._0x330e1f,0x36c)]),_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2fef9e,0x325,0x2d9,_0xe4a0b1._0x5da239)](_0x4233e5(-0x73,-_0xe4a0b1._0x46d9e0,-0x79,_0xe4a0b1._0x511bd3),this[_0x4ad90a(0x2d2,0x30c,_0xe4a0b1._0xcaa43d,_0xe4a0b1._0x1e5e23)]);_0x10af7d[_0x4ad90a(_0xe4a0b1._0x261031,0x35a,0x362,_0xe4a0b1._0xdc8bb6)]!==![]&&_0x3a68a6['set'](_0x4ad90a(0x2c1,0x275,0x1e7,_0xe4a0b1._0x4689fa),_0x4233e5(-_0xe4a0b1._0x435076,-_0xe4a0b1._0x2b3f1c,-0xad,-0xa1));this[_0x4233e5(0x8c,_0xe4a0b1._0x3e574a,_0xe4a0b1._0x49b544,0xef)]===_0x4ad90a(_0xe4a0b1._0x546f50,0x2cf,_0xe4a0b1._0x39eadc,0x283)?_0x3a68a6[_0x4ad90a(0x3ce,_0xe4a0b1._0xe3fa66,_0xe4a0b1._0x58e0d6,0x333)](_0x4ad90a(_0xe4a0b1._0x38d123,0x359,0x2a5,_0xe4a0b1._0x5738d8),_0x4ad90a(_0xe4a0b1._0x5ea53c,_0xe4a0b1._0xdcbab1,0x302,_0xe4a0b1._0x3d816c)+_0xfe70cd[_0x4ad90a(0x298,0x339,0x35d,0x2f7)]['value']):_0x3a68a6[_0x4ad90a(_0xe4a0b1._0x2507cb,0x325,0x354,0x2ac)](_0x4233e5(_0xe4a0b1._0x243c33,-0x2c,-_0xe4a0b1._0x9ceea2,0xa3),_0xfe70cd[_0x4ad90a(_0xe4a0b1._0x33b51a,_0xe4a0b1._0x2567ec,_0xe4a0b1._0x5aaeb9,0x2c3)][_0x4ad90a(_0xe4a0b1._0x16068b,_0xe4a0b1._0x19ad3a,_0xe4a0b1._0x37ee84,_0xe4a0b1._0x5312f6)]);function _0x4233e5(_0x51fb36,_0x241175,_0x186e31,_0x45ae75){return _0x2b6123(_0x241175,_0x241175-_0x487c27._0x199cbc,_0x51fb36- -_0x487c27._0x1030c4,_0x45ae75-0xae);}function _0x4ad90a(_0x1ba5ca,_0xba0649,_0x381592,_0xb5dcb0){return _0x38c793(_0x381592,_0xba0649-_0x4d1059._0xe8279a,_0xba0649- -0x17b,_0xb5dcb0-0xf1);}const _0x2bd026=await this[_0x4233e5(0x19,-_0xe4a0b1._0x32a8c6,-0x77,_0xe4a0b1._0x18fa31)]?.({'body':_0xfe70cd[_0x4233e5(-0xec,-0x2f,-0x72,-0x75)],'credential':_0xfe70cd['credential'],'request':_0xfe70cd[_0x4ad90a(0x1d9,0x262,_0xe4a0b1._0x1c50a2,_0xe4a0b1._0x4dcd9a)],'session':_0xfe70cd['session'],'stream':_0xfe70cd[_0x4233e5(0x1e,-0x89,0xc1,_0xe4a0b1._0x2640e5)]});for(const [_0x3fa223,_0x568597]of Object['entries'](_0x2bd026??{})){_0x3a68a6[_0x4233e5(_0xe4a0b1._0x2cf25e,-_0xe4a0b1._0x1e93b4,-_0xe4a0b1._0x5068bd,-_0xe4a0b1._0x517806)](_0x3fa223,_0x568597);}return _0x3a68a6;}['mapApiError'](_0xcc4177){return _0xcc4177;}[_0x38c793(0x4c6,0x55c,0x4bb,0x3ff)](_0x1b6e50,_0x2fea13){return resolveSessionBaseUrl(_0x1b6e50,_0x2fea13);}[_0x38c793(0x42f,0x44e,0x3e3,0x41f)](_0x1f9754,_0x554e63){return resolveApiCredential(_0x1f9754,_0x554e63);}async[_0x38c793(0x47d,0x43f,0x488,0x4be)](_0x51c491){return await createHttpError(_0x51c491);}},AnthropicModel=class extends RoutedModel{constructor(_0x21e2c0={}){const _0x1263f2={_0xa8785b:0x2ea,_0x239b05:0x2ad,_0x144f8e:0x283,_0x587f29:0x2c3,_0xf95298:0x35c,_0x4172fd:0x26b,_0x368343:0x2ca,_0xbe423c:0x373,_0x40b8ee:0x215,_0xe97e51:0x2da,_0x5937e6:0x177,_0x224481:0x37d,_0x200525:0x318,_0x4eca8c:0x2d6,_0x2e3aa0:0x26f,_0x111033:0x2d1,_0x4daa2b:0x24d,_0x19a3b5:0x332,_0x47417f:0x389,_0x4ae48c:0x201,_0xb7be7:0x1d0,_0x42905e:0x1f4,_0x404e87:0x1e2,_0x79e424:0x285,_0x26df2d:0x2e2,_0x524537:0x224},_0x402cdd={_0x466eb6:0x1a,_0x3492c6:0x11b},_0x5186d2={_0x34da5e:0x93,_0x184503:0x9a};function _0x23e85f(_0x403e67,_0xf306af,_0x43b4d0,_0x185731){return _0x2b6123(_0xf306af,_0xf306af-0x192,_0x43b4d0- -_0x5186d2._0x34da5e,_0x185731-_0x5186d2._0x184503);}function _0x444adc(_0x5d7854,_0x12402f,_0x58bf7b,_0x3d628e){return _0x38c793(_0x3d628e,_0x12402f-_0x402cdd._0x466eb6,_0x12402f- -0x18a,_0x3d628e-_0x402cdd._0x3492c6);}super({'apiKey':_0x21e2c0[_0x444adc(_0x1263f2._0xa8785b,_0x1263f2._0x239b05,_0x1263f2._0x144f8e,0x34b)],'baseUrl':trimTrailingSlashes(_0x21e2c0[_0x23e85f(0x346,0x3a7,0x306,_0x1263f2._0x587f29)]??_0x23e85f(0x139,0x1f4,0x1c5,0x290)),'fetch':_0x21e2c0[_0x23e85f(_0x1263f2._0xf95298,_0x1263f2._0x4172fd,_0x1263f2._0x368343,_0x1263f2._0xbe423c)],'maxTokens':_0x21e2c0[_0x444adc(0x20c,_0x1263f2._0x40b8ee,_0x1263f2._0xe97e51,_0x1263f2._0x5937e6)]??0x4000,'model':_0x21e2c0['model']??_0x444adc(0x24e,0x2fa,0x344,0x3a4),'reasoning':_0x21e2c0[_0x23e85f(_0x1263f2._0x224481,_0x1263f2._0x200525,_0x1263f2._0x4eca8c,0x26f)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x21e2c0[_0x23e85f(0x377,0x333,0x324,_0x1263f2._0x2e3aa0)]??_0x444adc(0x2ee,_0x1263f2._0x111033,0x2ae,0x342),'headerResolver':_0x21e2c0[_0x444adc(_0x1263f2._0x4daa2b,_0x1263f2._0xa8785b,0x30d,_0x1263f2._0x19a3b5)],'protocolVersion':_0x21e2c0[_0x23e85f(_0x1263f2._0x47417f,_0x1263f2._0x4ae48c,0x2c4,0x249)]??'2023-06-01'}),'providerSessionResolver':_0x21e2c0[_0x444adc(_0x1263f2._0xb7be7,_0x1263f2._0x42905e,_0x1263f2._0x404e87,0x13e)],'requestMutators':_0x21e2c0[_0x23e85f(_0x1263f2._0x79e424,_0x1263f2._0x26df2d,0x283,_0x1263f2._0x524537)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x30d0e5,_0x52d988){const _0x34680e={_0x42d0e6:0x622},_0x351382={_0x489629:0x177,_0x410256:0x2d1,_0x2d0dd4:0x13c};function _0x10eb34(_0x5b6c12,_0x5f1bab,_0x3f28b2,_0x429ac0){return _0x2b6123(_0x5b6c12,_0x5f1bab-_0x351382._0x489629,_0x429ac0-_0x351382._0x410256,_0x429ac0-_0x351382._0x2d0dd4);}return this[_0x10eb34(0x648,0x5b6,0x69f,_0x34680e._0x42d0e6)](_0x30d0e5,ANTHROPIC_MESSAGES_SURFACE,_0x52d988);}[_0x38c793(0x521,0x4ea,0x479,0x467)](_0x2b54e6,_0x3e1ba0){const _0x250b3e={_0x8724fa:0x429,_0xc304cb:0x364};function _0xae550b(_0x5a65fd,_0x56c4b2,_0x49147b,_0x1fc85e){return _0x2b6123(_0x49147b,_0x56c4b2-0xd1,_0x1fc85e-0x113,_0x1fc85e-0x121);}return this[_0xae550b(0x32e,0x2a8,_0x250b3e._0x8724fa,_0x250b3e._0xc304cb)](_0x2b54e6,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3e1ba0);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x38c793(0x2af,0x2ca,0x374,0x2ce),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2b6123(0x35c,0x34a,0x321,0x2ab),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2b6123(0x235,0x284,0x28f,0x242),OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2b6123(0x361,0x24f,0x2a4,0x33f)];[_0x38c793(0x3f5,0x3c3,0x36f,0x3cd)];constructor(_0x4f2d0c,_0x10602b,_0x585067){const _0x44e696={_0x34b671:0xb9,_0x3adc09:0x49,_0x2b1fc7:0x62,_0x1c4f9:0x78,_0x3720e1:0x33,_0x3e8501:0xf6,_0x388f8e:0x417,_0x38365d:0x458},_0x28ef55={_0x4e388b:0x1ed,_0x64a81e:0x194},_0x3a4c82={_0x1baf5a:0x185,_0x3b7df3:0x1bc};function _0x599701(_0x424a01,_0x387e4d,_0x59b65b,_0x65ce00){return _0x38c793(_0x387e4d,_0x387e4d-_0x3a4c82._0x1baf5a,_0x59b65b-0xe9,_0x65ce00-_0x3a4c82._0x3b7df3);}super(_0x585067),this[_0x4268d6(-_0x44e696._0x34b671,-_0x44e696._0x3adc09,-0xba,-0xbb)]='OpenAiApiError';function _0x4268d6(_0x533ce4,_0x41792c,_0x1defff,_0xfcbb5a){return _0x38c793(_0xfcbb5a,_0x41792c-_0x28ef55._0x4e388b,_0x533ce4- -0x436,_0xfcbb5a-_0x28ef55._0x64a81e);}this[_0x4268d6(-_0x44e696._0x2b1fc7,-_0x44e696._0x1c4f9,-_0x44e696._0x3720e1,-_0x44e696._0x3e8501)]=_0x4f2d0c,this[_0x599701(0x462,_0x44e696._0x388f8e,_0x44e696._0x38365d,0x3c9)]=_0x10602b;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2b6123(0x222,0x36f,0x2a4,0x280)];constructor(_0x3d47fc,_0x16ec8c={}){const _0x55cfb2={_0x238265:0x64,_0x31bed0:0xd9,_0x2877c3:0x3b2,_0x36dcb3:0x3e6,_0x30f181:0x231,_0x147f2e:0x239,_0x28423b:0x25e,_0x18fd54:0x39b},_0x90c825={_0x3e14a3:0x131,_0x4f24fb:0x8},_0x20b51c={_0x37fdf5:0x119,_0x361911:0x174,_0x30faea:0x1e8};super(_0x3d47fc),this[_0x20fa4b(_0x55cfb2._0x238265,_0x55cfb2._0x31bed0,0x15e,0x114)]=_0x2ef86d(_0x55cfb2._0x2877c3,0x491,_0x55cfb2._0x36dcb3,0x3f3),this[_0x20fa4b(0x243,0x24a,_0x55cfb2._0x30f181,_0x55cfb2._0x147f2e)]=_0x16ec8c[_0x20fa4b(0x242,0x24a,0x1b4,_0x55cfb2._0x28423b)];function _0x20fa4b(_0x583e11,_0x140c14,_0xc8c8dc,_0x3c1a8a){return _0x2b6123(_0x3c1a8a,_0x140c14-_0x20b51c._0x37fdf5,_0x140c14- -_0x20b51c._0x361911,_0x3c1a8a-_0x20b51c._0x30faea);}function _0x2ef86d(_0x218031,_0x2bed3d,_0x1aeab1,_0x2c2461){return _0x2b6123(_0x2bed3d,_0x2bed3d-_0x90c825._0x3e14a3,_0x1aeab1-0xf7,_0x2c2461-_0x90c825._0x4f24fb);}this[_0x2ef86d(0x301,0x3e1,_0x55cfb2._0x18fd54,0x415)]=_0x16ec8c['status'];}};function stringifySystem(_0x38c19e){const _0x490ae5={_0x390dcf:0x48,_0x40ba9d:0x6e,_0x551289:0x50,_0x2b3c88:0x8e},_0x438018={_0x2cf64e:0x19c},_0x589133={_0x4ed838:0x90,_0x566350:0x199};function _0x2d1734(_0x10a94d,_0x17781b,_0x3dd0f7,_0x12f9d3){return _0x38c793(_0x10a94d,_0x17781b-_0x589133._0x4ed838,_0x3dd0f7- -0x4f2,_0x12f9d3-_0x589133._0x566350);}function _0xa5e079(_0x2e4107,_0x3f4d6f,_0x12efd5,_0x529b2d){return _0x38c793(_0x12efd5,_0x3f4d6f-0x1a7,_0x3f4d6f- -0x4fa,_0x529b2d-_0x438018._0x2cf64e);}return _0x38c19e[_0xa5e079(0x37,-_0x490ae5._0x390dcf,-_0x490ae5._0x40ba9d,-0xff)](_0xab20a9=>_0xab20a9[_0xa5e079(-0x1b,-0xb8,-0x152,-0x154)])[_0x2d1734(-_0x490ae5._0x551289,-0xa6,-0xee,-_0x490ae5._0x2b3c88)]('\x0a\x0a');}function _0x35dd(){const _0x3c23b4=['B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Bw9KzwXfBMrWB2LUDenHy2HL','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','rgLYzwn0igfUC3DLCJOG','Dgv4Dej5sw5KzxG','D2vIC29JA2v0','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','C3rYAw5N','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','CMvZCg9UC2vjza','ChjVEhK','C2XPy2u','B3bLBMfPx3jLyxnVBMLUzW','CMvZCg9UC2vtB2nRzxrtDhjLyw0','B3v0Chv0x3rLEhq','Dg9VBf91C2u','AM9PBG','y2XVC2u','DxnLCI12AxnPyMXL','yxbP','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C2LNBMfS','BxnNlq','y29UDgvUDa','y2HHDfn0CMvHBq','C2vUzfjHD1jLCxvLC3q','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','y3jLyxrLu3rYzwfTugfYC2vY','zw50CMLLCW','Dg9VBf91C2vFzgvSDge','DgHLBG','BwvKAwfFDhLWzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','nJKXnte1uwvAtMvN','DMfSDwvZ','Aw50zxjSzwf2zwq','zgLZCgXHEq','qMfZAa','DMfSDwu','zNjVBq','DMLZAwjPBgL0Eq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','C3rHCNrZv2L0Aa','zg9Uzq','y2HHDenVBxbSzxrPB25Zugf0Aa','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','BM93','DxnLCG','Dg9VBhm','CgfYC2u','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Bwv0Ag9K','C3vYzMfJzxm','DNnJB2rLlZeUmta0lJi','BwvZC2fNzv9KzwX0yq','DhjPBvn0yxj0','y2HHDenVBxbSzxrL','B3bLBMfPlxjLC3bVBNnLCY13CW','C29YDa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','CMvZCg9UC2vZugf0Aa','r0vu','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','Aw5JBhvKzxm','yxbPs2v5','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','CgfYDgLHBf9QC29U','y29UDgvUDf9IBg9JA19ZDgfYDa','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','C3bSAxq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5KzxHpzG','zgvSzxrL','zw5KCg9PBNrZ','Dgv4Da','Dg9VBenHBgXpCMrLCG','ChvZAa','y29TCgXLDgu','CMvXDwvZDe11Dgf0B3jZ','zMLSDgvY','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBfvZzvn0yxj0rw1PDhrLza','yMvHCMvY','CM9Szq','ue9tva','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','zw5HyMXLza','ywnJzxb0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','CMvHC29UAw5Nx3rVA2vUCW','y2fWywjSzv9LBMrWB2LUDhm','Dg9Rzw4','nJbwq0r2uhK','zMLUywXszxnWB25Zzq','CMvHC29UAw5NugfYDhm','y29UDgvUDf9PBMrLEa','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3vWCg9YDgvKx2vUzhbVAw50CW','Ec1HCgKTA2v5','CMvZCg9UC2vtB2nRzxq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B2f1DgGTDg9Rzw4','y29UBMvJDf9MywLSzwq','CMvWBgfJzq','mJK4otu4uvzqwwzj','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zM9Yy2vgDwXSuMvWBgf5','Aw5WDxrFANnVBL9KzwX0yq','yxbWBhLnB2rLBerLzMf1BhrZ','Dgv4Df9KzwX0yq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvMDxnHBa','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Dg9VBf9JywXSCW','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B21PDhrLza','B3bLBG','l2nOyxqVy29TCgXLDgLVBNm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','ywjVCNq','CMvZB2X2zxi','zxjYB3i','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','AgvHzgvYuMvZB2X2zxi','BgfZDfjLC3bVBNnLswq','AgfZ','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','C3rYzwfT','C3vTBwfYEuj5sw5KzxG','Aw5WDxrkC29U','Dgv4Dc9LDMvUDc1ZDhjLyw0','Dg9VBf91C2vFAwq','zMXHDe1HCa','yNvKz2v0vg9Rzw5Z','Aw5KzxG','y29TCgXLDgvwAwftDxjMywnL','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','yNvPBgrqyxj0AwfSt3v0Chv0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Dgv4DfbHCNrZ','C2LNBMf0DxjL','ChjVDg9JB2XwzxjZAw9U','Dg9bCgLfCNjVCG','nJeWodK3mNDSDer5tW','Aw5WDxq','zNjVBuvUDhjPzxm','z2v0uMvHzgvY','zMv0y2G','o2jHC2u2ncW','Aw5WDxrFDgv4Da','C2LNBMf0DxjLx2rLBhrH','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','B3v0Chv0sw5KzxG','zw5JCNLWDgvKq29UDgvUDa','y2fJAgvK','Dg9VBf9Yzxn1Bhq','CMvXDwvZDhm','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvHC29UAw5N','Aw5WDxruB2TLBNm','CgfYC2vszxnWB25Zzq','sw52ywXPzcbYzxf1zxn0oIa','mZKWotG5m21oExzNsG','yxnZAxn0yw50','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','C2v0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C3vTBwfYEv90zxH0','C291CMnL','l3yXl21LC3nHz2vZ','CMvTB3zLrxzLBNrmAxn0zw5LCG','y3jLyxrLuMvXDwvZDa','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','CMvZCg9UC2uUzMfPBgvK','Aw5WDxrFC2nOzw1H','DxjS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Bw9KzwW','C29Tzq','DNnJB2rLlZeUmta2lJe','nJGZmJy0rwzhwKLU','C3rYzwfTshr0Cfn1CMzHy2u','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwfW','y29UDgvUDf9IBg9JA19KzwX0yq','y3jLzgvUDgLHBa','l3jLC3bVBNnLCW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C2L6zq','yxbPlwTLEq','zxzLBNq6','t1bftG','CMvZB2X2zujHC2vvCMW','C2vZC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','zMLUAxnO','CgvUzgLUzW','C3vTBwfYEv9PBMrLEa','zgvSDge','z3b0ltrV','z2v0u3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','oNjLyxnVBMLUzZOW','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','yMfZzvvYBa','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','u3vYzMfJzsa','zMLUza','y29UC3vTzuv2zw50','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','CMvZB2X2zq','DgvZDa','C3vTBwfYAxPLza','yxv0Ag9YAxPHDgLVBG','Aw5JBhvKzunVBNrLBNruExbL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','v2vIu29JA2v0','CMvHC29U','CMvZCg9UC2vuzxH0ugfYDhm','C3rYzwfTvMLHuM91DgvY','D2vIu29JA2v0rMfJDg9YEq','ywDLBNq','y2HHDgnTCgW','Dg9VBenHBgXZqNLjBMrLEa','CMvHC29UAw5Nx2nVBNrLBNq','B3bLBKfPrgvSzwDHDgu','zgLZywjSzwq','AxnbCNjHEq','B3v0Chv0x3rVA2vUCW','C2vZC2LVBK1HBMfNzxi','DgHPBMTPBMDFzgvSDge','Dg9VBc1JywXSlq','yxv0AfnJAgvTzq','zgvJB2rL','BwvZC2fNzuLK','ywjVCNrLza','Bwv0ywrHDge','z2L0AhvIqxbPvxjS','ywnJzxnZvg9Rzw4','y29Kzq','Ahr0Chm6','zNvUy3rPB25Fy2fSBa','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yMfZzty0','y29UC3vTzvDLyLnVy2TLDev2zw50','mJaYns0Xmc0Wmq','C3rYzwfTu3vYzMfJzq','DxnHz2u','y2HVAwnLCW','Ahr0Cc1ZC2u','C3vTBwfYEq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','B3v0Chv0','y2HHDgnTCgWT','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','zgvZy3jPChrPB24','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0vg9Rzw5Z','yw50AhjVCgLJx3rOAw5RAw5N','C3vYzMfJzq','C3rYAw5NAwz5','ChjVDMLKzxjbzgfWDgvY','yM9KEq','A2LUza','Aw1Hz2u','CMvZCg9UC2uUy29TCgXLDgvK','ChjLCgfYzunOyxrszxf1zxn0','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l21VzgvSCW','yxjNDw1LBNrZ','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','otC0m2zqshrIrG','nZrPA0jotxa','y2fSBeLKvg9pDxrWDxrjBMrLEa','z2v0qw50AhjVCgLJrgvSzwDHDgu','Cgf0Aa','BMfTzq','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','zwrPDg9YugX1z2LUvMvYC2LVBG','ywrK','C3rYzwfTvMLHu3vYzMfJzq','D3m6','CMvZCg9UC2uUy3jLyxrL','CMvKywn0zwrFDgHPBMTPBMC','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','zw5Kx3r1CM4','Bw9JAW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','Ahr0Cc1QC29U','C3rVCfjLyxnVBG','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','C2vZC2LVBKLK','DgvSzw1LDhj5','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rVCf9YzwfZB24','CMvHC29UAw5NsxrLBxm','y3jLyxrLsgvHzgvYCW','B2jQzwn0','Aw1Hz2vFDxjS','ntzKsxr3whK','zMv0y2HjBxbS','zNvUy3rPB24','AxrLBq','nvvgvxbdDG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Bwf4vg9Rzw5Z','zgf0yq','zw5JCNLWDgvKx2nVBNrLBNq','y2fSBf9Pza','C29JA2v0','AgvHzgvYCW','Dg9VBenHBgXZ','AxrLBv9Pza','Aw5PDgLHBev2zw50','BwvZC2fNzv9ZDgfYDa','zwzMB3j0','zgf0ytO','y29WAwXVDc1JAgf0lZaUmZeUmW','y29TCgXLDgLVBL90B2TLBNm','CM91DgvY','C3vWCg9YDgvKrw5KCg9PBNrZ','mZi4nfP3B25hEa','BNvTyMvY','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0x2LUzgv4','z2v0','z2v0t3bLBKfPrgvSzwDHDgu','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','BwfWqxbPrxjYB3i','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','ANnVBG','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntq2m1PywMzTAG','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','B3v0Chv0sw5KzxHuB0nHBgXjza','AxneB25L','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvHC29UAw5Nx3rLEhq','y29UBMvJDgLUzW','Aw5WDxrFDg9Rzw5Z','Bw9Kzq','Dg9tDhjPBMC','qMvHCMvYia','Aw52ywXPzgf0zq','w0rptKvD','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlxjLC3bVBNnLCW','DxnLC1jLC3bVBNnLC0fWAq','BgvUz3rO','y29UC3vTzvnZzuv2zw50','y29UDgvUDf9KzwX0yq','y2f0y2G','BwvZC2fNzxm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjPBq','ChjLDMLVDxnszxnWB25ZzuLK','C3rHDhvZ','C3LZDgvT','yMXVy2TZ','D3nZoG','ywrKrxzLBNrmAxn0zw5LCG','y29TCgXLDgvK','y2fUy2vS','B3jPz2LUlxrYywnRzxi','C2vUza','CMvXDwvZDa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','C2vSzwn0u3vYzMfJzq','BwvZC2fNzuLUzgv4','C3bSAwnL','BwvZC2fNzq','CMvZB2X2zunYzwrLBNrPywW','CMvHzhLtDgf0zq','CMvZCc0','mJbhvMnMuKq','yw50AhjVCgLJlw1LC3nHz2vZ','yw50AhjVCgLJlxzLCNnPB24','DhjHBNnWB3j0','yxn5BMnjDgvYyxrVCG','y29TCgXLDgvtDxjMywnL','yxnZAxn0yw50lq','yxv0BW','C2HPzNq','DhLWzq','y29UDgvUDc10ExbL','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','zwrPDg9YvMvYC2LVBG'];_0x35dd=function(){return _0x3c23b4;};return _0x35dd();}function createToolDefinitions(_0x1ce47c){const _0x497502={_0x80ae00:0xb8,_0x293b74:0xb1,_0x358df9:0xee,_0x42fec3:0xab,_0x5a445f:0x1a0},_0x89a742={_0x868b30:0x1d,_0x4e903c:0xe,_0x4827d7:0x145,_0x2df046:0x1e3},_0x4bfb35={_0x3e74a0:0x60},_0x590930={_0x2ddf3b:0x8e,_0x2a96be:0x294,_0x21a7ac:0x3f},_0x2eda89={_0x24493c:0x4ba};function _0x19d2f9(_0x4b7284,_0x1bff1c,_0x1a0140,_0x4bb1a1){return _0x2b6123(_0x1a0140,_0x1bff1c-0xc,_0x4bb1a1- -_0x2eda89._0x24493c,_0x4bb1a1-0x1c7);}function _0x4f7e0d(_0x52e3b0,_0x31297e,_0x5c4bc7,_0x4675df){return _0x2b6123(_0x31297e,_0x31297e-_0x590930._0x2ddf3b,_0x52e3b0- -_0x590930._0x2a96be,_0x4675df-_0x590930._0x21a7ac);}if(_0x1ce47c[_0x4f7e0d(0x7,0x2f,_0x497502._0x80ae00,_0x497502._0x293b74)]===0x0)return void 0x0;return _0x1ce47c[_0x4f7e0d(_0x497502._0x358df9,_0x497502._0x42fec3,_0x497502._0x5a445f,0x79)](_0x223b19=>{const _0xd0df35={_0x148254:0x274};function _0x101eca(_0x360c3e,_0x1257d6,_0x40a732,_0x8db4a3){return _0x4f7e0d(_0x40a732-_0x4bfb35._0x3e74a0,_0x360c3e,_0x40a732-0xba,_0x8db4a3-0x28);}function _0x511d95(_0x370b42,_0x2b8f56,_0x57b7e9,_0x3c020b){return _0x19d2f9(_0x370b42-0x166,_0x2b8f56-0x20,_0x370b42,_0x57b7e9-_0xd0df35._0x148254);}return{'type':'function','function':{'name':_0x223b19[_0x101eca(0x2c,0xc9,0x19,-0x57)],'description':_0x223b19[_0x511d95(-_0x89a742._0x868b30,0xa5,-_0x89a742._0x4e903c,-0x52)],'parameters':_0x223b19[_0x101eca(0x143,0x1ad,_0x89a742._0x4827d7,_0x89a742._0x2df046)]}};});}function isImageToolResultBlock(_0x4fde29){const _0x564163={_0x2870bd:0x28,_0x354f3d:0x10f,_0xac4aed:0x8,_0x28ae62:0x96,_0x3f2862:0x99,_0x1438c5:0x8b,_0x327f29:0x10d,_0x594c40:0x86,_0x2a1132:0x1f2,_0x7ffbe0:0xd6,_0x56e709:0x12a,_0x13a809:0xba,_0x5d4c21:0x90,_0x3e357c:0xf,_0x5258cb:0x148,_0x125650:0x13d,_0x25f0a1:0x257,_0x1dbff0:0x1a3},_0x25898f={_0x1e55ba:0x1ba,_0x3673ff:0x2da,_0x754718:0x53},_0x388d95={_0x3b6dcd:0x0,_0x14c408:0x91};function _0x3ff62b(_0x1a1563,_0x37cae6,_0x820b31,_0x38ffd4){return _0x38c793(_0x37cae6,_0x37cae6-_0x388d95._0x3b6dcd,_0x820b31- -0x5b0,_0x38ffd4-_0x388d95._0x14c408);}if(typeof _0x4fde29!==_0x3bcf5b(_0x564163._0x2870bd,-0x40,-_0x564163._0x354f3d,-0x74)||_0x4fde29===null||Array['isArray'](_0x4fde29))return![];function _0x3bcf5b(_0x54c706,_0x703b39,_0x134850,_0xeb428){return _0x2b6123(_0x54c706,_0x703b39-_0x25898f._0x1e55ba,_0xeb428- -_0x25898f._0x3673ff,_0xeb428-_0x25898f._0x754718);}const _0x3d898f=_0x4fde29;return _0x3d898f[_0x3bcf5b(-0x6e,-_0x564163._0xac4aed,-0x4f,-0x1b)]===_0x3bcf5b(-_0x564163._0x28ae62,-0x14e,-0x25,-_0x564163._0x3f2862)&&_0x3d898f[_0x3ff62b(-_0x564163._0x1438c5,-0xf4,-_0x564163._0x327f29,-_0x564163._0x594c40)]?.[_0x3ff62b(-0x12f,-_0x564163._0x2a1132,-0x1c1,-0x14b)]===_0x3bcf5b(-_0x564163._0x7ffbe0,-_0x564163._0x56e709,-0xcc,-0xae)&&typeof _0x3d898f['source'][_0x3bcf5b(-_0x564163._0x13a809,-0x87,-0x57,0xa)]===_0x3bcf5b(-0xa0,0x99,-_0x564163._0x5d4c21,-_0x564163._0x3e357c)&&typeof _0x3d898f[_0x3ff62b(-0xdf,-_0x564163._0x5258cb,-0x10d,-0x10f)]['data']===_0x3ff62b(-_0x564163._0x125650,-_0x564163._0x25f0a1,-0x1b5,-_0x564163._0x1dbff0);}function getToolResultText(_0x370fb7){const _0x4b7efb={_0x476eb0:0x3be,_0x1b3bbe:0x146,_0x2f2ec0:0xa5,_0xe6cc9c:0x11d,_0xf789a5:0x31,_0x4a8e28:0x33b,_0x432800:0x375,_0x4e7311:0x367,_0x58df3a:0x3e6},_0x263a10={_0xed28b0:0xfc,_0x2f8904:0x141,_0x308b:0x11f},_0x4f30fc={_0x2e23b7:0x24c,_0x3d74d4:0x308,_0x14de29:0x31b,_0x4284ec:0x2d5,_0x440929:0x2d9,_0x2bc1c6:0x2cf,_0x5c3c13:0x27f,_0x24da0f:0x328},_0x52c7b6={_0x38a907:0x27,_0x1df4e3:0x53,_0x463289:0x1e0},_0x158353={_0x21484c:0x95,_0x3ce4f0:0x138};function _0x3bca5c(_0x2cdbd1,_0x55366b,_0x33c461,_0x4ed98d){return _0x2b6123(_0x55366b,_0x55366b-_0x158353._0x21484c,_0x33c461- -0x1b7,_0x4ed98d-_0x158353._0x3ce4f0);}if(typeof _0x370fb7===_0x591d73(0x370,0x2ba,0x29f,0x36a))return _0x370fb7;const _0xaf5711=_0x370fb7[_0x591d73(0x2df,0x306,0x314,_0x4b7efb._0x476eb0)](_0x387dfe=>{const _0x109502={_0x155bf2:0x16d,_0x2cc917:0x139};function _0x3a26be(_0x576b25,_0x5bc281,_0x241f02,_0x1a78b6){return _0x591d73(_0x5bc281,_0x1a78b6-_0x52c7b6._0x38a907,_0x241f02-_0x52c7b6._0x1df4e3,_0x1a78b6-_0x52c7b6._0x463289);}function _0x42c909(_0x23d822,_0x35c7db,_0x2f7ac3,_0x3bce41){return _0x3bca5c(_0x23d822-_0x109502._0x155bf2,_0x3bce41,_0x23d822-0x28,_0x3bce41-_0x109502._0x2cc917);}return typeof _0x387dfe===_0x3a26be(_0x4f30fc._0x2e23b7,0x1eb,_0x4f30fc._0x3d74d4,0x27c)&&_0x387dfe!==null&&_0x387dfe[_0x3a26be(0x39a,_0x4f30fc._0x14de29,0x339,_0x4f30fc._0x4284ec)]===_0x3a26be(_0x4f30fc._0x440929,_0x4f30fc._0x2bc1c6,_0x4f30fc._0x5c3c13,_0x4f30fc._0x24da0f);})['map'](_0x2c8d54=>_0x2c8d54[_0x591d73(0x3af,0x301,0x371,0x33e)])[_0x3bca5c(_0x4b7efb._0x1b3bbe,_0x4b7efb._0x2f2ec0,_0x4b7efb._0xe6cc9c,0xf0)]('\x0a\x0a')['trim']();function _0x591d73(_0x3d98be,_0x2469c4,_0x19f9aa,_0x23ea77){return _0x38c793(_0x3d98be,_0x2469c4-_0x263a10._0xed28b0,_0x2469c4- -_0x263a10._0x2f8904,_0x23ea77-_0x263a10._0x308b);}return _0xaf5711[_0x3bca5c(0xfe,_0x4b7efb._0xf789a5,0xe4,0xfb)]>0x0?_0xaf5711:_0x591d73(_0x4b7efb._0x4a8e28,_0x4b7efb._0x432800,_0x4b7efb._0x4e7311,_0x4b7efb._0x58df3a);}function getToolResultImages(_0x17040e){const _0x26c076={_0x2cd91f:0x5a8,_0x37800b:0x4b0,_0x288ec3:0x4ea,_0xead0f7:0xf1,_0x4298f0:0x23a},_0x831c67={_0x2d99aa:0x7d,_0x29fd41:0x40},_0x4bade5={_0x1ba476:0x5dd,_0x5a2f26:0x29};function _0x54f616(_0x155a74,_0x1e2632,_0x32b797,_0x2a860b){return _0x38c793(_0x155a74,_0x1e2632-0x21,_0x1e2632- -_0x4bade5._0x1ba476,_0x2a860b-_0x4bade5._0x5a2f26);}function _0x5dff45(_0x2a7642,_0x170486,_0x5850f8,_0x4a7575){return _0x38c793(_0x5850f8,_0x170486-_0x831c67._0x2d99aa,_0x2a7642-_0x831c67._0x29fd41,_0x4a7575-0x4);}return Array[_0x5dff45(0x522,_0x26c076._0x2cd91f,_0x26c076._0x37800b,_0x26c076._0x288ec3)](_0x17040e)?_0x17040e[_0x54f616(-_0x26c076._0xead0f7,-0x196,-0x169,-_0x26c076._0x4298f0)](isImageToolResultBlock):[];}function parseToolInput2(_0x16cd84){const _0x30fd35={_0x151336:0x369,_0x2774ae:0x434,_0x82e724:0x43a},_0x4934fb={_0x5eb286:0x127};function _0x3c4ec(_0x45e4d0,_0x4bf228,_0x3c471e,_0x212d09){return _0x38c793(_0x4bf228,_0x4bf228-_0x4934fb._0x5eb286,_0x45e4d0-0x61,_0x212d09-0x15a);}if(_0x16cd84[_0x3c4ec(0x42c,_0x30fd35._0x151336,_0x30fd35._0x2774ae,_0x30fd35._0x82e724)]===0x0)return{};try{return JSON['parse'](_0x16cd84);}catch{return _0x16cd84;}}function isResponsesReasoningItem(_0x276ca6){const _0x3fb770={_0x37a27e:0x4e3,_0x4432b4:0x472},_0x89efab={_0x466425:0x9f,_0x20d912:0x27d,_0x386f78:0x1ae};function _0xfe7334(_0x200986,_0x239d46,_0x7ce83d,_0x454eb3){return _0x2b6123(_0x239d46,_0x239d46-_0x89efab._0x466425,_0x200986-_0x89efab._0x20d912,_0x454eb3-_0x89efab._0x386f78);}return typeof _0x276ca6===_0xfe7334(_0x3fb770._0x37a27e,0x5ae,_0x3fb770._0x4432b4,0x477)&&_0x276ca6!==null&&'type'in _0x276ca6&&_0x276ca6['type']==='reasoning';}function isResponsesMessageItem(_0x15c239){const _0x453b19={_0x1748d2:0x13f,_0x3d22bd:0x1de,_0x55fc9a:0x184,_0x308899:0x104,_0x4398b7:0xf8,_0x37c7e2:0x177,_0x2191ab:0x12e},_0x4f0329={_0x2b91d8:0x1a4},_0x3e5351={_0x558fb9:0x26b,_0x196b52:0x1bd};function _0x5e93b5(_0x44a352,_0x13c68f,_0x39de7a,_0x3cd0f6){return _0x38c793(_0x44a352,_0x13c68f-0x195,_0x13c68f- -_0x3e5351._0x558fb9,_0x3cd0f6-_0x3e5351._0x196b52);}function _0x54a383(_0x1b79d0,_0x4bf2e0,_0x2a9a1e,_0x2bd6dc){return _0x38c793(_0x1b79d0,_0x4bf2e0-0xca,_0x2bd6dc- -0x520,_0x2bd6dc-_0x4f0329._0x2b91d8);}return typeof _0x15c239===_0x5e93b5(0x1da,0x12b,_0x453b19._0x1748d2,0x1ae)&&_0x15c239!==null&&'type'in _0x15c239&&_0x15c239[_0x5e93b5(_0x453b19._0x3d22bd,_0x453b19._0x55fc9a,_0x453b19._0x308899,_0x453b19._0x4398b7)]===_0x5e93b5(0x148,_0x453b19._0x37c7e2,_0x453b19._0x2191ab,0x13d);}function isResponsesFunctionCallItem(_0x1d8ce0){const _0x161a4a={_0x59fbc4:0x114,_0x186450:0xe1,_0x137975:0xf4,_0xa2512a:0x1d2},_0x4058b3={_0x2c8652:0xcb,_0x5cf8e4:0x2b5,_0x4f9520:0xab},_0x571a58={_0x3646c1:0x68,_0x419259:0x45,_0xb0eb99:0x1ec};function _0x56cfe9(_0x3cfd8f,_0x1c210c,_0xf15d79,_0x414c6e){return _0x2b6123(_0x414c6e,_0x1c210c-_0x571a58._0x3646c1,_0x3cfd8f- -_0x571a58._0x419259,_0x414c6e-_0x571a58._0xb0eb99);}function _0x16b09c(_0x31783d,_0x30981d,_0xb7f96c,_0x573910){return _0x38c793(_0x31783d,_0x30981d-_0x4058b3._0x2c8652,_0xb7f96c- -_0x4058b3._0x5cf8e4,_0x573910-_0x4058b3._0x4f9520);}return typeof _0x1d8ce0===_0x16b09c(_0x161a4a._0x59fbc4,0x11a,_0x161a4a._0x186450,0x1d)&&_0x1d8ce0!==null&&'type'in _0x1d8ce0&&_0x1d8ce0[_0x16b09c(_0x161a4a._0x137975,_0x161a4a._0xa2512a,0x13a,0x1b3)]==='function_call';}function createContentBlocks(_0x12c416,_0x2c54a4,_0x244a8f){const _0x31bde0={_0x4eed4a:0x5cf,_0x3241b0:0x47a,_0x415d34:0x61c,_0x7bf0d1:0x61f,_0x3dc540:0x500,_0x42b3b3:0x560,_0x39bf74:0x5eb,_0x34a3ae:0x4d1,_0x2d9db7:0x541,_0x15a339:0x55f,_0x4c914d:0x585,_0x36b899:0x5d6,_0x4e568e:0x514,_0x468365:0x4c6,_0x46eeb7:0x532,_0x173a62:0x46d,_0x2f7023:0x604,_0xc3fd03:0x542,_0x4cd3b4:0x495,_0x2bdbcc:0x436,_0x1f061b:0x566,_0x743139:0x566,_0x1d6b30:0x5a4,_0x4f2680:0x597,_0x4f91c3:0x556,_0x251012:0x654,_0x2a6629:0x4fa,_0x29f924:0x52e,_0x14b612:0x591,_0x408851:0x58b,_0x5514e0:0x504},_0x868451={_0x33e090:0x290,_0x27f39b:0x173},_0x32f6a8={_0x4be0ab:0x183,_0x4239ec:0xf6},_0x686479=[];_0x244a8f&&_0x244a8f[_0x515410(_0x31bde0._0x4eed4a,0x52b,_0x31bde0._0x3241b0,0x557)]>0x0&&_0x686479[_0x3c3edf(0x5d8,0x632,_0x31bde0._0x415d34,_0x31bde0._0x7bf0d1)]({'type':_0x515410(_0x31bde0._0x3dc540,_0x31bde0._0x42b3b3,0x5f8,_0x31bde0._0x39bf74),'summary':[],'text':_0x244a8f});function _0x3c3edf(_0x5d6911,_0x570f55,_0xa4c3b1,_0x5c3b50){return _0x38c793(_0xa4c3b1,_0x570f55-_0x32f6a8._0x4be0ab,_0x5d6911-0x194,_0x5c3b50-_0x32f6a8._0x4239ec);}_0x12c416[_0x515410(_0x31bde0._0x34a3ae,0x52b,_0x31bde0._0x2d9db7,_0x31bde0._0x15a339)]>0x0&&_0x686479[_0x515410(0x528,0x5a4,_0x31bde0._0x4c914d,0x521)]({'type':_0x3c3edf(_0x31bde0._0x36b899,_0x31bde0._0x4e568e,0x52f,0x53a),'text':_0x12c416});for(const _0x336832 of _0x2c54a4){if(_0x336832['id'][_0x515410(_0x31bde0._0x468365,_0x31bde0._0x46eeb7,0x5fa,_0x31bde0._0x173a62)]()[_0x3c3edf(_0x31bde0._0x15a339,0x4bb,_0x31bde0._0x2f7023,_0x31bde0._0xc3fd03)]===0x0||_0x336832[_0x3c3edf(0x52e,_0x31bde0._0x4cd3b4,0x487,0x4f4)][_0x515410(0x4dd,0x4dd,_0x31bde0._0x2bdbcc,0x53f)][_0x3c3edf(_0x31bde0._0x1f061b,_0x31bde0._0x743139,0x621,0x59c)]()['length']===0x0)continue;_0x686479[_0x515410(0x5bd,_0x31bde0._0x1d6b30,0x627,0x5fb)]({'type':_0x3c3edf(_0x31bde0._0x4f2680,_0x31bde0._0x4f91c3,0x52f,_0x31bde0._0x251012),'id':_0x336832['id'],'name':_0x336832[_0x515410(0x4bf,_0x31bde0._0x2a6629,0x4db,0x44c)]['name'],'input':parseToolInput2(_0x336832[_0x3c3edf(_0x31bde0._0x29f924,0x5e1,0x594,0x4c0)][_0x3c3edf(0x50a,_0x31bde0._0x14b612,_0x31bde0._0x408851,_0x31bde0._0x5514e0)])});}function _0x515410(_0x366bdb,_0x3fa656,_0x32a183,_0x4e790a){return _0x2b6123(_0x4e790a,_0x3fa656-0xb,_0x3fa656-_0x868451._0x33e090,_0x4e790a-_0x868451._0x27f39b);}return _0x686479;}function createUsage(_0x3b2c55){const _0xb3b542={_0x4db31d:0x2c8,_0x5be6ee:0x364,_0x43cea9:0x249,_0x1afdaa:0x367,_0x42cfaa:0x363,_0xf56a7f:0x2e3,_0x58100b:0x390},_0x57d603={_0x46c44a:0x1a0,_0x42146e:0x1d4},_0x18517b={_0x4791db:0x114};function _0x3dcd72(_0x56f547,_0x7e288f,_0x17b8d4,_0x398be8){return _0x2b6123(_0x398be8,_0x7e288f-_0x18517b._0x4791db,_0x56f547-0x41,_0x398be8-0xc7);}function _0x492e02(_0x308246,_0x2680da,_0x3ad168,_0x13408f){return _0x38c793(_0x13408f,_0x2680da-0x72,_0x2680da-_0x57d603._0x46c44a,_0x13408f-_0x57d603._0x42146e);}return{'inputTokens':_0x3b2c55?.['prompt_tokens']??0x0,'outputTokens':_0x3b2c55?.[_0x3dcd72(0x2bd,0x21f,0x2fd,0x332)]??0x0,..._0x3b2c55?.[_0x3dcd72(0x29d,_0xb3b542._0x4db31d,_0xb3b542._0x5be6ee,_0xb3b542._0x43cea9)]?.[_0x3dcd72(0x363,0x3ce,0x37b,0x317)]!==void 0x0?{'reasoningTokens':_0x3b2c55[_0x3dcd72(0x29d,_0xb3b542._0x1afdaa,0x339,0x27f)][_0x3dcd72(_0xb3b542._0x42cfaa,0x317,_0xb3b542._0xf56a7f,_0xb3b542._0x58100b)]}:{}};}function resolveReasoningVisibility2(_0x57b39d){const _0x36ad29={_0x16176f:0x77,_0x5a6a0e:0x32,_0x244be9:0x6a,_0x4833f2:0x3d,_0x138351:0x125,_0x2742d4:0xe6,_0x5d981e:0x195},_0x11054c={_0x4966e1:0x164,_0x1b1739:0x503},_0x18dcbc={_0x3312ad:0x13d,_0x554168:0x4b3};function _0x169a14(_0x457406,_0x133d05,_0x53a0a2,_0x141d08){return _0x38c793(_0x141d08,_0x133d05-_0x18dcbc._0x3312ad,_0x133d05- -_0x18dcbc._0x554168,_0x141d08-0xc9);}function _0x5cca0d(_0x225926,_0x593105,_0x33ba2f,_0x31893c){return _0x38c793(_0x225926,_0x593105-_0x11054c._0x4966e1,_0x33ba2f- -_0x11054c._0x1b1739,_0x31893c-0x177);}return _0x57b39d[_0x5cca0d(-_0x36ad29._0x16176f,_0x36ad29._0x5a6a0e,-_0x36ad29._0x244be9,-_0x36ad29._0x4833f2)]?.[_0x5cca0d(-0x133,-_0x36ad29._0x138351,-_0x36ad29._0x2742d4,-_0x36ad29._0x5d981e)]??'user-visible';}function isUserVisibleReasoning(_0x35d60a){const _0xc4f1ed={_0x393ead:0x544,_0x5ac841:0x568,_0x492dd4:0x4e3},_0x461ac2={_0x59dfb3:0x2b};function _0x392233(_0x3e102b,_0x5955a8,_0xd211f7,_0x36376b){return _0x2b6123(_0x5955a8,_0x5955a8-0xb5,_0xd211f7-0x1ff,_0x36376b-_0x461ac2._0x59dfb3);}return resolveOpenAiReasoningConfig(_0x35d60a[_0x392233(0x4e1,_0xc4f1ed._0x393ead,_0xc4f1ed._0x5ac841,_0xc4f1ed._0x492dd4)])!==void 0x0&&resolveReasoningVisibility2(_0x35d60a)==='user-visible';}function createChatRequestBody(_0x52989b,_0x195646){const _0x239f57={_0xa1066e:0x267,_0x24c608:0x1d1,_0x126f87:0xfe,_0x230f97:0x25e,_0x2b183c:0x240,_0x2cac0c:0x1fc,_0x5aa912:0x13a,_0x23a067:0x193,_0x1a2522:0x21f,_0x341011:0x117,_0xf82b85:0x10f,_0x2f9b50:0x11b,_0x2e23fd:0xba,_0x360795:0x16d,_0x560ad0:0x14b,_0x235407:0x28,_0x2a9fa4:0x2df,_0x53b581:0x234,_0x230999:0x240,_0x3f529e:0x2ea,_0x2be2ad:0x2ca,_0x1bcb26:0x291,_0xe82030:0x69,_0x13040b:0x133,_0x3cafb8:0xf3,_0x40fd96:0x78,_0x579268:0xee,_0x4f0aad:0xbc,_0x59f321:0x239,_0x4409d5:0x207,_0xe2ee5b:0x1cd,_0x538bc5:0x14d,_0x3f2ad9:0x1c7,_0x222e32:0x1be,_0x14ba58:0x2ea,_0x38752d:0x23e,_0x30dfd6:0x234,_0xd13189:0x303,_0x44211d:0x279,_0xec8f61:0x336,_0x539280:0x1e2,_0x106d40:0x15f,_0x1f1313:0x1e1,_0x3ce9b1:0xf1,_0x47f97b:0x155,_0x276665:0x23e,_0x4d04b1:0x1a5,_0x21edb2:0x1a7,_0x33f5ce:0x222,_0x521a29:0x2a2,_0x5cbe06:0x97,_0x25f2b9:0x112},_0x3cb694={_0x2b2814:0x3ce,_0x1dce66:0x90},_0x212e99={_0x335c1b:0x3a1,_0x4169af:0x52,_0x10b672:0x1,_0x1d580e:0x1b,_0x4f47e0:0x473,_0x4bdaad:0x3d8,_0x32a3bd:0x3b7,_0x29d379:0xa3,_0x5758c0:0x11f,_0x47bd74:0x1d,_0x4bee3f:0x42a,_0x468b05:0x3d6,_0x80225c:0x3b7,_0x511eb0:0x48,_0x573b9e:0x12b,_0x3824b4:0x18,_0x14faf1:0x34e,_0x21184b:0x3b7,_0x3691fc:0x3c,_0x57630f:0x77,_0x428edb:0x38,_0xbf8235:0x407,_0x5d1ce8:0x41d,_0x1fb716:0xea,_0x2af52b:0x120,_0x60e925:0xb6},_0x9f9f7b={_0x519fb5:0xd4,_0x2cc2de:0x5b},_0x1dca2a=[];function _0x301824(_0x322c37,_0x2cbc17,_0x12f304,_0x17892e){return _0x2b6123(_0x2cbc17,_0x2cbc17-0x22,_0x12f304- -_0x9f9f7b._0x519fb5,_0x17892e-_0x9f9f7b._0x2cc2de);}const _0x4c2a32=stringifySystem(_0x52989b[_0x301824(0x29a,_0x239f57._0xa1066e,_0x239f57._0x24c608,0x172)]);_0x4c2a32[_0x301824(_0x239f57._0x126f87,0x1bd,0x1c7,_0x239f57._0x230f97)]>0x0&&_0x1dca2a[_0x301824(0x193,0x17b,_0x239f57._0x2b183c,0x246)]({'role':_0x301824(_0x239f57._0x2cac0c,_0x239f57._0x5aa912,_0x239f57._0x24c608,_0x239f57._0x23a067),'content':_0x4c2a32});for(const _0x965ea7 of _0x52989b['messages']){const _0x3a2e0f=[],_0x1be829=[],_0x3bfae9=()=>{const _0x3f50f6={_0x15c03a:0x159,_0x155f82:0x5},_0x119094={_0x5cfb6c:0x4ea};function _0x4a7cf5(_0x1e658a,_0x45b1ee,_0x27275c,_0x23a49b){return _0x5897ac(_0x45b1ee,_0x45b1ee-0xf8,_0x23a49b-_0x119094._0x5cfb6c,_0x23a49b-0x9b);}function _0x558b99(_0x27f5db,_0x3fb917,_0xf06fc5,_0x3332e6){return _0x301824(_0x27f5db-_0x3f50f6._0x15c03a,_0xf06fc5,_0x27f5db- -0x15d,_0x3332e6-_0x3f50f6._0x155f82);}if(_0x965ea7[_0x4a7cf5(_0x212e99._0x335c1b,0x407,0x482,0x437)]===_0x558b99(0x13d,0x163,0x1d2,0xdc)){if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x4169af,-_0x212e99._0x10b672,_0x212e99._0x1d580e)]===0x0&&_0x1be829['length']===0x0)return;_0x1dca2a[_0x558b99(0xe3,0x6b,0x38,0x1a2)]({'role':'assistant','content':_0x3a2e0f[_0x4a7cf5(_0x212e99._0x4f47e0,_0x212e99._0x4bdaad,0x3fe,_0x212e99._0x32a3bd)]>0x0?_0x3a2e0f[_0x558b99(_0x212e99._0x29d379,_0x212e99._0x5758c0,_0x212e99._0x47bd74,0x9f)]('\x0a\x0a'):null,..._0x1be829[_0x4a7cf5(_0x212e99._0x4bee3f,_0x212e99._0x468b05,0x36d,_0x212e99._0x80225c)]>0x0?{'tool_calls':_0x1be829[_0x558b99(0x80,-_0x212e99._0x511eb0,_0x212e99._0x573b9e,-_0x212e99._0x3824b4)](0x0)}:{}}),_0x3a2e0f[_0x4a7cf5(0x406,_0x212e99._0x14faf1,0x306,_0x212e99._0x21184b)]=0x0;return;}if(_0x3a2e0f[_0x558b99(0x6a,_0x212e99._0x3691fc,_0x212e99._0x57630f,_0x212e99._0x428edb)]===0x0)return;_0x1dca2a[_0x4a7cf5(_0x212e99._0xbf8235,_0x212e99._0x5d1ce8,0x3f9,0x430)]({'role':_0x965ea7[_0x558b99(_0x212e99._0x1fb716,_0x212e99._0x2af52b,0x68,_0x212e99._0x60e925)],'content':_0x3a2e0f['join']('\x0a\x0a')}),_0x3a2e0f[_0x4a7cf5(0x392,0x34e,0x411,_0x212e99._0x80225c)]=0x0;};for(const _0xc2eea5 of normalizeContent(_0x965ea7[_0x301824(0x1d4,_0x239f57._0x1a2522,0x207,0x1c5)])){if(_0xc2eea5[_0x5897ac(-_0x239f57._0x341011,-0x1d3,-_0x239f57._0xf82b85,-_0x239f57._0x2f9b50)]==='text'){_0x3a2e0f[_0x5897ac(-0x9c,-0x57,-_0x239f57._0x2e23fd,-_0x239f57._0x360795)](_0xc2eea5[_0x5897ac(-0xc3,-_0x239f57._0x560ad0,-0xbc,-_0x239f57._0x235407)]);continue;}if(_0xc2eea5[_0x301824(0x298,0x2a4,0x1eb,0x19e)]==='tool_use'){_0x1be829[_0x301824(_0x239f57._0x2a9fa4,_0x239f57._0x53b581,_0x239f57._0x230999,0x18d)]({'id':_0xc2eea5['id'],'type':'function','function':{'name':_0xc2eea5['name'],'arguments':JSON['stringify'](_0xc2eea5[_0x301824(_0x239f57._0x3f529e,0x30e,0x286,0x1f5)]??{})}});continue;}if(_0xc2eea5['type']!==_0x301824(_0x239f57._0x2be2ad,0x2df,_0x239f57._0x1bcb26,0x20e))continue;_0x3bfae9(),_0x1dca2a['push']({'role':'tool','content':getToolResultText(_0xc2eea5[_0x5897ac(-_0x239f57._0xe82030,-_0x239f57._0x13040b,-_0x239f57._0x3cafb8,-0x15d)]),'tool_call_id':_0xc2eea5[_0x5897ac(-_0x239f57._0x40fd96,-_0x239f57._0x579268,-0x81,-_0x239f57._0x4f0aad)]});const _0x67688a=getToolResultImages(_0xc2eea5[_0x301824(0x163,_0x239f57._0x59f321,_0x239f57._0x4409d5,_0x239f57._0x560ad0)]);_0x67688a[_0x301824(_0x239f57._0xe2ee5b,_0x239f57._0x538bc5,_0x239f57._0x3f2ad9,_0x239f57._0x222e32)]>0x0&&_0x1dca2a['push']({'role':_0x301824(0x291,_0x239f57._0x14ba58,0x221,0x2de),'content':[{'type':_0x301824(0x25d,0x190,_0x239f57._0x38752d,_0x239f57._0x30dfd6),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xc2eea5[_0x301824(_0x239f57._0xd13189,0x21a,_0x239f57._0x44211d,_0x239f57._0xec8f61)]+'.'},..._0x67688a['map'](_0x420993=>({'type':_0x5897ac(-0x1f2,-0x137,-0x167,-0x1e9),'image_url':{'url':'data:'+_0x420993[_0x301824(0x2c7,0x216,0x29f,0x347)][_0x5897ac(-0x9d,-0x26,-0xea,-0x157)]+_0x5897ac(0x18,0x6,-0x70,-0xe5)+_0x420993[_0x301824(0x35d,0x2a8,0x29f,0x232)][_0x301824(0x17d,0x226,0x19c,0x149)]}}))]});}_0x3bfae9();}const _0x185be0=resolveOpenAiReasoningConfig(_0x52989b['reasoning']);function _0x5897ac(_0x2a729c,_0x270b6a,_0x199189,_0x119407){return _0x2b6123(_0x2a729c,_0x270b6a-0xe,_0x199189- -_0x3cb694._0x2b2814,_0x119407-_0x3cb694._0x1dce66);}return{'model':_0x52989b['model'],'messages':_0x1dca2a,'stream':_0x195646,..._0x185be0?{'max_completion_tokens':_0x52989b['maxTokens']}:{'max_tokens':_0x52989b[_0x5897ac(-_0x239f57._0x539280,-0x1ce,-_0x239f57._0x106d40,-0x1d2)]},..._0x185be0?.[_0x5897ac(-_0x239f57._0x1f1313,-_0x239f57._0x3ce9b1,-_0x239f57._0x47f97b,-0x106)]?{'reasoning_effort':_0x185be0[_0x301824(0x24b,_0x239f57._0x276665,_0x239f57._0x4d04b1,_0x239f57._0x21edb2)]}:{},...createToolDefinitions(_0x52989b[_0x301824(0x249,0x1dc,_0x239f57._0x33f5ce,_0x239f57._0x521a29)])?{'tools':createToolDefinitions(_0x52989b[_0x5897ac(-0x3f,-_0x239f57._0x5cbe06,-0xd8,-_0x239f57._0x25f2b9)])}:{}};}function createResponsesRequestBody(_0x5c53fe,_0x4b7fe3){return{...toOpenAiResponsesRequest(_0x5c53fe),..._0x4b7fe3?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3e2204,_0x21dfb4={}){const _0x4ad6d0={_0x3b0319:0x1e2,_0x2ab3d9:0x31,_0x3c015a:0xdb,_0x3431f7:0x1a7,_0x4e2a35:0x137,_0xbe27b5:0x148},_0x4f0d28={_0x1b58ef:0x565},_0x37658e={_0x4b929b:0x5f,_0xeec54:0x1b3};function _0x208b0e(_0x51946c,_0x36fc66,_0x49a016,_0x4ac939){return _0x2b6123(_0x4ac939,_0x36fc66-_0x37658e._0x4b929b,_0x36fc66- -_0x37658e._0xeec54,_0x4ac939-0x15c);}const _0x4f4dd2=toOpenAiResponsesRequest(_0x3e2204);function _0x4cf849(_0x218cbd,_0xfc625b,_0x23b4cd,_0x5c947c){return _0x38c793(_0x23b4cd,_0xfc625b-0x149,_0x5c947c- -_0x4f0d28._0x1b58ef,_0x5c947c-0x1b3);}return{'type':_0x4cf849(-0x13b,-0x230,-0x23a,-_0x4ad6d0._0x3b0319),..._0x4f4dd2,..._0x21dfb4[_0x4cf849(-0x144,-_0x4ad6d0._0x2ab3d9,-0xd4,-_0x4ad6d0._0x3c015a)]?{'input':_0x21dfb4[_0x208b0e(0x14f,_0x4ad6d0._0x3431f7,0x157,_0x4ad6d0._0x4e2a35)]}:{},..._0x21dfb4['previousResponseId']?{'previous_response_id':_0x21dfb4[_0x208b0e(_0x4ad6d0._0xbe27b5,0xf0,0x154,0x42)]}:{},'store':![]};}function normalizeAssistantContent(_0x2273a7){const _0x835e7e={_0x53a761:0x1ab,_0x1ed018:0x260,_0x29b976:0x1ff,_0x35b7a5:0x458,_0x5b93aa:0x4b5,_0x4dda9e:0x3aa},_0x2f2d7c={_0x116ec3:0x146,_0x8f50be:0x16a,_0x457bff:0x91,_0x51801a:0x165},_0x11c049={_0x4388e1:0x1b7,_0x1ad317:0x4db};if(typeof _0x2273a7===_0x132d81(-0x253,-_0x835e7e._0x53a761,-_0x835e7e._0x1ed018,-_0x835e7e._0x29b976))return _0x2273a7;function _0x132d81(_0x4aba98,_0x37ad49,_0x5b7693,_0x4074f7){return _0x2b6123(_0x5b7693,_0x37ad49-0x123,_0x37ad49- -0x476,_0x4074f7-0xbd);}function _0x3693e6(_0x1995ba,_0x58cec0,_0x221482,_0x3e1ea6){return _0x2b6123(_0x221482,_0x58cec0-0xba,_0x58cec0-0xd6,_0x3e1ea6-0x1b0);}if(!Array['isArray'](_0x2273a7))return'';return _0x2273a7[_0x3693e6(0x47d,_0x835e7e._0x35b7a5,0x4f8,_0x835e7e._0x5b93aa)](_0x49088c=>{function _0x1637dc(_0x3d5d5e,_0x34a531,_0x5cc678,_0x12b93f){return _0x3693e6(_0x3d5d5e-_0x11c049._0x4388e1,_0x3d5d5e- -_0x11c049._0x1ad317,_0x12b93f,_0x12b93f-0xad);}return _0x49088c[_0x1637dc(-_0x2f2d7c._0x116ec3,-_0x2f2d7c._0x8f50be,-_0x2f2d7c._0x457bff,-_0x2f2d7c._0x51801a)]==='text'?_0x49088c['text']:_0x49088c['refusal'];})[_0x3693e6(0x3fa,_0x835e7e._0x4dda9e,0x37f,0x34c)]('');}function normalizeResponsesMessageContent(_0x37310c){const _0x716e4b={_0x14e073:0x6f0,_0x2d1518:0x5e8,_0x19bb00:0x719},_0xb75fff={_0x1211bb:0x133,_0x38f143:0x151,_0x3b03da:0x1be,_0x38e823:0x4c5,_0x33ee3b:0x495,_0x5ef18b:0x516,_0x259cd8:0x166,_0x1d10a9:0x113,_0x1d85a3:0xb,_0x475d71:0x466,_0x13bed5:0x492,_0x47cd70:0x4f2,_0x11c695:0x462,_0x76fc21:0x4c3,_0x350f67:0x61,_0x2892ee:0x28,_0x3f10b2:0x48,_0xd206b5:0x53c,_0x38a49b:0x479,_0x5125a9:0x508},_0x42d270={_0x1cfa2d:0xcd,_0x1c7f4b:0x1c9},_0x7d3b2e={_0x24f3c7:0xc5,_0x1d6e97:0x122};function _0x31cf68(_0x4c036d,_0x354955,_0x12f5a0,_0x3cc1ca){return _0x2b6123(_0x3cc1ca,_0x354955-0x79,_0x12f5a0-_0x7d3b2e._0x24f3c7,_0x3cc1ca-_0x7d3b2e._0x1d6e97);}function _0x3ba102(_0xbc59ab,_0x55ec52,_0x356ab1,_0x589b30){return _0x38c793(_0x55ec52,_0x55ec52-_0x42d270._0x1cfa2d,_0x589b30-0x1c8,_0x589b30-_0x42d270._0x1c7f4b);}if(!Array[_0x3ba102(_0x716e4b._0x14e073,0x612,_0x716e4b._0x2d1518,0x6aa)](_0x37310c))return'';return _0x37310c[_0x3ba102(0x668,_0x716e4b._0x19bb00,0x680,0x67a)](_0x4708fc=>{const _0x24354a={_0x10f855:0x27,_0x4f920f:0x119},_0x3876de={_0x6abdd3:0x41,_0x4a95bc:0x691};function _0x134f5e(_0x2bf28d,_0x31b371,_0x7b3bb2,_0x3c8936){return _0x3ba102(_0x2bf28d-_0x3876de._0x6abdd3,_0x3c8936,_0x7b3bb2-0x64,_0x31b371- -_0x3876de._0x4a95bc);}function _0x5ee43e(_0x1ce4bf,_0x50355d,_0x16bf36,_0x13070d){return _0x3ba102(_0x1ce4bf-_0x24354a._0x10f855,_0x50355d,_0x16bf36-_0x24354a._0x4f920f,_0x13070d- -0xf4);}if(!_0x4708fc||typeof _0x4708fc!==_0x134f5e(-0x1ae,-_0xb75fff._0x1211bb,-_0xb75fff._0x38f143,-_0xb75fff._0x3b03da))return'';const _0xcda266=_0x4708fc;if(_0xcda266['type']===_0x134f5e(-0x186,-0xc7,-0x12c,-0x179)&&typeof _0xcda266[_0x5ee43e(_0xb75fff._0x38e823,0x592,_0xb75fff._0x33ee3b,_0xb75fff._0x5ef18b)]===_0x134f5e(-_0xb75fff._0x259cd8,-0xce,-_0xb75fff._0x1d10a9,-_0xb75fff._0x1d85a3))return _0xcda266[_0x5ee43e(_0xb75fff._0x475d71,_0xb75fff._0x13bed5,0x5c8,0x516)];if(_0xcda266[_0x5ee43e(0x43e,_0xb75fff._0x47cd70,_0xb75fff._0x11c695,_0xb75fff._0x76fc21)]===_0x134f5e(-0x4b,-_0xb75fff._0x350f67,_0xb75fff._0x2892ee,-_0xb75fff._0x3f10b2)&&typeof _0xcda266[_0x5ee43e(0x55f,0x47f,0x497,_0xb75fff._0xd206b5)]==='string')return _0xcda266[_0x5ee43e(_0xb75fff._0x38a49b,_0xb75fff._0x5125a9,0x548,_0xb75fff._0xd206b5)];return'';})['join']('');}function extractOpenAiReasoningText(_0x4f8f79){const _0x3329c7={_0x2a93b0:0x11,_0x197f21:0x12,_0x2f954d:0x6f,_0x57b0bb:0x109,_0x30bcbf:0x78,_0x160906:0xa0,_0x35f0cb:0x47,_0x126f5e:0x547,_0x18a780:0x466,_0x4db679:0xee,_0x46e883:0x23,_0x386cdb:0x563,_0x519ada:0x4af,_0x4ca9f1:0x49e,_0x5927c2:0x4b5,_0x3288f2:0x508},_0x42c896={_0xd6bd4c:0x92,_0x3a9871:0x1bc},_0x1af2d4={_0x48c97f:0xdf,_0x297b0d:0x41};if(typeof _0x4f8f79[_0x461394(0x7,-0x28,_0x3329c7._0x2a93b0,_0x3329c7._0x197f21)]===_0x461394(-0xaa,-_0x3329c7._0x2f954d,-0x9,-0x125))return _0x4f8f79['text'];if(!Array[_0x461394(_0x3329c7._0x57b0bb,_0x3329c7._0x30bcbf,_0x3329c7._0x160906,-_0x3329c7._0x35f0cb)](_0x4f8f79[_0x100b86(0x4bc,0x42d,_0x3329c7._0x126f5e,_0x3329c7._0x18a780)]))return'';function _0x100b86(_0x45aaab,_0x52c889,_0x488d91,_0x17fae5){return _0x38c793(_0x52c889,_0x52c889-_0x1af2d4._0x48c97f,_0x45aaab-0xb1,_0x17fae5-_0x1af2d4._0x297b0d);}function _0x461394(_0x7bc080,_0x5472b2,_0x53ad51,_0x57d9bb){return _0x38c793(_0x53ad51,_0x5472b2-_0x42c896._0xd6bd4c,_0x5472b2- -0x46a,_0x57d9bb-_0x42c896._0x3a9871);}return _0x4f8f79['content'][_0x461394(-_0x3329c7._0x4db679,-_0x3329c7._0x46e883,-0x4d,-0x33)](_0x373075=>_0x373075['type']===_0x461394(-0x134,-0xaa,-0x158,-0x13f)&&typeof _0x373075[_0x461394(-0x86,-0x28,0x6e,0x5e)]===_0x461394(-0x6,-0x6f,-0x4b,0x3c))[_0x100b86(_0x3329c7._0x386cdb,_0x3329c7._0x519ada,_0x3329c7._0x4ca9f1,0x4ef)](_0x78f591=>_0x78f591[_0x461394(-0x13,-0x28,-0x9f,-0x41)]??'')[_0x100b86(_0x3329c7._0x5927c2,0x50e,0x56d,_0x3329c7._0x3288f2)]('');}function createOpenAiReasoningBlock(_0x14dcdc){const _0x4f6365={_0x1686bf:0x1b3,_0x14f4ae:0x1ca,_0x11562a:0x1f4,_0x576065:0x159,_0x3a90c0:0x215,_0x1ac145:0x104,_0x8df1fe:0x149,_0x576ce2:0x1c0},_0x1da0d1={_0x259d9d:0x13e,_0x484c68:0x5ca,_0x4da978:0x134},_0x4086e9={_0x12ee98:0x113,_0x452878:0x14a};function _0x488db1(_0x5c9f5c,_0x35fbf9,_0x5d0b9c,_0x2b4dee){return _0x2b6123(_0x5d0b9c,_0x35fbf9-_0x4086e9._0x12ee98,_0x5c9f5c- -0x3ca,_0x2b4dee-_0x4086e9._0x452878);}function _0x1014d4(_0xa2b495,_0x496c80,_0x8ceb7b,_0x492f21){return _0x38c793(_0x8ceb7b,_0x496c80-_0x1da0d1._0x259d9d,_0x496c80- -_0x1da0d1._0x484c68,_0x492f21-_0x1da0d1._0x4da978);}const _0x439047=extractOpenAiReasoningText(_0x14dcdc);return{'type':_0x1014d4(-_0x4f6365._0x1686bf,-_0x4f6365._0x14f4ae,-0x28e,-_0x4f6365._0x11562a),'summary':structuredClone(_0x14dcdc['summary']??[]),..._0x14dcdc['id']?{'id':_0x14dcdc['id']}:{},..._0x14dcdc[_0x488db1(-_0x4f6365._0x576065,-_0x4f6365._0x3a90c0,-_0x4f6365._0x1ac145,-0x129)]?{'encryptedContent':_0x14dcdc['encrypted_content']}:{},..._0x439047[_0x488db1(-0x12f,-_0x4f6365._0x8df1fe,-0xd8,-_0x4f6365._0x576ce2)]>0x0?{'text':_0x439047}:{}};}function hasVisibleOpenAiReasoning(_0x30739d){const _0x496f7f={_0x43acb3:0x144,_0x18ebaf:0x200,_0x7c61c4:0x1b0,_0x2fccde:0x257,_0x266517:0x207,_0x4e094a:0xf8},_0x215b54={_0x3e9626:0x21b},_0x15b6ad={_0x25d420:0x1};function _0x104a7b(_0x28b1c6,_0x5d1140,_0x550969,_0xea4343){return _0x2b6123(_0x5d1140,_0x5d1140-0x14d,_0x550969- -0x3a5,_0xea4343-_0x15b6ad._0x25d420);}function _0x382cf0(_0x2d1273,_0x37cbb6,_0x2a29d5,_0x2a1674){return _0x38c793(_0x2d1273,_0x37cbb6-0x137,_0x2a1674- -_0x215b54._0x3e9626,_0x2a1674-0x129);}return _0x30739d['summary'][_0x382cf0(0x239,_0x496f7f._0x43acb3,_0x496f7f._0x18ebaf,_0x496f7f._0x7c61c4)]>0x0||typeof _0x30739d[_0x382cf0(_0x496f7f._0x2fccde,0x282,_0x496f7f._0x266517,0x227)]===_0x104a7b(-0x180,-0x92,-0xda,-_0x496f7f._0x4e094a);}function parseChatCompletionResponse(_0x571879){const _0x3eca13={_0x35f007:0x1c8,_0x5f42d7:0x129,_0x2f343c:0x51c,_0x428d40:0x1a0,_0x49db4e:0x1c4,_0x4451d8:0x649,_0x54f990:0x5f1,_0x82d2c6:0x556,_0x4d0ea7:0x60e,_0xa7c5f1:0xe4,_0x213249:0xda,_0x5267c7:0x14b,_0x1ca9a6:0x5d4,_0x512bfd:0x5d9,_0x1df7ba:0x520,_0x59e368:0x658,_0x37f565:0x1e6,_0x4b5773:0x220},_0x207160={_0x439e32:0x127,_0x4ebe1a:0x54e},_0xde3ba7={_0x407459:0x10a,_0x4ed8af:0x174},_0x233cd4=[],_0x471882=[];let _0x1eab62=_0x363fd8(-_0x3eca13._0x35f007,-0x251,-0x237,-_0x3eca13._0x5f42d7);function _0xd667bb(_0x3bed8e,_0x3cac01,_0x59586d,_0x4a38fc){return _0x2b6123(_0x3cac01,_0x3cac01-_0xde3ba7._0x407459,_0x3bed8e-0x2dd,_0x4a38fc-_0xde3ba7._0x4ed8af);}function _0x363fd8(_0x23d17d,_0x3a21ea,_0x38341d,_0x3109c3){return _0x38c793(_0x3a21ea,_0x3a21ea-_0x207160._0x439e32,_0x23d17d- -_0x207160._0x4ebe1a,_0x3109c3-0x3e);}for(const _0x3aac3f of _0x571879[_0xd667bb(0x50e,0x5c5,0x53e,_0x3eca13._0x2f343c)]??[]){const _0x255dfa=_0x3aac3f[_0x363fd8(-0x16c,-0x211,-0x15e,-0x1a2)],_0x48cf4d=normalizeAssistantContent(_0x255dfa?.[_0x363fd8(-0x143,-_0x3eca13._0x428d40,-0x10c,-_0x3eca13._0x49db4e)]);_0x48cf4d['length']>0x0&&_0x233cd4[_0xd667bb(0x5f1,0x697,0x56e,_0x3eca13._0x4451d8)](_0x48cf4d),_0x255dfa?.['tool_calls']&&_0x471882[_0xd667bb(_0x3eca13._0x54f990,_0x3eca13._0x82d2c6,_0x3eca13._0x4d0ea7,0x5bd)](..._0x255dfa['tool_calls']),_0x3aac3f['finish_reason']===_0x363fd8(-_0x3eca13._0xa7c5f1,-0x109,-_0x3eca13._0x213249,-0xcf)&&(_0x1eab62=_0xd667bb(0x5b0,0x540,0x55a,0x57f));}return _0x471882['length']>0x0&&(_0x1eab62=_0x363fd8(-_0x3eca13._0x5267c7,-0x161,-0xae,-0x121)),{'id':_0x571879['id']??_0xd667bb(0x513,0x541,_0x3eca13._0x1ca9a6,_0x3eca13._0x512bfd)+Date[_0xd667bb(0x5d1,0x672,_0x3eca13._0x1df7ba,0x606)](),'content':createContentBlocks(_0x233cd4[_0xd667bb(0x5b1,0x53d,_0x3eca13._0x59e368,0x4e7)](''),_0x471882),'stopReason':_0x1eab62,'usage':createUsage(_0x571879[_0x363fd8(-0x1ee,-_0x3eca13._0x37f565,-_0x3eca13._0x4b5773,-0x1d0)])};}function parseResponsesResponse(_0x35dbaa,_0x169821){const _0x4f55ca={_0x3081e3:0x6a,_0x1aeada:0x70,_0x41f058:0x17,_0xf7dac5:0x2b,_0x5e2bc2:0x5a,_0x1d00d0:0x100,_0x1d0e88:0xc7,_0x485b8a:0x186,_0x2a5470:0xfe,_0x49327d:0x152,_0x5eb2c1:0xce,_0x5f04ae:0xfc,_0x2fc2ee:0x3a,_0x2e2f2c:0xff,_0x27a6db:0x8e,_0x36d599:0x9b,_0x216fdf:0x8d,_0x3e8080:0x87,_0x4fcc48:0x97,_0x1eb410:0xe,_0xa846a0:0x68,_0x11c6ae:0xb7,_0x171f67:0x12a,_0x3edd56:0xfd,_0x388bdf:0x0,_0x7e5330:0xc2,_0x390983:0x1c6,_0x6de3ef:0x13f,_0x471f09:0x16d,_0x872d3a:0x130,_0x43ae15:0x9b,_0x414856:0x39,_0x184b0f:0x2c,_0x579ac9:0x212,_0x1226b6:0xa2,_0x28016b:0x169,_0x30776b:0xab,_0x12a0c5:0x14e,_0x1e4cd0:0xbd,_0x31f0af:0xbe,_0x47a439:0x3b,_0x3cdb87:0xc1,_0x25d1be:0x19f,_0x5ed4d3:0x2a,_0x29d41f:0x9a,_0x41a5fa:0xa7,_0x38d0d1:0x78,_0x11be8f:0xcd,_0x1b4231:0x131,_0x449127:0x16e,_0x3654e4:0x6b,_0x271b32:0x96,_0x5b2ba5:0x23d,_0x25414c:0x17a,_0x3788d0:0x1b7,_0x263c8a:0xd2,_0x1b1bc8:0x25,_0x31619b:0xe5,_0x21d160:0xaf,_0x1d996d:0x17,_0x5f09f9:0x1bf,_0x19613e:0x10e,_0x3ee42b:0x8f,_0x55e32f:0xa1,_0x33e32d:0x21,_0x409983:0xd4},_0x58dd85={_0x32ddf5:0xa6},_0x486941={_0x1b0490:0x214},_0x5b7295=[];function _0x14986d(_0x2f38c3,_0x55bc87,_0x773cd3,_0x1c1a4d){return _0x2b6123(_0x55bc87,_0x55bc87-0xb9,_0x773cd3- -_0x486941._0x1b0490,_0x1c1a4d-0x15a);}function _0xc88042(_0x44730f,_0x2050b4,_0x3e50a1,_0x4d212c){return _0x2b6123(_0x3e50a1,_0x2050b4-_0x58dd85._0x32ddf5,_0x44730f- -0x2fd,_0x4d212c-0x1bd);}for(const _0x339852 of _0x35dbaa[_0x14986d(-_0x4f55ca._0x3081e3,0xb,0x21,_0x4f55ca._0x1aeada)]??[]){if(isResponsesReasoningItem(_0x339852)){if(isUserVisibleReasoning(_0x169821)){const _0x14b8d0=createOpenAiReasoningBlock(_0x339852);hasVisibleOpenAiReasoning(_0x14b8d0)&&_0x5b7295[_0xc88042(_0x4f55ca._0x41f058,0x36,_0x4f55ca._0xf7dac5,-_0x4f55ca._0x5e2bc2)](_0x14b8d0);}continue;}if(isResponsesMessageItem(_0x339852)){const _0x32844a=normalizeResponsesMessageContent(_0x339852[_0x14986d(0x55,_0x4f55ca._0x1d00d0,_0x4f55ca._0x1d0e88,_0x4f55ca._0x485b8a)]);_0x32844a['length']>0x0&&_0x5b7295['push']({'type':_0x14986d(0x17a,0x1b4,_0x4f55ca._0x2a5470,0xd2),'text':_0x32844a});continue;}if(!isResponsesFunctionCallItem(_0x339852)||typeof _0x339852[_0xc88042(-0x8b,-0x109,-_0x4f55ca._0x49327d,-_0x4f55ca._0x5eb2c1)]!==_0x14986d(0x65,0x16c,0xb7,_0x4f55ca._0x5f04ae)||_0x339852['call_id'][_0x14986d(-_0x4f55ca._0x2fc2ee,_0x4f55ca._0x2e2f2c,_0x4f55ca._0x27a6db,0x118)]()[_0x14986d(_0x4f55ca._0x36d599,_0x4f55ca._0x216fdf,0x87,_0x4f55ca._0x3e8080)]===0x0||typeof _0x339852['name']!==_0xc88042(-0x32,-0x67,-_0x4f55ca._0x4fcc48,_0x4f55ca._0x1eb410)||_0x339852['name'][_0xc88042(-0x5b,-0x4d,-0xaa,-0x99)]()[_0xc88042(-0x62,0x45,_0x4f55ca._0xa846a0,-0xbc)]===0x0||typeof _0x339852[_0xc88042(-_0x4f55ca._0x11c6ae,-_0x4f55ca._0x171f67,-_0x4f55ca._0x3edd56,_0x4f55ca._0x388bdf)]!==_0xc88042(-0x32,-_0x4f55ca._0x7e5330,-0x32,0x3b))continue;_0x5b7295[_0x14986d(_0x4f55ca._0x390983,_0x4f55ca._0x6de3ef,0x100,0xca)]({'type':_0x14986d(0x116,_0x4f55ca._0x471f09,0xbf,_0x4f55ca._0x872d3a),'id':_0x339852[_0x14986d(_0x4f55ca._0x43ae15,0xe8,0x5e,-0x27)],'name':_0x339852[_0x14986d(0x92,-0x52,_0x4f55ca._0x414856,_0x4f55ca._0x184b0f)],'input':parseToolInput2(_0x339852['arguments'])});}return!_0x5b7295[_0x14986d(_0x4f55ca._0x579ac9,_0x4f55ca._0x1226b6,_0x4f55ca._0x28016b,_0x4f55ca._0x30776b)](_0xf3061=>_0xf3061[_0xc88042(-0x3e,0x6,-0xa9,-0xb5)]===_0x14986d(0x37,0x16d,0xfe,0x7a))&&_0x35dbaa[_0x14986d(_0x4f55ca._0x12a0c5,_0x4f55ca._0x1e4cd0,_0x4f55ca._0x31f0af,_0x4f55ca._0x47a439)]&&_0x5b7295[_0x14986d(_0x4f55ca._0x3cdb87,_0x4f55ca._0x25d1be,0x100,0xb9)]({'type':'text','text':_0x35dbaa[_0x14986d(0x9d,0x106,_0x4f55ca._0x31f0af,0x154)]}),{'id':_0x35dbaa['id'],'content':_0x5b7295,'stopReason':_0x5b7295['some'](_0x2ca048=>_0x2ca048[_0xc88042(-0x3e,0x2d,0xe,-0xf3)]===_0xc88042(-0x2a,-0x97,-0x9d,-0x79))?_0xc88042(-_0x4f55ca._0x5ed4d3,_0x4f55ca._0x29d41f,0x23,-0x61):_0xc88042(-_0x4f55ca._0x41a5fa,0x1d,-0xf1,-_0x4f55ca._0x38d0d1),'usage':{'inputTokens':_0x35dbaa[_0xc88042(-_0x4f55ca._0x11be8f,-0x50,-_0x4f55ca._0x1b4231,-_0x4f55ca._0x449127)]?.[_0xc88042(-_0x4f55ca._0x3654e4,-0x108,-0x102,-0x60)]??0x0,'outputTokens':_0x35dbaa[_0x14986d(-_0x4f55ca._0x5ed4d3,-0x22,0x1c,_0x4f55ca._0x271b32)]?.[_0x14986d(_0x4f55ca._0x5b2ba5,_0x4f55ca._0x25414c,0x19f,_0x4f55ca._0x3788d0)]??0x0,..._0x35dbaa['usage']?.[_0xc88042(-_0x4f55ca._0x263c8a,-_0x4f55ca._0x31f0af,-0x5f,-0x189)]?.[_0xc88042(_0x4f55ca._0x1b1bc8,_0x4f55ca._0x31619b,0x31,0xb4)]!==void 0x0?{'reasoningTokens':_0x35dbaa['usage'][_0x14986d(-_0x4f55ca._0x21d160,0xca,_0x4f55ca._0x1d996d,-0x32)][_0x14986d(_0x4f55ca._0x5f09f9,0x1b9,_0x4f55ca._0x19613e,0x159)]}:{}},..._0x35dbaa[_0xc88042(-0xc8,-0x135,-0xbc,-0xdf)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x35dbaa[_0x14986d(-_0x4f55ca._0x3ee42b,-_0x4f55ca._0x55e32f,_0x4f55ca._0x33e32d,_0x4f55ca._0x409983)]),'openaiResponsesResponseId':_0x35dbaa['id']}}:{}};}function extractErrorMessage(_0x312449){const _0x24077f={_0x4bbf37:0xe2,_0x4ae2c1:0x73,_0x168d48:0x41d,_0xb0cbc2:0x49b,_0x4430a8:0x43f,_0x22914f:0x3fc,_0x459fa6:0x3af,_0xb02520:0x4d1,_0x187094:0x541,_0x5f5ac0:0x3d5,_0x3f07de:0x5a,_0x15470f:0x3f9,_0xe8ebc5:0x4ae,_0x2201c8:0x43,_0x433c81:0x48,_0x48d950:0x43,_0x421e55:0xfe,_0x48c780:0x4b9,_0x4e05fe:0x46a,_0x97743b:0x3f3,_0x47521f:0x4a0,_0x17bc98:0x3cb,_0x2c4c14:0x381,_0x36ad21:0x431,_0x159a21:0x54,_0x1c5b14:0xac,_0x422fff:0xb6,_0x3395a7:0x74,_0x4c6765:0xf,_0x3c8eb6:0x43,_0x2a5ad4:0x3f4},_0x587de2={_0x543202:0xc8,_0x409b11:0x107},_0x4695a6={_0x51e85d:0x29,_0x42b19f:0x1ea};if(_0x312449[_0x1bf87b(0xee,_0x24077f._0x4bbf37,0x43,-_0x24077f._0x4ae2c1)]===0x0)return'';function _0x1299d2(_0x387b41,_0x4df939,_0x4bd34f,_0x197c94){return _0x38c793(_0x4bd34f,_0x4df939-0x14d,_0x4df939-_0x4695a6._0x51e85d,_0x197c94-_0x4695a6._0x42b19f);}try{const _0x1f83c2=JSON[_0x1299d2(0x4c6,0x450,_0x24077f._0x168d48,0x449)](_0x312449);if(typeof _0x1f83c2[_0x1299d2(0x500,_0x24077f._0xb0cbc2,_0x24077f._0x4430a8,_0x24077f._0x22914f)]?.['message']===_0x1299d2(_0x24077f._0x459fa6,0x424,_0x24077f._0xb02520,0x3ad)&&_0x1f83c2[_0x1299d2(_0x24077f._0x187094,_0x24077f._0xb0cbc2,_0x24077f._0x5f5ac0,0x40e)][_0x1bf87b(0x36,0x11d,_0x24077f._0x3f07de,0xfe)][_0x1299d2(0x33a,0x3fb,_0x24077f._0x15470f,_0x24077f._0xe8ebc5)]()[_0x1bf87b(0x86,0xb6,_0x24077f._0x2201c8,_0x24077f._0x433c81)]>0x0)return _0x1f83c2['error'][_0x1bf87b(-_0x24077f._0x48d950,0xac,0x5a,_0x24077f._0x421e55)][_0x1299d2(_0x24077f._0x48c780,0x3fb,_0x24077f._0x4e05fe,_0x24077f._0x97743b)]();if(typeof _0x1f83c2[_0x1299d2(_0x24077f._0x47521f,0x40b,_0x24077f._0x17bc98,0x3c5)]===_0x1299d2(0x4bf,0x424,_0x24077f._0x2c4c14,_0x24077f._0x36ad21)&&_0x1f83c2[_0x1bf87b(0x69,_0x24077f._0x159a21,0x5a,_0x24077f._0x1c5b14)][_0x1bf87b(_0x24077f._0x422fff,-_0x24077f._0x3395a7,0x4a,-_0x24077f._0x4c6765)]()[_0x1bf87b(0x36,0x78,_0x24077f._0x3c8eb6,0x1c)]>0x0)return _0x1f83c2[_0x1299d2(0x40f,0x40b,0x3f3,_0x24077f._0x2a5ad4)]['trim']();}catch{return _0x312449;}function _0x1bf87b(_0x37db6b,_0x5b4389,_0x4a31b0,_0x5742a8){return _0x2b6123(_0x5b4389,_0x5b4389-_0x587de2._0x543202,_0x4a31b0- -0x258,_0x5742a8-_0x587de2._0x409b11);}return _0x312449;}async function createOpenAiApiError(_0x5599af){const _0x2a8ad={_0x32a6eb:0x1dd,_0x4c2982:0x115,_0x1f8f55:0x10a,_0x4e79d4:0x30,_0x33edcc:0x9,_0x4ba309:0x51,_0x583eca:0x42,_0x350df7:0x1c3,_0x469e7a:0x1ce,_0x586b45:0x161,_0x5d3c80:0x18b},_0x591a8a={_0x1b9fbe:0x1b4},_0x5199a3={_0x34b600:0x2ec},_0x143d11=(await _0x5599af[_0x44df7c(_0x2a8ad._0x32a6eb,_0x2a8ad._0x4c2982,_0x2a8ad._0x1f8f55,0x156)]())[_0x214f70(_0x2a8ad._0x4e79d4,_0x2a8ad._0x33edcc,-_0x2a8ad._0x4ba309,_0x2a8ad._0x583eca)]();function _0x44df7c(_0x22bffc,_0x2cbb07,_0x5dffc2,_0x3c76de){return _0x38c793(_0x22bffc,_0x2cbb07-0xb5,_0x3c76de- -_0x5199a3._0x34b600,_0x3c76de-0x1d5);}const _0xe29de4=extractErrorMessage(_0x143d11)||_0x5599af[_0x44df7c(_0x2a8ad._0x350df7,_0x2a8ad._0x469e7a,0x101,_0x2a8ad._0x586b45)]||'OpenAI\x20API\x20error\x20'+_0x5599af[_0x44df7c(0x174,_0x2a8ad._0x5d3c80,0x100,0xe8)];function _0x214f70(_0x2d8514,_0x5b1658,_0x3208c4,_0x111ec3){return _0x2b6123(_0x5b1658,_0x5b1658-0x21,_0x3208c4- -0x2f3,_0x111ec3-_0x591a8a._0x1b9fbe);}return new OpenAiApiError(_0x5599af['status'],_0x143d11,_0xe29de4);}function readSseData(_0x5d010c){const _0x45ee08={_0x5c49df:0x407,_0xe36405:0x3ea,_0x3eeebe:0x470,_0x44b26f:0x34d,_0x2a9285:0x498,_0x5cd729:0x4fc,_0x2ff4e9:0x4e3},_0x351722={_0x2db968:0x119},_0x5668b4={_0x11e485:0xc0};function _0x4fbb9b(_0x43c155,_0x5f0f2c,_0x5ebc4a,_0x5b8a89){return _0x2b6123(_0x5b8a89,_0x5f0f2c-0x3d,_0x5ebc4a-_0x5668b4._0x11e485,_0x5b8a89-0x51);}function _0x29e356(_0x2b7748,_0x552d34,_0x701c37,_0x54b5e8){return _0x38c793(_0x701c37,_0x552d34-0x30,_0x2b7748-0x111,_0x54b5e8-_0x351722._0x2db968);}return _0x5d010c[_0x4fbb9b(0x469,_0x45ee08._0x5c49df,0x3cd,_0x45ee08._0xe36405)]('\x0a')[_0x4fbb9b(_0x45ee08._0x3eeebe,0x37d,0x3d7,_0x45ee08._0x44b26f)](_0x5e8625=>_0x5e8625['startsWith']('data:'))[_0x4fbb9b(_0x45ee08._0x2a9285,_0x45ee08._0x5cd729,0x442,0x499)](_0x80f892=>_0x80f892[_0x29e356(0x510,0x516,0x568,0x520)](0x5)[_0x4fbb9b(0x464,0x45b,0x3be,0x3dd)]())['join']('\x0a')[_0x29e356(_0x45ee08._0x2ff4e9,0x42a,0x5aa,0x4ed)]();}function readString(_0x2ea2ba){const _0x4d8120={_0x531e16:0x16c,_0x18ad1f:0x1fe,_0x366b28:0x19f,_0xb744f5:0x1a9};function _0x233064(_0xcfba68,_0x15fdec,_0x2bedb7,_0x2c141e){return _0x2b6123(_0x2c141e,_0x15fdec-0x11,_0x15fdec- -0x499,_0x2c141e-0x199);}return typeof _0x2ea2ba==='string'&&_0x2ea2ba[_0x233064(-_0x4d8120._0x531e16,-_0x4d8120._0x18ad1f,-_0x4d8120._0x366b28,-_0x4d8120._0xb744f5)]>0x0?_0x2ea2ba:void 0x0;}function extractReasoningDetails(_0x4aa2b7){const _0x275543={_0x4d618a:0x2b0,_0x417e69:0x3be,_0x10b750:0x35c,_0x46fcbb:0x1da,_0x2c868b:0x29b,_0xce6f00:0x1a1,_0x177dd6:0x1ba},_0x2b6651={_0xd6ed18:0x25d,_0xe3211f:0x283,_0x138343:0x378,_0x2f7dc7:0x309,_0xa62bbf:0x48,_0x34bfe5:0xe5,_0x51fc89:0x27,_0x1dbd68:0x6e,_0x238f46:0x1cd,_0x2eecad:0x25b,_0x39eedc:0x204,_0x34c39b:0x372,_0x27344e:0x2cf},_0x136f65={_0x5d00b4:0x119,_0x2fc314:0x19b},_0x3a363c={_0x30bb6e:0xc7},_0x113a07={_0xb7fbe4:0xe},_0x585790={_0x2ccf0a:0x113};function _0x31e728(_0x26cf95,_0x56a63a,_0x32304c,_0x17a5be){return _0x2b6123(_0x17a5be,_0x56a63a-_0x585790._0x2ccf0a,_0x32304c- -0x475,_0x17a5be-0x1ee);}if(!Array['isArray'](_0x4aa2b7))return void 0x0;function _0x3ddddf(_0xb50611,_0x5a91a3,_0x4317d3,_0x1d3e19){return _0x2b6123(_0xb50611,_0x5a91a3-0x103,_0x1d3e19-_0x113a07._0xb7fbe4,_0x1d3e19-0x181);}const _0x353e32=_0x4aa2b7[_0x3ddddf(0x2da,_0x275543._0x4d618a,_0x275543._0x417e69,_0x275543._0x10b750)](_0x238d3f=>{if(!_0x238d3f||typeof _0x238d3f!==_0x1ecfc9(0x1b5,0x198,_0x2b6651._0xd6ed18,_0x2b6651._0xe3211f))return[];const _0x4c7fd0=_0x238d3f;if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x138343,0x23f,_0x2b6651._0x2f7dc7,0x248)]===_0x34d6ac(-_0x2b6651._0xa62bbf,_0x2b6651._0x34bfe5,-0x78,_0x2b6651._0x51fc89))return[_0x4c7fd0[_0x34d6ac(0xdf,0x9,0x8c,_0x2b6651._0x1dbd68)]];if(typeof _0x4c7fd0[_0x1ecfc9(_0x2b6651._0x238f46,_0x2b6651._0x2eecad,0x22a,_0x2b6651._0x39eedc)]===_0x1ecfc9(0x286,0x23e,0x2c2,_0x2b6651._0x34c39b))return[_0x4c7fd0[_0x1ecfc9(0x2c3,_0x2b6651._0x27344e,0x22a,0x279)]];function _0x34d6ac(_0x17d2ee,_0xcb5d41,_0x1f820c,_0x210f3d){return _0x3ddddf(_0x1f820c,_0xcb5d41-_0x3a363c._0x30bb6e,_0x1f820c-0xdf,_0x210f3d- -0x2b2);}function _0x1ecfc9(_0x3d773f,_0x1306e4,_0x530fbe,_0x306def){return _0x3ddddf(_0x306def,_0x1306e4-_0x136f65._0x5d00b4,_0x530fbe-_0x136f65._0x2fc314,_0x530fbe- -0x17);}return[];});return _0x353e32[_0x31e728(-0x182,-0x22e,-_0x275543._0x46fcbb,-_0x275543._0x2c868b)]>0x0?_0x353e32[_0x31e728(-0x24a,-0x1c7,-_0x275543._0xce6f00,-_0x275543._0x177dd6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x34c420){const _0x850fc5={_0x28e041:0x16,_0x5a6e29:0xa3,_0x4726c3:0xda,_0x38f307:0x178,_0x91be26:0x13d,_0x139275:0x8c,_0x498dc2:0x36},_0x26aff8={_0x3d2b97:0x1cb},_0x5adcf3={_0x55a952:0x2c6,_0x283e0c:0xf0};function _0x2fc4d0(_0x388e5a,_0xb0e674,_0x5d1ed1,_0x50228e){return _0x2b6123(_0x50228e,_0xb0e674-0xe1,_0x5d1ed1- -_0x5adcf3._0x55a952,_0x50228e-_0x5adcf3._0x283e0c);}function _0xb2f9be(_0x103f2f,_0x4c79d8,_0x169c12,_0x2ea4fa){return _0x2b6123(_0x4c79d8,_0x4c79d8-0x163,_0x169c12- -0x272,_0x2ea4fa-_0x26aff8._0x3d2b97);}return extractReasoningDetails(_0x34c420?.['reasoning_details'])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x28e041,0x1a,_0x850fc5._0x5a6e29,-0x20)])??readString(_0x34c420?.[_0xb2f9be(_0x850fc5._0x4726c3,_0x850fc5._0x38f307,_0x850fc5._0x91be26,0x1ab)])??readString(_0x34c420?.[_0x2fc4d0(-_0x850fc5._0x139275,0x3f,-_0x850fc5._0x498dc2,-0x5c)])??'';}function _0x25f1(_0x247a07,_0x2b54d5){_0x247a07=_0x247a07-0x140;const _0x35ddb6=_0x35dd();let _0x25f1d4=_0x35ddb6[_0x247a07];if(_0x25f1['ijOKSH']===undefined){var _0x1bf14b=function(_0x3e671e){const _0x50591d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59edd8='',_0x19c802='';for(let _0x436f18=0x0,_0x2e3f26,_0x1ffc19,_0xa1db61=0x0;_0x1ffc19=_0x3e671e['charAt'](_0xa1db61++);~_0x1ffc19&&(_0x2e3f26=_0x436f18%0x4?_0x2e3f26*0x40+_0x1ffc19:_0x1ffc19,_0x436f18++%0x4)?_0x59edd8+=String['fromCharCode'](0xff&_0x2e3f26>>(-0x2*_0x436f18&0x6)):0x0){_0x1ffc19=_0x50591d['indexOf'](_0x1ffc19);}for(let _0x37f518=0x0,_0x3d797a=_0x59edd8['length'];_0x37f518<_0x3d797a;_0x37f518++){_0x19c802+='%'+('00'+_0x59edd8['charCodeAt'](_0x37f518)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c802);};_0x25f1['PHOqdS']=_0x1bf14b,_0x25f1['Chuqvm']={},_0x25f1['ijOKSH']=!![];}const _0x427d33=_0x35ddb6[0x0],_0x4a3c51=_0x247a07+_0x427d33,_0x39b9da=_0x25f1['Chuqvm'][_0x4a3c51];return!_0x39b9da?(_0x25f1d4=_0x25f1['PHOqdS'](_0x25f1d4),_0x25f1['Chuqvm'][_0x4a3c51]=_0x25f1d4):_0x25f1d4=_0x39b9da,_0x25f1d4;}var OpenAiChatCompletionsStreamParser=class{[_0x2b6123(0x2f0,0x2dc,0x327,0x3a9)]=[];['request'];['textParts']=[];[_0x38c793(0x49d,0x41e,0x4de,0x55f)]=new Map();[_0x2b6123(0x365,0x2cf,0x313,0x343)]=[];[_0x2b6123(0x332,0x28e,0x319,0x33f)]=new Set();['responseId']='';[_0x2b6123(0x225,0x1dd,0x25a,0x2b2)]='end_turn';[_0x2b6123(0x22b,0x29c,0x230,0x247)];constructor(_0x31ef78){const _0x4622c6={_0x215ae9:0x7b,_0x288030:0x175},_0x1cbdb2={_0x1b8621:0x13a,_0x1f096e:0x4d5};function _0x249d46(_0xb070fe,_0x591a55,_0xdcc63d,_0x358ec9){return _0x38c793(_0x358ec9,_0x591a55-_0x1cbdb2._0x1b8621,_0xb070fe- -_0x1cbdb2._0x1f096e,_0x358ec9-0x122);}this[_0x249d46(-0xf8,-0x11e,-_0x4622c6._0x215ae9,-_0x4622c6._0x288030)]=_0x31ef78;}[_0x38c793(0x397,0x3ec,0x3cc,0x43d)](_0x28d9fa){const _0x3f97e5={_0x2645c6:0x9,_0x5cbc2a:0x3f,_0xda7851:0x4ad,_0x38e1cd:0x450,_0x19eebc:0x469,_0x29d056:0x3b,_0x41871d:0x80,_0x1e397c:0xb,_0x284bc5:0x35a,_0x5bc9ac:0x3e9,_0x59143c:0x618,_0x4dc15b:0x5e0},_0x241580={_0x59bcdc:0x1b8},_0x5d2db6={_0x51eb20:0x89},_0x12f1b2=readSseData(_0x28d9fa);if(_0x12f1b2[_0x34d222(-0x57,_0x3f97e5._0x2645c6,_0x3f97e5._0x5cbc2a,0x12)]===0x0||_0x12f1b2===_0x56aeec(0x43e,_0x3f97e5._0xda7851,_0x3f97e5._0x38e1cd,0x41a))return[];function _0x56aeec(_0x1c9614,_0xb4856d,_0x45e155,_0x5dfbd6){return _0x38c793(_0xb4856d,_0xb4856d-0x1a3,_0x45e155-_0x5d2db6._0x51eb20,_0x5dfbd6-0x7b);}const _0x31cbc4=JSON[_0x56aeec(0x521,0x4b1,0x4b0,_0x3f97e5._0x19eebc)](_0x12f1b2);this['responseId']=_0x31cbc4['id']??this[_0x34d222(-0x23,_0x3f97e5._0x29d056,-_0x3f97e5._0x41871d,-_0x3f97e5._0x1e397c)];function _0x34d222(_0x16c1b7,_0x48ba6f,_0x4ab316,_0x5dfa17){return _0x38c793(_0x5dfa17,_0x48ba6f-0xf6,_0x48ba6f- -0x3c2,_0x5dfa17-_0x241580._0x59bcdc);}return this[_0x34d222(-0xff,-0x62,0x40,-0x70)]=_0x31cbc4['usage']??this[_0x56aeec(_0x3f97e5._0x284bc5,0x3c8,_0x3f97e5._0x5bc9ac,0x3ae)],this[_0x56aeec(_0x3f97e5._0x59143c,_0x3f97e5._0x4dc15b,0x557,0x51a)](_0x31cbc4);}[_0x2b6123(0x305,0x2e0,0x38e,0x312)](){const _0x4dc124={_0x3e0ff9:0x25b,_0x9e4672:0x1f1,_0x5ea676:0x255,_0x43acf3:0x129,_0x2ec83c:0x1a6,_0x29df14:0x138,_0x18668b:0x1b1,_0x51bd2b:0x251,_0x5b112e:0x18b,_0x33ba30:0xae,_0x3bbea6:0xb0,_0x144465:0x8f,_0x5353c5:0x186,_0x38334f:0x1da,_0x3840a1:0x1a1,_0x2514fa:0x1b2,_0x3821fe:0x24a,_0x143303:0x1f9,_0x59a523:0x82,_0x518adb:0x131,_0x3d018d:0x6f,_0x4557bf:0x127,_0x41db48:0x1b2,_0x3585bf:0x247},_0x16e660={_0x5c7e2f:0x3d7},_0x34e9f6={_0x4dd81a:0x14f};function _0x45215c(_0x157c2d,_0x5cc362,_0x26dea1,_0x4a1ef1){return _0x2b6123(_0x4a1ef1,_0x5cc362-0x1f2,_0x26dea1- -0x122,_0x4a1ef1-_0x34e9f6._0x4dd81a);}this[_0x45215c(0x2ae,_0x4dc124._0x3e0ff9,_0x4dc124._0x9e4672,_0x4dc124._0x5ea676)]['length']>0x0&&(this[_0x45215c(_0x4dc124._0x43acf3,_0x4dc124._0x2ec83c,_0x4dc124._0x29df14,0x1b2)]=_0x45215c(0x176,0x13a,_0x4dc124._0x18668b,_0x4dc124._0x51bd2b));const _0x1aa028=isUserVisibleReasoning(this[_0x45215c(0xeb,0x238,_0x4dc124._0x5b112e,0x1b4)])?this[_0x5cd25c(-_0x4dc124._0x33ba30,-_0x4dc124._0x3bbea6,-_0x4dc124._0x144465,-0x98)]['join'](''):void 0x0;function _0x5cd25c(_0x364101,_0x2b0b3d,_0x4394a7,_0x36eb7a){return _0x2b6123(_0x364101,_0x2b0b3d-0xb,_0x2b0b3d- -_0x16e660._0x5c7e2f,_0x36eb7a-0x106);}return{'id':this[_0x45215c(_0x4dc124._0x5353c5,0x1e0,0x1ab,_0x4dc124._0x38334f)]||_0x5cd25c(-0x13c,-_0x4dc124._0x3840a1,-_0x4dc124._0x2514fa,-_0x4dc124._0x3821fe)+Date[_0x45215c(0x10d,_0x4dc124._0x143303,0x1d2,0x18c)](),'content':createContentBlocks(this[_0x5cd25c(-0x10c,-_0x4dc124._0x59a523,-_0x4dc124._0x518adb,-_0x4dc124._0x3d018d)][_0x45215c(_0x4dc124._0x4557bf,0xfd,_0x4dc124._0x41db48,_0x4dc124._0x3585bf)](''),this['toolCallOrder'],_0x1aa028),'stopReason':this['stopReason'],'usage':createUsage(this[_0x5cd25c(-0xf5,-0x1a7,-0xea,-0xf8)])};}[_0x2b6123(0x458,0x36d,0x39e,0x331)](_0xc361ae){const _0xfd0424={_0x508e3f:0x21,_0x402ae7:0xfa,_0x3d3229:0x173,_0x575f3d:0x1c9,_0x21d304:0x18c,_0x18e80f:0x360,_0x21fb7f:0x4c3,_0x4650b0:0x410,_0x22f09a:0x485,_0x4db54a:0x375,_0x378d8e:0x307,_0x1d0bf3:0x34e,_0x36fc3d:0x5b,_0x391a2b:0x11e,_0x449ae6:0x2f6,_0x30bc61:0x2fe,_0x4be6d9:0x2ee,_0xbb66c6:0x409,_0x517374:0x425,_0x1c8807:0x3ec,_0x5c27c1:0x2af,_0x3fc1be:0x8a,_0x435fd8:0x9f,_0x8b6346:0x3d,_0x54c149:0x2,_0x13f258:0x95,_0x7241fb:0x35,_0x121c4a:0xe9,_0xa20fe6:0x10d,_0x1b1134:0x181,_0x4123b4:0x20c,_0x52d9bd:0x2d9,_0x16bd04:0x200,_0x271bac:0x492,_0xfebb80:0x474,_0x53d392:0x35e,_0x456f96:0x2b8,_0x51ba0b:0x376,_0x2aca35:0x31f,_0x9eedc2:0x174,_0x354bf0:0x12e,_0x54b6f4:0x150,_0x3eab29:0x38b,_0x3d120c:0x2a0,_0x2c0d9f:0x2fd,_0x39c3fa:0x2c7,_0x25f592:0x37c,_0xd82281:0x381,_0x2cc985:0x170,_0x4b5a92:0x181,_0x5be8fa:0x352,_0x1fc883:0x343,_0x41d221:0x256,_0xd06250:0x14a,_0x16feea:0x144,_0x516912:0x126,_0x1bcdbf:0x32d,_0x3930ae:0x345,_0x5a23df:0x3ff,_0x5bf0ca:0x2b0,_0x2868dc:0x2bf,_0x286411:0x10f,_0x280748:0xd2,_0xee2514:0x5a,_0x3dddea:0x1e1,_0x29b966:0x19b,_0x261ca2:0x1a5,_0x2a2eab:0x254,_0x49c338:0x150,_0x984694:0x211,_0xd1e54c:0x329,_0x897a6d:0x2a9,_0x46732c:0x2d3,_0x2d2fda:0x25a,_0xaa9422:0xfb,_0x1aa769:0x191,_0x37743a:0x2bc,_0x4c5fb1:0x25d,_0x1627ed:0x38e,_0xf4928:0x336,_0x231472:0x377},_0x1c2d35={_0x3614e3:0x51b},_0x5990df=[];function _0x5c7f0f(_0xbb71ee,_0x5551ed,_0x5b679e,_0x123129){return _0x38c793(_0x123129,_0x5551ed-0x17f,_0x5551ed- -0xcd,_0x123129-0x93);}function _0x5e0a03(_0x3a1f9e,_0x287d63,_0x197e0d,_0x47a525){return _0x38c793(_0x287d63,_0x287d63-0x19c,_0x197e0d- -_0x1c2d35._0x3614e3,_0x47a525-0xb);}for(const _0x4d8129 of _0xc361ae['choices']??[]){const _0x12c09c=_0x4d8129[_0x5e0a03(0x4f,0x26,-0x5a,-_0xfd0424._0x508e3f)],_0x52a61f=extractChatCompletionReasoningDelta(_0x12c09c);_0x52a61f['length']>0x0&&(this[_0x5c7f0f(0x3d2,0x38a,0x3e0,0x301)][_0x5e0a03(-_0xfd0424._0x402ae7,-_0xfd0424._0x3d3229,-0xd7,-0x10e)](_0x52a61f),isUserVisibleReasoning(this[_0x5e0a03(-0x130,-_0xfd0424._0x575f3d,-0x13e,-_0xfd0424._0x21d304)])&&_0x5990df['push']({'type':'openai_reasoning_delta','contentIndex':0x0,'delta':_0x52a61f,'itemId':(this[_0x5c7f0f(0x2fc,0x330,0x306,_0xfd0424._0x18e80f)]||_0x5c7f0f(_0xfd0424._0x21fb7f,_0xfd0424._0x4650b0,0x3bb,_0xfd0424._0x22f09a))+_0x5c7f0f(_0xfd0424._0x4db54a,0x3f8,0x414,0x4b6),'outputIndex':0x0}));const _0x407f63=typeof _0x12c09c?.[_0x5c7f0f(_0xfd0424._0x378d8e,0x33e,0x401,_0xfd0424._0x1d0bf3)]==='string'?_0x12c09c['content']:typeof _0x12c09c?.['refusal']===_0x5e0a03(-0x133,-_0xfd0424._0x36fc3d,-0x120,-_0xfd0424._0x391a2b)?_0x12c09c['refusal']:'';_0x407f63[_0x5c7f0f(_0xfd0424._0x449ae6,_0xfd0424._0x30bc61,0x2e6,_0xfd0424._0x4be6d9)]>0x0&&(this[_0x5c7f0f(_0xfd0424._0xbb66c6,0x3b8,_0xfd0424._0x517374,0x47a)][_0x5c7f0f(0x2c3,0x377,_0xfd0424._0x1c8807,0x368)](_0x407f63),_0x5990df['push']({'type':_0x5c7f0f(0x2a4,0x300,_0xfd0424._0x5c27c1,0x365),'index':0x0,'text':_0x407f63}));for(const _0x447e3c of _0x12c09c?.['tool_calls']??[]){const _0x2c8bbb=_0x447e3c[_0x5e0a03(-_0xfd0424._0x3fc1be,-_0xfd0424._0x435fd8,-0x9b,-0x161)]??0x0;let _0x5efb3b=this[_0x5e0a03(0x27,0xb,-_0xfd0424._0x8b6346,-_0xfd0424._0x54c149)]['get'](_0x2c8bbb);!_0x5efb3b&&(_0x5efb3b={'id':_0x447e3c['id']??_0x5e0a03(_0xfd0424._0x13f258,-0x26,-_0xfd0424._0x7241fb,-0x1)+_0x2c8bbb,'type':'function','function':{'name':_0x447e3c[_0x5e0a03(-_0xfd0424._0x121c4a,-_0xfd0424._0xa20fe6,-_0xfd0424._0x1b1134,-0x123)]?.[_0x5c7f0f(_0xfd0424._0x4123b4,0x2b0,_0xfd0424._0x52d9bd,_0xfd0424._0x16bd04)]??'','arguments':''}},this[_0x5c7f0f(_0xfd0424._0x271bac,0x411,_0xfd0424._0xfebb80,0x4cb)][_0x5c7f0f(_0xfd0424._0x53d392,0x3d3,0x35b,0x3f4)](_0x2c8bbb,_0x5efb3b),this[_0x5c7f0f(_0xfd0424._0x456f96,_0xfd0424._0x51ba0b,0x3b5,_0xfd0424._0x2aca35)][_0x5e0a03(-0x145,-_0xfd0424._0x9eedc2,-0xd7,-0x7e)](_0x5efb3b));_0x447e3c['id']&&(_0x5efb3b['id']=_0x447e3c['id']);_0x447e3c[_0x5e0a03(-_0xfd0424._0x354bf0,-0x155,-0x181,-_0xfd0424._0x54b6f4)]?.['name']&&(_0x5efb3b[_0x5c7f0f(_0xfd0424._0x3eab29,0x2cd,_0xfd0424._0x3d120c,_0xfd0424._0x2c0d9f)]['name']=_0x447e3c['function']['name']);!this[_0x5c7f0f(_0xfd0424._0x39c3fa,_0xfd0424._0x25f592,0x33a,0x349)][_0x5c7f0f(_0xfd0424._0xd82281,0x3a9,0x3fd,0x33b)](_0x2c8bbb)&&_0x5efb3b[_0x5e0a03(-0x17c,-_0xfd0424._0x2cc985,-_0xfd0424._0x4b5a92,-0x15d)][_0x5c7f0f(_0xfd0424._0x5be8fa,0x2b0,_0xfd0424._0x1fc883,_0xfd0424._0x41d221)][_0x5e0a03(-_0xfd0424._0xd06250,-0x95,-0x149,-_0xfd0424._0x16feea)]()['length']>0x0&&(_0x5990df[_0x5e0a03(-_0xfd0424._0x516912,-0x46,-0xd7,-0xac)]({'type':_0x5c7f0f(_0xfd0424._0x1bcdbf,_0xfd0424._0x3930ae,0x3fc,_0xfd0424._0x5a23df),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'name':_0x5efb3b['function'][_0x5c7f0f(0x225,_0xfd0424._0x5bf0ca,_0xfd0424._0x2868dc,0x2a6)]}),this[_0x5e0a03(-_0xfd0424._0x286411,-0x70,-_0xfd0424._0x280748,-_0xfd0424._0xee2514)][_0x5e0a03(-_0xfd0424._0x3dddea,-0x243,-_0xfd0424._0x29b966,-0x1db)](_0x2c8bbb));const _0xe3fa18=_0x447e3c['function']?.[_0x5e0a03(-0x1f5,-0x1e9,-_0xfd0424._0x261ca2,-_0xfd0424._0x2a2eab)]??'';_0xe3fa18[_0x5e0a03(-0xb3,-0x18d,-_0xfd0424._0x49c338,-0xe2)]>0x0&&(_0x5efb3b[_0x5c7f0f(0x373,0x2cd,_0xfd0424._0x984694,_0xfd0424._0xd1e54c)][_0x5c7f0f(0x257,_0xfd0424._0x897a6d,_0xfd0424._0x46732c,_0xfd0424._0x2d2fda)]+=_0xe3fa18,_0x5990df['push']({'type':_0x5e0a03(-_0xfd0424._0xaa9422,-0xc7,-0x109,-_0xfd0424._0x1aa769),'id':_0x5efb3b['id'],'index':_0x2c8bbb,'inputDelta':_0xe3fa18}));}_0x4d8129['finish_reason']==='tool_calls'&&(this[_0x5c7f0f(_0xfd0424._0x37743a,0x2bd,_0xfd0424._0x4c5fb1,0x380)]=_0x5c7f0f(_0xfd0424._0x1627ed,_0xfd0424._0xf4928,0x297,_0xfd0424._0x231472));}return _0x5990df;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x38c793(0x3ff,0x3d5,0x456,0x40d)];[_0x2b6123(0x32e,0x234,0x28d,0x32f)]=new Map();[_0x2b6123(0x35c,0x388,0x2e5,0x230)]=new Map();[_0x38c793(0x3bd,0x318,0x394,0x426)]=new Map();['request'];[_0x2b6123(0x38e,0x3aa,0x3a9,0x3af)]=new Map();[_0x38c793(0x367,0x2fa,0x3a5,0x3ac)]=new Map();constructor(_0x21cd5e){this['request']=_0x21cd5e;}[_0x2b6123(0x2c7,0x34d,0x29c,0x284)](_0x437d43){const _0x454abb={_0x5124af:0x49e,_0x304721:0x54a,_0x425e2d:0x658,_0x2612ad:0x5da,_0x2b2902:0x648,_0x44bb3f:0xe3,_0x3f39f8:0x9a,_0x199024:0xbd,_0x2d0e82:0xd1,_0x4e69d6:0x26,_0x4d7437:0x1d9,_0x287685:0x18f,_0x1e4a81:0x5bf,_0x4658f2:0x48b,_0x10b9a0:0x14,_0x25325e:0x11c,_0x548299:0x3d,_0x5ac0e3:0x2e,_0x5ae575:0x66,_0x2f5dc8:0x640,_0xb773b:0x600,_0x1ab550:0x5db,_0x233374:0x699},_0x109c64={_0x26373e:0x231,_0x342e66:0x13f},_0x26f618={_0x126d99:0x38},_0x2a931b=_0x437d43[_0x2d332c(0x4fe,_0x454abb._0x5124af,_0x454abb._0x304721,0x593)]('\x0a'),_0x73c4f4=_0x2a931b[_0x2d332c(0x541,_0x454abb._0x425e2d,_0x454abb._0x2612ad,_0x454abb._0x2b2902)](_0x43d493=>_0x43d493[_0x26560c(0x176,0xbf,0xf7,0x121)](_0x26560c(0xd8,0x158,0x1a3,0x10a)))?.[_0x26560c(0x48,0x9e,_0x454abb._0x44bb3f,_0x454abb._0x3f39f8)](0x6)[_0x26560c(_0x454abb._0x199024,0x71,_0x454abb._0x2d0e82,_0x454abb._0x4e69d6)]();function _0x2d332c(_0x1e738e,_0x5962f5,_0x2e6b8f,_0x46c880){return _0x38c793(_0x1e738e,_0x5962f5-_0x26f618._0x126d99,_0x2e6b8f-0x10d,_0x46c880-0x114);}function _0x26560c(_0x43e87a,_0x2b6bd1,_0x2be8d7,_0x5c6fb0){return _0x2b6123(_0x43e87a,_0x2b6bd1-0x1b1,_0x2b6bd1- -_0x109c64._0x26373e,_0x5c6fb0-_0x109c64._0x342e66);}const _0xa3a3df=_0x2a931b['filter'](_0x397f1c=>_0x397f1c['startsWith'](_0x2d332c(0x3ff,0x4d2,0x4b7,0x424)))[_0x26560c(_0x454abb._0x4d7437,0x151,0x17d,_0x454abb._0x287685)](_0xc1621e=>_0xc1621e[_0x26560c(0x94,0x9e,-0x29,0x18)](0x5)['trimStart']())[_0x2d332c(_0x454abb._0x1e4a81,_0x454abb._0x4658f2,0x511,0x46b)]('\x0a')[_0x26560c(_0x454abb._0x10b9a0,0x71,_0x454abb._0x25325e,0x12d)]();if(_0xa3a3df[_0x26560c(_0x454abb._0x548299,0x6a,0x6f,-_0x454abb._0x5ac0e3)]===0x0||_0xa3a3df===_0x26560c(0x35,_0x454abb._0x5ae575,0x67,0x27))return[];const _0x2c4148=JSON[_0x26560c(0x150,0xc6,0xc9,0xbb)](_0xa3a3df);return this[_0x2d332c(_0x454abb._0x2f5dc8,_0x454abb._0xb773b,_0x454abb._0x1ab550,_0x454abb._0x233374)](_0x73c4f4??String(_0x2c4148['type']??''),_0x2c4148);}['consumeWebSocketEvent'](_0x47fa0d){const _0x442615={_0x1dac96:0x595,_0x197b7a:0x52c},_0x4d626c={_0x3267f9:0xfc,_0x2fccea:0x5e};function _0x4af727(_0x1bca0b,_0x39edc4,_0x104186,_0x28abae){return _0x38c793(_0x39edc4,_0x39edc4-_0x4d626c._0x3267f9,_0x28abae-_0x4d626c._0x2fccea,_0x28abae-0x34);}return this[_0x4af727(0x5f2,_0x442615._0x1dac96,0x598,_0x442615._0x197b7a)](String(_0x47fa0d['type']??''),_0x47fa0d);}[_0x2b6123(0x2cc,0x2dc,0x38e,0x2d0)](){const _0x2a1cbf={_0x5e4f8f:0x227,_0x3603d7:0x297,_0x1f22a1:0x364,_0x16f0a5:0x389,_0x4c354c:0x213,_0x28fc51:0x3fa,_0x1abb24:0x270,_0x33c450:0x20f,_0x152015:0x370,_0x3f4473:0x1d1},_0x3aacfe={_0x272209:0x6d,_0x4cbb74:0x22f},_0x11f986={_0x31a16a:0x53};function _0x5aea52(_0x131282,_0x5467b1,_0xf4dafa,_0x761026){return _0x38c793(_0xf4dafa,_0x5467b1-_0x11f986._0x31a16a,_0x761026- -0x5c,_0x761026-0xdd);}function _0xc58daf(_0x28ddc1,_0x49da99,_0x1ac5c8,_0x15578c){return _0x38c793(_0x1ac5c8,_0x49da99-_0x3aacfe._0x272209,_0x49da99- -_0x3aacfe._0x4cbb74,_0x15578c-0x14d);}const _0x587edd=this[_0xc58daf(0x1ce,_0x2a1cbf._0x5e4f8f,_0x2a1cbf._0x3603d7,0x298)]??{'id':_0x5aea52(0x32d,_0x2a1cbf._0x1f22a1,0x2f3,_0x2a1cbf._0x16f0a5)+Date[_0xc58daf(0x16d,0x1f5,0x177,_0x2a1cbf._0x4c354c)](),'object':_0x5aea52(_0x2a1cbf._0x28fc51,0x4d3,0x4a2,0x41b),'status':_0xc58daf(_0x2a1cbf._0x1abb24,0x1aa,_0x2a1cbf._0x33c450,0x252),'output':this[_0x5aea52(0x385,0x414,_0x2a1cbf._0x152015,0x427)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x587edd,this[_0xc58daf(0x105,0x1ae,_0x2a1cbf._0x3f4473,0x1dd)]);}['isDone'](){const _0x320c2f={_0x49831d:0x120,_0x298e92:0x2b,_0x2aef31:0xe9},_0x22b041={_0x10aa82:0x5b};function _0x3c11c4(_0x400144,_0x38955f,_0x2d920f,_0x31b15d){return _0x38c793(_0x2d920f,_0x38955f-_0x22b041._0x10aa82,_0x31b15d- -0x53f,_0x31b15d-0x97);}return this[_0x3c11c4(-_0x320c2f._0x49831d,-_0x320c2f._0x298e92,-0x4a,-_0x320c2f._0x2aef31)]!==void 0x0;}[_0x38c793(0x540,0x450,0x4ce,0x46c)](_0x1da4e7,_0x554399){const _0x4864c3={_0x8298b6:0x18e,_0x106429:0x15f,_0x4ed2db:0x18b,_0x181a04:0x151,_0x3e448a:0x249,_0x2194e1:0x232,_0x5c0d97:0x21d,_0x11250a:0x5fa,_0x44d356:0x5d5,_0x2bcf0f:0x53f,_0x776a2b:0x521,_0x5168dc:0x1b9,_0x5f55de:0x145,_0x3b5fb5:0x1f2,_0x4e0a12:0x558,_0x4f1ba5:0x277,_0x1fd7fc:0x27b,_0x319b20:0x1b6,_0x21f527:0x4e1,_0x3a0303:0x18e,_0x3d0c27:0x254,_0x5cadd6:0x15e,_0x75ceed:0x105,_0x33f5f6:0x3e4,_0x1ac284:0x462,_0x3fd12c:0x511,_0x38d86e:0x503,_0x4300a8:0x595,_0x4b1abb:0x135,_0x43b157:0x141,_0x5dcabf:0x55a,_0x5077bf:0x4f6,_0x1ef33d:0x50b,_0x1f0af4:0x4d1,_0x4bb2ae:0xd8,_0x35e988:0x5b4,_0x58905d:0x4a3,_0x48f657:0x4b6,_0x517acf:0x57f,_0x6ca76c:0x3ed,_0x38efb8:0x4ae,_0x252008:0x424,_0x5eb052:0x4b7,_0x1e253d:0x1e3,_0x36d1c6:0x1b5,_0x3deaaa:0x403,_0x1f5540:0x55c,_0x2b5ad9:0x258,_0x4423e1:0x282,_0x100ea0:0xed,_0x5262ef:0x233,_0x2ffb9d:0x2a5,_0x39fcc3:0x17d,_0x65e200:0x1a2,_0x439d51:0x218,_0x56c7d1:0x170,_0x40fa58:0x158,_0x42c0a0:0xce,_0x4b116c:0xbe,_0x476f01:0x1ca,_0x23883e:0x1b1,_0x439c5d:0x26e,_0x4eb562:0x58c,_0x28e056:0x5bb,_0xb3ff25:0x166,_0x444c26:0xbd,_0x20c1fb:0x1a2,_0x57ff51:0x27b,_0x250d9c:0x327,_0x196479:0x256,_0x3ad1c4:0x1ac,_0x395943:0x129,_0x490d82:0x5a3,_0x36fe12:0x50f,_0x5f42c8:0x466,_0x5afecc:0x210,_0x5e4636:0x1df,_0x18a514:0x4c7,_0x3f0c2d:0x4fd,_0x315a01:0x18b,_0x2a1024:0x108,_0x1bc63d:0x177,_0x1a245d:0x16a,_0x5074ca:0x626,_0x495c48:0x5d5,_0x7d1795:0x564,_0x6b99dd:0x67e,_0x5d08a4:0x1d6,_0x549877:0x264,_0x3ac01b:0x5fd,_0x2e9842:0x603,_0x77da7c:0x42b,_0x18eb26:0x4d3,_0x5bea31:0x54f,_0x5e5c10:0x175,_0x286b2b:0x164,_0x30e552:0xff,_0x5d9edc:0x1a4,_0x57d42d:0x201,_0x167dba:0x521,_0x2701db:0x48e,_0x7e19aa:0x4e7,_0x474520:0x4c8,_0x59d65d:0x578,_0x11007e:0xd1,_0x1cd8ab:0x203,_0x342e3c:0x142,_0x1f6d53:0x131,_0x37cc2a:0x17d,_0x1be275:0xeb,_0x8fdc0c:0x201,_0x9fb219:0x5cd,_0x21f93c:0x559,_0x417630:0x46a,_0x556991:0x472,_0x5b23b8:0x1d4,_0xf6e0b3:0x109,_0x3eac7e:0x18b,_0x47314d:0x111,_0x4478db:0x15d,_0x1f9308:0x58c,_0x37c979:0x4c7,_0x2a21e3:0x50e,_0x235345:0x4b4,_0x1b0de2:0x58a,_0x4e8f99:0x3de,_0x50201e:0x26d,_0x56cf64:0x1b3,_0x372064:0x225,_0x4d1921:0x151,_0x195346:0x95,_0x578cc1:0x178,_0x2b5f8e:0x287,_0x372b07:0x17c,_0x598651:0x4c7,_0x2970ad:0x4cf,_0x266754:0x56f,_0x42f6fb:0x184,_0x53a29d:0x15e,_0x52d4fd:0x475,_0x20e763:0x12c,_0x30608c:0x16f,_0x4176fe:0x546,_0x454e0e:0x48a,_0x3a7094:0x3c7,_0x4df4a8:0x3ca,_0x116a8f:0x116,_0x50cdc0:0x119,_0x248d53:0x544,_0x38808c:0x5ad,_0x1d9df8:0x615,_0x588c06:0x500,_0x810085:0x49f,_0x4fc6b4:0x3e5,_0x1c74d0:0x1d6,_0x587d3e:0x1cd,_0x3f0cb1:0x169,_0x4ee902:0x13e,_0x2dbcde:0x152,_0xa538f8:0x1a6,_0x1a5bc0:0x427,_0x74cf0f:0x477,_0x2deb10:0x3db,_0x370d5e:0x128,_0x572dfe:0x215,_0x413e58:0x580,_0x5440a6:0x255,_0x3b67fc:0x21d,_0x26284e:0x270,_0x275d07:0x263,_0x3af64b:0x1ce,_0x3f8b88:0x1dc,_0x272abc:0x556,_0x1240c2:0x5db,_0x2f3008:0x4e3,_0x51a215:0x3c8,_0x5620f8:0x58a,_0x460ccb:0x638,_0x3f112f:0x1a5,_0x5addb4:0x148,_0x33bae3:0xfc,_0x2a171e:0x55e,_0x227fdd:0x4b1,_0x130506:0x160,_0x18f142:0x4e2,_0x4c6510:0x529,_0x50a841:0x519,_0x2085c4:0x52c,_0x36c2eb:0x18b,_0x386109:0x251,_0x583d63:0x156,_0x3b67ae:0xcb,_0x2be03b:0x161,_0x4e29bd:0x120,_0x3c6220:0x232,_0xac05a1:0x104,_0x5bb2f4:0x101,_0x517e06:0x51a,_0x185d19:0x3fb,_0x2a5da0:0x255,_0x3413c7:0x5b4,_0x400b71:0x5d7,_0x35b290:0x197,_0x5826a8:0x1f3,_0x23447e:0x22d,_0x11b421:0x1d1,_0x2d2a82:0x50f,_0x18f953:0x509,_0x1c7ff6:0x1c2,_0x302c23:0x189,_0x2bd10c:0x572,_0x4e5f78:0x1f0,_0x17248b:0x1e6,_0x2d74c7:0x2a8,_0x36ea10:0x567,_0x3ab7a9:0x4c7,_0x58f5ac:0x49e,_0x25fd90:0x426,_0x5a2cf6:0x52b,_0x4f95ab:0x293,_0x515d63:0x214,_0x208abb:0x5a3,_0x3036bf:0x1bb,_0x23474c:0xa6,_0x1c2eb7:0x1a7,_0x51c7bc:0x295,_0x1c9d93:0x1c1,_0x43522b:0x544,_0x43f8ae:0x11a,_0x401d1b:0x616,_0x4b369f:0x4ba,_0x49091c:0x4dc,_0x202f91:0x581,_0x14eb44:0x5c3,_0x5eba7c:0x4c4,_0x257805:0x534,_0x753287:0x529,_0x3d9154:0x4bf,_0x35b7a2:0x555,_0x3085de:0x461,_0x422b08:0xe5,_0x850de6:0x1b6,_0x1e7e35:0x4ce,_0x473d3b:0x52e,_0x220fe0:0x1a8,_0x5e8829:0x211,_0x3f54aa:0x4f8,_0x486619:0x1a6,_0x4a3382:0x16b,_0x9d06c4:0x51a,_0x10d616:0x1b8,_0x18a88b:0x507,_0x2f72bc:0x539,_0x5445da:0x1dc,_0x1698be:0xdd,_0x311197:0x172,_0x41d0d0:0x5b5,_0x39c5f3:0x4c4,_0xd247fe:0x508,_0x153990:0x195,_0x2bd826:0x4f2,_0x4e25af:0x56c,_0x4438f9:0x5d2,_0x175a87:0x259,_0x2b90b7:0x3e9,_0x3217e7:0x448,_0xc1db98:0x4ba,_0x4bfa64:0x60e,_0x3a3ba7:0x5b4,_0xc20d23:0x53a,_0x341706:0x4fd,_0x1535f5:0x486,_0x59c0d7:0x523,_0x24540d:0x426,_0x338797:0x552,_0x318d8b:0x5fd,_0x1c403f:0x283,_0xa0c143:0x259,_0x475f68:0x30e,_0x279a15:0x5f4,_0x2aa031:0x586,_0x2f961c:0x52f,_0xf37147:0x110,_0x40ed12:0x150,_0x2cf92a:0x29b,_0x42d9e6:0x5f6,_0x340cf0:0x553,_0x119142:0x46b,_0x4cf9fa:0x60b,_0x235fe0:0x65a,_0x5a0e4b:0x602,_0x551e04:0x59a,_0x5be1ff:0x228,_0x461d53:0x1fe,_0x12ab98:0x4e8,_0x5d171e:0x4cb},_0x456949={_0x1cf73c:0xa0},_0x546804={_0x85df5e:0x111,_0x22e578:0x52};function _0x5057a2(_0x16f623,_0x5b6388,_0x1e4e3e,_0x4940fc){return _0x38c793(_0x4940fc,_0x5b6388-_0x546804._0x85df5e,_0x16f623- -0x225,_0x4940fc-_0x546804._0x22e578);}function _0x136a6f(_0x4b52a5,_0xb2b6f4,_0x1bc94b,_0x199e4f){return _0x38c793(_0x4b52a5,_0xb2b6f4-_0x456949._0x1cf73c,_0xb2b6f4-0x114,_0x199e4f-0xc0);}switch(_0x1da4e7){case'response.output_text.delta':{const _0x17397b=typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x106429,0x1ef,0x19d)]===_0x5057a2(_0x4864c3._0x4ed2db,_0x4864c3._0x181a04,0x140,_0x4864c3._0x3e448a)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x2194e1,0xde,0xd5)]:0x0,_0x5db512=typeof _0x554399['delta']===_0x5057a2(0x1d6,0x120,_0x4864c3._0x5c0d97,0x26f)?_0x554399[_0x136a6f(_0x4864c3._0x11250a,_0x4864c3._0x44d356,_0x4864c3._0x2bcf0f,_0x4864c3._0x776a2b)]:'';if(_0x5db512[_0x5057a2(0x1a6,_0x4864c3._0x5168dc,0x14c,_0x4864c3._0x5f55de)]>0x0){const _0xf15d9e=this[_0x5057a2(0x2b4,0x279,_0x4864c3._0x3b5fb5,0x234)]['get'](_0x17397b)??[];return _0xf15d9e[_0x136a6f(0x519,_0x4864c3._0x4e0a12,0x5f9,0x4ec)](_0x5db512),this[_0x5057a2(0x2b4,0x1f5,0x2b6,_0x4864c3._0x4f1ba5)][_0x5057a2(_0x4864c3._0x1fd7fc,_0x4864c3._0x319b20,0x1db,0x228)](_0x17397b,_0xf15d9e),[{'type':_0x136a6f(0x49e,_0x4864c3._0x21f527,0x446,0x579),'index':_0x17397b,'text':_0x5db512}];}break;}case _0x136a6f(0x4f1,0x549,0x51f,0x4ab):{const _0x2e87cb=typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x3d0c27,0x1cf,_0x4864c3._0x5cadd6)]==='number'?_0x554399[_0x5057a2(_0x4864c3._0x8298b6,0x16f,_0x4864c3._0x75ceed,0x220)]:void 0x0,_0x143730=_0x554399[_0x136a6f(_0x4864c3._0x33f5f6,0x4af,_0x4864c3._0x1ac284,_0x4864c3._0x3fd12c)];if(_0x143730?.[_0x136a6f(0x51b,_0x4864c3._0x38d86e,_0x4864c3._0x4300a8,0x5ca)]===_0x5057a2(_0x4864c3._0x4b1abb,_0x4864c3._0x43b157,0x1ed,0x17c)&&_0x143730[_0x136a6f(0x3ef,0x4b6,_0x4864c3._0x5dcabf,_0x4864c3._0x5077bf)]&&_0x143730[_0x136a6f(0x4fe,0x491,_0x4864c3._0x1ef33d,_0x4864c3._0x1f0af4)])return this[_0x5057a2(0x180,_0x4864c3._0x4bb2ae,0x149,0x16d)][_0x136a6f(0x642,_0x4864c3._0x35e988,0x63e,0x551)](_0x143730['call_id'],{'id':_0x143730[_0x136a6f(_0x4864c3._0x58905d,_0x4864c3._0x48f657,_0x4864c3._0x517acf,0x489)],'type':_0x136a6f(_0x4864c3._0x6ca76c,_0x4864c3._0x38efb8,0x542,_0x4864c3._0x252008),'function':{'name':_0x143730[_0x136a6f(_0x4864c3._0x5eb052,0x491,0x4e2,0x3d9)],'arguments':''}}),_0x2e87cb!==void 0x0&&(this[_0x5057a2(0x198,0x166,_0x4864c3._0x1e253d,_0x4864c3._0x36d1c6)]['set'](_0x2e87cb,_0x143730[_0x136a6f(_0x4864c3._0x3deaaa,0x4b6,_0x4864c3._0x1f5540,0x426)]),this['callIdToOutputIndex'][_0x5057a2(0x27b,_0x4864c3._0x2b5ad9,_0x4864c3._0x4423e1,0x1da)](_0x143730[_0x5057a2(0x17d,_0x4864c3._0x100ea0,0x10f,0x221)],_0x2e87cb)),[{'type':_0x5057a2(0x1ed,_0x4864c3._0x5262ef,0x146,_0x4864c3._0x2ffb9d),'id':_0x143730[_0x5057a2(_0x4864c3._0x39fcc3,_0x4864c3._0x65e200,_0x4864c3._0x439d51,_0x4864c3._0x56c7d1)],'index':_0x2e87cb??0x0,'name':_0x143730[_0x5057a2(_0x4864c3._0x40fa58,_0x4864c3._0x42c0a0,_0x4864c3._0x4b116c,0x21f)]}];if(_0x143730?.[_0x5057a2(_0x4864c3._0x476f01,_0x4864c3._0x23883e,0x1df,_0x4864c3._0x439c5d)]===_0x136a6f(_0x4864c3._0x4eb562,0x5ad,_0x4864c3._0x28e056,0x639)&&_0x143730['id']){const _0x1cd229=this[_0x5057a2(_0x4864c3._0xb3ff25,_0x4864c3._0x444c26,_0x4864c3._0x20c1fb,0x1e3)](_0x143730['id'],_0x2e87cb);_0x2e87cb!==void 0x0&&this['outputIndexToReasoningId'][_0x5057a2(_0x4864c3._0x57ff51,_0x4864c3._0x250d9c,_0x4864c3._0x196479,0x2c3)](_0x2e87cb,_0x1cd229['id']);}break;}case _0x5057a2(_0x4864c3._0x3ad1c4,0x106,0x11c,_0x4864c3._0x395943):{const _0x47f477=typeof _0x554399['call_id']===_0x136a6f(_0x4864c3._0x490d82,_0x4864c3._0x36fe12,_0x4864c3._0x5f42c8,0x514)?_0x554399[_0x5057a2(0x17d,_0x4864c3._0x5afecc,0x113,_0x4864c3._0x5e4636)]:typeof _0x554399[_0x136a6f(0x587,_0x4864c3._0x18a514,_0x4864c3._0x3f0c2d,0x4ac)]===_0x5057a2(_0x4864c3._0x315a01,_0x4864c3._0x2a1024,0x23d,0x232)?this['outputIndexToCallId']['get'](_0x554399[_0x5057a2(0x18e,0x204,_0x4864c3._0x1bc63d,_0x4864c3._0x1a245d)]):void 0x0,_0x2bb5d4=typeof _0x554399[_0x136a6f(_0x4864c3._0x5074ca,_0x4864c3._0x495c48,_0x4864c3._0x7d1795,_0x4864c3._0x6b99dd)]===_0x5057a2(_0x4864c3._0x5d08a4,_0x4864c3._0x549877,0x13c,0x25b)?_0x554399[_0x136a6f(0x63f,_0x4864c3._0x495c48,_0x4864c3._0x3ac01b,_0x4864c3._0x2e9842)]:'',_0x89695c=_0x47f477?this[_0x136a6f(0x46d,0x4b9,_0x4864c3._0x77da7c,_0x4864c3._0x18eb26)][_0x136a6f(_0x4864c3._0x5bea31,0x4c8,0x484,0x4eb)](_0x47f477):void 0x0;if(_0x89695c&&_0x2bb5d4['length']>0x0)return _0x89695c[_0x5057a2(_0x4864c3._0x5e5c10,_0x4864c3._0x286b2b,_0x4864c3._0x30e552,_0x4864c3._0x5d9edc)]['arguments']+=_0x2bb5d4,[{'type':_0x5057a2(0x1ed,0x1e7,_0x4864c3._0x57d42d,0x268),'id':_0x89695c['id'],'index':this[_0x136a6f(_0x4864c3._0x167dba,_0x4864c3._0x2701db,0x41c,0x4db)][_0x136a6f(_0x4864c3._0x7e19aa,_0x4864c3._0x474520,_0x4864c3._0x59d65d,0x4f7)](_0x89695c['id'])??(typeof _0x554399[_0x5057a2(_0x4864c3._0x3a0303,_0x4864c3._0x11007e,0x1ef,0x1c6)]===_0x5057a2(0x18b,_0x4864c3._0x1cd8ab,0x130,_0x4864c3._0x395943)?_0x554399[_0x136a6f(0x4e6,_0x4864c3._0x18a514,0x422,0x577)]:0x0),'inputDelta':_0x2bb5d4}];break;}case _0x5057a2(_0x4864c3._0x342e3c,_0x4864c3._0x1f6d53,0xf5,0xbf):{const _0xd8aa84=typeof _0x554399[_0x5057a2(_0x4864c3._0x37cc2a,_0x4864c3._0x1be275,0x1e7,_0x4864c3._0x8fdc0c)]===_0x136a6f(_0x4864c3._0x9fb219,0x50f,0x470,_0x4864c3._0x21f93c)?_0x554399[_0x136a6f(_0x4864c3._0x417630,_0x4864c3._0x48f657,_0x4864c3._0x556991,0x3ed)]:typeof _0x554399[_0x5057a2(_0x4864c3._0x8298b6,_0x4864c3._0x5b23b8,_0x4864c3._0xf6e0b3,0xe9)]===_0x5057a2(_0x4864c3._0x3eac7e,_0x4864c3._0x47314d,_0x4864c3._0x4478db,0x22d)?this['outputIndexToCallId']['get'](_0x554399[_0x136a6f(_0x4864c3._0x1f9308,_0x4864c3._0x37c979,0x54f,_0x4864c3._0x2a21e3)]):void 0x0,_0x457eda=_0xd8aa84?this[_0x5057a2(0x180,0x162,0x216,0x1b0)][_0x136a6f(_0x4864c3._0x235345,0x4c8,_0x4864c3._0x1b0de2,0x4fc)](_0xd8aa84):void 0x0;_0x457eda&&typeof _0x554399[_0x136a6f(0x422,0x48a,0x47e,_0x4864c3._0x4e8f99)]===_0x5057a2(0x1d6,0x183,0x218,_0x4864c3._0x50201e)&&(_0x457eda[_0x5057a2(_0x4864c3._0x5e5c10,0x1b3,_0x4864c3._0x56cf64,_0x4864c3._0x372064)][_0x5057a2(_0x4864c3._0x4d1921,0x111,_0x4864c3._0x195346,_0x4864c3._0x578cc1)]=_0x554399['arguments']);break;}case _0x5057a2(0x2a2,_0x4864c3._0x2b5f8e,0x1e4,0x2cf):{const _0x16ecbf=typeof _0x554399[_0x5057a2(0x18e,0x22f,0x1f5,_0x4864c3._0x372b07)]==='number'?_0x554399[_0x136a6f(0x4ee,_0x4864c3._0x598651,_0x4864c3._0x2970ad,_0x4864c3._0x266754)]:void 0x0,_0x1c6aa5=_0x554399[_0x5057a2(0x176,0x178,_0x4864c3._0x42f6fb,0x195)];if(_0x1c6aa5?.[_0x5057a2(_0x4864c3._0x476f01,0x1b3,0x10a,_0x4864c3._0x53a29d)]===_0x5057a2(0x135,0x12f,0x122,0x10d)){const _0x3d777a=_0x1c6aa5['call_id']??(_0x16ecbf!==void 0x0?this['outputIndexToCallId']['get'](_0x16ecbf):void 0x0),_0xdeea8f=_0x3d777a?this['toolCalls']['get'](_0x3d777a):void 0x0;_0xdeea8f&&typeof _0x1c6aa5[_0x136a6f(0x532,0x48a,_0x4864c3._0x52d4fd,_0x4864c3._0x21f527)]==='string'&&(_0xdeea8f['function'][_0x5057a2(_0x4864c3._0x181a04,_0x4864c3._0x20e763,0x1f5,_0x4864c3._0x30608c)]=_0x1c6aa5[_0x136a6f(_0x4864c3._0x4176fe,_0x4864c3._0x454e0e,_0x4864c3._0x3a7094,_0x4864c3._0x4df4a8)]);break;}if(_0x1c6aa5?.[_0x5057a2(0x1ca,_0x4864c3._0x116a8f,_0x4864c3._0x50cdc0,0x214)]===_0x136a6f(_0x4864c3._0x248d53,_0x4864c3._0x38808c,0x581,_0x4864c3._0x1d9df8)&&_0x1c6aa5['id']){const _0x59c162=this[_0x136a6f(_0x4864c3._0x588c06,_0x4864c3._0x810085,0x4ac,_0x4864c3._0x4fc6b4)](_0x1c6aa5['id'],_0x16ecbf);typeof _0x1c6aa5['encrypted_content']===_0x5057a2(_0x4864c3._0x1c74d0,0x24d,0x201,_0x4864c3._0x587d3e)&&(_0x59c162['encryptedContent']=_0x1c6aa5[_0x5057a2(0x17c,0x17a,0x1ac,_0x4864c3._0x3f0cb1)]);if(Array['isArray'](_0x1c6aa5[_0x5057a2(_0x4864c3._0x4ee902,0x192,0x9e,_0x4864c3._0x2dbcde)]))for(let _0x39cc99=0x0;_0x39cc99<_0x1c6aa5[_0x5057a2(0x13e,_0x4864c3._0x30e552,0xba,_0x4864c3._0x3eac7e)][_0x5057a2(_0x4864c3._0xa538f8,0x25b,0x21f,0x1ff)];_0x39cc99+=0x1){const _0xf245c=_0x1c6aa5[_0x136a6f(_0x4864c3._0x1a5bc0,_0x4864c3._0x74cf0f,0x424,_0x4864c3._0x2deb10)][_0x39cc99];_0xf245c[_0x5057a2(_0x4864c3._0x476f01,0x1c1,_0x4864c3._0x370d5e,_0x4864c3._0x572dfe)]===_0x136a6f(0x540,0x5b6,_0x4864c3._0x413e58,0x5f5)&&typeof _0xf245c['text']===_0x5057a2(_0x4864c3._0x1c74d0,0x139,0x123,0x1f0)&&_0x59c162[_0x5057a2(_0x4864c3._0x5440a6,_0x4864c3._0x3b67fc,_0x4864c3._0x26284e,0x293)]['set'](_0x39cc99,_0xf245c[_0x5057a2(_0x4864c3._0x3b67fc,_0x4864c3._0x275d07,_0x4864c3._0x3af64b,_0x4864c3._0x3f8b88)]);}typeof _0x1c6aa5['text']===_0x136a6f(0x5da,0x50f,0x48f,0x5ab)&&_0x59c162[_0x136a6f(0x547,0x50c,0x449,0x582)][_0x5057a2(0x27b,0x212,0x337,0x2a5)](0x0,_0x1c6aa5[_0x136a6f(0x5ee,_0x4864c3._0x272abc,_0x4864c3._0x1240c2,0x51a)]);}break;}case _0x136a6f(0x454,0x478,_0x4864c3._0x2f3008,_0x4864c3._0x51a215):{const _0x50f27e=typeof _0x554399[_0x136a6f(0x5eb,0x5d5,_0x4864c3._0x5620f8,0x551)]==='string'?_0x554399[_0x136a6f(0x60e,0x5d5,0x639,_0x4864c3._0x460ccb)]:'',_0x5104f3=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x3f112f,_0x4864c3._0x5addb4,_0x4864c3._0x33bae3)]==='string'?_0x554399['item_id']:typeof _0x554399[_0x136a6f(_0x4864c3._0x2a171e,0x4c7,_0x4864c3._0x227fdd,0x4ea)]===_0x5057a2(0x18b,_0x4864c3._0x587d3e,0x20e,_0x4864c3._0x130506)?this[_0x136a6f(_0x4864c3._0x18f142,_0x4864c3._0x4c6510,_0x4864c3._0x18f142,_0x4864c3._0x50a841)][_0x5057a2(0x18f,0x1ad,0x1a2,0x120)](_0x554399['output_index']):void 0x0,_0x37a4ea=typeof _0x554399[_0x136a6f(0x518,0x4c7,_0x4864c3._0x2085c4,0x475)]===_0x5057a2(_0x4864c3._0x36c2eb,_0x4864c3._0x386109,_0x4864c3._0x583d63,0x142)?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x3b67ae,_0x4864c3._0x2be03b,0x114)]:0x0,_0x12861f=typeof _0x554399['summary_index']===_0x5057a2(0x18b,0xca,_0x4864c3._0x4e29bd,_0x4864c3._0x3c6220)?_0x554399['summary_index']:0x0;if(_0x5104f3&&_0x50f27e[_0x5057a2(_0x4864c3._0xa538f8,_0x4864c3._0xac05a1,_0x4864c3._0x286b2b,_0x4864c3._0x5bb2f4)]>0x0){const _0x59681b=this[_0x136a6f(_0x4864c3._0x517e06,_0x4864c3._0x810085,_0x4864c3._0x185d19,0x55f)](_0x5104f3,_0x37a4ea);_0x59681b[_0x5057a2(_0x4864c3._0x2a5da0,0x2d7,0x282,0x2d5)][_0x136a6f(0x5f1,_0x4864c3._0x3413c7,_0x4864c3._0x400b71,0x544)](_0x12861f,''+(_0x59681b[_0x5057a2(0x255,_0x4864c3._0x35b290,0x252,_0x4864c3._0x5826a8)][_0x5057a2(0x18f,0x1e6,_0x4864c3._0x23447e,0xd8)](_0x12861f)??'')+_0x50f27e);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_summary_delta','delta':_0x50f27e,'itemId':_0x5104f3,'outputIndex':_0x37a4ea,'summaryIndex':_0x12861f}];}break;}case _0x5057a2(_0x4864c3._0x11b421,0x181,0x255,0x140):{const _0x4282b7=typeof _0x554399['item_id']===_0x136a6f(0x44a,_0x4864c3._0x2d2a82,0x499,0x495)?_0x554399[_0x136a6f(0x4ef,0x4ba,0x578,_0x4864c3._0x18f953)]:typeof _0x554399[_0x5057a2(0x18e,_0x4864c3._0x1c7ff6,_0x4864c3._0x302c23,0xda)]===_0x136a6f(0x4cd,0x4c4,_0x4864c3._0x2bd10c,0x53b)?this[_0x5057a2(_0x4864c3._0x4e5f78,0x151,_0x4864c3._0x17248b,_0x4864c3._0x2d74c7)][_0x5057a2(0x18f,0x1ea,0x141,_0x4864c3._0x342e3c)](_0x554399['output_index']):void 0x0,_0x1219a9=typeof _0x554399[_0x136a6f(_0x4864c3._0x36ea10,_0x4864c3._0x3ab7a9,_0x4864c3._0x58f5ac,_0x4864c3._0x25fd90)]==='number'?_0x554399['output_index']:0x0,_0x1e93e5=typeof _0x554399[_0x136a6f(0x65e,0x5d4,_0x4864c3._0x5a2cf6,0x670)]===_0x5057a2(0x18b,0xd2,0x213,0x255)?_0x554399[_0x5057a2(0x29b,_0x4864c3._0x4f95ab,_0x4864c3._0x515d63,0x2c6)]:0x0,_0x331cd7=typeof _0x554399[_0x136a6f(_0x4864c3._0x208abb,0x556,0x4b1,0x50c)]==='string'?_0x554399[_0x5057a2(0x21d,0x17d,_0x4864c3._0x3036bf,0x1cf)]:'';_0x4282b7&&this[_0x5057a2(0x166,_0x4864c3._0x23474c,_0x4864c3._0x1c2eb7,0xc1)](_0x4282b7,_0x1219a9)[_0x5057a2(0x255,_0x4864c3._0x51c7bc,0x26c,_0x4864c3._0x1c9d93)][_0x136a6f(0x523,_0x4864c3._0x35e988,_0x4864c3._0x43522b,0x4ea)](_0x1e93e5,_0x331cd7);break;}case _0x5057a2(0x1e3,_0x4864c3._0x43f8ae,0x169,0x27e):{const _0x18da21=typeof _0x554399['delta']==='string'?_0x554399[_0x136a6f(0x5e7,_0x4864c3._0x495c48,0x52a,_0x4864c3._0x401d1b)]:'',_0x1ee1cf=typeof _0x554399[_0x136a6f(0x54a,_0x4864c3._0x4b369f,0x45f,_0x4864c3._0x49091c)]===_0x136a6f(_0x4864c3._0x202f91,_0x4864c3._0x2d2a82,0x50f,_0x4864c3._0x14eb44)?_0x554399['item_id']:typeof _0x554399['output_index']===_0x136a6f(0x571,_0x4864c3._0x5eba7c,_0x4864c3._0x257805,0x4d2)?this[_0x136a6f(0x5a6,_0x4864c3._0x753287,0x4c7,0x465)][_0x136a6f(_0x4864c3._0x3d9154,0x4c8,_0x4864c3._0x35b7a2,0x400)](_0x554399[_0x136a6f(0x458,0x4c7,_0x4864c3._0x3085de,0x519)]):void 0x0,_0x42c92e=typeof _0x554399['output_index']==='number'?_0x554399[_0x5057a2(0x18e,_0x4864c3._0x422b08,0x1ce,_0x4864c3._0x850de6)]:0x0,_0x410d9c=typeof _0x554399[_0x136a6f(_0x4864c3._0x1e7e35,0x56c,0x59f,_0x4864c3._0x473d3b)]===_0x5057a2(0x18b,_0x4864c3._0x220fe0,_0x4864c3._0x5e8829,0x161)?_0x554399[_0x136a6f(_0x4864c3._0x2bcf0f,0x56c,0x52d,_0x4864c3._0x3f54aa)]:0x0;if(_0x1ee1cf&&_0x18da21[_0x5057a2(_0x4864c3._0x486619,0x252,0x25c,0x17f)]>0x0){const _0x29e04c=this[_0x5057a2(0x166,0x10a,0x167,0x14e)](_0x1ee1cf,_0x42c92e);_0x29e04c[_0x5057a2(0x1d3,0x210,0x25d,_0x4864c3._0x4a3382)][_0x136a6f(0x4f4,_0x4864c3._0x3413c7,0x505,_0x4864c3._0x9d06c4)](_0x410d9c,''+(_0x29e04c[_0x136a6f(0x56c,0x50c,0x49b,0x5ac)]['get'](_0x410d9c)??'')+_0x18da21);if(isUserVisibleReasoning(this[_0x5057a2(_0x4864c3._0x10d616,_0x4864c3._0x3e448a,0x13c,0x1c9)]))return[{'type':_0x136a6f(0x464,_0x4864c3._0x18a88b,0x509,_0x4864c3._0x2f72bc),'contentIndex':_0x410d9c,'delta':_0x18da21,'itemId':_0x1ee1cf,'outputIndex':_0x42c92e}];}break;}case'response.reasoning_text.done':{const _0x555296=typeof _0x554399[_0x5057a2(0x181,_0x4864c3._0x5445da,0x186,_0x4864c3._0x1698be)]==='string'?_0x554399['item_id']:typeof _0x554399['output_index']===_0x5057a2(0x18b,0x1a2,0x1b2,_0x4864c3._0x311197)?this[_0x136a6f(0x59d,0x529,_0x4864c3._0x41d0d0,0x5cd)][_0x136a6f(_0x4864c3._0x39c5f3,0x4c8,0x4ea,_0x4864c3._0xd247fe)](_0x554399['output_index']):void 0x0,_0x54e4d8=typeof _0x554399[_0x5057a2(0x18e,0xd0,0xfc,0x133)]==='number'?_0x554399[_0x136a6f(0x4fa,0x4c7,_0x4864c3._0x3f0c2d,0x444)]:0x0,_0x50c23c=typeof _0x554399[_0x5057a2(0x233,_0x4864c3._0x153990,0x291,0x1db)]==='number'?_0x554399[_0x136a6f(_0x4864c3._0x2bd826,_0x4864c3._0x4e25af,0x603,_0x4864c3._0x4438f9)]:0x0,_0x5240cd=typeof _0x554399[_0x5057a2(0x21d,0x1b8,0x20a,_0x4864c3._0x175a87)]===_0x136a6f(0x56a,0x50f,0x545,0x571)?_0x554399['text']:'';_0x555296&&this[_0x136a6f(_0x4864c3._0x2bd826,0x49f,0x3ed,_0x4864c3._0x2b90b7)](_0x555296,_0x54e4d8)[_0x136a6f(0x584,0x50c,_0x4864c3._0x3217e7,_0x4864c3._0xc1db98)][_0x136a6f(_0x4864c3._0x4bfa64,_0x4864c3._0x3a3ba7,_0x4864c3._0xc20d23,_0x4864c3._0x4c6510)](_0x50c23c,_0x5240cd);break;}case _0x136a6f(_0x4864c3._0x341706,_0x4864c3._0x1535f5,_0x4864c3._0x59c0d7,_0x4864c3._0x24540d):{this[_0x136a6f(_0x4864c3._0x2a21e3,0x56a,0x4e3,_0x4864c3._0x338797)]=_0x554399[_0x136a6f(_0x4864c3._0x318d8b,0x58b,0x555,0x53f)];break;}case _0x5057a2(_0x4864c3._0x1c403f,_0x4864c3._0xa0c143,_0x4864c3._0x475f68,0x2e0):{const _0x363c1f=_0x554399['response'];throw new OpenAiResponsesStreamError(_0x363c1f?.[_0x136a6f(_0x4864c3._0x279a15,_0x4864c3._0x2aa031,_0x4864c3._0x2f961c,0x4f6)]?.[_0x5057a2(0x1bd,_0x4864c3._0xf37147,0x100,_0x4864c3._0x40ed12)]??'Responses\x20stream\x20failed',{'code':_0x363c1f?.['error']?.[_0x5057a2(0x2c9,_0x4864c3._0x2cf92a,0x243,0x24e)]});}case'error':{const _0x2a81c4=_0x554399[_0x136a6f(0x4e3,0x586,_0x4864c3._0x42d9e6,_0x4864c3._0x340cf0)];throw new OpenAiResponsesStreamError(_0x2a81c4?.[_0x136a6f(0x554,_0x4864c3._0x5077bf,_0x4864c3._0x119142,0x57b)]??_0x136a6f(0x554,0x562,0x51e,_0x4864c3._0x4cf9fa),{'code':_0x2a81c4?.[_0x136a6f(_0x4864c3._0x235fe0,_0x4864c3._0x5a0e4b,0x6bc,_0x4864c3._0x551e04)],'status':typeof _0x554399[_0x5057a2(0x1af,0x264,_0x4864c3._0x5be1ff,_0x4864c3._0x461d53)]==='number'?_0x554399[_0x136a6f(0x568,_0x4864c3._0x12ab98,0x437,_0x4864c3._0x5d171e)]:void 0x0});}}return[];}[_0x2b6123(0x2df,0x2c6,0x353,0x2b8)](){const _0x346931={_0x56518a:0x3a0,_0x41e5ad:0x3c6,_0x563f79:0x445,_0x1ed017:0x1c3,_0x2df147:0x14e,_0x694b88:0x137,_0x2a4c1f:0x108,_0x215884:0xc7,_0x14432c:0x13f,_0xfed7d:0xab,_0x1d8418:0x158,_0x4e7ef5:0x31,_0x44bb47:0x39e,_0x47573c:0x331,_0x318d91:0x37f,_0x5a115b:0x3ae,_0x2fed92:0x365,_0x53a127:0x318,_0x30e4e7:0x1d6,_0x2bae59:0x252,_0x3b5854:0x389,_0x45ec93:0x134,_0x5c6ece:0x24e,_0x1bed9c:0x452,_0x512e03:0xf7,_0x5912f3:0x1b7,_0x55bace:0x199,_0x2815dd:0x108,_0xcf5815:0x148,_0x153aea:0x1da,_0x21b1da:0xcf,_0x5dbe10:0x17c,_0x6371c0:0x2c8,_0x229141:0x2bd,_0x4376d3:0x1f4,_0x15120e:0x145,_0x297fb2:0x191,_0x2d83d3:0x159,_0x3250bb:0x1b0,_0xba73eb:0xe5,_0x42bd77:0x135,_0x4441ed:0xa3,_0x41150e:0x17a,_0x46eafd:0x16e,_0x772d6:0x1be,_0x43c3cb:0x2f1,_0x125998:0x241,_0x2a5abe:0x35d,_0x501d6f:0x1e8,_0x50ad55:0x1ce,_0xa50f55:0xc8,_0x2f0e58:0x178,_0x328cbf:0x106,_0x37cda2:0xfd,_0x4c2909:0x129,_0x431f13:0xf1,_0x16d1f0:0x13a,_0x13ce7e:0x7c,_0x26c46f:0x97,_0x2306c0:0x145,_0x46a8ef:0x1d3,_0x30f785:0x2ae,_0xbd95c1:0x26a,_0x400ea0:0x2e2,_0x29e16a:0x2e7,_0x2e4739:0x225,_0xcc70c0:0x177},_0x4573c6={_0x5bcafa:0x8c},_0x8ccb8={_0x269c50:0x12f,_0x22727e:0x1c3},_0x410680={_0x3b4875:0x113,_0x489163:0x19d},_0x3605b1=[];for(const [_0x43cbd0,_0x232859]of this[_0x1e8af0(_0x346931._0x56518a,_0x346931._0x41e5ad,_0x346931._0x563f79,0x382)][_0xdfd622(_0x346931._0x1ed017,0x14a,_0x346931._0x2df147,0xe8)]()){const _0x1d59cf=_0x232859['join']('');if(_0x1d59cf[_0xdfd622(_0x346931._0x694b88,0x6f,_0x346931._0x2a4c1f,0x15e)]===0x0)continue;_0x3605b1['push']({'index':_0x43cbd0,'item':{'type':_0x1e8af0(0x344,0x2cf,0x267,0x353),'role':'assistant','content':[{'type':_0xdfd622(_0x346931._0x215884,0x13e,_0x346931._0x14432c,_0x346931._0xfed7d),'text':_0x1d59cf}]}});}function _0xdfd622(_0x40e42c,_0x1c7f4c,_0x1cb0e3,_0x2fce15){return _0x2b6123(_0x1c7f4c,_0x1c7f4c-_0x410680._0x3b4875,_0x1cb0e3- -0x193,_0x2fce15-_0x410680._0x489163);}for(const _0x3e8a4d of this[_0xdfd622(_0x346931._0x1d8418,_0x346931._0x4e7ef5,0xd1,0x2a)]['values']()){_0x3605b1[_0x1e8af0(_0x346931._0x44bb47,_0x346931._0x47573c,0x2ed,0x32c)]({'index':_0x3e8a4d[_0x1e8af0(0x37d,_0x346931._0x318d91,_0x346931._0x5a115b,0x43b)]??_0x3605b1[_0x1e8af0(_0x346931._0x2fed92,0x2b8,_0x346931._0x53a127,0x233)],'item':{'type':_0xdfd622(0x254,0x250,_0x346931._0x30e4e7,_0x346931._0x2bae59),'id':_0x3e8a4d['id'],..._0x3e8a4d[_0x1e8af0(0x332,0x380,0x2cc,_0x346931._0x3b5854)]?{'encrypted_content':_0x3e8a4d['encryptedContent']}:{},..._0x3e8a4d[_0xdfd622(_0x346931._0x45ec93,0x1f7,0x1b7,_0x346931._0x5c6ece)][_0x1e8af0(0x354,0x3a4,_0x346931._0x53a127,_0x346931._0x1bed9c)]>0x0?{'summary':Array['from'](_0x3e8a4d[_0xdfd622(_0x346931._0x512e03,0x18f,_0x346931._0x5912f3,_0x346931._0x55bace)][_0xdfd622(_0x346931._0x2815dd,0x92,0x14e,_0x346931._0xcf5815)]())[_0xdfd622(_0x346931._0x153aea,_0x346931._0x21b1da,0x16e,_0x346931._0x5dbe10)]((_0x57fa41,_0x3d2c7e)=>_0x57fa41[0x0]-_0x3d2c7e[0x0])['map'](([,_0x36a0a4])=>{const _0x292a72={_0xbb199e:0x291,_0x42cfd8:0x1,_0x195a44:0x125};function _0xdc7223(_0x270d66,_0x296500,_0x1ccca1,_0x235532){return _0x1e8af0(_0x235532,_0x270d66- -_0x292a72._0xbb199e,_0x1ccca1-_0x292a72._0x42cfd8,_0x235532-_0x292a72._0x195a44);}return{'type':_0xdc7223(0xfe,_0x8ccb8._0x269c50,_0x8ccb8._0x22727e,0x19b),'text':_0x36a0a4};})}:{},..._0x3e8a4d[_0x1e8af0(0x24d,0x2e5,0x25f,_0x346931._0x6371c0)][_0xdfd622(_0x346931._0x229141,0x2a7,_0x346931._0x4376d3,_0x346931._0x15120e)]>0x0?{'text':Array[_0xdfd622(_0x346931._0x297fb2,0x95,_0x346931._0x2d83d3,_0x346931._0x3250bb)](_0x3e8a4d[_0xdfd622(0x9d,_0x346931._0xba73eb,_0x346931._0x42bd77,_0x346931._0x4441ed)]['entries']())[_0xdfd622(_0x346931._0x41150e,0x1ca,_0x346931._0x46eafd,_0x346931._0x772d6)]((_0x240f61,_0x132f71)=>_0x240f61[0x0]-_0x132f71[0x0])['map'](([,_0x2acb60])=>_0x2acb60)[_0x1e8af0(0x2b5,_0x346931._0x43c3cb,_0x346931._0x125998,_0x346931._0x2a5abe)]('')}:{}}});}function _0x1e8af0(_0x2b32cc,_0xf792bc,_0x9def45,_0x1532e7){return _0x2b6123(_0x2b32cc,_0xf792bc-0xaa,_0xf792bc-0x1d,_0x1532e7-_0x4573c6._0x5bcafa);}for(const _0x73920e of this[_0x1e8af0(0x2f5,0x292,_0x346931._0x501d6f,_0x346931._0x50ad55)][_0xdfd622(_0x346931._0xa50f55,_0x346931._0x2f0e58,0x154,_0x346931._0x328cbf)]()){_0x3605b1[_0xdfd622(_0x346931._0x37cda2,_0x346931._0x4c2909,0x181,0x109)]({'index':this[_0xdfd622(0x4e,0x8f,0xb7,0x4c)][_0xdfd622(0xaa,0x176,_0x346931._0x431f13,0x148)](_0x73920e['id'])??_0x3605b1[_0xdfd622(_0x346931._0x4441ed,_0x346931._0x16d1f0,_0x346931._0x2815dd,_0x346931._0xfed7d)],'item':{'type':_0xdfd622(_0x346931._0x13ce7e,0x41,_0x346931._0x26c46f,_0x346931._0x2306c0),'call_id':_0x73920e['id'],'name':_0x73920e[_0x1e8af0(_0x346931._0x46a8ef,0x287,0x29a,0x317)][_0x1e8af0(_0x346931._0x30f785,_0x346931._0xbd95c1,_0x346931._0x400ea0,0x23c)],'arguments':_0x73920e[_0x1e8af0(_0x346931._0x29e16a,0x287,_0x346931._0x2e4739,0x254)]['arguments']}});}return _0x3605b1[_0xdfd622(0x12a,0x226,0x16e,_0x346931._0xcc70c0)]((_0x446a36,_0x35b744)=>_0x446a36[_0x1e8af0(0x359,0x36d,0x407,0x390)]-_0x35b744[_0x1e8af0(0x301,0x36d,0x36e,0x35c)])['map'](_0x13d35c=>_0x13d35c['item']);}['getOrCreateReasoningItem'](_0x55c07d,_0x2c486d){const _0x28deed={_0x892112:0x237,_0x23c5dd:0x201,_0x82c4e3:0x2ab,_0x1d53e1:0x262,_0x3f1ad0:0x3f8,_0x5a1e35:0x28b,_0x4577d2:0x3c5,_0x5638a4:0x47e,_0x5be61a:0x1bc,_0x3ec2cc:0x205,_0x179fa2:0x473,_0x2b879b:0x444,_0x5e4188:0x4d1},_0x4f9d69={_0x39890e:0x16e},_0x2d75e6={_0x4f085d:0x140,_0x4b6da0:0xdd},_0x445bf0=this[_0x59c83c(_0x28deed._0x892112,_0x28deed._0x23c5dd,_0x28deed._0x82c4e3,_0x28deed._0x1d53e1)]['get'](_0x55c07d);function _0x5c276a(_0x386658,_0x2f17f9,_0x1e5ebd,_0x43cf93){return _0x38c793(_0x386658,_0x2f17f9-_0x2d75e6._0x4f085d,_0x43cf93- -0x22,_0x43cf93-_0x2d75e6._0x4b6da0);}if(_0x445bf0)return _0x2c486d!==void 0x0&&(_0x445bf0[_0x5c276a(_0x28deed._0x3f1ad0,0x41a,0x458,0x470)]=_0x2c486d,this[_0x59c83c(0x330,_0x28deed._0x5a1e35,0x345,0x2e3)][_0x5c276a(_0x28deed._0x4577d2,0x4c7,0x3ee,_0x28deed._0x5638a4)](_0x2c486d,_0x55c07d)),_0x445bf0;const _0x59be7a={'id':_0x55c07d,'outputIndex':_0x2c486d,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x59c83c(_0x28deed._0x5be61a,0x2ce,_0x28deed._0x3ec2cc,0x262)][_0x5c276a(_0x28deed._0x179fa2,_0x28deed._0x2b879b,_0x28deed._0x5e4188,0x47e)](_0x55c07d,_0x59be7a);function _0x59c83c(_0x406e20,_0x24d5ae,_0x5d608a,_0xc793e6){return _0x38c793(_0x406e20,_0x24d5ae-_0x4f9d69._0x39890e,_0xc793e6- -0x132,_0xc793e6-0x100);}return _0x2c486d!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x2c486d,_0x55c07d),_0x59be7a;}};function createOpenAiResponsesStreamParser(_0x515527){return new OpenAiResponsesStreamParser(_0x515527);}function createOpenAiSurfaces(_0x4fd07a={}){const _0x654cb7={_0x3e6932:0x53,_0x41100d:0x391,_0x12f859:0x43b,_0x2cb8ff:0x35a,_0x3be82f:0x356,_0x2acd0d:0x3cd,_0x8a25e2:0x2f6,_0x42c945:0x3d8,_0x52a478:0x465,_0x44ca38:0x300,_0x394592:0x278,_0x571acd:0x2ac,_0x17dcfa:0x28e,_0x9eac25:0x2a,_0x57e519:0x8e},_0xdd2230={_0x410567:0x11e,_0x53e1bb:0xd1,_0x3c1ce5:0xba},_0x310f0d={_0x102227:0x1a1,_0x2a3602:0x15d},_0x4ca949={_0x342806:0x27c,_0x42e72a:0x320},_0x148292={_0x1351f4:0xf5,_0x3b366f:0x27},_0xb08a6c={_0x2dc34d:0x6f};function _0x1a0959(_0xb3a86e,_0x152b8e,_0x3920af,_0x44c88){return _0x2b6123(_0x152b8e,_0x152b8e-0x166,_0xb3a86e-0x53,_0x44c88-_0xb08a6c._0x2dc34d);}const _0x2ed729=_0x4fd07a[_0x561caa(_0x654cb7._0x3e6932,0xcf,-0x15,0x5c)]??_0x1a0959(_0x654cb7._0x41100d,_0x654cb7._0x12f859,_0x654cb7._0x2cb8ff,0x3da);function _0x561caa(_0x61ceaa,_0x445e15,_0x7a765f,_0x37c777){return _0x38c793(_0x445e15,_0x445e15-_0x148292._0x1351f4,_0x61ceaa- -0x3cf,_0x37c777-_0x148292._0x3b366f);}const _0x33c0a3=_0x4fd07a[_0x1a0959(_0x654cb7._0x3be82f,0x2fa,_0x654cb7._0x2acd0d,_0x654cb7._0x8a25e2)]??_0x1a0959(_0x654cb7._0x42c945,_0x654cb7._0x52a478,0x377,0x446);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x1a0959(0x2ac,_0x654cb7._0x44ca38,_0x654cb7._0x394592,0x2d3),'createRequest'(_0x32a0f0){const _0x3aa037={_0x3cc0a3:0xe1};function _0x298c52(_0x4fc307,_0x50d969,_0x5896f4,_0x3a197b){return _0x1a0959(_0x50d969-0x4c,_0x4fc307,_0x5896f4-_0x3aa037._0x3cc0a3,_0x3a197b-0x1e1);}return{'accept':_0x298c52(0x3af,0x320,_0x4ca949._0x342806,_0x4ca949._0x42e72a),'body':createChatRequestBody(_0x32a0f0,![]),'path':_0x2ed729};},'parseResponse'(_0x580326){return parseChatCompletionResponse(_0x580326);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x46f637){const _0x35e999={_0x5819ce:0xb0,_0x35092d:0x8b};function _0x191628(_0x13f856,_0x9c712c,_0x354cc2,_0x4a452d){return _0x561caa(_0x4a452d-_0x35e999._0x5819ce,_0x9c712c,_0x354cc2-_0x35e999._0x35092d,_0x4a452d-0x5a);}return{'accept':_0x191628(0x157,0x178,_0x310f0d._0x102227,_0x310f0d._0x2a3602),'body':createChatRequestBody(_0x46f637,!![]),'path':_0x2ed729};},'createStreamParser'(_0x2cc703){return new OpenAiChatCompletionsStreamParser(_0x2cc703);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1a0959(_0x654cb7._0x571acd,_0x654cb7._0x17dcfa,0x2ea,0x2fb),'createRequest'(_0x978686){return{'accept':'application/json','body':createResponsesRequestBody(_0x978686,![]),'path':_0x33c0a3};},'parseResponse'(_0x2242a9,_0x201c19){return parseResponsesResponse(_0x2242a9,_0x201c19);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xe23e9b){const _0x4123de={_0x54c623:0xd,_0x1d9dad:0x4a,_0x1639ab:0x110};function _0x29b3cc(_0xb60332,_0x3d96de,_0x3204bb,_0x2e6d57){return _0x561caa(_0x2e6d57-_0x4123de._0x54c623,_0xb60332,_0x3204bb-_0x4123de._0x1d9dad,_0x2e6d57-_0x4123de._0x1639ab);}return{'accept':_0x29b3cc(_0xdd2230._0x410567,0x184,_0xdd2230._0x53e1bb,_0xdd2230._0x3c1ce5),'body':createResponsesRequestBody(_0xe23e9b,!![]),'path':_0x33c0a3};},'createStreamParser'(_0x560d5c){return new OpenAiResponsesStreamParser(_0x560d5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x561caa(_0x654cb7._0x9eac25,-0xb,_0x654cb7._0x57e519,0x87),'createRequest'(_0x291040){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x291040),'path':_0x33c0a3};},'createStreamParser'(_0x14299f){return createOpenAiResponsesStreamParser(_0x14299f);}}];}var OpenAiProviderAdapter=class{[_0x38c793(0x499,0x476,0x474,0x46f)];constructor(_0x151945){this['headerResolver']=_0x151945;}['createMissingCredentialError'](){const _0xcce063={_0x573cc8:0x160,_0x58dbc2:0x163};function _0x31690d(_0x164beb,_0x51b1a0,_0x1678ec,_0x4c0cc2){return _0x2b6123(_0x1678ec,_0x51b1a0-0x102,_0x4c0cc2- -0x1da,_0x4c0cc2-0x4b);}return new Error(_0x31690d(_0xcce063._0x573cc8,0x7f,_0xcce063._0x58dbc2,0xac));}async[_0x2b6123(0x205,0x239,0x265,0x249)](_0xac53a6,_0x23fcf1){const _0x4284aa={_0x197c6e:0x486,_0x1d936f:0x3d3,_0x52323d:0x482,_0x4c63cb:0x396,_0x5a94de:0x3b4,_0x3b6748:0x1f3,_0x14d791:0x4a6,_0xb59088:0x4f4,_0xcf8518:0x437,_0x303c64:0x469,_0x1042ed:0x1a2,_0xcdf612:0x1f2,_0x5c11cf:0x1ea,_0x30f730:0x411,_0x5a719a:0x458,_0x5e9ab4:0x1df,_0x4639d5:0x132,_0x5132d0:0x1bf,_0x315378:0xe8,_0x66ba7b:0x18a,_0x1bcd34:0x2cf,_0x2c2dab:0x426,_0x1ed279:0x2dc,_0x5b7918:0x2f7,_0x2ee82e:0x360,_0x5a628f:0x2e0,_0x18760f:0x258,_0x26f63d:0x3d7,_0x451431:0x3fc},_0x39feaa={_0x1afbe9:0xc9},_0x596d10={_0x28aca2:0x68,_0x81aa5e:0x40};function _0x4237c7(_0x20b865,_0x439d6f,_0x4da94b,_0x3179e7){return _0x38c793(_0x4da94b,_0x439d6f-_0x596d10._0x28aca2,_0x3179e7- -0x231,_0x3179e7-_0x596d10._0x81aa5e);}const _0x508b46=new Headers();_0x508b46['set'](_0x5e18ef(_0x4284aa._0x197c6e,0x3cb,_0x4284aa._0x1d936f,0x33d),_0x23fcf1['accept']),_0x508b46[_0x5e18ef(_0x4284aa._0x52323d,_0x4284aa._0x4c63cb,0x423,_0x4284aa._0x5a94de)]('authorization',_0x4237c7(_0x4284aa._0x3b6748,0xd8,0x13f,0x194)+_0xac53a6[_0x5e18ef(_0x4284aa._0x14d791,_0x4284aa._0xb59088,_0x4284aa._0xcf8518,_0x4284aa._0x303c64)][_0x4237c7(0x1f8,_0x4284aa._0x1042ed,_0x4284aa._0xcdf612,_0x4284aa._0x5c11cf)]);function _0x5e18ef(_0x55cef0,_0x164599,_0x463a5a,_0x2ad436){return _0x38c793(_0x2ad436,_0x164599-_0x39feaa._0x1afbe9,_0x463a5a- -0x7d,_0x2ad436-0x8f);}_0x23fcf1[_0x5e18ef(0x46f,_0x4284aa._0x30f730,_0x4284aa._0x5a719a,0x42e)]!==![]&&_0x508b46['set'](_0x4237c7(_0x4284aa._0x5e9ab4,0x159,_0x4284aa._0x4639d5,_0x4284aa._0x5132d0),_0x4237c7(_0x4284aa._0x315378,0x1a1,_0x4284aa._0x66ba7b,0x180));const _0x32c65b=await this['headerResolver']?.({'body':_0xac53a6[_0x5e18ef(_0x4284aa._0x1bcd34,0x2ab,0x2f2,0x2d0)],'credential':_0xac53a6[_0x5e18ef(0x3cb,0x4ee,_0x4284aa._0xcf8518,_0x4284aa._0x2c2dab)],'request':_0xac53a6[_0x5e18ef(_0x4284aa._0x1ed279,_0x4284aa._0x5b7918,_0x4284aa._0x2ee82e,0x40a)],'session':_0xac53a6[_0x4237c7(_0x4284aa._0x5a628f,_0x4284aa._0x18760f,0x24e,0x28b)],'stream':_0xac53a6[_0x5e18ef(0x384,_0x4284aa._0x26f63d,_0x4284aa._0x451431,0x3af)]});for(const [_0x3d3173,_0x454043]of Object['entries'](_0x32c65b??{})){_0x508b46['set'](_0x3d3173,_0x454043);}return _0x508b46;}[_0x38c793(0x3b6,0x42a,0x3b7,0x303)](_0x44c7f2){return _0x44c7f2;}[_0x38c793(0x410,0x3fd,0x4bb,0x473)](_0x2034d6,_0xcfcab8){return resolveSessionBaseUrl(_0x2034d6,_0xcfcab8);}['resolveCredential'](_0x4f838f,_0x206daf){return resolveApiCredential(_0x4f838f,_0x206daf);}async[_0x2b6123(0x325,0x2d4,0x358,0x3f0)](_0x2c759d){return await createOpenAiApiError(_0x2c759d);}};function _0x2b6123(_0x395190,_0x1d019c,_0x26217b,_0x31fc8d){return _0x25f1(_0x26217b-0xe9,_0x395190);}var OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2b6123(0x20f,0x32d,0x2cc,0x238)]=new Map();[_0x2b6123(0x325,0x285,0x2f2,0x23c)];[_0x38c793(0x43f,0x368,0x433,0x37e)];constructor(_0x4b3b40={}){const _0xc8f903={_0x17a8a3:0xdb,_0x17ffaa:0x117,_0x2ea446:0x268,_0x3dc43a:0x224,_0x59f6f4:0x271,_0xc4c8b3:0x204,_0x97b882:0x2b8,_0x314493:0x24c,_0x4ac590:0x138,_0x5dcc22:0x18c,_0x358450:0x239,_0x52694a:0x225,_0x2d265b:0x25f,_0x17d20c:0x2ae,_0x295e56:0x265,_0xeaab70:0x253,_0xc995a4:0x223,_0x306113:0x2ca,_0x55e89f:0x26d,_0x3f31f7:0x176,_0x1cabd2:0x205,_0x2a39e2:0x1af,_0x4da556:0x2ab},_0x2273c2={_0x31f9e8:0xdd,_0x40f152:0x2f},_0x2263f2={_0x5a250c:0x1de,_0x115835:0x493,_0x3a05ec:0xb8};function _0xe7e8b7(_0x1735c5,_0x216bab,_0x3730e0,_0x28ddae){return _0x2b6123(_0x1735c5,_0x216bab-_0x2263f2._0x5a250c,_0x3730e0- -_0x2263f2._0x115835,_0x28ddae-_0x2263f2._0x3a05ec);}const _0xd553de=_0x4b3b40[_0xe7e8b7(-0xe9,-_0xc8f903._0x17a8a3,-_0xc8f903._0x17ffaa,-0x13f)]??'gpt-4o',_0x2d0d14=_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x2ea446,-0x1dc,-_0xc8f903._0x3dc43a,-0x1b0)]??0x4000,_0x341c55=_0x4b3b40[_0xe7e8b7(-0x120,-0x12b,-0x1a1,-0x13a)]??_0x4e535c(0x240,_0xc8f903._0x59f6f4,0x193,_0xc8f903._0xc4c8b3),_0x19ec13=_0x4b3b40['responsesPath']??_0x4e535c(0x287,0x1d5,_0xc8f903._0x97b882,_0xc8f903._0x314493);super({'apiKey':_0x4b3b40[_0xe7e8b7(-_0xc8f903._0x4ac590,-0x1d2,-_0xc8f903._0x5dcc22,-0x13a)],'baseUrl':trimTrailingSlashes(_0x4b3b40['baseUrl']??_0xe7e8b7(-_0xc8f903._0x358450,-0x22b,-_0xc8f903._0x52694a,-0x20b)),'fetch':_0x4b3b40[_0x4e535c(_0xc8f903._0x2d265b,0x316,0x23e,_0xc8f903._0x17d20c)],'maxTokens':_0x2d0d14,'model':_0xd553de,'reasoning':_0x4b3b40[_0x4e535c(0x26b,_0xc8f903._0x295e56,_0xc8f903._0xeaab70,_0xc8f903._0xc995a4)],'providerAdapter':new OpenAiProviderAdapter(_0x4b3b40[_0x4e535c(0x246,0x200,0x2f7,_0xc8f903._0x306113)]),'providerSessionResolver':_0x4b3b40['providerSessionResolver'],'requestMutators':_0x4b3b40['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x4b3b40[_0xe7e8b7(-0x65,-0x159,-0xdf,-0x146)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x341c55,'responsesPath':_0x19ec13}),'webSocketFactory':_0x4b3b40[_0x4e535c(0x2ad,0x216,_0xc8f903._0x55e89f,0x306)]});function _0x4e535c(_0xc6c3e9,_0x417fbd,_0x459e9e,_0x61ebf3){return _0x2b6123(_0x417fbd,_0x417fbd-_0x2273c2._0x31f9e8,_0xc6c3e9- -0xfe,_0x61ebf3-_0x2273c2._0x40f152);}this[_0xe7e8b7(-_0xc8f903._0x3f31f7,-0x24d,-0x1a1,-0x14b)]=_0x341c55,this[_0x4e535c(_0xc8f903._0x1cabd2,_0xc8f903._0x2a39e2,_0xc8f903._0x4da556,0x2a8)]=_0x19ec13;}[_0x38c793(0x57c,0x551,0x4cb,0x567)](_0xb723e0,_0x139b0a){const _0x37399c={_0x611291:0x157,_0x1f98fc:0xf0},_0x291e37={_0x163048:0x4a8};function _0x110691(_0xe3c446,_0x476d03,_0x3403a4,_0x14b5b1){return _0x2b6123(_0x476d03,_0x476d03-0x3,_0xe3c446- -_0x291e37._0x163048,_0x14b5b1-0x1e1);}return this[_0x110691(-_0x37399c._0x611291,-_0x37399c._0x1f98fc,-0x178,-0xff)](_0xb723e0,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x139b0a);}[_0x38c793(0x4a6,0x495,0x46f,0x478)](_0x49aba9,_0xc796d4){const _0x2e3d2e={_0x1659e7:0x35c,_0x550b0f:0x244,_0x46a0ec:0x392},_0x654f69={_0x403279:0x48,_0x596f96:0x1b7,_0x175b1f:0xfc};function _0xada564(_0x5b81fe,_0x4994dd,_0x3aff27,_0x5cbfd6){return _0x38c793(_0x5cbfd6,_0x4994dd-_0x654f69._0x403279,_0x5b81fe- -_0x654f69._0x596f96,_0x5cbfd6-_0x654f69._0x175b1f);}return this[_0xada564(0x2ca,_0x2e3d2e._0x1659e7,_0x2e3d2e._0x550b0f,_0x2e3d2e._0x46a0ec)](_0x49aba9,OPENAI_RESPONSES_SURFACE,_0xc796d4);}['completeViaResponsesWebSocketSurface'](_0x4486de,_0x442d64){return this['completeViaSurface'](_0x4486de,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x442d64);}[_0x2b6123(0x325,0x2ae,0x309,0x39f)](_0x258328,_0x39bcc7){return this['streamViaSurface'](_0x258328,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x39bcc7);}[_0x38c793(0x4ee,0x420,0x432,0x3d5)](_0xa513e3,_0x58ee6c){const _0xf8a483={_0x4f4a66:0x1db,_0x378947:0x149};function _0x487bff(_0x1ed1d4,_0x44cf8f,_0x401638,_0x350be5){return _0x38c793(_0x44cf8f,_0x44cf8f-_0xf8a483._0x4f4a66,_0x350be5- -_0xf8a483._0x378947,_0x350be5-0x1a2);}return this[_0x487bff(0x210,0x2b5,0x19f,0x238)](_0xa513e3,OPENAI_RESPONSES_STREAM_SURFACE,_0x58ee6c);}[_0x2b6123(0x364,0x345,0x398,0x2fb)](_0x24cd44,_0x2abce7){const _0x340a87={_0x48f9cf:0xbc,_0x36daa3:0x119,_0x3c20fd:0xe5},_0x13053f={_0x5c3b0b:0x268};function _0x34567e(_0x556834,_0x2e5226,_0x12e9ce,_0x5a646f){return _0x38c793(_0x2e5226,_0x2e5226-0x134,_0x12e9ce- -_0x13053f._0x5c3b0b,_0x5a646f-0xa6);}return this[_0x34567e(0xdd,_0x340a87._0x48f9cf,_0x340a87._0x36daa3,_0x340a87._0x3c20fd)](_0x24cd44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2abce7);}async[_0x38c793(0x4bf,0x4ea,0x42f,0x44c)](_0x27afcc,_0x2d9d27){const _0x1add38={_0x56f91c:0x8,_0x17b372:0x32},_0x4e0fc3={_0x5648eb:0x70,_0x5b67cf:0x13f};function _0xa32c05(_0x2c62a0,_0x387ad3,_0x43fbb1,_0x28b1d3){return _0x2b6123(_0x2c62a0,_0x387ad3-_0x4e0fc3._0x5648eb,_0x43fbb1- -0x2b9,_0x28b1d3-_0x4e0fc3._0x5b67cf);}try{return await this['completeViaChatCompletionsSurface'](_0x27afcc,_0x2d9d27);}catch(_0x2e1525){if(_0x2e1525 instanceof OpenAiApiError)throw this[_0xa32c05(-0xe7,_0x1add38._0x56f91c,-_0x1add38._0x17b372,0x77)](_0x2e1525);throw _0x2e1525;}}async['response'](_0x146ba1,_0x2b4961){const _0x552d27={_0x5b861b:0x16a,_0x40f28b:0xc2,_0x352f98:0x19e,_0x23d668:0x1fa},_0x1effaf={_0x1ce0e0:0x122},_0x55b4a5={_0x198963:0x4a9,_0x1eef01:0x31};function _0x4005bd(_0x58899f,_0x438e52,_0x3a061d,_0x2526a5){return _0x2b6123(_0x58899f,_0x438e52-0xdc,_0x438e52- -_0x55b4a5._0x198963,_0x2526a5-_0x55b4a5._0x1eef01);}function _0x5017eb(_0x154b91,_0xaf0c41,_0x1ccd62,_0x4e01d6){return _0x38c793(_0x4e01d6,_0xaf0c41-0xb3,_0x154b91- -0x266,_0x4e01d6-_0x1effaf._0x1ce0e0);}try{return await this[_0x4005bd(-0x22c,-_0x552d27._0x5b861b,-_0x552d27._0x40f28b,-0x129)](_0x146ba1,_0x2b4961);}catch(_0x11ee0a){if(_0x11ee0a instanceof OpenAiApiError)throw this[_0x4005bd(-_0x552d27._0x352f98,-0x222,-_0x552d27._0x23d668,-0x2b7)](_0x11ee0a);throw _0x11ee0a;}}async[_0x2b6123(0x29f,0x3eb,0x32c,0x3ea)](_0x2c8891,_0x470f0e){const _0xb1b118={_0x55840a:0x347,_0xb61f2b:0x2f8,_0x3a6da6:0x34f,_0x2d241d:0x33d,_0x5bd141:0x3f9,_0x67aa35:0x430,_0x4d9b2c:0x2f5,_0x317ef8:0x36f,_0x1a43df:0x2c6,_0x54f61b:0x219,_0x260075:0x232,_0x1a3c7e:0x3b9,_0x262d9e:0x25c,_0x28849e:0x36d,_0x5b5c64:0x287},_0xea3dad={_0x4bea7b:0x1a6};function _0x17f3b3(_0x56de9b,_0x5700bb,_0x46cd81,_0x2a06d1){return _0x2b6123(_0x2a06d1,_0x5700bb-_0xea3dad._0x4bea7b,_0x5700bb- -0x12e,_0x2a06d1-0x1c2);}function _0x25d4d7(_0x81adb5,_0x7072c7,_0x1d84a7,_0x3b8088){return _0x38c793(_0x81adb5,_0x7072c7-0x118,_0x1d84a7- -0xb2,_0x3b8088-0x127);}try{let _0x4aef20;for await(const _0x2cb0f5 of this[_0x25d4d7(_0xb1b118._0x55840a,_0xb1b118._0xb61f2b,_0xb1b118._0x3a6da6,0x359)](_0x2c8891,_0x470f0e)){_0x2cb0f5[_0x25d4d7(0x369,0x3a7,_0xb1b118._0x2d241d,_0xb1b118._0x5bd141)]===_0x25d4d7(_0xb1b118._0x67aa35,_0xb1b118._0x4d9b2c,_0xb1b118._0x317ef8,0x2fc)&&(_0x4aef20=_0x2cb0f5[_0x17f3b3(_0xb1b118._0x1a43df,_0xb1b118._0x54f61b,0x2dd,_0xb1b118._0x260075)]);}if(!_0x4aef20)throw new Error(_0x25d4d7(0x37d,0x440,_0xb1b118._0x1a3c7e,0x2ef));return _0x4aef20;}catch(_0x4809b8){if(_0x4809b8 instanceof OpenAiApiError)throw this[_0x25d4d7(_0xb1b118._0x262d9e,_0xb1b118._0x28849e,0x305,_0xb1b118._0x5b5c64)](_0x4809b8);throw _0x4809b8;}}async*[_0x38c793(0x34e,0x4a9,0x40c,0x44c)](_0x3194b8,_0x501c19){const _0xcf3e97={_0x107c3d:0x517,_0xfc39ea:0x5aa},_0x57fcc6={_0x1f62b3:0x100},_0x243149={_0x21c5c3:0xe4,_0x35f296:0x7f};function _0x2f3f9e(_0x568393,_0x12d0d8,_0x25b268,_0x10c55e){return _0x38c793(_0x10c55e,_0x12d0d8-_0x243149._0x21c5c3,_0x25b268-0x9a,_0x10c55e-_0x243149._0x35f296);}function _0x236d0b(_0x2de424,_0x311a8c,_0x23a566,_0x575fdd){return _0x2b6123(_0x2de424,_0x311a8c-_0x57fcc6._0x1f62b3,_0x575fdd-0x2ea,_0x575fdd-0x1f2);}try{yield*this[_0x2f3f9e(0x58f,_0xcf3e97._0x107c3d,0x4d3,0x44c)](_0x3194b8,_0x501c19);}catch(_0x3ff703){if(_0x3ff703 instanceof OpenAiApiError)throw this[_0x236d0b(0x541,_0xcf3e97._0xfc39ea,0x5d9,0x571)](_0x3ff703);throw _0x3ff703;}}async*['responseStream'](_0x13ed08,_0x26353b){const _0x65dc1c={_0x56ece3:0x396,_0x222242:0x3cb,_0x236e87:0x416,_0x1fe26a:0x2f1,_0x45b7b6:0x298,_0x5aad7a:0x350},_0x4de0ec={_0x1087a9:0x123,_0x263e5f:0xc9},_0x52d20a={_0x413517:0x102};function _0x35e6b3(_0x267b98,_0x45034b,_0x6109b4,_0x33d415){return _0x38c793(_0x6109b4,_0x45034b-0x135,_0x45034b- -0x474,_0x33d415-_0x52d20a._0x413517);}function _0xee52d8(_0x2c1e54,_0x4bfa34,_0x46b501,_0x307928){return _0x2b6123(_0x46b501,_0x4bfa34-_0x4de0ec._0x1087a9,_0x307928-_0x4de0ec._0x263e5f,_0x307928-0x191);}try{yield*this[_0xee52d8(0x380,0x3e6,_0x65dc1c._0x56ece3,_0x65dc1c._0x222242)](_0x13ed08,_0x26353b);}catch(_0x55943d){if(_0x55943d instanceof OpenAiApiError)throw this[_0xee52d8(_0x65dc1c._0x236e87,_0x65dc1c._0x1fe26a,_0x65dc1c._0x45b7b6,_0x65dc1c._0x5aad7a)](_0x55943d);throw _0x55943d;}}async*[_0x38c793(0x3d6,0x353,0x401,0x42e)](_0x4ade3e,_0x342aad){const _0x589e59={_0x14fb85:0x108},_0x19a5fe={_0x16e3af:0x10};function _0x4abf6f(_0x4ce74d,_0x337523,_0x941321,_0x18c251){return _0x2b6123(_0x4ce74d,_0x337523-_0x19a5fe._0x16e3af,_0x941321- -0x3ff,_0x18c251-0x12d);}try{yield*this[_0x4abf6f(0x1a,-_0x589e59._0x14fb85,-0x7e,-0x134)](_0x4ade3e,_0x342aad);}catch(_0x5e01d1){if(_0x5e01d1 instanceof OpenAiApiError)throw this['mapApiError'](_0x5e01d1);throw _0x5e01d1;}}[_0x2b6123(0x347,0x2e2,0x315,0x2d4)](_0x550485,_0xb25c68){const _0x18c503={_0x5c5edc:0x11a,_0x1089a4:0x16d,_0x2d593a:0x126},_0x295bb6={_0x33f879:0xad,_0x1415a9:0x419};function _0x2892e6(_0x2667d7,_0x27fde9,_0x210eec,_0x373836){return _0x2b6123(_0x210eec,_0x27fde9-_0x295bb6._0x33f879,_0x27fde9- -_0x295bb6._0x1415a9,_0x373836-0x2a);}return this[_0x2892e6(-0x95,-_0x18c503._0x5c5edc,-_0x18c503._0x1089a4,-_0x18c503._0x2d593a)](_0x550485,_0xb25c68);}['stream'](_0x3ba7e0,_0x4a60a6){return this['chatStream'](_0x3ba7e0,_0x4a60a6);}['getResponsesSocketSessionState'](_0x2bf737){const _0x3251ea={_0x5a444a:0x411,_0x71d8bb:0x454,_0x5e80f1:0x50f,_0x6df0b5:0x456,_0x13a449:0x4c3,_0xfe81a4:0x44,_0x9a39b4:0x1a,_0x4d1a41:0xfb,_0x16b86e:0x506,_0x58ada7:0x598,_0x5e45ac:0xbf},_0x558ac6={_0x51cebd:0xb0,_0x3dcdbe:0x3f8},_0x482925={_0x567cfd:0xc5,_0x18f402:0x1f7,_0x210b23:0xf6},_0x376a33=this[_0x5d1919(_0x3251ea._0x5a444a,0x4fb,0x3ad,_0x3251ea._0x71d8bb)](_0x2bf737);function _0x5d1919(_0x4266e8,_0x3721f9,_0x5a0f16,_0x10fdfd){return _0x2b6123(_0x3721f9,_0x3721f9-_0x482925._0x567cfd,_0x10fdfd-_0x482925._0x18f402,_0x10fdfd-_0x482925._0x210b23);}let _0x1c7803=_OpenAiModel[_0x5d1919(0x46e,_0x3251ea._0x5e80f1,_0x3251ea._0x6df0b5,_0x3251ea._0x13a449)][_0x420d38(0x35,-_0x3251ea._0xfe81a4,-_0x3251ea._0x9a39b4,-_0x3251ea._0x4d1a41)](_0x376a33);!_0x1c7803&&(_0x1c7803={'pending':Promise[_0x5d1919(0x640,_0x3251ea._0x16b86e,0x4f5,_0x3251ea._0x58ada7)]()},_OpenAiModel[_0x420d38(-_0x3251ea._0x5e45ac,0x4,-0xc,-0x23)]['set'](_0x376a33,_0x1c7803));function _0x420d38(_0x29a535,_0x356cda,_0x5dcc40,_0x4fe03c){return _0x38c793(_0x29a535,_0x356cda-_0x558ac6._0x51cebd,_0x356cda- -_0x558ac6._0x3dcdbe,_0x4fe03c-0x30);}return _0x1c7803;}['getResponsesSocketSessionKey'](_0x2d414b){const _0x32f594={_0x467629:0x1d7,_0x56efe9:0x1a6},_0x271ff6={_0x2663b2:0x154,_0x410537:0x1c2},_0x31c64f={_0x74716d:0xfc};function _0x10d889(_0x166df4,_0x357a4a,_0x2ca025,_0x2b2fb3){return _0x2b6123(_0x357a4a,_0x357a4a-0x1df,_0x2ca025- -0x2e9,_0x2b2fb3-_0x31c64f._0x74716d);}function _0x3e97b6(_0x6bdb44,_0x38aba1,_0x597f4e,_0x30a105){return _0x2b6123(_0x30a105,_0x38aba1-_0x271ff6._0x2663b2,_0x38aba1- -_0x271ff6._0x410537,_0x30a105-0x38);}return''+trimTrailingSlashes(this[_0x3e97b6(0x127,_0x32f594._0x467629,0x210,_0x32f594._0x56efe9)])+this[_0x3e97b6(0x198,0x141,0x12b,0x1ca)]+'::'+_0x2d414b;}async[_0x2b6123(0x3e8,0x351,0x337,0x31e)](_0x274863){const _0x3667fc={_0x586f48:0x196,_0x90712c:0xa8,_0x563a46:0x71,_0x3625b4:0x21,_0x42a1d6:0x3c,_0x5b7950:0xd0,_0xc7eba7:0xad,_0x5e1b2c:0x2df,_0x5bed4b:0x28b},_0x197f76={_0x2e72d4:0x2e},_0x5b5515={_0xe49f4e:0x58,_0x386fb5:0x167},_0x19cd03=_0x274863[_0x1f4151(_0x3667fc._0x586f48,0x172,0xd0,0x10e)][_0x1f4151(_0x3667fc._0x90712c,-_0x3667fc._0x563a46,-_0x3667fc._0x3625b4,0x44)](()=>{});let _0x4e681a;function _0x1b33ac(_0x615459,_0x19398b,_0x5b5d03,_0x4c62b3){return _0x2b6123(_0x615459,_0x19398b-0x1a3,_0x5b5d03- -_0x5b5515._0xe49f4e,_0x4c62b3-_0x5b5515._0x386fb5);}function _0x1f4151(_0x355864,_0x3caf2c,_0x3b7b79,_0x3db1fe){return _0x2b6123(_0x3caf2c,_0x3caf2c-_0x197f76._0x2e72d4,_0x3b7b79- -0x2bf,_0x3db1fe-0x1f1);}const _0xff8d20=new Promise(_0x3f8630=>{_0x4e681a=_0x3f8630;});return _0x274863[_0x1f4151(0xfd,_0x3667fc._0x42a1d6,_0x3667fc._0x5b7950,_0x3667fc._0xc7eba7)]=_0x19cd03[_0x1b33ac(_0x3667fc._0x5e1b2c,0x2f7,_0x3667fc._0x5bed4b,0x2e8)](()=>_0xff8d20),await _0x19cd03,()=>{_0x4e681a?.();};}async[_0x2b6123(0x32d,0x234,0x28c,0x248)](_0x2c9084,_0x33402d){const _0x3ed171={_0x42d5ce:0x9b,_0x7c8315:0xfd,_0xea056d:0x1b7,_0x1a9f6c:0x2eb,_0x54903a:0x30d,_0x3be3bb:0x212,_0x192b33:0x185,_0x2faf77:0x104,_0x209b9b:0x117,_0x2dfc47:0x13f,_0xa68bff:0x1f4,_0x4fb14f:0x250,_0x148a7e:0x263,_0x18abaf:0x23d,_0x4b2947:0x23e,_0x1b35a4:0x34,_0x761769:0xf0,_0x3c3f94:0x19e,_0x265317:0x13f,_0x42f715:0x1d9,_0x5cb984:0xd0,_0x502d21:0xd4,_0x318fa7:0x152,_0x33e0c3:0xa6},_0x192ee3={_0x36815f:0x1d2},_0x237bea={_0x27fe17:0x432,_0x433558:0x156},_0x38456e=this[_0x51dbec(-_0x3ed171._0x42d5ce,-_0x3ed171._0x7c8315,-_0x3ed171._0xea056d,-0x16d)](_0x2c9084);function _0x51dbec(_0xcf8b0f,_0x49e083,_0x4e2490,_0x120081){return _0x2b6123(_0x4e2490,_0x49e083-0x1b0,_0x49e083- -_0x237bea._0x27fe17,_0x120081-_0x237bea._0x433558);}const _0x18cb16=toModelRequest(_0x38456e),_0x4d4cf6=await prepareProviderRequest(_0x18cb16,{'sessionManager':this[_0x226b10(0x37c,0x327,0x2a9,_0x3ed171._0x1a9f6c)],'requestMutators':this[_0x226b10(_0x3ed171._0x54903a,_0x3ed171._0x3be3bb,0x199,0x24d)],'signal':_0x33402d}),_0x11b805=toChatRequest(_0x4d4cf6[_0x51dbec(-0xdb,-_0x3ed171._0x192b33,-_0x3ed171._0x2faf77,-_0x3ed171._0x209b9b)]),_0x270163=this[_0x51dbec(-_0x3ed171._0x2dfc47,-_0x3ed171._0xa68bff,-0x15f,-0x1ff)]['resolveCredential'](this[_0x226b10(_0x3ed171._0x4fb14f,_0x3ed171._0x148a7e,_0x3ed171._0x18abaf,_0x3ed171._0x4b2947)],_0x4d4cf6[_0x51dbec(-0xcd,-0xa6,-_0x3ed171._0x1b35a4,-_0x3ed171._0x761769)]);if(!_0x270163)throw this['createMissingCredentialError']();function _0x226b10(_0x36f4bf,_0x3c2157,_0x25ea36,_0x142893){return _0x2b6123(_0x36f4bf,_0x3c2157-_0x192ee3._0x36815f,_0x142893- -0xc9,_0x142893-0x9);}return{'baseUrl':this[_0x51dbec(-_0x3ed171._0x3c3f94,-0x1f4,-_0x3ed171._0x265317,-_0x3ed171._0x42f715)][_0x226b10(0x213,0x366,0x2ed,0x2c2)](this['baseUrl'],_0x4d4cf6[_0x51dbec(-_0x3ed171._0x5cb984,-0xa6,-0x54,-_0x3ed171._0x502d21)]),'credential':_0x270163,'request':_0x11b805,'session':_0x4d4cf6[_0x51dbec(-_0x3ed171._0x318fa7,-_0x3ed171._0x33e0c3,-0x37,-0xa0)]};}['buildResponsesSocketEvent'](_0x17a737,_0xe88407,_0x2fa0f6={}){const _0x4f6ab3={_0x916cc2:0x1d6,_0x1bfd2b:0x13e,_0x5eb868:0xf3,_0x5e15c2:0xc6,_0xe80708:0x10e,_0x3dcf2a:0x98,_0xab362d:0xa9,_0x585e1a:0x51,_0x10b5ca:0x589,_0x781224:0x4f8},_0x67d597={_0x1837d7:0x48},_0x1ed7df={_0xae459a:0x115,_0xb82045:0x17e};function _0x5245b1(_0x48b0dd,_0x2865f1,_0x5a35f8,_0x1a7746){return _0x38c793(_0x5a35f8,_0x2865f1-_0x1ed7df._0xae459a,_0x2865f1-0x18c,_0x1a7746-_0x1ed7df._0xb82045);}function _0x34c736(_0x2443e9,_0x539070,_0x156f29,_0x112a41){return _0x2b6123(_0x2443e9,_0x539070-_0x67d597._0x1837d7,_0x156f29- -0x207,_0x112a41-0x40);}if(!_0x2fa0f6[_0x34c736(0x1cc,_0x4f6ab3._0x916cc2,0x12c,0x104)]){const _0x899aef=this['findResponsesSocketCheckpoint'](_0x17a737);if(_0x899aef&&_0xe88407[_0x34c736(0xe1,0xc9,_0x4f6ab3._0x1bfd2b,0xd2)]&&_0x899aef[_0x34c736(_0x4f6ab3._0x5eb868,0xb0,_0x4f6ab3._0x5e15c2,0x47)]===_0xe88407[_0x34c736(_0x4f6ab3._0xe80708,_0x4f6ab3._0x3dcf2a,_0x4f6ab3._0x1bfd2b,0xc9)]){const _0x4c9bd9=toOpenAiResponsesRequest({..._0x17a737,'messages':_0x17a737['messages']['slice'](_0x899aef[_0x34c736(0x1e,-0x8,_0x4f6ab3._0xab362d,_0x4f6ab3._0x585e1a)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737,{'input':_0x4c9bd9,'previousResponseId':_0x899aef[_0x5245b1(0x5eb,_0x4f6ab3._0x10b5ca,0x502,_0x4f6ab3._0x781224)]}),'previousResponseId':_0x899aef['responseId']};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x17a737)};}['findResponsesSocketCheckpoint'](_0x2d2408){const _0x155e4a={_0x48c7d8:0x579,_0x417c40:0x50d,_0x1406d2:0x179,_0xd1d598:0x1d,_0x4ae022:0xb7,_0x5329c2:0x12e,_0x21787f:0x60a,_0x2a322d:0x6a8,_0x4cbd39:0x648,_0xeeacf1:0x108,_0x4fc7df:0x12,_0x42d6b8:0x66},_0x581ecc={_0x3975a6:0xfd,_0x3c09dc:0x1e8},_0x58420b={_0x176421:0x196,_0x4679a6:0x2da,_0x5c49ea:0x1dd};function _0x4d3f1f(_0xc0cb94,_0xe4a832,_0x1861ad,_0x37cab5){return _0x2b6123(_0xe4a832,_0xe4a832-_0x58420b._0x176421,_0x1861ad-_0x58420b._0x4679a6,_0x37cab5-_0x58420b._0x5c49ea);}for(let _0x31c155=_0x2d2408[_0x4d3f1f(0x5a3,0x58e,_0x155e4a._0x48c7d8,_0x155e4a._0x417c40)][_0x2b163f(0x110,0xb3,_0x155e4a._0x1406d2,0x157)]-0x1;_0x31c155>=0x0;_0x31c155-=0x1){const _0x5035d2=_0x2d2408[_0x2b163f(_0x155e4a._0xd1d598,_0x155e4a._0x4ae022,_0x155e4a._0x5329c2,0xf6)][_0x31c155],_0x11f471=_0x5035d2[_0x4d3f1f(0x640,_0x155e4a._0x21787f,0x5f5,0x581)]===_0x4d3f1f(_0x155e4a._0x2a322d,0x623,_0x155e4a._0x4cbd39,0x6b1)?_0x5035d2[_0x4d3f1f(0x621,0x6cc,0x67a,0x6a6)]?.[_0x2b163f(_0x155e4a._0xeeacf1,0x7a,_0x155e4a._0x4fc7df,_0x155e4a._0x42d6b8)]:void 0x0;if(_0x11f471)return{'messageIndex':_0x31c155,'responseId':_0x11f471};}function _0x2b163f(_0x343dc7,_0x4c65f1,_0x17f92a,_0x319976){return _0x2b6123(_0x319976,_0x4c65f1-_0x581ecc._0x3975a6,_0x4c65f1- -_0x581ecc._0x3c09dc,_0x319976-0x67);}return void 0x0;}[_0x2b6123(0x30b,0x306,0x25e,0x1ee)](_0x743ffc){const _0x360730={_0x3de556:0x43e,_0x135adb:0x458,_0x5c5598:0x4bb,_0x4b0f24:0x40b,_0x292c36:0x415,_0x4c8e3d:0x379,_0x51898c:0x41a,_0x1f9d33:0x4dc,_0x4ed48d:0x458},_0xead5d7={_0x42e203:0xc3,_0x19ecf1:0xb7},_0x512958={_0x182f44:0xb0};function _0x2a493e(_0x5258ae,_0x30f73b,_0x584804,_0xb4fbd1){return _0x38c793(_0x584804,_0x30f73b-0x3d,_0x5258ae- -_0x512958._0x182f44,_0xb4fbd1-0x11c);}function _0x4fa5d7(_0x4b8be4,_0x1dfede,_0x3cec30,_0x30dd43){return _0x38c793(_0x1dfede,_0x1dfede-0xed,_0x30dd43- -_0xead5d7._0x42e203,_0x30dd43-_0xead5d7._0x19ecf1);}return _0x743ffc instanceof OpenAiResponsesStreamError&&(_0x743ffc[_0x2a493e(_0x360730._0x3de556,_0x360730._0x135adb,_0x360730._0x5c5598,0x441)]===_0x4fa5d7(_0x360730._0x4b0f24,_0x360730._0x292c36,0x3f7,_0x360730._0x4c8e3d)||_0x743ffc['code']===_0x2a493e(_0x360730._0x51898c,0x46b,_0x360730._0x1f9d33,_0x360730._0x4ed48d));}[_0x2b6123(0x3b7,0x2e2,0x339,0x2d9)](_0x228260){const _0x3e9a2c={_0x57555d:0x396,_0x5095e5:0x374,_0x2b1ce8:0x395,_0x1bf09a:0x392,_0x44c387:0x143,_0x29c009:0x18e,_0x1a74a6:0x65,_0x1e736f:0x135,_0x44f3c6:0x8b,_0x276008:0x4c5,_0x554683:0x54f,_0x5562c6:0x3b8,_0x3d9617:0x335,_0x519a1b:0x3ed},_0x5cd15f=_0x228260[_0x1d6758(0x11f,0x71,0x58,0x1d)];_0x228260[_0x15aa62(0x439,0x38a,_0x3e9a2c._0x57555d,_0x3e9a2c._0x5095e5)]=void 0x0,_0x228260[_0x15aa62(_0x3e9a2c._0x2b1ce8,0x3f3,0x360,_0x3e9a2c._0x1bf09a)]=void 0x0,_0x228260[_0x1d6758(0x1d6,_0x3e9a2c._0x44c387,0x17a,_0x3e9a2c._0x29c009)]=void 0x0;function _0x15aa62(_0x22dee8,_0x130b2d,_0x5e005f,_0xfdecf6){return _0x38c793(_0x130b2d,_0x130b2d-0x20,_0xfdecf6- -0x2f,_0xfdecf6-0x15f);}function _0x1d6758(_0x5a7894,_0x5c90a4,_0x8789ca,_0x344f13){return _0x38c793(_0x8789ca,_0x5c90a4-0x143,_0x5c90a4- -0x332,_0x344f13-0xba);}_0x5cd15f?.[_0x1d6758(_0x3e9a2c._0x1a74a6,0xb2,_0x3e9a2c._0x1e736f,_0x3e9a2c._0x44f3c6)]===WebSocket[_0x15aa62(_0x3e9a2c._0x276008,0x405,_0x3e9a2c._0x554683,0x48b)]&&_0x5cd15f[_0x15aa62(_0x3e9a2c._0x5562c6,_0x3e9a2c._0x3d9617,_0x3e9a2c._0x519a1b,0x3d6)](0x3e8,'reset');}async[_0x2b6123(0x334,0x2e0,0x394,0x3f3)](_0x355c22,_0x2a626a,_0x300f4a,_0x164712,_0xd182d1){const _0x2453c6={_0x22aeea:0x116,_0x3f76f2:0xec,_0x5b156f:0xcc,_0x5d823e:0x33,_0x2e8dca:0x60,_0x1756d1:0x15,_0x3d4556:0x92,_0x5034bd:0x1c5,_0x2903b9:0x16b,_0x5012d3:0x1e5,_0x1d9b26:0x78,_0x116b47:0x11,_0x5abda2:0xc3,_0x40a723:0x114,_0x6172b3:0x288},_0x27ffb3={_0x3df91c:0x1a5,_0x3b38c1:0x107,_0x1a606b:0x110,_0x5c7902:0x1e,_0x212de6:0x4a,_0x2e3fb6:0x207,_0x3ef11e:0x2c4,_0x4e74b8:0x3e,_0x1ea86c:0x40,_0xdc62a1:0x19,_0x48999a:0xc7,_0x31647f:0xbd,_0x5f5b97:0x101,_0x527068:0x64,_0x2adaa1:0x36e,_0x42c4dd:0x2af,_0x2dc7c6:0x1eb,_0xd09ef5:0x1cd,_0x17fd8f:0x36,_0x5b7749:0x4f,_0x3a54ed:0x276,_0x469223:0x215,_0x1c7f30:0x1b5,_0x17b645:0x1fd,_0x535f4a:0x22c,_0x3466e5:0x2ca,_0x3b110c:0x260,_0x283b0c:0x393,_0x5369a0:0x29,_0x8ee6c8:0x233,_0x4dfe1b:0x5c},_0xb703dc={_0x151b8a:0x1ed,_0x1eb0da:0x31},_0x5b3746={_0x4e6a01:0x1c5,_0x471dbf:0x206,_0xe36390:0x1f0,_0x2ae086:0x1dd},_0x5679fa={_0x5e5567:0x456,_0x4f3b62:0x11},_0x62c2b={_0x20fe68:0x47,_0x1b0d64:0x6f};function _0x2be7d6(_0x202bbe,_0x5a6123,_0x56fd63,_0x189fc6){return _0x2b6123(_0x189fc6,_0x5a6123-_0x62c2b._0x20fe68,_0x56fd63- -0x280,_0x189fc6-_0x62c2b._0x1b0d64);}if(_0x2a626a['socket']?.[_0x2f1ca8(-0x107,-0x1cb,-0x1a2,-_0x2453c6._0x22aeea)]===WebSocket[_0x2f1ca8(-_0x2453c6._0x3f76f2,-0x9c,-_0x2453c6._0x5b156f,-_0x2453c6._0x5d823e)])return _0x2a626a[_0x2be7d6(-_0x2453c6._0x2e8dca,0x2,-0xd,-_0x2453c6._0x1756d1)];if(_0x2a626a[_0x2be7d6(-0xb2,_0x2453c6._0x3d4556,0x11,0x12)])return await _0x2a626a[_0x2f1ca8(-0x1f7,-0x145,-_0x2453c6._0x5034bd,-0x1dc)];function _0x2f1ca8(_0x3d28d9,_0x47bac8,_0x5d12db,_0x2e7e97){return _0x2b6123(_0x3d28d9,_0x47bac8-0x1d4,_0x5d12db- -_0x5679fa._0x5e5567,_0x2e7e97-_0x5679fa._0x4f3b62);}_0x2a626a[_0x2f1ca8(-_0x2453c6._0x2903b9,-0x1b5,-0x1c5,-_0x2453c6._0x5012d3)]=((async()=>{const _0x2f3fc3={_0x4329f6:0x378,_0x2c73c9:0x13c},_0x6410f4={_0x5ba6b1:0x125,_0x1cc35f:0x1ae,_0x1be542:0x1c0},_0x29f6f0=await this[_0x240efe(0x248,_0x27ffb3._0x3df91c,0x235,0x26a)]({'request':_0x300f4a[_0x39371e(-_0x27ffb3._0x3b38c1,-_0x27ffb3._0x1a606b,_0x27ffb3._0x5c7902,-_0x27ffb3._0x212de6)],'body':_0x164712,'credential':_0x300f4a[_0x240efe(_0x27ffb3._0x2e3fb6,_0x27ffb3._0x3ef11e,0x384,0x23e)],'session':_0x300f4a['session'],'stream':!![]},{'accept':'application/json','includeContentType':![]});_0x29f6f0[_0x39371e(-0xa,-_0x27ffb3._0x4e74b8,_0x27ffb3._0x1ea86c,_0x27ffb3._0xdc62a1)](_0x39371e(-0x38,_0x27ffb3._0x48999a,_0x27ffb3._0x31647f,0x29));const _0x6137de=this['webSocketFactory']({'headers':Object[_0x39371e(0x18,_0x27ffb3._0x5f5b97,0xfb,_0x27ffb3._0x527068)](_0x29f6f0['entries']()),'url':(''+_0x300f4a[_0x240efe(0x36e,0x2d9,0x277,_0x27ffb3._0x2adaa1)]+this['responsesPath'])['replace'](/^http:/,'ws:')[_0x240efe(_0x27ffb3._0x42c4dd,0x270,_0x27ffb3._0x2dc7c6,_0x27ffb3._0xd09ef5)](/^https:/,'wss:')});function _0x240efe(_0x5f1de0,_0x1e8b52,_0x1058e6,_0x4ca565){return _0x2be7d6(_0x5f1de0-_0x6410f4._0x5ba6b1,_0x1e8b52-_0x6410f4._0x1cc35f,_0x1e8b52-_0x6410f4._0x1be542,_0x4ca565);}const _0x37e1ca=()=>{const _0x16dc02={_0x1284fd:0xd7};function _0x3ff33c(_0x4dd804,_0x285df2,_0x2388d6,_0x4cb91d){return _0x39371e(_0x2388d6,_0x285df2-_0x16dc02._0x1284fd,_0x2388d6-0x105,_0x4cb91d-0x8c);}function _0x3a2e35(_0x537e5b,_0x5d81b6,_0x32b1de,_0x34d9da){return _0x240efe(_0x537e5b-0x147,_0x5d81b6- -_0x2f3fc3._0x4329f6,_0x32b1de-_0x2f3fc3._0x2c73c9,_0x32b1de);}_0x2a626a[_0x3a2e35(-0x230,-_0x5b3746._0x4e6a01,-_0x5b3746._0x471dbf,-0x19b)]===_0x6137de&&(_0x2a626a[_0x3a2e35(-_0x5b3746._0xe36390,-_0x5b3746._0x4e6a01,-0x1ec,-_0x5b3746._0x2ae086)]=void 0x0,_0x2a626a['lastResponseId']=void 0x0);};_0x6137de[_0x39371e(0x3c,_0x27ffb3._0x17fd8f,-0x8,-_0x27ffb3._0x5b7749)](_0x240efe(_0x27ffb3._0x3a54ed,_0x27ffb3._0x469223,_0x27ffb3._0x1c7f30,_0x27ffb3._0x17b645),_0x37e1ca);function _0x39371e(_0x51b182,_0x499816,_0x5296c0,_0x687a28){return _0x2be7d6(_0x51b182-_0xb703dc._0x151b8a,_0x499816-_0xb703dc._0x1eb0da,_0x687a28- -0x77,_0x51b182);}try{return throwIfAborted(_0xd182d1),_0x6137de['readyState']!==WebSocket[_0x240efe(_0x27ffb3._0x535f4a,_0x27ffb3._0x3466e5,_0x27ffb3._0x3b110c,_0x27ffb3._0x283b0c)]&&await waitForWebSocketOpen(_0x6137de,_0xd182d1),throwIfAborted(_0xd182d1),_0x2a626a[_0x39371e(0x47,-0x117,_0x27ffb3._0x5369a0,-0x84)]=_0x6137de,_0x6137de;}catch(_0x2bac16){_0x37e1ca();_0x6137de[_0x240efe(0x224,0x1f4,0x273,0x155)]===WebSocket[_0x240efe(_0x27ffb3._0x8ee6c8,0x2ca,0x312,0x292)]&&_0x6137de['close'](0x3e8,_0x39371e(-0x8c,0x18,_0x27ffb3._0x4dfe1b,0x38));throw _0x2bac16;}})());try{return await _0x2a626a[_0x2be7d6(0x3e,_0x2453c6._0x1d9b26,_0x2453c6._0x116b47,_0x2453c6._0x5abda2)];}finally{_0x2a626a[_0x2f1ca8(-_0x2453c6._0x40a723,-_0x2453c6._0x6172b3,-0x1c5,-0x256)]=void 0x0;}}async*[_0x2b6123(0x329,0x348,0x381,0x2fe)](_0x4e6134,_0x45fd0d){const _0xffe19d={_0x581014:0x113,_0x4a2689:0x2e,_0x2a98b0:0xa,_0x58a764:0x2d,_0x2da71d:0x42,_0x489d91:0x45,_0x46e6f7:0xc9,_0x2e27c1:0x202,_0x482e63:0x274,_0x128b31:0x3bc,_0x1f3907:0x2e,_0x30c48e:0x4,_0x3f6649:0x2c6,_0xde146:0x14c,_0x5a7c39:0x7b,_0x5de4f5:0x311,_0x1bec1f:0x274,_0x512c7b:0x1ad,_0x5daa0e:0x2ee,_0xcf0af6:0x262,_0x1f900e:0x273,_0x4f65aa:0x2e6,_0x17ab6b:0x36b,_0x3c7558:0x34e,_0x3aa07a:0x37d,_0x37bb46:0x392,_0xfaca53:0x81,_0x1a1863:0xd8,_0x53a2f2:0x323,_0x122df5:0x103,_0x3d28f5:0x129,_0x49793a:0x21,_0x4b1296:0x10,_0xa9db21:0x56},_0xb670d6={_0x3d23c5:0x5,_0x455d8a:0x15e},_0x55ee9a={_0xe6190c:0x10d,_0x40d546:0x2b8};function _0x265ec1(_0x3fc16e,_0x3d9913,_0x170980,_0x3c74b){return _0x2b6123(_0x170980,_0x3d9913-_0x55ee9a._0xe6190c,_0x3fc16e- -_0x55ee9a._0x40d546,_0x3c74b-0x16b);}const _0x1d8b0a=this[_0x265ec1(0x7d,_0xffe19d._0x581014,0x78,-_0xffe19d._0x4a2689)](_0x4e6134);function _0x310c5a(_0x1057bc,_0x3d9c29,_0x224eba,_0x115fd6){return _0x2b6123(_0x224eba,_0x3d9c29-_0xb670d6._0x3d23c5,_0x3d9c29-0x15,_0x115fd6-_0xb670d6._0x455d8a);}const _0x1d3924=this[_0x265ec1(-_0xffe19d._0x2a98b0,0x66,_0xffe19d._0x58a764,-_0xffe19d._0x2da71d)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0x489d91,0xde,_0xffe19d._0x46e6f7)][_0x310c5a(_0xffe19d._0x2e27c1,_0xffe19d._0x482e63,0x330,0x1c5)]),_0x4f3766=await this[_0x310c5a(0x39b,0x34c,0x301,_0xffe19d._0x128b31)](_0x1d3924);try{const _0x4292e7=this[_0x265ec1(-_0xffe19d._0x1f3907,-0x78,0x4f,_0xffe19d._0x30c48e)](_0x1d8b0a,_0x1d3924);try{yield*this[_0x310c5a(0x264,0x323,0x30a,_0xffe19d._0x3f6649)](_0x1d8b0a[_0x265ec1(0x103,_0xffe19d._0xde146,0x181,_0xffe19d._0x5a7c39)][_0x310c5a(_0xffe19d._0x5de4f5,_0xffe19d._0x1bec1f,_0xffe19d._0x512c7b,0x298)],_0x1d3924,_0x1d8b0a,_0x4292e7['event'],_0x45fd0d?.[_0x310c5a(0x329,_0xffe19d._0x5daa0e,0x35d,_0xffe19d._0xcf0af6)]);return;}catch(_0x8b6663){if(!_0x4292e7['previousResponseId']||!this[_0x310c5a(0x30f,_0xffe19d._0x1f900e,_0xffe19d._0x4f65aa,0x2cc)](_0x8b6663)){this[_0x310c5a(_0xffe19d._0x17ab6b,_0xffe19d._0x3c7558,_0xffe19d._0x3aa07a,_0xffe19d._0x37bb46)](_0x1d3924);throw _0x8b6663;}}this[_0x265ec1(_0xffe19d._0xfaca53,0x71,_0xffe19d._0x1a1863,0x10f)](_0x1d3924);const _0x2f5a47=this[_0x265ec1(-0x2e,0x3,0x90,-0x61)](_0x1d8b0a,_0x1d3924,{'forceFullReplay':!![]});yield*this[_0x310c5a(0x2c1,_0xffe19d._0x53a2f2,0x3a3,0x2ea)](_0x1d8b0a[_0x265ec1(_0xffe19d._0x122df5,_0xffe19d._0x3d28f5,0x105,0x12f)]['sessionId'],_0x1d3924,_0x1d8b0a,_0x2f5a47['event'],_0x45fd0d?.[_0x265ec1(_0xffe19d._0x49793a,-_0xffe19d._0x4b1296,-0x60,-_0xffe19d._0xa9db21)]);}finally{_0x4f3766();}}async*['streamViaResponsesSocketAttempt'](_0x4cdd30,_0x128bd2,_0x207285,_0x477492,_0x10aa69){const _0x4f6f34={_0x27cfcc:0x63,_0x2cae42:0x351,_0xc246e4:0x3c3,_0x2c558c:0x85,_0x5c6a3b:0x31,_0x3f5617:0x1c0,_0x55fa79:0x1c6,_0x315c87:0x1ea,_0x3ff53f:0x16a,_0x1a3340:0x24b,_0x22b55b:0x21b,_0x4752ab:0x2ac,_0x504166:0x15e,_0x2fc71d:0x6d,_0x54d817:0xd3,_0x37906f:0x15b,_0x2ee9c8:0x40,_0x36f8b5:0x43,_0x57a673:0x3f,_0x14d0a0:0x46,_0x2f68a1:0x4c,_0x486dbb:0x16c,_0x1a752b:0x12e,_0x79e0aa:0x15,_0x141d8f:0x1c,_0x4272b2:0x2ae,_0x5bfa7b:0x318},_0xc27a93={_0x2b1c88:0x5b},_0x5e0581={_0x3fa491:0x1cb,_0x20ae88:0x361},_0x305327=await this[_0x31f7b2(-0x3c,-0x192,-0xd5,-_0x4f6f34._0x27cfcc)](_0x207285,_0x10aa69),_0x23d12c=await this[_0x29acd4(0x2da,_0x4f6f34._0x2cae42,0x35e,_0x4f6f34._0xc246e4)](_0x4cdd30,_0x128bd2,_0x305327,_0x477492,_0x10aa69);function _0x31f7b2(_0x3f6657,_0x4107b9,_0xcd1f22,_0x36fe8d){return _0x2b6123(_0x36fe8d,_0x4107b9-_0x5e0581._0x3fa491,_0xcd1f22- -_0x5e0581._0x20ae88,_0x36fe8d-0xdb);}const _0xe43159=createOpenAiResponsesStreamParser(_0x207285);throwIfAborted(_0x10aa69),_0x23d12c[_0x31f7b2(-_0x4f6f34._0x2c558c,-_0x4f6f34._0x5c6a3b,-0xb5,-0xc8)](JSON[_0x29acd4(0x1b1,0x1fa,0x254,_0x4f6f34._0x3f5617)](_0x477492));for await(const _0x420e4f of iterateWebSocketMessages(_0x23d12c,_0x10aa69)){const _0x2a0d57=_0xe43159[_0x29acd4(_0x4f6f34._0x55fa79,_0x4f6f34._0x315c87,0x1b7,_0x4f6f34._0x3ff53f)]?.(_0x420e4f)??[];yield*_0x2a0d57;if(_0xe43159[_0x29acd4(0x2b2,_0x4f6f34._0x1a3340,_0x4f6f34._0x22b55b,_0x4f6f34._0x4752ab)]?.())break;}if(!_0xe43159[_0x31f7b2(-_0x4f6f34._0x504166,-_0x4f6f34._0x2fc71d,-_0x4f6f34._0x54d817,-_0x4f6f34._0x37906f)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x712e65=_0xe43159[_0x31f7b2(_0x4f6f34._0x2ee9c8,0x2b,0x2d,-0x40)](),_0x1755eb=_0x712e65[_0x31f7b2(0x2e,-_0x4f6f34._0x36f8b5,_0x4f6f34._0x57a673,-_0x4f6f34._0x14d0a0)]?.[_0x31f7b2(-_0x4f6f34._0x2f68a1,-_0x4f6f34._0x486dbb,-0xff,-_0x4f6f34._0x1a752b)]??_0x712e65['id'];_0x1755eb&&(_0x128bd2[_0x31f7b2(-0x57,-_0x4f6f34._0x79e0aa,-_0x4f6f34._0x141d8f,-0x3e)]=_0x1755eb);function _0x29acd4(_0x122a79,_0x115857,_0x53c0d8,_0x33d003){return _0x2b6123(_0x53c0d8,_0x115857-0xbe,_0x115857- -0x43,_0x33d003-_0xc27a93._0x2b1c88);}yield{'type':_0x29acd4(0x23d,_0x4f6f34._0x4272b2,_0x4f6f34._0x5bfa7b,0x35c),'response':_0x712e65};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x38c793(0x3fc,0x38e,0x3e7,0x3c8),'openai-chat-completions','openai-responses',_0x38c793(0x3eb,0x421,0x430,0x394)];function isAnthropicSurface(_0x5a0634){const _0x1576ba={_0x52289a:0x1c8,_0x348327:0x1aa},_0x21459e={_0x15b401:0x100,_0x3c9f0d:0x2c0};function _0x31582e(_0x14c060,_0x273ad4,_0x16fd98,_0x125862){return _0x38c793(_0x273ad4,_0x273ad4-_0x21459e._0x15b401,_0x14c060- -_0x21459e._0x3c9f0d,_0x125862-0x1e4);}return _0x5a0634===_0x31582e(0x127,_0x1576ba._0x52289a,0x1ca,_0x1576ba._0x348327);}function resolveDefaultBaseUrl(_0x1eec09){const _0x1dadf0={_0x95c94a:0x290,_0x95a7d1:0x257},_0x2d207b={_0x2205d2:0x144},_0x129ff0={_0xcefaf7:0x1a0,_0x44cd7a:0x4af,_0x43283c:0x18c};function _0x1002c8(_0x1bde65,_0x1f3cd0,_0x2368f4,_0x12ab64){return _0x38c793(_0x2368f4,_0x1f3cd0-_0x129ff0._0xcefaf7,_0x1f3cd0- -_0x129ff0._0x44cd7a,_0x12ab64-_0x129ff0._0x43283c);}function _0x22e403(_0x18914d,_0x40824b,_0x3cafef,_0x5aae88){return _0x38c793(_0x5aae88,_0x40824b-0xcd,_0x18914d- -_0x2d207b._0x2205d2,_0x5aae88-0x138);}return isAnthropicSurface(_0x1eec09)?_0x22e403(0x244,0x194,0x1ab,_0x1dadf0._0x95c94a):_0x22e403(0x25a,0x211,0x2c0,_0x1dadf0._0x95a7d1);}var ChatModel=class{[_0x38c793(0x515,0x52d,0x4ac,0x3e3)];[_0x38c793(0x34d,0x3ab,0x39f,0x3b6)];[_0x2b6123(0x1ce,0x20d,0x23c,0x1fc)];['anthropicDelegate'];[_0x2b6123(0x330,0x442,0x3b0,0x36f)];constructor(_0x30b71a={}){const _0x1b46d2={_0x5396ce:0x252,_0xf27461:0x2b9,_0x1d8281:0x29c,_0x5342c2:0xe1,_0x233aae:0xbd,_0x235d87:0x156,_0x1715f7:0x59a,_0x515fdc:0x4fe,_0xeac540:0x4fc,_0x3f1693:0x470,_0x47d2f7:0x53c,_0x1e2f21:0x5c4,_0x5ea4ce:0x1cf,_0x5d5c9a:0x211,_0x542232:0x4bd,_0xaccd80:0x4da,_0x57198d:0x1a5,_0x36154d:0x28e,_0x488ce5:0x263,_0xa4d346:0x1e4,_0x3d6f88:0x225,_0x10b082:0x65f,_0x28ed21:0x5c7,_0x17995f:0x5c5,_0x3a46c0:0x646,_0x41f71e:0x60f,_0x240a2c:0x1a1,_0x2985e5:0x91,_0x46035d:0x6ca,_0x3b8319:0x67d,_0x5464b6:0x63c,_0x5c830f:0xb4,_0x18daf7:0x137,_0x47863e:0x5bc,_0x5d39db:0x56e,_0x1aad3b:0x5d6,_0x211e71:0x696,_0x20140f:0x2c5,_0x5b4067:0x248},_0x477f29={_0x209338:0x6,_0xa1eaa3:0x249},_0x3c5c6e={_0x534ea5:0x64,_0x5298c1:0x2c0};this['model']=_0x30b71a[_0x2c9f34(0x2a8,0x1f3,_0x1b46d2._0x5396ce,0x263)]??_0x2c9f34(_0x1b46d2._0xf27461,_0x1b46d2._0x1d8281,0x26b,0x279),this[_0x2c9f34(_0x1b46d2._0x5342c2,0x1a6,_0x1b46d2._0x233aae,_0x1b46d2._0x235d87)]=_0x30b71a[_0x45c0a3(0x4e7,0x51c,0x52f,0x526)]??0x4000;function _0x45c0a3(_0x3d66b9,_0x136af4,_0x27c63f,_0xf2d7ad){return _0x2b6123(_0x136af4,_0x136af4-_0x3c5c6e._0x534ea5,_0x27c63f-_0x3c5c6e._0x5298c1,_0xf2d7ad-0x153);}this[_0x45c0a3(_0x1b46d2._0x1715f7,0x436,0x4fc,0x451)]=_0x30b71a[_0x45c0a3(0x4a5,_0x1b46d2._0x515fdc,_0x1b46d2._0xeac540,_0x1b46d2._0x3f1693)]??_0x45c0a3(_0x1b46d2._0x47d2f7,_0x1b46d2._0x1e2f21,0x504,0x51b);const _0x32cd69=trimTrailingSlashes(_0x30b71a[_0x2c9f34(_0x1b46d2._0x5ea4ce,_0x1b46d2._0x5d5c9a,0x1fa,0x280)]??resolveDefaultBaseUrl(this[_0x45c0a3(_0x1b46d2._0x542232,_0x1b46d2._0xaccd80,0x4fc,0x498)]));if(isAnthropicSurface(this['surface'])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x30b71a['apiKey'],'authScheme':_0x30b71a['authScheme'],'baseUrl':_0x32cd69,'fetch':_0x30b71a[_0x2c9f34(_0x1b46d2._0x57198d,_0x1b46d2._0x36154d,0x288,0x244)],'maxTokens':this['maxTokens'],'model':this[_0x2c9f34(0x1ed,0x31f,0x19c,_0x1b46d2._0x488ce5)],'reasoning':_0x30b71a[_0x2c9f34(0x30b,_0x1b46d2._0xa4d346,_0x1b46d2._0x3d6f88,0x250)],'providerSessionResolver':_0x30b71a['providerSessionResolver'],'requestMutators':_0x30b71a['requestMutators']});return;}function _0x2c9f34(_0x4f2483,_0x4ca95d,_0x1e2d84,_0x34615b){return _0x38c793(_0x4ca95d,_0x4ca95d-_0x477f29._0x209338,_0x34615b- -_0x477f29._0xa1eaa3,_0x34615b-0x74);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x30b71a[_0x45c0a3(_0x1b46d2._0x10b082,0x60f,_0x1b46d2._0x28ed21,0x52c)],'baseUrl':_0x32cd69,'fetch':_0x30b71a['fetch'],'headerResolver':_0x30b71a[_0x45c0a3(_0x1b46d2._0x17995f,_0x1b46d2._0x3a46c0,0x604,_0x1b46d2._0x41f71e)],'maxTokens':this[_0x2c9f34(_0x1b46d2._0x240a2c,_0x1b46d2._0x2985e5,0x1a9,0x156)],'model':this[_0x45c0a3(_0x1b46d2._0x46035d,_0x1b46d2._0x3b8319,_0x1b46d2._0x5464b6,0x574)],'reasoning':_0x30b71a['reasoning'],'providerSessionResolver':_0x30b71a[_0x2c9f34(_0x1b46d2._0x5c830f,0xc5,_0x1b46d2._0x18daf7,0x135)],'requestMutators':_0x30b71a[_0x45c0a3(_0x1b46d2._0x47863e,_0x1b46d2._0x5d39db,_0x1b46d2._0x1aad3b,_0x1b46d2._0x211e71)],'webSocketFactory':_0x30b71a[_0x2c9f34(_0x1b46d2._0x20140f,_0x1b46d2._0x5b4067,0x2e0,0x292)]});}[_0x38c793(0x324,0x429,0x37b,0x34e)](){const _0x330514={_0x283916:0x2bf,_0x287da2:0x36c,_0x259f16:0x468,_0x19b23c:0x4f6,_0x2ed16d:0x3bd,_0x3200ea:0x3c2,_0x458f2a:0x365,_0x1543e3:0x3a4,_0x28eb4d:0x44e},_0x43ca70={_0x4d58a7:0x160},_0x1117dc={_0x24f5ff:0x93,_0x3a87ad:0x46,_0x5e5ee5:0xa8};function _0x5d7d10(_0x4d921e,_0x24d49d,_0x3301d5,_0x218b03){return _0x38c793(_0x218b03,_0x24d49d-_0x1117dc._0x24f5ff,_0x3301d5- -_0x1117dc._0x3a87ad,_0x218b03-_0x1117dc._0x5e5ee5);}if(!this[_0x5d7d10(_0x330514._0x283916,0x2cc,_0x330514._0x287da2,0x329)])throw new Error(_0x9839b3(0x3ba,_0x330514._0x259f16,_0x330514._0x19b23c,0x4e1)+this[_0x5d7d10(_0x330514._0x2ed16d,_0x330514._0x3200ea,0x326,_0x330514._0x458f2a)]);function _0x9839b3(_0x42f9dd,_0xfcd69,_0x48041b,_0x341050){return _0x38c793(_0x42f9dd,_0xfcd69-0x1e2,_0xfcd69-0xb,_0x341050-_0x43ca70._0x4d58a7);}return this[_0x9839b3(0x478,0x3bd,_0x330514._0x1543e3,_0x330514._0x28eb4d)];}[_0x38c793(0x433,0x46b,0x3b5,0x459)](){const _0x26d9a2={_0x3dfe74:0x95,_0x21f00c:0x3f,_0x36f766:0x585,_0x42a3d3:0x508,_0xf8d1f3:0x2a2,_0x43dd0f:0x285},_0x32f320={_0x4fce47:0x1c5},_0x46dd85={_0x198593:0x59,_0x384327:0x2f0,_0x5263e2:0x18};if(!this['openAiDelegate'])throw new Error(_0x1d711d(0x146,-0x32,_0x26d9a2._0x3dfe74,_0x26d9a2._0x21f00c)+this[_0x170faf(_0x26d9a2._0x36f766,_0x26d9a2._0x42a3d3,0x458,0x5b8)]);function _0x1d711d(_0x1b6b49,_0x59075d,_0x172920,_0x412ef7){return _0x38c793(_0x1b6b49,_0x59075d-_0x46dd85._0x198593,_0x172920- -_0x46dd85._0x384327,_0x412ef7-_0x46dd85._0x5263e2);}function _0x170faf(_0x3d74b,_0x25353e,_0x1e41be,_0x18844a){return _0x2b6123(_0x3d74b,_0x25353e-0x83,_0x25353e-0x2cc,_0x18844a-_0x32f320._0x4fce47);}return this[_0x1d711d(_0x26d9a2._0xf8d1f3,0x241,0x1f0,_0x26d9a2._0x43dd0f)];}[_0x38c793(0x3df,0x468,0x445,0x4ec)](_0x5b20ea,_0x1a264e){const _0x4d7ccd={_0x208c19:0x109,_0x1f6c35:0x16d,_0x5913d4:0x184,_0x31dfd1:0x22f,_0x576af0:0xdd,_0x1af18e:0x118,_0x1c0423:0x1e1,_0x355be3:0x141,_0x433263:0xc9,_0x28b6e3:0x10a,_0x32b839:0x1c6,_0x1e645c:0x209,_0x259a18:0x22c,_0x33a1c8:0x178,_0x444329:0x260,_0x10102b:0x271,_0x23de00:0x25d},_0x394e92={_0x285b8b:0xe3,_0x2ef4bd:0x263},_0x424314={_0x2e7e3c:0x198,_0x22ad13:0x75};function _0xfa815b(_0x32026e,_0x12cade,_0x259ecf,_0xa60215){return _0x2b6123(_0x259ecf,_0x12cade-_0x424314._0x2e7e3c,_0xa60215- -0x188,_0xa60215-_0x424314._0x22ad13);}function _0x400bfd(_0x98618b,_0x1d0a65,_0x3e99bc,_0x3dd0c4){return _0x38c793(_0x1d0a65,_0x1d0a65-_0x394e92._0x285b8b,_0x98618b- -_0x394e92._0x2ef4bd,_0x3dd0c4-0x1c7);}switch(this[_0x400bfd(_0x4d7ccd._0x208c19,0xa4,_0x4d7ccd._0x1f6c35,0x117)]){case _0x400bfd(_0x4d7ccd._0x5913d4,_0x4d7ccd._0x31dfd1,0x1e1,_0x4d7ccd._0x576af0):return this[_0x400bfd(_0x4d7ccd._0x1af18e,_0x4d7ccd._0x1c0423,_0x4d7ccd._0x355be3,_0x4d7ccd._0x433263)]()['complete'](_0x5b20ea,_0x1a264e);case _0x400bfd(0x166,0x132,_0x4d7ccd._0x28b6e3,_0x4d7ccd._0x32b839):return this['getOpenAiDelegate']()[_0x400bfd(0x214,0x268,_0x4d7ccd._0x1e645c,0x248)](_0x5b20ea,_0x1a264e);case _0xfa815b(0x223,0xee,_0x4d7ccd._0x259a18,_0x4d7ccd._0x33a1c8):return this['getOpenAiDelegate']()[_0xfa815b(0x1cd,_0x4d7ccd._0x444329,0x200,0x1a4)](_0x5b20ea,_0x1a264e);default:return this['getOpenAiDelegate']()[_0x400bfd(0x1cc,0x187,_0x4d7ccd._0x10102b,_0x4d7ccd._0x23de00)](_0x5b20ea,_0x1a264e);}}[_0x2b6123(0x406,0x30a,0x349,0x30b)](_0x22e147,_0x1b7902){const _0x28937e={_0x56329f:0x2c7,_0x7492ac:0x2c5,_0x13e2b9:0x338,_0x127417:0x36d,_0x3261ba:0x2fd,_0x4c2966:0x3a5,_0x39d1a7:0x2d6,_0x93234c:0x2ef,_0x5842ee:0x386,_0x11d830:0x14f,_0x4e9fc9:0x324,_0x10de94:0x2cc,_0x57ab9e:0x290,_0x1b21a7:0x381,_0x37d8fa:0x3ac,_0x1a2a33:0x3d3,_0x2d903b:0x48d,_0x59147f:0x356,_0x5277a4:0x250,_0x59d8d9:0x35c,_0x5c7854:0x323,_0x45ee73:0x26,_0x1792d2:0x94,_0x55e731:0x70},_0x3b5938={_0x58f379:0xda,_0x1f04fb:0x165},_0x8c24c={_0xcd107c:0x54};function _0x3762d9(_0x1ff43f,_0x184922,_0x122a74,_0x2b5f99){return _0x2b6123(_0x1ff43f,_0x184922-0x5b,_0x184922- -0x2bb,_0x2b5f99-_0x8c24c._0xcd107c);}function _0x5c27f5(_0xda7c45,_0x22249a,_0x31075b,_0x9d8d99){return _0x2b6123(_0x22249a,_0x22249a-_0x3b5938._0x58f379,_0xda7c45-0x8b,_0x9d8d99-_0x3b5938._0x1f04fb);}switch(this[_0x5c27f5(_0x28937e._0x56329f,_0x28937e._0x7492ac,_0x28937e._0x13e2b9,_0x28937e._0x127417)]){case _0x5c27f5(0x342,_0x28937e._0x3261ba,_0x28937e._0x4c2966,0x381):return this[_0x5c27f5(_0x28937e._0x39d1a7,_0x28937e._0x93234c,0x2f5,_0x28937e._0x5842ee)]()[_0x3762d9(0xad,0x8e,0xe7,_0x28937e._0x11d830)](_0x22e147,_0x1b7902);case _0x5c27f5(_0x28937e._0x4e9fc9,_0x28937e._0x10de94,_0x28937e._0x57ab9e,0x3a7):return this[_0x5c27f5(0x310,_0x28937e._0x1b21a7,0x329,_0x28937e._0x37d8fa)]()[_0x5c27f5(_0x28937e._0x1a2a33,0x382,_0x28937e._0x2d903b,_0x28937e._0x59147f)](_0x22e147,_0x1b7902);case'openai-responses-ws':return this[_0x5c27f5(0x310,0x332,_0x28937e._0x5277a4,0x2fe)]()[_0x5c27f5(_0x28937e._0x59d8d9,_0x28937e._0x5c7854,0x31c,0x3f2)](_0x22e147,_0x1b7902);default:return this[_0x3762d9(-0xfe,-0x36,0x35,-_0x28937e._0x45ee73)]()[_0x3762d9(-0x46,0x21,-_0x28937e._0x1792d2,_0x28937e._0x55e731)](_0x22e147,_0x1b7902);}}};function _0x38c793(_0x68fcce,_0x1f99ae,_0x4add4b,_0x2a7f26){const _0x1aa9fc={_0x2a8692:0x219};return _0x25f1(_0x4add4b-_0x1aa9fc._0x2a8692,_0x68fcce);}import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x38c793(0x56b,0x43d,0x4ed,0x471)];[_0x2b6123(0x32d,0x2d3,0x399,0x432)];[_0x2b6123(0x290,0x23c,0x269,0x255)];[_0x2b6123(0x30f,0x40a,0x3bc,0x314)];['tokenExchangeApiVersion'];constructor(_0x1d1077){const _0x20431e={_0x23b451:0x4fa,_0x2e3a9d:0x56d,_0x5c20d7:0x594,_0xc0b02e:0x15c,_0x2b7d83:0xaa,_0x10466f:0x1d1,_0x44eb65:0x4d6,_0x1ad64c:0x45e,_0x4cbf34:0x2c,_0xe01d96:0x58,_0x5ed3c1:0xcb,_0x3d9ee5:0x43a,_0x410290:0x521,_0x32308a:0x4f9,_0x382214:0x561,_0x3c714a:0x8d,_0x13ea64:0x4a,_0x10a9d1:0x5a,_0x41f4d5:0x9a},_0x2cebe0={_0x5169ba:0x13d,_0x58a3eb:0x177};this[_0x5e9963(_0x20431e._0x23b451,_0x20431e._0x2e3a9d,0x4c1,0x56d)]=_0x1d1077[_0x5e9963(0x4fa,0x43a,0x541,_0x20431e._0x5c20d7)];function _0x5e9963(_0x30bbdb,_0x590cf0,_0x4eece7,_0x5cb3d9){return _0x2b6123(_0x4eece7,_0x590cf0-0xf4,_0x30bbdb-_0x2cebe0._0x5169ba,_0x5cb3d9-_0x2cebe0._0x58a3eb);}this[_0x11c68f(_0x20431e._0xc0b02e,0x158,_0x20431e._0x2b7d83,_0x20431e._0x10466f)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x44eb65,_0x20431e._0x1ad64c,0x4b3,0x4f2)]),this[_0x11c68f(_0x20431e._0x4cbf34,_0x20431e._0xe01d96,_0x20431e._0x5ed3c1,0xa0)]=_0x1d1077[_0x5e9963(0x49a,0x547,0x497,0x52d)],this[_0x5e9963(0x4f9,_0x20431e._0x3d9ee5,_0x20431e._0x410290,0x57e)]=trimTrailingSlashes2(_0x1d1077[_0x5e9963(_0x20431e._0x32308a,_0x20431e._0x382214,0x4c2,0x4b4)]);function _0x11c68f(_0x49339c,_0x835cbc,_0x4b90bf,_0x2bfa84){return _0x38c793(_0x835cbc,_0x835cbc-0xc6,_0x49339c- -0x36d,_0x2bfa84-0xf2);}this[_0x11c68f(_0x20431e._0x3c714a,_0x20431e._0x13ea64,_0x20431e._0x10a9d1,_0x20431e._0x41f4d5)]=_0x1d1077['tokenExchangeApiVersion'];}async[_0x2b6123(0x43b,0x316,0x3a1,0x440)](_0x462498){const _0x45aec2={_0x1e2767:0x24,_0x2d9dca:0x86,_0x21e954:0x148,_0x3ec7df:0x1cc,_0x150ebd:0xbf,_0x5abd6b:0xfe,_0x4e0536:0x3c,_0x48fc88:0xb0,_0xd7cb39:0x50,_0x1b07e2:0x53,_0x228a4e:0x48,_0x2fb2bf:0x178,_0x112fca:0x1e6,_0x50f128:0x85,_0xc5bef2:0xaa,_0x2e737e:0xda,_0xe5875a:0x2f4,_0x442245:0x2e9,_0x5b6f53:0x33f,_0x3163f0:0x2d4,_0x4810ce:0x234,_0xddc60f:0x2ff,_0x53f7c5:0x190,_0x176ef9:0x277,_0x1aee16:0x23b,_0x5866c7:0x2f0,_0x1b0345:0x24c,_0x2a3b9f:0x2b0,_0x49c545:0x237,_0x4d334b:0x296,_0x1c7576:0x19c,_0x55deaf:0x10b,_0x3db763:0xee,_0x1fa584:0x66,_0x582869:0xb6,_0x2eafc9:0xcc,_0x1d7dde:0x1e,_0x59e747:0xa8,_0x47b973:0x106,_0x1104a3:0x8b,_0x56aaa0:0x104,_0x32c862:0x189,_0x4bca5b:0x222,_0x3149d5:0x177},_0xc0af6d={_0x5b1aa1:0x38,_0x5bbd1b:0xe9},_0x3a1b97={_0x3124bb:0x1dc,_0x575189:0x245};function _0x401a2d(_0x1035ca,_0x422dda,_0x1ec4ee,_0x23e04e){return _0x2b6123(_0x23e04e,_0x422dda-_0x3a1b97._0x3124bb,_0x1035ca- -_0x3a1b97._0x575189,_0x23e04e-0x11c);}const _0x481308=await this[_0x401a2d(_0x45aec2._0x1e2767,0x47,_0x45aec2._0x2d9dca,0xbd)](this['githubApiUrl']+_0x401a2d(_0x45aec2._0x21e954,0xed,0x20a,_0x45aec2._0x3ec7df),{'method':_0x401a2d(_0x45aec2._0x150ebd,0x31,_0x45aec2._0x5abd6b,0xc3),'headers':new Headers({'accept':_0x401a2d(_0x45aec2._0x4e0536,_0x45aec2._0x48fc88,-0x6d,0x4),'authorization':_0x401a2d(_0x45aec2._0xd7cb39,_0x45aec2._0x1b07e2,-_0x45aec2._0x228a4e,-0x2d)+this[_0x401a2d(_0x45aec2._0x2fb2bf,0x1e0,0x14d,0x22b)],'editor-version':_0x401a2d(0x139,0x97,_0x45aec2._0x112fca,0x121),'user-agent':_0x401a2d(0x11c,0x141,0x11d,0xa0),'x-github-api-version':this[_0x401a2d(_0x45aec2._0x50f128,-0x35,_0x45aec2._0xc5bef2,_0x45aec2._0x2e737e)]}),'signal':_0x462498});if(!_0x481308['ok'])return{'credential':{'kind':_0x401a2d(0xe9,0x14b,0x29,0x32),'value':this[_0x13a3a5(_0x45aec2._0xe5875a,_0x45aec2._0x442245,_0x45aec2._0x5b6f53,_0x45aec2._0x3163f0)]},'endpoints':{'api':this[_0x13a3a5(_0x45aec2._0x4810ce,0x29b,_0x45aec2._0xddc60f,0x2b0)]}};const _0x4f37d8=await _0x481308['json']();function _0x13a3a5(_0x36d1e9,_0x1713b9,_0x3bac62,_0x56a5e1){return _0x2b6123(_0x36d1e9,_0x1713b9-_0xc0af6d._0x5b1aa1,_0x56a5e1- -_0xc0af6d._0x5bbd1b,_0x56a5e1-0x1ad);}return{'credential':{'kind':'session-token','value':_0x4f37d8[_0x13a3a5(_0x45aec2._0x53f7c5,_0x45aec2._0x176ef9,0x240,_0x45aec2._0x1aee16)]??this['accessToken']},'endpoints':{'api':_0x4f37d8[_0x13a3a5(_0x45aec2._0x5866c7,_0x45aec2._0x1b0345,_0x45aec2._0x2a3b9f,0x228)]?.[_0x13a3a5(0x148,_0x45aec2._0x49c545,_0x45aec2._0x4d334b,0x1ee)]??this[_0x401a2d(0x154,0x1e3,_0x45aec2._0x1c7576,_0x45aec2._0x55deaf)],'originTracker':_0x4f37d8[_0x401a2d(0xcc,0x40,_0x45aec2._0x3db763,0x193)]?.[_0x401a2d(_0x45aec2._0x1fa584,-0x3c,0x104,_0x45aec2._0x582869)],'proxy':_0x4f37d8[_0x401a2d(_0x45aec2._0x2eafc9,_0x45aec2._0x1d7dde,_0x45aec2._0x59e747,0xac)]?.[_0x401a2d(0x89,_0x45aec2._0x47b973,0x71,_0x45aec2._0x1104a3)],'telemetry':_0x4f37d8[_0x401a2d(0xcc,_0x45aec2._0x56aaa0,0x7c,0x111)]?.[_0x13a3a5(_0x45aec2._0x32c862,_0x45aec2._0x4bca5b,0x17b,_0x45aec2._0x3149d5)]}};}};function trimTrailingSlashes2(_0x3e1d02){const _0x552905={_0x45fdc4:0xe6,_0x338d91:0x4c,_0x49cb09:0x52},_0xf21779={_0x223769:0x73};function _0x3a5605(_0x35bd0b,_0x3a0537,_0x2ab564,_0x33fe2b){return _0x2b6123(_0x33fe2b,_0x3a0537-0x80,_0x2ab564- -0x2de,_0x33fe2b-_0xf21779._0x223769);}return _0x3e1d02[_0x3a5605(_0x552905._0x45fdc4,-_0x552905._0x338d91,_0x552905._0x49cb09,0x78)](/\/+$/,'');}function createModelInfo(_0x5562b6){const _0x551906={_0x59ed8f:0x16d,_0x180976:0x1e1,_0x5a61b4:0x16b,_0x517330:0x6c1,_0x1bf484:0x5f2,_0x5c4961:0x613,_0x128433:0x5aa,_0x123873:0x574,_0x5efe95:0x22f,_0x80228b:0x4d8,_0x3c7428:0x45c,_0x47e6bd:0x4ae},_0x32b694={_0x3d8ce9:0x169},_0x439608={_0x58a05f:0x15,_0x253ed0:0x2bc},_0x45c919=_0x5562b6[_0x49e047(0x12f,_0x551906._0x59ed8f,0x172,0xe8)]??_0x5562b6[_0x49e047(_0x551906._0x180976,0x111,_0x551906._0x5a61b4,0x145)];function _0x1a9f84(_0x39161a,_0x2eeb63,_0x2cdaf6,_0x40bf06){return _0x2b6123(_0x39161a,_0x2eeb63-_0x439608._0x58a05f,_0x2eeb63-_0x439608._0x253ed0,_0x40bf06-0x199);}function _0x49e047(_0x3675ae,_0x456c1d,_0x3ef904,_0x3a16bf){return _0x2b6123(_0x3a16bf,_0x456c1d-_0x32b694._0x3d8ce9,_0x3ef904- -0x1b8,_0x3a16bf-0xaf);}const _0x5ed231=_0x5562b6[_0x1a9f84(_0x551906._0x517330,0x624,_0x551906._0x1bf484,0x640)]?.['limits']?.[_0x1a9f84(_0x551906._0x5c4961,_0x551906._0x128433,0x663,_0x551906._0x123873)],_0x252f81=_0x5562b6[_0x49e047(0x1d4,0x147,0x1b0,_0x551906._0x5efe95)]?.['limits']?.['max_output_tokens'],_0x281289=_0x5ed231!==void 0x0||_0x252f81!==void 0x0?{..._0x5ed231!==void 0x0?{'contextWindow':_0x5ed231}:{},..._0x252f81!==void 0x0?{'maxOutput':_0x252f81}:{}}:void 0x0;return{'id':_0x5562b6['id'],'name':_0x5562b6[_0x1a9f84(_0x551906._0x80228b,0x509,_0x551906._0x3c7428,_0x551906._0x47e6bd)]??_0x5562b6['id'],..._0x281289?{'limits':_0x281289}:{},..._0x45c919?{'supportedEndpoints':_0x45c919}:{}};}function deduplicateModels(_0x281503){const _0x36c8a2={_0x2132ef:0x20,_0x7cd1fa:0x330},_0x4676be={_0x12e1b0:0x183,_0x4cc4b1:0x3cb,_0x957d16:0x105},_0x1539c4={_0x34d694:0x178,_0x26a7e7:0x85},_0x1e8e19=new Map();for(const _0x463c6a of _0x281503){!_0x1e8e19['has'](_0x463c6a['id'])&&_0x1e8e19[_0x4d7596(-0x2,0x4f,-_0x36c8a2._0x2132ef,-0x5b)](_0x463c6a['id'],_0x463c6a);}function _0x2c8b19(_0x365b40,_0x5d594f,_0x4df7c7,_0x15eea4){return _0x2b6123(_0x5d594f,_0x5d594f-_0x1539c4._0x34d694,_0x15eea4- -_0x1539c4._0x26a7e7,_0x15eea4-0x1e5);}function _0x4d7596(_0x3ae5e6,_0x1b729d,_0x218fc2,_0x2066f7){return _0x2b6123(_0x1b729d,_0x1b729d-_0x4676be._0x12e1b0,_0x2066f7- -_0x4676be._0x4cc4b1,_0x2066f7-_0x4676be._0x957d16);}return Array[_0x2c8b19(0x2b7,0x1d1,_0x36c8a2._0x7cd1fa,0x267)](_0x1e8e19['values']());}function hasUserPromptContent(_0x361334){const _0x3b65d3={_0x2a37be:0x48e,_0x3ee49e:0x514,_0x3c3ee3:0x5ac,_0x145434:0xdb,_0x3f335d:0x102,_0x4a1125:0x16e,_0x6e9ec7:0x49,_0x5aa6b0:0x50,_0x3b4731:0x39},_0x53d95f={_0x4afe38:0x44c,_0x22b1db:0x447,_0x487c07:0x156,_0x5b3b55:0x27f,_0x1be28e:0x13c,_0x3ab369:0x87,_0x5e5644:0x14b,_0x5efb75:0x538,_0x5da2ca:0x523,_0x10433c:0x4a0,_0x27d735:0x55e,_0x4bf388:0x4ac},_0x6ad7da={_0x56d42f:0x1a,_0x225294:0xa},_0x356de1={_0x44adf0:0x9d,_0x35b81:0x474};function _0x37678e(_0x29f820,_0x4cbbf5,_0x44a163,_0x9a51e2){return _0x38c793(_0x4cbbf5,_0x4cbbf5-_0x356de1._0x44adf0,_0x9a51e2- -_0x356de1._0x35b81,_0x9a51e2-0x15f);}if(typeof _0x361334===_0x4f60e3(_0x3b65d3._0x2a37be,0x463,_0x3b65d3._0x3ee49e,_0x3b65d3._0x3c3ee3))return _0x361334[_0x37678e(-_0x3b65d3._0x145434,-0x90,-0xc0,-0xa2)]()[_0x37678e(-_0x3b65d3._0x3f335d,-_0x3b65d3._0x4a1125,-0x132,-0xa9)]>0x0;function _0x4f60e3(_0xe0a047,_0x5db5a7,_0xf54e85,_0x52b8e9){return _0x38c793(_0x52b8e9,_0x5db5a7-_0x6ad7da._0x56d42f,_0xf54e85-0x119,_0x52b8e9-_0x6ad7da._0x225294);}if(!Array['isArray'](_0x361334))return![];return _0x361334[_0x37678e(0xb6,-_0x3b65d3._0x6e9ec7,_0x3b65d3._0x5aa6b0,_0x3b65d3._0x3b4731)](_0x6a14e0=>{const _0x57ec37={_0xc37f2:0x28,_0x3a8eea:0x8e,_0x2acfed:0x6f3},_0x137cbb={_0x3faded:0x5c};if(!_0x6a14e0||typeof _0x6a14e0!==_0x32a642(0x4e6,_0x53d95f._0x4afe38,0x3d7,_0x53d95f._0x22b1db))return![];function _0x32a642(_0x138c85,_0x199682,_0x5271ed,_0x2d32c8){return _0x4f60e3(_0x138c85-_0x137cbb._0x3faded,_0x199682-0xe0,_0x2d32c8- -0x68,_0x199682);}function _0x2609fd(_0x5eca01,_0x4b045b,_0xf34500,_0x358efd){return _0x4f60e3(_0x5eca01-_0x57ec37._0xc37f2,_0x4b045b-_0x57ec37._0x3a8eea,_0x4b045b- -_0x57ec37._0x2acfed,_0xf34500);}const _0x448e11=_0x6a14e0;return(_0x448e11[_0x2609fd(-_0x53d95f._0x487c07,-0x1eb,-_0x53d95f._0x5b3b55,-_0x53d95f._0x1be28e)]===_0x2609fd(-_0x53d95f._0x3ab369,-_0x53d95f._0x5e5644,-0x153,-0x1b0)||_0x448e11[_0x32a642(_0x53d95f._0x5efb75,_0x53d95f._0x5da2ca,0x50a,_0x53d95f._0x10433c)]==='text')&&typeof _0x448e11[_0x2609fd(-0x257,-0x198,-0xe7,-0x18e)]===_0x32a642(0x49a,_0x53d95f._0x27d735,0x4ee,_0x53d95f._0x4bf388)&&_0x448e11['text']['trim']()['length']>0x0;});}function isUserPromptEntry(_0xcc3ca0){const _0x5d956b={_0x281fe6:0x1de,_0x473288:0x185,_0x4e216f:0x199,_0x2a09c5:0x163,_0x55d703:0x174,_0x564707:0x1d1,_0x47ab93:0x182,_0x5c42f5:0x32,_0x9b9ed3:0xb7,_0xd0398e:0xfd,_0x1ef3b9:0x138},_0x35eac0={_0xf11deb:0x1ee,_0x38addd:0x1b5},_0x456448={_0x3482d1:0x26d,_0x5ac13e:0xb1};if(!_0xcc3ca0||typeof _0xcc3ca0!=='object')return![];const _0x15c157=_0xcc3ca0;if(_0x15c157[_0x5b8d94(0x26c,0x23d,0x1fc,_0x5d956b._0x281fe6)]!==_0x5b8d94(_0x5d956b._0x473288,_0x5d956b._0x4e216f,_0x5d956b._0x2a09c5,0x1b8))return![];function _0x5b8d94(_0x412a87,_0x2d878f,_0x3d3e47,_0x53547f){return _0x38c793(_0x2d878f,_0x2d878f-0x19c,_0x53547f- -_0x456448._0x3482d1,_0x53547f-_0x456448._0x5ac13e);}if(_0x15c157[_0x571016(0x1c2,0x111,0x10a,0xc3)]!==void 0x0&&_0x15c157[_0x5b8d94(_0x5d956b._0x55d703,_0x5d956b._0x564707,0x13f,_0x5d956b._0x47ab93)]!==_0x571016(_0x5d956b._0x5c42f5,_0x5d956b._0x9b9ed3,_0x5d956b._0xd0398e,_0x5d956b._0x1ef3b9))return![];function _0x571016(_0x5c2804,_0x153a64,_0x5deb0f,_0x1fc48){return _0x2b6123(_0x1fc48,_0x153a64-_0x35eac0._0xf11deb,_0x5deb0f- -_0x35eac0._0x38addd,_0x1fc48-0x1e8);}return hasUserPromptContent(_0x15c157['content']);}function determineInitiator(_0x27b433){const _0x11fbc2={_0x1e8391:0x1eb,_0x59de41:0x2a9,_0x4f419d:0x323,_0x3b4ca7:0x28f,_0x4e3a81:0x25b,_0x49b9a7:0x29c,_0x101bb4:0x312,_0x4ed6b3:0x315,_0x3ddc16:0x2c7,_0x323f38:0x30c,_0x380c2e:0x20f,_0x8b688b:0x1fb,_0x157586:0x259,_0x56ab4d:0x2bb},_0x1c6ef5={_0x1c9050:0x1d0};function _0xa81127(_0x3ef944,_0x37275b,_0x3342ab,_0x274b47){return _0x38c793(_0x37275b,_0x37275b-0xa9,_0x3ef944- -0x167,_0x274b47-0x27);}function _0x536878(_0x365919,_0x189797,_0xce00f6,_0x3d13fe){return _0x38c793(_0x365919,_0x189797-0x12c,_0x3d13fe- -_0x1c6ef5._0x1c9050,_0x3d13fe-0x1f3);}if(!_0x27b433||typeof _0x27b433!=='object')return'agent';const _0x30a271=_0xa81127(0x268,_0x11fbc2._0x1e8391,_0x11fbc2._0x59de41,0x303)in _0x27b433?_0x27b433['messages']:'input'in _0x27b433?_0x27b433[_0xa81127(_0x11fbc2._0x4f419d,0x31b,0x2d6,_0x11fbc2._0x3b4ca7)]:void 0x0;if(!Array[_0x536878(_0x11fbc2._0x4e3a81,0x29c,_0x11fbc2._0x49b9a7,_0x11fbc2._0x101bb4)](_0x30a271)||_0x30a271['length']===0x0)return _0x536878(_0x11fbc2._0x4ed6b3,0x305,_0x11fbc2._0x3ddc16,_0x11fbc2._0x323f38);return isUserPromptEntry(_0x30a271[_0x30a271[_0x536878(_0x11fbc2._0x380c2e,0x1fb,0x161,_0x11fbc2._0x8b688b)]-0x1])?_0xa81127(0x2be,0x32b,_0x11fbc2._0x157586,0x35c):_0x536878(0x249,0x3aa,_0x11fbc2._0x56ab4d,0x30c);}function isUnsupportedApiForModel(_0x2e3c3b){const _0x214058={_0x339643:0x598,_0x2298bb:0x555},_0x23c856={_0x2f15de:0x48,_0x1cd090:0x4};function _0x1094b0(_0x55c235,_0x364881,_0x300d3c,_0x5f2040){return _0x38c793(_0x364881,_0x364881-_0x23c856._0x2f15de,_0x55c235-0x16b,_0x5f2040-_0x23c856._0x1cd090);}return _0x2e3c3b[_0x1094b0(0x5a1,0x5c0,_0x214058._0x339643,_0x214058._0x2298bb)]('unsupported_api_for_model');}function createResponseError(_0x35637a,_0x4cf230){const _0x24e02f={_0x3d9c34:0x22e,_0x4acbd2:0x288,_0x395f67:0x170},_0x382369={_0x45f2f5:0x109},_0x16c3d0={_0xca4e7b:0x127,_0x57a726:0x554,_0x403add:0x170};if(_0x35637a===0x191||_0x35637a===0x193)return new Error(_0x2962dd(0x2e4,_0x24e02f._0x3d9c34,_0x24e02f._0x4acbd2,0x30a));function _0x23d635(_0x2c4528,_0x4792e9,_0xcc96ab,_0x3807cb){return _0x38c793(_0x2c4528,_0x4792e9-_0x16c3d0._0xca4e7b,_0x4792e9- -_0x16c3d0._0x57a726,_0x3807cb-_0x16c3d0._0x403add);}function _0x2962dd(_0x546a80,_0x26fff9,_0x55429b,_0x5e72e6){return _0x38c793(_0x5e72e6,_0x26fff9-0x165,_0x55429b- -_0x382369._0x45f2f5,_0x5e72e6-0x7e);}if(_0x35637a===0x198||_0x35637a===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x35637a===0x190)return new Error(_0x23d635(-0x13e,-0xb8,-0x57,-_0x24e02f._0x395f67)+_0x4cf230);return new Error(_0x4cf230||'GitHub\x20API\x20error\x20'+_0x35637a);}var GitHubModel=class extends OpenAiModel{[_0x38c793(0x46a,0x32f,0x3b2,0x3c0)];[_0x2b6123(0x2b0,0x269,0x2c4,0x384)]=new Map();[_0x2b6123(0x276,0x22f,0x23c,0x2a4)];constructor(_0x518f32={}){const _0x254c8c={_0x5bdef4:0x37c,_0x510b26:0x492,_0x3d2b23:0x132,_0x4ad594:0x10b,_0x108a6b:0x1dd,_0x3e7d4d:0x20e,_0x20c7d8:0x254,_0x51026e:0x2a0,_0x1b54cc:0x1db,_0x5632fc:0x182,_0x52c7e5:0x25c,_0x186684:0xba,_0x3a54a6:0x3a0,_0x343db6:0x405,_0x66d4af:0x1e0,_0x3bb0e9:0x168,_0x31d9a8:0x1bf,_0x2600fe:0x3e2,_0x1abdab:0x481,_0x4ac1f0:0x34d,_0x17a4f4:0x297,_0x2a0872:0x2c4,_0x370d88:0x32e,_0x1ffbf7:0x1e5,_0x377ccf:0x260,_0x12b795:0x28d,_0x256fef:0x231,_0x339b9a:0x24d,_0x3a9fff:0x328,_0x55e764:0x2b9,_0x231e95:0x255,_0x138f19:0x31a,_0x400ae4:0x34f,_0x5b51af:0x2af,_0x40ed63:0x296,_0x56337a:0x2b8,_0x4bcade:0x246,_0x57b16f:0x1eb,_0x23f7b7:0x1fa,_0x16d3bf:0x3f8,_0x3ebb7c:0x3bc,_0x52cfdd:0x4a3,_0x156bf6:0x176,_0x56d6d2:0x153,_0x214cd5:0xda,_0x31a713:0x206,_0x5406a3:0x447,_0x4061b5:0x4fd,_0x25c43b:0x3f9,_0xb958ed:0x3f4,_0x52024a:0x4a9,_0x19e166:0x44d},_0x357daa={_0x5544f8:0x173},_0x21b783=trimTrailingSlashes2(_0x518f32['baseUrl']??'https://api.individual.githubcopilot.com');function _0x352f7e(_0x1f00ea,_0x584811,_0x121b74,_0xd3f326){return _0x2b6123(_0xd3f326,_0x584811-_0x357daa._0x5544f8,_0x584811- -0x11c,_0xd3f326-0x155);}const _0x26b541=_0x518f32[_0x25f471(0x43b,_0x254c8c._0x5bdef4,0x433,_0x254c8c._0x510b26)]??globalThis['fetch'],_0xe2391f=_0x518f32[_0x352f7e(0x7b,_0x254c8c._0x3d2b23,0x7a,_0x254c8c._0x4ad594)]??(_0x518f32[_0x352f7e(0x2f6,0x2a1,_0x254c8c._0x108a6b,_0x254c8c._0x3e7d4d)]?new GitHubAccessTokenResolver({'accessToken':_0x518f32['accessToken'],'baseUrl':_0x21b783,'fetch':_0x26b541,'githubApiUrl':_0x518f32[_0x352f7e(_0x254c8c._0x20c7d8,_0x254c8c._0x51026e,_0x254c8c._0x1b54cc,0x20e)]??'https://api.github.com','tokenExchangeApiVersion':_0x518f32[_0x352f7e(0x116,0x1ae,_0x254c8c._0x5632fc,_0x254c8c._0x52c7e5)]??_0x352f7e(0x161,0x112,_0x254c8c._0x186684,0x66)}):void 0x0),_0x19dfba=_0x518f32[_0x25f471(_0x254c8c._0x3a54a6,0x43f,0x410,_0x254c8c._0x343db6)]??_0x352f7e(0x22b,_0x254c8c._0x66d4af,_0x254c8c._0x3bb0e9,0x1d7),_0x5c08bd=_0x518f32[_0x352f7e(0x188,0x133,_0x254c8c._0x31d9a8,0x112)]??_0x25f471(0x359,_0x254c8c._0x2600fe,0x359,0x368),_0x13a5ab=({body:_0x450449})=>{return{'editor-plugin-version':_0x5c08bd,'editor-version':_0x19dfba,'x-initiator':determineInitiator(_0x450449),'x-request-id':randomUUID()};},_0x375dd0={'apiKey':_0x518f32[_0x25f471(0x3e5,0x466,_0x254c8c._0x1abdab,0x46c)],'baseUrl':_0x21b783,'fetch':_0x26b541,'maxTokens':_0x518f32[_0x25f471(_0x254c8c._0x4ac1f0,_0x254c8c._0x17a4f4,_0x254c8c._0x2a0872,_0x254c8c._0x370d88)],'model':_0x518f32[_0x352f7e(_0x254c8c._0x1ffbf7,_0x254c8c._0x377ccf,_0x254c8c._0x12b795,_0x254c8c._0x256fef)],'reasoning':_0x518f32[_0x352f7e(0x1cc,_0x254c8c._0x339b9a,0x27c,0x298)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32['requestMutators'],'headerResolver':_0x13a5ab};super(_0x375dd0),this[_0x25f471(0x31a,_0x254c8c._0x3a9fff,_0x254c8c._0x55e764,_0x254c8c._0x231e95)]=_0x518f32[_0x25f471(_0x254c8c._0x138f19,_0x254c8c._0x400ae4,_0x254c8c._0x5b51af,0x2cb)]??_0x25f471(0x39b,0x38e,0x41f,0x341);function _0x25f471(_0x508f1f,_0x426970,_0x33d1d2,_0x45fe00){return _0x2b6123(_0x426970,_0x426970-0x1da,_0x508f1f-0xde,_0x45fe00-0x152);}this[_0x25f471(0x360,_0x254c8c._0x40ed63,0x3ba,_0x254c8c._0x56337a)]=new AnthropicModel({'apiKey':_0x518f32[_0x352f7e(_0x254c8c._0x4bcade,_0x254c8c._0x57b16f,_0x254c8c._0x23f7b7,0x1f8)],'authScheme':_0x25f471(_0x254c8c._0x16d3bf,_0x254c8c._0x3ebb7c,0x33d,_0x254c8c._0x52cfdd),'baseUrl':_0x21b783,'fetch':_0x26b541,'headerResolver':_0x13a5ab,'maxTokens':_0x518f32[_0x352f7e(_0x254c8c._0x156bf6,_0x254c8c._0x56d6d2,_0x254c8c._0x214cd5,_0x254c8c._0x31a713)],'model':_0x518f32['model'],'reasoning':_0x518f32[_0x25f471(_0x254c8c._0x5406a3,0x394,_0x254c8c._0x4061b5,_0x254c8c._0x25c43b)],'providerSessionResolver':_0xe2391f,'requestMutators':_0x518f32[_0x25f471(_0x254c8c._0xb958ed,_0x254c8c._0x52024a,_0x254c8c._0x19e166,0x4a3)]});}['createMissingCredentialError'](){const _0x40b6d6={_0x2a043d:0x1d,_0x515d31:0x38,_0xd4bfbc:0xb},_0x15b7a0={_0xe834d8:0x1c7,_0x46d9ec:0x3d6,_0x225772:0xe8};function _0x506916(_0x550a53,_0x28f058,_0x335fea,_0x1561a7){return _0x38c793(_0x550a53,_0x28f058-_0x15b7a0._0xe834d8,_0x335fea- -_0x15b7a0._0x46d9ec,_0x1561a7-_0x15b7a0._0x225772);}return new Error(_0x506916(0x8f,_0x40b6d6._0x2a043d,_0x40b6d6._0x515d31,-_0x40b6d6._0xd4bfbc));}[_0x38c793(0x325,0x36a,0x3ca,0x3a1)](_0x3fc891){const _0x56926d={_0x24f001:0x254,_0x203a1d:0x2de,_0x32709f:0x1cb,_0x1462a8:0x45,_0x4b8dab:0x5e,_0x493aac:0x14b,_0x7fd9f:0xa,_0x258636:0x73,_0x1d5cb4:0xdc,_0x20c1fd:0xee,_0x42c760:0xe6},_0x1716b6={_0x3ddc12:0x157,_0x367a46:0x4f,_0x13a50e:0x1ea},_0x269ce6={_0x3fd3ed:0x62,_0x319c7b:0x195};function _0x5801c7(_0x5d62f9,_0x577206,_0x586e9b,_0x16ae56){return _0x38c793(_0x586e9b,_0x577206-_0x269ce6._0x3fd3ed,_0x16ae56- -0x3cf,_0x16ae56-_0x269ce6._0x319c7b);}const _0x42c48b=this[_0x566733(_0x56926d._0x24f001,0x275,_0x56926d._0x203a1d,_0x56926d._0x32709f)]['get'](_0x3fc891);if(!_0x42c48b)return![];function _0x566733(_0x36993e,_0xeb0803,_0xd7be47,_0x2e654c){return _0x2b6123(_0xd7be47,_0xeb0803-_0x1716b6._0x3ddc12,_0xeb0803- -_0x1716b6._0x367a46,_0x2e654c-_0x1716b6._0x13a50e);}return!_0x42c48b[_0x5801c7(-0x4d,0x70,-_0x56926d._0x1462a8,0x67)](_0x5801c7(_0x56926d._0x4b8dab,_0x56926d._0x493aac,-_0x56926d._0x7fd9f,0x9f))&&_0x42c48b[_0x5801c7(0x105,_0x56926d._0x258636,0x76,0x67)](_0x5801c7(_0x56926d._0x1d5cb4,_0x56926d._0x20c1fd,0x12f,_0x56926d._0x42c760));}[_0x38c793(0x510,0x436,0x482,0x4fb)](_0x3848dc){const _0x204aee={_0x56af13:0x2fd,_0x311a31:0x2f4,_0x382e4c:0x32a,_0x3ef89a:0x74,_0x8ca822:0x60,_0x53f686:0x24,_0x2a9875:0x14e,_0x6df9f:0x115,_0x36fa0a:0x13d,_0x326de1:0x12c,_0x1b4687:0x109,_0x25e1f5:0x3a9,_0xfaa0d3:0x345,_0x3cef49:0x3bc,_0x3bfe29:0x18b,_0x4dd750:0x100,_0x1e995f:0x2e2,_0x8f51f6:0x2d3,_0x4bb4fd:0x249,_0x4d2e3d:0x448,_0x26286b:0x358},_0x2ffba7={_0x3d429b:0x1ba,_0x2eac5d:0xf7,_0x48f526:0x1a3},_0x1a7346={_0x3791aa:0x260,_0x2ab422:0x5f};function _0x4416b0(_0x38628c,_0x2f7f39,_0x1e0dbf,_0x50f573){return _0x2b6123(_0x1e0dbf,_0x2f7f39-0x2e,_0x50f573- -_0x1a7346._0x3791aa,_0x50f573-_0x1a7346._0x2ab422);}const _0x4c3c2b=this[_0x2b4acc(0x2b1,_0x204aee._0x56af13,_0x204aee._0x311a31,_0x204aee._0x382e4c)][_0x4416b0(_0x204aee._0x3ef89a,-0x8,-_0x204aee._0x8ca822,_0x204aee._0x53f686)](_0x3848dc[_0x4416b0(_0x204aee._0x2a9875,_0x204aee._0x6df9f,_0x204aee._0x36fa0a,0x11c)]);if(!_0x4c3c2b)return![];function _0x2b4acc(_0x432180,_0x299cb1,_0x272332,_0x281c35){return _0x38c793(_0x281c35,_0x299cb1-_0x2ffba7._0x3d429b,_0x299cb1- -_0x2ffba7._0x2eac5d,_0x281c35-_0x2ffba7._0x48f526);}if(resolveOpenAiReasoningConfig(_0x3848dc[_0x4416b0(_0x204aee._0x326de1,0x197,0x82,_0x204aee._0x1b4687)]))return _0x4c3c2b[_0x2b4acc(_0x204aee._0x25e1f5,0x33f,_0x204aee._0xfaa0d3,_0x204aee._0x3cef49)](_0x4416b0(_0x204aee._0x3bfe29,_0x204aee._0x4dd750,0xfc,0x125));return this[_0x2b4acc(_0x204aee._0x1e995f,_0x204aee._0x8f51f6,_0x204aee._0x4bb4fd,0x24b)](_0x3848dc[_0x2b4acc(0x3a6,0x3b5,_0x204aee._0x4d2e3d,_0x204aee._0x26286b)]);}[_0x2b6123(0x3be,0x2e8,0x39f,0x30f)](_0x438f0d){const _0xb6be1a={_0x565f28:0x1d2,_0x49f662:0x1fd},_0x4e914f={_0x2221b5:0x16b,_0x4a9a85:0x496,_0x4cd059:0xa8};function _0x335081(_0x42b81f,_0x1f6dca,_0x40fc96,_0x421aee){return _0x2b6123(_0x421aee,_0x1f6dca-_0x4e914f._0x2221b5,_0x1f6dca- -_0x4e914f._0x4a9a85,_0x421aee-_0x4e914f._0x4cd059);}this[_0x335081(-0x243,-_0xb6be1a._0x565f28,-0x1c7,-_0xb6be1a._0x49f662)]['set'](_0x438f0d,['/responses']);}[_0x2b6123(0x1ee,0x1d3,0x287,0x265)](_0x592004){const _0x259a12={_0x58cfdb:0x5a,_0x2dd487:0x37d,_0x1d8898:0x70};if(_0x592004 instanceof OpenAiApiError)return createResponseError(_0x592004['status'],_0x592004[_0x211244(-0x117,-0xd5,-0x13e,-0x93)]||_0x592004['message']);function _0x211244(_0xef9109,_0x366591,_0xccf802,_0x52a19f){return _0x2b6123(_0x52a19f,_0x366591-_0x259a12._0x58cfdb,_0xccf802- -_0x259a12._0x2dd487,_0x52a19f-_0x259a12._0x1d8898);}return _0x592004;}[_0x38c793(0x4b0,0x4b5,0x4a7,0x53a)](_0x3fe7fc,_0x15c54f){const _0x144b9b={_0x4816ec:0x33,_0x40e51a:0x5d,_0x303ec8:0x5,_0x2ab9df:0x43,_0x4cf943:0x4a,_0x360957:0x56,_0x45a2f4:0xf8,_0x508a52:0x41,_0x5e6c08:0xbd,_0x47bc6e:0x155,_0x40fa93:0x4c,_0x4c0206:0xed,_0x4e43f0:0x6f,_0x334d66:0x8e,_0x1024fa:0x57,_0x2988a3:0x46,_0x5626b1:0x83,_0x3833b5:0x11a,_0x320df1:0x27,_0x166bb3:0xd2,_0x1dfad8:0x3a,_0x22dc5f:0x62,_0x3113f3:0xbc,_0x6e1159:0x9f},_0x1eee70={_0x109c7d:0x120,_0x425b21:0x379,_0x3dd235:0x1e9},_0x3e1554={_0x5c5cb2:0x121,_0x196616:0x3d9,_0x43bc9f:0x1b4};function _0x16dbd9(_0x898b7a,_0x234d03,_0x2532fb,_0x1d6ef1){return _0x38c793(_0x898b7a,_0x234d03-_0x3e1554._0x5c5cb2,_0x1d6ef1- -_0x3e1554._0x196616,_0x1d6ef1-_0x3e1554._0x43bc9f);}switch(this['surface']){case _0x16dbd9(-0x8c,0x9e,-_0x144b9b._0x4816ec,0xe):return this['anthropicDelegate']['complete'](_0x3fe7fc,_0x15c54f);case _0x4e3961(-0x39,-0xa,_0x144b9b._0x40e51a,-_0x144b9b._0x303ec8):return this[_0x16dbd9(_0x144b9b._0x2ab9df,-_0x144b9b._0x4cf943,0x9f,_0x144b9b._0x360957)](_0x3fe7fc,_0x15c54f);case _0x4e3961(_0x144b9b._0x45a2f4,_0x144b9b._0x508a52,_0x144b9b._0x5e6c08,0x50):return this[_0x16dbd9(_0x144b9b._0x47bc6e,_0x144b9b._0x40fa93,0x95,0x9e)](_0x3fe7fc,_0x15c54f);case _0x16dbd9(_0x144b9b._0x4c0206,_0x144b9b._0x4e43f0,_0x144b9b._0x334d66,_0x144b9b._0x1024fa):return this[_0x16dbd9(0x80,_0x144b9b._0x2988a3,0x11d,_0x144b9b._0x5626b1)](_0x3fe7fc,_0x15c54f);case'auto':return this[_0x16dbd9(_0x144b9b._0x3833b5,_0x144b9b._0x320df1,_0x144b9b._0x166bb3,0x6c)](_0x3fe7fc,_0x15c54f);}function _0x4e3961(_0x54bb7c,_0x33306d,_0x9fff89,_0x16b956){return _0x38c793(_0x33306d,_0x33306d-_0x1eee70._0x109c7d,_0x16b956- -_0x1eee70._0x425b21,_0x16b956-_0x1eee70._0x3dd235);}throw new Error(_0x16dbd9(_0x144b9b._0x1dfad8,-0xae,0x3b,-_0x144b9b._0x22dc5f)+String(this[_0x16dbd9(-_0x144b9b._0x3113f3,-0xac,-_0x144b9b._0x6e1159,-0x6d)]));}['streamViaConfiguredSurface'](_0xd8da7f,_0x248b0e){const _0x2facff={_0x1a0012:0x84,_0x512a4a:0x39,_0x5b579d:0x8,_0x330f34:0x8b,_0x2447b5:0xc,_0x47bbc3:0x100,_0x45878b:0x199,_0x50eb3c:0x1a7,_0x20c9d8:0x5,_0x2b7dd7:0x9d,_0x581ae8:0x74,_0x43227d:0x122,_0x5bde47:0xfc,_0x584204:0x17e,_0x203deb:0xb,_0x3cf076:0x3a,_0x512fb6:0xb3,_0x5c8227:0xfb,_0x4a4fad:0x1a,_0x50ebfc:0x1f,_0x293967:0x7a},_0x2d4aa9={_0x10d7a3:0xa0},_0x551806={_0xc831d9:0x5f,_0x3bed33:0x379};function _0xe957fa(_0x3b8a9a,_0x38f7a4,_0xca963,_0x1edf6e){return _0x38c793(_0x1edf6e,_0x38f7a4-_0x551806._0xc831d9,_0x3b8a9a- -_0x551806._0x3bed33,_0x1edf6e-0x46);}switch(this[_0xe957fa(-0xd,-0x15,-0x13,-_0x2facff._0x1a0012)]){case'anthropic-messages':return this[_0xe957fa(_0x2facff._0x512a4a,_0x2facff._0x5b579d,-_0x2facff._0x330f34,_0x2facff._0x2447b5)][_0xe957fa(_0x2facff._0x47bbc3,0x13f,_0x2facff._0x45878b,_0x2facff._0x50eb3c)](_0xd8da7f,_0x248b0e);case _0xe957fa(-_0x2facff._0x20c9d8,0x12,-_0x2facff._0x2b7dd7,_0x2facff._0x581ae8):return this[_0x208bff(_0x2facff._0x43227d,_0x2facff._0x5bde47,_0x2facff._0x584204,0x11a)](_0xd8da7f,_0x248b0e);case _0xe957fa(0x50,0xb4,_0x2facff._0x203deb,0x52):return this['responseStream'](_0xd8da7f,_0x248b0e);case'openai-responses-ws':return this[_0xe957fa(0x88,0xec,0xc3,_0x2facff._0x3cf076)](_0xd8da7f,_0x248b0e);case _0x208bff(0x11a,0x30,_0x2facff._0x512fb6,_0x2facff._0x5c8227):return this['stream'](_0xd8da7f,_0x248b0e);}function _0x208bff(_0x42fc21,_0x579704,_0x4be8f4,_0x1b80a1){return _0x38c793(_0x42fc21,_0x579704-_0x2d4aa9._0x10d7a3,_0x1b80a1- -0x2f2,_0x1b80a1-0xfc);}throw new Error(_0xe957fa(-0x2,-_0x2facff._0x4a4fad,0x70,-_0x2facff._0x50ebfc)+String(this[_0x208bff(0x11,0x2b,0x6f,_0x2facff._0x293967)]));}async[_0x38c793(0x4a5,0x3f4,0x445,0x440)](_0x2f9792,_0x5ef527){const _0x469451={_0x5abd9a:0x9d,_0x574e53:0x30f,_0x1e5b3a:0x14c,_0x206b9c:0x157,_0x32152f:0x115,_0x3f19b3:0x21,_0x313ce1:0x102,_0xbfe971:0x34,_0x42e928:0x3d,_0x2fe981:0x1ee,_0x704287:0x193,_0x287756:0x68,_0x113d93:0x386,_0x2f19fc:0x3f3,_0x4ce2b3:0x121,_0x41bd10:0x11c,_0x33c2e3:0x106,_0x43908b:0x8b,_0x5f53a2:0x13f,_0x50cbe6:0x14b},_0x4f08e6={_0x3a2cfc:0x1c,_0x2b0ca7:0x3d2,_0x35c997:0x83},_0x31850b={_0x1bc608:0x6e};function _0x57b644(_0x54c8e5,_0x3405f4,_0x4b04f0,_0x37bc70){return _0x38c793(_0x37bc70,_0x3405f4-_0x31850b._0x1bc608,_0x54c8e5- -0x10b,_0x37bc70-0x51);}const _0x4e5dbe=this[_0x3fdeb4(-0x13a,-0x54,-0x124,-_0x469451._0x5abd9a)](_0x2f9792);function _0x3fdeb4(_0x3b00b4,_0x3b8cf9,_0x2e56b7,_0x4f364f){return _0x2b6123(_0x3b00b4,_0x3b8cf9-_0x4f08e6._0x3a2cfc,_0x4f364f- -_0x4f08e6._0x2b0ca7,_0x4f364f-_0x4f08e6._0x35c997);}if(this[_0x57b644(0x261,0x2c1,0x29c,_0x469451._0x574e53)]!==_0x3fdeb4(-0x11d,-_0x469451._0x1e5b3a,-_0x469451._0x206b9c,-_0x469451._0x32152f))return this[_0x3fdeb4(-_0x469451._0x3f19b3,-_0x469451._0x313ce1,-0x73,-0x5b)](_0x4e5dbe,_0x5ef527);if(this[_0x3fdeb4(-0x83,-_0x469451._0xbfe971,-_0x469451._0x42e928,-0x80)](_0x4e5dbe))return this['response'](_0x4e5dbe,_0x5ef527);try{return await this['completeViaChatCompletionsSurface'](_0x4e5dbe,_0x5ef527);}catch(_0x3de9c5){if(_0x3de9c5 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3de9c5[_0x3fdeb4(-0x118,-0x110,-_0x469451._0x2fe981,-_0x469451._0x704287)]))return this[_0x3fdeb4(_0x469451._0x287756,-0xc2,-0x4f,-0x33)](_0x4e5dbe[_0x57b644(0x3a1,_0x469451._0x113d93,_0x469451._0x2f19fc,0x308)]),this[_0x3fdeb4(-_0x469451._0x4ce2b3,-_0x469451._0x41bd10,-_0x469451._0x33c2e3,-_0x469451._0x43908b)](_0x4e5dbe,_0x5ef527);throw this[_0x3fdeb4(-0x190,-0x16b,-_0x469451._0x5f53a2,-_0x469451._0x50cbe6)](_0x3de9c5);}throw _0x3de9c5;}}async*[_0x38c793(0x3af,0x4e1,0x479,0x411)](_0x1744a9,_0x2e0ee1){const _0x312e27={_0x5868b1:0x5c0,_0x1f1f9b:0x59e,_0x30e5e6:0x36c,_0x14b3fd:0x3d8,_0x1704ea:0x41d,_0x23afa7:0x48f,_0x3d5e35:0x50c,_0x5a4bb2:0x675,_0x283ded:0x3f9,_0x3a62fd:0x51e,_0x3a2e5e:0x4a8,_0x1533ae:0x648,_0x56977d:0x549,_0x43a332:0x641,_0x56a837:0x4c3,_0x5835ce:0x3d0,_0x1fb68c:0x4b9},_0x2aa26d={_0x55d946:0x2d,_0x4f8842:0xe2},_0x1cedff={_0x511354:0x13e,_0x1962f2:0x139},_0xa663cf=this[_0x53f282(0x5cd,0x60c,_0x312e27._0x5868b1,_0x312e27._0x1f1f9b)](_0x1744a9);function _0x53f282(_0x2613f5,_0x3730a3,_0x2989f9,_0x501fa3){return _0x38c793(_0x3730a3,_0x3730a3-_0x1cedff._0x511354,_0x501fa3-_0x1cedff._0x1962f2,_0x501fa3-0x1bd);}if(this[_0x5bb931(_0x312e27._0x30e5e6,0x467,_0x312e27._0x14b3fd,0x331)]!==_0x5bb931(0x3f8,_0x312e27._0x1704ea,0x459,_0x312e27._0x23afa7)){yield*this[_0x53f282(0x4a6,_0x312e27._0x3d5e35,0x4cb,0x562)](_0xa663cf,_0x2e0ee1);return;}function _0x5bb931(_0x428054,_0x40dcbb,_0x20fdfe,_0x8fcd2d){return _0x2b6123(_0x8fcd2d,_0x40dcbb-_0x2aa26d._0x55d946,_0x20fdfe-0x19c,_0x8fcd2d-_0x2aa26d._0x4f8842);}if(this[_0x53f282(_0x312e27._0x3d5e35,0x5c1,_0x312e27._0x5a4bb2,0x5bb)](_0xa663cf)){yield*this[_0x53f282(0x54a,0x4f3,0x592,0x5b1)](_0xa663cf,_0x2e0ee1);return;}try{yield*this['streamViaChatCompletionsSurface'](_0xa663cf,_0x2e0ee1);}catch(_0x36cb34){if(_0x36cb34 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x36cb34[_0x53f282(0x567,_0x312e27._0x283ded,_0x312e27._0x3a62fd,_0x312e27._0x3a2e5e)])){this[_0x53f282(_0x312e27._0x1533ae,_0x312e27._0x56977d,_0x312e27._0x43a332,0x608)](_0xa663cf[_0x5bb931(0x5af,0x51e,0x518,0x4c2)]),yield*this[_0x5bb931(_0x312e27._0x56a837,0x548,0x4e4,0x4ac)](_0xa663cf,_0x2e0ee1);return;}throw this[_0x5bb931(_0x312e27._0x5835ce,0x393,0x423,_0x312e27._0x1fb68c)](_0x36cb34);}throw _0x36cb34;}}async['getModels'](_0x3c65e0){const _0x561246={_0x22cc5f:0x3af,_0x3d1066:0x2fd,_0x1581b2:0x320,_0x41d3df:0x4c4,_0x2b80b2:0x492,_0x47f8e5:0x446,_0x4a5177:0x385,_0x40d0ce:0x31e,_0x1620fb:0x3cd,_0x45beb4:0x2ba,_0x20f858:0x366,_0x12219e:0x3f3,_0x351bac:0x3fd},_0xd7fcd1={_0x4c12b7:0x3f},_0x1b0d6c={_0x3c7d48:0x73,_0x44d809:0x2a,_0x177a60:0x618,_0xdd1254:0x526},_0x525042=await this['sendRawRequest']({'path':_0x2e182e(0x33b,_0x561246._0x22cc5f,_0x561246._0x3d1066,_0x561246._0x1581b2),'method':_0x2e182e(0x3fa,0x3fb,_0x561246._0x41d3df,_0x561246._0x2b80b2),'signal':_0x3c65e0});if(!_0x525042['ok'])throw this[_0x5d1bb3(0x43f,0x3ce,_0x561246._0x47f8e5,_0x561246._0x4a5177)](await this['toApiError'](_0x525042));const _0x2c0420=await _0x525042[_0x2e182e(0x37f,_0x561246._0x40d0ce,_0x561246._0x1620fb,_0x561246._0x45beb4)](),_0x5ae229=(_0x2c0420[_0x2e182e(_0x561246._0x20f858,_0x561246._0x12219e,_0x561246._0x351bac,0x3d1)]??[])['map'](_0x1009ba=>{const _0x3e44a0={_0xde6ec4:0xf0,_0x5f111b:0x1a7};function _0x598168(_0x3773fc,_0x23239a,_0x14236a,_0x57a6a6){return _0x5d1bb3(_0x57a6a6-_0x3e44a0._0xde6ec4,_0x23239a-0x17c,_0x3773fc,_0x57a6a6-_0x3e44a0._0x5f111b);}const _0x5a20e6=createModelInfo(_0x1009ba);function _0x217198(_0x3b48a9,_0x568920,_0x16a63b,_0x2bb2b9){return _0x2e182e(_0x2bb2b9- -0x39e,_0x568920-0x12f,_0x568920,_0x2bb2b9-0x8b);}return _0x5a20e6[_0x217198(_0x1b0d6c._0x3c7d48,0x2a,-0x68,-_0x1b0d6c._0x44d809)]&&this[_0x598168(0x4a7,0x556,0x53e,0x56c)][_0x598168(0x682,0x692,0x69d,_0x1b0d6c._0x177a60)](_0x5a20e6['id'],_0x5a20e6[_0x598168(0x4ed,0x551,0x536,_0x1b0d6c._0xdd1254)]),_0x5a20e6;});function _0x5d1bb3(_0x2e0765,_0x505155,_0x5c8051,_0x3c28ac){return _0x2b6123(_0x5c8051,_0x505155-_0xd7fcd1._0x4c12b7,_0x2e0765-0x1b8,_0x3c28ac-0x146);}function _0x2e182e(_0x22b3d9,_0x34e164,_0x4dec92,_0x4d7028){return _0x38c793(_0x4dec92,_0x34e164-0x13e,_0x22b3d9- -0x3a,_0x4d7028-0x5e);}return deduplicateModels(_0x5ae229);}};function createHeaders(_0x506a3f){const _0x1c1cbc={_0x5c547e:0x271,_0x52a389:0x48e},_0x54ac6b={_0x4306ef:0x184},_0x468f93={_0x1b7d2a:0x108};function _0xbdb15d(_0x1b73a2,_0x4e7035,_0x268f95,_0x33c108){return _0x2b6123(_0x33c108,_0x4e7035-0x1f4,_0x4e7035-_0x468f93._0x1b7d2a,_0x33c108-0x133);}function _0xbe0f8c(_0x12547e,_0x3638e9,_0x494034,_0x5e295f){return _0x38c793(_0x494034,_0x3638e9-0x96,_0x3638e9- -0xd6,_0x5e295f-_0x54ac6b._0x4306ef);}const _0xdf6e9c=new Headers();for(const [_0x2e9ba3,_0x464b7b]of Object[_0xbe0f8c(_0x1c1cbc._0x5c547e,0x33b,0x36c,0x347)](_0x506a3f)){_0xdf6e9c[_0xbdb15d(0x484,0x478,0x48f,_0x1c1cbc._0x52a389)](_0x2e9ba3,_0x464b7b);}return _0xdf6e9c;}async function fetchRawResponse(_0x34211d){const _0x53e461={_0x2c9455:0xbc,_0x58c334:0x50a,_0x57b1b5:0x538,_0x5a212b:0x1f,_0x501f98:0x92,_0x5209ed:0x7d,_0x75d043:0xb9,_0x23888d:0xee,_0x4544d2:0x158,_0x4b1f4e:0x43f,_0x42139d:0x3fd,_0xb24930:0x4a8},_0x598344={_0x3d2cc8:0x426},_0xc00e87={_0x24722d:0x3,_0xc87979:0x1be,_0x555f08:0x14f};function _0xffed6d(_0x180ec3,_0x1a2ba2,_0x38f460,_0x19727b){return _0x2b6123(_0x1a2ba2,_0x1a2ba2-_0xc00e87._0x24722d,_0x38f460-_0xc00e87._0xc87979,_0x19727b-_0xc00e87._0x555f08);}const _0x4709e0=_0x34211d[_0x479743(_0x53e461._0x2c9455,0x67,0x30,0x84)]??globalThis[_0xffed6d(0x4b9,0x47a,0x51b,0x52e)];function _0x479743(_0x3e133e,_0x332d22,_0x164341,_0x4e6200){return _0x38c793(_0x164341,_0x332d22-0xa7,_0x332d22- -_0x598344._0x3d2cc8,_0x4e6200-0x8f);}return _0x4709e0(_0x34211d[_0xffed6d(0x5b7,_0x53e461._0x58c334,_0x53e461._0x57b1b5,0x53e)],{'method':'POST','headers':createHeaders(_0x34211d[_0x479743(_0x53e461._0x5a212b,-0x82,-0x1c,-_0x53e461._0x501f98)]),'body':JSON[_0x479743(-_0x53e461._0x5209ed,-_0x53e461._0x75d043,-_0x53e461._0x23888d,-_0x53e461._0x4544d2)](_0x34211d[_0xffed6d(_0x53e461._0x4b1f4e,0x4ac,_0x53e461._0x42139d,0x430)]),'signal':_0x34211d[_0xffed6d(_0x53e461._0xb24930,0x4b8,0x497,0x48d)]});}async function fetchJsonResponse(_0x582e06){const _0x1608cf={_0x41057a:0x3c1,_0x523a74:0x307,_0x5785b1:0x43c,_0x170376:0x3eb,_0x594b1b:0x250,_0x5c2abc:0x13c,_0x2e2a2a:0x1aa,_0x165434:0x22a,_0x5cb4b6:0x230,_0x53bfef:0x31c},_0x4848cb={_0x2784f4:0x133,_0x2ee9dc:0xe3},_0x5dfba9={_0x100617:0x17c,_0x364191:0x225,_0x4c156c:0x1e4};function _0x2543d4(_0x4a45d4,_0x5426e1,_0x4165a4,_0x54e763){return _0x38c793(_0x54e763,_0x5426e1-_0x5dfba9._0x100617,_0x4a45d4- -_0x5dfba9._0x364191,_0x54e763-_0x5dfba9._0x4c156c);}function _0x54ce74(_0x23eca1,_0x18efa0,_0x4914cb,_0x552cb9){return _0x2b6123(_0x4914cb,_0x18efa0-_0x4848cb._0x2784f4,_0x23eca1-0x11f,_0x552cb9-_0x4848cb._0x2ee9dc);}const _0x1cdf4e=await fetchRawResponse(_0x582e06);if(!_0x1cdf4e['ok']){const _0x52dd87=await _0x1cdf4e['text'](),_0x4ca4c0=_0x52dd87[_0x54ce74(_0x1608cf._0x41057a,0x42e,0x422,_0x1608cf._0x523a74)]()||_0x1cdf4e[_0x54ce74(_0x1608cf._0x5785b1,0x464,_0x1608cf._0x170376,0x4ef)]||'Unknown\x20provider\x20error';throw new Error(_0x2543d4(0x1cc,_0x1608cf._0x594b1b,0x142,_0x1608cf._0x5c2abc)+_0x1cdf4e[_0x2543d4(0x1af,_0x1608cf._0x2e2a2a,_0x1608cf._0x165434,_0x1608cf._0x5cb4b6)]+':\x20'+_0x4ca4c0);}return await _0x1cdf4e[_0x54ce74(0x3a8,0x392,_0x1608cf._0x53bfef,0x2de)]();}function findLastMessage(_0x38c82a,_0x4d053b){const _0x55098={_0x2b8bc6:0x438,_0x550016:0x4cd,_0xd61306:0x4d2,_0x531214:0x4b8,_0x31447c:0x46f,_0x45cfc3:0x4bf,_0xc9d915:0x4aa},_0x3da8b3={_0xea2b10:0xe1};for(let _0x17beab=_0x38c82a[_0x595067(_0x55098._0x2b8bc6,_0x55098._0x550016,_0x55098._0xd61306,0x463)]-0x1;_0x17beab>=0x0;_0x17beab-=0x1){if(_0x38c82a[_0x17beab][_0x595067(_0x55098._0x531214,_0x55098._0x31447c,_0x55098._0x45cfc3,_0x55098._0xc9d915)]===_0x4d053b)return _0x38c82a[_0x17beab];}function _0x39eedf(_0x5b9f11,_0x9b8223,_0x3f85d4,_0x529995){return _0x2b6123(_0x3f85d4,_0x9b8223-0x130,_0x5b9f11-0x3b,_0x529995-_0x3da8b3._0xea2b10);}function _0x595067(_0x120f40,_0x2f846e,_0x2a4bee,_0xbc8931){return _0x2b6123(_0xbc8931,_0x2f846e-0xb6,_0x120f40-0x19d,_0xbc8931-0x138);}return void 0x0;}function hasTool(_0x2c7c8f,_0x4e2315){const _0x44c21f={_0x33022b:0x526,_0x4f4825:0x47f,_0x196b23:0x5e4},_0x546542={_0x5821f2:0x15a,_0x3601ff:0x190};function _0x794a32(_0x595b3c,_0x2a92f1,_0xeb76b6,_0x1e72cd){return _0x2b6123(_0x595b3c,_0x2a92f1-0x1d4,_0x2a92f1-0x21e,_0x1e72cd-0xd8);}function _0x5b2aa0(_0x5e61ea,_0x240621,_0x4aa3e1,_0x12b9cd){return _0x2b6123(_0x4aa3e1,_0x240621-_0x546542._0x5821f2,_0x5e61ea-0x230,_0x12b9cd-_0x546542._0x3601ff);}return _0x2c7c8f[_0x5b2aa0(_0x44c21f._0x33022b,_0x44c21f._0x4f4825,0x4f4,_0x44c21f._0x196b23)]['some'](_0x37e2c6=>_0x37e2c6[_0x5b2aa0(0x47d,0x44e,0x4cf,0x445)]===_0x4e2315);}function createMockResponse(_0x4e6e6a,_0x322ebc,_0x12979e,_0x50dd60){return{'id':_0x4e6e6a,'content':_0x322ebc,'stopReason':_0x12979e,'usage':_0x50dd60};}var MockModel=class{['model'];[_0x38c793(0x32c,0x34c,0x39f,0x3c9)];[_0x2b6123(0x2d0,0x2c5,0x366,0x2f6)]=[];[_0x2b6123(0x3f5,0x2ea,0x369,0x33f)];constructor(_0x3cb54a={}){const _0x586dec={_0x195783:0x11d,_0x234a4b:0x7,_0x5192b8:0x31,_0x5ef5ae:0x227,_0xd37e95:0x204,_0x212791:0x1df,_0x55ce63:0x1a1,_0x34069f:0x8f,_0x5a3d30:0x87,_0x2d9662:0x86},_0x1fe9b4={_0x5edc1b:0x47e},_0x5a1ae3={_0x13f63e:0xdf,_0x595cd1:0x410};function _0xb97ee6(_0x58cd88,_0x44e8dc,_0x39fb7a,_0x3140d5){return _0x2b6123(_0x39fb7a,_0x44e8dc-_0x5a1ae3._0x13f63e,_0x3140d5- -_0x5a1ae3._0x595cd1,_0x3140d5-0x4);}function _0x17e9a3(_0x1e9855,_0x267b4a,_0x5d5356,_0x18149a){return _0x2b6123(_0x5d5356,_0x267b4a-0x10d,_0x267b4a- -_0x1fe9b4._0x5edc1b,_0x18149a-0xbf);}this['model']=_0x3cb54a[_0xb97ee6(-_0x586dec._0x195783,_0x586dec._0x234a4b,-_0x586dec._0x5192b8,-0x94)]??_0x17e9a3(-0x170,-_0x586dec._0x5ef5ae,-0x2a7,-0x2b2),this[_0x17e9a3(-0x245,-0x20f,-0x1a5,-_0x586dec._0xd37e95)]=_0x3cb54a[_0xb97ee6(-0x1ae,-_0x586dec._0x212791,-0x1e3,-_0x586dec._0x55ce63)]??0x4000,this[_0xb97ee6(-_0x586dec._0x34069f,-0x10a,-0x147,-0xa7)]=_0x3cb54a[_0x17e9a3(-_0x586dec._0x5a3d30,-0x115,-_0x586dec._0x2d9662,-0x167)]?structuredClone(_0x3cb54a['reasoning']):void 0x0;}async['complete'](_0x5257af,_0x22391e){const _0x58feb6={_0x4c87af:0x76,_0x549404:0x58,_0x32612c:0xcd,_0x2ba100:0x60,_0x2d42be:0x1bd,_0x4edaa6:0x266,_0x5c376e:0x21d,_0x2832f9:0x8c,_0x2a3000:0xa4,_0xbbd10c:0x113,_0x2d2eb9:0x197,_0x33ec82:0x77,_0x45f756:0x22,_0x160b43:0x36,_0x29d11b:0x10,_0x498f67:0x41,_0x13edd2:0x88,_0x37a218:0xad,_0x428181:0x44,_0x56f358:0x2,_0x25297e:0xc4,_0x42f3ff:0x20d,_0x3d8c8d:0x1ff,_0x2d89e0:0x1a4,_0x40a381:0x105,_0x2e18f6:0x128,_0x2ba873:0x1cb,_0x77e888:0x104,_0x38441e:0x3d,_0x26e0fb:0xac,_0x479109:0x41,_0x5e679d:0x56,_0x299ce3:0x1e5,_0xfaf48a:0x152,_0x383493:0x48,_0x1af64a:0x7c},_0x4b7b99={_0x3a2d12:0x1a9,_0x1d70ba:0x1cd},_0x5161ac={_0x5f0796:0xdb,_0x164bad:0x401,_0x365f2a:0x29},_0x35dbe9={...structuredClone(_0x5257af),..._0x5257af[_0x52e888(0x144,0x40,0x98,0x45)]===void 0x0&&this[_0x52e888(_0x58feb6._0x4c87af,_0x58feb6._0x549404,0x98,0xad)]!==void 0x0?{'reasoning':structuredClone(this[_0x52e888(_0x58feb6._0x32612c,0x140,0x98,_0x58feb6._0x2ba100)])}:{}};this[_0x59d541(_0x58feb6._0x2d42be,0x1fe,_0x58feb6._0x4edaa6,_0x58feb6._0x5c376e)]['push'](_0x35dbe9);const _0x5be058=findLastMessage(_0x35dbe9['messages'],_0x52e888(_0x58feb6._0x2832f9,_0x58feb6._0x2a3000,0x24,0x9d)),_0x3cb0eb=getToolResultBlocks(_0x5be058),_0x31c110=_0x59d541(_0x58feb6._0xbbd10c,0x96,0x92,_0x58feb6._0x2d2eb9)+this['requests']['length'];if(_0x3cb0eb[_0x52e888(-_0x58feb6._0x33ec82,-_0x58feb6._0x45f756,-_0x58feb6._0x160b43,_0x58feb6._0x29d11b)]>0x0)return createMockResponse(_0x31c110,[{'type':_0x52e888(0xfe,0x13,_0x58feb6._0x498f67,-_0x58feb6._0x13edd2),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x3cb0eb[0x0]['content']}],_0x59d541(_0x58feb6._0x37a218,0x7b,0x1,0xa2),{'inputTokens':0x78,'outputTokens':0x28});const _0x467182=getTextFromMessage(_0x5be058);function _0x52e888(_0x4bde6f,_0x2eb7aa,_0x5df2e8,_0x273fa2){return _0x38c793(_0x4bde6f,_0x2eb7aa-_0x5161ac._0x5f0796,_0x5df2e8- -_0x5161ac._0x164bad,_0x273fa2-_0x5161ac._0x365f2a);}function _0x59d541(_0x456fa8,_0xd0b08a,_0x153c28,_0x6f22cc){return _0x2b6123(_0x153c28,_0xd0b08a-0x19b,_0x456fa8- -_0x4b7b99._0x3a2d12,_0x6f22cc-_0x4b7b99._0x1d70ba);}if(/list .*files|workspace/i[_0x52e888(0xb4,0x7,0xd1,0x26)](_0x467182)&&hasTool(_0x35dbe9,'Bash'))return createMockResponse(_0x31c110,[{'type':_0x52e888(-_0x58feb6._0x428181,0x21,_0x58feb6._0x56f358,_0x58feb6._0x25297e),'id':_0x59d541(_0x58feb6._0x42f3ff,_0x58feb6._0x3d8c8d,0x23d,_0x58feb6._0x2d89e0)+this[_0x59d541(_0x58feb6._0x2d42be,0x287,_0x58feb6._0x40a381,_0x58feb6._0x2e18f6)]['length'],'name':_0x59d541(0x141,_0x58feb6._0x2ba873,0x126,_0x58feb6._0x77e888),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x31c110,[{'type':_0x52e888(_0x58feb6._0x38441e,_0x58feb6._0x26e0fb,_0x58feb6._0x479109,_0x58feb6._0x5e679d),'text':_0x59d541(0x11e,_0x58feb6._0x299ce3,_0x58feb6._0xfaf48a,0x182)+_0x467182}],_0x52e888(_0x58feb6._0x383493,-_0x58feb6._0x1af64a,-0x7b,0x33),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|