claude-code-switch
Version:
A CLI tool for managing and switching Claude Code model providers
1 lines • 9.6 kB
JavaScript
const a0_0x5ed4b8=a0_0x19b3;(function(_0x3fafea,_0x1892df){const _0x29583b=a0_0x19b3,_0x43b531=_0x3fafea();while(!![]){try{const _0x5af710=-parseInt(_0x29583b(0xbf))/0x1+-parseInt(_0x29583b(0x93))/0x2*(parseInt(_0x29583b(0xc0))/0x3)+parseInt(_0x29583b(0xc5))/0x4*(-parseInt(_0x29583b(0x9b))/0x5)+-parseInt(_0x29583b(0xc7))/0x6+-parseInt(_0x29583b(0xb5))/0x7+parseInt(_0x29583b(0xa5))/0x8+parseInt(_0x29583b(0xb6))/0x9*(parseInt(_0x29583b(0xbd))/0xa);if(_0x5af710===_0x1892df)break;else _0x43b531['push'](_0x43b531['shift']());}catch(_0xa3d5f6){_0x43b531['push'](_0x43b531['shift']());}}}(a0_0x3188,0x33206));const a0_0x1f3d25=(function(){const _0x2ebfc2=a0_0x19b3,_0x1d9419={};_0x1d9419[_0x2ebfc2(0xb3)]=_0x2ebfc2(0xbe),_0x1d9419[_0x2ebfc2(0x9c)]=function(_0x5111ae,_0x234734){return _0x5111ae===_0x234734;},_0x1d9419[_0x2ebfc2(0xd4)]=_0x2ebfc2(0xa8),_0x1d9419[_0x2ebfc2(0x90)]=_0x2ebfc2(0xba);const _0x10612d=_0x1d9419;let _0xb27f25=!![];return function(_0x397e7e,_0x1ffbd0){const _0x56e194=_0xb27f25?function(){const _0x23c195=a0_0x19b3,_0x227548={};_0x227548[_0x23c195(0x8f)]=_0x10612d['IllER'];const _0x2c38d1=_0x227548;if(_0x10612d[_0x23c195(0x9c)](_0x10612d[_0x23c195(0xd4)],_0x10612d['FZsuq']))try{_0x48501a[_0x23c195(0xad)](_0x437632,0x180);}catch(_0x55dbed){_0x5106a8[_0x23c195(0xc8)](_0x2c38d1['JnFhS'],_0x55dbed[_0x23c195(0xb2)]);}else{if(_0x1ffbd0){const _0x5b6ccf=_0x1ffbd0[_0x23c195(0xc1)](_0x397e7e,arguments);return _0x1ffbd0=null,_0x5b6ccf;}}}:function(){};return _0xb27f25=![],_0x56e194;};}()),a0_0x1dc4b8=a0_0x1f3d25(this,function(){const _0x1f716d=a0_0x19b3,_0x4720f9={};_0x4720f9['WISOR']=_0x1f716d(0x8b);const _0x1b528f=_0x4720f9;return a0_0x1dc4b8['toString']()[_0x1f716d(0x9a)](_0x1b528f['WISOR'])[_0x1f716d(0x8a)]()['constructor'](a0_0x1dc4b8)[_0x1f716d(0x9a)](_0x1b528f[_0x1f716d(0xac)]);});a0_0x1dc4b8();function a0_0x19b3(_0x38c55c,_0x598bc7){const _0x32f533=a0_0x3188();return a0_0x19b3=function(_0x1dc4b8,_0x1f3d25){_0x1dc4b8=_0x1dc4b8-0x89;let _0x318840=_0x32f533[_0x1dc4b8];if(a0_0x19b3['dMuRAf']===undefined){var _0x19b3bd=function(_0x3e1d39){const _0x152596='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x307c39='',_0xda127d='',_0x488064=_0x307c39+_0x19b3bd;for(let _0x4f6026=0x0,_0x4f3645,_0x4cc6af,_0x455fa4=0x0;_0x4cc6af=_0x3e1d39['charAt'](_0x455fa4++);~_0x4cc6af&&(_0x4f3645=_0x4f6026%0x4?_0x4f3645*0x40+_0x4cc6af:_0x4cc6af,_0x4f6026++%0x4)?_0x307c39+=_0x488064['charCodeAt'](_0x455fa4+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f3645>>(-0x2*_0x4f6026&0x6)):_0x4f6026:0x0){_0x4cc6af=_0x152596['indexOf'](_0x4cc6af);}for(let _0x2b3c8e=0x0,_0x5e5c9b=_0x307c39['length'];_0x2b3c8e<_0x5e5c9b;_0x2b3c8e++){_0xda127d+='%'+('00'+_0x307c39['charCodeAt'](_0x2b3c8e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xda127d);};a0_0x19b3['SjAOVi']=_0x19b3bd,_0x38c55c=arguments,a0_0x19b3['dMuRAf']=!![];}const _0x5b244f=_0x32f533[0x0],_0x73051e=_0x1dc4b8+_0x5b244f,_0x3cbfd9=_0x38c55c[_0x73051e];if(!_0x3cbfd9){const _0x4ef619=function(_0x2a1311){this['amVoXH']=_0x2a1311,this['bWerud']=[0x1,0x0,0x0],this['pLmpAQ']=function(){return'newState';},this['wYGulp']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['alaFPM']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4ef619['prototype']['bwLzGo']=function(){const _0x28040d=new RegExp(this['wYGulp']+this['alaFPM']),_0x71c08f=_0x28040d['test'](this['pLmpAQ']['toString']())?--this['bWerud'][0x1]:--this['bWerud'][0x0];return this['ArbIBn'](_0x71c08f);},_0x4ef619['prototype']['ArbIBn']=function(_0x55c88f){if(!Boolean(~_0x55c88f))return _0x55c88f;return this['ExkQdA'](this['amVoXH']);},_0x4ef619['prototype']['ExkQdA']=function(_0x1c3598){for(let _0x1fe979=0x0,_0x2d66ed=this['bWerud']['length'];_0x1fe979<_0x2d66ed;_0x1fe979++){this['bWerud']['push'](Math['round'](Math['random']())),_0x2d66ed=this['bWerud']['length'];}return _0x1c3598(this['bWerud'][0x0]);},new _0x4ef619(a0_0x19b3)['bwLzGo'](),_0x318840=a0_0x19b3['SjAOVi'](_0x318840),_0x38c55c[_0x73051e]=_0x318840;}else _0x318840=_0x3cbfd9;return _0x318840;},a0_0x19b3(_0x38c55c,_0x598bc7);}function a0_0x3188(){const _0x2b0af5=['yw1AuKO','zxHWB3j0CW','ELHgA2C','ChjVDMLKzxjFBMfTzq','odqZotuYshzyq2fv','wg1btNy','DgvZDa','v09UqwG','AKfstvy','sw52ywXPzcbIyxnLifvstcbMB3jTyxq','t0H3BLK','v0Ltt1i','y2HTB2rtEw5J','DMfSAwrHDgvjBNb1Da','q2PWrLy','sfjmuLq','vLnHqw0','BwvZC2fNzq','swXSrvi','ve54rNy','mJm2nZu0mgr0Cfz5AW','otblD09UAwm','u0zWC0q','CKviA1u','DMfSAwrHDgvqCM92AwrLCG','DNDsyum','C3rYAw5N','BgvUz3rO','mtiZndyZmfLbuu5hDq','5PEG5Rov6k6+572U5PAh5lU25P2d6zMqoG','mZa3otK5zxDJugLL','nZiZCvLnqLDW','yxbWBhK','qMfZzsbvuKWGAxmGCMvXDwLYzwq','rMrpzva','v0vOsw4','mZaWmZy4BgX1qNPO','vhvdBeq','mtaZmtiZog5tCg9dvW','D2fYBG','wgv0D1a','whbIt0O','C2fUAxrPEMvjBNb1Da','z0riDgm','r3Duq3q','vunIs3q','ueD5zfq','qvbjigTLEsbTDxn0igjLigf0igXLyxn0ideWignOyxjHy3rLCNmGBg9UzW','ChvZAa','wLbjuKy','CKf0EKC','ANrHseW','C2v0q29UzMLNugvYBwLZC2LVBNm','Dg9tDhjPBMC','kcGOlISPkYKRksSK','DhjPBq','s2jVBe4','qvbjigTLEsbPCYbYzxf1AxjLza','sM5gAfm','rLPZDxe','DMfSAwrHDgvvCMW','rKL1rMG','mtm0ofHyvvnmyq','D0fgtwm','vKX4Dwi','qu1ABw4','qK10Dvy','CMvWBgfJzq','C2Xprei','C2vHCMnO','mtbJtLbcsMS','AvD3s0y','yurSEuC','vgLYBM0','yxbPx2TLEq','yMfZzv91CMW'];a0_0x3188=function(){return _0x2b0af5;};return a0_0x3188();}const fs=require('fs');class SecurityManager{[a0_0x5ed4b8(0x89)](_0x5e827e){const _0x30eb7b=a0_0x5ed4b8,_0x4e7054={};_0x4e7054[_0x30eb7b(0xcf)]=function(_0x20eca5,_0xa8a1c9){return _0x20eca5!==_0xa8a1c9;},_0x4e7054[_0x30eb7b(0xc9)]='win32',_0x4e7054[_0x30eb7b(0xc6)]=function(_0x2c0cdb,_0x5bd81a){return _0x2c0cdb===_0x5bd81a;},_0x4e7054['UCbKt']='JvbuH',_0x4e7054['jARMV']='无法设置文件权限:';const _0x6b2ed7=_0x4e7054;if(_0x6b2ed7[_0x30eb7b(0xcf)](process['platform'],_0x6b2ed7[_0x30eb7b(0xc9)])){if(_0x6b2ed7[_0x30eb7b(0xc6)](_0x6b2ed7['UCbKt'],_0x6b2ed7[_0x30eb7b(0xce)]))try{fs['chmodSync'](_0x5e827e,0x180);}catch(_0x403777){if(_0x6b2ed7['TuClD']('iIFdP',_0x30eb7b(0xb4)))return![];else console[_0x30eb7b(0xc8)](_0x6b2ed7[_0x30eb7b(0xa9)],_0x403777[_0x30eb7b(0xb2)]);}else return/^[a-zA-Z0-9\s\-_]+$/[_0x30eb7b(0xa7)](_0x32a678[_0x30eb7b(0x8c)]());}}['validateUrl'](_0x3e689c){const _0x12b3d7=a0_0x5ed4b8,_0x401b76={};_0x401b76[_0x12b3d7(0xc4)]=function(_0x21d926,_0x3fa64a){return _0x21d926===_0x3fa64a;},_0x401b76[_0x12b3d7(0xaf)]=_0x12b3d7(0xb7),_0x401b76[_0x12b3d7(0x92)]=_0x12b3d7(0x8d);const _0x5261a4=_0x401b76;try{return new URL(_0x3e689c),!![];}catch{if(_0x5261a4[_0x12b3d7(0xc4)](_0x5261a4[_0x12b3d7(0xaf)],_0x5261a4[_0x12b3d7(0x92)]))_0x3d79ac['push'](_0x12b3d7(0xaa));else return![];}}[a0_0x5ed4b8(0xae)](_0x280feb,_0xd8e459='string'){const _0x5edc41=a0_0x5ed4b8,_0x18bdfa={};_0x18bdfa['LTWuB']=function(_0x9f907e,_0x4c9d08){return _0x9f907e!==_0x4c9d08;},_0x18bdfa[_0x5edc41(0xab)]=_0x5edc41(0xbb),_0x18bdfa[_0x5edc41(0xa1)]=function(_0x38ead6,_0x52f788){return _0x38ead6===_0x52f788;},_0x18bdfa[_0x5edc41(0xb1)]=_0x5edc41(0xa4),_0x18bdfa['FdOeP']=function(_0x4b3eec,_0x1d8101){return _0x4b3eec===_0x1d8101;},_0x18bdfa[_0x5edc41(0xd2)]=function(_0x5527d5,_0x518f88){return _0x5527d5>=_0x518f88;};const _0x58cade=_0x18bdfa;if(_0x58cade['LTWuB'](typeof _0x280feb,_0x58cade[_0x5edc41(0xab)])||_0x58cade[_0x5edc41(0xa1)](_0x280feb[_0x5edc41(0x8c)]()['length'],0x0))return![];if(_0x58cade[_0x5edc41(0xa1)](_0xd8e459,_0x58cade['VSaAm']))return/^[a-zA-Z0-9\s\-_]+$/[_0x5edc41(0xa7)](_0x280feb['trim']());if(_0x58cade[_0x5edc41(0xc3)](_0xd8e459,_0x5edc41(0x9f)))return _0x58cade[_0x5edc41(0xd2)](_0x280feb[_0x5edc41(0x8c)]()[_0x5edc41(0xbc)],0xa);return!![];}[a0_0x5ed4b8(0xcb)](_0x362371){const _0x30380b=a0_0x5ed4b8,_0x468018={};_0x468018[_0x30380b(0x9e)]=function(_0x35a64f,_0x46ab79){return _0x35a64f!==_0x46ab79;},_0x468018[_0x30380b(0x97)]='string',_0x468018[_0x30380b(0xd3)]=function(_0x3d63de,_0xa3b773){return _0x3d63de!==_0xa3b773;},_0x468018[_0x30380b(0x96)]=_0x30380b(0xca);const _0x307f91=_0x468018;if(_0x307f91['rAtzG'](typeof _0x362371,_0x307f91['BMtuV'])){if(_0x307f91['rAtzG'](_0x307f91[_0x30380b(0x96)],_0x30380b(0xca))){if(_0x307f91[_0x30380b(0x9e)](typeof _0x21ddb0,_0x307f91[_0x30380b(0x97)]))return'';return _0xfb318c[_0x30380b(0x8c)]()[_0x30380b(0x98)](/[<>&"']/g,'');}else return'';}return _0x362371[_0x30380b(0x8c)]()['replace'](/[<>&"']/g,'');}[a0_0x5ed4b8(0xb9)](_0x3b216f){const _0x4a0687=a0_0x5ed4b8,_0x5aad9e={};_0x5aad9e[_0x4a0687(0x9d)]=_0x4a0687(0xbe),_0x5aad9e['zXFkg']=function(_0x431ca2,_0x541fa6){return _0x431ca2!==_0x541fa6;},_0x5aad9e[_0x4a0687(0x94)]=function(_0x2dbebb,_0x19ba7d){return _0x2dbebb===_0x19ba7d;},_0x5aad9e[_0x4a0687(0x95)]=_0x4a0687(0xcc),_0x5aad9e[_0x4a0687(0xb0)]=_0x4a0687(0xa6),_0x5aad9e[_0x4a0687(0xcd)]=_0x4a0687(0xaa),_0x5aad9e[_0x4a0687(0xb8)]=_0x4a0687(0x8e),_0x5aad9e[_0x4a0687(0x99)]=_0x4a0687(0xd0);const _0x5c6df6=_0x5aad9e,_0x5aca9f=[];if(!_0x3b216f['base_url']&&_0x5c6df6[_0x4a0687(0xa3)](_0x3b216f['base_url'],''))_0x5c6df6[_0x4a0687(0x94)](_0x5c6df6['VLxub'],'mWeRU')?_0x4703a7['warn'](_0x5c6df6[_0x4a0687(0x9d)],_0x1dd298['message']):_0x5aca9f[_0x4a0687(0xd1)](_0x4a0687(0xc2));else{if(_0x3b216f[_0x4a0687(0xa0)]&&!this[_0x4a0687(0x91)](_0x3b216f['base_url'])){if(_0x5c6df6['wAFMc'](_0x5c6df6[_0x4a0687(0xb0)],_0x5c6df6[_0x4a0687(0xb0)]))_0x5aca9f[_0x4a0687(0xd1)](_0x5c6df6['GwTCt']);else{const _0x500e8e=_0x599b14[_0x4a0687(0xc1)](_0x41eed8,arguments);return _0x40e967=null,_0x500e8e;}}}if(!_0x3b216f[_0x4a0687(0x9f)])_0x5aca9f[_0x4a0687(0xd1)](_0x5c6df6[_0x4a0687(0xb8)]);else!this[_0x4a0687(0xae)](_0x3b216f[_0x4a0687(0x9f)],_0x4a0687(0x9f))&&_0x5aca9f[_0x4a0687(0xd1)](_0x5c6df6['slODB']);return _0x5aca9f;}}module[a0_0x5ed4b8(0xa2)]=SecurityManager;