@lovrabet/rabetbase-cli 2.5.3-beta.3 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/index.js +1 -1
  26. package/lib/commands/app/list.js +1 -1
  27. package/lib/commands/app/members-list.js +1 -1
  28. package/lib/commands/app/remote-directory.js +1 -1
  29. package/lib/commands/app/shared.js +1 -1
  30. package/lib/commands/app-config/delete.js +1 -1
  31. package/lib/commands/app-config/get.js +1 -1
  32. package/lib/commands/app-config/index.js +1 -1
  33. package/lib/commands/app-config/list.js +1 -1
  34. package/lib/commands/app-config/set.js +1 -1
  35. package/lib/commands/app-config/shared.js +1 -1
  36. package/lib/commands/auth/index.js +1 -1
  37. package/lib/commands/bff/create.js +1 -1
  38. package/lib/commands/bff/delete.js +1 -1
  39. package/lib/commands/bff/detail.js +1 -1
  40. package/lib/commands/bff/index.js +1 -1
  41. package/lib/commands/bff/list.js +1 -1
  42. package/lib/commands/bff/logs.js +1 -1
  43. package/lib/commands/bff/pull.js +1 -1
  44. package/lib/commands/bff/push.js +1 -1
  45. package/lib/commands/bff/status.js +1 -1
  46. package/lib/commands/cli-skill/index.js +1 -1
  47. package/lib/commands/cli-update.js +1 -1
  48. package/lib/commands/codegen/index.js +1 -1
  49. package/lib/commands/codegen/sdk.js +1 -1
  50. package/lib/commands/codegen/sql.js +1 -1
  51. package/lib/commands/common/app-registry.js +1 -1
  52. package/lib/commands/common/app-selector.js +1 -1
  53. package/lib/commands/common/async-task.js +1 -1
  54. package/lib/commands/common/dry-run.js +1 -1
  55. package/lib/commands/common/flags.js +1 -1
  56. package/lib/commands/common/local-file.js +1 -1
  57. package/lib/commands/common/validate.js +1 -1
  58. package/lib/commands/config/delete.js +1 -1
  59. package/lib/commands/config/get.js +1 -1
  60. package/lib/commands/config/index.js +1 -1
  61. package/lib/commands/config/init.js +1 -1
  62. package/lib/commands/config/list.js +1 -1
  63. package/lib/commands/config/set.js +1 -1
  64. package/lib/commands/config/shared.js +1 -1
  65. package/lib/commands/dataset/batch-design.js +1 -1
  66. package/lib/commands/dataset/business-group-update.js +1 -1
  67. package/lib/commands/dataset/business-groups.js +1 -1
  68. package/lib/commands/dataset/capability.js +1 -1
  69. package/lib/commands/dataset/cross-relation-create.js +1 -1
  70. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  71. package/lib/commands/dataset/cross-relation-list.js +1 -1
  72. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  73. package/lib/commands/dataset/cross-relation-update.js +1 -1
  74. package/lib/commands/dataset/delete.js +1 -1
  75. package/lib/commands/dataset/detail.js +1 -1
  76. package/lib/commands/dataset/extend-update.js +1 -1
  77. package/lib/commands/dataset/field-restore.js +1 -1
  78. package/lib/commands/dataset/field-update.js +1 -1
  79. package/lib/commands/dataset/generate.js +1 -1
  80. package/lib/commands/dataset/index.js +1 -1
  81. package/lib/commands/dataset/list.js +1 -1
  82. package/lib/commands/dataset/operations.js +1 -1
  83. package/lib/commands/dataset/relation-audit.js +1 -1
  84. package/lib/commands/dataset/relation-create.js +1 -1
  85. package/lib/commands/dataset/relation-delete.js +1 -1
  86. package/lib/commands/dataset/relation-shared.js +1 -1
  87. package/lib/commands/dataset/relation-update.js +1 -1
  88. package/lib/commands/dataset/relations.js +1 -1
  89. package/lib/commands/dataset/rename.js +1 -1
  90. package/lib/commands/dataset/restore.js +1 -1
  91. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  92. package/lib/commands/db/analysis-batching.js +1 -1
  93. package/lib/commands/db/analyze-batch-plan.js +1 -1
  94. package/lib/commands/db/analyze-cancel.js +1 -1
  95. package/lib/commands/db/analyze-start.js +1 -1
  96. package/lib/commands/db/analyze-status.js +1 -1
  97. package/lib/commands/db/create.js +1 -1
  98. package/lib/commands/db/delete.js +1 -1
  99. package/lib/commands/db/detail.js +1 -1
  100. package/lib/commands/db/diff-refresh-start.js +1 -1
  101. package/lib/commands/db/diff-refresh-status.js +1 -1
  102. package/lib/commands/db/diff.js +1 -1
  103. package/lib/commands/db/index.js +1 -1
  104. package/lib/commands/db/list.js +1 -1
  105. package/lib/commands/db/shared.js +1 -1
  106. package/lib/commands/db/table-diff-shared.js +1 -1
  107. package/lib/commands/db/tables.js +1 -1
  108. package/lib/commands/db/test.js +1 -1
  109. package/lib/commands/db/update.js +1 -1
  110. package/lib/commands/deployment/index.js +1 -1
  111. package/lib/commands/deployment/sync-all.js +1 -1
  112. package/lib/commands/deployment/sync-jobs.js +1 -1
  113. package/lib/commands/deployment/sync-status.js +1 -1
  114. package/lib/commands/doctor.js +1 -1
  115. package/lib/commands/file/index.js +1 -1
  116. package/lib/commands/flow/create.js +1 -1
  117. package/lib/commands/flow/detail.js +1 -1
  118. package/lib/commands/flow/index.js +1 -1
  119. package/lib/commands/flow/list.js +1 -1
  120. package/lib/commands/flow/publish.js +1 -1
  121. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  122. package/lib/commands/flow/runtime-role-list.js +1 -1
  123. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  124. package/lib/commands/flow/runtime-user-search.js +1 -1
  125. package/lib/commands/flow/shared.js +1 -1
  126. package/lib/commands/flow/update.js +1 -1
  127. package/lib/commands/flow/validate.js +1 -1
  128. package/lib/commands/instant-api-policy/current.js +1 -1
  129. package/lib/commands/instant-api-policy/index.js +1 -1
  130. package/lib/commands/instant-api-policy/init.js +1 -1
  131. package/lib/commands/instant-api-policy/publish.js +1 -1
  132. package/lib/commands/instant-api-policy/pull.js +1 -1
  133. package/lib/commands/instant-api-policy/revision.js +1 -1
  134. package/lib/commands/instant-api-policy/revisions.js +1 -1
  135. package/lib/commands/instant-api-policy/rollback.js +1 -1
  136. package/lib/commands/instant-api-policy/shared.js +1 -1
  137. package/lib/commands/instant-api-policy/validate.js +1 -1
  138. package/lib/commands/issue/index.js +1 -1
  139. package/lib/commands/issue/nudge.js +1 -1
  140. package/lib/commands/issue/report.js +1 -1
  141. package/lib/commands/issue/shared.js +1 -1
  142. package/lib/commands/kb/create.js +1 -1
  143. package/lib/commands/kb/delete.js +1 -1
  144. package/lib/commands/kb/detail.js +1 -1
  145. package/lib/commands/kb/index.js +1 -1
  146. package/lib/commands/kb/list.js +1 -1
  147. package/lib/commands/kb/search.js +1 -1
  148. package/lib/commands/kb/shared.js +1 -1
  149. package/lib/commands/kb/update.js +1 -1
  150. package/lib/commands/logs/index.js +1 -1
  151. package/lib/commands/menu/asset-update.js +1 -1
  152. package/lib/commands/menu/delete.js +1 -1
  153. package/lib/commands/menu/external-link-create.js +1 -1
  154. package/lib/commands/menu/external-link-update.js +1 -1
  155. package/lib/commands/menu/group-create.js +1 -1
  156. package/lib/commands/menu/group-update.js +1 -1
  157. package/lib/commands/menu/index.js +1 -1
  158. package/lib/commands/menu/list.js +1 -1
  159. package/lib/commands/menu/move.js +1 -1
  160. package/lib/commands/menu/regroup-start.js +1 -1
  161. package/lib/commands/menu/rename.js +1 -1
  162. package/lib/commands/menu/shared/compare-table.js +1 -1
  163. package/lib/commands/menu/shared/delete-plan.js +1 -1
  164. package/lib/commands/menu/shared/facts.js +1 -1
  165. package/lib/commands/menu/shared/index.js +1 -1
  166. package/lib/commands/menu/shared/inquirer.js +1 -1
  167. package/lib/commands/menu/shared/local-pages.js +1 -1
  168. package/lib/commands/menu/shared/logic.js +1 -1
  169. package/lib/commands/menu/shared/mutations.js +1 -1
  170. package/lib/commands/menu/shared/service.js +1 -1
  171. package/lib/commands/menu/shared/sync-core.js +1 -1
  172. package/lib/commands/menu/shared/update-core.js +1 -1
  173. package/lib/commands/menu/shared/valid-url.js +1 -1
  174. package/lib/commands/menu/sync.js +1 -1
  175. package/lib/commands/menu/visibility-update.js +1 -1
  176. package/lib/commands/notification/config-create.js +1 -1
  177. package/lib/commands/notification/config-delete.js +1 -1
  178. package/lib/commands/notification/config-list.js +1 -1
  179. package/lib/commands/notification/config-update.js +1 -1
  180. package/lib/commands/notification/index.js +1 -1
  181. package/lib/commands/notification/shared.js +1 -1
  182. package/lib/commands/ocr/index.js +1 -1
  183. package/lib/commands/page/create.js +1 -1
  184. package/lib/commands/page/custom/detail.js +1 -1
  185. package/lib/commands/page/custom/list.js +1 -1
  186. package/lib/commands/page/custom/publish.js +1 -1
  187. package/lib/commands/page/custom/shared.js +1 -1
  188. package/lib/commands/page/custom/syntax.js +1 -1
  189. package/lib/commands/page/custom/update.js +1 -1
  190. package/lib/commands/page/data-list-status.js +1 -1
  191. package/lib/commands/page/generate-start.js +1 -1
  192. package/lib/commands/page/generate-status.js +1 -1
  193. package/lib/commands/page/index.js +1 -1
  194. package/lib/commands/page/pull.js +1 -1
  195. package/lib/commands/page/push.js +1 -1
  196. package/lib/commands/page/relation-audit.js +1 -1
  197. package/lib/commands/page/restore.js +1 -1
  198. package/lib/commands/page/shared.js +1 -1
  199. package/lib/commands/page/sync.js +1 -1
  200. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  201. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  202. package/lib/commands/project/create/format-elapsed.js +1 -1
  203. package/lib/commands/project/create/main.js +1 -1
  204. package/lib/commands/project/create/materialize-project-template.js +1 -1
  205. package/lib/commands/project/create/project-name.js +1 -1
  206. package/lib/commands/project/create/project-template-archive.js +1 -1
  207. package/lib/commands/project/create/project-template-path.js +1 -1
  208. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  209. package/lib/commands/project/create/use-format-code.js +1 -1
  210. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  211. package/lib/commands/project/domain-routing-sync.js +1 -1
  212. package/lib/commands/project/index.js +1 -1
  213. package/lib/commands/project/upgrade.js +1 -1
  214. package/lib/commands/registry.js +1 -1
  215. package/lib/commands/role/delete.js +1 -1
  216. package/lib/commands/role/detail.js +1 -1
  217. package/lib/commands/role/index.js +1 -1
  218. package/lib/commands/role/list.js +1 -1
  219. package/lib/commands/role/shared.js +1 -1
  220. package/lib/commands/role/update.js +1 -1
  221. package/lib/commands/role/user-add.js +1 -1
  222. package/lib/commands/role/user-remove.js +1 -1
  223. package/lib/commands/role/user-resolve.js +1 -1
  224. package/lib/commands/rule/get.js +1 -1
  225. package/lib/commands/rule/index.js +1 -1
  226. package/lib/commands/rule/list.js +1 -1
  227. package/lib/commands/rule/set.js +1 -1
  228. package/lib/commands/rule/shared.js +1 -1
  229. package/lib/commands/run/index.js +1 -1
  230. package/lib/commands/schema.js +1 -1
  231. package/lib/commands/sql/create.js +1 -1
  232. package/lib/commands/sql/delete.js +1 -1
  233. package/lib/commands/sql/detail.js +1 -1
  234. package/lib/commands/sql/exec.js +1 -1
  235. package/lib/commands/sql/index.js +1 -1
  236. package/lib/commands/sql/list.js +1 -1
  237. package/lib/commands/sql/pull.js +1 -1
  238. package/lib/commands/sql/push.js +1 -1
  239. package/lib/commands/sql/shared.js +1 -1
  240. package/lib/commands/sql/status.js +1 -1
  241. package/lib/commands/sql/validate.js +1 -1
  242. package/lib/commands/task/index.js +1 -1
  243. package/lib/commands/task/status.js +1 -1
  244. package/lib/commands/tenant/index.js +1 -1
  245. package/lib/commands/tenant/members-list.js +1 -1
  246. package/lib/commands/tenant/shared.js +1 -1
  247. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  248. package/lib/commands/user-account/index.js +1 -1
  249. package/lib/commands/workspace/add.js +1 -1
  250. package/lib/commands/workspace/index.js +1 -1
  251. package/lib/commands/workspace/remove.js +1 -1
  252. package/lib/config/domain-config.js +1 -1
  253. package/lib/config/project-domain-routing.js +1 -1
  254. package/lib/config/region-config.js +1 -1
  255. package/lib/config/schema.js +1 -1
  256. package/lib/constant/cdn.d.ts +5 -3
  257. package/lib/constant/cdn.js +1 -1
  258. package/lib/constant/cli.js +1 -1
  259. package/lib/constant/defaults.js +1 -1
  260. package/lib/constant/domain.js +1 -1
  261. package/lib/constant/env.js +1 -1
  262. package/lib/constant/output.js +1 -1
  263. package/lib/constant/paths.js +1 -1
  264. package/lib/constant/region.js +1 -1
  265. package/lib/constant/risk.js +1 -1
  266. package/lib/constant/routing-profile.js +1 -1
  267. package/lib/context/app-resolver.js +1 -1
  268. package/lib/context/auth-resolver.js +1 -1
  269. package/lib/context/config-loader.js +1 -1
  270. package/lib/context.js +1 -1
  271. package/lib/core/alias-resolver.js +1 -1
  272. package/lib/core/api-client.js +1 -1
  273. package/lib/core/bff/config.js +1 -1
  274. package/lib/core/bff/file-system.js +1 -1
  275. package/lib/core/bff/hash.js +1 -1
  276. package/lib/core/bff/hook-directory.js +1 -1
  277. package/lib/core/bff/lock.js +1 -1
  278. package/lib/core/bff/utils.js +1 -1
  279. package/lib/core/cross-db-relation.js +1 -1
  280. package/lib/core/db-resolver.js +1 -1
  281. package/lib/core/flow-config.js +1 -1
  282. package/lib/core/instant-api-policy/config.js +1 -1
  283. package/lib/core/kb-search-client.js +1 -1
  284. package/lib/core/page/file-system.js +1 -1
  285. package/lib/core/page/hash.js +1 -1
  286. package/lib/core/page/lock.js +1 -1
  287. package/lib/core/page/lr-smart-jsx.js +1 -1
  288. package/lib/core/sql-index-auditor.js +1 -1
  289. package/lib/core/sql-sync/config.js +1 -1
  290. package/lib/core/sql-sync/file-system.js +1 -1
  291. package/lib/core/sql-sync/hash.js +1 -1
  292. package/lib/core/sql-sync/lock.js +1 -1
  293. package/lib/core/sql-sync/utils.js +1 -1
  294. package/lib/core/sql-validator.js +1 -1
  295. package/lib/errors.js +1 -1
  296. package/lib/framework/build-all-flags.js +1 -1
  297. package/lib/framework/error-output.js +1 -1
  298. package/lib/framework/explicit-yes.js +1 -1
  299. package/lib/framework/flags.js +1 -1
  300. package/lib/framework/help.js +1 -1
  301. package/lib/framework/index.js +1 -1
  302. package/lib/framework/output.js +1 -1
  303. package/lib/framework/response.js +1 -1
  304. package/lib/framework/runner-alias.js +1 -1
  305. package/lib/framework/runner.js +1 -1
  306. package/lib/framework/schema-export.js +1 -1
  307. package/lib/framework/supported-flags.js +1 -1
  308. package/lib/framework/types.js +1 -1
  309. package/lib/generated/build-info.d.ts +4 -4
  310. package/lib/generated/build-info.js +1 -1
  311. package/lib/generated/official-routing.js +1 -1
  312. package/lib/generated/routing-contract.js +1 -1
  313. package/lib/help.js +1 -1
  314. package/lib/postinstall.js +1 -1
  315. package/lib/runtime/confirmation.js +1 -1
  316. package/lib/runtime/event.js +1 -1
  317. package/lib/runtime/index.js +1 -1
  318. package/lib/runtime/queue.js +1 -1
  319. package/lib/runtime/resolve.js +1 -1
  320. package/lib/skills/builtin-skill.js +1 -1
  321. package/lib/skills/main.js +1 -1
  322. package/lib/skills/npx-skills-add.js +1 -1
  323. package/lib/skills/skill-presence.js +1 -1
  324. package/lib/telemetry/cli-command-trace.js +1 -1
  325. package/lib/telemetry/cli-help-trace.js +1 -1
  326. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  327. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  328. package/lib/telemetry/send-cli-trace-log.js +1 -1
  329. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  330. package/lib/utils/ai_config.js +1 -1
  331. package/lib/utils/apply-jq-filter.js +1 -1
  332. package/lib/utils/cdn-config.js +1 -1
  333. package/lib/utils/check-sdk-version.js +1 -1
  334. package/lib/utils/cli-version-check.js +1 -1
  335. package/lib/utils/cli-version-policy.d.ts +7 -0
  336. package/lib/utils/cli-version-policy.js +1 -1
  337. package/lib/utils/config.js +1 -1
  338. package/lib/utils/entity-with-id.js +1 -1
  339. package/lib/utils/file-utils.js +1 -1
  340. package/lib/utils/guides-cdn.js +1 -1
  341. package/lib/utils/http-client.js +1 -1
  342. package/lib/utils/is-non-interactive.js +1 -1
  343. package/lib/utils/logger.js +1 -1
  344. package/lib/utils/params.js +1 -1
  345. package/lib/utils/platform.js +1 -1
  346. package/lib/utils/sleep.js +1 -1
  347. package/lib/utils/template-replacer.js +1 -1
  348. package/lib/utils/update-notice.js +1 -1
  349. package/lib/utils/version.js +1 -1
  350. package/lib/utils/with-active-cookie.js +1 -1
  351. package/lib/utils/write-cli-side-channel.js +1 -1
  352. package/package.json +3 -1
  353. package/skills/rabetbase/SKILL.md +7 -5
  354. package/skills/rabetbase/guides/backend-function.md +5 -1
  355. package/skills/rabetbase/guides/bff-creation-workflow.md +3 -1
  356. package/skills/rabetbase/guides/cross-database-bff.md +70 -0
  357. package/skills/rabetbase/guides/data-api-guidelines.md +35 -33
  358. package/skills/rabetbase/guides/sql-creation-workflow.md +2 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +5 -1
  360. package/skills/rabetbase.manifest.json +4 -3
  361. package/templates/README.md +41 -13
