@lovrabet/rabetbase-cli 2.3.6-beta.1 → 2.3.7-beta.1

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 (241) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -0
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analyze-cancel.js +1 -1
  79. package/lib/commands/db/analyze-start.js +1 -1
  80. package/lib/commands/db/analyze-status.js +1 -1
  81. package/lib/commands/db/create.js +1 -1
  82. package/lib/commands/db/delete.js +1 -1
  83. package/lib/commands/db/detail.js +1 -1
  84. package/lib/commands/db/diff.js +1 -1
  85. package/lib/commands/db/index.js +1 -1
  86. package/lib/commands/db/list.js +1 -1
  87. package/lib/commands/db/shared.js +1 -1
  88. package/lib/commands/db/tables.js +1 -1
  89. package/lib/commands/db/test.js +1 -1
  90. package/lib/commands/db/update.js +1 -1
  91. package/lib/commands/doctor.js +1 -1
  92. package/lib/commands/file/index.js +1 -0
  93. package/lib/commands/init/index.js +1 -1
  94. package/lib/commands/issue/index.js +1 -1
  95. package/lib/commands/issue/nudge.js +1 -1
  96. package/lib/commands/issue/report.js +1 -1
  97. package/lib/commands/issue/shared.js +1 -1
  98. package/lib/commands/logs/index.js +1 -1
  99. package/lib/commands/menu/index.js +1 -1
  100. package/lib/commands/menu/list.js +1 -1
  101. package/lib/commands/menu/shared/compare-table.js +1 -1
  102. package/lib/commands/menu/shared/index.js +1 -1
  103. package/lib/commands/menu/shared/inquirer.js +1 -1
  104. package/lib/commands/menu/shared/local-pages.js +1 -1
  105. package/lib/commands/menu/shared/logic.js +1 -1
  106. package/lib/commands/menu/shared/service.js +1 -1
  107. package/lib/commands/menu/shared/sync-core.js +1 -1
  108. package/lib/commands/menu/shared/update-core.js +1 -1
  109. package/lib/commands/menu/shared/valid-url.js +1 -1
  110. package/lib/commands/menu/sync.js +1 -1
  111. package/lib/commands/menu/update.js +1 -1
  112. package/lib/commands/page/generate-start.js +1 -1
  113. package/lib/commands/page/generate-status.js +1 -1
  114. package/lib/commands/page/index.js +1 -1
  115. package/lib/commands/page/pull.js +1 -1
  116. package/lib/commands/page/push.js +1 -1
  117. package/lib/commands/page/relation-audit.js +1 -1
  118. package/lib/commands/page/shared.js +1 -1
  119. package/lib/commands/page/standard-page-status.js +1 -1
  120. package/lib/commands/page/sync.js +1 -1
  121. package/lib/commands/permit/index.js +1 -1
  122. package/lib/commands/permit/page-get.js +1 -1
  123. package/lib/commands/permit/page-set.js +1 -1
  124. package/lib/commands/permit/role-apis-set.js +1 -1
  125. package/lib/commands/permit/role-menus-set.js +1 -1
  126. package/lib/commands/permit/role-menus.js +1 -1
  127. package/lib/commands/permit/shared.js +1 -1
  128. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  129. package/lib/commands/project/create/format-elapsed.js +1 -1
  130. package/lib/commands/project/create/main.js +1 -1
  131. package/lib/commands/project/create/non-interactive.js +1 -1
  132. package/lib/commands/project/create/project-template-path.js +1 -1
  133. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  134. package/lib/commands/project/create/use-format-code.js +1 -1
  135. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  136. package/lib/commands/project/index.js +1 -1
  137. package/lib/commands/project/init.js +1 -1
  138. package/lib/commands/project/upgrade.js +1 -1
  139. package/lib/commands/registry.js +1 -1
  140. package/lib/commands/role/create.js +1 -1
  141. package/lib/commands/role/delete.js +1 -1
  142. package/lib/commands/role/detail.js +1 -1
  143. package/lib/commands/role/index.js +1 -1
  144. package/lib/commands/role/list.js +1 -1
  145. package/lib/commands/role/shared.js +1 -1
  146. package/lib/commands/role/update.js +1 -1
  147. package/lib/commands/role/user-add.js +1 -1
  148. package/lib/commands/role/user-remove.js +1 -1
  149. package/lib/commands/role/user-resolve.js +1 -1
  150. package/lib/commands/run/index.js +1 -1
  151. package/lib/commands/schema.js +1 -1
  152. package/lib/commands/sql/create.js +1 -1
  153. package/lib/commands/sql/delete.js +1 -1
  154. package/lib/commands/sql/detail.js +1 -1
  155. package/lib/commands/sql/exec.js +1 -1
  156. package/lib/commands/sql/index.js +1 -1
  157. package/lib/commands/sql/list.js +1 -1
  158. package/lib/commands/sql/pull.js +1 -1
  159. package/lib/commands/sql/push.js +1 -1
  160. package/lib/commands/sql/save.js +1 -1
  161. package/lib/commands/sql/shared.js +1 -1
  162. package/lib/commands/sql/status.js +1 -1
  163. package/lib/commands/sql/validate.js +1 -1
  164. package/lib/commands/workspace/add.js +1 -1
  165. package/lib/commands/workspace/index.js +1 -1
  166. package/lib/commands/workspace/remove.js +1 -1
  167. package/lib/config/schema.js +1 -1
  168. package/lib/constant/cdn.js +1 -1
  169. package/lib/constant/cli.js +1 -1
  170. package/lib/constant/defaults.js +1 -1
  171. package/lib/constant/domain.js +1 -1
  172. package/lib/constant/env.js +1 -1
  173. package/lib/constant/output.js +1 -1
  174. package/lib/constant/paths.js +1 -1
  175. package/lib/constant/risk.js +1 -1
  176. package/lib/context/app-resolver.js +1 -1
  177. package/lib/context/auth-resolver.js +1 -1
  178. package/lib/context/config-loader.js +1 -1
  179. package/lib/context.js +1 -1
  180. package/lib/core/alias-resolver.js +1 -1
  181. package/lib/core/api-client.js +1 -1
  182. package/lib/core/bff/config.js +1 -1
  183. package/lib/core/bff/file-system.js +1 -1
  184. package/lib/core/bff/hash.js +1 -1
  185. package/lib/core/bff/lock.js +1 -1
  186. package/lib/core/bff/utils.js +1 -1
  187. package/lib/core/db-resolver.js +1 -1
  188. package/lib/core/page/file-system.js +1 -1
  189. package/lib/core/page/hash.js +1 -1
  190. package/lib/core/page/lock.js +1 -1
  191. package/lib/core/sql-sync/config.js +1 -1
  192. package/lib/core/sql-sync/file-system.js +1 -1
  193. package/lib/core/sql-sync/hash.js +1 -1
  194. package/lib/core/sql-sync/lock.js +1 -1
  195. package/lib/core/sql-sync/utils.js +1 -1
  196. package/lib/core/sql-validator.js +1 -1
  197. package/lib/errors.js +1 -1
  198. package/lib/framework/build-all-flags.js +1 -1
  199. package/lib/framework/flags.js +1 -1
  200. package/lib/framework/help.js +1 -1
  201. package/lib/framework/index.js +1 -1
  202. package/lib/framework/output.js +1 -1
  203. package/lib/framework/response.js +1 -1
  204. package/lib/framework/runner-alias.js +1 -1
  205. package/lib/framework/runner.js +1 -1
  206. package/lib/framework/schema-export.js +1 -1
  207. package/lib/framework/types.js +1 -1
  208. package/lib/generated/build-info.js +1 -1
  209. package/lib/help.js +1 -1
  210. package/lib/skills/main.js +1 -1
  211. package/lib/skills/npx-skills-add.js +1 -1
  212. package/lib/telemetry/cli-command-trace.js +1 -1
  213. package/lib/telemetry/cli-help-trace.js +1 -1
  214. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  215. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  216. package/lib/telemetry/send-cli-trace-log.js +1 -1
  217. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  218. package/lib/utils/ai_config.js +1 -1
  219. package/lib/utils/apply-jq-filter.js +1 -1
  220. package/lib/utils/cdn-config.js +1 -1
  221. package/lib/utils/check-sdk-version.js +1 -1
  222. package/lib/utils/cli-version-check.js +1 -1
  223. package/lib/utils/cli-version-policy.js +1 -1
  224. package/lib/utils/config.js +1 -1
  225. package/lib/utils/copy-directory.js +1 -1
  226. package/lib/utils/entity-with-id.js +1 -1
  227. package/lib/utils/file-utils.js +1 -1
  228. package/lib/utils/guides-cdn.js +1 -1
  229. package/lib/utils/http-client.js +1 -1
  230. package/lib/utils/is-non-interactive.js +1 -1
  231. package/lib/utils/logger.js +1 -1
  232. package/lib/utils/params.js +1 -1
  233. package/lib/utils/platform.js +1 -1
  234. package/lib/utils/rules-cdn.js +1 -1
  235. package/lib/utils/sleep.js +1 -1
  236. package/lib/utils/template-replacer.js +1 -1
  237. package/lib/utils/update-notice.js +1 -1
  238. package/lib/utils/version.js +1 -1
  239. package/lib/utils/with-active-cookie.js +1 -1
  240. package/lib/utils/write-cli-side-channel.js +1 -1
  241. package/package.json +1 -1
