@lovrabet/cli 1.2.4 → 1.2.5-beta.2

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 (89) hide show
  1. package/lib/add-page/input-page-router.js +1 -1
  2. package/lib/add-page/main.js +1 -1
  3. package/lib/add-page/select-page-template.js +1 -1
  4. package/lib/api/api-doc-ui.js +1 -1
  5. package/lib/api/api-doc.js +1 -1
  6. package/lib/api/api-pull-ui.js +1 -1
  7. package/lib/api/fetch-model-list.js +1 -1
  8. package/lib/api/generate-api-file.js +1 -1
  9. package/lib/api/main.js +1 -1
  10. package/lib/api/pull-silent.js +1 -1
  11. package/lib/app-menu/app-menu-sync-ui.js +1 -1
  12. package/lib/app-menu/create-menu.js +1 -1
  13. package/lib/app-menu/get-local-pages.js +1 -1
  14. package/lib/app-menu/get-online-menu-list.js +1 -1
  15. package/lib/app-menu/use-get-online-menu-list.js +1 -1
  16. package/lib/app-menu/utils.js +1 -1
  17. package/lib/app-menu/valid-url.js +1 -1
  18. package/lib/app-menu-update-cdn/current-content.js +1 -1
  19. package/lib/app-menu-update-cdn/input-cdn-asset.js +1 -1
  20. package/lib/app-menu-update-cdn/main.js +1 -1
  21. package/lib/app-menu-update-cdn/update-menu-cdn-url.js +1 -1
  22. package/lib/auth/auth-server-ui.js +1 -1
  23. package/lib/auth/auth-server.js +1 -1
  24. package/lib/auth/constant.js +1 -1
  25. package/lib/auth/get-cookie.js +1 -1
  26. package/lib/auth/is-session-valid.js +1 -1
  27. package/lib/auth/logout.js +1 -1
  28. package/lib/cli.js +1 -1
  29. package/lib/cmd/build-watch.js +1 -1
  30. package/lib/cmd/build.js +1 -1
  31. package/lib/cmd/logs.js +1 -1
  32. package/lib/cmd/preview.js +1 -1
  33. package/lib/cmd/start.js +1 -1
  34. package/lib/config/config-help.js +1 -1
  35. package/lib/config/main.js +1 -1
  36. package/lib/constant/domain.js +1 -1
  37. package/lib/constant/env.js +1 -1
  38. package/lib/create-app/enhanced-guided-create.js +1 -1
  39. package/lib/create-app/format-elapsed.js +1 -1
  40. package/lib/create-app/main.js +1 -1
  41. package/lib/create-app/task-finished.js +1 -1
  42. package/lib/create-app/task-loading.js +1 -1
  43. package/lib/create-app/task-running.js +1 -1
  44. package/lib/create-app/task-time.js +1 -1
  45. package/lib/create-app/use-copy-project-template.js +1 -1
  46. package/lib/create-app/use-format-code.js +1 -1
  47. package/lib/create-app/use-install-dependencies.js +1 -1
  48. package/lib/help.js +1 -1
  49. package/lib/init/main.js +1 -1
  50. package/lib/mcp/claude.js +1 -0
  51. package/lib/mcp/cursor.js +1 -1
  52. package/lib/mcp/main.js +1 -1
  53. package/lib/skills/main.js +1 -0
  54. package/lib/utils/check-sdk-version.js +1 -1
  55. package/lib/utils/config.js +1 -1
  56. package/lib/utils/copy-directory.js +1 -1
  57. package/lib/utils/http-client.js +1 -1
  58. package/lib/utils/logger.js +1 -1
  59. package/lib/utils/router-updater.js +1 -1
  60. package/lib/utils/sleep.js +1 -1
  61. package/lib/utils/template-replacer.js +1 -1
  62. package/package.json +1 -1
  63. package/templates/projects/sub-app-react-demo/index.html +22 -34
  64. package/templates/projects/sub-app-react-demo/public/logo.svg +1 -0
  65. package/templates/projects/sub-app-react-demo/src/api/api.ts +1 -1
  66. package/templates/projects/sub-app-react-demo/src/api/client.ts +1 -1
  67. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +44 -71
  68. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +387 -927
  69. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +1 -1
  70. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +293 -0
  71. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +100 -414
  72. package/templates/projects/sub-app-react-demo/src/style.css +21 -15
  73. package/templates/projects/sub-app-react-demo/vite.config.ts +18 -13
  74. package/templates/rules/lovrabet_rules.mdc.tpl +636 -43
  75. package/templates/skills/.claude/skills/lovrabet/SKILL.md +258 -0
  76. package/templates/skills/.cursor/commands/lovrabet.md +248 -0
  77. package/templates/skills/.cursorrules +109 -0
  78. package/templates/skills/.shared/README.md +45 -0
  79. package/templates/skills/.shared/guides/01-filter-query/guide.md +300 -0
  80. package/templates/skills/.shared/guides/02-mcp-sql-workflow/guide.md +272 -0
  81. package/templates/skills/.shared/guides/03-antd-style/guide.md +227 -0
  82. package/templates/skills/.shared/guides/04-troubleshooting/guide.md +426 -0
  83. package/templates/skills/.shared/guides/05-api-integration/guide.md +327 -0
  84. package/templates/skills/.shared/guides/06-menu-management/guide.md +305 -0
  85. package/templates/skills/.shared/guides/07-backend-function/guide.md +679 -0
  86. package/templates/skills/.windsurf/workflows/lovrabet.md +257 -0
  87. package/templates/projects/sub-app-react-demo/.vscode/extensions.json +0 -3
  88. package/templates/projects/sub-app-react-demo/.vscode/settings.json +0 -57
  89. package/templates/projects/sub-app-react-demo/src/pages/intro/index.tsx +0 -560
