@nuvin/agent-core 0.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +4 -0
- package/dist/agent/index.d.ts +19 -0
- package/dist/agent/index.js +1 -0
- package/dist/chunk-C6OLKGP6.js +1 -0
- package/dist/chunk-EJTTW4JQ.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -0
- package/dist/chunk-U2BLX7Y5.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -0
- package/dist/formats/index.d.ts +25 -0
- package/dist/formats/index.js +1 -0
- package/dist/models/index.d.ts +344 -0
- package/dist/models/index.js +1 -0
- package/dist/provider-adapters-BHDQNPHa.d.ts +5 -0
- package/dist/shared/index.d.ts +17 -0
- package/dist/shared/index.js +1 -0
- package/dist/tools/index.d.ts +309 -0
- package/dist/tools/index.js +1 -0
- package/dist/types-BueDJWnx.d.ts +675 -0
- package/package.json +63 -0
|
@@ -0,0 +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};
|