zmp-cli 3.15.12 → 3.15.13

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.
Files changed (42) hide show
  1. package/build/index.js +1 -1
  2. package/config/index.js +1 -1
  3. package/create/index.js +1 -1
  4. package/create/utils/generate-app-config.js +1 -1
  5. package/create/utils/generate-npm-scripts.js +1 -1
  6. package/create/utils/get-options.js +1 -1
  7. package/create/utils/npm-scripts.js +1 -1
  8. package/deploy/index.js +1 -1
  9. package/deploy/utils/get-options.js +1 -1
  10. package/deploy/utils/request-upload.js +1 -1
  11. package/deploy/utils/upload-app.js +1 -1
  12. package/index.js +1 -1
  13. package/login/index.js +1 -1
  14. package/login/utils/get-options.js +1 -1
  15. package/login/utils/zalo-login.js +1 -1
  16. package/migrate/icons/update-icon-v3.js +1 -1
  17. package/migrate/index.js +1 -1
  18. package/migrate/utils/get-options.js +1 -1
  19. package/migrate/utils/migrate-react.js +1 -1
  20. package/package.json +2 -2
  21. package/start/index.js +1 -1
  22. package/sync/index-to-app-config.js +1 -1
  23. package/sync/index.js +1 -1
  24. package/utils/axios.js +1 -1
  25. package/utils/check-update.js +1 -1
  26. package/utils/constants.js +1 -1
  27. package/utils/env.js +1 -1
  28. package/utils/error.js +1 -1
  29. package/utils/find-files-by-ext.js +1 -1
  30. package/utils/find-free-port.js +1 -1
  31. package/utils/fs-extra.js +1 -1
  32. package/utils/generate-pages-map.js +1 -1
  33. package/utils/get-app-info.js +1 -1
  34. package/utils/get-current-project.js +1 -1
  35. package/utils/get-ip.js +1 -1
  36. package/utils/get-latest-version.js +1 -1
  37. package/utils/log.js +1 -1
  38. package/utils/node-blob.js +1 -1
  39. package/utils/resumable.d.js +1 -1
  40. package/utils/resumable.js +1 -1
  41. package/utils/spinner.js +1 -1
  42. package/utils/tunnel.js +1 -1