@@ -1 +1 @@
1
- function a169_0x13e5(_0x5a606e,_0x339247){_0x5a606e=_0x5a606e-0xee;const _0x26edd8=a169_0x26ed();let _0x13e57b=_0x26edd8[_0x5a606e];return _0x13e57b;}(function(_0x1f03d1,_0x7a316b){const _0x30c502=a169_0x13e5,_0x306f60=_0x1f03d1();while(!![]){try{const _0x58e7e4=parseInt(_0x30c502(0x109))/0x1*(-parseInt(_0x30c502(0x10a))/0x2)+parseInt(_0x30c502(0xf7))/0x3+parseInt(_0x30c502(0xef))/0x4*(parseInt(_0x30c502(0x107))/0x5)+-parseInt(_0x30c502(0xf6))/0x6+parseInt(_0x30c502(0x114))/0x7*(-parseInt(_0x30c502(0xfb))/0x8)+-parseInt(_0x30c502(0x103))/0x9+parseInt(_0x30c502(0xfc))/0xa*(parseInt(_0x30c502(0x112))/0xb);if(_0x58e7e4===_0x7a316b)break;else _0x306f60['push'](_0x306f60['shift']());}catch(_0x423a61){_0x306f60['push'](_0x306f60['shift']());}}}(a169_0x26ed,0x50ac7));function a169_0x26ed(){const _0x5ca71d=['\x20menu','\x20menu\x20group(s)','Creating\x20menu:\x20','total','212IHxqUV','get-online-menu-list','path','resources','Update\x20menu\x20assets\x20\x22','stringify','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','3149100zaRxmY','1369704brTPlO','Menu\x20assets\x20synced:\x20','procode','label','953248UxVXTJ','179660xryHCj','\x20online\x20menus\x20successfully','update-menu-cdn-url','Updating\x20menu\x20asset\x20links:\x20','Batch\x20menu\x20creation\x20completed,\x20total\x20','create-menus','extend','639729rdXmpy','Update\x20menu\x20','length','all','46935ftNaUp','info','7SraLmL','102730dVxiKu','Create\x20menu\x20\x22','map','Fetched\x20','loadScriptMode','create-menu','menus','Menu\x20created\x20successfully:\x20','495otZfhG','Delete\x20','28PflnGJ','import','menuGroups'];a169_0x26ed=function(){return _0x5ca71d;};return a169_0x26ed();}import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a169_0x4da66b,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x1f5d63,_0x46146a){const _0xfad883=a169_0x13e5,_0x486b28=getEnv();logger['info'](_0xfad883(0xf0),isProduction(_0x486b28)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x1f5d63+')':_0xfad883(0xf5)+_0x1f5d63+')');const _0x550ccd=await fetchMenuSnapshot(_0x1f5d63,_0x46146a,{'verbose':!![]});return logger['info']('get-online-menu-list',_0xfad883(0x10d)+_0x550ccd[_0xfad883(0xee)]+_0xfad883(0xfd)),_0x550ccd[_0xfad883(0x110)][_0xfad883(0x10c)](toProcessedMenuItem);}export async function createMenu(_0x477f32,_0xe8c6ec,_0x3b7194){const _0x33a796=a169_0x13e5;logger[_0x33a796(0x108)](_0x33a796(0x10f),_0x33a796(0x119)+_0x3b7194['label']+'\x20('+_0x3b7194[_0x33a796(0xf1)]+')');const _0x8c373={'appCode':_0x477f32,'type':_0x33a796(0xf9),'sort':0x0,'extend':{'loadScriptMode':_0x33a796(0x115),'resources':_0x3b7194['resources']?JSON[_0x33a796(0xf4)](_0x3b7194[_0x33a796(0xf2)]):undefined},..._0x3b7194},_0x213e76=await createMenuRecord(_0x8c373,_0xe8c6ec,_0x33a796(0x10b)+_0x3b7194[_0x33a796(0xfa)]+'\x22');return logger[_0x33a796(0x108)](_0x33a796(0x10f),_0x33a796(0x111)+_0x3b7194[_0x33a796(0xfa)]),_0x213e76;}async function createSingleMenu(_0x6ad85,_0x58465f,_0x4163b8,_0x2787b5){const _0x52eb30=a169_0x13e5,_0x4e9052={'appCode':_0x6ad85,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x52eb30(0x115),'resources':_0x2787b5?JSON[_0x52eb30(0xf4)](_0x2787b5):undefined},'label':_0x4163b8['label'],'path':_0x4163b8[_0x52eb30(0xf1)]},_0xec54eb=await createMenuRecord(_0x4e9052,_0x58465f,'Create\x20menu\x20\x22'+_0x4163b8[_0x52eb30(0xfa)]+'\x22');return logger[_0x52eb30(0x108)](_0x52eb30(0x10f),_0x52eb30(0x111)+_0x4163b8[_0x52eb30(0xfa)]),_0xec54eb;}export async function createMenus(_0x220c3e,_0x2c79d8,_0x58b324,_0x1df464){const _0x27f80e=a169_0x13e5;logger[_0x27f80e(0x108)]('create-menus','Start\x20batch\x20menu\x20creation,\x20total\x20'+_0x58b324['length']);const _0x4faeaa=await Promise[_0x27f80e(0x106)](_0x58b324['map'](_0x38cdf9=>createSingleMenu(_0x220c3e,_0x2c79d8,_0x38cdf9,_0x1df464)));return logger[_0x27f80e(0x108)](_0x27f80e(0x101),_0x27f80e(0x100)+_0x58b324['length']),_0x4faeaa;}export async function updateMenuCdnUrl(_0x3bfcd6,_0x31bce7,_0x52ab5b){const _0x3d0194=a169_0x13e5;logger[_0x3d0194(0x108)](_0x3d0194(0xfe),_0x3d0194(0xff)+_0x52ab5b['label']+'\x20('+_0x52ab5b[_0x3d0194(0xf1)]+')');const _0x5c6cb6={'id':_0x52ab5b['id'],'appCode':_0x3bfcd6,'extend':{..._0x52ab5b[_0x3d0194(0x102)]??{},..._0x52ab5b[_0x3d0194(0x10e)]?{'loadScriptMode':_0x52ab5b['loadScriptMode']}:{},'resources':_0x52ab5b[_0x3d0194(0xf2)]?JSON[_0x3d0194(0xf4)](_0x52ab5b[_0x3d0194(0xf2)]):undefined}},_0x32d7ec=await updateMenuRecord(_0x5c6cb6,_0x31bce7,_0x3d0194(0xf3)+_0x52ab5b[_0x3d0194(0xfa)]+'\x22');return logger[_0x3d0194(0x108)](_0x3d0194(0xfe),_0x3d0194(0xf8)+_0x52ab5b[_0x3d0194(0xfa)],undefined),_0x32d7ec;}export async function createMenuEntity(_0x5de699,_0x271611,_0x260495){const _0x3a1865=a169_0x13e5;return createMenuRecord({'appCode':_0x5de699,..._0x260495},_0x271611,_0x3a1865(0x10b)+_0x260495[_0x3a1865(0xfa)]+'\x22');}export async function updateMenuEntity(_0x8347e7,_0x44b1ed,_0x45bed7){const _0x3117ab=a169_0x13e5;return updateMenuRecord({'appCode':_0x8347e7,..._0x45bed7},_0x44b1ed,_0x3117ab(0x104)+_0x45bed7['id']);}export async function batchDeleteMenuEntities(_0x771395,_0x295a9a){const _0x3c5bba=a169_0x13e5;return batchDeleteMenuRecords(_0x295a9a,_0x771395,_0x3c5bba(0x113)+_0x295a9a['length']+_0x3c5bba(0x117)+(_0x295a9a['length']===0x1?'':'s'));}export async function startMenuRegroup(_0x5d549a,_0x1eccc3){const _0x23d701=a169_0x13e5;return a169_0x4da66b(_0x1eccc3,_0x5d549a,'Regroup\x20'+_0x1eccc3[_0x23d701(0x116)][_0x23d701(0x105)]+_0x23d701(0x118));}
1
+ (function(_0x5e28d3,_0x5566cf){const _0x23817d=a169_0x4f82,_0x550eb1=_0x5e28d3();while(!![]){try{const _0x7975be=parseInt(_0x23817d(0x1db))/0x1*(parseInt(_0x23817d(0x1d2))/0x2)+parseInt(_0x23817d(0x1c9))/0x3*(parseInt(_0x23817d(0x1e1))/0x4)+-parseInt(_0x23817d(0x1cd))/0x5*(-parseInt(_0x23817d(0x1d7))/0x6)+parseInt(_0x23817d(0x1de))/0x7*(parseInt(_0x23817d(0x1c2))/0x8)+parseInt(_0x23817d(0x1e2))/0x9+-parseInt(_0x23817d(0x1ea))/0xa*(parseInt(_0x23817d(0x1c4))/0xb)+-parseInt(_0x23817d(0x1e5))/0xc*(parseInt(_0x23817d(0x1d9))/0xd);if(_0x7975be===_0x5566cf)break;else _0x550eb1['push'](_0x550eb1['shift']());}catch(_0x3c6a3d){_0x550eb1['push'](_0x550eb1['shift']());}}}(a169_0x21c1,0x6f4cc));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{fetchMenuSnapshot,toProcessedMenuItem}from'../../../commands/menu/shared/facts.js';import{batchDeleteMenuRecords,createMenuRecord,startMenuRegroup as a169_0x9812db,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x2331d2,_0x247021){const _0x3e5eff=a169_0x4f82,_0x18135f=getEnv();logger['info']('get-online-menu-list',isProduction(_0x18135f)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x2331d2+')':_0x3e5eff(0x1cf)+_0x2331d2+')');const _0x35af23=await fetchMenuSnapshot(_0x2331d2,_0x247021,{'verbose':!![]});return logger[_0x3e5eff(0x1c1)](_0x3e5eff(0x1e0),_0x3e5eff(0x1e7)+_0x35af23[_0x3e5eff(0x1e9)]+_0x3e5eff(0x1cc)),_0x35af23[_0x3e5eff(0x1d1)][_0x3e5eff(0x1dc)](toProcessedMenuItem);}export async function createMenu(_0x1c3d7a,_0x12c1a5,_0x427095){const _0xe3703e=a169_0x4f82;logger[_0xe3703e(0x1c1)](_0xe3703e(0x1ca),'Creating\x20menu:\x20'+_0x427095[_0xe3703e(0x1c5)]+'\x20('+_0x427095[_0xe3703e(0x1c8)]+')');const _0x10892d={'appCode':_0x1c3d7a,'type':_0xe3703e(0x1e3),'sort':0x0,'extend':{'loadScriptMode':_0xe3703e(0x1c0),'resources':_0x427095['resources']?JSON[_0xe3703e(0x1e4)](_0x427095[_0xe3703e(0x1d8)]):undefined},..._0x427095},_0x3559ba=await createMenuRecord(_0x10892d,_0x12c1a5,'Create\x20menu\x20\x22'+_0x427095['label']+'\x22');return logger[_0xe3703e(0x1c1)](_0xe3703e(0x1ca),_0xe3703e(0x1c7)+_0x427095[_0xe3703e(0x1c5)]),_0x3559ba;}function a169_0x21c1(){const _0x3d5268=['resources','13wZBZZv','Menu\x20assets\x20synced:\x20','1pDfNQn','map','Update\x20menu\x20','6231253elXhBv','loadScriptMode','get-online-menu-list','2316216RNxIWY','7341678LJHhlE','procode','stringify','25931268tQRiAE','create-menus','Fetched\x20','update-menu-cdn-url','total','219320RhwOLh','import','info','8YQPFgZ','Create\x20menu\x20\x22','143kMQktd','label','Start\x20batch\x20menu\x20creation,\x20total\x20','Menu\x20created\x20successfully:\x20','path','3vxHvsM','create-menu','all','\x20online\x20menus\x20successfully','255jXBVnW','Delete\x20','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','menuGroups','menus','106114OoWFKo','Update\x20menu\x20assets\x20\x22','Regroup\x20','length','extend','66342wIqMaI'];a169_0x21c1=function(){return _0x3d5268;};return a169_0x21c1();}function a169_0x4f82(_0x153151,_0x2ed284){_0x153151=_0x153151-0x1c0;const _0x21c18d=a169_0x21c1();let _0x4f820d=_0x21c18d[_0x153151];return _0x4f820d;}async function createSingleMenu(_0x261372,_0x3a9399,_0xfc31c7,_0x4d678c){const _0x18a7de=a169_0x4f82,_0x54e51c={'appCode':_0x261372,'type':_0x18a7de(0x1e3),'sort':0x0,'extend':{'loadScriptMode':_0x18a7de(0x1c0),'resources':_0x4d678c?JSON[_0x18a7de(0x1e4)](_0x4d678c):undefined},'label':_0xfc31c7[_0x18a7de(0x1c5)],'path':_0xfc31c7[_0x18a7de(0x1c8)]},_0x3b5831=await createMenuRecord(_0x54e51c,_0x3a9399,_0x18a7de(0x1c3)+_0xfc31c7[_0x18a7de(0x1c5)]+'\x22');return logger[_0x18a7de(0x1c1)](_0x18a7de(0x1ca),_0x18a7de(0x1c7)+_0xfc31c7[_0x18a7de(0x1c5)]),_0x3b5831;}export async function createMenus(_0x10b67c,_0x3cb1c5,_0x5b746a,_0x29edb0){const _0x221bb5=a169_0x4f82;logger[_0x221bb5(0x1c1)]('create-menus',_0x221bb5(0x1c6)+_0x5b746a[_0x221bb5(0x1d5)]);const _0x23a243=await Promise[_0x221bb5(0x1cb)](_0x5b746a[_0x221bb5(0x1dc)](_0x4ede10=>createSingleMenu(_0x10b67c,_0x3cb1c5,_0x4ede10,_0x29edb0)));return logger['info'](_0x221bb5(0x1e6),'Batch\x20menu\x20creation\x20completed,\x20total\x20'+_0x5b746a[_0x221bb5(0x1d5)]),_0x23a243;}export async function updateMenuCdnUrl(_0x4a59b3,_0x35b3a7,_0x7d66cd){const _0x48476d=a169_0x4f82;logger['info'](_0x48476d(0x1e8),'Updating\x20menu\x20asset\x20links:\x20'+_0x7d66cd[_0x48476d(0x1c5)]+'\x20('+_0x7d66cd[_0x48476d(0x1c8)]+')');const _0x10978d={'id':_0x7d66cd['id'],'appCode':_0x4a59b3,'extend':{..._0x7d66cd[_0x48476d(0x1d6)]??{},..._0x7d66cd['loadScriptMode']?{'loadScriptMode':_0x7d66cd[_0x48476d(0x1df)]}:{},'resources':_0x7d66cd[_0x48476d(0x1d8)]?JSON[_0x48476d(0x1e4)](_0x7d66cd['resources']):undefined}},_0x52db31=await updateMenuRecord(_0x10978d,_0x35b3a7,_0x48476d(0x1d3)+_0x7d66cd['label']+'\x22');return logger[_0x48476d(0x1c1)]('update-menu-cdn-url',_0x48476d(0x1da)+_0x7d66cd['label'],undefined),_0x52db31;}export async function createMenuEntity(_0x151c15,_0x479ae6,_0x2a887a){const _0x206a2c=a169_0x4f82;return createMenuRecord({'appCode':_0x151c15,..._0x2a887a},_0x479ae6,_0x206a2c(0x1c3)+_0x2a887a[_0x206a2c(0x1c5)]+'\x22');}export async function updateMenuEntity(_0x18aefb,_0x4a1f66,_0x53dfd8){const _0x54b58d=a169_0x4f82;return updateMenuRecord({'appCode':_0x18aefb,..._0x53dfd8},_0x4a1f66,_0x54b58d(0x1dd)+_0x53dfd8['id']);}export async function batchDeleteMenuEntities(_0x5bb253,_0x45311b){const _0x86993c=a169_0x4f82;return batchDeleteMenuRecords(_0x45311b,_0x5bb253,_0x86993c(0x1ce)+_0x45311b[_0x86993c(0x1d5)]+'\x20menu'+(_0x45311b[_0x86993c(0x1d5)]===0x1?'':'s'));}export async function startMenuRegroup(_0x2fcfb5,_0x501344){const _0x93df56=a169_0x4f82;return a169_0x9812db(_0x501344,_0x2fcfb5,_0x93df56(0x1d4)+_0x501344[_0x93df56(0x1d0)][_0x93df56(0x1d5)]+'\x20menu\x20group(s)');}
@@ -1 +1 @@
1
- (function(_0x38dc0d,_0x111a62){const _0x59922a=a170_0x429d,_0x249577=_0x38dc0d();while(!![]){try{const _0x1bd71a=parseInt(_0x59922a(0x111))/0x1+parseInt(_0x59922a(0x113))/0x2*(parseInt(_0x59922a(0x120))/0x3)+parseInt(_0x59922a(0x11e))/0x4*(parseInt(_0x59922a(0x103))/0x5)+-parseInt(_0x59922a(0x102))/0x6*(parseInt(_0x59922a(0x109))/0x7)+-parseInt(_0x59922a(0x107))/0x8+-parseInt(_0x59922a(0x129))/0x9+-parseInt(_0x59922a(0x116))/0xa;if(_0x1bd71a===_0x111a62)break;else _0x249577['push'](_0x249577['shift']());}catch(_0xd29c17){_0x249577['push'](_0x249577['shift']());}}}(a170_0x4464,0x3ce53));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';const MENU_SYNC_PARAM_KEYS=new Set(['jsUrl','cssUrl']);function a170_0x429d(_0x581ebc,_0x3dd28f){_0x581ebc=_0x581ebc-0x100;const _0x446405=a170_0x4464();let _0x429da4=_0x446405[_0x581ebc];return _0x429da4;}function a170_0x4464(){const _0x3c906e=['308036fNKNbr','parse','1399311iXDusg','path','field','Menu\x20sync\x20completed','Invalid\x20--params.','cssUrl','isArray','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','import','3259017dZHHch','length','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','dryRun','has','object','jsUrl','--params.','trim','procode','1110qhplyD','15bzGDLd','No\x20local\x20pages\x20matched\x20paths:\x20','keys','CSS\x20URL\x20is\x20unreachable:\x20','634656bLPtAo','Invalid\x20--params\x20JSON.','5523fzEAIa','setLogPath','label','Start\x20non-interactive\x20menu\x20sync','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL',':\x20expected\x20a\x20non-empty\x20string.','JS\x20URL\x20is\x20unreachable:\x20','hasOwn','272350LXVtNr','push','2oyWfDT','menu-sync','map','1329770lxPBxF','Invalid\x20--params\x20fields:\x20','info','join','filter','pages','message','string'];a170_0x4464=function(){return _0x3c906e;};return a170_0x4464();}function validateParams(_0x44dcf6){const _0x3574ce=a170_0x429d,_0x1eff16=[];return _0x44dcf6['jsUrl']&&!isValidJsHttpsUrl(_0x44dcf6[_0x3574ce(0x130)])&&_0x1eff16[_0x3574ce(0x112)]({'field':_0x3574ce(0x130),'message':_0x3574ce(0x10d)}),_0x44dcf6[_0x3574ce(0x125)]&&!isValidCssHttpsUrl(_0x44dcf6[_0x3574ce(0x125)])&&_0x1eff16[_0x3574ce(0x112)]({'field':_0x3574ce(0x125),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x1eff16;}export async function runMenuSyncCore(_0x2be851,_0x4ac7d3,_0x415900=[],_0x2dae5b,_0x4b2a17={}){const _0x4a4804=a170_0x429d,_0x512d25=parseMenuSyncParams(_0x2dae5b),_0x1b997c=[...new Set(_0x415900[_0x4a4804(0x115)](_0x3b3e36=>_0x3b3e36[_0x4a4804(0x100)]())[_0x4a4804(0x11a)](Boolean))],_0x2dcd3b=_0x512d25['jsUrl'],_0x57f4a6=_0x512d25[_0x4a4804(0x125)],_0x300136=[];if(_0x2dcd3b)_0x300136[_0x4a4804(0x112)](_0x2dcd3b);if(_0x57f4a6)_0x300136[_0x4a4804(0x112)](_0x57f4a6);const _0x883783=validateParams(_0x512d25);if(_0x883783[_0x4a4804(0x12a)]>0x0){const _0x20878a=_0x883783[_0x4a4804(0x115)](_0x488c44=>_0x4a4804(0x131)+_0x488c44[_0x4a4804(0x122)]+':\x20'+_0x488c44[_0x4a4804(0x11c)])['join'](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x20878a);}logger[_0x4a4804(0x10a)](process['cwd']()),logger[_0x4a4804(0x118)](_0x4a4804(0x114),_0x4a4804(0x10c),{'appCode':_0x2be851,'selectedCount':_0x1b997c[_0x4a4804(0x12a)],'jsUrl':_0x2dcd3b,'cssUrl':_0x57f4a6});if(_0x2dcd3b){const _0x2bc0f3=await isUrlReachable(_0x2dcd3b);if(!_0x2bc0f3)throw new Error(_0x4a4804(0x10f)+_0x2dcd3b);}if(_0x57f4a6){const _0x2ce733=await isUrlReachable(_0x57f4a6);if(!_0x2ce733)throw new Error(_0x4a4804(0x106)+_0x57f4a6);}const _0x234642=getLocalPages();if(_0x234642['length']===0x0){if(_0x1b997c['length']>0x0)throw new Error(_0x4a4804(0x104)+_0x1b997c[_0x4a4804(0x119)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x4b2a17[_0x4a4804(0x12d)]===!![],'targetPages':[],'plannedMenus':[]};}const _0x181ed9=await getOnlineMenuList(_0x2be851,_0x4ac7d3),_0x42be56=new Set(_0x181ed9[_0x4a4804(0x115)](_0x2dfb53=>_0x2dfb53[_0x4a4804(0x121)]));let _0x5cf577;if(_0x1b997c[_0x4a4804(0x12a)]>0x0){const _0x4b4bca=new Map(_0x234642[_0x4a4804(0x115)](_0x1211c1=>[_0x1211c1[_0x4a4804(0x121)],_0x1211c1])),_0x22ab30=_0x1b997c[_0x4a4804(0x11a)](_0x2bff87=>!_0x4b4bca[_0x4a4804(0x12e)](_0x2bff87));if(_0x22ab30[_0x4a4804(0x12a)]>0x0){const _0x30b683=_0x234642[_0x4a4804(0x115)](_0x32e08b=>_0x32e08b[_0x4a4804(0x121)])[_0x4a4804(0x119)](',\x20');throw new Error(_0x4a4804(0x104)+_0x22ab30[_0x4a4804(0x119)](',\x20')+'\x0a\x20\x20Available\x20local\x20paths:\x20'+_0x30b683);}const _0x34e7f1=_0x1b997c[_0x4a4804(0x11a)](_0x538b48=>_0x42be56[_0x4a4804(0x12e)](_0x538b48));if(_0x34e7f1[_0x4a4804(0x12a)]>0x0)throw new Error(_0x4a4804(0x127)+_0x34e7f1[_0x4a4804(0x119)](',\x20'));_0x5cf577=_0x1b997c[_0x4a4804(0x115)](_0x10684e=>_0x4b4bca['get'](_0x10684e));}else _0x5cf577=_0x234642['filter'](_0x47c166=>!_0x42be56['has'](_0x47c166['path']));if(_0x5cf577[_0x4a4804(0x12a)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x4b2a17[_0x4a4804(0x12d)]===!![],'targetPages':[],'plannedMenus':[]};const _0x27edaf=_0x5cf577[_0x4a4804(0x115)](_0x476bb3=>({'type':_0x4a4804(0x101),'path':_0x476bb3[_0x4a4804(0x121)],'label':_0x476bb3[_0x4a4804(0x10b)],'loadScriptMode':_0x4a4804(0x128),'resources':[..._0x300136]}));if(_0x4b2a17[_0x4a4804(0x12d)])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x5cf577,'plannedMenus':_0x27edaf};const _0x19e7cd=await createMenus(_0x2be851,_0x4ac7d3,_0x5cf577,_0x300136[_0x4a4804(0x12a)]>0x0?_0x300136:undefined);return logger[_0x4a4804(0x118)](_0x4a4804(0x114),_0x4a4804(0x123),{'count':_0x5cf577[_0x4a4804(0x12a)],'resources':_0x300136}),{'created':_0x19e7cd[_0x4a4804(0x12a)],'skipped':![],'dryRun':![],'targetPages':_0x5cf577,'plannedMenus':_0x27edaf,'menus':_0x19e7cd};}export function parseMenuSyncParams(_0x132055){const _0xbd12df=a170_0x429d;if(!_0x132055||typeof _0x132055!==_0xbd12df(0x11d))return{};let _0x2ab14a;try{_0x2ab14a=JSON[_0xbd12df(0x11f)](_0x132055);}catch{throw new Error(_0xbd12df(0x108));}if(typeof _0x2ab14a!==_0xbd12df(0x12f)||_0x2ab14a===null||Array[_0xbd12df(0x126)](_0x2ab14a))throw new Error(_0xbd12df(0x12c));const _0x2530ed=_0x2ab14a;if(Object[_0xbd12df(0x110)](_0x2530ed,_0xbd12df(0x11b)))throw new Error(_0xbd12df(0x12b));const _0x468066=Object[_0xbd12df(0x105)](_0x2530ed)[_0xbd12df(0x11a)](_0x99c4e5=>!MENU_SYNC_PARAM_KEYS['has'](_0x99c4e5));if(_0x468066[_0xbd12df(0x12a)]>0x0)throw new Error(_0xbd12df(0x117)+_0x468066[_0xbd12df(0x119)](',\x20')+'.');for(const _0x21ffd0 of MENU_SYNC_PARAM_KEYS){const _0x9c2f49=_0x2530ed[_0x21ffd0];if(_0x9c2f49!==undefined&&(typeof _0x9c2f49!==_0xbd12df(0x11d)||_0x9c2f49[_0xbd12df(0x100)]()===''))throw new Error(_0xbd12df(0x124)+_0x21ffd0+_0xbd12df(0x10e));}return{'jsUrl':typeof _0x2530ed[_0xbd12df(0x130)]==='string'?_0x2530ed['jsUrl'][_0xbd12df(0x100)]():undefined,'cssUrl':typeof _0x2530ed[_0xbd12df(0x125)]==='string'?_0x2530ed[_0xbd12df(0x125)]['trim']():undefined};}
1
+ const a170_0x3a9c34=a170_0x25ee;(function(_0x51de60,_0x2afec2){const _0x568616=a170_0x25ee,_0x25026c=_0x51de60();while(!![]){try{const _0x5170d8=-parseInt(_0x568616(0x187))/0x1+-parseInt(_0x568616(0x166))/0x2+parseInt(_0x568616(0x164))/0x3*(parseInt(_0x568616(0x17c))/0x4)+-parseInt(_0x568616(0x180))/0x5*(-parseInt(_0x568616(0x175))/0x6)+parseInt(_0x568616(0x16a))/0x7+-parseInt(_0x568616(0x17e))/0x8*(-parseInt(_0x568616(0x179))/0x9)+parseInt(_0x568616(0x188))/0xa*(-parseInt(_0x568616(0x162))/0xb);if(_0x5170d8===_0x2afec2)break;else _0x25026c['push'](_0x25026c['shift']());}catch(_0x3a98b1){_0x25026c['push'](_0x25026c['shift']());}}}(a170_0x4d7a,0xe47b4));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a170_0x25ee(_0x543d9d,_0x298bdf){_0x543d9d=_0x543d9d-0x160;const _0x4d7a1b=a170_0x4d7a();let _0x25ee33=_0x4d7a1b[_0x543d9d];return _0x25ee33;}import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function a170_0x4d7a(){const _0x7d8152=['trim',':\x20expected\x20a\x20non-empty\x20string.','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','get','string','menu-sync','keys','3542yhbcDd','message','1227srynvE','map','920000tAEyFc','JS\x20URL\x20is\x20unreachable:\x20','cwd','info','5685519OZflVY','jsUrl','Menu\x20sync\x20completed','filter','dryRun','join','length','path','Invalid\x20--params.','\x0a\x20\x20Available\x20local\x20paths:\x20','has','11074974xNKvEy','label','field','Local\x20page\x20paths\x20are\x20already\x20on\x20the\x20platform:\x20','9977517LneiVV','setLogPath','object','7940MaYjxN','pages','8eSQAtl','Invalid\x20--params:\x20','5xDpghr','Invalid\x20--params:\x20expected\x20a\x20JSON\x20object.','No\x20local\x20pages\x20matched\x20paths:\x20','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','procode','--params.pages\x20is\x20no\x20longer\x20supported.\x20Use\x20--paths\x20with\x20exact\x20local\x20page\x20paths.','import','982438vkuRfB','68330LqXkol','CSS\x20URL\x20is\x20unreachable:\x20','push','Start\x20non-interactive\x20menu\x20sync','cssUrl'];a170_0x4d7a=function(){return _0x7d8152;};return a170_0x4d7a();}const MENU_SYNC_PARAM_KEYS=new Set([a170_0x3a9c34(0x16b),a170_0x3a9c34(0x18c)]);function validateParams(_0x1245fb){const _0x1129ce=a170_0x3a9c34,_0xbd611d=[];return _0x1245fb[_0x1129ce(0x16b)]&&!isValidJsHttpsUrl(_0x1245fb[_0x1129ce(0x16b)])&&_0xbd611d[_0x1129ce(0x18a)]({'field':_0x1129ce(0x16b),'message':_0x1129ce(0x183)}),_0x1245fb[_0x1129ce(0x18c)]&&!isValidCssHttpsUrl(_0x1245fb[_0x1129ce(0x18c)])&&_0xbd611d['push']({'field':_0x1129ce(0x18c),'message':_0x1129ce(0x18f)}),_0xbd611d;}export async function runMenuSyncCore(_0x2d65ee,_0x54e80b,_0x36a9b4=[],_0x1a7f92,_0x3acb1c={}){const _0x420ede=a170_0x3a9c34,_0x438e6a=parseMenuSyncParams(_0x1a7f92),_0x27dcba=[...new Set(_0x36a9b4[_0x420ede(0x165)](_0x50f30b=>_0x50f30b[_0x420ede(0x18d)]())[_0x420ede(0x16d)](Boolean))],_0x5b5da7=_0x438e6a[_0x420ede(0x16b)],_0x1bf191=_0x438e6a[_0x420ede(0x18c)],_0x346e8f=[];if(_0x5b5da7)_0x346e8f[_0x420ede(0x18a)](_0x5b5da7);if(_0x1bf191)_0x346e8f[_0x420ede(0x18a)](_0x1bf191);const _0x401f16=validateParams(_0x438e6a);if(_0x401f16[_0x420ede(0x170)]>0x0){const _0x5cb274=_0x401f16[_0x420ede(0x165)](_0x1b51de=>'--params.'+_0x1b51de[_0x420ede(0x177)]+':\x20'+_0x1b51de[_0x420ede(0x163)])[_0x420ede(0x16f)](';\x20');throw new Error(_0x420ede(0x17f)+_0x5cb274);}logger[_0x420ede(0x17a)](process[_0x420ede(0x168)]()),logger['info'](_0x420ede(0x160),_0x420ede(0x18b),{'appCode':_0x2d65ee,'selectedCount':_0x27dcba[_0x420ede(0x170)],'jsUrl':_0x5b5da7,'cssUrl':_0x1bf191});if(_0x5b5da7){const _0x1a5431=await isUrlReachable(_0x5b5da7);if(!_0x1a5431)throw new Error(_0x420ede(0x167)+_0x5b5da7);}if(_0x1bf191){const _0x3d2f74=await isUrlReachable(_0x1bf191);if(!_0x3d2f74)throw new Error(_0x420ede(0x189)+_0x1bf191);}const _0x1a776b=getLocalPages();if(_0x1a776b[_0x420ede(0x170)]===0x0){if(_0x27dcba[_0x420ede(0x170)]>0x0)throw new Error(_0x420ede(0x182)+_0x27dcba[_0x420ede(0x16f)](',\x20'));return{'created':0x0,'skipped':!![],'dryRun':_0x3acb1c['dryRun']===!![],'targetPages':[],'plannedMenus':[]};}const _0x309afa=await getOnlineMenuList(_0x2d65ee,_0x54e80b),_0x5ba55a=new Set(_0x309afa['map'](_0x4dad7b=>_0x4dad7b[_0x420ede(0x171)]));let _0x351c22;if(_0x27dcba[_0x420ede(0x170)]>0x0){const _0x13351e=new Map(_0x1a776b['map'](_0x286955=>[_0x286955['path'],_0x286955])),_0xacd0c3=_0x27dcba[_0x420ede(0x16d)](_0x205906=>!_0x13351e[_0x420ede(0x174)](_0x205906));if(_0xacd0c3[_0x420ede(0x170)]>0x0){const _0x59c92c=_0x1a776b['map'](_0x5ca535=>_0x5ca535[_0x420ede(0x171)])['join'](',\x20');throw new Error(_0x420ede(0x182)+_0xacd0c3[_0x420ede(0x16f)](',\x20')+_0x420ede(0x173)+_0x59c92c);}const _0x37ffb5=_0x27dcba[_0x420ede(0x16d)](_0x1ba051=>_0x5ba55a['has'](_0x1ba051));if(_0x37ffb5[_0x420ede(0x170)]>0x0)throw new Error(_0x420ede(0x178)+_0x37ffb5[_0x420ede(0x16f)](',\x20'));_0x351c22=_0x27dcba['map'](_0xac2099=>_0x13351e[_0x420ede(0x190)](_0xac2099));}else _0x351c22=_0x1a776b[_0x420ede(0x16d)](_0x4ad7c3=>!_0x5ba55a['has'](_0x4ad7c3['path']));if(_0x351c22[_0x420ede(0x170)]===0x0)return{'created':0x0,'skipped':!![],'dryRun':_0x3acb1c[_0x420ede(0x16e)]===!![],'targetPages':[],'plannedMenus':[]};const _0x5577e5=_0x351c22[_0x420ede(0x165)](_0x27ec64=>({'type':_0x420ede(0x184),'path':_0x27ec64[_0x420ede(0x171)],'label':_0x27ec64[_0x420ede(0x176)],'loadScriptMode':_0x420ede(0x186),'resources':[..._0x346e8f]}));if(_0x3acb1c['dryRun'])return{'created':0x0,'skipped':![],'dryRun':!![],'targetPages':_0x351c22,'plannedMenus':_0x5577e5};const _0x5bc9ea=await createMenus(_0x2d65ee,_0x54e80b,_0x351c22,_0x346e8f[_0x420ede(0x170)]>0x0?_0x346e8f:undefined);return logger[_0x420ede(0x169)](_0x420ede(0x160),_0x420ede(0x16c),{'count':_0x351c22[_0x420ede(0x170)],'resources':_0x346e8f}),{'created':_0x5bc9ea['length'],'skipped':![],'dryRun':![],'targetPages':_0x351c22,'plannedMenus':_0x5577e5,'menus':_0x5bc9ea};}export function parseMenuSyncParams(_0x555443){const _0x1704ca=a170_0x3a9c34;if(!_0x555443||typeof _0x555443!==_0x1704ca(0x191))return{};let _0x21b7ab;try{_0x21b7ab=JSON['parse'](_0x555443);}catch{throw new Error('Invalid\x20--params\x20JSON.');}if(typeof _0x21b7ab!==_0x1704ca(0x17b)||_0x21b7ab===null||Array['isArray'](_0x21b7ab))throw new Error(_0x1704ca(0x181));const _0xd53f74=_0x21b7ab;if(Object['hasOwn'](_0xd53f74,_0x1704ca(0x17d)))throw new Error(_0x1704ca(0x185));const _0xfcee75=Object[_0x1704ca(0x161)](_0xd53f74)['filter'](_0x517ffb=>!MENU_SYNC_PARAM_KEYS[_0x1704ca(0x174)](_0x517ffb));if(_0xfcee75[_0x1704ca(0x170)]>0x0)throw new Error('Invalid\x20--params\x20fields:\x20'+_0xfcee75[_0x1704ca(0x16f)](',\x20')+'.');for(const _0x3d1212 of MENU_SYNC_PARAM_KEYS){const _0x1f5247=_0xd53f74[_0x3d1212];if(_0x1f5247!==undefined&&(typeof _0x1f5247!==_0x1704ca(0x191)||_0x1f5247[_0x1704ca(0x18d)]()===''))throw new Error(_0x1704ca(0x172)+_0x3d1212+_0x1704ca(0x18e));}return{'jsUrl':typeof _0xd53f74[_0x1704ca(0x16b)]===_0x1704ca(0x191)?_0xd53f74[_0x1704ca(0x16b)][_0x1704ca(0x18d)]():undefined,'cssUrl':typeof _0xd53f74['cssUrl']===_0x1704ca(0x191)?_0xd53f74['cssUrl'][_0x1704ca(0x18d)]():undefined};}
@@ -1 +1 @@
1
- (function(_0x3c9dbc,_0x172e35){const _0x36826d=a172_0x132b,_0x23b962=_0x3c9dbc();while(!![]){try{const _0x350312=-parseInt(_0x36826d(0x1da))/0x1*(-parseInt(_0x36826d(0x1c1))/0x2)+-parseInt(_0x36826d(0x1dc))/0x3*(parseInt(_0x36826d(0x1b5))/0x4)+parseInt(_0x36826d(0x1a8))/0x5*(-parseInt(_0x36826d(0x1cf))/0x6)+parseInt(_0x36826d(0x1c3))/0x7+-parseInt(_0x36826d(0x1ac))/0x8*(-parseInt(_0x36826d(0x1e6))/0x9)+parseInt(_0x36826d(0x1d7))/0xa*(-parseInt(_0x36826d(0x1d2))/0xb)+parseInt(_0x36826d(0x1ba))/0xc;if(_0x350312===_0x172e35)break;else _0x23b962['push'](_0x23b962['shift']());}catch(_0xe43d99){_0x23b962['push'](_0x23b962['shift']());}}}(a172_0x4b74,0xba3d8));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x238fe4){const _0x240a40=a172_0x132b,_0x5d569b=[];return _0x238fe4[_0x240a40(0x1db)]&&!isValidJsHttpsUrl(_0x238fe4[_0x240a40(0x1db)])&&_0x5d569b['push']({'field':'jsUrl','message':_0x240a40(0x1b6)}),_0x238fe4[_0x240a40(0x1c0)]&&!isValidCssHttpsUrl(_0x238fe4[_0x240a40(0x1c0)])&&_0x5d569b[_0x240a40(0x1b4)]({'field':_0x240a40(0x1c0),'message':_0x240a40(0x1a9)}),_0x5d569b;}export async function runMenuUpdateCore(_0x35f81f,_0x5cc95d,_0x52d812,_0x5e1f89={}){const _0x36905b=a172_0x132b,_0x2ca2de=parseUpdateParamsFlag(_0x52d812),_0x3160b7=normalizeMode(_0x5e1f89['mode']);validateSelection(_0x5e1f89[_0x36905b(0x1ae)]);const _0x56b460=[];if(_0x2ca2de[_0x36905b(0x1db)])_0x56b460[_0x36905b(0x1b4)](_0x2ca2de[_0x36905b(0x1db)]);if(_0x2ca2de[_0x36905b(0x1c0)])_0x56b460[_0x36905b(0x1b4)](_0x2ca2de['cssUrl']);const _0x2cab3e=validateParams(_0x2ca2de);if(_0x2cab3e[_0x36905b(0x1e4)]>0x0){const _0x14f047=_0x2cab3e[_0x36905b(0x1bd)](_0x52d132=>_0x36905b(0x1ea)+_0x52d132[_0x36905b(0x1e5)]+':\x20'+_0x52d132[_0x36905b(0x1e0)])['join'](';\x20');throw new Error(_0x36905b(0x1d9)+_0x14f047);}if(_0x56b460['length']===0x0)throw new Error(_0x36905b(0x1b8)+_0x36905b(0x1c9));logger[_0x36905b(0x1d3)](process[_0x36905b(0x1ab)]()),logger['info'](_0x36905b(0x1c5),_0x36905b(0x1d6),{'appCode':_0x35f81f,'jsUrl':_0x2ca2de[_0x36905b(0x1db)],'cssUrl':_0x2ca2de[_0x36905b(0x1c0)],'mode':_0x3160b7,'dryRun':_0x5e1f89[_0x36905b(0x1d1)]===!![]});if(_0x2ca2de['jsUrl']){const _0x9b0fdb=await isUrlReachable(_0x2ca2de[_0x36905b(0x1db)]);if(!_0x9b0fdb)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x2ca2de[_0x36905b(0x1db)]);}if(_0x2ca2de['cssUrl']){const _0x50102c=await isUrlReachable(_0x2ca2de['cssUrl']);if(!_0x50102c)throw new Error(_0x36905b(0x1ca)+_0x2ca2de[_0x36905b(0x1c0)]);}const _0x1a5b25=await getOnlineMenuList(_0x35f81f,_0x5cc95d),_0x1456c9=_0x1a5b25[_0x36905b(0x1b9)](_0x1065a0=>_0x1065a0['resources'][_0x36905b(0x1e4)]>0x0),_0x21a446=selectMenusForUpdate(_0x1456c9,_0x5e1f89[_0x36905b(0x1ae)]);if(_0x21a446[_0x36905b(0x1e4)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x5e1f89[_0x36905b(0x1d1)]===!![]};const _0x51ee58=_0x21a446[_0x36905b(0x1bd)](_0x127d13=>buildMenuUpdateDiff(_0x127d13,_0x2ca2de,_0x3160b7,_0x5e1f89[_0x36905b(0x1d0)]===!![],_0x5e1f89[_0x36905b(0x1e1)]));if(_0x5e1f89['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x51ee58};const _0x963576=await Promise['allSettled'](_0x21a446[_0x36905b(0x1bd)]((_0x1d5171,_0x32a1e0)=>updateMenuCdnUrl(_0x35f81f,_0x5cc95d,{'id':_0x1d5171['id'],'label':_0x1d5171[_0x36905b(0x1dd)],'path':_0x1d5171[_0x36905b(0x1bb)],'resources':_0x51ee58[_0x32a1e0]['after'][_0x36905b(0x1e3)],'extend':_0x1d5171['extend']??null,'loadScriptMode':_0x5e1f89[_0x36905b(0x1e1)]}))),_0x571101=_0x963576['filter'](_0x31ea83=>_0x31ea83[_0x36905b(0x1cb)]===_0x36905b(0x1b2))[_0x36905b(0x1bd)](_0x569f31=>_0x569f31[_0x36905b(0x1bf)]),_0x244d91=_0x963576[_0x36905b(0x1b9)](_0x35fa4e=>_0x35fa4e[_0x36905b(0x1cb)]===_0x36905b(0x1d4))[_0x36905b(0x1e4)];return logger[_0x36905b(0x1ad)](_0x36905b(0x1c5),'Menu\x20asset\x20update\x20completed',{'count':_0x21a446[_0x36905b(0x1e4)],'resources':_0x56b460}),{'updated':_0x571101[_0x36905b(0x1e4)],'failed':_0x244d91,'skipped':![],'menus':_0x571101};}function validateSelection(_0x3afbe2){const _0x51d245=a172_0x132b;if(!_0x3afbe2)throw new Error(_0x51d245(0x1aa));if(_0x3afbe2[_0x51d245(0x1c8)]&&(_0x3afbe2[_0x51d245(0x1de)]['length']>0x0||_0x3afbe2[_0x51d245(0x1b0)]['length']>0x0))throw new Error(_0x51d245(0x1e2));if(!_0x3afbe2[_0x51d245(0x1c8)]&&_0x3afbe2[_0x51d245(0x1de)][_0x51d245(0x1e4)]===0x0&&_0x3afbe2[_0x51d245(0x1b0)]['length']===0x0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');}export function selectMenusForUpdate(_0x2a9c94,_0x39ee40){const _0x3e120c=a172_0x132b;validateSelection(_0x39ee40);if(_0x39ee40[_0x3e120c(0x1c8)])return _0x2a9c94;const _0x2d2d71=new Set(_0x2a9c94[_0x3e120c(0x1bd)](_0x3e7a16=>_0x3e7a16['id'])),_0xb5c3d6=new Set(_0x2a9c94[_0x3e120c(0x1bd)](_0x3c0fe6=>_0x3c0fe6[_0x3e120c(0x1bb)])),_0x37e72b=_0x39ee40[_0x3e120c(0x1de)][_0x3e120c(0x1b9)](_0x2f39f0=>!_0x2d2d71[_0x3e120c(0x1cd)](_0x2f39f0)),_0x5e2770=_0x39ee40[_0x3e120c(0x1b0)][_0x3e120c(0x1b9)](_0x37a562=>!_0xb5c3d6[_0x3e120c(0x1cd)](_0x37a562));if(_0x37e72b[_0x3e120c(0x1e4)]>0x0||_0x5e2770[_0x3e120c(0x1e4)]>0x0){const _0xe26a38=[..._0x37e72b[_0x3e120c(0x1bd)](_0x49370b=>String(_0x49370b)),..._0x5e2770][_0x3e120c(0x1e7)](',\x20');throw new Error(_0x3e120c(0x1df)+_0xe26a38);}const _0x511ea8=new Set(_0x39ee40[_0x3e120c(0x1de)]),_0x5aeb24=new Set(_0x39ee40[_0x3e120c(0x1b0)]);return _0x2a9c94[_0x3e120c(0x1b9)](_0x5a3064=>_0x511ea8[_0x3e120c(0x1cd)](_0x5a3064['id'])||_0x5aeb24[_0x3e120c(0x1cd)](_0x5a3064[_0x3e120c(0x1bb)]));}function a172_0x132b(_0x360c46,_0x2f41eb){_0x360c46=_0x360c46-0x1a7;const _0x4b7482=a172_0x4b74();let _0x132b77=_0x4b7482[_0x360c46];return _0x132b77;}function normalizeMode(_0x46f1e1){const _0x135a1d=a172_0x132b;if(!_0x46f1e1)return _0x135a1d(0x1bc);if(_0x46f1e1===_0x135a1d(0x1c2)||_0x46f1e1==='patch')return _0x46f1e1;throw new Error('Invalid\x20--mode:\x20'+_0x46f1e1+_0x135a1d(0x1eb));}function buildMenuUpdateDiff(_0x51c471,_0x1e5ba5,_0x11598d,_0x66d1cb,_0x5938a0){const _0x32c1c6=a172_0x132b,_0x32b182=[..._0x51c471[_0x32c1c6(0x1e3)]];_0x11598d===_0x32c1c6(0x1bc)&&assertUnambiguousPatchResources(_0x51c471,_0x32b182,_0x1e5ba5);const _0x156fc5=_0x11598d===_0x32c1c6(0x1bc)?patchResources(_0x32b182,_0x1e5ba5):replaceResources(_0x1e5ba5),_0x9c82=[],_0x517321=_0x32b182[_0x32c1c6(0x1b7)](isJsResource),_0x3e6a80=_0x156fc5[_0x32c1c6(0x1b7)](isJsResource);if(_0x517321&&!_0x3e6a80){const _0x49f492='menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x51c471[_0x32c1c6(0x1dd)]+_0x32c1c6(0x1b1)+_0x51c471[_0x32c1c6(0x1bb)]+').\x20'+_0x32c1c6(0x1c4);if(!_0x66d1cb)throw new Error(_0x49f492);_0x9c82[_0x32c1c6(0x1b4)](_0x49f492);}const _0x970dc7=_0x32b182['some'](isCssResource),_0x37ab97=_0x156fc5['some'](isCssResource);_0x970dc7&&!_0x37ab97&&_0x9c82[_0x32c1c6(0x1b4)](_0x32c1c6(0x1d8)+_0x51c471[_0x32c1c6(0x1dd)]+_0x32c1c6(0x1b1)+_0x51c471[_0x32c1c6(0x1bb)]+').');const _0x33e268=typeof _0x51c471[_0x32c1c6(0x1e9)]?.['loadScriptMode']===_0x32c1c6(0x1af)?_0x51c471[_0x32c1c6(0x1e9)][_0x32c1c6(0x1e1)]:null,_0x59b7bd=_0x5938a0?{'loadScriptMode':_0x33e268}:{},_0xa2fbe3=_0x5938a0?{'loadScriptMode':_0x5938a0}:{};return{'id':_0x51c471['id'],'label':_0x51c471['label'],'path':_0x51c471[_0x32c1c6(0x1bb)],'mode':_0x11598d,'before':{'resources':_0x32b182,..._0x59b7bd},'after':{'resources':_0x156fc5,..._0xa2fbe3},'warnings':_0x9c82};}function replaceResources(_0x880dbe){const _0xef2ddb=a172_0x132b;return[_0x880dbe[_0xef2ddb(0x1db)],_0x880dbe[_0xef2ddb(0x1c0)]][_0xef2ddb(0x1b9)](_0x3e2df1=>!!_0x3e2df1);}function assertUnambiguousPatchResources(_0x35f505,_0x1d98fc,_0x3f32e2){const _0x405441=a172_0x132b,_0x4394bd=_0x1d98fc['filter'](isJsResource)[_0x405441(0x1e4)];if(_0x3f32e2[_0x405441(0x1db)]&&_0x4394bd>0x1)throw new Error(_0x405441(0x1c6)+_0x4394bd+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x35f505[_0x405441(0x1dd)]+_0x405441(0x1b1)+_0x35f505[_0x405441(0x1bb)]+')\x20'+'with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.');const _0x1c139e=_0x1d98fc['filter'](isCssResource)[_0x405441(0x1e4)];if(_0x3f32e2[_0x405441(0x1c0)]&&_0x1c139e>0x1)throw new Error(_0x405441(0x1c6)+_0x1c139e+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x35f505[_0x405441(0x1dd)]+_0x405441(0x1b1)+_0x35f505[_0x405441(0x1bb)]+')\x20'+_0x405441(0x1a7));}function patchResources(_0x265cd2,_0x109bdb){const _0x39ec1f=a172_0x132b;let _0x487be1=![],_0x298448=![];const _0x1c748d=[];for(const _0xbd09d1 of _0x265cd2){if(isJsResource(_0xbd09d1)){if(_0x109bdb[_0x39ec1f(0x1db)]&&!_0x487be1)_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1db)]),_0x487be1=!![];else!_0x109bdb['jsUrl']&&_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);continue;}if(isCssResource(_0xbd09d1)){if(_0x109bdb[_0x39ec1f(0x1c0)]&&!_0x298448)_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1c0)]),_0x298448=!![];else!_0x109bdb[_0x39ec1f(0x1c0)]&&_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);continue;}_0x1c748d[_0x39ec1f(0x1b4)](_0xbd09d1);}return _0x109bdb[_0x39ec1f(0x1db)]&&!_0x487be1&&_0x1c748d[_0x39ec1f(0x1b3)](_0x109bdb[_0x39ec1f(0x1db)]),_0x109bdb[_0x39ec1f(0x1c0)]&&!_0x298448&&_0x1c748d[_0x39ec1f(0x1b4)](_0x109bdb[_0x39ec1f(0x1c0)]),_0x1c748d;}function isJsResource(_0x293e69){const _0x425723=a172_0x132b;return stripQuery(_0x293e69)[_0x425723(0x1be)]()[_0x425723(0x1cc)](_0x425723(0x1c7));}function isCssResource(_0x4dea68){const _0x628cce=a172_0x132b;return stripQuery(_0x4dea68)[_0x628cce(0x1be)]()[_0x628cce(0x1cc)](_0x628cce(0x1d5));}function a172_0x4b74(){const _0x159c5d=['unshift','push','83960ZafWIu','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','some','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','filter','5326656iQdRjc','path','patch','map','toLowerCase','value','cssUrl','20wXzqKy','replace','6978678fdEPxS','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','menu-asset-update','menu\x20asset-update\x20cannot\x20patch\x20','.js','all','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','CSS\x20URL\x20is\x20unreachable:\x20','status','endsWith','has','trim','31338yQNVhC','force','dryRun','3398461TxZfIK','setLogPath','rejected','.css','Start\x20non-interactive\x20menu\x20asset\x20update','10RLynjH','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','Invalid\x20--params:\x20','50071Ylfjlb','jsUrl','186LCHrDC','label','menuIds','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','message','loadScriptMode','--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.','resources','length','field','4260627GPcGUg','join','isArray','extend','--params.','.\x20Allowed\x20values:\x20replace,\x20patch','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','40Lkrhxc','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','cwd','8wvVQMy','info','selection','string','paths','\x22\x20(','fulfilled'];a172_0x4b74=function(){return _0x159c5d;};return a172_0x4b74();}function stripQuery(_0x2bd70e){return _0x2bd70e['split']('?')[0x0]??_0x2bd70e;}function parseUpdateParamsFlag(_0x415d7e){const _0xbbc153=a172_0x132b;if(!_0x415d7e||typeof _0x415d7e!==_0xbbc153(0x1af))return{};try{const _0x5cd142=JSON['parse'](_0x415d7e);if(typeof _0x5cd142!=='object'||_0x5cd142===null||Array[_0xbbc153(0x1e8)](_0x5cd142))return{};return{'jsUrl':typeof _0x5cd142[_0xbbc153(0x1db)]==='string'?_0x5cd142['jsUrl'][_0xbbc153(0x1ce)]():undefined,'cssUrl':typeof _0x5cd142[_0xbbc153(0x1c0)]===_0xbbc153(0x1af)?_0x5cd142[_0xbbc153(0x1c0)][_0xbbc153(0x1ce)]():undefined};}catch{return{};}}
1
+ (function(_0x3c11a9,_0x2a6ecd){const _0x4002c3=a172_0x457d,_0x327a2a=_0x3c11a9();while(!![]){try{const _0x462518=-parseInt(_0x4002c3(0x1c0))/0x1+parseInt(_0x4002c3(0x1b5))/0x2+parseInt(_0x4002c3(0x1c7))/0x3+parseInt(_0x4002c3(0x197))/0x4+parseInt(_0x4002c3(0x1ca))/0x5+-parseInt(_0x4002c3(0x1af))/0x6+-parseInt(_0x4002c3(0x1a0))/0x7*(parseInt(_0x4002c3(0x1b4))/0x8);if(_0x462518===_0x2a6ecd)break;else _0x327a2a['push'](_0x327a2a['shift']());}catch(_0x7f722b){_0x327a2a['push'](_0x327a2a['shift']());}}}(a172_0x3f2f,0xebbf6));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a172_0x457d(_0x5f0fd3,_0x1687c4){_0x5f0fd3=_0x5f0fd3-0x190;const _0x3f2f8a=a172_0x3f2f();let _0x457dbe=_0x3f2f8a[_0x5f0fd3];return _0x457dbe;}import{logger}from'../../../utils/logger.js';function validateParams(_0x39ec9e){const _0x32721f=a172_0x457d,_0x36240d=[];return _0x39ec9e[_0x32721f(0x195)]&&!isValidJsHttpsUrl(_0x39ec9e[_0x32721f(0x195)])&&_0x36240d[_0x32721f(0x19e)]({'field':_0x32721f(0x195),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x39ec9e['cssUrl']&&!isValidCssHttpsUrl(_0x39ec9e[_0x32721f(0x196)])&&_0x36240d[_0x32721f(0x19e)]({'field':_0x32721f(0x196),'message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0x36240d;}export async function runMenuUpdateCore(_0x11fdd3,_0x396ccb,_0x431fdb,_0x830477={}){const _0x45a18d=a172_0x457d,_0x475349=parseUpdateParamsFlag(_0x431fdb),_0x210f58=normalizeMode(_0x830477['mode']);validateSelection(_0x830477[_0x45a18d(0x19a)]);const _0x30620e=[];if(_0x475349[_0x45a18d(0x195)])_0x30620e[_0x45a18d(0x19e)](_0x475349[_0x45a18d(0x195)]);if(_0x475349[_0x45a18d(0x196)])_0x30620e[_0x45a18d(0x19e)](_0x475349[_0x45a18d(0x196)]);const _0x14d7fe=validateParams(_0x475349);if(_0x14d7fe[_0x45a18d(0x199)]>0x0){const _0x388f05=_0x14d7fe[_0x45a18d(0x19f)](_0x54b694=>'--params.'+_0x54b694[_0x45a18d(0x1b3)]+':\x20'+_0x54b694[_0x45a18d(0x1c8)])[_0x45a18d(0x1ae)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x388f05);}if(_0x30620e['length']===0x0)throw new Error(_0x45a18d(0x1bb)+_0x45a18d(0x1bd));logger[_0x45a18d(0x19b)](process[_0x45a18d(0x1ab)]()),logger['info']('menu-asset-update',_0x45a18d(0x1cd),{'appCode':_0x11fdd3,'jsUrl':_0x475349[_0x45a18d(0x195)],'cssUrl':_0x475349[_0x45a18d(0x196)],'mode':_0x210f58,'dryRun':_0x830477[_0x45a18d(0x1a7)]===!![]});if(_0x475349[_0x45a18d(0x195)]){const _0x2fb260=await isUrlReachable(_0x475349[_0x45a18d(0x195)]);if(!_0x2fb260)throw new Error(_0x45a18d(0x1c1)+_0x475349[_0x45a18d(0x195)]);}if(_0x475349[_0x45a18d(0x196)]){const _0x50d0be=await isUrlReachable(_0x475349[_0x45a18d(0x196)]);if(!_0x50d0be)throw new Error(_0x45a18d(0x1a3)+_0x475349[_0x45a18d(0x196)]);}const _0x7c1114=await getOnlineMenuList(_0x11fdd3,_0x396ccb),_0x2500db=_0x7c1114[_0x45a18d(0x1be)](_0x302dc3=>_0x302dc3[_0x45a18d(0x1a8)][_0x45a18d(0x199)]>0x0),_0x39ea2e=selectMenusForUpdate(_0x2500db,_0x830477[_0x45a18d(0x19a)]);if(_0x39ea2e[_0x45a18d(0x199)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x830477['dryRun']===!![]};const _0x166ee7=_0x39ea2e[_0x45a18d(0x19f)](_0x583f1d=>buildMenuUpdateDiff(_0x583f1d,_0x475349,_0x210f58,_0x830477[_0x45a18d(0x1bc)]===!![],_0x830477['loadScriptMode']));if(_0x830477[_0x45a18d(0x1a7)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x166ee7};const _0x33246c=await Promise['allSettled'](_0x39ea2e[_0x45a18d(0x19f)]((_0x286e94,_0x131762)=>updateMenuCdnUrl(_0x11fdd3,_0x396ccb,{'id':_0x286e94['id'],'label':_0x286e94['label'],'path':_0x286e94['path'],'resources':_0x166ee7[_0x131762]['after'][_0x45a18d(0x1a8)],'extend':_0x286e94[_0x45a18d(0x19d)]??null,'loadScriptMode':_0x830477[_0x45a18d(0x191)]}))),_0x5922db=_0x33246c[_0x45a18d(0x1be)](_0x31eb22=>_0x31eb22['status']==='fulfilled')[_0x45a18d(0x19f)](_0xb6333c=>_0xb6333c[_0x45a18d(0x190)]),_0x5424eb=_0x33246c[_0x45a18d(0x1be)](_0x598c7a=>_0x598c7a['status']===_0x45a18d(0x1c2))['length'];return logger[_0x45a18d(0x1cc)]('menu-asset-update','Menu\x20asset\x20update\x20completed',{'count':_0x39ea2e[_0x45a18d(0x199)],'resources':_0x30620e}),{'updated':_0x5922db[_0x45a18d(0x199)],'failed':_0x5424eb,'skipped':![],'menus':_0x5922db};}function validateSelection(_0xb2288f){const _0x55bd90=a172_0x457d;if(!_0xb2288f)throw new Error(_0x55bd90(0x1a1));if(_0xb2288f[_0x55bd90(0x1ba)]&&(_0xb2288f[_0x55bd90(0x192)][_0x55bd90(0x199)]>0x0||_0xb2288f[_0x55bd90(0x1b6)][_0x55bd90(0x199)]>0x0))throw new Error('--all\x20cannot\x20be\x20combined\x20with\x20--menu-ids\x20or\x20--paths.');if(!_0xb2288f[_0x55bd90(0x1ba)]&&_0xb2288f['menuIds'][_0x55bd90(0x199)]===0x0&&_0xb2288f[_0x55bd90(0x1b6)][_0x55bd90(0x199)]===0x0)throw new Error('menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.');}export function selectMenusForUpdate(_0x56b10b,_0x421c59){const _0xcac12f=a172_0x457d;validateSelection(_0x421c59);if(_0x421c59[_0xcac12f(0x1ba)])return _0x56b10b;const _0x4373af=new Set(_0x56b10b['map'](_0x2661b9=>_0x2661b9['id'])),_0x3c6a58=new Set(_0x56b10b[_0xcac12f(0x19f)](_0x1c1d92=>_0x1c1d92[_0xcac12f(0x1bf)])),_0x29d190=_0x421c59['menuIds'][_0xcac12f(0x1be)](_0x294081=>!_0x4373af[_0xcac12f(0x1b7)](_0x294081)),_0x18e62c=_0x421c59[_0xcac12f(0x1b6)]['filter'](_0x1fe980=>!_0x3c6a58[_0xcac12f(0x1b7)](_0x1fe980));if(_0x29d190[_0xcac12f(0x199)]>0x0||_0x18e62c[_0xcac12f(0x199)]>0x0){const _0x3e691c=[..._0x29d190['map'](_0x121de3=>String(_0x121de3)),..._0x18e62c][_0xcac12f(0x1ae)](',\x20');throw new Error(_0xcac12f(0x1c4)+_0x3e691c);}const _0x123a19=new Set(_0x421c59['menuIds']),_0x509d88=new Set(_0x421c59[_0xcac12f(0x1b6)]);return _0x56b10b[_0xcac12f(0x1be)](_0x55ab14=>_0x123a19['has'](_0x55ab14['id'])||_0x509d88['has'](_0x55ab14[_0xcac12f(0x1bf)]));}function normalizeMode(_0x8f4c47){const _0x20af5c=a172_0x457d;if(!_0x8f4c47)return _0x20af5c(0x198);if(_0x8f4c47===_0x20af5c(0x1ac)||_0x8f4c47==='patch')return _0x8f4c47;throw new Error('Invalid\x20--mode:\x20'+_0x8f4c47+_0x20af5c(0x1c6));}function buildMenuUpdateDiff(_0x1ea745,_0x3a9aae,_0x59c4c9,_0x7e17f4,_0x150280){const _0x55d222=a172_0x457d,_0x3eaeef=[..._0x1ea745[_0x55d222(0x1a8)]];_0x59c4c9==='patch'&&assertUnambiguousPatchResources(_0x1ea745,_0x3eaeef,_0x3a9aae);const _0x36aaac=_0x59c4c9===_0x55d222(0x198)?patchResources(_0x3eaeef,_0x3a9aae):replaceResources(_0x3a9aae),_0x59a85c=[],_0x493c48=_0x3eaeef[_0x55d222(0x194)](isJsResource),_0x2a00fc=_0x36aaac[_0x55d222(0x194)](isJsResource);if(_0x493c48&&!_0x2a00fc){const _0xd84536=_0x55d222(0x1a4)+_0x1ea745[_0x55d222(0x1cb)]+'\x22\x20('+_0x1ea745[_0x55d222(0x1bf)]+_0x55d222(0x1a6)+_0x55d222(0x1c3);if(!_0x7e17f4)throw new Error(_0xd84536);_0x59a85c['push'](_0xd84536);}const _0x4c90bf=_0x3eaeef[_0x55d222(0x194)](isCssResource),_0x577fd1=_0x36aaac[_0x55d222(0x194)](isCssResource);_0x4c90bf&&!_0x577fd1&&_0x59a85c[_0x55d222(0x19e)](_0x55d222(0x1a9)+_0x1ea745[_0x55d222(0x1cb)]+_0x55d222(0x1ce)+_0x1ea745[_0x55d222(0x1bf)]+').');const _0x16aa56=typeof _0x1ea745[_0x55d222(0x19d)]?.[_0x55d222(0x191)]==='string'?_0x1ea745[_0x55d222(0x19d)][_0x55d222(0x191)]:null,_0x154707=_0x150280?{'loadScriptMode':_0x16aa56}:{},_0x138f24=_0x150280?{'loadScriptMode':_0x150280}:{};return{'id':_0x1ea745['id'],'label':_0x1ea745[_0x55d222(0x1cb)],'path':_0x1ea745[_0x55d222(0x1bf)],'mode':_0x59c4c9,'before':{'resources':_0x3eaeef,..._0x154707},'after':{'resources':_0x36aaac,..._0x138f24},'warnings':_0x59a85c};}function replaceResources(_0x1742ca){const _0x46a701=a172_0x457d;return[_0x1742ca[_0x46a701(0x195)],_0x1742ca[_0x46a701(0x196)]]['filter'](_0x397eda=>!!_0x397eda);}function a172_0x3f2f(){const _0x56d244=['1722441bRHJaS','message','.css','294810WwyNYw','label','info','Start\x20non-interactive\x20menu\x20asset\x20update','\x22\x20(','value','loadScriptMode','menuIds','with\x20a\x20single\x20cssUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','some','jsUrl','cssUrl','6224380SDJFep','patch','length','selection','setLogPath','string','extend','push','map','4074NpUDsc','menu\x20asset-update\x20requires\x20an\x20explicit\x20target:\x20pass\x20--all,\x20--menu-ids,\x20or\x20--paths.','trim','CSS\x20URL\x20is\x20unreachable:\x20','menu\x20asset-update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','menu\x20asset-update\x20cannot\x20patch\x20',').\x20','dryRun','resources','menu\x20asset-update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','object','cwd','replace','split','join','7192788VSugbO','unshift','with\x20a\x20single\x20jsUrl.\x20Review\x20a\x20dry-run\x20and\x20use\x20--mode\x20replace\x20only\x20when\x20intentionally\x20rewriting\x20the\x20complete\x20resource\x20set.','isArray','field','14392VoiJXs','3664390xTOXcg','paths','has','endsWith','toLowerCase','all','Invalid\x20--params:\x20menu\x20asset-update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','force','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','filter','path','809961mKCvfH','JS\x20URL\x20is\x20unreachable:\x20','rejected','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','menu\x20asset-update\x20selectors\x20did\x20not\x20match\x20resource-bearing\x20menus:\x20','parse','.\x20Allowed\x20values:\x20replace,\x20patch'];a172_0x3f2f=function(){return _0x56d244;};return a172_0x3f2f();}function assertUnambiguousPatchResources(_0x50f054,_0x7f0e37,_0x2382e9){const _0x2de6d0=a172_0x457d,_0x5ff8c7=_0x7f0e37['filter'](isJsResource)[_0x2de6d0(0x199)];if(_0x2382e9[_0x2de6d0(0x195)]&&_0x5ff8c7>0x1)throw new Error('menu\x20asset-update\x20cannot\x20patch\x20'+_0x5ff8c7+'\x20existing\x20JS\x20resources\x20for\x20\x22'+_0x50f054[_0x2de6d0(0x1cb)]+_0x2de6d0(0x1ce)+_0x50f054[_0x2de6d0(0x1bf)]+')\x20'+_0x2de6d0(0x1b1));const _0x2cbf97=_0x7f0e37[_0x2de6d0(0x1be)](isCssResource)['length'];if(_0x2382e9[_0x2de6d0(0x196)]&&_0x2cbf97>0x1)throw new Error(_0x2de6d0(0x1a5)+_0x2cbf97+'\x20existing\x20CSS\x20resources\x20for\x20\x22'+_0x50f054[_0x2de6d0(0x1cb)]+_0x2de6d0(0x1ce)+_0x50f054['path']+')\x20'+_0x2de6d0(0x193));}function patchResources(_0x755702,_0x3915f5){const _0x4c670c=a172_0x457d;let _0x3626f4=![],_0x3eaf4e=![];const _0x432b03=[];for(const _0x330a64 of _0x755702){if(isJsResource(_0x330a64)){if(_0x3915f5['jsUrl']&&!_0x3626f4)_0x432b03[_0x4c670c(0x19e)](_0x3915f5[_0x4c670c(0x195)]),_0x3626f4=!![];else!_0x3915f5['jsUrl']&&_0x432b03[_0x4c670c(0x19e)](_0x330a64);continue;}if(isCssResource(_0x330a64)){if(_0x3915f5[_0x4c670c(0x196)]&&!_0x3eaf4e)_0x432b03[_0x4c670c(0x19e)](_0x3915f5['cssUrl']),_0x3eaf4e=!![];else!_0x3915f5[_0x4c670c(0x196)]&&_0x432b03[_0x4c670c(0x19e)](_0x330a64);continue;}_0x432b03['push'](_0x330a64);}return _0x3915f5[_0x4c670c(0x195)]&&!_0x3626f4&&_0x432b03[_0x4c670c(0x1b0)](_0x3915f5[_0x4c670c(0x195)]),_0x3915f5['cssUrl']&&!_0x3eaf4e&&_0x432b03[_0x4c670c(0x19e)](_0x3915f5[_0x4c670c(0x196)]),_0x432b03;}function isJsResource(_0x4a733f){const _0x4a4c4e=a172_0x457d;return stripQuery(_0x4a733f)['toLowerCase']()[_0x4a4c4e(0x1b8)]('.js');}function isCssResource(_0x5ab4c9){const _0x10c039=a172_0x457d;return stripQuery(_0x5ab4c9)[_0x10c039(0x1b9)]()[_0x10c039(0x1b8)](_0x10c039(0x1c9));}function stripQuery(_0x38a5ed){const _0xa0d2d3=a172_0x457d;return _0x38a5ed[_0xa0d2d3(0x1ad)]('?')[0x0]??_0x38a5ed;}function parseUpdateParamsFlag(_0x2fe81f){const _0x19b1b3=a172_0x457d;if(!_0x2fe81f||typeof _0x2fe81f!=='string')return{};try{const _0x2e9e29=JSON[_0x19b1b3(0x1c5)](_0x2fe81f);if(typeof _0x2e9e29!==_0x19b1b3(0x1aa)||_0x2e9e29===null||Array[_0x19b1b3(0x1b2)](_0x2e9e29))return{};return{'jsUrl':typeof _0x2e9e29[_0x19b1b3(0x195)]===_0x19b1b3(0x19c)?_0x2e9e29['jsUrl'][_0x19b1b3(0x1a2)]():undefined,'cssUrl':typeof _0x2e9e29[_0x19b1b3(0x196)]===_0x19b1b3(0x19c)?_0x2e9e29['cssUrl'][_0x19b1b3(0x1a2)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x345b03,_0x251965){const _0x4556cf=a173_0x18de,_0x1f5432=_0x345b03();while(!![]){try{const _0x258c2f=-parseInt(_0x4556cf(0xad))/0x1+parseInt(_0x4556cf(0xa8))/0x2+parseInt(_0x4556cf(0xb7))/0x3*(-parseInt(_0x4556cf(0xb3))/0x4)+parseInt(_0x4556cf(0xb6))/0x5*(-parseInt(_0x4556cf(0xb4))/0x6)+parseInt(_0x4556cf(0xb2))/0x7*(-parseInt(_0x4556cf(0xa6))/0x8)+parseInt(_0x4556cf(0xaf))/0x9*(-parseInt(_0x4556cf(0xb0))/0xa)+-parseInt(_0x4556cf(0xb5))/0xb*(-parseInt(_0x4556cf(0xaa))/0xc);if(_0x258c2f===_0x251965)break;else _0x1f5432['push'](_0x1f5432['shift']());}catch(_0x408c78){_0x1f5432['push'](_0x1f5432['shift']());}}}(a173_0x52db,0x701c9));export function isValidJsHttpsUrl(_0x28b5e1){const _0x114b5f=a173_0x18de;return/^https:\/\/.+\.js(\?.*)?$/['test'](_0x28b5e1[_0x114b5f(0xae)]());}export function isValidCssHttpsUrl(_0xff7e06){return/^https:\/\/.+\.css(\?.*)?$/['test'](_0xff7e06['trim']());}function a173_0x52db(){const _0x7e5d57=['1180644QEEvqO','cancel','389220KAxXga','HEAD','bytes=0-0','355274jvRVcO','trim','5261958YxuNLV','10DSKnQF','body','31584ygVypB','164264LdxcGz','4167114Fiyrxt','770okjzib','5xOxRgW','30JlCvdF','632CSdKUx','GET'];a173_0x52db=function(){return _0x7e5d57;};return a173_0x52db();}function a173_0x18de(_0x344d33,_0x29619b){_0x344d33=_0x344d33-0xa6;const _0x52dbd2=a173_0x52db();let _0x18dec4=_0x52dbd2[_0x344d33];return _0x18dec4;}export async function isUrlReachable(_0x419992){const _0x4ef581=a173_0x18de;try{const _0x3865fa=await fetch(_0x419992,{'method':_0x4ef581(0xab)});if(_0x3865fa['ok'])return!![];}catch{}try{const _0x31a6ed=await fetch(_0x419992,{'method':_0x4ef581(0xa7),'headers':{'Range':_0x4ef581(0xac)}}),_0x3ba3aa=_0x31a6ed['ok'];try{await _0x31a6ed[_0x4ef581(0xb1)]?.[_0x4ef581(0xa9)]();}catch{}return _0x3ba3aa;}catch{return![];}}
1
+ function a173_0x35f5(_0x54d87a,_0x1f57c1){_0x54d87a=_0x54d87a-0x16d;const _0x2a007c=a173_0x2a00();let _0x35f5d5=_0x2a007c[_0x54d87a];return _0x35f5d5;}(function(_0x266157,_0x4bab8c){const _0x498ff3=a173_0x35f5,_0x1838f0=_0x266157();while(!![]){try{const _0x2cc16f=-parseInt(_0x498ff3(0x17c))/0x1+-parseInt(_0x498ff3(0x16d))/0x2*(-parseInt(_0x498ff3(0x16f))/0x3)+-parseInt(_0x498ff3(0x178))/0x4*(-parseInt(_0x498ff3(0x177))/0x5)+parseInt(_0x498ff3(0x170))/0x6*(parseInt(_0x498ff3(0x17b))/0x7)+parseInt(_0x498ff3(0x175))/0x8+parseInt(_0x498ff3(0x171))/0x9*(-parseInt(_0x498ff3(0x176))/0xa)+-parseInt(_0x498ff3(0x172))/0xb*(parseInt(_0x498ff3(0x179))/0xc);if(_0x2cc16f===_0x4bab8c)break;else _0x1838f0['push'](_0x1838f0['shift']());}catch(_0x6b5837){_0x1838f0['push'](_0x1838f0['shift']());}}}(a173_0x2a00,0x759b0));export function isValidJsHttpsUrl(_0x20f339){const _0x43466b=a173_0x35f5;return/^https:\/\/.+\.js(\?.*)?$/[_0x43466b(0x17a)](_0x20f339[_0x43466b(0x17d)]());}export function isValidCssHttpsUrl(_0x4a2acd){const _0x32231c=a173_0x35f5;return/^https:\/\/.+\.css(\?.*)?$/[_0x32231c(0x17a)](_0x4a2acd['trim']());}function a173_0x2a00(){const _0x13fa6d=['body','6327456zjpxSg','9473690HNnfgY','420KPnIXJ','30036rCyKJQ','108ZJcqtI','test','7fyZxSR','756426KZAHQr','trim','2pJMdqB','bytes=0-0','2714469zQqTWP','4738062ggzxGG','9SNuLTg','1137499dzlgTS','GET'];a173_0x2a00=function(){return _0x13fa6d;};return a173_0x2a00();}export async function isUrlReachable(_0x36ff66){const _0x4b100b=a173_0x35f5;try{const _0x509e8f=await fetch(_0x36ff66,{'method':'HEAD'});if(_0x509e8f['ok'])return!![];}catch{}try{const _0x1a6545=await fetch(_0x36ff66,{'method':_0x4b100b(0x173),'headers':{'Range':_0x4b100b(0x16e)}}),_0x3a9e89=_0x1a6545['ok'];try{await _0x1a6545[_0x4b100b(0x174)]?.['cancel']();}catch{}return _0x3a9e89;}catch{return![];}}
@@ -1 +1 @@
1
- const a174_0x244357=a174_0x166b;(function(_0x169d10,_0x42feb2){const _0xa9ef94=a174_0x166b,_0x2ba1c1=_0x169d10();while(!![]){try{const _0x2a07df=-parseInt(_0xa9ef94(0xb5))/0x1*(-parseInt(_0xa9ef94(0x8e))/0x2)+parseInt(_0xa9ef94(0xbb))/0x3+-parseInt(_0xa9ef94(0xb1))/0x4*(-parseInt(_0xa9ef94(0x94))/0x5)+-parseInt(_0xa9ef94(0xbc))/0x6+-parseInt(_0xa9ef94(0xad))/0x7+-parseInt(_0xa9ef94(0xa3))/0x8*(-parseInt(_0xa9ef94(0xac))/0x9)+parseInt(_0xa9ef94(0x7d))/0xa*(-parseInt(_0xa9ef94(0xb9))/0xb);if(_0x2a07df===_0x42feb2)break;else _0x2ba1c1['push'](_0x2ba1c1['shift']());}catch(_0x2422c6){_0x2ba1c1['push'](_0x2ba1c1['shift']());}}}(a174_0x5434,0x34024));import a174_0x18a395 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a174_0x5434(){const _0x5b03dd=['Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','474135izXwhr','Failed\x20to\x20fetch\x20online\x20menu\x20list','\x20local\x20microfrontend\x20menu(s).','✓\x20Menu\x20sync\x20completed:\x20','yes','params','string','\x20\x20Cancelled.','Creating\x20','flag','split','\x20menu(s)','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','gray','skipped','1552PyLiIa','Online\x20menu\x20list\x20fetched','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','Fetching\x20online\x20menu\x20list...','appCode','onlinePaths','\x20page(s)','onlineMenuList','paths','1521tNOLPK','2726703DpawWa','selectedAppName','length','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','4ehNvFr','/smartapi/menu/create','\x20menu(s)\x20with\x20JS:\x20','Menu\x20creation\x20failed','29ZnFiZA','menu','trim','Menu\x20sync\x20skipped','93192gEfSYc','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','518928sbNmqu','335010xwfhxN','message','Created\x20','failed','\x20menu(s)...','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','sync','str','\x20and\x20CSS:\x20','appcode','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','70kQVWwV','Would\x20create\x20','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','localPages','Pre-fill\x20JS/CSS\x20URLs.\x20','cssUrl','Sync\x20local\x20pages\x20as\x20platform\x20menus','jsUrl','boolean','validation','created','map','rawFlags','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','28766sJWfJa','yellow','cookie','\x20failed.','Menu\x20sync\x20completed:\x20'];a174_0x5434=function(){return _0x5b03dd;};return a174_0x5434();}function a174_0x166b(_0xc72fb6,_0x55c894){_0xc72fb6=_0xc72fb6-0x7b;const _0x543428=a174_0x5434();let _0x166b39=_0x543428[_0xc72fb6];return _0x166b39;}import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a174_0x244357(0xb6),'command':a174_0x244357(0xc2),'description':a174_0x244357(0x86),'risk':'write','flags':[{'name':a174_0x244357(0x99),'type':a174_0x244357(0x9a),'description':a174_0x244357(0x84)+a174_0x244357(0xb0)},{'name':a174_0x244357(0xab),'type':'string','description':a174_0x244357(0x93)},{'name':a174_0x244357(0x98),'type':a174_0x244357(0x88),'description':a174_0x244357(0x80)}],async 'dryRun'(_0x98fcd4){const _0x4a5496=a174_0x244357;ensureRunnableContext(_0x98fcd4['rawFlags'],_0x98fcd4[_0x4a5496(0xae)]);const _0x13879a=await runMenuSyncCore(_0x98fcd4['appCode'],_0x98fcd4[_0x4a5496(0x90)],parsePaths(_0x98fcd4[_0x4a5496(0xc3)]('paths')),_0x98fcd4[_0x4a5496(0xc3)](_0x4a5496(0x99)),{'dryRun':!![]});return{'method':'POST','url':_0x4a5496(0xb2),'body':_0x13879a,'description':_0x13879a[_0x4a5496(0xa2)]?_0x4a5496(0xa0):_0x4a5496(0x7e)+_0x13879a['targetPages'][_0x4a5496(0xaf)]+_0x4a5496(0x96)};},async 'execute'(_0x4a0377){const _0x3ae2b5=a174_0x244357;ensureRunnableContext(_0x4a0377[_0x3ae2b5(0x8c)],_0x4a0377[_0x3ae2b5(0xae)]);const _0x114476=_0x4a0377[_0x3ae2b5(0x9d)](_0x3ae2b5(0x98)),_0x483c77=_0x4a0377[_0x3ae2b5(0xc3)]('params'),_0x5aa5f5=parsePaths(_0x4a0377[_0x3ae2b5(0xc3)]('paths')),_0x218673=parseMenuSyncParams(_0x483c77);if(_0x114476){const _0x35eb28=await runMenuSyncCore(_0x4a0377['appCode'],_0x4a0377[_0x3ae2b5(0x90)],_0x5aa5f5,_0x483c77);if(_0x35eb28[_0x3ae2b5(0xa2)]){const _0x10089d=getLocalPages();_0x10089d[_0x3ae2b5(0xaf)]===0x0?writeCliSideChannelLine(_0x3ae2b5(0x7f)):writeCliSideChannelLine(_0x3ae2b5(0x8d));}else writeCliSideChannelLine(_0x3ae2b5(0x97)+_0x35eb28[_0x3ae2b5(0x8a)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x35eb28,'message':_0x35eb28[_0x3ae2b5(0xa2)]?_0x3ae2b5(0xb8):_0x3ae2b5(0x92)+_0x35eb28[_0x3ae2b5(0x8a)]+'\x20created.'};}if(_0x5aa5f5[_0x3ae2b5(0xaf)]>0x0)throw CliErrors['validation'](_0x3ae2b5(0x82),_0x3ae2b5(0x7c));if(!isInteractive()&&_0x483c77)throw CliErrors[_0x3ae2b5(0x89)](_0x3ae2b5(0x81),_0x3ae2b5(0x7c));requireInteractive();const _0x4c6881=startSpinner(_0x3ae2b5(0xa6));let _0x323966,_0x4ad914,_0x4f25ad;try{const _0x2ec4d1=await fetchMenuData(_0x4a0377['appCode'],_0x4a0377[_0x3ae2b5(0x90)]);_0x323966=_0x2ec4d1[_0x3ae2b5(0x83)],_0x4ad914=_0x2ec4d1[_0x3ae2b5(0xa8)],_0x4f25ad=_0x2ec4d1[_0x3ae2b5(0xaa)],stopSpinner(_0x4c6881,_0x3ae2b5(0xa4),!![]);}catch(_0x3d21c0){stopSpinner(_0x4c6881,_0x3ae2b5(0x95),![]);throw CliErrors[_0x3ae2b5(0x89)](_0x3d21c0 instanceof Error?_0x3d21c0[_0x3ae2b5(0xbd)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}if(_0x323966['length']===0x0)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0x8f)](_0x3ae2b5(0xba))),{'ok':!![]};const _0xc8a150=buildCompareRows(_0x323966,_0x4ad914);writeCliSideChannelLine(renderCompareTable(_0xc8a150)),writeCliSideChannelLine('');const _0x53cf76=await selectPages(_0x323966,_0x4ad914);writeCliSideChannelLine(''),writeCliSideChannelLine(a174_0x18a395['cyan']('\x20\x20✓\x20Selected:\x20'+_0x53cf76[_0x3ae2b5(0xaf)]+_0x3ae2b5(0xa9)));const _0x541182=_0x218673[_0x3ae2b5(0x87)]&&_0x218673[_0x3ae2b5(0x85)];if(!_0x541182){writeCliSideChannelLine(renderSyncSummary(_0x53cf76,_0x4ad914['size']>0x0));const _0x1e6784=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x1e6784)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0xa1)](_0x3ae2b5(0x9b))),{'ok':!![]};}let _0x10e9aa=_0x218673['jsUrl'],_0x2bfb28=_0x218673[_0x3ae2b5(0x85)];!_0x10e9aa&&(_0x10e9aa=await askJsUrl());!_0x2bfb28&&(_0x2bfb28=await askCssUrl());const _0x1b18a4=await askConfirm('\x20\x20Create\x20'+_0x53cf76['length']+_0x3ae2b5(0xb3)+_0x10e9aa+_0x3ae2b5(0xc4)+_0x2bfb28+'?');if(!_0x1b18a4)return writeCliSideChannelLine(a174_0x18a395[_0x3ae2b5(0xa1)](_0x3ae2b5(0x9b))),{'ok':!![]};const _0x32a444=[_0x10e9aa,_0x2bfb28],_0x1b92a7=startSpinner(_0x3ae2b5(0x9c)+_0x53cf76[_0x3ae2b5(0xaf)]+_0x3ae2b5(0xc0));try{const _0x2f27e3=await doCreateMenus(_0x4a0377[_0x3ae2b5(0xa7)],_0x4a0377['cookie'],_0x53cf76,_0x32a444);return stopSpinner(_0x1b92a7,_0x3ae2b5(0xbe)+_0x2f27e3[_0x3ae2b5(0x8a)]+_0x3ae2b5(0x9f),!![]),{'ok':!![],'data':_0x2f27e3,'message':'Menu\x20sync\x20completed:\x20'+_0x2f27e3['created']+'\x20created,\x20'+_0x2f27e3[_0x3ae2b5(0xbf)]+_0x3ae2b5(0x91)};}catch(_0x489600){stopSpinner(_0x1b92a7,_0x3ae2b5(0xb4),![]);throw CliErrors[_0x3ae2b5(0x89)](_0x489600 instanceof Error?_0x489600[_0x3ae2b5(0xbd)]:_0x3ae2b5(0xb4));}}};function ensureRunnableContext(_0x3928e0,_0xf2a428){const _0x23e612=a174_0x244357,_0x31aa7e=_0x3928e0['appcode']?String(_0x3928e0[_0x23e612(0x7b)])[_0x23e612(0xb7)]():'';if(!isInProject()&&!_0xf2a428&&!_0x31aa7e)throw CliErrors[_0x23e612(0x89)](_0x23e612(0xc1)+_0x23e612(0xa5));}function parsePaths(_0x131641){const _0x4e9216=a174_0x244357;return[...new Set(_0x131641[_0x4e9216(0x9e)](',')[_0x4e9216(0x8b)](_0x37cd15=>_0x37cd15[_0x4e9216(0xb7)]())['filter'](Boolean))];}
1
+ const a174_0x371b39=a174_0x4115;(function(_0x584811,_0x780c8){const _0x200e44=a174_0x4115,_0x83be31=_0x584811();while(!![]){try{const _0x27c7fa=parseInt(_0x200e44(0x170))/0x1*(parseInt(_0x200e44(0x162))/0x2)+parseInt(_0x200e44(0x133))/0x3*(parseInt(_0x200e44(0x144))/0x4)+-parseInt(_0x200e44(0x171))/0x5+parseInt(_0x200e44(0x136))/0x6*(-parseInt(_0x200e44(0x16b))/0x7)+parseInt(_0x200e44(0x14f))/0x8+-parseInt(_0x200e44(0x146))/0x9*(parseInt(_0x200e44(0x172))/0xa)+parseInt(_0x200e44(0x128))/0xb;if(_0x27c7fa===_0x780c8)break;else _0x83be31['push'](_0x83be31['shift']());}catch(_0x224c52){_0x83be31['push'](_0x83be31['shift']());}}}(a174_0x4070,0x32853));import a174_0x534127 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';function a174_0x4115(_0x5dee9f,_0x47f308){_0x5dee9f=_0x5dee9f-0x126;const _0x4070f1=a174_0x4070();let _0x41156b=_0x4070f1[_0x5dee9f];return _0x41156b;}export const menuSync={'service':a174_0x371b39(0x156),'command':a174_0x371b39(0x13b),'description':a174_0x371b39(0x14e),'risk':a174_0x371b39(0x140),'flags':[{'name':a174_0x371b39(0x12d),'type':a174_0x371b39(0x142),'description':a174_0x371b39(0x151)+a174_0x371b39(0x15f)},{'name':'paths','type':a174_0x371b39(0x142),'description':a174_0x371b39(0x14d)},{'name':a174_0x371b39(0x130),'type':a174_0x371b39(0x14c),'description':a174_0x371b39(0x165)}],async 'dryRun'(_0x16aa55){const _0x1f7aa8=a174_0x371b39;ensureRunnableContext(_0x16aa55[_0x1f7aa8(0x13c)],_0x16aa55[_0x1f7aa8(0x12a)]);const _0x19f102=await runMenuSyncCore(_0x16aa55[_0x1f7aa8(0x159)],_0x16aa55[_0x1f7aa8(0x15c)],parsePaths(_0x16aa55['str']('paths')),_0x16aa55[_0x1f7aa8(0x152)](_0x1f7aa8(0x12d)),{'dryRun':!![]});return{'method':_0x1f7aa8(0x15a),'url':_0x1f7aa8(0x148),'body':_0x19f102,'description':_0x19f102['skipped']?_0x1f7aa8(0x139):_0x1f7aa8(0x155)+_0x19f102[_0x1f7aa8(0x16c)][_0x1f7aa8(0x126)]+_0x1f7aa8(0x168)};},async 'execute'(_0x21b472){const _0x2cd153=a174_0x371b39;ensureRunnableContext(_0x21b472[_0x2cd153(0x13c)],_0x21b472['selectedAppName']);const _0x31ef08=_0x21b472[_0x2cd153(0x135)](_0x2cd153(0x130)),_0x3c8cdf=_0x21b472['str'](_0x2cd153(0x12d)),_0x45d223=parsePaths(_0x21b472[_0x2cd153(0x152)]('paths')),_0x5a6085=parseMenuSyncParams(_0x3c8cdf);if(_0x31ef08){const _0x1d8205=await runMenuSyncCore(_0x21b472[_0x2cd153(0x159)],_0x21b472['cookie'],_0x45d223,_0x3c8cdf);if(_0x1d8205[_0x2cd153(0x147)]){const _0x300be9=getLocalPages();_0x300be9[_0x2cd153(0x126)]===0x0?writeCliSideChannelLine(_0x2cd153(0x164)):writeCliSideChannelLine(_0x2cd153(0x163));}else writeCliSideChannelLine('✓\x20Menu\x20sync\x20completed:\x20'+_0x1d8205[_0x2cd153(0x13f)]+_0x2cd153(0x131));return{'ok':!![],'data':_0x1d8205,'message':_0x1d8205[_0x2cd153(0x147)]?_0x2cd153(0x12e):_0x2cd153(0x132)+_0x1d8205['created']+'\x20created.'};}if(_0x45d223[_0x2cd153(0x126)]>0x0)throw CliErrors[_0x2cd153(0x16e)](_0x2cd153(0x138),'Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.');if(!isInteractive()&&_0x3c8cdf)throw CliErrors[_0x2cd153(0x16e)](_0x2cd153(0x160),_0x2cd153(0x16f));requireInteractive();const _0x5cce96=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x2e1e54,_0x4b2827,_0x3874e3;try{const _0x27490f=await fetchMenuData(_0x21b472[_0x2cd153(0x159)],_0x21b472['cookie']);_0x2e1e54=_0x27490f[_0x2cd153(0x14b)],_0x4b2827=_0x27490f[_0x2cd153(0x141)],_0x3874e3=_0x27490f[_0x2cd153(0x173)],stopSpinner(_0x5cce96,_0x2cd153(0x16d),!![]);}catch(_0x4b1eb1){stopSpinner(_0x5cce96,_0x2cd153(0x13e),![]);throw CliErrors[_0x2cd153(0x16e)](_0x4b1eb1 instanceof Error?_0x4b1eb1[_0x2cd153(0x12f)]:_0x2cd153(0x13e));}if(_0x2e1e54['length']===0x0)return writeCliSideChannelLine(a174_0x534127[_0x2cd153(0x150)](_0x2cd153(0x167))),{'ok':!![]};const _0x43400e=buildCompareRows(_0x2e1e54,_0x4b2827);writeCliSideChannelLine(renderCompareTable(_0x43400e)),writeCliSideChannelLine('');const _0x5cb2c9=await selectPages(_0x2e1e54,_0x4b2827);writeCliSideChannelLine(''),writeCliSideChannelLine(a174_0x534127[_0x2cd153(0x129)](_0x2cd153(0x145)+_0x5cb2c9['length']+'\x20page(s)'));const _0x5c2ed8=_0x5a6085[_0x2cd153(0x166)]&&_0x5a6085[_0x2cd153(0x14a)];if(!_0x5c2ed8){writeCliSideChannelLine(renderSyncSummary(_0x5cb2c9,_0x4b2827[_0x2cd153(0x153)]>0x0));const _0x386b56=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x386b56)return writeCliSideChannelLine(a174_0x534127['gray'](_0x2cd153(0x12c))),{'ok':!![]};}let _0x4d429c=_0x5a6085[_0x2cd153(0x166)],_0x5ea3c2=_0x5a6085[_0x2cd153(0x14a)];!_0x4d429c&&(_0x4d429c=await askJsUrl());!_0x5ea3c2&&(_0x5ea3c2=await askCssUrl());const _0x4d43c8=await askConfirm(_0x2cd153(0x149)+_0x5cb2c9['length']+_0x2cd153(0x169)+_0x4d429c+_0x2cd153(0x15b)+_0x5ea3c2+'?');if(!_0x4d43c8)return writeCliSideChannelLine(a174_0x534127[_0x2cd153(0x13d)](_0x2cd153(0x12c))),{'ok':!![]};const _0x24c9c9=[_0x4d429c,_0x5ea3c2],_0x31c582=startSpinner('Creating\x20'+_0x5cb2c9['length']+_0x2cd153(0x157));try{const _0x36e3cd=await doCreateMenus(_0x21b472[_0x2cd153(0x159)],_0x21b472[_0x2cd153(0x15c)],_0x5cb2c9,_0x24c9c9);return stopSpinner(_0x31c582,_0x2cd153(0x137)+_0x36e3cd[_0x2cd153(0x13f)]+_0x2cd153(0x15d),!![]),{'ok':!![],'data':_0x36e3cd,'message':_0x2cd153(0x132)+_0x36e3cd[_0x2cd153(0x13f)]+_0x2cd153(0x143)+_0x36e3cd[_0x2cd153(0x161)]+_0x2cd153(0x127)};}catch(_0x130805){stopSpinner(_0x31c582,_0x2cd153(0x134),![]);throw CliErrors['validation'](_0x130805 instanceof Error?_0x130805['message']:_0x2cd153(0x134));}}};function ensureRunnableContext(_0x1c5624,_0x2b1453){const _0x50e1ab=a174_0x371b39,_0x51a0b0=_0x1c5624['appcode']?String(_0x1c5624[_0x50e1ab(0x15e)])['trim']():'';if(!isInProject()&&!_0x2b1453&&!_0x51a0b0)throw CliErrors[_0x50e1ab(0x16e)](_0x50e1ab(0x154)+_0x50e1ab(0x158));}function parsePaths(_0x3595bc){const _0x89b47a=a174_0x371b39;return[...new Set(_0x3595bc[_0x89b47a(0x12b)](',')[_0x89b47a(0x16a)](_0x321c15=>_0x321c15['trim']())[_0x89b47a(0x13a)](Boolean))];}function a174_0x4070(){const _0x43c728=['\x20menu(s)','appcode','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','Non-interactive\x20menu\x20sync\x20requires\x20--yes.','failed','18608SPizxX','✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages','jsUrl','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','\x20local\x20microfrontend\x20menu(s).','\x20menu(s)\x20with\x20JS:\x20','map','588XkXuBK','targetPages','Online\x20menu\x20list\x20fetched','validation','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','23DjEqXT','1068240AydNpt','661590hJNVFV','onlineMenuList','length','\x20failed.','2386241ujjkuC','cyan','selectedAppName','split','\x20\x20Cancelled.','params','Menu\x20sync\x20skipped','message','yes','\x20menu(s)\x20created','Menu\x20sync\x20completed:\x20','142737DjcJbm','Menu\x20creation\x20failed','flag','1326JEdNLr','Created\x20','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','filter','sync','rawFlags','gray','Failed\x20to\x20fetch\x20online\x20menu\x20list','created','write','onlinePaths','string','\x20created,\x20','4AgllTv','\x20\x20✓\x20Selected:\x20','9BqmUib','skipped','/smartapi/menu/create','\x20\x20Create\x20','cssUrl','localPages','boolean','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','Sync\x20local\x20pages\x20as\x20platform\x20menus','214400rZMTNY','yellow','Pre-fill\x20JS/CSS\x20URLs.\x20','str','size','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','Would\x20create\x20','menu','\x20menu(s)...','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','appCode','POST','\x20and\x20CSS:\x20','cookie'];a174_0x4070=function(){return _0x43c728;};return a174_0x4070();}
@@ -1 +1 @@
1
- const a175_0x533931=a175_0x2079;(function(_0x4ca04e,_0x3dce8c){const _0x2bc3e5=a175_0x2079,_0x5485cf=_0x4ca04e();while(!![]){try{const _0x509703=-parseInt(_0x2bc3e5(0x187))/0x1*(-parseInt(_0x2bc3e5(0x1f3))/0x2)+parseInt(_0x2bc3e5(0x1d9))/0x3+parseInt(_0x2bc3e5(0x1d4))/0x4+parseInt(_0x2bc3e5(0x1fd))/0x5*(-parseInt(_0x2bc3e5(0x1f4))/0x6)+parseInt(_0x2bc3e5(0x19d))/0x7+-parseInt(_0x2bc3e5(0x1b6))/0x8*(-parseInt(_0x2bc3e5(0x1ac))/0x9)+-parseInt(_0x2bc3e5(0x1c5))/0xa;if(_0x509703===_0x3dce8c)break;else _0x5485cf['push'](_0x5485cf['shift']());}catch(_0x1267ac){_0x5485cf['push'](_0x5485cf['shift']());}}}(a175_0x5a72,0x6e7f1));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';function a175_0x5a72(){const _0x45af0e=['resourcesValid','Menu\x20path\x20selector\x20not\x20found:\x20','label','flagMissing','path','Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.','verification','resources','url','before','Menu\x20id\x20selector(s)\x20not\x20found:\x20','2143834tblEoK','paths','plan','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','requestedVisible','\x20unchanged\x20menu(s).','code','map','isSafeInteger','\x20menu(s);\x20skip\x20','failed','expectVisible','boolean','Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','40842WbLjsm','visibility-update','str','\x20visibility\x20update\x20could\x20not\x20be\x20verified','POST','childrenIds','menu_selector_not_found','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','\x20failed.','type','1368iLJkQg','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','recovered','depth','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','validation','Selected\x20','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','beforeById','pageType','childrenCount','false','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','Response\x20was\x20lost\x20for\x20menu\x20','expectedCount','22046920eVllRV','menu','set','menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.','true','\x20updated,\x20','stringify','string','expected-count','One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','datasetId','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','pageId','join','menus','1567288SvIuzx','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','trim','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20','Response\x20was\x20lost\x20and\x20menu\x20','1049037CrflpE','cookie','Menu\x20','datasetCode','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','appCode','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','Final\x20menu\x20visibility\x20readback\x20failed.','visible','\x20menu(s),\x20expected\x20','updated','\x20changed\x20unexpectedly.','filter','\x20must\x20be\x20true\x20or\x20false.','Would\x20update\x20visibility\x20for\x20','update-recovery','message','values','update\x20menu\x20visibility','push','Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','targets','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','rabetbase\x20menu\x20list\x20--format\x20compress','menu_permission_denied','menu_expected_count_mismatch','2NkPqHK','6xLfCmH','modelType','menu_state_drift','length','/smartapi/menu/update','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','has','sort','byId','91625TfJanT','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','isArray','split','851849gChaua','parentId','menu-ids','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','Requested\x20menu\x20visibility','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','menu_verification_failed','expect-visible','get','num','plannedActions'];a175_0x5a72=function(){return _0x45af0e;};return a175_0x5a72();}import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';function a175_0x2079(_0x399968,_0x3d10bb){_0x399968=_0x399968-0x187;const _0x5a72f3=a175_0x5a72();let _0x2079b0=_0x5a72f3[_0x399968];return _0x2079b0;}const BACKEND=[{'method':'POST','path':a175_0x533931(0x1f8)}];export const menuVisibilityUpdate={'service':a175_0x533931(0x1c6),'command':a175_0x533931(0x1ad),'description':a175_0x533931(0x1aa),'risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a175_0x533931(0x189),'type':a175_0x533931(0x1cc),'description':a175_0x533931(0x1dd)},{'name':a175_0x533931(0x19e),'type':a175_0x533931(0x1cc),'description':a175_0x533931(0x1df)},{'name':'visible','type':a175_0x533931(0x1a9),'required':!![],'description':a175_0x533931(0x18b)},{'name':a175_0x533931(0x18e),'type':a175_0x533931(0x1a9),'description':a175_0x533931(0x1d0)},{'name':a175_0x533931(0x1cd),'type':'number','description':'Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches'},APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2bb526){parseInput(_0x2bb526),requireExplicitYes(_0x2bb526);},async 'dryRun'(_0x1db8b7){const _0x525e0e=a175_0x533931,_0x4da932=await buildPlan(_0x1db8b7,!![]),_0x1face8=_0x4da932[_0x525e0e(0x19f)][_0x525e0e(0x191)]?.['length']??0x0,_0x13d55c=_0x4da932['plan'][_0x525e0e(0x1ee)][_0x525e0e(0x1f7)]-_0x1face8;return menuDryRunResult(_0x4da932[_0x525e0e(0x19f)],{'method':_0x525e0e(0x1b0),'url':_0x525e0e(0x1f8),'body':{'updates':_0x4da932[_0x525e0e(0x19f)]['plannedActions']?.[_0x525e0e(0x1a4)](_0x5ea5c6=>_0x5ea5c6['body'])??[]},'description':_0x525e0e(0x1e7)+_0x1face8+_0x525e0e(0x1a6)+_0x13d55c+_0x525e0e(0x1a2)});},async 'execute'(_0x4075c6){const _0x3f841=a175_0x533931;requireExplicitYes(_0x4075c6);const _0x152200=await buildPlan(_0x4075c6,![]);await recheckMutationSnapshot(_0x4075c6,_0x152200[_0x3f841(0x19f)],_0x3f841(0x1eb));const _0x1271b8=[],_0x2c2b65=[],_0x5deeef=[];for(const _0x21bf4c of _0x152200[_0x3f841(0x19f)][_0x3f841(0x1ee)]){if(_0x21bf4c[_0x3f841(0x19b)][_0x3f841(0x1e1)]===_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]){_0x1271b8['push']({'id':_0x21bf4c['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x4075c6[_0x3f841(0x1de)],_0x4075c6[_0x3f841(0x1da)],{'id':_0x21bf4c['id'],'visible':_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]}),_0x1271b8[_0x3f841(0x1ec)]({'id':_0x21bf4c['id'],'updated':!![],'skipped':![]});}catch(_0x377835){const _0x49c256=mapMenuApiError(_0x377835,'update\x20visibility\x20for',_0x21bf4c['id']);if(isMenuResponseLoss(_0x377835)&&_0x49c256[_0x3f841(0x1a3)]!==_0x3f841(0x1f1)){_0x5deeef['push'](_0x21bf4c['id']);continue;}_0x2c2b65['push']({'id':_0x21bf4c['id'],'stage':'update','code':_0x49c256['code'],'message':_0x49c256[_0x3f841(0x1e9)]});}}let _0x1e6998;try{_0x1e6998=await fetchMenuSnapshot(_0x4075c6[_0x3f841(0x1de)],_0x4075c6[_0x3f841(0x1da)]);}catch(_0x547b0e){const _0xf744a4=describeMenuErrorCause(_0x547b0e,'verify\x20menu\x20visibility\x20update'),_0x1df36d=_0x5deeef[_0x3f841(0x1a4)](_0x27c924=>({'id':_0x27c924,'stage':_0x3f841(0x1e8),'code':'menu_verification_failed','message':_0x3f841(0x1c3)+_0x27c924+_0x3f841(0x1fe),'requestedStateConfirmed':![],'recovered':![]})),_0x2213ec={'stage':_0x3f841(0x198),'code':_0x3f841(0x18d),'message':_0x3f841(0x1e0),'targetIds':_0x152200[_0x3f841(0x19f)][_0x3f841(0x1ee)][_0x3f841(0x1a4)](_0x28ffc2=>_0x28ffc2['id']),'requestedStateConfirmed':![],..._0xf744a4};throw menuFailure(asVerificationError(_0x547b0e,_0x3f841(0x1ba)),_0x152200[_0x3f841(0x19f)],{'stage':_0x3f841(0x198),'succeeded':_0x1271b8,'failedRecords':[..._0x2c2b65,..._0x1df36d,_0x2213ec],'warnings':[_0x3f841(0x18a)],'verification':{'status':_0x3f841(0x1a7),'recoveredCount':0x0,'lookupCommand':_0x3f841(0x1f0)}});}const _0x5653d9=[];for(const _0x15a656 of _0x1271b8){const _0xb8ee3f=Number(_0x15a656['id']),_0x307567=_0x152200[_0x3f841(0x1be)][_0x3f841(0x18f)](_0xb8ee3f),_0x34d7e4=_0x1e6998[_0x3f841(0x1fc)][_0x3f841(0x18f)](_0xb8ee3f);try{verifyVisibilityUpdate(_0x307567,_0x34d7e4,_0x152200['plan'][_0x3f841(0x1a1)]);}catch(_0x2b573b){const _0x48c577=asVerificationError(_0x2b573b,'Menu\x20'+_0xb8ee3f+_0x3f841(0x1af));_0x5653d9[_0x3f841(0x1ec)]({'id':_0xb8ee3f,'stage':'verification','code':_0x48c577['code'],'message':_0x48c577['message'],'requestedStateConfirmed':![]});}}for(const _0x1fba08 of _0x5deeef){const _0x1bc0b5=_0x152200['beforeById'][_0x3f841(0x18f)](_0x1fba08),_0x286326=_0x1e6998[_0x3f841(0x1fc)][_0x3f841(0x18f)](_0x1fba08);try{verifyVisibilityUpdate(_0x1bc0b5,_0x286326,_0x152200[_0x3f841(0x19f)][_0x3f841(0x1a1)]),_0x1271b8[_0x3f841(0x1ec)]({'id':_0x1fba08,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x49db6c){const _0x36a1cd=asVerificationError(_0x49db6c,_0x3f841(0x1d8)+_0x1fba08+_0x3f841(0x1f9));_0x5653d9[_0x3f841(0x1ec)]({'id':_0x1fba08,'stage':'update-recovery','code':_0x36a1cd[_0x3f841(0x1a3)],'message':_0x36a1cd[_0x3f841(0x1e9)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x5653d9[_0x3f841(0x1f7)]>0x0){const _0x442ed1=_0x5653d9['map'](_0x5514aa=>Number(_0x5514aa['id'])),_0x50ae0c=_0x1271b8[_0x3f841(0x1e5)](_0x459677=>_0x459677[_0x3f841(0x1b8)]===!![])['length'],_0x496f56=menuError(_0x3f841(0x18d),_0x3f841(0x1b7)+_0x442ed1[_0x3f841(0x1d2)](',\x20')+'.',_0x3f841(0x1ab));throw menuFailure(_0x496f56,_0x152200[_0x3f841(0x19f)],{'stage':_0x3f841(0x198),'succeeded':_0x1271b8,'failedRecords':[..._0x2c2b65,..._0x5653d9],'warnings':[_0x3f841(0x1ce)],'verification':{'status':_0x3f841(0x1a7),..._0x442ed1[_0x3f841(0x1f7)]===0x1?{'targetId':_0x442ed1[0x0]}:{'targetIds':_0x442ed1},'recoveredCount':_0x50ae0c,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0x3a8650=_0x1271b8['filter'](_0x19380d=>_0x19380d[_0x3f841(0x1e3)]===!![])['length'],_0x5e1edd=_0x1271b8['length']-_0x3a8650,_0x161323={..._0x152200['plan'],'succeeded':_0x1271b8,'failed':_0x2c2b65,'warnings':_0x2c2b65[_0x3f841(0x1f7)]>0x0?[..._0x152200[_0x3f841(0x19f)]['warnings'],_0x3f841(0x1d5)]:_0x152200[_0x3f841(0x19f)]['warnings'],'verification':{'checkedBy':'menu\x20list','snapshotHash':_0x1e6998['hash'],'matchesRequestedState':_0x2c2b65[_0x3f841(0x1f7)]===0x0,'recoveredCount':_0x5deeef[_0x3f841(0x1f7)]}};return{'ok':_0x2c2b65['length']===0x0,'data':_0x161323,'message':_0x2c2b65['length']===0x0?'Updated\x20visibility\x20for\x20'+_0x3a8650+'\x20menu(s);\x20skipped\x20'+_0x5e1edd+_0x3f841(0x1a2):'Menu\x20visibility\x20update\x20completed:\x20'+_0x3a8650+_0x3f841(0x1ca)+_0x5e1edd+'\x20skipped,\x20'+_0x2c2b65[_0x3f841(0x1f7)]+_0x3f841(0x1b4)};}};function parseInput(_0x28443f){const _0x22255d=a175_0x533931,_0x3ac765=parseMenuIds(_0x28443f[_0x22255d(0x1ae)](_0x22255d(0x189))),_0x1f1355=parseCsv(_0x28443f[_0x22255d(0x1ae)](_0x22255d(0x19e)));if(_0x3ac765[_0x22255d(0x1f7)]===0x0&&_0x1f1355['length']===0x0)throw CliErrors['validation'](_0x22255d(0x1c8));const _0x280cbe=parseBooleanFlag(_0x28443f,_0x22255d(0x1e1),!![]),_0x39fbcc=parseBooleanFlag(_0x28443f,_0x22255d(0x18e),![]);let _0x593318;if(hasFlag(_0x28443f,_0x22255d(0x1cd))){_0x593318=_0x28443f[_0x22255d(0x190)](_0x22255d(0x1cd));if(!Number[_0x22255d(0x1a5)](_0x593318)||_0x593318<0x0)throw CliErrors[_0x22255d(0x1bb)](_0x22255d(0x1b3));}return{'menuIds':_0x3ac765,'paths':_0x1f1355,'visible':_0x280cbe,'expectVisible':_0x39fbcc,'expectedCount':_0x593318};}async function buildPlan(_0x856712,_0x2e58b8){const _0x3cffcc=a175_0x533931,_0x3e2c50=parseInput(_0x856712),_0x2d88eb=await fetchMutationSnapshot(_0x856712,_0x3cffcc(0x1eb)),_0x30b3f1=selectTargets(_0x2d88eb[_0x3cffcc(0x1d3)],_0x3e2c50['menuIds'],_0x3e2c50[_0x3cffcc(0x19e)]);if(_0x3e2c50[_0x3cffcc(0x1c4)]!==undefined&&_0x30b3f1[_0x3cffcc(0x1f7)]!==_0x3e2c50[_0x3cffcc(0x1c4)])throw menuError(_0x3cffcc(0x1f2),_0x3cffcc(0x1bc)+_0x30b3f1[_0x3cffcc(0x1f7)]+_0x3cffcc(0x1e2)+_0x3e2c50['expectedCount']+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x3e2c50[_0x3cffcc(0x1a8)]!==undefined){const _0x105fff=_0x30b3f1[_0x3cffcc(0x1e5)](_0x41e4b1=>_0x41e4b1['visible']!==_0x3e2c50[_0x3cffcc(0x1a8)]);if(_0x105fff['length']>0x0)throw menuError(_0x3cffcc(0x1f6),_0x3cffcc(0x1ed)+_0x105fff[_0x3cffcc(0x1a4)](_0x20e337=>_0x20e337['id'])[_0x3cffcc(0x1d2)](',\x20')+'.',_0x3cffcc(0x1ff));}const _0x3cf75a=_0x30b3f1[_0x3cffcc(0x1a4)](_0x406d14=>({'id':_0x406d14['id'],'label':_0x406d14['label'],'path':_0x406d14[_0x3cffcc(0x196)],'before':{'visible':_0x406d14[_0x3cffcc(0x1e1)]},'after':{'visible':_0x3e2c50[_0x3cffcc(0x1e1)]}})),_0x23e08a=_0x3cf75a[_0x3cffcc(0x1e5)](_0x3eff50=>_0x3eff50[_0x3cffcc(0x19b)][_0x3cffcc(0x1e1)]!==_0x3e2c50[_0x3cffcc(0x1e1)])[_0x3cffcc(0x1a4)](_0x24c159=>({'stage':'update-menu-visibility','method':_0x3cffcc(0x1b0),'path':'/smartapi/menu/update','body':{'appCode':_0x856712[_0x3cffcc(0x1de)],'id':_0x24c159['id'],'visible':_0x3e2c50['visible']}})),_0x1690e1=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x3e2c50['menuIds'],'paths':_0x3e2c50[_0x3cffcc(0x19e)]},'before':{'menus':_0x30b3f1[_0x3cffcc(0x1a4)](_0x225b05=>({'id':_0x225b05['id'],'path':_0x225b05[_0x3cffcc(0x196)],'visible':_0x225b05[_0x3cffcc(0x1e1)]}))},'after':{'menus':_0x30b3f1[_0x3cffcc(0x1a4)](_0x1dc58c=>({'id':_0x1dc58c['id'],'path':_0x1dc58c[_0x3cffcc(0x196)],'visible':_0x3e2c50[_0x3cffcc(0x1e1)]}))},'dryRun':_0x2e58b8,'backend':[...BACKEND],'plannedActions':_0x23e08a,'snapshotHash':_0x2d88eb['hash'],'warnings':_0x23e08a[_0x3cffcc(0x1f7)]===0x0?[_0x3cffcc(0x197)]:[]});return{'plan':{..._0x1690e1,'requestedVisible':_0x3e2c50[_0x3cffcc(0x1e1)],'targets':_0x3cf75a},'beforeById':new Map(_0x30b3f1[_0x3cffcc(0x1a4)](_0x896867=>[_0x896867['id'],_0x896867]))};}function selectTargets(_0x343468,_0x47c7ca,_0x3978b3){const _0x21f516=a175_0x533931,_0x3f8f8e=new Map(_0x343468[_0x21f516(0x1a4)](_0xaa4807=>[_0xaa4807['id'],_0xaa4807])),_0x2ab04c=new Map(),_0x30abea=_0x47c7ca['filter'](_0x34af71=>!_0x3f8f8e[_0x21f516(0x1fa)](_0x34af71));if(_0x30abea[_0x21f516(0x1f7)]>0x0)throw menuError(_0x21f516(0x1b2),_0x21f516(0x19c)+_0x30abea[_0x21f516(0x1d2)](',\x20')+'.',_0x21f516(0x18c));for(const _0x2afe15 of _0x47c7ca){_0x2ab04c[_0x21f516(0x1c7)](_0x2afe15,_0x3f8f8e[_0x21f516(0x18f)](_0x2afe15));}for(const _0x477691 of _0x3978b3){const _0x3cc1a3=_0x343468[_0x21f516(0x1e5)](_0x5761ce=>_0x5761ce[_0x21f516(0x196)]===_0x477691);if(_0x3cc1a3[_0x21f516(0x1f7)]===0x0)throw menuError(_0x21f516(0x1b2),_0x21f516(0x193)+JSON[_0x21f516(0x1cb)](_0x477691)+'.',_0x21f516(0x1bd));if(_0x3cc1a3[_0x21f516(0x1f7)]>0x1)throw menuError('menu_selector_ambiguous',_0x21f516(0x1c2)+JSON[_0x21f516(0x1cb)](_0x477691)+'.',_0x21f516(0x1d7)+_0x3cc1a3[_0x21f516(0x1a4)](_0x3af806=>_0x3af806['id'])[_0x21f516(0x1d2)](',\x20')+'.');const _0xc8e240=_0x3cc1a3[0x0];_0x2ab04c[_0x21f516(0x1c7)](_0xc8e240['id'],_0xc8e240);}return[..._0x2ab04c[_0x21f516(0x1ea)]()];}function parseMenuIds(_0x3b0074){const _0x38b904=a175_0x533931,_0x2f0783=parseCsv(_0x3b0074),_0x4def7e=_0x2f0783[_0x38b904(0x1a4)](Number);if(_0x4def7e['some'](_0x1a3265=>!Number['isSafeInteger'](_0x1a3265)||_0x1a3265<=0x0))throw CliErrors[_0x38b904(0x1bb)](_0x38b904(0x200));return[...new Set(_0x4def7e)];}function parseCsv(_0x5446b0){const _0x342342=a175_0x533931;return[...new Set(_0x5446b0[_0x342342(0x202)](',')['map'](_0x4b1c32=>_0x4b1c32[_0x342342(0x1d6)]())['filter'](Boolean))];}function parseBooleanFlag(_0x469cb7,_0x53e518,_0x125568){const _0x36975a=a175_0x533931;if(!hasFlag(_0x469cb7,_0x53e518)){if(_0x125568)throw CliErrors[_0x36975a(0x195)](_0x53e518);return undefined;}const _0x13e9c6=_0x469cb7['rawFlags'][_0x53e518];if(_0x13e9c6===!![]||_0x13e9c6===![])return _0x13e9c6;if(_0x13e9c6===_0x36975a(0x1c9))return!![];if(_0x13e9c6===_0x36975a(0x1c1))return![];throw CliErrors[_0x36975a(0x1bb)]('--'+_0x53e518+_0x36975a(0x1e6));}function verifyVisibilityUpdate(_0x1534fd,_0x4d3333,_0x250b63){const _0x2d7454=a175_0x533931;assertVerified(!!_0x4d3333,_0x2d7454(0x1db)+_0x1534fd['id']+_0x2d7454(0x1a0)),assertVerified(_0x4d3333[_0x2d7454(0x1e1)]===_0x250b63,_0x2d7454(0x1db)+_0x1534fd['id']+_0x2d7454(0x1ef));const _0x10b2fc=[['id',_0x4d3333['id'],_0x1534fd['id']],['parentId',_0x4d3333[_0x2d7454(0x188)],_0x1534fd[_0x2d7454(0x188)]],[_0x2d7454(0x1b9),_0x4d3333['depth'],_0x1534fd['depth']],[_0x2d7454(0x194),_0x4d3333[_0x2d7454(0x194)],_0x1534fd['label']],[_0x2d7454(0x196),_0x4d3333[_0x2d7454(0x196)],_0x1534fd['path']],[_0x2d7454(0x19a),_0x4d3333[_0x2d7454(0x19a)],_0x1534fd[_0x2d7454(0x19a)]],[_0x2d7454(0x1b5),_0x4d3333['type'],_0x1534fd[_0x2d7454(0x1b5)]],[_0x2d7454(0x1fb),_0x4d3333['sort'],_0x1534fd[_0x2d7454(0x1fb)]],[_0x2d7454(0x199),_0x4d3333[_0x2d7454(0x199)],_0x1534fd['resources']],['resourcesValid',_0x4d3333[_0x2d7454(0x192)],_0x1534fd[_0x2d7454(0x192)]],['childrenIds',_0x4d3333[_0x2d7454(0x1b1)],_0x1534fd['childrenIds']],[_0x2d7454(0x1c0),_0x4d3333['childrenCount'],_0x1534fd[_0x2d7454(0x1c0)]],[_0x2d7454(0x1d1),_0x4d3333['pageId'],_0x1534fd['pageId']],[_0x2d7454(0x1bf),_0x4d3333[_0x2d7454(0x1bf)],_0x1534fd['pageType']],[_0x2d7454(0x1f5),_0x4d3333[_0x2d7454(0x1f5)],_0x1534fd[_0x2d7454(0x1f5)]],[_0x2d7454(0x1cf),_0x4d3333['datasetId'],_0x1534fd[_0x2d7454(0x1cf)]],['datasetCode',_0x4d3333[_0x2d7454(0x1dc)],_0x1534fd['datasetCode']]];for(const [_0x532bc5,_0x401a7e,_0x529503]of _0x10b2fc){assertVerified(sameValue(_0x401a7e,_0x529503),'Menu\x20'+_0x1534fd['id']+'\x20'+_0x532bc5+_0x2d7454(0x1e4));}}function sameValue(_0x1bff84,_0x183487){const _0x4cd0c1=a175_0x533931;if(Array[_0x4cd0c1(0x201)](_0x1bff84)||Array[_0x4cd0c1(0x201)](_0x183487))return JSON[_0x4cd0c1(0x1cb)](_0x1bff84)===JSON[_0x4cd0c1(0x1cb)](_0x183487);return _0x1bff84===_0x183487;}
1
+ function a175_0x1c70(_0x50acb4,_0x196507){_0x50acb4=_0x50acb4-0x1ce;const _0x4f4861=a175_0x4f48();let _0x1c705c=_0x4f4861[_0x50acb4];return _0x1c705c;}const a175_0x1a5a24=a175_0x1c70;(function(_0x972ca2,_0x43184a){const _0x613c78=a175_0x1c70,_0x572193=_0x972ca2();while(!![]){try{const _0x59be58=-parseInt(_0x613c78(0x1f2))/0x1*(-parseInt(_0x613c78(0x1d8))/0x2)+-parseInt(_0x613c78(0x226))/0x3*(parseInt(_0x613c78(0x1ce))/0x4)+parseInt(_0x613c78(0x253))/0x5*(parseInt(_0x613c78(0x1d5))/0x6)+parseInt(_0x613c78(0x22e))/0x7*(parseInt(_0x613c78(0x22a))/0x8)+parseInt(_0x613c78(0x23c))/0x9+parseInt(_0x613c78(0x21b))/0xa+-parseInt(_0x613c78(0x217))/0xb;if(_0x59be58===_0x43184a)break;else _0x572193['push'](_0x572193['shift']());}catch(_0x339b08){_0x572193['push'](_0x572193['shift']());}}}(a175_0x4f48,0x8a57b));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../commands/menu/shared/facts.js';import{asVerificationError,assertVerified,describeMenuErrorCause,fetchMutationSnapshot,hasFlag,isMenuResponseLoss,mapMenuApiError,menuDryRunResult,menuError,menuFailure,mutationResult,recheckMutationSnapshot,requireExplicitYes}from'../../commands/menu/shared/mutations.js';import{updateMenuEntity}from'../../commands/menu/shared/service.js';import{CliErrors}from'../../errors.js';const BACKEND=[{'method':a175_0x1a5a24(0x230),'path':a175_0x1a5a24(0x1f7)}];export const menuVisibilityUpdate={'service':a175_0x1a5a24(0x216),'command':a175_0x1a5a24(0x248),'description':'Set\x20exact\x20menus\x20visible\x20or\x20hidden\x20without\x20changing\x20their\x20routes\x20or\x20resources','risk':'high-risk-write','structuredErrors':!![],'flags':[{'name':a175_0x1a5a24(0x228),'type':'string','description':a175_0x1a5a24(0x23d)},{'name':a175_0x1a5a24(0x1dd),'type':a175_0x1a5a24(0x1d7),'description':a175_0x1a5a24(0x1f1)},{'name':a175_0x1a5a24(0x1fe),'type':'boolean','required':!![],'description':a175_0x1a5a24(0x1e4)},{'name':'expect-visible','type':a175_0x1a5a24(0x220),'description':a175_0x1a5a24(0x213)},{'name':a175_0x1a5a24(0x21e),'type':'number','description':a175_0x1a5a24(0x252)},APPCODE_FLAG_OPTIONAL],async 'validate'(_0xbd6d49){parseInput(_0xbd6d49),requireExplicitYes(_0xbd6d49);},async 'dryRun'(_0xd29558){const _0x4201f6=a175_0x1a5a24,_0xa83b0d=await buildPlan(_0xd29558,!![]),_0x4e59ea=_0xa83b0d[_0x4201f6(0x219)][_0x4201f6(0x236)]?.['length']??0x0,_0x22337b=_0xa83b0d[_0x4201f6(0x219)][_0x4201f6(0x244)][_0x4201f6(0x231)]-_0x4e59ea;return menuDryRunResult(_0xa83b0d['plan'],{'method':_0x4201f6(0x230),'url':'/smartapi/menu/update','body':{'updates':_0xa83b0d[_0x4201f6(0x219)][_0x4201f6(0x236)]?.[_0x4201f6(0x241)](_0x3d5dfe=>_0x3d5dfe[_0x4201f6(0x24c)])??[]},'description':'Would\x20update\x20visibility\x20for\x20'+_0x4e59ea+'\x20menu(s);\x20skip\x20'+_0x22337b+_0x4201f6(0x23f)});},async 'execute'(_0x335a43){const _0x1cd436=a175_0x1a5a24;requireExplicitYes(_0x335a43);const _0xf519d3=await buildPlan(_0x335a43,![]);await recheckMutationSnapshot(_0x335a43,_0xf519d3[_0x1cd436(0x219)],_0x1cd436(0x222));const _0x40b02e=[],_0x1fa372=[],_0x8d6b77=[];for(const _0x3ddfed of _0xf519d3['plan'][_0x1cd436(0x244)]){if(_0x3ddfed['before'][_0x1cd436(0x1fe)]===_0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x1db)]){_0x40b02e[_0x1cd436(0x207)]({'id':_0x3ddfed['id'],'updated':![],'skipped':!![]});continue;}try{await updateMenuEntity(_0x335a43[_0x1cd436(0x212)],_0x335a43['cookie'],{'id':_0x3ddfed['id'],'visible':_0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x1db)]}),_0x40b02e[_0x1cd436(0x207)]({'id':_0x3ddfed['id'],'updated':!![],'skipped':![]});}catch(_0x134d39){const _0x2b5749=mapMenuApiError(_0x134d39,_0x1cd436(0x1e6),_0x3ddfed['id']);if(isMenuResponseLoss(_0x134d39)&&_0x2b5749[_0x1cd436(0x224)]!==_0x1cd436(0x21c)){_0x8d6b77[_0x1cd436(0x207)](_0x3ddfed['id']);continue;}_0x1fa372[_0x1cd436(0x207)]({'id':_0x3ddfed['id'],'stage':_0x1cd436(0x245),'code':_0x2b5749[_0x1cd436(0x224)],'message':_0x2b5749[_0x1cd436(0x209)]});}}let _0x33c67a;try{_0x33c67a=await fetchMenuSnapshot(_0x335a43[_0x1cd436(0x212)],_0x335a43[_0x1cd436(0x232)]);}catch(_0x511b27){const _0x1a1c8c=describeMenuErrorCause(_0x511b27,_0x1cd436(0x23e)),_0x84bc=_0x8d6b77['map'](_0x35fadb=>({'id':_0x35fadb,'stage':_0x1cd436(0x205),'code':_0x1cd436(0x1f3),'message':_0x1cd436(0x1df)+_0x35fadb+_0x1cd436(0x20b),'requestedStateConfirmed':![],'recovered':![]})),_0x3504fa={'stage':_0x1cd436(0x20c),'code':_0x1cd436(0x1f3),'message':_0x1cd436(0x1d9),'targetIds':_0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x244)][_0x1cd436(0x241)](_0x34bbab=>_0x34bbab['id']),'requestedStateConfirmed':![],..._0x1a1c8c};throw menuFailure(asVerificationError(_0x511b27,_0x1cd436(0x208)),_0xf519d3[_0x1cd436(0x219)],{'stage':_0x1cd436(0x20c),'succeeded':_0x40b02e,'failedRecords':[..._0x1fa372,..._0x84bc,_0x3504fa],'warnings':[_0x1cd436(0x20f)],'verification':{'status':_0x1cd436(0x200),'recoveredCount':0x0,'lookupCommand':_0x1cd436(0x249)}});}const _0x5169a0=[];for(const _0x1ee55a of _0x40b02e){const _0x4cc3d4=Number(_0x1ee55a['id']),_0x5ad5b3=_0xf519d3[_0x1cd436(0x22c)]['get'](_0x4cc3d4),_0x568b21=_0x33c67a[_0x1cd436(0x1f8)][_0x1cd436(0x1d1)](_0x4cc3d4);try{verifyVisibilityUpdate(_0x5ad5b3,_0x568b21,_0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x1db)]);}catch(_0x5265b5){const _0x53a404=asVerificationError(_0x5265b5,_0x1cd436(0x229)+_0x4cc3d4+_0x1cd436(0x1e7));_0x5169a0[_0x1cd436(0x207)]({'id':_0x4cc3d4,'stage':'verification','code':_0x53a404[_0x1cd436(0x224)],'message':_0x53a404[_0x1cd436(0x209)],'requestedStateConfirmed':![]});}}for(const _0x233ef0 of _0x8d6b77){const _0x4c2762=_0xf519d3[_0x1cd436(0x22c)][_0x1cd436(0x1d1)](_0x233ef0),_0x4d320b=_0x33c67a[_0x1cd436(0x1f8)][_0x1cd436(0x1d1)](_0x233ef0);try{verifyVisibilityUpdate(_0x4c2762,_0x4d320b,_0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x1db)]),_0x40b02e[_0x1cd436(0x207)]({'id':_0x233ef0,'updated':!![],'skipped':![],'recovered':!![]});}catch(_0x1ba383){const _0x241ff3=asVerificationError(_0x1ba383,_0x1cd436(0x1eb)+_0x233ef0+_0x1cd436(0x1fb));_0x5169a0[_0x1cd436(0x207)]({'id':_0x233ef0,'stage':_0x1cd436(0x205),'code':_0x241ff3[_0x1cd436(0x224)],'message':_0x241ff3[_0x1cd436(0x209)],'requestedStateConfirmed':![],'recovered':![]});}}if(_0x5169a0['length']>0x0){const _0x526a38=_0x5169a0[_0x1cd436(0x241)](_0x3d9cf1=>Number(_0x3d9cf1['id'])),_0x30578d=_0x40b02e[_0x1cd436(0x24b)](_0xb55fb4=>_0xb55fb4['recovered']===!![])[_0x1cd436(0x231)],_0x58ba5a=menuError(_0x1cd436(0x1f3),_0x1cd436(0x246)+_0x526a38[_0x1cd436(0x221)](',\x20')+'.',_0x1cd436(0x22f));throw menuFailure(_0x58ba5a,_0xf519d3[_0x1cd436(0x219)],{'stage':'verification','succeeded':_0x40b02e,'failedRecords':[..._0x1fa372,..._0x5169a0],'warnings':['One\x20or\x20more\x20updates\x20may\x20have\x20changed\x20fields\x20outside\x20visibility;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.'],'verification':{'status':_0x1cd436(0x200),..._0x526a38[_0x1cd436(0x231)]===0x1?{'targetId':_0x526a38[0x0]}:{'targetIds':_0x526a38},'recoveredCount':_0x30578d,'lookupCommand':'rabetbase\x20menu\x20list\x20--format\x20compress'}});}const _0xcefa9c=_0x40b02e[_0x1cd436(0x24b)](_0x563928=>_0x563928[_0x1cd436(0x20e)]===!![])[_0x1cd436(0x231)],_0x591b05=_0x40b02e[_0x1cd436(0x231)]-_0xcefa9c,_0xbf33ea={..._0xf519d3[_0x1cd436(0x219)],'succeeded':_0x40b02e,'failed':_0x1fa372,'warnings':_0x1fa372[_0x1cd436(0x231)]>0x0?[..._0xf519d3[_0x1cd436(0x219)][_0x1cd436(0x210)],_0x1cd436(0x20a)]:_0xf519d3[_0x1cd436(0x219)]['warnings'],'verification':{'checkedBy':_0x1cd436(0x1e5),'snapshotHash':_0x33c67a['hash'],'matchesRequestedState':_0x1fa372[_0x1cd436(0x231)]===0x0,'recoveredCount':_0x8d6b77[_0x1cd436(0x231)]}};return{'ok':_0x1fa372[_0x1cd436(0x231)]===0x0,'data':_0xbf33ea,'message':_0x1fa372[_0x1cd436(0x231)]===0x0?_0x1cd436(0x1de)+_0xcefa9c+_0x1cd436(0x211)+_0x591b05+_0x1cd436(0x23f):_0x1cd436(0x215)+_0xcefa9c+_0x1cd436(0x235)+_0x591b05+_0x1cd436(0x1f5)+_0x1fa372[_0x1cd436(0x231)]+_0x1cd436(0x1ea)};}};function parseInput(_0x226b47){const _0x5dbe7b=a175_0x1a5a24,_0x4b4786=parseMenuIds(_0x226b47['str'](_0x5dbe7b(0x228))),_0x105054=parseCsv(_0x226b47[_0x5dbe7b(0x237)](_0x5dbe7b(0x1dd)));if(_0x4b4786[_0x5dbe7b(0x231)]===0x0&&_0x105054[_0x5dbe7b(0x231)]===0x0)throw CliErrors['validation']('menu\x20visibility-update\x20requires\x20--menu-ids\x20or\x20--paths.');const _0x32d2ba=parseBooleanFlag(_0x226b47,_0x5dbe7b(0x1fe),!![]),_0x51fcb2=parseBooleanFlag(_0x226b47,_0x5dbe7b(0x1fd),![]);let _0x5f55e4;if(hasFlag(_0x226b47,'expected-count')){_0x5f55e4=_0x226b47[_0x5dbe7b(0x21d)](_0x5dbe7b(0x21e));if(!Number[_0x5dbe7b(0x1da)](_0x5f55e4)||_0x5f55e4<0x0)throw CliErrors[_0x5dbe7b(0x1e8)](_0x5dbe7b(0x22d));}return{'menuIds':_0x4b4786,'paths':_0x105054,'visible':_0x32d2ba,'expectVisible':_0x51fcb2,'expectedCount':_0x5f55e4};}async function buildPlan(_0x211f46,_0x259f9a){const _0x47bbbb=a175_0x1a5a24,_0x5b845d=parseInput(_0x211f46),_0x18e54c=await fetchMutationSnapshot(_0x211f46,_0x47bbbb(0x222)),_0x5e2045=selectTargets(_0x18e54c[_0x47bbbb(0x1d2)],_0x5b845d[_0x47bbbb(0x247)],_0x5b845d['paths']);if(_0x5b845d[_0x47bbbb(0x1fc)]!==undefined&&_0x5e2045[_0x47bbbb(0x231)]!==_0x5b845d[_0x47bbbb(0x1fc)])throw menuError(_0x47bbbb(0x1f9),_0x47bbbb(0x242)+_0x5e2045[_0x47bbbb(0x231)]+_0x47bbbb(0x206)+_0x5b845d[_0x47bbbb(0x1fc)]+'.','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expected-count.');if(_0x5b845d[_0x47bbbb(0x204)]!==undefined){const _0x2dae2d=_0x5e2045[_0x47bbbb(0x24b)](_0x3e7408=>_0x3e7408['visible']!==_0x5b845d[_0x47bbbb(0x204)]);if(_0x2dae2d['length']>0x0)throw menuError(_0x47bbbb(0x22b),_0x47bbbb(0x1e1)+_0x2dae2d[_0x47bbbb(0x241)](_0x30e68e=>_0x30e68e['id'])[_0x47bbbb(0x221)](',\x20')+'.',_0x47bbbb(0x1f4));}const _0x46bad1=_0x5e2045[_0x47bbbb(0x241)](_0x280792=>({'id':_0x280792['id'],'label':_0x280792[_0x47bbbb(0x240)],'path':_0x280792['path'],'before':{'visible':_0x280792[_0x47bbbb(0x1fe)]},'after':{'visible':_0x5b845d['visible']}})),_0x30d1c3=_0x46bad1['filter'](_0x4665de=>_0x4665de[_0x47bbbb(0x1f6)][_0x47bbbb(0x1fe)]!==_0x5b845d[_0x47bbbb(0x1fe)])['map'](_0x45ba7e=>({'stage':_0x47bbbb(0x1ed),'method':_0x47bbbb(0x230),'path':_0x47bbbb(0x1f7),'body':{'appCode':_0x211f46['appCode'],'id':_0x45ba7e['id'],'visible':_0x5b845d[_0x47bbbb(0x1fe)]}})),_0x5c5085=mutationResult({'operation':'visibility-update','selector':{'menuIds':_0x5b845d['menuIds'],'paths':_0x5b845d[_0x47bbbb(0x1dd)]},'before':{'menus':_0x5e2045[_0x47bbbb(0x241)](_0x468514=>({'id':_0x468514['id'],'path':_0x468514[_0x47bbbb(0x227)],'visible':_0x468514[_0x47bbbb(0x1fe)]}))},'after':{'menus':_0x5e2045[_0x47bbbb(0x241)](_0x51b32c=>({'id':_0x51b32c['id'],'path':_0x51b32c['path'],'visible':_0x5b845d[_0x47bbbb(0x1fe)]}))},'dryRun':_0x259f9a,'backend':[...BACKEND],'plannedActions':_0x30d1c3,'snapshotHash':_0x18e54c[_0x47bbbb(0x1ff)],'warnings':_0x30d1c3['length']===0x0?['Every\x20selected\x20menu\x20already\x20has\x20the\x20requested\x20visibility;\x20no\x20write\x20is\x20needed.']:[]});return{'plan':{..._0x5c5085,'requestedVisible':_0x5b845d['visible'],'targets':_0x46bad1},'beforeById':new Map(_0x5e2045[_0x47bbbb(0x241)](_0x36bd09=>[_0x36bd09['id'],_0x36bd09]))};}function selectTargets(_0x48fb34,_0x1509da,_0x33fe1c){const _0x2f5a9a=a175_0x1a5a24,_0x1cd7bb=new Map(_0x48fb34['map'](_0x174052=>[_0x174052['id'],_0x174052])),_0x2bcca5=new Map(),_0x75746d=_0x1509da[_0x2f5a9a(0x24b)](_0x24cdb6=>!_0x1cd7bb[_0x2f5a9a(0x218)](_0x24cdb6));if(_0x75746d[_0x2f5a9a(0x231)]>0x0)throw menuError(_0x2f5a9a(0x223),_0x2f5a9a(0x1ee)+_0x75746d[_0x2f5a9a(0x221)](',\x20')+'.',_0x2f5a9a(0x21a));for(const _0x47ac75 of _0x1509da){_0x2bcca5[_0x2f5a9a(0x23a)](_0x47ac75,_0x1cd7bb[_0x2f5a9a(0x1d1)](_0x47ac75));}for(const _0xef940d of _0x33fe1c){const _0x3b5444=_0x48fb34[_0x2f5a9a(0x24b)](_0x1c19ee=>_0x1c19ee['path']===_0xef940d);if(_0x3b5444[_0x2f5a9a(0x231)]===0x0)throw menuError(_0x2f5a9a(0x223),_0x2f5a9a(0x1d0)+JSON[_0x2f5a9a(0x214)](_0xef940d)+'.',_0x2f5a9a(0x250));if(_0x3b5444['length']>0x1)throw menuError(_0x2f5a9a(0x1e9),_0x2f5a9a(0x203)+JSON[_0x2f5a9a(0x214)](_0xef940d)+'.',_0x2f5a9a(0x1e0)+_0x3b5444[_0x2f5a9a(0x241)](_0xcbc0b3=>_0xcbc0b3['id'])[_0x2f5a9a(0x221)](',\x20')+'.');const _0x566859=_0x3b5444[0x0];_0x2bcca5[_0x2f5a9a(0x23a)](_0x566859['id'],_0x566859);}return[..._0x2bcca5['values']()];}function parseMenuIds(_0x2205f0){const _0x5efc57=a175_0x1a5a24,_0x429d2c=parseCsv(_0x2205f0),_0x77cd24=_0x429d2c[_0x5efc57(0x241)](Number);if(_0x77cd24[_0x5efc57(0x1fa)](_0x36fe8d=>!Number[_0x5efc57(0x1da)](_0x36fe8d)||_0x36fe8d<=0x0))throw CliErrors['validation'](_0x5efc57(0x225));return[...new Set(_0x77cd24)];}function a175_0x4f48(){const _0x49dda1=['Selected\x20menu\x20visibility\x20changed\x20for\x20id(s):\x20','datasetId','childrenCount','Requested\x20menu\x20visibility','menu\x20list','update\x20visibility\x20for','\x20visibility\x20update\x20could\x20not\x20be\x20verified','validation','menu_selector_ambiguous','\x20failed.','Response\x20was\x20lost\x20and\x20menu\x20','parentId','update-menu-visibility','Menu\x20id\x20selector(s)\x20not\x20found:\x20','false','resourcesValid','Exact\x20comma-separated\x20menu\x20paths\x20to\x20update','18827OgUEzN','menu_verification_failed','Run\x20the\x20command\x20with\x20--dry-run\x20again\x20and\x20update\x20--expect-visible.','\x20skipped,\x20','before','/smartapi/menu/update','byId','menu_expected_count_mismatch','some','\x20visibility\x20could\x20not\x20be\x20verified\x20safely','expectedCount','expect-visible','visible','hash','failed','true','pageType','Menu\x20path\x20selector\x20matched\x20multiple\x20menus:\x20','expectVisible','update-recovery','\x20menu(s),\x20expected\x20','push','Visibility\x20update\x20requests\x20completed\x20but\x20readback\x20could\x20not\x20confirm\x20the\x20requested\x20state','message','Failed\x20update\x20requests\x20were\x20not\x20retried;\x20inspect\x20current\x20menu\x20facts\x20before\x20retrying.','\x20and\x20final\x20state\x20could\x20not\x20be\x20read.','verification','pageId','updated','The\x20update\x20may\x20have\x20taken\x20effect;\x20inspect\x20the\x20latest\x20menu\x20facts\x20before\x20retrying.','warnings','\x20menu(s);\x20skipped\x20','appCode','Abort\x20unless\x20every\x20selected\x20menu\x20has\x20this\x20visibility','stringify','Menu\x20visibility\x20update\x20completed:\x20','menu','4542791AYmFyn','has','plan','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20exact\x20current\x20ids.','4943960OkKjwM','menu_permission_denied','num','expected-count','split','boolean','join','update\x20menu\x20visibility','menu_selector_not_found','code','--menu-ids\x20must\x20contain\x20positive\x20safe\x20integers.','3106092UVJSxI','path','menu-ids','Menu\x20','448mPTWDv','menu_state_drift','beforeById','--expected-count\x20must\x20be\x20a\x20non-negative\x20integer.','36218sRjNDq','Inspect\x20current\x20menu\x20facts\x20before\x20retrying\x20any\x20target.','POST','length','cookie','trim','\x20must\x20be\x20true\x20or\x20false.','\x20updated,\x20','plannedActions','str','isArray','url','set','\x20changed\x20unexpectedly.','3399129CPBAiu','Exact\x20comma-separated\x20menu\x20IDs\x20to\x20update','verify\x20menu\x20visibility\x20update','\x20unchanged\x20menu(s).','label','map','Selected\x20','sort','targets','update','Menu\x20visibility\x20update\x20could\x20not\x20be\x20verified\x20for\x20id(s):\x20','menuIds','visibility-update','rabetbase\x20menu\x20list\x20--format\x20compress','resources','filter','body','depth','rawFlags','flagMissing','Run\x20`rabetbase\x20menu\x20list\x20--format\x20compress`\x20and\x20use\x20an\x20exact\x20current\x20path.','\x20visible\x20did\x20not\x20match\x20the\x20requested\x20state.','Abort\x20unless\x20the\x20exact\x20number\x20of\x20selected\x20menus\x20matches','2477310bQwzac','4DrzTMJ','datasetCode','Menu\x20path\x20selector\x20not\x20found:\x20','get','menus','type','childrenIds','6RHMXRC','\x20was\x20not\x20found\x20during\x20visibility\x20verification.','string','38FqvXYE','Final\x20menu\x20visibility\x20readback\x20failed.','isSafeInteger','requestedVisible','modelType','paths','Updated\x20visibility\x20for\x20','Response\x20was\x20lost\x20for\x20menu\x20','Use\x20--menu-ids\x20with\x20one\x20or\x20more\x20of:\x20'];a175_0x4f48=function(){return _0x49dda1;};return a175_0x4f48();}function parseCsv(_0x73c108){const _0xc08dd3=a175_0x1a5a24;return[...new Set(_0x73c108[_0xc08dd3(0x21f)](',')[_0xc08dd3(0x241)](_0x2f338f=>_0x2f338f[_0xc08dd3(0x233)]())['filter'](Boolean))];}function parseBooleanFlag(_0x1eda5b,_0x2d21fc,_0x4c4bb6){const _0x3ef2f1=a175_0x1a5a24;if(!hasFlag(_0x1eda5b,_0x2d21fc)){if(_0x4c4bb6)throw CliErrors[_0x3ef2f1(0x24f)](_0x2d21fc);return undefined;}const _0x9f0640=_0x1eda5b[_0x3ef2f1(0x24e)][_0x2d21fc];if(_0x9f0640===!![]||_0x9f0640===![])return _0x9f0640;if(_0x9f0640===_0x3ef2f1(0x201))return!![];if(_0x9f0640===_0x3ef2f1(0x1ef))return![];throw CliErrors['validation']('--'+_0x2d21fc+_0x3ef2f1(0x234));}function verifyVisibilityUpdate(_0x4324b2,_0x4f0e4b,_0x37825e){const _0xf549ea=a175_0x1a5a24;assertVerified(!!_0x4f0e4b,_0xf549ea(0x229)+_0x4324b2['id']+_0xf549ea(0x1d6)),assertVerified(_0x4f0e4b['visible']===_0x37825e,_0xf549ea(0x229)+_0x4324b2['id']+_0xf549ea(0x251));const _0x384a78=[['id',_0x4f0e4b['id'],_0x4324b2['id']],[_0xf549ea(0x1ec),_0x4f0e4b[_0xf549ea(0x1ec)],_0x4324b2[_0xf549ea(0x1ec)]],[_0xf549ea(0x24d),_0x4f0e4b[_0xf549ea(0x24d)],_0x4324b2[_0xf549ea(0x24d)]],[_0xf549ea(0x240),_0x4f0e4b['label'],_0x4324b2[_0xf549ea(0x240)]],[_0xf549ea(0x227),_0x4f0e4b[_0xf549ea(0x227)],_0x4324b2[_0xf549ea(0x227)]],['url',_0x4f0e4b[_0xf549ea(0x239)],_0x4324b2[_0xf549ea(0x239)]],[_0xf549ea(0x1d3),_0x4f0e4b[_0xf549ea(0x1d3)],_0x4324b2[_0xf549ea(0x1d3)]],[_0xf549ea(0x243),_0x4f0e4b[_0xf549ea(0x243)],_0x4324b2[_0xf549ea(0x243)]],[_0xf549ea(0x24a),_0x4f0e4b[_0xf549ea(0x24a)],_0x4324b2['resources']],[_0xf549ea(0x1f0),_0x4f0e4b[_0xf549ea(0x1f0)],_0x4324b2['resourcesValid']],[_0xf549ea(0x1d4),_0x4f0e4b[_0xf549ea(0x1d4)],_0x4324b2[_0xf549ea(0x1d4)]],['childrenCount',_0x4f0e4b['childrenCount'],_0x4324b2[_0xf549ea(0x1e3)]],[_0xf549ea(0x20d),_0x4f0e4b[_0xf549ea(0x20d)],_0x4324b2[_0xf549ea(0x20d)]],[_0xf549ea(0x202),_0x4f0e4b[_0xf549ea(0x202)],_0x4324b2['pageType']],[_0xf549ea(0x1dc),_0x4f0e4b[_0xf549ea(0x1dc)],_0x4324b2[_0xf549ea(0x1dc)]],[_0xf549ea(0x1e2),_0x4f0e4b[_0xf549ea(0x1e2)],_0x4324b2[_0xf549ea(0x1e2)]],[_0xf549ea(0x1cf),_0x4f0e4b[_0xf549ea(0x1cf)],_0x4324b2[_0xf549ea(0x1cf)]]];for(const [_0x2536dc,_0x16f4cd,_0x26cefc]of _0x384a78){assertVerified(sameValue(_0x16f4cd,_0x26cefc),_0xf549ea(0x229)+_0x4324b2['id']+'\x20'+_0x2536dc+_0xf549ea(0x23b));}}function sameValue(_0x59a172,_0x463747){const _0x2924df=a175_0x1a5a24;if(Array[_0x2924df(0x238)](_0x59a172)||Array[_0x2924df(0x238)](_0x463747))return JSON[_0x2924df(0x214)](_0x59a172)===JSON[_0x2924df(0x214)](_0x463747);return _0x59a172===_0x463747;}
@@ -1 +1 @@
1
- const a176_0x2ecb6b=a176_0x1a41;function a176_0x1a41(_0x4f35ef,_0xef725f){_0x4f35ef=_0x4f35ef-0x65;const _0x589747=a176_0x5897();let _0x1a41ca=_0x589747[_0x4f35ef];return _0x1a41ca;}(function(_0x4ee58b,_0x4f427e){const _0x5cc87b=a176_0x1a41,_0x2df67c=_0x4ee58b();while(!![]){try{const _0x5f4625=parseInt(_0x5cc87b(0x6d))/0x1+parseInt(_0x5cc87b(0x66))/0x2*(-parseInt(_0x5cc87b(0x6f))/0x3)+-parseInt(_0x5cc87b(0x6a))/0x4+-parseInt(_0x5cc87b(0x68))/0x5+-parseInt(_0x5cc87b(0x6c))/0x6+parseInt(_0x5cc87b(0x72))/0x7*(-parseInt(_0x5cc87b(0x84))/0x8)+parseInt(_0x5cc87b(0x83))/0x9;if(_0x5f4625===_0x4f427e)break;else _0x2df67c['push'](_0x2df67c['shift']());}catch(_0x282ef3){_0x2df67c['push'](_0x2df67c['shift']());}}}(a176_0x5897,0x35e85));function a176_0x5897(){const _0x1416e8=['configName','write','input','channelType',';\x20do\x20not\x20resubmit.','appCode','channelConfig','13047804CLSaWU','8UrCOJT','notification','mutation','8278ChdXwR','configCode','2126715nlMETr','verification','1415112ViVskj','document','1718856yeURur','181119vftMUC','/notification/channel-config/create','198BfRawg','Created\x20notification\x20config\x20','Inspect\x20with\x20','499093UJmbzi','config-create','POST','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','notification_config_create_outcome_unknown','connectTimeout','create','readTimeout','Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','endpointUrl'];a176_0x5897=function(){return _0x1416e8;};return a176_0x5897();}import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';const CREATE_PATH=a176_0x2ecb6b(0x6e);async function prepareCreate(_0x3295f9){const _0x1e7552=a176_0x2ecb6b,_0xde7005=await readNotificationDocument(_0x3295f9,_0x1e7552(0x78)),_0x3d3495=createMutationInput(_0x3295f9[_0x1e7552(0x81)],_0xde7005);return{'document':_0xde7005,'input':_0x3d3495,'planned':projectNotificationConfig({'appCode':_0x3295f9[_0x1e7552(0x81)],'configName':_0xde7005[_0x1e7552(0x7c)],'channelType':_0xde7005[_0x1e7552(0x7f)],'endpointUrl':_0xde7005[_0x1e7552(0x7b)],'channelConfig':_0xde7005[_0x1e7552(0x82)],'description':_0xde7005['description'],'connectTimeout':_0xde7005[_0x1e7552(0x77)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0xde7005[_0x1e7552(0x79)]??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a176_0x2ecb6b(0x85),'command':a176_0x2ecb6b(0x73),'description':a176_0x2ecb6b(0x7a),'risk':a176_0x2ecb6b(0x7d),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x494dd2){assertSingleNotificationSource(_0x494dd2);},async 'dryRun'(_0xeed35c){const _0x196a26=a176_0x2ecb6b,_0x2a44e8=await prepareCreate(_0xeed35c),_0x189023=notificationLookupCommand(_0xeed35c['appCode'],_0x2a44e8[_0x196a26(0x6b)][_0x196a26(0x7f)]);return asDryRunResult({'operation':_0x196a26(0x78),'selector':{'appCode':_0xeed35c[_0x196a26(0x81)],'configName':_0x2a44e8[_0x196a26(0x6b)][_0x196a26(0x7c)],'channelType':_0x2a44e8['document']['channelType']},'before':null,'after':_0x2a44e8['planned'],'dryRun':!![],'backend':{'method':_0x196a26(0x74),'path':CREATE_PATH},'warnings':[],'verification':{'status':'planned','lookupCommand':_0x189023}},{'method':'POST','url':CREATE_PATH});},async 'execute'(_0x1f57ef){const _0xdbcf32=a176_0x2ecb6b,_0x4155c3=await prepareCreate(_0x1f57ef),_0x47da81=notificationLookupCommand(_0x1f57ef[_0xdbcf32(0x81)],_0x4155c3['document'][_0xdbcf32(0x7f)]);let _0x41269e;try{_0x41269e=await createNotificationChannelConfig(_0x4155c3[_0xdbcf32(0x7e)]);}catch(_0x9f12bf){if(isPlatformTransportFailure(_0x9f12bf))throw notificationError('notification_config_create_outcome_unknown','Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.','Inspect\x20with\x20'+_0x47da81+_0xdbcf32(0x80));throw safeApiFailure(_0xdbcf32(0x78),_0xdbcf32(0x65),'Inspect\x20with\x20'+_0x47da81+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number['isSafeInteger'](_0x41269e)||_0x41269e<=0x0)throw notificationError(_0xdbcf32(0x76),_0xdbcf32(0x75),_0xdbcf32(0x71)+_0x47da81+_0xdbcf32(0x80));let _0x9a00bb;try{const _0x4309a3=await getNotificationChannelConfig(_0x41269e,_0x1f57ef[_0xdbcf32(0x81)]);_0x9a00bb=normalizeExactNotificationConfig(_0x4309a3,_0x41269e,_0x1f57ef[_0xdbcf32(0x81)]);}catch{throw safeApiFailure('create',_0xdbcf32(0x69),_0xdbcf32(0x71)+_0x47da81+';\x20do\x20not\x20resubmit\x20automatically.');}return{'ok':!![],'data':{'operation':_0xdbcf32(0x78),'selector':{'appCode':_0x9a00bb[_0xdbcf32(0x81)],'id':_0x9a00bb['id'],'configCode':_0x9a00bb[_0xdbcf32(0x67)],'configName':_0x9a00bb[_0xdbcf32(0x7c)],'channelType':_0x9a00bb[_0xdbcf32(0x7f)]},'before':null,'after':projectNotificationConfig(_0x9a00bb),'dryRun':![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':'verified','lookupCommand':_0x47da81}},'message':_0xdbcf32(0x70)+_0x9a00bb['id']};}};
1
+ const a176_0x38374b=a176_0x331d;(function(_0x356fe7,_0x1238d2){const _0x47d597=a176_0x331d,_0x4bad2e=_0x356fe7();while(!![]){try{const _0xf9fe0b=parseInt(_0x47d597(0x12a))/0x1*(parseInt(_0x47d597(0x12b))/0x2)+parseInt(_0x47d597(0x121))/0x3+parseInt(_0x47d597(0x122))/0x4+-parseInt(_0x47d597(0x120))/0x5*(parseInt(_0x47d597(0x118))/0x6)+parseInt(_0x47d597(0x124))/0x7+parseInt(_0x47d597(0x12c))/0x8*(parseInt(_0x47d597(0x116))/0x9)+parseInt(_0x47d597(0x129))/0xa*(-parseInt(_0x47d597(0x125))/0xb);if(_0xf9fe0b===_0x1238d2)break;else _0x4bad2e['push'](_0x4bad2e['shift']());}catch(_0x252175){_0x4bad2e['push'](_0x4bad2e['shift']());}}}(a176_0x4a86,0x559be));import{asDryRunResult}from'../../commands/common/dry-run.js';import{createNotificationChannelConfig,getNotificationChannelConfig,isPlatformTransportFailure}from'../../core/api-client.js';import{assertSingleNotificationSource,createMutationInput,DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,DEFAULT_NOTIFICATION_READ_TIMEOUT,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,NOTIFICATION_APP_FLAG,NOTIFICATION_INPUT_FLAGS,projectNotificationConfig,readNotificationDocument,safeApiFailure}from'../../commands/notification/shared.js';function a176_0x4a86(){const _0x32e71c=[';\x20do\x20not\x20resubmit\x20automatically.','Inspect\x20with\x20','planned','522550MVAfAj','1274100QqxFkj','2067824OfdoKc','notification','802081cFdtJV','33GwBdpL',';\x20do\x20not\x20resubmit.','Created\x20notification\x20config\x20','channelType','3579770CGqIBb','4upawAk','347216Qhkiym','15992pWCnFc','Notification\x20config\x20create\x20returned\x20no\x20usable\x20server\x20ID.','document','configCode','configName','/notification/channel-config/create','create','verification','notification_config_create_outcome_unknown','config-create','mutation','POST','write','414pqBwkQ','verified','24sjFjMj','description','isSafeInteger','appCode','connectTimeout'];a176_0x4a86=function(){return _0x32e71c;};return a176_0x4a86();}const CREATE_PATH=a176_0x38374b(0x10e);function a176_0x331d(_0x4ae8b5,_0x2db24c){_0x4ae8b5=_0x4ae8b5-0x10c;const _0x4a8630=a176_0x4a86();let _0x331d58=_0x4a8630[_0x4ae8b5];return _0x331d58;}async function prepareCreate(_0x544120){const _0x49c61e=a176_0x38374b,_0x4e8597=await readNotificationDocument(_0x544120,_0x49c61e(0x10f)),_0x4ba64c=createMutationInput(_0x544120[_0x49c61e(0x11b)],_0x4e8597);return{'document':_0x4e8597,'input':_0x4ba64c,'planned':projectNotificationConfig({'appCode':_0x544120['appCode'],'configName':_0x4e8597[_0x49c61e(0x10d)],'channelType':_0x4e8597[_0x49c61e(0x128)],'endpointUrl':_0x4e8597['endpointUrl'],'channelConfig':_0x4e8597['channelConfig'],'description':_0x4e8597[_0x49c61e(0x119)],'connectTimeout':_0x4e8597[_0x49c61e(0x11c)]??DEFAULT_NOTIFICATION_CONNECT_TIMEOUT,'readTimeout':_0x4e8597['readTimeout']??DEFAULT_NOTIFICATION_READ_TIMEOUT})};}export const notificationConfigCreate={'service':a176_0x38374b(0x123),'command':a176_0x38374b(0x112),'description':'Create\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20source','risk':a176_0x38374b(0x115),'requiresAppCode':!![],'structuredErrors':!![],'flags':[...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x2a2371){assertSingleNotificationSource(_0x2a2371);},async 'dryRun'(_0x53a68e){const _0x4f830a=a176_0x38374b,_0x2e5f12=await prepareCreate(_0x53a68e),_0x323b7e=notificationLookupCommand(_0x53a68e[_0x4f830a(0x11b)],_0x2e5f12[_0x4f830a(0x12e)][_0x4f830a(0x128)]);return asDryRunResult({'operation':'create','selector':{'appCode':_0x53a68e[_0x4f830a(0x11b)],'configName':_0x2e5f12[_0x4f830a(0x12e)][_0x4f830a(0x10d)],'channelType':_0x2e5f12[_0x4f830a(0x12e)][_0x4f830a(0x128)]},'before':null,'after':_0x2e5f12['planned'],'dryRun':!![],'backend':{'method':'POST','path':CREATE_PATH},'warnings':[],'verification':{'status':_0x4f830a(0x11f),'lookupCommand':_0x323b7e}},{'method':_0x4f830a(0x114),'url':CREATE_PATH});},async 'execute'(_0x3d2681){const _0xc86f32=a176_0x38374b,_0x5ea2e6=await prepareCreate(_0x3d2681),_0x19a3c8=notificationLookupCommand(_0x3d2681[_0xc86f32(0x11b)],_0x5ea2e6[_0xc86f32(0x12e)][_0xc86f32(0x128)]);let _0x1e05e2;try{_0x1e05e2=await createNotificationChannelConfig(_0x5ea2e6['input']);}catch(_0x337124){if(isPlatformTransportFailure(_0x337124))throw notificationError(_0xc86f32(0x111),'Notification\x20config\x20create\x20outcome\x20is\x20unknown\x20because\x20no\x20server\x20ID\x20was\x20received.',_0xc86f32(0x11e)+_0x19a3c8+_0xc86f32(0x126));throw safeApiFailure('create',_0xc86f32(0x113),_0xc86f32(0x11e)+_0x19a3c8+';\x20no\x20automatic\x20retry\x20was\x20attempted.');}if(!Number[_0xc86f32(0x11a)](_0x1e05e2)||_0x1e05e2<=0x0)throw notificationError(_0xc86f32(0x111),_0xc86f32(0x12d),'Inspect\x20with\x20'+_0x19a3c8+_0xc86f32(0x126));let _0x4bb537;try{const _0x185add=await getNotificationChannelConfig(_0x1e05e2,_0x3d2681[_0xc86f32(0x11b)]);_0x4bb537=normalizeExactNotificationConfig(_0x185add,_0x1e05e2,_0x3d2681['appCode']);}catch{throw safeApiFailure(_0xc86f32(0x10f),_0xc86f32(0x110),_0xc86f32(0x11e)+_0x19a3c8+_0xc86f32(0x11d));}return{'ok':!![],'data':{'operation':_0xc86f32(0x10f),'selector':{'appCode':_0x4bb537[_0xc86f32(0x11b)],'id':_0x4bb537['id'],'configCode':_0x4bb537[_0xc86f32(0x10c)],'configName':_0x4bb537[_0xc86f32(0x10d)],'channelType':_0x4bb537[_0xc86f32(0x128)]},'before':null,'after':projectNotificationConfig(_0x4bb537),'dryRun':![],'backend':{'method':_0xc86f32(0x114),'path':CREATE_PATH},'warnings':[],'verification':{'status':_0xc86f32(0x117),'lookupCommand':_0x19a3c8}},'message':_0xc86f32(0x127)+_0x4bb537['id']};}};
@@ -1 +1 @@
1
- const a177_0x3519af=a177_0x4184;(function(_0x575b9d,_0x3d8f3b){const _0x1b8e7c=a177_0x4184,_0x2669a9=_0x575b9d();while(!![]){try{const _0x31741b=-parseInt(_0x1b8e7c(0x131))/0x1+parseInt(_0x1b8e7c(0x145))/0x2+parseInt(_0x1b8e7c(0x144))/0x3*(-parseInt(_0x1b8e7c(0x129))/0x4)+parseInt(_0x1b8e7c(0x12c))/0x5+-parseInt(_0x1b8e7c(0x137))/0x6*(-parseInt(_0x1b8e7c(0x136))/0x7)+parseInt(_0x1b8e7c(0x134))/0x8+-parseInt(_0x1b8e7c(0x141))/0x9*(parseInt(_0x1b8e7c(0x139))/0xa);if(_0x31741b===_0x3d8f3b)break;else _0x2669a9['push'](_0x2669a9['shift']());}catch(_0x14399a){_0x2669a9['push'](_0x2669a9['shift']());}}}(a177_0x1f5c,0xa263e));import{asDryRunResult}from'../../commands/common/dry-run.js';function a177_0x4184(_0x40f59e,_0x397e63){_0x40f59e=_0x40f59e-0x129;const _0x1f5cb1=a177_0x1f5c();let _0x418479=_0x1f5cb1[_0x40f59e];return _0x418479;}function a177_0x1f5c(){const _0x5c5e7d=['500hqEBCt','delete','Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.','POST','notification_config_delete_outcome_unknown','notification_config_delete_verification_unavailable','\x20remains\x20present\x20after\x20delete.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','188739ireAaN','channelType','before','63027yFVyYh','2546900ZuaIZj','unshift','156qHkWFC','planned','Deleted\x20notification\x20config\x20','2301745OUmkSn','\x20delete\x20could\x20not\x20be\x20verified.','appCode','Notification\x20config\x20','notification','512404bAtZqB','some','notification_config_delete_verification_failed','3493728zmrEzc','config-delete','14FvYhUE','2624820lOYKyC','Inspect\x20with\x20'];a177_0x1f5c=function(){return _0x5c5e7d;};return a177_0x1f5c();}import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH='/notification/channel-config/delete',REFERENCE_WARNING='Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.';async function prepareDelete(_0x1ff452){const _0x8da82f=a177_0x4184,_0x1b07c5=readNotificationId(_0x1ff452),_0x4a20b8=await requireExactNotificationConfig(_0x1ff452['appCode'],_0x1b07c5,_0x8da82f(0x13a));return{'id':_0x1b07c5,'before':_0x4a20b8};}export const notificationConfigDelete={'service':a177_0x3519af(0x130),'command':a177_0x3519af(0x135),'description':a177_0x3519af(0x140),'risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x41f0b5){readNotificationId(_0x41f0b5),requireNotificationExplicitYes(_0x41f0b5);},async 'dryRun'(_0x44a1c6){const _0x2c2e98=a177_0x3519af,_0x210fef=await prepareDelete(_0x44a1c6),_0x4b549d=notificationLookupCommand(_0x44a1c6[_0x2c2e98(0x12e)],_0x210fef[_0x2c2e98(0x143)][_0x2c2e98(0x142)]);return asDryRunResult({'operation':'delete','selector':notificationSelector(_0x210fef['before']),'before':projectNotificationConfig(_0x210fef['before']),'after':null,'dryRun':!![],'backend':{'method':_0x2c2e98(0x13c),'path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2c2e98(0x12a),'lookupCommand':_0x4b549d}},{'method':_0x2c2e98(0x13c),'url':DELETE_PATH});},async 'execute'(_0x54e690){const _0x12ac0c=a177_0x3519af;requireNotificationExplicitYes(_0x54e690);const _0x5d1741=await prepareDelete(_0x54e690),_0x235b9e=notificationLookupCommand(_0x54e690[_0x12ac0c(0x12e)],_0x5d1741['before'][_0x12ac0c(0x142)]);let _0x1c6f1e=![];try{await deleteNotificationChannelConfig(_0x5d1741['id'],_0x54e690[_0x12ac0c(0x12e)]);}catch(_0x652415){if(!isPlatformTransportFailure(_0x652415))throw safeApiFailure(_0x12ac0c(0x13a),'mutation',_0x12ac0c(0x138)+_0x235b9e+';\x20no\x20automatic\x20retry\x20was\x20attempted.');_0x1c6f1e=!![];}let _0x1a3227;try{_0x1a3227=await listNotificationChannelConfigs(_0x54e690['appCode'],_0x5d1741[_0x12ac0c(0x143)][_0x12ac0c(0x142)]),validateNotificationDeleteReadback(_0x1a3227,_0x54e690[_0x12ac0c(0x12e)],_0x5d1741[_0x12ac0c(0x143)][_0x12ac0c(0x142)]);}catch{throw notificationError(_0x1c6f1e?'notification_config_delete_outcome_unknown':_0x12ac0c(0x13e),_0x12ac0c(0x12f)+_0x5d1741['id']+_0x12ac0c(0x12d),'Inspect\x20with\x20'+_0x235b9e+';\x20do\x20not\x20resubmit\x20automatically.');}if(_0x1a3227[_0x12ac0c(0x132)](_0x4e2b62=>_0x4e2b62['id']===_0x5d1741['id']))throw notificationError(_0x1c6f1e?_0x12ac0c(0x13d):_0x12ac0c(0x133),_0x12ac0c(0x12f)+_0x5d1741['id']+_0x12ac0c(0x13f),'Inspect\x20with\x20'+_0x235b9e+';\x20do\x20not\x20resubmit\x20automatically.');const _0x119bf1=[REFERENCE_WARNING];return _0x1c6f1e&&_0x119bf1[_0x12ac0c(0x146)](_0x12ac0c(0x13b)),{'ok':!![],'data':{'operation':_0x12ac0c(0x13a),'selector':notificationSelector(_0x5d1741[_0x12ac0c(0x143)]),'before':projectNotificationConfig(_0x5d1741[_0x12ac0c(0x143)]),'after':null,'dryRun':![],'backend':{'method':_0x12ac0c(0x13c),'path':DELETE_PATH},'warnings':_0x119bf1,'verification':{'status':'verified','absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x1c6f1e,'lookupCommand':_0x235b9e}},'message':_0x12ac0c(0x12b)+_0x5d1741['id']};}};
1
+ const a177_0x57215f=a177_0x4ead;function a177_0x352d(){const _0x4fa226=['notification','before','verified','4087818lNyKlw','mutation','1692131Qglalx','delete','notification_config_delete_outcome_unknown','POST','2734392CzYKkS','planned','Inspect\x20with\x20','6955304nWvPMr','high-risk-write','some','Notification\x20config\x20','channelType','\x20delete\x20could\x20not\x20be\x20verified.','Delete\x20an\x20app-level\x20notification\x20config\x20after\x20exact\x20preflight','\x20remains\x20present\x20after\x20delete.','10cblvne','/notification/channel-config/delete','2CySHHO','4576887mfWseo','Deleted\x20notification\x20config\x20','config-delete','notification_config_delete_verification_failed','167478quEqla','Deleting\x20this\x20app-level\x20config\x20may\x20make\x20dataset-level\x20channels\x20that\x20reference\x20it\x20unavailable;\x20dataset\x20references\x20were\x20not\x20verified\x20by\x20the\x20CLI.','appCode','183VSiTKk','62136QyqfEG','285GBbfEV',';\x20no\x20automatic\x20retry\x20was\x20attempted.','44oavorG',';\x20do\x20not\x20resubmit\x20automatically.'];a177_0x352d=function(){return _0x4fa226;};return a177_0x352d();}(function(_0xf2f701,_0x50174e){const _0x472dec=a177_0x4ead,_0x593da8=_0xf2f701();while(!![]){try{const _0x49b24e=parseInt(_0x472dec(0xfb))/0x1*(parseInt(_0x472dec(0xe8))/0x2)+-parseInt(_0x472dec(0xf0))/0x3*(-parseInt(_0x472dec(0xf1))/0x4)+parseInt(_0x472dec(0xf2))/0x5*(-parseInt(_0x472dec(0xed))/0x6)+-parseInt(_0x472dec(0xe9))/0x7+-parseInt(_0x472dec(0x102))/0x8+parseInt(_0x472dec(0xf9))/0x9*(parseInt(_0x472dec(0xe6))/0xa)+parseInt(_0x472dec(0xf4))/0xb*(parseInt(_0x472dec(0xff))/0xc);if(_0x49b24e===_0x50174e)break;else _0x593da8['push'](_0x593da8['shift']());}catch(_0x6ede49){_0x593da8['push'](_0x593da8['shift']());}}}(a177_0x352d,0xd98c4));import{asDryRunResult}from'../../commands/common/dry-run.js';import{deleteNotificationChannelConfig,isPlatformTransportFailure,listNotificationChannelConfigs}from'../../core/api-client.js';import{notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,projectNotificationConfig,readNotificationId,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure,validateNotificationDeleteReadback}from'../../commands/notification/shared.js';const DELETE_PATH=a177_0x57215f(0xe7),REFERENCE_WARNING=a177_0x57215f(0xee);function a177_0x4ead(_0x5d76bc,_0x5a6004){_0x5d76bc=_0x5d76bc-0xe2;const _0x352d35=a177_0x352d();let _0x4ead94=_0x352d35[_0x5d76bc];return _0x4ead94;}async function prepareDelete(_0x1e1601){const _0x13ac16=a177_0x57215f,_0x51fad3=readNotificationId(_0x1e1601),_0x190f5d=await requireExactNotificationConfig(_0x1e1601[_0x13ac16(0xef)],_0x51fad3,_0x13ac16(0xfc));return{'id':_0x51fad3,'before':_0x190f5d};}export const notificationConfigDelete={'service':a177_0x57215f(0xf6),'command':a177_0x57215f(0xeb),'description':a177_0x57215f(0xe4),'risk':a177_0x57215f(0x103),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,NOTIFICATION_APP_FLAG],async 'validate'(_0x23c2b5){readNotificationId(_0x23c2b5),requireNotificationExplicitYes(_0x23c2b5);},async 'dryRun'(_0x448e8f){const _0x2bd661=a177_0x57215f,_0x470842=await prepareDelete(_0x448e8f),_0x296ff7=notificationLookupCommand(_0x448e8f['appCode'],_0x470842[_0x2bd661(0xf7)]['channelType']);return asDryRunResult({'operation':_0x2bd661(0xfc),'selector':notificationSelector(_0x470842[_0x2bd661(0xf7)]),'before':projectNotificationConfig(_0x470842['before']),'after':null,'dryRun':!![],'backend':{'method':'POST','path':DELETE_PATH},'warnings':[REFERENCE_WARNING],'verification':{'status':_0x2bd661(0x100),'lookupCommand':_0x296ff7}},{'method':_0x2bd661(0xfe),'url':DELETE_PATH});},async 'execute'(_0x1abcf6){const _0x144cf1=a177_0x57215f;requireNotificationExplicitYes(_0x1abcf6);const _0x3d48f2=await prepareDelete(_0x1abcf6),_0x25ee2e=notificationLookupCommand(_0x1abcf6[_0x144cf1(0xef)],_0x3d48f2[_0x144cf1(0xf7)][_0x144cf1(0xe2)]);let _0x403538=![];try{await deleteNotificationChannelConfig(_0x3d48f2['id'],_0x1abcf6[_0x144cf1(0xef)]);}catch(_0x3ad45b){if(!isPlatformTransportFailure(_0x3ad45b))throw safeApiFailure(_0x144cf1(0xfc),_0x144cf1(0xfa),_0x144cf1(0x101)+_0x25ee2e+_0x144cf1(0xf3));_0x403538=!![];}let _0x173867;try{_0x173867=await listNotificationChannelConfigs(_0x1abcf6[_0x144cf1(0xef)],_0x3d48f2['before']['channelType']),validateNotificationDeleteReadback(_0x173867,_0x1abcf6[_0x144cf1(0xef)],_0x3d48f2[_0x144cf1(0xf7)][_0x144cf1(0xe2)]);}catch{throw notificationError(_0x403538?'notification_config_delete_outcome_unknown':'notification_config_delete_verification_unavailable',_0x144cf1(0x105)+_0x3d48f2['id']+_0x144cf1(0xe3),_0x144cf1(0x101)+_0x25ee2e+_0x144cf1(0xf5));}if(_0x173867[_0x144cf1(0x104)](_0x2d8cc1=>_0x2d8cc1['id']===_0x3d48f2['id']))throw notificationError(_0x403538?_0x144cf1(0xfd):_0x144cf1(0xec),'Notification\x20config\x20'+_0x3d48f2['id']+_0x144cf1(0xe5),_0x144cf1(0x101)+_0x25ee2e+_0x144cf1(0xf5));const _0x286c09=[REFERENCE_WARNING];return _0x403538&&_0x286c09['unshift']('Delete\x20response\x20was\x20unavailable;\x20list\x20readback\x20proved\x20ID\x20absence\x20without\x20resubmitting.'),{'ok':!![],'data':{'operation':_0x144cf1(0xfc),'selector':notificationSelector(_0x3d48f2['before']),'before':projectNotificationConfig(_0x3d48f2[_0x144cf1(0xf7)]),'after':null,'dryRun':![],'backend':{'method':_0x144cf1(0xfe),'path':DELETE_PATH},'warnings':_0x286c09,'verification':{'status':_0x144cf1(0xf8),'absenceConfirmed':!![],'recoveredAfterUnknownResponse':_0x403538,'lookupCommand':_0x25ee2e}},'message':_0x144cf1(0xea)+_0x3d48f2['id']};}};
@@ -1 +1 @@
1
- function a178_0x23e7(_0x5580f1,_0x144a35){_0x5580f1=_0x5580f1-0x144;const _0x2f910c=a178_0x2f91();let _0x23e7aa=_0x2f910c[_0x5580f1];return _0x23e7aa;}const a178_0x3d9166=a178_0x23e7;(function(_0x2e88ba,_0x18f7ed){const _0xddcfc=a178_0x23e7,_0xb72e65=_0x2e88ba();while(!![]){try{const _0x20de4c=-parseInt(_0xddcfc(0x15f))/0x1+parseInt(_0xddcfc(0x154))/0x2*(-parseInt(_0xddcfc(0x148))/0x3)+-parseInt(_0xddcfc(0x155))/0x4*(-parseInt(_0xddcfc(0x14c))/0x5)+-parseInt(_0xddcfc(0x152))/0x6*(parseInt(_0xddcfc(0x15b))/0x7)+-parseInt(_0xddcfc(0x150))/0x8+parseInt(_0xddcfc(0x14f))/0x9*(parseInt(_0xddcfc(0x144))/0xa)+parseInt(_0xddcfc(0x159))/0xb;if(_0x20de4c===_0x18f7ed)break;else _0xb72e65['push'](_0xb72e65['shift']());}catch(_0x510db8){_0xb72e65['push'](_0xb72e65['shift']());}}}(a178_0x2f91,0xd2130));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a178_0x2f91(){const _0x38f27f=['Notification\x20channel\x20type','48UWrZPs','length','1925604IMwxsi','4267972RelqhR','trim','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','bool','22030008cmLqwQ','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','90517JiTonY','map','boolean','all','793419xucYUx','string','Found\x20','4000310KzdjMZ','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','flat','type','3mbXgjW','\x20notification\x20config(s)','notification','appCode','5rhqvvA','config-list','str','18zZvEzl','9197200MrEMlK'];a178_0x2f91=function(){return _0x38f27f;};return a178_0x2f91();}import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a178_0x3d9166(0x14a),'command':a178_0x3d9166(0x14d),'description':a178_0x3d9166(0x157),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'type','type':a178_0x3d9166(0x160),'description':a178_0x3d9166(0x151),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a178_0x3d9166(0x15e),'type':a178_0x3d9166(0x15d),'default':![],'description':a178_0x3d9166(0x15a)}],async 'validate'(_0x54d7a9){const _0x4fa941=a178_0x3d9166;if(_0x54d7a9[_0x4fa941(0x158)]('all')&&_0x54d7a9[_0x4fa941(0x14e)](_0x4fa941(0x147))[_0x4fa941(0x156)]())throw CliErrors['validation']('--all\x20and\x20--type\x20are\x20mutually\x20exclusive.',_0x4fa941(0x145));if(_0x54d7a9[_0x4fa941(0x158)](_0x4fa941(0x15e)))return;readNotificationChannelType(_0x54d7a9);},async 'execute'(_0x33ec98){const _0x23a3d0=a178_0x3d9166;if(_0x33ec98[_0x23a3d0(0x158)]('all')){const _0x1ec3f6=await Promise[_0x23a3d0(0x15e)](NOTIFICATION_CHANNEL_TYPES[_0x23a3d0(0x15c)](_0x36921d=>listNotificationChannelConfigs(_0x33ec98[_0x23a3d0(0x14b)],_0x36921d))),_0x11e626=_0x1ec3f6[_0x23a3d0(0x146)]()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x33ec98['appCode'],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x11e626['length'],'configs':_0x11e626},'message':_0x23a3d0(0x161)+_0x11e626[_0x23a3d0(0x153)]+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x1c09d3=readNotificationChannelType(_0x33ec98),_0x1b44d6=await listNotificationChannelConfigs(_0x33ec98[_0x23a3d0(0x14b)],_0x1c09d3),_0x29c48f=_0x1b44d6[_0x23a3d0(0x15c)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x33ec98[_0x23a3d0(0x14b)],'channelType':_0x1c09d3,'count':_0x29c48f[_0x23a3d0(0x153)],'configs':_0x29c48f},'message':_0x23a3d0(0x161)+_0x29c48f[_0x23a3d0(0x153)]+'\x20'+_0x1c09d3+_0x23a3d0(0x149)};}};
1
+ const a178_0x1f8293=a178_0x41a2;function a178_0x41a2(_0x38e5d2,_0x375f66){_0x38e5d2=_0x38e5d2-0x93;const _0x39e0c6=a178_0x39e0();let _0x41a295=_0x39e0c6[_0x38e5d2];return _0x41a295;}function a178_0x39e0(){const _0x9a7fd8=['trim','validation','Notification\x20channel\x20type','Found\x20','string','List\x20configs\x20for\x20every\x20supported\x20notification\x20channel\x20type','24514516PFlXzv','684rqkGPX','40kcYHYe','76380aKoIVW','all','\x20notification\x20config(s)','boolean','notification','29267yJRALC','838434PhNKnn','312eWxFOo','788lFGIaG','6BuihWC','203080FLlYmo','4155qRZHCX','593927vSBglU','Use\x20--all,\x20or\x20query\x20one\x20explicit\x20--type.','map','--all\x20and\x20--type\x20are\x20mutually\x20exclusive.','1738yDbqWz','length','bool','flat','type','appCode'];a178_0x39e0=function(){return _0x9a7fd8;};return a178_0x39e0();}(function(_0x5405fc,_0x29d7aa){const _0x3a75a0=a178_0x41a2,_0xc22901=_0x5405fc();while(!![]){try{const _0x1089a1=parseInt(_0x3a75a0(0xae))/0x1*(parseInt(_0x3a75a0(0xab))/0x2)+parseInt(_0x3a75a0(0xad))/0x3*(parseInt(_0x3a75a0(0xaa))/0x4)+-parseInt(_0x3a75a0(0xa1))/0x5*(-parseInt(_0x3a75a0(0xa8))/0x6)+parseInt(_0x3a75a0(0xa7))/0x7*(parseInt(_0x3a75a0(0xa9))/0x8)+-parseInt(_0x3a75a0(0xa0))/0x9*(parseInt(_0x3a75a0(0xac))/0xa)+parseInt(_0x3a75a0(0x93))/0xb*(parseInt(_0x3a75a0(0xa2))/0xc)+-parseInt(_0x3a75a0(0x9f))/0xd;if(_0x1089a1===_0x29d7aa)break;else _0xc22901['push'](_0xc22901['shift']());}catch(_0x494b00){_0xc22901['push'](_0xc22901['shift']());}}}(a178_0x39e0,0xdeaff));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{NOTIFICATION_CHANNEL_TYPES,projectNotificationListConfig,readNotificationChannelType}from'../../commands/notification/shared.js';export const notificationConfigList={'service':a178_0x1f8293(0xa6),'command':'config-list','description':'List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a178_0x1f8293(0x97),'type':a178_0x1f8293(0x9d),'description':a178_0x1f8293(0x9b),'enum':NOTIFICATION_CHANNEL_TYPES},{'name':a178_0x1f8293(0xa3),'type':a178_0x1f8293(0xa5),'default':![],'description':a178_0x1f8293(0x9e)}],async 'validate'(_0x1d3342){const _0x3d4b48=a178_0x1f8293;if(_0x1d3342[_0x3d4b48(0x95)](_0x3d4b48(0xa3))&&_0x1d3342['str'](_0x3d4b48(0x97))[_0x3d4b48(0x99)]())throw CliErrors[_0x3d4b48(0x9a)](_0x3d4b48(0xb1),_0x3d4b48(0xaf));if(_0x1d3342['bool'](_0x3d4b48(0xa3)))return;readNotificationChannelType(_0x1d3342);},async 'execute'(_0x47833f){const _0x177c0c=a178_0x1f8293;if(_0x47833f[_0x177c0c(0x95)](_0x177c0c(0xa3))){const _0x252d48=await Promise[_0x177c0c(0xa3)](NOTIFICATION_CHANNEL_TYPES[_0x177c0c(0xb0)](_0x2827b2=>listNotificationChannelConfigs(_0x47833f[_0x177c0c(0x98)],_0x2827b2))),_0x180505=_0x252d48[_0x177c0c(0x96)]()['map'](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x47833f[_0x177c0c(0x98)],'channelTypes':NOTIFICATION_CHANNEL_TYPES,'count':_0x180505[_0x177c0c(0x94)],'configs':_0x180505},'message':_0x177c0c(0x9c)+_0x180505['length']+'\x20notification\x20config(s)\x20across\x20all\x20channel\x20types'};}const _0x3941d2=readNotificationChannelType(_0x47833f),_0x5412b8=await listNotificationChannelConfigs(_0x47833f[_0x177c0c(0x98)],_0x3941d2),_0x22f1ca=_0x5412b8[_0x177c0c(0xb0)](projectNotificationListConfig);return{'ok':!![],'data':{'appCode':_0x47833f['appCode'],'channelType':_0x3941d2,'count':_0x22f1ca[_0x177c0c(0x94)],'configs':_0x22f1ca},'message':'Found\x20'+_0x22f1ca['length']+'\x20'+_0x3941d2+_0x177c0c(0xa4)};}};
@@ -1 +1 @@
1
- const a179_0x3bacbd=a179_0x5797;(function(_0x215e09,_0x2ca505){const _0x18eca0=a179_0x5797,_0x5e9e32=_0x215e09();while(!![]){try{const _0x170688=-parseInt(_0x18eca0(0x152))/0x1+parseInt(_0x18eca0(0x14e))/0x2+parseInt(_0x18eca0(0x14b))/0x3+-parseInt(_0x18eca0(0x146))/0x4+parseInt(_0x18eca0(0x149))/0x5*(-parseInt(_0x18eca0(0x148))/0x6)+-parseInt(_0x18eca0(0x13c))/0x7+parseInt(_0x18eca0(0x156))/0x8*(parseInt(_0x18eca0(0x14f))/0x9);if(_0x170688===_0x2ca505)break;else _0x5e9e32['push'](_0x5e9e32['shift']());}catch(_0x127b6a){_0x5e9e32['push'](_0x5e9e32['shift']());}}}(a179_0x2aae,0xd1b82));import{asDryRunResult}from'../../commands/common/dry-run.js';function a179_0x5797(_0xe4506a,_0x268e25){_0xe4506a=_0xe4506a-0x139;const _0x2aae6c=a179_0x2aae();let _0x5797c2=_0x2aae6c[_0xe4506a];return _0x5797c2;}import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH='/notification/channel-config/update';function a179_0x2aae(){const _0x59872b=['Inspect\x20with\x20--id\x20','2858660CcgTgS','notification_config_update_outcome_unknown','2482212ncLpza','15IzUxPD','notification','5021064WPSjpA','\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','POST','1259378nBwndt','14367105QBqhoo','verified','Updated\x20notification\x20config\x20','1622986yLWGBM','patch','verifiedFields','before','16IXLxbg','config-update','\x20with\x20','provesChange','update',';\x20do\x20not\x20resubmit\x20automatically.','notification_config_update_verification_unavailable','Inspect\x20ID\x20','mutation','\x20via\x20','7408100KFLXLy','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.',';\x20no\x20automatic\x20retry\x20was\x20attempted.','Notification\x20config\x20','planned','appCode','channelType','payload','notification_config_update_verification_failed'];a179_0x2aae=function(){return _0x59872b;};return a179_0x2aae();}async function prepareUpdate(_0x2ac079){const _0x3bb2b1=a179_0x5797,_0x4402d6=readNotificationId(_0x2ac079),_0x5b36ef=await readNotificationDocument(_0x2ac079,_0x3bb2b1(0x15a)),_0x567ad2=await requireExactNotificationConfig(_0x2ac079[_0x3bb2b1(0x141)],_0x4402d6,_0x3bb2b1(0x15a));return{'id':_0x4402d6,'patch':_0x5b36ef,'before':_0x567ad2,'payload':mergeUpdateInput(_0x567ad2,_0x5b36ef),'planned':plannedUpdateProjection(_0x567ad2,_0x5b36ef)};}export const notificationConfigUpdate={'service':a179_0x3bacbd(0x14a),'command':a179_0x3bacbd(0x157),'description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':'high-risk-write','requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x3b7001){readNotificationId(_0x3b7001),assertSingleNotificationSource(_0x3b7001),requireNotificationExplicitYes(_0x3b7001);},async 'dryRun'(_0x2ff77c){const _0x436582=a179_0x3bacbd,_0x30d522=await prepareUpdate(_0x2ff77c),_0x43cd9f=notificationLookupCommand(_0x2ff77c['appCode'],_0x30d522[_0x436582(0x155)]['channelType']);return asDryRunResult({'operation':_0x436582(0x15a),'selector':notificationSelector(_0x30d522[_0x436582(0x155)]),'before':projectNotificationConfig(_0x30d522[_0x436582(0x155)]),'after':_0x30d522[_0x436582(0x140)],'dryRun':!![],'backend':{'method':_0x436582(0x14d),'path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x436582(0x140),'lookupCommand':_0x43cd9f}},{'method':_0x436582(0x14d),'url':UPDATE_PATH});},async 'execute'(_0x47d2e9){const _0x4b046f=a179_0x3bacbd;requireNotificationExplicitYes(_0x47d2e9);const _0x453f8d=await prepareUpdate(_0x47d2e9),_0x3a83a8=notificationLookupCommand(_0x47d2e9['appCode'],_0x453f8d[_0x4b046f(0x155)][_0x4b046f(0x142)]);let _0x1359a3=![];try{await updateNotificationChannelConfig(_0x453f8d[_0x4b046f(0x143)]);}catch(_0x13fc8e){if(!isPlatformTransportFailure(_0x13fc8e))throw safeApiFailure(_0x4b046f(0x15a),_0x4b046f(0x13a),_0x4b046f(0x139)+_0x453f8d['id']+_0x4b046f(0x158)+_0x3a83a8+_0x4b046f(0x13e));_0x1359a3=!![];}let _0x1a31e0;try{const _0x3f3b8f=await getNotificationChannelConfig(_0x453f8d['id'],_0x47d2e9[_0x4b046f(0x141)]);_0x1a31e0=normalizeExactNotificationConfig(_0x3f3b8f,_0x453f8d['id'],_0x47d2e9['appCode']);}catch{throw notificationError(_0x1359a3?_0x4b046f(0x147):_0x4b046f(0x15c),_0x4b046f(0x13f)+_0x453f8d['id']+'\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.',_0x4b046f(0x145)+_0x453f8d['id']+_0x4b046f(0x13b)+_0x3a83a8+_0x4b046f(0x15b));}const _0xbb5f3=requestedSafeFieldsMatch(_0x453f8d[_0x4b046f(0x155)],_0x1a31e0,_0x453f8d[_0x4b046f(0x153)]);if(!_0xbb5f3['allMatch']||_0x1359a3&&!_0xbb5f3[_0x4b046f(0x159)])throw notificationError(_0x1359a3?_0x4b046f(0x147):_0x4b046f(0x144),_0x4b046f(0x13f)+_0x453f8d['id']+_0x4b046f(0x14c),_0x4b046f(0x145)+_0x453f8d['id']+_0x4b046f(0x13b)+_0x3a83a8+_0x4b046f(0x15b));const _0x511df5=_0x1359a3?[_0x4b046f(0x13d)]:[];return{'ok':!![],'data':{'operation':_0x4b046f(0x15a),'selector':notificationSelector(_0x1a31e0),'before':projectNotificationConfig(_0x453f8d[_0x4b046f(0x155)]),'after':projectNotificationConfig(_0x1a31e0),'dryRun':![],'backend':{'method':_0x4b046f(0x14d),'path':UPDATE_PATH},'warnings':_0x511df5,'verification':{'status':_0x4b046f(0x150),'recoveredAfterUnknownResponse':_0x1359a3,'verifiedFields':_0xbb5f3[_0x4b046f(0x154)],'lookupCommand':_0x3a83a8}},'message':_0x4b046f(0x151)+_0x1a31e0['id']};}};
1
+ const a179_0x36ec12=a179_0x5290;function a179_0x5290(_0x6a4efc,_0x1c9627){_0x6a4efc=_0x6a4efc-0x1b1;const _0x3a2dd5=a179_0x3a2d();let _0x529028=_0x3a2dd5[_0x6a4efc];return _0x529028;}(function(_0x2d293a,_0x448cf8){const _0xad74cd=a179_0x5290,_0x2d8b29=_0x2d293a();while(!![]){try{const _0x21c25c=-parseInt(_0xad74cd(0x1b3))/0x1*(-parseInt(_0xad74cd(0x1c8))/0x2)+-parseInt(_0xad74cd(0x1c0))/0x3*(parseInt(_0xad74cd(0x1b8))/0x4)+parseInt(_0xad74cd(0x1cb))/0x5+-parseInt(_0xad74cd(0x1b9))/0x6*(-parseInt(_0xad74cd(0x1d4))/0x7)+parseInt(_0xad74cd(0x1be))/0x8*(parseInt(_0xad74cd(0x1b1))/0x9)+-parseInt(_0xad74cd(0x1cc))/0xa+-parseInt(_0xad74cd(0x1d2))/0xb;if(_0x21c25c===_0x448cf8)break;else _0x2d8b29['push'](_0x2d8b29['shift']());}catch(_0x284847){_0x2d8b29['push'](_0x2d8b29['shift']());}}}(a179_0x3a2d,0x3ce67));import{asDryRunResult}from'../../commands/common/dry-run.js';import{getNotificationChannelConfig,isPlatformTransportFailure,updateNotificationChannelConfig}from'../../core/api-client.js';import{assertSingleNotificationSource,mergeUpdateInput,normalizeExactNotificationConfig,notificationError,notificationLookupCommand,notificationSelector,NOTIFICATION_APP_FLAG,NOTIFICATION_ID_FLAG,NOTIFICATION_INPUT_FLAGS,plannedUpdateProjection,projectNotificationConfig,readNotificationDocument,readNotificationId,requestedSafeFieldsMatch,requireNotificationExplicitYes,requireExactNotificationConfig,safeApiFailure}from'../../commands/notification/shared.js';const UPDATE_PATH=a179_0x36ec12(0x1c7);function a179_0x3a2d(){const _0x1cd387=['patch','Updated\x20notification\x20config\x20',';\x20no\x20automatic\x20retry\x20was\x20attempted.','/notification/channel-config/update','19862fDcvmu','\x20with\x20','provesChange','1067150czovMD','3692190DeZqgm','\x20update\x20could\x20not\x20be\x20verified\x20by\x20exact\x20ID.','channelType','notification_config_update_verification_unavailable','verified','Notification\x20config\x20','7412493PJkLag','notification_config_update_outcome_unknown','105fyxdAK','45MeJeOm','high-risk-write','43hiqneS','mutation','planned','POST',';\x20do\x20not\x20resubmit\x20automatically.','697756XQYYxe','191766CfwUAr','appCode','payload','Inspect\x20with\x20--id\x20','Inspect\x20ID\x20','555344dSdjAV','Update\x20response\x20was\x20unavailable;\x20exact-ID\x20readback\x20proved\x20changed\x20safe\x20fields\x20without\x20resubmitting.','3QoxfYT','update','before','notification_config_update_verification_failed'];a179_0x3a2d=function(){return _0x1cd387;};return a179_0x3a2d();}async function prepareUpdate(_0x41806d){const _0x25bae6=a179_0x36ec12,_0x270f6c=readNotificationId(_0x41806d),_0xd8143f=await readNotificationDocument(_0x41806d,_0x25bae6(0x1c1)),_0x3dd950=await requireExactNotificationConfig(_0x41806d[_0x25bae6(0x1ba)],_0x270f6c,_0x25bae6(0x1c1));return{'id':_0x270f6c,'patch':_0xd8143f,'before':_0x3dd950,'payload':mergeUpdateInput(_0x3dd950,_0xd8143f),'planned':plannedUpdateProjection(_0x3dd950,_0xd8143f)};}export const notificationConfigUpdate={'service':'notification','command':'config-update','description':'Update\x20an\x20app-level\x20notification\x20config\x20from\x20a\x20secure\x20JSON\x20patch','risk':a179_0x36ec12(0x1b2),'requiresAppCode':!![],'structuredErrors':!![],'flags':[NOTIFICATION_ID_FLAG,...NOTIFICATION_INPUT_FLAGS,NOTIFICATION_APP_FLAG],async 'validate'(_0x54b24f){readNotificationId(_0x54b24f),assertSingleNotificationSource(_0x54b24f),requireNotificationExplicitYes(_0x54b24f);},async 'dryRun'(_0x14f917){const _0x357526=a179_0x36ec12,_0x35f91e=await prepareUpdate(_0x14f917),_0x20bb3e=notificationLookupCommand(_0x14f917[_0x357526(0x1ba)],_0x35f91e[_0x357526(0x1c2)]['channelType']);return asDryRunResult({'operation':_0x357526(0x1c1),'selector':notificationSelector(_0x35f91e[_0x357526(0x1c2)]),'before':projectNotificationConfig(_0x35f91e[_0x357526(0x1c2)]),'after':_0x35f91e['planned'],'dryRun':!![],'backend':{'method':'POST','path':UPDATE_PATH},'warnings':[],'verification':{'status':_0x357526(0x1b5),'lookupCommand':_0x20bb3e}},{'method':_0x357526(0x1b6),'url':UPDATE_PATH});},async 'execute'(_0x4e74ef){const _0x1a1034=a179_0x36ec12;requireNotificationExplicitYes(_0x4e74ef);const _0x2b56a9=await prepareUpdate(_0x4e74ef),_0x260944=notificationLookupCommand(_0x4e74ef[_0x1a1034(0x1ba)],_0x2b56a9[_0x1a1034(0x1c2)][_0x1a1034(0x1ce)]);let _0xfe162a=![];try{await updateNotificationChannelConfig(_0x2b56a9[_0x1a1034(0x1bb)]);}catch(_0xfbfb7){if(!isPlatformTransportFailure(_0xfbfb7))throw safeApiFailure(_0x1a1034(0x1c1),_0x1a1034(0x1b4),_0x1a1034(0x1bd)+_0x2b56a9['id']+_0x1a1034(0x1c9)+_0x260944+_0x1a1034(0x1c6));_0xfe162a=!![];}let _0x39ab9c;try{const _0x50444e=await getNotificationChannelConfig(_0x2b56a9['id'],_0x4e74ef[_0x1a1034(0x1ba)]);_0x39ab9c=normalizeExactNotificationConfig(_0x50444e,_0x2b56a9['id'],_0x4e74ef['appCode']);}catch{throw notificationError(_0xfe162a?_0x1a1034(0x1d3):_0x1a1034(0x1cf),'Notification\x20config\x20'+_0x2b56a9['id']+_0x1a1034(0x1cd),_0x1a1034(0x1bc)+_0x2b56a9['id']+'\x20via\x20'+_0x260944+_0x1a1034(0x1b7));}const _0x49e73d=requestedSafeFieldsMatch(_0x2b56a9['before'],_0x39ab9c,_0x2b56a9[_0x1a1034(0x1c4)]);if(!_0x49e73d['allMatch']||_0xfe162a&&!_0x49e73d[_0x1a1034(0x1ca)])throw notificationError(_0xfe162a?_0x1a1034(0x1d3):_0x1a1034(0x1c3),_0x1a1034(0x1d1)+_0x2b56a9['id']+'\x20readback\x20does\x20not\x20prove\x20the\x20requested\x20update.','Inspect\x20with\x20--id\x20'+_0x2b56a9['id']+'\x20via\x20'+_0x260944+';\x20do\x20not\x20resubmit\x20automatically.');const _0xf613e2=_0xfe162a?[_0x1a1034(0x1bf)]:[];return{'ok':!![],'data':{'operation':_0x1a1034(0x1c1),'selector':notificationSelector(_0x39ab9c),'before':projectNotificationConfig(_0x2b56a9[_0x1a1034(0x1c2)]),'after':projectNotificationConfig(_0x39ab9c),'dryRun':![],'backend':{'method':_0x1a1034(0x1b6),'path':UPDATE_PATH},'warnings':_0xf613e2,'verification':{'status':_0x1a1034(0x1d0),'recoveredAfterUnknownResponse':_0xfe162a,'verifiedFields':_0x49e73d['verifiedFields'],'lookupCommand':_0x260944}},'message':_0x1a1034(0x1c5)+_0x39ab9c['id']};}};
@@ -1 +1 @@
1
- (function(_0x9753e6,_0x4beefb){const _0x467394=a180_0x2949,_0x5ab27d=_0x9753e6();while(!![]){try{const _0xcd679c=-parseInt(_0x467394(0x1a8))/0x1+parseInt(_0x467394(0x1aa))/0x2*(-parseInt(_0x467394(0x1a5))/0x3)+parseInt(_0x467394(0x1a7))/0x4+parseInt(_0x467394(0x1a4))/0x5+parseInt(_0x467394(0x1a2))/0x6*(-parseInt(_0x467394(0x1ac))/0x7)+parseInt(_0x467394(0x1a9))/0x8*(-parseInt(_0x467394(0x1a3))/0x9)+parseInt(_0x467394(0x1ab))/0xa*(parseInt(_0x467394(0x1a6))/0xb);if(_0xcd679c===_0x4beefb)break;else _0x5ab27d['push'](_0x5ab27d['shift']());}catch(_0x16ad99){_0x5ab27d['push'](_0x5ab27d['shift']());}}}(a180_0x2885,0xad887));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a180_0x2949(_0x36cb86,_0x56c6d5){_0x36cb86=_0x36cb86-0x1a2;const _0x28850f=a180_0x2885();let _0x294951=_0x28850f[_0x36cb86];return _0x294951;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';function a180_0x2885(){const _0xffb8c4=['30CJGXtM','2079oJWtYf','398732pxIGpR','643962SsQQLy','241808HUYUji','131302QusoeX','90190AsOraH','35lubdiR','168780EYrOJo','198moxOCQ','5063055vlwLgJ'];a180_0x2885=function(){return _0xffb8c4;};return a180_0x2885();}export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];
1
+ (function(_0x40cc60,_0x3fd311){const _0x52319f=a180_0x134e,_0x4f19bb=_0x40cc60();while(!![]){try{const _0x6340d9=parseInt(_0x52319f(0x184))/0x1+-parseInt(_0x52319f(0x18b))/0x2+parseInt(_0x52319f(0x187))/0x3*(parseInt(_0x52319f(0x189))/0x4)+parseInt(_0x52319f(0x185))/0x5+-parseInt(_0x52319f(0x18c))/0x6*(-parseInt(_0x52319f(0x186))/0x7)+parseInt(_0x52319f(0x18d))/0x8+-parseInt(_0x52319f(0x18a))/0x9*(parseInt(_0x52319f(0x188))/0xa);if(_0x6340d9===_0x3fd311)break;else _0x4f19bb['push'](_0x4f19bb['shift']());}catch(_0x3bf5eb){_0x4f19bb['push'](_0x4f19bb['shift']());}}}(a180_0x3191,0x55ee9));import{notificationConfigList}from'../../commands/notification/config-list.js';import{notificationConfigCreate}from'../../commands/notification/config-create.js';import{notificationConfigUpdate}from'../../commands/notification/config-update.js';function a180_0x134e(_0x5c42bb,_0x39ab7a){_0x5c42bb=_0x5c42bb-0x184;const _0x319100=a180_0x3191();let _0x134e97=_0x319100[_0x5c42bb];return _0x134e97;}import{notificationConfigDelete}from'../../commands/notification/config-delete.js';export const notificationDefinitions=[notificationConfigList,notificationConfigCreate,notificationConfigUpdate,notificationConfigDelete];function a180_0x3191(){const _0x45fd0a=['20SXpDfH','254108SIvaBx','3821733HJSzbC','908970QTIqkl','2450586RyPxZb','1870464JqNstf','537345hPgiSj','2063125VJSBqQ','7FiFLdy','3vjLYQn'];a180_0x3191=function(){return _0x45fd0a;};return a180_0x3191();}