@nuvin/nuvin-cli 1.5.0 → 1.5.1-prerelease

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/cli.js CHANGED
@@ -1,2 +1,34 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x3c17e7,_0x37e713){const _0x534a34={_0x4cf617:0xcf,_0x3e48a0:0xf6,_0x4ec6a3:0x112,_0x2cc367:0x417,_0x1b7c1c:0x4db,_0x484fac:0xd,_0x45c1e4:0x28,_0x881a8e:0x1a8,_0x4d1271:0x4f9,_0x441aa9:0x46b,_0x2fec3a:0x379,_0x6fafeb:0x439,_0x4b7f68:0x483,_0x361d93:0x4b4,_0x158c8f:0x2,_0x3e3414:0xa8,_0x10b3fa:0x81},_0x58d437={_0x553c2d:0x2ed};function _0x5fb9bf(_0x365b12,_0x28d530,_0x246787,_0x19e335){return _0x2644(_0x28d530- -_0x58d437._0x553c2d,_0x19e335);}function _0x341cd8(_0x26cff6,_0x262051,_0x1e1e17,_0x360a2d){return _0x2644(_0x262051-0x1ee,_0x26cff6);}const _0x539597=_0x3c17e7();while(!![]){try{const _0x4f2cab=parseInt(_0x5fb9bf(-0x17c,-_0x534a34._0x4cf617,-_0x534a34._0x3e48a0,-_0x534a34._0x4ec6a3))/0x1+parseInt(_0x341cd8(_0x534a34._0x2cc367,_0x534a34._0x1b7c1c,0x524,0x4c0))/0x2*(parseInt(_0x5fb9bf(-_0x534a34._0x484fac,0xe3,0x1ff,-0xf))/0x3)+-parseInt(_0x5fb9bf(-_0x534a34._0x45c1e4,0xc1,0x186,0xf4))/0x4+parseInt(_0x5fb9bf(_0x534a34._0x881a8e,0x8d,0x110,0x7))/0x5+-parseInt(_0x341cd8(0x300,0x40a,0x346,_0x534a34._0x4d1271))/0x6*(-parseInt(_0x341cd8(0x4d7,_0x534a34._0x441aa9,0x4da,_0x534a34._0x2fec3a))/0x7)+-parseInt(_0x341cd8(0x36c,_0x534a34._0x6fafeb,_0x534a34._0x4b7f68,_0x534a34._0x361d93))/0x8+parseInt(_0x5fb9bf(_0x534a34._0x158c8f,_0x534a34._0x3e3414,_0x534a34._0x10b3fa,0x1))/0x9;if(_0x4f2cab===_0x37e713)break;else _0x539597['push'](_0x539597['shift']());}catch(_0x4ab4df){_0x539597['push'](_0x539597['shift']());}}}(_0x34c5,0x2aec1));import{A as _0x2089f2,B as _0x5277fb,C as _0x28b262,D as _0x176576,E as _0x57fd93,F as _0x41ebea,G as _0x42e4fa,H as _0x428786,I as _0xd2ac0a,J as _0x59d67c,K as _0x44741d,L as _0x1418b6,M as _0x878c8e,N as _0x4cdd6f,O as _0x1a8df9,P as _0x2250f9,Q as _0x5b79f7,R as _0x1e42e9,S as _0x55bfd3,T as _0x49455e,U as _0x33b919,V as _0x25a9b4,W as _0x59f484,a as _0x2dcb38,b as _0x5cd4ed,c as _0x561f9a,d as _0x234193,e as _0x4718dd,f as _0x447be4,g as _0x48ca3f,h as _0x4e6683,i as _0x176480,j as _0x16e255,k as _0x5bd40f,l as _0x79c042,m as _0x4287a9,n as _0x347bf5,o as _0x54d586,p as _0x5edd5f,q as _0x4aabfa,r as _0x1e5d4a,s as _0x6b4dfb,t as _0x453b30,u as _0x5b19c9,v as _0x340b0e,w as _0xb38671,x as _0x3e9a77,y as _0x27a892,z as _0x3f5a8b}from'./chunk-IDGBBBAT.js';import'./chunk-PTCSZTUW.js';import{b as _0x5ec50a}from'./chunk-AJHDLTY3.js';import{render as _0x5471dd}from'ink';import _0x1cee11 from'meow';import*as _0x40f0df from'fs';import*as _0x31b474 from'path';import*as _0x2c2030 from'os';import{useCallback as _0x5077bf,useRef as _0x14fdbf,useState as _0xe0fd56,useEffect as _0xad603d}from'react';import{Box as _0x294fcd,Text as _0x24dd2a}from'ink';import*as _0xf023f0 from'crypto';import*as _0x246776 from'path';import{Component as _0xa82693}from'react';import*as _0x1e664e from'fs/promises';import*as _0x4cf79a from'path';async function Zo(_0x43dd5f,_0x1464f9){const _0x4a3c4a={_0x593abb:0x6e0,_0x30cc18:0x5ed,_0x4bece0:0xd0,_0xdfd0bd:0x68,_0x6119a1:0x56c,_0x2d075d:0x616,_0x245ccf:0x6bf,_0x38dbd7:0x5e1,_0xfc9de9:0x152,_0x3f54b2:0x2b,_0x5cd9ac:0x45a,_0x197e97:0x436,_0x32e33e:0x549,_0xcc21e0:0x428,_0x1dff8c:0x4c7,_0x4d3405:0x3ca,_0x2274fd:0xfe,_0x27c933:0xc5,_0x32a41a:0x58,_0x209eab:0x4ba,_0x260f58:0x46f,_0x2b72ff:0x64,_0x27faa4:0x2,_0x38e7ca:0x114},_0x52b023={_0x2c9dc7:0x215};function _0x377564(_0x36dc63,_0x20bd5f,_0xfbf23,_0xb0882f){return _0x2644(_0x20bd5f-_0x52b023._0x2c9dc7,_0x36dc63);}function _0x23d806(_0x414efd,_0x5eaa4d,_0x1805c5,_0x501afb){return _0x2644(_0x1805c5- -0x2ae,_0x501afb);}if(!_0x43dd5f)return null;try{let _0x2e63e8=await _0x43dd5f['get'](_0x377564(_0x4a3c4a._0x593abb,_0x4a3c4a._0x30cc18,0x545,0x6c5));if(!_0x2e63e8||_0x2e63e8[_0x23d806(-_0x4a3c4a._0x4bece0,0x78,-_0x4a3c4a._0xdfd0bd,0x10)]===0x0)return null;let _0x458545=_0x377564(_0x4a3c4a._0x6119a1,_0x4a3c4a._0x2d075d,_0x4a3c4a._0x245ccf,_0x4a3c4a._0x38dbd7)+new Date()[_0x23d806(0x1a,_0x4a3c4a._0xfc9de9,_0x4a3c4a._0x3f54b2,0xc1)]()['replace'](/[:.]/g,'-')+_0x377564(_0x4a3c4a._0x5cd9ac,_0x4a3c4a._0x197e97,_0x4a3c4a._0x32e33e,_0x4a3c4a._0xcc21e0),_0x4705e4=_0x4cf79a[_0x377564(0x4be,0x467,_0x4a3c4a._0x1dff8c,_0x4a3c4a._0x4d3405)](process['cwd'](),_0x458545),_0xc9e462={'cli':_0x2e63e8,'metadata':{'exportReason':_0x1464f9,'timestamp':new Date()[_0x23d806(_0x4a3c4a._0x2274fd,_0x4a3c4a._0x27c933,_0x4a3c4a._0x3f54b2,-_0x4a3c4a._0x32a41a)](),'messageCount':_0x2e63e8['length']}};return await _0x1e664e[_0x377564(0x4be,_0x4a3c4a._0x209eab,_0x4a3c4a._0x260f58,0x551)](_0x4705e4,JSON['stringify'](_0xc9e462,null,0x2),'utf-8'),_0x4705e4;}catch(_0x46d677){return console[_0x23d806(0x94,-_0x4a3c4a._0x2b72ff,-_0x4a3c4a._0x27faa4,-_0x4a3c4a._0x38e7ca)]('Failed\x20to\x20auto-export\x20history:',_0x46d677),null;}}import{jsx as _0x5dbd74,jsxs as _0x1e7bdd}from'react/jsx-runtime';var gt=class extends _0xa82693{constructor(_0x25edb2){super(_0x25edb2),this['state']={'hasError':!0x1};}static['getDerivedStateFromError'](_0x58feaa){return{'hasError':!0x0,'error':_0x58feaa};}async[_0x479f18(0x125,0x20,0x14a,0x35)](_0x1231d0,_0x5b1905){const _0xa0b9ff={_0x4dac24:0x600,_0x2f6ca8:0x67c,_0x24b304:0x671,_0x5bbfcd:0x6e6,_0x534fee:0x3f3,_0x22cf7a:0x4ac,_0xadbb01:0x4e6,_0x12ca2e:0x64a,_0x519488:0x61c,_0x43c727:0x529,_0x22e969:0x733,_0x1efbff:0x629,_0x268a73:0x59c,_0xe56b3a:0x53f,_0x5869bd:0x6f6,_0x44af39:0x62a,_0x47c2bb:0x622,_0x4c6da0:0x57f,_0x305bc5:0x4aa,_0x4cc555:0x566,_0x397221:0x5e8,_0x3515a9:0x62c,_0x3a70c8:0x5f8,_0xe4d362:0x5a7,_0x38cdb8:0x5fc,_0x3e34bb:0x6bc,_0x3322c1:0x66b,_0x4dc98c:0x5a0,_0xfb5b37:0x57b,_0x177b7e:0x56b,_0x400fe4:0x620,_0x3cb085:0x73c,_0x3f5609:0x59e,_0x3c6133:0x708},_0x1ec746={_0x2cc89b:0x56,_0x36acf1:0x109},_0x57bb67={_0x3c4992:0x98,_0x1d3598:0xe9,_0x3c5984:0x586};function _0x24f5bf(_0x44bff5,_0x5a414b,_0x3cb99a,_0x1b5d86){return _0x479f18(_0x44bff5-_0x57bb67._0x3c4992,_0x5a414b-_0x57bb67._0x1d3598,_0x3cb99a-_0x57bb67._0x3c5984,_0x5a414b);}function _0xc73ef6(_0x541be9,_0x3fa70e,_0x5d8249,_0x57572d){return _0x479f18(_0x541be9-_0x1ec746._0x2cc89b,_0x3fa70e-_0x1ec746._0x36acf1,_0x5d8249-0x4d6,_0x57572d);}if(console[_0xc73ef6(0x64b,_0xa0b9ff._0x4dac24,0x550,_0xa0b9ff._0x2f6ca8)](_0x24f5bf(0x81b,_0xa0b9ff._0x24b304,_0xa0b9ff._0x5bbfcd,0x733),_0x1231d0),console['error'](_0xc73ef6(_0xa0b9ff._0x534fee,0x5a8,_0xa0b9ff._0x22cf7a,_0xa0b9ff._0xadbb01),_0x5b1905),(_0x1231d0[_0x24f5bf(0x728,0x59f,_0xa0b9ff._0x12ca2e,0x537)]['includes'](_0x24f5bf(_0xa0b9ff._0x519488,0x5a3,_0xa0b9ff._0x43c727,0x4f9))||_0x1231d0[_0x24f5bf(0x56d,0x5b0,0x64a,_0xa0b9ff._0x22e969)]['includes'](_0x24f5bf(_0xa0b9ff._0x1efbff,0x469,_0xa0b9ff._0x268a73,_0xa0b9ff._0xe56b3a)))&&console[_0xc73ef6(_0xa0b9ff._0x5869bd,_0xa0b9ff._0x44af39,_0xa0b9ff._0x47c2bb,_0xa0b9ff._0x4c6da0)](_0x24f5bf(0x501,_0xa0b9ff._0x305bc5,_0xa0b9ff._0x4cc555,0x469)),this[_0x24f5bf(_0xa0b9ff._0x397221,_0xa0b9ff._0x3515a9,0x6ac,0x685)]['memory']){let _0x1edeed=await Zo(this[_0xc73ef6(_0xa0b9ff._0x3a70c8,_0xa0b9ff._0xe4d362,_0xa0b9ff._0x38cdb8,0x719)][_0xc73ef6(_0xa0b9ff._0x3e34bb,_0xa0b9ff._0x3322c1,_0xa0b9ff._0x4dc98c,0x473)],'Application\x20error:\x20'+_0x1231d0[_0x24f5bf(_0xa0b9ff._0xfb5b37,0x6e6,0x64a,_0xa0b9ff._0x177b7e)]);_0x1edeed&&(console[_0xc73ef6(0x570,0x61b,0x508,_0xa0b9ff._0x400fe4)](_0x24f5bf(0x63f,_0xa0b9ff._0x3cb085,0x602,_0xa0b9ff._0x3f5609)+_0x1edeed),this[_0x24f5bf(0x735,_0xa0b9ff._0x3c6133,0x782,0x81f)]({'exportPath':_0x1edeed}));}}['render'](){const _0x3f3180={_0x18bec2:0x4bb,_0x36a181:0x395,_0x4e486c:0x55e,_0xd5d3bc:0x3d4,_0x44f730:0x33e,_0x18f98d:0x33f,_0x55443b:0x34f,_0x2dbd1d:0x48f,_0xc4636d:0x3c4,_0x2fe562:0x3bc,_0x1df249:0x2d2,_0x26f316:0x33f,_0x531459:0x1be,_0x407194:0x2e0,_0x359c55:0x2f3,_0x523247:0x26d,_0x3aa687:0x369,_0x5c0703:0x2c2,_0x26a962:0x24f,_0x267090:0x270,_0xc8dac0:0x26e,_0x1818f9:0x2df,_0x32a3c9:0x1eb,_0x33ef8e:0x21f,_0x52434c:0x3ed,_0x1949be:0x424,_0x52abde:0x4c6,_0x6c0b97:0x48d,_0x329ebf:0x53e,_0x13b521:0x538,_0x144a2c:0x3b5,_0x1bc3fc:0x302,_0x2bed2a:0x59a,_0x2778ff:0x4f2,_0x52a0a4:0x4d6,_0x371708:0x577,_0x3f2e21:0x558,_0x55fed3:0x508,_0x382b80:0x3c3,_0x4b41e0:0x29d,_0x2fc7ec:0x205,_0x1c48d6:0x32a,_0x21ee22:0x321},_0x322ead={_0x27314a:0x2e6},_0x228e47={_0x30ab5e:0x1e1,_0x711f9:0x301};function _0x341a65(_0x35034f,_0x310641,_0x2c8ca3,_0x387d18){return _0x479f18(_0x35034f-_0x228e47._0x30ab5e,_0x310641-0x1b,_0x2c8ca3-_0x228e47._0x711f9,_0x35034f);}function _0x4634a1(_0x11481a,_0xb202e2,_0x476bf7,_0x57c85b){return _0x479f18(_0x11481a-0x44,_0xb202e2-0x15f,_0x11481a-_0x322ead._0x27314a,_0x476bf7);}return this[_0x4634a1(_0x3f3180._0x18bec2,0x450,0x5c1,0x3d5)][_0x4634a1(0x2f0,0x3c7,0x3c0,_0x3f3180._0x36a181)]?this[_0x341a65(0x444,0x51e,0x427,_0x3f3180._0x4e486c)][_0x341a65(0x4b9,_0x3f3180._0xd5d3bc,0x426,0x3f2)]||_0x1e7bdd(_0x4634a1(0x39e,_0x3f3180._0x44f730,0x4b4,0x2fa),{'style':{'padding':_0x4634a1(_0x3f3180._0x18f98d,_0x3f3180._0x55443b,0x388,0x2c9),'color':_0x4634a1(0x435,0x422,_0x3f3180._0x2dbd1d,_0x3f3180._0xc4636d)},'children':[_0x5dbd74('h3',{'children':_0x4634a1(_0x3f3180._0x2fe562,_0x3f3180._0x1df249,0x2c0,0x31f)}),_0x5dbd74('p',{'children':_0x341a65(_0x3f3180._0x26f316,_0x3f3180._0x531459,_0x3f3180._0x407194,0x285)}),this['state']['exportPath']&&_0x1e7bdd('p',{'style':{'color':'green','marginTop':_0x4634a1(_0x3f3180._0x359c55,_0x3f3180._0x523247,0x1c0,_0x3f3180._0x3aa687)},'children':[_0x4634a1(_0x3f3180._0x5c0703,0x25f,_0x3f3180._0x26a962,0x2da),this[_0x4634a1(0x4bb,0x3dc,0x395,0x5d6)][_0x341a65(_0x3f3180._0x267090,_0x3f3180._0xc8dac0,0x366,0x36e)]]}),_0x1e7bdd('details',{'style':{'marginTop':'1rem'},'children':[_0x5dbd74(_0x4634a1(_0x3f3180._0x1818f9,_0x3f3180._0x32a3c9,_0x3f3180._0x33ef8e,0x2a4),{'children':_0x4634a1(_0x3f3180._0x52434c,_0x3f3180._0x1949be,_0x3f3180._0x52abde,0x39a)}),_0x5dbd74(_0x4634a1(_0x3f3180._0x6c0b97,0x383,_0x3f3180._0x329ebf,_0x3f3180._0x13b521),{'style':{'fontSize':_0x341a65(_0x3f3180._0x144a2c,_0x3f3180._0x1bc3fc,0x410,0x455),'marginTop':'0.5rem'},'children':this[_0x341a65(_0x3f3180._0x2bed2a,_0x3f3180._0x2778ff,_0x3f3180._0x52a0a4,_0x3f3180._0x371708)]['error']?.[_0x4634a1(0x424,_0x3f3180._0x3f2e21,0x37e,_0x3f3180._0x55fed3)]})]})]}):this[_0x341a65(0x3ac,0x32e,0x427,_0x3f3180._0x382b80)][_0x341a65(_0x3f3180._0x4b41e0,_0x3f3180._0x2fc7ec,_0x3f3180._0x1c48d6,_0x3f3180._0x21ee22)];}};import{useCallback as _0x1847f4,useState as _0x4e5d23}from'react';import*as _0xe6dc26 from'crypto';var fn=()=>{const _0x3438a8={_0x5c0211:0x5c6,_0x359125:0x59f,_0x423dc4:0x638,_0x446273:0x7e5,_0x626998:0x718},_0x2caf2c={_0x3eae59:0x56b,_0x4480a2:0x4fe,_0x10ceb8:0x4df,_0x35bbc5:0x508,_0x5ebe59:0x41e,_0x51af57:0x46f,_0x2e82c7:0x4ad},_0xbf19a7={_0x14b0f4:0x12e,_0x3e7d66:0x8f},_0x374a53={_0x3ad017:0xb3};let [_0x582432,_0x27eb3d]=_0x4e5d23([]),_0x3aedce=()=>{_0x27eb3d([]);},_0x32b189=_0x1847f4(_0x5c4c07=>{function _0x3ca6a9(_0x123d8c,_0x158823,_0x307945,_0x2ed7ff){return _0x2644(_0x2ed7ff- -_0x374a53._0x3ad017,_0x123d8c);}function _0x249111(_0x321335,_0x38b1ad,_0x1525c7,_0xa75659){return _0x2644(_0x1525c7- -0x136,_0x38b1ad);}_0x27eb3d(_0x456914=>_0x456914[_0x3ca6a9(0x18d,0x26c,0x1a4,0x193)]+0x1>_0x2250f9?[..._0x456914[_0x249111(0x2bd,0x328,0x2c8,0x357)](-(_0x2250f9-0x1)),_0x5c4c07]:[..._0x456914,_0x5c4c07]);},[]),_0x5ab1ce=_0x1847f4((_0x1139a9,_0x357768)=>{const _0x3be059={_0x504f09:0x231};_0x27eb3d(_0x2ce87b=>{let _0x528dd0=_0x2ce87b[_0x3143e8(-_0xbf19a7._0x14b0f4,-0x54,-0x135,_0xbf19a7._0x3e7d66)](_0x472e5c=>_0x472e5c['id']===_0x1139a9);function _0x3143e8(_0x123136,_0x5d7484,_0x16d1c4,_0x13d6fb){return _0x2644(_0x5d7484- -_0x3be059._0x504f09,_0x13d6fb);}if(_0x528dd0===-0x1)return _0x2ce87b;let _0x4f484=[..._0x2ce87b];return _0x4f484[_0x528dd0]={..._0x4f484[_0x528dd0],'content':_0x357768},_0x4f484;});},[]),_0x1a5c00=_0x1847f4((_0x7d4792,_0x406c98)=>{const _0x17f6c5={_0x4ca4fa:0x44b,_0x1b9804:0x5ef,_0x22b3f4:0x4cf};_0x27eb3d(_0x4eeff7=>{let _0x341075=_0x4eeff7[_0x15776b(0x40b,_0x17f6c5._0x4ca4fa,_0x17f6c5._0x1b9804,_0x17f6c5._0x22b3f4)](_0x4ff64d=>_0x4ff64d['id']===_0x7d4792);function _0x15776b(_0xd46c93,_0x52e734,_0x10b79e,_0x3225a8){return _0x2644(_0x3225a8-0x2f2,_0x10b79e);}if(_0x341075===-0x1)return _0x4eeff7;let _0x5e7c77=[..._0x4eeff7];return _0x5e7c77[_0x341075]={..._0x5e7c77[_0x341075],'metadata':{..._0x5e7c77[_0x341075]['metadata'],..._0x406c98}},_0x5e7c77;});},[]),_0x5e0600=_0x1847f4(_0x5752e1=>{function _0x4ccbe6(_0x472cb5,_0x3ab2ed,_0x499bf5,_0xacc852){return _0x2644(_0xacc852-0x145,_0x499bf5);}function _0x323406(_0x5b70a6,_0x4e0a98,_0x92a66,_0x2f2ce7){return _0x2644(_0x2f2ce7-0x364,_0x4e0a98);}_0x32b189({'id':_0xe6dc26['randomUUID'](),'type':_0x323406(0x6c7,_0x2caf2c._0x3eae59,_0x2caf2c._0x4480a2,0x610),'content':'error:\x20'+_0x5752e1,'metadata':{'timestamp':new Date()[_0x4ccbe6(0x380,_0x2caf2c._0x10ceb8,_0x2caf2c._0x35bbc5,_0x2caf2c._0x5ebe59)]()},'color':_0x4ccbe6(_0x2caf2c._0x51af57,0x548,_0x2caf2c._0x2e82c7,0x4c6)});},[_0x32b189]);return{'messages':_0x582432,'clearMessages':_0x3aedce,'setLines':_0x8e7b8a=>{const _0x125ff7={_0xcdc16f:0x380};function _0x4dc221(_0x4abda0,_0x2fbc00,_0x18770b,_0x1d35bc){return _0x2644(_0x18770b-0x31a,_0x4abda0);}function _0x2e666b(_0x480563,_0x51bbd7,_0x14ed78,_0x2acb39){return _0x2644(_0x480563-_0x125ff7._0xcdc16f,_0x51bbd7);}_0x8e7b8a[_0x2e666b(_0x3438a8._0x5c0211,0x523,_0x3438a8._0x359125,_0x3438a8._0x423dc4)]>_0x2250f9?_0x27eb3d(_0x8e7b8a[_0x4dc221(_0x3438a8._0x446273,0x66e,_0x3438a8._0x626998,0x733)](-_0x2250f9)):_0x27eb3d([..._0x8e7b8a]);},'appendLine':_0x32b189,'updateLine':_0x5ab1ce,'updateLineMetadata':_0x1a5c00,'handleError':_0x5e0600};},er=fn;import{jsx as _0x28b811,jsxs as _0x4fa9d8}from'react/jsx-runtime';function qt({apiKey:_0x3f98e7,memPersist:_0x24ba35=!0x1,mcpConfigPath:_0x1cedc1,historyPath:_0x30c984}){const _0x1c481b={_0x421e05:0x16c,_0x4545b8:0xdd,_0x428dca:0x57,_0x2a0439:0x133,_0x1ea54c:0x18,_0x32d294:0x22,_0x37f19b:0x11d,_0xcea632:0xaa,_0x46e940:0x5e,_0x144817:0xb4,_0x2bd90b:0x2d,_0x3bc9bb:0x177,_0xfd931d:0x18,_0x331e45:0xf9,_0x2c47f4:0x70,_0x5caab1:0x70,_0x33cbc6:0x64,_0x17c7b0:0x12,_0x47d171:0xc7,_0x28c076:0xa3,_0x41b30e:0x108,_0x2a6e33:0x22b,_0x14e8e5:0x140},_0x529854={_0x5f2c26:0x172},_0x2860d7={_0x161bf8:0x13c},_0x67b3e3={_0x1299bb:0x19d},_0x164790={_0x133e73:0x117,_0xdc3a53:0x50,_0x25e805:0x3e},_0x4083da={_0x5f2f6a:0x7},_0x21704c={_0x47177a:0x646,_0x15efce:0x65f,_0x27c104:0x5ae,_0x48ee49:0x6f7,_0x2b545:0x6ea,_0x335e8a:0x4fc,_0x18f6ba:0x23,_0x104037:0x13f,_0x4401b3:0x81,_0xa993af:0x4ea,_0x233900:0x550,_0x32bd24:0x634,_0x2a80b1:0x640,_0x4a4dc7:0x121,_0x3d476f:0xb9,_0x299397:0x11d,_0xb3aeb8:0x92,_0x470264:0x37,_0x55d66c:0x6b1,_0x3c8095:0x5c4,_0xd2a1a4:0x58,_0x373b72:0xae,_0x10f201:0xc9,_0x1d27ca:0x9f,_0x24446e:0xdb,_0x1cf141:0x8a,_0x45110b:0x50a,_0x2342c4:0x604,_0x3f78ea:0x36,_0x1bc2d8:0x1f7,_0x30dc22:0x557,_0x2ee2c9:0x676,_0x4199ce:0x5ac,_0x4ce5b6:0x1a5,_0x5bd100:0x167,_0x28a114:0x554,_0x57c1c7:0x561,_0x3c5ab4:0x45,_0xbf22c:0x5c},_0x3b5152={_0x596afb:0x564,_0xc46d82:0xce,_0x304a3b:0x80},_0x481820={_0x3e84e2:0x4d4},_0x1c7412={_0x3e7ac9:0xcb,_0x382f32:0x1ad},_0x6259aa={_0x5ddb80:0x248,_0x50eece:0x319},_0x25c85f={_0x75cb2a:0x469,_0x4f4bd4:0x567,_0x341350:0x44c,_0x1a9b62:0x51a,_0x166745:0x438,_0x2d7dfb:0x342},_0x2c40d4={_0x208044:0x412,_0x1b7010:0x1e3},_0x2577a1={_0x1b3abe:0x656,_0x5a5c28:0x59c,_0x4e7368:0x688,_0xddf126:0x621,_0x796b7d:0x611,_0x1c4ddf:0x506,_0x171c52:0x611,_0x34784c:0x519,_0x5304c7:0x8,_0x1670b6:0x5b7,_0x4d2f7b:0x611,_0x5a93e7:0x193,_0x2778be:0xb3,_0x590246:0x153,_0x2d3589:0xf8,_0x544702:0x35,_0x55d7a3:0x64},_0x4a33b2={_0x573515:0x778,_0x2f14d6:0x610,_0x13d656:0x6e6,_0x590b20:0x1dd,_0x1ab245:0x2d5,_0xe8f31:0x364,_0x5210f0:0x5b2,_0x1c686f:0x600,_0x2e9588:0x27b,_0x42ec05:0x245},_0x41e15d={_0x26e16a:0x9c,_0x5b95de:0x7b,_0x58d58e:0x5f,_0x56a8d3:0x5f,_0xda420f:0x442,_0xf71220:0xef,_0x12187d:0x199,_0x24f9bb:0x85,_0x922429:0x9c,_0x4d0e75:0x103,_0x56ee5c:0x1,_0x58d7cf:0xfb,_0x11c82b:0xa2,_0x7a006f:0x60,_0x5c5008:0x3a,_0x566787:0x96,_0x42179e:0x4fc,_0x4a7c61:0x4bc,_0x185636:0x108,_0x36bca0:0x21,_0x2ffa30:0x59,_0x40bf75:0x6a,_0x2e6cb5:0xbc,_0x60beab:0x1,_0x51b27c:0x46f,_0x4cb985:0x40f},_0x38466d={_0x4250c7:0x115,_0x1f1cb0:0x6f},_0x22dfc3={_0x144c18:0xb7},_0x9dfa6c={_0x2b5747:0x12c},_0x448af0={_0x4dfc6c:0x141,_0x594341:0x175},_0x20e211={_0x1b2c19:0x125,_0x306cd8:0x18d};let {explainMode:_0x313651}=_0x347bf5(),[_0x21ce08,_0x3152ce]=_0x5cd4ed(),{messages:_0x209f6a,clearMessages:_0x2a07cd,setLines:_0x1c6de4,appendLine:_0x33ee9f,updateLine:_0x3f485e,updateLineMetadata:_0x5c3ee6,handleError:_0x5e99e9}=er(),[_0x14aef5,_0x58cea5]=_0xe0fd56(!0x1),[_0x11459e,_0x5d142a]=_0xe0fd56(null),[_0xff2f48,_0x31966d]=_0xe0fd56(0x0),[_0x3182b9,_0x27bf2f]=_0xe0fd56(!0x1),[_0x23d6b2,_0x1f3864]=_0xe0fd56(!0x1),{setNotification:_0xda4637}=_0x4aabfa(),{config:_0x484ca7,reload:_0x1dfd06}=_0x41ebea(),[_0x41ad35,_0xd13543]=_0xe0fd56(!0x1),[_0x3ea4a2,_0x515bf8]=_0xe0fd56(_0x1e6a4b(0x136,0x245,_0x1c481b._0x421e05,0x1b6)),{toolApprovalMode:_0x15efb6,setToolApprovalMode:_0x5a86c4,pendingApproval:_0x5d217f,setOrchestrator:_0x2f6fc1}=_0x16e255(),{activeCommand:_0x138ed5,execute:_0x5c2544}=_0x59d67c(),[_0x33b429,_0xffdcab]=_0xe0fd56(0x1),_0x8a8966=_0x14fdbf(null),_0x19e390=_0x14fdbf(null),_0x5803d7=_0x14fdbf(null),_0x45e6d3=_0x14fdbf(!0x1),_0x481796=_0x14fdbf(!0x1),{createNewSession:_0x25eb17,loadHistoryFromFile:_0x1e0f7e}=_0x4718dd(),_0x4ed18a=_0x5077bf(_0x305369=>{function _0x2a5d6a(_0x42b5c5,_0x47f925,_0x2edb6b,_0x1a3549){return _0x1e6a4b(_0x2edb6b-_0x20e211._0x1b2c19,_0x47f925-0x75,_0x2edb6b-_0x20e211._0x306cd8,_0x47f925);}function _0x271fb1(_0x50c16a,_0x11c7ae,_0x3dd8b2,_0x4f95e5){return _0x1e6a4b(_0x4f95e5-0x48,_0x11c7ae-_0x448af0._0x4dfc6c,_0x3dd8b2-_0x448af0._0x594341,_0x3dd8b2);}_0x5d142a(_0x305369),_0x305369?.[_0x271fb1(0x8a,0x10a,0x107,_0x9dfa6c._0x2b5747)]&&_0x305369['cost']>0x0&&_0x31966d(_0x51dab8=>_0x51dab8+_0x305369[_0x2a5d6a(0xfc,0x283,0x209,0x1cc)]);},[]),{orchestrator:_0x369efa,manager:_0x13a4a6,memory:_0xddba3d,status:_0x44c278,send:_0x949969,createNewConversation:_0x5c225d,reinit:_0x85233}=_0x5bd40f({'appendLine':_0x33ee9f,'updateLine':_0x3f485e,'updateLineMetadata':_0x5c3ee6,'setLastMetadata':_0x4ed18a,'handleError':_0x5e99e9,'memPersist':_0x24ba35});function _0x1e6a4b(_0xdc8d48,_0x77a256,_0x3bacc4,_0x19866e){return _0x479f18(_0xdc8d48-0x3b,_0x77a256-0x1a2,_0xdc8d48- -_0x22dfc3._0x144c18,_0x19866e);}_0xad603d(()=>{_0x369efa&&_0x2f6fc1(_0x369efa);},[_0x369efa,_0x2f6fc1]),_0xad603d(()=>{const _0x9b2019={_0xe78dc:0x441,_0x4333b2:0x3c};if(!_0x484ca7[_0x2f51cc(-0x97,-_0x41e15d._0x26e16a,_0x41e15d._0x5b95de,_0x41e15d._0x58d58e)]){_0x27bf2f(!0x0);return;}function _0x2f51cc(_0xe285f5,_0x5d183c,_0x5241d9,_0x523cfc){return _0x1e6a4b(_0x523cfc-_0x38466d._0x4250c7,_0x5d183c-0x9c,_0x5241d9-_0x38466d._0x1f1cb0,_0x5241d9);}function _0x103aa4(_0x3c6948,_0x53626a,_0x19adb1,_0x14fa37){return _0x1e6a4b(_0x3c6948-_0x9b2019._0xe78dc,_0x53626a-0x1c9,_0x19adb1-_0x9b2019._0x4333b2,_0x53626a);}if(_0x484ca7[_0x2f51cc(0x3d,0x94,0x162,_0x41e15d._0x56a8d3)]===_0x103aa4(0x541,_0x41e15d._0xda420f,0x435,0x620)){_0x27bf2f(!0x1);return;}let _0x574f17=_0x484ca7[_0x2f51cc(_0x41e15d._0xf71220,0x3e,-0x3d,_0x41e15d._0x56a8d3)],_0x5a608c=_0x484ca7['providers']?.[_0x574f17],_0x410924=_0x5a608c?.[_0x2f51cc(_0x41e15d._0x12187d,_0x41e15d._0x24f9bb,0x11a,_0x41e15d._0x922429)]&&Array[_0x2f51cc(_0x41e15d._0x4d0e75,_0x41e15d._0x56ee5c,_0x41e15d._0x58d7cf,_0x41e15d._0x11c82b)](_0x5a608c[_0x2f51cc(-_0x41e15d._0x7a006f,-_0x41e15d._0x5c5008,-_0x41e15d._0x566787,0x9c)])&&_0x5a608c[_0x103aa4(0x3c8,_0x41e15d._0x42179e,0x30e,_0x41e15d._0x4a7c61)][_0x2f51cc(-0xf,-0x4d,_0x41e15d._0x185636,0x72)]>0x0,_0x548c59=_0x5a608c?.[_0x2f51cc(_0x41e15d._0x36bca0,_0x41e15d._0x2ffa30,_0x41e15d._0x40bf75,_0x41e15d._0x2e6cb5)]||_0x5a608c?.[_0x2f51cc(_0x41e15d._0x60beab,0x1ce,0x1b2,0x120)]||_0x484ca7[_0x2f51cc(0x198,0x184,0x181,0x19f)]?.[_0x574f17]||_0x484ca7[_0x103aa4(0x44c,_0x41e15d._0x51b27c,0x34e,_0x41e15d._0x4cb985)];_0x27bf2f(!_0x410924&&!_0x548c59);},[_0x484ca7]);let _0x28e729=async()=>{_0x1f3864(!0x0),await _0x1dfd06(),_0x85233&&await _0x85233(),_0x27bf2f(!0x1);};_0xad603d(()=>{const _0x48b9e5={_0x185c27:0x42c,_0x16a4ff:0x4ad,_0xac6d39:0x4a1,_0x27384d:0x2a4,_0x4f0fa0:0x3b1,_0x1ea9a2:0x3c6,_0x3a5195:0x483,_0x1d8a58:0x26c,_0x483074:0xb0,_0x703fd:0x10c,_0x54af1d:0x4f4,_0x33276e:0x51e,_0x5e64ce:0x593,_0x5b8b8d:0x4a1,_0xa451e2:0x2a3,_0x38425e:0x1f8,_0x474048:0x1f1,_0x2df7fc:0xe1,_0x153190:0x152},_0x2e8a9a={_0x50c75e:0xc1},_0x369cd2={_0x9e97da:0x327},_0x233cce={_0x2e4dc9:0x154},_0x250791={_0x1b2dff:0x4b};function _0x2db21e(_0x121a70,_0x337ab5,_0x3588c5,_0x2a4e68){return _0x1e6a4b(_0x121a70-0x336,_0x337ab5-0x16e,_0x3588c5-_0x250791._0x1b2dff,_0x3588c5);}let _0x8a865d=_0x10f2a=>_0x33ee9f(_0x10f2a),_0x5a7ac5=_0x71ff26=>_0x5e99e9(_0x71ff26),_0x520b22=_0x4dd01c=>{_0x5d142a(_0x4dd01c);},_0x545b5b=()=>{function _0x42cd28(_0x46c04d,_0x135c74,_0x2a3880,_0x4e443c){return _0x2644(_0x46c04d- -_0x233cce._0x2e4dc9,_0x4e443c);}function _0x3c8689(_0x5873d5,_0x45142d,_0x465560,_0x55f89d){return _0x2644(_0x55f89d-_0x369cd2._0x9e97da,_0x5873d5);}_0x31966d(0x0),_0x5d142a(null),_0x33ee9f({'id':_0xf023f0[_0x3c8689(_0x4a33b2._0x573515,_0x4a33b2._0x2f14d6,0x71c,_0x4a33b2._0x13d656)](),'type':_0x42cd28(_0x4a33b2._0x590b20,0x1dc,_0x4a33b2._0x1ab245,0xfd),'content':_0x42cd28(0x28e,0x15b,0x3c5,_0x4a33b2._0xe8f31),'metadata':{'timestamp':new Date()[_0x3c8689(0x4cb,_0x4a33b2._0x5210f0,0x722,_0x4a33b2._0x1c686f)]()},'color':_0x42cd28(_0x4a33b2._0x2e9588,0x249,_0x4a33b2._0x42ec05,0x364)});},_0x2fb47a=async _0x283c19=>{const _0x224098={_0x10e046:0x23e};function _0x2a79a2(_0x517ce6,_0x1b344f,_0x544e3c,_0x2eed32){return _0x2644(_0x544e3c- -_0x224098._0x10e046,_0x517ce6);}function _0x51d9bb(_0x543f76,_0x473859,_0x27aafd,_0x52af45){return _0x2644(_0x27aafd-0x2fa,_0x473859);}if(!_0x45e6d3[_0x51d9bb(0x48c,_0x2577a1._0x1b3abe,_0x2577a1._0x5a5c28,_0x2577a1._0x4e7368)]){_0x45e6d3['current']=!0x0;try{_0x31966d(0x0);let _0x821a7d=_0x283c19[_0x51d9bb(_0x2577a1._0xddf126,0x664,_0x2577a1._0x796b7d,_0x2577a1._0x1c4ddf)]?await _0x25eb17():{'sessionId':void 0x0,'sessionDir':void 0x0};await _0x5c225d({..._0x821a7d,'memPersist':_0x283c19[_0x51d9bb(0x512,0x71d,_0x2577a1._0x171c52,_0x2577a1._0x34784c)]}),_0x33ee9f({'id':_0xf023f0['randomUUID'](),'type':_0x2a79a2(0x4d,0x27,0xf3,-_0x2577a1._0x5304c7),'content':_0x283c19[_0x51d9bb(0x61d,_0x2577a1._0x1670b6,_0x2577a1._0x4d2f7b,0x67b)]?'Started\x20new\x20conversation\x20session':_0x2a79a2(0xfe,0x263,0x160,_0x2577a1._0x5a93e7),'metadata':{'timestamp':new Date()['toISOString']()},'color':_0x51d9bb(0x604,0x5b2,0x6c9,0x67e)});}catch(_0x360b57){let _0x2d2f8c=_0x360b57 instanceof Error?_0x360b57[_0x2a79a2(0x11f,_0x2577a1._0x2778be,0xb8,_0x2577a1._0x590246)]:String(_0x360b57);_0x5e99e9(_0x2a79a2(0x163,_0x2577a1._0x2d3589,0xb2,-_0x2577a1._0x544702)+_0x2d2f8c);}finally{_0x45e6d3[_0x2a79a2(0x161,0xca,_0x2577a1._0x55d7a3,0x7c)]=!0x1;}}};function _0x1e0e53(_0x1fa1cd,_0x41323f,_0x235965,_0x49b417){return _0x1e6a4b(_0x235965-_0x2c40d4._0x208044,_0x41323f-0x178,_0x235965-_0x2c40d4._0x1b7010,_0x49b417);}return _0x447be4['on'](_0x1e0e53(0x445,0x291,0x34f,0x436),_0x8a865d),_0x447be4['on']('ui:error',_0x5a7ac5),_0x447be4['on']('ui:lastMetadata',_0x520b22),_0x447be4['on']('ui:lines:clear',_0x2a07cd),_0x447be4['on'](_0x2db21e(_0x25c85f._0x75cb2a,_0x25c85f._0x4f4bd4,0x58f,0x485),_0x1c6de4),_0x447be4['on']('ui:clear:complete',_0x545b5b),_0x447be4['on'](_0x1e0e53(_0x25c85f._0x341350,_0x25c85f._0x1a9b62,_0x25c85f._0x166745,_0x25c85f._0x2d7dfb),_0x2fb47a),()=>{const _0x1c7b8d={_0x48ef48:0x16b,_0x4f3878:0xd3};function _0x86a357(_0x595596,_0x5d0662,_0x4341e5,_0x25e191){return _0x1e0e53(_0x595596-0xee,_0x5d0662-0x2d,_0x25e191-_0x2e8a9a._0x50c75e,_0x595596);}function _0xf9a7a(_0x4f6689,_0x3eb9cd,_0xdd6d35,_0x13824c){return _0x2db21e(_0x3eb9cd- -_0x1c7b8d._0x48ef48,_0x3eb9cd-_0x1c7b8d._0x4f3878,_0x13824c,_0x13824c-0x108);}_0x447be4[_0x86a357(0x382,_0x48b9e5._0x185c27,_0x48b9e5._0x16a4ff,_0x48b9e5._0xac6d39)]('ui:line',_0x8a865d),_0x447be4['off'](_0x86a357(0x32a,_0x48b9e5._0x27384d,_0x48b9e5._0x4f0fa0,_0x48b9e5._0x1ea9a2),_0x5a7ac5),_0x447be4[_0x86a357(0x5a8,0x415,0x490,_0x48b9e5._0xac6d39)]('ui:lastMetadata',_0x520b22),_0x447be4[_0x86a357(0x465,_0x48b9e5._0x3a5195,0x386,0x4a1)](_0xf9a7a(0x1d7,0x2df,_0x48b9e5._0x1d8a58,0x1cb),_0x2a07cd),_0x447be4[_0xf9a7a(0x261,0x199,_0x48b9e5._0x483074,_0x48b9e5._0x703fd)]('ui:lines:set',_0x1c6de4),_0x447be4[_0x86a357(_0x48b9e5._0x54af1d,_0x48b9e5._0x33276e,_0x48b9e5._0x5e64ce,_0x48b9e5._0x5b8b8d)](_0xf9a7a(0x3dc,_0x48b9e5._0xa451e2,0x225,0x230),_0x545b5b),_0x447be4[_0x86a357(0x4d5,0x53f,0x3be,0x4a1)](_0xf9a7a(_0x48b9e5._0x38425e,_0x48b9e5._0x474048,_0x48b9e5._0x2df7fc,_0x48b9e5._0x153190),_0x2fb47a);};},[_0x33ee9f,_0x5e99e9,_0x5c225d,_0x25eb17,_0x2a07cd,_0x1c6de4]),_0xad603d(()=>{_0x1e5d4a['setMemory'](_0xddba3d);},[_0xddba3d]),_0xad603d(()=>{const _0x4967fb={_0x315074:0x8f};function _0x31f562(_0x42ae73,_0x4cb6be,_0x1ef259,_0x2815f7){return _0x1e6a4b(_0x2815f7-0x2b8,_0x4cb6be-_0x4967fb._0x315074,_0x1ef259-0x134,_0x1ef259);}_0x1e5d4a[_0x31f562(_0x6259aa._0x5ddb80,_0x6259aa._0x50eece,0x2c7,0x33c)](_0x13a4a6);},[_0x13a4a6]),_0xad603d(()=>{const _0x4a9dc4={_0x112740:0x6d9,_0x5d20fb:0x2b3,_0x40d410:0x3e3,_0x5400f2:0x38c,_0x36feae:0x289,_0x254f9d:0x177,_0x10f7ec:0x167,_0xae1717:0x23d,_0xf5b98e:0x1a7,_0x7f754d:0x17e,_0x3fb1d0:0x325,_0x3d8ab8:0x42f,_0x3d73d9:0x37d,_0x5bb038:0x781,_0x4bed6e:0x717,_0x27a3a2:0x7dc,_0x167812:0x77c,_0x21d075:0x186,_0x45adc2:0x497,_0x23f4b2:0x4c3,_0x3c83fe:0x6f8,_0x3fa9f5:0x247,_0x18d79a:0x295,_0x5eb183:0x6f5,_0x247969:0x58d,_0x22fc0b:0x5dd,_0x3587e8:0x20c,_0x1c7f96:0x178,_0x46548b:0x1ac,_0x5c55f6:0xd7,_0xc79da1:0x7d,_0x1eb66c:0x16a,_0x3dfa14:0x32d,_0x38d0d4:0x206,_0x4d5319:0x21a,_0x35d1b7:0x19b,_0x1f7b2f:0x631,_0x57630a:0x6c6,_0xadd785:0x64e,_0x3fb247:0x6ae,_0x10de99:0x5ab,_0x4dbe2e:0x345,_0x5674ab:0x27b,_0x269020:0x24e,_0x3de92e:0x615,_0x459495:0x6dc,_0x41d663:0x6a1,_0x322d08:0x6cd,_0x253d76:0x58c,_0x16d741:0x635,_0x5b43d4:0x250,_0x127db2:0x24d};function _0x30a293(_0x38fed5,_0x9aeecb,_0x1f1a41,_0x4a8948){return _0x1e6a4b(_0x4a8948-0x46a,_0x9aeecb-_0x1c7412._0x3e7ac9,_0x1f1a41-_0x1c7412._0x382f32,_0x1f1a41);}if(!_0x30c984||!_0xddba3d||_0x481796[_0x30a293(0x31c,_0x481820._0x3e84e2,0x447,0x423)])return;((async()=>{const _0x2286bb={_0x30ba6a:0x213};function _0x120759(_0x108d1d,_0x56b435,_0x292007,_0x158fad){return _0x30a293(_0x108d1d-0xba,_0x56b435-0x32,_0x158fad,_0x292007- -_0x2286bb._0x30ba6a);}function _0x5a7cd8(_0x53affe,_0x3382f2,_0x30661b,_0x500564){return _0x30a293(_0x53affe-0xf4,_0x3382f2-0xed,_0x53affe,_0x3382f2-0x1d7);}try{let _0x56c7f0=_0x246776[_0x5a7cd8(_0x4a9dc4._0x112740,0x5aa,0x638,0x545)](_0x30c984),_0x3c3f80=await _0x1e0f7e(_0x56c7f0);if(_0x3c3f80[_0x5a7cd8(0x69a,0x75b,0x67d,0x7d5)]==='messages')_0x3c3f80[_0x120759(_0x4a9dc4._0x5d20fb,_0x4a9dc4._0x40d410,_0x4a9dc4._0x5400f2,0x490)]&&_0x3c3f80['cliMessages'][_0x120759(_0x4a9dc4._0x36feae,_0x4a9dc4._0x254f9d,0x1b4,0x1a4)]>0x0&&await _0xddba3d[_0x120759(_0x4a9dc4._0x10f7ec,_0x4a9dc4._0xae1717,_0x4a9dc4._0xf5b98e,_0x4a9dc4._0x7f754d)](_0x5a7cd8(0x6e3,0x730,0x759,0x859),_0x3c3f80[_0x120759(0x35b,_0x4a9dc4._0x3fb1d0,_0x4a9dc4._0x5400f2,_0x4a9dc4._0x3d8ab8)]),_0x3c3f80['metadata']&&_0x5d142a(_0x3c3f80[_0x120759(_0x4a9dc4._0x3d73d9,0x21c,0x246,0x275)]),_0x1c6de4(_0x3c3f80['lines']),_0x33ee9f({'id':_0xf023f0[_0x5a7cd8(_0x4a9dc4._0x5bb038,_0x4a9dc4._0x4bed6e,_0x4a9dc4._0x27a3a2,_0x4a9dc4._0x167812)](),'type':'info','content':_0x120759(_0x4a9dc4._0x21d075,0x2d1,0x1e5,0x1c9)+_0x3c3f80['count']+_0x5a7cd8(_0x4a9dc4._0x45adc2,0x5c3,_0x4a9dc4._0x23f4b2,_0x4a9dc4._0x3c83fe)+_0x30c984,'metadata':{'timestamp':new Date()[_0x120759(0x220,0x15d,_0x4a9dc4._0x3fa9f5,_0x4a9dc4._0x18d79a)]()},'color':'green'}),_0x481796[_0x5a7cd8(_0x4a9dc4._0x5eb183,0x5fa,_0x4a9dc4._0x247969,0x564)]=!0x0;else{let _0x209c71=_0x3c3f80[_0x5a7cd8(0x506,0x59b,0x5aa,_0x4a9dc4._0x22fc0b)]===_0x120759(0x29f,0x2f6,_0x4a9dc4._0x3587e8,_0x4a9dc4._0x1c7f96)?'History\x20file\x20'+_0x30c984+_0x120759(0x1b3,_0x4a9dc4._0x46548b,0x1e1,_0x4a9dc4._0x5c55f6):_0x120759(_0x4a9dc4._0xc79da1,0x39,_0x4a9dc4._0x1eb66c,0x129)+_0x30c984;_0x33ee9f({'id':_0xf023f0[_0x120759(0x439,0x223,_0x4a9dc4._0x3dfa14,0x2d3)](),'type':_0x120759(_0x4a9dc4._0x38d0d4,0x1fa,_0x4a9dc4._0x4d5319,_0x4a9dc4._0x35d1b7),'content':_0x209c71,'metadata':{'timestamp':new Date()[_0x5a7cd8(0x647,_0x4a9dc4._0x1f7b2f,0x70f,0x530)]()},'color':_0x5a7cd8(0x6b5,0x6d9,_0x4a9dc4._0x57630a,0x5c2)});}}catch(_0xa9e8e3){let _0x33a753=_0xa9e8e3 instanceof Error?_0xa9e8e3[_0x5a7cd8(0x62d,_0x4a9dc4._0xadd785,_0x4a9dc4._0x3fb247,_0x4a9dc4._0x10de99)]:String(_0xa9e8e3);_0x33ee9f({'id':_0xf023f0[_0x120759(_0x4a9dc4._0x4dbe2e,_0x4a9dc4._0x5674ab,0x32d,_0x4a9dc4._0x269020)](),'type':'error','content':_0x5a7cd8(0x6e9,_0x4a9dc4._0x3de92e,_0x4a9dc4._0x459495,_0x4a9dc4._0x41d663)+_0x33a753,'metadata':{'timestamp':new Date()[_0x5a7cd8(_0x4a9dc4._0x322d08,0x631,_0x4a9dc4._0x253d76,_0x4a9dc4._0x16d741)]()},'color':_0x120759(_0x4a9dc4._0x5b43d4,_0x4a9dc4._0x127db2,0x2ef,0x356)});}})());},[_0x30c984,_0xddba3d]);let _0x109ffd=_0x5077bf(async _0x4a0931=>{const _0x2d9c6d={_0x173190:0x71};function _0x2bf9b3(_0x535320,_0x2c61b6,_0x2bd600,_0x28e4f4){return _0x1e6a4b(_0x2c61b6-_0x3b5152._0x596afb,_0x2c61b6-_0x3b5152._0xc46d82,_0x2bd600-_0x3b5152._0x304a3b,_0x2bd600);}let _0x32f7c9=typeof _0x4a0931==_0x2bf9b3(_0x21704c._0x47177a,_0x21704c._0x15efce,_0x21704c._0x27c104,0x550)?_0x4a0931:_0x4a0931[_0x2bf9b3(_0x21704c._0x48ee49,0x646,0x5f8,0x63a)]??_0x4a0931[_0x2bf9b3(0x634,0x5cd,_0x21704c._0x2b545,_0x21704c._0x335e8a)]??'';_0x33ee9f({'id':_0xf023f0[_0x13aa21(-0xbb,-0x4a,0x18e,0x65)](),'type':'user','content':_0x32f7c9,'metadata':{'timestamp':new Date()[_0x13aa21(0x5c,-_0x21704c._0x18f6ba,-_0x21704c._0x104037,-_0x21704c._0x4401b3)]()},'color':_0x2bf9b3(0x613,0x4de,_0x21704c._0xa993af,0x48c)}),_0x58cea5(!0x0);function _0x13aa21(_0x8a3e23,_0x5f2bbd,_0xb0f459,_0x270b64){return _0x1e6a4b(_0x270b64- -_0x2d9c6d._0x173190,_0x5f2bbd-0x1b2,_0xb0f459-0x11f,_0x5f2bbd);}let _0x103ccb=new AbortController();_0x8a8966['current']=_0x103ccb;try{if(!_0x949969)throw new Error(_0x2bf9b3(_0x21704c._0x233900,_0x21704c._0x32bd24,0x504,_0x21704c._0x2a80b1));if(await _0x949969(_0x4a0931,{'conversationId':_0x13aa21(0xb3,_0x21704c._0x4a4dc7,0x134,0x7e),'stream':!0x0,'signal':_0x103ccb[_0x13aa21(-_0x21704c._0x3d476f,0x5,-0x12e,-_0x21704c._0x299397)]}),_0x13a4a6&&_0x32f7c9)try{await _0x13a4a6[_0x13aa21(-_0x21704c._0xb3aeb8,0x45,_0x21704c._0x470264,0x6e)](_0x32f7c9,_0x2bf9b3(0x6c7,0x653,_0x21704c._0x55d66c,_0x21704c._0x3c8095));}catch(_0x42f400){console[_0x13aa21(0xa,-_0x21704c._0xd2a1a4,-0x22,-_0x21704c._0x373b72)](_0x13aa21(0x48,-0x1d7,-_0x21704c._0x10f201,-_0x21704c._0x1d27ca),_0x42f400);}}catch(_0x115916){let _0x188624=_0x115916,_0x516970=typeof _0x188624?.['message']==_0x13aa21(0x92,_0x21704c._0x24446e,0x1a2,_0x21704c._0x1cf141)?_0x188624[_0x2bf9b3(_0x21704c._0x45110b,0x571,_0x21704c._0x2342c4,0x68d)]:String(_0x188624);_0x188624?.['name']===_0x13aa21(_0x21704c._0x3f78ea,-0x46,_0x21704c._0x1bc2d8,0xc9)?_0x33ee9f({'id':_0xf023f0[_0x2bf9b3(_0x21704c._0x30dc22,0x63a,0x76a,_0x21704c._0x2ee2c9)](),'type':_0x2bf9b3(0x498,_0x21704c._0x4199ce,0x69b,0x53f),'content':_0x13aa21(-0x26e,-_0x21704c._0x4ce5b6,-0x251,-_0x21704c._0x5bd100),'metadata':{'timestamp':new Date()[_0x2bf9b3(0x672,_0x21704c._0x28a114,0x542,_0x21704c._0x57c1c7)]()},'color':_0x13aa21(-0x6a,0x3d,_0x21704c._0x3c5ab4,-_0x21704c._0xbf22c)}):_0x5e99e9(_0x516970);}finally{_0x58cea5(!0x1),_0x8a8966['current']=null;}},[_0x949969,_0x13a4a6,_0x33ee9f,_0x5e99e9]);_0x79c042(),_0x54d586({'busy':_0x14aef5,'pendingApproval':_0x5d217f,'inputAreaRef':_0x5803d7,'onNotification':_0xda4637});function _0x18bbc6(_0xe1251f,_0x33f1ee,_0x2618b4,_0x16febc){return _0x479f18(_0xe1251f-0x131,_0x33f1ee-_0x4083da._0x5f2f6a,_0x33f1ee- -0xd2,_0x16febc);}let _0x2812cc=_0x6b4dfb({'appendLine':_0x33ee9f,'handleError':_0x5e99e9,'executeCommand':_0x5c2544,'processMessage':_0x109ffd}),_0x1a5703=_0x5077bf(()=>{_0xffdcab(_0x52c64f=>_0x52c64f+0x1);},[]);return _0xad603d(()=>{const _0x4e1e6b={_0x353d5d:0x168,_0x3d3239:0xbd,_0x4560b8:0x28e,_0x4f0c67:0x28f,_0x58aca1:0x24,_0x4c530a:0x3b,_0x254e19:0x5e};let _0x668a3c=()=>{_0x5a86c4(_0x4d79f1=>!_0x4d79f1);},_0x29641b=()=>{_0xd13543(_0x3d0b8b=>!_0x3d0b8b);};function _0x4df82c(_0x4192db,_0x50e531,_0x3b3289,_0x124e44){return _0x1e6a4b(_0x124e44-0xa0,_0x50e531-0x149,_0x3b3289-0xe7,_0x3b3289);}function _0x453b92(_0x36a9ee,_0x5b9e6e,_0x4f8b34,_0x5f77f5){return _0x1e6a4b(_0x4f8b34-0x362,_0x5b9e6e-0xd8,_0x4f8b34-0x69,_0x36a9ee);}return _0x447be4['on'](_0x4df82c(0x30,0xab,0x1d7,0xee),_0x668a3c),_0x447be4['on'](_0x4df82c(0x13f,0x1f6,0x168,0x107),_0x1a5703),_0x447be4['on'](_0x4df82c(-0x73,_0x164790._0x133e73,-_0x164790._0xdc3a53,_0x164790._0x25e805),_0x29641b),()=>{const _0x3f55b2={_0x2850be:0x221},_0x2798c1={_0x204247:0x12b};function _0x19ea62(_0x4b4528,_0x483f8d,_0x49907e,_0xc63e98){return _0x4df82c(_0x4b4528-0xbf,_0x483f8d-0x1d7,_0x483f8d,_0xc63e98- -_0x2798c1._0x204247);}function _0x3c497c(_0xcc6165,_0x28981e,_0x158608,_0x2f1648){return _0x4df82c(_0xcc6165-0xd1,_0x28981e-0x5d,_0xcc6165,_0x158608-_0x3f55b2._0x2850be);}_0x447be4[_0x19ea62(-_0x4e1e6b._0x353d5d,-0x196,-0x108,-_0x4e1e6b._0x3d3239)]('command:sudo:toggle',_0x668a3c),_0x447be4[_0x3c497c(0x363,_0x4e1e6b._0x4560b8,_0x4e1e6b._0x4f0c67,0x2b4)](_0x19ea62(0xff,0x95,-0x7a,-_0x4e1e6b._0x58aca1),_0x1a5703),_0x447be4[_0x19ea62(-_0x4e1e6b._0x4c530a,-0x1c0,-_0x4e1e6b._0x254e19,-0xbd)]('ui:input:toggleVimMode',_0x29641b);};},[_0x1a5703,_0x5a86c4]),_0xad603d(()=>{function _0xa4fee(_0x110d21,_0x1098ca,_0x1a3fac,_0x734548){return _0x1e6a4b(_0x1a3fac-0x1b9,_0x1098ca-0x1d4,_0x1a3fac-_0x67b3e3._0x1299bb,_0x110d21);}if(_0x19e390['current']===null){_0x19e390[_0xa4fee(0x1e5,0xae,0x172,0x236)]=_0x41ad35;return;}function _0xb9e946(_0x2894d1,_0x289838,_0x2b9e1e,_0x1aeef6){return _0x1e6a4b(_0x2894d1-0x31d,_0x289838-_0x2860d7._0x161bf8,_0x2b9e1e-0x1ae,_0x1aeef6);}_0x19e390['current']!==_0x41ad35&&(_0x19e390[_0xa4fee(0x27e,0x3e,_0x529854._0x5f2c26,0xd5)]=_0x41ad35);},[_0x41ad35]),_0xad603d(()=>{if(!(!_0x21ce08||_0x21ce08<0xa))try{_0x1a5703();}catch(_0x4314b3){console['warn']('Error\x20during\x20resize\x20refresh,\x20continuing\x20with\x20safe\x20state:',_0x4314b3);}},[_0x21ce08,_0x1a5703,_0x313651]),_0x3182b9?_0x28b811(gt,{'memory':_0xddba3d,'fallback':_0x4fa9d8(_0x294fcd,{'flexDirection':'column','padding':0x1,'children':[_0x28b811(_0x294fcd,{'children':_0x28b811(_0x24dd2a,{'children':_0x18bbc6(-0x171,-_0x1c481b._0x4545b8,_0x1c481b._0x428dca,-_0x1c481b._0x2a0439)})}),_0x28b811(_0x294fcd,{'children':_0x28b811(_0x24dd2a,{'children':_0x1e6a4b(_0x1c481b._0x1ea54c,-_0x1c481b._0x32d294,-_0x1c481b._0x37f19b,-_0x1c481b._0xcea632)})})]}),'children':_0x28b811(_0x25a9b4,{'onComplete':_0x28e729,'llmFactory':_0x13a4a6?.[_0x18bbc6(-_0x1c481b._0x46e940,_0x1c481b._0x144817,-_0x1c481b._0x2bd90b,_0x1c481b._0x3bc9bb)]()})}):_0x28b811(gt,{'memory':_0xddba3d,'fallback':_0x4fa9d8(_0x294fcd,{'flexDirection':'column','padding':0x1,'children':[_0x28b811(_0x294fcd,{'children':_0x28b811(_0x24dd2a,{'children':'Terminal\x20rendering\x20error\x20occurred.\x20The\x20app\x20will\x20continue\x20running.'})}),_0x28b811(_0x294fcd,{'children':_0x28b811(_0x24dd2a,{'children':_0x1e6a4b(_0x1c481b._0xfd931d,_0x1c481b._0x331e45,0x148,-0x6)})})]}),'children':_0x4fa9d8(_0x294fcd,{'flexDirection':_0x1e6a4b(-_0x1c481b._0x2c47f4,-0xd5,-0x76,_0x1c481b._0x5caab1),'height':_0x18bbc6(-_0x1c481b._0x33cbc6,_0x1c481b._0x17c7b0,_0x1c481b._0x47d171,-0x49),'width':_0x18bbc6(0x9,0x12,_0x1c481b._0x28c076,-_0x1c481b._0x41b30e),'children':[_0x28b811(_0x2089f2,{'messages':_0x209f6a,'headerKey':_0x33b429},_0x1e6a4b(0xf4,_0x1c481b._0x2a6e33,_0x1c481b._0x14e8e5,0x1e1)+_0x33b429),!_0x313651&&_0x28b811(_0x44741d,{'ref':_0x5803d7,'busy':_0x14aef5,'vimModeEnabled':_0x41ad35,'hasActiveCommand':!!_0x138ed5,'abortRef':_0x8a8966,'onNotification':_0xda4637,'onBusyChange':_0x58cea5,'onInputSubmit':_0x2812cc,'onVimModeToggle':()=>_0xd13543(_0x36bfb3=>!_0x36bfb3),'onVimModeChanged':_0x515bf8}),_0x28b811(_0x42e4fa,{'status':_0x44c278,'lastMetadata':_0x11459e,'accumulatedCost':_0xff2f48,'toolApprovalMode':_0x15efb6,'vimModeEnabled':_0x41ad35,'vimMode':_0x3ea4a2,'workingDirectory':process['cwd']()})]})});}import*as _0x3d6318 from'crypto';function or(_0x3024a7){const _0x317316={_0x35219c:0xb4,_0x1bffc0:0x98,_0x4e675a:0x326,_0x5936f9:0x1aa,_0x3046b6:0x1fc},_0x149132={_0x12dc22:0xc8,_0x10e56d:0x3e8,_0x180755:0x370,_0x2b8248:0x18c,_0x447dbf:0x2a2,_0x26e331:0x33b,_0x463aaf:0x273,_0x5a4d2e:0x303,_0x50bed9:0x257,_0x28b968:0x69,_0x2af6fd:0x41,_0x4ab643:0x3c8,_0x88dd96:0x179,_0x48ad55:0x1c3,_0x5bd5ef:0x1e7},_0x5eaf12={_0x50792b:0x14e,_0x3aed3e:0x12e},_0x45f147={_0x21815:0x1e6,_0x4334f6:0xb7},_0x183e80={_0x1fd295:0x1,_0x339b09:0x125,_0x42a839:0x457},_0x424fa8={_0x53c912:0x1f,_0x3d2756:0x106};function _0x181530(_0x28e592,_0x5c1f33,_0x32ba77,_0x4fd9f8){return _0x479f18(_0x28e592-_0x424fa8._0x53c912,_0x5c1f33-_0x424fa8._0x3d2756,_0x5c1f33-0x44,_0x32ba77);}function _0x5b441d(_0x459b91,_0x3ef85c,_0x20de4c,_0x26d0f6){return _0x479f18(_0x459b91-_0x183e80._0x1fd295,_0x3ef85c-_0x183e80._0x339b09,_0x459b91-_0x183e80._0x42a839,_0x26d0f6);}_0x3024a7[_0x181530(-0xff,0x1,-_0x317316._0x35219c,0xdd)]({'id':_0x181530(_0x317316._0x1bffc0,0x3b,-0x3d,-0x35),'type':_0x5b441d(0x426,0x45d,_0x317316._0x4e675a,0x41f),'description':'Exit\x20the\x20application\x20after\x20cleaning\x20up\x20resources.','category':_0x181530(_0x317316._0x5936f9,_0x317316._0x3046b6,0x304,0x210),async 'handler'({eventBus:_0x5ebc74}){const _0x4eb7a1={_0x1b1e62:0x453,_0x103202:0x61a};function _0x59128b(_0x47b635,_0x5e5a48,_0x131c16,_0x57b9b4){return _0x5b441d(_0x5e5a48- -_0x45f147._0x21815,_0x5e5a48-0x64,_0x131c16-_0x45f147._0x4334f6,_0x131c16);}function _0x596d33(_0x3e0c43,_0x2475c7,_0x410a24,_0x21f290){return _0x5b441d(_0x2475c7- -0x601,_0x2475c7-_0x5eaf12._0x50792b,_0x410a24-_0x5eaf12._0x3aed3e,_0x410a24);}_0x5ebc74['emit'](_0x596d33(-0x282,-0x1b6,-0x188,-_0x149132._0x12dc22),{'id':_0x3d6318[_0x59128b(_0x149132._0x10e56d,0x3fe,0x499,0x3d7)](),'type':_0x59128b(0x335,_0x149132._0x180755,0x3c5,0x3ad),'content':_0x596d33(-0x220,-0x1d9,-0xb5,-0x214),'metadata':{'timestamp':new Date()[_0x596d33(-0x16a,-0x103,-_0x149132._0x2b8248,-0xf7)]()},'color':_0x59128b(0x2b9,_0x149132._0x447dbf,_0x149132._0x26e331,_0x149132._0x463aaf)}),await new Promise(_0x2c8fcf=>setTimeout(_0x2c8fcf,0x1f4)),_0x5ebc74[_0x59128b(0x3d5,_0x149132._0x5a4d2e,_0x149132._0x50bed9,0x1f5)](_0x596d33(-0x80,-0x1b6,-0xf0,-0x21a),{'id':_0x3d6318[_0x596d33(-0x9b,-0x1d,_0x149132._0x28b968,-_0x149132._0x2af6fd)](),'type':_0x59128b(0x23a,0x370,0x387,0x378),'content':_0x59128b(0x3aa,0x42f,0x37b,_0x149132._0x4ab643),'metadata':{'timestamp':new Date()['toISOString']()},'color':_0x596d33(-0x142,-_0x149132._0x88dd96,-_0x149132._0x48ad55,-_0x149132._0x5bd5ef)}),setTimeout(()=>{const _0x1d60dd={_0x1df2f6:0x114,_0x597f26:0x14f};function _0x520951(_0x3be155,_0x1447fe,_0xf3b529,_0x15d3bb){return _0x59128b(_0x3be155-_0x1d60dd._0x1df2f6,_0x3be155-_0x1d60dd._0x597f26,_0x1447fe,_0x15d3bb-0x6b);}process[_0x520951(0x588,_0x4eb7a1._0x1b1e62,0x5ff,_0x4eb7a1._0x103202)](0x0);},0x1f4);}});}import{Text as _0x408cbe,Box as _0x12c24c}from'ink';import{jsx as _0x371740,jsxs as _0x104abf}from'react/jsx-runtime';var {version:hn,commit:rr}=_0x5ec50a(),yn=({deactivate:_0x348ca1})=>_0x104abf(_0xd2ac0a,{'visible':!0x0,'title':_0x479f18(-0x1a,0x15e,0x7d,0x164),'type':'info','onClose':_0x348ca1,'closeOnEscape':!0x0,'closeOnEnter':!0x0,'children':[_0x371740(_0x408cbe,{'color':_0x36ee89(-0x123,-0x1c3,-0x1c1,-0xf7),'dimColor':!0x0,'children':_0x479f18(0x3e,-0x1c,-0x1,0x109)+hn+(rr?'\x20('+rr+')':'')}),_0x371740(_0x12c24c,{'marginTop':0x1,'flexDirection':'column','children':_0x104abf(_0x408cbe,{'children':[_0x36ee89(0x95,-0x4b,-0x15a,0x24),_0x371740(_0x408cbe,{'color':'green','children':_0x479f18(0xc6,0x38,0x61,0x12e)}),'\x20to\x20close\x20this\x20help.']})}),_0x104abf(_0x12c24c,{'marginTop':0x1,'flexDirection':_0x479f18(0xee,0xf1,0x47,-0xa6),'children':[_0x371740(_0x408cbe,{'color':_0x36ee89(-0x24,-0xca,-0x1c9,-0x1eb),'bold':!0x0,'children':_0x479f18(0x106,0xae,0x2b,-0xb3)}),_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':_0x479f18(0x1e0,0x141,0x19d,0x148),'children':'/'}),_0x36ee89(-0x214,-0x1f6,-0x1bd,-0x2fd)]}),_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':_0x479f18(0x109,0x1a1,0x19d,0xb7),'children':_0x36ee89(-0x205,-0x135,-0x15d,-0xb4)}),'\x20—\x20Close\x20active\x20modal/menu,\x20or\x20clear\x20input\x20(double\x20press)']}),_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':'green','children':_0x479f18(0x18e,0xf9,0x91,-0x95)}),'\x20—\x20Recall\x20previous/next\x20user\x20messages\x20(when\x20typing)']}),_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':_0x479f18(0x85,0x16a,0x19d,0x2bb),'children':_0x36ee89(-0x145,-0x4d,-0x5a,-0x10c)}),_0x36ee89(-0x101,-0x167,-0x5c,-0x22f)]}),_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':_0x479f18(0x19c,0xea,0x19d,0xa3),'children':_0x36ee89(-0xad,-0xe5,-0xe4,-0x86)}),_0x479f18(-0x13a,0xd2,-0x3,-0x42)]})]}),_0x104abf(_0x12c24c,{'marginTop':0x1,'flexDirection':'column','children':[_0x371740(_0x408cbe,{'color':_0x36ee89(-0x107,-0xca,-0x74,-0xf2),'bold':!0x0,'children':_0x479f18(0x13d,0x13f,0xc3,0x1f0)}),_0x1e5d4a['list']({'includeHidden':!0x1})[_0x36ee89(-0xb7,0x6d,0x116,0x143)](_0x1ea660=>_0x104abf(_0x408cbe,{'children':['•\x20',_0x371740(_0x408cbe,{'color':_0x479f18(0xd9,0x11e,0x19d,0x285),'children':_0x1ea660['id']}),_0x479f18(-0x24,0x1a8,0xb5,-0x7b),_0x1ea660[_0x36ee89(-0x73,-0x12c,-0xc0,-0x61)]]},_0x1ea660['id']))]})]});function _0x479f18(_0x22c26e,_0x5a55ac,_0x370ff3,_0x320b9d){return _0x2644(_0x370ff3- -0x232,_0x320b9d);}function nr(_0x47172d){const _0xa55ffb={_0x5bb089:0x26a,_0x4c5142:0x36b,_0x35c7b1:0xf8,_0x59b02f:0x8e,_0x4c1369:0x23d,_0x964338:0x10b,_0x221ccc:0x656,_0x4045f1:0x633,_0x256e27:0x457},_0x17d517={_0x19848b:0x1d1,_0x522214:0x4b},_0x1c1d13={_0x96b82c:0x544};function _0xf4fb(_0x50312c,_0x54da3f,_0x2cff22,_0x8cf349){return _0x36ee89(_0x54da3f,_0x8cf349-_0x1c1d13._0x96b82c,_0x2cff22-0x9,_0x8cf349-0x78);}function _0x350f5a(_0x59ff21,_0x94f6ba,_0x5efa3c,_0xb2bc9a){return _0x36ee89(_0x59ff21,_0xb2bc9a-_0x17d517._0x19848b,_0x5efa3c-_0x17d517._0x522214,_0xb2bc9a-0xbe);}_0x47172d[_0xf4fb(0x27b,0x2d2,_0xa55ffb._0x5bb089,_0xa55ffb._0x4c5142)]({'id':_0x350f5a(_0xa55ffb._0x35c7b1,_0xa55ffb._0x59b02f,_0xa55ffb._0x4c1369,_0xa55ffb._0x964338),'type':_0xf4fb(0x49e,_0xa55ffb._0x221ccc,_0xa55ffb._0x4045f1,0x5b6),'description':_0xf4fb(0x472,0x38f,_0xa55ffb._0x256e27,0x45d),'category':'ui','component':yn});}import{useMemo as _0x1e3cac,useState as _0x515e1a,useCallback as _0x38da73,useEffect as _0x7811aa}from'react';import{Box as _0x258ce3,Text as _0x1e5491}from'ink';import{jsx as _0x2017b8,jsxs as _0x296c3f}from'react/jsx-runtime';var An=_0x393794=>_0x393794?_0x393794[_0x479f18(0x1c1,0x64,0xa1,0x106)]===_0x36ee89(-0x1c3,-0x11c,-0x120,-0x78)?_0x479f18(0xf3,0x1f0,0x14f,0x241):_0x393794['type']===_0x479f18(0xda,0x29f,0x1a8,0x1fa)?'green':_0x393794['type']===_0x36ee89(0x59,-0x97,0x1f,-0x11f)?_0x36ee89(-0x26b,-0x165,-0x69,-0x1ca):_0x36ee89(0x9,0x3e,0x36,0xac):_0x36ee89(0x3f,0x3e,-0x28,-0xfb),ir=({context:_0x42cda,deactivate:_0x414bd1})=>{const _0x201049={_0x11ed26:0x50,_0x4d5d75:0x237,_0x44f71f:0xb3,_0x40b2ad:0x3c,_0x1f52c7:0x27a,_0x1dd9a2:0x69,_0xc01916:0x41,_0x5463ae:0xcd,_0x15e74d:0xde,_0x85cfab:0x15,_0x3ea996:0x10,_0xbbf2a3:0x86,_0xc15018:0x289,_0xb41f38:0x371,_0xbfe9ba:0xfa,_0x2fd15e:0xdd,_0x5375d6:0x1a9,_0xd6152:0x28f,_0x17105e:0x1dc,_0xb6c6e6:0x240,_0x2e6807:0x1e4,_0x4a6866:0x1e2,_0x37a0a9:0x95,_0x10feaa:0x71,_0x2b30e4:0x198,_0xb7fcfe:0x44,_0x4cdf7c:0x15a,_0x3449da:0x179,_0x5d596b:0x20d,_0x4a4af7:0x8a,_0x34c264:0x181,_0x49efa9:0x17d,_0x4809f3:0x12e,_0x4fdd49:0xf3,_0x3bede3:0x167,_0x2258a0:0x1c4,_0x3c3543:0xab,_0x2c249c:0x183,_0x295500:0x143},_0x36da52={_0x34eddb:0x174,_0x33f0cd:0x8f},_0x154064={_0x6f7e91:0x39a,_0x2b3702:0x5e5,_0x3e91e3:0x53b,_0x319975:0x467,_0x2e372d:0x570,_0x50a7b3:0x578,_0x4c8cfc:0x43e,_0x58c373:0x55c,_0x28925f:0x5c8,_0x4b20e6:0x5a6,_0x474765:0x2f2,_0x16d1ee:0x3e0,_0x8869a5:0x390,_0x17fc7f:0x337,_0x1bfb4c:0x220,_0x29f9bb:0x586,_0x2a039d:0x675,_0x2827d1:0x418,_0x19d1f7:0x2c8,_0xa265f6:0x3f4,_0x402945:0x40b,_0x92d3f9:0x459,_0x3ef2b0:0x56b,_0x4f8ba1:0x45b,_0x33bfac:0x58f,_0x412e59:0x45a,_0x3b9532:0x48d,_0x414528:0x367,_0xa04d0d:0x300,_0xb42477:0x446,_0x2b51cb:0x3d5,_0x5adf03:0x501,_0x58f681:0x451,_0x34bec0:0x49e,_0x3db000:0x37d,_0x26ffe9:0x3e6,_0x547aea:0x481,_0x432c9b:0x411,_0x3e8ec8:0x37d,_0x27ce05:0x29d,_0x731d5d:0x3cf,_0x262406:0x2b3,_0x845a2a:0x2dd,_0x29d0fd:0x3cf,_0x588b6e:0x486,_0x3e6f2f:0x4a7,_0x2a0712:0x386,_0x48a6a0:0x3ea,_0x220d80:0x351,_0x50ee06:0x461,_0x14fef7:0x4be,_0x1d0e6c:0x534,_0x56d5e4:0x2ff,_0x36ff6f:0x54b,_0x259850:0x263,_0x14e783:0x399,_0x2fc47d:0x3eb,_0x263222:0x33e,_0x37e8e7:0x3ad,_0x4b8d3f:0x4fd,_0x3981f0:0x3c3,_0x365131:0x4a8,_0x5ee352:0x3ae,_0x416d85:0x508,_0x4655e8:0x48f,_0x41014a:0x4fd},_0x19edef={_0x2707de:0x394},_0x508f71={_0x3d805b:0x109,_0x4fb30e:0x67,_0x24fe88:0x2c0},_0x52b0fd={_0x39ef17:0x2e,_0x2e43af:0x1b0,_0x48864c:0x7f},_0x1eb889={_0x667014:0xa,_0x94a005:0x2b,_0x3a0dbd:0x1f4,_0x13ee09:0x14d},_0x59ee88={_0x8c4797:0x49a,_0x206af5:0x506,_0x330963:0x52e,_0x44a4b5:0x5ed,_0x1e4c56:0x572,_0x398e04:0x5cb,_0x14a344:0x466,_0xc46cb:0x3ac,_0x4c5ab0:0x5e2,_0x52a81c:0x575,_0x5cad8d:0x500},_0x37d2a4={_0x22c4ff:0x8c},_0x8fbbcf={_0x268ce6:0x2aa,_0x109f91:0x2fa,_0x189999:0x6e3,_0x43bbdd:0x5ae,_0x2ed95a:0x6fd,_0x398d26:0x1d2,_0x5b0795:0x18e,_0x46e67b:0x21c,_0x48d647:0x66a,_0x38311d:0x50b,_0x4da9a2:0x537,_0x57bc2c:0x31b,_0x1af152:0x230,_0x48d27e:0x247,_0x142824:0x1cf,_0x382952:0x6dd,_0x19023e:0x636,_0x43ec76:0x7f7,_0xed490f:0x1aa,_0x4c42cf:0x27f,_0xa58f49:0x20b,_0x4e3039:0x733,_0x1ee18e:0x6ab,_0xaaea35:0x5d1,_0x41bb4a:0x4dd,_0x2305ae:0x26a,_0x329a09:0x357,_0x93497:0x389,_0x311df0:0x7c3,_0x232586:0x839,_0x5c62ef:0x292,_0x395a49:0x258,_0x508346:0x655,_0x1d4ada:0x26d,_0x1e18ac:0x302,_0xb5ed51:0x8ef,_0x2a25bb:0x183,_0x1a65bf:0x386,_0x29bb21:0x37b,_0x9469fc:0x308,_0x230d11:0x579,_0x497fae:0x67d,_0x43c6ab:0x6c7},_0xa77631={_0x539eb5:0x13a,_0x20fc0f:0x53a},_0x1aa965={_0x2fdc6b:0x493,_0xbafe28:0x363,_0x4ba21c:0x29f,_0x5e1a1d:0x130,_0x53bfa2:0xde,_0x8084a5:0x12a,_0x2976c4:0x4a,_0x4a7fb2:0x179,_0x566679:0x2c7,_0x3f71eb:0x57,_0x5e159a:0x1a1,_0x1e0477:0x42d,_0x5ee0c9:0x1e1},_0x5b3498={_0x392c97:0x77,_0x4a522f:0xd6,_0x4e1ee1:0x149},_0x34b47f={_0x3be438:0x156,_0x15a9c5:0x1ba},_0x1f1298={_0x48ae58:0x10a,_0x396cec:0xee,_0x5e7158:0x21c,_0x47c42d:0xd5,_0x4405c9:0x5f5,_0x78e415:0x2fc,_0x5c7716:0x2dd,_0x3b91c3:0x351,_0x54ab87:0x4c8,_0x990cd4:0x2f1,_0x512918:0x3ca,_0x1f5c36:0x633,_0x415cf4:0x55b,_0xf973ad:0x5ce,_0x44bd45:0x5a5,_0x2f1fc2:0x4dc,_0x47bfdd:0x455,_0x15ff6b:0x51f,_0x2a5c79:0x3a0,_0x310a80:0x394,_0x5b5434:0x46e},_0x144bc3={_0x4350c7:0xbb},_0x35ba1c={_0x37f50b:0x4f,_0x3cd6f2:0xdb,_0x5b789e:0xeb,_0x1f8878:0xbd,_0x116d82:0x12},_0x117b25={_0x404daa:0x4b4},_0x5c8fb4={_0x47c3fb:0x80,_0x3549b6:0x4a,_0x20f369:0x5a};let {theme:_0x43dada}=_0x3f5a8b(),[_0x4b4c6c,_0x4affe6]=_0x515e1a(_0x3990d2(0x87,-0x2e,0x91,_0x201049._0x11ed26)),[_0x3b2fde,_0x19a028]=_0x515e1a(null),[_0x3617f2,_0x19d141]=_0x515e1a(''),[_0x5d61b7,_0x9f8b5a]=_0x515e1a(null),_0x16ce80=_0x453b30(_0x4b4c6c==='deviceFlow'&&_0x3b2fde==='github'),_0x4a678b=_0xb38671((_0x4b4c6c==='oauthMax'||_0x4b4c6c===_0x1bc81c(0x258,0x245,_0x201049._0x4d5d75,0x26e))&&_0x3b2fde===_0x3990d2(_0x201049._0x44f71f,0x99,-0x1e,_0x201049._0x40b2ad),_0x4b4c6c===_0x3990d2(0x1f7,0x190,0x2a2,_0x201049._0x1f52c7)?_0x1bc81c(0x1dd,-_0x201049._0x1dd9a2,_0x201049._0xc01916,_0x201049._0x5463ae):'console'),{saveApiKeyAuth:_0x83dda0,saveOAuthAuth:_0x5851a4}=_0x3e9a77({'get':_0x42cda[_0x1bc81c(0x118,0x142,0x17e,_0x201049._0x15e74d)]['get'][_0x3990d2(0x289,0x33c,0x329,0x2bb)](_0x42cda['config']),'set':_0x42cda[_0x1bc81c(_0x201049._0x85cfab,_0x201049._0x3ea996,0x131,0xde)][_0x1bc81c(0x19f,-0x87,-0x4b,_0x201049._0xbbf2a3)][_0x3990d2(_0x201049._0xc15018,0x388,0x368,_0x201049._0xb41f38)](_0x42cda['config'])}),_0x550490=_0x1e3cac(()=>_0x3b2fde?_0x5b79f7(_0x3b2fde):[],[_0x3b2fde]),_0x341062=_0x38da73(_0x2b5d22=>{const _0x348ccf={_0x476dc9:0x1a0,_0x17d721:0x1c3};function _0x14c814(_0x4d99a4,_0x273f38,_0x5498e8,_0xc8420e){return _0x1bc81c(_0x4d99a4,_0x273f38-_0x348ccf._0x476dc9,_0x5498e8-_0x348ccf._0x17d721,_0x5498e8- -0x2d);}_0x19a028(null),_0x4affe6(_0x14c814(_0x5c8fb4._0x47c3fb,0x181,_0x5c8fb4._0x3549b6,_0x5c8fb4._0x20f369)),_0x19d141(''),_0x9f8b5a(_0x2b5d22??null);},[]),_0x473d8b=_0x38da73(_0x203794=>{const _0x23fc21={_0x25c4c1:0xae,_0x3d1f92:0x72};function _0x47ba59(_0x419667,_0x307208,_0x31c5ad,_0x5addaf){return _0x1bc81c(_0x31c5ad,_0x307208-0x11a,_0x31c5ad-0x135,_0x5addaf-_0x117b25._0x404daa);}function _0x25e20c(_0x1d8e12,_0x502dea,_0x553e4b,_0xf9f71d){return _0x3990d2(_0x1d8e12- -_0x23fc21._0x25c4c1,_0xf9f71d,_0x553e4b-_0x23fc21._0x3d1f92,_0xf9f71d-0x54);}_0x19a028(_0x203794[_0x25e20c(-_0x35ba1c._0x37f50b,-_0x35ba1c._0x3cd6f2,_0x35ba1c._0x5b789e,-_0x35ba1c._0x1f8878)]),_0x4affe6(_0x25e20c(0xda,0x149,0x16c,_0x35ba1c._0x116d82)),_0x9f8b5a(null),_0x19d141('');},[]),_0x2d7d7b=_0x38da73(_0xc8e887=>{function _0x13255d(_0x2201cb,_0xf52a01,_0x405842,_0x5d8984){return _0x1bc81c(_0x405842,_0xf52a01-0x73,_0x405842-0xb2,_0x5d8984-0x374);}function _0x306e8d(_0x15efc8,_0x27c646,_0x456b02,_0x21cb98){return _0x1bc81c(_0x27c646,_0x27c646-0x6a,_0x456b02-0x1c8,_0x15efc8-_0x144bc3._0x4350c7);}if(_0x3b2fde)switch(_0x9f8b5a(null),_0x19d141(''),_0xc8e887[_0x306e8d(_0x1f1298._0x48ae58,_0x1f1298._0x396cec,0x198,0x1fc)]){case _0x306e8d(0x198,_0x1f1298._0x5e7158,_0x1f1298._0x47c42d,0x2c9):_0x4affe6(_0x13255d(0x50c,_0x1f1298._0x4405c9,0x44b,0x56b));return;case _0x13255d(0x5b3,0x5b8,0x503,0x5da):_0x4affe6(_0x306e8d(_0x1f1298._0x78e415,_0x1f1298._0x5c7716,0x338,_0x1f1298._0x3b91c3));return;case _0x13255d(_0x1f1298._0x54ab87,0x2e5,_0x1f1298._0x990cd4,_0x1f1298._0x512918):_0x4affe6(_0x13255d(0x56e,_0x1f1298._0x1f5c36,0x562,_0x1f1298._0x415cf4));return;case _0x13255d(_0x1f1298._0xf973ad,_0x1f1298._0x44bd45,_0x1f1298._0x2f1fc2,0x4dc):_0x4affe6('oauthConsole');return;case _0x13255d(0x502,_0x1f1298._0x47bfdd,0x48c,_0x1f1298._0x15ff6b):{_0x341062({'type':'info','message':_0x4cdd6f[_0x3b2fde]+_0x13255d(0x3f5,_0x1f1298._0x2a5c79,_0x1f1298._0x310a80,_0x1f1298._0x5b5434)});return;}default:_0x341062();return;}},[_0x3b2fde,_0x341062]),_0x4df18c=_0x38da73(async _0x168f85=>{function _0x7eb31a(_0x3dc766,_0x7bd4c0,_0x1ee2fa,_0x3c24fe){return _0x1bc81c(_0x7bd4c0,_0x7bd4c0-0x108,_0x1ee2fa-_0x34b47f._0x3be438,_0x3c24fe-_0x34b47f._0x15a9c5);}function _0x5d3c15(_0x407339,_0x134da2,_0x2d8122,_0x1e8217){return _0x1bc81c(_0x407339,_0x134da2-_0x5b3498._0x392c97,_0x2d8122-_0x5b3498._0x4a522f,_0x134da2- -_0x5b3498._0x4e1ee1);}if(!_0x3b2fde)return;let _0x6043bf=_0x168f85[_0x7eb31a(0x3be,_0x1aa965._0x2fdc6b,0x233,_0x1aa965._0xbafe28)]();if(!_0x6043bf){_0x9f8b5a({'type':'error','message':_0x7eb31a(_0x1aa965._0x4ba21c,0x180,0x2a8,0x1db)});return;}try{await _0x83dda0(_0x3b2fde,_0x6043bf),_0x341062({'type':_0x5d3c15(_0x1aa965._0x5e1a1d,_0x1aa965._0x53bfa2,_0x1aa965._0x8084a5,_0x1aa965._0x2976c4),'message':_0x4cdd6f[_0x3b2fde]+_0x5d3c15(0x11c,0x7d,0x123,_0x1aa965._0x4a7fb2)});}catch(_0x1cc73){_0x341062({'type':_0x7eb31a(0x2be,0x39c,_0x1aa965._0x566679,0x2b3),'message':_0x5d3c15(_0x1aa965._0x3f71eb,0xce,0x121,_0x1aa965._0x5e159a)+_0x4cdd6f[_0x3b2fde]+_0x5d3c15(-0x138,-0x72,-0xbd,-0x18f)+(_0x1cc73 instanceof Error?_0x1cc73[_0x7eb31a(_0x1aa965._0x1e0477,_0x1aa965._0x5ee0c9,0x3d0,0x2fd)]:String(_0x1cc73))});}},[_0x3b2fde,_0x83dda0,_0x341062]),_0x4fca0b=_0x38da73(async(_0x28ce75,_0x14afca,_0x77c044)=>{const _0x85540a={_0x3a0c58:0x15f};function _0x265cfb(_0x4bcc78,_0x30dde2,_0x534235,_0x3e5983){return _0x1bc81c(_0x30dde2,_0x30dde2-_0xa77631._0x539eb5,_0x534235-0x93,_0x4bcc78-_0xa77631._0x20fc0f);}if(!_0x3b2fde||_0x3b2fde!==_0x3b97d7(_0x8fbbcf._0x268ce6,0x272,0x202,_0x8fbbcf._0x109f91))return;function _0x3b97d7(_0x20261b,_0x56ad51,_0x32405a,_0x7d94d2){return _0x1bc81c(_0x7d94d2,_0x56ad51-0x1e4,_0x32405a-0x93,_0x32405a-_0x85540a._0x3a0c58);}let _0x54a711=_0x28ce75[_0x265cfb(_0x8fbbcf._0x189999,_0x8fbbcf._0x43bbdd,0x5fc,_0x8fbbcf._0x2ed95a)]();if(!_0x54a711){_0x9f8b5a({'type':'error','message':_0x3b97d7(_0x8fbbcf._0x398d26,0x257,_0x8fbbcf._0x5b0795,0xfb)});return;}try{let _0x559c36=await _0x5b19c9(_0x54a711,_0x14afca);if(_0x559c36[_0x3b97d7(0x25f,0x1b7,0x27f,_0x8fbbcf._0x46e67b)]===_0x265cfb(0x733,0x603,_0x8fbbcf._0x48d647,0x85a)||!_0x559c36['access']){_0x9f8b5a({'type':_0x265cfb(0x633,0x585,_0x8fbbcf._0x38311d,_0x8fbbcf._0x4da9a2),'message':_0x3b97d7(_0x8fbbcf._0x57bc2c,0x402,0x2c9,_0x8fbbcf._0x1af152)});return;}let _0x27b99d;if(_0x77c044===_0x3b97d7(0x1e8,0x35a,_0x8fbbcf._0x48d27e,_0x8fbbcf._0x142824)){let _0x56811a=await _0x340b0e(_0x559c36[_0x265cfb(_0x8fbbcf._0x382952,0x64e,_0x8fbbcf._0x19023e,_0x8fbbcf._0x43ec76)]);if(_0x56811a[_0x3b97d7(_0x8fbbcf._0xed490f,0x178,_0x8fbbcf._0x4c42cf,_0x8fbbcf._0xa58f49)]===_0x265cfb(_0x8fbbcf._0x4e3039,_0x8fbbcf._0x1ee18e,0x719,0x7a7)||!_0x56811a[_0x265cfb(_0x8fbbcf._0xaaea35,_0x8fbbcf._0x41bb4a,0x4bd,0x703)]){_0x9f8b5a({'type':'error','message':_0x3b97d7(0x245,_0x8fbbcf._0x2305ae,_0x8fbbcf._0x329a09,_0x8fbbcf._0x93497)});return;}await _0x83dda0(_0x3b2fde,_0x56811a['key']),_0x27b99d='Anthropic\x20API\x20key\x20created\x20and\x20saved\x20to\x20configuration.';}else{if(!_0x559c36[_0x265cfb(_0x8fbbcf._0x311df0,0x7a0,0x845,_0x8fbbcf._0x232586)]){_0x9f8b5a({'type':_0x3b97d7(_0x8fbbcf._0x5c62ef,0x240,_0x8fbbcf._0x395a49,0x2e2),'message':_0x265cfb(0x591,0x696,_0x8fbbcf._0x508346,0x62f)});return;}await _0x5851a4(_0x3b2fde,_0x559c36[_0x3b97d7(_0x8fbbcf._0x1d4ada,0x1d0,_0x8fbbcf._0x1e18ac,0x32b)],_0x559c36[_0x265cfb(0x7c3,_0x8fbbcf._0xb5ed51,0x8bd,0x71d)],_0x559c36[_0x3b97d7(_0x8fbbcf._0x2a25bb,0x2b6,0x20e,0x1b3)]),_0x27b99d='Anthropic\x20OAuth\x20credentials\x20saved\x20to\x20configuration.';}_0x341062({'type':_0x3b97d7(0x366,0x382,_0x8fbbcf._0x1a65bf,0x2fe),'message':_0x27b99d});}catch(_0x1f50c8){_0x9f8b5a({'type':_0x3b97d7(_0x8fbbcf._0x29bb21,0x196,0x258,_0x8fbbcf._0x9469fc),'message':_0x265cfb(0x5f8,0x65f,0x57f,_0x8fbbcf._0x230d11)+(_0x1f50c8 instanceof Error?_0x1f50c8[_0x265cfb(_0x8fbbcf._0x497fae,0x58b,_0x8fbbcf._0x43c6ab,0x60e)]:String(_0x1f50c8))});}},[_0x3b2fde,_0x83dda0,_0x5851a4,_0x341062]);_0x7811aa(()=>{const _0x4d4315={_0x3ef378:0x14f,_0x4c5e7c:0x1e4},_0x85ce94={_0x5b466b:0x53};function _0x43f4d9(_0xbf181f,_0xf95484,_0x2fc6fe,_0xbc4194){return _0x1bc81c(_0xf95484,_0xf95484-_0x37d2a4._0x22c4ff,_0x2fc6fe-0x14e,_0xbc4194- -0xf4);}function _0x33f276(_0x5bd12f,_0x3782b6,_0x4c4b8d,_0x4475bc){return _0x1bc81c(_0x4475bc,_0x3782b6-_0x85ce94._0x5b466b,_0x4c4b8d-0x106,_0x4c4b8d-0xd4);}_0x16ce80[_0x43f4d9(-0x99,0x49,0xdb,-_0x1eb889._0x667014)]===_0x43f4d9(0xc5,_0x1eb889._0x94a005,0x18b,0x133)&&_0x4b4c6c===_0x43f4d9(0xd2,0x8c,_0x1eb889._0x3a0dbd,_0x1eb889._0x13ee09)&&_0x3b2fde&&((async()=>{const _0x4779b6={_0x313a87:0xb0,_0x28e5d7:0x474};function _0xb70aac(_0x390af2,_0x2a343e,_0x1225b6,_0x57f6fd){return _0x33f276(_0x390af2-0x14f,_0x2a343e-_0x4779b6._0x313a87,_0x1225b6-_0x4779b6._0x28e5d7,_0x57f6fd);}function _0x20e8f9(_0x344abb,_0x29f35e,_0x1b6f35,_0x44dcd0){return _0x43f4d9(_0x344abb-_0x4d4315._0x3ef378,_0x344abb,_0x1b6f35-_0x4d4315._0x4c5e7c,_0x29f35e-0x4b1);}try{await _0x83dda0(_0x3b2fde,_0x16ce80[_0x20e8f9(0x3ce,_0x59ee88._0x8c4797,_0x59ee88._0x206af5,0x398)]),_0x341062({'type':_0x20e8f9(0x5be,0x5e4,0x65b,0x62b),'message':_0xb70aac(0x711,_0x59ee88._0x330963,_0x59ee88._0x44a4b5,_0x59ee88._0x1e4c56)});}catch(_0x4d08b0){_0x341062({'type':_0x20e8f9(0x549,0x4b6,_0x59ee88._0x398e04,_0x59ee88._0x14a344),'message':_0x20e8f9(_0x59ee88._0xc46cb,0x4d4,0x3c9,_0x59ee88._0x4c5ab0)+(_0x4d08b0 instanceof Error?_0x4d08b0[_0x20e8f9(_0x59ee88._0x52a81c,_0x59ee88._0x5cad8d,0x46e,0x5ec)]:String(_0x4d08b0))});}})());},[_0x16ce80[_0x3990d2(_0x201049._0xbfe9ba,0x135,0x12e,0x16e)],_0x4b4c6c,_0x3b2fde,_0x16ce80[_0x1bc81c(0x25,0x159,-0x3e,_0x201049._0x2fd15e)],_0x83dda0,_0x341062]);function _0x1bc81c(_0x84efd,_0x47010d,_0x2dce90,_0x5b5bb3){return _0x479f18(_0x84efd-_0x52b0fd._0x39ef17,_0x47010d-_0x52b0fd._0x2e43af,_0x5b5bb3-_0x52b0fd._0x48864c,_0x84efd);}let _0x275390=()=>{function _0xd4225f(_0x4466c7,_0x50fae1,_0x29e8f2,_0x17ca6a){return _0x1bc81c(_0x4466c7,_0x50fae1-_0x508f71._0x3d805b,_0x29e8f2-_0x508f71._0x4fb30e,_0x29e8f2-_0x508f71._0x24fe88);}function _0xf6ddb1(_0x291c8e,_0x1131af,_0x30009e,_0x363a59){return _0x1bc81c(_0x1131af,_0x1131af-0x178,_0x30009e-0x85,_0x30009e-_0x19edef._0x2707de);}switch(_0x4b4c6c){case _0xf6ddb1(0x42c,_0x154064._0x6f7e91,0x40b,0x4a5):return _0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':'column','children':[_0x2017b8(_0x1e5491,{'children':_0xf6ddb1(0x5ee,_0x154064._0x2b3702,_0x154064._0x3e91e3,0x665)}),_0x2017b8(_0x258ce3,{'marginTop':0x1,'children':_0x2017b8(_0x5277fb,{'items':_0x1a8df9,'onSelect':_0x473d8b})})]});case _0xf6ddb1(_0x154064._0x319975,_0x154064._0x2e372d,0x50c,_0x154064._0x50a7b3):return _0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':_0xf6ddb1(_0x154064._0x4c8cfc,0x40d,0x45a,0x562),'children':[_0x3b2fde?_0x296c3f(_0x1e5491,{'children':[_0xf6ddb1(_0x154064._0x58c373,_0x154064._0x28925f,_0x154064._0x4b20e6,0x699),_0x2017b8(_0x1e5491,{'color':_0x43dada[_0xd4225f(0x2d4,_0x154064._0x474765,0x37d,_0x154064._0x16d1ee)][_0xd4225f(0x42b,_0x154064._0x8869a5,_0x154064._0x17fc7f,_0x154064._0x1bfb4c)],'children':_0x4cdd6f[_0x3b2fde]})]}):null,_0x2017b8(_0x1e5491,{'children':_0xf6ddb1(0x462,_0x154064._0x29f9bb,0x556,_0x154064._0x2a039d)}),_0x2017b8(_0x258ce3,{'marginTop':0x1,'children':_0x2017b8(_0x5277fb,{'items':_0x550490,'onSelect':_0x2d7d7b})})]});case'tokenEntry':return _0x3b2fde?_0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':_0xd4225f(_0x154064._0x2827d1,0x29e,0x386,_0x154064._0x19d1f7),'children':[_0x296c3f(_0x1e5491,{'children':['Provider:\x20',_0x2017b8(_0x1e5491,{'color':_0x43dada['auth'][_0xf6ddb1(0x4ba,_0x154064._0xa265f6,_0x154064._0x402945,_0x154064._0x92d3f9)],'children':_0x4cdd6f[_0x3b2fde]})]}),_0x2017b8(_0x1e5491,{'children':'Enter\x20your\x20API\x20key\x20or\x20token,\x20then\x20press\x20Enter.'}),_0x2017b8(_0x258ce3,{'marginTop':0x1,'children':_0x2017b8(_0x33b919,{'value':_0x3617f2,'onChange':_0x19d141,'onSubmit':_0x4df18c,'placeholder':'Paste\x20token\x20here'})})]}):null;case _0xd4225f(0x514,_0x154064._0x3ef2b0,0x501,0x515):return _0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':_0xf6ddb1(_0x154064._0x4f8ba1,_0x154064._0x33bfac,_0x154064._0x412e59,0x569),'children':[_0x296c3f(_0x1e5491,{'children':[_0xf6ddb1(0x599,_0x154064._0x3b9532,_0x154064._0x4b20e6,0x4dd),_0x2017b8(_0x1e5491,{'color':_0x43dada[_0xd4225f(_0x154064._0x414528,0x374,0x37d,_0x154064._0xa04d0d)][_0xd4225f(_0x154064._0xb42477,_0x154064._0x2b51cb,0x337,0x365)],'children':'GitHub\x20(Copilot)'})]}),_0x2017b8(_0x55bfd3,{'state':_0x16ce80,'theme':{'waiting':_0x43dada[_0xf6ddb1(0x32e,_0x154064._0x5adf03,_0x154064._0x58f681,0x3cd)]['waiting'],'link':_0x43dada[_0xd4225f(0x398,_0x154064._0x34bec0,_0x154064._0x3db000,0x4a5)][_0xf6ddb1(0x538,_0x154064._0x26ffe9,_0x154064._0x547aea,0x3a2)],'code':_0x43dada[_0xd4225f(_0x154064._0x432c9b,0x28a,_0x154064._0x3e8ec8,_0x154064._0x27ce05)][_0xf6ddb1(0x386,0x3b4,0x3cf,0x33b)],'error':_0x43dada[_0xd4225f(_0x154064._0x731d5d,_0x154064._0x262406,0x37d,_0x154064._0x845a2a)][_0xf6ddb1(0x5ad,_0x154064._0x29d0fd,0x48d,0x416)]}})]});case _0xd4225f(0x46c,_0x154064._0x588b6e,_0x154064._0x3e6f2f,_0x154064._0x2a0712):case'oauthConsole':{let _0x46fa8d=_0x4b4c6c==='oauthMax'?_0xf6ddb1(_0x154064._0x48a6a0,_0x154064._0x220d80,_0x154064._0x50ee06,0x39f):'console',_0x1c3f2d=_0x4b4c6c==='oauthMax'?_0xd4225f(0x5f3,_0x154064._0x14fef7,_0x154064._0x1d0e6c,0x475):_0xd4225f(0x1d9,_0x154064._0x262406,_0x154064._0x56d5e4,0x263);return _0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':_0xf6ddb1(0x37e,_0x154064._0x36ff6f,_0x154064._0x412e59,0x3c7),'children':[_0x296c3f(_0x1e5491,{'children':['Provider:\x20',_0x296c3f(_0x1e5491,{'color':_0x43dada[_0xd4225f(_0x154064._0x259850,0x432,_0x154064._0x3e8ec8,0x3e3)][_0xd4225f(_0x154064._0x14e783,_0x154064._0x2fc47d,0x337,_0x154064._0x263222)],'children':['Anthropic\x20(',_0x1c3f2d,')']})]}),_0x2017b8(_0x49455e,{'state':_0x4a678b,'code':_0x3617f2,'onCodeChange':_0x19d141,'onSubmit':_0x48551e=>_0x4a678b[_0xd4225f(0x462,0x44e,0x3aa,0x43d)]===_0xd4225f(0x348,0x41a,0x342,0x311)&&_0x4fca0b(_0x48551e,_0x4a678b[_0xf6ddb1(0x4ec,0x3f3,0x503,0x42a)],_0x46fa8d),'theme':{'waiting':_0x43dada[_0xd4225f(0x2d3,_0x154064._0x37e8e7,_0x154064._0x3e8ec8,0x340)][_0xd4225f(_0x154064._0x4b8d3f,_0x154064._0x3981f0,0x3ea,0x419)],'link':_0x43dada[_0xd4225f(_0x154064._0x365131,_0x154064._0x5ee352,_0x154064._0x3db000,0x4ae)]['link'],'error':_0x43dada[_0xf6ddb1(_0x154064._0x416d85,0x37a,_0x154064._0x58f681,0x4ce)]['error'],'subtitle':_0x43dada[_0xf6ddb1(0x42d,0x391,0x3f5,0x2bb)][_0xf6ddb1(0x620,_0x154064._0x4655e8,0x5a1,_0x154064._0x41014a)]}})]});}default:return null;}};function _0x3990d2(_0x267c3e,_0x156bbd,_0x13aabe,_0x160593){return _0x479f18(_0x267c3e-0x84,_0x156bbd-_0x36da52._0x34eddb,_0x267c3e-_0x36da52._0x33f0cd,_0x156bbd);}return _0x296c3f(_0xd2ac0a,{'visible':!0x0,'title':_0x1bc81c(_0x201049._0x5375d6,0x1ab,_0x201049._0xd6152,_0x201049._0x17105e),'titleColor':_0x43dada['colors'][_0x1bc81c(0x23f,_0x201049._0xb6c6e6,_0x201049._0x2e6807,0x185)],'type':'default','onClose':_0x4b4c6c==='provider'?_0x414bd1:()=>_0x341062(),'closeOnEscape':!0x0,'closeOnEnter':!0x1,'children':[_0x275390(),_0x296c3f(_0x258ce3,{'marginTop':0x1,'flexDirection':_0x3990d2(0xd6,_0x201049._0x4a6866,-0x4c,_0x201049._0x37a0a9),'children':[_0x2017b8(_0x1e5491,{'color':_0x43dada[_0x3990d2(_0x201049._0x10feaa,_0x201049._0x2b30e4,0x14f,_0x201049._0xb7fcfe)][_0x1bc81c(_0x201049._0x4cdf7c,0x105,_0x201049._0x3449da,_0x201049._0x5d596b)],'children':_0x3990d2(_0x201049._0x4a4af7,_0x201049._0x34c264,_0x201049._0x49efa9,_0x201049._0x4809f3)}),_0x2017b8(_0x1e5491,{'color':_0x43dada['colors'][_0x1bc81c(0x17c,_0x201049._0x4fdd49,0x28d,0x20d)],'children':_0x1bc81c(_0x201049._0x3bede3,_0x201049._0x2258a0,0xc3,_0x201049._0x3c3543)})]}),_0x5d61b7?_0x2017b8(_0x258ce3,{'marginTop':0x1,'children':_0x2017b8(_0x1e5491,{'color':An(_0x5d61b7),'children':_0x5d61b7[_0x1bc81c(0x1b9,_0x201049._0x2c249c,_0x201049._0x295500,0x143)]})}):null]});};function sr(_0x4d64de){const _0x3d49ec={_0x94bdbc:0x519,_0x26275d:0x166,_0x42b48b:0x2de,_0x2345c1:0xdb},_0x30fa5f={_0x11b9d1:0xde};function _0x1bc8e9(_0x168d6c,_0x16f263,_0x336e7b,_0x56f2f5){return _0x479f18(_0x168d6c-0x139,_0x16f263-0x15b,_0x336e7b-0xa0,_0x168d6c);}function _0x2c9989(_0x93d96f,_0x9456d6,_0x113761,_0x3993ac){return _0x479f18(_0x93d96f-_0x30fa5f._0x11b9d1,_0x9456d6-0xed,_0x93d96f-0x5c0,_0x113761);}_0x4d64de[_0x2c9989(0x57d,0x486,0x64e,_0x3d49ec._0x94bdbc)]({'id':_0x1bc8e9(_0x3d49ec._0x26275d,_0x3d49ec._0x42b48b,0x24d,0x1e5),'type':'component','description':'Authenticate\x20with\x20a\x20provider.','category':_0x1bc8e9(_0x3d49ec._0x2345c1,0x230,0x194,0x157),'component':ir});}import{useEffect as _0x675e81,useState as _0x1aa1d1}from'react';import*as _0x55968b from'crypto';import{useInput as _0x7edd25}from'ink';import{jsx as _0x27d0aa}from'react/jsx-runtime';var Sn=({context:_0xe0d0ef,deactivate:_0x344ff2})=>{const _0xefed73={_0x587b2a:0x51e,_0x257de3:0x5e3,_0x445fd3:0x180,_0x2304a1:0x226,_0x15cf3c:0x1a2,_0x2e0684:0x516},_0x526133={_0x1b66b3:0x10a,_0xa3660d:0x217},_0x2bb9ee={_0x257ead:0x3dd,_0x39ea5f:0x40d},_0x2c1c14={_0x1fbffb:0x414,_0x572df2:0x37},_0x153d3a={_0x47d799:0x379,_0x5a26bd:0x448,_0x559200:0x29b,_0x1b5b4b:0x2aa,_0x4f2d45:0x1b0,_0x27d9d7:0x2a4,_0x7ff6a0:0x230,_0x416d9b:0x2b3,_0xc7682e:0x112,_0x2cf521:0x369,_0x231f36:0x39c,_0x2c2dbf:0x39b,_0xb42a2d:0x230,_0x4ae38a:0x2db,_0x9e1632:0x92,_0x3596ff:0x5a,_0x216c3f:0x154,_0x38eec4:0x195,_0x4e947f:0xd1,_0x42f158:0x162,_0x40b51f:0x89,_0x331978:0x322,_0x25d846:0x175,_0x2f8e4c:0xe5,_0x3d9726:0x49,_0x10d643:0x36,_0x37b9b3:0x35c,_0x3516d4:0x2d5,_0x2b522:0x38a,_0x2df5c4:0x493,_0x1d4eb5:0x46f,_0x4fc2ab:0x1b2,_0x29d93d:0x162,_0x213cb2:0x6c,_0x4431a3:0x268,_0x1acc4c:0x29f,_0x22a6e5:0x152,_0xf29491:0x51,_0x4a84f3:0x75,_0x157450:0x19f,_0x55bbbe:0x2df,_0x517e94:0x156,_0x9313b8:0x246,_0x3f695f:0x344,_0x32d1b4:0x3d1,_0x44ff92:0x140,_0x131402:0x32a,_0x576b05:0x75,_0x12dbc6:0x6c,_0x48c622:0x15d,_0x34e7a8:0x21c,_0x145f6e:0x6,_0xcd523c:0x14d,_0x21f4e3:0xc0,_0x42eaa3:0x16,_0xbf4179:0x120,_0x423697:0xfd,_0x198b6d:0x14,_0x24d273:0x131,_0x4388cf:0x13d,_0x5901ec:0x142,_0x48ef7e:0x2ed,_0xc69a9a:0x251,_0x1c12ef:0x2aa,_0x37085e:0x1c6,_0x56d46e:0x3cc,_0x463c:0x191,_0x3276e8:0x73,_0x51faa3:0x64,_0x57a67c:0x8c,_0xa26934:0xfa,_0x42d8e1:0x379,_0x25b369:0x2e3,_0x571d06:0x31e,_0x549688:0x21c,_0x31890f:0xeb,_0x342fcd:0x178,_0x5a5133:0x71,_0x229397:0x12d,_0x4e212a:0x163,_0x1cff3e:0x17a,_0xb56fa5:0x12f,_0x4ff3c9:0x4c,_0x20a67b:0x122,_0x58bd5e:0x9f,_0x2a91d8:0x264,_0x1b639e:0x8d,_0x2cf42f:0x33,_0x107d4a:0x31,_0x107adb:0x311,_0x2bd9fc:0x3a3,_0x583a15:0x179,_0x14d341:0x380,_0x2725b6:0x15f,_0x4f3ff2:0x1e5,_0x247aa4:0x245,_0x392a2f:0x32f,_0x47fee5:0x22e,_0x41550e:0x237,_0x2308da:0x26a,_0x34f0a7:0x2d1,_0x26b30e:0x1d9,_0x51da32:0xc3,_0x139abe:0x113,_0x4958b9:0x29d,_0x37dfa3:0x1eb,_0x22879d:0x35b,_0x2eca3b:0x26,_0x2b03e0:0x254,_0x361424:0x216,_0x309ac9:0x5,_0x857ea3:0xad,_0x473ec0:0xab,_0x11e719:0x1a3,_0x537162:0x1ad,_0x2ac5bf:0x29e,_0x5b07fa:0x2fc,_0x40a5a9:0x24d,_0x321bd2:0x1af,_0x4f2ea4:0xf0,_0x3304e2:0x12b,_0x548957:0x10b,_0x2f4cdf:0x7e,_0x52300f:0x9,_0x348ff6:0x129,_0x16fc2d:0x5f,_0x2d0771:0xf2,_0x175142:0x134,_0xae6921:0x2aa,_0x438b09:0x37b,_0x4204ad:0xf9,_0x1a17bb:0x28c,_0x54192e:0x32b,_0x40a1c6:0x353,_0x17d012:0x439,_0x1b8591:0x26a,_0x42a381:0x309,_0x595d88:0x29e,_0x4a6b39:0x24a,_0x55224a:0x192,_0x1d8726:0x17c,_0x55294b:0xe9,_0x58fbff:0x3e0,_0x3b022f:0x218,_0x2ae8d2:0x1ea,_0xb17fa3:0x1a,_0x2dfe14:0x230,_0x2b85f8:0x138,_0x300c9b:0x28,_0x1fae9b:0x14e,_0x51cdbb:0x4d},_0x37a71a={_0x512561:0x46b,_0x4b417d:0x435},_0x3e02f6={_0x186b57:0xd7,_0x2ff6b2:0x1bd},_0xd292e9={_0x3c7632:0x5a8,_0x2b3ae6:0x16d};function _0xe08dc3(_0x36346b,_0x1a80ff,_0x5bec96,_0x5f588f){return _0x36ee89(_0x1a80ff,_0x36346b-_0xd292e9._0x3c7632,_0x5bec96-0x53,_0x5f588f-_0xd292e9._0x2b3ae6);}function _0x8557ce(_0x2148bd,_0x3c8794,_0x5495a4,_0x4a5392){return _0x36ee89(_0x2148bd,_0x5495a4-0x26e,_0x5495a4-_0x3e02f6._0x186b57,_0x4a5392-_0x3e02f6._0x2ff6b2);}let [_0x31b084,_0x1d8734]=_0x1aa1d1([]),[_0x3f9dfd,_0x3caf5e]=_0x1aa1d1(!0x0);return _0x7edd25((_0x2ff707,_0x2d5bf2)=>{function _0x3d55fb(_0x581ff0,_0xdd5fb,_0x39da1c,_0x460e9f){return _0x2644(_0xdd5fb-0x144,_0x39da1c);}_0x2d5bf2[_0x3d55fb(_0x37a71a._0x512561,0x35a,0x426,_0x37a71a._0x4b417d)]&&_0x344ff2();},{'isActive':!0x0}),_0x675e81(()=>{const _0x4d8e6e={_0x3fdc39:0x446,_0x5bffc2:0x2bf,_0xa7bd32:0x3f3,_0x2620f6:0x358,_0x13665c:0x38f,_0x38f248:0x38c,_0x44fde2:0x446,_0x2cf6bf:0x473,_0x1da91f:0x509,_0x272f72:0x3f7,_0x4f4bb6:0x4d2,_0x199c3c:0x40f,_0x570893:0x45c,_0x40d976:0x3f2,_0x10b167:0x32d,_0x2284b2:0x433,_0x18d05e:0x378,_0x4c896f:0x350,_0x44181c:0x461,_0x3b99a0:0x4f5,_0x258c50:0x4cc,_0x509c1a:0x435,_0x5afc1d:0x49b,_0x335b56:0x365},_0x24abdb={_0x149488:0xb4};((async()=>{const _0x5b5da2={_0x1286b7:0x166};function _0x5950c4(_0x103551,_0x58d0b1,_0xbf4876,_0x133f74){return _0x2644(_0x58d0b1-_0x24abdb._0x149488,_0xbf4876);}function _0x2ca030(_0x18b3a6,_0x5ad51c,_0xf10ee2,_0x358557){return _0x2644(_0xf10ee2-_0x5b5da2._0x1286b7,_0x18b3a6);}try{let _0x513041=await _0x561f9a();if(_0x513041['length']===0x0){_0xe0d0ef[_0x5950c4(_0x4d8e6e._0x3fdc39,0x3f2,0x513,_0x4d8e6e._0x5bffc2)][_0x2ca030(0x4d9,_0x4d8e6e._0xa7bd32,0x42a,_0x4d8e6e._0x2620f6)](_0x2ca030(0x255,_0x4d8e6e._0x13665c,_0x4d8e6e._0x38f248,_0x4d8e6e._0x44fde2),{'id':_0x55968b[_0x5950c4(0x520,_0x4d8e6e._0x2cf6bf,0x507,_0x4d8e6e._0x1da91f)](),'type':'info','content':_0x2ca030(_0x4d8e6e._0x272f72,_0x4d8e6e._0x4f4bb6,0x51c,_0x4d8e6e._0x199c3c),'metadata':{'timestamp':new Date()[_0x2ca030(0x3e3,0x329,0x43f,0x54c)]()},'color':'yellow'}),_0x344ff2();return;}_0x1d8734(_0x513041);}catch(_0x32a466){let _0x3cd5e1=_0x32a466 instanceof Error?_0x32a466[_0x2ca030(0x4fd,0x421,_0x4d8e6e._0x570893,0x351)]:String(_0x32a466);_0xe0d0ef[_0x5950c4(0x39f,_0x4d8e6e._0x40d976,_0x4d8e6e._0x10b167,_0x4d8e6e._0x2284b2)][_0x5950c4(0x49a,_0x4d8e6e._0x18d05e,0x262,_0x4d8e6e._0x4c896f)]('ui:line',{'id':_0x55968b['randomUUID'](),'type':_0x2ca030(_0x4d8e6e._0x44181c,0x39c,0x412,0x36c),'content':_0x5950c4(0x576,_0x4d8e6e._0x3b99a0,0x45f,_0x4d8e6e._0x258c50)+_0x3cd5e1,'metadata':{'timestamp':new Date()['toISOString']()},'color':_0x5950c4(0x36a,_0x4d8e6e._0x509c1a,_0x4d8e6e._0x5afc1d,_0x4d8e6e._0x335b56)}),_0x344ff2();}finally{_0x3caf5e(!0x1);}})());},[_0xe0d0ef[_0xe08dc3(_0xefed73._0x587b2a,_0xefed73._0x257de3,0x5e9,0x5a7)],_0x344ff2]),_0x675e81(()=>{let _0x4380fc=async _0x12e4e7=>{function _0x356d0d(_0x46f65b,_0x3c60e2,_0x4ca5c9,_0x3626b4){return _0x2644(_0x46f65b- -0x3a9,_0x4ca5c9);}function _0x2ed5b8(_0x33f018,_0x1b6052,_0x9d1f02,_0x558ba5){return _0x2644(_0x33f018- -0x94,_0x558ba5);}try{_0x344ff2();let _0xc83a3d=await _0x234193(_0x12e4e7[_0x2ed5b8(_0x153d3a._0x47d799,_0x153d3a._0x5a26bd,0x283,_0x153d3a._0x559200)]);if(_0xe0d0ef[_0x2ed5b8(_0x153d3a._0x1b5b4b,_0x153d3a._0x4f2d45,0x1bf,_0x153d3a._0x27d9d7)][_0x2ed5b8(_0x153d3a._0x7ff6a0,_0x153d3a._0x416d9b,_0x153d3a._0xc7682e,0x29e)](_0x2ed5b8(_0x153d3a._0x2cf521,_0x153d3a._0x231f36,0x260,_0x153d3a._0x2c2dbf),void 0x0),_0xe0d0ef['eventBus'][_0x2ed5b8(_0x153d3a._0xb42a2d,_0x153d3a._0x4ae38a,0x2b7,0x2e3)](_0x356d0d(-0x59,0x46,0x37,-_0x153d3a._0x9e1632),void 0x0),_0xc83a3d[_0x356d0d(_0x153d3a._0x3596ff,0x129,-0x7c,_0x153d3a._0x216c3f)]===_0x356d0d(0x94,-0x9b,_0x153d3a._0x38eec4,0x1bd)){_0xc83a3d[_0x356d0d(-_0x153d3a._0x4e947f,-_0x153d3a._0x42f158,-_0x153d3a._0x40b51f,-0x54)]?_0xe0d0ef[_0x2ed5b8(0x2aa,_0x153d3a._0x331978,0x27f,_0x153d3a._0x25d846)][_0x356d0d(-_0x153d3a._0x2f8e4c,_0x153d3a._0x3d9726,-_0x153d3a._0x10d643,-0x8)]('ui:lastMetadata',_0xc83a3d['metadata']):_0xe0d0ef['eventBus'][_0x356d0d(-_0x153d3a._0x2f8e4c,-0x53,-0x14c,0x3c)](_0x356d0d(-0xd9,-0x181,-0x137,-0x173),null);let _0x43157d=!0x1;if(_0xc83a3d[_0x2ed5b8(0x38a,_0x153d3a._0x37b9b3,_0x153d3a._0x3516d4,0x3fc)]&&_0xc83a3d[_0x2ed5b8(_0x153d3a._0x2b522,0x39a,_0x153d3a._0x2df5c4,_0x153d3a._0x1d4eb5)][_0x2ed5b8(_0x153d3a._0x4fc2ab,0x7a,_0x153d3a._0x29d93d,0x2d9)]>0x0&&_0xe0d0ef[_0x356d0d(-0xad,-0x19d,0x3f,-_0x153d3a._0x213cb2)])try{await _0xe0d0ef[_0x2ed5b8(_0x153d3a._0x4431a3,0x34b,_0x153d3a._0x1acc4c,0x1a7)]['set'](_0x356d0d(0x2f,_0x153d3a._0x22a6e5,_0x153d3a._0xf29491,0x119),_0xc83a3d[_0x356d0d(_0x153d3a._0x4a84f3,0x14c,0x9f,_0x153d3a._0x157450)]);let _0x541708=await _0xe0d0ef[_0x2ed5b8(_0x153d3a._0x4431a3,_0x153d3a._0x55bbbe,_0x153d3a._0x517e94,_0x153d3a._0x9313b8)]['get'](_0x2ed5b8(_0x153d3a._0x3f695f,0x3c5,_0x153d3a._0x32d1b4,0x464));if(_0x541708[_0x2ed5b8(0x1b2,0x21f,0x8f,_0x153d3a._0x44ff92)]!==_0xc83a3d[_0x2ed5b8(0x38a,_0x153d3a._0x131402,0x3f2,0x29f)][_0x356d0d(-0x163,-0x26f,-0x57,-0x22a)])throw new Error('Memory\x20verification\x20failed:\x20expected\x20'+_0xc83a3d[_0x356d0d(_0x153d3a._0x576b05,_0x153d3a._0x12dbc6,0x102,_0x153d3a._0x48c622)][_0x356d0d(-0x163,-0x69,-_0x153d3a._0x34e7a8,-0x29)]+'\x20messages,\x20got\x20'+_0x541708['length']);_0x43157d=!0x0;}catch(_0x368e3f){console['error']('Failed\x20to\x20set\x20memory:',_0x368e3f),_0xe0d0ef[_0x356d0d(-0x6b,-0xb8,-0x195,_0x153d3a._0x145f6e)]['emit'](_0x356d0d(-0x183,-_0x153d3a._0xcd523c,-_0x153d3a._0x21f4e3,-0xba),{'id':_0x55968b[_0x356d0d(_0x153d3a._0x42eaa3,_0x153d3a._0xbf4179,-0xb3,-0x9d)](),'type':_0x356d0d(-_0x153d3a._0x423697,-0x8d,-_0x153d3a._0x198b6d,-0x43),'content':_0x356d0d(-0x8,0x117,_0x153d3a._0x24d273,0x11e)+(_0x368e3f instanceof Error?_0x368e3f['message']:String(_0x368e3f)),'metadata':{'timestamp':new Date()[_0x356d0d(-0xd0,-_0x153d3a._0x4388cf,-0x200,-_0x153d3a._0x5901ec)]()},'color':_0x2ed5b8(_0x153d3a._0x48ef7e,_0x153d3a._0xc69a9a,0x2b4,0x1bc)});}_0xe0d0ef[_0x2ed5b8(_0x153d3a._0x1c12ef,0x2ff,_0x153d3a._0x37085e,_0x153d3a._0x56d46e)][_0x356d0d(-0xe5,-0x73,-0x1ed,-_0x153d3a._0x463c)](_0x356d0d(_0x153d3a._0x3276e8,_0x153d3a._0x51faa3,0x12d,_0x153d3a._0x57a67c),_0xc83a3d[_0x356d0d(-0x12a,-_0x153d3a._0xa26934,-0x29,-0x47)]);let _0x3a559d=new Date(parseInt(_0x12e4e7[_0x2ed5b8(_0x153d3a._0x42d8e1,_0x153d3a._0x25b369,0x375,_0x153d3a._0x571d06)],0xa))[_0x356d0d(-_0x153d3a._0x4388cf,-_0x153d3a._0x549688,-_0x153d3a._0x31890f,-_0x153d3a._0x342fcd)](),_0x482d4f=_0xc83a3d[_0x356d0d(-0x12a,-0x23a,-_0x153d3a._0x5a5133,-_0x153d3a._0x229397)][_0x356d0d(-_0x153d3a._0x4e212a,-0x9c,-_0x153d3a._0x1cff3e,-_0x153d3a._0xb56fa5)],_0x2ee90e=_0xc83a3d[_0x356d0d(0x75,-_0x153d3a._0x4ff3c9,_0x153d3a._0x20a67b,-_0x153d3a._0x58bd5e)]?.[_0x356d0d(-_0x153d3a._0x4e212a,-_0x153d3a._0x2a91d8,-0x1d1,-0x71)]||0x0,_0x2ae625=_0x43157d?'\x20('+_0x2ee90e+_0x356d0d(-_0x153d3a._0x1b639e,_0x153d3a._0x2cf42f,-_0x153d3a._0x4e212a,-_0x153d3a._0x107d4a):_0x2ed5b8(0x35d,0x44c,_0x153d3a._0x107adb,_0x153d3a._0x2bd9fc);_0xe0d0ef[_0x2ed5b8(_0x153d3a._0x1c12ef,_0x153d3a._0x583a15,_0x153d3a._0x14d341,0x331)]['emit']('ui:line',{'id':_0x55968b['randomUUID'](),'type':'info','content':_0x2ed5b8(0x1e3,_0x153d3a._0x2725b6,0x13e,_0x153d3a._0x4f3ff2)+_0x2ee90e+'\x20messages\x20from\x20session\x20'+_0x3a559d+_0x2ae625,'metadata':{'timestamp':new Date()[_0x2ed5b8(_0x153d3a._0x247aa4,_0x153d3a._0x392a2f,_0x153d3a._0x47fee5,_0x153d3a._0x41550e)]()},'color':_0x43157d?_0x2ed5b8(0x33b,0x225,0x41d,0x3a5):_0x2ed5b8(_0x153d3a._0x2308da,_0x153d3a._0x34f0a7,_0x153d3a._0x26b30e,0x362)}),_0x482d4f>0x7d0&&_0xe0d0ef['eventBus']['emit'](_0x2ed5b8(0x192,_0x153d3a._0x51da32,0x2af,_0x153d3a._0x139abe),{'id':_0x55968b['randomUUID'](),'type':_0x2ed5b8(_0x153d3a._0x4958b9,0x1c9,_0x153d3a._0x37dfa3,0x1c7),'content':_0x2ed5b8(0x333,0x405,0x46d,_0x153d3a._0x22879d)+_0x482d4f+_0x356d0d(-_0x153d3a._0x2eca3b,0x3d,-0xdd,-0x122)+_0x2ee90e+_0x2ed5b8(_0x153d3a._0x2b03e0,0x20c,_0x153d3a._0x361424,0x213),'metadata':{'timestamp':new Date()[_0x356d0d(-0xd0,-_0x153d3a._0x309ac9,-0xfc,-_0x153d3a._0x857ea3)]()},'color':_0x356d0d(-_0x153d3a._0x473ec0,-0x125,-_0x153d3a._0x11e719,-_0x153d3a._0x537162)});}else{if(_0xc83a3d[_0x2ed5b8(0x36f,0x310,_0x153d3a._0x2ac5bf,0x268)]===_0x2ed5b8(0x2b2,_0x153d3a._0x5b07fa,0x244,_0x153d3a._0x40a5a9)){let _0x352c9c=_0xc83a3d[_0x2ed5b8(_0x153d3a._0x321bd2,_0x153d3a._0x4f2ea4,_0x153d3a._0x3304e2,0x2d3)]===_0x356d0d(-_0x153d3a._0x548957,-_0x153d3a._0x2f4cdf,-0x19c,-0x241)?'Selected\x20session\x20has\x20no\x20messages\x20to\x20load.':_0x356d0d(-_0x153d3a._0x52300f,-_0x153d3a._0x348ff6,-_0x153d3a._0x16fc2d,-_0x153d3a._0x2d0771)+_0x12e4e7[_0x356d0d(0x64,-0x4a,_0x153d3a._0x175142,_0x153d3a._0x216c3f)];_0xe0d0ef[_0x2ed5b8(_0x153d3a._0xae6921,0x348,_0x153d3a._0x438b09,0x31a)][_0x356d0d(-_0x153d3a._0x2f8e4c,-_0x153d3a._0x4204ad,-0xc0,-0xa3)](_0x356d0d(-0x183,-0xba,-0xe4,-_0x153d3a._0x1a17bb),{'id':_0x55968b[_0x2ed5b8(_0x153d3a._0x54192e,_0x153d3a._0x40a1c6,_0x153d3a._0x17d012,0x459)](),'type':_0x2ed5b8(0x29d,0x335,0x2ae,0x1c8),'content':_0x352c9c,'metadata':{'timestamp':new Date()['toISOString']()},'color':_0x2ed5b8(_0x153d3a._0x1b8591,0x360,_0x153d3a._0x42a381,0x27c)});}}}catch(_0x436258){let _0x29fa85=_0x436258 instanceof Error?_0x436258['message']:String(_0x436258);_0xe0d0ef[_0x2ed5b8(_0x153d3a._0xae6921,_0x153d3a._0x595d88,0x1cf,_0x153d3a._0x4a6b39)]['emit'](_0x2ed5b8(_0x153d3a._0x55224a,_0x153d3a._0x1d8726,_0x153d3a._0x55294b,0x6c),{'id':_0x55968b[_0x2ed5b8(0x32b,_0x153d3a._0x58fbff,0x320,0x3db)](),'type':_0x2ed5b8(_0x153d3a._0x3b022f,_0x153d3a._0x392a2f,0x23a,_0x153d3a._0x2ae8d2),'content':_0x356d0d(0x68,0x17,0x2,_0x153d3a._0xb17fa3)+_0x29fa85,'metadata':{'timestamp':new Date()[_0x2ed5b8(_0x153d3a._0x247aa4,0x238,_0x153d3a._0x2dfe14,_0x153d3a._0x2b85f8)]()},'color':_0x356d0d(-_0x153d3a._0x300c9b,-0x7b,-_0x153d3a._0x1fae9b,_0x153d3a._0x51cdbb)});}};function _0x524c5b(_0x223e0f,_0x414d74,_0x1cb2fc,_0x6164d9){return _0xe08dc3(_0x414d74- -_0x2c1c14._0x1fbffb,_0x6164d9,_0x1cb2fc-_0x2c1c14._0x572df2,_0x6164d9-0x102);}return _0xe0d0ef[_0x524c5b(0xb6,_0x526133._0x1b66b3,0xab,_0x526133._0xa3660d)]['on']('ui:history:selected',_0x4380fc),()=>{const _0x5b9132={_0x3bbc7c:0x2d2,_0x625fb2:0x29};function _0x3abe01(_0x5992e,_0x503d0e,_0xed541a,_0x3a52d6){return _0x524c5b(_0x5992e-0x175,_0x5992e-_0x5b9132._0x3bbc7c,_0xed541a-_0x5b9132._0x625fb2,_0x503d0e);}_0xe0d0ef['eventBus']['off'](_0x3abe01(_0x2bb9ee._0x257ead,0x3d2,_0x2bb9ee._0x39ea5f,0x31d),_0x4380fc);};},[_0xe0d0ef[_0x8557ce(_0xefed73._0x445fd3,0x191,0x1e4,0x1c9)],_0x344ff2,_0xe0d0ef[_0x8557ce(0x103,_0xefed73._0x2304a1,_0xefed73._0x15cf3c,0x1f2)]]),_0x3f9dfd||_0x31b084[_0xe08dc3(0x426,_0xefed73._0x2e0684,0x48e,0x400)]===0x0?null:_0x27d0aa(_0x428786,{'availableSessions':_0x31b084});};function cr(_0x371899){const _0x1bb397={_0x41e9ee:0x55,_0x4930e5:0x1a4,_0x276b36:0x280,_0x5656d9:0x265,_0x1fd6d4:0x2ba,_0x3cfccb:0x29a,_0x56b345:0x247},_0x5b84c4={_0x5ec523:0x6e,_0x4b396a:0xd8},_0x1bf476={_0x223e40:0x14e};function _0x24faaa(_0x59dc0,_0x25d6f1,_0x5691f7,_0x348b2e){return _0x479f18(_0x59dc0-0x1ac,_0x25d6f1-0x162,_0x348b2e-_0x1bf476._0x223e40,_0x25d6f1);}function _0x122ac6(_0x95a8f8,_0x1031e9,_0x355229,_0x409501){return _0x36ee89(_0x409501,_0x1031e9-0x248,_0x355229-_0x5b84c4._0x5ec523,_0x409501-_0x5b84c4._0x4b396a);}_0x371899[_0x24faaa(_0x1bb397._0x41e9ee,_0x1bb397._0x4930e5,0x11e,0x10b)]({'id':_0x122ac6(_0x1bb397._0x276b36,0x26f,0x182,0x39d),'type':_0x122ac6(_0x1bb397._0x5656d9,_0x1bb397._0x1fd6d4,0x2fd,0x3c2),'description':_0x24faaa(0xfb,_0x1bb397._0x3cfccb,0x204,0x18b),'category':_0x122ac6(0x30a,0x26a,_0x1bb397._0x56b345,0x26d),'component':Sn});}function dr(_0x2c0b3c){const _0x4c6284={_0x1aaf67:0x271,_0xd92e07:0x360,_0x2db6f8:0x169,_0x291778:0x4f,_0x35acca:0x1f1,_0x2f2d83:0x156,_0x1ad023:0x14},_0x5acc38={_0x248ef6:0xd9,_0x3ce133:0x212,_0x55f850:0x1b2,_0x477db4:0x14f},_0x50f1e4={_0x2ae9d6:0x33},_0x30641c={_0x5ca0ef:0x158},_0x68ea0b={_0x576d8f:0x1d4,_0x4aa4c8:0x5e},_0x3d2b95={_0x1743b3:0xcc,_0x5ecec4:0x33,_0x53f945:0x70};function _0x1c5816(_0x346cf4,_0x317085,_0x20783f,_0x3257fb){return _0x479f18(_0x346cf4-_0x3d2b95._0x1743b3,_0x317085-_0x3d2b95._0x5ecec4,_0x317085-_0x3d2b95._0x53f945,_0x3257fb);}function _0xedef40(_0x3687a9,_0x3f4853,_0x4b3f42,_0x560588){return _0x479f18(_0x3687a9-_0x68ea0b._0x576d8f,_0x3f4853-_0x68ea0b._0x4aa4c8,_0x3f4853-0x19a,_0x560588);}_0x2c0b3c['register']({'id':_0x1c5816(0x1c2,_0x4c6284._0x1aaf67,_0x4c6284._0xd92e07,0x38e),'type':_0xedef40(0x25e,_0x4c6284._0x2db6f8,0x49,_0x4c6284._0x291778),'description':_0x1c5816(0x1c0,_0x4c6284._0x35acca,_0x4c6284._0x2f2d83,0xe7),'category':_0x1c5816(-_0x4c6284._0x1ad023,0x123,0x143,0x1f9),async 'handler'({eventBus:_0x3091ae}){function _0x348c41(_0x143c91,_0x4aa76a,_0x5df34a,_0x21f8ec){return _0x1c5816(_0x143c91-0x1cc,_0x143c91- -0x29,_0x5df34a-_0x30641c._0x5ca0ef,_0x4aa76a);}function _0x31e7c4(_0x596125,_0x2678ef,_0x4e5b46,_0x40bb32){return _0x1c5816(_0x596125-_0x50f1e4._0x2ae9d6,_0x2678ef- -0x26,_0x4e5b46-0x5d,_0x4e5b46);}_0x3091ae[_0x348c41(_0x5acc38._0x248ef6,0x211,_0x5acc38._0x3ce133,-0x1c)](_0x31e7c4(_0x5acc38._0x55f850,_0x5acc38._0x477db4,0x1c6,0x231),void 0x0);}});}import{Box as _0x1cd0e2,Text as _0x12e8fc,useInput as _0x50431d}from'ink';function _0x34c5(){const _0x58c3c9=['ihnJB3bL','Bwv0Ag9K','wKfjx0fqsv9lrvK','y29UBMvJDgvK','y3vYC29Yvg8','4OAr4OAtig5HDMLNyxrLiokaOIbtCgfJzs9fBNrLCIb0B2DNBguG4OcIievtqYbLEgL0','C3vTBwfYAxPL','Aw5MBW','rxHHBxbSztOGiKeGC2vJDxjPDhKGC3bLy2LHBgLZDcb0Agf0igf1zgL0CYbJB2rLigzVCIb2DwXUzxjHyMLSAxrPzxmGyw5KihbYB3zPzgvZihjLBwvKAwf0Aw9Uihn0zxbZiG','y3rYBa','4PYfifn1y2nLC3nMDwXSEsb1CgrHDgvKihrVia','CgfYC2vwywX1zq','DgL0Bgu','y29TBwfUzdPZDwrVoNrVz2DSzq','C2vJB25Kyxj5','rxjYB3iGzgv0ywLSCW','z2v0qxzHAwXHyMXLuhjVDMLKzxjZ','BNbT','BM9Kzv9TB2r1BgvZ','ywnJzw50','zxzLBNrcDxm','DwK6AgLZDg9YEtPZzwXLy3rLza','ChvZAa','mc44CMvT','tunqifnLCNzLCIbdB25MAwD1CMf0Aw9U','u0vmrunux1bst1zjrevs','tuvesvvn','g1S/mJaWngG','zw1WDhK','z2v0tunqu2vYDMvYCW','Dg9Nz2XLqwDLBNq','lsbNzxruB29SCYbTzxrOB2qGzxHPC3rZoIa','z3b0ltq','vgHPBMTPBMCGq29UzMLNDxjHDgLVBG','rxjYB3iGBgLZDgLUzYbJB25MAwC6ia','C2v0rwrPDgvKswq','l25WBs8','l3bUCg0V','DwK6AgvHzgvYoNjLzNjLC2G','EwfYBG','Dgv4Da','rxjYB3iGz2v0DgLUzYbJB25MAwC6ia','vhLWzsb0BYbZzwfYy2GGBw9KzwXZlI4U','y3jLyxrLqwDLBNq','ywnJzxnZ','zMfSBgjHy2S','ChjVChm','teXnihjLDhvYBMvKigvTChr5ihjLC3bVBNnL','u2vSzwn0ihbYB3zPzgvYoG','seLhscaTierLDgfPBgvKihrOAw5RAw5Nig91Dhb1Da','DhjPBq','qwDLBNqGq29UzMLNDxjHDgLVBG','BM9Uzq','igvUywjSzsbHBgWG4OcIia','Bw9KzwW','BgLZDa','AgfUzgXLu3rHCNrfzgL0Aw5N','CM93','qwDLBNqGBM90igzVDw5KlIbqBgvHC2uGCMvMCMvZAcbHBMqGDhj5igfNywLUlG','tM8Gywn0AxzLihnLC3nPB24GzM91BMq','yMfJAW','t3jJAgvZDhjHDg9Yig5VDcbPBML0AwfSAxPLza','C2vZC2LVBI5Tzw1qzxjZAxn0','vhLWzsb0AguGzxHHy3qGBw9KzwWGBMfTzsbMB3iG','AgfZvxbKyxrL','DxbKyxrLtunqqwXSB3DLzfrVB2XZ','uhjLC3mGrsb0BYbLzgL0ig9YifGGDg8GzgvSzxrLihrOAxmGywDLBNq','C2v0t3jJAgvZDhjHDg9Y','igrPC2fIBguGywXS','Aw5WDxq','C3rHy2S','zwrPDgvKtMfTzq','z2v0sw5ZDgfUy2u','Dg9Rzw5Z','BwnWqwXSB3DLzfrVB2XZ','u2vSzwn0ig1LDgHVzdO','zMLSzv9YzwfKlcb3zwjFC2vHCMnO','Bg9Hza','EwfYBIbNBg9IywWGBgLZDcaTlxbHDhrLCM4Gqg51DMLUl251DMLUlwnSAsaYpI9KzxyVBNvSBa','iefqssbRzxKGC2f2zwqGDg8Gy29UzMLNDxjHDgLVBI4','nta4mJu1EMDNwgXi','rw50zxi','y29TCg9Uzw50rgLKq2f0y2G','uhjLC3mG','D2fYBG','id0G','tM8GChjVDMLKzxiGC2vSzwn0zwq','CMvK','D3jPDgu','igXPBMvZicHHBgWG','AM9PBG','rgv0ywLSCW','Bw9Kzq','CMvTB3zLza','u3vTBwfYAxPLihrOzsbJDxjYzw50ignVBNzLCNnHDgLVBIbHBMqGCMvWBgfJzsb0AguGAgLZDg9YEsb3AxrOihrOzsbZDw1Tyxj5lIbvC2uGiI9ZDw1Tyxj5igjLDgeIigzVCIbJB21WCMvZC2LVBI1IyxnLzcbZDw1TyxjPEMf0Aw9UlG','vg9VBhm','rwrPDcbhzw5LCMf0zwqGqwDLBNq','AxnfzgL0Aw5N','rgvZy3jPyMuGD2HHDcb5B3uGD2fUDcb0AgLZigfNzw50ihrVigrVlIbczsbZCgvJAwzPyYbHyM91DcbPDhmGCM9SzsWGzxHWzxj0AxnLlcbHBMqGyxbWCM9Hy2GU','AgLZDg9YEq','8j+NQIbvC2LUzYbIzxrHignVBxbYzxnZAw9UigfSz29YAxrOBs4UlG','qxv0AgvUDgLJyxrPB24','C2v0u2vSzwn0zwrbz2vUDeLUzgv4','l21VzgvS','rxjYB3iGy2f1z2H0igj5ievYCM9YqM91BMrHCNK6','ihn0ywXLigjHC2GSia','y3vZDg9Ttw9KzwW','mtiWmtu5qNbNsgHp','q3jLyxrPBMCGqwDLBNtIGky','tM9Uzq','Axnbz2vUDevUywjSzwq','r09FqKfdsW','B2f1DgHnyxG','y2XLyxjty3jLzw4','rMfPBgvKihrVihbHCNnLieXmtsbYzxnWB25ZzsbHCYbku09ooIa','rMfPBgvKihrVihn1Bw1HCML6zsbJB252zxjZyxrPB246ia','u3rHCNrLzcbUzxCGy29UDMvYC2f0Aw9U','z2v0','tM8GAgLZDg9YEsbMAwXLigzVDw5KigzVCIbZzxnZAw9Uia','4PQGifDHCM5PBMC6iezHAwXLzcb0BYbSB2fKig1LC3nHz2vZigLUDg8GBwvTB3j5oIa','Dg9VBf9JywXSx2LK','Bwf4vg9Rzw5Z','ig1VzgvSCYbHDMfPBgfIBgu','zwrPDgvKvg9VBhm','vgHPBMTPBMCGzgLZCgXHEsbZzxqGDg86ia','Dw5Yzwy','AgfUzgXLrMLLBgrtDwjTAxq','EMfP','Dg9Rzw5fBNrYEq','rMfPBgvKihrVignYzwf0zsbbueKGA2v5lG','zMfPBgvK','vgvTCgvYyxr1CMu6','nZq3mtC2z2rdBeTj','u2vSzwn0igeGC2vYDMvYihrVihzPzxCGDg9VBhm','qwDLBNqGCMvNAxn0CNKGBM90igf2ywLSywjSzs4','yxbWBhLezwzHDwX0CW','tM8Gy29UDMvYC2f0Aw9UigHPC3rVCNKGDg8GzxHWB3j0','vg9Nz2XLihn1zg8GBw9KzsaOyNLWyxnZihrVB2WGyxbWCM92ywWGCMvXDwLYzw1LBNqPlG','C2HVD1bYzxzPzxC','CM9Szq','tM8GChjLDMLVDxmGC2vZC2LVBIbOAxn0B3jPzxmGzM91BMqU','tMfTztO','z2v0teXnrMfJDg9YEq','qwDLBNqGBM90igLUAxrPywXPEMvK','DgLTzxn0yw1W','BMf2AwDHDgLVBLnVDxjJzq','tw9KzwWGBMfTzsbJyw5UB3qGyMuGzw1WDhK','rMfPBgvKihrVihjLC3rVCMuGB3jPz2LUywWGywDLBNqGywz0zxiGzwrPDcbLCNjVCJO','Axnoyu4','CMfUzg9Tvvvjra','Bxv0zwq','DwK6y2XLyxi6y29TCgXLDgu','tM8Gy29UDMvYC2f0Aw9UigHPC3rVCNKGDg8GC3vTBwfYAxPL','zMXHz3m','DxbKyxrL','uhjVDMLKzxi6ia','Bwf0y2G','4PQGierPC3bSyxKGC2HVD2LUzYbSyxn0idiWmdaGB2yG','yw5HBhL6zufUzfvWzgf0zvrVCgLJ','4PYtienVBNzLCNnHDgLVBIbJB21WCMvZC2vKihn1y2nLC3nMDwXSEq','rMfPBgvKihrVihnHDMuG','zgLZCgXHEvrLEhq','l21JCa','y29ZDa','l3zPBq','z3jLzw4','mtyZodKZrfHeCun2','zM9YBwf0q29UzMLN','yxzHAwXHyMXLtw9KzwXZ','zMfPBgvKqMfZAa','BMv4Da','revfueLorLjbx0fqsv9lrvK','AxnezwzHDwX0','q2XLyxiGywXSig1LC3nHz2vZigzYB20GDgHLign1CNjLBNqGy29UDMvYC2f0Aw9U','y2XP','ChjL','C3vJy2vZCW','l3rOAw5RAw5N','BMfTzq','y2HHDc1KAxnWBgf5lq','ywDLBNrZ','l2f1DgG','zMLSzv9LzgL0','ig1LC3nHz2vZicGT','q2HHDcbOAxn0B3j5ignSzwfYzwqUifjLywr5igzVCIbUzxCGy29UDMvYC2f0Aw9UlG','vw5RBM93BIbLCNjVCG','C3rYAw5N','rMfPBgvKihrVignYzwf0zsbHz2vUDa','vw5RBM93BIbWCM92AwrLCIaN','rMfPBgvKihrVihjLBw92zsb1CgrHDgvKigfNzw50igzPBguGywz0zxiGzwrPDcbLCNjVCJO','u2vSzwn0iefjifbYB3zPzgvY','zwnOBW','C2vZC2LVBG','y3vZDg9T','CMvHza','C2f2zvrVrMLSzq','zgvSzxrLrNjVBuzPBgu','l2HPC3rVCNK','q2XLyw51CcbJB21WBgv0zs4GrxHPDgLUzYbUB3CU','icHTzw1VCNKGBg9HzcbMywLSzwqGlsbJB252zxjZyxrPB24GAgLZDg9YEsb1BMf2ywLSywjSzsK','vw5RBM93BIbJB25MAwCGywn0Aw9UoIa','sw5OzxjPDgvK','zgv2AwnLrMXVDW','C3rHBgvcyxnO','BwnWq29UzMLN','CMLNAhrbCNjVDW','teXnigrPzcbUB3qGz2vUzxjHDguGCMvXDwLYzwqGzMLLBgq6ihn5C3rLBvbYB21WDa','DMfSDwvZ','zxHPDa','jYWGzxHWzwn0zwq6igXVDYb8ig1LzgL1Bsb8igHPz2GGFcbVzMy','DwK6BwnWoNrVB2XqzxjTAxnZAw9Uq2HHBMDLza','DwK6BgLUzxm6y2XLyxi','C2XPy2u','ywXSB3DLza','CgfYC2u','BNv2Aw4Ty3jHC2GTzxHWB3j0lq','C3LZDgvT','A2LUza','Bg9HzgLUzW','zwrPDa','D2HPDgu','C3rHDgu','jsbYzwr1y3rPB24P','BgLZDfjLz2LZDgvYzwruB29SCW','zwrPDgvKvgvTCgvYyxr1CMu','Bg9HzenVBMzPzW','Dw5ZzwXLy3rLza','C2vZC2LVBKLK','q29UzMLNigTLEsaN','te9x','tw9KzwW6ia','rMfPBgvKihrVigXVywqGC2vZC2LVBJOG','tM8GywDLBNrZignVBMzPz3vYzwqUifbYzxnZie4GDg8Gy3jLyxrLigeGBMv3igfNzw50lG','q29UzMLNDxjLihrOAw5RAw5NigrPC3bSyxKGBgv2zwW6ic90AgLUA2LUzYbBB2zMFgXVD3XTzwrPDw18AgLNAf0','Aw5KzxHpzG','rgvMyxvSDcbHz2vUDhmGy2fUBM90igjLigvKAxrLza','yMfZAf90B29S','qwDLBNqGD2L0AcbjrcaI','zgvTBW','zgv2AwnLlwzSB3C','uhjLC3mGrvndihrVihrYEsbHz2fPBG','qwDLBNqGCMvNAxn0CNKGBM90igf2ywLSywjSzq','DwK6BgLUzxm6C2v0','C2vSzwn0zwrbz2vUDeLUzgv4','y2XPtwvZC2fNzxm','Aw5Zzxj0','DgvTCgvYyxr1CMu','B2f1DgHdB25ZB2XL','r2vUzxjHDgLUzYbHz2vUDcbJB25MAwD1CMf0Aw9UihDPDgGGteXn4OcM','qwjVCNrfCNjVCG','BwnWu2vYDMvYCW','AgfUzgXLq29UzMLNq29TBwfUza','Dw5YzwDPC3rLCG','q2XHDwrLifbYBY9nyxG','4PYfifvWzgf0zsbZDgfYDgvKigLUigjHy2TNCM91BMqUie5LDYb2zxjZAw9UihDPBgWGyMuGyxzHAwXHyMXLig9Uig5LEhqGCNvUlGO','rxjYB3iGq3jLyxrPBMCGqwDLBNq','8j+oRYbfBNrLCIbJDxn0B20GBw9KzwWGBMfTzs4UlG','zwrPDgvKrgvZy3jPChrPB24','yMLUza','yMfKz2u','C2v0u3rHDgu','CMvTB3zLqwDLBNq','C3vIDgL0Bgu','q29TyMLUzwqGy29UzMLNDxjHDgLVBJO','sw52ywXPzcbYzwfZB25PBMCGzwzMB3j0icC','l3n1zg8','Dg9gAxHLza','BwfW','zM9YrwfJAa','uMvHC29UoG','rxjYB3i6ia','y29UzMLNtwfUywDLCG','y29TCg9Uzw50','q3jLyxrLie5LDYbbz2vUDa','CMvMCMvZAa','BwvZC2fNzxm','C2v0rwrPDgvKvg9VBhm','u0vux0XpqurjtKC','AgfZ','rMfPBgvKihrVigXVywqGC2vZC2LVBIbOAxn0B3jPzxm6ia','EwfYBIbNBg9IywWGywrKia','tM8Gy29UzMLNDxjHDgLVBIbMB3vUzcbMB3iG','zw52','ihWGuhjLzML4oIa','iokaLcbpCgvUignVBw1HBMqGBwvUDq','AgvSCa','vg9Rzw4Gy2fUBM90igjLigvTChr5lG','BwvTB3j5igfJy2vZCYbVDxqGB2yGyM91BMrZ','DxrMoa','uMvHzhK','Cgf5Bg9Hza','AgfUzgXLq2fUy2vSrwrPDgLUzW','Dg9vChbLCKnHC2u','iI4GvxnLoIbVzMySigXVDYWGBwvKAxvTlcbVCIbOAwDO','DwK6zxjYB3i','zMLUzeLUzgv4','t0zgic0GrgLZywjSzsb0AgLUA2LUzYbKAxnWBgf5','q2HVB3nLihrOzsbbssbWCM92AwrLCIbMB3iGEw91CIbTB2rLBhm','ywDLBNqTy29UzMLN','rMfPBgvKihrVihnHDMuGywDLBNq6ia','qxv0Ag9YAxPHDgLVBIbJB2rLignHBM5VDcbIzsbLBxb0Es4','r09Fve9Fq1vtve9n','C3rYAw5NAwz5','rMv0y2HPBMCGyxzHAwXHyMXLig1VzgvSCYbMCM9Tia','u0vux0Loufvux0rptKu','lY55yxjUlW','rwrPDcbbz2vUDa','zs5NlIWGyw50AhjVCgLJl2nSyxvKzs0Zlw9WDxmTmJaYndaYmJK','CMv0DxjU','DwK6BwnWoMjHDgnOvg9VBfbLCM1PC3nPB25dAgfUz2vK','ls1OzwXW','zwrPDgvKswq','y29Kzq','CMvNAxn0zxi','BMv3','Dw5KzwzPBMvK','q29UC29Szq','uMvXDwvZDcbHyM9YDgvKlG','ihWGu2vYDMvYoIa','ChjLC2vYDMvKu3rHDgu','g1S/mJaWngW','teXnig5VDcbHDMfPBgfIBgu','vg9VBhmGCgfUzwW','DxnLCG','B3jPz2LUywW','C2L6zq','sgLZDg9YEsbMAwXLig5VDcbMB3vUzdOG','Bw92zuzVy3vZ','D2fYBMLUzW','zgvLCgLUzNjH','cM51DMLUlwnSAsbJB25MAwCGlsbdB25MAwD1CMf0Aw9Uig1HBMfNzw1LBNqkcLvtquDfoGOGicaGBNv2Aw4Ty2XPignVBMzPzYa8q09ntuford4Gw09qveLptLnDcGPdt01nqu5euZOkicaGigDLDca8A2v5pIaGicaGicaGicaGicaGicaGicaGr2v0igeGy29UzMLNDxjHDgLVBIb2ywX1zqOGicaGC2v0idXRzxK+idX2ywX1zt4GicaGicaGicaGicbtzxqGysbJB25MAwD1CMf0Aw9UihzHBhvLcIaGicbSAxn0icaGicaGicaGicaGicaGicaGicaGicaGieXPC3qGywXSignVBMzPz3vYyxrPB24GDMfSDwvZcIaGicbOzwXWicaGicaGicaGicaGicaGicaGicaGicaGifnOB3CGDgHPCYbOzwXWig1LC3nHz2ukcK9qveLptLm6cIaGicaTlwDSB2jHBcaGicaGicaGicaGicaGicaGicaGifvZzsbNBg9IywWGC2nVCguGkgrLzMf1BhqGzM9YihnLDcKkicaGic0TBg9JywWGicaGicaGicaGicaGicaGicaGicaGvxnLigXVy2fSihnJB3bLcIaGicaTlxnJB3bLidXNBg9IywX8Bg9JywW+icaGicaGifnWzwnPzNKGC2nVCguGzM9YigDLDc9SAxn0ignVBw1HBMrZcGPfwefnueXfuZOkicaGig51DMLUlwnSAsbJB25MAwCGz2v0igfJDgL2zvbYB3zPzgvYcIaGicbUDxzPBI1JBgKGy29UzMLNihnLDcbHy3rPDMvqCM92AwrLCIbVCgvUCM91DgvYic0Tz2XVyMfScIaGicbUDxzPBI1JBgKGy29UzMLNihnLDcbWCM92AwrLCNmUz2L0AhvIlNrVA2vUicjNAhbFEhH4EciGls1SB2nHBaOGicaGBNv2Aw4Ty2XPignVBMzPzYbNzxqGChjVDMLKzxjZlM9Wzw5YB3v0zxiUyxbPs2v5ic0TC2nVCguGz2XVyMfScIaGicbUDxzPBI1JBgKGy29UzMLNigXPC3qGls1Zy29WzsbSB2nHBaOGicaGBNv2Aw4Ty2XPignVBMzPzYbSAxn0cGPdt05gsuDvuKfusu9oieTfwvm6cIaGicbHy3rPDMvqCM92AwrLCIaGicaGicaGicaGicaGien1CNjLBNqGquKGChjVDMLKzxiGkg9Wzw5YB3v0zxj8z2L0AhvIFhPHAxXHBNrOCM9WAwn8zwnOBYKkicaGig1VzgvSicaGicaGicaGicaGicaGicaGicaGicaGrgvMyxvSDcbTB2rLBcbUyw1LcIaGicbWCM92AwrLCNmUpg5HBwu+lMfWAuTLEsaGicaGiefqssbRzxKGzM9YihnWzwnPzMLJihbYB3zPzgvYcIaGicbWCM92AwrLCNmUpg5HBwu+lNrVA2vUicaGicaGifrVA2vUigzVCIbZCgvJAwzPyYbWCM92AwrLCIaOywXPyxmGzM9YigfWAuTLEsKkicaGihbYB3zPzgvYCY48BMfTzt4UBw9KzwWGicaGicaGrgvMyxvSDcbTB2rLBcbMB3iGC3bLy2LMAwmGChjVDMLKzxikicaGihrVA2vUCY48ChjVDMLKzxi+icaGicaGicaGicaGrgLYzwn0ihrVA2vUig1HChbPBMCkicaGigfWAuTLEsaGicaGicaGicaGicaGicaGicaGicaGr2vUzxjHBcbbueKGA2v5igzHBgXIywnRcIaGicbTy3aUy29UzMLNugf0AcaGicaGicaGicaGicaGtunqignVBMzPz3vYyxrPB24GzMLSzsbWyxrOcIaGicbTy3aUC2vYDMvYCYaGicaGicaGicaGicaGicaGsw5SAw5Lie1ducbZzxj2zxiGy29UzMLNDxjHDgLVBGOGicaGC2vZC2LVBI5Tzw1qzxjZAxn0icaGicaGicaGievUywjSzsbZzxnZAw9UihbLCNnPC3rLBMnLcIaGicb0AgLUA2LUzYaGicaGicaGicaGicaGicaGicaGvgHPBMTPBMCGzgLZCgXHEsbHBMqGCMvHC29UAw5NigvMzM9YDcaOt0zgFeXpv3Xnrurjvu18seLhscKkicaGihjLCxvPCMvuB29SqxbWCM92ywWGicaGicaGicbszxf1AxjLig1HBNvHBcbHChbYB3zHBcbMB3iGDg9VBhmk','zNvUy3rPB24','DMfSDwu','q2XLyw5PBMCGDxaGCMvZB3vYy2vZlI4U','C2v0rwrPDgvKtw9KzwW','z3jHEq','8j+xKE+4JYaGuMvTB3zLzdOG','Bw9KywW','rxjYB3iGAw5MBZO','B2f1DgGTBwf4','twLZC2LUzYbYzwzYzxnOihrVA2vUlG','zxHPC3rZ','BgXT','y3DK','4PYtieHPC3rVCNKGzxHWB3j0zwqGDg86ia','y29UDgvUDa','lM1VzgvS','vgHLigfWCgXPy2f0Aw9UigvUy291BNrLCMvKigfUigvYCM9Yigj1Dcb3AwXSignVBNrPBNvLihj1BM5PBMCU','v0fttsbTzw1VCNKGywnJzxnZigvYCM9YigrLDgvJDgvKlcbHChaGD2LSBcbJB250Aw51zsb3AxrOihnHzMuGzMfSBgjHy2S','zgvMyxvSDa','y29SB3jZ','ChjVDMLKzxjZlG','zxnJyxbL','BNbTigLUC3rHBgWGlwCG','uhjLC3mGrw50zxiGB24GzwfJAcbMAwvSzcb0BYbJB250Aw51zsWGB3iGq3rYBcTtihrVihnHDMuGAw1TzwrPyxrLBhKUievtqYbJyw5JzwXZigvKAxrPBMCU','z2L0AhvI','C2v0rwrPDgvKtMfTzq','C3rKB3v0','mtGZntK0ufrdyNPk','ig5LDYbHz2vUDcdIGkiG','mJiZodDcDwPdr3y','y2HLy2TbBMrvCgrHDgu','B3jJAgvZDhjHDg9Y','lMPZB24','Aw5JBhvKzxm','yM9VBgvHBG','C2vYDMvYswq','C29Tzq','DwK6BgLUzq','vgvYBwLUywWGCMvUzgvYAw5NigvYCM9Yig9Jy3vYCMvKlIbuAguGyxbWihDPBgWGy29UDgLUDwuGCNvUBMLUzY4','DxrMltG','l2v4Axq','ChjVDMLKzxi','C3vTBwfYEq','qwDLBNrZicG','vxnLigfYCM93CYaRievUDgvYihrVignOB29Zzs4','C2v0q29UzMLNrNvUy3rPB25Z','iokaLcbfEgL0igfWCgXPy2f0Aw9UicHKB3vIBguGChjLC3mP','lI4U','qg51DMLUl2nSAsb2','B3bLBNjVDxrLCG','ywn0AxzLuhjVDMLKzxi','z2v0q29UzMLN','CgvUzgLUzW','rMfPBgvKihrVigXVywqGtunqihnLCNzLCNm6ia','BgvMDefYCM93','rgvZy3jPChrPB246','C2v0','C2HPzNq','D2HPy2GGBNv2Aw4','AgfZrxjYB3i','C2LNBMfS','z2v0vg9VBhm','mc41CMvT','Dg9VBfjLC3vSDe1LC3nHz2u','vxnHz2u6ig51DMLUlwnSAsbJB25MAwCGC2v0idXRzxK+idX2ywX1zt4GwY0Tz2XVyMfSFc0TBg9JywXD','u2vYDMvYigzHAwXLzcb0BYbPBML0AwfSAxPL','CMvHC29U','u0vux0Loufvu','tM8GDg9VBhmGyxzHAwXHyMXL','BgvUz3rO','zgLYzwn0','D2fZBq','A2v5CW','A2v5','mJuZndeYmg53BMrOqq','kgf1Dg8Tz2vUzxjHDgvKkq','BwnWxW','y2HLy2TgB3jvCgrHDgu','4PYtienVBNzLCNnHDgLVBIbZDw1TyxjPEMvKihn1y2nLC3nMDwXSEq','vgHLigfWCgXPy2f0Aw9UihDPBgWGzxHPDc4Gq2HLy2SGzM9Yig51DMLUlwnYyxnOlwv4Cg9YDc0QlMPZB24GzMLSzxmGAw4GDgHLign1CNjLBNqGzgLYzwn0B3j5lG','zxHWB3nLzfrVB2XZ','CMvZB2X2zq','zMLSzv9UzxC','BwLU','l25LDW','yw50AhjVCgLJ','uhjLC3mGrw50zxiGDg8Gz2vUzxjHDguSievtqYb0BYbJyw5JzwW','r2L0shvIigrLDMLJzsbMBg93ihrVA2vUihnHDMvKihrVignVBMzPz3vYyxrPB24U','ChjLDG','twf4ifrVA2vUCZO','y2HPBgrYzw4','rMfPBgvKihrVihnHDMuGtunqigjHDgnOihrVB2WGCgvYBwLZC2LVBNm6','s2v5yMLUzgLUz3m','uhjLC3mGrvndihrVignHBMnLBc4','u2v0ia','Dw5Oyw5KBgvKuMvQzwn0Aw9U','iokaLcbtzw5Kig1LC3nHz2uGB3iGC2vSzwn0igL0zw0','zxHWAxjLCW','y3LHBG','Bg9N','tuvesvvnic0GqMfSyw5JzwqGDgHPBMTPBMCGB3v0Chv0icHKzwzHDwX0kq','rxjYB3i6ic0TzgvTBYbYzxf1AxjLCYbHihbHDgGGDg8GysbOAxn0B3j5igzPBgu','Dhj1zq','rMfPBgvKihrVigzLDgnOig1VzgvSCW','zMLSzv9YzwfK','rxjYB3iGC2v0DgLUzYbJB25MAwC6ia','ig1LC3nHz2vZigzYB20G','Dg9mB2nHBgvtDhjPBMC','Ag9TzwrPCG','zgvSzxrL','tg9HzcbWCMv2Aw91CYbZzxnZAw9U','yxv0Aa','qw50AhjVCgLJigf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','4P2mifvWzgf0zsbMywLSzwq','igHHCYbUBYbTzxnZywDLCW','C2v0rgvZy3jPChrPB24','Dg9tDhjPBMC','AxnbCNjHEq','tg9HzgvKia','qu5usfjpueLdx0fqsv9lrvK','y29SDw1U','q29UzMLNDxjHDgLVBIbMB3iG','lsbpCMnOzxn0CMf0B3iGzxHPC3rZoIa','u0vux01prevmuW','ndLlv3vWCNu','Cg5WBsbSAxn0ic1NiebUDxzPBI9UDxzPBI1JBgKGls1Kzxb0Ad0Widi+l2rLDI9UDwXS','BgLUzxm','Bwf4','icHHDxrVlwDLBIK','q3vYCMvUDdOG','vg9Nz2XLifzPBsbLzgL0Aw5Nig1VzguGzM9YihrOzsbJAgf0igLUChv0','Dg9VBhm','rMfPBgvKihrVihnHDMuGywDLBNqGC3rHDhvZoG','vxnLiokgKs/IHPmGDg8GBMf2AwDHDguSifnWywnLihrVihrVz2DSzsbZzwXLy3rPB24SievUDgvYihrVignVBNrPBNvL','DwK6Aw5WDxq6Dg9Nz2XLvMLTtw9Kzq','igzHAwXLzcbIyxnO','8j+tIIbdB21WCMvZC2LVBIbZDgf0CZOG','iefqssbRzxK6ia','mxjLBq','vxnHz2u6ig51DMLUlwnSAsbJB25MAwCGz2v0idXRzxK+ifSTlxnJB3bLigDSB2jHBhXSB2nHBf0','rgvZy3jPChrPB246ia','ChjLzML4','l2v4Cg9YDa','Dg9Rzw4','y29UzMLN','u2vSzwn0ihrOzsb0AgLUA2LUzYbKAxnWBgf5igXLDMvS','rvnd','u0vux0vsuK9s','zw5KC1DPDgG','C2v0rw5HyMXLzefNzw50CW','zxHWB3j0ugf0Aa','BwTKAxjtEw5J','z2XVyMfS','u3rHCNqGysbUzxCGy29UDMvYC2f0Aw9UihnLC3nPB24','y29UC29Szq','zgvZy3jPChrPB24','C3rHDhvZ','BM9FBwvZC2fNzxm','rMfPBgvKihrVihnHDMuGDgHPBMTPBMCGChjLzMvYzw5JztOG','BgLUAW','qgXHDgvZDa','y3vYCMvUDa','yxjNDw1LBNrZ','rMfPBgvKihrVigrLBgv0zsbHz2vUDdOG','D3jPDgvgAwXL','ywn0AxzLrMLLBgq','C2HVD0HLBha','vgvTCcaOmc0YktO','lY5WBNbTlW','Dg9VBe5HBwu','u2vYDMvYCYaO','zxjYB3i','igrVzxmGBM90ihjLCxvPCMuGyxv0AgvUDgLJyxrPB24U','cUkCKYbdB252zxjZyxrPB24GAgLZDg9YEsbHDxrVlwv4Cg9YDgvKihrVoIa','sgvSCa','BNbTigXPC3qGlwCGqg51DMLUl251DMLUlwnSAsaTlwrLChrOptaGmJ4Vzgv2l251BgW','C3rHBgvszwfKCW','z2vUzxjHDgvdB21WBgv0Aw9U','t1bftLjpvvrfuL9bueLFs0vz','cGRINyWGvw5Oyw5KBgvKifjLAMvJDgLVBIbHDdO','Dw5JyxvNAhrfEgnLChrPB24','AwDUB3jL','B2zM','C2vSzwn0zwrqCM92AwrLCG','AgfUzgXLtgLZDa','z2v0tw9KzwXZ','rMfPBgvKihrVigfUywX5EMuGDg9WAwm6','ls1Zy29Wzq','rMfPBgvKihrVigXVywqGAgLZDg9YEtOG','rxHWB3j0zwqG','BgfIzwW','BNvSBa','zw50CMLLCW','iIbHBhjLywr5igv4Axn0CW','4OArl+kgKW','zw1PDa','AxntzwXLy3rLza','uhjLC3mGwsb0BYbZyxzLihrOAxmGywDLBNqSie4GDg8GzwrPDcbMAwvSzhmSievtqYb0BYbJyw5JzwW','AgLNAgXPz2H0','C2v0rwrPDgvKvgvTCgvYyxr1CMu','DgvZDa','rMfPBgvKihrVihnHDMuGr2L0shvIihrVA2vUoIa','rgvMyxvSDcbHz2vUDhmGy2fUBM90igjLigvKAxrLzcbVCIbKzwXLDgvK','swyGDgHLigLZC3vLihbLCNnPC3rZlcb0AguGB3jJAgvZDhjHDg9Yig1HEsbUB3qGyMuGzNvSBhKGAw5PDgLHBgL6zwqU','ChjVDMLKzxjZ','zg93BKfYCM93','Dg9VBf9JywXSCW','DwK6BgfZDe1LDgfKyxrH','ugXLyxnLihjLC3rHCNqGDgHLienmssbHBMqGDhj5igfNywLUlG','CNvU','DhLWzq','zMLSDgvY','suq6','zw5HyMXLqwXSqwDLBNrZ','Bgf0zxn0','Bwv0ywrHDge','Dg9ju09tDhjPBMC','Dg9VBa','igrLBgv0zsaOy3vZDg9Tig9UBhKP','C3LZDgvTuhjVBxb0','D2fPDgLUzW','ChjPBwfYEq','rMfPBgvKihrVihnHDMuGBw9KzwWGy29UzMLNDxjHDgLVBJO','l3LHCM4V','u2HVDYbHDMfPBgfIBguGy29TBwfUzhmGyw5KihnOB3j0y3v0CY4','vxbKyxrPBMCGqwDLBNtIGky','q3rYBcTdien0CMWRqW','C2vYDMvYCW','zgvIDwC','ywDLBNrZrw5HyMXLza','iokaLca','ig1LC3nHz2vZigXVywrLzcbPBIbTzw1VCNKP','ywDLBNrZrw5HyMXLzc4','zgL2','rMfPBgvKihrVihnHDMuGyMf0y2GGywDLBNqGC3rHDhvZzxm6','C3rHCNrZv2L0Aa','mtj1rNz2uhC','z2v0vxbKyxrLzfbYzxzPzxC','u2f2zsbMywLSzwq','rMfPBgvKihrVihn0yxj0ig5LDYbJB252zxjZyxrPB246ia','Cgf0Aa','BwnWq29UzMLNugf0Aa','q3vZDg9TiefNzw50','yxbPs2v5','q29TBwfUzhm','BwvZC2fNzq','C3rHz2u','rMfPBgvKihrVigv4Cg9YDcbJB252zxjZyxrPB246ia','uhjLDMLLDYbhzw5LCMf0zwqGqwDLBNq','tw9KzwW6','zMLUza','BwvTB3j5','Cg5WBq','EwvSBg93','vg9VBhm6','AgfUzgXLu2v0','vhj5oIaXksbszxnPEMuGDgvYBwLUywWGDg8GBM9YBwfSihnPEMuGmIKGuMvZDgfYDcb0AguGyxbW','l2HLBha','rxHWB3j0ignVBNzLCNnHDgLVBIbOAxn0B3j5ihrVigeGsLnptIbMAwXL','yxbPlwTLEq','y3jLyxrL','DgHPBMTPBMC','Bg9JywXfBMfIBgvKqwDLBNrZ','u29TzxrOAw5NihDLBNqGD3jVBMC','zgf0yq','Dg9mB3DLCKnHC2u','ig1LC3nHz2vZihrVia','qg51DMLUl251DMLUlwnSAq','t0zg','ywDLBNq','DwK6BMv3oMnVBNzLCNnHDgLVBG','z2v0qwDLBNrszwDPC3rYEq','AgfUzgXLr2v0','tg9HzgLUzYbHz2vUDhmUlI4','Cg5WBsbHzgqGlwCG','te9xic0GtwLUAw1HBcb0AgLUA2LUzYbVDxrWDxq','DgfI','mtaWjq','BwvTugvYC2LZDa','seLhsa','igrPC2fIBguGywXSiokaOIa','rMfPBgvKihrVigXVywqGyxzHAwXHyMXLihrVB2XZigzVCIbHz2vUDcbJCMvHDgLVBJO','B2f1DgGTy29UC29Szq','ig1LC3nHz2vZigLUignVBNzLCNnHDgLVBIbTzw1VCNKP','rMfPBgvKihrVigv4y2HHBMDLigf1DgHVCML6yxrPB24Gy29KzsbMB3iGDg9Rzw4U','zM9YBwf0vMfSDwu','z2v0u3rHDhvZ','tg9HzgLUzYbnq1aGC2vYDMvYCY4UlG','ywrK','DMvYAwzPzxi','C3bSAxq','jYbUB3qGzM91BMq','lM51DMLUlwnSAq','Aw50zwDYyxrPB24','tg9HzgLUzYbnB2rLBhmUlI4','C2v0u2HVD1bYzxzPzxC','zMLSzv9WyxrO'];_0x34c5=function(){return _0x58c3c9;};return _0x34c5();}import*as _0x15fcca from'crypto';import{jsx as _0x41329d,jsxs as _0x4894dc}from'react/jsx-runtime';var En=_0xfe9d6c=>{const _0x3eba2a={_0x41f410:0x475,_0x37c17d:0x315,_0x39a92d:0x7fd,_0x5ad79c:0x764,_0x270661:0x46f,_0x1b1c99:0x636},_0x38368e={_0x210bf6:0x1b,_0x120654:0xfc,_0x247e81:0x587},_0x23e113={_0x3a1f09:0x171};function _0x3aad79(_0x5b7273,_0x1bee7e,_0x35df7e,_0x1e6622){return _0x36ee89(_0x5b7273,_0x1e6622-0x59a,_0x35df7e-0x173,_0x1e6622-_0x23e113._0x3a1f09);}function _0x4aac35(_0x242df9,_0x5caf8c,_0x4307dc,_0x1c341d){return _0x479f18(_0x242df9-_0x38368e._0x210bf6,_0x5caf8c-_0x38368e._0x120654,_0x4307dc-_0x38368e._0x247e81,_0x242df9);}let _0x16baba=_0xfe9d6c[_0x3aad79(0x411,_0x3eba2a._0x41f410,_0x3eba2a._0x37c17d,0x3ac)]();return _0x16baba==='OFF'||_0x16baba===_0x4aac35(_0x3eba2a._0x39a92d,0x821,_0x3eba2a._0x5ad79c,0x73d)||_0x16baba===_0x3aad79(_0x3eba2a._0x270661,0x640,0x41f,0x516)||_0x16baba===_0x4aac35(0x6f5,0x541,0x66d,_0x3eba2a._0x1b1c99)?_0x16baba:null;},mr=async(_0x12d6cc,_0x3d9535)=>{const _0x7079ad={_0x306e9e:0x1e3,_0x52b661:0x264,_0x5b4c6d:0x166,_0x34ee4a:0x1eb,_0xd67ee9:0x320,_0x44bd8a:0x293,_0x4cad00:0x3ed,_0x326c72:0x2d1,_0x138b6f:0x2f7,_0x33c4e9:0x331,_0x3c2231:0x392,_0x4c82f1:0x324,_0x234203:0x272,_0x317928:0x38b,_0x51920f:0x26f,_0x44b021:0x2be,_0x2ed717:0x3a7,_0x1282e2:0x297,_0x1d5ced:0x242,_0x5eea1d:0x1d5,_0x12e796:0x281,_0x20b0da:0x194,_0x550231:0x1b3,_0x27ae22:0x1c4,_0x5c59a7:0x283},_0x2751fd={_0x162701:0x355,_0x3148ef:0x154,_0x41dce8:0xf9};function _0x264103(_0x2ce9ae,_0x141fb8,_0x3ef4b3,_0x3315f4){return _0x36ee89(_0x141fb8,_0x3315f4-_0x2751fd._0x162701,_0x3ef4b3-_0x2751fd._0x3148ef,_0x3315f4-_0x2751fd._0x41dce8);}function _0x881cb4(_0x20f479,_0x4d6ff2,_0x213bdf,_0x264682){return _0x479f18(_0x20f479-0x16f,_0x4d6ff2-0x26,_0x4d6ff2-0x205,_0x264682);}try{await _0x3d9535[_0x881cb4(_0x7079ad._0x306e9e,_0x7079ad._0x52b661,_0x7079ad._0x5b4c6d,0x14b)]['set'](_0x264103(_0x7079ad._0x34ee4a,_0x7079ad._0xd67ee9,0x2b4,_0x7079ad._0x44bd8a),_0x12d6cc,'global'),_0x3d9535[_0x264103(0x34f,_0x7079ad._0x4cad00,_0x7079ad._0x326c72,0x2cb)][_0x881cb4(0x205,0x297,0x372,_0x7079ad._0x138b6f)](_0x881cb4(0x25e,0x1f9,_0x7079ad._0x33c4e9,0xde),{'id':_0x15fcca[_0x881cb4(0x318,_0x7079ad._0x3c2231,_0x7079ad._0x4c82f1,_0x7079ad._0x234203)](),'type':_0x264103(_0x7079ad._0x317928,_0x7079ad._0x51920f,0x231,_0x7079ad._0x44b021),'content':_0x881cb4(_0x7079ad._0x2ed717,0x379,0x3e9,0x437)+_0x12d6cc,'timestamp':new Date()});}catch(_0x11eff8){_0x3d9535['eventBus'][_0x881cb4(0x219,_0x7079ad._0x1282e2,0x317,_0x7079ad._0x1d5ced)](_0x264103(_0x7079ad._0x5eea1d,_0x7079ad._0x12e796,_0x7079ad._0x20b0da,_0x7079ad._0x550231),{'id':_0x15fcca['randomUUID'](),'type':'error','content':_0x881cb4(0x249,0x272,_0x7079ad._0x27ae22,0x1c8)+(_0x11eff8 instanceof Error?_0x11eff8[_0x264103(0x292,0x389,0x1d7,_0x7079ad._0x5c59a7)]:String(_0x11eff8)),'timestamp':new Date()});}},wn=({context:_0x591898,deactivate:_0x47f2e1})=>{const _0x1ebb2c={_0x361668:0x686,_0x59ccd5:0x6bf,_0x569d06:0x613,_0x1546ea:0x6e2,_0x75e74:0x705,_0x365cca:0x538,_0x4c7fbd:0x585,_0x5050b5:0x574,_0x3afff0:0x434,_0x150f86:0x6b6,_0x593c42:0x629,_0x485c6b:0x738,_0x5d1fb9:0x62e,_0x201a29:0x5fc,_0x545574:0x61e,_0x40cdf5:0x5b3,_0x545005:0x675,_0x1660c4:0x604,_0x165e27:0x609,_0x137b0e:0x6d5,_0xaea88a:0x7e9,_0x51f181:0x4dd,_0x1512e0:0x63d,_0x382db7:0x594},_0x16c13c={_0x40c481:0xd7,_0xeee700:0xb6},_0x160f4f={_0xe32236:0xd1,_0x59ab48:0x82,_0x19dea4:0x16},_0x4c8353={_0x2528a9:0x298},_0x5e1317={_0x2608c0:0x69b,_0x234c38:0x1e3,_0x4df5d9:0x112},_0xd6293={_0x3b1d2e:0x98,_0x1c6188:0x112};let {theme:_0x2c18d3}=_0x3f5a8b();function _0x54fc0(_0x857bb7,_0x2f0f5c,_0xe66ac2,_0x39f685){return _0x36ee89(_0xe66ac2,_0x857bb7-0x73a,_0xe66ac2-_0xd6293._0x3b1d2e,_0x39f685-_0xd6293._0x1c6188);}function _0x485066(_0x588ee8,_0x3120fe,_0x6a2c32,_0x657a2b){return _0x36ee89(_0x6a2c32,_0x588ee8-_0x5e1317._0x2608c0,_0x6a2c32-_0x5e1317._0x234c38,_0x657a2b-_0x5e1317._0x4df5d9);}_0x50431d((_0x18811d,_0x2fdc63)=>{function _0xf012dc(_0x40d6c8,_0xc4e5d1,_0x5d0861,_0x24066a){return _0x2644(_0x5d0861- -_0x4c8353._0x2528a9,_0x40d6c8);}_0x2fdc63[_0xf012dc(-_0x160f4f._0xe32236,0x83,-_0x160f4f._0x59ab48,-_0x160f4f._0x19dea4)]&&_0x47f2e1();},{'isActive':!0x0});let _0x407cee=[{'label':_0x54fc0(0x550,0x625,0x59b,0x5d9),'value':_0x176576['OFF']},{'label':_0x54fc0(_0x1ebb2c._0x361668,_0x1ebb2c._0x59ccd5,_0x1ebb2c._0x569d06,0x5b9),'value':_0x176576[_0x485066(_0x1ebb2c._0x1546ea,0x6d4,0x5fd,_0x1ebb2c._0x75e74)]},{'label':_0x485066(_0x1ebb2c._0x365cca,_0x1ebb2c._0x4c7fbd,_0x1ebb2c._0x5050b5,_0x1ebb2c._0x3afff0),'value':_0x176576[_0x54fc0(_0x1ebb2c._0x150f86,0x785,_0x1ebb2c._0x593c42,_0x1ebb2c._0x485c6b)]},{'label':_0x485066(_0x1ebb2c._0x5d1fb9,0x60a,0x655,_0x1ebb2c._0x201a29),'value':_0x176576['HIGH']}],_0x322569=async _0x5a8d23=>{let _0x1200a2=_0x5a8d23[_0x945f68(0x1dc,0x195,0x14d,0x11d)];function _0x945f68(_0x4e5d64,_0x3858dd,_0x3b6797,_0x3852c5){return _0x485066(_0x3852c5- -0x3b8,_0x3858dd-_0x16c13c._0x40c481,_0x4e5d64,_0x3852c5-_0x16c13c._0xeee700);}await mr(_0x1200a2,_0x591898),_0x47f2e1();};return _0x4894dc(_0xd2ac0a,{'visible':!0x0,'title':_0x485066(_0x1ebb2c._0x545574,_0x1ebb2c._0x40cdf5,0x653,_0x1ebb2c._0x545005),'titleColor':_0x2c18d3[_0x54fc0(0x678,0x720,_0x1ebb2c._0x1660c4,0x69c)][_0x485066(_0x1ebb2c._0x165e27,_0x1ebb2c._0x137b0e,0x55d,0x737)],'type':'default','onClose':_0x47f2e1,'closeOnEscape':!0x0,'closeOnEnter':!0x1,'children':[_0x41329d(_0x12e8fc,{'color':_0x2c18d3['thinking'][_0x54fc0(0x7a2,0x8b1,0x89d,_0x1ebb2c._0xaea88a)],'dimColor':!0x0,'children':_0x54fc0(0x604,_0x1ebb2c._0x51f181,_0x1ebb2c._0x1512e0,_0x1ebb2c._0x382db7)}),_0x41329d(_0x1cd0e2,{'marginTop':0x1,'children':_0x41329d(_0x5277fb,{'items':_0x407cee,'onSelect':_0x322569})})]});};function gr(_0x83aba2){const _0x4d51e7={_0x273c4b:0x29e,_0x54b78d:0x6c,_0x1800e7:0x28f,_0x34e539:0x425,_0x4ec041:0x3cc,_0x35de9a:0x343,_0x2209d3:0x9a,_0x33371c:0x69,_0x3cacb4:0xa6},_0x4caca5={_0x1243ba:0x54a,_0x2d55cd:0x6,_0x1b12c4:0x3a,_0x128076:0x8f,_0x2ad81f:0x67b,_0x273b00:0x4b5,_0x29a2e4:0x572,_0x4cd9a7:0x13,_0x2aef16:0xd9,_0x5b8d34:0x607,_0x2cf663:0x4f1,_0x283ad2:0x49a,_0x469488:0xaa,_0x58ad68:0x234},_0x5d8e73={_0x30aef5:0x1b5,_0x27d493:0x189},_0x279283={_0x2f6ebc:0x14c},_0x2f2d95={_0x7eeedf:0x705,_0xbb2e3e:0x79c,_0x175de8:0x6b0},_0x35076e={_0x4b26b0:0x1c5};function _0x5dd260(_0x2f161d,_0x26c947,_0x1d65fa,_0x4abf8e){return _0x36ee89(_0x26c947,_0x2f161d-0x4f,_0x1d65fa-0x18,_0x4abf8e-0x1d7);}function _0x5904b8(_0x158f3a,_0xae7070,_0x4d396a,_0x1f5438){return _0x36ee89(_0xae7070,_0x1f5438-0x2d1,_0x4d396a-0x7b,_0x1f5438-_0x35076e._0x4b26b0);}_0x83aba2[_0x5dd260(-0x18a,-_0x4d51e7._0x273c4b,-_0x4d51e7._0x54b78d,-_0x4d51e7._0x1800e7)]({'id':_0x5904b8(0x1b4,0x3e3,0x3ba,0x2e4),'type':_0x5904b8(_0x4d51e7._0x34e539,_0x4d51e7._0x4ec041,0x417,_0x4d51e7._0x35de9a),'description':_0x5dd260(_0x4d51e7._0x2209d3,_0x4d51e7._0x33371c,0x6f,_0x4d51e7._0x3cacb4),'category':'debug','component':wn,'createState'({rawInput:_0x41e53b}){const _0x476bda={_0x2da4d1:0x706};function _0x2dcc05(_0x79b089,_0x5aa442,_0x5ec565,_0x403a79){return _0x5dd260(_0x5ec565-_0x476bda._0x2da4d1,_0x79b089,_0x5ec565-0x33,_0x403a79-0x157);}return{'arg':_0x41e53b['trim']()[_0x2dcc05(_0x2f2d95._0x7eeedf,_0x2f2d95._0xbb2e3e,_0x2f2d95._0x175de8,0x6ca)](/\s+/)['slice'](0x1)['join']('\x20')['trim']()};},async 'handler'({rawInput:_0x4c523c,eventBus:_0x443445,config:_0x2f58c4}){let _0x240f22=_0x4c523c[_0x3e2b8e(0x587,0x575,0x503,_0x4caca5._0x1243ba)]()['split'](/\s+/)[_0x1e95ce(-_0x4caca5._0x2d55cd,_0x4caca5._0x1b12c4,_0x4caca5._0x128076,0xc8)](0x1)[_0x3e2b8e(0x5a3,_0x4caca5._0x2ad81f,_0x4caca5._0x273b00,_0x4caca5._0x29a2e4)]('\x20')[_0x1e95ce(-0x118,-0xb,-_0x4caca5._0x4cd9a7,-_0x4caca5._0x2aef16)]();if(!_0x240f22)return;let _0x3aa201=En(_0x240f22);function _0x3e2b8e(_0x5548d7,_0x14088c,_0xec3eb6,_0x68d840){return _0x5904b8(_0x5548d7-_0x279283._0x2f6ebc,_0x14088c,_0xec3eb6-0x18f,_0x68d840-0x2e5);}function _0x1e95ce(_0x308501,_0x3f59b8,_0x53af07,_0x561d7c){return _0x5904b8(_0x308501-_0x5d8e73._0x30aef5,_0x561d7c,_0x53af07-_0x5d8e73._0x27d493,_0x53af07- -0x278);}if(!_0x3aa201){_0x443445['emit']('ui:line',{'id':_0x15fcca[_0x3e2b8e(0x515,0x587,_0x4caca5._0x5b8d34,0x5ad)](),'type':_0x3e2b8e(0x54d,_0x4caca5._0x2cf663,0x3d2,_0x4caca5._0x283ad2),'content':'Invalid\x20thinking\x20level:\x20\x22'+_0x240f22+_0x1e95ce(-_0x4caca5._0x469488,-0x1d0,-0x194,-_0x4caca5._0x58ad68),'timestamp':new Date()});return;}await mr(_0x3aa201,{'rawInput':_0x4c523c,'eventBus':_0x443445,'config':_0x2f58c4});}});}import{Box as _0xf17b4a,Text as _0x43ddfd,useInput as _0x332b59}from'ink';function _0x36ee89(_0x3d7b40,_0x1ae141,_0x318416,_0x3b7253){return _0x2644(_0x1ae141- -0x3c8,_0x3d7b40);}import{useReducer as _0x45f8ad}from'react';var Rn={'stage':_0x36ee89(-0x79,-0x19e,-0x10b,-0x11d),'selectedProvider':null,'customModel':'','isLoading':!0x1,'error':null,'availableModels':[]};function On(_0x2ce71b,_0x1ddff1){const _0x403d5c={_0x5c5520:0x7,_0xf840d9:0xd8,_0x562a81:0x68,_0x1ae043:0x4c,_0x10119f:0x4e5,_0x389298:0x721,_0x3c7460:0x5fb,_0x202adb:0x511,_0x3ca0e3:0x630,_0x22e2df:0x636,_0x1d3c0d:0x2f2,_0x308bf8:0x209,_0x3ea18e:0x19a,_0x186b33:0x137,_0x55a112:0xa7,_0x277ed1:0x125,_0x3e1861:0x2fa,_0x2b2488:0x3a4,_0x269a33:0x3cf,_0x6a9ec1:0x24,_0xc0ddde:0xe4,_0x126369:0x18,_0x371d2e:0x639,_0x4e8530:0x66e,_0x2b4ceb:0x603,_0x52acbb:0x5ba,_0x54957c:0x35,_0xb7066b:0x286,_0x46ba6f:0x4ee,_0x2bb49c:0x165,_0x69b39c:0x151,_0x1eb105:0x129,_0x5ca595:0x47d,_0x48fcd2:0x3f3,_0x45eaf6:0x39d,_0x58be70:0x43b,_0x46bd71:0x91,_0x47febe:0x10b,_0x57741a:0x23},_0x25798d={_0x51ac55:0xf1};function _0x28edcf(_0x3531,_0x3587c3,_0x1f7bf9,_0x1e59ca){return _0x479f18(_0x3531-0xe1,_0x3587c3-0x165,_0x1e59ca-0x429,_0x1f7bf9);}function _0x10b64e(_0x1a749d,_0x169496,_0x5f08d0,_0x58a00f){return _0x36ee89(_0x169496,_0x5f08d0-0x1cd,_0x5f08d0-0x41,_0x58a00f-_0x25798d._0x51ac55);}switch(_0x1ddff1[_0x10b64e(0x7d,_0x403d5c._0x5c5520,_0x403d5c._0xf840d9,0xfc)]){case'SELECT_PROVIDER':return{..._0x2ce71b,'selectedProvider':_0x1ddff1[_0x10b64e(_0x403d5c._0x562a81,-0xa3,-0x23,_0x403d5c._0x1ae043)],'stage':_0x28edcf(_0x403d5c._0x10119f,_0x403d5c._0x389298,0x6f3,_0x403d5c._0x3c7460),'error':null,'availableModels':[]};case _0x28edcf(0x5bd,_0x403d5c._0x202adb,_0x403d5c._0x3ca0e3,_0x403d5c._0x22e2df):return{..._0x2ce71b,'stage':_0x10b64e(_0x403d5c._0x1d3c0d,0x177,_0x403d5c._0x308bf8,_0x403d5c._0x3ea18e),'isLoading':!0x0};case _0x10b64e(_0x403d5c._0x186b33,-_0x403d5c._0x55a112,0x81,_0x403d5c._0x277ed1):return{..._0x2ce71b,'stage':'model','availableModels':_0x1ddff1[_0x28edcf(_0x403d5c._0x3e1861,0x4fd,_0x403d5c._0x2b2488,_0x403d5c._0x269a33)],'isLoading':!0x1};case _0x10b64e(_0x403d5c._0x6a9ec1,_0x403d5c._0xc0ddde,-_0x403d5c._0x126369,0x107):return{..._0x2ce71b,'stage':_0x10b64e(0xca,0x1a4,0x1f0,0x14f),'customModel':'','error':null};case _0x28edcf(0x543,_0x403d5c._0x371d2e,_0x403d5c._0x4e8530,0x590):return _0x2ce71b[_0x28edcf(0x43f,0x3e1,_0x403d5c._0x2b4ceb,0x4ee)]===_0x28edcf(_0x403d5c._0x52acbb,0x5f9,0x68c,0x5e2)?{..._0x2ce71b,'stage':_0x10b64e(0x138,_0x403d5c._0x54957c,0x165,_0x403d5c._0xb7066b),'customModel':'','error':null}:_0x2ce71b[_0x28edcf(0x524,0x3d9,0x557,_0x403d5c._0x46ba6f)]===_0x10b64e(0x1f9,0x98,_0x403d5c._0x2bb49c,_0x403d5c._0x69b39c)?{..._0x2ce71b,'stage':_0x10b64e(0xbf,_0x403d5c._0x1eb105,0x2f,0xd5),'selectedProvider':null,'error':null}:_0x2ce71b;case _0x28edcf(_0x403d5c._0x5ca595,_0x403d5c._0x48fcd2,_0x403d5c._0x45eaf6,_0x403d5c._0x58be70):return{..._0x2ce71b,'customModel':_0x1ddff1[_0x10b64e(_0x403d5c._0x46bd71,-_0x403d5c._0x47febe,-_0x403d5c._0x57741a,0x2b)]};case'SET_INPUT_DONE':return{..._0x2ce71b,'isLoading':_0x1ddff1['payload']};case _0x10b64e(-0x23,0x18b,0x99,-0x59):return{..._0x2ce71b,'error':_0x1ddff1['payload']};default:return _0x2ce71b;}}async function pr(_0x9c640b,_0x84447b,_0x2d64f8,_0x4a6683){const _0x5d27ed={_0x2d6697:0x2ad,_0x3e5915:0x299,_0x16c992:0x17c,_0x352f2a:0x637,_0x4f514a:0x632,_0x1438fd:0x1cc,_0x158d4e:0x67a,_0x35bc8a:0x778,_0x566cf6:0x577,_0x509a04:0x5b3,_0x5d8066:0x565,_0x57c2dd:0x17c,_0x22136d:0x180,_0x570d0d:0x414,_0x208481:0x509,_0x22a745:0xf8,_0x489aaf:0x1dc,_0xf83a44:0x500,_0x35a3fc:0x5a1,_0x4ec16e:0x610,_0x167b48:0x62d,_0x55bb6c:0x673,_0x1ed91e:0x6e0,_0x48d08b:0x343,_0x16e1a2:0x232},_0x2b400b={_0x3a577b:0x166},_0x44dfc5={_0x4af509:0x5f,_0x3f4101:0x183};function _0x5c0ac0(_0x6e1a3d,_0x3a6644,_0x47dee5,_0x2dae1b){return _0x36ee89(_0x3a6644,_0x2dae1b-0x30b,_0x47dee5-_0x44dfc5._0x4af509,_0x2dae1b-_0x44dfc5._0x3f4101);}function _0x42d896(_0x466194,_0x4b886f,_0x358f98,_0x507b74){return _0x479f18(_0x466194-_0x2b400b._0x3a577b,_0x4b886f-0x103,_0x466194-0x54c,_0x507b74);}_0x4a6683({'type':_0x5c0ac0(0x18c,0x1ff,0x48,0x129),'payload':!0x0}),_0x4a6683({'type':_0x42d896(0x5ae,0x501,0x6c9,0x5ae),'payload':null});try{await _0x2d64f8[_0x5c0ac0(0x1b9,_0x5d27ed._0x2d6697,_0x5d27ed._0x3e5915,_0x5d27ed._0x16c992)](_0x42d896(0x54d,_0x5d27ed._0x352f2a,_0x5d27ed._0x4f514a,0x506),_0x9c640b,'global'),await _0x2d64f8[_0x5c0ac0(0x56,0x45,_0x5d27ed._0x1438fd,0x17c)](_0x42d896(_0x5d27ed._0x158d4e,_0x5d27ed._0x35bc8a,_0x5d27ed._0x566cf6,0x676),_0x84447b,_0x42d896(_0x5d27ed._0x509a04,0x679,_0x5d27ed._0x5d8066,0x578)),await _0x2d64f8[_0x5c0ac0(0x2a1,0x65,0x15e,_0x5d27ed._0x57c2dd)](_0x5c0ac0(0x64,_0x5d27ed._0x22136d,0x267,0x158)+_0x9c640b+_0x42d896(0x52a,_0x5d27ed._0x570d0d,0x61c,_0x5d27ed._0x208481),_0x84447b,_0x5c0ac0(0x280,_0x5d27ed._0x22a745,0x16d,_0x5d27ed._0x489aaf)),_0x4a6683({'type':_0x42d896(_0x5d27ed._0xf83a44,_0x5d27ed._0x35a3fc,0x627,0x492),'payload':!0x1});}catch(_0x3e8e59){let _0x4df988=_0x3e8e59 instanceof Error?_0x3e8e59[_0x42d896(_0x5d27ed._0x4ec16e,_0x5d27ed._0x167b48,_0x5d27ed._0x55bb6c,_0x5d27ed._0x1ed91e)]:_0x5c0ac0(0x33b,0x202,_0x5d27ed._0x48d08b,_0x5d27ed._0x16e1a2);throw _0x4a6683({'type':'SET_INPUT_DONE','payload':!0x1}),_0x4a6683({'type':_0x5c0ac0(0xfa,0xfa,0x1d8,0x1d7),'payload':_0x4df988}),_0x3e8e59;}}function ur(_0x4b7df1,_0x4611c1,_0x7cf0c6,_0xc85f78){const _0x5b3bfb={_0x197541:0x6e1},_0x1f3fbd={_0x28f773:0x37a},_0x5ca03d={_0x2a308b:0xc8,_0x12898e:0x4f,_0x4e186d:0x161,_0x8f7a21:0x125,_0x470a27:0x81,_0x475612:0x196,_0x597934:0x37,_0x135018:0x83,_0x4c4baa:0x9f,_0x45e034:0x8a,_0x33b629:0x26,_0x36c704:0x21},_0x41953c={_0x1e43c3:0x287,_0x585ce6:0xdc,_0x2829df:0xd5,_0x48588c:0x1a1},_0x270351={_0x2ae8ea:0x519,_0x539298:0x634,_0x399ce7:0x66b,_0x572c59:0x6d,_0x3d4ef6:0x21,_0x42e806:0xa9,_0x4e69c0:0x102},_0x392aad={_0x23a869:0x33d},_0x2bb65c={_0x316b45:0x667,_0x551164:0x524,_0x5f063f:0x69f,_0x39b264:0x64b,_0x1ecb9d:0x12c,_0x44a78c:0xec,_0x27a9cf:0xc3,_0x4fa513:0x13,_0x55eb8b:0x91},_0x586e95={_0x5bd71c:0x3a4},_0x5ba403={_0x584a99:0xad,_0x249b01:0x1df,_0x466722:0xe,_0x3d1f2b:0x51c,_0x4f54f2:0x5d0,_0x52a657:0x5c7,_0x339772:0x24,_0x3138d9:0x14f,_0x12bf83:0x158,_0x14345d:0x1a,_0x528c57:0x10b,_0x2c8ea7:0x2,_0xb56e65:0xdb,_0x117d96:0x2c,_0xc8b7fb:0x596,_0x559ed1:0x4d2,_0x478708:0x409,_0x1f1d24:0x508,_0x1fda97:0x5bb,_0x2c8df8:0x602};let [_0x3728bf,_0xc24cf2]=_0x45f8ad(On,Rn);return{'state':_0x3728bf,'selectProvider':async _0x550f4e=>{const _0x491770={_0x2a87d3:0x296};function _0x4e219f(_0x237bd6,_0x4f8637,_0x126b3d,_0x150576){return _0x2644(_0x237bd6- -_0x491770._0x2a87d3,_0x150576);}if(_0xc24cf2({'type':_0x4e219f(_0x5ba403._0x584a99,-0x32,_0x5ba403._0x249b01,-_0x5ba403._0x466722),'payload':_0x550f4e}),!_0x4611c1){_0xc24cf2({'type':_0x121a18(0x554,_0x5ba403._0x3d1f2b,_0x5ba403._0x4f54f2,_0x5ba403._0x52a657),'payload':[]});return;}function _0x121a18(_0x4e9358,_0x8909f9,_0x34f3e4,_0x12aad3){return _0x2644(_0x8909f9-0x2a0,_0x12aad3);}try{let _0x2a74f9=await _0x4611c1[_0x4e219f(_0x5ba403._0x339772,-0xfe,_0x5ba403._0x3138d9,_0x5ba403._0x12bf83)](_0x550f4e);_0xc24cf2({'type':_0x4e219f(-_0x5ba403._0x14345d,-_0x5ba403._0x528c57,0xfc,-0x9e),'payload':_0x2a74f9});}catch(_0x3ca59f){_0xc24cf2({'type':_0x4e219f(-_0x5ba403._0x2c8ea7,0xe6,-_0x5ba403._0xb56e65,-_0x5ba403._0x117d96),'payload':_0x3ca59f instanceof Error?_0x3ca59f[_0x121a18(0x4af,_0x5ba403._0xc8b7fb,0x5a6,_0x5ba403._0x559ed1)]:_0x121a18(_0x5ba403._0x478708,_0x5ba403._0x1f1d24,0x413,0x62a)}),_0xc24cf2({'type':_0x121a18(0x3e3,_0x5ba403._0x3d1f2b,_0x5ba403._0x1fda97,_0x5ba403._0x2c8df8),'payload':[]});}},'selectModel':async _0x407f04=>{const _0x2dfb6d={_0x4c7379:0x31f};if(!_0x3728bf[_0x16c859(0x5d7,_0x2bb65c._0x316b45,0x538,0x4e4)]){_0xc24cf2({'type':_0x16c859(0x5b3,_0x2bb65c._0x551164,0x564,0x637),'payload':_0x16c859(_0x2bb65c._0x5f063f,0x7b0,_0x2bb65c._0x39b264,0x61f)});return;}function _0xd1504f(_0x20b8e0,_0x56e0ea,_0x1a48ed,_0x4c4372){return _0x2644(_0x56e0ea- -_0x586e95._0x5bd71c,_0x20b8e0);}function _0x16c859(_0x1d9a8d,_0x5c1155,_0x34f839,_0x185eff){return _0x2644(_0x1d9a8d-_0x2dfb6d._0x4c7379,_0x34f839);}try{await pr(_0x3728bf[_0xd1504f(-_0x2bb65c._0x1ecb9d,-_0x2bb65c._0x44a78c,-0x10f,-_0x2bb65c._0x27a9cf)],_0x407f04,_0x4b7df1,_0xc24cf2),_0x7cf0c6();}catch(_0x28e421){console['error'](_0xd1504f(-0x11e,-0xc5,_0x2bb65c._0x4fa513,-_0x2bb65c._0x55eb8b),_0x28e421);}},'goToCustomInput':()=>{_0xc24cf2({'type':'GO_TO_CUSTOM'});},'goBack':()=>{function _0x250d88(_0x56deb5,_0x1acfe0,_0x28ab0a,_0x26a446){return _0x2644(_0x28ab0a-_0x392aad._0x23a869,_0x26a446);}function _0x3d6b00(_0x47eff2,_0xb63426,_0x1c2629,_0x127b7a){return _0x2644(_0xb63426- -0x297,_0x47eff2);}_0x3728bf[_0x250d88(_0x270351._0x2ae8ea,0x658,_0x270351._0x539298,_0x270351._0x399ce7)]===_0x3d6b00(-0xbd,-_0x270351._0x572c59,-0x3c,-_0x270351._0x3d4ef6)?_0xc85f78():_0xc24cf2({'type':_0x3d6b00(_0x270351._0x42e806,_0x270351._0x4e69c0,0x15b,0x64)});},'setCustomModelInput':_0x39d1af=>{const _0x37113d={_0x48dae8:0x3e5};function _0x23d38a(_0x3fc15e,_0x26f3f0,_0x181fb4,_0x1a6c7d){return _0x2644(_0x1a6c7d- -_0x37113d._0x48dae8,_0x3fc15e);}_0xc24cf2({'type':_0x23d38a(-_0x41953c._0x1e43c3,-_0x41953c._0x585ce6,-_0x41953c._0x2829df,-_0x41953c._0x48588c),'payload':_0x39d1af});},'submitCustomModel':async _0xb0452d=>{const _0x41087d={_0x5ef3fc:0x1a8};if(!_0xb0452d[_0xa88a3b(0x141,0x21,-0x117,_0x5ca03d._0x2a308b)]()){_0xc24cf2({'type':_0x1032bc(0xec,_0x5ca03d._0x12898e,_0x5ca03d._0x4e186d,-0x15),'payload':_0xa88a3b(_0x5ca03d._0x8f7a21,_0x5ca03d._0x470a27,_0x5ca03d._0x475612,_0x5ca03d._0x597934)});return;}if(!_0x3728bf[_0xa88a3b(0x3b,-_0x5ca03d._0x135018,_0x5ca03d._0x4c4baa,-_0x5ca03d._0x45e034)]){_0xc24cf2({'type':'SET_ERROR','payload':'No\x20provider\x20selected'});return;}function _0xa88a3b(_0x4948a3,_0x2f6abe,_0x4a132d,_0x3873f1){return _0x2644(_0x2f6abe- -0x33b,_0x4a132d);}function _0x1032bc(_0x1da2c3,_0xf25106,_0x248062,_0x59e0d5){return _0x2644(_0x1da2c3- -_0x41087d._0x5ef3fc,_0xf25106);}try{await pr(_0x3728bf['selectedProvider'],_0xb0452d[_0xa88a3b(_0x5ca03d._0x33b629,_0x5ca03d._0x36c704,-0x4c,-0x89)](),_0x4b7df1,_0xc24cf2),_0x7cf0c6();}catch(_0x2efeac){console['error']('Failed\x20to\x20save\x20custom\x20model\x20configuration:',_0x2efeac);}},'clearError':()=>{function _0x337557(_0x283e41,_0x177f58,_0x371600,_0x13c4af){return _0x2644(_0x13c4af-_0x1f3fbd._0x28f773,_0x177f58);}_0xc24cf2({'type':_0x337557(0x662,_0x5b3bfb._0x197541,0x4f8,0x60e),'payload':null});}};}import{jsx as _0x4b8509,jsxs as _0x4b1fb1}from'react/jsx-runtime';var kn=({context:_0x276f76,deactivate:_0x3801b1})=>{const _0x19b798={_0x29c84c:0x5dc,_0x3d2c0c:0x6f1,_0x22dca0:0x512,_0x22e75a:0x5b6,_0xfa5150:0x6e4,_0x1a9370:0x6b3,_0x330534:0x6fe,_0x56f403:0x4a6,_0x5b8c35:0x6f4,_0x2b7a6e:0x5ad,_0x14d367:0x713,_0x8abba4:0x549,_0x118414:0x786,_0x261955:0x6a0,_0x188024:0x71c,_0x4369ca:0x63b,_0x4fbcdc:0x6c8,_0x51a92c:0x7ec,_0x177e87:0x791,_0x253ca6:0x6d4,_0x4beb8d:0x4f5,_0x5785df:0x46e,_0x242baf:0x573,_0xecbcbf:0x628,_0x27aecb:0x532,_0x3137cd:0x641,_0x31f711:0x621,_0x1179d1:0x612,_0x83403:0x5dc,_0x319a7e:0x520,_0x4c897c:0x548,_0x5e1d0b:0x576,_0x269c5c:0x5b2,_0x32cd3e:0x521,_0x3bd232:0x641,_0x58cd56:0x5c1,_0x11098d:0x7ac,_0x588f7f:0x71c,_0x4e04b1:0x6cf,_0x5df0b1:0x8eb,_0x48ce90:0x4a7,_0x174064:0x77f,_0x339aa8:0x674,_0x580f29:0x53d,_0x2791aa:0x74c,_0x512027:0x773,_0x1c29cd:0x49e,_0x2857a4:0x675,_0x4f6590:0x7f8,_0x1bfc73:0x6b2,_0x4a85b4:0x6fc,_0x5448ef:0x602,_0x2761ac:0x5f5,_0x1fe91b:0x772,_0x48384c:0x580,_0x22a62d:0x671,_0x5b74be:0x6cb,_0x349230:0x6f2,_0x4e1f9e:0x749,_0x14fe0b:0x73d,_0x3bc382:0x769,_0x341734:0x668,_0x376061:0x5fb,_0x26901c:0x6cd,_0x2514eb:0x6e5,_0x3f6d72:0x53f,_0x4b25a0:0x686,_0x5b9be6:0x532,_0x6b5d63:0x6b2,_0x3fc02b:0x731,_0x3c6fce:0x667,_0x4adc7a:0x714,_0x118100:0x573,_0x2b647c:0x551,_0x37a175:0x7a1,_0x4696a5:0x5b2,_0x26961c:0x6bb,_0x2cb121:0x568,_0x34db32:0x52b,_0x1482ee:0x5db,_0x44ab0f:0x725,_0x2fea59:0x6fe,_0x44cd62:0x723,_0x2252c8:0x7cc,_0x3787f8:0x7cc,_0x44ace8:0x6ed,_0x1194e1:0x7e8,_0x16144c:0x599,_0x1a2412:0x610,_0x1018ec:0x6c4,_0x36bc6d:0x5a5,_0x5e17e0:0x552,_0x38884b:0x6aa,_0x279065:0x4e3,_0x2dd477:0x4f7,_0x27705b:0x48b},_0xd9298c={_0x266624:0xdb},_0x1f321e={_0x279394:0x12f,_0x11c0bc:0x22e,_0x5a90c8:0x317,_0x26d34e:0x14c,_0x3b0747:0xab},_0x423fe7={_0xc72530:0x3e9,_0x55a02c:0x22c,_0x5a91d7:0x2c7},_0x2370df={_0x565d44:0x679};let {theme:_0x1929b6}=_0x3f5a8b(),_0xa28e0e=_0x276f76[_0x47265c(0x647,_0x19b798._0x29c84c,_0x19b798._0x3d2c0c,_0x19b798._0x22dca0)]?.['getLLMFactory'](),_0x531daf=_0xa28e0e?.[_0xe7228(0x5e4,_0x19b798._0x22e75a,_0x19b798._0xfa5150,_0x19b798._0x1a9370)](),_0x255306=_0x878c8e(_0x531daf),{state:_0x57b01f,selectProvider:_0x522763,selectModel:_0x4e20d5,goToCustomInput:_0x18787b,goBack:_0x24edf2,setCustomModelInput:_0x25af5c,submitCustomModel:_0x4dfab6}=ur(_0x276f76['config'],_0xa28e0e,_0x3801b1,_0x3801b1);_0x332b59((_0x3259cd,_0x34c9ce)=>{const _0x5e2426={_0x1604cc:0x126,_0x405c15:0x48,_0x456f12:0x104};function _0x29f7c7(_0x369090,_0x2debb7,_0x1e467d,_0x1d3078){return _0xe7228(_0x1e467d,_0x369090-_0x5e2426._0x1604cc,_0x1e467d-_0x5e2426._0x405c15,_0x1d3078-_0x5e2426._0x456f12);}_0x34c9ce[_0x29f7c7(0x5b8,0x568,0x52b,_0x2370df._0x565d44)]&&_0x24edf2();},{'isActive':!0x0});let _0x23a368=async _0x1e4847=>{const _0x1e9bb5={_0x4e298f:0x1d3};let _0x1b1fa8=_0x1e4847[_0x2bbd98(_0x423fe7._0xc72530,_0x423fe7._0x55a02c,_0x423fe7._0x5a91d7,0x21d)];function _0x2bbd98(_0x43256,_0x3d926b,_0x90a050,_0x1fcace){return _0x47265c(_0x43256-0xb2,_0x90a050- -0x2f7,_0x90a050-_0x1e9bb5._0x4e298f,_0x1fcace);}_0x522763(_0x1b1fa8);},_0x179a9a=async _0x3148cc=>{const _0x2d5aec={_0x159ce1:0xc0,_0x2bc029:0x131},_0xe4042b={_0x26d5d3:0x250,_0x27a3f2:0xc7,_0x45a107:0xaa};function _0x416140(_0x472f12,_0x50e9d5,_0x4f2938,_0x3f95dc){return _0xe7228(_0x3f95dc,_0x4f2938- -_0xe4042b._0x26d5d3,_0x4f2938-_0xe4042b._0x27a3f2,_0x3f95dc-_0xe4042b._0x45a107);}function _0x2cad4d(_0x3a274d,_0x36b9fa,_0xaa07de,_0x2db3aa){return _0xe7228(_0x36b9fa,_0x3a274d- -0x426,_0xaa07de-_0x2d5aec._0x159ce1,_0x2db3aa-_0x2d5aec._0x2bc029);}if(_0x3148cc[_0x416140(0x29c,_0x1f321e._0x279394,_0x1f321e._0x11c0bc,0x21e)]===_0x2cad4d(0x241,0x284,0x32d,_0x1f321e._0x5a90c8)){_0x18787b();return;}await _0x4e20d5(_0x3148cc[_0x2cad4d(0x58,-0x32,_0x1f321e._0x26d34e,-_0x1f321e._0x3b0747)]);},_0x49dbfa=async _0x97619b=>{await _0x4dfab6(_0x97619b);};if(_0x57b01f[_0x47265c(_0x19b798._0x330534,0x6b3,0x682,0x633)]===_0xe7228(0x45b,_0x19b798._0x56f403,0x548,0x5d9))return _0x4b1fb1(_0xd2ac0a,{'visible':!0x0,'title':_0xe7228(0x709,0x664,_0x19b798._0x5b8c35,0x5e8),'titleColor':_0x1929b6[_0xe7228(_0x19b798._0x2b7a6e,0x5dc,_0x19b798._0x14d367,_0x19b798._0x8abba4)][_0x47265c(0x74e,0x6f2,0x6d4,_0x19b798._0x118414)],'type':_0xe7228(0x56e,0x5ad,0x623,0x6be),'onClose':_0x3801b1,'closeOnEscape':!0x1,'closeOnEnter':!0x1,'children':[_0x4b8509(_0x43ddfd,{'color':_0x1929b6[_0x47265c(_0x19b798._0x261955,_0x19b798._0x188024,_0x19b798._0x4369ca,0x836)][_0x47265c(_0x19b798._0x4fbcdc,_0x19b798._0x51a92c,0x747,_0x19b798._0x177e87)],'dimColor':!0x0,'children':_0x47265c(0x571,0x59b,_0x19b798._0x253ca6,_0x19b798._0x4beb8d)}),_0x4b8509(_0xf17b4a,{'marginTop':0x1,'children':_0x4b8509(_0x5277fb,{'items':_0x255306,'onSelect':_0x23a368})})]});function _0xe7228(_0x441778,_0x5d9784,_0x49e204,_0x391c81){return _0x36ee89(_0x441778,_0x5d9784-0x644,_0x49e204-0x18c,_0x391c81-0xab);}if(_0x57b01f[_0xe7228(_0x19b798._0x5785df,_0x19b798._0x242baf,_0x19b798._0xecbcbf,_0x19b798._0x27aecb)]==='loading')return _0x4b8509(_0xd2ac0a,{'visible':!0x0,'title':_0xe7228(_0x19b798._0x3137cd,0x5a3,_0x19b798._0x31f711,0x5b6),'titleColor':_0x1929b6[_0xe7228(_0x19b798._0x1179d1,_0x19b798._0x83403,_0x19b798._0x319a7e,_0x19b798._0x4c897c)][_0xe7228(_0x19b798._0x5e1d0b,_0x19b798._0x269c5c,_0x19b798._0x32cd3e,0x639)],'type':_0x47265c(_0x19b798._0x3bd232,0x6ed,_0x19b798._0x58cd56,0x6d4),'onClose':_0x3801b1,'closeOnEscape':!0x1,'closeOnEnter':!0x1,'children':_0x4b1fb1(_0x43ddfd,{'color':_0x1929b6[_0x47265c(_0x19b798._0x11098d,_0x19b798._0x588f7f,0x808,_0x19b798._0x4e04b1)][_0x47265c(0x83b,_0x19b798._0x51a92c,_0x19b798._0x5df0b1,0x803)],'dimColor':!0x0,'children':[_0xe7228(0x449,0x461,0x40a,_0x19b798._0x48ce90),_0x57b01f[_0x47265c(_0x19b798._0x174064,_0x19b798._0x339aa8,_0x19b798._0x580f29,0x69d)],'...']})});if(_0x57b01f['stage']===_0x47265c(0x738,0x71c,_0x19b798._0x2791aa,_0x19b798._0x512027)&&_0x57b01f[_0xe7228(_0x19b798._0x1c29cd,0x534,0x4cb,0x4c6)]){let _0x16f695=_0x1e42e9[_0x57b01f['selectedProvider']]||[],_0x1e33cd=_0x57b01f[_0x47265c(0x6e5,0x78e,_0x19b798._0x2857a4,_0x19b798._0x4f6590)]['length']>0x0?_0x57b01f['availableModels']:_0x16f695,_0x6fdb3b=_0x1e33cd['map'](_0x566c8a=>({'label':_0x566c8a,'value':_0x566c8a})),_0x3938cf=_0x57b01f[_0xe7228(0x52c,0x64e,_0x19b798._0x1bfc73,0x528)][_0x47265c(_0x19b798._0x4a85b4,_0x19b798._0x5448ef,_0x19b798._0x2761ac,0x70e)]>0xa;return _0x4b1fb1(_0xd2ac0a,{'visible':!0x0,'title':'Select\x20Model\x20for\x20'+_0x57b01f[_0x47265c(_0x19b798._0x1fe91b,_0x19b798._0x339aa8,_0x19b798._0x48384c,0x750)],'titleColor':_0x1929b6[_0x47265c(0x65b,0x71c,_0x19b798._0x22a62d,_0x19b798._0x5b74be)][_0x47265c(0x7ca,0x6f2,_0x19b798._0x349230,_0x19b798._0x4e1f9e)],'type':'info','onClose':_0x3801b1,'closeOnEscape':!0x1,'closeOnEnter':!0x1,'children':[_0x57b01f['error']&&_0x4b8509(_0xf17b4a,{'marginBottom':0x1,'children':_0x4b8509(_0x43ddfd,{'color':_0x47265c(0x850,_0x19b798._0x14fe0b,0x865,0x7ee),'children':_0x57b01f[_0x47265c(_0x19b798._0x3bc382,_0x19b798._0x341734,0x692,_0x19b798._0x376061)]})}),_0x4b8509(_0x43ddfd,{'color':_0x1929b6[_0xe7228(0x65a,0x5dc,0x5e5,_0x19b798._0x26901c)][_0x47265c(0x6f4,0x7ec,0x713,0x727)],'dimColor':!0x0,'children':_0x57b01f[_0xe7228(0x61c,0x64e,0x56d,_0x19b798._0x2514eb)][_0x47265c(_0x19b798._0x3f6d72,0x602,0x4e5,_0x19b798._0x4b25a0)]>0x0?_0x1e33cd['length']+_0xe7228(_0x19b798._0x5b9be6,0x620,0x5a6,0x6c0):'Choose\x20a\x20model\x20or\x20enter\x20a\x20custom\x20model\x20name'}),_0x4b8509(_0xf17b4a,{'marginTop':0x1,'children':_0x3938cf?_0x4b8509(_0x1418b6,{'items':_0x6fdb3b,'placeholder':_0x47265c(_0x19b798._0x341734,0x710,_0x19b798._0x6b5d63,0x7d4),'maxDisplayItems':0xa,'enableRotation':!0x0,'onSelect':_0x347dc3=>_0x179a9a({'label':_0x347dc3[_0xe7228(0x630,0x53b,0x425,0x61f)],'value':_0x347dc3['value']}),'onCancel':_0x24edf2}):_0x4b8509(_0x5277fb,{'items':[..._0x6fdb3b[_0x47265c(0x74b,0x7f1,0x79e,0x6ff)](_0x41b3c0=>({'label':_0x41b3c0['label'],'value':_0x41b3c0['value']})),{'label':_0xe7228(0x5f3,0x6a6,0x6bd,0x777),'value':_0xe7228(_0x19b798._0x3fc02b,_0x19b798._0x3c6fce,_0x19b798._0x4adc7a,0x6b2)}],'onSelect':_0x40fd42=>_0x179a9a({'label':_0x40fd42[_0x47265c(0x5b6,0x67b,0x6a4,0x6a0)],'value':_0x40fd42[_0x47265c(0x6f1,0x5be,0x485,0x4d4)]})})})]});}function _0x47265c(_0x45685d,_0x3097c5,_0x3a8fe0,_0xb7e8de){return _0x479f18(_0x45685d-0x34,_0x3097c5-_0xd9298c._0x266624,_0x3097c5-0x5ee,_0xb7e8de);}return _0x57b01f[_0xe7228(0x565,_0x19b798._0x118100,_0x19b798._0x2b647c,0x5f4)]===_0x47265c(0x6f6,0x7a7,0x77f,_0x19b798._0x37a175)?_0x4b1fb1(_0xd2ac0a,{'visible':!0x0,'title':'Enter\x20Custom\x20Model\x20Name','titleColor':_0x1929b6['model'][_0xe7228(0x5ba,_0x19b798._0x4696a5,_0x19b798._0x26961c,_0x19b798._0x2cb121)],'type':'info','onClose':_0x3801b1,'closeOnEscape':!0x1,'closeOnEnter':!0x1,'children':[_0x4b1fb1(_0x43ddfd,{'color':_0x1929b6[_0xe7228(_0x19b798._0x34db32,0x5dc,_0x19b798._0x1482ee,0x686)]['subtitle'],'dimColor':!0x0,'children':[_0x47265c(0x855,_0x19b798._0x44ab0f,_0x19b798._0x2fea59,0x7a2),_0x57b01f['selectedProvider']]}),_0x4b1fb1(_0xf17b4a,{'marginTop':0x1,'children':[_0x4b8509(_0x43ddfd,{'color':_0x1929b6['model'][_0x47265c(_0x19b798._0x44cd62,0x67b,0x5ba,0x6de)],'children':_0x47265c(_0x19b798._0x2252c8,_0x19b798._0x3787f8,_0x19b798._0x44ace8,_0x19b798._0x1194e1)}),_0x4b8509(_0x28b262,{'value':_0x57b01f[_0xe7228(_0x19b798._0x16144c,_0x19b798._0x1a2412,0x57e,_0x19b798._0x1018ec)],'onChange':_0x25af5c,'onSubmit':_0x49dbfa,'placeholder':_0x47265c(0x5ff,_0x19b798._0x36bc6d,_0x19b798._0x5e17e0,_0x19b798._0x38884b)})]}),_0x4b8509(_0xf17b4a,{'marginTop':0x1,'children':_0x4b8509(_0x43ddfd,{'color':_0x1929b6[_0xe7228(_0x19b798._0x279065,_0x19b798._0x29c84c,0x6dc,_0x19b798._0x2dd477)][_0x47265c(_0x19b798._0x27705b,0x58f,0x669,0x665)],'dimColor':!0x0,'children':'Press\x20Enter\x20to\x20save,\x20Esc\x20to\x20cancel'})})]}):null;};function fr(_0xc00092){const _0x59ff99={_0x27ab61:0x2f1,_0x5ed4ae:0x2dc,_0x24166b:0x47a,_0x4935e0:0x4b2,_0x82cae4:0x34b,_0x1c73e2:0x287},_0x367ab3={_0x1c7daa:0x1bc,_0x19f51b:0x424},_0x467971={_0x2fc5f6:0x3be,_0x522a44:0xa5};function _0xe87fd1(_0x17db8d,_0x9896b1,_0x24862,_0x5dbdcc){return _0x36ee89(_0x24862,_0x9896b1-_0x467971._0x2fc5f6,_0x24862-_0x467971._0x522a44,_0x5dbdcc-0x5f);}function _0x1a7665(_0xdfbd41,_0x494862,_0x277244,_0x41f63e){return _0x479f18(_0xdfbd41-_0x367ab3._0x1c7daa,_0x494862-0x49,_0x41f63e-_0x367ab3._0x19f51b,_0x277244);}_0xc00092[_0xe87fd1(0x167,0x1e5,_0x59ff99._0x27ab61,0x132)]({'id':_0xe87fd1(0x428,0x387,_0x59ff99._0x5ed4ae,0x36d),'type':_0xe87fd1(_0x59ff99._0x24166b,0x430,_0x59ff99._0x4935e0,0x3ca),'description':'Select\x20AI\x20provider\x20and\x20model\x20configuration.','category':_0xe87fd1(_0x59ff99._0x82cae4,_0x59ff99._0x1c73e2,0x269,0x22e),'component':kn});}import*as _0x375fdf from'path';import*as _0x27dc5f from'crypto';import*as _0x252dc9 from'fs/promises';function vr(_0x3f8385){const _0x3ae2ee={_0x152ff9:0x11,_0x44180e:0x32,_0x16be21:0xf,_0x15f76d:0xf1,_0x3ee461:0x222,_0x1c9bee:0x309,_0x1c32de:0x42f},_0x3f50ea={_0x5e358a:0x29a,_0x28d86f:0x21d,_0xedc994:0x271,_0x3057a4:0x32b,_0x32763e:0x367,_0x4ad2db:0x2a8,_0x3948b7:0x1fc,_0x197177:0x195,_0x236147:0x280,_0x1cb91d:0x29b,_0x1d921d:0x10e,_0x8b5f79:0x1e8,_0x169919:0x141,_0x163207:0x1cb,_0x49eb52:0x14a,_0x4f51b0:0x3d9,_0x1de94d:0xbb,_0x312720:0x1d0,_0x8d484b:0x28f,_0x36b0de:0x372,_0x3b5750:0x2f3,_0x59172d:0x2f4,_0x324a06:0x43f,_0x486e3a:0x39b,_0x4f40d9:0xc3,_0x3e733b:0x220,_0xeb7603:0x188,_0x685037:0x240,_0x26f472:0x46e,_0xc8ee27:0x1cd,_0x19e378:0x1d0,_0x135284:0x171,_0x3cb44c:0x289,_0x426bf4:0x1fd,_0x41f5fd:0x3a4,_0x5899b8:0x2e6,_0x394af0:0x39b,_0x3b66c4:0x3b0,_0x55aa3f:0x1f0,_0x2eb061:0x357,_0x2eb98c:0x350,_0x20b633:0x2fc,_0x3a4f0f:0x1b1,_0x2e6893:0x39c,_0x3408ef:0x33,_0x481058:0x3e1,_0x53e309:0x2e3,_0x1f339e:0x447,_0x191617:0x25b,_0x240158:0x3ec,_0x3d7945:0x2f3,_0x5c1fcc:0x307,_0x1b0891:0x68,_0x346566:0x176,_0x4fae73:0x2fb,_0x4d75c2:0x200,_0x4c809f:0xff,_0x588502:0x1e9,_0x1b90a4:0x26c,_0x1c3cf4:0x146,_0x5f4147:0x10b,_0x49328c:0x167,_0x1bfeff:0x2fa,_0x3db741:0x240,_0x4f4205:0x361,_0x15df14:0x505,_0x1c1dcd:0x2f0,_0x5edfb0:0x35e,_0x5072d7:0x128,_0x416db4:0x260,_0x228279:0x284,_0x4d02ac:0x325,_0x31cd45:0x1e5,_0x320f31:0x3e9,_0x5ee886:0x367,_0x53313d:0x314,_0x10d2bb:0x29c,_0xdd99b2:0x2de,_0x11bcfc:0x6c,_0x88c1d2:0x463,_0x5c1506:0x1e1,_0x5129af:0x245,_0x3bc512:0x15a,_0x3184cb:0x1fd,_0x402787:0x2a5},_0x34290f={_0x5879c7:0x5,_0x2e26cb:0x18},_0x5fce61={_0x1a0661:0x21},_0x2c0fb6={_0x19c79f:0x2e7,_0xba6a6c:0x62};function _0x12b854(_0x2f8147,_0x351206,_0x1b5d40,_0x493059){return _0x36ee89(_0x493059,_0x2f8147-_0x2c0fb6._0x19c79f,_0x1b5d40-0x1ba,_0x493059-_0x2c0fb6._0xba6a6c);}function _0x481f3e(_0x462f20,_0x577241,_0x3921f2,_0x1a0b9e){return _0x479f18(_0x462f20-0x176,_0x577241-0xe,_0x577241-_0x5fce61._0x1a0661,_0x462f20);}_0x3f8385[_0x481f3e(_0x3ae2ee._0x152ff9,-0x22,-_0x3ae2ee._0x44180e,-0xc9)]({'id':_0x12b854(0x1ae,0x219,0x262,0x20b),'type':_0x481f3e(-_0x3ae2ee._0x16be21,-0x10,0xfc,_0x3ae2ee._0x15f76d),'description':_0x12b854(_0x3ae2ee._0x3ee461,0x193,0x302,0x2b8),'category':_0x12b854(_0x3ae2ee._0x1c9bee,0x24d,0x24f,_0x3ae2ee._0x1c32de),async 'handler'({rawInput:_0x52baa4,eventBus:_0x168b0f,memory:_0x3a14c7}){let _0x28ea36=_0x52baa4[_0x30dd08(0x310,0x3ce,_0x3f50ea._0x5e358a,0x376)]()[_0x5768ea(_0x3f50ea._0x28d86f,0x31d,0x16a,0x247)](/\s+/)[_0x5768ea(0x35c,_0x3f50ea._0xedc994,_0x3f50ea._0x3057a4,0x322)](0x1)[_0x5768ea(_0x3f50ea._0x32763e,0x336,0x352,_0x3f50ea._0x4ad2db)]('\x20')[_0x5768ea(0x2eb,_0x3f50ea._0x3948b7,_0x3f50ea._0x197177,_0x3f50ea._0x236147)]();if(!_0x28ea36){_0x168b0f[_0x5768ea(_0x3f50ea._0x1cb91d,0x158,_0x3f50ea._0x1d921d,_0x3f50ea._0x8b5f79)](_0x5768ea(_0x3f50ea._0x169919,_0x3f50ea._0x163207,0x104,_0x3f50ea._0x49eb52),{'id':_0x27dc5f[_0x30dd08(0x33f,0x39a,0x2c4,_0x3f50ea._0x4f51b0)](),'type':_0x5768ea(0x261,0x2bc,_0x3f50ea._0x1de94d,_0x3f50ea._0x312720),'content':'Usage:\x20/export\x20<filename>','metadata':{'timestamp':new Date()[_0x30dd08(0x284,_0x3f50ea._0x8d484b,_0x3f50ea._0x36b0de,_0x3f50ea._0x3b5750)]()},'color':_0x30dd08(0x3d9,_0x3f50ea._0x59172d,_0x3f50ea._0x324a06,_0x3f50ea._0x486e3a)});return;}function _0x5768ea(_0x4e0691,_0x4f5f7d,_0x282c5d,_0xe191fe){return _0x12b854(_0xe191fe-_0x34290f._0x5879c7,_0x4f5f7d-_0x34290f._0x2e26cb,_0x282c5d-0x119,_0x4e0691);}function _0x30dd08(_0x3ce054,_0x1fde3b,_0x12e360,_0x3ee6c2){return _0x481f3e(_0x12e360,_0x3ee6c2-0x22b,_0x12e360-0x105,_0x3ee6c2-0x135);}try{if(!_0x3a14c7){_0x168b0f[_0x5768ea(_0x3f50ea._0x4f40d9,0x140,0x1c9,0x1e8)](_0x30dd08(_0x3f50ea._0x3e733b,0x27f,_0x3f50ea._0xeb7603,_0x3f50ea._0x685037),{'id':_0x27dc5f[_0x30dd08(0x2e7,_0x3f50ea._0x26f472,0x3e3,0x3d9)](),'type':_0x5768ea(0x2bf,0x1ba,_0x3f50ea._0xc8ee27,_0x3f50ea._0x19e378),'content':_0x5768ea(0x3a3,0x298,_0x3f50ea._0x135284,_0x3f50ea._0x3cb44c),'metadata':{'timestamp':new Date()[_0x5768ea(0x267,0x259,0x19c,_0x3f50ea._0x426bf4)]()},'color':_0x30dd08(0x495,_0x3f50ea._0x41f5fd,_0x3f50ea._0x5899b8,_0x3f50ea._0x394af0)});return;}let _0x5bfc83=await _0x3a14c7[_0x5768ea(_0x3f50ea._0x3b66c4,_0x3f50ea._0x55aa3f,0x198,0x2c3)](_0x5768ea(_0x3f50ea._0x2eb061,0x362,_0x3f50ea._0x2eb98c,_0x3f50ea._0x20b633));if(!_0x5bfc83||_0x5bfc83[_0x5768ea(0x14c,0x279,0x25a,0x16a)]===0x0){_0x168b0f[_0x30dd08(_0x3f50ea._0x3a4f0f,0x224,_0x3f50ea._0x2e6893,0x2de)](_0x5768ea(0xe7,0x1b4,_0x3f50ea._0x3408ef,_0x3f50ea._0x49eb52),{'id':_0x27dc5f[_0x5768ea(0x23e,0x34b,_0x3f50ea._0x481058,_0x3f50ea._0x53e309)](),'type':_0x30dd08(0x218,_0x3f50ea._0x1f339e,_0x3f50ea._0x191617,0x34b),'content':_0x5768ea(0x2b7,0x345,0x35d,0x2d6),'metadata':{'timestamp':new Date()[_0x30dd08(_0x3f50ea._0x240158,0x422,0x3e6,_0x3f50ea._0x3d7945)]()},'color':_0x30dd08(0x2af,0x3f8,_0x3f50ea._0x5c1fcc,0x318)});return;}let _0x302e05=_0x375fdf[_0x5768ea(0x157,0x184,_0x3f50ea._0x1b0891,_0x3f50ea._0x346566)](process[_0x30dd08(0x267,0x1f1,0x2c5,0x227)](),_0x28ea36);await _0x252dc9[_0x5768ea(_0x3f50ea._0x4fae73,_0x3f50ea._0x4d75c2,_0x3f50ea._0x4c809f,0x1c9)](_0x302e05,JSON[_0x5768ea(-0x29,0x4,_0x3f50ea._0x588502,0x108)]({'cli':_0x5bfc83},null,0x2),_0x30dd08(_0x3f50ea._0x1b90a4,0x17d,_0x3f50ea._0x1c3cf4,0x242)),_0x168b0f[_0x5768ea(_0x3f50ea._0x5f4147,0xec,_0x3f50ea._0x49328c,0x1e8)](_0x30dd08(0x279,_0x3f50ea._0x1bfeff,0x248,_0x3f50ea._0x3db741),{'id':_0x27dc5f[_0x30dd08(0x32e,_0x3f50ea._0x4f4205,_0x3f50ea._0x15df14,0x3d9)](),'type':'info','content':_0x5768ea(_0x3f50ea._0x1c1dcd,0x187,0x246,0x1e2)+_0x5bfc83[_0x30dd08(_0x3f50ea._0x5edfb0,0x182,_0x3f50ea._0x5072d7,_0x3f50ea._0x416db4)]+_0x30dd08(0x209,_0x3f50ea._0x228279,0x2b7,_0x3f50ea._0x4d02ac)+_0x302e05,'metadata':{'timestamp':new Date()[_0x30dd08(0x3fc,0x3da,_0x3f50ea._0x31cd45,0x2f3)]()},'color':_0x30dd08(0x2ea,_0x3f50ea._0x5c1fcc,0x329,_0x3f50ea._0x320f31)});}catch(_0x42e042){let _0x1aead6=_0x42e042 instanceof Error?_0x42e042[_0x30dd08(_0x3f50ea._0x5ee886,0x433,0x305,0x310)]:String(_0x42e042);_0x168b0f[_0x30dd08(_0x3f50ea._0x3948b7,_0x3f50ea._0x53313d,_0x3f50ea._0x10d2bb,_0x3f50ea._0xdd99b2)](_0x5768ea(_0x3f50ea._0x11bcfc,0x11e,0x3a,0x14a),{'id':_0x27dc5f[_0x30dd08(0x49e,0x3ff,_0x3f50ea._0x88c1d2,_0x3f50ea._0x4f51b0)](),'type':_0x30dd08(0x308,_0x3f50ea._0x228279,0x24a,0x2c6),'content':_0x5768ea(_0x3f50ea._0x5c1506,0x1ca,_0x3f50ea._0x2eb98c,0x21c)+_0x1aead6,'metadata':{'timestamp':new Date()[_0x5768ea(_0x3f50ea._0x5129af,_0x3f50ea._0x3bc512,0x12c,_0x3f50ea._0x3184cb)]()},'color':_0x5768ea(0x33d,0x367,0x330,_0x3f50ea._0x402787)});}}});}import{useEffect as _0x1a7d5b,useState as _0x305e55}from'react';import{Text as _0x3338b3,useInput as _0x5871de}from'ink';import{homedir as _0x231b3b}from'os';import{join as _0x3bfcaf}from'path';import{readFileSync as _0x3ad8ed,existsSync as _0x3f2ae6}from'fs';import{useState as _0x249fdd,useEffect as _0x5ccee8,useRef as _0x5a0e6d}from'react';import{Box as _0x15ae01,Text as _0x54932b,useInput as _0x21ec3f}from'ink';import{Box as _0x3d338b,Text as _0x1bd936}from'ink';import{jsx as _0x229717,jsxs as _0x5023b4}from'react/jsx-runtime';var xr=({item:_0x34acd7,isSelected:_0x50523b,allowedCount:_0xd9c655,totalCount:_0x22c1fc})=>{const _0x32a185={_0x3b97d9:0x577,_0x507955:0x4dc,_0x1b315c:0x420,_0xc039e5:0x52e,_0x4e8230:0x30,_0x5d19b0:0x4,_0x5d642e:0x97,_0x38a684:0xd2,_0x18c864:0x48,_0x117497:0x27,_0x36de27:0xb8,_0x4d4f24:0xc3,_0x53f72c:0x98,_0x4d6ef2:0xc3,_0x336c2a:0x5b6,_0xbc8322:0x579,_0x5ef826:0x58e,_0x17d2b4:0x4e3,_0x365682:0x41f,_0x3cde75:0x5f6,_0x3d6d2c:0x54b,_0x151ed8:0x5ff,_0x40dbe4:0x4f4,_0x1e9bf6:0x592,_0x307bcd:0x59a,_0x1c3b5c:0x61e,_0x3aa318:0x6d4,_0x4ab26d:0x5ce,_0x473f8b:0x6d5,_0x378d62:0xd4},_0x3abebd={_0x39dfa8:0x8,_0x1adc30:0x1f3};let {theme:_0x55ddd0}=_0x3f5a8b(),_0xe319e2=_0x34acd7[_0x2373de(_0x32a185._0x3b97d9,_0x32a185._0x507955,_0x32a185._0x1b315c,_0x32a185._0xc039e5)]===_0x2dfb7b(_0x32a185._0x4e8230,_0x32a185._0x5d19b0,_0x32a185._0x5d642e,-_0x32a185._0x38a684),_0x456e4a=_0xe319e2?_0x2dfb7b(-_0x32a185._0x18c864,-_0x32a185._0x117497,0xf0,_0x32a185._0x36de27):_0x34acd7['status']===_0x2dfb7b(-_0x32a185._0x4d4f24,-0x7b,-_0x32a185._0x53f72c,-0xc5)?_0x2dfb7b(0x5b,0x27,-0x5c,-_0x32a185._0x4d6ef2):_0x2373de(_0x32a185._0x336c2a,_0x32a185._0xbc8322,_0x32a185._0x5ef826,0x58f),_0x2b42c5=_0xe319e2?'✗':_0x34acd7['status']===_0x2373de(0x65a,0x59b,_0x32a185._0x17d2b4,0x5be)?'●':'○';function _0x2dfb7b(_0x5ee2b7,_0x5d7237,_0x3d8e1b,_0x4d3c43){return _0x36ee89(_0x5ee2b7,_0x5d7237-0x20,_0x3d8e1b-0x1b4,_0x4d3c43-0xf9);}function _0x2373de(_0x2eed69,_0x26ead7,_0x655ac0,_0x313aca){return _0x479f18(_0x2eed69-_0x3abebd._0x39dfa8,_0x26ead7-_0x3abebd._0x1adc30,_0x313aca-0x4c3,_0x655ac0);}return _0x229717(_0x3d338b,{'flexDirection':_0x2373de(_0x32a185._0x365682,0x47d,_0x32a185._0x3cde75,0x50a),'children':_0x5023b4(_0x3d338b,{'children':[_0x229717(_0x1bd936,{'color':_0x456e4a,'bold':!0x0,'children':_0x2b42c5}),_0x229717(_0x1bd936,{'children':'\x20'}),_0x229717(_0x1bd936,{'color':_0x50523b?_0x55ddd0['tokens'][_0x2373de(_0x32a185._0x3d6d2c,_0x32a185._0x151ed8,0x401,_0x32a185._0x40dbe4)]:_0x55ddd0[_0x2373de(_0x32a185._0x1e9bf6,0x524,_0x32a185._0x307bcd,_0x32a185._0x1c3b5c)][_0x2373de(0x788,0x6d8,0x70d,0x69d)],'bold':_0x50523b,'dimColor':!_0x50523b,'children':_0x34acd7['id']}),_0x5023b4(_0x1bd936,{'color':_0x55ddd0[_0x2373de(_0x32a185._0x3aa318,_0x32a185._0x4ab26d,_0x32a185._0x473f8b,0x61e)][_0x2dfb7b(-0x11,0x85,-0x44,_0x32a185._0x378d62)],'dimColor':!_0x50523b,'children':['\x20','[',_0xd9c655,'/',_0x22c1fc,']']})]})});};import{Box as _0x556448,Text as _0x3c2552}from'ink';import{Fragment as _0x36ba42,jsx as _0x5c89fa,jsxs as _0x4f4c37}from'react/jsx-runtime';var Sr=({item:_0xab0c54,isSelected:_0x3feafd,allowed:_0x590c24,index:_0x519eef})=>{const _0x50dbe3={_0x42dc23:0x755,_0x5aa2b:0x6e0,_0x14c891:0x787,_0x24296e:0x89d,_0x535640:0x6ee,_0x3286e1:0x6fe,_0x323e02:0x819,_0x594cc2:0x745,_0x5afe3a:0x4ac,_0x5e078b:0x52d,_0x355686:0x541,_0x420a26:0x525,_0x3fed6c:0x7e4},_0x2341de={_0x4b2c32:0x129,_0x46fc0c:0x3d};function _0x43167b(_0x425a1a,_0x562689,_0x209f4a,_0x555e90){return _0x479f18(_0x425a1a-0x186,_0x562689-0xc5,_0x209f4a-0x5ea,_0x555e90);}function _0x236f49(_0x391f92,_0x411546,_0x5e84cf,_0x287844){return _0x479f18(_0x391f92-_0x2341de._0x4b2c32,_0x411546-_0x2341de._0x46fc0c,_0x411546-0x597,_0x391f92);}let {theme:_0x1aed9e}=_0x3f5a8b();return _0x4f4c37(_0x556448,{'children':[_0x5c89fa(_0x3c2552,{'color':_0x590c24?_0x43167b(_0x50dbe3._0x42dc23,_0x50dbe3._0x5aa2b,_0x50dbe3._0x14c891,_0x50dbe3._0x24296e):_0x236f49(0x5bd,0x6e6,_0x50dbe3._0x535640,_0x50dbe3._0x3286e1),'bold':!0x0,'children':_0x590c24?'✓':'✗'}),_0x5c89fa(_0x3c2552,{'children':'\x20'}),_0x519eef!==void 0x0&&_0x4f4c37(_0x36ba42,{'children':[_0x4f4c37(_0x3c2552,{'color':_0x1aed9e[_0x43167b(0x68d,_0x50dbe3._0x323e02,_0x50dbe3._0x594cc2,0x6d5)][_0x43167b(_0x50dbe3._0x5afe3a,0x57d,0x58b,_0x50dbe3._0x5e078b)],'dimColor':!0x0,'children':['[',_0x519eef,']']}),_0x5c89fa(_0x3c2552,{'children':'\x20'})]}),_0x5c89fa(_0x3c2552,{'color':_0x3feafd?_0x1aed9e[_0x43167b(_0x50dbe3._0x355686,_0x50dbe3._0x420a26,0x5cc,0x4dc)]['primary']:_0x1aed9e[_0x43167b(_0x50dbe3._0x3fed6c,0x696,0x745,0x6ee)]['unselected'],'bold':_0x3feafd,'dimColor':!_0x3feafd,'children':_0xab0c54})]});};import{Text as _0x1311ef}from'ink';import{Fragment as _0x372772,jsx as _0x12848b}from'react/jsx-runtime';var Bt=({segments:_0x395423})=>{const _0x1d775d={_0x377355:0x5ac};function _0x15c74e(_0x344768,_0x10fca9,_0x56bc9f,_0x2b92f2){return _0x36ee89(_0x56bc9f,_0x344768-_0x1d775d._0x377355,_0x56bc9f-0x72,_0x2b92f2-0x15f);}let {theme:_0x308cdc}=_0x3f5a8b();function _0x5bcb0a(_0x5a485f,_0x1c0e77,_0x2562ab,_0x280251){return _0x36ee89(_0x280251,_0x2562ab-0x756,_0x2562ab-0x52,_0x280251-0x54);}return _0x12848b(_0x372772,{'children':_0x395423['map'](_0x14d1c8=>_0x12848b(_0x1311ef,{'color':_0x14d1c8[_0x5bcb0a(0x712,0x5af,0x655,0x5f9)]?_0x5bcb0a(0x7f6,0x838,0x794,0x750):_0x308cdc[_0x15c74e(0x571,0x49e,0x4a8,0x5a6)][_0x15c74e(0x3b7,0x2c8,0x37c,0x3bb)],'dimColor':!_0x14d1c8[_0x15c74e(0x4ab,0x5b6,0x411,0x457)],'children':_0x14d1c8[_0x15c74e(0x536,0x5cb,0x567,0x5eb)]},_0x14d1c8[_0x5bcb0a(0x714,0x661,0x6e0,0x5e9)]))});};import{jsx as _0x475723,jsxs as _0x102e04}from'react/jsx-runtime';var Kn=({visible:_0x575b65,servers:_0x658a3a,allowedToolsConfig:_0x139fdf={},onClose:_0xd13b0d})=>{const _0x17f578={_0x1f22bc:0x5ca,_0x535c8d:0x5a3,_0x3fe501:0x3e7,_0x2ea3ea:0x5bd,_0x31f0d3:0x510,_0x489aa9:0x1a7,_0x33193c:0x3bf,_0x2bad06:0x3c8,_0x271a45:0x382,_0x2b1cd2:0x26f,_0x4372c2:0x337,_0x47864c:0x2b7,_0x44b86a:0x283,_0x537f7a:0x31d,_0x1d0342:0x3eb,_0x5ae228:0x32c,_0x2d7d14:0x342,_0x1a3516:0x38e,_0xefae74:0x5b1,_0x31365e:0x338,_0xbff15b:0x393,_0x106780:0x411,_0xbc595b:0x406,_0x37cbc8:0x22d,_0x4c460e:0x555,_0x3f75a3:0x277,_0x3be774:0x257,_0x5c4ac7:0x153,_0x51a7a6:0x517,_0x855398:0x683,_0xa79faf:0x388,_0x4cd972:0x44b,_0x303d4a:0x2c2,_0x4b992b:0x353,_0x2791a4:0x68e,_0x37750c:0x5fc,_0x4a75a6:0x4b0,_0x5053e7:0x34f,_0x53ec1a:0x29f,_0x5ddcce:0x46a,_0x25fc0d:0x3d5,_0xa3bdf:0x5be,_0x5dac60:0x62c,_0x403792:0x6f4,_0x2b68a1:0x61b,_0x4047aa:0x5a3,_0x58e626:0x31d,_0xc47ce1:0x1e8,_0x22d2f8:0x2ae,_0x2ecb32:0x3e7,_0x29f5a1:0x550,_0x311ab4:0x5fc,_0x419b51:0x76d,_0x41bb82:0x5f3,_0x425791:0x3d2,_0xa0c54c:0x38b,_0xc76733:0x328,_0x27f371:0x267,_0x214a94:0x426,_0x17d450:0x681,_0xfafd84:0x50f,_0x874449:0x66b,_0x19f7db:0x559,_0x523060:0x478,_0x4d9546:0x77e,_0x2061dc:0x6b4,_0xbd0d38:0x31d,_0x28cbb2:0x322,_0x33c8e1:0x53d,_0x1f877e:0x358,_0x16e9ab:0x2e6,_0x48d660:0x3c0,_0x5dbb31:0x2d7,_0x18b556:0x5bf,_0x4a6079:0x812,_0x2fb99d:0x6f7,_0x3a1987:0x4bd,_0x185abf:0x490,_0x434ba1:0x513,_0x50897a:0x4d4,_0x9e0306:0x58b,_0x4e839f:0x523,_0x5000be:0x505,_0x2cbb9e:0x431,_0xac9c54:0x4fb,_0x136aec:0x373,_0x241092:0x4d9,_0x60e2a4:0x5ea,_0x2bbc95:0x583,_0x5f19c6:0x300,_0x9bc4c6:0x36f,_0x2ee723:0x346,_0x791dad:0x682,_0x4fb3f9:0x389,_0x1cee06:0x4ad,_0x4fd9a3:0x2f6,_0x7acccd:0x57e,_0x3cc69d:0x569,_0x3edab1:0x4b7,_0x57243b:0x201,_0x57a979:0x1b2,_0x3e7fe2:0x4e9,_0x45a5f4:0x536,_0x3ddb5a:0x42c,_0x1ba9f5:0x4c7},_0x30d29a={_0x39702e:0x379,_0x5cd245:0x7c5,_0xbefdab:0x7b1,_0x1910b9:0x4c0},_0x35a240={_0xe633bc:0x2f9},_0x4fe6c9={_0x5f1efa:0xd3,_0x2a9149:0xeb},_0x32dd0c={_0x3f05d0:0x307,_0x6fd272:0x270},_0x38734f={_0x31663d:0xc7},_0x406e24={_0xeeb1d1:0x294,_0xb5c5fd:0x2bd,_0x4006dc:0x224,_0x315ad9:0x3aa},_0x7703f={_0x43f0a3:0x3db,_0x4da81:0x147},_0x5ce4fd={_0x5790e9:0xd1,_0x5bbf36:0x9e,_0x203ad7:0x5c,_0x15a43d:0x73,_0x45a584:0x15b},_0x3b257e={_0x409607:0x87},_0xb5b1e5={_0x208293:0x121,_0xc8351a:0x83},_0x508ab8={_0x2437f5:0x2b3,_0x3362d7:0x200,_0x32b8fe:0x349,_0x21c840:0x308,_0x40f2d9:0x332,_0x5289a7:0x414,_0x24b479:0x146,_0x259aa1:0x107},_0x5d7532={_0x1c39e6:0x1af,_0x4d04db:0x12b},_0x8ba298={_0x2eb7a7:0x3a0,_0x37010c:0x29a,_0x376a26:0xee,_0x3b2f9:0x218,_0x3ce5aa:0x29a,_0x1c7d0b:0x345,_0x461496:0x2ca,_0x2ab1ee:0x394,_0x1a64eb:0x25a,_0x8dce48:0x1b3,_0x39b373:0x311,_0x14342e:0x2ca,_0x475227:0x299,_0x5413ba:0x2e1,_0x4382fe:0x330,_0x880951:0x39e,_0x15ff8f:0x369,_0x51dde4:0x23b,_0x3a09a7:0x397,_0x41a0b5:0x416,_0x542772:0x368,_0xd87d2b:0x24c,_0x1bde5d:0x154,_0x1dd66d:0x229,_0x3f3f33:0x1a4,_0x5e3703:0x109,_0x488b56:0x114,_0x5b869a:0x1c7,_0x31045a:0x2d1,_0x517953:0x327,_0x1cbc48:0x209,_0x234264:0x21f,_0x379219:0x2a3,_0x394b82:0x184,_0xf8a04:0x127,_0x1eef3a:0xef,_0x184eda:0x23a,_0x155903:0x26f},_0xc335b2={_0x2ba4a0:0x10f,_0x42e29f:0x349},_0x5828e0={_0x1ac2d4:0x172,_0x38f1c7:0x136},_0x256905={_0xc50fd9:0x3af,_0x39aafa:0x51a,_0x37c014:0x5ee,_0x58aee1:0x4c9,_0x40f743:0x64d,_0xb22aee:0x612,_0x47b829:0x60e,_0x6de68e:0x567,_0x3c58a2:0x4aa,_0x2a1266:0x52f,_0x36c6ed:0x393},_0x587e8a={_0x21b5e9:0x1c6},_0x38a35b={_0x36eb1b:0xd6,_0x5c9120:0x3c};let {theme:_0xcd15c7}=_0x3f5a8b(),[_0x241ecf,_0x43d291]=_0x249fdd(null),[_0x41760b,_0x482727]=_0x249fdd(_0x3981c2(0x544,0x5f4,_0x17f578._0x1f22bc,_0x17f578._0x535c8d)),[_0x8c305c,_0x5f1b07]=_0x249fdd(_0x139fdf),_0x2cd0cf=_0x5a0e6d(!0x1);if(_0x5ccee8(()=>{_0x5f1b07(_0x139fdf);},[_0x139fdf]),_0x5ccee8(()=>{function _0x3c189f(_0x1d5f47,_0x3c8bc1,_0x55f39c,_0x2cba84){return _0x3981c2(_0x55f39c,_0x3c8bc1-0xe0,_0x55f39c-_0x38a35b._0x36eb1b,_0x2cba84- -_0x38a35b._0x5c9120);}function _0x4a64c6(_0x5573f3,_0x4cced9,_0x25254a,_0x17630b){return _0x3981c2(_0x25254a,_0x4cced9-0x12,_0x25254a-_0x587e8a._0x21b5e9,_0x5573f3- -0x110);}if(_0x658a3a[_0x3c189f(0x532,0x512,_0x256905._0xc50fd9,0x4c9)]>0x0&&!_0x241ecf){let _0x13b99a=_0x658a3a[0x0];_0x13b99a&&_0x43d291(_0x13b99a);}else{if(_0x658a3a[_0x3c189f(_0x256905._0x39aafa,_0x256905._0x37c014,0x535,_0x256905._0x58aee1)]===0x0)_0x43d291(null),_0x482727(_0x3c189f(_0x256905._0x40f743,_0x256905._0xb22aee,_0x256905._0x47b829,_0x256905._0x6de68e));else{if(_0x241ecf&&!_0x658a3a[_0x4a64c6(_0x256905._0x3c58a2,_0x256905._0x2a1266,_0x256905._0x36c6ed,0x4f8)](_0x487e8f=>_0x487e8f['id']===_0x241ecf['id'])){let _0x2c5c30=_0x658a3a[0x0];_0x2c5c30&&_0x43d291(_0x2c5c30);}}}},[_0x658a3a,_0x241ecf]),_0x5ccee8(()=>{const _0x76cd98={_0x158892:0x657},_0x19bd64={_0x393241:0x5};if(!_0x575b65)return;let _0x1dc158=_0x4d79ec=>{function _0x2d4336(_0xb5c6f2,_0x148e3c,_0x40b80d,_0x3070c7){return _0x2644(_0x40b80d- -_0x19bd64._0x393241,_0xb5c6f2);}function _0x5018d8(_0x119375,_0x2b4912,_0x436907,_0xbcb36f){return _0x2644(_0xbcb36f- -0x2d4,_0x436907);}_0x5f1b07(_0x32edad=>({..._0x32edad,[_0x4d79ec[_0x5018d8(0x5d,-0x6d,-0x1a5,-0xb0)]]:{..._0x32edad[_0x4d79ec[_0x5018d8(-0x70,-0xfc,-0x19b,-0xb0)]]||{},[_0x4d79ec[_0x2d4336(0x3a8,0x387,0x2a5,0x297)]]:_0x4d79ec[_0x2d4336(0x315,0x3df,0x3fa,0x4cb)]}}));};function _0x2853d0(_0x3421e0,_0x5de750,_0xc0783e,_0x9837a6){return _0x3981c2(_0x3421e0,_0x5de750-0xac,_0xc0783e-0xe0,_0x5de750- -_0x76cd98._0x158892);}return _0x447be4['on'](_0x2853d0(_0x5828e0._0x1ac2d4,0x64,_0x5828e0._0x38f1c7,-0x1f),_0x1dc158),()=>{_0x447be4['off']('ui:mcp:toolPermissionChanged',_0x1dc158);};},[_0x575b65]),_0x21ec3f((_0x319436,_0x22baf6)=>{const _0x4867f7={_0x45b9f0:0x23b};function _0x1a4c41(_0x4315e0,_0x4ae188,_0x1566a8,_0x306d25){return _0x3981c2(_0x4315e0,_0x4ae188-0x1ac,_0x1566a8-_0xc335b2._0x2ba4a0,_0x1566a8- -_0xc335b2._0x42e29f);}function _0x1bb18f(_0x24fa0f,_0x2b38ee,_0x470791,_0x1b1685){return _0x3981c2(_0x470791,_0x2b38ee-0x17b,_0x470791-0x9d,_0x24fa0f- -_0x4867f7._0x45b9f0);}if(_0x575b65){if(_0x2cd0cf[_0x1bb18f(0x326,_0x8ba298._0x2eb7a7,_0x8ba298._0x37010c,0x435)]){_0x2cd0cf[_0x1a4c41(0x1ea,_0x8ba298._0x376a26,_0x8ba298._0x3b2f9,0x2e2)]=!0x1;return;}if(_0x22baf6[_0x1bb18f(_0x8ba298._0x3ce5aa,_0x8ba298._0x1c7d0b,0x1b0,0x351)]){_0x41760b==='tools'&&_0x658a3a[_0x1bb18f(_0x8ba298._0x461496,0x195,0x2d5,0x21e)]>0x0?_0x482727(_0x1a4c41(0x37a,_0x8ba298._0x2ab1ee,_0x8ba298._0x1a64eb,_0x8ba298._0x8dce48)):_0xd13b0d();return;}if(_0x22baf6[_0x1bb18f(0x399,0x262,_0x8ba298._0x39b373,0x47d)]){_0x658a3a[_0x1bb18f(_0x8ba298._0x14342e,0x2e9,_0x8ba298._0x475227,_0x8ba298._0x5413ba)]>0x0&&!_0x241ecf?.[_0x1bb18f(_0x8ba298._0x4382fe,0x3ec,_0x8ba298._0x880951,0x2f7)]&&_0x482727(_0x29cb9f=>_0x29cb9f==='servers'?_0x1a4c41(0x118,0x185,0x1fa,0x314):_0x1bb18f(0x368,0x28c,0x478,0x3fb));return;}if(_0x22baf6[_0x1bb18f(0x2bb,0x230,_0x8ba298._0x15ff8f,0x367)]){_0x41760b===_0x1bb18f(0x308,0x3f6,_0x8ba298._0x51dde4,0x406)&&_0x658a3a[_0x1bb18f(_0x8ba298._0x14342e,0x273,_0x8ba298._0x3a09a7,0x251)]>0x0&&_0x482727('servers');return;}if(_0x22baf6[_0x1a4c41(0x28b,_0x8ba298._0x41a0b5,0x36d,0x427)]){_0x41760b===_0x1bb18f(_0x8ba298._0x542772,0x3c1,0x2ce,0x265)&&_0x658a3a[_0x1a4c41(_0x8ba298._0xd87d2b,_0x8ba298._0x1bde5d,0x1bc,_0x8ba298._0x1dd66d)]>0x0&&_0x241ecf&&_0x482727(_0x1a4c41(0x16c,0x14a,0x1fa,0x2a8));return;}if(_0x319436==='a'||_0x319436==='A'){if(_0x241ecf&&_0x241ecf[_0x1a4c41(_0x8ba298._0x3f3f33,_0x8ba298._0x5e3703,0x213,0x118)]===_0x1a4c41(0x29a,0x37a,0x2a3,0x2bb)){let _0x455004={..._0x8c305c};_0x455004[_0x241ecf['id']]||(_0x455004[_0x241ecf['id']]={}),_0x241ecf[_0x1a4c41(_0x8ba298._0x488b56,0x8e,_0x8ba298._0x5b869a,0x2a3)][_0x1a4c41(0x46d,_0x8ba298._0x31045a,0x3ac,_0x8ba298._0x517953)](_0x426156=>{_0x455004[_0x241ecf['id']][_0x426156]=!0x0;}),_0x5f1b07(_0x455004),_0x447be4['emit']('ui:mcp:batchToolPermissionChanged',{'serverId':_0x241ecf['id'],'config':_0x455004});}return;}if(_0x319436==='d'||_0x319436==='D'){if(_0x241ecf&&_0x241ecf['status']===_0x1a4c41(_0x8ba298._0x1cbc48,_0x8ba298._0x234264,_0x8ba298._0x379219,_0x8ba298._0x394b82)){let _0x325c27={..._0x8c305c};_0x325c27[_0x241ecf['id']]||(_0x325c27[_0x241ecf['id']]={}),_0x241ecf[_0x1a4c41(0xfe,_0x8ba298._0xf8a04,0x1c7,_0x8ba298._0x1eef3a)]['forEach'](_0x21bcc7=>{_0x325c27[_0x241ecf['id']][_0x21bcc7]=!0x1;}),_0x5f1b07(_0x325c27),_0x447be4[_0x1a4c41(0x253,0x359,_0x8ba298._0x184eda,0x1f1)](_0x1bb18f(_0x8ba298._0x155903,0x233,0x2d7,0x27b),{'serverId':_0x241ecf['id'],'config':_0x325c27});}return;}}},{'isActive':_0x575b65}),!_0x575b65)return null;function _0x3981c2(_0x42db89,_0x139e92,_0x503f01,_0x35f460){return _0x36ee89(_0x42db89,_0x35f460-0x687,_0x503f01-_0x5d7532._0x1c39e6,_0x35f460-_0x5d7532._0x4d04db);}let _0x4c3c77=_0x241ecf?.[_0x3981c2(0x513,_0x17f578._0x3fe501,_0x17f578._0x2ea3ea,_0x17f578._0x31f0d3)]||[],_0x14de7c=_0x5e593e=>{const _0x102bb9={_0x2f8760:0x85},_0x2a42b0={_0xa7d0f5:0x131,_0x21d85c:0x627};let _0x28be20=_0x8c305c[_0x5e593e['id']]||{};function _0x1b05ae(_0x447f25,_0x32de77,_0x1ce802,_0x12c8bd){return _0x3981c2(_0x447f25,_0x32de77-_0x2a42b0._0xa7d0f5,_0x1ce802-0x199,_0x32de77- -_0x2a42b0._0x21d85c);}function _0x15f724(_0x3a2d34,_0x266bd3,_0x4b411d,_0x44fbe8){return _0x3caf35(_0x4b411d- -0x46,_0x266bd3-0x1a3,_0x4b411d-_0x102bb9._0x2f8760,_0x44fbe8);}return _0x5e593e[_0x15f724(0x2a6,_0x508ab8._0x2437f5,0x2af,_0x508ab8._0x3362d7)][_0x15f724(_0x508ab8._0x32b8fe,_0x508ab8._0x21c840,_0x508ab8._0x40f2d9,_0x508ab8._0x5289a7)](_0x491915=>_0x28be20[_0x491915]!==!0x1)[_0x1b05ae(-_0x508ab8._0x24b479,-0x122,-0x7a,-_0x508ab8._0x259aa1)];},_0x43af9a=(_0x30ba18,_0xe9bb79)=>(_0x8c305c[_0x30ba18]||{})[_0xe9bb79]!==!0x1,_0x5ec0c2=_0x54cc60=>{const _0x41b97e={_0x595e53:0x30};function _0x44c384(_0x1055a5,_0xde0ec8,_0x3be27d,_0x39cdf9){return _0x3981c2(_0x1055a5,_0xde0ec8-_0x41b97e._0x595e53,_0x3be27d-0x71,_0x3be27d- -0x48e);}_0x43d291(_0x54cc60[_0x44c384(_0xb5b1e5._0x208293,-_0xb5b1e5._0xc8351a,0x33,0x12b)]);},_0x6a3465=_0xc3a393=>{const _0x2ec9a9={_0x9d924a:0xbd};function _0x2d073d(_0x374f7b,_0x39ed57,_0x26d41f,_0xbfba89){return _0x3caf35(_0x39ed57- -0x21b,_0x39ed57-_0x2ec9a9._0x9d924a,_0x26d41f-0x91,_0x26d41f);}function _0x323875(_0x51bea0,_0x3ae54c,_0x129c87,_0x11eb4e){return _0x3caf35(_0x11eb4e- -0x41b,_0x3ae54c-_0x3b257e._0x409607,_0x129c87-0x15f,_0x51bea0);}_0x2cd0cf[_0x2d073d(0x12f,0x12b,0x1c,0x1e3)]=!0x0,_0xc3a393['value']['status']===_0x323875(-_0x5ce4fd._0x5790e9,_0x5ce4fd._0x5bbf36,-_0x5ce4fd._0x203ad7,-0x4a)&&_0x482727(_0x323875(-_0x5ce4fd._0x15a43d,-_0x5ce4fd._0x45a584,-0x20d,-0xf3));},_0x4bcacb=_0x197da2=>{const _0x15051c={_0x5125f3:0x17};if(_0x2cd0cf['current']=!0x0,!_0x241ecf)return;function _0x55a726(_0x92a5fe,_0x765bf9,_0x3c92aa,_0x188108){return _0x3caf35(_0x3c92aa- -_0x7703f._0x43f0a3,_0x765bf9-0xa6,_0x3c92aa-_0x7703f._0x4da81,_0x765bf9);}let _0x49d293=_0x197da2[_0x30c68c(_0x406e24._0xeeb1d1,_0x406e24._0xb5c5fd,_0x406e24._0x4006dc,0x2d1)],_0x400c15={..._0x8c305c};function _0x30c68c(_0x4c2ecc,_0x2d99e5,_0x55a4f2,_0xeeadd4){return _0x3caf35(_0x2d99e5-_0x15051c._0x5125f3,_0x2d99e5-0x77,_0x55a4f2-0x1b7,_0x55a4f2);}_0x400c15[_0x241ecf['id']]||(_0x400c15[_0x241ecf['id']]={});let _0x348d10=_0x400c15[_0x241ecf['id']][_0x49d293];_0x400c15[_0x241ecf['id']][_0x49d293]=_0x348d10===!0x1,_0x5f1b07(_0x400c15),_0x447be4['emit'](_0x30c68c(0x5ac,0x4b7,0x400,_0x406e24._0x315ad9),{'serverId':_0x241ecf['id'],'toolName':_0x49d293,'allowed':_0x400c15[_0x241ecf['id']][_0x49d293]});};function _0x3caf35(_0x139a34,_0x17adf6,_0x5a375f,_0x3405e2){return _0x36ee89(_0x3405e2,_0x139a34-0x46c,_0x5a375f-0x1dc,_0x3405e2-_0x38734f._0x31663d);}return _0x102e04(_0xd2ac0a,{'visible':_0x575b65,'title':'MCP\x20Server\x20Configuration','titleColor':_0xcd15c7[_0x3caf35(0x2b8,_0x17f578._0x489aa9,_0x17f578._0x33193c,_0x17f578._0x2bad06)][_0x3caf35(_0x17f578._0x271a45,_0x17f578._0x2b1cd2,0x42f,_0x17f578._0x4372c2)],'type':_0x3caf35(_0x17f578._0x47864c,0x2a0,_0x17f578._0x44b86a,0x369),'onClose':void 0x0,'closeOnEscape':!0x1,'paddingX':0x2,'paddingY':0x1,'children':[_0x102e04(_0x15ae01,{'marginBottom':0x1,'flexDirection':_0x3caf35(_0x17f578._0x537f7a,0x26d,_0x17f578._0x1d0342,_0x17f578._0x5ae228),'children':[_0x102e04(_0x54932b,{'color':_0xcd15c7[_0x3caf35(0x431,0x569,_0x17f578._0x2d7d14,_0x17f578._0x1a3516)]['help'],'dimColor':!0x0,'children':['↑↓\x20navigate\x20•\x20←→/Tab\x20switch\x20panel\x20•\x20Space\x20toggle\x20•\x20Enter\x20select\x20•\x20ESC','\x20',_0x41760b===_0x3981c2(0x513,0x5a3,0x533,0x543)?_0x3981c2(0x534,_0x17f578._0xefae74,0x564,0x625):'exit']}),_0x475723(_0x15ae01,{'children':_0x475723(Bt,{'segments':[{'text':'A','highlight':!0x0},{'text':_0x3caf35(0x403,0x4ae,_0x17f578._0x31365e,_0x17f578._0xbff15b)},{'text':'D','highlight':!0x0},{'text':_0x3caf35(0x412,0x4a2,0x486,_0x17f578._0x106780)}]})})]}),_0x658a3a[_0x3caf35(0x2ea,_0x17f578._0xbc595b,0x2e4,_0x17f578._0x37cbc8)]===0x0?_0x475723(_0x15ae01,{'marginTop':0x1,'children':_0x475723(_0x54932b,{'color':_0xcd15c7[_0x3981c2(0x5ab,0x590,_0x17f578._0x4c460e,0x64c)][_0x3caf35(_0x17f578._0x3f75a3,_0x17f578._0x3be774,_0x17f578._0x5c4ac7,0x154)],'children':'No\x20MCP\x20servers\x20configured\x20or\x20connected'})}):_0x102e04(_0x15ae01,{'flexDirection':_0x3981c2(_0x17f578._0x51a7a6,_0x17f578._0x855398,0x52f,0x622),'marginTop':0x1,'children':[_0x102e04(_0x15ae01,{'flexDirection':'column','width':'40%','marginRight':0x2,'children':[_0x475723(_0x15ae01,{'marginBottom':0x1,'children':_0x102e04(_0x54932b,{'color':_0x41760b===_0x3caf35(_0x17f578._0xa79faf,_0x17f578._0x4cd972,_0x17f578._0x303d4a,_0x17f578._0x4b992b)?_0xcd15c7['colors'][_0x3981c2(0x717,0x71b,_0x17f578._0x2791a4,_0x17f578._0x37750c)]:_0xcd15c7['history'][_0x3caf35(_0x17f578._0x4a75a6,0x53f,0x567,0x4b0)],'bold':_0x41760b==='servers','children':[_0x3caf35(_0x17f578._0x5053e7,_0x17f578._0x53ec1a,0x3c1,0x342),_0x658a3a[_0x3981c2(_0x17f578._0x5ddcce,_0x17f578._0x25fc0d,0x47f,0x505)],')']})}),_0x475723(_0x5277fb,{'items':_0x658a3a[_0x3981c2(_0x17f578._0xa3bdf,_0x17f578._0x5dac60,0x664,_0x17f578._0x403792)](_0x267f48=>({'key':_0x267f48['id'],'label':_0x267f48['id'],'value':_0x267f48})),'itemComponent':_0x332f1c=>{const _0x3b889b={_0x1717b8:0x85,_0x34cb42:0x3f};function _0x51a6c1(_0x40e590,_0x4dc78e,_0x2e13d7,_0x2f87ab){return _0x3caf35(_0x2f87ab- -_0x3b889b._0x1717b8,_0x4dc78e-0x4d,_0x2e13d7-_0x3b889b._0x34cb42,_0x2e13d7);}let _0x374de1=_0x332f1c['value'];return _0x475723(xr,{'item':_0x374de1,'isSelected':_0x332f1c['isSelected'],'allowedCount':_0x14de7c(_0x374de1),'totalCount':_0x374de1[_0x51a6c1(0x22e,0x32b,_0x32dd0c._0x3f05d0,_0x32dd0c._0x6fd272)]['length']});},'onSelect':_0x6a3465,'onHighlight':_0x5ec0c2,'focus':_0x41760b===_0x3981c2(0x6d9,0x51c,_0x17f578._0x2b68a1,_0x17f578._0x4047aa)})]}),_0x102e04(_0x15ae01,{'flexDirection':_0x3caf35(_0x17f578._0x58e626,0x440,0x33b,_0x17f578._0xc47ce1),'flexGrow':0x1,'children':[_0x475723(_0x15ae01,{'marginBottom':0x1,'children':_0x102e04(_0x54932b,{'color':_0x41760b===_0x3caf35(0x328,0x2bb,0x2bc,_0x17f578._0x22d2f8)?_0xcd15c7[_0x3981c2(0x47c,0x463,_0x17f578._0x2ecb32,0x4d3)][_0x3981c2(0x61b,_0x17f578._0x29f5a1,0x6d3,_0x17f578._0x311ab4)]:_0xcd15c7[_0x3981c2(0x75c,_0x17f578._0x419b51,_0x17f578._0x41bb82,0x64c)][_0x3caf35(0x4b0,0x530,_0x17f578._0x425791,_0x17f578._0xa0c54c)],'bold':_0x41760b===_0x3caf35(_0x17f578._0xc76733,_0x17f578._0x27f371,_0x17f578._0x214a94,0x3b8),'children':[_0x3981c2(_0x17f578._0x17d450,_0x17f578._0xfafd84,_0x17f578._0x874449,0x648),'\x20',_0x241ecf?'('+_0x14de7c(_0x241ecf)+'/'+_0x241ecf[_0x3981c2(0x448,0x3ea,0x547,0x510)][_0x3981c2(0x5a8,_0x17f578._0x19f7db,_0x17f578._0x523060,0x505)]+')':'']})}),_0x241ecf?_0x241ecf['status']===_0x3981c2(0x5b4,_0x17f578._0x4d9546,_0x17f578._0x2061dc,0x66b)?_0x102e04(_0x15ae01,{'flexDirection':_0x3caf35(_0x17f578._0xbd0d38,0x347,0x432,_0x17f578._0x28cbb2),'children':[_0x475723(_0x54932b,{'color':_0x3caf35(0x425,0x4bc,_0x17f578._0x33c8e1,_0x17f578._0x1f877e),'children':_0x3caf35(_0x17f578._0x16e9ab,_0x17f578._0x48d660,_0x17f578._0x5dbb31,0x2cb)}),_0x102e04(_0x54932b,{'color':_0xcd15c7['history'][_0x3981c2(_0x17f578._0x19f7db,_0x17f578._0x18b556,0x527,0x492)],'dimColor':!0x0,'children':[_0x3981c2(0x60f,_0x17f578._0x4a6079,0x694,_0x17f578._0x2fb99d),_0x241ecf[_0x3981c2(_0x17f578._0x3a1987,0x56c,_0x17f578._0x185abf,0x56b)]||_0x3caf35(0x487,_0x17f578._0x434ba1,_0x17f578._0x50897a,_0x17f578._0x9e0306)]})]}):_0x4c3c77[_0x3981c2(0x4a5,0x59d,_0x17f578._0x4e839f,_0x17f578._0x5000be)]===0x0?_0x475723(_0x54932b,{'color':_0xcd15c7[_0x3caf35(_0x17f578._0x2cbb9e,0x3cd,_0x17f578._0xac9c54,_0x17f578._0x136aec)]['help'],'children':'No\x20tools\x20available\x20for\x20this\x20server'}):_0x475723(_0x5277fb,{'limit':0xa,'items':_0x4c3c77[_0x3caf35(_0x17f578._0x241092,0x5c9,0x3ee,_0x17f578._0x60e2a4)](_0x417676=>({'key':_0x417676,'label':_0x417676,'value':_0x417676})),'itemComponent':_0x1cf4cf=>{function _0x41a591(_0x1ec6b8,_0x21d4eb,_0x2c80b2,_0x247443){return _0x3caf35(_0x247443-_0x4fe6c9._0x5f1efa,_0x21d4eb-_0x4fe6c9._0x2a9149,_0x2c80b2-0x62,_0x21d4eb);}let _0x1ee100=_0x1cf4cf[_0x41a591(0x267,0x42a,0x412,_0x30d29a._0x39702e)],_0x26769f=_0x4c3c77[_0x2b0fd9(_0x30d29a._0x5cd245,0x8e1,_0x30d29a._0xbefdab,0x834)](_0x1ee100)+0x1;function _0x2b0fd9(_0x24e3b1,_0x41e4d5,_0x31501d,_0x142818){return _0x3caf35(_0x31501d-_0x35a240._0xe633bc,_0x41e4d5-0x5b,_0x31501d-0x1bd,_0x24e3b1);}return _0x475723(Sr,{'item':_0x1ee100,'isSelected':_0x1cf4cf[_0x41a591(0x53d,_0x30d29a._0x1910b9,0x45a,0x43c)],'allowed':_0x43af9a(_0x241ecf['id'],_0x1ee100),'index':_0x26769f});},'onSelect':_0x4bcacb,'focus':_0x41760b==='tools'}):_0x475723(_0x54932b,{'color':_0xcd15c7[_0x3981c2(0x629,_0x17f578._0x2bbc95,0x679,0x64c)][_0x3caf35(0x277,_0x17f578._0x5f19c6,_0x17f578._0x9bc4c6,_0x17f578._0x2ee723)],'children':_0x3981c2(0x640,0x7a7,_0x17f578._0x791dad,0x66e)})]})]}),_0x475723(_0x15ae01,{'marginTop':0x1,'children':_0x102e04(_0x54932b,{'color':_0xcd15c7[_0x3caf35(0x431,_0x17f578._0x4fb3f9,_0x17f578._0x1cee06,0x46b)]['help'],'dimColor':!0x0,'children':[_0x3caf35(0x326,0x311,0x277,_0x17f578._0x4fd9a3),_0x41760b===_0x3981c2(0x5d9,_0x17f578._0x7acccd,_0x17f578._0x3cc69d,_0x17f578._0x535c8d)?'Servers\x20panel':_0x3981c2(0x4d1,0x4a2,0x5ac,_0x17f578._0x3edab1),_0x241ecf&&_0x3caf35(0x298,_0x17f578._0x57243b,0x29a,_0x17f578._0x57a979)+_0x241ecf['id']+_0x3caf35(_0x17f578._0x3e7fe2,_0x17f578._0x45a5f4,_0x17f578._0x3ddb5a,_0x17f578._0x1ba9f5)+_0x241ecf['prefix']]})})]});},Pr=Kn;import{jsx as _0x4630eb}from'react/jsx-runtime';var qn=({context:_0x1968c2,deactivate:_0x2cb375})=>{const _0x4c4095={_0x21af32:0x446,_0x1b8e1b:0x503,_0x4c45aa:0x4a8,_0x1c4971:0x39f,_0x4fe7ec:0x276,_0x1ec300:0x328,_0x4265c6:0x33b,_0x4bd576:0x462,_0x3e577f:0x720,_0x19f881:0x6a2,_0x329df0:0x598,_0x8c4341:0x3e6,_0x5912a2:0x427,_0x1927f3:0x3b7,_0x327090:0x332,_0x3ff13d:0x55e,_0x1da03d:0x643,_0x2088bf:0x428,_0x1d49ca:0x36f,_0x70fc7d:0x31c,_0x3d4ce1:0x26d,_0x535f9f:0x58f,_0x52f2df:0x224,_0x218c5d:0x3b4,_0x3716f7:0x494,_0x203d3d:0x38e,_0x460856:0x6ff,_0x495af4:0x76e,_0x5893e2:0x795},_0x59b2ab={_0x48a4b7:0x442,_0x2bc54a:0x541,_0x47dfde:0x40a,_0x2754d2:0x194,_0x212fdd:0x2bc,_0x22dc44:0x2c2},_0x109ec1={_0x3a261d:0x1d1,_0x53b399:0x176,_0x23a4c7:0x1be,_0x19a938:0x268,_0x275d52:0x549,_0x32bbb8:0x4eb,_0x17af78:0x440,_0x13d1e9:0x36d},_0x3a3432={_0x13dc3e:0x13f,_0x34cd05:0x6fa,_0x568010:0x64a,_0x705336:0x724,_0x276dc6:0x24e,_0x15931f:0x1c7,_0x307446:0x2f1,_0x7a4f2c:0x5f5,_0x2faa68:0x5d4,_0x47553c:0x513,_0x44ac68:0x4d9,_0x3a45b8:0x5d3,_0x5a97ab:0x27e,_0x2ad736:0x245,_0x22320b:0x262,_0x231bff:0x827,_0x10537a:0x6c0,_0x3ff2f7:0x738,_0x474a44:0x66b,_0x45cd34:0x631,_0x1ea042:0x539,_0x23bb59:0x4d3,_0x6e0564:0x625},_0x3dc302={_0x2cbd8b:0x19b},_0x7475a9={_0x4656f1:0xbd},_0x8beea7={_0x2e46eb:0x6e},_0x29a859={_0x238eb8:0x12d};function _0x450d29(_0x5948d5,_0x413368,_0x3ffb0b,_0x47d982){return _0x479f18(_0x5948d5-_0x29a859._0x238eb8,_0x413368-0x1ac,_0x413368-0x592,_0x3ffb0b);}function _0x2df38b(_0x383632,_0x574522,_0x4b1e2f,_0x5ec7de){return _0x479f18(_0x383632-_0x8beea7._0x2e46eb,_0x574522-0x87,_0x383632-0x33a,_0x574522);}let {theme:_0x276452}=_0x3f5a8b(),[_0xb0150,_0x165660]=_0x305e55([]),[_0x4ca0f4,_0x23c6c5]=_0x305e55(!0x0),[_0x2db44f,_0x1ecd3d]=_0x305e55(null);return _0x5871de((_0x586c27,_0x5b3252)=>{function _0x3cc253(_0x320d40,_0x560397,_0xb1ddaa,_0xd63759){return _0x2644(_0xd63759- -0x1bd,_0xb1ddaa);}_0x5b3252[_0x3cc253(-_0x7475a9._0x4656f1,0x7c,-0x1f,0x59)]&&_0x2cb375();},{'isActive':!0x0}),_0x1a7d5b(()=>{const _0x57613e={_0x42f2bc:0x158,_0x2490dd:0x168},_0x28dfd4={_0x11a50b:0xac},_0x294db8={_0x5b2180:0x5d6,_0x1c6063:0x19,_0x5499ca:0x187,_0x220fe2:0xbf,_0x18f430:0x55d,_0x1f2cae:0x65d,_0x1a81ab:0x478,_0xfee13d:0x57c,_0x1ad185:0x61,_0x42a923:0x499,_0x5d92f5:0x8c,_0x1a6096:0xcd,_0x5bafb1:0x117,_0x2c7191:0x124,_0x56cd83:0x13e,_0x34c8b0:0xa8,_0x221eb8:0xc9,_0x52ddd5:0x129,_0x3ec709:0x218,_0x490a30:0xe2},_0x3e334b={_0x1a28e4:0x3a1,_0x2bc021:0x2a0,_0x4d2d59:0x279,_0x358be9:0x23b,_0x1f3c74:0x35e,_0x2bfc2e:0x2fe,_0x598af7:0x397,_0x5e6e31:0x60f,_0x45f8f2:0x3b1,_0x32f465:0x2b5,_0x4b206e:0x185,_0x2a4ab5:0x398,_0x37573a:0x333,_0x56782c:0x4ea,_0x469cbc:0x3df,_0x42274f:0x282,_0x50949b:0x365,_0x3c235e:0x5cd,_0xbbfa23:0x402,_0x2e5f58:0x4b1,_0x33fbf8:0x452,_0x56d4a8:0x447},_0xf95a9b={_0x1beefd:0x7c},_0x533cf9={_0x522a81:0x203};function _0x2c7882(_0x2fae70,_0x1d7837,_0x450da4,_0x14c699){return _0x2644(_0x1d7837-_0x533cf9._0x522a81,_0x450da4);}function _0x246a16(_0x569288,_0x4faad8,_0x1b1d73,_0x239fa9){return _0x2644(_0x4faad8- -_0x3dc302._0x2cbd8b,_0x569288);}let _0x419944=async _0x173867=>{const _0x2b89a2={_0x5979a9:0x146};function _0x51c0e4(_0x292fcb,_0x5bbfb3,_0x8bc0e,_0x288736){return _0x2644(_0x288736-_0x2b89a2._0x5979a9,_0x5bbfb3);}function _0x2ee739(_0x306ab3,_0x53448d,_0x5662f4,_0x556af1){return _0x2644(_0x53448d-_0xf95a9b._0x1beefd,_0x5662f4);}try{let _0x16c04f=_0x1968c2['config'][_0x2ee739(0x517,0x41b,0x542,0x3fd)](_0x2ee739(_0x3e334b._0x1a28e4,0x3f0,0x482,0x50d))||{},_0x3ff0b3=_0x173867[_0x2ee739(0x1ff,_0x3e334b._0x2bc021,_0x3e334b._0x4d2d59,_0x3e334b._0x358be9)];_0x16c04f[_0x3ff0b3]||(_0x16c04f[_0x3ff0b3]={}),_0x16c04f[_0x3ff0b3][_0x173867[_0x2ee739(_0x3e334b._0x1f3c74,0x326,_0x3e334b._0x2bfc2e,_0x3e334b._0x598af7)]]=_0x173867[_0x51c0e4(_0x3e334b._0x5e6e31,0x601,0x608,0x545)],_0x1968c2['config'][_0x2ee739(_0x3e334b._0x45f8f2,_0x3e334b._0x32f465,_0x3e334b._0x4b206e,_0x3e334b._0x2a4ab5)]('mcpAllowedTools',_0x16c04f,_0x51c0e4(0x4e7,_0x3e334b._0x37573a,_0x3e334b._0x56782c,_0x3e334b._0x469cbc)),await _0x1968c2[_0x51c0e4(_0x3e334b._0x42274f,_0x3e334b._0x50949b,0x25f,0x366)]?.[_0x51c0e4(_0x3e334b._0x3c235e,_0x3e334b._0xbbfa23,0x5bd,_0x3e334b._0x2e5f58)]?.(_0x16c04f);}catch(_0x212b4d){console[_0x2ee739(_0x3e334b._0x33fbf8,0x328,0x25f,_0x3e334b._0x56d4a8)]('Failed\x20to\x20save\x20MCP\x20tool\x20permission:',_0x212b4d);}},_0x533a85=async _0x2235be=>{const _0x390c97={_0x10103b:0x17a};function _0x2f8fe6(_0x10ee46,_0x178e83,_0x4b7963,_0x3a8d44){return _0x2644(_0x3a8d44- -_0x390c97._0x10103b,_0x4b7963);}function _0x2f0d76(_0x324ab9,_0x557a40,_0x26cf23,_0x46989e){return _0x2644(_0x26cf23-0x259,_0x324ab9);}try{_0x1968c2[_0x2f0d76(_0x294db8._0x5b2180,0x3e2,0x4ea,0x590)][_0x2f8fe6(_0x294db8._0x1c6063,0x116,_0x294db8._0x5499ca,_0x294db8._0x220fe2)](_0x2f0d76(_0x294db8._0x18f430,_0x294db8._0x1f2cae,0x5cd,0x4a1),_0x2235be[_0x2f0d76(0x4d9,_0x294db8._0x1a81ab,0x4ea,_0x294db8._0xfee13d)],_0x2f8fe6(0x4f,0x169,_0x294db8._0x1ad185,0x11f)),await _0x1968c2['orchestrator']?.[_0x2f0d76(_0x294db8._0x42a923,0x547,0x5c4,0x4d8)]?.(_0x2235be[_0x2f8fe6(_0x294db8._0x5d92f5,0x17f,_0x294db8._0x1a6096,_0x294db8._0x5bafb1)]);}catch(_0x3cd31f){console[_0x2f8fe6(_0x294db8._0x2c7191,_0x294db8._0x56cd83,_0x294db8._0x34c8b0,0x132)](_0x2f8fe6(_0x294db8._0x221eb8,_0x294db8._0x52ddd5,_0x294db8._0x3ec709,_0x294db8._0x490a30),_0x3cd31f);}};return _0x1968c2[_0x2c7882(_0x59b2ab._0x48a4b7,_0x59b2ab._0x2bc54a,_0x59b2ab._0x47dfde,0x585)]['on'](_0x246a16(_0x59b2ab._0x2754d2,0x261,_0x59b2ab._0x212fdd,_0x59b2ab._0x22dc44),_0x419944),_0x1968c2['eventBus']['on']('ui:mcp:batchToolPermissionChanged',_0x533a85),((async()=>{function _0x520ae3(_0x21fff6,_0x4cfb70,_0x546986,_0x3f3d04){return _0x246a16(_0x21fff6,_0x4cfb70-0x49e,_0x546986-_0x28dfd4._0x11a50b,_0x3f3d04-0x2b);}function _0x34bf0c(_0x1d1a5e,_0x4df350,_0x3274f3,_0x301374){return _0x246a16(_0x3274f3,_0x1d1a5e-_0x57613e._0x42f2bc,_0x3274f3-_0x57613e._0x2490dd,_0x301374-0x137);}try{_0x23c6c5(!0x0),_0x1ecd3d(null);let _0x3c6275=_0x1968c2[_0x34bf0c(0x1dd,_0x3a3432._0x13dc3e,0x15d,0x25b)]?.[_0x520ae3(_0x3a3432._0x34cd05,_0x3a3432._0x568010,_0x3a3432._0x705336,0x745)]?.()||[];if(_0x3c6275['length']===0x0){let _0x48efe4=_0x1968c2[_0x34bf0c(_0x3a3432._0x276dc6,0x2d9,_0x3a3432._0x15931f,_0x3a3432._0x307446)][_0x520ae3(0x5f4,0x6a2,0x7d7,0x7b0)](_0x520ae3(0x521,_0x3a3432._0x7a4f2c,_0x3a3432._0x2faa68,0x541))||_0x3bfcaf(_0x231b3b(),'.nuvin-cli','.nuvin_mcp.json');try{if(_0x3f2ae6(_0x48efe4)){let _0xe4e322=_0x3ad8ed(_0x48efe4,_0x520ae3(_0x3a3432._0x47553c,_0x3a3432._0x44ac68,0x444,_0x3a3432._0x3a45b8)),_0x37523c=JSON[_0x34bf0c(0x3bd,0x43b,0x351,0x3d4)](_0xe4e322);if(_0x37523c['mcpServers']){let _0x505d6b=Object[_0x34bf0c(_0x3a3432._0x5a97ab,0x37a,_0x3a3432._0x2ad736,_0x3a3432._0x22320b)](_0x37523c[_0x520ae3(_0x3a3432._0x231bff,0x727,0x7fd,0x748)])[_0x520ae3(_0x3a3432._0x10537a,_0x3a3432._0x3ff2f7,_0x3a3432._0x474a44,_0x3a3432._0x45cd34)](([_0x359440,_0x5a2010])=>({'id':_0x359440,'client':null,'port':null,'exposedTools':[],'allowedTools':[],'prefix':_0x5a2010[_0x34bf0c(0x24b,0x12f,0x245,0x167)]||_0x34bf0c(0x20a,0xd8,0xfe,0x26e)+_0x359440+'_','status':'pending'}));_0x165660(_0x505d6b);return;}}}catch{}}_0x165660(_0x3c6275);}catch(_0x259809){let _0x1b90c1=_0x259809 instanceof Error?_0x259809['message']:String(_0x259809);_0x1ecd3d(_0x520ae3(0x4fd,_0x3a3432._0x1ea042,_0x3a3432._0x23bb59,_0x3a3432._0x6e0564)+_0x1b90c1);}finally{_0x23c6c5(!0x1);}})()),()=>{const _0x163c0c={_0x3f7042:0xca,_0x1a0ef7:0x15f};function _0x3467cd(_0x457246,_0x482082,_0x4123c1,_0x32ce9b){return _0x246a16(_0x4123c1,_0x32ce9b-0xa2,_0x4123c1-0x78,_0x32ce9b-0x18a);}function _0x1a992e(_0x551d85,_0x4d2b26,_0x568578,_0x331d20){return _0x246a16(_0x568578,_0x551d85-0x42d,_0x568578-_0x163c0c._0x3f7042,_0x331d20-_0x163c0c._0x1a0ef7);}_0x1968c2[_0x3467cd(_0x109ec1._0x3a261d,0x15a,_0x109ec1._0x53b399,0x245)][_0x3467cd(0xdf,0x1df,0x1de,_0x109ec1._0x23a4c7)]('ui:mcp:toolPermissionChanged',_0x419944),_0x1968c2[_0x3467cd(0x26e,_0x109ec1._0x19a938,0x118,0x245)][_0x1a992e(_0x109ec1._0x275d52,0x54c,0x591,_0x109ec1._0x32bbb8)](_0x1a992e(0x47d,_0x109ec1._0x17af78,_0x109ec1._0x13d1e9,0x4a6),_0x533a85);};},[_0x1968c2[_0x2df38b(_0x4c4095._0x21af32,_0x4c4095._0x1b8e1b,_0x4c4095._0x4c45aa,0x4cb)],_0x1968c2[_0x2df38b(0x399,0x4c4,_0x4c4095._0x1c4971,_0x4c4095._0x4fe7ec)],_0x1968c2[_0x2df38b(_0x4c4095._0x1ec300,0x407,_0x4c4095._0x4265c6,_0x4c4095._0x4bd576)]]),_0x4ca0f4?_0x4630eb(_0xd2ac0a,{'visible':!0x0,'title':_0x450d29(_0x4c4095._0x3e577f,_0x4c4095._0x19f881,0x71e,0x7ca),'titleColor':_0x276452[_0x450d29(0x488,0x574,0x51b,_0x4c4095._0x329df0)][_0x2df38b(_0x4c4095._0x8c4341,_0x4c4095._0x5912a2,_0x4c4095._0x1927f3,_0x4c4095._0x327090)],'type':'default','onClose':_0x2cb375,'closeOnEscape':!0x0,'children':_0x4630eb(_0x3338b3,{'color':_0x276452['colors'][_0x450d29(0x632,_0x4c4095._0x3ff13d,_0x4c4095._0x1da03d,0x587)],'children':_0x2df38b(_0x4c4095._0x2088bf,_0x4c4095._0x1d49ca,0x4da,0x41a)})}):_0x2db44f?_0x4630eb(_0xd2ac0a,{'visible':!0x0,'title':'MCP\x20Server\x20Configuration','titleColor':_0x276452[_0x2df38b(_0x4c4095._0x70fc7d,0x34d,_0x4c4095._0x3d4ce1,0x2aa)][_0x2df38b(0x3b4,0x432,0x4a6,0x3b9)],'type':_0x450d29(0x677,0x60c,0x509,_0x4c4095._0x535f9f),'onClose':_0x2cb375,'closeOnEscape':!0x0,'children':_0x4630eb(_0x3338b3,{'color':_0x276452[_0x2df38b(0x31c,0x3f5,_0x4c4095._0x52f2df,0x1ec)][_0x2df38b(_0x4c4095._0x218c5d,_0x4c4095._0x3716f7,_0x4c4095._0x203d3d,0x32a)],'children':_0x2db44f})}):_0x4630eb(Pr,{'visible':!0x0,'servers':_0xb0150,'allowedToolsConfig':_0x1968c2['config'][_0x450d29(0x796,_0x4c4095._0x460856,_0x4c4095._0x495af4,0x6cf)](_0x450d29(_0x4c4095._0x5893e2,0x6d4,0x771,0x748))||{},'onClose':_0x2cb375});};function Mr(_0x4405ed){const _0xc9ec68={_0x38b482:0x480,_0x298d4c:0x5b2,_0x4594af:0x536,_0x5b36e5:0x5cb,_0x5a29e0:0x626,_0x32cfaa:0x715,_0x5a1b44:0x7b5},_0x44227d={_0x16cba2:0xfa,_0x5088cd:0xb2,_0x594431:0x4c3},_0x9ba7af={_0xe2c74d:0x1ed,_0x228f42:0x17c,_0x39ce08:0x36c};function _0x1ef1e6(_0x5e3d5e,_0x24f34d,_0x4b2237,_0x582328){return _0x479f18(_0x5e3d5e-_0x9ba7af._0xe2c74d,_0x24f34d-_0x9ba7af._0x228f42,_0x5e3d5e-_0x9ba7af._0x39ce08,_0x24f34d);}function _0x133920(_0x10d25f,_0xfb2634,_0x4a4570,_0x1b6f3e){return _0x479f18(_0x10d25f-_0x44227d._0x16cba2,_0xfb2634-_0x44227d._0x5088cd,_0x10d25f-_0x44227d._0x594431,_0xfb2634);}_0x4405ed[_0x133920(_0xc9ec68._0x38b482,0x38e,_0xc9ec68._0x298d4c,0x363)]({'id':_0x1ef1e6(0x506,_0xc9ec68._0x4594af,0x3e2,_0xc9ec68._0x5b36e5),'type':_0x133920(0x6cb,_0xc9ec68._0x5a29e0,_0xc9ec68._0x32cfaa,_0xc9ec68._0x5a1b44),'description':'Configure\x20MCP\x20server\x20tool\x20permissions.','category':'config','component':qn});}import{useCallback as _0x5f143d,useEffect as _0x189f3e,useState as _0x629707}from'react';import{Text as _0x5ca57b,useInput as _0x3e2590}from'ink';import{Box as _0x3db9c0,Text as _0x1571f3}from'ink';import{useState as _0x24c55f,useEffect as _0x5c97f4}from'react';var Er=(_0x5813d9,_0x3f9080={},_0x51c6a8)=>{const _0x431e0b={_0x450b11:0x160,_0x2a147d:0x27d,_0x281bf6:0x21d,_0x4696c5:0xe5,_0x638676:0x2fa},_0x469368={_0x25eaab:0x267},_0xafa2e1={_0x2960c0:0x3aa,_0x4014b3:0x4aa,_0x3a916b:0x35c},_0x44c241={_0x53b4b2:0x104,_0x1dc873:0x164},_0x2dc277={_0x25aa35:0x72,_0x4b7faf:0x1d1},_0x5cbb2a={_0x9ca3d8:0x2a0,_0x3dcd3d:0x1ef,_0x53f43b:0x489,_0x9f21f4:0x42f,_0x235855:0x20c,_0x58512a:0x36d},_0x8a714d={_0x1646bd:0x1ca},_0x33fce5={_0x5c91ff:0x9b};let [_0x57bdbb,_0x4d7214]=_0x24c55f(()=>_0x51c6a8!==void 0x0&&_0x51c6a8>=0x0&&_0x51c6a8<_0x5813d9['length']?_0x51c6a8:0x0),[_0xc93c87,_0x3f70d1]=_0x24c55f(_0x4516a2(_0x431e0b._0x450b11,0x2b8,0x187,_0x431e0b._0x2a147d)),[_0x4825a9,_0x24d3f5]=_0x24c55f(()=>({..._0x3f9080}));function _0x1de38e(_0x1149ad,_0x1baa8f,_0x1e45ca,_0x2cace9){return _0x479f18(_0x1149ad-_0x33fce5._0x5c91ff,_0x1baa8f-0xad,_0x2cace9-0x209,_0x1149ad);}_0x5c97f4(()=>{_0x24d3f5({..._0x3f9080});},[_0x3f9080]),_0x5c97f4(()=>{const _0x3b991f={_0x537f66:0x63};function _0x1daf06(_0x1a9a68,_0x432edb,_0x267868,_0x1ec666){return _0x4516a2(_0x1a9a68-0x1cd,_0x432edb-_0x3b991f._0x537f66,_0x267868,_0x1a9a68-0x342);}_0x51c6a8!==void 0x0&&_0x51c6a8>=0x0&&_0x51c6a8<_0x5813d9[_0x1daf06(0x427,0x316,0x4b9,0x33c)]&&_0x4d7214(_0x51c6a8);},[_0x51c6a8,_0x5813d9[_0x1de38e(0x177,0x199,0x2b0,_0x431e0b._0x281bf6)]]),_0x5c97f4(()=>{const _0x9bbecd={_0x529051:0x1db,_0x1be606:0xb4};function _0x162de0(_0x4a21a,_0x3477c8,_0x75459a,_0x2781e6){return _0x1de38e(_0x75459a,_0x3477c8-0xf9,_0x75459a-_0x9bbecd._0x529051,_0x4a21a-_0x9bbecd._0x1be606);}function _0x133e8a(_0x5746a9,_0x527f05,_0xa73fa5,_0x166b06){return _0x1de38e(_0x166b06,_0x527f05-0x42,_0xa73fa5-_0x8a714d._0x1646bd,_0x5746a9-0x1ff);}_0x5813d9[_0x162de0(0x2d1,_0x5cbb2a._0x9ca3d8,0x22c,_0x5cbb2a._0x3dcd3d)]===0x0?(_0x4d7214(0x0),_0x3f70d1(_0x162de0(0x469,_0x5cbb2a._0x53f43b,_0x5cbb2a._0x9f21f4,0x3ed))):_0x57bdbb>=_0x5813d9['length']&&_0x4d7214(Math[_0x133e8a(0x456,0x39c,0x405,0x4e1)](0x0,_0x5813d9[_0x162de0(0x2d1,_0x5cbb2a._0x235855,_0x5cbb2a._0x58512a,0x1a5)]-0x1));},[_0x5813d9[_0x1de38e(0x138,_0x431e0b._0x4696c5,_0x431e0b._0x638676,_0x431e0b._0x281bf6)],_0x57bdbb]);let _0x4eb1bd=_0x5e80bd=>{let _0x4914bb={..._0x4825a9},_0x2483dd=_0x4914bb[_0x5e80bd];_0x4914bb[_0x5e80bd]=_0x2483dd===!0x1,_0x24d3f5(_0x4914bb);},_0x2f0ccd=_0x28fb24=>{let _0x24cea8={..._0x4825a9};function _0x4973bd(_0x135223,_0x31e681,_0x1497fe,_0x1e4124){return _0x4516a2(_0x135223-_0x2dc277._0x25aa35,_0x31e681-0x17e,_0x135223,_0x31e681- -_0x2dc277._0x4b7faf);}return _0x28fb24[_0x4973bd(0x1be,_0x44c241._0x53b4b2,_0x44c241._0x1dc873,0x18)](_0x22bc87=>{_0x24cea8[_0x22bc87['id']]=!0x0;}),_0x24d3f5(_0x24cea8),_0x24cea8;},_0x1d85b6=_0x1c5711=>{const _0x194fc5={_0x2a2740:0x15f,_0x1570d6:0x63};let _0x536e7e={..._0x4825a9};function _0x12c2a5(_0x2398e7,_0xad1edd,_0x382f45,_0x3da2a6){return _0x1de38e(_0x382f45,_0xad1edd-0x1db,_0x382f45-_0x194fc5._0x2a2740,_0x2398e7- -_0x194fc5._0x1570d6);}return _0x1c5711[_0x12c2a5(_0xafa2e1._0x2960c0,0x2ba,_0xafa2e1._0x4014b3,_0xafa2e1._0x3a916b)](_0x3d38f7=>{_0x536e7e[_0x3d38f7['id']]=!0x1;}),_0x24d3f5(_0x536e7e),_0x536e7e;},_0x17023c=_0x69bcde=>{let _0x59dc03={..._0x4825a9};delete _0x59dc03[_0x69bcde],_0x24d3f5(_0x59dc03);},_0xa65c4b=_0x4abfaf=>_0x4825a9[_0x4abfaf]!==!0x1;function _0x4516a2(_0x4b8a98,_0xa23583,_0x1ece9d,_0x33159c){return _0x36ee89(_0x1ece9d,_0x33159c-_0x469368._0x25eaab,_0x1ece9d-0x131,_0x33159c-0x63);}return{'selectedAgentIndex':_0x57bdbb,'focusPanel':_0xc93c87,'localEnabledAgents':_0x4825a9,'setSelectedAgentIndex':_0x4d7214,'setFocusPanel':_0x3f70d1,'setLocalEnabledAgents':_0x24d3f5,'toggleAgent':_0x4eb1bd,'enableAllAgents':_0x2f0ccd,'disableAllAgents':_0x1d85b6,'removeAgent':_0x17023c,'isAgentEnabled':_0xa65c4b,'getEnabledCount':_0x55e4e3=>_0x55e4e3[_0x1de38e(0x25b,0x230,0x32f,0x2ab)](_0x234122=>_0xa65c4b(_0x234122['id']))['length']};};import{useInput as _0x49a994}from'ink';var wr=({visible:_0x39b3a5,agents:_0x26e31c,state:_0x306b35,actions:_0x400503,onClose:_0x229dad,onAgentStatusChange:_0x42f619,onAgentBatchStatusChange:_0x23d0fc,onAgentCreate:_0x5d6f0c,onAgentDelete:_0x8ccd8b,onAgentEdit:_0x337887})=>{const _0x27cb4f={_0x25b9da:0x6bc,_0x128b2c:0x694,_0x138f04:0x4b0,_0x3c9ffc:0x52c,_0x4f1eaa:0x658,_0x600b7d:0x509,_0x5a6c04:0x6ce,_0xf407a6:0x5cb,_0x4dab92:0x6a6,_0x3d1296:0x449,_0x469ae0:0x5bd,_0x344a4f:0x68b,_0x49b64d:0x63f,_0x57efd9:0x542,_0x1f3829:0x462,_0x42fe5a:0x543,_0x4dccb9:0x526,_0x52b423:0x528,_0x41df1f:0x683,_0x336b39:0x6c3,_0x4e6825:0x66a,_0x12bdba:0x5d7,_0x1b9ae9:0x6bc,_0x47668d:0x731,_0x2d2e58:0x7de,_0x22a709:0x7f4,_0x53a606:0x65a,_0xaff432:0x73c,_0x57796f:0x703,_0x5d3946:0x82b,_0x47a3f8:0x861,_0x12ddae:0x630,_0x455556:0x611,_0x50a55e:0x6ae,_0x96040f:0x793,_0x3b08f9:0x6da,_0x553c5d:0x7b3,_0x5e5654:0x8b3},_0x43e64d={_0x51e45a:0x384};_0x49a994((_0x25a491,_0x5c88ff)=>{const _0x5822c0={_0x17cccb:0x23b};function _0x5e6729(_0x2ceae5,_0x586b7c,_0x5788d9,_0x498138){return _0x2644(_0x5788d9-_0x43e64d._0x51e45a,_0x2ceae5);}function _0x3ace8d(_0x4a89aa,_0x5badb8,_0x5b12be,_0xbc62c8){return _0x2644(_0x5badb8-_0x5822c0._0x17cccb,_0xbc62c8);}if(_0x39b3a5){if(_0x5c88ff[_0x5e6729(_0x27cb4f._0x25b9da,_0x27cb4f._0x128b2c,0x59a,_0x27cb4f._0x138f04)]){_0x229dad();return;}if(_0x5c88ff['upArrow']){_0x400503['setSelectedAgentIndex'](Math[_0x5e6729(_0x27cb4f._0x3c9ffc,0x5a4,0x604,0x547)](0x0,_0x306b35[_0x3ace8d(0x739,_0x27cb4f._0x4f1eaa,0x71b,0x565)]-0x1));return;}if(_0x5c88ff[_0x3ace8d(0x588,_0x27cb4f._0x600b7d,0x430,0x44a)]){_0x400503[_0x3ace8d(_0x27cb4f._0x5a6c04,_0x27cb4f._0xf407a6,_0x27cb4f._0x4dab92,0x4af)](Math[_0x3ace8d(0x41c,0x48f,_0x27cb4f._0x3d1296,0x43e)](_0x26e31c[_0x5e6729(_0x27cb4f._0x469ae0,_0x27cb4f._0x344a4f,0x5ca,0x65d)]-0x1,_0x306b35['selectedAgentIndex']+0x1));return;}if(_0x25a491==='\x20'){if(_0x26e31c[_0x306b35['selectedAgentIndex']]){let _0x29f023=_0x26e31c[_0x306b35[_0x3ace8d(0x65f,0x658,_0x27cb4f._0x49b64d,0x737)]],_0xa4fa67=_0x306b35[_0x3ace8d(0x5ba,_0x27cb4f._0x57efd9,_0x27cb4f._0x1f3829,0x5fe)][_0x29f023['id']]===!0x1;_0x400503[_0x3ace8d(0x685,0x583,_0x27cb4f._0x42fe5a,0x4bf)](_0x29f023['id']),_0x42f619?.(_0x29f023['id'],_0xa4fa67);}return;}if(_0x5c88ff[_0x3ace8d(0x506,0x425,_0x27cb4f._0x4dccb9,_0x27cb4f._0x52b423)]){if(_0x26e31c[_0x306b35[_0x3ace8d(_0x27cb4f._0x41df1f,_0x27cb4f._0x4f1eaa,0x5d1,_0x27cb4f._0x336b39)]]){let _0x593a63=_0x26e31c[_0x306b35[_0x3ace8d(_0x27cb4f._0x4e6825,0x658,0x6f7,_0x27cb4f._0x12bdba)]],_0x3db5d8=_0x306b35[_0x5e6729(_0x27cb4f._0x1b9ae9,_0x27cb4f._0x47668d,_0x27cb4f._0x344a4f,0x705)][_0x593a63['id']]===!0x1;_0x400503[_0x5e6729(0x5ce,_0x27cb4f._0x2d2e58,0x6cc,_0x27cb4f._0x22a709)](_0x593a63['id']),_0x42f619?.(_0x593a63['id'],_0x3db5d8);}return;}if(_0x25a491==='a'||_0x25a491==='A'){let _0x327ffe=_0x400503[_0x5e6729(0x5be,0x744,_0x27cb4f._0x53a606,_0x27cb4f._0xaff432)](_0x26e31c);_0x23d0fc?.(_0x327ffe);return;}if(_0x25a491==='d'||_0x25a491==='D'){let _0x9a0a77=_0x400503['disableAllAgents'](_0x26e31c);_0x23d0fc?.(_0x9a0a77);return;}if(_0x25a491==='n'||_0x25a491==='N'){_0x5d6f0c?.();return;}if(_0x25a491==='e'||_0x25a491==='E'){if(_0x26e31c[_0x306b35['selectedAgentIndex']]){let _0x349fb5=_0x26e31c[_0x306b35[_0x5e6729(_0x27cb4f._0x57796f,_0x27cb4f._0x5d3946,0x7a1,_0x27cb4f._0x47a3f8)]];_0x349fb5[_0x3ace8d(_0x27cb4f._0x12ddae,_0x27cb4f._0x455556,_0x27cb4f._0x50a55e,0x65f)]||_0x337887?.(_0x349fb5['id']);}return;}if(_0x25a491==='x'||_0x25a491==='X'){if(_0x26e31c[_0x306b35['selectedAgentIndex']]){let _0xab694f=_0x26e31c[_0x306b35['selectedAgentIndex']];_0xab694f['isDefault']||(_0x400503[_0x5e6729(_0x27cb4f._0x96040f,_0x27cb4f._0x3b08f9,_0x27cb4f._0x553c5d,_0x27cb4f._0x5e5654)](_0xab694f['id']),_0x8ccd8b?.(_0xab694f['id']));}return;}}},{'isActive':_0x39b3a5});};import{Box as _0x2a3e22,Text as _0x2fef8e}from'ink';import{jsx as _0x30519f,jsxs as _0x221a47}from'react/jsx-runtime';var Ir=({agents:_0x1da0dc,selectedAgentIndex:_0x5965ec,isAgentEnabled:_0x41397e})=>{const _0x4f8983={_0x53c0fb:0xf2,_0x45670d:0x131,_0xc3e180:0x299,_0x6c5f77:0x252,_0x1ee422:0x3e,_0x3dc569:0x495,_0x18f442:0x592,_0x13cf62:0x569,_0x3bf47f:0x125,_0x19fd46:0x1b2},_0xf749a3={_0x45b024:0x171,_0x58fe1c:0x45,_0x434356:0x2c8,_0x4acefd:0x22b,_0x147699:0xf8,_0x314987:0x195,_0x2d55fc:0x15b,_0x3c1447:0x145,_0x64d388:0xfd,_0x34e752:0x1e6,_0x3eef77:0x2e,_0x30715d:0xe0,_0x3a29df:0x304,_0x1e452d:0x42d,_0x17266e:0x373},_0x411f28={_0x2cabd4:0x198,_0xf01772:0x1cf},_0xd89498={_0xa917ce:0xc1},_0x1396e3={_0x2a7554:0x80,_0x244ffc:0x111},_0x18a02e={_0x51a048:0x1b4};function _0x22b2ad(_0x501ffb,_0x158dd5,_0x54b8ba,_0x4634db){return _0x36ee89(_0x54b8ba,_0x501ffb-0x631,_0x54b8ba-_0x18a02e._0x51a048,_0x4634db-0x1ab);}function _0x1f1379(_0x3629f2,_0x1ce765,_0x2fb4c1,_0x4fe2e7){return _0x479f18(_0x3629f2-0x1a9,_0x1ce765-_0x1396e3._0x2a7554,_0x1ce765-_0x1396e3._0x244ffc,_0x3629f2);}let {theme:_0xe73d4e}=_0x3f5a8b(),_0x269383=()=>_0x1da0dc[_0x22b2ad(0x53d,0x479,0x49c,0x5d5)](_0x599964=>_0x41397e(_0x599964['id']))[_0x1f1379(0x174,0x125,0x18c,0x44)];return _0x221a47(_0x2a3e22,{'flexDirection':_0x1f1379(0x155,0x158,_0x4f8983._0x53c0fb,_0x4f8983._0x45670d),'width':'30','marginRight':0x2,'children':[_0x30519f(_0x2a3e22,{'marginBottom':0x1,'children':_0x221a47(_0x2fef8e,{'color':_0xe73d4e[_0x1f1379(_0x4f8983._0xc3e180,_0x4f8983._0x6c5f77,0x306,0x1ae)][_0x1f1379(0x19d,0x142,_0x4f8983._0x1ee422,0xf4)],'bold':!0x0,'children':[_0x22b2ad(_0x4f8983._0x3dc569,_0x4f8983._0x18f442,_0x4f8983._0x13cf62,0x502),_0x269383(),'/',_0x1da0dc[_0x1f1379(0x192,_0x4f8983._0x3bf47f,_0x4f8983._0x19fd46,0xc3)],')']})}),_0x1da0dc['map']((_0x29d2e1,_0x14cb9a)=>{function _0x7a207d(_0x1a040d,_0x3174f2,_0x2177ad,_0xd7d299){return _0x1f1379(_0x3174f2,_0x1a040d-0x19,_0x2177ad-_0xd89498._0xa917ce,_0xd7d299-0x193);}function _0xb2393f(_0x4cc541,_0x39db95,_0x2bdf2f,_0x12c442){return _0x1f1379(_0x4cc541,_0x12c442- -0x18c,_0x2bdf2f-_0x411f28._0x2cabd4,_0x12c442-_0x411f28._0xf01772);}let _0x5552a4=_0x14cb9a===_0x5965ec,_0x476ab8=_0x41397e(_0x29d2e1['id']);return _0x30519f(_0x2a3e22,{'marginBottom':0x0,'flexDirection':_0x7a207d(_0xf749a3._0x45b024,_0xf749a3._0x58fe1c,0x50,0x122),'children':_0x221a47(_0x2a3e22,{'children':[_0x30519f(_0x2fef8e,{'color':_0x476ab8?_0x7a207d(0x2c7,_0xf749a3._0x434356,_0xf749a3._0x4acefd,0x3f8):_0xb2393f(0x1d8,_0xf749a3._0x147699,-0x5f,0xd4),'bold':!0x0,'children':_0x476ab8?'✓':'✗'}),_0x30519f(_0x2fef8e,{'children':'\x20'}),_0x221a47(_0x2fef8e,{'color':_0x5552a4?_0xe73d4e[_0xb2393f(-0x5d,-0x14,_0xf749a3._0x314987,0xc6)][_0x7a207d(_0xf749a3._0x2d55fc,0x7c,_0xf749a3._0x3c1447,_0xf749a3._0x64d388)]:_0xe73d4e[_0xb2393f(_0xf749a3._0x34e752,0x1e3,-_0xf749a3._0x3eef77,_0xf749a3._0x30715d)][_0x7a207d(_0xf749a3._0x3a29df,0x2c4,_0xf749a3._0x1e452d,_0xf749a3._0x17266e)],'bold':_0x5552a4,'children':[_0x5552a4?'›\x20':'\x20\x20',_0x29d2e1['name']||_0x29d2e1['id']]})]})},_0x29d2e1['id']);})]});};import{Box as _0x8b751b,Text as _0x1e6d89}from'ink';import{jsx as _0xa35dfa,jsxs as _0x10b234}from'react/jsx-runtime';var Dr=({agent:_0x4c7b7d})=>{const _0x4a1869={_0x4c2c1d:0x40a,_0x3d772d:0x420,_0x3ee00b:0x2fe,_0xfeff1d:0x399,_0x341d2b:0x261,_0xa66edb:0x3f,_0x5b1d7d:0x20e,_0x2a9828:0x141,_0x10084c:0x217,_0x47bfc3:0x278,_0x5d805c:0x2f4,_0x525c12:0x9c,_0x612a1c:0x33,_0x5616b6:0xa5,_0x542d71:0x38a,_0x1d06ad:0x17e,_0x25b9d3:0x2a2,_0x32e16d:0x2d3,_0x5056ea:0x1f0,_0x22dfdc:0x21e,_0x4ab092:0x203,_0x1b24f6:0x1d4,_0x222c93:0x28c,_0x28ce31:0x149,_0x37ee6b:0x5,_0x428f35:0xe5,_0x48290f:0x549,_0x1bead9:0x3c2,_0x3806f6:0x258,_0x5e8b56:0x228,_0x32a04a:0x2d8,_0x4d614c:0x389,_0x570f5b:0x4f3,_0xc96266:0x444,_0x2323f1:0x225,_0x1d0ea8:0xe3,_0x2634a3:0x3bd,_0x221afa:0x1b4,_0x559cc1:0x412,_0x3f9229:0x3ad,_0x3a676e:0x333,_0x5cc2ef:0x245,_0x435a9d:0x166,_0x2cb761:0x113,_0x415672:0x21b,_0x559896:0x251,_0x4ede79:0x25f,_0x219566:0x161,_0x80c2b3:0x17e,_0x4f9285:0x2b6,_0x415747:0x75,_0x3fc5bc:0x3f,_0x5e00f4:0x2fa,_0xb5dd3c:0x323,_0x162acb:0x16a,_0xfc0223:0xbe,_0x232de2:0x1d8,_0x76a14f:0x214,_0x23e8d2:0xf0,_0x5cdce2:0x27a},_0x2dafe4={_0x13f897:0x1c7,_0x15c77c:0x9e},_0xc43b5b={_0x5ed310:0x44d};function _0x176e2a(_0x33d821,_0x5d866b,_0xfc9736,_0x2506dd){return _0x36ee89(_0xfc9736,_0x33d821-_0xc43b5b._0x5ed310,_0xfc9736-0x123,_0x2506dd-0xaf);}function _0xdb7236(_0x2254f8,_0x151255,_0x30ce61,_0x21bc3d){return _0x479f18(_0x2254f8-0x1e1,_0x151255-_0x2dafe4._0x13f897,_0x21bc3d-_0x2dafe4._0x15c77c,_0x30ce61);}let {theme:_0x2617a5}=_0x3f5a8b();return _0x10b234(_0x8b751b,{'flexDirection':'column','flexGrow':0x1,'children':[_0xa35dfa(_0x8b751b,{'marginBottom':0x1,'children':_0xa35dfa(_0x1e6d89,{'color':_0x2617a5['history']['unselected'],'children':_0x176e2a(_0x4a1869._0x4c2c1d,_0x4a1869._0x3d772d,0x45f,0x4a3)})}),_0x4c7b7d?_0x10b234(_0x8b751b,{'flexDirection':'column','children':[_0xa35dfa(_0x8b751b,{'marginBottom':0x1,'height':0x5,'children':_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d['description']})}),_0x10b234(_0x8b751b,{'flexDirection':_0x176e2a(_0x4a1869._0x3ee00b,_0x4a1869._0xfeff1d,0x3f6,_0x4a1869._0x341d2b),'children':[_0xa35dfa(_0x1e6d89,{'color':_0x2617a5['history'][_0xdb7236(0x13c,0x99,0x147,_0x4a1869._0xa66edb)],'dimColor':!0x0,'children':_0xdb7236(0x42,0x52,_0x4a1869._0x5b1d7d,_0x4a1869._0x2a9828)}),_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d['id']})]}),_0x10b234(_0x8b751b,{'flexDirection':_0x176e2a(0x2fe,0x22a,0x2bf,_0x4a1869._0x10084c),'children':[_0xa35dfa(_0x1e6d89,{'color':_0x2617a5[_0xdb7236(_0x4a1869._0x47bfc3,_0x4a1869._0x5d805c,0x1d5,0x1f9)][_0xdb7236(_0x4a1869._0x525c12,-_0x4a1869._0x612a1c,_0x4a1869._0x5616b6,0x3f)],'dimColor':!0x0,'children':_0x176e2a(0x384,0x452,0x37e,_0x4a1869._0x542d71)}),_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d[_0xdb7236(0x171,_0x4a1869._0x1d06ad,0x2c,0xf0)]?.[_0xdb7236(0x1ae,_0x4a1869._0x25b9d3,_0x4a1869._0x32e16d,_0x4a1869._0x5056ea)](',\x20')||_0xdb7236(0x2bf,_0x4a1869._0x22dfdc,0x196,_0x4a1869._0x4ab092)})]}),_0x4c7b7d[_0xdb7236(_0x4a1869._0x1b24f6,0x35f,0x36b,_0x4a1869._0x222c93)]!==void 0x0&&_0x10b234(_0x8b751b,{'flexDirection':_0xdb7236(_0x4a1869._0x28ce31,0x1a0,-_0x4a1869._0x37ee6b,_0x4a1869._0x428f35),'children':[_0xa35dfa(_0x1e6d89,{'color':_0x2617a5[_0x176e2a(0x412,0x3f1,_0x4a1869._0x48290f,_0x4a1869._0x1bead9)][_0x176e2a(_0x4a1869._0x3806f6,0x1f1,0x128,0x273)],'dimColor':!0x0,'children':_0xdb7236(_0x4a1869._0x5e8b56,0x1b3,_0x4a1869._0x32a04a,0x219)}),_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d[_0x176e2a(0x4a5,0x38c,0x4b0,_0x4a1869._0x4d614c)]})]}),_0x4c7b7d[_0x176e2a(0x428,_0x4a1869._0x570f5b,_0x4a1869._0xc96266,0x410)]!==void 0x0&&_0x10b234(_0x8b751b,{'flexDirection':_0x176e2a(0x2fe,0x370,_0x4a1869._0x2323f1,0x413),'children':[_0xa35dfa(_0x1e6d89,{'color':_0x2617a5['history'][_0xdb7236(0x1b,_0x4a1869._0x1d0ea8,-0x9b,0x3f)],'dimColor':!0x0,'children':_0x176e2a(0x2df,_0x4a1869._0x2634a3,_0x4a1869._0x221afa,0x403)}),_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d['maxTokens']})]}),_0x10b234(_0x8b751b,{'flexDirection':_0x176e2a(0x2fe,0x2da,0x378,0x289),'children':[_0xa35dfa(_0x1e6d89,{'color':_0x2617a5[_0x176e2a(_0x4a1869._0x559cc1,_0x4a1869._0x3f9229,0x371,_0x4a1869._0x3a676e)]['help'],'dimColor':!0x0,'children':_0xdb7236(_0x4a1869._0x5cc2ef,_0x4a1869._0x435a9d,_0x4a1869._0x2cb761,_0x4a1869._0x435a9d)}),_0xa35dfa(_0x1e6d89,{'children':_0x4c7b7d['model']??_0xdb7236(_0x4a1869._0x415672,_0x4a1869._0x559896,0x237,_0x4a1869._0x4ede79)})]}),_0x4c7b7d[_0xdb7236(_0x4a1869._0x219566,_0x4a1869._0x80c2b3,_0x4a1869._0x4f9285,0x242)]?_0xa35dfa(_0x8b751b,{'marginTop':0x1,'children':_0xa35dfa(_0x1e6d89,{'color':_0x2617a5['history'][_0xdb7236(_0x4a1869._0x415747,0xcd,0xa4,_0x4a1869._0x3fc5bc)],'dimColor':!0x0,'children':_0x176e2a(0x350,_0x4a1869._0x5e00f4,_0x4a1869._0xb5dd3c,0x25f)})}):_0xa35dfa(_0x8b751b,{'marginTop':0x1,'children':_0xa35dfa(_0x1e6d89,{'color':_0xdb7236(0x1f5,0x14a,0x7e,_0x4a1869._0x162acb),'dimColor':!0x0,'children':_0xdb7236(0x18d,0xc0,_0x4a1869._0xfc0223,_0x4a1869._0x232de2)})})]}):_0xa35dfa(_0x1e6d89,{'color':_0x2617a5[_0xdb7236(0x2e4,_0x4a1869._0x76a14f,_0x4a1869._0x23e8d2,0x1f9)][_0x176e2a(_0x4a1869._0x3806f6,_0x4a1869._0x5cdce2,0x175,0x1dd)],'children':'Select\x20an\x20agent\x20to\x20view\x20details'})]});};import{jsx as _0x45becd,jsxs as _0x27f8b9}from'react/jsx-runtime';var Jn=({visible:_0x34251e,agents:_0x4d274a,enabledAgents:_0x19f689={},initialSelectedIndex:_0x28b089,onClose:_0x185ec4,onAgentStatusChange:_0x36fe94,onAgentBatchStatusChange:_0x564dd8,onAgentCreate:_0x2f4e6b,onAgentDelete:_0x368605,onAgentEdit:_0xc18855})=>{const _0x14bf34={_0x214705:0x532,_0x380710:0x450,_0x1018dd:0x72,_0xb01a:0x71,_0x7be460:0x1fd,_0x5197df:0x311,_0x6035a6:0x1f7,_0x5a0609:0x4e,_0x4b2f3b:0x3b,_0x5eb191:0x2bc,_0x2097fc:0x193,_0x39b533:0x33a,_0x2a6600:0x26f,_0x366a61:0x3b5,_0x4d620f:0x74,_0x5785e2:0x18f,_0x574656:0x70,_0x121827:0x30e,_0x8d17ca:0x456,_0x2dce0c:0x34b,_0x3d31d5:0x2c8,_0xa43432:0x234,_0x5a3659:0x8c,_0x2fa269:0x73,_0x1a6bee:0xa2,_0x4db6de:0x54e,_0x4a0c21:0x547,_0x1ef2fe:0xc8,_0x3cc4c7:0xf6,_0x545989:0x301,_0x34833d:0x3cb,_0x55a8d4:0x4cc,_0x14d53e:0x2ca,_0x467972:0xa5,_0x38f69b:0x131,_0x4c70eb:0x1d3,_0x24c0c3:0x1b6,_0x2dd1ad:0xad,_0xe9b67c:0x120,_0x47a087:0x81,_0x3bd1d3:0x1e1},_0x3926b3={_0x1a69f6:0x175,_0x52e41f:0x143,_0x49c485:0x265},_0x2d4303={_0x48c42e:0xdd,_0x14e32d:0x9b};let {theme:_0x546259}=_0x3f5a8b(),_0x35ecaf=Er(_0x4d274a,_0x19f689,_0x28b089);if(wr({'visible':_0x34251e,'agents':_0x4d274a,'state':_0x35ecaf,'actions':_0x35ecaf,'onClose':_0x185ec4,'onAgentStatusChange':_0x36fe94,'onAgentBatchStatusChange':_0x564dd8,'onAgentCreate':_0x2f4e6b,'onAgentDelete':_0x368605,'onAgentEdit':_0xc18855}),!_0x34251e)return null;function _0xc0a2b(_0x48b98c,_0x43852c,_0x2e7cc9,_0xff3a2f){return _0x36ee89(_0x2e7cc9,_0x48b98c-_0x2d4303._0x48c42e,_0x2e7cc9-0x2f,_0xff3a2f-_0x2d4303._0x14e32d);}let _0x5d7a7d=_0x4d274a[_0x35ecaf[_0x5ab96e(_0x14bf34._0x214705,_0x14bf34._0x380710,0x36b,0x34c)]];function _0x5ab96e(_0x425400,_0x53f246,_0x17f3f4,_0x557689){return _0x479f18(_0x425400-_0x3926b3._0x1a69f6,_0x53f246-_0x3926b3._0x52e41f,_0x53f246-_0x3926b3._0x49c485,_0x425400);}return _0x27f8b9(_0xd2ac0a,{'visible':_0x34251e,'title':_0xc0a2b(_0x14bf34._0x1018dd,0xe1,-0x13,_0x14bf34._0xb01a),'titleColor':_0x546259[_0xc0a2b(-0xd7,-0x54,-0x14b,-0xf4)][_0x5ab96e(_0x14bf34._0x7be460,_0x14bf34._0x5197df,_0x14bf34._0x6035a6,0x2b5)],'type':_0xc0a2b(-0xd8,-0x128,_0x14bf34._0x5a0609,_0x14bf34._0x4b2f3b),'onClose':void 0x0,'closeOnEscape':!0x1,'paddingX':0x2,'paddingY':0x1,'children':[_0x27f8b9(_0x3db9c0,{'marginBottom':0x1,'flexDirection':'column','children':[_0x45becd(_0x1571f3,{'color':_0x546259['history'][_0x5ab96e(_0x14bf34._0x5eb191,0x206,_0x14bf34._0x2097fc,_0x14bf34._0x39b533)],'dimColor':!0x0,'children':_0x5ab96e(0x30a,0x362,_0x14bf34._0x2a6600,_0x14bf34._0x366a61)}),_0x45becd(_0x3db9c0,{'children':_0x45becd(Bt,{'segments':[{'text':'A','highlight':!0x0},{'text':_0xc0a2b(_0x14bf34._0x4d620f,-0xc2,_0x14bf34._0x5785e2,_0x14bf34._0x574656)},{'text':'D','highlight':!0x0},{'text':_0x5ab96e(_0x14bf34._0x121827,0x34c,_0x14bf34._0x8d17ca,0x455)},{'text':'N','highlight':!0x0},{'text':_0x5ab96e(_0x14bf34._0x2dce0c,0x250,_0x14bf34._0x3d31d5,_0x14bf34._0xa43432)},{'text':'E','highlight':!0x0},{'text':'\x20edit\x20(custom\x20only)\x20•\x20'},{'text':'X','highlight':!0x0},{'text':_0xc0a2b(-0x10,-0x5a,_0x14bf34._0x5a3659,-_0x14bf34._0x2fa269)}]})})]}),_0x4d274a['length']===0x0?_0x45becd(_0x3db9c0,{'marginTop':0x1,'children':_0x45becd(_0x1571f3,{'color':_0x546259[_0xc0a2b(_0x14bf34._0x1a6bee,0x1c7,0x49,0x16c)][_0xc0a2b(-0x118,-0x17,-0x215,-0x225)],'children':_0x5ab96e(_0x14bf34._0x4db6de,0x445,_0x14bf34._0x4a0c21,0x354)})}):_0x27f8b9(_0x3db9c0,{'flexDirection':_0xc0a2b(0x78,0x5,-0x7e,0x174),'children':[_0x45becd(Ir,{'agents':_0x4d274a,'selectedAgentIndex':_0x35ecaf[_0xc0a2b(0x132,0x7d,_0x14bf34._0x1ef2fe,_0x14bf34._0x3cc4c7)],'isAgentEnabled':_0x35ecaf[_0x5ab96e(_0x14bf34._0x545989,_0x14bf34._0x34833d,_0x14bf34._0x55a8d4,_0x14bf34._0x14d53e)],'onAgentSelect':_0x35ecaf[_0xc0a2b(_0x14bf34._0x467972,_0x14bf34._0x38f69b,_0x14bf34._0x4c70eb,_0x14bf34._0x24c0c3)]}),_0x45becd(Dr,{'agent':_0x5d7a7d,'isAgentEnabled':_0x35ecaf[_0xc0a2b(_0x14bf34._0x2dd1ad,_0x14bf34._0xe9b67c,_0x14bf34._0x47a087,_0x14bf34._0x3bd1d3)]})]})]});},Or=Jn;import{AGENT_CREATOR_SYSTEM_PROMPT as _0x32727d,buildAgentCreationPrompt as _0x274d9f}from'@nuvin/nuvin-core';var _t=class{constructor(_0x4f5cea){const _0x4d15d7={_0x37b5be:0x2e9},_0x526db9={_0x347517:0x4a5};function _0x5e6f6f(_0x2f8ed1,_0x5bc30f,_0x224136,_0x52d302){return _0x36ee89(_0x224136,_0x52d302-_0x526db9._0x347517,_0x224136-0x137,_0x52d302-0xc8);}this[_0x5e6f6f(0x333,0x31f,0x247,_0x4d15d7._0x37b5be)]=_0x4f5cea;}async[_0x36ee89(-0x9c,-0x73,0xa8,-0xc7)](_0x178f07,_0x34d7b4){const _0x5a2d4a={_0x2f0d83:0xe8,_0x560382:0xc,_0x2c7019:0x121,_0x55082c:0x3e,_0xa97683:0x127,_0x35bbe6:0xf,_0x5b90cf:0x1b,_0x1a0899:0x77,_0x200076:0x8f,_0x1c8462:0xfe,_0x29663b:0x9,_0x301bc0:0x5e,_0x4ad990:0xac,_0x1b449a:0x6b,_0x515910:0xf9,_0x50f815:0x12c,_0x211e0d:0x6a,_0x3ea09d:0x15c,_0x48c7d2:0x11,_0x19fb61:0x3e,_0x14849e:0xe1,_0x5b5d79:0xca,_0x45ebab:0x56,_0x55fa0a:0x144,_0x4f1479:0xad,_0x406ee7:0xc0,_0x246144:0xd},_0x32b078={_0x2a519f:0xb1,_0x30a1b8:0x8c,_0x4df990:0x114},_0x1deb7d={_0xb0139a:0xae};function _0x4328fc(_0x1e23a0,_0x5cb5cd,_0x38d0a9,_0x1a2e5a){return _0x36ee89(_0x1e23a0,_0x38d0a9-_0x1deb7d._0xb0139a,_0x38d0a9-0x37,_0x1a2e5a-0x35);}function _0x3362ef(_0x41bbc8,_0x4fb6ba,_0x4a0f82,_0x502826){return _0x479f18(_0x41bbc8-_0x32b078._0x2a519f,_0x4fb6ba-_0x32b078._0x30a1b8,_0x4fb6ba- -_0x32b078._0x4df990,_0x41bbc8);}try{let _0x50d6c8=[{'role':_0x4328fc(0x21d,0xaa,_0x5a2d4a._0x2f0d83,-_0x5a2d4a._0x560382),'content':_0x32727d},{'role':_0x4328fc(-0x61,-0x20a,-_0x5a2d4a._0x2c7019,-0x243),'content':_0x274d9f(_0x178f07)}],_0x32748e=(await this[_0x4328fc(-_0x5a2d4a._0x55082c,-_0x5a2d4a._0xa97683,-0x10e,_0x5a2d4a._0x35bbe6)][_0x4328fc(-0x3f,0x31,-0x68,-_0x5a2d4a._0x5b90cf)]({'model':_0x34d7b4,'messages':_0x50d6c8,'temperature':0.7,'maxTokens':0x7d0,'topP':0x1}))[_0x4328fc(-0xc,-_0x5a2d4a._0x1a0899,-0x10b,-_0x5a2d4a._0x200076)]?.['trim']();if(!_0x32748e)return{'success':!0x1,'error':_0x3362ef(-_0x5a2d4a._0x1c8462,0x13,-0x49,-0x80)};let _0x2262fb=_0x32748e['match'](/```json\s*([\s\S]*?)\s*```/)||_0x32748e[_0x4328fc(_0x5a2d4a._0x29663b,-_0x5a2d4a._0x301bc0,_0x5a2d4a._0x4ad990,-_0x5a2d4a._0x1b449a)](/({[\s\S]*})/),_0x50c8ee=_0x2262fb?_0x2262fb[0x1]:_0x32748e,_0xf8ebb8;try{_0xf8ebb8=JSON['parse'](_0x50c8ee);}catch(_0x31e978){return{'success':!0x1,'error':_0x3362ef(0x8c,0x56,_0x5a2d4a._0x515910,_0x5a2d4a._0x50f815)+(_0x31e978 instanceof Error?_0x31e978['message']:String(_0x31e978))};}return!_0xf8ebb8[_0x3362ef(-0x173,-_0x5a2d4a._0x211e0d,-_0x5a2d4a._0x3ea09d,-_0x5a2d4a._0x48c7d2)]||typeof _0xf8ebb8[_0x4328fc(-0xe4,0xc5,-_0x5a2d4a._0x19fb61,_0x5a2d4a._0x14849e)]!=_0x4328fc(0x199,0x25,_0x5a2d4a._0x5b5d79,_0x5a2d4a._0x45ebab)?{'success':!0x1,'error':_0x4328fc(_0x5a2d4a._0x55fa0a,0x1f0,0xde,_0x5a2d4a._0x4f1479)}:{'success':!0x0,'agent':_0xf8ebb8};}catch(_0xdc8920){return{'success':!0x1,'error':'Failed\x20to\x20create\x20agent:\x20'+(_0xdc8920 instanceof Error?_0xdc8920[_0x4328fc(_0x5a2d4a._0x406ee7,0xac,-0x24,_0x5a2d4a._0x246144)]:String(_0xdc8920))};}}};import{useState as _0x294b98,useCallback as _0x48faac,useEffect as _0x3543d7}from'react';var De=['name','id',_0x36ee89(-0xa7,-0x68,0xb1,0xbd),_0x36ee89(-0x56,0x58,0x16f,0x177),_0x36ee89(-0x266,-0x144,-0x1f8,-0x1c0),'description'],Br=(_0xee3d80,_0x1493e1,_0x385f2a,_0x30cc88)=>{const _0x5b100b={_0x5e1b53:0x300,_0x93ecbe:0x218,_0x22cc71:0x2f9},_0x339b6a={_0xca462d:0x738,_0x5444b4:0x731,_0x6fc530:0x70f,_0x551233:0x6e3},_0x2f3ba0={_0x112121:0x13,_0x51b73b:0x1df},_0x59740e={_0x46a533:0x53d,_0x5de9a5:0x445,_0x461d6a:0x4e5,_0x48fcee:0x52c,_0x5db169:0x53f,_0x4ee67c:0x4ae,_0x1e3f47:0x589,_0x537035:0x584,_0xc1fac2:0x53d,_0x3718cb:0x436,_0x483448:0x667,_0x5e0819:0x53d,_0x5375fb:0x65f,_0x125fe3:0x63c,_0x280da9:0x6c3,_0xa4a1ef:0x51b,_0x181ad9:0x339,_0xccd996:0x463,_0x136b93:0x5e6,_0x5aa168:0x6a6,_0x16cfc9:0x4d3,_0x29ae2d:0x429,_0x52f474:0x520,_0x4e3e1f:0x4e1,_0x19f4a7:0x4b8,_0x21f0ba:0x521,_0x96e596:0x54f,_0x25ad3f:0x489,_0x4ee785:0x4f1,_0x50992c:0x429},_0x5718fc={_0x30abbe:0x198},_0xad499b={_0x136626:0x77a,_0x50dfbd:0x626,_0x12b774:0x65e,_0x3a409c:0x57d,_0x4703ab:0x541,_0x1072ec:0x616,_0x546658:0x5f6,_0xd088a5:0x5a6,_0x3e3352:0x5d7,_0x586bd8:0x552,_0xc2f9a1:0x6ac,_0x49b449:0x688,_0x297f5f:0x5ea,_0x5b77fc:0x611,_0x4f8548:0x62f,_0x270bca:0x58c,_0x41b1d2:0x4ee,_0x33a02f:0x682,_0x5db452:0x552,_0x31db1c:0x5bb,_0x40db84:0x510,_0x2e8e0e:0x483,_0x5d2dcc:0x448,_0x10bf6c:0x5ff,_0x1195a5:0x41e,_0x5640d2:0x531,_0x2c2cfc:0x55c,_0xb0edc6:0x5e1,_0x4d73d6:0x552,_0x33b906:0x594,_0x36dba6:0x81e,_0x473136:0x6e8,_0x383115:0x81c},_0x3d00e4={_0x2438fc:0x463,_0x585aca:0x101,_0x8aa48b:0xea},_0x4faa11={_0x3c6dc5:0x421,_0x428105:0x28,_0x105779:0x17},_0x3b3ca={_0x32a80a:0x448,_0x5e0b76:0x558,_0x353d88:0x594,_0x4c8522:0x406},_0x51f3a6={_0x58fd42:0x7a,_0x228e85:0x13c,_0x48ff42:0x203},_0x115679={_0x599ba0:0xdb},_0xad0185={_0x158187:0x5c2,_0x58176c:0x5ec,_0x26d5f5:0x66c,_0x2b001a:0x5e8,_0x447528:0x41b,_0x8dd727:0x3a0},_0x5bad43={_0xc7c7b0:0x1b3},_0x5b0aa4={_0x47f95b:0x194},_0x20668e={_0x57021b:0x725,_0x34f406:0x3e0,_0x2b5b66:0x35e,_0x5c49be:0x651,_0x449cdf:0x686,_0x570441:0x6c0,_0x31bc64:0x51a,_0x23a992:0x556,_0x3e881a:0x5a2},_0x26719d={_0x92420e:0x4a0,_0x27cc1e:0x1a4},_0x446c38={_0xbd38e5:0x14c};let [_0x2eebd5,_0x2a594d]=_0x294b98(''),[_0x3de721,_0x2a0861]=_0x294b98(_0x573dab(_0x5b100b._0x5e1b53,_0x5b100b._0x93ecbe,_0x5b100b._0x22cc71,0x2af)),[_0x5d804a,_0x427cb8]=_0x294b98(!0x1),[_0x10d821,_0x9d95c]=_0x294b98(!0x1),[_0x5b2611,_0xd63a3]=_0x294b98('name'),[_0x76d3d,_0x27a7e8]=_0x294b98(''),[_0x806626,_0x3c9692]=_0x294b98(''),[_0x549d5d,_0x43dcc2]=_0x294b98(''),[_0x1754c8,_0x4b59b1]=_0x294b98([]),[_0x3b4840,_0x2e86bb]=_0x294b98(''),[_0x59b743,_0x580f95]=_0x294b98(''),[_0x481ae4,_0x41227a]=_0x294b98(''),_0x1b8ca3=_0x48faac(()=>{function _0x310c34(_0x32f35e,_0x30783e,_0x1fa46b,_0xe0efee){return _0x573dab(_0xe0efee,_0x32f35e-0x1e9,_0x1fa46b-_0x446c38._0xbd38e5,_0xe0efee-0x16d);}function _0x3071be(_0x35389f,_0x166bac,_0x35a6fa,_0x4ab9f3){return _0x573dab(_0x4ab9f3,_0x166bac-_0x26719d._0x92420e,_0x35a6fa-0x1e8,_0x4ab9f3-_0x26719d._0x27cc1e);}_0x1493e1&&(_0x27a7e8(_0x1493e1[_0x3071be(0x661,_0x20668e._0x57021b,0x847,0x76c)]??''),_0x3c9692(_0x1493e1['id']??''),_0x43dcc2(_0x1493e1[_0x310c34(0x32e,0x40d,_0x20668e._0x34f406,_0x20668e._0x2b5b66)]??''),_0x4b59b1(Array['isArray'](_0x1493e1['tools'])?[..._0x1493e1[_0x3071be(0x62e,0x5cd,0x63b,_0x20668e._0x5c49be)]]:[]),_0x2e86bb(_0x1493e1['temperature']!==void 0x0&&_0x1493e1['temperature']!==null?String(_0x1493e1[_0x3071be(_0x20668e._0x449cdf,0x769,0x88e,_0x20668e._0x570441)]):''),_0x580f95(_0x1493e1[_0x3071be(_0x20668e._0x31bc64,0x625,_0x20668e._0x23a992,0x57b)]??''),_0x41227a(_0x1493e1[_0x3071be(0x653,0x6a9,_0x20668e._0x3e881a,0x5b4)]??''));},[_0x1493e1]);_0x3543d7(()=>{function _0x51e387(_0x49ae9d,_0x210331,_0x523383,_0x210953){return _0x573dab(_0x210331,_0x523383- -_0x5b0aa4._0x47f95b,_0x523383-0xb7,_0x210953-0x1df);}if(!_0x1493e1){_0x427cb8(!0x1),_0xee3d80===_0x16dbd0(0x68e,_0xad0185._0x158187,_0xad0185._0x58176c,0x679)&&_0x9d95c(!0x1);return;}function _0x16dbd0(_0x4da7f6,_0x2732f0,_0x350222,_0x268f7c){return _0x573dab(_0x268f7c,_0x350222-0x33e,_0x350222-_0x5bad43._0xc7c7b0,_0x268f7c-0x55);}if(_0xee3d80===_0x16dbd0(0x702,0x6b5,_0xad0185._0x58176c,_0xad0185._0x26d5f5)){_0x1b8ca3(),_0x9d95c(!0x0),_0x427cb8(!0x1),_0xd63a3('name');return;}_0x580f95(_0x1493e1[_0x16dbd0(_0xad0185._0x2b001a,_0xad0185._0x447528,0x4c3,_0xad0185._0x8dd727)]??''),_0x10d821||_0x427cb8(!0x0);},[_0x1493e1,_0xee3d80,_0x1b8ca3,_0x10d821]);function _0x573dab(_0x4f1820,_0x46aa8f,_0x39f6bd,_0x13f6b6){return _0x479f18(_0x4f1820-0x2d,_0x46aa8f-0xb7,_0x46aa8f-_0x115679._0x599ba0,_0x4f1820);}let _0x5cae16=_0x48faac(()=>{const _0x3a32a9={_0x1ffe7e:0x10d};function _0x1e30fc(_0x558096,_0x4bf8c7,_0x4e6ac9,_0x120bbf){return _0x573dab(_0x120bbf,_0x558096- -0x15c,_0x4e6ac9-0x1e7,_0x120bbf-_0x3a32a9._0x1ffe7e);}_0x1493e1&&(_0x1b8ca3(),_0xd63a3(_0x1e30fc(0x129,_0x51f3a6._0x58fd42,_0x51f3a6._0x228e85,_0x51f3a6._0x48ff42)),_0x9d95c(!0x0),_0x427cb8(!0x1));},[_0x1b8ca3,_0x1493e1]),_0x16175d=_0x48faac(()=>{const _0x51b9cb={_0xa34c06:0x1ae},_0x3e9ffc={_0x542bc6:0x1a5};function _0x3e6ff0(_0xcedca1,_0x275244,_0x25582f,_0x2df185){return _0x573dab(_0xcedca1,_0x25582f- -0xb8,_0x25582f-_0x3e9ffc._0x542bc6,_0x2df185-0x9e);}function _0x3b77f1(_0x22df17,_0x4034eb,_0x17c343,_0x5ab528){return _0x573dab(_0x4034eb,_0x22df17-0x278,_0x17c343-_0x51b9cb._0xa34c06,_0x5ab528-0x22);}if(_0xee3d80!==_0x3b77f1(0x526,_0x3b3ca._0x32a80a,0x44a,_0x3b3ca._0x5e0b76)){if(!_0x1493e1){_0x9d95c(!0x1),_0x427cb8(!0x1);return;}_0x1b8ca3(),_0x9d95c(!0x1),_0x427cb8(!0x0),_0xd63a3(_0x3b77f1(0x4fd,0x5b0,_0x3b3ca._0x353d88,_0x3b3ca._0x4c8522));}},[_0x1b8ca3,_0xee3d80,_0x1493e1]),_0x177639=_0x48faac(_0x43df28=>{const _0x49eee0={_0x2ca2bc:0x33,_0x21556a:0x3c6,_0x8364bf:0x3db,_0x572074:0x1b4,_0x33af1f:0xb7,_0x37a58f:0x2a7,_0x2af1c5:0x321};_0xd63a3(_0x3f5802=>{const _0x2d0646={_0x4b4448:0xa1};function _0x406769(_0x4f3a8d,_0x44d887,_0x1830c9,_0x2f4117){return _0x2644(_0x44d887- -0x172,_0x2f4117);}function _0x3baf5d(_0x22e7e4,_0xe5be29,_0x120a0b,_0x5331fb){return _0x2644(_0xe5be29-_0x2d0646._0x4b4448,_0x120a0b);}let _0x56f9e6=De['indexOf'](_0x3f5802);return _0x56f9e6===-0x1?_0x43df28==='next'?De[0x0]:De[De[_0x406769(0x97,0xd4,_0x49eee0._0x2ca2bc,0x8f)]-0x1]:_0x43df28===_0x3baf5d(_0x49eee0._0x21556a,0x475,_0x49eee0._0x8364bf,0x4e3)?De[Math['min'](De[_0x406769(_0x49eee0._0x572074,0xd4,_0x49eee0._0x33af1f,0xca)]-0x1,_0x56f9e6+0x1)]:De[Math[_0x3baf5d(_0x49eee0._0x37a58f,_0x49eee0._0x2af1c5,0x2cd,0x3d1)](0x0,_0x56f9e6-0x1)];});},[]),_0x2ed057=_0x48faac(()=>{if(!_0x1493e1||!_0x385f2a)return;let _0x49eb6a=_0x76d3d[_0x4b1a08(0x65d,_0xad499b._0x136626,0x668,0x6a8)](),_0x5af34c=_0x806626[_0x5616f2(0x760,_0xad499b._0x50dfbd,_0xad499b._0x12b774,0x57c)](),_0x40e998=_0x549d5d['trim'](),_0x21d5aa=_0x3b4840[_0x4b1a08(_0xad499b._0x3a409c,_0xad499b._0x4703ab,0x668,0x644)](),_0x437434=_0x59b743['trim'](),_0x3e936e=_0x481ae4[_0x5616f2(_0xad499b._0x1072ec,_0xad499b._0x50dfbd,_0xad499b._0x546658,0x51b)](),_0x1aa3e4=Number(_0x21d5aa),_0x1fea56=_0x21d5aa[_0x4b1a08(_0xad499b._0xd088a5,_0xad499b._0x3e3352,_0xad499b._0x586bd8,0x439)]===0x0||Number[_0x5616f2(_0xad499b._0xc2f9a1,_0xad499b._0x49b449,0x6ce,_0xad499b._0x297f5f)](_0x1aa3e4)?void 0x0:Math['min'](0x2,Math[_0x4b1a08(_0xad499b._0x5b77fc,_0xad499b._0x4f8548,_0xad499b._0x270bca,0x52d)](0x0,_0x1aa3e4)),_0x1523fb=_0x5af34c[_0x4b1a08(_0xad499b._0x41b1d2,_0xad499b._0x33a02f,_0xad499b._0x5db452,0x51a)]>0x0?_0x5af34c:_0xee3d80===_0x5616f2(0x74e,0x6cf,0x6c8,0x764)?_0x1493e1['id']:void 0x0,_0x22f0ca=_0x437434[_0x5616f2(_0xad499b._0x31db1c,_0xad499b._0x40db84,_0xad499b._0x2e8e0e,_0xad499b._0x5d2dcc)]>0x0?_0x437434:_0x1493e1['systemPrompt']??'',_0x4035d3={..._0x1493e1,'name':_0x49eb6a['length']>0x0?_0x49eb6a:_0x1493e1[_0x5616f2(_0xad499b._0x10bf6c,0x6a6,0x665,0x776)],'id':_0x1523fb,'description':_0x40e998[_0x4b1a08(_0xad499b._0x1195a5,_0xad499b._0x5640d2,0x552,0x5a1)]>0x0?_0x40e998:void 0x0,'tools':[..._0x1754c8],'temperature':_0x1fea56,'systemPrompt':_0x22f0ca,'model':_0x3e936e[_0x4b1a08(_0xad499b._0x2c2cfc,_0xad499b._0xb0edc6,_0xad499b._0x4d73d6,_0xad499b._0x33b906)]>0x0?_0x3e936e:void 0x0};function _0x5616f2(_0x52abbb,_0x46d842,_0xbc2106,_0x54c3c9){return _0x573dab(_0x52abbb,_0x46d842-_0x4faa11._0x3c6dc5,_0xbc2106-_0x4faa11._0x428105,_0x54c3c9-_0x4faa11._0x105779);}function _0x4b1a08(_0xc92cc8,_0x1625d1,_0x302a9e,_0x3e23ed){return _0x573dab(_0x1625d1,_0x302a9e-_0x3d00e4._0x2438fc,_0x302a9e-_0x3d00e4._0x585aca,_0x3e23ed-_0x3d00e4._0x8aa48b);}_0x385f2a(_0x4035d3),_0xee3d80==='edit'?_0x30cc88?.(_0x4035d3):(_0x9d95c(!0x1),_0x427cb8(!0x0),_0xd63a3(_0x4b1a08(0x7f2,_0xad499b._0x36dba6,_0xad499b._0x473136,_0xad499b._0x383115)));},[_0x549d5d,_0x806626,_0x481ae4,_0x76d3d,_0x59b743,_0x3b4840,_0x1754c8,_0xee3d80,_0x30cc88,_0x385f2a,_0x1493e1]),_0x42afc6=_0x48faac(_0x9efc60=>{let _0x117bac=De['indexOf'](_0x9efc60);_0x117bac!==-0x1&&_0xd63a3(De[_0x117bac+0x1]);},[]),_0x2a2fef=_0x48faac(()=>{const _0x5b61b9={_0x191973:0x33a,_0x4f7bab:0x1b5};if(!_0x1493e1)return;function _0x3077e0(_0x4001b9,_0x4aca02,_0x4aa6f6,_0x2e8de7){return _0x573dab(_0x2e8de7,_0x4001b9-0x338,_0x4aa6f6-0x1aa,_0x2e8de7-_0x5718fc._0x30abbe);}function _0x164201(_0x6e5bbc,_0x39d013,_0x45b2f8,_0x509b9e){return _0x573dab(_0x45b2f8,_0x509b9e-_0x5b61b9._0x191973,_0x45b2f8-0x1db,_0x509b9e-_0x5b61b9._0x4f7bab);}let _0x22b5c7=_0x76d3d[_0x3077e0(_0x59740e._0x46a533,0x591,_0x59740e._0x5de9a5,0x454)](),_0x861bda=_0x806626[_0x164201(_0x59740e._0x461d6a,0x553,_0x59740e._0x48fcee,_0x59740e._0x5db169)](),_0x35523d=_0x549d5d[_0x164201(_0x59740e._0x4ee67c,_0x59740e._0x1e3f47,_0x59740e._0x537035,0x53f)](),_0x3b2d60=_0x3b4840[_0x3077e0(_0x59740e._0xc1fac2,_0x59740e._0x3718cb,0x4bd,_0x59740e._0x483448)](),_0x456c9f=_0x59b743[_0x3077e0(_0x59740e._0x5e0819,0x5b8,0x54b,0x560)](),_0x1d7389=_0x481ae4[_0x3077e0(0x53d,_0x59740e._0x5375fb,0x612,0x66e)](),_0x25b0d1=Number(_0x3b2d60),_0x919715=_0x3b2d60[_0x3077e0(0x427,0x3a0,0x30e,0x4d5)]===0x0||Number[_0x3077e0(0x59f,_0x59740e._0x125fe3,_0x59740e._0x280da9,0x5a1)](_0x25b0d1)?void 0x0:Math['min'](0x2,Math[_0x164201(_0x59740e._0xa4a1ef,_0x59740e._0x181ad9,0x4e7,_0x59740e._0xccd996)](0x0,_0x25b0d1)),_0x58cb2e=_0x861bda['length']>0x0?_0x861bda:_0xee3d80===_0x3077e0(_0x59740e._0x136b93,_0x59740e._0x5aa168,0x5f6,0x5cc)?_0x1493e1['id']:void 0x0,_0x28dad6=_0x456c9f[_0x164201(0x32a,_0x59740e._0x16cfc9,0x4a5,_0x59740e._0x29ae2d)]>0x0?_0x456c9f:_0x1493e1[_0x3077e0(0x4bd,_0x59740e._0x52f474,_0x59740e._0x4e3e1f,_0x59740e._0x19f4a7)]??'';return{..._0x1493e1,'name':_0x22b5c7['length']>0x0?_0x22b5c7:_0x1493e1[_0x3077e0(0x5bd,_0x59740e._0x21f0ba,0x4c0,0x5f4)],'id':_0x58cb2e,'description':_0x35523d[_0x3077e0(0x427,0x470,_0x59740e._0x96e596,_0x59740e._0x25ad3f)]>0x0?_0x35523d:void 0x0,'tools':[..._0x1754c8],'temperature':_0x919715,'systemPrompt':_0x28dad6,'model':_0x1d7389[_0x164201(0x440,_0x59740e._0x4ee785,0x41b,_0x59740e._0x50992c)]>0x0?_0x1d7389:void 0x0};},[_0x549d5d,_0x806626,_0x481ae4,_0x76d3d,_0x59b743,_0x3b4840,_0x1754c8,_0xee3d80,_0x1493e1]),_0x481708=_0x48faac(()=>{const _0x1ad65c={_0x14a843:0x48a,_0x41a594:0x147,_0x240b26:0xa2};function _0x1fcb20(_0x305c77,_0x416ab3,_0x40a7f4,_0x17aa89){return _0x573dab(_0x40a7f4,_0x305c77-_0x1ad65c._0x14a843,_0x40a7f4-_0x1ad65c._0x41a594,_0x17aa89-_0x1ad65c._0x240b26);}if(!_0x1493e1||!_0x385f2a)return;let _0x1e293c=_0x2a2fef();function _0x2157d9(_0x2eab58,_0x35fe7d,_0x5383e0,_0x83885a){return _0x573dab(_0x35fe7d,_0x5383e0- -_0x2f3ba0._0x112121,_0x5383e0-0xbb,_0x83885a-_0x2f3ba0._0x51b73b);}_0x1e293c&&(_0x385f2a(_0x1e293c),_0xee3d80===_0x1fcb20(_0x339b6a._0xca462d,0x7c5,0x83f,_0x339b6a._0x5444b4)?_0x30cc88?.(_0x1e293c):(_0x9d95c(!0x1),_0x427cb8(!0x0),_0xd63a3(_0x1fcb20(_0x339b6a._0x6fc530,_0x339b6a._0x551233,0x826,0x840))));},[_0x2a2fef,_0xee3d80,_0x30cc88,_0x385f2a,_0x1493e1]);return{'mode':_0xee3d80,'viewMode':_0x3de721,'description':_0x2eebd5,'showPreview':_0x5d804a,'isEditing':_0x10d821,'activeField':_0x5b2611,'editedName':_0x76d3d,'editedId':_0x806626,'editedDescription':_0x549d5d,'editedTools':_0x1754c8,'editedTemperature':_0x3b4840,'editedSystemPrompt':_0x59b743,'editedModel':_0x481ae4,'setDescription':_0x2a594d,'setShowPreview':_0x427cb8,'setIsEditing':_0x9d95c,'setActiveField':_0xd63a3,'setEditedName':_0x27a7e8,'setEditedId':_0x3c9692,'setEditedDescription':_0x43dcc2,'setEditedTools':_0x4b59b1,'setEditedTemperature':_0x2e86bb,'setEditedSystemPrompt':_0x580f95,'setEditedModel':_0x41227a,'setViewMode':_0x2a0861,'initializeEditingState':_0x1b8ca3,'handleStartEditing':_0x5cae16,'handleCancelEditing':_0x16175d,'moveFocus':_0x177639,'handleSaveEditedAgent':_0x2ed057,'handleFieldSubmit':_0x42afc6,'handleSaveEditing':_0x481708,'getUpdatedPreview':_0x2a2fef,'editingSequence':De};};import{useInput as _0x4b99ad}from'ink';var kr=({visible:_0x458a21,state:_0x542743,actions:_0x4f7d74,onCancel:_0x3565b2,onConfirm:_0x4a1dbb,loading:_0x4a6cad=!0x1})=>{const _0x21d816={_0x579ff1:0x11a,_0x69da58:0x11e,_0xcbe2bd:0x3e,_0x43f82e:0x137,_0xc42de0:0x267,_0x1ccd5f:0x1c2,_0x1539fa:0x287,_0x507c8f:0x1b3,_0x3af6bb:0x184,_0x36e654:0xfe,_0x3d6d09:0x7b,_0x3a1503:0x192,_0x4fc485:0x7f,_0x4c65f5:0x190,_0x39fd4f:0x88,_0x381f0d:0x1c0,_0x32463c:0x192,_0x6fbb6d:0x134,_0x3b13e7:0x56,_0x1b485c:0x20,_0x3507b2:0x161,_0x4a9671:0x1ff,_0x4f6ab3:0x3b,_0x48dae6:0xab,_0x476267:0xdf,_0x201c71:0x82,_0x5b8c1a:0xd9,_0x224e64:0xb0,_0x30d933:0xc1,_0x119b56:0x9,_0x2ed57d:0x274,_0x3864da:0xf5,_0x3d98ee:0x1a,_0xd03701:0x57,_0x17c357:0x12a,_0x592b8f:0xb9,_0x5ecdce:0xed,_0x3d2b17:0x1be,_0x15af44:0x10a,_0x2cc9d1:0x132,_0xc43777:0xc,_0x191b1b:0xf5,_0x3e5ebf:0x2d6,_0x2ffa14:0xcc,_0x7a3f09:0xd4,_0x408bb1:0x99,_0xcb4d0d:0x16e},_0x16387d={_0x4aee32:0x254};_0x4b99ad((_0x1b567e,_0x5b7b07)=>{function _0x32479c(_0x599d0b,_0x2740e3,_0x2b5812,_0x27e252){return _0x2644(_0x27e252- -_0x16387d._0x4aee32,_0x2740e3);}function _0x45af4b(_0x413136,_0x2b8e12,_0xed929f,_0x1a4f5c){return _0x2644(_0xed929f- -0x1f4,_0x2b8e12);}if(!(!_0x458a21||_0x4a6cad)){if(_0x5b7b07[_0x32479c(-0x95,-_0x21d816._0x579ff1,-_0x21d816._0x69da58,-_0x21d816._0xcbe2bd)]){if(_0x542743[_0x32479c(0x18b,0x115,0x1b8,_0x21d816._0x43f82e)]){if(_0x542743[_0x32479c(0x110,_0x21d816._0xc42de0,_0x21d816._0x1ccd5f,0x132)]===_0x32479c(_0x21d816._0x1539fa,0x156,_0x21d816._0x507c8f,0x1b1)){_0x3565b2();return;}_0x4f7d74[_0x32479c(-_0x21d816._0x3af6bb,0xba,-_0x21d816._0x36e654,-_0x21d816._0x3d6d09)]();return;}if(_0x542743[_0x45af4b(0x1e4,0x80,_0x21d816._0x3a1503,_0x21d816._0x4fc485)]===_0x32479c(_0x21d816._0x4c65f5,0x15e,-0x4,0xb1)&&_0x542743[_0x45af4b(0x17a,_0x21d816._0x39fd4f,_0x21d816._0x381f0d,_0x21d816._0x32463c)]){_0x4f7d74[_0x45af4b(0x22a,0x1ef,_0x21d816._0x6fbb6d,0x6d)](!0x1);return;}_0x3565b2(),_0x4f7d74[_0x32479c(_0x21d816._0x3b13e7,0x10a,0xe,_0x21d816._0x1b485c)](''),_0x4f7d74[_0x32479c(0x1fb,_0x21d816._0x3507b2,0x137,0xd4)](!0x1);return;}if(_0x542743[_0x32479c(0x234,0x216,_0x21d816._0x4a9671,0x137)]){if(_0x5b7b07[_0x32479c(0x18b,_0x21d816._0x4f6ab3,_0x21d816._0x48dae6,_0x21d816._0x476267)]&&_0x1b567e==='s'){_0x4f7d74['handleSaveEditing'](),_0x4a1dbb?.(_0x4f7d74[_0x32479c(-0x83,-_0x21d816._0x201c71,0xa2,0x9a)]());return;}if(_0x5b7b07[_0x32479c(_0x21d816._0x5b8c1a,0x1f9,_0x21d816._0x224e64,_0x21d816._0x30d933)]&&!_0x5b7b07['shift']){_0x4f7d74[_0x45af4b(-0x1f,0x4f,_0x21d816._0x119b56,-0x2)](_0x32479c(0x2a2,0x7d,_0x21d816._0x2ed57d,0x180));return;}if(_0x5b7b07['tab']&&_0x5b7b07[_0x32479c(-0x7d,0x54,_0x21d816._0x3864da,-_0x21d816._0x3d98ee)]){_0x4f7d74[_0x32479c(0x70,-0x5f,-0x122,-_0x21d816._0xd03701)](_0x45af4b(_0x21d816._0x17c357,-0x4e,0x65,-_0x21d816._0x592b8f));return;}return _0x542743['activeField']===_0x32479c(0x7e,-0x109,-_0x21d816._0x5ecdce,0x30)&&(_0x5b7b07['upArrow']||_0x5b7b07[_0x32479c(0x18c,0xe7,0x7b,0x7a)]),void 0x0;}_0x542743[_0x32479c(0xf,_0x21d816._0x3d2b17,_0x21d816._0x15af44,_0x21d816._0x2cc9d1)]===_0x32479c(0x1a7,-_0x21d816._0xc43777,0x142,0xb1)&&_0x542743[_0x45af4b(0xc2,_0x21d816._0x191b1b,0x1c0,_0x21d816._0x3e5ebf)]&&(_0x1b567e==='y'||_0x1b567e==='Y'?(_0x4a1dbb?.(),_0x4f7d74['setDescription'](''),_0x4f7d74[_0x32479c(0x29,0xd0,_0x21d816._0x2ffa14,_0x21d816._0x7a3f09)](!0x1)):(_0x1b567e==='n'||_0x1b567e==='N')&&_0x4f7d74[_0x45af4b(_0x21d816._0x408bb1,0x76,_0x21d816._0xcb4d0d,0x20a)]());}},{'isActive':_0x458a21});};import{Box as _0x12ab23,Text as _0xf0966c}from'ink';import{jsx as _0x3cf4a6,jsxs as _0x1b8192}from'react/jsx-runtime';var Ur=({description:_0x95589c,onChange:_0x484d4,onSubmit:_0x33908d})=>{const _0x29d3f3={_0x428582:0x12d,_0x135b33:0x1e3,_0x2ca73f:0x30,_0x32804a:0x31,_0x37ed8f:0x1ae,_0xee0a03:0x79,_0x4dd4a0:0x124,_0x28457a:0x5d,_0x243800:0x107,_0x29a8ac:0x1c4,_0x5795d4:0x257,_0x139c7d:0x284,_0x1779ce:0xeb,_0x5d0f7c:0x60,_0x5bee77:0x10d,_0x227a58:0x1ab,_0x3962f1:0x4b,_0x2e0808:0x1a9,_0x237a2c:0x111,_0x1a567a:0x1d5,_0x1a0f26:0x2c1,_0x24edcf:0x16b},_0x40eb00={_0xe3acd1:0x221,_0x2f8347:0x1df},_0x5b5a34={_0x425ef2:0x180},_0x155848={_0x328405:0x18f,_0x12fed5:0xdd};function _0x2005d3(_0x82f0eb,_0x35c5d5,_0x5093e6,_0x5f5a77){return _0x479f18(_0x82f0eb-_0x155848._0x328405,_0x35c5d5-0x1f0,_0x35c5d5-_0x155848._0x12fed5,_0x5f5a77);}let {theme:_0x12d6bb}=_0x3f5a8b();function _0x6afea(_0x1022f8,_0x267634,_0xcf7685,_0x2536c0){return _0x36ee89(_0x2536c0,_0x267634-0xba,_0xcf7685-_0x5b5a34._0x425ef2,_0x2536c0-0x2a);}return _0x3cf4a6(_0xd2ac0a,{'visible':!0x0,'title':_0x6afea(0x7,_0x29d3f3._0x428582,0x1e0,_0x29d3f3._0x135b33),'titleColor':_0x12d6bb['colors'][_0x6afea(-0x11f,-_0x29d3f3._0x2ca73f,-0x8d,_0x29d3f3._0x32804a)],'type':_0x2005d3(_0x29d3f3._0x37ed8f,0xbe,0x192,0x61),'children':_0x1b8192(_0x12ab23,{'flexDirection':_0x2005d3(_0x29d3f3._0xee0a03,_0x29d3f3._0x4dd4a0,0x206,_0x29d3f3._0x28457a),'marginTop':0x1,'children':[_0x3cf4a6(_0xf0966c,{'color':_0x12d6bb[_0x6afea(-0xdc,-_0x29d3f3._0x243800,-0x1b2,-_0x29d3f3._0x29a8ac)][_0x2005d3(0x5c,0x7e,0x1b4,-0x11)],'children':_0x2005d3(0x264,0x237,0x1b2,_0x29d3f3._0x5795d4)}),_0x1b8192(_0x12ab23,{'marginTop':0x1,'marginBottom':0x1,'children':[_0x3cf4a6(_0xf0966c,{'color':_0x12d6bb['colors'][_0x2005d3(0xec,0x189,_0x29d3f3._0x139c7d,_0x29d3f3._0x1779ce)],'children':_0x2005d3(0x173,0x138,0x127,_0x29d3f3._0x5d0f7c)}),_0x3cf4a6(_0x28b262,{'value':_0x95589c,'onChange':_0x484d4,'onSubmit':()=>{const _0x267a45={_0x36ad36:0x189,_0xe689b7:0xa8};function _0xb71823(_0x5918f0,_0x595072,_0x5a32da,_0x4ee58a){return _0x6afea(_0x5918f0-_0x267a45._0x36ad36,_0x4ee58a-0x191,_0x5a32da-_0x267a45._0xe689b7,_0x5a32da);}_0x95589c[_0xb71823(0x1d6,_0x40eb00._0xe3acd1,0x19f,_0x40eb00._0x2f8347)]()&&_0x33908d();}})]}),_0x3cf4a6(_0xf0966c,{'color':_0x12d6bb[_0x6afea(-0x198,-_0x29d3f3._0x243800,-_0x29d3f3._0x5bee77,-0x11c)]['help'],'dimColor':!0x0,'children':_0x6afea(-_0x29d3f3._0x227a58,-0xb7,-0xa7,-_0x29d3f3._0x3962f1)}),_0x3cf4a6(_0x12ab23,{'marginTop':0x1,'children':_0x3cf4a6(_0xf0966c,{'color':_0x2005d3(0x1ff,_0x29d3f3._0x2e0808,_0x29d3f3._0x237a2c,_0x29d3f3._0x1a567a),'dimColor':!0x0,'children':_0x2005d3(0xbf,0x1dd,_0x29d3f3._0x1a0f26,_0x29d3f3._0x24edcf)})})]})});};import{Box as _0x2f5270,Text as _0x28935b}from'ink';import{jsx as _0x5a8fb5,jsxs as _0x2c92dc}from'react/jsx-runtime';var Lr=({preview:_0x560fb8})=>{const _0x21c30f={_0x1c8794:0x8e,_0x4d0fd2:0xe7,_0x59cd2a:0x173,_0xa58868:0x143,_0x3ed6eb:0xe,_0x32925c:0x10e,_0x36cac7:0x531,_0x144cc0:0x43d,_0x50dfa7:0x6ec,_0x3c33d1:0x5fb,_0x1dcfec:0xb6,_0x450bfe:0x1b6,_0x1f6bb3:0x5fe,_0x5b3d81:0x626,_0x2d25cb:0x250,_0x207c84:0xe7,_0x387915:0x237,_0xf926a2:0x122,_0x3f999a:0x548,_0x4a0b52:0x5b9,_0xe2476:0x18d,_0x2fb785:0x76,_0x5dcd8e:0x572,_0x6cdda2:0x58a,_0x258504:0x74a,_0x289631:0x4d,_0x29be98:0x11,_0x4c9c18:0x54,_0x3bb33e:0x5b1,_0x4ce054:0x604,_0x491abc:0x6e,_0x3d2621:0xc1},_0x38a333={_0x37a3dc:0x41,_0x21fa91:0x1a1,_0x4c9804:0xb4},_0x3d594b={_0x4b20dd:0x18c,_0x18245d:0x54f};function _0x25c921(_0x424346,_0xda1f9a,_0x3db68a,_0x5dc74e){return _0x479f18(_0x424346-_0x3d594b._0x4b20dd,_0xda1f9a-0x1a9,_0xda1f9a-_0x3d594b._0x18245d,_0x424346);}function _0x416578(_0x2349f9,_0x3107fd,_0x712e2c,_0x2dd4fa){return _0x36ee89(_0x2349f9,_0x2dd4fa-_0x38a333._0x37a3dc,_0x712e2c-_0x38a333._0x21fa91,_0x2dd4fa-_0x38a333._0x4c9804);}let {theme:_0x1af797}=_0x3f5a8b();return _0x5a8fb5(_0xd2ac0a,{'visible':!0x0,'title':_0x416578(-0x19c,0x8d,-0x1a6,-_0x21c30f._0x1c8794),'titleColor':_0x1af797[_0x416578(-0x1ce,-0x11e,-_0x21c30f._0x4d0fd2,-_0x21c30f._0x59cd2a)][_0x416578(-0x53,0x1c,-0x104,-0xa9)],'type':'default','children':_0x2c92dc(_0x2f5270,{'flexDirection':_0x416578(-_0x21c30f._0xa58868,-0xc5,_0x21c30f._0x3ed6eb,-_0x21c30f._0x32925c),'marginTop':0x1,'children':[_0x5a8fb5(_0x2f5270,{'marginBottom':0x1,'children':_0x5a8fb5(_0x28935b,{'color':_0x1af797[_0x25c921(0x51c,_0x21c30f._0x36cac7,0x5df,_0x21c30f._0x144cc0)][_0x25c921(_0x21c30f._0x50dfa7,_0x21c30f._0x3c33d1,0x6fd,0x50e)],'bold':!0x0,'children':_0x560fb8[_0x416578(-_0x21c30f._0x1dcfec,-0x71,_0x21c30f._0x1c8794,0x55)]||'Custom\x20Agent'})}),_0x2c92dc(_0x2f5270,{'flexDirection':_0x416578(-0x1d9,-0x122,-_0x21c30f._0x450bfe,-0x10e),'marginBottom':0x1,'children':[_0x5a8fb5(_0x28935b,{'color':_0x1af797[_0x416578(-0x1d8,-0x119,-0x283,-0x180)]['help'],'dimColor':!0x0,'children':_0x25c921(_0x21c30f._0x1f6bb3,0x5f2,0x64f,_0x21c30f._0x5b3d81)}),_0x5a8fb5(_0x28935b,{'children':_0x560fb8['id']||_0x416578(-0xd5,-_0x21c30f._0x2d25cb,-_0x21c30f._0x207c84,-0x13b)})]}),_0x2c92dc(_0x2f5270,{'flexDirection':_0x416578(-_0x21c30f._0x387915,-0xee,-_0x21c30f._0xf926a2,-0x10e),'marginBottom':0x1,'children':[_0x5a8fb5(_0x28935b,{'color':_0x1af797['modal']['help'],'dimColor':!0x0,'children':'Description:'}),_0x5a8fb5(_0x28935b,{'children':_0x560fb8[_0x25c921(_0x21c30f._0x3f999a,_0x21c30f._0x4a0b52,0x4aa,0x599)]||'Custom\x20specialist\x20agent'})]}),_0x2c92dc(_0x2f5270,{'flexDirection':_0x416578(-_0x21c30f._0xe2476,-_0x21c30f._0x2fb785,-0x84,-_0x21c30f._0x32925c),'marginBottom':0x1,'children':[_0x5a8fb5(_0x28935b,{'color':_0x1af797[_0x25c921(0x54b,0x524,_0x21c30f._0x5dcd8e,_0x21c30f._0x6cdda2)]['help'],'dimColor':!0x0,'children':'Tools:'}),_0x5a8fb5(_0x28935b,{'children':_0x560fb8['tools']?.[_0x25c921(_0x21c30f._0x258504,0x6a1,0x71d,0x692)](',\x20')||_0x416578(0x3f,_0x21c30f._0x289631,-0xfa,-_0x21c30f._0x29be98)})]}),_0x2c92dc(_0x2f5270,{'flexDirection':_0x416578(-_0x21c30f._0x4c9c18,-0x1f2,-0x106,-_0x21c30f._0x32925c),'marginBottom':0x1,'children':[_0x5a8fb5(_0x28935b,{'color':_0x1af797[_0x25c921(0x5fb,0x524,_0x21c30f._0x3bb33e,_0x21c30f._0x4ce054)]['help'],'dimColor':!0x0,'children':'Temperature:'}),_0x5a8fb5(_0x28935b,{'children':_0x560fb8['temperature']??0.7})]}),_0x5a8fb5(_0x2f5270,{'marginTop':0x1,'children':_0x5a8fb5(_0x28935b,{'color':'green','children':_0x416578(-0xe6,-0x1a5,_0x21c30f._0x491abc,-_0x21c30f._0x3d2621)})})]})});};import{Box as _0x57cc7a,Text as _0x3ac523}from'ink';import{useCallback as _0x5ab885,useEffect as _0x5af942,useMemo as _0x19a7c5,useState as _0x54dd84}from'react';import{Box as _0x289fce,Text as _0x45439d,useInput as _0xbcb4cb}from'ink';import{jsx as _0x2706fa,jsxs as _0x3926b5}from'react/jsx-runtime';var $r=({focus:_0x500c36,availableTools:_0x25cba3,selectedTools:_0x3f8195,onChange:_0x1435c1,onSubmit:_0x51c1c9})=>{const _0x360b15={_0x3f0a3b:0xb7,_0x9ec930:0x1da,_0x46d5d9:0x206,_0x501547:0x290,_0x22aca6:0x187,_0x1cc955:0x1c8,_0x12b797:0x219,_0x17afe6:0x115,_0x9c794:0xeb,_0x51e65b:0xe1,_0x1cc517:0x15a,_0x298596:0x2bc,_0x464fea:0x1f4,_0x31cbc1:0x253,_0x4a3eec:0x299,_0x5d6b42:0x353},_0x39ab54={_0x43efe1:0xe0,_0x8a65a9:0xdd,_0x55ad46:0x88,_0xc97beb:0x21,_0x582ae4:0x78,_0x37bfa2:0x8a,_0x1e3fcb:0x30,_0x47d38a:0xe0,_0x5d9a89:0x1e8,_0x1eae3a:0x1fc,_0x1f453c:0x1d4},_0x41e953={_0x416612:0xfc,_0x4fb21b:0x113},_0x5e2a7f={_0x2e58de:0x37f,_0x12d8c7:0x1a7},_0x2722ae={_0x336e9e:0x223},_0x3613ce={_0x4f26dc:0x1d,_0x263351:0x150,_0x5cd210:0x8e,_0x3f540d:0x109,_0x101010:0xeb,_0x448b53:0xfe},_0x3e952a={_0x411960:0x1cb},_0x468777={_0x1ceaa6:0x8e},_0x4f9c86={_0x458c6d:0xdb,_0x4a841b:0x4d};let {theme:_0xb691e7}=_0x3f5a8b(),[_0x531b96,_0x29ead0]=_0x54dd84(0x0),_0x4ed207=_0x19a7c5(()=>{function _0x34a81b(_0x21eca9,_0x407bc7,_0x142c5b,_0x7a05fa){return _0x2644(_0x142c5b- -0x147,_0x7a05fa);}let _0x23994c=[..._0x25cba3];for(let _0x4714a1 of _0x3f8195)_0x23994c[_0x34a81b(0xb0,0x1c3,_0x4f9c86._0x458c6d,_0x4f9c86._0x4a841b)](_0x4714a1)||_0x23994c['push'](_0x4714a1);return _0x23994c;},[_0x25cba3,_0x3f8195]);_0x5af942(()=>{_0x500c36&&_0x29ead0(0x0);},[_0x500c36]),_0x5af942(()=>{function _0x11842e(_0x1bc0ee,_0x10d740,_0x119d6d,_0x437c57){return _0x2644(_0x119d6d-0x3e3,_0x10d740);}function _0x2fcf63(_0x14fef9,_0x383017,_0x4b5d8f,_0x9fbb6e){return _0x2644(_0x4b5d8f- -0x2e8,_0x14fef9);}_0x29ead0(_0x4e779b=>_0x4ed207[_0x11842e(0x568,0x5d3,0x629,0x742)]===0x0?0x0:Math[_0x2fcf63(0xa2,-0x109,-0x94,0x5f)](_0x4e779b,_0x4ed207[_0x2fcf63(-0xa1,-0x181,-0xa2,0x5)]-0x1));},[_0x4ed207]);function _0x272268(_0x198cda,_0x3a6bd0,_0x3c36fa,_0x3733c2){return _0x36ee89(_0x198cda,_0x3733c2-0x3c7,_0x3c36fa-0x1c4,_0x3733c2-0x8);}function _0x5f346e(_0x24e31e,_0x26d5f4,_0xffc21,_0xe7dd1e){return _0x36ee89(_0xe7dd1e,_0x26d5f4-0x6e,_0xffc21-0x68,_0xe7dd1e-_0x468777._0x1ceaa6);}let _0x1adee2=_0x5ab885(_0x374e8c=>{const _0x1ce3b0={_0x5816e3:0x8e};function _0x3ff77d(_0x43343c,_0x156b78,_0x574235,_0x1117eb){return _0x2644(_0x43343c- -_0x3e952a._0x411960,_0x574235);}if(_0x3f8195[_0x3ff77d(0x57,_0x3613ce._0x4f26dc,_0x3613ce._0x263351,-_0x3613ce._0x5cd210)](_0x374e8c)){_0x1435c1(_0x3f8195[_0x3ff77d(_0x3613ce._0x3f540d,_0x3613ce._0x101010,0xe1,_0x3613ce._0x448b53)](_0x258bb0=>_0x258bb0!==_0x374e8c));return;}function _0x55d6d6(_0x3259c2,_0x45d0ce,_0x1a3657,_0x42d228){return _0x2644(_0x42d228-_0x1ce3b0._0x5816e3,_0x45d0ce);}_0x1435c1([..._0x3f8195,_0x374e8c]);},[_0x1435c1,_0x3f8195]);return _0xbcb4cb((_0x297946,_0x86d06d)=>{const _0x232e9b={_0x1fa354:0x2f};function _0x1de2d8(_0x3d65f5,_0x2d43d9,_0xf0ce2c,_0x37c6ef){return _0x2644(_0x2d43d9-_0x232e9b._0x1fa354,_0xf0ce2c);}function _0x12a469(_0x291001,_0x4b5b6f,_0x1d2434,_0x47ab4a){return _0x2644(_0x1d2434-_0x2722ae._0x336e9e,_0x4b5b6f);}if(!(!_0x500c36||_0x4ed207['length']===0x0)){if(_0x86d06d['upArrow']){_0x29ead0(_0x43825e=>_0x43825e<=0x0?_0x4ed207[_0x1de2d8(0x1e2,0x275,0x1c6,0x2b8)]-0x1:_0x43825e-0x1);return;}if(_0x86d06d[_0x1de2d8(0x348,0x2fd,0x361,_0x5e2a7f._0x2e58de)]){_0x29ead0(_0x1dd94d=>_0x1dd94d>=_0x4ed207[_0x12a469(0x4f7,0x50c,0x469,0x3f1)]-0x1?0x0:_0x1dd94d+0x1);return;}if(_0x297946==='\x20'){_0x1adee2(_0x4ed207[_0x531b96]);return;}_0x86d06d[_0x1de2d8(0x276,0x219,0x226,_0x5e2a7f._0x12d8c7)]&&_0x51c1c9?.();}},{'isActive':_0x500c36}),_0x4ed207[_0x5f346e(-_0x360b15._0x3f0a3b,-0x114,-0x1e,0x7)]===0x0?_0x2706fa(_0x289fce,{'children':_0x2706fa(_0x45439d,{'color':_0xb691e7[_0x272268(_0x360b15._0x9ec930,0x21c,0x24e,_0x360b15._0x46d5d9)][_0x5f346e(-_0x360b15._0x501547,-_0x360b15._0x22aca6,-_0x360b15._0x1cc955,-_0x360b15._0x12b797)],'dimColor':!0x0,'children':_0x5f346e(-0x4d,-_0x360b15._0x17afe6,-_0x360b15._0x9c794,-0x25)})}):_0x3926b5(_0x289fce,{'flexDirection':'column','children':[_0x2706fa(_0x289fce,{'flexDirection':_0x5f346e(-0x1fb,-_0x360b15._0x51e65b,-_0x360b15._0x1cc517,0x4a),'children':_0x4ed207['map']((_0x403e7e,_0x49e29a)=>{const _0x2c1171={_0x348bf2:0x176};function _0x1839c9(_0x4be029,_0x4de538,_0x241342,_0x395f48){return _0x5f346e(_0x4be029-0xdc,_0x395f48- -0x4d,_0x241342-_0x2c1171._0x348bf2,_0x4be029);}function _0x450851(_0x335549,_0x52ffbe,_0x4b3198,_0x204c50){return _0x5f346e(_0x335549-_0x41e953._0x416612,_0x4b3198-0xf4,_0x4b3198-_0x41e953._0x4fb21b,_0x335549);}let _0x3c2fd5=_0x500c36&&_0x49e29a===_0x531b96,_0x3ca0f5=_0x3f8195[_0x1839c9(-_0x39ab54._0x43efe1,-0xac,-0x21f,-0x185)](_0x403e7e);return _0x3926b5(_0x45439d,{'color':_0x3c2fd5?_0xb691e7[_0x450851(-0x16e,0xa0,-0x52,_0x39ab54._0x8a65a9)][_0x450851(-_0x39ab54._0x55ad46,_0x39ab54._0xc97beb,_0x39ab54._0x582ae4,_0x39ab54._0x37bfa2)]:_0xb691e7[_0x450851(0x25,_0x39ab54._0x1e3fcb,-0x5f,-0x11e)][_0x1839c9(-_0x39ab54._0x47d38a,-_0x39ab54._0x5d9a89,-_0x39ab54._0x1eae3a,-_0x39ab54._0x1f453c)],'bold':_0x3c2fd5,'children':[_0x3ca0f5?'●':'○','\x20',_0x403e7e]},_0x403e7e);})}),_0x2706fa(_0x289fce,{'marginTop':0x1,'children':_0x2706fa(_0x45439d,{'color':_0xb691e7[_0x272268(_0x360b15._0x298596,_0x360b15._0x464fea,0x2ef,_0x360b15._0x46d5d9)][_0x5f346e(-_0x360b15._0x31cbc1,-0x187,-_0x360b15._0x4a3eec,-0x287)],'children':_0x272268(0x375,_0x360b15._0x5d6b42,0x340,0x285)})})]});};import{jsx as _0x506c9e,jsxs as _0x385706}from'react/jsx-runtime';var ii=({children:_0x4adb32,..._0x5ecd96})=>{const _0x3299a0={_0x2d58b6:0x7,_0x727278:0x104,_0x3f42c9:0x89,_0x4afe1f:0x1f},_0x477034={_0x595992:0x13d},_0x27b1e3={_0x375bc1:0xa1};function _0x32c152(_0x2a87cb,_0x40b7a4,_0x2a2f8e,_0x14160f){return _0x36ee89(_0x2a87cb,_0x40b7a4-0x4b,_0x2a2f8e-_0x27b1e3._0x375bc1,_0x14160f-0x8a);}let [_0x53cfb9]=_0x5cd4ed();function _0x55cfad(_0x1a5558,_0x53bae8,_0x2931d3,_0x24c9d6){return _0x36ee89(_0x2931d3,_0x24c9d6-0x21a,_0x2931d3-0x167,_0x24c9d6-_0x477034._0x595992);}return _0x506c9e(_0x57cc7a,{'flexDirection':_0x53cfb9<0x50?_0x32c152(_0x3299a0._0x2d58b6,-_0x3299a0._0x727278,-0xbb,-0x94):_0x32c152(0xe0,-0x1a,-_0x3299a0._0x3f42c9,_0x3299a0._0x4afe1f),'gap':0x2,..._0x5ecd96,'children':_0x4adb32});},Kr=({mode:_0xd3d702,preview:_0x58c319,availableTools:_0x109b83,activeField:_0x321040,editedName:_0x40b84a,editedId:_0x2e2829,editedDescription:_0x42bb37,editedTools:_0x542180,editedTemperature:_0x155f04,editedModel:_0xbb05c3,error:_0x292c96,onFieldChange:_0x103e94,onFieldSubmit:_0x11011b,onToolsChange:_0x31dd9b})=>{const _0x3611a6={_0x5d3bbf:0x690,_0x42f1f4:0x504,_0x3b0e65:0x4c7,_0x476379:0x319,_0x506c6a:0x3db,_0x53bf9b:0x2b4,_0x2af36b:0x44b,_0x4be878:0x57d,_0x9dc104:0x437,_0x4a70db:0x375,_0xc17d4b:0x2bd,_0x1f0cf2:0x464,_0x31ed71:0x317,_0x13eb4f:0x2df,_0x3460e7:0x39b,_0x3094f2:0x4d3,_0x2a950a:0x35b,_0x5876a6:0x5cd,_0x43c62b:0x523,_0x512dab:0x4fe,_0x416cf1:0x3c2,_0xf15182:0x269,_0x30650c:0x396,_0x2001c2:0x2ad,_0x2be0f5:0x329,_0x16b251:0x1f0,_0xede4e3:0x210,_0x27e58b:0x2f5,_0x4fb8d7:0x5aa,_0x23e02b:0x5f8,_0x32b6c7:0x5cf,_0x5a721d:0x36f,_0x3d93cf:0x362,_0x28250e:0x246,_0x16245b:0x329,_0x52899e:0x4d6,_0x4f58ae:0x411,_0x10f656:0x622,_0x1b68e6:0x5f8,_0x41e411:0x501,_0x57c5bc:0x315,_0x1707be:0x3a3,_0x5698b6:0x3ab,_0x3c972f:0x384,_0x1e3dc1:0x46c,_0x16c872:0x2ce,_0x265d6:0x3fa,_0x9d80e7:0x459,_0x14e61f:0x240,_0x49b080:0x2e6,_0x25a953:0x48e,_0x620f57:0x4ed,_0xf3bc9a:0x3b4,_0x15e25d:0x59a,_0x551d2d:0x5c6,_0x2c59ff:0x553,_0x1f6393:0x2f7,_0x2675bc:0x45a,_0x375c2c:0x39b,_0x72b280:0x3a9,_0xb3580:0x3fa,_0x4abf74:0x43d,_0x5011ae:0x317,_0x1ca19c:0x362,_0x32cee6:0x480,_0x574760:0x395,_0xd20097:0x50c,_0x58d7fb:0x428,_0x5d5880:0x47c,_0x297095:0x328,_0x526794:0x4a5,_0x1b3d92:0x3c6,_0x4f1d22:0x555,_0x5284ee:0x5ed,_0x480297:0x4f2,_0x249f01:0x3d8,_0xbd0469:0x2b9,_0x12c177:0x332,_0x350175:0x202,_0x452884:0x2f5,_0x1c3dc3:0x539,_0x511d01:0x47a,_0x26dbc2:0x57f,_0x5e7faa:0x53f,_0x551f07:0x56c,_0x44946e:0x573,_0x33b407:0x4bf,_0x21bb36:0x623,_0xafa4d7:0x4e3},_0x1e6fd9={_0x1e98b9:0x166,_0x2704b8:0x354};function _0x4606f7(_0x4c8292,_0x32ccb0,_0x36f1c0,_0x13f173){return _0x479f18(_0x4c8292-0x13a,_0x32ccb0-0x101,_0x36f1c0-0x425,_0x4c8292);}function _0x161d7c(_0x3f06e3,_0x207c74,_0x36a57d,_0x2996d2){return _0x479f18(_0x3f06e3-_0x1e6fd9._0x1e98b9,_0x207c74-0x155,_0x2996d2-_0x1e6fd9._0x2704b8,_0x36a57d);}let [_0x39ce15]=_0x5cd4ed(),{theme:_0x175f62}=_0x3f5a8b();return _0x506c9e(_0xd2ac0a,{'visible':!0x0,'title':_0xd3d702===_0x4606f7(_0x3611a6._0x5d3bbf,_0x3611a6._0x42f1f4,0x5f8,_0x3611a6._0x3b0e65)?_0x4606f7(0x3d0,_0x3611a6._0x476379,_0x3611a6._0x506c6a,_0x3611a6._0x53bf9b):_0x4606f7(_0x3611a6._0x2af36b,0x47f,_0x3611a6._0x4be878,0x68d),'titleColor':_0x175f62['colors'][_0x4606f7(0x5e0,0x4b8,0x4d1,_0x3611a6._0x9dc104)],'type':_0x161d7c(_0x3611a6._0x4a70db,_0x3611a6._0xc17d4b,_0x3611a6._0x1f0cf2,0x335),'children':_0x385706(_0x57cc7a,{'flexDirection':_0x161d7c(_0x3611a6._0x31ed71,_0x3611a6._0x13eb4f,0x4a0,_0x3611a6._0x3460e7),'marginTop':0x1,'children':[_0x292c96?_0x506c9e(_0x57cc7a,{'marginBottom':0x1,'children':_0x506c9e(_0x3ac523,{'color':_0x175f62['colors'][_0x4606f7(0x3e9,_0x3611a6._0x3094f2,0x49f,0x414)],'children':_0x292c96})}):null,_0x506c9e(_0x57cc7a,{'marginBottom':0x1,'children':_0x506c9e(_0x3ac523,{'color':_0x175f62[_0x4606f7(0x307,0x419,0x407,_0x3611a6._0x2a950a)]['primary'],'bold':!0x0,'children':_0x58c319[_0x161d7c(_0x3611a6._0x5876a6,_0x3611a6._0x43c62b,0x54a,_0x3611a6._0x512dab)]||_0x4606f7(0x61c,0x564,0x4e6,0x4e3)})}),_0x385706(ii,{'marginBottom':0x1,'gap':0x2,'children':[_0x385706(_0x57cc7a,{'flexDirection':_0x4606f7(0x480,_0x3611a6._0x416cf1,0x46c,0x3f8),'flexGrow':0x1,'width':_0x39ce15/0x4,'children':[_0x506c9e(_0x3ac523,{'color':_0x175f62[_0x161d7c(_0x3611a6._0xf15182,_0x3611a6._0x30650c,_0x3611a6._0x2001c2,_0x3611a6._0x2be0f5)][_0x161d7c(0x216,_0x3611a6._0x16b251,_0x3611a6._0xede4e3,_0x3611a6._0x27e58b)],'dimColor':!0x0,'children':_0x4606f7(0x4c2,0x6bc,_0x3611a6._0x4fb8d7,0x4ef)}),_0x506c9e(_0x28b262,{'value':_0x40b84a,'onChange':_0x2d5fd9=>_0x103e94(_0x161d7c(0x50a,0x3d6,0x55d,0x4fe),_0x2d5fd9),'focus':_0x321040===_0x4606f7(0x4b1,_0x3611a6._0x23e02b,_0x3611a6._0x32b6c7,0x64d),'onSubmit':()=>_0x11011b(_0x4606f7(0x637,0x52f,0x5cf,0x69b))})]}),_0x385706(_0x57cc7a,{'flexDirection':_0x4606f7(_0x3611a6._0x4a70db,_0x3611a6._0x5a721d,0x46c,_0x3611a6._0x3d93cf),'flexGrow':0x1,'width':_0x39ce15/0x4,'children':[_0x385706(_0x3ac523,{'color':_0x175f62[_0x161d7c(0x2e5,0x2e4,_0x3611a6._0x28250e,_0x3611a6._0x16245b)][_0x4606f7(0x41e,_0x3611a6._0x52899e,0x3c6,_0x3611a6._0x4f58ae)],'dimColor':!0x0,'children':['ID',_0xd3d702===_0x4606f7(_0x3611a6._0x10f656,0x682,_0x3611a6._0x1b68e6,_0x3611a6._0x41e411)?'':_0x161d7c(0x360,0x45c,_0x3611a6._0x57c5bc,_0x3611a6._0x1707be),':']}),_0x506c9e(_0x28b262,{'value':_0x2e2829,'onChange':_0x2cf670=>_0x103e94('id',_0x2cf670),'focus':_0x321040==='id','onSubmit':()=>_0x11011b('id')})]}),_0x385706(_0x57cc7a,{'flexDirection':_0x4606f7(_0x3611a6._0x5698b6,_0x3611a6._0x3c972f,_0x3611a6._0x1e3dc1,0x396),'flexGrow':0x1,'width':_0x39ce15/0x4,'children':[_0x506c9e(_0x3ac523,{'color':_0x175f62[_0x4606f7(_0x3611a6._0x16c872,0x2f9,_0x3611a6._0x265d6,_0x3611a6._0x9d80e7)][_0x161d7c(_0x3611a6._0x14e61f,0x38c,_0x3611a6._0x49b080,0x2f5)],'dimColor':!0x0,'children':_0x4606f7(_0x3611a6._0x25a953,0x52e,_0x3611a6._0x620f57,_0x3611a6._0xf3bc9a)}),_0x506c9e(_0x28b262,{'value':_0xbb05c3,'onChange':_0x16d8c4=>_0x103e94(_0x4606f7(0x52d,0x4f7,0x553,0x582),_0x16d8c4),'focus':_0x321040===_0x4606f7(_0x3611a6._0x15e25d,_0x3611a6._0x551d2d,_0x3611a6._0x2c59ff,0x5d1),'onSubmit':()=>_0x11011b('model')})]}),_0x385706(_0x57cc7a,{'flexDirection':_0x161d7c(_0x3611a6._0x1f6393,0x462,_0x3611a6._0x2675bc,_0x3611a6._0x375c2c),'flexGrow':0x1,'width':_0x39ce15/0x4,'children':[_0x506c9e(_0x3ac523,{'color':_0x175f62[_0x4606f7(0x398,_0x3611a6._0x72b280,_0x3611a6._0xb3580,_0x3611a6._0x4abf74)][_0x161d7c(_0x3611a6._0x5011ae,0x400,_0x3611a6._0x1ca19c,0x2f5)],'dimColor':!0x0,'children':_0x161d7c(0x32a,_0x3611a6._0x32cee6,_0x3611a6._0x574760,0x3ca)}),_0x506c9e(_0x28b262,{'value':_0x155f04,'onChange':_0x552cea=>_0x103e94(_0x4606f7(0x51a,0x562,0x613,0x6c2),_0x552cea),'focus':_0x321040===_0x161d7c(_0x3611a6._0xd20097,0x41b,0x50e,0x542),'onSubmit':()=>_0x11011b(_0x4606f7(0x6a6,0x610,0x613,0x5e8))})]})]}),_0x385706(_0x57cc7a,{'flexDirection':_0x161d7c(_0x3611a6._0x58d7fb,0x363,0x462,0x39b),'marginBottom':0x1,'children':[_0x506c9e(_0x3ac523,{'color':_0x175f62[_0x4606f7(_0x3611a6._0x5d5880,_0x3611a6._0x297095,_0x3611a6._0xb3580,_0x3611a6._0x526794)][_0x4606f7(0x3c3,0x40c,_0x3611a6._0x1b3d92,0x2a4)],'dimColor':!0x0,'children':_0x4606f7(_0x3611a6._0x4f1d22,_0x3611a6._0x5284ee,_0x3611a6._0x480297,0x562)}),_0x506c9e($r,{'focus':_0x321040==='tools','availableTools':_0x109b83,'selectedTools':_0x542180,'onChange':_0x31dd9b,'onSubmit':()=>_0x11011b(_0x161d7c(0x41d,0x323,0x2f3,0x3a6))})]}),_0x385706(_0x57cc7a,{'flexDirection':_0x161d7c(_0x3611a6._0x249f01,_0x3611a6._0xbd0469,_0x3611a6._0x12c177,_0x3611a6._0x3460e7),'marginBottom':0x1,'children':[_0x506c9e(_0x3ac523,{'color':_0x175f62['modal'][_0x161d7c(0x336,_0x3611a6._0x350175,0x2e4,_0x3611a6._0x452884)],'dimColor':!0x0,'children':_0x4606f7(_0x3611a6._0x1c3dc3,_0x3611a6._0x511d01,0x42b,0x3db)}),_0x506c9e(_0x28b262,{'value':_0x42bb37,'onChange':_0x17d5c0=>_0x103e94(_0x161d7c(0x45e,0x3a7,0x3d4,0x3be),_0x17d5c0),'focus':_0x321040===_0x4606f7(_0x3611a6._0x26dbc2,_0x3611a6._0x5e7faa,0x48f,_0x3611a6._0x551f07),'onSubmit':()=>_0x11011b(_0x161d7c(0x3ec,0x390,0x38a,0x3be))})]}),_0x506c9e(_0x57cc7a,{'marginTop':0x1,'children':_0x506c9e(_0x3ac523,{'color':_0x4606f7(_0x3611a6._0x44946e,_0x3611a6._0x33b407,0x5c2,_0x3611a6._0x21bb36),'children':_0xd3d702==='edit'?_0x4606f7(0x36e,0x508,0x40b,_0x3611a6._0xafa4d7):'Press\x20Enter\x20on\x20each\x20field\x20to\x20continue,\x20or\x20Ctrl+S\x20to\x20save\x20immediately.\x20ESC\x20returns\x20to\x20the\x20preview.'})})]})});};import{Box as _0x569028,Text as _0x3d0aa8}from'ink';import{jsx as _0x12e0cf}from'react/jsx-runtime';var Hr=({mode:_0x2700b9})=>{const _0x2ea7b7={_0x42ee1f:0x428,_0x40f676:0x345,_0x56da0f:0x365,_0x96da44:0x3c9,_0x16c689:0x5c,_0x219562:0x8,_0x2a0a14:0x18,_0x3d1989:0x9b,_0x524280:0x234,_0x133730:0x373,_0x1a5d5b:0xf4,_0x4f640a:0x18c},_0x28a75e={_0x551778:0x81,_0x2a3b60:0x54};function _0x4bb172(_0x486ae4,_0x148d52,_0x842062,_0x2ad219){return _0x479f18(_0x486ae4-_0x28a75e._0x551778,_0x148d52-0xdf,_0x486ae4- -_0x28a75e._0x2a3b60,_0x842062);}let {theme:_0x5a44df}=_0x3f5a8b(),_0x5ea70e=_0x2700b9===_0x555485(_0x2ea7b7._0x42ee1f,_0x2ea7b7._0x40f676,_0x2ea7b7._0x56da0f,_0x2ea7b7._0x96da44)?_0x4bb172(_0x2ea7b7._0x16c689,-0xc1,_0x2ea7b7._0x219562,0x4a):_0x4bb172(0x110,_0x2ea7b7._0x2a0a14,_0x2ea7b7._0x3d1989,0x4a),_0x324524=_0x2700b9==='edit'?'Saving\x20updated\x20configuration…':_0x555485(0x286,0x424,0x382,0x468),_0x3d4cf2=_0x2700b9===_0x555485(_0x2ea7b7._0x524280,0x3ea,0x365,0x35e)?_0x5a44df['colors'][_0x555485(_0x2ea7b7._0x133730,0x1c3,0x23e,0x2e9)]:_0x5a44df['colors'][_0x4bb172(-0x88,-_0x2ea7b7._0x1a5d5b,-_0x2ea7b7._0x4f640a,-0x23)];function _0x555485(_0x5d8518,_0x4f3d10,_0x43d969,_0x417096){return _0x36ee89(_0x417096,_0x43d969-0x328,_0x43d969-0xa2,_0x417096-0x19b);}return _0x12e0cf(_0xd2ac0a,{'visible':!0x0,'title':_0x5ea70e,'titleColor':_0x3d4cf2,'type':'default','children':_0x12e0cf(_0x569028,{'marginTop':0x1,'children':_0x12e0cf(_0x3d0aa8,{'color':_0x3d4cf2,'children':_0x324524})})});};import{Box as _0x3e1e0c,Text as _0x6644d4}from'ink';import{jsx as _0x33f91a,jsxs as _0x2994d3}from'react/jsx-runtime';var Gr=({error:_0x3ee9f3})=>{const _0x2761a0={_0x4948e6:0x70e,_0x2e5d33:0x6cf,_0x323b8c:0x5be,_0x56b668:0xc4,_0x208a41:0x1f5,_0x1c682a:0xed,_0x558a61:0x29e,_0x5c1eb4:0x1a6,_0x123dd7:0x1f5,_0x15d2bd:0x155,_0x6b4672:0x43d,_0x410878:0x4b4,_0x5ecaec:0x37,_0x19d52c:0x15d,_0x3580fe:0x23f,_0xf779a9:0x2a2,_0x2e1a62:0x3cb,_0x26c34c:0x2f5,_0x251fce:0x2f7,_0x3703f5:0x174,_0x424afc:0x11c,_0x10963b:0x115,_0x39e4c8:0x550},_0x38a635={_0xaece9f:0x46},_0x4fbda0={_0x43e3ef:0x311,_0x5009da:0x1a6,_0x24ded6:0x174};function _0x3605d2(_0x45a53e,_0x4c3ab7,_0x42c2d7,_0x5015e6){return _0x36ee89(_0x45a53e,_0x4c3ab7-_0x4fbda0._0x43e3ef,_0x42c2d7-_0x4fbda0._0x5009da,_0x5015e6-_0x4fbda0._0x24ded6);}let {theme:_0xf07dcf}=_0x3f5a8b();function _0x106087(_0x5da21b,_0x15d308,_0x592e87,_0x5efe39){return _0x36ee89(_0x592e87,_0x5da21b-0x58c,_0x592e87-0x5c,_0x5efe39-_0x38a635._0xaece9f);}return _0x33f91a(_0xd2ac0a,{'visible':!0x0,'title':_0x106087(0x5ed,_0x2761a0._0x4948e6,_0x2761a0._0x2e5d33,_0x2761a0._0x323b8c),'titleColor':_0xf07dcf[_0x3605d2(0x165,0x15d,_0x2761a0._0x56b668,0x26)][_0x3605d2(0x306,_0x2761a0._0x208a41,_0x2761a0._0x1c682a,_0x2761a0._0x558a61)],'type':_0x3605d2(_0x2761a0._0x5c1eb4,_0x2761a0._0x123dd7,_0x2761a0._0x15d2bd,0x200),'children':_0x2994d3(_0x3e1e0c,{'flexDirection':_0x106087(_0x2761a0._0x6b4672,0x464,_0x2761a0._0x410878,0x42b),'marginTop':0x1,'children':[_0x33f91a(_0x6644d4,{'color':_0xf07dcf[_0x3605d2(_0x2761a0._0x5ecaec,_0x2761a0._0x19d52c,0x280,_0x2761a0._0x3580fe)][_0x3605d2(_0x2761a0._0xf779a9,_0x2761a0._0x123dd7,0x276,0x188)],'children':_0x3ee9f3}),_0x33f91a(_0x3e1e0c,{'marginTop':0x1,'children':_0x33f91a(_0x6644d4,{'color':_0xf07dcf[_0x106087(_0x2761a0._0x2e1a62,_0x2761a0._0x26c34c,_0x2761a0._0x251fce,0x432)][_0x3605d2(_0x2761a0._0x3703f5,_0x2761a0._0x424afc,_0x2761a0._0x10963b,0x45)],'children':_0x106087(0x5de,0x68a,0x65d,_0x2761a0._0x39e4c8)})})]})});};import{jsx as _0xdabd18}from'react/jsx-runtime';var ci=({visible:_0x237050,onGenerate:_0x437593,onCancel:_0x1d1b2a,onConfirm:_0x25a444,onUpdatePreview:_0x4932ec,availableTools:_0x4c8d5c=[],loading:_0x180df6=!0x1,error:_0x56ce68,preview:_0x4e14c3,mode:_0x50885b=_0x36ee89(-0x8f,-0xc3,-0x1c0,-0xa8)})=>{const _0x1361dd={_0x25361b:0x464,_0x1170cd:0x535,_0x56e4c7:0x608,_0x327abb:0xff,_0x585dab:0x229,_0x53193a:0x1e8,_0x2db78f:0x5ee,_0x2a8ffc:0x8a,_0x37c9fd:0x2e,_0x354012:0x56f,_0x27c86f:0x6a8,_0x7daf25:0x35b,_0x1facda:0x1c2,_0x2c3a5c:0x350,_0x656e2e:0x74c,_0x547120:0x625,_0x4e80c6:0x2db,_0x24b4dd:0x31e,_0x442b07:0x2a2,_0x204b68:0x300,_0x51d91e:0x34b},_0x12448f={_0x41cc17:0x5ae,_0x2bd65b:0x3d7,_0x40da24:0x1d3,_0x1829a0:0x201,_0x2c9dce:0x2cb,_0x48dcfa:0x4c8,_0x3ae9f3:0x486,_0x4b08a7:0x4b5},_0x1b6f12={_0x2d8730:0x38f},_0x3a7060={_0x492025:0x47d,_0x3cec73:0x52f,_0x36baff:0x48a,_0x3fff50:0x560,_0x5edcd3:0x36d,_0x4c80aa:0x3f9,_0x40566c:0x641,_0x4f9441:0x690,_0xe27488:0x654,_0x3991aa:0x6d9,_0x593146:0x53c,_0xec1082:0x552,_0x261f7e:0x357,_0x32bd1f:0x41b,_0x1196d0:0x540},_0x406856={_0x1dcb40:0x51,_0x4360a6:0xa9},_0x2c1fa3={_0x395b85:0x141};function _0x4fa5e9(_0x295da7,_0x3806a0,_0x4c9ca8,_0x292edf){return _0x36ee89(_0x3806a0,_0x292edf-0x645,_0x4c9ca8-0x132,_0x292edf-0x1f);}function _0xd51e1(_0x19a608,_0x3d55b6,_0x635c86,_0x522def){return _0x36ee89(_0x522def,_0x19a608-0x265,_0x635c86-0x6a,_0x522def-_0x2c1fa3._0x395b85);}let _0x13cacc=Br(_0x50885b,_0x4e14c3,_0x4932ec,_0x25a444);return kr({'visible':_0x237050,'state':_0x13cacc,'actions':_0x13cacc,'onCancel':_0x1d1b2a,'onConfirm':_0x25a444,'loading':_0x180df6}),_0x237050?_0x180df6?_0xdabd18(Hr,{'mode':_0x50885b}):_0x50885b===_0x4fa5e9(0x6bb,_0x1361dd._0x25361b,0x4dd,0x582)&&_0x56ce68?_0xdabd18(Gr,{'error':_0x56ce68}):_0x13cacc[_0x4fa5e9(_0x1361dd._0x1170cd,_0x1361dd._0x56e4c7,0x511,0x608)]&&_0x4e14c3?_0xdabd18(Kr,{'mode':_0x50885b,'preview':_0x4e14c3,'availableTools':_0x4c8d5c,'activeField':_0x13cacc[_0xd51e1(0x143,_0x1361dd._0x327abb,_0x1361dd._0x585dab,_0x1361dd._0x53193a)],'editedName':_0x13cacc[_0x4fa5e9(0x53c,0x4df,0x4fc,_0x1361dd._0x2db78f)],'editedId':_0x13cacc[_0xd51e1(_0x1361dd._0x2a8ffc,-_0x1361dd._0x37c9fd,-0x1,0x59)],'editedDescription':_0x13cacc[_0x4fa5e9(0x7b8,0x5d8,_0x1361dd._0x354012,_0x1361dd._0x27c86f)],'editedTools':_0x13cacc[_0xd51e1(0x242,_0x1361dd._0x7daf25,0x2d1,_0x1361dd._0x1facda)],'editedTemperature':_0x13cacc[_0xd51e1(0x2a7,_0x1361dd._0x2c3a5c,0x398,0x211)],'editedSystemPrompt':_0x13cacc['editedSystemPrompt'],'editedModel':_0x13cacc['editedModel'],'error':_0x56ce68,'onFieldChange':(_0x54986f,_0x89c8f4)=>{function _0x306f27(_0x46d372,_0x3618a8,_0x3abb68,_0x5413db){return _0xd51e1(_0x46d372-0x457,_0x3618a8-0x22,_0x3abb68-0x2c,_0x3abb68);}function _0x5b232d(_0x3e31ff,_0x11cf73,_0x408647,_0x471047){return _0xd51e1(_0x11cf73-0x2b6,_0x11cf73-_0x406856._0x1dcb40,_0x408647-_0x406856._0x4360a6,_0x471047);}switch(_0x54986f){case _0x5b232d(_0x3a7060._0x492025,_0x3a7060._0x3cec73,_0x3a7060._0x36baff,_0x3a7060._0x3fff50):_0x13cacc[_0x5b232d(0x417,_0x3a7060._0x5edcd3,_0x3a7060._0x4c80aa,0x331)](_0x89c8f4);break;case'id':_0x13cacc[_0x306f27(_0x3a7060._0x40566c,_0x3a7060._0x4f9441,0x73b,0x71a)](_0x89c8f4);break;case _0x306f27(_0x3a7060._0xe27488,_0x3a7060._0x3991aa,_0x3a7060._0x593146,_0x3a7060._0xec1082):_0x13cacc[_0x5b232d(0x2d0,_0x3a7060._0x261f7e,0x473,0x2cd)](_0x89c8f4);break;case'temperature':_0x13cacc[_0x5b232d(0x32b,_0x3a7060._0x32bd1f,_0x3a7060._0x1196d0,0x4f8)](_0x89c8f4);break;case'description':_0x13cacc['setEditedDescription'](_0x89c8f4);break;}},'onFieldSubmit':_0x13cacc[_0x4fa5e9(0x726,0x5cb,_0x1361dd._0x656e2e,_0x1361dd._0x547120)],'onToolsChange':_0x13cacc[_0xd51e1(_0x1361dd._0x4e80c6,0x376,_0x1361dd._0x24b4dd,0x3e8)]}):_0x50885b===_0x4fa5e9(0x455,0x4fe,0x4cb,0x582)&&_0x13cacc['showPreview']&&_0x4e14c3?_0xdabd18(Lr,{'preview':_0x4e14c3}):_0x50885b===_0xd51e1(_0x1361dd._0x442b07,_0x1361dd._0x204b68,0x1a3,_0x1361dd._0x51d91e)?null:_0xdabd18(Ur,{'description':_0x13cacc['description'],'onChange':_0x13cacc[_0x4fa5e9(0x512,0x3c3,0x3e3,0x4f1)],'onSubmit':()=>{const _0x30c3ae={_0x392fe8:0x1c1};function _0x2604ce(_0x404f15,_0x447941,_0x584f31,_0x28c561){return _0xd51e1(_0x404f15-_0x1b6f12._0x2d8730,_0x447941-0xe7,_0x584f31-0x1cd,_0x28c561);}function _0x81ae65(_0x47277a,_0x7dc696,_0x221e15,_0x1a92d5){return _0x4fa5e9(_0x47277a-_0x30c3ae._0x392fe8,_0x1a92d5,_0x221e15-0x1b4,_0x47277a- -0x406);}_0x13cacc[_0x2604ce(0x4c8,_0x12448f._0x41cc17,0x4e0,_0x12448f._0x2bd65b)][_0x81ae65(_0x12448f._0x40da24,_0x12448f._0x1829a0,0x245,_0x12448f._0x2c9dce)]()&&_0x437593(_0x13cacc[_0x2604ce(_0x12448f._0x48dcfa,_0x12448f._0x3ae9f3,_0x12448f._0x4b08a7,0x566)]);}}):null;},jr=ci;import{jsx as _0x521c5a}from'react/jsx-runtime';var mi=({context:_0x1348a0,deactivate:_0x384e30})=>{const _0x271870={_0x2109ce:0x30a,_0x143846:0x2a1,_0xd78299:0x79,_0x713028:0x28e,_0x10d81f:0x179,_0x50ce96:0x3fb,_0x3df89a:0x40c,_0x1653de:0x373,_0x3a139c:0x1c8,_0x460ad8:0x2bc,_0x41c54e:0x1ea,_0x26dd1c:0x1dc,_0x13aec4:0x32b,_0x40f490:0x15f,_0x535b49:0x1ae,_0x36ec1d:0xe9,_0x1afd5b:0x1ea,_0x523b50:0x210,_0x338aa5:0x238,_0x436a95:0x106,_0xb6c7aa:0x14e,_0x1adc6e:0x3e9,_0x45f143:0x498,_0x2e575d:0x3df,_0x3bc198:0x267,_0x1b7ce5:0x35e,_0x3ba70e:0x286,_0x306904:0x25e,_0x219283:0x36,_0x37e150:0x270,_0x51b264:0x1d8,_0x281745:0x3c0,_0x518f34:0x28c,_0x31fbaf:0x16d,_0x148b23:0x30e,_0x18f576:0x2e0,_0x2f6577:0x40f,_0x1e5b64:0x45f,_0x281d0e:0x3ed,_0x55570c:0x2a1,_0x5ca489:0x38e,_0x5261de:0x1fc,_0x171c6e:0x2b3,_0x21ce41:0x205,_0x4cd160:0x20e,_0x206194:0x32b,_0x4d96a8:0x2f6,_0x11ff89:0x1af,_0x5db896:0x2d7,_0x53ccb7:0x1ad,_0x1af450:0xd0,_0x57c466:0x1e8,_0x367a6b:0x460,_0x33ab28:0x3d7,_0x43ea9b:0x362,_0x529e66:0x3d9,_0x10815e:0x45b},_0x6dc851={_0xf72dcd:0xc5,_0x19e9eb:0x8d,_0x829402:0x144,_0x370445:0x1ce,_0xedc9f3:0x11e,_0x26014e:0x339,_0x3e1423:0x2ba,_0x443c89:0x43e,_0x3d1a6a:0x1ea,_0x2fccbb:0x1ec,_0x41b87e:0x27e,_0x2d2111:0x270,_0x141e75:0x21e,_0x58a00d:0x2fe,_0x2e36a7:0x78,_0x149e2f:0x196,_0x467233:0x24b,_0x54880a:0x173,_0x34763a:0xfe,_0x5c684f:0x2,_0x2c210c:0x326,_0x2246ae:0x20d,_0x418653:0x30f,_0x3a7047:0x35f,_0x1891ba:0x44f,_0x270664:0x423,_0x216f18:0x269,_0xee8d2a:0x193,_0x5542e4:0x17f,_0x3b56d1:0x416,_0x8b330f:0x417,_0x5b5e7b:0x347,_0x59342f:0x1ae,_0x23005d:0x228,_0x28785a:0x3c3,_0x2834cc:0x192,_0x486780:0x153,_0x5786f5:0x56,_0x3a3b80:0x70,_0x3efa5d:0xd,_0x2037ce:0x25,_0x4e1ea4:0x3e4,_0xbc7bad:0x2f9,_0x215fd8:0x3c,_0xd72c15:0x168,_0x10fb28:0x4d,_0x286414:0xef,_0x5b6055:0x53,_0x2235fb:0x8d,_0x53126a:0x5d,_0x55225b:0x1a4,_0x5351fa:0x267,_0x53f6aa:0x2cb,_0x12317c:0x8c,_0x396722:0x17d,_0x2af317:0x38a,_0xf298c7:0x41f,_0x778535:0x45e,_0x7f203f:0x37a,_0x38607e:0xd0,_0x24e50e:0x1d0,_0x68ef27:0x338,_0x13dd7c:0x308,_0xbdf212:0xdd,_0x479425:0x14,_0x47d725:0x7b,_0x511e68:0x8a,_0x2b39ab:0x9e,_0x3cb94c:0x209,_0x4a2a6e:0x25b,_0x1fd4b4:0x225,_0x364b32:0x4b6,_0x40b96b:0x43b,_0x4a5fa5:0x254,_0x4a2551:0x2fa,_0x1669f6:0x1d7,_0x467ce5:0x223,_0x2444b8:0x521,_0xdc4b66:0x2a,_0x307b1d:0x1a,_0x35260e:0x20b,_0x136e1e:0x432,_0x34a3ed:0x418,_0x30caf0:0x47a,_0x53ca61:0xa3,_0x535668:0x8e,_0x3ffab0:0x106,_0xc833a0:0x109,_0x2fd9f2:0x171,_0x3f5c45:0x9d,_0x1b94b7:0x103,_0x155299:0x139,_0x55f3d4:0x38a,_0x4c508c:0x1aa,_0x2ca211:0x63,_0x42819c:0xc2,_0x13b050:0x4d,_0x3f6477:0x26f,_0x3878c0:0x206,_0x31cabd:0x216,_0x5db8f0:0x2b5,_0xae1a6:0x2f9,_0x7f112f:0x116,_0x203fcd:0x1e7,_0x161b70:0x243},_0x2d91ff={_0xdf9a06:0x145},_0x585cd5={_0x1e1bfd:0x2e6,_0x2409a9:0x24b,_0x14adf5:0x19b},_0x32ab6d={_0x1a9c70:0x18,_0x173870:0x2e},_0x2c4e96={_0x63ac3f:0x347,_0x39b49d:0x2a8,_0x17397a:0x332,_0x114486:0x349,_0x1bdafd:0x35b,_0x18c098:0x27f,_0x557b1f:0x315,_0xe0ba15:0x1f6,_0x291af6:0x2e8,_0x5a9666:0x207,_0x2ea02f:0xe8,_0x22fc38:0x153,_0x461c7b:0x35d,_0x9ef07d:0x443,_0xcc3af5:0x3d9,_0xf538a6:0x1c0,_0x2b766f:0x15e,_0x3692c2:0x162,_0x1fdb2e:0x296,_0xf65b1e:0x297,_0x1e860b:0x2c3,_0x33a468:0x363,_0x4e0c4e:0xfd,_0x302d8b:0x1c0,_0x52b694:0x14a,_0x2d7476:0x1fb},_0x3c3d94={_0x539247:0xa7},_0x487bad={_0x1470df:0x422,_0x4f5508:0x38a,_0x4c5743:0x49a,_0x473dda:0x312,_0x1b2ca2:0x544,_0x131af2:0x6b0,_0x2a700e:0x704,_0x154007:0x61d,_0x35b369:0x742,_0x40a376:0x5be,_0x5b19da:0x72c,_0x1b654b:0x4c0,_0x23dddd:0x5f0,_0x5b0cae:0x2e1,_0x2f0582:0x518,_0x28edc6:0x4df,_0x235429:0x54d,_0x4b8a8a:0x3c4,_0x3dafa3:0x370,_0x2c9ff1:0x2f7,_0x1a3532:0x4c5,_0xd3b258:0x59b,_0x4a7797:0x45d,_0x3c6539:0x267,_0x5db4b9:0x27e,_0x17b81b:0x275,_0x3324bb:0x2e9},_0x2f7c95={_0x5eb523:0x6b,_0x331745:0x2d6},_0x474c02={_0x316ce3:0x19b,_0x43bf8b:0x188,_0xaad709:0x25d,_0x469d72:0x24c,_0x703aa:0x292},_0x426835={_0x319ea5:0x15b,_0x2d08d5:0x160},_0x527ecd={_0x30d8c7:0x60,_0x3231d5:0x10a,_0x5bd773:0x21d,_0x34c46b:0xb,_0x2989be:0x3d,_0xef0162:0xb6,_0x2b312a:0x1e7,_0x43de84:0xef,_0x5d0371:0x1c,_0x1028b7:0x87,_0x14fee2:0x60,_0x5d15a0:0x7f,_0x46b4e8:0x13,_0x4fed97:0xa4,_0x48fe01:0x8e,_0x9e8b95:0xaf,_0x2df110:0xf1,_0x565809:0x20,_0x76534d:0xc4,_0x5ecc34:0x19c,_0x9d4413:0xdf},_0x376d1e={_0x3debe3:0x198,_0x5c87db:0xa8},_0x15d42b={_0x46f49d:0x1c,_0x405945:0xfe,_0x49b7df:0xda,_0x32fcf7:0x1d0,_0x2e7b51:0x47,_0x5be510:0xbf,_0x480358:0x15c,_0x1dd0a3:0x1cd,_0x42ff48:0x10f,_0x933b5e:0x183,_0x1aa945:0x8d,_0x13c5c2:0x2f,_0x306c07:0x10c,_0x3ae740:0x9},_0x380bf9={_0x7db8d6:0x195,_0x308068:0x1cc,_0x33cde3:0x26c},_0xe29f56={_0x1249b1:0x139,_0x4c9b08:0x8a,_0x346dab:0x512,_0x6a99f6:0x518,_0x3d7263:0x61c,_0x57f1b3:0x322,_0x256823:0x776,_0x3c65f1:0x5ff,_0x484948:0x654,_0x3b7e88:0x669,_0x5ad4ce:0x75c,_0x112150:0x6f8,_0x1ee4c9:0x5fd,_0x2d6d11:0x59a,_0x156514:0x6e3},_0x5212c9={_0x53bbd7:0x321,_0x15a54b:0x1f},_0xece75b={_0x1a5e34:0x441,_0x1ca4b6:0x5e5,_0x201404:0x4ff,_0xe02f86:0x1aa,_0x22f892:0x506,_0x346328:0x19d,_0x2e1d8f:0xb5,_0x9afe3:0xe2,_0x589a1a:0x231,_0x137822:0x4b,_0x42602e:0x29,_0x4539d:0x4b9,_0x5e0933:0x42a,_0x2d517f:0x420,_0x4bf376:0x40f,_0x1114e7:0x4e4,_0x6674e1:0x7a,_0x59b70e:0x3eb,_0x4bd4a9:0x406,_0x249f44:0x513,_0x2b06f1:0x5be,_0x205379:0x4e6,_0x290a9c:0x4c0,_0x4b6146:0x10d,_0x5c1bf4:0xe9,_0x372337:0xd2,_0x50d1b4:0x146,_0x21ae1d:0x1a,_0x563963:0x9c,_0x21fa5c:0x10,_0x3bb7c5:0x3d,_0x48bf28:0x21a,_0x36a691:0x108,_0x258531:0x5b1,_0x4e03e6:0x5b4},_0x1f7798={_0x303783:0x1be,_0x35d505:0x190},_0x1351ae={_0x4f6b6f:0x58},_0x20828c={_0x2cb9e3:0xc1,_0x35e1ae:0xf6},_0x217e87={_0x9186f7:0x100,_0x13b533:0xba,_0x2d9848:0x45,_0x192e6b:0x73,_0xb2136b:0x116,_0x4e2c2a:0x129},_0x303852={_0x20dd8d:0x305};let {theme:_0x43be42}=_0x3f5a8b(),[_0x3eff49,_0x10b75d]=_0x629707([]),[_0x32ff28,_0x2f34cc]=_0x629707({}),[_0xd9e1f,_0x466952]=_0x629707(!0x0),[_0x1b60ca,_0x38dc73]=_0x629707(null),[_0x4add54,_0x258777]=_0x629707(!0x1),[_0x12461e,_0x2e47a7]=_0x629707(!0x1),[_0x518868,_0x5ec6d2]=_0x629707(void 0x0),[_0x4d2c69,_0x1f229c]=_0x629707(void 0x0),[_0x499216,_0xd41f87]=_0x629707(null),[_0x3526a3,_0x20ddd9]=_0x629707([]),[_0x3dfaa0,_0x2b6280]=_0x629707({'activeView':'config','navigationSource':null,'preservedState':null}),_0x347f56=_0x5f143d((_0x149a16,_0x313d31,_0x380c0b)=>{function _0x5db7e0(_0x3a3a6b,_0x5c269f,_0x41ac4f,_0x4cbc60){return _0x2644(_0x3a3a6b- -_0x303852._0x20dd8d,_0x5c269f);}function _0x790a1(_0x3d144f,_0x31fd83,_0x3a977c,_0x3bb91f){return _0x2644(_0x31fd83-0x104,_0x3d144f);}_0x2b6280({'activeView':_0x5db7e0(_0x217e87._0x9186f7,_0x217e87._0x13b533,_0x217e87._0x2d9848,0x1eb),'navigationSource':_0x313d31,'preservedState':_0x313d31===_0x5db7e0(-0x125,-_0x217e87._0x192e6b,-_0x217e87._0xb2136b,-_0x217e87._0x4e2c2a)?{'selectedAgentId':_0x149a16,'selectedAgentIndex':_0x380c0b}:null});},[]),_0x50e3c8=_0x5f143d(()=>{_0x2b6280(()=>({'activeView':'config','navigationSource':null,'preservedState':null}));},[]);function _0x303fc8(_0x2f137d,_0x5b6bea,_0x134bba,_0x4c41be){return _0x479f18(_0x2f137d-_0x20828c._0x2cb9e3,_0x5b6bea-_0x20828c._0x35e1ae,_0x4c41be-0x314,_0x2f137d);}_0x3e2590((_0x255810,_0xbdbe3c)=>{function _0x1fec96(_0x2e5ff9,_0x97b314,_0xaeec6,_0x29f5fc){return _0x2644(_0x97b314- -_0x1351ae._0x4f6b6f,_0xaeec6);}_0xbdbe3c[_0x1fec96(0x240,_0x1f7798._0x303783,_0x1f7798._0x35d505,0x208)]&&(!_0x4add54||_0x12461e)&&(_0x4add54||_0x384e30());},{'isActive':!_0x4add54});let _0x191e18=_0x5f143d(async()=>{function _0x31e6e8(_0x42b5fd,_0x516c6e,_0x227a2c,_0x418609){return _0x2644(_0x418609-0x1ef,_0x227a2c);}function _0x7c36d1(_0x35df49,_0x5b5962,_0x5ca587,_0x588514){return _0x2644(_0x588514- -0x39e,_0x5ca587);}try{_0x466952(!0x0),_0x38dc73(null);let _0xdea319=_0x1348a0['orchestrator']?.['getTools']?.(),_0xc8f14b=_0xdea319,_0x27ad3d=_0xc8f14b?.[_0x31e6e8(_0xece75b._0x1a5e34,_0xece75b._0x1ca4b6,0x473,_0xece75b._0x201404)]?.(),_0x45f9ca=_0x1348a0[_0x7c36d1(-0x11e,-_0xece75b._0xe02f86,-0xb1,-0x10d)][_0x31e6e8(0x693,0x5cd,_0xece75b._0x22f892,0x58e)](_0x7c36d1(-_0xece75b._0x346328,-_0xece75b._0x2e1d8f,-0x128,-0xb8))||{};if(!_0x27ad3d){let _0x4b14a2=[_0x7c36d1(-0x10f,-_0xece75b._0x9afe3,0x38,0x12),'','Debug\x20Info:',_0x7c36d1(-_0xece75b._0x589a1a,-_0xece75b._0x137822,-_0xece75b._0x42602e,-0x123)+!!_0x1348a0[_0x31e6e8(_0xece75b._0x4539d,_0xece75b._0x5e0933,_0xece75b._0x2d517f,_0xece75b._0x4bf376)],_0x31e6e8(_0xece75b._0x1114e7,0x4d4,0x640,0x538)+!!_0x1348a0[_0x7c36d1(-0x176,-_0xece75b._0x6674e1,-0x28d,-0x17e)]?.[_0x31e6e8(_0xece75b._0x59b70e,_0xece75b._0x4bd4a9,_0xece75b._0x249f44,0x42d)],'-\x20Tools\x20exist:\x20'+!!_0xdea319,'-\x20getAgentRegistry\x20method\x20exists:\x20'+!!_0xc8f14b?.['getAgentRegistry'],'',_0x31e6e8(_0xece75b._0x2b06f1,0x50e,_0xece75b._0x205379,_0xece75b._0x290a9c),_0x7c36d1(-_0xece75b._0x4b6146,-0x201,-_0xece75b._0x5c1bf4,-_0xece75b._0x372337)][_0x7c36d1(0xbb,-_0xece75b._0x50d1b4,-0x22,-_0xece75b._0x21ae1d)]('\x0a');_0x38dc73(_0x4b14a2),_0x10b75d([]),_0x2f34cc({});return;}let _0x5e12a5=_0x27ad3d[_0x7c36d1(-0x15,-_0xece75b._0x563963,_0xece75b._0x21fa5c,-_0xece75b._0x3bb7c5)]()[_0x7c36d1(0xd1,0x3a,0x1a3,0x97)](_0x39fbcd=>({..._0x39fbcd,'isDefault':_0x27ad3d['isDefault'](_0x39fbcd['id']||'')}));_0x10b75d(_0x5e12a5),_0x2f34cc({..._0x45f9ca});let _0x1f622c=_0xdea319;_0x1f622c?.['setEnabledAgents']&&_0x1f622c[_0x7c36d1(-_0xece75b._0x48bf28,-0x210,-0x106,-_0xece75b._0x36a691)]({..._0x45f9ca});}catch(_0x59aba4){let _0x25c9b3=_0x59aba4 instanceof Error?_0x59aba4[_0x31e6e8(_0xece75b._0x258531,_0xece75b._0x4e03e6,0x46c,0x4e5)]:String(_0x59aba4);_0x38dc73('Failed\x20to\x20load\x20agents:\x20'+_0x25c9b3);}finally{_0x466952(!0x1);}},[_0x1348a0['config'],_0x1348a0[_0x303fc8(_0x271870._0x2109ce,_0x271870._0x143846,0x41e,0x302)]]);function _0x130153(_0x248212,_0x423337,_0x333ec7,_0xaabbba){return _0x36ee89(_0x333ec7,_0xaabbba-_0x5212c9._0x53bbd7,_0x333ec7-0x7c,_0xaabbba-_0x5212c9._0x15a54b);}_0x189f3e(()=>{let _0x2b11ae=!0x1;return((async()=>{const _0x198338={_0x535eea:0xe7},_0x5643d9={_0x4877b1:0x3de};function _0x1bdd16(_0x2f5626,_0x42a6c8,_0x2fb65a,_0xa8d069){return _0x2644(_0xa8d069-_0x5643d9._0x4877b1,_0x2fb65a);}function _0x421bed(_0x673f6f,_0x1f287f,_0x5bae42,_0x13cf38){return _0x2644(_0x1f287f- -_0x198338._0x535eea,_0x673f6f);}try{let _0x4dba1f=_0x1348a0[_0x421bed(0xb7,_0xe29f56._0x1249b1,_0xe29f56._0x4c9b08,0x1c2)]?.[_0x1bdd16(_0xe29f56._0x346dab,0x6f8,_0xe29f56._0x6a99f6,_0xe29f56._0x3d7263)]?.();if(_0x4dba1f?.['listRegisteredTools']){let _0x104439=await _0x4dba1f[_0x421bed(0x393,_0xe29f56._0x57f1b3,0x40b,0x33c)]();!_0x2b11ae&&Array[_0x1bdd16(_0xe29f56._0x256823,_0xe29f56._0x3c65f1,0x63b,_0xe29f56._0x484948)](_0x104439)&&_0x20ddd9(_0x104439);}}catch(_0x1cec65){console[_0x1bdd16(0x764,0x805,_0xe29f56._0x3b7e88,_0xe29f56._0x5ad4ce)](_0x1bdd16(0x6a9,0x82c,0x77f,_0xe29f56._0x112150),_0x1cec65 instanceof Error?_0x1cec65[_0x1bdd16(_0xe29f56._0x1ee4c9,_0xe29f56._0x2d6d11,_0xe29f56._0x156514,0x6d4)]:String(_0x1cec65));}})()),()=>{_0x2b11ae=!0x0;};},[_0x1348a0[_0x130153(_0x271870._0xd78299,0x2a2,_0x271870._0x713028,_0x271870._0x10d81f)]]),_0x189f3e(()=>{_0x191e18();},[_0x191e18]);let _0x2b4679=_0x5f143d(async(_0x226a6e,_0x42b1f7)=>{const _0x593005={_0x4221a8:0x471};function _0x1ce565(_0x1a6029,_0x2032e0,_0x13132a,_0x2be471){return _0x303fc8(_0x13132a,_0x2032e0-_0x380bf9._0x7db8d6,_0x13132a-_0x380bf9._0x308068,_0x2be471- -_0x380bf9._0x33cde3);}function _0x46e9aa(_0x1f3d99,_0x3ab68c,_0x8b6a12,_0x3ebc39){return _0x303fc8(_0x1f3d99,_0x3ab68c-0xb9,_0x8b6a12-0x110,_0x3ebc39- -_0x593005._0x4221a8);}try{let _0x55ce9a={..._0x1348a0[_0x46e9aa(-0x17b,-0x16d,-_0x15d42b._0x46f49d,-_0x15d42b._0x405945)][_0x1ce565(0x259,0x1dd,0x16a,0x215)](_0x46e9aa(-0x22,-_0x15d42b._0x49b7df,-_0x15d42b._0x32fcf7,-0xa9))||{},[_0x226a6e]:_0x42b1f7};await _0x1348a0[_0x46e9aa(-0xb6,-0x112,-0x190,-0xfe)][_0x46e9aa(-0x206,-_0x15d42b._0x2e7b51,-0x1d0,-0x156)](_0x1ce565(_0x15d42b._0x5be510,_0x15d42b._0x480358,0x285,0x15c),_0x55ce9a,_0x1ce565(0x1dc,_0x15d42b._0x1dd0a3,0xea,_0x15d42b._0x42ff48)),_0x2f34cc(_0x55ce9a);let _0x4bb673=_0x1348a0['orchestrator']?.[_0x46e9aa(-_0x15d42b._0x933b5e,-0x53,-0xf7,-0x151)]?.();_0x4bb673?.[_0x1ce565(0x48,0x156,_0x15d42b._0x1aa945,0x10c)]&&_0x4bb673[_0x1ce565(0xf1,0x26,_0x15d42b._0x13c5c2,_0x15d42b._0x306c07)](_0x55ce9a);}catch(_0x174128){console['error'](_0x1ce565(0x3e,-_0x15d42b._0x3ae740,0x63,0xfb),_0x174128);}},[_0x1348a0[_0x303fc8(0x45f,_0x271870._0x50ce96,_0x271870._0x3df89a,_0x271870._0x1653de)],_0x1348a0['orchestrator']]),_0x549153=_0x5f143d(async _0x47ba4d=>{const _0x49781d={_0x56bb31:0x156,_0x5a4006:0x202};function _0x1dd155(_0x4b900b,_0x101084,_0x204b9d,_0x4b5c5e){return _0x130153(_0x4b900b-_0x49781d._0x56bb31,_0x101084-0x43,_0x4b900b,_0x4b5c5e- -_0x49781d._0x5a4006);}function _0x3db638(_0x406ff3,_0x526df4,_0x3082a9,_0x40032c){return _0x130153(_0x406ff3-_0x376d1e._0x3debe3,_0x526df4-0x2e,_0x3082a9,_0x526df4- -_0x376d1e._0x5c87db);}try{let _0x314a32={..._0x47ba4d};await _0x1348a0['config'][_0x3db638(_0x527ecd._0x30d8c7,0xea,_0x527ecd._0x3231d5,_0x527ecd._0x5bd773)](_0x1dd155(-0x98,-_0x527ecd._0x34c46b,0x15a,_0x527ecd._0x2989be),_0x314a32,_0x3db638(0xd9,0x14a,0x128,_0x527ecd._0xef0162)),_0x2f34cc(_0x314a32);let _0x3293e0=_0x1348a0[_0x3db638(0xd3,0xd1,_0x527ecd._0x2b312a,0x19f)]?.[_0x3db638(0x105,_0x527ecd._0x43de84,0xa4,_0x527ecd._0x5d0371)]?.();_0x3293e0?.[_0x1dd155(-_0x527ecd._0x1028b7,-_0x527ecd._0x14fee2,_0x527ecd._0x5d15a0,-_0x527ecd._0x46b4e8)]&&_0x3293e0[_0x1dd155(_0x527ecd._0x4fed97,_0x527ecd._0x48fe01,_0x527ecd._0x9e8b95,-0x13)](_0x314a32);}catch(_0x3df977){console[_0x1dd155(_0x527ecd._0x2df110,_0x527ecd._0x565809,-_0x527ecd._0x76534d,0x3)](_0x3db638(0x1a6,_0x527ecd._0x5ecc34,_0x527ecd._0x9d4413,0x1ca),_0x3df977);}},[_0x1348a0[_0x130153(_0x271870._0x3a139c,0x1a5,_0x271870._0x460ad8,_0x271870._0x41c54e)],_0x1348a0['orchestrator']]),_0x52d0ec=_0x5f143d(()=>{_0xd41f87(null),_0x258777(!0x0),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0x2e47a7(!0x1);},[]),_0x17a2cc=_0x5f143d(_0x3c6483=>{const _0x1866db={_0x56c751:0xc0};function _0x213805(_0x4622ff,_0x543456,_0x1e9db0,_0x49d3b6){return _0x303fc8(_0x1e9db0,_0x543456-_0x426835._0x319ea5,_0x1e9db0-0x1eb,_0x49d3b6- -_0x426835._0x2d08d5);}let _0x1b56f7=_0x1348a0['orchestrator']?.[_0x213805(0x26e,_0x474c02._0x316ce3,_0x474c02._0x43bf8b,0x1c0)]?.()?.[_0x213805(0x195,_0x474c02._0xaad709,_0x474c02._0x469d72,_0x474c02._0x703aa)]?.();if(!_0x1b56f7){_0x38dc73(_0x213805(0x439,0x29e,0x2e0,0x39d));return;}function _0x5c866d(_0x3a96d3,_0x3e2161,_0x293e8c,_0x2dc2e5){return _0x130153(_0x3a96d3-0x12e,_0x3e2161-_0x1866db._0x56c751,_0x2dc2e5,_0x3a96d3-0x282);}let _0x32691b=_0x1b56f7['get'](_0x3c6483);if(!_0x32691b){_0x191e18();return;}let _0x5b7697=_0x3eff49['findIndex'](_0x4c89c5=>_0x4c89c5['id']===_0x3c6483);_0x347f56(_0x3c6483,'agent-config',_0x5b7697),_0xd41f87(_0x3c6483),_0x258777(!0x0),_0x5ec6d2(void 0x0),_0x1f229c(_0x32691b),_0x2e47a7(!0x1);},[_0x1348a0[_0x303fc8(0x40d,0x303,_0x271870._0x26dd1c,0x302)],_0x191e18,_0x3eff49,_0x347f56]),_0x102c2b=_0x5f143d(async _0x6d669=>{function _0xb31289(_0x3fc51c,_0x253c13,_0x5188c3,_0x54b62c){return _0x303fc8(_0x253c13,_0x253c13-0xfc,_0x5188c3-0x52,_0x3fc51c- -0x111);}function _0x4f1b1a(_0x41d0c2,_0x4e23e6,_0x1a17bf,_0x250372){return _0x130153(_0x41d0c2-0x1ad,_0x4e23e6-_0x2f7c95._0x5eb523,_0x1a17bf,_0x41d0c2-_0x2f7c95._0x331745);}try{let _0x4d86ee=_0x1348a0[_0x4f1b1a(0x44f,0x4d5,_0x487bad._0x1470df,_0x487bad._0x4f5508)]?.[_0x4f1b1a(0x46d,_0x487bad._0x4c5743,0x3a5,0x4fa)]?.(),_0x27b823=_0x4d86ee?.[_0xb31289(0x2e1,_0x487bad._0x473dda,0x2d5,0x278)]?.();if(!_0x27b823){_0x38dc73('Agent\x20registry\x20not\x20available');return;}if(_0x27b823[_0x4f1b1a(0x605,_0x487bad._0x1b2ca2,_0x487bad._0x131af2,_0x487bad._0x2a700e)](_0x6d669)){_0x38dc73('Cannot\x20delete\x20default\x20agents');return;}_0x27b823['unregister'](_0x6d669),await _0x27b823[_0x4f1b1a(_0x487bad._0x154007,_0x487bad._0x35b369,_0x487bad._0x40a376,_0x487bad._0x5b19da)](_0x6d669),await _0x1348a0[_0x4f1b1a(_0x487bad._0x1b654b,_0x487bad._0x23dddd,0x5b7,0x44e)][_0xb31289(0x23f,0x278,_0x487bad._0x5b0cae,0x372)](_0x4f1b1a(_0x487bad._0x2f0582,_0x487bad._0x28edc6,0x530,_0x487bad._0x235429)+_0x6d669,'global');let _0x52ec15=_0x1348a0[_0x4f1b1a(0x4c0,_0x487bad._0x4b8a8a,0x41c,0x5c3)][_0xb31289(_0x487bad._0x3dafa3,_0x487bad._0x2c9ff1,0x36a,0x401)]('agentsEnabled')||{};_0x2f34cc(_0x52ec15);let _0x488350=_0x4d86ee;_0x488350?.[_0x4f1b1a(_0x487bad._0x1a3532,0x518,_0x487bad._0xd3b258,_0x487bad._0x4a7797)]&&_0x488350[_0xb31289(_0x487bad._0x3c6539,0x19e,0x2b8,_0x487bad._0x5db4b9)](_0x52ec15),await _0x191e18();}catch(_0x1e4645){_0x38dc73(_0xb31289(_0x487bad._0x17b81b,0x337,_0x487bad._0x3324bb,0x21b)+(_0x1e4645 instanceof Error?_0x1e4645['message']:String(_0x1e4645)));}},[_0x1348a0[_0x303fc8(_0x271870._0x13aec4,0x3c8,0x46f,_0x271870._0x1653de)],_0x1348a0[_0x303fc8(0x35a,0x344,0x2d6,0x302)],_0x191e18]),_0x1be64c=async _0x55da6c=>{function _0x24b337(_0x315d82,_0x5b47f2,_0x2244aa,_0x4045a2){return _0x303fc8(_0x5b47f2,_0x5b47f2-0x1d7,_0x2244aa-0x6b,_0x2244aa- -0xe3);}function _0x294e6b(_0x2371ad,_0x13eab8,_0x38780e,_0xa96e){return _0x130153(_0x2371ad-0x37,_0x13eab8-0x176,_0xa96e,_0x13eab8- -_0x3c3d94._0x539247);}try{_0x2e47a7(!0x0),_0x5ec6d2(void 0x0),_0xd41f87(null);let _0x55f0d4=_0x1348a0[_0x24b337(_0x2c4e96._0x63ac3f,0x2e8,0x21f,_0x2c4e96._0x39b49d)]?.['getLLM']?.(),_0x1610c7=_0x1348a0['orchestrator']?.['getConfig']?.()?.['model']||_0x24b337(0x460,_0x2c4e96._0x17397a,_0x2c4e96._0x114486,_0x2c4e96._0x1bdafd);if(!_0x55f0d4){_0x5ec6d2(_0x24b337(_0x2c4e96._0x18c098,_0x2c4e96._0x557b1f,_0x2c4e96._0xe0ba15,_0x2c4e96._0x291af6)),_0x2e47a7(!0x1);return;}let _0x432ff9=await new _t(_0x55f0d4)[_0x294e6b(0x11d,_0x2c4e96._0x5a9666,_0x2c4e96._0x2ea02f,_0x2c4e96._0x22fc38)](_0x55da6c,_0x1610c7);if(!_0x432ff9[_0x24b337(_0x2c4e96._0x461c7b,_0x2c4e96._0x9ef07d,_0x2c4e96._0xcc3af5,0x2b8)]||!_0x432ff9[_0x294e6b(0xff,_0x2c4e96._0xf538a6,0x14a,0x21d)]){_0x5ec6d2(_0x432ff9[_0x294e6b(0x61,_0x2c4e96._0x2b766f,_0x2c4e96._0x3692c2,_0x2c4e96._0x1fdb2e)]||_0x294e6b(0x1d5,_0x2c4e96._0xf65b1e,_0x2c4e96._0x1e860b,_0x2c4e96._0x33a468)),_0x2e47a7(!0x1);return;}_0x1f229c(_0x432ff9[_0x294e6b(_0x2c4e96._0x4e0c4e,_0x2c4e96._0x302d8b,0x2a0,_0x2c4e96._0x52b694)]),_0x2e47a7(!0x1);}catch(_0x34c361){_0x5ec6d2('Error\x20creating\x20agent:\x20'+(_0x34c361 instanceof Error?_0x34c361[_0x24b337(0x274,0x369,0x2f5,_0x2c4e96._0x2d7476)]:String(_0x34c361))),_0x2e47a7(!0x1);}},_0x1056b4=()=>{const _0x35728f={_0x1b210d:0x4bb};function _0x92e90f(_0x3a8137,_0x30242e,_0x4f447f,_0x144b5b){return _0x303fc8(_0x4f447f,_0x30242e-0x5,_0x4f447f-0x11a,_0x3a8137- -_0x35728f._0x1b210d);}function _0x1c3ff2(_0xea319c,_0x49e4d4,_0x55c6bc,_0xff334c){return _0x130153(_0xea319c-0x15b,_0x49e4d4-_0x32ab6d._0x1a9c70,_0xea319c,_0x49e4d4- -_0x32ab6d._0x173870);}_0x3dfaa0[_0x1c3ff2(0x1ca,_0x585cd5._0x1e1bfd,0x273,0x399)]===_0x92e90f(-0x1f9,-_0x585cd5._0x2409a9,-_0x585cd5._0x14adf5,-0x2e2)?(_0x50e3c8(),_0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0x2e47a7(!0x1),_0xd41f87(null)):(_0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0x2e47a7(!0x1),_0xd41f87(null),_0x384e30());},_0xf21195=()=>{_0x5ec6d2(void 0x0);},_0x260a2f=_0x3a689d=>{_0x1f229c(_0x3a689d),_0x5ec6d2(void 0x0);},_0x3ac6a9=_0x5f143d(async _0x24c950=>{const _0x476f48={_0x5eea59:0x194,_0x280fbf:0xd0};let _0x321026=_0x24c950??_0x4d2c69;function _0x2d68a4(_0x3783f5,_0x442df9,_0x1b6da0,_0x1aa738){return _0x303fc8(_0x1aa738,_0x442df9-_0x2d91ff._0xdf9a06,_0x1b6da0-0x1de,_0x1b6da0- -0x275);}function _0x3ce327(_0x4171b6,_0x3ca7f1,_0x31789b,_0xb8efbc){return _0x130153(_0x4171b6-0x1da,_0x3ca7f1-_0x476f48._0x5eea59,_0x31789b,_0x3ca7f1-_0x476f48._0x280fbf);}if(_0x321026){_0x2e47a7(!0x0);try{let _0x560b6f=_0x1348a0[_0x2d68a4(-0x55,_0x6dc851._0xf72dcd,_0x6dc851._0x19e9eb,_0x6dc851._0x829402)]?.[_0x2d68a4(-0x36,_0x6dc851._0x370445,0xab,_0x6dc851._0xedc9f3)]?.(),_0x2a494f=_0x560b6f?.[_0x3ce327(0x266,_0x6dc851._0x26014e,0x263,_0x6dc851._0x3e1423)]?.();if(!_0x2a494f){_0x38dc73('Agent\x20registry\x20not\x20available');return;}if(_0x499216){if(_0x2a494f['isDefault'](_0x499216)){_0x5ec6d2(_0x3ce327(0x3c1,_0x6dc851._0x443c89,0x541,0x449));return;}let _0x166ef0=_0x2a494f['get'](_0x499216);if(!_0x166ef0){_0x5ec6d2(_0x2d68a4(_0x6dc851._0x3d1a6a,_0x6dc851._0x2fccbb,0x1d1,_0x6dc851._0x41b87e));return;}let _0x57c768=_0x2a494f[_0x2d68a4(_0x6dc851._0x2d2111,0x125,_0x6dc851._0x141e75,_0x6dc851._0x58a00d)](_0x321026),_0x3fa2ee=_0x57c768['id'],_0x1987e2=_0x3fa2ee!==_0x499216;if(_0x1987e2&&_0x2a494f[_0x2d68a4(-0x6f,0x2,_0x6dc851._0x2e36a7,_0x6dc851._0x149e2f)](_0x3fa2ee)){_0x5ec6d2(_0x2d68a4(0x1e0,_0x6dc851._0x467233,0x284,_0x6dc851._0x54880a)+_0x3fa2ee+_0x3ce327(0x32d,0x2eb,0x1f4,0x423));return;}let _0x5ded85=_0x1348a0[_0x2d68a4(0xce,0xa1,_0x6dc851._0x34763a,_0x6dc851._0x5c684f)][_0x2d68a4(0x16f,_0x6dc851._0x2c210c,0x20c,0x1a9)](_0x3ce327(_0x6dc851._0x2246ae,_0x6dc851._0x418653,_0x6dc851._0x3a7047,0x3bd))||{},_0x251fec=_0x5ded85[_0x499216]??!0x0,_0x14a26f={..._0x5ded85},_0x38d91c=!0x1,_0x493bd7=!0x1,_0x3c3c86=!0x1;try{_0x1987e2&&_0x2a494f[_0x3ce327(0x43a,_0x6dc851._0x1891ba,0x4ae,_0x6dc851._0x270664)](_0x499216),_0x2a494f[_0x3ce327(_0x6dc851._0x216f18,0x218,_0x6dc851._0xee8d2a,_0x6dc851._0x5542e4)](_0x57c768),_0x38d91c=!0x0,await _0x2a494f[_0x3ce327(0x3c9,_0x6dc851._0x3b56d1,0x3c1,0x4e0)](_0x57c768),_0x493bd7=!0x0,_0x1987e2&&(await _0x2a494f[_0x3ce327(0x355,_0x6dc851._0x8b330f,_0x6dc851._0x5b5e7b,0x3c3)](_0x499216),_0x3c3c86=!0x0),_0x1987e2&&delete _0x14a26f[_0x499216],_0x14a26f[_0x3fa2ee]=_0x251fec??!0x0,await _0x1348a0[_0x3ce327(_0x6dc851._0x59342f,0x2ba,_0x6dc851._0x23005d,_0x6dc851._0x28785a)]['set'](_0x2d68a4(0x270,_0x6dc851._0x2834cc,_0x6dc851._0x486780,_0x6dc851._0x5786f5),_0x14a26f,_0x2d68a4(_0x6dc851._0x3a3b80,0x46,0x106,0x58)),_0x2f34cc(_0x14a26f);let _0x10e10c=_0x560b6f;if(_0x10e10c?.[_0x2d68a4(_0x6dc851._0x3efa5d,0x14d,0x103,-_0x6dc851._0x2037ce)]&&_0x10e10c['setEnabledAgents'](_0x14a26f),await _0x191e18(),_0x3dfaa0[_0x3ce327(0x480,_0x6dc851._0x4e1ea4,_0x6dc851._0xbc7bad,0x430)]===_0x2d68a4(_0x6dc851._0x215fd8,_0x6dc851._0xd72c15,_0x6dc851._0x10fb28,-0x71)){let _0x555f06=_0x1348a0[_0x2d68a4(_0x6dc851._0x286414,-_0x6dc851._0x5b6055,_0x6dc851._0x2235fb,-_0x6dc851._0x53126a)]?.[_0x3ce327(_0x6dc851._0x55225b,_0x6dc851._0x5351fa,_0x6dc851._0x53f6aa,0x172)]?.()?.[_0x2d68a4(0x7d,_0x6dc851._0x12317c,_0x6dc851._0x396722,0x8f)]?.();if(_0x555f06){let _0x3d22e6=_0x555f06[_0x3ce327(0x25c,_0x6dc851._0x2af317,0x2c5,_0x6dc851._0xf298c7)]()[_0x3ce327(0x421,_0x6dc851._0x778535,0x349,_0x6dc851._0x7f203f)](_0x273621=>({..._0x273621,'isDefault':_0x555f06['isDefault'](_0x273621['id'])}))[_0x3ce327(_0x6dc851._0x38607e,0x206,0x1bb,_0x6dc851._0x24e50e)](_0x2f3d7b=>_0x2f3d7b['id']===_0x3fa2ee),_0x56ecba=_0x3d22e6>=0x0?_0x3d22e6:_0x3dfaa0[_0x3ce327(0x1cd,_0x6dc851._0x141e75,_0x6dc851._0x68ef27,_0x6dc851._0x13dd7c)]?.['selectedAgentIndex']??0x0;_0x2b6280({'activeView':'config','navigationSource':null,'preservedState':{'selectedAgentId':_0x3fa2ee,'selectedAgentIndex':_0x56ecba}});}else _0x50e3c8();_0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0xd41f87(null);}else _0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0xd41f87(null),_0x384e30();}catch(_0x29aaaa){if(_0x38d91c&&_0x2a494f['unregister'](_0x57c768['id']),_0x2a494f[_0x2d68a4(_0x6dc851._0xbdf212,0x191,0x78,-_0x6dc851._0x479425)](_0x499216)||_0x2a494f[_0x2d68a4(-_0x6dc851._0x47d725,-_0x6dc851._0x511e68,0x5c,_0x6dc851._0x2b39ab)](_0x166ef0),_0x493bd7&&_0x1987e2)try{await _0x2a494f[_0x2d68a4(_0x6dc851._0x3cb94c,0x208,_0x6dc851._0x4a2a6e,_0x6dc851._0x1fd4b4)](_0x57c768['id']);}catch(_0x5631a8){console[_0x3ce327(0x347,0x2d5,0x3c2,0x1a5)](_0x3ce327(_0x6dc851._0x364b32,0x410,_0x6dc851._0x40b96b,0x33a),_0x5631a8 instanceof Error?_0x5631a8['message']:String(_0x5631a8));}if(_0x1987e2&&_0x3c3c86)try{await _0x2a494f[_0x3ce327(0x47f,_0x6dc851._0x3b56d1,0x308,0x3f2)](_0x166ef0);}catch(_0x4debe8){console[_0x3ce327(0x40a,0x2d5,0x38f,0x301)](_0x2d68a4(_0x6dc851._0x4a5fa5,0x19c,0x22a,0x18b),_0x4debe8 instanceof Error?_0x4debe8['message']:String(_0x4debe8));}throw _0x29aaaa;}}else{let _0x1509b0=_0x2a494f[_0x2d68a4(_0x6dc851._0x23005d,0x1f2,_0x6dc851._0x141e75,_0x6dc851._0x4a2551)](_0x321026);_0x2a494f[_0x3ce327(_0x6dc851._0x1669f6,0x218,_0x6dc851._0x467ce5,0x333)](_0x1509b0),await _0x2a494f[_0x3ce327(0x544,0x416,_0x6dc851._0x2444b8,0x44e)](_0x1509b0);let _0x37889a={..._0x1348a0[_0x2d68a4(-_0x6dc851._0xdc4b66,-_0x6dc851._0x307b1d,0xfe,_0x6dc851._0x35260e)][_0x3ce327(_0x6dc851._0x136e1e,0x3c8,_0x6dc851._0x34a3ed,_0x6dc851._0x30caf0)]('agentsEnabled')||{},[_0x1509b0['id']]:!0x0};await _0x1348a0['config']['set'](_0x3ce327(0x342,_0x6dc851._0x418653,_0x6dc851._0x270664,0x3b4),_0x37889a,_0x2d68a4(_0x6dc851._0x53ca61,_0x6dc851._0x535668,_0x6dc851._0x3ffab0,_0x6dc851._0xc833a0)),_0x2f34cc(_0x37889a);let _0x699c=_0x560b6f;_0x699c?.[_0x2d68a4(0x17,_0x6dc851._0x2fd9f2,0x103,_0x6dc851._0x3f5c45)]&&_0x699c[_0x2d68a4(0xfa,0x8a,_0x6dc851._0x1b94b7,_0x6dc851._0x155299)](_0x37889a);let _0x318dcb=_0x2a494f[_0x3ce327(0x3ba,_0x6dc851._0x55f3d4,0x25f,0x2d5)]()[_0x2d68a4(0x283,0x237,0x2a2,_0x6dc851._0x4c508c)](_0x25e887=>({..._0x25e887,'isDefault':_0x2a494f[_0x2d68a4(0x312,0x282,0x243,0x333)](_0x25e887['id'])}));if(_0x10b75d(_0x318dcb),_0x3dfaa0[_0x2d68a4(0x203,0x1d6,0x228,0x285)]===_0x2d68a4(-_0x6dc851._0x2ca211,-_0x6dc851._0x42819c,_0x6dc851._0x13b050,0x151)){let _0x278942=_0x318dcb[_0x3ce327(_0x6dc851._0x3f6477,_0x6dc851._0x3878c0,_0x6dc851._0x31cabd,_0x6dc851._0x5db8f0)](_0x33957c=>_0x33957c['id']===_0x1509b0['id']),_0xd8b24d=_0x278942>=0x0?_0x278942:0x0;_0x2b6280({'activeView':_0x3ce327(0x2bd,0x2ba,_0x6dc851._0xae1a6,0x377),'navigationSource':null,'preservedState':{'selectedAgentId':_0x1509b0['id'],'selectedAgentIndex':_0xd8b24d}}),_0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0);}else _0x258777(!0x1),_0x5ec6d2(void 0x0),_0x1f229c(void 0x0),_0x384e30();}}catch(_0x567168){_0x5ec6d2(_0x3ce327(0x1cc,0x20a,_0x6dc851._0x7f112f,_0x6dc851._0x203fcd)+(_0x567168 instanceof Error?_0x567168[_0x2d68a4(_0x6dc851._0x161b70,0x171,0x163,0x10f)]:String(_0x567168)));}finally{_0x2e47a7(!0x1);}}},[_0x1348a0[_0x130153(_0x271870._0x40f490,_0x271870._0x535b49,_0x271870._0x36ec1d,_0x271870._0x1afd5b)],_0x1348a0['orchestrator'],_0x4d2c69,_0x499216,_0x191e18,_0x3dfaa0[_0x130153(0x43b,0x2bd,_0x271870._0x523b50,0x314)],_0x50e3c8,_0x384e30,_0x3dfaa0[_0x130153(0x139,_0x271870._0x338aa5,_0x271870._0x436a95,_0x271870._0xb6c7aa)]?.[_0x130153(_0x271870._0x1adc6e,_0x271870._0x45f143,0x3d5,0x376)]]);if(_0x4add54)return _0x521c5a(jr,{'visible':!0x0,'mode':_0x499216?_0x130153(_0x271870._0x2e575d,_0x271870._0x3bc198,0x497,_0x271870._0x1b7ce5):_0x130153(0x2b0,_0x271870._0x3ba70e,0x1b7,_0x271870._0x306904),'onGenerate':_0x1be64c,'onCancel':_0x1056b4,'onConfirm':_0x3ac6a9,'onEditPreview':_0xf21195,'onUpdatePreview':_0x260a2f,'availableTools':_0x3526a3,'loading':_0x12461e,'error':_0x518868,'preview':_0x4d2c69,'navigationSource':_0x3dfaa0['navigationSource']||'direct'});if(_0xd9e1f)return _0x521c5a(_0xd2ac0a,{'visible':!0x0,'title':'Agent\x20Configuration','titleColor':_0x43be42[_0x130153(_0x271870._0x219283,_0x271870._0x37e150,_0x271870._0x51b264,0x16d)][_0x303fc8(0x4df,0x437,0x488,_0x271870._0x281745)],'type':'default','onClose':_0x384e30,'closeOnEscape':!0x0,'children':_0x521c5a(_0x5ca57b,{'color':_0x43be42[_0x130153(_0x271870._0x518f34,0x218,0x27b,_0x271870._0x31fbaf)][_0x303fc8(0x3dd,0x25f,_0x271870._0x148b23,_0x271870._0x18f576)],'children':_0x303fc8(0x339,_0x271870._0x2f6577,0x428,0x3f4)})});if(_0x1b60ca)return _0x521c5a(_0xd2ac0a,{'visible':!0x0,'title':_0x303fc8(_0x271870._0x1e5b64,0x43e,0x379,0x43f),'titleColor':_0x43be42['colors'][_0x303fc8(_0x271870._0x281d0e,0x2a8,_0x271870._0x55570c,_0x271870._0x5ca489)],'type':_0x130153(_0x271870._0x5261de,0x116,_0x271870._0x171c6e,_0x271870._0x21ce41),'onClose':_0x384e30,'closeOnEscape':!0x0,'children':_0x521c5a(_0x5ca57b,{'color':_0x43be42[_0x303fc8(_0x271870._0x4cd160,0x3b0,_0x271870._0x206194,_0x271870._0x4d96a8)][_0x303fc8(0x47b,0x44f,0x469,_0x271870._0x5ca489)],'children':_0x1b60ca})});let _0x378bec=_0x3dfaa0['activeView']==='config',_0x4887ce=_0x3dfaa0[_0x303fc8(0x330,0x1ff,_0x271870._0x11ff89,_0x271870._0x5db896)]?.['selectedAgentIndex']!==void 0x0?Math[_0x130153(0x23c,0x281,0x7e,_0x271870._0x53ccb7)](_0x3dfaa0[_0x130153(_0x271870._0x1af450,_0x271870._0x57c466,0x12a,_0x271870._0xb6c7aa)][_0x130153(_0x271870._0x367a6b,0x46a,_0x271870._0x3ba70e,0x376)],Math[_0x303fc8(_0x271870._0x33ab28,0x424,0x3db,_0x271870._0x43ea9b)](0x0,_0x3eff49[_0x303fc8(_0x271870._0x529e66,_0x271870._0x10815e,0x42a,0x328)]-0x1)):void 0x0;return _0x521c5a(Or,{'visible':_0x378bec,'agents':_0x3eff49,'enabledAgents':_0x32ff28,'initialSelectedIndex':_0x4887ce,'onClose':_0x384e30,'onAgentStatusChange':_0x2b4679,'onAgentBatchStatusChange':_0x549153,'onAgentCreate':_0x52d0ec,'onAgentDelete':_0x102c2b,'onAgentEdit':_0x17a2cc});};function Wr(_0x35f6bb){const _0x496557={_0x3bd6fd:0xac,_0x1a6ef2:0x3ca,_0x523382:0x49a,_0x7a941:0x39c,_0x472d31:0x1f3},_0x2eb8cb={_0x21b665:0x1a9,_0x1b95cd:0x348},_0xd61ce9={_0x2dda95:0x106,_0x415022:0x140,_0x405a70:0x194};function _0x30e544(_0x385327,_0x2f0311,_0x25e751,_0x9fe76a){return _0x479f18(_0x385327-_0xd61ce9._0x2dda95,_0x2f0311-_0xd61ce9._0x415022,_0x9fe76a-_0xd61ce9._0x405a70,_0x2f0311);}function _0x12a58d(_0xb98c31,_0x47d734,_0x48049b,_0xb1571d){return _0x479f18(_0xb98c31-_0x2eb8cb._0x21b665,_0x47d734-0x77,_0x47d734-_0x2eb8cb._0x1b95cd,_0xb1571d);}_0x35f6bb[_0x30e544(0x72,0x223,_0x496557._0x3bd6fd,0x151)]({'id':'/agent','type':_0x30e544(0x423,_0x496557._0x1a6ef2,_0x496557._0x523382,_0x496557._0x7a941),'description':'Configure\x20and\x20manage\x20specialist\x20agents.','category':_0x30e544(0x1bf,0x11d,0x180,_0x496557._0x472d31),'component':mi});}import _0x43928 from'ansi-escapes';function Xr(_0x1fdce6){const _0xcb49c7={_0x326a0d:0x501,_0x2e93ef:0x67e,_0x5d863d:0x637,_0x5a84c5:0x4c3,_0x2b9c27:0x5ce,_0x219f8d:0x7d5,_0x33f976:0x7da},_0x3def59={_0x533213:0x52c,_0x358402:0x714,_0x7f91:0x68c,_0x50204c:0x3fd,_0x3bc7b4:0x268,_0x4b774c:0x773,_0x4427ae:0x768,_0x57d1af:0x5bd,_0x4ae5a4:0x68b,_0x5bcfaf:0x5e2,_0x2dbbac:0x6c7,_0x5b0bfb:0x670,_0x56f4eb:0x6a5,_0x5ce668:0x6ca,_0x5a5ff8:0x61f,_0x1ae539:0x704,_0x3704ba:0x5cc,_0x342ea0:0x7dd,_0x133c71:0x6bc,_0x20c056:0x5e9,_0x1c9fc8:0x716,_0xc9a627:0x691,_0x219076:0x887,_0x79d885:0x7fe},_0x5170a6={_0x2ff267:0x1ef},_0x51d02b={_0x5563b0:0x72};function _0x27a371(_0x2c3751,_0x248fc9,_0x1fa92e,_0x4fbcbb){return _0x36ee89(_0x248fc9,_0x4fbcbb-0x70f,_0x1fa92e-_0x51d02b._0x5563b0,_0x4fbcbb-0xf4);}function _0x51982b(_0x538f91,_0x178af5,_0x4e04c6,_0x3abfb8){return _0x479f18(_0x538f91-_0x5170a6._0x2ff267,_0x178af5-0x162,_0x538f91-0x5c4,_0x3abfb8);}_0x1fdce6[_0x51982b(0x581,_0xcb49c7._0x326a0d,_0xcb49c7._0x2e93ef,0x573)]({'id':'/clear','type':_0x51982b(0x593,_0xcb49c7._0x5d863d,_0xcb49c7._0x5a84c5,_0xcb49c7._0x2b9c27),'description':_0x27a371(0x7a3,_0xcb49c7._0x5d863d,_0xcb49c7._0x219f8d,0x71e),'category':_0x27a371(0x7a4,0x618,_0xcb49c7._0x33f976,0x731),async 'handler'({eventBus:_0x4e73d6,memory:_0x48298a}){const _0x3f0e91={_0x505ba3:0x29,_0x2d765a:0x5b};_0x48298a&&await _0x48298a[_0x5c6eba(_0x3def59._0x533213,_0x3def59._0x358402,0x629,_0x3def59._0x7f91)](_0x5142b4(0x4da,_0x3def59._0x50204c,0x454,0x4d2)),_0x4e73d6[_0x5142b4(0x424,0x2c7,0x340,_0x3def59._0x3bc7b4)](_0x5c6eba(_0x3def59._0x4b774c,0x8a2,0x7b8,0x689)),_0x4e73d6[_0x5c6eba(0x771,0x6c7,0x67f,0x678)](_0x5c6eba(_0x3def59._0x4427ae,_0x3def59._0x57d1af,_0x3def59._0x4ae5a4,_0x3def59._0x5bcfaf),null);function _0x5c6eba(_0x93b771,_0x2eb9ed,_0x520c1e,_0x571c7b){return _0x51982b(_0x520c1e-_0x3f0e91._0x505ba3,_0x2eb9ed-_0x3f0e91._0x2d765a,_0x520c1e-0x18b,_0x93b771);}function _0x5142b4(_0x386266,_0x452189,_0x250708,_0x34ab0a){return _0x27a371(_0x386266-0x16d,_0x386266,_0x250708-0x19,_0x250708- -0x2cb);}try{console['log'](_0x43928[_0x5c6eba(_0x3def59._0x2dbbac,_0x3def59._0x5b0bfb,0x756,_0x3def59._0x56f4eb)]),console[_0x5c6eba(_0x3def59._0x5ce668,0x6ef,_0x3def59._0x5a5ff8,0x4ff)](_0x43928[_0x5c6eba(_0x3def59._0x1ae539,_0x3def59._0x3704ba,0x6e9,0x6fe)](0x0,0x0));}catch{}_0x4e73d6[_0x5142b4(0x446,0x385,0x340,0x427)](_0x5c6eba(0x66b,_0x3def59._0x342ea0,0x70b,_0x3def59._0x133c71)),_0x4e73d6[_0x5c6eba(_0x3def59._0x20c056,_0x3def59._0x1c9fc8,0x67f,_0x3def59._0xc9a627)](_0x5c6eba(_0x3def59._0x219076,_0x3def59._0x79d885,0x77c,0x871));}});}function Zr(_0x17a503){const _0x5aebd8={_0x51c0a9:0x1e,_0x549037:0x1ec,_0x5077b0:0x22a,_0x2cb7a4:0x21f,_0x1002f4:0x226,_0x4e1f2d:0x136,_0x51349d:0x6d,_0x35050c:0x140,_0x2b9173:0xc,_0x4e3790:0x7f},_0x5cb2c5={_0x41f53b:0x206,_0x8cec3a:0x188,_0x1cf2a7:0x215,_0x1eed8c:0x131,_0x2340dd:0x74,_0xa1fc85:0x5c4,_0x2da725:0x5f7,_0x28fee1:0x26,_0x448ea0:0x4f3,_0x10ffc7:0x626,_0x146623:0x735,_0xd4818a:0x652,_0x249c95:0x269,_0x483d62:0x46d,_0x2ed292:0x34e,_0x576294:0x5d6,_0xb4e90f:0x73b},_0x17a21a={_0x1f97cf:0x1f4,_0x10bcc8:0x25},_0x5f0938={_0x276a1f:0x35f,_0x395413:0x16b};function _0x262a97(_0x37a88f,_0x3b2a8d,_0x318ab2,_0x450fd5){return _0x36ee89(_0x450fd5,_0x37a88f-_0x5f0938._0x276a1f,_0x318ab2-_0x5f0938._0x395413,_0x450fd5-0xb);}function _0x34f7da(_0x5a777b,_0x29bf7a,_0x1d77b3,_0x5c02a6){return _0x479f18(_0x5a777b-0x159,_0x29bf7a-_0x17a21a._0x1f97cf,_0x5c02a6-_0x17a21a._0x10bcc8,_0x29bf7a);}_0x17a503[_0x34f7da(0x7,-0xa6,-0x2a,-_0x5aebd8._0x51c0a9)]({'id':_0x262a97(_0x5aebd8._0x549037,_0x5aebd8._0x5077b0,_0x5aebd8._0x2cb7a4,_0x5aebd8._0x1002f4),'type':_0x34f7da(-_0x5aebd8._0x4e1f2d,_0x5aebd8._0x51349d,-_0x5aebd8._0x35050c,-_0x5aebd8._0x2b9173),'description':_0x34f7da(0xd9,0xb3,-_0x5aebd8._0x4e3790,0x8d),'category':'session',async 'handler'({eventBus:_0x1ec212,config:_0x22a1e8,orchestrator:_0x2a8704}){const _0x575296={_0x1a9965:0x46,_0x38ce64:0x49},_0x202909={_0x5bf1cc:0x1be};function _0x3dc8ad(_0x38b061,_0x3df904,_0x288a04,_0x5bbb9d){return _0x262a97(_0x288a04-0x3cb,_0x3df904-_0x202909._0x5bf1cc,_0x288a04-0x3a,_0x3df904);}function _0x1794f2(_0x5af6c1,_0x139d45,_0x547500,_0x12b5d1){return _0x262a97(_0x12b5d1- -_0x575296._0x1a9965,_0x139d45-0x14,_0x547500-_0x575296._0x38ce64,_0x5af6c1);}if(!_0x2a8704){_0x1ec212[_0x1794f2(_0x5cb2c5._0x41f53b,_0x5cb2c5._0x8cec3a,0xfe,_0x5cb2c5._0x1cf2a7)](_0x1794f2(0xbb,_0x5cb2c5._0x1eed8c,_0x5cb2c5._0x2340dd,0x12d),'Orchestrator\x20not\x20available');return;}if(_0x2a8704[_0x3dc8ad(0x676,_0x5cb2c5._0xa1fc85,0x681,_0x5cb2c5._0x2da725)]()!==_0x1794f2(0x13c,0xcf,_0x5cb2c5._0x28fee1,0x128)){_0x1ec212[_0x3dc8ad(_0x5cb2c5._0x448ea0,0x629,_0x5cb2c5._0x10ffc7,_0x5cb2c5._0x146623)]('ui:error','Cannot\x20start\x20new\x20conversation:\x20System\x20is\x20still\x20initializing');return;}let _0x4c7f2d=_0x22a1e8?.['get'](_0x3dc8ad(_0x5cb2c5._0xd4818a,0x6f1,0x6ca,0x68d))??!0x1;_0x1ec212[_0x1794f2(0x207,0x1d2,_0x5cb2c5._0x249c95,0x215)](_0x1794f2(0x371,_0x5cb2c5._0x483d62,0x352,_0x5cb2c5._0x2ed292)),_0x1ec212['emit'](_0x3dc8ad(_0x5cb2c5._0x576294,0x72b,0x632,_0x5cb2c5._0xb4e90f),null),_0x1ec212['emit']('ui:new:conversation',{'memPersist':_0x4c7f2d});}});}function Qr(_0x143c12){const _0x5d7832={_0x5ca481:0x448,_0x515f51:0x3ff,_0x17ffe5:0x23b,_0x1f0d17:0x1f9,_0x29738d:0x584,_0x454cfc:0xf0},_0x994ded={_0x252dea:0x19c},_0x3bea2a={_0x8a0c10:0x6b},_0x12ed8a={_0x5b4e3d:0xe,_0x18ef76:0xd6,_0x568876:0x4d1};function _0x3efab5(_0x1d83a7,_0x1fdeef,_0x2fad58,_0x36cd79){return _0x36ee89(_0x36cd79,_0x1d83a7-0x235,_0x2fad58-0x175,_0x36cd79-0x9c);}function _0x2a7d44(_0xf42e8,_0x173645,_0x34b073,_0x29f29c){return _0x479f18(_0xf42e8-_0x12ed8a._0x5b4e3d,_0x173645-_0x12ed8a._0x18ef76,_0x34b073-_0x12ed8a._0x568876,_0x29f29c);}_0x143c12[_0x2a7d44(_0x5d7832._0x5ca481,_0x5d7832._0x515f51,0x48e,0x4c2)]({'id':_0x3efab5(_0x5d7832._0x17ffe5,0x26d,_0x5d7832._0x1f0d17,0x2a6),'type':_0x2a7d44(0x3dd,0x448,0x4a0,_0x5d7832._0x29738d),'description':_0x3efab5(_0x5d7832._0x454cfc,-0x29,-0x2f,-0x49),'category':'ui','handler'({eventBus:_0x2f36a3}){function _0x30d131(_0x510a7b,_0x3c0719,_0x5db0e0,_0x4dc3d3){return _0x3efab5(_0x4dc3d3-_0x3bea2a._0x8a0c10,_0x3c0719-0x1c5,_0x5db0e0-0x12,_0x510a7b);}_0x2f36a3[_0x30d131(0x290,0x1b1,0xb9,_0x994ded._0x252dea)]('ui:input:toggleVimMode',void 0x0);}});}import*as _0x7fb3fd from'crypto';function gi(_0x4b671a){const _0x2a16db={_0x1c8d6b:0x23b,_0x104819:0x1ec,_0x20bd96:0x362,_0x2514be:0x3c9,_0x11e72d:0x4e2,_0x44636f:0x3e6,_0x559511:0x4bc,_0x1fd422:0x46b,_0x48b40c:0x616,_0x3d7202:0x50a,_0x398126:0x5be,_0x25e7fb:0x152,_0x31d124:0x99},_0x3548bc={_0x5612d0:0x5e1,_0x337433:0x3b},_0xe42a86={_0x54b958:0x1d4,_0x488c9d:0xb1};function _0x2e7c91(_0x57c265,_0x5de911,_0x1cd58a,_0x399afe){return _0x479f18(_0x57c265-_0xe42a86._0x54b958,_0x5de911-0xdb,_0x399afe- -_0xe42a86._0x488c9d,_0x1cd58a);}function _0x3a549d(_0x14a131,_0x43408d,_0x10dd87,_0x2cab89){return _0x36ee89(_0x43408d,_0x10dd87-_0x3548bc._0x5612d0,_0x10dd87-0x1c2,_0x2cab89-_0x3548bc._0x337433);}try{let _0x48930d=JSON[_0x2e7c91(_0x2a16db._0x1c8d6b,0xae,_0x2a16db._0x104819,0x11d)](_0x4b671a[_0x3a549d(_0x2a16db._0x20bd96,0x4fa,0x41a,_0x2a16db._0x2514be)][_0x3a549d(_0x2a16db._0x11e72d,_0x2a16db._0x44636f,_0x2a16db._0x559511,_0x2a16db._0x1fd422)]);return _0x48930d[_0x3a549d(0x4e7,_0x2a16db._0x48b40c,_0x2a16db._0x3d7202,_0x2a16db._0x398126)]||_0x48930d[_0x2e7c91(-0x13,_0x2a16db._0x25e7fb,_0x2a16db._0x31d124,0x46)]||null;}catch{return null;}}function en(_0x2cf960){const _0x44438b={_0x2dfb16:0x5db,_0x393e77:0xb1,_0x33641e:0x1ee,_0x3852cc:0x1d9},_0x307aef={_0x4a1921:0x3e2};let _0x14b24b=[],_0x1510f6=[],_0x1cb0bd=[];return _0x2cf960['forEach'](_0x5ec15b=>{const _0x588d4f={_0x26c85d:0x5bb,_0x4b4098:0x5f0,_0x24da09:0x495,_0x52b68c:0x548,_0x4cfc0f:0x656,_0x1c02ec:0x62f,_0x5c52ae:0x655,_0xabaf38:0x5c4,_0x58b767:0x6f2,_0x3300c1:0x68a,_0x39b7f4:0x7a0,_0x5f76ce:0x79b,_0x436b2b:0x638,_0x3ec72e:0x52f,_0x3a5b5a:0x549,_0x3062dc:0x631,_0x19a472:0x55f,_0x64d24a:0x5b0,_0x5221da:0x6f2,_0x3ad106:0x642,_0x789cb6:0x605,_0x4a78bb:0x3e6,_0x5b901a:0x360,_0x3e1d6c:0x4de,_0x416d5a:0x656,_0x550389:0x750,_0x490780:0x417,_0x438e5e:0x332,_0x614bc1:0x4fb};function _0x17cdc1(_0x1a8f64,_0x5d8e5d,_0x13e288,_0x149519){return _0x2644(_0x149519- -0x25d,_0x1a8f64);}function _0x30b59a(_0xe7dca9,_0x2e9405,_0x5c2bed,_0x133636){return _0x2644(_0x2e9405-_0x307aef._0x4a1921,_0xe7dca9);}_0x5ec15b[_0x30b59a(0x57d,0x6b1,0x6a4,_0x44438b._0x2dfb16)]&&_0x5ec15b['tool_calls'][_0x17cdc1(0x21d,_0x44438b._0x393e77,_0x44438b._0x33641e,_0x44438b._0x3852cc)](_0x5ad2d7=>{const _0x48d579={_0xf181b0:0x1b6};let _0x492374=gi(_0x5ad2d7);if(!_0x492374)return;let _0x2f96f4=new Date(_0x5ec15b['timestamp']);function _0x551da2(_0x5eb3e,_0x1b1f6a,_0x377a36,_0x273856){return _0x30b59a(_0x1b1f6a,_0x5eb3e- -_0x48d579._0xf181b0,_0x377a36-0xcf,_0x273856-0x7);}function _0x4b4da7(_0x3252d9,_0x451337,_0x2e3d0c,_0x172934){return _0x30b59a(_0x172934,_0x3252d9- -0xcc,_0x2e3d0c-0xe7,_0x172934-0x1ea);}_0x5ad2d7[_0x4b4da7(0x517,_0x588d4f._0x26c85d,0x4b2,0x52e)][_0x4b4da7(0x6f2,_0x588d4f._0x4b4098,0x735,0x64a)]===_0x551da2(_0x588d4f._0x24da09,_0x588d4f._0x52b68c,0x465,0x38a)?_0x14b24b[_0x4b4da7(_0x588d4f._0x4cfc0f,0x6d9,0x549,_0x588d4f._0x1c02ec)]({'path':_0x492374,'timestamp':_0x2f96f4,'message':_0x5ec15b,'operation':_0x551da2(0x618,_0x588d4f._0x5c52ae,0x4ee,0x54f)}):_0x5ad2d7[_0x4b4da7(0x517,0x500,_0x588d4f._0xabaf38,0x498)][_0x4b4da7(_0x588d4f._0x58b767,0x76d,_0x588d4f._0x3300c1,_0x588d4f._0x39b7f4)]===_0x4b4da7(0x6f6,_0x588d4f._0x5f76ce,0x7a1,_0x588d4f._0x436b2b)?_0x1510f6[_0x551da2(0x56c,0x62c,_0x588d4f._0x3ec72e,_0x588d4f._0x3a5b5a)]({'path':_0x492374,'timestamp':_0x2f96f4,'message':_0x5ec15b,'operation':_0x551da2(_0x588d4f._0x3062dc,0x66e,_0x588d4f._0x19a472,_0x588d4f._0x64d24a)}):_0x5ad2d7['function'][_0x4b4da7(_0x588d4f._0x5221da,0x75e,_0x588d4f._0x3ad106,_0x588d4f._0x789cb6)]===_0x551da2(0x47f,_0x588d4f._0x4a78bb,_0x588d4f._0x5b901a,_0x588d4f._0x3e1d6c)&&_0x1cb0bd[_0x4b4da7(_0x588d4f._0x416d5a,_0x588d4f._0x550389,0x722,0x703)]({'path':_0x492374,'timestamp':_0x2f96f4,'message':_0x5ec15b,'operation':_0x551da2(0x41c,_0x588d4f._0x490780,_0x588d4f._0x438e5e,_0x588d4f._0x614bc1)});});}),{'reads':_0x14b24b,'edits':_0x1510f6,'creates':_0x1cb0bd};}function tn(_0x5f1e22,_0x282861,_0x3c25d2){const _0x51a8cb={_0xe4d3dc:0x3ab,_0x4ce053:0x386,_0x4641f1:0x4b8,_0x4caa42:0x1af,_0x47a2d3:0x1c,_0x2d3943:0x1b8},_0x223b60={_0x568225:0xe6},_0x4f936b={_0x350896:0x18e,_0x396bc4:0x65};let _0x1d993d=_0x282861['filter'](_0x49cf57=>_0x49cf57['path']===_0x5f1e22[_0x2ef07a(0x33b,0x439,0x3a3,0x372)]&&_0x49cf57[_0x1d780c(0x52,-0x2f,0x8,0x62)]>_0x5f1e22[_0x2ef07a(0x511,0x458,0x46c,0x4d4)]),_0x1358b6=_0x3c25d2[_0x2ef07a(0x28e,_0x51a8cb._0xe4d3dc,_0x51a8cb._0x4ce053,_0x51a8cb._0x4641f1)](_0x432436=>_0x432436[_0x2ef07a(0x4cd,0x3bf,0x3a3,0x495)]===_0x5f1e22[_0x2ef07a(0x3c9,0x3b6,0x3a3,0x3ae)]&&_0x432436['timestamp']>_0x5f1e22[_0x2ef07a(0x544,0x34a,0x46c,0x567)]);function _0x2ef07a(_0x1384ae,_0x584859,_0x4a4344,_0x37a9ae){return _0x36ee89(_0x37a9ae,_0x4a4344-0x47a,_0x4a4344-_0x4f936b._0x350896,_0x37a9ae-_0x4f936b._0x396bc4);}function _0x1d780c(_0x85182b,_0x4ac8fe,_0x48e5ad,_0x3a209e){return _0x36ee89(_0x4ac8fe,_0x85182b-0x60,_0x48e5ad-0x1b0,_0x3a209e-_0x223b60._0x568225);}return _0x1d993d[_0x1d780c(-0x122,-_0x51a8cb._0x4caa42,-_0x51a8cb._0x47a2d3,-_0x51a8cb._0x2d3943)]>0x0||_0x1358b6['length']>0x0;}function on(_0x23c402,_0x275faf){const _0x4f90f0={_0x214541:0x33,_0x9d7496:0x151,_0x6d8051:0x38,_0x529c49:0x16e,_0x11073e:0x9c},_0x5b1a0a={_0x100416:0x21e},_0x4acc16={_0x56f3b7:0x1aa};function _0x5ac8ae(_0x401f00,_0x182ffc,_0x64067a,_0x470f44){return _0x479f18(_0x401f00-0x133,_0x182ffc-_0x4acc16._0x56f3b7,_0x401f00- -0x178,_0x64067a);}function _0x335232(_0x34e7c1,_0x29671d,_0x3695db,_0x143ba1){return _0x36ee89(_0x3695db,_0x143ba1-_0x5b1a0a._0x100416,_0x3695db-0x2e,_0x143ba1-0x1a6);}return _0x275faf[_0x5ac8ae(-0xd6,-_0x4f90f0._0x214541,-0xa1,-0x204)](_0x31a776=>_0x31a776['path']===_0x23c402[_0x5ac8ae(-0xb9,-0x67,-0x17,-0xef)]&&_0x31a776[_0x335232(0x1a4,0x192,0x16c,0x210)]>_0x23c402[_0x5ac8ae(0x10,-0xb2,-0xcb,-0x4c)])[_0x335232(_0x4f90f0._0x9d7496,-_0x4f90f0._0x6d8051,_0x4f90f0._0x529c49,_0x4f90f0._0x11073e)]>0x0;}function pi(_0xbece0b){const _0x4bd78b={_0x2bd728:0x51a,_0xcbf008:0x3b2},_0x3c15ab={_0x31bffd:0x1d8};function _0x53f23b(_0x4cecc8,_0x10e2f7,_0x210774,_0x2336d3){return _0x479f18(_0x4cecc8-_0x3c15ab._0x31bffd,_0x10e2f7-0x117,_0x210774-0x4ba,_0x10e2f7);}try{return JSON['parse'](_0xbece0b[_0x53f23b(0x4dc,_0x4bd78b._0x2bd728,0x489,_0x4bd78b._0xcbf008)]['arguments'])['cmd']||null;}catch{return null;}}function rn(_0x1784de){const _0x403c89={_0x22e5bd:0x347,_0x4085a8:0x278,_0x235658:0x37f,_0x3b48f8:0x4b4,_0x2514ca:0x4bb},_0x59d8f3={_0x5117c7:0x28e,_0x4f3cab:0x27a,_0x5b1e2a:0x3e5,_0x4553cb:0x398,_0x13761f:0x6c2,_0x36280d:0x70a,_0x48d849:0x5b1,_0x5e18ae:0x25e,_0x3b3c89:0x310,_0x366f9f:0x19b};let _0x5e1067=[];return _0x1784de['forEach'](_0x3b5ebc=>{function _0x3d1147(_0x1360e7,_0x3607e1,_0x41a1a3,_0x53539c){return _0x2644(_0x41a1a3-0xb0,_0x1360e7);}function _0x452a25(_0x1186fc,_0x27f88c,_0xc9c28f,_0x27aaf2){return _0x2644(_0xc9c28f-0x54,_0x27aaf2);}_0x3b5ebc[_0x3d1147(0x2e4,0x38b,0x37f,_0x403c89._0x22e5bd)]&&_0x3b5ebc[_0x3d1147(0x2e8,_0x403c89._0x4085a8,_0x403c89._0x235658,0x2bd)][_0x3d1147(0x541,_0x403c89._0x3b48f8,0x4e6,_0x403c89._0x2514ca)](_0x4217c7=>{const _0x5533c6={_0x1e3e09:0x27};function _0x3c8aa9(_0x156a72,_0x4d3d41,_0x31e3e1,_0x19bfdb){return _0x3d1147(_0x4d3d41,_0x4d3d41-0xfe,_0x156a72- -0x192,_0x19bfdb-0x27);}if(_0x4217c7['function'][_0x3c8aa9(0x2fa,_0x59d8f3._0x5117c7,0x242,_0x59d8f3._0x4f3cab)]!==_0x3c8aa9(0x334,_0x59d8f3._0x5b1e2a,_0x59d8f3._0x4553cb,0x205))return;let _0x5c5f72=pi(_0x4217c7);if(!_0x5c5f72)return;function _0x35c677(_0x519ea8,_0x303b9f,_0x3c4376,_0x5c4edf){return _0x3d1147(_0x3c4376,_0x303b9f-_0x5533c6._0x1e3e09,_0x519ea8-0x317,_0x5c4edf-0x1a9);}let _0x3f0969=new Date(_0x3b5ebc['timestamp']),_0x493bd9=_0x1784de[_0x35c677(_0x59d8f3._0x13761f,0x618,_0x59d8f3._0x36280d,_0x59d8f3._0x48d849)](_0x2ae368=>_0x2ae368[_0x35c677(0x77c,0x755,0x6f0,0x84a)]==='tool'&&_0x2ae368[_0x35c677(0x769,0x7d5,0x71e,0x640)]===_0x4217c7['id']);_0x5e1067[_0x3c8aa9(_0x59d8f3._0x5e18ae,0x29c,_0x59d8f3._0x3b3c89,_0x59d8f3._0x366f9f)]({'command':_0x5c5f72,'timestamp':_0x3f0969,'message':_0x3b5ebc,'toolResultMessage':_0x493bd9||null});});}),_0x5e1067;}function nn(_0x2ca5dc,_0x55e029){const _0x5d7dcb={_0x168185:0x46b,_0x1435f8:0x4e5,_0x6fc054:0x486},_0x51a9e7={_0x3618a5:0xc7};function _0x294fa2(_0x161cfa,_0x2dd052,_0x175f63,_0x1cca42){return _0x479f18(_0x161cfa-0x1ae,_0x2dd052-0xaa,_0x175f63-0x306,_0x1cca42);}function _0x5a348d(_0x4e5ee1,_0x45b4d5,_0x1d3b4f,_0x2887e1){return _0x479f18(_0x4e5ee1-_0x51a9e7._0x3618a5,_0x45b4d5-0x1f,_0x45b4d5-0x52b,_0x2887e1);}return _0x55e029[_0x294fa2(0x33c,_0x5d7dcb._0x168185,0x3a8,0x44e)](_0xbaa9d0=>_0xbaa9d0['command']===_0x2ca5dc['command']&&_0xbaa9d0['timestamp']>_0x2ca5dc[_0x294fa2(0x3cd,0x39c,0x48e,0x364)])[_0x5a348d(_0x5d7dcb._0x1435f8,0x53f,_0x5d7dcb._0x6fc054,0x627)]>0x0;}function sn(_0x45bf2c){const _0x1d06bc={_0x3f8d5e:0x40b,_0x40d47a:0x5e7,_0x2cc0dc:0x4b9,_0x85f894:0x55f,_0x43a671:0x3fd,_0x276e50:0x529,_0x1827b0:0x59d,_0x31e870:0x4a9,_0x2e6817:0x5a9,_0x3916ee:0x4b8,_0x3a4ddc:0x590},_0x34681c={_0x3ed003:0x1f3,_0xb37007:0x4c5},_0x56a03c={_0x18ef7a:0x17f,_0x1695a5:0x4dc};function _0x4001f6(_0x5a92e5,_0x1a46ee,_0x1c4da5,_0x2abe0f){return _0x479f18(_0x5a92e5-0x1c4,_0x1a46ee-_0x56a03c._0x18ef7a,_0x2abe0f-_0x56a03c._0x1695a5,_0x1a46ee);}function _0xd4027d(_0x40830f,_0x174d07,_0x3f9b55,_0x415d91){return _0x479f18(_0x40830f-_0x34681c._0x3ed003,_0x174d07-0xb7,_0x40830f-_0x34681c._0xb37007,_0x174d07);}let _0x4853d4=(typeof _0x45bf2c[_0x4001f6(_0x1d06bc._0x3f8d5e,_0x1d06bc._0x40d47a,0x579,_0x1d06bc._0x2cc0dc)]=='string'?_0x45bf2c[_0xd4027d(0x4a2,_0x1d06bc._0x85f894,_0x1d06bc._0x43a671,_0x1d06bc._0x276e50)]:'')[_0xd4027d(_0x1d06bc._0x1827b0,0x5cb,_0x1d06bc._0x31e870,_0x1d06bc._0x2e6817)]();return[/error:/i,/failed/i,/exception/i,/command not found/i,/permission denied/i,/no such file/i,/cannot/i,/fatal:/i][_0xd4027d(_0x1d06bc._0x3916ee,0x522,0x3be,_0x1d06bc._0x3a4ddc)](_0x2550cc=>_0x2550cc[_0x4001f6(0x510,0x45b,0x56f,0x573)](_0x4853d4));}function an(_0x228c62){const _0xeee421={_0x54359a:0x6c4,_0x394231:0x64b,_0x536e14:0x753,_0x29b5d1:0x7c9,_0x7771a9:0x42c,_0x358949:0x469,_0x14b542:0x4cd,_0x1ccc78:0x3b6,_0x485480:0x2dd,_0x545415:0x3d0},_0x3e47bd={_0x3d7d66:0x8a},_0x779681={_0x1851ef:0x4af,_0x52d848:0x452,_0x471871:0x507,_0x495a02:0x5bd,_0xb3d916:0x62f,_0x3070a2:0x5e3,_0x5db175:0x5e8,_0x492cdb:0x64c,_0x2bee7a:0x41f,_0x44b7f5:0x526},_0x1f577c={_0x3f876a:0x372,_0x4d583f:0x399,_0x50f970:0x3f9,_0x4f0f9c:0x3bd,_0x1c3ee5:0x367,_0x583a72:0x2a5,_0x3f2681:0x2d5},_0x24a2d7={_0x3ae993:0x10e,_0x530581:0x104},_0x332524={_0x43f45c:0x23,_0x4c1155:0x11,_0x679d5f:0x1e,_0xe04ecc:0x3bb},_0x518a2c={_0xca82cc:0xca,_0x1ce764:0xd5},_0x540d38={_0x15bb45:0x45f,_0x22adb3:0x13f,_0x13e3ef:0x15c};let {reads:_0x92fe54,edits:_0x5b9b47,creates:_0x186d71}=en(_0x228c62),_0x441c38=rn(_0x228c62),_0x54f137=new Set(),_0x483693=0x0,_0x3e6ec6=0x0,_0x5093fc=0x0,_0x5c7c84=0x0;function _0x41a7bf(_0x2b5270,_0x2d5a83,_0x4aab95,_0x266873){return _0x36ee89(_0x2b5270,_0x266873-_0x540d38._0x15bb45,_0x4aab95-_0x540d38._0x22adb3,_0x266873-_0x540d38._0x13e3ef);}_0x92fe54[_0x16e6a5(_0xeee421._0x54359a,0x5f3,_0xeee421._0x394231,0x6da)](_0x1e9c24=>{const _0x12eaa2={_0x513540:0x5a7,_0x4dce78:0xa5,_0xd41574:0x150};function _0x79231e(_0x15f844,_0x513f67,_0x4b72da,_0xa253f1){return _0x16e6a5(_0x513f67- -_0x12eaa2._0x513540,_0x513f67-_0x12eaa2._0x4dce78,_0xa253f1,_0xa253f1-_0x12eaa2._0xd41574);}function _0x1ef1c7(_0x415640,_0xa2ddb7,_0x3c0e44,_0x5739b8){return _0x16e6a5(_0xa2ddb7- -0x165,_0xa2ddb7-_0x518a2c._0xca82cc,_0x5739b8,_0x5739b8-_0x518a2c._0x1ce764);}if(tn(_0x1e9c24,_0x5b9b47,_0x186d71)){_0x54f137['add'](_0x1e9c24[_0x79231e(-0x2c,-_0x332524._0x43f45c,_0x332524._0x4c1155,0xa1)]['id']);let _0x5a5821=_0x228c62[_0x79231e(-0xb9,-_0x332524._0x679d5f,-_0x332524._0x43f45c,-0x127)](_0x2527be=>_0x2527be['role']===_0x79231e(-0x2,-0x3f,-0x57,0x19)&&_0x1e9c24[_0x79231e(-0x116,-0x23,-0xe1,-0x10c)][_0x1ef1c7(0x44f,0x3f8,0x343,0x457)]?.[_0x1ef1c7(0x308,0x34e,0x3ff,0x294)](_0x31ddca=>_0x31ddca['id']===_0x2527be[_0x79231e(0x17c,0x89,0xc3,0x9c)]));_0x5a5821&&_0x54f137[_0x1ef1c7(_0x332524._0xe04ecc,0x44a,0x497,0x4ef)](_0x5a5821['id']),_0x483693++;}}),_0x5b9b47[_0x16e6a5(0x6c4,_0xeee421._0x536e14,0x5fa,_0xeee421._0x29b5d1)](_0x108b07=>{const _0x24efd5={_0x50322f:0x210,_0x2f89b6:0x161,_0x95c6e7:0xa};function _0x3d44b9(_0x3d1694,_0x18ae05,_0x139cf9,_0x339ab1){return _0x16e6a5(_0x18ae05- -0x216,_0x18ae05-_0x24a2d7._0x3ae993,_0x3d1694,_0x339ab1-_0x24a2d7._0x530581);}function _0x5a3ec0(_0x9ee3fb,_0x28ca71,_0x327975,_0x396f7e){return _0x16e6a5(_0x396f7e- -_0x24efd5._0x50322f,_0x28ca71-_0x24efd5._0x2f89b6,_0x327975,_0x396f7e-_0x24efd5._0x95c6e7);}if(on(_0x108b07,_0x5b9b47)){_0x54f137[_0x3d44b9(_0x1f577c._0x3f876a,_0x1f577c._0x4d583f,_0x1f577c._0x50f970,0x2a3)](_0x108b07[_0x5a3ec0(0x3c2,_0x1f577c._0x4f0f9c,0x45e,0x374)]['id']);let _0xa6f8e5=_0x228c62[_0x3d44b9(_0x1f577c._0x1c3ee5,0x373,_0x1f577c._0x583a72,0x398)](_0x5aae0=>_0x5aae0[_0x3d44b9(0x3b7,0x42d,0x456,0x3cc)]===_0x3d44b9(0x275,0x352,0x383,0x36d)&&_0x108b07['message'][_0x3d44b9(0x3e9,0x347,0x470,0x280)]?.[_0x5a3ec0(0x2f2,0x287,0x314,0x2a3)](_0x4ab886=>_0x4ab886['id']===_0x5aae0[_0x3d44b9(0x3e6,0x41a,0x3f0,0x4e7)]));_0xa6f8e5&&_0x54f137[_0x3d44b9(0x336,_0x1f577c._0x4d583f,_0x1f577c._0x3f2681,0x3a6)](_0xa6f8e5['id']),_0x3e6ec6++;}}),_0x441c38[_0x41a7bf(_0xeee421._0x7771a9,_0xeee421._0x358949,0x503,_0xeee421._0x14b542)](_0x16479e=>{const _0x342ece={_0x4d5f3e:0x39},_0x30efb6={_0x10bf3f:0x51};function _0x201ca3(_0x5efaa3,_0x51e65c,_0x23bbc8,_0x27024a){return _0x16e6a5(_0x23bbc8- -0x7c,_0x51e65c-_0x30efb6._0x10bf3f,_0x27024a,_0x27024a-0x1cc);}let _0x1655b6=_0x16479e[_0x201ca3(0x4c5,_0x779681._0x1851ef,_0x779681._0x52d848,0x55e)]&&sn(_0x16479e[_0x3a188c(_0x779681._0x471871,_0x779681._0x495a02,_0x779681._0xb3d916,_0x779681._0x3070a2)]),_0x32b067=nn(_0x16479e,_0x441c38);function _0x3a188c(_0x303563,_0x3176b1,_0x2c8424,_0x442898){return _0x16e6a5(_0x303563-_0x342ece._0x4d5f3e,_0x3176b1-0x6a,_0x442898,_0x442898-0xc6);}(_0x1655b6||_0x32b067)&&(_0x54f137[_0x3a188c(_0x779681._0x5db175,0x607,0x6c1,_0x779681._0x492cdb)](_0x16479e['message']['id']),_0x16479e[_0x3a188c(_0x779681._0x471871,0x4ba,0x633,_0x779681._0x2bee7a)]&&_0x54f137[_0x3a188c(0x5e8,0x673,_0x779681._0x44b7f5,0x6f4)](_0x16479e['toolResultMessage']['id']),_0x1655b6?_0x5093fc++:_0x32b067&&_0x5c7c84++);});let _0xb79d0=_0x228c62['filter'](_0x5188f9=>!_0x54f137[_0x41a7bf(0x5c1,0x436,0x481,0x4d7)](_0x5188f9['id']));function _0x16e6a5(_0x37e02f,_0x2bf8ea,_0x1fb829,_0x3524b7){return _0x479f18(_0x37e02f-0x75,_0x2bf8ea-_0x3e47bd._0x3d7d66,_0x37e02f-0x4c0,_0x1fb829);}return{'compressed':_0xb79d0,'stats':{'original':_0x228c62[_0x41a7bf(0x332,_0xeee421._0x1ccc78,0x329,_0xeee421._0x485480)],'compressed':_0xb79d0[_0x41a7bf(0x2f0,0x361,_0xeee421._0x545415,0x2dd)],'removed':_0x54f137[_0x16e6a5(0x489,0x38d,0x41f,0x54e)],'staleReads':_0x483693,'staleEdits':_0x3e6ec6,'failedBash':_0x5093fc,'staleBash':_0x5c7c84}};}function ln(_0x512e37){const _0x3344a2={_0x3d51c2:0xc,_0xc5f0d:0xcf,_0x37c2b9:0x226,_0x11f3be:0x1ec,_0x24b096:0x13a},_0x197f07={_0x1509fb:0x73,_0x43c53a:0x4e,_0x2e32f9:0x20c,_0x3f158e:0x2a8,_0x4cfdb3:0x78b,_0xb7cc83:0x769,_0x132907:0x774,_0x23aa47:0x5b1,_0x24c1f3:0x537,_0x11ac9e:0x62f,_0x47b118:0x102,_0xc05f28:0x26d,_0x2c2b1e:0x61a,_0x5acc0d:0x721,_0x5ae859:0x758,_0x59afcf:0x287,_0x216633:0x1ec,_0x2ae45d:0x1b3,_0x359ee9:0x740,_0x4aaef5:0x789,_0x508852:0x72e,_0x599afb:0x24,_0x464a2c:0x93,_0x1753a9:0x11,_0x4664de:0xe9,_0x3d15d2:0x20c,_0x37d73a:0x7e0,_0x4e94ec:0x743,_0x5918b2:0x3d,_0x285b47:0x126,_0x2293ba:0x1b2,_0x5afe63:0xbf,_0x4a2bef:0x1ce,_0x21c37d:0x1e3,_0x59e223:0x1a9,_0xaaef9d:0x169,_0x192d51:0x685,_0x21bafd:0x767,_0x3b7458:0x754,_0x5294d6:0x6f0,_0x2c48c1:0x65b,_0x25c9d5:0x5ad,_0x1db96c:0x10,_0x276ffe:0x4d8,_0x4aff19:0x6a1,_0x112b7e:0x616,_0x2591c8:0x57c,_0x465e7a:0x64e,_0x5a85f7:0x69d,_0x30df83:0x758,_0x4926ff:0x684,_0x1ef02f:0x7d9,_0x26b8f2:0x6e4,_0x26f094:0x527,_0x3c1cb8:0x1f4,_0x401ff2:0x225,_0xa89b76:0x5e4,_0x4c81df:0x61a,_0x227036:0x844,_0xa6fe91:0x543,_0x31b4a1:0x6e0,_0x201fe7:0x5b5,_0x49a8ae:0xa5,_0x4617ff:0x59,_0x1063ed:0x2ce,_0x533e86:0x123,_0x357b9e:0x291,_0x617c40:0x62e,_0x36ffba:0x813,_0x5e7441:0x725,_0x579fc7:0x111,_0x3c0ea8:0xbf,_0x36d4a5:0x1bb,_0x412d2e:0x298,_0x5af89e:0x6b1,_0x3d5a9a:0x639,_0x202238:0x5df,_0x395199:0x13a,_0x3ea01e:0x14c,_0x562432:0x6bd,_0x2c293b:0x3,_0x3c2e7d:0x47,_0x128c4d:0x3e,_0x527349:0x212,_0x13b5ab:0x281,_0xd425dd:0x2f9,_0xf03e35:0x7d7,_0xe07396:0x68d,_0x392890:0x746,_0x40a733:0x630,_0x5c520a:0x9a,_0x391a03:0xb0,_0x355789:0x44f,_0x24e8f6:0x56d,_0x8793da:0x634,_0x4dcfd5:0x635,_0x194809:0x5e2,_0xd4125a:0x242,_0x413881:0x1f0,_0x278f9c:0x12b,_0x321bcc:0x183,_0x14f253:0x1d4,_0xb07a8d:0x1ed,_0x434130:0x220,_0x3c281f:0x278,_0x89eb1d:0x1e1,_0x46ced6:0x5e4,_0x5dc671:0x596,_0xa3942:0x5de,_0x499d3a:0x146,_0x167374:0x4a9,_0x403c1c:0x5b9,_0x11bda2:0x11f,_0x593c1e:0x23e,_0x657fea:0x1a,_0x1451f1:0xe,_0x1e73f6:0x139,_0x704c28:0xb3,_0x40a845:0x189,_0x1f6330:0x20c,_0x26c0d5:0x21a,_0x3a8dd:0xc4,_0x209568:0x73,_0x30e8e7:0xbb,_0x351ade:0x6e,_0x583bc5:0x6d9,_0x4d3abb:0x4b4,_0x4d53b1:0x78,_0x15c5b9:0x17d,_0xdbeb83:0x1e1,_0x1e564a:0x6c2,_0x577507:0x533,_0x1f0649:0x348,_0x4d66cd:0x318,_0x22f3c3:0x106,_0x5ce484:0x5d6,_0x44f462:0x61a,_0x2af1c0:0x1df,_0x2c8026:0x24a,_0xe024ca:0x26f,_0x450dd4:0x4ea,_0x1f5b3c:0x509,_0xbf8005:0x623,_0x3cd4b8:0x165,_0x386bca:0x107,_0x29bb71:0x9c,_0x13b13d:0xa4,_0x227963:0x227,_0x53f3af:0x6b5,_0x1ede8b:0x5c5,_0x57519d:0x4f4,_0x3ff638:0x57c,_0x22cffe:0x20c,_0x224b3a:0x481,_0x159508:0x848,_0x104dbd:0x710,_0xf2de3b:0xee,_0x4ccd87:0x12f,_0x3b3e6c:0x5bf,_0x3d8b92:0x79b,_0x7394c6:0x6da,_0x560b8b:0xa0,_0x30c8f0:0x73,_0x3da2eb:0x618,_0x1878e1:0x7fa,_0x1410ef:0x715,_0x5260db:0x837,_0x33ba50:0x836,_0x3642cc:0x854,_0x419185:0x106,_0x4551bb:0x5a4},_0x92d12b={_0x5894b8:0x11f},_0x4d8020={_0x2c5d11:0x21};function _0x159ca8(_0xc13782,_0x248e76,_0x5bb344,_0x3a31fd){return _0x36ee89(_0x5bb344,_0xc13782-_0x4d8020._0x2c5d11,_0x5bb344-0x1ce,_0x3a31fd-0xf);}function _0x3605d0(_0x1056f7,_0x5f54a6,_0x4a1b6c,_0x2636f6){return _0x479f18(_0x1056f7-_0x92d12b._0x5894b8,_0x5f54a6-0x172,_0x4a1b6c-0x96,_0x2636f6);}_0x512e37[_0x3605d0(-_0x3344a2._0x3d51c2,-0x1c,0x53,_0x3344a2._0xc5f0d)]({'id':'/summary','type':_0x159ca8(-0x1a6,-0x78,-_0x3344a2._0x37c2b9,-0x8f),'description':_0x3605d0(0x223,0x1cc,_0x3344a2._0x11f3be,0x123),'category':_0x159ca8(0x43,-0xc7,0xf5,_0x3344a2._0x24b096),async 'handler'({eventBus:_0x3fd5d3,memory:_0x2f913d,orchestrator:_0x311253,rawInput:_0x13f562}){const _0x4b0ea5={_0x43a67c:0x6fd},_0x31e9e6={_0x3d8014:0x7a,_0x24622c:0xf4};if(!_0x311253){_0x3fd5d3['emit'](_0x3f5fad(0x11,_0x197f07._0x1509fb,0xe9,_0x197f07._0x43c53a),{'id':_0x7fb3fd[_0x3f5fad(0x22e,_0x197f07._0x2e32f9,_0x197f07._0x3f158e,0x32a)](),'type':'system','content':_0x2d330b(_0x197f07._0x4cfdb3,_0x197f07._0xb7cc83,_0x197f07._0x132907,0x6bd),'metadata':{'timestamp':new Date()[_0x2d330b(0x74f,_0x197f07._0x23aa47,_0x197f07._0x24c1f3,_0x197f07._0x11ac9e)]()},'color':_0x3f5fad(_0x197f07._0x47b118,0x1ce,_0x197f07._0xc05f28,0xe1)});return;}function _0x3f5fad(_0x199942,_0xa9e5b3,_0x4c542a,_0x751146){return _0x3605d0(_0x199942-_0x31e9e6._0x3d8014,_0xa9e5b3-_0x31e9e6._0x24622c,_0xa9e5b3- -0x17,_0x751146);}if(!_0x2f913d){_0x3fd5d3[_0x2d330b(0x732,0x649,0x694,_0x197f07._0x2c2b1e)]('ui:line',{'id':_0x7fb3fd['randomUUID'](),'type':_0x2d330b(0x869,_0x197f07._0x5acc0d,0x679,_0x197f07._0x5ae859),'content':'Memory\x20not\x20initialized','metadata':{'timestamp':new Date()['toISOString']()},'color':'red'});return;}let _0x6923ec=await _0x2f913d[_0x3f5fad(_0x197f07._0x59afcf,_0x197f07._0x216633,0x206,_0x197f07._0x2ae45d)](_0x2d330b(_0x197f07._0x359ee9,_0x197f07._0x4aaef5,0x7cf,_0x197f07._0x508852));if(!_0x6923ec||_0x6923ec[_0x3f5fad(_0x197f07._0x599afb,_0x197f07._0x464a2c,0x194,-_0x197f07._0x1753a9)]===0x0){_0x3fd5d3['emit']('ui:line',{'id':_0x7fb3fd[_0x3f5fad(_0x197f07._0x4664de,_0x197f07._0x3d15d2,0x236,0x2d9)](),'type':_0x2d330b(_0x197f07._0x37d73a,0x877,_0x197f07._0x4e94ec,0x758),'content':_0x2d330b(0x71b,0x804,0x64f,0x718),'metadata':{'timestamp':new Date()[_0x3f5fad(_0x197f07._0x5918b2,_0x197f07._0x285b47,_0x197f07._0x2293ba,_0x197f07._0x5afe63)]()},'color':_0x3f5fad(0x4e,0x14b,0x27d,_0x197f07._0x4a2bef)});return;}if(_0x13f562[_0x3f5fad(_0x197f07._0x21c37d,_0x197f07._0x59e223,_0x197f07._0xaaef9d,0x19a)]()[_0x2d330b(_0x197f07._0x192d51,0x77b,_0x197f07._0x21bafd,0x679)](/\s+/)[_0x2d330b(0x6b6,0x62b,0x746,_0x197f07._0x3b7458)](0x1)[_0x2d330b(0x7a5,0x790,0x7bb,0x6da)]('\x20')[_0x2d330b(0x6d8,_0x197f07._0x5294d6,0x5bd,0x6b2)]()[_0x2d330b(_0x197f07._0x2c48c1,0x5b4,_0x197f07._0x25c9d5,0x660)]()==='beta'){_0x3fd5d3[_0x3f5fad(_0x197f07._0x1db96c,0x111,0x12e,0x1be)](_0x2d330b(_0x197f07._0x276ffe,_0x197f07._0x4aff19,_0x197f07._0x112b7e,_0x197f07._0x2591c8),{'id':_0x7fb3fd['randomUUID'](),'type':_0x2d330b(_0x197f07._0x465e7a,0x87d,_0x197f07._0x5a85f7,_0x197f07._0x30df83),'content':_0x2d330b(_0x197f07._0x4926ff,0x808,_0x197f07._0x1ef02f,_0x197f07._0x26b8f2),'metadata':{'timestamp':new Date()[_0x2d330b(_0x197f07._0x26f094,0x758,0x677,0x62f)]()},'color':'cyan'});try{let {compressed:_0x5512c7,stats:_0x2a55ff}=an(_0x6923ec);await _0x2f913d['set'](_0x3f5fad(_0x197f07._0x3c1cb8,_0x197f07._0x401ff2,0x152,0x307),_0x5512c7),_0x3fd5d3[_0x2d330b(_0x197f07._0xa89b76,0x5e1,0x547,_0x197f07._0x4c81df)](_0x2d330b(_0x197f07._0x227036,0x66c,0x7be,0x753)),_0x3fd5d3[_0x2d330b(_0x197f07._0xa6fe91,_0x197f07._0x31b4a1,_0x197f07._0x201fe7,0x61a)]('ui:lastMetadata',null),_0x3fd5d3['emit'](_0x3f5fad(0x3e,_0x197f07._0x1509fb,_0x197f07._0x49a8ae,-_0x197f07._0x4617ff),{'id':_0x7fb3fd[_0x3f5fad(_0x197f07._0x1063ed,_0x197f07._0x3d15d2,0x14d,0x249)](),'type':_0x3f5fad(0x2a9,0x24f,_0x197f07._0x533e86,_0x197f07._0x357b9e),'content':_0x2d330b(0x841,0x5f6,0x73b,0x71f),'metadata':{'timestamp':new Date()['toISOString']()},'color':_0x2d330b(_0x197f07._0x617c40,0x645,_0x197f07._0x36ffba,_0x197f07._0x5e7441)}),_0x3fd5d3[_0x3f5fad(0xa4,_0x197f07._0x579fc7,0x1ff,0x32)](_0x3f5fad(-0x90,0x73,0xd5,-_0x197f07._0x3c0ea8),{'id':_0x7fb3fd['randomUUID'](),'type':_0x3f5fad(_0x197f07._0x36d4a5,0x24f,_0x197f07._0x412d2e,0x2c8),'content':_0x2d330b(_0x197f07._0x5af89e,0x5ef,_0x197f07._0x3d5a9a,_0x197f07._0x202238)+_0x2a55ff[_0x3f5fad(_0x197f07._0x395199,0x47,_0x197f07._0x3ea01e,-0xb2)]+'\x20→\x20'+_0x2a55ff['compressed']+_0x3f5fad(0x30c,0x22e,0x24c,0x1e7)+_0x2a55ff['removed']+',\x20'+(_0x2a55ff[_0x2d330b(_0x197f07._0x562432,0x687,0x618,0x6dd)]/_0x2a55ff[_0x3f5fad(-_0x197f07._0x2c293b,_0x197f07._0x3c2e7d,0x82,_0x197f07._0x128c4d)]*0x64)[_0x3f5fad(_0x197f07._0x527349,_0x197f07._0x13b5ab,0x1b3,_0x197f07._0xd425dd)](0x1)+_0x2d330b(_0x197f07._0xf03e35,_0x197f07._0xe07396,0x7cc,0x75e),'metadata':{'timestamp':new Date()[_0x2d330b(_0x197f07._0x392890,0x5aa,_0x197f07._0x40a733,0x62f)]()},'color':_0x3f5fad(_0x197f07._0x5c520a,_0x197f07._0x391a03,0x4b,-0x69)}),_0x3fd5d3['emit'](_0x2d330b(_0x197f07._0x355789,0x571,0x643,0x57c),{'id':_0x7fb3fd[_0x3f5fad(0x237,0x20c,0x14d,0x2ac)](),'type':'system','content':_0x2d330b(_0x197f07._0x24e8f6,0x466,_0x197f07._0x8793da,0x55c)+_0x2a55ff[_0x2d330b(0x537,_0x197f07._0x4dcfd5,_0x197f07._0x194809,0x607)]+'\x20stale\x20reads,\x20'+_0x2a55ff['staleEdits']+'\x20stale\x20edits,\x20'+_0x2a55ff[_0x3f5fad(0x212,_0x197f07._0xd4125a,_0x197f07._0x413881,_0x197f07._0x278f9c)]+_0x3f5fad(0x24d,0x1e0,_0x197f07._0x321bcc,_0x197f07._0x14f253)+_0x2a55ff[_0x3f5fad(_0x197f07._0xb07a8d,_0x197f07._0x434130,_0x197f07._0x3c281f,_0x197f07._0x89eb1d)]+_0x2d330b(0x5dc,_0x197f07._0x46ced6,_0x197f07._0x5dc671,_0x197f07._0xa3942),'metadata':{'timestamp':new Date()[_0x3f5fad(0x67,0x126,_0x197f07._0x499d3a,0x15c)]()},'color':_0x2d330b(0x5aa,_0x197f07._0x167374,0x65d,_0x197f07._0x403c1c)}),_0x3fd5d3[_0x3f5fad(_0x197f07._0x11bda2,0x111,0x164,_0x197f07._0x593c1e)]('ui:header:refresh');}catch(_0x1e34b1){_0x3fd5d3[_0x3f5fad(0x3,_0x197f07._0x579fc7,0x19d,_0x197f07._0x657fea)](_0x3f5fad(_0x197f07._0x1451f1,_0x197f07._0x1509fb,_0x197f07._0x1e73f6,-_0x197f07._0x704c28),{'id':_0x7fb3fd[_0x3f5fad(_0x197f07._0x40a845,_0x197f07._0x1f6330,0x130,0x14f)](),'type':_0x3f5fad(0x344,0x24f,0x34c,0x1b5),'content':'Failed\x20to\x20compress\x20conversation:\x20'+(_0x1e34b1 instanceof Error?_0x1e34b1['message']:String(_0x1e34b1)),'metadata':{'timestamp':new Date()[_0x3f5fad(0x82,_0x197f07._0x285b47,_0x197f07._0x26c0d5,0x10f)]()},'color':'red'});}return;}_0x3fd5d3['emit'](_0x3f5fad(_0x197f07._0x3a8dd,_0x197f07._0x209568,-_0x197f07._0x30e8e7,_0x197f07._0x351ade),{'id':_0x7fb3fd['randomUUID'](),'type':'system','content':'Generating\x20conversation\x20summary...','metadata':{'timestamp':new Date()['toISOString']()},'color':_0x2d330b(0x662,_0x197f07._0x583bc5,_0x197f07._0x4d3abb,0x5b9)});function _0x2d330b(_0x3c8aec,_0x3ca3ec,_0x2dc6ec,_0x3d34f9){return _0x159ca8(_0x3d34f9-_0x4b0ea5._0x43a67c,_0x3ca3ec-0x1c5,_0x3c8aec,_0x3d34f9-0x1eb);}try{let _0x44e961=await _0x311253[_0x3f5fad(_0x197f07._0x4d53b1,_0x197f07._0x15c5b9,_0x197f07._0xdbeb83,0x167)](),_0x165deb={'id':_0x7fb3fd['randomUUID'](),'role':'user','content':'Previous\x20conversation\x20summary:\x0a\x0a'+_0x44e961,'timestamp':new Date()['toISOString']()};await _0x2f913d[_0x2d330b(_0x197f07._0x1e564a,_0x197f07._0x577507,0x4e3,0x58f)](_0x3f5fad(_0x197f07._0x1f0649,0x225,_0x197f07._0x4d66cd,_0x197f07._0x22f3c3),[_0x165deb]),_0x3fd5d3[_0x2d330b(0x644,0x649,_0x197f07._0x5ce484,_0x197f07._0x44f462)](_0x3f5fad(_0x197f07._0x2af1c0,_0x197f07._0x2c8026,_0x197f07._0xe024ca,0x2cd)),_0x3fd5d3['emit']('ui:lastMetadata',null),_0x3fd5d3[_0x2d330b(_0x197f07._0x450dd4,_0x197f07._0x1f5b3c,_0x197f07._0xbf8005,0x61a)](_0x3f5fad(_0x197f07._0x3cd4b8,0x73,0x116,_0x197f07._0x386bca),{'id':_0x7fb3fd['randomUUID'](),'type':_0x3f5fad(0x159,0x24f,0x370,0x382),'content':_0x3f5fad(-0x2d,_0x197f07._0x29bb71,0x4d,-0x89),'metadata':{'timestamp':new Date()['toISOString']()},'color':'green'}),_0x3fd5d3[_0x3f5fad(_0x197f07._0x13b13d,_0x197f07._0x579fc7,_0x197f07._0x227963,0x12a)](_0x2d330b(_0x197f07._0x53f3af,_0x197f07._0x1ede8b,_0x197f07._0x57519d,_0x197f07._0x3ff638),{'id':_0x7fb3fd[_0x3f5fad(0x204,_0x197f07._0x22cffe,0x329,0x336)](),'type':_0x2d330b(_0x197f07._0x224b3a,0x4c3,0x4f5,0x54f),'content':_0x165deb['content'],'metadata':{'timestamp':_0x165deb[_0x2d330b(0x7ec,_0x197f07._0x159508,0x7c8,_0x197f07._0x104dbd)]}}),_0x3fd5d3[_0x3f5fad(_0x197f07._0xf2de3b,0x111,_0x197f07._0x4ccd87,0x158)](_0x2d330b(_0x197f07._0x3b3e6c,_0x197f07._0x3d8b92,_0x197f07._0x7394c6,0x6a6));}catch(_0x116944){_0x3fd5d3['emit'](_0x3f5fad(_0x197f07._0x560b8b,_0x197f07._0x30c8f0,0x26,0x4a),{'id':_0x7fb3fd[_0x2d330b(0x808,_0x197f07._0x3da2eb,_0x197f07._0x1878e1,_0x197f07._0x1410ef)](),'type':_0x2d330b(_0x197f07._0x5260db,_0x197f07._0x33ba50,_0x197f07._0x3642cc,0x758),'content':_0x3f5fad(0x248,0x1ea,_0x197f07._0x419185,0xb2)+(_0x116944 instanceof Error?_0x116944[_0x2d330b(0x767,_0x197f07._0x4551bb,0x54d,0x64c)]:String(_0x116944)),'metadata':{'timestamp':new Date()['toISOString']()},'color':'red'});}}});}function cn(){or(_0x1e5d4a),nr(_0x1e5d4a),sr(_0x1e5d4a),cr(_0x1e5d4a),dr(_0x1e5d4a),gr(_0x1e5d4a),fr(_0x1e5d4a),vr(_0x1e5d4a),Mr(_0x1e5d4a),Wr(_0x1e5d4a),Xr(_0x1e5d4a),Zr(_0x1e5d4a),Qr(_0x1e5d4a),ln(_0x1e5d4a);}import{useEffect as _0x768609}from'react';import{Fragment as _0x45a936,jsx as _0x30e5ea}from'react/jsx-runtime';function dn({children:_0x117990}){const _0x4c24d9={_0x3a22e9:0x184};let {get:_0x1e80f0,set:_0xec2a6c,delete:_0x12f9a4}=_0x41ebea();return _0x768609(()=>{function _0xb99b8e(_0x34d6c4,_0x56a3d6,_0x4f3713,_0x71c34e){return _0x2644(_0x4f3713- -0xaa,_0x56a3d6);}_0x1e5d4a[_0xb99b8e(0x13b,0x113,_0x4c24d9._0x3a22e9,0x14d)]({'get':_0x1e80f0,'set':_0xec2a6c,'delete':_0x12f9a4});},[_0x1e80f0,_0xec2a6c,_0x12f9a4]),_0x30e5ea(_0x45a936,{'children':_0x117990});}var zt=class{constructor(){const _0xb0bbd9={_0x29cc07:0x373,_0x4fa7ba:0x170},_0x892441={_0x1a2dd0:0x177};function _0x51d4d7(_0x2e5949,_0x3e579d,_0x359c58,_0x112604){return _0x36ee89(_0x112604,_0x359c58-0x2cb,_0x359c58-0x13a,_0x112604-_0x892441._0x1a2dd0);}this['configManager']=_0x4e6683[_0x51d4d7(_0xb0bbd9._0x29cc07,0x37d,0x275,_0xb0bbd9._0x4fa7ba)]();}async[_0x479f18(0x113,0x214,0x1f3,0x2f1)](_0x2319c2){const _0x20c99f={_0x44bfc6:0x114,_0x100a9e:0x18d,_0x1632cd:0xe0,_0x4c9c8e:0x46d,_0x381e22:0x448,_0xdbc23d:0x44a,_0xd376a3:0x3a0,_0x116e5a:0x1bc,_0x1e1a95:0x49c,_0x3baacd:0x1cf,_0x101f92:0x59,_0x37048e:0x293,_0x1db26a:0x30a,_0x2ebc73:0x23c,_0x383cc4:0x33a,_0x523b4b:0x3de,_0x788d85:0x571,_0x109da6:0x529,_0x11c53b:0x43b,_0x4fc8ea:0x3de,_0x5d0c65:0x531,_0x421421:0x4fb,_0x24698b:0x50f},_0xfc2b27={_0x3d5055:0x6e,_0x13b52e:0x14c};if(_0x2319c2[_0x3aa7b1(-_0x20c99f._0x44bfc6,-0xec,-_0x20c99f._0x100a9e,0xd)]===0x0){this['showHelp']();return;}function _0x3aa7b1(_0x48da51,_0x36b00e,_0x5f5424,_0x479028){return _0x36ee89(_0x479028,_0x48da51-_0xfc2b27._0x3d5055,_0x5f5424-_0xfc2b27._0x13b52e,_0x479028-0x12e);}function _0x36fa5f(_0x47b21f,_0x31ba93,_0x5b4a32,_0x2fead7){return _0x479f18(_0x47b21f-0x1bb,_0x31ba93-0xf1,_0x31ba93-0x369,_0x47b21f);}let [_0x35ffb1,..._0x48e2c7]=_0x2319c2;switch(_0x35ffb1[_0x3aa7b1(-0x50,_0x20c99f._0x1632cd,-0xf2,-0x2b)]()){case'get':await this[_0x36fa5f(_0x20c99f._0x4c9c8e,_0x20c99f._0x381e22,_0x20c99f._0xdbc23d,_0x20c99f._0xd376a3)](_0x48e2c7);break;case _0x3aa7b1(-0x121,-0x3d,-0x11a,-_0x20c99f._0x116e5a):await this[_0x36fa5f(0x39e,0x437,_0x20c99f._0x1e1a95,0x4e0)](_0x48e2c7);break;case'list':await this['handleList'](_0x48e2c7);break;case _0x3aa7b1(-0x16e,-_0x20c99f._0x3baacd,-0x255,-_0x20c99f._0x101f92):case'-h':case _0x36fa5f(_0x20c99f._0x37048e,_0x20c99f._0x1db26a,_0x20c99f._0x2ebc73,0x20d):this[_0x36fa5f(_0x20c99f._0x383cc4,_0x20c99f._0x523b4b,0x37d,0x34d)]();break;default:console[_0x36fa5f(0x403,0x3e3,0x4aa,0x40a)](_0x36fa5f(_0x20c99f._0x788d85,_0x20c99f._0x109da6,0x524,_0x20c99f._0x11c53b)+_0x35ffb1),this[_0x36fa5f(0x3b4,_0x20c99f._0x4fc8ea,0x2ea,0x36d)](),process[_0x36fa5f(0x548,_0x20c99f._0x5d0c65,_0x20c99f._0x421421,_0x20c99f._0x24698b)](0x1);}}async['handleGet'](_0x9bd1db){const _0x35afeb={_0x1232cf:0x259,_0x4ea334:0x27d,_0x230ce4:0x1c9,_0x1cd8ec:0x33c,_0xa29217:0x25f,_0x1de98b:0x139,_0x59d6c7:0x26e,_0x36ad89:0x1e0,_0x4f1b54:0x2d6,_0x23d594:0x290,_0x385a0e:0x2b6,_0x312a66:0x1f1,_0x1a39a2:0x1d5,_0x105b82:0x382,_0x252be3:0x3b2,_0x4a706f:0x1f7,_0x1c544c:0x3c5,_0x2b6a8d:0x2ab,_0x3c6819:0x3b8,_0x1db4a4:0x22a,_0x45a9b4:0x24a,_0xa67fa5:0x2ca,_0x1cd9f7:0x4e,_0x22e2bc:0x1db,_0x50a772:0xb8,_0x2f3c03:0x29f,_0x2feacb:0x24d},_0x5f2e3e={_0x47b8d9:0x18a,_0x18f428:0x8c},_0x4404db={_0x2ebd3f:0x355,_0x11ef72:0xb6};_0x9bd1db['length']===0x0&&(console['error']('Error:\x20config\x20key\x20is\x20required\x20for\x20get\x20command'),console[_0x393722(_0x35afeb._0x1232cf,0x239,_0x35afeb._0x4ea334,_0x35afeb._0x230ce4)](_0x393722(0x1bc,0x219,_0x35afeb._0x1cd8ec,0x2b2)),process[_0x28c10d(0xcc,0x27a,0x127,0x1bc)](0x1));let _0x578214=_0x9bd1db[0x0],_0x2228b6=_0x9bd1db[_0x393722(0x4b1,0x3a1,0x461,0x324)](_0x393722(0x30a,0x249,0x282,0x2e8)),_0x53e45c=_0x2228b6!==-0x1&&_0x9bd1db[_0x2228b6+0x1]?_0x9bd1db[_0x2228b6+0x1]:void 0x0;function _0x393722(_0x298b23,_0x267182,_0x3d6b2b,_0x3597ed){return _0x36ee89(_0x3d6b2b,_0x267182-_0x4404db._0x2ebd3f,_0x3d6b2b-_0x4404db._0x11ef72,_0x3597ed-0x122);}function _0x28c10d(_0x32d6fb,_0x1eee78,_0xc29d7c,_0xf3570d){return _0x36ee89(_0xc29d7c,_0xf3570d-_0x5f2e3e._0x47b8d9,_0xc29d7c-_0x5f2e3e._0x18f428,_0xf3570d-0x11a);}try{await this['configManager'][_0x28c10d(0x5c,0x170,_0x35afeb._0xa29217,_0x35afeb._0x1de98b)]();let _0x37077b=this[_0x28c10d(_0x35afeb._0x59d6c7,0x20d,_0x35afeb._0x36ad89,0x1fb)][_0x393722(0x3f9,0x32c,_0x35afeb._0x4f1b54,_0x35afeb._0x23d594)](_0x578214,_0x53e45c);console[_0x393722(_0x35afeb._0x385a0e,_0x35afeb._0x312a66,0x24d,_0x35afeb._0x1a39a2)](_0x37077b===void 0x0?_0x393722(_0x35afeb._0x105b82,0x39b,0x3a3,0x3f7)+_0x578214+_0x393722(0x222,0x2b1,_0x35afeb._0x252be3,_0x35afeb._0x4a706f):this[_0x393722(_0x35afeb._0x1c544c,_0x35afeb._0x2b6a8d,_0x35afeb._0x3c6819,_0x35afeb._0x1db4a4)](_0x37077b));}catch(_0xe757c9){console['error'](_0x393722(_0x35afeb._0x45a9b4,0x2e0,_0x35afeb._0xa67fa5,0x39b)+(_0xe757c9 instanceof Error?_0xe757c9[_0x28c10d(-_0x35afeb._0x1cd9f7,_0x35afeb._0x22e2bc,0x197,_0x35afeb._0x50a772)]:String(_0xe757c9))),process[_0x393722(0x4bc,0x387,_0x35afeb._0x2f3c03,_0x35afeb._0x2feacb)](0x1);}}async[_0x36ee89(-0x4d,-0xc8,0x69,-0x88)](_0x53a62c){const _0x2155a1={_0xd358ee:0x32e,_0x2204f6:0x2b8,_0x267397:0x3ec,_0x5121bf:0x2b3,_0x21d82d:0x2db,_0x3da4d3:0x46c,_0x110a5c:0x38c,_0x146449:0x574,_0x578c6e:0x31b,_0x3583d8:0x1cd,_0x57621e:0x174,_0x17b941:0x1da,_0x2ab843:0x10f,_0x1d0eca:0x112,_0x11dd67:0xf,_0x2b997f:0x2fc,_0x5712ee:0x3a7,_0x52d351:0x494,_0x3063d6:0xc0,_0x537b20:0x1e,_0xcabd8e:0x249,_0x1bddf1:0x4b,_0x33ca0f:0x390,_0x49ee5a:0x3b0,_0x469958:0x2a1,_0x3bf7f0:0x170,_0x58ad92:0x1c8,_0x4ed247:0x110,_0xad3942:0x4ed,_0xe87956:0x435,_0x36bdd9:0x586},_0x2dc8db={_0x3979dd:0xdd},_0x11bc63={_0x97ca3e:0x64,_0x43fa3c:0x2a4};function _0x1c506b(_0x38b077,_0x319839,_0x22a6e3,_0x107deb){return _0x479f18(_0x38b077-_0x11bc63._0x97ca3e,_0x319839-0xed,_0x319839-_0x11bc63._0x43fa3c,_0x22a6e3);}_0x53a62c[_0x1c506b(_0x2155a1._0xd358ee,_0x2155a1._0x2204f6,_0x2155a1._0x267397,0x360)]<0x2&&(console[_0x1c506b(0x25e,0x31e,0x380,0x422)]('Error:\x20config\x20key\x20and\x20value\x20are\x20required\x20for\x20set\x20command'),console['error'](_0x1c506b(0x18c,_0x2155a1._0x5121bf,0x17e,_0x2155a1._0x21d82d)),process[_0x1c506b(0x3d9,_0x2155a1._0x3da4d3,_0x2155a1._0x110a5c,_0x2155a1._0x146449)](0x1));function _0x32433a(_0x2bfce1,_0x32e0c9,_0x12bc93,_0x2f99ae){return _0x479f18(_0x2bfce1-_0x2dc8db._0x3979dd,_0x32e0c9-0xd1,_0x2bfce1- -0x164,_0x2f99ae);}let _0x2d68c4=_0x53a62c[0x0],_0x2638b2=_0x53a62c[0x1],_0x279ca8=_0x1c506b(_0x2155a1._0x578c6e,0x30b,0x3ab,0x3a7);_0x53a62c[_0x1c506b(_0x2155a1._0x3583d8,0x294,0x366,0x1de)]('--local')?_0x279ca8='local':_0x53a62c[_0x32433a(-_0x2155a1._0x57621e,-0x5e,-_0x2155a1._0x17b941,-0x146)]('--global')&&(_0x279ca8='global');try{await this['configManager'][_0x32433a(-0x1f,-_0x2155a1._0x2ab843,_0x2155a1._0x1d0eca,-_0x2155a1._0x11dd67)]();let _0x3337e6=this[_0x1c506b(_0x2155a1._0x2b997f,_0x2155a1._0x5712ee,0x479,_0x2155a1._0x52d351)](_0x2638b2);await this['configManager'][_0x32433a(-0x15d,-_0x2155a1._0x3063d6,-0x10b,-0x248)](_0x2d68c4,_0x3337e6,_0x279ca8),console['log'](_0x32433a(-0x137,-_0x2155a1._0x537b20,-0x1f9,-_0x2155a1._0xcabd8e)+_0x2d68c4+_0x32433a(-0x17,_0x2155a1._0x1bddf1,0xc0,-0x8)+this[_0x1c506b(0x438,_0x2155a1._0x33ca0f,_0x2155a1._0x49ee5a,_0x2155a1._0x469958)](_0x3337e6)+'\x20('+_0x279ca8+'\x20scope)');}catch(_0x12590b){console[_0x32433a(-0xea,-0x18f,-_0x2155a1._0x3bf7f0,-0x89)](_0x32433a(-0x12c,-0x1bd,-_0x2155a1._0x58ad92,-_0x2155a1._0x4ed247)+(_0x12590b instanceof Error?_0x12590b[_0x32433a(-0xa0,-0x57,0x4f,-0x95)]:String(_0x12590b))),process[_0x1c506b(_0x2155a1._0xad3942,0x46c,_0x2155a1._0xe87956,_0x2155a1._0x36bdd9)](0x1);}}async[_0x479f18(-0x49,0x169,0x87,-0x55)](_0x368bd6){const _0x2c1f56={_0x53ee08:0x615,_0x5619a2:0x76b,_0x34fff6:0x529,_0x1aa971:0x46e,_0x3c8f43:0x5df,_0x53812c:0x520,_0x4e8105:0x6d0,_0x7d0fc4:0x560,_0x3f8569:0x597,_0x5444c0:0x636,_0x1ad15e:0x792,_0x271d2b:0x677,_0x172e62:0x48f,_0xf656df:0x5e3,_0xa02317:0xc5,_0x589503:0xe4,_0x408772:0x109,_0x28b49e:0x1c8,_0x194792:0x7cf,_0xb45583:0x7cc,_0x114ff6:0x6e9,_0x5686be:0x6ae,_0x6856b1:0x49c,_0x5dd97d:0x5d0,_0x401aab:0x393,_0x5e98fc:0x3d5,_0x4e4a32:0x46d,_0x3e083a:0x6df,_0x539115:0x423,_0x41366b:0x552,_0x55e85e:0x4b5,_0x4185be:0x59c},_0x1e348b={_0x167026:0x15},_0x2047dc={_0x2f7fb5:0x66e,_0x13bdc0:0x128,_0x366c2a:0xfd};function _0xb0d81d(_0x442ec4,_0x1980d1,_0x2ca844,_0x4a9ca1){return _0x36ee89(_0x1980d1,_0x4a9ca1-_0x2047dc._0x2f7fb5,_0x2ca844-_0x2047dc._0x13bdc0,_0x4a9ca1-_0x2047dc._0x366c2a);}let _0x3cd7f5=_0x368bd6['indexOf']('--scope'),_0x256b41=_0x3cd7f5!==-0x1&&_0x368bd6[_0x3cd7f5+0x1]?_0x368bd6[_0x3cd7f5+0x1]:void 0x0;function _0xaad8f0(_0x34bec8,_0xd1ff93,_0x111bfc,_0x2725c6){return _0x479f18(_0x34bec8-0x19b,_0xd1ff93-_0x1e348b._0x167026,_0x2725c6-0x196,_0xd1ff93);}try{if(await this['configManager']['load'](),_0x256b41){let _0x2dbd67=this[_0xb0d81d(_0x2c1f56._0x53ee08,_0x2c1f56._0x5619a2,0x7cd,0x6df)]['getScopeSource'](_0x256b41);_0x2dbd67?(console['log'](_0xb0d81d(_0x2c1f56._0x34fff6,_0x2c1f56._0x1aa971,_0x2c1f56._0x3c8f43,_0x2c1f56._0x53812c)+_0x256b41+'\x20scope\x20('+_0x2dbd67[_0xb0d81d(_0x2c1f56._0x4e8105,0x4f3,_0x2c1f56._0x7d0fc4,_0x2c1f56._0x3f8569)]+'):'),console[_0xb0d81d(0x5b5,_0x2c1f56._0x5444c0,0x412,0x50a)](this[_0xb0d81d(0x55d,0x6c3,_0x2c1f56._0x1ad15e,_0x2c1f56._0x271d2b)](_0x2dbd67[_0xb0d81d(0x66a,_0x2c1f56._0x172e62,_0x2c1f56._0xf656df,0x5af)]))):console[_0xaad8f0(_0x2c1f56._0xa02317,_0x2c1f56._0x589503,_0x2c1f56._0x408772,_0x2c1f56._0x28b49e)](_0xb0d81d(_0x2c1f56._0x194792,0x5f2,_0x2c1f56._0xb45583,_0x2c1f56._0x114ff6)+_0x256b41+_0xb0d81d(_0x2c1f56._0x5686be,0x693,_0x2c1f56._0x6856b1,_0x2c1f56._0x5dd97d));}else console['log'](_0xaad8f0(_0x2c1f56._0x401aab,_0x2c1f56._0x5e98fc,_0x2c1f56._0x4e4a32,0x395)),console[_0xaad8f0(0x1f0,0x1da,0x1aa,0x1c8)](this['formatConfig'](this[_0xb0d81d(0x65f,0x66f,0x611,_0x2c1f56._0x3e083a)]['getConfig']()));}catch(_0x50738c){console[_0xb0d81d(0x56d,_0x2c1f56._0x539115,0x67e,_0x2c1f56._0x41366b)](_0xaad8f0(0x209,0x1ba,0x17c,0x2b0)+(_0x50738c instanceof Error?_0x50738c[_0xb0d81d(0x552,_0x2c1f56._0x55e85e,0x489,_0x2c1f56._0x4185be)]:String(_0x50738c))),process['exit'](0x1);}}['parseValue'](_0x579563){const _0x12ee82={_0x391e5d:0x126,_0xdf999d:0x130,_0x54714d:0x57,_0x3e406d:0xee,_0x29cc1d:0x19c,_0x32ffd7:0x182,_0x5d88d4:0xe5,_0x16f5a:0xb4,_0x3753e4:0x25b,_0x371210:0x342,_0x3ce2e9:0x259,_0x47ce14:0x1c9,_0x2d63bb:0x20c,_0x19f9de:0x2d0,_0x3ed346:0x248,_0xf0cf8b:0xcf,_0x363df8:0x191},_0x5c9e59={_0x2fb058:0x176},_0x4f1f06={_0x28b1f3:0x50,_0x2419c8:0x16a,_0x322418:0x15b};if(_0x579563===_0x415210(-_0x12ee82._0x391e5d,-_0x12ee82._0xdf999d,-_0x12ee82._0x54714d,-_0x12ee82._0x3e406d))return!0x0;if(_0x579563==='false')return!0x1;function _0x415210(_0xe644be,_0x118b37,_0x26551a,_0x471b37){return _0x479f18(_0xe644be-_0x4f1f06._0x28b1f3,_0x118b37-_0x4f1f06._0x2419c8,_0xe644be- -_0x4f1f06._0x322418,_0x118b37);}if(_0x579563===_0x3200f9(0x264,0x195,0x334,0x2a4))return null;if(_0x579563===_0x415210(-_0x12ee82._0x29cc1d,-0x2aa,-0x21b,-_0x12ee82._0x32ffd7))return;let _0x55663e=Number(_0x579563);if(!Number[_0x415210(0x31,_0x12ee82._0x5d88d4,-_0x12ee82._0x16f5a,0x10d)](_0x55663e)&&_0x579563===_0x55663e[_0x3200f9(_0x12ee82._0x3753e4,_0x12ee82._0x371210,0x378,_0x12ee82._0x3ce2e9)]())return _0x55663e;if(_0x579563['startsWith']('{')&&_0x579563[_0x3200f9(0x328,_0x12ee82._0x47ce14,_0x12ee82._0x2d63bb,0x279)]('}')||_0x579563[_0x3200f9(0x2c4,0x1ce,0x2b0,_0x12ee82._0x19f9de)]('[')&&_0x579563[_0x3200f9(_0x12ee82._0x3ed346,0x353,0x201,0x279)](']'))try{return JSON[_0x415210(0x73,-0x6d,_0x12ee82._0xf0cf8b,_0x12ee82._0x363df8)](_0x579563);}catch{}function _0x3200f9(_0x5df36e,_0x55a11a,_0x48d8a4,_0x92de34){return _0x36ee89(_0x48d8a4,_0x92de34-0x3ac,_0x48d8a4-_0x5c9e59._0x2fb058,_0x92de34-0x1c6);}return _0x579563;}[_0x36ee89(-0x108,-0xaa,0x32,-0x1e)](_0x1e741e){const _0x599137={_0x1c624a:0x883,_0xe81ccc:0x754,_0x3cf121:0x66d,_0x625d58:0x635},_0x4b6964={_0x2e5d99:0x5a2};function _0x1c53df(_0x124698,_0x104407,_0x198dbe,_0x7eb35e){return _0x479f18(_0x124698-0x53,_0x104407-0x1b4,_0x104407-_0x4b6964._0x2e5d99,_0x124698);}return typeof _0x1e741e==_0x1c53df(_0x599137._0x1c624a,_0x599137._0xe81ccc,_0x599137._0x3cf121,_0x599137._0x625d58)?_0x1e741e:JSON['stringify'](_0x1e741e,null,0x2);}['formatConfig'](_0x28622a){const _0x431683={_0x597126:0x5be,_0x32d9c7:0x4f7,_0x485d7d:0x6c6,_0x267f17:0x5e0},_0x542f3b={_0x4c1f54:0x28};function _0x2b58b0(_0x253516,_0x3dc216,_0x527e75,_0x1a9c02){return _0x479f18(_0x253516-0xfe,_0x3dc216-_0x542f3b._0x4c1f54,_0x253516-0x60c,_0x1a9c02);}return JSON[_0x2b58b0(_0x431683._0x597126,_0x431683._0x32d9c7,_0x431683._0x485d7d,_0x431683._0x267f17)](_0x28622a,null,0x2);}[_0x36ee89(-0x14,-0x121,-0x176,-0x38)](){const _0x4fd859={_0x53320e:0x406,_0x110174:0x4ad,_0x3fa13c:0x54d,_0x2c86b6:0x449},_0x2ec61c={_0x27c4fd:0x155},_0x5dc0c2={_0x101420:0x19};function _0x343752(_0x1fae40,_0x6d4c96,_0x7ec2f8,_0x1fbece){return _0x36ee89(_0x7ec2f8,_0x1fbece-0x747,_0x7ec2f8-_0x5dc0c2._0x101420,_0x1fbece-0x94);}function _0x5da046(_0x12c087,_0xc99cc3,_0x1b9293,_0x4a6b3d){return _0x479f18(_0x12c087-0x11f,_0xc99cc3-_0x2ec61c._0x27c4fd,_0x1b9293-0x47b,_0x12c087);}console[_0x5da046(_0x4fd859._0x53320e,0x39c,_0x4fd859._0x110174,0x47b)](_0x5da046(_0x4fd859._0x3fa13c,0x364,_0x4fd859._0x2c86b6,0x3d8));}};function _0x2644(_0x3074d9,_0x3a2426){const _0x34c556=_0x34c5();return _0x2644=function(_0x2644ad,_0x2e69d9){_0x2644ad=_0x2644ad-0x1d2;let _0x3c8abd=_0x34c556[_0x2644ad];if(_0x2644['ivTWrm']===undefined){var _0xd49257=function(_0x2089f2){const _0x5277fb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x28b262='',_0x176576='';for(let _0x57fd93=0x0,_0x41ebea,_0x42e4fa,_0x428786=0x0;_0x42e4fa=_0x2089f2['charAt'](_0x428786++);~_0x42e4fa&&(_0x41ebea=_0x57fd93%0x4?_0x41ebea*0x40+_0x42e4fa:_0x42e4fa,_0x57fd93++%0x4)?_0x28b262+=String['fromCharCode'](0xff&_0x41ebea>>(-0x2*_0x57fd93&0x6)):0x0){_0x42e4fa=_0x5277fb['indexOf'](_0x42e4fa);}for(let _0xd2ac0a=0x0,_0x59d67c=_0x28b262['length'];_0xd2ac0a<_0x59d67c;_0xd2ac0a++){_0x176576+='%'+('00'+_0x28b262['charCodeAt'](_0xd2ac0a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x176576);};_0x2644['HTdpRX']=_0xd49257,_0x3074d9=arguments,_0x2644['ivTWrm']=!![];}const _0x26037f=_0x34c556[0x0],_0x3135bd=_0x2644ad+_0x26037f,_0x5bb620=_0x3074d9[_0x3135bd];return!_0x5bb620?(_0x3c8abd=_0x2644['HTdpRX'](_0x3c8abd),_0x3074d9[_0x3135bd]=_0x3c8abd):_0x3c8abd=_0x5bb620,_0x3c8abd;},_0x2644(_0x3074d9,_0x3a2426);}import{execSync as _0x5959a5,spawn as _0x120045}from'child_process';var lo=_0x479f18(0x19a,0x6f,0xda,0x1b2),co;(_0x4db2b1=>{const _0x166a03={_0x1de9ca:0x240,_0x3223eb:0x584,_0x513042:0x60b,_0x2e5f59:0x47d},_0x5f1166={_0x4f0a9e:0x5b1,_0x2e9668:0x4b1,_0x3949a9:0x195,_0x19b4b2:0x14f,_0x207a1b:0x18,_0x189aaf:0x16f,_0x4125eb:0xf4,_0x56356f:0x619,_0x4dd577:0x503,_0x20c82c:0x2c3,_0x45bb94:0x19d,_0x4e70e7:0x78b,_0x517b6f:0x743,_0x5bb56c:0x78f},_0x4343ee={_0x405ba8:0x615,_0x12ffc9:0x53e,_0x416cd8:0x4f1,_0x33b4da:0x524,_0x3895d6:0x507,_0x1bf462:0x3f8,_0x3d762b:0x5f7,_0x115e19:0x545,_0x383846:0x4c1,_0x3719ed:0x718,_0x23ac8e:0x6e0,_0x137d8c:0x358,_0xcace84:0x2d6},_0x260b36={_0x18f5e4:0x1c5},_0x70983a={_0x1a5408:0x166,_0x1df513:0x2d,_0x18610a:0x504},_0x577023={_0x4e79cc:0xf7,_0x4fbe19:0x226,_0x5028a2:0x12e,_0x36918f:0x1f6,_0x599356:0xc9,_0x362ea5:0x2aa,_0x57484e:0x203,_0x34b554:0x24f,_0x3488d7:0x587,_0x1404c8:0x4b3,_0x21e62d:0x749,_0x4e7298:0x6b3,_0x565dbd:0x74e,_0x320b03:0x629,_0x3c8e7e:0x6a1,_0x35b605:0x62c,_0x3e4b97:0x628,_0x4512c6:0x4c1,_0x416989:0x22c,_0x584b2c:0x218,_0x33e75d:0x28b,_0x44c017:0x1f0,_0x190d8d:0x37,_0x27ad6c:0x58a,_0x2d67c4:0x50c,_0x3d7ef8:0x16e,_0x2481bc:0x15d,_0x31c481:0xb8,_0x5efdd7:0x115,_0x36e72c:0x1f,_0x2edd1d:0xda,_0x29737b:0x360,_0x3ea9bb:0x2d2,_0x307df0:0x287,_0x594ddf:0x61b,_0x2a26f5:0x32e,_0x4e6e01:0x627,_0x2c40ac:0x57a,_0x33045d:0x544,_0x5b3c99:0x2cd,_0x4ad0a2:0x171,_0x307f7b:0x661,_0x3eaa06:0xc0,_0x30c28f:0x5fc,_0x3c5bee:0x4d7,_0x2be50e:0x5da,_0x194b9c:0x4c4,_0x445318:0x5fa,_0x7b8320:0x4d8,_0x72a163:0x58d,_0xe71f9d:0xdc,_0xe3f85f:0x62,_0x3f366d:0xd1,_0x3fd325:0x252,_0x582bf3:0x3c8,_0x3df433:0x3e6,_0x44c40a:0x698,_0x1147e4:0x543,_0xfc222e:0x53d,_0x17c6dc:0x5e9,_0x107194:0x206,_0x2e5866:0x11b,_0x5d9cff:0x1f0,_0x446a43:0x240,_0x4762af:0xee,_0x58fce3:0x1de,_0x2b171b:0x130,_0x1e4b0e:0xf4,_0x4ffa70:0x115,_0x9e3aac:0x223,_0x9d20ff:0x323,_0x46795c:0x1ff,_0x2d1c26:0x51e,_0xdbd44b:0x72a,_0x55a4cc:0x62e,_0x233749:0x28e,_0x4e8f60:0x22e},_0xe19f4={_0x216853:0x72d,_0x398607:0xc4,_0x673438:0x17a},_0x32ed75={_0x31f4ac:0x27,_0x3b4513:0x25,_0x256878:0xe4,_0xc01051:0x34,_0x4f1bcc:0xb7,_0x5b2de3:0x9c,_0x5d0fc7:0xe9,_0x53ecd6:0x26,_0x504475:0x17e,_0x2c0a8a:0x8},_0x12890f={_0x43ebee:0x1a4,_0x869474:0xa2};function _0x38fe5b(_0x22066e,_0x250a26,_0x5aaa12,_0x478b81){return _0x479f18(_0x22066e-0x1d8,_0x250a26-_0x12890f._0x43ebee,_0x5aaa12-_0x12890f._0x869474,_0x478b81);}async function _0x35f2d0(_0x12b008){const _0x51196f={_0x5d463d:0x298};function _0xa22e6a(_0x3d8199,_0x42d381,_0x1d6bcc,_0x141891){return _0x2644(_0x1d6bcc- -0x2a2,_0x3d8199);}function _0x150294(_0x51979e,_0x5c8de1,_0x5cf1ab,_0x596cc3){return _0x2644(_0x596cc3- -_0x51196f._0x5d463d,_0x5c8de1);}try{let _0x479a81=_0xafa1df(),_0x383d29=_0x32837b(_0x479a81,_0x12b008);return console['log']('🔄\x20Updating\x20'+lo+_0xa22e6a(_0x32ed75._0x31f4ac,0x35,-0x72,_0x32ed75._0x3b4513)),console[_0x150294(_0x32ed75._0x256878,0x3b,-0xe9,-_0x32ed75._0xc01051)]('📦\x20Using:\x20'+_0x383d29+'\x0a'),_0x5959a5(_0x383d29,{'stdio':'inherit','timeout':0x1d4c0}),{'success':!0x0,'message':_0x150294(0x119,0x9e,_0x32ed75._0x4f1bcc,_0x32ed75._0x5b2de3)+(_0x12b008||_0x150294(_0x32ed75._0x5d0fc7,0x111,0x11a,0x3f))};}catch(_0x1739b4){return{'success':!0x1,'message':_0x150294(-0x20,0x8f,-0x114,-_0x32ed75._0x53ecd6),'error':_0x1739b4 instanceof Error?_0x1739b4[_0xa22e6a(0xd3,_0x32ed75._0x504475,0x54,-_0x32ed75._0x2c0a8a)]:String(_0x1739b4)};}}function _0x587990(_0x28cb53,_0x490677,_0x178889,_0x5873bd){return _0x36ee89(_0x178889,_0x490677-_0xe19f4._0x216853,_0x178889-_0xe19f4._0x398607,_0x5873bd-_0xe19f4._0x673438);}_0x4db2b1[_0x38fe5b(0x144,_0x166a03._0x1de9ca,0x234,0x157)]=_0x35f2d0;function _0xafa1df(){const _0x5691f1={_0x22a29c:0x3,_0x1f0fb0:0x152,_0x4e241c:0x46d},_0x1178f8={_0x3ee5ef:0x1d2,_0x5454b0:0x1a3};try{let _0x27e320=_0x5959a5(_0x3d85c8(0x162,_0x577023._0x4e79cc,_0x577023._0x4fbe19,_0x577023._0x5028a2),{'encoding':_0x3d85c8(0x165,0x181,_0x577023._0x36918f,_0x577023._0x599356),'timeout':0xbb8})[_0x3d85c8(0x1f3,_0x577023._0x362ea5,_0x577023._0x57484e,_0x577023._0x34b554)]();if(_0x27e320)try{let _0x143d83=_0x5959a5('readlink\x20\x22'+_0x27e320+'\x22',{'encoding':_0xb8aa9b(0x44d,_0x577023._0x3488d7,0x4bb,_0x577023._0x1404c8),'timeout':0xbb8})[_0xb8aa9b(_0x577023._0x3488d7,_0x577023._0x21e62d,_0x577023._0x4e7298,0x639)]();if(_0x143d83['includes'](_0xb8aa9b(_0x577023._0x565dbd,_0x577023._0x320b03,_0x577023._0x3c8e7e,_0x577023._0x35b605))||_0x143d83[_0xb8aa9b(0x3e9,0x5c5,_0x577023._0x3e4b97,0x4ff)](_0xb8aa9b(0x51a,_0x577023._0x4512c6,0x6ac,0x586)))return _0x3d85c8(_0x577023._0x416989,_0x577023._0x584b2c,_0x577023._0x33e75d,0x1f0);if(_0x143d83[_0x3d85c8(0x12f,_0x577023._0x44c017,_0x577023._0x190d8d,0x115)](_0xb8aa9b(0x6ef,_0x577023._0x27ad6c,_0x577023._0x2d67c4,0x5bd))||_0x143d83[_0x3d85c8(_0x577023._0x3d7ef8,_0x577023._0x2481bc,_0x577023._0x31c481,_0x577023._0x5efdd7)](_0x3d85c8(0x2c,-0x3c,_0x577023._0x36e72c,_0x577023._0x2edd1d)))return _0x3d85c8(_0x577023._0x29737b,_0x577023._0x3ea9bb,_0x577023._0x307df0,0x244);if(_0x143d83[_0xb8aa9b(_0x577023._0x594ddf,0x456,0x401,0x4ff)](_0x3d85c8(_0x577023._0x2a26f5,0x303,0x28c,0x241))||_0x143d83[_0x3d85c8(0x31,0x9e,0x228,0x115)](_0xb8aa9b(0x6e1,_0x577023._0x4e6e01,0x732,0x619)))return _0x3d85c8(0x28c,0x191,0x17f,0x22e);}catch{if(_0x27e320[_0xb8aa9b(_0x577023._0x2c40ac,_0x577023._0x33045d,0x3cb,0x4ff)](_0x3d85c8(_0x577023._0x5b3c99,0x2dd,0x1ad,0x242))||_0x27e320[_0x3d85c8(0xfe,_0x577023._0x4ad0a2,0x18d,_0x577023._0x5efdd7)](_0xb8aa9b(0x47b,0x5ad,_0x577023._0x307f7b,0x586)))return'pnpm';if(_0x27e320[_0x3d85c8(0x137,_0x577023._0x3eaa06,0xc3,0x115)]('/yarn/')||_0x27e320['includes'](_0xb8aa9b(_0x577023._0x30c28f,_0x577023._0x3c5bee,_0x577023._0x2be50e,_0x577023._0x194b9c)))return'yarn';}}catch{}function _0x3d85c8(_0x3dc32c,_0x4847c5,_0x16b86c,_0x3e2f2b){return _0x38fe5b(_0x3dc32c-_0x1178f8._0x3ee5ef,_0x4847c5-_0x1178f8._0x5454b0,_0x3e2f2b-0x83,_0x4847c5);}function _0xb8aa9b(_0x3566db,_0x17b517,_0x4780e8,_0x15515c){return _0x38fe5b(_0x3566db-_0x5691f1._0x22a29c,_0x17b517-_0x5691f1._0x1f0fb0,_0x15515c-_0x5691f1._0x4e241c,_0x17b517);}try{if(_0x5959a5(_0xb8aa9b(_0x577023._0x445318,_0x577023._0x7b8320,0x46c,_0x577023._0x72a163),{'encoding':_0x3d85c8(0x4b,_0x577023._0xe71f9d,_0x577023._0xe3f85f,0xc9),'timeout':0x1388})['includes']('@nuvin/nuvin-cli'))return'npm';}catch{}try{if(_0x5959a5(_0x3d85c8(0x127,_0x577023._0x3f366d,_0x577023._0x3fd325,0x171),{'encoding':_0xb8aa9b(_0x577023._0x582bf3,_0x577023._0x3df433,0x58b,0x4b3),'timeout':0x1388})['includes'](_0xb8aa9b(_0x577023._0x44c40a,_0x577023._0x1147e4,_0x577023._0xfc222e,_0x577023._0x17c6dc)))return _0x3d85c8(_0x577023._0x107194,_0x577023._0x2e5866,0x2dd,_0x577023._0x5d9cff);}catch{}try{if(_0x5959a5(_0x3d85c8(0x188,_0x577023._0x446a43,0x1fa,0x26b),{'encoding':_0x3d85c8(_0x577023._0x4762af,_0x577023._0x58fce3,_0x577023._0x2b171b,0xc9),'timeout':0x1388})[_0x3d85c8(0xc2,0x1b,_0x577023._0x1e4b0e,_0x577023._0x4ffa70)](_0x3d85c8(_0x577023._0x9e3aac,_0x577023._0x9d20ff,0x169,_0x577023._0x46795c)))return _0xb8aa9b(_0x577023._0x2d1c26,_0x577023._0xdbd44b,0x521,_0x577023._0x55a4cc);}catch{}return _0x3d85c8(_0x577023._0x233749,0x2e0,0x171,_0x577023._0x4e8f60);}function _0x32837b(_0x5dc512,_0x17b793){function _0x93c614(_0x28119b,_0x3bf218,_0x5ced96,_0xceec2c){return _0x38fe5b(_0x28119b-_0x70983a._0x1a5408,_0x3bf218-_0x70983a._0x1df513,_0x28119b-_0x70983a._0x18610a,_0x5ced96);}function _0x3f6711(_0xe95340,_0x8207aa,_0x5b58c3,_0x598f7d){return _0x38fe5b(_0xe95340-_0x260b36._0x18f5e4,_0x8207aa-0x7c,_0xe95340-0x384,_0x5b58c3);}let _0x56eaa8=_0x17b793?lo+'@'+_0x17b793:lo+_0x93c614(_0x4343ee._0x405ba8,0x516,0x66b,_0x4343ee._0x12ffc9);switch(_0x5dc512){case _0x3f6711(_0x4343ee._0x416cd8,0x439,0x3f6,_0x4343ee._0x33b4da):return _0x3f6711(_0x4343ee._0x3895d6,0x637,_0x4343ee._0x1bf462,_0x4343ee._0x3d762b)+_0x56eaa8;case _0x3f6711(_0x4343ee._0x115e19,0x435,0x4f7,_0x4343ee._0x383846):return _0x93c614(0x7b6,0x71d,_0x4343ee._0x3719ed,_0x4343ee._0x23ac8e)+_0x56eaa8;default:return _0x3f6711(0x40b,_0x4343ee._0x137d8c,0x370,_0x4343ee._0xcace84)+_0x56eaa8;}}async function _0xb0a728(){const _0x3242f6={_0x4d8ae7:0x145};let {UpdateChecker:_0x21a7e4}=await import('./UpdateChecker-KPQTYN7Z.js');function _0x25657d(_0x302066,_0x2d907f,_0x3bbbe4,_0x17e502){return _0x38fe5b(_0x302066-0x8,_0x2d907f-0xa,_0x3bbbe4- -0x45,_0x2d907f);}function _0x270afe(_0x5f5a7a,_0x1274ce,_0x56af5a,_0x33ed39){return _0x38fe5b(_0x5f5a7a-0x33,_0x1274ce-_0x3242f6._0x4d8ae7,_0x1274ce-0x4f3,_0x33ed39);}try{let _0x218184=await _0x21a7e4[_0x270afe(0x562,_0x5f1166._0x4f0a9e,0x6e7,_0x5f1166._0x2e9668)]();if(!_0x218184[_0x25657d(0x265,0x121,_0x5f1166._0x3949a9,_0x5f1166._0x19b4b2)])return!0x1;let _0x257022=_0xafa1df(),_0x3ec4c9=_0x32837b(_0x257022,_0x218184[_0x25657d(_0x5f1166._0x207a1b,_0x5f1166._0x189aaf,0x102,_0x5f1166._0x4125eb)]);return _0x120045('sh',['-c',_0x3ec4c9],{'detached':!0x0,'stdio':_0x270afe(0x572,_0x5f1166._0x56356f,_0x5f1166._0x4dd577,0x66a)})[_0x25657d(_0x5f1166._0x20c82c,_0x5f1166._0x45bb94,0x1d2,0x150)](),console['log'](_0x270afe(0x830,_0x5f1166._0x4e70e7,_0x5f1166._0x517b6f,_0x5f1166._0x5bb56c)),!0x0;}catch{return!0x1;}}_0x4db2b1[_0x587990(0x495,_0x166a03._0x3223eb,_0x166a03._0x513042,_0x166a03._0x2e5f59)]=_0xb0a728;})(co||={});import{jsx as _0x1e87ef}from'react/jsx-runtime';process[_0x479f18(-0x9c,-0xff,-0x17,-0x58)][_0x479f18(0x42,0x256,0x150,0x1cc)](_0x36ee89(-0x14d,-0x83,-0x1a,-0x66)),process['on'](_0x36ee89(-0x1e7,-0x113,-0x129,-0x4c),_0x4676f7=>{const _0x1bcc4e={_0x1bf53f:0x189,_0x462830:0x55,_0xd04d94:0xe3,_0x82411a:0xa7,_0x16d005:0x15e,_0x18be4d:0x151,_0x2f8857:0xef,_0x18e2d2:0x9d,_0x321b45:0x181,_0x30298e:0x204,_0x4f35c8:0x3a7,_0x4418f6:0x1ec},_0x37b04d={_0xdd03e8:0xcf,_0x396557:0xa},_0x2d0b95={_0x9776b3:0xf6};function _0x4bbe89(_0x311fab,_0xaff632,_0x185666,_0x434b6f){return _0x36ee89(_0x185666,_0x311fab-0x2a5,_0x185666-_0x2d0b95._0x9776b3,_0x434b6f-0xb2);}function _0x5de33e(_0x4c7777,_0x2a537d,_0x138353,_0x8feddc){return _0x36ee89(_0x2a537d,_0x138353- -0x9,_0x138353-_0x37b04d._0xdd03e8,_0x8feddc-_0x37b04d._0x396557);}console[_0x4bbe89(_0x1bcc4e._0x1bf53f,0x218,_0x1bcc4e._0x462830,_0x1bcc4e._0xd04d94)]('\x0a\x0a❌\x20Uncaught\x20Exception:',_0x4676f7),console[_0x4bbe89(0x189,_0x1bcc4e._0x82411a,_0x1bcc4e._0x16d005,_0x1bcc4e._0x18be4d)](_0x5de33e(-_0x1bcc4e._0x2f8857,-_0x1bcc4e._0x18e2d2,-_0x1bcc4e._0x321b45,-_0x1bcc4e._0x30298e)),process[_0x4bbe89(0x2d7,_0x1bcc4e._0x4f35c8,_0x1bcc4e._0x4418f6,0x40f)](0x1);}),process['on'](_0x479f18(-0xd4,0x7,0x2e,-0x76),(_0x55aa88,_0x2e9e0f)=>{const _0x4c5d9c={_0xb3e1d7:0x168,_0x492958:0x3b7,_0x486b5c:0x3a3,_0x3fac54:0x29c,_0x44c68c:0x1d8,_0x30c9d1:0x2f8,_0x206a42:0x4f1,_0x359fa8:0x513,_0x22b2d4:0x236},_0x1b1a84={_0x1c21a0:0xac},_0x32243d={_0x466f87:0x60d,_0x54cfc1:0x81};function _0x4315b3(_0x136fd3,_0x3bde37,_0x406bc1,_0x299013){return _0x36ee89(_0x406bc1,_0x3bde37-_0x32243d._0x466f87,_0x406bc1-_0x32243d._0x54cfc1,_0x299013-0x45);}function _0x88c993(_0x3d293a,_0x5612d9,_0x3495da,_0x1f89ac){return _0x36ee89(_0x1f89ac,_0x3495da-0x3b8,_0x3495da-0xab,_0x1f89ac-_0x1b1a84._0x1c21a0);}console[_0x88c993(_0x4c5d9c._0xb3e1d7,0x2b1,0x29c,0x3b0)](_0x88c993(0x170,0x2a0,0x2a4,0x1c7),_0x2e9e0f),console[_0x88c993(_0x4c5d9c._0x492958,_0x4c5d9c._0x486b5c,_0x4c5d9c._0x3fac54,_0x4c5d9c._0x44c68c)](_0x88c993(_0x4c5d9c._0x30c9d1,0x4b9,0x427,0x2f2),_0x55aa88),console[_0x4315b3(0x612,_0x4c5d9c._0x206a42,0x45d,_0x4c5d9c._0x359fa8)](_0x88c993(_0x4c5d9c._0x22b2d4,0x280,0x240,0x10d)),process['exit'](0x1);});var mo=_0x31b474[_0x479f18(0xbb,0x1ad,0x152,0x153)](_0x2c2030[_0x479f18(-0xf0,0x25,0x3b,0x120)](),_0x479f18(0x85,0x10d,0xf3,0x26));try{_0x40f0df['existsSync'](mo)||_0x40f0df[_0x36ee89(-0xa9,-0x130,-0x1f,-0xbb)](mo,{'recursive':!0x0});}catch{}var pe=_0x1cee11('\x0a\x20\x20Nuvin\x0a\x0a\x20\x20Welcome\x20to\x20Nuvin!\x20Transform\x20your\x20natural\x20language\x20requests\x20into\x20automated\x20coding\x20tasks\x0a\x20\x20with\x20intelligent\x20AI\x20agent\x20workflows.\x20Build\x20faster\x20with\x20your\x20AI\x20coding\x20assistant.\x0a\x0a\x20\x20Usage\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20[options]\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20config\x20<command>\x20[options]\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20--demo\x20<path/to/history.json>\x0a\x0a\x20\x20Configuration\x20Commands\x0a\x20\x20\x20\x20config\x20get\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20configuration\x20value\x0a\x20\x20\x20\x20config\x20set\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20configuration\x20value\x0a\x20\x20\x20\x20config\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20configuration\x20values\x0a\x20\x20\x20\x20config\x20help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20config\x20command\x20help\x0a\x0a\x20\x20Configuration\x20Options\x0a\x20\x20\x20\x20--provider\x20NAME\x20\x20\x20\x20\x20Choose\x20AI\x20provider:\x20openrouter\x20|\x20deepinfra\x20|\x20github\x20|\x20zai\x20|\x20anthropic\x20|\x20echo\x0a\x20\x20\x20\x20--config\x20PATH\x20\x20\x20\x20\x20\x20\x20Merge\x20configuration\x20from\x20file\x20(JSON\x20or\x20YAML)\x0a\x20\x20\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20Specify\x20model\x20(e.g.,\x20gpt-4o,\x20claude-sonnet-4-5)\x0a\x20\x20\x20\x20--api-key\x20KEY\x20\x20\x20\x20\x20\x20\x20Your\x20API\x20key\x20for\x20authentication\x20(OpenRouter,\x20Zai)\x0a\x20\x20\x20\x20--mcp-config\x20PATH\x20\x20\x20MCP\x20servers\x20configuration\x20file\x20(default:\x20.nuvin_mcp.json)\x0a\x20\x20\x20\x20--reasoning-effort\x20\x20Set\x20reasoning\x20effort\x20for\x20o1\x20models:\x20low\x20|\x20medium\x20|\x20high\x20(default:\x20medium)\x0a\x20\x20\x20\x20--history\x20PATH\x20\x20\x20\x20\x20\x20Load\x20conversation\x20history\x20from\x20file\x20on\x20startup\x0a\x0a\x20\x20Authentication\x20Setup\x0a\x20\x20\x20\x20Environment\x20variables\x20are\x20automatically\x20detected\x20and\x20loaded\x20at\x20startup:\x0a\x20\x20\x20\x20•\x20OPENROUTER_API_KEY\x20-\x20OpenRouter\x20authentication\x0a\x20\x20\x20\x20•\x20ANTHROPIC_API_KEY\x20-\x20Anthropic\x20Claude\x20authentication\x0a\x20\x20\x20\x20•\x20ZAI_API_KEY\x20-\x20ZAI\x20authentication\x0a\x20\x20\x20\x20•\x20DEEPINFRA_API_KEY\x20-\x20DeepInfra\x20authentication\x0a\x20\x20\x20\x20•\x20GITHUB_ACCESS_TOKEN\x20-\x20GitHub\x20Models\x20authentication\x0a\x0a\x20\x20\x20\x20You\x20can\x20also\x20use\x20--api-key\x20flag\x20or\x20config\x20files\x20for\x20authentication.\x0a\x0a\x20\x20Configuration\x20Examples\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20config\x20set\x20activeProvider\x20openrouter\x20--global\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20config\x20set\x20providers.github.token\x20\x22ghp_xxxx\x22\x20--local\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20config\x20get\x20activeProvider\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20config\x20list\x0a\x0a\x20\x20What\x20You\x20Can\x20Do\x0a\x20\x20\x20\x20•\x20\x22Analyze\x20my\x20project\x20structure\x20and\x20provide\x20optimization\x20recommendations\x22\x0a\x20\x20\x20\x20•\x20\x22Review\x20my\x20recent\x20git\x20commits\x20and\x20suggest\x20improvements\x22\x0a\x20\x20\x20\x20•\x20\x22Find\x20all\x20TODO\x20comments\x20in\x20my\x20codebase\x20and\x20create\x20issues\x22\x0a\x20\x20\x20\x20•\x20\x22Set\x20up\x20automated\x20testing\x20for\x20my\x20codebase\x22\x0a\x20\x20\x20\x20•\x20\x22Refactor\x20this\x20function\x20to\x20follow\x20SOLID\x20principles\x22\x0a\x0a\x20\x20Quick\x20Start\x20Examples\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20--provider\x20openrouter\x20--model\x20openai/gpt-4o\x0a\x20\x20\x20\x20$\x20nuvin-cli\x20--provider\x20github\x0a\x20\x20',{'importMeta':import.meta,'flags':{'provider':{'type':'string'},'config':{'type':_0x479f18(0x2c2,0x1a6,0x1b2,0x18d)},'model':{'type':_0x36ee89(-0x5a,0x1c,0x120,-0x30)},'mcpConfig':{'type':_0x36ee89(0x79,0x1c,0xbe,-0xa3)},'apiKey':{'type':'string'},'reasoningEffort':{'type':_0x36ee89(0x130,0x1c,0x2b,0x156)},'version':{'type':_0x479f18(-0x121,-0x66,-0xf,-0xa5),'alias':'v'},'demo':{'type':_0x36ee89(0xf8,0x1c,-0xb8,0x82)},'history':{'type':'string'}}});((async()=>{const _0x2c66ab={_0x482931:0x304,_0x59816f:0x54b,_0x156999:0x591,_0x347f4b:0x4f4,_0x44416c:0x41e,_0x2db71a:0x712,_0x149603:0x6b9,_0x4ea583:0x759,_0x3cda33:0x250,_0x308228:0x2e7,_0x3a35d7:0x580,_0x3d624f:0x4cd,_0x1499f0:0x741,_0x3e92fa:0x765,_0x4aedf9:0x6ea,_0x3c898a:0x6c6,_0x3f9464:0x4a1,_0x25b2bd:0x42b,_0x36790d:0x62a,_0x442da8:0x672,_0x1b9e1b:0x48f,_0x17f5f5:0x7a2,_0x453051:0x77c,_0x1202f0:0x72d,_0x22b198:0x6ca,_0x53077c:0x434,_0x278e70:0x575,_0x2cc144:0x536,_0x8f191:0x602,_0x2f84ab:0x3f3,_0x1af32e:0x5c8,_0x29ad10:0x6b1,_0x1f0e36:0x62c,_0x41bab0:0x3cd,_0x1244cc:0x41d,_0x57b4ce:0x367,_0xf7f3ee:0x490,_0x147631:0x314,_0x18ebb0:0x5a6,_0x21078a:0x607,_0x2d70b6:0x5d6,_0x40c478:0x309,_0x1092d3:0x330,_0x1d91e3:0x396,_0x388f67:0x4df,_0x491fa6:0x6d5,_0x1a1d3b:0x6d7,_0x588dbb:0x32d,_0xd2654a:0x28b,_0x39e496:0x6b5,_0x4d8af4:0x618,_0x216fa3:0x370,_0x229b21:0x53d,_0xc89a4a:0x516,_0x461c05:0x5b7,_0x1e5e54:0x6ba,_0x5f2dc4:0x428,_0x3205b7:0x278,_0x22f433:0x203,_0x33f468:0x30a,_0x26b343:0x550,_0x34b19f:0x347,_0x5e7583:0x417,_0xdbebf8:0x2c6,_0x23e95f:0x423,_0x38dc86:0x3db,_0x58a5db:0x3d0,_0x1f09bc:0x5ef,_0x3101fe:0x5bd,_0x26be39:0x599,_0x21ee8d:0x4d4,_0x26732d:0x3cb,_0x4001c3:0x38b,_0x3c164e:0x73c,_0x4b7e7b:0x38a,_0x4b2ec6:0x4d8,_0x42b8f9:0x5f1,_0x32a4f4:0x683,_0x2bf3a5:0x610,_0x39a92f:0x3ef,_0x2f4e3d:0x45a,_0x55c292:0x4e3,_0x53fb94:0x603,_0x104abd:0x5e8,_0x527164:0x67c,_0x1c5653:0x63a,_0x50c0d4:0x4d2,_0x2eee1f:0x3c0,_0x32fa3d:0x544,_0x29def3:0x4eb,_0x576f44:0x4c9,_0x202262:0x515,_0x15d73e:0x569,_0x5d5d09:0x512,_0x3f4a48:0x4ea,_0x9aa7ff:0x4e2,_0x126708:0x56a,_0x5e8b9d:0x5a4,_0x1e44dc:0x643,_0x765c29:0x513,_0x1dcf8c:0x584,_0x3b17a9:0x6e7,_0x31ee11:0x5d2,_0x49395b:0x473,_0x97475f:0x3ee,_0x1da7fd:0x4cd,_0x1e245f:0x5d9,_0x316170:0x58f,_0x5f1d09:0x5d8,_0x2cb166:0x690,_0x484764:0x688,_0x1d0928:0x6f1,_0x5c00be:0x511,_0x9dffa6:0x4e7,_0x11c107:0x459,_0x13db0a:0x52f,_0x19f8b1:0x43c,_0x35bce1:0x2f1},_0x3e5575={_0x32cc0e:0xe2,_0x50f8a3:0x309},_0x154684={_0x2563d5:0x121},_0x2ddc0f={_0x653cf3:0x49,_0x26ca02:0x9,_0x23fa79:0x156,_0x37c5ea:0x3f0,_0x5aed80:0x4df,_0x361639:0x50c,_0x374139:0xd8,_0x470782:0x18,_0x197306:0x69b,_0x3db703:0x683,_0x199bbe:0x682,_0x51121d:0x259,_0x42e1c0:0xf4,_0x3e0f50:0xee,_0x3746a2:0x108,_0xb99f2b:0x409,_0x1636a7:0x4e2,_0x23510f:0x62e,_0x49c1ac:0x6f,_0x11192b:0x564,_0x4b7fe6:0x43e,_0x5dba98:0x611,_0x4d218e:0x554,_0x13a5eb:0x4d9,_0x1276b9:0x549,_0x4b2f01:0xb6,_0x5ef756:0x554,_0xa6dd2a:0x4a2,_0x3860fd:0x5fa,_0x119bb4:0xb7,_0xb425cb:0x683,_0x125bf9:0x10c,_0x3032ac:0x36,_0x4be1ce:0x3df,_0x34e4b7:0x590,_0x24a1c5:0x5,_0x1f117d:0xee,_0x1d6074:0x145,_0x2eff52:0x72,_0xbf1c77:0x5ca,_0xe6615f:0x543,_0x2c0b02:0x89,_0xae7951:0x520,_0x4b44f4:0x577,_0x42b9d2:0x50c,_0x593402:0x516,_0x2933f7:0xee,_0x2739c9:0x1fb,_0x3d8f38:0x1b7,_0x55e308:0x458,_0x37ceaf:0x526,_0x16afa7:0x4cc,_0x49bc42:0x584,_0x34cdb:0x523},_0x28fb66={_0x424817:0x97,_0x376cd7:0x8d},_0x1d3ac6={_0x1364a1:0x4fd,_0x324df0:0x629,_0x4c9b8e:0x66e,_0x1c412e:0x541,_0x13787d:0x4a8},_0x5688f4={_0x2f1af0:0x76b,_0x23550e:0x63e,_0x885392:0x61a,_0x15ce40:0xc0},_0x139f91={_0x50855a:0x101,_0xbec968:0x39};if(pe['flags']['version']){let {version:_0x5c032a,commit:_0x279ea1}=_0x5ec50a();console['log'](_0x46b9fd(0x308,0x36c,_0x2c66ab._0x482931,0x3ef)+_0x5c032a+'\x20('+_0x279ea1+')'),process[_0x46b9fd(0x4d1,0x4d5,0x3c4,_0x2c66ab._0x59816f)](0x0);}await co[_0x5458fa(_0x2c66ab._0x156999,0x487,0x58a,0x4eb)]();let _0x574424=_0x4f65d3=>{const _0x468a9b={_0x2f4659:0x312,_0xd5a7f3:0xf6};if(typeof _0x4f65d3!=_0x3de72a(0x760,0x68b,_0x5688f4._0x2f1af0,0x782))return;let _0x53a2cf=_0x4f65d3[_0x3de72a(0x677,_0x5688f4._0x23550e,0x6e3,_0x5688f4._0x885392)]();function _0x3de72a(_0x4b6cb8,_0x4c4620,_0x5cad23,_0x4fd553){return _0x5458fa(_0x4b6cb8-_0x139f91._0x50855a,_0x4fd553,_0x5cad23-_0x139f91._0xbec968,_0x5cad23-0xbb);}function _0x3fe1d8(_0x4f2907,_0x87e6db,_0x2ac695,_0x1be67b){return _0x46b9fd(_0x87e6db- -_0x468a9b._0x2f4659,_0x1be67b,_0x2ac695-_0x468a9b._0xd5a7f3,_0x1be67b-0x1ae);}return _0x53a2cf[_0x3fe1d8(0x1d,0xb,-_0x5688f4._0x15ce40,-0x59)]>0x0?_0x53a2cf:void 0x0;},_0x14bdcb=_0x241fe2=>{const _0x33d389={_0x59519b:0x120,_0x9c565:0xc2,_0x2a56fc:0x45},_0x5383b6={_0x30d7d3:0x179,_0x426141:0x9c};function _0x58ef8c(_0x4e62c1,_0x386974,_0x5aa139,_0x3bdef1){return _0x5458fa(_0x4e62c1-0x132,_0x3bdef1,_0x5aa139-_0x5383b6._0x30d7d3,_0x386974- -_0x5383b6._0x426141);}function _0x429325(_0x139eef,_0x5b779b,_0x35f302,_0x320377){return _0x5458fa(_0x139eef-_0x33d389._0x59519b,_0x320377,_0x35f302-_0x33d389._0x9c565,_0x35f302- -_0x33d389._0x2a56fc);}let _0x15a712=_0x241fe2[_0x58ef8c(0x574,_0x1d3ac6._0x1364a1,_0x1d3ac6._0x324df0,0x3f9)]||{};return Object[_0x429325(0x63f,0x767,0x680,_0x1d3ac6._0x4c9b8e)](_0x15a712)[_0x429325(_0x1d3ac6._0x1c412e,_0x1d3ac6._0x13787d,0x4ac,0x4bb)](_0x5b4265=>Array[_0x58ef8c(0x3f7,0x4a6,0x3c2,0x5ad)](_0x5b4265[_0x58ef8c(0x4db,0x4a0,0x4bb,0x497)])&&_0x5b4265['auth'][_0x58ef8c(0x380,0x476,0x43f,0x388)]>0x0&&_0x5b4265[_0x58ef8c(0x3fa,0x4a0,0x493,0x5c3)][_0x58ef8c(0x48d,0x455,0x3c3,0x4a5)](_0x4081f6=>_0x4081f6[_0x429325(0x65b,0x57a,0x58b,0x68a)]));},_0xf2f479=()=>{const _0x4a1337={_0x79a90:0x492};let _0x2911e8={'providers':{}},_0x2bb468=_0x574424(process[_0x31fd4c(_0x2ddc0f._0x653cf3,0x89,_0x2ddc0f._0x26ca02,_0x2ddc0f._0x23fa79)][_0xee4aa8(0x596,_0x2ddc0f._0x37c5ea,0x4f2,_0x2ddc0f._0x5aed80)]);_0x2bb468&&_0x2911e8['providers']&&(_0x2911e8[_0xee4aa8(0x4a8,0x4af,_0x2ddc0f._0x361639,0x636)]['openrouter']={'auth':[{'type':'api-key','api-key':_0x2bb468}],'current-auth':_0x31fd4c(-_0x2ddc0f._0x374139,-0xb7,-0x198,_0x2ddc0f._0x470782)});let _0x17c739=_0x574424(process[_0xee4aa8(_0x2ddc0f._0x197306,0x56a,_0x2ddc0f._0x3db703,_0x2ddc0f._0x199bbe)][_0x31fd4c(-_0x2ddc0f._0x51121d,-0x143,-0xbd,-0x163)]);function _0x31fd4c(_0x33ce9d,_0x2b6635,_0x145bf8,_0x1d2e57){return _0x46b9fd(_0x2b6635- -_0x4a1337._0x79a90,_0x33ce9d,_0x145bf8-0x52,_0x1d2e57-0xe6);}_0x17c739&&_0x2911e8[_0x31fd4c(-_0x2ddc0f._0x42e1c0,-_0x2ddc0f._0x3e0f50,-0x28,-_0x2ddc0f._0x3746a2)]&&(_0x2911e8[_0xee4aa8(_0x2ddc0f._0xb99f2b,_0x2ddc0f._0x1636a7,_0x2ddc0f._0x361639,_0x2ddc0f._0x23510f)]['anthropic']={'auth':[{'type':_0x31fd4c(-0x1c2,-0xb7,-0x62,_0x2ddc0f._0x49c1ac),'api-key':_0x17c739}],'current-auth':_0xee4aa8(_0x2ddc0f._0x11192b,_0x2ddc0f._0x4b7fe6,0x543,_0x2ddc0f._0x5dba98)});let _0x15389f=_0x574424(process[_0xee4aa8(0x56e,_0x2ddc0f._0x4d218e,0x683,0x63a)][_0xee4aa8(_0x2ddc0f._0x13a5eb,0x644,0x56b,_0x2ddc0f._0x1276b9)]);_0x15389f&&_0x2911e8['providers']&&(_0x2911e8[_0x31fd4c(-0x1cd,-0xee,-_0x2ddc0f._0x4b2f01,-0x18e)][_0xee4aa8(0x67e,0x68b,0x5e8,_0x2ddc0f._0x5ef756)]={'auth':[{'type':_0xee4aa8(0x4a0,_0x2ddc0f._0xa6dd2a,0x543,_0x2ddc0f._0x3860fd),'api-key':_0x15389f}],'current-auth':_0x31fd4c(-0x12d,-_0x2ddc0f._0x119bb4,-0x115,0x59)});let _0xf1fd6=_0x574424(process[_0xee4aa8(0x6ae,0x599,_0x2ddc0f._0xb425cb,0x54f)][_0x31fd4c(_0x2ddc0f._0x125bf9,0x1a,-0x104,-_0x2ddc0f._0x3032ac)]);function _0xee4aa8(_0x159462,_0x2194af,_0x329b82,_0xb72dc3){return _0x5458fa(_0x159462-0xa5,_0x159462,_0x329b82-_0x28fb66._0x424817,_0x329b82- -_0x28fb66._0x376cd7);}_0xf1fd6&&_0x2911e8[_0xee4aa8(_0x2ddc0f._0x4be1ce,0x41b,_0x2ddc0f._0x361639,_0x2ddc0f._0x34e4b7)]&&(_0x2911e8[_0x31fd4c(-_0x2ddc0f._0x24a1c5,-_0x2ddc0f._0x1f117d,-_0x2ddc0f._0x1d6074,-_0x2ddc0f._0x2eff52)]['deepinfra']={'auth':[{'type':'api-key','api-key':_0xf1fd6}],'current-auth':_0xee4aa8(0x486,_0x2ddc0f._0xbf1c77,_0x2ddc0f._0xe6615f,0x5c5)});let _0x3ad0b8=_0x574424(process[_0x31fd4c(-0x4c,_0x2ddc0f._0x2c0b02,0x85,0x15e)]['GITHUB_ACCESS_TOKEN']);return _0x3ad0b8&&_0x2911e8[_0xee4aa8(_0x2ddc0f._0xae7951,_0x2ddc0f._0x4b44f4,_0x2ddc0f._0x42b9d2,_0x2ddc0f._0x593402)]&&(_0x2911e8[_0x31fd4c(-0x31,-_0x2ddc0f._0x2933f7,-_0x2ddc0f._0x2739c9,-_0x2ddc0f._0x3d8f38)][_0xee4aa8(0x4c6,0x4e5,_0x2ddc0f._0x55e308,_0x2ddc0f._0x37ceaf)]={'auth':[{'type':_0xee4aa8(_0x2ddc0f._0x16afa7,0x40f,0x543,_0x2ddc0f._0x49bc42),'api-key':_0x3ad0b8}],'current-auth':_0xee4aa8(0x427,_0x2ddc0f._0x34cdb,0x543,0x641)}),_0x2911e8;};if(pe[_0x46b9fd(0x49a,_0x2c66ab._0x347f4b,0x4eb,_0x2c66ab._0x44416c)][_0x5458fa(_0x2c66ab._0x2db71a,_0x2c66ab._0x149603,0x741,0x6e4)]){let _0x3ba1f8=_0x574424(pe['flags'][_0x5458fa(0x6ff,_0x2c66ab._0x4ea583,0x7bf,0x6e4)]);_0x3ba1f8||(console[_0x46b9fd(0x383,_0x2c66ab._0x3cda33,_0x2c66ab._0x308228,0x3dc)](_0x5458fa(0x635,_0x2c66ab._0x3a35d7,_0x2c66ab._0x3d624f,0x532)),process[_0x5458fa(_0x2c66ab._0x1499f0,_0x2c66ab._0x3e92fa,_0x2c66ab._0x4aedf9,_0x2c66ab._0x3c898a)](0x1));let {DemoMode:_0xe15b21}=await import('./demo-mode-3LKNOS6S.js');await new _0xe15b21(_0x3ba1f8)[_0x5458fa(0x605,_0x2c66ab._0x3f9464,0x53c,0x59e)](),process[_0x46b9fd(0x4d1,0x57d,_0x2c66ab._0x25b2bd,0x5aa)](0x0);}if(pe[_0x5458fa(0x705,_0x2c66ab._0x36790d,_0x2c66ab._0x442da8,0x63b)]['length']>0x0&&pe[_0x5458fa(0x723,0x65b,0x6a6,0x63b)][0x0]===_0x46b9fd(0x368,0x34c,_0x2c66ab._0x1b9e1b,0x3b3)){let _0x2beb6f=new zt(),_0x5b2200=process['argv'][_0x5458fa(_0x2c66ab._0x17f5f5,_0x2c66ab._0x453051,_0x2c66ab._0x1202f0,_0x2c66ab._0x22b198)](0x3);await _0x2beb6f[_0x46b9fd(0x4fc,_0x2c66ab._0x53077c,_0x2c66ab._0x278e70,_0x2c66ab._0x2cc144)](_0x5b2200),process[_0x46b9fd(0x4d1,0x4f2,_0x2c66ab._0x8f191,_0x2c66ab._0x2f84ab)](0x0);}let _0x4266a4=_0x4e6683['getInstance'](),_0x2e2fe3=_0x574424(pe[_0x46b9fd(0x49a,0x4a0,_0x2c66ab._0x2cc144,0x4a9)][_0x5458fa(0x43f,_0x2c66ab._0x1af32e,0x672,0x55d)]),_0x5db90f={},_0x164228=[];try{let {config:_0x296cd3,sources:_0x1ad162}=await _0x4266a4[_0x5458fa(0x613,_0x2c66ab._0x29ad10,_0x2c66ab._0x1f0e36,0x643)]({'explicitPath':_0x2e2fe3});_0x5db90f=_0x296cd3,_0x164228=_0x1ad162;}catch(_0x3cae3d){let _0x1dce3f=_0x3cae3d instanceof Error?_0x3cae3d[_0x46b9fd(_0x2c66ab._0x41bab0,0x4e8,_0x2c66ab._0x1244cc,_0x2c66ab._0x57b4ce)]:String(_0x3cae3d);console[_0x46b9fd(0x383,_0x2c66ab._0xf7f3ee,0x38f,_0x2c66ab._0x147631)]('Failed\x20to\x20load\x20configuration:\x20'+_0x1dce3f),process['exit'](0x1);}function _0x5458fa(_0x4c31da,_0x25acc6,_0x267524,_0x2c7190){return _0x36ee89(_0x25acc6,_0x2c7190-0x694,_0x267524-_0x154684._0x2563d5,_0x2c7190-0x137);}let _0x32702c={},_0x4ca994=_0x574424(pe['flags']['provider']);if(_0x4ca994){let _0x139ccf=_0x4ca994[_0x5458fa(_0x2c66ab._0x18ebb0,_0x2c66ab._0x21078a,0x5e1,_0x2c66ab._0x2d70b6)]();_0x139ccf===_0x46b9fd(_0x2c66ab._0x40c478,0x324,_0x2c66ab._0x1092d3,0x2ef)||_0x139ccf===_0x46b9fd(0x2d6,0x3f2,_0x2c66ab._0x1d91e3,0x363)||_0x139ccf===_0x5458fa(0x488,0x565,_0x2c66ab._0x388f67,0x4e5)||_0x139ccf===_0x5458fa(_0x2c66ab._0x491fa6,0x5c4,_0x2c66ab._0x1a1d3b,0x675)||_0x139ccf===_0x46b9fd(_0x2c66ab._0x588dbb,_0x2c66ab._0x588dbb,0x33c,_0x2c66ab._0xd2654a)||_0x139ccf===_0x5458fa(0x5f0,0x6cf,0x7c3,_0x2c66ab._0x39e496)?_0x32702c[_0x5458fa(_0x2c66ab._0x4d8af4,0x5e4,0x5b5,0x4ff)]=_0x139ccf:console[_0x46b9fd(0x455,_0x2c66ab._0x216fa3,0x3fe,0x39b)](_0x5458fa(0x748,0x5c8,0x596,0x6b2)+_0x4ca994+'\x27,\x20ignoring\x20flag.');}let _0x18cfcb=_0x574424(pe[_0x46b9fd(0x49a,_0x2c66ab._0x229b21,_0x2c66ab._0xc89a4a,_0x2c66ab._0x461c05)]['model']);_0x18cfcb&&(_0x32702c['model']=_0x18cfcb);let _0x204ef0=_0x574424(pe[_0x46b9fd(0x49a,0x53d,0x3db,0x46d)][_0x5458fa(0x578,_0x2c66ab._0x1e5e54,0x696,0x5c0)]);if(_0x204ef0){let _0x361ee9=_0x32702c[_0x46b9fd(0x30a,_0x2c66ab._0x5f2dc4,_0x2c66ab._0x3205b7,_0x2c66ab._0x22f433)]||_0x5db90f[_0x46b9fd(_0x2c66ab._0x33f468,0x215,0x363,0x254)];if(_0x361ee9){let _0x4bf327=_0x5db90f[_0x5458fa(0x647,_0x2c66ab._0x26b343,0x4d2,0x599)]?.[_0x361ee9],_0x423e85=(_0x4bf327?.[_0x46b9fd(_0x2c66ab._0x34b19f,_0x2c66ab._0x5e7583,_0x2c66ab._0x40c478,_0x2c66ab._0xdbebf8)]||[])['filter'](_0x39cc16=>_0x39cc16[_0x46b9fd(0x3aa,0x492,0x363,0x29a)]!=='api-key');_0x423e85[_0x46b9fd(_0x2c66ab._0x5e7583,_0x2c66ab._0x23e95f,0x3bf,0x45b)]({'type':_0x46b9fd(_0x2c66ab._0x38dc86,0x446,_0x2c66ab._0x58a5db,0x41b),'api-key':_0x204ef0}),_0x32702c[_0x5458fa(_0x2c66ab._0x1f09bc,0x53d,_0x2c66ab._0x3101fe,_0x2c66ab._0x26be39)]={..._0x5db90f[_0x5458fa(0x5ab,0x559,_0x2c66ab._0x21ee8d,0x599)],[_0x361ee9]:{..._0x4bf327,'auth':_0x423e85,'current-auth':'api-key'}};}else _0x32702c[_0x46b9fd(_0x2c66ab._0x26732d,_0x2c66ab._0x4001c3,0x424,0x33e)]=_0x204ef0;}let _0x70070=_0x574424(pe[_0x5458fa(_0x2c66ab._0x3c164e,0x793,0x5dd,0x68f)]['reasoningEffort']);if(_0x70070){let _0x38258c=_0x70070[_0x5458fa(0x5b1,0x413,_0x2c66ab._0x4b7e7b,0x4a6)]();_0x38258c==='LOW'||_0x38258c===_0x5458fa(_0x2c66ab._0x4b2ec6,_0x2c66ab._0x42b8f9,_0x2c66ab._0x32a4f4,_0x2c66ab._0x2bf3a5)||_0x38258c===_0x46b9fd(_0x2c66ab._0x39a92f,0x51e,_0x2c66ab._0x2f4e3d,0x452)||_0x38258c===_0x5458fa(0x56c,_0x2c66ab._0x55c292,_0x2c66ab._0x53fb94,0x5d9)?_0x32702c['thinking']=_0x38258c:console[_0x5458fa(_0x2c66ab._0x104abd,0x6f1,_0x2c66ab._0x527164,0x64a)](_0x46b9fd(0x509,0x5d6,_0x2c66ab._0x1c5653,0x4e4)+_0x70070+_0x46b9fd(_0x2c66ab._0x50c0d4,_0x2c66ab._0x2eee1f,_0x2c66ab._0x32fa3d,0x479));}let _0x152a5a=_0xf2f479();_0x14bdcb(_0x152a5a)&&_0x4266a4['loadConfig'](_0x152a5a,_0x46b9fd(0x51b,0x58f,_0x2c66ab._0x29def3,0x429));let _0x1fbc8d={'session':{'memPersist':!0x0}};(Object[_0x5458fa(0x5c9,0x530,_0x2c66ab._0x576f44,_0x2c66ab._0x202262)](_0x32702c)[_0x5458fa(0x49f,_0x2c66ab._0x15d73e,0x5f5,_0x2c66ab._0x5d5d09)]>0x0||Object['keys'](_0x1fbc8d)[_0x5458fa(_0x2c66ab._0x3f4a48,0x4a6,0x518,_0x2c66ab._0x5d5d09)]>0x0)&&_0x4266a4[_0x46b9fd(_0x2c66ab._0x9aa7ff,_0x2c66ab._0x23e95f,_0x2c66ab._0x26b343,_0x2c66ab._0x126708)]({..._0x32702c,..._0x1fbc8d},_0x5458fa(_0x2c66ab._0x5e8b9d,0x59c,_0x2c66ab._0x1e44dc,_0x2c66ab._0x765c29));let _0x347fe4=_0x4266a4[_0x5458fa(0x467,_0x2c66ab._0x1dcf8c,0x50f,0x500)](),_0x24e774=_0x347fe4[_0x5458fa(0x67e,0x5f0,_0x2c66ab._0x3b17a9,_0x2c66ab._0x31ee11)],_0x3c3e7d=_0x347fe4[_0x46b9fd(0x4c1,0x540,0x596,_0x2c66ab._0x49395b)]?.[_0x46b9fd(_0x2c66ab._0x97475f,0x3e8,0x49e,0x48b)]??!0x0,_0x41dce6=_0x347fe4['requireToolApproval']??!0x0,{configPath:_0x442ba5,servers:_0x23c21d}=_0x48ca3f(_0x5db90f,_0x164228),_0x6e6fc3=_0x574424(pe['flags'][_0x46b9fd(_0x2c66ab._0x1da7fd,0x4f7,0x457,_0x2c66ab._0x1e245f)]),_0x399850=_0x31b474[_0x5458fa(_0x2c66ab._0x2db71a,0x571,_0x2c66ab._0x316170,0x650)](mo,'.nuvin_mcp.json'),_0x4dbf05=(_0x23c21d?{'mcpServers':_0x23c21d}:void 0x0)?_0x6e6fc3??_0x442ba5:_0x6e6fc3??_0x442ba5??_0x399850,_0x2ba8df=_0x574424(pe[_0x5458fa(_0x2c66ab._0x5f1d09,0x67e,_0x2c66ab._0x2cb166,0x68f)][_0x5458fa(0x61d,_0x2c66ab._0x484764,_0x2c66ab._0x1d0928,0x659)]);function _0x46b9fd(_0x57b5a3,_0x150a0b,_0x1501fb,_0x5114d7){return _0x479f18(_0x57b5a3-0x6a,_0x150a0b-_0x3e5575._0x32cc0e,_0x57b5a3-_0x3e5575._0x50f8a3,_0x150a0b);}cn();let {waitUntilExit:_0x55d1a2}=_0x5471dd(_0x1e87ef(_0x27a892,{'children':_0x1e87ef(_0x2dcb38,{'children':_0x1e87ef(_0x57fd93,{'initialConfig':_0x347fe4,'children':_0x1e87ef(_0x5edd5f,{'children':_0x1e87ef(_0x176480,{'requireToolApproval':_0x41dce6,'onError':_0x31b9e1=>console[_0x5458fa(0x62b,0x528,0x502,0x578)](_0x31b9e1),'children':_0x1e87ef(_0x59f484,{'children':_0x1e87ef(_0x4287a9,{'children':_0x1e87ef(dn,{'children':_0x1e87ef(qt,{'memPersist':_0x3c3e7d,'mcpConfigPath':_0x4dbf05,'thinking':_0x24e774,'historyPath':_0x2ba8df})})})})})})})})}),{'exitOnCtrlC':!0x1,'patchConsole':!0x0,'incrementalRendering':!0x0,'maxFps':0x3c});await _0x55d1a2(),process[_0x5458fa(0x3cc,_0x2c66ab._0x5c00be,0x54e,_0x2c66ab._0x9dffa6)][_0x46b9fd(_0x2c66ab._0x11c107,_0x2c66ab._0x13db0a,_0x2c66ab._0x19f8b1,0x424)](_0x46b9fd(0x2cd,_0x2c66ab._0x35bce1,0x2fb,0x36a)),process['exit'](0x0);})());
2
+ import './cli-C9AKAZ8P.js';
3
+ import 'meow';
4
+ import 'node:fs';
5
+ import 'node:path';
6
+ import 'node:os';
7
+ import 'react';
8
+ import 'ansi-escapes';
9
+ import 'node:crypto';
10
+ import 'node:fs/promises';
11
+ import 'yaml';
12
+ import 'ink-gradient';
13
+ import 'node:child_process';
14
+ import 'node:url';
15
+ import 'open';
16
+ import '@nuvin/nuvin-core';
17
+ import 'node:buffer';
18
+ import 'node:process';
19
+ import 'react-reconciler';
20
+ import 'yoga-layout';
21
+ import 'ansi-regex';
22
+ import 'node:events';
23
+ import 'chalk';
24
+ import 'marked';
25
+ import 'supports-hyperlinks';
26
+ import 'node-emoji';
27
+ import 'cli-table3';
28
+ import 'cli-highlight';
29
+ import 'ink-spinner';
30
+ import 'node:stream';
31
+ import './_commonjsHelpers-BFTU3MAI.js';
32
+ import 'events';
33
+ import 'assert';
34
+ import 'module';