package/build/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x58231b=_0x589a;function _0x589a(_0x10700b,_0x4e3528){const _0x250272=_0x2502();return _0x589a=function(_0x589a84,_0x27f81e){_0x589a84=_0x589a84-0xde;let _0x49a205=_0x250272[_0x589a84];return _0x49a205;},_0x589a(_0x10700b,_0x4e3528);}(function(_0x71437a,_0x21aaa8){const _0x352ca4=_0x589a,_0x328714=_0x71437a();while(!![]){try{const _0x1c04ed=parseInt(_0x352ca4(0xf7))/0x1+parseInt(_0x352ca4(0xe4))/0x2*(parseInt(_0x352ca4(0xe5))/0x3)+-parseInt(_0x352ca4(0xdf))/0x4*(-parseInt(_0x352ca4(0x108))/0x5)+-parseInt(_0x352ca4(0x113))/0x6*(-parseInt(_0x352ca4(0x100))/0x7)+parseInt(_0x352ca4(0xe0))/0x8*(-parseInt(_0x352ca4(0xe1))/0x9)+parseInt(_0x352ca4(0xf1))/0xa*(parseInt(_0x352ca4(0x109))/0xb)+parseInt(_0x352ca4(0xef))/0xc*(-parseInt(_0x352ca4(0xde))/0xd);if(_0x1c04ed===_0x21aaa8)break;else _0x328714['push'](_0x328714['shift']());}catch(_0x440a24){_0x328714['push'](_0x328714['shift']());}}}(_0x2502,0x87377));function _0x2502(){const _0x511628=['www/','cwd','join','Building\x20for\x20production...','bold','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','203SjpIat','Building\x20development\x20version...','../utils/env','default','../utils/error','chalk','appConfigJson','getEnv','1979755fDIjeb','22aLMUBG','env','NODE_ENV','production','error','../utils/get-latest-version','statusDone','mode','filename','Build\x20Done!\x0a','61458ECeAvI','143FAsLSH','8RbFQmn','69432WcLaxg','675oEBsqw','exports','writeFileSync','247444vfkvMC','12CZGyaE','text','www','green','statusError','appConfig','zmp-framework','nextVersion','zmp-cli-core','latestVersion','1785012PkGzAp','stringify','2594170mfmBQW','gray','../config','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','yellow','../utils/fs-extra','738362AbCZPk','node_modules','appId'];_0x2502=function(){return _0x511628;};return _0x2502();}const e=require(_0x58231b(0x105)),r=require('ora'),t=require('path'),i=require('@rollup/plugin-dynamic-import-vars')[_0x58231b(0x103)],o=require('@rollup/plugin-replace'),{buildApp:n}=require(_0x58231b(0xed)),u=require(_0x58231b(0xf6)),a=require(_0x58231b(0x102)),{errorExit:s}=require(_0x58231b(0x104)),l=require(_0x58231b(0xf3)),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x58231b(0x10e)),w=a[_0x58231b(0x107)](_0x58231b(0x10b))||'production',d=e[_0x58231b(0xf2)](_0x58231b(0xf4)),m=e[_0x58231b(0xf5)](_0x58231b(0xff)),f=r(_0x58231b(0x10c)===w?_0x58231b(0xfd):_0x58231b(0x101));module[_0x58231b(0xe2)]=async(_0x1b2395={},_0x4ca534)=>{const _0x2d7e67=_0x58231b;let _0x4a3b16=_0x1b2395[_0x2d7e67(0xfb)]||process['cwd'](),_0x418cfe=_0xec279f=>t[_0x2d7e67(0xfc)](_0x4a3b16,_0xec279f),_0xaf1c1f=_0x1b2395[_0x2d7e67(0x106)]||require(_0x418cfe(l['filename'][_0x2d7e67(0xea)]));_0x4ca534||(_0x4ca534={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x2d7e67(0xfc)](_0x4a3b16,_0x2d7e67(0xf8),_0x2d7e67(0xeb)))&&_0x4ca534[_0x2d7e67(0xe6)](m),f['start'](),_0x4ca534['statusStart'](d);try{let _0x308288=a[_0x2d7e67(0x107)](l[_0x2d7e67(0x10a)][_0x2d7e67(0xf9)]),_0x35e447=_0x1b2395[_0x2d7e67(0xec)];if(!_0x35e447){let _0x2ef433=await c(_0x308288,_0x1b2395),_0x521bd2=_0x2ef433&&_0x2ef433['latestVersion']&&Number(_0x2ef433[_0x2d7e67(0xee)]);null==_0x521bd2&&(_0x521bd2=0x0),_0x35e447=_0x521bd2+0x1;}let {appConfigJson:_0x375914}=await n({'cwd':_0x4a3b16,'mode':_0x1b2395[_0x2d7e67(0x110)]||w,'appId':_0x308288,'nextVersion':_0x35e447,'appConfig':_0xaf1c1f,'outDir':_0x2d7e67(0xe7),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x4a3b16)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x4ca534[_0x2d7e67(0xe6)],'warn':_0x4ca534['text'],'warnOnce':_0x4ca534['text'],'error':_0x4ca534[_0x2d7e67(0x10d)]}});return _0x375914&&u[_0x2d7e67(0xe3)](_0x418cfe(_0x2d7e67(0xfa)+l[_0x2d7e67(0x111)][_0x2d7e67(0xea)]),JSON[_0x2d7e67(0xf0)](_0x375914)),_0x4ca534[_0x2d7e67(0x10f)](''+e[_0x2d7e67(0xfe)][_0x2d7e67(0xe8)](_0x2d7e67(0x112))),_0x375914;}catch(_0x27b72a){_0x4ca534[_0x2d7e67(0xe9)]('Error\x20building\x20project'),s(_0x27b72a);return;}};
1
+ 'use strict';const _0x2213c9=_0x1095;function _0x1095(_0x5bc2f9,_0x5b5581){const _0x266b99=_0x266b();return _0x1095=function(_0x109562,_0x28a1f3){_0x109562=_0x109562-0x162;let _0x47ee99=_0x266b99[_0x109562];return _0x47ee99;},_0x1095(_0x5bc2f9,_0x5b5581);}(function(_0x3a1ffd,_0xa874e6){const _0x203890=_0x1095,_0x16c051=_0x3a1ffd();while(!![]){try{const _0x121292=-parseInt(_0x203890(0x18a))/0x1*(parseInt(_0x203890(0x177))/0x2)+parseInt(_0x203890(0x187))/0x3+-parseInt(_0x203890(0x17e))/0x4+parseInt(_0x203890(0x18b))/0x5*(parseInt(_0x203890(0x18c))/0x6)+-parseInt(_0x203890(0x188))/0x7+-parseInt(_0x203890(0x18d))/0x8+parseInt(_0x203890(0x169))/0x9;if(_0x121292===_0xa874e6)break;else _0x16c051['push'](_0x16c051['shift']());}catch(_0x590010){_0x16c051['push'](_0x16c051['shift']());}}}(_0x266b,0xc077d));const e=require('chalk'),r=require(_0x2213c9(0x16b)),t=require(_0x2213c9(0x191)),i=require(_0x2213c9(0x17a))[_0x2213c9(0x16a)],o=require(_0x2213c9(0x17b)),{buildApp:n}=require(_0x2213c9(0x163)),u=require(_0x2213c9(0x18f)),a=require(_0x2213c9(0x176)),{errorExit:s}=require(_0x2213c9(0x171)),l=require(_0x2213c9(0x17d)),p=require(_0x2213c9(0x174)),{existsSync:g}=require('fs'),c=require(_0x2213c9(0x182)),w=a[_0x2213c9(0x16f)](_0x2213c9(0x185))||_0x2213c9(0x195),d=e['gray'](_0x2213c9(0x172)),m=e[_0x2213c9(0x16e)](_0x2213c9(0x168)),f=r(_0x2213c9(0x195)===w?_0x2213c9(0x180):_0x2213c9(0x184));module[_0x2213c9(0x17f)]=async(_0x3a27c5={},_0x57ad22)=>{const _0x2457e5=_0x2213c9;let _0x3baf73=_0x3a27c5[_0x2457e5(0x167)]||process[_0x2457e5(0x167)](),_0x19de3e=_0x57cb3d=>t[_0x2457e5(0x170)](_0x3baf73,_0x57cb3d),_0x2331eb=_0x3a27c5[_0x2457e5(0x162)]||require(_0x19de3e(l['filename'][_0x2457e5(0x178)]));_0x57ad22||(_0x57ad22={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x2457e5(0x170)](_0x3baf73,_0x2457e5(0x17c),_0x2457e5(0x181)))&&_0x57ad22['text'](m),f[_0x2457e5(0x173)](),_0x57ad22[_0x2457e5(0x164)](d);try{let _0x53a10d=a[_0x2457e5(0x16f)](l['env'][_0x2457e5(0x190)]),_0x6fea49=_0x3a27c5[_0x2457e5(0x166)];if(!_0x6fea49){let _0x5e038e=await c(_0x53a10d,_0x3a27c5),_0x1fcd6d=_0x5e038e&&_0x5e038e[_0x2457e5(0x179)]&&Number(_0x5e038e[_0x2457e5(0x179)]);null==_0x1fcd6d&&(_0x1fcd6d=0x0),_0x6fea49=_0x1fcd6d+0x1;}let {appConfigJson:_0x20b892}=await n({'cwd':_0x3baf73,'mode':_0x3a27c5['mode']||w,'appId':_0x53a10d,'nextVersion':_0x6fea49,'appConfig':_0x2331eb,'outDir':_0x2457e5(0x16d),'vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x3baf73)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x57ad22[_0x2457e5(0x193)],'warn':_0x57ad22[_0x2457e5(0x193)],'warnOnce':_0x57ad22['text'],'error':_0x57ad22[_0x2457e5(0x16c)]}});return _0x20b892&&u['writeFileSync'](_0x19de3e(_0x2457e5(0x183)+l[_0x2457e5(0x194)]['appConfig']),JSON[_0x2457e5(0x165)](_0x20b892)),_0x57ad22[_0x2457e5(0x186)](''+e[_0x2457e5(0x189)][_0x2457e5(0x175)](_0x2457e5(0x192))),_0x20b892;}catch(_0x43529d){_0x57ad22[_0x2457e5(0x18e)]('Error\x20building\x20project'),s(_0x43529d);return;}};function _0x266b(){const _0x2eab05=['cwd','Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher','15475914QhtwnT','default','ora','error','www','yellow','getEnv','join','../utils/error','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','start','../utils/generate-pages-map','green','../utils/env','99208tlypjf','appConfig','latestVersion','@rollup/plugin-dynamic-import-vars','@rollup/plugin-replace','node_modules','../config','757900wINEGr','exports','Building\x20for\x20production...','zmp-framework','../utils/get-latest-version','www/','Building\x20development\x20version...','NODE_ENV','statusDone','3260175mEPlCk','3050775CXfysx','bold','31YRkPHW','5ucsUkW','8000088NwsMgC','9505968BxDTun','statusError','../utils/fs-extra','appId','path','Build\x20Done!\x0a','text','filename','production','appConfigJson','zmp-cli-core','statusStart','stringify','nextVersion'];_0x266b=function(){return _0x2eab05;};return _0x266b();}
package/config/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x5f5559=_0x35b6;(function(_0x55a45f,_0x5daba3){var _0x1e40b8=_0x35b6,_0x45b7e6=_0x55a45f();while(!![]){try{var _0x9b852f=-parseInt(_0x1e40b8(0x1ce))/0x1*(-parseInt(_0x1e40b8(0x1c4))/0x2)+-parseInt(_0x1e40b8(0x1c5))/0x3*(-parseInt(_0x1e40b8(0x1ba))/0x4)+parseInt(_0x1e40b8(0x1c9))/0x5*(parseInt(_0x1e40b8(0x1c1))/0x6)+parseInt(_0x1e40b8(0x1cc))/0x7+-parseInt(_0x1e40b8(0x1b9))/0x8*(parseInt(_0x1e40b8(0x1bb))/0x9)+parseInt(_0x1e40b8(0x1c8))/0xa*(-parseInt(_0x1e40b8(0x1c0))/0xb)+-parseInt(_0x1e40b8(0x1ca))/0xc;if(_0x9b852f===_0x5daba3)break;else _0x45b7e6['push'](_0x45b7e6['shift']());}catch(_0x21e6f1){_0x45b7e6['push'](_0x45b7e6['shift']());}}}(_0x279d,0x541fa));function _0x35b6(_0x5ef074,_0x3625f9){var _0x279d25=_0x279d();return _0x35b6=function(_0x35b65a,_0x4b7756){_0x35b65a=_0x35b65a-0x1b9;var _0x3d4421=_0x279d25[_0x35b65a];return _0x3d4421;},_0x35b6(_0x5ef074,_0x3625f9);}function _0x279d(){var _0x372919=['app/upload-chunk','28746VNEQZE','117PfZleJ','octet','admin/login','10qplqgZ','2129255VdxKQZ','10517472voxtMN','package.json','2740983hZEWul','//h5.zdn.vn/zapps/','37CsXBHm','app/get-info','https://zmp-api.developers.zalo.me/','admin/get-login-status','ZMP_TOKEN','admin/request-login','APP_ID','exports','1192QfKAon','49372OxcWvI','3771bFlLAC','dev-tools/app/get-info','cwd','Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','6018551PzmvLn','6sgXwuW','app/request-upload'];_0x279d=function(){return _0x372919;};return _0x279d();}module[_0x5f5559(0x1d5)]={'filename':{'appConfig':'app-config.json','zmpConfig':'zmp-cli.json','packageJson':_0x5f5559(0x1cb)},'api_domain':_0x5f5559(0x1d0),'zdn_url':_0x5f5559(0x1cd),'path':{'login':_0x5f5559(0x1c7),'requestLogin':_0x5f5559(0x1d3),'checkLoginStatus':_0x5f5559(0x1d1),'uploadAppByChunk':_0x5f5559(0x1c3),'requestUploadResumable':_0x5f5559(0x1c2),'getAppInfo':_0x5f5559(0x1cf),'getLatestVersion':_0x5f5559(0x1bc)},'dirname':__dirname,'root_env':()=>process[_0x5f5559(0x1bd)]()+'/.env','env':{'appId':_0x5f5559(0x1d4),'token':_0x5f5559(0x1d2)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':_0x5f5559(0x1bf),'permission_denied':_0x5f5559(0x1be),'request_timeout':'Request\x20Timeout'},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x5f5559(0x1c6),'forceChunkSize':!0x1}};
1
+ 'use strict';var _0xa518a8=_0x8397;(function(_0x56cb1d,_0x3d0322){var _0x2565e1=_0x8397,_0x3c3540=_0x56cb1d();while(!![]){try{var _0x305a03=parseInt(_0x2565e1(0x170))/0x1+-parseInt(_0x2565e1(0x17f))/0x2+parseInt(_0x2565e1(0x180))/0x3*(parseInt(_0x2565e1(0x17b))/0x4)+-parseInt(_0x2565e1(0x17e))/0x5+-parseInt(_0x2565e1(0x17c))/0x6*(parseInt(_0x2565e1(0x184))/0x7)+-parseInt(_0x2565e1(0x16e))/0x8*(parseInt(_0x2565e1(0x178))/0x9)+parseInt(_0x2565e1(0x16f))/0xa;if(_0x305a03===_0x3d0322)break;else _0x3c3540['push'](_0x3c3540['shift']());}catch(_0x53b14c){_0x3c3540['push'](_0x3c3540['shift']());}}}(_0x4eff,0x91540));module[_0xa518a8(0x182)]={'filename':{'appConfig':_0xa518a8(0x185),'zmpConfig':'zmp-cli.json','packageJson':_0xa518a8(0x176)},'api_domain':'https://zmp-api.developers.zalo.me/','zdn_url':_0xa518a8(0x175),'path':{'login':_0xa518a8(0x171),'requestLogin':'admin/request-login','checkLoginStatus':'admin/get-login-status','uploadAppByChunk':_0xa518a8(0x17d),'requestUploadResumable':_0xa518a8(0x173),'getAppInfo':_0xa518a8(0x181),'getLatestVersion':_0xa518a8(0x183)},'dirname':__dirname,'root_env':()=>process['cwd']()+_0xa518a8(0x177),'env':{'appId':_0xa518a8(0x17a),'token':_0xa518a8(0x174)},'error_code':{'app_config_not_found':-0x578,'permission_denied':-0x7d1,'request_timeout':-0x7d3},'error_msg':{'app_config_not_found':'App\x20config\x20not\x20found.\x20Please\x20re-init\x20project.\x20(Tips:\x20Run\x20\x27zmp\x20init\x27)','permission_denied':'Permission\x20denied.\x20Please\x20login\x20again.\x20(Tips:\x20Run\x20\x27zmp\x20login\x27)','request_timeout':_0xa518a8(0x179)},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0xa518a8(0x172),'forceChunkSize':!0x1}};function _0x8397(_0x3c9061,_0x216996){var _0x4effb3=_0x4eff();return _0x8397=function(_0x8397f3,_0x5d3dc8){_0x8397f3=_0x8397f3-0x16e;var _0x34e768=_0x4effb3[_0x8397f3];return _0x34e768;},_0x8397(_0x3c9061,_0x216996);}function _0x4eff(){var _0x55611a=['54ppKxVM','app/upload-chunk','448525ayCXmU','439944WmZsLU','1041MFpoFU','app/get-info','exports','dev-tools/app/get-info','632254SMdIyz','app-config.json','13648rvHzfy','20950820KEOYmC','20598Jyolie','admin/login','octet','app/request-upload','ZMP_TOKEN','//h5.zdn.vn/zapps/','package.json','/.env','2529XOTdyi','Request\x20Timeout','APP_ID','940iLsIev'];_0x4eff=function(){return _0x55611a;};return _0x4eff();}
package/create/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa893b3=_0x5571;(function(_0x1f10e9,_0x2ce1e0){const _0x330b74=_0x5571,_0x80e55f=_0x1f10e9();while(!![]){try{const _0x23a991=parseInt(_0x330b74(0x8f))/0x1+-parseInt(_0x330b74(0x7e))/0x2+-parseInt(_0x330b74(0x91))/0x3+parseInt(_0x330b74(0x93))/0x4*(parseInt(_0x330b74(0x9d))/0x5)+parseInt(_0x330b74(0x8b))/0x6*(-parseInt(_0x330b74(0xae))/0x7)+parseInt(_0x330b74(0x84))/0x8+-parseInt(_0x330b74(0x83))/0x9;if(_0x23a991===_0x2ce1e0)break;else _0x80e55f['push'](_0x80e55f['shift']());}catch(_0x49b05d){_0x80e55f['push'](_0x80e55f['shift']());}}}(_0x41c2,0xad67f));const e=require('exec-sh'),t=require(_0xa893b3(0xb3)),n=require(_0xa893b3(0xa5)),r=require(_0xa893b3(0xb0)),{initProject:i}=require(_0xa893b3(0xa6)),o=require(_0xa893b3(0x9e)),{errorExit:s}=require(_0xa893b3(0x9b)),a=require(_0xa893b3(0x85)),c=require('./utils/generate-app-config'),l=require(_0xa893b3(0xaa)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0xa893b3(0x8d)](_0xa893b3(0x81));async function f(_0x10c21f,_0x8d68a8){const _0x1b2634=_0xa893b3;_0x8d68a8[_0x1b2634(0xb1)](_0x1b2634(0xaf));try{let {cwd:_0x296ff9,template:_0x54662a,folderName:_0x5d3ebb,name:_0x42deef}=_0x10c21f;await i({'cwd':_0x296ff9,'template':_0x54662a,'folderName':_0x5d3ebb,'projectName':_0x42deef});}catch(_0x244ef9){_0x8d68a8[_0x1b2634(0x86)](_0x1b2634(0xa4)),s(_0x244ef9);}_0x8d68a8['statusDone']('Creating\x20project\x20files');}async function m(_0x5af667){const _0x2b428c=_0xa893b3;let _0x3db865=t['resolve'](_0x5af667[_0x2b428c(0x96)],_0x2b428c(0x92)),_0x2fd10a=t[_0x2b428c(0x8c)](_0x5af667['cwd'],_0x5af667[_0x2b428c(0x87)],_0x2b428c(0x92));p(_0x3db865)&&!p(_0x2fd10a)&&u(_0x3db865,_0x2fd10a);}async function g(_0x24425c,_0x3ec042){const _0x94551c=_0xa893b3;let {cwd:_0x3289ef}=_0x24425c;_0x3ec042[_0x94551c(0xb1)]('Generating\x20app-config.json');let _0x316d83=c(_0x24425c);o['writeFileSync'](t[_0x94551c(0xa8)](_0x3289ef,a[_0x94551c(0xa0)][_0x94551c(0xad)]),_0x316d83[_0x94551c(0x8e)]),_0x3ec042[_0x94551c(0x7f)]('Generating\x20app-config.json');}async function $(_0x24ded7,_0x4085b2){const _0x14c7ee=_0xa893b3;let _0x2aaf7f=t[_0x14c7ee(0xa8)](_0x24ded7[_0x14c7ee(0x96)],_0x24ded7[_0x14c7ee(0x87)]);_0x4085b2['statusStart'](_0x14c7ee(0x7d)+d);let _0x590f87=_0x2aaf7f===process['cwd']();try{_0x590f87?await e[_0x14c7ee(0x99)]('npm\x20install',!0x0):await e['promise'](_0x14c7ee(0x9c)+_0x2aaf7f[_0x14c7ee(0x82)](/ /g,'\x5c\x20')+_0x14c7ee(0x80),!0x0);}catch(_0x2cd66d){_0x4085b2['statusError'](_0x14c7ee(0x89)),s(_0x2cd66d);return;}_0x4085b2['statusDone'](_0x14c7ee(0x97));}async function h(_0x5f1ceb,_0x3c611d){const _0x221d84=_0xa893b3;let _0x139cf9=l(['s','r'])['map'](_0x16565e=>'-\x20'+_0x16565e[_0x221d84(0xa9)]+'\x20Run\x20\x22npm\x20run\x20'+_0x16565e[_0x221d84(0x9a)]+_0x221d84(0x95)+_0x16565e[_0x221d84(0x94)]),_0xf82c6e='\x0a'+n['bold'](r[_0x221d84(0x90)])+'\x20'+n['bold']('Done!')+'\x20💪\x0a\x0a'+n[_0x221d84(0x7c)](r['info'])+'\x20'+n[_0x221d84(0x7c)](_0x221d84(0x7b))+_0x221d84(0xab)+_0x5f1ceb['folderName']+'\x22\x0a'+_0x139cf9[_0x221d84(0xa8)]('\x0a')+'\x0a-\x20📖\x20Visit\x20documentation\x20at\x20'+n['bold'](_0x221d84(0xa2))+_0x221d84(0xa3)+n[_0x221d84(0x7c)]('README.md')+_0x221d84(0x88);_0x3c611d[_0x221d84(0xa7)](_0xf82c6e);}async function y(_0x2a283d,_0x4fe8b1){const _0x44d469=_0xa893b3;let _0x5b4598='\x0a'+n[_0x44d469(0x7c)](r[_0x44d469(0x90)])+'\x20'+n[_0x44d469(0x7c)](_0x44d469(0xa1))+_0x44d469(0x98)+n[_0x44d469(0x7c)](r[_0x44d469(0xb2)])+'\x20'+n[_0x44d469(0x7c)](_0x44d469(0x7b))+_0x44d469(0x9f)+n[_0x44d469(0x7c)](_0x44d469(0xac))+_0x44d469(0x8a);_0x4fe8b1[_0x44d469(0xa7)](_0x5b4598);}function _0x41c2(){const _0x22e270=['../config','statusError','folderName','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','Error\x20installing\x20NPM\x20Dependencies','\x0a\x20\x20','28488qWNpky','resolve','gray','content','852807ryPljB','success','258144WsiaqI','.env','56bwoXXc','description','\x22\x20-\x20','cwd','Installing\x20NPM\x20Dependencies','\x20💪\x0a\x0a','promise','name','../utils/error','cd\x20','367130WElesA','../utils/fs-extra','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','filename','Done!','https://mini.zalo.me/','\x0a-\x20📖\x20Check\x20','Error\x20creating\x20project\x20files','chalk','zmp-cli-core','text','join','icon','./utils/generate-npm-scripts','\x0a-\x20👉\x20Run\x20\x22cd\x20','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','appConfig','364iISnvT','Creating\x20project\x20files','log-symbols','statusStart','info','path','Next\x20steps:','bold','Installing\x20NPM\x20Dependencies\x20','935282OoXfmR','statusDone','\x20&&\x20npm\x20install','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','replace','13838832VGSiXO','9341864aUMInp'];_0x41c2=function(){return _0x22e270;};return _0x41c2();}function _0x5571(_0x1e4f10,_0x28b2c3){const _0x41c2b8=_0x41c2();return _0x5571=function(_0x5571bd,_0x2c209c){_0x5571bd=_0x5571bd-0x7b;let _0x2d452a=_0x41c2b8[_0x5571bd];return _0x2d452a;},_0x5571(_0x1e4f10,_0x28b2c3);}module['exports']=async(_0x243d9d={},_0x81b7d3)=>{for(let _0x3c8a13 of(_0x81b7d3||(_0x81b7d3={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x243d9d['newProject']?[f,m,$,h]:[g,y]))await _0x3c8a13(_0x243d9d,_0x81b7d3);};
1
+ 'use strict';const _0x5b5be8=_0x5060;(function(_0x5e4c84,_0x4eba19){const _0x555657=_0x5060,_0x47a4bb=_0x5e4c84();while(!![]){try{const _0x385db8=-parseInt(_0x555657(0x105))/0x1*(parseInt(_0x555657(0x10f))/0x2)+parseInt(_0x555657(0xf1))/0x3+-parseInt(_0x555657(0xe9))/0x4+-parseInt(_0x555657(0x102))/0x5+-parseInt(_0x555657(0xf8))/0x6+parseInt(_0x555657(0xe5))/0x7*(parseInt(_0x555657(0xe8))/0x8)+parseInt(_0x555657(0xfe))/0x9;if(_0x385db8===_0x4eba19)break;else _0x47a4bb['push'](_0x47a4bb['shift']());}catch(_0x42aa99){_0x47a4bb['push'](_0x47a4bb['shift']());}}}(_0x26e4,0x7f7f6));const e=require('exec-sh'),t=require(_0x5b5be8(0x10e)),n=require(_0x5b5be8(0xf4)),r=require(_0x5b5be8(0xed)),{initProject:i}=require(_0x5b5be8(0x103)),o=require('../utils/fs-extra'),{errorExit:s}=require(_0x5b5be8(0x104)),a=require(_0x5b5be8(0xf6)),c=require('./utils/generate-app-config'),l=require(_0x5b5be8(0xe2)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x5b5be8(0xe7)](_0x5b5be8(0xfd));function _0x5060(_0x3a123e,_0x14e36d){const _0x26e4df=_0x26e4();return _0x5060=function(_0x5060ff,_0x6430ec){_0x5060ff=_0x5060ff-0xde;let _0x104909=_0x26e4df[_0x5060ff];return _0x104909;},_0x5060(_0x3a123e,_0x14e36d);}async function f(_0x1f7f32,_0x5313fc){const _0x3340e4=_0x5b5be8;_0x5313fc[_0x3340e4(0xf7)](_0x3340e4(0xe4));try{let {cwd:_0x137ad9,template:_0x45babd,folderName:_0x57dad9,name:_0x13e185}=_0x1f7f32;await i({'cwd':_0x137ad9,'template':_0x45babd,'folderName':_0x57dad9,'projectName':_0x13e185});}catch(_0x456510){_0x5313fc[_0x3340e4(0x10b)](_0x3340e4(0x107)),s(_0x456510);}_0x5313fc['statusDone'](_0x3340e4(0xe4));}function _0x26e4(){const _0xd87fc6=['gray','8hSrlzT','1614232qxQoYo','info','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','\x22\x20-\x20','log-symbols','map','npm\x20install','statusDone','399612LSRLbU','join','name','chalk','cd\x20','../config','statusStart','2083920iKnWiH','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','\x20Run\x20\x22npm\x20run\x20','success','appConfig','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','27169794iOtSSP','Next\x20steps:','Error\x20installing\x20NPM\x20Dependencies','content','5124565HJQPkR','zmp-cli-core','../utils/error','34573AodqiR','\x20💪\x0a\x0a','Error\x20creating\x20project\x20files','text','\x0a\x20\x20','resolve','statusError','replace','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','path','50TcHoXN','\x20&&\x20npm\x20install','.env','icon','\x0a-\x20👉\x20Run\x20\x22cd\x20','cwd','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','exports','Done!','./utils/generate-npm-scripts','bold','Creating\x20project\x20files','71932cgnmjB','folderName'];_0x26e4=function(){return _0xd87fc6;};return _0x26e4();}async function m(_0x2b2525){const _0x3d9efb=_0x5b5be8;let _0x13b230=t[_0x3d9efb(0x10a)](_0x2b2525[_0x3d9efb(0xde)],_0x3d9efb(0x111)),_0x3938a7=t[_0x3d9efb(0x10a)](_0x2b2525[_0x3d9efb(0xde)],_0x2b2525[_0x3d9efb(0xe6)],_0x3d9efb(0x111));p(_0x13b230)&&!p(_0x3938a7)&&u(_0x13b230,_0x3938a7);}async function g(_0x336dff,_0x4401a1){const _0x545ec4=_0x5b5be8;let {cwd:_0x5a400c}=_0x336dff;_0x4401a1[_0x545ec4(0xf7)]('Generating\x20app-config.json');let _0xd51b0f=c(_0x336dff);o['writeFileSync'](t[_0x545ec4(0xf2)](_0x5a400c,a['filename'][_0x545ec4(0xfc)]),_0xd51b0f[_0x545ec4(0x101)]),_0x4401a1[_0x545ec4(0xf0)]('Generating\x20app-config.json');}async function $(_0x117384,_0x1b57c4){const _0x1730f5=_0x5b5be8;let _0x573ebe=t[_0x1730f5(0xf2)](_0x117384['cwd'],_0x117384[_0x1730f5(0xe6)]);_0x1b57c4[_0x1730f5(0xf7)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x187403=_0x573ebe===process[_0x1730f5(0xde)]();try{_0x187403?await e['promise'](_0x1730f5(0xef),!0x0):await e['promise'](_0x1730f5(0xf5)+_0x573ebe[_0x1730f5(0x10c)](/ /g,'\x5c\x20')+_0x1730f5(0x110),!0x0);}catch(_0x281dfa){_0x1b57c4[_0x1730f5(0x10b)](_0x1730f5(0x100)),s(_0x281dfa);return;}_0x1b57c4[_0x1730f5(0xf0)]('Installing\x20NPM\x20Dependencies');}async function h(_0x41fb8a,_0x5119d6){const _0x1e2853=_0x5b5be8;let _0x530d89=l(['s','r'])[_0x1e2853(0xee)](_0x40002a=>'-\x20'+_0x40002a[_0x1e2853(0x112)]+_0x1e2853(0xfa)+_0x40002a[_0x1e2853(0xf3)]+_0x1e2853(0xec)+_0x40002a['description']),_0x4686c3='\x0a'+n['bold'](r[_0x1e2853(0xfb)])+'\x20'+n[_0x1e2853(0xe3)]('Done!')+_0x1e2853(0x106)+n[_0x1e2853(0xe3)](r[_0x1e2853(0xea)])+'\x20'+n[_0x1e2853(0xe3)](_0x1e2853(0xff))+_0x1e2853(0x113)+_0x41fb8a[_0x1e2853(0xe6)]+'\x22\x0a'+_0x530d89[_0x1e2853(0xf2)]('\x0a')+_0x1e2853(0xdf)+n['bold']('https://mini.zalo.me/')+'\x0a-\x20📖\x20Check\x20'+n[_0x1e2853(0xe3)]('README.md')+_0x1e2853(0x10d);_0x5119d6['text'](_0x4686c3);}async function y(_0xbcacc7,_0x23434d){const _0x42b495=_0x5b5be8;let _0x14f699='\x0a'+n[_0x42b495(0xe3)](r['success'])+'\x20'+n[_0x42b495(0xe3)](_0x42b495(0xe1))+'\x20💪\x0a\x0a'+n['bold'](r[_0x42b495(0xea)])+'\x20'+n['bold'](_0x42b495(0xff))+_0x42b495(0xf9)+n['bold'](_0x42b495(0xeb))+_0x42b495(0x109);_0x23434d[_0x42b495(0x108)](_0x14f699);}module[_0x5b5be8(0xe0)]=async(_0x25e119={},_0x2c70be)=>{for(let _0x35bccf of(_0x2c70be||(_0x2c70be={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x25e119['newProject']?[f,m,$,h]:[g,y]))await _0x35bccf(_0x25e119,_0x2c70be);};
@@ -1 +1 @@
1
- 'use strict';function _0x5595(_0x4f9627,_0x91e748){const _0x233fda=_0x233f();return _0x5595=function(_0x5595f2,_0x1af271){_0x5595f2=_0x5595f2-0xa2;let _0x488ab4=_0x233fda[_0x5595f2];return _0x488ab4;},_0x5595(_0x4f9627,_0x91e748);}const _0xdb6bb3=_0x5595;(function(_0x2dc8eb,_0x3af61b){const _0x34063b=_0x5595,_0x538d1b=_0x2dc8eb();while(!![]){try{const _0x261bcd=-parseInt(_0x34063b(0xaf))/0x1*(-parseInt(_0x34063b(0xb0))/0x2)+-parseInt(_0x34063b(0xaa))/0x3*(-parseInt(_0x34063b(0xa8))/0x4)+parseInt(_0x34063b(0xa9))/0x5*(-parseInt(_0x34063b(0xa4))/0x6)+-parseInt(_0x34063b(0xa5))/0x7*(-parseInt(_0x34063b(0xae))/0x8)+-parseInt(_0x34063b(0xa7))/0x9*(-parseInt(_0x34063b(0xa2))/0xa)+-parseInt(_0x34063b(0xb4))/0xb*(parseInt(_0x34063b(0xa3))/0xc)+-parseInt(_0x34063b(0xb2))/0xd*(parseInt(_0x34063b(0xb3))/0xe);if(_0x261bcd===_0x3af61b)break;else _0x538d1b['push'](_0x538d1b['shift']());}catch(_0x436d4e){_0x538d1b['push'](_0x538d1b['shift']());}}}(_0x233f,0x8cae1));function _0x233f(){const _0x5822c6=['162tFrxjb','1016wCdezr','5Ckzwze','9624xMjnyf','normal','#1843EF','exports','944gjmtKm','300431xLXZtx','6elefAh','stringify','13dhwJNB','7776146DbBtbJ','4572073UCOWTO','white','126990roCRFX','12VfbUJI','5841564YvJoss','34181ZNOTGc','back'];_0x233f=function(){return _0x5822c6;};return _0x233f();}module[_0xdb6bb3(0xad)]=function(_0x5df92f){const _0x4d8d61=_0xdb6bb3;let {name:_0x278130}=_0x5df92f,_0x2b55e7={'title':_0x278130,'headerTitle':_0x278130,'headerColor':_0x4d8d61(0xac),'textColor':_0x4d8d61(0xb5),'leftButton':_0x4d8d61(0xa6),'statusBar':_0x4d8d61(0xab),'actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x4d8d61(0xb1)]({'app':_0x2b55e7,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x2b55e7};};
1
+ 'use strict';(function(_0x13ce41,_0x56292d){const _0x359e3f=_0xb92f,_0x58844c=_0x13ce41();while(!![]){try{const _0x1f4a75=parseInt(_0x359e3f(0x1dc))/0x1+parseInt(_0x359e3f(0x1de))/0x2+parseInt(_0x359e3f(0x1df))/0x3+-parseInt(_0x359e3f(0x1d9))/0x4*(parseInt(_0x359e3f(0x1e1))/0x5)+-parseInt(_0x359e3f(0x1da))/0x6+-parseInt(_0x359e3f(0x1e0))/0x7*(-parseInt(_0x359e3f(0x1d8))/0x8)+parseInt(_0x359e3f(0x1e2))/0x9*(-parseInt(_0x359e3f(0x1d6))/0xa);if(_0x1f4a75===_0x56292d)break;else _0x58844c['push'](_0x58844c['shift']());}catch(_0x258ae3){_0x58844c['push'](_0x58844c['shift']());}}}(_0x30bd,0xa68c0));function _0xb92f(_0x2d7b2e,_0x1b40d6){const _0x30bda5=_0x30bd();return _0xb92f=function(_0xb92f6e,_0x1f7086){_0xb92f6e=_0xb92f6e-0x1d6;let _0x4ff5a7=_0x30bda5[_0xb92f6e];return _0x4ff5a7;},_0xb92f(_0x2d7b2e,_0x1b40d6);}function _0x30bd(){const _0x3e6c3f=['262779ISfFgF','14917TKYbZu','5CUvuWE','63ravJlJ','140090ZBhYEd','stringify','3680ASiUOW','3942352FjDUts','7376424EQeOvN','white','1001358lKLUvq','back','1852040ZCuWCo'];_0x30bd=function(){return _0x3e6c3f;};return _0x30bd();}module['exports']=function(_0x32eee1){const _0x45f2db=_0xb92f;let {name:_0x38a62a}=_0x32eee1,_0x57e18d={'title':_0x38a62a,'headerTitle':_0x38a62a,'headerColor':'#1843EF','textColor':_0x45f2db(0x1db),'leftButton':_0x45f2db(0x1dd),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x45f2db(0x1d7)]({'app':_0x57e18d,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)['trim'](),'appConfig':_0x57e18d};};
@@ -1 +1 @@
1
- 'use strict';const _0x6969a6=_0x1bfb;(function(_0x17db2a,_0x1aeeae){const _0x209e75=_0x1bfb,_0x296e51=_0x17db2a();while(!![]){try{const _0x145709=-parseInt(_0x209e75(0xc5))/0x1+parseInt(_0x209e75(0xc1))/0x2*(-parseInt(_0x209e75(0xba))/0x3)+parseInt(_0x209e75(0xcc))/0x4*(-parseInt(_0x209e75(0xc2))/0x5)+-parseInt(_0x209e75(0xc0))/0x6+parseInt(_0x209e75(0xcb))/0x7*(parseInt(_0x209e75(0xbb))/0x8)+parseInt(_0x209e75(0xc8))/0x9+-parseInt(_0x209e75(0xbc))/0xa*(-parseInt(_0x209e75(0xc7))/0xb);if(_0x145709===_0x1aeeae)break;else _0x296e51['push'](_0x296e51['shift']());}catch(_0x439705){_0x296e51['push'](_0x296e51['shift']());}}}(_0x54eb,0xd2025));const i=require(_0x6969a6(0xc6));module['exports']=(_0xfed624=['s','r'])=>_0xfed624[_0x6969a6(0xca)](_0x5c2bf5=>({'icon':i['default'][_0x5c2bf5][_0x6969a6(0xbe)],'name':i[_0x6969a6(0xc4)][_0x5c2bf5][_0x6969a6(0xc3)],'script':i[_0x6969a6(0xc4)][_0x5c2bf5]['script'],'description':i['default'][_0x5c2bf5][_0x6969a6(0xbd)]})),module[_0x6969a6(0xc9)]['generateTailWindScripts']=(_0x2217ef=['t'])=>_0x2217ef[_0x6969a6(0xca)](_0x166873=>({'icon':i[_0x6969a6(0xbf)][_0x166873][_0x6969a6(0xbe)],'name':i[_0x6969a6(0xbf)][_0x166873][_0x6969a6(0xc3)],'script':i['tailwind'][_0x166873][_0x6969a6(0xb9)],'description':i['tailwind'][_0x166873][_0x6969a6(0xbd)]}));function _0x1bfb(_0x207bd6,_0x3b60a0){const _0x54eb70=_0x54eb();return _0x1bfb=function(_0x1bfb07,_0x340314){_0x1bfb07=_0x1bfb07-0xb9;let _0xa13682=_0x54eb70[_0x1bfb07];return _0xa13682;},_0x1bfb(_0x207bd6,_0x3b60a0);}function _0x54eb(){const _0x34260d=['1124454xAorkd','13257592CkvxTu','6536690wWijdk','description','icon','tailwind','5291838oADMap','6htVJGF','5ZDrFmZ','name','default','1430709MdXoWG','./npm-scripts','33Hpqyle','8158725vWSwpt','exports','map','7ajyvHE','909592mKthwq','script'];_0x54eb=function(){return _0x34260d;};return _0x54eb();}
1
+ 'use strict';function _0x1ba2(_0x48e038,_0xf0ca81){const _0x2920fc=_0x2920();return _0x1ba2=function(_0x1ba2ae,_0x31e92f){_0x1ba2ae=_0x1ba2ae-0x100;let _0x390fc9=_0x2920fc[_0x1ba2ae];return _0x390fc9;},_0x1ba2(_0x48e038,_0xf0ca81);}function _0x2920(){const _0x8141e4=['60emWxsK','51048ZIdfHG','tailwind','description','script','283194vQJdlj','name','1454166BySgsa','default','map','exports','12444264VjzhDU','3772876YeVVCk','176hmDaZt','generateTailWindScripts','./npm-scripts','224182ARyupa','21064518CguMzN'];_0x2920=function(){return _0x8141e4;};return _0x2920();}const _0x5e84ed=_0x1ba2;(function(_0x20ce07,_0x2e8544){const _0x2e948d=_0x1ba2,_0x105a8b=_0x20ce07();while(!![]){try{const _0x20e8a6=-parseInt(_0x2e948d(0x105))/0x1+-parseInt(_0x2e948d(0x102))/0x2*(parseInt(_0x2e948d(0x108))/0x3)+parseInt(_0x2e948d(0x101))/0x4+-parseInt(_0x2e948d(0x107))/0x5*(-parseInt(_0x2e948d(0x10c))/0x6)+parseInt(_0x2e948d(0x10e))/0x7+-parseInt(_0x2e948d(0x100))/0x8+parseInt(_0x2e948d(0x106))/0x9;if(_0x20e8a6===_0x2e8544)break;else _0x105a8b['push'](_0x105a8b['shift']());}catch(_0x44c704){_0x105a8b['push'](_0x105a8b['shift']());}}}(_0x2920,0xbe9b4));const i=require(_0x5e84ed(0x104));module[_0x5e84ed(0x111)]=(_0x17f020=['s','r'])=>_0x17f020[_0x5e84ed(0x110)](_0x2ea32c=>({'icon':i['default'][_0x2ea32c]['icon'],'name':i['default'][_0x2ea32c][_0x5e84ed(0x10d)],'script':i[_0x5e84ed(0x10f)][_0x2ea32c][_0x5e84ed(0x10b)],'description':i[_0x5e84ed(0x10f)][_0x2ea32c]['description']})),module['exports'][_0x5e84ed(0x103)]=(_0x5327ab=['t'])=>_0x5327ab[_0x5e84ed(0x110)](_0xcda71e=>({'icon':i[_0x5e84ed(0x109)][_0xcda71e]['icon'],'name':i[_0x5e84ed(0x109)][_0xcda71e][_0x5e84ed(0x10d)],'script':i['tailwind'][_0xcda71e][_0x5e84ed(0x10b)],'description':i[_0x5e84ed(0x109)][_0xcda71e][_0x5e84ed(0x10a)]}));
@@ -1 +1 @@
1
- 'use strict';const _0xba7e92=_0x28af;function _0x3cfb(){const _0x110420=['App\x20name\x20is\x20required','resolve','My\x20App','newProject','Separator','folderName','list','1526718duLfVb','zmp-cli-core','Using\x20ZMP\x20to\x20deploy\x20only','9839322soglCF','5RBvWmO','replace','New\x20project','inquirer','chalk','then','361914diYwyu','exports','772636fkNvmm','Existing\x20project','ZaUI\x20','2794064lOvouR','1012245rlxPAy','7LqwtmW','name','italic','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','filter','376152WIoHXO','Create\x20a\x20new\x20ZMP\x20project','input','template','What\x20action\x20you\x20want\x20to\x20do?','Choose\x20a\x20template:','Folder\x20name:','isBlank'];_0x3cfb=function(){return _0x110420;};return _0x3cfb();}(function(_0xb13d84,_0x997596){const _0x460553=_0x28af,_0x18b963=_0xb13d84();while(!![]){try{const _0x49d70e=parseInt(_0x460553(0x1d6))/0x1+-parseInt(_0x460553(0x1ef))/0x2+parseInt(_0x460553(0x1d0))/0x3+-parseInt(_0x460553(0x1cc))/0x4*(-parseInt(_0x460553(0x1e9))/0x5)+parseInt(_0x460553(0x1e5))/0x6*(parseInt(_0x460553(0x1d1))/0x7)+parseInt(_0x460553(0x1cf))/0x8+-parseInt(_0x460553(0x1e8))/0x9;if(_0x49d70e===_0x997596)break;else _0x18b963['push'](_0x18b963['shift']());}catch(_0xe9a477){_0x18b963['push'](_0x18b963['shift']());}}}(_0x3cfb,0x39abe));const e=require(_0xba7e92(0x1ec)),r=require(_0xba7e92(0x1ed)),{INIT_TEMPLATES:a}=require(_0xba7e92(0x1e6)),t=[{'type':'list','name':'newProject','message':_0xba7e92(0x1da),'choices':[{'name':_0xba7e92(0x1d7),'value':!0x0,'short':_0xba7e92(0x1eb)},{'name':_0xba7e92(0x1e7),'value':!0x1,'short':_0xba7e92(0x1cd)}]},{'type':_0xba7e92(0x1e4),'name':_0xba7e92(0x1d9),'when':_0x3604c9=>_0x3604c9[_0xba7e92(0x1e1)],'message':_0xba7e92(0x1db),'choices':[...a[_0xba7e92(0x1d5)](_0x5a08d2=>_0x5a08d2[_0xba7e92(0x1dd)])['map'](_0x422489=>({'name':_0x422489[_0xba7e92(0x1d2)],'value':_0x422489})),new e[(_0xba7e92(0x1e2))](),...a[_0xba7e92(0x1d5)](_0x3c7c4b=>!_0x3c7c4b[_0xba7e92(0x1dd)])['map'](_0x54aed2=>({'name':_0x54aed2[_0xba7e92(0x1d2)],'value':_0x54aed2}))]},{'type':_0xba7e92(0x1d8),'name':_0xba7e92(0x1d2),'message':'App\x20(project)\x20name:','default':_0xf37fa7=>{const _0xe28de=_0xba7e92;let {template:_0x38ab60}=_0xf37fa7;return _0x38ab60&&!_0x38ab60[_0xe28de(0x1dd)]?'My\x20'+_0x38ab60[_0xe28de(0x1d2)]['replace'](_0xe28de(0x1ce),'')+'\x20App':_0xe28de(0x1e0);},'validate':_0x43de7c=>new Promise((_0x5a8f9e,_0x4a6d74)=>{const _0x1e3d16=_0xba7e92;_0x43de7c?_0x5a8f9e(!0x0):_0x4a6d74(Error(_0x1e3d16(0x1de)));})},{'type':'input','name':_0xba7e92(0x1e3),'when':_0x9d5149=>_0x9d5149[_0xba7e92(0x1e1)],'message':_0xba7e92(0x1dc),'suffix':'\x0a'+r[_0xba7e92(0x1d3)](_0xba7e92(0x1d4)),'default':_0x1f139f=>{const _0x4608ea=_0xba7e92;let {name:_0xbf9729}=_0x1f139f;return _0xbf9729[_0x4608ea(0x1ea)](/ /g,'-')[_0x4608ea(0x1ea)](/[^a-zA-Z0-9-]/g,'')['toLowerCase']();},'validate':_0x54126a=>new Promise((_0x48e4fb,_0xc8dacc)=>{_0x54126a?_0x48e4fb(!0x0):_0xc8dacc(Error('Folder\x20name\x20is\x20required'));})}];function _0x28af(_0x447812,_0x3e386f){const _0x3cfb8e=_0x3cfb();return _0x28af=function(_0x28af45,_0x5c307d){_0x28af45=_0x28af45-0x1cc;let _0x59c9e5=_0x3cfb8e[_0x28af45];return _0x59c9e5;},_0x28af(_0x447812,_0x3e386f);}module[_0xba7e92(0x1f0)]=function(){const _0x502560=_0xba7e92;return e['prompt'](t)[_0x502560(0x1ee)](_0x45d5b6=>Promise[_0x502560(0x1df)](_0x45d5b6));};
1
+ 'use strict';function _0x352f(){const _0xaca229=['input','toLowerCase','resolve','Separator','980735qjAnGq','Existing\x20project','32FooocB','1413285syobrb','italic','1843842hxPpWB','newProject','Folder\x20name:','template','4vGVJVI','(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)','Using\x20ZMP\x20to\x20deploy\x20only','inquirer','Create\x20a\x20new\x20ZMP\x20project','zmp-cli-core','161756mmbMiA','name','21996864EJafPu','Choose\x20a\x20template:','ZaUI\x20','My\x20','What\x20action\x20you\x20want\x20to\x20do?','map','10075728RtwFIw','\x20App','replace','10140774TFWlCH','exports','Folder\x20name\x20is\x20required','App\x20(project)\x20name:','folderName','isBlank','filter','New\x20project'];_0x352f=function(){return _0xaca229;};return _0x352f();}function _0x149f(_0x1b2c3a,_0x14da0c){const _0x352fad=_0x352f();return _0x149f=function(_0x149fc1,_0x1b2a74){_0x149fc1=_0x149fc1-0x14d;let _0x173a81=_0x352fad[_0x149fc1];return _0x173a81;},_0x149f(_0x1b2c3a,_0x14da0c);}const _0x36a1fe=_0x149f;(function(_0x46809c,_0x1247dd){const _0x16d6c0=_0x149f,_0x3f864e=_0x46809c();while(!![]){try{const _0x4ea171=-parseInt(_0x16d6c0(0x152))/0x1*(-parseInt(_0x16d6c0(0x172))/0x2)+-parseInt(_0x16d6c0(0x16c))/0x3+-parseInt(_0x16d6c0(0x16b))/0x4*(parseInt(_0x16d6c0(0x169))/0x5)+parseInt(_0x16d6c0(0x15d))/0x6+-parseInt(_0x16d6c0(0x16e))/0x7+-parseInt(_0x16d6c0(0x15a))/0x8+parseInt(_0x16d6c0(0x154))/0x9;if(_0x4ea171===_0x1247dd)break;else _0x3f864e['push'](_0x3f864e['shift']());}catch(_0x518122){_0x3f864e['push'](_0x3f864e['shift']());}}}(_0x352f,0xda682));const e=require(_0x36a1fe(0x14f)),r=require('chalk'),{INIT_TEMPLATES:a}=require(_0x36a1fe(0x151)),t=[{'type':'list','name':_0x36a1fe(0x16f),'message':_0x36a1fe(0x158),'choices':[{'name':_0x36a1fe(0x150),'value':!0x0,'short':_0x36a1fe(0x164)},{'name':_0x36a1fe(0x14e),'value':!0x1,'short':_0x36a1fe(0x16a)}]},{'type':'list','name':_0x36a1fe(0x171),'when':_0x2d4d56=>_0x2d4d56['newProject'],'message':_0x36a1fe(0x155),'choices':[...a[_0x36a1fe(0x163)](_0x119704=>_0x119704[_0x36a1fe(0x162)])[_0x36a1fe(0x159)](_0x4ffd10=>({'name':_0x4ffd10[_0x36a1fe(0x153)],'value':_0x4ffd10})),new e[(_0x36a1fe(0x168))](),...a[_0x36a1fe(0x163)](_0x5bc0e6=>!_0x5bc0e6['isBlank'])[_0x36a1fe(0x159)](_0x15b887=>({'name':_0x15b887['name'],'value':_0x15b887}))]},{'type':'input','name':_0x36a1fe(0x153),'message':_0x36a1fe(0x160),'default':_0x10e4fe=>{const _0x399246=_0x36a1fe;let {template:_0x31666b}=_0x10e4fe;return _0x31666b&&!_0x31666b[_0x399246(0x162)]?_0x399246(0x157)+_0x31666b[_0x399246(0x153)]['replace'](_0x399246(0x156),'')+_0x399246(0x15b):'My\x20App';},'validate':_0x43a8bf=>new Promise((_0x5908a5,_0x5cde7e)=>{_0x43a8bf?_0x5908a5(!0x0):_0x5cde7e(Error('App\x20name\x20is\x20required'));})},{'type':_0x36a1fe(0x165),'name':_0x36a1fe(0x161),'when':_0xc8b4ef=>_0xc8b4ef[_0x36a1fe(0x16f)],'message':_0x36a1fe(0x170),'suffix':'\x0a'+r[_0x36a1fe(0x16d)](_0x36a1fe(0x14d)),'default':_0x8b19b0=>{const _0x3c9779=_0x36a1fe;let {name:_0x599d65}=_0x8b19b0;return _0x599d65[_0x3c9779(0x15c)](/ /g,'-')[_0x3c9779(0x15c)](/[^a-zA-Z0-9-]/g,'')[_0x3c9779(0x166)]();},'validate':_0x4d8d70=>new Promise((_0xe1c98f,_0x4e5de6)=>{const _0x36f433=_0x36a1fe;_0x4d8d70?_0xe1c98f(!0x0):_0x4e5de6(Error(_0x36f433(0x15f)));})}];module[_0x36a1fe(0x15e)]=function(){const _0x87b8ed=_0x36a1fe;return e['prompt'](t)['then'](_0x5bbc4d=>Promise[_0x87b8ed(0x167)](_0x5bbc4d));};
@@ -1 +1 @@
1
- 'use strict';const _0x8faa24=_0x140c;(function(_0x42181b,_0x564284){const _0x3317eb=_0x140c,_0x1305b4=_0x42181b();while(!![]){try{const _0x406c69=parseInt(_0x3317eb(0x151))/0x1*(parseInt(_0x3317eb(0x15a))/0x2)+parseInt(_0x3317eb(0x14d))/0x3+-parseInt(_0x3317eb(0x160))/0x4*(-parseInt(_0x3317eb(0x147))/0x5)+-parseInt(_0x3317eb(0x146))/0x6+-parseInt(_0x3317eb(0x156))/0x7*(-parseInt(_0x3317eb(0x158))/0x8)+parseInt(_0x3317eb(0x15e))/0x9*(-parseInt(_0x3317eb(0x149))/0xa)+parseInt(_0x3317eb(0x14e))/0xb;if(_0x406c69===_0x564284)break;else _0x1305b4['push'](_0x1305b4['shift']());}catch(_0x40eb1a){_0x1305b4['push'](_0x1305b4['shift']());}}}(_0x51f2,0xb5809));function _0x51f2(){const _0x41bd15=['10478Gzwoev','forEach','default','exports','9HkjuFb','httpServer','96048FumnmH','zmp\x20deploy','start','deploy','5956248WcuoeL','165Zetxzj','npm\x20run\x20serve','13916470UjOUaE','run\x20development\x20server','split','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','3035946Tecwim','453013AmStZE','tailwind','keys','61YsnYci','map','serve','deploy\x20mini\x20app\x20for\x20production','join','56qHoggf','build:css','962648UsXBJv','name'];_0x51f2=function(){return _0x41bd15;};return _0x51f2();}const e={'d':'dev','p':'prod','s':_0x8faa24(0x162),'v':_0x8faa24(0x153),'r':_0x8faa24(0x145),'t':_0x8faa24(0x157)};function _0x140c(_0x390bd8,_0x419969){const _0x51f2a7=_0x51f2();return _0x140c=function(_0x140c3a,_0x23818e){_0x140c3a=_0x140c3a-0x145;let _0x47a975=_0x51f2a7[_0x140c3a];return _0x47a975;},_0x140c(_0x390bd8,_0x419969);}function s(_0x581f84){const _0x16005e=_0x8faa24;return _0x581f84[_0x16005e(0x14b)]('_')[0x0][_0x16005e(0x14b)]('')[_0x16005e(0x152)](_0x4079c5=>e[_0x4079c5])[_0x16005e(0x155)]('-');}const t={'default':{'s':{'icon':'🔥','script':'zmp\x20start','description':_0x8faa24(0x14a)},'r':{'icon':'🙏','script':_0x8faa24(0x161),'description':_0x8faa24(0x154)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0x8faa24(0x14a)},'s':{'icon':'🔥','script':_0x8faa24(0x148),'description':_0x8faa24(0x14a)}},'tailwind':{'t':{'icon':'🔧','script':_0x8faa24(0x14c),'description':'build\x20tailwind\x20css'}}};Object['keys'](t['default'])[_0x8faa24(0x15b)](_0x4e239d=>{const _0x3bb0f4=_0x8faa24;t[_0x3bb0f4(0x15c)][_0x4e239d]['name']=s(_0x4e239d);}),Object['keys'](t[_0x8faa24(0x15f)])[_0x8faa24(0x15b)](_0x31df73=>{const _0x4309ce=_0x8faa24;t[_0x4309ce(0x15f)][_0x31df73][_0x4309ce(0x159)]=s(_0x31df73);}),Object[_0x8faa24(0x150)](t[_0x8faa24(0x14f)])[_0x8faa24(0x15b)](_0x2c34be=>{const _0x674b81=_0x8faa24;t[_0x674b81(0x14f)][_0x2c34be]['name']=s(_0x2c34be);}),module[_0x8faa24(0x15d)]=t;
1
+ 'use strict';function _0x15e1(){const _0x578398=['httpServer','prod','map','forEach','482125DPaHha','http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','name','run\x20development\x20server','655464ScgBLO','263657ZBonNO','80xLlnLD','serve','deploy\x20mini\x20app\x20for\x20production','default','597912nRGgGH','exports','zmp\x20deploy','zmp\x20start','52020MFpyzv','keys','193160eqJUXE','split','269507sTyEjD','deploy','tailwind','join','start','build:css','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css'];_0x15e1=function(){return _0x578398;};return _0x15e1();}function _0x13bb(_0x2a8141,_0x5daf38){const _0x15e194=_0x15e1();return _0x13bb=function(_0x13bbf4,_0x1a612e){_0x13bbf4=_0x13bbf4-0x11c;let _0x5de7b1=_0x15e194[_0x13bbf4];return _0x5de7b1;},_0x13bb(_0x2a8141,_0x5daf38);}const _0x5e51ad=_0x13bb;(function(_0x5955ed,_0x2fcf6b){const _0x4d89da=_0x13bb,_0xa96a1a=_0x5955ed();while(!![]){try{const _0x14444d=parseInt(_0x4d89da(0x12c))/0x1+-parseInt(_0x4d89da(0x131))/0x2+-parseInt(_0x4d89da(0x12b))/0x3+-parseInt(_0x4d89da(0x137))/0x4+parseInt(_0x4d89da(0x127))/0x5+-parseInt(_0x4d89da(0x135))/0x6+parseInt(_0x4d89da(0x11c))/0x7*(parseInt(_0x4d89da(0x12d))/0x8);if(_0x14444d===_0x2fcf6b)break;else _0xa96a1a['push'](_0xa96a1a['shift']());}catch(_0x52c301){_0xa96a1a['push'](_0xa96a1a['shift']());}}}(_0x15e1,0x29ac0));const e={'d':'dev','p':_0x5e51ad(0x124),'s':_0x5e51ad(0x120),'v':_0x5e51ad(0x12e),'r':_0x5e51ad(0x11d),'t':_0x5e51ad(0x121)};function s(_0x1a44be){const _0x2336f6=_0x5e51ad;return _0x1a44be[_0x2336f6(0x138)]('_')[0x0][_0x2336f6(0x138)]('')[_0x2336f6(0x125)](_0x29d846=>e[_0x29d846])[_0x2336f6(0x11f)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0x5e51ad(0x134),'description':_0x5e51ad(0x12a)},'r':{'icon':'🙏','script':_0x5e51ad(0x133),'description':_0x5e51ad(0x12f)}},'httpServer':{'v':{'icon':'🔧','script':_0x5e51ad(0x128),'description':_0x5e51ad(0x12a)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x5e51ad(0x12a)}},'tailwind':{'t':{'icon':'🔧','script':_0x5e51ad(0x122),'description':'build\x20tailwind\x20css'}}};Object[_0x5e51ad(0x136)](t[_0x5e51ad(0x130)])[_0x5e51ad(0x126)](_0x351bd5=>{const _0x32dada=_0x5e51ad;t[_0x32dada(0x130)][_0x351bd5][_0x32dada(0x129)]=s(_0x351bd5);}),Object[_0x5e51ad(0x136)](t[_0x5e51ad(0x123)])['forEach'](_0x51d4bb=>{const _0x2f422a=_0x5e51ad;t[_0x2f422a(0x123)][_0x51d4bb][_0x2f422a(0x129)]=s(_0x51d4bb);}),Object[_0x5e51ad(0x136)](t[_0x5e51ad(0x11e)])[_0x5e51ad(0x126)](_0x16ad8d=>{const _0x20c742=_0x5e51ad;t[_0x20c742(0x11e)][_0x16ad8d][_0x20c742(0x129)]=s(_0x16ad8d);}),module[_0x5e51ad(0x132)]=t;
package/deploy/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x8d41fa=_0x3003;(function(_0x2edaaf,_0x615a28){const _0x1aeb48=_0x3003,_0x3bef04=_0x2edaaf();while(!![]){try{const _0xaff69f=-parseInt(_0x1aeb48(0x203))/0x1+parseInt(_0x1aeb48(0x20a))/0x2*(-parseInt(_0x1aeb48(0x1df))/0x3)+-parseInt(_0x1aeb48(0x1eb))/0x4*(-parseInt(_0x1aeb48(0x1ef))/0x5)+parseInt(_0x1aeb48(0x20d))/0x6+-parseInt(_0x1aeb48(0x1fa))/0x7+parseInt(_0x1aeb48(0x1d9))/0x8*(parseInt(_0x1aeb48(0x1ee))/0x9)+-parseInt(_0x1aeb48(0x1de))/0xa;if(_0xaff69f===_0x615a28)break;else _0x3bef04['push'](_0x3bef04['shift']());}catch(_0x2d4f21){_0x3bef04['push'](_0x3bef04['shift']());}}}(_0x3c0d,0x5bd83));function _0x3c0d(){const _0x441775=['generate','entries','stringify','listSyncJS','\x20💪','app','371248oYuylZ','bold','getEnv','415890hWGIwo','10akvJWE','../utils/fs-extra','react','data','cwd','length','outputDir','statusError','memory','token','statusDone','1544039qthtAK','customProject','filename','zip-local','info','zmp','zip','listAsyncJS','green','681639zQPAYu','packageJson','forEach','Error\x20deploying\x20your\x20app','identifier','app_config_not_found','nextVersion','5732TeUzYv','versionStatus','text','4377234cPLszn','\x20View\x20app\x20at:\x0a','path','join','gray','requestUploadResumable','Deploy\x20Done!','appConfig','www','112IIXlMV','api_domain','Version:','log-symbols','qrcode-terminal','1833820jFxtOw','105JDcGvy','statusStart','./utils/request-upload','compress','writeFileSync','Deploying\x20Your\x20App\x20'];_0x3c0d=function(){return _0x441775;};return _0x3c0d();}const e=require('chalk'),t=require(_0x8d41fa(0x20f)),r=require(_0x8d41fa(0x1fd)),i=require(_0x8d41fa(0x1dc)),a=require(_0x8d41fa(0x1dd)),s=require('../config'),n=require('../build/index'),o=require('../utils/env'),{errorExit:l}=require('../utils/error'),p=require('./utils/upload-app'),u=require(_0x8d41fa(0x1f0)),c=require(_0x8d41fa(0x1e1)),d=e[_0x8d41fa(0x211)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)'),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x3003(_0x28c97b,_0x2c3e8b){const _0x3c0d88=_0x3c0d();return _0x3003=function(_0x3003cb,_0x1e1158){_0x3003cb=_0x3003cb-0x1d8;let _0x1b1d77=_0x3c0d88[_0x3003cb];return _0x1b1d77;},_0x3003(_0x28c97b,_0x2c3e8b);}module['exports']=async(_0x2a60a6={},_0x427553=f)=>{const _0x30f1e5=_0x8d41fa;let _0x4caa73,_0x3a872f,_0x5e8983,_0xcafd97=_0x2a60a6[_0x30f1e5(0x1f3)]||process[_0x30f1e5(0x1f3)](),_0x1c1e2a=_0x2a60a6[_0x30f1e5(0x1f5)]||_0x30f1e5(0x1d8),_0x4a70ce=s[_0x30f1e5(0x1da)],_0x276619=_0x1856b7=>t[_0x30f1e5(0x210)](_0xcafd97,_0x1856b7),_0x57eaba=o[_0x30f1e5(0x1ed)](s['env'][_0x30f1e5(0x1f8)]),_0x1bb32f=s[_0x30f1e5(0x1fc)][_0x30f1e5(0x214)],_0xb5b08f=s[_0x30f1e5(0x1fc)][_0x30f1e5(0x204)],_0x566511=!0x0;try{_0x4caa73=require(_0x276619(_0x1bb32f));}catch(_0x222fe3){try{_0x4caa73=require(_0x276619(_0x1c1e2a+'/'+_0x1bb32f)),_0x566511=!0x1;}catch(_0x1617b6){l(Error(s['error_msg'][_0x30f1e5(0x208)]));}}let _0x566f31={};try{let _0x36fef6=require(_0x276619(_0xb5b08f))['dependencies'];Object[_0x30f1e5(0x1e6)](_0x36fef6)[_0x30f1e5(0x205)](([_0xdc51f9,_0x30dd5f])=>{const _0x1f62c3=_0x30f1e5;(_0xdc51f9['includes'](_0x1f62c3(0x1ff))||_0xdc51f9['includes'](_0x1f62c3(0x1f1)))&&(_0x566f31[_0xdc51f9]=_0x30dd5f);});}catch(_0x55728a){}let _0x3b96ec={'appName':_0x4caa73[_0x30f1e5(0x1ea)]['title'],'appDesc':_0x2a60a6['desc']||'Update\x20app\x20with\x20new\x20version','appConfig':JSON[_0x30f1e5(0x1e7)](_0x4caa73),'frameworkVersions':JSON['stringify'](_0x566f31)};try{let _0x2e12d5=''+_0x4a70ce+s[_0x30f1e5(0x20f)][_0x30f1e5(0x212)],_0x50339a=await c(_0x2e12d5,_0x3b96ec,_0x2a60a6[_0x30f1e5(0x20b)],_0x57eaba);_0x3a872f=_0x50339a[_0x30f1e5(0x209)],_0x5e8983=_0x50339a[_0x30f1e5(0x207)];}catch(_0x5cd7b1){l(_0x5cd7b1);}if(_0x2a60a6[_0x30f1e5(0x1fb)]){let _0x445482=0x0;_0x4caa73['listSyncJS']&&_0x4caa73[_0x30f1e5(0x1e8)][_0x30f1e5(0x1f4)]>0x0&&(_0x445482+=0x1),_0x4caa73['listAsyncJS']&&_0x4caa73[_0x30f1e5(0x201)]['length']>0x0&&(_0x445482+=0x1),0x0===_0x445482&&l(Error('Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/')),_0x566511&&u[_0x30f1e5(0x1e3)](_0x276619(_0x1c1e2a+'/'+s[_0x30f1e5(0x1fc)][_0x30f1e5(0x214)]),JSON[_0x30f1e5(0x1e7)](_0x4caa73));}else _0x4caa73=await n({..._0x2a60a6,'appConfigJson':_0x4caa73,'nextVersion':_0x3a872f},_0x427553);_0x427553[_0x30f1e5(0x1e0)](_0x30f1e5(0x1e4)+d);try{let _0xb49408=await new Promise((_0x433870,_0x355b2b)=>{const _0x6ae638=_0x30f1e5;r[_0x6ae638(0x200)](_0x276619(_0x1c1e2a),function(_0x23bffb,_0x6f9e54){const _0x43642b=_0x6ae638;return _0x23bffb?_0x355b2b(_0x23bffb):(_0x6f9e54[_0x43642b(0x1e2)](),_0x433870(_0x6f9e54[_0x43642b(0x1f7)]()));});}),_0x422348={..._0x3b96ec,'appBuffer':_0xb49408,'identifier':_0x5e8983},_0x339ef1=await p(_0x422348,_0x2a60a6,_0x427553),_0x1925e4=_0x339ef1&&_0x339ef1[_0x30f1e5(0x1f2)]&&_0x339ef1[_0x30f1e5(0x1f2)]['appUrl'];a[_0x30f1e5(0x1e5)](_0x1925e4,{'small':!0x0},function(_0x48cff5){const _0x492625=_0x30f1e5;let _0x2d0ab9=''+e[_0x492625(0x1ec)](i[_0x492625(0x1fe)]+_0x492625(0x20e)+_0x48cff5);_0x427553[_0x492625(0x1f9)](e[_0x492625(0x1ec)][_0x492625(0x202)](_0x492625(0x213))+_0x492625(0x1e9)),_0x427553[_0x492625(0x1f9)](e['bold'][_0x492625(0x202)](_0x492625(0x1db))+'\x20'+_0x3a872f),_0x427553[_0x492625(0x20c)](_0x2d0ab9);});}catch(_0xd0a90d){_0x427553[_0x30f1e5(0x1f6)](_0x30f1e5(0x206)),l(_0xd0a90d);}};
1
+ 'use strict';const _0x2d359f=_0x4f50;(function(_0x2e1f79,_0x3841b0){const _0x16ff78=_0x4f50,_0x27570f=_0x2e1f79();while(!![]){try{const _0x327106=-parseInt(_0x16ff78(0x127))/0x1+parseInt(_0x16ff78(0xf9))/0x2+-parseInt(_0x16ff78(0xf8))/0x3+parseInt(_0x16ff78(0x11f))/0x4*(-parseInt(_0x16ff78(0xed))/0x5)+parseInt(_0x16ff78(0xf3))/0x6+parseInt(_0x16ff78(0x123))/0x7*(parseInt(_0x16ff78(0xfc))/0x8)+-parseInt(_0x16ff78(0x103))/0x9*(-parseInt(_0x16ff78(0x124))/0xa);if(_0x327106===_0x3841b0)break;else _0x27570f['push'](_0x27570f['shift']());}catch(_0x3e9c72){_0x27570f['push'](_0x27570f['shift']());}}}(_0x3c90,0x98862));function _0x3c90(){const _0x1e72aa=['Deploy\x20Done!','zip','../utils/env','listSyncJS','zmp','18342MYZtlp','www','appUrl','writeFileSync','filename','requestUploadResumable','path','statusStart','env','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','length','exports','\x20View\x20app\x20at:\x0a','listAsyncJS','info','Update\x20app\x20with\x20new\x20version','identifier','statusError','error_msg','api_domain','data','memory','appConfig','Error\x20deploying\x20your\x20app','desc','join','zip-local','cwd','228356XEKLDQ','includes','stringify','\x20💪','127267phxtSS','990yaToTH','statusDone','./utils/request-upload','239912TOPVBf','../utils/error','qrcode-terminal','10iXDZxV','Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/','../build/index','green','outputDir','Version:','5313546EErrGD','app_config_not_found','compress','../utils/fs-extra','generate','1937781nUazgb','202116hwKzPJ','chalk','bold','192rzGNnI','getEnv'];_0x3c90=function(){return _0x1e72aa;};return _0x3c90();}const e=require(_0x2d359f(0xfa)),t=require(_0x2d359f(0x109)),r=require(_0x2d359f(0x11d)),i=require('log-symbols'),a=require(_0x2d359f(0xec)),s=require('../config'),n=require(_0x2d359f(0xef)),o=require(_0x2d359f(0x100)),{errorExit:l}=require(_0x2d359f(0xeb)),p=require('./utils/upload-app'),u=require(_0x2d359f(0xf6)),c=require(_0x2d359f(0x126)),d=e['gray'](_0x2d359f(0x10c)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};function _0x4f50(_0x3834f4,_0x44c5ad){const _0x3c9014=_0x3c90();return _0x4f50=function(_0x4f5078,_0x318416){_0x4f5078=_0x4f5078-0xeb;let _0xa252ab=_0x3c9014[_0x4f5078];return _0xa252ab;},_0x4f50(_0x3834f4,_0x44c5ad);}module[_0x2d359f(0x10e)]=async(_0x4cf68b={},_0x418357=f)=>{const _0x4e7ed2=_0x2d359f;let _0x2e4a0f,_0x5ecd98,_0x31fcd3,_0x160e54=_0x4cf68b[_0x4e7ed2(0x11e)]||process[_0x4e7ed2(0x11e)](),_0x39f36d=_0x4cf68b[_0x4e7ed2(0xf1)]||_0x4e7ed2(0x104),_0x2cc99d=s[_0x4e7ed2(0x116)],_0xdc0fb9=_0x15780f=>t[_0x4e7ed2(0x11c)](_0x160e54,_0x15780f),_0x501820=o[_0x4e7ed2(0xfd)](s[_0x4e7ed2(0x10b)]['token']),_0x10d44c=s['filename'][_0x4e7ed2(0x119)],_0xe19d61=s[_0x4e7ed2(0x107)]['packageJson'],_0x46ba3d=!0x0;try{_0x2e4a0f=require(_0xdc0fb9(_0x10d44c));}catch(_0x1ea422){try{_0x2e4a0f=require(_0xdc0fb9(_0x39f36d+'/'+_0x10d44c)),_0x46ba3d=!0x1;}catch(_0x20b925){l(Error(s[_0x4e7ed2(0x115)][_0x4e7ed2(0xf4)]));}}let _0x19bb73={};try{let _0x5325b2=require(_0xdc0fb9(_0xe19d61))['dependencies'];Object['entries'](_0x5325b2)['forEach'](([_0x548a43,_0x20dcd8])=>{const _0x312f98=_0x4e7ed2;(_0x548a43['includes'](_0x312f98(0x102))||_0x548a43[_0x312f98(0x120)]('react'))&&(_0x19bb73[_0x548a43]=_0x20dcd8);});}catch(_0x48b501){}let _0x2a2b62={'appName':_0x2e4a0f['app']['title'],'appDesc':_0x4cf68b[_0x4e7ed2(0x11b)]||_0x4e7ed2(0x112),'appConfig':JSON[_0x4e7ed2(0x121)](_0x2e4a0f),'frameworkVersions':JSON[_0x4e7ed2(0x121)](_0x19bb73)};try{let _0x2351c2=''+_0x2cc99d+s['path'][_0x4e7ed2(0x108)],_0x8735e4=await c(_0x2351c2,_0x2a2b62,_0x4cf68b['versionStatus'],_0x501820);_0x5ecd98=_0x8735e4['nextVersion'],_0x31fcd3=_0x8735e4[_0x4e7ed2(0x113)];}catch(_0xa3c01f){l(_0xa3c01f);}if(_0x4cf68b['customProject']){let _0x2f8ec7=0x0;_0x2e4a0f[_0x4e7ed2(0x101)]&&_0x2e4a0f[_0x4e7ed2(0x101)]['length']>0x0&&(_0x2f8ec7+=0x1),_0x2e4a0f[_0x4e7ed2(0x110)]&&_0x2e4a0f['listAsyncJS'][_0x4e7ed2(0x10d)]>0x0&&(_0x2f8ec7+=0x1),0x0===_0x2f8ec7&&l(Error(_0x4e7ed2(0xee))),_0x46ba3d&&u[_0x4e7ed2(0x106)](_0xdc0fb9(_0x39f36d+'/'+s[_0x4e7ed2(0x107)][_0x4e7ed2(0x119)]),JSON[_0x4e7ed2(0x121)](_0x2e4a0f));}else _0x2e4a0f=await n({..._0x4cf68b,'appConfigJson':_0x2e4a0f,'nextVersion':_0x5ecd98},_0x418357);_0x418357[_0x4e7ed2(0x10a)]('Deploying\x20Your\x20App\x20'+d);try{let _0x44f981=await new Promise((_0x132122,_0x4c30fd)=>{const _0x4b6d21=_0x4e7ed2;r[_0x4b6d21(0xff)](_0xdc0fb9(_0x39f36d),function(_0x439bb1,_0x48f757){const _0x48ff4d=_0x4b6d21;return _0x439bb1?_0x4c30fd(_0x439bb1):(_0x48f757[_0x48ff4d(0xf5)](),_0x132122(_0x48f757[_0x48ff4d(0x118)]()));});}),_0x24705e={..._0x2a2b62,'appBuffer':_0x44f981,'identifier':_0x31fcd3},_0x3ea1be=await p(_0x24705e,_0x4cf68b,_0x418357),_0x20e42f=_0x3ea1be&&_0x3ea1be[_0x4e7ed2(0x117)]&&_0x3ea1be[_0x4e7ed2(0x117)][_0x4e7ed2(0x105)];a[_0x4e7ed2(0xf7)](_0x20e42f,{'small':!0x0},function(_0x5c8b92){const _0x38fbdb=_0x4e7ed2;let _0x1fb82b=''+e[_0x38fbdb(0xfb)](i[_0x38fbdb(0x111)]+_0x38fbdb(0x10f)+_0x5c8b92);_0x418357[_0x38fbdb(0x125)](e[_0x38fbdb(0xfb)][_0x38fbdb(0xf0)](_0x38fbdb(0xfe))+_0x38fbdb(0x122)),_0x418357[_0x38fbdb(0x125)](e[_0x38fbdb(0xfb)][_0x38fbdb(0xf0)](_0x38fbdb(0xf2))+'\x20'+_0x5ecd98),_0x418357['text'](_0x1fb82b);});}catch(_0x5bd0b5){_0x418357[_0x4e7ed2(0x114)](_0x4e7ed2(0x11a)),l(_0x5bd0b5);}};
@@ -1 +1 @@
1
- 'use strict';const _0x46ea5b=_0x5a4e;(function(_0x1b7fea,_0x3420ee){const _0x27a00d=_0x5a4e,_0x33dbb6=_0x1b7fea();while(!![]){try{const _0x3e2897=parseInt(_0x27a00d(0x1ac))/0x1+parseInt(_0x27a00d(0x1b9))/0x2+parseInt(_0x27a00d(0x1c2))/0x3+-parseInt(_0x27a00d(0x1be))/0x4*(parseInt(_0x27a00d(0x1b2))/0x5)+-parseInt(_0x27a00d(0x1c1))/0x6*(parseInt(_0x27a00d(0x1bf))/0x7)+parseInt(_0x27a00d(0x1b6))/0x8+-parseInt(_0x27a00d(0x1bb))/0x9;if(_0x3e2897===_0x3420ee)break;else _0x33dbb6['push'](_0x33dbb6['shift']());}catch(_0x478a58){_0x33dbb6['push'](_0x33dbb6['shift']());}}}(_0x18e3,0x54021));function _0x18e3(){const _0x29383c=['682839OZeYdF','Description\x20is\x20required!','input','Deploy\x20your\x20existing\x20project','keys','Where\x20is\x20your\x20dist\x20folder?','202510ZmMlIO','exports','map','www','2751040bWEgwS','customProject','list','1089678TqybWw','length','8595747lRGwbS','prompt','desc','12AWNYbJ','28XoXlOc','Description:','510126anVETU','567636fFoOgd','quit','outputDir','then','What\x20version\x20status\x20are\x20you\x20deploying?','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','inquirer','versionStatus','capitalize'];_0x18e3=function(){return _0x29383c;};return _0x18e3();}function _0x5a4e(_0x39b471,_0x33bf87){const _0x18e377=_0x18e3();return _0x5a4e=function(_0x5a4e53,_0x67c3aa){_0x5a4e53=_0x5a4e53-0x1ab;let _0x4929e6=_0x18e377[_0x5a4e53];return _0x4929e6;},_0x5a4e(_0x39b471,_0x33bf87);}const e=require(_0x46ea5b(0x1c8)),{versionStatus:t}=require('../../utils/constants'),i=require('lodash'),r=[{'type':_0x46ea5b(0x1b8),'name':_0x46ea5b(0x1c9),'message':_0x46ea5b(0x1c6),'choices':Object[_0x46ea5b(0x1b0)](t)[_0x46ea5b(0x1b4)](_0x2d2365=>({'name':i[_0x46ea5b(0x1ab)](_0x2d2365),'value':t[_0x2d2365]})),'when':_0x312479=>!_0x312479[_0x46ea5b(0x1c3)],'validate':_0x4c0f67=>new Promise((_0x9b94d9,_0x4c6a74)=>{_0x4c0f67&&_0x4c0f67['length']?_0x9b94d9(!0x0):_0x4c6a74(Error('Server\x20type\x20is\x20required!'));})},{'type':_0x46ea5b(0x1ae),'name':_0x46ea5b(0x1bd),'message':_0x46ea5b(0x1c0),'when':_0x1d4c53=>!_0x1d4c53[_0x46ea5b(0x1c3)],'validate':_0x2c1a26=>new Promise((_0x107c8e,_0xc8fff0)=>{const _0x36651b=_0x46ea5b;_0x2c1a26&&_0x2c1a26[_0x36651b(0x1ba)]?_0x107c8e(!0x0):_0xc8fff0(Error(_0x36651b(0x1ad)));})}],s=[{'type':_0x46ea5b(0x1b8),'name':_0x46ea5b(0x1c3),'message':_0x46ea5b(0x1c7),'choices':[{'name':_0x46ea5b(0x1af),'value':!0x1},{'name':'Quit','value':!0x0}]},{'type':'input','name':_0x46ea5b(0x1c4),'message':_0x46ea5b(0x1b1),'when':_0x294370=>!_0x294370[_0x46ea5b(0x1c3)],'default':_0x46ea5b(0x1b5)}];module[_0x46ea5b(0x1b3)]=async function(_0x30519c){const _0x5ecedf=_0x46ea5b;let _0x236f2c=_0x30519c?[...r]:[...s,...r];return e[_0x5ecedf(0x1bc)](_0x236f2c)[_0x5ecedf(0x1c5)](_0x38df5d=>(_0x38df5d[_0x5ecedf(0x1b7)]=!0x1,!0x1===_0x38df5d['quit']&&(_0x38df5d[_0x5ecedf(0x1b7)]=!0x0),Promise['resolve'](_0x38df5d)));};
1
+ 'use strict';const _0x246f8f=_0x56ad;function _0x56ad(_0x281f2f,_0x2c469a){const _0x613119=_0x6131();return _0x56ad=function(_0x56ad30,_0x368cb4){_0x56ad30=_0x56ad30-0x6f;let _0x32a7ef=_0x613119[_0x56ad30];return _0x32a7ef;},_0x56ad(_0x281f2f,_0x2c469a);}(function(_0x944c22,_0x5da60b){const _0x224fa3=_0x56ad,_0x37e992=_0x944c22();while(!![]){try{const _0x3abdef=-parseInt(_0x224fa3(0x7c))/0x1*(parseInt(_0x224fa3(0x8e))/0x2)+-parseInt(_0x224fa3(0x85))/0x3*(parseInt(_0x224fa3(0x72))/0x4)+-parseInt(_0x224fa3(0x7a))/0x5+parseInt(_0x224fa3(0x8a))/0x6*(parseInt(_0x224fa3(0x73))/0x7)+parseInt(_0x224fa3(0x83))/0x8*(parseInt(_0x224fa3(0x77))/0x9)+-parseInt(_0x224fa3(0x81))/0xa*(-parseInt(_0x224fa3(0x7b))/0xb)+parseInt(_0x224fa3(0x82))/0xc*(parseInt(_0x224fa3(0x70))/0xd);if(_0x3abdef===_0x5da60b)break;else _0x37e992['push'](_0x37e992['shift']());}catch(_0x576baf){_0x37e992['push'](_0x37e992['shift']());}}}(_0x6131,0x54dde));const e=require(_0x246f8f(0x6f)),{versionStatus:t}=require(_0x246f8f(0x7f)),i=require(_0x246f8f(0x80)),r=[{'type':'list','name':_0x246f8f(0x7e),'message':_0x246f8f(0x75),'choices':Object[_0x246f8f(0x84)](t)['map'](_0x28357b=>({'name':i[_0x246f8f(0x90)](_0x28357b),'value':t[_0x28357b]})),'when':_0x2d41f0=>!_0x2d41f0[_0x246f8f(0x71)],'validate':_0x1a6d42=>new Promise((_0x3d63f6,_0x45b200)=>{const _0x394518=_0x246f8f;_0x1a6d42&&_0x1a6d42[_0x394518(0x76)]?_0x3d63f6(!0x0):_0x45b200(Error(_0x394518(0x87)));})},{'type':'input','name':'desc','message':_0x246f8f(0x8f),'when':_0x37abb4=>!_0x37abb4['quit'],'validate':_0x30a0b1=>new Promise((_0x3309c3,_0x5414e7)=>{const _0x5accf5=_0x246f8f;_0x30a0b1&&_0x30a0b1['length']?_0x3309c3(!0x0):_0x5414e7(Error(_0x5accf5(0x91)));})}],s=[{'type':_0x246f8f(0x89),'name':_0x246f8f(0x71),'message':_0x246f8f(0x79),'choices':[{'name':'Deploy\x20your\x20existing\x20project','value':!0x1},{'name':_0x246f8f(0x8c),'value':!0x0}]},{'type':'input','name':_0x246f8f(0x7d),'message':_0x246f8f(0x86),'when':_0x42f28a=>!_0x42f28a[_0x246f8f(0x71)],'default':'www'}];module[_0x246f8f(0x88)]=async function(_0x3feddf){const _0x2341fc=_0x246f8f;let _0x26302b=_0x3feddf?[...r]:[...s,...r];return e[_0x2341fc(0x78)](_0x26302b)[_0x2341fc(0x74)](_0x539e7c=>(_0x539e7c['customProject']=!0x1,!0x1===_0x539e7c['quit']&&(_0x539e7c[_0x2341fc(0x8b)]=!0x0),Promise[_0x2341fc(0x8d)](_0x539e7c)));};function _0x6131(){const _0x315126=['versionStatus','../../utils/constants','lodash','10oDhzLU','20184OBRMwN','2904nGavcp','keys','12357MUmSdp','Where\x20is\x20your\x20dist\x20folder?','Server\x20type\x20is\x20required!','exports','list','3290412TwyCoH','customProject','Quit','resolve','2QdexuI','Description:','capitalize','Description\x20is\x20required!','inquirer','2327iYXmmr','quit','316meCsSm','7WHcMfo','then','What\x20version\x20status\x20are\x20you\x20deploying?','length','4329edtryv','prompt','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','1367325BMwasL','4309195bpxHgO','469348QrPaVf','outputDir'];_0x6131=function(){return _0x315126;};return _0x6131();}
@@ -1 +1 @@
1
- 'use strict';const _0x390165=_0x5160;(function(_0x2869a9,_0x1a58ed){const _0x1f4508=_0x5160,_0x580a47=_0x2869a9();while(!![]){try{const _0x52ac9b=parseInt(_0x1f4508(0xf4))/0x1*(-parseInt(_0x1f4508(0xf1))/0x2)+parseInt(_0x1f4508(0xfa))/0x3*(parseInt(_0x1f4508(0xf8))/0x4)+-parseInt(_0x1f4508(0xf6))/0x5+-parseInt(_0x1f4508(0xea))/0x6*(parseInt(_0x1f4508(0xf9))/0x7)+-parseInt(_0x1f4508(0xf0))/0x8*(-parseInt(_0x1f4508(0xe8))/0x9)+parseInt(_0x1f4508(0xe9))/0xa+parseInt(_0x1f4508(0xf7))/0xb;if(_0x52ac9b===_0x1a58ed)break;else _0x580a47['push'](_0x580a47['shift']());}catch(_0x4bead0){_0x580a47['push'](_0x580a47['shift']());}}}(_0x4f85,0xda446));function _0x5160(_0x56be61,_0x4eba78){const _0x4f85c4=_0x4f85();return _0x5160=function(_0x5160ed,_0x354017){_0x5160ed=_0x5160ed-0xe8;let _0x323a57=_0x4f85c4[_0x5160ed];return _0x323a57;},_0x5160(_0x56be61,_0x4eba78);}const {axiosClient:r}=require(_0x390165(0xf3)),e=require(_0x390165(0xeb)),i=async(_0x4741e1,_0xbe77e0,_0x5ad30e,_0xf7bfa4)=>{const _0x10309c=_0x390165;let {appName:_0x223cf7,appDesc:_0x5a6e4a,appConfig:_0x59ec23,frameworkVersions:_0x56af62}=_0xbe77e0,_0x3cb40e={'Authorization':_0x10309c(0xf5)+_0xf7bfa4,'cache-control':_0x10309c(0xec)},_0x19a413=(await r[_0x10309c(0xef)](_0x4741e1,{'params':{'name':_0x223cf7,'desc':_0x5a6e4a,'config':_0x59ec23,'versionStatus':_0x5ad30e,'frameworkVersions':_0x56af62},'headers':_0x3cb40e,'withCredentials':!0x0}))['data'];if(!_0x19a413||_0x19a413[_0x10309c(0xed)]<0x0){if(_0x19a413&&_0x19a413[_0x10309c(0xed)]===e[_0x10309c(0xee)][_0x10309c(0xf2)])throw Error(e['error_msg'][_0x10309c(0xf2)]);throw Error(JSON[_0x10309c(0xfc)](_0x19a413));}return _0x19a413[_0x10309c(0xfb)];};module['exports']=i;function _0x4f85(){const _0x451a27=['../../config','no-cache','err','error_code','get','296GEbEsP','1197866oFMSXb','permission_denied','../../utils/axios','1vyccKD','Bearer\x20','1880355neFkOd','18537244vlCvNv','2243080UqXQRx','1939trZUYQ','6ftolVv','data','stringify','93339QOyZZF','4433220HMnKsY','38226nBkbzI'];_0x4f85=function(){return _0x451a27;};return _0x4f85();}
1
+ 'use strict';const _0x330daf=_0x34d2;(function(_0x4c76a3,_0x5e2137){const _0x1a5813=_0x34d2,_0x412dcb=_0x4c76a3();while(!![]){try{const _0x277fcf=-parseInt(_0x1a5813(0x1a0))/0x1*(parseInt(_0x1a5813(0x19d))/0x2)+-parseInt(_0x1a5813(0x19a))/0x3+parseInt(_0x1a5813(0x198))/0x4+parseInt(_0x1a5813(0x1a5))/0x5+parseInt(_0x1a5813(0x19c))/0x6+-parseInt(_0x1a5813(0x19f))/0x7*(parseInt(_0x1a5813(0x1a6))/0x8)+parseInt(_0x1a5813(0x199))/0x9;if(_0x277fcf===_0x5e2137)break;else _0x412dcb['push'](_0x412dcb['shift']());}catch(_0x1c7878){_0x412dcb['push'](_0x412dcb['shift']());}}}(_0x2f8f,0xa0e04));function _0x34d2(_0x26aec6,_0x1453a3){const _0x2f8f58=_0x2f8f();return _0x34d2=function(_0x34d225,_0xfe727){_0x34d225=_0x34d225-0x198;let _0x7f4657=_0x2f8f58[_0x34d225];return _0x7f4657;},_0x34d2(_0x26aec6,_0x1453a3);}const {axiosClient:r}=require(_0x330daf(0x1a3)),e=require(_0x330daf(0x1a8)),i=async(_0x23b231,_0x4109a7,_0x44c753,_0x464daa)=>{const _0x85ba0a=_0x330daf;let {appName:_0x5c31c5,appDesc:_0x3aa586,appConfig:_0x10e4d2,frameworkVersions:_0x2becf8}=_0x4109a7,_0x2059d0={'Authorization':_0x85ba0a(0x1aa)+_0x464daa,'cache-control':_0x85ba0a(0x1ab)},_0xd933ca=(await r[_0x85ba0a(0x1a1)](_0x23b231,{'params':{'name':_0x5c31c5,'desc':_0x3aa586,'config':_0x10e4d2,'versionStatus':_0x44c753,'frameworkVersions':_0x2becf8},'headers':_0x2059d0,'withCredentials':!0x0}))[_0x85ba0a(0x19b)];if(!_0xd933ca||_0xd933ca[_0x85ba0a(0x1a2)]<0x0){if(_0xd933ca&&_0xd933ca[_0x85ba0a(0x1a2)]===e['error_code'][_0x85ba0a(0x1a4)])throw Error(e[_0x85ba0a(0x19e)][_0x85ba0a(0x1a4)]);throw Error(JSON[_0x85ba0a(0x1a7)](_0xd933ca));}return _0xd933ca[_0x85ba0a(0x19b)];};module[_0x330daf(0x1a9)]=i;function _0x2f8f(){const _0x3bb88c=['Bearer\x20','no-cache','2123716OpCayk','2291040lCjFHX','412479GdBGtC','data','618402civFic','2VxhTiy','error_msg','7hgtHFh','1095903vjxXJN','get','err','../../utils/axios','permission_denied','6250955ZQglkp','1971224sEZVRZ','stringify','../../config','exports'];_0x2f8f=function(){return _0x3bb88c;};return _0x2f8f();}
@@ -1 +1 @@
1
- 'use strict';const _0x1230f2=_0x3726;function _0x3726(_0x3a1e62,_0x445b82){const _0x22b8d5=_0x22b8();return _0x3726=function(_0x372647,_0x587935){_0x372647=_0x372647-0xab;let _0x55978c=_0x22b8d5[_0x372647];return _0x55978c;},_0x3726(_0x3a1e62,_0x445b82);}(function(_0x196a68,_0x2dc183){const _0x1d1e26=_0x3726,_0x18bdf5=_0x196a68();while(!![]){try{const _0x3fc0ec=parseInt(_0x1d1e26(0xae))/0x1+-parseInt(_0x1d1e26(0xb3))/0x2*(parseInt(_0x1d1e26(0xbc))/0x3)+-parseInt(_0x1d1e26(0xc0))/0x4*(parseInt(_0x1d1e26(0xc8))/0x5)+-parseInt(_0x1d1e26(0xb5))/0x6+parseInt(_0x1d1e26(0xd4))/0x7+-parseInt(_0x1d1e26(0xc1))/0x8*(-parseInt(_0x1d1e26(0xb9))/0x9)+-parseInt(_0x1d1e26(0xb6))/0xa*(parseInt(_0x1d1e26(0xb0))/0xb);if(_0x3fc0ec===_0x2dc183)break;else _0x18bdf5['push'](_0x18bdf5['shift']());}catch(_0x21db7d){_0x18bdf5['push'](_0x18bdf5['shift']());}}}(_0x22b8,0x7715c));function _0x22b8(){const _0x4c9134=['addFile','3597972PwcopX','35150oBJMhf','cancel','config','9IchKBn','Error\x20upload\x20app:\x20','env','3qNdeDH','desc','upload','round','4luTzZf','7205272ywEgmY','fileSuccess','gray','getEnv','Bearer\x20','form-data','www.zip','3500785TekpsQ','Deploying\x20Your\x20App\x20','lodash','resumable_option','token','exports','fileProgress','progress','support','../../config','zipFile','isNumber','3940678YIeWpC','join','../../utils/resumable','err','975108UXmgSF','chalk','187iXMOiC','parse','append','1182750cvwiMU'];_0x22b8=function(){return _0x4c9134;};return _0x22b8();}const r=require(_0x1230f2(0xac)),e=require(_0x1230f2(0xaf)),n=require(_0x1230f2(0xd1)),o=require('../../utils/env'),t=require('file-api')['File'],a=require(_0x1230f2(0xc6)),u=require(_0x1230f2(0xca));module[_0x1230f2(0xcd)]=async function(_0x37915d,_0x27f73a,_0x3e8a93){const _0x1541d5=_0x1230f2;let _0x3aecaf=n['api_domain'],_0x46a390=''+_0x3aecaf+n['path']['uploadAppByChunk'],{appName:_0x199225,appDesc:_0xc52575,appBuffer:_0x53b5f3,appConfig:_0x3dc2b8,identifier:_0x184f18}=_0x37915d,_0x26cce0=o[_0x1541d5(0xc4)](n[_0x1541d5(0xbb)][_0x1541d5(0xcc)]),_0x30aeac=new r({...n[_0x1541d5(0xcb)],'target':_0x46a390,'headers':{'Authorization':_0x1541d5(0xc5)+_0x26cce0},'generateUniqueIdentifier':()=>_0x184f18}),_0x395b0d=new a();if(_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xd2),_0x53b5f3),_0x395b0d[_0x1541d5(0xb2)]('name',_0x199225),_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xbd),_0xc52575),_0x395b0d[_0x1541d5(0xb2)](_0x1541d5(0xb8),_0x3dc2b8),_0x30aeac[_0x1541d5(0xd0)])return _0x30aeac['on'](_0x1541d5(0xce),function(_0x2a1608){const _0x2f4f55=_0x1541d5;let _0x13b5db=Array(Math[_0x2f4f55(0xbf)](0x64*_0x2a1608[_0x2f4f55(0xcf)]())%0x65+0x1)[_0x2f4f55(0xab)]('|');_0x3e8a93['statusText'](_0x2f4f55(0xc9)+e[_0x2f4f55(0xc3)]('\x0a'+_0x13b5db+'\x20'+Math[_0x2f4f55(0xbf)](0x64*_0x2a1608[_0x2f4f55(0xcf)]())+'%'));}),await new Promise((_0x5d60da,_0x5b693e)=>{const _0x26ff5=_0x1541d5;try{var _0x541ab4=new t({'name':_0x26ff5(0xc7),'buffer':_0x53b5f3});_0x30aeac['on']('fileAdded',function(){const _0xbda9dc=_0x26ff5;_0x30aeac[_0xbda9dc(0xbe)]();}),_0x30aeac['on']('complete',function(){return _0x5d60da();}),_0x30aeac['on']('fileError',function(_0x4600c5,_0x32e939){const _0x471610=_0x26ff5;return _0x5b693e(Error(_0x471610(0xba)+_0x32e939));}),_0x30aeac['on'](_0x26ff5(0xb7),function(){return _0x5b693e(Error('Error\x20upload\x20app:\x20cancel'));}),_0x30aeac['on'](_0x26ff5(0xc2),function(_0x58c71f,_0x2d2836){const _0x1d0ad6=_0x26ff5;let _0x418fe9=JSON[_0x1d0ad6(0xb1)](_0x2d2836);return u[_0x1d0ad6(0xd3)](_0x418fe9[_0x1d0ad6(0xad)])&&_0x418fe9[_0x1d0ad6(0xad)]<0x0?_0x5b693e(Error(_0x1d0ad6(0xba)+_0x2d2836)):_0x5d60da(_0x418fe9);}),_0x30aeac[_0x26ff5(0xb4)](_0x541ab4);}catch(_0x113894){return _0x5b693e(_0x113894);}});_0x3e8a93['statusError']('Does\x20not\x20support\x20upload\x20app');};
1
+ 'use strict';const _0x467a82=_0x3c27;function _0x4f82(){const _0x58ac2a=['../../utils/env','progress','path','584RYthHu','Error\x20upload\x20app:\x20','Error\x20upload\x20app:\x20cancel','1314bEYTNR','join','Does\x20not\x20support\x20upload\x20app','parse','isNumber','api_domain','gray','11500352DczyRv','round','www.zip','err','statusText','7872580dAPqKN','30205LSjPKq','fileSuccess','zipFile','form-data','chalk','14619YxJnKJ','../../config','7884peWxJL','append','resumable_option','fileAdded','fileProgress','18bFfWCR','token','getEnv','exports','../../utils/resumable','support','45RbGscp','3463050PQhhiW','statusError','upload','lodash','Deploying\x20Your\x20App\x20','fileError','uploadAppByChunk','config','785176xzmqAk','2621FEHxti'];_0x4f82=function(){return _0x58ac2a;};return _0x4f82();}(function(_0x2317bf,_0x858528){const _0x108e21=_0x3c27,_0x3829b8=_0x2317bf();while(!![]){try{const _0x245f5b=-parseInt(_0x108e21(0x8c))/0x1*(-parseInt(_0x108e21(0x90))/0x2)+-parseInt(_0x108e21(0xb3))/0x3+parseInt(_0x108e21(0x8b))/0x4*(-parseInt(_0x108e21(0xb2))/0x5)+parseInt(_0x108e21(0x93))/0x6*(parseInt(_0x108e21(0xa0))/0x7)+parseInt(_0x108e21(0x9a))/0x8+-parseInt(_0x108e21(0xac))/0x9*(-parseInt(_0x108e21(0x9f))/0xa)+-parseInt(_0x108e21(0xa5))/0xb*(parseInt(_0x108e21(0xa7))/0xc);if(_0x245f5b===_0x858528)break;else _0x3829b8['push'](_0x3829b8['shift']());}catch(_0x25429a){_0x3829b8['push'](_0x3829b8['shift']());}}}(_0x4f82,0xe29e4));function _0x3c27(_0x2a0871,_0x5e6e62){const _0x4f8230=_0x4f82();return _0x3c27=function(_0x3c2745,_0x1189b9){_0x3c2745=_0x3c2745-0x85;let _0x1cf17c=_0x4f8230[_0x3c2745];return _0x1cf17c;},_0x3c27(_0x2a0871,_0x5e6e62);}const r=require(_0x467a82(0xb0)),e=require(_0x467a82(0xa4)),n=require(_0x467a82(0xa6)),o=require(_0x467a82(0x8d)),t=require('file-api')['File'],a=require(_0x467a82(0xa3)),u=require(_0x467a82(0x86));module[_0x467a82(0xaf)]=async function(_0x47aaa4,_0x53cd94,_0xc17d7a){const _0x4374a3=_0x467a82;let _0x3f1d61=n[_0x4374a3(0x98)],_0x51656f=''+_0x3f1d61+n[_0x4374a3(0x8f)][_0x4374a3(0x89)],{appName:_0x9344ed,appDesc:_0x4f9350,appBuffer:_0x27878c,appConfig:_0x2c8fb2,identifier:_0x3b21d9}=_0x47aaa4,_0x4b32e3=o[_0x4374a3(0xae)](n['env'][_0x4374a3(0xad)]),_0x138434=new r({...n[_0x4374a3(0xa9)],'target':_0x51656f,'headers':{'Authorization':'Bearer\x20'+_0x4b32e3},'generateUniqueIdentifier':()=>_0x3b21d9}),_0xafc034=new a();if(_0xafc034[_0x4374a3(0xa8)](_0x4374a3(0xa2),_0x27878c),_0xafc034['append']('name',_0x9344ed),_0xafc034[_0x4374a3(0xa8)]('desc',_0x4f9350),_0xafc034[_0x4374a3(0xa8)](_0x4374a3(0x8a),_0x2c8fb2),_0x138434[_0x4374a3(0xb1)])return _0x138434['on'](_0x4374a3(0xab),function(_0x2ded0d){const _0x33e4b7=_0x4374a3;let _0x286ebb=Array(Math[_0x33e4b7(0x9b)](0x64*_0x2ded0d[_0x33e4b7(0x8e)]())%0x65+0x1)[_0x33e4b7(0x94)]('|');_0xc17d7a[_0x33e4b7(0x9e)](_0x33e4b7(0x87)+e[_0x33e4b7(0x99)]('\x0a'+_0x286ebb+'\x20'+Math[_0x33e4b7(0x9b)](0x64*_0x2ded0d['progress']())+'%'));}),await new Promise((_0x57d384,_0x2db0bc)=>{const _0x214e4c=_0x4374a3;try{var _0x37a21a=new t({'name':_0x214e4c(0x9c),'buffer':_0x27878c});_0x138434['on'](_0x214e4c(0xaa),function(){const _0x4c2c11=_0x214e4c;_0x138434[_0x4c2c11(0x85)]();}),_0x138434['on']('complete',function(){return _0x57d384();}),_0x138434['on'](_0x214e4c(0x88),function(_0x55bce2,_0x117617){const _0x144868=_0x214e4c;return _0x2db0bc(Error(_0x144868(0x91)+_0x117617));}),_0x138434['on']('cancel',function(){const _0x59dda4=_0x214e4c;return _0x2db0bc(Error(_0x59dda4(0x92)));}),_0x138434['on'](_0x214e4c(0xa1),function(_0x59a94f,_0x3f2ec5){const _0x195cc6=_0x214e4c;let _0x4eb9bd=JSON[_0x195cc6(0x96)](_0x3f2ec5);return u[_0x195cc6(0x97)](_0x4eb9bd[_0x195cc6(0x9d)])&&_0x4eb9bd[_0x195cc6(0x9d)]<0x0?_0x2db0bc(Error('Error\x20upload\x20app:\x20'+_0x3f2ec5)):_0x57d384(_0x4eb9bd);}),_0x138434['addFile'](_0x37a21a);}catch(_0x1cc0c5){return _0x2db0bc(_0x1cc0c5);}});_0xc17d7a[_0x4374a3(0xb4)](_0x4374a3(0x95));};
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- 'use strict';function _0x42a3(_0x2091f2,_0x3f988c){const _0x1f9b63=_0x1f9b();return _0x42a3=function(_0x42a30e,_0xdf624c){_0x42a30e=_0x42a30e-0x1c6;let _0x5f58c7=_0x1f9b63[_0x42a30e];return _0x5f58c7;},_0x42a3(_0x2091f2,_0x3f988c);}const _0x4d8c83=_0x42a3;(function(_0x1c387b,_0x15dc6e){const _0x1cc3b5=_0x42a3,_0x11bd67=_0x1c387b();while(!![]){try{const _0x5f3dca=-parseInt(_0x1cc3b5(0x202))/0x1+-parseInt(_0x1cc3b5(0x207))/0x2*(-parseInt(_0x1cc3b5(0x20f))/0x3)+parseInt(_0x1cc3b5(0x1e5))/0x4+parseInt(_0x1cc3b5(0x1ea))/0x5*(parseInt(_0x1cc3b5(0x20d))/0x6)+parseInt(_0x1cc3b5(0x206))/0x7*(-parseInt(_0x1cc3b5(0x1ef))/0x8)+-parseInt(_0x1cc3b5(0x1d0))/0x9+parseInt(_0x1cc3b5(0x217))/0xa;if(_0x5f3dca===_0x15dc6e)break;else _0x11bd67['push'](_0x11bd67['shift']());}catch(_0x4b949c){_0x11bd67['push'](_0x11bd67['shift']());}}}(_0x1f9b,0x235a3));function _0x1f9b(){const _0x316201=['includes','Custom\x20entry\x20point,\x20default\x20is\x20#app','ZMP\x20CLI','Output\x20folder.\x20Default\x20www','textSync','./login/index','usage','-P,\x20--port\x20<n>','933572SzqbRt','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','customProject','Preview\x20on\x20Zalo','figlet','15IykXqd','-iosH,\x20--ios-host-name\x20<n>','.local','error','argv','360288TVdcRP','device','-Z,\x20--zalo-app','build','-m,\x20--desc\x20<message>','./login/utils/get-options','login','migrate','showMobileUi','-M,\x20--mode\x20<m>','Deploy\x20existing\x20project','length','Env\x20mode','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','commander','command','./utils/constants','Version:\x20','./migrate/index','259391pRbhqR','code','testing','./utils/spinner','14MVroPx','118FpYLeN','./sync/index','start','version','./build/index','Device\x20mode','569682bgobVN','Deploy\x20testing\x20version','3711Inyuww','Deploy\x20a\x20ZMP\x20project','TESTING','description','./create/utils/get-options','resolve','cyan','\x0a\x20Unknown\x20command\x20','1875870cmJQxh','-nF,\x20--no-frame','text','versionStatus','<command>\x20[options]','quit','command:*','done','./utils/fs-extra','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','cwd','./start/index','Version\x20description','./create/index','--skipUpdate','log-symbols','-o,\x20--outputDir\x20<output>','ios','frame','log','./utils/check-update','init','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001','Init\x20ZMP\x20project','./package.json','\x20This\x20is\x20not\x20ZMP\x20project','action','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','root_env','outputHelp','exit','existing','Passive\x20mode\x20(non-interactive)','args','option','Login\x20ZMP','2560842SqlNwE','skipUpdate','sync-config\x20<source>','Run\x20on\x20ios','./migrate/utils/get-options','-D,\x20--device','full','./utils/log','mode','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','port','Run\x20without\x20Zalo\x20frame','-t,\x20--testing'];_0x1f9b=function(){return _0x316201;};return _0x1f9b();}const e=require('chalk'),o=require('clear'),t=require(_0x4d8c83(0x1e9)),i=require(_0x4d8c83(0x1fd)),s=require(_0x4d8c83(0x226)),r=require(_0x4d8c83(0x21f)),n=require(_0x4d8c83(0x22b)),a=require(_0x4d8c83(0x205)),c=require(_0x4d8c83(0x1d7)),p=require('./utils/get-current-project'),u=require(_0x4d8c83(0x213)),l=require(_0x4d8c83(0x1f4)),d=require('./deploy/utils/get-options'),m=require(_0x4d8c83(0x1d4)),g=require(_0x4d8c83(0x1e2)),x=require(_0x4d8c83(0x224)),y=require(_0x4d8c83(0x222)),w=require(_0x4d8c83(0x20b)),v=require('./deploy/index'),f=require(_0x4d8c83(0x208)),q=require(_0x4d8c83(0x201)),h=require('os'),M=require(_0x4d8c83(0x22f)),P=require('./config'),{versionStatus:j}=require(_0x4d8c83(0x1ff)),Z=process[_0x4d8c83(0x221)](),S={'statusStart':_0x5a3116=>a[_0x4d8c83(0x209)](_0x5a3116),'statusDone':_0x8bd627=>a[_0x4d8c83(0x21e)](_0x8bd627),'statusText':_0x2b8bd8=>a[_0x4d8c83(0x219)](_0x2b8bd8),'statusError':_0x1e5bd5=>a[_0x4d8c83(0x1ed)](_0x1e5bd5),'text':_0x550a95=>c[_0x4d8c83(0x219)](_0x550a95),'error':_0xf353d=>c['error'](_0xf353d),'showOnUI':()=>{}};o(),r['existsSync'](P['root_env']())||r['writeFileSync'](P[_0x4d8c83(0x1c8)]()),console[_0x4d8c83(0x22a)](e[_0x4d8c83(0x215)](t[_0x4d8c83(0x1e1)](_0x4d8c83(0x1df),{'horizontalLayout':_0x4d8c83(0x1d6),'verticalLayout':'full'})),e[_0x4d8c83(0x215)](_0x4d8c83(0x200)+M[_0x4d8c83(0x20a)]+'\x0a')),i[_0x4d8c83(0x20a)](M[_0x4d8c83(0x20a)])[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)](_0x4d8c83(0x22c))['option'](_0x4d8c83(0x225),_0x4d8c83(0x1c7))[_0x4d8c83(0x212)](_0x4d8c83(0x22e))[_0x4d8c83(0x1c6)](async _0x1c8883=>{const _0x2b928d=_0x4d8c83;_0x1c8883[_0x2b928d(0x1d1)]||await n();let _0x4d629c=await l();await g({'cwd':Z,..._0x4d629c},S);let _0xcb08de=await u();await x({'cwd':Z,..._0xcb08de},S),process[_0x2b928d(0x1ca)](0x0);}),i['usage']('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f5))[_0x4d8c83(0x212)](_0x4d8c83(0x1cf))['action'](async()=>{const _0x36701c=_0x4d8c83;let _0x156a18=await l();await g({'cwd':Z,..._0x156a18},S),process[_0x36701c(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))['command'](_0x4d8c83(0x209))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1eb),_0x4d8c83(0x220))['option'](_0x4d8c83(0x1e4),_0x4d8c83(0x1d9),parseInt)[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f1),_0x4d8c83(0x1e8))[_0x4d8c83(0x1ce)]('-ios,\x20--ios',_0x4d8c83(0x1d3))[_0x4d8c83(0x1ce)](_0x4d8c83(0x218),_0x4d8c83(0x1db))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1d5),_0x4d8c83(0x20c))[_0x4d8c83(0x1ce)]('-M,\x20--mode\x20<m>',_0x4d8c83(0x1fb))[_0x4d8c83(0x212)]('Start\x20a\x20ZMP\x20project')['action'](async _0x3c7bca=>{const _0x14e599=_0x4d8c83;if(p(Z)||(c['text'](s[_0x14e599(0x1ed)]+_0x14e599(0x230)),process[_0x14e599(0x1ca)](0x1)),_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f7)])try{console[_0x14e599(0x22a)](require[_0x14e599(0x214)]('nw'));}catch(_0x516461){console[_0x14e599(0x1ed)](_0x14e599(0x1e6)),process[_0x14e599(0x1ca)](_0x516461[_0x14e599(0x203)]);}let _0x405421=h['hostname']();_0x405421[_0x14e599(0x1dd)](_0x14e599(0x1ec))||(_0x405421=_0x405421+_0x14e599(0x1ec)),await y({'cwd':Z,'port':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1da)]||0xbb8,'iosHostName':_0x3c7bca&&_0x3c7bca['iosHostName']||_0x405421,'showMobileUI':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f7)]||!0x1,'previewOnZalo':_0x3c7bca&&_0x3c7bca['zaloApp']||!0x1,'ios':_0x3c7bca&&_0x3c7bca[_0x14e599(0x228)]||!0x1,'mode':_0x3c7bca&&_0x3c7bca['mode'],'frame':!!_0x3c7bca&&(void 0x0===_0x3c7bca[_0x14e599(0x229)]||null===_0x3c7bca[_0x14e599(0x229)])||_0x3c7bca[_0x14e599(0x229)],'deviceMode':_0x3c7bca&&_0x3c7bca[_0x14e599(0x1f0)]||!0x1},S),process[_0x14e599(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f2))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f8),_0x4d8c83(0x1fb))[_0x4d8c83(0x212)]('Build\x20a\x20ZMP\x20project')[_0x4d8c83(0x1c6)](async _0x57ad0e=>{const _0x4f036a=_0x4d8c83;p(Z)||(c[_0x4f036a(0x219)](s['error']+_0x4f036a(0x230)),process[_0x4f036a(0x1ca)](0x1)),await w({'cwd':Z,'mode':_0x57ad0e&&_0x57ad0e[_0x4f036a(0x1d8)]},S),process[_0x4f036a(0x1ca)](0x0);}),i['usage'](_0x4d8c83(0x21b))[_0x4d8c83(0x1fe)]('deploy')['option'](_0x4d8c83(0x1f8),'Env\x20mode')[_0x4d8c83(0x1ce)]('-p,\x20--passive',_0x4d8c83(0x1cc))[_0x4d8c83(0x1ce)]('-e,\x20--existing',_0x4d8c83(0x1f9))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1dc),_0x4d8c83(0x20e))[_0x4d8c83(0x1ce)](_0x4d8c83(0x1f3),_0x4d8c83(0x223))[_0x4d8c83(0x1ce)](_0x4d8c83(0x227),_0x4d8c83(0x1e0))['option']('-P,\x20--port\x20<n>',_0x4d8c83(0x22d),parseInt)['description'](_0x4d8c83(0x210))[_0x4d8c83(0x1c6)](async _0x400855=>{const _0x309cc3=_0x4d8c83;let _0x251ed0=p(Z),_0x3f4370=_0x400855;_0x400855[_0x309cc3(0x1cb)]?_0x3f4370[_0x309cc3(0x1e7)]=!0x0:_0x400855['passive']||(_0x3f4370=await d(_0x251ed0)),_0x400855[_0x309cc3(0x204)]&&(_0x3f4370[_0x309cc3(0x21a)]=j[_0x309cc3(0x211)]),_0x3f4370[_0x309cc3(0x21c)]&&process[_0x309cc3(0x1ca)](0x1),await v({'cwd':Z,'mode':_0x400855&&_0x400855[_0x309cc3(0x1d8)],..._0x3f4370},S),process[_0x309cc3(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)]('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1d2))[_0x4d8c83(0x1ce)]('-r,\x20--root-element\x20<selector>',_0x4d8c83(0x1de))[_0x4d8c83(0x212)](_0x4d8c83(0x1fc))['action'](async(_0x4765c5,_0x26b8e7)=>{const _0xc41a8f=_0x4d8c83;await f({'source':_0x4765c5,..._0x26b8e7},S),process[_0xc41a8f(0x1ca)](0x0);}),i[_0x4d8c83(0x1e3)]('<command>\x20[options]')[_0x4d8c83(0x1fe)](_0x4d8c83(0x1f6))['action'](async function(){const _0x462be4=_0x4d8c83;let _0x198a73=p(Z);_0x198a73||(S[_0x462be4(0x219)](s['error']+'\x20This\x20is\x20not\x20ZMP\x20project'),process['exit'](0x1));let _0x2abd6c=await m();await q({'cwd':Z,..._0x2abd6c,..._0x198a73},S),process[_0x462be4(0x1ca)](0x0);}),i['on'](_0x4d8c83(0x21d),_0x2a7ed9=>{const _0x186b0f=_0x4d8c83;i[_0x186b0f(0x1c9)](),c['text'](_0x186b0f(0x216)+_0x2a7ed9);}),i['parse'](process[_0x4d8c83(0x1ee)]),i[_0x4d8c83(0x1cd)][_0x4d8c83(0x1fa)]||i[_0x4d8c83(0x1c9)]();
2
+ 'use strict';function _0x3931(_0x29ec1c,_0x518375){const _0xaf3787=_0xaf37();return _0x3931=function(_0x393199,_0xe925e9){_0x393199=_0x393199-0x131;let _0x2e6dd4=_0xaf3787[_0x393199];return _0x2e6dd4;},_0x3931(_0x29ec1c,_0x518375);}const _0x3e0e1d=_0x3931;(function(_0x172aa2,_0x2abc9a){const _0x342341=_0x3931,_0x1fa129=_0x172aa2();while(!![]){try{const _0x36775b=parseInt(_0x342341(0x150))/0x1*(parseInt(_0x342341(0x159))/0x2)+parseInt(_0x342341(0x160))/0x3+parseInt(_0x342341(0x136))/0x4*(-parseInt(_0x342341(0x17a))/0x5)+parseInt(_0x342341(0x166))/0x6*(-parseInt(_0x342341(0x193))/0x7)+-parseInt(_0x342341(0x131))/0x8*(-parseInt(_0x342341(0x183))/0x9)+-parseInt(_0x342341(0x172))/0xa+parseInt(_0x342341(0x189))/0xb*(parseInt(_0x342341(0x142))/0xc);if(_0x36775b===_0x2abc9a)break;else _0x1fa129['push'](_0x1fa129['shift']());}catch(_0x33c796){_0x1fa129['push'](_0x1fa129['shift']());}}}(_0xaf37,0x1b98d));const e=require(_0x3e0e1d(0x143)),o=require('clear'),t=require(_0x3e0e1d(0x13d)),i=require(_0x3e0e1d(0x152)),s=require(_0x3e0e1d(0x16d)),r=require(_0x3e0e1d(0x164)),n=require('./utils/check-update'),a=require(_0x3e0e1d(0x153)),c=require(_0x3e0e1d(0x184)),p=require('./utils/get-current-project'),u=require(_0x3e0e1d(0x154)),l=require(_0x3e0e1d(0x155)),d=require(_0x3e0e1d(0x194)),m=require('./migrate/utils/get-options'),g=require(_0x3e0e1d(0x168)),x=require('./create/index'),y=require(_0x3e0e1d(0x15b)),w=require(_0x3e0e1d(0x177)),v=require(_0x3e0e1d(0x18f)),f=require(_0x3e0e1d(0x176)),q=require(_0x3e0e1d(0x16b)),h=require('os'),M=require('./package.json'),P=require('./config'),{versionStatus:j}=require(_0x3e0e1d(0x13f)),Z=process[_0x3e0e1d(0x138)](),S={'statusStart':_0x3253e1=>a['start'](_0x3253e1),'statusDone':_0x4ce577=>a['done'](_0x4ce577),'statusText':_0x1849d4=>a['text'](_0x1849d4),'statusError':_0x181110=>a['error'](_0x181110),'text':_0x45dfa5=>c[_0x3e0e1d(0x144)](_0x45dfa5),'error':_0x12dc25=>c['error'](_0x12dc25),'showOnUI':()=>{}};function _0xaf37(){const _0x9dc7e8=['text','error','ZMP\x20CLI','sync-config\x20<source>','existing','args','full','TESTING','frame','Output\x20folder.\x20Default\x20www','init','Deploy\x20existing\x20project','84706xVnWAC','cyan','commander','./utils/spinner','./create/utils/get-options','./login/utils/get-options','.local','<command>\x20[options]','-m,\x20--desc\x20<message>','2pQAHyi','iosHostName','./start/index','ios','login','command','argv','433137QajSry','length','\x20This\x20is\x20not\x20ZMP\x20project','showMobileUi','./utils/fs-extra','-P,\x20--port\x20<n>','237216rhrgBr','-iosH,\x20--ios-host-name\x20<n>','./login/index','passive','Env\x20mode','./migrate/index','parse','log-symbols','description','option','existsSync','deploy','406260zpTxdF','Start\x20a\x20ZMP\x20project','--skipUpdate','Preview\x20on\x20Zalo','./sync/index','./build/index','-ios,\x20--ios','Build\x20a\x20ZMP\x20project','4395RdWljl','textSync','version','Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html','zaloApp','\x0a\x20Unknown\x20command\x20','Passive\x20mode\x20(non-interactive)','Deploy\x20testing\x20version','migrate','603FjPBTm','./utils/log','versionStatus','-t,\x20--testing','build','hostname','11UBVyqa','outputHelp','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','Version\x20description','exit','Device\x20mode','./deploy/index','-o,\x20--outputDir\x20<output>','mode','device','28hsAhMK','./deploy/utils/get-options','-Z,\x20--zalo-app','writeFileSync','2344vdZYKr','usage','includes','action','-M,\x20--mode\x20<m>','148mQUnJJ','Run\x20on\x20ios','cwd','code','customProject','command:*','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','figlet','resolve','./utils/constants','root_env','testing','1147368qZbHXn','chalk'];_0xaf37=function(){return _0x9dc7e8;};return _0xaf37();}o(),r[_0x3e0e1d(0x170)](P[_0x3e0e1d(0x140)]())||r[_0x3e0e1d(0x196)](P[_0x3e0e1d(0x140)]()),console['log'](e['cyan'](t[_0x3e0e1d(0x17b)](_0x3e0e1d(0x146),{'horizontalLayout':_0x3e0e1d(0x14a),'verticalLayout':_0x3e0e1d(0x14a)})),e[_0x3e0e1d(0x151)]('Version:\x20'+M[_0x3e0e1d(0x17c)]+'\x0a')),i[_0x3e0e1d(0x17c)](M[_0x3e0e1d(0x17c)])[_0x3e0e1d(0x132)]('<command>\x20[options]')[_0x3e0e1d(0x15e)](_0x3e0e1d(0x14e))['option'](_0x3e0e1d(0x174),_0x3e0e1d(0x13c))[_0x3e0e1d(0x16e)]('Init\x20ZMP\x20project')[_0x3e0e1d(0x134)](async _0x35ef57=>{const _0x593741=_0x3e0e1d;_0x35ef57['skipUpdate']||await n();let _0x59112f=await l();await g({'cwd':Z,..._0x59112f},S);let _0x40d1e6=await u();await x({'cwd':Z,..._0x40d1e6},S),process[_0x593741(0x18d)](0x0);}),i['usage'](_0x3e0e1d(0x157))[_0x3e0e1d(0x15e)](_0x3e0e1d(0x15d))[_0x3e0e1d(0x16e)]('Login\x20ZMP')['action'](async()=>{let _0x321c88=await l();await g({'cwd':Z,..._0x321c88},S),process['exit'](0x0);}),i[_0x3e0e1d(0x132)](_0x3e0e1d(0x157))[_0x3e0e1d(0x15e)]('start')[_0x3e0e1d(0x16f)](_0x3e0e1d(0x167),'Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname')[_0x3e0e1d(0x16f)](_0x3e0e1d(0x165),_0x3e0e1d(0x18b),parseInt)['option'](_0x3e0e1d(0x195),_0x3e0e1d(0x175))[_0x3e0e1d(0x16f)](_0x3e0e1d(0x178),_0x3e0e1d(0x137))[_0x3e0e1d(0x16f)]('-nF,\x20--no-frame','Run\x20without\x20Zalo\x20frame')[_0x3e0e1d(0x16f)]('-D,\x20--device',_0x3e0e1d(0x18e))[_0x3e0e1d(0x16f)]('-M,\x20--mode\x20<m>',_0x3e0e1d(0x16a))[_0x3e0e1d(0x16e)](_0x3e0e1d(0x173))[_0x3e0e1d(0x134)](async _0x444974=>{const _0x12571a=_0x3e0e1d;if(p(Z)||(c[_0x12571a(0x144)](s[_0x12571a(0x145)]+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x12571a(0x18d)](0x1)),_0x444974&&_0x444974['showMobileUi'])try{console['log'](require[_0x12571a(0x13e)]('nw'));}catch(_0xa99473){console[_0x12571a(0x145)]('NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22'),process[_0x12571a(0x18d)](_0xa99473[_0x12571a(0x139)]);}let _0x5acf53=h[_0x12571a(0x188)]();_0x5acf53[_0x12571a(0x133)](_0x12571a(0x156))||(_0x5acf53=_0x5acf53+_0x12571a(0x156)),await y({'cwd':Z,'port':_0x444974&&_0x444974['port']||0xbb8,'iosHostName':_0x444974&&_0x444974[_0x12571a(0x15a)]||_0x5acf53,'showMobileUI':_0x444974&&_0x444974[_0x12571a(0x163)]||!0x1,'previewOnZalo':_0x444974&&_0x444974[_0x12571a(0x17e)]||!0x1,'ios':_0x444974&&_0x444974[_0x12571a(0x15c)]||!0x1,'mode':_0x444974&&_0x444974['mode'],'frame':!!_0x444974&&(void 0x0===_0x444974[_0x12571a(0x14c)]||null===_0x444974[_0x12571a(0x14c)])||_0x444974[_0x12571a(0x14c)],'deviceMode':_0x444974&&_0x444974[_0x12571a(0x192)]||!0x1},S),process[_0x12571a(0x18d)](0x0);}),i[_0x3e0e1d(0x132)]('<command>\x20[options]')['command'](_0x3e0e1d(0x187))[_0x3e0e1d(0x16f)]('-M,\x20--mode\x20<m>',_0x3e0e1d(0x16a))[_0x3e0e1d(0x16e)](_0x3e0e1d(0x179))[_0x3e0e1d(0x134)](async _0x4c6e33=>{const _0x16fac8=_0x3e0e1d;p(Z)||(c[_0x16fac8(0x144)](s[_0x16fac8(0x145)]+_0x16fac8(0x162)),process[_0x16fac8(0x18d)](0x1)),await w({'cwd':Z,'mode':_0x4c6e33&&_0x4c6e33[_0x16fac8(0x191)]},S),process['exit'](0x0);}),i[_0x3e0e1d(0x132)](_0x3e0e1d(0x157))[_0x3e0e1d(0x15e)](_0x3e0e1d(0x171))[_0x3e0e1d(0x16f)](_0x3e0e1d(0x135),'Env\x20mode')[_0x3e0e1d(0x16f)]('-p,\x20--passive',_0x3e0e1d(0x180))['option']('-e,\x20--existing',_0x3e0e1d(0x14f))[_0x3e0e1d(0x16f)](_0x3e0e1d(0x186),_0x3e0e1d(0x181))[_0x3e0e1d(0x16f)](_0x3e0e1d(0x158),_0x3e0e1d(0x18c))[_0x3e0e1d(0x16f)](_0x3e0e1d(0x190),_0x3e0e1d(0x14d))[_0x3e0e1d(0x16f)]('-P,\x20--port\x20<n>','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)['description']('Deploy\x20a\x20ZMP\x20project')[_0x3e0e1d(0x134)](async _0x2e1842=>{const _0x48b2a3=_0x3e0e1d;let _0x571418=p(Z),_0x3dc222=_0x2e1842;_0x2e1842[_0x48b2a3(0x148)]?_0x3dc222[_0x48b2a3(0x13a)]=!0x0:_0x2e1842[_0x48b2a3(0x169)]||(_0x3dc222=await d(_0x571418)),_0x2e1842[_0x48b2a3(0x141)]&&(_0x3dc222[_0x48b2a3(0x185)]=j[_0x48b2a3(0x14b)]),_0x3dc222['quit']&&process[_0x48b2a3(0x18d)](0x1),await v({'cwd':Z,'mode':_0x2e1842&&_0x2e1842[_0x48b2a3(0x191)],..._0x3dc222},S),process[_0x48b2a3(0x18d)](0x0);}),i[_0x3e0e1d(0x132)](_0x3e0e1d(0x157))['command'](_0x3e0e1d(0x147))[_0x3e0e1d(0x16f)]('-r,\x20--root-element\x20<selector>','Custom\x20entry\x20point,\x20default\x20is\x20#app')[_0x3e0e1d(0x16e)](_0x3e0e1d(0x17d))[_0x3e0e1d(0x134)](async(_0x549183,_0xeb9067)=>{const _0x3fb53f=_0x3e0e1d;await f({'source':_0x549183,..._0xeb9067},S),process[_0x3fb53f(0x18d)](0x0);}),i[_0x3e0e1d(0x132)]('<command>\x20[options]')[_0x3e0e1d(0x15e)](_0x3e0e1d(0x182))['action'](async function(){const _0x4df804=_0x3e0e1d;let _0x590c35=p(Z);_0x590c35||(S[_0x4df804(0x144)](s[_0x4df804(0x145)]+_0x4df804(0x162)),process[_0x4df804(0x18d)](0x1));let _0x3c4ee3=await m();await q({'cwd':Z,..._0x3c4ee3,..._0x590c35},S),process['exit'](0x0);}),i['on'](_0x3e0e1d(0x13b),_0x2ae21c=>{const _0x576a41=_0x3e0e1d;i[_0x576a41(0x18a)](),c[_0x576a41(0x144)](_0x576a41(0x17f)+_0x2ae21c);}),i[_0x3e0e1d(0x16c)](process[_0x3e0e1d(0x15f)]),i[_0x3e0e1d(0x149)][_0x3e0e1d(0x161)]||i[_0x3e0e1d(0x18a)]();
package/login/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4da0(){const _0x186ade=['then','path','5623551qTeRhs','../utils/log','request_timeout','statusDone','Login...','permission_denied','appId','error_msg','22PUdLzB','checkStatus','427eBnHUp','Login\x20failed!','ora','catch','qrcode-terminal','jsonwebtoken','getEnv','zalo','error_code','statusError','info','2552520XGRgWP','zmpsk','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','../utils/env','exports','data','login','setEnv','generate','42786pRpmBU','text','err','jwt','application/x-www-form-urlencoded','chalk','479656PvcxZb','3984155zZVNgj','token','decode','statusStart','start','bold','error','../utils/axios','stop','api_domain','statusText','26645120NXXKrJ','8WfZtNr','loginUrl','loginMethod','no-cache','../config','./utils/zalo-login','msg','env','\x20(Time\x20out\x20after\x20','Login\x20Success!','stringify','stderr','Token\x20Invalid!','114738zMYNAy'];_0x4da0=function(){return _0x186ade;};return _0x4da0();}function _0x6aaa(_0x3326ae,_0x32fb09){const _0x4da093=_0x4da0();return _0x6aaa=function(_0x6aaa2,_0x4d3237){_0x6aaa2=_0x6aaa2-0xe6;let _0x1d4fc9=_0x4da093[_0x6aaa2];return _0x1d4fc9;},_0x6aaa(_0x3326ae,_0x32fb09);}const _0x6c9508=_0x6aaa;(function(_0x2a1f4e,_0xf8977e){const _0xc2b16d=_0x6aaa,_0x3158fc=_0x2a1f4e();while(!![]){try{const _0x242fff=-parseInt(_0xc2b16d(0xf1))/0x1+parseInt(_0xc2b16d(0x116))/0x2*(-parseInt(_0xc2b16d(0x10b))/0x3)+-parseInt(_0xc2b16d(0x123))/0x4+-parseInt(_0xc2b16d(0xf2))/0x5+parseInt(_0xc2b16d(0xeb))/0x6*(-parseInt(_0xc2b16d(0x118))/0x7)+-parseInt(_0xc2b16d(0xfe))/0x8*(-parseInt(_0xc2b16d(0x10e))/0x9)+parseInt(_0xc2b16d(0xfd))/0xa;if(_0x242fff===_0xf8977e)break;else _0x3158fc['push'](_0x3158fc['shift']());}catch(_0x3f3793){_0x3158fc['push'](_0x3158fc['shift']());}}}(_0x4da0,0x7eb7d));const e=require(_0x6c9508(0xf0)),t=require(_0x6c9508(0x11a)),r=require(_0x6c9508(0x11d)),a=require(_0x6c9508(0x11c)),n=require('log-symbols'),o=require(_0x6c9508(0x102)),s=require(_0x6c9508(0x126)),i=require(_0x6c9508(0x10f)),u=require(_0x6c9508(0x103)),{axiosClient:l}=require(_0x6c9508(0xf9)),c=require('qs'),d=e['gray'](_0x6c9508(0x112)),p=t(d);module[_0x6c9508(0xe6)]=async(_0xaf0736={},_0x37af9a)=>{const _0x48b92b=_0x6c9508;let _0x1f5af1;_0x37af9a||(_0x37af9a={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x37af9a[_0x48b92b(0xf5)](d),p[_0x48b92b(0xf6)]();let _0x9d9485=_0xaf0736[_0x48b92b(0x100)],_0x4184a0=_0xaf0736['appId']||s[_0x48b92b(0x11e)](o[_0x48b92b(0x105)][_0x48b92b(0x114)]),_0x37a7bd=_0xaf0736[_0x48b92b(0xf3)],_0x4524d9=''+o[_0x48b92b(0xfb)]+o[_0x48b92b(0x10d)][_0x48b92b(0xe8)];try{if(p[_0x48b92b(0xf6)](),_0x48b92b(0x11f)===_0x9d9485){let _0x4adce4;await new Promise((_0x5f124c,_0x104549)=>{const _0x4739e9=_0x48b92b;u['getQRCode'](_0x4184a0)['then'](function(_0x563ccf){const _0x767bc7=_0x6aaa;p['stop']();let _0x1c8d04=_0x563ccf[_0x767bc7(0xe7)];if(!_0x1c8d04||_0x1c8d04[_0x767bc7(0xed)]<0x0)return _0x104549(Error(_0x1c8d04[_0x767bc7(0x104)]));let _0x209cdc=_0x1c8d04[_0x767bc7(0xe7)]&&_0x1c8d04[_0x767bc7(0xe7)][_0x767bc7(0xff)];return _0x4adce4=_0x1c8d04[_0x767bc7(0xe7)]&&_0x1c8d04[_0x767bc7(0xe7)][_0x767bc7(0x124)],a[_0x767bc7(0xea)](_0x209cdc,{'small':!0x0},function(_0x2b7a83){const _0x56f9af=_0x767bc7;let _0x23f7db=n[_0x56f9af(0x122)]+'\x20'+e[_0x56f9af(0xf7)](_0x56f9af(0x125)+_0x2b7a83);_0x37af9a[_0x56f9af(0xec)](_0x23f7db);}),s[_0x767bc7(0xe9)](o[_0x767bc7(0x105)][_0x767bc7(0x114)],_0x4184a0),_0x5f124c();})[_0x4739e9(0x11b)](function(_0x17241a){const _0x1a3f60=_0x4739e9;return p[_0x1a3f60(0xfa)](),_0x104549(_0x17241a);});}),await new Promise((_0x7f5c07,_0x5aeab8)=>{const _0x580519=_0x48b92b;if(!_0x4adce4)return _0x5aeab8(Error(_0x580519(0x10a)));let _0x14c13d=0x0;_0x1f5af1=setInterval(()=>{const _0x12ab45=_0x580519;if(_0x37af9a[_0x12ab45(0xfc)](d+_0x12ab45(0x106)+(0x3c-_0x14c13d)+'s)'),_0x14c13d>0x3c)return clearInterval(_0x1f5af1),_0x5aeab8(Error(o['error_msg']['request_timeout']));_0x14c13d++,u[_0x12ab45(0x117)](_0x4adce4)[_0x12ab45(0x10c)](function(_0xc6b6a8){const _0x1f0387=_0x12ab45;p['stop']();let _0x3a63f2=_0xc6b6a8[_0x1f0387(0xe7)];if(_0x3a63f2&&_0x3a63f2['err']===o[_0x1f0387(0x120)][_0x1f0387(0x113)])return clearInterval(_0x1f5af1),_0x5aeab8(Error(o[_0x1f0387(0x115)][_0x1f0387(0x113)]));if(_0x3a63f2&&_0x3a63f2[_0x1f0387(0xed)]===o[_0x1f0387(0x120)][_0x1f0387(0x110)])return clearInterval(_0x1f5af1),_0x5aeab8(Error(o['error_msg'][_0x1f0387(0x110)]));if(_0x3a63f2&&_0x3a63f2[_0x1f0387(0xed)]>=0x0){clearInterval(_0x1f5af1);let _0x365a33=_0x3a63f2[_0x1f0387(0xe7)]&&_0x3a63f2[_0x1f0387(0xe7)][_0x1f0387(0xee)];return s[_0x1f0387(0xe9)](o['env'][_0x1f0387(0xf3)],_0x365a33),_0x37af9a[_0x1f0387(0x111)](_0x1f0387(0x107)),_0x7f5c07();}})['catch'](function(_0x1b1006){return clearInterval(_0x1f5af1),p['stop'](),_0x5aeab8(_0x1b1006);});},0x7d0);});}else await new Promise((_0x2eb2ae,_0x65fdde)=>{const _0x3b0664=_0x48b92b;l({'url':_0x4524d9,'method':'POST','headers':{'cache-control':_0x3b0664(0x101),'content-type':_0x3b0664(0xef)},'data':c[_0x3b0664(0x108)]({'accessToken':_0x37a7bd,'appId':_0x4184a0}),'withCredentials':!0x0})[_0x3b0664(0x10c)](function(_0x48b1e1){const _0x277524=_0x3b0664;p['stop']();let _0x57bf18=_0x48b1e1[_0x277524(0xe7)];if(!_0x57bf18||_0x57bf18[_0x277524(0xed)]<0x0)return _0x65fdde(Error(_0x57bf18['msg']));let _0x5031cf=_0x57bf18[_0x277524(0xe7)]&&_0x57bf18[_0x277524(0xe7)][_0x277524(0xee)];try{let _0x3967ae=r[_0x277524(0xf4)](_0x5031cf);s['setEnv'](o['env'][_0x277524(0x114)],_0x3967ae['appId']),s[_0x277524(0xe9)](o[_0x277524(0x105)]['token'],_0x5031cf);}catch(_0x598713){return _0x65fdde(_0x598713);}return _0x37af9a[_0x277524(0x111)](_0x277524(0x107)),_0x2eb2ae();})[_0x3b0664(0x11b)](function(_0x497a52){const _0xeb357c=_0x3b0664;return p[_0xeb357c(0xfa)](),_0x65fdde(_0x497a52);});});}catch(_0x14c690){_0x37af9a[_0x48b92b(0x121)](_0x48b92b(0x119)),i[_0x48b92b(0xf8)](_0x14c690[_0x48b92b(0x109)]||_0x14c690);return;}};
1
+ 'use strict';const _0x455ebe=_0x781b;(function(_0x3f0fed,_0x28a6fa){const _0x3920b8=_0x781b,_0x2c0422=_0x3f0fed();while(!![]){try{const _0x1dcd50=-parseInt(_0x3920b8(0x190))/0x1+parseInt(_0x3920b8(0x1aa))/0x2*(-parseInt(_0x3920b8(0x194))/0x3)+-parseInt(_0x3920b8(0x192))/0x4*(parseInt(_0x3920b8(0x1c3))/0x5)+parseInt(_0x3920b8(0x197))/0x6+parseInt(_0x3920b8(0x1b9))/0x7*(parseInt(_0x3920b8(0x1ae))/0x8)+-parseInt(_0x3920b8(0x19f))/0x9*(-parseInt(_0x3920b8(0x1a1))/0xa)+parseInt(_0x3920b8(0x18e))/0xb;if(_0x1dcd50===_0x28a6fa)break;else _0x2c0422['push'](_0x2c0422['shift']());}catch(_0x56f5b2){_0x2c0422['push'](_0x2c0422['shift']());}}}(_0x3c75,0x8601f));function _0x781b(_0x1593e,_0x3228b3){const _0x3c759b=_0x3c75();return _0x781b=function(_0x781bf,_0x4afcaf){_0x781bf=_0x781bf-0x188;let _0x1aae0c=_0x3c759b[_0x781bf];return _0x1aae0c;},_0x781b(_0x1593e,_0x3228b3);}const e=require('chalk'),t=require(_0x455ebe(0x1ab)),r=require(_0x455ebe(0x1c4)),a=require(_0x455ebe(0x1a8)),n=require(_0x455ebe(0x1ba)),o=require(_0x455ebe(0x18b)),s=require(_0x455ebe(0x1ad)),i=require('../utils/log'),u=require(_0x455ebe(0x19d)),{axiosClient:l}=require(_0x455ebe(0x19e)),c=require('qs'),d=e[_0x455ebe(0x199)]('Login...'),p=t(d);function _0x3c75(){const _0xb8dc1b=['124gOXzAZ','POST','15gYNVGt','error','stop','3739146dFeMmX','msg','gray','stderr','zalo','bold','./utils/zalo-login','../utils/axios','61812BSxtEb','decode','1090VfJBHc','request_timeout','\x20(Time\x20out\x20after\x20','statusError','text','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','exports','qrcode-terminal','catch','170368Bdhgni','ora','stringify','../utils/env','237424jAclrw','error_code','setEnv','statusText','api_domain','statusDone','statusStart','error_msg','appId','token','getEnv','56DHjSQB','log-symbols','data','loginUrl','no-cache','Token\x20Invalid!','application/x-www-form-urlencoded','login','env','Login\x20Success!','91305mDaqbW','jsonwebtoken','zmpsk','Login\x20failed!','permission_denied','getQRCode','../config','info','path','10410202OMUbtB','jwt','1014703pJaGCQ','err'];_0x3c75=function(){return _0xb8dc1b;};return _0x3c75();}module[_0x455ebe(0x1a7)]=async(_0x2c9540={},_0x419972)=>{const _0x4c215a=_0x455ebe;let _0x2ff944;_0x419972||(_0x419972={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x419972[_0x4c215a(0x1b4)](d),p['start']();let _0xff3f42=_0x2c9540['loginMethod'],_0x3f7bcd=_0x2c9540[_0x4c215a(0x1b6)]||s[_0x4c215a(0x1b8)](o['env'][_0x4c215a(0x1b6)]),_0xf91ba4=_0x2c9540['token'],_0x321471=''+o[_0x4c215a(0x1b2)]+o[_0x4c215a(0x18d)][_0x4c215a(0x1c0)];try{if(p['start'](),_0x4c215a(0x19b)===_0xff3f42){let _0x3481bf;await new Promise((_0x321139,_0x3f375f)=>{const _0x85732a=_0x4c215a;u[_0x85732a(0x18a)](_0x3f7bcd)['then'](function(_0xf89881){const _0x524b20=_0x85732a;p[_0x524b20(0x196)]();let _0x16f6d0=_0xf89881['data'];if(!_0x16f6d0||_0x16f6d0[_0x524b20(0x191)]<0x0)return _0x3f375f(Error(_0x16f6d0[_0x524b20(0x198)]));let _0x504ab4=_0x16f6d0['data']&&_0x16f6d0[_0x524b20(0x1bb)][_0x524b20(0x1bc)];return _0x3481bf=_0x16f6d0[_0x524b20(0x1bb)]&&_0x16f6d0[_0x524b20(0x1bb)][_0x524b20(0x1c5)],a['generate'](_0x504ab4,{'small':!0x0},function(_0x50e8f8){const _0x5f5d37=_0x524b20;let _0x5458cc=n[_0x5f5d37(0x18c)]+'\x20'+e[_0x5f5d37(0x19c)](_0x5f5d37(0x1a6)+_0x50e8f8);_0x419972[_0x5f5d37(0x1a5)](_0x5458cc);}),s[_0x524b20(0x1b0)](o[_0x524b20(0x1c1)][_0x524b20(0x1b6)],_0x3f7bcd),_0x321139();})['catch'](function(_0x2dafd2){return p['stop'](),_0x3f375f(_0x2dafd2);});}),await new Promise((_0xe756ad,_0x4778ab)=>{const _0x12d66c=_0x4c215a;if(!_0x3481bf)return _0x4778ab(Error(_0x12d66c(0x1be)));let _0x5c76b9=0x0;_0x2ff944=setInterval(()=>{const _0x28a7e6=_0x12d66c;if(_0x419972[_0x28a7e6(0x1b1)](d+_0x28a7e6(0x1a3)+(0x3c-_0x5c76b9)+'s)'),_0x5c76b9>0x3c)return clearInterval(_0x2ff944),_0x4778ab(Error(o[_0x28a7e6(0x1b5)][_0x28a7e6(0x1a2)]));_0x5c76b9++,u['checkStatus'](_0x3481bf)['then'](function(_0x5e6725){const _0x5c64e3=_0x28a7e6;p[_0x5c64e3(0x196)]();let _0x363467=_0x5e6725[_0x5c64e3(0x1bb)];if(_0x363467&&_0x363467[_0x5c64e3(0x191)]===o[_0x5c64e3(0x1af)][_0x5c64e3(0x189)])return clearInterval(_0x2ff944),_0x4778ab(Error(o[_0x5c64e3(0x1b5)][_0x5c64e3(0x189)]));if(_0x363467&&_0x363467[_0x5c64e3(0x191)]===o[_0x5c64e3(0x1af)][_0x5c64e3(0x1a2)])return clearInterval(_0x2ff944),_0x4778ab(Error(o[_0x5c64e3(0x1b5)]['request_timeout']));if(_0x363467&&_0x363467[_0x5c64e3(0x191)]>=0x0){clearInterval(_0x2ff944);let _0x5227bb=_0x363467[_0x5c64e3(0x1bb)]&&_0x363467[_0x5c64e3(0x1bb)][_0x5c64e3(0x18f)];return s[_0x5c64e3(0x1b0)](o[_0x5c64e3(0x1c1)][_0x5c64e3(0x1b7)],_0x5227bb),_0x419972['statusDone'](_0x5c64e3(0x1c2)),_0xe756ad();}})[_0x28a7e6(0x1a9)](function(_0x29461b){const _0x5dc265=_0x28a7e6;return clearInterval(_0x2ff944),p[_0x5dc265(0x196)](),_0x4778ab(_0x29461b);});},0x7d0);});}else await new Promise((_0x5bcde6,_0x369d8c)=>{const _0x4acf3f=_0x4c215a;l({'url':_0x321471,'method':_0x4acf3f(0x193),'headers':{'cache-control':_0x4acf3f(0x1bd),'content-type':_0x4acf3f(0x1bf)},'data':c[_0x4acf3f(0x1ac)]({'accessToken':_0xf91ba4,'appId':_0x3f7bcd}),'withCredentials':!0x0})['then'](function(_0x1455e3){const _0x3cba07=_0x4acf3f;p[_0x3cba07(0x196)]();let _0x3311b4=_0x1455e3['data'];if(!_0x3311b4||_0x3311b4[_0x3cba07(0x191)]<0x0)return _0x369d8c(Error(_0x3311b4[_0x3cba07(0x198)]));let _0x48a4d5=_0x3311b4['data']&&_0x3311b4['data'][_0x3cba07(0x18f)];try{let _0x4f797a=r[_0x3cba07(0x1a0)](_0x48a4d5);s['setEnv'](o[_0x3cba07(0x1c1)][_0x3cba07(0x1b6)],_0x4f797a['appId']),s[_0x3cba07(0x1b0)](o[_0x3cba07(0x1c1)][_0x3cba07(0x1b7)],_0x48a4d5);}catch(_0x1d9931){return _0x369d8c(_0x1d9931);}return _0x419972[_0x3cba07(0x1b3)](_0x3cba07(0x1c2)),_0x5bcde6();})['catch'](function(_0x4e4818){return p['stop'](),_0x369d8c(_0x4e4818);});});}catch(_0x294332){_0x419972[_0x4c215a(0x1a4)](_0x4c215a(0x188)),i[_0x4c215a(0x195)](_0x294332[_0x4c215a(0x19a)]||_0x294332);return;}};
@@ -1 +1 @@
1
- 'use strict';const _0x5988e9=_0x5349;(function(_0x26859e,_0x19cd56){const _0x351e3e=_0x5349,_0x16398d=_0x26859e();while(!![]){try{const _0xcce6a1=parseInt(_0x351e3e(0x123))/0x1+-parseInt(_0x351e3e(0x11c))/0x2+parseInt(_0x351e3e(0x119))/0x3+-parseInt(_0x351e3e(0x120))/0x4*(parseInt(_0x351e3e(0x11d))/0x5)+-parseInt(_0x351e3e(0x12f))/0x6+-parseInt(_0x351e3e(0x12e))/0x7+parseInt(_0x351e3e(0x121))/0x8;if(_0xcce6a1===_0x19cd56)break;else _0x16398d['push'](_0x16398d['shift']());}catch(_0xedf5c4){_0x16398d['push'](_0x16398d['shift']());}}}(_0x371d,0xd5783));const e=require(_0x5988e9(0x126)),i=require('../../utils/env'),o=require(_0x5988e9(0x12d));module['exports']=function(){const _0x4c87db=_0x5988e9;let _0x1d3e37=[{'type':_0x4c87db(0x122),'name':_0x4c87db(0x127),'message':'Mini\x20App\x20ID:','when':()=>!i[_0x4c87db(0x125)](o['env'][_0x4c87db(0x127)]),'validate':_0x200b71=>new Promise((_0x553809,_0x4d3773)=>{_0x200b71?_0x553809(!0x0):_0x4d3773(Error('Mimi\x20App\x20ID\x20is\x20required'));})},{'type':_0x4c87db(0x12c),'name':'loginMethod','message':'Choose\x20a\x20Login\x20Method','choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':'zalo'},{'name':_0x4c87db(0x124),'value':_0x4c87db(0x11b)}],'validate':_0x2b6eff=>new Promise((_0x363de2,_0x3931be)=>{const _0x57a7a8=_0x4c87db;_0x2b6eff&&_0x2b6eff[_0x57a7a8(0x129)]?_0x363de2(!0x0):_0x3931be(Error(_0x57a7a8(0x128)));})},{'type':_0x4c87db(0x122),'name':_0x4c87db(0x12a),'message':_0x4c87db(0x12b),'when':_0x5e1623=>'accessToken'===_0x5e1623['loginMethod'],'validate':_0x3ab39d=>new Promise((_0xe16786,_0x28f8d9)=>{const _0x543110=_0x4c87db;_0x3ab39d?_0xe16786(!0x0):_0x28f8d9(Error(_0x543110(0x11e)));})}];return e['prompt'](_0x1d3e37)[_0x4c87db(0x11a)](_0x3cf6da=>Promise[_0x4c87db(0x11f)](_0x3cf6da));};function _0x5349(_0x13c767,_0x78abec){const _0x371d8a=_0x371d();return _0x5349=function(_0x534964,_0xd6f9b8){_0x534964=_0x534964-0x119;let _0x258716=_0x371d8a[_0x534964];return _0x258716;},_0x5349(_0x13c767,_0x78abec);}function _0x371d(){const _0x44a892=['9540300gYpciT','2660946ZARFpN','then','accessToken','748938eWUjBC','5RNCfQA','Zalo\x20Access\x20Token\x20is\x20required','resolve','3101036TrsyHy','22092136MTSxDb','input','4644WLDnpI','2.\x20Login\x20With\x20App\x20Access\x20Token','getEnv','inquirer','appId','Login\x20method\x20is\x20required!','length','token','Zalo\x20Access\x20Token:','list','../../config','272958dtbOHN'];_0x371d=function(){return _0x44a892;};return _0x371d();}
1
+ 'use strict';function _0x1005(){const _0x4c86ab=['1095410LYXRxO','resolve','list','Choose\x20a\x20Login\x20Method','1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','env','6050892zAtWkH','Mimi\x20App\x20ID\x20is\x20required','prompt','Mini\x20App\x20ID:','Zalo\x20Access\x20Token\x20is\x20required','../../utils/env','Zalo\x20Access\x20Token:','55802IgwbLQ','inquirer','exports','29299435JCTtSE','length','967838hfeMuv','93GZpiMm','loginMethod','8iQzRFj','81vbIBvk','accessToken','../../config','445KHJuxk','2.\x20Login\x20With\x20App\x20Access\x20Token','token','input','49804QRVxJO','appId','getEnv','4965247jumSCT'];_0x1005=function(){return _0x4c86ab;};return _0x1005();}function _0x4fe0(_0x973881,_0x2f98dc){const _0x1005de=_0x1005();return _0x4fe0=function(_0x4fe069,_0xdeee63){_0x4fe069=_0x4fe069-0x127;let _0x3e5c7d=_0x1005de[_0x4fe069];return _0x3e5c7d;},_0x4fe0(_0x973881,_0x2f98dc);}const _0x4b66ab=_0x4fe0;(function(_0x2b1d09,_0x13a401){const _0x562a82=_0x4fe0,_0x3bcc7a=_0x2b1d09();while(!![]){try{const _0x499466=parseInt(_0x562a82(0x129))/0x1+-parseInt(_0x562a82(0x145))/0x2*(parseInt(_0x562a82(0x12a))/0x3)+parseInt(_0x562a82(0x134))/0x4*(-parseInt(_0x562a82(0x130))/0x5)+-parseInt(_0x562a82(0x13e))/0x6+-parseInt(_0x562a82(0x137))/0x7*(parseInt(_0x562a82(0x12c))/0x8)+parseInt(_0x562a82(0x12d))/0x9*(parseInt(_0x562a82(0x138))/0xa)+parseInt(_0x562a82(0x127))/0xb;if(_0x499466===_0x13a401)break;else _0x3bcc7a['push'](_0x3bcc7a['shift']());}catch(_0x517bed){_0x3bcc7a['push'](_0x3bcc7a['shift']());}}}(_0x1005,0xe22d3));const e=require(_0x4b66ab(0x146)),i=require(_0x4b66ab(0x143)),o=require(_0x4b66ab(0x12f));module[_0x4b66ab(0x147)]=function(){const _0x4245fe=_0x4b66ab;let _0x3772a2=[{'type':_0x4245fe(0x133),'name':_0x4245fe(0x135),'message':_0x4245fe(0x141),'when':()=>!i[_0x4245fe(0x136)](o[_0x4245fe(0x13d)][_0x4245fe(0x135)]),'validate':_0x5cabb1=>new Promise((_0x416540,_0x41f334)=>{const _0x4b3f66=_0x4245fe;_0x5cabb1?_0x416540(!0x0):_0x41f334(Error(_0x4b3f66(0x13f)));})},{'type':_0x4245fe(0x13a),'name':_0x4245fe(0x12b),'message':_0x4245fe(0x13b),'choices':[{'name':_0x4245fe(0x13c),'value':'zalo'},{'name':_0x4245fe(0x131),'value':_0x4245fe(0x12e)}],'validate':_0x59855f=>new Promise((_0x497280,_0x1f3b6c)=>{const _0x261e2f=_0x4245fe;_0x59855f&&_0x59855f[_0x261e2f(0x128)]?_0x497280(!0x0):_0x1f3b6c(Error('Login\x20method\x20is\x20required!'));})},{'type':'input','name':_0x4245fe(0x132),'message':_0x4245fe(0x144),'when':_0x392b5d=>_0x4245fe(0x12e)===_0x392b5d['loginMethod'],'validate':_0x437cda=>new Promise((_0x2115d8,_0x2be2ed)=>{const _0x3a67fd=_0x4245fe;_0x437cda?_0x2115d8(!0x0):_0x2be2ed(Error(_0x3a67fd(0x142)));})}];return e[_0x4245fe(0x140)](_0x3772a2)['then'](_0x5b985e=>Promise[_0x4245fe(0x139)](_0x5b985e));};
@@ -1 +1 @@
1
- 'use strict';const _0x4ca67f=_0x238e;function _0x34dd(){const _0x32215c=['173219fmKbwk','no-cache','path','1136200kgHGXv','303rrNYfz','?zmpsk=','10rFPZyS','../../config','2394bpLYbc','2901924vqClcj','1285333uivPPs','checkLoginStatus','2235xQseDD','get','../../utils/axios','1504eRDruI','api_domain','1788552KwfROw'];_0x34dd=function(){return _0x32215c;};return _0x34dd();}function _0x238e(_0x58c036,_0x3c8cce){const _0x34dd7f=_0x34dd();return _0x238e=function(_0x238ec4,_0x1b28e9){_0x238ec4=_0x238ec4-0x13d;let _0x5613c1=_0x34dd7f[_0x238ec4];return _0x5613c1;},_0x238e(_0x58c036,_0x3c8cce);}(function(_0x18cbbf,_0x4f461d){const _0x23876a=_0x238e,_0x55222c=_0x18cbbf();while(!![]){try{const _0x47df20=parseInt(_0x23876a(0x14c))/0x1+-parseInt(_0x23876a(0x142))/0x2*(-parseInt(_0x23876a(0x13e))/0x3)+-parseInt(_0x23876a(0x149))/0x4*(-parseInt(_0x23876a(0x146))/0x5)+-parseInt(_0x23876a(0x14b))/0x6+-parseInt(_0x23876a(0x144))/0x7+-parseInt(_0x23876a(0x13d))/0x8+-parseInt(_0x23876a(0x143))/0x9*(-parseInt(_0x23876a(0x140))/0xa);if(_0x47df20===_0x4f461d)break;else _0x55222c['push'](_0x55222c['shift']());}catch(_0x3858f8){_0x55222c['push'](_0x55222c['shift']());}}}(_0x34dd,0x27478));const e=require(_0x4ca67f(0x141)),{axiosClient:t}=require(_0x4ca67f(0x148));module['exports']=(function(){const _0x32f965=_0x4ca67f;let _0x440a02=''+e[_0x32f965(0x14a)]+e[_0x32f965(0x14e)]['requestLogin'],_0x3debf1=''+e[_0x32f965(0x14a)]+e[_0x32f965(0x14e)][_0x32f965(0x145)];return{'getQRCode':_0x5b1358=>t({'method':_0x32f965(0x147),'url':_0x440a02+'?appId='+_0x5b1358,'headers':{'cache-control':_0x32f965(0x14d)},'withCredentials':!0x0}),'checkStatus':_0x232d32=>t({'method':_0x32f965(0x147),'url':_0x3debf1+_0x32f965(0x13f)+_0x232d32,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0})};}());
1
+ 'use strict';function _0x2e85(_0x417eb1,_0x2b49d8){const _0x2eb433=_0x2eb4();return _0x2e85=function(_0x2e858e,_0x4dc1ec){_0x2e858e=_0x2e858e-0x195;let _0x1c0485=_0x2eb433[_0x2e858e];return _0x1c0485;},_0x2e85(_0x417eb1,_0x2b49d8);}const _0x500c74=_0x2e85;function _0x2eb4(){const _0x3733ab=['api_domain','../../config','175XeJnxV','path','get','2575720rkzgMk','../../utils/axios','9dZMtJC','4VuqiOS','700837sqdrul','requestLogin','no-cache','?appId=','3682160YhhmbP','checkLoginStatus','2230086XKWtyo','971900lwOclC','?zmpsk=','93399ndJljc','165246AipJhh','exports'];_0x2eb4=function(){return _0x3733ab;};return _0x2eb4();}(function(_0x4c5e53,_0x44fc84){const _0x5cc2c3=_0x2e85,_0x1ea562=_0x4c5e53();while(!![]){try{const _0x14f2fe=-parseInt(_0x5cc2c3(0x19f))/0x1+parseInt(_0x5cc2c3(0x1a5))/0x2+parseInt(_0x5cc2c3(0x1a8))/0x3*(-parseInt(_0x5cc2c3(0x19e))/0x4)+parseInt(_0x5cc2c3(0x1a6))/0x5+parseInt(_0x5cc2c3(0x1a9))/0x6*(-parseInt(_0x5cc2c3(0x198))/0x7)+parseInt(_0x5cc2c3(0x19b))/0x8*(parseInt(_0x5cc2c3(0x19d))/0x9)+parseInt(_0x5cc2c3(0x1a3))/0xa;if(_0x14f2fe===_0x44fc84)break;else _0x1ea562['push'](_0x1ea562['shift']());}catch(_0x559c2b){_0x1ea562['push'](_0x1ea562['shift']());}}}(_0x2eb4,0x8d625));const e=require(_0x500c74(0x197)),{axiosClient:t}=require(_0x500c74(0x19c));module[_0x500c74(0x195)]=(function(){const _0x3200c2=_0x500c74;let _0x495b07=''+e[_0x3200c2(0x196)]+e[_0x3200c2(0x199)][_0x3200c2(0x1a0)],_0x3b7db3=''+e[_0x3200c2(0x196)]+e[_0x3200c2(0x199)][_0x3200c2(0x1a4)];return{'getQRCode':_0x5a0dfe=>t({'method':_0x3200c2(0x19a),'url':_0x495b07+_0x3200c2(0x1a2)+_0x5a0dfe,'headers':{'cache-control':'no-cache'},'withCredentials':!0x0}),'checkStatus':_0xec7ef6=>t({'method':_0x3200c2(0x19a),'url':_0x3b7db3+_0x3200c2(0x1a7)+_0xec7ef6,'headers':{'cache-control':_0x3200c2(0x1a1)},'withCredentials':!0x0})};}());
@@ -1 +1 @@
1
- 'use strict';function _0x553b(){const _0x1e9d3c=['npm\x20install\x20zmp-framework@latest','802235gtSwJd','1507452xeOANL','cwd','2394yhEuEi','zmp-framework','134394exvgtE','./src/css/icons.css','zmp-ui','exports','./icons.css','1037484MKodRR','resolve','exec-sh','2572668UyNmlD','uiFramework','path','147501YTvlrI','5160LrGrwo','npm\x20install\x20zmp-ui@latest','../../utils/fs-extra','5vnyPEr','promise','16pSIopc'];_0x553b=function(){return _0x1e9d3c;};return _0x553b();}const _0x5537fa=_0x383e;(function(_0x472f25,_0x1d5fdb){const _0x58aa82=_0x383e,_0x270d62=_0x472f25();while(!![]){try{const _0x4c9256=-parseInt(_0x58aa82(0x1e5))/0x1+parseInt(_0x58aa82(0x1da))/0x2+parseInt(_0x58aa82(0x1df))/0x3+parseInt(_0x58aa82(0x1d6))/0x4*(-parseInt(_0x58aa82(0x1d1))/0x5)+parseInt(_0x58aa82(0x1e2))/0x6+-parseInt(_0x58aa82(0x1d5))/0x7*(parseInt(_0x58aa82(0x1d3))/0x8)+parseInt(_0x58aa82(0x1d8))/0x9*(parseInt(_0x58aa82(0x1ce))/0xa);if(_0x4c9256===_0x1d5fdb)break;else _0x270d62['push'](_0x270d62['shift']());}catch(_0xef9101){_0x270d62['push'](_0x270d62['shift']());}}}(_0x553b,0x370cd));function _0x383e(_0x2ef001,_0xe32ac2){const _0x553bfe=_0x553b();return _0x383e=function(_0x383e9d,_0x513977){_0x383e9d=_0x383e9d-0x1ce;let _0x1882d8=_0x553bfe[_0x383e9d];return _0x1882d8;},_0x383e(_0x2ef001,_0xe32ac2);}const e=require(_0x5537fa(0x1d0)),s=require(_0x5537fa(0x1e4)),r=require(_0x5537fa(0x1e1));async function i(_0x4ca412){const _0x48ac1e=_0x5537fa;if(_0x48ac1e(0x1d9)===_0x4ca412[_0x48ac1e(0x1e3)])e['copyFileAsync'](s[_0x48ac1e(0x1e0)](__dirname,_0x48ac1e(0x1de)),s[_0x48ac1e(0x1e0)](_0x4ca412[_0x48ac1e(0x1d7)],_0x48ac1e(0x1db))),await r['promise'](_0x48ac1e(0x1d4),!0x0);else{if(_0x48ac1e(0x1dc)!==_0x4ca412['uiFramework'])return;await r[_0x48ac1e(0x1d2)](_0x48ac1e(0x1cf),!0x0);}}module[_0x5537fa(0x1dd)]=i;
1
+ 'use strict';const _0x3a89cf=_0x59a7;(function(_0x21881f,_0x14aa13){const _0x47eda9=_0x59a7,_0x32041e=_0x21881f();while(!![]){try{const _0x1976f3=-parseInt(_0x47eda9(0x9b))/0x1+-parseInt(_0x47eda9(0xa5))/0x2*(-parseInt(_0x47eda9(0xa6))/0x3)+-parseInt(_0x47eda9(0xa0))/0x4+parseInt(_0x47eda9(0x9a))/0x5+-parseInt(_0x47eda9(0xaa))/0x6+-parseInt(_0x47eda9(0xa7))/0x7+-parseInt(_0x47eda9(0x97))/0x8*(-parseInt(_0x47eda9(0xab))/0x9);if(_0x1976f3===_0x14aa13)break;else _0x32041e['push'](_0x32041e['shift']());}catch(_0x1a29d2){_0x32041e['push'](_0x32041e['shift']());}}}(_0x51f5,0xd96ac));function _0x59a7(_0x39df9e,_0x134f16){const _0x51f523=_0x51f5();return _0x59a7=function(_0x59a7a6,_0x168067){_0x59a7a6=_0x59a7a6-0x96;let _0xda89ab=_0x51f523[_0x59a7a6];return _0xda89ab;},_0x59a7(_0x39df9e,_0x134f16);}function _0x51f5(){const _0x4439d2=['uiFramework','104114vlBVAd','66STFGrN','125986VNDcrb','cwd','./src/css/icons.css','1186818HVnLSX','35172YIZJSN','path','1176QIIvOo','copyFileAsync','resolve','5638645kPPcyj','65033WVTzWG','exports','zmp-ui','./icons.css','../../utils/fs-extra','6704340kaHhtz','npm\x20install\x20zmp-ui@latest','exec-sh','promise'];_0x51f5=function(){return _0x4439d2;};return _0x51f5();}const e=require(_0x3a89cf(0x9f)),s=require(_0x3a89cf(0x96)),r=require(_0x3a89cf(0xa2));async function i(_0x2d6681){const _0x54e32a=_0x3a89cf;if('zmp-framework'===_0x2d6681[_0x54e32a(0xa4)])e[_0x54e32a(0x98)](s[_0x54e32a(0x99)](__dirname,_0x54e32a(0x9e)),s[_0x54e32a(0x99)](_0x2d6681[_0x54e32a(0xa8)],_0x54e32a(0xa9))),await r[_0x54e32a(0xa3)]('npm\x20install\x20zmp-framework@latest',!0x0);else{if(_0x54e32a(0x9d)!==_0x2d6681[_0x54e32a(0xa4)])return;await r[_0x54e32a(0xa3)](_0x54e32a(0xa1),!0x0);}}module[_0x3a89cf(0x9c)]=i;
package/migrate/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x1f7c(_0x2b639a,_0x2e8992){const _0x2f358b=_0x2f35();return _0x1f7c=function(_0x1f7cf1,_0x5679ce){_0x1f7cf1=_0x1f7cf1-0x1b8;let _0x5a7844=_0x2f358b[_0x1f7cf1];return _0x5a7844;},_0x1f7c(_0x2b639a,_0x2e8992);}const _0x4acb6d=_0x1f7c;(function(_0x710d7f,_0x256c0a){const _0x5b2f93=_0x1f7c,_0x24ffed=_0x710d7f();while(!![]){try{const _0x233617=parseInt(_0x5b2f93(0x1b9))/0x1+parseInt(_0x5b2f93(0x1c4))/0x2+parseInt(_0x5b2f93(0x1cf))/0x3+-parseInt(_0x5b2f93(0x1d5))/0x4*(parseInt(_0x5b2f93(0x1d2))/0x5)+-parseInt(_0x5b2f93(0x1b8))/0x6+parseInt(_0x5b2f93(0x1cb))/0x7+-parseInt(_0x5b2f93(0x1c6))/0x8;if(_0x233617===_0x256c0a)break;else _0x24ffed['push'](_0x24ffed['shift']());}catch(_0x4c4ea2){_0x24ffed['push'](_0x24ffed['shift']());}}}(_0x2f35,0x7e114));const r=require(_0x4acb6d(0x1ca)),t=require(_0x4acb6d(0x1d1)),e=require(_0x4acb6d(0x1c2)),s=require(_0x4acb6d(0x1d6)),{errorExit:a}=require(_0x4acb6d(0x1d7)),o=require('../config'),i=r['gray'](_0x4acb6d(0x1ba));async function u(_0x571c8c={},_0x19523c){const _0x3f29a8=_0x4acb6d;let _0x2008ab=_0x571c8c[_0x3f29a8(0x1cd)]||process[_0x3f29a8(0x1cd)]();_0x19523c||(_0x19523c={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x19523c[_0x3f29a8(0x1bf)](_0x3f29a8(0x1bc)+i);try{let _0x2d2718,_0x5e36c4=require((_0x2d2718=o[_0x3f29a8(0x1c0)][_0x3f29a8(0x1bb)],t[_0x3f29a8(0x1bd)](_0x2008ab,_0x2d2718)));'react'===_0x5e36c4['framework']?await s(_0x571c8c):(_0x19523c[_0x3f29a8(0x1d3)](e['error']+_0x3f29a8(0x1c3)+_0x5e36c4[_0x3f29a8(0x1be)]+_0x3f29a8(0x1c9)),process[_0x3f29a8(0x1c7)](0x1)),_0x19523c[_0x3f29a8(0x1c1)](r['bold'][_0x3f29a8(0x1c5)](_0x3f29a8(0x1d4))+_0x3f29a8(0x1d0));}catch(_0x2c66db){_0x19523c[_0x3f29a8(0x1c8)](_0x3f29a8(0x1cc)),a(_0x2c66db);}}function _0x2f35(){const _0x37f50f=['statusStart','filename','statusDone','log-symbols','\x20Project\x20using\x20ZMP\x20','120516GnSGWL','green','8987856QnuMUV','exit','statusError','\x20is\x20not\x20yet\x20supported','chalk','5762960sGHqnc','Migration\x20error!','cwd','exports','2607966Yjzzjq','\x20💪','path','155ysndqv','text','Migration\x20Done!','8244CSiImy','./utils/migrate-react','../utils/error','3013974PZyVQJ','453214fQVMpn','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','zmpConfig','Migrating\x20Your\x20App\x20','join','framework'];_0x2f35=function(){return _0x37f50f;};return _0x2f35();}module[_0x4acb6d(0x1ce)]=u;
1
+ 'use strict';const _0x383fa2=_0x48fb;(function(_0x4962b1,_0x5bc4ac){const _0x576907=_0x48fb,_0x3fb91d=_0x4962b1();while(!![]){try{const _0x1c9e62=-parseInt(_0x576907(0x17f))/0x1*(-parseInt(_0x576907(0x19b))/0x2)+-parseInt(_0x576907(0x18a))/0x3+parseInt(_0x576907(0x18e))/0x4+parseInt(_0x576907(0x184))/0x5+parseInt(_0x576907(0x191))/0x6*(parseInt(_0x576907(0x18d))/0x7)+parseInt(_0x576907(0x181))/0x8*(-parseInt(_0x576907(0x198))/0x9)+parseInt(_0x576907(0x199))/0xa;if(_0x1c9e62===_0x5bc4ac)break;else _0x3fb91d['push'](_0x3fb91d['shift']());}catch(_0xc6a8ab){_0x3fb91d['push'](_0x3fb91d['shift']());}}}(_0x57ad,0xb6f36));function _0x48fb(_0x585f4b,_0x572ebd){const _0x57ad60=_0x57ad();return _0x48fb=function(_0x48fbb9,_0x552e6a){_0x48fbb9=_0x48fbb9-0x17e;let _0x54f479=_0x57ad60[_0x48fbb9];return _0x54f479;},_0x48fb(_0x585f4b,_0x572ebd);}const r=require(_0x383fa2(0x186)),t=require(_0x383fa2(0x18c)),e=require(_0x383fa2(0x194)),s=require('./utils/migrate-react'),{errorExit:a}=require(_0x383fa2(0x196)),o=require(_0x383fa2(0x17e)),i=r[_0x383fa2(0x180)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function u(_0x4420f5={},_0x3a52cf){const _0x38ee9b=_0x383fa2;let _0x2de511=_0x4420f5['cwd']||process[_0x38ee9b(0x183)]();_0x3a52cf||(_0x3a52cf={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x3a52cf['statusStart'](_0x38ee9b(0x195)+i);try{let _0x191b6f,_0x3fef63=require((_0x191b6f=o[_0x38ee9b(0x187)]['zmpConfig'],t[_0x38ee9b(0x18b)](_0x2de511,_0x191b6f)));'react'===_0x3fef63[_0x38ee9b(0x193)]?await s(_0x4420f5):(_0x3a52cf[_0x38ee9b(0x185)](e[_0x38ee9b(0x19a)]+'\x20Project\x20using\x20ZMP\x20'+_0x3fef63['framework']+_0x38ee9b(0x19c)),process[_0x38ee9b(0x189)](0x1)),_0x3a52cf['statusDone'](r[_0x38ee9b(0x182)][_0x38ee9b(0x18f)](_0x38ee9b(0x197))+_0x38ee9b(0x192));}catch(_0x4617d0){_0x3a52cf['statusError'](_0x38ee9b(0x188)),a(_0x4617d0);}}module[_0x383fa2(0x190)]=u;function _0x57ad(){const _0x57322b=['\x20is\x20not\x20yet\x20supported','../config','13rNSfws','gray','8txyyQK','bold','cwd','2225160NKyxGQ','text','chalk','filename','Migration\x20error!','exit','4122036Psajsm','join','path','7565243bMeopn','4330460JWRYNI','green','exports','6xiCDAA','\x20💪','framework','log-symbols','Migrating\x20Your\x20App\x20','../utils/error','Migration\x20Done!','10517823WHVjFu','5495600Qybzty','error','20626JGVyzd'];_0x57ad=function(){return _0x57322b;};return _0x57ad();}