supercolony 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/lib/submission-attribution.mjs +1 -1
- package/dist/tui/app.mjs +1 -1
- package/dist/tui/controller.mjs +1 -1
- package/dist/tui/index.mjs +1 -1
- package/dist/tui/session.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,8 @@ colony ui
|
|
|
23
23
|
colony --ascii
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
If this computer has no wallet yet, launching the dashboard first offers **1. Create a new wallet** (the default; you set a local password and confirm it) or **2. Not now** (browse without a wallet; Esc does the same). The new wallet is empty; press `b` to back it up and `d` to add funds. The offer appears on each launch until a wallet exists.
|
|
27
|
+
|
|
26
28
|
The dashboard has **My tasks**, **Explore**, **Workers** and **Wallets** at the top. Wide terminals show a list and details side by side; below 100 columns, Enter opens details and Esc returns to the list. Use an interactive terminal at least 40 columns by 20 rows. `--ascii` uses ordinary ASCII borders. Special fonts, WSL and a browser are not required.
|
|
27
29
|
|
|
28
30
|
Panel actions stay visible along the bottom of their frame. Task lists contain New task, Search and Refresh; My tasks also has Filter. The Workers list contains Add target, Search and Refresh, while the selected worker's actions stay in its details pane. Wallet actions and Refresh belong to the selected wallet; New, Import, Manage and Receive funds remain in Wallet management. Selection and Enter/Tab hints stay in the list; return, scrolling and detail-tab hints stay in the details pane. Shortcuts wrap as whole entries on narrow terminals. The screen footer contains only global Help and Quit; during input, confirmation or an operation, it shows Ctrl+C to exit.
|
|
@@ -215,7 +217,7 @@ colony task create --file examples/research-job.json
|
|
|
215
217
|
|
|
216
218
|
流程:
|
|
217
219
|
|
|
218
|
-
正式创建和续作任务时,Colony
|
|
220
|
+
正式创建和续作任务时,Colony 会在任务描述末尾另起一行添加 `via supercolony`。原始输入用于本地编辑和恢复,提交内容在报价前固定保存;重试和报价续期不会重复添加署名,已保存的旧订单保持原提交内容。
|
|
219
221
|
|
|
220
222
|
1. 先以公开地址检查余额和 gas;自然语言输入随后由本地模型选择任务参数。`POST /requests/check` 有 blocker 立即停止;
|
|
221
223
|
2. 生成并保存 `requestToken` 和 `requestKey`,再 `POST /requests/quote`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const o='
|
|
1
|
+
const o='via\x20supercolony';function i(_0x4b885c){const _0x7511e9=_0xc0e2;if(typeof _0x4b885c[_0x7511e9(0x1da)]!=_0x7511e9(0x1d8)||!_0x4b885c['objective'][_0x7511e9(0x1d7)]())return _0x4b885c;const _0x3084ac=_0x4b885c[_0x7511e9(0x1da)]['trimEnd']();return _0x3084ac===o||_0x3084ac[_0x7511e9(0x1d9)]('\x0a'+o)?_0x4b885c:{..._0x4b885c,'objective':_0x3084ac+'\x0a'+o};}function _0x50ed(){const _0x596a37=['trim','string','endsWith','objective'];_0x50ed=function(){return _0x596a37;};return _0x50ed();}function _0xc0e2(_0x2e44bf,_0x50ed93){_0x2e44bf=_0x2e44bf-0x1d7;const _0xc0e202=_0x50ed();let _0x3be8e9=_0xc0e202[_0x2e44bf];return _0x3be8e9;}export{o as SUBMISSION_ATTRIBUTION,i as withSubmissionAttribution};
|
package/dist/tui/app.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a8be8=_0x11f7;import{createElement as _0x377643,useEffect as _0xd6bd5d,useState as _0x1fec36,useSyncExternalStore as _0x15b696}from'react';import{Box as _0x1d0bf1,Text as _0x31a267,useApp as _0x1c6ab1,useInput as _0x23dbf4,useWindowSize as _0x3c7eca}from'ink';import _0x3087f2 from'ink-text-input';import _0x180bb6 from'string-width';import{visibleItems as _0x1f852a,VIEWS as _0x118e55}from'./controller.mjs';import{clean as _0x33d708,detailText as _0x8f542f,lines as _0x46af78,short as _0x4b445d,statusLabel as _0x12f1e6,taskActions as _0x48aa65}from'./presentation.mjs';import{modelProgressLines as _0x16f8ff}from'../planner/progress.mjs';const le={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},ce={'tasks':_0x4a8be8(0x13f),'explore':_0x4a8be8(0x156),'workers':'Workers','wallet':'Wallets'},Q=[_0x4a8be8(0x1a9),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x4a8be8(0x11c),'Tip:\x20Review\x20the\x20price\x20before\x20paying.',_0x4a8be8(0x153)],de=_0x43d932=>_0x43d932===_0x4a8be8(0x135)?'gray':_0x43d932===_0x4a8be8(0x118)?_0x4a8be8(0x137):[_0x4a8be8(0x114),_0x4a8be8(0x149),_0x4a8be8(0x1d3),_0x4a8be8(0x115),_0x4a8be8(0x151)][_0x4a8be8(0x1b4)](_0x43d932)?_0x4a8be8(0x188):_0x4a8be8(0x170),s=(_0x4f4932,_0x3f74e0={})=>_0x377643(_0x31a267,_0x3f74e0,_0x33d708(_0x4f4932));function B({label:_0x110908}){const _0x437566=_0x4a8be8,[_0x47fd64,_0x238a10]=_0x1fec36(0x0);return _0xd6bd5d(()=>{const _0x567860=setInterval(()=>_0x238a10(_0x277bd9=>(_0x277bd9+0x1)%0x4),0x96);return()=>clearInterval(_0x567860);},[]),s(['|','/','-','\x5c'][_0x47fd64]+'\x20'+_0x110908,{'color':'cyan','wrap':_0x437566(0x119)});}function A({title:_0x43b66b,width:_0x259e76,height:_0xbf3b59,ascii:_0x42bbcf,active:_0x1d39c6,children:_0x4f35be}){const _0x35aee9=_0x4a8be8;return _0x377643(_0x1d0bf1,{'width':_0x259e76,'height':_0xbf3b59,'flexDirection':'column','borderStyle':_0x42bbcf?le:'single','borderColor':_0x1d39c6?_0x35aee9(0x170):_0x35aee9(0x122),'paddingX':0x1,'flexShrink':0x0,'overflow':'hidden'},s(_0x43b66b,{'color':_0x1d39c6?_0x35aee9(0x170):void 0x0,'dimColor':!_0x1d39c6}),_0x4f35be);}function L(_0x3702b9,_0x571980){const _0x481588=_0x4a8be8,_0x1cd976=[];for(const _0x59c142 of _0x3702b9){const _0x3a3ad9=_0x1cd976[_0x481588(0x1bb)]-0x1;_0x3a3ad9>=0x0&&_0x180bb6(_0x1cd976[_0x3a3ad9]+'\x20\x20'+_0x59c142)<=_0x571980?_0x1cd976[_0x3a3ad9]+='\x20\x20'+_0x59c142:_0x1cd976[_0x481588(0x1e2)](_0x59c142);}return _0x1cd976;}function U({rows:_0x15a2c0,width:_0x5842ca,ascii:_0x16a73b}){const _0x2d7d6a=_0x4a8be8;return _0x15a2c0[_0x2d7d6a(0x1bb)]?_0x377643(_0x1d0bf1,{'flexDirection':_0x2d7d6a(0x20b),'flexShrink':0x0},s((_0x16a73b?'-':'\u2500')[_0x2d7d6a(0x19f)](_0x5842ca),{'dimColor':!0x0}),..._0x15a2c0[_0x2d7d6a(0x162)]((_0x113524,_0x1c713a)=>s(_0x113524,{'key':_0x1c713a,'color':_0x2d7d6a(0x170),'bold':!0x0}))):null;}function ue({event:_0x382b4a,width:_0x6f5331,height:_0x38a472,ascii:_0x253a7d}){const _0x2417e1=_0x4a8be8,_0x2a7111=_0x16f8ff(_0x382b4a,{'width':_0x6f5331-0x4,'compact':!0x0})[_0x2417e1(0x141)](0x2);return _0x377643(A,{'title':_0x2417e1(0x16a),'width':_0x6f5331,'height':_0x38a472,'ascii':_0x253a7d,'active':!0x0},_0x377643(_0x1d0bf1,{'flexDirection':_0x2417e1(0x20b)},..._0x2a7111[_0x2417e1(0x162)]((_0x4d88ea,_0x46cf7e)=>_0x4d88ea[_0x2417e1(0x11f)](_0x2417e1(0x1f7))?_0x377643(B,{'key':_0x46cf7e,'label':_0x4d88ea['slice'](0x4)}):s(_0x4d88ea||'\x20',{'key':_0x46cf7e,'color':_0x4d88ea[_0x2417e1(0x11f)]('[+]')?_0x2417e1(0x137):_0x2417e1(0x170)}))),_0x377643(_0x1d0bf1,{'flexGrow':0x1}));}function G({content:_0x105314,width:_0x15b4a9,height:_0x11412c,offset:_0x4eb352}){const _0x2dc7e1=_0x4a8be8,_0x2c58c2=_0x46af78(_0x105314,_0x15b4a9),_0x344578=Math['min'](_0x4eb352,Math['max'](0x0,_0x2c58c2[_0x2dc7e1(0x1bb)]-_0x11412c));return _0x377643(_0x1d0bf1,{'flexDirection':_0x2dc7e1(0x20b),'height':_0x11412c,'overflow':'hidden'},..._0x2c58c2[_0x2dc7e1(0x141)](_0x344578,_0x344578+_0x11412c)['map']((_0x22c4de,_0x2acaab)=>s(_0x22c4de||'\x20',{'key':_0x2acaab})));}function z({state:_0x4e8320,height:_0x4205ac,width:_0x184234,ascii:_0x1e2bb3}){const _0x50b645=_0x4a8be8,_0x537e06=_0x1f852a(_0x4e8320),_0x190f32=_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f6),_0x489c90=_0x4e8320[_0x50b645(0x180)]==='tasks'?[_0x50b645(0x15f),_0x50b645(0x1fb),_0x50b645(0x21a),_0x50b645(0x1a0)]:_0x190f32?[_0x50b645(0x15f),'[/]\x20Search','[r]\x20Refresh']:_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?['[a]\x20Add\x20target',_0x50b645(0x1fb),_0x50b645(0x1a0)]:[];_0x4e8320['view']!==_0x50b645(0x17a)&&(_0x4e8320[_0x50b645(0x20c)]||_0x4e8320[_0x50b645(0x1cd)])&&_0x489c90[_0x50b645(0x1e2)](_0x50b645(0x1cb));const _0x4553d0=L(_0x489c90,_0x184234),_0x1896d7=_0x190f32?_0x4e8320[_0x50b645(0x129)]:_0x537e06[_0x50b645(0x1bb)],_0x2c56c9=_0x190f32?_0x1896d7===null?_0x537e06[_0x50b645(0x1bb)]+_0x50b645(0x1d1):_0x1896d7['toLocaleString']('en-US')+(_0x1896d7===0x1?'\x20task':_0x50b645(0x12d)):_0x537e06[_0x50b645(0x1bb)]+(_0x4e8320[_0x50b645(0x180)]==='wallet'?_0x50b645(0x14e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?_0x50b645(0x12c):_0x50b645(0x11d)+_0x4e8320[_0x50b645(0x1a3)]),_0x376fee=_0x1896d7===null?_0x50b645(0x1ff)+(_0x4e8320[_0x50b645(0x142)]+0x1):_0x4e8320[_0x50b645(0x142)]+0x1+'/'+_0x1896d7[_0x50b645(0x1d2)](_0x50b645(0x172)),_0x5654ca=_0x190f32&&_0x4e8320[_0x50b645(0x142)]===_0x537e06[_0x50b645(0x1bb)]-0x1;let _0x1f9d5d=_0x50b645(0x1b7);_0x5654ca&&(_0x4e8320[_0x50b645(0x178)]?_0x1f9d5d=_0x50b645(0x1ac):_0x4e8320[_0x50b645(0x20c)]&&_0x4e8320[_0x50b645(0x191)]?_0x1f9d5d='l\x20retry\x20history':_0x1f9d5d=_0x4e8320[_0x50b645(0x191)]?_0x50b645(0x20e):_0x50b645(0x10f));const _0x23f097=_0x537e06[_0x50b645(0x1bb)]?L([_0x376fee,_0x1f9d5d,_0x50b645(0x18f)],_0x184234):[],_0x3348e2=_0x4553d0[_0x50b645(0x1bb)]?_0x4553d0[_0x50b645(0x1bb)]+0x1:0x0,_0x4ebbd8=Math[_0x50b645(0x203)](0x1,Math['floor']((_0x4205ac-0x4-_0x23f097[_0x50b645(0x1bb)]-_0x3348e2)/0x3)),_0x1534d8=Math[_0x50b645(0x203)](0x0,Math[_0x50b645(0x1ba)](_0x4e8320['selected']-Math['floor'](_0x4ebbd8/0x2),_0x537e06[_0x50b645(0x1bb)]-_0x4ebbd8));return _0x377643(_0x1d0bf1,{'flexDirection':_0x50b645(0x20b),'flexGrow':0x1},s(_0x2c56c9,{'dimColor':!0x0}),..._0x537e06[_0x50b645(0x141)](_0x1534d8,_0x1534d8+_0x4ebbd8)[_0x50b645(0x162)]((_0x192202,_0x445cca)=>_0x377643(_0x1d0bf1,{'key':_0x192202['id'],'flexDirection':_0x50b645(0x20b)},s((_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca?'>\x20':'\x20\x20')+_0x4b445d((_0x192202[_0x50b645(0x110)]===_0x50b645(0x143)?_0x50b645(0x171):'')+_0x192202['title'],_0x184234-0x2),{'inverse':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca,'bold':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca}),s('\x20\x20'+_0x4b445d(_0x192202[_0x50b645(0x12a)]??_0x12f1e6(_0x192202[_0x50b645(0x1a2)])??(_0x192202[_0x50b645(0x10d)]?_0x50b645(0x175):_0x50b645(0x189)),_0x184234-0x2),{'color':de(_0x192202['state'])}),s((_0x1e2bb3?'-':'\u2500')[_0x50b645(0x19f)](_0x184234),{'dimColor':!0x0}))),_0x537e06['length']===0x0?s(_0x4e8320[_0x50b645(0x178)]?'Loading...':_0x4e8320['error']?_0x50b645(0x18e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x17a)?_0x50b645(0x19c):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x169)?_0x50b645(0x18c):'No\x20matching\x20items.',{'dimColor':!0x0}):null,_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x23f097[_0x50b645(0x162)]((_0x6921b3,_0x5437ec)=>s(_0x6921b3,{'key':_0x5437ec,'dimColor':!0x0})),_0x377643(U,{'rows':_0x4553d0,'width':_0x184234,'ascii':_0x1e2bb3}));}function fe({state:_0x22de42,width:_0x1926f0,height:_0x1e95d3,ascii:_0x3fa1ec,narrow:_0x2ad8df}){const _0x109ee1=_0x4a8be8,_0x25f11a=_0x2ad8df?_0x1926f0:Math[_0x109ee1(0x196)](_0x1926f0*0.43),_0x1c6d05=_0x2ad8df?_0x1926f0:_0x1926f0-_0x25f11a-0x1,_0x5ce12b=0x5,_0x5bea3a=_0x1e95d3-_0x5ce12b,_0x4ffe37=_0x22de42[_0x109ee1(0x1d8)]?.['configured']?[_0x109ee1(0x1c1),'[r]\x20Refresh']:[_0x109ee1(0x1a0)];(_0x22de42['error']||_0x22de42[_0x109ee1(0x1cd)])&&_0x4ffe37['push']('[e]\x20Error\x20details');const _0x1a060d=L(_0x4ffe37,_0x1c6d05-0x4),_0x20418a=L(['Esc/Tab\x20list','PgUp/PgDn\x20scroll'],_0x1c6d05-0x4),_0x59bda8=_0x377643(A,{'title':_0x109ee1(0x1d6),'width':_0x25f11a,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'ascii':_0x3fa1ec,'active':_0x22de42[_0x109ee1(0x19b)]==='list'},_0x377643(z,{'state':_0x22de42,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'width':_0x25f11a-0x4,'ascii':_0x3fa1ec})),_0x2fa0bf=_0x377643(A,{'title':_0x109ee1(0x200),'width':_0x1c6d05,'height':_0x5bea3a,'ascii':_0x3fa1ec,'active':_0x22de42['focus']===_0x109ee1(0x1d8)},_0x377643(G,{'content':_0x8f542f(_0x22de42),'width':_0x1c6d05-0x4,'height':_0x5bea3a-0x4-_0x20418a[_0x109ee1(0x1bb)]-_0x1a060d[_0x109ee1(0x1bb)],'offset':_0x22de42[_0x109ee1(0x206)]}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x20418a[_0x109ee1(0x162)]((_0x25e203,_0x5de8be)=>s(_0x25e203,{'key':_0x5de8be,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1a060d,'width':_0x1c6d05-0x4,'ascii':_0x3fa1ec})),_0x151148=_0x377643(A,{'title':_0x109ee1(0x124),'width':_0x1c6d05,'height':_0x5ce12b,'ascii':_0x3fa1ec,'active':!0x1},s(_0x109ee1(0x147)),s(_0x109ee1(0x1ee)));return _0x2ad8df?_0x377643(_0x1d0bf1,{'flexDirection':_0x109ee1(0x20b),'width':_0x1926f0,'height':_0x1e95d3},_0x22de42[_0x109ee1(0x19b)]==='list'?_0x59bda8:_0x2fa0bf,_0x151148):_0x377643(_0x1d0bf1,{'width':_0x1926f0,'height':_0x1e95d3,'gap':0x1},_0x59bda8,_0x377643(_0x1d0bf1,{'width':_0x1c6d05,'flexDirection':'column'},_0x2fa0bf,_0x151148));}function me({controller:_0x454bbe,state:_0x150a93,width:_0x2d8ab0,height:_0x1c78e1,ascii:_0x2cd3b4}){const _0x216968=_0x4a8be8,_0x363c2f=_0x150a93['form'],_0x128999=_0x363c2f['fields'][_0x363c2f[_0x216968(0x208)]],_0x34c871=_0x363c2f[_0x216968(0x15c)][_0x216968(0x141)](0x0,_0x363c2f[_0x216968(0x208)])[_0x216968(0x162)](_0x113416=>_0x113416[_0x216968(0x132)]+':\x20'+(_0x113416[_0x216968(0x1ea)]?_0x216968(0x17c):_0x363c2f[_0x216968(0x120)][_0x113416['name']]));return _0x377643(A,{'title':_0x363c2f[_0x216968(0x19e)],'width':_0x2d8ab0,'height':_0x1c78e1,'ascii':_0x2cd3b4,'active':!0x0},_0x377643(_0x1d0bf1,{'marginTop':0x1,'flexDirection':_0x216968(0x20b)},..._0x34c871[_0x216968(0x162)]((_0x1e7d21,_0x2a243d)=>s(_0x4b445d(_0x1e7d21,_0x2d8ab0-0x6),{'key':_0x2a243d,'dimColor':!0x0})),s(_0x128999['label'],{'bold':!0x0}),_0x377643(_0x1d0bf1,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x216968(0x203)](0x2,_0x1c78e1-0x9),'overflow':_0x216968(0x1f1)},s('>\x20',{'color':_0x216968(0x170)}),_0x377643(_0x3087f2,{'key':_0x128999[_0x216968(0x207)],'value':_0x363c2f['values'][_0x128999['name']],'placeholder':_0x128999[_0x216968(0x1e7)]??'','mask':_0x128999[_0x216968(0x1ea)]?'*':void 0x0,'onChange':_0x166c6a=>_0x454bbe[_0x216968(0x1b9)](_0x166c6a),'onSubmit':()=>_0x363c2f[_0x216968(0x208)]===_0x363c2f['fields'][_0x216968(0x1bb)]-0x1?void _0x454bbe[_0x216968(0x138)]():_0x454bbe[_0x216968(0x1e3)]()})),s(_0x363c2f[_0x216968(0x20c)]??'',{'color':_0x216968(0x11e)}),_0x363c2f['hint']?s(_0x363c2f[_0x216968(0x1af)],{'dimColor':!0x0}):null),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x216968(0x11a)+(_0x363c2f[_0x216968(0x208)]===_0x363c2f[_0x216968(0x15c)]['length']-0x1?_0x363c2f[_0x216968(0x19d)]:_0x216968(0x17e))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':_0x216968(0x170),'wrap':_0x216968(0x119)}));}function he({state:_0x48675f,width:_0x54935c,height:_0x1163b8,ascii:_0x1a161c}){const _0x4e8f89=_0x4a8be8,_0x2ab3b5=_0x48675f['confirm'],_0x40689b=_0x2ab3b5[_0x4e8f89(0x1e1)],_0x3d041d=_0x40689b?.[_0x4e8f89(0x186)],_0x2f8db1=_0x3d041d?.['coin']??_0x40689b?.[_0x4e8f89(0x146)]??_0x4e8f89(0x1bf),_0x1cfbf0=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?'Total\x20'+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x129)]+'\x20IMD\x20(fee\x20'+_0x40689b[_0x4e8f89(0x16c)]+'\x20+\x20support\x20'+_0x40689b['support'][_0x4e8f89(0x16c)]+')':_0x4e8f89(0x185)+_0x40689b[_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8):null,_0x17fa4a=_0x40689b?_0x4e8f89(0x14d)+_0x2f8db1+_0x4e8f89(0x14c)+_0x40689b['chainName']:null,_0x578792=_0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?_0x4e8f89(0x14a)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e1)]??_0x3d041d['amount'])+(_0x3d041d[_0x4e8f89(0x165)]?_0x4e8f89(0x130):''):null,_0xff185=_0x3d041d?.[_0x4e8f89(0x187)]?.[_0x4e8f89(0x179)]??(_0x40689b?.['networkFeeCap']?_0x40689b[_0x4e8f89(0x1ae)]+_0x4e8f89(0x1e0):null),_0xea0650=_0xff185?_0x4e8f89(0x20d)+_0xff185:null,_0x5d7c9e=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?_0x4e8f89(0x1aa):_0x4e8f89(0x1cc):null;let _0x1d03db=_0x40689b?_0x4e8f89(0x1d5)+(_0x40689b['support']?.[_0x4e8f89(0x129)]??_0x40689b[_0x4e8f89(0x16c)])+_0x4e8f89(0x14f):'';_0x40689b?.[_0x4e8f89(0x186)]&&_0x40689b['funding'][_0x4e8f89(0x13c)]!==_0x4e8f89(0x1bf)&&(_0x1d03db=_0x40689b['funding'][_0x4e8f89(0x165)]?_0x4e8f89(0x1c5):_0x4e8f89(0x1fa));const _0x31c5c1=0x2+_0x46af78(_0x2ab3b5[_0x4e8f89(0x19e)]??'Review\x20saved\x20payment',_0x54935c-0x4)['length']+[_0x1cfbf0,_0x17fa4a,_0x578792,_0xea0650,_0x5d7c9e]['filter'](Boolean)[_0x4e8f89(0x13e)]((_0xff2eb2,_0x4e3cae)=>_0xff2eb2+_0x46af78(_0x4e3cae,_0x54935c-0x4)[_0x4e8f89(0x1bb)],0x0)+(_0x54935c<0x46?_0x2ab3b5[_0x4e8f89(0x157)]?0x3:0x2:0x1)+0x1,_0x5ca4af=_0x40689b?[_0x4e8f89(0x13a),_0x40689b['objective'],'',..._0x40689b[_0x4e8f89(0x190)]['map'](_0x15ef38=>'-\x20'+_0x15ef38),'',..._0x40689b[_0x4e8f89(0x1ca)]?[_0x4e8f89(0x164),_0x4e8f89(0x131)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8),_0x4e8f89(0x1fc)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x1a5)],_0x4e8f89(0x199),'']:[],..._0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?[_0x3d041d[_0x4e8f89(0x165)]?'Conversion\x20to\x20IMD\x20already\x20confirmed.':_0x4e8f89(0x205)+_0x2f8db1+_0x4e8f89(0x117)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x183)]??_0x3d041d[_0x4e8f89(0x14b)]??_0x3d041d[_0x4e8f89(0x16c)])+_0x4e8f89(0x111)+(_0x3d041d[_0x4e8f89(0x187)]?.['payment']??_0x3d041d[_0x4e8f89(0x16c)])+'.',..._0x2f8db1===_0x4e8f89(0x192)?[_0x4e8f89(0x11b)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e9)]??_0x3d041d[_0x4e8f89(0x1e9)])+_0x4e8f89(0x1a4)]:[],_0x4e8f89(0x173)+_0x3d041d[_0x4e8f89(0x15d)],_0x4e8f89(0x1c9),'']:[],_0x4e8f89(0x127),..._0x2ab3b5['extraAction']?[_0x4e8f89(0x177)+_0x2ab3b5[_0x4e8f89(0x157)][_0x4e8f89(0x132)]+_0x4e8f89(0x167)]:[],_0x4e8f89(0x1bd),..._0x2ab3b5[_0x4e8f89(0x166)]?['',_0x4e8f89(0x184),_0x4e8f89(0x161)+_0x40689b[_0x4e8f89(0x1f2)],_0x4e8f89(0x150)+_0x40689b['network'],_0x4e8f89(0x13b)+_0x40689b['asset'],_0x4e8f89(0x136)+_0x40689b[_0x4e8f89(0x148)],_0x4e8f89(0x1a1)+_0x40689b[_0x4e8f89(0x217)],'',_0x4e8f89(0x1c7),JSON[_0x4e8f89(0x1fd)](_0x40689b[_0x4e8f89(0x1c8)],null,0x2)]:[]][_0x4e8f89(0x195)]('\x0a'):_0x2ab3b5[_0x4e8f89(0x1b6)][_0x4e8f89(0x195)]('\x0a');return _0x377643(A,{'title':_0x2ab3b5[_0x4e8f89(0x19e)]??_0x4e8f89(0x213),'width':_0x54935c,'height':_0x1163b8,'ascii':_0x1a161c,'active':!0x0},_0x1cfbf0?s(_0x1cfbf0,{'color':'cyan','bold':!0x0}):null,_0x17fa4a?s(_0x17fa4a,{'color':_0x4e8f89(0x170),'bold':!0x0}):null,_0x578792?s(_0x578792,{'color':_0x4e8f89(0x170)}):null,_0xea0650?s(_0xea0650,{'color':_0x4e8f89(0x188)}):null,_0x377643(G,{'content':_0x5ca4af,'width':_0x54935c-0x4,'height':Math[_0x4e8f89(0x203)](0x0,_0x1163b8-_0x31c5c1),'offset':_0x48675f['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),_0x5d7c9e?s(_0x5d7c9e,{'color':'yellow'}):null,_0x377643(_0x1d0bf1,{'flexDirection':_0x54935c<0x46?_0x4e8f89(0x20b):_0x4e8f89(0x1b2),'gap':_0x54935c<0x46?0x0:0x3},s('[\x20'+(_0x2ab3b5[_0x4e8f89(0x16f)]??(_0x40689b?_0x4e8f89(0x181):_0x4e8f89(0x1ab)))+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x0}),_0x2ab3b5['extraAction']?s('[\x20'+_0x2ab3b5['extraAction'][_0x4e8f89(0x132)]+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x40689b?_0x1d03db:_0x2ab3b5[_0x4e8f89(0x145)]??'Confirm')+'\x20]',{'inverse':_0x2ab3b5['accepted'],'color':_0x4e8f89(0x170)})),s(_0x4e8f89(0x1bc)+(_0x40689b?_0x4e8f89(0x1dd):''),{'dimColor':!0x0,'wrap':'truncate-end'}));}function pe({state:_0x28b9fc,width:_0x18d67b,height:_0x4a4f36,ascii:_0x485b43}){const _0x29ad8c=_0x4a8be8,_0x15c3a8=_0x28b9fc[_0x29ad8c(0x193)],_0xfb11d4=Math['max'](0x1,_0x4a4f36-0x5),_0x299d0d=Math[_0x29ad8c(0x203)](0x0,Math[_0x29ad8c(0x1ba)](_0x15c3a8[_0x29ad8c(0x142)]-Math['floor'](_0xfb11d4/0x2),_0x15c3a8[_0x29ad8c(0x1b3)]['length']-_0xfb11d4));return _0x377643(A,{'title':_0x15c3a8['title'],'width':_0x18d67b,'height':_0x4a4f36,'ascii':_0x485b43,'active':!0x0},..._0x15c3a8[_0x29ad8c(0x1b3)][_0x29ad8c(0x141)](_0x299d0d,_0x299d0d+_0xfb11d4)['map']((_0x5f8f59,_0x5f199b)=>s((_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]?'>\x20':'\x20\x20')+_0x5f8f59[_0x29ad8c(0x132)],{'key':_0x5f199b,'inverse':_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]})),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x29ad8c(0x16b),{'dimColor':!0x0}));}const we='WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.';function Ae({controller:_0x355e21,ascii:_0x213e54=!0x1,dimensions:_0x579fdb,terminal:_0x4bd5fb,feedback:_0x3cc182}){const _0x3208b7=_0x4a8be8,_0x1e0640=_0x15b696(_0x355e21[_0x3208b7(0x1f9)],_0x355e21[_0x3208b7(0x1d7)]),[_0x1605e6,_0x5dbe86]=_0x1fec36(0x0);_0xd6bd5d(()=>{const _0x11ce51=_0x3208b7,_0x486ece=setInterval(()=>_0x5dbe86(_0x1671ed=>(_0x1671ed+0x1)%Q[_0x11ce51(0x1bb)]),0x4e20);return()=>clearInterval(_0x486ece);},[]);const _0x4a1faa=_0x1e0640['error']??_0x1e0640[_0x3208b7(0x1cd)],_0x15ccb4=_0x3c7eca(),_0x134507=_0x579fdb??_0x15ccb4,_0x413e04=_0x134507[_0x3208b7(0x176)],_0x3e862f=Math[_0x3208b7(0x203)](0x8,_0x134507[_0x3208b7(0x134)]-0x1),_0x5340eb=_0x413e04<0x64,{exit:_0x27b90a}=_0x1c6ab1();if(_0xd6bd5d(()=>(_0x355e21[_0x3208b7(0x1e8)]=_0x4bd5fb,_0x355e21['refresh']()['then'](()=>{const _0x4a7687=_0x3208b7;_0x3cc182&&_0x355e21[_0x4a7687(0x1e5)](_0x3cc182);}),()=>_0x355e21[_0x3208b7(0x123)]()),[_0x355e21,_0x4bd5fb,_0x3cc182]),_0xd6bd5d(()=>{const _0x190409=setInterval(()=>{const _0x5e865e=_0x11f7;_0x355e21[_0x5e865e(0x215)]();},0x1388);return()=>clearInterval(_0x190409);},[_0x355e21]),_0x23dbf4((_0x2e2ddf,_0x160c0a)=>{const _0x45f222=_0x3208b7;if(_0x160c0a[_0x45f222(0x1d9)]&&_0x2e2ddf==='c'){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(_0x1e0640[_0x45f222(0x209)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x1e5)]({'privateKeyView':null});return;}if(_0x413e04<0x28||_0x134507['rows']<0x14){_0x1e0640['receive']?_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)]():_0x2e2ddf==='q'&&(_0x355e21[_0x45f222(0x123)](),_0x27b90a());return;}if(_0x1e0640['confirm']){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21['respond'](!0x1):_0x160c0a[_0x45f222(0x1f5)]||_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1c0)]?_0x355e21[_0x45f222(0x1d4)](_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1f5)]&&_0x160c0a[_0x45f222(0x159)]?-0x1:0x1):_0x160c0a[_0x45f222(0x1ed)]?_0x355e21[_0x45f222(0x1dc)]():_0x2e2ddf==='i'?_0x355e21[_0x45f222(0x1e5)]({'confirm':{..._0x1e0640['confirm'],'expanded':!_0x1e0640[_0x45f222(0x15b)]['expanded']},'scroll':0x0}):(_0x160c0a[_0x45f222(0x1f4)]||_0x160c0a[_0x45f222(0x1ad)])&&_0x355e21[_0x45f222(0x1e5)]({'scroll':Math[_0x45f222(0x203)](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:-0x5))});return;}if(_0x1e0640[_0x45f222(0x160)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x204)]():_0x160c0a[_0x45f222(0x1f5)]&&_0x355e21[_0x45f222(0x1e3)](_0x160c0a[_0x45f222(0x159)]);return;}if(_0x1e0640[_0x45f222(0x1ef)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)](),_0x2e2ddf==='s'&&_0x355e21['saveReceiveQr']();return;}if(_0x1e0640[_0x45f222(0x193)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x1f3)]():_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]?_0x355e21[_0x45f222(0x1e5)]({'menu':{..._0x1e0640[_0x45f222(0x193)],'selected':Math[_0x45f222(0x203)](0x0,Math[_0x45f222(0x1ba)](_0x1e0640[_0x45f222(0x193)][_0x45f222(0x1b3)][_0x45f222(0x1bb)]-0x1,_0x1e0640[_0x45f222(0x193)][_0x45f222(0x142)]+(_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1)))}}):_0x160c0a[_0x45f222(0x1ed)]&&_0x355e21['chooseMenu']();return;}if(_0x2e2ddf==='q'&&!_0x1e0640['busy']){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(!_0x1e0640[_0x45f222(0x178)]){if(_0x2e2ddf==='e'&&_0x4a1faa){_0x355e21['showError']();return;}if(_0x45f222(0x1be)[_0x45f222(0x1b4)](_0x2e2ddf)&&_0x2e2ddf[_0x45f222(0x1bb)]===0x1){_0x355e21[_0x45f222(0x1eb)](_0x118e55[Number(_0x2e2ddf)-0x1]);return;}if(_0x2e2ddf==='?'){_0x355e21[_0x45f222(0x1e5)]({'help':!_0x1e0640[_0x45f222(0x10e)],'scroll':0x0});return;}if(_0x160c0a[_0x45f222(0x1cf)]){_0x355e21[_0x45f222(0x1e5)]({'focus':'list','help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x2e2ddf==='n'){_0x1e0640['view']==='wallet'?_0x355e21[_0x45f222(0x139)](!0x1):_0x355e21[_0x45f222(0x121)]();return;}if(_0x2e2ddf==='r'){_0x355e21['refresh']();return;}if(_0x160c0a['pageDown']||_0x160c0a[_0x45f222(0x1ad)]||_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x1d8)&&(_0x160c0a['downArrow']||_0x160c0a[_0x45f222(0x17b)])){_0x355e21['update']({'scroll':Math['max'](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:_0x160c0a[_0x45f222(0x1ad)]?-0x5:_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1))});return;}if(_0x1e0640[_0x45f222(0x180)]==='wallet'){(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)])&&_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1),(_0x160c0a['return']||_0x160c0a['tab'])&&_0x355e21['update']({'focus':_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x174)?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0}),_0x2e2ddf==='u'&&_0x355e21[_0x45f222(0x112)](),_0x2e2ddf==='m'&&_0x355e21[_0x45f222(0x198)](),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x17d)](),_0x2e2ddf==='i'&&_0x355e21['walletImport'](),_0x2e2ddf==='d'&&_0x355e21['walletReceive'](),_0x2e2ddf==='b'&&_0x355e21[_0x45f222(0x16d)]();return;}if(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]){_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1);return;}if(_0x160c0a[_0x45f222(0x1ed)]||_0x160c0a[_0x45f222(0x1f5)]){_0x355e21[_0x45f222(0x1e5)]({'focus':_0x1e0640[_0x45f222(0x19b)]==='list'?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0});return;}if(_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x1f8)){_0x2e2ddf==='/'&&_0x355e21['search'](),_0x2e2ddf==='a'&&_0x355e21[_0x45f222(0x19a)](),_0x2e2ddf==='m'&&_0x355e21['workerMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x155)](['logs']),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x155)]([_0x45f222(0x140)]);return;}_0x2e2ddf==='/'&&_0x355e21[_0x45f222(0x214)](),_0x2e2ddf==='f'&&_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x169)&&_0x355e21[_0x45f222(0x144)](),(_0x2e2ddf==='['||_0x2e2ddf===']')&&_0x355e21[_0x45f222(0x16e)](_0x2e2ddf==='['?-0x1:0x1),_0x2e2ddf==='d'&&_0x355e21[_0x45f222(0x128)](),_0x2e2ddf==='s'&&_0x355e21[_0x45f222(0x113)](),_0x2e2ddf==='c'&&_0x355e21[_0x45f222(0x15a)](),_0x2e2ddf==='o'&&_0x355e21[_0x45f222(0x1c3)](),_0x2e2ddf==='x'&&_0x355e21[_0x45f222(0x20a)](),_0x2e2ddf==='m'&&_0x355e21['taskMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x197)]();}}),_0x413e04<0x28||_0x134507[_0x3208b7(0x134)]<0x14)return _0x377643(_0x1d0bf1,{'width':_0x413e04,'flexDirection':_0x3208b7(0x20b)},s(_0x3208b7(0x13d),{'color':_0x3208b7(0x170)}),s(_0x3208b7(0x1fe)),s(_0x1e0640[_0x3208b7(0x1ef)]||_0x1e0640['privateKeyView']?'Esc\x20back':_0x3208b7(0x202)));if(_0x1e0640[_0x3208b7(0x209)])return _0x377643(A,{'title':_0x3208b7(0x211),'width':_0x413e04,'height':_0x3e862f,'ascii':_0x213e54,'active':!0x0},s(_0x3208b7(0x163)+_0x1e0640[_0x3208b7(0x209)][_0x3208b7(0x12f)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':'yellow'}),_0x377643(_0x1d0bf1,{'marginTop':0x1},s(_0x1e0640['privateKeyView'][_0x3208b7(0x126)])),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s('Esc\x20hide\x20and\x20return',{'color':_0x3208b7(0x170)}));if(_0x1e0640['receive']&&!_0x1e0640['form']){const _0x3a6b96=_0x1e0640[_0x3208b7(0x1ef)],_0x66f8c1=_0x3a6b96['qr']['split']('\x0a'),_0x206a6d=!_0x3a6b96['networks']||_0x3a6b96['networks']['length']===0x1,_0x5e03bd=[..._0x206a6d?[_0x3208b7(0x194)+_0x3a6b96[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')]:_0x3a6b96[_0x3208b7(0x1db)]['map'](_0x1dd4f1=>_0x1dd4f1['chainName']+':\x20'+_0x1dd4f1[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')),..._0x3a6b96[_0x3208b7(0x1f0)]??[]],_0x4035b2=_0x206a6d?_0x3208b7(0x1b5)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x158)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x1ce):_0x3208b7(0x212),_0x4af1d6=[_0x3a6b96[_0x3208b7(0x12f)],..._0x5e03bd,_0x4035b2][_0x3208b7(0x13e)]((_0x73232d,_0x17bf75)=>_0x73232d+_0x46af78(_0x17bf75,_0x413e04)[_0x3208b7(0x1bb)],0x0),_0x37880a=_0x66f8c1[_0x3208b7(0x1bb)]+_0x4af1d6+0x2,_0x545364=_0x413e04>=_0x66f8c1[0x0][_0x3208b7(0x1bb)]&&_0x3e862f>=_0x37880a;return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':_0x3208b7(0x20b)},s(_0x206a6d?_0x3208b7(0x1b0)+_0x3a6b96['chainName']:_0x3208b7(0x152),{'bold':!0x0,'color':'cyan'}),s(_0x3a6b96[_0x3208b7(0x12f)]),..._0x5e03bd[_0x3208b7(0x162)]((_0x3f511a,_0x574977)=>s(_0x3f511a,{'key':_0x574977})),_0x545364?s(_0x3a6b96['qr'],{'color':_0x3208b7(0x1df),'backgroundColor':_0x3208b7(0x168)}):s(_0x3208b7(0x1e6)+Math[_0x3208b7(0x203)](0x28,_0x66f8c1[0x0][_0x3208b7(0x1bb)])+_0x3208b7(0x1da)+(_0x37880a+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x4035b2,{'color':_0x3208b7(0x188)}),s(_0x4b445d(_0x1e0640[_0x3208b7(0x20c)]??_0x1e0640[_0x3208b7(0x154)]??_0x3208b7(0x182),_0x413e04),{'color':_0x1e0640['error']?_0x3208b7(0x11e):_0x3208b7(0x170)}));}const _0x1443c0=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x17f)],_0x29d85b=Math[_0x3208b7(0x203)](0x6,_0x3e862f-(_0x1443c0?0x3:0x6)),_0x2c8303=_0x1f852a(_0x1e0640)[_0x1e0640[_0x3208b7(0x142)]];let _0x4ca51d;if(_0x1e0640['form'])_0x4ca51d=_0x377643(me,{'controller':_0x355e21,'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640[_0x3208b7(0x15b)])_0x4ca51d=_0x377643(he,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['modelProgress'])_0x4ca51d=_0x377643(ue,{'event':_0x1e0640[_0x3208b7(0x17f)],'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['menu'])_0x4ca51d=_0x377643(pe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['help'])_0x4ca51d=_0x377643(A,{'title':_0x3208b7(0x20f),'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'active':!0x0},_0x377643(G,{'content':we,'width':_0x413e04-0x4,'height':_0x29d85b-0x4,'offset':_0x1e0640[_0x3208b7(0x206)]}),s(_0x3208b7(0x218),{'dimColor':!0x0}));else{if(_0x1e0640['view']===_0x3208b7(0x17a))_0x4ca51d=_0x377643(fe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'narrow':_0x5340eb});else{const _0x2da724=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174),_0x2336ad=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]==='detail',_0x16cc73=_0x5340eb?_0x413e04:Math['floor'](_0x413e04*0.43),_0x3b3139=_0x2da724&&!_0x5340eb?_0x413e04-_0x16cc73-0x1:_0x413e04,_0x980287=_0x8f542f({..._0x1e0640,'selectedId':_0x2c8303?.['id']}),_0x50776e=_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x169)||_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x1f6),_0x13cacb=_0x50776e?_0x48aa65(_0x2c8303,_0x1e0640[_0x3208b7(0x180)]):_0x2c8303?_0x2c8303[_0x3208b7(0x110)]==='network-worker'?['Read\x20only']:[_0x3208b7(0x1c1),_0x3208b7(0x1a8),_0x3208b7(0x1ec)]:[];_0x4a1faa&&_0x13cacb[_0x3208b7(0x1e2)](_0x3208b7(0x1cb));const _0x1b99ec=L(_0x13cacb,_0x3b3139-0x4),_0x39acd5=_0x1b99ec['length']?_0x1b99ec[_0x3208b7(0x1bb)]+0x1:0x0,_0x24f5c4=L([_0x3208b7(0x1d0),'PgUp/PgDn\x20scroll',..._0x50776e?['[\x20]\x20tabs']:[]],_0x3b3139-0x4);_0x4ca51d=_0x377643(_0x1d0bf1,{'height':_0x29d85b,'width':_0x413e04,'gap':0x1},_0x2da724?_0x377643(A,{'title':(_0x1e0640[_0x3208b7(0x180)]==='workers'?_0x3208b7(0x1c2):_0x1e0640[_0x3208b7(0x1a3)])+(_0x1e0640[_0x3208b7(0x1a7)]?_0x3208b7(0x201)+_0x4b445d(_0x1e0640['query'],0x16):''),'width':_0x16cc73,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174)},_0x377643(z,{'state':_0x1e0640,'height':_0x29d85b,'width':_0x16cc73-0x4,'ascii':_0x213e54})):null,_0x2336ad?_0x377643(A,{'title':_0x4b445d(_0x2c8303?.['id']??_0x3208b7(0x116),_0x3b3139-0x7),'width':_0x3b3139,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x1d8)},_0x50776e?s([_0x3208b7(0x15e),_0x3208b7(0x12b),_0x3208b7(0x1c6)][_0x3208b7(0x162)](_0x20b2c2=>_0x20b2c2===_0x1e0640[_0x3208b7(0x1f5)]?'['+_0x20b2c2+']':_0x20b2c2)['join']('\x20\x20'),{'color':_0x3208b7(0x170),'wrap':'truncate-end'}):null,_0x377643(G,{'content':_0x980287,'width':_0x3b3139-0x4,'height':_0x29d85b-0x3-Number(_0x50776e)-_0x39acd5-_0x24f5c4[_0x3208b7(0x1bb)],'offset':_0x1e0640['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x24f5c4[_0x3208b7(0x162)]((_0x2c7104,_0x1e97da)=>s(_0x2c7104,{'key':_0x1e97da,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1b99ec,'width':_0x3b3139-0x4,'ascii':_0x213e54})):null);}}}}}}const _0x29cf65=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?_0x3208b7(0x1de):_0x3208b7(0x1b1),_0x4246ba=_0x413e04<0x4b?_0x118e55['map']((_0x475edf,_0x4d3d9e)=>'['+(_0x4d3d9e+0x1)+']'+[_0x3208b7(0x133),_0x3208b7(0x210),_0x3208b7(0x125),'Wallets'][_0x4d3d9e])[_0x3208b7(0x195)]('\x20'):_0x118e55[_0x3208b7(0x162)]((_0x482528,_0x39edb2)=>(_0x482528===_0x1e0640[_0x3208b7(0x180)]?'>\x20':'\x20\x20')+'['+(_0x39edb2+0x1)+']\x20'+ce[_0x482528])['join']('\x20\x20');return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':'column'},_0x377643(_0x1d0bf1,{'justifyContent':'space-between','height':_0x1443c0?0x1:0x2},s(_0x3208b7(0x216),{'color':_0x3208b7(0x170),'bold':!0x0}),_0x413e04>=0x4b?s(_0x1e0640[_0x3208b7(0x12f)]?_0x4b445d(_0x1e0640['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1443c0?null:s(_0x4246ba,{'color':_0x3208b7(0x170),'wrap':_0x3208b7(0x119)}),_0x1443c0?null:_0x1e0640[_0x3208b7(0x178)]||_0x1e0640[_0x3208b7(0x1e4)]?_0x377643(B,{'label':_0x1e0640[_0x3208b7(0x178)]??_0x3208b7(0x18b)}):s(_0x1e0640['note'],{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}),_0x4ca51d,s(_0x4b445d(_0x4a1faa??_0x1e0640[_0x3208b7(0x154)]??(_0x1443c0||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?'':Q[_0x1605e6]),_0x413e04),{'color':_0x4a1faa?_0x3208b7(0x11e):_0x1e0640[_0x3208b7(0x154)]?_0x3208b7(0x137):void 0x0,'dimColor':!_0x4a1faa&&!_0x1e0640[_0x3208b7(0x154)]}),s(_0x29cf65,{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}));}function _0x11f7(_0x30f202,_0x203dda){_0x30f202=_0x30f202-0x10d;const _0x11f7e6=_0x203d();let _0x4a6eb3=_0x11f7e6[_0x30f202];return _0x4a6eb3;}export{Ae as DashboardApp};function _0x203d(){const _0x39ce0d=['installed','help','End\x20of\x20history','kind',',\x20at\x20most\x20','useSelectedWallet','download','challenged','payment_failed','DETAILS','\x20to\x20IMD\x20for\x20you:\x20≈\x20','completed','truncate-end','Enter\x20','Total\x20ETH\x20at\x20most:\x20','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','\x20items\x20·\x20','red','startsWith','values','create','gray','close','WALLET\x20MANAGEMENT','Work','privateKey','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','files','total','subtitle','Activity','\x20entries\x20·\x20Mine\x20+\x20Network','\x20tasks','selection','address','\x20(converted)','Optional\x20support:\x20','label','Mine','rows','cancelled','Pay\x20to:\x20','green','submitForm','walletSetup','REQUEST','Asset:\x20','coin','COLONY','reduce','My\x20tasks','doctor','slice','selected','managed-worker','cycleFilter','acceptLabel','payWith','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','payTo','blocked','Payment:\x20at\x20most\x20','estimatedAmount','\x20on\x20','Pay\x20with\x20','\x20wallets','\x20IMD\x20&\x20publish','Network:\x20','expired','Receive\x20funds','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','notice','workerCommand','Explore','extraAction','\x20only.\x20Choose\x20','shift','continueTask','confirm','fields','minimumImd','Overview','[n]\x20New\x20task','form','Quote\x20expires:\x20','map','Wallet:\x20','Help\x20us\x20make\x20Colony\x20better.','converted','expanded','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','white','tasks','Preparing\x20local\x20LLM','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','amount','walletBackup','changeTab','cancelLabel','cyan','Mine\x20·\x20','en-US','IMD\x20for\x20this\x20task:\x20','list','Deployed\x20·\x20status\x20on\x20selection','columns','Choose\x20','busy','gas','wallet','upArrow','********','walletManagement','next','modelProgress','view','Cancel\x20/\x20edit','s\x20save\x20QR\x20·\x20Esc\x20back','estimate','PAYMENT\x20DETAILS','Fee\x20','funding','display','yellow','Not\x20deployed','downArrow','Refreshing\x20tasks...','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','closeReceive','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','Enter/Tab\x20details','deliverables','cursor','ETH','menu','Accepted:\x20','join','floor','more','walletMenu','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','addTarget','focus','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','submit','title','repeat','[r]\x20Refresh','Order:\x20','state','filter','\x20(payment\x20+\x20gas)','recipient','move','query','[l]\x20Logs','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','Cancel','Loading\x20history...','pageUp','networkFeeCap','hint','Receive\x20on\x20','[?]\x20Help\x20\x20[q]\x20Quit','row','items','includes','Send\x20on\x20','lines','up/down','\x20IMD','setField','min','length','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','IMD','rightArrow','[m]\x20Actions','WORKERS','resumeOrder','coins','Continue\x20&\x20publish','Files','SERVER\x20PREPARED\x20INPUT','prepared','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','support','[e]\x20Error\x20details','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','refreshError','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','escape','Esc/Tab\x20list','\x20results\x20loaded','toLocaleString','refused','moveConfirmation','Pay\x20','WALLETS','getSnapshot','detail','ctrl','\x20columns\x20and\x20','networks','submitConfirmation','\x20·\x20i\x20details','[Ctrl+C]\x20Exit','black','\x20ETH','payment','push','nextField','refreshing','update','Resize\x20to\x20at\x20least\x20','placeholder','terminal','maximumDebit','secret','navigate','[g]\x20Diagnostics','return','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','receive','targets','hidden','expiresAt','dismissMenu','pageDown','tab','explore','[>]','workers','subscribe','Convert\x20&\x20publish','[/]\x20Search','Support\x20recipient:\x20','stringify','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','Item\x20','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20/\x20','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','max','dismissForm','Colony\x20converts\x20','scroll','name','field','privateKeyView','cancelRequest','column','error','Gas\x20(network\x20fee):\x20at\x20most\x20','down\x20loads\x20more','Keyboard\x20shortcuts','Browse','Private\x20key','Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.','Review\x20saved\x20payment','search','autoRefresh','COLONY\x20\x20get\x20things\x20done.','orderId','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','leftArrow','[f]\x20Filter','chainName'];_0x203d=function(){return _0x39ce0d;};return _0x203d();}
|
|
1
|
+
const _0x1394b3=_0x242c;import{createElement as _0x58d9dd,useEffect as _0x3db06e,useState as _0x2f2dac,useSyncExternalStore as _0x64a80b}from'react';import{Box as _0x19aeea,Text as _0x39b46f,useApp as _0x33449e,useInput as _0x503b1c,useWindowSize as _0x1977a6}from'ink';import _0x117be9 from'ink-text-input';import _0x1cb0c9 from'string-width';import{visibleItems as _0x56bbe3,VIEWS as _0x4d1b58}from'./controller.mjs';import{clean as _0x253cd7,detailText as _0x228f58,lines as _0xa87f81,short as _0x3e3169,statusLabel as _0x21ee5a,taskActions as _0x52a8bb}from'./presentation.mjs';import{modelProgressLines as _0x19a439}from'../planner/progress.mjs';const ce={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},de={'tasks':'My\x20tasks','explore':_0x1394b3(0x1c7),'workers':_0x1394b3(0x24f),'wallet':_0x1394b3(0x20c)},B=[_0x1394b3(0x227),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x1394b3(0x248),_0x1394b3(0x28d),_0x1394b3(0x1de)],ue=_0x497b5a=>_0x497b5a===_0x1394b3(0x29e)?_0x1394b3(0x2a8):_0x497b5a==='completed'?_0x1394b3(0x1f9):[_0x1394b3(0x1af),'blocked',_0x1394b3(0x218),'payment_failed',_0x1394b3(0x237)]['includes'](_0x497b5a)?_0x1394b3(0x1d2):'cyan',s=(_0x43a08e,_0x4d42b5={})=>_0x58d9dd(_0x39b46f,_0x4d42b5,_0x253cd7(_0x43a08e));function z({label:_0x3490b4}){const _0x158e6f=_0x1394b3,[_0x54e1a5,_0x4def7d]=_0x2f2dac(0x0);return _0x3db06e(()=>{const _0x4d7f30=setInterval(()=>_0x4def7d(_0xfc010e=>(_0xfc010e+0x1)%0x4),0x96);return()=>clearInterval(_0x4d7f30);},[]),s(['|','/','-','\x5c'][_0x54e1a5]+'\x20'+_0x3490b4,{'color':_0x158e6f(0x1ba),'wrap':_0x158e6f(0x2ac)});}function C({title:_0x4ed05d,width:_0xd63f7a,height:_0x13f599,ascii:_0x162e98,active:_0x4cce7a,children:_0x4198a9}){const _0xcc6f6c=_0x1394b3;return _0x58d9dd(_0x19aeea,{'width':_0xd63f7a,'height':_0x13f599,'flexDirection':'column','borderStyle':_0x162e98?ce:_0xcc6f6c(0x1c8),'borderColor':_0x4cce7a?_0xcc6f6c(0x1ba):_0xcc6f6c(0x2a8),'paddingX':0x1,'flexShrink':0x0,'overflow':_0xcc6f6c(0x2a7)},s(_0x4ed05d,{'color':_0x4cce7a?_0xcc6f6c(0x1ba):void 0x0,'dimColor':!_0x4cce7a}),_0x4198a9);}function L(_0x450ab4,_0x29b2ab){const _0x360960=_0x1394b3,_0x1306c1=[];for(const _0x59445a of _0x450ab4){const _0x8768d7=_0x1306c1[_0x360960(0x27b)]-0x1;_0x8768d7>=0x0&&_0x1cb0c9(_0x1306c1[_0x8768d7]+'\x20\x20'+_0x59445a)<=_0x29b2ab?_0x1306c1[_0x8768d7]+='\x20\x20'+_0x59445a:_0x1306c1[_0x360960(0x1bd)](_0x59445a);}return _0x1306c1;}function K({rows:_0x462263,width:_0x492062,ascii:_0x436e6d}){const _0x36c553=_0x1394b3;return _0x462263['length']?_0x58d9dd(_0x19aeea,{'flexDirection':_0x36c553(0x1e2),'flexShrink':0x0},s((_0x436e6d?'-':'\u2500')['repeat'](_0x492062),{'dimColor':!0x0}),..._0x462263[_0x36c553(0x1e3)]((_0x506a4d,_0x3b51a9)=>s(_0x506a4d,{'key':_0x3b51a9,'color':_0x36c553(0x1ba),'bold':!0x0}))):null;}function fe({event:_0x470701,width:_0x56b9c0,height:_0x5c8be8,ascii:_0x1a3d93}){const _0x39d9c0=_0x1394b3,_0x411a95=_0x19a439(_0x470701,{'width':_0x56b9c0-0x4,'compact':!0x0})[_0x39d9c0(0x253)](0x2);return _0x58d9dd(C,{'title':_0x39d9c0(0x276),'width':_0x56b9c0,'height':_0x5c8be8,'ascii':_0x1a3d93,'active':!0x0},_0x58d9dd(_0x19aeea,{'flexDirection':_0x39d9c0(0x1e2)},..._0x411a95[_0x39d9c0(0x1e3)]((_0x49a1ca,_0x3d8b10)=>_0x49a1ca[_0x39d9c0(0x1d7)](_0x39d9c0(0x216))?_0x58d9dd(z,{'key':_0x3d8b10,'label':_0x49a1ca[_0x39d9c0(0x253)](0x4)}):s(_0x49a1ca||'\x20',{'key':_0x3d8b10,'color':_0x49a1ca[_0x39d9c0(0x1d7)]('[+]')?_0x39d9c0(0x1f9):'cyan'}))),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}));}function _0x242c(_0xce7c0c,_0x56092c){_0xce7c0c=_0xce7c0c-0x1af;const _0x242c61=_0x5609();let _0x65f614=_0x242c61[_0xce7c0c];return _0x65f614;}function O({content:_0x4efb17,width:_0x4ef911,height:_0x874045,offset:_0x37280c}){const _0x4dee98=_0x1394b3,_0x4ba11b=_0xa87f81(_0x4efb17,_0x4ef911),_0x384c79=Math[_0x4dee98(0x223)](_0x37280c,Math[_0x4dee98(0x1dd)](0x0,_0x4ba11b['length']-_0x874045));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4dee98(0x1e2),'height':_0x874045,'overflow':_0x4dee98(0x2a7)},..._0x4ba11b[_0x4dee98(0x253)](_0x384c79,_0x384c79+_0x874045)['map']((_0x211a41,_0x4be9bb)=>s(_0x211a41||'\x20',{'key':_0x4be9bb})));}function Y({state:_0x1d2ac0,height:_0x3cf7e8,width:_0x5e07e1,ascii:_0x39f1e}){const _0x4fb8fc=_0x1394b3,_0x2e3cf3=_0x56bbe3(_0x1d2ac0),_0x56041f=_0x1d2ac0[_0x4fb8fc(0x288)]==='explore',_0x20a2e2=_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x1ed)?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),'[f]\x20Filter',_0x4fb8fc(0x294)]:_0x56041f?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),_0x4fb8fc(0x294)]:_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?[_0x4fb8fc(0x221),_0x4fb8fc(0x26d),'[r]\x20Refresh']:[];_0x1d2ac0[_0x4fb8fc(0x288)]!==_0x4fb8fc(0x1bc)&&(_0x1d2ac0['error']||_0x1d2ac0[_0x4fb8fc(0x27a)])&&_0x20a2e2[_0x4fb8fc(0x1bd)](_0x4fb8fc(0x285));const _0x5510a4=L(_0x20a2e2,_0x5e07e1),_0x7eed27=_0x56041f?_0x1d2ac0[_0x4fb8fc(0x29c)]:_0x2e3cf3[_0x4fb8fc(0x27b)],_0x23f712=_0x56041f?_0x7eed27===null?_0x2e3cf3[_0x4fb8fc(0x27b)]+_0x4fb8fc(0x262):_0x7eed27[_0x4fb8fc(0x287)](_0x4fb8fc(0x252))+(_0x7eed27===0x1?_0x4fb8fc(0x297):_0x4fb8fc(0x246)):_0x2e3cf3[_0x4fb8fc(0x27b)]+(_0x1d2ac0['view']===_0x4fb8fc(0x1bc)?_0x4fb8fc(0x1e5):_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?_0x4fb8fc(0x26b):_0x4fb8fc(0x222)+_0x1d2ac0[_0x4fb8fc(0x24d)]),_0x2f3edb=_0x7eed27===null?_0x4fb8fc(0x1cd)+(_0x1d2ac0['selected']+0x1):_0x1d2ac0['selected']+0x1+'/'+_0x7eed27['toLocaleString'](_0x4fb8fc(0x252)),_0x4d5faf=_0x56041f&&_0x1d2ac0[_0x4fb8fc(0x260)]===_0x2e3cf3[_0x4fb8fc(0x27b)]-0x1;let _0x47d58e='up/down';_0x4d5faf&&(_0x1d2ac0['busy']?_0x47d58e=_0x4fb8fc(0x219):_0x1d2ac0['error']&&_0x1d2ac0[_0x4fb8fc(0x265)]?_0x47d58e='l\x20retry\x20history':_0x47d58e=_0x1d2ac0[_0x4fb8fc(0x265)]?_0x4fb8fc(0x225):'End\x20of\x20history');const _0x3cbea8=_0x2e3cf3[_0x4fb8fc(0x27b)]?L([_0x2f3edb,_0x47d58e,_0x4fb8fc(0x1c9)],_0x5e07e1):[],_0x3e4303=_0x5510a4[_0x4fb8fc(0x27b)]?_0x5510a4[_0x4fb8fc(0x27b)]+0x1:0x0,_0x4372ff=Math[_0x4fb8fc(0x1dd)](0x1,Math[_0x4fb8fc(0x295)]((_0x3cf7e8-0x4-_0x3cbea8['length']-_0x3e4303)/0x3)),_0xdede0c=Math[_0x4fb8fc(0x1dd)](0x0,Math[_0x4fb8fc(0x223)](_0x1d2ac0['selected']-Math['floor'](_0x4372ff/0x2),_0x2e3cf3[_0x4fb8fc(0x27b)]-_0x4372ff));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4fb8fc(0x1e2),'flexGrow':0x1},s(_0x23f712,{'dimColor':!0x0}),..._0x2e3cf3[_0x4fb8fc(0x253)](_0xdede0c,_0xdede0c+_0x4372ff)['map']((_0x54f0bc,_0x3987a0)=>_0x58d9dd(_0x19aeea,{'key':_0x54f0bc['id'],'flexDirection':_0x4fb8fc(0x1e2)},s((_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0?'>\x20':'\x20\x20')+_0x3e3169((_0x54f0bc[_0x4fb8fc(0x1e7)]==='managed-worker'?'Mine\x20\xB7\x20':'')+_0x54f0bc[_0x4fb8fc(0x1db)],_0x5e07e1-0x2),{'inverse':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0,'bold':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0}),s('\x20\x20'+_0x3e3169(_0x54f0bc['subtitle']??_0x21ee5a(_0x54f0bc['state'])??(_0x54f0bc[_0x4fb8fc(0x257)]?_0x4fb8fc(0x202):'Not\x20deployed'),_0x5e07e1-0x2),{'color':ue(_0x54f0bc['state'])}),s((_0x39f1e?'-':'\u2500')[_0x4fb8fc(0x1b5)](_0x5e07e1),{'dimColor':!0x0}))),_0x2e3cf3[_0x4fb8fc(0x27b)]===0x0?s(_0x1d2ac0[_0x4fb8fc(0x278)]?_0x4fb8fc(0x2a0):_0x1d2ac0[_0x4fb8fc(0x207)]?'Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.':_0x1d2ac0[_0x4fb8fc(0x288)]==='wallet'?'No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.':_0x1d2ac0['view']==='tasks'?_0x4fb8fc(0x24a):_0x4fb8fc(0x2ab),{'dimColor':!0x0}):null,_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x3cbea8[_0x4fb8fc(0x1e3)]((_0x1ae2fb,_0x29188b)=>s(_0x1ae2fb,{'key':_0x29188b,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x5510a4,'width':_0x5e07e1,'ascii':_0x39f1e}));}function me({state:_0xa3cd49,width:_0x55a21d,height:_0x882328,ascii:_0x9c7810,narrow:_0x5a01f2}){const _0x4f89db=_0x1394b3,_0x223500=_0x5a01f2?_0x55a21d:Math[_0x4f89db(0x295)](_0x55a21d*0.43),_0x2f1e08=_0x5a01f2?_0x55a21d:_0x55a21d-_0x223500-0x1,_0x5b99b7=0x5,_0x2c1b1c=_0x882328-_0x5b99b7,_0x49a213=_0xa3cd49[_0x4f89db(0x23e)]?.[_0x4f89db(0x2aa)]?[_0x4f89db(0x1d6),_0x4f89db(0x294)]:[_0x4f89db(0x294)];(_0xa3cd49[_0x4f89db(0x207)]||_0xa3cd49[_0x4f89db(0x27a)])&&_0x49a213[_0x4f89db(0x1bd)](_0x4f89db(0x285));const _0x26011e=L(_0x49a213,_0x2f1e08-0x4),_0x2a1978=L([_0x4f89db(0x1f1),_0x4f89db(0x22a)],_0x2f1e08-0x4),_0x24d8ba=_0x58d9dd(C,{'title':_0x4f89db(0x24c),'width':_0x223500,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]==='list'},_0x58d9dd(Y,{'state':_0xa3cd49,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'width':_0x223500-0x4,'ascii':_0x9c7810})),_0x557a59=_0x58d9dd(C,{'title':_0x4f89db(0x261),'width':_0x2f1e08,'height':_0x2c1b1c,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]===_0x4f89db(0x23e)},_0x58d9dd(O,{'content':_0x228f58(_0xa3cd49),'width':_0x2f1e08-0x4,'height':_0x2c1b1c-0x4-_0x2a1978['length']-_0x26011e[_0x4f89db(0x27b)],'offset':_0xa3cd49['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x2a1978[_0x4f89db(0x1e3)]((_0x3ee167,_0x28fdc7)=>s(_0x3ee167,{'key':_0x28fdc7,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x26011e,'width':_0x2f1e08-0x4,'ascii':_0x9c7810})),_0x43ff14=_0x58d9dd(C,{'title':_0x4f89db(0x1fb),'width':_0x2f1e08,'height':_0x5b99b7,'ascii':_0x9c7810,'active':!0x1},s(_0x4f89db(0x1c2)),s(_0x4f89db(0x1f2)));return _0x5a01f2?_0x58d9dd(_0x19aeea,{'flexDirection':_0x4f89db(0x1e2),'width':_0x55a21d,'height':_0x882328},_0xa3cd49[_0x4f89db(0x29d)]==='list'?_0x24d8ba:_0x557a59,_0x43ff14):_0x58d9dd(_0x19aeea,{'width':_0x55a21d,'height':_0x882328,'gap':0x1},_0x24d8ba,_0x58d9dd(_0x19aeea,{'width':_0x2f1e08,'flexDirection':_0x4f89db(0x1e2)},_0x557a59,_0x43ff14));}function he({controller:_0x353435,state:_0x414e3e,width:_0x2aaf86,height:_0x4c7f4f,ascii:_0x4f79ed}){const _0x4a0439=_0x1394b3,_0x2b3e58=_0x414e3e[_0x4a0439(0x2a3)],_0x3dc02b=_0x2b3e58['fields'][_0x2b3e58[_0x4a0439(0x242)]],_0x3951df=_0x2b3e58[_0x4a0439(0x1cc)]['slice'](0x0,_0x2b3e58[_0x4a0439(0x242)])[_0x4a0439(0x1e3)](_0x1f85b2=>_0x1f85b2[_0x4a0439(0x20e)]+':\x20'+(_0x1f85b2[_0x4a0439(0x1e1)]?'********':_0x2b3e58[_0x4a0439(0x235)][_0x1f85b2[_0x4a0439(0x2a5)]]));return _0x58d9dd(C,{'title':_0x2b3e58['title'],'width':_0x2aaf86,'height':_0x4c7f4f,'ascii':_0x4f79ed,'active':!0x0},_0x58d9dd(_0x19aeea,{'marginTop':0x1,'flexDirection':_0x4a0439(0x1e2)},..._0x3951df[_0x4a0439(0x1e3)]((_0x3d2fcd,_0x4f047c)=>s(_0x3e3169(_0x3d2fcd,_0x2aaf86-0x6),{'key':_0x4f047c,'dimColor':!0x0})),s(_0x3dc02b['label'],{'bold':!0x0}),_0x58d9dd(_0x19aeea,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x4a0439(0x1dd)](0x2,_0x4c7f4f-0x9),'overflow':_0x4a0439(0x2a7)},s('>\x20',{'color':'cyan'}),_0x58d9dd(_0x117be9,{'key':_0x3dc02b[_0x4a0439(0x2a5)],'value':_0x2b3e58['values'][_0x3dc02b[_0x4a0439(0x2a5)]],'placeholder':_0x3dc02b[_0x4a0439(0x245)]??'','mask':_0x3dc02b[_0x4a0439(0x1e1)]?'*':void 0x0,'onChange':_0xc9a16c=>_0x353435[_0x4a0439(0x1dc)](_0xc9a16c),'onSubmit':()=>_0x2b3e58['field']===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?void _0x353435[_0x4a0439(0x299)]():_0x353435[_0x4a0439(0x2af)]()})),s(_0x2b3e58[_0x4a0439(0x207)]??'',{'color':'red'}),_0x2b3e58[_0x4a0439(0x250)]?s(_0x2b3e58['hint'],{'dimColor':!0x0}):null),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x4a0439(0x273)+(_0x2b3e58[_0x4a0439(0x242)]===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?_0x2b3e58[_0x4a0439(0x28b)]:_0x4a0439(0x244))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':'cyan','wrap':_0x4a0439(0x2ac)}));}function pe({state:_0x35f396,width:_0x5a2c93,height:_0x401687,ascii:_0x301675}){const _0x166aaf=_0x1394b3,_0x22ae9d=_0x35f396[_0x166aaf(0x270)],_0x2af54f=_0x22ae9d[_0x166aaf(0x229)],_0x4925ea=_0x2af54f?.['funding'],_0xea672d=_0x4925ea?.['coin']??_0x2af54f?.['payWith']??_0x166aaf(0x289),_0x3fc8ad=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x2ae)+_0x2af54f[_0x166aaf(0x1ea)]['total']+_0x166aaf(0x290)+_0x2af54f[_0x166aaf(0x277)]+_0x166aaf(0x22b)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+')':_0x166aaf(0x1ca)+_0x2af54f[_0x166aaf(0x277)]+'\x20IMD':null,_0x5293c0=_0x2af54f?_0x166aaf(0x1b9)+_0xea672d+_0x166aaf(0x1b7)+_0x2af54f['chainName']:null,_0x4437fe=_0x4925ea&&_0xea672d!==_0x166aaf(0x289)?_0x166aaf(0x21c)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea['amount'])+(_0x4925ea['converted']?_0x166aaf(0x205):''):null,_0x540e54=_0x4925ea?.['display']?.[_0x166aaf(0x217)]??(_0x2af54f?.[_0x166aaf(0x249)]?_0x2af54f[_0x166aaf(0x249)]+'\x20ETH':null),_0x23bd8d=_0x540e54?_0x166aaf(0x22e)+_0x540e54:null,_0x508a0d=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x20f):'Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.':null;let _0x2bf1c9=_0x2af54f?_0x166aaf(0x1b0)+(_0x2af54f[_0x166aaf(0x1ea)]?.[_0x166aaf(0x29c)]??_0x2af54f['amount'])+_0x166aaf(0x1d0):'';_0x2af54f?.[_0x166aaf(0x1d9)]&&_0x2af54f[_0x166aaf(0x1d9)][_0x166aaf(0x1f4)]!=='IMD'&&(_0x2bf1c9=_0x2af54f['funding'][_0x166aaf(0x1b3)]?_0x166aaf(0x1d8):_0x166aaf(0x25d));const _0x4e00e0=0x2+_0xa87f81(_0x22ae9d['title']??_0x166aaf(0x2a4),_0x5a2c93-0x4)[_0x166aaf(0x27b)]+[_0x3fc8ad,_0x5293c0,_0x4437fe,_0x23bd8d,_0x508a0d][_0x166aaf(0x24d)](Boolean)[_0x166aaf(0x292)]((_0x2efb0d,_0x2b20fd)=>_0x2efb0d+_0xa87f81(_0x2b20fd,_0x5a2c93-0x4)[_0x166aaf(0x27b)],0x0)+(_0x5a2c93<0x46?_0x22ae9d[_0x166aaf(0x236)]?0x3:0x2:0x1)+0x1,_0x2f94d9=_0x2af54f?['REQUEST',_0x2af54f[_0x166aaf(0x1d3)],'',..._0x2af54f[_0x166aaf(0x20a)][_0x166aaf(0x1e3)](_0x30b637=>'-\x20'+_0x30b637),'',..._0x2af54f['support']?[_0x166aaf(0x231),_0x166aaf(0x25a)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+_0x166aaf(0x2a2),'Support\x20recipient:\x20'+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x211)],_0x166aaf(0x1e0),'']:[],..._0x4925ea&&_0xea672d!==_0x166aaf(0x289)?[_0x4925ea[_0x166aaf(0x1b3)]?_0x166aaf(0x20b):_0x166aaf(0x1ec)+_0xea672d+'\x20to\x20IMD\x20for\x20you:\x20\u2248\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x1f6)]??_0x4925ea[_0x166aaf(0x214)]??_0x4925ea['amount'])+_0x166aaf(0x25f)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea[_0x166aaf(0x277)])+'.',..._0xea672d==='ETH'?['Total\x20ETH\x20at\x20most:\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x2a1)]??_0x4925ea['maximumDebit'])+'\x20(payment\x20+\x20gas)']:[],_0x166aaf(0x271)+_0x4925ea['minimumImd'],_0x166aaf(0x1d4),'']:[],_0x166aaf(0x266),..._0x22ae9d[_0x166aaf(0x236)]?[_0x166aaf(0x259)+_0x22ae9d['extraAction']['label']+_0x166aaf(0x20d)]:[],_0x166aaf(0x238),..._0x22ae9d[_0x166aaf(0x251)]?['',_0x166aaf(0x1e9),_0x166aaf(0x1e6)+_0x2af54f[_0x166aaf(0x213)],'Network:\x20'+_0x2af54f[_0x166aaf(0x281)],_0x166aaf(0x25c)+_0x2af54f[_0x166aaf(0x1fc)],'Pay\x20to:\x20'+_0x2af54f[_0x166aaf(0x1b1)],_0x166aaf(0x22f)+_0x2af54f['orderId'],'',_0x166aaf(0x27e),JSON[_0x166aaf(0x1e4)](_0x2af54f[_0x166aaf(0x23a)],null,0x2)]:[]]['join']('\x0a'):_0x22ae9d[_0x166aaf(0x1fd)][_0x166aaf(0x201)]('\x0a');return _0x58d9dd(C,{'title':_0x22ae9d[_0x166aaf(0x1db)]??_0x166aaf(0x2a4),'width':_0x5a2c93,'height':_0x401687,'ascii':_0x301675,'active':!0x0},_0x3fc8ad?s(_0x3fc8ad,{'color':'cyan','bold':!0x0}):null,_0x5293c0?s(_0x5293c0,{'color':_0x166aaf(0x1ba),'bold':!0x0}):null,_0x4437fe?s(_0x4437fe,{'color':_0x166aaf(0x1ba)}):null,_0x23bd8d?s(_0x23bd8d,{'color':_0x166aaf(0x1d2)}):null,_0x58d9dd(O,{'content':_0x2f94d9,'width':_0x5a2c93-0x4,'height':Math[_0x166aaf(0x1dd)](0x0,_0x401687-_0x4e00e0),'offset':_0x35f396[_0x166aaf(0x268)]}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),_0x508a0d?s(_0x508a0d,{'color':'yellow'}):null,_0x58d9dd(_0x19aeea,{'flexDirection':_0x5a2c93<0x46?_0x166aaf(0x1e2):_0x166aaf(0x286),'gap':_0x5a2c93<0x46?0x0:0x3},s('[\x20'+(_0x22ae9d[_0x166aaf(0x2a9)]??(_0x2af54f?_0x166aaf(0x28e):_0x166aaf(0x291)))+'\x20]',{'inverse':_0x22ae9d['selection']===0x0}),_0x22ae9d[_0x166aaf(0x236)]?s('[\x20'+_0x22ae9d['extraAction']['label']+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x1c5)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x2af54f?_0x2bf1c9:_0x22ae9d[_0x166aaf(0x27f)]??_0x166aaf(0x280))+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x2b0)],'color':_0x166aaf(0x1ba)})),s(_0x166aaf(0x26f)+(_0x2af54f?_0x166aaf(0x24b):''),{'dimColor':!0x0,'wrap':_0x166aaf(0x2ac)}));}function _0x5609(){const _0x32155c=['challenged','Pay\x20','payTo','more','converted','modelProgress','repeat','return','\x20on\x20','tab','Pay\x20with\x20','cyan','downArrow','wallet','push','COLONY\x20\x20get\x20things\x20done.','workerMenu','[l]\x20Logs','white','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','move','download','selection','refreshing','Explore','single','Enter/Tab\x20details','Fee\x20','pageUp','fields','Item\x20','upArrow','Browse','\x20IMD\x20&\x20publish','offerFirstWallet','yellow','objective','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','WORKERS','[m]\x20Actions','startsWith','Continue\x20&\x20publish','funding','receive','title','setField','max','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','help','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','secret','column','map','stringify','\x20wallets','Quote\x20expires:\x20','kind','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','PAYMENT\x20DETAILS','support','changeTab','Colony\x20converts\x20','tasks','cycleFilter','Wallet:\x20','close','Esc/Tab\x20list','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','leftArrow','coin','update','estimate','COLONY','chooseMenu','green','DETAILS','WALLET\x20MANAGEMENT','asset','lines','red','split','list','join','Deployed\x20·\x20status\x20on\x20selection','[g]\x20Diagnostics','search','\x20(converted)','test','error','black','note','deliverables','Conversion\x20to\x20IMD\x20already\x20confirmed.','Wallets','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','label','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','escape','recipient','privateKeyView','expiresAt','estimatedAmount','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','[>]','gas','refused','Loading\x20history...','Receive\x20funds','Resize\x20to\x20at\x20least\x20','Payment:\x20at\x20most\x20','shift','autoRefresh','workerCommand','[\x20]\x20tabs','[a]\x20Add\x20target','\x20items\x20·\x20','min','Private\x20key','down\x20loads\x20more','display','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','payment','PgUp/PgDn\x20scroll','\x20+\x20support\x20','walletSetup','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','Gas\x20(network\x20fee):\x20at\x20most\x20','Order:\x20','pageDown','Help\x20us\x20make\x20Colony\x20better.','s\x20save\x20QR\x20·\x20Esc\x20back','includes','network-worker','values','extraAction','expired','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','prepared','Esc\x20hide\x20and\x20return','Activity','chainName','detail','ctrl','navigate','privateKey','field','respond','next','placeholder','\x20tasks','then','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','networkFeeCap','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','\x20·\x20i\x20details','WALLETS','filter','[Ctrl+C]\x20Exit','Workers','hint','expanded','en-US','slice','useSelectedWallet','logs','menu','installed','walletReceive','Choose\x20','Optional\x20support:\x20','[n]\x20New\x20task','Asset:\x20','Convert\x20&\x20publish','columns',',\x20at\x20most\x20','selected','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20results\x20loaded','notice','workers','cursor','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','Work','scroll','terminal','query','\x20entries\x20·\x20Mine\x20+\x20Network','files','[/]\x20Search','addTarget','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','confirm','IMD\x20for\x20this\x20task:\x20','networks','Enter\x20','resumeOrder','moveConfirmation','Preparing\x20local\x20LLM','amount','busy','submitConfirmation','refreshError','length','walletMenu','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','SERVER\x20PREPARED\x20INPUT','acceptLabel','Confirm','network','refresh','items','rows','[e]\x20Error\x20details','row','toLocaleString','view','IMD','subscribe','submit','walletImport','Tip:\x20Review\x20the\x20price\x20before\x20paying.','Cancel\x20/\x20edit','Refreshing\x20tasks...','\x20IMD\x20(fee\x20','Cancel','reduce','space-between','[r]\x20Refresh','floor','[?]\x20Help\x20\x20[q]\x20Quit','\x20task','address','submitForm','taskMenu','Keyboard\x20shortcuts','total','focus','cancelled','intro','Loading...','maximumDebit','\x20IMD','form','Review\x20saved\x20payment','name','WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.','hidden','gray','cancelLabel','configured','No\x20matching\x20items.','truncate-end','coins','Total\x20','nextField','accepted'];_0x5609=function(){return _0x32155c;};return _0x5609();}function we({state:_0x510b6b,width:_0x18cdc8,height:_0x53ff39,ascii:_0x4c452f}){const _0x4620f8=_0x1394b3,_0x638f41=_0x510b6b[_0x4620f8(0x256)],_0x427e81=_0x638f41[_0x4620f8(0x1fd)]??[],_0x13e776=_0x427e81['reduce']((_0x32b73d,_0x31a3c0)=>_0x32b73d+Math[_0x4620f8(0x1dd)](0x1,_0xa87f81(_0x31a3c0,_0x18cdc8-0x4)[_0x4620f8(0x27b)]),0x0),_0x13ff0a=Math[_0x4620f8(0x1dd)](0x1,_0x53ff39-0x5-_0x13e776),_0x5ed2e3=Math['max'](0x0,Math[_0x4620f8(0x223)](_0x638f41[_0x4620f8(0x260)]-Math[_0x4620f8(0x295)](_0x13ff0a/0x2),_0x638f41[_0x4620f8(0x283)][_0x4620f8(0x27b)]-_0x13ff0a));return _0x58d9dd(C,{'title':_0x638f41[_0x4620f8(0x1db)],'width':_0x18cdc8,'height':_0x53ff39,'ascii':_0x4c452f,'active':!0x0},..._0x427e81['map']((_0x1cb7c9,_0x160223)=>s(_0x1cb7c9||'\x20',{'key':_0x4620f8(0x29f)+_0x160223})),..._0x638f41[_0x4620f8(0x283)][_0x4620f8(0x253)](_0x5ed2e3,_0x5ed2e3+_0x13ff0a)[_0x4620f8(0x1e3)]((_0x3c3684,_0x1b1f26)=>s((_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]?'>\x20':'\x20\x20')+_0x3c3684[_0x4620f8(0x20e)],{'key':_0x1b1f26,'inverse':_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]})),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x638f41['hint']??_0x4620f8(0x22d),{'dimColor':!0x0}));}const ge=_0x1394b3(0x2a6);function Ae({controller:_0x58bd3c,ascii:_0x1c9d63=!0x1,dimensions:_0x296f46,terminal:_0x5642ea,feedback:_0xd74da,welcome:_0x151602=!0x1}){const _0x1dac5d=_0x1394b3,_0x67bd3b=_0x64a80b(_0x58bd3c[_0x1dac5d(0x28a)],_0x58bd3c['getSnapshot']),[_0x1b1640,_0x1d4fa7]=_0x2f2dac(0x0);_0x3db06e(()=>{const _0x51d80f=_0x1dac5d,_0x465184=setInterval(()=>_0x1d4fa7(_0xeeaf72=>(_0xeeaf72+0x1)%B[_0x51d80f(0x27b)]),0x4e20);return()=>clearInterval(_0x465184);},[]);const _0x5ee4fa=_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b['refreshError'],_0x4432c3=_0x1977a6(),_0x3a0aff=_0x296f46??_0x4432c3,_0x492b58=_0x3a0aff[_0x1dac5d(0x25e)],_0x26b0d8=Math['max'](0x8,_0x3a0aff[_0x1dac5d(0x284)]-0x1),_0x19793a=_0x492b58<0x64,{exit:_0x1d8d39}=_0x33449e();if(_0x3db06e(()=>(_0x58bd3c[_0x1dac5d(0x269)]=_0x5642ea,_0x58bd3c[_0x1dac5d(0x282)]()[_0x1dac5d(0x247)](()=>{const _0x3b50c4=_0x1dac5d;if(_0xd74da)_0x58bd3c[_0x3b50c4(0x1f5)](_0xd74da);else{if(_0x151602)return _0x58bd3c[_0x3b50c4(0x1d1)]();}}),()=>_0x58bd3c[_0x1dac5d(0x1f0)]()),[_0x58bd3c,_0x5642ea,_0xd74da,_0x151602]),_0x3db06e(()=>{const _0x52b026=setInterval(()=>{const _0x49af03=_0x242c;_0x58bd3c[_0x49af03(0x21e)]();},0x1388);return()=>clearInterval(_0x52b026);},[_0x58bd3c]),_0x503b1c((_0x1f6d7b,_0x5865a2)=>{const _0x321c2f=_0x1dac5d;if(_0x5865a2[_0x321c2f(0x23f)]&&_0x1f6d7b==='c'){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(_0x67bd3b[_0x321c2f(0x212)]){_0x5865a2['escape']&&_0x58bd3c[_0x321c2f(0x1f5)]({'privateKeyView':null});return;}if(_0x492b58<0x28||_0x3a0aff[_0x321c2f(0x284)]<0x14){_0x67bd3b[_0x321c2f(0x1da)]?_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive']():_0x1f6d7b==='q'&&(_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39());return;}if(_0x67bd3b[_0x321c2f(0x270)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c[_0x321c2f(0x243)](!0x1):_0x5865a2[_0x321c2f(0x1b8)]||_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['rightArrow']?_0x58bd3c[_0x321c2f(0x275)](_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['tab']&&_0x5865a2[_0x321c2f(0x21d)]?-0x1:0x1):_0x5865a2['return']?_0x58bd3c[_0x321c2f(0x279)]():_0x1f6d7b==='i'?_0x58bd3c[_0x321c2f(0x1f5)]({'confirm':{..._0x67bd3b[_0x321c2f(0x270)],'expanded':!_0x67bd3b[_0x321c2f(0x270)][_0x321c2f(0x251)]},'scroll':0x0}):(_0x5865a2['pageDown']||_0x5865a2[_0x321c2f(0x1cb)])&&_0x58bd3c[_0x321c2f(0x1f5)]({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:-0x5))});return;}if(_0x67bd3b[_0x321c2f(0x2a3)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissForm']():_0x5865a2['tab']&&_0x58bd3c[_0x321c2f(0x2af)](_0x5865a2[_0x321c2f(0x21d)]);return;}if(_0x67bd3b[_0x321c2f(0x1da)]){_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive'](),_0x1f6d7b==='s'&&_0x58bd3c['saveReceiveQr']();return;}if(_0x67bd3b['menu']){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissMenu']():_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)]?_0x58bd3c['update']({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Math[_0x321c2f(0x1dd)](0x0,Math['min'](_0x67bd3b[_0x321c2f(0x256)]['items'][_0x321c2f(0x27b)]-0x1,_0x67bd3b[_0x321c2f(0x256)][_0x321c2f(0x260)]+(_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1)))}}):_0x5865a2[_0x321c2f(0x1b6)]?_0x58bd3c[_0x321c2f(0x1f8)]():_0x67bd3b[_0x321c2f(0x256)]['numbered']&&/^[1-9]$/[_0x321c2f(0x206)](_0x1f6d7b)&&Number(_0x1f6d7b)<=_0x67bd3b['menu'][_0x321c2f(0x283)][_0x321c2f(0x27b)]&&(_0x58bd3c[_0x321c2f(0x1f5)]({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Number(_0x1f6d7b)-0x1}}),_0x58bd3c[_0x321c2f(0x1f8)]());return;}if(_0x1f6d7b==='q'&&!_0x67bd3b['busy']){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(!_0x67bd3b[_0x321c2f(0x278)]){if(_0x1f6d7b==='e'&&_0x5ee4fa){_0x58bd3c['showError']();return;}if(_0x321c2f(0x239)[_0x321c2f(0x233)](_0x1f6d7b)&&_0x1f6d7b['length']===0x1){_0x58bd3c[_0x321c2f(0x240)](_0x4d1b58[Number(_0x1f6d7b)-0x1]);return;}if(_0x1f6d7b==='?'){_0x58bd3c['update']({'help':!_0x67bd3b[_0x321c2f(0x1df)],'scroll':0x0});return;}if(_0x5865a2['escape']){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x321c2f(0x200),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x1f6d7b==='n'){_0x67bd3b['view']===_0x321c2f(0x1bc)?_0x58bd3c[_0x321c2f(0x22c)](!0x1):_0x58bd3c['create']();return;}if(_0x1f6d7b==='r'){_0x58bd3c[_0x321c2f(0x282)]();return;}if(_0x5865a2[_0x321c2f(0x230)]||_0x5865a2[_0x321c2f(0x1cb)]||_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x23e)&&(_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)])){_0x58bd3c['update']({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:_0x5865a2['pageUp']?-0x5:_0x5865a2['downArrow']?0x1:-0x1))});return;}if(_0x67bd3b[_0x321c2f(0x288)]==='wallet'){(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)])&&_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2['downArrow']?0x1:-0x1),(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)])&&_0x58bd3c['update']({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?_0x321c2f(0x23e):'list','scroll':0x0}),_0x1f6d7b==='u'&&_0x58bd3c[_0x321c2f(0x254)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x27c)](),_0x1f6d7b==='g'&&_0x58bd3c['walletManagement'](),_0x1f6d7b==='i'&&_0x58bd3c[_0x321c2f(0x28c)](),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x258)](),_0x1f6d7b==='b'&&_0x58bd3c['walletBackup']();return;}if(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)]){_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1);return;}if(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)]){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?'detail':'list','scroll':0x0});return;}if(_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x264)){_0x1f6d7b==='/'&&_0x58bd3c[_0x321c2f(0x204)](),_0x1f6d7b==='a'&&_0x58bd3c[_0x321c2f(0x26e)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x1bf)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x21f)]([_0x321c2f(0x255)]),_0x1f6d7b==='g'&&_0x58bd3c[_0x321c2f(0x21f)](['doctor']);return;}_0x1f6d7b==='/'&&_0x58bd3c['search'](),_0x1f6d7b==='f'&&_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x1ed)&&_0x58bd3c[_0x321c2f(0x1ee)](),(_0x1f6d7b==='['||_0x1f6d7b===']')&&_0x58bd3c[_0x321c2f(0x1eb)](_0x1f6d7b==='['?-0x1:0x1),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x26c)](),_0x1f6d7b==='s'&&_0x58bd3c[_0x321c2f(0x1c4)](),_0x1f6d7b==='c'&&_0x58bd3c['continueTask'](),_0x1f6d7b==='o'&&_0x58bd3c[_0x321c2f(0x274)](),_0x1f6d7b==='x'&&_0x58bd3c['cancelRequest'](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x29a)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x1b2)]();}}),_0x492b58<0x28||_0x3a0aff[_0x1dac5d(0x284)]<0x14)return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'flexDirection':'column'},s(_0x1dac5d(0x1f7),{'color':_0x1dac5d(0x1ba)}),s(_0x1dac5d(0x215)),s(_0x67bd3b[_0x1dac5d(0x1da)]||_0x67bd3b[_0x1dac5d(0x212)]?'Esc\x20back':_0x1dac5d(0x1e8)));if(_0x67bd3b[_0x1dac5d(0x212)])return _0x58d9dd(C,{'title':_0x1dac5d(0x224),'width':_0x492b58,'height':_0x26b0d8,'ascii':_0x1c9d63,'active':!0x0},s(_0x1dac5d(0x1ef)+_0x67bd3b[_0x1dac5d(0x212)][_0x1dac5d(0x298)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':_0x1dac5d(0x1d2)}),_0x58d9dd(_0x19aeea,{'marginTop':0x1},s(_0x67bd3b['privateKeyView'][_0x1dac5d(0x241)])),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x1dac5d(0x23b),{'color':'cyan'}));if(_0x67bd3b[_0x1dac5d(0x1da)]&&!_0x67bd3b[_0x1dac5d(0x2a3)]){const _0xd74bc5=_0x67bd3b[_0x1dac5d(0x1da)],_0x53a493=_0xd74bc5['qr'][_0x1dac5d(0x1ff)]('\x0a'),_0x4605fa=!_0xd74bc5[_0x1dac5d(0x272)]||_0xd74bc5[_0x1dac5d(0x272)]['length']===0x1,_0x1dd7d7=[..._0x4605fa?['Accepted:\x20'+_0xd74bc5['coins']['join'](',\x20')]:_0xd74bc5[_0x1dac5d(0x272)]['map'](_0x1482fc=>_0x1482fc[_0x1dac5d(0x23d)]+':\x20'+_0x1482fc[_0x1dac5d(0x2ad)]['join'](',\x20')),..._0xd74bc5['targets']??[]],_0x31edb0=_0x4605fa?'Send\x20on\x20'+_0xd74bc5['chainName']+'\x20only.\x20Choose\x20'+_0xd74bc5[_0x1dac5d(0x23d)]+_0x1dac5d(0x27d):'Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.',_0xc4f218=[_0xd74bc5[_0x1dac5d(0x298)],..._0x1dd7d7,_0x31edb0][_0x1dac5d(0x292)]((_0x35505b,_0x4429b3)=>_0x35505b+_0xa87f81(_0x4429b3,_0x492b58)[_0x1dac5d(0x27b)],0x0),_0x3980f1=_0x53a493[_0x1dac5d(0x27b)]+_0xc4f218+0x2,_0x32e485=_0x492b58>=_0x53a493[0x0][_0x1dac5d(0x27b)]&&_0x26b0d8>=_0x3980f1;return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},s(_0x4605fa?'Receive\x20on\x20'+_0xd74bc5[_0x1dac5d(0x23d)]:_0x1dac5d(0x21a),{'bold':!0x0,'color':'cyan'}),s(_0xd74bc5[_0x1dac5d(0x298)]),..._0x1dd7d7[_0x1dac5d(0x1e3)]((_0x22f8f5,_0x236721)=>s(_0x22f8f5,{'key':_0x236721})),_0x32e485?s(_0xd74bc5['qr'],{'color':_0x1dac5d(0x208),'backgroundColor':_0x1dac5d(0x1c1)}):s(_0x1dac5d(0x21b)+Math[_0x1dac5d(0x1dd)](0x28,_0x53a493[0x0][_0x1dac5d(0x27b)])+'\x20columns\x20and\x20'+(_0x3980f1+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x31edb0,{'color':_0x1dac5d(0x1d2)}),s(_0x3e3169(_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b[_0x1dac5d(0x263)]??_0x1dac5d(0x232),_0x492b58),{'color':_0x67bd3b[_0x1dac5d(0x207)]?_0x1dac5d(0x1fe):'cyan'}));}const _0x1a714c=_0x67bd3b['form']||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x1b4)],_0xfc16dc=Math[_0x1dac5d(0x1dd)](0x6,_0x26b0d8-(_0x1a714c?0x3:0x6)),_0x3dbcc3=_0x56bbe3(_0x67bd3b)[_0x67bd3b[_0x1dac5d(0x260)]];let _0xb8d65f;if(_0x67bd3b[_0x1dac5d(0x2a3)])_0xb8d65f=_0x58d9dd(he,{'controller':_0x58bd3c,'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b['confirm'])_0xb8d65f=_0x58d9dd(pe,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1b4)])_0xb8d65f=_0x58d9dd(fe,{'event':_0x67bd3b[_0x1dac5d(0x1b4)],'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x256)])_0xb8d65f=_0x58d9dd(we,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1df)])_0xb8d65f=_0x58d9dd(C,{'title':_0x1dac5d(0x29b),'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':!0x0},_0x58d9dd(O,{'content':ge,'width':_0x492b58-0x4,'height':_0xfc16dc-0x4,'offset':_0x67bd3b['scroll']}),s(_0x1dac5d(0x228),{'dimColor':!0x0}));else{if(_0x67bd3b['view']==='wallet')_0xb8d65f=_0x58d9dd(me,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'narrow':_0x19793a});else{const _0x2083bf=!_0x19793a||_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200),_0x1493e0=!_0x19793a||_0x67bd3b['focus']===_0x1dac5d(0x23e),_0x4905b7=_0x19793a?_0x492b58:Math[_0x1dac5d(0x295)](_0x492b58*0.43),_0x52427d=_0x2083bf&&!_0x19793a?_0x492b58-_0x4905b7-0x1:_0x492b58,_0x4a8af0=_0x228f58({..._0x67bd3b,'selectedId':_0x3dbcc3?.['id']}),_0x1a4282=_0x67bd3b['view']===_0x1dac5d(0x1ed)||_0x67bd3b[_0x1dac5d(0x288)]==='explore',_0xd75ed7=_0x1a4282?_0x52a8bb(_0x3dbcc3,_0x67bd3b[_0x1dac5d(0x288)]):_0x3dbcc3?_0x3dbcc3[_0x1dac5d(0x1e7)]===_0x1dac5d(0x234)?['Read\x20only']:[_0x1dac5d(0x1d6),_0x1dac5d(0x1c0),_0x1dac5d(0x203)]:[];_0x5ee4fa&&_0xd75ed7[_0x1dac5d(0x1bd)](_0x1dac5d(0x285));const _0x4fdb51=L(_0xd75ed7,_0x52427d-0x4),_0x20b76e=_0x4fdb51[_0x1dac5d(0x27b)]?_0x4fdb51[_0x1dac5d(0x27b)]+0x1:0x0,_0x295ea4=L([_0x1dac5d(0x1f1),_0x1dac5d(0x22a),..._0x1a4282?[_0x1dac5d(0x220)]:[]],_0x52427d-0x4);_0xb8d65f=_0x58d9dd(_0x19aeea,{'height':_0xfc16dc,'width':_0x492b58,'gap':0x1},_0x2083bf?_0x58d9dd(C,{'title':(_0x67bd3b[_0x1dac5d(0x288)]==='workers'?_0x1dac5d(0x1d5):_0x67bd3b[_0x1dac5d(0x24d)])+(_0x67bd3b[_0x1dac5d(0x26a)]?'\x20/\x20'+_0x3e3169(_0x67bd3b[_0x1dac5d(0x26a)],0x16):''),'width':_0x4905b7,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200)},_0x58d9dd(Y,{'state':_0x67bd3b,'height':_0xfc16dc,'width':_0x4905b7-0x4,'ascii':_0x1c9d63})):null,_0x1493e0?_0x58d9dd(C,{'title':_0x3e3169(_0x3dbcc3?.['id']??_0x1dac5d(0x1fa),_0x52427d-0x7),'width':_0x52427d,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x23e)},_0x1a4282?s(['Overview',_0x1dac5d(0x23c),'Files'][_0x1dac5d(0x1e3)](_0x374da1=>_0x374da1===_0x67bd3b[_0x1dac5d(0x1b8)]?'['+_0x374da1+']':_0x374da1)[_0x1dac5d(0x201)]('\x20\x20'),{'color':_0x1dac5d(0x1ba),'wrap':'truncate-end'}):null,_0x58d9dd(O,{'content':_0x4a8af0,'width':_0x52427d-0x4,'height':_0xfc16dc-0x3-Number(_0x1a4282)-_0x20b76e-_0x295ea4['length'],'offset':_0x67bd3b['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x295ea4['map']((_0x316921,_0x3c0a2e)=>s(_0x316921,{'key':_0x3c0a2e,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x4fdb51,'width':_0x52427d-0x4,'ascii':_0x1c9d63})):null);}}}}}}const _0x25955e=_0x67bd3b[_0x1dac5d(0x2a3)]||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?_0x1dac5d(0x24e):_0x1dac5d(0x296),_0x59c1a0=_0x492b58<0x4b?_0x4d1b58[_0x1dac5d(0x1e3)]((_0x258fb2,_0x117979)=>'['+(_0x117979+0x1)+']'+['Mine',_0x1dac5d(0x1cf),_0x1dac5d(0x267),'Wallets'][_0x117979])[_0x1dac5d(0x201)]('\x20'):_0x4d1b58['map']((_0x329452,_0x28cb7d)=>(_0x329452===_0x67bd3b[_0x1dac5d(0x288)]?'>\x20':'\x20\x20')+'['+(_0x28cb7d+0x1)+']\x20'+de[_0x329452])[_0x1dac5d(0x201)]('\x20\x20');return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},_0x58d9dd(_0x19aeea,{'justifyContent':_0x1dac5d(0x293),'height':_0x1a714c?0x1:0x2},s(_0x1dac5d(0x1be),{'color':_0x1dac5d(0x1ba),'bold':!0x0}),_0x492b58>=0x4b?s(_0x67bd3b[_0x1dac5d(0x298)]?_0x3e3169(_0x67bd3b['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1a714c?null:s(_0x59c1a0,{'color':_0x1dac5d(0x1ba),'wrap':_0x1dac5d(0x2ac)}),_0x1a714c?null:_0x67bd3b[_0x1dac5d(0x278)]||_0x67bd3b[_0x1dac5d(0x1c6)]?_0x58d9dd(z,{'label':_0x67bd3b[_0x1dac5d(0x278)]??_0x1dac5d(0x28f)}):s(_0x67bd3b[_0x1dac5d(0x209)],{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}),_0xb8d65f,s(_0x3e3169(_0x5ee4fa??_0x67bd3b[_0x1dac5d(0x263)]??(_0x1a714c||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?'':B[_0x1b1640]),_0x492b58),{'color':_0x5ee4fa?_0x1dac5d(0x1fe):_0x67bd3b[_0x1dac5d(0x263)]?_0x1dac5d(0x1f9):void 0x0,'dimColor':!_0x5ee4fa&&!_0x67bd3b[_0x1dac5d(0x263)]}),s(_0x25955e,{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}));}export{Ae as DashboardApp};
|
package/dist/tui/controller.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b3ed8=_0x4052;import{friendlyAmount as _0x77175d}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x5b065c,paymentView as _0x547ef0}from'./services.mjs';import{lockWallet as _0x3ec757}from'../lib/local-wallet.mjs';function _0x50e9(){const _0x506209=['View\x20private\x20key','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','Choose\x20an\x20output\x20directory.','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','Wallet\x20deleted:\x20','The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.','Checking\x20the\x20saved\x20order...','Deleting\x20draft...','fundingReceive','RPC\x20endpoints','workers','max','abort','resume','Search','addTarget','sort','continueTask','field','.\x20Keep\x20your\x20password\x20separately.','respond','remove','changeTab','saveDraft','Remove\x20skill','completed','deploy','Update\x20network\x20fee','Keyword\x20or\x20task\x20ID','refreshWalletSelection','Worker:\x20','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','Encrypting\x20wallet\x20locally...','Explorer:\x20','\x20managed\x20targets\x20·\x20','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','canChangePayment','ask','queued','walletRestore','get','walletDelete','deleteWallet','Cancelling\x20request...','Opening\x20draft...','Run\x20diagnostics','Tool\x20credential','job.open','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','\x20·\x20','Identity','Current\x20wallet:\x20','list','From\x20encrypted\x20backup','view','Wallet\x20unlock\x20cancelled.','deleteDraft','Cancel\x20this\x20request?','accepted','exploreUpdates','Review\x20task\x20&\x20payment','cursor','Request\x20changes\x20(new\x20paid\x20task)','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','Checking\x20balances\x20and\x20refreshing\x20prices...','concurrency','Remove\x20RPC','toUpperCase','out','Worker\x20ID,\x20runtime\x20or\x20skill','whoami','explorerUrl','serviceInstall','file','Use\x20at\x20least\x208\x20characters.','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','fromEntries','note','localeCompare','rpc','showOutcome','refused','requestKey','List\x20skills','explore','getSnapshot','form','payment_failed','action','throwIfAborted','network-worker','Forget\x20credential','extraTargets','services','total','Understanding\x20your\x20request...','trim','paymentChain','chain','View\x20details','refreshing','created','...','help','Files','blockers','Completed','Tools\x20&\x20credentials','Review\x20saved\x20payment','View\x20logs','Choose\x20claude\x20or\x20codex.','Worker\x20·\x20','autoRefresh','Cancelled','parent','Deleting\x20local\x20record...','plan','kind','draft','paymentOptions','wallets','name','assign','confirmReplacement','files','Add\x20RPC\x20endpoint\x20(hidden\x20input)','change_payment','submitForm','repeat','download','Task\x20published:\x20','What\x20would\x20you\x20like\x20to\x20change?','forget','indexOf','Add\x20RPC','join','Continue','has','Status','Add\x20target','menu','Skill\x20ID','Confirm\x20wallet\x20password','wallet','configured','Backup\x20saved:\x20','refreshError','walletSetup','searchText','QR\x20saved:\x20','Choose\x20payment\x20·\x20support\x20is\x20optional','expired','restart','walletManagement','Draft\x20saved','tasks','command','managed-worker','Concurrent\x20tasks\x20(1–4)','requestPassword','detailVersion','showMenu','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','View\x20result\x20files','query','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','\x20on\x20','result','Download\x20files','path','toLowerCase','Transaction:\x20','Auto-refresh\x20failed:\x20','values','walletImport','running','funding','Preparing\x20the\x20payment\x20review...','\x20is\x20required.','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','label','Remove\x20tool','pickPayment','boot','hash','addFunds','useSelectedWallet','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','showPaymentProgress','Save\x20under\x20this\x20directory','Loading\x20older\x20tasks...','dialog','code','Download','createdAt','On-chain\x20funds\x20stay\x20at\x20this\x20address.','Import\x20wallet','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','Attention','Saved\x20wallet','items','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','canDelete','set','Runtime\x20(claude\x20or\x20codex)','funded','Register\x20on\x20chain','This\x20request\x20is\x20not\x20supported.','delete','Keep\x20draft','selection','Chain\x20ID','error','setField','editDraft','Local\x20record\x20deleted.','Checking\x20balances\x20on\x20all\x20networks...','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','\x20verified\x20files\x20to\x20','createWallet','local','findIndex','flatMap','Saving\x20encrypted\x20backup...','key','Set\x20local\x20wallet\x20password','Continue\x20draft','create','Delete\x20draft','state','reason','formSubmit','Run\x20on\x20','update','autoPayment','What\x20would\x20you\x20like\x20to\x20get\x20done?','executing','Save\x20QR','funding_required','Preparing\x20receive\x20address...','input','transaction_pending','run','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','Review\x20&\x20pay','pendingTransaction','locked','closeReceive','payment','loaded','job.continue','Loading\x20network\x20workers...','value','saveReceiveQr','cancelAutoRefresh','menuCancel','change','walletBackup','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','walletIsCurrent','Deleting\x20local\x20wallet...','updatedAt','slice','concat','Concurrency\x20must\x20be\x201–4.','cancelled','passwordReject','codex','Payment\x20needs\x20review.','selected','Preparing\x20local\x20LLM...','draftId','fundingDialog','View\x20private\x20key\x20·\x20confirm\x20password','Pair\x20with\x20wallet','currentAddress','receive','reviewPayment','now','service','chooseMenu','listeners','All','title','networkWorkers','workerCommand','Delete\x20wallet\x20·\x201\x20of\x202','saveQr','./output/','refresh','Current','--runtime','checkTaskWallet','extraAction','cancelRequest','showForm','length','selectWallet','payment_reconciling','Saved\x20','Delete\x20wallet','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','deleteTaskDraft','register','pending','List\x20tools','gas','One\x20local\x20password\x20·\x20u\x20use\x20selected\x20wallet','Restore\x20wallet','port','admitted','Linux\x20start\x20at\x20boot\x20(yes/no)','busy','chooseSupport','summary','Save\x20encrypted\x20backup\x20to\x20(new\x20file)','dismissForm','push','detailRequest','Cancel\x20request','Unlink\x20worker','claude','stage','Add\x20skill','identity','resumeOrder','IMD','Selected\x20wallet\x20actions','detailTimer','cancel','install','yes','withFundingRetry','detail','Loading\x20files...','Download\x20task\x20files','--boot','confirm','Remove\x20this\x20wallet\x20from\x20Colony?','Passwords\x20do\x20not\x20match.','canCancel','quoted','refreshRequest','submitConfirmation','colony-receive.svg','From\x20private\x20key','lastExploreRefresh','runtime','questions','chainName','refreshExplore','Keep\x20request','map','status','choice','SSH\x20port','Check\x20balance\x20&\x20continue','Restoring\x20wallet...','since','includes','lines','coin','jobId','filter','more','closed','pair','Tool\x20ID','targets','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','formCancel','Add\x20funds\x20to\x20continue','Change\x20payment','objective','Set\x20tool\x20credential\x20(hidden\x20input)','\x0aOrder:\x20','clear','message','Use\x20this\x20wallet','Request\x20changes','Credential\x20name','signal','fields','logs','deleteRequest','wallet_required','some','terminal','navigate','unlink','skills','receiveWallet','operation','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','restoreWallet','Enter\x20yes\x20or\x20no.','stop','Deploy\x20official\x20worker','deliverables','setupWallet','loadDetail','payWith','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','restoreSelectedId','askResolve','Task\x20actions','transaction','canResume','ethereum','Overview','Worker\x20tools','Back\x20up\x20encrypted\x20wallet','Install\x20background\x20service','walletMenu','scroll','cycleFilter','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','\x20·\x20current','worker','walletReceive','tools','address','password','source'];_0x50e9=function(){return _0x506209;};return _0x50e9();}import{fundingInstructions as _0x2a90a8,fundingNetworks as _0x11d6f7,networkChoiceLabel as _0x28df1c,networkTargets as _0x3746eb}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x714d5c}from'../lib/support.mjs';import{randomUUID as _0x1b9955}from'node:crypto';const V=[_0x4b3ed8(0x157),_0x4b3ed8(0x110),_0x4b3ed8(0xc6),_0x4b3ed8(0x14b)],m=[_0x4b3ed8(0x1d6),'Active',_0x4b3ed8(0x126),_0x4b3ed8(0x182),_0x4b3ed8(0x12d)],u=[_0x4b3ed8(0x255),'Activity',_0x4b3ed8(0x124)],v=new Set([_0x4b3ed8(0x132),_0x4b3ed8(0x121),_0x4b3ed8(0x211),'challenged',_0x4b3ed8(0x16c),'signed','submitted',_0x4b3ed8(0xe2),_0x4b3ed8(0x16b),_0x4b3ed8(0x1a8),'pending','admitting']),S=new Set([_0x4b3ed8(0x153),_0x4b3ed8(0x113),_0x4b3ed8(0x1ad),'payment_reconciling']),P=new Set([_0x4b3ed8(0x1ad),_0x4b3ed8(0x1e6)]),x=0x7530;function _0x4052(_0x1cb790,_0x50e915){_0x1cb790=_0x1cb790-0xbc;const _0x405283=_0x50e9();let _0x808b46=_0x405283[_0x1cb790];return _0x808b46;}function f(_0x215607){const _0x5b7712=_0x4b3ed8;return _0x215607[_0x5b7712(0x184)]['filter'](_0x545370=>!['tasks','workers'][_0x5b7712(0x223)](_0x215607[_0x5b7712(0xf2)])||[_0x545370[_0x5b7712(0x1d7)],_0x545370['id'],_0x545370[_0x5b7712(0x150)]??'']['some'](_0x3b5d10=>_0x3b5d10['toLowerCase']()[_0x5b7712(0x223)](_0x215607['query'][_0x5b7712(0x166)]()))?_0x215607['filter']===_0x5b7712(0x1d6)||_0x215607[_0x5b7712(0xf2)]!==_0x5b7712(0x157)?!0x0:_0x215607['filter']===_0x5b7712(0x126)?_0x545370[_0x5b7712(0x1a1)]==='completed':_0x215607[_0x5b7712(0x227)]===_0x5b7712(0x12d)?_0x545370[_0x5b7712(0x1a1)]===_0x5b7712(0x1c5):_0x215607[_0x5b7712(0x227)]==='Active'?v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):![_0x5b7712(0xd5),_0x5b7712(0x1c5)][_0x5b7712(0x223)](_0x545370[_0x5b7712(0x1a1)])&&!v[_0x5b7712(0x145)](_0x545370[_0x5b7712(0x1a1)]):!0x1);}function p(){const _0x258c51=_0x4b3ed8;return Object['assign'](new Error('Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.'),{'code':_0x258c51(0x1c5)});}function W(){const _0x5b2bab=_0x4b3ed8;return Object[_0x5b2bab(0x136)](new Error(_0x5b2bab(0x107)),{'code':_0x5b2bab(0x13a)});}function A(_0xed4242,_0x268eaa){const _0x1ea3c6=_0x4b3ed8,{option:_0x3f44cf}=_0xed4242,_0x32aa3e=(_0xed4242[_0x1ea3c6(0x24d)]===_0x1ea3c6(0x202)?'':'\u2248\x20')+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1b4)],_0xed4242[_0x1ea3c6(0x24d)],{'up':!0x0}),_0x296326=_0x268eaa&&_0x268eaa[_0x1ea3c6(0x11d)]===_0xed4242[_0x1ea3c6(0x11d)]&&_0x268eaa['payWith']===_0xed4242[_0x1ea3c6(0x24d)];return _0xed4242[_0x1ea3c6(0x24d)]+_0x1ea3c6(0x162)+_0xed4242['chainName']+_0x1ea3c6(0xed)+_0x32aa3e+'\x20+\x20gas\x20\u2248\x20'+_0x77175d(_0x3f44cf[_0x1ea3c6(0x1ee)],'ETH',{'up':!0x0})+(_0x296326?_0x1ea3c6(0x25d):'');}function T(_0x33e387){const _0x51f2f2=_0x4b3ed8;if(!_0x33e387)return[];const _0x1a9b25=[];return _0x33e387[_0x51f2f2(0x174)]&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0x167)+_0x33e387[_0x51f2f2(0x174)]+(_0x33e387['kind']?'\x20('+_0x33e387['kind']+')':'')),_0x33e387[_0x51f2f2(0x1a2)]&&_0x1a9b25['push']('Reason:\x20'+_0x33e387[_0x51f2f2(0x1a2)]),_0x33e387['explorerUrl']&&_0x1a9b25[_0x51f2f2(0x1f9)](_0x51f2f2(0xdd)+_0x33e387[_0x51f2f2(0x103)]),_0x1a9b25;}function E(_0x1544c3){const _0x4423b4=_0x4b3ed8,_0x5fa5ae=[_0x1544c3['message']||'The\x20payment\x20result\x20is\x20not\x20final\x20yet.'];return _0x5fa5ae[_0x4423b4(0x1f9)](...T(_0x1544c3[_0x4423b4(0x252)])),_0x5fa5ae[_0x4423b4(0x1f9)]('Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.'),_0x5fa5ae['join']('\x0a');}class _{constructor(_0xc45412){const _0x329039=_0x4b3ed8;this[_0x329039(0x119)]=_0xc45412,this['listeners']=new Set(),this[_0x329039(0x1a1)]={'view':_0x329039(0x157),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x329039(0x255),'filter':_0x329039(0x1d6),'query':'','note':'','focus':'list','scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this['detailVersion']=0x0,this['extraTargets']=[],this['closed']=!0x1,this[_0x329039(0x216)]=0x0;}['subscribe']=_0x20d277=>(this[_0x4b3ed8(0x1d5)]['add'](_0x20d277),()=>this[_0x4b3ed8(0x1d5)][_0x4b3ed8(0x18c)](_0x20d277));[_0x4b3ed8(0x111)]=()=>this[_0x4b3ed8(0x1a1)];[_0x4b3ed8(0x1a5)](_0x496dfc){const _0x3e24d3=_0x4b3ed8;if(!this['closed']){this['state']={...this[_0x3e24d3(0x1a1)],..._0x496dfc};for(const _0xe42a0f of this[_0x3e24d3(0x1d5)])_0xe42a0f();}}[_0x4b3ed8(0x1c9)](){const _0x78aab2=_0x4b3ed8;return f(this[_0x78aab2(0x1a1)])[this['state']['selected']];}['showError'](){const _0x945eb1=_0x4b3ed8;++this[_0x945eb1(0x15c)],this[_0x945eb1(0x1a5)]({'detail':{'output':this['state']['error']??this['state'][_0x945eb1(0x14e)]},'detailLoading':!0x1,'focus':_0x945eb1(0x209),'scroll':0x0,'tab':_0x945eb1(0x255)});}[_0x4b3ed8(0x1ba)](){const _0x17663f=_0x4b3ed8;this[_0x17663f(0x212)]?.[_0x17663f(0xc8)](),this[_0x17663f(0x212)]=null,this[_0x17663f(0x1a5)]({'refreshing':!0x1});}async[_0x4b3ed8(0x1ae)](_0x57120f,_0x49d76e){const _0x5baeba=_0x4b3ed8;if(!this[_0x5baeba(0x1a1)][_0x5baeba(0x1f4)]){this[_0x5baeba(0x1ba)](),this['operation']=new AbortController(),this[_0x5baeba(0x1a5)]({'busy':_0x57120f,'error':null,'refreshError':null,'notice':null});try{return await _0x49d76e(this[_0x5baeba(0x244)][_0x5baeba(0x239)]);}catch(_0x8fbc60){_0x8fbc60[_0x5baeba(0x17c)]===_0x5baeba(0x1c5)?(this['update']({'notice':_0x8fbc60[_0x5baeba(0x235)]}),this[_0x5baeba(0x192)]()):P[_0x5baeba(0x145)](_0x8fbc60['code'])?this[_0x5baeba(0x1a5)]({'error':E(_0x8fbc60)}):this[_0x5baeba(0x1a5)]({'error':_0x8fbc60[_0x5baeba(0x235)]});}finally{this[_0x5baeba(0x1a5)]({'busy':null,'modelProgress':null});}}}async[_0x4b3ed8(0x240)](_0x2049be){const _0x3ab5a9=_0x4b3ed8;this['state'][_0x3ab5a9(0x1f4)]||(clearTimeout(this[_0x3ab5a9(0x204)]),this[_0x3ab5a9(0x1fa)]?.[_0x3ab5a9(0xc8)](),++this[_0x3ab5a9(0x15c)],this['update']({'view':_0x2049be,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x3ab5a9(0x1d6),'tab':_0x3ab5a9(0x255),'scroll':0x0,'focus':_0x3ab5a9(0xf0),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x3ab5a9(0x1dd)]());}async[_0x4b3ed8(0x1dd)](){const _0x8a5511=_0x4b3ed8,_0x558e84=this[_0x8a5511(0x1c9)]()?.['id']??this['restoreSelectedId'];this[_0x8a5511(0x24f)]=void 0x0,await this['run']('Loading\x20'+this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]+_0x8a5511(0x122),async _0x719f7d=>{const _0x518b2e=_0x8a5511;let _0x4d168b;if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x157))_0x4d168b=await this[_0x518b2e(0x119)]['mine'](_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]==='explore')_0x4d168b=await this[_0x518b2e(0x119)][_0x518b2e(0x110)](this[_0x518b2e(0x1a1)][_0x518b2e(0x160)],void 0x0,_0x719f7d);else{if(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0xc6)){const _0x387ff1=this['services'][_0x518b2e(0x22c)](),_0x3993f2=new Set(_0x387ff1['map'](_0x3e601e=>_0x3e601e['id'])),_0x58d957=_0x387ff1[_0x518b2e(0x1c3)](this[_0x518b2e(0x118)][_0x518b2e(0x227)](_0xea739c=>!_0x3993f2[_0x518b2e(0x145)](_0xea739c['id'])))[_0x518b2e(0x21c)](_0x238dd3=>({..._0x238dd3,'kind':_0x518b2e(0x159)}));this[_0x518b2e(0x1a5)]({'items':_0x58d957,'selected':0x0,'note':_0x518b2e(0x1b7)});let _0x54a3f5;try{_0x54a3f5=await this[_0x518b2e(0x119)][_0x518b2e(0x1d8)](_0x719f7d);}catch(_0x5ee570){throw this[_0x518b2e(0x1a5)]({'note':_0x58d957[_0x518b2e(0x1e4)]+'\x20managed\x20targets\x20\xB7\x20Network\x20unavailable\x20\xB7\x20r\x20retry'}),_0x5ee570;}_0x4d168b={'items':_0x58d957[_0x518b2e(0x1c3)](_0x54a3f5),'note':_0x58d957[_0x518b2e(0x1e4)]+_0x518b2e(0xde)+_0x54a3f5[_0x518b2e(0x1e4)]+_0x518b2e(0xbf)};}else{const _0x1bd3f3=await this[_0x518b2e(0x119)]['wallet'](_0x719f7d,_0x558e84,{'balances':!0x1}),_0x3eb1e0=this['services']['wallets']();!_0x3eb1e0[_0x518b2e(0x1e4)]&&_0x1bd3f3[_0x518b2e(0x14c)]&&_0x3eb1e0['push']({'address':_0x1bd3f3[_0x518b2e(0x261)],'active':!0x0,'locked':_0x1bd3f3[_0x518b2e(0x1b2)]}),_0x4d168b={'items':_0x3eb1e0[_0x518b2e(0x21c)](_0x105440=>({..._0x105440,'id':_0x105440[_0x518b2e(0x261)],'title':_0x105440[_0x518b2e(0x261)][_0x518b2e(0x1c2)](0x0,0xa)+_0x518b2e(0x122)+_0x105440['address'][_0x518b2e(0x1c2)](-0x8),'subtitle':_0x105440['active']?_0x518b2e(0x1de):_0x518b2e(0x183)})),'note':_0x518b2e(0x1ef),'address':_0x1bd3f3[_0x518b2e(0x1cf)]??_0x1bd3f3[_0x518b2e(0x261)]??null},this['update']({'detail':_0x1bd3f3,'scroll':0x0});}}}const _0x2778ab=_0x558e84??(this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x14b)?_0x4d168b['address']:void 0x0),_0x52e860=Math[_0x518b2e(0xc7)](0x0,f({...this[_0x518b2e(0x1a1)],'items':_0x4d168b['items']})[_0x518b2e(0x199)](_0x318f53=>_0x318f53['id']===_0x2778ab));this[_0x518b2e(0x1a5)]({'items':_0x4d168b['items'],'note':_0x4d168b[_0x518b2e(0x109)],'cursor':_0x4d168b[_0x518b2e(0xf9)],'total':_0x4d168b[_0x518b2e(0x11a)]??(_0x4d168b[_0x518b2e(0xf9)]?null:_0x4d168b[_0x518b2e(0x184)][_0x518b2e(0x1e4)]),'since':_0x4d168b[_0x518b2e(0x222)]??null,'selected':_0x52e860,'address':Object['hasOwn'](_0x4d168b,_0x518b2e(0x261))?_0x4d168b[_0x518b2e(0x261)]:this['state']['address']}),this[_0x518b2e(0x1a1)][_0x518b2e(0xf2)]===_0x518b2e(0x110)&&(this[_0x518b2e(0x216)]=Date[_0x518b2e(0x1d2)]());}),this[_0x8a5511(0x229)]||await this[_0x8a5511(0x24c)](this[_0x8a5511(0x1a1)][_0x8a5511(0xf2)]===_0x8a5511(0x14b));}async[_0x4b3ed8(0x12c)](){const _0x34caec=_0x4b3ed8,_0x52c307=this[_0x34caec(0x1a1)];this['closed']||_0x52c307['busy']||_0x52c307[_0x34caec(0x120)]||_0x52c307['detailLoading']||_0x52c307[_0x34caec(0x112)]||_0x52c307['confirm']||_0x52c307['menu']||_0x52c307[_0x34caec(0x123)]||_0x52c307['privateKeyView']||(_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x110)&&_0x52c307[_0x34caec(0x222)]!==null&&Date[_0x34caec(0x1d2)]()-this[_0x34caec(0x216)]>=x?await this[_0x34caec(0x21a)]():_0x52c307[_0x34caec(0xf2)]===_0x34caec(0x157)&&!_0x52c307[_0x34caec(0x190)]&&[_0x34caec(0x16b),_0x34caec(0x1a8),_0x34caec(0xe2),_0x34caec(0x1ec)][_0x34caec(0x223)](this['selected']()?.[_0x34caec(0x1a1)])&&await this[_0x34caec(0x24c)](!0x0));}async[_0x4b3ed8(0x21a)](){const _0x2f32f3=_0x4b3ed8,_0x153a25=new AbortController();this['refreshRequest']=_0x153a25,this[_0x2f32f3(0x216)]=Date[_0x2f32f3(0x1d2)](),this[_0x2f32f3(0x1a5)]({'refreshing':!0x0});try{const _0x5b0ac3=await this['services'][_0x2f32f3(0xf7)](this[_0x2f32f3(0x1a1)][_0x2f32f3(0x160)],this[_0x2f32f3(0x1a1)][_0x2f32f3(0x222)],_0x153a25['signal']);if(this['refreshRequest']!==_0x153a25||this[_0x2f32f3(0x229)])return;const _0x47daa7=this['selected']()?.['id'],_0xad99a5=this[_0x2f32f3(0x1a1)]['items']['at'](-0x1)?.[_0x2f32f3(0x17e)],_0x12c742=new Map(this[_0x2f32f3(0x1a1)][_0x2f32f3(0x184)][_0x2f32f3(0x21c)](_0x3840cd=>[_0x3840cd['id'],_0x3840cd]));for(const _0x19ea6b of _0x5b0ac3[_0x2f32f3(0x184)]){const _0x5e428f=_0x12c742[_0x2f32f3(0xe4)](_0x19ea6b['id']);_0x5e428f&&_0x19ea6b[_0x2f32f3(0x1c1)]<_0x5e428f['updatedAt']||(_0x12c742['has'](_0x19ea6b['id'])||!_0xad99a5||_0x19ea6b[_0x2f32f3(0x17e)]>=_0xad99a5)&&_0x12c742[_0x2f32f3(0x187)](_0x19ea6b['id'],_0x19ea6b);}const _0x2a4b5a=[..._0x12c742[_0x2f32f3(0x169)]()][_0x2f32f3(0xcc)]((_0x59d9f1,_0x7f2c37)=>_0x7f2c37[_0x2f32f3(0x17e)][_0x2f32f3(0x10a)](_0x59d9f1[_0x2f32f3(0x17e)])),_0x57c760=Math[_0x2f32f3(0xc7)](0x0,_0x2a4b5a[_0x2f32f3(0x199)](_0x332481=>_0x332481['id']===_0x47daa7));this['update']({'items':_0x2a4b5a,'selected':_0x57c760,'since':_0x5b0ac3[_0x2f32f3(0x222)],'total':_0x5b0ac3[_0x2f32f3(0x11a)]??(this['state'][_0x2f32f3(0xf9)]?null:_0x2a4b5a[_0x2f32f3(0x1e4)]),'refreshError':null}),await this[_0x2f32f3(0x24c)](!0x0);}catch(_0x3cc59f){this[_0x2f32f3(0x212)]===_0x153a25&&!this[_0x2f32f3(0x229)]&&this[_0x2f32f3(0x1a5)]({'refreshError':_0x2f32f3(0x168)+_0x3cc59f['message']});}finally{this['refreshRequest']===_0x153a25&&(this[_0x2f32f3(0x212)]=null,this[_0x2f32f3(0x1a5)]({'refreshing':!0x1}));}}async[_0x4b3ed8(0x228)](){const _0x3e197d=_0x4b3ed8;this[_0x3e197d(0x1a1)][_0x3e197d(0xf2)]!==_0x3e197d(0x110)||!this[_0x3e197d(0x1a1)][_0x3e197d(0xf9)]||await this[_0x3e197d(0x1ae)](_0x3e197d(0x17a),async _0x3ea926=>{const _0x40d81b=_0x3e197d,_0x4cc9fb=await this['services'][_0x40d81b(0x110)](this[_0x40d81b(0x1a1)]['query'],this[_0x40d81b(0x1a1)][_0x40d81b(0xf9)],_0x3ea926),_0x9a8947=new Set(this[_0x40d81b(0x1a1)][_0x40d81b(0x184)]['map'](_0x1d775f=>_0x1d775f['id'])),_0x464265=this['state'][_0x40d81b(0x184)][_0x40d81b(0x1c3)](_0x4cc9fb[_0x40d81b(0x184)][_0x40d81b(0x227)](_0x52d7bf=>!_0x9a8947[_0x40d81b(0x145)](_0x52d7bf['id'])));this['update']({'items':_0x464265,'cursor':_0x4cc9fb[_0x40d81b(0xf9)],'total':this['state'][_0x40d81b(0x11a)]??(_0x4cc9fb[_0x40d81b(0xf9)]?null:_0x464265[_0x40d81b(0x1e4)])});});}async['loadDetail'](_0x423c04=!0x1){const _0x1347a6=_0x4b3ed8;clearTimeout(this['detailTimer']),this[_0x1347a6(0x204)]=null;const _0x24a167=this[_0x1347a6(0x1c9)]();if(this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0x14b)&&!_0x24a167)return;const _0x3979a7=++this[_0x1347a6(0x15c)];if(this[_0x1347a6(0x1fa)]?.['abort'](),this[_0x1347a6(0x1fa)]=new AbortController(),this[_0x1347a6(0x1a5)]({'detail':_0x423c04?this[_0x1347a6(0x1a1)][_0x1347a6(0x209)]:null,'result':_0x423c04?this['state']['result']:null,'detailLoading':!!_0x24a167,'scroll':_0x423c04?this[_0x1347a6(0x1a1)]['scroll']:0x0}),!!_0x24a167)try{const _0x477ebc=this[_0x1347a6(0x1a1)][_0x1347a6(0xf2)]==='wallet'?await this[_0x1347a6(0x119)]['wallet'](this[_0x1347a6(0x1fa)][_0x1347a6(0x239)],_0x24a167['address']):this[_0x1347a6(0x1a1)]['view']===_0x1347a6(0xc6)?_0x24a167[_0x1347a6(0x131)]===_0x1347a6(0x116)?_0x24a167:_0x24a167['installed']?await this[_0x1347a6(0x119)]['command']([_0x1347a6(0x25e),_0x1347a6(0x21d)],_0x24a167,this['detailRequest'][_0x1347a6(0x239)]):{'notInstalled':!0x0}:await this[_0x1347a6(0x119)][_0x1347a6(0x209)](_0x24a167,this[_0x1347a6(0x1fa)][_0x1347a6(0x239)]);if(_0x3979a7===this[_0x1347a6(0x15c)]){const _0x5141ca=_0x477ebc['state']??(_0x24a167[_0x1347a6(0x226)]?void 0x0:_0x477ebc[_0x1347a6(0x21d)]),_0x4010c0=this[_0x1347a6(0x1a1)][_0x1347a6(0x184)][_0x1347a6(0x21c)](_0x1ce49a=>_0x1ce49a['id']===_0x24a167['id']&&_0x5141ca?{..._0x1ce49a,'state':_0x5141ca,..._0x477ebc['updatedAt']?{'updatedAt':_0x477ebc[_0x1347a6(0x1c1)]}:{},..._0x1347a6(0x210)in _0x477ebc?{'canCancel':_0x477ebc[_0x1347a6(0x210)],'canDelete':_0x477ebc['canDelete'],'canResume':_0x477ebc[_0x1347a6(0x253)]}:{}}:_0x1ce49a),_0xb1996e=f({...this['state'],'items':_0x4010c0})[_0x1347a6(0x199)](_0x8b9f1=>_0x8b9f1['id']===_0x24a167['id']);this[_0x1347a6(0x1a5)]({'detail':_0xb1996e<0x0?null:_0x477ebc,'detailLoading':!0x1,'items':_0x4010c0,'selected':Math['max'](0x0,_0xb1996e)}),_0xb1996e<0x0&&this[_0x1347a6(0x24c)]();}}catch(_0x5bb54d){_0x3979a7===this[_0x1347a6(0x15c)]&&this[_0x1347a6(0x1a5)]({'detailLoading':!0x1,'error':_0x5bb54d[_0x1347a6(0x235)]});}}['move'](_0x143d9b){const _0x36eab6=_0x4b3ed8,_0x1dfe3a=f(this['state'])[_0x36eab6(0x1e4)],_0x56d239=Math['max'](0x0,Math['min'](_0x1dfe3a-0x1,this[_0x36eab6(0x1a1)][_0x36eab6(0x1c9)]+_0x143d9b));_0x56d239!==this['state'][_0x36eab6(0x1c9)]&&(clearTimeout(this['detailTimer']),++this[_0x36eab6(0x15c)],this[_0x36eab6(0x1fa)]?.[_0x36eab6(0xc8)](),this[_0x36eab6(0x1a5)]({'selected':_0x56d239,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x36eab6(0x1a1)][_0x36eab6(0xf2)]===_0x36eab6(0xc6)?this[_0x36eab6(0x24c)]():this[_0x36eab6(0x204)]=setTimeout(()=>{const _0x217ed=_0x36eab6;this[_0x217ed(0x24c)]();},0x78)),_0x143d9b>0x0&&_0x56d239===_0x1dfe3a-0x1&&this[_0x36eab6(0x228)]();}[_0x4b3ed8(0x25b)](){const _0x15398a=_0x4b3ed8;this[_0x15398a(0x1a5)]({'filter':m[(m[_0x15398a(0x141)](this[_0x15398a(0x1a1)]['filter'])+0x1)%m[_0x15398a(0x1e4)]],'selected':0x0}),this[_0x15398a(0x24c)]();}async[_0x4b3ed8(0xd2)](_0x170ce2){const _0x16208f=_0x4b3ed8,_0x5c2671=u[(u[_0x16208f(0x141)](this[_0x16208f(0x1a1)]['tab'])+_0x170ce2+u['length'])%u[_0x16208f(0x1e4)]];this[_0x16208f(0x1a5)]({'tab':_0x5c2671,'scroll':0x0}),_0x5c2671===_0x16208f(0x124)&&await this['files']();}async[_0x4b3ed8(0x138)](){const _0x22f693=_0x4b3ed8,_0x224740=this['selected']();_0x224740?.[_0x22f693(0x226)]&&(this['detailTimer']&&this[_0x22f693(0x24c)](!0x0),this[_0x22f693(0x1a5)]({'tab':_0x22f693(0x124),'focus':_0x22f693(0x209),'scroll':0x0}),await this['run'](_0x22f693(0x20a),async _0x2237e8=>{const _0x5a19fb=_0x22f693;this['update']({'result':await this['services'][_0x5a19fb(0x163)](_0x224740['jobId'],_0x2237e8)});}));}['showForm'](_0x51acf7,_0x53ccb2,_0xf2ab41,{onCancel:_0x5a3f40,submit:_0x2c5b95=_0x4b3ed8(0x144)}={}){const _0x4e59be=_0x4b3ed8;this[_0x4e59be(0x1ba)](),this[_0x4e59be(0x1a3)]=_0xf2ab41,this[_0x4e59be(0x22e)]=_0x5a3f40,this[_0x4e59be(0x1a5)]({'form':{'title':_0x51acf7,'fields':_0x53ccb2,'values':Object[_0x4e59be(0x108)](_0x53ccb2[_0x4e59be(0x21c)](_0x3692e4=>[_0x3692e4['name'],_0x3692e4[_0x4e59be(0x1b8)]??''])),'field':0x0,'submit':_0x2c5b95,'error':null},'menu':null});}[_0x4b3ed8(0x191)](_0x3558b3){const _0x2ef19a=_0x4b3ed8,_0x35b2f8=this[_0x2ef19a(0x1a1)][_0x2ef19a(0x112)],_0x51d6d1=_0x35b2f8[_0x2ef19a(0x23a)][_0x35b2f8[_0x2ef19a(0xce)]][_0x2ef19a(0x135)];this[_0x2ef19a(0x1a5)]({'form':{..._0x35b2f8,'values':{..._0x35b2f8[_0x2ef19a(0x169)],[_0x51d6d1]:_0x3558b3},'error':null}});}['nextField'](_0x4db844=!0x1){const _0x20e86a=_0x4b3ed8,_0x585d6e=this[_0x20e86a(0x1a1)][_0x20e86a(0x112)];this['update']({'form':{..._0x585d6e,'field':(_0x585d6e[_0x20e86a(0xce)]+(_0x4db844?-0x1:0x1)+_0x585d6e[_0x20e86a(0x23a)]['length'])%_0x585d6e['fields'][_0x20e86a(0x1e4)]}});}async[_0x4b3ed8(0x13b)](){const _0x500e2e=_0x4b3ed8,{values:_0x4034c7}=this[_0x500e2e(0x1a1)]['form'];try{await this[_0x500e2e(0x1a3)](_0x4034c7);}catch(_0x57b6bb){this[_0x500e2e(0x1a5)]({'form':{...this[_0x500e2e(0x1a1)][_0x500e2e(0x112)],'error':_0x57b6bb[_0x500e2e(0x235)]}});}}[_0x4b3ed8(0x1f8)](){const _0x2f363c=_0x4b3ed8,_0x24ddd3=this[_0x2f363c(0x22e)];this[_0x2f363c(0x1a5)]({'form':null}),_0x24ddd3&&_0x24ddd3();}['search'](){const _0x1f89ad=_0x4b3ed8,_0x28c74a=this[_0x1f89ad(0x1a1)][_0x1f89ad(0xf2)]===_0x1f89ad(0xc6);this[_0x1f89ad(0x1e3)](_0x28c74a?'Search\x20workers':'Search\x20tasks',[{'name':_0x1f89ad(0x160),'label':_0x28c74a?_0x1f89ad(0x101):_0x1f89ad(0xd8),'value':this[_0x1f89ad(0x1a1)][_0x1f89ad(0x160)]}],async({query:_0x54d3c7})=>{const _0x3d88fb=_0x1f89ad;this[_0x3d88fb(0x1a5)]({'query':_0x54d3c7,'selected':0x0,'form':null}),this[_0x3d88fb(0x1a1)][_0x3d88fb(0xf2)]===_0x3d88fb(0x110)?await this[_0x3d88fb(0x1dd)]():await this[_0x3d88fb(0x24c)]();},{'submit':_0x1f89ad(0xca)});}[_0x4b3ed8(0x19f)](_0x534a7f=null){const _0x2ac5f7=_0x4b3ed8;this[_0x2ac5f7(0x132)]={'id':_0x1b9955(),'objective':'','parent':_0x534a7f},this[_0x2ac5f7(0x192)]();}[_0x4b3ed8(0xcd)](){const _0x48459a=_0x4b3ed8,_0x113fec=this['selected']();this[_0x48459a(0x1a1)][_0x48459a(0xf2)]!==_0x48459a(0x157)||!_0x113fec?.[_0x48459a(0x226)]||this['create'](_0x113fec[_0x48459a(0x226)]);}[_0x4b3ed8(0x192)](){const _0x504a23=_0x4b3ed8;this[_0x504a23(0x132)]&&(this[_0x504a23(0x1e3)](this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x237):'Create\x20a\x20task',[{'name':_0x504a23(0x231),'label':this[_0x504a23(0x132)][_0x504a23(0x12e)]?_0x504a23(0x13f):_0x504a23(0x1a7),'value':this[_0x504a23(0x132)][_0x504a23(0x231)],'placeholder':_0x504a23(0x177)}],async({objective:_0x44ca54})=>{const _0x54cecf=_0x504a23;if(!_0x44ca54[_0x54cecf(0x11c)]())throw new Error(_0x54cecf(0x24e));const _0xe278bb=_0x44ca54[_0x54cecf(0x11c)]()!==this['draft']['objective'];this[_0x54cecf(0x132)]={...this[_0x54cecf(0x132)],'objective':_0x44ca54['trim'](),..._0xe278bb&&this[_0x54cecf(0x132)][_0x54cecf(0x10e)]?{'id':_0x1b9955(),'createdAt':void 0x0}:{},..._0xe278bb?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x54cecf(0x1a5)]({'form':null}),await this['publishDraft']();},{'submit':'Review\x20task'}),this['update']({'form':{...this['state'][_0x504a23(0x112)],'hint':'Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.'}}));}[_0x4b3ed8(0xe1)](_0x2a35c3){return new Promise(_0x119423=>{this['askResolve']=_0x119423,this['showForm']('A\x20little\x20more\x20information',_0x2a35c3['map']((_0x3f07e2,_0x2e4019)=>({'name':String(_0x2e4019),'label':_0x3f07e2})),_0x326220=>{const _0x31ba3e=_0x4052;this[_0x31ba3e(0x1a5)]({'form':null}),this['askResolve']=null,_0x119423(Object[_0x31ba3e(0x169)](_0x326220));},{'onCancel':()=>{const _0x21d0f9=_0x4052;this[_0x21d0f9(0x250)]=null,_0x119423([]);}});});}[_0x4b3ed8(0x20d)](_0x308e20){return new Promise(_0x3437cb=>{const _0x37b166=_0x4052;this['confirmResolve']=_0x3437cb;const _0xa13b97=_0x308e20[_0x37b166(0x224)]??(_0x308e20[_0x37b166(0x235)]!==void 0x0?[String(_0x308e20['message'])]:[]);this[_0x37b166(0x1a5)]({'confirm':{..._0x308e20,'lines':_0xa13b97,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x116960){const _0x27f6a6=_0x4b3ed8,_0x107b56=this['state']['confirm'],_0x2a2973=_0x107b56['extraAction']?0x3:0x2,_0x4c628f=(_0x107b56[_0x27f6a6(0x18e)]+_0x116960+_0x2a2973)%_0x2a2973;this[_0x27f6a6(0x1a5)]({'confirm':{..._0x107b56,'selection':_0x4c628f,'accepted':_0x4c628f===_0x2a2973-0x1}});}[_0x4b3ed8(0x213)](){const _0x59785a=_0x4b3ed8,_0x362317=this['state'][_0x59785a(0x20d)];_0x362317[_0x59785a(0x1e1)]&&_0x362317[_0x59785a(0x18e)]===0x1?_0x362317['extraAction'][_0x59785a(0x1ae)]():this[_0x59785a(0xd0)](_0x362317[_0x59785a(0xf6)]);}async[_0x4b3ed8(0x137)](_0x4a8757){const _0x3f5f13=_0x4b3ed8;if(!await this[_0x3f5f13(0x20d)]({'title':_0x3f5f13(0xd7),'message':_0x4a8757?.[_0x3f5f13(0x235)]??''}))throw p();}[_0x4b3ed8(0xd0)](_0x36ef18){const _0x20ffb5=this['confirmResolve'];this['confirmResolve']=null,this['update']({'confirm':null}),_0x20ffb5(_0x36ef18);}['reviewPayment'](_0x32b710={}){return async _0x1d592a=>{const _0x4d1c7d=_0x4052,_0x5d7666=await this['confirm']({'title':_0x4d1c7d(0xf8),'payment':_0x547ef0(_0x1d592a),'extraAction':{'label':_0x4d1c7d(0x230),'run':()=>this[_0x4d1c7d(0xd0)](_0x4d1c7d(0x1bc))},..._0x32b710});if(_0x5d7666===_0x4d1c7d(0x1bc))throw W();if(!_0x5d7666)throw p();};}async[_0x4b3ed8(0x1a6)]({action:_0x26fd59,signal:_0x35670f,prefer:_0x3c41d0}){const _0x21652c=_0x4b3ed8,_0x572bcc=await this[_0x21652c(0x208)](()=>this['services'][_0x21652c(0x1e0)]({'action':_0x26fd59,'signal':_0x35670f,'prefer':_0x3c41d0}));return{'choice':_0x572bcc,'payment':{'paymentChain':_0x572bcc[_0x21652c(0x11d)],'payWith':_0x572bcc[_0x21652c(0x24d)]}};}async[_0x4b3ed8(0x172)]({action:_0x26e410,signal:_0x53554c,current:_0xecee46}){const _0x2cf5fd=_0x4b3ed8;this[_0x2cf5fd(0x1a5)]({'busy':_0x2cf5fd(0x194)});const {networks:_0x5e4532}=await this[_0x2cf5fd(0x119)][_0x2cf5fd(0x133)]({'action':_0x26e410,'signal':_0x53554c}),_0xdca48e=_0x5e4532[_0x2cf5fd(0x19a)](_0x3c49e7=>(_0x3c49e7['options']??[])[_0x2cf5fd(0x227)](_0x2a254e=>_0x2a254e[_0x2cf5fd(0x189)])[_0x2cf5fd(0x21c)](_0x1ea94f=>({'paymentChain':_0x3c49e7[_0x2cf5fd(0x19c)],'payWith':_0x1ea94f[_0x2cf5fd(0x225)],'chainName':_0x3c49e7[_0x2cf5fd(0x219)],'option':_0x1ea94f})));return new Promise(_0xfb95f0=>{const _0x437f40=_0x2cf5fd,_0x4aec6d=_0xdca48e[_0x437f40(0x21c)](_0x35fef6=>({'label':A(_0x35fef6,_0xecee46),'run':()=>_0xfb95f0({'paymentChain':_0x35fef6[_0x437f40(0x11d)],'payWith':_0x35fef6[_0x437f40(0x24d)]})}));_0x4aec6d[_0x437f40(0x1e4)]||_0x4aec6d[_0x437f40(0x1f9)]({'label':_0x437f40(0x161),'run':()=>_0xfb95f0(_0xecee46)}),this['showMenu'](_0xdca48e['length']>0x1?_0x437f40(0x15e):'Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now',_0x4aec6d,{'onCancel':()=>_0xfb95f0(_0xecee46)});});}async['publishDraft'](){const _0x524c9a=_0x4b3ed8,_0x365942=await this[_0x524c9a(0x1ae)](_0x524c9a(0x194),async _0x40740c=>{const _0x215961=_0x524c9a,_0x5e4639=this[_0x215961(0x132)];_0x5e4639['requestKey']||Object[_0x215961(0x136)](_0x5e4639,await this[_0x215961(0x119)][_0x215961(0xd3)](_0x5e4639));const _0x2e8e61=_0x5e4639[_0x215961(0x12e)]?_0x215961(0x1b6):'job.open';let _0x2215a4;try{if(!_0x5e4639[_0x215961(0x10e)]){const _0x2ca4c0=await this[_0x215961(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x215961(0x1b4)]});_0x2215a4=_0x2ca4c0[_0x215961(0x21e)],_0x5e4639[_0x215961(0x1b4)]=_0x2ca4c0[_0x215961(0x1b4)];}}catch(_0x4e7d17){if(_0x4e7d17[_0x215961(0x17c)]!==_0x215961(0x23d))throw _0x4e7d17;return{'status':_0x215961(0x132),'setupWallet':await this[_0x215961(0x20d)]({'title':_0x215961(0x156),'lines':[_0x215961(0x181),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':'Open\x20Wallets','cancelLabel':'Back\x20to\x20My\x20tasks'}),'draftId':_0x5e4639['id']};}this[_0x215961(0x1a5)]({'busy':_0x215961(0x11b)});const _0x38884b=_0x5e4639[_0x215961(0x12e)]?await this[_0x215961(0x119)][_0x215961(0x209)]({'jobId':_0x5e4639[_0x215961(0x12e)]},_0x40740c):null,_0x35dc19=_0x5e4639['plan']??await this[_0x215961(0x119)][_0x215961(0x130)]({'objective':_0x5e4639[_0x215961(0x231)],'parent':_0x38884b,'signal':_0x40740c,'ask':_0xcd32c6=>this['ask'](_0xcd32c6),'onProgress':_0x4b76fd=>{const _0x4ef1bf=_0x215961;this['update'](_0x4b76fd[_0x4ef1bf(0x1fe)]===_0x4ef1bf(0x1b5)?{'busy':_0x4ef1bf(0x11b),'modelProgress':null}:{'busy':_0x4ef1bf(0x1ca),'modelProgress':_0x4b76fd});}});if(_0x40740c[_0x215961(0x115)](),!_0x35dc19[_0x215961(0x1ac)])throw new Error(_0x35dc19[_0x215961(0x218)][_0x215961(0x143)]('\x0a')||_0x215961(0x18b));_0x5e4639[_0x215961(0x130)]=_0x35dc19,_0x5e4639['requestKey']||Object['assign'](_0x5e4639,await this[_0x215961(0x119)]['saveDraft'](_0x5e4639)),this[_0x215961(0x1a5)]({'busy':_0x215961(0xfb)});let _0x3fbc14=!0x1;const _0x490c0a=async _0x1a3e18=>{const _0x2e58db=_0x215961;if(_0x3fbc14){const _0x555632=await this[_0x2e58db(0x1a6)]({'action':_0x2e8e61,'signal':_0x40740c,'prefer':_0x5e4639[_0x2e58db(0x1b4)]});_0x2215a4=_0x555632[_0x2e58db(0x21e)],_0x5e4639[_0x2e58db(0x1b4)]=_0x555632['payment'],_0x1a3e18={..._0x1a3e18,'paymentChain':_0x5e4639[_0x2e58db(0x1b4)][_0x2e58db(0x11d)],'payWith':_0x5e4639['payment'][_0x2e58db(0x24d)],'expectedWallet':_0x2215a4[_0x2e58db(0x261)]},_0x3fbc14=!0x1;}try{return await this[_0x2e58db(0x119)]['publish'](_0x1a3e18);}catch(_0x537a33){throw _0x537a33[_0x2e58db(0x17c)]==='funding_required'&&_0x537a33[_0x2e58db(0x16c)]?.['canChangePayment']&&(_0x3fbc14=!0x0),_0x537a33;}};for(;;)try{const _0x5e1c63=await this['withFundingRetry'](()=>_0x490c0a({'input':_0x35dc19['input'],'action':_0x2e8e61,'paymentChain':_0x5e4639[_0x215961(0x1b4)]?.['paymentChain'],'payWith':_0x5e4639['payment']?.[_0x215961(0x24d)],'expectedWallet':_0x2215a4?.[_0x215961(0x261)],'requestKey':_0x5e4639[_0x215961(0x10e)]??_0x5e4639['id'],'onSaved':async _0x303180=>{const _0x47605e=_0x215961;_0x5e4639[_0x47605e(0x10e)]=_0x303180[_0x47605e(0x10e)],await this[_0x47605e(0x119)][_0x47605e(0xf4)](_0x5e4639['id']);},'plan':{'summary':_0x35dc19[_0x215961(0x1f6)],'deliverables':_0x35dc19[_0x215961(0x24a)]},'signal':_0x40740c,'chooseSupport':_0x4a6765=>this[_0x215961(0x1f5)](_0x4a6765),'onProgress':_0x4eac90=>this[_0x215961(0x178)](_0x4eac90),'confirmReplacement':_0x1d3806=>this[_0x215961(0x137)](_0x1d3806),'confirm':this[_0x215961(0x1d1)]()}));return this[_0x215961(0x10c)](_0x5e1c63),_0x5e1c63;}catch(_0x4a5346){if(_0x4a5346[_0x215961(0x17c)]!==_0x215961(0x13a))throw _0x4a5346;_0x5e4639[_0x215961(0x1b4)]=await this['pickPayment']({'action':_0x2e8e61,'signal':_0x40740c,'current':_0x5e4639['payment']}),this['update']({'busy':_0x215961(0x16d)});}});if(!this[_0x524c9a(0x229)]&&_0x365942?.[_0x524c9a(0x21d)]==='draft')await this['navigate'](_0x365942[_0x524c9a(0x24b)]?_0x524c9a(0x14b):_0x524c9a(0x157)),this[_0x524c9a(0x1a5)]({'notice':_0x524c9a(0xec)}),_0x365942[_0x524c9a(0x24b)]&&this[_0x524c9a(0x155)]();else{if(!this[_0x524c9a(0x229)]&&_0x365942?.['status']==='admitted'&&_0x365942['state'][_0x524c9a(0x226)]){await this['navigate'](_0x524c9a(0x157));const _0x190335=this[_0x524c9a(0x1a1)][_0x524c9a(0x184)][_0x524c9a(0x199)](_0x5a72ce=>_0x5a72ce['jobId']===_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]);_0x190335>=0x0&&(this[_0x524c9a(0x1a5)]({'selected':_0x190335}),await this[_0x524c9a(0x24c)]()),this['update']({'notice':'Task\x20published:\x20'+_0x365942[_0x524c9a(0x1a1)][_0x524c9a(0x226)]});}}}[_0x4b3ed8(0x178)](_0xa98149){const _0x1e4e49=_0x4b3ed8,_0x3c252b=typeof _0xa98149?.[_0x1e4e49(0x235)]=='string'?_0xa98149['message'][_0x1e4e49(0x11c)]():'';_0x3c252b&&this[_0x1e4e49(0x1a5)]({'busy':_0x3c252b});}async[_0x4b3ed8(0x208)](_0xcf1e28){const _0x2e8b5e=_0x4b3ed8;for(;;)try{return await _0xcf1e28();}catch(_0x42c1ee){if(_0x42c1ee[_0x2e8b5e(0x17c)]!==_0x2e8b5e(0x1aa))throw _0x42c1ee;if(!await this[_0x2e8b5e(0x20d)]({'title':_0x2e8b5e(0x22f),'lines':_0x2a90a8(_0x42c1ee[_0x2e8b5e(0x16c)]),'acceptLabel':_0x2e8b5e(0x220),'cancelLabel':'Back','extraAction':{'label':'Add\x20funds','run':()=>this[_0x2e8b5e(0x175)](_0x42c1ee[_0x2e8b5e(0x16c)])}}))throw p();this['update']({'busy':_0x2e8b5e(0xfc)});}}[_0x4b3ed8(0x10c)]({state:_0x2dfb5f,status:_0x5becfd,check:_0x4f3cc3}){const _0x1bd5b1=_0x4b3ed8;if(_0x5becfd===_0x1bd5b1(0x1f2)&&_0x2dfb5f['jobId'])this['draft']=null,this[_0x1bd5b1(0x1a5)]({'notice':_0x1bd5b1(0x13e)+_0x2dfb5f[_0x1bd5b1(0x226)]+_0x1bd5b1(0x195)});else{if(_0x5becfd==='blocked')this[_0x1bd5b1(0x1a5)]({'error':'Not\x20paid.\x20'+_0x4f3cc3[_0x1bd5b1(0x125)][_0x1bd5b1(0x21c)](_0x5985be=>_0x5985be[_0x1bd5b1(0x209)]??_0x5985be['code'])[_0x1bd5b1(0x143)]('\x0a')});else{if(_0x5becfd===_0x1bd5b1(0x10d))this[_0x1bd5b1(0x1a5)]({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x2dfb5f['refusalProblems']??[])[_0x1bd5b1(0x21c)](_0x12d759=>_0x12d759['detail']??_0x12d759['code'])[_0x1bd5b1(0x143)]('\x0a')+_0x1bd5b1(0x233)+_0x2dfb5f['orderId']});else{if(S[_0x1bd5b1(0x145)](_0x5becfd)){const _0x4e16c3=[_0x1bd5b1(0x1c8),_0x1bd5b1(0x181),_0x1bd5b1(0x245)],_0x22112a=_0x2dfb5f?.[_0x1bd5b1(0x1b1)]??_0x2dfb5f?.[_0x1bd5b1(0x252)];_0x22112a?.[_0x1bd5b1(0x174)]&&_0x4e16c3['push'](_0x1bd5b1(0x167)+_0x22112a['hash']),_0x22112a?.['explorerUrl']&&_0x4e16c3[_0x1bd5b1(0x1f9)](_0x1bd5b1(0xdd)+_0x22112a[_0x1bd5b1(0x103)]),this['update']({'error':_0x4e16c3[_0x1bd5b1(0x143)]('\x0a')});}else this[_0x1bd5b1(0x1a5)]({'error':'Order\x20status:\x20'+_0x5becfd+_0x1bd5b1(0x16f)});}}}}async[_0x4b3ed8(0x201)](){const _0x24fcf5=_0x4b3ed8,_0x4afe08=this[_0x24fcf5(0x1c9)]();if(this[_0x24fcf5(0x1a1)]['view']===_0x24fcf5(0x157)&&_0x4afe08?.[_0x24fcf5(0x1cb)]){const _0x503b5b=await this[_0x24fcf5(0x1ae)](_0x24fcf5(0xe8),()=>this['services']['loadDraft'](_0x4afe08[_0x24fcf5(0x1cb)]));_0x503b5b&&(this['draft']=_0x503b5b,this[_0x24fcf5(0x192)]());return;}this['state']['view']!==_0x24fcf5(0x157)||!_0x4afe08?.[_0x24fcf5(0x10e)]||_0x4afe08[_0x24fcf5(0x226)]||!_0x4afe08[_0x24fcf5(0x253)]||(this[_0x24fcf5(0x132)]=null,await this['run'](_0x24fcf5(0xc2),async _0xec72c1=>{const _0x406207=_0x24fcf5;let _0x506a17,_0x250e9a,_0xba8368;if(_0x4afe08[_0x406207(0x210)]){const _0x11abea=await this[_0x406207(0x119)]['detail'](_0x4afe08,_0xec72c1);_0xba8368=_0x11abea[_0x406207(0x114)]??_0x406207(0xeb),this[_0x406207(0x1a5)]({'busy':_0x406207(0x194)}),_0x506a17=(await this['autoPayment']({'action':_0xba8368,'signal':_0xec72c1,'prefer':{'paymentChain':_0x11abea[_0x406207(0x11d)]??_0x406207(0x254),'payWith':_0x11abea[_0x406207(0x24d)]??'IMD'}}))[_0x406207(0x1b4)],_0x250e9a=this[_0x406207(0x1d1)]({'title':_0x406207(0x128)});}let _0x3db92a=!0x1;const _0x4fb7f2=async()=>{const _0x3cc211=_0x406207;_0x3db92a&&(_0x506a17=(await this[_0x3cc211(0x1a6)]({'action':_0xba8368,'signal':_0xec72c1,'prefer':_0x506a17}))['payment'],_0x3db92a=!0x1);try{return await this['services'][_0x3cc211(0xc9)](_0x4afe08,_0x2012dc=>this[_0x3cc211(0x20d)](_0x2012dc),_0xec72c1,_0x7c3242=>this[_0x3cc211(0x1f5)](_0x7c3242),_0x45f808=>this['showPaymentProgress'](_0x45f808),_0x740914=>this[_0x3cc211(0x137)](_0x740914),{'payment':_0x506a17,'review':_0x250e9a});}catch(_0x4d25a7){throw _0x4afe08[_0x3cc211(0x210)]&&_0x4d25a7[_0x3cc211(0x17c)]===_0x3cc211(0x1aa)&&_0x4d25a7['funding']?.[_0x3cc211(0xe0)]&&(_0x3db92a=!0x0),_0x4d25a7;}};for(;;)try{this[_0x406207(0x10c)](await this['withFundingRetry'](_0x4fb7f2));return;}catch(_0x3eb2e3){if(_0x3eb2e3['code']!=='change_payment')throw _0x3eb2e3;_0x506a17=await this[_0x406207(0x172)]({'action':_0xba8368,'signal':_0xec72c1,'current':_0x506a17}),this[_0x406207(0x1a5)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}['taskMenu'](){const _0x9ab71d=_0x4b3ed8,_0x1303bf=this[_0x9ab71d(0x1c9)]();if(this[_0x9ab71d(0x1a1)][_0x9ab71d(0xf2)]!==_0x9ab71d(0x157)||!_0x1303bf)return;const _0xd5203a=[{'label':_0x9ab71d(0x11f),'run':()=>this[_0x9ab71d(0x1a5)]({'focus':'detail','tab':_0x9ab71d(0x255),'scroll':0x0})}];_0x1303bf[_0x9ab71d(0x1cb)]?_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x19e),'run':()=>this[_0x9ab71d(0x201)]()},{'label':'Delete\x20draft','run':()=>this[_0x9ab71d(0x1ea)]()}):_0x1303bf[_0x9ab71d(0x226)]?(_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x15f),'run':()=>this[_0x9ab71d(0x138)]()},{'label':_0x9ab71d(0x164),'run':()=>this[_0x9ab71d(0x13d)]()}),_0x1303bf[_0x9ab71d(0x1a1)]===_0x9ab71d(0xd5)&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0xfa),'run':()=>this[_0x9ab71d(0xcd)]()})):_0x1303bf[_0x9ab71d(0x10e)]&&(_0x1303bf['canResume']&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x1303bf['canCancel']?_0x9ab71d(0x1b0):'Inspect\x20/\x20resume\x20saved\x20order','run':()=>this[_0x9ab71d(0x201)]()}),_0x1303bf[_0x9ab71d(0x210)]&&_0xd5203a[_0x9ab71d(0x1f9)]({'label':_0x9ab71d(0x1fb),'run':()=>this[_0x9ab71d(0x1e2)]()}),_0x1303bf['canDelete']&&_0xd5203a['push']({'label':'Delete\x20local\x20record','run':()=>this[_0x9ab71d(0x23c)]()})),this[_0x9ab71d(0x15d)](_0x9ab71d(0x251),_0xd5203a);}async[_0x4b3ed8(0x1ea)](){const _0x74f1a1=_0x4b3ed8,_0x3b0330=this[_0x74f1a1(0x1c9)]();if(!_0x3b0330?.[_0x74f1a1(0x1cb)]||!await this['confirm']({'title':'Delete\x20draft?','lines':[_0x3b0330[_0x74f1a1(0x1d7)]],'acceptLabel':_0x74f1a1(0x1a0),'cancelLabel':_0x74f1a1(0x18d)}))return;await this[_0x74f1a1(0x1ae)](_0x74f1a1(0xc3),()=>this[_0x74f1a1(0x119)][_0x74f1a1(0xf4)](_0x3b0330[_0x74f1a1(0x1cb)]))&&(this[_0x74f1a1(0x132)]?.['id']===_0x3b0330[_0x74f1a1(0x1cb)]&&(this['draft']=null),await this[_0x74f1a1(0x1dd)]());}async[_0x4b3ed8(0x1e2)](){const _0x4176d5=_0x4b3ed8,_0x5c5f6c=this[_0x4176d5(0x1c9)]();if(this['state'][_0x4176d5(0xf2)]!==_0x4176d5(0x157)||!_0x5c5f6c?.['canCancel'])return;let _0xd4a703=!0x1;await this[_0x4176d5(0x1ae)](_0x4176d5(0xe7),async()=>{const _0xf63fdb=_0x4176d5;await this[_0xf63fdb(0x20d)]({'title':_0xf63fdb(0xf5),'lines':[_0x5c5f6c[_0xf63fdb(0x1d7)],'',_0xf63fdb(0xdf),_0xf63fdb(0x1af),'You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.'],'acceptLabel':_0xf63fdb(0x1fb),'cancelLabel':_0xf63fdb(0x21b)})&&(await this[_0xf63fdb(0x119)][_0xf63fdb(0x205)](_0x5c5f6c),_0xd4a703=!0x0);}),_0xd4a703&&!this[_0x4176d5(0x229)]&&(await this[_0x4176d5(0x1dd)](),this['update']({'notice':_0x4176d5(0x1e9)}));}async[_0x4b3ed8(0x23c)](){const _0x4b2d29=_0x4b3ed8,_0x502e9b=this['selected']();if(this[_0x4b2d29(0x1a1)]['view']!=='tasks'||!_0x502e9b?.[_0x4b2d29(0x186)])return;let _0x3dfd3a=!0x1;await this['run'](_0x4b2d29(0x12f),async()=>{const _0x384a0e=_0x4b2d29;await this[_0x384a0e(0x119)]['delete'](_0x502e9b),_0x3dfd3a=!0x0;}),_0x3dfd3a&&!this[_0x4b2d29(0x229)]&&(await this['refresh'](),this[_0x4b2d29(0x1a5)]({'notice':_0x4b2d29(0x193)}));}[_0x4b3ed8(0x13d)](){const _0x251ca=_0x4b3ed8,_0x344d9b=this[_0x251ca(0x1c9)]();_0x344d9b?.['jobId']&&this[_0x251ca(0x1e3)](_0x251ca(0x20b),[{'name':_0x251ca(0x100),'label':_0x251ca(0x179),'value':_0x251ca(0x1dc)+_0x344d9b[_0x251ca(0x226)]}],async({out:_0x36e3b6})=>{const _0x46166b=_0x251ca;if(!_0x36e3b6[_0x46166b(0x11c)]())throw new Error(_0x46166b(0xbe));this[_0x46166b(0x1a5)]({'form':null}),await this[_0x46166b(0x1ae)]('Downloading\x20verified\x20files...',async _0x4270c3=>{const _0x5916f3=_0x46166b,_0x3ea1ed=await this[_0x5916f3(0x119)][_0x5916f3(0x13d)]({'id':_0x344d9b[_0x5916f3(0x226)],'out':_0x36e3b6,'signal':_0x4270c3,'onProgress':_0x23a3da=>this[_0x5916f3(0x1a5)]({'busy':_0x5916f3(0x1e7)+_0x23a3da['path']})});this[_0x5916f3(0x1a5)]({'notice':_0x5916f3(0x1e7)+_0x3ea1ed[_0x5916f3(0x138)]['length']+_0x5916f3(0x196)+_0x36e3b6});});},{'submit':_0x251ca(0x17d)});}[_0x4b3ed8(0xcb)](){const _0x460802=_0x4b3ed8;this[_0x460802(0x1e3)]('Add\x20a\x20worker\x20target',[{'name':'host','label':_0x460802(0xdb)},{'name':_0x460802(0x1f1),'label':_0x460802(0x21f),'value':'22'},{'name':_0x460802(0x200),'label':'SSH\x20identity\x20file\x20(optional)'}],async _0x113579=>{const _0x572b4b=_0x460802,_0x29f02c=_0x5b065c(_0x113579);this['extraTargets'][_0x572b4b(0x23e)](_0x551f53=>_0x551f53['id']===_0x29f02c['id'])||this[_0x572b4b(0x118)][_0x572b4b(0x1f9)](_0x29f02c),this[_0x572b4b(0x1a5)]({'form':null}),await this[_0x572b4b(0x1dd)](),this['update']({'selected':this[_0x572b4b(0x1a1)][_0x572b4b(0x184)][_0x572b4b(0x199)](_0x439e44=>_0x439e44['id']===_0x29f02c['id'])}),await this['loadDetail']();},{'submit':_0x460802(0x147)});}[_0x4b3ed8(0x15d)](_0x3224bf,_0x3e129b,{onCancel:_0x26c1db,selected:_0x181dc4=0x0}={}){const _0x3f1ca5=_0x4b3ed8;this[_0x3f1ca5(0x1ba)](),this['menuCancel']=_0x26c1db??null,this[_0x3f1ca5(0x1a5)]({'menu':{'title':_0x3224bf,'items':_0x3e129b,'selected':_0x181dc4},'form':null});}[_0x4b3ed8(0x1f5)](_0x36286f){return new Promise((_0x3efa36,_0x3c49b5)=>{const _0x19febc=_0x4052;this[_0x19febc(0x15d)](_0x19febc(0x152),_0x36286f[_0x19febc(0x21c)]((_0x250fa3,_0x3b69bf)=>({'label':_0x250fa3[_0x19febc(0x170)],'run':()=>_0x3efa36(_0x3b69bf)})),{'onCancel':()=>_0x3c49b5(p()),'selected':_0x714d5c});});}['dismissMenu'](){const _0xe910bd=_0x4b3ed8,_0x15999a=this['menuCancel'];this['menuCancel']=null,this[_0xe910bd(0x1a5)]({'menu':null}),_0x15999a?.();}[_0x4b3ed8(0x1d4)](){const _0x25e621=_0x4b3ed8,_0x9020fc=this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x184)][this[_0x25e621(0x1a1)][_0x25e621(0x148)][_0x25e621(0x1c9)]];this[_0x25e621(0x1bb)]=null,this['update']({'menu':null}),_0x9020fc[_0x25e621(0x1ae)]();}['workerMenu'](){const _0x125dab=_0x4b3ed8,_0x58c5a0=this[_0x125dab(0x1c9)]();if(!_0x58c5a0||_0x58c5a0[_0x125dab(0x131)]===_0x125dab(0x116))return;const _0x2355e0=(_0x11e63a,_0x3e3344=!0x1)=>()=>this[_0x125dab(0x1d9)](_0x11e63a,_0x3e3344),_0x1d2655=(_0x2723ee,_0x324e21,_0x24d28d,_0x526a0d,_0x40233b=!0x1)=>()=>this[_0x125dab(0x1e3)](_0x2723ee,[{'name':_0x24d28d,'label':_0x526a0d}],_0x379fbe=>{const _0x1f7f5e=_0x125dab;if(!_0x379fbe[_0x24d28d][_0x1f7f5e(0x11c)]())throw new Error(_0x526a0d+_0x1f7f5e(0x16e));return this[_0x1f7f5e(0x1a5)]({'form':null}),this[_0x1f7f5e(0x1d9)](_0x324e21[_0x1f7f5e(0x1c3)](_0x379fbe[_0x24d28d]['trim']()),_0x40233b);});this[_0x125dab(0x15d)](_0x125dab(0x12b)+_0x58c5a0[_0x125dab(0x1d7)],[{'label':_0x125dab(0x146),'run':_0x2355e0([_0x125dab(0x21d)])},{'label':_0x125dab(0x129),'run':_0x2355e0([_0x125dab(0x23b)])},{'label':_0x125dab(0xe9),'run':_0x2355e0(['doctor'])},{'label':_0x125dab(0xee),'run':_0x2355e0([_0x125dab(0x102)])},{'label':_0x125dab(0x249),'run':_0x2355e0([_0x125dab(0xd6)],!0x0)},{'label':_0x125dab(0x1ce),'run':_0x2355e0([_0x125dab(0x22a)],!0x0)},{'label':_0x125dab(0x18a),'run':_0x2355e0([_0x125dab(0x1eb)],!0x0)},{'label':'Install\x20background\x20service','run':()=>this[_0x125dab(0x104)]()},...['start',_0x125dab(0x248),_0x125dab(0x154),_0x125dab(0x1a5)][_0x125dab(0x21c)](_0x3efb5f=>({'label':_0x3efb5f[0x0][_0x125dab(0xff)]()+_0x3efb5f['slice'](0x1),'run':_0x2355e0([_0x3efb5f],!0x0)})),{'label':'Skills','run':()=>this[_0x125dab(0x15d)]('Worker\x20skills',[{'label':_0x125dab(0x10f),'run':_0x2355e0([_0x125dab(0x242),_0x125dab(0xf0)])},{'label':_0x125dab(0x1ff),'run':_0x1d2655(_0x125dab(0x1ff),[_0x125dab(0x242),'add'],'id',_0x125dab(0x149))},{'label':'Remove\x20skill','run':_0x1d2655(_0x125dab(0xd4),[_0x125dab(0x242),'remove'],'id',_0x125dab(0x149))}])},{'label':_0x125dab(0x127),'run':()=>this['showMenu'](_0x125dab(0x256),[{'label':_0x125dab(0x1ed),'run':_0x2355e0([_0x125dab(0x260),_0x125dab(0xf0)])},{'label':'Add\x20tool','run':_0x2355e0([_0x125dab(0x260),'add'],!0x0)},{'label':_0x125dab(0x232),'run':_0x1d2655(_0x125dab(0xea),[_0x125dab(0x260),_0x125dab(0x19c)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x117),'run':_0x1d2655(_0x125dab(0x117),['tools',_0x125dab(0x140)],_0x125dab(0x135),_0x125dab(0x238),!0x0)},{'label':_0x125dab(0x171),'run':_0x1d2655('Remove\x20tool',[_0x125dab(0x260),'remove'],'id',_0x125dab(0x22b))}])},{'label':_0x125dab(0xc5),'run':()=>this[_0x125dab(0x15d)]('Worker\x20RPC\x20endpoints',[{'label':'List\x20RPC\x20endpoints','run':_0x2355e0([_0x125dab(0x10b),_0x125dab(0xf0)])},{'label':_0x125dab(0x139),'run':_0x1d2655(_0x125dab(0x142),[_0x125dab(0x10b),'add'],_0x125dab(0x11e),_0x125dab(0x18f),!0x0)},{'label':'Remove\x20RPC\x20endpoint','run':_0x1d2655(_0x125dab(0xfe),['rpc',_0x125dab(0xd1)],_0x125dab(0x11e),_0x125dab(0x18f))}])},{'label':_0x125dab(0x1fc),'run':_0x2355e0([_0x125dab(0x241)],!0x0)}]);}[_0x4b3ed8(0x104)](){const _0x28abe7=_0x4b3ed8;this[_0x28abe7(0x1e3)](_0x28abe7(0x258),[{'name':_0x28abe7(0x217),'label':_0x28abe7(0x188),'value':_0x28abe7(0x1fd)},{'name':_0x28abe7(0xfd),'label':_0x28abe7(0x15a),'value':'1'},{'name':_0x28abe7(0x173),'label':_0x28abe7(0x1f3),'value':'no'}],async({runtime:_0x13675c,concurrency:_0x31beeb,boot:_0x37ecd6})=>{const _0x50e7b6=_0x28abe7;if(![_0x50e7b6(0x1fd),_0x50e7b6(0x1c7)][_0x50e7b6(0x223)](_0x13675c))throw new Error(_0x50e7b6(0x12a));if(!/^[1-4]$/['test'](_0x31beeb))throw new Error(_0x50e7b6(0x1c4));if(![_0x50e7b6(0x207),'no']['includes'](_0x37ecd6))throw new Error(_0x50e7b6(0x247));const _0x4e8cc5=[_0x50e7b6(0x1d3),_0x50e7b6(0x206),_0x50e7b6(0x1df),_0x13675c,'--concurrency',_0x31beeb];_0x37ecd6===_0x50e7b6(0x207)&&_0x4e8cc5[_0x50e7b6(0x1f9)](_0x50e7b6(0x20c)),this[_0x50e7b6(0x1a5)]({'form':null}),await this[_0x50e7b6(0x1d9)](_0x4e8cc5,!0x0);});}async[_0x4b3ed8(0x1d9)](_0x5cf115,_0x5e8208=!0x1){const _0x21394e=_0x4b3ed8,_0x22f2b4=this[_0x21394e(0x1c9)]();!_0x22f2b4||_0x22f2b4[_0x21394e(0x131)]===_0x21394e(0x116)||await this[_0x21394e(0x1ae)](_0x21394e(0xda)+_0x5cf115[_0x21394e(0x143)]('\x20')+_0x21394e(0x122),async _0x4b3a57=>{const _0x420522=_0x21394e;if(_0x5e8208){if(!await this['confirm']({'title':_0x420522(0x1a4)+_0x22f2b4[_0x420522(0x1d7)]+'?','lines':['colony\x20worker\x20'+_0x5cf115[_0x420522(0x143)]('\x20'),_0x420522(0xc1)]}))return;await this[_0x420522(0x23f)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4),this[_0x420522(0x1a5)]({'notice':_0x420522(0xbd)});}else{const _0x4c04bf=await this[_0x420522(0x119)][_0x420522(0x158)]([_0x420522(0x25e),..._0x5cf115],_0x22f2b4,_0x4b3a57);this['update']({'detail':{'output':_0x4c04bf},'focus':_0x420522(0x209),'scroll':0x0});}});}[_0x4b3ed8(0x15b)](_0x579da7){return new Promise((_0x5e7e61,_0x5f70f0)=>{const _0x35826b=_0x4052;this[_0x35826b(0x1c6)]=_0x5f70f0,this['showForm'](_0x35826b(0x14a),[{'name':_0x35826b(0x262),'label':_0x579da7,'secret':!0x0}],({password:_0x4facae})=>{const _0x3124f9=_0x35826b;this[_0x3124f9(0x1a5)]({'form':null}),this['passwordReject']=null,_0x5e7e61(_0x4facae);},{'submit':_0x35826b(0x144),'onCancel':()=>{const _0x389c9b=_0x35826b;this[_0x389c9b(0x1c6)]=null,_0x5f70f0(new Error(_0x389c9b(0x25c)));}});});}[_0x4b3ed8(0x259)](){const _0x30fba1=_0x4b3ed8,_0x4d7338=this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.['source']===_0x30fba1(0x198);this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]&&this['showMenu'](_0x30fba1(0x203),[...!this[_0x30fba1(0x1bf)]()&&this[_0x30fba1(0x1c9)]()?[{'label':_0x30fba1(0x236),'run':()=>this[_0x30fba1(0x176)]()}]:[],..._0x4d7338?[{'label':_0x30fba1(0xbc),'run':()=>this['walletPrivateKey']()},{'label':_0x30fba1(0x257),'run':()=>this[_0x30fba1(0x1bd)]()},{'label':'Delete\x20wallet','run':()=>this[_0x30fba1(0xe5)]()}]:[],...this[_0x30fba1(0x1a1)][_0x30fba1(0x209)]?.[_0x30fba1(0x14c)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x30fba1(0x25f)]()}]:[]]);}[_0x4b3ed8(0x155)](){const _0x301f19=_0x4b3ed8;this[_0x301f19(0x15d)]('Wallet\x20management\x20\xB7\x20all\x20wallets',[{'label':'Create\x20a\x20new\x20local\x20wallet','run':()=>this[_0x301f19(0x14f)](!0x1)},{'label':_0x301f19(0x180),'run':()=>this['walletImport']()}]);}[_0x4b3ed8(0x16a)](){const _0x4cf061=_0x4b3ed8;this[_0x4cf061(0x15d)](_0x4cf061(0x180),[{'label':_0x4cf061(0x215),'run':()=>this[_0x4cf061(0x14f)](!0x0)},{'label':_0x4cf061(0xf1),'run':()=>this['walletRestore']()}]);}['walletIsCurrent'](){const _0x538b6d=_0x4b3ed8;return!this['selected']()||this[_0x538b6d(0x1c9)]()['address']===this[_0x538b6d(0x1a1)][_0x538b6d(0x261)];}async[_0x4b3ed8(0xe5)](){const _0x45df3d=_0x4b3ed8,_0x154d8c=this[_0x45df3d(0x1c9)]()?.['address']??this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x261)];if(this['state'][_0x45df3d(0x209)]?.[_0x45df3d(0x263)]!=='local'||!_0x154d8c||!await this[_0x45df3d(0x20d)]({'title':_0x45df3d(0x1da),'lines':[_0x154d8c,_0x45df3d(0x20e),_0x45df3d(0x17f)],'acceptLabel':_0x45df3d(0x144),'cancelLabel':'Keep\x20wallet'})||!await this[_0x45df3d(0x20d)]({'title':'Delete\x20wallet\x20\xB7\x202\x20of\x202','lines':[_0x154d8c,'The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.',_0x45df3d(0x185)],'acceptLabel':_0x45df3d(0x1e8),'cancelLabel':'Keep\x20wallet'}))return;const _0x5eaa8c=await this[_0x45df3d(0x1ae)](_0x45df3d(0x1c0),()=>this[_0x45df3d(0x119)][_0x45df3d(0xe6)](_0x154d8c));_0x5eaa8c&&(await this[_0x45df3d(0xd9)](_0x5eaa8c[_0x45df3d(0x1cf)]),this[_0x45df3d(0x1a5)]({'notice':_0x45df3d(0xc0)+_0x154d8c}));}['walletPrivateKey'](){const _0x239576=_0x4b3ed8,_0x4f6bd0=this[_0x239576(0x1c9)]()?.['address']??this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x261)];this[_0x239576(0x1a1)][_0x239576(0x209)]?.[_0x239576(0x263)]!==_0x239576(0x198)||!_0x4f6bd0||this['showForm'](_0x239576(0x1cd),[{'name':_0x239576(0x262),'label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x275f5c})=>{const _0x198861=_0x239576;this[_0x198861(0x1a5)]({'form':null});const _0x3ada62=await this[_0x198861(0x1ae)]('Checking\x20wallet\x20password...',_0xe9a86e=>this[_0x198861(0x119)]['revealPrivateKey'](_0x4f6bd0,_0x275f5c,_0xe9a86e));_0x3ada62&&this[_0x198861(0x1a5)]({'privateKeyView':_0x3ada62});},{'submit':_0x239576(0xbc)});}async[_0x4b3ed8(0xd9)](_0x5883d5){const _0xb89e89=_0x4b3ed8;this['update']({'selected':-0x1}),this[_0xb89e89(0x24f)]=_0x5883d5,await this[_0xb89e89(0x1dd)]();}async[_0x4b3ed8(0x176)](){const _0x43695e=_0x4b3ed8,_0x54ad26=this[_0x43695e(0x1c9)]();if(!_0x54ad26||this[_0x43695e(0x1bf)]())return;const _0x4925c9=await this[_0x43695e(0x1ae)]('Switching\x20wallet...',()=>this[_0x43695e(0x119)][_0x43695e(0x1e5)](_0x54ad26[_0x43695e(0x261)]));_0x4925c9&&(await this[_0x43695e(0x1dd)](),this['update']({'notice':_0x43695e(0xef)+_0x4925c9['address']}));}[_0x4b3ed8(0x14f)](_0xb930ca){const _0x4e69cd=_0x4b3ed8,_0x379092=this['services'][_0x4e69cd(0x134)]()[_0x4e69cd(0x1e4)]>0x0||this[_0x4e69cd(0x1a1)][_0x4e69cd(0x209)]?.[_0x4e69cd(0x263)]===_0x4e69cd(0x198),_0x1d3636=async({key:_0x4dc0cb,password:_0x5bad9b,repeat:_0x311b4a})=>{const _0x17dfd1=_0x4e69cd;if(!_0x379092){if(_0x5bad9b!==_0x311b4a)throw new Error(_0x17dfd1(0x20f));if(_0x5bad9b['length']<0x8)throw new Error(_0x17dfd1(0x106));}this['update']({'form':null});const _0x56403d=await this[_0x17dfd1(0x1ae)](_0x17dfd1(0xdc),_0x613524=>this[_0x17dfd1(0x119)][_0x17dfd1(0x197)](_0x5bad9b,_0x4dc0cb,_0x613524));_0x56403d&&(await this[_0x17dfd1(0xd9)](_0x56403d[_0x17dfd1(0x261)]),this['update']({'notice':'Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.'}));};if(_0x379092&&!_0xb930ca)return _0x1d3636({});this[_0x4e69cd(0x1e3)](_0xb930ca?'Import\x20private\x20key\x20\xB7\x20encrypted\x20locally':_0x4e69cd(0x19d),[..._0xb930ca?[{'name':_0x4e69cd(0x19c),'label':'Private\x20key\x20(hidden)','secret':!0x0}]:[],..._0x379092?[]:[{'name':_0x4e69cd(0x262),'label':_0x4e69cd(0x22d),'secret':!0x0},{'name':_0x4e69cd(0x13c),'label':'Confirm\x20password','secret':!0x0}]],_0x1d3636,{'submit':_0xb930ca?_0x4e69cd(0x180):'Create\x20wallet'});}[_0x4b3ed8(0xe3)](){const _0xceac38=_0x4b3ed8;this[_0xceac38(0x1e3)]('Restore\x20encrypted\x20wallet',[{'name':_0xceac38(0x105),'label':'Backup\x20file\x20path'},{'name':_0xceac38(0x262),'label':'Backup\x20password','secret':!0x0}],async({file:_0x423bd4,password:_0x491a8c})=>{const _0x3306a9=_0xceac38;this[_0x3306a9(0x1a5)]({'form':null});const _0xfa940=await this[_0x3306a9(0x1ae)](_0x3306a9(0x221),_0x31b653=>this[_0x3306a9(0x119)][_0x3306a9(0x246)](_0x423bd4,_0x491a8c,_0x31b653));_0xfa940&&await this[_0x3306a9(0xd9)](_0xfa940[_0x3306a9(0x261)]);},{'submit':_0xceac38(0x1f0)});}['walletBackup'](){const _0x3190e2=_0x4b3ed8,_0x1ec435=this[_0x3190e2(0x1c9)]()?.[_0x3190e2(0x261)]??this['state']['detail']?.[_0x3190e2(0x261)];_0x1ec435&&this[_0x3190e2(0x1e3)](_0x3190e2(0x257),[{'name':'out','label':_0x3190e2(0x1f7)}],async({out:_0x159a55})=>{const _0x350125=_0x3190e2;this['update']({'form':null});const _0x487909=await this[_0x350125(0x1ae)](_0x350125(0x19b),()=>this[_0x350125(0x119)]['backupWallet'](_0x159a55,_0x1ec435));_0x487909&&this['update']({'notice':_0x350125(0x14d)+_0x487909[_0x350125(0x165)]+_0x350125(0xcf)});},{'submit':'Save\x20backup'});}async['walletReceive'](){const _0x3b48ad=_0x4b3ed8,_0x22b34e=this[_0x3b48ad(0x1c9)]()?.[_0x3b48ad(0x261)]??this[_0x3b48ad(0x1a1)][_0x3b48ad(0x209)]?.['address'];_0x22b34e&&await this[_0x3b48ad(0x1ae)](_0x3b48ad(0x1ab),async()=>{const _0x16f1eb=_0x3b48ad;this[_0x16f1eb(0x1a5)]({'receive':await this[_0x16f1eb(0x119)]['receiveWallet'](_0x22b34e)});});}[_0x4b3ed8(0x175)](_0x51f8b5){const _0x2ea244=_0x4b3ed8,_0x52c1e2=_0x11d6f7(_0x51f8b5)['filter'](_0x3695b1=>!_0x3695b1[_0x2ea244(0x190)]);if(_0x52c1e2['length']<=0x1)return this['fundingReceive'](_0x51f8b5,_0x52c1e2[0x0]??_0x11d6f7(_0x51f8b5)[0x0]);const _0x809383={'dialog':this[_0x2ea244(0x1a1)]['confirm'],'scroll':this[_0x2ea244(0x1a1)][_0x2ea244(0x25a)]};this[_0x2ea244(0x1a5)]({'confirm':null}),this['showMenu'](_0x2ea244(0x1be),_0x52c1e2[_0x2ea244(0x21c)](_0xf7b805=>({'label':_0x28df1c(_0xf7b805),'run':()=>this[_0x2ea244(0xc4)](_0x51f8b5,_0xf7b805,_0x809383)})),{'onCancel':()=>this['update']({'confirm':_0x809383['dialog'],'scroll':_0x809383[_0x2ea244(0x25a)]})});}async[_0x4b3ed8(0xc4)](_0x12c7ef,_0x199e0e,_0x541cb6){const _0x514158=_0x4b3ed8,_0x555183=_0x541cb6?.['dialog']??this[_0x514158(0x1a1)][_0x514158(0x20d)],_0x4ec28e=_0x541cb6?.[_0x514158(0x25a)]??this[_0x514158(0x1a1)][_0x514158(0x25a)];try{const _0x5ac9d4=await this['services'][_0x514158(0x243)](_0x12c7ef[_0x514158(0x261)],_0x199e0e[_0x514158(0x19c)]);this['fundingDialog']={'dialog':_0x555183,'scroll':_0x4ec28e},this[_0x514158(0x1a5)]({'confirm':null,'receive':{..._0x5ac9d4,'targets':_0x3746eb(_0x199e0e)},'scroll':0x0,'error':null,'notice':null});}catch(_0x1d4242){this[_0x514158(0x1a5)]({'error':_0x1d4242['message'],..._0x541cb6?{'confirm':_0x555183,'scroll':_0x4ec28e}:{}});}}[_0x4b3ed8(0x1b3)](){const _0x359aff=_0x4b3ed8,_0x4a2c77=this['fundingDialog'];this[_0x359aff(0x1cc)]=null,this['update']({'receive':null,..._0x4a2c77?{'confirm':_0x4a2c77[_0x359aff(0x17b)],'scroll':_0x4a2c77[_0x359aff(0x25a)]}:{}});}[_0x4b3ed8(0x1b9)](){const _0x3ac86d=_0x4b3ed8,_0x53603c=this[_0x3ac86d(0x1a1)][_0x3ac86d(0x1d0)][_0x3ac86d(0x261)];this['showForm']('Save\x20recharge\x20QR\x20code',[{'name':_0x3ac86d(0x100),'label':'New\x20SVG\x20file\x20path','placeholder':_0x3ac86d(0x214)}],async({out:_0x1228e0})=>{const _0x2abcf7=_0x3ac86d,_0x371b5c=await this[_0x2abcf7(0x119)][_0x2abcf7(0x1db)](_0x53603c,_0x1228e0);this[_0x2abcf7(0x1a5)]({'form':null,'notice':_0x2abcf7(0x151)+_0x371b5c[_0x2abcf7(0x165)]});},{'submit':_0x3ac86d(0x1a9)});}['close'](){const _0x425672=_0x4b3ed8;clearTimeout(this[_0x425672(0x204)]),this['menuCancel']?.(),this[_0x425672(0x1bb)]=null,this[_0x425672(0x1c6)]?.(new Error(_0x425672(0xf3))),this['passwordReject']=null,_0x3ec757(),this[_0x425672(0x1a5)]({'form':null,'privateKeyView':null}),this['closed']=!0x0,this['operation']?.[_0x425672(0xc8)](),this[_0x425672(0x212)]?.[_0x425672(0xc8)](),this[_0x425672(0x1fa)]?.[_0x425672(0xc8)](),this['confirmResolve']?.(!0x1),this[_0x425672(0x1cc)]=null,this[_0x425672(0x250)]?.([]),++this[_0x425672(0x15c)],this[_0x425672(0x1d5)][_0x425672(0x234)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
|
|
1
|
+
const _0x35df2a=_0x35aa;import{friendlyAmount as _0x42628b}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x45f686,paymentView as _0x512502}from'./services.mjs';function _0x35aa(_0x112002,_0x1169fd){_0x112002=_0x112002-0x1be;const _0x35aa05=_0x1169();let _0x98fc04=_0x35aa05[_0x112002];return _0x98fc04;}import{lockWallet as _0x3e28dd}from'../lib/local-wallet.mjs';import{fundingInstructions as _0x58ce5d,fundingNetworks as _0x12a616,networkChoiceLabel as _0x285a35,networkTargets as _0x17597a}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x47130e}from'../lib/support.mjs';import{randomUUID as _0x142cc6}from'node:crypto';const V=[_0x35df2a(0x1dd),_0x35df2a(0x1c7),_0x35df2a(0x210),_0x35df2a(0x2b0)],m=[_0x35df2a(0x249),_0x35df2a(0x303),_0x35df2a(0x225),_0x35df2a(0x1dc),'Cancelled'],u=[_0x35df2a(0x26e),'Activity',_0x35df2a(0x318)],v=new Set([_0x35df2a(0x2a2),_0x35df2a(0x2c1),_0x35df2a(0x1ef),'challenged',_0x35df2a(0x269),_0x35df2a(0x324),_0x35df2a(0x264),_0x35df2a(0x380),_0x35df2a(0x21d),_0x35df2a(0x23c),'pending',_0x35df2a(0x2a6)]),S=new Set(['expired','payment_failed',_0x35df2a(0x2ba),'payment_reconciling']),P=new Set([_0x35df2a(0x2ba),'payment_reconciling']),x=0x7530;function f(_0x5aa1d9){const _0x459cde=_0x35df2a;return _0x5aa1d9[_0x459cde(0x373)]['filter'](_0x4b1d5f=>![_0x459cde(0x1dd),_0x459cde(0x210)]['includes'](_0x5aa1d9[_0x459cde(0x34f)])||[_0x4b1d5f[_0x459cde(0x27a)],_0x4b1d5f['id'],_0x4b1d5f[_0x459cde(0x359)]??''][_0x459cde(0x212)](_0x5ea46a=>_0x5ea46a[_0x459cde(0x254)]()[_0x459cde(0x253)](_0x5aa1d9['query'][_0x459cde(0x254)]()))?_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x249)||_0x5aa1d9['view']!==_0x459cde(0x1dd)?!0x0:_0x5aa1d9[_0x459cde(0x282)]==='Completed'?_0x4b1d5f[_0x459cde(0x24c)]==='completed':_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x1de)?_0x4b1d5f[_0x459cde(0x24c)]===_0x459cde(0x1c8):_0x5aa1d9['filter']===_0x459cde(0x303)?v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):![_0x459cde(0x2c8),_0x459cde(0x1c8)][_0x459cde(0x253)](_0x4b1d5f[_0x459cde(0x24c)])&&!v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):!0x1);}function p(){const _0xb82897=_0x35df2a;return Object['assign'](new Error(_0xb82897(0x23e)),{'code':'cancelled'});}function _0x1169(){const _0x116952=['canChangePayment','files','Run\x20diagnostics','selected','Preparing\x20local\x20LLM...','tools','receive','\x20is\x20required.','remove','explore','cancelled','unlink','Draft\x20saved','Understanding\x20your\x20request...','1.\x20Create\x20a\x20new\x20wallet\x20(empty,\x20add\x20funds\x20later)','exploreUpdates','Preparing\x20the\x20payment\x20review...','join','addTarget','No\x20wallet\x20found\x20on\x20this\x20computer.','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','configured','Task\x20published:\x20','Delete\x20wallet\x20·\x201\x20of\x202','Wallet\x20ready:\x20','Loading\x20files...','deleteDraft','Add\x20a\x20worker\x20target','formCancel','refreshExplore','Attention','tasks','Cancelled','Create\x20a\x20new\x20local\x20wallet','start','deleteTaskDraft','cycleFilter','From\x20encrypted\x20backup','Add\x20tool','workerMenu','chooseMenu','out','Search\x20tasks','dialog','showError','Pair\x20with\x20wallet','slice','Current\x20wallet:\x20','gas','quoted','What\x20would\x20you\x20like\x20to\x20change?','set','Welcome\x20to\x20Colony','1\x20/\x202\x20or\x20Up/down\x20·\x20Enter\x20choose\x20·\x20Esc\x20not\x20now','services','confirmReplacement','walletManagement','delete','\x0aOrder:\x20','colony\x20worker\x20','host','length','fields','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.','Transaction:\x20','message','canCancel','Checking\x20balances\x20on\x20all\x20networks...','Saving\x20encrypted\x20backup...','refresh','Backup\x20file\x20path','chainName','rpc','max','cursor','Request\x20changes\x20(new\x20paid\x20task)','logs','networkWorkers','Not\x20paid.\x20','Tool\x20ID','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','explorerUrl','workers','deliverables','some','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','detailTimer','restart','Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.','askResolve','sort','blocked','stage','Delete\x20draft?','more','running','ask','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','total','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','requestKey','choice','Add\x20target','Completed','Private\x20key\x20(hidden)','Install\x20background\x20service','findIndex','assign','fundingDialog','Worker:\x20','Explorer:\x20','Switching\x20wallet...','indexOf','saveQr','Skills','Keep\x20draft','pickPayment','The\x20wallet\x20key\x20is\x20encrypted\x20with\x20your\x20password\x20and\x20stays\x20on\x20this\x20computer.','add','refused','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','Payment\x20needs\x20review.','menuCancel','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','detail','job.open','executing','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.','scroll','coin','Checking\x20the\x20saved\x20order...','detailVersion','confirmResolve','runtime','confirm','name','walletBackup','change_payment','All','saveReceiveQr','Inspect\x20/\x20resume\x20saved\x20order','state','cancel','canDelete','Keep\x20request','Checking\x20balances\x20and\x20refreshing\x20prices...','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Downloading\x20verified\x20files...','includes','toLowerCase','dismissForm','funding_required','Remove\x20this\x20wallet\x20from\x20Colony?','repeat','walletMenu','submitForm','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','accepted','refreshWalletSelection','create','has','signal','closed','Open\x20Wallets','refreshRequest','submitted','install','refreshError','forget','Opening\x20draft...','funding','Delete\x20draft','setField','kind','deleteWallet','Overview','View\x20details','publishDraft','Review\x20saved\x20payment','move','\x20managed\x20targets\x20·\x20','min','abort','walletDelete','pending','Tools\x20&\x20credentials','reviewPayment','title','Add\x20funds\x20to\x20continue','Cancelling\x20request...','navigate','showPaymentProgress','revealPrivateKey','key','targets','filter','busy','Loading\x20','plan','Keyword\x20or\x20task\x20ID','identity','Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now','Save\x20recharge\x20QR\x20code','withFundingRetry','showForm','run','List\x20tools','QR\x20saved:\x20','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','close','map','network-worker','walletImport','update','job.continue','createWallet','Delete\x20local\x20record','Remove\x20RPC\x20endpoint','input','RPC\x20endpoints','You\x20need\x20a\x20wallet\x20to\x20pay\x20for\x20tasks.\x20Browsing\x20works\x20without\x20one.','managed-worker','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','Continue\x20draft','Worker\x20RPC\x20endpoints','Reason:\x20','Auto-refresh\x20failed:\x20','draft','query','claude','Import\x20wallet','admitting','action','Download','showOutcome','continueTask','...','receiveWallet','.\x20Press\x20b\x20to\x20back\x20up,\x20then\x20d\x20to\x20add\x20funds.','Task\x20actions','code','wallet','command','Worker\x20·\x20','blockers','pendingTransaction','useSelectedWallet','Back\x20up\x20encrypted\x20wallet','Linux\x20start\x20at\x20boot\x20(yes/no)','Loading\x20network\x20workers...','file','transaction_pending','Saved\x20','password','passwordReject','trim','Forget\x20credential','2.\x20Not\x20now\x20(browse\x20without\x20a\x20wallet)','created','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','concat','Status','error','paymentOptions','Enter\x20yes\x20or\x20no.','completed','port','reason','Worker\x20skills','whoami','Restore\x20wallet','subscribe','Wallet\x20management\x20·\x20all\x20wallets','Deleting\x20local\x20wallet...','walletPrivateKey','source','payWith','field','boot','\x20managed\x20targets\x20·\x20Network\x20unavailable\x20·\x20r\x20retry','flatMap','\x20on\x20','codex','value','test','requestPassword','Add\x20RPC','restoreSelectedId','pair','Continue','From\x20private\x20key','admitted','Back','list','locked','Add\x20skill','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','Cancel\x20request','stop','funded','listeners','register','wallets','\x20+\x20gas\x20≈\x20','selectWallet','result','draftId','terminal','service','menu','Worker\x20tools','jobId','walletRestore','deploy','Back\x20to\x20My\x20tasks','address','detailRequest','cancelAutoRefresh','form','taskMenu','search','chain','Add\x20funds','respond','Active','Remove\x20tool','Save\x20backup','cancelRequest','offerFirstWallet','payment','View\x20private\x20key','path','addFunds','walletReceive','status','--boot','Choose\x20an\x20output\x20directory.','loaded','autoRefresh','canResume','yes','publish','Skill\x20ID','No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).','Confirm\x20password','Files','help','loadDetail','extraTargets','hash','Set\x20local\x20wallet\x20password','walletSetup','extraAction','string','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Request\x20changes','serviceInstall','signed','toUpperCase','change','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','--runtime','values','fundingReceive','note','showMenu','paymentChain','updatedAt','worker','Restoring\x20wallet...','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','colony-receive.svg','Confirm\x20wallet\x20password','View\x20result\x20files','options','Download\x20files','Review\x20task','resume','transaction','questions','The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.','closeReceive','now','editDraft','operation','hasOwn','nextField','Remove\x20skill','Remove\x20RPC','restoreWallet','Backup\x20password','lastExploreRefresh','resumeOrder','push','mine','ETH','Cancel\x20this\x20request?','label','selection','lines','view','Restore\x20encrypted\x20wallet','Keep\x20wallet','get','formSubmit','Import\x20private\x20key\x20·\x20encrypted\x20locally','Check\x20balance\x20&\x20continue','Loading\x20older\x20tasks...','Use\x20at\x20least\x208\x20characters.','parent','searchText','chooseSupport','Saved\x20wallet','changeTab','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','Delete\x20wallet\x20·\x202\x20of\x202','Identity','doctor','throwIfAborted','Review\x20task\x20&\x20payment','autoPayment','workerCommand','createdAt','deleteRequest','Search','walletIsCurrent','View\x20logs','SSH\x20identity\x20file\x20(optional)','objective','clear','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.','Credential\x20name','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','getSnapshot','Unlink\x20worker','The\x20payment\x20result\x20is\x20not\x20final\x20yet.','items','backupWallet','Delete\x20wallet','Current','download','ethereum','\x20·\x20','detailLoading','saveDraft','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','Backup\x20saved:\x20','currentAddress','local','queued'];_0x1169=function(){return _0x116952;};return _0x1169();}function W(){const _0x5b7d97=_0x35df2a;return Object[_0x5b7d97(0x229)](new Error(_0x5b7d97(0x221)),{'code':_0x5b7d97(0x248)});}function T(_0x32a88e,_0x55bd58){const _0x5e6b98=_0x35df2a,{option:_0x3a019e}=_0x32a88e,_0x2f1d54=(_0x32a88e[_0x5e6b98(0x2d3)]==='IMD'?'':'\u2248\x20')+_0x42628b(_0x3a019e['payment'],_0x32a88e[_0x5e6b98(0x2d3)],{'up':!0x0}),_0x27cbaf=_0x55bd58&&_0x55bd58[_0x5e6b98(0x32d)]===_0x32a88e['paymentChain']&&_0x55bd58[_0x5e6b98(0x2d3)]===_0x32a88e['payWith'];return _0x32a88e[_0x5e6b98(0x2d3)]+_0x5e6b98(0x2d8)+_0x32a88e[_0x5e6b98(0x205)]+_0x5e6b98(0x379)+_0x2f1d54+_0x5e6b98(0x2ee)+_0x42628b(_0x3a019e[_0x5e6b98(0x1ee)],_0x5e6b98(0x34a),{'up':!0x0})+(_0x27cbaf?'\x20\xB7\x20current':'');}function A(_0x55ed9e){const _0x42ac54=_0x35df2a;if(!_0x55ed9e)return[];const _0xd44b=[];return _0x55ed9e['hash']&&_0xd44b[_0x42ac54(0x348)]('Transaction:\x20'+_0x55ed9e['hash']+(_0x55ed9e[_0x42ac54(0x26c)]?'\x20('+_0x55ed9e[_0x42ac54(0x26c)]+')':'')),_0x55ed9e[_0x42ac54(0x2ca)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x2a0)+_0x55ed9e[_0x42ac54(0x2ca)]),_0x55ed9e[_0x42ac54(0x20f)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x22c)+_0x55ed9e[_0x42ac54(0x20f)]),_0xd44b;}function E(_0x514591){const _0x36ffed=_0x35df2a,_0x232a1f=[_0x514591[_0x36ffed(0x1ff)]||_0x36ffed(0x372)];return _0x232a1f[_0x36ffed(0x348)](...A(_0x514591[_0x36ffed(0x339)])),_0x232a1f[_0x36ffed(0x348)](_0x36ffed(0x36d)),_0x232a1f[_0x36ffed(0x1cf)]('\x0a');}class _{constructor(_0x5ad583){const _0x471c8c=_0x35df2a;this[_0x471c8c(0x1f4)]=_0x5ad583,this[_0x471c8c(0x2eb)]=new Set(),this['state']={'view':_0x471c8c(0x1dd),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x471c8c(0x26e),'filter':_0x471c8c(0x249),'query':'','note':'','focus':_0x471c8c(0x2e4),'scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this[_0x471c8c(0x242)]=0x0,this[_0x471c8c(0x31b)]=[],this[_0x471c8c(0x261)]=!0x1,this['lastExploreRefresh']=0x0;}[_0x35df2a(0x2ce)]=_0x391932=>(this[_0x35df2a(0x2eb)][_0x35df2a(0x234)](_0x391932),()=>this[_0x35df2a(0x2eb)]['delete'](_0x391932));[_0x35df2a(0x370)]=()=>this[_0x35df2a(0x24c)];[_0x35df2a(0x294)](_0xe425f){const _0x31fe50=_0x35df2a;if(!this[_0x31fe50(0x261)]){this[_0x31fe50(0x24c)]={...this[_0x31fe50(0x24c)],..._0xe425f};for(const _0x304bfe of this[_0x31fe50(0x2eb)])_0x304bfe();}}[_0x35df2a(0x1c1)](){const _0x7c845d=_0x35df2a;return f(this[_0x7c845d(0x24c)])[this[_0x7c845d(0x24c)][_0x7c845d(0x1c1)]];}[_0x35df2a(0x1ea)](){const _0x1f85e=_0x35df2a;++this[_0x1f85e(0x242)],this['update']({'detail':{'output':this['state'][_0x1f85e(0x2c5)]??this[_0x1f85e(0x24c)][_0x1f85e(0x266)]},'detailLoading':!0x1,'focus':_0x1f85e(0x23a),'scroll':0x0,'tab':'Overview'});}[_0x35df2a(0x2fc)](){const _0x19d5ce=_0x35df2a;this[_0x19d5ce(0x263)]?.[_0x19d5ce(0x275)](),this[_0x19d5ce(0x263)]=null,this[_0x19d5ce(0x294)]({'refreshing':!0x1});}async[_0x35df2a(0x28c)](_0x2aeb20,_0x3f90aa){const _0x40641c=_0x35df2a;if(!this[_0x40641c(0x24c)][_0x40641c(0x283)]){this['cancelAutoRefresh'](),this[_0x40641c(0x33f)]=new AbortController(),this[_0x40641c(0x294)]({'busy':_0x2aeb20,'error':null,'refreshError':null,'notice':null});try{return await _0x3f90aa(this[_0x40641c(0x33f)][_0x40641c(0x260)]);}catch(_0x28abcc){_0x28abcc[_0x40641c(0x2af)]===_0x40641c(0x1c8)?(this[_0x40641c(0x294)]({'notice':_0x28abcc[_0x40641c(0x1ff)]}),this[_0x40641c(0x33e)]()):P[_0x40641c(0x25f)](_0x28abcc[_0x40641c(0x2af)])?this[_0x40641c(0x294)]({'error':E(_0x28abcc)}):this[_0x40641c(0x294)]({'error':_0x28abcc[_0x40641c(0x1ff)]});}finally{this[_0x40641c(0x294)]({'busy':null,'modelProgress':null});}}}async['navigate'](_0x377290){const _0x509829=_0x35df2a;this[_0x509829(0x24c)][_0x509829(0x283)]||(clearTimeout(this[_0x509829(0x214)]),this[_0x509829(0x2fb)]?.['abort'](),++this[_0x509829(0x242)],this[_0x509829(0x294)]({'view':_0x377290,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':'All','tab':_0x509829(0x26e),'scroll':0x0,'focus':_0x509829(0x2e4),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x509829(0x203)]());}async[_0x35df2a(0x203)]({notice:_0x39a047}={}){const _0x568e2d=_0x35df2a,_0x18f471=this[_0x568e2d(0x1c1)]()?.['id']??this[_0x568e2d(0x2de)];this[_0x568e2d(0x2de)]=void 0x0,await this[_0x568e2d(0x28c)](_0x568e2d(0x284)+this[_0x568e2d(0x24c)][_0x568e2d(0x34f)]+_0x568e2d(0x2ab),async _0x984c97=>{const _0x288897=_0x568e2d;let _0x391253;if(this['state'][_0x288897(0x34f)]===_0x288897(0x1dd))_0x391253=await this['services'][_0x288897(0x349)](_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x1c7))_0x391253=await this[_0x288897(0x1f4)][_0x288897(0x1c7)](this[_0x288897(0x24c)][_0x288897(0x2a3)],void 0x0,_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x210)){const _0x13048a=this['services'][_0x288897(0x281)](),_0x1adc9e=new Set(_0x13048a[_0x288897(0x291)](_0x411909=>_0x411909['id'])),_0x25a978=_0x13048a[_0x288897(0x2c3)](this[_0x288897(0x31b)]['filter'](_0x52ab04=>!_0x1adc9e['has'](_0x52ab04['id'])))[_0x288897(0x291)](_0x26e4a9=>({..._0x26e4a9,'kind':_0x288897(0x29c)}));this['update']({'items':_0x25a978,'selected':0x0,'note':_0x288897(0x2b8)});let _0x164086;try{_0x164086=await this[_0x288897(0x1f4)][_0x288897(0x20b)](_0x984c97);}catch(_0x397ece){throw this[_0x288897(0x294)]({'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x2d6)}),_0x397ece;}_0x391253={'items':_0x25a978[_0x288897(0x2c3)](_0x164086),'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x273)+_0x164086[_0x288897(0x1fb)]+'\x20network\x20workers\x20\xB7\x20availability,\x20free\x20slots,\x20ID\x20\xB7\x20r\x20refresh'};}else{const _0x53c6b1=await this['services']['wallet'](_0x984c97,_0x18f471,{'balances':!0x1}),_0x15fe1c=this[_0x288897(0x1f4)]['wallets']();!_0x15fe1c[_0x288897(0x1fb)]&&_0x53c6b1[_0x288897(0x1d3)]&&_0x15fe1c[_0x288897(0x348)]({'address':_0x53c6b1['address'],'active':!0x0,'locked':_0x53c6b1[_0x288897(0x2e5)]}),_0x391253={'items':_0x15fe1c[_0x288897(0x291)](_0xde629c=>({..._0xde629c,'id':_0xde629c['address'],'title':_0xde629c[_0x288897(0x2fa)]['slice'](0x0,0xa)+_0x288897(0x2ab)+_0xde629c[_0x288897(0x2fa)][_0x288897(0x1ec)](-0x8),'subtitle':_0xde629c['active']?_0x288897(0x376):_0x288897(0x35b)})),'note':'One\x20local\x20password\x20\xB7\x20u\x20use\x20selected\x20wallet','address':_0x53c6b1[_0x288897(0x37e)]??_0x53c6b1[_0x288897(0x2fa)]??null},this[_0x288897(0x294)]({'detail':_0x53c6b1,'scroll':0x0});}}}const _0x3d3c9d=_0x18f471??(this['state'][_0x288897(0x34f)]===_0x288897(0x2b0)?_0x391253['address']:void 0x0),_0x4232bb=Math[_0x288897(0x207)](0x0,f({...this[_0x288897(0x24c)],'items':_0x391253['items']})['findIndex'](_0x288c55=>_0x288c55['id']===_0x3d3c9d));this[_0x288897(0x294)]({'items':_0x391253[_0x288897(0x373)],'note':_0x391253[_0x288897(0x32b)],'cursor':_0x391253['cursor'],'total':_0x391253['total']??(_0x391253[_0x288897(0x208)]?null:_0x391253['items'][_0x288897(0x1fb)]),'since':_0x391253['since']??null,'selected':_0x4232bb,'address':Object[_0x288897(0x340)](_0x391253,_0x288897(0x2fa))?_0x391253['address']:this['state'][_0x288897(0x2fa)]}),this[_0x288897(0x24c)]['view']===_0x288897(0x1c7)&&(this[_0x288897(0x346)]=Date[_0x288897(0x33d)]());}),_0x39a047&&this[_0x568e2d(0x294)]({'notice':_0x39a047}),this[_0x568e2d(0x261)]||await this[_0x568e2d(0x31a)](this[_0x568e2d(0x24c)]['view']===_0x568e2d(0x2b0));}async[_0x35df2a(0x311)](){const _0x3061ad=_0x35df2a,_0x36dc4e=this['state'];this['closed']||_0x36dc4e['busy']||_0x36dc4e['refreshing']||_0x36dc4e[_0x3061ad(0x37a)]||_0x36dc4e[_0x3061ad(0x2fd)]||_0x36dc4e[_0x3061ad(0x245)]||_0x36dc4e[_0x3061ad(0x2f4)]||_0x36dc4e[_0x3061ad(0x319)]||_0x36dc4e['privateKeyView']||(_0x36dc4e[_0x3061ad(0x34f)]==='explore'&&_0x36dc4e['since']!==null&&Date['now']()-this[_0x3061ad(0x346)]>=x?await this[_0x3061ad(0x1db)]():_0x36dc4e['view']===_0x3061ad(0x1dd)&&!_0x36dc4e[_0x3061ad(0x2c5)]&&[_0x3061ad(0x21d),'executing',_0x3061ad(0x380),_0x3061ad(0x277)][_0x3061ad(0x253)](this[_0x3061ad(0x1c1)]()?.[_0x3061ad(0x24c)])&&await this['loadDetail'](!0x0));}async[_0x35df2a(0x1db)](){const _0x476a0e=_0x35df2a,_0x17dc9d=new AbortController();this[_0x476a0e(0x263)]=_0x17dc9d,this['lastExploreRefresh']=Date['now'](),this[_0x476a0e(0x294)]({'refreshing':!0x0});try{const _0x48b120=await this['services'][_0x476a0e(0x1cd)](this[_0x476a0e(0x24c)][_0x476a0e(0x2a3)],this[_0x476a0e(0x24c)]['since'],_0x17dc9d[_0x476a0e(0x260)]);if(this[_0x476a0e(0x263)]!==_0x17dc9d||this[_0x476a0e(0x261)])return;const _0x33f10b=this[_0x476a0e(0x1c1)]()?.['id'],_0x4d734e=this[_0x476a0e(0x24c)][_0x476a0e(0x373)]['at'](-0x1)?.['createdAt'],_0x1391a2=new Map(this[_0x476a0e(0x24c)]['items'][_0x476a0e(0x291)](_0x4ca31c=>[_0x4ca31c['id'],_0x4ca31c]));for(const _0x2b6ec6 of _0x48b120[_0x476a0e(0x373)]){const _0xb1a806=_0x1391a2[_0x476a0e(0x352)](_0x2b6ec6['id']);_0xb1a806&&_0x2b6ec6[_0x476a0e(0x32e)]<_0xb1a806[_0x476a0e(0x32e)]||(_0x1391a2['has'](_0x2b6ec6['id'])||!_0x4d734e||_0x2b6ec6[_0x476a0e(0x365)]>=_0x4d734e)&&_0x1391a2[_0x476a0e(0x1f1)](_0x2b6ec6['id'],_0x2b6ec6);}const _0x8c4c76=[..._0x1391a2['values']()][_0x476a0e(0x218)]((_0x36abae,_0x5ea0ae)=>_0x5ea0ae[_0x476a0e(0x365)]['localeCompare'](_0x36abae[_0x476a0e(0x365)])),_0x3cde12=Math['max'](0x0,_0x8c4c76[_0x476a0e(0x228)](_0x4c98ac=>_0x4c98ac['id']===_0x33f10b));this[_0x476a0e(0x294)]({'items':_0x8c4c76,'selected':_0x3cde12,'since':_0x48b120['since'],'total':_0x48b120[_0x476a0e(0x220)]??(this[_0x476a0e(0x24c)][_0x476a0e(0x208)]?null:_0x8c4c76[_0x476a0e(0x1fb)]),'refreshError':null}),await this[_0x476a0e(0x31a)](!0x0);}catch(_0x59a89e){this[_0x476a0e(0x263)]===_0x17dc9d&&!this[_0x476a0e(0x261)]&&this['update']({'refreshError':_0x476a0e(0x2a1)+_0x59a89e['message']});}finally{this[_0x476a0e(0x263)]===_0x17dc9d&&(this[_0x476a0e(0x263)]=null,this[_0x476a0e(0x294)]({'refreshing':!0x1}));}}async['more'](){const _0x4a13b1=_0x35df2a;this[_0x4a13b1(0x24c)][_0x4a13b1(0x34f)]!==_0x4a13b1(0x1c7)||!this['state'][_0x4a13b1(0x208)]||await this[_0x4a13b1(0x28c)](_0x4a13b1(0x356),async _0x26dd4c=>{const _0x54c0ef=_0x4a13b1,_0x1cd2c5=await this[_0x54c0ef(0x1f4)][_0x54c0ef(0x1c7)](this[_0x54c0ef(0x24c)][_0x54c0ef(0x2a3)],this[_0x54c0ef(0x24c)][_0x54c0ef(0x208)],_0x26dd4c),_0x48c49b=new Set(this[_0x54c0ef(0x24c)]['items'][_0x54c0ef(0x291)](_0x39cb43=>_0x39cb43['id'])),_0x2955af=this[_0x54c0ef(0x24c)][_0x54c0ef(0x373)][_0x54c0ef(0x2c3)](_0x1cd2c5[_0x54c0ef(0x373)][_0x54c0ef(0x282)](_0x1b7b38=>!_0x48c49b[_0x54c0ef(0x25f)](_0x1b7b38['id'])));this[_0x54c0ef(0x294)]({'items':_0x2955af,'cursor':_0x1cd2c5[_0x54c0ef(0x208)],'total':this[_0x54c0ef(0x24c)][_0x54c0ef(0x220)]??(_0x1cd2c5[_0x54c0ef(0x208)]?null:_0x2955af['length'])});});}async[_0x35df2a(0x31a)](_0x55c61a=!0x1){const _0x32526d=_0x35df2a;clearTimeout(this[_0x32526d(0x214)]),this[_0x32526d(0x214)]=null;const _0x41341d=this[_0x32526d(0x1c1)]();if(this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x2b0)&&!_0x41341d)return;const _0x5a1d4e=++this[_0x32526d(0x242)];if(this[_0x32526d(0x2fb)]?.[_0x32526d(0x275)](),this[_0x32526d(0x2fb)]=new AbortController(),this[_0x32526d(0x294)]({'detail':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23a)]:null,'result':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x2f0)]:null,'detailLoading':!!_0x41341d,'scroll':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23f)]:0x0}),!!_0x41341d)try{const _0x4eb46d=this['state'][_0x32526d(0x34f)]===_0x32526d(0x2b0)?await this['services']['wallet'](this[_0x32526d(0x2fb)]['signal'],_0x41341d[_0x32526d(0x2fa)]):this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x210)?_0x41341d['kind']===_0x32526d(0x292)?_0x41341d:_0x41341d['installed']?await this[_0x32526d(0x1f4)][_0x32526d(0x2b1)]([_0x32526d(0x32f),_0x32526d(0x30d)],_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]):{'notInstalled':!0x0}:await this[_0x32526d(0x1f4)][_0x32526d(0x23a)](_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]);if(_0x5a1d4e===this['detailVersion']){const _0x373249=_0x4eb46d[_0x32526d(0x24c)]??(_0x41341d['jobId']?void 0x0:_0x4eb46d['status']),_0x29a5fe=this[_0x32526d(0x24c)][_0x32526d(0x373)][_0x32526d(0x291)](_0x27d8f5=>_0x27d8f5['id']===_0x41341d['id']&&_0x373249?{..._0x27d8f5,'state':_0x373249,..._0x4eb46d[_0x32526d(0x32e)]?{'updatedAt':_0x4eb46d['updatedAt']}:{},..._0x32526d(0x200)in _0x4eb46d?{'canCancel':_0x4eb46d[_0x32526d(0x200)],'canDelete':_0x4eb46d[_0x32526d(0x24e)],'canResume':_0x4eb46d[_0x32526d(0x312)]}:{}}:_0x27d8f5),_0x80740=f({...this['state'],'items':_0x29a5fe})['findIndex'](_0x38ff8e=>_0x38ff8e['id']===_0x41341d['id']);this[_0x32526d(0x294)]({'detail':_0x80740<0x0?null:_0x4eb46d,'detailLoading':!0x1,'items':_0x29a5fe,'selected':Math[_0x32526d(0x207)](0x0,_0x80740)}),_0x80740<0x0&&this['loadDetail']();}}catch(_0x19691c){_0x5a1d4e===this[_0x32526d(0x242)]&&this[_0x32526d(0x294)]({'detailLoading':!0x1,'error':_0x19691c['message']});}}[_0x35df2a(0x272)](_0x4193de){const _0x416a50=_0x35df2a,_0x39b1c2=f(this[_0x416a50(0x24c)])['length'],_0x3bc74d=Math[_0x416a50(0x207)](0x0,Math[_0x416a50(0x274)](_0x39b1c2-0x1,this[_0x416a50(0x24c)][_0x416a50(0x1c1)]+_0x4193de));_0x3bc74d!==this[_0x416a50(0x24c)][_0x416a50(0x1c1)]&&(clearTimeout(this[_0x416a50(0x214)]),++this[_0x416a50(0x242)],this[_0x416a50(0x2fb)]?.[_0x416a50(0x275)](),this[_0x416a50(0x294)]({'selected':_0x3bc74d,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x416a50(0x24c)][_0x416a50(0x34f)]==='workers'?this['loadDetail']():this[_0x416a50(0x214)]=setTimeout(()=>{const _0x46a9f6=_0x416a50;this[_0x46a9f6(0x31a)]();},0x78)),_0x4193de>0x0&&_0x3bc74d===_0x39b1c2-0x1&&this[_0x416a50(0x21c)]();}[_0x35df2a(0x1e2)](){const _0x53b7a9=_0x35df2a;this[_0x53b7a9(0x294)]({'filter':m[(m[_0x53b7a9(0x22e)](this[_0x53b7a9(0x24c)][_0x53b7a9(0x282)])+0x1)%m['length']],'selected':0x0}),this[_0x53b7a9(0x31a)]();}async[_0x35df2a(0x35c)](_0x3f9f50){const _0x3efcbc=_0x35df2a,_0x54dd6d=u[(u[_0x3efcbc(0x22e)](this[_0x3efcbc(0x24c)]['tab'])+_0x3f9f50+u[_0x3efcbc(0x1fb)])%u[_0x3efcbc(0x1fb)]];this[_0x3efcbc(0x294)]({'tab':_0x54dd6d,'scroll':0x0}),_0x54dd6d===_0x3efcbc(0x318)&&await this[_0x3efcbc(0x1bf)]();}async[_0x35df2a(0x1bf)](){const _0x1dd1fd=_0x35df2a,_0x48b8f5=this[_0x1dd1fd(0x1c1)]();_0x48b8f5?.['jobId']&&(this[_0x1dd1fd(0x214)]&&this[_0x1dd1fd(0x31a)](!0x0),this[_0x1dd1fd(0x294)]({'tab':_0x1dd1fd(0x318),'focus':_0x1dd1fd(0x23a),'scroll':0x0}),await this[_0x1dd1fd(0x28c)](_0x1dd1fd(0x1d7),async _0x2fc973=>{const _0x1e0161=_0x1dd1fd;this[_0x1e0161(0x294)]({'result':await this[_0x1e0161(0x1f4)][_0x1e0161(0x2f0)](_0x48b8f5[_0x1e0161(0x2f6)],_0x2fc973)});}));}['showForm'](_0x2b1efb,_0x445bdf,_0x3cf9f8,{onCancel:_0xd13cf6,submit:_0x27ffc4=_0x35df2a(0x2e0)}={}){const _0xb43c5c=_0x35df2a;this[_0xb43c5c(0x2fc)](),this[_0xb43c5c(0x353)]=_0x3cf9f8,this[_0xb43c5c(0x1da)]=_0xd13cf6,this['update']({'form':{'title':_0x2b1efb,'fields':_0x445bdf,'values':Object['fromEntries'](_0x445bdf['map'](_0x431f9d=>[_0x431f9d['name'],_0x431f9d[_0xb43c5c(0x2da)]??''])),'field':0x0,'submit':_0x27ffc4,'error':null},'menu':null});}[_0x35df2a(0x26b)](_0x1ee384){const _0x25b8b2=_0x35df2a,_0x436ca4=this[_0x25b8b2(0x24c)]['form'],_0x3755b8=_0x436ca4[_0x25b8b2(0x1fc)][_0x436ca4[_0x25b8b2(0x2d4)]][_0x25b8b2(0x246)];this[_0x25b8b2(0x294)]({'form':{..._0x436ca4,'values':{..._0x436ca4[_0x25b8b2(0x329)],[_0x3755b8]:_0x1ee384},'error':null}});}[_0x35df2a(0x341)](_0x2703b1=!0x1){const _0x5caa48=_0x35df2a,_0x508866=this[_0x5caa48(0x24c)][_0x5caa48(0x2fd)];this[_0x5caa48(0x294)]({'form':{..._0x508866,'field':(_0x508866['field']+(_0x2703b1?-0x1:0x1)+_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)])%_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)]}});}async[_0x35df2a(0x25a)](){const _0x2d00f0=_0x35df2a,{values:_0xd7f802}=this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)];try{await this[_0x2d00f0(0x353)](_0xd7f802);}catch(_0x1ab736){this[_0x2d00f0(0x294)]({'form':{...this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)],'error':_0x1ab736[_0x2d00f0(0x1ff)]}});}}[_0x35df2a(0x255)](){const _0x32876c=_0x35df2a,_0x4a5fea=this[_0x32876c(0x1da)];this[_0x32876c(0x294)]({'form':null}),_0x4a5fea&&_0x4a5fea();}[_0x35df2a(0x2ff)](){const _0xf35a3f=_0x35df2a,_0x3f70d9=this[_0xf35a3f(0x24c)][_0xf35a3f(0x34f)]===_0xf35a3f(0x210);this[_0xf35a3f(0x28b)](_0x3f70d9?'Search\x20workers':_0xf35a3f(0x1e8),[{'name':_0xf35a3f(0x2a3),'label':_0x3f70d9?'Worker\x20ID,\x20runtime\x20or\x20skill':_0xf35a3f(0x286),'value':this['state']['query']}],async({query:_0x1fdf1a})=>{const _0x2b87d1=_0xf35a3f;this[_0x2b87d1(0x294)]({'query':_0x1fdf1a,'selected':0x0,'form':null}),this['state'][_0x2b87d1(0x34f)]==='explore'?await this[_0x2b87d1(0x203)]():await this[_0x2b87d1(0x31a)]();},{'submit':_0xf35a3f(0x367)});}['create'](_0x166aef=null){const _0x406c3e=_0x35df2a;this['draft']={'id':_0x142cc6(),'objective':'','parent':_0x166aef},this[_0x406c3e(0x33e)]();}[_0x35df2a(0x2aa)](){const _0x12d343=_0x35df2a,_0x5cdea9=this[_0x12d343(0x1c1)]();this[_0x12d343(0x24c)]['view']!==_0x12d343(0x1dd)||!_0x5cdea9?.[_0x12d343(0x2f6)]||this[_0x12d343(0x25e)](_0x5cdea9[_0x12d343(0x2f6)]);}[_0x35df2a(0x33e)](){const _0x52d7d6=_0x35df2a;this[_0x52d7d6(0x2a2)]&&(this['showForm'](this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x322):'Create\x20a\x20task',[{'name':'objective','label':this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x1f0):'What\x20would\x20you\x20like\x20to\x20get\x20done?','value':this[_0x52d7d6(0x2a2)]['objective'],'placeholder':_0x52d7d6(0x37c)}],async({objective:_0x1710e8})=>{const _0x1df2b8=_0x52d7d6;if(!_0x1710e8[_0x1df2b8(0x2be)]())throw new Error(_0x1df2b8(0x25b));const _0x14b81b=_0x1710e8[_0x1df2b8(0x2be)]()!==this[_0x1df2b8(0x2a2)][_0x1df2b8(0x36b)];this[_0x1df2b8(0x2a2)]={...this[_0x1df2b8(0x2a2)],'objective':_0x1710e8[_0x1df2b8(0x2be)](),..._0x14b81b&&this[_0x1df2b8(0x2a2)][_0x1df2b8(0x222)]?{'id':_0x142cc6(),'createdAt':void 0x0}:{},..._0x14b81b?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x1df2b8(0x294)]({'form':null}),await this[_0x1df2b8(0x270)]();},{'submit':_0x52d7d6(0x337)}),this[_0x52d7d6(0x294)]({'form':{...this[_0x52d7d6(0x24c)]['form'],'hint':_0x52d7d6(0x216)}}));}['ask'](_0x15c919){return new Promise(_0x544300=>{const _0x34d334=_0x35aa;this[_0x34d334(0x217)]=_0x544300,this[_0x34d334(0x28b)]('A\x20little\x20more\x20information',_0x15c919[_0x34d334(0x291)]((_0x1fefa6,_0x5f38ae)=>({'name':String(_0x5f38ae),'label':_0x1fefa6})),_0x389c70=>{const _0x11fe4f=_0x34d334;this[_0x11fe4f(0x294)]({'form':null}),this[_0x11fe4f(0x217)]=null,_0x544300(Object[_0x11fe4f(0x329)](_0x389c70));},{'onCancel':()=>{const _0x128709=_0x34d334;this[_0x128709(0x217)]=null,_0x544300([]);}});});}[_0x35df2a(0x245)](_0x588072){return new Promise(_0x33ba2f=>{const _0x5cfd4b=_0x35aa;this[_0x5cfd4b(0x243)]=_0x33ba2f;const _0x4a7da3=_0x588072[_0x5cfd4b(0x34e)]??(_0x588072[_0x5cfd4b(0x1ff)]!==void 0x0?[String(_0x588072[_0x5cfd4b(0x1ff)])]:[]);this[_0x5cfd4b(0x294)]({'confirm':{..._0x588072,'lines':_0x4a7da3,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x373bef){const _0x401ea4=_0x35df2a,_0x44a576=this['state'][_0x401ea4(0x245)],_0x1cd3f3=_0x44a576[_0x401ea4(0x31f)]?0x3:0x2,_0x31bcd2=(_0x44a576[_0x401ea4(0x34d)]+_0x373bef+_0x1cd3f3)%_0x1cd3f3;this[_0x401ea4(0x294)]({'confirm':{..._0x44a576,'selection':_0x31bcd2,'accepted':_0x31bcd2===_0x1cd3f3-0x1}});}['submitConfirmation'](){const _0x32c720=_0x35df2a,_0x412d31=this[_0x32c720(0x24c)][_0x32c720(0x245)];_0x412d31[_0x32c720(0x31f)]&&_0x412d31[_0x32c720(0x34d)]===0x1?_0x412d31[_0x32c720(0x31f)][_0x32c720(0x28c)]():this[_0x32c720(0x302)](_0x412d31[_0x32c720(0x25c)]);}async[_0x35df2a(0x1f5)](_0x2bb8da){const _0x26b003=_0x35df2a;if(!await this[_0x26b003(0x245)]({'title':'Update\x20network\x20fee','message':_0x2bb8da?.[_0x26b003(0x1ff)]??''}))throw p();}[_0x35df2a(0x302)](_0x109160){const _0x52bec5=_0x35df2a,_0x245b36=this[_0x52bec5(0x243)];this[_0x52bec5(0x243)]=null,this['update']({'confirm':null}),_0x245b36(_0x109160);}[_0x35df2a(0x279)](_0x43b8b2={}){return async _0x18e255=>{const _0x4d8094=_0x35aa,_0x29da22=await this[_0x4d8094(0x245)]({'title':_0x4d8094(0x362),'payment':_0x512502(_0x18e255),'extraAction':{'label':'Change\x20payment','run':()=>this['respond'](_0x4d8094(0x326))},..._0x43b8b2});if(_0x29da22===_0x4d8094(0x326))throw W();if(!_0x29da22)throw p();};}async[_0x35df2a(0x363)]({action:_0x3f825d,signal:_0x44be6c,prefer:_0x381d2f}){const _0x3f5fb=_0x35df2a,_0x594531=await this[_0x3f5fb(0x28a)](()=>this[_0x3f5fb(0x1f4)]['checkTaskWallet']({'action':_0x3f825d,'signal':_0x44be6c,'prefer':_0x381d2f}));return{'choice':_0x594531,'payment':{'paymentChain':_0x594531['paymentChain'],'payWith':_0x594531[_0x3f5fb(0x2d3)]}};}async['pickPayment']({action:_0x29b8c6,signal:_0x37c14d,current:_0x140b25}){const _0x18422d=_0x35df2a;this['update']({'busy':'Checking\x20balances\x20on\x20all\x20networks...'});const {networks:_0x3a3c77}=await this[_0x18422d(0x1f4)][_0x18422d(0x2c6)]({'action':_0x29b8c6,'signal':_0x37c14d}),_0x51a712=_0x3a3c77[_0x18422d(0x2d7)](_0x2de376=>(_0x2de376[_0x18422d(0x335)]??[])[_0x18422d(0x282)](_0x579137=>_0x579137[_0x18422d(0x2ea)])[_0x18422d(0x291)](_0x97b91d=>({'paymentChain':_0x2de376[_0x18422d(0x280)],'payWith':_0x97b91d[_0x18422d(0x240)],'chainName':_0x2de376[_0x18422d(0x205)],'option':_0x97b91d})));return new Promise(_0x2998b0=>{const _0x21b4ab=_0x18422d,_0x30ef13=_0x51a712['map'](_0x34f9ce=>({'label':T(_0x34f9ce,_0x140b25),'run':()=>_0x2998b0({'paymentChain':_0x34f9ce['paymentChain'],'payWith':_0x34f9ce[_0x21b4ab(0x2d3)]})}));_0x30ef13[_0x21b4ab(0x1fb)]||_0x30ef13[_0x21b4ab(0x348)]({'label':_0x21b4ab(0x29d),'run':()=>_0x2998b0(_0x140b25)}),this[_0x21b4ab(0x32c)](_0x51a712[_0x21b4ab(0x1fb)]>0x1?_0x21b4ab(0x21f):_0x21b4ab(0x288),_0x30ef13,{'onCancel':()=>_0x2998b0(_0x140b25)});});}async['publishDraft'](){const _0x1af6dc=_0x35df2a,_0x63b8c=await this[_0x1af6dc(0x28c)]('Checking\x20balances\x20on\x20all\x20networks...',async _0x1cfca5=>{const _0x76e6c6=_0x1af6dc,_0x1e8c44=this[_0x76e6c6(0x2a2)];_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44));const _0xa3774b=_0x1e8c44['parent']?_0x76e6c6(0x295):'job.open';let _0xe3ed58;try{if(!_0x1e8c44[_0x76e6c6(0x222)]){const _0xd733a4=await this[_0x76e6c6(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44['payment']});_0xe3ed58=_0xd733a4[_0x76e6c6(0x223)],_0x1e8c44['payment']=_0xd733a4['payment'];}}catch(_0x1959af){if(_0x1959af[_0x76e6c6(0x2af)]!=='wallet_required')throw _0x1959af;return{'status':_0x76e6c6(0x2a2),'setupWallet':await this['confirm']({'title':_0x76e6c6(0x1ca),'lines':[_0x76e6c6(0x239),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':_0x76e6c6(0x262),'cancelLabel':_0x76e6c6(0x2f9)}),'draftId':_0x1e8c44['id']};}this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1cb)});const _0x148871=_0x1e8c44['parent']?await this['services'][_0x76e6c6(0x23a)]({'jobId':_0x1e8c44['parent']},_0x1cfca5):null,_0x3d4e66=_0x1e8c44[_0x76e6c6(0x285)]??await this[_0x76e6c6(0x1f4)][_0x76e6c6(0x285)]({'objective':_0x1e8c44[_0x76e6c6(0x36b)],'parent':_0x148871,'signal':_0x1cfca5,'ask':_0x222d72=>this[_0x76e6c6(0x21e)](_0x222d72),'onProgress':_0x423b5d=>{const _0x2292c6=_0x76e6c6;this[_0x2292c6(0x294)](_0x423b5d[_0x2292c6(0x21a)]===_0x2292c6(0x310)?{'busy':_0x2292c6(0x1cb),'modelProgress':null}:{'busy':_0x2292c6(0x1c2),'modelProgress':_0x423b5d});}});if(_0x1cfca5[_0x76e6c6(0x361)](),!_0x3d4e66[_0x76e6c6(0x299)])throw new Error(_0x3d4e66[_0x76e6c6(0x33a)]['join']('\x0a')||'This\x20request\x20is\x20not\x20supported.');_0x1e8c44[_0x76e6c6(0x285)]=_0x3d4e66,_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44)),this[_0x76e6c6(0x294)]({'busy':'Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...'});let _0x20a990=!0x1;const _0x49d81b=async _0x4d6cac=>{const _0x53670d=_0x76e6c6;if(_0x20a990){const _0x183546=await this[_0x53670d(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44[_0x53670d(0x308)]});_0xe3ed58=_0x183546[_0x53670d(0x223)],_0x1e8c44[_0x53670d(0x308)]=_0x183546[_0x53670d(0x308)],_0x4d6cac={..._0x4d6cac,'paymentChain':_0x1e8c44[_0x53670d(0x308)][_0x53670d(0x32d)],'payWith':_0x1e8c44['payment']['payWith'],'expectedWallet':_0xe3ed58[_0x53670d(0x2fa)]},_0x20a990=!0x1;}try{return await this[_0x53670d(0x1f4)][_0x53670d(0x314)](_0x4d6cac);}catch(_0x22b759){throw _0x22b759[_0x53670d(0x2af)]===_0x53670d(0x256)&&_0x22b759['funding']?.[_0x53670d(0x1be)]&&(_0x20a990=!0x0),_0x22b759;}};for(;;)try{const _0x5cc1d1=await this[_0x76e6c6(0x28a)](()=>_0x49d81b({'input':_0x3d4e66['input'],'action':_0xa3774b,'paymentChain':_0x1e8c44[_0x76e6c6(0x308)]?.[_0x76e6c6(0x32d)],'payWith':_0x1e8c44[_0x76e6c6(0x308)]?.['payWith'],'expectedWallet':_0xe3ed58?.[_0x76e6c6(0x2fa)],'requestKey':_0x1e8c44[_0x76e6c6(0x222)]??_0x1e8c44['id'],'onSaved':async _0x4b611c=>{const _0x4f05ed=_0x76e6c6;_0x1e8c44[_0x4f05ed(0x222)]=_0x4b611c[_0x4f05ed(0x222)],await this[_0x4f05ed(0x1f4)][_0x4f05ed(0x1d8)](_0x1e8c44['id']);},'plan':{'summary':_0x3d4e66['summary'],'deliverables':_0x3d4e66[_0x76e6c6(0x211)]},'signal':_0x1cfca5,'chooseSupport':_0x5ed051=>this[_0x76e6c6(0x35a)](_0x5ed051),'onProgress':_0x771f95=>this[_0x76e6c6(0x27e)](_0x771f95),'confirmReplacement':_0x3408e2=>this[_0x76e6c6(0x1f5)](_0x3408e2),'confirm':this['reviewPayment']()}));return this['showOutcome'](_0x5cc1d1),_0x5cc1d1;}catch(_0x56bbdb){if(_0x56bbdb[_0x76e6c6(0x2af)]!==_0x76e6c6(0x248))throw _0x56bbdb;_0x1e8c44[_0x76e6c6(0x308)]=await this['pickPayment']({'action':_0xa3774b,'signal':_0x1cfca5,'current':_0x1e8c44[_0x76e6c6(0x308)]}),this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1ce)});}});if(!this['closed']&&_0x63b8c?.[_0x1af6dc(0x30d)]===_0x1af6dc(0x2a2))await this[_0x1af6dc(0x27d)](_0x63b8c['setupWallet']?_0x1af6dc(0x2b0):_0x1af6dc(0x1dd)),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x2e7)}),_0x63b8c['setupWallet']&&this[_0x1af6dc(0x1f6)]();else{if(!this[_0x1af6dc(0x261)]&&_0x63b8c?.['status']===_0x1af6dc(0x2e2)&&_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]){await this['navigate'](_0x1af6dc(0x1dd));const _0x20dc61=this[_0x1af6dc(0x24c)][_0x1af6dc(0x373)][_0x1af6dc(0x228)](_0x57a979=>_0x57a979[_0x1af6dc(0x2f6)]===_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]);_0x20dc61>=0x0&&(this[_0x1af6dc(0x294)]({'selected':_0x20dc61}),await this['loadDetail']()),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x1d4)+_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]});}}}['showPaymentProgress'](_0x2d1e15){const _0xa6c17b=_0x35df2a,_0x36a137=typeof _0x2d1e15?.[_0xa6c17b(0x1ff)]==_0xa6c17b(0x320)?_0x2d1e15[_0xa6c17b(0x1ff)][_0xa6c17b(0x2be)]():'';_0x36a137&&this['update']({'busy':_0x36a137});}async[_0x35df2a(0x28a)](_0x645493){const _0x3602f4=_0x35df2a;for(;;)try{return await _0x645493();}catch(_0x464d56){if(_0x464d56[_0x3602f4(0x2af)]!==_0x3602f4(0x256))throw _0x464d56;if(!await this[_0x3602f4(0x245)]({'title':_0x3602f4(0x27b),'lines':_0x58ce5d(_0x464d56[_0x3602f4(0x269)]),'acceptLabel':_0x3602f4(0x355),'cancelLabel':_0x3602f4(0x2e3),'extraAction':{'label':_0x3602f4(0x301),'run':()=>this[_0x3602f4(0x30b)](_0x464d56[_0x3602f4(0x269)])}}))throw p();this[_0x3602f4(0x294)]({'busy':_0x3602f4(0x250)});}}['showOutcome']({state:_0x574961,status:_0x49311f,check:_0x53e3b4}){const _0x36b4b3=_0x35df2a;if(_0x49311f===_0x36b4b3(0x2e2)&&_0x574961[_0x36b4b3(0x2f6)])this[_0x36b4b3(0x2a2)]=null,this['update']({'notice':'Task\x20published:\x20'+_0x574961[_0x36b4b3(0x2f6)]+_0x36b4b3(0x213)});else{if(_0x49311f===_0x36b4b3(0x219))this[_0x36b4b3(0x294)]({'error':_0x36b4b3(0x20c)+_0x53e3b4[_0x36b4b3(0x2b3)][_0x36b4b3(0x291)](_0x273741=>_0x273741[_0x36b4b3(0x23a)]??_0x273741['code'])[_0x36b4b3(0x1cf)]('\x0a')});else{if(_0x49311f===_0x36b4b3(0x235))this['update']({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x574961['refusalProblems']??[])['map'](_0x33a2a7=>_0x33a2a7['detail']??_0x33a2a7[_0x36b4b3(0x2af)])[_0x36b4b3(0x1cf)]('\x0a')+_0x36b4b3(0x1f8)+_0x574961['orderId']});else{if(S[_0x36b4b3(0x25f)](_0x49311f)){const _0x30aa1b=[_0x36b4b3(0x237),_0x36b4b3(0x239),_0x36b4b3(0x321)],_0x5d3946=_0x574961?.[_0x36b4b3(0x2b4)]??_0x574961?.[_0x36b4b3(0x339)];_0x5d3946?.['hash']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x1fe)+_0x5d3946[_0x36b4b3(0x31c)]),_0x5d3946?.['explorerUrl']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x22c)+_0x5d3946[_0x36b4b3(0x20f)]),this['update']({'error':_0x30aa1b['join']('\x0a')});}else this['update']({'error':'Order\x20status:\x20'+_0x49311f+_0x36b4b3(0x327)});}}}}async[_0x35df2a(0x347)](){const _0x25469d=_0x35df2a,_0x3a1f70=this[_0x25469d(0x1c1)]();if(this[_0x25469d(0x24c)]['view']===_0x25469d(0x1dd)&&_0x3a1f70?.[_0x25469d(0x2f1)]){const _0x41b0d3=await this[_0x25469d(0x28c)](_0x25469d(0x268),()=>this[_0x25469d(0x1f4)]['loadDraft'](_0x3a1f70['draftId']));_0x41b0d3&&(this[_0x25469d(0x2a2)]=_0x41b0d3,this[_0x25469d(0x33e)]());return;}this[_0x25469d(0x24c)][_0x25469d(0x34f)]!==_0x25469d(0x1dd)||!_0x3a1f70?.[_0x25469d(0x222)]||_0x3a1f70[_0x25469d(0x2f6)]||!_0x3a1f70[_0x25469d(0x312)]||(this['draft']=null,await this[_0x25469d(0x28c)](_0x25469d(0x241),async _0x43dea0=>{const _0xa5863b=_0x25469d;let _0x5f425f,_0x241115,_0x13e46e;if(_0x3a1f70['canCancel']){const _0x5148d5=await this['services'][_0xa5863b(0x23a)](_0x3a1f70,_0x43dea0);_0x13e46e=_0x5148d5[_0xa5863b(0x2a7)]??_0xa5863b(0x23b),this[_0xa5863b(0x294)]({'busy':_0xa5863b(0x201)}),_0x5f425f=(await this[_0xa5863b(0x363)]({'action':_0x13e46e,'signal':_0x43dea0,'prefer':{'paymentChain':_0x5148d5[_0xa5863b(0x32d)]??_0xa5863b(0x378),'payWith':_0x5148d5[_0xa5863b(0x2d3)]??'IMD'}}))[_0xa5863b(0x308)],_0x241115=this[_0xa5863b(0x279)]({'title':_0xa5863b(0x271)});}let _0x20048c=!0x1;const _0x15bc87=async()=>{const _0x4604a7=_0xa5863b;_0x20048c&&(_0x5f425f=(await this['autoPayment']({'action':_0x13e46e,'signal':_0x43dea0,'prefer':_0x5f425f}))[_0x4604a7(0x308)],_0x20048c=!0x1);try{return await this['services'][_0x4604a7(0x338)](_0x3a1f70,_0x3a9b86=>this[_0x4604a7(0x245)](_0x3a9b86),_0x43dea0,_0x3950dd=>this[_0x4604a7(0x35a)](_0x3950dd),_0x23a67f=>this['showPaymentProgress'](_0x23a67f),_0x577791=>this[_0x4604a7(0x1f5)](_0x577791),{'payment':_0x5f425f,'review':_0x241115});}catch(_0x394bbc){throw _0x3a1f70[_0x4604a7(0x200)]&&_0x394bbc['code']===_0x4604a7(0x256)&&_0x394bbc[_0x4604a7(0x269)]?.[_0x4604a7(0x1be)]&&(_0x20048c=!0x0),_0x394bbc;}};for(;;)try{this[_0xa5863b(0x2a9)](await this[_0xa5863b(0x28a)](_0x15bc87));return;}catch(_0x594e2d){if(_0x594e2d[_0xa5863b(0x2af)]!==_0xa5863b(0x248))throw _0x594e2d;_0x5f425f=await this[_0xa5863b(0x232)]({'action':_0x13e46e,'signal':_0x43dea0,'current':_0x5f425f}),this[_0xa5863b(0x294)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}[_0x35df2a(0x2fe)](){const _0x529cb9=_0x35df2a,_0x13043f=this[_0x529cb9(0x1c1)]();if(this['state'][_0x529cb9(0x34f)]!==_0x529cb9(0x1dd)||!_0x13043f)return;const _0x3c97df=[{'label':_0x529cb9(0x26f),'run':()=>this[_0x529cb9(0x294)]({'focus':_0x529cb9(0x23a),'tab':_0x529cb9(0x26e),'scroll':0x0})}];_0x13043f[_0x529cb9(0x2f1)]?_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x29e),'run':()=>this[_0x529cb9(0x347)]()},{'label':_0x529cb9(0x26a),'run':()=>this[_0x529cb9(0x1e1)]()}):_0x13043f['jobId']?(_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x334),'run':()=>this[_0x529cb9(0x1bf)]()},{'label':_0x529cb9(0x336),'run':()=>this['download']()}),_0x13043f[_0x529cb9(0x24c)]===_0x529cb9(0x2c8)&&_0x3c97df['push']({'label':_0x529cb9(0x209),'run':()=>this['continueTask']()})):_0x13043f[_0x529cb9(0x222)]&&(_0x13043f[_0x529cb9(0x312)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x13043f[_0x529cb9(0x200)]?'Review\x20&\x20pay':_0x529cb9(0x24b),'run':()=>this[_0x529cb9(0x347)]()}),_0x13043f[_0x529cb9(0x200)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x2e8),'run':()=>this[_0x529cb9(0x306)]()}),_0x13043f[_0x529cb9(0x24e)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x297),'run':()=>this[_0x529cb9(0x366)]()})),this['showMenu'](_0x529cb9(0x2ae),_0x3c97df);}async[_0x35df2a(0x1e1)](){const _0xeead58=_0x35df2a,_0xa45497=this[_0xeead58(0x1c1)]();if(!_0xa45497?.[_0xeead58(0x2f1)]||!await this[_0xeead58(0x245)]({'title':_0xeead58(0x21b),'lines':[_0xa45497['title']],'acceptLabel':_0xeead58(0x26a),'cancelLabel':_0xeead58(0x231)}))return;await this[_0xeead58(0x28c)]('Deleting\x20draft...',()=>this[_0xeead58(0x1f4)][_0xeead58(0x1d8)](_0xa45497[_0xeead58(0x2f1)]))&&(this[_0xeead58(0x2a2)]?.['id']===_0xa45497['draftId']&&(this[_0xeead58(0x2a2)]=null),await this[_0xeead58(0x203)]());}async[_0x35df2a(0x306)](){const _0x2cdb2f=_0x35df2a,_0x59fec1=this[_0x2cdb2f(0x1c1)]();if(this['state'][_0x2cdb2f(0x34f)]!==_0x2cdb2f(0x1dd)||!_0x59fec1?.['canCancel'])return;let _0x2fa460=!0x1;await this[_0x2cdb2f(0x28c)](_0x2cdb2f(0x27c),async()=>{const _0x4f0a10=_0x2cdb2f;await this[_0x4f0a10(0x245)]({'title':_0x4f0a10(0x34b),'lines':[_0x59fec1[_0x4f0a10(0x27a)],'',_0x4f0a10(0x236),_0x4f0a10(0x331),_0x4f0a10(0x1fd)],'acceptLabel':_0x4f0a10(0x2e8),'cancelLabel':_0x4f0a10(0x24f)})&&(await this['services'][_0x4f0a10(0x24d)](_0x59fec1),_0x2fa460=!0x0);}),_0x2fa460&&!this[_0x2cdb2f(0x261)]&&(await this[_0x2cdb2f(0x203)](),this[_0x2cdb2f(0x294)]({'notice':_0x2cdb2f(0x251)}));}async[_0x35df2a(0x366)](){const _0x70f81b=_0x35df2a,_0x55c2e4=this[_0x70f81b(0x1c1)]();if(this[_0x70f81b(0x24c)][_0x70f81b(0x34f)]!==_0x70f81b(0x1dd)||!_0x55c2e4?.['canDelete'])return;let _0x530023=!0x1;await this[_0x70f81b(0x28c)]('Deleting\x20local\x20record...',async()=>{const _0x45b35a=_0x70f81b;await this['services'][_0x45b35a(0x1f7)](_0x55c2e4),_0x530023=!0x0;}),_0x530023&&!this[_0x70f81b(0x261)]&&(await this['refresh'](),this[_0x70f81b(0x294)]({'notice':'Local\x20record\x20deleted.'}));}[_0x35df2a(0x377)](){const _0x467eb6=_0x35df2a,_0x336344=this[_0x467eb6(0x1c1)]();_0x336344?.[_0x467eb6(0x2f6)]&&this[_0x467eb6(0x28b)]('Download\x20task\x20files',[{'name':_0x467eb6(0x1e7),'label':'Save\x20under\x20this\x20directory','value':'./output/'+_0x336344[_0x467eb6(0x2f6)]}],async({out:_0x3dabe1})=>{const _0x40bfbd=_0x467eb6;if(!_0x3dabe1[_0x40bfbd(0x2be)]())throw new Error(_0x40bfbd(0x30f));this[_0x40bfbd(0x294)]({'form':null}),await this['run'](_0x40bfbd(0x252),async _0x46c797=>{const _0x3f7e34=_0x40bfbd,_0x9e0ee9=await this[_0x3f7e34(0x1f4)][_0x3f7e34(0x377)]({'id':_0x336344['jobId'],'out':_0x3dabe1,'signal':_0x46c797,'onProgress':_0x510cf7=>this['update']({'busy':'Saved\x20'+_0x510cf7[_0x3f7e34(0x30a)]})});this[_0x3f7e34(0x294)]({'notice':_0x3f7e34(0x2bb)+_0x9e0ee9[_0x3f7e34(0x1bf)][_0x3f7e34(0x1fb)]+'\x20verified\x20files\x20to\x20'+_0x3dabe1});});},{'submit':_0x467eb6(0x2a8)});}[_0x35df2a(0x1d0)](){const _0x856874=_0x35df2a;this[_0x856874(0x28b)](_0x856874(0x1d9),[{'name':_0x856874(0x1fa),'label':_0x856874(0x20e)},{'name':_0x856874(0x2c9),'label':'SSH\x20port','value':'22'},{'name':_0x856874(0x287),'label':_0x856874(0x36a)}],async _0x2f0503=>{const _0x13bc56=_0x856874,_0x2bab24=_0x45f686(_0x2f0503);this[_0x13bc56(0x31b)][_0x13bc56(0x212)](_0x1b8074=>_0x1b8074['id']===_0x2bab24['id'])||this[_0x13bc56(0x31b)]['push'](_0x2bab24),this[_0x13bc56(0x294)]({'form':null}),await this[_0x13bc56(0x203)](),this[_0x13bc56(0x294)]({'selected':this[_0x13bc56(0x24c)][_0x13bc56(0x373)][_0x13bc56(0x228)](_0x2f5ea0=>_0x2f5ea0['id']===_0x2bab24['id'])}),await this[_0x13bc56(0x31a)]();},{'submit':_0x856874(0x224)});}[_0x35df2a(0x32c)](_0x561550,_0x3d5edf,{onCancel:_0x26af84,selected:_0x48b05b=0x0,lines:_0x2daf3a,hint:_0x2eb2bb,numbered:_0x568dac=!0x1}={}){const _0x535f21=_0x35df2a;this['cancelAutoRefresh'](),this[_0x535f21(0x238)]=_0x26af84??null,this[_0x535f21(0x294)]({'menu':{'title':_0x561550,'items':_0x3d5edf,'selected':_0x48b05b,'lines':_0x2daf3a,'hint':_0x2eb2bb,'numbered':_0x568dac},'form':null});}[_0x35df2a(0x35a)](_0x558728){return new Promise((_0x1b7855,_0x45738e)=>{const _0xbdf4bd=_0x35aa;this[_0xbdf4bd(0x32c)]('Choose\x20payment\x20\xB7\x20support\x20is\x20optional',_0x558728['map']((_0x598e46,_0x132505)=>({'label':_0x598e46[_0xbdf4bd(0x34c)],'run':()=>_0x1b7855(_0x132505)})),{'onCancel':()=>_0x45738e(p()),'selected':_0x47130e});});}['dismissMenu'](){const _0x4c845c=_0x35df2a,_0x1fb46d=this['menuCancel'];this[_0x4c845c(0x238)]=null,this[_0x4c845c(0x294)]({'menu':null}),_0x1fb46d?.();}[_0x35df2a(0x1e6)](){const _0x2d72de=_0x35df2a,_0x5af5c3=this[_0x2d72de(0x24c)][_0x2d72de(0x2f4)][_0x2d72de(0x373)][this[_0x2d72de(0x24c)]['menu']['selected']];this[_0x2d72de(0x238)]=null,this['update']({'menu':null}),_0x5af5c3[_0x2d72de(0x28c)]();}[_0x35df2a(0x1e5)](){const _0x37b2b9=_0x35df2a,_0x78caaa=this[_0x37b2b9(0x1c1)]();if(!_0x78caaa||_0x78caaa[_0x37b2b9(0x26c)]===_0x37b2b9(0x292))return;const _0x1a2b49=(_0x1e67cd,_0xb7421a=!0x1)=>()=>this[_0x37b2b9(0x364)](_0x1e67cd,_0xb7421a),_0x2cd7a2=(_0x38e6a0,_0x3dfdf4,_0x5eafab,_0x1f0753,_0x13a3db=!0x1)=>()=>this['showForm'](_0x38e6a0,[{'name':_0x5eafab,'label':_0x1f0753}],_0x28b999=>{const _0x4802e2=_0x37b2b9;if(!_0x28b999[_0x5eafab][_0x4802e2(0x2be)]())throw new Error(_0x1f0753+_0x4802e2(0x1c5));return this[_0x4802e2(0x294)]({'form':null}),this[_0x4802e2(0x364)](_0x3dfdf4['concat'](_0x28b999[_0x5eafab]['trim']()),_0x13a3db);});this[_0x37b2b9(0x32c)](_0x37b2b9(0x2b2)+_0x78caaa[_0x37b2b9(0x27a)],[{'label':_0x37b2b9(0x2c4),'run':_0x1a2b49([_0x37b2b9(0x30d)])},{'label':_0x37b2b9(0x369),'run':_0x1a2b49([_0x37b2b9(0x20a)])},{'label':_0x37b2b9(0x1c0),'run':_0x1a2b49([_0x37b2b9(0x360)])},{'label':_0x37b2b9(0x35f),'run':_0x1a2b49([_0x37b2b9(0x2cc)])},{'label':'Deploy\x20official\x20worker','run':_0x1a2b49([_0x37b2b9(0x2f8)],!0x0)},{'label':_0x37b2b9(0x1eb),'run':_0x1a2b49([_0x37b2b9(0x2df)],!0x0)},{'label':'Register\x20on\x20chain','run':_0x1a2b49([_0x37b2b9(0x2ec)],!0x0)},{'label':_0x37b2b9(0x227),'run':()=>this[_0x37b2b9(0x323)]()},...[_0x37b2b9(0x1e0),_0x37b2b9(0x2e9),_0x37b2b9(0x215),_0x37b2b9(0x294)][_0x37b2b9(0x291)](_0x2352dd=>({'label':_0x2352dd[0x0][_0x37b2b9(0x325)]()+_0x2352dd[_0x37b2b9(0x1ec)](0x1),'run':_0x1a2b49([_0x2352dd],!0x0)})),{'label':_0x37b2b9(0x230),'run':()=>this['showMenu'](_0x37b2b9(0x2cb),[{'label':'List\x20skills','run':_0x1a2b49(['skills',_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x2e6),'run':_0x2cd7a2(_0x37b2b9(0x2e6),['skills',_0x37b2b9(0x234)],'id',_0x37b2b9(0x315))},{'label':_0x37b2b9(0x342),'run':_0x2cd7a2(_0x37b2b9(0x342),['skills','remove'],'id','Skill\x20ID')}])},{'label':_0x37b2b9(0x278),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x2f5),[{'label':_0x37b2b9(0x28d),'run':_0x1a2b49([_0x37b2b9(0x1c3),_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x1e4),'run':_0x1a2b49(['tools','add'],!0x0)},{'label':'Set\x20tool\x20credential\x20(hidden\x20input)','run':_0x2cd7a2('Tool\x20credential',[_0x37b2b9(0x1c3),'key'],_0x37b2b9(0x246),'Credential\x20name',!0x0)},{'label':_0x37b2b9(0x2bf),'run':_0x2cd7a2(_0x37b2b9(0x2bf),[_0x37b2b9(0x1c3),_0x37b2b9(0x267)],'name',_0x37b2b9(0x36e),!0x0)},{'label':_0x37b2b9(0x304),'run':_0x2cd7a2(_0x37b2b9(0x304),[_0x37b2b9(0x1c3),_0x37b2b9(0x1c6)],'id',_0x37b2b9(0x20d))}])},{'label':_0x37b2b9(0x29a),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x29f),[{'label':'List\x20RPC\x20endpoints','run':_0x1a2b49([_0x37b2b9(0x206),'list'])},{'label':'Add\x20RPC\x20endpoint\x20(hidden\x20input)','run':_0x2cd7a2(_0x37b2b9(0x2dd),[_0x37b2b9(0x206),'add'],_0x37b2b9(0x300),'Chain\x20ID',!0x0)},{'label':_0x37b2b9(0x298),'run':_0x2cd7a2(_0x37b2b9(0x343),['rpc',_0x37b2b9(0x1c6)],_0x37b2b9(0x300),'Chain\x20ID')}])},{'label':_0x37b2b9(0x371),'run':_0x1a2b49([_0x37b2b9(0x1c9)],!0x0)}]);}['serviceInstall'](){const _0x240a60=_0x35df2a;this[_0x240a60(0x28b)](_0x240a60(0x227),[{'name':_0x240a60(0x244),'label':'Runtime\x20(claude\x20or\x20codex)','value':_0x240a60(0x2a4)},{'name':'concurrency','label':'Concurrent\x20tasks\x20(1\u20134)','value':'1'},{'name':_0x240a60(0x2d5),'label':_0x240a60(0x2b7),'value':'no'}],async({runtime:_0x3c5b0d,concurrency:_0x44bd4b,boot:_0x5af142})=>{const _0x5963d4=_0x240a60;if(![_0x5963d4(0x2a4),_0x5963d4(0x2d9)][_0x5963d4(0x253)](_0x3c5b0d))throw new Error('Choose\x20claude\x20or\x20codex.');if(!/^[1-4]$/[_0x5963d4(0x2db)](_0x44bd4b))throw new Error('Concurrency\x20must\x20be\x201\u20134.');if(![_0x5963d4(0x313),'no'][_0x5963d4(0x253)](_0x5af142))throw new Error(_0x5963d4(0x2c7));const _0x40dba0=[_0x5963d4(0x2f3),_0x5963d4(0x265),_0x5963d4(0x328),_0x3c5b0d,'--concurrency',_0x44bd4b];_0x5af142===_0x5963d4(0x313)&&_0x40dba0[_0x5963d4(0x348)](_0x5963d4(0x30e)),this[_0x5963d4(0x294)]({'form':null}),await this[_0x5963d4(0x364)](_0x40dba0,!0x0);});}async[_0x35df2a(0x364)](_0x4863a0,_0x472e46=!0x1){const _0x280fd0=_0x35df2a,_0x21caa0=this[_0x280fd0(0x1c1)]();!_0x21caa0||_0x21caa0[_0x280fd0(0x26c)]===_0x280fd0(0x292)||await this[_0x280fd0(0x28c)](_0x280fd0(0x22b)+_0x4863a0[_0x280fd0(0x1cf)]('\x20')+_0x280fd0(0x2ab),async _0x783b9c=>{const _0x134a3a=_0x280fd0;if(_0x472e46){if(!await this['confirm']({'title':'Run\x20on\x20'+_0x21caa0['title']+'?','lines':[_0x134a3a(0x1f9)+_0x4863a0[_0x134a3a(0x1cf)]('\x20'),'The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.']}))return;await this[_0x134a3a(0x2f2)]([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0),this['update']({'notice':_0x134a3a(0x2c2)});}else{const _0x3b9975=await this['services']['command']([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0,_0x783b9c);this[_0x134a3a(0x294)]({'detail':{'output':_0x3b9975},'focus':'detail','scroll':0x0});}});}[_0x35df2a(0x2dc)](_0x4180f9){return new Promise((_0x56c2f1,_0x5e48cf)=>{const _0x1c8c59=_0x35aa;this[_0x1c8c59(0x2bd)]=_0x5e48cf,this[_0x1c8c59(0x28b)](_0x1c8c59(0x333),[{'name':_0x1c8c59(0x2bc),'label':_0x4180f9,'secret':!0x0}],({password:_0xdac28e})=>{const _0x13f699=_0x1c8c59;this[_0x13f699(0x294)]({'form':null}),this[_0x13f699(0x2bd)]=null,_0x56c2f1(_0xdac28e);},{'submit':_0x1c8c59(0x2e0),'onCancel':()=>{const _0x2de2bc=_0x1c8c59;this[_0x2de2bc(0x2bd)]=null,_0x5e48cf(new Error(_0x2de2bc(0x36f)));}});});}[_0x35df2a(0x259)](){const _0x14e681=_0x35df2a,_0xac6ea9=this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x2d2)]===_0x14e681(0x37f);this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x1d3)]&&this[_0x14e681(0x32c)]('Selected\x20wallet\x20actions',[...!this[_0x14e681(0x368)]()&&this[_0x14e681(0x1c1)]()?[{'label':'Use\x20this\x20wallet','run':()=>this[_0x14e681(0x2b5)]()}]:[],..._0xac6ea9?[{'label':'View\x20private\x20key','run':()=>this[_0x14e681(0x2d1)]()},{'label':_0x14e681(0x2b6),'run':()=>this['walletBackup']()},{'label':_0x14e681(0x375),'run':()=>this['walletDelete']()}]:[],...this[_0x14e681(0x24c)][_0x14e681(0x23a)]?.[_0x14e681(0x1d3)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x14e681(0x30c)]()}]:[]]);}async[_0x35df2a(0x307)](){const _0x57c2f7=_0x35df2a;if(this[_0x57c2f7(0x261)]||this[_0x57c2f7(0x24c)][_0x57c2f7(0x283)]||this['state'][_0x57c2f7(0x2fd)]||this['state']['menu']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x245)]||this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2ed)]()['length'])return;let _0x58d12a;try{_0x58d12a=await this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2b0)](void 0x0,void 0x0,{'balances':!0x1});}catch{return;}if(_0x58d12a[_0x57c2f7(0x1d3)]||this['closed']||this[_0x57c2f7(0x24c)]['busy']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x2fd)]||this['state'][_0x57c2f7(0x2f4)]||this['state'][_0x57c2f7(0x245)])return;const _0x308d5d=()=>this['update']({'notice':_0x57c2f7(0x316)});this[_0x57c2f7(0x32c)](_0x57c2f7(0x1f2),[{'label':_0x57c2f7(0x1cc),'run':()=>this[_0x57c2f7(0x31e)](!0x1,{'firstRun':!0x0})},{'label':_0x57c2f7(0x2c0),'run':_0x308d5d}],{'onCancel':_0x308d5d,'numbered':!0x0,'lines':[_0x57c2f7(0x1d1),_0x57c2f7(0x29b),_0x57c2f7(0x233),''],'hint':_0x57c2f7(0x1f3)});}[_0x35df2a(0x1f6)](){const _0x5aeaad=_0x35df2a;this[_0x5aeaad(0x32c)](_0x5aeaad(0x2cf),[{'label':_0x5aeaad(0x1df),'run':()=>this['walletSetup'](!0x1)},{'label':_0x5aeaad(0x2a5),'run':()=>this[_0x5aeaad(0x293)]()}]);}[_0x35df2a(0x293)](){const _0x1d4178=_0x35df2a;this[_0x1d4178(0x32c)]('Import\x20wallet',[{'label':_0x1d4178(0x2e1),'run':()=>this['walletSetup'](!0x0)},{'label':_0x1d4178(0x1e3),'run':()=>this[_0x1d4178(0x2f7)]()}]);}[_0x35df2a(0x368)](){const _0x51bfb6=_0x35df2a;return!this[_0x51bfb6(0x1c1)]()||this[_0x51bfb6(0x1c1)]()[_0x51bfb6(0x2fa)]===this['state']['address'];}async[_0x35df2a(0x276)](){const _0x4b4cd0=_0x35df2a,_0x3cd531=this['selected']()?.['address']??this[_0x4b4cd0(0x24c)]['detail']?.[_0x4b4cd0(0x2fa)];if(this[_0x4b4cd0(0x24c)][_0x4b4cd0(0x23a)]?.['source']!=='local'||!_0x3cd531||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x1d5),'lines':[_0x3cd531,_0x4b4cd0(0x257),'On-chain\x20funds\x20stay\x20at\x20this\x20address.'],'acceptLabel':'Continue','cancelLabel':_0x4b4cd0(0x351)})||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x35e),'lines':[_0x3cd531,_0x4b4cd0(0x33b),_0x4b4cd0(0x28f)],'acceptLabel':_0x4b4cd0(0x375),'cancelLabel':_0x4b4cd0(0x351)}))return;const _0x338154=await this[_0x4b4cd0(0x28c)](_0x4b4cd0(0x2d0),()=>this[_0x4b4cd0(0x1f4)][_0x4b4cd0(0x26d)](_0x3cd531));_0x338154&&(await this[_0x4b4cd0(0x25d)](_0x338154[_0x4b4cd0(0x37e)]),this['update']({'notice':'Wallet\x20deleted:\x20'+_0x3cd531}));}[_0x35df2a(0x2d1)](){const _0x2b2d60=_0x35df2a,_0x4875c8=this[_0x2b2d60(0x1c1)]()?.[_0x2b2d60(0x2fa)]??this[_0x2b2d60(0x24c)][_0x2b2d60(0x23a)]?.[_0x2b2d60(0x2fa)];this['state'][_0x2b2d60(0x23a)]?.['source']!==_0x2b2d60(0x37f)||!_0x4875c8||this[_0x2b2d60(0x28b)]('View\x20private\x20key\x20\xB7\x20confirm\x20password',[{'name':'password','label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x12f255})=>{const _0x5ad71f=_0x2b2d60;this['update']({'form':null});const _0x347a11=await this[_0x5ad71f(0x28c)]('Checking\x20wallet\x20password...',_0x467538=>this['services'][_0x5ad71f(0x27f)](_0x4875c8,_0x12f255,_0x467538));_0x347a11&&this['update']({'privateKeyView':_0x347a11});},{'submit':_0x2b2d60(0x309)});}async['refreshWalletSelection'](_0x33ad98,_0xe3a855){const _0x283a2c=_0x35df2a;this[_0x283a2c(0x294)]({'selected':-0x1}),this[_0x283a2c(0x2de)]=_0x33ad98,await this[_0x283a2c(0x203)]({'notice':_0xe3a855});}async[_0x35df2a(0x2b5)](){const _0x52ac3a=_0x35df2a,_0x378f57=this['selected']();if(!_0x378f57||this[_0x52ac3a(0x368)]())return;const _0xbd8883=await this[_0x52ac3a(0x28c)](_0x52ac3a(0x22d),()=>this[_0x52ac3a(0x1f4)][_0x52ac3a(0x2ef)](_0x378f57[_0x52ac3a(0x2fa)]));_0xbd8883&&(await this[_0x52ac3a(0x203)](),this[_0x52ac3a(0x294)]({'notice':_0x52ac3a(0x1ed)+_0xbd8883[_0x52ac3a(0x2fa)]}));}[_0x35df2a(0x31e)](_0x1c4e4c,{firstRun:_0x21b396=!0x1}={}){const _0x102755=_0x35df2a,_0x222dc6=this[_0x102755(0x1f4)]['wallets']()[_0x102755(0x1fb)]>0x0||this[_0x102755(0x24c)]['detail']?.['source']===_0x102755(0x37f),_0x47347c=async({key:_0xf0bba5,password:_0x4d8636,repeat:_0x27ed1b})=>{const _0x1c4475=_0x102755;if(!_0x222dc6){if(_0x4d8636!==_0x27ed1b)throw new Error('Passwords\x20do\x20not\x20match.');if(_0x4d8636['length']<0x8)throw new Error(_0x1c4475(0x357));}this['update']({'form':null});const _0x1fc6f0=await this['run']('Encrypting\x20wallet\x20locally...',_0x20eead=>this[_0x1c4475(0x1f4)][_0x1c4475(0x296)](_0x4d8636,_0xf0bba5,_0x20eead));_0x1fc6f0&&(_0x21b396&&this[_0x1c4475(0x24c)][_0x1c4475(0x34f)]!=='wallet'&&(clearTimeout(this[_0x1c4475(0x214)]),this[_0x1c4475(0x2fb)]?.[_0x1c4475(0x275)](),++this[_0x1c4475(0x242)],this[_0x1c4475(0x294)]({'view':'wallet','items':[],'detail':null,'result':null,'query':'','filter':_0x1c4475(0x249),'tab':_0x1c4475(0x26e),'focus':_0x1c4475(0x2e4),'menu':null,'cursor':null,'total':null,'since':null})),await this[_0x1c4475(0x25d)](_0x1fc6f0['address'],_0x21b396?_0x1c4475(0x1d6)+_0x1fc6f0[_0x1c4475(0x2fa)]+_0x1c4475(0x2ad):_0x1c4475(0x23d)));};if(_0x222dc6&&!_0x1c4e4c)return _0x47347c({});this[_0x102755(0x28b)](_0x1c4e4c?_0x102755(0x354):_0x102755(0x31d),[..._0x1c4e4c?[{'name':_0x102755(0x280),'label':_0x102755(0x226),'secret':!0x0}]:[],..._0x222dc6?[]:[{'name':_0x102755(0x2bc),'label':_0x102755(0x1d2),'secret':!0x0},{'name':_0x102755(0x258),'label':_0x102755(0x317),'secret':!0x0}]],_0x47347c,{'submit':_0x1c4e4c?_0x102755(0x2a5):'Create\x20wallet',..._0x21b396?{'onCancel':()=>this['update']({'notice':'No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).'})}:{}});}['walletRestore'](){const _0x3b972e=_0x35df2a;this[_0x3b972e(0x28b)](_0x3b972e(0x350),[{'name':_0x3b972e(0x2b9),'label':_0x3b972e(0x204)},{'name':_0x3b972e(0x2bc),'label':_0x3b972e(0x345),'secret':!0x0}],async({file:_0x296873,password:_0x497393})=>{const _0x165e92=_0x3b972e;this[_0x165e92(0x294)]({'form':null});const _0x3895ef=await this[_0x165e92(0x28c)](_0x165e92(0x330),_0x4c36c1=>this['services'][_0x165e92(0x344)](_0x296873,_0x497393,_0x4c36c1));_0x3895ef&&await this[_0x165e92(0x25d)](_0x3895ef[_0x165e92(0x2fa)]);},{'submit':_0x3b972e(0x2cd)});}[_0x35df2a(0x247)](){const _0x37586f=_0x35df2a,_0xf2fad3=this[_0x37586f(0x1c1)]()?.[_0x37586f(0x2fa)]??this['state'][_0x37586f(0x23a)]?.[_0x37586f(0x2fa)];_0xf2fad3&&this['showForm'](_0x37586f(0x2b6),[{'name':'out','label':'Save\x20encrypted\x20backup\x20to\x20(new\x20file)'}],async({out:_0x3327c2})=>{const _0x1914d9=_0x37586f;this['update']({'form':null});const _0x11b214=await this[_0x1914d9(0x28c)](_0x1914d9(0x202),()=>this[_0x1914d9(0x1f4)][_0x1914d9(0x374)](_0x3327c2,_0xf2fad3));_0x11b214&&this[_0x1914d9(0x294)]({'notice':_0x1914d9(0x37d)+_0x11b214[_0x1914d9(0x30a)]+'.\x20Keep\x20your\x20password\x20separately.'});},{'submit':_0x37586f(0x305)});}async[_0x35df2a(0x30c)](){const _0x50ec94=_0x35df2a,_0x273d43=this[_0x50ec94(0x1c1)]()?.[_0x50ec94(0x2fa)]??this['state']['detail']?.[_0x50ec94(0x2fa)];_0x273d43&&await this[_0x50ec94(0x28c)]('Preparing\x20receive\x20address...',async()=>{const _0x49021e=_0x50ec94;this['update']({'receive':await this['services'][_0x49021e(0x2ac)](_0x273d43)});});}[_0x35df2a(0x30b)](_0x146fd1){const _0x56f758=_0x35df2a,_0x56413f=_0x12a616(_0x146fd1)['filter'](_0x211f87=>!_0x211f87[_0x56f758(0x2c5)]);if(_0x56413f['length']<=0x1)return this[_0x56f758(0x32a)](_0x146fd1,_0x56413f[0x0]??_0x12a616(_0x146fd1)[0x0]);const _0x2fdf53={'dialog':this[_0x56f758(0x24c)]['confirm'],'scroll':this[_0x56f758(0x24c)][_0x56f758(0x23f)]};this[_0x56f758(0x294)]({'confirm':null}),this[_0x56f758(0x32c)](_0x56f758(0x35d),_0x56413f['map'](_0x12e6f2=>({'label':_0x285a35(_0x12e6f2),'run':()=>this[_0x56f758(0x32a)](_0x146fd1,_0x12e6f2,_0x2fdf53)})),{'onCancel':()=>this[_0x56f758(0x294)]({'confirm':_0x2fdf53[_0x56f758(0x1e9)],'scroll':_0x2fdf53[_0x56f758(0x23f)]})});}async['fundingReceive'](_0x3bc0b2,_0x443b72,_0x56008f){const _0x5a754a=_0x35df2a,_0x21f7ee=_0x56008f?.[_0x5a754a(0x1e9)]??this[_0x5a754a(0x24c)][_0x5a754a(0x245)],_0x534718=_0x56008f?.[_0x5a754a(0x23f)]??this['state'][_0x5a754a(0x23f)];try{const _0x2284e0=await this['services'][_0x5a754a(0x2ac)](_0x3bc0b2['address'],_0x443b72[_0x5a754a(0x280)]);this['fundingDialog']={'dialog':_0x21f7ee,'scroll':_0x534718},this['update']({'confirm':null,'receive':{..._0x2284e0,'targets':_0x17597a(_0x443b72)},'scroll':0x0,'error':null,'notice':null});}catch(_0x18184d){this[_0x5a754a(0x294)]({'error':_0x18184d[_0x5a754a(0x1ff)],..._0x56008f?{'confirm':_0x21f7ee,'scroll':_0x534718}:{}});}}[_0x35df2a(0x33c)](){const _0x29fed4=_0x35df2a,_0x25bbdf=this[_0x29fed4(0x22a)];this[_0x29fed4(0x22a)]=null,this[_0x29fed4(0x294)]({'receive':null,..._0x25bbdf?{'confirm':_0x25bbdf[_0x29fed4(0x1e9)],'scroll':_0x25bbdf['scroll']}:{}});}[_0x35df2a(0x24a)](){const _0x5d4685=_0x35df2a,_0x1cf8b1=this[_0x5d4685(0x24c)][_0x5d4685(0x1c4)][_0x5d4685(0x2fa)];this['showForm'](_0x5d4685(0x289),[{'name':_0x5d4685(0x1e7),'label':'New\x20SVG\x20file\x20path','placeholder':_0x5d4685(0x332)}],async({out:_0x12d911})=>{const _0x313fba=_0x5d4685,_0x236133=await this[_0x313fba(0x1f4)][_0x313fba(0x22f)](_0x1cf8b1,_0x12d911);this[_0x313fba(0x294)]({'form':null,'notice':_0x313fba(0x28e)+_0x236133['path']});},{'submit':'Save\x20QR'});}[_0x35df2a(0x290)](){const _0x45cda1=_0x35df2a;clearTimeout(this['detailTimer']),this[_0x45cda1(0x238)]?.(),this[_0x45cda1(0x238)]=null,this[_0x45cda1(0x2bd)]?.(new Error('Wallet\x20unlock\x20cancelled.')),this['passwordReject']=null,_0x3e28dd(),this['update']({'form':null,'privateKeyView':null}),this[_0x45cda1(0x261)]=!0x0,this['operation']?.[_0x45cda1(0x275)](),this[_0x45cda1(0x263)]?.['abort'](),this[_0x45cda1(0x2fb)]?.[_0x45cda1(0x275)](),this[_0x45cda1(0x243)]?.(!0x1),this['fundingDialog']=null,this['askResolve']?.([]),++this[_0x45cda1(0x242)],this[_0x45cda1(0x2eb)][_0x45cda1(0x36c)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
|
package/dist/tui/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
import{fork as _0x5b4037}from'node:child_process';import{createServices as _0x318290}from'./services.mjs';function _0x4d8d(){const _0x5419e8=['handoff','target','ipc','json','inherit','code\x20','The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.','services','./session.mjs','Dashboard\x20exited\x20with\x20','notice','stdout','send','isTTY','message','args','error','restore','Command\x20finished.\x20Press\x20r\x20to\x20refresh.'];_0x4d8d=function(){return _0x5419e8;};return _0x4d8d();}function d(_0x2d738f,_0x13bfb0){return new Promise((_0x2b4f22,_0x35d0ed)=>{const _0x26cd15=_0x5b48,_0x29c011=_0x5b4037(new URL(_0x26cd15(0xa6),import.meta.url),[],{'stdio':['inherit','inherit',_0x26cd15(0xa2),_0x26cd15(0xa0)],'windowsHide':!0x0});let _0x262128;_0x29c011['on'](_0x26cd15(0xac),_0x27137b=>{const _0x9788c4=_0x26cd15;_0x262128=_0x27137b[_0x9788c4(0x9e)];}),_0x29c011['on']('error',_0x35d0ed),_0x29c011['on']('exit',(_0x1e1f3e,_0xcad463)=>{const _0x113953=_0x26cd15;_0x1e1f3e!==0x0?_0x35d0ed(new Error(_0x113953(0xa7)+(_0xcad463??_0x113953(0xa3)+_0x1e1f3e)+'.')):_0x2b4f22(_0x262128);}),_0x29c011[_0x26cd15(0xaa)]({'options':_0x2d738f,'restore':_0x13bfb0});});}function _0x5b48(_0x555abf,_0x4d8dba){_0x555abf=_0x555abf-0x9e;const _0x5b48dd=_0x4d8d();let _0x18b791=_0x5b48dd[_0x555abf];return _0x18b791;}async function w(_0x379a70,_0x517033={}){const _0x13357c=_0x5b48;if(!process['stdin'][_0x13357c(0xab)]||!process[_0x13357c(0xa9)]['isTTY']||_0x379a70[_0x13357c(0xa1)])throw new Error(_0x13357c(0xa4));const _0x6dc9ce=_0x517033[_0x13357c(0xa5)]??_0x318290(_0x379a70,_0x517033);let _0x4f5dd6;for(;;){const _0x297861=await d(_0x379a70,_0x4f5dd6);if(!_0x297861)return;_0x4f5dd6=_0x297861[_0x13357c(0xaf)];try{await _0x6dc9ce['interactive'](_0x297861[_0x13357c(0xad)],_0x297861[_0x13357c(0x9f)]),_0x4f5dd6[_0x13357c(0xa8)]=_0x13357c(0xb0);}catch(_0x1d95b1){_0x4f5dd6[_0x13357c(0xae)]=_0x1d95b1[_0x13357c(0xac)];}}}export{w as startDashboard};
|
package/dist/tui/session.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5e54(){const _0x255d58=['extraTargets','requestPassword','close','update','ascii','restoreSelectedId','waitUntilExit','disabled','once','disconnect','send','message','getSnapshot'];_0x5e54=function(){return _0x255d58;};return _0x5e54();}const _0x24bf0c=_0x3cc1;import{createElement as _0x2aef74,useCallback as _0x769ed0}from'react';import{render as _0x1b6f71,useApp as _0x2b22c3}from'ink';import{DashboardApp as _0x48cc0a}from'./app.mjs';import{DashboardController as _0x116f69}from'./controller.mjs';function _0x3cc1(_0xa242e6,_0x5e5460){_0xa242e6=_0xa242e6-0x1ee;const _0x3cc1cb=_0x5e54();let _0x13d9ab=_0x3cc1cb[_0xa242e6];return _0x13d9ab;}import{createServices as _0x4ee10e}from'./services.mjs';process[_0x24bf0c(0x1f6)](_0x24bf0c(0x1f9),async({options:_0x14b2ac,restore:_0x5f411b})=>{const _0x13b664=_0x24bf0c,_0x3bfaa6=new _0x116f69(_0x4ee10e(_0x14b2ac));_0x14b2ac['requestPassword']=_0x1b32a1=>_0x3bfaa6[_0x13b664(0x1ef)](_0x1b32a1);let _0x3e7073;if(_0x5f411b){const {selectedId:_0x2e6a6b,extraTargets:_0x6a3668,notice:_0x3612c6,error:_0x128f11,..._0x2ce3f5}=_0x5f411b;_0x3e7073={'notice':_0x3612c6??null,'error':_0x128f11??null},_0x3bfaa6[_0x13b664(0x1f1)](_0x2ce3f5),_0x3bfaa6[_0x13b664(0x1f3)]=_0x2e6a6b,_0x3bfaa6[_0x13b664(0x1ee)]=_0x6a3668;}let _0x5a2c40;function _0x4bfcc3(){const _0x57ce6d=_0x13b664,{exit:_0x1168c5}=_0x2b22c3(),_0x1dcf52=_0x769ed0(async(_0x3a2f4f,_0x527474)=>{const _0x59e678=_0x3cc1,{view:_0x1a8573,filter:_0x4a8471,query:_0xd04397,tab:_0x20a91f,focus:_0x56995f}=_0x3bfaa6[_0x59e678(0x1fa)]();_0x5a2c40={'args':_0x3a2f4f,'target':_0x527474,'restore':{'view':_0x1a8573,'filter':_0x4a8471,'query':_0xd04397,'tab':_0x20a91f,'focus':_0x56995f,'selectedId':_0x3bfaa6['selected']()?.['id'],'extraTargets':_0x3bfaa6[_0x59e678(0x1ee)]}},_0x3bfaa6[_0x59e678(0x1f0)](),_0x1168c5();},[_0x1168c5]);return _0x2aef74(_0x48cc0a,{'controller':_0x3bfaa6,'ascii':_0x14b2ac[_0x57ce6d(0x1f2)],'terminal':_0x1dcf52,'feedback':_0x3e7073,'welcome':!_0x5f411b});}const _0x604c5f=_0x1b6f71(_0x2aef74(_0x4bfcc3),{'interactive':!0x0,'alternateScreen':!0x0,'exitOnCtrlC':!0x1,'kittyKeyboard':{'mode':_0x13b664(0x1f5)},'maxFps':0x14});try{await _0x604c5f[_0x13b664(0x1f4)](),process[_0x13b664(0x1f8)]({'handoff':_0x5a2c40});}finally{_0x3bfaa6[_0x13b664(0x1f0)](),process[_0x13b664(0x1f7)]();}});
|