mixone
Version:
MixOne is a Node scaffolding tool implemented based on Vite, used for compiling HTML5, JavasCript, Vue, React and other codes. It supports packaging Web applications with multiple HTML entry points (BS architecture) and desktop installation packages (CS a
1 lines • 6.27 kB
JavaScript
const R=d;(function(e,f){const O=d,g=e();while(!![]){try{const h=parseInt(O(0x1da))/0x1+parseInt(O(0x1c3))/0x2+parseInt(O(0x1ec))/0x3+-parseInt(O(0x1be))/0x4*(parseInt(O(0x1ac))/0x5)+-parseInt(O(0x1b2))/0x6*(parseInt(O(0x1dc))/0x7)+-parseInt(O(0x1ca))/0x8+parseInt(O(0x1b1))/0x9*(-parseInt(O(0x1df))/0xa);if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x9fa0e));const b=(function(){let e=!![];return function(f,g){const h=e?function(){const P=d;if(g){const i=g[P(0x1ae)](f,arguments);return g=null,i;}}:function(){};return e=![],h;};}()),a=b(this,function(){const Q=d,e={'BJnPL':'(((.+)+)+)+$'};return a[Q(0x1b6)]()[Q(0x1d8)](e[Q(0x1ad)])['toString']()[Q(0x1c4)](a)['search'](e[Q(0x1ad)]);});function d(a,b){const e=c();return d=function(f,g){f=f-0x1a3;let h=e[f];return h;},d(a,b);}a();const fs=require('fs'),path=require(R(0x1a6)),parser=require('@babel/parser'),generate=require(R(0x1cb))[R(0x1a3)],{obfuscatorJS}=require(R(0x1c7));function c(){const Y=['slice','body','program','name','The\x20definition\x20of\x20the\x20fn\x20object\x20was\x20not\x20found','UVNdQ','wClql','map','3022449NMLjjX','keys','WLkKg','EFCvL','eiuru','error','readFileSync','default','utf-8','XgGsT','path','find','start','parse','code','QEhNY','247595OFvcvP','BJnPL','apply','VariableDeclaration','join','1956051TxKwsy','2766leCtOK','dirname','uSKbI','PSFFx','toString','\x0a};','warn','match','ENnvK','writeFileSync','YcxFV','eXQbL','4ljbLCT','end','zfpdz','module','replace','2320276WgOOxz','constructor','existsSync','main','./saveJs','XRtOz','single','1037224jWuNna','@babel/generator','Raaho','sttBF','exports','HBCfZ','type','entries','const\x20{\x20ipcMain,\x20dialog\x20}\x20=\x20require(\x27electron\x27);\x0aconst\x20fs\x20=\x20require(\x27fs\x27);\x0aconst\x20os\x20=\x20require(\x27os\x27);\x0a\x0aconst\x20fn\x20=\x20____fn_place____;\x0a\x0afunction\x20registerMainFunctions()\x20{\x0a\x20\x20ipcMain.handle(\x27call-main-fn\x27,\x20async\x20(event,\x20{\x20id,\x20args\x20})\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20context\x20=\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20sender:\x20event.sender,\x0a\x20\x20\x20\x20\x20\x20\x20\x20sendToRenderer:\x20(callbackId,\x20...data)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20event.sender.send(`callback:${callbackId}`,\x20...data);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20\x20\x20const\x20result\x20=\x20await\x20fn[id].apply(context,\x20Object.values(args));\x0a\x20\x20\x20\x20\x20\x20return\x20{\x20success:\x20true,\x20result\x20};\x0a\x20\x20\x20\x20}\x20catch\x20(error)\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20{\x20success:\x20false,\x20error:\x20error.message\x20};\x0a\x20\x20\x20\x20}\x0a\x20\x20});\x0a}\x0a\x0amodule.exports\x20=\x20{\x20registerMainFunctions\x20};','startsWith','some','fn.js','mkdirSync','lRZZG','search','tSvMC','873146JlcKls','____fn_place____','3822gSZoZn','init','declarations','90OCtrTx','forEach','TOQBO','gBtLs','mmiDZ'];c=function(){return Y;};return c();}function parseFileContent(e){const S=R,f={'gBtLs':S(0x1c1),'UVNdQ':'jsx','wClql':'typescript','WLkKg':S(0x1e8),'eXQbL':function(g,h,i){return g(h,i);},'ENnvK':S(0x1c9),'XRtOz':function(g,h){return g+h;},'QEhNY':function(g,h){return g!==h;},'YcxFV':S(0x1f0),'qOols':function(g,h){return g!==h;},'zfpdz':S(0x1d9),'Raaho':function(g,h){return g+h;},'zUnSp':'解析文件失败:'};try{if(f[S(0x1ab)](f['YcxFV'],f[S(0x1bc)])){const h=l[S(0x1a9)](m,{'sourceType':f[S(0x1e2)],'plugins':[f[S(0x1e9)],f[S(0x1ea)]]}),i=h[S(0x1e6)][S(0x1e5)][S(0x1a7)](C=>C['type']===S(0x1af)&&C['declarations'][S(0x1d4)](D=>D['id']['name']==='fn'));if(!i)return s[S(0x1b8)](f[S(0x1ee)]),{'template':t,'fnContent':'{}'};const j=i[S(0x1de)][0x0]['init'],k=f[S(0x1bd)](p,j,{'retainLines':!![],'compact':![],'quotes':f[S(0x1ba)]})[S(0x1aa)],l=i['declarations'][0x0][S(0x1dd)][S(0x1a8)],m=i['declarations'][0x0][S(0x1dd)][S(0x1bf)],n=f[S(0x1c8)](q['slice'](0x0,l)+S(0x1db),r[S(0x1e4)](m));return{'template':n,'fnContent':k};}else{const h=parser[S(0x1a9)](e,{'sourceType':f[S(0x1e2)],'plugins':[f[S(0x1e9)],f[S(0x1ea)]]}),i=h[S(0x1e6)]['body']['find'](o=>o[S(0x1d0)]===S(0x1af)&&o[S(0x1de)]['some'](p=>p['id'][S(0x1e7)]==='fn'));if(!i){if(f['qOols'](f['zfpdz'],f[S(0x1c0)])){if(i){const q=m['apply'](n,arguments);return o=null,q;}}else return console[S(0x1b8)](S(0x1e8)),{'template':e,'fnContent':'{}'};}const j=i[S(0x1de)][0x0][S(0x1dd)],k=f[S(0x1bd)](generate,j,{'retainLines':!![],'compact':![],'quotes':f[S(0x1ba)]})[S(0x1aa)],l=i[S(0x1de)][0x0]['init'][S(0x1a8)],m=i[S(0x1de)][0x0][S(0x1dd)][S(0x1bf)],n=f['XRtOz'](f[S(0x1cc)](e['slice'](0x0,l),S(0x1db)),e[S(0x1e4)](m));return{'template':n,'fnContent':k};}}catch(p){return console[S(0x1f1)](f['zUnSp'],p),{'template':'','fnContent':'{}'};}}function objectToString(e){const T=R,f={'Qvjiv':',\x0a\x0a'},g=Object[T(0x1d1)](e)[T(0x1eb)](([h,i])=>{const U=T,j=i[U(0x1b6)]()[U(0x1b9)](/\/\/ .*\n/),k=j?j[0x0]:'';return'\x20\x20'+k+'\x20\x20'+h+':\x20'+i;});return'{\x0a'+g[T(0x1b0)](f['Qvjiv'])+T(0x1b7);}function updateFnFile(e,f,g,h){const V=R,i={'uSKbI':function(w,z){return w===z;},'TOQBO':V(0x1b5),'EFCvL':V(0x1d5),'lRZZG':V(0x1a4),'mmiDZ':function(w,x){return w(x);},'XgGsT':function(w,x){return w(x);},'HBCfZ':function(w,x){return w(x);},'sttBF':function(w,x){return w(x);}},j=path[V(0x1b0)](e,V(0x1c6),i[V(0x1ef)]);!fs[V(0x1c5)](path[V(0x1b3)](j))&&fs[V(0x1d6)](path[V(0x1b3)](j),{'recursive':!![]});let k='',l='{}';if(fs[V(0x1c5)](j)){const w=fs[V(0x1f2)](j,i[V(0x1d7)]),{template:x,fnContent:y}=i[V(0x1e3)](parseFileContent,w);k=x,l=y;}else k=V(0x1d2);const {fnContent:m}=i[V(0x1a5)](parseFileContent,h),n=g[V(0x1c2)](f,'')[V(0x1c2)](/^[\/\\]/,'')[V(0x1c2)](/^src[\/\\]/,'')['replace'](/\\/g,'/'),o='__FUNCTION_'+n[V(0x1c2)](/[\/\.]/g,'_')+'_',p=i['mmiDZ'](eval,'('+l+')'),q=eval('('+m+')'),r={...p};let s=0x0;Object[V(0x1ed)](r)[V(0x1e0)](z=>{const W=V;z[W(0x1d3)](o)&&(delete r[z],s++);});let t=0x0,u=0x0;Object[V(0x1d1)](q)[V(0x1e0)](([z,A])=>{const X=V;z in r?i[X(0x1b4)](i[X(0x1e1)],i['TOQBO'])?u++:f++:t++,r[z]=A;});const v=k[V(0x1c2)](V(0x1db),i[V(0x1cf)](objectToString,r));fs[V(0x1bb)](j,i[V(0x1cd)](obfuscatorJS,v));}module[R(0x1ce)]={'updateFnFile':updateFnFile};