@lovrabet/rabetbase-cli 2.2.0-beta.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (204) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- function a79_0xa27a(_0x5c05df,_0x24940f){_0x5c05df=_0x5c05df-0x82;const _0x4fb3ee=a79_0x4fb3();let _0xa27a1d=_0x4fb3ee[_0x5c05df];return _0xa27a1d;}function a79_0x4fb3(){const _0x400da2=['35ZfRnCx','4VDcBOt','5804400DxNYHg','6337243MDHLDk','3tdhOcu','8131992dUEkfO','758273nkLSUx','1659930eZxngf','80RIpJLq','223596qWDnyC','6552172KpQNgF'];a79_0x4fb3=function(){return _0x400da2;};return a79_0x4fb3();}(function(_0x7db918,_0x566b9d){const _0x3f4b53=a79_0xa27a,_0x59bfb1=_0x7db918();while(!![]){try{const _0x3d39c5=parseInt(_0x3f4b53(0x85))/0x1*(-parseInt(_0x3f4b53(0x8b))/0x2)+parseInt(_0x3f4b53(0x83))/0x3*(parseInt(_0x3f4b53(0x89))/0x4)+parseInt(_0x3f4b53(0x8c))/0x5+-parseInt(_0x3f4b53(0x86))/0x6*(-parseInt(_0x3f4b53(0x8a))/0x7)+-parseInt(_0x3f4b53(0x84))/0x8+parseInt(_0x3f4b53(0x88))/0x9*(-parseInt(_0x3f4b53(0x87))/0xa)+-parseInt(_0x3f4b53(0x82))/0xb;if(_0x3d39c5===_0x566b9d)break;else _0x59bfb1['push'](_0x59bfb1['shift']());}catch(_0x1a34ab){_0x59bfb1['push'](_0x59bfb1['shift']());}}}(a79_0x4fb3,0xd5730));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
1
+ (function(_0x44b3a9,_0xebb6d0){const _0x49b69d=a79_0x1a16,_0xa9967d=_0x44b3a9();while(!![]){try{const _0x7335d9=-parseInt(_0x49b69d(0x14e))/0x1+-parseInt(_0x49b69d(0x151))/0x2*(-parseInt(_0x49b69d(0x158))/0x3)+parseInt(_0x49b69d(0x153))/0x4+-parseInt(_0x49b69d(0x150))/0x5+parseInt(_0x49b69d(0x154))/0x6*(parseInt(_0x49b69d(0x155))/0x7)+parseInt(_0x49b69d(0x156))/0x8*(parseInt(_0x49b69d(0x14f))/0x9)+-parseInt(_0x49b69d(0x152))/0xa*(parseInt(_0x49b69d(0x157))/0xb);if(_0x7335d9===_0xebb6d0)break;else _0xa9967d['push'](_0xa9967d['shift']());}catch(_0x42df35){_0xa9967d['push'](_0xa9967d['shift']());}}}(a79_0x5e76,0xd2e70));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a79_0x1a16(_0x56c387,_0x24f276){_0x56c387=_0x56c387-0x14e;const _0x5e76a7=a79_0x5e76();let _0x1a1660=_0x5e76a7[_0x56c387];return _0x1a1660;}function a79_0x5e76(){const _0x38bc29=['51592wocifh','22PBgcmS','66HMsbza','1203856MrCHrV','1737OQhaDE','3819795SnZdyj','63162eFegEi','4335050PocMIR','1407004eldzYM','8444946ZbNNXc','7nAQfey'];a79_0x5e76=function(){return _0x38bc29;};return a79_0x5e76();}
@@ -1 +1 @@
1
- const a80_0x16c040=a80_0x3321;(function(_0x3ca66f,_0x34b583){const _0x53d3d0=a80_0x3321,_0x22acf2=_0x3ca66f();while(!![]){try{const _0x32815e=parseInt(_0x53d3d0(0x9d))/0x1+-parseInt(_0x53d3d0(0x7a))/0x2+parseInt(_0x53d3d0(0x8d))/0x3+parseInt(_0x53d3d0(0x7d))/0x4+-parseInt(_0x53d3d0(0x7f))/0x5*(parseInt(_0x53d3d0(0x8b))/0x6)+parseInt(_0x53d3d0(0x81))/0x7+parseInt(_0x53d3d0(0x82))/0x8*(parseInt(_0x53d3d0(0x7e))/0x9);if(_0x32815e===_0x34b583)break;else _0x22acf2['push'](_0x22acf2['shift']());}catch(_0x2b1adb){_0x22acf2['push'](_0x22acf2['shift']());}}}(a80_0x3426,0x29246));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x16c040(0x84);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x16c040(0x97),a80_0x16c040(0x92),a80_0x16c040(0x94),a80_0x16c040(0x90),a80_0x16c040(0x9a),a80_0x16c040(0x8f),a80_0x16c040(0x80),a80_0x16c040(0x99)]),defaultWriter=_0x499585=>{const _0x1de824=a80_0x16c040;process[_0x1de824(0x89)][_0x1de824(0x98)](_0x499585);};export function shouldNudgeForError(_0x353547,_0x1a00d5){const _0x550d88=a80_0x16c040;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x1a00d5['service']==='issue'&&_0x1a00d5[_0x550d88(0x88)]===_0x550d88(0x8e))return![];if(_0x353547 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x550d88(0x83)](_0x353547[_0x550d88(0x93)]);return!![];}function a80_0x3426(){const _0x825707=['\x20issue\x20report\x20\x5c','command','stderr','slice','94152znbYaj','=1\x20to\x20silence\x20this\x20hint.','423543OKBXuX','report','flag_missing','not_in_project','message','auth_required','code','config_missing','\x20\x20Set\x20','service','cancelled','write','network_error','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','length','68818xuugyr','Hit\x20a\x20','564796kGGNDj','replace','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','1330668nDLxtb','18pEYXnq','50UFVNKj','validation_error','303828JClzzA','87064BOqqEV','has','RABETBASE_DISABLE_ISSUE_NUDGE','trim','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22'];a80_0x3426=function(){return _0x825707;};return a80_0x3426();}export function printIssueReportNudgeForError(_0x189148,_0x361cef,_0x2dace3=defaultWriter){if(!shouldNudgeForError(_0x189148,_0x361cef))return;const _0x515023=buildSuggestedTitle(_0x189148,_0x361cef);_0x2dace3(formatNudge(_0x515023));}function buildSuggestedTitle(_0xdb4c0c,_0x50e3c9){const _0x3e13be=a80_0x16c040,_0x5b3ae0=_0xdb4c0c instanceof Error?_0xdb4c0c[_0x3e13be(0x91)]:String(_0xdb4c0c),_0x4f00e1=_0x5b3ae0['replace'](/[\r\n]+/g,'\x20')[_0x3e13be(0x7b)](/\s+/g,'\x20')[_0x3e13be(0x85)]()[_0x3e13be(0x8a)](0x0,0x78)[_0x3e13be(0x7b)](/"/g,'\x5c\x22'),_0xcdce34=CLI_BIN_NAME+'\x20'+_0x50e3c9[_0x3e13be(0x96)]+'\x20'+_0x50e3c9[_0x3e13be(0x88)];return _0x4f00e1[_0x3e13be(0x9c)]>0x0?_0xcdce34+':\x20'+_0x4f00e1:_0xcdce34;}function a80_0x3321(_0x3bb6ac,_0x3e627a){_0x3bb6ac=_0x3bb6ac-0x7a;const _0x3426c3=a80_0x3426();let _0x332104=_0x3426c3[_0x3bb6ac];return _0x332104;}function formatNudge(_0x570deb){const _0x1a85c4=a80_0x16c040;return['',_0x1a85c4(0x9e)+CLI_BIN_NAME+_0x1a85c4(0x9b),'\x20\x20'+CLI_BIN_NAME+_0x1a85c4(0x87),'\x20\x20\x20\x20--title\x20\x22'+_0x570deb+'\x22\x20\x5c',_0x1a85c4(0x86),_0x1a85c4(0x7c),_0x1a85c4(0x95)+NUDGE_OPT_OUT_ENV+_0x1a85c4(0x8c),'']['join']('\x0a');}
1
+ const a80_0x21d6dd=a80_0x5dee;(function(_0x12b94d,_0x281e0c){const _0x5e49c2=a80_0x5dee,_0x518d51=_0x12b94d();while(!![]){try{const _0x3da4f5=parseInt(_0x5e49c2(0xbc))/0x1*(parseInt(_0x5e49c2(0xa9))/0x2)+-parseInt(_0x5e49c2(0xba))/0x3*(-parseInt(_0x5e49c2(0xb6))/0x4)+parseInt(_0x5e49c2(0xac))/0x5+-parseInt(_0x5e49c2(0xbf))/0x6*(-parseInt(_0x5e49c2(0xb3))/0x7)+-parseInt(_0x5e49c2(0xc5))/0x8+-parseInt(_0x5e49c2(0xb9))/0x9+-parseInt(_0x5e49c2(0xb8))/0xa*(parseInt(_0x5e49c2(0xc2))/0xb);if(_0x3da4f5===_0x281e0c)break;else _0x518d51['push'](_0x518d51['shift']());}catch(_0x4c2b9b){_0x518d51['push'](_0x518d51['shift']());}}}(a80_0x4997,0x6ff8f));import{CliError}from'../../errors.js';function a80_0x4997(){const _0x12989e=['268401gBqQbB','network_error','flag_missing','15660maOjzU','replace','60OZvmXC','7220403ORWBoY','111NvISuk','length','7FwpBIx','RABETBASE_DISABLE_ISSUE_NUDGE','not_in_project','18JvmYiJ','service','has','1155671yRoLfl','\x20\x20Set\x20','trim','846840BokeGG','\x20issue\x20report\x20\x5c','join','report','config_missing','stderr','auth_required','command','write','validation_error','245604ibrMsA','\x20bug?\x20Help\x20us\x20fix\x20it:','message','4388145bYEAfZ','\x20\x20\x20\x20--title\x20\x22','code','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','cancelled','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20'];a80_0x4997=function(){return _0x12989e;};return a80_0x4997();}import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x21d6dd(0xbd);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x21d6dd(0xb0),a80_0x21d6dd(0xcb),a80_0x21d6dd(0xc9),a80_0x21d6dd(0xbe),'unknown_command',a80_0x21d6dd(0xb5),a80_0x21d6dd(0xa8),a80_0x21d6dd(0xb4)]),defaultWriter=_0x542347=>{const _0x554d48=a80_0x21d6dd;process[_0x554d48(0xca)][_0x554d48(0xa7)](_0x542347);};export function shouldNudgeForError(_0x297910,_0x595fc3){const _0x5f1253=a80_0x21d6dd;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x595fc3[_0x5f1253(0xc0)]==='issue'&&_0x595fc3['command']===_0x5f1253(0xc8))return![];if(_0x297910 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5f1253(0xc1)](_0x297910[_0x5f1253(0xae)]);return!![];}function a80_0x5dee(_0x12f819,_0x5ba27c){_0x12f819=_0x12f819-0xa7;const _0x49976e=a80_0x4997();let _0x5deecb=_0x49976e[_0x12f819];return _0x5deecb;}export function printIssueReportNudgeForError(_0x4602d7,_0x3505c0,_0x43e3b3=defaultWriter){if(!shouldNudgeForError(_0x4602d7,_0x3505c0))return;const _0x2827ff=buildSuggestedTitle(_0x4602d7,_0x3505c0);_0x43e3b3(formatNudge(_0x2827ff));}function buildSuggestedTitle(_0xd5642f,_0x44ec9c){const _0x1bdfe6=a80_0x21d6dd,_0xbc0d01=_0xd5642f instanceof Error?_0xd5642f[_0x1bdfe6(0xab)]:String(_0xd5642f),_0x3c05f6=_0xbc0d01[_0x1bdfe6(0xb7)](/[\r\n]+/g,'\x20')[_0x1bdfe6(0xb7)](/\s+/g,'\x20')[_0x1bdfe6(0xc4)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0x276629=CLI_BIN_NAME+'\x20'+_0x44ec9c[_0x1bdfe6(0xc0)]+'\x20'+_0x44ec9c[_0x1bdfe6(0xcc)];return _0x3c05f6[_0x1bdfe6(0xbb)]>0x0?_0x276629+':\x20'+_0x3c05f6:_0x276629;}function formatNudge(_0x3337d5){const _0x4dae53=a80_0x21d6dd;return['',_0x4dae53(0xb2)+CLI_BIN_NAME+_0x4dae53(0xaa),'\x20\x20'+CLI_BIN_NAME+_0x4dae53(0xc6),_0x4dae53(0xad)+_0x3337d5+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x4dae53(0xaf),_0x4dae53(0xc3)+NUDGE_OPT_OUT_ENV+_0x4dae53(0xb1),''][_0x4dae53(0xc7)]('\x0a');}
@@ -1 +1 @@
1
- const a81_0x3c874e=a81_0x3169;(function(_0x428e34,_0x23a01c){const _0x1279eb=a81_0x3169,_0x481e56=_0x428e34();while(!![]){try{const _0x3b6490=-parseInt(_0x1279eb(0x141))/0x1*(-parseInt(_0x1279eb(0x129))/0x2)+-parseInt(_0x1279eb(0x127))/0x3+-parseInt(_0x1279eb(0x123))/0x4*(-parseInt(_0x1279eb(0x142))/0x5)+-parseInt(_0x1279eb(0x132))/0x6*(parseInt(_0x1279eb(0x115))/0x7)+-parseInt(_0x1279eb(0x11b))/0x8+parseInt(_0x1279eb(0x13d))/0x9*(parseInt(_0x1279eb(0x12b))/0xa)+-parseInt(_0x1279eb(0x148))/0xb*(-parseInt(_0x1279eb(0x10b))/0xc);if(_0x3b6490===_0x23a01c)break;else _0x481e56['push'](_0x481e56['shift']());}catch(_0x1d8f58){_0x481e56['push'](_0x481e56['shift']());}}}(a81_0x3559,0x34e40));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x3c874e(0x10d);export const issueReport={'service':a81_0x3c874e(0x12a),'command':a81_0x3c874e(0x144),'description':a81_0x3c874e(0x125),'risk':a81_0x3c874e(0x10f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x3c874e(0x13e),'flags':[{'name':'title','type':a81_0x3c874e(0x13f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x133)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x3c874e(0x13f),'description':a81_0x3c874e(0x11a)}],async 'validate'(_0x6280ec){const _0x16cd58=a81_0x3c874e,_0x5c4b27=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x11f))['trim'](),_0xaeadd8=_0x6280ec[_0x16cd58(0x131)](_0x16cd58(0x12f))[_0x16cd58(0x137)](),_0x33afc0=_0x6280ec[_0x16cd58(0x131)](DESCRIPTION_FILE_FLAG)[_0x16cd58(0x137)]();if(!_0x5c4b27)throw CliErrors[_0x16cd58(0x13a)](_0x16cd58(0x11f),_0x16cd58(0x119));const _0x49c760=_0xaeadd8[_0x16cd58(0x113)]>0x0,_0x5bf5b0=_0x33afc0[_0x16cd58(0x113)]>0x0;if(_0x49c760===_0x5bf5b0)throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x11d),_0x16cd58(0x136));if(_0x5bf5b0){const _0x5ed866=resolve(process[_0x16cd58(0x10e)](),_0x33afc0);if(!existsSync(_0x5ed866))throw CliErrors[_0x16cd58(0x10c)](_0x16cd58(0x143)+_0x5ed866);}},async 'dryRun'(_0x5c667e){const _0x3ae10f=a81_0x3c874e,_0x402e68=await prepareIssueReport(_0x5c667e);return{'method':_0x3ae10f(0x149),'url':_0x3ae10f(0x121)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x402e68[_0x3ae10f(0x11f)],'issue.description':_0x402e68[_0x3ae10f(0x12f)],'issue.description_original_bytes':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x117)],'issue.description_truncated':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)],'issue.description_redactions':_0x402e68[_0x3ae10f(0x146)]['redactionCount'],'issue.description_redaction_kinds':_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)][_0x3ae10f(0x110)](',')}},'description':[_0x3ae10f(0x109),'descriptionSource:\x20'+_0x402e68[_0x3ae10f(0x139)],_0x402e68['descriptionFilePath']?'descriptionFile:\x20'+_0x402e68[_0x3ae10f(0x10a)]:null,_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x126)]?'truncated:\x20original\x20'+_0x402e68['sanitize'][_0x3ae10f(0x117)]+'\x20bytes':null,_0x402e68['sanitize']['redactionCount']>0x0?_0x3ae10f(0x114)+_0x402e68[_0x3ae10f(0x146)]['redactionCount']+'\x20('+_0x402e68[_0x3ae10f(0x146)][_0x3ae10f(0x138)]['join'](',\x20')+')':null][_0x3ae10f(0x145)](Boolean)['join']('\x0a')};},async 'execute'(_0x40e1f5){const _0x2222a3=a81_0x3c874e,_0x1f12a5=await prepareIssueReport(_0x40e1f5);try{await sendPlatformIssueCollectLog({'title':_0x1f12a5['title'],'description':_0x1f12a5['description'],'sanitize':{'originalBytes':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x117)],'truncated':_0x1f12a5[_0x2222a3(0x146)]['truncated'],'redactionCount':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5['sanitize'][_0x2222a3(0x138)]}});}catch(_0x2c95aa){throw CliErrors[_0x2222a3(0x135)](_0x2222a3(0x12e)+(_0x2c95aa instanceof Error?_0x2c95aa[_0x2222a3(0x128)]:String(_0x2c95aa)),_0x2222a3(0x122));}return{'ok':!![],'message':buildResultMessage(_0x1f12a5['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2222a3(0x140),_0x2222a3(0x12c),_0x2222a3(0x11e),_0x2222a3(0x13b),_0x2222a3(0x118),_0x2222a3(0x134)],'issue':{'title':_0x1f12a5[_0x2222a3(0x11f)],'descriptionLength':_0x1f12a5['description'][_0x2222a3(0x113)],'descriptionSource':_0x1f12a5[_0x2222a3(0x139)],..._0x1f12a5[_0x2222a3(0x10a)]?{'descriptionFile':_0x1f12a5[_0x2222a3(0x10a)]}:{},'sanitize':{'originalBytes':_0x1f12a5['sanitize'][_0x2222a3(0x117)],'truncated':_0x1f12a5['sanitize'][_0x2222a3(0x126)],'redactions':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x112)],'redactionKinds':_0x1f12a5[_0x2222a3(0x146)][_0x2222a3(0x138)]}}}};}};function a81_0x3169(_0x397b30,_0x157cff){_0x397b30=_0x397b30-0x109;const _0x355923=a81_0x3559();let _0x3169e8=_0x355923[_0x397b30];return _0x3169e8;}function a81_0x3559(){const _0x4888c8=['title','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','92qpowxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','truncated','409701jpLPxk','message','58184sLPCUP','issue','10jXtfuf','issue.description','push','Failed\x20to\x20report\x20platform\x20issue:\x20','description','Platform\x20issue\x20reported','str','272166ROpZkM','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redaction_kinds','apiError','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','trim','redactionKinds','descriptionSource','flagMissing','issue.description_truncated','Platform\x20issue\x20reported\x20(','3688929KWFobZ','compress','string','issue.title','1bDCMit','30630IphQPL','File\x20not\x20found:\x20','report','filter','sanitize','Issue\x20description\x20cannot\x20be\x20empty.','649583etpcBa','POST','truncated\x20from\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','84LPFuHL','validation','description-file','cwd','write','join','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','length','redactions:\x20','42bEMjnc','utf8','originalBytes','issue.description_redactions','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','2942952qYNPDe','\x20secret(s):\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description_original_bytes'];a81_0x3559=function(){return _0x4888c8;};return a81_0x3559();}function buildResultMessage(_0x29d662){const _0x49f46e=a81_0x3c874e,_0xf6b808=[];return _0x29d662[_0x49f46e(0x126)]&&_0xf6b808[_0x49f46e(0x12d)](_0x49f46e(0x14a)+_0x29d662[_0x49f46e(0x117)]+'\x20bytes'),_0x29d662[_0x49f46e(0x112)]>0x0&&_0xf6b808[_0x49f46e(0x12d)]('redacted\x20'+_0x29d662[_0x49f46e(0x112)]+_0x49f46e(0x11c)+_0x29d662[_0x49f46e(0x138)][_0x49f46e(0x110)](',\x20')),_0xf6b808[_0x49f46e(0x113)]===0x0?_0x49f46e(0x130):_0x49f46e(0x13c)+_0xf6b808[_0x49f46e(0x110)](';\x20')+')';}async function prepareIssueReport(_0x579206){const _0x551d9e=a81_0x3c874e,_0xd0c66c=_0x579206['str'](_0x551d9e(0x11f))[_0x551d9e(0x137)](),_0x3103f2=_0x579206[_0x551d9e(0x131)](_0x551d9e(0x12f)),_0x316aa5=_0x579206['str'](DESCRIPTION_FILE_FLAG)[_0x551d9e(0x137)]();if(!_0x316aa5){const _0x5ce225=_0x3103f2;if(!_0x5ce225[_0x551d9e(0x137)]())throw CliErrors['validation'](_0x551d9e(0x147),_0x551d9e(0x124));const _0x56330f=sanitizeIssueDescription(_0x5ce225);return{'title':_0xd0c66c,'description':_0x56330f[_0x551d9e(0x12f)],'descriptionSource':'inline','sanitize':_0x56330f};}const _0xc311a9=resolve(process[_0x551d9e(0x10e)](),_0x316aa5),_0x28c467=await readFile(_0xc311a9,_0x551d9e(0x116));if(!_0x28c467[_0x551d9e(0x137)]())throw CliErrors[_0x551d9e(0x10c)](_0x551d9e(0x111)+_0xc311a9,_0x551d9e(0x120));const _0x44df6f=sanitizeIssueDescription(_0x28c467);return{'title':_0xd0c66c,'description':_0x44df6f[_0x551d9e(0x12f)],'descriptionSource':'file','descriptionFilePath':_0xc311a9,'sanitize':_0x44df6f};}
1
+ const a81_0x168399=a81_0x448e;(function(_0x1dfc79,_0x2e2681){const _0x325bf8=a81_0x448e,_0x47c61f=_0x1dfc79();while(!![]){try{const _0x14a1eb=parseInt(_0x325bf8(0x1fc))/0x1*(parseInt(_0x325bf8(0x20e))/0x2)+parseInt(_0x325bf8(0x20a))/0x3+-parseInt(_0x325bf8(0x21c))/0x4*(-parseInt(_0x325bf8(0x1fd))/0x5)+-parseInt(_0x325bf8(0x21d))/0x6+-parseInt(_0x325bf8(0x207))/0x7+parseInt(_0x325bf8(0x1ff))/0x8*(-parseInt(_0x325bf8(0x20b))/0x9)+parseInt(_0x325bf8(0x22c))/0xa;if(_0x14a1eb===_0x2e2681)break;else _0x47c61f['push'](_0x47c61f['shift']());}catch(_0xae88){_0x47c61f['push'](_0x47c61f['shift']());}}}(a81_0x3cc2,0x598b8));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a81_0x448e(_0xb8c4d9,_0x278845){_0xb8c4d9=_0xb8c4d9-0x1f3;const _0x3cc231=a81_0x3cc2();let _0x448e02=_0x3cc231[_0xb8c4d9];return _0x448e02;}import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a81_0x168399(0x22a),'command':a81_0x168399(0x215),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a81_0x168399(0x20f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a81_0x168399(0x208),'type':a81_0x168399(0x224),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a81_0x168399(0x223),'type':a81_0x168399(0x224),'description':a81_0x168399(0x203)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x168399(0x224),'description':a81_0x168399(0x212)}],async 'validate'(_0x2781fc){const _0x136467=a81_0x168399,_0x2de33e=_0x2781fc[_0x136467(0x220)](_0x136467(0x208))[_0x136467(0x225)](),_0x2635fd=_0x2781fc[_0x136467(0x220)](_0x136467(0x223))[_0x136467(0x225)](),_0x48ddc9=_0x2781fc[_0x136467(0x220)](DESCRIPTION_FILE_FLAG)[_0x136467(0x225)]();if(!_0x2de33e)throw CliErrors['flagMissing'](_0x136467(0x208),_0x136467(0x206));const _0x15c9c=_0x2635fd['length']>0x0,_0x9a6857=_0x48ddc9[_0x136467(0x22b)]>0x0;if(_0x15c9c===_0x9a6857)throw CliErrors[_0x136467(0x1f8)](_0x136467(0x211),_0x136467(0x21f));if(_0x9a6857){const _0x5a5f0=resolve(process[_0x136467(0x201)](),_0x48ddc9);if(!existsSync(_0x5a5f0))throw CliErrors['validation'](_0x136467(0x222)+_0x5a5f0);}},async 'dryRun'(_0x3f5958){const _0x15ce2d=a81_0x168399,_0x5121ca=await prepareIssueReport(_0x3f5958);return{'method':_0x15ce2d(0x228),'url':_0x15ce2d(0x216)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x5121ca[_0x15ce2d(0x208)],'issue.description':_0x5121ca[_0x15ce2d(0x223)],'issue.description_original_bytes':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x1f6)],'issue.description_truncated':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x227)],'issue.description_redactions':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x202)],'issue.description_redaction_kinds':_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x21a)][_0x15ce2d(0x1f3)](',')}},'description':[_0x15ce2d(0x21b),'descriptionSource:\x20'+_0x5121ca['descriptionSource'],_0x5121ca['descriptionFilePath']?_0x15ce2d(0x205)+_0x5121ca[_0x15ce2d(0x1f4)]:null,_0x5121ca['sanitize'][_0x15ce2d(0x227)]?'truncated:\x20original\x20'+_0x5121ca[_0x15ce2d(0x200)]['originalBytes']+_0x15ce2d(0x1f7):null,_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x202)]>0x0?_0x15ce2d(0x20d)+_0x5121ca[_0x15ce2d(0x200)]['redactionCount']+'\x20('+_0x5121ca[_0x15ce2d(0x200)][_0x15ce2d(0x21a)][_0x15ce2d(0x1f3)](',\x20')+')':null]['filter'](Boolean)['join']('\x0a')};},async 'execute'(_0x2b1e6b){const _0x18e170=a81_0x168399,_0x41202f=await prepareIssueReport(_0x2b1e6b);try{await sendPlatformIssueCollectLog({'title':_0x41202f['title'],'description':_0x41202f[_0x18e170(0x223)],'sanitize':{'originalBytes':_0x41202f[_0x18e170(0x200)][_0x18e170(0x1f6)],'truncated':_0x41202f[_0x18e170(0x200)][_0x18e170(0x227)],'redactionCount':_0x41202f['sanitize'][_0x18e170(0x202)],'redactionKinds':_0x41202f['sanitize'][_0x18e170(0x21a)]}});}catch(_0x1ab920){throw CliErrors['apiError'](_0x18e170(0x20c)+(_0x1ab920 instanceof Error?_0x1ab920[_0x18e170(0x1fb)]:String(_0x1ab920)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x41202f[_0x18e170(0x200)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x18e170(0x1fa),_0x18e170(0x221),_0x18e170(0x226),_0x18e170(0x219),_0x18e170(0x204),_0x18e170(0x229)],'issue':{'title':_0x41202f[_0x18e170(0x208)],'descriptionLength':_0x41202f[_0x18e170(0x223)][_0x18e170(0x22b)],'descriptionSource':_0x41202f['descriptionSource'],..._0x41202f['descriptionFilePath']?{'descriptionFile':_0x41202f['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x41202f[_0x18e170(0x200)][_0x18e170(0x1f6)],'truncated':_0x41202f[_0x18e170(0x200)]['truncated'],'redactions':_0x41202f[_0x18e170(0x200)][_0x18e170(0x202)],'redactionKinds':_0x41202f[_0x18e170(0x200)]['redactionKinds']}}}};}};function buildResultMessage(_0x1a7294){const _0x2d2cd9=a81_0x168399,_0x17a184=[];return _0x1a7294['truncated']&&_0x17a184['push'](_0x2d2cd9(0x217)+_0x1a7294['originalBytes']+_0x2d2cd9(0x1f7)),_0x1a7294[_0x2d2cd9(0x202)]>0x0&&_0x17a184['push']('redacted\x20'+_0x1a7294['redactionCount']+_0x2d2cd9(0x1f5)+_0x1a7294[_0x2d2cd9(0x21a)][_0x2d2cd9(0x1f3)](',\x20')),_0x17a184[_0x2d2cd9(0x22b)]===0x0?_0x2d2cd9(0x213):_0x2d2cd9(0x1f9)+_0x17a184[_0x2d2cd9(0x1f3)](';\x20')+')';}async function prepareIssueReport(_0xfb3e5e){const _0xc9c71=a81_0x168399,_0x386510=_0xfb3e5e['str']('title')[_0xc9c71(0x225)](),_0x2189e3=_0xfb3e5e['str'](_0xc9c71(0x223)),_0x50f223=_0xfb3e5e['str'](DESCRIPTION_FILE_FLAG)[_0xc9c71(0x225)]();if(!_0x50f223){const _0x4afe95=_0x2189e3;if(!_0x4afe95[_0xc9c71(0x225)]())throw CliErrors[_0xc9c71(0x1f8)](_0xc9c71(0x218),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x1414af=sanitizeIssueDescription(_0x4afe95);return{'title':_0x386510,'description':_0x1414af['description'],'descriptionSource':_0xc9c71(0x214),'sanitize':_0x1414af};}const _0x4d2218=resolve(process[_0xc9c71(0x201)](),_0x50f223),_0x2917cc=await readFile(_0x4d2218,_0xc9c71(0x1fe));if(!_0x2917cc['trim']())throw CliErrors[_0xc9c71(0x1f8)](_0xc9c71(0x209)+_0x4d2218,_0xc9c71(0x21e));const _0x2f65e6=sanitizeIssueDescription(_0x2917cc);return{'title':_0x386510,'description':_0x2f65e6[_0xc9c71(0x223)],'descriptionSource':_0xc9c71(0x210),'descriptionFilePath':_0x4d2218,'sanitize':_0x2f65e6};}function a81_0x3cc2(){const _0x2df1b0=['otel://','truncated\x20from\x20','Issue\x20description\x20cannot\x20be\x20empty.','issue.description_truncated','redactionKinds','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','54368ueWShN','455160vGPRFv','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','str','issue.description','File\x20not\x20found:\x20','description','string','trim','issue.description_original_bytes','truncated','POST','issue.description_redaction_kinds','issue','length','3048360DXTIKz','join','descriptionFilePath','\x20secret(s):\x20','originalBytes','\x20bytes','validation','Platform\x20issue\x20reported\x20(','issue.title','message','1196txwPpD','135wvcqPx','utf8','16YJiVzt','sanitize','cwd','redactionCount','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','issue.description_redactions','descriptionFile:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','3390415gfdZmX','title','Issue\x20description\x20file\x20is\x20empty:\x20','318021gScxKC','114579boSJTI','Failed\x20to\x20report\x20platform\x20issue:\x20','redactions:\x20','292yQLOKi','write','file','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Platform\x20issue\x20reported','inline','report'];a81_0x3cc2=function(){return _0x2df1b0;};return a81_0x3cc2();}
@@ -1 +1 @@
1
- const a82_0x22b080=a82_0x21f5;function a82_0x21f5(_0x3cf535,_0x294bf6){_0x3cf535=_0x3cf535-0x1bd;const _0x1716bf=a82_0x1716();let _0x21f5ad=_0x1716bf[_0x3cf535];return _0x21f5ad;}(function(_0x53a3c9,_0x5f1282){const _0x5c5463=a82_0x21f5,_0xd5b76d=_0x53a3c9();while(!![]){try{const _0x5b9cc5=-parseInt(_0x5c5463(0x1bd))/0x1+parseInt(_0x5c5463(0x1c8))/0x2*(-parseInt(_0x5c5463(0x1ca))/0x3)+-parseInt(_0x5c5463(0x1d3))/0x4*(parseInt(_0x5c5463(0x1cc))/0x5)+parseInt(_0x5c5463(0x1c4))/0x6*(-parseInt(_0x5c5463(0x1bf))/0x7)+parseInt(_0x5c5463(0x1d8))/0x8+-parseInt(_0x5c5463(0x1d6))/0x9*(-parseInt(_0x5c5463(0x1c7))/0xa)+-parseInt(_0x5c5463(0x1c5))/0xb*(-parseInt(_0x5c5463(0x1cf))/0xc);if(_0x5b9cc5===_0x5f1282)break;else _0xd5b76d['push'](_0xd5b76d['shift']());}catch(_0x398875){_0xd5b76d['push'](_0xd5b76d['shift']());}}}(a82_0x1716,0x5b1ff));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x22b080(0x1c2),REDACTION_RULES=[{'kind':a82_0x22b080(0x1ce),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x22b080(0x1c1)},{'kind':a82_0x22b080(0x1d7),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0x22b080(0x1c0),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x22b080(0x1d0)},{'kind':a82_0x22b080(0x1c9),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x22b080(0x1c6)},{'kind':'bearer-jwt','pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x22b080(0x1cd)}];export function sanitizeIssueDescription(_0x22a398){const _0xcb85f6=a82_0x22b080,_0xdcacbb=Buffer[_0xcb85f6(0x1c3)](_0x22a398,_0xcb85f6(0x1d5)),_0x180742=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xb9be1=_0x22a398,_0x5cc2fb=0x0;const _0x5ddb7e=[];if(!_0x180742)for(const _0x1cc702 of REDACTION_RULES){let _0x320495=0x0;_0xb9be1=_0xb9be1[_0xcb85f6(0x1d4)](_0x1cc702[_0xcb85f6(0x1cb)],(_0x3f0b0d,_0x171cc8)=>{_0x320495+=0x1;const _0x32e9f5=typeof _0x171cc8==='string'?_0x171cc8:'';return _0x32e9f5+'['+_0x1cc702['label']+']';}),_0x320495>0x0&&(_0x5cc2fb+=_0x320495,!_0x5ddb7e[_0xcb85f6(0x1d1)](_0x1cc702['kind'])&&_0x5ddb7e['push'](_0x1cc702[_0xcb85f6(0x1be)]));}let _0x3f28ea=![];if(Buffer['byteLength'](_0xb9be1,_0xcb85f6(0x1d5))>ISSUE_DESCRIPTION_MAX_BYTES){_0x3f28ea=!![];const _0x32dfb3=Buffer[_0xcb85f6(0x1c3)](TRUNCATION_NOTICE,'utf8'),_0x38ed08=Math[_0xcb85f6(0x1d2)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x32dfb3);_0xb9be1=sliceUtf8Bytes(_0xb9be1,_0x38ed08)+TRUNCATION_NOTICE;}return{'description':_0xb9be1,'originalBytes':_0xdcacbb,'truncated':_0x3f28ea,'redactionCount':_0x5cc2fb,'redactionKinds':_0x5ddb7e};}function sliceUtf8Bytes(_0x1eef5e,_0x1b4e75){const _0x48add4=a82_0x22b080;if(_0x1b4e75<=0x0)return'';const _0x2800de=Buffer['from'](_0x1eef5e,_0x48add4(0x1d5));if(_0x2800de[_0x48add4(0x1c3)]<=_0x1b4e75)return _0x1eef5e;let _0x1e5417=_0x1b4e75;while(_0x1e5417>0x0){const _0x11a9d5=_0x2800de[_0x1e5417];if(_0x11a9d5===undefined||(_0x11a9d5&0xc0)!==0x80)break;_0x1e5417-=0x1;}return _0x2800de['subarray'](0x0,_0x1e5417)['toString'](_0x48add4(0x1d5));}function a82_0x1716(){const _0x1240a1=['REDACTED:password','10aiVsMb','4gLnSwU','password','659289WVrcZI','pattern','140835gEkJSl','REDACTED:bearer-jwt','cookie','24eJcAsL','REDACTED:access-key','includes','max','100NgJMBE','replace','utf8','5899401UKsKKE','authorization','5899600vvWJqw','292736dNrymx','kind','8785uLtNpj','access-key','REDACTED:cookie','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','byteLength','3378TtdUpG','6178205YDLkMz'];a82_0x1716=function(){return _0x1240a1;};return a82_0x1716();}
1
+ function a82_0x37d3(_0x5cd8ee,_0x1d9aef){_0x5cd8ee=_0x5cd8ee-0x104;const _0x4097c3=a82_0x4097();let _0x37d31e=_0x4097c3[_0x5cd8ee];return _0x37d31e;}const a82_0x3a62eb=a82_0x37d3;(function(_0x5ed682,_0x1a3094){const _0x4b458f=a82_0x37d3,_0x5677b6=_0x5ed682();while(!![]){try{const _0xc33182=parseInt(_0x4b458f(0x116))/0x1+-parseInt(_0x4b458f(0x11c))/0x2*(parseInt(_0x4b458f(0x11e))/0x3)+parseInt(_0x4b458f(0x104))/0x4*(-parseInt(_0x4b458f(0x117))/0x5)+parseInt(_0x4b458f(0x113))/0x6*(-parseInt(_0x4b458f(0x105))/0x7)+parseInt(_0x4b458f(0x108))/0x8*(-parseInt(_0x4b458f(0x11d))/0x9)+-parseInt(_0x4b458f(0x106))/0xa+parseInt(_0x4b458f(0x10d))/0xb*(parseInt(_0x4b458f(0x122))/0xc);if(_0xc33182===_0x1a3094)break;else _0x5677b6['push'](_0x5677b6['shift']());}catch(_0x5bda19){_0x5677b6['push'](_0x5677b6['shift']());}}}(a82_0x4097,0xbd758));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a82_0x3a62eb(0x118),REDACTION_RULES=[{'kind':a82_0x3a62eb(0x120),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a82_0x3a62eb(0x10b)},{'kind':a82_0x3a62eb(0x111),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x3a62eb(0x112)},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x3a62eb(0x11b)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a82_0x3a62eb(0x10a),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a82_0x3a62eb(0x11a),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x3a62eb(0x107)}];export function sanitizeIssueDescription(_0x13ca8e){const _0x35ce72=a82_0x3a62eb,_0x27f3ec=Buffer[_0x35ce72(0x10f)](_0x13ca8e,_0x35ce72(0x119)),_0x287d33=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xf739a7=_0x13ca8e,_0x2229b7=0x0;const _0x41512a=[];if(!_0x287d33)for(const _0x3d61d9 of REDACTION_RULES){let _0x14fee8=0x0;_0xf739a7=_0xf739a7[_0x35ce72(0x109)](_0x3d61d9[_0x35ce72(0x10c)],(_0xa81fbd,_0x24ec08)=>{const _0x361408=_0x35ce72;_0x14fee8+=0x1;const _0x1c3d74=typeof _0x24ec08===_0x361408(0x115)?_0x24ec08:'';return _0x1c3d74+'['+_0x3d61d9[_0x361408(0x110)]+']';}),_0x14fee8>0x0&&(_0x2229b7+=_0x14fee8,!_0x41512a['includes'](_0x3d61d9[_0x35ce72(0x121)])&&_0x41512a[_0x35ce72(0x10e)](_0x3d61d9[_0x35ce72(0x121)]));}let _0x1bfc24=![];if(Buffer[_0x35ce72(0x10f)](_0xf739a7,_0x35ce72(0x119))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1bfc24=!![];const _0x374b3c=Buffer['byteLength'](TRUNCATION_NOTICE,_0x35ce72(0x119)),_0x139f9a=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x374b3c);_0xf739a7=sliceUtf8Bytes(_0xf739a7,_0x139f9a)+TRUNCATION_NOTICE;}return{'description':_0xf739a7,'originalBytes':_0x27f3ec,'truncated':_0x1bfc24,'redactionCount':_0x2229b7,'redactionKinds':_0x41512a};}function sliceUtf8Bytes(_0x4adad1,_0x561e49){const _0x98ff14=a82_0x3a62eb;if(_0x561e49<=0x0)return'';const _0x4ec7a8=Buffer[_0x98ff14(0x11f)](_0x4adad1,_0x98ff14(0x119));if(_0x4ec7a8['byteLength']<=_0x561e49)return _0x4adad1;let _0x33117d=_0x561e49;while(_0x33117d>0x0){const _0x9ce9c1=_0x4ec7a8[_0x33117d];if(_0x9ce9c1===undefined||(_0x9ce9c1&0xc0)!==0x80)break;_0x33117d-=0x1;}return _0x4ec7a8['subarray'](0x0,_0x33117d)[_0x98ff14(0x114)](_0x98ff14(0x119));}function a82_0x4097(){const _0x39b2d6=['authorization','REDACTED:authorization','6uWsqsJ','toString','string','1273888wGFlwN','5PwpGcI','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','utf8','bearer-jwt','REDACTED:private-key','962vwzpLv','9QUQZet','7119SdUWAm','from','cookie','kind','19968372IZJcYz','4904364cpvPrN','8043042yyaoJI','12245130SVOJYk','REDACTED:bearer-jwt','5991472pMOZYB','replace','password','REDACTED:cookie','pattern','33eROrhF','push','byteLength','label'];a82_0x4097=function(){return _0x39b2d6;};return a82_0x4097();}
@@ -1 +1 @@
1
- const a83_0x2681d2=a83_0x5dfc;function a83_0x5dfc(_0x5bd585,_0x321c20){_0x5bd585=_0x5bd585-0xf7;const _0x53154a=a83_0x5315();let _0x5dfc6a=_0x53154a[_0x5bd585];return _0x5dfc6a;}(function(_0xa9c11,_0xa87a7a){const _0x51dc2a=a83_0x5dfc,_0x1793a4=_0xa9c11();while(!![]){try{const _0x44d135=-parseInt(_0x51dc2a(0x105))/0x1*(-parseInt(_0x51dc2a(0x113))/0x2)+parseInt(_0x51dc2a(0x117))/0x3*(parseInt(_0x51dc2a(0x10d))/0x4)+-parseInt(_0x51dc2a(0x107))/0x5*(parseInt(_0x51dc2a(0xff))/0x6)+parseInt(_0x51dc2a(0x110))/0x7+parseInt(_0x51dc2a(0x109))/0x8*(parseInt(_0x51dc2a(0x119))/0x9)+parseInt(_0x51dc2a(0xfa))/0xa+-parseInt(_0x51dc2a(0xfc))/0xb;if(_0x44d135===_0xa87a7a)break;else _0x1793a4['push'](_0x1793a4['shift']());}catch(_0x2e3ceb){_0x1793a4['push'](_0x1793a4['shift']());}}}(a83_0x5315,0x5dfa6));import{logger}from'../../utils/logger.js';function a83_0x5315(){const _0xb50e6d=['*\x20Logs\x20cleared','write','45reurab','length','9IRyjCK','View\x20command\x20history\x20logs','read','details','toLocaleString','3185720YhCVIg','en-US','10611997rqEsLh','success','stringify','188850ZtJTBq','readLogs','log','\x20\x20\x20Details:\x20','duration','level','519051RleeZC','show','5HkhoZC','*\x20No\x20logs\x20found','2409448tGYeAb','\x20\x20\x20Time:\x20','logs','\x20\x20\x20Duration:\x20','57308vfAddg','message','keys','191989LaFMsG','*\x20Lovrabet\x20CLI\x20logs:\x0a','timestamp','2fJBEdc','forEach'];a83_0x5315=function(){return _0xb50e6d;};return a83_0x5315();}function printLogs(_0x435a6b){const _0x2361ab=a83_0x5dfc;if(_0x435a6b[_0x2361ab(0x118)]===0x0){console[_0x2361ab(0x101)](_0x2361ab(0x108));return;}console[_0x2361ab(0x101)](_0x2361ab(0x111)),_0x435a6b[_0x2361ab(0x114)]((_0x399bc2,_0x5e5703)=>{const _0x3a82b4=_0x2361ab,_0x465d6e=new Date(_0x399bc2[_0x3a82b4(0x112)])[_0x3a82b4(0xf9)](_0x3a82b4(0xfb)),_0x365650=_0x399bc2['level']===_0x3a82b4(0xfd)?'√':_0x399bc2[_0x3a82b4(0x104)]==='error'?'×':_0x399bc2['level']==='warn'?'!':'i';console[_0x3a82b4(0x101)](_0x5e5703+0x1+'.\x20'+_0x365650+'\x20['+_0x399bc2['command']+']\x20'+_0x399bc2[_0x3a82b4(0x10e)]),console['log'](_0x3a82b4(0x10a)+_0x465d6e),_0x399bc2[_0x3a82b4(0x103)]&&console['log'](_0x3a82b4(0x10c)+_0x399bc2[_0x3a82b4(0x103)]+'ms'),_0x399bc2[_0x3a82b4(0xf8)]&&Object[_0x3a82b4(0x10f)](_0x399bc2[_0x3a82b4(0xf8)])[_0x3a82b4(0x118)]>0x0&&console[_0x3a82b4(0x101)](_0x3a82b4(0x102)+JSON[_0x3a82b4(0xfe)](_0x399bc2['details'],null,0x2)),console[_0x3a82b4(0x101)]('');});}export const logsDefinitions=[{'service':a83_0x2681d2(0x10b),'command':a83_0x2681d2(0x106),'description':a83_0x2681d2(0x11a),'risk':a83_0x2681d2(0xf7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x54f09d){const _0xf5f243=a83_0x2681d2;return printLogs(logger[_0xf5f243(0x100)]()),{'ok':!![]};}},{'service':a83_0x2681d2(0x10b),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a83_0x2681d2(0x116),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x108518){const _0x146fdc=a83_0x2681d2;return logger['clearLogs'](),console[_0x146fdc(0x101)](_0x146fdc(0x115)),{'ok':!![]};}}];
1
+ function a83_0x3e6c(_0x3bd70e,_0xc15564){_0x3bd70e=_0x3bd70e-0x150;const _0x146cbf=a83_0x146c();let _0x3e6cde=_0x146cbf[_0x3bd70e];return _0x3e6cde;}const a83_0x3963e3=a83_0x3e6c;(function(_0x46b7df,_0x416e19){const _0x2fbe43=a83_0x3e6c,_0x2b109a=_0x46b7df();while(!![]){try{const _0x5d8394=-parseInt(_0x2fbe43(0x16f))/0x1+parseInt(_0x2fbe43(0x15b))/0x2+-parseInt(_0x2fbe43(0x167))/0x3+-parseInt(_0x2fbe43(0x162))/0x4*(parseInt(_0x2fbe43(0x157))/0x5)+-parseInt(_0x2fbe43(0x160))/0x6*(-parseInt(_0x2fbe43(0x15a))/0x7)+parseInt(_0x2fbe43(0x153))/0x8+parseInt(_0x2fbe43(0x151))/0x9;if(_0x5d8394===_0x416e19)break;else _0x2b109a['push'](_0x2b109a['shift']());}catch(_0xe76ebc){_0x2b109a['push'](_0x2b109a['shift']());}}}(a83_0x146c,0xb6c5c));import{logger}from'../../utils/logger.js';function printLogs(_0x918cb){const _0x48d0f5=a83_0x3e6c;if(_0x918cb[_0x48d0f5(0x15f)]===0x0){console['log'](_0x48d0f5(0x16b));return;}console['log'](_0x48d0f5(0x155)),_0x918cb[_0x48d0f5(0x16d)]((_0x219a76,_0x28a852)=>{const _0x371fde=_0x48d0f5,_0x336b60=new Date(_0x219a76[_0x371fde(0x172)])[_0x371fde(0x165)]('en-US'),_0x233f2e=_0x219a76[_0x371fde(0x15e)]===_0x371fde(0x168)?'√':_0x219a76[_0x371fde(0x15e)]===_0x371fde(0x154)?'×':_0x219a76[_0x371fde(0x15e)]===_0x371fde(0x16a)?'!':'i';console[_0x371fde(0x156)](_0x28a852+0x1+'.\x20'+_0x233f2e+'\x20['+_0x219a76[_0x371fde(0x163)]+']\x20'+_0x219a76[_0x371fde(0x159)]),console[_0x371fde(0x156)](_0x371fde(0x169)+_0x336b60),_0x219a76[_0x371fde(0x16e)]&&console[_0x371fde(0x156)]('\x20\x20\x20Duration:\x20'+_0x219a76[_0x371fde(0x16e)]+'ms'),_0x219a76[_0x371fde(0x170)]&&Object['keys'](_0x219a76['details'])['length']>0x0&&console['log'](_0x371fde(0x15c)+JSON[_0x371fde(0x161)](_0x219a76[_0x371fde(0x170)],null,0x2)),console[_0x371fde(0x156)]('');});}export const logsDefinitions=[{'service':'logs','command':a83_0x3963e3(0x152),'description':a83_0x3963e3(0x164),'risk':a83_0x3963e3(0x171),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x78e7df){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a83_0x3963e3(0x150),'command':a83_0x3963e3(0x16c),'description':'Clear\x20command\x20history\x20logs','risk':a83_0x3963e3(0x166),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5789e8){const _0x53a76a=a83_0x3963e3;return logger[_0x53a76a(0x158)](),console[_0x53a76a(0x156)](_0x53a76a(0x15d)),{'ok':!![]};}}];function a83_0x146c(){const _0x4b0c08=['1201560JDTgXV','\x20\x20\x20Details:\x20','*\x20Logs\x20cleared','level','length','6QnsdQe','stringify','882636nCMTpt','command','View\x20command\x20history\x20logs','toLocaleString','write','1956615HMvFul','success','\x20\x20\x20Time:\x20','warn','*\x20No\x20logs\x20found','clear','forEach','duration','1376659Pdbmat','details','read','timestamp','logs','11383668mdZTZC','show','2437776BQyMyG','error','*\x20Lovrabet\x20CLI\x20logs:\x0a','log','15ufGbAi','clearLogs','message','8883861GOLNYr'];a83_0x146c=function(){return _0x4b0c08;};return a83_0x146c();}
@@ -1 +1 @@
1
- function a84_0x2858(){const _0x50f95c=['1348739ezVmOs','1618400vhJibO','87342bGItyy','496348LdJOTO','3gZdPyD','367350svLFye','6pHgQmp','138198ChHDmw','1529019qZAFIT'];a84_0x2858=function(){return _0x50f95c;};return a84_0x2858();}(function(_0x15a398,_0xb35b13){const _0x13e593=a84_0xdfee,_0x5badcb=_0x15a398();while(!![]){try{const _0xc224ce=parseInt(_0x13e593(0x83))/0x1+parseInt(_0x13e593(0x7f))/0x2+parseInt(_0x13e593(0x85))/0x3*(parseInt(_0x13e593(0x84))/0x4)+parseInt(_0x13e593(0x7d))/0x5+-parseInt(_0x13e593(0x7e))/0x6*(parseInt(_0x13e593(0x81))/0x7)+-parseInt(_0x13e593(0x82))/0x8+parseInt(_0x13e593(0x80))/0x9;if(_0xc224ce===_0xb35b13)break;else _0x5badcb['push'](_0x5badcb['shift']());}catch(_0x3660f2){_0x5badcb['push'](_0x5badcb['shift']());}}}(a84_0x2858,0x1f790));function a84_0xdfee(_0x5aa4f4,_0x480a5d){_0x5aa4f4=_0x5aa4f4-0x7d;const _0x2858a6=a84_0x2858();let _0xdfee4=_0x2858a6[_0x5aa4f4];return _0xdfee4;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
1
+ function a84_0x44ea(_0x42fbe2,_0x5ea4a3){_0x42fbe2=_0x42fbe2-0x18a;const _0x315dd6=a84_0x315d();let _0x44ead5=_0x315dd6[_0x42fbe2];return _0x44ead5;}function a84_0x315d(){const _0x139491=['1581722hUtaeT','1enddTm','16bGdahu','29351817fIwxbK','7730530SpIENj','8377124SvYPUa','26585lnhdRZ','168pASImr','9948hdOWxF','283041tFwjlJ','1065OBWzkY'];a84_0x315d=function(){return _0x139491;};return a84_0x315d();}(function(_0x18eb71,_0x790d2f){const _0x2fdc5f=a84_0x44ea,_0x502b7b=_0x18eb71();while(!![]){try{const _0x20c2f4=-parseInt(_0x2fdc5f(0x18b))/0x1*(parseInt(_0x2fdc5f(0x18a))/0x2)+parseInt(_0x2fdc5f(0x194))/0x3*(-parseInt(_0x2fdc5f(0x192))/0x4)+-parseInt(_0x2fdc5f(0x190))/0x5*(-parseInt(_0x2fdc5f(0x191))/0x6)+-parseInt(_0x2fdc5f(0x18f))/0x7+parseInt(_0x2fdc5f(0x18c))/0x8*(-parseInt(_0x2fdc5f(0x193))/0x9)+parseInt(_0x2fdc5f(0x18e))/0xa+parseInt(_0x2fdc5f(0x18d))/0xb;if(_0x20c2f4===_0x790d2f)break;else _0x502b7b['push'](_0x502b7b['shift']());}catch(_0xde4de5){_0x502b7b['push'](_0x502b7b['shift']());}}}(a84_0x315d,0xa0604));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
@@ -1 +1 @@
1
- (function(_0x154c16,_0x4564ea){const _0x2cecf=a85_0x25ee,_0x4711f8=_0x154c16();while(!![]){try{const _0x25b986=-parseInt(_0x2cecf(0xe3))/0x1*(-parseInt(_0x2cecf(0xec))/0x2)+parseInt(_0x2cecf(0xf8))/0x3*(parseInt(_0x2cecf(0xee))/0x4)+parseInt(_0x2cecf(0xfc))/0x5*(parseInt(_0x2cecf(0xe1))/0x6)+-parseInt(_0x2cecf(0xe8))/0x7*(parseInt(_0x2cecf(0xf1))/0x8)+-parseInt(_0x2cecf(0xf2))/0x9+-parseInt(_0x2cecf(0xf4))/0xa*(parseInt(_0x2cecf(0xfa))/0xb)+-parseInt(_0x2cecf(0xf0))/0xc;if(_0x25b986===_0x4564ea)break;else _0x4711f8['push'](_0x4711f8['shift']());}catch(_0x59b9e3){_0x4711f8['push'](_0x4711f8['shift']());}}}(a85_0x5db0,0x35a0a));function a85_0x5db0(){const _0x357760=['\x20\x20No\x20pages\x20to\x20sync.','7IpHpKQ','Local','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','(unchanged)','2EiDoIS','path','64308yNfObv','push','2032884hvCyGO','255336IVCHTQ','1567143iSbMbj','\x20\x20\x20\x20CSS:\x20','20AkOzQd','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20Affected\x20menus:\x20','repeat','33OmFDxJ','\x20\x20\x20\x20JS:\x20\x20','633974uKSrVs','join','310nQAPoP','max','length','map','41724FmGtIT','online','102382lEFcSR','label','test','local'];a85_0x5db0=function(){return _0x357760;};return a85_0x5db0();}function strWidth(_0x28c06d){const _0x50ec6a=a85_0x25ee;let _0x158ae8=0x0;for(const _0x150506 of _0x28c06d){_0x158ae8+=/[\u4e00-\u9fa5]/[_0x50ec6a(0xe5)](_0x150506)?0x2:0x1;}return _0x158ae8;}function padRight(_0x3dccad,_0x2a8bde){const _0x202f3c=a85_0x25ee,_0x2ecb95=strWidth(_0x3dccad);return _0x3dccad+'\x20'['repeat'](Math[_0x202f3c(0xfd)](0x0,_0x2a8bde-_0x2ecb95));}function a85_0x25ee(_0xa25442,_0x1b7607){_0xa25442=_0xa25442-0xe1;const _0x5db0a7=a85_0x5db0();let _0x25ee96=_0x5db0a7[_0xa25442];return _0x25ee96;}export function renderCompareTable(_0x4d8c4c,_0x1ffa07={}){const _0x40ed3e=a85_0x25ee;if(_0x4d8c4c[_0x40ed3e(0xfe)]===0x0)return'';const _0x2d2a95=_0x1ffa07['showOnline']??!![],_0x1504e1=Math['max'](0x1e,..._0x4d8c4c[_0x40ed3e(0xff)](_0x30ece6=>strWidth(_0x30ece6['label']))),_0x2a0d51=0x4,_0x6ea8f1=[],_0x126a7a='\x20\x20'+padRight('Menu\x20Name',_0x1504e1),_0x487115=padRight(_0x40ed3e(0xe9),_0x2a0d51),_0x491022=_0x2d2a95?'\x20\x20'+padRight('Platform',_0x2a0d51):'';_0x6ea8f1[_0x40ed3e(0xef)](_0x126a7a+'\x20\x20'+_0x487115+(_0x2d2a95?_0x491022:'')),_0x6ea8f1[_0x40ed3e(0xef)]('\x20\x20'+'─'[_0x40ed3e(0xf7)](_0x1504e1)+'\x20\x20'+'─'[_0x40ed3e(0xf7)](_0x2a0d51)+(_0x2d2a95?'\x20\x20'+'─'['repeat'](_0x2a0d51):''));for(const _0x2e401a of _0x4d8c4c){const _0x1f1f5c=padRight(_0x2e401a[_0x40ed3e(0xe4)],_0x1504e1),_0x30d614=_0x2e401a[_0x40ed3e(0xe6)]?'✓':'✗',_0x5bf276=padRight(_0x30d614,_0x2a0d51);let _0x26004b='\x20\x20'+_0x1f1f5c+'\x20\x20'+_0x5bf276;if(_0x2d2a95){const _0x4757f1=_0x2e401a[_0x40ed3e(0xe2)]?'✓':'✗';_0x26004b+='\x20\x20'+padRight(_0x4757f1,_0x2a0d51);}_0x6ea8f1[_0x40ed3e(0xef)](_0x26004b);}return _0x6ea8f1[_0x40ed3e(0xfb)]('\x0a');}export function renderSyncSummary(_0x403772,_0x241c42){const _0x202a1b=a85_0x25ee;if(_0x403772[_0x202a1b(0xfe)]===0x0)return _0x241c42?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':_0x202a1b(0xe7);const _0x1d6084=['\x20\x20'+_0x403772[_0x202a1b(0xfe)]+_0x202a1b(0xf5)];for(const _0x5b870e of _0x403772){_0x1d6084[_0x202a1b(0xef)]('\x20\x20\x20\x20•\x20'+_0x5b870e['label']+'\x20('+_0x5b870e[_0x202a1b(0xed)]+')');}return _0x1d6084[_0x202a1b(0xfb)]('\x0a');}export function renderUpdateSummary(_0x1376bb,_0xfc0d33){const _0x4674ce=a85_0x25ee;if(_0x1376bb[_0x4674ce(0xfe)]===0x0)return _0x4674ce(0xea);const _0x1f9244=['\x20\x20'+_0x1376bb[_0x4674ce(0xfe)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x4674ce(0xf9)+(_0xfc0d33[0x0]??_0x4674ce(0xeb)),_0x4674ce(0xf3)+(_0xfc0d33[0x1]??_0x4674ce(0xeb)),'',_0x4674ce(0xf6)+_0x1376bb['join'](',\x20')];return _0x1f9244[_0x4674ce(0xfb)]('\x0a');}
1
+ function a85_0xa775(){const _0x25d290=['label','192311NTgvFw','4170429vXjEzv','1107464GHsNeD','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','\x20\x20\x20\x20CSS:\x20','push','online','join','3MMHqBa','477128NEuMaw','\x20\x20\x20\x20JS:\x20\x20','\x20\x20No\x20pages\x20to\x20sync.','(unchanged)','2LliMqX','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','Platform','local','Menu\x20Name','showOnline','178800sWEuxy','950890xTEMnu','808423eFDARw','length','\x20\x20Affected\x20menus:\x20','10riQHfm','map','repeat'];a85_0xa775=function(){return _0x25d290;};return a85_0xa775();}(function(_0x5635ae,_0xc75de0){const _0x14c2fa=a85_0x38bb,_0x1d0bfc=_0x5635ae();while(!![]){try{const _0x4cc6d7=-parseInt(_0x14c2fa(0xb3))/0x1*(parseInt(_0x14c2fa(0xc2))/0x2)+parseInt(_0x14c2fa(0xbd))/0x3*(parseInt(_0x14c2fa(0xb5))/0x4)+-parseInt(_0x14c2fa(0xab))/0x5+-parseInt(_0x14c2fa(0xc8))/0x6+-parseInt(_0x14c2fa(0xac))/0x7+-parseInt(_0x14c2fa(0xbe))/0x8+parseInt(_0x14c2fa(0xb4))/0x9*(parseInt(_0x14c2fa(0xaf))/0xa);if(_0x4cc6d7===_0xc75de0)break;else _0x1d0bfc['push'](_0x1d0bfc['shift']());}catch(_0x413373){_0x1d0bfc['push'](_0x1d0bfc['shift']());}}}(a85_0xa775,0x254fc));function strWidth(_0x53cbe7){let _0x329d74=0x0;for(const _0x2724f5 of _0x53cbe7){_0x329d74+=/[\u4e00-\u9fa5]/['test'](_0x2724f5)?0x2:0x1;}return _0x329d74;}function a85_0x38bb(_0x29025f,_0x5ac5f3){_0x29025f=_0x29025f-0xab;const _0xa7752b=a85_0xa775();let _0x38bbaf=_0xa7752b[_0x29025f];return _0x38bbaf;}function padRight(_0x181d4e,_0x4a1d5c){const _0x12e6b7=a85_0x38bb,_0xc59ae7=strWidth(_0x181d4e);return _0x181d4e+'\x20'[_0x12e6b7(0xb1)](Math['max'](0x0,_0x4a1d5c-_0xc59ae7));}export function renderCompareTable(_0x116142,_0x4d67ce={}){const _0x4baa7b=a85_0x38bb;if(_0x116142[_0x4baa7b(0xad)]===0x0)return'';const _0x4f76df=_0x4d67ce[_0x4baa7b(0xc7)]??!![],_0x2b755a=Math['max'](0x1e,..._0x116142[_0x4baa7b(0xb0)](_0x47c14f=>strWidth(_0x47c14f[_0x4baa7b(0xb2)]))),_0x16f773=0x4,_0x3ffec4=[],_0x4969b0='\x20\x20'+padRight(_0x4baa7b(0xc6),_0x2b755a),_0xc51c4a=padRight('Local',_0x16f773),_0x4b917e=_0x4f76df?'\x20\x20'+padRight(_0x4baa7b(0xc4),_0x16f773):'';_0x3ffec4[_0x4baa7b(0xba)](_0x4969b0+'\x20\x20'+_0xc51c4a+(_0x4f76df?_0x4b917e:'')),_0x3ffec4[_0x4baa7b(0xba)]('\x20\x20'+'─'[_0x4baa7b(0xb1)](_0x2b755a)+'\x20\x20'+'─'[_0x4baa7b(0xb1)](_0x16f773)+(_0x4f76df?'\x20\x20'+'─'['repeat'](_0x16f773):''));for(const _0x5bc980 of _0x116142){const _0x87972a=padRight(_0x5bc980[_0x4baa7b(0xb2)],_0x2b755a),_0x1b96ea=_0x5bc980[_0x4baa7b(0xc5)]?'✓':'✗',_0xcd2d69=padRight(_0x1b96ea,_0x16f773);let _0x602e4d='\x20\x20'+_0x87972a+'\x20\x20'+_0xcd2d69;if(_0x4f76df){const _0x375da8=_0x5bc980[_0x4baa7b(0xbb)]?'✓':'✗';_0x602e4d+='\x20\x20'+padRight(_0x375da8,_0x16f773);}_0x3ffec4[_0x4baa7b(0xba)](_0x602e4d);}return _0x3ffec4[_0x4baa7b(0xbc)]('\x0a');}export function renderSyncSummary(_0x16c31a,_0xd119d5){const _0x18e141=a85_0x38bb;if(_0x16c31a['length']===0x0)return _0xd119d5?_0x18e141(0xb6):_0x18e141(0xc0);const _0x42161f=['\x20\x20'+_0x16c31a[_0x18e141(0xad)]+_0x18e141(0xc3)];for(const _0x438b85 of _0x16c31a){_0x42161f['push']('\x20\x20\x20\x20•\x20'+_0x438b85['label']+'\x20('+_0x438b85[_0x18e141(0xb8)]+')');}return _0x42161f[_0x18e141(0xbc)]('\x0a');}export function renderUpdateSummary(_0x21c11f,_0x28fa5d){const _0x3678b9=a85_0x38bb;if(_0x21c11f[_0x3678b9(0xad)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x57161e=['\x20\x20'+_0x21c11f[_0x3678b9(0xad)]+_0x3678b9(0xb7),_0x3678b9(0xbf)+(_0x28fa5d[0x0]??_0x3678b9(0xc1)),_0x3678b9(0xb9)+(_0x28fa5d[0x1]??_0x3678b9(0xc1)),'',_0x3678b9(0xae)+_0x21c11f['join'](',\x20')];return _0x57161e[_0x3678b9(0xbc)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x14e135,_0x10f706){var _0x9a8689=a86_0x27be,_0x11c6d8=_0x14e135();while(!![]){try{var _0x1cb509=-parseInt(_0x9a8689(0x1f7))/0x1+-parseInt(_0x9a8689(0x1f6))/0x2*(-parseInt(_0x9a8689(0x1fc))/0x3)+parseInt(_0x9a8689(0x1f9))/0x4*(parseInt(_0x9a8689(0x1f4))/0x5)+-parseInt(_0x9a8689(0x1fb))/0x6*(-parseInt(_0x9a8689(0x1f5))/0x7)+-parseInt(_0x9a8689(0x1f3))/0x8+-parseInt(_0x9a8689(0x1f8))/0x9+parseInt(_0x9a8689(0x1fa))/0xa;if(_0x1cb509===_0x10f706)break;else _0x11c6d8['push'](_0x11c6d8['shift']());}catch(_0x38a3c3){_0x11c6d8['push'](_0x11c6d8['shift']());}}}(a86_0xa7c5,0x1998c));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a86_0x27be(_0x36881e,_0x7bec2c){_0x36881e=_0x36881e-0x1f3;var _0xa7c592=a86_0xa7c5();var _0x27befb=_0xa7c592[_0x36881e];return _0x27befb;}export*from'../../../commands/menu/shared/local-pages.js';function a86_0xa7c5(){var _0x3f4d66=['74535lWtWEH','34013IhuElo','1108KQikMU','129160PoIDbr','342873JYONhs','4nMPWjq','3515740XxmSiO','18wmcatc','174sXnSnS','1128712Uglslu'];a86_0xa7c5=function(){return _0x3f4d66;};return a86_0xa7c5();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
1
+ (function(_0x3b24af,_0x3b0b3f){var _0x315155=a86_0x3ba4,_0x584329=_0x3b24af();while(!![]){try{var _0x542d8b=-parseInt(_0x315155(0x93))/0x1+-parseInt(_0x315155(0x8f))/0x2*(parseInt(_0x315155(0x92))/0x3)+parseInt(_0x315155(0x8e))/0x4*(-parseInt(_0x315155(0x95))/0x5)+-parseInt(_0x315155(0x94))/0x6*(-parseInt(_0x315155(0x90))/0x7)+-parseInt(_0x315155(0x91))/0x8+parseInt(_0x315155(0x96))/0x9+parseInt(_0x315155(0x8d))/0xa;if(_0x542d8b===_0x3b0b3f)break;else _0x584329['push'](_0x584329['shift']());}catch(_0x41306a){_0x584329['push'](_0x584329['shift']());}}}(a86_0x4791,0xcbd62));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a86_0x3ba4(_0x4d937f,_0x18ed21){_0x4d937f=_0x4d937f-0x8d;var _0x479153=a86_0x4791();var _0x3ba4db=_0x479153[_0x4d937f];return _0x3ba4db;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a86_0x4791(){var _0x2737e6=['212LQpMmn','61974LfIGzI','748755YgIYFD','10810624ggwRoS','78fxVNXb','354368TGeXZy','54vOpNgZ','69985hmPIpO','13472649iJtnsp','16284670cVbALj'];a86_0x4791=function(){return _0x2737e6;};return a86_0x4791();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
@@ -1 +1 @@
1
- (function(_0x4f9d65,_0x16dd25){const _0x55dbd6=a87_0x13e7,_0x4e46e6=_0x4f9d65();while(!![]){try{const _0x516e06=-parseInt(_0x55dbd6(0x1c9))/0x1*(-parseInt(_0x55dbd6(0x1dc))/0x2)+parseInt(_0x55dbd6(0x1d5))/0x3+parseInt(_0x55dbd6(0x1de))/0x4*(-parseInt(_0x55dbd6(0x1d6))/0x5)+parseInt(_0x55dbd6(0x1d1))/0x6*(parseInt(_0x55dbd6(0x1cc))/0x7)+-parseInt(_0x55dbd6(0x1c6))/0x8*(parseInt(_0x55dbd6(0x1df))/0x9)+parseInt(_0x55dbd6(0x1d0))/0xa+parseInt(_0x55dbd6(0x1cd))/0xb;if(_0x516e06===_0x16dd25)break;else _0x4e46e6['push'](_0x4e46e6['shift']());}catch(_0x459448){_0x4e46e6['push'](_0x4e46e6['shift']());}}}(a87_0xf378,0x2739d));import a87_0x2cf000 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a87_0xf378(){const _0x1d757c=['red','catch','939220vQVnlu','1902VhERub','has','name','No\x20local\x20pages\x20found.','197331uWTCcj','435BsYqyW','length','includes','gray','green','CSS\x20URL\x20checked','228HxGUSl','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','4564XtDtUM','84231IGUtjk','Cancelled.','path','fail','cyan','\x20\x20Checking\x20CSS\x20URL\x20reachability...','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','[already\x20on\x20platform]','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','[new]','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','trim','start','error','stdin','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','cancelled','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','label','test','200kMGAVB','isTTY','filter','1799ogrlHw','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','1897puDzoe','475409Ynqlmb'];a87_0xf378=function(){return _0x1d757c;};return a87_0xf378();}import a87_0x35df74 from'ora';function a87_0x13e7(_0x2612cd,_0x1d861c){_0x2612cd=_0x2612cd-0x1bd;const _0xf37843=a87_0xf378();let _0x13e78a=_0xf37843[_0x2612cd];return _0x13e78a;}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x23ecd1){const _0x4456b8=a87_0x13e7;return _0x23ecd1[_0x4456b8(0x1cf)](_0x5075fa=>{const _0x3b4576=_0x4456b8;if(_0x5075fa?.[_0x3b4576(0x1d3)]==='ExitPromptError')throw CliErrors['cancelled'](_0x3b4576(0x1e0));throw _0x5075fa;});}export function startSpinner(_0x12c2e1){const _0x3b6ab9=a87_0x13e7;return a87_0x35df74({'text':_0x12c2e1,'color':_0x3b6ab9(0x1e3)})[_0x3b6ab9(0x1be)]();}export function stopSpinner(_0x13fcbe,_0x5edf84,_0x852c42){const _0x5016a5=a87_0x13e7;_0x852c42?_0x13fcbe['succeed'](_0x5edf84):_0x13fcbe[_0x5016a5(0x1e2)](_0x5edf84);}export async function askConfirm(_0xcb4ff2){return onCancel(confirm({'message':_0xcb4ff2,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1d15a8){const _0x31ef9b=a87_0x13e7;while(!![]){const _0xcf8169=await onCancel(input({'message':_0x31ef9b(0x1ca),'default':_0x1d15a8,'theme':{'prefix':''}}));if(_0xcf8169[_0x31ef9b(0x1bd)]()==='')throw CliErrors[_0x31ef9b(0x1c2)](_0x31ef9b(0x1e0));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x31ef9b(0x1c5)](_0xcf8169[_0x31ef9b(0x1bd)]())){console[_0x31ef9b(0x1bf)](a87_0x2cf000[_0x31ef9b(0x1ce)](_0x31ef9b(0x1dd)));continue;}const _0x42e253=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x272d63=await isUrlReachable(_0xcf8169[_0x31ef9b(0x1bd)]());stopSpinner(_0x42e253,'JS\x20URL\x20checked',_0x272d63);if(!_0x272d63){console[_0x31ef9b(0x1bf)](a87_0x2cf000[_0x31ef9b(0x1ce)](_0x31ef9b(0x1c1)));continue;}return _0xcf8169[_0x31ef9b(0x1bd)]();}catch(_0x472258){stopSpinner(_0x42e253,'JS\x20URL\x20check\x20failed',![]);throw _0x472258;}}}export async function askCssUrl(_0x3f7900){const _0x4db9a4=a87_0x13e7;while(!![]){const _0x5570e2=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x3f7900,'theme':{'prefix':''}}));if(_0x5570e2['trim']()==='')throw CliErrors[_0x4db9a4(0x1c2)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4db9a4(0x1c5)](_0x5570e2['trim']())){console[_0x4db9a4(0x1bf)](a87_0x2cf000[_0x4db9a4(0x1ce)](_0x4db9a4(0x1e7)));continue;}const _0x58d054=startSpinner(_0x4db9a4(0x1e4));try{const _0x5e158c=await isUrlReachable(_0x5570e2[_0x4db9a4(0x1bd)]());stopSpinner(_0x58d054,_0x4db9a4(0x1db),_0x5e158c);if(!_0x5e158c){console[_0x4db9a4(0x1bf)](a87_0x2cf000[_0x4db9a4(0x1ce)](_0x4db9a4(0x1c3)));continue;}return _0x5570e2[_0x4db9a4(0x1bd)]();}catch(_0x5447dd){stopSpinner(_0x58d054,'CSS\x20URL\x20check\x20failed',![]);throw _0x5447dd;}}}export async function selectPages(_0x21caa3,_0x2ba80a,_0x328ee6){const _0x5d46e5=a87_0x13e7,_0x174c72=_0x21caa3['map'](_0x138b92=>({'name':_0x138b92[_0x5d46e5(0x1c4)]+'\x20\x20'+(_0x2ba80a[_0x5d46e5(0x1d2)](_0x138b92['path'])?a87_0x2cf000[_0x5d46e5(0x1d9)](_0x5d46e5(0x1e6)):a87_0x2cf000[_0x5d46e5(0x1da)](_0x5d46e5(0x1e8))),'value':_0x138b92[_0x5d46e5(0x1c4)],'checked':_0x328ee6?_0x328ee6[_0x5d46e5(0x1d8)](_0x138b92['label']):!_0x2ba80a[_0x5d46e5(0x1d2)](_0x138b92[_0x5d46e5(0x1e1)])}));if(_0x174c72[_0x5d46e5(0x1d7)]===0x0)throw new Error(_0x5d46e5(0x1d4));const _0x5f5cef=await onCancel(checkbox({'message':_0x5d46e5(0x1cb),'choices':_0x174c72,'loop':![],'theme':{'prefix':''}}));if(_0x5f5cef[_0x5d46e5(0x1d7)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x21caa3[_0x5d46e5(0x1c8)](_0x54a52f=>_0x5f5cef['includes'](_0x54a52f[_0x5d46e5(0x1c4)]));}export function isInteractive(){const _0x117cf0=a87_0x13e7;return process[_0x117cf0(0x1c0)][_0x117cf0(0x1c7)]===!![];}export function requireInteractive(){const _0x2f1b9e=a87_0x13e7;if(!isInteractive())throw new Error(_0x2f1b9e(0x1e9)+_0x2f1b9e(0x1e5));}
1
+ (function(_0x43fe48,_0x3cb111){const _0xdd5589=a87_0x27fd,_0xab632e=_0x43fe48();while(!![]){try{const _0xc44efe=-parseInt(_0xdd5589(0x160))/0x1*(-parseInt(_0xdd5589(0x17e))/0x2)+parseInt(_0xdd5589(0x183))/0x3*(-parseInt(_0xdd5589(0x171))/0x4)+-parseInt(_0xdd5589(0x178))/0x5+parseInt(_0xdd5589(0x176))/0x6+parseInt(_0xdd5589(0x16a))/0x7*(parseInt(_0xdd5589(0x170))/0x8)+parseInt(_0xdd5589(0x163))/0x9+parseInt(_0xdd5589(0x17f))/0xa*(-parseInt(_0xdd5589(0x17b))/0xb);if(_0xc44efe===_0x3cb111)break;else _0xab632e['push'](_0xab632e['shift']());}catch(_0x1e130f){_0xab632e['push'](_0xab632e['shift']());}}}(a87_0x4e2a,0x99604));import a87_0x29d4af from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a87_0x298834 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a87_0x4e2a(){const _0x230459=['isTTY','487029lLTbBM','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','cancelled','has','179IMtwVu','CSS\x20URL\x20checked','No\x20menus\x20selected.','10140696TuPEIm','red','succeed','JS\x20URL\x20check\x20failed','green','Cancelled.','\x20\x20JS\x20URL:','7OnBLmK','gray','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','length','trim','[already\x20on\x20platform]','4483064sihUvY','12iYSFyS','fail','start','JS\x20URL\x20checked','error','4363698Gvltgy','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','325205bObxyo','label','stdin','495umooMN','path','includes','4474HYCwXh','363230MpYLeo','filter','name'];a87_0x4e2a=function(){return _0x230459;};return a87_0x4e2a();}function onCancel(_0x57dd7f){return _0x57dd7f['catch'](_0x578a01=>{const _0x35ebd7=a87_0x27fd;if(_0x578a01?.[_0x35ebd7(0x181)]==='ExitPromptError')throw CliErrors[_0x35ebd7(0x186)]('Cancelled.');throw _0x578a01;});}export function startSpinner(_0x518d56){const _0x22b725=a87_0x27fd;return a87_0x298834({'text':_0x518d56,'color':'cyan'})[_0x22b725(0x173)]();}export function stopSpinner(_0x46e025,_0x301238,_0x4d29f8){const _0x4cc29a=a87_0x27fd;_0x4d29f8?_0x46e025[_0x4cc29a(0x165)](_0x301238):_0x46e025[_0x4cc29a(0x172)](_0x301238);}function a87_0x27fd(_0x10e4f6,_0x277570){_0x10e4f6=_0x10e4f6-0x15f;const _0x4e2ab7=a87_0x4e2a();let _0x27fd96=_0x4e2ab7[_0x10e4f6];return _0x27fd96;}export async function askConfirm(_0x2e88f9){return onCancel(confirm({'message':_0x2e88f9,'theme':{'prefix':''}}));}export async function askJsUrl(_0x47e0cf){const _0x2f9be1=a87_0x27fd;while(!![]){const _0x7249fc=await onCancel(input({'message':_0x2f9be1(0x169),'default':_0x47e0cf,'theme':{'prefix':''}}));if(_0x7249fc[_0x2f9be1(0x16e)]()==='')throw CliErrors[_0x2f9be1(0x186)](_0x2f9be1(0x168));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x7249fc['trim']())){console[_0x2f9be1(0x175)](a87_0x29d4af[_0x2f9be1(0x164)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x7c5adc=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x224c11=await isUrlReachable(_0x7249fc[_0x2f9be1(0x16e)]());stopSpinner(_0x7c5adc,_0x2f9be1(0x174),_0x224c11);if(!_0x224c11){console[_0x2f9be1(0x175)](a87_0x29d4af[_0x2f9be1(0x164)](_0x2f9be1(0x16c)));continue;}return _0x7249fc['trim']();}catch(_0x457d41){stopSpinner(_0x7c5adc,_0x2f9be1(0x166),![]);throw _0x457d41;}}}export async function askCssUrl(_0x55ce75){const _0x3a74dd=a87_0x27fd;while(!![]){const _0xa668ad=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x55ce75,'theme':{'prefix':''}}));if(_0xa668ad[_0x3a74dd(0x16e)]()==='')throw CliErrors[_0x3a74dd(0x186)](_0x3a74dd(0x168));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0xa668ad[_0x3a74dd(0x16e)]())){console[_0x3a74dd(0x175)](a87_0x29d4af[_0x3a74dd(0x164)](_0x3a74dd(0x184)));continue;}const _0x38165f=startSpinner(_0x3a74dd(0x185));try{const _0x1f5838=await isUrlReachable(_0xa668ad['trim']());stopSpinner(_0x38165f,_0x3a74dd(0x161),_0x1f5838);if(!_0x1f5838){console[_0x3a74dd(0x175)](a87_0x29d4af[_0x3a74dd(0x164)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0xa668ad[_0x3a74dd(0x16e)]();}catch(_0x21f76c){stopSpinner(_0x38165f,'CSS\x20URL\x20check\x20failed',![]);throw _0x21f76c;}}}export async function selectPages(_0x3b0440,_0x132bf5,_0x21cb76){const _0x3dccb8=a87_0x27fd,_0x3fd00e=_0x3b0440['map'](_0x151fb0=>({'name':_0x151fb0['label']+'\x20\x20'+(_0x132bf5[_0x3dccb8(0x15f)](_0x151fb0['path'])?a87_0x29d4af[_0x3dccb8(0x16b)](_0x3dccb8(0x16f)):a87_0x29d4af[_0x3dccb8(0x167)]('[new]')),'value':_0x151fb0[_0x3dccb8(0x179)],'checked':_0x21cb76?_0x21cb76[_0x3dccb8(0x17d)](_0x151fb0[_0x3dccb8(0x179)]):!_0x132bf5[_0x3dccb8(0x15f)](_0x151fb0[_0x3dccb8(0x17c)])}));if(_0x3fd00e[_0x3dccb8(0x16d)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x48f676=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x3fd00e,'loop':![],'theme':{'prefix':''}}));if(_0x48f676[_0x3dccb8(0x16d)]===0x0)throw new Error(_0x3dccb8(0x162));return _0x3b0440[_0x3dccb8(0x180)](_0x3503a6=>_0x48f676[_0x3dccb8(0x17d)](_0x3503a6[_0x3dccb8(0x179)]));}export function isInteractive(){const _0x5e2cbd=a87_0x27fd;return process[_0x5e2cbd(0x17a)][_0x5e2cbd(0x182)]===!![];}export function requireInteractive(){const _0x2b4173=a87_0x27fd;if(!isInteractive())throw new Error(_0x2b4173(0x177)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
@@ -1 +1 @@
1
- function a88_0x3787(){const _0x16a88f=['endsWith','isDirectory','3UqideG','16464972KPVeCL','utf-8','26iXfgKy','153908AEFNLy','11217897hUDifq','8PeGAoV','slice','match','replaceAll','10iBlfOB','src/pages','2eJGxza','index.tsx','486QLjTgJ','push','2505041hXfJGX','6292506HFjjiV','concat','replace','98225PuGNkB','forEach','1026647BFyUqI'];a88_0x3787=function(){return _0x16a88f;};return a88_0x3787();}function a88_0x4b38(_0x4d98ad,_0x1bcc7b){_0x4d98ad=_0x4d98ad-0xbf;const _0x378745=a88_0x3787();let _0x4b3840=_0x378745[_0x4d98ad];return _0x4b3840;}const a88_0x3319ce=a88_0x4b38;(function(_0x5f5596,_0x150b34){const _0x5f2700=a88_0x4b38,_0x2a2768=_0x5f5596();while(!![]){try{const _0x5d3fdb=parseInt(_0x5f2700(0xd6))/0x1*(parseInt(_0x5f2700(0xcc))/0x2)+parseInt(_0x5f2700(0xc0))/0x3*(parseInt(_0x5f2700(0xc4))/0x4)+parseInt(_0x5f2700(0xd4))/0x5*(parseInt(_0x5f2700(0xce))/0x6)+parseInt(_0x5f2700(0xd0))/0x7+-parseInt(_0x5f2700(0xc6))/0x8*(-parseInt(_0x5f2700(0xc5))/0x9)+-parseInt(_0x5f2700(0xca))/0xa*(parseInt(_0x5f2700(0xd1))/0xb)+parseInt(_0x5f2700(0xc1))/0xc*(-parseInt(_0x5f2700(0xc3))/0xd);if(_0x5d3fdb===_0x150b34)break;else _0x2a2768['push'](_0x2a2768['shift']());}catch(_0x46e6ac){_0x2a2768['push'](_0x2a2768['shift']());}}}(a88_0x3787,0xe6949));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a88_0x3319ce(0xcb));export function extractTitleFromComment(_0x21cf37){const _0x239041=a88_0x3319ce;try{const _0x4978a4=readFileSync(_0x21cf37,_0x239041(0xc2)),_0x1ec7e4=_0x4978a4[_0x239041(0xc8)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1ec7e4&&_0x1ec7e4[0x1]){const _0xf243d9=_0x1ec7e4[0x1],_0x501ff2=_0xf243d9['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x501ff2&&_0x501ff2[0x1])return _0x501ff2[0x1]['trim']();}let _0x8e64f8=null;const _0x13c3b2=_0x4978a4[_0x239041(0xc8)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x13c3b2&&_0x13c3b2[0x1]&&(_0x8e64f8=_0x13c3b2[0x1]);if(!_0x8e64f8){const _0x11ad16=_0x4978a4['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x11ad16&&_0x11ad16[0x1]&&(_0x8e64f8=_0x11ad16[0x1]);}if(_0x8e64f8){const _0x2bf405=new RegExp('\x5cb'+_0x8e64f8+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x3c33e7=_0x4978a4[_0x239041(0xc8)](_0x2bf405);if(_0x3c33e7&&_0x3c33e7[0x1])return _0x3c33e7[0x1];return _0x8e64f8;}return null;}catch(_0x19ba1e){return null;}}export function getLocalPages(_0x4010af=pagesDir,_0x4ade27=pagesDir){const _0xe7fe9c=a88_0x3319ce;let _0xb8f478=[];const _0x10d9f4=readdirSync(_0x4010af);return _0x10d9f4[_0xe7fe9c(0xd5)](_0x30acfd=>{const _0x1f2d78=_0xe7fe9c,_0x2c0a7e=join(_0x4010af,_0x30acfd),_0x311fcb=statSync(_0x2c0a7e);if(_0x311fcb&&_0x311fcb[_0x1f2d78(0xbf)]())_0xb8f478=_0xb8f478[_0x1f2d78(0xd2)](getLocalPages(_0x2c0a7e,_0x4ade27));else{if(_0x30acfd[_0x1f2d78(0xd7)]('.tsx')){let _0x46993a=relative(_0x4ade27,_0x2c0a7e);_0x46993a[_0x1f2d78(0xd7)](_0x1f2d78(0xcd))?_0x46993a=_0x46993a[_0x1f2d78(0xd3)](/index\.tsx$/,''):_0x46993a=_0x46993a[_0x1f2d78(0xd3)](/\.tsx$/,'');_0x46993a[_0x1f2d78(0xd7)](sep)&&(_0x46993a=_0x46993a[_0x1f2d78(0xc7)](0x0,-0x1));const _0x4c59a4=_0x46993a['split'](sep)['join']('/'),_0x517cb1=extractTitleFromComment(_0x2c0a7e),_0x23e493=_0x517cb1||_0x4c59a4;_0xb8f478[_0x1f2d78(0xcf)]({'path':_0x4c59a4[_0x1f2d78(0xc9)]('$',':'),'label':_0x23e493});}}}),_0xb8f478['filter'](_0x7cbcb1=>_0x7cbcb1['path']!=='');}
1
+ const a88_0x282ff3=a88_0x3cf5;(function(_0x57d8db,_0xc6dff5){const _0x458568=a88_0x3cf5,_0x441e62=_0x57d8db();while(!![]){try{const _0x5ce344=parseInt(_0x458568(0x1c8))/0x1*(-parseInt(_0x458568(0x1cc))/0x2)+parseInt(_0x458568(0x1dd))/0x3*(parseInt(_0x458568(0x1de))/0x4)+parseInt(_0x458568(0x1d7))/0x5*(-parseInt(_0x458568(0x1d5))/0x6)+parseInt(_0x458568(0x1c6))/0x7*(-parseInt(_0x458568(0x1d3))/0x8)+parseInt(_0x458568(0x1c7))/0x9*(parseInt(_0x458568(0x1d0))/0xa)+parseInt(_0x458568(0x1c4))/0xb*(parseInt(_0x458568(0x1d6))/0xc)+-parseInt(_0x458568(0x1d4))/0xd*(-parseInt(_0x458568(0x1d9))/0xe);if(_0x5ce344===_0xc6dff5)break;else _0x441e62['push'](_0x441e62['shift']());}catch(_0x3b2e62){_0x441e62['push'](_0x441e62['shift']());}}}(a88_0x2464,0xc5280));import{readdirSync,statSync,readFileSync}from'fs';function a88_0x2464(){const _0x5172e7=['join','forEach','50hSatvr','index.tsx','concat','184UjHftU','26dEBEJU','78mXppUm','14220XHITif','516385aOggqT','path','17969854ymHQXP','endsWith','match','src/pages','6KHrBbC','295120DJrUmB','isDirectory','3179XnVEXF','split','141001IwXdwt','1460259XegJDs','4648bMbuah','trim','cwd','replace','540YLWyNq','replaceAll'];a88_0x2464=function(){return _0x5172e7;};return a88_0x2464();}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a88_0x282ff3(0x1ca)](),a88_0x282ff3(0x1dc));function a88_0x3cf5(_0x54345d,_0x5c948a){_0x54345d=_0x54345d-0x1c3;const _0x2464b3=a88_0x2464();let _0x3cf5c4=_0x2464b3[_0x54345d];return _0x3cf5c4;}export function extractTitleFromComment(_0x306ee1){const _0x1aeb96=a88_0x282ff3;try{const _0x280da1=readFileSync(_0x306ee1,'utf-8'),_0x553fe5=_0x280da1[_0x1aeb96(0x1db)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x553fe5&&_0x553fe5[0x1]){const _0x591440=_0x553fe5[0x1],_0x5d571e=_0x591440[_0x1aeb96(0x1db)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5d571e&&_0x5d571e[0x1])return _0x5d571e[0x1][_0x1aeb96(0x1c9)]();}let _0x43fe4a=null;const _0x178e24=_0x280da1['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x178e24&&_0x178e24[0x1]&&(_0x43fe4a=_0x178e24[0x1]);if(!_0x43fe4a){const _0x21365d=_0x280da1[_0x1aeb96(0x1db)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x21365d&&_0x21365d[0x1]&&(_0x43fe4a=_0x21365d[0x1]);}if(_0x43fe4a){const _0x39905a=new RegExp('\x5cb'+_0x43fe4a+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x1fde56=_0x280da1[_0x1aeb96(0x1db)](_0x39905a);if(_0x1fde56&&_0x1fde56[0x1])return _0x1fde56[0x1];return _0x43fe4a;}return null;}catch(_0x3482db){return null;}}export function getLocalPages(_0x50024c=pagesDir,_0x488bb5=pagesDir){const _0x179975=a88_0x282ff3;let _0x5ee345=[];const _0x3355de=readdirSync(_0x50024c);return _0x3355de[_0x179975(0x1cf)](_0x1a56f3=>{const _0x23b00e=_0x179975,_0x515b70=join(_0x50024c,_0x1a56f3),_0x419ed5=statSync(_0x515b70);if(_0x419ed5&&_0x419ed5[_0x23b00e(0x1c3)]())_0x5ee345=_0x5ee345[_0x23b00e(0x1d2)](getLocalPages(_0x515b70,_0x488bb5));else{if(_0x1a56f3[_0x23b00e(0x1da)]('.tsx')){let _0x4f83ee=relative(_0x488bb5,_0x515b70);_0x4f83ee['endsWith'](_0x23b00e(0x1d1))?_0x4f83ee=_0x4f83ee[_0x23b00e(0x1cb)](/index\.tsx$/,''):_0x4f83ee=_0x4f83ee[_0x23b00e(0x1cb)](/\.tsx$/,'');_0x4f83ee[_0x23b00e(0x1da)](sep)&&(_0x4f83ee=_0x4f83ee['slice'](0x0,-0x1));const _0x3d3c89=_0x4f83ee[_0x23b00e(0x1c5)](sep)[_0x23b00e(0x1ce)]('/'),_0x239d54=extractTitleFromComment(_0x515b70),_0x2824a0=_0x239d54||_0x3d3c89;_0x5ee345['push']({'path':_0x3d3c89[_0x23b00e(0x1cd)]('$',':'),'label':_0x2824a0});}}}),_0x5ee345['filter'](_0x52ea51=>_0x52ea51[_0x179975(0x1d8)]!=='');}
@@ -1 +1 @@
1
- (function(_0x3fec6f,_0x49c0d8){const _0x259ac7=a89_0x350e,_0x50fa7e=_0x3fec6f();while(!![]){try{const _0x232d76=parseInt(_0x259ac7(0x18a))/0x1*(-parseInt(_0x259ac7(0x199))/0x2)+-parseInt(_0x259ac7(0x188))/0x3+-parseInt(_0x259ac7(0x184))/0x4+-parseInt(_0x259ac7(0x193))/0x5*(parseInt(_0x259ac7(0x196))/0x6)+parseInt(_0x259ac7(0x185))/0x7+-parseInt(_0x259ac7(0x18e))/0x8+parseInt(_0x259ac7(0x19d))/0x9*(parseInt(_0x259ac7(0x1a0))/0xa);if(_0x232d76===_0x49c0d8)break;else _0x50fa7e['push'](_0x50fa7e['shift']());}catch(_0x39ac34){_0x50fa7e['push'](_0x50fa7e['shift']());}}}(a89_0x5de2,0x58e01));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x1dee0f){const _0xc473be=a89_0x350e,_0x1aa66d=[];return!isValidJsHttpsUrl(_0x1dee0f)&&_0x1aa66d['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x1aa66d[_0xc473be(0x198)]===0x0,'errors':_0x1aa66d};}export function validateCssUrl(_0x305734){const _0x339542=a89_0x350e,_0x38443b=[];return!isValidCssHttpsUrl(_0x305734)&&_0x38443b[_0x339542(0x197)](_0x339542(0x18b)),{'ok':_0x38443b[_0x339542(0x198)]===0x0,'errors':_0x38443b};}export async function validateJsUrlReachable(_0x42dd08){const _0x55c820=a89_0x350e,_0x27fd1f=validateJsUrl(_0x42dd08);if(!_0x27fd1f['ok'])return _0x27fd1f;const _0x3022ce=await isUrlReachable(_0x42dd08);if(!_0x3022ce)_0x27fd1f[_0x55c820(0x19c)][_0x55c820(0x197)](_0x55c820(0x191));return{'ok':_0x27fd1f[_0x55c820(0x19c)]['length']===0x0,'errors':_0x27fd1f[_0x55c820(0x19c)]};}export async function validateCssUrlReachable(_0x96da0a){const _0x101be8=a89_0x350e,_0x73b28b=validateCssUrl(_0x96da0a);if(!_0x73b28b['ok'])return _0x73b28b;const _0x2ce91b=await isUrlReachable(_0x96da0a);if(!_0x2ce91b)_0x73b28b[_0x101be8(0x19c)][_0x101be8(0x197)](_0x101be8(0x19a));return{'ok':_0x73b28b[_0x101be8(0x19c)]['length']===0x0,'errors':_0x73b28b['errors']};}export function buildCompareRows(_0x2403af,_0x43bcc0){const _0x3bab41=a89_0x350e;return _0x2403af[_0x3bab41(0x190)](_0x18bbea=>({'label':_0x18bbea['label'],'path':_0x18bbea[_0x3bab41(0x18c)],'local':!![],'online':_0x43bcc0[_0x3bab41(0x18d)](_0x18bbea[_0x3bab41(0x18c)])}));}function a89_0x350e(_0x22fae8,_0x45d201){_0x22fae8=_0x22fae8-0x184;const _0x5de269=a89_0x5de2();let _0x350ef4=_0x5de269[_0x22fae8];return _0x350ef4;}function a89_0x5de2(){const _0x279d4f=['840801YfEOVI','value','7030OwAfwe','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','has','1725256KUcPAP','status','map','JS\x20URL\x20is\x20unreachable','extend','5LmjqDP','No\x20local\x20pages\x20matched\x20labels:\x20','rejected','1122612lWAyhS','push','length','142yzxrPw','CSS\x20URL\x20is\x20unreachable','find','errors','1125fNSJGv','label','resources','90230WrKuqS','898984fLIbYq','4501420hZjVHz','trim','filter'];a89_0x5de2=function(){return _0x279d4f;};return a89_0x5de2();}export function filterNewPages(_0x13deb9,_0x325713,_0xa8a001){const _0xda813f=a89_0x350e;if(_0xa8a001&&_0xa8a001[_0xda813f(0x198)]>0x0){const _0x40b0ab=new Set(_0xa8a001['map'](_0x138e93=>_0x138e93['trim']())),_0x3f507a=_0x13deb9['filter'](_0xb9367e=>_0x40b0ab['has'](_0xb9367e[_0xda813f(0x19e)]));if(_0x3f507a['length']===0x0)throw new Error(_0xda813f(0x194)+[..._0x40b0ab]['join'](',\x20'));return _0x3f507a;}return _0x13deb9[_0xda813f(0x187)](_0x547fe8=>!_0x325713[_0xda813f(0x18d)](_0x547fe8[_0xda813f(0x18c)]));}export function filterPagesByLabels(_0x52f5e6,_0x3515c6){const _0x1d87da=a89_0x350e,_0xdd75c1=[],_0x2cfbbe=[];for(const _0x3c3927 of _0x3515c6){const _0x3c288c=_0x3c3927[_0x1d87da(0x186)](),_0x47aa78=_0x52f5e6[_0x1d87da(0x19b)](_0x2324ac=>_0x2324ac[_0x1d87da(0x19e)]===_0x3c288c);if(_0x47aa78)_0xdd75c1[_0x1d87da(0x197)](_0x47aa78);else _0x2cfbbe[_0x1d87da(0x197)](_0x3c3927);}return{'matched':_0xdd75c1,'unmatched':_0x2cfbbe};}export async function doCreateMenus(_0x3ff074,_0x51ada6,_0x4a0ffd,_0x1a27a1){const _0x523f47=a89_0x350e,_0x5c2149=await createMenus(_0x3ff074,_0x51ada6,_0x4a0ffd,_0x1a27a1);return{'created':_0x5c2149['length'],'failed':0x0,'labels':_0x4a0ffd[_0x523f47(0x190)](_0x4d6aa4=>_0x4d6aa4[_0x523f47(0x19e)]),'menus':_0x5c2149};}export function filterMenusWithResources(_0x1de37e){const _0x2deb69=a89_0x350e;return _0x1de37e[_0x2deb69(0x187)](_0x423cad=>_0x423cad[_0x2deb69(0x19f)]['length']>0x0);}export async function doUpdateCdnUrls(_0x48d052,_0x53a064,_0x3ee38a,_0x14e2a8){const _0x348d1a=a89_0x350e,_0x588dc2=_0x3ee38a['filter'](_0x49747f=>_0x49747f['resources'][_0x348d1a(0x198)]>0x0),_0x5a487e=await Promise['allSettled'](_0x588dc2[_0x348d1a(0x190)](_0x4f7a56=>updateMenuCdnUrl(_0x48d052,_0x53a064,{'id':_0x4f7a56['id'],'label':_0x4f7a56[_0x348d1a(0x19e)],'path':_0x4f7a56[_0x348d1a(0x18c)],'resources':_0x14e2a8,'extend':_0x4f7a56[_0x348d1a(0x192)]??null}))),_0x474034=_0x5a487e[_0x348d1a(0x187)](_0x50a0e1=>_0x50a0e1['status']==='fulfilled')['map'](_0x5eb5af=>_0x5eb5af[_0x348d1a(0x189)]),_0x1c4802=_0x5a487e[_0x348d1a(0x187)](_0x241cd7=>_0x241cd7[_0x348d1a(0x18f)]===_0x348d1a(0x195))[_0x348d1a(0x198)];return{'updated':_0x474034['length'],'failed':_0x1c4802,'menus':_0x474034};}export async function fetchMenuData(_0x56f71e,_0x24ab27){const _0xcc1b05=a89_0x350e,_0x289ffe=getLocalPages(),_0x50c950=await getOnlineMenuList(_0x56f71e,_0x24ab27),_0x587165=new Set(_0x50c950[_0xcc1b05(0x190)](_0x2824a1=>_0x2824a1['path']));return{'localPages':_0x289ffe,'onlineMenuList':_0x50c950,'onlinePaths':_0x587165};}export async function fetchOnlineMenuList(_0x40c09,_0x27be31){return getOnlineMenuList(_0x40c09,_0x27be31);}
1
+ (function(_0x51bc7d,_0x28732c){const _0x2e5b77=a89_0x30b6,_0x232bf2=_0x51bc7d();while(!![]){try{const _0x5bb6e3=-parseInt(_0x2e5b77(0x8e))/0x1*(parseInt(_0x2e5b77(0x9c))/0x2)+-parseInt(_0x2e5b77(0x8f))/0x3+parseInt(_0x2e5b77(0x89))/0x4+parseInt(_0x2e5b77(0x8b))/0x5+-parseInt(_0x2e5b77(0x91))/0x6*(parseInt(_0x2e5b77(0x9f))/0x7)+-parseInt(_0x2e5b77(0x90))/0x8*(-parseInt(_0x2e5b77(0x93))/0x9)+parseInt(_0x2e5b77(0x85))/0xa*(parseInt(_0x2e5b77(0x98))/0xb);if(_0x5bb6e3===_0x28732c)break;else _0x232bf2['push'](_0x232bf2['shift']());}catch(_0x155332){_0x232bf2['push'](_0x232bf2['shift']());}}}(a89_0x42e9,0x1e15b));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';function a89_0x30b6(_0x2314f8,_0xba59a0){_0x2314f8=_0x2314f8-0x82;const _0x42e9bc=a89_0x42e9();let _0x30b679=_0x42e9bc[_0x2314f8];return _0x30b679;}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x5c1617){const _0x4c4205=a89_0x30b6,_0x40a8d8=[];return!isValidJsHttpsUrl(_0x5c1617)&&_0x40a8d8[_0x4c4205(0x83)](_0x4c4205(0x99)),{'ok':_0x40a8d8[_0x4c4205(0x9a)]===0x0,'errors':_0x40a8d8};}export function validateCssUrl(_0xf7e766){const _0x12333c=a89_0x30b6,_0x545cdc=[];return!isValidCssHttpsUrl(_0xf7e766)&&_0x545cdc[_0x12333c(0x83)](_0x12333c(0x8a)),{'ok':_0x545cdc[_0x12333c(0x9a)]===0x0,'errors':_0x545cdc};}export async function validateJsUrlReachable(_0x3ec6d5){const _0x2ed4df=a89_0x30b6,_0x25457b=validateJsUrl(_0x3ec6d5);if(!_0x25457b['ok'])return _0x25457b;const _0x210f1e=await isUrlReachable(_0x3ec6d5);if(!_0x210f1e)_0x25457b[_0x2ed4df(0x9d)][_0x2ed4df(0x83)](_0x2ed4df(0x8d));return{'ok':_0x25457b['errors'][_0x2ed4df(0x9a)]===0x0,'errors':_0x25457b['errors']};}export async function validateCssUrlReachable(_0x1085ed){const _0x6054c0=a89_0x30b6,_0xe2558e=validateCssUrl(_0x1085ed);if(!_0xe2558e['ok'])return _0xe2558e;const _0xce8156=await isUrlReachable(_0x1085ed);if(!_0xce8156)_0xe2558e['errors']['push'](_0x6054c0(0x96));return{'ok':_0xe2558e[_0x6054c0(0x9d)][_0x6054c0(0x9a)]===0x0,'errors':_0xe2558e[_0x6054c0(0x9d)]};}export function buildCompareRows(_0xfd12b6,_0x4476ba){const _0x2b54d8=a89_0x30b6;return _0xfd12b6[_0x2b54d8(0x95)](_0x280125=>({'label':_0x280125[_0x2b54d8(0x92)],'path':_0x280125[_0x2b54d8(0x8c)],'local':!![],'online':_0x4476ba[_0x2b54d8(0x94)](_0x280125[_0x2b54d8(0x8c)])}));}export function filterNewPages(_0x359243,_0x30dce6,_0x4ae097){const _0x59c7df=a89_0x30b6;if(_0x4ae097&&_0x4ae097[_0x59c7df(0x9a)]>0x0){const _0x5ec489=new Set(_0x4ae097['map'](_0x49984c=>_0x49984c[_0x59c7df(0x82)]())),_0xd505de=_0x359243[_0x59c7df(0x87)](_0x5963ef=>_0x5ec489[_0x59c7df(0x94)](_0x5963ef[_0x59c7df(0x92)]));if(_0xd505de['length']===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x5ec489][_0x59c7df(0x86)](',\x20'));return _0xd505de;}return _0x359243[_0x59c7df(0x87)](_0x113ae5=>!_0x30dce6[_0x59c7df(0x94)](_0x113ae5['path']));}function a89_0x42e9(){const _0x11c5ef=['CSS\x20URL\x20is\x20unreachable','find','66eghGXG','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','length','allSettled','2ecPiey','errors','status','13258MephiB','trim','push','resources','1007410nLGLqf','join','filter','value','518032gXAFxp','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','59290DSNFIj','path','JS\x20URL\x20is\x20unreachable','228166SlyucL','545748nqqBHm','8NZULlr','684Uxwmmq','label','30717KvcYLU','has','map'];a89_0x42e9=function(){return _0x11c5ef;};return a89_0x42e9();}export function filterPagesByLabels(_0x4a7147,_0xa095d4){const _0x33fff4=a89_0x30b6,_0x27cf7f=[],_0x1e0815=[];for(const _0x43ef7d of _0xa095d4){const _0x2fd4ef=_0x43ef7d['trim'](),_0x506c31=_0x4a7147[_0x33fff4(0x97)](_0x4bd1e9=>_0x4bd1e9[_0x33fff4(0x92)]===_0x2fd4ef);if(_0x506c31)_0x27cf7f[_0x33fff4(0x83)](_0x506c31);else _0x1e0815['push'](_0x43ef7d);}return{'matched':_0x27cf7f,'unmatched':_0x1e0815};}export async function doCreateMenus(_0x2ae7dc,_0x483915,_0x411538,_0x3db5e9){const _0xdeac78=a89_0x30b6,_0x572585=await createMenus(_0x2ae7dc,_0x483915,_0x411538,_0x3db5e9);return{'created':_0x572585[_0xdeac78(0x9a)],'failed':0x0,'labels':_0x411538[_0xdeac78(0x95)](_0x483fe0=>_0x483fe0[_0xdeac78(0x92)]),'menus':_0x572585};}export function filterMenusWithResources(_0xbc637b){const _0x524439=a89_0x30b6;return _0xbc637b['filter'](_0x1b947b=>_0x1b947b[_0x524439(0x84)]['length']>0x0);}export async function doUpdateCdnUrls(_0x16e084,_0x59f3cf,_0x4f3cab,_0x764169){const _0x40b921=a89_0x30b6,_0x13af2a=_0x4f3cab['filter'](_0x1a3430=>_0x1a3430[_0x40b921(0x84)][_0x40b921(0x9a)]>0x0),_0xde7104=await Promise[_0x40b921(0x9b)](_0x13af2a[_0x40b921(0x95)](_0x5d8c56=>updateMenuCdnUrl(_0x16e084,_0x59f3cf,{'id':_0x5d8c56['id'],'label':_0x5d8c56[_0x40b921(0x92)],'path':_0x5d8c56[_0x40b921(0x8c)],'resources':_0x764169,'extend':_0x5d8c56['extend']??null}))),_0x5ceba9=_0xde7104['filter'](_0x5cfa2f=>_0x5cfa2f[_0x40b921(0x9e)]==='fulfilled')[_0x40b921(0x95)](_0x14a909=>_0x14a909[_0x40b921(0x88)]),_0x4f0e9c=_0xde7104['filter'](_0x55a3a2=>_0x55a3a2[_0x40b921(0x9e)]==='rejected')[_0x40b921(0x9a)];return{'updated':_0x5ceba9['length'],'failed':_0x4f0e9c,'menus':_0x5ceba9};}export async function fetchMenuData(_0x483e36,_0x3fd526){const _0x2c3522=a89_0x30b6,_0x5b64e6=getLocalPages(),_0x14ac47=await getOnlineMenuList(_0x483e36,_0x3fd526),_0x23f26c=new Set(_0x14ac47[_0x2c3522(0x95)](_0x3a8af9=>_0x3a8af9[_0x2c3522(0x8c)]));return{'localPages':_0x5b64e6,'onlineMenuList':_0x14ac47,'onlinePaths':_0x23f26c};}export async function fetchOnlineMenuList(_0x52ac66,_0x4c5b07){return getOnlineMenuList(_0x52ac66,_0x4c5b07);}
@@ -1 +1 @@
1
- (function(_0x4e6cce,_0x1011c3){const _0x19d3bc=a90_0x4927,_0x4937c0=_0x4e6cce();while(!![]){try{const _0x12f329=-parseInt(_0x19d3bc(0xe1))/0x1*(parseInt(_0x19d3bc(0xe3))/0x2)+-parseInt(_0x19d3bc(0xda))/0x3*(parseInt(_0x19d3bc(0xd6))/0x4)+parseInt(_0x19d3bc(0xca))/0x5*(-parseInt(_0x19d3bc(0xc9))/0x6)+parseInt(_0x19d3bc(0xef))/0x7+parseInt(_0x19d3bc(0xeb))/0x8*(parseInt(_0x19d3bc(0xf8))/0x9)+parseInt(_0x19d3bc(0xf2))/0xa*(-parseInt(_0x19d3bc(0xe5))/0xb)+parseInt(_0x19d3bc(0xcc))/0xc;if(_0x12f329===_0x1011c3)break;else _0x4937c0['push'](_0x4937c0['shift']());}catch(_0x3c5a3a){_0x4937c0['push'](_0x4937c0['shift']());}}}(a90_0x5ccc,0x42c4b));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x732de7,_0x236271){const _0x5877a1=a90_0x4927,_0x52a0e2=getEnv();logger[_0x5877a1(0xea)](_0x5877a1(0xee),isProduction(_0x52a0e2)?_0x5877a1(0xe2)+_0x732de7+')':_0x5877a1(0xdb)+_0x732de7+')');const _0x509758=await platformFetch(getApiDomain()+_0x5877a1(0xf1)+_0x732de7,{'cookie':_0x236271,'label':'Fetch\x20menu\x20list'});if(!_0x509758)return logger[_0x5877a1(0xea)](_0x5877a1(0xee),_0x5877a1(0xed)),[];return logger[_0x5877a1(0xea)](_0x5877a1(0xee),_0x5877a1(0xd9)+_0x509758['length']+_0x5877a1(0xd2)),_0x509758[_0x5877a1(0xdc)](flattenMenuItem)[_0x5877a1(0xcd)]();}function a90_0x4927(_0x43bfd9,_0x3448df){_0x43bfd9=_0x43bfd9-0xc8;const _0x5ccc3b=a90_0x5ccc();let _0x49275d=_0x5ccc3b[_0x43bfd9];return _0x49275d;}function flattenMenuItem(_0x5770c1){const _0x5bce85=a90_0x4927;let _0x57d39d=[];try{const _0x236944=_0x5770c1[_0x5bce85(0xd8)]?.[_0x5bce85(0xd4)];if(typeof _0x236944===_0x5bce85(0xe9)){const _0x254e00=JSON[_0x5bce85(0xde)](_0x236944);if(Array[_0x5bce85(0xe6)](_0x254e00))_0x57d39d=_0x254e00[_0x5bce85(0xdc)](String);}else Array[_0x5bce85(0xe6)](_0x236944)&&(_0x57d39d=_0x236944['map'](String));}catch{}const _0x355468=[{'id':_0x5770c1['id'],'path':_0x5770c1['path'],'label':_0x5770c1[_0x5bce85(0xec)],'resources':_0x57d39d,'extend':_0x5770c1['extend']??null}];if(_0x5770c1[_0x5bce85(0xd5)]&&_0x5770c1['children']['length']>0x0)for(const _0x264cae of _0x5770c1['children']){_0x355468[_0x5bce85(0xcb)](...flattenMenuItem(_0x264cae));}return _0x355468;}export async function createMenu(_0x4f06c7,_0x4c147d,_0x155a45){const _0x1b8c84=a90_0x4927;logger[_0x1b8c84(0xea)](_0x1b8c84(0xf0),'Creating\x20menu:\x20'+_0x155a45['label']+'\x20('+_0x155a45[_0x1b8c84(0xd7)]+')');const _0x436cce={'appCode':_0x4f06c7,'type':_0x1b8c84(0xce),'sort':0x0,'extend':{'loadScriptMode':_0x1b8c84(0xf4),'resources':_0x155a45[_0x1b8c84(0xd4)]?JSON[_0x1b8c84(0xdf)](_0x155a45[_0x1b8c84(0xd4)]):undefined},..._0x155a45},_0x347118=await platformFetch(getApiDomain()+_0x1b8c84(0xf5),{'method':_0x1b8c84(0xd0),'body':_0x436cce,'cookie':_0x4c147d,'label':_0x1b8c84(0xe7)+_0x155a45[_0x1b8c84(0xec)]+'\x22'});return logger[_0x1b8c84(0xea)]('create-menu',_0x1b8c84(0xf7)+_0x155a45[_0x1b8c84(0xec)]),_0x347118;}function a90_0x5ccc(){const _0x46b8dc=['isArray','Create\x20menu\x20\x22','Start\x20batch\x20menu\x20creation,\x20total\x20','string','info','908104cNwnMa','label','Server\x20returned\x20empty\x20menu\x20list','get-online-menu-list','167272VjrwmO','create-menu','/smartapi/menu/find?appCode=','920GhRKMo','length','import','/smartapi/menu/create','update-menu-cdn-url','Menu\x20created\x20successfully:\x20','9ZSJfnG','Menu\x20assets\x20synced:\x20','486PZlQKy','14205qKqKCY','push','19779888CFycLA','flat','procode','/smartapi/menu/update','POST','all','\x20online\x20menus\x20successfully','create-menus','resources','children','1699636PdATdl','path','extend','Fetched\x20','3CwqnUY','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','map','Batch\x20menu\x20creation\x20completed,\x20total\x20','parse','stringify','Updating\x20menu\x20asset\x20links:\x20','54626SWKkyC','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','20AvEFIO','Update\x20menu\x20assets\x20\x22','37180YGbEbs'];a90_0x5ccc=function(){return _0x46b8dc;};return a90_0x5ccc();}async function createSingleMenu(_0x4fee01,_0x39208d,_0x9e6926,_0x562190){const _0x8bacf7=a90_0x4927,_0x1e8518={'appCode':_0x4fee01,'type':_0x8bacf7(0xce),'sort':0x0,'extend':{'loadScriptMode':_0x8bacf7(0xf4),'resources':_0x562190?JSON[_0x8bacf7(0xdf)](_0x562190):undefined},'label':_0x9e6926[_0x8bacf7(0xec)],'path':_0x9e6926[_0x8bacf7(0xd7)]},_0x3c73e2=await platformFetch(getApiDomain()+_0x8bacf7(0xf5),{'method':_0x8bacf7(0xd0),'body':_0x1e8518,'cookie':_0x39208d,'label':_0x8bacf7(0xe7)+_0x9e6926[_0x8bacf7(0xec)]+'\x22'});return logger['info'](_0x8bacf7(0xf0),'Menu\x20created\x20successfully:\x20'+_0x9e6926[_0x8bacf7(0xec)]),_0x3c73e2;}export async function createMenus(_0x33afbf,_0x210531,_0x3ed22f,_0x41b276){const _0x1120bd=a90_0x4927;logger[_0x1120bd(0xea)](_0x1120bd(0xd3),_0x1120bd(0xe8)+_0x3ed22f['length']);const _0x448a53=await Promise[_0x1120bd(0xd1)](_0x3ed22f[_0x1120bd(0xdc)](_0x104370=>createSingleMenu(_0x33afbf,_0x210531,_0x104370,_0x41b276)));return logger[_0x1120bd(0xea)]('create-menus',_0x1120bd(0xdd)+_0x3ed22f[_0x1120bd(0xf3)]),_0x448a53;}export async function updateMenuCdnUrl(_0x749c81,_0x24e01b,_0x3a8f10){const _0x37279b=a90_0x4927;logger['info']('update-menu-cdn-url',_0x37279b(0xe0)+_0x3a8f10[_0x37279b(0xec)]+'\x20('+_0x3a8f10[_0x37279b(0xd7)]+')');const _0x4c978b={'id':_0x3a8f10['id'],'appCode':_0x749c81,'extend':{..._0x3a8f10[_0x37279b(0xd8)]??{},'loadScriptMode':_0x37279b(0xf4),'resources':_0x3a8f10[_0x37279b(0xd4)]?JSON['stringify'](_0x3a8f10[_0x37279b(0xd4)]):undefined}},_0x35fb83=await platformFetch(getApiDomain()+_0x37279b(0xcf),{'method':_0x37279b(0xd0),'body':_0x4c978b,'cookie':_0x24e01b,'label':_0x37279b(0xe4)+_0x3a8f10[_0x37279b(0xec)]+'\x22'});return logger[_0x37279b(0xea)](_0x37279b(0xf6),_0x37279b(0xc8)+_0x3a8f10['label'],undefined),_0x35fb83;}
1
+ (function(_0x374d2a,_0x583251){const _0x50a082=a90_0x3854,_0x4c28ce=_0x374d2a();while(!![]){try{const _0x34119b=parseInt(_0x50a082(0x126))/0x1+parseInt(_0x50a082(0x120))/0x2*(-parseInt(_0x50a082(0x122))/0x3)+-parseInt(_0x50a082(0x138))/0x4+parseInt(_0x50a082(0x12b))/0x5*(parseInt(_0x50a082(0x123))/0x6)+-parseInt(_0x50a082(0x144))/0x7+parseInt(_0x50a082(0x136))/0x8*(parseInt(_0x50a082(0x13f))/0x9)+parseInt(_0x50a082(0x11f))/0xa*(parseInt(_0x50a082(0x13c))/0xb);if(_0x34119b===_0x583251)break;else _0x4c28ce['push'](_0x4c28ce['shift']());}catch(_0x3dbea6){_0x4c28ce['push'](_0x4c28ce['shift']());}}}(a90_0x578b,0xca4d3));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';function a90_0x3854(_0x145281,_0x4bbb9d){_0x145281=_0x145281-0x11a;const _0x578b82=a90_0x578b();let _0x385459=_0x578b82[_0x145281];return _0x385459;}import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x58157c,_0x2be184){const _0x3ec824=a90_0x3854,_0x9f5e9b=getEnv();logger[_0x3ec824(0x121)](_0x3ec824(0x139),isProduction(_0x9f5e9b)?_0x3ec824(0x132)+_0x58157c+')':_0x3ec824(0x11e)+_0x58157c+')');const _0x269caa=await platformFetch(getApiDomain()+_0x3ec824(0x12c)+_0x58157c,{'cookie':_0x2be184,'label':'Fetch\x20menu\x20list'});if(!_0x269caa)return logger['info'](_0x3ec824(0x139),_0x3ec824(0x12d)),[];return logger[_0x3ec824(0x121)]('get-online-menu-list',_0x3ec824(0x137)+_0x269caa[_0x3ec824(0x11c)]+'\x20online\x20menus\x20successfully'),_0x269caa[_0x3ec824(0x135)](flattenMenuItem)[_0x3ec824(0x130)]();}function flattenMenuItem(_0x555415){const _0x2684da=a90_0x3854;let _0x379ff5=[];try{const _0x1c70d7=_0x555415[_0x2684da(0x12a)]?.[_0x2684da(0x128)];if(typeof _0x1c70d7==='string'){const _0x5381a2=JSON[_0x2684da(0x11d)](_0x1c70d7);if(Array[_0x2684da(0x13e)](_0x5381a2))_0x379ff5=_0x5381a2[_0x2684da(0x135)](String);}else Array[_0x2684da(0x13e)](_0x1c70d7)&&(_0x379ff5=_0x1c70d7['map'](String));}catch{}const _0x9a3d3b=[{'id':_0x555415['id'],'path':_0x555415[_0x2684da(0x125)],'label':_0x555415[_0x2684da(0x141)],'resources':_0x379ff5,'extend':_0x555415[_0x2684da(0x12a)]??null}];if(_0x555415[_0x2684da(0x13b)]&&_0x555415[_0x2684da(0x13b)][_0x2684da(0x11c)]>0x0)for(const _0x1feba2 of _0x555415[_0x2684da(0x13b)]){_0x9a3d3b[_0x2684da(0x133)](...flattenMenuItem(_0x1feba2));}return _0x9a3d3b;}export async function createMenu(_0x45902c,_0x45c608,_0x389037){const _0x164163=a90_0x3854;logger[_0x164163(0x121)](_0x164163(0x12e),'Creating\x20menu:\x20'+_0x389037['label']+'\x20('+_0x389037[_0x164163(0x125)]+')');const _0xd20577={'appCode':_0x45902c,'type':_0x164163(0x142),'sort':0x0,'extend':{'loadScriptMode':_0x164163(0x13a),'resources':_0x389037['resources']?JSON[_0x164163(0x131)](_0x389037[_0x164163(0x128)]):undefined},..._0x389037},_0x47c384=await platformFetch(getApiDomain()+_0x164163(0x13d),{'method':_0x164163(0x11b),'body':_0xd20577,'cookie':_0x45c608,'label':'Create\x20menu\x20\x22'+_0x389037['label']+'\x22'});return logger[_0x164163(0x121)](_0x164163(0x12e),_0x164163(0x145)+_0x389037[_0x164163(0x141)]),_0x47c384;}function a90_0x578b(){const _0xd2ffc8=['flat','stringify','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','push','create-menus','map','8ptcDIm','Fetched\x20','3126940eHxRZX','get-online-menu-list','import','children','143MsVaJQ','/smartapi/menu/create','isArray','5243787whaVSN','Create\x20menu\x20\x22','label','procode','Start\x20batch\x20menu\x20creation,\x20total\x20','10328395hcRGtZ','Menu\x20created\x20successfully:\x20','Batch\x20menu\x20creation\x20completed,\x20total\x20','POST','length','parse','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','1211570Mypfcr','60ZmhQLJ','info','110127bWYEkb','37902bmvMeh','/smartapi/menu/update','path','1290344UCGzKD','update-menu-cdn-url','resources','Menu\x20assets\x20synced:\x20','extend','585XMMbzs','/smartapi/menu/find?appCode=','Server\x20returned\x20empty\x20menu\x20list','create-menu','Updating\x20menu\x20asset\x20links:\x20'];a90_0x578b=function(){return _0xd2ffc8;};return a90_0x578b();}async function createSingleMenu(_0x5a0c31,_0x221a04,_0x34ead2,_0x1acb30){const _0x39ff12=a90_0x3854,_0x1a7218={'appCode':_0x5a0c31,'type':_0x39ff12(0x142),'sort':0x0,'extend':{'loadScriptMode':'import','resources':_0x1acb30?JSON[_0x39ff12(0x131)](_0x1acb30):undefined},'label':_0x34ead2[_0x39ff12(0x141)],'path':_0x34ead2[_0x39ff12(0x125)]},_0x4e9b03=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':'POST','body':_0x1a7218,'cookie':_0x221a04,'label':_0x39ff12(0x140)+_0x34ead2['label']+'\x22'});return logger[_0x39ff12(0x121)]('create-menu',_0x39ff12(0x145)+_0x34ead2[_0x39ff12(0x141)]),_0x4e9b03;}export async function createMenus(_0x5bfc1d,_0x47af98,_0x5daadc,_0x12d605){const _0x32de22=a90_0x3854;logger['info'](_0x32de22(0x134),_0x32de22(0x143)+_0x5daadc[_0x32de22(0x11c)]);const _0x50ec36=await Promise['all'](_0x5daadc[_0x32de22(0x135)](_0x2607f1=>createSingleMenu(_0x5bfc1d,_0x47af98,_0x2607f1,_0x12d605)));return logger[_0x32de22(0x121)](_0x32de22(0x134),_0x32de22(0x11a)+_0x5daadc['length']),_0x50ec36;}export async function updateMenuCdnUrl(_0x304112,_0x28fc13,_0x1092a1){const _0x51ceb1=a90_0x3854;logger[_0x51ceb1(0x121)](_0x51ceb1(0x127),_0x51ceb1(0x12f)+_0x1092a1[_0x51ceb1(0x141)]+'\x20('+_0x1092a1[_0x51ceb1(0x125)]+')');const _0x84ba32={'id':_0x1092a1['id'],'appCode':_0x304112,'extend':{..._0x1092a1[_0x51ceb1(0x12a)]??{},'loadScriptMode':_0x51ceb1(0x13a),'resources':_0x1092a1['resources']?JSON['stringify'](_0x1092a1[_0x51ceb1(0x128)]):undefined}},_0x47a8f8=await platformFetch(getApiDomain()+_0x51ceb1(0x124),{'method':_0x51ceb1(0x11b),'body':_0x84ba32,'cookie':_0x28fc13,'label':'Update\x20menu\x20assets\x20\x22'+_0x1092a1['label']+'\x22'});return logger['info'](_0x51ceb1(0x127),_0x51ceb1(0x129)+_0x1092a1['label'],undefined),_0x47a8f8;}
@@ -1 +1 @@
1
- (function(_0x1c5a58,_0x377616){const _0xce67cb=a91_0x4bca,_0x5b7f89=_0x1c5a58();while(!![]){try{const _0xbbb4c8=-parseInt(_0xce67cb(0x7f))/0x1*(-parseInt(_0xce67cb(0x77))/0x2)+-parseInt(_0xce67cb(0x7b))/0x3+parseInt(_0xce67cb(0x85))/0x4*(-parseInt(_0xce67cb(0x71))/0x5)+-parseInt(_0xce67cb(0x6a))/0x6+parseInt(_0xce67cb(0x81))/0x7+-parseInt(_0xce67cb(0x87))/0x8+-parseInt(_0xce67cb(0x73))/0x9*(-parseInt(_0xce67cb(0x6c))/0xa);if(_0xbbb4c8===_0x377616)break;else _0x5b7f89['push'](_0x5b7f89['shift']());}catch(_0x4027cf){_0x5b7f89['push'](_0x5b7f89['shift']());}}}(a91_0x514e,0x7fa28));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';function validateParams(_0x2a2e73){const _0x4853ff=a91_0x4bca,_0xd6f2c5=[];return _0x2a2e73[_0x4853ff(0x78)]&&!isValidJsHttpsUrl(_0x2a2e73[_0x4853ff(0x78)])&&_0xd6f2c5[_0x4853ff(0x70)]({'field':_0x4853ff(0x78),'message':_0x4853ff(0x69)}),_0x2a2e73[_0x4853ff(0x88)]&&!isValidCssHttpsUrl(_0x2a2e73[_0x4853ff(0x88)])&&_0xd6f2c5[_0x4853ff(0x70)]({'field':'cssUrl','message':'CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'}),_0xd6f2c5;}function a91_0x514e(){const _0xb3edb9=['3008936yocjEa','\x0a\x20\x20Available\x20local\x20pages:\x20','No\x20local\x20pages\x20matched\x20labels:\x20','field','540796siArUc','end','7296808ezySFO','cssUrl','parse','label','trim','JS\x20URL\x20is\x20unreachable:\x20','pages','info','path','stdin','string','Start\x20non-interactive\x20menu\x20sync','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','5038764deEHgW','data','20871610cPeKel','menu-sync','CSS\x20URL\x20is\x20unreachable:\x20','isTTY','push','5PCFMvN','setLogPath','9zuVGPA','toString','--params.','filter','2YfjCLm','jsUrl','map','length','2423286oOMbtq','cwd','startsWith','join','700639KYzyWO','split'];a91_0x514e=function(){return _0xb3edb9;};return a91_0x514e();}function a91_0x4bca(_0x315bf2,_0x5ad84a){_0x315bf2=_0x315bf2-0x64;const _0x514e0f=a91_0x514e();let _0x4bca1b=_0x514e0f[_0x315bf2];return _0x4bca1b;}export async function runMenuSyncCore(_0x456170,_0x42c5c4,_0x39626b=[],_0x414df6){const _0x5ef567=a91_0x4bca,_0x322f89=parseParamsFlag(_0x414df6),_0x4c289f=_0x39626b[_0x5ef567(0x7a)]>0x0?_0x39626b:_0x322f89['selectedLabels'],_0x210663=_0x322f89[_0x5ef567(0x78)],_0x28717b=_0x322f89[_0x5ef567(0x88)],_0x2db390=[];if(_0x210663)_0x2db390[_0x5ef567(0x70)](_0x210663);if(_0x28717b)_0x2db390[_0x5ef567(0x70)](_0x28717b);const _0x9dc153=validateParams(_0x322f89);if(_0x9dc153[_0x5ef567(0x7a)]>0x0){const _0x6a2599=_0x9dc153[_0x5ef567(0x79)](_0x56ee83=>_0x5ef567(0x75)+_0x56ee83[_0x5ef567(0x84)]+':\x20'+_0x56ee83['message'])[_0x5ef567(0x7e)](';\x20');throw new Error('Invalid\x20--params:\x20'+_0x6a2599);}logger[_0x5ef567(0x72)](process[_0x5ef567(0x7c)]()),logger[_0x5ef567(0x64)](_0x5ef567(0x6d),_0x5ef567(0x68),{'appCode':_0x456170,'selectedCount':_0x4c289f?.[_0x5ef567(0x7a)],'jsUrl':_0x210663,'cssUrl':_0x28717b});if(_0x210663){const _0x20769d=await isUrlReachable(_0x210663);if(!_0x20769d)throw new Error(_0x5ef567(0x8c)+_0x210663);}if(_0x28717b){const _0x196fa4=await isUrlReachable(_0x28717b);if(!_0x196fa4)throw new Error(_0x5ef567(0x6e)+_0x28717b);}const _0x3fd1eb=getLocalPages();if(_0x3fd1eb[_0x5ef567(0x7a)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x72dd02=await getOnlineMenuList(_0x456170,_0x42c5c4),_0x3ccdfd=new Set(_0x72dd02['map'](_0x16b113=>_0x16b113[_0x5ef567(0x65)]));let _0x4fab81;if(_0x4c289f&&_0x4c289f[_0x5ef567(0x7a)]>0x0){const _0x17afb5=new Set(_0x4c289f[_0x5ef567(0x79)](_0x1f499d=>_0x1f499d[_0x5ef567(0x8b)]()));_0x4fab81=_0x3fd1eb[_0x5ef567(0x76)](_0x2103a3=>_0x17afb5['has'](_0x2103a3[_0x5ef567(0x8a)]));if(_0x4fab81['length']===0x0){const _0x6499d4=_0x3fd1eb['map'](_0x5cd72d=>_0x5cd72d['label'])[_0x5ef567(0x7e)](',\x20');throw new Error(_0x5ef567(0x83)+[..._0x17afb5][_0x5ef567(0x7e)](',\x20')+_0x5ef567(0x82)+_0x6499d4);}}else _0x4fab81=_0x3fd1eb[_0x5ef567(0x76)](_0x49cad7=>!_0x3ccdfd['has'](_0x49cad7[_0x5ef567(0x65)]));if(_0x4fab81['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x3db646=await createMenus(_0x456170,_0x42c5c4,_0x4fab81,_0x2db390[_0x5ef567(0x7a)]>0x0?_0x2db390:undefined);return logger[_0x5ef567(0x64)]('menu-sync','Menu\x20sync\x20completed',{'count':_0x4fab81[_0x5ef567(0x7a)],'resources':_0x2db390}),{'created':_0x3db646[_0x5ef567(0x7a)],'skipped':![],'targetPages':_0x4fab81,'menus':_0x3db646};}export async function readPageLabelsFromStdin(){const _0x1842b3=a91_0x4bca;if(!process['stdin'][_0x1842b3(0x6f)]&&!process[_0x1842b3(0x66)]['readableEnded'])return new Promise(_0x4bc048=>{const _0x19068f=_0x1842b3,_0x535e19=[];process[_0x19068f(0x66)]['on'](_0x19068f(0x6b),_0x3345bb=>_0x535e19['push'](_0x3345bb)),process['stdin']['on'](_0x19068f(0x86),()=>{const _0x2c688d=_0x19068f,_0x12fe43=Buffer['concat'](_0x535e19)[_0x2c688d(0x74)]('utf8'),_0x149722=_0x12fe43[_0x2c688d(0x80)]('\x0a')[_0x2c688d(0x79)](_0x25df49=>_0x25df49['trim']())[_0x2c688d(0x76)](_0x2e75b6=>_0x2e75b6[_0x2c688d(0x7a)]>0x0&&!_0x2e75b6[_0x2c688d(0x7d)]('#'));_0x4bc048(_0x149722);}),setTimeout(()=>_0x4bc048([]),0x1f4);});return[];}function parseParamsFlag(_0x230b01){const _0x58cfc7=a91_0x4bca;if(!_0x230b01||typeof _0x230b01!==_0x58cfc7(0x67))return{};try{const _0x544e74=JSON[_0x58cfc7(0x89)](_0x230b01);if(typeof _0x544e74!=='object'||_0x544e74===null||Array['isArray'](_0x544e74))return{};return{'selectedLabels':Array['isArray'](_0x544e74[_0x58cfc7(0x8d)])?_0x544e74['pages'][_0x58cfc7(0x79)](String):undefined,'jsUrl':typeof _0x544e74[_0x58cfc7(0x78)]===_0x58cfc7(0x67)?_0x544e74[_0x58cfc7(0x78)][_0x58cfc7(0x8b)]():undefined,'cssUrl':typeof _0x544e74[_0x58cfc7(0x88)]===_0x58cfc7(0x67)?_0x544e74[_0x58cfc7(0x88)]['trim']():undefined};}catch{return{};}}
1
+ (function(_0x1ddaa6,_0x48f0f0){const _0x589bda=a91_0x1cef,_0xe7a0fe=_0x1ddaa6();while(!![]){try{const _0x448301=parseInt(_0x589bda(0xc8))/0x1*(parseInt(_0x589bda(0xb4))/0x2)+-parseInt(_0x589bda(0xc6))/0x3*(parseInt(_0x589bda(0xcd))/0x4)+parseInt(_0x589bda(0xbd))/0x5+parseInt(_0x589bda(0xab))/0x6+-parseInt(_0x589bda(0xd1))/0x7+-parseInt(_0x589bda(0xa7))/0x8*(-parseInt(_0x589bda(0xcb))/0x9)+parseInt(_0x589bda(0xce))/0xa*(-parseInt(_0x589bda(0xb0))/0xb);if(_0x448301===_0x48f0f0)break;else _0xe7a0fe['push'](_0xe7a0fe['shift']());}catch(_0xadb154){_0xe7a0fe['push'](_0xe7a0fe['shift']());}}}(a91_0x50bd,0x2ae1f));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';function a91_0x50bd(){const _0x28ff8a=['isArray','setLogPath','588582scpOHO','isTTY','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','utf8','label','42944Ceuerp','No\x20local\x20pages\x20matched\x20labels:\x20','filter','cwd','2tCZqup','join','trim','info','cssUrl','startsWith','length','path','toString','812210WWJdKU','has','parse','--params.','end','push','string','pages','concat','18YLuxCd','jsUrl','257339upLgyW','menu-sync','JS\x20URL\x20is\x20unreachable:\x20','927foRbIV','stdin','56248ZElCAq','170UMBIWu','data','split','2379398LYEbuu','readableEnded','\x0a\x20\x20Available\x20local\x20pages:\x20','CSS\x20URL\x20is\x20unreachable:\x20','selectedLabels','Invalid\x20--params:\x20','object','11528XQnlRg','map'];a91_0x50bd=function(){return _0x28ff8a;};return a91_0x50bd();}import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x50a34c){const _0x3ea8f1=a91_0x1cef,_0x1a1a1a=[];return _0x50a34c['jsUrl']&&!isValidJsHttpsUrl(_0x50a34c[_0x3ea8f1(0xc7)])&&_0x1a1a1a[_0x3ea8f1(0xc2)]({'field':'jsUrl','message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x50a34c['cssUrl']&&!isValidCssHttpsUrl(_0x50a34c[_0x3ea8f1(0xb8)])&&_0x1a1a1a[_0x3ea8f1(0xc2)]({'field':_0x3ea8f1(0xb8),'message':_0x3ea8f1(0xad)}),_0x1a1a1a;}export async function runMenuSyncCore(_0x1e052e,_0x38cf7d,_0x4373b9=[],_0x434fd2){const _0x1c6bbf=a91_0x1cef,_0x2789f0=parseParamsFlag(_0x434fd2),_0x333b3e=_0x4373b9[_0x1c6bbf(0xba)]>0x0?_0x4373b9:_0x2789f0[_0x1c6bbf(0xa4)],_0x3b53df=_0x2789f0[_0x1c6bbf(0xc7)],_0x27805f=_0x2789f0[_0x1c6bbf(0xb8)],_0x3f15d3=[];if(_0x3b53df)_0x3f15d3[_0x1c6bbf(0xc2)](_0x3b53df);if(_0x27805f)_0x3f15d3['push'](_0x27805f);const _0x1be273=validateParams(_0x2789f0);if(_0x1be273['length']>0x0){const _0x44269c=_0x1be273[_0x1c6bbf(0xa8)](_0x27a726=>_0x1c6bbf(0xc0)+_0x27a726['field']+':\x20'+_0x27a726['message'])[_0x1c6bbf(0xb5)](';\x20');throw new Error(_0x1c6bbf(0xa5)+_0x44269c);}logger[_0x1c6bbf(0xaa)](process[_0x1c6bbf(0xb3)]()),logger[_0x1c6bbf(0xb7)]('menu-sync','Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x1e052e,'selectedCount':_0x333b3e?.['length'],'jsUrl':_0x3b53df,'cssUrl':_0x27805f});if(_0x3b53df){const _0x1e6aef=await isUrlReachable(_0x3b53df);if(!_0x1e6aef)throw new Error(_0x1c6bbf(0xca)+_0x3b53df);}if(_0x27805f){const _0x59c188=await isUrlReachable(_0x27805f);if(!_0x59c188)throw new Error(_0x1c6bbf(0xa3)+_0x27805f);}const _0x35ed03=getLocalPages();if(_0x35ed03['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x1db306=await getOnlineMenuList(_0x1e052e,_0x38cf7d),_0x26db0e=new Set(_0x1db306['map'](_0x5d2ab8=>_0x5d2ab8[_0x1c6bbf(0xbb)]));let _0x24e12a;if(_0x333b3e&&_0x333b3e[_0x1c6bbf(0xba)]>0x0){const _0x5b09b3=new Set(_0x333b3e[_0x1c6bbf(0xa8)](_0x4cfa9b=>_0x4cfa9b[_0x1c6bbf(0xb6)]()));_0x24e12a=_0x35ed03[_0x1c6bbf(0xb2)](_0x131bdd=>_0x5b09b3['has'](_0x131bdd[_0x1c6bbf(0xaf)]));if(_0x24e12a[_0x1c6bbf(0xba)]===0x0){const _0x3d07fc=_0x35ed03[_0x1c6bbf(0xa8)](_0x296fe3=>_0x296fe3[_0x1c6bbf(0xaf)])['join'](',\x20');throw new Error(_0x1c6bbf(0xb1)+[..._0x5b09b3][_0x1c6bbf(0xb5)](',\x20')+_0x1c6bbf(0xa2)+_0x3d07fc);}}else _0x24e12a=_0x35ed03[_0x1c6bbf(0xb2)](_0x2ba584=>!_0x26db0e[_0x1c6bbf(0xbe)](_0x2ba584[_0x1c6bbf(0xbb)]));if(_0x24e12a[_0x1c6bbf(0xba)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x1f8c57=await createMenus(_0x1e052e,_0x38cf7d,_0x24e12a,_0x3f15d3[_0x1c6bbf(0xba)]>0x0?_0x3f15d3:undefined);return logger[_0x1c6bbf(0xb7)](_0x1c6bbf(0xc9),'Menu\x20sync\x20completed',{'count':_0x24e12a[_0x1c6bbf(0xba)],'resources':_0x3f15d3}),{'created':_0x1f8c57[_0x1c6bbf(0xba)],'skipped':![],'targetPages':_0x24e12a,'menus':_0x1f8c57};}function a91_0x1cef(_0x439f6d,_0x574897){_0x439f6d=_0x439f6d-0xa2;const _0x50bd33=a91_0x50bd();let _0x1cef7c=_0x50bd33[_0x439f6d];return _0x1cef7c;}export async function readPageLabelsFromStdin(){const _0x2069b1=a91_0x1cef;if(!process[_0x2069b1(0xcc)][_0x2069b1(0xac)]&&!process['stdin'][_0x2069b1(0xd2)])return new Promise(_0x579156=>{const _0x602752=_0x2069b1,_0x227d7a=[];process[_0x602752(0xcc)]['on'](_0x602752(0xcf),_0x8d250d=>_0x227d7a[_0x602752(0xc2)](_0x8d250d)),process[_0x602752(0xcc)]['on'](_0x602752(0xc1),()=>{const _0x5ddc41=_0x602752,_0x461660=Buffer[_0x5ddc41(0xc5)](_0x227d7a)[_0x5ddc41(0xbc)](_0x5ddc41(0xae)),_0x18de40=_0x461660[_0x5ddc41(0xd0)]('\x0a')[_0x5ddc41(0xa8)](_0x110799=>_0x110799[_0x5ddc41(0xb6)]())[_0x5ddc41(0xb2)](_0x42eeb0=>_0x42eeb0[_0x5ddc41(0xba)]>0x0&&!_0x42eeb0[_0x5ddc41(0xb9)]('#'));_0x579156(_0x18de40);}),setTimeout(()=>_0x579156([]),0x1f4);});return[];}function parseParamsFlag(_0x1fe994){const _0x546d14=a91_0x1cef;if(!_0x1fe994||typeof _0x1fe994!=='string')return{};try{const _0x31f5ba=JSON[_0x546d14(0xbf)](_0x1fe994);if(typeof _0x31f5ba!==_0x546d14(0xa6)||_0x31f5ba===null||Array[_0x546d14(0xa9)](_0x31f5ba))return{};return{'selectedLabels':Array['isArray'](_0x31f5ba[_0x546d14(0xc4)])?_0x31f5ba['pages'][_0x546d14(0xa8)](String):undefined,'jsUrl':typeof _0x31f5ba['jsUrl']==='string'?_0x31f5ba[_0x546d14(0xc7)][_0x546d14(0xb6)]():undefined,'cssUrl':typeof _0x31f5ba[_0x546d14(0xb8)]===_0x546d14(0xc3)?_0x31f5ba[_0x546d14(0xb8)][_0x546d14(0xb6)]():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- (function(_0x105092,_0x11ef6f){const _0x964e44=a93_0x1306,_0x1b731c=_0x105092();while(!![]){try{const _0xf34b27=-parseInt(_0x964e44(0xfc))/0x1+-parseInt(_0x964e44(0xff))/0x2+-parseInt(_0x964e44(0x108))/0x3*(parseInt(_0x964e44(0x116))/0x4)+-parseInt(_0x964e44(0x113))/0x5*(parseInt(_0x964e44(0xf9))/0x6)+parseInt(_0x964e44(0x128))/0x7*(-parseInt(_0x964e44(0xf5))/0x8)+parseInt(_0x964e44(0x103))/0x9+parseInt(_0x964e44(0xf0))/0xa;if(_0xf34b27===_0x11ef6f)break;else _0x1b731c['push'](_0x1b731c['shift']());}catch(_0x33f6b5){_0x1b731c['push'](_0x1b731c['shift']());}}}(a93_0x3b32,0xb680a));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(_0x3437d5){const _0x32dbd2=a93_0x1306,_0x25c373=[];return _0x3437d5['jsUrl']&&!isValidJsHttpsUrl(_0x3437d5[_0x32dbd2(0xf8)])&&_0x25c373[_0x32dbd2(0xf6)]({'field':_0x32dbd2(0xf8),'message':_0x32dbd2(0x11a)}),_0x3437d5['cssUrl']&&!isValidCssHttpsUrl(_0x3437d5[_0x32dbd2(0xec)])&&_0x25c373[_0x32dbd2(0xf6)]({'field':_0x32dbd2(0xec),'message':_0x32dbd2(0x107)}),_0x25c373;}export async function runMenuUpdateCore(_0x5b510f,_0x4562d1,_0xb4f372,_0x2fa4d1={}){const _0x403f0f=a93_0x1306,_0x1652af=parseUpdateParamsFlag(_0xb4f372),_0x506bb6=normalizeMode(_0x2fa4d1[_0x403f0f(0x126)]),_0x30707a=[];if(_0x1652af[_0x403f0f(0xf8)])_0x30707a[_0x403f0f(0xf6)](_0x1652af[_0x403f0f(0xf8)]);if(_0x1652af['cssUrl'])_0x30707a[_0x403f0f(0xf6)](_0x1652af[_0x403f0f(0xec)]);const _0x5008b5=validateParams(_0x1652af);if(_0x5008b5['length']>0x0){const _0x41d1cc=_0x5008b5[_0x403f0f(0x11f)](_0x1c5600=>_0x403f0f(0x127)+_0x1c5600[_0x403f0f(0x105)]+':\x20'+_0x1c5600[_0x403f0f(0x110)])[_0x403f0f(0x10b)](';\x20');throw new Error(_0x403f0f(0xfa)+_0x41d1cc);}if(_0x30707a[_0x403f0f(0x120)]===0x0)throw new Error(_0x403f0f(0xf4)+'Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.');logger[_0x403f0f(0x117)](process[_0x403f0f(0x119)]()),logger[_0x403f0f(0x101)](_0x403f0f(0x10c),_0x403f0f(0xf7),{'appCode':_0x5b510f,'jsUrl':_0x1652af[_0x403f0f(0xf8)],'cssUrl':_0x1652af[_0x403f0f(0xec)],'mode':_0x506bb6,'dryRun':_0x2fa4d1['dryRun']===!![]});if(_0x1652af['jsUrl']){const _0x1829e4=await isUrlReachable(_0x1652af[_0x403f0f(0xf8)]);if(!_0x1829e4)throw new Error(_0x403f0f(0x106)+_0x1652af[_0x403f0f(0xf8)]);}if(_0x1652af['cssUrl']){const _0x558417=await isUrlReachable(_0x1652af['cssUrl']);if(!_0x558417)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x1652af[_0x403f0f(0xec)]);}const _0x6a9c9f=await getOnlineMenuList(_0x5b510f,_0x4562d1),_0x275694=_0x6a9c9f[_0x403f0f(0xf1)](_0x1d9444=>_0x1d9444[_0x403f0f(0x11c)][_0x403f0f(0x120)]>0x0);if(_0x275694['length']===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x2fa4d1['dryRun']===!![]};const _0x2f7e85=_0x275694[_0x403f0f(0x11f)](_0x15568e=>buildMenuUpdateDiff(_0x15568e,_0x1652af,_0x506bb6,_0x2fa4d1[_0x403f0f(0x111)]===!![]));if(_0x2fa4d1[_0x403f0f(0xfd)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x2f7e85};const _0x1c9e57=await Promise[_0x403f0f(0x10a)](_0x275694[_0x403f0f(0x11f)]((_0x181700,_0x264de4)=>updateMenuCdnUrl(_0x5b510f,_0x4562d1,{'id':_0x181700['id'],'label':_0x181700[_0x403f0f(0x122)],'path':_0x181700[_0x403f0f(0x10f)],'resources':_0x2f7e85[_0x264de4][_0x403f0f(0x11b)][_0x403f0f(0x11c)],'extend':_0x181700['extend']??null}))),_0x19d7ea=_0x1c9e57['filter'](_0x4b610a=>_0x4b610a['status']===_0x403f0f(0x10d))[_0x403f0f(0x11f)](_0x20d3e1=>_0x20d3e1[_0x403f0f(0xf3)]),_0x564fda=_0x1c9e57[_0x403f0f(0xf1)](_0x550ba3=>_0x550ba3['status']===_0x403f0f(0x10e))[_0x403f0f(0x120)];return logger[_0x403f0f(0x101)](_0x403f0f(0x10c),_0x403f0f(0x104),{'count':_0x275694['length'],'resources':_0x30707a}),{'updated':_0x19d7ea['length'],'failed':_0x564fda,'skipped':![],'menus':_0x19d7ea};}function normalizeMode(_0x4279ed){const _0x1f34d5=a93_0x1306;if(!_0x4279ed)return _0x1f34d5(0x112);if(_0x4279ed===_0x1f34d5(0x112)||_0x4279ed===_0x1f34d5(0xee))return _0x4279ed;throw new Error(_0x1f34d5(0x11d)+_0x4279ed+_0x1f34d5(0x125));}function a93_0x1306(_0x33cb1c,_0x15c0e2){_0x33cb1c=_0x33cb1c-0xec;const _0x3b3222=a93_0x3b32();let _0x1306d8=_0x3b3222[_0x33cb1c];return _0x1306d8;}function buildMenuUpdateDiff(_0x6d7aff,_0x1a766c,_0x3ea9fd,_0x143f5b){const _0x253c3c=a93_0x1306,_0x2955b5=[..._0x6d7aff['resources']],_0xf79788=_0x3ea9fd===_0x253c3c(0xee)?patchResources(_0x2955b5,_0x1a766c):replaceResources(_0x1a766c),_0xb72a7=[],_0x31163a=_0x2955b5['some'](isJsResource),_0x3f7595=_0xf79788[_0x253c3c(0x118)](isJsResource);if(_0x31163a&&!_0x3f7595){const _0x21682f=_0x253c3c(0x115)+_0x6d7aff[_0x253c3c(0x122)]+_0x253c3c(0xed)+_0x6d7aff[_0x253c3c(0x10f)]+_0x253c3c(0xef)+_0x253c3c(0x102);if(!_0x143f5b)throw new Error(_0x21682f);_0xb72a7['push'](_0x21682f);}const _0x3f3afe=_0x2955b5['some'](isCssResource),_0x2ceebd=_0xf79788['some'](isCssResource);return _0x3f3afe&&!_0x2ceebd&&_0xb72a7[_0x253c3c(0xf6)](_0x253c3c(0xfe)+_0x6d7aff['label']+_0x253c3c(0xed)+_0x6d7aff['path']+').'),{'id':_0x6d7aff['id'],'label':_0x6d7aff[_0x253c3c(0x122)],'path':_0x6d7aff[_0x253c3c(0x10f)],'mode':_0x3ea9fd,'before':{'resources':_0x2955b5},'after':{'resources':_0xf79788},'warnings':_0xb72a7};}function replaceResources(_0x3352b3){const _0x308bf1=a93_0x1306;return[_0x3352b3[_0x308bf1(0xf8)],_0x3352b3[_0x308bf1(0xec)]][_0x308bf1(0xf1)](_0x250ecc=>!!_0x250ecc);}function patchResources(_0x19577d,_0x67d301){const _0x54d682=a93_0x1306;let _0x138875=![],_0x43a54c=![];const _0x5d3705=[];for(const _0x2bc9a2 of _0x19577d){if(isJsResource(_0x2bc9a2)){if(_0x67d301[_0x54d682(0xf8)]&&!_0x138875)_0x5d3705[_0x54d682(0xf6)](_0x67d301[_0x54d682(0xf8)]),_0x138875=!![];else!_0x67d301['jsUrl']&&_0x5d3705[_0x54d682(0xf6)](_0x2bc9a2);continue;}if(isCssResource(_0x2bc9a2)){if(_0x67d301[_0x54d682(0xec)]&&!_0x43a54c)_0x5d3705[_0x54d682(0xf6)](_0x67d301['cssUrl']),_0x43a54c=!![];else!_0x67d301[_0x54d682(0xec)]&&_0x5d3705[_0x54d682(0xf6)](_0x2bc9a2);continue;}_0x5d3705['push'](_0x2bc9a2);}return _0x67d301[_0x54d682(0xf8)]&&!_0x138875&&_0x5d3705['unshift'](_0x67d301['jsUrl']),_0x67d301[_0x54d682(0xec)]&&!_0x43a54c&&_0x5d3705['push'](_0x67d301[_0x54d682(0xec)]),_0x5d3705;}function isJsResource(_0x2149a7){const _0x27e7f4=a93_0x1306;return stripQuery(_0x2149a7)[_0x27e7f4(0x121)]()[_0x27e7f4(0x124)](_0x27e7f4(0x123));}function isCssResource(_0x1f0a14){const _0x2a2218=a93_0x1306;return stripQuery(_0x1f0a14)[_0x2a2218(0x121)]()[_0x2a2218(0x124)](_0x2a2218(0x114));}function stripQuery(_0x29aeea){const _0x4629d2=a93_0x1306;return _0x29aeea[_0x4629d2(0x109)]('?')[0x0]??_0x29aeea;}function parseUpdateParamsFlag(_0x36f22b){const _0x58f767=a93_0x1306;if(!_0x36f22b||typeof _0x36f22b!==_0x58f767(0x100))return{};try{const _0x472d06=JSON['parse'](_0x36f22b);if(typeof _0x472d06!==_0x58f767(0xf2)||_0x472d06===null||Array[_0x58f767(0xfb)](_0x472d06))return{};return{'jsUrl':typeof _0x472d06[_0x58f767(0xf8)]===_0x58f767(0x100)?_0x472d06[_0x58f767(0xf8)][_0x58f767(0x11e)]():undefined,'cssUrl':typeof _0x472d06['cssUrl']==='string'?_0x472d06['cssUrl'][_0x58f767(0x11e)]():undefined};}catch{return{};}}function a93_0x3b32(){const _0x4c4276=['cwd','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','after','resources','Invalid\x20--mode:\x20','trim','map','length','toLowerCase','label','.js','endsWith','.\x20Allowed\x20values:\x20replace,\x20patch','mode','--params.','42qUPqHU','cssUrl','\x22\x20(','patch',').\x20','34805240NsyjCW','filter','object','value','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','1574008TKuubv','push','Start\x20non-interactive\x20menu\x20update','jsUrl','30EMuipN','Invalid\x20--params:\x20','isArray','639357YqzZPM','dryRun','menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','2938064KcLLwq','string','info','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','11902824SaXWdX','Menu\x20update\x20completed','field','JS\x20URL\x20is\x20unreachable:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','3oPFVoY','split','allSettled','join','menu-update','fulfilled','rejected','path','message','force','replace','691140iBoJrF','.css','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','301980dtDZqG','setLogPath','some'];a93_0x3b32=function(){return _0x4c4276;};return a93_0x3b32();}
1
+ (function(_0x2182ed,_0x3c8d3e){const _0x6781c8=a93_0x5594,_0x41ae97=_0x2182ed();while(!![]){try{const _0x22ecfb=parseInt(_0x6781c8(0x16a))/0x1+-parseInt(_0x6781c8(0x172))/0x2*(parseInt(_0x6781c8(0x168))/0x3)+-parseInt(_0x6781c8(0x18d))/0x4+-parseInt(_0x6781c8(0x190))/0x5*(parseInt(_0x6781c8(0x178))/0x6)+-parseInt(_0x6781c8(0x193))/0x7+parseInt(_0x6781c8(0x177))/0x8*(parseInt(_0x6781c8(0x196))/0x9)+parseInt(_0x6781c8(0x180))/0xa;if(_0x22ecfb===_0x3c8d3e)break;else _0x41ae97['push'](_0x41ae97['shift']());}catch(_0x1c83f7){_0x41ae97['push'](_0x41ae97['shift']());}}}(a93_0x4b5d,0x79ea6));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 a93_0x4b5d(){const _0x12df1e=['map','object','value','label','isArray','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','endsWith','CSS\x20URL\x20is\x20unreachable:\x20','1389gRnaXs','Start\x20non-interactive\x20menu\x20update','963884cKiBYc','length','parse','.\x20Allowed\x20values:\x20replace,\x20patch','.css','unshift','dryRun','cssUrl','2510vAFYUu','Menu\x20update\x20completed','path','status','jsUrl','7794168xEQISH','1058934fOiCsP','message','trim','.js','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','info','menu-update','toLowerCase','2693440FjcKNT','Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.','filter','resources','field','string','extend','Invalid\x20--mode:\x20','patch','some','menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22','menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22','replace','655076cFbeUF','fulfilled','join','5UYGzPu','mode','setLogPath','5507670dfLtgE','push','Invalid\x20--params:\x20','9ugjPHx'];a93_0x4b5d=function(){return _0x12df1e;};return a93_0x4b5d();}function validateParams(_0x999a6b){const _0x385834=a93_0x5594,_0x252f99=[];return _0x999a6b[_0x385834(0x176)]&&!isValidJsHttpsUrl(_0x999a6b[_0x385834(0x176)])&&_0x252f99[_0x385834(0x194)]({'field':_0x385834(0x176),'message':'JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'}),_0x999a6b[_0x385834(0x171)]&&!isValidCssHttpsUrl(_0x999a6b[_0x385834(0x171)])&&_0x252f99[_0x385834(0x194)]({'field':_0x385834(0x171),'message':_0x385834(0x17c)}),_0x252f99;}export async function runMenuUpdateCore(_0x3673f1,_0x2c0ce2,_0x587a67,_0xb5abe8={}){const _0x21c96b=a93_0x5594,_0xf592cf=parseUpdateParamsFlag(_0x587a67),_0xda4d0e=normalizeMode(_0xb5abe8[_0x21c96b(0x191)]),_0x46b593=[];if(_0xf592cf[_0x21c96b(0x176)])_0x46b593[_0x21c96b(0x194)](_0xf592cf[_0x21c96b(0x176)]);if(_0xf592cf['cssUrl'])_0x46b593[_0x21c96b(0x194)](_0xf592cf[_0x21c96b(0x171)]);const _0x1e65df=validateParams(_0xf592cf);if(_0x1e65df['length']>0x0){const _0x287080=_0x1e65df['map'](_0xccc572=>'--params.'+_0xccc572[_0x21c96b(0x184)]+':\x20'+_0xccc572[_0x21c96b(0x179)])[_0x21c96b(0x18f)](';\x20');throw new Error(_0x21c96b(0x195)+_0x287080);}if(_0x46b593['length']===0x0)throw new Error('Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20'+_0x21c96b(0x165));logger[_0x21c96b(0x192)](process['cwd']()),logger['info'](_0x21c96b(0x17e),_0x21c96b(0x169),{'appCode':_0x3673f1,'jsUrl':_0xf592cf[_0x21c96b(0x176)],'cssUrl':_0xf592cf['cssUrl'],'mode':_0xda4d0e,'dryRun':_0xb5abe8['dryRun']===!![]});if(_0xf592cf[_0x21c96b(0x176)]){const _0x52f13e=await isUrlReachable(_0xf592cf['jsUrl']);if(!_0x52f13e)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0xf592cf[_0x21c96b(0x176)]);}if(_0xf592cf['cssUrl']){const _0x5e3708=await isUrlReachable(_0xf592cf[_0x21c96b(0x171)]);if(!_0x5e3708)throw new Error(_0x21c96b(0x167)+_0xf592cf[_0x21c96b(0x171)]);}const _0xa7d682=await getOnlineMenuList(_0x3673f1,_0x2c0ce2),_0x355bf9=_0xa7d682[_0x21c96b(0x182)](_0x3fa2cb=>_0x3fa2cb[_0x21c96b(0x183)][_0x21c96b(0x16b)]>0x0);if(_0x355bf9[_0x21c96b(0x16b)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0xb5abe8[_0x21c96b(0x170)]===!![]};const _0x43e474=_0x355bf9[_0x21c96b(0x197)](_0x237138=>buildMenuUpdateDiff(_0x237138,_0xf592cf,_0xda4d0e,_0xb5abe8['force']===!![]));if(_0xb5abe8[_0x21c96b(0x170)])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x43e474};const _0x10aaef=await Promise['allSettled'](_0x355bf9[_0x21c96b(0x197)]((_0x284d24,_0x1aeadf)=>updateMenuCdnUrl(_0x3673f1,_0x2c0ce2,{'id':_0x284d24['id'],'label':_0x284d24['label'],'path':_0x284d24[_0x21c96b(0x174)],'resources':_0x43e474[_0x1aeadf]['after']['resources'],'extend':_0x284d24[_0x21c96b(0x186)]??null}))),_0x5236a6=_0x10aaef[_0x21c96b(0x182)](_0x48a1a4=>_0x48a1a4[_0x21c96b(0x175)]===_0x21c96b(0x18e))[_0x21c96b(0x197)](_0x42a1a2=>_0x42a1a2[_0x21c96b(0x162)]),_0xda7be8=_0x10aaef[_0x21c96b(0x182)](_0x1194f0=>_0x1194f0[_0x21c96b(0x175)]==='rejected')[_0x21c96b(0x16b)];return logger[_0x21c96b(0x17d)](_0x21c96b(0x17e),_0x21c96b(0x173),{'count':_0x355bf9[_0x21c96b(0x16b)],'resources':_0x46b593}),{'updated':_0x5236a6[_0x21c96b(0x16b)],'failed':_0xda7be8,'skipped':![],'menus':_0x5236a6};}function normalizeMode(_0x31942f){const _0x2d552d=a93_0x5594;if(!_0x31942f)return _0x2d552d(0x18c);if(_0x31942f==='replace'||_0x31942f===_0x2d552d(0x188))return _0x31942f;throw new Error(_0x2d552d(0x187)+_0x31942f+_0x2d552d(0x16d));}function buildMenuUpdateDiff(_0x3a37d5,_0x305cc9,_0x28a68c,_0x57c465){const _0x11a4e5=a93_0x5594,_0x4f88cb=[..._0x3a37d5[_0x11a4e5(0x183)]],_0x553a36=_0x28a68c===_0x11a4e5(0x188)?patchResources(_0x4f88cb,_0x305cc9):replaceResources(_0x305cc9),_0x5f02ff=[],_0x5c0513=_0x4f88cb['some'](isJsResource),_0x285cd3=_0x553a36[_0x11a4e5(0x189)](isJsResource);if(_0x5c0513&&!_0x285cd3){const _0x599844=_0x11a4e5(0x18a)+_0x3a37d5[_0x11a4e5(0x163)]+'\x22\x20('+_0x3a37d5[_0x11a4e5(0x174)]+').\x20'+_0x11a4e5(0x181);if(!_0x57c465)throw new Error(_0x599844);_0x5f02ff[_0x11a4e5(0x194)](_0x599844);}const _0x3f9714=_0x4f88cb[_0x11a4e5(0x189)](isCssResource),_0xc6c3f3=_0x553a36['some'](isCssResource);return _0x3f9714&&!_0xc6c3f3&&_0x5f02ff[_0x11a4e5(0x194)](_0x11a4e5(0x18b)+_0x3a37d5['label']+'\x22\x20('+_0x3a37d5[_0x11a4e5(0x174)]+').'),{'id':_0x3a37d5['id'],'label':_0x3a37d5['label'],'path':_0x3a37d5[_0x11a4e5(0x174)],'mode':_0x28a68c,'before':{'resources':_0x4f88cb},'after':{'resources':_0x553a36},'warnings':_0x5f02ff};}function replaceResources(_0x110fd6){const _0x1610cc=a93_0x5594;return[_0x110fd6[_0x1610cc(0x176)],_0x110fd6[_0x1610cc(0x171)]]['filter'](_0x35d1bb=>!!_0x35d1bb);}function a93_0x5594(_0x31febd,_0x2fa106){_0x31febd=_0x31febd-0x161;const _0x4b5d19=a93_0x4b5d();let _0x559469=_0x4b5d19[_0x31febd];return _0x559469;}function patchResources(_0x5be21b,_0x4b6a88){const _0x5cf70e=a93_0x5594;let _0x5e0281=![],_0x4c8631=![];const _0x358175=[];for(const _0x512478 of _0x5be21b){if(isJsResource(_0x512478)){if(_0x4b6a88[_0x5cf70e(0x176)]&&!_0x5e0281)_0x358175[_0x5cf70e(0x194)](_0x4b6a88[_0x5cf70e(0x176)]),_0x5e0281=!![];else!_0x4b6a88[_0x5cf70e(0x176)]&&_0x358175['push'](_0x512478);continue;}if(isCssResource(_0x512478)){if(_0x4b6a88[_0x5cf70e(0x171)]&&!_0x4c8631)_0x358175['push'](_0x4b6a88[_0x5cf70e(0x171)]),_0x4c8631=!![];else!_0x4b6a88[_0x5cf70e(0x171)]&&_0x358175[_0x5cf70e(0x194)](_0x512478);continue;}_0x358175[_0x5cf70e(0x194)](_0x512478);}return _0x4b6a88[_0x5cf70e(0x176)]&&!_0x5e0281&&_0x358175[_0x5cf70e(0x16f)](_0x4b6a88[_0x5cf70e(0x176)]),_0x4b6a88[_0x5cf70e(0x171)]&&!_0x4c8631&&_0x358175[_0x5cf70e(0x194)](_0x4b6a88[_0x5cf70e(0x171)]),_0x358175;}function isJsResource(_0x4aaec1){const _0xf11a36=a93_0x5594;return stripQuery(_0x4aaec1)[_0xf11a36(0x17f)]()[_0xf11a36(0x166)](_0xf11a36(0x17b));}function isCssResource(_0x3f7ba5){const _0x506fd8=a93_0x5594;return stripQuery(_0x3f7ba5)[_0x506fd8(0x17f)]()['endsWith'](_0x506fd8(0x16e));}function stripQuery(_0x20e8f6){return _0x20e8f6['split']('?')[0x0]??_0x20e8f6;}function parseUpdateParamsFlag(_0x348aef){const _0x1ab557=a93_0x5594;if(!_0x348aef||typeof _0x348aef!==_0x1ab557(0x185))return{};try{const _0x548acd=JSON[_0x1ab557(0x16c)](_0x348aef);if(typeof _0x548acd!==_0x1ab557(0x161)||_0x548acd===null||Array[_0x1ab557(0x164)](_0x548acd))return{};return{'jsUrl':typeof _0x548acd['jsUrl']==='string'?_0x548acd['jsUrl'][_0x1ab557(0x17a)]():undefined,'cssUrl':typeof _0x548acd[_0x1ab557(0x171)]===_0x1ab557(0x185)?_0x548acd[_0x1ab557(0x171)]['trim']():undefined};}catch{return{};}}
@@ -1 +1 @@
1
- function a94_0x23dd(){const _0x181713=['8680730jyZlZE','106350LoXkwM','559340QGdAui','15cwcQxS','1848BPuoAY','279796StvqWg','3kOAYsu','14953323rSKgdp','test','34074LINapP','140uukrMi','trim','63649HPTTBq','HEAD'];a94_0x23dd=function(){return _0x181713;};return a94_0x23dd();}function a94_0x5ebc(_0x4ba4d4,_0x1053e4){_0x4ba4d4=_0x4ba4d4-0x1d1;const _0x23ddf2=a94_0x23dd();let _0x5ebcf3=_0x23ddf2[_0x4ba4d4];return _0x5ebcf3;}(function(_0x3753de,_0x26103b){const _0x50ef80=a94_0x5ebc,_0xa4171f=_0x3753de();while(!![]){try{const _0xc2d961=-parseInt(_0x50ef80(0x1da))/0x1+parseInt(_0x50ef80(0x1de))/0x2*(-parseInt(_0x50ef80(0x1d4))/0x3)+-parseInt(_0x50ef80(0x1d3))/0x4*(parseInt(_0x50ef80(0x1d1))/0x5)+parseInt(_0x50ef80(0x1dd))/0x6*(-parseInt(_0x50ef80(0x1d8))/0x7)+-parseInt(_0x50ef80(0x1d2))/0x8*(parseInt(_0x50ef80(0x1d7))/0x9)+parseInt(_0x50ef80(0x1dc))/0xa+parseInt(_0x50ef80(0x1d5))/0xb;if(_0xc2d961===_0x26103b)break;else _0xa4171f['push'](_0xa4171f['shift']());}catch(_0x352f3c){_0xa4171f['push'](_0xa4171f['shift']());}}}(a94_0x23dd,0x6cb32));export function isValidJsHttpsUrl(_0xe70303){const _0x4b2d21=a94_0x5ebc;return/^https:\/\/.+\.js(\?.*)?$/[_0x4b2d21(0x1d6)](_0xe70303[_0x4b2d21(0x1d9)]());}export function isValidCssHttpsUrl(_0x2cb6ae){return/^https:\/\/.+\.css(\?.*)?$/['test'](_0x2cb6ae['trim']());}export async function isUrlReachable(_0xaae226){const _0x3094d4=a94_0x5ebc;try{const _0x2631b8=await fetch(_0xaae226,{'method':_0x3094d4(0x1db)});return _0x2631b8['ok'];}catch{return![];}}
1
+ function a94_0x4aca(){const _0x3e7400=['trim','test','126ltEMcC','10FiWtYK','3250289CztzdA','16126220MhUfkI','24baQUMA','70IcRULI','14722ASgsVq','80152fPbski','2358786gyCqxP','270714fimvni','HEAD','2500685jOINZi'];a94_0x4aca=function(){return _0x3e7400;};return a94_0x4aca();}(function(_0x21a6c2,_0x4f6fdf){const _0x3510f9=a94_0x5db3,_0x69ace6=_0x21a6c2();while(!![]){try{const _0x406ef3=parseInt(_0x3510f9(0xa7))/0x1*(parseInt(_0x3510f9(0xa6))/0x2)+parseInt(_0x3510f9(0xaa))/0x3*(parseInt(_0x3510f9(0xa5))/0x4)+parseInt(_0x3510f9(0xac))/0x5+-parseInt(_0x3510f9(0xa9))/0x6+parseInt(_0x3510f9(0xa3))/0x7+-parseInt(_0x3510f9(0xa8))/0x8*(-parseInt(_0x3510f9(0xaf))/0x9)+parseInt(_0x3510f9(0xa2))/0xa*(-parseInt(_0x3510f9(0xa4))/0xb);if(_0x406ef3===_0x4f6fdf)break;else _0x69ace6['push'](_0x69ace6['shift']());}catch(_0x2a1d4f){_0x69ace6['push'](_0x69ace6['shift']());}}}(a94_0x4aca,0x49cc5));function a94_0x5db3(_0x4ecee1,_0x32e158){_0x4ecee1=_0x4ecee1-0xa2;const _0x4acaf0=a94_0x4aca();let _0x5db332=_0x4acaf0[_0x4ecee1];return _0x5db332;}export function isValidJsHttpsUrl(_0x3eb2a3){const _0x46c54a=a94_0x5db3;return/^https:\/\/.+\.js(\?.*)?$/[_0x46c54a(0xae)](_0x3eb2a3['trim']());}export function isValidCssHttpsUrl(_0x3be891){const _0x32ee78=a94_0x5db3;return/^https:\/\/.+\.css(\?.*)?$/[_0x32ee78(0xae)](_0x3be891[_0x32ee78(0xad)]());}export async function isUrlReachable(_0x488024){const _0x415359=a94_0x5db3;try{const _0x5d8b1e=await fetch(_0x488024,{'method':_0x415359(0xab)});return _0x5d8b1e['ok'];}catch{return![];}}