@lovrabet/rabetbase-cli 2.3.6 → 2.3.7-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 (243) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -0
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -0
  79. package/lib/commands/db/analyze-batch-plan.js +1 -0
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -0
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ const a93_0x113119=a93_0x13f5;(function(_0x54c2cb,_0x15a454){const _0x42a1f2=a93_0x13f5,_0x42e596=_0x54c2cb();while(!![]){try{const _0xa60fff=-parseInt(_0x42a1f2(0x1fc))/0x1+-parseInt(_0x42a1f2(0x1fd))/0x2+-parseInt(_0x42a1f2(0x206))/0x3+parseInt(_0x42a1f2(0x215))/0x4+-parseInt(_0x42a1f2(0x219))/0x5*(-parseInt(_0x42a1f2(0x217))/0x6)+parseInt(_0x42a1f2(0x1f9))/0x7*(-parseInt(_0x42a1f2(0x1f5))/0x8)+parseInt(_0x42a1f2(0x1f7))/0x9;if(_0xa60fff===_0x15a454)break;else _0x42e596['push'](_0x42e596['shift']());}catch(_0x43ad45){_0x42e596['push'](_0x42e596['shift']());}}}(a93_0x2c94,0xe8925));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a93_0x13f5(_0x47b8b6,_0x982e5e){_0x47b8b6=_0x47b8b6-0x1f4;const _0x2c94d4=a93_0x2c94();let _0x13f522=_0x2c94d4[_0x47b8b6];return _0x13f522;}function a93_0x2c94(){const _0x412483=['31744197JyTrLq','upload','1393LJYqVX','trim','File','928837uLlogW','3173876KgfkEN','str','POST','filePath\x20is\x20required.','appCode','string','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','validation','5300814CtZaAW','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','long-term','\x20to\x20development\x20app\x20','Path\x20to\x20the\x20local\x20file\x20to\x20upload','filepath','bool','boolean','file','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','path','download','filePath','read','4135520SRCoov','write','6450DbHheo','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','7730ZDVSaq','query-url','39704FlEjSB','/smartapi/common/uploadFile'];a93_0x2c94=function(){return _0x412483;};return a93_0x2c94();}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x113119(0x20e),'type':a93_0x113119(0x202),'required':!![],'description':a93_0x113119(0x20a)},FILEPATH_FLAG={'name':a93_0x113119(0x20b),'type':'string','required':!![],'description':a93_0x113119(0x218)},DOWNLOAD_FLAG={'name':a93_0x113119(0x212),'type':a93_0x113119(0x20d),'description':a93_0x113119(0x210)},LONG_TERM_FLAG={'name':a93_0x113119(0x208),'type':a93_0x113119(0x20d),'description':a93_0x113119(0x203)};function requireFilePath(_0x39c7e0){const _0x456fb3=a93_0x113119,_0x5a1a23=_0x39c7e0[_0x456fb3(0x1fa)]();if(!_0x5a1a23)throw CliErrors[_0x456fb3(0x205)](_0x456fb3(0x200));return _0x5a1a23;}const fileUpload={'service':a93_0x113119(0x20e),'command':a93_0x113119(0x1f8),'description':a93_0x113119(0x207),'risk':a93_0x113119(0x216),'flags':[FILE_FLAG],async 'dryRun'(_0x207ae3){const _0x85be01=a93_0x113119,_0x1ff0b8=requireDevelopmentUploadFile(_0x207ae3[_0x85be01(0x1fe)]('file'),'File');return{'method':_0x85be01(0x1ff),'url':_0x85be01(0x1f6),'body':{'appCode':_0x207ae3[_0x85be01(0x201)],'multipart':{'file':_0x1ff0b8}},'description':'Preview:\x20upload\x20'+_0x1ff0b8['path']+_0x85be01(0x209)+_0x207ae3['appCode']};},async 'execute'(_0x46bfa8){const _0x1eb774=a93_0x113119,_0x2ab4f5=requireDevelopmentUploadFile(_0x46bfa8['str'](_0x1eb774(0x20e)),_0x1eb774(0x1fb)),_0x3c64d3=await uploadDevelopmentFile(_0x46bfa8[_0x1eb774(0x201)],_0x2ab4f5[_0x1eb774(0x211)]);return{'ok':!![],'data':_0x3c64d3,'message':_0x3c64d3['filePath']?'Uploaded\x20file:\x20'+_0x3c64d3[_0x1eb774(0x213)]+_0x1eb774(0x20f):'Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.'};}},fileQueryUrl={'service':a93_0x113119(0x20e),'command':a93_0x113119(0x1f4),'description':a93_0x113119(0x204),'risk':a93_0x113119(0x214),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x403879){const _0x37aa64=a93_0x113119,_0x35512b=requireFilePath(_0x403879[_0x37aa64(0x1fe)](_0x37aa64(0x20b))),_0xba4645=await queryDevelopmentFileUrl(_0x35512b,{'download':_0x403879[_0x37aa64(0x20c)](_0x37aa64(0x212)),'longTerm':_0x403879[_0x37aa64(0x20c)](_0x37aa64(0x208))});return{'ok':!![],'data':_0xba4645};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
@@ -1 +1 @@
1
- const a90_0x2ff161=a90_0x5842;(function(_0x39e4ee,_0x5c2be){const _0x1f96fe=a90_0x5842,_0x414409=_0x39e4ee();while(!![]){try{const _0x4ce3d2=-parseInt(_0x1f96fe(0x6e))/0x1*(-parseInt(_0x1f96fe(0x74))/0x2)+parseInt(_0x1f96fe(0x82))/0x3+parseInt(_0x1f96fe(0x91))/0x4*(parseInt(_0x1f96fe(0x81))/0x5)+-parseInt(_0x1f96fe(0x87))/0x6+-parseInt(_0x1f96fe(0x7e))/0x7+-parseInt(_0x1f96fe(0x72))/0x8*(parseInt(_0x1f96fe(0x9a))/0x9)+-parseInt(_0x1f96fe(0x83))/0xa;if(_0x4ce3d2===_0x5c2be)break;else _0x414409['push'](_0x414409['shift']());}catch(_0x36ea9b){_0x414409['push'](_0x414409['shift']());}}}(a90_0x1bec,0xa3f73));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';function a90_0x5842(_0x309c49,_0x1d32ef){_0x309c49=_0x309c49-0x6e;const _0x1bec5d=a90_0x1bec();let _0x58422a=_0x1bec5d[_0x309c49];return _0x58422a;}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x30878f){return{'appCode':_0x30878f,'appName':_0x30878f};}function a90_0x1bec(){const _0x209e9f=['Auto-confirm\x20prompts','748824ENKXoY','env','../../commands/project/init.js','检测到旧配置文件,正在自动升级...\x0a','appCode','Usage:\x20','Write\x20to\x20global\x20config\x20instead\x20of\x20project','global','\x20\x20Apps:\x20','custom','28DeMJdh','flagMissing','\x20\x20Default:\x20','boolean','validation','defaultApp','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','bool','cwd','18SvJSIZ','\x20config','733423AlvBmj','run','appcode','join','1085752wzDPDl','log','2UYFlyr','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','yes','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x0a✓\x20Successfully\x20initialized\x20','map','valid','project','message','Target\x20environment','6496966NrNxSi','str','production','559095mbKHKg','1532460ScTgwB','309930tgSnzF','\x20\x20Env:\x20','some'];a90_0x1bec=function(){return _0x209e9f;};return a90_0x1bec();}function writeInitConfig(_0xe050ec,_0x5ab151,_0xc66ede){const _0x4ca2da=a90_0x5842,_0x5295f3=resolveWriteConfigPath(_0xe050ec),_0x4ed7b3=buildCanonicalProjectConfig({},{'appCodes':_0x5ab151[_0x4ca2da(0x79)](_0x1f9b9a=>_0x1f9b9a[_0x4ca2da(0x8b)]),'env':_0xc66ede,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x5295f3,_0x4ed7b3);const _0x5cf6f1=_0xe050ec===_0x4ca2da(0x8e)?_0x4ca2da(0x8e):'project';console['log'](_0x4ca2da(0x78)+_0x5cf6f1+_0x4ca2da(0x9b)),console[_0x4ca2da(0x73)](_0x4ca2da(0x8f)+_0x5ab151[_0x4ca2da(0x79)](_0x5b916d=>_0x5b916d['appCode'])[_0x4ca2da(0x71)](',\x20')),console[_0x4ca2da(0x73)](_0x4ca2da(0x93)+_0x4ed7b3[_0x4ca2da(0x96)]),console[_0x4ca2da(0x73)](_0x4ca2da(0x84)+_0x4ed7b3[_0x4ca2da(0x88)]),console[_0x4ca2da(0x73)]('\x20\x20Config:\x20'+_0x5295f3);}async function runSmartInit(_0xdb88fc){const _0x964206=a90_0x5842,_0x2bbb5f=process[_0x964206(0x99)](),_0x1a4e26=_0xdb88fc[_0x964206(0x98)](_0x964206(0x8e))?_0x964206(0x8e):_0x964206(0x7b),_0x2c92ba=_0xdb88fc[_0x964206(0x7f)](_0x964206(0x88))||_0x964206(0x80),_0x32d7b7=_0xdb88fc['str'](_0x964206(0x70))||undefined,_0x1c60c3=_0xdb88fc[_0x964206(0x98)](_0x964206(0x7b));if(_0x1c60c3){const {initConfig:_0x28cec1}=await import(_0x964206(0x89));return _0x28cec1({'appcode':_0x32d7b7,'env':_0x2c92ba,'autoYes':_0xdb88fc[_0x964206(0x98)](_0x964206(0x76))});}if(_0x1a4e26===_0x964206(0x7b)){const _0x22df05=existsSync(resolve(_0x2bbb5f,NEW_CONFIG_NAME)),_0x5a2faf=LEGACY_CONFIG_NAMES[_0x964206(0x85)](_0x152261=>existsSync(resolve(_0x2bbb5f,_0x152261)));if(_0x5a2faf&&!_0x22df05)return console['log'](_0x964206(0x8a)),upgradeApp(_0xdb88fc['nonInteractive'],{'yes':_0xdb88fc[_0x964206(0x98)](_0x964206(0x76))});if(_0x22df05)throw CliErrors[_0x964206(0x95)](_0x964206(0x75),'Use\x20`'+CLI_BIN_NAME+_0x964206(0x97));}if(_0x32d7b7){const _0x8f0936=validateAppcode(_0x32d7b7);if(!_0x8f0936[_0x964206(0x7a)])throw CliErrors[_0x964206(0x95)](_0x8f0936[_0x964206(0x7c)]);writeInitConfig(_0x1a4e26,[syntheticApp(_0x32d7b7)],_0x2c92ba);return;}if(_0xdb88fc['nonInteractive'])throw CliErrors[_0x964206(0x92)]('appcode',_0x964206(0x8c)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x254d8f=getCookie(),_0x35c800=await selectMultipleApps(_0x254d8f),_0x4b2480=_0x35c800===_0x964206(0x90)?[syntheticApp(await promptCustomAppcode())]:_0x35c800;writeInitConfig(_0x1a4e26,_0x4b2480,_0x2c92ba);}const initFlags=[{'name':a90_0x2ff161(0x8e),'type':a90_0x2ff161(0x94),'description':a90_0x2ff161(0x8d),'default':![]},{'name':a90_0x2ff161(0x88),'type':'string','description':a90_0x2ff161(0x7d),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x2ff161(0x70),'type':'string','description':'App\x20code\x20to\x20initialize\x20with'},{'name':a90_0x2ff161(0x7b),'type':a90_0x2ff161(0x94),'description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a90_0x2ff161(0x76),'type':a90_0x2ff161(0x94),'description':a90_0x2ff161(0x86),'default':![]}];export const initDefinitions=[{'service':'init','command':a90_0x2ff161(0x6f),'description':a90_0x2ff161(0x77),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x216ab3){return await runSmartInit(_0x216ab3),{'ok':!![]};}}];
1
+ const a94_0xa04d76=a94_0x2c1a;(function(_0x1a2895,_0x1707ac){const _0x5e51d4=a94_0x2c1a,_0x1636da=_0x1a2895();while(!![]){try{const _0x39f2df=parseInt(_0x5e51d4(0x17d))/0x1+-parseInt(_0x5e51d4(0x166))/0x2+-parseInt(_0x5e51d4(0x162))/0x3+parseInt(_0x5e51d4(0x182))/0x4*(-parseInt(_0x5e51d4(0x181))/0x5)+parseInt(_0x5e51d4(0x189))/0x6+-parseInt(_0x5e51d4(0x15b))/0x7*(-parseInt(_0x5e51d4(0x158))/0x8)+parseInt(_0x5e51d4(0x176))/0x9;if(_0x39f2df===_0x1707ac)break;else _0x1636da['push'](_0x1636da['shift']());}catch(_0x3090dd){_0x1636da['push'](_0x1636da['shift']());}}}(a94_0x25f5,0x98dde));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x29c8a6){return{'appCode':_0x29c8a6,'appName':_0x29c8a6};}function writeInitConfig(_0x5aecfb,_0x541efd,_0x2a0d3f){const _0x3e923b=a94_0x2c1a,_0x577ecc=resolveWriteConfigPath(_0x5aecfb),_0x405250=buildCanonicalProjectConfig({},{'appCodes':_0x541efd[_0x3e923b(0x187)](_0x2880de=>_0x2880de[_0x3e923b(0x184)]),'env':_0x2a0d3f,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3e923b(0x178)]()}});writeConfigFile(_0x577ecc,_0x405250);const _0x5a8dd2=_0x5aecfb===_0x3e923b(0x160)?_0x3e923b(0x160):_0x3e923b(0x163);console[_0x3e923b(0x171)](_0x3e923b(0x16e)+_0x5a8dd2+_0x3e923b(0x169)),console[_0x3e923b(0x171)](_0x3e923b(0x16a)+_0x541efd[_0x3e923b(0x187)](_0x3c0c0f=>_0x3c0c0f[_0x3e923b(0x184)])[_0x3e923b(0x173)](',\x20')),console['log'](_0x3e923b(0x16b)+_0x405250[_0x3e923b(0x17a)]),console[_0x3e923b(0x171)](_0x3e923b(0x170)+_0x405250[_0x3e923b(0x17f)]),console[_0x3e923b(0x171)](_0x3e923b(0x161)+_0x577ecc);}function a94_0x25f5(){const _0x196261=['cwd','8FsMBNF','valid','str','4247964ityOYs','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Write\x20to\x20global\x20config\x20instead\x20of\x20project','Use\x20`','global','\x20\x20Config:\x20','1077048gPzRgy','project','检测到旧配置文件,正在自动升级...\x0a','production','2345676SEMKrM','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20config','\x20\x20Apps:\x20','\x20\x20Default:\x20','custom','flagMissing','\x0a✓\x20Successfully\x20initialized\x20','bool','\x20\x20Env:\x20','log','yes','join','Usage:\x20','appcode','7098606nZNayv','validation','toLocaleString','run','defaultApp','nonInteractive','Target\x20environment','1224006bEBQKC','write','env','Auto-confirm\x20prompts','765EHhziU','23156IImAXa','string','appCode','App\x20code\x20to\x20initialize\x20with','message','map','../../commands/project/init.js','2544726mPlpYm','some','boolean'];a94_0x25f5=function(){return _0x196261;};return a94_0x25f5();}async function runSmartInit(_0x5f6c03){const _0x29adbc=a94_0x2c1a,_0x28d03d=process[_0x29adbc(0x157)](),_0x50b12d=_0x5f6c03[_0x29adbc(0x16f)](_0x29adbc(0x160))?_0x29adbc(0x160):_0x29adbc(0x163),_0x145afc=_0x5f6c03[_0x29adbc(0x15a)](_0x29adbc(0x17f))||_0x29adbc(0x165),_0x2f7e01=_0x5f6c03[_0x29adbc(0x15a)](_0x29adbc(0x175))||undefined,_0x3785f3=_0x5f6c03[_0x29adbc(0x16f)](_0x29adbc(0x163));if(_0x3785f3){const {initConfig:_0x4a0f08}=await import(_0x29adbc(0x188));return _0x4a0f08({'appcode':_0x2f7e01,'env':_0x145afc,'autoYes':_0x5f6c03['bool']('yes')});}if(_0x50b12d===_0x29adbc(0x163)){const _0x1e4d2d=existsSync(resolve(_0x28d03d,NEW_CONFIG_NAME)),_0xa70e8e=LEGACY_CONFIG_NAMES[_0x29adbc(0x18a)](_0x15f38b=>existsSync(resolve(_0x28d03d,_0x15f38b)));if(_0xa70e8e&&!_0x1e4d2d)return console[_0x29adbc(0x171)](_0x29adbc(0x164)),upgradeApp(_0x5f6c03[_0x29adbc(0x17b)],{'yes':_0x5f6c03[_0x29adbc(0x16f)](_0x29adbc(0x172))});if(_0x1e4d2d)throw CliErrors[_0x29adbc(0x177)](_0x29adbc(0x15d),_0x29adbc(0x15f)+CLI_BIN_NAME+_0x29adbc(0x15c));}if(_0x2f7e01){const _0x2db1cd=validateAppcode(_0x2f7e01);if(!_0x2db1cd[_0x29adbc(0x159)])throw CliErrors[_0x29adbc(0x177)](_0x2db1cd[_0x29adbc(0x186)]);writeInitConfig(_0x50b12d,[syntheticApp(_0x2f7e01)],_0x145afc);return;}if(_0x5f6c03[_0x29adbc(0x17b)])throw CliErrors[_0x29adbc(0x16d)]('appcode',_0x29adbc(0x174)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x5a38c2=getCookie(),_0x216d22=await selectMultipleApps(_0x5a38c2),_0x20cbf2=_0x216d22===_0x29adbc(0x16c)?[syntheticApp(await promptCustomAppcode())]:_0x216d22;writeInitConfig(_0x50b12d,_0x20cbf2,_0x145afc);}const initFlags=[{'name':a94_0xa04d76(0x160),'type':'boolean','description':a94_0xa04d76(0x15e),'default':![]},{'name':a94_0xa04d76(0x17f),'type':a94_0xa04d76(0x183),'description':a94_0xa04d76(0x17c),'default':a94_0xa04d76(0x165),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a94_0xa04d76(0x183),'description':a94_0xa04d76(0x185)},{'name':a94_0xa04d76(0x163),'type':'boolean','description':a94_0xa04d76(0x168),'default':![]},{'name':a94_0xa04d76(0x172),'type':a94_0xa04d76(0x18b),'description':a94_0xa04d76(0x180),'default':![]}];function a94_0x2c1a(_0x1e6724,_0x3a0838){_0x1e6724=_0x1e6724-0x157;const _0x25f58=a94_0x25f5();let _0x2c1a4a=_0x25f58[_0x1e6724];return _0x2c1a4a;}export const initDefinitions=[{'service':'init','command':a94_0xa04d76(0x179),'description':a94_0xa04d76(0x167),'risk':a94_0xa04d76(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3ab0a1){return await runSmartInit(_0x3ab0a1),{'ok':!![]};}}];
@@ -1 +1 @@
1
- (function(_0x1e31ad,_0x3e74e9){const _0x6e7ccd=a91_0xdb67,_0x196e3d=_0x1e31ad();while(!![]){try{const _0x4dffed=-parseInt(_0x6e7ccd(0xf3))/0x1*(-parseInt(_0x6e7ccd(0xf9))/0x2)+-parseInt(_0x6e7ccd(0xf1))/0x3+-parseInt(_0x6e7ccd(0xf7))/0x4*(parseInt(_0x6e7ccd(0xf8))/0x5)+parseInt(_0x6e7ccd(0xf4))/0x6+-parseInt(_0x6e7ccd(0xf6))/0x7+parseInt(_0x6e7ccd(0xf5))/0x8+parseInt(_0x6e7ccd(0xf2))/0x9;if(_0x4dffed===_0x3e74e9)break;else _0x196e3d['push'](_0x196e3d['shift']());}catch(_0x2af6fe){_0x196e3d['push'](_0x196e3d['shift']());}}}(a91_0x3ef6,0x396d8));function a91_0x3ef6(){const _0x1f504c=['5294502FkwwbE','18281CdyWfJ','1311534vaTaOq','1147272bwgxht','1352876BJUKbD','1842460pDyJFG','5xDMYyv','26npsidX','896466ZlFPnA'];a91_0x3ef6=function(){return _0x1f504c;};return a91_0x3ef6();}function a91_0xdb67(_0x27abb9,_0x225718){_0x27abb9=_0x27abb9-0xf1;const _0x3ef65b=a91_0x3ef6();let _0xdb6799=_0x3ef65b[_0x27abb9];return _0xdb6799;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x29b8e8,_0x34818e){const _0x19ea1f=a95_0x3350,_0x5890c0=_0x29b8e8();while(!![]){try{const _0x50afe1=parseInt(_0x19ea1f(0x136))/0x1+parseInt(_0x19ea1f(0x139))/0x2+-parseInt(_0x19ea1f(0x137))/0x3*(parseInt(_0x19ea1f(0x134))/0x4)+-parseInt(_0x19ea1f(0x133))/0x5+parseInt(_0x19ea1f(0x13b))/0x6+-parseInt(_0x19ea1f(0x138))/0x7+-parseInt(_0x19ea1f(0x135))/0x8*(-parseInt(_0x19ea1f(0x13a))/0x9);if(_0x50afe1===_0x34818e)break;else _0x5890c0['push'](_0x5890c0['shift']());}catch(_0x2e1b64){_0x5890c0['push'](_0x5890c0['shift']());}}}(a95_0x3ddb,0x6786e));import{issueReport}from'../../commands/issue/report.js';function a95_0x3ddb(){const _0x47520a=['578204ScjCeP','100152okAVBw','2872308BYwPPr','4064630evGSrI','15788OTYiZl','1168DsswUC','1141rmBiTQ','255MWBmDm','5748274UxoPea'];a95_0x3ddb=function(){return _0x47520a;};return a95_0x3ddb();}function a95_0x3350(_0x2d39c1,_0x87ad73){_0x2d39c1=_0x2d39c1-0x133;const _0x3ddb36=a95_0x3ddb();let _0x335072=_0x3ddb36[_0x2d39c1];return _0x335072;}export const issueDefinitions=[issueReport];
@@ -1 +1 @@
1
- function a92_0x2fe8(){const _0x158a0b=['join','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','issue','not_in_project','6SgtDZb','message','6385860CkSIuJ','has','4135jmRDMu','validation_error','349246YTnlqx','RABETBASE_DISABLE_ISSUE_NUDGE','length','stderr','\x20issue\x20report\x20\x5c','slice','report','1512tFOxbp','14850eAVmnt','\x20\x20Set\x20','1500801bnZJOu','\x20\x20\x20\x20--title\x20\x22','command','2071900kMiIsM','2lbtvrz','22qqDVZF','replace','1720QWUNDv','flag_missing','=1\x20to\x20silence\x20this\x20hint.','code','unknown_command','service','2682428naDUxm'];a92_0x2fe8=function(){return _0x158a0b;};return a92_0x2fe8();}const a92_0x27f95f=a92_0x3a6b;(function(_0x44d884,_0x540c57){const _0x5a202e=a92_0x3a6b,_0x5748f6=_0x44d884();while(!![]){try{const _0x4535c0=parseInt(_0x5a202e(0x10c))/0x1+-parseInt(_0x5a202e(0x11a))/0x2*(parseInt(_0x5a202e(0x116))/0x3)+-parseInt(_0x5a202e(0x113))/0x4*(-parseInt(_0x5a202e(0x10a))/0x5)+-parseInt(_0x5a202e(0x106))/0x6*(-parseInt(_0x5a202e(0x123))/0x7)+-parseInt(_0x5a202e(0x11d))/0x8*(parseInt(_0x5a202e(0x114))/0x9)+parseInt(_0x5a202e(0x119))/0xa*(-parseInt(_0x5a202e(0x11b))/0xb)+parseInt(_0x5a202e(0x108))/0xc;if(_0x4535c0===_0x540c57)break;else _0x5748f6['push'](_0x5748f6['shift']());}catch(_0x5b50ce){_0x5748f6['push'](_0x5748f6['shift']());}}}(a92_0x2fe8,0x4b266));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x27f95f(0x10d);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled','auth_required','config_missing',a92_0x27f95f(0x105),a92_0x27f95f(0x121),a92_0x27f95f(0x11e),a92_0x27f95f(0x10b),'network_error']),defaultWriter=_0x224618=>{const _0x7fad1=a92_0x27f95f;process[_0x7fad1(0x10f)]['write'](_0x224618);};export function shouldNudgeForError(_0x228000,_0x14e4cf){const _0x11c72b=a92_0x27f95f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x14e4cf['service']===_0x11c72b(0x104)&&_0x14e4cf[_0x11c72b(0x118)]===_0x11c72b(0x112))return![];if(_0x228000 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x11c72b(0x109)](_0x228000[_0x11c72b(0x120)]);return!![];}function a92_0x3a6b(_0x2e575f,_0x5ad327){_0x2e575f=_0x2e575f-0x104;const _0x2fe845=a92_0x2fe8();let _0x3a6b96=_0x2fe845[_0x2e575f];return _0x3a6b96;}export function printIssueReportNudgeForError(_0x4c5532,_0x57d753,_0x4e7ced=defaultWriter){if(!shouldNudgeForError(_0x4c5532,_0x57d753))return;const _0x3b2642=buildSuggestedTitle(_0x4c5532,_0x57d753);_0x4e7ced(formatNudge(_0x3b2642));}function buildSuggestedTitle(_0x383b71,_0xedcf14){const _0x26d331=a92_0x27f95f,_0xc1f24d=_0x383b71 instanceof Error?_0x383b71[_0x26d331(0x107)]:String(_0x383b71),_0x48c9b9=_0xc1f24d[_0x26d331(0x11c)](/[\r\n]+/g,'\x20')[_0x26d331(0x11c)](/\s+/g,'\x20')['trim']()[_0x26d331(0x111)](0x0,0x78)[_0x26d331(0x11c)](/"/g,'\x5c\x22'),_0x555fc9=CLI_BIN_NAME+'\x20'+_0xedcf14[_0x26d331(0x122)]+'\x20'+_0xedcf14[_0x26d331(0x118)];return _0x48c9b9[_0x26d331(0x10e)]>0x0?_0x555fc9+':\x20'+_0x48c9b9:_0x555fc9;}function formatNudge(_0x33fb10){const _0x3a000e=a92_0x27f95f;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x3a000e(0x110),_0x3a000e(0x117)+_0x33fb10+'\x22\x20\x5c',_0x3a000e(0x125),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x3a000e(0x115)+NUDGE_OPT_OUT_ENV+_0x3a000e(0x11f),''][_0x3a000e(0x124)]('\x0a');}
1
+ const a96_0x14523f=a96_0x1600;(function(_0x882f54,_0x4c7e18){const _0x4ee5bd=a96_0x1600,_0x58532e=_0x882f54();while(!![]){try{const _0x2aa30b=-parseInt(_0x4ee5bd(0x1eb))/0x1*(parseInt(_0x4ee5bd(0x1ea))/0x2)+-parseInt(_0x4ee5bd(0x1dc))/0x3*(-parseInt(_0x4ee5bd(0x1e5))/0x4)+-parseInt(_0x4ee5bd(0x1d1))/0x5*(-parseInt(_0x4ee5bd(0x1e7))/0x6)+-parseInt(_0x4ee5bd(0x1ed))/0x7*(-parseInt(_0x4ee5bd(0x1d0))/0x8)+-parseInt(_0x4ee5bd(0x1e3))/0x9+parseInt(_0x4ee5bd(0x1e1))/0xa*(parseInt(_0x4ee5bd(0x1de))/0xb)+-parseInt(_0x4ee5bd(0x1dd))/0xc;if(_0x2aa30b===_0x4c7e18)break;else _0x58532e['push'](_0x58532e['shift']());}catch(_0x228e83){_0x58532e['push'](_0x58532e['shift']());}}}(a96_0x203f,0x4e0d8));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x14523f(0x1e2);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x14523f(0x1d7),a96_0x14523f(0x1d8),a96_0x14523f(0x1ef),a96_0x14523f(0x1f0),a96_0x14523f(0x1f1),a96_0x14523f(0x1d6),a96_0x14523f(0x1ee),'network_error']),defaultWriter=_0x4758d4=>{const _0x150c38=a96_0x14523f;process[_0x150c38(0x1ec)][_0x150c38(0x1da)](_0x4758d4);};export function shouldNudgeForError(_0x39819a,_0x37fc38){const _0x2c5a7d=a96_0x14523f;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x37fc38['service']==='issue'&&_0x37fc38[_0x2c5a7d(0x1d2)]===_0x2c5a7d(0x1e0))return![];if(_0x39819a instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x2c5a7d(0x1d3)](_0x39819a[_0x2c5a7d(0x1df)]);return!![];}export function printIssueReportNudgeForError(_0x5a664b,_0x5eccce,_0x929be7=defaultWriter){if(!shouldNudgeForError(_0x5a664b,_0x5eccce))return;const _0x58d992=buildSuggestedTitle(_0x5a664b,_0x5eccce);_0x929be7(formatNudge(_0x58d992));}function a96_0x203f(){const _0x5bd2af=['config_missing','not_in_project','unknown_command','\x22\x20\x5c','42864viBNKH','250iKuNWl','command','has','length','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','flag_missing','cancelled','auth_required','\x20\x20\x20\x20--title\x20\x22','write','trim','135IzLkJq','2976264APpLPT','314402UPWCLv','code','report','110gHgdWO','RABETBASE_DISABLE_ISSUE_NUDGE','5406669KtIool','replace','46264nFfwVX','join','74862hLLcCf','slice','\x20issue\x20report\x20\x5c','255410IyGRlY','5SIiloB','stderr','455WVQuvb','validation_error'];a96_0x203f=function(){return _0x5bd2af;};return a96_0x203f();}function a96_0x1600(_0xe4c499,_0x3267d3){_0xe4c499=_0xe4c499-0x1d0;const _0x203f62=a96_0x203f();let _0x16007f=_0x203f62[_0xe4c499];return _0x16007f;}function buildSuggestedTitle(_0x2df82c,_0x3de3b1){const _0x2ede63=a96_0x14523f,_0x5b04e5=_0x2df82c instanceof Error?_0x2df82c['message']:String(_0x2df82c),_0x420d48=_0x5b04e5['replace'](/[\r\n]+/g,'\x20')[_0x2ede63(0x1e4)](/\s+/g,'\x20')[_0x2ede63(0x1db)]()[_0x2ede63(0x1e8)](0x0,0x78)[_0x2ede63(0x1e4)](/"/g,'\x5c\x22'),_0x58b72e=CLI_BIN_NAME+'\x20'+_0x3de3b1['service']+'\x20'+_0x3de3b1['command'];return _0x420d48[_0x2ede63(0x1d4)]>0x0?_0x58b72e+':\x20'+_0x420d48:_0x58b72e;}function formatNudge(_0x56b960){const _0x5ef553=a96_0x14523f;return['','Hit\x20a\x20'+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x5ef553(0x1e9),_0x5ef553(0x1d9)+_0x56b960+_0x5ef553(0x1f2),_0x5ef553(0x1d5),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+'=1\x20to\x20silence\x20this\x20hint.',''][_0x5ef553(0x1e6)]('\x0a');}
@@ -1 +1 @@
1
- const a93_0x1870d4=a93_0x48a6;(function(_0xb4996a,_0x1a72b0){const _0x4d1620=a93_0x48a6,_0x2a02be=_0xb4996a();while(!![]){try{const _0x19eac1=parseInt(_0x4d1620(0x210))/0x1+-parseInt(_0x4d1620(0x1f1))/0x2*(-parseInt(_0x4d1620(0x200))/0x3)+-parseInt(_0x4d1620(0x1f3))/0x4*(parseInt(_0x4d1620(0x1e7))/0x5)+-parseInt(_0x4d1620(0x1e9))/0x6*(parseInt(_0x4d1620(0x20b))/0x7)+parseInt(_0x4d1620(0x1fd))/0x8+parseInt(_0x4d1620(0x1fb))/0x9+parseInt(_0x4d1620(0x1ff))/0xa;if(_0x19eac1===_0x1a72b0)break;else _0x2a02be['push'](_0x2a02be['shift']());}catch(_0xff136d){_0x2a02be['push'](_0x2a02be['shift']());}}}(a93_0xe8f2,0x24353));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a93_0xe8f2(){const _0x3a0e77=['utf8','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','write','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','sanitize','\x20bytes','73765dIfuWC','report','1314084yCzPuN','One-line\x20issue\x20summary','inline','originalBytes','descriptionFilePath','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','issue.description_original_bytes','truncated','29828UwkWes','POST','64lBKQUJ','issue.description_redaction_kinds','issue.description','truncated\x20from\x20','Platform\x20issue\x20reported','Issue\x20description\x20cannot\x20be\x20empty.','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','filter','1013481DcADTp','Issue\x20description\x20file\x20is\x20empty:\x20','1545584VeiJuv','Platform\x20issue\x20reported\x20(','627810HVvOWY','3OnsHfQ','title','otel://','apiError','issue.description_truncated','issue','join','redactionCount','issue.title','truncated:\x20original\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','7mehzXk','cwd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','validation','descriptionFile:\x20','219867yzmubu','File\x20not\x20found:\x20','description','\x20secret(s):\x20','str','redactionKinds','length','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Failed\x20to\x20report\x20platform\x20issue:\x20','flagMissing','description-file','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','descriptionSource','string','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','push','message','trim'];a93_0xe8f2=function(){return _0x3a0e77;};return a93_0xe8f2();}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=a93_0x1870d4(0x21a);function a93_0x48a6(_0x33cbbd,_0x208136){_0x33cbbd=_0x33cbbd-0x1e7;const _0xe8f234=a93_0xe8f2();let _0x48a6f1=_0xe8f234[_0x33cbbd];return _0x48a6f1;}export const issueReport={'service':a93_0x1870d4(0x205),'command':a93_0x1870d4(0x1e8),'description':a93_0x1870d4(0x225),'risk':a93_0x1870d4(0x224),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a93_0x1870d4(0x201),'type':a93_0x1870d4(0x21d),'required':!![],'description':a93_0x1870d4(0x1ea)},{'name':a93_0x1870d4(0x212),'type':'string','description':a93_0x1870d4(0x20a)},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x1870d4(0x21d),'description':a93_0x1870d4(0x1ee)}],async 'validate'(_0x2f9378){const _0x48c3b1=a93_0x1870d4,_0x41eee7=_0x2f9378['str'](_0x48c3b1(0x201))[_0x48c3b1(0x221)](),_0x59b6cd=_0x2f9378[_0x48c3b1(0x214)](_0x48c3b1(0x212))[_0x48c3b1(0x221)](),_0x437088=_0x2f9378[_0x48c3b1(0x214)](DESCRIPTION_FILE_FLAG)[_0x48c3b1(0x221)]();if(!_0x41eee7)throw CliErrors[_0x48c3b1(0x219)]('title',_0x48c3b1(0x20d));const _0x29b49a=_0x59b6cd['length']>0x0,_0xa5b156=_0x437088[_0x48c3b1(0x216)]>0x0;if(_0x29b49a===_0xa5b156)throw CliErrors['validation'](_0x48c3b1(0x217),_0x48c3b1(0x223));if(_0xa5b156){const _0x3c10b7=resolve(process[_0x48c3b1(0x20c)](),_0x437088);if(!existsSync(_0x3c10b7))throw CliErrors[_0x48c3b1(0x20e)](_0x48c3b1(0x211)+_0x3c10b7);}},async 'dryRun'(_0x2e25bc){const _0xaf782b=a93_0x1870d4,_0x1a17af=await prepareIssueReport(_0x2e25bc);return{'method':_0xaf782b(0x1f2),'url':_0xaf782b(0x202)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1a17af['title'],'issue.description':_0x1a17af[_0xaf782b(0x212)],'issue.description_original_bytes':_0x1a17af[_0xaf782b(0x226)]['originalBytes'],'issue.description_truncated':_0x1a17af[_0xaf782b(0x226)][_0xaf782b(0x1f0)],'issue.description_redactions':_0x1a17af[_0xaf782b(0x226)][_0xaf782b(0x207)],'issue.description_redaction_kinds':_0x1a17af[_0xaf782b(0x226)][_0xaf782b(0x215)][_0xaf782b(0x206)](',')}},'description':[_0xaf782b(0x1f9),'descriptionSource:\x20'+_0x1a17af[_0xaf782b(0x21c)],_0x1a17af[_0xaf782b(0x1ed)]?_0xaf782b(0x20f)+_0x1a17af[_0xaf782b(0x1ed)]:null,_0x1a17af['sanitize'][_0xaf782b(0x1f0)]?_0xaf782b(0x209)+_0x1a17af[_0xaf782b(0x226)][_0xaf782b(0x1ec)]+_0xaf782b(0x227):null,_0x1a17af[_0xaf782b(0x226)]['redactionCount']>0x0?'redactions:\x20'+_0x1a17af[_0xaf782b(0x226)]['redactionCount']+'\x20('+_0x1a17af['sanitize'][_0xaf782b(0x215)][_0xaf782b(0x206)](',\x20')+')':null][_0xaf782b(0x1fa)](Boolean)[_0xaf782b(0x206)]('\x0a')};},async 'execute'(_0x1cac90){const _0x6d45d8=a93_0x1870d4,_0x27ef31=await prepareIssueReport(_0x1cac90);try{await sendPlatformIssueCollectLog({'title':_0x27ef31[_0x6d45d8(0x201)],'description':_0x27ef31['description'],'sanitize':{'originalBytes':_0x27ef31[_0x6d45d8(0x226)][_0x6d45d8(0x1ec)],'truncated':_0x27ef31[_0x6d45d8(0x226)][_0x6d45d8(0x1f0)],'redactionCount':_0x27ef31['sanitize'][_0x6d45d8(0x207)],'redactionKinds':_0x27ef31[_0x6d45d8(0x226)][_0x6d45d8(0x215)]}});}catch(_0x1b9830){throw CliErrors[_0x6d45d8(0x203)](_0x6d45d8(0x218)+(_0x1b9830 instanceof Error?_0x1b9830[_0x6d45d8(0x220)]:String(_0x1b9830)),_0x6d45d8(0x21e));}return{'ok':!![],'message':buildResultMessage(_0x27ef31['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x6d45d8(0x208),_0x6d45d8(0x1f5),_0x6d45d8(0x1ef),_0x6d45d8(0x204),'issue.description_redactions',_0x6d45d8(0x1f4)],'issue':{'title':_0x27ef31[_0x6d45d8(0x201)],'descriptionLength':_0x27ef31[_0x6d45d8(0x212)][_0x6d45d8(0x216)],'descriptionSource':_0x27ef31[_0x6d45d8(0x21c)],..._0x27ef31['descriptionFilePath']?{'descriptionFile':_0x27ef31[_0x6d45d8(0x1ed)]}:{},'sanitize':{'originalBytes':_0x27ef31[_0x6d45d8(0x226)]['originalBytes'],'truncated':_0x27ef31['sanitize']['truncated'],'redactions':_0x27ef31[_0x6d45d8(0x226)][_0x6d45d8(0x207)],'redactionKinds':_0x27ef31['sanitize'][_0x6d45d8(0x215)]}}}};}};function buildResultMessage(_0x3736d4){const _0x4cebf9=a93_0x1870d4,_0x96b230=[];return _0x3736d4[_0x4cebf9(0x1f0)]&&_0x96b230[_0x4cebf9(0x21f)](_0x4cebf9(0x1f6)+_0x3736d4[_0x4cebf9(0x1ec)]+_0x4cebf9(0x227)),_0x3736d4['redactionCount']>0x0&&_0x96b230[_0x4cebf9(0x21f)]('redacted\x20'+_0x3736d4[_0x4cebf9(0x207)]+_0x4cebf9(0x213)+_0x3736d4[_0x4cebf9(0x215)][_0x4cebf9(0x206)](',\x20')),_0x96b230[_0x4cebf9(0x216)]===0x0?_0x4cebf9(0x1f7):_0x4cebf9(0x1fe)+_0x96b230[_0x4cebf9(0x206)](';\x20')+')';}async function prepareIssueReport(_0x35ecaf){const _0x418c17=a93_0x1870d4,_0xde6236=_0x35ecaf[_0x418c17(0x214)](_0x418c17(0x201))[_0x418c17(0x221)](),_0x4172af=_0x35ecaf[_0x418c17(0x214)](_0x418c17(0x212)),_0x3f402a=_0x35ecaf['str'](DESCRIPTION_FILE_FLAG)[_0x418c17(0x221)]();if(!_0x3f402a){const _0xe7082c=_0x4172af;if(!_0xe7082c[_0x418c17(0x221)]())throw CliErrors[_0x418c17(0x20e)](_0x418c17(0x1f8),_0x418c17(0x21b));const _0xe989c2=sanitizeIssueDescription(_0xe7082c);return{'title':_0xde6236,'description':_0xe989c2['description'],'descriptionSource':_0x418c17(0x1eb),'sanitize':_0xe989c2};}const _0xd7ce23=resolve(process[_0x418c17(0x20c)](),_0x3f402a),_0x32aae2=await readFile(_0xd7ce23,_0x418c17(0x222));if(!_0x32aae2[_0x418c17(0x221)]())throw CliErrors['validation'](_0x418c17(0x1fc)+_0xd7ce23,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x3534df=sanitizeIssueDescription(_0x32aae2);return{'title':_0xde6236,'description':_0x3534df[_0x418c17(0x212)],'descriptionSource':'file','descriptionFilePath':_0xd7ce23,'sanitize':_0x3534df};}
1
+ const a97_0xe33be5=a97_0x4c1f;(function(_0x253479,_0x2cb407){const _0x446b27=a97_0x4c1f,_0x189b8d=_0x253479();while(!![]){try{const _0x418df4=-parseInt(_0x446b27(0x16d))/0x1+-parseInt(_0x446b27(0x174))/0x2+parseInt(_0x446b27(0x159))/0x3*(-parseInt(_0x446b27(0x155))/0x4)+parseInt(_0x446b27(0x179))/0x5*(-parseInt(_0x446b27(0x15d))/0x6)+-parseInt(_0x446b27(0x149))/0x7+parseInt(_0x446b27(0x16f))/0x8+parseInt(_0x446b27(0x158))/0x9;if(_0x418df4===_0x2cb407)break;else _0x189b8d['push'](_0x189b8d['shift']());}catch(_0x2b38a0){_0x189b8d['push'](_0x189b8d['shift']());}}}(a97_0xf6d9,0xed47e));function a97_0xf6d9(){const _0x5a2a8b=['descriptionFilePath','issue.description_original_bytes','Platform\x20issue\x20reported','descriptionSource','report','redactionCount','title','message','string','file','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','319598pddoxQ','Issue\x20description\x20cannot\x20be\x20empty.','906048AqrotN','\x20secret(s):\x20','File\x20not\x20found:\x20','descriptionFile:\x20','\x20bytes','162188nSDoZG','issue.description_redactions','length','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','cwd','45rBJleN','validation','write','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','truncated','truncated\x20from\x20','sanitize','Platform\x20issue\x20reported\x20(','apiError','compress','truncated:\x20original\x20','str','issue.title','issue.description_truncated','otel://','6360515YbqIeH','join','trim','flagMissing','originalBytes','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','redactions:\x20','descriptionSource:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Issue\x20description\x20file\x20is\x20empty:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','description','627496pSMZzY','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','description-file','40097376KMUQAl','36VjTuWw','issue','issue.description_redaction_kinds','redacted\x20','269862kIaMXx','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','redactionKinds','One-line\x20issue\x20summary','issue.description'];a97_0xf6d9=function(){return _0x5a2a8b;};return a97_0xf6d9();}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0xe33be5(0x157);export const issueReport={'service':a97_0xe33be5(0x15a),'command':a97_0xe33be5(0x166),'description':a97_0xe33be5(0x153),'risk':a97_0xe33be5(0x17b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a97_0xe33be5(0x182),'flags':[{'name':a97_0xe33be5(0x168),'type':'string','required':!![],'description':a97_0xe33be5(0x160)},{'name':a97_0xe33be5(0x154),'type':a97_0xe33be5(0x16a),'description':a97_0xe33be5(0x16c)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0xe33be5(0x16a),'description':a97_0xe33be5(0x156)}],async 'validate'(_0x5aa2a2){const _0x59fd4a=a97_0xe33be5,_0x1d55c4=_0x5aa2a2['str'](_0x59fd4a(0x168))[_0x59fd4a(0x14b)](),_0x16c506=_0x5aa2a2['str']('description')[_0x59fd4a(0x14b)](),_0x2188e4=_0x5aa2a2[_0x59fd4a(0x184)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x1d55c4)throw CliErrors[_0x59fd4a(0x14c)](_0x59fd4a(0x168),_0x59fd4a(0x151));const _0x3dab1d=_0x16c506['length']>0x0,_0x2bc2e3=_0x2188e4[_0x59fd4a(0x176)]>0x0;if(_0x3dab1d===_0x2bc2e3)throw CliErrors[_0x59fd4a(0x17a)](_0x59fd4a(0x17c),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x2bc2e3){const _0x55bed9=resolve(process['cwd'](),_0x2188e4);if(!existsSync(_0x55bed9))throw CliErrors[_0x59fd4a(0x17a)](_0x59fd4a(0x171)+_0x55bed9);}},async 'dryRun'(_0x1aa1f5){const _0x1a422f=a97_0xe33be5,_0x5624c3=await prepareIssueReport(_0x1aa1f5);return{'method':'POST','url':_0x1a422f(0x148)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5624c3[_0x1a422f(0x168)],'issue.description':_0x5624c3[_0x1a422f(0x154)],'issue.description_original_bytes':_0x5624c3[_0x1a422f(0x17f)][_0x1a422f(0x14d)],'issue.description_truncated':_0x5624c3['sanitize'][_0x1a422f(0x17d)],'issue.description_redactions':_0x5624c3[_0x1a422f(0x17f)][_0x1a422f(0x167)],'issue.description_redaction_kinds':_0x5624c3[_0x1a422f(0x17f)][_0x1a422f(0x15f)]['join'](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x1a422f(0x150)+_0x5624c3[_0x1a422f(0x165)],_0x5624c3[_0x1a422f(0x162)]?_0x1a422f(0x172)+_0x5624c3[_0x1a422f(0x162)]:null,_0x5624c3['sanitize'][_0x1a422f(0x17d)]?_0x1a422f(0x183)+_0x5624c3['sanitize']['originalBytes']+_0x1a422f(0x173):null,_0x5624c3['sanitize'][_0x1a422f(0x167)]>0x0?_0x1a422f(0x14f)+_0x5624c3[_0x1a422f(0x17f)][_0x1a422f(0x167)]+'\x20('+_0x5624c3[_0x1a422f(0x17f)][_0x1a422f(0x15f)]['join'](',\x20')+')':null]['filter'](Boolean)[_0x1a422f(0x14a)]('\x0a')};},async 'execute'(_0x231f69){const _0x101826=a97_0xe33be5,_0x266480=await prepareIssueReport(_0x231f69);try{await sendPlatformIssueCollectLog({'title':_0x266480[_0x101826(0x168)],'description':_0x266480[_0x101826(0x154)],'sanitize':{'originalBytes':_0x266480[_0x101826(0x17f)]['originalBytes'],'truncated':_0x266480[_0x101826(0x17f)]['truncated'],'redactionCount':_0x266480[_0x101826(0x17f)]['redactionCount'],'redactionKinds':_0x266480[_0x101826(0x17f)][_0x101826(0x15f)]}});}catch(_0x287501){throw CliErrors[_0x101826(0x181)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x287501 instanceof Error?_0x287501[_0x101826(0x169)]:String(_0x287501)),_0x101826(0x14e));}return{'ok':!![],'message':buildResultMessage(_0x266480['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x101826(0x185),_0x101826(0x161),_0x101826(0x163),_0x101826(0x147),_0x101826(0x175),_0x101826(0x15b)],'issue':{'title':_0x266480[_0x101826(0x168)],'descriptionLength':_0x266480['description'][_0x101826(0x176)],'descriptionSource':_0x266480[_0x101826(0x165)],..._0x266480[_0x101826(0x162)]?{'descriptionFile':_0x266480[_0x101826(0x162)]}:{},'sanitize':{'originalBytes':_0x266480[_0x101826(0x17f)][_0x101826(0x14d)],'truncated':_0x266480[_0x101826(0x17f)][_0x101826(0x17d)],'redactions':_0x266480[_0x101826(0x17f)][_0x101826(0x167)],'redactionKinds':_0x266480[_0x101826(0x17f)][_0x101826(0x15f)]}}}};}};function a97_0x4c1f(_0x3deb9d,_0x1691e4){_0x3deb9d=_0x3deb9d-0x147;const _0xf6d998=a97_0xf6d9();let _0x4c1f36=_0xf6d998[_0x3deb9d];return _0x4c1f36;}function buildResultMessage(_0x30705e){const _0x553af6=a97_0xe33be5,_0x102712=[];return _0x30705e['truncated']&&_0x102712['push'](_0x553af6(0x17e)+_0x30705e[_0x553af6(0x14d)]+_0x553af6(0x173)),_0x30705e['redactionCount']>0x0&&_0x102712['push'](_0x553af6(0x15c)+_0x30705e['redactionCount']+_0x553af6(0x170)+_0x30705e[_0x553af6(0x15f)][_0x553af6(0x14a)](',\x20')),_0x102712[_0x553af6(0x176)]===0x0?_0x553af6(0x164):_0x553af6(0x180)+_0x102712[_0x553af6(0x14a)](';\x20')+')';}async function prepareIssueReport(_0x29af2c){const _0x52ecf7=a97_0xe33be5,_0xc0be2a=_0x29af2c['str'](_0x52ecf7(0x168))[_0x52ecf7(0x14b)](),_0x27141a=_0x29af2c['str']('description'),_0x191308=_0x29af2c['str'](DESCRIPTION_FILE_FLAG)[_0x52ecf7(0x14b)]();if(!_0x191308){const _0x26cb9e=_0x27141a;if(!_0x26cb9e[_0x52ecf7(0x14b)]())throw CliErrors[_0x52ecf7(0x17a)](_0x52ecf7(0x16e),_0x52ecf7(0x177));const _0x726937=sanitizeIssueDescription(_0x26cb9e);return{'title':_0xc0be2a,'description':_0x726937[_0x52ecf7(0x154)],'descriptionSource':'inline','sanitize':_0x726937};}const _0xeb2126=resolve(process[_0x52ecf7(0x178)](),_0x191308),_0x2d081f=await readFile(_0xeb2126,'utf8');if(!_0x2d081f['trim']())throw CliErrors['validation'](_0x52ecf7(0x152)+_0xeb2126,_0x52ecf7(0x15e));const _0x8d3413=sanitizeIssueDescription(_0x2d081f);return{'title':_0xc0be2a,'description':_0x8d3413[_0x52ecf7(0x154)],'descriptionSource':_0x52ecf7(0x16b),'descriptionFilePath':_0xeb2126,'sanitize':_0x8d3413};}
@@ -1 +1 @@
1
- function a94_0x4893(_0x4bc74a,_0x3e2958){_0x4bc74a=_0x4bc74a-0xef;const _0x1b2366=a94_0x1b23();let _0x48933f=_0x1b2366[_0x4bc74a];return _0x48933f;}const a94_0x963f84=a94_0x4893;function a94_0x1b23(){const _0x1808fc=['push','3241701tqmLaN','byteLength','pattern','kind','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','REDACTED:password','replace','6570glItoF','REDACTED:bearer-jwt','includes','REDACTED:private-key','cookie','138clcRMs','369588pbzGNC','1657806tOGjjX','string','REDACTED:authorization','password','4165832vHDhtB','4626710kSGlcg','REDACTED:cookie','private-key','subarray','21ySsIXw','authorization','toString','bearer-jwt','1026495yeuBNu','utf8','label','access-key','18CXrwLJ','REDACTED:access-key'];a94_0x1b23=function(){return _0x1808fc;};return a94_0x1b23();}(function(_0x445666,_0x1fbf1c){const _0x2534f3=a94_0x4893,_0x3b087a=_0x445666();while(!![]){try{const _0x3bc656=parseInt(_0x2534f3(0xfe))/0x1*(parseInt(_0x2534f3(0x103))/0x2)+parseInt(_0x2534f3(0xf7))/0x3+parseInt(_0x2534f3(0x104))/0x4+-parseInt(_0x2534f3(0xf0))/0x5+-parseInt(_0x2534f3(0x105))/0x6*(-parseInt(_0x2534f3(0x10e))/0x7)+-parseInt(_0x2534f3(0x109))/0x8+-parseInt(_0x2534f3(0xf4))/0x9*(parseInt(_0x2534f3(0x10a))/0xa);if(_0x3bc656===_0x1fbf1c)break;else _0x3b087a['push'](_0x3b087a['shift']());}catch(_0x44dc72){_0x3b087a['push'](_0x3b087a['shift']());}}}(a94_0x1b23,0xc43f3));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a94_0x963f84(0xfb),REDACTION_RULES=[{'kind':a94_0x963f84(0x102),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x963f84(0x10b)},{'kind':a94_0x963f84(0x10f),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a94_0x963f84(0x107)},{'kind':a94_0x963f84(0x10c),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x963f84(0x101)},{'kind':a94_0x963f84(0xf3),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x963f84(0xf5)},{'kind':a94_0x963f84(0x108),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x963f84(0xfc)},{'kind':a94_0x963f84(0xef),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x963f84(0xff)}];export function sanitizeIssueDescription(_0x1d062f){const _0x31520e=a94_0x963f84,_0x44e8fc=Buffer[_0x31520e(0xf8)](_0x1d062f,'utf8'),_0x167d26=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x5cec76=_0x1d062f,_0x29e9f6=0x0;const _0x475854=[];if(!_0x167d26)for(const _0x56a6f of REDACTION_RULES){let _0x3b7ad6=0x0;_0x5cec76=_0x5cec76[_0x31520e(0xfd)](_0x56a6f[_0x31520e(0xf9)],(_0x113b50,_0x599f19)=>{const _0x227f13=_0x31520e;_0x3b7ad6+=0x1;const _0x520306=typeof _0x599f19===_0x227f13(0x106)?_0x599f19:'';return _0x520306+'['+_0x56a6f[_0x227f13(0xf2)]+']';}),_0x3b7ad6>0x0&&(_0x29e9f6+=_0x3b7ad6,!_0x475854[_0x31520e(0x100)](_0x56a6f[_0x31520e(0xfa)])&&_0x475854[_0x31520e(0xf6)](_0x56a6f[_0x31520e(0xfa)]));}let _0x193f00=![];if(Buffer['byteLength'](_0x5cec76,'utf8')>ISSUE_DESCRIPTION_MAX_BYTES){_0x193f00=!![];const _0x48c668=Buffer[_0x31520e(0xf8)](TRUNCATION_NOTICE,_0x31520e(0xf1)),_0x7bcfa=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x48c668);_0x5cec76=sliceUtf8Bytes(_0x5cec76,_0x7bcfa)+TRUNCATION_NOTICE;}return{'description':_0x5cec76,'originalBytes':_0x44e8fc,'truncated':_0x193f00,'redactionCount':_0x29e9f6,'redactionKinds':_0x475854};}function sliceUtf8Bytes(_0x203785,_0x434cfa){const _0x22061c=a94_0x963f84;if(_0x434cfa<=0x0)return'';const _0x1cb7a7=Buffer['from'](_0x203785,'utf8');if(_0x1cb7a7[_0x22061c(0xf8)]<=_0x434cfa)return _0x203785;let _0xdf487e=_0x434cfa;while(_0xdf487e>0x0){const _0x3d5ead=_0x1cb7a7[_0xdf487e];if(_0x3d5ead===undefined||(_0x3d5ead&0xc0)!==0x80)break;_0xdf487e-=0x1;}return _0x1cb7a7[_0x22061c(0x10d)](0x0,_0xdf487e)[_0x22061c(0x110)](_0x22061c(0xf1));}
1
+ const a98_0x413366=a98_0x52a6;(function(_0x4cb376,_0x5c4bb2){const _0x38cfac=a98_0x52a6,_0xf72a64=_0x4cb376();while(!![]){try{const _0x154ca4=parseInt(_0x38cfac(0x1ce))/0x1*(parseInt(_0x38cfac(0x1c9))/0x2)+-parseInt(_0x38cfac(0x1d5))/0x3*(parseInt(_0x38cfac(0x1d1))/0x4)+-parseInt(_0x38cfac(0x1c5))/0x5+parseInt(_0x38cfac(0x1bf))/0x6+parseInt(_0x38cfac(0x1c3))/0x7+parseInt(_0x38cfac(0x1cd))/0x8+parseInt(_0x38cfac(0x1d4))/0x9*(parseInt(_0x38cfac(0x1d7))/0xa);if(_0x154ca4===_0x5c4bb2)break;else _0xf72a64['push'](_0xf72a64['shift']());}catch(_0x1c0c66){_0xf72a64['push'](_0xf72a64['shift']());}}}(a98_0x3e41,0x3c4f1));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a98_0x52a6(_0x243f1a,_0x9e2fff){_0x243f1a=_0x243f1a-0x1bf;const _0x3e4109=a98_0x3e41();let _0x52a646=_0x3e4109[_0x243f1a];return _0x52a646;}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x413366(0x1dd)},{'kind':a98_0x413366(0x1d8),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x413366(0x1db)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a98_0x413366(0x1cc),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x413366(0x1ca)},{'kind':a98_0x413366(0x1c4),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x413366(0x1d3)},{'kind':a98_0x413366(0x1da),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x413366(0x1cb)}];export function sanitizeIssueDescription(_0x46a6db){const _0x43dbfd=a98_0x413366,_0x15b2ca=Buffer[_0x43dbfd(0x1c7)](_0x46a6db,_0x43dbfd(0x1c1)),_0x4fd234=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xac5bae=_0x46a6db,_0x140896=0x0;const _0x44fa53=[];if(!_0x4fd234){const _0x5074d7=protectOssAccessKeyIds(_0xac5bae);_0xac5bae=_0x5074d7['description'];for(const _0x47789a of REDACTION_RULES){let _0xbc2426=0x0;_0xac5bae=_0xac5bae[_0x43dbfd(0x1d6)](_0x47789a[_0x43dbfd(0x1d2)],(_0x3636fd,_0xcd880c)=>{const _0x500709=_0x43dbfd;_0xbc2426+=0x1;const _0x2a3e4c=typeof _0xcd880c===_0x500709(0x1c2)?_0xcd880c:'';return _0x2a3e4c+'['+_0x47789a['label']+']';}),_0xbc2426>0x0&&(_0x140896+=_0xbc2426,!_0x44fa53[_0x43dbfd(0x1cf)](_0x47789a[_0x43dbfd(0x1c8)])&&_0x44fa53[_0x43dbfd(0x1d0)](_0x47789a['kind']));}_0xac5bae=_0x5074d7[_0x43dbfd(0x1c0)](_0xac5bae);}let _0x555951=![];if(Buffer[_0x43dbfd(0x1c7)](_0xac5bae,_0x43dbfd(0x1c1))>ISSUE_DESCRIPTION_MAX_BYTES){_0x555951=!![];const _0x393540=Buffer[_0x43dbfd(0x1c7)](TRUNCATION_NOTICE,'utf8'),_0x5a949b=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x393540);_0xac5bae=sliceUtf8Bytes(_0xac5bae,_0x5a949b)+TRUNCATION_NOTICE;}return{'description':_0xac5bae,'originalBytes':_0x15b2ca,'truncated':_0x555951,'redactionCount':_0x140896,'redactionKinds':_0x44fa53};}function protectOssAccessKeyIds(_0x35736b){const _0x3c667c=a98_0x413366,_0x59e713=[],_0x21089d=_0x35736b['replace'](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x41a7d2,_0x5cf070)=>{const _0x3be6d6=a98_0x52a6,_0x1c28e6=_0x59e713['push'](_0x41a7d2[_0x3be6d6(0x1c6)](_0x5cf070['length']))-0x1;return _0x5cf070+'__RB_OSS_ID_'+_0x1c28e6+'__';});return{'description':_0x21089d,'restore':_0x3cc370=>_0x3cc370[_0x3c667c(0x1d6)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x2a5f1b,_0x3ee802,_0x405d18)=>{const _0x2a4f2d=_0x59e713[Number(_0x405d18)];return _0x2a4f2d===undefined?_0x2a5f1b:''+_0x3ee802+_0x2a4f2d;})};}function a98_0x3e41(){const _0x874e78=['utf8','string','1899835NyPjbA','password','1544855xvbgBl','slice','byteLength','kind','8wAjWFY','REDACTED:access-key','REDACTED:bearer-jwt','access-key','639088OtVXdP','17887jkSxLK','includes','push','956356MIhtxt','pattern','REDACTED:password','2747322BgkXNy','3VOXeWc','replace','10QyGvFS','authorization','subarray','bearer-jwt','REDACTED:authorization','toString','REDACTED:cookie','401928kyJLCS','restore'];a98_0x3e41=function(){return _0x874e78;};return a98_0x3e41();}function sliceUtf8Bytes(_0x52e005,_0x47a416){const _0xbc2adc=a98_0x413366;if(_0x47a416<=0x0)return'';const _0x2f2e72=Buffer['from'](_0x52e005,_0xbc2adc(0x1c1));if(_0x2f2e72['byteLength']<=_0x47a416)return _0x52e005;let _0x3a10bd=_0x47a416;while(_0x3a10bd>0x0){const _0x23355b=_0x2f2e72[_0x3a10bd];if(_0x23355b===undefined||(_0x23355b&0xc0)!==0x80)break;_0x3a10bd-=0x1;}return _0x2f2e72[_0xbc2adc(0x1d9)](0x0,_0x3a10bd)[_0xbc2adc(0x1dc)]('utf8');}
@@ -1 +1 @@
1
- function a95_0x36fb(){const _0x107b37=['message','details','logs','stringify','log','read','clearLogs','toLocaleString','error','success','206799UoxBVf','Clear\x20command\x20history\x20logs','length','clear','*\x20No\x20logs\x20found','level','forEach','show','readLogs','1353IYvbKh','7626636ELqBYa','\x20\x20\x20Details:\x20','39522KpVFym','7ZJwxgb','47930LXOAjo','duration','\x20\x20\x20Time:\x20','View\x20command\x20history\x20logs','429192rpVumn','*\x20Lovrabet\x20CLI\x20logs:\x0a','write','650dfYpoM','\x20\x20\x20Duration:\x20','331244GPtlfg','16kbaFsk','7517538ZGoPcO'];a95_0x36fb=function(){return _0x107b37;};return a95_0x36fb();}const a95_0x35b2da=a95_0x4f85;function a95_0x4f85(_0x3aa1bc,_0x1aa917){_0x3aa1bc=_0x3aa1bc-0x176;const _0x36fb0a=a95_0x36fb();let _0x4f8510=_0x36fb0a[_0x3aa1bc];return _0x4f8510;}(function(_0x4feef3,_0xaaf07e){const _0x6b1e6a=a95_0x4f85,_0x28f7eb=_0x4feef3();while(!![]){try{const _0x396d6e=-parseInt(_0x6b1e6a(0x177))/0x1*(parseInt(_0x6b1e6a(0x181))/0x2)+-parseInt(_0x6b1e6a(0x18e))/0x3*(parseInt(_0x6b1e6a(0x182))/0x4)+parseInt(_0x6b1e6a(0x17f))/0x5*(parseInt(_0x6b1e6a(0x176))/0x6)+parseInt(_0x6b1e6a(0x183))/0x7+-parseInt(_0x6b1e6a(0x17c))/0x8+parseInt(_0x6b1e6a(0x198))/0x9+parseInt(_0x6b1e6a(0x178))/0xa*(-parseInt(_0x6b1e6a(0x197))/0xb);if(_0x396d6e===_0xaaf07e)break;else _0x28f7eb['push'](_0x28f7eb['shift']());}catch(_0x5e7fe3){_0x28f7eb['push'](_0x28f7eb['shift']());}}}(a95_0x36fb,0xaabee));import{logger}from'../../utils/logger.js';function printLogs(_0x2907a2){const _0x19f3ec=a95_0x4f85;if(_0x2907a2['length']===0x0){console[_0x19f3ec(0x188)](_0x19f3ec(0x192));return;}console[_0x19f3ec(0x188)](_0x19f3ec(0x17d)),_0x2907a2[_0x19f3ec(0x194)]((_0x4435fb,_0x3a7d0d)=>{const _0x45dbdd=_0x19f3ec,_0x9bad71=new Date(_0x4435fb['timestamp'])[_0x45dbdd(0x18b)]('en-US'),_0x27dceb=_0x4435fb[_0x45dbdd(0x193)]===_0x45dbdd(0x18d)?'√':_0x4435fb[_0x45dbdd(0x193)]===_0x45dbdd(0x18c)?'×':_0x4435fb[_0x45dbdd(0x193)]==='warn'?'!':'i';console[_0x45dbdd(0x188)](_0x3a7d0d+0x1+'.\x20'+_0x27dceb+'\x20['+_0x4435fb['command']+']\x20'+_0x4435fb[_0x45dbdd(0x184)]),console[_0x45dbdd(0x188)](_0x45dbdd(0x17a)+_0x9bad71),_0x4435fb['duration']&&console[_0x45dbdd(0x188)](_0x45dbdd(0x180)+_0x4435fb[_0x45dbdd(0x179)]+'ms'),_0x4435fb['details']&&Object['keys'](_0x4435fb[_0x45dbdd(0x185)])[_0x45dbdd(0x190)]>0x0&&console[_0x45dbdd(0x188)](_0x45dbdd(0x199)+JSON[_0x45dbdd(0x187)](_0x4435fb[_0x45dbdd(0x185)],null,0x2)),console[_0x45dbdd(0x188)]('');});}export const logsDefinitions=[{'service':a95_0x35b2da(0x186),'command':a95_0x35b2da(0x195),'description':a95_0x35b2da(0x17b),'risk':a95_0x35b2da(0x189),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x466f2a){const _0x3daffc=a95_0x35b2da;return printLogs(logger[_0x3daffc(0x196)]()),{'ok':!![]};}},{'service':a95_0x35b2da(0x186),'command':a95_0x35b2da(0x191),'description':a95_0x35b2da(0x18f),'risk':a95_0x35b2da(0x17e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2bfbff){const _0x241920=a95_0x35b2da;return logger[_0x241920(0x18a)](),console[_0x241920(0x188)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
1
+ const a99_0x524ce9=a99_0xed4d;function a99_0xed4d(_0x21a473,_0x38454e){_0x21a473=_0x21a473-0x73;const _0x1a4f06=a99_0x1a4f();let _0xed4d77=_0x1a4f06[_0x21a473];return _0xed4d77;}(function(_0x3f36fe,_0x167d71){const _0x5e3637=a99_0xed4d,_0x4a2095=_0x3f36fe();while(!![]){try{const _0x4cfccc=-parseInt(_0x5e3637(0x84))/0x1+-parseInt(_0x5e3637(0x8f))/0x2+-parseInt(_0x5e3637(0x77))/0x3+parseInt(_0x5e3637(0x90))/0x4*(parseInt(_0x5e3637(0x7e))/0x5)+parseInt(_0x5e3637(0x8d))/0x6+-parseInt(_0x5e3637(0x78))/0x7*(-parseInt(_0x5e3637(0x8b))/0x8)+parseInt(_0x5e3637(0x80))/0x9*(parseInt(_0x5e3637(0x86))/0xa);if(_0x4cfccc===_0x167d71)break;else _0x4a2095['push'](_0x4a2095['shift']());}catch(_0x62cea3){_0x4a2095['push'](_0x4a2095['shift']());}}}(a99_0x1a4f,0x47653));import{logger}from'../../utils/logger.js';function a99_0x1a4f(){const _0x440a85=['command','5dYUgwu','error','5169897oXUrWm','write','Clear\x20command\x20history\x20logs','clearLogs','440100pWNQsB','clear','10qcztfl','*\x20Logs\x20cleared','log','*\x20No\x20logs\x20found','logs','8qKmnmr','keys','873840hnpxEY','show','965832KCLRpS','1979804frCfvK','details','level','toLocaleString','warn','readLogs','forEach','892083hRJdxx','2084516LxOXqy','message','length','\x20\x20\x20Duration:\x20','duration'];a99_0x1a4f=function(){return _0x440a85;};return a99_0x1a4f();}function printLogs(_0x3c42fa){const _0x54c8aa=a99_0xed4d;if(_0x3c42fa[_0x54c8aa(0x7a)]===0x0){console[_0x54c8aa(0x88)](_0x54c8aa(0x89));return;}console[_0x54c8aa(0x88)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x3c42fa[_0x54c8aa(0x76)]((_0x39b0de,_0x39be17)=>{const _0x589329=_0x54c8aa,_0x2af2b1=new Date(_0x39b0de['timestamp'])[_0x589329(0x73)]('en-US'),_0x48b285=_0x39b0de['level']==='success'?'√':_0x39b0de['level']===_0x589329(0x7f)?'×':_0x39b0de[_0x589329(0x92)]===_0x589329(0x74)?'!':'i';console[_0x589329(0x88)](_0x39be17+0x1+'.\x20'+_0x48b285+'\x20['+_0x39b0de[_0x589329(0x7d)]+']\x20'+_0x39b0de[_0x589329(0x79)]),console[_0x589329(0x88)]('\x20\x20\x20Time:\x20'+_0x2af2b1),_0x39b0de[_0x589329(0x7c)]&&console[_0x589329(0x88)](_0x589329(0x7b)+_0x39b0de['duration']+'ms'),_0x39b0de['details']&&Object[_0x589329(0x8c)](_0x39b0de['details'])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x39b0de[_0x589329(0x91)],null,0x2)),console[_0x589329(0x88)]('');});}export const logsDefinitions=[{'service':a99_0x524ce9(0x8a),'command':a99_0x524ce9(0x8e),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x242bcc){const _0x165df8=a99_0x524ce9;return printLogs(logger[_0x165df8(0x75)]()),{'ok':!![]};}},{'service':'logs','command':a99_0x524ce9(0x85),'description':a99_0x524ce9(0x82),'risk':a99_0x524ce9(0x81),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x570971){const _0x3fa4a6=a99_0x524ce9;return logger[_0x3fa4a6(0x83)](),console[_0x3fa4a6(0x88)](_0x3fa4a6(0x87)),{'ok':!![]};}}];
@@ -1 +1 @@
1
- function a96_0x1d26(){const _0x31ef53=['2611zQGMCz','10PnJzRb','4NuiLru','121IuUWQC','1722738svdgNh','12lljdyM','4313148NQIzhI','551253nzVCrI','226685AKyuSc','27080qCJmia','7266393OuHScP','2096932WaFeaz'];a96_0x1d26=function(){return _0x31ef53;};return a96_0x1d26();}(function(_0xa25910,_0x532227){const _0x13e0e8=a96_0x1569,_0x4ec3fe=_0xa25910();while(!![]){try{const _0x5c2a09=parseInt(_0x13e0e8(0xfd))/0x1*(-parseInt(_0x13e0e8(0x104))/0x2)+parseInt(_0x13e0e8(0x106))/0x3+-parseInt(_0x13e0e8(0x101))/0x4+parseInt(_0x13e0e8(0xfe))/0x5*(-parseInt(_0x13e0e8(0x107))/0x6)+parseInt(_0x13e0e8(0x102))/0x7*(-parseInt(_0x13e0e8(0xff))/0x8)+parseInt(_0x13e0e8(0x100))/0x9*(-parseInt(_0x13e0e8(0x103))/0xa)+parseInt(_0x13e0e8(0x105))/0xb*(parseInt(_0x13e0e8(0xfc))/0xc);if(_0x5c2a09===_0x532227)break;else _0x4ec3fe['push'](_0x4ec3fe['shift']());}catch(_0x62830d){_0x4ec3fe['push'](_0x4ec3fe['shift']());}}}(a96_0x1d26,0xb4cda));function a96_0x1569(_0x12e5e9,_0x3845bd){_0x12e5e9=_0x12e5e9-0xfc;const _0x1d2637=a96_0x1d26();let _0x15697e=_0x1d2637[_0x12e5e9];return _0x15697e;}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
1
+ (function(_0x2618be,_0x5e5697){const _0x3f4c94=a100_0x578c,_0x1eb381=_0x2618be();while(!![]){try{const _0x6d9539=-parseInt(_0x3f4c94(0x164))/0x1*(-parseInt(_0x3f4c94(0x168))/0x2)+parseInt(_0x3f4c94(0x165))/0x3*(-parseInt(_0x3f4c94(0x16b))/0x4)+-parseInt(_0x3f4c94(0x162))/0x5*(-parseInt(_0x3f4c94(0x167))/0x6)+-parseInt(_0x3f4c94(0x161))/0x7*(parseInt(_0x3f4c94(0x16a))/0x8)+parseInt(_0x3f4c94(0x169))/0x9*(parseInt(_0x3f4c94(0x16c))/0xa)+parseInt(_0x3f4c94(0x16d))/0xb*(-parseInt(_0x3f4c94(0x166))/0xc)+-parseInt(_0x3f4c94(0x16e))/0xd*(-parseInt(_0x3f4c94(0x163))/0xe);if(_0x6d9539===_0x5e5697)break;else _0x1eb381['push'](_0x1eb381['shift']());}catch(_0x468650){_0x1eb381['push'](_0x1eb381['shift']());}}}(a100_0x2109,0xdb270));function a100_0x578c(_0x4d8a52,_0x1a5689){_0x4d8a52=_0x4d8a52-0x161;const _0x2109bc=a100_0x2109();let _0x578c65=_0x2109bc[_0x4d8a52];return _0x578c65;}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a100_0x2109(){const _0x363bde=['2510136ealhtj','8504328JBmgTK','6KHJmyd','371446OukXZv','45NtWGrL','720BHgGcD','8KHYOhh','1439650ayOuHf','22SewWZK','3523KaZtUs','109396PCwrvg','48605aznQYp','193046OPOrBA','5PGOyQz'];a100_0x2109=function(){return _0x363bde;};return a100_0x2109();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
@@ -1 +1 @@
1
- const a97_0x29463b=a97_0x1e7c;(function(_0x2a7c47,_0x266764){const _0x1a9cde=a97_0x1e7c,_0x4618af=_0x2a7c47();while(!![]){try{const _0x225640=parseInt(_0x1a9cde(0x8a))/0x1+parseInt(_0x1a9cde(0x99))/0x2*(parseInt(_0x1a9cde(0x8f))/0x3)+-parseInt(_0x1a9cde(0x75))/0x4+parseInt(_0x1a9cde(0x76))/0x5+parseInt(_0x1a9cde(0x86))/0x6+parseInt(_0x1a9cde(0x91))/0x7*(-parseInt(_0x1a9cde(0x94))/0x8)+-parseInt(_0x1a9cde(0x8e))/0x9*(parseInt(_0x1a9cde(0x8b))/0xa);if(_0x225640===_0x266764)break;else _0x4618af['push'](_0x4618af['shift']());}catch(_0xe34d09){_0x4618af['push'](_0x4618af['shift']());}}}(a97_0x49ef,0xb81ca));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x49ef(){const _0x42e2db=['push','visible','4443942hyFzuG','index','POSITIVE_INFINITY','children','1487190VUZejH','45420kTZWjU','cookie','label','2691bBNrxN','13428QopzMC','menu','3345559dcXjQK','item','Found\x20','8RiNfyI','read','length','extend','sort','224mzOXhQ','string','1785072zIMNvd','1536130Vmhvli','number','depth','parentId','path','isFinite','boolean','parse','verbose','appCode','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','map','No\x20menus\x20found.'];a97_0x49ef=function(){return _0x42e2db;};return a97_0x49ef();}import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a97_0x29463b(0x90),'command':'list','description':a97_0x29463b(0x81),'risk':a97_0x29463b(0x95),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x29463b(0x7e),'type':a97_0x29463b(0x7c),'description':'Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing'}],async 'execute'(_0x1e90ca){const _0x3cd14d=a97_0x29463b,_0x550827=_0x1e90ca['bool'](_0x3cd14d(0x7e)),_0x1e5bb4=await getMenuTree(_0x1e90ca[_0x3cd14d(0x7f)],_0x1e90ca[_0x3cd14d(0x8c)]),_0x16e6e9=flattenMenuItems(Array[_0x3cd14d(0x80)](_0x1e5bb4)?_0x1e5bb4:[],{'verbose':_0x550827,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x16e6e9[_0x3cd14d(0x96)],'menus':_0x16e6e9},'message':_0x16e6e9[_0x3cd14d(0x96)]===0x0?_0x3cd14d(0x83):_0x3cd14d(0x93)+_0x16e6e9[_0x3cd14d(0x96)]+'\x20menu(s)'};}};function a97_0x1e7c(_0x487502,_0x5d2f95){_0x487502=_0x487502-0x74;const _0x49ef80=a97_0x49ef();let _0x1e7c11=_0x49ef80[_0x487502];return _0x1e7c11;}function flattenMenuItems(_0x123d62,_0x4f4050){const _0x17f418=a97_0x29463b,_0xdec529=sortMenuItems(_0x123d62),_0x560aa5=[];for(const _0x2064f4 of _0xdec529){_0x560aa5['push'](toMenuListItem(_0x2064f4,_0x4f4050)),Array[_0x17f418(0x80)](_0x2064f4[_0x17f418(0x89)])&&_0x2064f4[_0x17f418(0x89)]['length']>0x0&&_0x560aa5[_0x17f418(0x84)](...flattenMenuItems(_0x2064f4[_0x17f418(0x89)],{'verbose':_0x4f4050[_0x17f418(0x7e)],'parentId':_0x2064f4['id'],'depth':_0x4f4050[_0x17f418(0x78)]+0x1}));}return _0x560aa5;}function sortMenuItems(_0x22836b){const _0x21ebb3=a97_0x29463b;return _0x22836b[_0x21ebb3(0x82)]((_0x19795a,_0x3066ef)=>({'item':_0x19795a,'index':_0x3066ef}))['sort']((_0x2ce9e8,_0x3a828c)=>{const _0x29b0cd=_0x21ebb3,_0x55f2c7=normalizeSort(_0x2ce9e8[_0x29b0cd(0x92)][_0x29b0cd(0x98)]),_0x806134=normalizeSort(_0x3a828c[_0x29b0cd(0x92)][_0x29b0cd(0x98)]);if(_0x55f2c7!==_0x806134)return _0x55f2c7-_0x806134;return _0x2ce9e8[_0x29b0cd(0x87)]-_0x3a828c[_0x29b0cd(0x87)];})[_0x21ebb3(0x82)](({item:_0x515879})=>_0x515879);}function toMenuListItem(_0x1da8c5,_0x129ef1){const _0x5eea7e=a97_0x29463b,_0x1e22a9={'id':_0x1da8c5['id'],'parentId':_0x129ef1[_0x5eea7e(0x79)],'depth':_0x129ef1[_0x5eea7e(0x78)],'label':normalizeString(_0x1da8c5[_0x5eea7e(0x8d)]),'path':normalizeString(_0x1da8c5[_0x5eea7e(0x7a)]),'type':normalizeString(_0x1da8c5['type']),'visible':typeof _0x1da8c5[_0x5eea7e(0x85)]===_0x5eea7e(0x7c)?_0x1da8c5[_0x5eea7e(0x85)]:null,'sort':typeof _0x1da8c5['sort']===_0x5eea7e(0x77)&&Number[_0x5eea7e(0x7b)](_0x1da8c5[_0x5eea7e(0x98)])?_0x1da8c5[_0x5eea7e(0x98)]:null,'resources':normalizeResources(_0x1da8c5[_0x5eea7e(0x97)]?.['resources'])};return _0x129ef1[_0x5eea7e(0x7e)]&&(_0x1e22a9[_0x5eea7e(0x97)]=_0x1da8c5['extend']??null),_0x1e22a9;}function normalizeSort(_0x235ec1){const _0x2b1e33=a97_0x29463b;return typeof _0x235ec1===_0x2b1e33(0x77)&&Number['isFinite'](_0x235ec1)?_0x235ec1:Number[_0x2b1e33(0x88)];}function normalizeString(_0x462ac3){const _0x302eb2=a97_0x29463b;return typeof _0x462ac3===_0x302eb2(0x74)?_0x462ac3:'';}function normalizeResources(_0x52db7d){const _0x110da7=a97_0x29463b;if(Array[_0x110da7(0x80)](_0x52db7d))return _0x52db7d['map'](String);if(typeof _0x52db7d!==_0x110da7(0x74))return[];try{const _0x5dc580=JSON[_0x110da7(0x7d)](_0x52db7d);return Array['isArray'](_0x5dc580)?_0x5dc580[_0x110da7(0x82)](String):[];}catch{return[];}}
1
+ const a101_0x302dd8=a101_0x7322;(function(_0x4b59f2,_0x4891cf){const _0x3e708f=a101_0x7322,_0x27c3f0=_0x4b59f2();while(!![]){try{const _0xd8c782=parseInt(_0x3e708f(0x6d))/0x1+parseInt(_0x3e708f(0x6a))/0x2*(parseInt(_0x3e708f(0x89))/0x3)+-parseInt(_0x3e708f(0x8a))/0x4*(-parseInt(_0x3e708f(0x6c))/0x5)+parseInt(_0x3e708f(0x8d))/0x6*(-parseInt(_0x3e708f(0x6e))/0x7)+parseInt(_0x3e708f(0x66))/0x8*(-parseInt(_0x3e708f(0x67))/0x9)+parseInt(_0x3e708f(0x71))/0xa*(parseInt(_0x3e708f(0x7a))/0xb)+-parseInt(_0x3e708f(0x7e))/0xc;if(_0xd8c782===_0x4891cf)break;else _0x27c3f0['push'](_0x27c3f0['shift']());}catch(_0x57770d){_0x27c3f0['push'](_0x27c3f0['shift']());}}}(a101_0x41ab,0xac721));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0x302dd8(0x82),'command':'list','description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a101_0x302dd8(0x72),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a101_0x302dd8(0x74),'type':a101_0x302dd8(0x6f),'description':a101_0x302dd8(0x69)}],async 'execute'(_0x526dba){const _0x1d0284=a101_0x302dd8,_0x34192b=_0x526dba[_0x1d0284(0x88)]('verbose'),_0xa1b7ba=await getMenuTree(_0x526dba['appCode'],_0x526dba[_0x1d0284(0x84)]),_0x2dadcf=flattenMenuItems(Array[_0x1d0284(0x7f)](_0xa1b7ba)?_0xa1b7ba:[],{'verbose':_0x34192b,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x2dadcf[_0x1d0284(0x85)],'menus':_0x2dadcf},'message':_0x2dadcf['length']===0x0?_0x1d0284(0x76):_0x1d0284(0x79)+_0x2dadcf['length']+_0x1d0284(0x77)};}};function flattenMenuItems(_0x3f85df,_0x5ce6fb){const _0x5545fa=a101_0x302dd8,_0x2cea05=sortMenuItems(_0x3f85df),_0x548ad0=[];for(const _0x5c310d of _0x2cea05){_0x548ad0['push'](toMenuListItem(_0x5c310d,_0x5ce6fb)),Array['isArray'](_0x5c310d['children'])&&_0x5c310d[_0x5545fa(0x68)][_0x5545fa(0x85)]>0x0&&_0x548ad0[_0x5545fa(0x7b)](...flattenMenuItems(_0x5c310d['children'],{'verbose':_0x5ce6fb[_0x5545fa(0x74)],'parentId':_0x5c310d['id'],'depth':_0x5ce6fb['depth']+0x1}));}return _0x548ad0;}function sortMenuItems(_0x1fac7c){const _0x4ef9e5=a101_0x302dd8;return _0x1fac7c[_0x4ef9e5(0x8b)]((_0x3b4df1,_0x31055d)=>({'item':_0x3b4df1,'index':_0x31055d}))['sort']((_0x37f0b2,_0x265cbd)=>{const _0x36df17=_0x4ef9e5,_0x4c0e83=normalizeSort(_0x37f0b2[_0x36df17(0x6b)]['sort']),_0x39bf43=normalizeSort(_0x265cbd[_0x36df17(0x6b)][_0x36df17(0x70)]);if(_0x4c0e83!==_0x39bf43)return _0x4c0e83-_0x39bf43;return _0x37f0b2['index']-_0x265cbd[_0x36df17(0x86)];})['map'](({item:_0x412846})=>_0x412846);}function a101_0x7322(_0x570d7c,_0x30e48b){_0x570d7c=_0x570d7c-0x64;const _0x41ab57=a101_0x41ab();let _0x73226=_0x41ab57[_0x570d7c];return _0x73226;}function toMenuListItem(_0x1980b9,_0x9565c0){const _0xab8400=a101_0x302dd8,_0x5d9c85={'id':_0x1980b9['id'],'parentId':_0x9565c0['parentId'],'depth':_0x9565c0[_0xab8400(0x73)],'label':normalizeString(_0x1980b9[_0xab8400(0x87)]),'path':normalizeString(_0x1980b9[_0xab8400(0x64)]),'type':normalizeString(_0x1980b9[_0xab8400(0x65)]),'visible':typeof _0x1980b9['visible']==='boolean'?_0x1980b9[_0xab8400(0x75)]:null,'sort':typeof _0x1980b9['sort']===_0xab8400(0x83)&&Number[_0xab8400(0x8c)](_0x1980b9[_0xab8400(0x70)])?_0x1980b9[_0xab8400(0x70)]:null,'resources':normalizeResources(_0x1980b9['extend']?.[_0xab8400(0x81)])};return _0x9565c0[_0xab8400(0x74)]&&(_0x5d9c85[_0xab8400(0x78)]=_0x1980b9[_0xab8400(0x78)]??null),_0x5d9c85;}function a101_0x41ab(){const _0x22a366=['length','index','label','bool','594363hcSOfr','5996hJGyRx','map','isFinite','4926TrPCnK','path','type','112ajepWj','161334azMMYp','children','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','4SIqGgG','item','3195sPJGMi','1085568YNuvlJ','9009YTFZqQ','boolean','sort','420ejhEQK','read','depth','verbose','visible','No\x20menus\x20found.','\x20menu(s)','extend','Found\x20','220737rdGysI','push','string','parse','15222684TwWHsR','isArray','POSITIVE_INFINITY','resources','menu','number','cookie'];a101_0x41ab=function(){return _0x22a366;};return a101_0x41ab();}function normalizeSort(_0xe6b67a){const _0x3e5566=a101_0x302dd8;return typeof _0xe6b67a===_0x3e5566(0x83)&&Number['isFinite'](_0xe6b67a)?_0xe6b67a:Number[_0x3e5566(0x80)];}function normalizeString(_0x4577ea){const _0x194847=a101_0x302dd8;return typeof _0x4577ea===_0x194847(0x7c)?_0x4577ea:'';}function normalizeResources(_0x476f42){const _0x403670=a101_0x302dd8;if(Array[_0x403670(0x7f)](_0x476f42))return _0x476f42[_0x403670(0x8b)](String);if(typeof _0x476f42!==_0x403670(0x7c))return[];try{const _0x2ab070=JSON[_0x403670(0x7d)](_0x476f42);return Array[_0x403670(0x7f)](_0x2ab070)?_0x2ab070[_0x403670(0x8b)](String):[];}catch{return[];}}
@@ -1 +1 @@
1
- function a98_0x7f4b(_0x5a2cda,_0x3f4711){_0x5a2cda=_0x5a2cda-0x179;const _0x549960=a98_0x5499();let _0x7f4bf5=_0x549960[_0x5a2cda];return _0x7f4bf5;}(function(_0x1127ef,_0x1bce82){const _0x30522=a98_0x7f4b,_0x14f09b=_0x1127ef();while(!![]){try{const _0x4679a3=-parseInt(_0x30522(0x18f))/0x1+-parseInt(_0x30522(0x194))/0x2*(parseInt(_0x30522(0x185))/0x3)+parseInt(_0x30522(0x18d))/0x4*(-parseInt(_0x30522(0x182))/0x5)+-parseInt(_0x30522(0x192))/0x6+parseInt(_0x30522(0x17d))/0x7+parseInt(_0x30522(0x186))/0x8*(parseInt(_0x30522(0x17f))/0x9)+parseInt(_0x30522(0x17b))/0xa;if(_0x4679a3===_0x1bce82)break;else _0x14f09b['push'](_0x14f09b['shift']());}catch(_0x2179fd){_0x14f09b['push'](_0x14f09b['shift']());}}}(a98_0x5499,0xeb726));function strWidth(_0x1a5aee){const _0x529364=a98_0x7f4b;let _0x781557=0x0;for(const _0x4e83f0 of _0x1a5aee){_0x781557+=/[\u4e00-\u9fa5]/[_0x529364(0x189)](_0x4e83f0)?0x2:0x1;}return _0x781557;}function a98_0x5499(){const _0x2bd38e=['164nUItJT','map','609798mMmTii','online','push','6322980tLdHWK','label','2ElgMsN','join','length','max','(unchanged)','25357210KrdvZd','showOnline','12646123WvyRAl','repeat','18uZRqSn','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20CSS:\x20','221035rVzsXD','\x20\x20No\x20pages\x20to\x20sync.','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','641211kHKOPg','1247728QMLtjz','Local','Platform','test','\x20\x20Affected\x20menus:\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];a98_0x5499=function(){return _0x2bd38e;};return a98_0x5499();}function padRight(_0x444a80,_0x131ade){const _0x40d73a=a98_0x7f4b,_0xd1390a=strWidth(_0x444a80);return _0x444a80+'\x20'[_0x40d73a(0x17e)](Math[_0x40d73a(0x179)](0x0,_0x131ade-_0xd1390a));}export function renderCompareTable(_0x7cd47f,_0x2b89d6={}){const _0x238163=a98_0x7f4b;if(_0x7cd47f[_0x238163(0x196)]===0x0)return'';const _0x3049d1=_0x2b89d6[_0x238163(0x17c)]??!![],_0x33790c=Math[_0x238163(0x179)](0x1e,..._0x7cd47f[_0x238163(0x18e)](_0x39bc32=>strWidth(_0x39bc32[_0x238163(0x193)]))),_0x20b19e=0x4,_0x17aaad=[],_0x5d8c95='\x20\x20'+padRight('Menu\x20Name',_0x33790c),_0x2b4ed9=padRight(_0x238163(0x187),_0x20b19e),_0x2b69d1=_0x3049d1?'\x20\x20'+padRight(_0x238163(0x188),_0x20b19e):'';_0x17aaad['push'](_0x5d8c95+'\x20\x20'+_0x2b4ed9+(_0x3049d1?_0x2b69d1:'')),_0x17aaad['push']('\x20\x20'+'─'[_0x238163(0x17e)](_0x33790c)+'\x20\x20'+'─'[_0x238163(0x17e)](_0x20b19e)+(_0x3049d1?'\x20\x20'+'─'[_0x238163(0x17e)](_0x20b19e):''));for(const _0x43677c of _0x7cd47f){const _0x3d47ab=padRight(_0x43677c[_0x238163(0x193)],_0x33790c),_0x51767d=_0x43677c['local']?'✓':'✗',_0x1553cf=padRight(_0x51767d,_0x20b19e);let _0x32d9c3='\x20\x20'+_0x3d47ab+'\x20\x20'+_0x1553cf;if(_0x3049d1){const _0x199653=_0x43677c[_0x238163(0x190)]?'✓':'✗';_0x32d9c3+='\x20\x20'+padRight(_0x199653,_0x20b19e);}_0x17aaad[_0x238163(0x191)](_0x32d9c3);}return _0x17aaad[_0x238163(0x195)]('\x0a');}export function renderSyncSummary(_0x4080d9,_0x2d8869){const _0x157d45=a98_0x7f4b;if(_0x4080d9['length']===0x0)return _0x2d8869?_0x157d45(0x18b):_0x157d45(0x183);const _0x1d6c56=['\x20\x20'+_0x4080d9[_0x157d45(0x196)]+_0x157d45(0x18c)];for(const _0x290af2 of _0x4080d9){_0x1d6c56['push']('\x20\x20\x20\x20•\x20'+_0x290af2[_0x157d45(0x193)]+'\x20('+_0x290af2['path']+')');}return _0x1d6c56[_0x157d45(0x195)]('\x0a');}export function renderUpdateSummary(_0x2701e8,_0x4d9586){const _0xf71e69=a98_0x7f4b;if(_0x2701e8[_0xf71e69(0x196)]===0x0)return _0xf71e69(0x184);const _0x3e90a7=['\x20\x20'+_0x2701e8[_0xf71e69(0x196)]+_0xf71e69(0x180),'\x20\x20\x20\x20JS:\x20\x20'+(_0x4d9586[0x0]??_0xf71e69(0x17a)),_0xf71e69(0x181)+(_0x4d9586[0x1]??_0xf71e69(0x17a)),'',_0xf71e69(0x18a)+_0x2701e8[_0xf71e69(0x195)](',\x20')];return _0x3e90a7[_0xf71e69(0x195)]('\x0a');}
1
+ (function(_0x1501a0,_0x37636d){const _0x35afeb=a102_0x1bf7,_0x1842be=_0x1501a0();while(!![]){try{const _0x7382e4=parseInt(_0x35afeb(0x1e9))/0x1+parseInt(_0x35afeb(0x1da))/0x2+-parseInt(_0x35afeb(0x1ef))/0x3+parseInt(_0x35afeb(0x1f4))/0x4*(-parseInt(_0x35afeb(0x1f2))/0x5)+-parseInt(_0x35afeb(0x1e3))/0x6+parseInt(_0x35afeb(0x1ec))/0x7+-parseInt(_0x35afeb(0x1db))/0x8;if(_0x7382e4===_0x37636d)break;else _0x1842be['push'](_0x1842be['shift']());}catch(_0x5eeded){_0x1842be['push'](_0x1842be['shift']());}}}(a102_0xab40,0xd2639));function strWidth(_0x9ad55f){const _0x50e5fd=a102_0x1bf7;let _0x270d70=0x0;for(const _0x3c11ff of _0x9ad55f){_0x270d70+=/[\u4e00-\u9fa5]/[_0x50e5fd(0x1f0)](_0x3c11ff)?0x2:0x1;}return _0x270d70;}function a102_0xab40(){const _0x192673=['\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','(unchanged)','map','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','995844fSGUxk','Platform','Menu\x20Name','push','Local','path','1640201veJRxP','label','\x20\x20\x20\x20JS:\x20\x20','1652840MtgLTC','repeat','join','3800331Tlwuoo','test','\x20\x20\x20\x20•\x20','470GwTjbT','length','14664mjoESa','local','\x20\x20No\x20pages\x20to\x20sync.','max','2728524JaQLls','4811800JlhHhj','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','showOnline'];a102_0xab40=function(){return _0x192673;};return a102_0xab40();}function padRight(_0xeddfc5,_0x5542b2){const _0x51ee74=strWidth(_0xeddfc5);return _0xeddfc5+'\x20'['repeat'](Math['max'](0x0,_0x5542b2-_0x51ee74));}export function renderCompareTable(_0x38e55d,_0x187819={}){const _0x2f6237=a102_0x1bf7;if(_0x38e55d[_0x2f6237(0x1f3)]===0x0)return'';const _0x57c0eb=_0x187819[_0x2f6237(0x1dd)]??!![],_0x1cb789=Math[_0x2f6237(0x1f7)](0x1e,..._0x38e55d[_0x2f6237(0x1e1)](_0x2d5d84=>strWidth(_0x2d5d84[_0x2f6237(0x1ea)]))),_0xb9883b=0x4,_0x1d8b1e=[],_0x1af77b='\x20\x20'+padRight(_0x2f6237(0x1e5),_0x1cb789),_0x254831=padRight(_0x2f6237(0x1e7),_0xb9883b),_0x455869=_0x57c0eb?'\x20\x20'+padRight(_0x2f6237(0x1e4),_0xb9883b):'';_0x1d8b1e[_0x2f6237(0x1e6)](_0x1af77b+'\x20\x20'+_0x254831+(_0x57c0eb?_0x455869:'')),_0x1d8b1e['push']('\x20\x20'+'─'[_0x2f6237(0x1ed)](_0x1cb789)+'\x20\x20'+'─'[_0x2f6237(0x1ed)](_0xb9883b)+(_0x57c0eb?'\x20\x20'+'─'[_0x2f6237(0x1ed)](_0xb9883b):''));for(const _0x5e02cc of _0x38e55d){const _0x3b0dad=padRight(_0x5e02cc[_0x2f6237(0x1ea)],_0x1cb789),_0x165b5f=_0x5e02cc[_0x2f6237(0x1f5)]?'✓':'✗',_0x122d05=padRight(_0x165b5f,_0xb9883b);let _0x57f11d='\x20\x20'+_0x3b0dad+'\x20\x20'+_0x122d05;if(_0x57c0eb){const _0x2ea0b0=_0x5e02cc['online']?'✓':'✗';_0x57f11d+='\x20\x20'+padRight(_0x2ea0b0,_0xb9883b);}_0x1d8b1e['push'](_0x57f11d);}return _0x1d8b1e[_0x2f6237(0x1ee)]('\x0a');}function a102_0x1bf7(_0x2936e1,_0x168cbe){_0x2936e1=_0x2936e1-0x1da;const _0xab400d=a102_0xab40();let _0x1bf773=_0xab400d[_0x2936e1];return _0x1bf773;}export function renderSyncSummary(_0x178e9f,_0x5cdc98){const _0x60bf6f=a102_0x1bf7;if(_0x178e9f[_0x60bf6f(0x1f3)]===0x0)return _0x5cdc98?_0x60bf6f(0x1df):_0x60bf6f(0x1f6);const _0x149961=['\x20\x20'+_0x178e9f[_0x60bf6f(0x1f3)]+_0x60bf6f(0x1e2)];for(const _0x5ea577 of _0x178e9f){_0x149961[_0x60bf6f(0x1e6)](_0x60bf6f(0x1f1)+_0x5ea577['label']+'\x20('+_0x5ea577[_0x60bf6f(0x1e8)]+')');}return _0x149961[_0x60bf6f(0x1ee)]('\x0a');}export function renderUpdateSummary(_0x511e28,_0x2bc53b){const _0x4a63ba=a102_0x1bf7;if(_0x511e28[_0x4a63ba(0x1f3)]===0x0)return _0x4a63ba(0x1dc);const _0x329523=['\x20\x20'+_0x511e28['length']+_0x4a63ba(0x1de),_0x4a63ba(0x1eb)+(_0x2bc53b[0x0]??_0x4a63ba(0x1e0)),'\x20\x20\x20\x20CSS:\x20'+(_0x2bc53b[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x511e28['join'](',\x20')];return _0x329523[_0x4a63ba(0x1ee)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x5a522c,_0x1d7d8c){var _0x3aaa6f=a99_0x48b2,_0x24394f=_0x5a522c();while(!![]){try{var _0x1722ac=-parseInt(_0x3aaa6f(0xbf))/0x1+-parseInt(_0x3aaa6f(0xbc))/0x2+-parseInt(_0x3aaa6f(0xba))/0x3*(parseInt(_0x3aaa6f(0xb8))/0x4)+parseInt(_0x3aaa6f(0xb9))/0x5*(parseInt(_0x3aaa6f(0xc0))/0x6)+-parseInt(_0x3aaa6f(0xc1))/0x7+parseInt(_0x3aaa6f(0xbe))/0x8*(-parseInt(_0x3aaa6f(0xbd))/0x9)+parseInt(_0x3aaa6f(0xc2))/0xa*(parseInt(_0x3aaa6f(0xbb))/0xb);if(_0x1722ac===_0x1d7d8c)break;else _0x24394f['push'](_0x24394f['shift']());}catch(_0x510825){_0x24394f['push'](_0x24394f['shift']());}}}(a99_0x3b1b,0x812af));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a99_0x3b1b(){var _0x145ada=['308WNZhie','4190iOAxVu','36741HziQZQ','43664313uKuBqT','1354654NRAhNO','18CWoFbU','2999624VqPHGT','636519nUXbXb','1710Bciwao','4707297LpoMab','10HzSdJz'];a99_0x3b1b=function(){return _0x145ada;};return a99_0x3b1b();}function a99_0x48b2(_0x62661b,_0x55a45d){_0x62661b=_0x62661b-0xb8;var _0x3b1be7=a99_0x3b1b();var _0x48b28d=_0x3b1be7[_0x62661b];return _0x48b28d;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x336ff3,_0x1d81af){var _0x128a9c=a103_0x4591,_0xf8d2f9=_0x336ff3();while(!![]){try{var _0x2c1adf=-parseInt(_0x128a9c(0x1d9))/0x1*(-parseInt(_0x128a9c(0x1d6))/0x2)+-parseInt(_0x128a9c(0x1dd))/0x3+parseInt(_0x128a9c(0x1db))/0x4+-parseInt(_0x128a9c(0x1d7))/0x5+parseInt(_0x128a9c(0x1de))/0x6*(-parseInt(_0x128a9c(0x1d8))/0x7)+-parseInt(_0x128a9c(0x1dc))/0x8+parseInt(_0x128a9c(0x1da))/0x9;if(_0x2c1adf===_0x1d81af)break;else _0xf8d2f9['push'](_0xf8d2f9['shift']());}catch(_0x25d820){_0xf8d2f9['push'](_0xf8d2f9['shift']());}}}(a103_0x5be7,0x27480));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a103_0x5be7(){var _0x23c5ec=['839440JyBkCD','317079blstui','770376mbRuvs','2QklOVI','835740EgLJRy','14CDjSjc','29443ByRjre','5463513TRTgKy','635836XYagWh'];a103_0x5be7=function(){return _0x23c5ec;};return a103_0x5be7();}function a103_0x4591(_0x409d57,_0x50662c){_0x409d57=_0x409d57-0x1d6;var _0x5be7ee=a103_0x5be7();var _0x459163=_0x5be7ee[_0x409d57];return _0x459163;}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(_0x116b65,_0x21ba9e){const _0x3a03c4=a100_0x187d,_0x4e8477=_0x116b65();while(!![]){try{const _0x3ee2bb=parseInt(_0x3a03c4(0x1a7))/0x1*(-parseInt(_0x3a03c4(0x1c3))/0x2)+-parseInt(_0x3a03c4(0x1b7))/0x3+-parseInt(_0x3a03c4(0x1b9))/0x4*(parseInt(_0x3a03c4(0x1a2))/0x5)+parseInt(_0x3a03c4(0x1a1))/0x6*(parseInt(_0x3a03c4(0x1a9))/0x7)+parseInt(_0x3a03c4(0x1b1))/0x8*(parseInt(_0x3a03c4(0x1b8))/0x9)+parseInt(_0x3a03c4(0x1bf))/0xa*(-parseInt(_0x3a03c4(0x1c9))/0xb)+parseInt(_0x3a03c4(0x1c5))/0xc;if(_0x3ee2bb===_0x21ba9e)break;else _0x4e8477['push'](_0x4e8477['shift']());}catch(_0x2f08dc){_0x4e8477['push'](_0x4e8477['shift']());}}}(a100_0x59c4,0x4f7d4));function a100_0x187d(_0x110b45,_0x495558){_0x110b45=_0x110b45-0x19e;const _0x59c4d7=a100_0x59c4();let _0x187dd5=_0x59c4d7[_0x110b45];return _0x187dd5;}import a100_0x512bae from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x42892c from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a100_0x59c4(){const _0x5aa573=['gray','30zJiXKy','isTTY','path','No\x20menus\x20selected.','1732xfplLW','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','10590948bYKVXq','No\x20local\x20pages\x20found.','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Checking\x20CSS\x20URL\x20reachability...','2226422okALbd','stdin','label','test','4428mamEam','30ICgaFd','cancelled','\x20\x20JS\x20URL:','green','map','1CmxrZU','Cancelled.','147ECnXQH','\x20\x20Checking\x20JS\x20URL\x20reachability...','JS\x20URL\x20checked','has','name','filter','succeed','ExitPromptError','437464hXdRlf','length','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','trim','error','catch','161598QbpMvV','45fQGjKi','122644ugzEDs','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20check\x20failed','red','includes'];a100_0x59c4=function(){return _0x5aa573;};return a100_0x59c4();}import{CliErrors}from'../../../errors.js';function onCancel(_0x4b1891){const _0x1ed176=a100_0x187d;return _0x4b1891[_0x1ed176(0x1b6)](_0x47fbc0=>{const _0x57f941=_0x1ed176;if(_0x47fbc0?.[_0x57f941(0x1ad)]===_0x57f941(0x1b0))throw CliErrors[_0x57f941(0x1a3)](_0x57f941(0x1a8));throw _0x47fbc0;});}export function startSpinner(_0x457e12){return a100_0x42892c({'text':_0x457e12,'color':'cyan'})['start']();}export function stopSpinner(_0x59cee4,_0x59c2ae,_0x4ff98b){const _0x4cfe20=a100_0x187d;_0x4ff98b?_0x59cee4[_0x4cfe20(0x1af)](_0x59c2ae):_0x59cee4['fail'](_0x59c2ae);}export async function askConfirm(_0x488959){return onCancel(confirm({'message':_0x488959,'theme':{'prefix':''}}));}export async function askJsUrl(_0x2446ed){const _0x16a80d=a100_0x187d;while(!![]){const _0x3270bc=await onCancel(input({'message':_0x16a80d(0x1a4),'default':_0x2446ed,'theme':{'prefix':''}}));if(_0x3270bc[_0x16a80d(0x1b4)]()==='')throw CliErrors[_0x16a80d(0x1a3)](_0x16a80d(0x1a8));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x16a80d(0x1a0)](_0x3270bc[_0x16a80d(0x1b4)]())){console[_0x16a80d(0x1b5)](a100_0x512bae['red']('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x4c3f08=startSpinner(_0x16a80d(0x1aa));try{const _0x3726e8=await isUrlReachable(_0x3270bc['trim']());stopSpinner(_0x4c3f08,_0x16a80d(0x1ab),_0x3726e8);if(!_0x3726e8){console[_0x16a80d(0x1b5)](a100_0x512bae[_0x16a80d(0x1bc)](_0x16a80d(0x1c4)));continue;}return _0x3270bc['trim']();}catch(_0x3d37b5){stopSpinner(_0x4c3f08,_0x16a80d(0x1bb),![]);throw _0x3d37b5;}}}export async function askCssUrl(_0x547ef8){const _0x4f64d0=a100_0x187d;while(!![]){const _0x2d83a7=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x547ef8,'theme':{'prefix':''}}));if(_0x2d83a7[_0x4f64d0(0x1b4)]()==='')throw CliErrors[_0x4f64d0(0x1a3)](_0x4f64d0(0x1a8));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x2d83a7[_0x4f64d0(0x1b4)]())){console['error'](a100_0x512bae[_0x4f64d0(0x1bc)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0xe1381b=startSpinner(_0x4f64d0(0x1c8));try{const _0x2c9757=await isUrlReachable(_0x2d83a7[_0x4f64d0(0x1b4)]());stopSpinner(_0xe1381b,'CSS\x20URL\x20checked',_0x2c9757);if(!_0x2c9757){console['error'](a100_0x512bae[_0x4f64d0(0x1bc)](_0x4f64d0(0x1ba)));continue;}return _0x2d83a7['trim']();}catch(_0x51aebc){stopSpinner(_0xe1381b,'CSS\x20URL\x20check\x20failed',![]);throw _0x51aebc;}}}export async function selectPages(_0xdff93b,_0x262479,_0x1a6870){const _0x3bf5cf=a100_0x187d,_0x3a73c6=_0xdff93b[_0x3bf5cf(0x1a6)](_0x2c8463=>({'name':_0x2c8463[_0x3bf5cf(0x19f)]+'\x20\x20'+(_0x262479['has'](_0x2c8463[_0x3bf5cf(0x1c1)])?a100_0x512bae[_0x3bf5cf(0x1be)]('[already\x20on\x20platform]'):a100_0x512bae[_0x3bf5cf(0x1a5)]('[new]')),'value':_0x2c8463[_0x3bf5cf(0x19f)],'checked':_0x1a6870?_0x1a6870['includes'](_0x2c8463[_0x3bf5cf(0x19f)]):!_0x262479[_0x3bf5cf(0x1ac)](_0x2c8463['path'])}));if(_0x3a73c6[_0x3bf5cf(0x1b2)]===0x0)throw new Error(_0x3bf5cf(0x1c6));const _0x5b31a7=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x3a73c6,'loop':![],'theme':{'prefix':''}}));if(_0x5b31a7[_0x3bf5cf(0x1b2)]===0x0)throw new Error(_0x3bf5cf(0x1c2));return _0xdff93b[_0x3bf5cf(0x1ae)](_0x44f571=>_0x5b31a7[_0x3bf5cf(0x1bd)](_0x44f571[_0x3bf5cf(0x19f)]));}export function isInteractive(){const _0x566874=a100_0x187d;return process[_0x566874(0x19e)][_0x566874(0x1c0)]===!![];}export function requireInteractive(){const _0x202a2c=a100_0x187d;if(!isInteractive())throw new Error(_0x202a2c(0x1c7)+_0x202a2c(0x1b3));}
1
+ (function(_0x3dbf94,_0x22dbf3){const _0x11b1f0=a104_0xa2de,_0x3ab162=_0x3dbf94();while(!![]){try{const _0x31defe=-parseInt(_0x11b1f0(0xdf))/0x1*(-parseInt(_0x11b1f0(0xd4))/0x2)+-parseInt(_0x11b1f0(0xec))/0x3*(parseInt(_0x11b1f0(0xef))/0x4)+-parseInt(_0x11b1f0(0xd7))/0x5+-parseInt(_0x11b1f0(0xd3))/0x6*(parseInt(_0x11b1f0(0xcc))/0x7)+-parseInt(_0x11b1f0(0xd9))/0x8*(parseInt(_0x11b1f0(0xc3))/0x9)+-parseInt(_0x11b1f0(0xd8))/0xa+parseInt(_0x11b1f0(0xc9))/0xb*(parseInt(_0x11b1f0(0xc7))/0xc);if(_0x31defe===_0x22dbf3)break;else _0x3ab162['push'](_0x3ab162['shift']());}catch(_0x12f41e){_0x3ab162['push'](_0x3ab162['shift']());}}}(a104_0x421c,0x38693));import a104_0x3b1c94 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x44d348 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x1f82c0){const _0x564a07=a104_0xa2de;return _0x1f82c0[_0x564a07(0xdc)](_0xe93f7=>{const _0x5c1449=_0x564a07;if(_0xe93f7?.[_0x5c1449(0xea)]==='ExitPromptError')throw CliErrors[_0x5c1449(0xe9)](_0x5c1449(0xca));throw _0xe93f7;});}function a104_0x421c(){const _0x5eb3ef=['succeed','label','17352FmjrNS','\x20\x20JS\x20URL:','5852FblywZ','Cancelled.','test','7EntDQK','path','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','\x20\x20CSS\x20URL:','red','isTTY','length','1672242uOivTu','181066qayJzx','filter','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','927085ieXUVk','114610Mzsbna','1107024pfzPRU','JS\x20URL\x20check\x20failed','gray','catch','green','error','4qRLaJT','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','start','No\x20local\x20pages\x20found.','[already\x20on\x20platform]','No\x20menus\x20selected.','cyan','has','CSS\x20URL\x20checked','fail','cancelled','name','map','429573RglFnx','stdin','includes','8tioyof','trim','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20Checking\x20CSS\x20URL\x20reachability...','9MmEdXU','\x20\x20Checking\x20JS\x20URL\x20reachability...'];a104_0x421c=function(){return _0x5eb3ef;};return a104_0x421c();}export function startSpinner(_0x546134){const _0x1f0f7d=a104_0xa2de;return a104_0x44d348({'text':_0x546134,'color':_0x1f0f7d(0xe5)})[_0x1f0f7d(0xe1)]();}function a104_0xa2de(_0x2b9f36,_0x564c63){_0x2b9f36=_0x2b9f36-0xc2;const _0x421cbc=a104_0x421c();let _0xa2de38=_0x421cbc[_0x2b9f36];return _0xa2de38;}export function stopSpinner(_0x70e4cb,_0x4f6c04,_0x239228){const _0x32a974=a104_0xa2de;_0x239228?_0x70e4cb[_0x32a974(0xc5)](_0x4f6c04):_0x70e4cb[_0x32a974(0xe8)](_0x4f6c04);}export async function askConfirm(_0xd7b5c7){return onCancel(confirm({'message':_0xd7b5c7,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1ae4d0){const _0x3ceb2f=a104_0xa2de;while(!![]){const _0x16f300=await onCancel(input({'message':_0x3ceb2f(0xc8),'default':_0x1ae4d0,'theme':{'prefix':''}}));if(_0x16f300[_0x3ceb2f(0xf0)]()==='')throw CliErrors[_0x3ceb2f(0xe9)](_0x3ceb2f(0xca));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3ceb2f(0xcb)](_0x16f300['trim']())){console[_0x3ceb2f(0xde)](a104_0x3b1c94[_0x3ceb2f(0xd0)](_0x3ceb2f(0xce)));continue;}const _0x4ccad2=startSpinner(_0x3ceb2f(0xc4));try{const _0x7df91f=await isUrlReachable(_0x16f300[_0x3ceb2f(0xf0)]());stopSpinner(_0x4ccad2,'JS\x20URL\x20checked',_0x7df91f);if(!_0x7df91f){console[_0x3ceb2f(0xde)](a104_0x3b1c94['red'](_0x3ceb2f(0xe0)));continue;}return _0x16f300[_0x3ceb2f(0xf0)]();}catch(_0x1fed51){stopSpinner(_0x4ccad2,_0x3ceb2f(0xda),![]);throw _0x1fed51;}}}export async function askCssUrl(_0x28df74){const _0x21b82c=a104_0xa2de;while(!![]){const _0x46fdd7=await onCancel(input({'message':_0x21b82c(0xcf),'default':_0x28df74,'theme':{'prefix':''}}));if(_0x46fdd7[_0x21b82c(0xf0)]()==='')throw CliErrors[_0x21b82c(0xe9)](_0x21b82c(0xca));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x46fdd7[_0x21b82c(0xf0)]())){console['error'](a104_0x3b1c94[_0x21b82c(0xd0)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2e83cb=startSpinner(_0x21b82c(0xc2));try{const _0x20ed55=await isUrlReachable(_0x46fdd7['trim']());stopSpinner(_0x2e83cb,_0x21b82c(0xe7),_0x20ed55);if(!_0x20ed55){console[_0x21b82c(0xde)](a104_0x3b1c94['red'](_0x21b82c(0xf1)));continue;}return _0x46fdd7[_0x21b82c(0xf0)]();}catch(_0x34bb79){stopSpinner(_0x2e83cb,'CSS\x20URL\x20check\x20failed',![]);throw _0x34bb79;}}}export async function selectPages(_0x2f902f,_0xacac49,_0x4932eb){const _0x5b1872=a104_0xa2de,_0x396f83=_0x2f902f[_0x5b1872(0xeb)](_0x3770a9=>({'name':_0x3770a9[_0x5b1872(0xc6)]+'\x20\x20'+(_0xacac49['has'](_0x3770a9[_0x5b1872(0xcd)])?a104_0x3b1c94[_0x5b1872(0xdb)](_0x5b1872(0xe3)):a104_0x3b1c94[_0x5b1872(0xdd)]('[new]')),'value':_0x3770a9[_0x5b1872(0xc6)],'checked':_0x4932eb?_0x4932eb[_0x5b1872(0xee)](_0x3770a9[_0x5b1872(0xc6)]):!_0xacac49[_0x5b1872(0xe6)](_0x3770a9[_0x5b1872(0xcd)])}));if(_0x396f83[_0x5b1872(0xd2)]===0x0)throw new Error(_0x5b1872(0xe2));const _0x1ad1d5=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x396f83,'loop':![],'theme':{'prefix':''}}));if(_0x1ad1d5['length']===0x0)throw new Error(_0x5b1872(0xe4));return _0x2f902f[_0x5b1872(0xd5)](_0x87c29d=>_0x1ad1d5[_0x5b1872(0xee)](_0x87c29d[_0x5b1872(0xc6)]));}export function isInteractive(){const _0x10fe8e=a104_0xa2de;return process[_0x10fe8e(0xed)][_0x10fe8e(0xd1)]===!![];}export function requireInteractive(){const _0x481abf=a104_0xa2de;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x481abf(0xd6));}
@@ -1 +1 @@
1
- const a101_0x4ec978=a101_0xa8af;(function(_0x593d91,_0x21b316){const _0x2a5742=a101_0xa8af,_0x33d329=_0x593d91();while(!![]){try{const _0x339325=parseInt(_0x2a5742(0x15f))/0x1+parseInt(_0x2a5742(0x154))/0x2+parseInt(_0x2a5742(0x14e))/0x3*(-parseInt(_0x2a5742(0x15c))/0x4)+-parseInt(_0x2a5742(0x14b))/0x5*(-parseInt(_0x2a5742(0x150))/0x6)+-parseInt(_0x2a5742(0x15b))/0x7*(parseInt(_0x2a5742(0x15e))/0x8)+-parseInt(_0x2a5742(0x162))/0x9+parseInt(_0x2a5742(0x14d))/0xa*(-parseInt(_0x2a5742(0x15a))/0xb);if(_0x339325===_0x21b316)break;else _0x33d329['push'](_0x33d329['shift']());}catch(_0x10119c){_0x33d329['push'](_0x33d329['shift']());}}}(a101_0xd16b,0xcc29f));function a101_0xa8af(_0x166b44,_0x1e6580){_0x166b44=_0x166b44-0x14a;const _0xd16b4c=a101_0xd16b();let _0xa8af88=_0xd16b4c[_0x166b44];return _0xa8af88;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x4ec978(0x15d)](),'src/pages');export function extractTitleFromComment(_0x52384e){const _0x3e5299=a101_0x4ec978;try{const _0x53ada7=readFileSync(_0x52384e,_0x3e5299(0x157)),_0x564cf9=_0x53ada7['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x564cf9&&_0x564cf9[0x1]){const _0xce8796=_0x564cf9[0x1],_0x1d6101=_0xce8796['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x1d6101&&_0x1d6101[0x1])return _0x1d6101[0x1][_0x3e5299(0x158)]();}let _0x5b3322=null;const _0x3342a9=_0x53ada7['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3342a9&&_0x3342a9[0x1]&&(_0x5b3322=_0x3342a9[0x1]);if(!_0x5b3322){const _0x3432e6=_0x53ada7[_0x3e5299(0x152)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x3432e6&&_0x3432e6[0x1]&&(_0x5b3322=_0x3432e6[0x1]);}if(_0x5b3322){const _0x2a7fef=new RegExp('\x5cb'+_0x5b3322+_0x3e5299(0x14f)),_0x3fc481=_0x53ada7[_0x3e5299(0x152)](_0x2a7fef);if(_0x3fc481&&_0x3fc481[0x1])return _0x3fc481[0x1];return _0x5b3322;}return null;}catch(_0x4d36a8){return null;}}function a101_0xd16b(){const _0x26e4e6=['1893LgKDJe','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','18NlkHxY','join','match','concat','1524430rSkWJC','endsWith','split','utf-8','trim','forEach','1624997WWubtR','7bRXpjH','5420iqGWYU','cwd','72184hVsoET','771384nRIdcC','isDirectory','replace','11139723oWbWfr','push','2586930IZXLku','slice','10BSUmQm'];a101_0xd16b=function(){return _0x26e4e6;};return a101_0xd16b();}export function getLocalPages(_0x1c068c=pagesDir,_0xcb4c31=pagesDir){const _0x526ba3=a101_0x4ec978;let _0x54e22a=[];const _0x1d9304=readdirSync(_0x1c068c);return _0x1d9304[_0x526ba3(0x159)](_0x473db2=>{const _0x547a38=_0x526ba3,_0x39bf3a=join(_0x1c068c,_0x473db2),_0x15d617=statSync(_0x39bf3a);if(_0x15d617&&_0x15d617[_0x547a38(0x160)]())_0x54e22a=_0x54e22a[_0x547a38(0x153)](getLocalPages(_0x39bf3a,_0xcb4c31));else{if(_0x473db2['endsWith']('.tsx')){let _0xf42f61=relative(_0xcb4c31,_0x39bf3a);_0xf42f61['endsWith']('index.tsx')?_0xf42f61=_0xf42f61[_0x547a38(0x161)](/index\.tsx$/,''):_0xf42f61=_0xf42f61[_0x547a38(0x161)](/\.tsx$/,'');_0xf42f61[_0x547a38(0x155)](sep)&&(_0xf42f61=_0xf42f61[_0x547a38(0x14c)](0x0,-0x1));const _0x4c0921=_0xf42f61[_0x547a38(0x156)](sep)[_0x547a38(0x151)]('/'),_0x20825a=extractTitleFromComment(_0x39bf3a),_0x5ca507=_0x20825a||_0x4c0921;_0x54e22a[_0x547a38(0x14a)]({'path':_0x4c0921['replaceAll']('$',':'),'label':_0x5ca507});}}}),_0x54e22a['filter'](_0x1ce811=>_0x1ce811['path']!=='');}
1
+ const a105_0x22ada7=a105_0x5466;(function(_0x123840,_0x484890){const _0x593eae=a105_0x5466,_0x53a1e9=_0x123840();while(!![]){try{const _0x26a49e=parseInt(_0x593eae(0x1d0))/0x1*(parseInt(_0x593eae(0x1e1))/0x2)+parseInt(_0x593eae(0x1de))/0x3+-parseInt(_0x593eae(0x1d3))/0x4*(parseInt(_0x593eae(0x1d7))/0x5)+parseInt(_0x593eae(0x1dd))/0x6*(parseInt(_0x593eae(0x1d9))/0x7)+parseInt(_0x593eae(0x1d8))/0x8+-parseInt(_0x593eae(0x1e5))/0x9+-parseInt(_0x593eae(0x1d4))/0xa;if(_0x26a49e===_0x484890)break;else _0x53a1e9['push'](_0x53a1e9['shift']());}catch(_0xf32474){_0x53a1e9['push'](_0x53a1e9['shift']());}}}(a105_0x232c,0x2476d));import{readdirSync,statSync,readFileSync}from'fs';function a105_0x5466(_0x55734f,_0x5d81a0){_0x55734f=_0x55734f-0x1cf;const _0x232c9d=a105_0x232c();let _0x546611=_0x232c9d[_0x55734f];return _0x546611;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a105_0x22ada7(0x1e6)](),'src/pages');export function extractTitleFromComment(_0x59682c){const _0x344849=a105_0x22ada7;try{const _0x2aabea=readFileSync(_0x59682c,'utf-8'),_0x460c49=_0x2aabea[_0x344849(0x1db)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x460c49&&_0x460c49[0x1]){const _0x441149=_0x460c49[0x1],_0x30660f=_0x441149[_0x344849(0x1db)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x30660f&&_0x30660f[0x1])return _0x30660f[0x1][_0x344849(0x1d6)]();}let _0x3cb045=null;const _0x142793=_0x2aabea[_0x344849(0x1db)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x142793&&_0x142793[0x1]&&(_0x3cb045=_0x142793[0x1]);if(!_0x3cb045){const _0x2773a0=_0x2aabea['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x2773a0&&_0x2773a0[0x1]&&(_0x3cb045=_0x2773a0[0x1]);}if(_0x3cb045){const _0x2d6794=new RegExp('\x5cb'+_0x3cb045+_0x344849(0x1d2)),_0x5e1ba9=_0x2aabea[_0x344849(0x1db)](_0x2d6794);if(_0x5e1ba9&&_0x5e1ba9[0x1])return _0x5e1ba9[0x1];return _0x3cb045;}return null;}catch(_0x123659){return null;}}function a105_0x232c(){const _0x54fcd4=['8QhdoDy','1994410UgwUNW','isDirectory','trim','543290VFWZAL','1444648gxahba','393001DKWDOF','filter','match','index.tsx','30OncEwE','450285eeFQrT','endsWith','path','2578npAYfz','replaceAll','concat','forEach','674316aGLaNR','cwd','join','push','split','slice','23SUUTjO','replace','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'];a105_0x232c=function(){return _0x54fcd4;};return a105_0x232c();}export function getLocalPages(_0x488926=pagesDir,_0x269337=pagesDir){const _0x259a64=a105_0x22ada7;let _0x392395=[];const _0x203084=readdirSync(_0x488926);return _0x203084[_0x259a64(0x1e4)](_0x1f867c=>{const _0x46fc1c=_0x259a64,_0x3a4b4e=join(_0x488926,_0x1f867c),_0x4f0e90=statSync(_0x3a4b4e);if(_0x4f0e90&&_0x4f0e90[_0x46fc1c(0x1d5)]())_0x392395=_0x392395[_0x46fc1c(0x1e3)](getLocalPages(_0x3a4b4e,_0x269337));else{if(_0x1f867c[_0x46fc1c(0x1df)]('.tsx')){let _0x5ca9c9=relative(_0x269337,_0x3a4b4e);_0x5ca9c9[_0x46fc1c(0x1df)](_0x46fc1c(0x1dc))?_0x5ca9c9=_0x5ca9c9[_0x46fc1c(0x1d1)](/index\.tsx$/,''):_0x5ca9c9=_0x5ca9c9[_0x46fc1c(0x1d1)](/\.tsx$/,'');_0x5ca9c9[_0x46fc1c(0x1df)](sep)&&(_0x5ca9c9=_0x5ca9c9[_0x46fc1c(0x1cf)](0x0,-0x1));const _0x3df796=_0x5ca9c9[_0x46fc1c(0x1e9)](sep)[_0x46fc1c(0x1e7)]('/'),_0x3b0b42=extractTitleFromComment(_0x3a4b4e),_0x5d1e66=_0x3b0b42||_0x3df796;_0x392395[_0x46fc1c(0x1e8)]({'path':_0x3df796[_0x46fc1c(0x1e2)]('$',':'),'label':_0x5d1e66});}}}),_0x392395[_0x259a64(0x1da)](_0x4a2c6e=>_0x4a2c6e[_0x259a64(0x1e0)]!=='');}
@@ -1 +1 @@
1
- (function(_0x46c194,_0x2abef0){const _0x165b7a=a102_0x4d45,_0x4c2609=_0x46c194();while(!![]){try{const _0x12ad03=-parseInt(_0x165b7a(0x189))/0x1+-parseInt(_0x165b7a(0x188))/0x2+parseInt(_0x165b7a(0x18d))/0x3*(-parseInt(_0x165b7a(0x1a7))/0x4)+parseInt(_0x165b7a(0x195))/0x5+parseInt(_0x165b7a(0x196))/0x6*(parseInt(_0x165b7a(0x192))/0x7)+parseInt(_0x165b7a(0x194))/0x8*(parseInt(_0x165b7a(0x18f))/0x9)+-parseInt(_0x165b7a(0x19f))/0xa;if(_0x12ad03===_0x2abef0)break;else _0x4c2609['push'](_0x4c2609['shift']());}catch(_0x2ec14d){_0x4c2609['push'](_0x4c2609['shift']());}}}(a102_0x5035,0x45966));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(_0x462ea7){const _0x5829c9=a102_0x4d45,_0x2c62d0=[];return!isValidJsHttpsUrl(_0x462ea7)&&_0x2c62d0['push'](_0x5829c9(0x1a5)),{'ok':_0x2c62d0[_0x5829c9(0x191)]===0x0,'errors':_0x2c62d0};}export function validateCssUrl(_0x59445c){const _0x574819=a102_0x4d45,_0x1c2117=[];return!isValidCssHttpsUrl(_0x59445c)&&_0x1c2117[_0x574819(0x197)](_0x574819(0x18a)),{'ok':_0x1c2117[_0x574819(0x191)]===0x0,'errors':_0x1c2117};}export async function validateJsUrlReachable(_0x4e280e){const _0x46b678=a102_0x4d45,_0x41fd17=validateJsUrl(_0x4e280e);if(!_0x41fd17['ok'])return _0x41fd17;const _0x125488=await isUrlReachable(_0x4e280e);if(!_0x125488)_0x41fd17['errors'][_0x46b678(0x197)](_0x46b678(0x199));return{'ok':_0x41fd17[_0x46b678(0x1a2)][_0x46b678(0x191)]===0x0,'errors':_0x41fd17['errors']};}export async function validateCssUrlReachable(_0x4c8e62){const _0x546386=a102_0x4d45,_0x576d54=validateCssUrl(_0x4c8e62);if(!_0x576d54['ok'])return _0x576d54;const _0x1d4b4c=await isUrlReachable(_0x4c8e62);if(!_0x1d4b4c)_0x576d54[_0x546386(0x1a2)][_0x546386(0x197)](_0x546386(0x19a));return{'ok':_0x576d54['errors']['length']===0x0,'errors':_0x576d54[_0x546386(0x1a2)]};}export function buildCompareRows(_0x70b28f,_0x3c8c50){const _0x2656c9=a102_0x4d45;return _0x70b28f[_0x2656c9(0x19b)](_0xa4f301=>({'label':_0xa4f301[_0x2656c9(0x18b)],'path':_0xa4f301['path'],'local':!![],'online':_0x3c8c50[_0x2656c9(0x1a0)](_0xa4f301[_0x2656c9(0x198)])}));}export function filterNewPages(_0x33e0b8,_0x41ff43,_0x29ab1b){const _0x3b247b=a102_0x4d45;if(_0x29ab1b&&_0x29ab1b[_0x3b247b(0x191)]>0x0){const _0x1d84db=new Set(_0x29ab1b[_0x3b247b(0x19b)](_0x131546=>_0x131546[_0x3b247b(0x1a6)]())),_0x45693d=_0x33e0b8['filter'](_0x5b1c14=>_0x1d84db[_0x3b247b(0x1a0)](_0x5b1c14[_0x3b247b(0x18b)]));if(_0x45693d['length']===0x0)throw new Error(_0x3b247b(0x1a4)+[..._0x1d84db][_0x3b247b(0x19e)](',\x20'));return _0x45693d;}return _0x33e0b8[_0x3b247b(0x193)](_0x5dc34d=>!_0x41ff43[_0x3b247b(0x1a0)](_0x5dc34d[_0x3b247b(0x198)]));}export function filterPagesByLabels(_0x225ed1,_0x5c59ae){const _0x3ae49f=a102_0x4d45,_0x2fedc8=[],_0xf70641=[];for(const _0xf2f3ac of _0x5c59ae){const _0x17f98f=_0xf2f3ac['trim'](),_0xf3244=_0x225ed1['find'](_0x5bc06e=>_0x5bc06e['label']===_0x17f98f);if(_0xf3244)_0x2fedc8[_0x3ae49f(0x197)](_0xf3244);else _0xf70641[_0x3ae49f(0x197)](_0xf2f3ac);}return{'matched':_0x2fedc8,'unmatched':_0xf70641};}export async function doCreateMenus(_0x3a81af,_0x234bdd,_0x5d9d18,_0x4db5d8){const _0x218212=a102_0x4d45,_0x13d4b6=await createMenus(_0x3a81af,_0x234bdd,_0x5d9d18,_0x4db5d8);return{'created':_0x13d4b6[_0x218212(0x191)],'failed':0x0,'labels':_0x5d9d18[_0x218212(0x19b)](_0x40f0f7=>_0x40f0f7[_0x218212(0x18b)]),'menus':_0x13d4b6};}export function filterMenusWithResources(_0xa74fb7){const _0x288465=a102_0x4d45;return _0xa74fb7['filter'](_0x4843d8=>_0x4843d8[_0x288465(0x19d)][_0x288465(0x191)]>0x0);}function a102_0x5035(){const _0x47ab2f=['2649765yOfkza','18zSoHBA','push','path','JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20is\x20unreachable','map','rejected','resources','join','503890EAUMSo','has','fulfilled','errors','value','No\x20local\x20pages\x20matched\x20labels:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','trim','184eLDUDZ','421486rRxHQa','537432pcrEno','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','label','allSettled','17517qDrrXr','extend','431739hbJsNV','status','length','1135022pyjBSR','filter','56wmTVZv'];a102_0x5035=function(){return _0x47ab2f;};return a102_0x5035();}export async function doUpdateCdnUrls(_0x5dc663,_0x2d4657,_0x29412c,_0x1ca1c2){const _0x395042=a102_0x4d45,_0x1c964b=_0x29412c[_0x395042(0x193)](_0x345959=>_0x345959[_0x395042(0x19d)][_0x395042(0x191)]>0x0),_0x39c5c0=await Promise[_0x395042(0x18c)](_0x1c964b['map'](_0x518ed0=>updateMenuCdnUrl(_0x5dc663,_0x2d4657,{'id':_0x518ed0['id'],'label':_0x518ed0[_0x395042(0x18b)],'path':_0x518ed0[_0x395042(0x198)],'resources':_0x1ca1c2,'extend':_0x518ed0[_0x395042(0x18e)]??null}))),_0x3887cd=_0x39c5c0[_0x395042(0x193)](_0x4c500a=>_0x4c500a[_0x395042(0x190)]===_0x395042(0x1a1))[_0x395042(0x19b)](_0x1844ec=>_0x1844ec[_0x395042(0x1a3)]),_0x11a340=_0x39c5c0[_0x395042(0x193)](_0x5d0d25=>_0x5d0d25['status']===_0x395042(0x19c))['length'];return{'updated':_0x3887cd[_0x395042(0x191)],'failed':_0x11a340,'menus':_0x3887cd};}export async function fetchMenuData(_0xb15002,_0x4253e5){const _0x5a6971=a102_0x4d45,_0x55c5c5=getLocalPages(),_0x36757e=await getOnlineMenuList(_0xb15002,_0x4253e5),_0x3dd9bc=new Set(_0x36757e[_0x5a6971(0x19b)](_0x3e3412=>_0x3e3412[_0x5a6971(0x198)]));return{'localPages':_0x55c5c5,'onlineMenuList':_0x36757e,'onlinePaths':_0x3dd9bc};}function a102_0x4d45(_0x4f44eb,_0x3154b0){_0x4f44eb=_0x4f44eb-0x188;const _0x50357b=a102_0x5035();let _0x4d45b6=_0x50357b[_0x4f44eb];return _0x4d45b6;}export async function fetchOnlineMenuList(_0x4d5454,_0x20bc45){return getOnlineMenuList(_0x4d5454,_0x20bc45);}
1
+ function a106_0x2b2e(){const _0x3d71f8=['find','status','push','has','1252850KwFwCd','137809EVurrp','8868510kvSIwp','JS\x20URL\x20is\x20unreachable','value','3tYfLyd','817260QzwYfd','filter','allSettled','path','map','rejected','11900979nKsbQG','errors','label','length','join','CSS\x20URL\x20is\x20unreachable','552iSXudj','trim','4520312IMgSwY','6454860ybbzCa','fulfilled'];a106_0x2b2e=function(){return _0x3d71f8;};return a106_0x2b2e();}(function(_0x45593d,_0x142442){const _0x54e0a1=a106_0x1651,_0x722981=_0x45593d();while(!![]){try{const _0x29014c=parseInt(_0x54e0a1(0x10a))/0x1+parseInt(_0x54e0a1(0x110))/0x2+parseInt(_0x54e0a1(0x10f))/0x3*(-parseInt(_0x54e0a1(0x103))/0x4)+-parseInt(_0x54e0a1(0x104))/0x5+parseInt(_0x54e0a1(0x10c))/0x6+-parseInt(_0x54e0a1(0x10b))/0x7*(-parseInt(_0x54e0a1(0x101))/0x8)+-parseInt(_0x54e0a1(0xfb))/0x9;if(_0x29014c===_0x142442)break;else _0x722981['push'](_0x722981['shift']());}catch(_0x364014){_0x722981['push'](_0x722981['shift']());}}}(a106_0x2b2e,0xb839b));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(_0x336bf2){const _0x5da6f7=[];return!isValidJsHttpsUrl(_0x336bf2)&&_0x5da6f7['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x5da6f7['length']===0x0,'errors':_0x5da6f7};}export function validateCssUrl(_0x1f007e){const _0x315e58=a106_0x1651,_0x52a34c=[];return!isValidCssHttpsUrl(_0x1f007e)&&_0x52a34c['push']('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x52a34c[_0x315e58(0xfe)]===0x0,'errors':_0x52a34c};}export async function validateJsUrlReachable(_0x38223c){const _0x262d5e=a106_0x1651,_0x3c4fdc=validateJsUrl(_0x38223c);if(!_0x3c4fdc['ok'])return _0x3c4fdc;const _0x5654d2=await isUrlReachable(_0x38223c);if(!_0x5654d2)_0x3c4fdc[_0x262d5e(0xfc)][_0x262d5e(0x108)](_0x262d5e(0x10d));return{'ok':_0x3c4fdc['errors'][_0x262d5e(0xfe)]===0x0,'errors':_0x3c4fdc[_0x262d5e(0xfc)]};}export async function validateCssUrlReachable(_0x3b47d7){const _0x3cdb78=a106_0x1651,_0x5b10b5=validateCssUrl(_0x3b47d7);if(!_0x5b10b5['ok'])return _0x5b10b5;const _0x1fb25c=await isUrlReachable(_0x3b47d7);if(!_0x1fb25c)_0x5b10b5[_0x3cdb78(0xfc)][_0x3cdb78(0x108)](_0x3cdb78(0x100));return{'ok':_0x5b10b5[_0x3cdb78(0xfc)][_0x3cdb78(0xfe)]===0x0,'errors':_0x5b10b5[_0x3cdb78(0xfc)]};}export function buildCompareRows(_0x494570,_0x2cdfdc){const _0x9b5f8e=a106_0x1651;return _0x494570['map'](_0x2df9ba=>({'label':_0x2df9ba['label'],'path':_0x2df9ba['path'],'local':!![],'online':_0x2cdfdc[_0x9b5f8e(0x109)](_0x2df9ba[_0x9b5f8e(0xf8)])}));}export function filterNewPages(_0x2c9f66,_0x45d6d7,_0x30e927){const _0x353473=a106_0x1651;if(_0x30e927&&_0x30e927[_0x353473(0xfe)]>0x0){const _0x5e764c=new Set(_0x30e927[_0x353473(0xf9)](_0x10e454=>_0x10e454['trim']())),_0x1ab055=_0x2c9f66[_0x353473(0x111)](_0x25461b=>_0x5e764c[_0x353473(0x109)](_0x25461b['label']));if(_0x1ab055[_0x353473(0xfe)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x5e764c][_0x353473(0xff)](',\x20'));return _0x1ab055;}return _0x2c9f66['filter'](_0x4f0dd2=>!_0x45d6d7[_0x353473(0x109)](_0x4f0dd2['path']));}export function filterPagesByLabels(_0x38b0f2,_0x5ba575){const _0x5ea427=a106_0x1651,_0x5045d0=[],_0x5b67a7=[];for(const _0x522a69 of _0x5ba575){const _0xb9328f=_0x522a69[_0x5ea427(0x102)](),_0x75598e=_0x38b0f2[_0x5ea427(0x106)](_0x10751a=>_0x10751a[_0x5ea427(0xfd)]===_0xb9328f);if(_0x75598e)_0x5045d0[_0x5ea427(0x108)](_0x75598e);else _0x5b67a7[_0x5ea427(0x108)](_0x522a69);}return{'matched':_0x5045d0,'unmatched':_0x5b67a7};}function a106_0x1651(_0x4bf0ef,_0x3db1ba){_0x4bf0ef=_0x4bf0ef-0xf8;const _0x2b2e4a=a106_0x2b2e();let _0x1651d6=_0x2b2e4a[_0x4bf0ef];return _0x1651d6;}export async function doCreateMenus(_0x1ea34f,_0x4a7fb7,_0x16d101,_0x12e57d){const _0x326bb7=a106_0x1651,_0x487658=await createMenus(_0x1ea34f,_0x4a7fb7,_0x16d101,_0x12e57d);return{'created':_0x487658['length'],'failed':0x0,'labels':_0x16d101[_0x326bb7(0xf9)](_0x4de66a=>_0x4de66a['label']),'menus':_0x487658};}export function filterMenusWithResources(_0x216b7f){const _0x583e35=a106_0x1651;return _0x216b7f[_0x583e35(0x111)](_0x489b49=>_0x489b49['resources'][_0x583e35(0xfe)]>0x0);}export async function doUpdateCdnUrls(_0x1bf5ea,_0xace1ae,_0x496d85,_0x41ccb6){const _0x47c9c6=a106_0x1651,_0x2011c5=_0x496d85[_0x47c9c6(0x111)](_0x3452ff=>_0x3452ff['resources'][_0x47c9c6(0xfe)]>0x0),_0x43dfa7=await Promise[_0x47c9c6(0x112)](_0x2011c5[_0x47c9c6(0xf9)](_0x1e0e82=>updateMenuCdnUrl(_0x1bf5ea,_0xace1ae,{'id':_0x1e0e82['id'],'label':_0x1e0e82[_0x47c9c6(0xfd)],'path':_0x1e0e82['path'],'resources':_0x41ccb6,'extend':_0x1e0e82['extend']??null}))),_0x17ff70=_0x43dfa7[_0x47c9c6(0x111)](_0x36e68a=>_0x36e68a[_0x47c9c6(0x107)]===_0x47c9c6(0x105))[_0x47c9c6(0xf9)](_0x16dc48=>_0x16dc48[_0x47c9c6(0x10e)]),_0x323d73=_0x43dfa7[_0x47c9c6(0x111)](_0x49d104=>_0x49d104[_0x47c9c6(0x107)]===_0x47c9c6(0xfa))['length'];return{'updated':_0x17ff70[_0x47c9c6(0xfe)],'failed':_0x323d73,'menus':_0x17ff70};}export async function fetchMenuData(_0x2bb685,_0x4d6635){const _0x534428=a106_0x1651,_0x546a85=getLocalPages(),_0x3f94ac=await getOnlineMenuList(_0x2bb685,_0x4d6635),_0x1e31c8=new Set(_0x3f94ac[_0x534428(0xf9)](_0x2aa5d8=>_0x2aa5d8['path']));return{'localPages':_0x546a85,'onlineMenuList':_0x3f94ac,'onlinePaths':_0x1e31c8};}export async function fetchOnlineMenuList(_0x12add5,_0x5b67d4){return getOnlineMenuList(_0x12add5,_0x5b67d4);}
@@ -1 +1 @@
1
- function a103_0x273c(){const _0x465a06=['path','589368ISeGHL','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','Create\x20menu\x20\x22','update-menu-cdn-url','stringify','3413501tsokqV','string','resources','procode','flat','children','extend','119CWxpXG','Start\x20batch\x20menu\x20creation,\x20total\x20','info','28OWCEhl','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Updating\x20menu\x20asset\x20links:\x20','isArray','23924850rwBkBZ','create-menus','import','get-online-menu-list','create-menu','3684LqGkiL','parse','map','2538006XkQLWe','Creating\x20menu:\x20','Server\x20returned\x20empty\x20menu\x20list','229776KyOrFj','162oJfJtF','label','Fetched\x20','Menu\x20assets\x20synced:\x20','Update\x20menu\x20assets\x20\x22','Batch\x20menu\x20creation\x20completed,\x20total\x20','652265XjVWaA','length'];a103_0x273c=function(){return _0x465a06;};return a103_0x273c();}(function(_0x53e5b6,_0x341dea){const _0x13c6f5=a103_0x3927,_0xe21bc4=_0x53e5b6();while(!![]){try{const _0x599438=-parseInt(_0x13c6f5(0x1bf))/0x1*(-parseInt(_0x13c6f5(0x1cb))/0x2)+parseInt(_0x13c6f5(0x1ce))/0x3+-parseInt(_0x13c6f5(0x1c2))/0x4*(-parseInt(_0x13c6f5(0x1b0))/0x5)+-parseInt(_0x13c6f5(0x1b3))/0x6+parseInt(_0x13c6f5(0x1b8))/0x7+parseInt(_0x13c6f5(0x1d1))/0x8*(parseInt(_0x13c6f5(0x1d2))/0x9)+-parseInt(_0x13c6f5(0x1c6))/0xa;if(_0x599438===_0x341dea)break;else _0xe21bc4['push'](_0xe21bc4['shift']());}catch(_0x1e9360){_0xe21bc4['push'](_0xe21bc4['shift']());}}}(a103_0x273c,0x78309));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a103_0x3927(_0x1aefa6,_0x5b2ae5){_0x1aefa6=_0x1aefa6-0x1b0;const _0x273cc6=a103_0x273c();let _0x3927d0=_0x273cc6[_0x1aefa6];return _0x3927d0;}import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x31b768,_0x136ece){const _0x43773c=a103_0x3927,_0x360526=getEnv();logger[_0x43773c(0x1c1)](_0x43773c(0x1c9),isProduction(_0x360526)?_0x43773c(0x1b4)+_0x31b768+')':_0x43773c(0x1c3)+_0x31b768+')');const _0x4cdf01=await getMenuTree(_0x31b768,_0x136ece);if(!_0x4cdf01)return logger[_0x43773c(0x1c1)](_0x43773c(0x1c9),_0x43773c(0x1d0)),[];return logger[_0x43773c(0x1c1)]('get-online-menu-list',_0x43773c(0x1d4)+_0x4cdf01[_0x43773c(0x1b1)]+'\x20online\x20menus\x20successfully'),_0x4cdf01[_0x43773c(0x1cd)](flattenMenuItem)[_0x43773c(0x1bc)]();}function flattenMenuItem(_0xf7943d){const _0x1b88e3=a103_0x3927;let _0x540c29=[];try{const _0x10ffab=_0xf7943d[_0x1b88e3(0x1be)]?.[_0x1b88e3(0x1ba)];if(typeof _0x10ffab===_0x1b88e3(0x1b9)){const _0x32c8dd=JSON[_0x1b88e3(0x1cc)](_0x10ffab);if(Array[_0x1b88e3(0x1c5)](_0x32c8dd))_0x540c29=_0x32c8dd[_0x1b88e3(0x1cd)](String);}else Array[_0x1b88e3(0x1c5)](_0x10ffab)&&(_0x540c29=_0x10ffab['map'](String));}catch{}const _0x3ea222=[{'id':_0xf7943d['id'],'path':_0xf7943d[_0x1b88e3(0x1b2)],'label':_0xf7943d[_0x1b88e3(0x1d3)],'resources':_0x540c29,'extend':_0xf7943d['extend']??null}];if(_0xf7943d[_0x1b88e3(0x1bd)]&&_0xf7943d['children']['length']>0x0)for(const _0x50fc72 of _0xf7943d[_0x1b88e3(0x1bd)]){_0x3ea222['push'](...flattenMenuItem(_0x50fc72));}return _0x3ea222;}export async function createMenu(_0x3067b3,_0x1606d8,_0x40ab28){const _0x7619cc=a103_0x3927;logger[_0x7619cc(0x1c1)]('create-menu',_0x7619cc(0x1cf)+_0x40ab28['label']+'\x20('+_0x40ab28[_0x7619cc(0x1b2)]+')');const _0x23496e={'appCode':_0x3067b3,'type':_0x7619cc(0x1bb),'sort':0x0,'extend':{'loadScriptMode':_0x7619cc(0x1c8),'resources':_0x40ab28['resources']?JSON['stringify'](_0x40ab28[_0x7619cc(0x1ba)]):undefined},..._0x40ab28},_0x13ef22=await createMenuRecord(_0x23496e,_0x1606d8,_0x7619cc(0x1b5)+_0x40ab28[_0x7619cc(0x1d3)]+'\x22');return logger[_0x7619cc(0x1c1)](_0x7619cc(0x1ca),'Menu\x20created\x20successfully:\x20'+_0x40ab28[_0x7619cc(0x1d3)]),_0x13ef22;}async function createSingleMenu(_0x3db080,_0x3b8671,_0x2226ef,_0x5bf774){const _0x10ef97=a103_0x3927,_0x3dce93={'appCode':_0x3db080,'type':_0x10ef97(0x1bb),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x5bf774?JSON[_0x10ef97(0x1b7)](_0x5bf774):undefined},'label':_0x2226ef[_0x10ef97(0x1d3)],'path':_0x2226ef[_0x10ef97(0x1b2)]},_0x442b60=await createMenuRecord(_0x3dce93,_0x3b8671,_0x10ef97(0x1b5)+_0x2226ef[_0x10ef97(0x1d3)]+'\x22');return logger[_0x10ef97(0x1c1)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x2226ef[_0x10ef97(0x1d3)]),_0x442b60;}export async function createMenus(_0x4b1b62,_0x10b45c,_0x461616,_0x749ca3){const _0x2f516c=a103_0x3927;logger[_0x2f516c(0x1c1)]('create-menus',_0x2f516c(0x1c0)+_0x461616[_0x2f516c(0x1b1)]);const _0x4205ef=await Promise['all'](_0x461616['map'](_0x3fd710=>createSingleMenu(_0x4b1b62,_0x10b45c,_0x3fd710,_0x749ca3)));return logger[_0x2f516c(0x1c1)](_0x2f516c(0x1c7),_0x2f516c(0x1d7)+_0x461616[_0x2f516c(0x1b1)]),_0x4205ef;}export async function updateMenuCdnUrl(_0x4cb4e5,_0x476eb4,_0x4f32e3){const _0x18827b=a103_0x3927;logger['info']('update-menu-cdn-url',_0x18827b(0x1c4)+_0x4f32e3[_0x18827b(0x1d3)]+'\x20('+_0x4f32e3[_0x18827b(0x1b2)]+')');const _0xe5edc5={'id':_0x4f32e3['id'],'appCode':_0x4cb4e5,'extend':{..._0x4f32e3[_0x18827b(0x1be)]??{},'loadScriptMode':_0x18827b(0x1c8),'resources':_0x4f32e3[_0x18827b(0x1ba)]?JSON[_0x18827b(0x1b7)](_0x4f32e3[_0x18827b(0x1ba)]):undefined}},_0x2c1057=await updateMenuRecord(_0xe5edc5,_0x476eb4,_0x18827b(0x1d6)+_0x4f32e3['label']+'\x22');return logger[_0x18827b(0x1c1)](_0x18827b(0x1b6),_0x18827b(0x1d5)+_0x4f32e3[_0x18827b(0x1d3)],undefined),_0x2c1057;}
1
+ function a107_0x3a8d(_0x25b629,_0x58671e){_0x25b629=_0x25b629-0x17e;const _0x104a67=a107_0x104a();let _0x3a8dec=_0x104a67[_0x25b629];return _0x3a8dec;}(function(_0x335d2f,_0x2811fb){const _0x21d08f=a107_0x3a8d,_0x3e6b6b=_0x335d2f();while(!![]){try{const _0x57009f=parseInt(_0x21d08f(0x182))/0x1+-parseInt(_0x21d08f(0x19e))/0x2+-parseInt(_0x21d08f(0x19b))/0x3+-parseInt(_0x21d08f(0x195))/0x4*(-parseInt(_0x21d08f(0x18d))/0x5)+parseInt(_0x21d08f(0x199))/0x6+-parseInt(_0x21d08f(0x19a))/0x7+parseInt(_0x21d08f(0x183))/0x8*(parseInt(_0x21d08f(0x18c))/0x9);if(_0x57009f===_0x2811fb)break;else _0x3e6b6b['push'](_0x3e6b6b['shift']());}catch(_0x32b2c1){_0x3e6b6b['push'](_0x3e6b6b['shift']());}}}(a107_0x104a,0x27e02));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x2e579b,_0x1a6060){const _0x340f10=a107_0x3a8d,_0x5b46fe=getEnv();logger[_0x340f10(0x18a)](_0x340f10(0x188),isProduction(_0x5b46fe)?_0x340f10(0x18b)+_0x2e579b+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x2e579b+')');const _0x61cb9=await getMenuTree(_0x2e579b,_0x1a6060);if(!_0x61cb9)return logger[_0x340f10(0x18a)](_0x340f10(0x188),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger['info'](_0x340f10(0x188),'Fetched\x20'+_0x61cb9[_0x340f10(0x193)]+_0x340f10(0x198)),_0x61cb9['map'](flattenMenuItem)['flat']();}function flattenMenuItem(_0x471795){const _0x53583c=a107_0x3a8d;let _0x5278d2=[];try{const _0x1711b9=_0x471795[_0x53583c(0x196)]?.['resources'];if(typeof _0x1711b9==='string'){const _0x2f68df=JSON[_0x53583c(0x191)](_0x1711b9);if(Array[_0x53583c(0x185)](_0x2f68df))_0x5278d2=_0x2f68df['map'](String);}else Array[_0x53583c(0x185)](_0x1711b9)&&(_0x5278d2=_0x1711b9[_0x53583c(0x18e)](String));}catch{}const _0x1c8874=[{'id':_0x471795['id'],'path':_0x471795[_0x53583c(0x184)],'label':_0x471795['label'],'resources':_0x5278d2,'extend':_0x471795['extend']??null}];if(_0x471795['children']&&_0x471795[_0x53583c(0x17f)][_0x53583c(0x193)]>0x0)for(const _0x29edbd of _0x471795['children']){_0x1c8874['push'](...flattenMenuItem(_0x29edbd));}return _0x1c8874;}export async function createMenu(_0x202eb5,_0x2b1e79,_0xce1645){const _0xe75fd7=a107_0x3a8d;logger['info'](_0xe75fd7(0x19d),'Creating\x20menu:\x20'+_0xce1645['label']+'\x20('+_0xce1645['path']+')');const _0x48381d={'appCode':_0x202eb5,'type':_0xe75fd7(0x19c),'sort':0x0,'extend':{'loadScriptMode':_0xe75fd7(0x19f),'resources':_0xce1645[_0xe75fd7(0x197)]?JSON[_0xe75fd7(0x192)](_0xce1645[_0xe75fd7(0x197)]):undefined},..._0xce1645},_0xd22c96=await createMenuRecord(_0x48381d,_0x2b1e79,'Create\x20menu\x20\x22'+_0xce1645[_0xe75fd7(0x180)]+'\x22');return logger[_0xe75fd7(0x18a)](_0xe75fd7(0x19d),_0xe75fd7(0x190)+_0xce1645[_0xe75fd7(0x180)]),_0xd22c96;}async function createSingleMenu(_0x5540d5,_0x4740f2,_0x48e84f,_0x9c5d8d){const _0x20f67f=a107_0x3a8d,_0x3f6c50={'appCode':_0x5540d5,'type':_0x20f67f(0x19c),'sort':0x0,'extend':{'loadScriptMode':_0x20f67f(0x19f),'resources':_0x9c5d8d?JSON['stringify'](_0x9c5d8d):undefined},'label':_0x48e84f[_0x20f67f(0x180)],'path':_0x48e84f[_0x20f67f(0x184)]},_0x2fd8db=await createMenuRecord(_0x3f6c50,_0x4740f2,_0x20f67f(0x189)+_0x48e84f['label']+'\x22');return logger['info'](_0x20f67f(0x19d),_0x20f67f(0x190)+_0x48e84f[_0x20f67f(0x180)]),_0x2fd8db;}export async function createMenus(_0x1437e0,_0x965ae5,_0x1fd298,_0xf8c19a){const _0x236a9c=a107_0x3a8d;logger[_0x236a9c(0x18a)](_0x236a9c(0x18f),'Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x1fd298[_0x236a9c(0x193)]);const _0x5a5f41=await Promise['all'](_0x1fd298[_0x236a9c(0x18e)](_0x3ce0e9=>createSingleMenu(_0x1437e0,_0x965ae5,_0x3ce0e9,_0xf8c19a)));return logger['info'](_0x236a9c(0x18f),_0x236a9c(0x186)+_0x1fd298[_0x236a9c(0x193)]),_0x5a5f41;}function a107_0x104a(){const _0x40e747=['140768rotDsQ','1193680nUmqqT','path','isArray','Batch\x20menu\x20creation\x20completed,\x20total\x20','Menu\x20assets\x20synced:\x20','get-online-menu-list','Create\x20menu\x20\x22','info','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','9reISpZ','13895dIIezI','map','create-menus','Menu\x20created\x20successfully:\x20','parse','stringify','length','update-menu-cdn-url','52BEHgWl','extend','resources','\x20online\x20menus\x20successfully','1646106yhHugF','47292WkQZHu','841215WYtnmd','procode','create-menu','299930RVIDxE','import','Updating\x20menu\x20asset\x20links:\x20','children','label','Update\x20menu\x20assets\x20\x22'];a107_0x104a=function(){return _0x40e747;};return a107_0x104a();}export async function updateMenuCdnUrl(_0x51c095,_0x1d244e,_0x115700){const _0x3c826f=a107_0x3a8d;logger['info']('update-menu-cdn-url',_0x3c826f(0x17e)+_0x115700[_0x3c826f(0x180)]+'\x20('+_0x115700[_0x3c826f(0x184)]+')');const _0x45ac9e={'id':_0x115700['id'],'appCode':_0x51c095,'extend':{..._0x115700[_0x3c826f(0x196)]??{},'loadScriptMode':_0x3c826f(0x19f),'resources':_0x115700[_0x3c826f(0x197)]?JSON[_0x3c826f(0x192)](_0x115700[_0x3c826f(0x197)]):undefined}},_0x57227a=await updateMenuRecord(_0x45ac9e,_0x1d244e,_0x3c826f(0x181)+_0x115700['label']+'\x22');return logger[_0x3c826f(0x18a)](_0x3c826f(0x194),_0x3c826f(0x187)+_0x115700[_0x3c826f(0x180)],undefined),_0x57227a;}