zmp-cli 3.15.11 → 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 +4 -3
  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';function _0xbf34(){const _0x37c792=['stringify','text','../utils/env','28082sQovRd','../utils/get-latest-version','path','www/','statusError','zmp-cli-core','green','join','gray','latestVersion','nextVersion','chalk','../utils/fs-extra','../utils/error','Building...\x20(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','appConfigJson','@rollup/plugin-replace','82pRCKwh','exports','9810msnaal','filename','yellow','4209385vpnaKD','Building\x20development\x20version...','1393035EWnRzC','cwd','mode','430283HHAiVt','bold','error','appConfig','writeFileSync','Building\x20for\x20production...','Build\x20Done!\x0a','882ylKTFa','statusStart','NODE_ENV','getEnv','node_modules','72fXRCKJ','4116380TUVXRr','6267774CIgGth','production'];_0xbf34=function(){return _0x37c792;};return _0xbf34();}function _0x4c5e(_0x3b7b7a,_0x2c4d9d){const _0xbf3452=_0xbf34();return _0x4c5e=function(_0x4c5ef1,_0x46d53e){_0x4c5ef1=_0x4c5ef1-0xb5;let _0x4729c9=_0xbf3452[_0x4c5ef1];return _0x4729c9;},_0x4c5e(_0x3b7b7a,_0x2c4d9d);}const _0x1ea86c=_0x4c5e;(function(_0x121915,_0x490006){const _0x4f1715=_0x4c5e,_0x18c7f8=_0x121915();while(!![]){try{const _0x4ff517=parseInt(_0x4f1715(0xd7))/0x1*(-parseInt(_0x4f1715(0xc6))/0x2)+parseInt(_0x4f1715(0xde))/0x3+parseInt(_0x4f1715(0xc0))/0x4+parseInt(_0x4f1715(0xdc))/0x5+-parseInt(_0x4f1715(0xc1))/0x6+-parseInt(_0x4f1715(0xe1))/0x7*(-parseInt(_0x4f1715(0xbf))/0x8)+parseInt(_0x4f1715(0xba))/0x9*(-parseInt(_0x4f1715(0xd9))/0xa);if(_0x4ff517===_0x490006)break;else _0x18c7f8['push'](_0x18c7f8['shift']());}catch(_0x56c25b){_0x18c7f8['push'](_0x18c7f8['shift']());}}}(_0xbf34,0x919b9));const e=require(_0x1ea86c(0xd1)),r=require('ora'),t=require(_0x1ea86c(0xc8)),i=require('@rollup/plugin-dynamic-import-vars')['default'],o=require(_0x1ea86c(0xd6)),{buildApp:n}=require(_0x1ea86c(0xcb)),u=require(_0x1ea86c(0xd2)),a=require(_0x1ea86c(0xc5)),{errorExit:s}=require(_0x1ea86c(0xd3)),l=require('../config'),p=require('../utils/generate-pages-map'),{existsSync:g}=require('fs'),c=require(_0x1ea86c(0xc7)),w=a[_0x1ea86c(0xbd)](_0x1ea86c(0xbc))||_0x1ea86c(0xc2),d=e[_0x1ea86c(0xce)](_0x1ea86c(0xd4)),m=e[_0x1ea86c(0xdb)]('Warning:\x20This\x20CLI\x20version\x20will\x20work\x20better\x20with\x20zmp-framework\x20version\x201.5.0\x20or\x20higher'),f=r('production'===w?_0x1ea86c(0xb8):_0x1ea86c(0xdd));module[_0x1ea86c(0xd8)]=async(_0x50d5a1={},_0x2e4cca)=>{const _0x6bbce0=_0x1ea86c;let _0x57236c=_0x50d5a1[_0x6bbce0(0xdf)]||process[_0x6bbce0(0xdf)](),_0x565833=_0x469662=>t['join'](_0x57236c,_0x469662),_0x11e58c=_0x50d5a1[_0x6bbce0(0xd5)]||require(_0x565833(l[_0x6bbce0(0xda)][_0x6bbce0(0xb6)]));_0x2e4cca||(_0x2e4cca={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),g(t[_0x6bbce0(0xcd)](_0x57236c,_0x6bbce0(0xbe),'zmp-framework'))&&_0x2e4cca['text'](m),f['start'](),_0x2e4cca[_0x6bbce0(0xbb)](d);try{let _0x1eb6b6=a['getEnv'](l['env']['appId']),_0x46a088=_0x50d5a1[_0x6bbce0(0xd0)];if(!_0x46a088){let _0x5b1a82=await c(_0x1eb6b6,_0x50d5a1),_0x26c2ca=_0x5b1a82&&_0x5b1a82[_0x6bbce0(0xcf)]&&Number(_0x5b1a82[_0x6bbce0(0xcf)]);null==_0x26c2ca&&(_0x26c2ca=0x0),_0x46a088=_0x26c2ca+0x1;}let {appConfigJson:_0x552fa5}=await n({'cwd':_0x57236c,'mode':_0x50d5a1[_0x6bbce0(0xe0)]||w,'appId':_0x1eb6b6,'nextVersion':_0x46a088,'appConfig':_0x11e58c,'outDir':'www','vite2RollupPlugins':[o({'values':{'ZMP_IMPORT_PAGES':()=>p(_0x57236c)}}),i({'warnOnError':!0x0})],'customLogger':{'info':_0x2e4cca[_0x6bbce0(0xc4)],'warn':_0x2e4cca[_0x6bbce0(0xc4)],'warnOnce':_0x2e4cca[_0x6bbce0(0xc4)],'error':_0x2e4cca[_0x6bbce0(0xb5)]}});return _0x552fa5&&u[_0x6bbce0(0xb7)](_0x565833(_0x6bbce0(0xc9)+l[_0x6bbce0(0xda)][_0x6bbce0(0xb6)]),JSON[_0x6bbce0(0xc3)](_0x552fa5)),_0x2e4cca['statusDone'](''+e[_0x6bbce0(0xe2)][_0x6bbce0(0xcc)](_0x6bbce0(0xb9))),_0x552fa5;}catch(_0x1e95c0){_0x2e4cca[_0x6bbce0(0xca)]('Error\x20building\x20project'),s(_0x1e95c0);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';function _0x5a39(){var _0x3e1774=['admin/get-login-status','octet','4746204gPaBNU','https://zmp-api.developers.zalo.me/','5604sPHYZm','admin/request-login','3044502tSrBKi','70667tBSLHG','app-config.json','/.env','ZMP_TOKEN','app/upload-chunk','//h5.zdn.vn/zapps/','APP_ID','22byahnv','cwd','84NDzFqj','7CtaoQj','4807464PvremB','zmp-cli.json','349425YEYhKX','565371oHVQPu','10cOrbmj','exports','44341XUshIR','admin/login'];_0x5a39=function(){return _0x3e1774;};return _0x5a39();}var _0x2cff6f=_0x5a44;(function(_0x3b047b,_0x36106d){var _0x2b9e22=_0x5a44,_0x4d1772=_0x3b047b();while(!![]){try{var _0x1ad2fd=-parseInt(_0x2b9e22(0xf8))/0x1*(-parseInt(_0x2b9e22(0xff))/0x2)+parseInt(_0x2b9e22(0xf7))/0x3+parseInt(_0x2b9e22(0x101))/0x4*(-parseInt(_0x2b9e22(0x105))/0x5)+-parseInt(_0x2b9e22(0xf3))/0x6+parseInt(_0x2b9e22(0x102))/0x7*(-parseInt(_0x2b9e22(0x103))/0x8)+-parseInt(_0x2b9e22(0x106))/0x9*(parseInt(_0x2b9e22(0x107))/0xa)+parseInt(_0x2b9e22(0x109))/0xb*(parseInt(_0x2b9e22(0xf5))/0xc);if(_0x1ad2fd===_0x36106d)break;else _0x4d1772['push'](_0x4d1772['shift']());}catch(_0x5cdbd5){_0x4d1772['push'](_0x4d1772['shift']());}}}(_0x5a39,0xb7a95));function _0x5a44(_0x1519a2,_0x1ca8f9){var _0x5a3901=_0x5a39();return _0x5a44=function(_0x5a442d,_0x397603){_0x5a442d=_0x5a442d-0xf1;var _0x1ba8fa=_0x5a3901[_0x5a442d];return _0x1ba8fa;},_0x5a44(_0x1519a2,_0x1ca8f9);}module[_0x2cff6f(0x108)]={'filename':{'appConfig':_0x2cff6f(0xf9),'zmpConfig':_0x2cff6f(0x104),'packageJson':'package.json'},'api_domain':_0x2cff6f(0xf4),'zdn_url':_0x2cff6f(0xfd),'path':{'login':_0x2cff6f(0x10a),'requestLogin':_0x2cff6f(0xf6),'checkLoginStatus':_0x2cff6f(0xf1),'uploadAppByChunk':_0x2cff6f(0xfc),'requestUploadResumable':'app/request-upload','getAppInfo':'app/get-info','getLatestVersion':'dev-tools/app/get-info'},'dirname':__dirname,'root_env':()=>process[_0x2cff6f(0x100)]()+_0x2cff6f(0xfa),'env':{'appId':_0x2cff6f(0xfe),'token':_0x2cff6f(0xfb)},'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':'Request\x20Timeout'},'resumable_option':{'chunkSize':0x7d000,'simultaneousUploads':0x4,'testChunks':!0x0,'throttleProgressCallbacks':0x1,'method':_0x2cff6f(0xf2),'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 _0x4b1735=_0x2700;function _0x2354(){const _0x2793dc=['Error\x20creating\x20project\x20files','\x0a-\x20🔥\x20Run\x20\x22zmp\x20deploy\x22\x20-\x20deploy\x20mini\x20app\x20for\x20production\x0a-\x20📖\x20Visit\x20instruction\x20at\x20','zmp-cli-core','\x0a-\x20📖\x20Check\x20','https://mini.zalo.me/blog/huong-dan-chuyen-doi-web-app-thanh-zalo-mini-app-trong-30-phut/','\x0a\x20\x20','Next\x20steps:','Creating\x20project\x20files','replace','\x20&&\x20npm\x20install','path','48bUiQBj','newProject','16467yEfAaG','statusDone','382907oxBVBQ','statusStart','bold','\x20in\x20project\x20root\x20folder\x20with\x20further\x20instructions\x0a\x20\x20','321033mxEkvM','https://mini.zalo.me/','Installing\x20NPM\x20Dependencies','text','appConfig','5RwCMAG','filename','\x20💪\x0a\x0a','\x0a-\x20👉\x20Run\x20\x22cd\x20','.env','7DtdwXs','Done!','../config','cwd','folderName','\x0a-\x20📖\x20Visit\x20documentation\x20at\x20','success','join','gray','3618996TCAiPW','exec-sh','4tgeFEV','promise','content','4332984vrzfcC','149998dQXFQg','exports','540HoDoAx','../utils/error','\x20Run\x20\x22npm\x20run\x20','../utils/fs-extra','writeFileSync','Generating\x20app-config.json','2890593zJXUNA','description','log-symbols','./utils/generate-npm-scripts','Error\x20installing\x20NPM\x20Dependencies','info','npm\x20install','statusError'];_0x2354=function(){return _0x2793dc;};return _0x2354();}(function(_0x56406b,_0x4f0fba){const _0x3dce92=_0x2700,_0x4d9b74=_0x56406b();while(!![]){try{const _0x58b645=parseInt(_0x3dce92(0x1f6))/0x1*(-parseInt(_0x3dce92(0x1c9))/0x2)+-parseInt(_0x3dce92(0x1ec))/0x3*(parseInt(_0x3dce92(0x1c5))/0x4)+-parseInt(_0x3dce92(0x1f1))/0x5*(-parseInt(_0x3dce92(0x1ff))/0x6)+parseInt(_0x3dce92(0x1e8))/0x7*(parseInt(_0x3dce92(0x1e4))/0x8)+-parseInt(_0x3dce92(0x1d1))/0x9+parseInt(_0x3dce92(0x1cb))/0xa*(parseInt(_0x3dce92(0x1e6))/0xb)+parseInt(_0x3dce92(0x1c8))/0xc;if(_0x58b645===_0x4f0fba)break;else _0x4d9b74['push'](_0x4d9b74['shift']());}catch(_0x1d0fb0){_0x4d9b74['push'](_0x4d9b74['shift']());}}}(_0x2354,0x6690f));const e=require(_0x4b1735(0x1c4)),t=require(_0x4b1735(0x1e3)),n=require('chalk'),r=require(_0x4b1735(0x1d3)),{initProject:i}=require(_0x4b1735(0x1db)),o=require(_0x4b1735(0x1ce)),{errorExit:s}=require(_0x4b1735(0x1cc)),a=require(_0x4b1735(0x1f8)),c=require('./utils/generate-app-config'),l=require(_0x4b1735(0x1d4)),{renameSync:u,existsSync:p}=require('fs'),d=n[_0x4b1735(0x1fe)]('(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)');async function f(_0x121a9a,_0x125326){const _0xc6c8f8=_0x4b1735;_0x125326[_0xc6c8f8(0x1e9)]('Creating\x20project\x20files');try{let {cwd:_0x3b7e4c,template:_0x8c490,folderName:_0x1d89f4,name:_0x13e830}=_0x121a9a;await i({'cwd':_0x3b7e4c,'template':_0x8c490,'folderName':_0x1d89f4,'projectName':_0x13e830});}catch(_0x502cbb){_0x125326['statusError'](_0xc6c8f8(0x1d9)),s(_0x502cbb);}_0x125326[_0xc6c8f8(0x1e7)](_0xc6c8f8(0x1e0));}async function m(_0x146c55){const _0x5ad005=_0x4b1735;let _0x4a07f5=t['resolve'](_0x146c55[_0x5ad005(0x1f9)],_0x5ad005(0x1f5)),_0x37698b=t['resolve'](_0x146c55[_0x5ad005(0x1f9)],_0x146c55[_0x5ad005(0x1fa)],_0x5ad005(0x1f5));p(_0x4a07f5)&&!p(_0x37698b)&&u(_0x4a07f5,_0x37698b);}async function g(_0x31984e,_0xfe8d4b){const _0xba4f89=_0x4b1735;let {cwd:_0x273dac}=_0x31984e;_0xfe8d4b[_0xba4f89(0x1e9)]('Generating\x20app-config.json');let _0x4cb083=c(_0x31984e);o[_0xba4f89(0x1cf)](t[_0xba4f89(0x1fd)](_0x273dac,a[_0xba4f89(0x1f2)][_0xba4f89(0x1f0)]),_0x4cb083[_0xba4f89(0x1c7)]),_0xfe8d4b['statusDone'](_0xba4f89(0x1d0));}async function $(_0x3b91c7,_0xb85098){const _0x576abd=_0x4b1735;let _0x822369=t[_0x576abd(0x1fd)](_0x3b91c7[_0x576abd(0x1f9)],_0x3b91c7['folderName']);_0xb85098[_0x576abd(0x1e9)]('Installing\x20NPM\x20Dependencies\x20'+d);let _0x492e38=_0x822369===process[_0x576abd(0x1f9)]();try{_0x492e38?await e['promise'](_0x576abd(0x1d7),!0x0):await e[_0x576abd(0x1c6)]('cd\x20'+_0x822369[_0x576abd(0x1e1)](/ /g,'\x5c\x20')+_0x576abd(0x1e2),!0x0);}catch(_0x19ae52){_0xb85098[_0x576abd(0x1d8)](_0x576abd(0x1d5)),s(_0x19ae52);return;}_0xb85098[_0x576abd(0x1e7)](_0x576abd(0x1ee));}async function h(_0x248664,_0x203d37){const _0x41ce79=_0x4b1735;let _0x35befc=l(['s','r'])['map'](_0x29f10c=>'-\x20'+_0x29f10c['icon']+_0x41ce79(0x1cd)+_0x29f10c['name']+'\x22\x20-\x20'+_0x29f10c[_0x41ce79(0x1d2)]),_0x29ddfc='\x0a'+n[_0x41ce79(0x1ea)](r[_0x41ce79(0x1fc)])+'\x20'+n[_0x41ce79(0x1ea)](_0x41ce79(0x1f7))+_0x41ce79(0x1f3)+n[_0x41ce79(0x1ea)](r[_0x41ce79(0x1d6)])+'\x20'+n[_0x41ce79(0x1ea)](_0x41ce79(0x1df))+_0x41ce79(0x1f4)+_0x248664['folderName']+'\x22\x0a'+_0x35befc[_0x41ce79(0x1fd)]('\x0a')+_0x41ce79(0x1fb)+n[_0x41ce79(0x1ea)](_0x41ce79(0x1ed))+_0x41ce79(0x1dc)+n['bold']('README.md')+_0x41ce79(0x1eb);_0x203d37[_0x41ce79(0x1ef)](_0x29ddfc);}function _0x2700(_0x196657,_0x33b8bc){const _0x235403=_0x2354();return _0x2700=function(_0x270041,_0x9e3b15){_0x270041=_0x270041-0x1c4;let _0x2b8f76=_0x235403[_0x270041];return _0x2b8f76;},_0x2700(_0x196657,_0x33b8bc);}async function y(_0x2523df,_0x89977c){const _0x22accf=_0x4b1735;let _0xe0d71a='\x0a'+n[_0x22accf(0x1ea)](r[_0x22accf(0x1fc)])+'\x20'+n[_0x22accf(0x1ea)](_0x22accf(0x1f7))+'\x20💪\x0a\x0a'+n['bold'](r[_0x22accf(0x1d6)])+'\x20'+n[_0x22accf(0x1ea)](_0x22accf(0x1df))+_0x22accf(0x1da)+n[_0x22accf(0x1ea)](_0x22accf(0x1dd))+_0x22accf(0x1de);_0x89977c[_0x22accf(0x1ef)](_0xe0d71a);}module[_0x4b1735(0x1ca)]=async(_0x5a3074={},_0x3ce738)=>{const _0x358c7f=_0x4b1735;for(let _0x10b0bb of(_0x3ce738||(_0x3ce738={'statusStart'(){},'statusDone'(){},'statusError'(){},'text'(){},'error'(){}}),_0x5a3074[_0x358c7f(0x1e5)]?[f,m,$,h]:[g,y]))await _0x10b0bb(_0x5a3074,_0x3ce738);};
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 _0x11a1(_0x16ee6e,_0x1a8440){const _0x197de2=_0x197d();return _0x11a1=function(_0x11a128,_0x3b8d1a){_0x11a128=_0x11a128-0x147;let _0x549ea6=_0x197de2[_0x11a128];return _0x549ea6;},_0x11a1(_0x16ee6e,_0x1a8440);}const _0x1a2ced=_0x11a1;function _0x197d(){const _0x317961=['26113DfjvqO','back','16uyZyiE','#1843EF','11801028axlbhu','857170kpQbBy','20742RDIFfN','5RvHSAr','white','trim','4uXdAmJ','stringify','1031853KhVeaE','exports','1760481BJYvdM','11ROJKYR','49IYxovO','40840bGnqfG'];_0x197d=function(){return _0x317961;};return _0x197d();}(function(_0x2cd110,_0x48b025){const _0x32f32f=_0x11a1,_0x598d03=_0x2cd110();while(!![]){try{const _0x549696=-parseInt(_0x32f32f(0x149))/0x1*(parseInt(_0x32f32f(0x14b))/0x2)+-parseInt(_0x32f32f(0x155))/0x3*(parseInt(_0x32f32f(0x153))/0x4)+parseInt(_0x32f32f(0x150))/0x5*(-parseInt(_0x32f32f(0x14f))/0x6)+-parseInt(_0x32f32f(0x147))/0x7*(-parseInt(_0x32f32f(0x148))/0x8)+-parseInt(_0x32f32f(0x157))/0x9+parseInt(_0x32f32f(0x14e))/0xa*(-parseInt(_0x32f32f(0x158))/0xb)+parseInt(_0x32f32f(0x14d))/0xc;if(_0x549696===_0x48b025)break;else _0x598d03['push'](_0x598d03['shift']());}catch(_0x4c7898){_0x598d03['push'](_0x598d03['shift']());}}}(_0x197d,0x2c50c));module[_0x1a2ced(0x156)]=function(_0x483779){const _0x162735=_0x1a2ced;let {name:_0x27bfff}=_0x483779,_0x4a3dd5={'title':_0x27bfff,'headerTitle':_0x27bfff,'headerColor':_0x162735(0x14c),'textColor':_0x162735(0x151),'leftButton':_0x162735(0x14a),'statusBar':'normal','actionBarHidden':!0x1,'hideAndroidBottomNavigationBar':!0x1,'hideIOSSafeAreaBottom':!0x1};return{'content':JSON[_0x162735(0x154)]({'app':_0x4a3dd5,'listCSS':[],'listSyncJS':[],'listAsyncJS':[]},'',0x2)[_0x162735(0x152)](),'appConfig':_0x4a3dd5};};
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 _0x318593=_0x1e44;(function(_0x3b4e9e,_0xdb2b10){const _0x427a47=_0x1e44,_0x42b033=_0x3b4e9e();while(!![]){try{const _0x331ed5=-parseInt(_0x427a47(0x14b))/0x1+-parseInt(_0x427a47(0x153))/0x2+parseInt(_0x427a47(0x152))/0x3+-parseInt(_0x427a47(0x158))/0x4*(-parseInt(_0x427a47(0x156))/0x5)+parseInt(_0x427a47(0x15b))/0x6*(-parseInt(_0x427a47(0x159))/0x7)+parseInt(_0x427a47(0x14e))/0x8*(parseInt(_0x427a47(0x14f))/0x9)+parseInt(_0x427a47(0x15a))/0xa;if(_0x331ed5===_0xdb2b10)break;else _0x42b033['push'](_0x42b033['shift']());}catch(_0x49dd16){_0x42b033['push'](_0x42b033['shift']());}}}(_0x2fca,0xab4a2));function _0x1e44(_0x31d2cb,_0x8c3ed5){const _0x2fca79=_0x2fca();return _0x1e44=function(_0x1e4466,_0x1cbaa1){_0x1e4466=_0x1e4466-0x14b;let _0x40606f=_0x2fca79[_0x1e4466];return _0x40606f;},_0x1e44(_0x31d2cb,_0x8c3ed5);}const i=require('./npm-scripts');module[_0x318593(0x150)]=(_0x5cf3b6=['s','r'])=>_0x5cf3b6[_0x318593(0x151)](_0x3a2c56=>({'icon':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x15c)],'name':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x14d)],'script':i[_0x318593(0x15d)][_0x3a2c56]['script'],'description':i[_0x318593(0x15d)][_0x3a2c56][_0x318593(0x154)]})),module[_0x318593(0x150)][_0x318593(0x157)]=(_0x344966=['t'])=>_0x344966[_0x318593(0x151)](_0x4176a2=>({'icon':i[_0x318593(0x155)][_0x4176a2][_0x318593(0x15c)],'name':i[_0x318593(0x155)][_0x4176a2]['name'],'script':i['tailwind'][_0x4176a2][_0x318593(0x14c)],'description':i[_0x318593(0x155)][_0x4176a2]['description']}));function _0x2fca(){const _0x3dfd86=['1298890CiTeQe','description','tailwind','53070DOOzQQ','generateTailWindScripts','248POZQte','9051pCeEhG','9341290dOrKfh','5850MOViSL','icon','default','1207974QMcONa','script','name','10249936CqVOVT','9vTyUhu','exports','map','2838771zdtkfn'];_0x2fca=function(){return _0x3dfd86;};return _0x2fca();}
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 _0x5f04fd=_0x24a9;function _0x15cc(){const _0x393314=['App\x20name\x20is\x20required','1405096SzrkbA','New\x20project','Choose\x20a\x20template:','55JLeBOy','28wdSaUY','Existing\x20project','input','Folder\x20name:','zmp-cli-core','Separator','exports','11796705zkAHRQ','toLowerCase','then','14192eslKQs','italic','1201722BqrUsn','replace','filter','ZaUI\x20','prompt','isBlank','inquirer','name','App\x20(project)\x20name:','resolve','740504UFfADL','372108IeHWgJ','35831ijmqvr','map','\x20App','My\x20App','newProject','list'];_0x15cc=function(){return _0x393314;};return _0x15cc();}(function(_0x1203fb,_0x186a06){const _0x470efd=_0x24a9,_0x58f44d=_0x1203fb();while(!![]){try{const _0x351a7c=parseInt(_0x470efd(0x1d8))/0x1*(parseInt(_0x470efd(0x1e3))/0x2)+-parseInt(_0x470efd(0x1cc))/0x3+-parseInt(_0x470efd(0x1d6))/0x4+-parseInt(_0x470efd(0x1e2))/0x5*(parseInt(_0x470efd(0x1d7))/0x6)+-parseInt(_0x470efd(0x1df))/0x7+parseInt(_0x470efd(0x1ca))/0x8+parseInt(_0x470efd(0x1c7))/0x9;if(_0x351a7c===_0x186a06)break;else _0x58f44d['push'](_0x58f44d['shift']());}catch(_0xfaa098){_0x58f44d['push'](_0x58f44d['shift']());}}}(_0x15cc,0x545b7));const e=require(_0x5f04fd(0x1d2)),r=require('chalk'),{INIT_TEMPLATES:a}=require(_0x5f04fd(0x1c4)),t=[{'type':'list','name':_0x5f04fd(0x1dc),'message':'What\x20action\x20you\x20want\x20to\x20do?','choices':[{'name':'Create\x20a\x20new\x20ZMP\x20project','value':!0x0,'short':_0x5f04fd(0x1e0)},{'name':'Using\x20ZMP\x20to\x20deploy\x20only','value':!0x1,'short':_0x5f04fd(0x1c1)}]},{'type':_0x5f04fd(0x1dd),'name':'template','when':_0xdec61f=>_0xdec61f[_0x5f04fd(0x1dc)],'message':_0x5f04fd(0x1e1),'choices':[...a[_0x5f04fd(0x1ce)](_0x37cb40=>_0x37cb40['isBlank'])[_0x5f04fd(0x1d9)](_0x54737c=>({'name':_0x54737c['name'],'value':_0x54737c})),new e[(_0x5f04fd(0x1c5))](),...a[_0x5f04fd(0x1ce)](_0x604dbe=>!_0x604dbe[_0x5f04fd(0x1d1)])['map'](_0x5ceed4=>({'name':_0x5ceed4[_0x5f04fd(0x1d3)],'value':_0x5ceed4}))]},{'type':_0x5f04fd(0x1c2),'name':'name','message':_0x5f04fd(0x1d4),'default':_0x25eadd=>{const _0xcd8fea=_0x5f04fd;let {template:_0x3525b8}=_0x25eadd;return _0x3525b8&&!_0x3525b8[_0xcd8fea(0x1d1)]?'My\x20'+_0x3525b8['name'][_0xcd8fea(0x1cd)](_0xcd8fea(0x1cf),'')+_0xcd8fea(0x1da):_0xcd8fea(0x1db);},'validate':_0xe6202=>new Promise((_0x416d95,_0x17546f)=>{const _0x148646=_0x5f04fd;_0xe6202?_0x416d95(!0x0):_0x17546f(Error(_0x148646(0x1de)));})},{'type':'input','name':'folderName','when':_0xf66122=>_0xf66122[_0x5f04fd(0x1dc)],'message':_0x5f04fd(0x1c3),'suffix':'\x0a'+r[_0x5f04fd(0x1cb)]('(A\x20new\x20folder\x20with\x20this\x20name\x20will\x20be\x20created\x20in\x20the\x20selected\x20directory)'),'default':_0x256e8c=>{const _0x2fdb9a=_0x5f04fd;let {name:_0x3cc013}=_0x256e8c;return _0x3cc013['replace'](/ /g,'-')['replace'](/[^a-zA-Z0-9-]/g,'')[_0x2fdb9a(0x1c8)]();},'validate':_0xe7d97f=>new Promise((_0x2dc675,_0x59791b)=>{_0xe7d97f?_0x2dc675(!0x0):_0x59791b(Error('Folder\x20name\x20is\x20required'));})}];function _0x24a9(_0x2b049a,_0x3ec623){const _0x15cc0d=_0x15cc();return _0x24a9=function(_0x24a9dc,_0x244573){_0x24a9dc=_0x24a9dc-0x1c1;let _0x48b823=_0x15cc0d[_0x24a9dc];return _0x48b823;},_0x24a9(_0x2b049a,_0x3ec623);}module[_0x5f04fd(0x1c6)]=function(){const _0x5ee405=_0x5f04fd;return e[_0x5ee405(0x1d0)](t)[_0x5ee405(0x1c9)](_0x5e49e4=>Promise[_0x5ee405(0x1d5)](_0x5e49e4));};
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';function _0x92c7(){const _0x2f02d5=['httpServer','dev','join','build\x20tailwind\x20css','210759wmxbIt','tailwind','keys','1527794KVtiJY','zmp\x20start','prod','postcss\x20src/css/tailwind.css\x20-o\x20src/css/styles.css','8235608ottTOY','name','2918715nNdgOp','start','default','map','1014678gPZuLT','deploy','33ffXQGS','5011990gviatt','7RToBwk','forEach','6xJygHO','build:css','serve','deploy\x20mini\x20app\x20for\x20production','2458460NBqJTr','split','3qdGWFa','run\x20development\x20server'];_0x92c7=function(){return _0x2f02d5;};return _0x92c7();}const _0x3c7781=_0x1e2f;(function(_0x128924,_0x5e916c){const _0x561d61=_0x1e2f,_0xdcf0b1=_0x128924();while(!![]){try{const _0x3a0fd6=-parseInt(_0x561d61(0xdf))/0x1+-parseInt(_0x561d61(0xe2))/0x2*(parseInt(_0x561d61(0xd9))/0x3)+parseInt(_0x561d61(0xd7))/0x4+-parseInt(_0x561d61(0xe8))/0x5*(-parseInt(_0x561d61(0xd3))/0x6)+-parseInt(_0x561d61(0xd1))/0x7*(parseInt(_0x561d61(0xe6))/0x8)+-parseInt(_0x561d61(0xcd))/0x9+-parseInt(_0x561d61(0xd0))/0xa*(-parseInt(_0x561d61(0xcf))/0xb);if(_0x3a0fd6===_0x5e916c)break;else _0xdcf0b1['push'](_0xdcf0b1['shift']());}catch(_0x347f96){_0xdcf0b1['push'](_0xdcf0b1['shift']());}}}(_0x92c7,0x8ed92));function _0x1e2f(_0x35e3a0,_0x31c039){const _0x92c75e=_0x92c7();return _0x1e2f=function(_0x1e2f55,_0x11d873){_0x1e2f55=_0x1e2f55-0xca;let _0xdbf412=_0x92c75e[_0x1e2f55];return _0xdbf412;},_0x1e2f(_0x35e3a0,_0x31c039);}const e={'d':_0x3c7781(0xdc),'p':_0x3c7781(0xe4),'s':_0x3c7781(0xca),'v':_0x3c7781(0xd5),'r':_0x3c7781(0xce),'t':_0x3c7781(0xd4)};function s(_0x2d5802){const _0x49f2b1=_0x3c7781;return _0x2d5802[_0x49f2b1(0xd8)]('_')[0x0][_0x49f2b1(0xd8)]('')[_0x49f2b1(0xcc)](_0x4811cc=>e[_0x4811cc])[_0x49f2b1(0xdd)]('-');}const t={'default':{'s':{'icon':'🔥','script':_0x3c7781(0xe3),'description':'run\x20development\x20server'},'r':{'icon':'🙏','script':'zmp\x20deploy','description':_0x3c7781(0xd6)}},'httpServer':{'v':{'icon':'🔧','script':'http-server\x20./www/\x20-o\x20-c\x201\x20-a\x20localhost\x20-p\x208080','description':_0x3c7781(0xda)},'s':{'icon':'🔥','script':'npm\x20run\x20serve','description':_0x3c7781(0xda)}},'tailwind':{'t':{'icon':'🔧','script':_0x3c7781(0xe5),'description':_0x3c7781(0xde)}}};Object[_0x3c7781(0xe1)](t[_0x3c7781(0xcb)])[_0x3c7781(0xd2)](_0x4c92ab=>{const _0x472a07=_0x3c7781;t[_0x472a07(0xcb)][_0x4c92ab][_0x472a07(0xe7)]=s(_0x4c92ab);}),Object['keys'](t[_0x3c7781(0xdb)])['forEach'](_0x1d99fe=>{t['httpServer'][_0x1d99fe]['name']=s(_0x1d99fe);}),Object['keys'](t[_0x3c7781(0xe0)])[_0x3c7781(0xd2)](_0x58780e=>{const _0x48fc76=_0x3c7781;t[_0x48fc76(0xe0)][_0x58780e]['name']=s(_0x58780e);}),module['exports']=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';function _0x2941(){const _0x3a482c=['api_domain','token','log-symbols','packageJson','outputDir','www','identifier','nextVersion','title','filename','../config','zmp','Deploy\x20Done!','../utils/error','./utils/upload-app','path','dependencies','2341080NUMnYX','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','listAsyncJS','\x20💪','zip','bold','length','16303086DIFJQP','4409741UIrMZG','green','4bsyfJi','1210791EugmBm','app_config_not_found','874313jkkgep','statusDone','stringify','requestUploadResumable','cwd','exports','appUrl','env','error_msg','zip-local','writeFileSync','appConfig','versionStatus','statusError','text','info','statusStart','../utils/env','generate','1168rPPwZH','Version:','Error\x20deploying\x20your\x20app','./utils/request-upload','compress','Deploying\x20Your\x20App\x20','memory','../utils/fs-extra','includes','chalk','listSyncJS','customProject','entries','desc','2669848HNoxZx','data','14015cCeAhp','../build/index'];_0x2941=function(){return _0x3a482c;};return _0x2941();}function _0x52bc(_0x35dc97,_0x4a3ad4){const _0x29417f=_0x2941();return _0x52bc=function(_0x52bc9f,_0x219869){_0x52bc9f=_0x52bc9f-0x92;let _0x394afe=_0x29417f[_0x52bc9f];return _0x394afe;},_0x52bc(_0x35dc97,_0x4a3ad4);}const _0x12c12c=_0x52bc;(function(_0x1132f8,_0x2b4691){const _0x227ec6=_0x52bc,_0x212821=_0x1132f8();while(!![]){try{const _0x1e7b55=parseInt(_0x227ec6(0xb9))/0x1+-parseInt(_0x227ec6(0xb6))/0x2*(parseInt(_0x227ec6(0xb7))/0x3)+parseInt(_0x227ec6(0xcc))/0x4*(-parseInt(_0x227ec6(0x99))/0x5)+parseInt(_0x227ec6(0xac))/0x6+-parseInt(_0x227ec6(0xb4))/0x7+-parseInt(_0x227ec6(0x97))/0x8+parseInt(_0x227ec6(0xb3))/0x9;if(_0x1e7b55===_0x2b4691)break;else _0x212821['push'](_0x212821['shift']());}catch(_0x27af84){_0x212821['push'](_0x212821['shift']());}}}(_0x2941,0x76cb7));const e=require(_0x12c12c(0x92)),t=require(_0x12c12c(0xaa)),r=require(_0x12c12c(0xc2)),i=require(_0x12c12c(0x9d)),a=require('qrcode-terminal'),s=require(_0x12c12c(0xa5)),n=require(_0x12c12c(0x9a)),o=require(_0x12c12c(0xca)),{errorExit:l}=require(_0x12c12c(0xa8)),p=require(_0x12c12c(0xa9)),u=require(_0x12c12c(0xd3)),c=require(_0x12c12c(0xcf)),d=e['gray'](_0x12c12c(0xad)),f={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}};module[_0x12c12c(0xbe)]=async(_0x5c2e74={},_0x4e82f3=f)=>{const _0x20a762=_0x12c12c;let _0x50ec83,_0x2676c1,_0x37df96,_0x14f992=_0x5c2e74[_0x20a762(0xbd)]||process[_0x20a762(0xbd)](),_0x5cf974=_0x5c2e74[_0x20a762(0x9f)]||_0x20a762(0xa0),_0x480c8f=s[_0x20a762(0x9b)],_0x843973=_0x5bbe37=>t['join'](_0x14f992,_0x5bbe37),_0x3c19a=o['getEnv'](s[_0x20a762(0xc0)][_0x20a762(0x9c)]),_0x7cf839=s['filename']['appConfig'],_0x428c75=s[_0x20a762(0xa4)][_0x20a762(0x9e)],_0x2d3741=!0x0;try{_0x50ec83=require(_0x843973(_0x7cf839));}catch(_0x454bcc){try{_0x50ec83=require(_0x843973(_0x5cf974+'/'+_0x7cf839)),_0x2d3741=!0x1;}catch(_0x286196){l(Error(s[_0x20a762(0xc1)][_0x20a762(0xb8)]));}}let _0x3d6381={};try{let _0xbcb172=require(_0x843973(_0x428c75))[_0x20a762(0xab)];Object[_0x20a762(0x95)](_0xbcb172)['forEach'](([_0x612702,_0x2a4434])=>{const _0x76f59f=_0x20a762;(_0x612702[_0x76f59f(0xd4)](_0x76f59f(0xa6))||_0x612702['includes']('react'))&&(_0x3d6381[_0x612702]=_0x2a4434);});}catch(_0x187873){}let _0xd63683={'appName':_0x50ec83['app'][_0x20a762(0xa3)],'appDesc':_0x5c2e74[_0x20a762(0x96)]||'Update\x20app\x20with\x20new\x20version','appConfig':JSON['stringify'](_0x50ec83),'frameworkVersions':JSON[_0x20a762(0xbb)](_0x3d6381)};try{let _0x5400bb=''+_0x480c8f+s['path'][_0x20a762(0xbc)],_0x22d78f=await c(_0x5400bb,_0xd63683,_0x5c2e74[_0x20a762(0xc5)],_0x3c19a);_0x2676c1=_0x22d78f[_0x20a762(0xa2)],_0x37df96=_0x22d78f[_0x20a762(0xa1)];}catch(_0x40cae9){l(_0x40cae9);}if(_0x5c2e74[_0x20a762(0x94)]){let _0x64d882=0x0;_0x50ec83['listSyncJS']&&_0x50ec83[_0x20a762(0x93)]['length']>0x0&&(_0x64d882+=0x1),_0x50ec83[_0x20a762(0xae)]&&_0x50ec83[_0x20a762(0xae)][_0x20a762(0xb2)]>0x0&&(_0x64d882+=0x1),0x0===_0x64d882&&l(Error('Please\x20define\x20your\x20assets\x20output\x20at\x20app-config.json.\x20Read\x20more:\x20https://mini.zalo.me/intro/getting-started/app-config/')),_0x2d3741&&u[_0x20a762(0xc3)](_0x843973(_0x5cf974+'/'+s[_0x20a762(0xa4)][_0x20a762(0xc4)]),JSON[_0x20a762(0xbb)](_0x50ec83));}else _0x50ec83=await n({..._0x5c2e74,'appConfigJson':_0x50ec83,'nextVersion':_0x2676c1},_0x4e82f3);_0x4e82f3[_0x20a762(0xc9)](_0x20a762(0xd1)+d);try{let _0x35dc2c=await new Promise((_0xd78a94,_0x3a25a5)=>{const _0x5cdf04=_0x20a762;r[_0x5cdf04(0xb0)](_0x843973(_0x5cf974),function(_0x328174,_0x2294aa){const _0x4abc2b=_0x5cdf04;return _0x328174?_0x3a25a5(_0x328174):(_0x2294aa[_0x4abc2b(0xd0)](),_0xd78a94(_0x2294aa[_0x4abc2b(0xd2)]()));});}),_0x13f6f7={..._0xd63683,'appBuffer':_0x35dc2c,'identifier':_0x37df96},_0x6c40bf=await p(_0x13f6f7,_0x5c2e74,_0x4e82f3),_0x1b36fa=_0x6c40bf&&_0x6c40bf[_0x20a762(0x98)]&&_0x6c40bf[_0x20a762(0x98)][_0x20a762(0xbf)];a[_0x20a762(0xcb)](_0x1b36fa,{'small':!0x0},function(_0x1b9e3b){const _0x6078a7=_0x20a762;let _0x49058f=''+e['bold'](i[_0x6078a7(0xc8)]+'\x20View\x20app\x20at:\x0a'+_0x1b9e3b);_0x4e82f3[_0x6078a7(0xba)](e[_0x6078a7(0xb1)][_0x6078a7(0xb5)](_0x6078a7(0xa7))+_0x6078a7(0xaf)),_0x4e82f3['statusDone'](e[_0x6078a7(0xb1)][_0x6078a7(0xb5)](_0x6078a7(0xcd))+'\x20'+_0x2676c1),_0x4e82f3[_0x6078a7(0xc7)](_0x49058f);});}catch(_0x50494e){_0x4e82f3[_0x20a762(0xc6)](_0x20a762(0xce)),l(_0x50494e);}};
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';function _0x5cc4(){const _0x26fcd8=['customProject','3208412qBWTkv','Deploy\x20your\x20existing\x20project','144pqVuyc','443634HNeaYz','length','www','5546380UypHdQ','map','outputDir','list','input','../../utils/constants','Where\x20is\x20your\x20dist\x20folder?','Quit','versionStatus','keys','Server\x20type\x20is\x20required!','Description:','inquirer','This\x20is\x20not\x20a\x20ZMP\x20Project,\x20do\x20you\x20want\x20to\x20continue?','quit','1418541dYmZMu','lodash','2588910LnCDFW','6zFcLSI','2WnVFmO','228465vjfkEH','11217440CmpZqf'];_0x5cc4=function(){return _0x26fcd8;};return _0x5cc4();}const _0x51bfa9=_0x1263;(function(_0x226955,_0x4dca65){const _0x263083=_0x1263,_0x51fb4e=_0x226955();while(!![]){try{const _0x3bdd4f=parseInt(_0x263083(0x19d))/0x1+parseInt(_0x263083(0x196))/0x2*(parseInt(_0x263083(0x192))/0x3)+-parseInt(_0x263083(0x19a))/0x4+parseInt(_0x263083(0x194))/0x5*(parseInt(_0x263083(0x195))/0x6)+-parseInt(_0x263083(0x1a0))/0x7+parseInt(_0x263083(0x19c))/0x8*(-parseInt(_0x263083(0x197))/0x9)+parseInt(_0x263083(0x198))/0xa;if(_0x3bdd4f===_0x4dca65)break;else _0x51fb4e['push'](_0x51fb4e['shift']());}catch(_0x156937){_0x51fb4e['push'](_0x51fb4e['shift']());}}}(_0x5cc4,0x7b33a));const e=require(_0x51bfa9(0x18f)),{versionStatus:t}=require(_0x51bfa9(0x1a5)),i=require(_0x51bfa9(0x193)),r=[{'type':'list','name':_0x51bfa9(0x1a8),'message':'What\x20version\x20status\x20are\x20you\x20deploying?','choices':Object[_0x51bfa9(0x18c)](t)[_0x51bfa9(0x1a1)](_0x5c97ad=>({'name':i['capitalize'](_0x5c97ad),'value':t[_0x5c97ad]})),'when':_0x367e27=>!_0x367e27[_0x51bfa9(0x191)],'validate':_0x226bae=>new Promise((_0x6c129b,_0x2328a8)=>{const _0x12a009=_0x51bfa9;_0x226bae&&_0x226bae['length']?_0x6c129b(!0x0):_0x2328a8(Error(_0x12a009(0x18d)));})},{'type':_0x51bfa9(0x1a4),'name':'desc','message':_0x51bfa9(0x18e),'when':_0x43bece=>!_0x43bece[_0x51bfa9(0x191)],'validate':_0x38e1dd=>new Promise((_0x382288,_0x1b1e22)=>{const _0x5e53e3=_0x51bfa9;_0x38e1dd&&_0x38e1dd[_0x5e53e3(0x19e)]?_0x382288(!0x0):_0x1b1e22(Error('Description\x20is\x20required!'));})}],s=[{'type':_0x51bfa9(0x1a3),'name':_0x51bfa9(0x191),'message':_0x51bfa9(0x190),'choices':[{'name':_0x51bfa9(0x19b),'value':!0x1},{'name':_0x51bfa9(0x1a7),'value':!0x0}]},{'type':'input','name':_0x51bfa9(0x1a2),'message':_0x51bfa9(0x1a6),'when':_0x337775=>!_0x337775[_0x51bfa9(0x191)],'default':_0x51bfa9(0x19f)}];function _0x1263(_0x42de25,_0x5549b2){const _0x5cc4ed=_0x5cc4();return _0x1263=function(_0x12632c,_0x1a65e1){_0x12632c=_0x12632c-0x18c;let _0x2886b8=_0x5cc4ed[_0x12632c];return _0x2886b8;},_0x1263(_0x42de25,_0x5549b2);}module['exports']=async function(_0x464d36){const _0x1d0d4c=_0x51bfa9;let _0x5ad258=_0x464d36?[...r]:[...s,...r];return e['prompt'](_0x5ad258)['then'](_0x5d9415=>(_0x5d9415[_0x1d0d4c(0x199)]=!0x1,!0x1===_0x5d9415[_0x1d0d4c(0x191)]&&(_0x5d9415['customProject']=!0x0),Promise['resolve'](_0x5d9415)));};
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';function _0x5773(_0x30692e,_0x4783bf){const _0x461bcc=_0x461b();return _0x5773=function(_0x57736d,_0x848cf1){_0x57736d=_0x57736d-0x142;let _0x2f6207=_0x461bcc[_0x57736d];return _0x2f6207;},_0x5773(_0x30692e,_0x4783bf);}const _0x35290a=_0x5773;(function(_0xcc95d9,_0x1e0175){const _0x5c5024=_0x5773,_0x5deb17=_0xcc95d9();while(!![]){try{const _0x26f96f=-parseInt(_0x5c5024(0x147))/0x1+-parseInt(_0x5c5024(0x149))/0x2+-parseInt(_0x5c5024(0x144))/0x3+-parseInt(_0x5c5024(0x153))/0x4+-parseInt(_0x5c5024(0x14a))/0x5+-parseInt(_0x5c5024(0x14e))/0x6*(parseInt(_0x5c5024(0x151))/0x7)+-parseInt(_0x5c5024(0x145))/0x8*(-parseInt(_0x5c5024(0x152))/0x9);if(_0x26f96f===_0x1e0175)break;else _0x5deb17['push'](_0x5deb17['shift']());}catch(_0xcaf5d7){_0x5deb17['push'](_0x5deb17['shift']());}}}(_0x461b,0xab3ac));function _0x461b(){const _0x17217a=['1152239HuGlvQ','permission_denied','1309678npKpYB','2600670VGWgPd','get','../../config','err','6wLSXKL','../../utils/axios','no-cache','6509279bqcJRP','81WeOriU','1274512sQWSBe','error_msg','data','4179612arTDOw','5040264VfxgOo','error_code'];_0x461b=function(){return _0x17217a;};return _0x461b();}const {axiosClient:r}=require(_0x35290a(0x14f)),e=require(_0x35290a(0x14c)),i=async(_0x1f43ae,_0x35d192,_0x1cfb51,_0x215274)=>{const _0x33dc1e=_0x35290a;let {appName:_0x6b7b83,appDesc:_0x5c4de0,appConfig:_0x301d02,frameworkVersions:_0x418cc0}=_0x35d192,_0x2daffe={'Authorization':'Bearer\x20'+_0x215274,'cache-control':_0x33dc1e(0x150)},_0x4ce129=(await r[_0x33dc1e(0x14b)](_0x1f43ae,{'params':{'name':_0x6b7b83,'desc':_0x5c4de0,'config':_0x301d02,'versionStatus':_0x1cfb51,'frameworkVersions':_0x418cc0},'headers':_0x2daffe,'withCredentials':!0x0}))[_0x33dc1e(0x143)];if(!_0x4ce129||_0x4ce129[_0x33dc1e(0x14d)]<0x0){if(_0x4ce129&&_0x4ce129[_0x33dc1e(0x14d)]===e[_0x33dc1e(0x146)][_0x33dc1e(0x148)])throw Error(e[_0x33dc1e(0x142)]['permission_denied']);throw Error(JSON['stringify'](_0x4ce129));}return _0x4ce129[_0x33dc1e(0x143)];};module['exports']=i;
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 _0x45ee85=_0x7e67;function _0x7e67(_0x5c610f,_0x3f10dc){const _0x32cf06=_0x32cf();return _0x7e67=function(_0x7e673d,_0x4bcd11){_0x7e673d=_0x7e673d-0x1e0;let _0x41821c=_0x32cf06[_0x7e673d];return _0x41821c;},_0x7e67(_0x5c610f,_0x3f10dc);}(function(_0x364d83,_0x36905f){const _0x5e1265=_0x7e67,_0x472325=_0x364d83();while(!![]){try{const _0x3bea06=-parseInt(_0x5e1265(0x1fa))/0x1+-parseInt(_0x5e1265(0x205))/0x2+parseInt(_0x5e1265(0x200))/0x3+parseInt(_0x5e1265(0x1ff))/0x4*(parseInt(_0x5e1265(0x1e5))/0x5)+-parseInt(_0x5e1265(0x1e3))/0x6+parseInt(_0x5e1265(0x1ea))/0x7*(-parseInt(_0x5e1265(0x1f7))/0x8)+-parseInt(_0x5e1265(0x202))/0x9*(-parseInt(_0x5e1265(0x1e0))/0xa);if(_0x3bea06===_0x36905f)break;else _0x472325['push'](_0x472325['shift']());}catch(_0x40e271){_0x472325['push'](_0x472325['shift']());}}}(_0x32cf,0x522a0));const r=require('../../utils/resumable'),e=require(_0x45ee85(0x1e8)),n=require('../../config'),o=require('../../utils/env'),t=require(_0x45ee85(0x1eb))[_0x45ee85(0x1e7)],a=require('form-data'),u=require(_0x45ee85(0x1e2));function _0x32cf(){const _0x3fcf59=['1303728kQLhvp','desc','9MHeHFM','getEnv','join','335534VvUQMW','Bearer\x20','Does\x20not\x20support\x20upload\x20app','7142930QbVjle','gray','lodash','2407146zjIuzs','token','85DKdcpN','addFile','File','chalk','zipFile','14QvkwsW','file-api','config','env','parse','err','statusError','append','statusText','progress','Error\x20upload\x20app:\x20','name','fileSuccess','1736320JjoSVM','cancel','round','365306LhYAvy','api_domain','fileError','support','fileAdded','130828XcQsPq'];_0x32cf=function(){return _0x3fcf59;};return _0x32cf();}module['exports']=async function(_0x1ccc79,_0xda36b,_0x590915){const _0x585fc6=_0x45ee85;let _0x5132ff=n[_0x585fc6(0x1fb)],_0x189916=''+_0x5132ff+n['path']['uploadAppByChunk'],{appName:_0x4135b9,appDesc:_0xcda67c,appBuffer:_0x38bd19,appConfig:_0xbf53ca,identifier:_0x440b2e}=_0x1ccc79,_0x1f5da9=o[_0x585fc6(0x203)](n[_0x585fc6(0x1ed)][_0x585fc6(0x1e4)]),_0x46d134=new r({...n['resumable_option'],'target':_0x189916,'headers':{'Authorization':_0x585fc6(0x206)+_0x1f5da9},'generateUniqueIdentifier':()=>_0x440b2e}),_0x263e77=new a();if(_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x1e9),_0x38bd19),_0x263e77['append'](_0x585fc6(0x1f5),_0x4135b9),_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x201),_0xcda67c),_0x263e77[_0x585fc6(0x1f1)](_0x585fc6(0x1ec),_0xbf53ca),_0x46d134[_0x585fc6(0x1fd)])return _0x46d134['on']('fileProgress',function(_0x2ca552){const _0x1a7756=_0x585fc6;let _0x22e18f=Array(Math[_0x1a7756(0x1f9)](0x64*_0x2ca552[_0x1a7756(0x1f3)]())%0x65+0x1)[_0x1a7756(0x204)]('|');_0x590915[_0x1a7756(0x1f2)]('Deploying\x20Your\x20App\x20'+e[_0x1a7756(0x1e1)]('\x0a'+_0x22e18f+'\x20'+Math[_0x1a7756(0x1f9)](0x64*_0x2ca552[_0x1a7756(0x1f3)]())+'%'));}),await new Promise((_0x45a297,_0x41f567)=>{const _0x3772f3=_0x585fc6;try{var _0x1ea939=new t({'name':'www.zip','buffer':_0x38bd19});_0x46d134['on'](_0x3772f3(0x1fe),function(){_0x46d134['upload']();}),_0x46d134['on']('complete',function(){return _0x45a297();}),_0x46d134['on'](_0x3772f3(0x1fc),function(_0x910515,_0x3d06c8){return _0x41f567(Error('Error\x20upload\x20app:\x20'+_0x3d06c8));}),_0x46d134['on'](_0x3772f3(0x1f8),function(){return _0x41f567(Error('Error\x20upload\x20app:\x20cancel'));}),_0x46d134['on'](_0x3772f3(0x1f6),function(_0x14ade8,_0x434eb6){const _0x273793=_0x3772f3;let _0x3fa76f=JSON[_0x273793(0x1ee)](_0x434eb6);return u['isNumber'](_0x3fa76f[_0x273793(0x1ef)])&&_0x3fa76f[_0x273793(0x1ef)]<0x0?_0x41f567(Error(_0x273793(0x1f4)+_0x434eb6)):_0x45a297(_0x3fa76f);}),_0x46d134[_0x3772f3(0x1e6)](_0x1ea939);}catch(_0x4f838a){return _0x41f567(_0x4f838a);}});_0x590915[_0x585fc6(0x1f0)](_0x585fc6(0x207));};
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 _0x2728(){const _0x13e431=['./build/index','includes','chalk','-M,\x20--mode\x20<m>','testing','.local','version','6565603qPZGHy','full','exit','resolve','2ZXYDkT','text','log-symbols','Version:\x20','4933608bTdSbI','command:*','7610dpyZpm','passive','Version\x20description','Specify\x20server\x20port.\x20By\x20default\x20it\x20is\x203000','./config','2259chhZxc','action','Specify\x20server\x20hostname.\x20By\x20default\x20it\x20is\x20os.hostname','ZMP\x20CLI','command','port','iosHostName','-r,\x20--root-element\x20<selector>','mode','TESTING','-t,\x20--testing','./utils/fs-extra','3zwlQUp','Run\x20on\x20ios','--skipUpdate','-e,\x20--existing','Device\x20mode','Skip\x20checking\x20for\x20update\x20of\x20zmp-cli','description','writeFileSync','./migrate/index','\x0a\x20Unknown\x20command\x20','existing','Login\x20ZMP','Build\x20a\x20ZMP\x20project','-o,\x20--outputDir\x20<output>','./utils/constants','./deploy/index','usage','ios','log','Deploy\x20testing\x20version','Passive\x20mode\x20(non-interactive)','-Z,\x20--zalo-app','parse','code','./utils/log','<command>\x20[options]','-iosH,\x20--ios-host-name\x20<n>','467846gPagIy','./utils/check-update','956435BQPuer','-nF,\x20--no-frame','cwd','-D,\x20--device','490476rkuvPD','quit','versionStatus','./utils/get-current-project','cyan','./utils/spinner','./login/index','./login/utils/get-options','customProject','Env\x20mode','Deploy\x20a\x20ZMP\x20project','Preview\x20on\x20Zalo','NW.js\x20module\x20is\x20not\x20found.\x20Please\x20run\x20\x22npm\x20install\x20-g\x20nw@sdk\x22','error','args','option','clear','hostname','login','existsSync','sync-config\x20<source>','textSync','1742612dJArLu','14LLkUoO','-ios,\x20--ios','frame','done','init','build','migrate','\x20This\x20is\x20not\x20ZMP\x20project'];_0x2728=function(){return _0x13e431;};return _0x2728();}const _0x40da9d=_0x507f;function _0x507f(_0x1f09dd,_0x534d0c){const _0x2728be=_0x2728();return _0x507f=function(_0x507f87,_0x52e313){_0x507f87=_0x507f87-0x1f2;let _0x4dcefa=_0x2728be[_0x507f87];return _0x4dcefa;},_0x507f(_0x1f09dd,_0x534d0c);}(function(_0x3ad21d,_0x5e24b4){const _0x420520=_0x507f,_0x48d2cd=_0x3ad21d();while(!![]){try{const _0x6596aa=-parseInt(_0x420520(0x237))/0x1*(parseInt(_0x420520(0x205))/0x2)+-parseInt(_0x420520(0x21c))/0x3*(-parseInt(_0x420520(0x253))/0x4)+parseInt(_0x420520(0x239))/0x5+parseInt(_0x420520(0x23d))/0x6*(parseInt(_0x420520(0x1f2))/0x7)+-parseInt(_0x420520(0x209))/0x8+-parseInt(_0x420520(0x210))/0x9*(-parseInt(_0x420520(0x20b))/0xa)+parseInt(_0x420520(0x201))/0xb;if(_0x6596aa===_0x5e24b4)break;else _0x48d2cd['push'](_0x48d2cd['shift']());}catch(_0xfe04de){_0x48d2cd['push'](_0x48d2cd['shift']());}}}(_0x2728,0x788c9));const e=require(_0x40da9d(0x1fc)),o=require(_0x40da9d(0x24d)),t=require('figlet'),i=require('commander'),s=require(_0x40da9d(0x207)),r=require(_0x40da9d(0x21b)),n=require(_0x40da9d(0x238)),a=require(_0x40da9d(0x242)),c=require(_0x40da9d(0x234)),p=require(_0x40da9d(0x240)),u=require('./create/utils/get-options'),l=require(_0x40da9d(0x244)),d=require('./deploy/utils/get-options'),m=require('./migrate/utils/get-options'),g=require(_0x40da9d(0x243)),x=require('./create/index'),y=require('./start/index'),w=require(_0x40da9d(0x1fa)),v=require(_0x40da9d(0x22b)),f=require('./sync/index'),q=require(_0x40da9d(0x224)),h=require('os'),M=require('./package.json'),P=require(_0x40da9d(0x20f)),{versionStatus:j}=require(_0x40da9d(0x22a)),Z=process[_0x40da9d(0x23b)](),S={'statusStart':_0x207142=>a['start'](_0x207142),'statusDone':_0x1a4719=>a[_0x40da9d(0x1f5)](_0x1a4719),'statusText':_0x332146=>a['text'](_0x332146),'statusError':_0x4a8bcb=>a[_0x40da9d(0x24a)](_0x4a8bcb),'text':_0x2490d1=>c[_0x40da9d(0x206)](_0x2490d1),'error':_0x2fd6c9=>c[_0x40da9d(0x24a)](_0x2fd6c9),'showOnUI':()=>{}};o(),r[_0x40da9d(0x250)](P['root_env']())||r[_0x40da9d(0x223)](P['root_env']()),console[_0x40da9d(0x22e)](e['cyan'](t[_0x40da9d(0x252)](_0x40da9d(0x213),{'horizontalLayout':'full','verticalLayout':_0x40da9d(0x202)})),e[_0x40da9d(0x241)](_0x40da9d(0x208)+M[_0x40da9d(0x200)]+'\x0a')),i[_0x40da9d(0x200)](M[_0x40da9d(0x200)])[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f6))[_0x40da9d(0x24c)](_0x40da9d(0x21e),_0x40da9d(0x221))[_0x40da9d(0x222)]('Init\x20ZMP\x20project')[_0x40da9d(0x211)](async _0xdbd13c=>{const _0x4db694=_0x40da9d;_0xdbd13c['skipUpdate']||await n();let _0x327750=await l();await g({'cwd':Z,..._0x327750},S);let _0x568435=await u();await x({'cwd':Z,..._0x568435},S),process[_0x4db694(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)](_0x40da9d(0x24f))['description'](_0x40da9d(0x227))['action'](async()=>{let _0x302241=await l();await g({'cwd':Z,..._0x302241},S),process['exit'](0x0);}),i[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)]('start')[_0x40da9d(0x24c)](_0x40da9d(0x236),_0x40da9d(0x212))['option']('-P,\x20--port\x20<n>',_0x40da9d(0x20e),parseInt)[_0x40da9d(0x24c)](_0x40da9d(0x231),_0x40da9d(0x248))[_0x40da9d(0x24c)](_0x40da9d(0x1f3),_0x40da9d(0x21d))[_0x40da9d(0x24c)](_0x40da9d(0x23a),'Run\x20without\x20Zalo\x20frame')[_0x40da9d(0x24c)](_0x40da9d(0x23c),_0x40da9d(0x220))[_0x40da9d(0x24c)](_0x40da9d(0x1fd),_0x40da9d(0x246))['description']('Start\x20a\x20ZMP\x20project')[_0x40da9d(0x211)](async _0x5e6e9c=>{const _0x181880=_0x40da9d;if(p(Z)||(c[_0x181880(0x206)](s[_0x181880(0x24a)]+_0x181880(0x1f9)),process[_0x181880(0x203)](0x1)),_0x5e6e9c&&_0x5e6e9c['showMobileUi'])try{console[_0x181880(0x22e)](require[_0x181880(0x204)]('nw'));}catch(_0x3d5f3f){console[_0x181880(0x24a)](_0x181880(0x249)),process['exit'](_0x3d5f3f[_0x181880(0x233)]);}let _0x3a5434=h[_0x181880(0x24e)]();_0x3a5434[_0x181880(0x1fb)](_0x181880(0x1ff))||(_0x3a5434=_0x3a5434+_0x181880(0x1ff)),await y({'cwd':Z,'port':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x215)]||0xbb8,'iosHostName':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x216)]||_0x3a5434,'showMobileUI':_0x5e6e9c&&_0x5e6e9c['showMobileUi']||!0x1,'previewOnZalo':_0x5e6e9c&&_0x5e6e9c['zaloApp']||!0x1,'ios':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x22d)]||!0x1,'mode':_0x5e6e9c&&_0x5e6e9c[_0x181880(0x218)],'frame':!!_0x5e6e9c&&(void 0x0===_0x5e6e9c[_0x181880(0x1f4)]||null===_0x5e6e9c['frame'])||_0x5e6e9c[_0x181880(0x1f4)],'deviceMode':_0x5e6e9c&&_0x5e6e9c['device']||!0x1},S),process[_0x181880(0x203)](0x0);}),i[_0x40da9d(0x22c)]('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f7))[_0x40da9d(0x24c)](_0x40da9d(0x1fd),_0x40da9d(0x246))[_0x40da9d(0x222)](_0x40da9d(0x228))[_0x40da9d(0x211)](async _0x1380f5=>{const _0x25e2b5=_0x40da9d;p(Z)||(c[_0x25e2b5(0x206)](s['error']+'\x20This\x20is\x20not\x20ZMP\x20project'),process[_0x25e2b5(0x203)](0x1)),await w({'cwd':Z,'mode':_0x1380f5&&_0x1380f5[_0x25e2b5(0x218)]},S),process[_0x25e2b5(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)]('deploy')[_0x40da9d(0x24c)](_0x40da9d(0x1fd),'Env\x20mode')[_0x40da9d(0x24c)]('-p,\x20--passive',_0x40da9d(0x230))[_0x40da9d(0x24c)](_0x40da9d(0x21f),'Deploy\x20existing\x20project')[_0x40da9d(0x24c)](_0x40da9d(0x21a),_0x40da9d(0x22f))[_0x40da9d(0x24c)]('-m,\x20--desc\x20<message>',_0x40da9d(0x20d))['option'](_0x40da9d(0x229),'Output\x20folder.\x20Default\x20www')[_0x40da9d(0x24c)]('-P,\x20--port\x20<n>','Specify\x20UI\x20server\x20port.\x20By\x20default\x20it\x20is\x203001',parseInt)[_0x40da9d(0x222)](_0x40da9d(0x247))[_0x40da9d(0x211)](async _0x12edb4=>{const _0x1673fb=_0x40da9d;let _0x1ac358=p(Z),_0x365931=_0x12edb4;_0x12edb4[_0x1673fb(0x226)]?_0x365931[_0x1673fb(0x245)]=!0x0:_0x12edb4[_0x1673fb(0x20c)]||(_0x365931=await d(_0x1ac358)),_0x12edb4[_0x1673fb(0x1fe)]&&(_0x365931[_0x1673fb(0x23f)]=j[_0x1673fb(0x219)]),_0x365931[_0x1673fb(0x23e)]&&process[_0x1673fb(0x203)](0x1),await v({'cwd':Z,'mode':_0x12edb4&&_0x12edb4['mode'],..._0x365931},S),process[_0x1673fb(0x203)](0x0);}),i[_0x40da9d(0x22c)](_0x40da9d(0x235))[_0x40da9d(0x214)](_0x40da9d(0x251))[_0x40da9d(0x24c)](_0x40da9d(0x217),'Custom\x20entry\x20point,\x20default\x20is\x20#app')[_0x40da9d(0x222)]('Automatically\x20update\x20app-config.json\x20resources\x20list\x20based\x20on\x20index.html')[_0x40da9d(0x211)](async(_0x56a172,_0xcb9c6f)=>{const _0x577b98=_0x40da9d;await f({'source':_0x56a172,..._0xcb9c6f},S),process[_0x577b98(0x203)](0x0);}),i['usage']('<command>\x20[options]')[_0x40da9d(0x214)](_0x40da9d(0x1f8))['action'](async function(){const _0x4f4159=_0x40da9d;let _0x5a66d=p(Z);_0x5a66d||(S[_0x4f4159(0x206)](s[_0x4f4159(0x24a)]+_0x4f4159(0x1f9)),process['exit'](0x1));let _0x456a0f=await m();await q({'cwd':Z,..._0x456a0f,..._0x5a66d},S),process[_0x4f4159(0x203)](0x0);}),i['on'](_0x40da9d(0x20a),_0x495dc6=>{const _0x245973=_0x40da9d;i['outputHelp'](),c[_0x245973(0x206)](_0x245973(0x225)+_0x495dc6);}),i[_0x40da9d(0x232)](process['argv']),i[_0x40da9d(0x24b)]['length']||i['outputHelp']();
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';const _0x2a4150=_0x4c68;function _0x5735(){const _0x1c81d7=['12BuInct','text','bold','err','info','Login\x20failed!','Login...','../config','17783pExjvN','7pVICCn','request_timeout','jwt','statusDone','6SofLld','catch','767300gKHSuO','jsonwebtoken','statusError','Token\x20Invalid!','stringify','setEnv','error_msg','env','statusStart','1143CDCUUF','data','token','appId','./utils/zalo-login','Scan\x20the\x20QR\x20code\x20with\x20Zalo\x20app:\x0a','1877768jepWwp','3749328JYZVUJ','stop','checkStatus','then','../utils/env','log-symbols','POST','chalk','qrcode-terminal','../utils/log','loginUrl','zmpsk','ora','permission_denied','687759pdVNvf','2asewnX','1183555ZDzpvB','decode','Login\x20Success!','error_code','getQRCode','loginMethod','msg','20930hvjzAC','getEnv'];_0x5735=function(){return _0x1c81d7;};return _0x5735();}function _0x4c68(_0x1f454b,_0x65751a){const _0x5735ea=_0x5735();return _0x4c68=function(_0x4c6846,_0x5f35aa){_0x4c6846=_0x4c6846-0xad;let _0x396a01=_0x5735ea[_0x4c6846];return _0x396a01;},_0x4c68(_0x1f454b,_0x65751a);}(function(_0x51dbd8,_0x528ad4){const _0x1c1377=_0x4c68,_0x2a54b1=_0x51dbd8();while(!![]){try{const _0x11e6d7=-parseInt(_0x1c1377(0xe1))/0x1*(-parseInt(_0x1c1377(0xcf))/0x2)+-parseInt(_0x1c1377(0xce))/0x3+-parseInt(_0x1c1377(0xb0))/0x4+parseInt(_0x1c1377(0xd0))/0x5*(parseInt(_0x1c1377(0xae))/0x6)+parseInt(_0x1c1377(0xe2))/0x7*(-parseInt(_0x1c1377(0xbf))/0x8)+-parseInt(_0x1c1377(0xb9))/0x9*(-parseInt(_0x1c1377(0xd7))/0xa)+parseInt(_0x1c1377(0xc0))/0xb*(parseInt(_0x1c1377(0xd9))/0xc);if(_0x11e6d7===_0x528ad4)break;else _0x2a54b1['push'](_0x2a54b1['shift']());}catch(_0xb3e004){_0x2a54b1['push'](_0x2a54b1['shift']());}}}(_0x5735,0x3222a));const e=require(_0x2a4150(0xc7)),t=require(_0x2a4150(0xcc)),r=require(_0x2a4150(0xb1)),a=require(_0x2a4150(0xc8)),n=require(_0x2a4150(0xc5)),o=require(_0x2a4150(0xe0)),s=require(_0x2a4150(0xc4)),i=require(_0x2a4150(0xc9)),u=require(_0x2a4150(0xbd)),{axiosClient:l}=require('../utils/axios'),c=require('qs'),d=e['gray'](_0x2a4150(0xdf)),p=t(d);module['exports']=async(_0x291d8f={},_0x2ace73)=>{const _0x5ba493=_0x2a4150;let _0x2e2132;_0x2ace73||(_0x2ace73={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){}}),_0x2ace73[_0x5ba493(0xb8)](d),p['start']();let _0x2e860b=_0x291d8f[_0x5ba493(0xd5)],_0x795acc=_0x291d8f['appId']||s[_0x5ba493(0xd8)](o[_0x5ba493(0xb7)][_0x5ba493(0xbc)]),_0x450889=_0x291d8f[_0x5ba493(0xbb)],_0xf65beb=''+o['api_domain']+o['path']['login'];try{if(p['start'](),'zalo'===_0x2e860b){let _0x56646a;await new Promise((_0x49a402,_0xe40ea0)=>{const _0x408f0a=_0x5ba493;u[_0x408f0a(0xd4)](_0x795acc)['then'](function(_0x381ee9){const _0x426d1d=_0x408f0a;p[_0x426d1d(0xc1)]();let _0x19a683=_0x381ee9[_0x426d1d(0xba)];if(!_0x19a683||_0x19a683[_0x426d1d(0xdc)]<0x0)return _0xe40ea0(Error(_0x19a683[_0x426d1d(0xd6)]));let _0x563f2e=_0x19a683[_0x426d1d(0xba)]&&_0x19a683[_0x426d1d(0xba)][_0x426d1d(0xca)];return _0x56646a=_0x19a683[_0x426d1d(0xba)]&&_0x19a683[_0x426d1d(0xba)][_0x426d1d(0xcb)],a['generate'](_0x563f2e,{'small':!0x0},function(_0x3c8477){const _0x51624f=_0x426d1d;let _0xae500f=n[_0x51624f(0xdd)]+'\x20'+e[_0x51624f(0xdb)](_0x51624f(0xbe)+_0x3c8477);_0x2ace73[_0x51624f(0xda)](_0xae500f);}),s[_0x426d1d(0xb5)](o['env'][_0x426d1d(0xbc)],_0x795acc),_0x49a402();})['catch'](function(_0xeb2463){const _0x505258=_0x408f0a;return p[_0x505258(0xc1)](),_0xe40ea0(_0xeb2463);});}),await new Promise((_0x4163a5,_0x5e247d)=>{const _0x59c879=_0x5ba493;if(!_0x56646a)return _0x5e247d(Error(_0x59c879(0xb3)));let _0x15b127=0x0;_0x2e2132=setInterval(()=>{const _0x2fe907=_0x59c879;if(_0x2ace73['statusText'](d+'\x20(Time\x20out\x20after\x20'+(0x3c-_0x15b127)+'s)'),_0x15b127>0x3c)return clearInterval(_0x2e2132),_0x5e247d(Error(o['error_msg'][_0x2fe907(0xe3)]));_0x15b127++,u[_0x2fe907(0xc2)](_0x56646a)[_0x2fe907(0xc3)](function(_0x13596b){const _0x1e0edf=_0x2fe907;p[_0x1e0edf(0xc1)]();let _0x1e14a2=_0x13596b[_0x1e0edf(0xba)];if(_0x1e14a2&&_0x1e14a2[_0x1e0edf(0xdc)]===o['error_code'][_0x1e0edf(0xcd)])return clearInterval(_0x2e2132),_0x5e247d(Error(o[_0x1e0edf(0xb6)][_0x1e0edf(0xcd)]));if(_0x1e14a2&&_0x1e14a2['err']===o[_0x1e0edf(0xd3)]['request_timeout'])return clearInterval(_0x2e2132),_0x5e247d(Error(o['error_msg'][_0x1e0edf(0xe3)]));if(_0x1e14a2&&_0x1e14a2[_0x1e0edf(0xdc)]>=0x0){clearInterval(_0x2e2132);let _0x7206a=_0x1e14a2['data']&&_0x1e14a2['data'][_0x1e0edf(0xe4)];return s[_0x1e0edf(0xb5)](o[_0x1e0edf(0xb7)][_0x1e0edf(0xbb)],_0x7206a),_0x2ace73[_0x1e0edf(0xad)](_0x1e0edf(0xd2)),_0x4163a5();}})[_0x2fe907(0xaf)](function(_0x2fa341){return clearInterval(_0x2e2132),p['stop'](),_0x5e247d(_0x2fa341);});},0x7d0);});}else await new Promise((_0x4576b4,_0x365331)=>{const _0x4531e8=_0x5ba493;l({'url':_0xf65beb,'method':_0x4531e8(0xc6),'headers':{'cache-control':'no-cache','content-type':'application/x-www-form-urlencoded'},'data':c[_0x4531e8(0xb4)]({'accessToken':_0x450889,'appId':_0x795acc}),'withCredentials':!0x0})[_0x4531e8(0xc3)](function(_0x507e02){const _0x466b49=_0x4531e8;p[_0x466b49(0xc1)]();let _0x5f52ae=_0x507e02['data'];if(!_0x5f52ae||_0x5f52ae[_0x466b49(0xdc)]<0x0)return _0x365331(Error(_0x5f52ae[_0x466b49(0xd6)]));let _0xc9f37d=_0x5f52ae[_0x466b49(0xba)]&&_0x5f52ae[_0x466b49(0xba)][_0x466b49(0xe4)];try{let _0x49bac3=r[_0x466b49(0xd1)](_0xc9f37d);s['setEnv'](o[_0x466b49(0xb7)][_0x466b49(0xbc)],_0x49bac3[_0x466b49(0xbc)]),s['setEnv'](o[_0x466b49(0xb7)][_0x466b49(0xbb)],_0xc9f37d);}catch(_0x384733){return _0x365331(_0x384733);}return _0x2ace73[_0x466b49(0xad)](_0x466b49(0xd2)),_0x4576b4();})[_0x4531e8(0xaf)](function(_0x5d6cb9){const _0x20f42e=_0x4531e8;return p[_0x20f42e(0xc1)](),_0x365331(_0x5d6cb9);});});}catch(_0x4efaef){_0x2ace73[_0x5ba493(0xb2)](_0x5ba493(0xde)),i['error'](_0x4efaef['stderr']||_0x4efaef);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 _0x54843b=_0x5ce2;function _0x5ce2(_0x444910,_0xc3ba08){const _0x4ab986=_0x4ab9();return _0x5ce2=function(_0x5ce2c4,_0xccedd0){_0x5ce2c4=_0x5ce2c4-0x9d;let _0x141e61=_0x4ab986[_0x5ce2c4];return _0x141e61;},_0x5ce2(_0x444910,_0xc3ba08);}(function(_0x21056f,_0x3b3d46){const _0x212622=_0x5ce2,_0x16e906=_0x21056f();while(!![]){try{const _0x550be8=-parseInt(_0x212622(0xa1))/0x1+parseInt(_0x212622(0xa7))/0x2*(parseInt(_0x212622(0xa4))/0x3)+parseInt(_0x212622(0xb1))/0x4*(parseInt(_0x212622(0xb2))/0x5)+parseInt(_0x212622(0xad))/0x6*(-parseInt(_0x212622(0xba))/0x7)+parseInt(_0x212622(0xa3))/0x8*(-parseInt(_0x212622(0xb3))/0x9)+parseInt(_0x212622(0xbb))/0xa+-parseInt(_0x212622(0xb0))/0xb*(-parseInt(_0x212622(0xb4))/0xc);if(_0x550be8===_0x3b3d46)break;else _0x16e906['push'](_0x16e906['shift']());}catch(_0xb89ba9){_0x16e906['push'](_0x16e906['shift']());}}}(_0x4ab9,0x5c5d9));function _0x4ab9(){const _0x299165=['9DUaFng','12xbNpKt','Zalo\x20Access\x20Token\x20is\x20required','list','Mini\x20App\x20ID:','appId','loginMethod','23905EjjUHI','5727320HQlufU','length','prompt','../../utils/env','resolve','accessToken','2.\x20Login\x20With\x20App\x20Access\x20Token','500704BxZSyg','Mimi\x20App\x20ID\x20is\x20required','2058352MfIQwe','6DLogJT','exports','../../config','41110ImCkEc','env','then','token','Choose\x20a\x20Login\x20Method','inquirer','294cthUhx','input','getEnv','2340096PwHhGX','7664vWPPEd','1245rEwRNb'];_0x4ab9=function(){return _0x299165;};return _0x4ab9();}const e=require(_0x54843b(0xac)),i=require(_0x54843b(0x9d)),o=require(_0x54843b(0xa6));module[_0x54843b(0xa5)]=function(){const _0x101417=_0x54843b;let _0x36cf0f=[{'type':_0x101417(0xae),'name':_0x101417(0xb8),'message':_0x101417(0xb7),'when':()=>!i[_0x101417(0xaf)](o[_0x101417(0xa8)]['appId']),'validate':_0x246197=>new Promise((_0x46b4db,_0x5da1a1)=>{const _0x46d192=_0x101417;_0x246197?_0x46b4db(!0x0):_0x5da1a1(Error(_0x46d192(0xa2)));})},{'type':_0x101417(0xb6),'name':'loginMethod','message':_0x101417(0xab),'choices':[{'name':'1.\x20Login\x20Via\x20QR\x20Code\x20With\x20Zalo\x20App','value':'zalo'},{'name':_0x101417(0xa0),'value':'accessToken'}],'validate':_0x1fba73=>new Promise((_0x4633fe,_0x202f3c)=>{const _0x2edd87=_0x101417;_0x1fba73&&_0x1fba73[_0x2edd87(0xbc)]?_0x4633fe(!0x0):_0x202f3c(Error('Login\x20method\x20is\x20required!'));})},{'type':_0x101417(0xae),'name':_0x101417(0xaa),'message':'Zalo\x20Access\x20Token:','when':_0x997ff8=>_0x101417(0x9f)===_0x997ff8[_0x101417(0xb9)],'validate':_0x265e69=>new Promise((_0x45413d,_0x216572)=>{const _0x3a4ac9=_0x101417;_0x265e69?_0x45413d(!0x0):_0x216572(Error(_0x3a4ac9(0xb5)));})}];return e[_0x101417(0xbd)](_0x36cf0f)[_0x101417(0xa9)](_0x3151f3=>Promise[_0x101417(0x9e)](_0x3151f3));};
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 _0x1ca826=_0x3495;(function(_0x1411af,_0x152111){const _0x4a2b05=_0x3495,_0x2d670b=_0x1411af();while(!![]){try{const _0x1262f2=-parseInt(_0x4a2b05(0x1c0))/0x1+-parseInt(_0x4a2b05(0x1ba))/0x2+parseInt(_0x4a2b05(0x1c9))/0x3*(-parseInt(_0x4a2b05(0x1c4))/0x4)+-parseInt(_0x4a2b05(0x1c8))/0x5+parseInt(_0x4a2b05(0x1c6))/0x6*(parseInt(_0x4a2b05(0x1c3))/0x7)+-parseInt(_0x4a2b05(0x1bc))/0x8+parseInt(_0x4a2b05(0x1c7))/0x9;if(_0x1262f2===_0x152111)break;else _0x2d670b['push'](_0x2d670b['shift']());}catch(_0x1adbb2){_0x2d670b['push'](_0x2d670b['shift']());}}}(_0x2409,0x296ed));function _0x3495(_0x5c90c7,_0x43c13f){const _0x240908=_0x2409();return _0x3495=function(_0x3495ab,_0xa16084){_0x3495ab=_0x3495ab-0x1ba;let _0x543caa=_0x240908[_0x3495ab];return _0x543caa;},_0x3495(_0x5c90c7,_0x43c13f);}const e=require('../../config'),{axiosClient:t}=require(_0x1ca826(0x1bf));module[_0x1ca826(0x1c1)]=(function(){const _0x4d53fa=_0x1ca826;let _0x4d5a5f=''+e[_0x4d53fa(0x1bd)]+e[_0x4d53fa(0x1bb)]['requestLogin'],_0x5e3e47=''+e[_0x4d53fa(0x1bd)]+e[_0x4d53fa(0x1bb)][_0x4d53fa(0x1c5)];return{'getQRCode':_0xce0bb7=>t({'method':_0x4d53fa(0x1be),'url':_0x4d5a5f+'?appId='+_0xce0bb7,'headers':{'cache-control':_0x4d53fa(0x1c2)},'withCredentials':!0x0}),'checkStatus':_0x42e5fa=>t({'method':_0x4d53fa(0x1be),'url':_0x5e3e47+'?zmpsk='+_0x42e5fa,'headers':{'cache-control':_0x4d53fa(0x1c2)},'withCredentials':!0x0})};}());function _0x2409(){const _0x139d26=['../../utils/axios','50960WPLaJu','exports','no-cache','264803SjoChq','7700AQBJAl','checkLoginStatus','42pszAON','4392513BiJmzY','820970FZgAcb','111WbGVQw','306536krScNw','path','1148032adQaZy','api_domain','get'];_0x2409=function(){return _0x139d26;};return _0x2409();}
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';const _0x3d425a=_0x56f5;function _0x2b6b(){const _0x37e9a6=['4034632EwsmvW','zmp-ui','./src/css/icons.css','46gcUDyb','485IbQAdX','zmp-framework','811890enKAFE','resolve','promise','1006698ZcoZKd','../../utils/fs-extra','copyFileAsync','7723938zltEbI','npm\x20install\x20zmp-framework@latest','5346208rVDeXZ','uiFramework','34396ekTCmu','exec-sh','./icons.css','path','5199mGbiPC'];_0x2b6b=function(){return _0x37e9a6;};return _0x2b6b();}(function(_0xa8b53c,_0x1a9b42){const _0x44c4d1=_0x56f5,_0x46f0b5=_0xa8b53c();while(!![]){try{const _0x366dec=-parseInt(_0x44c4d1(0x1a3))/0x1*(-parseInt(_0x44c4d1(0x1a7))/0x2)+parseInt(_0x44c4d1(0x198))/0x3+-parseInt(_0x44c4d1(0x19f))/0x4*(parseInt(_0x44c4d1(0x1a8))/0x5)+parseInt(_0x44c4d1(0x19b))/0x6+-parseInt(_0x44c4d1(0x19d))/0x7+parseInt(_0x44c4d1(0x1a4))/0x8+parseInt(_0x44c4d1(0x1aa))/0x9;if(_0x366dec===_0x1a9b42)break;else _0x46f0b5['push'](_0x46f0b5['shift']());}catch(_0x18a127){_0x46f0b5['push'](_0x46f0b5['shift']());}}}(_0x2b6b,0xb4756));const e=require(_0x3d425a(0x199)),s=require(_0x3d425a(0x1a2)),r=require(_0x3d425a(0x1a0));function _0x56f5(_0x56cc6e,_0x5d248d){const _0x2b6b37=_0x2b6b();return _0x56f5=function(_0x56f58f,_0x1f2aff){_0x56f58f=_0x56f58f-0x198;let _0x54ca57=_0x2b6b37[_0x56f58f];return _0x54ca57;},_0x56f5(_0x56cc6e,_0x5d248d);}async function i(_0x47374d){const _0x4735bf=_0x3d425a;if(_0x4735bf(0x1a9)===_0x47374d[_0x4735bf(0x19e)])e[_0x4735bf(0x19a)](s[_0x4735bf(0x1ab)](__dirname,_0x4735bf(0x1a1)),s[_0x4735bf(0x1ab)](_0x47374d['cwd'],_0x4735bf(0x1a6))),await r[_0x4735bf(0x1ac)](_0x4735bf(0x19c),!0x0);else{if(_0x4735bf(0x1a5)!==_0x47374d[_0x4735bf(0x19e)])return;await r[_0x4735bf(0x1ac)]('npm\x20install\x20zmp-ui@latest',!0x0);}}module['exports']=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';const _0x4899f8=_0x4f92;(function(_0x58bbda,_0x255227){const _0x22a44d=_0x4f92,_0x955e88=_0x58bbda();while(!![]){try{const _0x450021=-parseInt(_0x22a44d(0xfd))/0x1*(parseInt(_0x22a44d(0x11b))/0x2)+-parseInt(_0x22a44d(0x107))/0x3*(parseInt(_0x22a44d(0x102))/0x4)+parseInt(_0x22a44d(0x104))/0x5+parseInt(_0x22a44d(0x113))/0x6+-parseInt(_0x22a44d(0x117))/0x7*(-parseInt(_0x22a44d(0x10c))/0x8)+-parseInt(_0x22a44d(0x10d))/0x9+-parseInt(_0x22a44d(0xff))/0xa*(parseInt(_0x22a44d(0x119))/0xb);if(_0x450021===_0x255227)break;else _0x955e88['push'](_0x955e88['shift']());}catch(_0x104fe6){_0x955e88['push'](_0x955e88['shift']());}}}(_0x3c23,0x551d3));const r=require(_0x4899f8(0x10b)),t=require(_0x4899f8(0xfe)),e=require('log-symbols'),s=require('./utils/migrate-react'),{errorExit:a}=require('../utils/error'),o=require(_0x4899f8(0x110)),i=r['gray'](_0x4899f8(0x108));async function u(_0x34a8d0={},_0x24f1b3){const _0x17dd59=_0x4899f8;let _0x2eac10=_0x34a8d0[_0x17dd59(0x109)]||process[_0x17dd59(0x109)]();_0x24f1b3||(_0x24f1b3={'statusStart'(){},'statusDone'(){},'statusText'(){},'statusError'(){},'text'(){},'error'(){},'showOnUI'(){}}),_0x24f1b3[_0x17dd59(0xfb)](_0x17dd59(0x103)+i);try{let _0x183d6e,_0x522b46=require((_0x183d6e=o['filename'][_0x17dd59(0xfc)],t[_0x17dd59(0x118)](_0x2eac10,_0x183d6e)));_0x17dd59(0x115)===_0x522b46[_0x17dd59(0x114)]?await s(_0x34a8d0):(_0x24f1b3[_0x17dd59(0x100)](e[_0x17dd59(0x11a)]+_0x17dd59(0x106)+_0x522b46['framework']+_0x17dd59(0x10a)),process[_0x17dd59(0x105)](0x1)),_0x24f1b3[_0x17dd59(0x10f)](r[_0x17dd59(0x10e)][_0x17dd59(0x116)](_0x17dd59(0x101))+_0x17dd59(0x111));}catch(_0x54aec8){_0x24f1b3['statusError']('Migration\x20error!'),a(_0x54aec8);}}function _0x4f92(_0x3f96b1,_0x4eb75a){const _0x3c230c=_0x3c23();return _0x4f92=function(_0x4f9287,_0x6353b4){_0x4f9287=_0x4f9287-0xfb;let _0x177d05=_0x3c230c[_0x4f9287];return _0x177d05;},_0x4f92(_0x3f96b1,_0x4eb75a);}module[_0x4899f8(0x112)]=u;function _0x3c23(){const _0x225f03=['react','green','13153kWwTkL','join','275vLHzgM','error','2IVvyNo','statusStart','zmpConfig','178889skecwv','path','135100EDFZfP','text','Migration\x20Done!','4MQUnfE','Migrating\x20Your\x20App\x20','3215710yahREx','exit','\x20Project\x20using\x20ZMP\x20','1621827DssfiY','(Please\x20wait,\x20it\x20can\x20take\x20a\x20while)','cwd','\x20is\x20not\x20yet\x20supported','chalk','2624ZydYll','3324204VbGokA','bold','statusDone','../config','\x20💪','exports','3094662fGBBDP','framework'];_0x3c23=function(){return _0x225f03;};return _0x3c23();}
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();}
@@ -1 +1 @@
1
- 'use strict';function _0x56c0(){const _0x403c8a=['v1tov2','690245egCXhu','34137490QEkaao','migrateVersion','9JeWSsR','inquirer','exports','iconsv3','21dCOzmn','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','zmp-framework','Version\x201\x20=>\x20Version\x202','list','2965376nSTinM','then','zmp-ui','prompt','2502568NsLODT','other','Other','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','983999Fgymwf','3918495WcXslK','3048440ytPkeC','6wnLAHe'];_0x56c0=function(){return _0x403c8a;};return _0x56c0();}function _0x3fbd(_0x3e2849,_0x55acaf){const _0x56c09b=_0x56c0();return _0x3fbd=function(_0x3fbd47,_0x44ae90){_0x3fbd47=_0x3fbd47-0x1e6;let _0x56c867=_0x56c09b[_0x3fbd47];return _0x56c867;},_0x3fbd(_0x3e2849,_0x55acaf);}const _0x182968=_0x3fbd;(function(_0x19dd73,_0x44e329){const _0x183d8e=_0x3fbd,_0x1649f4=_0x19dd73();while(!![]){try{const _0x584f85=-parseInt(_0x183d8e(0x1ec))/0x1+parseInt(_0x183d8e(0x1ee))/0x2+-parseInt(_0x183d8e(0x1ed))/0x3+-parseInt(_0x183d8e(0x1e8))/0x4+-parseInt(_0x183d8e(0x1f1))/0x5*(parseInt(_0x183d8e(0x1ef))/0x6)+parseInt(_0x183d8e(0x1f8))/0x7*(-parseInt(_0x183d8e(0x1fd))/0x8)+-parseInt(_0x183d8e(0x1f4))/0x9*(-parseInt(_0x183d8e(0x1f2))/0xa);if(_0x584f85===_0x44e329)break;else _0x1649f4['push'](_0x1649f4['shift']());}catch(_0x47e13c){_0x1649f4['push'](_0x1649f4['shift']());}}}(_0x56c0,0xbc802));const e=require(_0x182968(0x1f5)),r=[{'type':_0x182968(0x1fc),'name':_0x182968(0x1f3),'message':'What\x20version\x20do\x20you\x20want\x20to\x20migrate?','choices':[{'name':_0x182968(0x1fb),'value':_0x182968(0x1f0)},{'name':_0x182968(0x1eb),'value':'iconsv3'}]},{'type':_0x182968(0x1fc),'name':'uiFramework','message':_0x182968(0x1f9),'when':_0x5a5052=>_0x182968(0x1f7)===_0x5a5052['migrateVersion'],'choices':[{'name':_0x182968(0x1fa),'value':'zmp-framework'},{'name':_0x182968(0x1e6),'value':_0x182968(0x1e6)},{'name':_0x182968(0x1ea),'value':_0x182968(0x1e9)}]}];module[_0x182968(0x1f6)]=function(){const _0x3bed9f=_0x182968;return e[_0x3bed9f(0x1e7)](r)[_0x3bed9f(0x1fe)](_0x53ddeb=>Promise['resolve'](_0x53ddeb));};
1
+ 'use strict';const _0x50dfcf=_0x415a;(function(_0x5f15f1,_0x1086dc){const _0x1d5b99=_0x415a,_0x36a181=_0x5f15f1();while(!![]){try{const _0x2225f4=parseInt(_0x1d5b99(0x165))/0x1*(-parseInt(_0x1d5b99(0x163))/0x2)+parseInt(_0x1d5b99(0x15c))/0x3+parseInt(_0x1d5b99(0x16c))/0x4*(-parseInt(_0x1d5b99(0x174))/0x5)+-parseInt(_0x1d5b99(0x167))/0x6*(-parseInt(_0x1d5b99(0x175))/0x7)+parseInt(_0x1d5b99(0x16a))/0x8*(parseInt(_0x1d5b99(0x15e))/0x9)+-parseInt(_0x1d5b99(0x172))/0xa+-parseInt(_0x1d5b99(0x169))/0xb*(parseInt(_0x1d5b99(0x16e))/0xc);if(_0x2225f4===_0x1086dc)break;else _0x36a181['push'](_0x36a181['shift']());}catch(_0x23b396){_0x36a181['push'](_0x36a181['shift']());}}}(_0x4619,0xece95));const e=require(_0x50dfcf(0x166)),r=[{'type':_0x50dfcf(0x173),'name':_0x50dfcf(0x170),'message':_0x50dfcf(0x16b),'choices':[{'name':_0x50dfcf(0x171),'value':_0x50dfcf(0x15d)},{'name':_0x50dfcf(0x161),'value':'iconsv3'}]},{'type':'list','name':_0x50dfcf(0x15b),'message':_0x50dfcf(0x16d),'when':_0x580b4d=>_0x50dfcf(0x162)===_0x580b4d['migrateVersion'],'choices':[{'name':_0x50dfcf(0x176),'value':'zmp-framework'},{'name':_0x50dfcf(0x15f),'value':_0x50dfcf(0x15f)},{'name':_0x50dfcf(0x16f),'value':'other'}]}];function _0x4619(){const _0x44d1be=['686320pZkmWi','list','100moqgXU','21moortp','zmp-framework','uiFramework','3501954hddHew','v1tov2','321435MyYuYo','zmp-ui','exports','Icons\x20(fix\x20icon\x20not\x20displayed\x20in\x20iOS\x20v16+)','iconsv3','26jIsaqv','prompt','58792tFMMos','inquirer','725694psstSw','resolve','2643993sMuTQi','392qWbJru','What\x20version\x20do\x20you\x20want\x20to\x20migrate?','247304fVjrxR','Choose\x20which\x20framework\x20or\x20library\x20used\x20in\x20your\x20project','12UWmYze','Other','migrateVersion','Version\x201\x20=>\x20Version\x202'];_0x4619=function(){return _0x44d1be;};return _0x4619();}function _0x415a(_0x2ad768,_0x14e3c7){const _0x461917=_0x4619();return _0x415a=function(_0x415a75,_0x184ec0){_0x415a75=_0x415a75-0x15b;let _0x2b255e=_0x461917[_0x415a75];return _0x2b255e;},_0x415a(_0x2ad768,_0x14e3c7);}module[_0x50dfcf(0x160)]=function(){const _0x129907=_0x50dfcf;return e[_0x129907(0x164)](r)['then'](_0x411374=>Promise[_0x129907(0x168)](_0x411374));};