@2api-store/activate 0.9.0 → 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(_0x3c7459,_0x5b943e){const _0x1ec6a6=_0xb632,_0x4bd109=_0x3c7459();while(!![]){try{const _0x517abb=parseInt(_0x1ec6a6(0x122))/0x1+parseInt(_0x1ec6a6(0xe9))/0x2*(-parseInt(_0x1ec6a6(0x11d))/0x3)+-parseInt(_0x1ec6a6(0xef))/0x4+-parseInt(_0x1ec6a6(0xf9))/0x5*(parseInt(_0x1ec6a6(0x109))/0x6)+parseInt(_0x1ec6a6(0xfb))/0x7*(parseInt(_0x1ec6a6(0x121))/0x8)+-parseInt(_0x1ec6a6(0x120))/0x9+parseInt(_0x1ec6a6(0xed))/0xa;if(_0x517abb===_0x5b943e)break;else _0x4bd109['push'](_0x4bd109['shift']());}catch(_0x3287d9){_0x4bd109['push'](_0x4bd109['shift']());}}}(_0x33de,0xc4a6c));import _0x23a74a from'node:readline';let t=null;async function n(){const _0x5659d8={'tXeAP':'@inquirer/prompts'};return t||(t=await import(_0x5659d8['tXeAP'])),t;}let a=null,s=null,o=null;function r(){const _0x35058a=_0xb632;return!0x0===process[_0x35058a(0xf7)][_0x35058a(0x103)];}export function closePrompt(){a&&!a['closed']&&a['close'](),a=null;}function _0x33de(){const _0x299ca8=['destroyed','filter','44608160wEXZYV','Hawsv','4909124VGHRio','label','tolPv','BBmKN','length','select','\x20\x20[','push','stdin','xAytf','11325OHFIJY','iwRYx','65569wJMIBl','RcAfX','bZGHq','\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','none','yes','password','toLowerCase','isTTY','input','\x20(默认)','rnwEU','kpmwo','WAfiU','3930aAmciD','log','BcZEc','Y/n','includes','kvbQo','stdout','VrXeg','write','all','yyXYi','dAgAC','vplUM','data','miSvM','emPTF','forEach','pop','trim','hCzpk','3koFsav','vAgbx','split','13051629oACLoF','688zQWsvC','1276897RXljNU','wJuRU','map','setEncoding','txFDn','pQSNP','shift','utf8','OPSbX','end','wgIPa','3153508GWtwjw','pDImy'];_0x33de=function(){return _0x299ca8;};return _0x33de();}function _0xb632(_0x5573c4,_0x5d80c1){_0x5573c4=_0x5573c4-0xe0;const _0x33ded2=_0x33de();let _0xb632ba=_0x33ded2[_0x5573c4];return _0xb632ba;}export async function ask(_0x3e9f4f,{defaultValue:_0x565e0b}={}){const _0x3e51c4=_0xb632,_0xdefb0d={'dAgAC':function(_0x498e7a,_0x262840){return _0x498e7a>_0x262840;},'VrXeg':function(_0x38bd74,_0x19a9db){return _0x38bd74===_0x19a9db;},'YNPBX':function(_0x3a4cf2,_0x14fad2){return _0x3a4cf2-_0x14fad2;},'BBmKN':function(_0x342ead){return _0x342ead();},'iwRYx':_0x3e51c4(0xe5),'wgIPa':_0x3e51c4(0x116),'tolPv':function(_0x568278){return _0x568278();},'emPTF':function(_0x2497b5,_0x26c70d){return _0x2497b5??_0x26c70d;},'RcAfX':function(_0x41767d,_0x597b84){return _0x41767d??_0x597b84;},'ocZHj':function(_0x4fee2,_0x28301e){return _0x4fee2??_0x28301e;}},_0x4d5e11=_0x565e0b?'\x20['+_0x565e0b+']':'';if(r()){const _0x5f28aa=await _0xdefb0d[_0x3e51c4(0xf1)](n);return await _0x5f28aa[_0x3e51c4(0x104)]({'message':''+_0x3e9f4f+_0x4d5e11,'default':_0xdefb0d[_0x3e51c4(0x118)](_0x565e0b,'')})||_0xdefb0d[_0x3e51c4(0xfc)](_0x565e0b,'');}await(s||(s=[],o=new Promise(_0xfb8608=>{const _0x26d182=_0x3e51c4;let _0xb7990f='';process['stdin'][_0x26d182(0xe1)](_0xdefb0d[_0x26d182(0xfa)]),process[_0x26d182(0xf7)]['on'](_0xdefb0d[_0x26d182(0xe8)],_0x17e5ce=>{_0xb7990f+=_0x17e5ce;}),process[_0x26d182(0xf7)]['on'](_0x26d182(0xe7),()=>{const _0x324361=_0x26d182,_0x43fe74=_0xb7990f[_0x324361(0x11f)](/\r?\n/);_0xdefb0d[_0x324361(0x114)](_0x43fe74[_0x324361(0xf3)],0x0)&&_0xdefb0d[_0x324361(0x110)]('',_0x43fe74[_0xdefb0d['YNPBX'](_0x43fe74['length'],0x1)])&&_0x43fe74[_0x324361(0x11a)](),s[_0x324361(0xf6)](..._0x43fe74),_0xdefb0d[_0x324361(0xf2)](_0xfb8608);}),process['stdin'][_0x26d182(0xeb)]&&_0xdefb0d[_0x26d182(0xf2)](_0xfb8608);})),o);const _0x3d63a8=s[_0x3e51c4(0xe4)]()??'';return process[_0x3e51c4(0x10f)][_0x3e51c4(0x111)](''+_0x3e9f4f+_0x4d5e11+':\x20'+_0x3d63a8+'\x0a'),_0x3d63a8[_0x3e51c4(0x11b)]()||_0xdefb0d['ocZHj'](_0x565e0b,'');}export async function askSecret(_0x3ed258){const _0x147b49=_0xb632,_0x562a67={'xAytf':function(_0x2eee71){return _0x2eee71();},'Hawsv':function(_0x1880fe){return _0x1880fe();},'hCzpk':function(_0x1dc680,_0x21dcfb){return _0x1dc680(_0x21dcfb);}};if(_0x562a67[_0x147b49(0xf8)](r))return(await _0x562a67[_0x147b49(0xee)](n))[_0x147b49(0x101)]({'message':_0x3ed258,'mask':'*'});return _0x562a67[_0x147b49(0x11c)](ask,_0x3ed258);}export async function multiSelect(_0x10f7df,_0x4324bc,{defaultSelected:_0x560cc1=[]}={}){const _0x4ebb63=_0xb632,_0x11c2d0={'OPSbX':function(_0x14f0d3,_0x3d2e2c){return _0x14f0d3+_0x3d2e2c;},'UlLXL':function(_0x1aff67){return _0x1aff67();},'Tiaxd':function(_0x3f6e84){return _0x3f6e84();},'WAfiU':_0x4ebb63(0xfe),'kpmwo':function(_0x286480,_0x3925a4,_0x1594ec){return _0x286480(_0x3925a4,_0x1594ec);},'zyykw':_0x4ebb63(0x112),'BcZEc':function(_0x2b5407,_0xf3421){return _0x2b5407===_0xf3421;},'pDImy':function(_0x19c1ca,_0x34aac2){return _0x19c1ca===_0x34aac2;}};if(0x0===_0x4324bc[_0x4ebb63(0xf3)])return[];if(_0x11c2d0['UlLXL'](r)){const _0x1c1df8=await _0x11c2d0['Tiaxd'](n),_0x181300=_0x4324bc[_0x4ebb63(0xe0)]((_0x3f7389,_0x4a592b)=>({'name':_0x3f7389[_0x4ebb63(0xf0)],'value':_0x4a592b,'checked':_0x560cc1[_0x4ebb63(0x10d)](_0x4a592b)}));return await _0x1c1df8['checkbox']({'message':_0x10f7df,'choices':_0x181300,'loop':!0x1,'required':!0x1});}console[_0x4ebb63(0x10a)](_0x10f7df),_0x4324bc[_0x4ebb63(0x119)]((_0x26f918,_0x6c1523)=>{const _0xfd6f43=_0x4ebb63,_0x34408c=_0x560cc1[_0xfd6f43(0x10d)](_0x6c1523);console[_0xfd6f43(0x10a)](_0xfd6f43(0xf5)+(_0x34408c?'x':'\x20')+']\x20'+_0x11c2d0[_0xfd6f43(0xe6)](_0x6c1523,0x1)+'.\x20'+_0x26f918[_0xfd6f43(0xf0)]);}),console[_0x4ebb63(0x10a)](_0x11c2d0[_0x4ebb63(0x108)]);const _0x25960d=_0x560cc1[_0x4ebb63(0xe0)](_0xda17ce=>_0xda17ce+0x1)['join'](','),_0x2470b9=await _0x11c2d0[_0x4ebb63(0x107)](ask,'选择',{'defaultValue':_0x25960d}),_0x12193e=_0x2470b9['trim']()['toLowerCase']();if('a'===_0x12193e||_0x11c2d0['zyykw']===_0x12193e)return _0x4324bc[_0x4ebb63(0xe0)]((_0x592f83,_0x4785bc)=>_0x4785bc);if(_0x11c2d0[_0x4ebb63(0x10b)]('n',_0x12193e)||_0x11c2d0[_0x4ebb63(0xea)](_0x4ebb63(0xff),_0x12193e))return[];const _0x390f98=_0x2470b9['split'](/[,\s]+/)[_0x4ebb63(0xe0)](_0xa0d2ad=>parseInt(_0xa0d2ad,0xa))[_0x4ebb63(0xec)](_0x512cda=>!isNaN(_0x512cda)&&_0x512cda>=0x1&&_0x512cda<=_0x4324bc['length'])[_0x4ebb63(0xe0)](_0x49d9a6=>_0x49d9a6-0x1);return[...new Set(_0x390f98)];}export async function select(_0x6fd961,_0x2f4eed,{defaultIndex:_0x6dfea9=0x0}={}){const _0x4e3480=_0xb632,_0x39f784={'pQSNP':function(_0x453844,_0x171cbe){return _0x453844+_0x171cbe;},'miSvM':function(_0xad5475,_0x451bce){return _0xad5475===_0x451bce;},'txFDn':function(_0x29ac62){return _0x29ac62();},'VQhnr':'选择序号','vAgbx':function(_0x2f12c2,_0x1aa303){return _0x2f12c2(_0x1aa303);},'oDfLL':function(_0x2a767d,_0x1dbe2b){return _0x2a767d+_0x1dbe2b;},'bZGHq':function(_0x475580,_0x3e3dcc,_0x5977ec){return _0x475580(_0x3e3dcc,_0x5977ec);},'yyXYi':function(_0x4be7fe,_0x306176){return _0x4be7fe<_0x306176;},'rnwEU':function(_0x3bfe09,_0x2e8ea6){return _0x3bfe09>_0x2e8ea6;}};if(_0x39f784['miSvM'](0x0,_0x2f4eed[_0x4e3480(0xf3)]))return-0x1;if(_0x39f784[_0x4e3480(0x117)](0x1,_0x2f4eed[_0x4e3480(0xf3)]))return 0x0;if(r()){const _0x443a06=await _0x39f784[_0x4e3480(0xe2)](n),_0x377094=_0x2f4eed['map']((_0x61f736,_0x192e4a)=>({'name':_0x61f736[_0x4e3480(0xf0)],'value':_0x192e4a}));return _0x443a06[_0x4e3480(0xf4)]({'message':_0x6fd961,'choices':_0x377094,'default':_0x6dfea9,'loop':!0x1});}console[_0x4e3480(0x10a)](_0x6fd961),_0x2f4eed[_0x4e3480(0x119)]((_0x1a7987,_0x4cebdb)=>{const _0x346c02=_0x4e3480,_0x28fac9=_0x4cebdb===_0x6dfea9?_0x346c02(0x105):'';console[_0x346c02(0x10a)]('\x20\x20'+_0x39f784[_0x346c02(0xe3)](_0x4cebdb,0x1)+'.\x20'+_0x1a7987[_0x346c02(0xf0)]+_0x28fac9);});const _0x134a63=await ask(_0x39f784['VQhnr'],{'defaultValue':_0x39f784[_0x4e3480(0x11e)](String,_0x39f784['oDfLL'](_0x6dfea9,0x1))}),_0x49bf89=_0x39f784[_0x4e3480(0xfd)](parseInt,_0x134a63,0xa);return _0x39f784['vAgbx'](isNaN,_0x49bf89)||_0x39f784[_0x4e3480(0x113)](_0x49bf89,0x1)||_0x39f784[_0x4e3480(0x106)](_0x49bf89,_0x2f4eed[_0x4e3480(0xf3)])?_0x6dfea9:_0x49bf89-0x1;}export async function confirm(_0x129947,{defaultValue:_0x4e64db=!0x0}={}){const _0x2e20b1=_0xb632,_0x58ef20={'kvbQo':function(_0x1324b7){return _0x1324b7();},'vplUM':'y/N','wJuRU':function(_0x3aeb14,_0x40aa99){return _0x3aeb14===_0x40aa99;},'wCgWD':_0x2e20b1(0x100)};if(_0x58ef20[_0x2e20b1(0x10e)](r))return(await _0x58ef20[_0x2e20b1(0x10e)](n))['confirm']({'message':_0x129947,'default':_0x4e64db});const _0x56a11e=_0x4e64db?_0x2e20b1(0x10c):_0x58ef20[_0x2e20b1(0x115)],_0x562976=(await ask(_0x129947+'\x20('+_0x56a11e+')',{'defaultValue':_0x4e64db?'y':'n'}))[_0x2e20b1(0x11b)]()[_0x2e20b1(0x102)]();return _0x562976?_0x58ef20['wJuRU']('y',_0x562976)||_0x58ef20[_0x2e20b1(0x123)](_0x58ef20['wCgWD'],_0x562976):_0x4e64db;}
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 _0x5c47a4=_0x5079;(function(_0x443fea,_0xe571fa){const _0x33f2e1=_0x5079,_0x257811=_0x443fea();while(!![]){try{const _0x2d5dcc=parseInt(_0x33f2e1(0x211))/0x1*(parseInt(_0x33f2e1(0x204))/0x2)+-parseInt(_0x33f2e1(0x20d))/0x3*(parseInt(_0x33f2e1(0x1f9))/0x4)+parseInt(_0x33f2e1(0x212))/0x5+-parseInt(_0x33f2e1(0x20b))/0x6*(parseInt(_0x33f2e1(0x20a))/0x7)+-parseInt(_0x33f2e1(0x21c))/0x8*(parseInt(_0x33f2e1(0x1ee))/0x9)+-parseInt(_0x33f2e1(0x21b))/0xa*(parseInt(_0x33f2e1(0x203))/0xb)+parseInt(_0x33f2e1(0x1fc))/0xc*(parseInt(_0x33f2e1(0x213))/0xd);if(_0x2d5dcc===_0xe571fa)break;else _0x257811['push'](_0x257811['shift']());}catch(_0x16f4b0){_0x257811['push'](_0x257811['shift']());}}}(_0x3c92,0xb4feb));function _0x3c92(){const _0x463ade=['192VCapWw','AOrEA','antigravityApiBaseBeta','isInteger','match','isArray','env','39666hULOyb','396158uXHbTm','auto_compact','map','LIEgF','LveCo','WzAZT','357DFdYSI','123540gmRgFY','object','792237XZfcWv','defaultModel','sort','includes','5XQHpvM','1892905dkYrsm','2152735wFNaWL','join','length','ZoqxF','veFGj','keWCm','filter','apiBaseBeta','3550EKiIZb','8KfmWJp','IUKIW','slice','split','ZsBub','6145578ugMEAF','toLowerCase','bTpPT','qGPNl','RymHQ','USERPROFILE','context','startsWith','baseUrl','vhlDn','apiKey','4KrUeNl','antigravityApiBase','replace'];_0x3c92=function(){return _0x463ade;};return _0x3c92();}export const PLACEHOLDERS=[_0x5c47a4(0x1f8),_0x5c47a4(0x1f6),'apiBase',_0x5c47a4(0x21a),_0x5c47a4(0x1fa),_0x5c47a4(0x1fe),_0x5c47a4(0x20e)];export function renderContent(_0x582e5a,_0x5618b7){const _0x5a99ce=_0x5c47a4,_0x1da060={'AOrEA':function(_0x1c1604,_0x2a3b20){return _0x1c1604(_0x2a3b20);}};if(!_0x582e5a)return'';let _0xea8480=_0x582e5a;for(const _0x4ed9e6 of PLACEHOLDERS){const _0x1de084=_0x5618b7[_0x4ed9e6];null!=_0x1de084&&(_0xea8480=_0xea8480[_0x5a99ce(0x1ec)]('{{'+_0x4ed9e6+'}}')[_0x5a99ce(0x214)](_0x1da060[_0x5a99ce(0x1fd)](String,_0x1de084)));}return _0xea8480;}const t='{{modelContextWindow}}',e='{{autoCompactTokenLimit}}';export function applyModelContextWindow(_0x30000d,_0x483304,_0x3a3933){const _0x5948aa=_0x5c47a4,_0x3ca424={'bTpPT':function(_0x59449f,_0x1f835b){return _0x59449f==_0x1f835b;},'vhlDn':function(_0x3ad5d5,_0x1fcca7){return _0x3ad5d5(_0x1fcca7);},'veFGj':function(_0x23bc07,_0x12f948){return _0x23bc07>_0x12f948;},'yGBzZ':function(_0x281c73,_0x1aea88){return _0x281c73>=_0x1aea88;},'qGPNl':function(_0x20ec18,_0x1c79f9){return _0x20ec18(_0x1c79f9);}};if(!_0x30000d)return'';if(!_0x30000d[_0x5948aa(0x210)](t)&&!_0x30000d[_0x5948aa(0x210)](e))return _0x30000d;const _0x17b384=_0x483304&&_0x3ca424[_0x5948aa(0x1f0)](_0x5948aa(0x20c),typeof _0x483304)?_0x483304[_0x3a3933]:null,_0x145082=_0x17b384?_0x3ca424[_0x5948aa(0x1f7)](Number,_0x17b384[_0x5948aa(0x1f4)]):NaN,_0x39334d=_0x17b384?Number(_0x17b384[_0x5948aa(0x205)]):NaN;return Number[_0x5948aa(0x1ff)](_0x145082)&&_0x3ca424[_0x5948aa(0x217)](_0x145082,0x0)&&Number[_0x5948aa(0x1ff)](_0x39334d)&&_0x3ca424['yGBzZ'](_0x39334d,0x0)?_0x30000d[_0x5948aa(0x1ec)](t)[_0x5948aa(0x214)](_0x3ca424['vhlDn'](String,_0x145082))[_0x5948aa(0x1ec)](e)[_0x5948aa(0x214)](_0x3ca424[_0x5948aa(0x1f1)](String,_0x39334d)):_0x30000d['split']('\x0a')[_0x5948aa(0x219)](_0xaeb3c7=>!_0xaeb3c7[_0x5948aa(0x210)](t)&&!_0xaeb3c7[_0x5948aa(0x210)](e))[_0x5948aa(0x214)]('\x0a');}export function expandPath(_0x4de5a4,{isWindows:_0x4af54f}={}){const _0x280dd5=_0x5c47a4,_0x5bcea8={'WzAZT':function(_0x271b9c,_0x8b7349){return _0x271b9c===_0x8b7349;},'oEpzY':function(_0x215419,_0x12036f){return _0x215419+_0x12036f;}};if(!_0x4de5a4)return _0x4de5a4;if(_0x4af54f){const _0x2e88da=process[_0x280dd5(0x202)][_0x280dd5(0x1f3)]||'';return _0x4de5a4[_0x280dd5(0x1fb)](/^%userprofile%/i,_0x2e88da)[_0x280dd5(0x1fb)](/^~/,_0x2e88da);}const _0x12cc22=process[_0x280dd5(0x202)]['HOME']||'';return _0x5bcea8[_0x280dd5(0x209)]('~',_0x4de5a4)?_0x12cc22:_0x4de5a4[_0x280dd5(0x1f5)]('~/')?_0x5bcea8['oEpzY'](_0x12cc22,_0x4de5a4[_0x280dd5(0x1eb)](0x1)):_0x4de5a4;}function n(_0xfc86d4){const _0x1a003a=_0x5c47a4,_0x4486d4={'ZsBub':function(_0x24ffa8,_0x20d355){return _0x24ffa8(_0x20d355);},'LIEgF':function(_0x2729fe,_0x22095c){return _0x2729fe||_0x22095c;},'ZoqxF':function(_0x5dea2f,_0x52f735,_0x3b3de2){return _0x5dea2f(_0x52f735,_0x3b3de2);}},_0x3ac91d=_0x4486d4[_0x1a003a(0x1ed)](String,_0x4486d4[_0x1a003a(0x207)](_0xfc86d4,''))[_0x1a003a(0x1ef)]()[_0x1a003a(0x200)](/(\d+)\.(\d+)/);return _0x3ac91d?[parseInt(_0x3ac91d[0x1],0xa),_0x4486d4[_0x1a003a(0x216)](parseInt,_0x3ac91d[0x2],0xa)]:[0x0,0x0];}function _0x5079(_0x4ea198,_0x11321f){_0x4ea198=_0x4ea198-0x1ea;const _0x3c92f8=_0x3c92();let _0x5079d5=_0x3c92f8[_0x4ea198];return _0x5079d5;}export function listModels(_0x5f219e){const _0x2b072c=_0x5c47a4,_0x34c736={'keWCm':function(_0x41ae31,_0x39dc08){return _0x41ae31==_0x39dc08;},'LveCo':function(_0x21d233,_0x3cb3aa){return _0x21d233(_0x3cb3aa);},'IUKIW':function(_0x20511e,_0x3b3423){return _0x20511e-_0x3b3423;},'RymHQ':function(_0x39a745,_0x310f61){return _0x39a745===_0x310f61;}};if(!Array[_0x2b072c(0x201)](_0x5f219e)||_0x34c736[_0x2b072c(0x1f2)](0x0,_0x5f219e[_0x2b072c(0x215)]))return[];const _0x2754a0=_0x5f219e[_0x2b072c(0x206)]((_0xbdfc49,_0x3a5eb3)=>{const _0x4170bc=_0x2b072c;if(_0x34c736[_0x4170bc(0x218)]('string',typeof _0xbdfc49))return{'index':_0x3a5eb3,'id':_0xbdfc49,'label':_0xbdfc49,'raw':_0xbdfc49};const _0x2a4054=_0xbdfc49['id']||_0xbdfc49['name']||_0x34c736[_0x4170bc(0x208)](String,_0xbdfc49);return{'index':_0x3a5eb3,'id':_0x2a4054,'label':_0xbdfc49['name']||_0xbdfc49['id']||_0x2a4054,'raw':_0xbdfc49};});return _0x2754a0[_0x2b072c(0x20f)]((_0x19bb1b,_0x3aff74)=>{const _0x782f5c=_0x2b072c,_0x377965=_0x34c736[_0x782f5c(0x208)](n,_0x19bb1b['id']),_0x58af75=_0x34c736[_0x782f5c(0x208)](n,_0x3aff74['id']);return _0x58af75[0x0]-_0x377965[0x0]||_0x34c736[_0x782f5c(0x1ea)](_0x58af75[0x1],_0x377965[0x1])||String(_0x19bb1b['id'])['localeCompare'](_0x34c736[_0x782f5c(0x208)](String,_0x3aff74['id']));}),_0x2754a0;}
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 _0x1dfcce=_0x3c14;(function(_0xb4406d,_0x10417f){const _0x28301b=_0x3c14,_0x3bb8a5=_0xb4406d();while(!![]){try{const _0x5095da=-parseInt(_0x28301b(0xbe))/0x1+-parseInt(_0x28301b(0xc3))/0x2+parseInt(_0x28301b(0xb2))/0x3*(-parseInt(_0x28301b(0xac))/0x4)+parseInt(_0x28301b(0xc0))/0x5+parseInt(_0x28301b(0xab))/0x6+-parseInt(_0x28301b(0xc2))/0x7+parseInt(_0x28301b(0xb8))/0x8;if(_0x5095da===_0x10417f)break;else _0x3bb8a5['push'](_0x3bb8a5['shift']());}catch(_0x2a565b){_0x3bb8a5['push'](_0x3bb8a5['shift']());}}}(_0x444a,0x7bf63));function _0x3c14(_0x30ce63,_0x374ff3){_0x30ce63=_0x30ce63-0xab;const _0x444a8b=_0x444a();let _0x3c14e9=_0x444a8b[_0x30ce63];return _0x3c14e9;}import _0x2bdcd7 from'chalk';function _0x444a(){const _0x4dbab1=['2055582egnEHG','260200DajLKy','dim','warn','yellow','usage','\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','24FPQoRN','trimEnd','log','green','version','name','19032992jJVcHL','bold','length','启动\x20/\x20使用指南','\x20\x20\x20\x20启动:','blue','647283xJeZOF','\x20\x20▶\x20','70485wMYWAx','error','4091556tWQolo','951760hQsHSv'];_0x444a=function(){return _0x4dbab1;};return _0x444a();}import{createRequire as _0x2d1b8a}from'node:module';const n=_0x1dfcce(0xb1)+_0x2d1b8a(import.meta.url)('../package.json')[_0x1dfcce(0xb6)];export function banner(){const _0x411793=_0x1dfcce;console[_0x411793(0xb4)](_0x2bdcd7['bold']['cyan'](n['replace'](/^\n/,'')[_0x411793(0xb3)]()));}export function ok(_0x28e5e8){const _0x3e9380=_0x1dfcce;console[_0x3e9380(0xb4)](_0x2bdcd7[_0x3e9380(0xb5)]('✓\x20'+_0x28e5e8));}export function fail(_0x2904f5){const _0x56eb02=_0x1dfcce;console[_0x56eb02(0xc1)](_0x2bdcd7['red']('✗\x20'+_0x2904f5));}export function warn(_0x116941){const _0xa4d0b7=_0x1dfcce;console[_0xa4d0b7(0xae)](_0x2bdcd7[_0xa4d0b7(0xaf)]('⚠\x20'+_0x116941));}export function info(_0x3c784c){const _0x42fdb9=_0x1dfcce;console[_0x42fdb9(0xb4)](_0x2bdcd7[_0x42fdb9(0xbd)]('ℹ\x20'+_0x3c784c));}export function step(_0x58c4df){const _0x58d272=_0x1dfcce;console[_0x58d272(0xb4)](),console[_0x58d272(0xb4)](_0x2bdcd7[_0x58d272(0xb9)]['cyan']('■\x20'+_0x58c4df));}export function guide(_0x3ea464){const _0x95f659=_0x1dfcce,_0x2a40ae={'ZgKmy':_0x95f659(0xbb)};if(_0x3ea464&&0x0!==_0x3ea464[_0x95f659(0xba)]){step(_0x2a40ae['ZgKmy']);for(const _0x4b54b8 of _0x3ea464){const _0x5bfc57=_0x2bdcd7[_0x95f659(0xb9)]['green'](_0x95f659(0xbf)+_0x4b54b8[_0x95f659(0xb7)]),_0x1cb186=_0x2bdcd7[_0x95f659(0xb5)](_0x95f659(0xbc)+_0x4b54b8['startCmd']),_0x167c96=_0x2bdcd7[_0x95f659(0xad)](_0x4b54b8[_0x95f659(0xb0)]||'');console['log'](_0x5bfc57),console['log'](_0x1cb186),_0x167c96&&console[_0x95f659(0xb4)](_0x167c96),console[_0x95f659(0xb4)]();}}}export function plain(_0x40b819){const _0x2921ad=_0x1dfcce;console[_0x2921ad(0xb4)](_0x40b819);}export{_0x2bdcd7 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 _0x22f604=_0x4a07;(function(_0x5f0396,_0x2a15fb){const _0x3fdc60=_0x4a07,_0x118f0e=_0x5f0396();while(!![]){try{const _0x28fe9d=-parseInt(_0x3fdc60(0x10f))/0x1*(parseInt(_0x3fdc60(0x10a))/0x2)+parseInt(_0x3fdc60(0x101))/0x3*(parseInt(_0x3fdc60(0x11d))/0x4)+parseInt(_0x3fdc60(0x117))/0x5*(parseInt(_0x3fdc60(0x111))/0x6)+parseInt(_0x3fdc60(0x116))/0x7+-parseInt(_0x3fdc60(0x10b))/0x8+parseInt(_0x3fdc60(0x112))/0x9+-parseInt(_0x3fdc60(0x115))/0xa;if(_0x28fe9d===_0x2a15fb)break;else _0x118f0e['push'](_0x118f0e['shift']());}catch(_0x4642a6){_0x118f0e['push'](_0x118f0e['shift']());}}}(_0x1096,0x293c9));function _0x4a07(_0x4ed579,_0x166259){_0x4ed579=_0x4ed579-0x100;const _0x109634=_0x1096();let _0x4a0713=_0x109634[_0x4ed579];return _0x4a0713;}function _0x1096(){const _0x4f58b0=['1646316FtuQZT','writeFileSync','GbaGA','508180FySeqd','1455097aXGDue','637365yBjTOI','EACCES','mkdirSync','PermissionDeniedError','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','84FOKOLn','lFYee','603TmwLBn','EPERM','写入失败:','has','utf8','message','path','name','EROFS','382374WlXPLv','892632FKljyI','code','SIOeN','dirname','1hjMSDf',')\x0a\x20\x20','6IyoaEv'];_0x1096=function(){return _0x4f58b0;};return _0x1096();}import _0x14749c from'node:fs';import _0x31b14d from'node:path';const o=new Set([_0x22f604(0x118),_0x22f604(0x102),_0x22f604(0x109)]);export class PermissionDeniedError extends Error{constructor(_0x59964d,_0x53886c,_0x58de3d){const _0x5407a1=_0x22f604,_0x52b94f={'SIOeN':_0x5407a1(0x11c),'lFYee':_0x5407a1(0x11b),'oQhYl':_0x5407a1(0x11a)},_0x3a2bb5=_0x58de3d?_0x52b94f[_0x5407a1(0x10d)]:_0x52b94f[_0x5407a1(0x100)];super(_0x5407a1(0x103)+_0x59964d+'('+(_0x53886c[_0x5407a1(0x10c)]||_0x53886c[_0x5407a1(0x106)])+_0x5407a1(0x110)+_0x3a2bb5),this[_0x5407a1(0x108)]=_0x52b94f['oQhYl'],this[_0x5407a1(0x10c)]=_0x53886c['code'],this[_0x5407a1(0x107)]=_0x59964d,this['cause']=_0x53886c;}}export function writeFileWithPermission(_0x5a5beb,_0x3187b5,{isWindows:_0x1fc610=!0x1}={}){const _0x27e91c=_0x22f604,_0x6c7032={'GbaGA':_0x27e91c(0x105)},_0x4f576e=_0x31b14d[_0x27e91c(0x10e)](_0x5a5beb);try{_0x14749c[_0x27e91c(0x119)](_0x4f576e,{'recursive':!0x0});}catch(_0x261dbf){if(o[_0x27e91c(0x104)](_0x261dbf['code']))throw new PermissionDeniedError(_0x5a5beb,_0x261dbf,_0x1fc610);throw _0x261dbf;}try{_0x14749c[_0x27e91c(0x113)](_0x5a5beb,_0x3187b5,{'encoding':_0x6c7032[_0x27e91c(0x114)],'mode':0x180});}catch(_0x2a88dc){if(o[_0x27e91c(0x104)](_0x2a88dc[_0x27e91c(0x10c)]))throw new PermissionDeniedError(_0x5a5beb,_0x2a88dc,_0x1fc610);throw _0x2a88dc;}return _0x5a5beb;}
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.0",
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.0",
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": {