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.05 kB
JavaScript
const P=d;(function(e,f){const L=d,g=e();while(!![]){try{const h=-parseInt(L(0xaf))/0x1+parseInt(L(0xa7))/0x2*(-parseInt(L(0x97))/0x3)+parseInt(L(0xab))/0x4*(parseInt(L(0x7b))/0x5)+-parseInt(L(0xae))/0x6+-parseInt(L(0x9a))/0x7*(-parseInt(L(0x90))/0x8)+parseInt(L(0x99))/0x9*(-parseInt(L(0xad))/0xa)+parseInt(L(0x85))/0xb;if(h===f)break;else g['push'](g['shift']());}catch(i){g['push'](g['shift']());}}}(c,0x4bbdf));const b=(function(){const M=d,e={'ZZGgR':'out/','FRhwo':M(0xb0)};let f=!![];return function(g,h){const N=M;if(e[N(0xaa)]!==N(0xb0)){if(m['startsWith'](e[N(0x7f)])||n[N(0x81)]('out\x5c'))return u['join'](v,w);return r[N(0xa3)](s,t);}else{const j=f?function(){if(h){const k=h['apply'](g,arguments);return h=null,k;}}:function(){};return f=![],j;}};}()),a=b(this,function(){const O=d,e={'UeQmR':O(0x91)};return a['toString']()['search'](e[O(0xa2)])[O(0x83)]()[O(0xb4)](a)[O(0xbc)](e[O(0xa2)]);});a();const fs=require('fs'),path=require(P(0x93)),{generateDefaultPreloadScript}=require(P(0xbd)),{generateMergedPreload}=require(P(0xb7));function handleWindowPreload(e,f,g,h){const Q=P,i={'uhwzF':function(o,p,q){return o(p,q);},'INRNX':Q(0x9b),'NYKIL':Q(0x86),'WhFRC':'Zridk','obSjU':function(o,p){return o!==p;},'fWoiZ':'fSaIs','WTgjL':Q(0x8f),'dpSou':function(o,p,q){return o(p,q);},'xWKWQ':Q(0x8e),'fakxW':Q(0x84),'zQOki':Q(0xc1),'vMsrq':Q(0x79)},j=path[Q(0xa3)](e,Q(0x9b)),k=path['join'](h,i[Q(0xc0)]),l=path[Q(0xb5)](e,h),m=path[Q(0xa3)](f,l),n=path[Q(0xa3)](m,i[Q(0xc0)]);if(!fs[Q(0xb2)](k)){if(i['NYKIL']!==i[Q(0xa9)]){!fs[Q(0xb2)](m)&&fs['mkdirSync'](m,{'recursive':!![]});let o=i[Q(0xbb)](generateDefaultPreloadScript,g,f),p;if(fs[Q(0xb2)](j)){if(i[Q(0xac)](i[Q(0xbf)],i[Q(0xbf)]))l[Q(0x8b)](m,n),o[Q(0x8a)](Q(0x95)+p[Q(0xb5)](q,r));else{const t=fs[Q(0x94)](j,i[Q(0x96)]);p=i[Q(0xbe)](generateMergedPreload,o,t);}}else p=o;fs[Q(0xb3)](n,p);const q=path[Q(0xa3)](g,i[Q(0x89)],i[Q(0xc3)]),r=path[Q(0xa3)](m,i[Q(0xc3)]);if(fs['existsSync'](q)){if(i['zQOki']===i[Q(0x82)]){const v=j[Q(0x94)](k,'utf-8');l=i[Q(0xbb)](m,n,v);}else fs[Q(0x8b)](q,r),console[Q(0x8a)](Q(0x95)+path[Q(0xb5)](e,r));}}else l[Q(0x8b)](m,n),o['log'](Q(0x95)+p[Q(0xb5)](q,r));}}function getNormalizedOutPath(e,f,g){const R=P,h={'sbmtP':R(0xa8)};if(g[R(0x81)](h[R(0xb9)])||g[R(0x81)](R(0x80)))return path['join'](e,g);return path['join'](f,g);}function writeDefaultPreloadFileWhenDeleted(e,f,g,h){const S=P,i={'hfmPm':function(k,l,m){return k(l,m);}},j=i['hfmPm'](generateDefaultPreloadScript,e,f);fs[S(0xb3)](g,j),console[S(0x8a)](S(0xa0)+h);}function isWindowDirectory(e,f){const T=P,g={'viGss':function(h,i){return h===i;},'XqdPw':T(0xa1),'RCQWL':T(0xa5)};return g[T(0x9e)](f,g[T(0x7c)])||f['endsWith'](g['RCQWL']);}function d(a,b){const e=c();return d=function(f,g){f=f-0x79;let h=e[f];return h;},d(a,b);}function processWindowDirectory(e,f,g,h,i){const U=P,j={'aFCmp':function(t,u,v,w){return t(u,v,w);},'MAMXx':U(0x9b),'tYjUu':U(0x8f),'ebUbS':function(t,u,v){return t(u,v);},'KWOXA':function(t,u){return t===u;},'qTGsJ':U(0x9c),'eOnQP':function(t,u,v){return t(u,v);}},k=path[U(0xa3)](e,U(0x9b)),l=path['relative'](e,h),m=j[U(0xa4)](getNormalizedOutPath,e,f,l),n=path['join'](h,'preload.js'),o=path[U(0xa3)](m,j[U(0xb1)]),p=generateDefaultPreloadScript(g,f);let q=p;if(fs['existsSync'](n)){const t=fs[U(0x94)](n,j[U(0xb8)]);q=t[U(0x87)]()?j[U(0x8d)](generateMergedPreload,p,t):p;}if(fs[U(0xb2)](k)){if(j['KWOXA'](U(0x9f),j[U(0x7d)]))g['log'](U(0xa6)+h);else{const v=fs[U(0x94)](k,'utf-8');q=j[U(0x98)](generateMergedPreload,q,v);}}fs[U(0xb3)](o,q),console[U(0x8a)](U(0x7a)+l);const r=path['join'](g,U(0x8e),U(0x84)),s=path[U(0xa3)](m,'window-controller.js');fs[U(0xb2)](r)&&(fs[U(0x8b)](r,s),console[U(0x8a)]('Copied\x20window-controller.js\x20to\x20window\x20directory:\x20'+path[U(0xb5)](e,s))),i&&console[U(0x8a)](U(0xa6)+l);}function c(){const X=['relative','AOQlH','./preload-merger','tYjUu','sbmtP','readdirSync','uhwzF','search','./static-file-copier','dpSou','fWoiZ','INRNX','ZXZSW','PJOWK','fakxW','CLeHb','Successfully\x20processed\x20preload.js:\x20','30805LxhgWw','XqdPw','qTGsJ','pLUON','ZZGgR','out\x5c','startsWith','vMsrq','toString','window-controller.js','14202287OTJvNg','TRgrH','trim','exports','xWKWQ','log','copyFileSync','mecvC','ebUbS','copy_file','utf-8','16XVrQTw','(((.+)+)+)+$','Checking\x20if\x20window\x20directories\x20need\x20preload.js\x20files...','path','readFileSync','Copied\x20window-controller.js\x20to\x20window\x20directory:\x20','WTgjL','36GyPUpv','eOnQP','9kBPSOF','1170239vPtSdG','preload.js','btHRN','ptsnb','viGss','XmoHi','Successfully\x20processed\x20existing\x20preload.js:\x20','windows','UeQmR','join','aFCmp','-window','Window\x20directory\x20processing\x20completed:\x20','80686rHnesp','out/','WhFRC','FRhwo','324ZcBQbN','obSjU','4291090oFNURS','3238146rCknPA','361357ilkejA','FlAkn','MAMXx','existsSync','writeFileSync','constructor'];c=function(){return X;};return c();}function findAndProcessWindowDirs(e,f,g,h,i){const V=P,j={'ptsnb':function(l,m,n,o,p){return l(m,n,o,p);},'PJOWK':function(l,m){return l===m;},'mecvC':'xHGTu','RyUFy':function(l,m,n){return l(m,n);},'JJBGE':function(l,m,n,o,p,q){return l(m,n,o,p,q);}},k=fs[V(0xba)](h);for(const l of k){const m=path[V(0xa3)](h,l);if(!fs['statSync'](m)['isDirectory']()||l[V(0x81)]('.')){if(j[V(0xc2)](j[V(0x8c)],j[V(0x8c)]))continue;else{q['log'](V(0x92));const o=r[V(0xa3)](s,V(0xa1));t[V(0xb2)](o)&&(j[V(0x9d)](C,D,E,F,o),j['ptsnb'](G,H,I,J,o));}}j['RyUFy'](isWindowDirectory,m,l)&&j['JJBGE'](processWindowDirectory,e,f,g,m,i),findAndProcessWindowDirs(e,f,g,m,i);}}function checkWindowPreloadAndCopy(e,f,g){const W=P,h={'PeSXQ':W(0x92),'pLUON':W(0xa1),'AOQlH':function(j,k,l,m,n){return j(k,l,m,n);}};console[W(0x8a)](h['PeSXQ']);const i=path[W(0xa3)](e,h[W(0x7e)]);fs['existsSync'](i)&&(h[W(0xb6)](processWindowDirectory,e,f,g,i),findAndProcessWindowDirs(e,f,g,i));}module[P(0x88)]={'checkWindowPreloadAndCopy':checkWindowPreloadAndCopy,'writeDefaultPreloadFileWhenDeleted':writeDefaultPreloadFileWhenDeleted,'handleWindowPreload':handleWindowPreload};