@lovrabet/rabetbase-cli 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.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/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- const a78_0x3b24ef=a78_0x50bd;(function(_0x3c9b71,_0x2e8668){const _0x14d667=a78_0x50bd,_0xa4e2de=_0x3c9b71();while(!![]){try{const _0x3077db=parseInt(_0x14d667(0x93))/0x1+-parseInt(_0x14d667(0xa9))/0x2+parseInt(_0x14d667(0x8c))/0x3+parseInt(_0x14d667(0xa8))/0x4+-parseInt(_0x14d667(0xa5))/0x5*(parseInt(_0x14d667(0xa7))/0x6)+parseInt(_0x14d667(0xaa))/0x7*(parseInt(_0x14d667(0xab))/0x8)+parseInt(_0x14d667(0x88))/0x9;if(_0x3077db===_0x2e8668)break;else _0xa4e2de['push'](_0xa4e2de['shift']());}catch(_0x15ba34){_0xa4e2de['push'](_0xa4e2de['shift']());}}}(a78_0x243b,0x7a105));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';function a78_0x243b(){const _0x3a2fe0=['run','validation','log','message','393149WfVVHG','Auto-confirm\x20prompts','init','valid','Use\x20`','appcode','toLocaleString','检测到旧配置文件,正在自动升级...\x0a','boolean','bool','\x20\x20Config:\x20','defaultApp','yes','flagMissing','appCode','map','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','App\x20code\x20to\x20initialize\x20with','5KciMIT','write','5914416fJVQDK','2195244fAxPdZ','1732792zbxtLa','6162051qBHlsG','8vSqGgL','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','string','nonInteractive','global','project','env','str','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','2457954MsICFC','\x0a✓\x20Successfully\x20initialized\x20','\x20config','\x20\x20Apps:\x20','770238WBMTaC','Write\x20to\x20global\x20config\x20instead\x20of\x20project','production'];a78_0x243b=function(){return _0x3a2fe0;};return a78_0x243b();}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(_0x258209){return{'appCode':_0x258209,'appName':_0x258209};}function writeInitConfig(_0x46f855,_0x31b6cf,_0x14fe91){const _0x3b9683=a78_0x50bd,_0x8ce9e9=resolveWriteConfigPath(_0x46f855),_0x11eb1a=buildCanonicalProjectConfig({},{'appCodes':_0x31b6cf[_0x3b9683(0xa2)](_0x4bbdeb=>_0x4bbdeb[_0x3b9683(0xa1)]),'env':_0x14fe91,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3b9683(0x99)]()}});writeConfigFile(_0x8ce9e9,_0x11eb1a);const _0x329838=_0x46f855===_0x3b9683(0x83)?_0x3b9683(0x83):'project';console['log'](_0x3b9683(0x89)+_0x329838+_0x3b9683(0x8a)),console[_0x3b9683(0x91)](_0x3b9683(0x8b)+_0x31b6cf[_0x3b9683(0xa2)](_0xde7e94=>_0xde7e94['appCode'])['join'](',\x20')),console[_0x3b9683(0x91)]('\x20\x20Default:\x20'+_0x11eb1a[_0x3b9683(0x9e)]),console[_0x3b9683(0x91)]('\x20\x20Env:\x20'+_0x11eb1a['env']),console['log'](_0x3b9683(0x9d)+_0x8ce9e9);}async function runSmartInit(_0x57f3be){const _0x313cd6=a78_0x50bd,_0x3fbb14=process['cwd'](),_0x5be746=_0x57f3be[_0x313cd6(0x9c)](_0x313cd6(0x83))?'global':_0x313cd6(0x84),_0x522b2a=_0x57f3be[_0x313cd6(0x86)]('env')||_0x313cd6(0x8e),_0x40f411=_0x57f3be['str'](_0x313cd6(0x98))||undefined,_0xff9960=_0x57f3be[_0x313cd6(0x9c)](_0x313cd6(0x84));if(_0xff9960){const {initConfig:_0x3cc153}=await import('../../commands/project/init.js');return _0x3cc153({'appcode':_0x40f411,'env':_0x522b2a,'autoYes':_0x57f3be['bool'](_0x313cd6(0x9f))});}if(_0x5be746===_0x313cd6(0x84)){const _0x1a5b3e=existsSync(resolve(_0x3fbb14,NEW_CONFIG_NAME)),_0x5d0b70=LEGACY_CONFIG_NAMES['some'](_0x19bc9d=>existsSync(resolve(_0x3fbb14,_0x19bc9d)));if(_0x5d0b70&&!_0x1a5b3e)return console[_0x313cd6(0x91)](_0x313cd6(0x9a)),upgradeApp(_0x57f3be[_0x313cd6(0x82)],{'yes':_0x57f3be[_0x313cd6(0x9c)](_0x313cd6(0x9f))});if(_0x1a5b3e)throw CliErrors[_0x313cd6(0x90)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x313cd6(0x97)+CLI_BIN_NAME+_0x313cd6(0xa3));}if(_0x40f411){const _0xb5adf=validateAppcode(_0x40f411);if(!_0xb5adf[_0x313cd6(0x96)])throw CliErrors[_0x313cd6(0x90)](_0xb5adf[_0x313cd6(0x92)]);writeInitConfig(_0x5be746,[syntheticApp(_0x40f411)],_0x522b2a);return;}if(_0x57f3be[_0x313cd6(0x82)])throw CliErrors[_0x313cd6(0xa0)](_0x313cd6(0x98),'Usage:\x20'+CLI_BIN_NAME+_0x313cd6(0x87));const _0x2fdeb5=getCookie(),_0x24f19a=await selectMultipleApps(_0x2fdeb5),_0x25540e=_0x24f19a==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x24f19a;writeInitConfig(_0x5be746,_0x25540e,_0x522b2a);}const initFlags=[{'name':a78_0x3b24ef(0x83),'type':a78_0x3b24ef(0x9b),'description':a78_0x3b24ef(0x8d),'default':![]},{'name':a78_0x3b24ef(0x85),'type':a78_0x3b24ef(0xad),'description':'Target\x20environment','default':a78_0x3b24ef(0x8e),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x3b24ef(0x98),'type':a78_0x3b24ef(0xad),'description':a78_0x3b24ef(0xa4)},{'name':a78_0x3b24ef(0x84),'type':'boolean','description':a78_0x3b24ef(0xac),'default':![]},{'name':a78_0x3b24ef(0x9f),'type':a78_0x3b24ef(0x9b),'description':a78_0x3b24ef(0x94),'default':![]}];function a78_0x50bd(_0x3eabdb,_0x48e2a4){_0x3eabdb=_0x3eabdb-0x82;const _0x243bc5=a78_0x243b();let _0x50bde7=_0x243bc5[_0x3eabdb];return _0x50bde7;}export const initDefinitions=[{'service':a78_0x3b24ef(0x95),'command':a78_0x3b24ef(0x8f),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a78_0x3b24ef(0xa6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x58ccb2){return await runSmartInit(_0x58ccb2),{'ok':!![]};}}];
1
+ const a78_0x21643d=a78_0x5ce9;(function(_0xeacfbe,_0x492667){const _0x642d10=a78_0x5ce9,_0x34de79=_0xeacfbe();while(!![]){try{const _0x2d6208=parseInt(_0x642d10(0x15b))/0x1*(-parseInt(_0x642d10(0x143))/0x2)+parseInt(_0x642d10(0x150))/0x3+-parseInt(_0x642d10(0x15f))/0x4+-parseInt(_0x642d10(0x14a))/0x5*(parseInt(_0x642d10(0x16a))/0x6)+-parseInt(_0x642d10(0x163))/0x7+parseInt(_0x642d10(0x16b))/0x8+-parseInt(_0x642d10(0x144))/0x9*(-parseInt(_0x642d10(0x14f))/0xa);if(_0x2d6208===_0x492667)break;else _0x34de79['push'](_0x34de79['shift']());}catch(_0x282e8d){_0x34de79['push'](_0x34de79['shift']());}}}(a78_0x1fc5,0xdb011));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';function a78_0x5ce9(_0x2380f9,_0x5f4319){_0x2380f9=_0x2380f9-0x142;const _0x1fc530=a78_0x1fc5();let _0x5ce9a6=_0x1fc530[_0x2380f9];return _0x5ce9a6;}function a78_0x1fc5(){const _0x1a432f=['8749488oSerHs','map','project','validation','\x20\x20Config:\x20','string','production','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','nonInteractive','join','32HYhiEX','9EIKdnV','\x20\x20Apps:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','log','yes','toLocaleString','510BgogPs','run','write','env','Use\x20`','30583270RZpqdB','1632087NnKPry','flagMissing','custom','init','appcode','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','some','Target\x20environment','appCode','93147SEYhdz','Usage:\x20','cwd','Auto-confirm\x20prompts','6723040EMbCAz','App\x20code\x20to\x20initialize\x20with','../../commands/project/init.js','boolean','4228861iqhrpC','defaultApp','global','\x20config','valid','\x20\x20Env:\x20','bool','1398btmCDT'];a78_0x1fc5=function(){return _0x1a432f;};return a78_0x1fc5();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x44d1dd){return{'appCode':_0x44d1dd,'appName':_0x44d1dd};}function writeInitConfig(_0x54c7a9,_0x30498a,_0x2db73a){const _0x59ad07=a78_0x5ce9,_0x4333ea=resolveWriteConfigPath(_0x54c7a9),_0x46fa9e=buildCanonicalProjectConfig({},{'appCodes':_0x30498a[_0x59ad07(0x16c)](_0x15fe77=>_0x15fe77['appCode']),'env':_0x2db73a,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x59ad07(0x149)]()}});writeConfigFile(_0x4333ea,_0x46fa9e);const _0xf6288e=_0x54c7a9===_0x59ad07(0x165)?_0x59ad07(0x165):_0x59ad07(0x16d);console[_0x59ad07(0x147)]('\x0a✓\x20Successfully\x20initialized\x20'+_0xf6288e+_0x59ad07(0x166)),console[_0x59ad07(0x147)](_0x59ad07(0x145)+_0x30498a[_0x59ad07(0x16c)](_0x126cb8=>_0x126cb8[_0x59ad07(0x15a)])[_0x59ad07(0x142)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x46fa9e[_0x59ad07(0x164)]),console[_0x59ad07(0x147)](_0x59ad07(0x168)+_0x46fa9e[_0x59ad07(0x14d)]),console[_0x59ad07(0x147)](_0x59ad07(0x16f)+_0x4333ea);}async function runSmartInit(_0x465af8){const _0x4f86c5=a78_0x5ce9,_0x27ef69=process[_0x4f86c5(0x15d)](),_0x2c8788=_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x165))?_0x4f86c5(0x165):_0x4f86c5(0x16d),_0x262aee=_0x465af8[_0x4f86c5(0x156)](_0x4f86c5(0x14d))||_0x4f86c5(0x171),_0x45ee5e=_0x465af8[_0x4f86c5(0x156)](_0x4f86c5(0x154))||undefined,_0x5c2718=_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x16d));if(_0x5c2718){const {initConfig:_0x55e901}=await import(_0x4f86c5(0x161));return _0x55e901({'appcode':_0x45ee5e,'env':_0x262aee,'autoYes':_0x465af8[_0x4f86c5(0x169)](_0x4f86c5(0x148))});}if(_0x2c8788===_0x4f86c5(0x16d)){const _0x10aa1a=existsSync(resolve(_0x27ef69,NEW_CONFIG_NAME)),_0x197176=LEGACY_CONFIG_NAMES[_0x4f86c5(0x158)](_0x2c6dea=>existsSync(resolve(_0x27ef69,_0x2c6dea)));if(_0x197176&&!_0x10aa1a)return console[_0x4f86c5(0x147)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x465af8[_0x4f86c5(0x173)],{'yes':_0x465af8['bool'](_0x4f86c5(0x148))});if(_0x10aa1a)throw CliErrors[_0x4f86c5(0x16e)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x4f86c5(0x14e)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x45ee5e){const _0x131016=validateAppcode(_0x45ee5e);if(!_0x131016[_0x4f86c5(0x167)])throw CliErrors['validation'](_0x131016['message']);writeInitConfig(_0x2c8788,[syntheticApp(_0x45ee5e)],_0x262aee);return;}if(_0x465af8['nonInteractive'])throw CliErrors[_0x4f86c5(0x151)](_0x4f86c5(0x154),_0x4f86c5(0x15c)+CLI_BIN_NAME+_0x4f86c5(0x172));const _0x50c8d0=getCookie(),_0x213077=await selectMultipleApps(_0x50c8d0),_0xe9fa9=_0x213077===_0x4f86c5(0x152)?[syntheticApp(await promptCustomAppcode())]:_0x213077;writeInitConfig(_0x2c8788,_0xe9fa9,_0x262aee);}const initFlags=[{'name':a78_0x21643d(0x165),'type':a78_0x21643d(0x162),'description':a78_0x21643d(0x146),'default':![]},{'name':a78_0x21643d(0x14d),'type':'string','description':a78_0x21643d(0x159),'default':a78_0x21643d(0x171),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x21643d(0x154),'type':a78_0x21643d(0x170),'description':a78_0x21643d(0x160)},{'name':'project','type':'boolean','description':a78_0x21643d(0x157),'default':![]},{'name':'yes','type':a78_0x21643d(0x162),'description':a78_0x21643d(0x15e),'default':![]}];export const initDefinitions=[{'service':a78_0x21643d(0x153),'command':a78_0x21643d(0x14b),'description':a78_0x21643d(0x155),'risk':a78_0x21643d(0x14c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2f6e89){return await runSmartInit(_0x2f6e89),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0x3632(){const _0x2a946b=['3400CuRJoU','61479ObqTCe','1510116IGTwvP','833448JMiAbU','2403128XZBMVp','596571fWGRNT','456yBipfJ','4KpTblw','989451udyVqi'];a79_0x3632=function(){return _0x2a946b;};return a79_0x3632();}function a79_0x103e(_0x4a94aa,_0x422f13){_0x4a94aa=_0x4a94aa-0x177;const _0x36328a=a79_0x3632();let _0x103e94=_0x36328a[_0x4a94aa];return _0x103e94;}(function(_0x698b6a,_0x1f7659){const _0x45b175=a79_0x103e,_0x53968d=_0x698b6a();while(!![]){try{const _0x26b5a6=parseInt(_0x45b175(0x17c))/0x1+-parseInt(_0x45b175(0x179))/0x2*(parseInt(_0x45b175(0x177))/0x3)+parseInt(_0x45b175(0x17d))/0x4+parseInt(_0x45b175(0x17b))/0x5*(-parseInt(_0x45b175(0x178))/0x6)+-parseInt(_0x45b175(0x17e))/0x7+parseInt(_0x45b175(0x17f))/0x8+parseInt(_0x45b175(0x17a))/0x9;if(_0x26b5a6===_0x1f7659)break;else _0x53968d['push'](_0x53968d['shift']());}catch(_0x2564d3){_0x53968d['push'](_0x53968d['shift']());}}}(a79_0x3632,0x44930));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a79_0x2e92(){const _0x11a5e9=['3032940dskeiJ','6742968NXFSnJ','1093420hvQETX','7001860uMfavm','9kfJFlt','4ubOvyI','3231lrYrJE','78fbbaEB','7WUdosR','2833773cmZChc','10068432uPQZRN'];a79_0x2e92=function(){return _0x11a5e9;};return a79_0x2e92();}function a79_0x1099(_0xf7b851,_0x385c5a){_0xf7b851=_0xf7b851-0x6f;const _0x2e923e=a79_0x2e92();let _0x109937=_0x2e923e[_0xf7b851];return _0x109937;}(function(_0xd2c4b4,_0x2c52e0){const _0x15bba8=a79_0x1099,_0xc6f31d=_0xd2c4b4();while(!![]){try{const _0x4a0452=parseInt(_0x15bba8(0x77))/0x1*(parseInt(_0x15bba8(0x78))/0x2)+-parseInt(_0x15bba8(0x6f))/0x3*(parseInt(_0x15bba8(0x76))/0x4)+parseInt(_0x15bba8(0x73))/0x5+parseInt(_0x15bba8(0x71))/0x6+parseInt(_0x15bba8(0x79))/0x7*(-parseInt(_0x15bba8(0x72))/0x8)+-parseInt(_0x15bba8(0x75))/0x9*(-parseInt(_0x15bba8(0x74))/0xa)+parseInt(_0x15bba8(0x70))/0xb;if(_0x4a0452===_0x2c52e0)break;else _0xc6f31d['push'](_0xc6f31d['shift']());}catch(_0x3d6729){_0xc6f31d['push'](_0xc6f31d['shift']());}}}(a79_0x2e92,0xa594b));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x336a58=a80_0x490c;(function(_0x2eef9d,_0x541569){const _0x318145=a80_0x490c,_0xc4470=_0x2eef9d();while(!![]){try{const _0x53571b=parseInt(_0x318145(0x140))/0x1*(parseInt(_0x318145(0x155))/0x2)+-parseInt(_0x318145(0x13c))/0x3*(parseInt(_0x318145(0x154))/0x4)+parseInt(_0x318145(0x14a))/0x5*(parseInt(_0x318145(0x141))/0x6)+parseInt(_0x318145(0x14c))/0x7+parseInt(_0x318145(0x143))/0x8*(parseInt(_0x318145(0x151))/0x9)+parseInt(_0x318145(0x14b))/0xa*(-parseInt(_0x318145(0x13f))/0xb)+parseInt(_0x318145(0x142))/0xc;if(_0x53571b===_0x541569)break;else _0xc4470['push'](_0xc4470['shift']());}catch(_0x4c7ea9){_0xc4470['push'](_0xc4470['shift']());}}}(a80_0x4ba8,0x90135));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x336a58(0x153);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x336a58(0x14d),a80_0x336a58(0x13b),a80_0x336a58(0x158),a80_0x336a58(0x156),a80_0x336a58(0x15a),a80_0x336a58(0x145),a80_0x336a58(0x146)]),defaultWriter=_0x2fdbde=>{const _0x2bca2f=a80_0x336a58;process[_0x2bca2f(0x152)][_0x2bca2f(0x14f)](_0x2fdbde);};function a80_0x4ba8(){const _0x24a908=['3355551BeLpTO','stderr','RABETBASE_DISABLE_ISSUE_NUDGE','4MLGklA','2ArtmFX','unknown_command','\x22\x20\x5c','not_in_project','\x20bug?\x20Help\x20us\x20fix\x20it:','flag_missing','\x20issue\x20report\x20\x5c','Hit\x20a\x20','service','config_missing','1623249gmTgow','issue','code','11288563KyPXpF','849420vevhzA','24HYWkMj','556632gTXBQZ','8jsWtvf','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','network_error','report','slice','\x20\x20Set\x20','715035WvhfXq','10ZBiXBa','2217432WuqwPv','auth_required','trim','write','\x20\x20\x20\x20--title\x20\x22'];a80_0x4ba8=function(){return _0x24a908;};return a80_0x4ba8();}export function shouldNudgeForError(_0x581002,_0x49eb3d){const _0x5bd5ed=a80_0x336a58;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x49eb3d[_0x5bd5ed(0x13a)]===_0x5bd5ed(0x13d)&&_0x49eb3d['command']===_0x5bd5ed(0x147))return![];if(_0x581002 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x581002[_0x5bd5ed(0x13e)]);return!![];}export function printIssueReportNudgeForError(_0x1247d2,_0x56af06,_0x2bd394=defaultWriter){if(!shouldNudgeForError(_0x1247d2,_0x56af06))return;const _0x492bab=buildSuggestedTitle(_0x1247d2,_0x56af06);_0x2bd394(formatNudge(_0x492bab));}function buildSuggestedTitle(_0x34f249,_0x381474){const _0x17ee72=a80_0x336a58,_0x4be443=_0x34f249 instanceof Error?_0x34f249['message']:String(_0x34f249),_0x4fbdd4=_0x4be443['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x17ee72(0x14e)]()[_0x17ee72(0x148)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x74820e=CLI_BIN_NAME+'\x20'+_0x381474[_0x17ee72(0x13a)]+'\x20'+_0x381474['command'];return _0x4fbdd4['length']>0x0?_0x74820e+':\x20'+_0x4fbdd4:_0x74820e;}function a80_0x490c(_0x368b3a,_0x553ad5){_0x368b3a=_0x368b3a-0x13a;const _0x4ba8e6=a80_0x4ba8();let _0x490c9a=_0x4ba8e6[_0x368b3a];return _0x490c9a;}function formatNudge(_0x43d54d){const _0x38e562=a80_0x336a58;return['',_0x38e562(0x15c)+CLI_BIN_NAME+_0x38e562(0x159),'\x20\x20'+CLI_BIN_NAME+_0x38e562(0x15b),_0x38e562(0x150)+_0x43d54d+_0x38e562(0x157),_0x38e562(0x144),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x38e562(0x149)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.','']['join']('\x0a');}
1
+ const a80_0x169b73=a80_0x5eb7;(function(_0x20492e,_0x42ce2f){const _0x1ae04b=a80_0x5eb7,_0x2e9b86=_0x20492e();while(!![]){try{const _0x4dc5d9=parseInt(_0x1ae04b(0x1e5))/0x1*(parseInt(_0x1ae04b(0x1ef))/0x2)+-parseInt(_0x1ae04b(0x201))/0x3*(parseInt(_0x1ae04b(0x1e2))/0x4)+parseInt(_0x1ae04b(0x1e9))/0x5+-parseInt(_0x1ae04b(0x203))/0x6+-parseInt(_0x1ae04b(0x1e3))/0x7*(-parseInt(_0x1ae04b(0x1e6))/0x8)+parseInt(_0x1ae04b(0x1f1))/0x9*(parseInt(_0x1ae04b(0x1ff))/0xa)+parseInt(_0x1ae04b(0x202))/0xb;if(_0x4dc5d9===_0x42ce2f)break;else _0x2e9b86['push'](_0x2e9b86['shift']());}catch(_0x8abf5d){_0x2e9b86['push'](_0x2e9b86['shift']());}}}(a80_0x5df1,0xe5200));function a80_0x5eb7(_0x564674,_0x1c40c0){_0x564674=_0x564674-0x1e1;const _0x5df1cf=a80_0x5df1();let _0x5eb7ac=_0x5df1cf[_0x564674];return _0x5eb7ac;}import{CliError}from'../../errors.js';function a80_0x5df1(){const _0x5b2474=['code','1436390GtSKiH','=1\x20to\x20silence\x20this\x20hint.','not_in_project','validation_error','length','has','1502QdPAlm','trim','1647CKvdEh','report','flag_missing','cancelled','\x20\x20Set\x20','\x20issue\x20report\x20\x5c','service','stderr','RABETBASE_DISABLE_ISSUE_NUDGE','\x22\x20\x5c','unknown_command','\x20\x20\x20\x20--title\x20\x22','command','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','70540mOVRml','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','3MZiFKN','9850511FlLhhd','9560232pdsoYX','network_error','config_missing','3810056IcVQpC','17899KXRyJS','replace','1322dkvvwN','56FICVVW','auth_required'];a80_0x5df1=function(){return _0x5b2474;};return a80_0x5df1();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x169b73(0x1f9);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x169b73(0x1f4),a80_0x169b73(0x1e7),a80_0x169b73(0x1e1),a80_0x169b73(0x1eb),a80_0x169b73(0x1fb),a80_0x169b73(0x1f3),a80_0x169b73(0x1ec),a80_0x169b73(0x204)]),defaultWriter=_0x40327d=>{const _0x1720ac=a80_0x169b73;process[_0x1720ac(0x1f8)]['write'](_0x40327d);};export function shouldNudgeForError(_0x14835a,_0x4abac2){const _0x57e4c2=a80_0x169b73;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x4abac2[_0x57e4c2(0x1f7)]==='issue'&&_0x4abac2[_0x57e4c2(0x1fd)]===_0x57e4c2(0x1f2))return![];if(_0x14835a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x57e4c2(0x1ee)](_0x14835a[_0x57e4c2(0x1e8)]);return!![];}export function printIssueReportNudgeForError(_0x5a51e5,_0x4c8314,_0x43af1c=defaultWriter){if(!shouldNudgeForError(_0x5a51e5,_0x4c8314))return;const _0x4e5142=buildSuggestedTitle(_0x5a51e5,_0x4c8314);_0x43af1c(formatNudge(_0x4e5142));}function buildSuggestedTitle(_0x298b04,_0x373ecc){const _0x2cab82=a80_0x169b73,_0x193d01=_0x298b04 instanceof Error?_0x298b04['message']:String(_0x298b04),_0x41ea1d=_0x193d01[_0x2cab82(0x1e4)](/[\r\n]+/g,'\x20')[_0x2cab82(0x1e4)](/\s+/g,'\x20')[_0x2cab82(0x1f0)]()['slice'](0x0,0x78)[_0x2cab82(0x1e4)](/"/g,'\x5c\x22'),_0x8d009b=CLI_BIN_NAME+'\x20'+_0x373ecc['service']+'\x20'+_0x373ecc[_0x2cab82(0x1fd)];return _0x41ea1d[_0x2cab82(0x1ed)]>0x0?_0x8d009b+':\x20'+_0x41ea1d:_0x8d009b;}function formatNudge(_0x39a5da){const _0xa6e754=a80_0x169b73;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0xa6e754(0x1f6),_0xa6e754(0x1fc)+_0x39a5da+_0xa6e754(0x1fa),_0xa6e754(0x1fe),_0xa6e754(0x200),_0xa6e754(0x1f5)+NUDGE_OPT_OUT_ENV+_0xa6e754(0x1ea),'']['join']('\x0a');}
@@ -1 +1 @@
1
- const a81_0x4f8a6d=a81_0x2e42;(function(_0x54a04b,_0x45d352){const _0x1783a3=a81_0x2e42,_0xb49d96=_0x54a04b();while(!![]){try{const _0x3924ba=-parseInt(_0x1783a3(0x1a4))/0x1*(parseInt(_0x1783a3(0x19a))/0x2)+-parseInt(_0x1783a3(0x17f))/0x3*(-parseInt(_0x1783a3(0x1b1))/0x4)+-parseInt(_0x1783a3(0x1aa))/0x5+-parseInt(_0x1783a3(0x18d))/0x6+parseInt(_0x1783a3(0x199))/0x7+-parseInt(_0x1783a3(0x19d))/0x8+parseInt(_0x1783a3(0x182))/0x9*(parseInt(_0x1783a3(0x1ac))/0xa);if(_0x3924ba===_0x45d352)break;else _0xb49d96['push'](_0xb49d96['shift']());}catch(_0x5d81db){_0xb49d96['push'](_0xb49d96['shift']());}}}(a81_0x2b1f,0x852b5));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a81_0x2e42(_0x1ce300,_0x456869){_0x1ce300=_0x1ce300-0x177;const _0x2b1f3d=a81_0x2b1f();let _0x2e426a=_0x2b1f3d[_0x1ce300];return _0x2e426a;}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':a81_0x4f8a6d(0x1ad),'command':a81_0x4f8a6d(0x1a5),'description':a81_0x4f8a6d(0x1ae),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x4f8a6d(0x189),'type':a81_0x4f8a6d(0x195),'required':!![],'description':a81_0x4f8a6d(0x18a)},{'name':a81_0x4f8a6d(0x177),'type':'string','description':a81_0x4f8a6d(0x1a9)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x4f8a6d(0x195),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x357726){const _0x400ac5=a81_0x4f8a6d,_0xb4f320=_0x357726[_0x400ac5(0x1a2)]('title')['trim'](),_0x341822=_0x357726[_0x400ac5(0x1a2)](_0x400ac5(0x177))['trim'](),_0x2ae8ee=_0x357726[_0x400ac5(0x1a2)](DESCRIPTION_FILE_FLAG)[_0x400ac5(0x197)]();if(!_0xb4f320)throw CliErrors[_0x400ac5(0x196)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x3f0ebf=_0x341822[_0x400ac5(0x183)]>0x0,_0x581c17=_0x2ae8ee[_0x400ac5(0x183)]>0x0;if(_0x3f0ebf===_0x581c17)throw CliErrors[_0x400ac5(0x1b0)](_0x400ac5(0x1a6),_0x400ac5(0x1a1));if(_0x581c17){const _0x1e5551=resolve(process[_0x400ac5(0x198)](),_0x2ae8ee);if(!existsSync(_0x1e5551))throw CliErrors['validation'](_0x400ac5(0x18c)+_0x1e5551);}},async 'dryRun'(_0x339de2){const _0x2b26c5=a81_0x4f8a6d,_0x4a8846=await prepareIssueReport(_0x339de2);return{'method':_0x2b26c5(0x187),'url':_0x2b26c5(0x1a7)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4a8846[_0x2b26c5(0x189)],'issue.description':_0x4a8846[_0x2b26c5(0x177)],'issue.description_original_bytes':_0x4a8846[_0x2b26c5(0x178)][_0x2b26c5(0x17d)],'issue.description_truncated':_0x4a8846['sanitize'][_0x2b26c5(0x181)],'issue.description_redactions':_0x4a8846[_0x2b26c5(0x178)]['redactionCount'],'issue.description_redaction_kinds':_0x4a8846['sanitize'][_0x2b26c5(0x17a)][_0x2b26c5(0x191)](',')}},'description':[_0x2b26c5(0x18b),_0x2b26c5(0x19b)+_0x4a8846[_0x2b26c5(0x186)],_0x4a8846[_0x2b26c5(0x179)]?_0x2b26c5(0x18e)+_0x4a8846[_0x2b26c5(0x179)]:null,_0x4a8846['sanitize'][_0x2b26c5(0x181)]?'truncated:\x20original\x20'+_0x4a8846[_0x2b26c5(0x178)]['originalBytes']+_0x2b26c5(0x17e):null,_0x4a8846['sanitize'][_0x2b26c5(0x192)]>0x0?'redactions:\x20'+_0x4a8846[_0x2b26c5(0x178)]['redactionCount']+'\x20('+_0x4a8846[_0x2b26c5(0x178)][_0x2b26c5(0x17a)][_0x2b26c5(0x191)](',\x20')+')':null][_0x2b26c5(0x193)](Boolean)[_0x2b26c5(0x191)]('\x0a')};},async 'execute'(_0x16a851){const _0x2a33e7=a81_0x4f8a6d,_0x35906f=await prepareIssueReport(_0x16a851);try{await sendPlatformIssueCollectLog({'title':_0x35906f[_0x2a33e7(0x189)],'description':_0x35906f[_0x2a33e7(0x177)],'sanitize':{'originalBytes':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x17d)],'truncated':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x181)],'redactionCount':_0x35906f['sanitize']['redactionCount'],'redactionKinds':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x17a)]}});}catch(_0x26a4f4){throw CliErrors[_0x2a33e7(0x19f)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x26a4f4 instanceof Error?_0x26a4f4[_0x2a33e7(0x194)]:String(_0x26a4f4)),_0x2a33e7(0x18f));}return{'ok':!![],'message':buildResultMessage(_0x35906f[_0x2a33e7(0x178)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2a33e7(0x19e),_0x2a33e7(0x184),_0x2a33e7(0x1ab),_0x2a33e7(0x1a8),'issue.description_redactions',_0x2a33e7(0x1a3)],'issue':{'title':_0x35906f[_0x2a33e7(0x189)],'descriptionLength':_0x35906f['description'][_0x2a33e7(0x183)],'descriptionSource':_0x35906f[_0x2a33e7(0x186)],..._0x35906f[_0x2a33e7(0x179)]?{'descriptionFile':_0x35906f[_0x2a33e7(0x179)]}:{},'sanitize':{'originalBytes':_0x35906f[_0x2a33e7(0x178)]['originalBytes'],'truncated':_0x35906f['sanitize'][_0x2a33e7(0x181)],'redactions':_0x35906f[_0x2a33e7(0x178)][_0x2a33e7(0x192)],'redactionKinds':_0x35906f[_0x2a33e7(0x178)]['redactionKinds']}}}};}};function a81_0x2b1f(){const _0x429d7f=['Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','join','redactionCount','filter','message','string','flagMissing','trim','cwd','408345KBWOFm','82186WGJtoX','descriptionSource:\x20','redacted\x20','7072824HCWfPk','issue.title','apiError','inline','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','str','issue.description_redaction_kinds','6iBjiPF','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','otel://','issue.description_truncated','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','5058865NQxkmR','issue.description_original_bytes','26767190hpHnSC','issue','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Platform\x20issue\x20reported','validation','4XdkHAg','description','sanitize','descriptionFilePath','redactionKinds','\x20secret(s):\x20','push','originalBytes','\x20bytes','776406LIurLg','file','truncated','9HuIGHY','length','issue.description','Platform\x20issue\x20reported\x20(','descriptionSource','POST','Issue\x20description\x20file\x20is\x20empty:\x20','title','One-line\x20issue\x20summary','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','File\x20not\x20found:\x20','1835766kyYbvg','descriptionFile:\x20','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.'];a81_0x2b1f=function(){return _0x429d7f;};return a81_0x2b1f();}function buildResultMessage(_0x319860){const _0x263eaf=a81_0x4f8a6d,_0x47ac1a=[];return _0x319860[_0x263eaf(0x181)]&&_0x47ac1a[_0x263eaf(0x17c)]('truncated\x20from\x20'+_0x319860[_0x263eaf(0x17d)]+_0x263eaf(0x17e)),_0x319860['redactionCount']>0x0&&_0x47ac1a[_0x263eaf(0x17c)](_0x263eaf(0x19c)+_0x319860[_0x263eaf(0x192)]+_0x263eaf(0x17b)+_0x319860[_0x263eaf(0x17a)][_0x263eaf(0x191)](',\x20')),_0x47ac1a[_0x263eaf(0x183)]===0x0?_0x263eaf(0x1af):_0x263eaf(0x185)+_0x47ac1a[_0x263eaf(0x191)](';\x20')+')';}async function prepareIssueReport(_0x7548ea){const _0x5b1479=a81_0x4f8a6d,_0x4e4133=_0x7548ea[_0x5b1479(0x1a2)](_0x5b1479(0x189))['trim'](),_0x4a007e=_0x7548ea[_0x5b1479(0x1a2)](_0x5b1479(0x177)),_0x67d1ff=_0x7548ea['str'](DESCRIPTION_FILE_FLAG)[_0x5b1479(0x197)]();if(!_0x67d1ff){const _0x30944f=_0x4a007e;if(!_0x30944f[_0x5b1479(0x197)]())throw CliErrors[_0x5b1479(0x1b0)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x5b1479(0x190));const _0x7742fa=sanitizeIssueDescription(_0x30944f);return{'title':_0x4e4133,'description':_0x7742fa[_0x5b1479(0x177)],'descriptionSource':_0x5b1479(0x1a0),'sanitize':_0x7742fa};}const _0x2c0299=resolve(process['cwd'](),_0x67d1ff),_0x2afd19=await readFile(_0x2c0299,'utf8');if(!_0x2afd19['trim']())throw CliErrors[_0x5b1479(0x1b0)](_0x5b1479(0x188)+_0x2c0299,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x11900e=sanitizeIssueDescription(_0x2afd19);return{'title':_0x4e4133,'description':_0x11900e[_0x5b1479(0x177)],'descriptionSource':_0x5b1479(0x180),'descriptionFilePath':_0x2c0299,'sanitize':_0x11900e};}
1
+ const a81_0x1b076e=a81_0x3911;function a81_0x3911(_0xd37312,_0x164e57){_0xd37312=_0xd37312-0x167;const _0x5f14fa=a81_0x5f14();let _0x3911f8=_0x5f14fa[_0xd37312];return _0x3911f8;}(function(_0x25e157,_0x3f11db){const _0x173d1c=a81_0x3911,_0x419990=_0x25e157();while(!![]){try{const _0x4f9cdb=parseInt(_0x173d1c(0x168))/0x1*(parseInt(_0x173d1c(0x195))/0x2)+-parseInt(_0x173d1c(0x16b))/0x3*(parseInt(_0x173d1c(0x192))/0x4)+-parseInt(_0x173d1c(0x19b))/0x5+parseInt(_0x173d1c(0x198))/0x6*(parseInt(_0x173d1c(0x173))/0x7)+-parseInt(_0x173d1c(0x17c))/0x8*(-parseInt(_0x173d1c(0x18f))/0x9)+parseInt(_0x173d1c(0x185))/0xa+-parseInt(_0x173d1c(0x181))/0xb;if(_0x4f9cdb===_0x3f11db)break;else _0x419990['push'](_0x419990['shift']());}catch(_0x36089c){_0x419990['push'](_0x419990['shift']());}}}(a81_0x5f14,0xae387));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';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';function a81_0x5f14(){const _0x2c849e=['292914fROjNu','string','\x20bytes','Platform\x20issue\x20reported\x20(','\x20secret(s):\x20','issue.title','truncated\x20from\x20','message','343QTwDdC','descriptionFile:\x20','File\x20not\x20found:\x20','redacted\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionFilePath','issue.description_redactions','utf8','8QVHWLB','cwd','sanitize','push','redactionKinds','10406011DMPAus','One-line\x20issue\x20summary','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','descriptionSource:\x20','13263620ZcXdTn','Issue\x20description\x20file\x20is\x20empty:\x20','file','title','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_original_bytes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','length','originalBytes','join','10617471fesqSx','redactionCount','description','28zUUCPW','otel://','validation','453578PufnMt','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','45756xFKNCk','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','3817350DZIwZw','redactions:\x20','descriptionSource','trim','issue.description','truncated:\x20original\x20','issue','1vgQwFF','truncated','str'];a81_0x5f14=function(){return _0x2c849e;};return a81_0x5f14();}export const issueReport={'service':a81_0x1b076e(0x167),'command':'report','description':a81_0x1b076e(0x18b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x1b076e(0x188),'type':a81_0x1b076e(0x16c),'required':!![],'description':a81_0x1b076e(0x182)},{'name':a81_0x1b076e(0x191),'type':'string','description':a81_0x1b076e(0x199)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1b076e(0x16c),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x492ba0){const _0x5d143b=a81_0x1b076e,_0x19befc=_0x492ba0[_0x5d143b(0x16a)](_0x5d143b(0x188))[_0x5d143b(0x19e)](),_0x1bd520=_0x492ba0['str']('description')[_0x5d143b(0x19e)](),_0x56976e=_0x492ba0[_0x5d143b(0x16a)](DESCRIPTION_FILE_FLAG)[_0x5d143b(0x19e)]();if(!_0x19befc)throw CliErrors['flagMissing']('title',_0x5d143b(0x19a));const _0x460ff8=_0x1bd520['length']>0x0,_0x2f8d63=_0x56976e['length']>0x0;if(_0x460ff8===_0x2f8d63)throw CliErrors[_0x5d143b(0x194)](_0x5d143b(0x178),_0x5d143b(0x197));if(_0x2f8d63){const _0x936073=resolve(process[_0x5d143b(0x17d)](),_0x56976e);if(!existsSync(_0x936073))throw CliErrors[_0x5d143b(0x194)](_0x5d143b(0x175)+_0x936073);}},async 'dryRun'(_0x15cfb7){const _0x4e0fd7=a81_0x1b076e,_0x4f682e=await prepareIssueReport(_0x15cfb7);return{'method':'POST','url':_0x4e0fd7(0x193)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4f682e[_0x4e0fd7(0x188)],'issue.description':_0x4f682e[_0x4e0fd7(0x191)],'issue.description_original_bytes':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x18d)],'issue.description_truncated':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x169)],'issue.description_redactions':_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x190)],'issue.description_redaction_kinds':_0x4f682e['sanitize'][_0x4e0fd7(0x180)][_0x4e0fd7(0x18e)](',')}},'description':[_0x4e0fd7(0x177),_0x4e0fd7(0x184)+_0x4f682e[_0x4e0fd7(0x19d)],_0x4f682e['descriptionFilePath']?_0x4e0fd7(0x174)+_0x4f682e[_0x4e0fd7(0x179)]:null,_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x169)]?_0x4e0fd7(0x1a0)+_0x4f682e[_0x4e0fd7(0x17e)]['originalBytes']+_0x4e0fd7(0x16d):null,_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x190)]>0x0?_0x4e0fd7(0x19c)+_0x4f682e[_0x4e0fd7(0x17e)]['redactionCount']+'\x20('+_0x4f682e[_0x4e0fd7(0x17e)][_0x4e0fd7(0x180)][_0x4e0fd7(0x18e)](',\x20')+')':null]['filter'](Boolean)[_0x4e0fd7(0x18e)]('\x0a')};},async 'execute'(_0x38fe0a){const _0x171cd8=a81_0x1b076e,_0x3455bc=await prepareIssueReport(_0x38fe0a);try{await sendPlatformIssueCollectLog({'title':_0x3455bc['title'],'description':_0x3455bc['description'],'sanitize':{'originalBytes':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x18d)],'truncated':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x169)],'redactionCount':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x190)],'redactionKinds':_0x3455bc[_0x171cd8(0x17e)]['redactionKinds']}});}catch(_0x14abf9){throw CliErrors[_0x171cd8(0x196)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x14abf9 instanceof Error?_0x14abf9[_0x171cd8(0x172)]:String(_0x14abf9)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x3455bc[_0x171cd8(0x17e)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x171cd8(0x170),_0x171cd8(0x19f),_0x171cd8(0x18a),'issue.description_truncated',_0x171cd8(0x17a),'issue.description_redaction_kinds'],'issue':{'title':_0x3455bc[_0x171cd8(0x188)],'descriptionLength':_0x3455bc[_0x171cd8(0x191)][_0x171cd8(0x18c)],'descriptionSource':_0x3455bc[_0x171cd8(0x19d)],..._0x3455bc['descriptionFilePath']?{'descriptionFile':_0x3455bc[_0x171cd8(0x179)]}:{},'sanitize':{'originalBytes':_0x3455bc['sanitize'][_0x171cd8(0x18d)],'truncated':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x169)],'redactions':_0x3455bc[_0x171cd8(0x17e)][_0x171cd8(0x190)],'redactionKinds':_0x3455bc[_0x171cd8(0x17e)]['redactionKinds']}}}};}};function buildResultMessage(_0x2daa29){const _0x3b92b5=a81_0x1b076e,_0x5387a2=[];return _0x2daa29[_0x3b92b5(0x169)]&&_0x5387a2[_0x3b92b5(0x17f)](_0x3b92b5(0x171)+_0x2daa29[_0x3b92b5(0x18d)]+'\x20bytes'),_0x2daa29[_0x3b92b5(0x190)]>0x0&&_0x5387a2[_0x3b92b5(0x17f)](_0x3b92b5(0x176)+_0x2daa29[_0x3b92b5(0x190)]+_0x3b92b5(0x16f)+_0x2daa29[_0x3b92b5(0x180)][_0x3b92b5(0x18e)](',\x20')),_0x5387a2[_0x3b92b5(0x18c)]===0x0?'Platform\x20issue\x20reported':_0x3b92b5(0x16e)+_0x5387a2[_0x3b92b5(0x18e)](';\x20')+')';}async function prepareIssueReport(_0x5270e7){const _0x4a773d=a81_0x1b076e,_0x6b3ff9=_0x5270e7[_0x4a773d(0x16a)](_0x4a773d(0x188))[_0x4a773d(0x19e)](),_0x43704a=_0x5270e7[_0x4a773d(0x16a)]('description'),_0x5b8cd7=_0x5270e7['str'](DESCRIPTION_FILE_FLAG)[_0x4a773d(0x19e)]();if(!_0x5b8cd7){const _0x33f782=_0x43704a;if(!_0x33f782[_0x4a773d(0x19e)]())throw CliErrors[_0x4a773d(0x194)](_0x4a773d(0x189),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x2c4bba=sanitizeIssueDescription(_0x33f782);return{'title':_0x6b3ff9,'description':_0x2c4bba[_0x4a773d(0x191)],'descriptionSource':'inline','sanitize':_0x2c4bba};}const _0x1d465c=resolve(process[_0x4a773d(0x17d)](),_0x5b8cd7),_0x5bcad6=await readFile(_0x1d465c,_0x4a773d(0x17b));if(!_0x5bcad6[_0x4a773d(0x19e)]())throw CliErrors[_0x4a773d(0x194)](_0x4a773d(0x186)+_0x1d465c,_0x4a773d(0x183));const _0x5d30fb=sanitizeIssueDescription(_0x5bcad6);return{'title':_0x6b3ff9,'description':_0x5d30fb[_0x4a773d(0x191)],'descriptionSource':_0x4a773d(0x187),'descriptionFilePath':_0x1d465c,'sanitize':_0x5d30fb};}
@@ -1 +1 @@
1
- const a82_0x4e6679=a82_0x1e3c;(function(_0xf0f17e,_0x43e169){const _0x322197=a82_0x1e3c,_0x161676=_0xf0f17e();while(!![]){try{const _0x5225a7=parseInt(_0x322197(0x9b))/0x1+-parseInt(_0x322197(0xa1))/0x2*(parseInt(_0x322197(0xa8))/0x3)+-parseInt(_0x322197(0x95))/0x4+-parseInt(_0x322197(0xa6))/0x5*(parseInt(_0x322197(0x8c))/0x6)+-parseInt(_0x322197(0x90))/0x7+parseInt(_0x322197(0xa0))/0x8+-parseInt(_0x322197(0x9e))/0x9*(-parseInt(_0x322197(0x91))/0xa);if(_0x5225a7===_0x43e169)break;else _0x161676['push'](_0x161676['shift']());}catch(_0x287694){_0x161676['push'](_0x161676['shift']());}}}(a82_0x24be,0x663ba));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x4e6679(0xa5),REDACTION_RULES=[{'kind':a82_0x4e6679(0x93),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x4e6679(0x97)},{'kind':a82_0x4e6679(0xa7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x4e6679(0x94)},{'kind':a82_0x4e6679(0x9c),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x4e6679(0x92)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x4e6679(0x9f)},{'kind':a82_0x4e6679(0x9d),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x4e6679(0x96)}];function a82_0x1e3c(_0x16417e,_0x54202c){_0x16417e=_0x16417e-0x8c;const _0x24be73=a82_0x24be();let _0x1e3cdd=_0x24be73[_0x16417e];return _0x1e3cdd;}export function sanitizeIssueDescription(_0xeeecb8){const _0x541237=a82_0x4e6679,_0x1c373a=Buffer[_0x541237(0xa4)](_0xeeecb8,_0x541237(0x9a)),_0x39120b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x29578a=_0xeeecb8,_0x5a4716=0x0;const _0x593018=[];if(!_0x39120b)for(const _0x13d79c of REDACTION_RULES){let _0xa98b5f=0x0;_0x29578a=_0x29578a[_0x541237(0x8e)](_0x13d79c['pattern'],(_0x23ac43,_0x439a01)=>{const _0xbbcafb=_0x541237;_0xa98b5f+=0x1;const _0x16d14f=typeof _0x439a01==='string'?_0x439a01:'';return _0x16d14f+'['+_0x13d79c[_0xbbcafb(0x99)]+']';}),_0xa98b5f>0x0&&(_0x5a4716+=_0xa98b5f,!_0x593018['includes'](_0x13d79c[_0x541237(0xa3)])&&_0x593018['push'](_0x13d79c[_0x541237(0xa3)]));}let _0x9e0a6f=![];if(Buffer[_0x541237(0xa4)](_0x29578a,_0x541237(0x9a))>ISSUE_DESCRIPTION_MAX_BYTES){_0x9e0a6f=!![];const _0x491f40=Buffer[_0x541237(0xa4)](TRUNCATION_NOTICE,'utf8'),_0x127c18=Math[_0x541237(0x8f)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x491f40);_0x29578a=sliceUtf8Bytes(_0x29578a,_0x127c18)+TRUNCATION_NOTICE;}return{'description':_0x29578a,'originalBytes':_0x1c373a,'truncated':_0x9e0a6f,'redactionCount':_0x5a4716,'redactionKinds':_0x593018};}function a82_0x24be(){const _0x513a53=['REDACTED:bearer-jwt','REDACTED:cookie','toString','label','utf8','69922vBQaJv','private-key','password','568800sNjuYN','REDACTED:access-key','5179944Ermvil','418zBZuCe','subarray','kind','byteLength','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','11855rJJJNv','authorization','8199OMBZEd','906eLKArO','from','replace','max','3018036JDFFMQ','170yOBkVL','REDACTED:private-key','cookie','REDACTED:authorization','50812BuWkag'];a82_0x24be=function(){return _0x513a53;};return a82_0x24be();}function sliceUtf8Bytes(_0x5be3e1,_0x391fed){const _0x16c0fb=a82_0x4e6679;if(_0x391fed<=0x0)return'';const _0x31a2f7=Buffer[_0x16c0fb(0x8d)](_0x5be3e1,_0x16c0fb(0x9a));if(_0x31a2f7[_0x16c0fb(0xa4)]<=_0x391fed)return _0x5be3e1;let _0x3d451d=_0x391fed;while(_0x3d451d>0x0){const _0x30ce33=_0x31a2f7[_0x3d451d];if(_0x30ce33===undefined||(_0x30ce33&0xc0)!==0x80)break;_0x3d451d-=0x1;}return _0x31a2f7[_0x16c0fb(0xa2)](0x0,_0x3d451d)[_0x16c0fb(0x98)](_0x16c0fb(0x9a));}
1
+ const a82_0x4b8d57=a82_0x3475;(function(_0x51ff0e,_0xe70a79){const _0x499c20=a82_0x3475,_0x1720a4=_0x51ff0e();while(!![]){try{const _0x26918b=parseInt(_0x499c20(0x1c9))/0x1+parseInt(_0x499c20(0x1d1))/0x2*(-parseInt(_0x499c20(0x1ce))/0x3)+parseInt(_0x499c20(0x1c0))/0x4*(parseInt(_0x499c20(0x1cf))/0x5)+parseInt(_0x499c20(0x1c6))/0x6+-parseInt(_0x499c20(0x1ca))/0x7+-parseInt(_0x499c20(0x1c1))/0x8+-parseInt(_0x499c20(0x1c7))/0x9*(parseInt(_0x499c20(0x1cb))/0xa);if(_0x26918b===_0xe70a79)break;else _0x1720a4['push'](_0x1720a4['shift']());}catch(_0xe08965){_0x1720a4['push'](_0x1720a4['shift']());}}}(a82_0x195c,0x3411c));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a82_0x3475(_0x45660e,_0xfece13){_0x45660e=_0x45660e-0x1b9;const _0x195c70=a82_0x195c();let _0x347565=_0x195c70[_0x45660e];return _0x347565;}const TRUNCATION_NOTICE=a82_0x4b8d57(0x1c4),REDACTION_RULES=[{'kind':a82_0x4b8d57(0x1d4),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x4b8d57(0x1d5)},{'kind':a82_0x4b8d57(0x1c2),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x4b8d57(0x1d2)},{'kind':a82_0x4b8d57(0x1c8),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x4b8d57(0x1bc),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x4b8d57(0x1d0),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x4b8d57(0x1cd),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x24caad){const _0x2e56d3=a82_0x4b8d57,_0x3664a3=Buffer[_0x2e56d3(0x1b9)](_0x24caad,'utf8'),_0x20c220=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1fbb48=_0x24caad,_0x413bb8=0x0;const _0x36154a=[];if(!_0x20c220)for(const _0x16cc4c of REDACTION_RULES){let _0x5365b6=0x0;_0x1fbb48=_0x1fbb48[_0x2e56d3(0x1d3)](_0x16cc4c[_0x2e56d3(0x1bb)],(_0x3e367b,_0xe9bdd2)=>{const _0x3f5d4f=_0x2e56d3;_0x5365b6+=0x1;const _0x515b1b=typeof _0xe9bdd2==='string'?_0xe9bdd2:'';return _0x515b1b+'['+_0x16cc4c[_0x3f5d4f(0x1ba)]+']';}),_0x5365b6>0x0&&(_0x413bb8+=_0x5365b6,!_0x36154a[_0x2e56d3(0x1bf)](_0x16cc4c[_0x2e56d3(0x1c3)])&&_0x36154a[_0x2e56d3(0x1bd)](_0x16cc4c['kind']));}let _0x34563f=![];if(Buffer['byteLength'](_0x1fbb48,_0x2e56d3(0x1d6))>ISSUE_DESCRIPTION_MAX_BYTES){_0x34563f=!![];const _0x183990=Buffer[_0x2e56d3(0x1b9)](TRUNCATION_NOTICE,'utf8'),_0x342d25=Math[_0x2e56d3(0x1be)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x183990);_0x1fbb48=sliceUtf8Bytes(_0x1fbb48,_0x342d25)+TRUNCATION_NOTICE;}return{'description':_0x1fbb48,'originalBytes':_0x3664a3,'truncated':_0x34563f,'redactionCount':_0x413bb8,'redactionKinds':_0x36154a};}function a82_0x195c(){const _0x357f47=['\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','subarray','1278822lIemPM','459DzCThS','private-key','270500BseSGI','522256DUeshC','68870GwvRLz','toString','bearer-jwt','183XaJskV','20845yHCDoG','password','150SsktMN','REDACTED:authorization','replace','cookie','REDACTED:cookie','utf8','byteLength','label','pattern','access-key','push','max','includes','328byNLGm','1454392QAivDf','authorization','kind'];a82_0x195c=function(){return _0x357f47;};return a82_0x195c();}function sliceUtf8Bytes(_0x3b675a,_0x166e98){const _0x1b31d8=a82_0x4b8d57;if(_0x166e98<=0x0)return'';const _0x3f9ed9=Buffer['from'](_0x3b675a,_0x1b31d8(0x1d6));if(_0x3f9ed9[_0x1b31d8(0x1b9)]<=_0x166e98)return _0x3b675a;let _0x526b1b=_0x166e98;while(_0x526b1b>0x0){const _0x378a87=_0x3f9ed9[_0x526b1b];if(_0x378a87===undefined||(_0x378a87&0xc0)!==0x80)break;_0x526b1b-=0x1;}return _0x3f9ed9[_0x1b31d8(0x1c5)](0x0,_0x526b1b)[_0x1b31d8(0x1cc)](_0x1b31d8(0x1d6));}
@@ -1 +1 @@
1
- const a83_0x4b918c=a83_0x3ccc;(function(_0x48b0fe,_0x19ea4a){const _0x158aaf=a83_0x3ccc,_0x1087cc=_0x48b0fe();while(!![]){try{const _0x1e50e5=parseInt(_0x158aaf(0x9e))/0x1*(parseInt(_0x158aaf(0xa6))/0x2)+parseInt(_0x158aaf(0xae))/0x3*(parseInt(_0x158aaf(0xb4))/0x4)+-parseInt(_0x158aaf(0xa8))/0x5*(parseInt(_0x158aaf(0xaa))/0x6)+parseInt(_0x158aaf(0xa0))/0x7+parseInt(_0x158aaf(0xa5))/0x8*(parseInt(_0x158aaf(0xa4))/0x9)+parseInt(_0x158aaf(0xbe))/0xa+-parseInt(_0x158aaf(0xa1))/0xb;if(_0x1e50e5===_0x19ea4a)break;else _0x1087cc['push'](_0x1087cc['shift']());}catch(_0x2fa2f2){_0x1087cc['push'](_0x1087cc['shift']());}}}(a83_0x4700,0x4e4ae));function a83_0x3ccc(_0x40cb01,_0xf0907e){_0x40cb01=_0x40cb01-0x9e;const _0x470081=a83_0x4700();let _0x3cccb9=_0x470081[_0x40cb01];return _0x3cccb9;}import{logger}from'../../utils/logger.js';function printLogs(_0x4026e0){const _0x452b27=a83_0x3ccc;if(_0x4026e0[_0x452b27(0xbd)]===0x0){console[_0x452b27(0xab)](_0x452b27(0xaf));return;}console[_0x452b27(0xab)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x4026e0[_0x452b27(0xb0)]((_0x5de799,_0x187fce)=>{const _0x20b3d5=_0x452b27,_0x2504ba=new Date(_0x5de799['timestamp'])[_0x20b3d5(0xad)](_0x20b3d5(0xb9)),_0x4c50c0=_0x5de799[_0x20b3d5(0xb7)]==='success'?'√':_0x5de799['level']===_0x20b3d5(0xb1)?'×':_0x5de799[_0x20b3d5(0xb7)]===_0x20b3d5(0xba)?'!':'i';console[_0x20b3d5(0xab)](_0x187fce+0x1+'.\x20'+_0x4c50c0+'\x20['+_0x5de799[_0x20b3d5(0xb5)]+']\x20'+_0x5de799[_0x20b3d5(0xc3)]),console['log'](_0x20b3d5(0xc2)+_0x2504ba),_0x5de799['duration']&&console[_0x20b3d5(0xab)](_0x20b3d5(0xb6)+_0x5de799[_0x20b3d5(0xbf)]+'ms'),_0x5de799[_0x20b3d5(0xb2)]&&Object[_0x20b3d5(0xbc)](_0x5de799[_0x20b3d5(0xb2)])[_0x20b3d5(0xbd)]>0x0&&console[_0x20b3d5(0xab)](_0x20b3d5(0xc4)+JSON[_0x20b3d5(0xb8)](_0x5de799[_0x20b3d5(0xb2)],null,0x2)),console[_0x20b3d5(0xab)]('');});}export const logsDefinitions=[{'service':a83_0x4b918c(0xa3),'command':a83_0x4b918c(0xa2),'description':a83_0x4b918c(0xb3),'risk':a83_0x4b918c(0x9f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x215494){const _0x38277f=a83_0x4b918c;return printLogs(logger[_0x38277f(0xc0)]()),{'ok':!![]};}},{'service':a83_0x4b918c(0xa3),'command':a83_0x4b918c(0xa7),'description':a83_0x4b918c(0xc1),'risk':a83_0x4b918c(0xa9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x520c1a){const _0x5f7a82=a83_0x4b918c;return logger[_0x5f7a82(0xac)](),console[_0x5f7a82(0xab)](_0x5f7a82(0xbb)),{'ok':!![]};}}];function a83_0x4700(){const _0x39db73=['read','2513637NCHilV','12103861qxBhjI','show','logs','300663UEuAnF','136NZicKN','2966Qpicke','clear','755bfMybe','write','8754SCuzyQ','log','clearLogs','toLocaleString','243qtJStg','*\x20No\x20logs\x20found','forEach','error','details','View\x20command\x20history\x20logs','10156KlCtqL','command','\x20\x20\x20Duration:\x20','level','stringify','en-US','warn','*\x20Logs\x20cleared','keys','length','2254240xaegXQ','duration','readLogs','Clear\x20command\x20history\x20logs','\x20\x20\x20Time:\x20','message','\x20\x20\x20Details:\x20','191rggpoM'];a83_0x4700=function(){return _0x39db73;};return a83_0x4700();}
1
+ const a83_0x14a494=a83_0x3a46;(function(_0xd3b4f8,_0x2bbf7b){const _0xa060cc=a83_0x3a46,_0x2e53dd=_0xd3b4f8();while(!![]){try{const _0x36a24f=parseInt(_0xa060cc(0x1e4))/0x1*(parseInt(_0xa060cc(0x1e5))/0x2)+parseInt(_0xa060cc(0x1d1))/0x3+-parseInt(_0xa060cc(0x1ea))/0x4+-parseInt(_0xa060cc(0x1de))/0x5*(-parseInt(_0xa060cc(0x1d8))/0x6)+parseInt(_0xa060cc(0x1e3))/0x7+-parseInt(_0xa060cc(0x1eb))/0x8+-parseInt(_0xa060cc(0x1ed))/0x9;if(_0x36a24f===_0x2bbf7b)break;else _0x2e53dd['push'](_0x2e53dd['shift']());}catch(_0x297d12){_0x2e53dd['push'](_0x2e53dd['shift']());}}}(a83_0x1f31,0xdb815));import{logger}from'../../utils/logger.js';function a83_0x1f31(){const _0x1f6eb6=['1242414ZERzcN','log','readLogs','forEach','\x20\x20\x20Details:\x20','details','173223VwLKwT','en-US','*\x20Lovrabet\x20CLI\x20logs:\x0a','warn','clearLogs','read','message','8504472yqWVIN','Clear\x20command\x20history\x20logs','logs','success','toLocaleString','duration','5OdZyqM','keys','command','clear','timestamp','6073900MaDcRd','1jknESz','5090wSqjGO','level','write','stringify','length','518204XYDGtl','9429664qlTLJe','View\x20command\x20history\x20logs'];a83_0x1f31=function(){return _0x1f6eb6;};return a83_0x1f31();}function a83_0x3a46(_0x500107,_0x43274e){_0x500107=_0x500107-0x1d0;const _0x1f31eb=a83_0x1f31();let _0x3a4649=_0x1f31eb[_0x500107];return _0x3a4649;}function printLogs(_0x7ac940){const _0x5d649b=a83_0x3a46;if(_0x7ac940[_0x5d649b(0x1e9)]===0x0){console[_0x5d649b(0x1ee)]('*\x20No\x20logs\x20found');return;}console['log'](_0x5d649b(0x1d3)),_0x7ac940[_0x5d649b(0x1f0)]((_0x4e36e0,_0x219b9d)=>{const _0x5b214a=_0x5d649b,_0x37c1cc=new Date(_0x4e36e0[_0x5b214a(0x1e2)])[_0x5b214a(0x1dc)](_0x5b214a(0x1d2)),_0x472479=_0x4e36e0[_0x5b214a(0x1e6)]===_0x5b214a(0x1db)?'√':_0x4e36e0[_0x5b214a(0x1e6)]==='error'?'×':_0x4e36e0[_0x5b214a(0x1e6)]===_0x5b214a(0x1d4)?'!':'i';console[_0x5b214a(0x1ee)](_0x219b9d+0x1+'.\x20'+_0x472479+'\x20['+_0x4e36e0[_0x5b214a(0x1e0)]+']\x20'+_0x4e36e0[_0x5b214a(0x1d7)]),console['log']('\x20\x20\x20Time:\x20'+_0x37c1cc),_0x4e36e0[_0x5b214a(0x1dd)]&&console[_0x5b214a(0x1ee)]('\x20\x20\x20Duration:\x20'+_0x4e36e0[_0x5b214a(0x1dd)]+'ms'),_0x4e36e0[_0x5b214a(0x1d0)]&&Object[_0x5b214a(0x1df)](_0x4e36e0['details'])[_0x5b214a(0x1e9)]>0x0&&console[_0x5b214a(0x1ee)](_0x5b214a(0x1f1)+JSON[_0x5b214a(0x1e8)](_0x4e36e0[_0x5b214a(0x1d0)],null,0x2)),console[_0x5b214a(0x1ee)]('');});}export const logsDefinitions=[{'service':a83_0x14a494(0x1da),'command':'show','description':a83_0x14a494(0x1ec),'risk':a83_0x14a494(0x1d6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1a049a){const _0x15845b=a83_0x14a494;return printLogs(logger[_0x15845b(0x1ef)]()),{'ok':!![]};}},{'service':'logs','command':a83_0x14a494(0x1e1),'description':a83_0x14a494(0x1d9),'risk':a83_0x14a494(0x1e7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x332ca1){const _0x129590=a83_0x14a494;return logger[_0x129590(0x1d5)](),console[_0x129590(0x1ee)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x3d3980,_0x33c388){const _0x29cce9=a84_0x4250,_0x5994d1=_0x3d3980();while(!![]){try{const _0x25391d=-parseInt(_0x29cce9(0x120))/0x1+-parseInt(_0x29cce9(0x11e))/0x2*(-parseInt(_0x29cce9(0x119))/0x3)+-parseInt(_0x29cce9(0x11d))/0x4*(parseInt(_0x29cce9(0x11c))/0x5)+-parseInt(_0x29cce9(0x122))/0x6+parseInt(_0x29cce9(0x121))/0x7+-parseInt(_0x29cce9(0x11a))/0x8*(parseInt(_0x29cce9(0x11b))/0x9)+-parseInt(_0x29cce9(0x11f))/0xa*(-parseInt(_0x29cce9(0x118))/0xb);if(_0x25391d===_0x33c388)break;else _0x5994d1['push'](_0x5994d1['shift']());}catch(_0x687fd7){_0x5994d1['push'](_0x5994d1['shift']());}}}(a84_0x5d44,0x6970c));function a84_0x4250(_0x519b47,_0x19955c){_0x519b47=_0x519b47-0x118;const _0x5d4454=a84_0x5d44();let _0x425093=_0x5d4454[_0x519b47];return _0x425093;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a84_0x5d44(){const _0x227a26=['5357408FKpbCn','9JBWWfG','5EocHrb','906632vSPTaS','11596bFeXKo','17633310HNVSTV','476371NGQDnG','3205272yKgoVw','4830624kUYgJO','11fRqxYM','201jAdnQh'];a84_0x5d44=function(){return _0x227a26;};return a84_0x5d44();}
1
+ (function(_0x322594,_0x1933b8){const _0x3e3f19=a84_0x3533,_0x471031=_0x322594();while(!![]){try{const _0x478448=parseInt(_0x3e3f19(0x10d))/0x1*(parseInt(_0x3e3f19(0x117))/0x2)+parseInt(_0x3e3f19(0x111))/0x3+parseInt(_0x3e3f19(0x110))/0x4*(parseInt(_0x3e3f19(0x10e))/0x5)+-parseInt(_0x3e3f19(0x10c))/0x6*(parseInt(_0x3e3f19(0x10f))/0x7)+parseInt(_0x3e3f19(0x116))/0x8*(-parseInt(_0x3e3f19(0x113))/0x9)+-parseInt(_0x3e3f19(0x112))/0xa+parseInt(_0x3e3f19(0x115))/0xb*(parseInt(_0x3e3f19(0x114))/0xc);if(_0x478448===_0x1933b8)break;else _0x471031['push'](_0x471031['shift']());}catch(_0x43f227){_0x471031['push'](_0x471031['shift']());}}}(a84_0x9f86,0x88b9d));function a84_0x9f86(){const _0x18f735=['6866728wEsIFA','7681136xURjYm','4KdMfmZ','2366388DQzFRs','401083NmeoMH','185415LgPrIZ','7AddApc','36GyGANe','1042242kRgwRi','1930060mEPTsj','9IjkiNe','12MymINq'];a84_0x9f86=function(){return _0x18f735;};return a84_0x9f86();}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x3533(_0x580339,_0x5a5320){_0x580339=_0x580339-0x10c;const _0x9f8600=a84_0x9f86();let _0x3533de=_0x9f8600[_0x580339];return _0x3533de;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- function a85_0x4d37(_0x153eae,_0x56d495){_0x153eae=_0x153eae-0x146;const _0x130b07=a85_0x130b();let _0x4d3702=_0x130b07[_0x153eae];return _0x4d3702;}(function(_0x3e5cdf,_0x4c060d){const _0x3a0273=a85_0x4d37,_0x2f4475=_0x3e5cdf();while(!![]){try{const _0x25dcfc=parseInt(_0x3a0273(0x168))/0x1*(-parseInt(_0x3a0273(0x15e))/0x2)+parseInt(_0x3a0273(0x15f))/0x3*(-parseInt(_0x3a0273(0x15b))/0x4)+-parseInt(_0x3a0273(0x167))/0x5*(-parseInt(_0x3a0273(0x15c))/0x6)+-parseInt(_0x3a0273(0x150))/0x7*(-parseInt(_0x3a0273(0x157))/0x8)+-parseInt(_0x3a0273(0x152))/0x9*(-parseInt(_0x3a0273(0x146))/0xa)+-parseInt(_0x3a0273(0x15d))/0xb+parseInt(_0x3a0273(0x159))/0xc*(parseInt(_0x3a0273(0x161))/0xd);if(_0x25dcfc===_0x4c060d)break;else _0x2f4475['push'](_0x2f4475['shift']());}catch(_0x3a4483){_0x2f4475['push'](_0x2f4475['shift']());}}}(a85_0x130b,0x7029b));function strWidth(_0x40b309){const _0x52dfe6=a85_0x4d37;let _0x2b1e4f=0x0;for(const _0x42dcbe of _0x40b309){_0x2b1e4f+=/[\u4e00-\u9fa5]/[_0x52dfe6(0x14b)](_0x42dcbe)?0x2:0x1;}return _0x2b1e4f;}function padRight(_0x11caf2,_0x262866){const _0x336719=a85_0x4d37,_0x7d7e81=strWidth(_0x11caf2);return _0x11caf2+'\x20'[_0x336719(0x166)](Math[_0x336719(0x15a)](0x0,_0x262866-_0x7d7e81));}function a85_0x130b(){const _0x273a31=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','91ovzYbB','(unchanged)','3362517JldzqB','\x20\x20\x20\x20•\x20','label','map','local','541472ZTLBnu','push','6840CoYeaf','max','18420leaaNj','12UnAwoy','9330662tsUlrt','188vMkLIh','144aMxveE','online','13eAjmQS','path','join','\x20\x20\x20\x20CSS:\x20','showOnline','repeat','2286915fdhgeo','6810dIumkj','10tJbcvb','\x20\x20Affected\x20menus:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','test','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','length','\x20\x20No\x20pages\x20to\x20sync.'];a85_0x130b=function(){return _0x273a31;};return a85_0x130b();}export function renderCompareTable(_0x400a3d,_0x1bf94e={}){const _0x191b2a=a85_0x4d37;if(_0x400a3d['length']===0x0)return'';const _0x10243a=_0x1bf94e[_0x191b2a(0x165)]??!![],_0x486732=Math[_0x191b2a(0x15a)](0x1e,..._0x400a3d[_0x191b2a(0x155)](_0x1467bd=>strWidth(_0x1467bd[_0x191b2a(0x154)]))),_0x22f00d=0x4,_0x47df39=[],_0xb2dec0='\x20\x20'+padRight('Menu\x20Name',_0x486732),_0x7a1ca0=padRight(_0x191b2a(0x14a),_0x22f00d),_0x5ba2f1=_0x10243a?'\x20\x20'+padRight('Platform',_0x22f00d):'';_0x47df39['push'](_0xb2dec0+'\x20\x20'+_0x7a1ca0+(_0x10243a?_0x5ba2f1:'')),_0x47df39[_0x191b2a(0x158)]('\x20\x20'+'─'[_0x191b2a(0x166)](_0x486732)+'\x20\x20'+'─'[_0x191b2a(0x166)](_0x22f00d)+(_0x10243a?'\x20\x20'+'─'[_0x191b2a(0x166)](_0x22f00d):''));for(const _0x41203e of _0x400a3d){const _0x59c1e5=padRight(_0x41203e['label'],_0x486732),_0x4ec066=_0x41203e[_0x191b2a(0x156)]?'✓':'✗',_0x385c5b=padRight(_0x4ec066,_0x22f00d);let _0x1750ab='\x20\x20'+_0x59c1e5+'\x20\x20'+_0x385c5b;if(_0x10243a){const _0x206707=_0x41203e[_0x191b2a(0x160)]?'✓':'✗';_0x1750ab+='\x20\x20'+padRight(_0x206707,_0x22f00d);}_0x47df39[_0x191b2a(0x158)](_0x1750ab);}return _0x47df39[_0x191b2a(0x163)]('\x0a');}export function renderSyncSummary(_0x432420,_0xdbdb9e){const _0x1f2d3b=a85_0x4d37;if(_0x432420[_0x1f2d3b(0x14d)]===0x0)return _0xdbdb9e?_0x1f2d3b(0x149):_0x1f2d3b(0x14e);const _0x52f08f=['\x20\x20'+_0x432420[_0x1f2d3b(0x14d)]+_0x1f2d3b(0x14f)];for(const _0x3e912b of _0x432420){_0x52f08f[_0x1f2d3b(0x158)](_0x1f2d3b(0x153)+_0x3e912b[_0x1f2d3b(0x154)]+'\x20('+_0x3e912b[_0x1f2d3b(0x162)]+')');}return _0x52f08f[_0x1f2d3b(0x163)]('\x0a');}export function renderUpdateSummary(_0x42c500,_0x46d9bd){const _0x3c5183=a85_0x4d37;if(_0x42c500[_0x3c5183(0x14d)]===0x0)return _0x3c5183(0x148);const _0x2e574e=['\x20\x20'+_0x42c500[_0x3c5183(0x14d)]+_0x3c5183(0x14c),'\x20\x20\x20\x20JS:\x20\x20'+(_0x46d9bd[0x0]??_0x3c5183(0x151)),_0x3c5183(0x164)+(_0x46d9bd[0x1]??_0x3c5183(0x151)),'',_0x3c5183(0x147)+_0x42c500[_0x3c5183(0x163)](',\x20')];return _0x2e574e[_0x3c5183(0x163)]('\x0a');}
1
+ (function(_0x2cdb4d,_0x7c6e4e){const _0x4b9801=a85_0x41ca,_0x10d6b0=_0x2cdb4d();while(!![]){try{const _0x497b29=-parseInt(_0x4b9801(0xaf))/0x1+-parseInt(_0x4b9801(0xc2))/0x2+-parseInt(_0x4b9801(0xc1))/0x3+parseInt(_0x4b9801(0xba))/0x4*(-parseInt(_0x4b9801(0xbf))/0x5)+-parseInt(_0x4b9801(0xb5))/0x6+-parseInt(_0x4b9801(0xae))/0x7*(-parseInt(_0x4b9801(0xc5))/0x8)+parseInt(_0x4b9801(0xb6))/0x9*(parseInt(_0x4b9801(0xb7))/0xa);if(_0x497b29===_0x7c6e4e)break;else _0x10d6b0['push'](_0x10d6b0['shift']());}catch(_0x33734c){_0x10d6b0['push'](_0x10d6b0['shift']());}}}(a85_0x4a56,0x78cd0));function strWidth(_0x1fa435){const _0x4cd40e=a85_0x41ca;let _0x18f568=0x0;for(const _0x5f3171 of _0x1fa435){_0x18f568+=/[\u4e00-\u9fa5]/[_0x4cd40e(0xc9)](_0x5f3171)?0x2:0x1;}return _0x18f568;}function padRight(_0x290323,_0x4b5f34){const _0x5b8b31=a85_0x41ca,_0x235d68=strWidth(_0x290323);return _0x290323+'\x20'[_0x5b8b31(0xb2)](Math[_0x5b8b31(0xbc)](0x0,_0x4b5f34-_0x235d68));}function a85_0x41ca(_0x472756,_0x415dfe){_0x472756=_0x472756-0xad;const _0x4a568c=a85_0x4a56();let _0x41ca63=_0x4a568c[_0x472756];return _0x41ca63;}export function renderCompareTable(_0x53c25f,_0x1e371d={}){const _0x3fc166=a85_0x41ca;if(_0x53c25f['length']===0x0)return'';const _0x37ad41=_0x1e371d[_0x3fc166(0xb0)]??!![],_0x15187d=Math[_0x3fc166(0xbc)](0x1e,..._0x53c25f[_0x3fc166(0xad)](_0x18f6f3=>strWidth(_0x18f6f3[_0x3fc166(0xb8)]))),_0x266f85=0x4,_0x5bf7a6=[],_0x6044ca='\x20\x20'+padRight('Menu\x20Name',_0x15187d),_0x5ad264=padRight(_0x3fc166(0xb3),_0x266f85),_0x15b105=_0x37ad41?'\x20\x20'+padRight(_0x3fc166(0xbe),_0x266f85):'';_0x5bf7a6['push'](_0x6044ca+'\x20\x20'+_0x5ad264+(_0x37ad41?_0x15b105:'')),_0x5bf7a6[_0x3fc166(0xc0)]('\x20\x20'+'─'['repeat'](_0x15187d)+'\x20\x20'+'─'['repeat'](_0x266f85)+(_0x37ad41?'\x20\x20'+'─'[_0x3fc166(0xb2)](_0x266f85):''));for(const _0xdd4857 of _0x53c25f){const _0x5d26f1=padRight(_0xdd4857[_0x3fc166(0xb8)],_0x15187d),_0x1a486d=_0xdd4857[_0x3fc166(0xca)]?'✓':'✗',_0x21480f=padRight(_0x1a486d,_0x266f85);let _0x35fae3='\x20\x20'+_0x5d26f1+'\x20\x20'+_0x21480f;if(_0x37ad41){const _0x1d81b2=_0xdd4857['online']?'✓':'✗';_0x35fae3+='\x20\x20'+padRight(_0x1d81b2,_0x266f85);}_0x5bf7a6[_0x3fc166(0xc0)](_0x35fae3);}return _0x5bf7a6[_0x3fc166(0xbd)]('\x0a');}export function renderSyncSummary(_0x361072,_0x5709b3){const _0x5ba37b=a85_0x41ca;if(_0x361072[_0x5ba37b(0xb1)]===0x0)return _0x5709b3?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x5ba37b(0xc4);const _0x5cf1c0=['\x20\x20'+_0x361072[_0x5ba37b(0xb1)]+_0x5ba37b(0xc3)];for(const _0x4f876f of _0x361072){_0x5cf1c0[_0x5ba37b(0xc0)](_0x5ba37b(0xc6)+_0x4f876f['label']+'\x20('+_0x4f876f[_0x5ba37b(0xb9)]+')');}return _0x5cf1c0[_0x5ba37b(0xbd)]('\x0a');}export function renderUpdateSummary(_0x59dd9e,_0x3d751a){const _0x2af274=a85_0x41ca;if(_0x59dd9e[_0x2af274(0xb1)]===0x0)return _0x2af274(0xc7);const _0x16581a=['\x20\x20'+_0x59dd9e[_0x2af274(0xb1)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x2af274(0xbb)+(_0x3d751a[0x0]??_0x2af274(0xc8)),_0x2af274(0xb4)+(_0x3d751a[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x59dd9e[_0x2af274(0xbd)](',\x20')];return _0x16581a['join']('\x0a');}function a85_0x4a56(){const _0x2e9a6e=['81776ASDXwG','\x20\x20\x20\x20JS:\x20\x20','max','join','Platform','25ynUjzA','push','2962386COrBiU','955850dWEqcg','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20No\x20pages\x20to\x20sync.','6312GnMYgL','\x20\x20\x20\x20•\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','(unchanged)','test','local','map','4361vNtzvu','971521oIRbGr','showOnline','length','repeat','Local','\x20\x20\x20\x20CSS:\x20','3331230cUykGa','13939137CdStaa','20gyRsgB','label','path'];a85_0x4a56=function(){return _0x2e9a6e;};return a85_0x4a56();}
@@ -1 +1 @@
1
- (function(_0x2698ea,_0x3e53e3){var _0x404ec8=a86_0x2a9e,_0x5bd289=_0x2698ea();while(!![]){try{var _0x15800a=-parseInt(_0x404ec8(0x17d))/0x1*(-parseInt(_0x404ec8(0x17e))/0x2)+parseInt(_0x404ec8(0x17a))/0x3+-parseInt(_0x404ec8(0x17f))/0x4+parseInt(_0x404ec8(0x179))/0x5*(parseInt(_0x404ec8(0x17c))/0x6)+-parseInt(_0x404ec8(0x17b))/0x7*(parseInt(_0x404ec8(0x178))/0x8)+-parseInt(_0x404ec8(0x181))/0x9+-parseInt(_0x404ec8(0x180))/0xa;if(_0x15800a===_0x3e53e3)break;else _0x5bd289['push'](_0x5bd289['shift']());}catch(_0x54155e){_0x5bd289['push'](_0x5bd289['shift']());}}}(a86_0x54ff,0x75eba));function a86_0x2a9e(_0x1b0cdd,_0x26292a){_0x1b0cdd=_0x1b0cdd-0x178;var _0x54ff77=a86_0x54ff();var _0x2a9ed2=_0x54ff77[_0x1b0cdd];return _0x2a9ed2;}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';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';function a86_0x54ff(){var _0x3ea405=['2434653DfdVol','8jfprMe','310825dgAros','1210995CCxYcY','905478JdfTos','18jBONHh','9190Jmdztd','180inYpGe','63684ONHEus','5184660tIDsgR'];a86_0x54ff=function(){return _0x3ea405;};return a86_0x54ff();}export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x3140c7,_0x4495c8){var _0x96ad37=a86_0x4a05,_0x280682=_0x3140c7();while(!![]){try{var _0x5c4de9=parseInt(_0x96ad37(0xa5))/0x1+-parseInt(_0x96ad37(0x9e))/0x2*(parseInt(_0x96ad37(0x9f))/0x3)+-parseInt(_0x96ad37(0xa6))/0x4*(parseInt(_0x96ad37(0x9d))/0x5)+parseInt(_0x96ad37(0xa1))/0x6*(-parseInt(_0x96ad37(0xa2))/0x7)+-parseInt(_0x96ad37(0xa0))/0x8*(-parseInt(_0x96ad37(0x9b))/0x9)+parseInt(_0x96ad37(0x9c))/0xa+parseInt(_0x96ad37(0xa4))/0xb*(parseInt(_0x96ad37(0xa3))/0xc);if(_0x5c4de9===_0x4495c8)break;else _0x280682['push'](_0x280682['shift']());}catch(_0x2555d8){_0x280682['push'](_0x280682['shift']());}}}(a86_0x3c42,0xcc2ce));function a86_0x4a05(_0x20608a,_0x17bbd1){_0x20608a=_0x20608a-0x9b;var _0x3c429b=a86_0x3c42();var _0x4a05a1=_0x3c429b[_0x20608a];return _0x4a05a1;}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 a86_0x3c42(){var _0x32384b=['1765SDIwLA','5714MstRMU','1599LNGhbm','608xmxCNw','4958754aGSJBt','7dUAeya','564fpoIYi','312334Jtscxe','687301WkAsLj','2388uMCqhx','155169DfdiNf','641480OuAwIN'];a86_0x3c42=function(){return _0x32384b;};return a86_0x3c42();}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(_0x3631a2,_0x4297d6){const _0x5ddfa4=a87_0xf201,_0xb3321b=_0x3631a2();while(!![]){try{const _0x1a8685=parseInt(_0x5ddfa4(0x15e))/0x1+-parseInt(_0x5ddfa4(0x161))/0x2*(-parseInt(_0x5ddfa4(0x15d))/0x3)+parseInt(_0x5ddfa4(0x152))/0x4*(parseInt(_0x5ddfa4(0x166))/0x5)+parseInt(_0x5ddfa4(0x155))/0x6*(parseInt(_0x5ddfa4(0x14f))/0x7)+parseInt(_0x5ddfa4(0x179))/0x8+parseInt(_0x5ddfa4(0x168))/0x9+parseInt(_0x5ddfa4(0x159))/0xa*(-parseInt(_0x5ddfa4(0x150))/0xb);if(_0x1a8685===_0x4297d6)break;else _0xb3321b['push'](_0xb3321b['shift']());}catch(_0x1e1ba6){_0xb3321b['push'](_0xb3321b['shift']());}}}(a87_0x4e12,0xf3630));import a87_0x1bd4e8 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x148982 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2c626d){return _0x2c626d['catch'](_0x32c20d=>{const _0x12ffea=a87_0xf201;if(_0x32c20d?.[_0x12ffea(0x17d)]===_0x12ffea(0x16b))throw CliErrors['cancelled'](_0x12ffea(0x175));throw _0x32c20d;});}export function startSpinner(_0x187ce1){return a87_0x148982({'text':_0x187ce1,'color':'cyan'})['start']();}export function stopSpinner(_0x98596,_0x1598cc,_0x30b648){const _0x41fac2=a87_0xf201;_0x30b648?_0x98596[_0x41fac2(0x14e)](_0x1598cc):_0x98596[_0x41fac2(0x178)](_0x1598cc);}function a87_0x4e12(){const _0x3b2211=['Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','2ywiZBk','isTTY','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','has','error','20NrTyet','[already\x20on\x20platform]','10582560XxYUmp','map','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','ExitPromptError','trim','\x20\x20CSS\x20URL:','CSS\x20URL\x20check\x20failed','JS\x20URL\x20check\x20failed','includes','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','red','JS\x20URL\x20checked','cancelled','Cancelled.','CSS\x20URL\x20checked','\x20\x20Checking\x20CSS\x20URL\x20reachability...','fail','13107720PnECec','No\x20local\x20pages\x20found.','green','filter','name','length','stdin','succeed','7YUgdRn','85173198mrkXAL','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','1579876ZBRKzq','label','\x20\x20Checking\x20JS\x20URL\x20reachability...','5910522udGaZP','test','path','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','10lzpLyu','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20JS\x20URL:','No\x20menus\x20selected.','5686287nQixnb','1465233quLesE','[new]'];a87_0x4e12=function(){return _0x3b2211;};return a87_0x4e12();}export async function askConfirm(_0x321f8c){return onCancel(confirm({'message':_0x321f8c,'theme':{'prefix':''}}));}export async function askJsUrl(_0x32eebe){const _0x3fa3f7=a87_0xf201;while(!![]){const _0x583a67=await onCancel(input({'message':_0x3fa3f7(0x15b),'default':_0x32eebe,'theme':{'prefix':''}}));if(_0x583a67[_0x3fa3f7(0x16c)]()==='')throw CliErrors['cancelled'](_0x3fa3f7(0x175));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3fa3f7(0x156)](_0x583a67[_0x3fa3f7(0x16c)]())){console['error'](a87_0x1bd4e8[_0x3fa3f7(0x172)](_0x3fa3f7(0x158)));continue;}const _0x5b49ac=startSpinner(_0x3fa3f7(0x154));try{const _0x3b2a57=await isUrlReachable(_0x583a67[_0x3fa3f7(0x16c)]());stopSpinner(_0x5b49ac,_0x3fa3f7(0x173),_0x3b2a57);if(!_0x3b2a57){console['error'](a87_0x1bd4e8[_0x3fa3f7(0x172)](_0x3fa3f7(0x171)));continue;}return _0x583a67[_0x3fa3f7(0x16c)]();}catch(_0x350c70){stopSpinner(_0x5b49ac,_0x3fa3f7(0x16f),![]);throw _0x350c70;}}}export async function askCssUrl(_0x1d49cd){const _0x16574f=a87_0xf201;while(!![]){const _0x37b365=await onCancel(input({'message':_0x16574f(0x16d),'default':_0x1d49cd,'theme':{'prefix':''}}));if(_0x37b365[_0x16574f(0x16c)]()==='')throw CliErrors[_0x16574f(0x174)](_0x16574f(0x175));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x16574f(0x156)](_0x37b365['trim']())){console['error'](a87_0x1bd4e8[_0x16574f(0x172)](_0x16574f(0x16a)));continue;}const _0x3b7d62=startSpinner(_0x16574f(0x177));try{const _0xe6f94=await isUrlReachable(_0x37b365[_0x16574f(0x16c)]());stopSpinner(_0x3b7d62,_0x16574f(0x176),_0xe6f94);if(!_0xe6f94){console[_0x16574f(0x165)](a87_0x1bd4e8['red'](_0x16574f(0x15a)));continue;}return _0x37b365['trim']();}catch(_0x20dafb){stopSpinner(_0x3b7d62,_0x16574f(0x16e),![]);throw _0x20dafb;}}}export async function selectPages(_0x19e5d7,_0x11dbe5,_0x5e7906){const _0x39515f=a87_0xf201,_0x5d9fb2=_0x19e5d7[_0x39515f(0x169)](_0xab75da=>({'name':_0xab75da[_0x39515f(0x153)]+'\x20\x20'+(_0x11dbe5[_0x39515f(0x164)](_0xab75da[_0x39515f(0x157)])?a87_0x1bd4e8['gray'](_0x39515f(0x167)):a87_0x1bd4e8[_0x39515f(0x17b)](_0x39515f(0x15f))),'value':_0xab75da[_0x39515f(0x153)],'checked':_0x5e7906?_0x5e7906[_0x39515f(0x170)](_0xab75da[_0x39515f(0x153)]):!_0x11dbe5[_0x39515f(0x164)](_0xab75da[_0x39515f(0x157)])}));if(_0x5d9fb2[_0x39515f(0x17e)]===0x0)throw new Error(_0x39515f(0x17a));const _0x1274be=await onCancel(checkbox({'message':_0x39515f(0x151),'choices':_0x5d9fb2,'loop':![],'theme':{'prefix':''}}));if(_0x1274be[_0x39515f(0x17e)]===0x0)throw new Error(_0x39515f(0x15c));return _0x19e5d7[_0x39515f(0x17c)](_0x51dbeb=>_0x1274be[_0x39515f(0x170)](_0x51dbeb[_0x39515f(0x153)]));}export function isInteractive(){const _0x47017e=a87_0xf201;return process[_0x47017e(0x14d)][_0x47017e(0x162)]===!![];}function a87_0xf201(_0xaecc8c,_0x35f1c2){_0xaecc8c=_0xaecc8c-0x14d;const _0x4e1289=a87_0x4e12();let _0xf20146=_0x4e1289[_0xaecc8c];return _0xf20146;}export function requireInteractive(){const _0x2c04a7=a87_0xf201;if(!isInteractive())throw new Error(_0x2c04a7(0x163)+_0x2c04a7(0x160));}
1
+ (function(_0x221c1e,_0x25f4d1){const _0x538835=a87_0x3e2d,_0x29e620=_0x221c1e();while(!![]){try{const _0x2594bd=parseInt(_0x538835(0x80))/0x1*(parseInt(_0x538835(0x7b))/0x2)+parseInt(_0x538835(0x81))/0x3*(-parseInt(_0x538835(0x89))/0x4)+-parseInt(_0x538835(0x9e))/0x5*(-parseInt(_0x538835(0xa0))/0x6)+-parseInt(_0x538835(0x87))/0x7*(parseInt(_0x538835(0x70))/0x8)+-parseInt(_0x538835(0x8d))/0x9+-parseInt(_0x538835(0x79))/0xa*(-parseInt(_0x538835(0x9b))/0xb)+parseInt(_0x538835(0x7e))/0xc*(parseInt(_0x538835(0x6f))/0xd);if(_0x2594bd===_0x25f4d1)break;else _0x29e620['push'](_0x29e620['shift']());}catch(_0x47e3ce){_0x29e620['push'](_0x29e620['shift']());}}}(a87_0x120b,0x96d5c));import a87_0x18519c from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x34f73a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5c8f23){return _0x5c8f23['catch'](_0x4251fd=>{const _0x3548a0=a87_0x3e2d;if(_0x4251fd?.[_0x3548a0(0x8b)]==='ExitPromptError')throw CliErrors['cancelled'](_0x3548a0(0x7d));throw _0x4251fd;});}export function startSpinner(_0x1c02e4){const _0x4e5a68=a87_0x3e2d;return a87_0x34f73a({'text':_0x1c02e4,'color':_0x4e5a68(0x7c)})[_0x4e5a68(0x84)]();}export function stopSpinner(_0x16941a,_0x1b8f07,_0x1cbacb){const _0x55c529=a87_0x3e2d;_0x1cbacb?_0x16941a[_0x55c529(0x95)](_0x1b8f07):_0x16941a['fail'](_0x1b8f07);}function a87_0x120b(){const _0xf61a68=['20wssIco','No\x20menus\x20selected.','name','label','1655685OMrIEP','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','red','filter','\x20\x20JS\x20URL:','stdin','error','length','succeed','CSS\x20URL\x20check\x20failed','[new]','path','gray','JS\x20URL\x20check\x20failed','3004177kKLMgt','[already\x20on\x20platform]','\x20\x20CSS\x20URL:','2294655hevfTT','CSS\x20URL\x20checked','6LWvajC','38194IzPzvm','150776BhusQR','JS\x20URL\x20checked','\x20\x20Checking\x20JS\x20URL\x20reachability...','trim','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','No\x20local\x20pages\x20found.','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','green','10pdGEgU','test','1403806qwpEYl','cyan','Cancelled.','2676OuCQnQ','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','1STHKkF','376611epVaxk','isTTY','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','start','cancelled','map','245NtJbcY','has'];a87_0x120b=function(){return _0xf61a68;};return a87_0x120b();}function a87_0x3e2d(_0x183dfc,_0x7f6ac3){_0x183dfc=_0x183dfc-0x6f;const _0x120be9=a87_0x120b();let _0x3e2d28=_0x120be9[_0x183dfc];return _0x3e2d28;}export async function askConfirm(_0x4af7a9){return onCancel(confirm({'message':_0x4af7a9,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3c7c7e){const _0x495244=a87_0x3e2d;while(!![]){const _0x28a377=await onCancel(input({'message':_0x495244(0x91),'default':_0x3c7c7e,'theme':{'prefix':''}}));if(_0x28a377[_0x495244(0x73)]()==='')throw CliErrors[_0x495244(0x85)](_0x495244(0x7d));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x495244(0x7a)](_0x28a377[_0x495244(0x73)]())){console[_0x495244(0x93)](a87_0x18519c[_0x495244(0x8f)](_0x495244(0x76)));continue;}const _0x4908ae=startSpinner(_0x495244(0x72));try{const _0x42a539=await isUrlReachable(_0x28a377[_0x495244(0x73)]());stopSpinner(_0x4908ae,_0x495244(0x71),_0x42a539);if(!_0x42a539){console[_0x495244(0x93)](a87_0x18519c[_0x495244(0x8f)](_0x495244(0x83)));continue;}return _0x28a377[_0x495244(0x73)]();}catch(_0x20dbc4){stopSpinner(_0x4908ae,_0x495244(0x9a),![]);throw _0x20dbc4;}}}export async function askCssUrl(_0x4ed056){const _0x5f1312=a87_0x3e2d;while(!![]){const _0x4c9585=await onCancel(input({'message':_0x5f1312(0x9d),'default':_0x4ed056,'theme':{'prefix':''}}));if(_0x4c9585[_0x5f1312(0x73)]()==='')throw CliErrors[_0x5f1312(0x85)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5f1312(0x7a)](_0x4c9585[_0x5f1312(0x73)]())){console[_0x5f1312(0x93)](a87_0x18519c[_0x5f1312(0x8f)](_0x5f1312(0x8e)));continue;}const _0x383be4=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x58c168=await isUrlReachable(_0x4c9585[_0x5f1312(0x73)]());stopSpinner(_0x383be4,_0x5f1312(0x9f),_0x58c168);if(!_0x58c168){console[_0x5f1312(0x93)](a87_0x18519c[_0x5f1312(0x8f)](_0x5f1312(0x77)));continue;}return _0x4c9585[_0x5f1312(0x73)]();}catch(_0x1b06aa){stopSpinner(_0x383be4,_0x5f1312(0x96),![]);throw _0x1b06aa;}}}export async function selectPages(_0x5d68a4,_0x5d1983,_0x792d08){const _0x3969cc=a87_0x3e2d,_0x2c589e=_0x5d68a4[_0x3969cc(0x86)](_0x30d77a=>({'name':_0x30d77a[_0x3969cc(0x8c)]+'\x20\x20'+(_0x5d1983['has'](_0x30d77a[_0x3969cc(0x98)])?a87_0x18519c[_0x3969cc(0x99)](_0x3969cc(0x9c)):a87_0x18519c[_0x3969cc(0x78)](_0x3969cc(0x97))),'value':_0x30d77a[_0x3969cc(0x8c)],'checked':_0x792d08?_0x792d08['includes'](_0x30d77a[_0x3969cc(0x8c)]):!_0x5d1983[_0x3969cc(0x88)](_0x30d77a[_0x3969cc(0x98)])}));if(_0x2c589e[_0x3969cc(0x94)]===0x0)throw new Error(_0x3969cc(0x75));const _0x43f15e=await onCancel(checkbox({'message':_0x3969cc(0x74),'choices':_0x2c589e,'loop':![],'theme':{'prefix':''}}));if(_0x43f15e['length']===0x0)throw new Error(_0x3969cc(0x8a));return _0x5d68a4[_0x3969cc(0x90)](_0x18356f=>_0x43f15e['includes'](_0x18356f[_0x3969cc(0x8c)]));}export function isInteractive(){const _0x453b0f=a87_0x3e2d;return process[_0x453b0f(0x92)][_0x453b0f(0x82)]===!![];}export function requireInteractive(){const _0x28a901=a87_0x3e2d;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x28a901(0x7f));}
@@ -1 +1 @@
1
- function a88_0x2a3b(_0x3cd1e0,_0x5ca85a){_0x3cd1e0=_0x3cd1e0-0x1a3;const _0x3670b1=a88_0x3670();let _0x2a3bc2=_0x3670b1[_0x3cd1e0];return _0x2a3bc2;}const a88_0x405379=a88_0x2a3b;(function(_0x4f9ff0,_0x534311){const _0x5a1b73=a88_0x2a3b,_0x25eeee=_0x4f9ff0();while(!![]){try{const _0x1bd51a=-parseInt(_0x5a1b73(0x1b3))/0x1+-parseInt(_0x5a1b73(0x1ab))/0x2+parseInt(_0x5a1b73(0x1af))/0x3*(parseInt(_0x5a1b73(0x1aa))/0x4)+parseInt(_0x5a1b73(0x1b9))/0x5+-parseInt(_0x5a1b73(0x1ba))/0x6*(-parseInt(_0x5a1b73(0x1b7))/0x7)+parseInt(_0x5a1b73(0x1bc))/0x8*(-parseInt(_0x5a1b73(0x1a3))/0x9)+parseInt(_0x5a1b73(0x1a7))/0xa;if(_0x1bd51a===_0x534311)break;else _0x25eeee['push'](_0x25eeee['shift']());}catch(_0x3381d4){_0x25eeee['push'](_0x25eeee['shift']());}}}(a88_0x3670,0x82e26));function a88_0x3670(){const _0x235038=['replace','index.tsx','2138523CEVtoR','filter','isDirectory','split','871280pvXkrT','trim','concat','.tsx','16681uthWwc','match','747340WAOfPa','1806pCOVTR','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','3976xIMxtQ','push','7821KtMYoE','join','cwd','endsWith','9916790Azvmhb','utf-8','src/pages','4cMLKtD','1463992ujnIme','path'];a88_0x3670=function(){return _0x235038;};return a88_0x3670();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x405379(0x1a5)](),a88_0x405379(0x1a9));export function extractTitleFromComment(_0x5201d5){const _0x3ee136=a88_0x405379;try{const _0x3768b5=readFileSync(_0x5201d5,_0x3ee136(0x1a8)),_0x402db8=_0x3768b5[_0x3ee136(0x1b8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x402db8&&_0x402db8[0x1]){const _0x4c67dc=_0x402db8[0x1],_0x22fdf6=_0x4c67dc[_0x3ee136(0x1b8)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x22fdf6&&_0x22fdf6[0x1])return _0x22fdf6[0x1][_0x3ee136(0x1b4)]();}let _0x1d3763=null;const _0x428f78=_0x3768b5[_0x3ee136(0x1b8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x428f78&&_0x428f78[0x1]&&(_0x1d3763=_0x428f78[0x1]);if(!_0x1d3763){const _0x1d9a0c=_0x3768b5[_0x3ee136(0x1b8)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1d9a0c&&_0x1d9a0c[0x1]&&(_0x1d3763=_0x1d9a0c[0x1]);}if(_0x1d3763){const _0x2fc696=new RegExp('\x5cb'+_0x1d3763+_0x3ee136(0x1bb)),_0x200c04=_0x3768b5[_0x3ee136(0x1b8)](_0x2fc696);if(_0x200c04&&_0x200c04[0x1])return _0x200c04[0x1];return _0x1d3763;}return null;}catch(_0x53413f){return null;}}export function getLocalPages(_0x3002ed=pagesDir,_0x453e6a=pagesDir){const _0x265a17=a88_0x405379;let _0x91a0bc=[];const _0x122483=readdirSync(_0x3002ed);return _0x122483['forEach'](_0x26c68d=>{const _0x3ea52f=a88_0x2a3b,_0x30b5f6=join(_0x3002ed,_0x26c68d),_0x3d5a8d=statSync(_0x30b5f6);if(_0x3d5a8d&&_0x3d5a8d[_0x3ea52f(0x1b1)]())_0x91a0bc=_0x91a0bc[_0x3ea52f(0x1b5)](getLocalPages(_0x30b5f6,_0x453e6a));else{if(_0x26c68d[_0x3ea52f(0x1a6)](_0x3ea52f(0x1b6))){let _0x10bc73=relative(_0x453e6a,_0x30b5f6);_0x10bc73['endsWith'](_0x3ea52f(0x1ae))?_0x10bc73=_0x10bc73[_0x3ea52f(0x1ad)](/index\.tsx$/,''):_0x10bc73=_0x10bc73['replace'](/\.tsx$/,'');_0x10bc73[_0x3ea52f(0x1a6)](sep)&&(_0x10bc73=_0x10bc73['slice'](0x0,-0x1));const _0x131f26=_0x10bc73[_0x3ea52f(0x1b2)](sep)[_0x3ea52f(0x1a4)]('/'),_0x36f882=extractTitleFromComment(_0x30b5f6),_0x1a3a56=_0x36f882||_0x131f26;_0x91a0bc[_0x3ea52f(0x1bd)]({'path':_0x131f26['replaceAll']('$',':'),'label':_0x1a3a56});}}}),_0x91a0bc[_0x265a17(0x1b0)](_0x1a9890=>_0x1a9890[_0x265a17(0x1ac)]!=='');}
1
+ const a88_0x174338=a88_0x4b0d;(function(_0x4803c5,_0x5d60ab){const _0x2348fc=a88_0x4b0d,_0x34198d=_0x4803c5();while(!![]){try{const _0xcb30dd=parseInt(_0x2348fc(0x132))/0x1+-parseInt(_0x2348fc(0x13d))/0x2+parseInt(_0x2348fc(0x140))/0x3+-parseInt(_0x2348fc(0x13b))/0x4*(-parseInt(_0x2348fc(0x12c))/0x5)+-parseInt(_0x2348fc(0x134))/0x6*(-parseInt(_0x2348fc(0x13f))/0x7)+parseInt(_0x2348fc(0x13e))/0x8*(parseInt(_0x2348fc(0x133))/0x9)+parseInt(_0x2348fc(0x12d))/0xa*(-parseInt(_0x2348fc(0x12a))/0xb);if(_0xcb30dd===_0x5d60ab)break;else _0x34198d['push'](_0x34198d['shift']());}catch(_0x40da1b){_0x34198d['push'](_0x34198d['shift']());}}}(a88_0x5d94,0xb0d14));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x174338(0x130));function a88_0x4b0d(_0x363e28,_0x1ce693){_0x363e28=_0x363e28-0x129;const _0x5d94c9=a88_0x5d94();let _0x4b0d61=_0x5d94c9[_0x363e28];return _0x4b0d61;}export function extractTitleFromComment(_0x534110){const _0x28b1dd=a88_0x174338;try{const _0x42f226=readFileSync(_0x534110,'utf-8'),_0x5125b2=_0x42f226[_0x28b1dd(0x129)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5125b2&&_0x5125b2[0x1]){const _0x2d37a7=_0x5125b2[0x1],_0x2cc60c=_0x2d37a7['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2cc60c&&_0x2cc60c[0x1])return _0x2cc60c[0x1][_0x28b1dd(0x136)]();}let _0x56aa1c=null;const _0x23c599=_0x42f226[_0x28b1dd(0x129)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x23c599&&_0x23c599[0x1]&&(_0x56aa1c=_0x23c599[0x1]);if(!_0x56aa1c){const _0x598d7e=_0x42f226[_0x28b1dd(0x129)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x598d7e&&_0x598d7e[0x1]&&(_0x56aa1c=_0x598d7e[0x1]);}if(_0x56aa1c){const _0x82456b=new RegExp('\x5cb'+_0x56aa1c+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x4e0647=_0x42f226[_0x28b1dd(0x129)](_0x82456b);if(_0x4e0647&&_0x4e0647[0x1])return _0x4e0647[0x1];return _0x56aa1c;}return null;}catch(_0x3a437a){return null;}}function a88_0x5d94(){const _0x8156a0=['11979171OvndAv','6TQmabZ','endsWith','trim','split','replace','replaceAll','forEach','4DfVWCH','isDirectory','1775588EBoSiV','8ypkKCu','8160978uRkfWX','3875913IonqbM','match','13112bDWiRi','push','5493650nFwPDj','31420FMDBnf','concat','.tsx','src/pages','index.tsx','469728cqsOsE'];a88_0x5d94=function(){return _0x8156a0;};return a88_0x5d94();}export function getLocalPages(_0x412601=pagesDir,_0x20d5ff=pagesDir){const _0xcfe3ac=a88_0x174338;let _0x4995ae=[];const _0x2d80ca=readdirSync(_0x412601);return _0x2d80ca[_0xcfe3ac(0x13a)](_0x2235b5=>{const _0x57a31e=_0xcfe3ac,_0x171593=join(_0x412601,_0x2235b5),_0x10a6f0=statSync(_0x171593);if(_0x10a6f0&&_0x10a6f0[_0x57a31e(0x13c)]())_0x4995ae=_0x4995ae[_0x57a31e(0x12e)](getLocalPages(_0x171593,_0x20d5ff));else{if(_0x2235b5[_0x57a31e(0x135)](_0x57a31e(0x12f))){let _0x4a20af=relative(_0x20d5ff,_0x171593);_0x4a20af[_0x57a31e(0x135)](_0x57a31e(0x131))?_0x4a20af=_0x4a20af[_0x57a31e(0x138)](/index\.tsx$/,''):_0x4a20af=_0x4a20af[_0x57a31e(0x138)](/\.tsx$/,'');_0x4a20af[_0x57a31e(0x135)](sep)&&(_0x4a20af=_0x4a20af['slice'](0x0,-0x1));const _0x7189c=_0x4a20af[_0x57a31e(0x137)](sep)['join']('/'),_0x3ff423=extractTitleFromComment(_0x171593),_0x59cbc2=_0x3ff423||_0x7189c;_0x4995ae[_0x57a31e(0x12b)]({'path':_0x7189c[_0x57a31e(0x139)]('$',':'),'label':_0x59cbc2});}}}),_0x4995ae['filter'](_0x4ed43d=>_0x4ed43d['path']!=='');}
@@ -1 +1 @@
1
- (function(_0x10d3ce,_0x4fa682){const _0x370a1a=a89_0x5610,_0x1eb1e3=_0x10d3ce();while(!![]){try{const _0x2ba883=parseInt(_0x370a1a(0x1d7))/0x1*(-parseInt(_0x370a1a(0x1cb))/0x2)+parseInt(_0x370a1a(0x1cd))/0x3*(-parseInt(_0x370a1a(0x1c1))/0x4)+parseInt(_0x370a1a(0x1c0))/0x5*(parseInt(_0x370a1a(0x1d2))/0x6)+-parseInt(_0x370a1a(0x1d1))/0x7+parseInt(_0x370a1a(0x1bf))/0x8*(-parseInt(_0x370a1a(0x1cc))/0x9)+parseInt(_0x370a1a(0x1df))/0xa+-parseInt(_0x370a1a(0x1d4))/0xb*(-parseInt(_0x370a1a(0x1c3))/0xc);if(_0x2ba883===_0x4fa682)break;else _0x1eb1e3['push'](_0x1eb1e3['shift']());}catch(_0x36be02){_0x1eb1e3['push'](_0x1eb1e3['shift']());}}}(a89_0x1e24,0xac26c));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(_0x2cf433){const _0x24c187=a89_0x5610,_0x415468=[];return!isValidJsHttpsUrl(_0x2cf433)&&_0x415468[_0x24c187(0x1c6)](_0x24c187(0x1cf)),{'ok':_0x415468['length']===0x0,'errors':_0x415468};}export function validateCssUrl(_0x44184e){const _0x9e7bb3=a89_0x5610,_0x13585c=[];return!isValidCssHttpsUrl(_0x44184e)&&_0x13585c[_0x9e7bb3(0x1c6)](_0x9e7bb3(0x1ca)),{'ok':_0x13585c['length']===0x0,'errors':_0x13585c};}export async function validateJsUrlReachable(_0x55e64d){const _0x5634a5=a89_0x5610,_0x36d291=validateJsUrl(_0x55e64d);if(!_0x36d291['ok'])return _0x36d291;const _0x2959f0=await isUrlReachable(_0x55e64d);if(!_0x2959f0)_0x36d291['errors']['push'](_0x5634a5(0x1d5));return{'ok':_0x36d291['errors']['length']===0x0,'errors':_0x36d291[_0x5634a5(0x1c2)]};}function a89_0x1e24(){const _0x4d61de=['104wVjpvl','10mviktM','8vWFUTQ','errors','1044OjjHTQ','resources','No\x20local\x20pages\x20matched\x20labels:\x20','push','path','status','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','370508LfKbhr','88353SAdAzB','1760142dgPbXv','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','join','729344VicZyy','3231144Kmbbha','value','147851TNYwgn','JS\x20URL\x20is\x20unreachable','find','3pWVhLA','filter','has','extend','length','CSS\x20URL\x20is\x20unreachable','map','label','4197200sDQBkh'];a89_0x1e24=function(){return _0x4d61de;};return a89_0x1e24();}export async function validateCssUrlReachable(_0x140adb){const _0x141592=a89_0x5610,_0x1834c0=validateCssUrl(_0x140adb);if(!_0x1834c0['ok'])return _0x1834c0;const _0x3d8ad2=await isUrlReachable(_0x140adb);if(!_0x3d8ad2)_0x1834c0['errors'][_0x141592(0x1c6)](_0x141592(0x1dc));return{'ok':_0x1834c0[_0x141592(0x1c2)]['length']===0x0,'errors':_0x1834c0[_0x141592(0x1c2)]};}export function buildCompareRows(_0x347a10,_0x2e2eba){const _0x463a5f=a89_0x5610;return _0x347a10[_0x463a5f(0x1dd)](_0x43ffbd=>({'label':_0x43ffbd['label'],'path':_0x43ffbd['path'],'local':!![],'online':_0x2e2eba[_0x463a5f(0x1d9)](_0x43ffbd['path'])}));}export function filterNewPages(_0x25f2bd,_0x20653a,_0x2ea106){const _0x422ddb=a89_0x5610;if(_0x2ea106&&_0x2ea106[_0x422ddb(0x1db)]>0x0){const _0x4f874f=new Set(_0x2ea106['map'](_0x30e0b7=>_0x30e0b7['trim']())),_0x37a685=_0x25f2bd[_0x422ddb(0x1d8)](_0x1b7ba1=>_0x4f874f[_0x422ddb(0x1d9)](_0x1b7ba1['label']));if(_0x37a685[_0x422ddb(0x1db)]===0x0)throw new Error(_0x422ddb(0x1c5)+[..._0x4f874f][_0x422ddb(0x1d0)](',\x20'));return _0x37a685;}return _0x25f2bd[_0x422ddb(0x1d8)](_0x369aef=>!_0x20653a[_0x422ddb(0x1d9)](_0x369aef[_0x422ddb(0x1c7)]));}export function filterPagesByLabels(_0x1a2133,_0x9d9266){const _0x56772e=a89_0x5610,_0x378550=[],_0x249e7a=[];for(const _0x35e831 of _0x9d9266){const _0x33eaa1=_0x35e831[_0x56772e(0x1c9)](),_0x1fa08e=_0x1a2133[_0x56772e(0x1d6)](_0x3eddfe=>_0x3eddfe[_0x56772e(0x1de)]===_0x33eaa1);if(_0x1fa08e)_0x378550[_0x56772e(0x1c6)](_0x1fa08e);else _0x249e7a[_0x56772e(0x1c6)](_0x35e831);}return{'matched':_0x378550,'unmatched':_0x249e7a};}function a89_0x5610(_0x1f3d88,_0x1164b9){_0x1f3d88=_0x1f3d88-0x1bf;const _0x1e24d4=a89_0x1e24();let _0x5610dd=_0x1e24d4[_0x1f3d88];return _0x5610dd;}export async function doCreateMenus(_0xa3454,_0x5a0da0,_0x4e8a99,_0x590979){const _0x197239=a89_0x5610,_0x44e2f3=await createMenus(_0xa3454,_0x5a0da0,_0x4e8a99,_0x590979);return{'created':_0x44e2f3[_0x197239(0x1db)],'failed':0x0,'labels':_0x4e8a99['map'](_0x55ba24=>_0x55ba24['label']),'menus':_0x44e2f3};}export function filterMenusWithResources(_0x44f12b){const _0x4e07af=a89_0x5610;return _0x44f12b[_0x4e07af(0x1d8)](_0x591621=>_0x591621['resources'][_0x4e07af(0x1db)]>0x0);}export async function doUpdateCdnUrls(_0x64e47b,_0xbdc5b0,_0xe50b9c,_0xaa3f02){const _0x305766=a89_0x5610,_0x3d8405=_0xe50b9c[_0x305766(0x1d8)](_0x7e87a7=>_0x7e87a7[_0x305766(0x1c4)][_0x305766(0x1db)]>0x0),_0x110ff8=await Promise['allSettled'](_0x3d8405[_0x305766(0x1dd)](_0x55ea37=>updateMenuCdnUrl(_0x64e47b,_0xbdc5b0,{'id':_0x55ea37['id'],'label':_0x55ea37[_0x305766(0x1de)],'path':_0x55ea37['path'],'resources':_0xaa3f02,'extend':_0x55ea37[_0x305766(0x1da)]??null}))),_0x493ae9=_0x110ff8[_0x305766(0x1d8)](_0x464888=>_0x464888[_0x305766(0x1c8)]===_0x305766(0x1ce))[_0x305766(0x1dd)](_0x59ede2=>_0x59ede2[_0x305766(0x1d3)]),_0x2a508c=_0x110ff8[_0x305766(0x1d8)](_0x4b6a82=>_0x4b6a82[_0x305766(0x1c8)]==='rejected')['length'];return{'updated':_0x493ae9[_0x305766(0x1db)],'failed':_0x2a508c,'menus':_0x493ae9};}export async function fetchMenuData(_0x1b4555,_0x47db53){const _0x25a4ae=a89_0x5610,_0x49dd5c=getLocalPages(),_0x13fcb2=await getOnlineMenuList(_0x1b4555,_0x47db53),_0x4d2b29=new Set(_0x13fcb2['map'](_0x1c61f4=>_0x1c61f4[_0x25a4ae(0x1c7)]));return{'localPages':_0x49dd5c,'onlineMenuList':_0x13fcb2,'onlinePaths':_0x4d2b29};}export async function fetchOnlineMenuList(_0x162990,_0x3796cc){return getOnlineMenuList(_0x162990,_0x3796cc);}
1
+ (function(_0x344baa,_0x2ba9e1){const _0x1559d7=a89_0x4af7,_0x173ec5=_0x344baa();while(!![]){try{const _0x1b7ff3=parseInt(_0x1559d7(0xf2))/0x1*(-parseInt(_0x1559d7(0xe4))/0x2)+parseInt(_0x1559d7(0xea))/0x3+-parseInt(_0x1559d7(0xf0))/0x4*(parseInt(_0x1559d7(0xe9))/0x5)+-parseInt(_0x1559d7(0xdf))/0x6+-parseInt(_0x1559d7(0xdd))/0x7*(parseInt(_0x1559d7(0xe1))/0x8)+-parseInt(_0x1559d7(0xf3))/0x9+parseInt(_0x1559d7(0xe6))/0xa;if(_0x1b7ff3===_0x2ba9e1)break;else _0x173ec5['push'](_0x173ec5['shift']());}catch(_0x3594af){_0x173ec5['push'](_0x173ec5['shift']());}}}(a89_0x1a95,0xb1b63));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(_0x90d3fb){const _0xc226f8=a89_0x4af7,_0x4aacee=[];return!isValidJsHttpsUrl(_0x90d3fb)&&_0x4aacee['push'](_0xc226f8(0xf4)),{'ok':_0x4aacee['length']===0x0,'errors':_0x4aacee};}export function validateCssUrl(_0x45c4d3){const _0x16593d=a89_0x4af7,_0x168843=[];return!isValidCssHttpsUrl(_0x45c4d3)&&_0x168843['push'](_0x16593d(0xf8)),{'ok':_0x168843[_0x16593d(0xe8)]===0x0,'errors':_0x168843};}export async function validateJsUrlReachable(_0x290d0d){const _0x2aff29=a89_0x4af7,_0x5651ab=validateJsUrl(_0x290d0d);if(!_0x5651ab['ok'])return _0x5651ab;const _0xf00815=await isUrlReachable(_0x290d0d);if(!_0xf00815)_0x5651ab['errors'][_0x2aff29(0xef)](_0x2aff29(0xf1));return{'ok':_0x5651ab[_0x2aff29(0xde)][_0x2aff29(0xe8)]===0x0,'errors':_0x5651ab[_0x2aff29(0xde)]};}export async function validateCssUrlReachable(_0x2e828d){const _0x2212ef=a89_0x4af7,_0x457097=validateCssUrl(_0x2e828d);if(!_0x457097['ok'])return _0x457097;const _0x22700d=await isUrlReachable(_0x2e828d);if(!_0x22700d)_0x457097[_0x2212ef(0xde)][_0x2212ef(0xef)](_0x2212ef(0xe5));return{'ok':_0x457097[_0x2212ef(0xde)]['length']===0x0,'errors':_0x457097[_0x2212ef(0xde)]};}export function buildCompareRows(_0x518f1d,_0x60dcf6){const _0x344722=a89_0x4af7;return _0x518f1d[_0x344722(0xf5)](_0xc4cf25=>({'label':_0xc4cf25[_0x344722(0xe3)],'path':_0xc4cf25[_0x344722(0xe0)],'local':!![],'online':_0x60dcf6['has'](_0xc4cf25['path'])}));}export function filterNewPages(_0x4b3b0d,_0x467830,_0x4bb65a){const _0x1ac971=a89_0x4af7;if(_0x4bb65a&&_0x4bb65a['length']>0x0){const _0x4c6285=new Set(_0x4bb65a[_0x1ac971(0xf5)](_0x3e375b=>_0x3e375b[_0x1ac971(0xeb)]())),_0x4a9052=_0x4b3b0d[_0x1ac971(0xec)](_0x39218d=>_0x4c6285[_0x1ac971(0xe7)](_0x39218d[_0x1ac971(0xe3)]));if(_0x4a9052[_0x1ac971(0xe8)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x4c6285]['join'](',\x20'));return _0x4a9052;}return _0x4b3b0d[_0x1ac971(0xec)](_0x12ad1d=>!_0x467830['has'](_0x12ad1d['path']));}function a89_0x4af7(_0x2806d5,_0x17c107){_0x2806d5=_0x2806d5-0xdc;const _0x1a95f1=a89_0x1a95();let _0x4af713=_0x1a95f1[_0x2806d5];return _0x4af713;}export function filterPagesByLabels(_0x3bd713,_0x588816){const _0x1264f8=a89_0x4af7,_0x2ab568=[],_0x2dd5f8=[];for(const _0x583874 of _0x588816){const _0x358c08=_0x583874['trim'](),_0x5ca9c8=_0x3bd713[_0x1264f8(0xdc)](_0x28f7ad=>_0x28f7ad[_0x1264f8(0xe3)]===_0x358c08);if(_0x5ca9c8)_0x2ab568['push'](_0x5ca9c8);else _0x2dd5f8[_0x1264f8(0xef)](_0x583874);}return{'matched':_0x2ab568,'unmatched':_0x2dd5f8};}export async function doCreateMenus(_0x1f519f,_0x437ea6,_0x5c4005,_0x3854f0){const _0x50933f=a89_0x4af7,_0x315e45=await createMenus(_0x1f519f,_0x437ea6,_0x5c4005,_0x3854f0);return{'created':_0x315e45[_0x50933f(0xe8)],'failed':0x0,'labels':_0x5c4005[_0x50933f(0xf5)](_0xe2f7b2=>_0xe2f7b2['label']),'menus':_0x315e45};}export function filterMenusWithResources(_0x22c778){const _0x48befb=a89_0x4af7;return _0x22c778[_0x48befb(0xec)](_0x42f358=>_0x42f358[_0x48befb(0xee)][_0x48befb(0xe8)]>0x0);}export async function doUpdateCdnUrls(_0x95c902,_0x97322a,_0x1ee57f,_0x576ceb){const _0x440ea7=a89_0x4af7,_0x4e4191=_0x1ee57f[_0x440ea7(0xec)](_0x1c2251=>_0x1c2251['resources'][_0x440ea7(0xe8)]>0x0),_0x3d91b0=await Promise['allSettled'](_0x4e4191[_0x440ea7(0xf5)](_0x14a083=>updateMenuCdnUrl(_0x95c902,_0x97322a,{'id':_0x14a083['id'],'label':_0x14a083[_0x440ea7(0xe3)],'path':_0x14a083[_0x440ea7(0xe0)],'resources':_0x576ceb,'extend':_0x14a083[_0x440ea7(0xe2)]??null}))),_0x25ce94=_0x3d91b0[_0x440ea7(0xec)](_0x24efb9=>_0x24efb9['status']===_0x440ea7(0xf6))[_0x440ea7(0xf5)](_0x3ec4c5=>_0x3ec4c5[_0x440ea7(0xed)]),_0x1b80e4=_0x3d91b0[_0x440ea7(0xec)](_0x1498fb=>_0x1498fb['status']===_0x440ea7(0xf7))[_0x440ea7(0xe8)];return{'updated':_0x25ce94[_0x440ea7(0xe8)],'failed':_0x1b80e4,'menus':_0x25ce94};}export async function fetchMenuData(_0xdcd7f3,_0x45e5dc){const _0x475114=a89_0x4af7,_0x35e51=getLocalPages(),_0x4ec771=await getOnlineMenuList(_0xdcd7f3,_0x45e5dc),_0xc399f0=new Set(_0x4ec771[_0x475114(0xf5)](_0x5b55cf=>_0x5b55cf[_0x475114(0xe0)]));return{'localPages':_0x35e51,'onlineMenuList':_0x4ec771,'onlinePaths':_0xc399f0};}function a89_0x1a95(){const _0x31d353=['36251710kptEoP','has','length','45rxpWTX','4347627tjVlcK','trim','filter','value','resources','push','575204ECBSvl','JS\x20URL\x20is\x20unreachable','5146DHTBfZ','4335714BshgOx','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','map','fulfilled','rejected','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','find','91jLayuZ','errors','8135682LgHHgw','path','449752kqmaDx','extend','label','188YhrVBT','CSS\x20URL\x20is\x20unreachable'];a89_0x1a95=function(){return _0x31d353;};return a89_0x1a95();}export async function fetchOnlineMenuList(_0x38e456,_0x38be25){return getOnlineMenuList(_0x38e456,_0x38be25);}
@@ -1 +1 @@
1
- function a90_0x3adc(){const _0x47f829=['Fetched\x20','289348fPrrQb','/smartapi/menu/update','update-menu-cdn-url','2784oNdUaQ','label','/smartapi/menu/create','Menu\x20assets\x20synced:\x20','7JEZMJx','Create\x20menu\x20\x22','Menu\x20created\x20successfully:\x20','/smartapi/menu/find?appCode=','233358BOBPTr','children','10niSCOI','import','65336XPmZJT','flat','2978899mYMWpq','length','get-online-menu-list','POST','Update\x20menu\x20assets\x20\x22','898300ymWZmg','Creating\x20menu:\x20','path','procode','parse','3MCZjbt','map','Updating\x20menu\x20asset\x20links:\x20','create-menu','resources','push','extend','info','Batch\x20menu\x20creation\x20completed,\x20total\x20','Server\x20returned\x20empty\x20menu\x20list','1836JiMYvF','2365335rwBHjP','isArray'];a90_0x3adc=function(){return _0x47f829;};return a90_0x3adc();}(function(_0x354943,_0x337bb7){const _0x4f0e90=a90_0x40a9,_0x3a6670=_0x354943();while(!![]){try{const _0x45c45c=-parseInt(_0x4f0e90(0xce))/0x1*(parseInt(_0x4f0e90(0xd6))/0x2)+parseInt(_0x4f0e90(0xe2))/0x3*(parseInt(_0x4f0e90(0xf0))/0x4)+-parseInt(_0x4f0e90(0xd4))/0x5*(parseInt(_0x4f0e90(0xd2))/0x6)+parseInt(_0x4f0e90(0xed))/0x7+-parseInt(_0x4f0e90(0xf3))/0x8*(parseInt(_0x4f0e90(0xec))/0x9)+-parseInt(_0x4f0e90(0xdd))/0xa+parseInt(_0x4f0e90(0xd8))/0xb;if(_0x45c45c===_0x337bb7)break;else _0x3a6670['push'](_0x3a6670['shift']());}catch(_0x122b4c){_0x3a6670['push'](_0x3a6670['shift']());}}}(a90_0x3adc,0x34307));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a90_0x40a9(_0x55ff07,_0x48e4bb){_0x55ff07=_0x55ff07-0xce;const _0x3adc52=a90_0x3adc();let _0x40a96c=_0x3adc52[_0x55ff07];return _0x40a96c;}export async function getOnlineMenuList(_0x2004f0,_0x2dd4a4){const _0x51b980=a90_0x40a9,_0xf2d3b8=getEnv();logger[_0x51b980(0xe9)]('get-online-menu-list',isProduction(_0xf2d3b8)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x2004f0+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x2004f0+')');const _0x212c5a=await platformFetch(getApiDomain()+_0x51b980(0xd1)+_0x2004f0,{'cookie':_0x2dd4a4,'label':'Fetch\x20menu\x20list'});if(!_0x212c5a)return logger[_0x51b980(0xe9)]('get-online-menu-list',_0x51b980(0xeb)),[];return logger['info'](_0x51b980(0xda),_0x51b980(0xef)+_0x212c5a[_0x51b980(0xd9)]+'\x20online\x20menus\x20successfully'),_0x212c5a[_0x51b980(0xe3)](flattenMenuItem)[_0x51b980(0xd7)]();}function flattenMenuItem(_0x441ee1){const _0x6f3559=a90_0x40a9;let _0x454957=[];try{const _0x4b6691=_0x441ee1[_0x6f3559(0xe8)]?.[_0x6f3559(0xe6)];if(typeof _0x4b6691==='string'){const _0x1819f5=JSON[_0x6f3559(0xe1)](_0x4b6691);if(Array[_0x6f3559(0xee)](_0x1819f5))_0x454957=_0x1819f5[_0x6f3559(0xe3)](String);}else Array[_0x6f3559(0xee)](_0x4b6691)&&(_0x454957=_0x4b6691[_0x6f3559(0xe3)](String));}catch{}const _0x4d3793=[{'id':_0x441ee1['id'],'path':_0x441ee1[_0x6f3559(0xdf)],'label':_0x441ee1[_0x6f3559(0xf4)],'resources':_0x454957,'extend':_0x441ee1[_0x6f3559(0xe8)]??null}];if(_0x441ee1['children']&&_0x441ee1['children'][_0x6f3559(0xd9)]>0x0)for(const _0x280bae of _0x441ee1[_0x6f3559(0xd3)]){_0x4d3793[_0x6f3559(0xe7)](...flattenMenuItem(_0x280bae));}return _0x4d3793;}export async function createMenu(_0x1fb626,_0xe54d1c,_0x2289ed){const _0x511057=a90_0x40a9;logger['info'](_0x511057(0xe5),_0x511057(0xde)+_0x2289ed[_0x511057(0xf4)]+'\x20('+_0x2289ed[_0x511057(0xdf)]+')');const _0x2560c2={'appCode':_0x1fb626,'type':_0x511057(0xe0),'sort':0x0,'extend':{'loadScriptMode':_0x511057(0xd5),'resources':_0x2289ed[_0x511057(0xe6)]?JSON['stringify'](_0x2289ed[_0x511057(0xe6)]):undefined},..._0x2289ed},_0x295060=await platformFetch(getApiDomain()+_0x511057(0xf5),{'method':_0x511057(0xdb),'body':_0x2560c2,'cookie':_0xe54d1c,'label':_0x511057(0xcf)+_0x2289ed[_0x511057(0xf4)]+'\x22'});return logger[_0x511057(0xe9)](_0x511057(0xe5),_0x511057(0xd0)+_0x2289ed['label']),_0x295060;}async function createSingleMenu(_0x53b76c,_0x5312e8,_0x4ec58d,_0x3c599d){const _0x531462=a90_0x40a9,_0x33c6c4={'appCode':_0x53b76c,'type':_0x531462(0xe0),'sort':0x0,'extend':{'loadScriptMode':_0x531462(0xd5),'resources':_0x3c599d?JSON['stringify'](_0x3c599d):undefined},'label':_0x4ec58d['label'],'path':_0x4ec58d[_0x531462(0xdf)]},_0x33f6de=await platformFetch(getApiDomain()+_0x531462(0xf5),{'method':_0x531462(0xdb),'body':_0x33c6c4,'cookie':_0x5312e8,'label':_0x531462(0xcf)+_0x4ec58d[_0x531462(0xf4)]+'\x22'});return logger['info'](_0x531462(0xe5),_0x531462(0xd0)+_0x4ec58d[_0x531462(0xf4)]),_0x33f6de;}export async function createMenus(_0x13c18e,_0xcad15c,_0x15d9e7,_0x36d221){const _0x903075=a90_0x40a9;logger[_0x903075(0xe9)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x15d9e7['length']);const _0x5c545b=await Promise['all'](_0x15d9e7[_0x903075(0xe3)](_0x3e8f4a=>createSingleMenu(_0x13c18e,_0xcad15c,_0x3e8f4a,_0x36d221)));return logger['info']('create-menus',_0x903075(0xea)+_0x15d9e7[_0x903075(0xd9)]),_0x5c545b;}export async function updateMenuCdnUrl(_0x79fdf5,_0x5063a8,_0x4212a5){const _0x23bdfa=a90_0x40a9;logger[_0x23bdfa(0xe9)](_0x23bdfa(0xf2),_0x23bdfa(0xe4)+_0x4212a5['label']+'\x20('+_0x4212a5[_0x23bdfa(0xdf)]+')');const _0x1b13b7={'id':_0x4212a5['id'],'appCode':_0x79fdf5,'extend':{..._0x4212a5[_0x23bdfa(0xe8)]??{},'loadScriptMode':_0x23bdfa(0xd5),'resources':_0x4212a5[_0x23bdfa(0xe6)]?JSON['stringify'](_0x4212a5['resources']):undefined}},_0x402673=await platformFetch(getApiDomain()+_0x23bdfa(0xf1),{'method':_0x23bdfa(0xdb),'body':_0x1b13b7,'cookie':_0x5063a8,'label':_0x23bdfa(0xdc)+_0x4212a5[_0x23bdfa(0xf4)]+'\x22'});return logger['info'](_0x23bdfa(0xf2),_0x23bdfa(0xf6)+_0x4212a5[_0x23bdfa(0xf4)],undefined),_0x402673;}
1
+ function a90_0x4958(_0x156f6d,_0x1322be){_0x156f6d=_0x156f6d-0x1ea;const _0x2ec8a9=a90_0x2ec8();let _0x495846=_0x2ec8a9[_0x156f6d];return _0x495846;}(function(_0x5ac14c,_0x283c2e){const _0x9d7571=a90_0x4958,_0x757ab=_0x5ac14c();while(!![]){try{const _0x4cd08f=parseInt(_0x9d7571(0x1f2))/0x1+-parseInt(_0x9d7571(0x213))/0x2+parseInt(_0x9d7571(0x1ee))/0x3+-parseInt(_0x9d7571(0x1ea))/0x4*(parseInt(_0x9d7571(0x1f6))/0x5)+parseInt(_0x9d7571(0x1ed))/0x6*(-parseInt(_0x9d7571(0x209))/0x7)+parseInt(_0x9d7571(0x20c))/0x8+parseInt(_0x9d7571(0x1f9))/0x9*(parseInt(_0x9d7571(0x216))/0xa);if(_0x4cd08f===_0x283c2e)break;else _0x757ab['push'](_0x757ab['shift']());}catch(_0x5a6bd9){_0x757ab['push'](_0x757ab['shift']());}}}(a90_0x2ec8,0xa6e75));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';function a90_0x2ec8(){const _0x20e300=['Server\x20returned\x20empty\x20menu\x20list','55qAOGKU','POST','flat','9iRIPvb','parse','/smartapi/menu/update','path','import','create-menus','get-online-menu-list','Creating\x20menu:\x20','stringify','length','map','info','Update\x20menu\x20assets\x20\x22','update-menu-cdn-url','/smartapi/menu/create','Create\x20menu\x20\x22','35RDaHLX','push','isArray','3644848mzhhlu','children','resources','Menu\x20assets\x20synced:\x20','procode','Start\x20batch\x20menu\x20creation,\x20total\x20','extend','2158166OXHuAT','Menu\x20created\x20successfully:\x20','label','6544020mCNRBa','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','131608fxpjYT','all','\x20online\x20menus\x20successfully','271512GIGyVP','772449JjICFm','/smartapi/menu/find?appCode=','create-menu','Batch\x20menu\x20creation\x20completed,\x20total\x20','983411HJbFZJ','Fetch\x20menu\x20list','Updating\x20menu\x20asset\x20links:\x20'];a90_0x2ec8=function(){return _0x20e300;};return a90_0x2ec8();}export async function getOnlineMenuList(_0xe1fad7,_0x97b319){const _0x1dea3d=a90_0x4958,_0x1761c5=getEnv();logger['info']('get-online-menu-list',isProduction(_0x1761c5)?_0x1dea3d(0x217)+_0xe1fad7+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0xe1fad7+')');const _0x5c7227=await platformFetch(getApiDomain()+_0x1dea3d(0x1ef)+_0xe1fad7,{'cookie':_0x97b319,'label':_0x1dea3d(0x1f3)});if(!_0x5c7227)return logger[_0x1dea3d(0x204)](_0x1dea3d(0x1ff),_0x1dea3d(0x1f5)),[];return logger[_0x1dea3d(0x204)](_0x1dea3d(0x1ff),'Fetched\x20'+_0x5c7227[_0x1dea3d(0x202)]+_0x1dea3d(0x1ec)),_0x5c7227[_0x1dea3d(0x203)](flattenMenuItem)[_0x1dea3d(0x1f8)]();}function flattenMenuItem(_0x3e6707){const _0x2f5475=a90_0x4958;let _0x6dbba7=[];try{const _0x180996=_0x3e6707[_0x2f5475(0x212)]?.['resources'];if(typeof _0x180996==='string'){const _0x60e41e=JSON[_0x2f5475(0x1fa)](_0x180996);if(Array['isArray'](_0x60e41e))_0x6dbba7=_0x60e41e[_0x2f5475(0x203)](String);}else Array[_0x2f5475(0x20b)](_0x180996)&&(_0x6dbba7=_0x180996[_0x2f5475(0x203)](String));}catch{}const _0x12ece2=[{'id':_0x3e6707['id'],'path':_0x3e6707[_0x2f5475(0x1fc)],'label':_0x3e6707[_0x2f5475(0x215)],'resources':_0x6dbba7,'extend':_0x3e6707[_0x2f5475(0x212)]??null}];if(_0x3e6707[_0x2f5475(0x20d)]&&_0x3e6707['children'][_0x2f5475(0x202)]>0x0)for(const _0x396efd of _0x3e6707[_0x2f5475(0x20d)]){_0x12ece2[_0x2f5475(0x20a)](...flattenMenuItem(_0x396efd));}return _0x12ece2;}export async function createMenu(_0x51af18,_0x4c344b,_0x416864){const _0x24e69a=a90_0x4958;logger['info'](_0x24e69a(0x1f0),_0x24e69a(0x200)+_0x416864[_0x24e69a(0x215)]+'\x20('+_0x416864['path']+')');const _0x52334e={'appCode':_0x51af18,'type':_0x24e69a(0x210),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x416864[_0x24e69a(0x20e)]?JSON['stringify'](_0x416864[_0x24e69a(0x20e)]):undefined},..._0x416864},_0x3b382a=await platformFetch(getApiDomain()+_0x24e69a(0x207),{'method':_0x24e69a(0x1f7),'body':_0x52334e,'cookie':_0x4c344b,'label':_0x24e69a(0x208)+_0x416864['label']+'\x22'});return logger[_0x24e69a(0x204)](_0x24e69a(0x1f0),_0x24e69a(0x214)+_0x416864['label']),_0x3b382a;}async function createSingleMenu(_0x4c9bdb,_0x3275c3,_0x25c315,_0x440654){const _0x357914=a90_0x4958,_0x3f85b1={'appCode':_0x4c9bdb,'type':_0x357914(0x210),'sort':0x0,'extend':{'loadScriptMode':_0x357914(0x1fd),'resources':_0x440654?JSON[_0x357914(0x201)](_0x440654):undefined},'label':_0x25c315['label'],'path':_0x25c315[_0x357914(0x1fc)]},_0x3ce8e8=await platformFetch(getApiDomain()+_0x357914(0x207),{'method':'POST','body':_0x3f85b1,'cookie':_0x3275c3,'label':_0x357914(0x208)+_0x25c315[_0x357914(0x215)]+'\x22'});return logger[_0x357914(0x204)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x25c315[_0x357914(0x215)]),_0x3ce8e8;}export async function createMenus(_0x38ec3c,_0x51b277,_0x404d10,_0x2771bb){const _0x1a5b5e=a90_0x4958;logger[_0x1a5b5e(0x204)](_0x1a5b5e(0x1fe),_0x1a5b5e(0x211)+_0x404d10[_0x1a5b5e(0x202)]);const _0x3dbc6e=await Promise[_0x1a5b5e(0x1eb)](_0x404d10[_0x1a5b5e(0x203)](_0x23fa79=>createSingleMenu(_0x38ec3c,_0x51b277,_0x23fa79,_0x2771bb)));return logger['info']('create-menus',_0x1a5b5e(0x1f1)+_0x404d10[_0x1a5b5e(0x202)]),_0x3dbc6e;}export async function updateMenuCdnUrl(_0x550982,_0x2f1171,_0x3ce9c9){const _0x4a29fa=a90_0x4958;logger[_0x4a29fa(0x204)](_0x4a29fa(0x206),_0x4a29fa(0x1f4)+_0x3ce9c9[_0x4a29fa(0x215)]+'\x20('+_0x3ce9c9[_0x4a29fa(0x1fc)]+')');const _0x1cea48={'id':_0x3ce9c9['id'],'appCode':_0x550982,'extend':{..._0x3ce9c9[_0x4a29fa(0x212)]??{},'loadScriptMode':_0x4a29fa(0x1fd),'resources':_0x3ce9c9[_0x4a29fa(0x20e)]?JSON[_0x4a29fa(0x201)](_0x3ce9c9[_0x4a29fa(0x20e)]):undefined}},_0x22161f=await platformFetch(getApiDomain()+_0x4a29fa(0x1fb),{'method':_0x4a29fa(0x1f7),'body':_0x1cea48,'cookie':_0x2f1171,'label':_0x4a29fa(0x205)+_0x3ce9c9[_0x4a29fa(0x215)]+'\x22'});return logger[_0x4a29fa(0x204)](_0x4a29fa(0x206),_0x4a29fa(0x20f)+_0x3ce9c9[_0x4a29fa(0x215)],undefined),_0x22161f;}
@@ -1 +1 @@
1
- (function(_0x113247,_0x4bc9ea){const _0x5939ae=a91_0x25bc,_0x52b7a7=_0x113247();while(!![]){try{const _0x351e1b=-parseInt(_0x5939ae(0xdf))/0x1*(parseInt(_0x5939ae(0xe5))/0x2)+parseInt(_0x5939ae(0xdc))/0x3+parseInt(_0x5939ae(0xeb))/0x4+-parseInt(_0x5939ae(0xcd))/0x5+-parseInt(_0x5939ae(0xe6))/0x6*(-parseInt(_0x5939ae(0xd8))/0x7)+parseInt(_0x5939ae(0xe3))/0x8+parseInt(_0x5939ae(0xe2))/0x9;if(_0x351e1b===_0x4bc9ea)break;else _0x52b7a7['push'](_0x52b7a7['shift']());}catch(_0x262914){_0x52b7a7['push'](_0x52b7a7['shift']());}}}(a91_0xc0aa,0xc0db0));function a91_0x25bc(_0x20979e,_0xebf97e){_0x20979e=_0x20979e-0xc9;const _0xc0aad=a91_0xc0aa();let _0x25bcbd=_0xc0aad[_0x20979e];return _0x25bcbd;}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 validateParams(_0x2baa72){const _0xa298df=a91_0x25bc,_0x50d7ca=[];return _0x2baa72[_0xa298df(0xe9)]&&!isValidJsHttpsUrl(_0x2baa72[_0xa298df(0xe9)])&&_0x50d7ca[_0xa298df(0xc9)]({'field':_0xa298df(0xe9),'message':_0xa298df(0xd7)}),_0x2baa72[_0xa298df(0xf4)]&&!isValidCssHttpsUrl(_0x2baa72['cssUrl'])&&_0x50d7ca[_0xa298df(0xc9)]({'field':'cssUrl','message':_0xa298df(0xf0)}),_0x50d7ca;}export async function runMenuSyncCore(_0x2a0bd2,_0x11afd1,_0x5e8b25=[],_0x128ca7){const _0x5def20=a91_0x25bc,_0x467e79=parseParamsFlag(_0x128ca7),_0x3698a1=_0x5e8b25['length']>0x0?_0x5e8b25:_0x467e79[_0x5def20(0xd3)],_0x4ab638=_0x467e79[_0x5def20(0xe9)],_0x37c947=_0x467e79[_0x5def20(0xf4)],_0x16d50c=[];if(_0x4ab638)_0x16d50c[_0x5def20(0xc9)](_0x4ab638);if(_0x37c947)_0x16d50c[_0x5def20(0xc9)](_0x37c947);const _0x2b6dfa=validateParams(_0x467e79);if(_0x2b6dfa[_0x5def20(0xda)]>0x0){const _0x5ee4ad=_0x2b6dfa['map'](_0x463a5e=>_0x5def20(0xd0)+_0x463a5e[_0x5def20(0xe7)]+':\x20'+_0x463a5e['message'])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x5ee4ad);}logger[_0x5def20(0xd4)](process[_0x5def20(0xe1)]()),logger['info'](_0x5def20(0xcb),_0x5def20(0xef),{'appCode':_0x2a0bd2,'selectedCount':_0x3698a1?.['length'],'jsUrl':_0x4ab638,'cssUrl':_0x37c947});if(_0x4ab638){const _0x1882be=await isUrlReachable(_0x4ab638);if(!_0x1882be)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x4ab638);}if(_0x37c947){const _0x302997=await isUrlReachable(_0x37c947);if(!_0x302997)throw new Error(_0x5def20(0xd1)+_0x37c947);}const _0x33533f=getLocalPages();if(_0x33533f[_0x5def20(0xda)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x1f77d1=await getOnlineMenuList(_0x2a0bd2,_0x11afd1),_0x23040e=new Set(_0x1f77d1[_0x5def20(0xe4)](_0x1a7e8=>_0x1a7e8[_0x5def20(0xce)]));let _0x30f163;if(_0x3698a1&&_0x3698a1[_0x5def20(0xda)]>0x0){const _0x3f4f98=new Set(_0x3698a1['map'](_0x357128=>_0x357128[_0x5def20(0xe8)]()));_0x30f163=_0x33533f[_0x5def20(0xd2)](_0x588a71=>_0x3f4f98[_0x5def20(0xd5)](_0x588a71[_0x5def20(0xd6)]));if(_0x30f163[_0x5def20(0xda)]===0x0){const _0x1237dd=_0x33533f[_0x5def20(0xe4)](_0x43d01d=>_0x43d01d['label'])[_0x5def20(0xed)](',\x20');throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x3f4f98][_0x5def20(0xed)](',\x20')+_0x5def20(0xf1)+_0x1237dd);}}else _0x30f163=_0x33533f[_0x5def20(0xd2)](_0x44d7b0=>!_0x23040e[_0x5def20(0xd5)](_0x44d7b0[_0x5def20(0xce)]));if(_0x30f163[_0x5def20(0xda)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x354ecc=await createMenus(_0x2a0bd2,_0x11afd1,_0x30f163,_0x16d50c[_0x5def20(0xda)]>0x0?_0x16d50c:undefined);return logger['info'](_0x5def20(0xcb),_0x5def20(0xec),{'count':_0x30f163[_0x5def20(0xda)],'resources':_0x16d50c}),{'created':_0x354ecc[_0x5def20(0xda)],'skipped':![],'targetPages':_0x30f163,'menus':_0x354ecc};}export async function readPageLabelsFromStdin(){const _0x493e18=a91_0x25bc;if(!process[_0x493e18(0xf3)]['isTTY']&&!process['stdin'][_0x493e18(0xde)])return new Promise(_0x263c4d=>{const _0x26014a=_0x493e18,_0x4322c0=[];process['stdin']['on']('data',_0x374a40=>_0x4322c0['push'](_0x374a40)),process[_0x26014a(0xf3)]['on'](_0x26014a(0xf2),()=>{const _0x5182d9=_0x26014a,_0x301f3f=Buffer[_0x5182d9(0xdb)](_0x4322c0)[_0x5182d9(0xcf)](_0x5182d9(0xdd)),_0x4562d4=_0x301f3f['split']('\x0a')['map'](_0x4f8259=>_0x4f8259['trim']())[_0x5182d9(0xd2)](_0x2ad397=>_0x2ad397['length']>0x0&&!_0x2ad397[_0x5182d9(0xee)]('#'));_0x263c4d(_0x4562d4);}),setTimeout(()=>_0x263c4d([]),0x1f4);});return[];}function a91_0xc0aa(){const _0x58290a=['142016qxnEqB','Menu\x20sync\x20completed','join','startsWith','Start\x20non-interactive\x20menu\x20sync','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x0a\x20\x20Available\x20local\x20pages:\x20','end','stdin','cssUrl','push','object','menu-sync','parse','4890710HfbvZN','path','toString','--params.','CSS\x20URL\x20is\x20unreachable:\x20','filter','selectedLabels','setLogPath','has','label','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','3626693vaXshU','pages','length','concat','902220ImoKeL','utf8','readableEnded','2FnfgRd','string','cwd','3034089PefqHl','9316208YCvDzO','map','587912tKmMeQ','6JbAiSI','field','trim','jsUrl','isArray'];a91_0xc0aa=function(){return _0x58290a;};return a91_0xc0aa();}function parseParamsFlag(_0x3f02f3){const _0x134b62=a91_0x25bc;if(!_0x3f02f3||typeof _0x3f02f3!==_0x134b62(0xe0))return{};try{const _0x6908a6=JSON[_0x134b62(0xcc)](_0x3f02f3);if(typeof _0x6908a6!==_0x134b62(0xca)||_0x6908a6===null||Array[_0x134b62(0xea)](_0x6908a6))return{};return{'selectedLabels':Array['isArray'](_0x6908a6[_0x134b62(0xd9)])?_0x6908a6['pages']['map'](String):undefined,'jsUrl':typeof _0x6908a6[_0x134b62(0xe9)]===_0x134b62(0xe0)?_0x6908a6[_0x134b62(0xe9)][_0x134b62(0xe8)]():undefined,'cssUrl':typeof _0x6908a6[_0x134b62(0xf4)]===_0x134b62(0xe0)?_0x6908a6['cssUrl']['trim']():undefined};}catch{return{};}}
1
+ function a91_0x4fe1(_0x35e6d7,_0x3182cd){_0x35e6d7=_0x35e6d7-0x16a;const _0x5f291f=a91_0x5f29();let _0x4fe10e=_0x5f291f[_0x35e6d7];return _0x4fe10e;}(function(_0x5ca9e8,_0x3b0ca9){const _0x112132=a91_0x4fe1,_0x1909a2=_0x5ca9e8();while(!![]){try{const _0x1c58ae=-parseInt(_0x112132(0x171))/0x1*(parseInt(_0x112132(0x177))/0x2)+parseInt(_0x112132(0x17c))/0x3+-parseInt(_0x112132(0x172))/0x4*(parseInt(_0x112132(0x16c))/0x5)+parseInt(_0x112132(0x181))/0x6+parseInt(_0x112132(0x16f))/0x7*(-parseInt(_0x112132(0x18c))/0x8)+-parseInt(_0x112132(0x186))/0x9+parseInt(_0x112132(0x189))/0xa*(parseInt(_0x112132(0x198))/0xb);if(_0x1c58ae===_0x3b0ca9)break;else _0x1909a2['push'](_0x1909a2['shift']());}catch(_0x30f378){_0x1909a2['push'](_0x1909a2['shift']());}}}(a91_0x5f29,0x71cb5));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';function a91_0x5f29(){const _0x5a972e=['message','No\x20local\x20pages\x20matched\x20labels:\x20','stdin','isTTY','string','map','cssUrl','33DxllMW','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','readableEnded','25IymXVu','label','length','358183PhNcEY','parse','6093quiqcU','539912zmUpXh','isArray','info','data','Invalid\x20--params:\x20','6dwsHfw','jsUrl','--params.','has','push','246807jMTTfn','trim','filter','JS\x20URL\x20is\x20unreachable:\x20','cwd','3688584xWCVUQ','menu-sync','concat','setLogPath','pages','8097174otENPz','selectedLabels','field','6927630sYYXuc','path','startsWith','112CdXKqH','join','Start\x20non-interactive\x20menu\x20sync','split','toString'];a91_0x5f29=function(){return _0x5a972e;};return a91_0x5f29();}import{logger}from'../../../utils/logger.js';function validateParams(_0x51934e){const _0x587a90=a91_0x4fe1,_0x4be6f6=[];return _0x51934e[_0x587a90(0x178)]&&!isValidJsHttpsUrl(_0x51934e[_0x587a90(0x178)])&&_0x4be6f6[_0x587a90(0x17b)]({'field':_0x587a90(0x178),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x51934e['cssUrl']&&!isValidCssHttpsUrl(_0x51934e[_0x587a90(0x197)])&&_0x4be6f6[_0x587a90(0x17b)]({'field':_0x587a90(0x197),'message':_0x587a90(0x16a)}),_0x4be6f6;}export async function runMenuSyncCore(_0x576369,_0xf30428,_0x99d2a6=[],_0x4e79c9){const _0x2475e5=a91_0x4fe1,_0x35c87f=parseParamsFlag(_0x4e79c9),_0x45906f=_0x99d2a6[_0x2475e5(0x16e)]>0x0?_0x99d2a6:_0x35c87f[_0x2475e5(0x187)],_0x15b0d1=_0x35c87f[_0x2475e5(0x178)],_0x5019b7=_0x35c87f[_0x2475e5(0x197)],_0x13dde7=[];if(_0x15b0d1)_0x13dde7[_0x2475e5(0x17b)](_0x15b0d1);if(_0x5019b7)_0x13dde7['push'](_0x5019b7);const _0x450a22=validateParams(_0x35c87f);if(_0x450a22[_0x2475e5(0x16e)]>0x0){const _0x52ba62=_0x450a22[_0x2475e5(0x196)](_0x42d8f2=>_0x2475e5(0x179)+_0x42d8f2[_0x2475e5(0x188)]+':\x20'+_0x42d8f2[_0x2475e5(0x191)])[_0x2475e5(0x18d)](';\x20');throw new Error(_0x2475e5(0x176)+_0x52ba62);}logger[_0x2475e5(0x184)](process[_0x2475e5(0x180)]()),logger[_0x2475e5(0x174)](_0x2475e5(0x182),_0x2475e5(0x18e),{'appCode':_0x576369,'selectedCount':_0x45906f?.[_0x2475e5(0x16e)],'jsUrl':_0x15b0d1,'cssUrl':_0x5019b7});if(_0x15b0d1){const _0x2451b3=await isUrlReachable(_0x15b0d1);if(!_0x2451b3)throw new Error(_0x2475e5(0x17f)+_0x15b0d1);}if(_0x5019b7){const _0x432c72=await isUrlReachable(_0x5019b7);if(!_0x432c72)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x5019b7);}const _0x2fcd64=getLocalPages();if(_0x2fcd64['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x3d3b1e=await getOnlineMenuList(_0x576369,_0xf30428),_0x154f34=new Set(_0x3d3b1e[_0x2475e5(0x196)](_0x250fb=>_0x250fb[_0x2475e5(0x18a)]));let _0x54bec2;if(_0x45906f&&_0x45906f['length']>0x0){const _0x4c0da7=new Set(_0x45906f[_0x2475e5(0x196)](_0x34684=>_0x34684[_0x2475e5(0x17d)]()));_0x54bec2=_0x2fcd64['filter'](_0x159eaf=>_0x4c0da7[_0x2475e5(0x17a)](_0x159eaf[_0x2475e5(0x16d)]));if(_0x54bec2[_0x2475e5(0x16e)]===0x0){const _0x457282=_0x2fcd64[_0x2475e5(0x196)](_0x16df00=>_0x16df00[_0x2475e5(0x16d)])[_0x2475e5(0x18d)](',\x20');throw new Error(_0x2475e5(0x192)+[..._0x4c0da7][_0x2475e5(0x18d)](',\x20')+'\x0a\x20\x20Available\x20local\x20pages:\x20'+_0x457282);}}else _0x54bec2=_0x2fcd64['filter'](_0x390bf0=>!_0x154f34['has'](_0x390bf0[_0x2475e5(0x18a)]));if(_0x54bec2[_0x2475e5(0x16e)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x4c67b6=await createMenus(_0x576369,_0xf30428,_0x54bec2,_0x13dde7[_0x2475e5(0x16e)]>0x0?_0x13dde7:undefined);return logger[_0x2475e5(0x174)](_0x2475e5(0x182),'Menu\x20sync\x20completed',{'count':_0x54bec2[_0x2475e5(0x16e)],'resources':_0x13dde7}),{'created':_0x4c67b6['length'],'skipped':![],'targetPages':_0x54bec2,'menus':_0x4c67b6};}export async function readPageLabelsFromStdin(){const _0x2242f0=a91_0x4fe1;if(!process[_0x2242f0(0x193)][_0x2242f0(0x194)]&&!process[_0x2242f0(0x193)][_0x2242f0(0x16b)])return new Promise(_0x2817c8=>{const _0x5bed22=_0x2242f0,_0x4e86c5=[];process[_0x5bed22(0x193)]['on'](_0x5bed22(0x175),_0x37f05b=>_0x4e86c5[_0x5bed22(0x17b)](_0x37f05b)),process[_0x5bed22(0x193)]['on']('end',()=>{const _0x440f7c=_0x5bed22,_0x428961=Buffer[_0x440f7c(0x183)](_0x4e86c5)[_0x440f7c(0x190)]('utf8'),_0x1c7137=_0x428961[_0x440f7c(0x18f)]('\x0a')['map'](_0x34b680=>_0x34b680[_0x440f7c(0x17d)]())[_0x440f7c(0x17e)](_0x3f13d4=>_0x3f13d4[_0x440f7c(0x16e)]>0x0&&!_0x3f13d4[_0x440f7c(0x18b)]('#'));_0x2817c8(_0x1c7137);}),setTimeout(()=>_0x2817c8([]),0x1f4);});return[];}function parseParamsFlag(_0x812896){const _0x2605e4=a91_0x4fe1;if(!_0x812896||typeof _0x812896!=='string')return{};try{const _0x448b82=JSON[_0x2605e4(0x170)](_0x812896);if(typeof _0x448b82!=='object'||_0x448b82===null||Array[_0x2605e4(0x173)](_0x448b82))return{};return{'selectedLabels':Array['isArray'](_0x448b82[_0x2605e4(0x185)])?_0x448b82[_0x2605e4(0x185)][_0x2605e4(0x196)](String):undefined,'jsUrl':typeof _0x448b82['jsUrl']===_0x2605e4(0x195)?_0x448b82[_0x2605e4(0x178)][_0x2605e4(0x17d)]():undefined,'cssUrl':typeof _0x448b82['cssUrl']===_0x2605e4(0x195)?_0x448b82['cssUrl'][_0x2605e4(0x17d)]():undefined};}catch{return{};}}