@@ -1 +1 @@
1
- (function(_0x1488d4,_0x340713){const _0x584309=a11_0x2c9a,_0x54d4f1=_0x1488d4();while(!![]){try{const _0x6b3aa9=parseInt(_0x584309(0x126))/0x1+parseInt(_0x584309(0x118))/0x2+-parseInt(_0x584309(0x128))/0x3*(parseInt(_0x584309(0x11d))/0x4)+parseInt(_0x584309(0x10f))/0x5*(parseInt(_0x584309(0x10d))/0x6)+parseInt(_0x584309(0x11f))/0x7*(-parseInt(_0x584309(0x109))/0x8)+parseInt(_0x584309(0xfe))/0x9+parseInt(_0x584309(0x123))/0xa;if(_0x6b3aa9===_0x340713)break;else _0x54d4f1['push'](_0x54d4f1['shift']());}catch(_0x6d8251){_0x54d4f1['push'](_0x54d4f1['shift']());}}}(a11_0x478e,0x1ebbb));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';function a11_0x478e(){const _0x3add2e=['25583CCEHXx','\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>','27YvRjTb','正在创建菜单:\x20','登录态校验失败,请使用\x20lovrabet\x20auth\x20重新登录','resources','info','13149hqpOkP','all','create-menu','status','path','未提供应用AppCode,且配置中也没有默认值','0011','import','label','errorCode','创建菜单成功:','1186936GeLasX','开始批量创建菜单,共\x20','创建菜单失败:\x20','未知错误','525558drLkYz','errorMsg','5vMgDqU','error','procode','POST','length','create-menus','/smartapi/menu/create','success','appcode','79800ORmRFu','application/json','!\x20请使用以下方式之一:','创建菜单失败,HTTP状态码:\x20','登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录','97892QGvJIG','log','7nkkVAf','stringify','\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>','map','3399700YkDlIo','includes','批量创建菜单完成,共\x20'];a11_0x478e=function(){return _0x3add2e;};return a11_0x478e();}const config=readConfig();function a11_0x2c9a(_0x32c1cc,_0xa84e1f){_0x32c1cc=_0x32c1cc-0xfa;const _0x478e4e=a11_0x478e();let _0x2c9a61=_0x478e4e[_0x32c1cc];return _0x2c9a61;}export async function createMenu(_0xdcfb5c){const _0x341759=a11_0x2c9a,_0x2541ad=config?.['appcode'];if(!_0x2541ad){const _0x222cb1='未提供应用AppCode,且配置中也没有默认值';logger['error']('create-menu',_0x222cb1),console[_0x341759(0x110)]('×\x20'+_0x222cb1),console[_0x341759(0x11e)](_0x341759(0x11a)),console[_0x341759(0x11e)](_0x341759(0x127)),console[_0x341759(0x11e)](_0x341759(0x121));return;}logger[_0x341759(0xfd)](_0x341759(0x100),_0x341759(0xfa)+_0xdcfb5c[_0x341759(0x106)]+'\x20('+_0xdcfb5c[_0x341759(0x102)]+')');const _0x2fbdc8={'appCode':_0x2541ad,'type':_0x341759(0x111),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0xdcfb5c[_0x341759(0xfc)]?JSON[_0x341759(0x120)](_0xdcfb5c[_0x341759(0xfc)]):undefined},..._0xdcfb5c},_0x2450bf=await fetch(getApiDomain()+_0x341759(0x115),{'method':_0x341759(0x112),'body':JSON[_0x341759(0x120)](_0x2fbdc8),'headers':{'Content-Type':'application/json','Cookie':getCookie()}});if(!_0x2450bf['ok']){if(_0x2450bf[_0x341759(0x101)]===0x191){const _0x1f129b=_0x341759(0x11c);logger['error'](_0x341759(0x100),_0x1f129b,{'status':_0x2450bf[_0x341759(0x101)],'menu':_0xdcfb5c[_0x341759(0x106)]});throw new Error(_0x1f129b);}const _0x44bb61=_0x341759(0x11b)+_0x2450bf[_0x341759(0x101)];logger['error'](_0x341759(0x100),_0x44bb61,{'menu':_0xdcfb5c[_0x341759(0x106)]});throw new Error(_0x44bb61);}const _0x74a837=await _0x2450bf['json']();if(!_0x74a837['success']){const _0x48b256=_0x341759(0x10b)+(_0x74a837[_0x341759(0x10e)]||_0x341759(0x10c));logger[_0x341759(0x110)](_0x341759(0x100),_0x48b256,{'errorCode':_0x74a837[_0x341759(0x107)],'errorMsg':_0x74a837['errorMsg'],'menu':_0xdcfb5c[_0x341759(0x106)]});throw new Error(_0x48b256);}logger[_0x341759(0xfd)](_0x341759(0x100),'菜单创建成功:\x20'+_0xdcfb5c[_0x341759(0x106)],_0x74a837['data']),console[_0x341759(0x11e)](_0x341759(0x108),_0x74a837['data']);}async function _createMenu(_0x2e8bdb,_0x107bf5){const _0x127384=a11_0x2c9a,_0x54baba=config?.[_0x127384(0x117)];if(!_0x54baba){const _0x15f0e2=_0x127384(0x103);logger[_0x127384(0x110)](_0x127384(0x100),_0x15f0e2),console[_0x127384(0x110)]('×\x20'+_0x15f0e2),console[_0x127384(0x11e)](_0x127384(0x11a)),console[_0x127384(0x11e)]('\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>'),console[_0x127384(0x11e)](_0x127384(0x121));return;}const _0x42438f={'appCode':_0x54baba,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x127384(0x105),'resources':_0x107bf5?JSON[_0x127384(0x120)](_0x107bf5):undefined},'label':_0x2e8bdb[_0x127384(0x106)],'path':_0x2e8bdb[_0x127384(0x102)]},_0x289840=await fetch(getApiDomain()+_0x127384(0x115),{'method':_0x127384(0x112),'body':JSON['stringify'](_0x42438f),'headers':{'Content-Type':_0x127384(0x119),'Cookie':getCookie()}});if(!_0x289840['ok']){if(_0x289840[_0x127384(0x101)]===0x191){const _0xd77c81=_0x127384(0x11c);logger['error'](_0x127384(0x100),_0xd77c81,{'status':_0x289840['status'],'menu':_0x2e8bdb[_0x127384(0x106)]});throw new Error(_0xd77c81);}const _0x51eddf=_0x127384(0x11b)+_0x289840[_0x127384(0x101)];logger[_0x127384(0x110)](_0x127384(0x100),_0x51eddf,{'menu':_0x2e8bdb[_0x127384(0x106)]});throw new Error(_0x51eddf);}const _0x51770f=await _0x289840['json']();if(!_0x51770f[_0x127384(0x116)]){if(_0x51770f[_0x127384(0x107)]===_0x127384(0x104)||_0x51770f[_0x127384(0x10e)]?.[_0x127384(0x124)]('登录')){const _0x82640=_0x127384(0xfb);logger[_0x127384(0x110)](_0x127384(0x100),_0x82640,{'errorCode':_0x51770f[_0x127384(0x107)],'errorMsg':_0x51770f[_0x127384(0x10e)],'menu':_0x2e8bdb[_0x127384(0x106)]});throw new Error(_0x82640);}const _0x13e914=_0x127384(0x10b)+(_0x51770f[_0x127384(0x10e)]||_0x127384(0x10c));logger['error'](_0x127384(0x100),_0x13e914,{'errorCode':_0x51770f[_0x127384(0x107)],'errorMsg':_0x51770f[_0x127384(0x10e)],'menu':_0x2e8bdb['label']});throw new Error(_0x13e914);}logger['info'](_0x127384(0x100),'菜单创建成功:\x20'+_0x2e8bdb[_0x127384(0x106)]);}export async function createMenus(_0xd31e3d,_0x484fca){const _0x1dda34=a11_0x2c9a;logger['info']('create-menus',_0x1dda34(0x10a)+_0xd31e3d['length']+'\x20个'),await Promise[_0x1dda34(0xff)](_0xd31e3d[_0x1dda34(0x122)](async _0x495abf=>{await _createMenu(_0x495abf,_0x484fca);})),logger['info'](_0x1dda34(0x114),_0x1dda34(0x125)+_0xd31e3d[_0x1dda34(0x113)]+'\x20个');}
1
+ (function(_0x1cde40,_0x56f6c6){const _0x4b7c0e=a11_0x504e,_0x3a6998=_0x1cde40();while(!![]){try{const _0x20f048=parseInt(_0x4b7c0e(0x194))/0x1*(-parseInt(_0x4b7c0e(0x186))/0x2)+parseInt(_0x4b7c0e(0x178))/0x3*(-parseInt(_0x4b7c0e(0x197))/0x4)+-parseInt(_0x4b7c0e(0x19d))/0x5+parseInt(_0x4b7c0e(0x181))/0x6*(-parseInt(_0x4b7c0e(0x17b))/0x7)+-parseInt(_0x4b7c0e(0x170))/0x8*(-parseInt(_0x4b7c0e(0x18e))/0x9)+parseInt(_0x4b7c0e(0x193))/0xa+parseInt(_0x4b7c0e(0x175))/0xb;if(_0x20f048===_0x56f6c6)break;else _0x3a6998['push'](_0x3a6998['shift']());}catch(_0x10fa33){_0x3a6998['push'](_0x3a6998['shift']());}}}(a11_0x1bac,0xd5da7));function a11_0x1bac(){const _0x517e04=['status','length','创建菜单失败:\x20','import','json','map','error','1111626WUwInP','create-menus','path','application/json','stringify','8843110YOicuT','1695175jLzdYi','登录态校验失败,请使用\x20lovrabet\x20auth\x20重新登录','create-menu','2380MqKDcB','errorCode','菜单创建成功:\x20','\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>','log','登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录','4631135KLTaFy','0011','data','16RRDkHn','正在创建菜单:\x20','label','批量创建菜单完成,共\x20','includes','36070771xludSJ','all','errorMsg','2727vLSlaK','info','\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>','868700XgXHeL','resources','!\x20请使用以下方式之一:','appcode','未知错误','创建菜单失败,HTTP状态码:\x20','18MMJjBi','success','未提供应用AppCode,且配置中也没有默认值','/smartapi/menu/create','procode','2VdVPZU'];a11_0x1bac=function(){return _0x517e04;};return a11_0x1bac();}import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';const config=readConfig();function a11_0x504e(_0x87927f,_0x4c64f3){_0x87927f=_0x87927f-0x170;const _0x1bac68=a11_0x1bac();let _0x504e31=_0x1bac68[_0x87927f];return _0x504e31;}export async function createMenu(_0x4dafe0){const _0x48f26c=a11_0x504e,_0x28de09=config?.[_0x48f26c(0x17e)];if(!_0x28de09){const _0x4ef02c=_0x48f26c(0x183);logger[_0x48f26c(0x18d)]('create-menu',_0x4ef02c),console[_0x48f26c(0x18d)]('×\x20'+_0x4ef02c),console[_0x48f26c(0x19b)](_0x48f26c(0x17d)),console[_0x48f26c(0x19b)]('\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>'),console[_0x48f26c(0x19b)](_0x48f26c(0x17a));return;}logger['info'](_0x48f26c(0x196),_0x48f26c(0x171)+_0x4dafe0[_0x48f26c(0x172)]+'\x20('+_0x4dafe0[_0x48f26c(0x190)]+')');const _0x1cf8ec={'appCode':_0x28de09,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x48f26c(0x18a),'resources':_0x4dafe0[_0x48f26c(0x17c)]?JSON[_0x48f26c(0x192)](_0x4dafe0[_0x48f26c(0x17c)]):undefined},..._0x4dafe0},_0x34e3aa=await fetch(getApiDomain()+_0x48f26c(0x184),{'method':'POST','body':JSON['stringify'](_0x1cf8ec),'headers':{'Content-Type':_0x48f26c(0x191),'Cookie':getCookie()}});if(!_0x34e3aa['ok']){if(_0x34e3aa[_0x48f26c(0x187)]===0x191){const _0x3da837=_0x48f26c(0x19c);logger[_0x48f26c(0x18d)](_0x48f26c(0x196),_0x3da837,{'status':_0x34e3aa[_0x48f26c(0x187)],'menu':_0x4dafe0[_0x48f26c(0x172)]});throw new Error(_0x3da837);}const _0x4b5b65=_0x48f26c(0x180)+_0x34e3aa[_0x48f26c(0x187)];logger[_0x48f26c(0x18d)](_0x48f26c(0x196),_0x4b5b65,{'menu':_0x4dafe0[_0x48f26c(0x172)]});throw new Error(_0x4b5b65);}const _0x31f2a5=await _0x34e3aa['json']();if(!_0x31f2a5[_0x48f26c(0x182)]){const _0x435e95=_0x48f26c(0x189)+(_0x31f2a5['errorMsg']||'未知错误');logger['error']('create-menu',_0x435e95,{'errorCode':_0x31f2a5[_0x48f26c(0x198)],'errorMsg':_0x31f2a5['errorMsg'],'menu':_0x4dafe0[_0x48f26c(0x172)]});throw new Error(_0x435e95);}logger[_0x48f26c(0x179)]('create-menu',_0x48f26c(0x199)+_0x4dafe0['label'],_0x31f2a5[_0x48f26c(0x19f)]),console['log']('创建菜单成功:',_0x31f2a5[_0x48f26c(0x19f)]);}async function _createMenu(_0x2b8fa3,_0x58e9c0){const _0x56dd76=a11_0x504e,_0x46059d=config?.['appcode'];if(!_0x46059d){const _0x19e4b0=_0x56dd76(0x183);logger[_0x56dd76(0x18d)](_0x56dd76(0x196),_0x19e4b0),console[_0x56dd76(0x18d)]('×\x20'+_0x19e4b0),console['log'](_0x56dd76(0x17d)),console[_0x56dd76(0x19b)](_0x56dd76(0x19a)),console[_0x56dd76(0x19b)](_0x56dd76(0x17a));return;}const _0x31fb50={'appCode':_0x46059d,'type':_0x56dd76(0x185),'sort':0x0,'extend':{'loadScriptMode':_0x56dd76(0x18a),'resources':_0x58e9c0?JSON['stringify'](_0x58e9c0):undefined},'label':_0x2b8fa3[_0x56dd76(0x172)],'path':_0x2b8fa3[_0x56dd76(0x190)]},_0x4e5481=await fetch(getApiDomain()+'/smartapi/menu/create',{'method':'POST','body':JSON['stringify'](_0x31fb50),'headers':{'Content-Type':_0x56dd76(0x191),'Cookie':getCookie()}});if(!_0x4e5481['ok']){if(_0x4e5481[_0x56dd76(0x187)]===0x191){const _0x5d0008=_0x56dd76(0x19c);logger[_0x56dd76(0x18d)]('create-menu',_0x5d0008,{'status':_0x4e5481[_0x56dd76(0x187)],'menu':_0x2b8fa3[_0x56dd76(0x172)]});throw new Error(_0x5d0008);}const _0x168e37=_0x56dd76(0x180)+_0x4e5481[_0x56dd76(0x187)];logger[_0x56dd76(0x18d)](_0x56dd76(0x196),_0x168e37,{'menu':_0x2b8fa3[_0x56dd76(0x172)]});throw new Error(_0x168e37);}const _0x4dd174=await _0x4e5481[_0x56dd76(0x18b)]();if(!_0x4dd174['success']){if(_0x4dd174[_0x56dd76(0x198)]===_0x56dd76(0x19e)||_0x4dd174['errorMsg']?.[_0x56dd76(0x174)]('登录')){const _0x24a70d=_0x56dd76(0x195);logger[_0x56dd76(0x18d)](_0x56dd76(0x196),_0x24a70d,{'errorCode':_0x4dd174[_0x56dd76(0x198)],'errorMsg':_0x4dd174[_0x56dd76(0x177)],'menu':_0x2b8fa3['label']});throw new Error(_0x24a70d);}const _0x1bddb1=_0x56dd76(0x189)+(_0x4dd174[_0x56dd76(0x177)]||_0x56dd76(0x17f));logger['error'](_0x56dd76(0x196),_0x1bddb1,{'errorCode':_0x4dd174[_0x56dd76(0x198)],'errorMsg':_0x4dd174['errorMsg'],'menu':_0x2b8fa3[_0x56dd76(0x172)]});throw new Error(_0x1bddb1);}logger['info'](_0x56dd76(0x196),_0x56dd76(0x199)+_0x2b8fa3[_0x56dd76(0x172)]);}export async function createMenus(_0xdf2f1c,_0x5cd323){const _0x4e8cd1=a11_0x504e;logger['info'](_0x4e8cd1(0x18f),'开始批量创建菜单,共\x20'+_0xdf2f1c[_0x4e8cd1(0x188)]+'\x20个'),await Promise[_0x4e8cd1(0x176)](_0xdf2f1c[_0x4e8cd1(0x18c)](async _0x12a2d0=>{await _createMenu(_0x12a2d0,_0x5cd323);})),logger[_0x4e8cd1(0x179)](_0x4e8cd1(0x18f),_0x4e8cd1(0x173)+_0xdf2f1c['length']+'\x20个');}
@@ -1 +1 @@
1
- const a12_0x33e185=a12_0x5049;(function(_0x5cb19f,_0x2c19f5){const _0x5754b0=a12_0x5049,_0x2df60e=_0x5cb19f();while(!![]){try{const _0x30a567=-parseInt(_0x5754b0(0x12b))/0x1*(-parseInt(_0x5754b0(0x128))/0x2)+-parseInt(_0x5754b0(0x125))/0x3+parseInt(_0x5754b0(0x129))/0x4+-parseInt(_0x5754b0(0x11f))/0x5*(-parseInt(_0x5754b0(0x12e))/0x6)+-parseInt(_0x5754b0(0x121))/0x7+-parseInt(_0x5754b0(0x12d))/0x8*(parseInt(_0x5754b0(0x122))/0x9)+parseInt(_0x5754b0(0x12a))/0xa;if(_0x30a567===_0x2c19f5)break;else _0x2df60e['push'](_0x2df60e['shift']());}catch(_0x350a5e){_0x2df60e['push'](_0x2df60e['shift']());}}}(a12_0x3137,0xbd478));import{readdirSync,statSync,readFileSync}from'fs';function a12_0x5049(_0x1c0d6a,_0x25522b){_0x1c0d6a=_0x1c0d6a-0x118;const _0x313769=a12_0x3137();let _0x50495f=_0x313769[_0x1c0d6a];return _0x50495f;}import{join,relative,resolve}from'path';const pagesDir=resolve(process[a12_0x33e185(0x124)](),'src/pages');export function extractTitleFromComment(_0x1b1748){const _0x53f8ec=a12_0x33e185;try{const _0x4b2019=readFileSync(_0x1b1748,_0x53f8ec(0x11b)),_0x458c8f=_0x4b2019[_0x53f8ec(0x11a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x458c8f&&_0x458c8f[0x1]){const _0x3a5a02=_0x458c8f[0x1],_0x5e0410=_0x3a5a02[_0x53f8ec(0x11a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5e0410&&_0x5e0410[0x1])return _0x5e0410[0x1][_0x53f8ec(0x12c)]();}let _0x1ad592=null;const _0x186af4=_0x4b2019[_0x53f8ec(0x11a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x186af4&&_0x186af4[0x1]&&(_0x1ad592=_0x186af4[0x1]);if(!_0x1ad592){const _0x6817d2=_0x4b2019[_0x53f8ec(0x11a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x6817d2&&_0x6817d2[0x1]&&(_0x1ad592=_0x6817d2[0x1]);}if(_0x1ad592){const _0xc7c190=new RegExp('\x5cb'+_0x1ad592+_0x53f8ec(0x119)),_0x3d9338=_0x4b2019['match'](_0xc7c190);if(_0x3d9338&&_0x3d9338[0x1])return _0x3d9338[0x1];return _0x1ad592;}return null;}catch(_0x2713f9){return null;}}export function getLocalPages(_0x117701=pagesDir,_0x35a520=pagesDir){const _0x2cfd14=a12_0x33e185;let _0x327342=[];const _0x215222=readdirSync(_0x117701);return _0x215222['forEach'](_0x2c0abf=>{const _0x1c994a=a12_0x5049,_0x5897c6=join(_0x117701,_0x2c0abf),_0x615eac=statSync(_0x5897c6);if(_0x615eac&&_0x615eac[_0x1c994a(0x11e)]())_0x327342=_0x327342['concat'](getLocalPages(_0x5897c6,_0x35a520));else{if(_0x2c0abf[_0x1c994a(0x11c)](_0x1c994a(0x126))){let _0x33dfbe=relative(_0x35a520,_0x5897c6);_0x33dfbe['endsWith'](_0x1c994a(0x123))?_0x33dfbe=_0x33dfbe[_0x1c994a(0x12f)](/index\.tsx$/,''):_0x33dfbe=_0x33dfbe['replace'](/\.tsx$/,'');_0x33dfbe['endsWith']('/')&&(_0x33dfbe=_0x33dfbe[_0x1c994a(0x127)](0x0,-0x1));const _0x5c4d62=extractTitleFromComment(_0x5897c6),_0x53cb04=_0x5c4d62||_0x33dfbe;_0x327342['push']({'path':_0x33dfbe[_0x1c994a(0x118)]('$',':'),'label':_0x53cb04});}}}),_0x327342[_0x2cfd14(0x120)](_0x41beeb=>_0x41beeb[_0x2cfd14(0x11d)]!=='');}function a12_0x3137(){const _0x56376d=['.tsx','slice','2KYkCjr','3711428bknkhK','18883550sLsjyQ','90354LQUwgB','trim','616rCqAFA','12uQjdBq','replace','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','match','utf-8','endsWith','path','isDirectory','717905TVOYLU','filter','3049529mLwULk','167355SwadLD','index.tsx','cwd','1652934NCQzyy'];a12_0x3137=function(){return _0x56376d;};return a12_0x3137();}
1
+ const a12_0x2339c5=a12_0x11f5;(function(_0x2df3bf,_0x1f7219){const _0xda48da=a12_0x11f5,_0x413199=_0x2df3bf();while(!![]){try{const _0x3b969f=-parseInt(_0xda48da(0x17b))/0x1+-parseInt(_0xda48da(0x177))/0x2+-parseInt(_0xda48da(0x17e))/0x3*(parseInt(_0xda48da(0x188))/0x4)+parseInt(_0xda48da(0x184))/0x5*(parseInt(_0xda48da(0x171))/0x6)+-parseInt(_0xda48da(0x176))/0x7*(-parseInt(_0xda48da(0x185))/0x8)+parseInt(_0xda48da(0x189))/0x9*(parseInt(_0xda48da(0x186))/0xa)+-parseInt(_0xda48da(0x179))/0xb*(-parseInt(_0xda48da(0x175))/0xc);if(_0x3b969f===_0x1f7219)break;else _0x413199['push'](_0x413199['shift']());}catch(_0x4d8219){_0x413199['push'](_0x413199['shift']());}}}(a12_0x4a9b,0xcca67));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';const pagesDir=resolve(process[a12_0x2339c5(0x18a)](),a12_0x2339c5(0x187));function a12_0x11f5(_0x39338c,_0x41bbdb){_0x39338c=_0x39338c-0x16e;const _0x4a9b80=a12_0x4a9b();let _0x11f55b=_0x4a9b80[_0x39338c];return _0x11f55b;}export function extractTitleFromComment(_0xa0b231){const _0x254bbc=a12_0x2339c5;try{const _0xd28c16=readFileSync(_0xa0b231,'utf-8'),_0xf41aa0=_0xd28c16[_0x254bbc(0x183)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xf41aa0&&_0xf41aa0[0x1]){const _0x363f40=_0xf41aa0[0x1],_0x4146ac=_0x363f40[_0x254bbc(0x183)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x4146ac&&_0x4146ac[0x1])return _0x4146ac[0x1][_0x254bbc(0x17d)]();}let _0x5b978b=null;const _0x3d2f14=_0xd28c16['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3d2f14&&_0x3d2f14[0x1]&&(_0x5b978b=_0x3d2f14[0x1]);if(!_0x5b978b){const _0x1e993f=_0xd28c16[_0x254bbc(0x183)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1e993f&&_0x1e993f[0x1]&&(_0x5b978b=_0x1e993f[0x1]);}if(_0x5b978b){const _0x1a8a04=new RegExp('\x5cb'+_0x5b978b+_0x254bbc(0x181)),_0x4f6995=_0xd28c16[_0x254bbc(0x183)](_0x1a8a04);if(_0x4f6995&&_0x4f6995[0x1])return _0x4f6995[0x1];return _0x5b978b;}return null;}catch(_0x28e353){return null;}}export function getLocalPages(_0x3ef59d=pagesDir,_0x47f0ad=pagesDir){const _0xd4f2e5=a12_0x2339c5;let _0x4abe4c=[];const _0x463370=readdirSync(_0x3ef59d);return _0x463370[_0xd4f2e5(0x172)](_0x5d346a=>{const _0x5a8061=_0xd4f2e5,_0xe4a570=join(_0x3ef59d,_0x5d346a),_0x2096d=statSync(_0xe4a570);if(_0x2096d&&_0x2096d[_0x5a8061(0x182)]())_0x4abe4c=_0x4abe4c[_0x5a8061(0x17f)](getLocalPages(_0xe4a570,_0x47f0ad));else{if(_0x5d346a[_0x5a8061(0x174)](_0x5a8061(0x170))){let _0x27c836=relative(_0x47f0ad,_0xe4a570);_0x27c836[_0x5a8061(0x174)](_0x5a8061(0x178))?_0x27c836=_0x27c836[_0x5a8061(0x180)](/index\.tsx$/,''):_0x27c836=_0x27c836['replace'](/\.tsx$/,'');_0x27c836[_0x5a8061(0x174)]('/')&&(_0x27c836=_0x27c836[_0x5a8061(0x173)](0x0,-0x1));const _0x102890=extractTitleFromComment(_0xe4a570),_0x2ef6ef=_0x102890||_0x27c836;_0x4abe4c[_0x5a8061(0x16f)]({'path':_0x27c836[_0x5a8061(0x17a)]('$',':'),'label':_0x2ef6ef});}}}),_0x4abe4c[_0xd4f2e5(0x17c)](_0xf7093a=>_0xf7093a[_0xd4f2e5(0x16e)]!=='');}function a12_0x4a9b(){const _0x46b09c=['endsWith','708TrviAP','6101816YEUiXq','2086876SfPsVC','index.tsx','268235YTbKjD','replaceAll','185518unVerh','filter','trim','729WWRfQQ','concat','replace','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','match','1242565MCJpRq','8CTAEmD','769690PKUGNw','src/pages','10628GTSoov','18fGSucP','cwd','path','push','.tsx','6YZSEaF','forEach','slice'];a12_0x4a9b=function(){return _0x46b09c;};return a12_0x4a9b();}
@@ -1 +1 @@
1
- function a13_0x5b3d(_0x36d70c,_0x53bf40){_0x36d70c=_0x36d70c-0x1d0;const _0xb324a7=a13_0xb324();let _0x5b3d55=_0xb324a7[_0x36d70c];return _0x5b3d55;}(function(_0x40165e,_0xad9d04){const _0x47f826=a13_0x5b3d,_0x5b591e=_0x40165e();while(!![]){try{const _0x2de45e=parseInt(_0x47f826(0x1db))/0x1+-parseInt(_0x47f826(0x1dd))/0x2*(parseInt(_0x47f826(0x1e6))/0x3)+-parseInt(_0x47f826(0x1dc))/0x4*(parseInt(_0x47f826(0x1f4))/0x5)+parseInt(_0x47f826(0x1da))/0x6*(parseInt(_0x47f826(0x1ea))/0x7)+-parseInt(_0x47f826(0x1d5))/0x8*(-parseInt(_0x47f826(0x1d0))/0x9)+-parseInt(_0x47f826(0x1f7))/0xa*(parseInt(_0x47f826(0x1f0))/0xb)+parseInt(_0x47f826(0x1eb))/0xc;if(_0x2de45e===_0xad9d04)break;else _0x5b591e['push'](_0x5b591e['shift']());}catch(_0x2a54ae){_0x5b591e['push'](_0x5b591e['shift']());}}}(a13_0xb324,0x464f0));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';function a13_0xb324(){const _0x59be40=['GET','99brRZrG','errorMsg','!\x20请使用以下方式之一:','push','189920WwPGax','children','label','568810zIIPgb','extend','info','登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录','2331JndJqG','status','parse','path','data','12784qEZcxZ','成功获取\x20','get-online-menu-list','获取菜单列表失败,HTTP状态码:\x20','isArray','3678EIZQlp','212314zZYsDU','12lpDupR','4cexrpR','resources','\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>','application/json','success','\x20个线上菜单','\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>','log','服务端返回空菜单列表','508674lEmnyF','正在获取线上菜单列表...\x20(appCode:\x20','flat','error','5859cEXYnq','1364448zFDMiM','length','map','未知错误'];a13_0xb324=function(){return _0x59be40;};return a13_0xb324();}import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';const config=readConfig();export async function getOnlineMenuList(){const _0x1ca3a3=a13_0x5b3d,_0x32138b=config?.['appcode'];if(!_0x32138b){const _0x4427dd='未提供应用AppCode,且配置中也没有默认值';return logger[_0x1ca3a3(0x1e9)](_0x1ca3a3(0x1d7),_0x4427dd),console[_0x1ca3a3(0x1e9)]('×\x20'+_0x4427dd),console[_0x1ca3a3(0x1e4)](_0x1ca3a3(0x1f2)),console[_0x1ca3a3(0x1e4)](_0x1ca3a3(0x1df)),console['log'](_0x1ca3a3(0x1e3)),[];}logger[_0x1ca3a3(0x1f9)]('get-online-menu-list',_0x1ca3a3(0x1e7)+_0x32138b+')');const _0x569ed0=await fetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x32138b,{'method':_0x1ca3a3(0x1ef),'headers':{'Content-Type':_0x1ca3a3(0x1e0),'Cookie':getCookie()}});if(!_0x569ed0['ok']){if(_0x569ed0[_0x1ca3a3(0x1d1)]===0x191){const _0x5d4903=_0x1ca3a3(0x1fa);logger[_0x1ca3a3(0x1e9)]('get-online-menu-list',_0x5d4903,{'status':_0x569ed0[_0x1ca3a3(0x1d1)]});throw new Error(_0x5d4903);}const _0x7959f1=_0x1ca3a3(0x1d8)+_0x569ed0[_0x1ca3a3(0x1d1)];logger[_0x1ca3a3(0x1e9)]('get-online-menu-list',_0x7959f1);throw new Error(_0x7959f1);}const _0x2f3036=await _0x569ed0['json']();if(!_0x2f3036[_0x1ca3a3(0x1e1)]){const _0x102be4='获取菜单列表失败:\x20'+(_0x2f3036[_0x1ca3a3(0x1f1)]||_0x1ca3a3(0x1ee));logger[_0x1ca3a3(0x1e9)](_0x1ca3a3(0x1d7),_0x102be4,{'errorCode':_0x2f3036['errorCode'],'errorMsg':_0x2f3036[_0x1ca3a3(0x1f1)]});throw new Error(_0x102be4);}if(!_0x2f3036[_0x1ca3a3(0x1d4)])return logger[_0x1ca3a3(0x1f9)](_0x1ca3a3(0x1d7),_0x1ca3a3(0x1e5)),[];return logger['info'](_0x1ca3a3(0x1d7),_0x1ca3a3(0x1d6)+_0x2f3036[_0x1ca3a3(0x1d4)][_0x1ca3a3(0x1ec)]+_0x1ca3a3(0x1e2)),_0x2f3036['data'][_0x1ca3a3(0x1ed)](formatMenuList)[_0x1ca3a3(0x1e8)]();}function formatMenuList(_0x2df56a){const _0x23bacc=a13_0x5b3d;let _0x42b00e=[];try{if(_0x2df56a[_0x23bacc(0x1f8)]?.[_0x23bacc(0x1de)]){const _0x55c4d6=JSON[_0x23bacc(0x1d2)](_0x2df56a['extend']['resources']);Array[_0x23bacc(0x1d9)](_0x55c4d6)&&(_0x42b00e=_0x55c4d6);}}catch(_0x15ab7e){}const _0x12b33d=[{'id':_0x2df56a['id'],'path':_0x2df56a[_0x23bacc(0x1d3)],'label':_0x2df56a[_0x23bacc(0x1f6)],'resources':_0x42b00e}];if(_0x2df56a[_0x23bacc(0x1f5)]&&_0x2df56a[_0x23bacc(0x1f5)][_0x23bacc(0x1ec)]>0x0)for(const _0x423693 of _0x2df56a[_0x23bacc(0x1f5)]){_0x12b33d[_0x23bacc(0x1f3)](...formatMenuList(_0x423693));}return _0x12b33d;}
1
+ function a13_0x36b8(_0x2e89bf,_0x544e7f){_0x2e89bf=_0x2e89bf-0x16a;const _0x733148=a13_0x7331();let _0x36b888=_0x733148[_0x2e89bf];return _0x36b888;}(function(_0xd69548,_0x59463b){const _0x111d26=a13_0x36b8,_0x565706=_0xd69548();while(!![]){try{const _0x18e51d=-parseInt(_0x111d26(0x18f))/0x1*(parseInt(_0x111d26(0x16a))/0x2)+parseInt(_0x111d26(0x172))/0x3*(parseInt(_0x111d26(0x177))/0x4)+-parseInt(_0x111d26(0x178))/0x5+parseInt(_0x111d26(0x182))/0x6+parseInt(_0x111d26(0x188))/0x7*(parseInt(_0x111d26(0x18a))/0x8)+-parseInt(_0x111d26(0x190))/0x9*(-parseInt(_0x111d26(0x191))/0xa)+-parseInt(_0x111d26(0x186))/0xb*(parseInt(_0x111d26(0x185))/0xc);if(_0x18e51d===_0x59463b)break;else _0x565706['push'](_0x565706['shift']());}catch(_0x5a6085){_0x565706['push'](_0x565706['shift']());}}}(a13_0x7331,0x3d226));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';function a13_0x7331(){const _0x1d35d6=['983028vdscAJ','55XLECtR','服务端返回空菜单列表','175IlvTpw','children','80336aaAvlI','appcode','flat','\x20个线上菜单','application/json','1JwPCWN','45YEkItK','553370CWtzEO','252508UoFGZc','errorMsg','status','info','获取菜单列表失败,HTTP状态码:\x20','length','正在获取线上菜单列表...\x20(appCode:\x20','isArray','6Hnvkkt','map','\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>','登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录','get-online-menu-list','403356ywFHJO','997465LOryRX','/smartapi/menu/find?appCode=','error','extend','path','success','GET','log','json','\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>','1538010ycsXSa','获取菜单列表失败:\x20','data'];a13_0x7331=function(){return _0x1d35d6;};return a13_0x7331();}const config=readConfig();export async function getOnlineMenuList(){const _0x22e39a=a13_0x36b8,_0x423ccd=config?.[_0x22e39a(0x18b)];if(!_0x423ccd){const _0x44b351='未提供应用AppCode,且配置中也没有默认值';return logger[_0x22e39a(0x17a)]('get-online-menu-list',_0x44b351),console[_0x22e39a(0x17a)]('×\x20'+_0x44b351),console[_0x22e39a(0x17f)]('!\x20请使用以下方式之一:'),console[_0x22e39a(0x17f)](_0x22e39a(0x181)),console['log'](_0x22e39a(0x174)),[];}logger[_0x22e39a(0x16d)](_0x22e39a(0x176),_0x22e39a(0x170)+_0x423ccd+')');const _0x7ce3b8=await fetch(getApiDomain()+_0x22e39a(0x179)+_0x423ccd,{'method':_0x22e39a(0x17e),'headers':{'Content-Type':_0x22e39a(0x18e),'Cookie':getCookie()}});if(!_0x7ce3b8['ok']){if(_0x7ce3b8['status']===0x191){const _0x2ace67=_0x22e39a(0x175);logger['error']('get-online-menu-list',_0x2ace67,{'status':_0x7ce3b8[_0x22e39a(0x16c)]});throw new Error(_0x2ace67);}const _0x1b5eea=_0x22e39a(0x16e)+_0x7ce3b8['status'];logger['error']('get-online-menu-list',_0x1b5eea);throw new Error(_0x1b5eea);}const _0x4cec48=await _0x7ce3b8[_0x22e39a(0x180)]();if(!_0x4cec48[_0x22e39a(0x17d)]){const _0x194506=_0x22e39a(0x183)+(_0x4cec48['errorMsg']||'未知错误');logger[_0x22e39a(0x17a)]('get-online-menu-list',_0x194506,{'errorCode':_0x4cec48['errorCode'],'errorMsg':_0x4cec48[_0x22e39a(0x16b)]});throw new Error(_0x194506);}if(!_0x4cec48['data'])return logger[_0x22e39a(0x16d)](_0x22e39a(0x176),_0x22e39a(0x187)),[];return logger['info'](_0x22e39a(0x176),'成功获取\x20'+_0x4cec48[_0x22e39a(0x184)]['length']+_0x22e39a(0x18d)),_0x4cec48[_0x22e39a(0x184)][_0x22e39a(0x173)](formatMenuList)[_0x22e39a(0x18c)]();}function formatMenuList(_0x13908c){const _0x4d9b6c=a13_0x36b8;let _0x3309da=[];try{if(_0x13908c[_0x4d9b6c(0x17b)]?.['resources']){const _0x133ab8=JSON['parse'](_0x13908c[_0x4d9b6c(0x17b)]['resources']);Array[_0x4d9b6c(0x171)](_0x133ab8)&&(_0x3309da=_0x133ab8);}}catch(_0x5a1cfc){}const _0x52d52d=[{'id':_0x13908c['id'],'path':_0x13908c[_0x4d9b6c(0x17c)],'label':_0x13908c['label'],'resources':_0x3309da}];if(_0x13908c[_0x4d9b6c(0x189)]&&_0x13908c[_0x4d9b6c(0x189)][_0x4d9b6c(0x16f)]>0x0)for(const _0x4dad70 of _0x13908c[_0x4d9b6c(0x189)]){_0x52d52d['push'](...formatMenuList(_0x4dad70));}return _0x52d52d;}
@@ -1 +1 @@
1
- function a15_0x8281(){const _0x3d137a=['337eZrjIb','1562199OMTKmI','获取菜单列表失败','3415689LPoOwy','8vJizLS','6007666xzocVZ','70543dgrZTp','1593510HnuBgm','then','message','470eFzgSh','879975TrAcbh','5658asjbzd','4OzELri'];a15_0x8281=function(){return _0x3d137a;};return a15_0x8281();}(function(_0x539eea,_0x4eb372){const _0x5149c8=a15_0x4b6b,_0x1ce1b1=_0x539eea();while(!![]){try{const _0x6b1469=parseInt(_0x5149c8(0xc8))/0x1*(-parseInt(_0x5149c8(0xc6))/0x2)+-parseInt(_0x5149c8(0xc9))/0x3*(-parseInt(_0x5149c8(0xc7))/0x4)+-parseInt(_0x5149c8(0xc5))/0x5+parseInt(_0x5149c8(0xcf))/0x6+-parseInt(_0x5149c8(0xcd))/0x7*(-parseInt(_0x5149c8(0xcc))/0x8)+parseInt(_0x5149c8(0xcb))/0x9+parseInt(_0x5149c8(0xc4))/0xa*(-parseInt(_0x5149c8(0xce))/0xb);if(_0x6b1469===_0x4eb372)break;else _0x1ce1b1['push'](_0x1ce1b1['shift']());}catch(_0x42ecc8){_0x1ce1b1['push'](_0x1ce1b1['shift']());}}}(a15_0x8281,0x90d92));import{useEffect,useState}from'react';function a15_0x4b6b(_0x36f959,_0x1b164c){_0x36f959=_0x36f959-0xc2;const _0x828193=a15_0x8281();let _0x4b6bce=_0x828193[_0x36f959];return _0x4b6bce;}import{getOnlineMenuList}from'./get-online-menu-list.js';export function useGetOnlineMenuList(){const [_0x5a01eb,_0x5cc821]=useState([]),[_0x3c6fb3,_0x116748]=useState(!![]),[_0x3b34eb,_0x1faf02]=useState('');return useEffect(()=>{const _0x30d15a=a15_0x4b6b;_0x116748(!![]),_0x1faf02(''),getOnlineMenuList()[_0x30d15a(0xc2)](_0x5cc821)['catch'](_0x134f12=>{const _0x1c516d=_0x30d15a;_0x1faf02(_0x134f12[_0x1c516d(0xc3)]||_0x1c516d(0xca));})['finally'](()=>_0x116748(![]));},[]),{'menuList':_0x5a01eb,'loading':_0x3c6fb3,'error':_0x3b34eb};}
1
+ (function(_0x3e81bf,_0x27bf45){const _0x4473d2=a15_0x1f0e,_0x2a7a91=_0x3e81bf();while(!![]){try{const _0x1ac07e=-parseInt(_0x4473d2(0x12c))/0x1+parseInt(_0x4473d2(0x136))/0x2+-parseInt(_0x4473d2(0x137))/0x3*(-parseInt(_0x4473d2(0x130))/0x4)+parseInt(_0x4473d2(0x132))/0x5*(parseInt(_0x4473d2(0x135))/0x6)+parseInt(_0x4473d2(0x12f))/0x7*(-parseInt(_0x4473d2(0x131))/0x8)+-parseInt(_0x4473d2(0x139))/0x9*(parseInt(_0x4473d2(0x13a))/0xa)+parseInt(_0x4473d2(0x12b))/0xb;if(_0x1ac07e===_0x27bf45)break;else _0x2a7a91['push'](_0x2a7a91['shift']());}catch(_0x3d1214){_0x2a7a91['push'](_0x2a7a91['shift']());}}}(a15_0xba7c,0x5ba1f));import{useEffect,useState}from'react';function a15_0xba7c(){const _0x5938d7=['631951CWkqFi','获取菜单列表失败','then','1372714lGjsZN','4IoXOij','8tuKGxp','5saWPyC','finally','catch','166932zUgaIb','246996GYPQFo','629388OcLQEc','message','2764683mfVgcj','20QEhacT','16023018fFHnyC'];a15_0xba7c=function(){return _0x5938d7;};return a15_0xba7c();}import{getOnlineMenuList}from'./get-online-menu-list.js';function a15_0x1f0e(_0x41be9d,_0x546718){_0x41be9d=_0x41be9d-0x12b;const _0xba7cb4=a15_0xba7c();let _0x1f0e2a=_0xba7cb4[_0x41be9d];return _0x1f0e2a;}export function useGetOnlineMenuList(){const [_0x3f762b,_0x6a625a]=useState([]),[_0x3c47cb,_0x2e48d2]=useState(!![]),[_0x1f4caa,_0xc1d13a]=useState('');return useEffect(()=>{const _0x37f151=a15_0x1f0e;_0x2e48d2(!![]),_0xc1d13a(''),getOnlineMenuList()[_0x37f151(0x12e)](_0x6a625a)[_0x37f151(0x134)](_0x16170e=>{const _0x1bf740=_0x37f151;_0xc1d13a(_0x16170e[_0x1bf740(0x138)]||_0x1bf740(0x12d));})[_0x37f151(0x133)](()=>_0x2e48d2(![]));},[]),{'menuList':_0x3f762b,'loading':_0x3c47cb,'error':_0x1f4caa};}
@@ -1 +1 @@
1
- (function(_0x52ea8a,_0x2d234d){const _0x2c8be2=a16_0x2b50,_0x3f7711=_0x52ea8a();while(!![]){try{const _0x2a3e97=parseInt(_0x2c8be2(0x1e0))/0x1+-parseInt(_0x2c8be2(0x1d9))/0x2*(-parseInt(_0x2c8be2(0x1dd))/0x3)+-parseInt(_0x2c8be2(0x1d8))/0x4+parseInt(_0x2c8be2(0x1df))/0x5+parseInt(_0x2c8be2(0x1da))/0x6+parseInt(_0x2c8be2(0x1dc))/0x7*(-parseInt(_0x2c8be2(0x1d7))/0x8)+parseInt(_0x2c8be2(0x1de))/0x9;if(_0x2a3e97===_0x2d234d)break;else _0x3f7711['push'](_0x3f7711['shift']());}catch(_0x61262a){_0x3f7711['push'](_0x3f7711['shift']());}}}(a16_0x1e0d,0xd1053));function a16_0x1e0d(){const _0x7607d1=['4jEqaJr','1341378GzjaRw','fill','2212pBzAcW','1490145CHytUY','8514936RgohQJ','689575QCMRKb','379952CZwXEh','join','7536WTCBoj','6108580lptVCb'];a16_0x1e0d=function(){return _0x7607d1;};return a16_0x1e0d();}export function getRemainingSpaces(_0x2a35e5,_0x283bd4){const _0x88e31d=a16_0x2b50,_0x4d9d92=getStringWidth(_0x283bd4);return Array(Math['max'](0x0,_0x2a35e5-_0x4d9d92))[_0x88e31d(0x1db)]('\x20')[_0x88e31d(0x1d6)]('');}function a16_0x2b50(_0x114011,_0x2e3d1e){_0x114011=_0x114011-0x1d6;const _0x1e0db1=a16_0x1e0d();let _0x2b5088=_0x1e0db1[_0x114011];return _0x2b5088;}export function getMaxWidth(_0xd28780,_0x565c12=0x2){let _0x1976a3='',_0x2cc6cf=0x0;for(const _0x3730d7 of _0xd28780){const _0x599073=getStringWidth(_0x3730d7);_0x599073>_0x2cc6cf&&(_0x2cc6cf=_0x599073,_0x1976a3=_0x3730d7);}return _0x1976a3+'\x20'['repeat'](_0x565c12);}export function getStringWidth(_0x454975){let _0x2f8c22=0x0;for(const _0x2ea74a of _0x454975){/[\u4e00-\u9fa5]/['test'](_0x2ea74a)?_0x2f8c22+=0x2:_0x2f8c22+=0x1;}return _0x2f8c22;}
1
+ (function(_0x34f29f,_0x3eda82){const _0xe6ca64=a16_0x54ac,_0x22c33e=_0x34f29f();while(!![]){try{const _0x324e35=parseInt(_0xe6ca64(0x17b))/0x1*(-parseInt(_0xe6ca64(0x180))/0x2)+parseInt(_0xe6ca64(0x178))/0x3*(-parseInt(_0xe6ca64(0x182))/0x4)+parseInt(_0xe6ca64(0x181))/0x5+-parseInt(_0xe6ca64(0x17e))/0x6+parseInt(_0xe6ca64(0x17c))/0x7*(-parseInt(_0xe6ca64(0x179))/0x8)+parseInt(_0xe6ca64(0x17d))/0x9+-parseInt(_0xe6ca64(0x17f))/0xa;if(_0x324e35===_0x3eda82)break;else _0x22c33e['push'](_0x22c33e['shift']());}catch(_0x490700){_0x22c33e['push'](_0x22c33e['shift']());}}}(a16_0x2465,0x30b41));function a16_0x2465(){const _0x202bd6=['2989620VbAVAm','390396IEmVDE','1272730FQlOMK','113734FfjfWY','1258290IFZeKs','8XXZFnk','fill','max','1371NwlGVX','3544XFBXYV','repeat','1HvkpOO','2121FeVepH'];a16_0x2465=function(){return _0x202bd6;};return a16_0x2465();}export function getRemainingSpaces(_0x37c2c1,_0x1b568b){const _0x36e65e=a16_0x54ac,_0x1365f8=getStringWidth(_0x1b568b);return Array(Math[_0x36e65e(0x177)](0x0,_0x37c2c1-_0x1365f8))[_0x36e65e(0x176)]('\x20')['join']('');}export function getMaxWidth(_0x426e5c,_0x311792=0x2){const _0x1d9457=a16_0x54ac;let _0x1a4c49='',_0x1aa540=0x0;for(const _0x528aa4 of _0x426e5c){const _0x721ef0=getStringWidth(_0x528aa4);_0x721ef0>_0x1aa540&&(_0x1aa540=_0x721ef0,_0x1a4c49=_0x528aa4);}return _0x1a4c49+'\x20'[_0x1d9457(0x17a)](_0x311792);}function a16_0x54ac(_0x3096a5,_0x3ff0e4){_0x3096a5=_0x3096a5-0x176;const _0x2465fb=a16_0x2465();let _0x54acee=_0x2465fb[_0x3096a5];return _0x54acee;}export function getStringWidth(_0x769aa3){let _0x11a0d0=0x0;for(const _0x2599d5 of _0x769aa3){/[\u4e00-\u9fa5]/['test'](_0x2599d5)?_0x11a0d0+=0x2:_0x11a0d0+=0x1;}return _0x11a0d0;}
@@ -1 +1 @@
1
- function a17_0x5d71(_0x14bf22,_0x2debcf){_0x14bf22=_0x14bf22-0x73;const _0x84de4f=a17_0x84de();let _0x5d714a=_0x84de4f[_0x14bf22];return _0x5d714a;}(function(_0x32eea9,_0x8ecf72){const _0x3b4037=a17_0x5d71,_0xfc721d=_0x32eea9();while(!![]){try{const _0x5c2ab3=parseInt(_0x3b4037(0x79))/0x1*(-parseInt(_0x3b4037(0x78))/0x2)+parseInt(_0x3b4037(0x77))/0x3+parseInt(_0x3b4037(0x73))/0x4*(parseInt(_0x3b4037(0x75))/0x5)+-parseInt(_0x3b4037(0x74))/0x6+parseInt(_0x3b4037(0x7a))/0x7+parseInt(_0x3b4037(0x7c))/0x8+-parseInt(_0x3b4037(0x7d))/0x9;if(_0x5c2ab3===_0x8ecf72)break;else _0xfc721d['push'](_0xfc721d['shift']());}catch(_0x48f3c6){_0xfc721d['push'](_0xfc721d['shift']());}}}(a17_0x84de,0xdea14));export function isValidJsHttpsUrl(_0x35cce0){const _0x152bf3=a17_0x5d71;return/^https:\/\/.+\.js(\?.*)?$/[_0x152bf3(0x7b)](_0x35cce0[_0x152bf3(0x7e)]());}export function isValidCssHttpsUrl(_0x4a4514){const _0x456a18=a17_0x5d71;return/^https:\/\/.+\.css(\?.*)?$/[_0x456a18(0x7b)](_0x4a4514[_0x456a18(0x7e)]());}function a17_0x84de(){const _0x1c39f3=['test','1238336snEBAB','4751469LAeznB','trim','4432SwpSiV','7380366wsBVRg','7775PYNyJV','HEAD','581136NdXoPu','2ocQRWI','1206517oHKxGH','12634769FTqLjy'];a17_0x84de=function(){return _0x1c39f3;};return a17_0x84de();}export async function isUrlReachable(_0x1ea5d0){const _0x9d4a72=a17_0x5d71;try{const _0x27b5d1=await fetch(_0x1ea5d0,{'method':_0x9d4a72(0x76)});return _0x27b5d1['ok'];}catch{return![];}}
1
+ (function(_0x66850a,_0x2dfb34){const _0x2a3d74=a17_0xc0fa,_0x402e45=_0x66850a();while(!![]){try{const _0x3b68a7=-parseInt(_0x2a3d74(0x147))/0x1*(parseInt(_0x2a3d74(0x142))/0x2)+parseInt(_0x2a3d74(0x141))/0x3+-parseInt(_0x2a3d74(0x143))/0x4+-parseInt(_0x2a3d74(0x140))/0x5*(-parseInt(_0x2a3d74(0x13d))/0x6)+-parseInt(_0x2a3d74(0x145))/0x7+parseInt(_0x2a3d74(0x144))/0x8+parseInt(_0x2a3d74(0x148))/0x9;if(_0x3b68a7===_0x2dfb34)break;else _0x402e45['push'](_0x402e45['shift']());}catch(_0x20d0d9){_0x402e45['push'](_0x402e45['shift']());}}}(a17_0x329a,0xeb6ea));function a17_0xc0fa(_0x7421a3,_0x109f98){_0x7421a3=_0x7421a3-0x13d;const _0x329ace=a17_0x329a();let _0xc0fa7a=_0x329ace[_0x7421a3];return _0xc0fa7a;}export function isValidJsHttpsUrl(_0x29156a){const _0xb992eb=a17_0xc0fa;return/^https:\/\/.+\.js(\?.*)?$/[_0xb992eb(0x13f)](_0x29156a[_0xb992eb(0x146)]());}function a17_0x329a(){const _0x4064b4=['14802nekBWK','4504776rVhAkQ','3529136oUrTFi','4821068lqxeMq','trim','237QAupUF','30669615HJijRU','6EmdHOF','HEAD','test','2464335eFlTUF','574623fkoRgg'];a17_0x329a=function(){return _0x4064b4;};return a17_0x329a();}export function isValidCssHttpsUrl(_0x555c1d){const _0x351b30=a17_0xc0fa;return/^https:\/\/.+\.css(\?.*)?$/[_0x351b30(0x13f)](_0x555c1d[_0x351b30(0x146)]());}export async function isUrlReachable(_0x445c46){const _0x4f5d78=a17_0xc0fa;try{const _0x18ac24=await fetch(_0x445c46,{'method':_0x4f5d78(0x13e)});return _0x18ac24['ok'];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x533432,_0x2aee56){const _0x1987d5=a18_0x1890,_0x1b0921=_0x533432();while(!![]){try{const _0xded2c4=parseInt(_0x1987d5(0x1fa))/0x1*(parseInt(_0x1987d5(0x1f2))/0x2)+-parseInt(_0x1987d5(0x1eb))/0x3*(-parseInt(_0x1987d5(0x1f8))/0x4)+-parseInt(_0x1987d5(0x1f3))/0x5*(parseInt(_0x1987d5(0x1ed))/0x6)+parseInt(_0x1987d5(0x1e8))/0x7+parseInt(_0x1987d5(0x1ee))/0x8*(parseInt(_0x1987d5(0x1e6))/0x9)+-parseInt(_0x1987d5(0x1f6))/0xa*(parseInt(_0x1987d5(0x1f0))/0xb)+parseInt(_0x1987d5(0x1ec))/0xc*(-parseInt(_0x1987d5(0x1e9))/0xd);if(_0xded2c4===_0x2aee56)break;else _0x1b0921['push'](_0x1b0921['shift']());}catch(_0x450368){_0x1b0921['push'](_0x1b0921['shift']());}}}(a18_0x492d,0xde4ad));import{jsx as a18_0x51d52c,jsxs as a18_0x239b17}from'react/jsx-runtime';import{Text,Box}from'ink';function a18_0x492d(){const _0x167f20=['join','1glDZzZ','18CWmOah','待更新的菜单列表:','3436972ZsYpml','5219565ITmLHP','filter','3ZmHOXN','60RsCckZ','211836CPwfYo','5963472hwCAEU','flat','33RRlXSx','*\x20待更新的菜单&资源链接','2639932ffIgBq','115pYExrP','map','待更新的资源链接:','3141620gROKUo','length','5482912VQwDVW'];a18_0x492d=function(){return _0x167f20;};return a18_0x492d();}function a18_0x1890(_0x592f6c,_0x41cbb1){_0x592f6c=_0x592f6c-0x1e6;const _0x492d7e=a18_0x492d();let _0x1890fb=_0x492d7e[_0x592f6c];return _0x1890fb;}export function CurrentMenuCdnContent(_0x5d4330){const _0x3c1bec=a18_0x1890,{menuList:_0x4628b3}=_0x5d4330,_0x3468e1=_0x4628b3[_0x3c1bec(0x1ea)](_0x5a7e1c=>_0x5a7e1c['resources'][_0x3c1bec(0x1f7)]),_0x531a6b=Array['from'](new Set(_0x4628b3[_0x3c1bec(0x1f4)](_0x581877=>_0x581877['resources'])[_0x3c1bec(0x1ef)]()));return a18_0x239b17(Box,{'flexDirection':'column','children':[a18_0x51d52c(Text,{'color':'cyan','children':_0x3c1bec(0x1f1)}),a18_0x239b17(Box,{'marginTop':0x1,'flexDirection':'column','children':[a18_0x239b17(Text,{'bold':!![],'children':['\x20\x20',_0x3c1bec(0x1e7)]}),a18_0x239b17(Text,{'children':['\x20\x20',_0x3468e1[_0x3c1bec(0x1f4)](_0x8529b6=>_0x8529b6['label'])[_0x3c1bec(0x1f9)](',\x20')]})]}),a18_0x51d52c(Box,{'marginTop':0x1,'children':a18_0x239b17(Text,{'bold':!![],'children':['\x20\x20',_0x3c1bec(0x1f5)]})}),_0x531a6b['map'](_0x41b86c=>a18_0x51d52c(Box,{'children':a18_0x239b17(Text,{'children':['\x20\x20',_0x41b86c]})},_0x41b86c))]});}
1
+ function a18_0x4747(){const _0x3c98ce=['join','待更新的资源链接:','5625620XQZWIc','12iTupjz','8503821PmqcQa','map','2779325eIrBsa','cyan','4259104RKjCyL','*\x20待更新的菜单&资源链接','resources','flat','length','2258272UiyjFD','filter','78388ISdPSR','待更新的菜单列表:','label','8sitsCm','7selhtF','from','39912GegYXo'];a18_0x4747=function(){return _0x3c98ce;};return a18_0x4747();}(function(_0x464920,_0x5aa050){const _0x8a5125=a18_0x2173,_0x76c5fd=_0x464920();while(!![]){try{const _0x38ea54=-parseInt(_0x8a5125(0x114))/0x1*(parseInt(_0x8a5125(0x111))/0x2)+-parseInt(_0x8a5125(0x101))/0x3+parseInt(_0x8a5125(0x10a))/0x4+parseInt(_0x8a5125(0x108))/0x5*(parseInt(_0x8a5125(0x105))/0x6)+-parseInt(_0x8a5125(0x115))/0x7*(-parseInt(_0x8a5125(0x10f))/0x8)+-parseInt(_0x8a5125(0x106))/0x9+-parseInt(_0x8a5125(0x104))/0xa;if(_0x38ea54===_0x5aa050)break;else _0x76c5fd['push'](_0x76c5fd['shift']());}catch(_0x4f2ca5){_0x76c5fd['push'](_0x76c5fd['shift']());}}}(a18_0x4747,0x98777));function a18_0x2173(_0x1ed983,_0x2cc850){_0x1ed983=_0x1ed983-0x100;const _0x47471d=a18_0x4747();let _0x217371=_0x47471d[_0x1ed983];return _0x217371;}import{jsx as a18_0x50c4b1,jsxs as a18_0x307098}from'react/jsx-runtime';import{Text,Box}from'ink';export function CurrentMenuCdnContent(_0x438aad){const _0x26785a=a18_0x2173,{menuList:_0x4024d1}=_0x438aad,_0x9ff2f6=_0x4024d1[_0x26785a(0x110)](_0x51f029=>_0x51f029[_0x26785a(0x10c)][_0x26785a(0x10e)]),_0x374d89=Array[_0x26785a(0x100)](new Set(_0x4024d1[_0x26785a(0x107)](_0x3eff34=>_0x3eff34[_0x26785a(0x10c)])[_0x26785a(0x10d)]()));return a18_0x307098(Box,{'flexDirection':'column','children':[a18_0x50c4b1(Text,{'color':_0x26785a(0x109),'children':_0x26785a(0x10b)}),a18_0x307098(Box,{'marginTop':0x1,'flexDirection':'column','children':[a18_0x307098(Text,{'bold':!![],'children':['\x20\x20',_0x26785a(0x112)]}),a18_0x307098(Text,{'children':['\x20\x20',_0x9ff2f6['map'](_0x1b58f9=>_0x1b58f9[_0x26785a(0x113)])[_0x26785a(0x102)](',\x20')]})]}),a18_0x50c4b1(Box,{'marginTop':0x1,'children':a18_0x307098(Text,{'bold':!![],'children':['\x20\x20',_0x26785a(0x103)]})}),_0x374d89[_0x26785a(0x107)](_0x2f6f4d=>a18_0x50c4b1(Box,{'children':a18_0x307098(Text,{'children':['\x20\x20',_0x2f6f4d]})},_0x2f6f4d))]});}
@@ -1 +1 @@
1
- (function(_0x19d3d1,_0x3e2642){const _0x1c09f0=a19_0x6746,_0x4115a2=_0x19d3d1();while(!![]){try{const _0x123db5=parseInt(_0x1c09f0(0x1e8))/0x1*(-parseInt(_0x1c09f0(0x1e4))/0x2)+parseInt(_0x1c09f0(0x1e9))/0x3*(parseInt(_0x1c09f0(0x1df))/0x4)+-parseInt(_0x1c09f0(0x1e5))/0x5+parseInt(_0x1c09f0(0x1e0))/0x6+-parseInt(_0x1c09f0(0x1e1))/0x7*(parseInt(_0x1c09f0(0x1ea))/0x8)+-parseInt(_0x1c09f0(0x1e2))/0x9*(parseInt(_0x1c09f0(0x1ee))/0xa)+parseInt(_0x1c09f0(0x1ed))/0xb;if(_0x123db5===_0x3e2642)break;else _0x4115a2['push'](_0x4115a2['shift']());}catch(_0x4ce816){_0x4115a2['push'](_0x4115a2['shift']());}}}(a19_0x173f,0xe2b15));import{jsx as a19_0x1e273e,jsxs as a19_0x29db34}from'react/jsx-runtime';import{Text,Box}from'ink';function a19_0x173f(){const _0x4ce561=['41316clmhAR','9523626gzYRxm','2961497MBPRCi','63iRevKi','green','6XBFMua','383770gIbaMr','CSS\x20链接:\x20','column','604259lvWNyL','246IKiOKE','32bmqWke','JS\x20链接:\x20','cyan','40738588LZQtYF','2324870ZlHTZq'];a19_0x173f=function(){return _0x4ce561;};return a19_0x173f();}function a19_0x6746(_0x2d010d,_0x5c03a5){_0x2d010d=_0x2d010d-0x1df;const _0x173f46=a19_0x173f();let _0x674691=_0x173f46[_0x2d010d];return _0x674691;}export function InputCdnAsset(_0x35bcc7){const _0x44dd1e=a19_0x6746,{jsCdnUrl:_0x4ec8fa,cssCdnUrl:_0x931fc4}=_0x35bcc7;return a19_0x29db34(Box,{'flexDirection':_0x44dd1e(0x1e7),'marginTop':0x1,'children':[a19_0x1e273e(Text,{'color':_0x44dd1e(0x1ec),'children':'*\x20已输入的资源资源'}),a19_0x29db34(Box,{'children':[a19_0x29db34(Text,{'children':['\x20\x20',_0x44dd1e(0x1eb)]}),a19_0x1e273e(Text,{'color':_0x44dd1e(0x1e3),'children':_0x4ec8fa})]}),a19_0x29db34(Box,{'children':[a19_0x29db34(Text,{'children':['\x20\x20',_0x44dd1e(0x1e6)]}),a19_0x1e273e(Text,{'color':_0x44dd1e(0x1e3),'children':_0x931fc4})]})]});}
1
+ (function(_0x10523d,_0xb95773){const _0x242a68=a19_0x2970,_0x21ae79=_0x10523d();while(!![]){try{const _0x3c2a7f=parseInt(_0x242a68(0x80))/0x1*(-parseInt(_0x242a68(0x77))/0x2)+-parseInt(_0x242a68(0x81))/0x3+parseInt(_0x242a68(0x76))/0x4*(-parseInt(_0x242a68(0x74))/0x5)+parseInt(_0x242a68(0x79))/0x6*(parseInt(_0x242a68(0x7a))/0x7)+-parseInt(_0x242a68(0x7c))/0x8*(-parseInt(_0x242a68(0x7b))/0x9)+-parseInt(_0x242a68(0x78))/0xa*(parseInt(_0x242a68(0x7f))/0xb)+parseInt(_0x242a68(0x83))/0xc*(parseInt(_0x242a68(0x82))/0xd);if(_0x3c2a7f===_0xb95773)break;else _0x21ae79['push'](_0x21ae79['shift']());}catch(_0x48508b){_0x21ae79['push'](_0x21ae79['shift']());}}}(a19_0x319f,0xa0e19));function a19_0x2970(_0x1321a7,_0x4b22e2){_0x1321a7=_0x1321a7-0x74;const _0x319fde=a19_0x319f();let _0x29701d=_0x319fde[_0x1321a7];return _0x29701d;}import{jsx as a19_0x8c9cd3,jsxs as a19_0x275e91}from'react/jsx-runtime';function a19_0x319f(){const _0x43fdda=['8877ddxnzs','3rSRkkP','1435020yfxbzY','481QOBxeg','331116RRPrLI','JS\x20链接:\x20','115dyNcWt','green','62096LtBRqy','388478tFXDqb','13480WoGCps','2136174ZaXabI','21lDsxhT','72261mfxsvt','1072kAgfRI','column','cyan'];a19_0x319f=function(){return _0x43fdda;};return a19_0x319f();}import{Text,Box}from'ink';export function InputCdnAsset(_0x585972){const _0x51fbb6=a19_0x2970,{jsCdnUrl:_0xf4836b,cssCdnUrl:_0x45c2f7}=_0x585972;return a19_0x275e91(Box,{'flexDirection':_0x51fbb6(0x7d),'marginTop':0x1,'children':[a19_0x8c9cd3(Text,{'color':_0x51fbb6(0x7e),'children':'*\x20已输入的资源资源'}),a19_0x275e91(Box,{'children':[a19_0x275e91(Text,{'children':['\x20\x20',_0x51fbb6(0x84)]}),a19_0x8c9cd3(Text,{'color':'green','children':_0xf4836b})]}),a19_0x275e91(Box,{'children':[a19_0x275e91(Text,{'children':['\x20\x20','CSS\x20链接:\x20']}),a19_0x8c9cd3(Text,{'color':_0x51fbb6(0x75),'children':_0x45c2f7})]})]});}
@@ -1 +1 @@
1
- (function(_0x3c1213,_0x12f091){const _0x283d9c=a20_0x246c,_0x57e792=_0x3c1213();while(!![]){try{const _0x723b7b=-parseInt(_0x283d9c(0x169))/0x1*(parseInt(_0x283d9c(0x175))/0x2)+parseInt(_0x283d9c(0x191))/0x3+-parseInt(_0x283d9c(0x172))/0x4*(parseInt(_0x283d9c(0x174))/0x5)+parseInt(_0x283d9c(0x193))/0x6*(parseInt(_0x283d9c(0x173))/0x7)+-parseInt(_0x283d9c(0x16c))/0x8+parseInt(_0x283d9c(0x194))/0x9*(-parseInt(_0x283d9c(0x18d))/0xa)+-parseInt(_0x283d9c(0x17e))/0xb*(-parseInt(_0x283d9c(0x16a))/0xc);if(_0x723b7b===_0x12f091)break;else _0x57e792['push'](_0x57e792['shift']());}catch(_0x37c641){_0x57e792['push'](_0x57e792['shift']());}}}(a20_0x4e2d,0x8e753));import{jsx as a20_0x323aa1,jsxs as a20_0x28277c,Fragment as a20_0x453577}from'react/jsx-runtime';import{Text,Box,useInput,useApp,render}from'ink';import{useEffect,useState}from'react';import a20_0x4520bb from'ink-spinner';import{useGetOnlineMenuList}from'../app-menu/use-get-online-menu-list.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../app-menu/valid-url.js';import{CurrentMenuCdnContent}from'./current-content.js';import{InputCdnAsset}from'./input-cdn-asset.js';function a20_0x246c(_0x1a596f,_0x4922fe){_0x1a596f=_0x1a596f-0x167;const _0x4e2d69=a20_0x4e2d();let _0x246cdb=_0x4e2d69[_0x1a596f];return _0x246cdb;}import{updateMenuCdnUrl}from'./update-menu-cdn-url.js';import.meta.main&&render(a20_0x323aa1(AppMenuUpdateCdn,{}));function a20_0x4e2d(){const _0x544db6=['gray','input-css','lovrabet\x20auth','!\x20未找到菜单资源链接','input-js','10qkgjaK','map','green','red','330447NCVZVH','JS\x20链接无法访问','1154472LnWLqE','6604308lazBJI','value','backspace','creating','√\x20更新成功','142zrbkuT','1011324jkcaEJ','trim','389960hgsNsJ','dots','\x20资源正在同步中...','length','\x20←\x20','all','45932eDHGBb','28JiNjzj','165TVPYGE','4432TCHxiL','leftArrow','\x20正在获取线上菜单资源链接...','path','updated','CSS\x20链接无法访问','upArrow','resources','CSS\x20链接:\x20','154EXYQqp','downArrow','slice','need-confirm','column','请输入有效的\x20CSS\x20https\x20链接','label','cancel','return','提示:使用\x20'];a20_0x4e2d=function(){return _0x544db6;};return a20_0x4e2d();}export function AppMenuUpdateCdn(){const _0x1cf917=a20_0x246c,{exit:_0x6b2e06}=useApp(),{loading:_0x21bd5d,menuList:_0x4f5235,error:_0x155f27}=useGetOnlineMenuList(),[_0x4f6077,_0x1bc964]=useState('ok'),[_0x5d75c4,_0x5e78de]=useState(_0x1cf917(0x18c)),[_0x215099,_0x5592ef]=useState(''),[_0x48d3ae,_0x1b0695]=useState(''),[_0x1e28ab,_0x90a324]=useState(''),[_0x193bfd,_0x3021da]=useState(''),_0x2c51d9=Array['from'](new Set(_0x4f5235[_0x1cf917(0x18e)](_0x2f1125=>_0x2f1125[_0x1cf917(0x17c)])['flat']()));useEffect(()=>{const _0x121bf3=_0x1cf917;_0x5d75c4===_0x121bf3(0x179)&&setTimeout(_0x6b2e06,0x32);},[_0x5d75c4]),useInput(async(_0x1660d1,_0x2b70e3)=>{const _0x4259ee=_0x1cf917;if(_0x5d75c4==='input-js'){if(_0x2b70e3['return']){const _0x305fc9=_0x1e28ab[_0x4259ee(0x16b)]();if(_0x305fc9==='')return;if(!isValidJsHttpsUrl(_0x305fc9)){_0x3021da('请输入有效的\x20JS\x20https\x20链接');return;}if(!await isUrlReachable(_0x305fc9)){_0x3021da(_0x4259ee(0x192));return;}_0x5592ef(_0x305fc9),_0x90a324(''),_0x3021da(''),_0x5e78de(_0x4259ee(0x189));return;}if(_0x2b70e3[_0x4259ee(0x196)]||_0x2b70e3['delete']){_0x90a324(_0x558da3=>_0x558da3[_0x4259ee(0x180)](0x0,-0x1)),_0x3021da('');return;}_0x90a324(_0x5a5829=>_0x5a5829+_0x1660d1);return;}if(_0x5d75c4===_0x4259ee(0x189)){if(_0x2b70e3[_0x4259ee(0x186)]){const _0x4d5f5c=_0x1e28ab['trim']();if(_0x4d5f5c==='')return;if(!isValidCssHttpsUrl(_0x4d5f5c)){_0x3021da(_0x4259ee(0x183));return;}if(!await isUrlReachable(_0x4d5f5c)){_0x3021da(_0x4259ee(0x17a));return;}_0x1b0695(_0x4d5f5c),_0x90a324(''),_0x3021da(''),_0x5e78de('need-confirm');return;}if(_0x2b70e3['backspace']||_0x2b70e3['delete']){_0x90a324(_0x5b60b5=>_0x5b60b5[_0x4259ee(0x180)](0x0,-0x1)),_0x3021da('');return;}_0x90a324(_0x23758e=>_0x23758e+_0x1660d1);return;}if(_0x5d75c4===_0x4259ee(0x181)){(_0x2b70e3[_0x4259ee(0x17b)]||_0x2b70e3[_0x4259ee(0x17f)]||_0x2b70e3[_0x4259ee(0x176)]||_0x2b70e3['rightArrow'])&&_0x1bc964(_0x4bff2d=>_0x4bff2d==='ok'?_0x4259ee(0x185):'ok');if(_0x2b70e3[_0x4259ee(0x186)]){_0x5e78de(_0x4259ee(0x167));if(_0x4f6077==='ok')await Promise[_0x4259ee(0x171)](_0x4f5235[_0x4259ee(0x18e)](_0x3f9ac4=>{const _0x30bda8=_0x4259ee,_0x4761f1={'id':_0x3f9ac4['id'],'label':_0x3f9ac4[_0x30bda8(0x184)],'path':_0x3f9ac4[_0x30bda8(0x178)],'resources':[_0x215099,_0x48d3ae]};if(_0x3f9ac4[_0x30bda8(0x17c)][_0x30bda8(0x16f)]===0x0)return Promise['resolve']();return updateMenuCdnUrl(_0x4761f1);})),await new Promise(_0x597c8a=>setTimeout(_0x597c8a,0x3e8)),_0x5e78de('updated');else _0x4f6077===_0x4259ee(0x185)&&_0x6b2e06();}}});if(_0x21bd5d)return a20_0x28277c(Box,{'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x323aa1(Text,{}),a20_0x323aa1(a20_0x4520bb,{'type':_0x1cf917(0x16d)}),a20_0x323aa1(Text,{'children':_0x1cf917(0x177)})]});if(_0x155f27)return a20_0x28277c(Box,{'flexDirection':_0x1cf917(0x182),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28277c(Text,{'color':_0x1cf917(0x190),'children':['✗\x20',_0x155f27]}),a20_0x28277c(Box,{'marginTop':0x1,'children':[a20_0x323aa1(Text,{'color':_0x1cf917(0x188),'children':_0x1cf917(0x187)}),a20_0x323aa1(Text,{'color':'cyan','children':_0x1cf917(0x18a)}),a20_0x323aa1(Text,{'color':'gray','children':'\x20命令重新登录'})]})]});if(_0x2c51d9[_0x1cf917(0x16f)]===0x0)return a20_0x323aa1(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a20_0x323aa1(Text,{'color':'yellow','children':_0x1cf917(0x18b)})});if(_0x5d75c4===_0x1cf917(0x181))return a20_0x28277c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a20_0x323aa1(CurrentMenuCdnContent,{'menuList':_0x4f5235}),a20_0x323aa1(InputCdnAsset,{'jsCdnUrl':_0x215099,'cssCdnUrl':_0x48d3ae}),a20_0x323aa1(Box,{'marginTop':0x1,'flexDirection':_0x1cf917(0x182),'children':[{'label':'继续更新','value':'ok'},{'label':'取消更新','value':'cancel'}][_0x1cf917(0x18e)](_0x163d82=>a20_0x28277c(Text,{'color':_0x4f6077===_0x163d82[_0x1cf917(0x195)]?'yellow':undefined,'children':[_0x4f6077===_0x163d82['value']?'>\x20':'\x20\x20',_0x163d82[_0x1cf917(0x184)]]},_0x163d82[_0x1cf917(0x195)]))})]});if(_0x5d75c4===_0x1cf917(0x167))return a20_0x28277c(Box,{'flexDirection':_0x1cf917(0x182),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x323aa1(CurrentMenuCdnContent,{'menuList':_0x4f5235}),a20_0x323aa1(InputCdnAsset,{'jsCdnUrl':_0x215099,'cssCdnUrl':_0x48d3ae}),a20_0x28277c(Box,{'marginTop':0x1,'children':[a20_0x323aa1(a20_0x4520bb,{'type':'dots'}),a20_0x323aa1(Text,{'children':_0x1cf917(0x16e)})]})]});if(_0x5d75c4==='updated')return a20_0x28277c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a20_0x323aa1(CurrentMenuCdnContent,{'menuList':_0x4f5235}),a20_0x323aa1(InputCdnAsset,{'jsCdnUrl':_0x215099,'cssCdnUrl':_0x48d3ae}),a20_0x323aa1(Box,{'marginTop':0x1,'children':a20_0x323aa1(Text,{'color':_0x1cf917(0x18f),'children':_0x1cf917(0x168)})})]});return a20_0x28277c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a20_0x323aa1(CurrentMenuCdnContent,{'menuList':_0x4f5235}),a20_0x28277c(Box,{'marginTop':0x1,'flexDirection':'column','children':[a20_0x323aa1(Text,{'color':'cyan','children':'*\x20请输入新的资源链接'}),_0x215099?a20_0x28277c(Box,{'children':[a20_0x28277c(Text,{'color':_0x1cf917(0x188),'children':['\x20\x20','JS\x20链接:\x20']}),a20_0x323aa1(Text,{'color':'green','children':_0x215099})]}):_0x5d75c4===_0x1cf917(0x18c)&&a20_0x28277c(a20_0x453577,{'children':[a20_0x28277c(Box,{'children':[a20_0x28277c(Text,{'children':['\x20\x20','JS\x20链接:\x20']}),a20_0x323aa1(Text,{'color':_0x1cf917(0x18f),'children':_0x1e28ab}),_0x193bfd&&a20_0x28277c(Text,{'color':_0x1cf917(0x190),'children':['\x20←\x20',_0x193bfd]})]}),!_0x193bfd&&a20_0x323aa1(Box,{'children':a20_0x28277c(Text,{'color':_0x1cf917(0x188),'children':['\x20\x20','输入项目的\x20JS\x20资源链接(https://...)']})})]}),_0x48d3ae?a20_0x28277c(Box,{'children':[a20_0x28277c(Text,{'children':['\x20\x20','CSS\x20链接:\x20']}),a20_0x323aa1(Text,{'color':_0x1cf917(0x18f),'children':_0x48d3ae})]}):_0x5d75c4===_0x1cf917(0x189)&&a20_0x28277c(a20_0x453577,{'children':[a20_0x28277c(Box,{'children':[a20_0x28277c(Text,{'children':['\x20\x20',_0x1cf917(0x17d)]}),a20_0x323aa1(Text,{'color':_0x1cf917(0x18f),'children':_0x1e28ab}),_0x193bfd&&a20_0x28277c(Text,{'color':_0x1cf917(0x190),'children':[_0x1cf917(0x170),_0x193bfd]})]}),!_0x193bfd&&a20_0x323aa1(Box,{'children':a20_0x28277c(Text,{'color':_0x1cf917(0x188),'children':['\x20\x20','输入项目的\x20CSS\x20资源链接(https://...)']})})]})]})]});}
1
+ (function(_0x41d261,_0x33c988){const _0x3efb95=a20_0x2f24,_0x36c098=_0x41d261();while(!![]){try{const _0x170a3f=-parseInt(_0x3efb95(0x184))/0x1*(-parseInt(_0x3efb95(0x16a))/0x2)+-parseInt(_0x3efb95(0x177))/0x3*(parseInt(_0x3efb95(0x18d))/0x4)+parseInt(_0x3efb95(0x16b))/0x5+parseInt(_0x3efb95(0x18f))/0x6*(parseInt(_0x3efb95(0x168))/0x7)+parseInt(_0x3efb95(0x170))/0x8+-parseInt(_0x3efb95(0x17b))/0x9*(parseInt(_0x3efb95(0x183))/0xa)+-parseInt(_0x3efb95(0x162))/0xb;if(_0x170a3f===_0x33c988)break;else _0x36c098['push'](_0x36c098['shift']());}catch(_0x3b8420){_0x36c098['push'](_0x36c098['shift']());}}}(a20_0x4b7b,0xef16b));import{jsx as a20_0x28b694,jsxs as a20_0x4e0760,Fragment as a20_0x376c02}from'react/jsx-runtime';import{Text,Box,useInput,useApp,render}from'ink';function a20_0x2f24(_0x260a6f,_0x350d53){_0x260a6f=_0x260a6f-0x15d;const _0x4b7b40=a20_0x4b7b();let _0x2f246c=_0x4b7b40[_0x260a6f];return _0x2f246c;}import{useEffect,useState}from'react';import a20_0x4a5194 from'ink-spinner';import{useGetOnlineMenuList}from'../app-menu/use-get-online-menu-list.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../app-menu/valid-url.js';import{CurrentMenuCdnContent}from'./current-content.js';import{InputCdnAsset}from'./input-cdn-asset.js';import{updateMenuCdnUrl}from'./update-menu-cdn-url.js';import.meta.main&&render(a20_0x28b694(AppMenuUpdateCdn,{}));export function AppMenuUpdateCdn(){const _0xfc8cc7=a20_0x2f24,{exit:_0xa1592c}=useApp(),{loading:_0x546ee7,menuList:_0x2747a3,error:_0x3670d5}=useGetOnlineMenuList(),[_0x12762e,_0x9a8f39]=useState('ok'),[_0x58b470,_0x43420]=useState('input-js'),[_0x1e333c,_0x381851]=useState(''),[_0x5f5bab,_0x26dcfd]=useState(''),[_0x266c3f,_0x5ca362]=useState(''),[_0x23aff8,_0x1ef62c]=useState(''),_0x486d0a=Array[_0xfc8cc7(0x17e)](new Set(_0x2747a3['map'](_0xf714e6=>_0xf714e6[_0xfc8cc7(0x16f)])['flat']()));useEffect(()=>{const _0x3da7e2=_0xfc8cc7;_0x58b470===_0x3da7e2(0x180)&&setTimeout(_0xa1592c,0x32);},[_0x58b470]),useInput(async(_0x946c9e,_0x4f1a08)=>{const _0x2f3976=_0xfc8cc7;if(_0x58b470===_0x2f3976(0x173)){if(_0x4f1a08[_0x2f3976(0x16d)]){const _0x456269=_0x266c3f[_0x2f3976(0x165)]();if(_0x456269==='')return;if(!isValidJsHttpsUrl(_0x456269)){_0x1ef62c('请输入有效的\x20JS\x20https\x20链接');return;}if(!await isUrlReachable(_0x456269)){_0x1ef62c(_0x2f3976(0x17c));return;}_0x381851(_0x456269),_0x5ca362(''),_0x1ef62c(''),_0x43420(_0x2f3976(0x15f));return;}if(_0x4f1a08[_0x2f3976(0x181)]||_0x4f1a08[_0x2f3976(0x15d)]){_0x5ca362(_0x1b3a2d=>_0x1b3a2d[_0x2f3976(0x171)](0x0,-0x1)),_0x1ef62c('');return;}_0x5ca362(_0x489988=>_0x489988+_0x946c9e);return;}if(_0x58b470==='input-css'){if(_0x4f1a08[_0x2f3976(0x16d)]){const _0x794e77=_0x266c3f[_0x2f3976(0x165)]();if(_0x794e77==='')return;if(!isValidCssHttpsUrl(_0x794e77)){_0x1ef62c(_0x2f3976(0x175));return;}if(!await isUrlReachable(_0x794e77)){_0x1ef62c(_0x2f3976(0x169));return;}_0x26dcfd(_0x794e77),_0x5ca362(''),_0x1ef62c(''),_0x43420('need-confirm');return;}if(_0x4f1a08[_0x2f3976(0x181)]||_0x4f1a08['delete']){_0x5ca362(_0xa2a91a=>_0xa2a91a[_0x2f3976(0x171)](0x0,-0x1)),_0x1ef62c('');return;}_0x5ca362(_0xf1c22=>_0xf1c22+_0x946c9e);return;}if(_0x58b470==='need-confirm'){(_0x4f1a08['upArrow']||_0x4f1a08[_0x2f3976(0x178)]||_0x4f1a08['leftArrow']||_0x4f1a08[_0x2f3976(0x193)])&&_0x9a8f39(_0x1fc05c=>_0x1fc05c==='ok'?_0x2f3976(0x182):'ok');if(_0x4f1a08[_0x2f3976(0x16d)]){_0x43420('creating');if(_0x12762e==='ok')await Promise[_0x2f3976(0x15e)](_0x2747a3[_0x2f3976(0x189)](_0x3f09bd=>{const _0x3b9fba=_0x2f3976,_0x4f5263={'id':_0x3f09bd['id'],'label':_0x3f09bd['label'],'path':_0x3f09bd['path'],'resources':[_0x1e333c,_0x5f5bab]};if(_0x3f09bd[_0x3b9fba(0x16f)][_0x3b9fba(0x176)]===0x0)return Promise[_0x3b9fba(0x187)]();return updateMenuCdnUrl(_0x4f5263);})),await new Promise(_0x26eee4=>setTimeout(_0x26eee4,0x3e8)),_0x43420('updated');else _0x12762e===_0x2f3976(0x182)&&_0xa1592c();}}});if(_0x546ee7)return a20_0x4e0760(Box,{'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28b694(Text,{}),a20_0x28b694(a20_0x4a5194,{'type':_0xfc8cc7(0x192)}),a20_0x28b694(Text,{'children':_0xfc8cc7(0x167)})]});if(_0x3670d5)return a20_0x4e0760(Box,{'flexDirection':_0xfc8cc7(0x161),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x4e0760(Text,{'color':'red','children':['✗\x20',_0x3670d5]}),a20_0x4e0760(Box,{'marginTop':0x1,'children':[a20_0x28b694(Text,{'color':_0xfc8cc7(0x16e),'children':'提示:使用\x20'}),a20_0x28b694(Text,{'color':_0xfc8cc7(0x190),'children':_0xfc8cc7(0x18b)}),a20_0x28b694(Text,{'color':'gray','children':_0xfc8cc7(0x17d)})]})]});if(_0x486d0a[_0xfc8cc7(0x176)]===0x0)return a20_0x28b694(Box,{'marginTop':0x1,'marginBottom':0x1,'children':a20_0x28b694(Text,{'color':_0xfc8cc7(0x16c),'children':_0xfc8cc7(0x164)})});if(_0x58b470===_0xfc8cc7(0x191))return a20_0x4e0760(Box,{'flexDirection':_0xfc8cc7(0x161),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28b694(CurrentMenuCdnContent,{'menuList':_0x2747a3}),a20_0x28b694(InputCdnAsset,{'jsCdnUrl':_0x1e333c,'cssCdnUrl':_0x5f5bab}),a20_0x28b694(Box,{'marginTop':0x1,'flexDirection':'column','children':[{'label':_0xfc8cc7(0x186),'value':'ok'},{'label':_0xfc8cc7(0x18a),'value':'cancel'}]['map'](_0x314732=>a20_0x4e0760(Text,{'color':_0x12762e===_0x314732[_0xfc8cc7(0x185)]?_0xfc8cc7(0x16c):undefined,'children':[_0x12762e===_0x314732[_0xfc8cc7(0x185)]?'>\x20':'\x20\x20',_0x314732[_0xfc8cc7(0x163)]]},_0x314732['value']))})]});if(_0x58b470===_0xfc8cc7(0x188))return a20_0x4e0760(Box,{'flexDirection':_0xfc8cc7(0x161),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28b694(CurrentMenuCdnContent,{'menuList':_0x2747a3}),a20_0x28b694(InputCdnAsset,{'jsCdnUrl':_0x1e333c,'cssCdnUrl':_0x5f5bab}),a20_0x4e0760(Box,{'marginTop':0x1,'children':[a20_0x28b694(a20_0x4a5194,{'type':'dots'}),a20_0x28b694(Text,{'children':_0xfc8cc7(0x172)})]})]});if(_0x58b470===_0xfc8cc7(0x180))return a20_0x4e0760(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28b694(CurrentMenuCdnContent,{'menuList':_0x2747a3}),a20_0x28b694(InputCdnAsset,{'jsCdnUrl':_0x1e333c,'cssCdnUrl':_0x5f5bab}),a20_0x28b694(Box,{'marginTop':0x1,'children':a20_0x28b694(Text,{'color':_0xfc8cc7(0x194),'children':_0xfc8cc7(0x166)})})]});return a20_0x4e0760(Box,{'flexDirection':_0xfc8cc7(0x161),'marginTop':0x1,'marginBottom':0x1,'children':[a20_0x28b694(CurrentMenuCdnContent,{'menuList':_0x2747a3}),a20_0x4e0760(Box,{'marginTop':0x1,'flexDirection':'column','children':[a20_0x28b694(Text,{'color':_0xfc8cc7(0x190),'children':_0xfc8cc7(0x17a)}),_0x1e333c?a20_0x4e0760(Box,{'children':[a20_0x4e0760(Text,{'color':'gray','children':['\x20\x20','JS\x20链接:\x20']}),a20_0x28b694(Text,{'color':_0xfc8cc7(0x194),'children':_0x1e333c})]}):_0x58b470===_0xfc8cc7(0x173)&&a20_0x4e0760(a20_0x376c02,{'children':[a20_0x4e0760(Box,{'children':[a20_0x4e0760(Text,{'children':['\x20\x20',_0xfc8cc7(0x18c)]}),a20_0x28b694(Text,{'color':_0xfc8cc7(0x194),'children':_0x266c3f}),_0x23aff8&&a20_0x4e0760(Text,{'color':_0xfc8cc7(0x179),'children':[_0xfc8cc7(0x18e),_0x23aff8]})]}),!_0x23aff8&&a20_0x28b694(Box,{'children':a20_0x4e0760(Text,{'color':'gray','children':['\x20\x20',_0xfc8cc7(0x174)]})})]}),_0x5f5bab?a20_0x4e0760(Box,{'children':[a20_0x4e0760(Text,{'children':['\x20\x20',_0xfc8cc7(0x17f)]}),a20_0x28b694(Text,{'color':'green','children':_0x5f5bab})]}):_0x58b470===_0xfc8cc7(0x15f)&&a20_0x4e0760(a20_0x376c02,{'children':[a20_0x4e0760(Box,{'children':[a20_0x4e0760(Text,{'children':['\x20\x20',_0xfc8cc7(0x17f)]}),a20_0x28b694(Text,{'color':'green','children':_0x266c3f}),_0x23aff8&&a20_0x4e0760(Text,{'color':_0xfc8cc7(0x179),'children':[_0xfc8cc7(0x18e),_0x23aff8]})]}),!_0x23aff8&&a20_0x28b694(Box,{'children':a20_0x4e0760(Text,{'color':_0xfc8cc7(0x16e),'children':['\x20\x20',_0xfc8cc7(0x160)]})})]})]})]});}function a20_0x4b7b(){const _0x590b06=['CSS\x20链接:\x20','updated','backspace','cancel','8981230yHkYrc','596wFqDqg','value','继续更新','resolve','creating','map','取消更新','lovrabet\x20auth','JS\x20链接:\x20','32FTWCmR','\x20←\x20','7610526eudftE','cyan','need-confirm','dots','rightArrow','green','delete','all','input-css','输入项目的\x20CSS\x20资源链接(https://...)','column','6760677xaLipy','label','!\x20未找到菜单资源链接','trim','√\x20更新成功','\x20正在获取线上菜单资源链接...','7IhvyPo','CSS\x20链接无法访问','284dUrDIL','5448745UyBozM','yellow','return','gray','resources','12944472EZEEWl','slice','\x20资源正在同步中...','input-js','输入项目的\x20JS\x20资源链接(https://...)','请输入有效的\x20CSS\x20https\x20链接','length','588309fHtBVv','downArrow','red','*\x20请输入新的资源链接','9RvKhkF','JS\x20链接无法访问','\x20命令重新登录','from'];a20_0x4b7b=function(){return _0x590b06;};return a20_0x4b7b();}
@@ -1 +1 @@
1
- const a22_0x4a61e0=a22_0x51c8;(function(_0x66e1ac,_0x1062f1){const _0x3611c4=a22_0x51c8,_0x38c0b5=_0x66e1ac();while(!![]){try{const _0x28e46d=-parseInt(_0x3611c4(0x9b))/0x1*(parseInt(_0x3611c4(0x98))/0x2)+parseInt(_0x3611c4(0xa9))/0x3*(parseInt(_0x3611c4(0x96))/0x4)+parseInt(_0x3611c4(0xb4))/0x5*(parseInt(_0x3611c4(0xa4))/0x6)+parseInt(_0x3611c4(0xb2))/0x7+parseInt(_0x3611c4(0x9d))/0x8+-parseInt(_0x3611c4(0xaa))/0x9*(-parseInt(_0x3611c4(0x9c))/0xa)+-parseInt(_0x3611c4(0x94))/0xb;if(_0x28e46d===_0x1062f1)break;else _0x38c0b5['push'](_0x38c0b5['shift']());}catch(_0x32baf3){_0x38c0b5['push'](_0x38c0b5['shift']());}}}(a22_0x35b8,0xc082b));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';function a22_0x51c8(_0x15a6a2,_0x559fc2){_0x15a6a2=_0x15a6a2-0x8f;const _0x35b8fb=a22_0x35b8();let _0x51c8c4=_0x35b8fb[_0x15a6a2];return _0x51c8c4;}function a22_0x35b8(){const _0x36b236=['import','error','!\x20请使用以下方式之一:','update-menu-cdn-url','14287823xYyggN','创建菜单失败,HTTP状态码:\x20','7708NnZPaM','errorMsg','4530nIXUAv','登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录','data','445GRGXxx','40wHEXyt','9665184jtphYa','log','info','status','https://g.yuntooai.com/dist/yt-test-app/1.0.1/assets/main.js','stringify','https://g.yuntooai.com/dist/yt-test-app/1.0.1/assets/main.css','114YzUjcI','resources','errorCode','POST','/smartapi/menu/update','843OlANOo','815355TvPKup','\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>','未知错误','json','success','更新菜单资源失败:\x20','SdkDemo1','path','4151861kYaAfk','appcode','102685JAhSWJ','label','未提供应用AppCode,且配置中也没有默认值'];a22_0x35b8=function(){return _0x36b236;};return a22_0x35b8();}const config=readConfig(),logLabel=a22_0x4a61e0(0x93);import.meta.main&&updateMenuCdnUrl({'id':0xf41e,'label':a22_0x4a61e0(0xb0),'path':'sdk-demo','resources':[a22_0x4a61e0(0xa1),a22_0x4a61e0(0xa3)]});export async function updateMenuCdnUrl(_0x2b531a){const _0x5151a4=a22_0x4a61e0,_0x3e0404=config?.[_0x5151a4(0xb3)];if(!_0x3e0404){const _0x395bb9=_0x5151a4(0x8f);logger[_0x5151a4(0x91)](logLabel,_0x395bb9),console[_0x5151a4(0x91)]('×\x20'+_0x395bb9),console[_0x5151a4(0x9e)](_0x5151a4(0x92)),console[_0x5151a4(0x9e)]('\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>'),console['log'](_0x5151a4(0xab));return;}logger[_0x5151a4(0x9f)](logLabel,'正在更新菜单资源链接:\x20'+_0x2b531a[_0x5151a4(0xb5)]+'\x20('+_0x2b531a[_0x5151a4(0xb1)]+')');const _0x7115cf={'id':_0x2b531a['id'],'appCode':_0x3e0404,'extend':{'loadScriptMode':_0x5151a4(0x90),'resources':_0x2b531a[_0x5151a4(0xa5)]?JSON[_0x5151a4(0xa2)](_0x2b531a[_0x5151a4(0xa5)]):undefined}},_0x3af99a=await fetch(getApiDomain()+_0x5151a4(0xa8),{'method':_0x5151a4(0xa7),'body':JSON['stringify'](_0x7115cf),'headers':{'Content-Type':'application/json','Cookie':getCookie()}});if(!_0x3af99a['ok']){if(_0x3af99a[_0x5151a4(0xa0)]===0x191){const _0x22025f=_0x5151a4(0x99);logger[_0x5151a4(0x91)](logLabel,_0x22025f,{'status':_0x3af99a[_0x5151a4(0xa0)],'menu':_0x2b531a[_0x5151a4(0xb5)]});throw new Error(_0x22025f);}const _0x293c63=_0x5151a4(0x95)+_0x3af99a['status'];logger[_0x5151a4(0x91)](logLabel,_0x293c63,{'menu':_0x2b531a[_0x5151a4(0xb5)]});throw new Error(_0x293c63);}const _0x4952f5=await _0x3af99a[_0x5151a4(0xad)]();if(!_0x4952f5[_0x5151a4(0xae)]){const _0xd31e32=_0x5151a4(0xaf)+(_0x4952f5[_0x5151a4(0x97)]||_0x5151a4(0xac));logger[_0x5151a4(0x91)](logLabel,_0xd31e32,{'errorCode':_0x4952f5[_0x5151a4(0xa6)],'errorMsg':_0x4952f5[_0x5151a4(0x97)],'menu':_0x2b531a['label']});throw new Error(_0xd31e32);}logger[_0x5151a4(0x9f)](logLabel,'菜单资源同步成功:\x20'+_0x2b531a[_0x5151a4(0xb5)],_0x4952f5[_0x5151a4(0x9a)]);}
1
+ const a22_0x4e633a=a22_0x10db;(function(_0x44240b,_0x1ca858){const _0x12b08f=a22_0x10db,_0x1cf166=_0x44240b();while(!![]){try{const _0x2d4137=-parseInt(_0x12b08f(0x1fa))/0x1*(-parseInt(_0x12b08f(0x1fd))/0x2)+parseInt(_0x12b08f(0x1f6))/0x3+-parseInt(_0x12b08f(0x1eb))/0x4*(-parseInt(_0x12b08f(0x1e1))/0x5)+parseInt(_0x12b08f(0x1e9))/0x6+parseInt(_0x12b08f(0x1f0))/0x7*(parseInt(_0x12b08f(0x1dd))/0x8)+-parseInt(_0x12b08f(0x1e4))/0x9+-parseInt(_0x12b08f(0x1f5))/0xa*(parseInt(_0x12b08f(0x1e0))/0xb);if(_0x2d4137===_0x1ca858)break;else _0x1cf166['push'](_0x1cf166['shift']());}catch(_0x1746b5){_0x1cf166['push'](_0x1cf166['shift']());}}}(a22_0x13aa,0x1d55f));import{getCookie}from'../auth/get-cookie.js';function a22_0x13aa(){const _0x13d5da=['未知错误','113znynYY','未提供应用AppCode,且配置中也没有默认值','errorCode','646PBKEzK','success','https://g.yuntooai.com/dist/yt-test-app/1.0.1/assets/main.css','log','2144jhlXMm','sdk-demo','/smartapi/menu/update','1251162HjopYU','5kQTGEd','https://g.yuntooai.com/dist/yt-test-app/1.0.1/assets/main.js','json','41472OlMTBr','正在更新菜单资源链接:\x20','error','errorMsg','!\x20请使用以下方式之一:','75660aRNIlJ','application/json','547436TTxTKF','更新菜单资源失败:\x20','data','update-menu-cdn-url','appcode','3290pqHaWr','label','resources','stringify','status','30kSMYKu','462195xljsts','path','import'];a22_0x13aa=function(){return _0x13d5da;};return a22_0x13aa();}import{getApiDomain}from'../constant/domain.js';import{readConfig}from'../utils/config.js';import{logger}from'../utils/logger.js';function a22_0x10db(_0x42bbc8,_0x4c3562){_0x42bbc8=_0x42bbc8-0x1db;const _0x13aa4a=a22_0x13aa();let _0x10dbe5=_0x13aa4a[_0x42bbc8];return _0x10dbe5;}const config=readConfig(),logLabel=a22_0x4e633a(0x1ee);import.meta.main&&updateMenuCdnUrl({'id':0xf41e,'label':'SdkDemo1','path':a22_0x4e633a(0x1de),'resources':[a22_0x4e633a(0x1e2),a22_0x4e633a(0x1db)]});export async function updateMenuCdnUrl(_0x5de8d4){const _0x193f72=a22_0x4e633a,_0x58e708=config?.[_0x193f72(0x1ef)];if(!_0x58e708){const _0x28c088=_0x193f72(0x1fb);logger[_0x193f72(0x1e6)](logLabel,_0x28c088),console[_0x193f72(0x1e6)]('×\x20'+_0x28c088),console[_0x193f72(0x1dc)](_0x193f72(0x1e8)),console['log']('\x20\x20\x201.\x20直接指定:\x20lovrabet\x20api\x20pull\x20<app-code>'),console[_0x193f72(0x1dc)]('\x20\x20\x202.\x20配置默认值:\x20lovrabet\x20config\x20set\x20app\x20<app-code>');return;}logger['info'](logLabel,_0x193f72(0x1e5)+_0x5de8d4['label']+'\x20('+_0x5de8d4[_0x193f72(0x1f7)]+')');const _0x3f20b7={'id':_0x5de8d4['id'],'appCode':_0x58e708,'extend':{'loadScriptMode':_0x193f72(0x1f8),'resources':_0x5de8d4[_0x193f72(0x1f2)]?JSON[_0x193f72(0x1f3)](_0x5de8d4[_0x193f72(0x1f2)]):undefined}},_0xe567b6=await fetch(getApiDomain()+_0x193f72(0x1df),{'method':'POST','body':JSON[_0x193f72(0x1f3)](_0x3f20b7),'headers':{'Content-Type':_0x193f72(0x1ea),'Cookie':getCookie()}});if(!_0xe567b6['ok']){if(_0xe567b6[_0x193f72(0x1f4)]===0x191){const _0x5992c1='登录鉴权失败,登录已过期,请使用\x20lovrabet\x20auth\x20重新登录';logger[_0x193f72(0x1e6)](logLabel,_0x5992c1,{'status':_0xe567b6['status'],'menu':_0x5de8d4[_0x193f72(0x1f1)]});throw new Error(_0x5992c1);}const _0x50ece7='创建菜单失败,HTTP状态码:\x20'+_0xe567b6[_0x193f72(0x1f4)];logger[_0x193f72(0x1e6)](logLabel,_0x50ece7,{'menu':_0x5de8d4[_0x193f72(0x1f1)]});throw new Error(_0x50ece7);}const _0x4c6e85=await _0xe567b6[_0x193f72(0x1e3)]();if(!_0x4c6e85[_0x193f72(0x1fe)]){const _0x12417d=_0x193f72(0x1ec)+(_0x4c6e85['errorMsg']||_0x193f72(0x1f9));logger[_0x193f72(0x1e6)](logLabel,_0x12417d,{'errorCode':_0x4c6e85[_0x193f72(0x1fc)],'errorMsg':_0x4c6e85[_0x193f72(0x1e7)],'menu':_0x5de8d4['label']});throw new Error(_0x12417d);}logger['info'](logLabel,'菜单资源同步成功:\x20'+_0x5de8d4[_0x193f72(0x1f1)],_0x4c6e85[_0x193f72(0x1ed)]);}
@@ -1 +1 @@
1
- (function(_0xe1a180,_0x2b8e9){const _0x13151a=a23_0x2a64,_0x1a06b8=_0xe1a180();while(!![]){try{const _0x2c1630=-parseInt(_0x13151a(0xff))/0x1+parseInt(_0x13151a(0x100))/0x2+-parseInt(_0x13151a(0x105))/0x3+parseInt(_0x13151a(0x106))/0x4+parseInt(_0x13151a(0xf9))/0x5*(-parseInt(_0x13151a(0x101))/0x6)+-parseInt(_0x13151a(0x10b))/0x7+parseInt(_0x13151a(0x109))/0x8;if(_0x2c1630===_0x2b8e9)break;else _0x1a06b8['push'](_0x1a06b8['shift']());}catch(_0x9f41c7){_0x1a06b8['push'](_0x1a06b8['shift']());}}}(a23_0x2ab7,0x5d7ab));import{jsx as a23_0x31db44,jsxs as a23_0x24aa13}from'react/jsx-runtime';import{Text,Box,useInput,useApp}from'ink';import{useEffect,useState}from'react';import{getIsSessionValid}from'./is-session-valid.js';import{authServer}from'./auth-server.js';function a23_0x2ab7(){const _0x2e932e=['gray','dots','正在登录...\x20','390128ADxhgH','371858ozYjLV','391212iuKgcK','then','按\x20“q”\x20退出。','请前往浏览器完成登录。','187701MAXXIV','109768cNHNEz','column','√\x20当前为有效会话,无需重新登录。','14782672ZpiTZk','*\x20登录成功!','4015193KcrmiI','50oavoVQ','finally','log'];a23_0x2ab7=function(){return _0x2e932e;};return a23_0x2ab7();}function a23_0x2a64(_0x1fc746,_0x588e5f){_0x1fc746=_0x1fc746-0xf9;const _0x2ab7d0=a23_0x2ab7();let _0x2a6465=_0x2ab7d0[_0x1fc746];return _0x2a6465;}import a23_0x45d3e9 from'ink-spinner';export function AuthServer(){const _0x5881f0=a23_0x2a64,{exit:_0x32ff1f}=useApp(),[_0x3df225,_0xcf1edb]=useState(![]),[_0x5852d3,_0x36856f]=useState(!![]),[_0x230b3b,_0x29189b]=useState(![]),[_0x3275b5,_0x28401b]=useState(![]);useEffect(()=>{const _0x2647ef=a23_0x2a64;getIsSessionValid()[_0x2647ef(0x102)](_0xcf1edb)[_0x2647ef(0xfa)](()=>_0x36856f(![]));},[]),useEffect(()=>{const _0xf9b42b=a23_0x2a64;!_0x5852d3&&_0x3df225&&(console[_0xf9b42b(0xfb)](_0xf9b42b(0x108)),_0x32ff1f());},[_0x5852d3,_0x3df225,_0x32ff1f]),useEffect(()=>{const _0x4eb996=a23_0x2a64;_0x3275b5&&(console[_0x4eb996(0xfb)](_0x4eb996(0x10a)),_0x32ff1f());},[_0x3275b5,_0x32ff1f]),useInput((_0x3bbe9c,_0x344e15)=>{_0x344e15['return']&&(_0x29189b(!![]),authServer({'silent':!![]})['then'](_0x2f1b77=>{_0x28401b(_0x2f1b77);})),_0x3bbe9c==='q'&&_0x32ff1f();});if(_0x5852d3)return null;if(_0x3df225||_0x3275b5)return null;return a23_0x31db44(Box,{'flexDirection':_0x5881f0(0x107),'marginTop':0x1,'marginBottom':0x1,'children':_0x230b3b?a23_0x24aa13(Box,{'children':[a23_0x31db44(Box,{'width':'1'}),a23_0x24aa13(Text,{'color':'green','children':[a23_0x31db44(a23_0x45d3e9,{'type':_0x5881f0(0xfd)}),'\x20\x20']}),a23_0x31db44(Text,{'children':_0x5881f0(0xfe)}),a23_0x31db44(Text,{'color':'gray','children':_0x5881f0(0x104)})]}):a23_0x24aa13(Box,{'children':[a23_0x31db44(Box,{'width':'1'}),a23_0x31db44(Text,{'children':'*\x20按回车开始登录。'}),a23_0x31db44(Text,{'color':_0x5881f0(0xfc),'children':_0x5881f0(0x103)})]})});}
1
+ (function(_0x51808d,_0x40bd18){const _0xe56797=a23_0x1b89,_0x3c1971=_0x51808d();while(!![]){try{const _0x3ac59e=parseInt(_0xe56797(0x1ff))/0x1*(parseInt(_0xe56797(0x1ef))/0x2)+-parseInt(_0xe56797(0x1f0))/0x3+-parseInt(_0xe56797(0x200))/0x4+-parseInt(_0xe56797(0x1fb))/0x5*(parseInt(_0xe56797(0x1fc))/0x6)+-parseInt(_0xe56797(0x1ea))/0x7+-parseInt(_0xe56797(0x1f8))/0x8*(-parseInt(_0xe56797(0x1f9))/0x9)+parseInt(_0xe56797(0x1ec))/0xa*(parseInt(_0xe56797(0x1f2))/0xb);if(_0x3ac59e===_0x40bd18)break;else _0x3c1971['push'](_0x3c1971['shift']());}catch(_0x1b2ecc){_0x3c1971['push'](_0x3c1971['shift']());}}}(a23_0x5aaf,0x7ef75));import{jsx as a23_0x2bedb2,jsxs as a23_0x2b3941}from'react/jsx-runtime';import{Text,Box,useInput,useApp}from'ink';import{useEffect,useState}from'react';import{getIsSessionValid}from'./is-session-valid.js';import{authServer}from'./auth-server.js';function a23_0x1b89(_0x2736d7,_0x4ef133){_0x2736d7=_0x2736d7-0x1ea;const _0x5aafe1=a23_0x5aaf();let _0x1b89a2=_0x5aafe1[_0x2736d7];return _0x1b89a2;}import a23_0x12f972 from'ink-spinner';export function AuthServer(){const _0x121882=a23_0x1b89,{exit:_0x367365}=useApp(),[_0x34abf4,_0x21113d]=useState(![]),[_0x339425,_0x52f0ed]=useState(!![]),[_0x36c669,_0x19a2b7]=useState(![]),[_0x360cbe,_0x598ded]=useState(![]);useEffect(()=>{const _0x3be657=a23_0x1b89;getIsSessionValid()[_0x3be657(0x1f4)](_0x21113d)[_0x3be657(0x1eb)](()=>_0x52f0ed(![]));},[]),useEffect(()=>{const _0x2a5e83=a23_0x1b89;!_0x339425&&_0x34abf4&&(console[_0x2a5e83(0x1f1)](_0x2a5e83(0x1f6)),_0x367365());},[_0x339425,_0x34abf4,_0x367365]),useEffect(()=>{const _0x3072ac=a23_0x1b89;_0x360cbe&&(console['log'](_0x3072ac(0x1fe)),_0x367365());},[_0x360cbe,_0x367365]),useInput((_0x180ac1,_0x2ae292)=>{const _0x1d473e=a23_0x1b89;_0x2ae292['return']&&(_0x19a2b7(!![]),authServer({'silent':!![]})[_0x1d473e(0x1f4)](_0x423bdf=>{_0x598ded(_0x423bdf);})),_0x180ac1==='q'&&_0x367365();});if(_0x339425)return null;if(_0x34abf4||_0x360cbe)return null;return a23_0x2bedb2(Box,{'flexDirection':_0x121882(0x1fa),'marginTop':0x1,'marginBottom':0x1,'children':_0x36c669?a23_0x2b3941(Box,{'children':[a23_0x2bedb2(Box,{'width':'1'}),a23_0x2b3941(Text,{'color':_0x121882(0x1f3),'children':[a23_0x2bedb2(a23_0x12f972,{'type':_0x121882(0x1f7)}),'\x20\x20']}),a23_0x2bedb2(Text,{'children':_0x121882(0x1ee)}),a23_0x2bedb2(Text,{'color':'gray','children':_0x121882(0x1ed)})]}):a23_0x2b3941(Box,{'children':[a23_0x2bedb2(Box,{'width':'1'}),a23_0x2bedb2(Text,{'children':_0x121882(0x1fd)}),a23_0x2bedb2(Text,{'color':'gray','children':_0x121882(0x1f5)})]})});}function a23_0x5aaf(){const _0x6eab67=['66aiGuKh','green','then','按\x20“q”\x20退出。','√\x20当前为有效会话,无需重新登录。','dots','1015832TxvEyY','72aCRBGD','column','2711765BCvACL','6AcZUXD','*\x20按回车开始登录。','*\x20登录成功!','2579CjCLAP','3615320PQnhox','2432283iAScgm','finally','2792190GucamF','请前往浏览器完成登录。','正在登录...\x20','234YlYSCp','2037552hJYLAn','log'];a23_0x5aaf=function(){return _0x6eab67;};return a23_0x5aaf();}
@@ -1 +1 @@
1
- const a24_0x5102b0=a24_0x349e;(function(_0x134d23,_0x24460d){const _0x160a22=a24_0x349e,_0x55ca97=_0x134d23();while(!![]){try{const _0x5afaf0=parseInt(_0x160a22(0x11f))/0x1+-parseInt(_0x160a22(0x121))/0x2+-parseInt(_0x160a22(0x136))/0x3*(parseInt(_0x160a22(0x123))/0x4)+parseInt(_0x160a22(0x122))/0x5+-parseInt(_0x160a22(0x11b))/0x6+-parseInt(_0x160a22(0x12d))/0x7*(-parseInt(_0x160a22(0x13f))/0x8)+parseInt(_0x160a22(0x117))/0x9;if(_0x5afaf0===_0x24460d)break;else _0x55ca97['push'](_0x55ca97['shift']());}catch(_0x25c441){_0x55ca97['push'](_0x55ca97['shift']());}}}(a24_0x2ee9,0xa2eff));import{writeFileSync}from'node:fs';import a24_0xc10d88 from'node:https';import{getUserDomain}from'../constant/domain.js';function a24_0x349e(_0x18cf47,_0x23ed61){_0x18cf47=_0x18cf47-0x116;const _0x2ee985=a24_0x2ee9();let _0x349e03=_0x2ee985[_0x18cf47];return _0x349e03;}import{exec}from'node:child_process';import{getIsSessionValid}from'./is-session-valid.js';import{cookieFile}from'./constant.js';export async function authServer(_0x3c1fae){const _0x2f93ff=a24_0x349e,_0x90635d=_0x3c1fae?.['silent']||![];if(await getIsSessionValid())return!![];const _0x74a299=await(await fetch(_0x2f93ff(0x135)))[_0x2f93ff(0x129)]();return new Promise(async(_0x5bf13c,_0x585580)=>{const _0x1e92aa=_0x2f93ff;let _0xdedd83=0x0;const _0x3cf8ca=a24_0xc10d88[_0x1e92aa(0x137)](_0x74a299,async(_0x3c903b,_0x3eca78)=>{const _0x3978ba=_0x1e92aa,_0x20d3c1=getUserDomain(),_0x4044b0=_0x3c903b[_0x3978ba(0x139)][_0x3978ba(0x12e)]||'',_0x129a0b=await fetch(_0x20d3c1+_0x3978ba(0x12c),{'headers':{'cookie':_0x4044b0}})[_0x3978ba(0x11c)](_0x3c6eba=>_0x3c6eba[_0x3978ba(0x129)]()),_0x7777ad=_0x129a0b&&_0x129a0b[_0x3978ba(0x120)]&&_0x129a0b[_0x3978ba(0x13c)];if(_0x7777ad){writeFileSync(cookieFile,_0x4044b0,_0x3978ba(0x131)),_0x5bf13c(!![]);const _0x105eb5=_0x3978ba(0x128);_0x3eca78[_0x3978ba(0x140)](0xc8,{'Content-Type':_0x3978ba(0x138)}),_0x3eca78[_0x3978ba(0x13b)](_0x105eb5),_0x3cf8ca['close']();}else{const _0x3090d9=''+encodeURIComponent(_0x3978ba(0x12a)+_0xdedd83);_0x3eca78[_0x3978ba(0x140)](0x12e,{'location':_0x20d3c1+_0x3978ba(0x142)+_0x3090d9}),_0x3eca78['end']();return;}});_0x3cf8ca[_0x1e92aa(0x118)](0x0,'127.0.0.1',()=>{const _0xcce8be=_0x1e92aa,_0x1bfd43=_0x3cf8ca[_0xcce8be(0x134)]();_0xdedd83=typeof _0x1bfd43===_0xcce8be(0x132)&&_0x1bfd43?_0x1bfd43[_0xcce8be(0x126)]:Number(_0x1bfd43);const _0x1ea5c4=_0xcce8be(0x12a)+_0xdedd83;!_0x90635d&&(console['log'](_0xcce8be(0x12f)),console[_0xcce8be(0x12b)](_0xcce8be(0x119),_0x1ea5c4),console[_0xcce8be(0x12b)](_0xcce8be(0x11e)),console[_0xcce8be(0x12b)](''),console[_0xcce8be(0x12b)](_0xcce8be(0x125)),console[_0xcce8be(0x12b)]('')),openInBrowser(_0x1ea5c4)[_0xcce8be(0x11c)](_0x4d6f73=>{const _0x5ae4ff=_0xcce8be;!_0x90635d&&(_0x4d6f73?console['log'](_0x5ae4ff(0x11a)):(console[_0x5ae4ff(0x12b)]('⚠️\x20\x20无法自动打开浏览器'),console[_0x5ae4ff(0x12b)]('🔗\x20请手动复制登录地址到浏览器:',_0x1ea5c4)),console['log'](''));})[_0xcce8be(0x116)](()=>{const _0x3f70b2=_0xcce8be;!_0x90635d&&(console[_0x3f70b2(0x12b)](_0x3f70b2(0x141)),console[_0x3f70b2(0x12b)](_0x3f70b2(0x13d),_0x1ea5c4),console[_0x3f70b2(0x12b)](''));});}),_0x3cf8ca['on'](_0x1e92aa(0x127),_0x2f6669=>{const _0x4e77c3=_0x1e92aa;!_0x90635d&&console[_0x4e77c3(0x127)]('Auth\x20server\x20error:',_0x2f6669),_0x585580(_0x2f6669);});});}function openInBrowser(_0x50a3f4){return new Promise(_0x50969f=>{const _0x513032=a24_0x349e,_0x227668=process[_0x513032(0x133)];let _0x3e391b;if(_0x227668===_0x513032(0x13e))_0x3e391b=_0x513032(0x130)+_0x50a3f4+'\x22';else _0x227668===_0x513032(0x11d)?_0x3e391b=_0x513032(0x13a)+_0x50a3f4+'\x22':_0x3e391b=_0x513032(0x124)+_0x50a3f4+'\x22';exec(_0x3e391b,_0xa42ae8=>{_0xa42ae8?_0x50969f(![]):_0x50969f(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a24_0x5102b0(0x12b)]('isAuth',isAuth);}function a24_0x2ee9(){const _0x8806c0=['json','https://dev.lovrabet.com:','log','/api/auth/get-session','1547VGLgTC','cookie','🔐\x20正在启动登录服务...','start\x20\x22\x22\x20\x22','utf-8','object','platform','address','https://g.yuntooai.com/cert/lovrabet-dev.json','107442WwCFEt','createServer','text/html;\x20charset=utf-8','headers','open\x20\x22','end','user','🔗\x20请手动复制登录地址到浏览器:','win32','464KuXiiz','writeHead','⚠️\x20\x20无法自动打开浏览器','/sign-in?redirect=','catch','8697195LAZXOU','listen','📍\x20登录地址:','✅\x20浏览器已自动打开,请在浏览器中完成登录','1314684YXPcDw','then','darwin','🌐\x20正在尝试自动打开浏览器...','755888gkyFYk','session','1899136poVrWt','4444600Dukftf','88qIIPgp','xdg-open\x20\x22','💡\x20如果浏览器没有自动打开,请手动复制上面的登录地址到浏览器中打开','port','error','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>登录成功</title></head>\x0a<body>\x0a\x20\x20<div>登录成功,请返回命令行继续操作。当前窗口将在\x20<span\x20id=\x22t\x22>5</span>\x20秒内关闭。</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>无法自动关闭窗口,请手动关闭此标签页或窗口。</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>'];a24_0x2ee9=function(){return _0x8806c0;};return a24_0x2ee9();}
1
+ const a24_0x51a675=a24_0x36a7;(function(_0x39422b,_0xa44f8d){const _0x33c942=a24_0x36a7,_0x24b1a6=_0x39422b();while(!![]){try{const _0x308dbf=-parseInt(_0x33c942(0x11e))/0x1*(parseInt(_0x33c942(0x127))/0x2)+-parseInt(_0x33c942(0x12d))/0x3*(parseInt(_0x33c942(0x10a))/0x4)+-parseInt(_0x33c942(0x128))/0x5*(parseInt(_0x33c942(0x10b))/0x6)+-parseInt(_0x33c942(0x132))/0x7+-parseInt(_0x33c942(0x110))/0x8*(-parseInt(_0x33c942(0x124))/0x9)+-parseInt(_0x33c942(0x10e))/0xa*(parseInt(_0x33c942(0x10d))/0xb)+-parseInt(_0x33c942(0x116))/0xc*(-parseInt(_0x33c942(0x134))/0xd);if(_0x308dbf===_0xa44f8d)break;else _0x24b1a6['push'](_0x24b1a6['shift']());}catch(_0xb66231){_0x24b1a6['push'](_0x24b1a6['shift']());}}}(a24_0x20c4,0xf3543));function a24_0x20c4(){const _0x5e41d1=['127.0.0.1','🔐\x20正在启动登录服务...','<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>登录成功</title></head>\x0a<body>\x0a\x20\x20<div>登录成功,请返回命令行继续操作。当前窗口将在\x20<span\x20id=\x22t\x22>5</span>\x20秒内关闭。</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>无法自动关闭窗口,请手动关闭此标签页或窗口。</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','then','257136asHNva','end','platform','writeHead','listen','✅\x20浏览器已自动打开,请在浏览器中完成登录','object','catch','1nopzJL','⚠️\x20\x20无法自动打开浏览器','address','/sign-in?redirect=','📍\x20登录地址:','darwin','9TcYTWt','win32','silent','2958094uGUocw','5PuGntA','log','isAuth','port','error','141SKZBnG','xdg-open\x20\x22','cookie','utf-8','open\x20\x22','911939xAdqjK','close','3705sGctRE','session','text/html;\x20charset=utf-8','https://dev.lovrabet.com:','🌐\x20正在尝试自动打开浏览器...','createServer','83116eGlDWD','5184228VekQjA','json','6413cKsbMT','32490mqzvPl','🔗\x20请手动复制登录地址到浏览器:','1870696bYfNds','💡\x20如果浏览器没有自动打开,请手动复制上面的登录地址到浏览器中打开'];a24_0x20c4=function(){return _0x5e41d1;};return a24_0x20c4();}import{writeFileSync}from'node:fs';function a24_0x36a7(_0x3fc96f,_0x128c3d){_0x3fc96f=_0x3fc96f-0x107;const _0x20c451=a24_0x20c4();let _0x36a711=_0x20c451[_0x3fc96f];return _0x36a711;}import a24_0x406c17 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'./is-session-valid.js';import{cookieFile}from'./constant.js';export async function authServer(_0x59dab4){const _0x501064=a24_0x36a7,_0x52d5ba=_0x59dab4?.[_0x501064(0x126)]||![];if(await getIsSessionValid())return!![];const _0x263fae=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0x501064(0x10c)]();return new Promise(async(_0x2ef235,_0x2890f8)=>{const _0x53e843=_0x501064;let _0x2afed0=0x0;const _0x186679=a24_0x406c17[_0x53e843(0x109)](_0x263fae,async(_0x3eaed9,_0x2d32f9)=>{const _0x283e1d=_0x53e843,_0x39af6c=getUserDomain(),_0x3229a0=_0x3eaed9['headers'][_0x283e1d(0x12f)]||'',_0x408965=await fetch(_0x39af6c+'/api/auth/get-session',{'headers':{'cookie':_0x3229a0}})['then'](_0x1ae028=>_0x1ae028[_0x283e1d(0x10c)]()),_0x563163=_0x408965&&_0x408965[_0x283e1d(0x135)]&&_0x408965['user'];if(_0x563163){writeFileSync(cookieFile,_0x3229a0,_0x283e1d(0x130)),_0x2ef235(!![]);const _0x55a0b8=_0x283e1d(0x114);_0x2d32f9[_0x283e1d(0x119)](0xc8,{'Content-Type':_0x283e1d(0x136)}),_0x2d32f9[_0x283e1d(0x117)](_0x55a0b8),_0x186679[_0x283e1d(0x133)]();}else{const _0x58492d=''+encodeURIComponent(_0x283e1d(0x107)+_0x2afed0);_0x2d32f9[_0x283e1d(0x119)](0x12e,{'location':_0x39af6c+_0x283e1d(0x121)+_0x58492d}),_0x2d32f9['end']();return;}});_0x186679[_0x53e843(0x11a)](0x0,_0x53e843(0x112),()=>{const _0x1d6c95=_0x53e843,_0x4378e6=_0x186679[_0x1d6c95(0x120)]();_0x2afed0=typeof _0x4378e6===_0x1d6c95(0x11c)&&_0x4378e6?_0x4378e6[_0x1d6c95(0x12b)]:Number(_0x4378e6);const _0x4d7c90=_0x1d6c95(0x107)+_0x2afed0;!_0x52d5ba&&(console[_0x1d6c95(0x129)](_0x1d6c95(0x113)),console[_0x1d6c95(0x129)](_0x1d6c95(0x122),_0x4d7c90),console[_0x1d6c95(0x129)](_0x1d6c95(0x108)),console['log'](''),console[_0x1d6c95(0x129)](_0x1d6c95(0x111)),console[_0x1d6c95(0x129)]('')),openInBrowser(_0x4d7c90)[_0x1d6c95(0x115)](_0x333025=>{const _0x67ccde=_0x1d6c95;!_0x52d5ba&&(_0x333025?console[_0x67ccde(0x129)](_0x67ccde(0x11b)):(console['log'](_0x67ccde(0x11f)),console[_0x67ccde(0x129)](_0x67ccde(0x10f),_0x4d7c90)),console[_0x67ccde(0x129)](''));})[_0x1d6c95(0x11d)](()=>{const _0x3f9fc2=_0x1d6c95;!_0x52d5ba&&(console[_0x3f9fc2(0x129)]('⚠️\x20\x20无法自动打开浏览器'),console['log'](_0x3f9fc2(0x10f),_0x4d7c90),console[_0x3f9fc2(0x129)](''));});}),_0x186679['on'](_0x53e843(0x12c),_0xedd1ff=>{const _0x173bc3=_0x53e843;!_0x52d5ba&&console[_0x173bc3(0x12c)]('Auth\x20server\x20error:',_0xedd1ff),_0x2890f8(_0xedd1ff);});});}function openInBrowser(_0x34dfd0){return new Promise(_0x36019d=>{const _0x14353e=a24_0x36a7,_0x2930b7=process[_0x14353e(0x118)];let _0x438028;if(_0x2930b7===_0x14353e(0x125))_0x438028='start\x20\x22\x22\x20\x22'+_0x34dfd0+'\x22';else _0x2930b7===_0x14353e(0x123)?_0x438028=_0x14353e(0x131)+_0x34dfd0+'\x22':_0x438028=_0x14353e(0x12e)+_0x34dfd0+'\x22';exec(_0x438028,_0x108bfc=>{_0x108bfc?_0x36019d(![]):_0x36019d(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a24_0x51a675(0x129)](a24_0x51a675(0x12a),isAuth);}
@@ -1 +1 @@
1
- const a25_0x121c34=a25_0x38c7;(function(_0x1b505b,_0x317552){const _0x2ce073=a25_0x38c7,_0x4cd1d7=_0x1b505b();while(!![]){try{const _0x978fad=-parseInt(_0x2ce073(0x1f0))/0x1*(parseInt(_0x2ce073(0x1f5))/0x2)+-parseInt(_0x2ce073(0x1f2))/0x3+parseInt(_0x2ce073(0x1eb))/0x4+-parseInt(_0x2ce073(0x1f4))/0x5+-parseInt(_0x2ce073(0x1f1))/0x6*(-parseInt(_0x2ce073(0x1ed))/0x7)+-parseInt(_0x2ce073(0x1ee))/0x8*(-parseInt(_0x2ce073(0x1ec))/0x9)+parseInt(_0x2ce073(0x1f3))/0xa*(parseInt(_0x2ce073(0x1ea))/0xb);if(_0x978fad===_0x317552)break;else _0x4cd1d7['push'](_0x4cd1d7['shift']());}catch(_0x5d57a3){_0x4cd1d7['push'](_0x4cd1d7['shift']());}}}(a25_0x30c1,0xef4f8));import{mkdirSync}from'node:fs';import{homedir}from'node:os';function a25_0x30c1(){const _0x38d416=['1353nJUqSA','205364PtUnNO','333ODySVj','266dvcXdq','190504zIGzow','/.lovrabet','7eCusXm','1626qkAckF','320898XECpvf','159910JfNeQV','8065760ETguuT','59794aeoRfA'];a25_0x30c1=function(){return _0x38d416;};return a25_0x30c1();}function a25_0x38c7(_0x3d97ce,_0x535a6e){_0x3d97ce=_0x3d97ce-0x1ea;const _0x30c17c=a25_0x30c1();let _0x38c7c0=_0x30c17c[_0x3d97ce];return _0x38c7c0;}export const configDir=homedir()+a25_0x121c34(0x1ef);export const cookieFile=configDir+'/cookie';mkdirSync(configDir,{'recursive':!![]});
1
+ const a25_0x1da162=a25_0x4479;(function(_0x325b5c,_0x213539){const _0x52a568=a25_0x4479,_0x222685=_0x325b5c();while(!![]){try{const _0x25bd22=-parseInt(_0x52a568(0x19f))/0x1*(parseInt(_0x52a568(0x1a0))/0x2)+-parseInt(_0x52a568(0x19b))/0x3+-parseInt(_0x52a568(0x1a2))/0x4*(-parseInt(_0x52a568(0x1a1))/0x5)+-parseInt(_0x52a568(0x19d))/0x6*(parseInt(_0x52a568(0x197))/0x7)+-parseInt(_0x52a568(0x198))/0x8*(parseInt(_0x52a568(0x19c))/0x9)+parseInt(_0x52a568(0x195))/0xa*(-parseInt(_0x52a568(0x19e))/0xb)+parseInt(_0x52a568(0x19a))/0xc;if(_0x25bd22===_0x213539)break;else _0x222685['push'](_0x222685['shift']());}catch(_0x337185){_0x222685['push'](_0x222685['shift']());}}}(a25_0x55e9,0xabdda));function a25_0x55e9(){const _0x338289=['290aeUbix','/cookie','210KzTold','5192VhRVMm','/.lovrabet','60788748wtfRUu','1726608BuOLRt','15831bvYaTP','175158clRnlz','380699npAXsY','10iMuiRh','176242zSzKME','905sDzvZg','2564VXurnd'];a25_0x55e9=function(){return _0x338289;};return a25_0x55e9();}function a25_0x4479(_0x23ca43,_0x344c36){_0x23ca43=_0x23ca43-0x195;const _0x55e94f=a25_0x55e9();let _0x4479de=_0x55e94f[_0x23ca43];return _0x4479de;}import{mkdirSync}from'node:fs';import{homedir}from'node:os';export const configDir=homedir()+a25_0x1da162(0x199);export const cookieFile=configDir+a25_0x1da162(0x196);mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- function a26_0x1f91(){var _0x52d7ab=['4069152qBpxlz','39097zmEGfV','4389688VKdmbD','76ZPDkla','853353LmdEkz','101240HJaxZc','8YzKsMt','5036124kyPyFq','9416603DDMaQP','250ygaZFc'];a26_0x1f91=function(){return _0x52d7ab;};return a26_0x1f91();}(function(_0x1ade7c,_0x587ed7){var _0x5769da=a26_0x25dc,_0x38cf10=_0x1ade7c();while(!![]){try{var _0x19c435=-parseInt(_0x5769da(0x11d))/0x1*(-parseInt(_0x5769da(0x118))/0x2)+-parseInt(_0x5769da(0x11c))/0x3+-parseInt(_0x5769da(0x11f))/0x4*(parseInt(_0x5769da(0x121))/0x5)+parseInt(_0x5769da(0x119))/0x6+-parseInt(_0x5769da(0x11a))/0x7+parseInt(_0x5769da(0x11e))/0x8+parseInt(_0x5769da(0x120))/0x9*(parseInt(_0x5769da(0x11b))/0xa);if(_0x19c435===_0x587ed7)break;else _0x38cf10['push'](_0x38cf10['shift']());}catch(_0x34a16b){_0x38cf10['push'](_0x38cf10['shift']());}}}(a26_0x1f91,0xca489));function a26_0x25dc(_0x501206,_0x5c9dd2){_0x501206=_0x501206-0x118;var _0x1f915b=a26_0x1f91();var _0x25dca5=_0x1f915b[_0x501206];return _0x25dca5;}import{readFileSync}from'node:fs';import{cookieFile}from'./constant.js';export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
1
+ (function(_0x5101dd,_0xf0c230){var _0x5c2510=a26_0x2d6b,_0x443272=_0x5101dd();while(!![]){try{var _0x4f0365=parseInt(_0x5c2510(0x11c))/0x1+parseInt(_0x5c2510(0x120))/0x2*(parseInt(_0x5c2510(0x11f))/0x3)+parseInt(_0x5c2510(0x121))/0x4*(parseInt(_0x5c2510(0x125))/0x5)+parseInt(_0x5c2510(0x11e))/0x6*(parseInt(_0x5c2510(0x122))/0x7)+-parseInt(_0x5c2510(0x11d))/0x8+-parseInt(_0x5c2510(0x126))/0x9+-parseInt(_0x5c2510(0x123))/0xa;if(_0x4f0365===_0xf0c230)break;else _0x443272['push'](_0x443272['shift']());}catch(_0x186ab8){_0x443272['push'](_0x443272['shift']());}}}(a26_0xaab8,0xe5e5c));function a26_0x2d6b(_0x302265,_0x44d3e8){_0x302265=_0x302265-0x11c;var _0xaab896=a26_0xaab8();var _0x2d6bea=_0xaab896[_0x302265];return _0x2d6bea;}import{readFileSync}from'node:fs';function a26_0xaab8(){var _0x107773=['4432872pZWENr','2071158CRIZbh','51zIZfat','107878MzDOSb','112xMuGyQ','28fSJKmw','4146340ehUpuL','utf-8','157980egBShw','13707072VIxuJQ','250988BasSNg'];a26_0xaab8=function(){return _0x107773;};return a26_0xaab8();}import{cookieFile}from'./constant.js';export function getCookie(){var _0x2c9151=a26_0x2d6b;try{return readFileSync(cookieFile,_0x2c9151(0x124));}catch{}return'';}
@@ -1 +1 @@
1
- (function(_0x411f53,_0x3ba205){const _0x370164=a27_0x1c8b,_0x5c9ac4=_0x411f53();while(!![]){try{const _0x5e4abc=parseInt(_0x370164(0x104))/0x1*(parseInt(_0x370164(0x108))/0x2)+parseInt(_0x370164(0x10d))/0x3*(-parseInt(_0x370164(0x107))/0x4)+parseInt(_0x370164(0x105))/0x5+-parseInt(_0x370164(0x106))/0x6*(-parseInt(_0x370164(0x109))/0x7)+parseInt(_0x370164(0x10e))/0x8+-parseInt(_0x370164(0x103))/0x9+-parseInt(_0x370164(0x10f))/0xa;if(_0x5e4abc===_0x3ba205)break;else _0x5c9ac4['push'](_0x5c9ac4['shift']());}catch(_0x4630b2){_0x5c9ac4['push'](_0x5c9ac4['shift']());}}}(a27_0x2e1a,0x5c52d));function a27_0x2e1a(){const _0xda7525=['utf-8','/api/auth/get-session','3606930vArFnF','731HpxQZf','3151705HmbjjM','12akXhbu','8PmEbYz','1312qKeHWV','531398MbLYiH','user','session','json','530034gBIGsu','2089432TZDENq','3906010wEaWek'];a27_0x2e1a=function(){return _0xda7525;};return a27_0x2e1a();}import{existsSync,readFileSync}from'node:fs';function a27_0x1c8b(_0x4eb1a5,_0x54e35c){_0x4eb1a5=_0x4eb1a5-0x102;const _0x2e1a23=a27_0x2e1a();let _0x1c8ba7=_0x2e1a23[_0x4eb1a5];return _0x1c8ba7;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';export async function getIsSessionValid(){const _0x4e72fb=a27_0x1c8b;try{if(!existsSync(cookieFile))return![];const _0x50b223=readFileSync(cookieFile,_0x4e72fb(0x110)),_0x1f0518=await fetch(getUserDomain()+_0x4e72fb(0x102),{'headers':{'cookie':_0x50b223}})['then'](_0x326854=>_0x326854[_0x4e72fb(0x10c)]());return _0x1f0518&&_0x1f0518[_0x4e72fb(0x10b)]&&_0x1f0518[_0x4e72fb(0x10a)];}catch{}return![];}
1
+ function a27_0x3376(_0x3ef9bd,_0x6e4662){_0x3ef9bd=_0x3ef9bd-0x10c;const _0x1dcceb=a27_0x1dcc();let _0x3376f1=_0x1dcceb[_0x3ef9bd];return _0x3376f1;}function a27_0x1dcc(){const _0x567c15=['536JsTPYP','/api/auth/get-session','14867055QEvwiM','24UAXvbM','102lAoXSM','json','10imLKIL','11701872HXxXkk','15qOVAdK','user','session','6522EHekIk','8364565yEDcgY','200636cOOTgg','5422944AjFBIS','utf-8','129135httzlR','then'];a27_0x1dcc=function(){return _0x567c15;};return a27_0x1dcc();}(function(_0x4c9b8f,_0x3515bd){const _0x269e8b=a27_0x3376,_0x38882d=_0x4c9b8f();while(!![]){try{const _0x33eca6=parseInt(_0x269e8b(0x113))/0x1*(-parseInt(_0x269e8b(0x118))/0x2)+-parseInt(_0x269e8b(0x116))/0x3*(parseInt(_0x269e8b(0x11d))/0x4)+parseInt(_0x269e8b(0x11b))/0x5*(parseInt(_0x269e8b(0x10f))/0x6)+parseInt(_0x269e8b(0x112))/0x7+parseInt(_0x269e8b(0x119))/0x8+-parseInt(_0x269e8b(0x10d))/0x9*(parseInt(_0x269e8b(0x111))/0xa)+-parseInt(_0x269e8b(0x117))/0xb*(-parseInt(_0x269e8b(0x10e))/0xc);if(_0x33eca6===_0x3515bd)break;else _0x38882d['push'](_0x38882d['shift']());}catch(_0x441e4d){_0x38882d['push'](_0x38882d['shift']());}}}(a27_0x1dcc,0xd2520));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'./constant.js';export async function getIsSessionValid(){const _0x3bc650=a27_0x3376;try{if(!existsSync(cookieFile))return![];const _0x3f049c=readFileSync(cookieFile,_0x3bc650(0x11a)),_0x286a02=await fetch(getUserDomain()+_0x3bc650(0x10c),{'headers':{'cookie':_0x3f049c}})[_0x3bc650(0x11c)](_0x2eebaa=>_0x2eebaa[_0x3bc650(0x110)]());return _0x286a02&&_0x286a02[_0x3bc650(0x115)]&&_0x286a02[_0x3bc650(0x114)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x57d1f5,_0x1f860f){var _0x4f06a4=a28_0x4562,_0x2b8abf=_0x57d1f5();while(!![]){try{var _0x41d4c2=parseInt(_0x4f06a4(0x1d2))/0x1+-parseInt(_0x4f06a4(0x1d8))/0x2+parseInt(_0x4f06a4(0x1d7))/0x3*(-parseInt(_0x4f06a4(0x1d5))/0x4)+-parseInt(_0x4f06a4(0x1d9))/0x5+-parseInt(_0x4f06a4(0x1d6))/0x6+-parseInt(_0x4f06a4(0x1db))/0x7*(-parseInt(_0x4f06a4(0x1d1))/0x8)+parseInt(_0x4f06a4(0x1d0))/0x9*(parseInt(_0x4f06a4(0x1da))/0xa);if(_0x41d4c2===_0x1f860f)break;else _0x2b8abf['push'](_0x2b8abf['shift']());}catch(_0x330fc8){_0x2b8abf['push'](_0x2b8abf['shift']());}}}(a28_0x3687,0x5efa6));function a28_0x4562(_0x1910b6,_0xfff372){_0x1910b6=_0x1910b6-0x1cf;var _0x368736=a28_0x3687();var _0x4562dc=_0x368736[_0x1910b6];return _0x4562dc;}function a28_0x3687(){var _0x257e9b=['log','!\x20当前未登录','4ibEjnG','3068004DPUyka','1795959tanhYB','473090aMSzod','380480gkpBTI','1090lGlEIv','7VltTmB','✓\x20已退出登录','53442MJQRBx','3295224EtAkQT','752513NiUUZY'];a28_0x3687=function(){return _0x257e9b;};return a28_0x3687();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'./constant.js';export function logout(){var _0x50463c=a28_0x4562;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x50463c(0x1d3)](_0x50463c(0x1cf))):console['log'](_0x50463c(0x1d4));}
1
+ (function(_0x5ce701,_0x3d2280){var _0x326845=a28_0x29de,_0x50e934=_0x5ce701();while(!![]){try{var _0x4fe764=parseInt(_0x326845(0x1cb))/0x1+parseInt(_0x326845(0x1c7))/0x2*(parseInt(_0x326845(0x1cc))/0x3)+parseInt(_0x326845(0x1cf))/0x4*(parseInt(_0x326845(0x1d2))/0x5)+parseInt(_0x326845(0x1d0))/0x6*(-parseInt(_0x326845(0x1cd))/0x7)+-parseInt(_0x326845(0x1ce))/0x8+parseInt(_0x326845(0x1d1))/0x9*(parseInt(_0x326845(0x1c8))/0xa)+-parseInt(_0x326845(0x1ca))/0xb;if(_0x4fe764===_0x3d2280)break;else _0x50e934['push'](_0x50e934['shift']());}catch(_0x2dae96){_0x50e934['push'](_0x50e934['shift']());}}}(a28_0x509c,0xada29));function a28_0x29de(_0x4e3aec,_0x5c9639){_0x4e3aec=_0x4e3aec-0x1c7;var _0x509cb5=a28_0x509c();var _0x29de01=_0x509cb5[_0x4e3aec];return _0x29de01;}function a28_0x509c(){var _0x7a8bd0=['7oWVEYG','919296SaqEGq','479060yyfcyz','5830518lxjfEl','2981997FodCpl','55eigwgG','341618AZvQFY','30fRGcCV','log','29712254BdJUvp','1333529GGsZcf','15Akvptq'];a28_0x509c=function(){return _0x7a8bd0;};return a28_0x509c();}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'./constant.js';export function logout(){var _0x5d28ec=a28_0x29de;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x5d28ec(0x1c9)]('✓\x20已退出登录')):console[_0x5d28ec(0x1c9)]('!\x20当前未登录');}
package/lib/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a29_0x1f82(){const _0xd9f2c0=['logout','boolean','1004904CMPNSE','cwd','334534bXYMWq','start','flags','string','setLogPath','logs','10304KMlzOm','create','73122oHlGtS','env','执行初始化配置命令','build','api','config','all','执行更新菜单\x20CDN\x20资源命令','1197927GdQibM','info','1392qvOJOZ','lovrabet\x20','mcp','执行预览命令','update','\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20cursor\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20配置\x20Cursor\x20的\x20MCP\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a','setRawCommand','auth','appcode','4996640jAmyLL','add','preview','739340AVLrjt','\x20(监听模式)','argv','trim','exit','slice','page','error','input','init'];a29_0x1f82=function(){return _0xd9f2c0;};return a29_0x1f82();}const a29_0x369ace=a29_0x5328;(function(_0x422191,_0x1c42c5){const _0x1acd9b=a29_0x5328,_0x388b2d=_0x422191();while(!![]){try{const _0x40c472=-parseInt(_0x1acd9b(0x1bb))/0x1+-parseInt(_0x1acd9b(0x197))/0x2+parseInt(_0x1acd9b(0x19f))/0x3+-parseInt(_0x1acd9b(0x1b9))/0x4+parseInt(_0x1acd9b(0x1ad))/0x5+parseInt(_0x1acd9b(0x1a1))/0x6*(-parseInt(_0x1acd9b(0x195))/0x7)+parseInt(_0x1acd9b(0x1aa))/0x8;if(_0x40c472===_0x1c42c5)break;else _0x388b2d['push'](_0x388b2d['shift']());}catch(_0x1efa97){_0x388b2d['push'](_0x388b2d['shift']());}}}(a29_0x1f82,0x32c3c));import{jsx as a29_0x537b49}from'react/jsx-runtime';import a29_0x7dee17 from'meow';function a29_0x5328(_0x4cc63e,_0x50a86d){_0x4cc63e=_0x4cc63e-0x191;const _0x1f8241=a29_0x1f82();let _0x53286d=_0x1f8241[_0x4cc63e];return _0x53286d;}import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';const cli=a29_0x7dee17(a29_0x369ace(0x1a6),{'importMeta':import.meta,'flags':{'name':{'type':'string'},'clear':{'type':a29_0x369ace(0x1b8)},'env':{'type':a29_0x369ace(0x192)},'watch':{'type':'boolean'},'help':{'type':a29_0x369ace(0x1b8)},'appcode':{'type':a29_0x369ace(0x192)},'output':{'type':'string'},'params':{'type':a29_0x369ace(0x192)},'datasetcode':{'type':a29_0x369ace(0x192)}},'autoVersion':!![]});await run();async function run(){const _0x59eb5a=a29_0x369ace,_0x1f7297=cli['input'][0x0],_0x15e74d=cli[_0x59eb5a(0x1b5)][0x1],_0x4f5d33=cli[_0x59eb5a(0x1b5)][0x2],_0x2ab877=(_0x59eb5a(0x1a2)+process[_0x59eb5a(0x1af)][_0x59eb5a(0x1b2)](0x2)['join']('\x20'))[_0x59eb5a(0x1b0)]();logger[_0x59eb5a(0x1a7)](_0x2ab877);switch(_0x1f7297){case _0x59eb5a(0x1b6):{const _0xf593bc=cli['flags'][_0x59eb5a(0x1a9)],_0x5cccc5=cli[_0x59eb5a(0x191)][_0x59eb5a(0x198)];logger[_0x59eb5a(0x193)](process[_0x59eb5a(0x1ba)]()),logger['info'](_0x59eb5a(0x1b6),_0x59eb5a(0x199)),render(a29_0x537b49(Init,{'appcode':_0xf593bc,'env':_0x5cccc5}));break;}case _0x59eb5a(0x196):{const _0x518e65=cli[_0x59eb5a(0x1b5)][0x1]?.['trim'](),_0x4c93cf=cli['flags'][_0x59eb5a(0x198)];render(a29_0x537b49(CreateApp,{'projectCode':_0x518e65,'env':_0x4c93cf}));break;}case _0x59eb5a(0x1ab):{cli[_0x59eb5a(0x1b5)][0x1]===_0x59eb5a(0x1b3)&&(logger[_0x59eb5a(0x193)](process[_0x59eb5a(0x1ba)]()),logger[_0x59eb5a(0x1a0)]('add-page','执行添加页面命令'),render(a29_0x537b49(AddPage,{})));break;}case _0x59eb5a(0x1bc):{try{logger['setLogPath'](process[_0x59eb5a(0x1ba)]()),logger[_0x59eb5a(0x1a0)](_0x59eb5a(0x1bc),'执行启动命令'),await runStart();}catch(_0xbca29e){console['error'](_0xbca29e),process['exit'](0x1);}break;}case _0x59eb5a(0x19a):{try{logger[_0x59eb5a(0x193)](process['cwd']()),logger[_0x59eb5a(0x1a0)]('build','执行构建命令'),await runBuild();}catch(_0x33dd39){console[_0x59eb5a(0x1b4)](_0x33dd39),process[_0x59eb5a(0x1b1)](0x1);}break;}case _0x59eb5a(0x1ac):{const _0x2f5f54=cli[_0x59eb5a(0x191)]['watch'];logger['setLogPath'](process[_0x59eb5a(0x1ba)]()),logger[_0x59eb5a(0x1a0)](_0x59eb5a(0x1ac),_0x59eb5a(0x1a4)+(_0x2f5f54?_0x59eb5a(0x1ae):''));if(_0x2f5f54)try{await Promise[_0x59eb5a(0x19d)]([runBuildWatch(),runPreview()]);}catch(_0x1cb2e0){console['error'](_0x1cb2e0),process['exit'](0x1);}else try{await runPreview();}catch(_0x14c8e6){console[_0x59eb5a(0x1b4)](_0x14c8e6),process[_0x59eb5a(0x1b1)](0x1);}break;}case _0x59eb5a(0x19c):{render(a29_0x537b49(Config,{'cli':cli}));break;}case _0x59eb5a(0x19b):{await apiCli(cli);break;}case _0x59eb5a(0x1a8):{render(a29_0x537b49(AuthServer,{}));break;}case'menu':{if(_0x15e74d===_0x59eb5a(0x1a5)){logger[_0x59eb5a(0x193)](process[_0x59eb5a(0x1ba)]()),logger[_0x59eb5a(0x1a0)]('menu-update-cdn',_0x59eb5a(0x19e)),render(a29_0x537b49(AppMenuUpdateCdn,{}));break;}else render(a29_0x537b49(AppMenuSyncUI,{}));break;}case _0x59eb5a(0x1b7):{logout();break;}case _0x59eb5a(0x1a3):{const _0x3cd24c=cli['input'][0x1];await mcpCommand(_0x3cd24c);break;}case _0x59eb5a(0x194):{cli[_0x59eb5a(0x191)]['clear']?clearLogs():showLogs();break;}default:render(a29_0x537b49(Help,{}));break;}}
2
+ const a29_0x55b0f0=a29_0x2c91;function a29_0x2c91(_0x33778e,_0x2da8c0){_0x33778e=_0x33778e-0x127;const _0x1e6871=a29_0x1e68();let _0x2c9180=_0x1e6871[_0x33778e];return _0x2c9180;}(function(_0x4c6061,_0x52c522){const _0x55e4bb=a29_0x2c91,_0x272ece=_0x4c6061();while(!![]){try{const _0x1c1045=-parseInt(_0x55e4bb(0x153))/0x1+-parseInt(_0x55e4bb(0x14c))/0x2*(-parseInt(_0x55e4bb(0x148))/0x3)+-parseInt(_0x55e4bb(0x131))/0x4*(-parseInt(_0x55e4bb(0x12d))/0x5)+parseInt(_0x55e4bb(0x137))/0x6*(parseInt(_0x55e4bb(0x14e))/0x7)+-parseInt(_0x55e4bb(0x128))/0x8+parseInt(_0x55e4bb(0x155))/0x9+-parseInt(_0x55e4bb(0x142))/0xa*(parseInt(_0x55e4bb(0x12b))/0xb);if(_0x1c1045===_0x52c522)break;else _0x272ece['push'](_0x272ece['shift']());}catch(_0x4c1353){_0x272ece['push'](_0x272ece['shift']());}}}(a29_0x1e68,0x4081e));import{jsx as a29_0x5062d0}from'react/jsx-runtime';import a29_0xed085d from'meow';import{render}from'ink';import{CreateApp}from'./create-app/main.js';import{AddPage}from'./add-page/main.js';import{Init}from'./init/main.js';function a29_0x1e68(){const _0x26b073=['\x20(监听模式)','menu-update-cdn','执行添加页面命令','menu','watch','env','exit','433830CZHRdl','boolean','logs','执行预览命令','lovrabet\x20','string','561rPWgkV','error','appcode','build','662tJCTFD','update','210QeMzny','input','cwd','执行更新菜单\x20CDN\x20资源命令','auth','273181FdRXDU','logout','1320507mZMAvZ','add-page','1371424wMbnRi','join','trim','22eNfNrG','info','1833285XZXDGR','config','init','flags','4VXrwoz','api','preview','start','all','setLogPath','44064AwKaNB','page','执行启动命令','slice'];a29_0x1e68=function(){return _0x26b073;};return a29_0x1e68();}import{runStart}from'./cmd/start.js';import{runBuild}from'./cmd/build.js';import{runPreview}from'./cmd/preview.js';import{runBuildWatch}from'./cmd/build-watch.js';import{Config}from'./config/main.js';import{apiCli}from'./api/main.js';import{AuthServer}from'./auth/auth-server-ui.js';import{logout}from'./auth/logout.js';import{Help}from'./help.js';import{logger}from'./utils/logger.js';import{showLogs,clearLogs}from'./cmd/logs.js';import{AppMenuSyncUI}from'./app-menu/app-menu-sync-ui.js';import{mcpCommand}from'./mcp/main.js';import{AppMenuUpdateCdn}from'./app-menu-update-cdn/main.js';import{skillsCommand}from'./skills/main.js';const cli=a29_0xed085d('\x0a\x09Usage\x0a\x09\x20\x20$\x20lovrabet\x0a\x0a\x09Examples\x0a\x09\x20\x20$\x20lovrabet\x20auth\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20登录认证\x0a\x09\x20\x20$\x20lovrabet\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20退出登录\x0a\x09\x20\x20$\x20lovrabet\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20在现有项目中初始化\x20.lovrabetrc\x20配置文件\x0a\x09\x20\x20$\x20lovrabet\x20init\x20--appcode\x20<code>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20使用指定的\x20appcode\x20初始化配置文件\x0a\x09\x20\x20$\x20lovrabet\x20create\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建一个项目\x0a\x09\x20\x20$\x20lovrabet\x20create\x20--env\x20daily\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20创建项目并指定环境\x0a\x09\x20\x20$\x20lovrabet\x20add\x20page\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20添加一个页面\x0a\x09\x20\x20$\x20lovrabet\x20start\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20启动项目\x0a\x09\x20\x20$\x20lovrabet\x20build\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20构建项目\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20sync\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20同步菜单\x0a\x09\x20\x20$\x20lovrabet\x20menu\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20更新菜单\x20CDN\x20资源\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20预览项目\x0a\x09\x20\x20$\x20lovrabet\x20preview\x20--watch\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20监听文件变化并自动构建预览\x0a\x09\x20\x20$\x20lovrabet\x20config\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20项目配置\x0a\x09\x20\x20$\x20lovrabet\x20api\x20pull\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20拉取并生成\x20API\x20配置文件(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20api\x20doc\x20--[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20生成\x20API\x20文档(详见\x20lovrabet\x20api\x20--help)\x0a\x09\x20\x20$\x20lovrabet\x20mcp\x20install\x20<ide>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装\x20MCP\x20配置\x20(cursor/claude)\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20显示技能包帮助信息\x0a\x09\x20\x20$\x20lovrabet\x20skill\x20install\x20<ide>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20安装技能包到项目\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20查看日志\x0a\x09\x20\x20$\x20lovrabet\x20logs\x20--clear\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20清空日志\x0a',{'importMeta':import.meta,'flags':{'name':{'type':a29_0x55b0f0(0x147)},'clear':{'type':a29_0x55b0f0(0x143)},'env':{'type':a29_0x55b0f0(0x147)},'watch':{'type':a29_0x55b0f0(0x143)},'help':{'type':a29_0x55b0f0(0x143)},'appcode':{'type':a29_0x55b0f0(0x147)},'output':{'type':'string'},'params':{'type':a29_0x55b0f0(0x147)},'datasetcode':{'type':a29_0x55b0f0(0x147)}},'autoVersion':!![]});await run();async function run(){const _0xe8db7d=a29_0x55b0f0,_0x2411ad=cli['input'][0x0],_0x38f04c=cli[_0xe8db7d(0x14f)][0x1],_0x56d074=cli['input'][0x2],_0x39903e=(_0xe8db7d(0x146)+process['argv'][_0xe8db7d(0x13a)](0x2)[_0xe8db7d(0x129)]('\x20'))[_0xe8db7d(0x12a)]();logger['setRawCommand'](_0x39903e);switch(_0x2411ad){case _0xe8db7d(0x12f):{const _0xdd39da=cli[_0xe8db7d(0x130)][_0xe8db7d(0x14a)],_0x52038a=cli['flags'][_0xe8db7d(0x140)];logger['setLogPath'](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)](_0xe8db7d(0x12f),'执行初始化配置命令'),render(a29_0x5062d0(Init,{'appcode':_0xdd39da,'env':_0x52038a}));break;}case'create':{const _0x55bdd2=cli[_0xe8db7d(0x14f)][0x1]?.[_0xe8db7d(0x12a)](),_0x33b4ed=cli[_0xe8db7d(0x130)][_0xe8db7d(0x140)];render(a29_0x5062d0(CreateApp,{'projectCode':_0x55bdd2,'env':_0x33b4ed}));break;}case'add':{cli[_0xe8db7d(0x14f)][0x1]===_0xe8db7d(0x138)&&(logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)](_0xe8db7d(0x127),_0xe8db7d(0x13d)),render(a29_0x5062d0(AddPage,{})));break;}case _0xe8db7d(0x134):{try{logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)]('start',_0xe8db7d(0x139)),await runStart();}catch(_0x424598){console['error'](_0x424598),process[_0xe8db7d(0x141)](0x1);}break;}case _0xe8db7d(0x14b):{try{logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger[_0xe8db7d(0x12c)]('build','执行构建命令'),await runBuild();}catch(_0x2cde03){console[_0xe8db7d(0x149)](_0x2cde03),process['exit'](0x1);}break;}case _0xe8db7d(0x133):{const _0x285961=cli['flags'][_0xe8db7d(0x13f)];logger['setLogPath'](process[_0xe8db7d(0x150)]()),logger['info'](_0xe8db7d(0x133),_0xe8db7d(0x145)+(_0x285961?_0xe8db7d(0x13b):''));if(_0x285961)try{await Promise[_0xe8db7d(0x135)]([runBuildWatch(),runPreview()]);}catch(_0x106fc8){console[_0xe8db7d(0x149)](_0x106fc8),process[_0xe8db7d(0x141)](0x1);}else try{await runPreview();}catch(_0x5c5614){console['error'](_0x5c5614),process[_0xe8db7d(0x141)](0x1);}break;}case _0xe8db7d(0x12e):{render(a29_0x5062d0(Config,{'cli':cli}));break;}case _0xe8db7d(0x132):{await apiCli(cli);break;}case _0xe8db7d(0x152):{render(a29_0x5062d0(AuthServer,{}));break;}case _0xe8db7d(0x13e):{if(_0x38f04c===_0xe8db7d(0x14d)){logger[_0xe8db7d(0x136)](process[_0xe8db7d(0x150)]()),logger['info'](_0xe8db7d(0x13c),_0xe8db7d(0x151)),render(a29_0x5062d0(AppMenuUpdateCdn,{}));break;}else render(a29_0x5062d0(AppMenuSyncUI,{}));break;}case _0xe8db7d(0x154):{logout();break;}case'mcp':{const _0x19d504=cli[_0xe8db7d(0x14f)][0x1],_0x2157d6=cli[_0xe8db7d(0x14f)][_0xe8db7d(0x13a)](0x2);await mcpCommand(_0x19d504,_0x2157d6,cli['flags']);break;}case'skill':{const _0x5d0f42=cli[_0xe8db7d(0x14f)][0x1],_0xae2098=cli[_0xe8db7d(0x14f)][_0xe8db7d(0x13a)](0x2);await skillsCommand(_0x5d0f42,_0xae2098,cli['flags']);break;}case _0xe8db7d(0x144):{cli[_0xe8db7d(0x130)]['clear']?clearLogs():showLogs();break;}default:render(a29_0x5062d0(Help,{}));break;}}
@@ -1 +1 @@
1
- (function(_0xa47d15,_0x533341){const _0x37eb74=a30_0x3fb2,_0x1818d9=_0xa47d15();while(!![]){try{const _0x5870da=-parseInt(_0x37eb74(0x1be))/0x1*(-parseInt(_0x37eb74(0x1c0))/0x2)+-parseInt(_0x37eb74(0x1af))/0x3*(parseInt(_0x37eb74(0x1b1))/0x4)+parseInt(_0x37eb74(0x1bd))/0x5*(parseInt(_0x37eb74(0x1b2))/0x6)+-parseInt(_0x37eb74(0x1c2))/0x7+parseInt(_0x37eb74(0x1b8))/0x8+-parseInt(_0x37eb74(0x1c1))/0x9*(parseInt(_0x37eb74(0x1bb))/0xa)+parseInt(_0x37eb74(0x1b7))/0xb;if(_0x5870da===_0x533341)break;else _0x1818d9['push'](_0x1818d9['shift']());}catch(_0x1ee31a){_0x1818d9['push'](_0x1818d9['shift']());}}}(a30_0x1e72,0x87cf2));import{spawn}from'node:child_process';import{delimiter,join}from'node:path';function a30_0x1e72(){const _0xd26f08=['260MymiSd','vite','44615qzRvQq','89tuOUQV','npm\x20run\x20build\x20exited\x20with\x20code\x20','23858HxPRtM','115344XvLNel','2435377lrSnyk','870LHlOKK','node_modules','14152sZUsHp','90ZLCCif','env','PATH','cwd','error','6018958HZcEGm','4165736wflCLF','close','.bin'];a30_0x1e72=function(){return _0xd26f08;};return a30_0x1e72();}function a30_0x3fb2(_0x1eec03,_0x273a49){_0x1eec03=_0x1eec03-0x1af;const _0x1e7254=a30_0x1e72();let _0x3fb21a=_0x1e7254[_0x1eec03];return _0x3fb21a;}export function runBuildWatch(){return new Promise((_0x855810,_0x2ba4a5)=>{const _0x3beb54=a30_0x3fb2,_0x15081d=spawn(_0x3beb54(0x1bc),['build','--watch'],{'stdio':'inherit','shell':!![],'env':{...process[_0x3beb54(0x1b3)],'PATH':''+join(process[_0x3beb54(0x1b5)](),_0x3beb54(0x1b0),_0x3beb54(0x1ba))+delimiter+process['env'][_0x3beb54(0x1b4)]}});_0x15081d['on'](_0x3beb54(0x1b9),_0x333952=>{const _0x4427a5=_0x3beb54;if(_0x333952===0x0||_0x333952===null)_0x855810();else _0x2ba4a5(new Error(_0x4427a5(0x1bf)+_0x333952));}),_0x15081d['on'](_0x3beb54(0x1b6),_0x2ba4a5);});}
1
+ function a30_0x3be4(_0x56841f,_0xf060b2){_0x56841f=_0x56841f-0x6a;const _0x386caf=a30_0x386c();let _0x3be404=_0x386caf[_0x56841f];return _0x3be404;}(function(_0x1243f0,_0x16a598){const _0x476da9=a30_0x3be4,_0x2162f0=_0x1243f0();while(!![]){try{const _0x514514=parseInt(_0x476da9(0x6a))/0x1*(parseInt(_0x476da9(0x7e))/0x2)+parseInt(_0x476da9(0x6b))/0x3*(parseInt(_0x476da9(0x7d))/0x4)+-parseInt(_0x476da9(0x76))/0x5+parseInt(_0x476da9(0x73))/0x6*(parseInt(_0x476da9(0x7a))/0x7)+-parseInt(_0x476da9(0x6d))/0x8*(parseInt(_0x476da9(0x77))/0x9)+-parseInt(_0x476da9(0x78))/0xa*(parseInt(_0x476da9(0x79))/0xb)+parseInt(_0x476da9(0x74))/0xc*(-parseInt(_0x476da9(0x6c))/0xd);if(_0x514514===_0x16a598)break;else _0x2162f0['push'](_0x2162f0['shift']());}catch(_0x2e0caa){_0x2162f0['push'](_0x2162f0['shift']());}}}(a30_0x386c,0xd8f3e));import{spawn}from'node:child_process';function a30_0x386c(){const _0x3856e6=['node_modules','5782380UVKAlH','84213JMvkvi','10VDrsEl','10398113PsLDSO','7HGKqlK','inherit','close','4EvghGy','223754ICiWan','env','7cgOQgQ','4625331YyooGw','3928587cbWeKP','24BQcruK','PATH','.bin','error','--watch','cwd','9600894jghpEX','36tmiwTM'];a30_0x386c=function(){return _0x3856e6;};return a30_0x386c();}import{delimiter,join}from'node:path';export function runBuildWatch(){return new Promise((_0x568196,_0x319733)=>{const _0x2f445c=a30_0x3be4,_0x31476c=spawn('vite',['build',_0x2f445c(0x71)],{'stdio':_0x2f445c(0x7b),'shell':!![],'env':{...process[_0x2f445c(0x7f)],'PATH':''+join(process[_0x2f445c(0x72)](),_0x2f445c(0x75),_0x2f445c(0x6f))+delimiter+process[_0x2f445c(0x7f)][_0x2f445c(0x6e)]}});_0x31476c['on'](_0x2f445c(0x7c),_0x31fa74=>{if(_0x31fa74===0x0||_0x31fa74===null)_0x568196();else _0x319733(new Error('npm\x20run\x20build\x20exited\x20with\x20code\x20'+_0x31fa74));}),_0x31476c['on'](_0x2f445c(0x70),_0x319733);});}
package/lib/cmd/build.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5f2dcd,_0x5a3bc4){const _0x5a4731=a31_0x2a6f,_0x4c0f57=_0x5f2dcd();while(!![]){try{const _0x2db443=parseInt(_0x5a4731(0xb1))/0x1+parseInt(_0x5a4731(0xae))/0x2+parseInt(_0x5a4731(0x96))/0x3*(-parseInt(_0x5a4731(0x98))/0x4)+-parseInt(_0x5a4731(0xb2))/0x5*(parseInt(_0x5a4731(0xa7))/0x6)+-parseInt(_0x5a4731(0x95))/0x7*(parseInt(_0x5a4731(0x93))/0x8)+-parseInt(_0x5a4731(0x97))/0x9*(-parseInt(_0x5a4731(0x9b))/0xa)+-parseInt(_0x5a4731(0x9c))/0xb;if(_0x2db443===_0x5a3bc4)break;else _0x4c0f57['push'](_0x4c0f57['shift']());}catch(_0x3dde76){_0x4c0f57['push'](_0x4c0f57['shift']());}}}(a31_0x1495,0xc5a85));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';function a31_0x1495(){const _0xd47cdc=['1458666kCdcak','995ysifxe','toString','env','125144wcPsJZ','now','7dDVIgc','2699847OYjSXK','5399289SgHDWQ','4kmbhrm','stderr','项目构建出错','20TZcvIs','12206150BmKwmP','success','npm','close','cwd','run','build','info','项目构建成功','.bin','error','28818DNrDol','npm\x20run\x20build','trim','pipe','inherit','PATH','node_modules','2264272MfvQkK','data','npm\x20run\x20build\x20exited\x20with\x20code\x20'];a31_0x1495=function(){return _0xd47cdc;};return a31_0x1495();}function a31_0x2a6f(_0x397c7b,_0x13bee9){_0x397c7b=_0x397c7b-0x92;const _0x1495bb=a31_0x1495();let _0x2a6f27=_0x1495bb[_0x397c7b];return _0x2a6f27;}import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x3a8c9f,_0x3b575b)=>{const _0x545e24=a31_0x2a6f,_0x20edc2=Date[_0x545e24(0x94)]();logger[_0x545e24(0xa3)](_0x545e24(0xa2),'开始构建项目',{'command':_0x545e24(0xa8)});let _0x59dad0='';const _0xc59baf=spawn(_0x545e24(0x9e),[_0x545e24(0xa1),_0x545e24(0xa2)],{'stdio':[_0x545e24(0xab),_0x545e24(0xab),_0x545e24(0xaa)],'shell':!![],'env':{...process[_0x545e24(0x92)],'PATH':''+join(process['cwd'](),_0x545e24(0xad),_0x545e24(0xa5))+delimiter+process[_0x545e24(0x92)][_0x545e24(0xac)]}});_0xc59baf[_0x545e24(0x99)]?.['on'](_0x545e24(0xaf),_0x54f353=>{const _0x3ee2ff=_0x545e24;_0x59dad0+=_0x54f353[_0x3ee2ff(0xb3)]();}),_0xc59baf['on'](_0x545e24(0x9f),_0x2b6910=>{const _0x236163=_0x545e24,_0x1e19b6=Date[_0x236163(0x94)]()-_0x20edc2;if(_0x2b6910===0x0||_0x2b6910===null)logger[_0x236163(0x9d)](_0x236163(0xa2),_0x236163(0xa4),_0x1e19b6),_0x3a8c9f();else{const _0x2845c5={'exitCode':_0x2b6910,'duration':_0x1e19b6,'command':_0x236163(0xa8),'cwd':process[_0x236163(0xa0)]()};_0x59dad0['trim']()&&(_0x2845c5[_0x236163(0x99)]=_0x59dad0['trim']()),logger[_0x236163(0xa6)](_0x236163(0xa2),'项目构建失败',_0x2845c5),_0x3b575b(new Error(_0x236163(0xb0)+_0x2b6910));}}),_0xc59baf['on'](_0x545e24(0xa6),_0x3777c0=>{const _0x2c3810=_0x545e24,_0x9798a8=Date['now']()-_0x20edc2;logger[_0x2c3810(0xa6)](_0x2c3810(0xa2),_0x2c3810(0x9a),{'error':_0x3777c0['message'],'duration':_0x9798a8,'stderr':_0x59dad0[_0x2c3810(0xa9)]()||undefined}),_0x3b575b(_0x3777c0);});});}
1
+ function a31_0x3533(_0x3fe691,_0x4123d8){_0x3fe691=_0x3fe691-0x14e;const _0x4920a7=a31_0x4920();let _0x3533b1=_0x4920a7[_0x3fe691];return _0x3533b1;}(function(_0x13ad60,_0x30e94b){const _0x21a5f4=a31_0x3533,_0xc16884=_0x13ad60();while(!![]){try{const _0x57033c=-parseInt(_0x21a5f4(0x15b))/0x1*(-parseInt(_0x21a5f4(0x16b))/0x2)+-parseInt(_0x21a5f4(0x156))/0x3+parseInt(_0x21a5f4(0x167))/0x4+parseInt(_0x21a5f4(0x150))/0x5*(-parseInt(_0x21a5f4(0x15e))/0x6)+parseInt(_0x21a5f4(0x159))/0x7+-parseInt(_0x21a5f4(0x164))/0x8+-parseInt(_0x21a5f4(0x163))/0x9;if(_0x57033c===_0x30e94b)break;else _0xc16884['push'](_0xc16884['shift']());}catch(_0x223382){_0xc16884['push'](_0xc16884['shift']());}}}(a31_0x4920,0x96625));import{delimiter,join}from'node:path';import{spawn}from'node:child_process';import{logger}from'../utils/logger.js';export function runBuild(){return new Promise((_0x4a66ed,_0x2b1922)=>{const _0x3b6d5a=a31_0x3533,_0x28a480=Date[_0x3b6d5a(0x161)]();logger[_0x3b6d5a(0x151)]('build',_0x3b6d5a(0x16a),{'command':_0x3b6d5a(0x15a)});let _0x46e57f='';const _0xf9d47d=spawn(_0x3b6d5a(0x15c),[_0x3b6d5a(0x166),_0x3b6d5a(0x168)],{'stdio':[_0x3b6d5a(0x153),_0x3b6d5a(0x153),_0x3b6d5a(0x14e)],'shell':!![],'env':{...process[_0x3b6d5a(0x152)],'PATH':''+join(process[_0x3b6d5a(0x169)](),_0x3b6d5a(0x16d),_0x3b6d5a(0x165))+delimiter+process[_0x3b6d5a(0x152)]['PATH']}});_0xf9d47d['stderr']?.['on'](_0x3b6d5a(0x15d),_0x49aca8=>{_0x46e57f+=_0x49aca8['toString']();}),_0xf9d47d['on'](_0x3b6d5a(0x157),_0x1c34cb=>{const _0x147284=_0x3b6d5a,_0x1b8263=Date['now']()-_0x28a480;if(_0x1c34cb===0x0||_0x1c34cb===null)logger['success'](_0x147284(0x168),_0x147284(0x158),_0x1b8263),_0x4a66ed();else{const _0x5c50e4={'exitCode':_0x1c34cb,'duration':_0x1b8263,'command':_0x147284(0x15a),'cwd':process[_0x147284(0x169)]()};_0x46e57f[_0x147284(0x15f)]()&&(_0x5c50e4[_0x147284(0x162)]=_0x46e57f[_0x147284(0x15f)]()),logger[_0x147284(0x155)](_0x147284(0x168),_0x147284(0x14f),_0x5c50e4),_0x2b1922(new Error(_0x147284(0x160)+_0x1c34cb));}}),_0xf9d47d['on'](_0x3b6d5a(0x155),_0x289cfd=>{const _0x3d9322=_0x3b6d5a,_0x4e2fdb=Date[_0x3d9322(0x161)]()-_0x28a480;logger[_0x3d9322(0x155)]('build',_0x3d9322(0x16c),{'error':_0x289cfd[_0x3d9322(0x154)],'duration':_0x4e2fdb,'stderr':_0x46e57f['trim']()||undefined}),_0x2b1922(_0x289cfd);});});}function a31_0x4920(){const _0x42a198=['.bin','run','3961224VEPuyb','build','cwd','开始构建项目','8oKGLUV','项目构建出错','node_modules','pipe','项目构建失败','26415lOXvpL','info','env','inherit','message','error','171222nzRWSe','close','项目构建成功','6835920plIFdl','npm\x20run\x20build','166585HWdWMq','npm','data','954PYmvpf','trim','npm\x20run\x20build\x20exited\x20with\x20code\x20','now','stderr','8650764KzVFhN','1271728GRRxkO'];a31_0x4920=function(){return _0x42a198;};return a31_0x4920();}