@@ -1 +1 @@
1
- const a90_0x443418=a90_0x3aa7;(function(_0x32cfcd,_0x542481){const _0x142e43=a90_0x3aa7,_0x4922cf=_0x32cfcd();while(!![]){try{const _0x2aff02=parseInt(_0x142e43(0x12b))/0x1*(parseInt(_0x142e43(0x14c))/0x2)+-parseInt(_0x142e43(0x12e))/0x3+parseInt(_0x142e43(0x131))/0x4*(-parseInt(_0x142e43(0x13f))/0x5)+parseInt(_0x142e43(0x145))/0x6+-parseInt(_0x142e43(0x126))/0x7+parseInt(_0x142e43(0x13a))/0x8*(parseInt(_0x142e43(0x13c))/0x9)+-parseInt(_0x142e43(0x14b))/0xa*(-parseInt(_0x142e43(0x147))/0xb);if(_0x2aff02===_0x542481)break;else _0x4922cf['push'](_0x4922cf['shift']());}catch(_0x313487){_0x4922cf['push'](_0x4922cf['shift']());}}}(a90_0x58c0,0xd6e8e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2943ce){return{'appCode':_0x2943ce,'appName':_0x2943ce};}function writeInitConfig(_0x296bc5,_0xf1d7f4,_0x579a65){const _0x3cb930=a90_0x3aa7,_0x5ac413=resolveWriteConfigPath(_0x296bc5),_0x8e03b9=buildCanonicalProjectConfig({},{'appCodes':_0xf1d7f4[_0x3cb930(0x148)](_0x22e387=>_0x22e387[_0x3cb930(0x136)]),'env':_0x579a65,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3cb930(0x135)]()}});writeConfigFile(_0x5ac413,_0x8e03b9);const _0xf33f63=_0x296bc5===_0x3cb930(0x14a)?'global':_0x3cb930(0x128);console[_0x3cb930(0x144)](_0x3cb930(0x149)+_0xf33f63+_0x3cb930(0x151)),console[_0x3cb930(0x144)](_0x3cb930(0x14f)+_0xf1d7f4[_0x3cb930(0x148)](_0x5609d2=>_0x5609d2[_0x3cb930(0x136)])[_0x3cb930(0x142)](',\x20')),console[_0x3cb930(0x144)]('\x20\x20Default:\x20'+_0x8e03b9[_0x3cb930(0x143)]),console[_0x3cb930(0x144)]('\x20\x20Env:\x20'+_0x8e03b9[_0x3cb930(0x14e)]),console['log']('\x20\x20Config:\x20'+_0x5ac413);}async function runSmartInit(_0x225277){const _0x2a5381=a90_0x3aa7,_0x339578=process['cwd'](),_0x3ec799=_0x225277[_0x2a5381(0x132)](_0x2a5381(0x14a))?'global':_0x2a5381(0x128),_0xc99234=_0x225277['str'](_0x2a5381(0x14e))||'production',_0x178596=_0x225277['str'](_0x2a5381(0x139))||undefined,_0x24e1e2=_0x225277[_0x2a5381(0x132)](_0x2a5381(0x128));if(_0x24e1e2){const {initConfig:_0xc9912a}=await import('../../commands/project/init.js');return _0xc9912a({'appcode':_0x178596,'env':_0xc99234,'autoYes':_0x225277[_0x2a5381(0x132)](_0x2a5381(0x150))});}if(_0x3ec799===_0x2a5381(0x128)){const _0xb0947e=existsSync(resolve(_0x339578,NEW_CONFIG_NAME)),_0x2b6360=LEGACY_CONFIG_NAMES[_0x2a5381(0x13e)](_0x4f8707=>existsSync(resolve(_0x339578,_0x4f8707)));if(_0x2b6360&&!_0xb0947e)return console[_0x2a5381(0x144)](_0x2a5381(0x141)),upgradeApp(_0x225277[_0x2a5381(0x12c)],{'yes':_0x225277[_0x2a5381(0x132)](_0x2a5381(0x150))});if(_0xb0947e)throw CliErrors[_0x2a5381(0x13b)](_0x2a5381(0x138),_0x2a5381(0x12f)+CLI_BIN_NAME+_0x2a5381(0x129));}if(_0x178596){const _0x256c56=validateAppcode(_0x178596);if(!_0x256c56[_0x2a5381(0x14d)])throw CliErrors['validation'](_0x256c56['message']);writeInitConfig(_0x3ec799,[syntheticApp(_0x178596)],_0xc99234);return;}if(_0x225277[_0x2a5381(0x12c)])throw CliErrors[_0x2a5381(0x133)](_0x2a5381(0x139),_0x2a5381(0x130)+CLI_BIN_NAME+_0x2a5381(0x140));const _0x932d93=getCookie(),_0x7e6b5d=await selectMultipleApps(_0x932d93),_0x2cb5ca=_0x7e6b5d===_0x2a5381(0x153)?[syntheticApp(await promptCustomAppcode())]:_0x7e6b5d;writeInitConfig(_0x3ec799,_0x2cb5ca,_0xc99234);}const initFlags=[{'name':a90_0x443418(0x14a),'type':a90_0x443418(0x134),'description':a90_0x443418(0x13d),'default':![]},{'name':a90_0x443418(0x14e),'type':a90_0x443418(0x125),'description':'Target\x20environment','default':a90_0x443418(0x137),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x443418(0x139),'type':a90_0x443418(0x125),'description':a90_0x443418(0x12a)},{'name':a90_0x443418(0x128),'type':a90_0x443418(0x134),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a90_0x443418(0x150),'type':a90_0x443418(0x134),'description':a90_0x443418(0x12d),'default':![]}];function a90_0x3aa7(_0x37cd78,_0x47a361){_0x37cd78=_0x37cd78-0x125;const _0x58c008=a90_0x58c0();let _0x3aa774=_0x58c008[_0x37cd78];return _0x3aa774;}export const initDefinitions=[{'service':a90_0x443418(0x152),'command':a90_0x443418(0x127),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a90_0x443418(0x146),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x41c309){return await runSmartInit(_0x41c309),{'ok':!![]};}}];function a90_0x58c0(){const _0x14f4ea=['map','\x0a✓\x20Successfully\x20initialized\x20','global','160ivfKZz','1306990tgmUFH','valid','env','\x20\x20Apps:\x20','yes','\x20config','init','custom','string','12093165bunekX','run','project','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','App\x20code\x20to\x20initialize\x20with','1eAkQed','nonInteractive','Auto-confirm\x20prompts','2168883wtlHyb','Use\x20`','Usage:\x20','4mCyPlN','bool','flagMissing','boolean','toLocaleString','appCode','production','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appcode','4281064rvwdVS','validation','18GgBWBx','Write\x20to\x20global\x20config\x20instead\x20of\x20project','some','2350580cjrPKa','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','检测到旧配置文件,正在自动升级...\x0a','join','defaultApp','log','3216174ypYVUq','write','1059542ajfkGM'];a90_0x58c0=function(){return _0x14f4ea;};return a90_0x58c0();}
1
+ const a92_0x39c1bb=a92_0x257d;(function(_0x11998d,_0x17a339){const _0x24f6d5=a92_0x257d,_0x518916=_0x11998d();while(!![]){try{const _0x36a0e2=-parseInt(_0x24f6d5(0xb8))/0x1+-parseInt(_0x24f6d5(0xb4))/0x2*(-parseInt(_0x24f6d5(0xbc))/0x3)+parseInt(_0x24f6d5(0xc7))/0x4+parseInt(_0x24f6d5(0xc8))/0x5+-parseInt(_0x24f6d5(0xc5))/0x6+-parseInt(_0x24f6d5(0xc9))/0x7*(parseInt(_0x24f6d5(0xb5))/0x8)+parseInt(_0x24f6d5(0xaa))/0x9;if(_0x36a0e2===_0x17a339)break;else _0x518916['push'](_0x518916['shift']());}catch(_0x375dc0){_0x518916['push'](_0x518916['shift']());}}}(a92_0x46ec,0xc23cf));function a92_0x46ec(){const _0x19c1f4=['\x20\x20Config:\x20','24497631iCobwf','defaultApp','global','env','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Write\x20to\x20global\x20config\x20instead\x20of\x20project','message','log','\x20\x20Default:\x20','Usage:\x20','328EyetWE','80CIdtlM','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','toLocaleString','936735Hrjtet','run','custom','\x20\x20Apps:\x20','10587wwYeRa','Target\x20environment','检测到旧配置文件,正在自动升级...\x0a','production','nonInteractive','string','yes','cwd','str','8431206fuxeQb','appcode','2187300XiCxJG','658875AEQlJm','589246Fvktwv','Use\x20`','flagMissing','\x20config','write','validation','project','App\x20code\x20to\x20initialize\x20with','boolean','join','\x20\x20Env:\x20','appCode','Auto-confirm\x20prompts','bool','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','map','some'];a92_0x46ec=function(){return _0x19c1f4;};return a92_0x46ec();}import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x83fd){return{'appCode':_0x83fd,'appName':_0x83fd};}function writeInitConfig(_0x16860e,_0x8d8d07,_0x597e89){const _0x3b6a55=a92_0x257d,_0x3d75d1=resolveWriteConfigPath(_0x16860e),_0x1291be=buildCanonicalProjectConfig({},{'appCodes':_0x8d8d07['map'](_0x3b2cbc=>_0x3b2cbc[_0x3b6a55(0xd4)]),'env':_0x597e89,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3b6a55(0xb7)]()}});writeConfigFile(_0x3d75d1,_0x1291be);const _0x17555a=_0x16860e===_0x3b6a55(0xac)?_0x3b6a55(0xac):_0x3b6a55(0xcf);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x17555a+_0x3b6a55(0xcc)),console['log'](_0x3b6a55(0xbb)+_0x8d8d07[_0x3b6a55(0xa7)](_0x480dc5=>_0x480dc5[_0x3b6a55(0xd4)])[_0x3b6a55(0xd2)](',\x20')),console[_0x3b6a55(0xb1)](_0x3b6a55(0xb2)+_0x1291be[_0x3b6a55(0xab)]),console[_0x3b6a55(0xb1)](_0x3b6a55(0xd3)+_0x1291be[_0x3b6a55(0xad)]),console[_0x3b6a55(0xb1)](_0x3b6a55(0xa9)+_0x3d75d1);}async function runSmartInit(_0x1eaa6e){const _0x402497=a92_0x257d,_0x48e5ba=process[_0x402497(0xc3)](),_0xd23e7b=_0x1eaa6e[_0x402497(0xa5)](_0x402497(0xac))?'global':_0x402497(0xcf),_0x308de2=_0x1eaa6e[_0x402497(0xc4)](_0x402497(0xad))||_0x402497(0xbf),_0x230146=_0x1eaa6e['str'](_0x402497(0xc6))||undefined,_0x1e40fd=_0x1eaa6e[_0x402497(0xa5)](_0x402497(0xcf));if(_0x1e40fd){const {initConfig:_0x5bfca6}=await import('../../commands/project/init.js');return _0x5bfca6({'appcode':_0x230146,'env':_0x308de2,'autoYes':_0x1eaa6e['bool'](_0x402497(0xc2))});}if(_0xd23e7b===_0x402497(0xcf)){const _0x402883=existsSync(resolve(_0x48e5ba,NEW_CONFIG_NAME)),_0x5f490d=LEGACY_CONFIG_NAMES[_0x402497(0xa8)](_0x852a0c=>existsSync(resolve(_0x48e5ba,_0x852a0c)));if(_0x5f490d&&!_0x402883)return console[_0x402497(0xb1)](_0x402497(0xbe)),upgradeApp(_0x1eaa6e[_0x402497(0xc0)],{'yes':_0x1eaa6e[_0x402497(0xa5)](_0x402497(0xc2))});if(_0x402883)throw CliErrors['validation'](_0x402497(0xa6),_0x402497(0xca)+CLI_BIN_NAME+_0x402497(0xae));}if(_0x230146){const _0x4b1448=validateAppcode(_0x230146);if(!_0x4b1448['valid'])throw CliErrors[_0x402497(0xce)](_0x4b1448[_0x402497(0xb0)]);writeInitConfig(_0xd23e7b,[syntheticApp(_0x230146)],_0x308de2);return;}if(_0x1eaa6e[_0x402497(0xc0)])throw CliErrors[_0x402497(0xcb)](_0x402497(0xc6),_0x402497(0xb3)+CLI_BIN_NAME+_0x402497(0xb6));const _0x31ceae=getCookie(),_0x8522dc=await selectMultipleApps(_0x31ceae),_0x1be704=_0x8522dc===_0x402497(0xba)?[syntheticApp(await promptCustomAppcode())]:_0x8522dc;writeInitConfig(_0xd23e7b,_0x1be704,_0x308de2);}function a92_0x257d(_0x26d290,_0x38e42c){_0x26d290=_0x26d290-0xa5;const _0x46ecdb=a92_0x46ec();let _0x257d75=_0x46ecdb[_0x26d290];return _0x257d75;}const initFlags=[{'name':a92_0x39c1bb(0xac),'type':a92_0x39c1bb(0xd1),'description':a92_0x39c1bb(0xaf),'default':![]},{'name':a92_0x39c1bb(0xad),'type':a92_0x39c1bb(0xc1),'description':a92_0x39c1bb(0xbd),'default':a92_0x39c1bb(0xbf),'enum':[...RABETBASE_ENV_VALUES]},{'name':a92_0x39c1bb(0xc6),'type':a92_0x39c1bb(0xc1),'description':a92_0x39c1bb(0xd0)},{'name':a92_0x39c1bb(0xcf),'type':a92_0x39c1bb(0xd1),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a92_0x39c1bb(0xc2),'type':a92_0x39c1bb(0xd1),'description':a92_0x39c1bb(0xd5),'default':![]}];export const initDefinitions=[{'service':'init','command':a92_0x39c1bb(0xb9),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a92_0x39c1bb(0xcd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x5d3531){return await runSmartInit(_0x5d3531),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a91_0xba4e(_0x3e514a,_0x5f1cff){_0x3e514a=_0x3e514a-0x13d;const _0x2cceda=a91_0x2cce();let _0xba4e2=_0x2cceda[_0x3e514a];return _0xba4e2;}(function(_0x4472f5,_0x44369f){const _0x3821fe=a91_0xba4e,_0x165d49=_0x4472f5();while(!![]){try{const _0x20bd0d=parseInt(_0x3821fe(0x13f))/0x1+-parseInt(_0x3821fe(0x145))/0x2+parseInt(_0x3821fe(0x13d))/0x3*(-parseInt(_0x3821fe(0x141))/0x4)+parseInt(_0x3821fe(0x13e))/0x5+-parseInt(_0x3821fe(0x143))/0x6+parseInt(_0x3821fe(0x146))/0x7*(-parseInt(_0x3821fe(0x144))/0x8)+-parseInt(_0x3821fe(0x140))/0x9*(-parseInt(_0x3821fe(0x142))/0xa);if(_0x20bd0d===_0x44369f)break;else _0x165d49['push'](_0x165d49['shift']());}catch(_0x1483a2){_0x165d49['push'](_0x165d49['shift']());}}}(a91_0x2cce,0x93885));import{issueReport}from'../../commands/issue/report.js';function a91_0x2cce(){const _0x79045b=['496WeDsDo','1823246hxqlWn','136451fsrDBV','46776vCIXlB','5505810OwaVNH','239305iVUDjm','9yLHQnL','12glZZnT','18534020VYfHQf','2535666YNpBCE'];a91_0x2cce=function(){return _0x79045b;};return a91_0x2cce();}export const issueDefinitions=[issueReport];
1
+ (function(_0x4dacd6,_0x4f02e0){const _0x1bff77=a93_0x3e65,_0x1087b6=_0x4dacd6();while(!![]){try{const _0x38e5b1=-parseInt(_0x1bff77(0x131))/0x1*(-parseInt(_0x1bff77(0x12b))/0x2)+-parseInt(_0x1bff77(0x12c))/0x3+-parseInt(_0x1bff77(0x130))/0x4+-parseInt(_0x1bff77(0x12e))/0x5*(-parseInt(_0x1bff77(0x129))/0x6)+parseInt(_0x1bff77(0x12f))/0x7+parseInt(_0x1bff77(0x128))/0x8*(parseInt(_0x1bff77(0x12a))/0x9)+parseInt(_0x1bff77(0x12d))/0xa*(-parseInt(_0x1bff77(0x127))/0xb);if(_0x38e5b1===_0x4f02e0)break;else _0x1087b6['push'](_0x1087b6['shift']());}catch(_0x47d1cf){_0x1087b6['push'](_0x1087b6['shift']());}}}(a93_0x255d,0xd0817));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a93_0x3e65(_0x520089,_0x11a98a){_0x520089=_0x520089-0x127;const _0x255d41=a93_0x255d();let _0x3e65bc=_0x255d41[_0x520089];return _0x3e65bc;}function a93_0x255d(){const _0x9834b1=['36DyPofZ','18FWbYeI','2iDneFd','39714ocpQhr','10fBihzP','957890xWpyYx','5722717yhzhRM','749596ShJQnt','858855VYFAAg','30651104JLEITC','4061144agNLWa'];a93_0x255d=function(){return _0x9834b1;};return a93_0x255d();}
@@ -1 +1 @@
1
- const a92_0x315a2b=a92_0x5b29;(function(_0x49cca4,_0x2ac5cb){const _0x1125bd=a92_0x5b29,_0xe9e7d1=_0x49cca4();while(!![]){try{const _0x4d2e48=-parseInt(_0x1125bd(0x1a5))/0x1+parseInt(_0x1125bd(0x199))/0x2+parseInt(_0x1125bd(0x1a7))/0x3+parseInt(_0x1125bd(0x18a))/0x4*(parseInt(_0x1125bd(0x192))/0x5)+parseInt(_0x1125bd(0x18e))/0x6+parseInt(_0x1125bd(0x195))/0x7*(parseInt(_0x1125bd(0x1a1))/0x8)+parseInt(_0x1125bd(0x19e))/0x9*(-parseInt(_0x1125bd(0x1a4))/0xa);if(_0x4d2e48===_0x2ac5cb)break;else _0xe9e7d1['push'](_0xe9e7d1['shift']());}catch(_0x1fcc68){_0xe9e7d1['push'](_0xe9e7d1['shift']());}}}(a92_0x5b2c,0x19dea));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x315a2b(0x197);const NUDGE_SUPPRESSED_CODES=new Set([a92_0x315a2b(0x1a2),a92_0x315a2b(0x191),a92_0x315a2b(0x194),a92_0x315a2b(0x19b),a92_0x315a2b(0x18b),a92_0x315a2b(0x185),'validation_error',a92_0x315a2b(0x198)]),defaultWriter=_0xb9ebf9=>{const _0x432a0b=a92_0x315a2b;process['stderr'][_0x432a0b(0x18d)](_0xb9ebf9);};function a92_0x5b29(_0xd10121,_0x2acb57){_0xd10121=_0xd10121-0x185;const _0x5b2c2a=a92_0x5b2c();let _0x5b292b=_0x5b2c2a[_0xd10121];return _0x5b292b;}export function shouldNudgeForError(_0x3c9dcb,_0x1d46cf){const _0x24d591=a92_0x315a2b;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1d46cf[_0x24d591(0x1a6)]===_0x24d591(0x18f)&&_0x1d46cf[_0x24d591(0x19c)]==='report')return![];if(_0x3c9dcb instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x24d591(0x19f)](_0x3c9dcb[_0x24d591(0x18c)]);return!![];}export function printIssueReportNudgeForError(_0x2cbf50,_0x503402,_0x4f9d00=defaultWriter){if(!shouldNudgeForError(_0x2cbf50,_0x503402))return;const _0x48bb47=buildSuggestedTitle(_0x2cbf50,_0x503402);_0x4f9d00(formatNudge(_0x48bb47));}function buildSuggestedTitle(_0x1bee78,_0x332477){const _0x3997d6=a92_0x315a2b,_0x361869=_0x1bee78 instanceof Error?_0x1bee78[_0x3997d6(0x187)]:String(_0x1bee78),_0x3f073b=_0x361869[_0x3997d6(0x19d)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x3997d6(0x1a9)]()[_0x3997d6(0x1a3)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x580094=CLI_BIN_NAME+'\x20'+_0x332477[_0x3997d6(0x1a6)]+'\x20'+_0x332477[_0x3997d6(0x19c)];return _0x3f073b[_0x3997d6(0x190)]>0x0?_0x580094+':\x20'+_0x3f073b:_0x580094;}function formatNudge(_0x1633e6){const _0x4b9955=a92_0x315a2b;return['',_0x4b9955(0x196)+CLI_BIN_NAME+_0x4b9955(0x193),'\x20\x20'+CLI_BIN_NAME+_0x4b9955(0x186),_0x4b9955(0x19a)+_0x1633e6+_0x4b9955(0x1a0),_0x4b9955(0x188),_0x4b9955(0x189),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x4b9955(0x1a8)]('\x0a');}function a92_0x5b2c(){const _0x5726ae=['\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','13016acmhFZ','unknown_command','code','write','178152kODSea','issue','length','auth_required','30DjXraG','\x20bug?\x20Help\x20us\x20fix\x20it:','config_missing','35GtnvMM','Hit\x20a\x20','RABETBASE_DISABLE_ISSUE_NUDGE','network_error','227690NhtyQS','\x20\x20\x20\x20--title\x20\x22','not_in_project','command','replace','18htyqDO','has','\x22\x20\x5c','10648riBbRJ','cancelled','slice','81570EKYEXn','87781EfhlPm','service','121023ZlfPYL','join','trim','flag_missing','\x20issue\x20report\x20\x5c','message','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a92_0x5b2c=function(){return _0x5726ae;};return a92_0x5b2c();}
1
+ const a94_0x5ee274=a94_0x1f1a;function a94_0xe755(){const _0x1b9b46=['not_in_project','\x20\x20Set\x20','\x22\x20\x5c','5404581tqeaVo','10009500fLZVwB','30gAZcDH','cancelled','10cNZsid','has','length','196050lgBEbG','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','network_error','write','report','auth_required','flag_missing','join','2504072IcIloC','code','replace','52FQSOtV','=1\x20to\x20silence\x20this\x20hint.','15JgjaNJ','command','291849Vadcoh','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','trim','service','\x20issue\x20report\x20\x5c','35yJTEwE','stderr','issue','12515349dcBaBy','validation_error','RABETBASE_DISABLE_ISSUE_NUDGE','632190DbVqyQ','60DBDCHU','config_missing'];a94_0xe755=function(){return _0x1b9b46;};return a94_0xe755();}(function(_0x254a20,_0x28619d){const _0x8721d4=a94_0x1f1a,_0x312a56=_0x254a20();while(!![]){try{const _0x271b0f=-parseInt(_0x8721d4(0xe6))/0x1*(-parseInt(_0x8721d4(0xd8))/0x2)+parseInt(_0x8721d4(0xe8))/0x3*(-parseInt(_0x8721d4(0xcc))/0x4)+parseInt(_0x8721d4(0xd5))/0x5*(-parseInt(_0x8721d4(0xcb))/0x6)+-parseInt(_0x8721d4(0xed))/0x7*(-parseInt(_0x8721d4(0xe1))/0x8)+parseInt(_0x8721d4(0xd1))/0x9*(parseInt(_0x8721d4(0xd3))/0xa)+parseInt(_0x8721d4(0xf0))/0xb+-parseInt(_0x8721d4(0xd2))/0xc*(parseInt(_0x8721d4(0xe4))/0xd);if(_0x271b0f===_0x28619d)break;else _0x312a56['push'](_0x312a56['shift']());}catch(_0x3c74c1){_0x312a56['push'](_0x312a56['shift']());}}}(a94_0xe755,0xec627));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a94_0x5ee274(0xf2);const NUDGE_SUPPRESSED_CODES=new Set([a94_0x5ee274(0xd4),a94_0x5ee274(0xde),a94_0x5ee274(0xcd),a94_0x5ee274(0xce),a94_0x5ee274(0xd9),a94_0x5ee274(0xdf),a94_0x5ee274(0xf1),a94_0x5ee274(0xdb)]),defaultWriter=_0x472bd3=>{const _0xece290=a94_0x5ee274;process[_0xece290(0xee)][_0xece290(0xdc)](_0x472bd3);};export function shouldNudgeForError(_0x1b6145,_0x56a2c9){const _0x1d383d=a94_0x5ee274;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x56a2c9[_0x1d383d(0xeb)]===_0x1d383d(0xef)&&_0x56a2c9[_0x1d383d(0xe7)]===_0x1d383d(0xdd))return![];if(_0x1b6145 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1d383d(0xd6)](_0x1b6145[_0x1d383d(0xe2)]);return!![];}export function printIssueReportNudgeForError(_0x12fa36,_0x2c2dd7,_0x998820=defaultWriter){if(!shouldNudgeForError(_0x12fa36,_0x2c2dd7))return;const _0x513391=buildSuggestedTitle(_0x12fa36,_0x2c2dd7);_0x998820(formatNudge(_0x513391));}function a94_0x1f1a(_0x3cc673,_0x246462){_0x3cc673=_0x3cc673-0xcb;const _0xe75573=a94_0xe755();let _0x1f1a2b=_0xe75573[_0x3cc673];return _0x1f1a2b;}function buildSuggestedTitle(_0xaa503,_0x2d4f2c){const _0xb7d604=a94_0x5ee274,_0x5a164d=_0xaa503 instanceof Error?_0xaa503['message']:String(_0xaa503),_0x41c8b3=_0x5a164d[_0xb7d604(0xe3)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xb7d604(0xea)]()['slice'](0x0,0x78)[_0xb7d604(0xe3)](/"/g,'\x5c\x22'),_0x3dc294=CLI_BIN_NAME+'\x20'+_0x2d4f2c['service']+'\x20'+_0x2d4f2c['command'];return _0x41c8b3[_0xb7d604(0xd7)]>0x0?_0x3dc294+':\x20'+_0x41c8b3:_0x3dc294;}function formatNudge(_0x4012ff){const _0x3bb841=a94_0x5ee274;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x3bb841(0xda),'\x20\x20'+CLI_BIN_NAME+_0x3bb841(0xec),'\x20\x20\x20\x20--title\x20\x22'+_0x4012ff+_0x3bb841(0xd0),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x3bb841(0xe9),_0x3bb841(0xcf)+NUDGE_OPT_OUT_ENV+_0x3bb841(0xe5),''][_0x3bb841(0xe0)]('\x0a');}
@@ -1 +1 @@
1
- const a93_0x17d848=a93_0x4915;(function(_0x33d597,_0x46c812){const _0x2ed85c=a93_0x4915,_0x5b1897=_0x33d597();while(!![]){try{const _0xeaebf5=parseInt(_0x2ed85c(0x171))/0x1*(parseInt(_0x2ed85c(0x155))/0x2)+parseInt(_0x2ed85c(0x163))/0x3+parseInt(_0x2ed85c(0x173))/0x4+parseInt(_0x2ed85c(0x178))/0x5+-parseInt(_0x2ed85c(0x182))/0x6*(-parseInt(_0x2ed85c(0x176))/0x7)+-parseInt(_0x2ed85c(0x18f))/0x8+-parseInt(_0x2ed85c(0x18c))/0x9;if(_0xeaebf5===_0x46c812)break;else _0x5b1897['push'](_0x5b1897['shift']());}catch(_0x51362c){_0x5b1897['push'](_0x5b1897['shift']());}}}(a93_0x13fa,0x4c77f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a93_0x4915(_0x8a7480,_0x5eb259){_0x8a7480=_0x8a7480-0x150;const _0x13fa1f=a93_0x13fa();let _0x4915cf=_0x13fa1f[_0x8a7480];return _0x4915cf;}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a93_0x17d848(0x169);function a93_0x13fa(){const _0x4a1025=['truncated:\x20original\x20','1684870ZkpICc','originalBytes','descriptionFilePath','issue.description_redaction_kinds','inline','redactions:\x20','issue.description_redactions','title','One-line\x20issue\x20summary','issue.description','150clJNVH','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','str','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','redactionKinds','truncated\x20from\x20','message','cwd','description','Failed\x20to\x20report\x20platform\x20issue:\x20','6322032xkrbyL','file','File\x20not\x20found:\x20','1236568pHiMJg','Issue\x20description\x20cannot\x20be\x20empty.','apiError','otel://','issue.description_truncated','write','197626RxRZpw','redactionCount','string','push','validation','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','filter','\x20bytes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','compress','1167729bqALWq','trim','Platform\x20issue\x20reported\x20(','Issue\x20description\x20file\x20is\x20empty:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','descriptionFile:\x20','description-file','issue.description_original_bytes','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redacted\x20','Platform\x20issue\x20reported','truncated','utf8','sanitize','1tdEqCK','join','584716obVhpV','length','\x20secret(s):\x20','55727cqjdlf'];a93_0x13fa=function(){return _0x4a1025;};return a93_0x13fa();}export const issueReport={'service':'issue','command':'report','description':a93_0x17d848(0x160),'risk':a93_0x17d848(0x154),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x17d848(0x162),'flags':[{'name':'title','type':a93_0x17d848(0x157),'required':!![],'description':a93_0x17d848(0x180)},{'name':a93_0x17d848(0x18a),'type':a93_0x17d848(0x157),'description':a93_0x17d848(0x167)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a93_0x17d848(0x183)}],async 'validate'(_0x543106){const _0x3fd7ae=a93_0x17d848,_0x314fbb=_0x543106['str'](_0x3fd7ae(0x17f))[_0x3fd7ae(0x164)](),_0x16e2f0=_0x543106[_0x3fd7ae(0x184)](_0x3fd7ae(0x18a))[_0x3fd7ae(0x164)](),_0x26637b=_0x543106[_0x3fd7ae(0x184)](DESCRIPTION_FILE_FLAG)[_0x3fd7ae(0x164)]();if(!_0x314fbb)throw CliErrors['flagMissing']('title',_0x3fd7ae(0x161));const _0xee87a7=_0x16e2f0[_0x3fd7ae(0x174)]>0x0,_0x4e64b8=_0x26637b[_0x3fd7ae(0x174)]>0x0;if(_0xee87a7===_0x4e64b8)throw CliErrors[_0x3fd7ae(0x159)](_0x3fd7ae(0x185),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x4e64b8){const _0x5db454=resolve(process['cwd'](),_0x26637b);if(!existsSync(_0x5db454))throw CliErrors[_0x3fd7ae(0x159)](_0x3fd7ae(0x18e)+_0x5db454);}},async 'dryRun'(_0x2a9e12){const _0x2c5660=a93_0x17d848,_0x36cf40=await prepareIssueReport(_0x2a9e12);return{'method':'POST','url':_0x2c5660(0x152)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x36cf40[_0x2c5660(0x17f)],'issue.description':_0x36cf40['description'],'issue.description_original_bytes':_0x36cf40['sanitize'][_0x2c5660(0x179)],'issue.description_truncated':_0x36cf40[_0x2c5660(0x170)][_0x2c5660(0x16e)],'issue.description_redactions':_0x36cf40['sanitize'][_0x2c5660(0x156)],'issue.description_redaction_kinds':_0x36cf40[_0x2c5660(0x170)][_0x2c5660(0x186)][_0x2c5660(0x172)](',')}},'description':[_0x2c5660(0x15a),'descriptionSource:\x20'+_0x36cf40[_0x2c5660(0x15b)],_0x36cf40['descriptionFilePath']?_0x2c5660(0x168)+_0x36cf40['descriptionFilePath']:null,_0x36cf40[_0x2c5660(0x170)][_0x2c5660(0x16e)]?_0x2c5660(0x177)+_0x36cf40['sanitize'][_0x2c5660(0x179)]+_0x2c5660(0x15f):null,_0x36cf40[_0x2c5660(0x170)][_0x2c5660(0x156)]>0x0?_0x2c5660(0x17d)+_0x36cf40['sanitize'][_0x2c5660(0x156)]+'\x20('+_0x36cf40['sanitize'][_0x2c5660(0x186)][_0x2c5660(0x172)](',\x20')+')':null][_0x2c5660(0x15e)](Boolean)['join']('\x0a')};},async 'execute'(_0x1d2ed0){const _0x5b8dec=a93_0x17d848,_0x458e21=await prepareIssueReport(_0x1d2ed0);try{await sendPlatformIssueCollectLog({'title':_0x458e21[_0x5b8dec(0x17f)],'description':_0x458e21[_0x5b8dec(0x18a)],'sanitize':{'originalBytes':_0x458e21[_0x5b8dec(0x170)][_0x5b8dec(0x179)],'truncated':_0x458e21[_0x5b8dec(0x170)]['truncated'],'redactionCount':_0x458e21[_0x5b8dec(0x170)]['redactionCount'],'redactionKinds':_0x458e21[_0x5b8dec(0x170)][_0x5b8dec(0x186)]}});}catch(_0x247092){throw CliErrors[_0x5b8dec(0x151)](_0x5b8dec(0x18b)+(_0x247092 instanceof Error?_0x247092[_0x5b8dec(0x188)]:String(_0x247092)),_0x5b8dec(0x15d));}return{'ok':!![],'message':buildResultMessage(_0x458e21[_0x5b8dec(0x170)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x5b8dec(0x181),_0x5b8dec(0x16a),_0x5b8dec(0x153),_0x5b8dec(0x17e),_0x5b8dec(0x17b)],'issue':{'title':_0x458e21[_0x5b8dec(0x17f)],'descriptionLength':_0x458e21['description'][_0x5b8dec(0x174)],'descriptionSource':_0x458e21[_0x5b8dec(0x15b)],..._0x458e21[_0x5b8dec(0x17a)]?{'descriptionFile':_0x458e21[_0x5b8dec(0x17a)]}:{},'sanitize':{'originalBytes':_0x458e21['sanitize'][_0x5b8dec(0x179)],'truncated':_0x458e21['sanitize'][_0x5b8dec(0x16e)],'redactions':_0x458e21[_0x5b8dec(0x170)][_0x5b8dec(0x156)],'redactionKinds':_0x458e21[_0x5b8dec(0x170)][_0x5b8dec(0x186)]}}}};}};function buildResultMessage(_0x5626a2){const _0x5dabef=a93_0x17d848,_0xae1bb3=[];return _0x5626a2[_0x5dabef(0x16e)]&&_0xae1bb3['push'](_0x5dabef(0x187)+_0x5626a2[_0x5dabef(0x179)]+_0x5dabef(0x15f)),_0x5626a2['redactionCount']>0x0&&_0xae1bb3[_0x5dabef(0x158)](_0x5dabef(0x16c)+_0x5626a2['redactionCount']+_0x5dabef(0x175)+_0x5626a2['redactionKinds'][_0x5dabef(0x172)](',\x20')),_0xae1bb3[_0x5dabef(0x174)]===0x0?_0x5dabef(0x16d):_0x5dabef(0x165)+_0xae1bb3[_0x5dabef(0x172)](';\x20')+')';}async function prepareIssueReport(_0x447fad){const _0x4d5d57=a93_0x17d848,_0xf43342=_0x447fad[_0x4d5d57(0x184)](_0x4d5d57(0x17f))[_0x4d5d57(0x164)](),_0x12e5bc=_0x447fad[_0x4d5d57(0x184)](_0x4d5d57(0x18a)),_0x5b2ada=_0x447fad[_0x4d5d57(0x184)](DESCRIPTION_FILE_FLAG)[_0x4d5d57(0x164)]();if(!_0x5b2ada){const _0x5f087d=_0x12e5bc;if(!_0x5f087d[_0x4d5d57(0x164)]())throw CliErrors[_0x4d5d57(0x159)](_0x4d5d57(0x150),_0x4d5d57(0x16b));const _0xab12aa=sanitizeIssueDescription(_0x5f087d);return{'title':_0xf43342,'description':_0xab12aa[_0x4d5d57(0x18a)],'descriptionSource':_0x4d5d57(0x17c),'sanitize':_0xab12aa};}const _0x4d32c8=resolve(process[_0x4d5d57(0x189)](),_0x5b2ada),_0x1cdb04=await readFile(_0x4d32c8,_0x4d5d57(0x16f));if(!_0x1cdb04[_0x4d5d57(0x164)]())throw CliErrors[_0x4d5d57(0x159)](_0x4d5d57(0x166)+_0x4d32c8,_0x4d5d57(0x15c));const _0x1366f5=sanitizeIssueDescription(_0x1cdb04);return{'title':_0xf43342,'description':_0x1366f5[_0x4d5d57(0x18a)],'descriptionSource':_0x4d5d57(0x18d),'descriptionFilePath':_0x4d32c8,'sanitize':_0x1366f5};}
1
+ const a95_0x9f55ad=a95_0x4dd9;(function(_0x343ad9,_0x32e7dd){const _0x8b2de9=a95_0x4dd9,_0x35fa65=_0x343ad9();while(!![]){try{const _0x1fda45=-parseInt(_0x8b2de9(0x17c))/0x1*(-parseInt(_0x8b2de9(0x19a))/0x2)+-parseInt(_0x8b2de9(0x19e))/0x3*(-parseInt(_0x8b2de9(0x18e))/0x4)+-parseInt(_0x8b2de9(0x196))/0x5*(-parseInt(_0x8b2de9(0x197))/0x6)+-parseInt(_0x8b2de9(0x188))/0x7*(parseInt(_0x8b2de9(0x174))/0x8)+parseInt(_0x8b2de9(0x177))/0x9+parseInt(_0x8b2de9(0x1a6))/0xa*(-parseInt(_0x8b2de9(0x187))/0xb)+-parseInt(_0x8b2de9(0x19f))/0xc*(-parseInt(_0x8b2de9(0x19b))/0xd);if(_0x1fda45===_0x32e7dd)break;else _0x35fa65['push'](_0x35fa65['shift']());}catch(_0x17144a){_0x35fa65['push'](_0x35fa65['shift']());}}}(a95_0x2ef5,0x9007f));import{existsSync}from'node:fs';function a95_0x4dd9(_0x3acdc8,_0x57ba36){_0x3acdc8=_0x3acdc8-0x16a;const _0x2ef5c0=a95_0x2ef5();let _0x4dd94e=_0x2ef5c0[_0x3acdc8];return _0x4dd94e;}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a95_0x2ef5(){const _0x5ed9de=['Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','validation','Platform\x20issue\x20reported\x20(','issue.title','trim','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','descriptionSource','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','issue','title','8461448kqyyzL','push','One-line\x20issue\x20summary','2189214cFVKew','truncated','descriptionSource:\x20','issue.description_redaction_kinds','write','82466FxClYo','descriptionFilePath','issue.description_redactions','Issue\x20description\x20cannot\x20be\x20empty.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','compress','descriptionFile:\x20','POST','report','string','cwd','3780359lWjGtf','7iWzjfD','\x20secret(s):\x20','join','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','redactionKinds','issue.description_original_bytes','80wUgpLL','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','message','\x20bytes','truncated\x20from\x20','Issue\x20description\x20file\x20is\x20empty:\x20','truncated:\x20original\x20','otel://','635150svTNbh','42IFFHxF','description','Platform\x20issue\x20reported','2pYFxfx','13iIHnTv','sanitize','originalBytes','8808OuSJRE','8611908EQROpW','length','file','str','File\x20not\x20found:\x20','flagMissing','redactionCount','10AyVOdG'];a95_0x2ef5=function(){return _0x5ed9de;};return a95_0x2ef5();}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a95_0x9f55ad(0x172),'command':a95_0x9f55ad(0x184),'description':a95_0x9f55ad(0x171),'risk':a95_0x9f55ad(0x17b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a95_0x9f55ad(0x181),'flags':[{'name':a95_0x9f55ad(0x173),'type':a95_0x9f55ad(0x185),'required':!![],'description':a95_0x9f55ad(0x176)},{'name':a95_0x9f55ad(0x198),'type':a95_0x9f55ad(0x185),'description':a95_0x9f55ad(0x16a)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a95_0x9f55ad(0x180)}],async 'validate'(_0x3c9868){const _0x54f851=a95_0x9f55ad,_0x5f3609=_0x3c9868['str'](_0x54f851(0x173))[_0x54f851(0x16e)](),_0x2c9b26=_0x3c9868[_0x54f851(0x1a2)]('description')[_0x54f851(0x16e)](),_0x59e60a=_0x3c9868[_0x54f851(0x1a2)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5f3609)throw CliErrors[_0x54f851(0x1a4)](_0x54f851(0x173),_0x54f851(0x16f));const _0x14f52b=_0x2c9b26[_0x54f851(0x1a0)]>0x0,_0xa499f9=_0x59e60a[_0x54f851(0x1a0)]>0x0;if(_0x14f52b===_0xa499f9)throw CliErrors[_0x54f851(0x16b)](_0x54f851(0x18b),_0x54f851(0x1a7));if(_0xa499f9){const _0xf8173=resolve(process[_0x54f851(0x186)](),_0x59e60a);if(!existsSync(_0xf8173))throw CliErrors[_0x54f851(0x16b)](_0x54f851(0x1a3)+_0xf8173);}},async 'dryRun'(_0x36c798){const _0x47b119=a95_0x9f55ad,_0x135049=await prepareIssueReport(_0x36c798);return{'method':_0x47b119(0x183),'url':_0x47b119(0x195)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x135049[_0x47b119(0x173)],'issue.description':_0x135049['description'],'issue.description_original_bytes':_0x135049[_0x47b119(0x19c)][_0x47b119(0x19d)],'issue.description_truncated':_0x135049[_0x47b119(0x19c)][_0x47b119(0x178)],'issue.description_redactions':_0x135049[_0x47b119(0x19c)][_0x47b119(0x1a5)],'issue.description_redaction_kinds':_0x135049[_0x47b119(0x19c)]['redactionKinds'][_0x47b119(0x18a)](',')}},'description':[_0x47b119(0x18f),_0x47b119(0x179)+_0x135049[_0x47b119(0x170)],_0x135049['descriptionFilePath']?_0x47b119(0x182)+_0x135049[_0x47b119(0x17d)]:null,_0x135049[_0x47b119(0x19c)][_0x47b119(0x178)]?_0x47b119(0x194)+_0x135049[_0x47b119(0x19c)]['originalBytes']+_0x47b119(0x191):null,_0x135049[_0x47b119(0x19c)][_0x47b119(0x1a5)]>0x0?'redactions:\x20'+_0x135049[_0x47b119(0x19c)][_0x47b119(0x1a5)]+'\x20('+_0x135049[_0x47b119(0x19c)][_0x47b119(0x18c)][_0x47b119(0x18a)](',\x20')+')':null]['filter'](Boolean)[_0x47b119(0x18a)]('\x0a')};},async 'execute'(_0x5d3722){const _0xf8d991=a95_0x9f55ad,_0x573ab5=await prepareIssueReport(_0x5d3722);try{await sendPlatformIssueCollectLog({'title':_0x573ab5[_0xf8d991(0x173)],'description':_0x573ab5[_0xf8d991(0x198)],'sanitize':{'originalBytes':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x19d)],'truncated':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x178)],'redactionCount':_0x573ab5[_0xf8d991(0x19c)]['redactionCount'],'redactionKinds':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x18c)]}});}catch(_0x18cbc0){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x18cbc0 instanceof Error?_0x18cbc0[_0xf8d991(0x190)]:String(_0x18cbc0)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x573ab5[_0xf8d991(0x19c)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xf8d991(0x16d),'issue.description',_0xf8d991(0x18d),'issue.description_truncated',_0xf8d991(0x17e),_0xf8d991(0x17a)],'issue':{'title':_0x573ab5[_0xf8d991(0x173)],'descriptionLength':_0x573ab5[_0xf8d991(0x198)][_0xf8d991(0x1a0)],'descriptionSource':_0x573ab5[_0xf8d991(0x170)],..._0x573ab5['descriptionFilePath']?{'descriptionFile':_0x573ab5[_0xf8d991(0x17d)]}:{},'sanitize':{'originalBytes':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x19d)],'truncated':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x178)],'redactions':_0x573ab5['sanitize'][_0xf8d991(0x1a5)],'redactionKinds':_0x573ab5[_0xf8d991(0x19c)][_0xf8d991(0x18c)]}}}};}};function buildResultMessage(_0x3893fc){const _0xb28c0c=a95_0x9f55ad,_0x2e1ff5=[];return _0x3893fc[_0xb28c0c(0x178)]&&_0x2e1ff5[_0xb28c0c(0x175)](_0xb28c0c(0x192)+_0x3893fc[_0xb28c0c(0x19d)]+'\x20bytes'),_0x3893fc[_0xb28c0c(0x1a5)]>0x0&&_0x2e1ff5[_0xb28c0c(0x175)]('redacted\x20'+_0x3893fc[_0xb28c0c(0x1a5)]+_0xb28c0c(0x189)+_0x3893fc[_0xb28c0c(0x18c)][_0xb28c0c(0x18a)](',\x20')),_0x2e1ff5[_0xb28c0c(0x1a0)]===0x0?_0xb28c0c(0x199):_0xb28c0c(0x16c)+_0x2e1ff5[_0xb28c0c(0x18a)](';\x20')+')';}async function prepareIssueReport(_0xd812ee){const _0x4a6bbe=a95_0x9f55ad,_0x584bd5=_0xd812ee[_0x4a6bbe(0x1a2)](_0x4a6bbe(0x173))[_0x4a6bbe(0x16e)](),_0x3ba0cb=_0xd812ee[_0x4a6bbe(0x1a2)]('description'),_0x1c3e1d=_0xd812ee[_0x4a6bbe(0x1a2)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1c3e1d){const _0x4b3f4e=_0x3ba0cb;if(!_0x4b3f4e[_0x4a6bbe(0x16e)]())throw CliErrors[_0x4a6bbe(0x16b)](_0x4a6bbe(0x17f),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x11270e=sanitizeIssueDescription(_0x4b3f4e);return{'title':_0x584bd5,'description':_0x11270e[_0x4a6bbe(0x198)],'descriptionSource':'inline','sanitize':_0x11270e};}const _0x3316ea=resolve(process[_0x4a6bbe(0x186)](),_0x1c3e1d),_0x40dff6=await readFile(_0x3316ea,'utf8');if(!_0x40dff6[_0x4a6bbe(0x16e)]())throw CliErrors[_0x4a6bbe(0x16b)](_0x4a6bbe(0x193)+_0x3316ea,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x36b1b3=sanitizeIssueDescription(_0x40dff6);return{'title':_0x584bd5,'description':_0x36b1b3[_0x4a6bbe(0x198)],'descriptionSource':_0x4a6bbe(0x1a1),'descriptionFilePath':_0x3316ea,'sanitize':_0x36b1b3};}
@@ -1 +1 @@
1
- function a94_0xf42c(){const _0x26da4a=['authorization','includes','from','7733mqyDrr','subarray','cookie','REDACTED:bearer-jwt','7MLopcf','kind','REDACTED:password','byteLength','max','5420080LANHwm','label','push','9084078tqgczc','string','149433vdPJJT','13820mDuIMp','44RGZLQn','REDACTED:cookie','14252526oHVKKQ','pattern','24KiVxbm','REDACTED:authorization','44BKsCyF','password','5804XxFfCa','replace','utf8','REDACTED:private-key','access-key','28167295gEoOzK','5DcGBEJ'];a94_0xf42c=function(){return _0x26da4a;};return a94_0xf42c();}function a94_0x2fb4(_0x4c2fe1,_0x39b700){_0x4c2fe1=_0x4c2fe1-0x72;const _0xf42c62=a94_0xf42c();let _0x2fb49d=_0xf42c62[_0x4c2fe1];return _0x2fb49d;}const a94_0x3242ad=a94_0x2fb4;(function(_0x342311,_0x45a3b4){const _0x599f61=a94_0x2fb4,_0x4dfd8c=_0x342311();while(!![]){try{const _0x4ecd47=-parseInt(_0x599f61(0x79))/0x1*(parseInt(_0x599f61(0x77))/0x2)+parseInt(_0x599f61(0x91))/0x3*(parseInt(_0x599f61(0x93))/0x4)+-parseInt(_0x599f61(0x7f))/0x5*(-parseInt(_0x599f61(0x8f))/0x6)+parseInt(_0x599f61(0x87))/0x7*(parseInt(_0x599f61(0x8c))/0x8)+parseInt(_0x599f61(0x73))/0x9+-parseInt(_0x599f61(0x92))/0xa*(-parseInt(_0x599f61(0x83))/0xb)+-parseInt(_0x599f61(0x75))/0xc*(parseInt(_0x599f61(0x7e))/0xd);if(_0x4ecd47===_0x45a3b4)break;else _0x4dfd8c['push'](_0x4dfd8c['shift']());}catch(_0x1059cb){_0x4dfd8c['push'](_0x4dfd8c['shift']());}}}(a94_0xf42c,0xcb7ce));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a94_0x3242ad(0x85),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x3242ad(0x72)},{'kind':a94_0x3242ad(0x80),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a94_0x3242ad(0x76)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x3242ad(0x7c)},{'kind':a94_0x3242ad(0x7d),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a94_0x3242ad(0x78),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x3242ad(0x89)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x3242ad(0x86)}];export function sanitizeIssueDescription(_0x10cc56){const _0x4b165a=a94_0x3242ad,_0xc33e71=Buffer[_0x4b165a(0x8a)](_0x10cc56,'utf8'),_0x52b6af=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x41e50a=_0x10cc56,_0x12e18d=0x0;const _0x21fb80=[];if(!_0x52b6af)for(const _0x217fca of REDACTION_RULES){let _0x5bdd05=0x0;_0x41e50a=_0x41e50a[_0x4b165a(0x7a)](_0x217fca[_0x4b165a(0x74)],(_0x90e02f,_0x3835e3)=>{const _0x50b604=_0x4b165a;_0x5bdd05+=0x1;const _0x345da8=typeof _0x3835e3===_0x50b604(0x90)?_0x3835e3:'';return _0x345da8+'['+_0x217fca[_0x50b604(0x8d)]+']';}),_0x5bdd05>0x0&&(_0x12e18d+=_0x5bdd05,!_0x21fb80[_0x4b165a(0x81)](_0x217fca[_0x4b165a(0x88)])&&_0x21fb80[_0x4b165a(0x8e)](_0x217fca['kind']));}let _0x2849b9=![];if(Buffer[_0x4b165a(0x8a)](_0x41e50a,_0x4b165a(0x7b))>ISSUE_DESCRIPTION_MAX_BYTES){_0x2849b9=!![];const _0x27704b=Buffer[_0x4b165a(0x8a)](TRUNCATION_NOTICE,_0x4b165a(0x7b)),_0x1c165f=Math[_0x4b165a(0x8b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x27704b);_0x41e50a=sliceUtf8Bytes(_0x41e50a,_0x1c165f)+TRUNCATION_NOTICE;}return{'description':_0x41e50a,'originalBytes':_0xc33e71,'truncated':_0x2849b9,'redactionCount':_0x12e18d,'redactionKinds':_0x21fb80};}function sliceUtf8Bytes(_0x24a2ac,_0x17d7fe){const _0x17f6ca=a94_0x3242ad;if(_0x17d7fe<=0x0)return'';const _0x577079=Buffer[_0x17f6ca(0x82)](_0x24a2ac,_0x17f6ca(0x7b));if(_0x577079[_0x17f6ca(0x8a)]<=_0x17d7fe)return _0x24a2ac;let _0x3b3515=_0x17d7fe;while(_0x3b3515>0x0){const _0x285068=_0x577079[_0x3b3515];if(_0x285068===undefined||(_0x285068&0xc0)!==0x80)break;_0x3b3515-=0x1;}return _0x577079[_0x17f6ca(0x84)](0x0,_0x3b3515)['toString']('utf8');}
1
+ const a96_0xb2aba7=a96_0x5605;(function(_0x35367a,_0x4b5869){const _0x4dce54=a96_0x5605,_0x505cc3=_0x35367a();while(!![]){try{const _0x1dbb33=parseInt(_0x4dce54(0x18a))/0x1+-parseInt(_0x4dce54(0x16f))/0x2+-parseInt(_0x4dce54(0x174))/0x3+-parseInt(_0x4dce54(0x169))/0x4*(parseInt(_0x4dce54(0x180))/0x5)+parseInt(_0x4dce54(0x184))/0x6*(-parseInt(_0x4dce54(0x18d))/0x7)+-parseInt(_0x4dce54(0x16e))/0x8+parseInt(_0x4dce54(0x188))/0x9*(parseInt(_0x4dce54(0x177))/0xa);if(_0x1dbb33===_0x4b5869)break;else _0x505cc3['push'](_0x505cc3['shift']());}catch(_0x46401c){_0x505cc3['push'](_0x505cc3['shift']());}}}(a96_0x5ba6,0x461e4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a96_0xb2aba7(0x173),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a96_0xb2aba7(0x172)},{'kind':a96_0xb2aba7(0x18c),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a96_0xb2aba7(0x183)},{'kind':a96_0xb2aba7(0x168),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a96_0xb2aba7(0x181)},{'kind':a96_0xb2aba7(0x17c),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a96_0xb2aba7(0x175)},{'kind':a96_0xb2aba7(0x16d),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a96_0xb2aba7(0x178)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a96_0xb2aba7(0x170)}];export function sanitizeIssueDescription(_0x22ff2f){const _0x581e3c=a96_0xb2aba7,_0x16a32c=Buffer[_0x581e3c(0x17a)](_0x22ff2f,'utf8'),_0x129558=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x3de3c9=_0x22ff2f,_0x35a233=0x0;const _0x1300c6=[];if(!_0x129558){const _0x573655=protectOssAccessKeyIds(_0x3de3c9);_0x3de3c9=_0x573655[_0x581e3c(0x18b)];for(const _0x57723e of REDACTION_RULES){let _0x367a81=0x0;_0x3de3c9=_0x3de3c9[_0x581e3c(0x17d)](_0x57723e[_0x581e3c(0x186)],(_0x30c481,_0x366f4d)=>{const _0x2b50d1=_0x581e3c;_0x367a81+=0x1;const _0x5931ea=typeof _0x366f4d===_0x2b50d1(0x17b)?_0x366f4d:'';return _0x5931ea+'['+_0x57723e['label']+']';}),_0x367a81>0x0&&(_0x35a233+=_0x367a81,!_0x1300c6[_0x581e3c(0x187)](_0x57723e[_0x581e3c(0x16c)])&&_0x1300c6['push'](_0x57723e[_0x581e3c(0x16c)]));}_0x3de3c9=_0x573655[_0x581e3c(0x179)](_0x3de3c9);}let _0x15aebe=![];if(Buffer[_0x581e3c(0x17a)](_0x3de3c9,_0x581e3c(0x171))>ISSUE_DESCRIPTION_MAX_BYTES){_0x15aebe=!![];const _0x580822=Buffer[_0x581e3c(0x17a)](TRUNCATION_NOTICE,_0x581e3c(0x171)),_0x15d303=Math[_0x581e3c(0x17f)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x580822);_0x3de3c9=sliceUtf8Bytes(_0x3de3c9,_0x15d303)+TRUNCATION_NOTICE;}return{'description':_0x3de3c9,'originalBytes':_0x16a32c,'truncated':_0x15aebe,'redactionCount':_0x35a233,'redactionKinds':_0x1300c6};}function protectOssAccessKeyIds(_0x41a6e2){const _0xbd9eee=a96_0xb2aba7,_0x5a3efd=[],_0x15ec4e=_0x41a6e2[_0xbd9eee(0x17d)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x4a530d,_0x201c5d)=>{const _0xf7e94f=_0xbd9eee,_0x5c1794=_0x5a3efd[_0xf7e94f(0x182)](_0x4a530d[_0xf7e94f(0x189)](_0x201c5d[_0xf7e94f(0x185)]))-0x1;return _0x201c5d+_0xf7e94f(0x16a)+_0x5c1794+'__';});return{'description':_0x15ec4e,'restore':_0x31c294=>_0x31c294['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2dbc02,_0x13a842,_0x3c25c1)=>{const _0x27e225=_0x5a3efd[Number(_0x3c25c1)];return _0x27e225===undefined?_0x2dbc02:''+_0x13a842+_0x27e225;})};}function a96_0x5ba6(){const _0x436996=['315141YQPXJO','description','authorization','108591QsYqLt','private-key','244DAFguq','__RB_OSS_ID_','from','kind','password','3086552QVPnlb','625354DFsevK','REDACTED:bearer-jwt','utf8','REDACTED:cookie','cookie','177474rvxBsJ','REDACTED:access-key','subarray','10NDfQvM','REDACTED:password','restore','byteLength','string','access-key','replace','toString','max','28395IHStHV','REDACTED:private-key','push','REDACTED:authorization','102nYVpqm','length','pattern','includes','12058713ctvIKa','slice'];a96_0x5ba6=function(){return _0x436996;};return a96_0x5ba6();}function a96_0x5605(_0x2e0b68,_0xe3f41f){_0x2e0b68=_0x2e0b68-0x168;const _0x5ba61d=a96_0x5ba6();let _0x56051b=_0x5ba61d[_0x2e0b68];return _0x56051b;}function sliceUtf8Bytes(_0x2ca0c6,_0xfde0fc){const _0x666958=a96_0xb2aba7;if(_0xfde0fc<=0x0)return'';const _0x9fe78d=Buffer[_0x666958(0x16b)](_0x2ca0c6,_0x666958(0x171));if(_0x9fe78d[_0x666958(0x17a)]<=_0xfde0fc)return _0x2ca0c6;let _0x335a8d=_0xfde0fc;while(_0x335a8d>0x0){const _0x2a9972=_0x9fe78d[_0x335a8d];if(_0x2a9972===undefined||(_0x2a9972&0xc0)!==0x80)break;_0x335a8d-=0x1;}return _0x9fe78d[_0x666958(0x176)](0x0,_0x335a8d)[_0x666958(0x17e)](_0x666958(0x171));}
@@ -1 +1 @@
1
- const a95_0x44732a=a95_0x66b6;(function(_0xdaf58,_0x281c07){const _0x246c38=a95_0x66b6,_0x5edf47=_0xdaf58();while(!![]){try{const _0x101527=parseInt(_0x246c38(0x1c1))/0x1*(parseInt(_0x246c38(0x1a7))/0x2)+parseInt(_0x246c38(0x1a8))/0x3+-parseInt(_0x246c38(0x1a9))/0x4*(-parseInt(_0x246c38(0x1bb))/0x5)+-parseInt(_0x246c38(0x1ab))/0x6+-parseInt(_0x246c38(0x1c2))/0x7+-parseInt(_0x246c38(0x1b9))/0x8+parseInt(_0x246c38(0x1ac))/0x9;if(_0x101527===_0x281c07)break;else _0x5edf47['push'](_0x5edf47['shift']());}catch(_0x348bb1){_0x5edf47['push'](_0x5edf47['shift']());}}}(a95_0xf2c3,0x8eec7));import{logger}from'../../utils/logger.js';function a95_0xf2c3(){const _0x110dc5=['1785574VJlhqi','412974TaoLFm','3861496gPqDMV','success','840336mYKxZh','3861153IsqIhG','length','View\x20command\x20history\x20logs','forEach','\x20\x20\x20Time:\x20','clearLogs','toLocaleString','show','timestamp','\x20\x20\x20Details:\x20','write','error','logs','8497384UQCXFg','*\x20Lovrabet\x20CLI\x20logs:\x0a','5eHxLxh','message','read','*\x20No\x20logs\x20found','log','en-US','1YpcLXO','4460344lfAOwg','keys','stringify','\x20\x20\x20Duration:\x20','details','clear','duration','*\x20Logs\x20cleared','level'];a95_0xf2c3=function(){return _0x110dc5;};return a95_0xf2c3();}function printLogs(_0xa6e3f9){const _0x367e56=a95_0x66b6;if(_0xa6e3f9[_0x367e56(0x1ad)]===0x0){console[_0x367e56(0x1bf)](_0x367e56(0x1be));return;}console['log'](_0x367e56(0x1ba)),_0xa6e3f9[_0x367e56(0x1af)]((_0x4a8e86,_0x290543)=>{const _0x1f6772=_0x367e56,_0x219f25=new Date(_0x4a8e86[_0x1f6772(0x1b4)])[_0x1f6772(0x1b2)](_0x1f6772(0x1c0)),_0xa4df13=_0x4a8e86[_0x1f6772(0x1a6)]===_0x1f6772(0x1aa)?'√':_0x4a8e86[_0x1f6772(0x1a6)]===_0x1f6772(0x1b7)?'×':_0x4a8e86[_0x1f6772(0x1a6)]==='warn'?'!':'i';console[_0x1f6772(0x1bf)](_0x290543+0x1+'.\x20'+_0xa4df13+'\x20['+_0x4a8e86['command']+']\x20'+_0x4a8e86[_0x1f6772(0x1bc)]),console[_0x1f6772(0x1bf)](_0x1f6772(0x1b0)+_0x219f25),_0x4a8e86[_0x1f6772(0x1c8)]&&console['log'](_0x1f6772(0x1c5)+_0x4a8e86[_0x1f6772(0x1c8)]+'ms'),_0x4a8e86[_0x1f6772(0x1c6)]&&Object[_0x1f6772(0x1c3)](_0x4a8e86[_0x1f6772(0x1c6)])['length']>0x0&&console['log'](_0x1f6772(0x1b5)+JSON[_0x1f6772(0x1c4)](_0x4a8e86['details'],null,0x2)),console[_0x1f6772(0x1bf)]('');});}function a95_0x66b6(_0x18598c,_0x59d2c3){_0x18598c=_0x18598c-0x1a5;const _0xf2c3a3=a95_0xf2c3();let _0x66b620=_0xf2c3a3[_0x18598c];return _0x66b620;}export const logsDefinitions=[{'service':a95_0x44732a(0x1b8),'command':a95_0x44732a(0x1b3),'description':a95_0x44732a(0x1ae),'risk':a95_0x44732a(0x1bd),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1ba8e1){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a95_0x44732a(0x1b8),'command':a95_0x44732a(0x1c7),'description':'Clear\x20command\x20history\x20logs','risk':a95_0x44732a(0x1b6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x21c5df){const _0x5e30c2=a95_0x44732a;return logger[_0x5e30c2(0x1b1)](),console[_0x5e30c2(0x1bf)](_0x5e30c2(0x1a5)),{'ok':!![]};}}];
1
+ function a97_0x20be(){const _0x261239=['*\x20No\x20logs\x20found','1735172RkyDSp','en-US','clearLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','success','7GrXrNE','View\x20command\x20history\x20logs','9330SorvVU','140571wBisCT','2997yOPxGt','warn','\x20\x20\x20Details:\x20','5932576BJaOiv','Clear\x20command\x20history\x20logs','details','error','write','readLogs','show','toLocaleString','\x20\x20\x20Time:\x20','duration','level','clear','339926oPHasA','log','read','timestamp','*\x20Logs\x20cleared','1630788fDltrV','keys','2638885YoGpha','logs','message','120tKhoTS','length'];a97_0x20be=function(){return _0x261239;};return a97_0x20be();}function a97_0x1f24(_0x286e4c,_0x1a854b){_0x286e4c=_0x286e4c-0x112;const _0x20beae=a97_0x20be();let _0x1f24eb=_0x20beae[_0x286e4c];return _0x1f24eb;}const a97_0x53ab8d=a97_0x1f24;(function(_0x26931e,_0x35cd56){const _0x2e7571=a97_0x1f24,_0x25a75a=_0x26931e();while(!![]){try{const _0x19465f=parseInt(_0x2e7571(0x124))/0x1+-parseInt(_0x2e7571(0x131))/0x2+-parseInt(_0x2e7571(0x114))/0x3*(-parseInt(_0x2e7571(0x12e))/0x4)+parseInt(_0x2e7571(0x12b))/0x5+-parseInt(_0x2e7571(0x129))/0x6*(parseInt(_0x2e7571(0x136))/0x7)+-parseInt(_0x2e7571(0x118))/0x8+-parseInt(_0x2e7571(0x115))/0x9*(-parseInt(_0x2e7571(0x113))/0xa);if(_0x19465f===_0x35cd56)break;else _0x25a75a['push'](_0x25a75a['shift']());}catch(_0x142ce0){_0x25a75a['push'](_0x25a75a['shift']());}}}(a97_0x20be,0xabaaa));import{logger}from'../../utils/logger.js';function printLogs(_0x575bbb){const _0x139a3b=a97_0x1f24;if(_0x575bbb[_0x139a3b(0x12f)]===0x0){console['log'](_0x139a3b(0x130));return;}console[_0x139a3b(0x125)](_0x139a3b(0x134)),_0x575bbb['forEach']((_0x5848b2,_0x2a45c7)=>{const _0x1ec186=_0x139a3b,_0xd28cc1=new Date(_0x5848b2[_0x1ec186(0x127)])[_0x1ec186(0x11f)](_0x1ec186(0x132)),_0x450759=_0x5848b2[_0x1ec186(0x122)]===_0x1ec186(0x135)?'√':_0x5848b2[_0x1ec186(0x122)]===_0x1ec186(0x11b)?'×':_0x5848b2['level']===_0x1ec186(0x116)?'!':'i';console[_0x1ec186(0x125)](_0x2a45c7+0x1+'.\x20'+_0x450759+'\x20['+_0x5848b2['command']+']\x20'+_0x5848b2[_0x1ec186(0x12d)]),console['log'](_0x1ec186(0x120)+_0xd28cc1),_0x5848b2[_0x1ec186(0x121)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x5848b2[_0x1ec186(0x121)]+'ms'),_0x5848b2[_0x1ec186(0x11a)]&&Object[_0x1ec186(0x12a)](_0x5848b2[_0x1ec186(0x11a)])[_0x1ec186(0x12f)]>0x0&&console[_0x1ec186(0x125)](_0x1ec186(0x117)+JSON['stringify'](_0x5848b2[_0x1ec186(0x11a)],null,0x2)),console[_0x1ec186(0x125)]('');});}export const logsDefinitions=[{'service':a97_0x53ab8d(0x12c),'command':a97_0x53ab8d(0x11e),'description':a97_0x53ab8d(0x112),'risk':a97_0x53ab8d(0x126),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x31c5db){const _0x4c1e33=a97_0x53ab8d;return printLogs(logger[_0x4c1e33(0x11d)]()),{'ok':!![]};}},{'service':a97_0x53ab8d(0x12c),'command':a97_0x53ab8d(0x123),'description':a97_0x53ab8d(0x119),'risk':a97_0x53ab8d(0x11c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x210b31){const _0x666f7e=a97_0x53ab8d;return logger[_0x666f7e(0x133)](),console['log'](_0x666f7e(0x128)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a96_0x1f52(){const _0x3b8354=['98742sufpbW','125972ZmlhdY','14silGaz','705132PtEySO','185320nWRziR','26DPPaKo','5LVghFk','7971132wXSMmK','8YjxKrh','385OmBzRx','6835698FqUdPt','4SgjdTd','1940564tNVoZY'];a96_0x1f52=function(){return _0x3b8354;};return a96_0x1f52();}(function(_0x27d073,_0x399f4a){const _0x2022a4=a96_0x37cd,_0x163c48=_0x27d073();while(!![]){try{const _0x4e4ff8=parseInt(_0x2022a4(0x13b))/0x1+parseInt(_0x2022a4(0x138))/0x2*(parseInt(_0x2022a4(0x13a))/0x3)+parseInt(_0x2022a4(0x139))/0x4*(parseInt(_0x2022a4(0x133))/0x5)+parseInt(_0x2022a4(0x13d))/0x6*(-parseInt(_0x2022a4(0x13c))/0x7)+parseInt(_0x2022a4(0x135))/0x8*(parseInt(_0x2022a4(0x137))/0x9)+parseInt(_0x2022a4(0x13e))/0xa*(parseInt(_0x2022a4(0x136))/0xb)+-parseInt(_0x2022a4(0x134))/0xc*(parseInt(_0x2022a4(0x132))/0xd);if(_0x4e4ff8===_0x399f4a)break;else _0x163c48['push'](_0x163c48['shift']());}catch(_0x4cacc1){_0x163c48['push'](_0x163c48['shift']());}}}(a96_0x1f52,0x7f52d));import{menuList}from'../../commands/menu/list.js';function a96_0x37cd(_0x349374,_0x49453b){_0x349374=_0x349374-0x132;const _0x1f5228=a96_0x1f52();let _0x37cd17=_0x1f5228[_0x349374];return _0x37cd17;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ function a98_0xdd9f(){const _0x20e316=['4096581RJeHSq','1786925QSTgyU','18406297QILJXE','994187IucaGC','4955166HywnCt','3380676OVXVsy','1263280GtnLvd'];a98_0xdd9f=function(){return _0x20e316;};return a98_0xdd9f();}(function(_0x5c857d,_0x59a6ef){const _0x4219b8=a98_0x4a6f,_0x25233e=_0x5c857d();while(!![]){try{const _0x8a8d16=parseInt(_0x4219b8(0x104))/0x1+parseInt(_0x4219b8(0x107))/0x2+parseInt(_0x4219b8(0x108))/0x3+parseInt(_0x4219b8(0x106))/0x4+parseInt(_0x4219b8(0x102))/0x5+-parseInt(_0x4219b8(0x105))/0x6+-parseInt(_0x4219b8(0x103))/0x7;if(_0x8a8d16===_0x59a6ef)break;else _0x25233e['push'](_0x25233e['shift']());}catch(_0x2a2848){_0x25233e['push'](_0x25233e['shift']());}}}(a98_0xdd9f,0xb4510));import{menuList}from'../../commands/menu/list.js';function a98_0x4a6f(_0x3035c9,_0x5d44d5){_0x3035c9=_0x3035c9-0x102;const _0xdd9fca=a98_0xdd9f();let _0x4a6ffe=_0xdd9fca[_0x3035c9];return _0x4a6ffe;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a97_0x1b7958=a97_0x2a67;(function(_0x1fd86f,_0x5ec3b2){const _0x49c6c1=a97_0x2a67,_0x1da64b=_0x1fd86f();while(!![]){try{const _0x8d410=-parseInt(_0x49c6c1(0xf9))/0x1*(-parseInt(_0x49c6c1(0xfd))/0x2)+parseInt(_0x49c6c1(0x115))/0x3*(parseInt(_0x49c6c1(0xf4))/0x4)+parseInt(_0x49c6c1(0x10d))/0x5*(parseInt(_0x49c6c1(0x118))/0x6)+parseInt(_0x49c6c1(0x112))/0x7*(-parseInt(_0x49c6c1(0x11a))/0x8)+parseInt(_0x49c6c1(0xf8))/0x9*(parseInt(_0x49c6c1(0x106))/0xa)+-parseInt(_0x49c6c1(0x103))/0xb+-parseInt(_0x49c6c1(0xff))/0xc;if(_0x8d410===_0x5ec3b2)break;else _0x1da64b['push'](_0x1da64b['shift']());}catch(_0x1e583d){_0x1da64b['push'](_0x1da64b['shift']());}}}(a97_0x2aa9,0xeab94));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a97_0x1b7958(0x114),'command':'list','description':a97_0x1b7958(0x10b),'risk':a97_0x1b7958(0x10c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a97_0x1b7958(0xf6),'description':a97_0x1b7958(0xfc)}],async 'execute'(_0x51b5b3){const _0x1a9520=a97_0x1b7958,_0x19c3a7=_0x51b5b3['bool'](_0x1a9520(0x119)),_0x2bf646=await getMenuTree(_0x51b5b3[_0x1a9520(0x104)],_0x51b5b3['cookie']),_0x2026fa=flattenMenuItems(Array[_0x1a9520(0x10a)](_0x2bf646)?_0x2bf646:[],{'verbose':_0x19c3a7,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x2026fa['length'],'menus':_0x2026fa},'message':_0x2026fa['length']===0x0?_0x1a9520(0x107):'Found\x20'+_0x2026fa['length']+'\x20menu(s)'};}};function flattenMenuItems(_0x2c55ed,_0x3e2637){const _0x3acc71=a97_0x1b7958,_0x1312bd=sortMenuItems(_0x2c55ed),_0x2dd1b0=[];for(const _0x380a3e of _0x1312bd){_0x2dd1b0[_0x3acc71(0x117)](toMenuListItem(_0x380a3e,_0x3e2637)),Array['isArray'](_0x380a3e['children'])&&_0x380a3e[_0x3acc71(0xf5)][_0x3acc71(0x101)]>0x0&&_0x2dd1b0[_0x3acc71(0x117)](...flattenMenuItems(_0x380a3e[_0x3acc71(0xf5)],{'verbose':_0x3e2637['verbose'],'parentId':_0x380a3e['id'],'depth':_0x3e2637[_0x3acc71(0x109)]+0x1}));}return _0x2dd1b0;}function a97_0x2a67(_0x2c720c,_0x3a4c94){_0x2c720c=_0x2c720c-0xf4;const _0x2aa96f=a97_0x2aa9();let _0x2a671e=_0x2aa96f[_0x2c720c];return _0x2a671e;}function sortMenuItems(_0x3ae7de){const _0x203ac4=a97_0x1b7958;return _0x3ae7de[_0x203ac4(0xfb)]((_0x9e99c,_0x26970b)=>({'item':_0x9e99c,'index':_0x26970b}))[_0x203ac4(0x105)]((_0x17245f,_0x5ddd92)=>{const _0x24dafe=_0x203ac4,_0x3c5c64=normalizeSort(_0x17245f[_0x24dafe(0x110)][_0x24dafe(0x105)]),_0x3cb6e4=normalizeSort(_0x5ddd92[_0x24dafe(0x110)][_0x24dafe(0x105)]);if(_0x3c5c64!==_0x3cb6e4)return _0x3c5c64-_0x3cb6e4;return _0x17245f[_0x24dafe(0x10f)]-_0x5ddd92[_0x24dafe(0x10f)];})['map'](({item:_0x3617a4})=>_0x3617a4);}function toMenuListItem(_0x3f8395,_0x58984d){const _0x1061bf=a97_0x1b7958,_0x56e2cb={'id':_0x3f8395['id'],'parentId':_0x58984d[_0x1061bf(0x113)],'depth':_0x58984d[_0x1061bf(0x109)],'label':normalizeString(_0x3f8395[_0x1061bf(0x116)]),'path':normalizeString(_0x3f8395[_0x1061bf(0xf7)]),'type':normalizeString(_0x3f8395[_0x1061bf(0xfe)]),'visible':typeof _0x3f8395[_0x1061bf(0x111)]===_0x1061bf(0xf6)?_0x3f8395[_0x1061bf(0x111)]:null,'sort':typeof _0x3f8395[_0x1061bf(0x105)]===_0x1061bf(0x10e)&&Number[_0x1061bf(0x108)](_0x3f8395[_0x1061bf(0x105)])?_0x3f8395['sort']:null,'resources':normalizeResources(_0x3f8395[_0x1061bf(0x102)]?.[_0x1061bf(0x11b)])};return _0x58984d['verbose']&&(_0x56e2cb[_0x1061bf(0x102)]=_0x3f8395[_0x1061bf(0x102)]??null),_0x56e2cb;}function normalizeSort(_0x178d81){const _0x5429e4=a97_0x1b7958;return typeof _0x178d81===_0x5429e4(0x10e)&&Number[_0x5429e4(0x108)](_0x178d81)?_0x178d81:Number[_0x5429e4(0x100)];}function normalizeString(_0x253222){return typeof _0x253222==='string'?_0x253222:'';}function normalizeResources(_0x22f3ff){const _0x587f20=a97_0x1b7958;if(Array[_0x587f20(0x10a)](_0x22f3ff))return _0x22f3ff[_0x587f20(0xfb)](String);if(typeof _0x22f3ff!==_0x587f20(0xfa))return[];try{const _0x4e8963=JSON['parse'](_0x22f3ff);return Array[_0x587f20(0x10a)](_0x4e8963)?_0x4e8963['map'](String):[];}catch{return[];}}function a97_0x2aa9(){const _0x37cb7c=['verbose','32IEsaCl','resources','1756KUbnFx','children','boolean','path','27aDeBZM','1UTHSTc','string','map','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','825816KlfOFr','type','11877864mJQuoG','POSITIVE_INFINITY','length','extend','14844060YOjVFw','appCode','sort','1248590enrMto','No\x20menus\x20found.','isFinite','depth','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','read','565iWVMOA','number','index','item','visible','162806ielrws','parentId','menu','6018kPyfnr','label','push','91626liiWgg'];a97_0x2aa9=function(){return _0x37cb7c;};return a97_0x2aa9();}
1
+ const a99_0x54d583=a99_0xec35;(function(_0x5afa0d,_0x173083){const _0x28a17f=a99_0xec35,_0x78c5a0=_0x5afa0d();while(!![]){try{const _0x4e3ab9=parseInt(_0x28a17f(0x18a))/0x1+-parseInt(_0x28a17f(0x175))/0x2+parseInt(_0x28a17f(0x181))/0x3*(parseInt(_0x28a17f(0x188))/0x4)+-parseInt(_0x28a17f(0x16e))/0x5*(-parseInt(_0x28a17f(0x166))/0x6)+-parseInt(_0x28a17f(0x189))/0x7*(parseInt(_0x28a17f(0x179))/0x8)+-parseInt(_0x28a17f(0x170))/0x9+parseInt(_0x28a17f(0x17d))/0xa;if(_0x4e3ab9===_0x173083)break;else _0x78c5a0['push'](_0x78c5a0['shift']());}catch(_0x5228ff){_0x78c5a0['push'](_0x78c5a0['shift']());}}}(a99_0x2da0,0x64f73));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a99_0x2da0(){const _0x5bc2d6=['extend','Found\x20','cookie','13989nDimvB','verbose','bool','push','sort','depth','children','292dkUZDo','45647nqXWBd','614272OfktHS','item','54042XCpYSi','menu','length','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','resources','read','list','35AXNDUC','isFinite','5561568SSpOSX','boolean','No\x20menus\x20found.','appCode','number','520670FWhFzD','\x20menu(s)','label','parentId','344jaScdB','map','string','index','5545250ZYMQSJ'];a99_0x2da0=function(){return _0x5bc2d6;};return a99_0x2da0();}function a99_0xec35(_0x524acc,_0x324ca7){_0x524acc=_0x524acc-0x165;const _0x2da0f9=a99_0x2da0();let _0xec3563=_0x2da0f9[_0x524acc];return _0xec3563;}import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a99_0x54d583(0x167),'command':a99_0x54d583(0x16d),'description':a99_0x54d583(0x16a),'risk':a99_0x54d583(0x16c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a99_0x54d583(0x182),'type':a99_0x54d583(0x171),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x2cd392){const _0x24b443=a99_0x54d583,_0x2d6730=_0x2cd392[_0x24b443(0x183)](_0x24b443(0x182)),_0x57313b=await getMenuTree(_0x2cd392[_0x24b443(0x173)],_0x2cd392[_0x24b443(0x180)]),_0x2e15e8=flattenMenuItems(Array[_0x24b443(0x169)](_0x57313b)?_0x57313b:[],{'verbose':_0x2d6730,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x2e15e8['length'],'menus':_0x2e15e8},'message':_0x2e15e8[_0x24b443(0x168)]===0x0?_0x24b443(0x172):_0x24b443(0x17f)+_0x2e15e8[_0x24b443(0x168)]+_0x24b443(0x176)};}};function flattenMenuItems(_0x133594,_0x3c4b6b){const _0x576ac3=a99_0x54d583,_0x257ff9=sortMenuItems(_0x133594),_0x37eb28=[];for(const _0x6bdc6d of _0x257ff9){_0x37eb28[_0x576ac3(0x184)](toMenuListItem(_0x6bdc6d,_0x3c4b6b)),Array[_0x576ac3(0x169)](_0x6bdc6d[_0x576ac3(0x187)])&&_0x6bdc6d[_0x576ac3(0x187)][_0x576ac3(0x168)]>0x0&&_0x37eb28[_0x576ac3(0x184)](...flattenMenuItems(_0x6bdc6d[_0x576ac3(0x187)],{'verbose':_0x3c4b6b[_0x576ac3(0x182)],'parentId':_0x6bdc6d['id'],'depth':_0x3c4b6b[_0x576ac3(0x186)]+0x1}));}return _0x37eb28;}function sortMenuItems(_0x395c63){const _0x35a6e2=a99_0x54d583;return _0x395c63[_0x35a6e2(0x17a)]((_0x24f3d9,_0x85e489)=>({'item':_0x24f3d9,'index':_0x85e489}))[_0x35a6e2(0x185)]((_0x2fd580,_0x2d5539)=>{const _0xb4a133=_0x35a6e2,_0xa07db9=normalizeSort(_0x2fd580['item'][_0xb4a133(0x185)]),_0x2e0118=normalizeSort(_0x2d5539[_0xb4a133(0x165)]['sort']);if(_0xa07db9!==_0x2e0118)return _0xa07db9-_0x2e0118;return _0x2fd580[_0xb4a133(0x17c)]-_0x2d5539[_0xb4a133(0x17c)];})[_0x35a6e2(0x17a)](({item:_0x3e1745})=>_0x3e1745);}function toMenuListItem(_0x3a1f2a,_0x18164e){const _0xe7585=a99_0x54d583,_0x3c9f7d={'id':_0x3a1f2a['id'],'parentId':_0x18164e[_0xe7585(0x178)],'depth':_0x18164e[_0xe7585(0x186)],'label':normalizeString(_0x3a1f2a[_0xe7585(0x177)]),'path':normalizeString(_0x3a1f2a['path']),'type':normalizeString(_0x3a1f2a['type']),'visible':typeof _0x3a1f2a['visible']==='boolean'?_0x3a1f2a['visible']:null,'sort':typeof _0x3a1f2a[_0xe7585(0x185)]==='number'&&Number[_0xe7585(0x16f)](_0x3a1f2a[_0xe7585(0x185)])?_0x3a1f2a[_0xe7585(0x185)]:null,'resources':normalizeResources(_0x3a1f2a['extend']?.[_0xe7585(0x16b)])};return _0x18164e[_0xe7585(0x182)]&&(_0x3c9f7d[_0xe7585(0x17e)]=_0x3a1f2a['extend']??null),_0x3c9f7d;}function normalizeSort(_0x40d2c6){const _0x121651=a99_0x54d583;return typeof _0x40d2c6===_0x121651(0x174)&&Number[_0x121651(0x16f)](_0x40d2c6)?_0x40d2c6:Number['POSITIVE_INFINITY'];}function normalizeString(_0x168171){const _0x191a89=a99_0x54d583;return typeof _0x168171===_0x191a89(0x17b)?_0x168171:'';}function normalizeResources(_0xb5d69d){const _0x1cff94=a99_0x54d583;if(Array['isArray'](_0xb5d69d))return _0xb5d69d[_0x1cff94(0x17a)](String);if(typeof _0xb5d69d!==_0x1cff94(0x17b))return[];try{const _0x177cb2=JSON['parse'](_0xb5d69d);return Array[_0x1cff94(0x169)](_0x177cb2)?_0x177cb2[_0x1cff94(0x17a)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x5411d9,_0x42c6e7){const _0x37f033=a98_0x5554,_0x59f857=_0x5411d9();while(!![]){try{const _0x9daa27=parseInt(_0x37f033(0xa4))/0x1+parseInt(_0x37f033(0x96))/0x2*(-parseInt(_0x37f033(0xa1))/0x3)+-parseInt(_0x37f033(0xa2))/0x4*(parseInt(_0x37f033(0xa5))/0x5)+parseInt(_0x37f033(0xa8))/0x6*(parseInt(_0x37f033(0xa3))/0x7)+-parseInt(_0x37f033(0x8d))/0x8*(-parseInt(_0x37f033(0xac))/0x9)+-parseInt(_0x37f033(0x9f))/0xa+-parseInt(_0x37f033(0x90))/0xb*(-parseInt(_0x37f033(0xab))/0xc);if(_0x9daa27===_0x42c6e7)break;else _0x59f857['push'](_0x59f857['shift']());}catch(_0xdc9433){_0x59f857['push'](_0x59f857['shift']());}}}(a98_0x2d8f,0x503f2));function a98_0x2d8f(){const _0xdea938=['7VNTZIC','586519uPJAqO','1569265MbdWgU','test','\x20\x20\x20\x20JS:\x20\x20','1754418IQkRsA','online','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','2112hGZYyw','1135305Jkszpu','length','path','16MpoGfF','Platform','\x20\x20\x20\x20CSS:\x20','21373AIeDcD','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','map','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','max','label','16AjLKaK','(unchanged)','local','Menu\x20Name','\x20\x20Affected\x20menus:\x20','join','showOnline','repeat','\x20\x20\x20\x20•\x20','4143010KjVWFA','push','156126wHKWGs','4PfJhkt'];a98_0x2d8f=function(){return _0xdea938;};return a98_0x2d8f();}function strWidth(_0x44c8a1){const _0x427e7a=a98_0x5554;let _0x124490=0x0;for(const _0x4fab28 of _0x44c8a1){_0x124490+=/[\u4e00-\u9fa5]/[_0x427e7a(0xa6)](_0x4fab28)?0x2:0x1;}return _0x124490;}function padRight(_0xba9178,_0x3e7e63){const _0x792de7=a98_0x5554,_0x509594=strWidth(_0xba9178);return _0xba9178+'\x20'[_0x792de7(0x9d)](Math[_0x792de7(0x94)](0x0,_0x3e7e63-_0x509594));}function a98_0x5554(_0x534760,_0x2d3932){_0x534760=_0x534760-0x8d;const _0x2d8fdc=a98_0x2d8f();let _0x555487=_0x2d8fdc[_0x534760];return _0x555487;}export function renderCompareTable(_0x2e9a12,_0x5ac850={}){const _0x3ed2d2=a98_0x5554;if(_0x2e9a12[_0x3ed2d2(0xad)]===0x0)return'';const _0x38c500=_0x5ac850[_0x3ed2d2(0x9c)]??!![],_0x34eb32=Math[_0x3ed2d2(0x94)](0x1e,..._0x2e9a12[_0x3ed2d2(0x92)](_0x5847a6=>strWidth(_0x5847a6[_0x3ed2d2(0x95)]))),_0x48c894=0x4,_0x3fe169=[],_0x1c3254='\x20\x20'+padRight(_0x3ed2d2(0x99),_0x34eb32),_0x475aa6=padRight('Local',_0x48c894),_0x3b4c85=_0x38c500?'\x20\x20'+padRight(_0x3ed2d2(0x8e),_0x48c894):'';_0x3fe169[_0x3ed2d2(0xa0)](_0x1c3254+'\x20\x20'+_0x475aa6+(_0x38c500?_0x3b4c85:'')),_0x3fe169[_0x3ed2d2(0xa0)]('\x20\x20'+'─'['repeat'](_0x34eb32)+'\x20\x20'+'─'[_0x3ed2d2(0x9d)](_0x48c894)+(_0x38c500?'\x20\x20'+'─'[_0x3ed2d2(0x9d)](_0x48c894):''));for(const _0x5d7646 of _0x2e9a12){const _0x21da13=padRight(_0x5d7646['label'],_0x34eb32),_0x2a450f=_0x5d7646[_0x3ed2d2(0x98)]?'✓':'✗',_0x5d7927=padRight(_0x2a450f,_0x48c894);let _0x8777a6='\x20\x20'+_0x21da13+'\x20\x20'+_0x5d7927;if(_0x38c500){const _0x187a71=_0x5d7646[_0x3ed2d2(0xa9)]?'✓':'✗';_0x8777a6+='\x20\x20'+padRight(_0x187a71,_0x48c894);}_0x3fe169[_0x3ed2d2(0xa0)](_0x8777a6);}return _0x3fe169[_0x3ed2d2(0x9b)]('\x0a');}export function renderSyncSummary(_0x2eae9e,_0x52d0e4){const _0x16dcb6=a98_0x5554;if(_0x2eae9e[_0x16dcb6(0xad)]===0x0)return _0x52d0e4?_0x16dcb6(0x91):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2a9af0=['\x20\x20'+_0x2eae9e[_0x16dcb6(0xad)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x36e199 of _0x2eae9e){_0x2a9af0[_0x16dcb6(0xa0)](_0x16dcb6(0x9e)+_0x36e199[_0x16dcb6(0x95)]+'\x20('+_0x36e199[_0x16dcb6(0xae)]+')');}return _0x2a9af0[_0x16dcb6(0x9b)]('\x0a');}export function renderUpdateSummary(_0x1ae581,_0x47aa64){const _0x2f9c7a=a98_0x5554;if(_0x1ae581[_0x2f9c7a(0xad)]===0x0)return _0x2f9c7a(0xaa);const _0x5cc594=['\x20\x20'+_0x1ae581[_0x2f9c7a(0xad)]+_0x2f9c7a(0x93),_0x2f9c7a(0xa7)+(_0x47aa64[0x0]??'(unchanged)'),_0x2f9c7a(0x8f)+(_0x47aa64[0x1]??_0x2f9c7a(0x97)),'',_0x2f9c7a(0x9a)+_0x1ae581[_0x2f9c7a(0x9b)](',\x20')];return _0x5cc594[_0x2f9c7a(0x9b)]('\x0a');}
1
+ function a100_0x3b60(){const _0x3b3072=['2TydUBF','Local','\x20\x20No\x20pages\x20to\x20sync.','length','7ilIGyu','Platform','local','map','label','(unchanged)','repeat','40BQMaqL','665029TULaoZ','join','84248LEcZFz','\x20\x20\x20\x20•\x20','792iLjMgS','Menu\x20Name','638044aDKoNz','test','online','330612IQlNFI','showOnline','1678860lGfcpP','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20CSS:\x20','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','2033912RzXxgj','max','1281138MNrHIl','push'];a100_0x3b60=function(){return _0x3b3072;};return a100_0x3b60();}(function(_0x3a08d8,_0x353f8d){const _0x35feca=a100_0x1a83,_0x4ccdc1=_0x3a08d8();while(!![]){try{const _0x3e5d33=-parseInt(_0x35feca(0x177))/0x1*(-parseInt(_0x35feca(0x16b))/0x2)+-parseInt(_0x35feca(0x169))/0x3+-parseInt(_0x35feca(0x167))/0x4+-parseInt(_0x35feca(0x182))/0x5+-parseInt(_0x35feca(0x180))/0x6*(parseInt(_0x35feca(0x16f))/0x7)+parseInt(_0x35feca(0x179))/0x8*(parseInt(_0x35feca(0x17b))/0x9)+-parseInt(_0x35feca(0x176))/0xa*(-parseInt(_0x35feca(0x17d))/0xb);if(_0x3e5d33===_0x353f8d)break;else _0x4ccdc1['push'](_0x4ccdc1['shift']());}catch(_0x37977f){_0x4ccdc1['push'](_0x4ccdc1['shift']());}}}(a100_0x3b60,0x796df));function strWidth(_0x2d65d0){const _0x409d73=a100_0x1a83;let _0x126ee1=0x0;for(const _0x157a02 of _0x2d65d0){_0x126ee1+=/[\u4e00-\u9fa5]/[_0x409d73(0x17e)](_0x157a02)?0x2:0x1;}return _0x126ee1;}function padRight(_0x331db1,_0x5b7828){const _0xd0e919=strWidth(_0x331db1);return _0x331db1+'\x20'['repeat'](Math['max'](0x0,_0x5b7828-_0xd0e919));}function a100_0x1a83(_0x9edc56,_0x2b3a73){_0x9edc56=_0x9edc56-0x166;const _0x3b60e3=a100_0x3b60();let _0x1a837f=_0x3b60e3[_0x9edc56];return _0x1a837f;}export function renderCompareTable(_0x75ae68,_0x3a35c={}){const _0x24c2d=a100_0x1a83;if(_0x75ae68[_0x24c2d(0x16e)]===0x0)return'';const _0x44381f=_0x3a35c[_0x24c2d(0x181)]??!![],_0x33e602=Math[_0x24c2d(0x168)](0x1e,..._0x75ae68[_0x24c2d(0x172)](_0x1530f2=>strWidth(_0x1530f2['label']))),_0x443a54=0x4,_0x4d23f7=[],_0x12dc7c='\x20\x20'+padRight(_0x24c2d(0x17c),_0x33e602),_0x2e974b=padRight(_0x24c2d(0x16c),_0x443a54),_0x2655d4=_0x44381f?'\x20\x20'+padRight(_0x24c2d(0x170),_0x443a54):'';_0x4d23f7['push'](_0x12dc7c+'\x20\x20'+_0x2e974b+(_0x44381f?_0x2655d4:'')),_0x4d23f7['push']('\x20\x20'+'─'['repeat'](_0x33e602)+'\x20\x20'+'─'['repeat'](_0x443a54)+(_0x44381f?'\x20\x20'+'─'[_0x24c2d(0x175)](_0x443a54):''));for(const _0x57d71d of _0x75ae68){const _0x15f989=padRight(_0x57d71d[_0x24c2d(0x173)],_0x33e602),_0x5c7ce8=_0x57d71d[_0x24c2d(0x171)]?'✓':'✗',_0x21ee7e=padRight(_0x5c7ce8,_0x443a54);let _0x4dcbee='\x20\x20'+_0x15f989+'\x20\x20'+_0x21ee7e;if(_0x44381f){const _0x349bad=_0x57d71d[_0x24c2d(0x17f)]?'✓':'✗';_0x4dcbee+='\x20\x20'+padRight(_0x349bad,_0x443a54);}_0x4d23f7['push'](_0x4dcbee);}return _0x4d23f7[_0x24c2d(0x178)]('\x0a');}export function renderSyncSummary(_0x729f27,_0x4b7d6c){const _0x968122=a100_0x1a83;if(_0x729f27[_0x968122(0x16e)]===0x0)return _0x4b7d6c?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x968122(0x16d);const _0x4d7876=['\x20\x20'+_0x729f27[_0x968122(0x16e)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x4570e1 of _0x729f27){_0x4d7876[_0x968122(0x16a)](_0x968122(0x17a)+_0x4570e1[_0x968122(0x173)]+'\x20('+_0x4570e1['path']+')');}return _0x4d7876[_0x968122(0x178)]('\x0a');}export function renderUpdateSummary(_0x1ca122,_0x2b76e9){const _0x26a946=a100_0x1a83;if(_0x1ca122[_0x26a946(0x16e)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x243a73=['\x20\x20'+_0x1ca122[_0x26a946(0x16e)]+_0x26a946(0x166),'\x20\x20\x20\x20JS:\x20\x20'+(_0x2b76e9[0x0]??_0x26a946(0x174)),_0x26a946(0x184)+(_0x2b76e9[0x1]??_0x26a946(0x174)),'',_0x26a946(0x183)+_0x1ca122[_0x26a946(0x178)](',\x20')];return _0x243a73['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x4d40d8,_0x27861d){var _0x53fa75=a99_0x4278,_0x9580d7=_0x4d40d8();while(!![]){try{var _0x255f08=parseInt(_0x53fa75(0xf1))/0x1+parseInt(_0x53fa75(0xf2))/0x2+parseInt(_0x53fa75(0xef))/0x3*(parseInt(_0x53fa75(0xf4))/0x4)+-parseInt(_0x53fa75(0xee))/0x5+-parseInt(_0x53fa75(0xf3))/0x6+parseInt(_0x53fa75(0xf0))/0x7+parseInt(_0x53fa75(0xed))/0x8;if(_0x255f08===_0x27861d)break;else _0x9580d7['push'](_0x9580d7['shift']());}catch(_0x10f31c){_0x9580d7['push'](_0x9580d7['shift']());}}}(a99_0xc26b,0x25a6d));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a99_0xc26b(){var _0x498cf2=['113162NFFwjQ','727242NusECQ','158292AlJSvQ','463032dAijsZ','96565LONPKO','3EHxFOH','396109sHYXNs','84121RIkveT'];a99_0xc26b=function(){return _0x498cf2;};return a99_0xc26b();}export*from'../../../commands/menu/shared/compare-table.js';function a99_0x4278(_0xe3e63b,_0x2e6b80){_0xe3e63b=_0xe3e63b-0xed;var _0xc26b83=a99_0xc26b();var _0x427863=_0xc26b83[_0xe3e63b];return _0x427863;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x7cfbf3,_0x189e66){var _0x593e73=a101_0xb9c0,_0x4198cb=_0x7cfbf3();while(!![]){try{var _0x1888a5=-parseInt(_0x593e73(0x1d3))/0x1+parseInt(_0x593e73(0x1d9))/0x2*(-parseInt(_0x593e73(0x1d8))/0x3)+parseInt(_0x593e73(0x1d4))/0x4*(parseInt(_0x593e73(0x1dc))/0x5)+-parseInt(_0x593e73(0x1db))/0x6*(parseInt(_0x593e73(0x1d5))/0x7)+parseInt(_0x593e73(0x1da))/0x8*(-parseInt(_0x593e73(0x1d6))/0x9)+parseInt(_0x593e73(0x1d7))/0xa+parseInt(_0x593e73(0x1dd))/0xb;if(_0x1888a5===_0x189e66)break;else _0x4198cb['push'](_0x4198cb['shift']());}catch(_0x5d7214){_0x4198cb['push'](_0x4198cb['shift']());}}}(a101_0x5169,0x806eb));function a101_0x5169(){var _0xcbc7b2=['17595787wRdjDI','769657lccLgO','1835308HimGBT','182dcPddf','9HodJQS','5069110rVesQm','3kBOIMC','329168PDukWy','5867080TysykA','85770rYFtzw','5QxCFJf'];a101_0x5169=function(){return _0xcbc7b2;};return a101_0x5169();}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a101_0xb9c0(_0x113dad,_0x50e7b5){_0x113dad=_0x113dad-0x1d3;var _0x5169fb=a101_0x5169();var _0xb9c02f=_0x5169fb[_0x113dad];return _0xb9c02f;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x51d85d,_0x37dd7a){const _0x4e525b=a100_0x1e3b,_0x56256f=_0x51d85d();while(!![]){try{const _0x372bf0=-parseInt(_0x4e525b(0x162))/0x1+-parseInt(_0x4e525b(0x181))/0x2+-parseInt(_0x4e525b(0x17b))/0x3*(-parseInt(_0x4e525b(0x158))/0x4)+parseInt(_0x4e525b(0x17f))/0x5*(-parseInt(_0x4e525b(0x15b))/0x6)+-parseInt(_0x4e525b(0x16c))/0x7+parseInt(_0x4e525b(0x16a))/0x8+parseInt(_0x4e525b(0x16e))/0x9*(parseInt(_0x4e525b(0x178))/0xa);if(_0x372bf0===_0x37dd7a)break;else _0x56256f['push'](_0x56256f['shift']());}catch(_0x349fc5){_0x56256f['push'](_0x56256f['shift']());}}}(a100_0x519c,0x9d2e6));import a100_0x346521 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x757e3 from'ora';function a100_0x1e3b(_0x47c9a7,_0x3a1c6d){_0x47c9a7=_0x47c9a7-0x156;const _0x519c0f=a100_0x519c();let _0x1e3bee=_0x519c0f[_0x47c9a7];return _0x1e3bee;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a100_0x519c(){const _0x10ad0e=['trim','red','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','10UAJDrX','label','2022936AQetMj','\x20\x20Checking\x20JS\x20URL\x20reachability...','length','52uZDJQq','Cancelled.','CSS\x20URL\x20check\x20failed','1796430ZzxrOO','[already\x20on\x20platform]','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','cyan','succeed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','\x20\x20Checking\x20CSS\x20URL\x20reachability...','1035953UBjhYm','catch','has','filter','fail','CSS\x20URL\x20checked','isTTY','name','2953912CphWvT','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','2581026gvZIam','ExitPromptError','18KdGqBS','start','path','\x20\x20JS\x20URL:','cancelled','includes','[new]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','stdin','No\x20local\x20pages\x20found.','13428890JDXYZP','No\x20menus\x20selected.','error','139326IAjWbQ'];a100_0x519c=function(){return _0x10ad0e;};return a100_0x519c();}import{CliErrors}from'../../../errors.js';function onCancel(_0xc35d07){const _0x10ff40=a100_0x1e3b;return _0xc35d07[_0x10ff40(0x163)](_0x535563=>{const _0x1ba75a=_0x10ff40;if(_0x535563?.[_0x1ba75a(0x169)]===_0x1ba75a(0x16d))throw CliErrors[_0x1ba75a(0x172)](_0x1ba75a(0x159));throw _0x535563;});}export function startSpinner(_0x3f0174){const _0xa46867=a100_0x1e3b;return a100_0x757e3({'text':_0x3f0174,'color':_0xa46867(0x15e)})[_0xa46867(0x16f)]();}export function stopSpinner(_0x5b5609,_0x164f23,_0x74c210){const _0x25205d=a100_0x1e3b;_0x74c210?_0x5b5609[_0x25205d(0x15f)](_0x164f23):_0x5b5609[_0x25205d(0x166)](_0x164f23);}export async function askConfirm(_0x2e214b){return onCancel(confirm({'message':_0x2e214b,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3824b9){const _0x4fa4f9=a100_0x1e3b;while(!![]){const _0x71b323=await onCancel(input({'message':_0x4fa4f9(0x171),'default':_0x3824b9,'theme':{'prefix':''}}));if(_0x71b323['trim']()==='')throw CliErrors[_0x4fa4f9(0x172)](_0x4fa4f9(0x159));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x71b323[_0x4fa4f9(0x17c)]())){console[_0x4fa4f9(0x17a)](a100_0x346521[_0x4fa4f9(0x17d)](_0x4fa4f9(0x17e)));continue;}const _0x46a003=startSpinner(_0x4fa4f9(0x156));try{const _0x2281b9=await isUrlReachable(_0x71b323['trim']());stopSpinner(_0x46a003,'JS\x20URL\x20checked',_0x2281b9);if(!_0x2281b9){console[_0x4fa4f9(0x17a)](a100_0x346521[_0x4fa4f9(0x17d)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x71b323[_0x4fa4f9(0x17c)]();}catch(_0x1f60fd){stopSpinner(_0x46a003,'JS\x20URL\x20check\x20failed',![]);throw _0x1f60fd;}}}export async function askCssUrl(_0x238bbf){const _0x141467=a100_0x1e3b;while(!![]){const _0x5998ff=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x238bbf,'theme':{'prefix':''}}));if(_0x5998ff[_0x141467(0x17c)]()==='')throw CliErrors['cancelled'](_0x141467(0x159));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x5998ff[_0x141467(0x17c)]())){console[_0x141467(0x17a)](a100_0x346521[_0x141467(0x17d)](_0x141467(0x175)));continue;}const _0x16cbbe=startSpinner(_0x141467(0x161));try{const _0x1e8dda=await isUrlReachable(_0x5998ff[_0x141467(0x17c)]());stopSpinner(_0x16cbbe,_0x141467(0x167),_0x1e8dda);if(!_0x1e8dda){console[_0x141467(0x17a)](a100_0x346521[_0x141467(0x17d)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x5998ff['trim']();}catch(_0x52c1a8){stopSpinner(_0x16cbbe,_0x141467(0x15a),![]);throw _0x52c1a8;}}}export async function selectPages(_0x5c0b71,_0x2e8fcc,_0x1408de){const _0x194dcf=a100_0x1e3b,_0x216656=_0x5c0b71['map'](_0x318d95=>({'name':_0x318d95[_0x194dcf(0x180)]+'\x20\x20'+(_0x2e8fcc['has'](_0x318d95[_0x194dcf(0x170)])?a100_0x346521['gray'](_0x194dcf(0x15c)):a100_0x346521['green'](_0x194dcf(0x174))),'value':_0x318d95[_0x194dcf(0x180)],'checked':_0x1408de?_0x1408de[_0x194dcf(0x173)](_0x318d95[_0x194dcf(0x180)]):!_0x2e8fcc[_0x194dcf(0x164)](_0x318d95[_0x194dcf(0x170)])}));if(_0x216656[_0x194dcf(0x157)]===0x0)throw new Error(_0x194dcf(0x177));const _0x3ae620=await onCancel(checkbox({'message':_0x194dcf(0x160),'choices':_0x216656,'loop':![],'theme':{'prefix':''}}));if(_0x3ae620[_0x194dcf(0x157)]===0x0)throw new Error(_0x194dcf(0x179));return _0x5c0b71[_0x194dcf(0x165)](_0x211bdd=>_0x3ae620['includes'](_0x211bdd[_0x194dcf(0x180)]));}export function isInteractive(){const _0xec85cf=a100_0x1e3b;return process[_0xec85cf(0x176)][_0xec85cf(0x168)]===!![];}export function requireInteractive(){const _0x111680=a100_0x1e3b;if(!isInteractive())throw new Error(_0x111680(0x15d)+_0x111680(0x16b));}
1
+ (function(_0x202507,_0x3f8bdc){const _0x66f857=a102_0x2c10,_0x29fd33=_0x202507();while(!![]){try{const _0x557254=-parseInt(_0x66f857(0x203))/0x1+parseInt(_0x66f857(0x210))/0x2*(parseInt(_0x66f857(0x1f6))/0x3)+-parseInt(_0x66f857(0x209))/0x4*(parseInt(_0x66f857(0x1ea))/0x5)+-parseInt(_0x66f857(0x20c))/0x6*(parseInt(_0x66f857(0x1f2))/0x7)+-parseInt(_0x66f857(0x1ef))/0x8*(parseInt(_0x66f857(0x1ec))/0x9)+-parseInt(_0x66f857(0x20d))/0xa+parseInt(_0x66f857(0x1fd))/0xb;if(_0x557254===_0x3f8bdc)break;else _0x29fd33['push'](_0x29fd33['shift']());}catch(_0x16acb2){_0x29fd33['push'](_0x29fd33['shift']());}}}(a102_0x403d,0x8b86d));import a102_0x456dc8 from'chalk';function a102_0x403d(){const _0x1a0fc0=['1659gvCuii','No\x20local\x20pages\x20found.','filter','CSS\x20URL\x20check\x20failed','1410897OBbJKe','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','label','length','ExitPromptError','trim','path','28491375cHUXAU','fail','isTTY','includes','cancelled','map','8890CTCmmn','\x20\x20CSS\x20URL:','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','red','stdin','16VHSWpR','Cancelled.','No\x20menus\x20selected.','8574LHcNTv','6548370niXUhw','start','has','2OxnFet','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','[new]','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','cyan','test','519595teTmFd','name','62991WkWtcO','JS\x20URL\x20checked','green','1224wGbVeJ','error','JS\x20URL\x20check\x20failed'];a102_0x403d=function(){return _0x1a0fc0;};return a102_0x403d();}import{checkbox,input,confirm}from'@inquirer/prompts';import a102_0x348c14 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4576d1){return _0x4576d1['catch'](_0x1cd622=>{const _0x5a5958=a102_0x2c10;if(_0x1cd622?.[_0x5a5958(0x1eb)]===_0x5a5958(0x1fa))throw CliErrors[_0x5a5958(0x201)](_0x5a5958(0x20a));throw _0x1cd622;});}export function startSpinner(_0x5d0e57){const _0x26a181=a102_0x2c10;return a102_0x348c14({'text':_0x5d0e57,'color':_0x26a181(0x1e8)})[_0x26a181(0x20e)]();}export function stopSpinner(_0x48c649,_0x173c66,_0x2e456a){const _0x5b191c=a102_0x2c10;_0x2e456a?_0x48c649[_0x5b191c(0x206)](_0x173c66):_0x48c649[_0x5b191c(0x1fe)](_0x173c66);}export async function askConfirm(_0x5c54ee){return onCancel(confirm({'message':_0x5c54ee,'theme':{'prefix':''}}));}function a102_0x2c10(_0x3ecaa1,_0xb8158f){_0x3ecaa1=_0x3ecaa1-0x1e8;const _0x403d16=a102_0x403d();let _0x2c1032=_0x403d16[_0x3ecaa1];return _0x2c1032;}export async function askJsUrl(_0x2c22b9){const _0x2a59d5=a102_0x2c10;while(!![]){const _0x754dd0=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x2c22b9,'theme':{'prefix':''}}));if(_0x754dd0['trim']()==='')throw CliErrors[_0x2a59d5(0x201)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x754dd0['trim']())){console[_0x2a59d5(0x1f0)](a102_0x456dc8[_0x2a59d5(0x207)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x2dead0=startSpinner(_0x2a59d5(0x214));try{const _0x3df81f=await isUrlReachable(_0x754dd0[_0x2a59d5(0x1fb)]());stopSpinner(_0x2dead0,_0x2a59d5(0x1ed),_0x3df81f);if(!_0x3df81f){console[_0x2a59d5(0x1f0)](a102_0x456dc8['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x754dd0['trim']();}catch(_0x444463){stopSpinner(_0x2dead0,_0x2a59d5(0x1f1),![]);throw _0x444463;}}}export async function askCssUrl(_0x1e4593){const _0x3b2603=a102_0x2c10;while(!![]){const _0x2ccabd=await onCancel(input({'message':_0x3b2603(0x204),'default':_0x1e4593,'theme':{'prefix':''}}));if(_0x2ccabd[_0x3b2603(0x1fb)]()==='')throw CliErrors[_0x3b2603(0x201)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x3b2603(0x1e9)](_0x2ccabd['trim']())){console[_0x3b2603(0x1f0)](a102_0x456dc8[_0x3b2603(0x207)](_0x3b2603(0x215)));continue;}const _0x4a8d35=startSpinner(_0x3b2603(0x211));try{const _0x266d33=await isUrlReachable(_0x2ccabd['trim']());stopSpinner(_0x4a8d35,'CSS\x20URL\x20checked',_0x266d33);if(!_0x266d33){console['error'](a102_0x456dc8['red'](_0x3b2603(0x1f7)));continue;}return _0x2ccabd['trim']();}catch(_0x6f0902){stopSpinner(_0x4a8d35,_0x3b2603(0x1f5),![]);throw _0x6f0902;}}}export async function selectPages(_0x351b8f,_0x205869,_0x13480b){const _0x1b7ebf=a102_0x2c10,_0x2541fc=_0x351b8f[_0x1b7ebf(0x202)](_0x1e78fe=>({'name':_0x1e78fe[_0x1b7ebf(0x1f8)]+'\x20\x20'+(_0x205869[_0x1b7ebf(0x20f)](_0x1e78fe[_0x1b7ebf(0x1fc)])?a102_0x456dc8['gray']('[already\x20on\x20platform]'):a102_0x456dc8[_0x1b7ebf(0x1ee)](_0x1b7ebf(0x213))),'value':_0x1e78fe[_0x1b7ebf(0x1f8)],'checked':_0x13480b?_0x13480b[_0x1b7ebf(0x200)](_0x1e78fe[_0x1b7ebf(0x1f8)]):!_0x205869[_0x1b7ebf(0x20f)](_0x1e78fe[_0x1b7ebf(0x1fc)])}));if(_0x2541fc[_0x1b7ebf(0x1f9)]===0x0)throw new Error(_0x1b7ebf(0x1f3));const _0x404bec=await onCancel(checkbox({'message':_0x1b7ebf(0x212),'choices':_0x2541fc,'loop':![],'theme':{'prefix':''}}));if(_0x404bec[_0x1b7ebf(0x1f9)]===0x0)throw new Error(_0x1b7ebf(0x20b));return _0x351b8f[_0x1b7ebf(0x1f4)](_0x4b8011=>_0x404bec[_0x1b7ebf(0x200)](_0x4b8011[_0x1b7ebf(0x1f8)]));}export function isInteractive(){const _0x3fa447=a102_0x2c10;return process[_0x3fa447(0x208)][_0x3fa447(0x1ff)]===!![];}export function requireInteractive(){const _0x10f4bd=a102_0x2c10;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x10f4bd(0x205));}
@@ -1 +1 @@
1
- const a101_0x2b9158=a101_0x2eba;(function(_0x4a766b,_0x1b4235){const _0x5dbd71=a101_0x2eba,_0x3950cd=_0x4a766b();while(!![]){try{const _0x24b0f2=-parseInt(_0x5dbd71(0xbd))/0x1+-parseInt(_0x5dbd71(0xce))/0x2+-parseInt(_0x5dbd71(0xc6))/0x3+parseInt(_0x5dbd71(0xc7))/0x4*(parseInt(_0x5dbd71(0xcb))/0x5)+-parseInt(_0x5dbd71(0xcd))/0x6+-parseInt(_0x5dbd71(0xcf))/0x7*(-parseInt(_0x5dbd71(0xc2))/0x8)+parseInt(_0x5dbd71(0xd0))/0x9;if(_0x24b0f2===_0x1b4235)break;else _0x3950cd['push'](_0x3950cd['shift']());}catch(_0x34cdd){_0x3950cd['push'](_0x3950cd['shift']());}}}(a101_0x4990,0x20bf2));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a101_0x2b9158(0xc3));function a101_0x4990(){const _0x5617bc=['trim','863856vVpbeq','295078rQAsJh','128317EjzkXr','2202570yucooj','match','isDirectory','forEach','87913fnTUnN','slice','replace','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','path','104kzmkSj','src/pages','.tsx','endsWith','390114mpDnxB','276NkqYZi','index.tsx','join','push','11635utUIPQ'];a101_0x4990=function(){return _0x5617bc;};return a101_0x4990();}function a101_0x2eba(_0x1beef8,_0x99c124){_0x1beef8=_0x1beef8-0xbd;const _0x4990ad=a101_0x4990();let _0x2eba02=_0x4990ad[_0x1beef8];return _0x2eba02;}export function extractTitleFromComment(_0x1f7446){const _0x26eccd=a101_0x2b9158;try{const _0x364511=readFileSync(_0x1f7446,'utf-8'),_0x48b37b=_0x364511[_0x26eccd(0xd1)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x48b37b&&_0x48b37b[0x1]){const _0x240ecf=_0x48b37b[0x1],_0x336e36=_0x240ecf[_0x26eccd(0xd1)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x336e36&&_0x336e36[0x1])return _0x336e36[0x1][_0x26eccd(0xcc)]();}let _0xe60fe5=null;const _0x183d99=_0x364511[_0x26eccd(0xd1)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x183d99&&_0x183d99[0x1]&&(_0xe60fe5=_0x183d99[0x1]);if(!_0xe60fe5){const _0x1b3f71=_0x364511[_0x26eccd(0xd1)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1b3f71&&_0x1b3f71[0x1]&&(_0xe60fe5=_0x1b3f71[0x1]);}if(_0xe60fe5){const _0x90f5b5=new RegExp('\x5cb'+_0xe60fe5+_0x26eccd(0xc0)),_0x2188b9=_0x364511[_0x26eccd(0xd1)](_0x90f5b5);if(_0x2188b9&&_0x2188b9[0x1])return _0x2188b9[0x1];return _0xe60fe5;}return null;}catch(_0xd56a1){return null;}}export function getLocalPages(_0x44ed15=pagesDir,_0x2b36ae=pagesDir){const _0x2e22d2=a101_0x2b9158;let _0x596897=[];const _0x5a212a=readdirSync(_0x44ed15);return _0x5a212a[_0x2e22d2(0xd3)](_0x2f5dee=>{const _0x4dbafd=_0x2e22d2,_0x197c14=join(_0x44ed15,_0x2f5dee),_0xeed3dd=statSync(_0x197c14);if(_0xeed3dd&&_0xeed3dd[_0x4dbafd(0xd2)]())_0x596897=_0x596897['concat'](getLocalPages(_0x197c14,_0x2b36ae));else{if(_0x2f5dee['endsWith'](_0x4dbafd(0xc4))){let _0x408761=relative(_0x2b36ae,_0x197c14);_0x408761[_0x4dbafd(0xc5)](_0x4dbafd(0xc8))?_0x408761=_0x408761[_0x4dbafd(0xbf)](/index\.tsx$/,''):_0x408761=_0x408761[_0x4dbafd(0xbf)](/\.tsx$/,'');_0x408761[_0x4dbafd(0xc5)](sep)&&(_0x408761=_0x408761[_0x4dbafd(0xbe)](0x0,-0x1));const _0x19fadc=_0x408761['split'](sep)[_0x4dbafd(0xc9)]('/'),_0x556692=extractTitleFromComment(_0x197c14),_0x920a43=_0x556692||_0x19fadc;_0x596897[_0x4dbafd(0xca)]({'path':_0x19fadc['replaceAll']('$',':'),'label':_0x920a43});}}}),_0x596897['filter'](_0x2926c9=>_0x2926c9[_0x2e22d2(0xc1)]!=='');}
1
+ function a103_0x39aa(){const _0x8ef12e=['src/pages','1243630hxSayx','index.tsx','forEach','.tsx','match','764772fBIHDV','replace','24moIUAs','172HQOvCK','slice','endsWith','8751087gVwKcY','2658782vHFgAx','replaceAll','filter','utf-8','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','trim','9627CVrAAl','concat','844oeRZuv','isDirectory','374KfgUHW','8vqwnPJ','117895zcaQwS','cwd','17131640qDZPyd'];a103_0x39aa=function(){return _0x8ef12e;};return a103_0x39aa();}const a103_0x38c611=a103_0x593f;(function(_0x313798,_0x203898){const _0x570d8b=a103_0x593f,_0x5c6b3f=_0x313798();while(!![]){try{const _0x1e97eb=parseInt(_0x570d8b(0xff))/0x1+-parseInt(_0x570d8b(0xf7))/0x2*(parseInt(_0x570d8b(0xf5))/0x3)+-parseInt(_0x570d8b(0x107))/0x4*(parseInt(_0x570d8b(0xfb))/0x5)+parseInt(_0x570d8b(0x106))/0x6*(parseInt(_0x570d8b(0xef))/0x7)+parseInt(_0x570d8b(0xfa))/0x8*(parseInt(_0x570d8b(0xee))/0x9)+parseInt(_0x570d8b(0xfd))/0xa+parseInt(_0x570d8b(0xf9))/0xb*(-parseInt(_0x570d8b(0x104))/0xc);if(_0x1e97eb===_0x203898)break;else _0x5c6b3f['push'](_0x5c6b3f['shift']());}catch(_0x6dd4bf){_0x5c6b3f['push'](_0x5c6b3f['shift']());}}}(a103_0x39aa,0xdf054));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a103_0x593f(_0x302be8,_0x3e7008){_0x302be8=_0x302be8-0xed;const _0x39aa33=a103_0x39aa();let _0x593f5d=_0x39aa33[_0x302be8];return _0x593f5d;}const pagesDir=resolve(process[a103_0x38c611(0xfc)](),a103_0x38c611(0xfe));export function extractTitleFromComment(_0x5df3bd){const _0xaaf776=a103_0x38c611;try{const _0x347f69=readFileSync(_0x5df3bd,_0xaaf776(0xf2)),_0x2eaa96=_0x347f69[_0xaaf776(0x103)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x2eaa96&&_0x2eaa96[0x1]){const _0x1e60e4=_0x2eaa96[0x1],_0x1f8f39=_0x1e60e4[_0xaaf776(0x103)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x1f8f39&&_0x1f8f39[0x1])return _0x1f8f39[0x1][_0xaaf776(0xf4)]();}let _0x3d305f=null;const _0x4df462=_0x347f69[_0xaaf776(0x103)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4df462&&_0x4df462[0x1]&&(_0x3d305f=_0x4df462[0x1]);if(!_0x3d305f){const _0x117415=_0x347f69[_0xaaf776(0x103)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x117415&&_0x117415[0x1]&&(_0x3d305f=_0x117415[0x1]);}if(_0x3d305f){const _0x13e867=new RegExp('\x5cb'+_0x3d305f+_0xaaf776(0xf3)),_0x2d4fd2=_0x347f69[_0xaaf776(0x103)](_0x13e867);if(_0x2d4fd2&&_0x2d4fd2[0x1])return _0x2d4fd2[0x1];return _0x3d305f;}return null;}catch(_0x977452){return null;}}export function getLocalPages(_0xc8fbf9=pagesDir,_0x3ae193=pagesDir){const _0x3dc0b5=a103_0x38c611;let _0x2e84c9=[];const _0x217396=readdirSync(_0xc8fbf9);return _0x217396[_0x3dc0b5(0x101)](_0x4c026f=>{const _0x3ec64a=_0x3dc0b5,_0x5931ed=join(_0xc8fbf9,_0x4c026f),_0x5b495a=statSync(_0x5931ed);if(_0x5b495a&&_0x5b495a[_0x3ec64a(0xf8)]())_0x2e84c9=_0x2e84c9[_0x3ec64a(0xf6)](getLocalPages(_0x5931ed,_0x3ae193));else{if(_0x4c026f[_0x3ec64a(0xed)](_0x3ec64a(0x102))){let _0x4470e7=relative(_0x3ae193,_0x5931ed);_0x4470e7[_0x3ec64a(0xed)](_0x3ec64a(0x100))?_0x4470e7=_0x4470e7[_0x3ec64a(0x105)](/index\.tsx$/,''):_0x4470e7=_0x4470e7[_0x3ec64a(0x105)](/\.tsx$/,'');_0x4470e7[_0x3ec64a(0xed)](sep)&&(_0x4470e7=_0x4470e7[_0x3ec64a(0x108)](0x0,-0x1));const _0x36be26=_0x4470e7['split'](sep)['join']('/'),_0x22aefd=extractTitleFromComment(_0x5931ed),_0x239f19=_0x22aefd||_0x36be26;_0x2e84c9['push']({'path':_0x36be26[_0x3ec64a(0xf0)]('$',':'),'label':_0x239f19});}}}),_0x2e84c9[_0x3dc0b5(0xf1)](_0x18a1f5=>_0x18a1f5['path']!=='');}
@@ -1 +1 @@
1
- (function(_0x1f61f5,_0x9be3d){const _0x5906d8=a102_0x444d,_0x1522ee=_0x1f61f5();while(!![]){try{const _0x97b344=-parseInt(_0x5906d8(0x10f))/0x1*(-parseInt(_0x5906d8(0x10a))/0x2)+parseInt(_0x5906d8(0x11c))/0x3+parseInt(_0x5906d8(0x112))/0x4+-parseInt(_0x5906d8(0x118))/0x5*(parseInt(_0x5906d8(0x110))/0x6)+-parseInt(_0x5906d8(0x108))/0x7*(parseInt(_0x5906d8(0x11b))/0x8)+parseInt(_0x5906d8(0x114))/0x9*(-parseInt(_0x5906d8(0x116))/0xa)+-parseInt(_0x5906d8(0x10e))/0xb*(parseInt(_0x5906d8(0x106))/0xc);if(_0x97b344===_0x9be3d)break;else _0x1522ee['push'](_0x1522ee['shift']());}catch(_0xdd7c9e){_0x1522ee['push'](_0x1522ee['shift']());}}}(a102_0x4cbe,0x5c9ab));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';function a102_0x444d(_0x12ce38,_0x425ce9){_0x12ce38=_0x12ce38-0x106;const _0x4cbe3f=a102_0x4cbe();let _0x444d23=_0x4cbe3f[_0x12ce38];return _0x444d23;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x4687df){const _0x6c1c14=a102_0x444d,_0x4321a=[];return!isValidJsHttpsUrl(_0x4687df)&&_0x4321a['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x4321a[_0x6c1c14(0x120)]===0x0,'errors':_0x4321a};}export function validateCssUrl(_0x42d150){const _0x190d4f=a102_0x444d,_0x25700e=[];return!isValidCssHttpsUrl(_0x42d150)&&_0x25700e['push'](_0x190d4f(0x119)),{'ok':_0x25700e[_0x190d4f(0x120)]===0x0,'errors':_0x25700e};}export async function validateJsUrlReachable(_0x3ac1d3){const _0x666588=a102_0x444d,_0x389c14=validateJsUrl(_0x3ac1d3);if(!_0x389c14['ok'])return _0x389c14;const _0x48425a=await isUrlReachable(_0x3ac1d3);if(!_0x48425a)_0x389c14['errors'][_0x666588(0x10d)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x389c14[_0x666588(0x121)][_0x666588(0x120)]===0x0,'errors':_0x389c14[_0x666588(0x121)]};}export async function validateCssUrlReachable(_0x4b506c){const _0x45c264=a102_0x444d,_0x24da2d=validateCssUrl(_0x4b506c);if(!_0x24da2d['ok'])return _0x24da2d;const _0x37e513=await isUrlReachable(_0x4b506c);if(!_0x37e513)_0x24da2d[_0x45c264(0x121)][_0x45c264(0x10d)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x24da2d[_0x45c264(0x121)]['length']===0x0,'errors':_0x24da2d['errors']};}export function buildCompareRows(_0x107848,_0x488303){const _0x33c84f=a102_0x444d;return _0x107848[_0x33c84f(0x107)](_0x33dc05=>({'label':_0x33dc05[_0x33c84f(0x11a)],'path':_0x33dc05['path'],'local':!![],'online':_0x488303[_0x33c84f(0x11e)](_0x33dc05[_0x33c84f(0x115)])}));}export function filterNewPages(_0x4b06c9,_0x4d12a8,_0x1f66b0){const _0x2867e3=a102_0x444d;if(_0x1f66b0&&_0x1f66b0[_0x2867e3(0x120)]>0x0){const _0xd33327=new Set(_0x1f66b0[_0x2867e3(0x107)](_0x267599=>_0x267599[_0x2867e3(0x117)]())),_0x30ae82=_0x4b06c9[_0x2867e3(0x11f)](_0x4aeec0=>_0xd33327['has'](_0x4aeec0[_0x2867e3(0x11a)]));if(_0x30ae82['length']===0x0)throw new Error(_0x2867e3(0x111)+[..._0xd33327][_0x2867e3(0x109)](',\x20'));return _0x30ae82;}return _0x4b06c9['filter'](_0x452a4f=>!_0x4d12a8['has'](_0x452a4f[_0x2867e3(0x115)]));}export function filterPagesByLabels(_0x3cafb7,_0x2afc39){const _0x4d9237=a102_0x444d,_0x42cde5=[],_0x3642f4=[];for(const _0x33b5a2 of _0x2afc39){const _0x2c7415=_0x33b5a2['trim'](),_0x568bdf=_0x3cafb7['find'](_0x2801b9=>_0x2801b9['label']===_0x2c7415);if(_0x568bdf)_0x42cde5['push'](_0x568bdf);else _0x3642f4[_0x4d9237(0x10d)](_0x33b5a2);}return{'matched':_0x42cde5,'unmatched':_0x3642f4};}export async function doCreateMenus(_0x5602e4,_0x535a29,_0x3442ef,_0x14cb94){const _0x547f50=a102_0x444d,_0x1e07ae=await createMenus(_0x5602e4,_0x535a29,_0x3442ef,_0x14cb94);return{'created':_0x1e07ae[_0x547f50(0x120)],'failed':0x0,'labels':_0x3442ef[_0x547f50(0x107)](_0x2a6840=>_0x2a6840[_0x547f50(0x11a)]),'menus':_0x1e07ae};}export function filterMenusWithResources(_0x2991ee){const _0x13012f=a102_0x444d;return _0x2991ee[_0x13012f(0x11f)](_0x32b4ce=>_0x32b4ce['resources'][_0x13012f(0x120)]>0x0);}export async function doUpdateCdnUrls(_0x478f30,_0x4c7208,_0x48b785,_0x22f0d8){const _0x396437=a102_0x444d,_0x499dfe=_0x48b785[_0x396437(0x11f)](_0x10b5a0=>_0x10b5a0[_0x396437(0x10b)][_0x396437(0x120)]>0x0),_0x4dd4a5=await Promise['allSettled'](_0x499dfe['map'](_0x33328d=>updateMenuCdnUrl(_0x478f30,_0x4c7208,{'id':_0x33328d['id'],'label':_0x33328d[_0x396437(0x11a)],'path':_0x33328d[_0x396437(0x115)],'resources':_0x22f0d8,'extend':_0x33328d[_0x396437(0x10c)]??null}))),_0x29b6d2=_0x4dd4a5['filter'](_0x2598f4=>_0x2598f4['status']==='fulfilled')[_0x396437(0x107)](_0x318b08=>_0x318b08[_0x396437(0x11d)]),_0x5869cc=_0x4dd4a5[_0x396437(0x11f)](_0x28f69a=>_0x28f69a[_0x396437(0x113)]===_0x396437(0x122))[_0x396437(0x120)];return{'updated':_0x29b6d2[_0x396437(0x120)],'failed':_0x5869cc,'menus':_0x29b6d2};}export async function fetchMenuData(_0x263c7a,_0xce9d1){const _0x47e5d2=a102_0x444d,_0x7cae85=getLocalPages(),_0x22f5c4=await getOnlineMenuList(_0x263c7a,_0xce9d1),_0x48f8aa=new Set(_0x22f5c4['map'](_0x19f538=>_0x19f538[_0x47e5d2(0x115)]));return{'localPages':_0x7cae85,'onlineMenuList':_0x22f5c4,'onlinePaths':_0x48f8aa};}export async function fetchOnlineMenuList(_0x4f4d99,_0x3cea51){return getOnlineMenuList(_0x4f4d99,_0x3cea51);}function a102_0x4cbe(){const _0x42b136=['push','67111LJHJpX','1elXdjz','2244RgcarB','No\x20local\x20pages\x20matched\x20labels:\x20','1840444wvYHHx','status','63OGHUnR','path','496320EITTEh','trim','1615QhxoJW','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','label','8ybFdIP','520422iUKAOa','value','has','filter','length','errors','rejected','636PEWayx','map','812714YCgKNN','join','1306806tcAcsa','resources','extend'];a102_0x4cbe=function(){return _0x42b136;};return a102_0x4cbe();}
1
+ function a104_0x536d(_0x188f07,_0x403f17){_0x188f07=_0x188f07-0x1d2;const _0x2ef4fa=a104_0x2ef4();let _0x536d1e=_0x2ef4fa[_0x188f07];return _0x536d1e;}(function(_0x5aa6e3,_0x6e5f30){const _0x201504=a104_0x536d,_0x1ffcba=_0x5aa6e3();while(!![]){try{const _0x124802=-parseInt(_0x201504(0x1d8))/0x1+parseInt(_0x201504(0x1e3))/0x2+parseInt(_0x201504(0x1ec))/0x3+-parseInt(_0x201504(0x1dc))/0x4+parseInt(_0x201504(0x1ef))/0x5+parseInt(_0x201504(0x1d2))/0x6*(parseInt(_0x201504(0x1ee))/0x7)+-parseInt(_0x201504(0x1da))/0x8;if(_0x124802===_0x6e5f30)break;else _0x1ffcba['push'](_0x1ffcba['shift']());}catch(_0x123f5f){_0x1ffcba['push'](_0x1ffcba['shift']());}}}(a104_0x2ef4,0xe30cd));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x49ed5f){const _0x35b7b9=a104_0x536d,_0x3381aa=[];return!isValidJsHttpsUrl(_0x49ed5f)&&_0x3381aa[_0x35b7b9(0x1d3)](_0x35b7b9(0x1e9)),{'ok':_0x3381aa['length']===0x0,'errors':_0x3381aa};}export function validateCssUrl(_0x48dfb4){const _0x2aea6c=a104_0x536d,_0xf0c39a=[];return!isValidCssHttpsUrl(_0x48dfb4)&&_0xf0c39a[_0x2aea6c(0x1d3)](_0x2aea6c(0x1e6)),{'ok':_0xf0c39a['length']===0x0,'errors':_0xf0c39a};}export async function validateJsUrlReachable(_0x3fb99c){const _0x531b6e=a104_0x536d,_0x1fdc2f=validateJsUrl(_0x3fb99c);if(!_0x1fdc2f['ok'])return _0x1fdc2f;const _0x1899fd=await isUrlReachable(_0x3fb99c);if(!_0x1899fd)_0x1fdc2f[_0x531b6e(0x1d5)][_0x531b6e(0x1d3)](_0x531b6e(0x1e2));return{'ok':_0x1fdc2f['errors'][_0x531b6e(0x1d4)]===0x0,'errors':_0x1fdc2f[_0x531b6e(0x1d5)]};}export async function validateCssUrlReachable(_0x2bf7cc){const _0x2e4293=a104_0x536d,_0x35b84f=validateCssUrl(_0x2bf7cc);if(!_0x35b84f['ok'])return _0x35b84f;const _0x156055=await isUrlReachable(_0x2bf7cc);if(!_0x156055)_0x35b84f['errors']['push'](_0x2e4293(0x1e5));return{'ok':_0x35b84f[_0x2e4293(0x1d5)][_0x2e4293(0x1d4)]===0x0,'errors':_0x35b84f[_0x2e4293(0x1d5)]};}export function buildCompareRows(_0x13d3e8,_0x23b307){const _0x5559ce=a104_0x536d;return _0x13d3e8[_0x5559ce(0x1d7)](_0x47265b=>({'label':_0x47265b[_0x5559ce(0x1e8)],'path':_0x47265b[_0x5559ce(0x1d9)],'local':!![],'online':_0x23b307[_0x5559ce(0x1e7)](_0x47265b[_0x5559ce(0x1d9)])}));}function a104_0x2ef4(){const _0x165a39=['9482944GoSvIj','join','2730856UGRdBC','allSettled','find','resources','filter','value','JS\x20URL\x20is\x20unreachable','1855560obPsQI','extend','CSS\x20URL\x20is\x20unreachable','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','has','label','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','fulfilled','4305993wCGoSa','No\x20local\x20pages\x20matched\x20labels:\x20','826PapJOh','7732165DHOsvC','35844AwEPVA','push','length','errors','status','map','1816397eZdxWH','path'];a104_0x2ef4=function(){return _0x165a39;};return a104_0x2ef4();}export function filterNewPages(_0x59b0b9,_0x51ef63,_0x4cde0e){const _0x5aa5dd=a104_0x536d;if(_0x4cde0e&&_0x4cde0e[_0x5aa5dd(0x1d4)]>0x0){const _0x27b136=new Set(_0x4cde0e[_0x5aa5dd(0x1d7)](_0x2798ef=>_0x2798ef['trim']())),_0x7da48d=_0x59b0b9[_0x5aa5dd(0x1e0)](_0x1295d5=>_0x27b136[_0x5aa5dd(0x1e7)](_0x1295d5['label']));if(_0x7da48d['length']===0x0)throw new Error(_0x5aa5dd(0x1ed)+[..._0x27b136][_0x5aa5dd(0x1db)](',\x20'));return _0x7da48d;}return _0x59b0b9['filter'](_0x5b03e7=>!_0x51ef63['has'](_0x5b03e7[_0x5aa5dd(0x1d9)]));}export function filterPagesByLabels(_0x32c26d,_0x384242){const _0x4a59c6=a104_0x536d,_0x35c5b1=[],_0x5abfd0=[];for(const _0x52c9d6 of _0x384242){const _0x1395bb=_0x52c9d6[_0x4a59c6(0x1ea)](),_0x4c4151=_0x32c26d[_0x4a59c6(0x1de)](_0x52a440=>_0x52a440[_0x4a59c6(0x1e8)]===_0x1395bb);if(_0x4c4151)_0x35c5b1[_0x4a59c6(0x1d3)](_0x4c4151);else _0x5abfd0['push'](_0x52c9d6);}return{'matched':_0x35c5b1,'unmatched':_0x5abfd0};}export async function doCreateMenus(_0x50674d,_0x415398,_0x3c32b3,_0xff28ec){const _0x29e875=a104_0x536d,_0x22a59d=await createMenus(_0x50674d,_0x415398,_0x3c32b3,_0xff28ec);return{'created':_0x22a59d[_0x29e875(0x1d4)],'failed':0x0,'labels':_0x3c32b3[_0x29e875(0x1d7)](_0x2c2f5d=>_0x2c2f5d['label']),'menus':_0x22a59d};}export function filterMenusWithResources(_0xcbefa7){const _0xf57edc=a104_0x536d;return _0xcbefa7[_0xf57edc(0x1e0)](_0x4de544=>_0x4de544[_0xf57edc(0x1df)][_0xf57edc(0x1d4)]>0x0);}export async function doUpdateCdnUrls(_0x3d45f2,_0x19c839,_0x2193c6,_0x2c8d6b){const _0x381a4a=a104_0x536d,_0x5c622e=_0x2193c6[_0x381a4a(0x1e0)](_0x13e01d=>_0x13e01d[_0x381a4a(0x1df)]['length']>0x0),_0x4f8a59=await Promise[_0x381a4a(0x1dd)](_0x5c622e[_0x381a4a(0x1d7)](_0x506593=>updateMenuCdnUrl(_0x3d45f2,_0x19c839,{'id':_0x506593['id'],'label':_0x506593[_0x381a4a(0x1e8)],'path':_0x506593[_0x381a4a(0x1d9)],'resources':_0x2c8d6b,'extend':_0x506593[_0x381a4a(0x1e4)]??null}))),_0x3b4548=_0x4f8a59['filter'](_0x5c3f6e=>_0x5c3f6e['status']===_0x381a4a(0x1eb))[_0x381a4a(0x1d7)](_0xd921e9=>_0xd921e9[_0x381a4a(0x1e1)]),_0x1d90d4=_0x4f8a59[_0x381a4a(0x1e0)](_0x32658a=>_0x32658a[_0x381a4a(0x1d6)]==='rejected')[_0x381a4a(0x1d4)];return{'updated':_0x3b4548[_0x381a4a(0x1d4)],'failed':_0x1d90d4,'menus':_0x3b4548};}export async function fetchMenuData(_0x217ec0,_0x50e18d){const _0x16d62e=a104_0x536d,_0x4794c3=getLocalPages(),_0x3b504e=await getOnlineMenuList(_0x217ec0,_0x50e18d),_0x2ee9f1=new Set(_0x3b504e[_0x16d62e(0x1d7)](_0x1b2c3d=>_0x1b2c3d[_0x16d62e(0x1d9)]));return{'localPages':_0x4794c3,'onlineMenuList':_0x3b504e,'onlinePaths':_0x2ee9f1};}export async function fetchOnlineMenuList(_0x132987,_0x4e4395){return getOnlineMenuList(_0x132987,_0x4e4395);}
@@ -1 +1 @@
1
- (function(_0x31f83c,_0x58870e){const _0x40c153=a103_0x2714,_0x4a487f=_0x31f83c();while(!![]){try{const _0x1c3fd2=-parseInt(_0x40c153(0x1d7))/0x1*(-parseInt(_0x40c153(0x1ca))/0x2)+parseInt(_0x40c153(0x1d3))/0x3+parseInt(_0x40c153(0x1db))/0x4*(parseInt(_0x40c153(0x1c0))/0x5)+-parseInt(_0x40c153(0x1df))/0x6*(-parseInt(_0x40c153(0x1d4))/0x7)+parseInt(_0x40c153(0x1cc))/0x8+-parseInt(_0x40c153(0x1be))/0x9*(parseInt(_0x40c153(0x1d5))/0xa)+-parseInt(_0x40c153(0x1cf))/0xb;if(_0x1c3fd2===_0x58870e)break;else _0x4a487f['push'](_0x4a487f['shift']());}catch(_0x43e9f1){_0x4a487f['push'](_0x4a487f['shift']());}}}(a103_0x4d1c,0xb5ccc));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';function a103_0x4d1c(){const _0x1962c1=['9CyyFHH','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','30sJTwOv','import','Updating\x20menu\x20asset\x20links:\x20','isArray','children','string','resources','update-menu-cdn-url','create-menu','get-online-menu-list','44426QjpSoq','Creating\x20menu:\x20','8699704eAcaOR','Menu\x20assets\x20synced:\x20','Menu\x20created\x20successfully:\x20','44600710CfYOZB','Create\x20menu\x20\x22','info','Server\x20returned\x20empty\x20menu\x20list','2343153zHTKVS','287nEMoeZ','1583180phsVCX','label','39DUGlFk','Start\x20batch\x20menu\x20creation,\x20total\x20','\x20online\x20menus\x20successfully','length','736432PCtldE','map','extend','create-menus','163626Pahvop','procode','path','Update\x20menu\x20assets\x20\x22','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','stringify'];a103_0x4d1c=function(){return _0x1962c1;};return a103_0x4d1c();}function a103_0x2714(_0x1816da,_0x1cf60b){_0x1816da=_0x1816da-0x1bb;const _0x4d1c20=a103_0x4d1c();let _0x2714c2=_0x4d1c20[_0x1816da];return _0x2714c2;}export async function getOnlineMenuList(_0x3474a0,_0x418633){const _0xffc0aa=a103_0x2714,_0x1ccad3=getEnv();logger[_0xffc0aa(0x1d1)](_0xffc0aa(0x1c9),isProduction(_0x1ccad3)?_0xffc0aa(0x1bf)+_0x3474a0+')':_0xffc0aa(0x1bc)+_0x3474a0+')');const _0x267a27=await getMenuTree(_0x3474a0,_0x418633);if(!_0x267a27)return logger[_0xffc0aa(0x1d1)](_0xffc0aa(0x1c9),_0xffc0aa(0x1d2)),[];return logger[_0xffc0aa(0x1d1)](_0xffc0aa(0x1c9),'Fetched\x20'+_0x267a27[_0xffc0aa(0x1da)]+_0xffc0aa(0x1d9)),_0x267a27[_0xffc0aa(0x1dc)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x438d35){const _0xdbd20a=a103_0x2714;let _0x173a56=[];try{const _0x167eeb=_0x438d35[_0xdbd20a(0x1dd)]?.[_0xdbd20a(0x1c6)];if(typeof _0x167eeb===_0xdbd20a(0x1c5)){const _0xe49170=JSON['parse'](_0x167eeb);if(Array[_0xdbd20a(0x1c3)](_0xe49170))_0x173a56=_0xe49170['map'](String);}else Array[_0xdbd20a(0x1c3)](_0x167eeb)&&(_0x173a56=_0x167eeb[_0xdbd20a(0x1dc)](String));}catch{}const _0x27527b=[{'id':_0x438d35['id'],'path':_0x438d35[_0xdbd20a(0x1e1)],'label':_0x438d35[_0xdbd20a(0x1d6)],'resources':_0x173a56,'extend':_0x438d35[_0xdbd20a(0x1dd)]??null}];if(_0x438d35['children']&&_0x438d35[_0xdbd20a(0x1c4)][_0xdbd20a(0x1da)]>0x0)for(const _0x42ea32 of _0x438d35[_0xdbd20a(0x1c4)]){_0x27527b['push'](...flattenMenuItem(_0x42ea32));}return _0x27527b;}export async function createMenu(_0x272cf5,_0x12b63f,_0x3c3a04){const _0x23affc=a103_0x2714;logger[_0x23affc(0x1d1)](_0x23affc(0x1c8),_0x23affc(0x1cb)+_0x3c3a04[_0x23affc(0x1d6)]+'\x20('+_0x3c3a04['path']+')');const _0xa50709={'appCode':_0x272cf5,'type':_0x23affc(0x1e0),'sort':0x0,'extend':{'loadScriptMode':_0x23affc(0x1c1),'resources':_0x3c3a04[_0x23affc(0x1c6)]?JSON[_0x23affc(0x1bd)](_0x3c3a04['resources']):undefined},..._0x3c3a04},_0x2c6bd0=await createMenuRecord(_0xa50709,_0x12b63f,_0x23affc(0x1d0)+_0x3c3a04[_0x23affc(0x1d6)]+'\x22');return logger[_0x23affc(0x1d1)](_0x23affc(0x1c8),_0x23affc(0x1ce)+_0x3c3a04[_0x23affc(0x1d6)]),_0x2c6bd0;}async function createSingleMenu(_0x4106d7,_0x3467ca,_0x575374,_0x1e6809){const _0x19faad=a103_0x2714,_0x5c554a={'appCode':_0x4106d7,'type':_0x19faad(0x1e0),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x1e6809?JSON[_0x19faad(0x1bd)](_0x1e6809):undefined},'label':_0x575374[_0x19faad(0x1d6)],'path':_0x575374['path']},_0x441ce2=await createMenuRecord(_0x5c554a,_0x3467ca,'Create\x20menu\x20\x22'+_0x575374[_0x19faad(0x1d6)]+'\x22');return logger[_0x19faad(0x1d1)](_0x19faad(0x1c8),_0x19faad(0x1ce)+_0x575374[_0x19faad(0x1d6)]),_0x441ce2;}export async function createMenus(_0x18267e,_0x51a047,_0x43f77d,_0x222391){const _0x3e1ba3=a103_0x2714;logger['info'](_0x3e1ba3(0x1de),_0x3e1ba3(0x1d8)+_0x43f77d['length']);const _0x15940d=await Promise['all'](_0x43f77d[_0x3e1ba3(0x1dc)](_0x4f885b=>createSingleMenu(_0x18267e,_0x51a047,_0x4f885b,_0x222391)));return logger[_0x3e1ba3(0x1d1)](_0x3e1ba3(0x1de),'Batch\x20menu\x20creation\x20completed,\x20total\x20'+_0x43f77d[_0x3e1ba3(0x1da)]),_0x15940d;}export async function updateMenuCdnUrl(_0x4002b8,_0x150d6b,_0x246be9){const _0x218a3b=a103_0x2714;logger['info'](_0x218a3b(0x1c7),_0x218a3b(0x1c2)+_0x246be9[_0x218a3b(0x1d6)]+'\x20('+_0x246be9[_0x218a3b(0x1e1)]+')');const _0xc70de9={'id':_0x246be9['id'],'appCode':_0x4002b8,'extend':{..._0x246be9[_0x218a3b(0x1dd)]??{},'loadScriptMode':'import','resources':_0x246be9[_0x218a3b(0x1c6)]?JSON[_0x218a3b(0x1bd)](_0x246be9[_0x218a3b(0x1c6)]):undefined}},_0x9060fc=await updateMenuRecord(_0xc70de9,_0x150d6b,_0x218a3b(0x1bb)+_0x246be9[_0x218a3b(0x1d6)]+'\x22');return logger[_0x218a3b(0x1d1)](_0x218a3b(0x1c7),_0x218a3b(0x1cd)+_0x246be9['label'],undefined),_0x9060fc;}
1
+ (function(_0x159227,_0x5bdddc){const _0x1ef11d=a105_0x3c27,_0x36adc5=_0x159227();while(!![]){try{const _0x2af9cd=parseInt(_0x1ef11d(0x123))/0x1*(parseInt(_0x1ef11d(0x120))/0x2)+-parseInt(_0x1ef11d(0x131))/0x3+parseInt(_0x1ef11d(0x11d))/0x4+-parseInt(_0x1ef11d(0x126))/0x5*(parseInt(_0x1ef11d(0x130))/0x6)+-parseInt(_0x1ef11d(0x13c))/0x7*(-parseInt(_0x1ef11d(0x12c))/0x8)+-parseInt(_0x1ef11d(0x11f))/0x9+parseInt(_0x1ef11d(0x137))/0xa*(parseInt(_0x1ef11d(0x140))/0xb);if(_0x2af9cd===_0x5bdddc)break;else _0x36adc5['push'](_0x36adc5['shift']());}catch(_0x1df1cd){_0x36adc5['push'](_0x36adc5['shift']());}}}(a105_0x348c,0x6c7ed));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x555931,_0x42a592){const _0x24a4bf=a105_0x3c27,_0x4edc75=getEnv();logger['info'](_0x24a4bf(0x13a),isProduction(_0x4edc75)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x555931+')':_0x24a4bf(0x133)+_0x555931+')');const _0x3877ca=await getMenuTree(_0x555931,_0x42a592);if(!_0x3877ca)return logger[_0x24a4bf(0x11e)](_0x24a4bf(0x13a),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x24a4bf(0x11e)](_0x24a4bf(0x13a),'Fetched\x20'+_0x3877ca['length']+_0x24a4bf(0x138)),_0x3877ca[_0x24a4bf(0x135)](flattenMenuItem)[_0x24a4bf(0x12e)]();}function a105_0x3c27(_0x43152a,_0x13fbcf){_0x43152a=_0x43152a-0x11b;const _0x348c96=a105_0x348c();let _0x3c2776=_0x348c96[_0x43152a];return _0x3c2776;}function a105_0x348c(){const _0xeb9799=['21SFVAwW','Update\x20menu\x20assets\x20\x22','Creating\x20menu:\x20','825290WIZnon','Create\x20menu\x20\x22','Start\x20batch\x20menu\x20creation,\x20total\x20','push','create-menu','procode','6298648xfHgJg','path','flat','children','24OSIWUe','1631178CMrGFw','length','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','resources','map','import','2980NPzQJs','\x20online\x20menus\x20successfully','parse','get-online-menu-list','isArray','7JjrPss','update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20','create-menus','7271ffePLA','extend','Batch\x20menu\x20creation\x20completed,\x20total\x20','label','3110556lBljnZ','info','6651891pBGzed','59572HIZVOK','Menu\x20created\x20successfully:\x20','string'];a105_0x348c=function(){return _0xeb9799;};return a105_0x348c();}function flattenMenuItem(_0x20cc1e){const _0x2d2b00=a105_0x3c27;let _0x429d15=[];try{const _0x49ce2d=_0x20cc1e[_0x2d2b00(0x141)]?.[_0x2d2b00(0x134)];if(typeof _0x49ce2d===_0x2d2b00(0x122)){const _0x584ff6=JSON[_0x2d2b00(0x139)](_0x49ce2d);if(Array[_0x2d2b00(0x13b)](_0x584ff6))_0x429d15=_0x584ff6[_0x2d2b00(0x135)](String);}else Array['isArray'](_0x49ce2d)&&(_0x429d15=_0x49ce2d['map'](String));}catch{}const _0x30ea5f=[{'id':_0x20cc1e['id'],'path':_0x20cc1e[_0x2d2b00(0x12d)],'label':_0x20cc1e[_0x2d2b00(0x11c)],'resources':_0x429d15,'extend':_0x20cc1e[_0x2d2b00(0x141)]??null}];if(_0x20cc1e[_0x2d2b00(0x12f)]&&_0x20cc1e[_0x2d2b00(0x12f)][_0x2d2b00(0x132)]>0x0)for(const _0x19d507 of _0x20cc1e[_0x2d2b00(0x12f)]){_0x30ea5f[_0x2d2b00(0x129)](...flattenMenuItem(_0x19d507));}return _0x30ea5f;}export async function createMenu(_0xc61c26,_0x4a0f3e,_0x24ea2f){const _0x4f1b6a=a105_0x3c27;logger['info'](_0x4f1b6a(0x12a),_0x4f1b6a(0x125)+_0x24ea2f[_0x4f1b6a(0x11c)]+'\x20('+_0x24ea2f['path']+')');const _0x3891f1={'appCode':_0xc61c26,'type':_0x4f1b6a(0x12b),'sort':0x0,'extend':{'loadScriptMode':_0x4f1b6a(0x136),'resources':_0x24ea2f[_0x4f1b6a(0x134)]?JSON['stringify'](_0x24ea2f[_0x4f1b6a(0x134)]):undefined},..._0x24ea2f},_0x4767ea=await createMenuRecord(_0x3891f1,_0x4a0f3e,'Create\x20menu\x20\x22'+_0x24ea2f[_0x4f1b6a(0x11c)]+'\x22');return logger[_0x4f1b6a(0x11e)](_0x4f1b6a(0x12a),_0x4f1b6a(0x121)+_0x24ea2f['label']),_0x4767ea;}async function createSingleMenu(_0x5cbcbb,_0x74f0d9,_0x3c2e7f,_0x3f0c0f){const _0x53adec=a105_0x3c27,_0x1e7955={'appCode':_0x5cbcbb,'type':_0x53adec(0x12b),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x3f0c0f?JSON['stringify'](_0x3f0c0f):undefined},'label':_0x3c2e7f['label'],'path':_0x3c2e7f['path']},_0x3fbbdb=await createMenuRecord(_0x1e7955,_0x74f0d9,_0x53adec(0x127)+_0x3c2e7f[_0x53adec(0x11c)]+'\x22');return logger[_0x53adec(0x11e)]('create-menu',_0x53adec(0x121)+_0x3c2e7f[_0x53adec(0x11c)]),_0x3fbbdb;}export async function createMenus(_0x438799,_0x381c8b,_0x15064e,_0x4b4170){const _0x5188e8=a105_0x3c27;logger['info'](_0x5188e8(0x13f),_0x5188e8(0x128)+_0x15064e[_0x5188e8(0x132)]);const _0x2a4bca=await Promise['all'](_0x15064e['map'](_0x5e20b7=>createSingleMenu(_0x438799,_0x381c8b,_0x5e20b7,_0x4b4170)));return logger['info'](_0x5188e8(0x13f),_0x5188e8(0x11b)+_0x15064e[_0x5188e8(0x132)]),_0x2a4bca;}export async function updateMenuCdnUrl(_0x45de4c,_0x52e778,_0x5731c5){const _0x496ea8=a105_0x3c27;logger[_0x496ea8(0x11e)](_0x496ea8(0x13d),_0x496ea8(0x13e)+_0x5731c5[_0x496ea8(0x11c)]+'\x20('+_0x5731c5[_0x496ea8(0x12d)]+')');const _0x496997={'id':_0x5731c5['id'],'appCode':_0x45de4c,'extend':{..._0x5731c5[_0x496ea8(0x141)]??{},'loadScriptMode':_0x496ea8(0x136),'resources':_0x5731c5[_0x496ea8(0x134)]?JSON['stringify'](_0x5731c5[_0x496ea8(0x134)]):undefined}},_0x21f267=await updateMenuRecord(_0x496997,_0x52e778,_0x496ea8(0x124)+_0x5731c5['label']+'\x22');return logger[_0x496ea8(0x11e)](_0x496ea8(0x13d),'Menu\x20assets\x20synced:\x20'+_0x5731c5[_0x496ea8(0x11c)],undefined),_0x21f267;}
@@ -1 +1 @@
1
- (function(_0x1dcf5b,_0x49871c){const _0x42c5af=a104_0x501c,_0x4f4c4d=_0x1dcf5b();while(!![]){try{const _0x1176a1=-parseInt(_0x42c5af(0x110))/0x1*(-parseInt(_0x42c5af(0x11e))/0x2)+-parseInt(_0x42c5af(0x120))/0x3*(parseInt(_0x42c5af(0x125))/0x4)+-parseInt(_0x42c5af(0x127))/0x5+-parseInt(_0x42c5af(0x13a))/0x6*(-parseInt(_0x42c5af(0x12e))/0x7)+parseInt(_0x42c5af(0x12a))/0x8*(parseInt(_0x42c5af(0x123))/0x9)+-parseInt(_0x42c5af(0x12d))/0xa+-parseInt(_0x42c5af(0x118))/0xb;if(_0x1176a1===_0x49871c)break;else _0x4f4c4d['push'](_0x4f4c4d['shift']());}catch(_0x20e20f){_0x4f4c4d['push'](_0x4f4c4d['shift']());}}}(a104_0x468d,0x835ed));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a104_0x501c(_0xcb8f37,_0x1730ae){_0xcb8f37=_0xcb8f37-0x110;const _0x468d67=a104_0x468d();let _0x501cec=_0x468d67[_0xcb8f37];return _0x501cec;}function a104_0x468d(){const _0x43e1da=['JS\x20URL\x20is\x20unreachable:\x20','No\x20local\x20pages\x20matched\x20labels:\x20','has','push','--params.','3776289mGSDDg','stdin','map','setLogPath','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','message','44MlijhK','Menu\x20sync\x20completed','67272VXfRyt','jsUrl','concat','3627wemqIJ','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','60tLkemq','readableEnded','3182240kocGEk','split','join','19088KKYJBJ','string','startsWith','4146800kUeeam','255962TTmIRQ','path','data','isArray','pages','filter','cssUrl','CSS\x20URL\x20is\x20unreachable:\x20','object','\x0a\x20\x20Available\x20local\x20pages:\x20','info','label','114pHtXFl','trim','menu-sync','27844aRZvgm','length','Invalid\x20--params:\x20'];a104_0x468d=function(){return _0x43e1da;};return a104_0x468d();}function validateParams(_0x3e63c6){const _0x482735=a104_0x501c,_0x40a860=[];return _0x3e63c6['jsUrl']&&!isValidJsHttpsUrl(_0x3e63c6[_0x482735(0x121)])&&_0x40a860[_0x482735(0x116)]({'field':_0x482735(0x121),'message':_0x482735(0x11c)}),_0x3e63c6['cssUrl']&&!isValidCssHttpsUrl(_0x3e63c6[_0x482735(0x134)])&&_0x40a860[_0x482735(0x116)]({'field':_0x482735(0x134),'message':_0x482735(0x124)}),_0x40a860;}export async function runMenuSyncCore(_0x2dbeec,_0x24693b,_0x37ee6e=[],_0x3aa3a4){const _0x283138=a104_0x501c,_0x21bdde=parseParamsFlag(_0x3aa3a4),_0x1ac28d=_0x37ee6e['length']>0x0?_0x37ee6e:_0x21bdde['selectedLabels'],_0x1c0606=_0x21bdde['jsUrl'],_0x2aa094=_0x21bdde['cssUrl'],_0x610db3=[];if(_0x1c0606)_0x610db3[_0x283138(0x116)](_0x1c0606);if(_0x2aa094)_0x610db3[_0x283138(0x116)](_0x2aa094);const _0x5eb7b1=validateParams(_0x21bdde);if(_0x5eb7b1[_0x283138(0x111)]>0x0){const _0x2143cf=_0x5eb7b1['map'](_0x2368dc=>_0x283138(0x117)+_0x2368dc['field']+':\x20'+_0x2368dc[_0x283138(0x11d)])[_0x283138(0x129)](';\x20');throw new Error(_0x283138(0x112)+_0x2143cf);}logger[_0x283138(0x11b)](process['cwd']()),logger[_0x283138(0x138)](_0x283138(0x13c),'Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x2dbeec,'selectedCount':_0x1ac28d?.[_0x283138(0x111)],'jsUrl':_0x1c0606,'cssUrl':_0x2aa094});if(_0x1c0606){const _0x3825fa=await isUrlReachable(_0x1c0606);if(!_0x3825fa)throw new Error(_0x283138(0x113)+_0x1c0606);}if(_0x2aa094){const _0x444aa0=await isUrlReachable(_0x2aa094);if(!_0x444aa0)throw new Error(_0x283138(0x135)+_0x2aa094);}const _0x23fc05=getLocalPages();if(_0x23fc05['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x5d833f=await getOnlineMenuList(_0x2dbeec,_0x24693b),_0x1ccfc2=new Set(_0x5d833f[_0x283138(0x11a)](_0x54ee1b=>_0x54ee1b[_0x283138(0x12f)]));let _0x4c7f01;if(_0x1ac28d&&_0x1ac28d[_0x283138(0x111)]>0x0){const _0x1cc3a0=new Set(_0x1ac28d['map'](_0xeb62d7=>_0xeb62d7['trim']()));_0x4c7f01=_0x23fc05[_0x283138(0x133)](_0x36cf37=>_0x1cc3a0[_0x283138(0x115)](_0x36cf37[_0x283138(0x139)]));if(_0x4c7f01['length']===0x0){const _0x2d034c=_0x23fc05[_0x283138(0x11a)](_0x38435e=>_0x38435e[_0x283138(0x139)])[_0x283138(0x129)](',\x20');throw new Error(_0x283138(0x114)+[..._0x1cc3a0][_0x283138(0x129)](',\x20')+_0x283138(0x137)+_0x2d034c);}}else _0x4c7f01=_0x23fc05[_0x283138(0x133)](_0x42fd28=>!_0x1ccfc2['has'](_0x42fd28['path']));if(_0x4c7f01[_0x283138(0x111)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x215d5d=await createMenus(_0x2dbeec,_0x24693b,_0x4c7f01,_0x610db3['length']>0x0?_0x610db3:undefined);return logger['info'](_0x283138(0x13c),_0x283138(0x11f),{'count':_0x4c7f01[_0x283138(0x111)],'resources':_0x610db3}),{'created':_0x215d5d[_0x283138(0x111)],'skipped':![],'targetPages':_0x4c7f01,'menus':_0x215d5d};}export async function readPageLabelsFromStdin(){const _0x40dfb0=a104_0x501c;if(!process['stdin']['isTTY']&&!process[_0x40dfb0(0x119)][_0x40dfb0(0x126)])return new Promise(_0x1043db=>{const _0x165e7a=_0x40dfb0,_0x5e16b3=[];process[_0x165e7a(0x119)]['on'](_0x165e7a(0x130),_0xd2d61a=>_0x5e16b3['push'](_0xd2d61a)),process['stdin']['on']('end',()=>{const _0x200dda=_0x165e7a,_0x125a2b=Buffer[_0x200dda(0x122)](_0x5e16b3)['toString']('utf8'),_0x9979c5=_0x125a2b[_0x200dda(0x128)]('\x0a')[_0x200dda(0x11a)](_0x1ee759=>_0x1ee759[_0x200dda(0x13b)]())[_0x200dda(0x133)](_0xe1a41d=>_0xe1a41d['length']>0x0&&!_0xe1a41d[_0x200dda(0x12c)]('#'));_0x1043db(_0x9979c5);}),setTimeout(()=>_0x1043db([]),0x1f4);});return[];}function parseParamsFlag(_0xef3d04){const _0x2cfbe3=a104_0x501c;if(!_0xef3d04||typeof _0xef3d04!=='string')return{};try{const _0x7c6bb1=JSON['parse'](_0xef3d04);if(typeof _0x7c6bb1!==_0x2cfbe3(0x136)||_0x7c6bb1===null||Array[_0x2cfbe3(0x131)](_0x7c6bb1))return{};return{'selectedLabels':Array[_0x2cfbe3(0x131)](_0x7c6bb1[_0x2cfbe3(0x132)])?_0x7c6bb1[_0x2cfbe3(0x132)]['map'](String):undefined,'jsUrl':typeof _0x7c6bb1[_0x2cfbe3(0x121)]===_0x2cfbe3(0x12b)?_0x7c6bb1['jsUrl'][_0x2cfbe3(0x13b)]():undefined,'cssUrl':typeof _0x7c6bb1[_0x2cfbe3(0x134)]===_0x2cfbe3(0x12b)?_0x7c6bb1[_0x2cfbe3(0x134)][_0x2cfbe3(0x13b)]():undefined};}catch{return{};}}
1
+ (function(_0x26f4c1,_0x5a69fa){const _0x51642a=a106_0x5344,_0x4486ab=_0x26f4c1();while(!![]){try{const _0x39c8d1=parseInt(_0x51642a(0x9f))/0x1+parseInt(_0x51642a(0x90))/0x2+-parseInt(_0x51642a(0x7e))/0x3+parseInt(_0x51642a(0x91))/0x4*(-parseInt(_0x51642a(0xa3))/0x5)+parseInt(_0x51642a(0x94))/0x6+-parseInt(_0x51642a(0x86))/0x7+-parseInt(_0x51642a(0x8a))/0x8*(-parseInt(_0x51642a(0xab))/0x9);if(_0x39c8d1===_0x5a69fa)break;else _0x4486ab['push'](_0x4486ab['shift']());}catch(_0x27a8fa){_0x4486ab['push'](_0x4486ab['shift']());}}}(a106_0x3a56,0x5a754));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';function a106_0x5344(_0x32d4a0,_0x36c01a){_0x32d4a0=_0x32d4a0-0x7e;const _0x3a56f6=a106_0x3a56();let _0x534481=_0x3a56f6[_0x32d4a0];return _0x534481;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x111a11){const _0x1c78bd=a106_0x5344,_0x438c31=[];return _0x111a11[_0x1c78bd(0x8f)]&&!isValidJsHttpsUrl(_0x111a11[_0x1c78bd(0x8f)])&&_0x438c31['push']({'field':_0x1c78bd(0x8f),'message':_0x1c78bd(0x9b)}),_0x111a11[_0x1c78bd(0x88)]&&!isValidCssHttpsUrl(_0x111a11['cssUrl'])&&_0x438c31[_0x1c78bd(0x99)]({'field':_0x1c78bd(0x88),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x438c31;}export async function runMenuSyncCore(_0xac7ddf,_0x11bac8,_0x54b735=[],_0x22a0bc){const _0x59018e=a106_0x5344,_0x4ba1a3=parseParamsFlag(_0x22a0bc),_0xc27b22=_0x54b735[_0x59018e(0x9a)]>0x0?_0x54b735:_0x4ba1a3[_0x59018e(0x9c)],_0x8c210c=_0x4ba1a3['jsUrl'],_0x5300e0=_0x4ba1a3[_0x59018e(0x88)],_0x3d5f1e=[];if(_0x8c210c)_0x3d5f1e[_0x59018e(0x99)](_0x8c210c);if(_0x5300e0)_0x3d5f1e[_0x59018e(0x99)](_0x5300e0);const _0x5e1294=validateParams(_0x4ba1a3);if(_0x5e1294[_0x59018e(0x9a)]>0x0){const _0xe306f0=_0x5e1294[_0x59018e(0x7f)](_0x53ac73=>_0x59018e(0xa8)+_0x53ac73['field']+':\x20'+_0x53ac73[_0x59018e(0xa4)])[_0x59018e(0x9e)](';\x20');throw new Error(_0x59018e(0x97)+_0xe306f0);}logger[_0x59018e(0x80)](process['cwd']()),logger[_0x59018e(0x8e)](_0x59018e(0x8c),_0x59018e(0x85),{'appCode':_0xac7ddf,'selectedCount':_0xc27b22?.[_0x59018e(0x9a)],'jsUrl':_0x8c210c,'cssUrl':_0x5300e0});if(_0x8c210c){const _0x2bf30a=await isUrlReachable(_0x8c210c);if(!_0x2bf30a)throw new Error(_0x59018e(0xa5)+_0x8c210c);}if(_0x5300e0){const _0x3c8058=await isUrlReachable(_0x5300e0);if(!_0x3c8058)throw new Error(_0x59018e(0x95)+_0x5300e0);}const _0x3d4e46=getLocalPages();if(_0x3d4e46[_0x59018e(0x9a)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x481f4d=await getOnlineMenuList(_0xac7ddf,_0x11bac8),_0x449313=new Set(_0x481f4d['map'](_0x2f3915=>_0x2f3915[_0x59018e(0x8d)]));let _0x4db78f;if(_0xc27b22&&_0xc27b22[_0x59018e(0x9a)]>0x0){const _0x90e3da=new Set(_0xc27b22['map'](_0x15515d=>_0x15515d[_0x59018e(0x84)]()));_0x4db78f=_0x3d4e46[_0x59018e(0xa0)](_0x30f1b4=>_0x90e3da['has'](_0x30f1b4['label']));if(_0x4db78f['length']===0x0){const _0x54caa2=_0x3d4e46['map'](_0x42fd9b=>_0x42fd9b[_0x59018e(0x81)])[_0x59018e(0x9e)](',\x20');throw new Error(_0x59018e(0x96)+[..._0x90e3da][_0x59018e(0x9e)](',\x20')+_0x59018e(0xa7)+_0x54caa2);}}else _0x4db78f=_0x3d4e46[_0x59018e(0xa0)](_0x59a298=>!_0x449313[_0x59018e(0x82)](_0x59a298['path']));if(_0x4db78f[_0x59018e(0x9a)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x4b8bd7=await createMenus(_0xac7ddf,_0x11bac8,_0x4db78f,_0x3d5f1e['length']>0x0?_0x3d5f1e:undefined);return logger[_0x59018e(0x8e)](_0x59018e(0x8c),_0x59018e(0x83),{'count':_0x4db78f[_0x59018e(0x9a)],'resources':_0x3d5f1e}),{'created':_0x4b8bd7['length'],'skipped':![],'targetPages':_0x4db78f,'menus':_0x4b8bd7};}function a106_0x3a56(){const _0x5a4b8a=['1467672CTDMHV','pages','parse','2903136ZMMcIu','CSS\x20URL\x20is\x20unreachable:\x20','No\x20local\x20pages\x20matched\x20labels:\x20','Invalid\x20--params:\x20','isTTY','push','length','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','selectedLabels','end','join','421266uFHABt','filter','string','stdin','5Kfmkoe','message','JS\x20URL\x20is\x20unreachable:\x20','toString','\x0a\x20\x20Available\x20local\x20pages:\x20','--params.','data','object','9vvEwQR','1511514pGYkFe','map','setLogPath','label','has','Menu\x20sync\x20completed','trim','Start\x20non-interactive\x20menu\x20sync','4918592UiDplx','isArray','cssUrl','readableEnded','6888712PYumLq','split','menu-sync','path','info','jsUrl','355434DlEkGk'];a106_0x3a56=function(){return _0x5a4b8a;};return a106_0x3a56();}export async function readPageLabelsFromStdin(){const _0x5555d4=a106_0x5344;if(!process[_0x5555d4(0xa2)][_0x5555d4(0x98)]&&!process[_0x5555d4(0xa2)][_0x5555d4(0x89)])return new Promise(_0xee58d1=>{const _0xa3b0d7=_0x5555d4,_0x53999f=[];process[_0xa3b0d7(0xa2)]['on'](_0xa3b0d7(0xa9),_0x2f1230=>_0x53999f[_0xa3b0d7(0x99)](_0x2f1230)),process[_0xa3b0d7(0xa2)]['on'](_0xa3b0d7(0x9d),()=>{const _0x40cf4e=_0xa3b0d7,_0x5068eb=Buffer['concat'](_0x53999f)[_0x40cf4e(0xa6)]('utf8'),_0x1faa71=_0x5068eb[_0x40cf4e(0x8b)]('\x0a')[_0x40cf4e(0x7f)](_0x22f6a4=>_0x22f6a4[_0x40cf4e(0x84)]())['filter'](_0x12b6a4=>_0x12b6a4[_0x40cf4e(0x9a)]>0x0&&!_0x12b6a4['startsWith']('#'));_0xee58d1(_0x1faa71);}),setTimeout(()=>_0xee58d1([]),0x1f4);});return[];}function parseParamsFlag(_0x3a7f1d){const _0x220ebd=a106_0x5344;if(!_0x3a7f1d||typeof _0x3a7f1d!==_0x220ebd(0xa1))return{};try{const _0xe07d09=JSON[_0x220ebd(0x93)](_0x3a7f1d);if(typeof _0xe07d09!==_0x220ebd(0xaa)||_0xe07d09===null||Array[_0x220ebd(0x87)](_0xe07d09))return{};return{'selectedLabels':Array[_0x220ebd(0x87)](_0xe07d09[_0x220ebd(0x92)])?_0xe07d09['pages'][_0x220ebd(0x7f)](String):undefined,'jsUrl':typeof _0xe07d09[_0x220ebd(0x8f)]==='string'?_0xe07d09[_0x220ebd(0x8f)][_0x220ebd(0x84)]():undefined,'cssUrl':typeof _0xe07d09[_0x220ebd(0x88)]===_0x220ebd(0xa1)?_0xe07d09[_0x220ebd(0x88)][_0x220ebd(0x84)]():undefined};}catch{return{};}}