@lovrabet/rabetbase-cli 2.3.3-beta.4 → 2.3.3

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 (219) 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/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -1
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/generate.js +1 -1
  65. package/lib/commands/dataset/index.js +1 -1
  66. package/lib/commands/dataset/list.js +1 -1
  67. package/lib/commands/dataset/operations.js +1 -1
  68. package/lib/commands/dataset/relation-audit.js +1 -1
  69. package/lib/commands/dataset/relation-create.js +1 -1
  70. package/lib/commands/dataset/relation-delete.js +1 -1
  71. package/lib/commands/dataset/relation-shared.js +1 -1
  72. package/lib/commands/dataset/relation-update.js +1 -1
  73. package/lib/commands/dataset/relations.js +1 -1
  74. package/lib/commands/dataset/rename.js +1 -1
  75. package/lib/commands/dataset/restore.js +1 -1
  76. package/lib/commands/db/analyze-cancel.js +1 -1
  77. package/lib/commands/db/analyze-start.js +1 -1
  78. package/lib/commands/db/analyze-status.js +1 -1
  79. package/lib/commands/db/create.js +1 -1
  80. package/lib/commands/db/delete.js +1 -1
  81. package/lib/commands/db/detail.js +1 -1
  82. package/lib/commands/db/diff.js +1 -1
  83. package/lib/commands/db/index.js +1 -1
  84. package/lib/commands/db/list.js +1 -1
  85. package/lib/commands/db/shared.js +1 -1
  86. package/lib/commands/db/tables.js +1 -1
  87. package/lib/commands/db/test.js +1 -1
  88. package/lib/commands/db/update.js +1 -1
  89. package/lib/commands/doctor.js +1 -1
  90. package/lib/commands/init/index.js +1 -1
  91. package/lib/commands/issue/index.js +1 -1
  92. package/lib/commands/issue/nudge.js +1 -1
  93. package/lib/commands/issue/report.js +1 -1
  94. package/lib/commands/issue/shared.js +1 -1
  95. package/lib/commands/logs/index.js +1 -1
  96. package/lib/commands/menu/index.js +1 -1
  97. package/lib/commands/menu/list.js +1 -1
  98. package/lib/commands/menu/shared/compare-table.js +1 -1
  99. package/lib/commands/menu/shared/index.js +1 -1
  100. package/lib/commands/menu/shared/inquirer.js +1 -1
  101. package/lib/commands/menu/shared/local-pages.js +1 -1
  102. package/lib/commands/menu/shared/logic.js +1 -1
  103. package/lib/commands/menu/shared/service.js +1 -1
  104. package/lib/commands/menu/shared/sync-core.js +1 -1
  105. package/lib/commands/menu/shared/update-core.js +1 -1
  106. package/lib/commands/menu/shared/valid-url.js +1 -1
  107. package/lib/commands/menu/sync.js +1 -1
  108. package/lib/commands/menu/update.js +1 -1
  109. package/lib/commands/page/generate-start.js +1 -1
  110. package/lib/commands/page/generate-status.js +1 -1
  111. package/lib/commands/page/index.js +1 -1
  112. package/lib/commands/page/pull.js +1 -1
  113. package/lib/commands/page/push.js +1 -1
  114. package/lib/commands/page/relation-audit.js +1 -1
  115. package/lib/commands/page/shared.js +1 -1
  116. package/lib/commands/page/standard-page-status.js +1 -1
  117. package/lib/commands/page/sync.js +1 -1
  118. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  119. package/lib/commands/project/create/format-elapsed.js +1 -1
  120. package/lib/commands/project/create/main.js +1 -1
  121. package/lib/commands/project/create/non-interactive.js +1 -1
  122. package/lib/commands/project/create/project-template-path.js +1 -1
  123. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  124. package/lib/commands/project/create/use-format-code.js +1 -1
  125. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  126. package/lib/commands/project/index.js +1 -1
  127. package/lib/commands/project/init.js +1 -1
  128. package/lib/commands/project/upgrade.js +1 -1
  129. package/lib/commands/registry.js +1 -1
  130. package/lib/commands/run/index.js +1 -1
  131. package/lib/commands/schema.js +1 -1
  132. package/lib/commands/sql/create.js +1 -1
  133. package/lib/commands/sql/delete.js +1 -1
  134. package/lib/commands/sql/detail.js +1 -1
  135. package/lib/commands/sql/exec.js +1 -1
  136. package/lib/commands/sql/index.js +1 -1
  137. package/lib/commands/sql/list.js +1 -1
  138. package/lib/commands/sql/pull.js +1 -1
  139. package/lib/commands/sql/push.js +1 -1
  140. package/lib/commands/sql/save.js +1 -1
  141. package/lib/commands/sql/shared.js +1 -1
  142. package/lib/commands/sql/status.js +1 -1
  143. package/lib/commands/sql/validate.js +1 -1
  144. package/lib/commands/workspace/index.js +1 -1
  145. package/lib/config/schema.js +1 -1
  146. package/lib/constant/cdn.js +1 -1
  147. package/lib/constant/cli.js +1 -1
  148. package/lib/constant/defaults.js +1 -1
  149. package/lib/constant/domain.js +1 -1
  150. package/lib/constant/env.js +1 -1
  151. package/lib/constant/output.js +1 -1
  152. package/lib/constant/paths.js +1 -1
  153. package/lib/constant/risk.js +1 -1
  154. package/lib/context/app-resolver.js +1 -1
  155. package/lib/context/auth-resolver.js +1 -1
  156. package/lib/context/config-loader.js +1 -1
  157. package/lib/context.js +1 -1
  158. package/lib/core/alias-resolver.js +1 -1
  159. package/lib/core/api-client.js +1 -1
  160. package/lib/core/bff/config.js +1 -1
  161. package/lib/core/bff/file-system.js +1 -1
  162. package/lib/core/bff/hash.js +1 -1
  163. package/lib/core/bff/lock.js +1 -1
  164. package/lib/core/bff/utils.js +1 -1
  165. package/lib/core/db-resolver.js +1 -1
  166. package/lib/core/page/file-system.js +1 -1
  167. package/lib/core/page/hash.js +1 -1
  168. package/lib/core/page/lock.js +1 -1
  169. package/lib/core/sql-sync/config.js +1 -1
  170. package/lib/core/sql-sync/file-system.js +1 -1
  171. package/lib/core/sql-sync/hash.js +1 -1
  172. package/lib/core/sql-sync/lock.js +1 -1
  173. package/lib/core/sql-sync/utils.js +1 -1
  174. package/lib/core/sql-validator.js +1 -1
  175. package/lib/errors.js +1 -1
  176. package/lib/framework/build-all-flags.js +1 -1
  177. package/lib/framework/flags.js +1 -1
  178. package/lib/framework/help.js +1 -1
  179. package/lib/framework/index.js +1 -1
  180. package/lib/framework/output.js +1 -1
  181. package/lib/framework/response.js +1 -1
  182. package/lib/framework/runner-alias.js +1 -1
  183. package/lib/framework/runner.js +1 -1
  184. package/lib/framework/schema-export.js +1 -1
  185. package/lib/framework/types.js +1 -1
  186. package/lib/generated/build-info.js +1 -1
  187. package/lib/help.js +1 -1
  188. package/lib/skills/main.js +1 -1
  189. package/lib/skills/npx-skills-add.js +1 -1
  190. package/lib/telemetry/cli-command-trace.js +1 -1
  191. package/lib/telemetry/cli-help-trace.js +1 -1
  192. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  193. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  194. package/lib/telemetry/send-cli-trace-log.js +1 -1
  195. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  196. package/lib/utils/ai_config.js +1 -1
  197. package/lib/utils/apply-jq-filter.js +1 -1
  198. package/lib/utils/cdn-config.js +1 -1
  199. package/lib/utils/check-sdk-version.js +1 -1
  200. package/lib/utils/cli-version-check.js +1 -1
  201. package/lib/utils/cli-version-policy.js +1 -1
  202. package/lib/utils/config.js +1 -1
  203. package/lib/utils/copy-directory.js +1 -1
  204. package/lib/utils/entity-with-id.js +1 -1
  205. package/lib/utils/file-utils.js +1 -1
  206. package/lib/utils/guides-cdn.js +1 -1
  207. package/lib/utils/http-client.js +1 -1
  208. package/lib/utils/is-non-interactive.js +1 -1
  209. package/lib/utils/logger.js +1 -1
  210. package/lib/utils/params.js +1 -1
  211. package/lib/utils/platform.js +1 -1
  212. package/lib/utils/rules-cdn.js +1 -1
  213. package/lib/utils/sleep.js +1 -1
  214. package/lib/utils/template-replacer.js +1 -1
  215. package/lib/utils/update-notice.js +1 -1
  216. package/lib/utils/version.js +1 -1
  217. package/lib/utils/with-active-cookie.js +1 -1
  218. package/lib/utils/write-cli-side-channel.js +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- const a88_0x68dec8=a88_0x90dd;(function(_0x247fc3,_0x217b0d){const _0x17eae5=a88_0x90dd,_0x8e2e48=_0x247fc3();while(!![]){try{const _0x310555=-parseInt(_0x17eae5(0x1f3))/0x1*(parseInt(_0x17eae5(0x216))/0x2)+-parseInt(_0x17eae5(0x238))/0x3+-parseInt(_0x17eae5(0x222))/0x4+parseInt(_0x17eae5(0x235))/0x5+parseInt(_0x17eae5(0x224))/0x6*(parseInt(_0x17eae5(0x228))/0x7)+-parseInt(_0x17eae5(0x23a))/0x8+parseInt(_0x17eae5(0x1f5))/0x9;if(_0x310555===_0x217b0d)break;else _0x8e2e48['push'](_0x8e2e48['shift']());}catch(_0x10d90e){_0x8e2e48['push'](_0x8e2e48['shift']());}}}(a88_0x3201,0x71263));import a88_0x29245a from'chalk';function a88_0x90dd(_0x48e1e4,_0x30880d){_0x48e1e4=_0x48e1e4-0x1ea;const _0x32013f=a88_0x3201();let _0x90ddb8=_0x32013f[_0x48e1e4];return _0x90ddb8;}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';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x5e5afe){const _0x4d2f03=a88_0x90dd,_0x177d1f=GIT_COMMIT!==_0x4d2f03(0x210)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x5f31f5=buildConfigFromFlags({}),_0x55ecdb=getCookie();console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](CLI_BIN_NAME+_0x4d2f03(0x217))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)]('─'['repeat'](0x32))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x22e)+_0x177d1f),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x21f)+process[_0x4d2f03(0x239)]),console['log'](_0x4d2f03(0x1fe)+process[_0x4d2f03(0x20d)]+'\x20'+process[_0x4d2f03(0x1f0)]),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x21c))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));const _0x34b84a=getGlobalConfigPath(),_0x1d1fd5=getProjectConfigPath();console[_0x4d2f03(0x1f8)](_0x4d2f03(0x22b)+(_0x34b84a||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x227)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1d1fd5||a88_0x29245a[_0x4d2f03(0x1ff)]('(not\x20found)'))),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20Config\x20JSON')),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)['repeat'](0x1e)));const _0x21778a=(_0x3b5ba6,_0x2987a5)=>{const _0x3b2500=_0x4d2f03;if(!_0x2987a5){console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ff)](_0x3b2500(0x1ea)));return;}const _0xfe437=inspectCliConfigJsonFile(_0x2987a5);if(_0xfe437['status']==='ok')console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a['green'](_0x3b2500(0x21d)));else{if(_0xfe437[_0x3b2500(0x20f)]==='empty')console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ef)](_0x3b2500(0x1eb)));else _0xfe437['status']===_0x3b2500(0x20c)?console['log']('\x20\x20'+_0x3b5ba6[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x1ff)](_0x3b2500(0x22f))):(console[_0x3b2500(0x1f8)]('\x20\x20'+_0x3b5ba6['padEnd'](0x11)+'\x20'+a88_0x29245a['red']('✗\x20Invalid\x20JSON')),console[_0x3b2500(0x1f8)]('\x20\x20'+''[_0x3b2500(0x232)](0x11)+'\x20'+a88_0x29245a[_0x3b2500(0x22d)](_0xfe437['message'])));}};_0x21778a('Global',_0x34b84a),_0x21778a(_0x4d2f03(0x214),_0x1d1fd5),console[_0x4d2f03(0x1f8)](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x229))),console[_0x4d2f03(0x1f8)](a88_0x29245a['gray']('\x20\x20─'[_0x4d2f03(0x215)](0x1e))),console[_0x4d2f03(0x1f8)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5f31f5['appCode']||a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x1ee)))),console['log'](_0x4d2f03(0x1fd)+_0x5f31f5['env']),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x204)+_0x5f31f5[_0x4d2f03(0x236)]),console[_0x4d2f03(0x1f8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5f31f5[_0x4d2f03(0x1ed)]),console['log'](_0x4d2f03(0x219)+(_0x5f31f5['defaultApp']||a88_0x29245a['gray'](_0x4d2f03(0x208)))),console['log'](_0x4d2f03(0x22a)+(_0x5f31f5[_0x4d2f03(0x1f6)]||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208)))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x237)+(_0x5f31f5[_0x4d2f03(0x231)]||a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208)))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x220)+(_0x5f31f5[_0x4d2f03(0x20a)]||a88_0x29245a['gray'](_0x4d2f03(0x212)+DEFAULT_CONFIG_VALUES[_0x4d2f03(0x20a)]+')'))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x1fa)+(_0x5f31f5[_0x4d2f03(0x205)]??a88_0x29245a[_0x4d2f03(0x1ff)]('(default)'))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x200)+_0x5f31f5['riskLevel']),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x213)+_0x5f31f5[_0x4d2f03(0x1f4)]),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x207)+(_0x5f31f5['cookie']?a88_0x29245a['green'](_0x4d2f03(0x1f2)+_0x5f31f5[_0x4d2f03(0x21e)]['length']+')'):_0x55ecdb?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x206)+_0x55ecdb['length']+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208))));const _0x5e382d=Object[_0x4d2f03(0x233)](_0x5f31f5[_0x4d2f03(0x1fb)]);if(_0x5e382d['length']>0x0){console[_0x4d2f03(0x1f8)](),console['log'](a88_0x29245a[_0x4d2f03(0x211)](_0x4d2f03(0x234))),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));for(const _0x260b95 of _0x5e382d){const _0x36e3df=_0x5f31f5[_0x4d2f03(0x1fb)][_0x260b95],_0x1160a9=_0x260b95===_0x5f31f5[_0x4d2f03(0x1f1)],_0x569329=_0x260b95===_0x5f31f5[_0x4d2f03(0x1f6)],_0x1b12e3=_0x569329?a88_0x29245a[_0x4d2f03(0x23b)]('\x20←\x20current'):'',_0x157b55=_0x1160a9?'\x20(default)':'';console[_0x4d2f03(0x1f8)]('\x20\x20'+_0x260b95+_0x157b55+_0x1b12e3),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x225)+_0x36e3df[_0x4d2f03(0x218)]);const _0x269842=buildAppDoctorFields(_0x36e3df,{'env':_0x5f31f5[_0x4d2f03(0x1f7)],'apiDir':_0x5f31f5[_0x4d2f03(0x1fc)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x4d2f03(0x1ed)],'cookie':_0x5f31f5['cookie']||_0x55ecdb||undefined,'accessKey':_0x5f31f5[_0x4d2f03(0x23c)]});console[_0x4d2f03(0x1f8)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x269842[_0x4d2f03(0x1f7)][_0x4d2f03(0x20b)]+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842['env'][_0x4d2f03(0x23d)]+')')),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x1ec)+_0x269842[_0x4d2f03(0x1ed)][_0x4d2f03(0x20b)]+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842['apiDir']['source']+')'));const _0x2fe7ce=_0x269842[_0x4d2f03(0x21e)]['value']?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x1f2)+_0x269842[_0x4d2f03(0x21e)][_0x4d2f03(0x20b)][_0x4d2f03(0x201)]+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208));console[_0x4d2f03(0x1f8)](_0x4d2f03(0x21b)+_0x2fe7ce+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842[_0x4d2f03(0x21e)][_0x4d2f03(0x23d)]+')'));const _0x4830d4=_0x269842['accessKey'][_0x4d2f03(0x20b)]?a88_0x29245a[_0x4d2f03(0x23b)](_0x4d2f03(0x1f2)+_0x269842[_0x4d2f03(0x23c)][_0x4d2f03(0x20b)]['length']+')'):a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x208));console[_0x4d2f03(0x1f8)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4830d4+'\x20\x20'+a88_0x29245a[_0x4d2f03(0x1ff)]('('+_0x269842[_0x4d2f03(0x23c)]['source']+')'));}}console[_0x4d2f03(0x1f8)](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20API\x20Endpoints')),console[_0x4d2f03(0x1f8)](a88_0x29245a['gray'](_0x4d2f03(0x221)['repeat'](0x1e))),console[_0x4d2f03(0x1f8)](_0x4d2f03(0x226)+getApiDomain()),console['log'](_0x4d2f03(0x22c)+getUserDomain()),console[_0x4d2f03(0x1f8)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console['log'](),console[_0x4d2f03(0x1f8)](a88_0x29245a[_0x4d2f03(0x211)]('\x20\x20Auth')),console['log'](a88_0x29245a[_0x4d2f03(0x1ff)](_0x4d2f03(0x221)[_0x4d2f03(0x215)](0x1e)));if(_0x55ecdb){const _0x365ac0=await getIsSessionValid();console['log'](_0x4d2f03(0x203)+(_0x365ac0?a88_0x29245a['green'](_0x4d2f03(0x223)):a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x202))));}else console[_0x4d2f03(0x1f8)](_0x4d2f03(0x203)+a88_0x29245a[_0x4d2f03(0x22d)](_0x4d2f03(0x1f9)));return console['log'](),{'ok':!![]};}function a88_0x3201(){const _0x3e000c=['(none)','read','format','value','missing','platform','doctor','status','unknown','bold','(default:\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','repeat','1045994qebaRC','\x20doctor','appcode','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','✓\x20Valid\x20JSON','cookie','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','2768444hbnOzd','✓\x20Valid','5537382oRvMAh','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','7heqixd','\x20\x20Merged\x20Config','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','(missing)','check','explicitAppName','padEnd','keys','\x20\x20Apps','23055KNLTSe','locale','\x20\x20explicitAppName:\x20','1719219sfIwuY','version','3087184EgyEPs','green','accessKey','source','(no\x20file)','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','apiDir','(not\x20set)','yellow','arch','defaultApp','(set,\x20length=','1AkIyJs','verbose','15390270uProYP','currentApp','env','log','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','apps','raw','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','length','✗\x20Expired','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a88_0x3201=function(){return _0x3e000c;};return a88_0x3201();}export const doctorDefinition={'service':a88_0x68dec8(0x20e),'command':a88_0x68dec8(0x230),'description':a88_0x68dec8(0x21a),'risk':a88_0x68dec8(0x209),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a88_0x41e8d4=a88_0x4b1e;(function(_0x1d32df,_0x2b95de){const _0x2e67bb=a88_0x4b1e,_0x49c49c=_0x1d32df();while(!![]){try{const _0x365e18=parseInt(_0x2e67bb(0x1bc))/0x1+parseInt(_0x2e67bb(0x1ad))/0x2*(-parseInt(_0x2e67bb(0x1a5))/0x3)+parseInt(_0x2e67bb(0x18a))/0x4+-parseInt(_0x2e67bb(0x195))/0x5+parseInt(_0x2e67bb(0x1b9))/0x6*(-parseInt(_0x2e67bb(0x185))/0x7)+parseInt(_0x2e67bb(0x1b4))/0x8*(parseInt(_0x2e67bb(0x192))/0x9)+parseInt(_0x2e67bb(0x1c3))/0xa*(parseInt(_0x2e67bb(0x198))/0xb);if(_0x365e18===_0x2b95de)break;else _0x49c49c['push'](_0x49c49c['shift']());}catch(_0x1ce49c){_0x49c49c['push'](_0x49c49c['shift']());}}}(a88_0x54f0,0xe5f77));import a88_0x34be28 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a88_0x54f0(){const _0xdabe38=['(none)','raw','bold','8bJSEGp','✗\x20Invalid\x20JSON','env','gray','\x20\x20Merged\x20Config','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','12523728WCXmyw','source','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','repeat','log','630nSGAjp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','779674ATMPuy','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','padEnd','(no\x20file)','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','apps','10801810sqJELg','\x20\x20\x20\x20accessKey:\x20\x20','\x20←\x20current','missing','read','\x20\x20Auth','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','length','yellow','\x20(default)','(set,\x20length=','(default:\x20','\x20\x20API\x20Endpoints','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','check','\x20\x20─','status','platform','currentApp','Global','accessKey','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','Project','75733pUMiwJ','format','(missing)','(not\x20found)','✗\x20Not\x20logged\x20in','5605444IJuYLT','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','✗\x20Expired','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','green','9bKApTr','cookie','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','8062540ejKUfK','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','appcode','11yKoPtQ','✓\x20Valid\x20JSON','appCode','(not\x20set)','defaultApp','red','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','explicitAppName','\x20doctor','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','keys','unknown','852177cTFEVW','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','slice','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'];a88_0x54f0=function(){return _0xdabe38;};return a88_0x54f0();}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 a88_0x4b1e(_0x377ce7,_0x40329c){_0x377ce7=_0x377ce7-0x17e;const _0x54f0b1=a88_0x54f0();let _0x4b1e54=_0x54f0b1[_0x377ce7];return _0x4b1e54;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x437e7e){const _0x5da2f0=a88_0x4b1e,_0x525136=GIT_COMMIT!==_0x5da2f0(0x1a4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5da2f0(0x1a8)](0x0,0xa)+')':VERSION,_0x15b3f3=buildConfigFromFlags({}),_0x238b9b=getCookie();console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](CLI_BIN_NAME+_0x5da2f0(0x1a0))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)]('─'['repeat'](0x32))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x19e)+_0x525136),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a1)+process[_0x5da2f0(0x1b3)]),console[_0x5da2f0(0x1b8)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x5da2f0(0x1d6)]+'\x20'+process['arch']),console[_0x5da2f0(0x1b8)](),console['log'](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1a2))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1d4)['repeat'](0x1e)));const _0x31a9a0=getGlobalConfigPath(),_0x5aa9a9=getProjectConfigPath();console[_0x5da2f0(0x1b8)](_0x5da2f0(0x182)+(_0x31a9a0||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x188)))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x18c)+(_0x5aa9a9||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x188)))),console[_0x5da2f0(0x1b8)](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)]('\x20\x20Config\x20JSON')),console[_0x5da2f0(0x1b8)](a88_0x34be28['gray'](_0x5da2f0(0x1d4)[_0x5da2f0(0x1b7)](0x1e)));const _0x1508d3=(_0x2e4ca0,_0xc4b6e1)=>{const _0x57e346=_0x5da2f0;if(!_0xc4b6e1){console[_0x57e346(0x1b8)]('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28['gray'](_0x57e346(0x1c0)));return;}const _0x3e3212=inspectCliConfigJsonFile(_0xc4b6e1);if(_0x3e3212[_0x57e346(0x1d5)]==='ok')console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x191)](_0x57e346(0x199)));else{if(_0x3e3212[_0x57e346(0x1d5)]==='empty')console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x1cc)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x3e3212[_0x57e346(0x1d5)]===_0x57e346(0x1c6)?console['log']('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x1b0)](_0x57e346(0x187))):(console[_0x57e346(0x1b8)]('\x20\x20'+_0x2e4ca0[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x19d)](_0x57e346(0x1ae))),console['log']('\x20\x20'+''[_0x57e346(0x1bf)](0x11)+'\x20'+a88_0x34be28[_0x57e346(0x19d)](_0x3e3212[_0x57e346(0x1d2)])));}};_0x1508d3(_0x5da2f0(0x17f),_0x31a9a0),_0x1508d3(_0x5da2f0(0x184),_0x5aa9a9),console[_0x5da2f0(0x1b8)](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1b1))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)]('\x20\x20─'[_0x5da2f0(0x1b7)](0x1e))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1b2)+(_0x15b3f3[_0x5da2f0(0x19a)]||a88_0x34be28[_0x5da2f0(0x19d)](_0x5da2f0(0x19b)))),console['log'](_0x5da2f0(0x18f)+_0x15b3f3[_0x5da2f0(0x1af)]),console['log'](_0x5da2f0(0x1c9)+_0x15b3f3['locale']),console[_0x5da2f0(0x1b8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x15b3f3['apiDir']),console['log'](_0x5da2f0(0x1d1)+(_0x15b3f3[_0x5da2f0(0x19c)]||a88_0x34be28['gray']('(none)'))),console[_0x5da2f0(0x1b8)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x15b3f3[_0x5da2f0(0x17e)]||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa)))),console[_0x5da2f0(0x1b8)]('\x20\x20explicitAppName:\x20'+(_0x15b3f3[_0x5da2f0(0x19f)]||a88_0x34be28['gray'](_0x5da2f0(0x1aa)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x15b3f3['format']||a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1cf)+DEFAULT_CONFIG_VALUES[_0x5da2f0(0x186)]+')'))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a9)+(_0x15b3f3[_0x5da2f0(0x1be)]??a88_0x34be28[_0x5da2f0(0x1b0)]('(default)'))),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1c1)+_0x15b3f3['riskLevel']),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x181)+_0x15b3f3[_0x5da2f0(0x1bb)]),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1a6)+(_0x15b3f3[_0x5da2f0(0x193)]?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x15b3f3[_0x5da2f0(0x193)][_0x5da2f0(0x1cb)]+')'):_0x238b9b?a88_0x34be28[_0x5da2f0(0x191)]('(set\x20via\x20file,\x20length='+_0x238b9b[_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa))));const _0x3fcc9c=Object[_0x5da2f0(0x1a3)](_0x15b3f3[_0x5da2f0(0x1c2)]);if(_0x3fcc9c[_0x5da2f0(0x1cb)]>0x0){console[_0x5da2f0(0x1b8)](),console['log'](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x183))),console[_0x5da2f0(0x1b8)](a88_0x34be28['gray'](_0x5da2f0(0x1d4)[_0x5da2f0(0x1b7)](0x1e)));for(const _0x119f05 of _0x3fcc9c){const _0x29cf8d=_0x15b3f3[_0x5da2f0(0x1c2)][_0x119f05],_0x2fdbe7=_0x119f05===_0x15b3f3[_0x5da2f0(0x19c)],_0x249ef1=_0x119f05===_0x15b3f3[_0x5da2f0(0x17e)],_0x320975=_0x249ef1?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1c5)):'',_0x5c5928=_0x2fdbe7?_0x5da2f0(0x1cd):'';console[_0x5da2f0(0x1b8)]('\x20\x20'+_0x119f05+_0x5c5928+_0x320975),console['log'](_0x5da2f0(0x1bd)+_0x29cf8d[_0x5da2f0(0x197)]);const _0x219064=buildAppDoctorFields(_0x29cf8d,{'env':_0x15b3f3[_0x5da2f0(0x1af)],'apiDir':_0x15b3f3[_0x5da2f0(0x1ab)][_0x5da2f0(0x18d)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x15b3f3['cookie']||_0x238b9b||undefined,'accessKey':_0x15b3f3[_0x5da2f0(0x180)]});console[_0x5da2f0(0x1b8)](_0x5da2f0(0x194)+_0x219064[_0x5da2f0(0x1af)][_0x5da2f0(0x1a7)]+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x1af)][_0x5da2f0(0x1b5)]+')')),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1b6)+_0x219064['apiDir']['value']+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x18d)][_0x5da2f0(0x1b5)]+')'));const _0x3892b6=_0x219064[_0x5da2f0(0x193)]['value']?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x219064[_0x5da2f0(0x193)]['value'][_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)]('(none)');console['log'](_0x5da2f0(0x18b)+_0x3892b6+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x193)]['source']+')'));const _0x71af6=_0x219064[_0x5da2f0(0x180)][_0x5da2f0(0x1a7)]?a88_0x34be28[_0x5da2f0(0x191)](_0x5da2f0(0x1ce)+_0x219064['accessKey'][_0x5da2f0(0x1a7)][_0x5da2f0(0x1cb)]+')'):a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1aa));console['log'](_0x5da2f0(0x1c4)+_0x71af6+'\x20\x20'+a88_0x34be28[_0x5da2f0(0x1b0)]('('+_0x219064[_0x5da2f0(0x180)][_0x5da2f0(0x1b5)]+')'));}}console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1d0))),console['log'](a88_0x34be28[_0x5da2f0(0x1b0)]('\x20\x20─'[_0x5da2f0(0x1b7)](0x1e))),console['log']('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x196)+getUserDomain()),console[_0x5da2f0(0x1b8)](_0x5da2f0(0x190)+getRuntimeDomain()),console['log'](),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1ac)](_0x5da2f0(0x1c8))),console[_0x5da2f0(0x1b8)](a88_0x34be28[_0x5da2f0(0x1b0)](_0x5da2f0(0x1d4)['repeat'](0x1e)));if(_0x238b9b){const _0x2842d7=await getIsSessionValid();console['log'](_0x5da2f0(0x1ba)+(_0x2842d7?a88_0x34be28['green'](_0x5da2f0(0x1ca)):a88_0x34be28['red'](_0x5da2f0(0x18e))));}else console[_0x5da2f0(0x1b8)](_0x5da2f0(0x1ba)+a88_0x34be28['red'](_0x5da2f0(0x189)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a88_0x41e8d4(0x1d3),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a88_0x41e8d4(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a89_0x22a486=a89_0x4f97;(function(_0x501327,_0x5d70af){const _0x3af697=a89_0x4f97,_0x3812dc=_0x501327();while(!![]){try{const _0x172745=parseInt(_0x3af697(0x15c))/0x1+-parseInt(_0x3af697(0x17f))/0x2+parseInt(_0x3af697(0x158))/0x3*(-parseInt(_0x3af697(0x173))/0x4)+-parseInt(_0x3af697(0x166))/0x5+parseInt(_0x3af697(0x17b))/0x6+-parseInt(_0x3af697(0x171))/0x7+-parseInt(_0x3af697(0x16b))/0x8*(-parseInt(_0x3af697(0x16f))/0x9);if(_0x172745===_0x5d70af)break;else _0x3812dc['push'](_0x3812dc['shift']());}catch(_0xa05538){_0x3812dc['push'](_0x3812dc['shift']());}}}(a89_0x2ea9,0x95268));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a89_0x2ea9(){const _0x44c3e5=['write','valid','\x20\x20Config:\x20','16579032LqDqfS','App\x20code\x20to\x20initialize\x20with','flagMissing','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','9cgcAcj','global','1878961zppBRz','yes','28UNDpmE','appcode','\x20\x20Apps:\x20','run','production','appCode','boolean','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','3419472bfjFfE','\x0a✓\x20Successfully\x20initialized\x20','Usage:\x20','log','1015408jjjKJp','\x20config','nonInteractive','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','validation','custom','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','\x20\x20Env:\x20','211089NwMJsg','\x20\x20Default:\x20','cwd','env','240590gFYfnC','some','map','join','Auto-confirm\x20prompts','bool','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','toLocaleString','str','project','5016465kXIMNY','init'];a89_0x2ea9=function(){return _0x44c3e5;};return a89_0x2ea9();}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(_0x38354e){return{'appCode':_0x38354e,'appName':_0x38354e};}function a89_0x4f97(_0x3275cd,_0x379c07){_0x3275cd=_0x3275cd-0x157;const _0x2ea9b9=a89_0x2ea9();let _0x4f973e=_0x2ea9b9[_0x3275cd];return _0x4f973e;}function writeInitConfig(_0x182b7c,_0x4852ef,_0x521f99){const _0x3d996f=a89_0x4f97,_0x47ead1=resolveWriteConfigPath(_0x182b7c),_0x51aa87=buildCanonicalProjectConfig({},{'appCodes':_0x4852ef[_0x3d996f(0x15e)](_0x22c241=>_0x22c241[_0x3d996f(0x178)]),'env':_0x521f99,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3d996f(0x163)]()}});writeConfigFile(_0x47ead1,_0x51aa87);const _0x498812=_0x182b7c===_0x3d996f(0x170)?_0x3d996f(0x170):_0x3d996f(0x165);console[_0x3d996f(0x17e)](_0x3d996f(0x17c)+_0x498812+_0x3d996f(0x180)),console[_0x3d996f(0x17e)](_0x3d996f(0x175)+_0x4852ef[_0x3d996f(0x15e)](_0x4af32a=>_0x4af32a[_0x3d996f(0x178)])[_0x3d996f(0x15f)](',\x20')),console[_0x3d996f(0x17e)](_0x3d996f(0x159)+_0x51aa87['defaultApp']),console[_0x3d996f(0x17e)](_0x3d996f(0x157)+_0x51aa87[_0x3d996f(0x15b)]),console[_0x3d996f(0x17e)](_0x3d996f(0x16a)+_0x47ead1);}async function runSmartInit(_0x5d3fbf){const _0x12c62e=a89_0x4f97,_0x4293e5=process[_0x12c62e(0x15a)](),_0x4080e7=_0x5d3fbf['bool'](_0x12c62e(0x170))?_0x12c62e(0x170):_0x12c62e(0x165),_0x201e50=_0x5d3fbf[_0x12c62e(0x164)]('env')||_0x12c62e(0x177),_0x5f10c3=_0x5d3fbf['str'](_0x12c62e(0x174))||undefined,_0x4009a6=_0x5d3fbf[_0x12c62e(0x161)]('project');if(_0x4009a6){const {initConfig:_0x1d3453}=await import('../../commands/project/init.js');return _0x1d3453({'appcode':_0x5f10c3,'env':_0x201e50,'autoYes':_0x5d3fbf[_0x12c62e(0x161)]('yes')});}if(_0x4080e7===_0x12c62e(0x165)){const _0x4c2e87=existsSync(resolve(_0x4293e5,NEW_CONFIG_NAME)),_0x4f8c02=LEGACY_CONFIG_NAMES[_0x12c62e(0x15d)](_0x49fc07=>existsSync(resolve(_0x4293e5,_0x49fc07)));if(_0x4f8c02&&!_0x4c2e87)return console[_0x12c62e(0x17e)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x5d3fbf[_0x12c62e(0x181)],{'yes':_0x5d3fbf[_0x12c62e(0x161)]('yes')});if(_0x4c2e87)throw CliErrors[_0x12c62e(0x183)](_0x12c62e(0x182),'Use\x20`'+CLI_BIN_NAME+_0x12c62e(0x162));}if(_0x5f10c3){const _0x4bbcee=validateAppcode(_0x5f10c3);if(!_0x4bbcee[_0x12c62e(0x169)])throw CliErrors[_0x12c62e(0x183)](_0x4bbcee['message']);writeInitConfig(_0x4080e7,[syntheticApp(_0x5f10c3)],_0x201e50);return;}if(_0x5d3fbf[_0x12c62e(0x181)])throw CliErrors[_0x12c62e(0x16d)]('appcode',_0x12c62e(0x17d)+CLI_BIN_NAME+_0x12c62e(0x17a));const _0x152d7d=getCookie(),_0x23b682=await selectMultipleApps(_0x152d7d),_0x17fb6c=_0x23b682===_0x12c62e(0x184)?[syntheticApp(await promptCustomAppcode())]:_0x23b682;writeInitConfig(_0x4080e7,_0x17fb6c,_0x201e50);}const initFlags=[{'name':a89_0x22a486(0x170),'type':a89_0x22a486(0x179),'description':a89_0x22a486(0x185),'default':![]},{'name':a89_0x22a486(0x15b),'type':'string','description':'Target\x20environment','default':a89_0x22a486(0x177),'enum':[...RABETBASE_ENV_VALUES]},{'name':a89_0x22a486(0x174),'type':a89_0x22a486(0x186),'description':a89_0x22a486(0x16c)},{'name':a89_0x22a486(0x165),'type':a89_0x22a486(0x179),'description':a89_0x22a486(0x16e),'default':![]},{'name':a89_0x22a486(0x172),'type':'boolean','description':a89_0x22a486(0x160),'default':![]}];export const initDefinitions=[{'service':a89_0x22a486(0x167),'command':a89_0x22a486(0x176),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a89_0x22a486(0x168),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x170b83){return await runSmartInit(_0x170b83),{'ok':!![]};}}];
1
+ const a89_0x19e7db=a89_0x4dbd;(function(_0xf53752,_0x2b7460){const _0x32006a=a89_0x4dbd,_0x35b08d=_0xf53752();while(!![]){try{const _0x29bba8=parseInt(_0x32006a(0x104))/0x1+parseInt(_0x32006a(0x128))/0x2*(parseInt(_0x32006a(0x125))/0x3)+-parseInt(_0x32006a(0x126))/0x4*(parseInt(_0x32006a(0x11f))/0x5)+-parseInt(_0x32006a(0x112))/0x6*(parseInt(_0x32006a(0x12e))/0x7)+-parseInt(_0x32006a(0x111))/0x8+-parseInt(_0x32006a(0x110))/0x9*(parseInt(_0x32006a(0x113))/0xa)+parseInt(_0x32006a(0x12d))/0xb;if(_0x29bba8===_0x2b7460)break;else _0x35b08d['push'](_0x35b08d['shift']());}catch(_0x48e676){_0x35b08d['push'](_0x35b08d['shift']());}}}(a89_0x5a94,0xa4841));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';function a89_0x5a94(){const _0x2d92ee=['str','env','flagMissing','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','log','484911zzVtIg','Auto-confirm\x20prompts','write','\x20\x20Config:\x20','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appcode','init','string','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20config','join','validation','18kWOkJv','236296RJcSbs','216SwOVIB','2158630zIFwtx','../../commands/project/init.js','global','valid','message','project','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','Target\x20environment','toLocaleString','boolean','Usage:\x20','nonInteractive','2020KFCMEg','bool','appCode','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Write\x20to\x20global\x20config\x20instead\x20of\x20project','9IwjTME','10264FqbfTx','\x20\x20Default:\x20','456514dzGKTk','map','run','yes','cwd','18583158WSHcrw','133637OOrKKn'];a89_0x5a94=function(){return _0x2d92ee;};return a89_0x5a94();}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(_0x2fafab){return{'appCode':_0x2fafab,'appName':_0x2fafab};}function a89_0x4dbd(_0x17c3ff,_0x31b1f4){_0x17c3ff=_0x17c3ff-0x100;const _0x5a94de=a89_0x5a94();let _0x4dbde3=_0x5a94de[_0x17c3ff];return _0x4dbde3;}function writeInitConfig(_0x205363,_0x576c99,_0x453cd6){const _0x2baabd=a89_0x4dbd,_0x106218=resolveWriteConfigPath(_0x205363),_0x2f9162=buildCanonicalProjectConfig({},{'appCodes':_0x576c99[_0x2baabd(0x129)](_0x6ef12f=>_0x6ef12f[_0x2baabd(0x121)]),'env':_0x453cd6,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x2baabd(0x11b)]()}});writeConfigFile(_0x106218,_0x2f9162);const _0xada78e=_0x205363===_0x2baabd(0x115)?_0x2baabd(0x115):_0x2baabd(0x118);console[_0x2baabd(0x103)](_0x2baabd(0x122)+_0xada78e+_0x2baabd(0x10d)),console[_0x2baabd(0x103)]('\x20\x20Apps:\x20'+_0x576c99[_0x2baabd(0x129)](_0x1093d3=>_0x1093d3['appCode'])[_0x2baabd(0x10e)](',\x20')),console[_0x2baabd(0x103)](_0x2baabd(0x127)+_0x2f9162['defaultApp']),console[_0x2baabd(0x103)]('\x20\x20Env:\x20'+_0x2f9162[_0x2baabd(0x100)]),console[_0x2baabd(0x103)](_0x2baabd(0x107)+_0x106218);}async function runSmartInit(_0x4d05af){const _0x309804=a89_0x4dbd,_0x12bb1d=process[_0x309804(0x12c)](),_0x2d751e=_0x4d05af[_0x309804(0x120)](_0x309804(0x115))?'global':'project',_0x100bdc=_0x4d05af[_0x309804(0x12f)](_0x309804(0x100))||'production',_0x142c31=_0x4d05af[_0x309804(0x12f)](_0x309804(0x109))||undefined,_0x3e7613=_0x4d05af[_0x309804(0x120)]('project');if(_0x3e7613){const {initConfig:_0x6720e4}=await import(_0x309804(0x114));return _0x6720e4({'appcode':_0x142c31,'env':_0x100bdc,'autoYes':_0x4d05af[_0x309804(0x120)](_0x309804(0x12b))});}if(_0x2d751e===_0x309804(0x118)){const _0x1999c6=existsSync(resolve(_0x12bb1d,NEW_CONFIG_NAME)),_0x549748=LEGACY_CONFIG_NAMES['some'](_0x5b9d0e=>existsSync(resolve(_0x12bb1d,_0x5b9d0e)));if(_0x549748&&!_0x1999c6)return console[_0x309804(0x103)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x4d05af['nonInteractive'],{'yes':_0x4d05af[_0x309804(0x120)]('yes')});if(_0x1999c6)throw CliErrors[_0x309804(0x10f)](_0x309804(0x108),'Use\x20`'+CLI_BIN_NAME+_0x309804(0x123));}if(_0x142c31){const _0x1fe2a0=validateAppcode(_0x142c31);if(!_0x1fe2a0[_0x309804(0x116)])throw CliErrors[_0x309804(0x10f)](_0x1fe2a0[_0x309804(0x117)]);writeInitConfig(_0x2d751e,[syntheticApp(_0x142c31)],_0x100bdc);return;}if(_0x4d05af[_0x309804(0x11e)])throw CliErrors[_0x309804(0x101)]('appcode',_0x309804(0x11d)+CLI_BIN_NAME+_0x309804(0x102));const _0x18f766=getCookie(),_0x213ae8=await selectMultipleApps(_0x18f766),_0x3269dc=_0x213ae8==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x213ae8;writeInitConfig(_0x2d751e,_0x3269dc,_0x100bdc);}const initFlags=[{'name':a89_0x19e7db(0x115),'type':a89_0x19e7db(0x11c),'description':a89_0x19e7db(0x124),'default':![]},{'name':a89_0x19e7db(0x100),'type':'string','description':a89_0x19e7db(0x11a),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a89_0x19e7db(0x109),'type':a89_0x19e7db(0x10b),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a89_0x19e7db(0x118),'type':a89_0x19e7db(0x11c),'description':a89_0x19e7db(0x119),'default':![]},{'name':a89_0x19e7db(0x12b),'type':'boolean','description':a89_0x19e7db(0x105),'default':![]}];export const initDefinitions=[{'service':a89_0x19e7db(0x10a),'command':a89_0x19e7db(0x12a),'description':a89_0x19e7db(0x10c),'risk':a89_0x19e7db(0x106),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x14031b){return await runSmartInit(_0x14031b),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a90_0x4567(_0x4e04ae,_0x3612cc){_0x4e04ae=_0x4e04ae-0x85;const _0x2e76a3=a90_0x2e76();let _0x45675a=_0x2e76a3[_0x4e04ae];return _0x45675a;}(function(_0x279537,_0x1c74ea){const _0x22a531=a90_0x4567,_0x590529=_0x279537();while(!![]){try{const _0x42e41d=parseInt(_0x22a531(0x8a))/0x1*(parseInt(_0x22a531(0x8d))/0x2)+parseInt(_0x22a531(0x8e))/0x3+parseInt(_0x22a531(0x85))/0x4*(parseInt(_0x22a531(0x8c))/0x5)+parseInt(_0x22a531(0x88))/0x6+-parseInt(_0x22a531(0x86))/0x7+-parseInt(_0x22a531(0x89))/0x8*(parseInt(_0x22a531(0x8b))/0x9)+parseInt(_0x22a531(0x87))/0xa;if(_0x42e41d===_0x1c74ea)break;else _0x590529['push'](_0x590529['shift']());}catch(_0xf3fae7){_0x590529['push'](_0x590529['shift']());}}}(a90_0x2e76,0xb705c));import{issueReport}from'../../commands/issue/report.js';function a90_0x2e76(){const _0x24c515=['2536812KdmIRM','4978232FzwTbX','142mnTNup','9aOVAPL','2995VrTmgP','8216hbHqDJ','2703012LxJlMf','852xPwXJw','8919323dBKfxS','6113990wGBKBQ'];a90_0x2e76=function(){return _0x24c515;};return a90_0x2e76();}export const issueDefinitions=[issueReport];
1
+ function a90_0x3ef0(){const _0x46c6e8=['3341994oruOHe','1140gaxDmc','704UaSVaE','8OrBVnP','2340423GHqWaj','257044IIViSl','351684TvFzQP','165KWYKPB','795590jLLAvS','7IpAniS','2493396msbaZD'];a90_0x3ef0=function(){return _0x46c6e8;};return a90_0x3ef0();}(function(_0x59b5a8,_0x3c64bb){const _0x36a402=a90_0x1e12,_0x46406d=_0x59b5a8();while(!![]){try{const _0x26db7c=-parseInt(_0x36a402(0x126))/0x1+parseInt(_0x36a402(0x12b))/0x2+parseInt(_0x36a402(0x121))/0x3+parseInt(_0x36a402(0x123))/0x4*(parseInt(_0x36a402(0x122))/0x5)+parseInt(_0x36a402(0x127))/0x6*(-parseInt(_0x36a402(0x12a))/0x7)+-parseInt(_0x36a402(0x124))/0x8*(parseInt(_0x36a402(0x125))/0x9)+-parseInt(_0x36a402(0x129))/0xa*(parseInt(_0x36a402(0x128))/0xb);if(_0x26db7c===_0x3c64bb)break;else _0x46406d['push'](_0x46406d['shift']());}catch(_0x20a5cf){_0x46406d['push'](_0x46406d['shift']());}}}(a90_0x3ef0,0x9a3b6));function a90_0x1e12(_0x50abf4,_0x3ef1f8){_0x50abf4=_0x50abf4-0x121;const _0x3ef011=a90_0x3ef0();let _0x1e12a7=_0x3ef011[_0x50abf4];return _0x1e12a7;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- const a91_0x33814a=a91_0x5f43;(function(_0x19e2ab,_0x27f18b){const _0x52b837=a91_0x5f43,_0x2819e6=_0x19e2ab();while(!![]){try{const _0x3bcae6=parseInt(_0x52b837(0x1cc))/0x1*(-parseInt(_0x52b837(0x1d2))/0x2)+-parseInt(_0x52b837(0x1b5))/0x3*(-parseInt(_0x52b837(0x1d1))/0x4)+parseInt(_0x52b837(0x1b8))/0x5*(-parseInt(_0x52b837(0x1c4))/0x6)+parseInt(_0x52b837(0x1bc))/0x7+parseInt(_0x52b837(0x1bd))/0x8+-parseInt(_0x52b837(0x1ba))/0x9+-parseInt(_0x52b837(0x1b3))/0xa*(parseInt(_0x52b837(0x1b4))/0xb);if(_0x3bcae6===_0x27f18b)break;else _0x2819e6['push'](_0x2819e6['shift']());}catch(_0x3ea69e){_0x2819e6['push'](_0x2819e6['shift']());}}}(a91_0x64e3,0xf3793));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0x33814a(0x1b6);const NUDGE_SUPPRESSED_CODES=new Set([a91_0x33814a(0x1c7),a91_0x33814a(0x1be),a91_0x33814a(0x1c0),'not_in_project','unknown_command',a91_0x33814a(0x1bf),a91_0x33814a(0x1cd),'network_error']),defaultWriter=_0x5b1259=>{const _0x4fbf37=a91_0x33814a;process[_0x4fbf37(0x1ca)]['write'](_0x5b1259);};export function shouldNudgeForError(_0x13a788,_0x486e39){const _0xa490e9=a91_0x33814a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x486e39[_0xa490e9(0x1c8)]==='issue'&&_0x486e39[_0xa490e9(0x1cf)]===_0xa490e9(0x1c9))return![];if(_0x13a788 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0xa490e9(0x1c1)](_0x13a788['code']);return!![];}export function printIssueReportNudgeForError(_0x49d26c,_0x2b5d66,_0x29d290=defaultWriter){if(!shouldNudgeForError(_0x49d26c,_0x2b5d66))return;const _0x265ce6=buildSuggestedTitle(_0x49d26c,_0x2b5d66);_0x29d290(formatNudge(_0x265ce6));}function buildSuggestedTitle(_0x363642,_0x29ae0c){const _0x2f0f6d=a91_0x33814a,_0x5e2086=_0x363642 instanceof Error?_0x363642[_0x2f0f6d(0x1b7)]:String(_0x363642),_0x163720=_0x5e2086[_0x2f0f6d(0x1bb)](/[\r\n]+/g,'\x20')[_0x2f0f6d(0x1bb)](/\s+/g,'\x20')[_0x2f0f6d(0x1c3)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x121561=CLI_BIN_NAME+'\x20'+_0x29ae0c[_0x2f0f6d(0x1c8)]+'\x20'+_0x29ae0c[_0x2f0f6d(0x1cf)];return _0x163720[_0x2f0f6d(0x1b9)]>0x0?_0x121561+':\x20'+_0x163720:_0x121561;}function formatNudge(_0x465935){const _0x147795=a91_0x33814a;return['',_0x147795(0x1cb)+CLI_BIN_NAME+_0x147795(0x1ce),'\x20\x20'+CLI_BIN_NAME+_0x147795(0x1d0),_0x147795(0x1c5)+_0x465935+'\x22\x20\x5c',_0x147795(0x1c6),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x147795(0x1c2)]('\x0a');}function a91_0x5f43(_0x32cb49,_0x114233){_0x32cb49=_0x32cb49-0x1b3;const _0x64e3cf=a91_0x64e3();let _0x5f4390=_0x64e3cf[_0x32cb49];return _0x5f4390;}function a91_0x64e3(){const _0x4fa8e8=['\x20bug?\x20Help\x20us\x20fix\x20it:','command','\x20issue\x20report\x20\x5c','4zYFLxS','4930BliyPn','102670DBkvAQ','275neZohB','4308393ciyvvf','RABETBASE_DISABLE_ISSUE_NUDGE','message','1830510FOeIJk','length','1786896XYdWEK','replace','5788629pEBkxv','11746800ormuXd','auth_required','flag_missing','config_missing','has','join','trim','6Ghnurg','\x20\x20\x20\x20--title\x20\x22','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','cancelled','service','report','stderr','Hit\x20a\x20','776iqXMgc','validation_error'];a91_0x64e3=function(){return _0x4fa8e8;};return a91_0x64e3();}
1
+ function a91_0x489a(_0x2bcd09,_0x519a87){_0x2bcd09=_0x2bcd09-0x160;const _0xa4f0b2=a91_0xa4f0();let _0x489a7d=_0xa4f0b2[_0x2bcd09];return _0x489a7d;}const a91_0x232be8=a91_0x489a;(function(_0x4750d9,_0x158244){const _0x41019a=a91_0x489a,_0x54d5fe=_0x4750d9();while(!![]){try{const _0x56e6d7=-parseInt(_0x41019a(0x180))/0x1*(-parseInt(_0x41019a(0x173))/0x2)+-parseInt(_0x41019a(0x163))/0x3+parseInt(_0x41019a(0x17e))/0x4+-parseInt(_0x41019a(0x165))/0x5*(-parseInt(_0x41019a(0x171))/0x6)+-parseInt(_0x41019a(0x17d))/0x7*(parseInt(_0x41019a(0x16f))/0x8)+parseInt(_0x41019a(0x17f))/0x9+-parseInt(_0x41019a(0x16e))/0xa;if(_0x56e6d7===_0x158244)break;else _0x54d5fe['push'](_0x54d5fe['shift']());}catch(_0x557dc2){_0x54d5fe['push'](_0x54d5fe['shift']());}}}(a91_0xa4f0,0xe4d93));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0x232be8(0x179);const NUDGE_SUPPRESSED_CODES=new Set([a91_0x232be8(0x161),a91_0x232be8(0x162),a91_0x232be8(0x17c),a91_0x232be8(0x166),a91_0x232be8(0x183),a91_0x232be8(0x170),a91_0x232be8(0x172),a91_0x232be8(0x167)]),defaultWriter=_0x4e087a=>{const _0x13d402=a91_0x232be8;process['stderr'][_0x13d402(0x181)](_0x4e087a);};export function shouldNudgeForError(_0x2a8b86,_0x5daa05){const _0x3100c4=a91_0x232be8;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x5daa05['service']===_0x3100c4(0x16a)&&_0x5daa05[_0x3100c4(0x168)]===_0x3100c4(0x178))return![];if(_0x2a8b86 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x3100c4(0x164)](_0x2a8b86['code']);return!![];}export function printIssueReportNudgeForError(_0x127de2,_0x3eb62a,_0x395a2d=defaultWriter){if(!shouldNudgeForError(_0x127de2,_0x3eb62a))return;const _0x5b5b36=buildSuggestedTitle(_0x127de2,_0x3eb62a);_0x395a2d(formatNudge(_0x5b5b36));}function buildSuggestedTitle(_0x5d1ee8,_0x40b1d6){const _0x52aa2e=a91_0x232be8,_0x3b6757=_0x5d1ee8 instanceof Error?_0x5d1ee8['message']:String(_0x5d1ee8),_0x376948=_0x3b6757['replace'](/[\r\n]+/g,'\x20')[_0x52aa2e(0x17b)](/\s+/g,'\x20')[_0x52aa2e(0x17a)]()[_0x52aa2e(0x177)](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x1c9d02=CLI_BIN_NAME+'\x20'+_0x40b1d6[_0x52aa2e(0x16d)]+'\x20'+_0x40b1d6['command'];return _0x376948[_0x52aa2e(0x160)]>0x0?_0x1c9d02+':\x20'+_0x376948:_0x1c9d02;}function formatNudge(_0x5a7c0f){const _0x364870=a91_0x232be8;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x364870(0x169),'\x20\x20'+CLI_BIN_NAME+_0x364870(0x182),_0x364870(0x174)+_0x5a7c0f+_0x364870(0x176),'\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x364870(0x16c),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x364870(0x175),''][_0x364870(0x16b)]('\x0a');}function a91_0xa4f0(){const _0x53ac08=['flag_missing','5898KTSXyW','validation_error','40ztjmfk','\x20\x20\x20\x20--title\x20\x22','=1\x20to\x20silence\x20this\x20hint.','\x22\x20\x5c','slice','report','RABETBASE_DISABLE_ISSUE_NUDGE','trim','replace','config_missing','3060638KWbPvh','2328588XnVsFP','1225971dxidma','66213yuTIBb','write','\x20issue\x20report\x20\x5c','unknown_command','length','cancelled','auth_required','1340478JzXfdx','has','2205pjONOq','not_in_project','network_error','command','\x20bug?\x20Help\x20us\x20fix\x20it:','issue','join','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','service','2174720pusTyA','16vLuVdU'];a91_0xa4f0=function(){return _0x53ac08;};return a91_0xa4f0();}
@@ -1 +1 @@
1
- const a92_0x3e6a1d=a92_0x3370;(function(_0x40476b,_0x16c880){const _0x4d0e11=a92_0x3370,_0x5f33d1=_0x40476b();while(!![]){try{const _0x3c2d54=-parseInt(_0x4d0e11(0x1e6))/0x1+-parseInt(_0x4d0e11(0x1ff))/0x2*(-parseInt(_0x4d0e11(0x1d8))/0x3)+parseInt(_0x4d0e11(0x1fe))/0x4+-parseInt(_0x4d0e11(0x1f7))/0x5*(parseInt(_0x4d0e11(0x1f4))/0x6)+-parseInt(_0x4d0e11(0x20d))/0x7*(parseInt(_0x4d0e11(0x211))/0x8)+-parseInt(_0x4d0e11(0x20f))/0x9*(-parseInt(_0x4d0e11(0x1e8))/0xa)+-parseInt(_0x4d0e11(0x1ec))/0xb*(-parseInt(_0x4d0e11(0x1f6))/0xc);if(_0x3c2d54===_0x16c880)break;else _0x5f33d1['push'](_0x5f33d1['shift']());}catch(_0x4fef54){_0x5f33d1['push'](_0x5f33d1['shift']());}}}(a92_0x5414,0x8ecee));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a92_0x3e6a1d(0x202);function a92_0x3370(_0x2aa56e,_0x39b904){_0x2aa56e=_0x2aa56e-0x1d5;const _0x54145d=a92_0x5414();let _0x33703b=_0x54145d[_0x2aa56e];return _0x33703b;}export const issueReport={'service':a92_0x3e6a1d(0x1e9),'command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a92_0x3e6a1d(0x203),'flags':[{'name':a92_0x3e6a1d(0x1ef),'type':'string','required':!![],'description':a92_0x3e6a1d(0x20b)},{'name':a92_0x3e6a1d(0x205),'type':a92_0x3e6a1d(0x204),'description':a92_0x3e6a1d(0x20c)},{'name':DESCRIPTION_FILE_FLAG,'type':a92_0x3e6a1d(0x204),'description':a92_0x3e6a1d(0x1e0)}],async 'validate'(_0x48883b){const _0x3440a3=a92_0x3e6a1d,_0x426160=_0x48883b[_0x3440a3(0x206)](_0x3440a3(0x1ef))[_0x3440a3(0x210)](),_0xa42b02=_0x48883b[_0x3440a3(0x206)]('description')[_0x3440a3(0x210)](),_0x397c11=_0x48883b[_0x3440a3(0x206)](DESCRIPTION_FILE_FLAG)[_0x3440a3(0x210)]();if(!_0x426160)throw CliErrors['flagMissing'](_0x3440a3(0x1ef),_0x3440a3(0x1f0));const _0x5cfe82=_0xa42b02[_0x3440a3(0x1eb)]>0x0,_0x2ba76d=_0x397c11[_0x3440a3(0x1eb)]>0x0;if(_0x5cfe82===_0x2ba76d)throw CliErrors[_0x3440a3(0x1dd)]('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(_0x2ba76d){const _0xcae303=resolve(process[_0x3440a3(0x1fd)](),_0x397c11);if(!existsSync(_0xcae303))throw CliErrors[_0x3440a3(0x1dd)](_0x3440a3(0x1ed)+_0xcae303);}},async 'dryRun'(_0x5dc407){const _0x501052=a92_0x3e6a1d,_0x3543dd=await prepareIssueReport(_0x5dc407);return{'method':_0x501052(0x200),'url':_0x501052(0x20e)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3543dd['title'],'issue.description':_0x3543dd['description'],'issue.description_original_bytes':_0x3543dd['sanitize']['originalBytes'],'issue.description_truncated':_0x3543dd['sanitize'][_0x501052(0x1e5)],'issue.description_redactions':_0x3543dd[_0x501052(0x1df)][_0x501052(0x1dc)],'issue.description_redaction_kinds':_0x3543dd[_0x501052(0x1df)][_0x501052(0x1e4)]['join'](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x501052(0x1d7)+_0x3543dd['descriptionSource'],_0x3543dd[_0x501052(0x20a)]?_0x501052(0x201)+_0x3543dd[_0x501052(0x20a)]:null,_0x3543dd[_0x501052(0x1df)]['truncated']?_0x501052(0x1f9)+_0x3543dd[_0x501052(0x1df)][_0x501052(0x1d5)]+_0x501052(0x1e2):null,_0x3543dd[_0x501052(0x1df)][_0x501052(0x1dc)]>0x0?_0x501052(0x1f3)+_0x3543dd[_0x501052(0x1df)][_0x501052(0x1dc)]+'\x20('+_0x3543dd[_0x501052(0x1df)]['redactionKinds']['join'](',\x20')+')':null][_0x501052(0x1da)](Boolean)[_0x501052(0x1fa)]('\x0a')};},async 'execute'(_0x40c674){const _0x7ca46b=a92_0x3e6a1d,_0x2eb418=await prepareIssueReport(_0x40c674);try{await sendPlatformIssueCollectLog({'title':_0x2eb418[_0x7ca46b(0x1ef)],'description':_0x2eb418['description'],'sanitize':{'originalBytes':_0x2eb418['sanitize']['originalBytes'],'truncated':_0x2eb418[_0x7ca46b(0x1df)][_0x7ca46b(0x1e5)],'redactionCount':_0x2eb418[_0x7ca46b(0x1df)][_0x7ca46b(0x1dc)],'redactionKinds':_0x2eb418[_0x7ca46b(0x1df)][_0x7ca46b(0x1e4)]}});}catch(_0x733052){throw CliErrors['apiError'](_0x7ca46b(0x1fc)+(_0x733052 instanceof Error?_0x733052[_0x7ca46b(0x1f1)]:String(_0x733052)),_0x7ca46b(0x1d6));}return{'ok':!![],'message':buildResultMessage(_0x2eb418['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x7ca46b(0x209),_0x7ca46b(0x1fb),'issue.description_original_bytes',_0x7ca46b(0x208),_0x7ca46b(0x1ea),_0x7ca46b(0x1de)],'issue':{'title':_0x2eb418[_0x7ca46b(0x1ef)],'descriptionLength':_0x2eb418[_0x7ca46b(0x205)][_0x7ca46b(0x1eb)],'descriptionSource':_0x2eb418[_0x7ca46b(0x1f8)],..._0x2eb418[_0x7ca46b(0x20a)]?{'descriptionFile':_0x2eb418[_0x7ca46b(0x20a)]}:{},'sanitize':{'originalBytes':_0x2eb418[_0x7ca46b(0x1df)][_0x7ca46b(0x1d5)],'truncated':_0x2eb418[_0x7ca46b(0x1df)]['truncated'],'redactions':_0x2eb418[_0x7ca46b(0x1df)][_0x7ca46b(0x1dc)],'redactionKinds':_0x2eb418[_0x7ca46b(0x1df)]['redactionKinds']}}}};}};function a92_0x5414(){const _0x183214=['description','str','redacted\x20','issue.description_truncated','issue.title','descriptionFilePath','One-line\x20issue\x20summary','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','12145hmoyNg','otel://','54nkvFVa','trim','3736ShEdjR','originalBytes','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','descriptionSource:\x20','3QriyKq','utf8','filter','file','redactionCount','validation','issue.description_redaction_kinds','sanitize','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','push','\x20bytes','truncated\x20from\x20','redactionKinds','truncated','484207JteHPV','\x20secret(s):\x20','1191570tPJOFb','issue','issue.description_redactions','length','253451fuZjGK','File\x20not\x20found:\x20','Issue\x20description\x20file\x20is\x20empty:\x20','title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','message','inline','redactions:\x20','2976gdfmoe','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','12aEUSsu','35SMTELa','descriptionSource','truncated:\x20original\x20','join','issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','cwd','1712784jbLhbv','1433374sXErkQ','POST','descriptionFile:\x20','description-file','compress','string'];a92_0x5414=function(){return _0x183214;};return a92_0x5414();}function buildResultMessage(_0x3d6a95){const _0x1c3bba=a92_0x3e6a1d,_0xe514eb=[];return _0x3d6a95[_0x1c3bba(0x1e5)]&&_0xe514eb[_0x1c3bba(0x1e1)](_0x1c3bba(0x1e3)+_0x3d6a95['originalBytes']+_0x1c3bba(0x1e2)),_0x3d6a95[_0x1c3bba(0x1dc)]>0x0&&_0xe514eb['push'](_0x1c3bba(0x207)+_0x3d6a95['redactionCount']+_0x1c3bba(0x1e7)+_0x3d6a95[_0x1c3bba(0x1e4)][_0x1c3bba(0x1fa)](',\x20')),_0xe514eb[_0x1c3bba(0x1eb)]===0x0?'Platform\x20issue\x20reported':'Platform\x20issue\x20reported\x20('+_0xe514eb[_0x1c3bba(0x1fa)](';\x20')+')';}async function prepareIssueReport(_0x4e6a7a){const _0x583227=a92_0x3e6a1d,_0x494c4f=_0x4e6a7a[_0x583227(0x206)](_0x583227(0x1ef))[_0x583227(0x210)](),_0x314ccb=_0x4e6a7a[_0x583227(0x206)](_0x583227(0x205)),_0x229324=_0x4e6a7a['str'](DESCRIPTION_FILE_FLAG)[_0x583227(0x210)]();if(!_0x229324){const _0x1066e6=_0x314ccb;if(!_0x1066e6[_0x583227(0x210)]())throw CliErrors[_0x583227(0x1dd)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x583227(0x1f5));const _0xaa32ac=sanitizeIssueDescription(_0x1066e6);return{'title':_0x494c4f,'description':_0xaa32ac[_0x583227(0x205)],'descriptionSource':_0x583227(0x1f2),'sanitize':_0xaa32ac};}const _0x5e0fd5=resolve(process['cwd'](),_0x229324),_0x51679d=await readFile(_0x5e0fd5,_0x583227(0x1d9));if(!_0x51679d[_0x583227(0x210)]())throw CliErrors[_0x583227(0x1dd)](_0x583227(0x1ee)+_0x5e0fd5,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x43ef3a=sanitizeIssueDescription(_0x51679d);return{'title':_0x494c4f,'description':_0x43ef3a[_0x583227(0x205)],'descriptionSource':_0x583227(0x1db),'descriptionFilePath':_0x5e0fd5,'sanitize':_0x43ef3a};}
1
+ const a92_0x5160da=a92_0x43e1;(function(_0x206215,_0x45f099){const _0x367905=a92_0x43e1,_0x5617f3=_0x206215();while(!![]){try{const _0x2ab703=parseInt(_0x367905(0x14d))/0x1*(-parseInt(_0x367905(0x15c))/0x2)+parseInt(_0x367905(0x15d))/0x3*(parseInt(_0x367905(0x151))/0x4)+-parseInt(_0x367905(0x16b))/0x5+-parseInt(_0x367905(0x177))/0x6+-parseInt(_0x367905(0x14e))/0x7*(-parseInt(_0x367905(0x168))/0x8)+parseInt(_0x367905(0x176))/0x9*(parseInt(_0x367905(0x164))/0xa)+parseInt(_0x367905(0x16c))/0xb;if(_0x2ab703===_0x45f099)break;else _0x5617f3['push'](_0x5617f3['shift']());}catch(_0x5a1453){_0x5617f3['push'](_0x5617f3['shift']());}}}(a92_0x54e2,0x58874));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a92_0x5160da(0x150);export const issueReport={'service':'issue','command':a92_0x5160da(0x17d),'description':a92_0x5160da(0x153),'risk':a92_0x5160da(0x154),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a92_0x5160da(0x169),'flags':[{'name':a92_0x5160da(0x173),'type':'string','required':!![],'description':a92_0x5160da(0x180)},{'name':a92_0x5160da(0x17e),'type':'string','description':a92_0x5160da(0x163)},{'name':DESCRIPTION_FILE_FLAG,'type':a92_0x5160da(0x178),'description':a92_0x5160da(0x157)}],async 'validate'(_0xe01858){const _0x45a7ee=a92_0x5160da,_0x1b85cc=_0xe01858[_0x45a7ee(0x166)](_0x45a7ee(0x173))[_0x45a7ee(0x152)](),_0x497321=_0xe01858[_0x45a7ee(0x166)](_0x45a7ee(0x17e))[_0x45a7ee(0x152)](),_0x388ea2=_0xe01858['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1b85cc)throw CliErrors['flagMissing'](_0x45a7ee(0x173),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x5820a1=_0x497321[_0x45a7ee(0x15e)]>0x0,_0xb3f4c5=_0x388ea2['length']>0x0;if(_0x5820a1===_0xb3f4c5)throw CliErrors[_0x45a7ee(0x16a)](_0x45a7ee(0x15a),_0x45a7ee(0x16f));if(_0xb3f4c5){const _0x252aca=resolve(process[_0x45a7ee(0x181)](),_0x388ea2);if(!existsSync(_0x252aca))throw CliErrors['validation'](_0x45a7ee(0x155)+_0x252aca);}},async 'dryRun'(_0x5ec9af){const _0x36ba7a=a92_0x5160da,_0x3f12c8=await prepareIssueReport(_0x5ec9af);return{'method':_0x36ba7a(0x167),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3f12c8[_0x36ba7a(0x173)],'issue.description':_0x3f12c8[_0x36ba7a(0x17e)],'issue.description_original_bytes':_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x17c)],'issue.description_truncated':_0x3f12c8[_0x36ba7a(0x158)]['truncated'],'issue.description_redactions':_0x3f12c8['sanitize'][_0x36ba7a(0x182)],'issue.description_redaction_kinds':_0x3f12c8['sanitize'][_0x36ba7a(0x14c)][_0x36ba7a(0x174)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x36ba7a(0x162)+_0x3f12c8[_0x36ba7a(0x15b)],_0x3f12c8['descriptionFilePath']?'descriptionFile:\x20'+_0x3f12c8[_0x36ba7a(0x14f)]:null,_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x159)]?_0x36ba7a(0x16d)+_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x17c)]+_0x36ba7a(0x16e):null,_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x182)]>0x0?_0x36ba7a(0x17a)+_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x182)]+'\x20('+_0x3f12c8[_0x36ba7a(0x158)][_0x36ba7a(0x14c)][_0x36ba7a(0x174)](',\x20')+')':null]['filter'](Boolean)[_0x36ba7a(0x174)]('\x0a')};},async 'execute'(_0x54e1d4){const _0x142b2c=a92_0x5160da,_0x25b522=await prepareIssueReport(_0x54e1d4);try{await sendPlatformIssueCollectLog({'title':_0x25b522['title'],'description':_0x25b522[_0x142b2c(0x17e)],'sanitize':{'originalBytes':_0x25b522[_0x142b2c(0x158)][_0x142b2c(0x17c)],'truncated':_0x25b522[_0x142b2c(0x158)][_0x142b2c(0x159)],'redactionCount':_0x25b522['sanitize'][_0x142b2c(0x182)],'redactionKinds':_0x25b522['sanitize'][_0x142b2c(0x14c)]}});}catch(_0x105b6c){throw CliErrors[_0x142b2c(0x179)](_0x142b2c(0x175)+(_0x105b6c instanceof Error?_0x105b6c['message']:String(_0x105b6c)),_0x142b2c(0x161));}return{'ok':!![],'message':buildResultMessage(_0x25b522[_0x142b2c(0x158)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x142b2c(0x172),_0x142b2c(0x156),'issue.description_truncated',_0x142b2c(0x17f),'issue.description_redaction_kinds'],'issue':{'title':_0x25b522['title'],'descriptionLength':_0x25b522[_0x142b2c(0x17e)]['length'],'descriptionSource':_0x25b522[_0x142b2c(0x15b)],..._0x25b522['descriptionFilePath']?{'descriptionFile':_0x25b522[_0x142b2c(0x14f)]}:{},'sanitize':{'originalBytes':_0x25b522[_0x142b2c(0x158)][_0x142b2c(0x17c)],'truncated':_0x25b522['sanitize']['truncated'],'redactions':_0x25b522[_0x142b2c(0x158)][_0x142b2c(0x182)],'redactionKinds':_0x25b522[_0x142b2c(0x158)][_0x142b2c(0x14c)]}}}};}};function a92_0x43e1(_0x351266,_0x193448){_0x351266=_0x351266-0x14c;const _0x54e247=a92_0x54e2();let _0x43e18a=_0x54e247[_0x351266];return _0x43e18a;}function buildResultMessage(_0x3b7324){const _0x563679=a92_0x5160da,_0x5555e6=[];return _0x3b7324[_0x563679(0x159)]&&_0x5555e6['push'](_0x563679(0x17b)+_0x3b7324['originalBytes']+_0x563679(0x16e)),_0x3b7324[_0x563679(0x182)]>0x0&&_0x5555e6['push'](_0x563679(0x165)+_0x3b7324[_0x563679(0x182)]+_0x563679(0x170)+_0x3b7324[_0x563679(0x14c)][_0x563679(0x174)](',\x20')),_0x5555e6[_0x563679(0x15e)]===0x0?_0x563679(0x183):_0x563679(0x160)+_0x5555e6['join'](';\x20')+')';}function a92_0x54e2(){const _0xf3be9c=['descriptionFilePath','description-file','4VJNnUk','trim','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','write','File\x20not\x20found:\x20','issue.description_original_bytes','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','sanitize','truncated','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','descriptionSource','4oajXLe','367380WBXCBI','length','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Platform\x20issue\x20reported\x20(','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','descriptionSource:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','10rgDhXs','redacted\x20','str','POST','752528YxShRz','compress','validation','2378660zOKGPD','15340820zLxVsZ','truncated:\x20original\x20','\x20bytes','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','\x20secret(s):\x20','Issue\x20description\x20cannot\x20be\x20empty.','issue.description','title','join','Failed\x20to\x20report\x20platform\x20issue:\x20','873189KUlYvs','2251158szRzDN','string','apiError','redactions:\x20','truncated\x20from\x20','originalBytes','report','description','issue.description_redactions','One-line\x20issue\x20summary','cwd','redactionCount','Platform\x20issue\x20reported','redactionKinds','294348BpAwhR','14Mwpple'];a92_0x54e2=function(){return _0xf3be9c;};return a92_0x54e2();}async function prepareIssueReport(_0x26eedc){const _0x8618a9=a92_0x5160da,_0x3f51fb=_0x26eedc[_0x8618a9(0x166)](_0x8618a9(0x173))['trim'](),_0x59f03a=_0x26eedc[_0x8618a9(0x166)](_0x8618a9(0x17e)),_0x405693=_0x26eedc[_0x8618a9(0x166)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x405693){const _0x5cbdfa=_0x59f03a;if(!_0x5cbdfa[_0x8618a9(0x152)]())throw CliErrors['validation'](_0x8618a9(0x171),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x3eea8b=sanitizeIssueDescription(_0x5cbdfa);return{'title':_0x3f51fb,'description':_0x3eea8b[_0x8618a9(0x17e)],'descriptionSource':'inline','sanitize':_0x3eea8b};}const _0x3c9c0e=resolve(process[_0x8618a9(0x181)](),_0x405693),_0x6fa9b=await readFile(_0x3c9c0e,'utf8');if(!_0x6fa9b[_0x8618a9(0x152)]())throw CliErrors[_0x8618a9(0x16a)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x3c9c0e,_0x8618a9(0x15f));const _0x1f333e=sanitizeIssueDescription(_0x6fa9b);return{'title':_0x3f51fb,'description':_0x1f333e[_0x8618a9(0x17e)],'descriptionSource':'file','descriptionFilePath':_0x3c9c0e,'sanitize':_0x1f333e};}
@@ -1 +1 @@
1
- function a93_0x5d8b(_0x10e4a0,_0x329aee){_0x10e4a0=_0x10e4a0-0x1f3;const _0x41a88b=a93_0x41a8();let _0x5d8b36=_0x41a88b[_0x10e4a0];return _0x5d8b36;}const a93_0x52fadc=a93_0x5d8b;function a93_0x41a8(){const _0x5b2d64=['6146SeXPDJ','cookie','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','password','4080ldzwZc','includes','REDACTED:bearer-jwt','kind','558198MHWCxN','bearer-jwt','label','pattern','735508XqYpJL','5970498yvaxcB','31728528ATtaAZ','byteLength','1667565jyRqhy','REDACTED:authorization','12NqUfQM','access-key','REDACTED:private-key','utf8','subarray','toString','private-key','REDACTED:access-key','389615kGZZAy','from','push'];a93_0x41a8=function(){return _0x5b2d64;};return a93_0x41a8();}(function(_0x3632c6,_0x506252){const _0x4207fc=a93_0x5d8b,_0x3b8e9c=_0x3632c6();while(!![]){try{const _0x4f54a7=-parseInt(_0x4207fc(0x1f7))/0x1+-parseInt(_0x4207fc(0x206))/0x2+parseInt(_0x4207fc(0x202))/0x3+-parseInt(_0x4207fc(0x20c))/0x4*(parseInt(_0x4207fc(0x20a))/0x5)+-parseInt(_0x4207fc(0x207))/0x6+-parseInt(_0x4207fc(0x1fa))/0x7*(parseInt(_0x4207fc(0x1fe))/0x8)+parseInt(_0x4207fc(0x208))/0x9;if(_0x4f54a7===_0x506252)break;else _0x3b8e9c['push'](_0x3b8e9c['shift']());}catch(_0x25db50){_0x3b8e9c['push'](_0x3b8e9c['shift']());}}}(a93_0x41a8,0x7cadf));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a93_0x52fadc(0x1fc),REDACTION_RULES=[{'kind':a93_0x52fadc(0x1fb),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a93_0x52fadc(0x20b)},{'kind':a93_0x52fadc(0x1f5),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a93_0x52fadc(0x20e)},{'kind':a93_0x52fadc(0x20d),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a93_0x52fadc(0x1f6)},{'kind':a93_0x52fadc(0x1fd),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a93_0x52fadc(0x203),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a93_0x52fadc(0x200)}];export function sanitizeIssueDescription(_0xa3abe2){const _0x187e07=a93_0x52fadc,_0x544b54=Buffer[_0x187e07(0x209)](_0xa3abe2,'utf8'),_0xacfdae=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x41a54d=_0xa3abe2,_0x41ab68=0x0;const _0x174e9d=[];if(!_0xacfdae)for(const _0x26b5b9 of REDACTION_RULES){let _0x11d81b=0x0;_0x41a54d=_0x41a54d['replace'](_0x26b5b9[_0x187e07(0x205)],(_0x2b88fd,_0x228f7c)=>{const _0x11095c=_0x187e07;_0x11d81b+=0x1;const _0x226369=typeof _0x228f7c==='string'?_0x228f7c:'';return _0x226369+'['+_0x26b5b9[_0x11095c(0x204)]+']';}),_0x11d81b>0x0&&(_0x41ab68+=_0x11d81b,!_0x174e9d[_0x187e07(0x1ff)](_0x26b5b9['kind'])&&_0x174e9d[_0x187e07(0x1f9)](_0x26b5b9[_0x187e07(0x201)]));}let _0x548d82=![];if(Buffer['byteLength'](_0x41a54d,_0x187e07(0x20f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x548d82=!![];const _0x5f250c=Buffer['byteLength'](TRUNCATION_NOTICE,_0x187e07(0x20f)),_0x29b09e=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5f250c);_0x41a54d=sliceUtf8Bytes(_0x41a54d,_0x29b09e)+TRUNCATION_NOTICE;}return{'description':_0x41a54d,'originalBytes':_0x544b54,'truncated':_0x548d82,'redactionCount':_0x41ab68,'redactionKinds':_0x174e9d};}function sliceUtf8Bytes(_0xfc0970,_0x32a380){const _0x27fe59=a93_0x52fadc;if(_0x32a380<=0x0)return'';const _0x271221=Buffer[_0x27fe59(0x1f8)](_0xfc0970,_0x27fe59(0x20f));if(_0x271221[_0x27fe59(0x209)]<=_0x32a380)return _0xfc0970;let _0x20c8f0=_0x32a380;while(_0x20c8f0>0x0){const _0x19fc9f=_0x271221[_0x20c8f0];if(_0x19fc9f===undefined||(_0x19fc9f&0xc0)!==0x80)break;_0x20c8f0-=0x1;}return _0x271221[_0x27fe59(0x1f3)](0x0,_0x20c8f0)[_0x27fe59(0x1f4)](_0x27fe59(0x20f));}
1
+ const a93_0x33df5b=a93_0x333a;(function(_0x587beb,_0x5eaa00){const _0x2bb8f8=a93_0x333a,_0x53b301=_0x587beb();while(!![]){try{const _0x2b0cf0=parseInt(_0x2bb8f8(0x10b))/0x1+-parseInt(_0x2bb8f8(0xfc))/0x2*(parseInt(_0x2bb8f8(0x104))/0x3)+parseInt(_0x2bb8f8(0x10d))/0x4+-parseInt(_0x2bb8f8(0x111))/0x5+-parseInt(_0x2bb8f8(0xfe))/0x6*(parseInt(_0x2bb8f8(0xfa))/0x7)+parseInt(_0x2bb8f8(0x10c))/0x8*(parseInt(_0x2bb8f8(0xf5))/0x9)+-parseInt(_0x2bb8f8(0x10a))/0xa;if(_0x2b0cf0===_0x5eaa00)break;else _0x53b301['push'](_0x53b301['shift']());}catch(_0x259934){_0x53b301['push'](_0x53b301['shift']());}}}(a93_0x109e,0x7dad0));function a93_0x109e(){const _0x27ec8a=['623TxbIth','authorization','1884nqZnRv','string','39414CjCDuw','byteLength','REDACTED:access-key','push','cookie','REDACTED:authorization','135igULWm','password','bearer-jwt','access-key','pattern','from','6450570pBgoIL','378352ajkvJO','20040HXsEEl','3194496GNjTDo','toString','REDACTED:bearer-jwt','utf8','445075czBHqj','replace','2511qFqCDO','REDACTED:cookie','kind','REDACTED:private-key','includes'];a93_0x109e=function(){return _0x27ec8a;};return a93_0x109e();}export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a93_0x33df5b(0x102),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a93_0x33df5b(0xf6)},{'kind':a93_0x33df5b(0xfb),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a93_0x33df5b(0x103)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a93_0x33df5b(0xf8)},{'kind':a93_0x33df5b(0x107),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a93_0x33df5b(0x100)},{'kind':a93_0x33df5b(0x105),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a93_0x33df5b(0x106),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a93_0x33df5b(0x10f)}];function a93_0x333a(_0x5f1499,_0x328c6f){_0x5f1499=_0x5f1499-0xf5;const _0x109e0b=a93_0x109e();let _0x333a9f=_0x109e0b[_0x5f1499];return _0x333a9f;}export function sanitizeIssueDescription(_0x327588){const _0x44f469=a93_0x33df5b,_0x39e92b=Buffer[_0x44f469(0xff)](_0x327588,_0x44f469(0x110)),_0x378223=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x572413=_0x327588,_0x4e37b7=0x0;const _0x286d61=[];if(!_0x378223)for(const _0x4f29ba of REDACTION_RULES){let _0x11eab4=0x0;_0x572413=_0x572413[_0x44f469(0x112)](_0x4f29ba[_0x44f469(0x108)],(_0x531175,_0x3892e2)=>{const _0x5f02d3=_0x44f469;_0x11eab4+=0x1;const _0x265ed7=typeof _0x3892e2===_0x5f02d3(0xfd)?_0x3892e2:'';return _0x265ed7+'['+_0x4f29ba['label']+']';}),_0x11eab4>0x0&&(_0x4e37b7+=_0x11eab4,!_0x286d61[_0x44f469(0xf9)](_0x4f29ba[_0x44f469(0xf7)])&&_0x286d61[_0x44f469(0x101)](_0x4f29ba[_0x44f469(0xf7)]));}let _0x3841dc=![];if(Buffer[_0x44f469(0xff)](_0x572413,_0x44f469(0x110))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3841dc=!![];const _0x5dd2be=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x43a7c3=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5dd2be);_0x572413=sliceUtf8Bytes(_0x572413,_0x43a7c3)+TRUNCATION_NOTICE;}return{'description':_0x572413,'originalBytes':_0x39e92b,'truncated':_0x3841dc,'redactionCount':_0x4e37b7,'redactionKinds':_0x286d61};}function sliceUtf8Bytes(_0x2be809,_0x4cbe0d){const _0x37fd6f=a93_0x33df5b;if(_0x4cbe0d<=0x0)return'';const _0x4e5eaf=Buffer[_0x37fd6f(0x109)](_0x2be809,_0x37fd6f(0x110));if(_0x4e5eaf['byteLength']<=_0x4cbe0d)return _0x2be809;let _0x42643d=_0x4cbe0d;while(_0x42643d>0x0){const _0x1b2f47=_0x4e5eaf[_0x42643d];if(_0x1b2f47===undefined||(_0x1b2f47&0xc0)!==0x80)break;_0x42643d-=0x1;}return _0x4e5eaf['subarray'](0x0,_0x42643d)[_0x37fd6f(0x10e)](_0x37fd6f(0x110));}
@@ -1 +1 @@
1
- const a94_0xa289cc=a94_0x1e3a;(function(_0x2c5898,_0x508779){const _0x596fac=a94_0x1e3a,_0x355fef=_0x2c5898();while(!![]){try{const _0x3dbc9d=parseInt(_0x596fac(0x1a6))/0x1+parseInt(_0x596fac(0x18c))/0x2*(parseInt(_0x596fac(0x193))/0x3)+-parseInt(_0x596fac(0x19e))/0x4*(parseInt(_0x596fac(0x199))/0x5)+parseInt(_0x596fac(0x18e))/0x6*(-parseInt(_0x596fac(0x191))/0x7)+-parseInt(_0x596fac(0x1a7))/0x8+-parseInt(_0x596fac(0x1a0))/0x9*(parseInt(_0x596fac(0x1ad))/0xa)+-parseInt(_0x596fac(0x198))/0xb*(-parseInt(_0x596fac(0x1aa))/0xc);if(_0x3dbc9d===_0x508779)break;else _0x355fef['push'](_0x355fef['shift']());}catch(_0x22594a){_0x355fef['push'](_0x355fef['shift']());}}}(a94_0xcaec,0x4ee69));function a94_0x1e3a(_0x48d661,_0x29358b){_0x48d661=_0x48d661-0x18a;const _0xcaec4c=a94_0xcaec();let _0x1e3ad1=_0xcaec4c[_0x48d661];return _0x1e3ad1;}import{logger}from'../../utils/logger.js';function printLogs(_0x3955c2){const _0xd0b638=a94_0x1e3a;if(_0x3955c2['length']===0x0){console['log'](_0xd0b638(0x195));return;}console[_0xd0b638(0x192)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x3955c2['forEach']((_0x3f3b9d,_0x1847ac)=>{const _0x297050=_0xd0b638,_0x428de6=new Date(_0x3f3b9d['timestamp'])[_0x297050(0x194)](_0x297050(0x19f)),_0x1ada6d=_0x3f3b9d[_0x297050(0x1a9)]==='success'?'√':_0x3f3b9d['level']===_0x297050(0x18a)?'×':_0x3f3b9d['level']===_0x297050(0x18f)?'!':'i';console[_0x297050(0x192)](_0x1847ac+0x1+'.\x20'+_0x1ada6d+'\x20['+_0x3f3b9d[_0x297050(0x1ac)]+']\x20'+_0x3f3b9d[_0x297050(0x1a2)]),console[_0x297050(0x192)](_0x297050(0x196)+_0x428de6),_0x3f3b9d[_0x297050(0x18b)]&&console[_0x297050(0x192)](_0x297050(0x19d)+_0x3f3b9d[_0x297050(0x18b)]+'ms'),_0x3f3b9d[_0x297050(0x1ab)]&&Object[_0x297050(0x1a5)](_0x3f3b9d['details'])[_0x297050(0x1a8)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x3f3b9d[_0x297050(0x1ab)],null,0x2)),console[_0x297050(0x192)]('');});}export const logsDefinitions=[{'service':'logs','command':a94_0xa289cc(0x18d),'description':a94_0xa289cc(0x19b),'risk':a94_0xa289cc(0x197),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x212bd2){const _0x9a1b60=a94_0xa289cc;return printLogs(logger[_0x9a1b60(0x1a3)]()),{'ok':!![]};}},{'service':a94_0xa289cc(0x19c),'command':a94_0xa289cc(0x190),'description':a94_0xa289cc(0x1a4),'risk':a94_0xa289cc(0x19a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1eac8f){const _0x37e824=a94_0xa289cc;return logger[_0x37e824(0x1a1)](),console[_0x37e824(0x192)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];function a94_0xcaec(){const _0x5e5923=['171SPFWbr','clearLogs','message','readLogs','Clear\x20command\x20history\x20logs','keys','49256qnDRov','3912432TlpwJd','length','level','7289616rTmniP','details','command','200270mrZcXD','error','duration','986710pwwnOi','show','43302YhpNUt','warn','clear','350WWZOka','log','3uhDBLh','toLocaleString','*\x20No\x20logs\x20found','\x20\x20\x20Time:\x20','read','22ROLQAn','1019765EbPuhy','write','View\x20command\x20history\x20logs','logs','\x20\x20\x20Duration:\x20','4AWkshd','en-US'];a94_0xcaec=function(){return _0x5e5923;};return a94_0xcaec();}
1
+ const a94_0x1deb28=a94_0x4e92;(function(_0x1d7481,_0x2ff093){const _0x3873cf=a94_0x4e92,_0x47a0ed=_0x1d7481();while(!![]){try{const _0x1955ea=-parseInt(_0x3873cf(0x1ac))/0x1+-parseInt(_0x3873cf(0x1a8))/0x2*(parseInt(_0x3873cf(0x196))/0x3)+parseInt(_0x3873cf(0x1a9))/0x4*(-parseInt(_0x3873cf(0x193))/0x5)+parseInt(_0x3873cf(0x199))/0x6*(parseInt(_0x3873cf(0x1a3))/0x7)+-parseInt(_0x3873cf(0x1a6))/0x8+parseInt(_0x3873cf(0x1ab))/0x9*(parseInt(_0x3873cf(0x197))/0xa)+parseInt(_0x3873cf(0x1a1))/0xb*(parseInt(_0x3873cf(0x19c))/0xc);if(_0x1955ea===_0x2ff093)break;else _0x47a0ed['push'](_0x47a0ed['shift']());}catch(_0x2ca790){_0x47a0ed['push'](_0x47a0ed['shift']());}}}(a94_0x25d4,0x8ed51));function a94_0x4e92(_0x3df548,_0x3ebdb5){_0x3df548=_0x3df548-0x191;const _0x25d4aa=a94_0x25d4();let _0x4e92ec=_0x25d4aa[_0x3df548];return _0x4e92ec;}import{logger}from'../../utils/logger.js';function printLogs(_0x4ebb2b){const _0x25e162=a94_0x4e92;if(_0x4ebb2b[_0x25e162(0x1ad)]===0x0){console[_0x25e162(0x198)]('*\x20No\x20logs\x20found');return;}console[_0x25e162(0x198)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x4ebb2b[_0x25e162(0x19f)]((_0x2705ca,_0x1a364b)=>{const _0x31671d=_0x25e162,_0x4db0b6=new Date(_0x2705ca[_0x31671d(0x191)])[_0x31671d(0x195)](_0x31671d(0x1a4)),_0xfa4e44=_0x2705ca[_0x31671d(0x1a2)]==='success'?'√':_0x2705ca[_0x31671d(0x1a2)]===_0x31671d(0x192)?'×':_0x2705ca['level']===_0x31671d(0x19d)?'!':'i';console[_0x31671d(0x198)](_0x1a364b+0x1+'.\x20'+_0xfa4e44+'\x20['+_0x2705ca[_0x31671d(0x1a7)]+']\x20'+_0x2705ca['message']),console['log']('\x20\x20\x20Time:\x20'+_0x4db0b6),_0x2705ca[_0x31671d(0x19b)]&&console[_0x31671d(0x198)](_0x31671d(0x1a5)+_0x2705ca[_0x31671d(0x19b)]+'ms'),_0x2705ca[_0x31671d(0x1aa)]&&Object['keys'](_0x2705ca[_0x31671d(0x1aa)])['length']>0x0&&console[_0x31671d(0x198)](_0x31671d(0x1a0)+JSON[_0x31671d(0x19e)](_0x2705ca[_0x31671d(0x1aa)],null,0x2)),console[_0x31671d(0x198)]('');});}function a94_0x25d4(){const _0x304406=['readLogs','timestamp','error','5vMhEIZ','logs','toLocaleString','3CsyLWk','10LTlTTt','log','6koQHLY','write','duration','6915120KNvADH','warn','stringify','forEach','\x20\x20\x20Details:\x20','55Afvyxx','level','177198LlWVyo','en-US','\x20\x20\x20Duration:\x20','4349496btIggi','command','1354596xeHFOx','3079604NuFUeI','details','6213096jbisFX','1021031gqFCpG','length','show'];a94_0x25d4=function(){return _0x304406;};return a94_0x25d4();}export const logsDefinitions=[{'service':a94_0x1deb28(0x194),'command':a94_0x1deb28(0x1ae),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x3f6ae9){const _0x27b1d5=a94_0x1deb28;return printLogs(logger[_0x27b1d5(0x1af)]()),{'ok':!![]};}},{'service':a94_0x1deb28(0x194),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a94_0x1deb28(0x19a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2b9b7a){const _0x44906c=a94_0x1deb28;return logger['clearLogs'](),console[_0x44906c(0x198)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a95_0x47dd(){const _0x412f1c=['516468XPGHJP','170TawBqY','29134GfuSGI','75798YaxkDs','6PhpxTg','10786127ALBdyz','1751547VRQJJD','3vvFqUr','341595FJpBTH','875632iVUFZb','6BbxvQr'];a95_0x47dd=function(){return _0x412f1c;};return a95_0x47dd();}(function(_0x5589a7,_0x493f03){const _0x3fd2cb=a95_0x45bf,_0x30d118=_0x5589a7();while(!![]){try{const _0x50cba4=parseInt(_0x3fd2cb(0x114))/0x1*(-parseInt(_0x3fd2cb(0x116))/0x2)+-parseInt(_0x3fd2cb(0x10e))/0x3*(parseInt(_0x3fd2cb(0x112))/0x4)+parseInt(_0x3fd2cb(0x10f))/0x5*(-parseInt(_0x3fd2cb(0x111))/0x6)+-parseInt(_0x3fd2cb(0x10d))/0x7+-parseInt(_0x3fd2cb(0x110))/0x8+parseInt(_0x3fd2cb(0x115))/0x9*(-parseInt(_0x3fd2cb(0x113))/0xa)+parseInt(_0x3fd2cb(0x10c))/0xb;if(_0x50cba4===_0x493f03)break;else _0x30d118['push'](_0x30d118['shift']());}catch(_0x363ffe){_0x30d118['push'](_0x30d118['shift']());}}}(a95_0x47dd,0x2f166));import{menuList}from'../../commands/menu/list.js';function a95_0x45bf(_0x120600,_0x9bbb77){_0x120600=_0x120600-0x10c;const _0x47dd82=a95_0x47dd();let _0x45bfa9=_0x47dd82[_0x120600];return _0x45bfa9;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x5880b4,_0x27d18b){const _0x5c8b48=a95_0x2e62,_0x60e99d=_0x5880b4();while(!![]){try{const _0x1fc128=parseInt(_0x5c8b48(0xfb))/0x1*(parseInt(_0x5c8b48(0xf6))/0x2)+parseInt(_0x5c8b48(0xf5))/0x3*(-parseInt(_0x5c8b48(0xf8))/0x4)+parseInt(_0x5c8b48(0xfc))/0x5+-parseInt(_0x5c8b48(0xfa))/0x6+-parseInt(_0x5c8b48(0xfd))/0x7+parseInt(_0x5c8b48(0xf7))/0x8+parseInt(_0x5c8b48(0xf9))/0x9;if(_0x1fc128===_0x27d18b)break;else _0x60e99d['push'](_0x60e99d['shift']());}catch(_0x54d7ce){_0x60e99d['push'](_0x60e99d['shift']());}}}(a95_0x2663,0xc7a6b));import{menuList}from'../../commands/menu/list.js';function a95_0x2e62(_0x51b5de,_0x35d04c){_0x51b5de=_0x51b5de-0xf5;const _0x26633d=a95_0x2663();let _0x2e6253=_0x26633d[_0x51b5de];return _0x2e6253;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a95_0x2663(){const _0x225a20=['11462776syTtuo','20cKbiuN','1601739tynydh','3071904NvjBJi','114688miYxqY','5323540JRijaO','6896344nwcsHh','353973nHtMRU','4vOuRuE'];a95_0x2663=function(){return _0x225a20;};return a95_0x2663();}
@@ -1 +1 @@
1
- const a96_0x41084f=a96_0x5149;(function(_0x5c3c49,_0x582ea1){const _0x2c6c06=a96_0x5149,_0x28bcb2=_0x5c3c49();while(!![]){try{const _0x7c5a5a=-parseInt(_0x2c6c06(0x19a))/0x1*(parseInt(_0x2c6c06(0x19e))/0x2)+-parseInt(_0x2c6c06(0x19f))/0x3+-parseInt(_0x2c6c06(0x196))/0x4*(parseInt(_0x2c6c06(0x183))/0x5)+parseInt(_0x2c6c06(0x199))/0x6*(parseInt(_0x2c6c06(0x190))/0x7)+parseInt(_0x2c6c06(0x194))/0x8*(parseInt(_0x2c6c06(0x1a5))/0x9)+-parseInt(_0x2c6c06(0x19c))/0xa*(parseInt(_0x2c6c06(0x191))/0xb)+parseInt(_0x2c6c06(0x1a2))/0xc*(parseInt(_0x2c6c06(0x1ac))/0xd);if(_0x7c5a5a===_0x582ea1)break;else _0x28bcb2['push'](_0x28bcb2['shift']());}catch(_0x5cec06){_0x28bcb2['push'](_0x28bcb2['shift']());}}}(a96_0x3642,0xf213c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a96_0x3642(){const _0x85aef1=['list','6RKxNvf','2233878rPITEj','map','boolean','3588hLNejj','parentId','bool','35199NxJXed','menu','Fetch\x20menu\x20list','\x20menu(s)','parse','string','extend','110695kCoLwd','children','6332215lZjCqH','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','isFinite','resources','path','length','sort','cookie','push','depth','Found\x20','verbose','label','287QJUOxt','533269KHnuyM','index','appCode','3352zydOex','isArray','4afvOOx','item','type','250518XRuGvS','334423LDEzHa','visible','390evDoOP'];a96_0x3642=function(){return _0x85aef1;};return a96_0x3642();}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a96_0x41084f(0x1a6),'command':a96_0x41084f(0x19d),'description':a96_0x41084f(0x184),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a96_0x41084f(0x18e),'type':a96_0x41084f(0x1a1),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x34d23e){const _0x2bc19f=a96_0x41084f,_0x5d25f5=_0x34d23e[_0x2bc19f(0x1a4)](_0x2bc19f(0x18e)),_0xaab8ed=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x34d23e[_0x2bc19f(0x193)],{'cookie':_0x34d23e[_0x2bc19f(0x18a)],'label':_0x2bc19f(0x1a7)}),_0x5dcbdb=flattenMenuItems(Array[_0x2bc19f(0x195)](_0xaab8ed)?_0xaab8ed:[],{'verbose':_0x5d25f5,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5dcbdb[_0x2bc19f(0x188)],'menus':_0x5dcbdb},'message':_0x5dcbdb['length']===0x0?'No\x20menus\x20found.':_0x2bc19f(0x18d)+_0x5dcbdb['length']+_0x2bc19f(0x1a8)};}};function flattenMenuItems(_0x1ff607,_0x1e400c){const _0x4884f1=a96_0x41084f,_0x37512b=sortMenuItems(_0x1ff607),_0x5e1386=[];for(const _0x3d1718 of _0x37512b){_0x5e1386[_0x4884f1(0x18b)](toMenuListItem(_0x3d1718,_0x1e400c)),Array[_0x4884f1(0x195)](_0x3d1718[_0x4884f1(0x182)])&&_0x3d1718[_0x4884f1(0x182)][_0x4884f1(0x188)]>0x0&&_0x5e1386[_0x4884f1(0x18b)](...flattenMenuItems(_0x3d1718['children'],{'verbose':_0x1e400c[_0x4884f1(0x18e)],'parentId':_0x3d1718['id'],'depth':_0x1e400c[_0x4884f1(0x18c)]+0x1}));}return _0x5e1386;}function a96_0x5149(_0xb87637,_0x337c4e){_0xb87637=_0xb87637-0x182;const _0x3642cc=a96_0x3642();let _0x514962=_0x3642cc[_0xb87637];return _0x514962;}function sortMenuItems(_0x3af96b){const _0x1af0b2=a96_0x41084f;return _0x3af96b[_0x1af0b2(0x1a0)]((_0x1e7178,_0x1f287f)=>({'item':_0x1e7178,'index':_0x1f287f}))[_0x1af0b2(0x189)]((_0x3fb100,_0x30ae2a)=>{const _0x15426f=_0x1af0b2,_0x3cea50=normalizeSort(_0x3fb100['item'][_0x15426f(0x189)]),_0x35b863=normalizeSort(_0x30ae2a[_0x15426f(0x197)][_0x15426f(0x189)]);if(_0x3cea50!==_0x35b863)return _0x3cea50-_0x35b863;return _0x3fb100[_0x15426f(0x192)]-_0x30ae2a[_0x15426f(0x192)];})[_0x1af0b2(0x1a0)](({item:_0x4924c9})=>_0x4924c9);}function toMenuListItem(_0x2d5ec1,_0x498ddc){const _0x201f9a=a96_0x41084f,_0x562d3e={'id':_0x2d5ec1['id'],'parentId':_0x498ddc[_0x201f9a(0x1a3)],'depth':_0x498ddc['depth'],'label':normalizeString(_0x2d5ec1[_0x201f9a(0x18f)]),'path':normalizeString(_0x2d5ec1[_0x201f9a(0x187)]),'type':normalizeString(_0x2d5ec1[_0x201f9a(0x198)]),'visible':typeof _0x2d5ec1['visible']===_0x201f9a(0x1a1)?_0x2d5ec1[_0x201f9a(0x19b)]:null,'sort':typeof _0x2d5ec1[_0x201f9a(0x189)]==='number'&&Number[_0x201f9a(0x185)](_0x2d5ec1[_0x201f9a(0x189)])?_0x2d5ec1[_0x201f9a(0x189)]:null,'resources':normalizeResources(_0x2d5ec1[_0x201f9a(0x1ab)]?.[_0x201f9a(0x186)])};return _0x498ddc[_0x201f9a(0x18e)]&&(_0x562d3e[_0x201f9a(0x1ab)]=_0x2d5ec1['extend']??null),_0x562d3e;}function normalizeSort(_0x6c4b7b){const _0x36683b=a96_0x41084f;return typeof _0x6c4b7b==='number'&&Number[_0x36683b(0x185)](_0x6c4b7b)?_0x6c4b7b:Number['POSITIVE_INFINITY'];}function normalizeString(_0x70ad18){const _0x266feb=a96_0x41084f;return typeof _0x70ad18===_0x266feb(0x1aa)?_0x70ad18:'';}function normalizeResources(_0x12f8fc){const _0x47a758=a96_0x41084f;if(Array[_0x47a758(0x195)](_0x12f8fc))return _0x12f8fc['map'](String);if(typeof _0x12f8fc!==_0x47a758(0x1aa))return[];try{const _0x560eb6=JSON[_0x47a758(0x1a9)](_0x12f8fc);return Array['isArray'](_0x560eb6)?_0x560eb6[_0x47a758(0x1a0)](String):[];}catch{return[];}}
1
+ const a96_0x4d4db8=a96_0x49d0;(function(_0x2b5f9b,_0x3dbe56){const _0x18d99a=a96_0x49d0,_0x30167d=_0x2b5f9b();while(!![]){try{const _0x507f97=parseInt(_0x18d99a(0xa6))/0x1*(-parseInt(_0x18d99a(0xa3))/0x2)+parseInt(_0x18d99a(0x97))/0x3*(-parseInt(_0x18d99a(0x9a))/0x4)+parseInt(_0x18d99a(0x96))/0x5+-parseInt(_0x18d99a(0xab))/0x6*(-parseInt(_0x18d99a(0xaa))/0x7)+-parseInt(_0x18d99a(0x87))/0x8+parseInt(_0x18d99a(0xa1))/0x9+-parseInt(_0x18d99a(0x89))/0xa*(-parseInt(_0x18d99a(0x90))/0xb);if(_0x507f97===_0x3dbe56)break;else _0x30167d['push'](_0x30167d['shift']());}catch(_0x4af0b2){_0x30167d['push'](_0x30167d['shift']());}}}(a96_0x2b07,0xb74c6));function a96_0x2b07(){const _0x48d4d1=['read','isArray','/smartapi/menu/find?appCode=','path','menu','3735660QRkIXv','441BeOWkL','parentId','extend','19876ekBFZr','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','bool','number','cookie','sort','depth','10698030skGzPX','item','9402xLxDvT','children','isFinite','253cdzliy','length','label','Found\x20','175JiTeTA','48042JubhGL','list','verbose','map','4786928UcUuzh','string','11329750CdlQnm','parse','\x20menu(s)','resources','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','index','visible','11KZyZfN'];a96_0x2b07=function(){return _0x48d4d1;};return a96_0x2b07();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':a96_0x4d4db8(0x95),'command':a96_0x4d4db8(0xac),'description':a96_0x4d4db8(0x8d),'risk':a96_0x4d4db8(0x91),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':'boolean','description':a96_0x4d4db8(0x9b)}],async 'execute'(_0x4a02cd){const _0x59e940=a96_0x4d4db8,_0x58fd62=_0x4a02cd[_0x59e940(0x9c)](_0x59e940(0x85)),_0xa6aa0b=await platformFetch(getApiDomain()+_0x59e940(0x93)+_0x4a02cd['appCode'],{'cookie':_0x4a02cd[_0x59e940(0x9e)],'label':'Fetch\x20menu\x20list'}),_0x9452e3=flattenMenuItems(Array[_0x59e940(0x92)](_0xa6aa0b)?_0xa6aa0b:[],{'verbose':_0x58fd62,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x9452e3[_0x59e940(0xa7)],'menus':_0x9452e3},'message':_0x9452e3[_0x59e940(0xa7)]===0x0?'No\x20menus\x20found.':_0x59e940(0xa9)+_0x9452e3['length']+_0x59e940(0x8b)};}};function flattenMenuItems(_0x3627a1,_0x8f2348){const _0xb59d9b=a96_0x4d4db8,_0x40943a=sortMenuItems(_0x3627a1),_0x2990a3=[];for(const _0x4ed1b5 of _0x40943a){_0x2990a3['push'](toMenuListItem(_0x4ed1b5,_0x8f2348)),Array['isArray'](_0x4ed1b5[_0xb59d9b(0xa4)])&&_0x4ed1b5[_0xb59d9b(0xa4)][_0xb59d9b(0xa7)]>0x0&&_0x2990a3['push'](...flattenMenuItems(_0x4ed1b5['children'],{'verbose':_0x8f2348['verbose'],'parentId':_0x4ed1b5['id'],'depth':_0x8f2348[_0xb59d9b(0xa0)]+0x1}));}return _0x2990a3;}function sortMenuItems(_0xf182bc){const _0x7590f2=a96_0x4d4db8;return _0xf182bc[_0x7590f2(0x86)]((_0x3457e6,_0x277323)=>({'item':_0x3457e6,'index':_0x277323}))['sort']((_0x43584a,_0x7e9871)=>{const _0x48230f=_0x7590f2,_0x33a9be=normalizeSort(_0x43584a['item']['sort']),_0x3b5bbb=normalizeSort(_0x7e9871[_0x48230f(0xa2)]['sort']);if(_0x33a9be!==_0x3b5bbb)return _0x33a9be-_0x3b5bbb;return _0x43584a[_0x48230f(0x8e)]-_0x7e9871[_0x48230f(0x8e)];})[_0x7590f2(0x86)](({item:_0x2ee1f8})=>_0x2ee1f8);}function toMenuListItem(_0x427d84,_0x15781d){const _0x48b025=a96_0x4d4db8,_0x376540={'id':_0x427d84['id'],'parentId':_0x15781d[_0x48b025(0x98)],'depth':_0x15781d['depth'],'label':normalizeString(_0x427d84[_0x48b025(0xa8)]),'path':normalizeString(_0x427d84[_0x48b025(0x94)]),'type':normalizeString(_0x427d84['type']),'visible':typeof _0x427d84[_0x48b025(0x8f)]==='boolean'?_0x427d84[_0x48b025(0x8f)]:null,'sort':typeof _0x427d84[_0x48b025(0x9f)]===_0x48b025(0x9d)&&Number[_0x48b025(0xa5)](_0x427d84[_0x48b025(0x9f)])?_0x427d84['sort']:null,'resources':normalizeResources(_0x427d84[_0x48b025(0x99)]?.[_0x48b025(0x8c)])};return _0x15781d[_0x48b025(0x85)]&&(_0x376540['extend']=_0x427d84[_0x48b025(0x99)]??null),_0x376540;}function normalizeSort(_0x36ac99){const _0xf81e92=a96_0x4d4db8;return typeof _0x36ac99===_0xf81e92(0x9d)&&Number[_0xf81e92(0xa5)](_0x36ac99)?_0x36ac99:Number['POSITIVE_INFINITY'];}function a96_0x49d0(_0xb0f15b,_0x5268a6){_0xb0f15b=_0xb0f15b-0x85;const _0x2b073=a96_0x2b07();let _0x49d0a2=_0x2b073[_0xb0f15b];return _0x49d0a2;}function normalizeString(_0x28d570){const _0x1f286c=a96_0x4d4db8;return typeof _0x28d570===_0x1f286c(0x88)?_0x28d570:'';}function normalizeResources(_0x23bd14){const _0x50f138=a96_0x4d4db8;if(Array[_0x50f138(0x92)](_0x23bd14))return _0x23bd14[_0x50f138(0x86)](String);if(typeof _0x23bd14!==_0x50f138(0x88))return[];try{const _0x3ac36e=JSON[_0x50f138(0x8a)](_0x23bd14);return Array['isArray'](_0x3ac36e)?_0x3ac36e[_0x50f138(0x86)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x795434,_0x14b0a5){const _0x595506=a97_0x101a,_0x2ad791=_0x795434();while(!![]){try{const _0x5a2036=parseInt(_0x595506(0xe4))/0x1+-parseInt(_0x595506(0xd1))/0x2+parseInt(_0x595506(0xd2))/0x3+-parseInt(_0x595506(0xcf))/0x4*(-parseInt(_0x595506(0xe3))/0x5)+-parseInt(_0x595506(0xe5))/0x6*(parseInt(_0x595506(0xdf))/0x7)+parseInt(_0x595506(0xda))/0x8+-parseInt(_0x595506(0xd3))/0x9*(parseInt(_0x595506(0xd4))/0xa);if(_0x5a2036===_0x14b0a5)break;else _0x2ad791['push'](_0x2ad791['shift']());}catch(_0x158a1e){_0x2ad791['push'](_0x2ad791['shift']());}}}(a97_0x1558,0x7537b));function strWidth(_0xe00885){let _0x515552=0x0;for(const _0x476d42 of _0xe00885){_0x515552+=/[\u4e00-\u9fa5]/['test'](_0x476d42)?0x2:0x1;}return _0x515552;}function padRight(_0xd1b234,_0x2cdb75){const _0x1096e8=a97_0x101a,_0x4d0294=strWidth(_0xd1b234);return _0xd1b234+'\x20'[_0x1096e8(0xdd)](Math[_0x1096e8(0xd8)](0x0,_0x2cdb75-_0x4d0294));}function a97_0x1558(){const _0x42a5e4=['1044780wRSReK','18CAnZJg','3978430tMhRwm','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20\x20\x20CSS:\x20','join','max','path','4744352ljLYPi','Local','Menu\x20Name','repeat','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','3071677gzEghd','push','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','25LeNKOL','674744ZOzJyQ','6Jjzzfg','Platform','label','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','local','\x20\x20No\x20pages\x20to\x20sync.','showOnline','length','268296ArOvfc','\x20\x20\x20\x20•\x20','473596EizLPY'];a97_0x1558=function(){return _0x42a5e4;};return a97_0x1558();}export function renderCompareTable(_0x27db68,_0x2e355a={}){const _0x3b70f3=a97_0x101a;if(_0x27db68[_0x3b70f3(0xce)]===0x0)return'';const _0x2b3805=_0x2e355a[_0x3b70f3(0xeb)]??!![],_0x4f3f9e=Math['max'](0x1e,..._0x27db68['map'](_0x5f395=>strWidth(_0x5f395[_0x3b70f3(0xe7)]))),_0x580904=0x4,_0x296487=[],_0xe2bfec='\x20\x20'+padRight(_0x3b70f3(0xdc),_0x4f3f9e),_0x4b1620=padRight(_0x3b70f3(0xdb),_0x580904),_0x24e185=_0x2b3805?'\x20\x20'+padRight(_0x3b70f3(0xe6),_0x580904):'';_0x296487[_0x3b70f3(0xe0)](_0xe2bfec+'\x20\x20'+_0x4b1620+(_0x2b3805?_0x24e185:'')),_0x296487['push']('\x20\x20'+'─'[_0x3b70f3(0xdd)](_0x4f3f9e)+'\x20\x20'+'─'['repeat'](_0x580904)+(_0x2b3805?'\x20\x20'+'─'[_0x3b70f3(0xdd)](_0x580904):''));for(const _0x1ca224 of _0x27db68){const _0x386b06=padRight(_0x1ca224[_0x3b70f3(0xe7)],_0x4f3f9e),_0x90c38a=_0x1ca224[_0x3b70f3(0xe9)]?'✓':'✗',_0x537232=padRight(_0x90c38a,_0x580904);let _0x1136b2='\x20\x20'+_0x386b06+'\x20\x20'+_0x537232;if(_0x2b3805){const _0x2d9728=_0x1ca224['online']?'✓':'✗';_0x1136b2+='\x20\x20'+padRight(_0x2d9728,_0x580904);}_0x296487[_0x3b70f3(0xe0)](_0x1136b2);}return _0x296487['join']('\x0a');}export function renderSyncSummary(_0x4be454,_0x4e9aa4){const _0x91db48=a97_0x101a;if(_0x4be454[_0x91db48(0xce)]===0x0)return _0x4e9aa4?_0x91db48(0xe8):_0x91db48(0xea);const _0x38140b=['\x20\x20'+_0x4be454[_0x91db48(0xce)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x17dd75 of _0x4be454){_0x38140b[_0x91db48(0xe0)](_0x91db48(0xd0)+_0x17dd75[_0x91db48(0xe7)]+'\x20('+_0x17dd75[_0x91db48(0xd9)]+')');}return _0x38140b[_0x91db48(0xd7)]('\x0a');}function a97_0x101a(_0x1920ef,_0x547624){_0x1920ef=_0x1920ef-0xce;const _0x1558ad=a97_0x1558();let _0x101a7d=_0x1558ad[_0x1920ef];return _0x101a7d;}export function renderUpdateSummary(_0x3bc023,_0x478b97){const _0x539658=a97_0x101a;if(_0x3bc023[_0x539658(0xce)]===0x0)return _0x539658(0xd5);const _0x9aa72b=['\x20\x20'+_0x3bc023[_0x539658(0xce)]+_0x539658(0xde),_0x539658(0xe2)+(_0x478b97[0x0]??_0x539658(0xe1)),_0x539658(0xd6)+(_0x478b97[0x1]??_0x539658(0xe1)),'','\x20\x20Affected\x20menus:\x20'+_0x3bc023[_0x539658(0xd7)](',\x20')];return _0x9aa72b[_0x539658(0xd7)]('\x0a');}
1
+ function a97_0x55e8(_0x180e3a,_0x231ac7){_0x180e3a=_0x180e3a-0x1b8;const _0x475536=a97_0x4755();let _0x55e8b8=_0x475536[_0x180e3a];return _0x55e8b8;}(function(_0x22a666,_0x4e10e6){const _0x88d240=a97_0x55e8,_0x4c03b4=_0x22a666();while(!![]){try{const _0x44f47a=-parseInt(_0x88d240(0x1d0))/0x1*(parseInt(_0x88d240(0x1d2))/0x2)+-parseInt(_0x88d240(0x1d6))/0x3*(-parseInt(_0x88d240(0x1c5))/0x4)+-parseInt(_0x88d240(0x1c3))/0x5+parseInt(_0x88d240(0x1c0))/0x6*(parseInt(_0x88d240(0x1cc))/0x7)+parseInt(_0x88d240(0x1d1))/0x8+parseInt(_0x88d240(0x1c2))/0x9*(parseInt(_0x88d240(0x1d3))/0xa)+-parseInt(_0x88d240(0x1d4))/0xb*(-parseInt(_0x88d240(0x1c8))/0xc);if(_0x44f47a===_0x4e10e6)break;else _0x4c03b4['push'](_0x4c03b4['shift']());}catch(_0x559853){_0x4c03b4['push'](_0x4c03b4['shift']());}}}(a97_0x4755,0x460ee));function strWidth(_0x48a25e){const _0x315d65=a97_0x55e8;let _0x47bfc2=0x0;for(const _0xe54c6e of _0x48a25e){_0x47bfc2+=/[\u4e00-\u9fa5]/[_0x315d65(0x1ce)](_0xe54c6e)?0x2:0x1;}return _0x47bfc2;}function padRight(_0x5b3050,_0x1e5433){const _0x1ff923=a97_0x55e8,_0x29b45c=strWidth(_0x5b3050);return _0x5b3050+'\x20'[_0x1ff923(0x1bc)](Math[_0x1ff923(0x1cf)](0x0,_0x1e5433-_0x29b45c));}export function renderCompareTable(_0x562513,_0x18fd1f={}){const _0x45ec64=a97_0x55e8;if(_0x562513['length']===0x0)return'';const _0x288cf0=_0x18fd1f[_0x45ec64(0x1c4)]??!![],_0x29b252=Math[_0x45ec64(0x1cf)](0x1e,..._0x562513[_0x45ec64(0x1d8)](_0x47e19f=>strWidth(_0x47e19f[_0x45ec64(0x1c6)]))),_0x352161=0x4,_0x389981=[],_0x5409dd='\x20\x20'+padRight(_0x45ec64(0x1bd),_0x29b252),_0x413700=padRight(_0x45ec64(0x1bf),_0x352161),_0xda43e4=_0x288cf0?'\x20\x20'+padRight(_0x45ec64(0x1bb),_0x352161):'';_0x389981[_0x45ec64(0x1ba)](_0x5409dd+'\x20\x20'+_0x413700+(_0x288cf0?_0xda43e4:'')),_0x389981[_0x45ec64(0x1ba)]('\x20\x20'+'─'['repeat'](_0x29b252)+'\x20\x20'+'─'['repeat'](_0x352161)+(_0x288cf0?'\x20\x20'+'─'[_0x45ec64(0x1bc)](_0x352161):''));for(const _0x18f33f of _0x562513){const _0x267085=padRight(_0x18f33f['label'],_0x29b252),_0x22d14f=_0x18f33f['local']?'✓':'✗',_0x381538=padRight(_0x22d14f,_0x352161);let _0x15ba38='\x20\x20'+_0x267085+'\x20\x20'+_0x381538;if(_0x288cf0){const _0x206689=_0x18f33f[_0x45ec64(0x1ca)]?'✓':'✗';_0x15ba38+='\x20\x20'+padRight(_0x206689,_0x352161);}_0x389981['push'](_0x15ba38);}return _0x389981[_0x45ec64(0x1c7)]('\x0a');}export function renderSyncSummary(_0x179ee1,_0x2dd620){const _0xfb9e6d=a97_0x55e8;if(_0x179ee1['length']===0x0)return _0x2dd620?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0xfb9e6d(0x1d5);const _0x242e59=['\x20\x20'+_0x179ee1[_0xfb9e6d(0x1c1)]+_0xfb9e6d(0x1d7)];for(const _0x2c12fe of _0x179ee1){_0x242e59[_0xfb9e6d(0x1ba)]('\x20\x20\x20\x20•\x20'+_0x2c12fe['label']+'\x20('+_0x2c12fe[_0xfb9e6d(0x1b9)]+')');}return _0x242e59[_0xfb9e6d(0x1c7)]('\x0a');}function a97_0x4755(){const _0xc84efe=['\x20\x20\x20\x20JS:\x20\x20','online','\x20\x20\x20\x20CSS:\x20','41027rffpmD','(unchanged)','test','max','17vhLWrL','2430832WrfKbw','55542rSuaTu','174670BeokZq','9295uCgZwP','\x20\x20No\x20pages\x20to\x20sync.','3MPoFUW','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','map','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','path','push','Platform','repeat','Menu\x20Name','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','Local','174eQhRLA','length','63wFOnHR','2370885JbIPCL','showOnline','50780fIaobF','label','join','8868dFvrdP'];a97_0x4755=function(){return _0xc84efe;};return a97_0x4755();}export function renderUpdateSummary(_0x107e8d,_0x4419b5){const _0x102ba1=a97_0x55e8;if(_0x107e8d[_0x102ba1(0x1c1)]===0x0)return _0x102ba1(0x1b8);const _0x9725dd=['\x20\x20'+_0x107e8d[_0x102ba1(0x1c1)]+_0x102ba1(0x1be),_0x102ba1(0x1c9)+(_0x4419b5[0x0]??_0x102ba1(0x1cd)),_0x102ba1(0x1cb)+(_0x4419b5[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x107e8d[_0x102ba1(0x1c7)](',\x20')];return _0x9725dd[_0x102ba1(0x1c7)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x53fbf2,_0x5a1156){var _0x2dea39=a98_0x3ef2,_0x292c6a=_0x53fbf2();while(!![]){try{var _0x37451a=-parseInt(_0x2dea39(0xd1))/0x1*(-parseInt(_0x2dea39(0xd6))/0x2)+-parseInt(_0x2dea39(0xd9))/0x3*(parseInt(_0x2dea39(0xcf))/0x4)+-parseInt(_0x2dea39(0xd8))/0x5*(-parseInt(_0x2dea39(0xdb))/0x6)+-parseInt(_0x2dea39(0xd5))/0x7*(parseInt(_0x2dea39(0xd4))/0x8)+-parseInt(_0x2dea39(0xd7))/0x9+-parseInt(_0x2dea39(0xd0))/0xa*(-parseInt(_0x2dea39(0xd2))/0xb)+parseInt(_0x2dea39(0xda))/0xc*(-parseInt(_0x2dea39(0xd3))/0xd);if(_0x37451a===_0x5a1156)break;else _0x292c6a['push'](_0x292c6a['shift']());}catch(_0x269580){_0x292c6a['push'](_0x292c6a['shift']());}}}(a98_0x179e,0x6d8fc));function a98_0x3ef2(_0x3a1ab2,_0x22cf0c){_0x3a1ab2=_0x3a1ab2-0xcf;var _0x179eb8=a98_0x179e();var _0x3ef292=_0x179eb8[_0x3a1ab2];return _0x3ef292;}export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a98_0x179e(){var _0x217506=['6161518MzAbli','39vgrCXQ','65336gFhOZQ','231jBvulb','171426ywVAUh','6455493kaBllA','34755TrAeWc','21XOSKem','1266036FyixDP','690VMXNFl','167512qaYbpb','10elTeHc','8EhuvLL'];a98_0x179e=function(){return _0x217506;};return a98_0x179e();}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ function a98_0x5950(){var _0x31486a=['85924jffcIj','5065crKzIU','610350tOHmiO','9176216pdDJVi','1093447yLTiSj','9pHKmmw','3253599ObNoYb','6435233OJdSCj','2724fzgYKZ'];a98_0x5950=function(){return _0x31486a;};return a98_0x5950();}(function(_0x363c13,_0x54cd4d){var _0x3e2643=a98_0x2f8a,_0x1000f8=_0x363c13();while(!![]){try{var _0x1d3aa0=-parseInt(_0x3e2643(0x1c3))/0x1+parseInt(_0x3e2643(0x1bf))/0x2+-parseInt(_0x3e2643(0x1c5))/0x3+-parseInt(_0x3e2643(0x1be))/0x4*(-parseInt(_0x3e2643(0x1c0))/0x5)+parseInt(_0x3e2643(0x1c1))/0x6+parseInt(_0x3e2643(0x1bd))/0x7+-parseInt(_0x3e2643(0x1c2))/0x8*(-parseInt(_0x3e2643(0x1c4))/0x9);if(_0x1d3aa0===_0x54cd4d)break;else _0x1000f8['push'](_0x1000f8['shift']());}catch(_0x13ed1c){_0x1000f8['push'](_0x1000f8['shift']());}}}(a98_0x5950,0xb07da));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 a98_0x2f8a(_0x1cd4ee,_0x1f6d68){_0x1cd4ee=_0x1cd4ee-0x1bd;var _0x5950d9=a98_0x5950();var _0x2f8a6c=_0x5950d9[_0x1cd4ee];return _0x2f8a6c;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x4e7cdf,_0x288064){const _0x27e93d=a99_0x41c5,_0x52f783=_0x4e7cdf();while(!![]){try{const _0x4114e8=parseInt(_0x27e93d(0x8f))/0x1+-parseInt(_0x27e93d(0x8d))/0x2+parseInt(_0x27e93d(0x9d))/0x3*(-parseInt(_0x27e93d(0x8e))/0x4)+-parseInt(_0x27e93d(0xb0))/0x5+-parseInt(_0x27e93d(0x88))/0x6+-parseInt(_0x27e93d(0xaa))/0x7*(parseInt(_0x27e93d(0xab))/0x8)+parseInt(_0x27e93d(0x9a))/0x9;if(_0x4114e8===_0x288064)break;else _0x52f783['push'](_0x52f783['shift']());}catch(_0x29566c){_0x52f783['push'](_0x52f783['shift']());}}}(a99_0xcd5a,0x5b033));function a99_0xcd5a(){const _0x438229=['\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','filter','includes','800770qpVOAe','3252WiAhDJ','217131MDYOZw','CSS\x20URL\x20checked','Cancelled.','ExitPromptError','gray','CSS\x20URL\x20check\x20failed','fail','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','label','error','name','19877238iUDRTt','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','red','2391OSgMUg','test','map','cyan','catch','JS\x20URL\x20checked','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','succeed','isTTY','\x20\x20CSS\x20URL:','trim','green','[new]','3934mUYFvh','7432GmbbBM','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','JS\x20URL\x20check\x20failed','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','1629305IGRZZK','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','stdin','939726SxvDRc','has'];a99_0xcd5a=function(){return _0x438229;};return a99_0xcd5a();}import a99_0x42d855 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a99_0x48ca02 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x243293){const _0x216229=a99_0x41c5;return _0x243293[_0x216229(0xa1)](_0x3dc47e=>{const _0x48fefe=_0x216229;if(_0x3dc47e?.[_0x48fefe(0x99)]===_0x48fefe(0x92))throw CliErrors['cancelled'](_0x48fefe(0x91));throw _0x3dc47e;});}export function startSpinner(_0x46f53e){const _0x4f95ea=a99_0x41c5;return a99_0x48ca02({'text':_0x46f53e,'color':_0x4f95ea(0xa0)})['start']();}export function stopSpinner(_0x4454f5,_0xc17a08,_0x368690){const _0x3eafd2=a99_0x41c5;_0x368690?_0x4454f5[_0x3eafd2(0xa4)](_0xc17a08):_0x4454f5[_0x3eafd2(0x95)](_0xc17a08);}function a99_0x41c5(_0x491c2c,_0x3e3a04){_0x491c2c=_0x491c2c-0x87;const _0xcd5ae9=a99_0xcd5a();let _0x41c52e=_0xcd5ae9[_0x491c2c];return _0x41c52e;}export async function askConfirm(_0xb19087){return onCancel(confirm({'message':_0xb19087,'theme':{'prefix':''}}));}export async function askJsUrl(_0x549f49){const _0x2d86df=a99_0x41c5;while(!![]){const _0x665f72=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x549f49,'theme':{'prefix':''}}));if(_0x665f72[_0x2d86df(0xa7)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x665f72['trim']())){console[_0x2d86df(0x98)](a99_0x42d855[_0x2d86df(0x9c)](_0x2d86df(0x96)));continue;}const _0x3232a6=startSpinner(_0x2d86df(0xaf));try{const _0xa0517b=await isUrlReachable(_0x665f72['trim']());stopSpinner(_0x3232a6,_0x2d86df(0xa2),_0xa0517b);if(!_0xa0517b){console[_0x2d86df(0x98)](a99_0x42d855[_0x2d86df(0x9c)](_0x2d86df(0x8a)));continue;}return _0x665f72[_0x2d86df(0xa7)]();}catch(_0x14b0f5){stopSpinner(_0x3232a6,_0x2d86df(0xad),![]);throw _0x14b0f5;}}}export async function askCssUrl(_0x2a8fb9){const _0x32f6b7=a99_0x41c5;while(!![]){const _0x2338c4=await onCancel(input({'message':_0x32f6b7(0xa6),'default':_0x2a8fb9,'theme':{'prefix':''}}));if(_0x2338c4['trim']()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x32f6b7(0x9e)](_0x2338c4[_0x32f6b7(0xa7)]())){console[_0x32f6b7(0x98)](a99_0x42d855['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2209b2=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x2aa55a=await isUrlReachable(_0x2338c4[_0x32f6b7(0xa7)]());stopSpinner(_0x2209b2,_0x32f6b7(0x90),_0x2aa55a);if(!_0x2aa55a){console[_0x32f6b7(0x98)](a99_0x42d855[_0x32f6b7(0x9c)](_0x32f6b7(0xb1)));continue;}return _0x2338c4[_0x32f6b7(0xa7)]();}catch(_0x3b0318){stopSpinner(_0x2209b2,_0x32f6b7(0x94),![]);throw _0x3b0318;}}}export async function selectPages(_0x394b09,_0x5a2f2c,_0x3a452e){const _0x55c729=a99_0x41c5,_0x4554c6=_0x394b09[_0x55c729(0x9f)](_0x46c128=>({'name':_0x46c128[_0x55c729(0x97)]+'\x20\x20'+(_0x5a2f2c[_0x55c729(0x89)](_0x46c128[_0x55c729(0xae)])?a99_0x42d855[_0x55c729(0x93)]('[already\x20on\x20platform]'):a99_0x42d855[_0x55c729(0xa8)](_0x55c729(0xa9))),'value':_0x46c128['label'],'checked':_0x3a452e?_0x3a452e[_0x55c729(0x8c)](_0x46c128[_0x55c729(0x97)]):!_0x5a2f2c[_0x55c729(0x89)](_0x46c128['path'])}));if(_0x4554c6['length']===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0xb647b1=await onCancel(checkbox({'message':_0x55c729(0xa3),'choices':_0x4554c6,'loop':![],'theme':{'prefix':''}}));if(_0xb647b1['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x394b09[_0x55c729(0x8b)](_0x316a80=>_0xb647b1[_0x55c729(0x8c)](_0x316a80['label']));}export function isInteractive(){const _0x405654=a99_0x41c5;return process[_0x405654(0x87)][_0x405654(0xa5)]===!![];}export function requireInteractive(){const _0x4e23d6=a99_0x41c5;if(!isInteractive())throw new Error(_0x4e23d6(0xac)+_0x4e23d6(0x9b));}
1
+ (function(_0x38e861,_0x26ed41){const _0x561a40=a99_0x4ccc,_0xc74566=_0x38e861();while(!![]){try{const _0x211ff7=-parseInt(_0x561a40(0x1da))/0x1*(-parseInt(_0x561a40(0x1f8))/0x2)+parseInt(_0x561a40(0x1cf))/0x3+parseInt(_0x561a40(0x1ec))/0x4*(parseInt(_0x561a40(0x1e5))/0x5)+parseInt(_0x561a40(0x1fa))/0x6*(parseInt(_0x561a40(0x1e0))/0x7)+parseInt(_0x561a40(0x1e1))/0x8*(-parseInt(_0x561a40(0x1dc))/0x9)+parseInt(_0x561a40(0x1d3))/0xa+parseInt(_0x561a40(0x1cd))/0xb*(-parseInt(_0x561a40(0x1ea))/0xc);if(_0x211ff7===_0x26ed41)break;else _0xc74566['push'](_0xc74566['shift']());}catch(_0xe40899){_0xc74566['push'](_0xc74566['shift']());}}}(a99_0x239a,0x4ca77));import a99_0x3a29a9 from'chalk';function a99_0x239a(){const _0x2b0ceb=['red','has','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','stdin','\x20\x20Checking\x20JS\x20URL\x20reachability...','6EXvRcp','[new]','55032VEnxbh','trim','6717029ouvboP','succeed','1038783cKKPBw','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','No\x20local\x20pages\x20found.','CSS\x20URL\x20check\x20failed','78070juaedW','Cancelled.','catch','label','CSS\x20URL\x20checked','error','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','160523eAuqUj','cancelled','1124181tVvszF','No\x20menus\x20selected.','path','[already\x20on\x20platform]','196PRzJkZ','40rYWyfc','fail','filter','green','1141765WMDmCJ','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','includes','length','12Fnaeuf','test','8WroMlA','isTTY','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20JS\x20URL:','gray','name','JS\x20URL\x20checked'];a99_0x239a=function(){return _0x2b0ceb;};return a99_0x239a();}import{checkbox,input,confirm}from'@inquirer/prompts';import a99_0x328c8a from'ora';function a99_0x4ccc(_0x896897,_0x485525){_0x896897=_0x896897-0x1cc;const _0x239a13=a99_0x239a();let _0x4cccb3=_0x239a13[_0x896897];return _0x4cccb3;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x37a0d5){const _0x501010=a99_0x4ccc;return _0x37a0d5[_0x501010(0x1d5)](_0x4786cd=>{const _0x2dd6a1=_0x501010;if(_0x4786cd?.[_0x2dd6a1(0x1f1)]==='ExitPromptError')throw CliErrors[_0x2dd6a1(0x1db)](_0x2dd6a1(0x1d4));throw _0x4786cd;});}export function startSpinner(_0x58cf3e){return a99_0x328c8a({'text':_0x58cf3e,'color':'cyan'})['start']();}export function stopSpinner(_0x2f9889,_0x4eb25e,_0x559506){const _0x4889a7=a99_0x4ccc;_0x559506?_0x2f9889[_0x4889a7(0x1ce)](_0x4eb25e):_0x2f9889[_0x4889a7(0x1e2)](_0x4eb25e);}export async function askConfirm(_0x3d211b){return onCancel(confirm({'message':_0x3d211b,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5ee5f4){const _0x597c48=a99_0x4ccc;while(!![]){const _0x2ff571=await onCancel(input({'message':_0x597c48(0x1ef),'default':_0x5ee5f4,'theme':{'prefix':''}}));if(_0x2ff571[_0x597c48(0x1cc)]()==='')throw CliErrors[_0x597c48(0x1db)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x597c48(0x1eb)](_0x2ff571[_0x597c48(0x1cc)]())){console[_0x597c48(0x1d8)](a99_0x3a29a9[_0x597c48(0x1f3)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x262ddd=startSpinner(_0x597c48(0x1f7));try{const _0x43f2a1=await isUrlReachable(_0x2ff571[_0x597c48(0x1cc)]());stopSpinner(_0x262ddd,_0x597c48(0x1f2),_0x43f2a1);if(!_0x43f2a1){console[_0x597c48(0x1d8)](a99_0x3a29a9[_0x597c48(0x1f3)](_0x597c48(0x1f5)));continue;}return _0x2ff571['trim']();}catch(_0x524074){stopSpinner(_0x262ddd,'JS\x20URL\x20check\x20failed',![]);throw _0x524074;}}}export async function askCssUrl(_0x473854){const _0x25a499=a99_0x4ccc;while(!![]){const _0x51432d=await onCancel(input({'message':_0x25a499(0x1e7),'default':_0x473854,'theme':{'prefix':''}}));if(_0x51432d[_0x25a499(0x1cc)]()==='')throw CliErrors[_0x25a499(0x1db)](_0x25a499(0x1d4));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x25a499(0x1eb)](_0x51432d[_0x25a499(0x1cc)]())){console[_0x25a499(0x1d8)](a99_0x3a29a9[_0x25a499(0x1f3)](_0x25a499(0x1d0)));continue;}const _0x2ce80e=startSpinner(_0x25a499(0x1ee));try{const _0x35eed7=await isUrlReachable(_0x51432d[_0x25a499(0x1cc)]());stopSpinner(_0x2ce80e,_0x25a499(0x1d7),_0x35eed7);if(!_0x35eed7){console[_0x25a499(0x1d8)](a99_0x3a29a9['red'](_0x25a499(0x1e6)));continue;}return _0x51432d['trim']();}catch(_0x8f911a){stopSpinner(_0x2ce80e,_0x25a499(0x1d2),![]);throw _0x8f911a;}}}export async function selectPages(_0x543b5a,_0x473187,_0x221718){const _0x14fae2=a99_0x4ccc,_0x460181=_0x543b5a['map'](_0x5dcafa=>({'name':_0x5dcafa[_0x14fae2(0x1d6)]+'\x20\x20'+(_0x473187[_0x14fae2(0x1f4)](_0x5dcafa[_0x14fae2(0x1de)])?a99_0x3a29a9[_0x14fae2(0x1f0)](_0x14fae2(0x1df)):a99_0x3a29a9[_0x14fae2(0x1e4)](_0x14fae2(0x1f9))),'value':_0x5dcafa[_0x14fae2(0x1d6)],'checked':_0x221718?_0x221718[_0x14fae2(0x1e8)](_0x5dcafa[_0x14fae2(0x1d6)]):!_0x473187[_0x14fae2(0x1f4)](_0x5dcafa[_0x14fae2(0x1de)])}));if(_0x460181['length']===0x0)throw new Error(_0x14fae2(0x1d1));const _0x1b026a=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x460181,'loop':![],'theme':{'prefix':''}}));if(_0x1b026a[_0x14fae2(0x1e9)]===0x0)throw new Error(_0x14fae2(0x1dd));return _0x543b5a[_0x14fae2(0x1e3)](_0x25f347=>_0x1b026a[_0x14fae2(0x1e8)](_0x25f347[_0x14fae2(0x1d6)]));}export function isInteractive(){const _0x204fd6=a99_0x4ccc;return process[_0x204fd6(0x1f6)][_0x204fd6(0x1ed)]===!![];}export function requireInteractive(){const _0x117f86=a99_0x4ccc;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x117f86(0x1d9));}
@@ -1 +1 @@
1
- const a100_0x14d096=a100_0x68dc;(function(_0x5dd470,_0xa1c7df){const _0x379a1b=a100_0x68dc,_0x357da3=_0x5dd470();while(!![]){try{const _0x26a1e8=parseInt(_0x379a1b(0x6f))/0x1*(parseInt(_0x379a1b(0x77))/0x2)+-parseInt(_0x379a1b(0x74))/0x3+-parseInt(_0x379a1b(0x7a))/0x4*(parseInt(_0x379a1b(0x68))/0x5)+-parseInt(_0x379a1b(0x72))/0x6*(parseInt(_0x379a1b(0x6e))/0x7)+-parseInt(_0x379a1b(0x7f))/0x8+-parseInt(_0x379a1b(0x7d))/0x9+parseInt(_0x379a1b(0x71))/0xa;if(_0x26a1e8===_0xa1c7df)break;else _0x357da3['push'](_0x357da3['shift']());}catch(_0x271380){_0x357da3['push'](_0x357da3['shift']());}}}(a100_0xb5e4,0xee923));function a100_0xb5e4(){const _0x2f090b=['match','61134000beoQfy','60vWdWMx','join','5152173tbwoFD','split','slice','4HhFsAu','endsWith','concat','4jPhwyz','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','2513682ZvuENM','cwd','12322360YJGmuc','9377365rusfQG','isDirectory','replaceAll','path','forEach','push','922061jXlicS','796737iVQtLy'];a100_0xb5e4=function(){return _0x2f090b;};return a100_0xb5e4();}function a100_0x68dc(_0x39109c,_0x1becec){_0x39109c=_0x39109c-0x68;const _0xb5e4de=a100_0xb5e4();let _0x68dc5d=_0xb5e4de[_0x39109c];return _0x68dc5d;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a100_0x14d096(0x7e)](),'src/pages');export function extractTitleFromComment(_0x19e791){const _0x1eb6e0=a100_0x14d096;try{const _0x297c77=readFileSync(_0x19e791,'utf-8'),_0x220dd9=_0x297c77[_0x1eb6e0(0x70)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x220dd9&&_0x220dd9[0x1]){const _0x3187bf=_0x220dd9[0x1],_0x33c66e=_0x3187bf[_0x1eb6e0(0x70)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x33c66e&&_0x33c66e[0x1])return _0x33c66e[0x1]['trim']();}let _0x33555a=null;const _0x31c62a=_0x297c77[_0x1eb6e0(0x70)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x31c62a&&_0x31c62a[0x1]&&(_0x33555a=_0x31c62a[0x1]);if(!_0x33555a){const _0x4406cb=_0x297c77[_0x1eb6e0(0x70)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x4406cb&&_0x4406cb[0x1]&&(_0x33555a=_0x4406cb[0x1]);}if(_0x33555a){const _0x2b5f12=new RegExp('\x5cb'+_0x33555a+_0x1eb6e0(0x7b)),_0x58be1f=_0x297c77[_0x1eb6e0(0x70)](_0x2b5f12);if(_0x58be1f&&_0x58be1f[0x1])return _0x58be1f[0x1];return _0x33555a;}return null;}catch(_0x5c814d){return null;}}export function getLocalPages(_0x3915d5=pagesDir,_0x2cbc5b=pagesDir){const _0x54d5b7=a100_0x14d096;let _0x1ce089=[];const _0x3acab1=readdirSync(_0x3915d5);return _0x3acab1[_0x54d5b7(0x6c)](_0x135dcd=>{const _0x57de50=_0x54d5b7,_0x421c5b=join(_0x3915d5,_0x135dcd),_0x572947=statSync(_0x421c5b);if(_0x572947&&_0x572947[_0x57de50(0x69)]())_0x1ce089=_0x1ce089[_0x57de50(0x79)](getLocalPages(_0x421c5b,_0x2cbc5b));else{if(_0x135dcd['endsWith']('.tsx')){let _0x200afe=relative(_0x2cbc5b,_0x421c5b);_0x200afe['endsWith']('index.tsx')?_0x200afe=_0x200afe[_0x57de50(0x7c)](/index\.tsx$/,''):_0x200afe=_0x200afe['replace'](/\.tsx$/,'');_0x200afe[_0x57de50(0x78)](sep)&&(_0x200afe=_0x200afe[_0x57de50(0x76)](0x0,-0x1));const _0xffcff3=_0x200afe[_0x57de50(0x75)](sep)[_0x57de50(0x73)]('/'),_0xc604f0=extractTitleFromComment(_0x421c5b),_0x2ddc77=_0xc604f0||_0xffcff3;_0x1ce089[_0x57de50(0x6d)]({'path':_0xffcff3[_0x57de50(0x6a)]('$',':'),'label':_0x2ddc77});}}}),_0x1ce089['filter'](_0x5f4f2c=>_0x5f4f2c[_0x54d5b7(0x6b)]!=='');}
1
+ const a100_0x4163a6=a100_0x128c;(function(_0x72e0d4,_0x8be0){const _0x1b063b=a100_0x128c,_0x2519e9=_0x72e0d4();while(!![]){try{const _0x25c1ff=-parseInt(_0x1b063b(0x19f))/0x1*(parseInt(_0x1b063b(0x199))/0x2)+parseInt(_0x1b063b(0x19b))/0x3*(-parseInt(_0x1b063b(0x194))/0x4)+parseInt(_0x1b063b(0x18d))/0x5*(-parseInt(_0x1b063b(0x196))/0x6)+-parseInt(_0x1b063b(0x1a8))/0x7*(parseInt(_0x1b063b(0x1a1))/0x8)+parseInt(_0x1b063b(0x192))/0x9*(-parseInt(_0x1b063b(0x193))/0xa)+parseInt(_0x1b063b(0x19c))/0xb*(parseInt(_0x1b063b(0x1a3))/0xc)+parseInt(_0x1b063b(0x19e))/0xd;if(_0x25c1ff===_0x8be0)break;else _0x2519e9['push'](_0x2519e9['shift']());}catch(_0x5d85ff){_0x2519e9['push'](_0x2519e9['shift']());}}}(a100_0x30dd,0x86e4e));import{readdirSync,statSync,readFileSync}from'fs';function a100_0x128c(_0xd500c1,_0x458d09){_0xd500c1=_0xd500c1-0x18d;const _0x30ddc9=a100_0x30dd();let _0x128c17=_0x30ddc9[_0xd500c1];return _0x128c17;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a100_0x4163a6(0x1a4)](),a100_0x4163a6(0x1a2));function a100_0x30dd(){const _0xd053c6=['trim','split','5MOTOoK','path','index.tsx','replaceAll','slice','27pelVlH','2782190vlSuEx','982672zCNcew','concat','1275306vqdSVY','match','join','131754fqxZBo','isDirectory','6lFYVJH','11640739iiQzjs','utf-8','32067399PXthIr','6nOayzQ','endsWith','4154560squYFx','src/pages','12NuHJMJ','cwd','replace','forEach','filter','14DANHIt'];a100_0x30dd=function(){return _0xd053c6;};return a100_0x30dd();}export function extractTitleFromComment(_0x48584e){const _0x5c6236=a100_0x4163a6;try{const _0x450f97=readFileSync(_0x48584e,_0x5c6236(0x19d)),_0x493c36=_0x450f97[_0x5c6236(0x197)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x493c36&&_0x493c36[0x1]){const _0x23c6a7=_0x493c36[0x1],_0x3a3d4e=_0x23c6a7['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3a3d4e&&_0x3a3d4e[0x1])return _0x3a3d4e[0x1][_0x5c6236(0x1a9)]();}let _0x2ae480=null;const _0x4ac802=_0x450f97[_0x5c6236(0x197)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4ac802&&_0x4ac802[0x1]&&(_0x2ae480=_0x4ac802[0x1]);if(!_0x2ae480){const _0x366052=_0x450f97['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x366052&&_0x366052[0x1]&&(_0x2ae480=_0x366052[0x1]);}if(_0x2ae480){const _0x527611=new RegExp('\x5cb'+_0x2ae480+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x3dabe5=_0x450f97[_0x5c6236(0x197)](_0x527611);if(_0x3dabe5&&_0x3dabe5[0x1])return _0x3dabe5[0x1];return _0x2ae480;}return null;}catch(_0x1c31f5){return null;}}export function getLocalPages(_0x3537ed=pagesDir,_0x319d95=pagesDir){const _0x34294c=a100_0x4163a6;let _0x2af363=[];const _0x3cf2e5=readdirSync(_0x3537ed);return _0x3cf2e5[_0x34294c(0x1a6)](_0x280a52=>{const _0x54f317=_0x34294c,_0x39bb3f=join(_0x3537ed,_0x280a52),_0x222ebf=statSync(_0x39bb3f);if(_0x222ebf&&_0x222ebf[_0x54f317(0x19a)]())_0x2af363=_0x2af363[_0x54f317(0x195)](getLocalPages(_0x39bb3f,_0x319d95));else{if(_0x280a52[_0x54f317(0x1a0)]('.tsx')){let _0x5b79ed=relative(_0x319d95,_0x39bb3f);_0x5b79ed[_0x54f317(0x1a0)](_0x54f317(0x18f))?_0x5b79ed=_0x5b79ed[_0x54f317(0x1a5)](/index\.tsx$/,''):_0x5b79ed=_0x5b79ed[_0x54f317(0x1a5)](/\.tsx$/,'');_0x5b79ed[_0x54f317(0x1a0)](sep)&&(_0x5b79ed=_0x5b79ed[_0x54f317(0x191)](0x0,-0x1));const _0x34b400=_0x5b79ed[_0x54f317(0x1aa)](sep)[_0x54f317(0x198)]('/'),_0x1e56bc=extractTitleFromComment(_0x39bb3f),_0x24484b=_0x1e56bc||_0x34b400;_0x2af363['push']({'path':_0x34b400[_0x54f317(0x190)]('$',':'),'label':_0x24484b});}}}),_0x2af363[_0x34294c(0x1a7)](_0x3d1f69=>_0x3d1f69[_0x34294c(0x18e)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3bdb52,_0xb44c46){const _0x17695d=a101_0x27b8,_0x471335=_0x3bdb52();while(!![]){try{const _0x434486=parseInt(_0x17695d(0x9a))/0x1*(parseInt(_0x17695d(0xa3))/0x2)+parseInt(_0x17695d(0x8f))/0x3+-parseInt(_0x17695d(0x92))/0x4*(parseInt(_0x17695d(0xa5))/0x5)+parseInt(_0x17695d(0x9c))/0x6+-parseInt(_0x17695d(0x94))/0x7*(-parseInt(_0x17695d(0x91))/0x8)+parseInt(_0x17695d(0xa9))/0x9*(-parseInt(_0x17695d(0x9b))/0xa)+parseInt(_0x17695d(0x90))/0xb*(-parseInt(_0x17695d(0x9d))/0xc);if(_0x434486===_0xb44c46)break;else _0x471335['push'](_0x471335['shift']());}catch(_0x3b52ef){_0x471335['push'](_0x471335['shift']());}}}(a101_0x1e32,0x23cde));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(_0x53ef29){const _0x23686b=a101_0x27b8,_0x3b7af8=[];return!isValidJsHttpsUrl(_0x53ef29)&&_0x3b7af8['push'](_0x23686b(0x9e)),{'ok':_0x3b7af8[_0x23686b(0xa7)]===0x0,'errors':_0x3b7af8};}export function validateCssUrl(_0x5da9b7){const _0x2e31fc=a101_0x27b8,_0x1e3126=[];return!isValidCssHttpsUrl(_0x5da9b7)&&_0x1e3126[_0x2e31fc(0xaa)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x1e3126['length']===0x0,'errors':_0x1e3126};}export async function validateJsUrlReachable(_0x58c2e2){const _0x121aca=a101_0x27b8,_0x562462=validateJsUrl(_0x58c2e2);if(!_0x562462['ok'])return _0x562462;const _0x4a6424=await isUrlReachable(_0x58c2e2);if(!_0x4a6424)_0x562462[_0x121aca(0x8d)][_0x121aca(0xaa)](_0x121aca(0x9f));return{'ok':_0x562462['errors'][_0x121aca(0xa7)]===0x0,'errors':_0x562462[_0x121aca(0x8d)]};}export async function validateCssUrlReachable(_0x36a216){const _0x23e8e0=a101_0x27b8,_0xf262df=validateCssUrl(_0x36a216);if(!_0xf262df['ok'])return _0xf262df;const _0x24c26f=await isUrlReachable(_0x36a216);if(!_0x24c26f)_0xf262df[_0x23e8e0(0x8d)][_0x23e8e0(0xaa)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0xf262df[_0x23e8e0(0x8d)]['length']===0x0,'errors':_0xf262df[_0x23e8e0(0x8d)]};}export function buildCompareRows(_0x281b9e,_0xc45a14){const _0x561928=a101_0x27b8;return _0x281b9e[_0x561928(0x95)](_0x519640=>({'label':_0x519640[_0x561928(0x8c)],'path':_0x519640[_0x561928(0xa2)],'local':!![],'online':_0xc45a14[_0x561928(0xa1)](_0x519640['path'])}));}function a101_0x27b8(_0x956ffc,_0x270561){_0x956ffc=_0x956ffc-0x8c;const _0x1e32c4=a101_0x1e32();let _0x27b827=_0x1e32c4[_0x956ffc];return _0x27b827;}export function filterNewPages(_0x526a68,_0x24a6c7,_0x503762){const _0x4b4689=a101_0x27b8;if(_0x503762&&_0x503762[_0x4b4689(0xa7)]>0x0){const _0x5e5799=new Set(_0x503762[_0x4b4689(0x95)](_0x4e5378=>_0x4e5378['trim']())),_0x5a00be=_0x526a68[_0x4b4689(0xa6)](_0x4924d0=>_0x5e5799[_0x4b4689(0xa1)](_0x4924d0[_0x4b4689(0x8c)]));if(_0x5a00be[_0x4b4689(0xa7)]===0x0)throw new Error(_0x4b4689(0x8e)+[..._0x5e5799][_0x4b4689(0xa8)](',\x20'));return _0x5a00be;}return _0x526a68[_0x4b4689(0xa6)](_0x2db29a=>!_0x24a6c7[_0x4b4689(0xa1)](_0x2db29a[_0x4b4689(0xa2)]));}export function filterPagesByLabels(_0x5e0405,_0x1ffe8f){const _0x2c0f57=a101_0x27b8,_0x196f1c=[],_0x4f268f=[];for(const _0x88fe67 of _0x1ffe8f){const _0x53a72b=_0x88fe67[_0x2c0f57(0x98)](),_0x1c8abd=_0x5e0405[_0x2c0f57(0x93)](_0x18b4b4=>_0x18b4b4[_0x2c0f57(0x8c)]===_0x53a72b);if(_0x1c8abd)_0x196f1c[_0x2c0f57(0xaa)](_0x1c8abd);else _0x4f268f[_0x2c0f57(0xaa)](_0x88fe67);}return{'matched':_0x196f1c,'unmatched':_0x4f268f};}export async function doCreateMenus(_0x35c53d,_0x3d7e15,_0x403c21,_0x43190f){const _0x32dd23=a101_0x27b8,_0x42f14d=await createMenus(_0x35c53d,_0x3d7e15,_0x403c21,_0x43190f);return{'created':_0x42f14d[_0x32dd23(0xa7)],'failed':0x0,'labels':_0x403c21[_0x32dd23(0x95)](_0x54b469=>_0x54b469[_0x32dd23(0x8c)]),'menus':_0x42f14d};}export function filterMenusWithResources(_0x58a008){const _0x27aaf3=a101_0x27b8;return _0x58a008['filter'](_0x40db13=>_0x40db13[_0x27aaf3(0x99)][_0x27aaf3(0xa7)]>0x0);}export async function doUpdateCdnUrls(_0x5afcee,_0x5667f2,_0x5d1538,_0xe31b54){const _0x298dd6=a101_0x27b8,_0x217835=_0x5d1538[_0x298dd6(0xa6)](_0x1af0de=>_0x1af0de[_0x298dd6(0x99)][_0x298dd6(0xa7)]>0x0),_0x17a998=await Promise[_0x298dd6(0x96)](_0x217835['map'](_0x209dc0=>updateMenuCdnUrl(_0x5afcee,_0x5667f2,{'id':_0x209dc0['id'],'label':_0x209dc0['label'],'path':_0x209dc0['path'],'resources':_0xe31b54,'extend':_0x209dc0['extend']??null}))),_0x59fd00=_0x17a998[_0x298dd6(0xa6)](_0x40c824=>_0x40c824[_0x298dd6(0xa0)]===_0x298dd6(0x97))['map'](_0x35f410=>_0x35f410['value']),_0x31508f=_0x17a998['filter'](_0x391bb1=>_0x391bb1[_0x298dd6(0xa0)]===_0x298dd6(0xa4))[_0x298dd6(0xa7)];return{'updated':_0x59fd00['length'],'failed':_0x31508f,'menus':_0x59fd00};}function a101_0x1e32(){const _0x174dcf=['12CuZtLW','rejected','135325nDVOOe','filter','length','join','1352214acpUek','push','label','errors','No\x20local\x20pages\x20matched\x20labels:\x20','547449UDscNI','2408659PqxKhN','8Ebolxn','16vRpJdy','find','1216691KBszmY','map','allSettled','fulfilled','trim','resources','34424idUiKR','10XhapNS','367734dMQmEe','12mFNWiw','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','JS\x20URL\x20is\x20unreachable','status','has','path'];a101_0x1e32=function(){return _0x174dcf;};return a101_0x1e32();}export async function fetchMenuData(_0x149837,_0x40f2af){const _0x482c2d=a101_0x27b8,_0x5459a7=getLocalPages(),_0x1bd27e=await getOnlineMenuList(_0x149837,_0x40f2af),_0x2ceb12=new Set(_0x1bd27e[_0x482c2d(0x95)](_0x25fcbc=>_0x25fcbc[_0x482c2d(0xa2)]));return{'localPages':_0x5459a7,'onlineMenuList':_0x1bd27e,'onlinePaths':_0x2ceb12};}export async function fetchOnlineMenuList(_0x29c58e,_0x757d22){return getOnlineMenuList(_0x29c58e,_0x757d22);}
1
+ (function(_0x2fc278,_0x54bc47){const _0x505a90=a101_0x1128,_0x3d50d9=_0x2fc278();while(!![]){try{const _0x4739df=-parseInt(_0x505a90(0x17f))/0x1*(-parseInt(_0x505a90(0x182))/0x2)+parseInt(_0x505a90(0x192))/0x3*(-parseInt(_0x505a90(0x17b))/0x4)+parseInt(_0x505a90(0x184))/0x5+parseInt(_0x505a90(0x194))/0x6+parseInt(_0x505a90(0x183))/0x7*(parseInt(_0x505a90(0x193))/0x8)+-parseInt(_0x505a90(0x18c))/0x9+parseInt(_0x505a90(0x187))/0xa;if(_0x4739df===_0x54bc47)break;else _0x3d50d9['push'](_0x3d50d9['shift']());}catch(_0x402956){_0x3d50d9['push'](_0x3d50d9['shift']());}}}(a101_0x2cfb,0xd4d13));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(_0xa8c416){const _0x5ee8ac=a101_0x1128,_0x1d4bd4=[];return!isValidJsHttpsUrl(_0xa8c416)&&_0x1d4bd4['push'](_0x5ee8ac(0x17d)),{'ok':_0x1d4bd4[_0x5ee8ac(0x18b)]===0x0,'errors':_0x1d4bd4};}function a101_0x2cfb(){const _0x467581=['434NzQuEa','458640Pqnlvi','errors','JS\x20URL\x20is\x20unreachable','11310990CJhepk','trim','rejected','No\x20local\x20pages\x20matched\x20labels:\x20','length','5847111peQCPC','resources','status','map','find','label','12YiEHDq','13776fdCAJf','3332820JdgOqD','has','CSS\x20URL\x20is\x20unreachable','path','907436dWINOq','value','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','push','49VcNxAm','fulfilled','filter','22194LeOxxw'];a101_0x2cfb=function(){return _0x467581;};return a101_0x2cfb();}export function validateCssUrl(_0x256b3f){const _0x4ff878=a101_0x1128,_0x2c7232=[];return!isValidCssHttpsUrl(_0x256b3f)&&_0x2c7232[_0x4ff878(0x17e)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x2c7232[_0x4ff878(0x18b)]===0x0,'errors':_0x2c7232};}export async function validateJsUrlReachable(_0x298dda){const _0x2a7124=a101_0x1128,_0x5361dc=validateJsUrl(_0x298dda);if(!_0x5361dc['ok'])return _0x5361dc;const _0x1942fb=await isUrlReachable(_0x298dda);if(!_0x1942fb)_0x5361dc[_0x2a7124(0x185)][_0x2a7124(0x17e)](_0x2a7124(0x186));return{'ok':_0x5361dc[_0x2a7124(0x185)][_0x2a7124(0x18b)]===0x0,'errors':_0x5361dc['errors']};}export async function validateCssUrlReachable(_0x5cf63b){const _0x53f687=a101_0x1128,_0x4ec2a8=validateCssUrl(_0x5cf63b);if(!_0x4ec2a8['ok'])return _0x4ec2a8;const _0x30ccf2=await isUrlReachable(_0x5cf63b);if(!_0x30ccf2)_0x4ec2a8['errors'][_0x53f687(0x17e)](_0x53f687(0x179));return{'ok':_0x4ec2a8[_0x53f687(0x185)]['length']===0x0,'errors':_0x4ec2a8['errors']};}export function buildCompareRows(_0x2f460b,_0x25e0b7){const _0x2628fc=a101_0x1128;return _0x2f460b[_0x2628fc(0x18f)](_0x4f8b2f=>({'label':_0x4f8b2f[_0x2628fc(0x191)],'path':_0x4f8b2f['path'],'local':!![],'online':_0x25e0b7['has'](_0x4f8b2f[_0x2628fc(0x17a)])}));}export function filterNewPages(_0x43b7f9,_0xd4739c,_0xb03a1a){const _0x236cec=a101_0x1128;if(_0xb03a1a&&_0xb03a1a[_0x236cec(0x18b)]>0x0){const _0x18ee6e=new Set(_0xb03a1a[_0x236cec(0x18f)](_0x154730=>_0x154730[_0x236cec(0x188)]())),_0x4992a4=_0x43b7f9[_0x236cec(0x181)](_0x40d23f=>_0x18ee6e['has'](_0x40d23f[_0x236cec(0x191)]));if(_0x4992a4[_0x236cec(0x18b)]===0x0)throw new Error(_0x236cec(0x18a)+[..._0x18ee6e]['join'](',\x20'));return _0x4992a4;}return _0x43b7f9[_0x236cec(0x181)](_0x13e86a=>!_0xd4739c[_0x236cec(0x178)](_0x13e86a[_0x236cec(0x17a)]));}export function filterPagesByLabels(_0x137832,_0x16cf05){const _0x3a43d6=a101_0x1128,_0x43ab24=[],_0x36fe57=[];for(const _0x3228bd of _0x16cf05){const _0x53f9d8=_0x3228bd[_0x3a43d6(0x188)](),_0x3aa776=_0x137832[_0x3a43d6(0x190)](_0x473b9d=>_0x473b9d[_0x3a43d6(0x191)]===_0x53f9d8);if(_0x3aa776)_0x43ab24[_0x3a43d6(0x17e)](_0x3aa776);else _0x36fe57['push'](_0x3228bd);}return{'matched':_0x43ab24,'unmatched':_0x36fe57};}export async function doCreateMenus(_0x1457e9,_0x17a195,_0x2e946a,_0x1451c2){const _0x115c46=a101_0x1128,_0x40025c=await createMenus(_0x1457e9,_0x17a195,_0x2e946a,_0x1451c2);return{'created':_0x40025c[_0x115c46(0x18b)],'failed':0x0,'labels':_0x2e946a[_0x115c46(0x18f)](_0x1a1fce=>_0x1a1fce[_0x115c46(0x191)]),'menus':_0x40025c};}export function filterMenusWithResources(_0x48ce95){const _0x390b74=a101_0x1128;return _0x48ce95[_0x390b74(0x181)](_0x4679fe=>_0x4679fe[_0x390b74(0x18d)][_0x390b74(0x18b)]>0x0);}export async function doUpdateCdnUrls(_0x440f77,_0x3c1674,_0x25a5b1,_0x247923){const _0x4c93db=a101_0x1128,_0x2d34d7=_0x25a5b1['filter'](_0x399290=>_0x399290[_0x4c93db(0x18d)]['length']>0x0),_0x11f39c=await Promise['allSettled'](_0x2d34d7[_0x4c93db(0x18f)](_0x52b0a7=>updateMenuCdnUrl(_0x440f77,_0x3c1674,{'id':_0x52b0a7['id'],'label':_0x52b0a7[_0x4c93db(0x191)],'path':_0x52b0a7['path'],'resources':_0x247923,'extend':_0x52b0a7['extend']??null}))),_0x1c3ac9=_0x11f39c[_0x4c93db(0x181)](_0x5c1f5c=>_0x5c1f5c[_0x4c93db(0x18e)]===_0x4c93db(0x180))['map'](_0x77b50c=>_0x77b50c[_0x4c93db(0x17c)]),_0x28a30f=_0x11f39c[_0x4c93db(0x181)](_0x29daab=>_0x29daab[_0x4c93db(0x18e)]===_0x4c93db(0x189))['length'];return{'updated':_0x1c3ac9[_0x4c93db(0x18b)],'failed':_0x28a30f,'menus':_0x1c3ac9};}function a101_0x1128(_0x287b1d,_0x166ccc){_0x287b1d=_0x287b1d-0x178;const _0x2cfb49=a101_0x2cfb();let _0x1128b7=_0x2cfb49[_0x287b1d];return _0x1128b7;}export async function fetchMenuData(_0x8df9e0,_0x1db956){const _0x5b09d1=a101_0x1128,_0x3afd64=getLocalPages(),_0x53d4b9=await getOnlineMenuList(_0x8df9e0,_0x1db956),_0x46a5c2=new Set(_0x53d4b9[_0x5b09d1(0x18f)](_0x2c5803=>_0x2c5803['path']));return{'localPages':_0x3afd64,'onlineMenuList':_0x53d4b9,'onlinePaths':_0x46a5c2};}export async function fetchOnlineMenuList(_0x356704,_0x349a70){return getOnlineMenuList(_0x356704,_0x349a70);}