@lovrabet/rabetbase-cli 2.2.1-beta.1 → 2.2.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 a77_0x294f08=a77_0x375c;(function(_0x19d0fe,_0x48964e){const _0x2f9397=a77_0x375c,_0x5a64d9=_0x19d0fe();while(!![]){try{const _0x5e8028=-parseInt(_0x2f9397(0x1f2))/0x1+parseInt(_0x2f9397(0x213))/0x2+parseInt(_0x2f9397(0x219))/0x3*(-parseInt(_0x2f9397(0x224))/0x4)+parseInt(_0x2f9397(0x210))/0x5*(parseInt(_0x2f9397(0x20b))/0x6)+parseInt(_0x2f9397(0x20d))/0x7*(parseInt(_0x2f9397(0x1f5))/0x8)+-parseInt(_0x2f9397(0x1fc))/0x9*(parseInt(_0x2f9397(0x233))/0xa)+-parseInt(_0x2f9397(0x231))/0xb;if(_0x5e8028===_0x48964e)break;else _0x5a64d9['push'](_0x5a64d9['shift']());}catch(_0x150833){_0x5a64d9['push'](_0x5a64d9['shift']());}}}(a77_0x1089,0xe7bf6));import a77_0x26b7cf from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a77_0x375c(_0x244d09,_0x5ebb79){_0x244d09=_0x244d09-0x1f2;const _0x10890e=a77_0x1089();let _0x375cbf=_0x10890e[_0x244d09];return _0x375cbf;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x98ad84){const _0x4c18be=a77_0x375c,_0x10f3f9=GIT_COMMIT!==_0x4c18be(0x1f3)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x13917d=buildConfigFromFlags({}),_0x3008ba=getCookie();console[_0x4c18be(0x21f)](),console[_0x4c18be(0x21f)](a77_0x26b7cf[_0x4c18be(0x206)](CLI_BIN_NAME+'\x20doctor')),console['log'](a77_0x26b7cf[_0x4c18be(0x1ff)]('─'[_0x4c18be(0x1f6)](0x32))),console[_0x4c18be(0x21f)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x10f3f9),console[_0x4c18be(0x21f)](_0x4c18be(0x22e)+process['version']),console[_0x4c18be(0x21f)](_0x4c18be(0x21d)+process[_0x4c18be(0x1f8)]+'\x20'+process[_0x4c18be(0x20c)]),console['log'](),console[_0x4c18be(0x21f)](a77_0x26b7cf[_0x4c18be(0x206)](_0x4c18be(0x21b))),console['log'](a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x230)[_0x4c18be(0x1f6)](0x1e)));const _0x230139=getGlobalConfigPath(),_0x338d6a=getProjectConfigPath();console['log'](_0x4c18be(0x23b)+(_0x230139||a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x215)))),console[_0x4c18be(0x21f)](_0x4c18be(0x216)+(_0x338d6a||a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x215)))),console[_0x4c18be(0x21f)](),console['log'](a77_0x26b7cf[_0x4c18be(0x206)]('\x20\x20Config\x20JSON')),console[_0x4c18be(0x21f)](a77_0x26b7cf['gray'](_0x4c18be(0x230)[_0x4c18be(0x1f6)](0x1e)));const _0x2875c8=(_0x4cd558,_0x3f79e1)=>{const _0x1eda1c=_0x4c18be;if(!_0x3f79e1){console[_0x1eda1c(0x21f)]('\x20\x20'+_0x4cd558[_0x1eda1c(0x22a)](0x11)+'\x20'+a77_0x26b7cf[_0x1eda1c(0x1ff)](_0x1eda1c(0x1fd)));return;}const _0x2f6c54=inspectCliConfigJsonFile(_0x3f79e1);if(_0x2f6c54[_0x1eda1c(0x227)]==='ok')console[_0x1eda1c(0x21f)]('\x20\x20'+_0x4cd558[_0x1eda1c(0x22a)](0x11)+'\x20'+a77_0x26b7cf[_0x1eda1c(0x236)]('✓\x20Valid\x20JSON'));else{if(_0x2f6c54['status']===_0x1eda1c(0x212))console[_0x1eda1c(0x21f)]('\x20\x20'+_0x4cd558['padEnd'](0x11)+'\x20'+a77_0x26b7cf[_0x1eda1c(0x200)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x2f6c54['status']===_0x1eda1c(0x229)?console[_0x1eda1c(0x21f)]('\x20\x20'+_0x4cd558[_0x1eda1c(0x22a)](0x11)+'\x20'+a77_0x26b7cf['gray']('(missing)')):(console['log']('\x20\x20'+_0x4cd558[_0x1eda1c(0x22a)](0x11)+'\x20'+a77_0x26b7cf[_0x1eda1c(0x1f7)]('✗\x20Invalid\x20JSON')),console[_0x1eda1c(0x21f)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x26b7cf['red'](_0x2f6c54[_0x1eda1c(0x218)])));}};_0x2875c8(_0x4c18be(0x214),_0x230139),_0x2875c8('Project',_0x338d6a),console[_0x4c18be(0x21f)](),console['log'](a77_0x26b7cf[_0x4c18be(0x206)]('\x20\x20Merged\x20Config')),console[_0x4c18be(0x21f)](a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x230)[_0x4c18be(0x1f6)](0x1e))),console[_0x4c18be(0x21f)](_0x4c18be(0x21c)+(_0x13917d[_0x4c18be(0x1f4)]||a77_0x26b7cf[_0x4c18be(0x1f7)](_0x4c18be(0x223)))),console[_0x4c18be(0x21f)](_0x4c18be(0x20f)+_0x13917d[_0x4c18be(0x217)]),console[_0x4c18be(0x21f)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x13917d[_0x4c18be(0x20a)]),console[_0x4c18be(0x21f)](_0x4c18be(0x23e)+_0x13917d[_0x4c18be(0x239)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x13917d[_0x4c18be(0x226)]||a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x1fa)))),console[_0x4c18be(0x21f)](_0x4c18be(0x202)+(_0x13917d[_0x4c18be(0x21e)]||a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x1fa)))),console[_0x4c18be(0x21f)](_0x4c18be(0x20e)+(_0x13917d[_0x4c18be(0x22b)]||a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x1fa)))),console[_0x4c18be(0x21f)](_0x4c18be(0x23f)+(_0x13917d[_0x4c18be(0x23c)]||a77_0x26b7cf['gray'](_0x4c18be(0x225)+DEFAULT_CONFIG_VALUES[_0x4c18be(0x23c)]+')'))),console[_0x4c18be(0x21f)](_0x4c18be(0x237)+(_0x13917d[_0x4c18be(0x235)]??a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x205)))),console[_0x4c18be(0x21f)](_0x4c18be(0x242)+_0x13917d[_0x4c18be(0x228)]),console[_0x4c18be(0x21f)](_0x4c18be(0x1fe)+_0x13917d[_0x4c18be(0x211)]),console[_0x4c18be(0x21f)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x13917d['cookie']?a77_0x26b7cf[_0x4c18be(0x236)](_0x4c18be(0x240)+_0x13917d['cookie'][_0x4c18be(0x238)]+')'):_0x3008ba?a77_0x26b7cf[_0x4c18be(0x236)](_0x4c18be(0x22d)+_0x3008ba['length']+')'):a77_0x26b7cf[_0x4c18be(0x1ff)]('(none)')));const _0x166739=Object[_0x4c18be(0x1fb)](_0x13917d[_0x4c18be(0x208)]);if(_0x166739['length']>0x0){console[_0x4c18be(0x21f)](),console[_0x4c18be(0x21f)](a77_0x26b7cf[_0x4c18be(0x206)]('\x20\x20Apps')),console[_0x4c18be(0x21f)](a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x230)['repeat'](0x1e)));for(const _0x2f9e7a of _0x166739){const _0x468abd=_0x13917d[_0x4c18be(0x208)][_0x2f9e7a],_0x40f14f=_0x2f9e7a===_0x13917d[_0x4c18be(0x226)],_0x2ea6cb=_0x2f9e7a===_0x13917d[_0x4c18be(0x21e)],_0x5d3de9=_0x2ea6cb?a77_0x26b7cf[_0x4c18be(0x236)](_0x4c18be(0x22c)):'',_0x143dae=_0x40f14f?'\x20(default)':'';console[_0x4c18be(0x21f)]('\x20\x20'+_0x2f9e7a+_0x143dae+_0x5d3de9),console[_0x4c18be(0x21f)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x468abd['appcode']);const _0x3eb728=buildAppDoctorFields(_0x468abd,{'env':_0x13917d[_0x4c18be(0x217)],'apiDir':_0x13917d['raw'][_0x4c18be(0x239)]||DEFAULT_CONFIG_VALUES[_0x4c18be(0x239)],'cookie':_0x13917d[_0x4c18be(0x207)]||_0x3008ba||undefined,'accessKey':_0x13917d[_0x4c18be(0x21a)]});console[_0x4c18be(0x21f)](_0x4c18be(0x220)+_0x3eb728[_0x4c18be(0x217)][_0x4c18be(0x241)]+'\x20\x20'+a77_0x26b7cf['gray']('('+_0x3eb728[_0x4c18be(0x217)][_0x4c18be(0x203)]+')')),console[_0x4c18be(0x21f)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x3eb728[_0x4c18be(0x239)]['value']+'\x20\x20'+a77_0x26b7cf[_0x4c18be(0x1ff)]('('+_0x3eb728[_0x4c18be(0x239)]['source']+')'));const _0x38fbcd=_0x3eb728['cookie'][_0x4c18be(0x241)]?a77_0x26b7cf['green'](_0x4c18be(0x240)+_0x3eb728[_0x4c18be(0x207)][_0x4c18be(0x241)][_0x4c18be(0x238)]+')'):a77_0x26b7cf['gray']('(none)');console[_0x4c18be(0x21f)](_0x4c18be(0x1f9)+_0x38fbcd+'\x20\x20'+a77_0x26b7cf[_0x4c18be(0x1ff)]('('+_0x3eb728[_0x4c18be(0x207)][_0x4c18be(0x203)]+')'));const _0x1b5878=_0x3eb728[_0x4c18be(0x21a)][_0x4c18be(0x241)]?a77_0x26b7cf['green']('(set,\x20length='+_0x3eb728[_0x4c18be(0x21a)][_0x4c18be(0x241)][_0x4c18be(0x238)]+')'):a77_0x26b7cf[_0x4c18be(0x1ff)](_0x4c18be(0x1fa));console[_0x4c18be(0x21f)](_0x4c18be(0x222)+_0x1b5878+'\x20\x20'+a77_0x26b7cf[_0x4c18be(0x1ff)]('('+_0x3eb728[_0x4c18be(0x21a)][_0x4c18be(0x203)]+')'));}}console[_0x4c18be(0x21f)](),console['log'](a77_0x26b7cf[_0x4c18be(0x206)](_0x4c18be(0x201))),console[_0x4c18be(0x21f)](a77_0x26b7cf['gray']('\x20\x20─'[_0x4c18be(0x1f6)](0x1e))),console[_0x4c18be(0x21f)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x4c18be(0x21f)](_0x4c18be(0x234)+getUserDomain()),console[_0x4c18be(0x21f)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x4c18be(0x21f)](a77_0x26b7cf['bold'](_0x4c18be(0x209))),console[_0x4c18be(0x21f)](a77_0x26b7cf['gray'](_0x4c18be(0x230)[_0x4c18be(0x1f6)](0x1e)));if(_0x3008ba){const _0x21b4f7=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x21b4f7?a77_0x26b7cf[_0x4c18be(0x236)](_0x4c18be(0x23d)):a77_0x26b7cf[_0x4c18be(0x1f7)](_0x4c18be(0x23a))));}else console[_0x4c18be(0x21f)](_0x4c18be(0x204)+a77_0x26b7cf['red'](_0x4c18be(0x243)));return console[_0x4c18be(0x21f)](),{'ok':!![]};}function a77_0x1089(){const _0x3a1c3e=['\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','✓\x20Valid','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','value','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','41233TrFgRn','unknown','appCode','1921528pHwnKG','repeat','red','platform','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','(none)','keys','45XLDrCC','(no\x20file)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','yellow','\x20\x20API\x20Endpoints','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','bold','cookie','apps','\x20\x20Auth','locale','2262ejheop','arch','49OojfKu','\x20\x20explicitAppName:\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','19535YcbYPj','verbose','empty','722656OYEuuM','Global','(not\x20found)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','message','12BhbaWB','accessKey','\x20\x20Config\x20Files','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','log','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20\x20\x20accessKey:\x20\x20','(not\x20set)','362092WVGikp','(default:\x20','defaultApp','status','riskLevel','missing','padEnd','explicitAppName','\x20←\x20current','(set\x20via\x20file,\x20length=','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20─','5325881mgYSoZ','check','3357740Injsrr','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','pageSize','green','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','length','apiDir','✗\x20Expired'];a77_0x1089=function(){return _0x3a1c3e;};return a77_0x1089();}export const doctorDefinition={'service':a77_0x294f08(0x221),'command':a77_0x294f08(0x232),'description':a77_0x294f08(0x22f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a77_0x20cd96=a77_0x1cf4;(function(_0x5880c8,_0xfecc10){const _0x96a7b6=a77_0x1cf4,_0x5a5169=_0x5880c8();while(!![]){try{const _0x593200=parseInt(_0x96a7b6(0x160))/0x1*(-parseInt(_0x96a7b6(0x12e))/0x2)+parseInt(_0x96a7b6(0x11f))/0x3*(-parseInt(_0x96a7b6(0x168))/0x4)+-parseInt(_0x96a7b6(0x12f))/0x5*(parseInt(_0x96a7b6(0x163))/0x6)+parseInt(_0x96a7b6(0x134))/0x7+-parseInt(_0x96a7b6(0x173))/0x8+-parseInt(_0x96a7b6(0x15e))/0x9+parseInt(_0x96a7b6(0x13d))/0xa;if(_0x593200===_0xfecc10)break;else _0x5a5169['push'](_0x5a5169['shift']());}catch(_0x3e8dcd){_0x5a5169['push'](_0x5a5169['shift']());}}}(a77_0x54ac,0x63474));import a77_0x3b0896 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a77_0x1cf4(_0xda1d5b,_0x26e632){_0xda1d5b=_0xda1d5b-0x11d;const _0x54acdb=a77_0x54ac();let _0x1cf473=_0x54acdb[_0xda1d5b];return _0x1cf473;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x10817b){const _0x5def98=a77_0x1cf4,_0x23a155=GIT_COMMIT!==_0x5def98(0x13f)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5def98(0x146)](0x0,0xa)+')':VERSION,_0xe3f2f4=buildConfigFromFlags({}),_0x5ba5d7=getCookie();console[_0x5def98(0x153)](),console['log'](a77_0x3b0896[_0x5def98(0x164)](CLI_BIN_NAME+_0x5def98(0x14d))),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x12b)]('─'['repeat'](0x32))),console[_0x5def98(0x153)](_0x5def98(0x174)+_0x23a155),console[_0x5def98(0x153)](_0x5def98(0x141)+process[_0x5def98(0x14b)]),console[_0x5def98(0x153)](_0x5def98(0x137)+process[_0x5def98(0x15c)]+'\x20'+process[_0x5def98(0x159)]),console[_0x5def98(0x153)](),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x164)](_0x5def98(0x170))),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x12c)[_0x5def98(0x143)](0x1e)));const _0x161101=getGlobalConfigPath(),_0x1310a1=getProjectConfigPath();console[_0x5def98(0x153)](_0x5def98(0x124)+(_0x161101||a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x138)))),console[_0x5def98(0x153)](_0x5def98(0x155)+(_0x1310a1||a77_0x3b0896[_0x5def98(0x12b)]('(not\x20found)'))),console[_0x5def98(0x153)](),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x164)](_0x5def98(0x11e))),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x12c)[_0x5def98(0x143)](0x1e)));const _0x48bb20=(_0xb7df57,_0x5e894e)=>{const _0x152ccf=_0x5def98;if(!_0x5e894e){console[_0x152ccf(0x153)]('\x20\x20'+_0xb7df57[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896['gray'](_0x152ccf(0x179)));return;}const _0x3bb3f3=inspectCliConfigJsonFile(_0x5e894e);if(_0x3bb3f3[_0x152ccf(0x122)]==='ok')console[_0x152ccf(0x153)]('\x20\x20'+_0xb7df57[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896[_0x152ccf(0x165)](_0x152ccf(0x14c)));else{if(_0x3bb3f3['status']===_0x152ccf(0x135))console[_0x152ccf(0x153)]('\x20\x20'+_0xb7df57[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896['yellow'](_0x152ccf(0x16d)));else _0x3bb3f3[_0x152ccf(0x122)]===_0x152ccf(0x154)?console[_0x152ccf(0x153)]('\x20\x20'+_0xb7df57[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896['gray']('(missing)')):(console[_0x152ccf(0x153)]('\x20\x20'+_0xb7df57[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896['red'](_0x152ccf(0x16c))),console[_0x152ccf(0x153)]('\x20\x20'+''[_0x152ccf(0x130)](0x11)+'\x20'+a77_0x3b0896[_0x152ccf(0x175)](_0x3bb3f3[_0x152ccf(0x151)])));}};_0x48bb20(_0x5def98(0x156),_0x161101),_0x48bb20(_0x5def98(0x12a),_0x1310a1),console[_0x5def98(0x153)](),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x164)](_0x5def98(0x161))),console['log'](a77_0x3b0896['gray']('\x20\x20─'['repeat'](0x1e))),console[_0x5def98(0x153)](_0x5def98(0x166)+(_0xe3f2f4[_0x5def98(0x177)]||a77_0x3b0896[_0x5def98(0x175)]('(not\x20set)'))),console[_0x5def98(0x153)](_0x5def98(0x171)+_0xe3f2f4[_0x5def98(0x11d)]),console[_0x5def98(0x153)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xe3f2f4[_0x5def98(0x12d)]),console[_0x5def98(0x153)](_0x5def98(0x144)+_0xe3f2f4[_0x5def98(0x121)]),console[_0x5def98(0x153)](_0x5def98(0x136)+(_0xe3f2f4[_0x5def98(0x16f)]||a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x13b)))),console[_0x5def98(0x153)](_0x5def98(0x150)+(_0xe3f2f4[_0x5def98(0x13e)]||a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x13b)))),console[_0x5def98(0x153)](_0x5def98(0x167)+(_0xe3f2f4[_0x5def98(0x14f)]||a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x13b)))),console[_0x5def98(0x153)](_0x5def98(0x129)+(_0xe3f2f4[_0x5def98(0x16b)]||a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x158)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5def98(0x153)](_0x5def98(0x127)+(_0xe3f2f4[_0x5def98(0x125)]??a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x145)))),console[_0x5def98(0x153)](_0x5def98(0x176)+_0xe3f2f4[_0x5def98(0x178)]),console[_0x5def98(0x153)](_0x5def98(0x172)+_0xe3f2f4[_0x5def98(0x15b)]),console[_0x5def98(0x153)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xe3f2f4['cookie']?a77_0x3b0896['green']('(set,\x20length='+_0xe3f2f4[_0x5def98(0x148)][_0x5def98(0x131)]+')'):_0x5ba5d7?a77_0x3b0896[_0x5def98(0x165)](_0x5def98(0x17a)+_0x5ba5d7['length']+')'):a77_0x3b0896['gray'](_0x5def98(0x13b))));const _0x2de593=Object[_0x5def98(0x149)](_0xe3f2f4[_0x5def98(0x139)]);if(_0x2de593['length']>0x0){console['log'](),console[_0x5def98(0x153)](a77_0x3b0896['bold'](_0x5def98(0x128))),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x12c)[_0x5def98(0x143)](0x1e)));for(const _0x1ba7a8 of _0x2de593){const _0x37226e=_0xe3f2f4['apps'][_0x1ba7a8],_0x5c5664=_0x1ba7a8===_0xe3f2f4[_0x5def98(0x16f)],_0x5e9c2d=_0x1ba7a8===_0xe3f2f4[_0x5def98(0x13e)],_0x146eaf=_0x5e9c2d?a77_0x3b0896[_0x5def98(0x165)](_0x5def98(0x132)):'',_0x390357=_0x5c5664?_0x5def98(0x147):'';console[_0x5def98(0x153)]('\x20\x20'+_0x1ba7a8+_0x390357+_0x146eaf),console['log'](_0x5def98(0x169)+_0x37226e['appcode']);const _0x4e3256=buildAppDoctorFields(_0x37226e,{'env':_0xe3f2f4[_0x5def98(0x11d)],'apiDir':_0xe3f2f4[_0x5def98(0x142)][_0x5def98(0x121)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0xe3f2f4[_0x5def98(0x148)]||_0x5ba5d7||undefined,'accessKey':_0xe3f2f4[_0x5def98(0x15a)]});console[_0x5def98(0x153)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4e3256[_0x5def98(0x11d)][_0x5def98(0x157)]+'\x20\x20'+a77_0x3b0896[_0x5def98(0x12b)]('('+_0x4e3256[_0x5def98(0x11d)][_0x5def98(0x17b)]+')')),console[_0x5def98(0x153)](_0x5def98(0x14a)+_0x4e3256[_0x5def98(0x121)]['value']+'\x20\x20'+a77_0x3b0896[_0x5def98(0x12b)]('('+_0x4e3256[_0x5def98(0x121)][_0x5def98(0x17b)]+')'));const _0x32455c=_0x4e3256[_0x5def98(0x148)]['value']?a77_0x3b0896[_0x5def98(0x165)](_0x5def98(0x16a)+_0x4e3256[_0x5def98(0x148)]['value'][_0x5def98(0x131)]+')'):a77_0x3b0896[_0x5def98(0x12b)]('(none)');console[_0x5def98(0x153)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x32455c+'\x20\x20'+a77_0x3b0896['gray']('('+_0x4e3256[_0x5def98(0x148)]['source']+')'));const _0x33e249=_0x4e3256[_0x5def98(0x15a)]['value']?a77_0x3b0896[_0x5def98(0x165)](_0x5def98(0x16a)+_0x4e3256['accessKey']['value'][_0x5def98(0x131)]+')'):a77_0x3b0896[_0x5def98(0x12b)]('(none)');console[_0x5def98(0x153)](_0x5def98(0x120)+_0x33e249+'\x20\x20'+a77_0x3b0896[_0x5def98(0x12b)]('('+_0x4e3256[_0x5def98(0x15a)][_0x5def98(0x17b)]+')'));}}console['log'](),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x164)](_0x5def98(0x14e))),console['log'](a77_0x3b0896['gray'](_0x5def98(0x12c)['repeat'](0x1e))),console[_0x5def98(0x153)](_0x5def98(0x133)+getApiDomain()),console[_0x5def98(0x153)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x5def98(0x16e)+getRuntimeDomain()),console[_0x5def98(0x153)](),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x164)](_0x5def98(0x123))),console[_0x5def98(0x153)](a77_0x3b0896[_0x5def98(0x12b)](_0x5def98(0x12c)['repeat'](0x1e)));if(_0x5ba5d7){const _0x5796e9=await getIsSessionValid();console[_0x5def98(0x153)](_0x5def98(0x140)+(_0x5796e9?a77_0x3b0896[_0x5def98(0x165)](_0x5def98(0x13a)):a77_0x3b0896['red'](_0x5def98(0x15f))));}else console[_0x5def98(0x153)](_0x5def98(0x140)+a77_0x3b0896[_0x5def98(0x175)](_0x5def98(0x126)));return console[_0x5def98(0x153)](),{'ok':!![]};}function a77_0x54ac(){const _0x3d6d5d=['\x20\x20Merged\x20Config','check','192dHlJRa','bold','green','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','4VJJpdX','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(set,\x20length=','format','✗\x20Invalid\x20JSON','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20runtimeDomain:\x20\x20\x20','defaultApp','\x20\x20Config\x20Files','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6027232IXlreT','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','red','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appCode','riskLevel','(no\x20file)','(set\x20via\x20file,\x20length=','source','env','\x20\x20Config\x20JSON','967944bTQAnI','\x20\x20\x20\x20accessKey:\x20\x20','apiDir','status','\x20\x20Auth','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','gray','\x20\x20─','locale','197674JNJEkS','41740sXJpDY','padEnd','length','\x20←\x20current','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','5386822ajHhfE','empty','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','apps','✓\x20Valid','(none)','doctor','25678540XSQuSj','currentApp','unknown','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','raw','repeat','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','slice','\x20(default)','cookie','keys','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','version','✓\x20Valid\x20JSON','\x20doctor','\x20\x20API\x20Endpoints','explicitAppName','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','message','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','log','missing','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','value','(default:\x20','arch','accessKey','verbose','platform','read','7171848EdhbIF','✗\x20Expired','8PQaUGs'];a77_0x54ac=function(){return _0x3d6d5d;};return a77_0x54ac();}export const doctorDefinition={'service':a77_0x20cd96(0x13c),'command':a77_0x20cd96(0x162),'description':a77_0x20cd96(0x152),'risk':a77_0x20cd96(0x15d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a78_0x49ff0f=a78_0x1804;(function(_0x16ce2a,_0x3bbcfa){const _0x3ac40a=a78_0x1804,_0x48398a=_0x16ce2a();while(!![]){try{const _0x5e2c48=parseInt(_0x3ac40a(0x1d2))/0x1*(-parseInt(_0x3ac40a(0x1d6))/0x2)+parseInt(_0x3ac40a(0x1b5))/0x3+parseInt(_0x3ac40a(0x1a6))/0x4*(parseInt(_0x3ac40a(0x1a7))/0x5)+parseInt(_0x3ac40a(0x1b3))/0x6*(parseInt(_0x3ac40a(0x1a9))/0x7)+-parseInt(_0x3ac40a(0x1c6))/0x8*(parseInt(_0x3ac40a(0x1c7))/0x9)+-parseInt(_0x3ac40a(0x1d1))/0xa+parseInt(_0x3ac40a(0x1b6))/0xb*(parseInt(_0x3ac40a(0x1b2))/0xc);if(_0x5e2c48===_0x3bbcfa)break;else _0x48398a['push'](_0x48398a['shift']());}catch(_0x50c1b8){_0x48398a['push'](_0x48398a['shift']());}}}(a78_0x2613,0x2f5ed));function a78_0x1804(_0x1dd31f,_0x5013e6){_0x1dd31f=_0x1dd31f-0x1a6;const _0x26138e=a78_0x2613();let _0x180433=_0x26138e[_0x1dd31f];return _0x180433;}import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x38ff44){return{'appCode':_0x38ff44,'appName':_0x38ff44};}function writeInitConfig(_0x45c898,_0x20b813,_0x17be5b){const _0x269850=a78_0x1804,_0x50b940=resolveWriteConfigPath(_0x45c898),_0x331972=buildCanonicalProjectConfig({},{'appCodes':_0x20b813[_0x269850(0x1d0)](_0x3781c2=>_0x3781c2[_0x269850(0x1ad)]),'env':_0x17be5b,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x269850(0x1b8)]()}});writeConfigFile(_0x50b940,_0x331972);const _0x570a40=_0x45c898==='global'?_0x269850(0x1aa):'project';console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x570a40+_0x269850(0x1b1)),console['log'](_0x269850(0x1ab)+_0x20b813[_0x269850(0x1d0)](_0x385919=>_0x385919[_0x269850(0x1ad)])[_0x269850(0x1c4)](',\x20')),console['log'](_0x269850(0x1c3)+_0x331972[_0x269850(0x1ae)]),console[_0x269850(0x1c2)](_0x269850(0x1cb)+_0x331972['env']),console[_0x269850(0x1c2)](_0x269850(0x1b0)+_0x50b940);}async function runSmartInit(_0x4a1936){const _0x181f29=a78_0x1804,_0x534341=process['cwd'](),_0x40b9e5=_0x4a1936[_0x181f29(0x1bb)](_0x181f29(0x1aa))?_0x181f29(0x1aa):'project',_0x30493e=_0x4a1936[_0x181f29(0x1bd)](_0x181f29(0x1cd))||'production',_0x1f3eaf=_0x4a1936[_0x181f29(0x1bd)](_0x181f29(0x1bc))||undefined,_0x4f81d9=_0x4a1936[_0x181f29(0x1bb)](_0x181f29(0x1d4));if(_0x4f81d9){const {initConfig:_0x4c44a3}=await import(_0x181f29(0x1a8));return _0x4c44a3({'appcode':_0x1f3eaf,'env':_0x30493e,'autoYes':_0x4a1936[_0x181f29(0x1bb)](_0x181f29(0x1c5))});}if(_0x40b9e5==='project'){const _0x42e3c7=existsSync(resolve(_0x534341,NEW_CONFIG_NAME)),_0x3b2c64=LEGACY_CONFIG_NAMES[_0x181f29(0x1ce)](_0x3bff0d=>existsSync(resolve(_0x534341,_0x3bff0d)));if(_0x3b2c64&&!_0x42e3c7)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x4a1936[_0x181f29(0x1bf)],{'yes':_0x4a1936[_0x181f29(0x1bb)](_0x181f29(0x1c5))});if(_0x42e3c7)throw CliErrors[_0x181f29(0x1ac)](_0x181f29(0x1c1),'Use\x20`'+CLI_BIN_NAME+_0x181f29(0x1b9));}if(_0x1f3eaf){const _0x127bc3=validateAppcode(_0x1f3eaf);if(!_0x127bc3[_0x181f29(0x1ba)])throw CliErrors[_0x181f29(0x1ac)](_0x127bc3[_0x181f29(0x1c9)]);writeInitConfig(_0x40b9e5,[syntheticApp(_0x1f3eaf)],_0x30493e);return;}if(_0x4a1936[_0x181f29(0x1bf)])throw CliErrors['flagMissing'](_0x181f29(0x1bc),_0x181f29(0x1d5)+CLI_BIN_NAME+_0x181f29(0x1d8));const _0x3a4c05=getCookie(),_0x422d60=await selectMultipleApps(_0x3a4c05),_0x39f845=_0x422d60===_0x181f29(0x1ca)?[syntheticApp(await promptCustomAppcode())]:_0x422d60;writeInitConfig(_0x40b9e5,_0x39f845,_0x30493e);}const initFlags=[{'name':a78_0x49ff0f(0x1aa),'type':a78_0x49ff0f(0x1b4),'description':a78_0x49ff0f(0x1b7),'default':![]},{'name':'env','type':a78_0x49ff0f(0x1cf),'description':a78_0x49ff0f(0x1be),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x49ff0f(0x1bc),'type':'string','description':a78_0x49ff0f(0x1d3)},{'name':a78_0x49ff0f(0x1d4),'type':a78_0x49ff0f(0x1b4),'description':a78_0x49ff0f(0x1c0),'default':![]},{'name':a78_0x49ff0f(0x1c5),'type':'boolean','description':a78_0x49ff0f(0x1c8),'default':![]}];export const initDefinitions=[{'service':a78_0x49ff0f(0x1af),'command':a78_0x49ff0f(0x1cc),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a78_0x49ff0f(0x1d7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2e7423){return await runSmartInit(_0x2e7423),{'ok':!![]};}}];function a78_0x2613(){const _0x2220a9=['str','Target\x20environment','nonInteractive','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','log','\x20\x20Default:\x20','join','yes','1217800GJQrVd','9KypNiE','Auto-confirm\x20prompts','message','custom','\x20\x20Env:\x20','run','env','some','string','map','1918090XyNnRJ','4nKnDin','App\x20code\x20to\x20initialize\x20with','project','Usage:\x20','73756MBAbHb','write','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','17920RScNXF','320yFOBdC','../../commands/project/init.js','21pApzMZ','global','\x20\x20Apps:\x20','validation','appCode','defaultApp','init','\x20\x20Config:\x20','\x20config','250980sBTqbB','595554XtOhom','boolean','114999XoAWga','33ZMuoNU','Write\x20to\x20global\x20config\x20instead\x20of\x20project','toLocaleString','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','valid','bool','appcode'];a78_0x2613=function(){return _0x2220a9;};return a78_0x2613();}
1
+ const a78_0x3a7fc6=a78_0x4b4b;(function(_0x1bcaaa,_0x366355){const _0x55892a=a78_0x4b4b,_0x454388=_0x1bcaaa();while(!![]){try{const _0x2e2190=parseInt(_0x55892a(0x1c2))/0x1*(-parseInt(_0x55892a(0x1d7))/0x2)+parseInt(_0x55892a(0x1c5))/0x3*(-parseInt(_0x55892a(0x1bd))/0x4)+parseInt(_0x55892a(0x1bb))/0x5+-parseInt(_0x55892a(0x1d3))/0x6*(parseInt(_0x55892a(0x1b9))/0x7)+-parseInt(_0x55892a(0x1ca))/0x8+parseInt(_0x55892a(0x1c3))/0x9+-parseInt(_0x55892a(0x1df))/0xa*(-parseInt(_0x55892a(0x1c7))/0xb);if(_0x2e2190===_0x366355)break;else _0x454388['push'](_0x454388['shift']());}catch(_0x5cdd61){_0x454388['push'](_0x454388['shift']());}}}(a78_0x31c0,0xa0a1d));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2c7eff){return{'appCode':_0x2c7eff,'appName':_0x2c7eff};}function writeInitConfig(_0x55bba6,_0x52a931,_0x59e7eb){const _0x8eeb31=a78_0x4b4b,_0x276557=resolveWriteConfigPath(_0x55bba6),_0x703d7d=buildCanonicalProjectConfig({},{'appCodes':_0x52a931[_0x8eeb31(0x1cf)](_0x558423=>_0x558423['appCode']),'env':_0x59e7eb,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x276557,_0x703d7d);const _0x4fc546=_0x55bba6===_0x8eeb31(0x1c1)?_0x8eeb31(0x1c1):_0x8eeb31(0x1be);console[_0x8eeb31(0x1e2)]('\x0a✓\x20Successfully\x20initialized\x20'+_0x4fc546+'\x20config'),console[_0x8eeb31(0x1e2)](_0x8eeb31(0x1b2)+_0x52a931[_0x8eeb31(0x1cf)](_0x1fd60d=>_0x1fd60d[_0x8eeb31(0x1e1)])[_0x8eeb31(0x1b8)](',\x20')),console['log'](_0x8eeb31(0x1c6)+_0x703d7d[_0x8eeb31(0x1dc)]),console[_0x8eeb31(0x1e2)]('\x20\x20Env:\x20'+_0x703d7d[_0x8eeb31(0x1d8)]),console[_0x8eeb31(0x1e2)](_0x8eeb31(0x1d0)+_0x276557);}function a78_0x31c0(){const _0x33110f=['join','242914sHfbdI','bool','1084085hRexBk','validation','36612EvChLa','project','boolean','valid','global','1ndCTmw','4596831dFUXOB','Usage:\x20','213kNOMts','\x20\x20Default:\x20','8680661EpXpoz','cwd','检测到旧配置文件,正在自动升级...\x0a','335552qYFEhY','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Auto-confirm\x20prompts','init','map','\x20\x20Config:\x20','production','flagMissing','132CkUNUf','nonInteractive','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Use\x20`','385356AbxaqO','env','str','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','App\x20code\x20to\x20initialize\x20with','defaultApp','message','yes','20rqyIIT','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','log','\x20\x20Apps:\x20','string','run','appcode','Target\x20environment','write'];a78_0x31c0=function(){return _0x33110f;};return a78_0x31c0();}async function runSmartInit(_0x56b3e1){const _0x181904=a78_0x4b4b,_0x4088e5=process[_0x181904(0x1c8)](),_0x2ea1a3=_0x56b3e1[_0x181904(0x1ba)](_0x181904(0x1c1))?'global':'project',_0x37ea0e=_0x56b3e1[_0x181904(0x1d9)](_0x181904(0x1d8))||_0x181904(0x1d1),_0x23e728=_0x56b3e1[_0x181904(0x1d9)](_0x181904(0x1b5))||undefined,_0x21d135=_0x56b3e1['bool']('project');if(_0x21d135){const {initConfig:_0x2cd510}=await import('../../commands/project/init.js');return _0x2cd510({'appcode':_0x23e728,'env':_0x37ea0e,'autoYes':_0x56b3e1[_0x181904(0x1ba)]('yes')});}if(_0x2ea1a3==='project'){const _0x18a234=existsSync(resolve(_0x4088e5,NEW_CONFIG_NAME)),_0x4b0a15=LEGACY_CONFIG_NAMES['some'](_0x2e7798=>existsSync(resolve(_0x4088e5,_0x2e7798)));if(_0x4b0a15&&!_0x18a234)return console['log'](_0x181904(0x1c9)),upgradeApp(_0x56b3e1[_0x181904(0x1d4)],{'yes':_0x56b3e1[_0x181904(0x1ba)](_0x181904(0x1de))});if(_0x18a234)throw CliErrors[_0x181904(0x1bc)](_0x181904(0x1cb),_0x181904(0x1d6)+CLI_BIN_NAME+_0x181904(0x1da));}if(_0x23e728){const _0x55d9db=validateAppcode(_0x23e728);if(!_0x55d9db[_0x181904(0x1c0)])throw CliErrors[_0x181904(0x1bc)](_0x55d9db[_0x181904(0x1dd)]);writeInitConfig(_0x2ea1a3,[syntheticApp(_0x23e728)],_0x37ea0e);return;}if(_0x56b3e1[_0x181904(0x1d4)])throw CliErrors[_0x181904(0x1d2)](_0x181904(0x1b5),_0x181904(0x1c4)+CLI_BIN_NAME+_0x181904(0x1cc));const _0x117b4b=getCookie(),_0x192a19=await selectMultipleApps(_0x117b4b),_0x48a030=_0x192a19==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x192a19;writeInitConfig(_0x2ea1a3,_0x48a030,_0x37ea0e);}const initFlags=[{'name':a78_0x3a7fc6(0x1c1),'type':a78_0x3a7fc6(0x1bf),'description':a78_0x3a7fc6(0x1e0),'default':![]},{'name':a78_0x3a7fc6(0x1d8),'type':'string','description':a78_0x3a7fc6(0x1b6),'default':a78_0x3a7fc6(0x1d1),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x3a7fc6(0x1b5),'type':a78_0x3a7fc6(0x1b3),'description':a78_0x3a7fc6(0x1db)},{'name':a78_0x3a7fc6(0x1be),'type':a78_0x3a7fc6(0x1bf),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a78_0x3a7fc6(0x1de),'type':a78_0x3a7fc6(0x1bf),'description':a78_0x3a7fc6(0x1cd),'default':![]}];function a78_0x4b4b(_0x389753,_0x38ff9a){_0x389753=_0x389753-0x1b2;const _0x31c04d=a78_0x31c0();let _0x4b4bde=_0x31c04d[_0x389753];return _0x4b4bde;}export const initDefinitions=[{'service':a78_0x3a7fc6(0x1ce),'command':a78_0x3a7fc6(0x1b4),'description':a78_0x3a7fc6(0x1d5),'risk':a78_0x3a7fc6(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x439b95){return await runSmartInit(_0x439b95),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a79_0x2940(){const _0x1ba13a=['512NTfytp','92617iNXwIH','12qJosYS','1363525SXEUhw','5792bdzczD','2353098JdjyWn','256RnQFIS','914967ZozKrZ','2009660DfNGOg','2068866nLYtQO'];a79_0x2940=function(){return _0x1ba13a;};return a79_0x2940();}function a79_0x12a9(_0x149a11,_0x37cfd4){_0x149a11=_0x149a11-0x1c3;const _0x294005=a79_0x2940();let _0x12a9a0=_0x294005[_0x149a11];return _0x12a9a0;}(function(_0x8ea170,_0x3caeb8){const _0x2b909a=a79_0x12a9,_0x4de95f=_0x8ea170();while(!![]){try{const _0x2fd33c=parseInt(_0x2b909a(0x1c7))/0x1*(-parseInt(_0x2b909a(0x1c5))/0x2)+parseInt(_0x2b909a(0x1ca))/0x3+parseInt(_0x2b909a(0x1c3))/0x4*(parseInt(_0x2b909a(0x1c4))/0x5)+parseInt(_0x2b909a(0x1c6))/0x6+-parseInt(_0x2b909a(0x1cc))/0x7*(parseInt(_0x2b909a(0x1cb))/0x8)+parseInt(_0x2b909a(0x1c8))/0x9+parseInt(_0x2b909a(0x1c9))/0xa;if(_0x2fd33c===_0x3caeb8)break;else _0x4de95f['push'](_0x4de95f['shift']());}catch(_0x2b79a7){_0x4de95f['push'](_0x4de95f['shift']());}}}(a79_0x2940,0x95ff5));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ function a79_0x4a32(){const _0x479aa3=['2696304UcJWeg','25dxqwOQ','1176776qyocLV','249188pUDbXl','673020fwHsSx','7653345QwUKxi','1699224rzxYED','884276lsovLl'];a79_0x4a32=function(){return _0x479aa3;};return a79_0x4a32();}(function(_0x5a7049,_0x2397a3){const _0x42d9e5=a79_0x2014,_0x1166d6=_0x5a7049();while(!![]){try{const _0x532151=-parseInt(_0x42d9e5(0x13c))/0x1+-parseInt(_0x42d9e5(0x13d))/0x2+parseInt(_0x42d9e5(0x13f))/0x3+parseInt(_0x42d9e5(0x140))/0x4*(-parseInt(_0x42d9e5(0x142))/0x5)+parseInt(_0x42d9e5(0x141))/0x6+parseInt(_0x42d9e5(0x13e))/0x7+parseInt(_0x42d9e5(0x13b))/0x8;if(_0x532151===_0x2397a3)break;else _0x1166d6['push'](_0x1166d6['shift']());}catch(_0xfde604){_0x1166d6['push'](_0x1166d6['shift']());}}}(a79_0x4a32,0x89fbd));function a79_0x2014(_0x30d6b2,_0x4cb794){_0x30d6b2=_0x30d6b2-0x13b;const _0x4a3272=a79_0x4a32();let _0x20149c=_0x4a3272[_0x30d6b2];return _0x20149c;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a80_0x2de17a=a80_0x8334;function a80_0x463f(){const _0x48c23e=['16RiVtqS','5679470kAzCzu','\x20\x20Set\x20','11nNexKk','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','validation_error','\x22\x20\x5c','slice','RABETBASE_DISABLE_ISSUE_NUDGE','7368HLtFAZ','has','8135736hYULAi','not_in_project','6573tbfrKr','=1\x20to\x20silence\x20this\x20hint.','7350wzwpSf','replace','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','3390rzYqou','issue','cancelled','auth_required','105967fckgik','command','Hit\x20a\x20','report','write','\x20bug?\x20Help\x20us\x20fix\x20it:','config_missing','stderr','5934681fgqyWF','message','network_error','unknown_command','service','code','length','flag_missing','3204180aFfaoZ'];a80_0x463f=function(){return _0x48c23e;};return a80_0x463f();}(function(_0x4b3b5e,_0x1399fd){const _0x1b4ede=a80_0x8334,_0x513273=_0x4b3b5e();while(!![]){try{const _0x1c553a=-parseInt(_0x1b4ede(0x10e))/0x1*(-parseInt(_0x1b4ede(0xf7))/0x2)+parseInt(_0x1b4ede(0xf6))/0x3+parseInt(_0x1b4ede(0x100))/0x4*(-parseInt(_0x1b4ede(0x10a))/0x5)+-parseInt(_0x1b4ede(0x106))/0x6*(-parseInt(_0x1b4ede(0x104))/0x7)+-parseInt(_0x1b4ede(0x102))/0x8+-parseInt(_0x1b4ede(0xee))/0x9+-parseInt(_0x1b4ede(0xf8))/0xa*(-parseInt(_0x1b4ede(0xfa))/0xb);if(_0x1c553a===_0x1399fd)break;else _0x513273['push'](_0x513273['shift']());}catch(_0xc4878e){_0x513273['push'](_0x513273['shift']());}}}(a80_0x463f,0xad09e));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x2de17a(0xff);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x2de17a(0x10c),a80_0x2de17a(0x10d),a80_0x2de17a(0x114),a80_0x2de17a(0x103),a80_0x2de17a(0xf1),a80_0x2de17a(0xf5),a80_0x2de17a(0xfc),a80_0x2de17a(0xf0)]),defaultWriter=_0x41620b=>{const _0x3ac3a5=a80_0x2de17a;process[_0x3ac3a5(0xed)][_0x3ac3a5(0x112)](_0x41620b);};export function shouldNudgeForError(_0x3e0629,_0x227c69){const _0xb33dc8=a80_0x2de17a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x227c69[_0xb33dc8(0xf2)]===_0xb33dc8(0x10b)&&_0x227c69[_0xb33dc8(0x10f)]===_0xb33dc8(0x111))return![];if(_0x3e0629 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xb33dc8(0x101)](_0x3e0629[_0xb33dc8(0xf3)]);return!![];}function a80_0x8334(_0x145fcb,_0x384d80){_0x145fcb=_0x145fcb-0xed;const _0x463f8=a80_0x463f();let _0x83349c=_0x463f8[_0x145fcb];return _0x83349c;}export function printIssueReportNudgeForError(_0xba58d6,_0x191112,_0x343ea6=defaultWriter){if(!shouldNudgeForError(_0xba58d6,_0x191112))return;const _0x252885=buildSuggestedTitle(_0xba58d6,_0x191112);_0x343ea6(formatNudge(_0x252885));}function buildSuggestedTitle(_0x5498d7,_0x10a3b5){const _0x501720=a80_0x2de17a,_0x33811e=_0x5498d7 instanceof Error?_0x5498d7[_0x501720(0xef)]:String(_0x5498d7),_0x3d9dd4=_0x33811e[_0x501720(0x107)](/[\r\n]+/g,'\x20')[_0x501720(0x107)](/\s+/g,'\x20')[_0x501720(0x108)]()[_0x501720(0xfe)](0x0,0x78)[_0x501720(0x107)](/"/g,'\x5c\x22'),_0x3ce848=CLI_BIN_NAME+'\x20'+_0x10a3b5[_0x501720(0xf2)]+'\x20'+_0x10a3b5[_0x501720(0x10f)];return _0x3d9dd4[_0x501720(0xf4)]>0x0?_0x3ce848+':\x20'+_0x3d9dd4:_0x3ce848;}function formatNudge(_0x151bbe){const _0x1fc924=a80_0x2de17a;return['',_0x1fc924(0x110)+CLI_BIN_NAME+_0x1fc924(0x113),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--title\x20\x22'+_0x151bbe+_0x1fc924(0xfd),_0x1fc924(0x109),_0x1fc924(0xfb),_0x1fc924(0xf9)+NUDGE_OPT_OUT_ENV+_0x1fc924(0x105),'']['join']('\x0a');}
1
+ const a80_0x16d4d8=a80_0x13cb;(function(_0x2707e2,_0x66ff73){const _0x4b7db5=a80_0x13cb,_0x118f2a=_0x2707e2();while(!![]){try{const _0x58f0e2=-parseInt(_0x4b7db5(0xbc))/0x1+-parseInt(_0x4b7db5(0xa9))/0x2*(parseInt(_0x4b7db5(0xa5))/0x3)+parseInt(_0x4b7db5(0xb6))/0x4+parseInt(_0x4b7db5(0xac))/0x5*(-parseInt(_0x4b7db5(0xa4))/0x6)+-parseInt(_0x4b7db5(0xa8))/0x7*(-parseInt(_0x4b7db5(0xa6))/0x8)+-parseInt(_0x4b7db5(0xaa))/0x9+parseInt(_0x4b7db5(0xb7))/0xa;if(_0x58f0e2===_0x66ff73)break;else _0x118f2a['push'](_0x118f2a['shift']());}catch(_0x9b89e3){_0x118f2a['push'](_0x118f2a['shift']());}}}(a80_0x2bee,0xbe8b1));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16d4d8(0xad);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a80_0x16d4d8(0xab),'config_missing','not_in_project',a80_0x16d4d8(0xb1),a80_0x16d4d8(0xb8),a80_0x16d4d8(0xb5),a80_0x16d4d8(0xb3)]),defaultWriter=_0x18e489=>{const _0x8001d=a80_0x16d4d8;process[_0x8001d(0xbf)][_0x8001d(0xb4)](_0x18e489);};export function shouldNudgeForError(_0x277682,_0x3ebc38){const _0x3f6b57=a80_0x16d4d8;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x3ebc38[_0x3f6b57(0xb9)]===_0x3f6b57(0xa0)&&_0x3ebc38['command']==='report')return![];if(_0x277682 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x277682['code']);return!![];}export function printIssueReportNudgeForError(_0x54b566,_0x417ce8,_0x65ef7e=defaultWriter){if(!shouldNudgeForError(_0x54b566,_0x417ce8))return;const _0x534466=buildSuggestedTitle(_0x54b566,_0x417ce8);_0x65ef7e(formatNudge(_0x534466));}function a80_0x13cb(_0x53160f,_0x5ddbc8){_0x53160f=_0x53160f-0xa0;const _0x2bee27=a80_0x2bee();let _0x13cbd0=_0x2bee27[_0x53160f];return _0x13cbd0;}function buildSuggestedTitle(_0x4326b7,_0x7e4f99){const _0xc7c53f=a80_0x16d4d8,_0x266a18=_0x4326b7 instanceof Error?_0x4326b7[_0xc7c53f(0xba)]:String(_0x4326b7),_0x5c21c8=_0x266a18['replace'](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0xc7c53f(0xbe)]()[_0xc7c53f(0xbd)](0x0,0x78)[_0xc7c53f(0xae)](/"/g,'\x5c\x22'),_0x3a9d81=CLI_BIN_NAME+'\x20'+_0x7e4f99['service']+'\x20'+_0x7e4f99[_0xc7c53f(0xa3)];return _0x5c21c8[_0xc7c53f(0xa1)]>0x0?_0x3a9d81+':\x20'+_0x5c21c8:_0x3a9d81;}function a80_0x2bee(){const _0x2dbfd9=['stderr','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','issue','length','Hit\x20a\x20','command','6rRjgIa','74571NAyfau','1615056SFuHqe','\x20bug?\x20Help\x20us\x20fix\x20it:','7YjGHoa','46NdLLIH','10927989JPTmMJ','auth_required','6417945jwfSnR','RABETBASE_DISABLE_ISSUE_NUDGE','replace','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','join','unknown_command','\x20\x20Set\x20','network_error','write','validation_error','2646156NbNXFP','43829070czJotd','flag_missing','service','message','\x20\x20\x20\x20--title\x20\x22','1396342ThzTVh','slice','trim'];a80_0x2bee=function(){return _0x2dbfd9;};return a80_0x2bee();}function formatNudge(_0x491df7){const _0x86db91=a80_0x16d4d8;return['',_0x86db91(0xa2)+CLI_BIN_NAME+_0x86db91(0xa7),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x86db91(0xbb)+_0x491df7+'\x22\x20\x5c',_0x86db91(0xaf),_0x86db91(0xc0),_0x86db91(0xb2)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x86db91(0xb0)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x5692d7=a81_0x1d7f;(function(_0x346d1f,_0x7dd658){const _0x42b822=a81_0x1d7f,_0x2f593d=_0x346d1f();while(!![]){try{const _0x406677=-parseInt(_0x42b822(0x15d))/0x1*(parseInt(_0x42b822(0x151))/0x2)+parseInt(_0x42b822(0x17c))/0x3+-parseInt(_0x42b822(0x16d))/0x4+-parseInt(_0x42b822(0x152))/0x5*(-parseInt(_0x42b822(0x15e))/0x6)+-parseInt(_0x42b822(0x16e))/0x7+parseInt(_0x42b822(0x175))/0x8*(parseInt(_0x42b822(0x178))/0x9)+parseInt(_0x42b822(0x181))/0xa*(parseInt(_0x42b822(0x176))/0xb);if(_0x406677===_0x7dd658)break;else _0x2f593d['push'](_0x2f593d['shift']());}catch(_0xd28ea3){_0x2f593d['push'](_0x2f593d['shift']());}}}(a81_0x36b0,0xf413d));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a81_0x1d7f(_0x443409,_0x87301f){_0x443409=_0x443409-0x14e;const _0x36b044=a81_0x36b0();let _0x1d7f10=_0x36b044[_0x443409];return _0x1d7f10;}import{resolve}from'node:path';function a81_0x36b0(){const _0x39f082=['Platform\x20issue\x20reported\x20(','message','length','originalBytes','issue.description_redaction_kinds','join','descriptionFile:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','1111gELhrX','30yryYeB','issue.description','File\x20not\x20found:\x20','truncated','compress','str','POST','string','descriptionSource:\x20','description-file','\x20bytes','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','descriptionSource','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','cwd','4343204BaxTBc','7616140cFlMaz','truncated\x20from\x20','trim','Issue\x20description\x20cannot\x20be\x20empty.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','issue','utf8','112iFMVyP','11XRvPhR','description','536742TRzbxf','sanitize','flagMissing','One-line\x20issue\x20summary','1097097UXmCSF','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported','push','issue.description_original_bytes','14545690vvsaxn','redactionCount','redactionKinds','issue.title','validation','report','descriptionFilePath','66cNAFDB','555025qihcbp','issue.description_truncated','title'];a81_0x36b0=function(){return _0x39f082;};return a81_0x36b0();}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=a81_0x5692d7(0x167);export const issueReport={'service':a81_0x5692d7(0x173),'command':a81_0x5692d7(0x14f),'description':a81_0x5692d7(0x16b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5692d7(0x162),'flags':[{'name':a81_0x5692d7(0x154),'type':a81_0x5692d7(0x165),'required':!![],'description':a81_0x5692d7(0x17b)},{'name':a81_0x5692d7(0x177),'type':a81_0x5692d7(0x165),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a81_0x5692d7(0x169)}],async 'validate'(_0x56621b){const _0x36277d=a81_0x5692d7,_0x1471e9=_0x56621b[_0x36277d(0x163)](_0x36277d(0x154))['trim'](),_0x4795d0=_0x56621b[_0x36277d(0x163)]('description')[_0x36277d(0x170)](),_0x2e58f2=_0x56621b[_0x36277d(0x163)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1471e9)throw CliErrors[_0x36277d(0x17a)](_0x36277d(0x154),_0x36277d(0x15c));const _0x2fc787=_0x4795d0[_0x36277d(0x157)]>0x0,_0x19f5eb=_0x2e58f2[_0x36277d(0x157)]>0x0;if(_0x2fc787===_0x19f5eb)throw CliErrors[_0x36277d(0x14e)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x19f5eb){const _0x591fe6=resolve(process[_0x36277d(0x16c)](),_0x2e58f2);if(!existsSync(_0x591fe6))throw CliErrors[_0x36277d(0x14e)](_0x36277d(0x160)+_0x591fe6);}},async 'dryRun'(_0x52d5af){const _0xb1c9b1=a81_0x5692d7,_0x62b811=await prepareIssueReport(_0x52d5af);return{'method':_0xb1c9b1(0x164),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x62b811['title'],'issue.description':_0x62b811[_0xb1c9b1(0x177)],'issue.description_original_bytes':_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x158)],'issue.description_truncated':_0x62b811[_0xb1c9b1(0x179)]['truncated'],'issue.description_redactions':_0x62b811['sanitize'][_0xb1c9b1(0x182)],'issue.description_redaction_kinds':_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x183)]['join'](',')}},'description':[_0xb1c9b1(0x17d),_0xb1c9b1(0x166)+_0x62b811[_0xb1c9b1(0x16a)],_0x62b811[_0xb1c9b1(0x150)]?_0xb1c9b1(0x15b)+_0x62b811[_0xb1c9b1(0x150)]:null,_0x62b811[_0xb1c9b1(0x179)]['truncated']?'truncated:\x20original\x20'+_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x158)]+_0xb1c9b1(0x168):null,_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x182)]>0x0?'redactions:\x20'+_0x62b811[_0xb1c9b1(0x179)]['redactionCount']+'\x20('+_0x62b811[_0xb1c9b1(0x179)][_0xb1c9b1(0x183)][_0xb1c9b1(0x15a)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x2d0b02){const _0x22cecd=a81_0x5692d7,_0xb6ccd8=await prepareIssueReport(_0x2d0b02);try{await sendPlatformIssueCollectLog({'title':_0xb6ccd8[_0x22cecd(0x154)],'description':_0xb6ccd8[_0x22cecd(0x177)],'sanitize':{'originalBytes':_0xb6ccd8[_0x22cecd(0x179)]['originalBytes'],'truncated':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x161)],'redactionCount':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x182)],'redactionKinds':_0xb6ccd8['sanitize'][_0x22cecd(0x183)]}});}catch(_0xa82c51){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0xa82c51 instanceof Error?_0xa82c51[_0x22cecd(0x156)]:String(_0xa82c51)),_0x22cecd(0x172));}return{'ok':!![],'message':buildResultMessage(_0xb6ccd8['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x22cecd(0x184),_0x22cecd(0x15f),_0x22cecd(0x180),_0x22cecd(0x153),'issue.description_redactions',_0x22cecd(0x159)],'issue':{'title':_0xb6ccd8[_0x22cecd(0x154)],'descriptionLength':_0xb6ccd8[_0x22cecd(0x177)][_0x22cecd(0x157)],'descriptionSource':_0xb6ccd8[_0x22cecd(0x16a)],..._0xb6ccd8['descriptionFilePath']?{'descriptionFile':_0xb6ccd8['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0xb6ccd8[_0x22cecd(0x179)]['originalBytes'],'truncated':_0xb6ccd8['sanitize'][_0x22cecd(0x161)],'redactions':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x182)],'redactionKinds':_0xb6ccd8[_0x22cecd(0x179)][_0x22cecd(0x183)]}}}};}};function buildResultMessage(_0x5cdd2e){const _0x5a2279=a81_0x5692d7,_0x1fca2a=[];return _0x5cdd2e[_0x5a2279(0x161)]&&_0x1fca2a[_0x5a2279(0x17f)](_0x5a2279(0x16f)+_0x5cdd2e[_0x5a2279(0x158)]+_0x5a2279(0x168)),_0x5cdd2e['redactionCount']>0x0&&_0x1fca2a[_0x5a2279(0x17f)]('redacted\x20'+_0x5cdd2e[_0x5a2279(0x182)]+'\x20secret(s):\x20'+_0x5cdd2e[_0x5a2279(0x183)][_0x5a2279(0x15a)](',\x20')),_0x1fca2a[_0x5a2279(0x157)]===0x0?_0x5a2279(0x17e):_0x5a2279(0x155)+_0x1fca2a[_0x5a2279(0x15a)](';\x20')+')';}async function prepareIssueReport(_0x288af3){const _0x3c2988=a81_0x5692d7,_0x211b05=_0x288af3[_0x3c2988(0x163)](_0x3c2988(0x154))[_0x3c2988(0x170)](),_0x42b100=_0x288af3[_0x3c2988(0x163)]('description'),_0xe0d192=_0x288af3[_0x3c2988(0x163)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xe0d192){const _0x533caf=_0x42b100;if(!_0x533caf[_0x3c2988(0x170)]())throw CliErrors['validation'](_0x3c2988(0x171),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x5679ef=sanitizeIssueDescription(_0x533caf);return{'title':_0x211b05,'description':_0x5679ef['description'],'descriptionSource':'inline','sanitize':_0x5679ef};}const _0x582521=resolve(process[_0x3c2988(0x16c)](),_0xe0d192),_0x1590e4=await readFile(_0x582521,_0x3c2988(0x174));if(!_0x1590e4[_0x3c2988(0x170)]())throw CliErrors[_0x3c2988(0x14e)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x582521,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x78e0ab=sanitizeIssueDescription(_0x1590e4);return{'title':_0x211b05,'description':_0x78e0ab[_0x3c2988(0x177)],'descriptionSource':'file','descriptionFilePath':_0x582521,'sanitize':_0x78e0ab};}
1
+ const a81_0x2ee028=a81_0x2c6f;(function(_0x97ae69,_0x265538){const _0x124d2f=a81_0x2c6f,_0x4076a5=_0x97ae69();while(!![]){try{const _0x446b8c=parseInt(_0x124d2f(0x14e))/0x1+-parseInt(_0x124d2f(0x16c))/0x2+parseInt(_0x124d2f(0x159))/0x3+parseInt(_0x124d2f(0x148))/0x4*(-parseInt(_0x124d2f(0x15b))/0x5)+parseInt(_0x124d2f(0x171))/0x6*(-parseInt(_0x124d2f(0x157))/0x7)+parseInt(_0x124d2f(0x14c))/0x8+parseInt(_0x124d2f(0x16f))/0x9*(parseInt(_0x124d2f(0x161))/0xa);if(_0x446b8c===_0x265538)break;else _0x4076a5['push'](_0x4076a5['shift']());}catch(_0x5e9e62){_0x4076a5['push'](_0x4076a5['shift']());}}}(a81_0x514a,0x216d1));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';function a81_0x2c6f(_0x4e056e,_0x4f7135){_0x4e056e=_0x4e056e-0x141;const _0x514abe=a81_0x514a();let _0x2c6f6d=_0x514abe[_0x4e056e];return _0x2c6f6d;}function a81_0x514a(){const _0x5149dd=['\x20secret(s):\x20','198012QyUwwb','description-file','truncated','9RHuNMt','otel://','344982JPyqxu','push','redactionKinds','redactionCount','sanitize','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported\x20(','issue.description_original_bytes','originalBytes','One-line\x20issue\x20summary','write','utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','\x20bytes','redacted\x20','issue.description_truncated','truncated\x20from\x20','descriptionFilePath','report','issue','8NBJvrW','issue.description','cwd','descriptionSource','145504StFvHK','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','118409pothpy','issue.title','compress','flagMissing','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','redactions:\x20','descriptionFile:\x20','descriptionSource:\x20','truncated:\x20original\x20','28lKrJIK','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','137490afDPFN','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','16285NgvGix','join','trim','title','filter','issue.description_redactions','2899940yAFtSU','length','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','File\x20not\x20found:\x20','POST','issue.description_redaction_kinds','validation','description','str','string'];a81_0x514a=function(){return _0x5149dd;};return a81_0x514a();}const DESCRIPTION_FILE_FLAG=a81_0x2ee028(0x16d);export const issueReport={'service':a81_0x2ee028(0x147),'command':a81_0x2ee028(0x146),'description':a81_0x2ee028(0x17e),'risk':a81_0x2ee028(0x17b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x2ee028(0x150),'flags':[{'name':a81_0x2ee028(0x15e),'type':a81_0x2ee028(0x16a),'required':!![],'description':a81_0x2ee028(0x17a)},{'name':a81_0x2ee028(0x168),'type':a81_0x2ee028(0x16a),'description':a81_0x2ee028(0x15a)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x2ee028(0x16a),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x4decef){const _0x1cb24e=a81_0x2ee028,_0x5142a2=_0x4decef['str']('title')['trim'](),_0x3ed898=_0x4decef['str'](_0x1cb24e(0x168))[_0x1cb24e(0x15d)](),_0x2911d5=_0x4decef[_0x1cb24e(0x169)](DESCRIPTION_FILE_FLAG)[_0x1cb24e(0x15d)]();if(!_0x5142a2)throw CliErrors[_0x1cb24e(0x151)](_0x1cb24e(0x15e),_0x1cb24e(0x152));const _0x505e07=_0x3ed898[_0x1cb24e(0x162)]>0x0,_0x1d7020=_0x2911d5[_0x1cb24e(0x162)]>0x0;if(_0x505e07===_0x1d7020)throw CliErrors[_0x1cb24e(0x167)](_0x1cb24e(0x158),_0x1cb24e(0x17d));if(_0x1d7020){const _0x2050ac=resolve(process[_0x1cb24e(0x14a)](),_0x2911d5);if(!existsSync(_0x2050ac))throw CliErrors[_0x1cb24e(0x167)](_0x1cb24e(0x164)+_0x2050ac);}},async 'dryRun'(_0x585a3b){const _0x4dec4b=a81_0x2ee028,_0x512018=await prepareIssueReport(_0x585a3b);return{'method':_0x4dec4b(0x165),'url':_0x4dec4b(0x170)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x512018[_0x4dec4b(0x15e)],'issue.description':_0x512018[_0x4dec4b(0x168)],'issue.description_original_bytes':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x179)],'issue.description_truncated':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x16e)],'issue.description_redactions':_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x174)],'issue.description_redaction_kinds':_0x512018[_0x4dec4b(0x175)]['redactionKinds']['join'](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x4dec4b(0x155)+_0x512018[_0x4dec4b(0x14b)],_0x512018[_0x4dec4b(0x145)]?_0x4dec4b(0x154)+_0x512018[_0x4dec4b(0x145)]:null,_0x512018['sanitize']['truncated']?_0x4dec4b(0x156)+_0x512018[_0x4dec4b(0x175)][_0x4dec4b(0x179)]+'\x20bytes':null,_0x512018['sanitize'][_0x4dec4b(0x174)]>0x0?_0x4dec4b(0x153)+_0x512018[_0x4dec4b(0x175)]['redactionCount']+'\x20('+_0x512018['sanitize'][_0x4dec4b(0x173)][_0x4dec4b(0x15c)](',\x20')+')':null][_0x4dec4b(0x15f)](Boolean)[_0x4dec4b(0x15c)]('\x0a')};},async 'execute'(_0xf2e8d2){const _0x38d19b=a81_0x2ee028,_0x5ad07d=await prepareIssueReport(_0xf2e8d2);try{await sendPlatformIssueCollectLog({'title':_0x5ad07d[_0x38d19b(0x15e)],'description':_0x5ad07d[_0x38d19b(0x168)],'sanitize':{'originalBytes':_0x5ad07d[_0x38d19b(0x175)]['originalBytes'],'truncated':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x16e)],'redactionCount':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x174)],'redactionKinds':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x173)]}});}catch(_0x3bdc13){throw CliErrors['apiError']('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x3bdc13 instanceof Error?_0x3bdc13['message']:String(_0x3bdc13)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x5ad07d[_0x38d19b(0x175)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x38d19b(0x14f),_0x38d19b(0x149),_0x38d19b(0x178),_0x38d19b(0x143),_0x38d19b(0x160),_0x38d19b(0x166)],'issue':{'title':_0x5ad07d[_0x38d19b(0x15e)],'descriptionLength':_0x5ad07d['description'][_0x38d19b(0x162)],'descriptionSource':_0x5ad07d[_0x38d19b(0x14b)],..._0x5ad07d[_0x38d19b(0x145)]?{'descriptionFile':_0x5ad07d['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x179)],'truncated':_0x5ad07d[_0x38d19b(0x175)][_0x38d19b(0x16e)],'redactions':_0x5ad07d[_0x38d19b(0x175)]['redactionCount'],'redactionKinds':_0x5ad07d[_0x38d19b(0x175)]['redactionKinds']}}}};}};function buildResultMessage(_0x2a9b53){const _0x22f464=a81_0x2ee028,_0x4d1ba8=[];return _0x2a9b53[_0x22f464(0x16e)]&&_0x4d1ba8['push'](_0x22f464(0x144)+_0x2a9b53[_0x22f464(0x179)]+_0x22f464(0x141)),_0x2a9b53[_0x22f464(0x174)]>0x0&&_0x4d1ba8[_0x22f464(0x172)](_0x22f464(0x142)+_0x2a9b53['redactionCount']+_0x22f464(0x16b)+_0x2a9b53[_0x22f464(0x173)][_0x22f464(0x15c)](',\x20')),_0x4d1ba8[_0x22f464(0x162)]===0x0?'Platform\x20issue\x20reported':_0x22f464(0x177)+_0x4d1ba8[_0x22f464(0x15c)](';\x20')+')';}async function prepareIssueReport(_0x2de743){const _0x598e99=a81_0x2ee028,_0x2c3453=_0x2de743[_0x598e99(0x169)]('title')[_0x598e99(0x15d)](),_0x3c7c52=_0x2de743[_0x598e99(0x169)]('description'),_0xe2eac6=_0x2de743['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0xe2eac6){const _0x3e655f=_0x3c7c52;if(!_0x3e655f[_0x598e99(0x15d)]())throw CliErrors['validation']('Issue\x20description\x20cannot\x20be\x20empty.',_0x598e99(0x163));const _0x561f2e=sanitizeIssueDescription(_0x3e655f);return{'title':_0x2c3453,'description':_0x561f2e[_0x598e99(0x168)],'descriptionSource':'inline','sanitize':_0x561f2e};}const _0x67ab=resolve(process[_0x598e99(0x14a)](),_0xe2eac6),_0x297233=await readFile(_0x67ab,_0x598e99(0x17c));if(!_0x297233[_0x598e99(0x15d)]())throw CliErrors[_0x598e99(0x167)](_0x598e99(0x176)+_0x67ab,_0x598e99(0x14d));const _0x1af0fd=sanitizeIssueDescription(_0x297233);return{'title':_0x2c3453,'description':_0x1af0fd[_0x598e99(0x168)],'descriptionSource':'file','descriptionFilePath':_0x67ab,'sanitize':_0x1af0fd};}
@@ -1 +1 @@
1
- const a82_0x200782=a82_0x26a8;function a82_0x5cf7(){const _0x18776c=['toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','239090poYkeO','cookie','19ZnvfMS','12StyyQd','subarray','password','REDACTED:bearer-jwt','812430FUOzvx','2019822cRwhsa','replace','utf8','private-key','label','798hKsbuw','access-key','pattern','108TdaakD','6269176XFssZf','REDACTED:authorization','9MMyxRq','38868YyfyPi','103690DlivLQ','1004201xuVDOU','max','bearer-jwt','authorization','push','includes','byteLength','REDACTED:password'];a82_0x5cf7=function(){return _0x18776c;};return a82_0x5cf7();}function a82_0x26a8(_0x16128b,_0x364cff){_0x16128b=_0x16128b-0x1e4;const _0x5cf7fd=a82_0x5cf7();let _0x26a80c=_0x5cf7fd[_0x16128b];return _0x26a80c;}(function(_0x4b770e,_0x58c90d){const _0x1017ae=a82_0x26a8,_0x5786f4=_0x4b770e();while(!![]){try{const _0xf250fe=-parseInt(_0x1017ae(0x1f4))/0x1*(-parseInt(_0x1017ae(0x1e7))/0x2)+parseInt(_0x1017ae(0x1fa))/0x3+parseInt(_0x1017ae(0x1f5))/0x4*(-parseInt(_0x1017ae(0x1f2))/0x5)+parseInt(_0x1017ae(0x1e6))/0x6*(-parseInt(_0x1017ae(0x1ff))/0x7)+parseInt(_0x1017ae(0x203))/0x8*(parseInt(_0x1017ae(0x1e5))/0x9)+-parseInt(_0x1017ae(0x1f9))/0xa+-parseInt(_0x1017ae(0x1e8))/0xb*(parseInt(_0x1017ae(0x202))/0xc);if(_0xf250fe===_0x58c90d)break;else _0x5786f4['push'](_0x5786f4['shift']());}catch(_0x31d621){_0x5786f4['push'](_0x5786f4['shift']());}}}(a82_0x5cf7,0xa0710));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x200782(0x1f1),REDACTION_RULES=[{'kind':a82_0x200782(0x1f3),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0x200782(0x1eb),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x200782(0x1e4)},{'kind':a82_0x200782(0x1fd),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x200782(0x200),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x200782(0x1f7),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x200782(0x1ef)},{'kind':a82_0x200782(0x1ea),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x200782(0x1f8)}];export function sanitizeIssueDescription(_0x3bf480){const _0x145a5c=a82_0x200782,_0x5bde3f=Buffer[_0x145a5c(0x1ee)](_0x3bf480,_0x145a5c(0x1fc)),_0x5ba250=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x11c6a8=_0x3bf480,_0x3f6d71=0x0;const _0x2696bb=[];if(!_0x5ba250)for(const _0x42dee9 of REDACTION_RULES){let _0x4c087f=0x0;_0x11c6a8=_0x11c6a8[_0x145a5c(0x1fb)](_0x42dee9[_0x145a5c(0x201)],(_0x3402dc,_0x1ccea5)=>{const _0x3d0884=_0x145a5c;_0x4c087f+=0x1;const _0x3ea8ba=typeof _0x1ccea5==='string'?_0x1ccea5:'';return _0x3ea8ba+'['+_0x42dee9[_0x3d0884(0x1fe)]+']';}),_0x4c087f>0x0&&(_0x3f6d71+=_0x4c087f,!_0x2696bb[_0x145a5c(0x1ed)](_0x42dee9['kind'])&&_0x2696bb[_0x145a5c(0x1ec)](_0x42dee9['kind']));}let _0x41505c=![];if(Buffer[_0x145a5c(0x1ee)](_0x11c6a8,_0x145a5c(0x1fc))>ISSUE_DESCRIPTION_MAX_BYTES){_0x41505c=!![];const _0x1f784d=Buffer[_0x145a5c(0x1ee)](TRUNCATION_NOTICE,_0x145a5c(0x1fc)),_0x399094=Math[_0x145a5c(0x1e9)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x1f784d);_0x11c6a8=sliceUtf8Bytes(_0x11c6a8,_0x399094)+TRUNCATION_NOTICE;}return{'description':_0x11c6a8,'originalBytes':_0x5bde3f,'truncated':_0x41505c,'redactionCount':_0x3f6d71,'redactionKinds':_0x2696bb};}function sliceUtf8Bytes(_0x29f3d8,_0xe36b6c){const _0x473c3e=a82_0x200782;if(_0xe36b6c<=0x0)return'';const _0x2f430c=Buffer['from'](_0x29f3d8,_0x473c3e(0x1fc));if(_0x2f430c['byteLength']<=_0xe36b6c)return _0x29f3d8;let _0x3c2245=_0xe36b6c;while(_0x3c2245>0x0){const _0x28e619=_0x2f430c[_0x3c2245];if(_0x28e619===undefined||(_0x28e619&0xc0)!==0x80)break;_0x3c2245-=0x1;}return _0x2f430c[_0x473c3e(0x1f6)](0x0,_0x3c2245)[_0x473c3e(0x1f0)](_0x473c3e(0x1fc));}
1
+ function a82_0x136a(){const _0x58cc83=['REDACTED:authorization','3241473Ujzkau','label','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','457788OdsOSi','utf8','push','REDACTED:bearer-jwt','5494727qhFjER','password','kind','replace','from','private-key','4204314lOOxxR','4208188SDbOSG','REDACTED:access-key','1LyjeQh','access-key','pattern','byteLength','cookie','includes','8505816wlgPsD','subarray','REDACTED:cookie','max','5prtZqR','string','14828058nFwgOm'];a82_0x136a=function(){return _0x58cc83;};return a82_0x136a();}const a82_0x3e5498=a82_0x1c16;(function(_0x24f698,_0x1d71b5){const _0x519a98=a82_0x1c16,_0x556767=_0x24f698();while(!![]){try{const _0x353b9c=parseInt(_0x519a98(0x147))/0x1*(-parseInt(_0x519a98(0x13a))/0x2)+-parseInt(_0x519a98(0x137))/0x3+parseInt(_0x519a98(0x145))/0x4*(parseInt(_0x519a98(0x151))/0x5)+parseInt(_0x519a98(0x144))/0x6+parseInt(_0x519a98(0x13e))/0x7+parseInt(_0x519a98(0x14d))/0x8+-parseInt(_0x519a98(0x153))/0x9;if(_0x353b9c===_0x1d71b5)break;else _0x556767['push'](_0x556767['shift']());}catch(_0x1588c6){_0x556767['push'](_0x556767['shift']());}}}(a82_0x136a,0x9d3a7));function a82_0x1c16(_0x1df31a,_0x4df335){_0x1df31a=_0x1df31a-0x137;const _0x136ac0=a82_0x136a();let _0x1c1617=_0x136ac0[_0x1df31a];return _0x1c1617;}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3e5498(0x139),REDACTION_RULES=[{'kind':a82_0x3e5498(0x14b),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3e5498(0x14f)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3e5498(0x154)},{'kind':a82_0x3e5498(0x143),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x3e5498(0x148),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x3e5498(0x146)},{'kind':a82_0x3e5498(0x13f),'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_0x3e5498(0x13d)}];export function sanitizeIssueDescription(_0x410f3e){const _0x401b54=a82_0x3e5498,_0x405f7a=Buffer[_0x401b54(0x14a)](_0x410f3e,_0x401b54(0x13b)),_0x2e0a5b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x567a8e=_0x410f3e,_0x3db160=0x0;const _0x598e79=[];if(!_0x2e0a5b)for(const _0x1432ce of REDACTION_RULES){let _0xd5e7ef=0x0;_0x567a8e=_0x567a8e[_0x401b54(0x141)](_0x1432ce[_0x401b54(0x149)],(_0x16df17,_0x5d9364)=>{const _0x1bfbae=_0x401b54;_0xd5e7ef+=0x1;const _0x5ab70e=typeof _0x5d9364===_0x1bfbae(0x152)?_0x5d9364:'';return _0x5ab70e+'['+_0x1432ce[_0x1bfbae(0x138)]+']';}),_0xd5e7ef>0x0&&(_0x3db160+=_0xd5e7ef,!_0x598e79[_0x401b54(0x14c)](_0x1432ce[_0x401b54(0x140)])&&_0x598e79[_0x401b54(0x13c)](_0x1432ce[_0x401b54(0x140)]));}let _0x30a221=![];if(Buffer['byteLength'](_0x567a8e,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x30a221=!![];const _0x19d8f3=Buffer['byteLength'](TRUNCATION_NOTICE,_0x401b54(0x13b)),_0x5a490b=Math[_0x401b54(0x150)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x19d8f3);_0x567a8e=sliceUtf8Bytes(_0x567a8e,_0x5a490b)+TRUNCATION_NOTICE;}return{'description':_0x567a8e,'originalBytes':_0x405f7a,'truncated':_0x30a221,'redactionCount':_0x3db160,'redactionKinds':_0x598e79};}function sliceUtf8Bytes(_0x330e28,_0x198d62){const _0x20737c=a82_0x3e5498;if(_0x198d62<=0x0)return'';const _0x4a0df1=Buffer[_0x20737c(0x142)](_0x330e28,_0x20737c(0x13b));if(_0x4a0df1['byteLength']<=_0x198d62)return _0x330e28;let _0x5705d0=_0x198d62;while(_0x5705d0>0x0){const _0x2cc150=_0x4a0df1[_0x5705d0];if(_0x2cc150===undefined||(_0x2cc150&0xc0)!==0x80)break;_0x5705d0-=0x1;}return _0x4a0df1[_0x20737c(0x14e)](0x0,_0x5705d0)['toString']('utf8');}
@@ -1 +1 @@
1
- const a83_0x5ebb51=a83_0x159a;(function(_0x3c6c73,_0x22a48c){const _0x5645df=a83_0x159a,_0x2f92ff=_0x3c6c73();while(!![]){try{const _0x55338e=-parseInt(_0x5645df(0x12a))/0x1+-parseInt(_0x5645df(0x118))/0x2+parseInt(_0x5645df(0x123))/0x3+parseInt(_0x5645df(0x12f))/0x4+-parseInt(_0x5645df(0x129))/0x5+parseInt(_0x5645df(0x11e))/0x6+parseInt(_0x5645df(0x11c))/0x7;if(_0x55338e===_0x22a48c)break;else _0x2f92ff['push'](_0x2f92ff['shift']());}catch(_0x45f36a){_0x2f92ff['push'](_0x2f92ff['shift']());}}}(a83_0x4e2f,0x5b340));function a83_0x4e2f(){const _0x5bf960=['3049645xHBOGw','370077sszKVu','keys','View\x20command\x20history\x20logs','readLogs','forEach','1285592lfQiUT','timestamp','*\x20Logs\x20cleared','stringify','error','*\x20No\x20logs\x20found','*\x20Lovrabet\x20CLI\x20logs:\x0a','1125856dabSnM','level','logs','read','6216714KxDRRv','\x20\x20\x20Time:\x20','4011894SmEwck','details','log','length','warn','115059SwvvAe','message','toLocaleString','show','clear','\x20\x20\x20Details:\x20'];a83_0x4e2f=function(){return _0x5bf960;};return a83_0x4e2f();}import{logger}from'../../utils/logger.js';function a83_0x159a(_0x13b6c7,_0x3b5ea3){_0x13b6c7=_0x13b6c7-0x114;const _0x4e2f9b=a83_0x4e2f();let _0x159a02=_0x4e2f9b[_0x13b6c7];return _0x159a02;}function printLogs(_0xe9cc6a){const _0x5a8d3d=a83_0x159a;if(_0xe9cc6a[_0x5a8d3d(0x121)]===0x0){console[_0x5a8d3d(0x120)](_0x5a8d3d(0x116));return;}console[_0x5a8d3d(0x120)](_0x5a8d3d(0x117)),_0xe9cc6a[_0x5a8d3d(0x12e)]((_0x1e8c83,_0x40ec37)=>{const _0x12cebc=_0x5a8d3d,_0x40b5b5=new Date(_0x1e8c83[_0x12cebc(0x130)])[_0x12cebc(0x125)]('en-US'),_0x3e4f79=_0x1e8c83[_0x12cebc(0x119)]==='success'?'√':_0x1e8c83[_0x12cebc(0x119)]===_0x12cebc(0x115)?'×':_0x1e8c83[_0x12cebc(0x119)]===_0x12cebc(0x122)?'!':'i';console[_0x12cebc(0x120)](_0x40ec37+0x1+'.\x20'+_0x3e4f79+'\x20['+_0x1e8c83['command']+']\x20'+_0x1e8c83[_0x12cebc(0x124)]),console[_0x12cebc(0x120)](_0x12cebc(0x11d)+_0x40b5b5),_0x1e8c83['duration']&&console[_0x12cebc(0x120)]('\x20\x20\x20Duration:\x20'+_0x1e8c83['duration']+'ms'),_0x1e8c83['details']&&Object[_0x12cebc(0x12b)](_0x1e8c83[_0x12cebc(0x11f)])[_0x12cebc(0x121)]>0x0&&console[_0x12cebc(0x120)](_0x12cebc(0x128)+JSON[_0x12cebc(0x114)](_0x1e8c83[_0x12cebc(0x11f)],null,0x2)),console[_0x12cebc(0x120)]('');});}export const logsDefinitions=[{'service':a83_0x5ebb51(0x11a),'command':a83_0x5ebb51(0x126),'description':a83_0x5ebb51(0x12c),'risk':a83_0x5ebb51(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4cf96d){const _0xd5d14e=a83_0x5ebb51;return printLogs(logger[_0xd5d14e(0x12d)]()),{'ok':!![]};}},{'service':a83_0x5ebb51(0x11a),'command':a83_0x5ebb51(0x127),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x287901){const _0x139fda=a83_0x5ebb51;return logger['clearLogs'](),console[_0x139fda(0x120)](_0x139fda(0x131)),{'ok':!![]};}}];
1
+ const a83_0x2a340f=a83_0x27c3;function a83_0x1bf2(){const _0x5b31d3=['details','log','read','37458QHDHFe','show','28Llzwrm','28558668BHBlQt','duration','en-US','538npCvYw','\x20\x20\x20Details:\x20','clearLogs','toLocaleString','length','keys','1320864xsjpbf','*\x20Lovrabet\x20CLI\x20logs:\x0a','View\x20command\x20history\x20logs','timestamp','write','2625HDJIZO','5939483EiDnAH','2720SuCfMX','forEach','Clear\x20command\x20history\x20logs','10PgsKaC','529458MZdxMt','\x20\x20\x20Time:\x20','warn','readLogs','success','7576aJwfwb','logs','clear','*\x20Logs\x20cleared','error','1055LaoJFk','stringify'];a83_0x1bf2=function(){return _0x5b31d3;};return a83_0x1bf2();}(function(_0x16a653,_0x475460){const _0x74104e=a83_0x27c3,_0x187b6b=_0x16a653();while(!![]){try{const _0xbcf129=parseInt(_0x74104e(0x1e1))/0x1+-parseInt(_0x74104e(0x1f6))/0x2*(-parseInt(_0x74104e(0x201))/0x3)+parseInt(_0x74104e(0x1e6))/0x4*(-parseInt(_0x74104e(0x1eb))/0x5)+-parseInt(_0x74104e(0x1fc))/0x6*(parseInt(_0x74104e(0x1f2))/0x7)+-parseInt(_0x74104e(0x1dd))/0x8*(parseInt(_0x74104e(0x1f0))/0x9)+-parseInt(_0x74104e(0x1e0))/0xa*(-parseInt(_0x74104e(0x202))/0xb)+parseInt(_0x74104e(0x1f3))/0xc;if(_0xbcf129===_0x475460)break;else _0x187b6b['push'](_0x187b6b['shift']());}catch(_0x5479b7){_0x187b6b['push'](_0x187b6b['shift']());}}}(a83_0x1bf2,0xf18c9));import{logger}from'../../utils/logger.js';function printLogs(_0x2c8bb0){const _0xb72bf5=a83_0x27c3;if(_0x2c8bb0[_0xb72bf5(0x1fa)]===0x0){console[_0xb72bf5(0x1ee)]('*\x20No\x20logs\x20found');return;}console[_0xb72bf5(0x1ee)](_0xb72bf5(0x1fd)),_0x2c8bb0[_0xb72bf5(0x1de)]((_0x441da4,_0x461ba3)=>{const _0x31a318=_0xb72bf5,_0xcfc98c=new Date(_0x441da4[_0x31a318(0x1ff)])[_0x31a318(0x1f9)](_0x31a318(0x1f5)),_0xaf0c01=_0x441da4['level']===_0x31a318(0x1e5)?'√':_0x441da4['level']===_0x31a318(0x1ea)?'×':_0x441da4['level']===_0x31a318(0x1e3)?'!':'i';console[_0x31a318(0x1ee)](_0x461ba3+0x1+'.\x20'+_0xaf0c01+'\x20['+_0x441da4['command']+']\x20'+_0x441da4['message']),console[_0x31a318(0x1ee)](_0x31a318(0x1e2)+_0xcfc98c),_0x441da4[_0x31a318(0x1f4)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x441da4[_0x31a318(0x1f4)]+'ms'),_0x441da4[_0x31a318(0x1ed)]&&Object[_0x31a318(0x1fb)](_0x441da4[_0x31a318(0x1ed)])[_0x31a318(0x1fa)]>0x0&&console[_0x31a318(0x1ee)](_0x31a318(0x1f7)+JSON[_0x31a318(0x1ec)](_0x441da4[_0x31a318(0x1ed)],null,0x2)),console[_0x31a318(0x1ee)]('');});}function a83_0x27c3(_0x29f60a,_0x547e1f){_0x29f60a=_0x29f60a-0x1dd;const _0x1bf2e7=a83_0x1bf2();let _0x27c326=_0x1bf2e7[_0x29f60a];return _0x27c326;}export const logsDefinitions=[{'service':a83_0x2a340f(0x1e7),'command':a83_0x2a340f(0x1f1),'description':a83_0x2a340f(0x1fe),'risk':a83_0x2a340f(0x1ef),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x139ba8){const _0x4d081c=a83_0x2a340f;return printLogs(logger[_0x4d081c(0x1e4)]()),{'ok':!![]};}},{'service':a83_0x2a340f(0x1e7),'command':a83_0x2a340f(0x1e8),'description':a83_0x2a340f(0x1df),'risk':a83_0x2a340f(0x200),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x19deac){const _0x4b1007=a83_0x2a340f;return logger[_0x4b1007(0x1f8)](),console[_0x4b1007(0x1ee)](_0x4b1007(0x1e9)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x41cbbc,_0x4f31f9){const _0x468251=a84_0x4386,_0x3c4cfe=_0x41cbbc();while(!![]){try{const _0x41bd9e=parseInt(_0x468251(0x130))/0x1*(-parseInt(_0x468251(0x12c))/0x2)+-parseInt(_0x468251(0x12e))/0x3*(parseInt(_0x468251(0x12f))/0x4)+parseInt(_0x468251(0x12a))/0x5+-parseInt(_0x468251(0x127))/0x6*(-parseInt(_0x468251(0x12b))/0x7)+-parseInt(_0x468251(0x125))/0x8+parseInt(_0x468251(0x12d))/0x9*(-parseInt(_0x468251(0x126))/0xa)+parseInt(_0x468251(0x129))/0xb*(parseInt(_0x468251(0x128))/0xc);if(_0x41bd9e===_0x4f31f9)break;else _0x3c4cfe['push'](_0x3c4cfe['shift']());}catch(_0x9d39a6){_0x3c4cfe['push'](_0x3c4cfe['shift']());}}}(a84_0x2729,0x9e05c));import{menuSync}from'../../commands/menu/sync.js';function a84_0x4386(_0x304abe,_0x4412ca){_0x304abe=_0x304abe-0x125;const _0x27297d=a84_0x2729();let _0x43868c=_0x27297d[_0x304abe];return _0x43868c;}import{menuUpdate}from'../../commands/menu/update.js';function a84_0x2729(){const _0x9ea99e=['13747481EdHcmN','4070735FAAGjr','21sZAlvm','2XKPXTX','11519973YSncgI','523335FQwWdH','4aPSAmI','1172693GeSSVM','505320TNPPnm','10gEiIhm','47742svopHY','24ryPRoF'];a84_0x2729=function(){return _0x9ea99e;};return a84_0x2729();}export const menuDefinitions=[menuSync,menuUpdate];
1
+ function a84_0xda81(){const _0x21bd4c=['13056lbVxax','9vQnUAb','3740zdiGEW','9ZgUpOO','1472375cXGkXX','6VuNBJV','204992MhrPnq','1174782TdACPB','1668papCDP','32664HJldHO','3249930gcOGfF','872nXzZuB'];a84_0xda81=function(){return _0x21bd4c;};return a84_0xda81();}(function(_0x14310b,_0x1c95e4){const _0x441e43=a84_0x32bd,_0x3dd2ab=_0x14310b();while(!![]){try{const _0x16fca5=-parseInt(_0x441e43(0x98))/0x1*(parseInt(_0x441e43(0xa1))/0x2)+parseInt(_0x441e43(0x9d))/0x3*(parseInt(_0x441e43(0xa0))/0x4)+-parseInt(_0x441e43(0x99))/0x5+parseInt(_0x441e43(0x9a))/0x6*(-parseInt(_0x441e43(0x9c))/0x7)+parseInt(_0x441e43(0x9b))/0x8*(-parseInt(_0x441e43(0x96))/0x9)+-parseInt(_0x441e43(0x9f))/0xa+-parseInt(_0x441e43(0x97))/0xb*(-parseInt(_0x441e43(0x9e))/0xc);if(_0x16fca5===_0x1c95e4)break;else _0x3dd2ab['push'](_0x3dd2ab['shift']());}catch(_0x52121f){_0x3dd2ab['push'](_0x3dd2ab['shift']());}}}(a84_0xda81,0x2abaa));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x32bd(_0x1e63d7,_0x48166e){_0x1e63d7=_0x1e63d7-0x96;const _0xda8144=a84_0xda81();let _0x32bd38=_0xda8144[_0x1e63d7];return _0x32bd38;}export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x21f3f6,_0x453363){const _0x3711f2=a85_0x3526,_0x2ca478=_0x21f3f6();while(!![]){try{const _0x2feca5=-parseInt(_0x3711f2(0xef))/0x1+parseInt(_0x3711f2(0xf0))/0x2*(parseInt(_0x3711f2(0xf1))/0x3)+-parseInt(_0x3711f2(0xfa))/0x4+parseInt(_0x3711f2(0xf2))/0x5*(parseInt(_0x3711f2(0xeb))/0x6)+parseInt(_0x3711f2(0x101))/0x7+parseInt(_0x3711f2(0x102))/0x8+-parseInt(_0x3711f2(0xf9))/0x9*(parseInt(_0x3711f2(0xfe))/0xa);if(_0x2feca5===_0x453363)break;else _0x2ca478['push'](_0x2ca478['shift']());}catch(_0x5b3243){_0x2ca478['push'](_0x2ca478['shift']());}}}(a85_0x20cd,0x51020));function a85_0x3526(_0x502d78,_0x18e99e){_0x502d78=_0x502d78-0xe7;const _0x20cdae=a85_0x20cd();let _0x3526c2=_0x20cdae[_0x502d78];return _0x3526c2;}function a85_0x20cd(){const _0x517a48=['\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2786966vzCxPB','3393136aUOXJI','showOnline','(unchanged)','\x20\x20\x20\x20CSS:\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','144954dNpcDI','\x20\x20\x20\x20JS:\x20\x20','join','local','4269sjMBJR','2816fpbkKf','1038xLxIZd','100WwQnnY','repeat','label','Local','online','Platform','map','37521uGUjaF','1540472xDgtDA','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','test','length','2570kczfgu','push'];a85_0x20cd=function(){return _0x517a48;};return a85_0x20cd();}function strWidth(_0x13b40f){const _0x3d4594=a85_0x3526;let _0x53b84f=0x0;for(const _0x68ce35 of _0x13b40f){_0x53b84f+=/[\u4e00-\u9fa5]/[_0x3d4594(0xfc)](_0x68ce35)?0x2:0x1;}return _0x53b84f;}function padRight(_0x1c1a97,_0x2d442a){const _0x2fcaef=a85_0x3526,_0xcefdc2=strWidth(_0x1c1a97);return _0x1c1a97+'\x20'[_0x2fcaef(0xf3)](Math['max'](0x0,_0x2d442a-_0xcefdc2));}export function renderCompareTable(_0xbc1cde,_0xbe3dd0={}){const _0x44b96a=a85_0x3526;if(_0xbc1cde['length']===0x0)return'';const _0x1e4c90=_0xbe3dd0[_0x44b96a(0xe7)]??!![],_0x3368f6=Math['max'](0x1e,..._0xbc1cde[_0x44b96a(0xf8)](_0x4088eb=>strWidth(_0x4088eb[_0x44b96a(0xf4)]))),_0x4de2e0=0x4,_0xf699bc=[],_0x4b460b='\x20\x20'+padRight('Menu\x20Name',_0x3368f6),_0x2d85ce=padRight(_0x44b96a(0xf5),_0x4de2e0),_0x497525=_0x1e4c90?'\x20\x20'+padRight(_0x44b96a(0xf7),_0x4de2e0):'';_0xf699bc['push'](_0x4b460b+'\x20\x20'+_0x2d85ce+(_0x1e4c90?_0x497525:'')),_0xf699bc[_0x44b96a(0xff)]('\x20\x20'+'─'[_0x44b96a(0xf3)](_0x3368f6)+'\x20\x20'+'─'[_0x44b96a(0xf3)](_0x4de2e0)+(_0x1e4c90?'\x20\x20'+'─'['repeat'](_0x4de2e0):''));for(const _0x5c95a1 of _0xbc1cde){const _0x4755a0=padRight(_0x5c95a1[_0x44b96a(0xf4)],_0x3368f6),_0x54fc92=_0x5c95a1[_0x44b96a(0xee)]?'✓':'✗',_0x5886ec=padRight(_0x54fc92,_0x4de2e0);let _0x2887d8='\x20\x20'+_0x4755a0+'\x20\x20'+_0x5886ec;if(_0x1e4c90){const _0x4ccdce=_0x5c95a1[_0x44b96a(0xf6)]?'✓':'✗';_0x2887d8+='\x20\x20'+padRight(_0x4ccdce,_0x4de2e0);}_0xf699bc[_0x44b96a(0xff)](_0x2887d8);}return _0xf699bc[_0x44b96a(0xed)]('\x0a');}export function renderSyncSummary(_0x49ce87,_0x571ce1){const _0x4fd9b2=a85_0x3526;if(_0x49ce87[_0x4fd9b2(0xfd)]===0x0)return _0x571ce1?_0x4fd9b2(0xea):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2ddbe7=['\x20\x20'+_0x49ce87[_0x4fd9b2(0xfd)]+_0x4fd9b2(0x100)];for(const _0x4b1deb of _0x49ce87){_0x2ddbe7[_0x4fd9b2(0xff)]('\x20\x20\x20\x20•\x20'+_0x4b1deb[_0x4fd9b2(0xf4)]+'\x20('+_0x4b1deb['path']+')');}return _0x2ddbe7[_0x4fd9b2(0xed)]('\x0a');}export function renderUpdateSummary(_0x3038c2,_0x2f8990){const _0x21a057=a85_0x3526;if(_0x3038c2[_0x21a057(0xfd)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x3b9c7b=['\x20\x20'+_0x3038c2['length']+_0x21a057(0xfb),_0x21a057(0xec)+(_0x2f8990[0x0]??_0x21a057(0xe8)),_0x21a057(0xe9)+(_0x2f8990[0x1]??_0x21a057(0xe8)),'','\x20\x20Affected\x20menus:\x20'+_0x3038c2[_0x21a057(0xed)](',\x20')];return _0x3b9c7b[_0x21a057(0xed)]('\x0a');}
1
+ (function(_0x35e223,_0x5d374a){const _0xf56029=a85_0x333f,_0x1cb509=_0x35e223();while(!![]){try{const _0x25e7ed=-parseInt(_0xf56029(0x180))/0x1+-parseInt(_0xf56029(0x169))/0x2+parseInt(_0xf56029(0x182))/0x3+-parseInt(_0xf56029(0x17d))/0x4*(-parseInt(_0xf56029(0x183))/0x5)+-parseInt(_0xf56029(0x16c))/0x6*(-parseInt(_0xf56029(0x17e))/0x7)+parseInt(_0xf56029(0x178))/0x8*(-parseInt(_0xf56029(0x184))/0x9)+parseInt(_0xf56029(0x17f))/0xa;if(_0x25e7ed===_0x5d374a)break;else _0x1cb509['push'](_0x1cb509['shift']());}catch(_0x4a5519){_0x1cb509['push'](_0x1cb509['shift']());}}}(a85_0x2855,0xb2a80));function strWidth(_0x5df045){const _0x534f76=a85_0x333f;let _0x2c0c16=0x0;for(const _0x49c5cd of _0x5df045){_0x2c0c16+=/[\u4e00-\u9fa5]/[_0x534f76(0x172)](_0x49c5cd)?0x2:0x1;}return _0x2c0c16;}function a85_0x333f(_0x18210a,_0x2d7e6f){_0x18210a=_0x18210a-0x166;const _0x285564=a85_0x2855();let _0x333fa1=_0x285564[_0x18210a];return _0x333fa1;}function padRight(_0x17a3ea,_0x2a7751){const _0x1d8e1b=a85_0x333f,_0x2d341d=strWidth(_0x17a3ea);return _0x17a3ea+'\x20'[_0x1d8e1b(0x175)](Math[_0x1d8e1b(0x176)](0x0,_0x2a7751-_0x2d341d));}function a85_0x2855(){const _0x90c44f=['path','label','map','24HBZgLt','192794jSmHKG','9228500pMYrPF','762737TTqJoL','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','2934111GAUOrq','1172690CJOwCu','3891987UPApcG','Menu\x20Name','push','(unchanged)','\x20\x20Affected\x20menus:\x20','2905402hFnNkw','Local','showOnline','204nsJRPS','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','Platform','\x20\x20\x20\x20•\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','length','test','online','local','repeat','max','join','24ZPMfyf','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.'];a85_0x2855=function(){return _0x90c44f;};return a85_0x2855();}export function renderCompareTable(_0x5aada3,_0x785a1={}){const _0x176531=a85_0x333f;if(_0x5aada3['length']===0x0)return'';const _0xb6a84e=_0x785a1[_0x176531(0x16b)]??!![],_0x153e1f=Math[_0x176531(0x176)](0x1e,..._0x5aada3[_0x176531(0x17c)](_0x500c7f=>strWidth(_0x500c7f['label']))),_0xf26a04=0x4,_0x4a0d97=[],_0x3a2136='\x20\x20'+padRight(_0x176531(0x185),_0x153e1f),_0x55fb73=padRight(_0x176531(0x16a),_0xf26a04),_0x37631d=_0xb6a84e?'\x20\x20'+padRight(_0x176531(0x16e),_0xf26a04):'';_0x4a0d97[_0x176531(0x166)](_0x3a2136+'\x20\x20'+_0x55fb73+(_0xb6a84e?_0x37631d:'')),_0x4a0d97[_0x176531(0x166)]('\x20\x20'+'─'[_0x176531(0x175)](_0x153e1f)+'\x20\x20'+'─'[_0x176531(0x175)](_0xf26a04)+(_0xb6a84e?'\x20\x20'+'─'[_0x176531(0x175)](_0xf26a04):''));for(const _0x1f60f8 of _0x5aada3){const _0x5df815=padRight(_0x1f60f8[_0x176531(0x17b)],_0x153e1f),_0xc98d61=_0x1f60f8[_0x176531(0x174)]?'✓':'✗',_0x4b8028=padRight(_0xc98d61,_0xf26a04);let _0x3d133d='\x20\x20'+_0x5df815+'\x20\x20'+_0x4b8028;if(_0xb6a84e){const _0x4275b5=_0x1f60f8[_0x176531(0x173)]?'✓':'✗';_0x3d133d+='\x20\x20'+padRight(_0x4275b5,_0xf26a04);}_0x4a0d97[_0x176531(0x166)](_0x3d133d);}return _0x4a0d97[_0x176531(0x177)]('\x0a');}export function renderSyncSummary(_0x177edd,_0x2de19a){const _0x58cca4=a85_0x333f;if(_0x177edd[_0x58cca4(0x171)]===0x0)return _0x2de19a?_0x58cca4(0x179):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3778f9=['\x20\x20'+_0x177edd[_0x58cca4(0x171)]+_0x58cca4(0x181)];for(const _0x190656 of _0x177edd){_0x3778f9[_0x58cca4(0x166)](_0x58cca4(0x16f)+_0x190656[_0x58cca4(0x17b)]+'\x20('+_0x190656[_0x58cca4(0x17a)]+')');}return _0x3778f9[_0x58cca4(0x177)]('\x0a');}export function renderUpdateSummary(_0x1636e6,_0x52499d){const _0x3ddd3f=a85_0x333f;if(_0x1636e6[_0x3ddd3f(0x171)]===0x0)return _0x3ddd3f(0x170);const _0x1aa8b6=['\x20\x20'+_0x1636e6[_0x3ddd3f(0x171)]+_0x3ddd3f(0x16d),'\x20\x20\x20\x20JS:\x20\x20'+(_0x52499d[0x0]??_0x3ddd3f(0x167)),'\x20\x20\x20\x20CSS:\x20'+(_0x52499d[0x1]??_0x3ddd3f(0x167)),'',_0x3ddd3f(0x168)+_0x1636e6[_0x3ddd3f(0x177)](',\x20')];return _0x1aa8b6[_0x3ddd3f(0x177)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x48dba8,_0x41e826){var _0x451e01=a86_0x1b53,_0x5845a5=_0x48dba8();while(!![]){try{var _0x15e959=parseInt(_0x451e01(0x10f))/0x1*(parseInt(_0x451e01(0x118))/0x2)+parseInt(_0x451e01(0x119))/0x3*(parseInt(_0x451e01(0x116))/0x4)+-parseInt(_0x451e01(0x112))/0x5*(-parseInt(_0x451e01(0x114))/0x6)+parseInt(_0x451e01(0x111))/0x7+parseInt(_0x451e01(0x110))/0x8+parseInt(_0x451e01(0x113))/0x9*(-parseInt(_0x451e01(0x10e))/0xa)+parseInt(_0x451e01(0x115))/0xb*(-parseInt(_0x451e01(0x117))/0xc);if(_0x15e959===_0x41e826)break;else _0x5845a5['push'](_0x5845a5['shift']());}catch(_0x15d3a4){_0x5845a5['push'](_0x5845a5['shift']());}}}(a86_0x128a,0x1b8a6));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';function a86_0x1b53(_0x584c66,_0x1ae656){_0x584c66=_0x584c66-0x10e;var _0x128a16=a86_0x128a();var _0x1b5326=_0x128a16[_0x584c66];return _0x1b5326;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a86_0x128a(){var _0x5705e4=['1146971RAeCgn','85FMFYfm','25452ocgLNJ','9222zrFxYV','55lldqrq','8iGimOr','943860BoOlAk','78278TbQDFg','257673ZIKTGs','460XrfJXf','5wvScog','629680hVCrWv'];a86_0x128a=function(){return _0x5705e4;};return a86_0x128a();}
1
+ (function(_0x2c7fe1,_0x355246){var _0x37eb2e=a86_0x5cbd,_0x23d0a5=_0x2c7fe1();while(!![]){try{var _0x172a5f=parseInt(_0x37eb2e(0x163))/0x1*(-parseInt(_0x37eb2e(0x166))/0x2)+parseInt(_0x37eb2e(0x15d))/0x3*(parseInt(_0x37eb2e(0x167))/0x4)+parseInt(_0x37eb2e(0x15f))/0x5+parseInt(_0x37eb2e(0x165))/0x6*(parseInt(_0x37eb2e(0x160))/0x7)+parseInt(_0x37eb2e(0x162))/0x8*(parseInt(_0x37eb2e(0x161))/0x9)+parseInt(_0x37eb2e(0x164))/0xa*(-parseInt(_0x37eb2e(0x15e))/0xb)+-parseInt(_0x37eb2e(0x15c))/0xc*(parseInt(_0x37eb2e(0x168))/0xd);if(_0x172a5f===_0x355246)break;else _0x23d0a5['push'](_0x23d0a5['shift']());}catch(_0x3e02d2){_0x23d0a5['push'](_0x23d0a5['shift']());}}}(a86_0x8cb5,0x33370));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';function a86_0x5cbd(_0xb7df71,_0x488090){_0xb7df71=_0xb7df71-0x15c;var _0x8cb56=a86_0x8cb5();var _0x5cbd37=_0x8cb56[_0xb7df71];return _0x5cbd37;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a86_0x8cb5(){var _0x5ed56c=['25762ofyqji','1732535WfHsWu','1064QCqvwi','57357zCWuoZ','152QvqYMx','30754rBIuMP','960qdPefy','420fxCYRA','20SvFuKM','4QlOoYA','1118741csIipr','12bfgevp','1049913kOQxgq'];a86_0x8cb5=function(){return _0x5ed56c;};return a86_0x8cb5();}
@@ -1 +1 @@
1
- (function(_0x3d9157,_0x512b61){const _0x361c66=a87_0x28e0,_0x4e1493=_0x3d9157();while(!![]){try{const _0x586726=parseInt(_0x361c66(0x93))/0x1+parseInt(_0x361c66(0xb0))/0x2*(-parseInt(_0x361c66(0x9b))/0x3)+-parseInt(_0x361c66(0xaf))/0x4*(-parseInt(_0x361c66(0x94))/0x5)+parseInt(_0x361c66(0xaa))/0x6+parseInt(_0x361c66(0xa3))/0x7+parseInt(_0x361c66(0x8c))/0x8+-parseInt(_0x361c66(0xa1))/0x9*(parseInt(_0x361c66(0xa4))/0xa);if(_0x586726===_0x512b61)break;else _0x4e1493['push'](_0x4e1493['shift']());}catch(_0x35c902){_0x4e1493['push'](_0x4e1493['shift']());}}}(a87_0x2f1f,0xd8a8b));import a87_0x4bf97e from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x271a01 from'ora';function a87_0x28e0(_0x4ae0cc,_0x239f8a){_0x4ae0cc=_0x4ae0cc-0x8c;const _0x2f1f7b=a87_0x2f1f();let _0x28e04b=_0x2f1f7b[_0x4ae0cc];return _0x28e04b;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x35f25c){const _0x406c70=a87_0x28e0;return _0x35f25c[_0x406c70(0x8d)](_0x3c19a6=>{const _0x47274a=_0x406c70;if(_0x3c19a6?.['name']===_0x47274a(0xa7))throw CliErrors[_0x47274a(0x95)](_0x47274a(0xa8));throw _0x3c19a6;});}export function startSpinner(_0x438a00){return a87_0x271a01({'text':_0x438a00,'color':'cyan'})['start']();}export function stopSpinner(_0x5bafa8,_0x34f518,_0x49eb5b){const _0x20a9f4=a87_0x28e0;_0x49eb5b?_0x5bafa8['succeed'](_0x34f518):_0x5bafa8[_0x20a9f4(0xa2)](_0x34f518);}export async function askConfirm(_0x1fed0f){return onCancel(confirm({'message':_0x1fed0f,'theme':{'prefix':''}}));}export async function askJsUrl(_0xab8d08){const _0x2ef920=a87_0x28e0;while(!![]){const _0x13c543=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0xab8d08,'theme':{'prefix':''}}));if(_0x13c543[_0x2ef920(0xa0)]()==='')throw CliErrors[_0x2ef920(0x95)](_0x2ef920(0xa8));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2ef920(0xae)](_0x13c543[_0x2ef920(0xa0)]())){console[_0x2ef920(0x9d)](a87_0x4bf97e[_0x2ef920(0x9e)](_0x2ef920(0xb3)));continue;}const _0xabeeb1=startSpinner(_0x2ef920(0x99));try{const _0x4e2bb5=await isUrlReachable(_0x13c543[_0x2ef920(0xa0)]());stopSpinner(_0xabeeb1,'JS\x20URL\x20checked',_0x4e2bb5);if(!_0x4e2bb5){console[_0x2ef920(0x9d)](a87_0x4bf97e[_0x2ef920(0x9e)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x13c543[_0x2ef920(0xa0)]();}catch(_0x26275b){stopSpinner(_0xabeeb1,_0x2ef920(0xad),![]);throw _0x26275b;}}}export async function askCssUrl(_0x332d74){const _0x12ec9d=a87_0x28e0;while(!![]){const _0xc4e934=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x332d74,'theme':{'prefix':''}}));if(_0xc4e934[_0x12ec9d(0xa0)]()==='')throw CliErrors[_0x12ec9d(0x95)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x12ec9d(0xae)](_0xc4e934[_0x12ec9d(0xa0)]())){console['error'](a87_0x4bf97e[_0x12ec9d(0x9e)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x11ce26=startSpinner(_0x12ec9d(0x9f));try{const _0xcbe29e=await isUrlReachable(_0xc4e934[_0x12ec9d(0xa0)]());stopSpinner(_0x11ce26,_0x12ec9d(0x90),_0xcbe29e);if(!_0xcbe29e){console['error'](a87_0x4bf97e[_0x12ec9d(0x9e)](_0x12ec9d(0xab)));continue;}return _0xc4e934[_0x12ec9d(0xa0)]();}catch(_0x1e5130){stopSpinner(_0x11ce26,_0x12ec9d(0x9a),![]);throw _0x1e5130;}}}export async function selectPages(_0x5b04b4,_0x7577a9,_0x55eb4c){const _0x3acd57=a87_0x28e0,_0x567c8c=_0x5b04b4[_0x3acd57(0x96)](_0xf81e25=>({'name':_0xf81e25['label']+'\x20\x20'+(_0x7577a9[_0x3acd57(0x91)](_0xf81e25[_0x3acd57(0x9c)])?a87_0x4bf97e[_0x3acd57(0x92)](_0x3acd57(0xb2)):a87_0x4bf97e[_0x3acd57(0xb1)](_0x3acd57(0xa6))),'value':_0xf81e25[_0x3acd57(0xa5)],'checked':_0x55eb4c?_0x55eb4c['includes'](_0xf81e25[_0x3acd57(0xa5)]):!_0x7577a9[_0x3acd57(0x91)](_0xf81e25[_0x3acd57(0x9c)])}));if(_0x567c8c['length']===0x0)throw new Error(_0x3acd57(0xb5));const _0x4dfee8=await onCancel(checkbox({'message':_0x3acd57(0xac),'choices':_0x567c8c,'loop':![],'theme':{'prefix':''}}));if(_0x4dfee8[_0x3acd57(0xa9)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x5b04b4[_0x3acd57(0x8e)](_0x28becc=>_0x4dfee8[_0x3acd57(0xb4)](_0x28becc[_0x3acd57(0xa5)]));}export function isInteractive(){const _0x43c0e2=a87_0x28e0;return process[_0x43c0e2(0x8f)][_0x43c0e2(0x97)]===!![];}function a87_0x2f1f(){const _0x190001=['\x20\x20Checking\x20CSS\x20URL\x20reachability...','trim','6645933lVZlGr','fail','2709140rqxbfn','10WaSlLv','label','[new]','ExitPromptError','Cancelled.','length','250698XIdtgA','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','JS\x20URL\x20check\x20failed','test','22548SGhCoY','130tRzgGS','green','[already\x20on\x20platform]','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','includes','No\x20local\x20pages\x20found.','6938120NlLSti','catch','filter','stdin','CSS\x20URL\x20checked','has','gray','979355RkCBMb','110cJfkLK','cancelled','map','isTTY','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Checking\x20JS\x20URL\x20reachability...','CSS\x20URL\x20check\x20failed','35703ablstG','path','error','red'];a87_0x2f1f=function(){return _0x190001;};return a87_0x2f1f();}export function requireInteractive(){const _0x2367e5=a87_0x28e0;if(!isInteractive())throw new Error(_0x2367e5(0x98)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
1
+ (function(_0xb7dbd3,_0x1ac396){const _0x13066e=a87_0x8c58,_0x2c5502=_0xb7dbd3();while(!![]){try{const _0x18ca6e=parseInt(_0x13066e(0xdc))/0x1*(-parseInt(_0x13066e(0xbc))/0x2)+parseInt(_0x13066e(0xd7))/0x3*(-parseInt(_0x13066e(0xbb))/0x4)+-parseInt(_0x13066e(0xd0))/0x5+parseInt(_0x13066e(0xc0))/0x6+parseInt(_0x13066e(0xcc))/0x7*(-parseInt(_0x13066e(0xd5))/0x8)+parseInt(_0x13066e(0xb9))/0x9*(-parseInt(_0x13066e(0xcb))/0xa)+parseInt(_0x13066e(0xc3))/0xb;if(_0x18ca6e===_0x1ac396)break;else _0x2c5502['push'](_0x2c5502['shift']());}catch(_0x5325ea){_0x2c5502['push'](_0x2c5502['shift']());}}}(a87_0x48de,0x8872b));import a87_0x2fb704 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x103f0a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a87_0x8c58(_0x1656be,_0x75692e){_0x1656be=_0x1656be-0xb9;const _0x48debf=a87_0x48de();let _0x8c58ce=_0x48debf[_0x1656be];return _0x8c58ce;}import{CliErrors}from'../../../errors.js';function onCancel(_0x3c6c83){const _0x214274=a87_0x8c58;return _0x3c6c83[_0x214274(0xd3)](_0x3cdc6f=>{const _0x5000c4=_0x214274;if(_0x3cdc6f?.['name']===_0x5000c4(0xc8))throw CliErrors[_0x5000c4(0xc1)](_0x5000c4(0xde));throw _0x3cdc6f;});}export function startSpinner(_0xdce8b6){const _0x5d5988=a87_0x8c58;return a87_0x103f0a({'text':_0xdce8b6,'color':_0x5d5988(0xdf)})['start']();}export function stopSpinner(_0x380349,_0xdcaf4f,_0x382f3a){const _0x2fbaac=a87_0x8c58;_0x382f3a?_0x380349[_0x2fbaac(0xe1)](_0xdcaf4f):_0x380349['fail'](_0xdcaf4f);}function a87_0x48de(){const _0x1cae5e=['This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','1576aqQRkN','No\x20local\x20pages\x20found.','87folffG','test','label','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','658572QipOVn','filter','Cancelled.','cyan','length','succeed','CSS\x20URL\x20check\x20failed','red','error','9FsxBWL','gray','103276UXLIxv','2UwZDwU','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','\x20\x20JS\x20URL:','2200284RSFtdK','cancelled','\x20\x20Checking\x20JS\x20URL\x20reachability...','35490598HKIiTm','has','[new]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','[already\x20on\x20platform]','ExitPromptError','JS\x20URL\x20checked','includes','5478130HURbLH','9499OLNvWb','path','trim','No\x20menus\x20selected.','4058880ijFKwn','\x20\x20CSS\x20URL:','isTTY','catch'];a87_0x48de=function(){return _0x1cae5e;};return a87_0x48de();}export async function askConfirm(_0x30d82a){return onCancel(confirm({'message':_0x30d82a,'theme':{'prefix':''}}));}export async function askJsUrl(_0x4b5882){const _0x42ab0e=a87_0x8c58;while(!![]){const _0x5dc45c=await onCancel(input({'message':_0x42ab0e(0xbf),'default':_0x4b5882,'theme':{'prefix':''}}));if(_0x5dc45c[_0x42ab0e(0xce)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x5dc45c['trim']())){console['error'](a87_0x2fb704['red'](_0x42ab0e(0xbd)));continue;}const _0x461d81=startSpinner(_0x42ab0e(0xc2));try{const _0x5747b0=await isUrlReachable(_0x5dc45c[_0x42ab0e(0xce)]());stopSpinner(_0x461d81,_0x42ab0e(0xc9),_0x5747b0);if(!_0x5747b0){console[_0x42ab0e(0xe4)](a87_0x2fb704[_0x42ab0e(0xe3)](_0x42ab0e(0xda)));continue;}return _0x5dc45c['trim']();}catch(_0x2017b5){stopSpinner(_0x461d81,'JS\x20URL\x20check\x20failed',![]);throw _0x2017b5;}}}export async function askCssUrl(_0x41654f){const _0x9ef94=a87_0x8c58;while(!![]){const _0x46e5b5=await onCancel(input({'message':_0x9ef94(0xd1),'default':_0x41654f,'theme':{'prefix':''}}));if(_0x46e5b5[_0x9ef94(0xce)]()==='')throw CliErrors['cancelled'](_0x9ef94(0xde));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x9ef94(0xd8)](_0x46e5b5[_0x9ef94(0xce)]())){console['error'](a87_0x2fb704[_0x9ef94(0xe3)](_0x9ef94(0xc6)));continue;}const _0x2f39c7=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x29cd9d=await isUrlReachable(_0x46e5b5['trim']());stopSpinner(_0x2f39c7,'CSS\x20URL\x20checked',_0x29cd9d);if(!_0x29cd9d){console[_0x9ef94(0xe4)](a87_0x2fb704[_0x9ef94(0xe3)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x46e5b5[_0x9ef94(0xce)]();}catch(_0x2234a9){stopSpinner(_0x2f39c7,_0x9ef94(0xe2),![]);throw _0x2234a9;}}}export async function selectPages(_0x556c17,_0x2e4516,_0xc938b4){const _0x2cbb5c=a87_0x8c58,_0x85e61b=_0x556c17['map'](_0x3d4dbe=>({'name':_0x3d4dbe['label']+'\x20\x20'+(_0x2e4516[_0x2cbb5c(0xc4)](_0x3d4dbe[_0x2cbb5c(0xcd)])?a87_0x2fb704[_0x2cbb5c(0xba)](_0x2cbb5c(0xc7)):a87_0x2fb704['green'](_0x2cbb5c(0xc5))),'value':_0x3d4dbe[_0x2cbb5c(0xd9)],'checked':_0xc938b4?_0xc938b4[_0x2cbb5c(0xca)](_0x3d4dbe[_0x2cbb5c(0xd9)]):!_0x2e4516[_0x2cbb5c(0xc4)](_0x3d4dbe[_0x2cbb5c(0xcd)])}));if(_0x85e61b[_0x2cbb5c(0xe0)]===0x0)throw new Error(_0x2cbb5c(0xd6));const _0x4b0476=await onCancel(checkbox({'message':_0x2cbb5c(0xdb),'choices':_0x85e61b,'loop':![],'theme':{'prefix':''}}));if(_0x4b0476[_0x2cbb5c(0xe0)]===0x0)throw new Error(_0x2cbb5c(0xcf));return _0x556c17[_0x2cbb5c(0xdd)](_0x5493f8=>_0x4b0476[_0x2cbb5c(0xca)](_0x5493f8[_0x2cbb5c(0xd9)]));}export function isInteractive(){const _0x1976a1=a87_0x8c58;return process['stdin'][_0x1976a1(0xd2)]===!![];}export function requireInteractive(){const _0x4dd141=a87_0x8c58;if(!isInteractive())throw new Error(_0x4dd141(0xd4)+_0x4dd141(0xbe));}
@@ -1 +1 @@
1
- const a88_0x1600fb=a88_0x4001;(function(_0x166a8b,_0x19af03){const _0x2f1391=a88_0x4001,_0x153e68=_0x166a8b();while(!![]){try{const _0x1953e9=-parseInt(_0x2f1391(0xde))/0x1*(parseInt(_0x2f1391(0xd8))/0x2)+-parseInt(_0x2f1391(0xe3))/0x3+parseInt(_0x2f1391(0xe0))/0x4*(-parseInt(_0x2f1391(0xd4))/0x5)+-parseInt(_0x2f1391(0xe6))/0x6+parseInt(_0x2f1391(0xd6))/0x7+parseInt(_0x2f1391(0xd9))/0x8*(-parseInt(_0x2f1391(0xd1))/0x9)+-parseInt(_0x2f1391(0xcf))/0xa*(-parseInt(_0x2f1391(0xe2))/0xb);if(_0x1953e9===_0x19af03)break;else _0x153e68['push'](_0x153e68['shift']());}catch(_0x26c05f){_0x153e68['push'](_0x153e68['shift']());}}}(a88_0x2a83,0x7fe18));import{readdirSync,statSync,readFileSync}from'fs';function a88_0x4001(_0x5eae9a,_0x59a233){_0x5eae9a=_0x5eae9a-0xcd;const _0x2a8312=a88_0x2a83();let _0x400187=_0x2a8312[_0x5eae9a];return _0x400187;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x1600fb(0xdb)](),a88_0x1600fb(0xd7));export function extractTitleFromComment(_0x14f1b1){const _0x3e7639=a88_0x1600fb;try{const _0x572a29=readFileSync(_0x14f1b1,_0x3e7639(0xda)),_0x414015=_0x572a29[_0x3e7639(0xdf)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x414015&&_0x414015[0x1]){const _0x51cdb0=_0x414015[0x1],_0x3708f1=_0x51cdb0['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3708f1&&_0x3708f1[0x1])return _0x3708f1[0x1]['trim']();}let _0xff429f=null;const _0x3e10e7=_0x572a29['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3e10e7&&_0x3e10e7[0x1]&&(_0xff429f=_0x3e10e7[0x1]);if(!_0xff429f){const _0x41f4b3=_0x572a29[_0x3e7639(0xdf)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x41f4b3&&_0x41f4b3[0x1]&&(_0xff429f=_0x41f4b3[0x1]);}if(_0xff429f){const _0x2c1a3c=new RegExp('\x5cb'+_0xff429f+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x219245=_0x572a29[_0x3e7639(0xdf)](_0x2c1a3c);if(_0x219245&&_0x219245[0x1])return _0x219245[0x1];return _0xff429f;}return null;}catch(_0x1c0899){return null;}}export function getLocalPages(_0x56b551=pagesDir,_0x14a23e=pagesDir){const _0x13871c=a88_0x1600fb;let _0x12fc83=[];const _0x27df9c=readdirSync(_0x56b551);return _0x27df9c[_0x13871c(0xdc)](_0x2aa07c=>{const _0x2b2171=_0x13871c,_0x5ee2bf=join(_0x56b551,_0x2aa07c),_0x7375fa=statSync(_0x5ee2bf);if(_0x7375fa&&_0x7375fa[_0x2b2171(0xce)]())_0x12fc83=_0x12fc83['concat'](getLocalPages(_0x5ee2bf,_0x14a23e));else{if(_0x2aa07c['endsWith'](_0x2b2171(0xe4))){let _0x29b309=relative(_0x14a23e,_0x5ee2bf);_0x29b309[_0x2b2171(0xd5)](_0x2b2171(0xd0))?_0x29b309=_0x29b309[_0x2b2171(0xd2)](/index\.tsx$/,''):_0x29b309=_0x29b309[_0x2b2171(0xd2)](/\.tsx$/,'');_0x29b309[_0x2b2171(0xd5)](sep)&&(_0x29b309=_0x29b309[_0x2b2171(0xcd)](0x0,-0x1));const _0x2a8dcc=_0x29b309[_0x2b2171(0xdd)](sep)[_0x2b2171(0xe5)]('/'),_0x501449=extractTitleFromComment(_0x5ee2bf),_0xb67ac=_0x501449||_0x2a8dcc;_0x12fc83['push']({'path':_0x2a8dcc[_0x2b2171(0xe1)]('$',':'),'label':_0xb67ac});}}}),_0x12fc83['filter'](_0x4cae3c=>_0x4cae3c[_0x13871c(0xd3)]!=='');}function a88_0x2a83(){const _0x2d8fd9=['4AfEPZe','match','3340kJerQv','replaceAll','22zaEWgv','2620317TuAnNZ','.tsx','join','4495512gNYDmp','slice','isDirectory','11898140LmHged','index.tsx','4646619gESdRd','replace','path','1425bAPYYi','endsWith','6455659shROqP','src/pages','200554mScxCj','8ecxMFu','utf-8','cwd','forEach','split'];a88_0x2a83=function(){return _0x2d8fd9;};return a88_0x2a83();}
1
+ const a88_0x2e7d79=a88_0x420d;function a88_0x300b(){const _0x55e5a2=['506ZZsCSB','10qvXWUn','3339jsEuTe','match','index.tsx','src/pages','replace','1284124suRhIf','48RDuRHM','6202224LdrpDT','1212cgzHNH','isDirectory','404980AQiqYG','564710uOvgan','path','1585863BEZlyM','574092BRwIcL','replaceAll','push','forEach','.tsx','slice','endsWith','concat'];a88_0x300b=function(){return _0x55e5a2;};return a88_0x300b();}(function(_0x39ae00,_0xc8c29f){const _0x3e0995=a88_0x420d,_0xd6b09d=_0x39ae00();while(!![]){try{const _0x4d0795=parseInt(_0x3e0995(0x17d))/0x1+parseInt(_0x3e0995(0x192))/0x2*(-parseInt(_0x3e0995(0x18a))/0x3)+-parseInt(_0x3e0995(0x18f))/0x4*(parseInt(_0x3e0995(0x189))/0x5)+-parseInt(_0x3e0995(0x180))/0x6+parseInt(_0x3e0995(0x191))/0x7+-parseInt(_0x3e0995(0x190))/0x8*(parseInt(_0x3e0995(0x17f))/0x9)+-parseInt(_0x3e0995(0x17c))/0xa*(-parseInt(_0x3e0995(0x188))/0xb);if(_0x4d0795===_0xc8c29f)break;else _0xd6b09d['push'](_0xd6b09d['shift']());}catch(_0x13be4c){_0xd6b09d['push'](_0xd6b09d['shift']());}}}(a88_0x300b,0xce19a));function a88_0x420d(_0x4f100b,_0xc10f04){_0x4f100b=_0x4f100b-0x17b;const _0x300b1f=a88_0x300b();let _0x420d3e=_0x300b1f[_0x4f100b];return _0x420d3e;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x2e7d79(0x18d));export function extractTitleFromComment(_0x329392){const _0x156939=a88_0x2e7d79;try{const _0x537184=readFileSync(_0x329392,'utf-8'),_0x1d44d0=_0x537184[_0x156939(0x18b)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1d44d0&&_0x1d44d0[0x1]){const _0xe9cb26=_0x1d44d0[0x1],_0x331891=_0xe9cb26[_0x156939(0x18b)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x331891&&_0x331891[0x1])return _0x331891[0x1]['trim']();}let _0x569997=null;const _0x18740f=_0x537184[_0x156939(0x18b)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x18740f&&_0x18740f[0x1]&&(_0x569997=_0x18740f[0x1]);if(!_0x569997){const _0x25c899=_0x537184[_0x156939(0x18b)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x25c899&&_0x25c899[0x1]&&(_0x569997=_0x25c899[0x1]);}if(_0x569997){const _0x13686f=new RegExp('\x5cb'+_0x569997+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x264a91=_0x537184['match'](_0x13686f);if(_0x264a91&&_0x264a91[0x1])return _0x264a91[0x1];return _0x569997;}return null;}catch(_0x1aadec){return null;}}export function getLocalPages(_0x36fdb6=pagesDir,_0x13abc6=pagesDir){const _0x30edc2=a88_0x2e7d79;let _0x1b04f7=[];const _0x2054ca=readdirSync(_0x36fdb6);return _0x2054ca[_0x30edc2(0x183)](_0x60fe1d=>{const _0x3e82da=_0x30edc2,_0x1b37b3=join(_0x36fdb6,_0x60fe1d),_0x3bec27=statSync(_0x1b37b3);if(_0x3bec27&&_0x3bec27[_0x3e82da(0x17b)]())_0x1b04f7=_0x1b04f7[_0x3e82da(0x187)](getLocalPages(_0x1b37b3,_0x13abc6));else{if(_0x60fe1d[_0x3e82da(0x186)](_0x3e82da(0x184))){let _0x270069=relative(_0x13abc6,_0x1b37b3);_0x270069[_0x3e82da(0x186)](_0x3e82da(0x18c))?_0x270069=_0x270069[_0x3e82da(0x18e)](/index\.tsx$/,''):_0x270069=_0x270069['replace'](/\.tsx$/,'');_0x270069[_0x3e82da(0x186)](sep)&&(_0x270069=_0x270069[_0x3e82da(0x185)](0x0,-0x1));const _0x1c39cb=_0x270069['split'](sep)['join']('/'),_0x4b59e8=extractTitleFromComment(_0x1b37b3),_0x1b4720=_0x4b59e8||_0x1c39cb;_0x1b04f7[_0x3e82da(0x182)]({'path':_0x1c39cb[_0x3e82da(0x181)]('$',':'),'label':_0x1b4720});}}}),_0x1b04f7['filter'](_0x2682d6=>_0x2682d6[_0x30edc2(0x17e)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3d7a12,_0x57462c){const _0x47f68e=a89_0x1705,_0xc5097c=_0x3d7a12();while(!![]){try{const _0x337a8c=-parseInt(_0x47f68e(0x1db))/0x1*(parseInt(_0x47f68e(0x1f1))/0x2)+parseInt(_0x47f68e(0x1e9))/0x3*(-parseInt(_0x47f68e(0x1ea))/0x4)+parseInt(_0x47f68e(0x1dd))/0x5+parseInt(_0x47f68e(0x1eb))/0x6*(-parseInt(_0x47f68e(0x1f2))/0x7)+-parseInt(_0x47f68e(0x1de))/0x8+-parseInt(_0x47f68e(0x1ee))/0x9+parseInt(_0x47f68e(0x1e5))/0xa;if(_0x337a8c===_0x57462c)break;else _0xc5097c['push'](_0xc5097c['shift']());}catch(_0x393a65){_0xc5097c['push'](_0xc5097c['shift']());}}}(a89_0x14b5,0x59725));function a89_0x1705(_0x11357b,_0x2bb445){_0x11357b=_0x11357b-0x1da;const _0x14b5ab=a89_0x14b5();let _0x170574=_0x14b5ab[_0x11357b];return _0x170574;}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(_0x4054b1){const _0x5b5254=a89_0x1705,_0x5e26e8=[];return!isValidJsHttpsUrl(_0x4054b1)&&_0x5e26e8['push'](_0x5b5254(0x1e2)),{'ok':_0x5e26e8[_0x5b5254(0x1f5)]===0x0,'errors':_0x5e26e8};}export function validateCssUrl(_0x5b61d4){const _0xcfb5f5=a89_0x1705,_0x3c8be7=[];return!isValidCssHttpsUrl(_0x5b61d4)&&_0x3c8be7[_0xcfb5f5(0x1f3)](_0xcfb5f5(0x1da)),{'ok':_0x3c8be7[_0xcfb5f5(0x1f5)]===0x0,'errors':_0x3c8be7};}export async function validateJsUrlReachable(_0x150fa4){const _0x276443=a89_0x1705,_0x195bf7=validateJsUrl(_0x150fa4);if(!_0x195bf7['ok'])return _0x195bf7;const _0x22a08e=await isUrlReachable(_0x150fa4);if(!_0x22a08e)_0x195bf7[_0x276443(0x1e6)][_0x276443(0x1f3)](_0x276443(0x1f0));return{'ok':_0x195bf7['errors'][_0x276443(0x1f5)]===0x0,'errors':_0x195bf7[_0x276443(0x1e6)]};}export async function validateCssUrlReachable(_0x669588){const _0xe5e7df=a89_0x1705,_0x288605=validateCssUrl(_0x669588);if(!_0x288605['ok'])return _0x288605;const _0x26fb80=await isUrlReachable(_0x669588);if(!_0x26fb80)_0x288605[_0xe5e7df(0x1e6)][_0xe5e7df(0x1f3)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x288605[_0xe5e7df(0x1e6)][_0xe5e7df(0x1f5)]===0x0,'errors':_0x288605[_0xe5e7df(0x1e6)]};}export function buildCompareRows(_0x2762c9,_0x4a7543){const _0x568272=a89_0x1705;return _0x2762c9[_0x568272(0x1df)](_0x217437=>({'label':_0x217437[_0x568272(0x1ed)],'path':_0x217437['path'],'local':!![],'online':_0x4a7543[_0x568272(0x1e0)](_0x217437[_0x568272(0x1e3)])}));}export function filterNewPages(_0x4849b0,_0x5fe3af,_0x257a19){const _0x4cf34a=a89_0x1705;if(_0x257a19&&_0x257a19[_0x4cf34a(0x1f5)]>0x0){const _0x1d3eb1=new Set(_0x257a19[_0x4cf34a(0x1df)](_0x1f80d6=>_0x1f80d6['trim']())),_0x4cf417=_0x4849b0[_0x4cf34a(0x1f4)](_0x2abdcb=>_0x1d3eb1[_0x4cf34a(0x1e0)](_0x2abdcb[_0x4cf34a(0x1ed)]));if(_0x4cf417['length']===0x0)throw new Error(_0x4cf34a(0x1ef)+[..._0x1d3eb1][_0x4cf34a(0x1f6)](',\x20'));return _0x4cf417;}return _0x4849b0[_0x4cf34a(0x1f4)](_0x328581=>!_0x5fe3af[_0x4cf34a(0x1e0)](_0x328581[_0x4cf34a(0x1e3)]));}export function filterPagesByLabels(_0x1c49f2,_0x34f033){const _0x225394=a89_0x1705,_0x46e557=[],_0x5d94a1=[];for(const _0x173d80 of _0x34f033){const _0x2346bc=_0x173d80[_0x225394(0x1e4)](),_0x27aca5=_0x1c49f2[_0x225394(0x1e8)](_0x40889a=>_0x40889a['label']===_0x2346bc);if(_0x27aca5)_0x46e557['push'](_0x27aca5);else _0x5d94a1[_0x225394(0x1f3)](_0x173d80);}return{'matched':_0x46e557,'unmatched':_0x5d94a1};}export async function doCreateMenus(_0x17ec79,_0x586302,_0x427fe1,_0x1e7b1e){const _0x48392d=a89_0x1705,_0x1e3122=await createMenus(_0x17ec79,_0x586302,_0x427fe1,_0x1e7b1e);return{'created':_0x1e3122[_0x48392d(0x1f5)],'failed':0x0,'labels':_0x427fe1['map'](_0x3d66ac=>_0x3d66ac[_0x48392d(0x1ed)]),'menus':_0x1e3122};}export function filterMenusWithResources(_0x1a5c12){const _0x2e183=a89_0x1705;return _0x1a5c12[_0x2e183(0x1f4)](_0x2d1adf=>_0x2d1adf[_0x2e183(0x1e7)]['length']>0x0);}function a89_0x14b5(){const _0x4cc314=['status','label','212220ckgYeF','No\x20local\x20pages\x20matched\x20labels:\x20','JS\x20URL\x20is\x20unreachable','102WucBHt','26201jLXPti','push','filter','length','join','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','10399MQuuTE','extend','483945YtepZZ','5243480hmsgkP','map','has','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','trim','22178460tPdNdF','errors','resources','find','1374519RnaRHb','4LjJsrf','450IzjMXO'];a89_0x14b5=function(){return _0x4cc314;};return a89_0x14b5();}export async function doUpdateCdnUrls(_0x1777c7,_0x209f89,_0x3e7df3,_0x1cc764){const _0xaf5d52=a89_0x1705,_0x4b5095=_0x3e7df3['filter'](_0x443dca=>_0x443dca[_0xaf5d52(0x1e7)]['length']>0x0),_0x162aee=await Promise['allSettled'](_0x4b5095[_0xaf5d52(0x1df)](_0x20aa82=>updateMenuCdnUrl(_0x1777c7,_0x209f89,{'id':_0x20aa82['id'],'label':_0x20aa82['label'],'path':_0x20aa82['path'],'resources':_0x1cc764,'extend':_0x20aa82[_0xaf5d52(0x1dc)]??null}))),_0x1f7bc4=_0x162aee['filter'](_0x4cf991=>_0x4cf991[_0xaf5d52(0x1ec)]===_0xaf5d52(0x1e1))[_0xaf5d52(0x1df)](_0x52f99a=>_0x52f99a['value']),_0x12efb0=_0x162aee[_0xaf5d52(0x1f4)](_0x6143ae=>_0x6143ae[_0xaf5d52(0x1ec)]==='rejected')[_0xaf5d52(0x1f5)];return{'updated':_0x1f7bc4[_0xaf5d52(0x1f5)],'failed':_0x12efb0,'menus':_0x1f7bc4};}export async function fetchMenuData(_0x3e750b,_0x2dcfdf){const _0x32e805=a89_0x1705,_0x5c5aa1=getLocalPages(),_0x11c07a=await getOnlineMenuList(_0x3e750b,_0x2dcfdf),_0x959948=new Set(_0x11c07a[_0x32e805(0x1df)](_0x4a57f2=>_0x4a57f2['path']));return{'localPages':_0x5c5aa1,'onlineMenuList':_0x11c07a,'onlinePaths':_0x959948};}export async function fetchOnlineMenuList(_0x16567e,_0x336882){return getOnlineMenuList(_0x16567e,_0x336882);}
1
+ (function(_0x4c3422,_0x580d35){const _0x154898=a89_0x3e0d,_0x1358c8=_0x4c3422();while(!![]){try{const _0x4fb42e=-parseInt(_0x154898(0x1c9))/0x1*(parseInt(_0x154898(0x1bf))/0x2)+-parseInt(_0x154898(0x1ca))/0x3+-parseInt(_0x154898(0x1c8))/0x4*(parseInt(_0x154898(0x1b9))/0x5)+-parseInt(_0x154898(0x1b6))/0x6+parseInt(_0x154898(0x1c3))/0x7*(-parseInt(_0x154898(0x1ae))/0x8)+parseInt(_0x154898(0x1bd))/0x9+parseInt(_0x154898(0x1b3))/0xa;if(_0x4fb42e===_0x580d35)break;else _0x1358c8['push'](_0x1358c8['shift']());}catch(_0x2db3ee){_0x1358c8['push'](_0x1358c8['shift']());}}}(a89_0x5a59,0xcbad6));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a89_0x5a59(){const _0x13f569=['1030etzoKT','filter','map','label','11660112rpdXvO','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2RdmLQM','fulfilled','length','trim','84ZEOKzB','rejected','push','find','join','7556RfZkQi','1390019kCppyS','2115537piSJwW','status','path','116936HFdWxE','No\x20local\x20pages\x20matched\x20labels:\x20','CSS\x20URL\x20is\x20unreachable','allSettled','has','31620300hXxfcn','value','resources','5781600VvONCn','errors','JS\x20URL\x20is\x20unreachable'];a89_0x5a59=function(){return _0x13f569;};return a89_0x5a59();}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x20dd0b){const _0x34aa61=[];return!isValidJsHttpsUrl(_0x20dd0b)&&_0x34aa61['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x34aa61['length']===0x0,'errors':_0x34aa61};}function a89_0x3e0d(_0x3b5a2a,_0x460ff2){_0x3b5a2a=_0x3b5a2a-0x1ac;const _0x5a59b4=a89_0x5a59();let _0x3e0d54=_0x5a59b4[_0x3b5a2a];return _0x3e0d54;}export function validateCssUrl(_0x525dfa){const _0x3799c2=a89_0x3e0d,_0x11c227=[];return!isValidCssHttpsUrl(_0x525dfa)&&_0x11c227[_0x3799c2(0x1c5)](_0x3799c2(0x1be)),{'ok':_0x11c227['length']===0x0,'errors':_0x11c227};}export async function validateJsUrlReachable(_0x1b5aa2){const _0x10a779=a89_0x3e0d,_0xc56097=validateJsUrl(_0x1b5aa2);if(!_0xc56097['ok'])return _0xc56097;const _0x74a9df=await isUrlReachable(_0x1b5aa2);if(!_0x74a9df)_0xc56097[_0x10a779(0x1b7)]['push'](_0x10a779(0x1b8));return{'ok':_0xc56097[_0x10a779(0x1b7)][_0x10a779(0x1c1)]===0x0,'errors':_0xc56097[_0x10a779(0x1b7)]};}export async function validateCssUrlReachable(_0x4baa43){const _0x528497=a89_0x3e0d,_0x548adb=validateCssUrl(_0x4baa43);if(!_0x548adb['ok'])return _0x548adb;const _0x4ed247=await isUrlReachable(_0x4baa43);if(!_0x4ed247)_0x548adb['errors'][_0x528497(0x1c5)](_0x528497(0x1b0));return{'ok':_0x548adb[_0x528497(0x1b7)][_0x528497(0x1c1)]===0x0,'errors':_0x548adb[_0x528497(0x1b7)]};}export function buildCompareRows(_0x52c356,_0x31a381){const _0x4194c5=a89_0x3e0d;return _0x52c356[_0x4194c5(0x1bb)](_0xd0c780=>({'label':_0xd0c780[_0x4194c5(0x1bc)],'path':_0xd0c780[_0x4194c5(0x1ad)],'local':!![],'online':_0x31a381[_0x4194c5(0x1b2)](_0xd0c780['path'])}));}export function filterNewPages(_0x2d6bb8,_0x36e2cf,_0x55f952){const _0x42823a=a89_0x3e0d;if(_0x55f952&&_0x55f952[_0x42823a(0x1c1)]>0x0){const _0xc06423=new Set(_0x55f952['map'](_0x47b030=>_0x47b030[_0x42823a(0x1c2)]())),_0x4d1780=_0x2d6bb8[_0x42823a(0x1ba)](_0x9a9211=>_0xc06423['has'](_0x9a9211['label']));if(_0x4d1780['length']===0x0)throw new Error(_0x42823a(0x1af)+[..._0xc06423][_0x42823a(0x1c7)](',\x20'));return _0x4d1780;}return _0x2d6bb8[_0x42823a(0x1ba)](_0x58ee18=>!_0x36e2cf[_0x42823a(0x1b2)](_0x58ee18[_0x42823a(0x1ad)]));}export function filterPagesByLabels(_0xe23d35,_0x3d1c8c){const _0x2b06db=a89_0x3e0d,_0x3691f7=[],_0x5d1146=[];for(const _0x4ba186 of _0x3d1c8c){const _0x4ae7c2=_0x4ba186['trim'](),_0x1ebfc0=_0xe23d35[_0x2b06db(0x1c6)](_0x2b834b=>_0x2b834b[_0x2b06db(0x1bc)]===_0x4ae7c2);if(_0x1ebfc0)_0x3691f7[_0x2b06db(0x1c5)](_0x1ebfc0);else _0x5d1146[_0x2b06db(0x1c5)](_0x4ba186);}return{'matched':_0x3691f7,'unmatched':_0x5d1146};}export async function doCreateMenus(_0x3f9bf9,_0x4b8c86,_0x390c93,_0x31f7c8){const _0x1670d7=a89_0x3e0d,_0x5c7da1=await createMenus(_0x3f9bf9,_0x4b8c86,_0x390c93,_0x31f7c8);return{'created':_0x5c7da1[_0x1670d7(0x1c1)],'failed':0x0,'labels':_0x390c93['map'](_0x5c01aa=>_0x5c01aa['label']),'menus':_0x5c7da1};}export function filterMenusWithResources(_0x3a29bf){const _0x41ff4d=a89_0x3e0d;return _0x3a29bf[_0x41ff4d(0x1ba)](_0x43276d=>_0x43276d[_0x41ff4d(0x1b5)][_0x41ff4d(0x1c1)]>0x0);}export async function doUpdateCdnUrls(_0x169212,_0x1a2b45,_0x36b440,_0x2dc6e9){const _0x119b80=a89_0x3e0d,_0xedff30=_0x36b440[_0x119b80(0x1ba)](_0x1a6289=>_0x1a6289[_0x119b80(0x1b5)][_0x119b80(0x1c1)]>0x0),_0x5cddb1=await Promise[_0x119b80(0x1b1)](_0xedff30[_0x119b80(0x1bb)](_0x20d5a6=>updateMenuCdnUrl(_0x169212,_0x1a2b45,{'id':_0x20d5a6['id'],'label':_0x20d5a6[_0x119b80(0x1bc)],'path':_0x20d5a6['path'],'resources':_0x2dc6e9,'extend':_0x20d5a6['extend']??null}))),_0x1bfc53=_0x5cddb1['filter'](_0x1048a1=>_0x1048a1[_0x119b80(0x1ac)]===_0x119b80(0x1c0))[_0x119b80(0x1bb)](_0x2551e9=>_0x2551e9[_0x119b80(0x1b4)]),_0x2ccd01=_0x5cddb1[_0x119b80(0x1ba)](_0x4987c8=>_0x4987c8[_0x119b80(0x1ac)]===_0x119b80(0x1c4))[_0x119b80(0x1c1)];return{'updated':_0x1bfc53[_0x119b80(0x1c1)],'failed':_0x2ccd01,'menus':_0x1bfc53};}export async function fetchMenuData(_0x4200fd,_0xf974d5){const _0x156a69=a89_0x3e0d,_0x6d8bbc=getLocalPages(),_0x217038=await getOnlineMenuList(_0x4200fd,_0xf974d5),_0x26aa8a=new Set(_0x217038[_0x156a69(0x1bb)](_0x54e194=>_0x54e194['path']));return{'localPages':_0x6d8bbc,'onlineMenuList':_0x217038,'onlinePaths':_0x26aa8a};}export async function fetchOnlineMenuList(_0x331c2a,_0x168390){return getOnlineMenuList(_0x331c2a,_0x168390);}
@@ -1 +1 @@
1
- function a90_0x5cc4(){const _0x569a22=['label','import','isArray','/smartapi/menu/find?appCode=','1614724MKVcbf','60275104Yrpjmt','procode','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','info','update-menu-cdn-url','create-menu','stringify','children','/smartapi/menu/create','resources','Creating\x20menu:\x20','map','flat','length','8654215myrKNV','Update\x20menu\x20assets\x20\x22','3286656LpKmGK','Updating\x20menu\x20asset\x20links:\x20','extend','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','string','1248632NKEVsU','Menu\x20created\x20successfully:\x20','\x20online\x20menus\x20successfully','parse','get-online-menu-list','Menu\x20assets\x20synced:\x20','1116160pSBfqN','Fetched\x20','Batch\x20menu\x20creation\x20completed,\x20total\x20','all','Create\x20menu\x20\x22','push','POST','6xDEGfC','path','6864188Xmuaip'];a90_0x5cc4=function(){return _0x569a22;};return a90_0x5cc4();}(function(_0x3a7fed,_0x33ad41){const _0x3332ef=a90_0x2eb4,_0x3d2d6c=_0x3a7fed();while(!![]){try{const _0x40c9e5=-parseInt(_0x3332ef(0xb2))/0x1+-parseInt(_0x3332ef(0xc0))/0x2+-parseInt(_0x3332ef(0xd1))/0x3+-parseInt(_0x3332ef(0xbb))/0x4+parseInt(_0x3332ef(0xcf))/0x5*(-parseInt(_0x3332ef(0xb9))/0x6)+-parseInt(_0x3332ef(0xac))/0x7+parseInt(_0x3332ef(0xc1))/0x8;if(_0x40c9e5===_0x33ad41)break;else _0x3d2d6c['push'](_0x3d2d6c['shift']());}catch(_0x56a6d5){_0x3d2d6c['push'](_0x3d2d6c['shift']());}}}(a90_0x5cc4,0xd94c0));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';export async function getOnlineMenuList(_0x311a5a,_0x4e7a7a){const _0x37f642=a90_0x2eb4,_0xd6d96=getEnv();logger['info'](_0x37f642(0xb0),isProduction(_0xd6d96)?_0x37f642(0xd4)+_0x311a5a+')':_0x37f642(0xc3)+_0x311a5a+')');const _0x40b45a=await platformFetch(getApiDomain()+_0x37f642(0xbf)+_0x311a5a,{'cookie':_0x4e7a7a,'label':'Fetch\x20menu\x20list'});if(!_0x40b45a)return logger[_0x37f642(0xc4)](_0x37f642(0xb0),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x37f642(0xc4)](_0x37f642(0xb0),_0x37f642(0xb3)+_0x40b45a[_0x37f642(0xce)]+_0x37f642(0xae)),_0x40b45a['map'](flattenMenuItem)[_0x37f642(0xcd)]();}function flattenMenuItem(_0x595dfc){const _0x4c8f57=a90_0x2eb4;let _0x81463c=[];try{const _0x2c28fa=_0x595dfc[_0x4c8f57(0xd3)]?.[_0x4c8f57(0xca)];if(typeof _0x2c28fa===_0x4c8f57(0xab)){const _0x55d9fb=JSON[_0x4c8f57(0xaf)](_0x2c28fa);if(Array[_0x4c8f57(0xbe)](_0x55d9fb))_0x81463c=_0x55d9fb['map'](String);}else Array['isArray'](_0x2c28fa)&&(_0x81463c=_0x2c28fa['map'](String));}catch{}const _0x54163c=[{'id':_0x595dfc['id'],'path':_0x595dfc[_0x4c8f57(0xba)],'label':_0x595dfc['label'],'resources':_0x81463c,'extend':_0x595dfc[_0x4c8f57(0xd3)]??null}];if(_0x595dfc[_0x4c8f57(0xc8)]&&_0x595dfc[_0x4c8f57(0xc8)][_0x4c8f57(0xce)]>0x0)for(const _0xe54691 of _0x595dfc[_0x4c8f57(0xc8)]){_0x54163c[_0x4c8f57(0xb7)](...flattenMenuItem(_0xe54691));}return _0x54163c;}export async function createMenu(_0x37ff49,_0x4336f1,_0x3b032c){const _0x26ea4b=a90_0x2eb4;logger[_0x26ea4b(0xc4)](_0x26ea4b(0xc6),_0x26ea4b(0xcb)+_0x3b032c[_0x26ea4b(0xbc)]+'\x20('+_0x3b032c[_0x26ea4b(0xba)]+')');const _0x5f189c={'appCode':_0x37ff49,'type':_0x26ea4b(0xc2),'sort':0x0,'extend':{'loadScriptMode':_0x26ea4b(0xbd),'resources':_0x3b032c[_0x26ea4b(0xca)]?JSON['stringify'](_0x3b032c[_0x26ea4b(0xca)]):undefined},..._0x3b032c},_0x49ec89=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x26ea4b(0xb8),'body':_0x5f189c,'cookie':_0x4336f1,'label':'Create\x20menu\x20\x22'+_0x3b032c[_0x26ea4b(0xbc)]+'\x22'});return logger[_0x26ea4b(0xc4)](_0x26ea4b(0xc6),_0x26ea4b(0xad)+_0x3b032c['label']),_0x49ec89;}async function createSingleMenu(_0x5e0143,_0x3e10cf,_0x47a69c,_0x33d82d){const _0x3246f9=a90_0x2eb4,_0x2bffb8={'appCode':_0x5e0143,'type':_0x3246f9(0xc2),'sort':0x0,'extend':{'loadScriptMode':_0x3246f9(0xbd),'resources':_0x33d82d?JSON['stringify'](_0x33d82d):undefined},'label':_0x47a69c[_0x3246f9(0xbc)],'path':_0x47a69c[_0x3246f9(0xba)]},_0x25607c=await platformFetch(getApiDomain()+_0x3246f9(0xc9),{'method':_0x3246f9(0xb8),'body':_0x2bffb8,'cookie':_0x3e10cf,'label':_0x3246f9(0xb6)+_0x47a69c[_0x3246f9(0xbc)]+'\x22'});return logger[_0x3246f9(0xc4)](_0x3246f9(0xc6),_0x3246f9(0xad)+_0x47a69c[_0x3246f9(0xbc)]),_0x25607c;}export async function createMenus(_0x15d91b,_0x4c4200,_0x1f3437,_0x501fbe){const _0x19b523=a90_0x2eb4;logger[_0x19b523(0xc4)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x1f3437[_0x19b523(0xce)]);const _0x3dc2c2=await Promise[_0x19b523(0xb5)](_0x1f3437[_0x19b523(0xcc)](_0x57661e=>createSingleMenu(_0x15d91b,_0x4c4200,_0x57661e,_0x501fbe)));return logger[_0x19b523(0xc4)]('create-menus',_0x19b523(0xb4)+_0x1f3437[_0x19b523(0xce)]),_0x3dc2c2;}function a90_0x2eb4(_0x406ed7,_0x44b44b){_0x406ed7=_0x406ed7-0xab;const _0x5cc42=a90_0x5cc4();let _0x2eb4bf=_0x5cc42[_0x406ed7];return _0x2eb4bf;}export async function updateMenuCdnUrl(_0x477ded,_0x3181ab,_0x47361c){const _0x5a29b2=a90_0x2eb4;logger[_0x5a29b2(0xc4)](_0x5a29b2(0xc5),_0x5a29b2(0xd2)+_0x47361c[_0x5a29b2(0xbc)]+'\x20('+_0x47361c[_0x5a29b2(0xba)]+')');const _0xb74f41={'id':_0x47361c['id'],'appCode':_0x477ded,'extend':{..._0x47361c[_0x5a29b2(0xd3)]??{},'loadScriptMode':_0x5a29b2(0xbd),'resources':_0x47361c['resources']?JSON[_0x5a29b2(0xc7)](_0x47361c['resources']):undefined}},_0x1b58fc=await platformFetch(getApiDomain()+'/smartapi/menu/update',{'method':'POST','body':_0xb74f41,'cookie':_0x3181ab,'label':_0x5a29b2(0xd0)+_0x47361c[_0x5a29b2(0xbc)]+'\x22'});return logger[_0x5a29b2(0xc4)](_0x5a29b2(0xc5),_0x5a29b2(0xb1)+_0x47361c[_0x5a29b2(0xbc)],undefined),_0x1b58fc;}
1
+ (function(_0x2adb02,_0x39c270){const _0x337781=a90_0x24ef,_0x24fc89=_0x2adb02();while(!![]){try{const _0x15c29c=-parseInt(_0x337781(0x6f))/0x1+parseInt(_0x337781(0x94))/0x2*(-parseInt(_0x337781(0x77))/0x3)+parseInt(_0x337781(0x74))/0x4*(parseInt(_0x337781(0x6e))/0x5)+parseInt(_0x337781(0x89))/0x6*(parseInt(_0x337781(0x8b))/0x7)+-parseInt(_0x337781(0x8a))/0x8+-parseInt(_0x337781(0x92))/0x9+parseInt(_0x337781(0x7b))/0xa;if(_0x15c29c===_0x39c270)break;else _0x24fc89['push'](_0x24fc89['shift']());}catch(_0x1fa11b){_0x24fc89['push'](_0x24fc89['shift']());}}}(a90_0x4619,0x4781b));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';export async function getOnlineMenuList(_0x503369,_0x41a88a){const _0x53e51b=a90_0x24ef,_0x248f9e=getEnv();logger['info'](_0x53e51b(0x8d),isProduction(_0x248f9e)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x503369+')':_0x53e51b(0x99)+_0x503369+')');const _0x5cd920=await platformFetch(getApiDomain()+_0x53e51b(0x7d)+_0x503369,{'cookie':_0x41a88a,'label':_0x53e51b(0x95)});if(!_0x5cd920)return logger['info'](_0x53e51b(0x8d),_0x53e51b(0x87)),[];return logger[_0x53e51b(0x8c)](_0x53e51b(0x8d),'Fetched\x20'+_0x5cd920[_0x53e51b(0x82)]+_0x53e51b(0x83)),_0x5cd920[_0x53e51b(0x7e)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x4121ea){const _0x25497f=a90_0x24ef;let _0x300537=[];try{const _0x2b44c0=_0x4121ea['extend']?.['resources'];if(typeof _0x2b44c0===_0x25497f(0x70)){const _0x1c5f54=JSON[_0x25497f(0x84)](_0x2b44c0);if(Array['isArray'](_0x1c5f54))_0x300537=_0x1c5f54['map'](String);}else Array[_0x25497f(0x78)](_0x2b44c0)&&(_0x300537=_0x2b44c0[_0x25497f(0x7e)](String));}catch{}const _0x70032d=[{'id':_0x4121ea['id'],'path':_0x4121ea['path'],'label':_0x4121ea[_0x25497f(0x98)],'resources':_0x300537,'extend':_0x4121ea[_0x25497f(0x7a)]??null}];if(_0x4121ea[_0x25497f(0x86)]&&_0x4121ea[_0x25497f(0x86)][_0x25497f(0x82)]>0x0)for(const _0x14c30b of _0x4121ea[_0x25497f(0x86)]){_0x70032d[_0x25497f(0x8e)](...flattenMenuItem(_0x14c30b));}return _0x70032d;}export async function createMenu(_0x4521c5,_0x1330d6,_0xd03c78){const _0x503167=a90_0x24ef;logger[_0x503167(0x8c)](_0x503167(0x88),_0x503167(0x71)+_0xd03c78['label']+'\x20('+_0xd03c78[_0x503167(0x96)]+')');const _0x4f15d0={'appCode':_0x4521c5,'type':_0x503167(0x93),'sort':0x0,'extend':{'loadScriptMode':_0x503167(0x73),'resources':_0xd03c78[_0x503167(0x80)]?JSON[_0x503167(0x79)](_0xd03c78['resources']):undefined},..._0xd03c78},_0x257867=await platformFetch(getApiDomain()+_0x503167(0x90),{'method':_0x503167(0x76),'body':_0x4f15d0,'cookie':_0x1330d6,'label':_0x503167(0x8f)+_0xd03c78[_0x503167(0x98)]+'\x22'});return logger['info'](_0x503167(0x88),'Menu\x20created\x20successfully:\x20'+_0xd03c78[_0x503167(0x98)]),_0x257867;}async function createSingleMenu(_0xb467ac,_0x229fe8,_0xaf0087,_0x3aa211){const _0x2ff237=a90_0x24ef,_0x438a11={'appCode':_0xb467ac,'type':_0x2ff237(0x93),'sort':0x0,'extend':{'loadScriptMode':_0x2ff237(0x73),'resources':_0x3aa211?JSON[_0x2ff237(0x79)](_0x3aa211):undefined},'label':_0xaf0087[_0x2ff237(0x98)],'path':_0xaf0087[_0x2ff237(0x96)]},_0x14a771=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x2ff237(0x76),'body':_0x438a11,'cookie':_0x229fe8,'label':'Create\x20menu\x20\x22'+_0xaf0087[_0x2ff237(0x98)]+'\x22'});return logger[_0x2ff237(0x8c)](_0x2ff237(0x88),'Menu\x20created\x20successfully:\x20'+_0xaf0087[_0x2ff237(0x98)]),_0x14a771;}export async function createMenus(_0x4351a9,_0x412910,_0x110fbe,_0xc58a49){const _0x1bc3f6=a90_0x24ef;logger[_0x1bc3f6(0x8c)]('create-menus',_0x1bc3f6(0x72)+_0x110fbe[_0x1bc3f6(0x82)]);const _0x267d99=await Promise[_0x1bc3f6(0x81)](_0x110fbe[_0x1bc3f6(0x7e)](_0x21a0cf=>createSingleMenu(_0x4351a9,_0x412910,_0x21a0cf,_0xc58a49)));return logger[_0x1bc3f6(0x8c)]('create-menus',_0x1bc3f6(0x7c)+_0x110fbe[_0x1bc3f6(0x82)]),_0x267d99;}function a90_0x24ef(_0x41cfb4,_0x5f1330){_0x41cfb4=_0x41cfb4-0x6e;const _0x46191d=a90_0x4619();let _0x24efdf=_0x46191d[_0x41cfb4];return _0x24efdf;}export async function updateMenuCdnUrl(_0x369ca5,_0x2222a1,_0x8726de){const _0x5a0d3e=a90_0x24ef;logger['info'](_0x5a0d3e(0x91),_0x5a0d3e(0x97)+_0x8726de[_0x5a0d3e(0x98)]+'\x20('+_0x8726de[_0x5a0d3e(0x96)]+')');const _0x38303d={'id':_0x8726de['id'],'appCode':_0x369ca5,'extend':{..._0x8726de[_0x5a0d3e(0x7a)]??{},'loadScriptMode':'import','resources':_0x8726de[_0x5a0d3e(0x80)]?JSON[_0x5a0d3e(0x79)](_0x8726de[_0x5a0d3e(0x80)]):undefined}},_0x1fa57b=await platformFetch(getApiDomain()+_0x5a0d3e(0x85),{'method':_0x5a0d3e(0x76),'body':_0x38303d,'cookie':_0x2222a1,'label':_0x5a0d3e(0x7f)+_0x8726de[_0x5a0d3e(0x98)]+'\x22'});return logger['info'](_0x5a0d3e(0x91),_0x5a0d3e(0x75)+_0x8726de[_0x5a0d3e(0x98)],undefined),_0x1fa57b;}function a90_0x4619(){const _0x3aac7b=['map','Update\x20menu\x20assets\x20\x22','resources','all','length','\x20online\x20menus\x20successfully','parse','/smartapi/menu/update','children','Server\x20returned\x20empty\x20menu\x20list','create-menu','1095126TYgGyP','56120ApjBEx','14FhKdoj','info','get-online-menu-list','push','Create\x20menu\x20\x22','/smartapi/menu/create','update-menu-cdn-url','2449368jLdRTZ','procode','4QNRMzz','Fetch\x20menu\x20list','path','Updating\x20menu\x20asset\x20links:\x20','label','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','5WEklHr','291614eLfYwT','string','Creating\x20menu:\x20','Start\x20batch\x20menu\x20creation,\x20total\x20','import','1337516UVetwx','Menu\x20assets\x20synced:\x20','POST','16257gmUMVe','isArray','stringify','extend','1750890ZOuQvi','Batch\x20menu\x20creation\x20completed,\x20total\x20','/smartapi/menu/find?appCode='];a90_0x4619=function(){return _0x3aac7b;};return a90_0x4619();}