@2api-store/activate 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x130e87,_0x406060){const _0x512ff8=_0x272e,_0x4f307f=_0x130e87();while(!![]){try{const _0x24f988=-parseInt(_0x512ff8(0xed))/0x1*(parseInt(_0x512ff8(0xdb))/0x2)+parseInt(_0x512ff8(0xf3))/0x3+-parseInt(_0x512ff8(0xfb))/0x4*(-parseInt(_0x512ff8(0x10e))/0x5)+parseInt(_0x512ff8(0x109))/0x6+parseInt(_0x512ff8(0x112))/0x7+parseInt(_0x512ff8(0xe2))/0x8*(parseInt(_0x512ff8(0xfe))/0x9)+-parseInt(_0x512ff8(0xfc))/0xa;if(_0x24f988===_0x406060)break;else _0x4f307f['push'](_0x4f307f['shift']());}catch(_0x5d2d2d){_0x4f307f['push'](_0x4f307f['shift']());}}}(_0xcf14,0xadd11));import _0x594dbe from'node:readline';let t=null;async function n(){const _0xf1af43=_0x272e,_0xea79b1={'fBUDZ':'@inquirer/prompts'};return t||(t=await import(_0xea79b1[_0xf1af43(0xfa)])),t;}function _0x272e(_0x5454b4,_0x1f9612){_0x5454b4=_0x5454b4-0xd4;const _0xcf148d=_0xcf14();let _0x272ed3=_0xcf148d[_0x5454b4];return _0x272ed3;}let a=null,s=null,o=null;function r(){const _0x241da1=_0x272e,_0xd056fa={'qigaw':function(_0x58985b,_0x16a269){return _0x58985b===_0x16a269;}};return _0xd056fa[_0x241da1(0xd8)](!0x0,process[_0x241da1(0xdd)][_0x241da1(0xe9)]);}export function closePrompt(){a&&!a['closed']&&a['close'](),a=null;}function _0xcf14(){const _0x29731d=['setEncoding','utf8','write','\x20\x20[','QtQXA','label','isTTY','YspbI','shift','length','244qAZoRM','includes','pXnmg','QyAXg','RNlPR','all','173853Fmqlgb','\x20(默认)','AINNj','vqObf','dqkSc','map','filter','fBUDZ','26212EXXfTi','7539130MQbHRn','toLowerCase','3726hLiPML','log','ZAHHQ','password','HgaWS','MuKds','yes','\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','split','UuBZZ','ZomAn','2742534ZCxpPS','end','WaBfu','trim','AnvqP','385MnFBZQ','stdout','bGsfM','FibVu','7712873nLKwHb','Y/n','rRzsa','forEach','Fgpjm','none','选择序号','data','select','WiSyU','QrGJg','MmoBy','BnVeq','qigaw','checkbox','y/N','7610Cvgqfx','DpawX','stdin','push','pVyYa','OmplG','confirm','5272qyoUjg'];_0xcf14=function(){return _0x29731d;};return _0xcf14();}export async function ask(_0x488c83,{defaultValue:_0x3ef612}={}){const _0x9de287=_0x272e,_0x3e87b1={'MRmuB':function(_0x23be8e,_0x15d976){return _0x23be8e>_0x15d976;},'OmplG':function(_0x422b69){return _0x422b69();},'FRPIM':_0x9de287(0xe4),'AnvqP':_0x9de287(0x119),'rRzsa':_0x9de287(0x10a),'dTGMo':function(_0x40904d){return _0x40904d();},'ZAHHQ':function(_0x5d85ee,_0x566275){return _0x5d85ee??_0x566275;},'RNlPR':function(_0x29fe9d,_0x346f94){return _0x29fe9d??_0x346f94;},'bGsfM':function(_0x34a897,_0x5951ad){return _0x34a897??_0x5951ad;}},_0x174df1=_0x3ef612?'\x20['+_0x3ef612+']':'';if(_0x3e87b1['dTGMo'](r)){const _0x3dc6cb=await _0x3e87b1['dTGMo'](n);return await _0x3dc6cb['input']({'message':''+_0x488c83+_0x174df1,'default':_0x3e87b1[_0x9de287(0x100)](_0x3ef612,'')})||_0x3e87b1[_0x9de287(0xf1)](_0x3ef612,'');}await(s||(s=[],o=new Promise(_0x54531a=>{const _0xa13c1d=_0x9de287;let _0x3c8756='';process[_0xa13c1d(0xdd)][_0xa13c1d(0xe3)](_0x3e87b1['FRPIM']),process[_0xa13c1d(0xdd)]['on'](_0x3e87b1[_0xa13c1d(0x10d)],_0x202dc9=>{_0x3c8756+=_0x202dc9;}),process['stdin']['on'](_0x3e87b1[_0xa13c1d(0x114)],()=>{const _0x2a5d61=_0xa13c1d,_0x53d529=_0x3c8756['split'](/\r?\n/);_0x3e87b1['MRmuB'](_0x53d529[_0x2a5d61(0xec)],0x0)&&''===_0x53d529[_0x53d529[_0x2a5d61(0xec)]-0x1]&&_0x53d529['pop'](),s[_0x2a5d61(0xde)](..._0x53d529),_0x3e87b1[_0x2a5d61(0xe0)](_0x54531a);}),process[_0xa13c1d(0xdd)]['destroyed']&&_0x3e87b1['OmplG'](_0x54531a);})),o);const _0x1ccf86=s[_0x9de287(0xeb)]()??'';return process[_0x9de287(0x10f)][_0x9de287(0xe5)](''+_0x488c83+_0x174df1+':\x20'+_0x1ccf86+'\x0a'),_0x1ccf86[_0x9de287(0x10c)]()||_0x3e87b1[_0x9de287(0x110)](_0x3ef612,'');}export async function askSecret(_0x4732e4){const _0x276107=_0x272e,_0x44be4b={'bxvsu':function(_0x473e6c){return _0x473e6c();}};if(r())return(await _0x44be4b['bxvsu'](n))[_0x276107(0x101)]({'message':_0x4732e4,'mask':'*'});return ask(_0x4732e4);}export async function multiSelect(_0x4a8b36,_0x5078fe,{defaultSelected:_0x109f9f=[]}={}){const _0x2cd850=_0x272e,_0x33026b={'UuBZZ':function(_0x1861f0,_0x1e5b9d){return _0x1861f0+_0x1e5b9d;},'QyAXg':function(_0x386a3f,_0x5378a2){return _0x386a3f===_0x5378a2;},'dqkSc':function(_0x2a9d2e){return _0x2a9d2e();},'HgaWS':_0x2cd850(0x105),'MmoBy':function(_0x38bbc7,_0xc583e3,_0x3d21fe){return _0x38bbc7(_0xc583e3,_0x3d21fe);},'jLdKl':_0x2cd850(0xf2),'MuKds':function(_0x52af9e,_0x171aa8){return _0x52af9e===_0x171aa8;},'USGKO':function(_0x50ce35,_0x3d1b5e){return _0x50ce35===_0x3d1b5e;},'BnVeq':_0x2cd850(0x117)};if(_0x33026b[_0x2cd850(0xf0)](0x0,_0x5078fe['length']))return[];if(_0x33026b[_0x2cd850(0xf7)](r)){const _0xaa904b=await _0x33026b[_0x2cd850(0xf7)](n),_0x4d2dbb=_0x5078fe[_0x2cd850(0xf8)]((_0x3bf738,_0x29cea7)=>({'name':_0x3bf738[_0x2cd850(0xe8)],'value':_0x29cea7,'checked':_0x109f9f[_0x2cd850(0xee)](_0x29cea7)}));return await _0xaa904b[_0x2cd850(0xd9)]({'message':_0x4a8b36,'choices':_0x4d2dbb,'loop':!0x1,'required':!0x1});}console[_0x2cd850(0xff)](_0x4a8b36),_0x5078fe[_0x2cd850(0x115)]((_0x2a1039,_0x318a34)=>{const _0x4e7abb=_0x2cd850,_0x4a7e83=_0x109f9f[_0x4e7abb(0xee)](_0x318a34);console['log'](_0x4e7abb(0xe6)+(_0x4a7e83?'x':'\x20')+']\x20'+_0x33026b[_0x4e7abb(0x107)](_0x318a34,0x1)+'.\x20'+_0x2a1039[_0x4e7abb(0xe8)]);}),console[_0x2cd850(0xff)](_0x33026b[_0x2cd850(0x102)]);const _0x3b4953=_0x109f9f['map'](_0xeb073e=>_0xeb073e+0x1)['join'](','),_0x470613=await _0x33026b[_0x2cd850(0xd6)](ask,'选择',{'defaultValue':_0x3b4953}),_0x56c816=_0x470613['trim']()[_0x2cd850(0xfd)]();if('a'===_0x56c816||_0x33026b[_0x2cd850(0xf0)](_0x33026b['jLdKl'],_0x56c816))return _0x5078fe['map']((_0x42ad3a,_0x5e73ed)=>_0x5e73ed);if(_0x33026b[_0x2cd850(0x103)]('n',_0x56c816)||_0x33026b['USGKO'](_0x33026b[_0x2cd850(0xd7)],_0x56c816))return[];const _0x467140=_0x470613[_0x2cd850(0x106)](/[,\s]+/)['map'](_0x12b4bc=>parseInt(_0x12b4bc,0xa))[_0x2cd850(0xf9)](_0x7995bc=>!isNaN(_0x7995bc)&&_0x7995bc>=0x1&&_0x7995bc<=_0x5078fe['length'])[_0x2cd850(0xf8)](_0x3a6e0b=>_0x3a6e0b-0x1);return[...new Set(_0x467140)];}export async function select(_0x5690bd,_0x42d4a9,{defaultIndex:_0x22290e=0x0}={}){const _0x1e22af=_0x272e,_0x2e185c={'FibVu':function(_0x41f4fe,_0x49ee15){return _0x41f4fe===_0x49ee15;},'DpawX':_0x1e22af(0xf4),'ZomAn':function(_0x9ac368,_0x37d4e8){return _0x9ac368+_0x37d4e8;},'Fgpjm':function(_0x510cec,_0x6182e5){return _0x510cec===_0x6182e5;},'zSzgN':function(_0x19db56){return _0x19db56();},'WaBfu':function(_0x2e5e4e){return _0x2e5e4e();},'pXnmg':function(_0x119466,_0xc4f7e4,_0x2d5713){return _0x119466(_0xc4f7e4,_0x2d5713);},'vDMBi':_0x1e22af(0x118),'gRCTl':function(_0x395bb0,_0x47ca7e){return _0x395bb0(_0x47ca7e);},'QtQXA':function(_0x4d869d,_0x5dedd8){return _0x4d869d<_0x5dedd8;},'vqObf':function(_0x3429df,_0x725fbd){return _0x3429df>_0x725fbd;},'YspbI':function(_0xe08052,_0x3b7eae){return _0xe08052-_0x3b7eae;}};if(_0x2e185c[_0x1e22af(0x111)](0x0,_0x42d4a9[_0x1e22af(0xec)]))return-0x1;if(_0x2e185c[_0x1e22af(0x116)](0x1,_0x42d4a9[_0x1e22af(0xec)]))return 0x0;if(_0x2e185c['zSzgN'](r)){const _0x257cf2=await _0x2e185c[_0x1e22af(0x10b)](n),_0x5098e1=_0x42d4a9[_0x1e22af(0xf8)]((_0x535a92,_0x4ebd12)=>({'name':_0x535a92[_0x1e22af(0xe8)],'value':_0x4ebd12}));return _0x257cf2[_0x1e22af(0x11a)]({'message':_0x5690bd,'choices':_0x5098e1,'default':_0x22290e,'loop':!0x1});}console[_0x1e22af(0xff)](_0x5690bd),_0x42d4a9['forEach']((_0x593bca,_0x34f8f5)=>{const _0x219143=_0x1e22af,_0x1626a2=_0x2e185c[_0x219143(0x111)](_0x34f8f5,_0x22290e)?_0x2e185c[_0x219143(0xdc)]:'';console[_0x219143(0xff)]('\x20\x20'+_0x2e185c[_0x219143(0x108)](_0x34f8f5,0x1)+'.\x20'+_0x593bca[_0x219143(0xe8)]+_0x1626a2);});const _0x40fa91=await _0x2e185c['pXnmg'](ask,_0x2e185c['vDMBi'],{'defaultValue':_0x2e185c['gRCTl'](String,_0x22290e+0x1)}),_0x3d5187=_0x2e185c[_0x1e22af(0xef)](parseInt,_0x40fa91,0xa);return isNaN(_0x3d5187)||_0x2e185c[_0x1e22af(0xe7)](_0x3d5187,0x1)||_0x2e185c[_0x1e22af(0xf6)](_0x3d5187,_0x42d4a9[_0x1e22af(0xec)])?_0x22290e:_0x2e185c[_0x1e22af(0xea)](_0x3d5187,0x1);}export async function confirm(_0x541e8,{defaultValue:_0x4a15cb=!0x0}={}){const _0x1621f9=_0x272e,_0xa4502f={'AINNj':function(_0x34d3d1){return _0x34d3d1();},'QrGJg':function(_0x477063){return _0x477063();},'WiSyU':_0x1621f9(0x113),'pVyYa':function(_0x186241,_0x3dd6f5){return _0x186241===_0x3dd6f5;},'pkmWz':_0x1621f9(0x104)};if(_0xa4502f[_0x1621f9(0xf5)](r))return(await _0xa4502f[_0x1621f9(0xd5)](n))[_0x1621f9(0xe1)]({'message':_0x541e8,'default':_0x4a15cb});const _0x1bc7c0=_0x4a15cb?_0xa4502f[_0x1621f9(0xd4)]:_0x1621f9(0xda),_0x299cbe=(await ask(_0x541e8+'\x20('+_0x1bc7c0+')',{'defaultValue':_0x4a15cb?'y':'n'}))['trim']()[_0x1621f9(0xfd)]();return _0x299cbe?_0xa4502f[_0x1621f9(0xdf)]('y',_0x299cbe)||_0xa4502f['pkmWz']===_0x299cbe:_0x4a15cb;}
1
+ function _0x413a(){const _0x30eeb8=['tOjFq','xXpTr','SaPLU','\x20(默认)','YGfTy','yuNZV','GPAyb','join','utf8','trhJq','PruSO','isTTY','y/N','RimHS','45lKYNzm','closed','label','UcXPd','8jATTJf','rJmNP','@inquirer/prompts','vyFxg','rIRQC','checkbox','psfdl','154010Mkwnmu','yes','FtTYA','close','xSVfu','input','bWjlC','\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','dhujM','forEach','VfLog','hVwDf','zcexK','Y/n','\x20\x20[','NStts','none','JduFd','split','trim','qlMWL','map','7988210WzxOaH','write','52rrDids','log','password','data','includes','stdin','shift','destroyed','toLowerCase','ZgKRP','JFECf','MDjGZ','fpfny','Zhsrt','选择序号','setEncoding','WgFCL','32649JCIMdO','push','2140922eVdVrM','length','1155267eqtYjZ','hTIGY','133002BweatT','15236rofzyO'];_0x413a=function(){return _0x30eeb8;};return _0x413a();}(function(_0x36ff3b,_0x4b714d){const _0x3bfe9f=_0x62b1,_0x206e73=_0x36ff3b();while(!![]){try{const _0x3cb50b=parseInt(_0x3bfe9f(0x194))/0x1+-parseInt(_0x3bfe9f(0x1c4))/0x2+-parseInt(_0x3bfe9f(0x1bd))/0x3*(parseInt(_0x3bfe9f(0x1ac))/0x4)+-parseInt(_0x3bfe9f(0x1d3))/0x5*(parseInt(_0x3bfe9f(0x1c3))/0x6)+-parseInt(_0x3bfe9f(0x1bf))/0x7+parseInt(_0x3bfe9f(0x1d7))/0x8*(-parseInt(_0x3bfe9f(0x1c1))/0x9)+parseInt(_0x3bfe9f(0x1aa))/0xa;if(_0x3cb50b===_0x4b714d)break;else _0x206e73['push'](_0x206e73['shift']());}catch(_0x4a32ba){_0x206e73['push'](_0x206e73['shift']());}}}(_0x413a,0x29826));import _0x4f86de from'node:readline';let t=null;function _0x62b1(_0x2924a7,_0x233a80){_0x2924a7=_0x2924a7-0x190;const _0x413a2f=_0x413a();let _0x62b1f4=_0x413a2f[_0x2924a7];return _0x62b1f4;}async function n(){const _0x51825a=_0x62b1;return t||(t=await import(_0x51825a(0x1d9))),t;}let a=null,s=null,o=null;function r(){const _0x4f398b=_0x62b1,_0x3bdac5={'yuNZV':function(_0x1ae481,_0x2ed507){return _0x1ae481===_0x2ed507;}};return _0x3bdac5[_0x4f398b(0x1ca)](!0x0,process[_0x4f398b(0x1b1)][_0x4f398b(0x1d0)]);}export function closePrompt(){const _0x2bc17f=_0x62b1;a&&!a[_0x2bc17f(0x1d4)]&&a[_0x2bc17f(0x197)](),a=null;}export async function ask(_0x281963,{defaultValue:_0x2fd05b}={}){const _0x415b37=_0x62b1,_0x3e2fa1={'MDjGZ':function(_0x2a27dc,_0x58bdfb){return _0x2a27dc>_0x58bdfb;},'fpfny':function(_0x465ed8){return _0x465ed8();},'dhujM':_0x415b37(0x1cd),'PruSO':_0x415b37(0x1af),'xXpTr':'end','eccQb':function(_0x3e59b8,_0x42e53b){return _0x3e59b8??_0x42e53b;},'trhJq':function(_0x1ae89b,_0x2aedbd){return _0x1ae89b??_0x2aedbd;}},_0x2c09cd=_0x2fd05b?'\x20['+_0x2fd05b+']':'';if(_0x3e2fa1['fpfny'](r)){const _0x562642=await n();return await _0x562642[_0x415b37(0x199)]({'message':''+_0x281963+_0x2c09cd,'default':_0x3e2fa1['eccQb'](_0x2fd05b,'')})||(_0x2fd05b??'');}await(s||(s=[],o=new Promise(_0x3c31c5=>{const _0x4a14fd=_0x415b37;let _0x112e64='';process[_0x4a14fd(0x1b1)][_0x4a14fd(0x1bb)](_0x3e2fa1[_0x4a14fd(0x19c)]),process[_0x4a14fd(0x1b1)]['on'](_0x3e2fa1[_0x4a14fd(0x1cf)],_0x38ac34=>{_0x112e64+=_0x38ac34;}),process[_0x4a14fd(0x1b1)]['on'](_0x3e2fa1[_0x4a14fd(0x1c6)],()=>{const _0x448a30=_0x4a14fd,_0x50cc77=_0x112e64['split'](/\r?\n/);_0x3e2fa1[_0x448a30(0x1b7)](_0x50cc77['length'],0x0)&&''===_0x50cc77[_0x50cc77[_0x448a30(0x1c0)]-0x1]&&_0x50cc77['pop'](),s[_0x448a30(0x1be)](..._0x50cc77),_0x3e2fa1[_0x448a30(0x1b8)](_0x3c31c5);}),process[_0x4a14fd(0x1b1)][_0x4a14fd(0x1b3)]&&_0x3c31c5();})),o);const _0x5b730d=s[_0x415b37(0x1b2)]()??'';return process['stdout'][_0x415b37(0x1ab)](''+_0x281963+_0x2c09cd+':\x20'+_0x5b730d+'\x0a'),_0x5b730d[_0x415b37(0x1a7)]()||_0x3e2fa1[_0x415b37(0x1ce)](_0x2fd05b,'');}export async function askSecret(_0x54392d){const _0x5bad72=_0x62b1,_0x3190cd={'JduFd':function(_0x4ecbc6){return _0x4ecbc6();},'oQAVe':function(_0x4ca4c6){return _0x4ca4c6();},'UcXPd':function(_0xf98d3f,_0x370a26){return _0xf98d3f(_0x370a26);}};if(_0x3190cd[_0x5bad72(0x1a5)](r))return(await _0x3190cd['oQAVe'](n))[_0x5bad72(0x1ae)]({'message':_0x54392d,'mask':'*'});return _0x3190cd[_0x5bad72(0x1d6)](ask,_0x54392d);}export async function multiSelect(_0x35b512,_0x5cc551,{defaultSelected:_0x58548b=[]}={}){const _0x1ba644=_0x62b1,_0xd4669a={'tOjFq':function(_0x41bb6c,_0x456dd5){return _0x41bb6c+_0x456dd5;},'YGfTy':function(_0x4a256a){return _0x4a256a();},'WEPif':_0x1ba644(0x19b),'ZgKRP':function(_0xd7c344,_0x5ec5bc,_0x497e5f){return _0xd7c344(_0x5ec5bc,_0x497e5f);},'rJmNP':function(_0x369fc1,_0x190f27){return _0x369fc1===_0x190f27;},'JFECf':function(_0x38cedf,_0x49cd66){return _0x38cedf===_0x49cd66;},'VfLog':'all','GPAyb':function(_0x1c3766,_0x4d73b9){return _0x1c3766===_0x4d73b9;},'Zhsrt':function(_0x3e6e35,_0x10c782){return _0x3e6e35===_0x10c782;}};if(0x0===_0x5cc551['length'])return[];if(_0xd4669a[_0x1ba644(0x1c9)](r)){const _0x25c4a5=await _0xd4669a['YGfTy'](n),_0x502021=_0x5cc551[_0x1ba644(0x1a9)]((_0x3c6d57,_0x212d28)=>({'name':_0x3c6d57[_0x1ba644(0x1d5)],'value':_0x212d28,'checked':_0x58548b[_0x1ba644(0x1b0)](_0x212d28)}));return await _0x25c4a5[_0x1ba644(0x192)]({'message':_0x35b512,'choices':_0x502021,'loop':!0x1,'required':!0x1});}console[_0x1ba644(0x1ad)](_0x35b512),_0x5cc551[_0x1ba644(0x19d)]((_0x2360a8,_0x4ab23d)=>{const _0x42ae6f=_0x1ba644,_0x1f2225=_0x58548b[_0x42ae6f(0x1b0)](_0x4ab23d);console[_0x42ae6f(0x1ad)](_0x42ae6f(0x1a2)+(_0x1f2225?'x':'\x20')+']\x20'+_0xd4669a[_0x42ae6f(0x1c5)](_0x4ab23d,0x1)+'.\x20'+_0x2360a8[_0x42ae6f(0x1d5)]);}),console[_0x1ba644(0x1ad)](_0xd4669a['WEPif']);const _0x374c87=_0x58548b['map'](_0x531cc7=>_0x531cc7+0x1)[_0x1ba644(0x1cc)](','),_0x26ec02=await _0xd4669a[_0x1ba644(0x1b5)](ask,'选择',{'defaultValue':_0x374c87}),_0x44c961=_0x26ec02[_0x1ba644(0x1a7)]()[_0x1ba644(0x1b4)]();if(_0xd4669a[_0x1ba644(0x1d8)]('a',_0x44c961)||_0xd4669a[_0x1ba644(0x1b6)](_0xd4669a[_0x1ba644(0x19e)],_0x44c961))return _0x5cc551['map']((_0x2e25fe,_0x56c87a)=>_0x56c87a);if(_0xd4669a[_0x1ba644(0x1cb)]('n',_0x44c961)||_0xd4669a[_0x1ba644(0x1b9)](_0x1ba644(0x1a4),_0x44c961))return[];const _0x12de3f=_0x26ec02[_0x1ba644(0x1a6)](/[,\s]+/)['map'](_0x59a25b=>parseInt(_0x59a25b,0xa))['filter'](_0x3f4846=>!isNaN(_0x3f4846)&&_0x3f4846>=0x1&&_0x3f4846<=_0x5cc551['length'])['map'](_0xc5f753=>_0xc5f753-0x1);return[...new Set(_0x12de3f)];}export async function select(_0x38f9c5,_0x579d51,{defaultIndex:_0xf6169c=0x0}={}){const _0x1a3782=_0x62b1,_0x24cb8c={'rIRQC':function(_0x10fee9,_0x5d54c9){return _0x10fee9===_0x5d54c9;},'SaPLU':_0x1a3782(0x1c8),'IPnwH':function(_0x5471c4,_0x4ec82d){return _0x5471c4+_0x4ec82d;},'dvjuK':function(_0x1eaaef,_0x5972b6){return _0x1eaaef===_0x5972b6;},'hTIGY':function(_0x5138db){return _0x5138db();},'FtTYA':function(_0x13f856){return _0x13f856();},'hVwDf':function(_0x2400e6,_0x3c5ab7,_0xcfc547){return _0x2400e6(_0x3c5ab7,_0xcfc547);},'qlMWL':_0x1a3782(0x1ba),'vyFxg':function(_0x1e8744,_0x2b54e2,_0x5d68b7){return _0x1e8744(_0x2b54e2,_0x5d68b7);},'zcexK':function(_0x493f45,_0x539ae6){return _0x493f45(_0x539ae6);},'NStts':function(_0x5a7cc0,_0x458b73){return _0x5a7cc0<_0x458b73;},'xSVfu':function(_0xe6e64a,_0xfe2739){return _0xe6e64a>_0xfe2739;}};if(_0x24cb8c['dvjuK'](0x0,_0x579d51[_0x1a3782(0x1c0)]))return-0x1;if(_0x24cb8c[_0x1a3782(0x191)](0x1,_0x579d51[_0x1a3782(0x1c0)]))return 0x0;if(_0x24cb8c[_0x1a3782(0x1c2)](r)){const _0x3cd4ea=await _0x24cb8c[_0x1a3782(0x196)](n),_0x1202bf=_0x579d51[_0x1a3782(0x1a9)]((_0xc915da,_0x306de2)=>({'name':_0xc915da[_0x1a3782(0x1d5)],'value':_0x306de2}));return _0x3cd4ea['select']({'message':_0x38f9c5,'choices':_0x1202bf,'default':_0xf6169c,'loop':!0x1});}console[_0x1a3782(0x1ad)](_0x38f9c5),_0x579d51['forEach']((_0x19561e,_0x4652bc)=>{const _0xeac209=_0x1a3782,_0x3b139d=_0x24cb8c['rIRQC'](_0x4652bc,_0xf6169c)?_0x24cb8c[_0xeac209(0x1c7)]:'';console[_0xeac209(0x1ad)]('\x20\x20'+_0x24cb8c['IPnwH'](_0x4652bc,0x1)+'.\x20'+_0x19561e['label']+_0x3b139d);});const _0x5c38fa=await _0x24cb8c[_0x1a3782(0x19f)](ask,_0x24cb8c[_0x1a3782(0x1a8)],{'defaultValue':String(_0x24cb8c['IPnwH'](_0xf6169c,0x1))}),_0x331df9=_0x24cb8c[_0x1a3782(0x190)](parseInt,_0x5c38fa,0xa);return _0x24cb8c[_0x1a3782(0x1a0)](isNaN,_0x331df9)||_0x24cb8c[_0x1a3782(0x1a3)](_0x331df9,0x1)||_0x24cb8c[_0x1a3782(0x198)](_0x331df9,_0x579d51['length'])?_0xf6169c:_0x331df9-0x1;}export async function confirm(_0x52b576,{defaultValue:_0x77b907=!0x0}={}){const _0x133824=_0x62b1,_0x138f28={'WgFCL':function(_0x2d1ae3){return _0x2d1ae3();},'RvbOI':_0x133824(0x1a1),'RimHS':_0x133824(0x1d1),'bWjlC':function(_0x481d9d,_0x4d6799,_0x58b937){return _0x481d9d(_0x4d6799,_0x58b937);},'psfdl':function(_0x143613,_0x15879d){return _0x143613===_0x15879d;}};if(_0x138f28[_0x133824(0x1bc)](r))return(await _0x138f28[_0x133824(0x1bc)](n))['confirm']({'message':_0x52b576,'default':_0x77b907});const _0x36def8=_0x77b907?_0x138f28['RvbOI']:_0x138f28[_0x133824(0x1d2)],_0x26cbd2=(await _0x138f28[_0x133824(0x19a)](ask,_0x52b576+'\x20('+_0x36def8+')',{'defaultValue':_0x77b907?'y':'n'}))[_0x133824(0x1a7)]()['toLowerCase']();return _0x26cbd2?_0x138f28[_0x133824(0x193)]('y',_0x26cbd2)||_0x138f28['psfdl'](_0x133824(0x195),_0x26cbd2):_0x77b907;}
@@ -1 +1 @@
1
- const _0x5f0485=_0x5227;(function(_0x300a20,_0x2c46e2){const _0x4a90cd=_0x5227,_0x3e2ec0=_0x300a20();while(!![]){try{const _0x8d2388=-parseInt(_0x4a90cd(0xeb))/0x1*(-parseInt(_0x4a90cd(0xf8))/0x2)+-parseInt(_0x4a90cd(0xe0))/0x3*(-parseInt(_0x4a90cd(0xfb))/0x4)+-parseInt(_0x4a90cd(0xe9))/0x5+parseInt(_0x4a90cd(0xee))/0x6+-parseInt(_0x4a90cd(0xe4))/0x7+parseInt(_0x4a90cd(0xdb))/0x8+-parseInt(_0x4a90cd(0xef))/0x9*(parseInt(_0x4a90cd(0xf6))/0xa);if(_0x8d2388===_0x2c46e2)break;else _0x3e2ec0['push'](_0x3e2ec0['shift']());}catch(_0xa39156){_0x3e2ec0['push'](_0x3e2ec0['shift']());}}}(_0x2867,0x20bf5));export const PLACEHOLDERS=['apiKey','baseUrl',_0x5f0485(0xf7),_0x5f0485(0xf2),'antigravityApiBase',_0x5f0485(0xda),_0x5f0485(0xec)];function _0x5227(_0x4d0fe7,_0x45af42){_0x4d0fe7=_0x4d0fe7-0xce;const _0x28670f=_0x2867();let _0x5227ac=_0x28670f[_0x4d0fe7];return _0x5227ac;}function _0x2867(){const _0x43af88=['hxRAq','USERPROFILE','antigravityApiBaseBeta','1023456NctsFo','KwgxA','env','replace','filter','3TnWyNY','AQjfB','isArray','prnZC','1105321fCwdxg','startsWith','object','map','hDgND','852990PHpXyz','{{modelContextWindow}}','20621bYDUYS','defaultModel','join','998208JiKEcv','832113DyFITu','sort','includes','apiBaseBeta','slice','kyRBq','EqsXN','20DNzafX','apiBase','22NNlckt','split','ugvIc','505668JVbJUM','localeCompare','xDzOb','SsZCx','lgeKB','name','auto_compact','xxjiy','{{autoCompactTokenLimit}}','SQsqG','string'];_0x2867=function(){return _0x43af88;};return _0x2867();}export function renderContent(_0x83afc1,_0x259be9){const _0x4c54ee=_0x5f0485,_0x21c000={'AQjfB':function(_0x421213,_0x5d105c){return _0x421213!=_0x5d105c;},'ugvIc':function(_0x4ee739,_0x45897a){return _0x4ee739(_0x45897a);}};if(!_0x83afc1)return'';let _0x1f02b2=_0x83afc1;for(const _0x543e98 of PLACEHOLDERS){const _0x551394=_0x259be9[_0x543e98];_0x21c000[_0x4c54ee(0xe1)](null,_0x551394)&&(_0x1f02b2=_0x1f02b2[_0x4c54ee(0xf9)]('{{'+_0x543e98+'}}')[_0x4c54ee(0xed)](_0x21c000[_0x4c54ee(0xfa)](String,_0x551394)));}return _0x1f02b2;}const t=_0x5f0485(0xea),e=_0x5f0485(0xd5);export function applyModelContextWindow(_0x2b0858,_0x426222,_0x5b883d){const _0x4ab4b4=_0x5f0485,_0xe95ef8={'hxRAq':_0x4ab4b4(0xe6),'vuQpB':function(_0x3d9328,_0x585f79){return _0x3d9328(_0x585f79);},'kyRBq':function(_0x2bd937,_0x285713){return _0x2bd937(_0x285713);},'aTDml':function(_0x267423,_0x3b6475){return _0x267423>_0x3b6475;},'SQsqG':function(_0x28baee,_0x561235){return _0x28baee>=_0x561235;}};if(!_0x2b0858)return'';if(!_0x2b0858[_0x4ab4b4(0xf1)](t)&&!_0x2b0858[_0x4ab4b4(0xf1)](e))return _0x2b0858;const _0xabbc8c=_0x426222&&_0xe95ef8[_0x4ab4b4(0xd8)]==typeof _0x426222?_0x426222[_0x5b883d]:null,_0x45fad6=_0xabbc8c?_0xe95ef8['vuQpB'](Number,_0xabbc8c['context']):NaN,_0x5eec97=_0xabbc8c?_0xe95ef8[_0x4ab4b4(0xf4)](Number,_0xabbc8c[_0x4ab4b4(0xd3)]):NaN;return Number['isInteger'](_0x45fad6)&&_0xe95ef8['aTDml'](_0x45fad6,0x0)&&Number['isInteger'](_0x5eec97)&&_0xe95ef8[_0x4ab4b4(0xd6)](_0x5eec97,0x0)?_0x2b0858['split'](t)['join'](_0xe95ef8['vuQpB'](String,_0x45fad6))[_0x4ab4b4(0xf9)](e)[_0x4ab4b4(0xed)](_0xe95ef8['vuQpB'](String,_0x5eec97)):_0x2b0858[_0x4ab4b4(0xf9)]('\x0a')[_0x4ab4b4(0xdf)](_0x3fdcda=>!_0x3fdcda[_0x4ab4b4(0xf1)](t)&&!_0x3fdcda[_0x4ab4b4(0xf1)](e))['join']('\x0a');}export function expandPath(_0x21682f,{isWindows:_0x47a478}={}){const _0x4f68d8=_0x5f0485,_0x3af5e7={'lgeKB':function(_0x4f93fd,_0x481f95){return _0x4f93fd+_0x481f95;}};if(!_0x21682f)return _0x21682f;if(_0x47a478){const _0x578722=process[_0x4f68d8(0xdd)][_0x4f68d8(0xd9)]||'';return _0x21682f[_0x4f68d8(0xde)](/^%userprofile%/i,_0x578722)[_0x4f68d8(0xde)](/^~/,_0x578722);}const _0x3d8e7a=process[_0x4f68d8(0xdd)]['HOME']||'';return'~'===_0x21682f?_0x3d8e7a:_0x21682f[_0x4f68d8(0xe5)]('~/')?_0x3af5e7[_0x4f68d8(0xd1)](_0x3d8e7a,_0x21682f[_0x4f68d8(0xf3)](0x1)):_0x21682f;}function n(_0x4bd5af){const _0x35b5bb=_0x5f0485,_0xfbbcc6={'SsZCx':function(_0xc82c6b,_0x4d7d30){return _0xc82c6b(_0x4d7d30);},'EqsXN':function(_0x48d861,_0x5acff1){return _0x48d861||_0x5acff1;},'prnZC':function(_0x305822,_0x38453c,_0x1d4863){return _0x305822(_0x38453c,_0x1d4863);}},_0x241a89=_0xfbbcc6[_0x35b5bb(0xd0)](String,_0xfbbcc6[_0x35b5bb(0xf5)](_0x4bd5af,''))['toLowerCase']()['match'](/(\d+)\.(\d+)/);return _0x241a89?[_0xfbbcc6[_0x35b5bb(0xe3)](parseInt,_0x241a89[0x1],0xa),_0xfbbcc6[_0x35b5bb(0xe3)](parseInt,_0x241a89[0x2],0xa)]:[0x0,0x0];}export function listModels(_0x41b04a){const _0x615130=_0x5f0485,_0x321fdb={'xDzOb':function(_0x49a651,_0xde08ab){return _0x49a651==_0xde08ab;},'CWxwh':_0x615130(0xd7),'xxjiy':function(_0x1f349a,_0x42a193){return _0x1f349a(_0x42a193);},'KwgxA':function(_0x184ed2,_0x1e0c0c){return _0x184ed2(_0x1e0c0c);},'hDgND':function(_0x2b9feb,_0x1c6960){return _0x2b9feb===_0x1c6960;}};if(!Array[_0x615130(0xe2)](_0x41b04a)||_0x321fdb[_0x615130(0xe8)](0x0,_0x41b04a['length']))return[];const _0x580bc3=_0x41b04a[_0x615130(0xe7)]((_0x4df2fa,_0x5e4bfe)=>{const _0x3e0468=_0x615130;if(_0x321fdb[_0x3e0468(0xcf)](_0x321fdb['CWxwh'],typeof _0x4df2fa))return{'index':_0x5e4bfe,'id':_0x4df2fa,'label':_0x4df2fa,'raw':_0x4df2fa};const _0xec4b38=_0x4df2fa['id']||_0x4df2fa['name']||_0x321fdb[_0x3e0468(0xd4)](String,_0x4df2fa);return{'index':_0x5e4bfe,'id':_0xec4b38,'label':_0x4df2fa[_0x3e0468(0xd2)]||_0x4df2fa['id']||_0xec4b38,'raw':_0x4df2fa};});return _0x580bc3[_0x615130(0xf0)]((_0x5786c9,_0x371b00)=>{const _0x38e2c3=_0x615130,_0x272ebc=n(_0x5786c9['id']),_0x1a7ddf=_0x321fdb[_0x38e2c3(0xd4)](n,_0x371b00['id']);return _0x1a7ddf[0x0]-_0x272ebc[0x0]||_0x1a7ddf[0x1]-_0x272ebc[0x1]||_0x321fdb[_0x38e2c3(0xd4)](String,_0x5786c9['id'])[_0x38e2c3(0xce)](_0x321fdb[_0x38e2c3(0xdc)](String,_0x371b00['id']));}),_0x580bc3;}
1
+ function _0x25a2(_0x22be8f,_0x5a9af0){_0x22be8f=_0x22be8f-0x6a;const _0x49f588=_0x49f5();let _0x25a2f4=_0x49f588[_0x22be8f];return _0x25a2f4;}const _0x35c759=_0x25a2;(function(_0x50e17d,_0x558cae){const _0x3a0ed3=_0x25a2,_0x2a8d40=_0x50e17d();while(!![]){try{const _0x4bd3f6=-parseInt(_0x3a0ed3(0x84))/0x1*(-parseInt(_0x3a0ed3(0x6e))/0x2)+-parseInt(_0x3a0ed3(0x94))/0x3*(parseInt(_0x3a0ed3(0x92))/0x4)+-parseInt(_0x3a0ed3(0x70))/0x5+-parseInt(_0x3a0ed3(0x83))/0x6+parseInt(_0x3a0ed3(0x7a))/0x7+-parseInt(_0x3a0ed3(0x87))/0x8+parseInt(_0x3a0ed3(0x79))/0x9;if(_0x4bd3f6===_0x558cae)break;else _0x2a8d40['push'](_0x2a8d40['shift']());}catch(_0x12b291){_0x2a8d40['push'](_0x2a8d40['shift']());}}}(_0x49f5,0x814c4));function _0x49f5(){const _0x2ede21=['join','baseUrl','PVjDZ','string','match','3251356jDyqfv','replace','3HiQOym','iQAEK','antigravityApiBase','length','includes','{{autoCompactTokenLimit}}','map','toLowerCase','hDHyJ','isArray','4AMjMIa','auto_compact','4877000sWtKPe','startsWith','TdKUA','gpXsU','isInteger','object','dJlXU','env','filter','29743407HYrZhF','641431ZADSTh','split','sort','apiKey','lxImT','defaultModel','VTjAJ','NLstX','slice','6277206hsyzCn','37178QaJduk','GkgiG','BGLcA','854144uIphaU','DCLPD','NQAbk','{{modelContextWindow}}','name','context'];_0x49f5=function(){return _0x2ede21;};return _0x49f5();}export const PLACEHOLDERS=[_0x35c759(0x7d),_0x35c759(0x8e),'apiBase','apiBaseBeta',_0x35c759(0x96),'antigravityApiBaseBeta',_0x35c759(0x7f)];export function renderContent(_0xa2385e,_0x793dc6){const _0x3136f7=_0x35c759,_0x2576db={'BGLcA':function(_0x17bff4,_0x2da7ca){return _0x17bff4!=_0x2da7ca;},'lxImT':function(_0x10cd38,_0x1a42af){return _0x10cd38(_0x1a42af);}};if(!_0xa2385e)return'';let _0x5b527a=_0xa2385e;for(const _0x3fd63f of PLACEHOLDERS){const _0x484bdd=_0x793dc6[_0x3fd63f];_0x2576db[_0x3136f7(0x86)](null,_0x484bdd)&&(_0x5b527a=_0x5b527a[_0x3136f7(0x7b)]('{{'+_0x3fd63f+'}}')['join'](_0x2576db[_0x3136f7(0x7e)](String,_0x484bdd)));}return _0x5b527a;}const t=_0x35c759(0x8a),e=_0x35c759(0x99);export function applyModelContextWindow(_0xa42252,_0x46be9e,_0x3b9749){const _0x34b133=_0x35c759,_0x3dbef1={'PVjDZ':function(_0x4a4ea8,_0x447e59){return _0x4a4ea8==_0x447e59;},'NLstX':function(_0x53d271,_0x500f9c){return _0x53d271(_0x500f9c);},'qBKdj':function(_0x5e5dcf,_0x2f1503){return _0x5e5dcf(_0x2f1503);},'EShId':function(_0xda6d32,_0x59437a){return _0xda6d32>_0x59437a;},'dJlXU':function(_0x1f41f1,_0x15ec35){return _0x1f41f1>=_0x15ec35;},'hDHyJ':function(_0x2f5210,_0x29f9f6){return _0x2f5210(_0x29f9f6);}};if(!_0xa42252)return'';if(!_0xa42252['includes'](t)&&!_0xa42252[_0x34b133(0x98)](e))return _0xa42252;const _0x2619e8=_0x46be9e&&_0x3dbef1[_0x34b133(0x8f)](_0x34b133(0x75),typeof _0x46be9e)?_0x46be9e[_0x3b9749]:null,_0x40a6a4=_0x2619e8?_0x3dbef1[_0x34b133(0x81)](Number,_0x2619e8[_0x34b133(0x8c)]):NaN,_0x14dc35=_0x2619e8?_0x3dbef1['qBKdj'](Number,_0x2619e8[_0x34b133(0x6f)]):NaN;return Number[_0x34b133(0x74)](_0x40a6a4)&&_0x3dbef1['EShId'](_0x40a6a4,0x0)&&Number[_0x34b133(0x74)](_0x14dc35)&&_0x3dbef1[_0x34b133(0x76)](_0x14dc35,0x0)?_0xa42252['split'](t)[_0x34b133(0x8d)](_0x3dbef1[_0x34b133(0x6c)](String,_0x40a6a4))[_0x34b133(0x7b)](e)['join'](_0x3dbef1[_0x34b133(0x6c)](String,_0x14dc35)):_0xa42252['split']('\x0a')[_0x34b133(0x78)](_0x2ae07b=>!_0x2ae07b['includes'](t)&&!_0x2ae07b[_0x34b133(0x98)](e))[_0x34b133(0x8d)]('\x0a');}export function expandPath(_0x47f149,{isWindows:_0x53d588}={}){const _0x15ccb6=_0x35c759,_0x16c83e={'NQAbk':function(_0xd90ce6,_0xb9308a){return _0xd90ce6+_0xb9308a;}};if(!_0x47f149)return _0x47f149;if(_0x53d588){const _0x5a20ee=process[_0x15ccb6(0x77)]['USERPROFILE']||'';return _0x47f149['replace'](/^%userprofile%/i,_0x5a20ee)[_0x15ccb6(0x93)](/^~/,_0x5a20ee);}const _0x1faad8=process[_0x15ccb6(0x77)]['HOME']||'';return'~'===_0x47f149?_0x1faad8:_0x47f149[_0x15ccb6(0x71)]('~/')?_0x16c83e[_0x15ccb6(0x89)](_0x1faad8,_0x47f149[_0x15ccb6(0x82)](0x1)):_0x47f149;}function n(_0x9c233){const _0xbee5d0=_0x35c759,_0x3ec624={'TdKUA':function(_0x5248eb,_0x9e11f9){return _0x5248eb(_0x9e11f9);},'DCLPD':function(_0x17b045,_0x2ab5b4,_0x422aaf){return _0x17b045(_0x2ab5b4,_0x422aaf);}},_0x28e696=_0x3ec624[_0xbee5d0(0x72)](String,_0x9c233||'')[_0xbee5d0(0x6b)]()[_0xbee5d0(0x91)](/(\d+)\.(\d+)/);return _0x28e696?[parseInt(_0x28e696[0x1],0xa),_0x3ec624[_0xbee5d0(0x88)](parseInt,_0x28e696[0x2],0xa)]:[0x0,0x0];}export function listModels(_0xcbd508){const _0x2ab98e=_0x35c759,_0x196b24={'iQAEK':function(_0x5bd9c0,_0x3a2f31){return _0x5bd9c0==_0x3a2f31;},'TSjFO':function(_0x2a4c65,_0x4720cb){return _0x2a4c65(_0x4720cb);},'gpXsU':function(_0x24bc1c,_0x2a5212){return _0x24bc1c(_0x2a5212);},'GkgiG':function(_0x2ac093,_0x191692){return _0x2ac093-_0x191692;},'VTjAJ':function(_0xafef7,_0x22261b){return _0xafef7===_0x22261b;}};if(!Array[_0x2ab98e(0x6d)](_0xcbd508)||_0x196b24[_0x2ab98e(0x80)](0x0,_0xcbd508[_0x2ab98e(0x97)]))return[];const _0x4701a5=_0xcbd508[_0x2ab98e(0x6a)]((_0x7b09ae,_0x3b4f3f)=>{const _0x8814f2=_0x2ab98e;if(_0x196b24[_0x8814f2(0x95)](_0x8814f2(0x90),typeof _0x7b09ae))return{'index':_0x3b4f3f,'id':_0x7b09ae,'label':_0x7b09ae,'raw':_0x7b09ae};const _0x435553=_0x7b09ae['id']||_0x7b09ae['name']||_0x196b24['TSjFO'](String,_0x7b09ae);return{'index':_0x3b4f3f,'id':_0x435553,'label':_0x7b09ae[_0x8814f2(0x8b)]||_0x7b09ae['id']||_0x435553,'raw':_0x7b09ae};});return _0x4701a5[_0x2ab98e(0x7c)]((_0x33ad96,_0x1b8072)=>{const _0xa4fe9=_0x2ab98e,_0x1ccfea=_0x196b24[_0xa4fe9(0x73)](n,_0x33ad96['id']),_0x2bfa8f=n(_0x1b8072['id']);return _0x196b24[_0xa4fe9(0x85)](_0x2bfa8f[0x0],_0x1ccfea[0x0])||_0x196b24[_0xa4fe9(0x85)](_0x2bfa8f[0x1],_0x1ccfea[0x1])||String(_0x33ad96['id'])['localeCompare'](_0x196b24[_0xa4fe9(0x73)](String,_0x1b8072['id']));}),_0x4701a5;}
package/dist/lib/ui.mjs CHANGED
@@ -1 +1 @@
1
- const _0x42d9bc=_0x214a;(function(_0x157021,_0x476870){const _0x3aa634=_0x214a,_0xb4b5f5=_0x157021();while(!![]){try{const _0x178abf=parseInt(_0x3aa634(0x131))/0x1*(-parseInt(_0x3aa634(0x123))/0x2)+-parseInt(_0x3aa634(0x129))/0x3*(parseInt(_0x3aa634(0x125))/0x4)+-parseInt(_0x3aa634(0x11d))/0x5+-parseInt(_0x3aa634(0x130))/0x6+parseInt(_0x3aa634(0x118))/0x7*(-parseInt(_0x3aa634(0x11f))/0x8)+parseInt(_0x3aa634(0x128))/0x9+parseInt(_0x3aa634(0x12d))/0xa;if(_0x178abf===_0x476870)break;else _0xb4b5f5['push'](_0xb4b5f5['shift']());}catch(_0x461b74){_0xb4b5f5['push'](_0xb4b5f5['shift']());}}}(_0x36f7,0xdb4bf));function _0x36f7(){const _0x50aa19=['14978fhHihq','../package.json','8owWNcP','log','\x20\x20\x20\x20启动:','10916541LPwwnO','1987737rlbHIS','yellow','red','inrYB','28684340gvRzrO','cyan','green','3751854WvVzBf','18PmYbke','\x20\x20____\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_\x20\x20\x20\x20\x20\x20\x20_\x0a\x20|___\x20\x5c\x20__\x20_\x20_\x20__\x20(_)\x20\x20___|\x20|_\x20___\x20\x20_\x20__\x20___\x0a\x20\x20\x20__)\x20/\x20_`\x20|\x20\x27_\x20\x5c|\x20|\x20/\x20__|\x20__/\x20_\x20\x5c|\x20\x27__/\x20_\x20\x5c\x0a\x20\x20/\x20__/\x20(_|\x20|\x20|_)\x20|\x20|_\x5c__\x20\x5c\x20||\x20(_)\x20|\x20|\x20|\x20\x20__/\x0a\x20|_____\x5c__,_|\x20.__/|_(_)___/\x5c__\x5c___/|_|\x20\x20\x5c___|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|_|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v','bold','startCmd','91NADaDO','启动\x20/\x20使用指南','trimEnd','\x20\x20▶\x20','name','2926035BOBoYU','replace','315488nVNwqz','warn','error','version'];_0x36f7=function(){return _0x50aa19;};return _0x36f7();}import _0x1aea2f from'chalk';import{createRequire as _0x350e0b}from'node:module';const n=_0x42d9bc(0x115)+_0x350e0b(import.meta.url)(_0x42d9bc(0x124))[_0x42d9bc(0x122)];export function banner(){const _0x185e51=_0x42d9bc;console[_0x185e51(0x126)](_0x1aea2f[_0x185e51(0x116)]['cyan'](n[_0x185e51(0x11e)](/^\n/,'')[_0x185e51(0x11a)]()));}export function ok(_0x4883c4){const _0x490261=_0x42d9bc;console['log'](_0x1aea2f[_0x490261(0x12f)]('✓\x20'+_0x4883c4));}export function fail(_0x43fd78){const _0x2547b2=_0x42d9bc;console[_0x2547b2(0x121)](_0x1aea2f[_0x2547b2(0x12b)]('✗\x20'+_0x43fd78));}export function warn(_0x40fdba){const _0x5a43a1=_0x42d9bc;console[_0x5a43a1(0x120)](_0x1aea2f[_0x5a43a1(0x12a)]('⚠\x20'+_0x40fdba));}export function info(_0x338fd8){const _0x1a2949=_0x42d9bc;console[_0x1a2949(0x126)](_0x1aea2f['blue']('ℹ\x20'+_0x338fd8));}export function step(_0xc3b45d){const _0x4e6ca8=_0x42d9bc;console[_0x4e6ca8(0x126)](),console['log'](_0x1aea2f[_0x4e6ca8(0x116)][_0x4e6ca8(0x12e)]('■\x20'+_0xc3b45d));}export function guide(_0x19935d){const _0x9588c0=_0x42d9bc,_0x2bb72a={'inrYB':_0x9588c0(0x119)};if(_0x19935d&&0x0!==_0x19935d['length']){step(_0x2bb72a[_0x9588c0(0x12c)]);for(const _0x74c58f of _0x19935d){const _0x42850a=_0x1aea2f[_0x9588c0(0x116)][_0x9588c0(0x12f)](_0x9588c0(0x11b)+_0x74c58f[_0x9588c0(0x11c)]),_0xfdb6c1=_0x1aea2f[_0x9588c0(0x12f)](_0x9588c0(0x127)+_0x74c58f[_0x9588c0(0x117)]),_0x4bbade=_0x1aea2f['dim'](_0x74c58f['usage']||'');console['log'](_0x42850a),console[_0x9588c0(0x126)](_0xfdb6c1),_0x4bbade&&console['log'](_0x4bbade),console['log']();}}}function _0x214a(_0x204e93,_0x2e67dd){_0x204e93=_0x204e93-0x115;const _0x36f773=_0x36f7();let _0x214aad=_0x36f773[_0x204e93];return _0x214aad;}export function plain(_0x3bd641){const _0x5ae0f6=_0x42d9bc;console[_0x5ae0f6(0x126)](_0x3bd641);}export{_0x1aea2f as chalk};
1
+ const _0x3858ed=_0x27cd;(function(_0x1b23d1,_0x26ab1e){const _0x2f8c3d=_0x27cd,_0x2e476d=_0x1b23d1();while(!![]){try{const _0x4d05d2=-parseInt(_0x2f8c3d(0x14f))/0x1*(parseInt(_0x2f8c3d(0x149))/0x2)+parseInt(_0x2f8c3d(0x15b))/0x3*(parseInt(_0x2f8c3d(0x146))/0x4)+parseInt(_0x2f8c3d(0x153))/0x5+-parseInt(_0x2f8c3d(0x14e))/0x6+-parseInt(_0x2f8c3d(0x156))/0x7+-parseInt(_0x2f8c3d(0x14b))/0x8*(parseInt(_0x2f8c3d(0x14a))/0x9)+parseInt(_0x2f8c3d(0x14d))/0xa;if(_0x4d05d2===_0x26ab1e)break;else _0x2e476d['push'](_0x2e476d['shift']());}catch(_0x172285){_0x2e476d['push'](_0x2e476d['shift']());}}}(_0x22f8,0xe0450));import _0xcbe7ad from'chalk';import{createRequire as _0x5b2a13}from'node:module';const n=_0x3858ed(0x154)+_0x5b2a13(import.meta.url)('../package.json')[_0x3858ed(0x159)];export function banner(){const _0x2ddb88=_0x3858ed;console[_0x2ddb88(0x14c)](_0xcbe7ad[_0x2ddb88(0x150)][_0x2ddb88(0x145)](n['replace'](/^\n/,'')[_0x2ddb88(0x148)]()));}function _0x27cd(_0x17a1d1,_0x5050cd){_0x17a1d1=_0x17a1d1-0x140;const _0x22f88f=_0x22f8();let _0x27cd58=_0x22f88f[_0x17a1d1];return _0x27cd58;}export function ok(_0x36d6cf){const _0x35f2f5=_0x3858ed;console['log'](_0xcbe7ad[_0x35f2f5(0x141)]('✓\x20'+_0x36d6cf));}export function fail(_0x1385bf){const _0xd80c89=_0x3858ed;console[_0xd80c89(0x157)](_0xcbe7ad[_0xd80c89(0x142)]('✗\x20'+_0x1385bf));}export function warn(_0x319aad){const _0x4c5d01=_0x3858ed;console[_0x4c5d01(0x147)](_0xcbe7ad[_0x4c5d01(0x15c)]('⚠\x20'+_0x319aad));}export function info(_0x11ad7a){const _0x847046=_0x3858ed;console[_0x847046(0x14c)](_0xcbe7ad[_0x847046(0x15a)]('ℹ\x20'+_0x11ad7a));}export function step(_0x583158){const _0x324d52=_0x3858ed;console['log'](),console[_0x324d52(0x14c)](_0xcbe7ad[_0x324d52(0x150)][_0x324d52(0x145)]('■\x20'+_0x583158));}export function guide(_0x45e7ef){const _0x30f35f=_0x3858ed,_0x28324c={'szZmE':function(_0x55a89a,_0x1cb820){return _0x55a89a!==_0x1cb820;},'OXimn':function(_0x37a805,_0x44a35b){return _0x37a805(_0x44a35b);},'uesCn':_0x30f35f(0x155)};if(_0x45e7ef&&_0x28324c['szZmE'](0x0,_0x45e7ef[_0x30f35f(0x143)])){_0x28324c[_0x30f35f(0x158)](step,_0x28324c['uesCn']);for(const _0x2b6f95 of _0x45e7ef){const _0x5230dd=_0xcbe7ad[_0x30f35f(0x150)]['green']('\x20\x20▶\x20'+_0x2b6f95[_0x30f35f(0x152)]),_0x2d9f56=_0xcbe7ad[_0x30f35f(0x141)](_0x30f35f(0x140)+_0x2b6f95[_0x30f35f(0x151)]),_0x2be115=_0xcbe7ad['dim'](_0x2b6f95[_0x30f35f(0x144)]||'');console[_0x30f35f(0x14c)](_0x5230dd),console[_0x30f35f(0x14c)](_0x2d9f56),_0x2be115&&console[_0x30f35f(0x14c)](_0x2be115),console[_0x30f35f(0x14c)]();}}}export function plain(_0x216a02){const _0x5634e4=_0x3858ed;console[_0x5634e4(0x14c)](_0x216a02);}function _0x22f8(){const _0x52d29b=['startCmd','name','9182700dzETsZ','\x20\x20____\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_\x20\x20\x20\x20\x20\x20\x20_\x0a\x20|___\x20\x5c\x20__\x20_\x20_\x20__\x20(_)\x20\x20___|\x20|_\x20___\x20\x20_\x20__\x20___\x0a\x20\x20\x20__)\x20/\x20_`\x20|\x20\x27_\x20\x5c|\x20|\x20/\x20__|\x20__/\x20_\x20\x5c|\x20\x27__/\x20_\x20\x5c\x0a\x20\x20/\x20__/\x20(_|\x20|\x20|_)\x20|\x20|_\x5c__\x20\x5c\x20||\x20(_)\x20|\x20|\x20|\x20\x20__/\x0a\x20|_____\x5c__,_|\x20.__/|_(_)___/\x5c__\x5c___/|_|\x20\x20\x5c___|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|_|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v','启动\x20/\x20使用指南','7836220iGUXau','error','OXimn','version','blue','1866uIaAdt','yellow','\x20\x20\x20\x20启动:','green','red','length','usage','cyan','7564DFrJUA','warn','trimEnd','682222GVRcrL','13308471IXeupr','8yadINc','log','36919100RfMchB','10940526SWoIJS','4YxSiXO','bold'];_0x22f8=function(){return _0x52d29b;};return _0x22f8();}export{_0xcbe7ad as chalk};
@@ -1 +1 @@
1
- const _0x1fc8f4=_0x2759;(function(_0x4b65aa,_0x8e0033){const _0x277b14=_0x2759,_0x1e7916=_0x4b65aa();while(!![]){try{const _0xc9e75d=parseInt(_0x277b14(0x1bd))/0x1*(-parseInt(_0x277b14(0x1aa))/0x2)+-parseInt(_0x277b14(0x1bb))/0x3*(-parseInt(_0x277b14(0x1ab))/0x4)+parseInt(_0x277b14(0x1ac))/0x5*(parseInt(_0x277b14(0x1a2))/0x6)+parseInt(_0x277b14(0x1ad))/0x7+-parseInt(_0x277b14(0x1af))/0x8+parseInt(_0x277b14(0x1b3))/0x9+parseInt(_0x277b14(0x1a4))/0xa*(-parseInt(_0x277b14(0x1ae))/0xb);if(_0xc9e75d===_0x8e0033)break;else _0x1e7916['push'](_0x1e7916['shift']());}catch(_0x368dc4){_0x1e7916['push'](_0x1e7916['shift']());}}}(_0x4a55,0x307b5));function _0x4a55(){const _0x56911f=['3124044IhylSL','SdMEJ','mkdirSync','code','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','has','writeFileSync','PogqT','3BNdSci','写入失败:','140431WnQGaj','1018572XHEFfP','VDYIj','970VFETew','cause','path','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','dirname','EACCES','2NutLlt','501284YBgVdX','5CuwCTj','18781WXLihJ','16852qUBbuv','1258128wKacQw',')\x0a\x20\x20','utf8','PermissionDeniedError'];_0x4a55=function(){return _0x56911f;};return _0x4a55();}import _0x370778 from'node:fs';import _0x589360 from'node:path';function _0x2759(_0x795b3b,_0x2bef0c){_0x795b3b=_0x795b3b-0x1a2;const _0x4a559a=_0x4a55();let _0x27597b=_0x4a559a[_0x795b3b];return _0x27597b;}const o=new Set([_0x1fc8f4(0x1a9),'EPERM','EROFS']);export class PermissionDeniedError extends Error{constructor(_0x5c47f9,_0x552a09,_0x36412a){const _0x4a74df=_0x1fc8f4,_0x35075c={'PogqT':_0x4a74df(0x1b7),'SdMEJ':_0x4a74df(0x1b2)},_0x39ca0a=_0x36412a?_0x35075c[_0x4a74df(0x1ba)]:_0x4a74df(0x1a7);super(_0x4a74df(0x1bc)+_0x5c47f9+'('+(_0x552a09[_0x4a74df(0x1b6)]||_0x552a09['message'])+_0x4a74df(0x1b0)+_0x39ca0a),this['name']=_0x35075c[_0x4a74df(0x1b4)],this[_0x4a74df(0x1b6)]=_0x552a09[_0x4a74df(0x1b6)],this[_0x4a74df(0x1a6)]=_0x5c47f9,this[_0x4a74df(0x1a5)]=_0x552a09;}}export function writeFileWithPermission(_0x1748cd,_0x51051c,{isWindows:_0x274c17=!0x1}={}){const _0x20def5=_0x1fc8f4,_0x544696={'VDYIj':_0x20def5(0x1b1)},_0x179746=_0x589360[_0x20def5(0x1a8)](_0x1748cd);try{_0x370778[_0x20def5(0x1b5)](_0x179746,{'recursive':!0x0});}catch(_0x3fec64){if(o[_0x20def5(0x1b8)](_0x3fec64[_0x20def5(0x1b6)]))throw new PermissionDeniedError(_0x1748cd,_0x3fec64,_0x274c17);throw _0x3fec64;}try{_0x370778[_0x20def5(0x1b9)](_0x1748cd,_0x51051c,{'encoding':_0x544696[_0x20def5(0x1a3)],'mode':0x180});}catch(_0xfdae1b){if(o[_0x20def5(0x1b8)](_0xfdae1b['code']))throw new PermissionDeniedError(_0x1748cd,_0xfdae1b,_0x274c17);throw _0xfdae1b;}return _0x1748cd;}
1
+ const _0x8538b2=_0xa5f7;(function(_0x327807,_0x3982a0){const _0x5d533d=_0xa5f7,_0x4708c2=_0x327807();while(!![]){try{const _0x4d273a=-parseInt(_0x5d533d(0x129))/0x1+parseInt(_0x5d533d(0x127))/0x2+parseInt(_0x5d533d(0x12d))/0x3*(-parseInt(_0x5d533d(0x123))/0x4)+-parseInt(_0x5d533d(0x121))/0x5*(-parseInt(_0x5d533d(0x12c))/0x6)+parseInt(_0x5d533d(0x125))/0x7*(parseInt(_0x5d533d(0x126))/0x8)+parseInt(_0x5d533d(0x12f))/0x9+-parseInt(_0x5d533d(0x11f))/0xa;if(_0x4d273a===_0x3982a0)break;else _0x4708c2['push'](_0x4708c2['shift']());}catch(_0x3bedde){_0x4708c2['push'](_0x4708c2['shift']());}}}(_0x59b8,0x7a9ba));import _0x3706b1 from'node:fs';import _0xb09cf3 from'node:path';function _0xa5f7(_0x400637,_0x5cecf3){_0x400637=_0x400637-0x11a;const _0x59b8d2=_0x59b8();let _0xa5f790=_0x59b8d2[_0x400637];return _0xa5f790;}const o=new Set([_0x8538b2(0x11c),'EPERM',_0x8538b2(0x128)]);function _0x59b8(){const _0x577004=['name','6rjbBYr','1227522SXrtcC',')\x0a\x20\x20','7509141qeFXkd','has','code','EACCES','writeFileSync','mkdirSync','6159900DMabPM','message','2952825BvMQzb','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','8FgIeUG','utf8','7MKgozc','4503592AfLwfV','1505050IubgoD','EROFS','803848TlXhAU','cause'];_0x59b8=function(){return _0x577004;};return _0x59b8();}export class PermissionDeniedError extends Error{constructor(_0x55424f,_0x105479,_0x55d8c0){const _0x55f9cc=_0x8538b2,_0x5c3976={'RrTyV':'PermissionDeniedError'},_0x74e445=_0x55d8c0?'请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22':_0x55f9cc(0x122);super('写入失败:'+_0x55424f+'('+(_0x105479[_0x55f9cc(0x11b)]||_0x105479[_0x55f9cc(0x120)])+_0x55f9cc(0x12e)+_0x74e445),this[_0x55f9cc(0x12b)]=_0x5c3976['RrTyV'],this[_0x55f9cc(0x11b)]=_0x105479[_0x55f9cc(0x11b)],this['path']=_0x55424f,this[_0x55f9cc(0x12a)]=_0x105479;}}export function writeFileWithPermission(_0x36eec5,_0x12f1c6,{isWindows:_0x28c004=!0x1}={}){const _0x39556a=_0x8538b2,_0x184012=_0xb09cf3['dirname'](_0x36eec5);try{_0x3706b1[_0x39556a(0x11e)](_0x184012,{'recursive':!0x0});}catch(_0x24d3b3){if(o[_0x39556a(0x11a)](_0x24d3b3[_0x39556a(0x11b)]))throw new PermissionDeniedError(_0x36eec5,_0x24d3b3,_0x28c004);throw _0x24d3b3;}try{_0x3706b1[_0x39556a(0x11d)](_0x36eec5,_0x12f1c6,{'encoding':_0x39556a(0x124),'mode':0x180});}catch(_0x22b52a){if(o['has'](_0x22b52a[_0x39556a(0x11b)]))throw new PermissionDeniedError(_0x36eec5,_0x22b52a,_0x28c004);throw _0x22b52a;}return _0x36eec5;}
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@2api-store/activate",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "type": "module"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2api-store/activate",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "TokenShop CLI 一键激活:配置本地 codex/claude/gemini/grok/opencode 指向 2api.store 中转(彩色输出 + 自动安装 CLI)",
5
5
  "type": "module",
6
6
  "bin": {