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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0x32f7f5=a88_0x1561;(function(_0xb3816c,_0x27302c){const _0xf8e671=a88_0x1561,_0x3d177d=_0xb3816c();while(!![]){try{const _0x501bb9=parseInt(_0xf8e671(0xf2))/0x1*(parseInt(_0xf8e671(0x125))/0x2)+parseInt(_0xf8e671(0x134))/0x3*(parseInt(_0xf8e671(0x122))/0x4)+parseInt(_0xf8e671(0x11f))/0x5*(parseInt(_0xf8e671(0xf0))/0x6)+parseInt(_0xf8e671(0x132))/0x7+parseInt(_0xf8e671(0xf6))/0x8*(-parseInt(_0xf8e671(0x11b))/0x9)+parseInt(_0xf8e671(0x13a))/0xa+-parseInt(_0xf8e671(0x11e))/0xb;if(_0x501bb9===_0x27302c)break;else _0x3d177d['push'](_0x3d177d['shift']());}catch(_0x4f6e7d){_0x3d177d['push'](_0x3d177d['shift']());}}}(a88_0x4099,0xe7187));import a88_0x39a32e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a88_0x1561(_0x1560ee,_0x150c87){_0x1560ee=_0x1560ee-0xe8;const _0x40999d=a88_0x4099();let _0x156148=_0x40999d[_0x1560ee];return _0x156148;}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a88_0x4099(){const _0xcf10b7=['(default:\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','riskLevel','9JzQafM','(default)','✓\x20Valid','29903566FAqxhe','45GvEepx','padEnd','currentApp','5937572pKZGOU','\x20doctor','\x20(default)','144uiQjHO','⚠\x20Empty\x20(treated\x20as\x20{})','check','✗\x20Not\x20logged\x20in','\x20\x20─','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','(set,\x20length=','red','log','\x20\x20Auth','(missing)','gray','5004048PYdGmN','raw','3DOjoqx','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','11412550CxBxJT','✓\x20Valid\x20JSON','length','value','keys','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Project','✗\x20Invalid\x20JSON','arch','appcode','version','✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20Config\x20JSON','711966xZKUry','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','6304KNCJNA','pageSize','(set\x20via\x20file,\x20length=','apps','9578208RMwqxo','env','\x20\x20API\x20Endpoints','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20Merged\x20Config','Global','source','locale','(not\x20found)','cookie','(no\x20file)','repeat','\x20\x20\x20\x20accessKey:\x20\x20','status','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','yellow','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','format','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','bold','empty','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','explicitAppName','(none)','missing'];a88_0x4099=function(){return _0xcf10b7;};return a88_0x4099();}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x21dbef){const _0x134814=a88_0x1561,_0x4f77ac=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x134814(0x10f)](0x0,0xa)+')':VERSION,_0x179424=buildConfigFromFlags({}),_0x27be6b=getCookie();console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](CLI_BIN_NAME+_0x134814(0x123))),console['log'](a88_0x39a32e[_0x134814(0x131)]('─'[_0x134814(0x103)](0x32))),console[_0x134814(0x12e)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x4f77ac),console['log'](_0x134814(0xed)+process[_0x134814(0xeb)]),console[_0x134814(0x12e)](_0x134814(0x109)+process['platform']+'\x20'+process[_0x134814(0xe9)]),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)]('\x20\x20Config\x20Files')),console['log'](a88_0x39a32e[_0x134814(0x131)]('\x20\x20─'[_0x134814(0x103)](0x1e)));const _0x1c5027=getGlobalConfigPath(),_0x23d682=getProjectConfigPath();console[_0x134814(0x12e)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1c5027||a88_0x39a32e[_0x134814(0x131)]('(not\x20found)'))),console[_0x134814(0x12e)](_0x134814(0x13f)+(_0x23d682||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x100)))),console['log'](),console['log'](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xef))),console['log'](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)['repeat'](0x1e)));const _0xd08aa7=(_0x479df8,_0x1b5c84)=>{const _0x928de=_0x134814;if(!_0x1b5c84){console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x131)](_0x928de(0x102)));return;}const _0x3e0d28=inspectCliConfigJsonFile(_0x1b5c84);if(_0x3e0d28[_0x928de(0x105)]==='ok')console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0xee)](_0x928de(0x13b)));else{if(_0x3e0d28[_0x928de(0x105)]===_0x928de(0x111))console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x108)](_0x928de(0x126)));else _0x3e0d28[_0x928de(0x105)]===_0x928de(0x116)?console[_0x928de(0x12e)]('\x20\x20'+_0x479df8['padEnd'](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x131)](_0x928de(0x130))):(console[_0x928de(0x12e)]('\x20\x20'+_0x479df8[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e['red'](_0x928de(0xe8))),console[_0x928de(0x12e)]('\x20\x20'+''[_0x928de(0x120)](0x11)+'\x20'+a88_0x39a32e[_0x928de(0x12d)](_0x3e0d28['message'])));}};_0xd08aa7(_0x134814(0xfd),_0x1c5027),_0xd08aa7(_0x134814(0x140),_0x23d682),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xfc))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e))),console[_0x134814(0x12e)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x179424['appCode']||a88_0x39a32e[_0x134814(0x12d)]('(not\x20set)'))),console[_0x134814(0x12e)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x179424[_0x134814(0xf7)]),console[_0x134814(0x12e)](_0x134814(0x118)+_0x179424[_0x134814(0xff)]),console[_0x134814(0x12e)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x179424[_0x134814(0xfb)]),console[_0x134814(0x12e)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x179424[_0x134814(0x10a)]||a88_0x39a32e['gray'](_0x134814(0x115)))),console['log'](_0x134814(0xfa)+(_0x179424[_0x134814(0x121)]||a88_0x39a32e['gray'](_0x134814(0x115)))),console[_0x134814(0x12e)](_0x134814(0x113)+(_0x179424[_0x134814(0x114)]||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x115)))),console['log'](_0x134814(0x138)+(_0x179424[_0x134814(0x10b)]||a88_0x39a32e[_0x134814(0x131)](_0x134814(0x117)+DEFAULT_CONFIG_VALUES[_0x134814(0x10b)]+')'))),console[_0x134814(0x12e)](_0x134814(0xf9)+(_0x179424[_0x134814(0xf3)]??a88_0x39a32e[_0x134814(0x131)](_0x134814(0x11c)))),console[_0x134814(0x12e)](_0x134814(0x106)+_0x179424[_0x134814(0x11a)]),console[_0x134814(0x12e)](_0x134814(0x10e)+_0x179424['verbose']),console[_0x134814(0x12e)](_0x134814(0x10c)+(_0x179424['cookie']?a88_0x39a32e[_0x134814(0xee)]('(set,\x20length='+_0x179424[_0x134814(0x101)][_0x134814(0x13c)]+')'):_0x27be6b?a88_0x39a32e['green'](_0x134814(0xf4)+_0x27be6b[_0x134814(0x13c)]+')'):a88_0x39a32e[_0x134814(0x131)]('(none)')));const _0x26be84=Object[_0x134814(0x13e)](_0x179424[_0x134814(0xf5)]);if(_0x26be84[_0x134814(0x13c)]>0x0){console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e['bold'](_0x134814(0x139))),console[_0x134814(0x12e)](a88_0x39a32e['gray']('\x20\x20─'[_0x134814(0x103)](0x1e)));for(const _0x5aeedb of _0x26be84){const _0x4918f1=_0x179424['apps'][_0x5aeedb],_0x333b05=_0x5aeedb===_0x179424[_0x134814(0x10a)],_0x1818be=_0x5aeedb===_0x179424[_0x134814(0x121)],_0x22b14c=_0x1818be?a88_0x39a32e[_0x134814(0xee)]('\x20←\x20current'):'',_0x45645e=_0x333b05?_0x134814(0x124):'';console[_0x134814(0x12e)]('\x20\x20'+_0x5aeedb+_0x45645e+_0x22b14c),console[_0x134814(0x12e)](_0x134814(0x12b)+_0x4918f1[_0x134814(0xea)]);const _0x127288=buildAppDoctorFields(_0x4918f1,{'env':_0x179424['env'],'apiDir':_0x179424[_0x134814(0x133)][_0x134814(0xfb)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x179424['cookie']||_0x27be6b||undefined,'accessKey':_0x179424['accessKey']});console[_0x134814(0x12e)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x127288[_0x134814(0xf7)]['value']+'\x20\x20'+a88_0x39a32e['gray']('('+_0x127288[_0x134814(0xf7)][_0x134814(0xfe)]+')')),console[_0x134814(0x12e)](_0x134814(0x119)+_0x127288[_0x134814(0xfb)][_0x134814(0x13d)]+'\x20\x20'+a88_0x39a32e['gray']('('+_0x127288[_0x134814(0xfb)][_0x134814(0xfe)]+')'));const _0x27db38=_0x127288[_0x134814(0x101)][_0x134814(0x13d)]?a88_0x39a32e['green'](_0x134814(0x12c)+_0x127288[_0x134814(0x101)][_0x134814(0x13d)][_0x134814(0x13c)]+')'):a88_0x39a32e[_0x134814(0x131)]('(none)');console[_0x134814(0x12e)](_0x134814(0x137)+_0x27db38+'\x20\x20'+a88_0x39a32e[_0x134814(0x131)]('('+_0x127288[_0x134814(0x101)]['source']+')'));const _0x50e537=_0x127288['accessKey']['value']?a88_0x39a32e['green']('(set,\x20length='+_0x127288[_0x134814(0x136)]['value'][_0x134814(0x13c)]+')'):a88_0x39a32e['gray'](_0x134814(0x115));console[_0x134814(0x12e)](_0x134814(0x104)+_0x50e537+'\x20\x20'+a88_0x39a32e[_0x134814(0x131)]('('+_0x127288[_0x134814(0x136)]['source']+')'));}}console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0xf8))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e))),console['log'](_0x134814(0x135)+getApiDomain()),console['log'](_0x134814(0x10d)+getUserDomain()),console['log'](_0x134814(0x107)+getRuntimeDomain()),console[_0x134814(0x12e)](),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x110)](_0x134814(0x12f))),console[_0x134814(0x12e)](a88_0x39a32e[_0x134814(0x131)](_0x134814(0x129)[_0x134814(0x103)](0x1e)));if(_0x27be6b){const _0x3e5f5a=await getIsSessionValid();console[_0x134814(0x12e)](_0x134814(0x112)+(_0x3e5f5a?a88_0x39a32e[_0x134814(0xee)](_0x134814(0x11d)):a88_0x39a32e['red'](_0x134814(0xec))));}else console['log'](_0x134814(0x112)+a88_0x39a32e['red'](_0x134814(0x128)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a88_0x32f7f5(0x12a),'command':a88_0x32f7f5(0x127),'description':a88_0x32f7f5(0xf1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a88_0x5d4b36=a88_0x1049;(function(_0x243811,_0x3235be){const _0x2f1c4a=a88_0x1049,_0x4ce9dc=_0x243811();while(!![]){try{const _0x3d6f28=-parseInt(_0x2f1c4a(0x116))/0x1*(parseInt(_0x2f1c4a(0x14d))/0x2)+parseInt(_0x2f1c4a(0x133))/0x3*(-parseInt(_0x2f1c4a(0x153))/0x4)+-parseInt(_0x2f1c4a(0x165))/0x5+-parseInt(_0x2f1c4a(0x146))/0x6+parseInt(_0x2f1c4a(0x140))/0x7*(parseInt(_0x2f1c4a(0x15f))/0x8)+parseInt(_0x2f1c4a(0x12a))/0x9*(parseInt(_0x2f1c4a(0x12e))/0xa)+parseInt(_0x2f1c4a(0x154))/0xb;if(_0x3d6f28===_0x3235be)break;else _0x4ce9dc['push'](_0x4ce9dc['shift']());}catch(_0x464292){_0x4ce9dc['push'](_0x4ce9dc['shift']());}}}(a88_0xcf6a,0xc5c7e));import a88_0x7fbd4 from'chalk';function a88_0x1049(_0x28670c,_0x409291){_0x28670c=_0x28670c-0x110;const _0xcf6ad3=a88_0xcf6a();let _0x104952=_0xcf6ad3[_0x28670c];return _0x104952;}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';function a88_0xcf6a(){const _0x23b587=['locale','\x20\x20Merged\x20Config','appCode','(default)','unknown','riskLevel','(default:\x20','cookie','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Project','(set,\x20length=','\x20\x20Config\x20Files','doctor','source','\x20\x20API\x20Endpoints','180VQJoAx','missing','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','gray','405240rLbUNh','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','yellow','apps','status','3zJQGNG','keys','repeat','log','bold','(not\x20found)','currentApp','arch','\x20\x20\x20\x20accessKey:\x20\x20','(set\x20via\x20file,\x20length=','version','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','65933rTpKIg','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','Global','\x20\x20─','7540290ymfAFR','slice','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','4JBwaWc','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','✓\x20Valid','\x20\x20Apps','(not\x20set)','6083872CypQsj','53627332oTSJjT','red','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','\x20doctor','value','appcode','pageSize','88LEoPXu','length','\x20(default)','padEnd','format','(none)','7330000AAaxGs','read','message','env','green','raw','✓\x20Valid\x20JSON','\x20←\x20current','367754RrfDCe','verbose','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired'];a88_0xcf6a=function(){return _0x23b587;};return a88_0xcf6a();}async function execute(_0x33d461){const _0x33e39b=a88_0x1049,_0x364db4=GIT_COMMIT!==_0x33e39b(0x11e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x33e39b(0x147)](0x0,0xa)+')':VERSION,_0x1bbcd2=buildConfigFromFlags({}),_0x1f4c86=getCookie();console['log'](),console[_0x33e39b(0x136)](a88_0x7fbd4['bold'](CLI_BIN_NAME+_0x33e39b(0x15b))),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)]('─'[_0x33e39b(0x135)](0x32))),console[_0x33e39b(0x136)](_0x33e39b(0x14c)+_0x364db4),console[_0x33e39b(0x136)](_0x33e39b(0x159)+process[_0x33e39b(0x13d)]),console[_0x33e39b(0x136)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x33e39b(0x13a)]),console['log'](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)](_0x33e39b(0x126))),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x145)[_0x33e39b(0x135)](0x1e)));const _0x35f03c=getGlobalConfigPath(),_0x5a29c5=getProjectConfigPath();console[_0x33e39b(0x136)](_0x33e39b(0x148)+(_0x35f03c||a88_0x7fbd4['gray'](_0x33e39b(0x138)))),console[_0x33e39b(0x136)](_0x33e39b(0x14a)+(_0x5a29c5||a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x138)))),console[_0x33e39b(0x136)](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)]('\x20\x20Config\x20JSON')),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x145)['repeat'](0x1e)));const _0x4365fd=(_0x335fae,_0x5a2b1f)=>{const _0xef0604=_0x33e39b;if(!_0x5a2b1f){console[_0xef0604(0x136)]('\x20\x20'+_0x335fae[_0xef0604(0x162)](0x11)+'\x20'+a88_0x7fbd4[_0xef0604(0x12d)]('(no\x20file)'));return;}const _0x4cc666=inspectCliConfigJsonFile(_0x5a2b1f);if(_0x4cc666[_0xef0604(0x132)]==='ok')console[_0xef0604(0x136)]('\x20\x20'+_0x335fae[_0xef0604(0x162)](0x11)+'\x20'+a88_0x7fbd4[_0xef0604(0x112)](_0xef0604(0x114)));else{if(_0x4cc666[_0xef0604(0x132)]==='empty')console['log']('\x20\x20'+_0x335fae['padEnd'](0x11)+'\x20'+a88_0x7fbd4[_0xef0604(0x130)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x4cc666[_0xef0604(0x132)]===_0xef0604(0x12b)?console['log']('\x20\x20'+_0x335fae[_0xef0604(0x162)](0x11)+'\x20'+a88_0x7fbd4[_0xef0604(0x12d)]('(missing)')):(console[_0xef0604(0x136)]('\x20\x20'+_0x335fae[_0xef0604(0x162)](0x11)+'\x20'+a88_0x7fbd4['red']('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a88_0x7fbd4[_0xef0604(0x155)](_0x4cc666[_0xef0604(0x110)])));}};_0x4365fd(_0x33e39b(0x144),_0x35f03c),_0x4365fd(_0x33e39b(0x124),_0x5a29c5),console['log'](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)](_0x33e39b(0x11b))),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x145)[_0x33e39b(0x135)](0x1e))),console[_0x33e39b(0x136)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1bbcd2[_0x33e39b(0x11c)]||a88_0x7fbd4[_0x33e39b(0x155)](_0x33e39b(0x152)))),console[_0x33e39b(0x136)](_0x33e39b(0x118)+_0x1bbcd2[_0x33e39b(0x111)]),console[_0x33e39b(0x136)](_0x33e39b(0x122)+_0x1bbcd2[_0x33e39b(0x11a)]),console[_0x33e39b(0x136)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bbcd2['apiDir']),console[_0x33e39b(0x136)](_0x33e39b(0x156)+(_0x1bbcd2[_0x33e39b(0x143)]||a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x164)))),console[_0x33e39b(0x136)](_0x33e39b(0x123)+(_0x1bbcd2['currentApp']||a88_0x7fbd4['gray'](_0x33e39b(0x164)))),console[_0x33e39b(0x136)]('\x20\x20explicitAppName:\x20'+(_0x1bbcd2['explicitAppName']||a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x164)))),console[_0x33e39b(0x136)](_0x33e39b(0x142)+(_0x1bbcd2[_0x33e39b(0x163)]||a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x120)+DEFAULT_CONFIG_VALUES[_0x33e39b(0x163)]+')'))),console[_0x33e39b(0x136)](_0x33e39b(0x12f)+(_0x1bbcd2[_0x33e39b(0x15e)]??a88_0x7fbd4['gray'](_0x33e39b(0x11d)))),console['log'](_0x33e39b(0x157)+_0x1bbcd2[_0x33e39b(0x11f)]),console[_0x33e39b(0x136)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1bbcd2[_0x33e39b(0x117)]),console[_0x33e39b(0x136)](_0x33e39b(0x141)+(_0x1bbcd2[_0x33e39b(0x121)]?a88_0x7fbd4[_0x33e39b(0x112)](_0x33e39b(0x125)+_0x1bbcd2[_0x33e39b(0x121)][_0x33e39b(0x160)]+')'):_0x1f4c86?a88_0x7fbd4[_0x33e39b(0x112)](_0x33e39b(0x13c)+_0x1f4c86[_0x33e39b(0x160)]+')'):a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x164))));const _0x247a40=Object[_0x33e39b(0x134)](_0x1bbcd2[_0x33e39b(0x131)]);if(_0x247a40['length']>0x0){console[_0x33e39b(0x136)](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)](_0x33e39b(0x151))),console[_0x33e39b(0x136)](a88_0x7fbd4['gray'](_0x33e39b(0x145)['repeat'](0x1e)));for(const _0x3eb76f of _0x247a40){const _0x294550=_0x1bbcd2[_0x33e39b(0x131)][_0x3eb76f],_0x18a53a=_0x3eb76f===_0x1bbcd2[_0x33e39b(0x143)],_0x24f06b=_0x3eb76f===_0x1bbcd2[_0x33e39b(0x139)],_0x585e95=_0x24f06b?a88_0x7fbd4[_0x33e39b(0x112)](_0x33e39b(0x115)):'',_0x34ace1=_0x18a53a?_0x33e39b(0x161):'';console[_0x33e39b(0x136)]('\x20\x20'+_0x3eb76f+_0x34ace1+_0x585e95),console['log'](_0x33e39b(0x14e)+_0x294550[_0x33e39b(0x15d)]);const _0x323f18=buildAppDoctorFields(_0x294550,{'env':_0x1bbcd2[_0x33e39b(0x111)],'apiDir':_0x1bbcd2[_0x33e39b(0x113)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x33e39b(0x149)],'cookie':_0x1bbcd2[_0x33e39b(0x121)]||_0x1f4c86||undefined,'accessKey':_0x1bbcd2['accessKey']});console[_0x33e39b(0x136)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x323f18[_0x33e39b(0x111)][_0x33e39b(0x15c)]+'\x20\x20'+a88_0x7fbd4[_0x33e39b(0x12d)]('('+_0x323f18['env'][_0x33e39b(0x128)]+')')),console['log'](_0x33e39b(0x14f)+_0x323f18[_0x33e39b(0x149)][_0x33e39b(0x15c)]+'\x20\x20'+a88_0x7fbd4[_0x33e39b(0x12d)]('('+_0x323f18[_0x33e39b(0x149)][_0x33e39b(0x128)]+')'));const _0x131790=_0x323f18[_0x33e39b(0x121)]['value']?a88_0x7fbd4[_0x33e39b(0x112)](_0x33e39b(0x125)+_0x323f18[_0x33e39b(0x121)]['value']['length']+')'):a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x164));console['log']('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x131790+'\x20\x20'+a88_0x7fbd4[_0x33e39b(0x12d)]('('+_0x323f18[_0x33e39b(0x121)][_0x33e39b(0x128)]+')'));const _0x3f1c7f=_0x323f18[_0x33e39b(0x15a)][_0x33e39b(0x15c)]?a88_0x7fbd4['green'](_0x33e39b(0x125)+_0x323f18[_0x33e39b(0x15a)][_0x33e39b(0x15c)][_0x33e39b(0x160)]+')'):a88_0x7fbd4['gray'](_0x33e39b(0x164));console[_0x33e39b(0x136)](_0x33e39b(0x13b)+_0x3f1c7f+'\x20\x20'+a88_0x7fbd4[_0x33e39b(0x12d)]('('+_0x323f18['accessKey'][_0x33e39b(0x128)]+')'));}}console[_0x33e39b(0x136)](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)](_0x33e39b(0x129))),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x145)[_0x33e39b(0x135)](0x1e))),console['log'](_0x33e39b(0x12c)+getApiDomain()),console[_0x33e39b(0x136)](_0x33e39b(0x14b)+getUserDomain()),console[_0x33e39b(0x136)](_0x33e39b(0x13e)+getRuntimeDomain()),console[_0x33e39b(0x136)](),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x137)]('\x20\x20Auth')),console[_0x33e39b(0x136)](a88_0x7fbd4[_0x33e39b(0x12d)](_0x33e39b(0x145)['repeat'](0x1e)));if(_0x1f4c86){const _0x502101=await getIsSessionValid();console[_0x33e39b(0x136)](_0x33e39b(0x13f)+(_0x502101?a88_0x7fbd4[_0x33e39b(0x112)](_0x33e39b(0x150)):a88_0x7fbd4[_0x33e39b(0x155)](_0x33e39b(0x119))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a88_0x7fbd4[_0x33e39b(0x155)]('✗\x20Not\x20logged\x20in'));return console[_0x33e39b(0x136)](),{'ok':!![]};}export const doctorDefinition={'service':a88_0x5d4b36(0x127),'command':'check','description':a88_0x5d4b36(0x158),'risk':a88_0x5d4b36(0x166),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a89_0x184810=a89_0x4920;(function(_0x201edc,_0xc27a7){const _0x4b7c98=a89_0x4920,_0x566869=_0x201edc();while(!![]){try{const _0x545a51=-parseInt(_0x4b7c98(0x126))/0x1+parseInt(_0x4b7c98(0x11c))/0x2+parseInt(_0x4b7c98(0x125))/0x3*(parseInt(_0x4b7c98(0x104))/0x4)+-parseInt(_0x4b7c98(0x107))/0x5*(-parseInt(_0x4b7c98(0x105))/0x6)+-parseInt(_0x4b7c98(0x12c))/0x7*(-parseInt(_0x4b7c98(0x10f))/0x8)+-parseInt(_0x4b7c98(0x103))/0x9+parseInt(_0x4b7c98(0x130))/0xa*(-parseInt(_0x4b7c98(0x109))/0xb);if(_0x545a51===_0xc27a7)break;else _0x566869['push'](_0x566869['shift']());}catch(_0x3b24de){_0x566869['push'](_0x566869['shift']());}}}(a89_0x4548,0xdf1d3));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a89_0x4920(_0x4ee931,_0x43f66d){_0x4ee931=_0x4ee931-0x103;const _0x45481b=a89_0x4548();let _0x4920e7=_0x45481b[_0x4ee931];return _0x4920e7;}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';function a89_0x4548(){const _0x3e5c15=['some','Write\x20to\x20global\x20config\x20instead\x20of\x20project','defaultApp','write','208108vGldAl','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','custom','string','\x0a✓\x20Successfully\x20initialized\x20','map','log','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','valid','903ahbYLY','84115wolUrN','project','production','str','global','join','44555pVLGjV','Usage:\x20','检测到旧配置文件,正在自动升级...\x0a','appCode','3494030SVktbH','Target\x20environment','4339377OhreLw','11668jRnmQj','795468JlTWwm','../../commands/project/init.js','25QvLWKt','nonInteractive','11vlYOaw','appcode','cwd','toLocaleString','init','yes','232sFspVe','App\x20code\x20to\x20initialize\x20with','boolean','bool','env','\x20\x20Env:\x20','\x20\x20Apps:\x20','\x20\x20Config:\x20','flagMissing'];a89_0x4548=function(){return _0x3e5c15;};return a89_0x4548();}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(_0x2587d1){return{'appCode':_0x2587d1,'appName':_0x2587d1};}function writeInitConfig(_0x2198a7,_0x4676e5,_0x425fe3){const _0x5ab604=a89_0x4920,_0x3f4e1d=resolveWriteConfigPath(_0x2198a7),_0x22574b=buildCanonicalProjectConfig({},{'appCodes':_0x4676e5[_0x5ab604(0x121)](_0x57d8d6=>_0x57d8d6[_0x5ab604(0x12f)]),'env':_0x425fe3,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5ab604(0x10c)]()}});writeConfigFile(_0x3f4e1d,_0x22574b);const _0x113f50=_0x2198a7==='global'?_0x5ab604(0x12a):_0x5ab604(0x127);console['log'](_0x5ab604(0x120)+_0x113f50+'\x20config'),console[_0x5ab604(0x122)](_0x5ab604(0x115)+_0x4676e5[_0x5ab604(0x121)](_0x5e02ec=>_0x5e02ec[_0x5ab604(0x12f)])[_0x5ab604(0x12b)](',\x20')),console[_0x5ab604(0x122)]('\x20\x20Default:\x20'+_0x22574b[_0x5ab604(0x11a)]),console[_0x5ab604(0x122)](_0x5ab604(0x114)+_0x22574b[_0x5ab604(0x113)]),console['log'](_0x5ab604(0x116)+_0x3f4e1d);}async function runSmartInit(_0x55c5b3){const _0x502bae=a89_0x4920,_0x390109=process[_0x502bae(0x10b)](),_0x5c47bc=_0x55c5b3[_0x502bae(0x112)](_0x502bae(0x12a))?'global':'project',_0x218538=_0x55c5b3[_0x502bae(0x129)](_0x502bae(0x113))||'production',_0x2a59d7=_0x55c5b3[_0x502bae(0x129)](_0x502bae(0x10a))||undefined,_0x38af83=_0x55c5b3['bool']('project');if(_0x38af83){const {initConfig:_0x392c30}=await import(_0x502bae(0x106));return _0x392c30({'appcode':_0x2a59d7,'env':_0x218538,'autoYes':_0x55c5b3['bool']('yes')});}if(_0x5c47bc===_0x502bae(0x127)){const _0x34549a=existsSync(resolve(_0x390109,NEW_CONFIG_NAME)),_0x2eb76d=LEGACY_CONFIG_NAMES[_0x502bae(0x118)](_0x1a80be=>existsSync(resolve(_0x390109,_0x1a80be)));if(_0x2eb76d&&!_0x34549a)return console['log'](_0x502bae(0x12e)),upgradeApp(_0x55c5b3[_0x502bae(0x108)],{'yes':_0x55c5b3[_0x502bae(0x112)](_0x502bae(0x10e))});if(_0x34549a)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x2a59d7){const _0x494573=validateAppcode(_0x2a59d7);if(!_0x494573[_0x502bae(0x124)])throw CliErrors['validation'](_0x494573['message']);writeInitConfig(_0x5c47bc,[syntheticApp(_0x2a59d7)],_0x218538);return;}if(_0x55c5b3['nonInteractive'])throw CliErrors[_0x502bae(0x117)](_0x502bae(0x10a),_0x502bae(0x12d)+CLI_BIN_NAME+_0x502bae(0x123));const _0x4bf39e=getCookie(),_0x1d825b=await selectMultipleApps(_0x4bf39e),_0x40eccf=_0x1d825b===_0x502bae(0x11e)?[syntheticApp(await promptCustomAppcode())]:_0x1d825b;writeInitConfig(_0x5c47bc,_0x40eccf,_0x218538);}const initFlags=[{'name':a89_0x184810(0x12a),'type':a89_0x184810(0x111),'description':a89_0x184810(0x119),'default':![]},{'name':a89_0x184810(0x113),'type':a89_0x184810(0x11f),'description':a89_0x184810(0x131),'default':a89_0x184810(0x128),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a89_0x184810(0x11f),'description':a89_0x184810(0x110)},{'name':a89_0x184810(0x127),'type':a89_0x184810(0x111),'description':a89_0x184810(0x11d),'default':![]},{'name':a89_0x184810(0x10e),'type':a89_0x184810(0x111),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a89_0x184810(0x10d),'command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a89_0x184810(0x11b),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x1909ef){return await runSmartInit(_0x1909ef),{'ok':!![]};}}];
1
+ const a89_0x512723=a89_0x16e7;(function(_0x3276d1,_0x39f955){const _0x4d6eb3=a89_0x16e7,_0x17d1ec=_0x3276d1();while(!![]){try{const _0x4856cb=-parseInt(_0x4d6eb3(0xc2))/0x1*(parseInt(_0x4d6eb3(0xb9))/0x2)+parseInt(_0x4d6eb3(0xb0))/0x3*(-parseInt(_0x4d6eb3(0xc5))/0x4)+-parseInt(_0x4d6eb3(0xd2))/0x5*(-parseInt(_0x4d6eb3(0xb2))/0x6)+-parseInt(_0x4d6eb3(0xcf))/0x7*(-parseInt(_0x4d6eb3(0xca))/0x8)+-parseInt(_0x4d6eb3(0xd6))/0x9+parseInt(_0x4d6eb3(0xb3))/0xa+parseInt(_0x4d6eb3(0xcc))/0xb*(parseInt(_0x4d6eb3(0xc3))/0xc);if(_0x4856cb===_0x39f955)break;else _0x17d1ec['push'](_0x17d1ec['shift']());}catch(_0x4da8e1){_0x17d1ec['push'](_0x17d1ec['shift']());}}}(a89_0x31f2,0x9004d));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a89_0x31f2(){const _0x1edd72=['nonInteractive','some','1386774WjEkby','Target\x20environment','string','global','Write\x20to\x20global\x20config\x20instead\x20of\x20project','yes','flagMissing','join','appCode','1ICyqTe','12YxTVDI','valid','169096qchyUB','env','custom','map','\x20\x20Config:\x20','11384edCccB','message','10812758OsUbGE','\x20\x20Env:\x20','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','2709drtXvW','App\x20code\x20to\x20initialize\x20with','write','157910VIXLRU','../../commands/project/init.js','boolean','str','5840352hLdUQN','defaultApp','production','\x20config','log','bool','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','appcode','init','project','Auto-confirm\x20prompts','60bHPVoe','\x0a✓\x20Successfully\x20initialized\x20','90PVVeuG','7702870TPrTUx','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','run','validation'];a89_0x31f2=function(){return _0x1edd72;};return a89_0x31f2();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x20d9cf){return{'appCode':_0x20d9cf,'appName':_0x20d9cf};}function writeInitConfig(_0x1c03ac,_0x458a55,_0x4122a8){const _0x427103=a89_0x16e7,_0x2a614b=resolveWriteConfigPath(_0x1c03ac),_0x55e7e6=buildCanonicalProjectConfig({},{'appCodes':_0x458a55[_0x427103(0xc8)](_0x25fa36=>_0x25fa36[_0x427103(0xc1)]),'env':_0x4122a8,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x2a614b,_0x55e7e6);const _0x564ae9=_0x1c03ac===_0x427103(0xbc)?_0x427103(0xbc):'project';console[_0x427103(0xda)](_0x427103(0xb1)+_0x564ae9+_0x427103(0xd9)),console[_0x427103(0xda)]('\x20\x20Apps:\x20'+_0x458a55[_0x427103(0xc8)](_0xbc8e85=>_0xbc8e85[_0x427103(0xc1)])[_0x427103(0xc0)](',\x20')),console['log']('\x20\x20Default:\x20'+_0x55e7e6[_0x427103(0xd7)]),console[_0x427103(0xda)](_0x427103(0xcd)+_0x55e7e6[_0x427103(0xc6)]),console['log'](_0x427103(0xc9)+_0x2a614b);}async function runSmartInit(_0x41b671){const _0x4dd363=a89_0x16e7,_0x51c71e=process['cwd'](),_0x38b88a=_0x41b671[_0x4dd363(0xdb)](_0x4dd363(0xbc))?_0x4dd363(0xbc):_0x4dd363(0xae),_0x45ff18=_0x41b671[_0x4dd363(0xd5)](_0x4dd363(0xc6))||'production',_0x39b293=_0x41b671[_0x4dd363(0xd5)]('appcode')||undefined,_0x2a833f=_0x41b671[_0x4dd363(0xdb)](_0x4dd363(0xae));if(_0x2a833f){const {initConfig:_0x31eb9e}=await import(_0x4dd363(0xd3));return _0x31eb9e({'appcode':_0x39b293,'env':_0x45ff18,'autoYes':_0x41b671[_0x4dd363(0xdb)](_0x4dd363(0xbe))});}if(_0x38b88a===_0x4dd363(0xae)){const _0x4326a4=existsSync(resolve(_0x51c71e,NEW_CONFIG_NAME)),_0x2ff516=LEGACY_CONFIG_NAMES[_0x4dd363(0xb8)](_0x6b2e58=>existsSync(resolve(_0x51c71e,_0x6b2e58)));if(_0x2ff516&&!_0x4326a4)return console[_0x4dd363(0xda)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x41b671[_0x4dd363(0xb7)],{'yes':_0x41b671[_0x4dd363(0xdb)]('yes')});if(_0x4326a4)throw CliErrors[_0x4dd363(0xb6)](_0x4dd363(0xb4),'Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x39b293){const _0x45e8e1=validateAppcode(_0x39b293);if(!_0x45e8e1[_0x4dd363(0xc4)])throw CliErrors[_0x4dd363(0xb6)](_0x45e8e1[_0x4dd363(0xcb)]);writeInitConfig(_0x38b88a,[syntheticApp(_0x39b293)],_0x45ff18);return;}if(_0x41b671['nonInteractive'])throw CliErrors[_0x4dd363(0xbf)]('appcode','Usage:\x20'+CLI_BIN_NAME+_0x4dd363(0xce));const _0x1f7a71=getCookie(),_0x4cc2a9=await selectMultipleApps(_0x1f7a71),_0x24d569=_0x4cc2a9===_0x4dd363(0xc7)?[syntheticApp(await promptCustomAppcode())]:_0x4cc2a9;writeInitConfig(_0x38b88a,_0x24d569,_0x45ff18);}const initFlags=[{'name':'global','type':a89_0x512723(0xd4),'description':a89_0x512723(0xbd),'default':![]},{'name':a89_0x512723(0xc6),'type':a89_0x512723(0xbb),'description':a89_0x512723(0xba),'default':a89_0x512723(0xd8),'enum':[...RABETBASE_ENV_VALUES]},{'name':a89_0x512723(0xac),'type':a89_0x512723(0xbb),'description':a89_0x512723(0xd0)},{'name':a89_0x512723(0xae),'type':a89_0x512723(0xd4),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a89_0x512723(0xbe),'type':a89_0x512723(0xd4),'description':a89_0x512723(0xaf),'default':![]}];function a89_0x16e7(_0x5f2bbb,_0x3652eb){_0x5f2bbb=_0x5f2bbb-0xac;const _0x31f22c=a89_0x31f2();let _0x16e7d7=_0x31f22c[_0x5f2bbb];return _0x16e7d7;}export const initDefinitions=[{'service':a89_0x512723(0xad),'command':a89_0x512723(0xb5),'description':a89_0x512723(0xdc),'risk':a89_0x512723(0xd1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x31b452){return await runSmartInit(_0x31b452),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a90_0x4057(_0xb82d95,_0x5951f6){_0xb82d95=_0xb82d95-0x14a;const _0x404970=a90_0x4049();let _0x4057c4=_0x404970[_0xb82d95];return _0x4057c4;}(function(_0x287904,_0xa2337c){const _0x1d580b=a90_0x4057,_0x4a65c0=_0x287904();while(!![]){try{const _0x1a2f7e=-parseInt(_0x1d580b(0x14d))/0x1+-parseInt(_0x1d580b(0x14b))/0x2*(parseInt(_0x1d580b(0x14f))/0x3)+parseInt(_0x1d580b(0x151))/0x4+parseInt(_0x1d580b(0x14e))/0x5+parseInt(_0x1d580b(0x14c))/0x6+-parseInt(_0x1d580b(0x14a))/0x7+parseInt(_0x1d580b(0x150))/0x8;if(_0x1a2f7e===_0xa2337c)break;else _0x4a65c0['push'](_0x4a65c0['shift']());}catch(_0x54ab8d){_0x4a65c0['push'](_0x4a65c0['shift']());}}}(a90_0x4049,0x29339));import{issueReport}from'../../commands/issue/report.js';function a90_0x4049(){const _0x5afa46=['92HdeYBH','718242SmQJsa','265095MTtCpI','1552290TALqpt','11328klFQGz','789376Quimhn','747284ggjkjq','756742IuXIwW'];a90_0x4049=function(){return _0x5afa46;};return a90_0x4049();}export const issueDefinitions=[issueReport];
1
+ (function(_0x55c7c8,_0x530ac3){const _0x30df4e=a90_0x6022,_0xea8a49=_0x55c7c8();while(!![]){try{const _0x1fa912=-parseInt(_0x30df4e(0x13b))/0x1+parseInt(_0x30df4e(0x141))/0x2+parseInt(_0x30df4e(0x13c))/0x3+parseInt(_0x30df4e(0x13f))/0x4*(parseInt(_0x30df4e(0x13d))/0x5)+-parseInt(_0x30df4e(0x140))/0x6*(parseInt(_0x30df4e(0x13e))/0x7)+-parseInt(_0x30df4e(0x142))/0x8*(-parseInt(_0x30df4e(0x13a))/0x9)+-parseInt(_0x30df4e(0x143))/0xa;if(_0x1fa912===_0x530ac3)break;else _0xea8a49['push'](_0xea8a49['shift']());}catch(_0x459049){_0xea8a49['push'](_0xea8a49['shift']());}}}(a90_0x5c98,0x3db0c));import{issueReport}from'../../commands/issue/report.js';function a90_0x6022(_0x307cd7,_0x36a42f){_0x307cd7=_0x307cd7-0x13a;const _0x5c989c=a90_0x5c98();let _0x6022ac=_0x5c989c[_0x307cd7];return _0x6022ac;}export const issueDefinitions=[issueReport];function a90_0x5c98(){const _0x41bf33=['787917pOSeDh','65kWaJkS','308728AKrhDj','74084QmkypS','6WbIUvc','697808VMLeFJ','11944eyrnnn','3569560bMWFfO','1314OtTryj','416550ObuouY'];a90_0x5c98=function(){return _0x41bf33;};return a90_0x5c98();}
@@ -1 +1 @@
1
- const a91_0x40ba50=a91_0x5114;(function(_0x3406ac,_0x412eb9){const _0x129404=a91_0x5114,_0x567f9b=_0x3406ac();while(!![]){try{const _0x1083e8=parseInt(_0x129404(0x1c8))/0x1+parseInt(_0x129404(0x1d7))/0x2*(parseInt(_0x129404(0x1d3))/0x3)+parseInt(_0x129404(0x1d9))/0x4*(parseInt(_0x129404(0x1e5))/0x5)+-parseInt(_0x129404(0x1d5))/0x6+parseInt(_0x129404(0x1e3))/0x7+-parseInt(_0x129404(0x1ca))/0x8*(-parseInt(_0x129404(0x1d1))/0x9)+-parseInt(_0x129404(0x1d8))/0xa;if(_0x1083e8===_0x412eb9)break;else _0x567f9b['push'](_0x567f9b['shift']());}catch(_0x4e58f9){_0x567f9b['push'](_0x567f9b['shift']());}}}(a91_0x4800,0xcddb9));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0x40ba50(0x1dc);function a91_0x5114(_0x235c25,_0x3de69e){_0x235c25=_0x235c25-0x1c8;const _0x4800a8=a91_0x4800();let _0x511472=_0x4800a8[_0x235c25];return _0x511472;}const NUDGE_SUPPRESSED_CODES=new Set([a91_0x40ba50(0x1cb),a91_0x40ba50(0x1df),a91_0x40ba50(0x1e7),'not_in_project','unknown_command',a91_0x40ba50(0x1de),'validation_error',a91_0x40ba50(0x1d2)]),defaultWriter=_0x97c970=>{const _0x55a40a=a91_0x40ba50;process[_0x55a40a(0x1e4)][_0x55a40a(0x1e6)](_0x97c970);};export function shouldNudgeForError(_0x563b5f,_0xb2695e){const _0x5afd55=a91_0x40ba50;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0xb2695e['service']===_0x5afd55(0x1ce)&&_0xb2695e['command']==='report')return![];if(_0x563b5f instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5afd55(0x1d4)](_0x563b5f[_0x5afd55(0x1e0)]);return!![];}function a91_0x4800(){const _0x57f9e0=['2857080uuLjJz','\x20bug?\x20Help\x20us\x20fix\x20it:','725128BbqUsG','23085540QDxsxY','248XHRyBj','slice','trim','RABETBASE_DISABLE_ISSUE_NUDGE','replace','flag_missing','auth_required','code','\x20\x20\x20\x20--title\x20\x22','Hit\x20a\x20','2302755PEVrBl','stderr','61105XliINL','write','config_missing','join','53601NLqPaW','service','136jhiNqs','cancelled','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20Set\x20','issue','message','\x22\x20\x5c','741159zvxPvu','network_error','9VJznDy','has'];a91_0x4800=function(){return _0x57f9e0;};return a91_0x4800();}export function printIssueReportNudgeForError(_0xe2c46a,_0x495674,_0x258e69=defaultWriter){if(!shouldNudgeForError(_0xe2c46a,_0x495674))return;const _0x236f56=buildSuggestedTitle(_0xe2c46a,_0x495674);_0x258e69(formatNudge(_0x236f56));}function buildSuggestedTitle(_0x65177d,_0x11516c){const _0x2b0500=a91_0x40ba50,_0x2e3650=_0x65177d instanceof Error?_0x65177d[_0x2b0500(0x1cf)]:String(_0x65177d),_0x272046=_0x2e3650[_0x2b0500(0x1dd)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2b0500(0x1db)]()[_0x2b0500(0x1da)](0x0,0x78)[_0x2b0500(0x1dd)](/"/g,'\x5c\x22'),_0x5b6de4=CLI_BIN_NAME+'\x20'+_0x11516c[_0x2b0500(0x1c9)]+'\x20'+_0x11516c['command'];return _0x272046['length']>0x0?_0x5b6de4+':\x20'+_0x272046:_0x5b6de4;}function formatNudge(_0x4b839a){const _0x1c328c=a91_0x40ba50;return['',_0x1c328c(0x1e2)+CLI_BIN_NAME+_0x1c328c(0x1d6),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x1c328c(0x1e1)+_0x4b839a+_0x1c328c(0x1d0),_0x1c328c(0x1cc),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x1c328c(0x1cd)+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x1c328c(0x1e8)]('\x0a');}
1
+ const a91_0xe99a6f=a91_0x769b;(function(_0x539aca,_0x4e8a62){const _0xa5d48e=a91_0x769b,_0x2ed988=_0x539aca();while(!![]){try{const _0xbf0628=-parseInt(_0xa5d48e(0x143))/0x1+parseInt(_0xa5d48e(0x136))/0x2+parseInt(_0xa5d48e(0x130))/0x3*(parseInt(_0xa5d48e(0x13a))/0x4)+-parseInt(_0xa5d48e(0x135))/0x5+-parseInt(_0xa5d48e(0x147))/0x6+parseInt(_0xa5d48e(0x13e))/0x7+-parseInt(_0xa5d48e(0x13d))/0x8*(parseInt(_0xa5d48e(0x12c))/0x9);if(_0xbf0628===_0x4e8a62)break;else _0x2ed988['push'](_0x2ed988['shift']());}catch(_0x5ed826){_0x2ed988['push'](_0x2ed988['shift']());}}}(a91_0x7925,0xbedaa));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a91_0xe99a6f(0x13c);const NUDGE_SUPPRESSED_CODES=new Set([a91_0xe99a6f(0x142),a91_0xe99a6f(0x12d),'config_missing',a91_0xe99a6f(0x128),a91_0xe99a6f(0x137),a91_0xe99a6f(0x140),'validation_error','network_error']),defaultWriter=_0xbdebad=>{const _0x103ae3=a91_0xe99a6f;process['stderr'][_0x103ae3(0x12a)](_0xbdebad);};export function shouldNudgeForError(_0x129adb,_0x2609a4){const _0x269d39=a91_0xe99a6f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2609a4[_0x269d39(0x13b)]===_0x269d39(0x126)&&_0x2609a4['command']===_0x269d39(0x13f))return![];if(_0x129adb instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x269d39(0x141)](_0x129adb[_0x269d39(0x12e)]);return!![];}function a91_0x769b(_0xfef354,_0x4f0cff){_0xfef354=_0xfef354-0x126;const _0x792526=a91_0x7925();let _0x769b31=_0x792526[_0xfef354];return _0x769b31;}export function printIssueReportNudgeForError(_0xc630c5,_0x5912b9,_0x1d056a=defaultWriter){if(!shouldNudgeForError(_0xc630c5,_0x5912b9))return;const _0x3e18a7=buildSuggestedTitle(_0xc630c5,_0x5912b9);_0x1d056a(formatNudge(_0x3e18a7));}function buildSuggestedTitle(_0x16b391,_0x263a7f){const _0x2cedd6=a91_0xe99a6f,_0x29657a=_0x16b391 instanceof Error?_0x16b391[_0x2cedd6(0x145)]:String(_0x16b391),_0x471ee4=_0x29657a[_0x2cedd6(0x144)](/[\r\n]+/g,'\x20')[_0x2cedd6(0x144)](/\s+/g,'\x20')[_0x2cedd6(0x132)]()[_0x2cedd6(0x133)](0x0,0x78)[_0x2cedd6(0x144)](/"/g,'\x5c\x22'),_0x1232ad=CLI_BIN_NAME+'\x20'+_0x263a7f[_0x2cedd6(0x13b)]+'\x20'+_0x263a7f[_0x2cedd6(0x12b)];return _0x471ee4[_0x2cedd6(0x129)]>0x0?_0x1232ad+':\x20'+_0x471ee4:_0x1232ad;}function a91_0x7925(){const _0x14c957=['3905970UxgIMX','2989558SbxUNA','unknown_command','\x20\x20Set\x20','Hit\x20a\x20','4254484JkpxRk','service','RABETBASE_DISABLE_ISSUE_NUDGE','168xKugZh','5709592YdMCiZ','report','flag_missing','has','cancelled','8451PXkftu','replace','message','\x20\x20\x20\x20--title\x20\x22','1239912vfmLJp','issue','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','not_in_project','length','write','command','684009peSTDW','auth_required','code','join','3IQmmYV','=1\x20to\x20silence\x20this\x20hint.','trim','slice','\x20bug?\x20Help\x20us\x20fix\x20it:'];a91_0x7925=function(){return _0x14c957;};return a91_0x7925();}function formatNudge(_0x31ade8){const _0x39ae06=a91_0xe99a6f;return['',_0x39ae06(0x139)+CLI_BIN_NAME+_0x39ae06(0x134),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x39ae06(0x146)+_0x31ade8+'\x22\x20\x5c',_0x39ae06(0x127),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x39ae06(0x138)+NUDGE_OPT_OUT_ENV+_0x39ae06(0x131),''][_0x39ae06(0x12f)]('\x0a');}
@@ -1 +1 @@
1
- const a92_0x3b6689=a92_0x5294;(function(_0x5e1dbb,_0x1222ca){const _0x421bf=a92_0x5294,_0x33a5c6=_0x5e1dbb();while(!![]){try{const _0x5ea316=parseInt(_0x421bf(0x167))/0x1+-parseInt(_0x421bf(0x17f))/0x2+parseInt(_0x421bf(0x172))/0x3+-parseInt(_0x421bf(0x163))/0x4+parseInt(_0x421bf(0x17b))/0x5+-parseInt(_0x421bf(0x164))/0x6+parseInt(_0x421bf(0x15c))/0x7;if(_0x5ea316===_0x1222ca)break;else _0x33a5c6['push'](_0x33a5c6['shift']());}catch(_0x360d16){_0x33a5c6['push'](_0x33a5c6['shift']());}}}(a92_0x10ed,0x27e27));import{existsSync}from'node:fs';function a92_0x10ed(){const _0x29b1fe=['Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','descriptionFilePath','title','filter','flagMissing','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','join','Failed\x20to\x20report\x20platform\x20issue:\x20','2231670vRYXHF','Issue\x20description\x20cannot\x20be\x20empty.','Issue\x20description\x20file\x20is\x20empty:\x20','\x20secret(s):\x20','cwd','length','redactions:\x20','880516ZkGzDQ','648444ELkTmH','issue.description_redaction_kinds','issue.description_original_bytes','15473KgiZfd','File\x20not\x20found:\x20','str','utf8','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','One-line\x20issue\x20summary','string','truncated\x20from\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','compress','616212PDnxEz','trim','sanitize','message','redactionCount','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','write','description-file','430770pxNFIk','otel://','inline','truncated:\x20original\x20','268542hoGTLu','descriptionSource','truncated','originalBytes','validation','issue.description','file','apiError','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','description','redactionKinds','push','issue.description_truncated','issue.description_redactions','Platform\x20issue\x20reported\x20(','\x20bytes'];a92_0x10ed=function(){return _0x29b1fe;};return a92_0x10ed();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a92_0x5294(_0x3ccd70,_0x4ff46d){_0x3ccd70=_0x3ccd70-0x147;const _0x10edc4=a92_0x10ed();let _0x5294a9=_0x10edc4[_0x3ccd70];return _0x5294a9;}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_0x3b6689(0x17a);export const issueReport={'service':'issue','command':'report','description':a92_0x3b6689(0x159),'risk':a92_0x3b6689(0x179),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a92_0x3b6689(0x171),'flags':[{'name':a92_0x3b6689(0x156),'type':'string','required':!![],'description':a92_0x3b6689(0x16d)},{'name':a92_0x3b6689(0x14d),'type':a92_0x3b6689(0x16e),'description':a92_0x3b6689(0x16b)},{'name':DESCRIPTION_FILE_FLAG,'type':a92_0x3b6689(0x16e),'description':a92_0x3b6689(0x178)}],async 'validate'(_0x1ebb33){const _0xb88a6e=a92_0x3b6689,_0x2733d5=_0x1ebb33['str'](_0xb88a6e(0x156))[_0xb88a6e(0x173)](),_0x4e0376=_0x1ebb33[_0xb88a6e(0x169)](_0xb88a6e(0x14d))[_0xb88a6e(0x173)](),_0x497b14=_0x1ebb33[_0xb88a6e(0x169)](DESCRIPTION_FILE_FLAG)[_0xb88a6e(0x173)]();if(!_0x2733d5)throw CliErrors[_0xb88a6e(0x158)](_0xb88a6e(0x156),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x25a065=_0x4e0376[_0xb88a6e(0x161)]>0x0,_0x40fc94=_0x497b14[_0xb88a6e(0x161)]>0x0;if(_0x25a065===_0x40fc94)throw CliErrors[_0xb88a6e(0x148)](_0xb88a6e(0x16c),_0xb88a6e(0x154));if(_0x40fc94){const _0x495046=resolve(process[_0xb88a6e(0x160)](),_0x497b14);if(!existsSync(_0x495046))throw CliErrors[_0xb88a6e(0x148)](_0xb88a6e(0x168)+_0x495046);}},async 'dryRun'(_0x21cac9){const _0x1f5ba0=a92_0x3b6689,_0x48dfc5=await prepareIssueReport(_0x21cac9);return{'method':'POST','url':_0x1f5ba0(0x17c)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x48dfc5[_0x1f5ba0(0x156)],'issue.description':_0x48dfc5[_0x1f5ba0(0x14d)],'issue.description_original_bytes':_0x48dfc5[_0x1f5ba0(0x174)][_0x1f5ba0(0x147)],'issue.description_truncated':_0x48dfc5[_0x1f5ba0(0x174)][_0x1f5ba0(0x181)],'issue.description_redactions':_0x48dfc5[_0x1f5ba0(0x174)][_0x1f5ba0(0x176)],'issue.description_redaction_kinds':_0x48dfc5[_0x1f5ba0(0x174)][_0x1f5ba0(0x14e)][_0x1f5ba0(0x15a)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x48dfc5[_0x1f5ba0(0x180)],_0x48dfc5[_0x1f5ba0(0x155)]?'descriptionFile:\x20'+_0x48dfc5[_0x1f5ba0(0x155)]:null,_0x48dfc5[_0x1f5ba0(0x174)]['truncated']?_0x1f5ba0(0x17e)+_0x48dfc5[_0x1f5ba0(0x174)]['originalBytes']+_0x1f5ba0(0x153):null,_0x48dfc5['sanitize'][_0x1f5ba0(0x176)]>0x0?_0x1f5ba0(0x162)+_0x48dfc5[_0x1f5ba0(0x174)][_0x1f5ba0(0x176)]+'\x20('+_0x48dfc5[_0x1f5ba0(0x174)]['redactionKinds'][_0x1f5ba0(0x15a)](',\x20')+')':null][_0x1f5ba0(0x157)](Boolean)[_0x1f5ba0(0x15a)]('\x0a')};},async 'execute'(_0x5cca1b){const _0x476420=a92_0x3b6689,_0x267b49=await prepareIssueReport(_0x5cca1b);try{await sendPlatformIssueCollectLog({'title':_0x267b49[_0x476420(0x156)],'description':_0x267b49[_0x476420(0x14d)],'sanitize':{'originalBytes':_0x267b49[_0x476420(0x174)][_0x476420(0x147)],'truncated':_0x267b49[_0x476420(0x174)][_0x476420(0x181)],'redactionCount':_0x267b49[_0x476420(0x174)]['redactionCount'],'redactionKinds':_0x267b49[_0x476420(0x174)]['redactionKinds']}});}catch(_0x599350){throw CliErrors[_0x476420(0x14b)](_0x476420(0x15b)+(_0x599350 instanceof Error?_0x599350[_0x476420(0x175)]:String(_0x599350)),_0x476420(0x14c));}return{'ok':!![],'message':buildResultMessage(_0x267b49[_0x476420(0x174)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x476420(0x149),_0x476420(0x166),_0x476420(0x150),_0x476420(0x151),_0x476420(0x165)],'issue':{'title':_0x267b49[_0x476420(0x156)],'descriptionLength':_0x267b49[_0x476420(0x14d)][_0x476420(0x161)],'descriptionSource':_0x267b49[_0x476420(0x180)],..._0x267b49[_0x476420(0x155)]?{'descriptionFile':_0x267b49['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x267b49[_0x476420(0x174)][_0x476420(0x147)],'truncated':_0x267b49[_0x476420(0x174)][_0x476420(0x181)],'redactions':_0x267b49[_0x476420(0x174)][_0x476420(0x176)],'redactionKinds':_0x267b49[_0x476420(0x174)][_0x476420(0x14e)]}}}};}};function buildResultMessage(_0xb5fda3){const _0x5a7d9a=a92_0x3b6689,_0x31b889=[];return _0xb5fda3[_0x5a7d9a(0x181)]&&_0x31b889[_0x5a7d9a(0x14f)](_0x5a7d9a(0x16f)+_0xb5fda3['originalBytes']+_0x5a7d9a(0x153)),_0xb5fda3[_0x5a7d9a(0x176)]>0x0&&_0x31b889[_0x5a7d9a(0x14f)]('redacted\x20'+_0xb5fda3[_0x5a7d9a(0x176)]+_0x5a7d9a(0x15f)+_0xb5fda3['redactionKinds'][_0x5a7d9a(0x15a)](',\x20')),_0x31b889['length']===0x0?'Platform\x20issue\x20reported':_0x5a7d9a(0x152)+_0x31b889['join'](';\x20')+')';}async function prepareIssueReport(_0x4099c5){const _0x4dbf16=a92_0x3b6689,_0x45bf98=_0x4099c5[_0x4dbf16(0x169)](_0x4dbf16(0x156))[_0x4dbf16(0x173)](),_0x290234=_0x4099c5['str'](_0x4dbf16(0x14d)),_0x36586d=_0x4099c5[_0x4dbf16(0x169)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x36586d){const _0x6bd999=_0x290234;if(!_0x6bd999[_0x4dbf16(0x173)]())throw CliErrors[_0x4dbf16(0x148)](_0x4dbf16(0x15d),_0x4dbf16(0x177));const _0x430c57=sanitizeIssueDescription(_0x6bd999);return{'title':_0x45bf98,'description':_0x430c57[_0x4dbf16(0x14d)],'descriptionSource':_0x4dbf16(0x17d),'sanitize':_0x430c57};}const _0x30eac9=resolve(process[_0x4dbf16(0x160)](),_0x36586d),_0x3ca1ef=await readFile(_0x30eac9,_0x4dbf16(0x16a));if(!_0x3ca1ef[_0x4dbf16(0x173)]())throw CliErrors[_0x4dbf16(0x148)](_0x4dbf16(0x15e)+_0x30eac9,_0x4dbf16(0x170));const _0xe8a989=sanitizeIssueDescription(_0x3ca1ef);return{'title':_0x45bf98,'description':_0xe8a989['description'],'descriptionSource':_0x4dbf16(0x14a),'descriptionFilePath':_0x30eac9,'sanitize':_0xe8a989};}
1
+ const a92_0x118e59=a92_0x4b9a;(function(_0x4c2851,_0x4fd5d0){const _0x4f8fde=a92_0x4b9a,_0x2adc3c=_0x4c2851();while(!![]){try{const _0x374077=parseInt(_0x4f8fde(0x14e))/0x1*(-parseInt(_0x4f8fde(0x161))/0x2)+parseInt(_0x4f8fde(0x159))/0x3*(-parseInt(_0x4f8fde(0x154))/0x4)+parseInt(_0x4f8fde(0x165))/0x5+-parseInt(_0x4f8fde(0x164))/0x6+-parseInt(_0x4f8fde(0x13a))/0x7*(-parseInt(_0x4f8fde(0x16a))/0x8)+parseInt(_0x4f8fde(0x13b))/0x9*(parseInt(_0x4f8fde(0x16b))/0xa)+parseInt(_0x4f8fde(0x138))/0xb*(parseInt(_0x4f8fde(0x147))/0xc);if(_0x374077===_0x4fd5d0)break;else _0x2adc3c['push'](_0x2adc3c['shift']());}catch(_0x58037f){_0x2adc3c['push'](_0x2adc3c['shift']());}}}(a92_0x3229,0x378fc));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a92_0x3229(){const _0x52ef0f=['truncated\x20from\x20','2697252IqIMXo','1155875xrMnnk','file','Failed\x20to\x20report\x20platform\x20issue:\x20','cwd','POST','8nYuQLY','170dndNrG','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported','issue.description_original_bytes','originalBytes','descriptionSource:\x20','\x20secret(s):\x20','description','flagMissing','redacted\x20','11DqWfes','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','1656389bEerZJ','78669fkFCqt','validation','\x20bytes','description-file','issue.description_redactions','title','compress','Issue\x20description\x20file\x20is\x20empty:\x20','Platform\x20issue\x20reported\x20(','redactionCount','filter','descriptionFilePath','6461844iBdolE','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','push','descriptionFile:\x20','redactions:\x20','issue','truncated:\x20original\x20','278645sdHiOo','apiError','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','trim','join','report','4fbznYa','issue.title','message','length','str','597357quupIz','string','redactionKinds','truncated','Issue\x20description\x20cannot\x20be\x20empty.','descriptionSource','inline','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','2ROQWYz','sanitize'];a92_0x3229=function(){return _0x52ef0f;};return a92_0x3229();}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_0x118e59(0x13e);export const issueReport={'service':a92_0x118e59(0x14c),'command':a92_0x118e59(0x153),'description':a92_0x118e59(0x139),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a92_0x118e59(0x141),'flags':[{'name':a92_0x118e59(0x140),'type':'string','required':!![],'description':'One-line\x20issue\x20summary'},{'name':a92_0x118e59(0x135),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a92_0x118e59(0x15a),'description':a92_0x118e59(0x16d)}],async 'validate'(_0x4fa491){const _0x41486c=a92_0x118e59,_0x267662=_0x4fa491['str'](_0x41486c(0x140))['trim'](),_0x24c3d9=_0x4fa491[_0x41486c(0x158)](_0x41486c(0x135))['trim'](),_0x2585fb=_0x4fa491[_0x41486c(0x158)](DESCRIPTION_FILE_FLAG)[_0x41486c(0x151)]();if(!_0x267662)throw CliErrors[_0x41486c(0x136)](_0x41486c(0x140),_0x41486c(0x148));const _0x209992=_0x24c3d9[_0x41486c(0x157)]>0x0,_0x1eb88c=_0x2585fb['length']>0x0;if(_0x209992===_0x1eb88c)throw CliErrors['validation'](_0x41486c(0x16c),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x1eb88c){const _0x2c894c=resolve(process['cwd'](),_0x2585fb);if(!existsSync(_0x2c894c))throw CliErrors[_0x41486c(0x13c)]('File\x20not\x20found:\x20'+_0x2c894c);}},async 'dryRun'(_0x32876d){const _0x532f86=a92_0x118e59,_0x1cbeb0=await prepareIssueReport(_0x32876d);return{'method':_0x532f86(0x169),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1cbeb0[_0x532f86(0x140)],'issue.description':_0x1cbeb0[_0x532f86(0x135)],'issue.description_original_bytes':_0x1cbeb0[_0x532f86(0x162)]['originalBytes'],'issue.description_truncated':_0x1cbeb0[_0x532f86(0x162)][_0x532f86(0x15c)],'issue.description_redactions':_0x1cbeb0[_0x532f86(0x162)][_0x532f86(0x144)],'issue.description_redaction_kinds':_0x1cbeb0['sanitize'][_0x532f86(0x15b)][_0x532f86(0x152)](',')}},'description':[_0x532f86(0x160),_0x532f86(0x133)+_0x1cbeb0[_0x532f86(0x15e)],_0x1cbeb0[_0x532f86(0x146)]?_0x532f86(0x14a)+_0x1cbeb0[_0x532f86(0x146)]:null,_0x1cbeb0['sanitize'][_0x532f86(0x15c)]?_0x532f86(0x14d)+_0x1cbeb0[_0x532f86(0x162)][_0x532f86(0x132)]+_0x532f86(0x13d):null,_0x1cbeb0['sanitize'][_0x532f86(0x144)]>0x0?_0x532f86(0x14b)+_0x1cbeb0[_0x532f86(0x162)][_0x532f86(0x144)]+'\x20('+_0x1cbeb0[_0x532f86(0x162)]['redactionKinds']['join'](',\x20')+')':null][_0x532f86(0x145)](Boolean)['join']('\x0a')};},async 'execute'(_0x841f5f){const _0x524b68=a92_0x118e59,_0x477e24=await prepareIssueReport(_0x841f5f);try{await sendPlatformIssueCollectLog({'title':_0x477e24['title'],'description':_0x477e24[_0x524b68(0x135)],'sanitize':{'originalBytes':_0x477e24[_0x524b68(0x162)][_0x524b68(0x132)],'truncated':_0x477e24['sanitize'][_0x524b68(0x15c)],'redactionCount':_0x477e24[_0x524b68(0x162)][_0x524b68(0x144)],'redactionKinds':_0x477e24[_0x524b68(0x162)][_0x524b68(0x15b)]}});}catch(_0x15fc59){throw CliErrors[_0x524b68(0x14f)](_0x524b68(0x167)+(_0x15fc59 instanceof Error?_0x15fc59[_0x524b68(0x156)]:String(_0x15fc59)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x477e24[_0x524b68(0x162)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x524b68(0x155),'issue.description',_0x524b68(0x131),'issue.description_truncated',_0x524b68(0x13f),'issue.description_redaction_kinds'],'issue':{'title':_0x477e24[_0x524b68(0x140)],'descriptionLength':_0x477e24[_0x524b68(0x135)][_0x524b68(0x157)],'descriptionSource':_0x477e24[_0x524b68(0x15e)],..._0x477e24['descriptionFilePath']?{'descriptionFile':_0x477e24[_0x524b68(0x146)]}:{},'sanitize':{'originalBytes':_0x477e24[_0x524b68(0x162)][_0x524b68(0x132)],'truncated':_0x477e24['sanitize'][_0x524b68(0x15c)],'redactions':_0x477e24[_0x524b68(0x162)][_0x524b68(0x144)],'redactionKinds':_0x477e24[_0x524b68(0x162)][_0x524b68(0x15b)]}}}};}};function buildResultMessage(_0x5661bc){const _0x13e7db=a92_0x118e59,_0x4ce547=[];return _0x5661bc[_0x13e7db(0x15c)]&&_0x4ce547[_0x13e7db(0x149)](_0x13e7db(0x163)+_0x5661bc[_0x13e7db(0x132)]+_0x13e7db(0x13d)),_0x5661bc[_0x13e7db(0x144)]>0x0&&_0x4ce547[_0x13e7db(0x149)](_0x13e7db(0x137)+_0x5661bc[_0x13e7db(0x144)]+_0x13e7db(0x134)+_0x5661bc['redactionKinds'][_0x13e7db(0x152)](',\x20')),_0x4ce547[_0x13e7db(0x157)]===0x0?_0x13e7db(0x130):_0x13e7db(0x143)+_0x4ce547['join'](';\x20')+')';}function a92_0x4b9a(_0x27dcaa,_0x4bf82f){_0x27dcaa=_0x27dcaa-0x130;const _0x322960=a92_0x3229();let _0x4b9a5b=_0x322960[_0x27dcaa];return _0x4b9a5b;}async function prepareIssueReport(_0x1ae4ab){const _0x24cf12=a92_0x118e59,_0x37d14e=_0x1ae4ab[_0x24cf12(0x158)](_0x24cf12(0x140))['trim'](),_0x236eba=_0x1ae4ab[_0x24cf12(0x158)](_0x24cf12(0x135)),_0x6cb812=_0x1ae4ab[_0x24cf12(0x158)](DESCRIPTION_FILE_FLAG)[_0x24cf12(0x151)]();if(!_0x6cb812){const _0x548176=_0x236eba;if(!_0x548176[_0x24cf12(0x151)]())throw CliErrors['validation'](_0x24cf12(0x15d),_0x24cf12(0x150));const _0x39082f=sanitizeIssueDescription(_0x548176);return{'title':_0x37d14e,'description':_0x39082f[_0x24cf12(0x135)],'descriptionSource':_0x24cf12(0x15f),'sanitize':_0x39082f};}const _0x3f168d=resolve(process[_0x24cf12(0x168)](),_0x6cb812),_0x2e85a4=await readFile(_0x3f168d,'utf8');if(!_0x2e85a4['trim']())throw CliErrors['validation'](_0x24cf12(0x142)+_0x3f168d,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x5f0d8e=sanitizeIssueDescription(_0x2e85a4);return{'title':_0x37d14e,'description':_0x5f0d8e[_0x24cf12(0x135)],'descriptionSource':_0x24cf12(0x166),'descriptionFilePath':_0x3f168d,'sanitize':_0x5f0d8e};}
@@ -1 +1 @@
1
- function a93_0x2ece(_0x4b33c0,_0x2ab272){_0x4b33c0=_0x4b33c0-0x1df;const _0x5c16f9=a93_0x5c16();let _0x2ececc=_0x5c16f9[_0x4b33c0];return _0x2ececc;}const a93_0x284ac4=a93_0x2ece;function a93_0x5c16(){const _0x3a1bf6=['bearer-jwt','520275OHFRPq','4112694prRzgd','REDACTED:private-key','byteLength','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','62pCwbfx','includes','max','toString','replace','utf8','1152mqkFVk','cookie','pattern','private-key','242400JhWBGw','21183ZaGgnX','1041800VIjpnw','kind','string','label','access-key','1511124iXZMQl','push','authorization','REDACTED:access-key','REDACTED:bearer-jwt','from','1918CUmqHx','REDACTED:cookie'];a93_0x5c16=function(){return _0x3a1bf6;};return a93_0x5c16();}(function(_0x49d4e1,_0x369eb2){const _0x469695=a93_0x2ece,_0x1f5c7c=_0x49d4e1();while(!![]){try{const _0x3bdab9=parseInt(_0x469695(0x1ef))/0x1+-parseInt(_0x469695(0x1e5))/0x2*(-parseInt(_0x469695(0x1f0))/0x3)+-parseInt(_0x469695(0x1f1))/0x4+parseInt(_0x469695(0x1e0))/0x5+parseInt(_0x469695(0x1f6))/0x6+parseInt(_0x469695(0x1fc))/0x7*(parseInt(_0x469695(0x1eb))/0x8)+-parseInt(_0x469695(0x1e1))/0x9;if(_0x3bdab9===_0x369eb2)break;else _0x1f5c7c['push'](_0x1f5c7c['shift']());}catch(_0x30340e){_0x1f5c7c['push'](_0x1f5c7c['shift']());}}}(a93_0x5c16,0x21fe8));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a93_0x284ac4(0x1e4),REDACTION_RULES=[{'kind':a93_0x284ac4(0x1ec),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a93_0x284ac4(0x1fd)},{'kind':a93_0x284ac4(0x1f8),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a93_0x284ac4(0x1ee),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a93_0x284ac4(0x1e2)},{'kind':a93_0x284ac4(0x1f5),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a93_0x284ac4(0x1f9)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a93_0x284ac4(0x1df),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a93_0x284ac4(0x1fa)}];export function sanitizeIssueDescription(_0x198e9b){const _0x339630=a93_0x284ac4,_0x15fdd8=Buffer[_0x339630(0x1e3)](_0x198e9b,_0x339630(0x1ea)),_0xc37b9b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2178d5=_0x198e9b,_0x59a1cc=0x0;const _0x5163b4=[];if(!_0xc37b9b)for(const _0x443d23 of REDACTION_RULES){let _0xfb8ef4=0x0;_0x2178d5=_0x2178d5[_0x339630(0x1e9)](_0x443d23[_0x339630(0x1ed)],(_0x1b3be9,_0x55901b)=>{const _0x1d48fe=_0x339630;_0xfb8ef4+=0x1;const _0x43ae58=typeof _0x55901b===_0x1d48fe(0x1f3)?_0x55901b:'';return _0x43ae58+'['+_0x443d23[_0x1d48fe(0x1f4)]+']';}),_0xfb8ef4>0x0&&(_0x59a1cc+=_0xfb8ef4,!_0x5163b4[_0x339630(0x1e6)](_0x443d23['kind'])&&_0x5163b4[_0x339630(0x1f7)](_0x443d23[_0x339630(0x1f2)]));}let _0x3fe3c3=![];if(Buffer[_0x339630(0x1e3)](_0x2178d5,_0x339630(0x1ea))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3fe3c3=!![];const _0x141f96=Buffer[_0x339630(0x1e3)](TRUNCATION_NOTICE,_0x339630(0x1ea)),_0x7457ca=Math[_0x339630(0x1e7)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x141f96);_0x2178d5=sliceUtf8Bytes(_0x2178d5,_0x7457ca)+TRUNCATION_NOTICE;}return{'description':_0x2178d5,'originalBytes':_0x15fdd8,'truncated':_0x3fe3c3,'redactionCount':_0x59a1cc,'redactionKinds':_0x5163b4};}function sliceUtf8Bytes(_0x23eba9,_0x2c1803){const _0x38203c=a93_0x284ac4;if(_0x2c1803<=0x0)return'';const _0x593e1f=Buffer[_0x38203c(0x1fb)](_0x23eba9,'utf8');if(_0x593e1f['byteLength']<=_0x2c1803)return _0x23eba9;let _0x3c425c=_0x2c1803;while(_0x3c425c>0x0){const _0x388d4f=_0x593e1f[_0x3c425c];if(_0x388d4f===undefined||(_0x388d4f&0xc0)!==0x80)break;_0x3c425c-=0x1;}return _0x593e1f['subarray'](0x0,_0x3c425c)[_0x38203c(0x1e8)](_0x38203c(0x1ea));}
1
+ function a93_0x127e(){const _0x59bb15=['REDACTED:authorization','37602wmrqQL','authorization','35745XTYbdE','label','push','REDACTED:access-key','pattern','byteLength','2412543oVYUhN','from','toString','784990MwcNkz','string','includes','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','replace','REDACTED:private-key','REDACTED:bearer-jwt','cookie','access-key','4992642EpHHZM','private-key','6076496WfflEh','165btFEuB','18zTuelR','REDACTED:password','524yzfJZu','subarray','126ZDUllQ','kind','825906LxvvMS','utf8'];a93_0x127e=function(){return _0x59bb15;};return a93_0x127e();}const a93_0x10a299=a93_0x4713;function a93_0x4713(_0x4cfe9f,_0x4f06b9){_0x4cfe9f=_0x4cfe9f-0x9e;const _0x127eee=a93_0x127e();let _0x471365=_0x127eee[_0x4cfe9f];return _0x471365;}(function(_0x2a44c3,_0x5de388){const _0x2621fb=a93_0x4713,_0x5dacd5=_0x2a44c3();while(!![]){try{const _0x1030c4=parseInt(_0x2621fb(0xbb))/0x1+parseInt(_0x2621fb(0xbe))/0x2*(parseInt(_0x2621fb(0xb9))/0x3)+parseInt(_0x2621fb(0xb7))/0x4*(parseInt(_0x2621fb(0x9f))/0x5)+-parseInt(_0x2621fb(0xb5))/0x6*(parseInt(_0x2621fb(0xa5))/0x7)+parseInt(_0x2621fb(0xb3))/0x8+-parseInt(_0x2621fb(0xb1))/0x9+-parseInt(_0x2621fb(0xa8))/0xa*(parseInt(_0x2621fb(0xb4))/0xb);if(_0x1030c4===_0x5de388)break;else _0x5dacd5['push'](_0x5dacd5['shift']());}catch(_0x4ce773){_0x5dacd5['push'](_0x5dacd5['shift']());}}}(a93_0x127e,0x852b3));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a93_0x10a299(0xab),REDACTION_RULES=[{'kind':a93_0x10a299(0xaf),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a93_0x10a299(0x9e),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a93_0x10a299(0xbd)},{'kind':a93_0x10a299(0xb2),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a93_0x10a299(0xad)},{'kind':a93_0x10a299(0xb0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a93_0x10a299(0xa2)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a93_0x10a299(0xb6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a93_0x10a299(0xae)}];export function sanitizeIssueDescription(_0x16948d){const _0x4cbd29=a93_0x10a299,_0x38cbb9=Buffer[_0x4cbd29(0xa4)](_0x16948d,_0x4cbd29(0xbc)),_0x37ab5f=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xee5c8=_0x16948d,_0x3d7dd4=0x0;const _0x4dd2a9=[];if(!_0x37ab5f)for(const _0x14985a of REDACTION_RULES){let _0x5b5e8c=0x0;_0xee5c8=_0xee5c8[_0x4cbd29(0xac)](_0x14985a[_0x4cbd29(0xa3)],(_0x543668,_0x31497a)=>{const _0x30b236=_0x4cbd29;_0x5b5e8c+=0x1;const _0x564b27=typeof _0x31497a===_0x30b236(0xa9)?_0x31497a:'';return _0x564b27+'['+_0x14985a[_0x30b236(0xa0)]+']';}),_0x5b5e8c>0x0&&(_0x3d7dd4+=_0x5b5e8c,!_0x4dd2a9[_0x4cbd29(0xaa)](_0x14985a[_0x4cbd29(0xba)])&&_0x4dd2a9[_0x4cbd29(0xa1)](_0x14985a[_0x4cbd29(0xba)]));}let _0x18d185=![];if(Buffer[_0x4cbd29(0xa4)](_0xee5c8,_0x4cbd29(0xbc))>ISSUE_DESCRIPTION_MAX_BYTES){_0x18d185=!![];const _0x5ecc2d=Buffer[_0x4cbd29(0xa4)](TRUNCATION_NOTICE,_0x4cbd29(0xbc)),_0x34aa69=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5ecc2d);_0xee5c8=sliceUtf8Bytes(_0xee5c8,_0x34aa69)+TRUNCATION_NOTICE;}return{'description':_0xee5c8,'originalBytes':_0x38cbb9,'truncated':_0x18d185,'redactionCount':_0x3d7dd4,'redactionKinds':_0x4dd2a9};}function sliceUtf8Bytes(_0x532029,_0x419d9a){const _0x358ee5=a93_0x10a299;if(_0x419d9a<=0x0)return'';const _0x4cb9ea=Buffer[_0x358ee5(0xa6)](_0x532029,'utf8');if(_0x4cb9ea[_0x358ee5(0xa4)]<=_0x419d9a)return _0x532029;let _0x3c04e4=_0x419d9a;while(_0x3c04e4>0x0){const _0x2b383c=_0x4cb9ea[_0x3c04e4];if(_0x2b383c===undefined||(_0x2b383c&0xc0)!==0x80)break;_0x3c04e4-=0x1;}return _0x4cb9ea[_0x358ee5(0xb8)](0x0,_0x3c04e4)[_0x358ee5(0xa7)](_0x358ee5(0xbc));}
@@ -1 +1 @@
1
- const a94_0x9d4f=a94_0x5d24;(function(_0x232c1d,_0x118ef7){const _0x4e29fc=a94_0x5d24,_0x100acc=_0x232c1d();while(!![]){try{const _0x50f217=-parseInt(_0x4e29fc(0xad))/0x1+parseInt(_0x4e29fc(0xae))/0x2+parseInt(_0x4e29fc(0xaa))/0x3+-parseInt(_0x4e29fc(0xc2))/0x4+-parseInt(_0x4e29fc(0xa9))/0x5*(-parseInt(_0x4e29fc(0xb2))/0x6)+parseInt(_0x4e29fc(0xa7))/0x7*(-parseInt(_0x4e29fc(0xc6))/0x8)+-parseInt(_0x4e29fc(0xc1))/0x9*(-parseInt(_0x4e29fc(0xb3))/0xa);if(_0x50f217===_0x118ef7)break;else _0x100acc['push'](_0x100acc['shift']());}catch(_0x400c8b){_0x100acc['push'](_0x100acc['shift']());}}}(a94_0xcf39,0x2cc64));import{logger}from'../../utils/logger.js';function a94_0x5d24(_0x22a379,_0x469790){_0x22a379=_0x22a379-0xa7;const _0xcf390b=a94_0xcf39();let _0x5d2445=_0xcf390b[_0x22a379];return _0x5d2445;}function printLogs(_0x3f5b64){const _0x5f1195=a94_0x5d24;if(_0x3f5b64[_0x5f1195(0xc4)]===0x0){console[_0x5f1195(0xab)](_0x5f1195(0xb9));return;}console[_0x5f1195(0xab)](_0x5f1195(0xb4)),_0x3f5b64[_0x5f1195(0xb7)]((_0x798699,_0x895df7)=>{const _0x2322e9=_0x5f1195,_0x241b56=new Date(_0x798699[_0x2322e9(0xb8)])[_0x2322e9(0xbf)]('en-US'),_0x56c15f=_0x798699['level']===_0x2322e9(0xc3)?'√':_0x798699[_0x2322e9(0xbc)]===_0x2322e9(0xa8)?'×':_0x798699[_0x2322e9(0xbc)]==='warn'?'!':'i';console[_0x2322e9(0xab)](_0x895df7+0x1+'.\x20'+_0x56c15f+'\x20['+_0x798699['command']+']\x20'+_0x798699[_0x2322e9(0xbd)]),console[_0x2322e9(0xab)](_0x2322e9(0xb5)+_0x241b56),_0x798699[_0x2322e9(0xac)]&&console[_0x2322e9(0xab)](_0x2322e9(0xaf)+_0x798699['duration']+'ms'),_0x798699[_0x2322e9(0xc0)]&&Object[_0x2322e9(0xba)](_0x798699['details'])[_0x2322e9(0xc4)]>0x0&&console[_0x2322e9(0xab)](_0x2322e9(0xbb)+JSON['stringify'](_0x798699[_0x2322e9(0xc0)],null,0x2)),console[_0x2322e9(0xab)]('');});}function a94_0xcf39(){const _0xbc140d=['details','1617813EqiHgU','218212DtQMjl','success','length','*\x20Logs\x20cleared','8PBQopR','clear','2339729taszAz','error','84390obqbFV','340980sKTeFa','log','duration','289285VZWgzP','562276XRkOkF','\x20\x20\x20Duration:\x20','logs','View\x20command\x20history\x20logs','102WcyUIN','10NsmBIR','*\x20Lovrabet\x20CLI\x20logs:\x0a','\x20\x20\x20Time:\x20','show','forEach','timestamp','*\x20No\x20logs\x20found','keys','\x20\x20\x20Details:\x20','level','message','clearLogs','toLocaleString'];a94_0xcf39=function(){return _0xbc140d;};return a94_0xcf39();}export const logsDefinitions=[{'service':'logs','command':a94_0x9d4f(0xb6),'description':a94_0x9d4f(0xb1),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x58fff4){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a94_0x9d4f(0xb0),'command':a94_0x9d4f(0xc7),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x462770){const _0x1d0914=a94_0x9d4f;return logger[_0x1d0914(0xbe)](),console[_0x1d0914(0xab)](_0x1d0914(0xc5)),{'ok':!![]};}}];
1
+ const a94_0x448759=a94_0x1cce;function a94_0x1cce(_0x5ec215,_0x3104f9){_0x5ec215=_0x5ec215-0x175;const _0x431c4b=a94_0x431c();let _0x1cceb2=_0x431c4b[_0x5ec215];return _0x1cceb2;}(function(_0x57efc7,_0x52d13e){const _0xf48c95=a94_0x1cce,_0xbd30fb=_0x57efc7();while(!![]){try{const _0x49733d=parseInt(_0xf48c95(0x176))/0x1*(-parseInt(_0xf48c95(0x180))/0x2)+-parseInt(_0xf48c95(0x18e))/0x3+parseInt(_0xf48c95(0x183))/0x4*(-parseInt(_0xf48c95(0x17c))/0x5)+-parseInt(_0xf48c95(0x187))/0x6*(-parseInt(_0xf48c95(0x179))/0x7)+-parseInt(_0xf48c95(0x182))/0x8+parseInt(_0xf48c95(0x178))/0x9+parseInt(_0xf48c95(0x191))/0xa;if(_0x49733d===_0x52d13e)break;else _0xbd30fb['push'](_0xbd30fb['shift']());}catch(_0x2f4d40){_0xbd30fb['push'](_0xbd30fb['shift']());}}}(a94_0x431c,0x49c48));import{logger}from'../../utils/logger.js';function printLogs(_0x40d75a){const _0x3aa6c4=a94_0x1cce;if(_0x40d75a[_0x3aa6c4(0x17b)]===0x0){console[_0x3aa6c4(0x18d)](_0x3aa6c4(0x189));return;}console['log']('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x40d75a['forEach']((_0x27d0b7,_0x58d725)=>{const _0x30812d=_0x3aa6c4,_0x520a66=new Date(_0x27d0b7[_0x30812d(0x17e)])['toLocaleString']('en-US'),_0x1acb9f=_0x27d0b7[_0x30812d(0x195)]===_0x30812d(0x175)?'√':_0x27d0b7['level']===_0x30812d(0x193)?'×':_0x27d0b7[_0x30812d(0x195)]==='warn'?'!':'i';console[_0x30812d(0x18d)](_0x58d725+0x1+'.\x20'+_0x1acb9f+'\x20['+_0x27d0b7[_0x30812d(0x192)]+']\x20'+_0x27d0b7['message']),console[_0x30812d(0x18d)](_0x30812d(0x184)+_0x520a66),_0x27d0b7[_0x30812d(0x188)]&&console['log'](_0x30812d(0x18c)+_0x27d0b7[_0x30812d(0x188)]+'ms'),_0x27d0b7[_0x30812d(0x194)]&&Object[_0x30812d(0x18f)](_0x27d0b7[_0x30812d(0x194)])[_0x30812d(0x17b)]>0x0&&console[_0x30812d(0x18d)](_0x30812d(0x18b)+JSON[_0x30812d(0x190)](_0x27d0b7['details'],null,0x2)),console['log']('');});}function a94_0x431c(){const _0x32b31f=['success','168418nPAfxe','*\x20Logs\x20cleared','3850659JaozVa','70ITFbGR','clearLogs','length','34050vXQOfq','Clear\x20command\x20history\x20logs','timestamp','logs','4lWtxoJ','View\x20command\x20history\x20logs','4205456kShywQ','40dfTPgl','\x20\x20\x20Time:\x20','write','readLogs','299352POlRlk','duration','*\x20No\x20logs\x20found','read','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','log','104247QOPOQg','keys','stringify','3407480CmPXqD','command','error','details','level'];a94_0x431c=function(){return _0x32b31f;};return a94_0x431c();}export const logsDefinitions=[{'service':a94_0x448759(0x17f),'command':'show','description':a94_0x448759(0x181),'risk':a94_0x448759(0x18a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x342f04){const _0x4197a0=a94_0x448759;return printLogs(logger[_0x4197a0(0x186)]()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a94_0x448759(0x17d),'risk':a94_0x448759(0x185),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x347de8){const _0x379249=a94_0x448759;return logger[_0x379249(0x17a)](),console[_0x379249(0x18d)](_0x379249(0x177)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x5ea472,_0x3a990e){const _0x5e5c31=a95_0x45a2,_0x4188b8=_0x5ea472();while(!![]){try{const _0x9520f9=parseInt(_0x5e5c31(0xc9))/0x1*(parseInt(_0x5e5c31(0xcb))/0x2)+-parseInt(_0x5e5c31(0xc6))/0x3+-parseInt(_0x5e5c31(0xc8))/0x4+parseInt(_0x5e5c31(0xcd))/0x5+parseInt(_0x5e5c31(0xca))/0x6+-parseInt(_0x5e5c31(0xcc))/0x7*(parseInt(_0x5e5c31(0xce))/0x8)+-parseInt(_0x5e5c31(0xc7))/0x9;if(_0x9520f9===_0x3a990e)break;else _0x4188b8['push'](_0x4188b8['shift']());}catch(_0x7af91f){_0x4188b8['push'](_0x4188b8['shift']());}}}(a95_0x2b3c,0xf2eb6));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a95_0x2b3c(){const _0x43c26c=['4939452aPpJsm','38AxqZJS','7SEVlSd','9404840aDfqeW','5434752BrRqoe','2370369RDmLVH','12374793RuXeQB','503876BXLDPi','66379XpvTbY'];a95_0x2b3c=function(){return _0x43c26c;};return a95_0x2b3c();}function a95_0x45a2(_0x3167fc,_0x49a554){_0x3167fc=_0x3167fc-0xc6;const _0x2b3c8e=a95_0x2b3c();let _0x45a249=_0x2b3c8e[_0x3167fc];return _0x45a249;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x3181ed,_0x1f2bbd){const _0x5b9dce=a95_0x1d17,_0x4c5cf9=_0x3181ed();while(!![]){try{const _0x413786=-parseInt(_0x5b9dce(0x128))/0x1*(-parseInt(_0x5b9dce(0x12a))/0x2)+parseInt(_0x5b9dce(0x127))/0x3*(parseInt(_0x5b9dce(0x125))/0x4)+parseInt(_0x5b9dce(0x12c))/0x5+-parseInt(_0x5b9dce(0x12d))/0x6*(-parseInt(_0x5b9dce(0x12e))/0x7)+parseInt(_0x5b9dce(0x124))/0x8*(-parseInt(_0x5b9dce(0x126))/0x9)+-parseInt(_0x5b9dce(0x129))/0xa+-parseInt(_0x5b9dce(0x12b))/0xb*(parseInt(_0x5b9dce(0x123))/0xc);if(_0x413786===_0x1f2bbd)break;else _0x4c5cf9['push'](_0x4c5cf9['shift']());}catch(_0x42dbaa){_0x4c5cf9['push'](_0x4c5cf9['shift']());}}}(a95_0x16eb,0xe94e0));import{menuList}from'../../commands/menu/list.js';function a95_0x1d17(_0x17c5c6,_0x28a2d7){_0x17c5c6=_0x17c5c6-0x123;const _0x16ebaf=a95_0x16eb();let _0x1d1704=_0x16ebaf[_0x17c5c6];return _0x1d1704;}import{menuSync}from'../../commands/menu/sync.js';function a95_0x16eb(){const _0x45dcd2=['379686pexarh','210LhAvye','50275740ZrvUEV','490536hrizTe','119800YJULJN','9zTblag','111pBHhyN','9237TcFBVm','11614230NdFQcl','398IbDzVA','11WSUgAT','7616290EdJlZQ'];a95_0x16eb=function(){return _0x45dcd2;};return a95_0x16eb();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a96_0x6281f6=a96_0x317d;function a96_0x317d(_0x4aa493,_0x1c77be){_0x4aa493=_0x4aa493-0x15a;const _0x5003fd=a96_0x5003();let _0x317d0a=_0x5003fd[_0x4aa493];return _0x317d0a;}function a96_0x5003(){const _0x25e9a1=['5221623fRAqiI','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','type','isFinite','index','resources','menu','isArray','path','sort','cookie','list','depth','137045vNlPkS','verbose','670066XttQfn','visible','children','7VEDGMW','580730crSiJM','parentId','561006IiLrWz','\x20menu(s)','/smartapi/menu/find?appCode=','869166seoNUe','198nUpOcO','3QdVVPp','string','item','read','Fetch\x20menu\x20list','length','84YtmEYo','860792FDFvWc','number','No\x20menus\x20found.','parse','POSITIVE_INFINITY','boolean','map','push','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','appCode','extend'];a96_0x5003=function(){return _0x25e9a1;};return a96_0x5003();}(function(_0x39a9c2,_0x1f4434){const _0x24bad8=a96_0x317d,_0x3cfc58=_0x39a9c2();while(!![]){try{const _0x124555=parseInt(_0x24bad8(0x160))/0x1+-parseInt(_0x24bad8(0x166))/0x2*(-parseInt(_0x24bad8(0x16b))/0x3)+-parseInt(_0x24bad8(0x171))/0x4*(-parseInt(_0x24bad8(0x15e))/0x5)+parseInt(_0x24bad8(0x169))/0x6+parseInt(_0x24bad8(0x163))/0x7*(-parseInt(_0x24bad8(0x172))/0x8)+parseInt(_0x24bad8(0x16a))/0x9*(-parseInt(_0x24bad8(0x164))/0xa)+parseInt(_0x24bad8(0x17d))/0xb;if(_0x124555===_0x1f4434)break;else _0x3cfc58['push'](_0x3cfc58['shift']());}catch(_0x2e88d0){_0x3cfc58['push'](_0x3cfc58['shift']());}}}(a96_0x5003,0xb9abb));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_0x6281f6(0x183),'command':a96_0x6281f6(0x15c),'description':a96_0x6281f6(0x17e),'risk':a96_0x6281f6(0x16e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a96_0x6281f6(0x15f),'type':a96_0x6281f6(0x177),'description':a96_0x6281f6(0x17a)}],async 'execute'(_0x2c9a4c){const _0xd42c6e=a96_0x6281f6,_0xbce2d4=_0x2c9a4c['bool'](_0xd42c6e(0x15f)),_0x5de93d=await platformFetch(getApiDomain()+_0xd42c6e(0x168)+_0x2c9a4c[_0xd42c6e(0x17b)],{'cookie':_0x2c9a4c[_0xd42c6e(0x15b)],'label':_0xd42c6e(0x16f)}),_0x5680b6=flattenMenuItems(Array[_0xd42c6e(0x184)](_0x5de93d)?_0x5de93d:[],{'verbose':_0xbce2d4,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5680b6['length'],'menus':_0x5680b6},'message':_0x5680b6['length']===0x0?_0xd42c6e(0x174):'Found\x20'+_0x5680b6[_0xd42c6e(0x170)]+_0xd42c6e(0x167)};}};function flattenMenuItems(_0x37a530,_0x574030){const _0x5c0d3f=a96_0x6281f6,_0x1a6e90=sortMenuItems(_0x37a530),_0xaa347c=[];for(const _0x1346ab of _0x1a6e90){_0xaa347c[_0x5c0d3f(0x179)](toMenuListItem(_0x1346ab,_0x574030)),Array[_0x5c0d3f(0x184)](_0x1346ab['children'])&&_0x1346ab[_0x5c0d3f(0x162)][_0x5c0d3f(0x170)]>0x0&&_0xaa347c['push'](...flattenMenuItems(_0x1346ab[_0x5c0d3f(0x162)],{'verbose':_0x574030[_0x5c0d3f(0x15f)],'parentId':_0x1346ab['id'],'depth':_0x574030[_0x5c0d3f(0x15d)]+0x1}));}return _0xaa347c;}function sortMenuItems(_0x4ce201){const _0x4e9594=a96_0x6281f6;return _0x4ce201[_0x4e9594(0x178)]((_0x4e76a6,_0x128d79)=>({'item':_0x4e76a6,'index':_0x128d79}))['sort']((_0x5ead5e,_0x393e66)=>{const _0x5c3a40=_0x4e9594,_0x36f021=normalizeSort(_0x5ead5e[_0x5c3a40(0x16d)][_0x5c3a40(0x15a)]),_0x3a2fbf=normalizeSort(_0x393e66[_0x5c3a40(0x16d)][_0x5c3a40(0x15a)]);if(_0x36f021!==_0x3a2fbf)return _0x36f021-_0x3a2fbf;return _0x5ead5e[_0x5c3a40(0x181)]-_0x393e66[_0x5c3a40(0x181)];})[_0x4e9594(0x178)](({item:_0x4cef4b})=>_0x4cef4b);}function toMenuListItem(_0x28cb18,_0x5c53e5){const _0x95f5ae=a96_0x6281f6,_0x15712a={'id':_0x28cb18['id'],'parentId':_0x5c53e5[_0x95f5ae(0x165)],'depth':_0x5c53e5[_0x95f5ae(0x15d)],'label':normalizeString(_0x28cb18['label']),'path':normalizeString(_0x28cb18[_0x95f5ae(0x185)]),'type':normalizeString(_0x28cb18[_0x95f5ae(0x17f)]),'visible':typeof _0x28cb18[_0x95f5ae(0x161)]===_0x95f5ae(0x177)?_0x28cb18[_0x95f5ae(0x161)]:null,'sort':typeof _0x28cb18[_0x95f5ae(0x15a)]===_0x95f5ae(0x173)&&Number['isFinite'](_0x28cb18[_0x95f5ae(0x15a)])?_0x28cb18[_0x95f5ae(0x15a)]:null,'resources':normalizeResources(_0x28cb18['extend']?.[_0x95f5ae(0x182)])};return _0x5c53e5['verbose']&&(_0x15712a['extend']=_0x28cb18[_0x95f5ae(0x17c)]??null),_0x15712a;}function normalizeSort(_0x2ce92a){const _0xe233ff=a96_0x6281f6;return typeof _0x2ce92a==='number'&&Number[_0xe233ff(0x180)](_0x2ce92a)?_0x2ce92a:Number[_0xe233ff(0x176)];}function normalizeString(_0x37c69c){const _0xf22b20=a96_0x6281f6;return typeof _0x37c69c===_0xf22b20(0x16c)?_0x37c69c:'';}function normalizeResources(_0x2ed5f5){const _0x240914=a96_0x6281f6;if(Array[_0x240914(0x184)](_0x2ed5f5))return _0x2ed5f5[_0x240914(0x178)](String);if(typeof _0x2ed5f5!==_0x240914(0x16c))return[];try{const _0x127435=JSON[_0x240914(0x175)](_0x2ed5f5);return Array[_0x240914(0x184)](_0x127435)?_0x127435[_0x240914(0x178)](String):[];}catch{return[];}}
1
+ const a96_0x22249d=a96_0x1f23;(function(_0x27fd1a,_0x1107cd){const _0x1aeea8=a96_0x1f23,_0x21f8de=_0x27fd1a();while(!![]){try{const _0x5b92bb=-parseInt(_0x1aeea8(0x108))/0x1*(parseInt(_0x1aeea8(0x109))/0x2)+parseInt(_0x1aeea8(0xfb))/0x3*(parseInt(_0x1aeea8(0xf8))/0x4)+parseInt(_0x1aeea8(0x10c))/0x5+parseInt(_0x1aeea8(0x103))/0x6+parseInt(_0x1aeea8(0x119))/0x7+-parseInt(_0x1aeea8(0x11b))/0x8*(-parseInt(_0x1aeea8(0x10b))/0x9)+parseInt(_0x1aeea8(0xf9))/0xa*(-parseInt(_0x1aeea8(0xfc))/0xb);if(_0x5b92bb===_0x1107cd)break;else _0x21f8de['push'](_0x21f8de['shift']());}catch(_0x238644){_0x21f8de['push'](_0x21f8de['shift']());}}}(a96_0x241c,0x8d99c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a96_0x241c(){const _0x56c1f5=['verbose','isArray','extend','map','type','list','8063601YPPZbB','index','35008olBGUo','Found\x20','push','No\x20menus\x20found.','boolean','332qZjPic','2870OLZaAc','POSITIVE_INFINITY','22758diemCE','122672dUmpRj','parse','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','Fetch\x20menu\x20list','number','appCode','parentId','5002446ysidNZ','item','children','visible','string','130452eGUrgl','4yBIpcV','length','2070eCBsvk','2098610zNIFHZ','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','path','depth','sort','label','isFinite'];a96_0x241c=function(){return _0x56c1f5;};return a96_0x241c();}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':'menu','command':a96_0x22249d(0x118),'description':a96_0x22249d(0xfe),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a96_0x22249d(0x113),'type':a96_0x22249d(0xf7),'description':a96_0x22249d(0x10d)}],async 'execute'(_0x5eabf9){const _0x1160c7=a96_0x22249d,_0x53ca1b=_0x5eabf9['bool'](_0x1160c7(0x113)),_0x250ecc=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x5eabf9[_0x1160c7(0x101)],{'cookie':_0x5eabf9['cookie'],'label':_0x1160c7(0xff)}),_0x5b9cb1=flattenMenuItems(Array[_0x1160c7(0x114)](_0x250ecc)?_0x250ecc:[],{'verbose':_0x53ca1b,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5b9cb1['length'],'menus':_0x5b9cb1},'message':_0x5b9cb1['length']===0x0?_0x1160c7(0xf6):_0x1160c7(0x11c)+_0x5b9cb1[_0x1160c7(0x10a)]+'\x20menu(s)'};}};function flattenMenuItems(_0x4d80f3,_0x52dc29){const _0x187332=a96_0x22249d,_0x4e5ab1=sortMenuItems(_0x4d80f3),_0x1ee6dc=[];for(const _0x3e8ceb of _0x4e5ab1){_0x1ee6dc[_0x187332(0x11d)](toMenuListItem(_0x3e8ceb,_0x52dc29)),Array[_0x187332(0x114)](_0x3e8ceb[_0x187332(0x105)])&&_0x3e8ceb[_0x187332(0x105)][_0x187332(0x10a)]>0x0&&_0x1ee6dc[_0x187332(0x11d)](...flattenMenuItems(_0x3e8ceb[_0x187332(0x105)],{'verbose':_0x52dc29['verbose'],'parentId':_0x3e8ceb['id'],'depth':_0x52dc29[_0x187332(0x10f)]+0x1}));}return _0x1ee6dc;}function sortMenuItems(_0x5edb3d){const _0x304a3a=a96_0x22249d;return _0x5edb3d[_0x304a3a(0x116)]((_0x4a5c67,_0x54439a)=>({'item':_0x4a5c67,'index':_0x54439a}))[_0x304a3a(0x110)]((_0x181821,_0x1de49e)=>{const _0x3433e1=_0x304a3a,_0xb0a969=normalizeSort(_0x181821['item']['sort']),_0x2aaeff=normalizeSort(_0x1de49e[_0x3433e1(0x104)]['sort']);if(_0xb0a969!==_0x2aaeff)return _0xb0a969-_0x2aaeff;return _0x181821[_0x3433e1(0x11a)]-_0x1de49e[_0x3433e1(0x11a)];})[_0x304a3a(0x116)](({item:_0x541747})=>_0x541747);}function toMenuListItem(_0x213cc9,_0x1c084e){const _0x517df2=a96_0x22249d,_0x3e9e14={'id':_0x213cc9['id'],'parentId':_0x1c084e[_0x517df2(0x102)],'depth':_0x1c084e['depth'],'label':normalizeString(_0x213cc9[_0x517df2(0x111)]),'path':normalizeString(_0x213cc9[_0x517df2(0x10e)]),'type':normalizeString(_0x213cc9[_0x517df2(0x117)]),'visible':typeof _0x213cc9[_0x517df2(0x106)]===_0x517df2(0xf7)?_0x213cc9[_0x517df2(0x106)]:null,'sort':typeof _0x213cc9[_0x517df2(0x110)]===_0x517df2(0x100)&&Number[_0x517df2(0x112)](_0x213cc9[_0x517df2(0x110)])?_0x213cc9[_0x517df2(0x110)]:null,'resources':normalizeResources(_0x213cc9[_0x517df2(0x115)]?.['resources'])};return _0x1c084e[_0x517df2(0x113)]&&(_0x3e9e14[_0x517df2(0x115)]=_0x213cc9['extend']??null),_0x3e9e14;}function a96_0x1f23(_0x72e258,_0x25458d){_0x72e258=_0x72e258-0xf6;const _0x241cb2=a96_0x241c();let _0x1f2376=_0x241cb2[_0x72e258];return _0x1f2376;}function normalizeSort(_0x3ae603){const _0x364294=a96_0x22249d;return typeof _0x3ae603===_0x364294(0x100)&&Number[_0x364294(0x112)](_0x3ae603)?_0x3ae603:Number[_0x364294(0xfa)];}function normalizeString(_0x90bc23){const _0x3f9a18=a96_0x22249d;return typeof _0x90bc23===_0x3f9a18(0x107)?_0x90bc23:'';}function normalizeResources(_0x303e91){const _0x1aa33f=a96_0x22249d;if(Array[_0x1aa33f(0x114)](_0x303e91))return _0x303e91[_0x1aa33f(0x116)](String);if(typeof _0x303e91!==_0x1aa33f(0x107))return[];try{const _0xd299d1=JSON[_0x1aa33f(0xfd)](_0x303e91);return Array['isArray'](_0xd299d1)?_0xd299d1[_0x1aa33f(0x116)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a97_0x45af(){const _0x4d98a1=['1478110QFQjqn','403605swOUDF','path','test','join','12lLqNDT','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','push','8QsrqZq','100NTQYiH','803064onCIRq','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','161055QsGNWS','(unchanged)','Platform','2223276uPYOpK','\x20\x20\x20\x20JS:\x20\x20','max','18717sPafWR','Menu\x20Name','label','showOnline','length','4102588rfkmHP','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','220RVLVOR','\x20\x20No\x20pages\x20to\x20sync.','repeat','\x20\x20\x20\x20CSS:\x20','Local','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20•\x20'];a97_0x45af=function(){return _0x4d98a1;};return a97_0x45af();}function a97_0x5644(_0x166b1,_0xb2de4e){_0x166b1=_0x166b1-0x1b6;const _0x45af30=a97_0x45af();let _0x5644ad=_0x45af30[_0x166b1];return _0x5644ad;}(function(_0x5d2246,_0x4efa20){const _0x367303=a97_0x5644,_0x32802a=_0x5d2246();while(!![]){try{const _0x2785a6=-parseInt(_0x367303(0x1ca))/0x1+-parseInt(_0x367303(0x1c8))/0x2+-parseInt(_0x367303(0x1d0))/0x3*(parseInt(_0x367303(0x1b7))/0x4)+parseInt(_0x367303(0x1be))/0x5*(parseInt(_0x367303(0x1c3))/0x6)+parseInt(_0x367303(0x1d5))/0x7*(parseInt(_0x367303(0x1c6))/0x8)+parseInt(_0x367303(0x1bf))/0x9*(parseInt(_0x367303(0x1c7))/0xa)+-parseInt(_0x367303(0x1cd))/0xb;if(_0x2785a6===_0x4efa20)break;else _0x32802a['push'](_0x32802a['shift']());}catch(_0x33a7a7){_0x32802a['push'](_0x32802a['shift']());}}}(a97_0x45af,0x7e72a));function strWidth(_0x2dcfe7){const _0x284518=a97_0x5644;let _0x1ce40a=0x0;for(const _0x5f993e of _0x2dcfe7){_0x1ce40a+=/[\u4e00-\u9fa5]/[_0x284518(0x1c1)](_0x5f993e)?0x2:0x1;}return _0x1ce40a;}function padRight(_0x198e07,_0x333576){const _0x1421ad=a97_0x5644,_0x49a342=strWidth(_0x198e07);return _0x198e07+'\x20'[_0x1421ad(0x1b9)](Math[_0x1421ad(0x1cf)](0x0,_0x333576-_0x49a342));}export function renderCompareTable(_0x1e1db5,_0x126140={}){const _0x18c5ba=a97_0x5644;if(_0x1e1db5[_0x18c5ba(0x1d4)]===0x0)return'';const _0x28c597=_0x126140[_0x18c5ba(0x1d3)]??!![],_0x2074bb=Math['max'](0x1e,..._0x1e1db5['map'](_0x544f0a=>strWidth(_0x544f0a['label']))),_0x10b56f=0x4,_0x560f44=[],_0x4439b2='\x20\x20'+padRight(_0x18c5ba(0x1d1),_0x2074bb),_0x12310d=padRight(_0x18c5ba(0x1bb),_0x10b56f),_0x54c69e=_0x28c597?'\x20\x20'+padRight(_0x18c5ba(0x1cc),_0x10b56f):'';_0x560f44[_0x18c5ba(0x1c5)](_0x4439b2+'\x20\x20'+_0x12310d+(_0x28c597?_0x54c69e:'')),_0x560f44['push']('\x20\x20'+'─'[_0x18c5ba(0x1b9)](_0x2074bb)+'\x20\x20'+'─'[_0x18c5ba(0x1b9)](_0x10b56f)+(_0x28c597?'\x20\x20'+'─'[_0x18c5ba(0x1b9)](_0x10b56f):''));for(const _0x1e93d0 of _0x1e1db5){const _0x3b0c0c=padRight(_0x1e93d0[_0x18c5ba(0x1d2)],_0x2074bb),_0x3b1dc8=_0x1e93d0['local']?'✓':'✗',_0x32c8c1=padRight(_0x3b1dc8,_0x10b56f);let _0x2a34ba='\x20\x20'+_0x3b0c0c+'\x20\x20'+_0x32c8c1;if(_0x28c597){const _0x78efd0=_0x1e93d0['online']?'✓':'✗';_0x2a34ba+='\x20\x20'+padRight(_0x78efd0,_0x10b56f);}_0x560f44[_0x18c5ba(0x1c5)](_0x2a34ba);}return _0x560f44[_0x18c5ba(0x1c2)]('\x0a');}export function renderSyncSummary(_0x3c5c72,_0xa401eb){const _0x4cc22b=a97_0x5644;if(_0x3c5c72[_0x4cc22b(0x1d4)]===0x0)return _0xa401eb?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x4cc22b(0x1b8);const _0x100988=['\x20\x20'+_0x3c5c72[_0x4cc22b(0x1d4)]+_0x4cc22b(0x1c9)];for(const _0x391017 of _0x3c5c72){_0x100988['push'](_0x4cc22b(0x1bd)+_0x391017[_0x4cc22b(0x1d2)]+'\x20('+_0x391017[_0x4cc22b(0x1c0)]+')');}return _0x100988[_0x4cc22b(0x1c2)]('\x0a');}export function renderUpdateSummary(_0x6a2394,_0x2e5786){const _0x116a46=a97_0x5644;if(_0x6a2394[_0x116a46(0x1d4)]===0x0)return _0x116a46(0x1b6);const _0x1a79c9=['\x20\x20'+_0x6a2394[_0x116a46(0x1d4)]+_0x116a46(0x1c4),_0x116a46(0x1ce)+(_0x2e5786[0x0]??'(unchanged)'),_0x116a46(0x1ba)+(_0x2e5786[0x1]??_0x116a46(0x1cb)),'',_0x116a46(0x1bc)+_0x6a2394[_0x116a46(0x1c2)](',\x20')];return _0x1a79c9[_0x116a46(0x1c2)]('\x0a');}
1
+ function a97_0x3e2a(_0x2ca695,_0x1ea00d){_0x2ca695=_0x2ca695-0x155;const _0x315699=a97_0x3156();let _0x3e2a93=_0x315699[_0x2ca695];return _0x3e2a93;}(function(_0x1b8d87,_0xdc71b0){const _0x8dea8=a97_0x3e2a,_0x3578ac=_0x1b8d87();while(!![]){try{const _0x30b663=-parseInt(_0x8dea8(0x165))/0x1+-parseInt(_0x8dea8(0x15c))/0x2*(parseInt(_0x8dea8(0x170))/0x3)+parseInt(_0x8dea8(0x164))/0x4*(parseInt(_0x8dea8(0x16f))/0x5)+parseInt(_0x8dea8(0x166))/0x6+-parseInt(_0x8dea8(0x16e))/0x7+parseInt(_0x8dea8(0x160))/0x8+parseInt(_0x8dea8(0x156))/0x9;if(_0x30b663===_0xdc71b0)break;else _0x3578ac['push'](_0x3578ac['shift']());}catch(_0x259517){_0x3578ac['push'](_0x3578ac['shift']());}}}(a97_0x3156,0x4d172));function a97_0x3156(){const _0x548299=['\x20\x20\x20\x20CSS:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20\x20\x20•\x20','2451197SrUevH','31930oSWcXV','102075wcBGuo','online','9435249bPVmEF','repeat','max','label','join','local','20uYxnyw','Local','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','showOnline','3559344gfIVOB','push','\x20\x20Affected\x20menus:\x20','path','48UWpGFn','577043RFVTba','79890CeawDm','Menu\x20Name','length','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:'];a97_0x3156=function(){return _0x548299;};return a97_0x3156();}function strWidth(_0xcc68d9){let _0x24368b=0x0;for(const _0x127274 of _0xcc68d9){_0x24368b+=/[\u4e00-\u9fa5]/['test'](_0x127274)?0x2:0x1;}return _0x24368b;}function padRight(_0x2f50ca,_0x6983dd){const _0x20c89b=a97_0x3e2a,_0x2cef69=strWidth(_0x2f50ca);return _0x2f50ca+'\x20'[_0x20c89b(0x157)](Math['max'](0x0,_0x6983dd-_0x2cef69));}export function renderCompareTable(_0x4d4441,_0xbb6fc6={}){const _0x4b2f36=a97_0x3e2a;if(_0x4d4441['length']===0x0)return'';const _0x264a8d=_0xbb6fc6[_0x4b2f36(0x15f)]??!![],_0x33cc77=Math[_0x4b2f36(0x158)](0x1e,..._0x4d4441['map'](_0x73adf7=>strWidth(_0x73adf7[_0x4b2f36(0x159)]))),_0x16683e=0x4,_0x16f5ca=[],_0xd8427e='\x20\x20'+padRight(_0x4b2f36(0x167),_0x33cc77),_0x405394=padRight(_0x4b2f36(0x15d),_0x16683e),_0x160c67=_0x264a8d?'\x20\x20'+padRight('Platform',_0x16683e):'';_0x16f5ca['push'](_0xd8427e+'\x20\x20'+_0x405394+(_0x264a8d?_0x160c67:'')),_0x16f5ca[_0x4b2f36(0x161)]('\x20\x20'+'─'[_0x4b2f36(0x157)](_0x33cc77)+'\x20\x20'+'─'['repeat'](_0x16683e)+(_0x264a8d?'\x20\x20'+'─'[_0x4b2f36(0x157)](_0x16683e):''));for(const _0x5e313e of _0x4d4441){const _0x9525dd=padRight(_0x5e313e[_0x4b2f36(0x159)],_0x33cc77),_0x1cf22e=_0x5e313e[_0x4b2f36(0x15b)]?'✓':'✗',_0x196b6a=padRight(_0x1cf22e,_0x16683e);let _0x5054d4='\x20\x20'+_0x9525dd+'\x20\x20'+_0x196b6a;if(_0x264a8d){const _0x676fca=_0x5e313e[_0x4b2f36(0x155)]?'✓':'✗';_0x5054d4+='\x20\x20'+padRight(_0x676fca,_0x16683e);}_0x16f5ca[_0x4b2f36(0x161)](_0x5054d4);}return _0x16f5ca[_0x4b2f36(0x15a)]('\x0a');}export function renderSyncSummary(_0x4f542e,_0x1a7a4){const _0x7465a1=a97_0x3e2a;if(_0x4f542e[_0x7465a1(0x168)]===0x0)return _0x1a7a4?_0x7465a1(0x15e):'\x20\x20No\x20pages\x20to\x20sync.';const _0x2f0d2a=['\x20\x20'+_0x4f542e[_0x7465a1(0x168)]+_0x7465a1(0x169)];for(const _0x4919fa of _0x4f542e){_0x2f0d2a['push'](_0x7465a1(0x16d)+_0x4919fa[_0x7465a1(0x159)]+'\x20('+_0x4919fa[_0x7465a1(0x163)]+')');}return _0x2f0d2a[_0x7465a1(0x15a)]('\x0a');}export function renderUpdateSummary(_0x4d65fd,_0x7ac61a){const _0xcc9790=a97_0x3e2a;if(_0x4d65fd['length']===0x0)return _0xcc9790(0x16c);const _0x4f991b=['\x20\x20'+_0x4d65fd[_0xcc9790(0x168)]+_0xcc9790(0x16a),'\x20\x20\x20\x20JS:\x20\x20'+(_0x7ac61a[0x0]??'(unchanged)'),_0xcc9790(0x16b)+(_0x7ac61a[0x1]??'(unchanged)'),'',_0xcc9790(0x162)+_0x4d65fd[_0xcc9790(0x15a)](',\x20')];return _0x4f991b[_0xcc9790(0x15a)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1d4f14,_0x6afbbb){var _0x38130f=a98_0x112b,_0xce05c8=_0x1d4f14();while(!![]){try{var _0x2d2eed=-parseInt(_0x38130f(0x110))/0x1*(-parseInt(_0x38130f(0x10e))/0x2)+-parseInt(_0x38130f(0x10d))/0x3+parseInt(_0x38130f(0x10b))/0x4+-parseInt(_0x38130f(0x10a))/0x5+-parseInt(_0x38130f(0x106))/0x6*(-parseInt(_0x38130f(0x108))/0x7)+parseInt(_0x38130f(0x109))/0x8*(parseInt(_0x38130f(0x107))/0x9)+-parseInt(_0x38130f(0x10f))/0xa*(parseInt(_0x38130f(0x10c))/0xb);if(_0x2d2eed===_0x6afbbb)break;else _0xce05c8['push'](_0xce05c8['shift']());}catch(_0x21aaae){_0xce05c8['push'](_0xce05c8['shift']());}}}(a98_0x3d04,0xb9714));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';function a98_0x112b(_0x20c902,_0x1844c9){_0x20c902=_0x20c902-0x106;var _0x3d04dc=a98_0x3d04();var _0x112bde=_0x3d04dc[_0x20c902];return _0x112bde;}export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a98_0x3d04(){var _0x378b86=['11jUSJLo','2151585vfUcSE','8YAsmHa','14230630FvmAou','157901JhVJpI','798xHJHyk','9uspbTg','79877pLcFsX','6994776ceHgVf','4053615SequNn','2747756LOyMXE'];a98_0x3d04=function(){return _0x378b86;};return a98_0x3d04();}export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x4fd2fc,_0x2f64a5){var _0x7977d2=a98_0x3088,_0x4676a9=_0x4fd2fc();while(!![]){try{var _0x1ad346=-parseInt(_0x7977d2(0xe2))/0x1+-parseInt(_0x7977d2(0xeb))/0x2+-parseInt(_0x7977d2(0xe6))/0x3+parseInt(_0x7977d2(0xe5))/0x4*(-parseInt(_0x7977d2(0xe7))/0x5)+-parseInt(_0x7977d2(0xea))/0x6*(-parseInt(_0x7977d2(0xe3))/0x7)+-parseInt(_0x7977d2(0xe4))/0x8*(-parseInt(_0x7977d2(0xe1))/0x9)+-parseInt(_0x7977d2(0xe9))/0xa*(parseInt(_0x7977d2(0xe8))/0xb);if(_0x1ad346===_0x2f64a5)break;else _0x4676a9['push'](_0x4676a9['shift']());}catch(_0x4f602){_0x4676a9['push'](_0x4676a9['shift']());}}}(a98_0x3cd1,0x7ed73));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a98_0x3088(_0x2eaa3e,_0x24ecf5){_0x2eaa3e=_0x2eaa3e-0xe1;var _0x3cd18e=a98_0x3cd1();var _0x30885e=_0x3cd18e[_0x2eaa3e];return _0x30885e;}export*from'../../../commands/menu/shared/compare-table.js';function a98_0x3cd1(){var _0xd12f85=['8GXdsvW','59748aymTno','1624134vMHkCQ','20bitJsm','33nAMDau','235370nSrFEy','6HQbiFQ','134978bzficu','4898727lkhXHA','304489LdXvdT','7132657tfHkak'];a98_0x3cd1=function(){return _0xd12f85;};return a98_0x3cd1();}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 +1 @@
1
- (function(_0x2bd95c,_0x2b92d5){const _0x37cbf2=a99_0x315a,_0x30f242=_0x2bd95c();while(!![]){try{const _0x2c3dc5=parseInt(_0x37cbf2(0x77))/0x1*(-parseInt(_0x37cbf2(0x8d))/0x2)+-parseInt(_0x37cbf2(0x6b))/0x3+-parseInt(_0x37cbf2(0x8b))/0x4+-parseInt(_0x37cbf2(0x64))/0x5*(-parseInt(_0x37cbf2(0x85))/0x6)+parseInt(_0x37cbf2(0x79))/0x7*(-parseInt(_0x37cbf2(0x73))/0x8)+parseInt(_0x37cbf2(0x6f))/0x9*(parseInt(_0x37cbf2(0x7c))/0xa)+parseInt(_0x37cbf2(0x7f))/0xb;if(_0x2c3dc5===_0x2b92d5)break;else _0x30f242['push'](_0x30f242['shift']());}catch(_0x2ef827){_0x30f242['push'](_0x30f242['shift']());}}}(a99_0x3dbe,0xb6f10));function a99_0x3dbe(){const _0x571a5b=['start','3015249tnjCkt','path','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','9AsyZBT','stdin','includes','JS\x20URL\x20check\x20failed','1691992TelEwP','trim','map','label','3246KyEheH','JS\x20URL\x20checked','14LyRlaa','cancelled','CSS\x20URL\x20checked','3678830YRHsNh','\x20\x20CSS\x20URL:','No\x20menus\x20selected.','15801247zpLytc','red','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','filter','\x20\x20Checking\x20JS\x20URL\x20reachability...','error','18yZUUAO','CSS\x20URL\x20check\x20failed','[new]','length','has','green','635524xiMNiQ','fail','424oweuwP','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','gray','2033470GcPPsx','\x20\x20Checking\x20CSS\x20URL\x20reachability...','cyan','[already\x20on\x20platform]','test','Cancelled.'];a99_0x3dbe=function(){return _0x571a5b;};return a99_0x3dbe();}import a99_0x49699e from'chalk';function a99_0x315a(_0x38d053,_0x59aa89){_0x38d053=_0x38d053-0x64;const _0x3dbe53=a99_0x3dbe();let _0x315a96=_0x3dbe53[_0x38d053];return _0x315a96;}import{checkbox,input,confirm}from'@inquirer/prompts';import a99_0x52d077 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x11a16b){return _0x11a16b['catch'](_0x1e09df=>{const _0x109274=a99_0x315a;if(_0x1e09df?.['name']==='ExitPromptError')throw CliErrors[_0x109274(0x7a)](_0x109274(0x69));throw _0x1e09df;});}export function startSpinner(_0x468447){const _0x4ce407=a99_0x315a;return a99_0x52d077({'text':_0x468447,'color':_0x4ce407(0x66)})[_0x4ce407(0x6a)]();}export function stopSpinner(_0x47f1fa,_0x19ebca,_0x1df333){const _0x1ed74f=a99_0x315a;_0x1df333?_0x47f1fa['succeed'](_0x19ebca):_0x47f1fa[_0x1ed74f(0x8c)](_0x19ebca);}export async function askConfirm(_0x5d5165){return onCancel(confirm({'message':_0x5d5165,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5dd10a){const _0x499745=a99_0x315a;while(!![]){const _0x4cfd13=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x5dd10a,'theme':{'prefix':''}}));if(_0x4cfd13[_0x499745(0x74)]()==='')throw CliErrors[_0x499745(0x7a)](_0x499745(0x69));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x499745(0x68)](_0x4cfd13[_0x499745(0x74)]())){console[_0x499745(0x84)](a99_0x49699e[_0x499745(0x80)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x429ffa=startSpinner(_0x499745(0x83));try{const _0x42ca63=await isUrlReachable(_0x4cfd13[_0x499745(0x74)]());stopSpinner(_0x429ffa,_0x499745(0x78),_0x42ca63);if(!_0x42ca63){console[_0x499745(0x84)](a99_0x49699e['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x4cfd13[_0x499745(0x74)]();}catch(_0x214119){stopSpinner(_0x429ffa,_0x499745(0x72),![]);throw _0x214119;}}}export async function askCssUrl(_0xda35e1){const _0x2a5764=a99_0x315a;while(!![]){const _0x512529=await onCancel(input({'message':_0x2a5764(0x7d),'default':_0xda35e1,'theme':{'prefix':''}}));if(_0x512529[_0x2a5764(0x74)]()==='')throw CliErrors[_0x2a5764(0x7a)](_0x2a5764(0x69));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x2a5764(0x68)](_0x512529[_0x2a5764(0x74)]())){console[_0x2a5764(0x84)](a99_0x49699e[_0x2a5764(0x80)](_0x2a5764(0x6e)));continue;}const _0x321ff3=startSpinner(_0x2a5764(0x65));try{const _0x36df01=await isUrlReachable(_0x512529[_0x2a5764(0x74)]());stopSpinner(_0x321ff3,_0x2a5764(0x7b),_0x36df01);if(!_0x36df01){console[_0x2a5764(0x84)](a99_0x49699e['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x512529[_0x2a5764(0x74)]();}catch(_0x3044d8){stopSpinner(_0x321ff3,_0x2a5764(0x86),![]);throw _0x3044d8;}}}export async function selectPages(_0x455a09,_0x2cf5a0,_0x139cc6){const _0xd5c136=a99_0x315a,_0x4b6073=_0x455a09[_0xd5c136(0x75)](_0x11d37e=>({'name':_0x11d37e['label']+'\x20\x20'+(_0x2cf5a0[_0xd5c136(0x89)](_0x11d37e[_0xd5c136(0x6c)])?a99_0x49699e[_0xd5c136(0x8f)](_0xd5c136(0x67)):a99_0x49699e[_0xd5c136(0x8a)](_0xd5c136(0x87))),'value':_0x11d37e[_0xd5c136(0x76)],'checked':_0x139cc6?_0x139cc6[_0xd5c136(0x71)](_0x11d37e['label']):!_0x2cf5a0[_0xd5c136(0x89)](_0x11d37e[_0xd5c136(0x6c)])}));if(_0x4b6073[_0xd5c136(0x88)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x319143=await onCancel(checkbox({'message':_0xd5c136(0x8e),'choices':_0x4b6073,'loop':![],'theme':{'prefix':''}}));if(_0x319143[_0xd5c136(0x88)]===0x0)throw new Error(_0xd5c136(0x7e));return _0x455a09[_0xd5c136(0x82)](_0x67e1a9=>_0x319143['includes'](_0x67e1a9[_0xd5c136(0x76)]));}export function isInteractive(){const _0x1a925a=a99_0x315a;return process[_0x1a925a(0x70)]['isTTY']===!![];}export function requireInteractive(){const _0x23b4f9=a99_0x315a;if(!isInteractive())throw new Error(_0x23b4f9(0x81)+_0x23b4f9(0x6d));}
1
+ (function(_0x2a1ca8,_0x2aa3ab){const _0x43e6af=a99_0x509e,_0x32bf74=_0x2a1ca8();while(!![]){try{const _0x4dcca7=parseInt(_0x43e6af(0x1da))/0x1*(parseInt(_0x43e6af(0x1f0))/0x2)+parseInt(_0x43e6af(0x1f9))/0x3*(parseInt(_0x43e6af(0x1fc))/0x4)+parseInt(_0x43e6af(0x1e7))/0x5*(-parseInt(_0x43e6af(0x1e0))/0x6)+-parseInt(_0x43e6af(0x1db))/0x7+-parseInt(_0x43e6af(0x1ea))/0x8+parseInt(_0x43e6af(0x1f2))/0x9+parseInt(_0x43e6af(0x203))/0xa;if(_0x4dcca7===_0x2aa3ab)break;else _0x32bf74['push'](_0x32bf74['shift']());}catch(_0x5cc273){_0x32bf74['push'](_0x32bf74['shift']());}}}(a99_0x4a93,0x8cc3a));import a99_0x5c7ea4 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a99_0x47c54d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4eff6f){const _0xd89f3=a99_0x509e;return _0x4eff6f[_0xd89f3(0x1d8)](_0x2123c8=>{const _0x2e321c=_0xd89f3;if(_0x2123c8?.[_0x2e321c(0x1f8)]===_0x2e321c(0x1ef))throw CliErrors[_0x2e321c(0x1df)]('Cancelled.');throw _0x2123c8;});}export function startSpinner(_0x52ab33){const _0x17755e=a99_0x509e;return a99_0x47c54d({'text':_0x52ab33,'color':_0x17755e(0x1d6)})[_0x17755e(0x1ed)]();}function a99_0x509e(_0x2f8a83,_0x5136b4){_0x2f8a83=_0x2f8a83-0x1d5;const _0x4a9382=a99_0x4a93();let _0x509e1b=_0x4a9382[_0x2f8a83];return _0x509e1b;}export function stopSpinner(_0x18601f,_0x293633,_0x5b2961){const _0x5a9922=a99_0x509e;_0x5b2961?_0x18601f[_0x5a9922(0x1f3)](_0x293633):_0x18601f['fail'](_0x293633);}export async function askConfirm(_0x572a1b){return onCancel(confirm({'message':_0x572a1b,'theme':{'prefix':''}}));}export async function askJsUrl(_0xe9006e){const _0x28f390=a99_0x509e;while(!![]){const _0x5a352b=await onCancel(input({'message':_0x28f390(0x1e5),'default':_0xe9006e,'theme':{'prefix':''}}));if(_0x5a352b[_0x28f390(0x1e1)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x28f390(0x1ff)](_0x5a352b[_0x28f390(0x1e1)]())){console[_0x28f390(0x1e9)](a99_0x5c7ea4[_0x28f390(0x1ee)](_0x28f390(0x1f4)));continue;}const _0x4861cc=startSpinner(_0x28f390(0x1e2));try{const _0x359e62=await isUrlReachable(_0x5a352b['trim']());stopSpinner(_0x4861cc,_0x28f390(0x1dc),_0x359e62);if(!_0x359e62){console[_0x28f390(0x1e9)](a99_0x5c7ea4['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x5a352b[_0x28f390(0x1e1)]();}catch(_0x19a816){stopSpinner(_0x4861cc,_0x28f390(0x1d5),![]);throw _0x19a816;}}}function a99_0x4a93(){const _0x28f2b9=['3103842FDepfc','JS\x20URL\x20checked','path','No\x20menus\x20selected.','cancelled','66CrTkwY','trim','\x20\x20Checking\x20JS\x20URL\x20reachability...','has','Cancelled.','\x20\x20JS\x20URL:','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','42715llWggy','No\x20local\x20pages\x20found.','error','3888528fHGhOq','label','[already\x20on\x20platform]','start','red','ExitPromptError','695766JZtmCC','map','6687657xnwPwd','succeed','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','stdin','includes','length','name','15DRuiDh','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','green','88212bRPJHn','gray','CSS\x20URL\x20check\x20failed','test','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','CSS\x20URL\x20checked','filter','3987940oGfoee','JS\x20URL\x20check\x20failed','cyan','isTTY','catch','\x20\x20Checking\x20CSS\x20URL\x20reachability...','1YbNCMl'];a99_0x4a93=function(){return _0x28f2b9;};return a99_0x4a93();}export async function askCssUrl(_0x563ec1){const _0x4ad7e7=a99_0x509e;while(!![]){const _0x2f7dfb=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x563ec1,'theme':{'prefix':''}}));if(_0x2f7dfb[_0x4ad7e7(0x1e1)]()==='')throw CliErrors[_0x4ad7e7(0x1df)](_0x4ad7e7(0x1e4));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4ad7e7(0x1ff)](_0x2f7dfb[_0x4ad7e7(0x1e1)]())){console[_0x4ad7e7(0x1e9)](a99_0x5c7ea4['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x219096=startSpinner(_0x4ad7e7(0x1d9));try{const _0x124ca3=await isUrlReachable(_0x2f7dfb['trim']());stopSpinner(_0x219096,_0x4ad7e7(0x201),_0x124ca3);if(!_0x124ca3){console[_0x4ad7e7(0x1e9)](a99_0x5c7ea4[_0x4ad7e7(0x1ee)](_0x4ad7e7(0x1e6)));continue;}return _0x2f7dfb[_0x4ad7e7(0x1e1)]();}catch(_0x5052d9){stopSpinner(_0x219096,_0x4ad7e7(0x1fe),![]);throw _0x5052d9;}}}export async function selectPages(_0x4f6a8b,_0x830035,_0x5c23e0){const _0x1415d3=a99_0x509e,_0x2869f7=_0x4f6a8b[_0x1415d3(0x1f1)](_0x425b6e=>({'name':_0x425b6e[_0x1415d3(0x1eb)]+'\x20\x20'+(_0x830035['has'](_0x425b6e[_0x1415d3(0x1dd)])?a99_0x5c7ea4[_0x1415d3(0x1fd)](_0x1415d3(0x1ec)):a99_0x5c7ea4[_0x1415d3(0x1fb)]('[new]')),'value':_0x425b6e['label'],'checked':_0x5c23e0?_0x5c23e0['includes'](_0x425b6e[_0x1415d3(0x1eb)]):!_0x830035[_0x1415d3(0x1e3)](_0x425b6e[_0x1415d3(0x1dd)])}));if(_0x2869f7['length']===0x0)throw new Error(_0x1415d3(0x1e8));const _0x2d56a8=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x2869f7,'loop':![],'theme':{'prefix':''}}));if(_0x2d56a8[_0x1415d3(0x1f7)]===0x0)throw new Error(_0x1415d3(0x1de));return _0x4f6a8b[_0x1415d3(0x202)](_0x1c713a=>_0x2d56a8[_0x1415d3(0x1f6)](_0x1c713a[_0x1415d3(0x1eb)]));}export function isInteractive(){const _0xba6b00=a99_0x509e;return process[_0xba6b00(0x1f5)][_0xba6b00(0x1d7)]===!![];}export function requireInteractive(){const _0x3023ea=a99_0x509e;if(!isInteractive())throw new Error(_0x3023ea(0x1fa)+_0x3023ea(0x200));}
@@ -1 +1 @@
1
- function a100_0x1622(){const _0x3b0c6b=['19108LqOmdj','path','index.tsx','2701323zzUfxN','endsWith','slice','1759194flAsbc','2465380roUMcb','5XaeZIS','replace','push','184CbdHbv','5840978RaEMEd','537942RvUbCM','src/pages','utf-8','10cBJYow','filter','cwd','concat','forEach','trim','replaceAll','20TddKBZ','117341UGbjRg','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','match','.tsx'];a100_0x1622=function(){return _0x3b0c6b;};return a100_0x1622();}const a100_0x387f69=a100_0x4c44;(function(_0xfa42e9,_0x3903c5){const _0x227320=a100_0x4c44,_0x1e030d=_0xfa42e9();while(!![]){try{const _0x4d266d=parseInt(_0x227320(0x1e9))/0x1*(-parseInt(_0x227320(0x1ee))/0x2)+-parseInt(_0x227320(0x1f4))/0x3+parseInt(_0x227320(0x1f5))/0x4+parseInt(_0x227320(0x1f6))/0x5*(parseInt(_0x227320(0x1df))/0x6)+parseInt(_0x227320(0x1ea))/0x7*(-parseInt(_0x227320(0x1dd))/0x8)+-parseInt(_0x227320(0x1f1))/0x9*(-parseInt(_0x227320(0x1e2))/0xa)+parseInt(_0x227320(0x1de))/0xb;if(_0x4d266d===_0x3903c5)break;else _0x1e030d['push'](_0x1e030d['shift']());}catch(_0x20a7bc){_0x1e030d['push'](_0x1e030d['shift']());}}}(a100_0x1622,0x5b568));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a100_0x387f69(0x1e4)](),a100_0x387f69(0x1e0));function a100_0x4c44(_0x4f0577,_0x2d5ff8){_0x4f0577=_0x4f0577-0x1dd;const _0x162263=a100_0x1622();let _0x4c445e=_0x162263[_0x4f0577];return _0x4c445e;}export function extractTitleFromComment(_0x5ce1f2){const _0x3f4c05=a100_0x387f69;try{const _0x1cc913=readFileSync(_0x5ce1f2,_0x3f4c05(0x1e1)),_0x45a193=_0x1cc913[_0x3f4c05(0x1ec)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x45a193&&_0x45a193[0x1]){const _0x534a81=_0x45a193[0x1],_0x2c14b0=_0x534a81[_0x3f4c05(0x1ec)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x2c14b0&&_0x2c14b0[0x1])return _0x2c14b0[0x1][_0x3f4c05(0x1e7)]();}let _0x5e732e=null;const _0x1fabfe=_0x1cc913[_0x3f4c05(0x1ec)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x1fabfe&&_0x1fabfe[0x1]&&(_0x5e732e=_0x1fabfe[0x1]);if(!_0x5e732e){const _0x5089db=_0x1cc913['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5089db&&_0x5089db[0x1]&&(_0x5e732e=_0x5089db[0x1]);}if(_0x5e732e){const _0x53a4e9=new RegExp('\x5cb'+_0x5e732e+_0x3f4c05(0x1eb)),_0x4409c1=_0x1cc913[_0x3f4c05(0x1ec)](_0x53a4e9);if(_0x4409c1&&_0x4409c1[0x1])return _0x4409c1[0x1];return _0x5e732e;}return null;}catch(_0x589f4e){return null;}}export function getLocalPages(_0x1fe9e4=pagesDir,_0x593e5e=pagesDir){const _0x35d0e2=a100_0x387f69;let _0x45ed91=[];const _0x13e535=readdirSync(_0x1fe9e4);return _0x13e535[_0x35d0e2(0x1e6)](_0x372ef0=>{const _0x1d0f6c=_0x35d0e2,_0x19700c=join(_0x1fe9e4,_0x372ef0),_0x2ef4d4=statSync(_0x19700c);if(_0x2ef4d4&&_0x2ef4d4['isDirectory']())_0x45ed91=_0x45ed91[_0x1d0f6c(0x1e5)](getLocalPages(_0x19700c,_0x593e5e));else{if(_0x372ef0[_0x1d0f6c(0x1f2)](_0x1d0f6c(0x1ed))){let _0x1e4675=relative(_0x593e5e,_0x19700c);_0x1e4675['endsWith'](_0x1d0f6c(0x1f0))?_0x1e4675=_0x1e4675[_0x1d0f6c(0x1f7)](/index\.tsx$/,''):_0x1e4675=_0x1e4675[_0x1d0f6c(0x1f7)](/\.tsx$/,'');_0x1e4675[_0x1d0f6c(0x1f2)](sep)&&(_0x1e4675=_0x1e4675[_0x1d0f6c(0x1f3)](0x0,-0x1));const _0x293d2e=_0x1e4675['split'](sep)['join']('/'),_0x6558c=extractTitleFromComment(_0x19700c),_0x2d0499=_0x6558c||_0x293d2e;_0x45ed91[_0x1d0f6c(0x1f8)]({'path':_0x293d2e[_0x1d0f6c(0x1e8)]('$',':'),'label':_0x2d0499});}}}),_0x45ed91[_0x35d0e2(0x1e3)](_0x37739a=>_0x37739a[_0x35d0e2(0x1ef)]!=='');}
1
+ const a100_0x1904be=a100_0x12d8;(function(_0x33c5e7,_0x27d35f){const _0x3a8a99=a100_0x12d8,_0xc436a5=_0x33c5e7();while(!![]){try{const _0x4c9dac=parseInt(_0x3a8a99(0x10d))/0x1+-parseInt(_0x3a8a99(0x114))/0x2+parseInt(_0x3a8a99(0x110))/0x3+-parseInt(_0x3a8a99(0x10b))/0x4+-parseInt(_0x3a8a99(0x10a))/0x5*(parseInt(_0x3a8a99(0x111))/0x6)+-parseInt(_0x3a8a99(0x11b))/0x7+parseInt(_0x3a8a99(0x118))/0x8*(parseInt(_0x3a8a99(0x116))/0x9);if(_0x4c9dac===_0x27d35f)break;else _0xc436a5['push'](_0xc436a5['shift']());}catch(_0x98d7d9){_0xc436a5['push'](_0xc436a5['shift']());}}}(a100_0x39ab,0xdd3ab));function a100_0x39ab(){const _0x5703dc=['replace','4571080lKWxVE','cwd','trim','602343OCVqZK','filter','path','170PjPjdb','4435684gffROg','src/pages','1000062HpuXzg','endsWith','slice','4924539dRDNTV','147426xoLlxy','split','replaceAll','552842xXygqA','match','9bodmqI'];a100_0x39ab=function(){return _0x5703dc;};return a100_0x39ab();}import{readdirSync,statSync,readFileSync}from'fs';function a100_0x12d8(_0x318e9d,_0x3ada69){_0x318e9d=_0x318e9d-0x10a;const _0x39ab57=a100_0x39ab();let _0x12d8ad=_0x39ab57[_0x318e9d];return _0x12d8ad;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a100_0x1904be(0x119)](),a100_0x1904be(0x10c));export function extractTitleFromComment(_0x37e1a7){const _0x4252d1=a100_0x1904be;try{const _0x2a4d9c=readFileSync(_0x37e1a7,'utf-8'),_0x36a444=_0x2a4d9c[_0x4252d1(0x115)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x36a444&&_0x36a444[0x1]){const _0x41f1be=_0x36a444[0x1],_0x4ef70f=_0x41f1be[_0x4252d1(0x115)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x4ef70f&&_0x4ef70f[0x1])return _0x4ef70f[0x1][_0x4252d1(0x11a)]();}let _0x33e291=null;const _0x594f0=_0x2a4d9c['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x594f0&&_0x594f0[0x1]&&(_0x33e291=_0x594f0[0x1]);if(!_0x33e291){const _0x13c94b=_0x2a4d9c[_0x4252d1(0x115)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x13c94b&&_0x13c94b[0x1]&&(_0x33e291=_0x13c94b[0x1]);}if(_0x33e291){const _0x5b97f4=new RegExp('\x5cb'+_0x33e291+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x24e879=_0x2a4d9c[_0x4252d1(0x115)](_0x5b97f4);if(_0x24e879&&_0x24e879[0x1])return _0x24e879[0x1];return _0x33e291;}return null;}catch(_0x34da35){return null;}}export function getLocalPages(_0x1eb7d5=pagesDir,_0x2d730d=pagesDir){const _0x8658d7=a100_0x1904be;let _0x404538=[];const _0x26ad89=readdirSync(_0x1eb7d5);return _0x26ad89['forEach'](_0x354090=>{const _0x482beb=a100_0x12d8,_0x8a78a4=join(_0x1eb7d5,_0x354090),_0x289d44=statSync(_0x8a78a4);if(_0x289d44&&_0x289d44['isDirectory']())_0x404538=_0x404538['concat'](getLocalPages(_0x8a78a4,_0x2d730d));else{if(_0x354090[_0x482beb(0x10e)]('.tsx')){let _0x53464a=relative(_0x2d730d,_0x8a78a4);_0x53464a['endsWith']('index.tsx')?_0x53464a=_0x53464a[_0x482beb(0x117)](/index\.tsx$/,''):_0x53464a=_0x53464a[_0x482beb(0x117)](/\.tsx$/,'');_0x53464a[_0x482beb(0x10e)](sep)&&(_0x53464a=_0x53464a[_0x482beb(0x10f)](0x0,-0x1));const _0x1225c4=_0x53464a[_0x482beb(0x112)](sep)['join']('/'),_0x3574fe=extractTitleFromComment(_0x8a78a4),_0x485f7e=_0x3574fe||_0x1225c4;_0x404538['push']({'path':_0x1225c4[_0x482beb(0x113)]('$',':'),'label':_0x485f7e});}}}),_0x404538[_0x8658d7(0x11c)](_0x13ec6e=>_0x13ec6e[_0x8658d7(0x11d)]!=='');}
@@ -1 +1 @@
1
- (function(_0x2217b8,_0x4f6a5d){const _0x3efaea=a101_0x1222,_0xa682e0=_0x2217b8();while(!![]){try{const _0x1ac7d3=parseInt(_0x3efaea(0x124))/0x1*(parseInt(_0x3efaea(0x10f))/0x2)+parseInt(_0x3efaea(0x122))/0x3*(-parseInt(_0x3efaea(0x121))/0x4)+parseInt(_0x3efaea(0x126))/0x5*(-parseInt(_0x3efaea(0x110))/0x6)+-parseInt(_0x3efaea(0x118))/0x7*(-parseInt(_0x3efaea(0x113))/0x8)+-parseInt(_0x3efaea(0x120))/0x9+-parseInt(_0x3efaea(0x11f))/0xa+parseInt(_0x3efaea(0x115))/0xb*(parseInt(_0x3efaea(0x11b))/0xc);if(_0x1ac7d3===_0x4f6a5d)break;else _0xa682e0['push'](_0xa682e0['shift']());}catch(_0x5adab4){_0xa682e0['push'](_0xa682e0['shift']());}}}(a101_0x3999,0xab6ec));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(_0x99e4eb){const _0x100013=a101_0x1222,_0x304eb4=[];return!isValidJsHttpsUrl(_0x99e4eb)&&_0x304eb4['push'](_0x100013(0x117)),{'ok':_0x304eb4['length']===0x0,'errors':_0x304eb4};}export function validateCssUrl(_0xd8267a){const _0x5da516=a101_0x1222,_0x2e7329=[];return!isValidCssHttpsUrl(_0xd8267a)&&_0x2e7329[_0x5da516(0x125)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x2e7329[_0x5da516(0x114)]===0x0,'errors':_0x2e7329};}export async function validateJsUrlReachable(_0x4efb16){const _0x2d77ea=a101_0x1222,_0x3f2d18=validateJsUrl(_0x4efb16);if(!_0x3f2d18['ok'])return _0x3f2d18;const _0x2691e0=await isUrlReachable(_0x4efb16);if(!_0x2691e0)_0x3f2d18[_0x2d77ea(0x10b)][_0x2d77ea(0x125)](_0x2d77ea(0x11a));return{'ok':_0x3f2d18[_0x2d77ea(0x10b)]['length']===0x0,'errors':_0x3f2d18[_0x2d77ea(0x10b)]};}export async function validateCssUrlReachable(_0x1f2eda){const _0x564245=a101_0x1222,_0x1dd6a9=validateCssUrl(_0x1f2eda);if(!_0x1dd6a9['ok'])return _0x1dd6a9;const _0x23d745=await isUrlReachable(_0x1f2eda);if(!_0x23d745)_0x1dd6a9[_0x564245(0x10b)][_0x564245(0x125)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x1dd6a9[_0x564245(0x10b)][_0x564245(0x114)]===0x0,'errors':_0x1dd6a9[_0x564245(0x10b)]};}export function buildCompareRows(_0x3f676b,_0x3fdf75){const _0x2cb25c=a101_0x1222;return _0x3f676b[_0x2cb25c(0x123)](_0xe5dd22=>({'label':_0xe5dd22[_0x2cb25c(0x10c)],'path':_0xe5dd22[_0x2cb25c(0x11e)],'local':!![],'online':_0x3fdf75[_0x2cb25c(0x111)](_0xe5dd22[_0x2cb25c(0x11e)])}));}export function filterNewPages(_0x4f9067,_0x4236b1,_0x459278){const _0x4c28ea=a101_0x1222;if(_0x459278&&_0x459278['length']>0x0){const _0x2b8165=new Set(_0x459278[_0x4c28ea(0x123)](_0x37aa20=>_0x37aa20[_0x4c28ea(0x119)]())),_0x4d75e6=_0x4f9067[_0x4c28ea(0x11d)](_0xbdced3=>_0x2b8165[_0x4c28ea(0x111)](_0xbdced3[_0x4c28ea(0x10c)]));if(_0x4d75e6[_0x4c28ea(0x114)]===0x0)throw new Error(_0x4c28ea(0x112)+[..._0x2b8165][_0x4c28ea(0x10d)](',\x20'));return _0x4d75e6;}return _0x4f9067[_0x4c28ea(0x11d)](_0x2e1e06=>!_0x4236b1[_0x4c28ea(0x111)](_0x2e1e06['path']));}export function filterPagesByLabels(_0x21a16e,_0x4997e8){const _0x55e323=a101_0x1222,_0x4c6924=[],_0x4232b7=[];for(const _0x4b6804 of _0x4997e8){const _0x5e85bc=_0x4b6804[_0x55e323(0x119)](),_0x317776=_0x21a16e['find'](_0x2a92c3=>_0x2a92c3['label']===_0x5e85bc);if(_0x317776)_0x4c6924[_0x55e323(0x125)](_0x317776);else _0x4232b7[_0x55e323(0x125)](_0x4b6804);}return{'matched':_0x4c6924,'unmatched':_0x4232b7};}export async function doCreateMenus(_0x25a906,_0x553788,_0x1534d1,_0xdc93a2){const _0x4bb427=a101_0x1222,_0x515f2e=await createMenus(_0x25a906,_0x553788,_0x1534d1,_0xdc93a2);return{'created':_0x515f2e['length'],'failed':0x0,'labels':_0x1534d1[_0x4bb427(0x123)](_0xf66b4d=>_0xf66b4d[_0x4bb427(0x10c)]),'menus':_0x515f2e};}export function filterMenusWithResources(_0x310350){const _0x563be9=a101_0x1222;return _0x310350[_0x563be9(0x11d)](_0x4229ac=>_0x4229ac[_0x563be9(0x11c)][_0x563be9(0x114)]>0x0);}function a101_0x3999(){const _0x3a0185=['has','No\x20local\x20pages\x20matched\x20labels:\x20','11227688tdfVnw','length','803zVPhcV','status','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','7ygvoxC','trim','JS\x20URL\x20is\x20unreachable','56796QavOWh','resources','filter','path','11567630mTPVDN','655812ExDuvn','604msFZeO','10401qaIEJo','map','1rrkSJq','push','756990qJGjvM','errors','label','join','extend','1715528VNYaUb','6hMTHYX'];a101_0x3999=function(){return _0x3a0185;};return a101_0x3999();}function a101_0x1222(_0x1335f0,_0x30b8a0){_0x1335f0=_0x1335f0-0x10b;const _0x3999b7=a101_0x3999();let _0x122226=_0x3999b7[_0x1335f0];return _0x122226;}export async function doUpdateCdnUrls(_0x3d1612,_0x4500f2,_0x27ebe6,_0x4bbe46){const _0x37f008=a101_0x1222,_0x170861=_0x27ebe6[_0x37f008(0x11d)](_0x347b20=>_0x347b20[_0x37f008(0x11c)][_0x37f008(0x114)]>0x0),_0x193a80=await Promise['allSettled'](_0x170861[_0x37f008(0x123)](_0x5281f1=>updateMenuCdnUrl(_0x3d1612,_0x4500f2,{'id':_0x5281f1['id'],'label':_0x5281f1[_0x37f008(0x10c)],'path':_0x5281f1['path'],'resources':_0x4bbe46,'extend':_0x5281f1[_0x37f008(0x10e)]??null}))),_0x67ee10=_0x193a80[_0x37f008(0x11d)](_0x5d8b00=>_0x5d8b00[_0x37f008(0x116)]==='fulfilled')['map'](_0xd385a5=>_0xd385a5['value']),_0x110eee=_0x193a80[_0x37f008(0x11d)](_0x2b5123=>_0x2b5123[_0x37f008(0x116)]==='rejected')['length'];return{'updated':_0x67ee10[_0x37f008(0x114)],'failed':_0x110eee,'menus':_0x67ee10};}export async function fetchMenuData(_0xbca9c4,_0x2c2c3c){const _0x1b63bf=a101_0x1222,_0x9ce75e=getLocalPages(),_0xe84ca8=await getOnlineMenuList(_0xbca9c4,_0x2c2c3c),_0x45ef4d=new Set(_0xe84ca8['map'](_0x3ada58=>_0x3ada58[_0x1b63bf(0x11e)]));return{'localPages':_0x9ce75e,'onlineMenuList':_0xe84ca8,'onlinePaths':_0x45ef4d};}export async function fetchOnlineMenuList(_0x25058e,_0x473250){return getOnlineMenuList(_0x25058e,_0x473250);}
1
+ (function(_0x2aef7a,_0x59ed34){const _0x44ebf6=a101_0x19ea,_0x2521d6=_0x2aef7a();while(!![]){try{const _0xc46ca7=parseInt(_0x44ebf6(0x1c3))/0x1+parseInt(_0x44ebf6(0x1cb))/0x2+parseInt(_0x44ebf6(0x1c4))/0x3*(-parseInt(_0x44ebf6(0x1d0))/0x4)+-parseInt(_0x44ebf6(0x1b5))/0x5+-parseInt(_0x44ebf6(0x1b4))/0x6*(-parseInt(_0x44ebf6(0x1c2))/0x7)+parseInt(_0x44ebf6(0x1cf))/0x8*(parseInt(_0x44ebf6(0x1b7))/0x9)+-parseInt(_0x44ebf6(0x1b8))/0xa*(parseInt(_0x44ebf6(0x1d1))/0xb);if(_0xc46ca7===_0x59ed34)break;else _0x2521d6['push'](_0x2521d6['shift']());}catch(_0x2548dc){_0x2521d6['push'](_0x2521d6['shift']());}}}(a101_0xdb3a,0x75cf9));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(_0x3fdc60){const _0x288dfa=a101_0x19ea,_0x369bf1=[];return!isValidJsHttpsUrl(_0x3fdc60)&&_0x369bf1['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x369bf1[_0x288dfa(0x1c5)]===0x0,'errors':_0x369bf1};}export function validateCssUrl(_0x4ef62f){const _0x283da1=a101_0x19ea,_0x21981e=[];return!isValidCssHttpsUrl(_0x4ef62f)&&_0x21981e[_0x283da1(0x1c9)](_0x283da1(0x1bb)),{'ok':_0x21981e[_0x283da1(0x1c5)]===0x0,'errors':_0x21981e};}export async function validateJsUrlReachable(_0x4712d4){const _0xe0a16b=a101_0x19ea,_0x4382b8=validateJsUrl(_0x4712d4);if(!_0x4382b8['ok'])return _0x4382b8;const _0x40ac63=await isUrlReachable(_0x4712d4);if(!_0x40ac63)_0x4382b8[_0xe0a16b(0x1ba)]['push'](_0xe0a16b(0x1c6));return{'ok':_0x4382b8[_0xe0a16b(0x1ba)][_0xe0a16b(0x1c5)]===0x0,'errors':_0x4382b8[_0xe0a16b(0x1ba)]};}function a101_0xdb3a(){const _0x1ceb65=['filter','find','CSS\x20URL\x20is\x20unreachable','1477272cupjjp','4ZIJBMy','3308195sRWMDi','trim','4828998uLEuqU','617045IVAchD','allSettled','36whaXFy','40HOQHZc','resources','errors','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','has','No\x20local\x20pages\x20matched\x20labels:\x20','path','map','fulfilled','label','7swQxKG','657053kPkkWg','2537643mFFYfF','length','JS\x20URL\x20is\x20unreachable','extend','rejected','push','status','908602yPWwTO'];a101_0xdb3a=function(){return _0x1ceb65;};return a101_0xdb3a();}export async function validateCssUrlReachable(_0x2e9e02){const _0x18051d=a101_0x19ea,_0x37ee35=validateCssUrl(_0x2e9e02);if(!_0x37ee35['ok'])return _0x37ee35;const _0x5be7a3=await isUrlReachable(_0x2e9e02);if(!_0x5be7a3)_0x37ee35[_0x18051d(0x1ba)][_0x18051d(0x1c9)](_0x18051d(0x1ce));return{'ok':_0x37ee35[_0x18051d(0x1ba)][_0x18051d(0x1c5)]===0x0,'errors':_0x37ee35['errors']};}export function buildCompareRows(_0x3bda53,_0x3034ce){const _0x338b51=a101_0x19ea;return _0x3bda53['map'](_0x314d70=>({'label':_0x314d70['label'],'path':_0x314d70[_0x338b51(0x1be)],'local':!![],'online':_0x3034ce[_0x338b51(0x1bc)](_0x314d70['path'])}));}export function filterNewPages(_0x51a27e,_0x1314d8,_0x5c713a){const _0x4eb13a=a101_0x19ea;if(_0x5c713a&&_0x5c713a[_0x4eb13a(0x1c5)]>0x0){const _0x34ebf3=new Set(_0x5c713a[_0x4eb13a(0x1bf)](_0x5a18ef=>_0x5a18ef[_0x4eb13a(0x1d2)]())),_0xa40a40=_0x51a27e[_0x4eb13a(0x1cc)](_0x55375d=>_0x34ebf3[_0x4eb13a(0x1bc)](_0x55375d[_0x4eb13a(0x1c1)]));if(_0xa40a40[_0x4eb13a(0x1c5)]===0x0)throw new Error(_0x4eb13a(0x1bd)+[..._0x34ebf3]['join'](',\x20'));return _0xa40a40;}return _0x51a27e[_0x4eb13a(0x1cc)](_0x48374a=>!_0x1314d8[_0x4eb13a(0x1bc)](_0x48374a[_0x4eb13a(0x1be)]));}export function filterPagesByLabels(_0x5a87a9,_0x4ac48d){const _0x168fec=a101_0x19ea,_0x32104c=[],_0x5e8d05=[];for(const _0x49881e of _0x4ac48d){const _0x34880f=_0x49881e[_0x168fec(0x1d2)](),_0x7859ab=_0x5a87a9[_0x168fec(0x1cd)](_0x31ff71=>_0x31ff71['label']===_0x34880f);if(_0x7859ab)_0x32104c[_0x168fec(0x1c9)](_0x7859ab);else _0x5e8d05['push'](_0x49881e);}return{'matched':_0x32104c,'unmatched':_0x5e8d05};}export async function doCreateMenus(_0x347fe0,_0xebd46b,_0x485929,_0x1b5747){const _0x51b287=a101_0x19ea,_0x3ada82=await createMenus(_0x347fe0,_0xebd46b,_0x485929,_0x1b5747);return{'created':_0x3ada82[_0x51b287(0x1c5)],'failed':0x0,'labels':_0x485929[_0x51b287(0x1bf)](_0x2d8e4a=>_0x2d8e4a[_0x51b287(0x1c1)]),'menus':_0x3ada82};}export function filterMenusWithResources(_0x2327de){const _0x28bb21=a101_0x19ea;return _0x2327de[_0x28bb21(0x1cc)](_0x437f35=>_0x437f35[_0x28bb21(0x1b9)][_0x28bb21(0x1c5)]>0x0);}export async function doUpdateCdnUrls(_0x292bd2,_0x206cd5,_0x380ffe,_0x180aef){const _0x221f1a=a101_0x19ea,_0x385702=_0x380ffe[_0x221f1a(0x1cc)](_0x16fe26=>_0x16fe26['resources']['length']>0x0),_0x17f707=await Promise[_0x221f1a(0x1b6)](_0x385702[_0x221f1a(0x1bf)](_0x2cbfa0=>updateMenuCdnUrl(_0x292bd2,_0x206cd5,{'id':_0x2cbfa0['id'],'label':_0x2cbfa0[_0x221f1a(0x1c1)],'path':_0x2cbfa0[_0x221f1a(0x1be)],'resources':_0x180aef,'extend':_0x2cbfa0[_0x221f1a(0x1c7)]??null}))),_0x5974ca=_0x17f707[_0x221f1a(0x1cc)](_0x51c924=>_0x51c924['status']===_0x221f1a(0x1c0))[_0x221f1a(0x1bf)](_0x3f21be=>_0x3f21be['value']),_0x759c55=_0x17f707[_0x221f1a(0x1cc)](_0x28b97c=>_0x28b97c[_0x221f1a(0x1ca)]===_0x221f1a(0x1c8))[_0x221f1a(0x1c5)];return{'updated':_0x5974ca[_0x221f1a(0x1c5)],'failed':_0x759c55,'menus':_0x5974ca};}function a101_0x19ea(_0x5e59f5,_0x1a89ac){_0x5e59f5=_0x5e59f5-0x1b4;const _0xdb3a20=a101_0xdb3a();let _0x19ea83=_0xdb3a20[_0x5e59f5];return _0x19ea83;}export async function fetchMenuData(_0x507455,_0x2eabb0){const _0x50191b=a101_0x19ea,_0x1c83fe=getLocalPages(),_0xbbbcf3=await getOnlineMenuList(_0x507455,_0x2eabb0),_0x266aed=new Set(_0xbbbcf3['map'](_0x4443dc=>_0x4443dc[_0x50191b(0x1be)]));return{'localPages':_0x1c83fe,'onlineMenuList':_0xbbbcf3,'onlinePaths':_0x266aed};}export async function fetchOnlineMenuList(_0x214ea9,_0x15298d){return getOnlineMenuList(_0x214ea9,_0x15298d);}