@lovrabet/rabetbase-cli 2.2.4-beta.3 → 2.2.4-beta.4
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.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +2 -2
- package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
- package/templates/rules/lovrabet_rules.mdc.tpl +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe17ec2,_0x485092){const _0x3c5305=a79_0x37e3,_0x31131b=_0xe17ec2();while(!![]){try{const _0x480740=-parseInt(_0x3c5305(0x1ed))/0x1+-parseInt(_0x3c5305(0x1e6))/0x2+-parseInt(_0x3c5305(0x1e9))/0x3+parseInt(_0x3c5305(0x1e7))/0x4+-parseInt(_0x3c5305(0x1ec))/0x5+parseInt(_0x3c5305(0x1e8))/0x6+parseInt(_0x3c5305(0x1eb))/0x7*(parseInt(_0x3c5305(0x1ea))/0x8);if(_0x480740===_0x485092)break;else _0x31131b['push'](_0x31131b['shift']());}catch(_0x436e18){_0x31131b['push'](_0x31131b['shift']());}}}(a79_0x5472,0x40370));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a79_0x37e3(_0xb79cf2,_0x5276a4){_0xb79cf2=_0xb79cf2-0x1e6;const _0x5472b9=a79_0x5472();let _0x37e3eb=_0x5472b9[_0xb79cf2];return _0x37e3eb;}function a79_0x5472(){const _0x1a8b78=['1199586rInYNJ','538611eSdZqE','268256wDbSTk','112ljdDHt','123770VySLUl','61440nDSods','986698BgcqmL','1142644hJttKd'];a79_0x5472=function(){return _0x1a8b78;};return a79_0x5472();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80_0x240525=a80_0x70dd;function a80_0x5e60(){const _0xebed57=['505287fewKLX','\x22\x20\x5c','Hit\x20a\x20','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','issue','write','=1\x20to\x20silence\x20this\x20hint.','config_missing','\x20\x20Set\x20','not_in_project','slice','join','trim','validation_error','report','stderr','network_error','length','59913aXOPgK','cancelled','4IAgizf','\x20issue\x20report\x20\x5c','1849530voDutG','code','replace','command','has','20EPkpWn','flag_missing','RABETBASE_DISABLE_ISSUE_NUDGE','1042485ybqiZO','9360549MOZBRS','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','1428LFNpwG','2360313FhFbec','648DuVvnN','469PeEUWw','service','message','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:'];a80_0x5e60=function(){return _0xebed57;};return a80_0x5e60();}(function(_0x599eff,_0xd94708){const _0x30fa97=a80_0x70dd,_0x376ee2=_0x599eff();while(!![]){try{const _0xbe0f4c=parseInt(_0x30fa97(0x145))/0x1*(-parseInt(_0x30fa97(0x142))/0x2)+parseInt(_0x30fa97(0x143))/0x3+-parseInt(_0x30fa97(0x135))/0x4*(-parseInt(_0x30fa97(0x13f))/0x5)+-parseInt(_0x30fa97(0x137))/0x6+parseInt(_0x30fa97(0x133))/0x7*(-parseInt(_0x30fa97(0x144))/0x8)+parseInt(_0x30fa97(0x121))/0x9*(-parseInt(_0x30fa97(0x13c))/0xa)+parseInt(_0x30fa97(0x140))/0xb;if(_0xbe0f4c===_0xd94708)break;else _0x376ee2['push'](_0x376ee2['shift']());}catch(_0x3fd36a){_0x376ee2['push'](_0x376ee2['shift']());}}}(a80_0x5e60,0x610e5));function a80_0x70dd(_0x4192ec,_0x292f54){_0x4192ec=_0x4192ec-0x11f;const _0x5e6005=a80_0x5e60();let _0x70dd14=_0x5e6005[_0x4192ec];return _0x70dd14;}import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a80_0x240525(0x13e);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x240525(0x134),'auth_required',a80_0x240525(0x128),a80_0x240525(0x12a),a80_0x240525(0x11f),a80_0x240525(0x13d),a80_0x240525(0x12e),a80_0x240525(0x131)]),defaultWriter=_0x513137=>{const _0x37bb82=a80_0x240525;process[_0x37bb82(0x130)][_0x37bb82(0x126)](_0x513137);};export function shouldNudgeForError(_0x1e367b,_0x22b520){const _0x5a5377=a80_0x240525;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x22b520['service']===_0x5a5377(0x125)&&_0x22b520[_0x5a5377(0x13a)]===_0x5a5377(0x12f))return![];if(_0x1e367b instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5a5377(0x13b)](_0x1e367b[_0x5a5377(0x138)]);return!![];}export function printIssueReportNudgeForError(_0x27abad,_0x28bc81,_0x2400de=defaultWriter){if(!shouldNudgeForError(_0x27abad,_0x28bc81))return;const _0x3774a5=buildSuggestedTitle(_0x27abad,_0x28bc81);_0x2400de(formatNudge(_0x3774a5));}function buildSuggestedTitle(_0x40b58c,_0x5535a1){const _0x5eac3f=a80_0x240525,_0x3a7cd2=_0x40b58c instanceof Error?_0x40b58c[_0x5eac3f(0x147)]:String(_0x40b58c),_0x11abbd=_0x3a7cd2[_0x5eac3f(0x139)](/[\r\n]+/g,'\x20')[_0x5eac3f(0x139)](/\s+/g,'\x20')[_0x5eac3f(0x12d)]()[_0x5eac3f(0x12b)](0x0,0x78)[_0x5eac3f(0x139)](/"/g,'\x5c\x22'),_0x45848e=CLI_BIN_NAME+'\x20'+_0x5535a1[_0x5eac3f(0x146)]+'\x20'+_0x5535a1[_0x5eac3f(0x13a)];return _0x11abbd[_0x5eac3f(0x132)]>0x0?_0x45848e+':\x20'+_0x11abbd:_0x45848e;}function formatNudge(_0x11b36e){const _0x3b956b=a80_0x240525;return['',_0x3b956b(0x123)+CLI_BIN_NAME+_0x3b956b(0x120),'\x20\x20'+CLI_BIN_NAME+_0x3b956b(0x136),'\x20\x20\x20\x20--title\x20\x22'+_0x11b36e+_0x3b956b(0x122),_0x3b956b(0x141),_0x3b956b(0x124),_0x3b956b(0x129)+NUDGE_OPT_OUT_ENV+_0x3b956b(0x127),''][_0x3b956b(0x12c)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81_0x1d751a=a81_0x3990;(function(_0x55c028,_0x1e786e){const _0x105de1=a81_0x3990,_0x597805=_0x55c028();while(!![]){try{const _0x2f9d67=-parseInt(_0x105de1(0x14e))/0x1*(parseInt(_0x105de1(0x149))/0x2)+parseInt(_0x105de1(0x159))/0x3+-parseInt(_0x105de1(0x144))/0x4*(-parseInt(_0x105de1(0x151))/0x5)+-parseInt(_0x105de1(0x160))/0x6*(parseInt(_0x105de1(0x152))/0x7)+-parseInt(_0x105de1(0x171))/0x8+parseInt(_0x105de1(0x137))/0x9*(parseInt(_0x105de1(0x161))/0xa)+-parseInt(_0x105de1(0x167))/0xb*(parseInt(_0x105de1(0x15d))/0xc);if(_0x2f9d67===_0x1e786e)break;else _0x597805['push'](_0x597805['shift']());}catch(_0x33c60b){_0x597805['push'](_0x597805['shift']());}}}(a81_0x1a5c,0x5452f));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';function a81_0x1a5c(){const _0x5f39eb=['sanitize','1348966QgZrCJ','One-line\x20issue\x20summary','File\x20not\x20found:\x20','redactionCount','filter','1mXdbUu','redactionKinds','issue.description_original_bytes','1379185CNVMjG','161ndKafQ','originalBytes','issue.description_truncated','compress','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','apiError','string','1546860TgisMC','redacted\x20','POST','descriptionFilePath','504rkJbzI','issue.title','validation','25638kHydqm','68990OUCvFh','\x20bytes','trim','issue.description','push','cwd','1925ajDHxf','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','length','inline','join','truncated:\x20original\x20','truncated','message','issue.description_redactions','2349120RoaMwV','descriptionSource','descriptionFile:\x20','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','description-file','459VweANA','flagMissing','Issue\x20description\x20file\x20is\x20empty:\x20','issue.description_redaction_kinds','otel://','str','write','title','issue','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported\x20(','report','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','8wxPebI','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20cannot\x20be\x20empty.'];a81_0x1a5c=function(){return _0x5f39eb;};return a81_0x1a5c();}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_0x1d751a(0x136);function a81_0x3990(_0xe90d4,_0x1bc28b){_0xe90d4=_0xe90d4-0x136;const _0x1a5cb0=a81_0x1a5c();let _0x399021=_0x1a5cb0[_0xe90d4];return _0x399021;}export const issueReport={'service':a81_0x1d751a(0x13f),'command':a81_0x1d751a(0x142),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a81_0x1d751a(0x13d),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x1d751a(0x155),'flags':[{'name':a81_0x1d751a(0x13e),'type':a81_0x1d751a(0x158),'required':!![],'description':a81_0x1d751a(0x14a)},{'name':'description','type':a81_0x1d751a(0x158),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x1d751a(0x158),'description':a81_0x1d751a(0x174)}],async 'validate'(_0x2e7077){const _0x5882df=a81_0x1d751a,_0x2ab793=_0x2e7077['str'](_0x5882df(0x13e))[_0x5882df(0x163)](),_0x17035a=_0x2e7077[_0x5882df(0x13c)](_0x5882df(0x169))[_0x5882df(0x163)](),_0x3cdef4=_0x2e7077[_0x5882df(0x13c)](DESCRIPTION_FILE_FLAG)[_0x5882df(0x163)]();if(!_0x2ab793)throw CliErrors[_0x5882df(0x138)](_0x5882df(0x13e),_0x5882df(0x175));const _0xd9834d=_0x17035a['length']>0x0,_0x1386c3=_0x3cdef4['length']>0x0;if(_0xd9834d===_0x1386c3)throw CliErrors[_0x5882df(0x15f)](_0x5882df(0x143),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x1386c3){const _0x22089f=resolve(process[_0x5882df(0x166)](),_0x3cdef4);if(!existsSync(_0x22089f))throw CliErrors['validation'](_0x5882df(0x14b)+_0x22089f);}},async 'dryRun'(_0x341597){const _0x4b917f=a81_0x1d751a,_0x3dfb5a=await prepareIssueReport(_0x341597);return{'method':_0x4b917f(0x15b),'url':_0x4b917f(0x13b)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3dfb5a[_0x4b917f(0x13e)],'issue.description':_0x3dfb5a[_0x4b917f(0x169)],'issue.description_original_bytes':_0x3dfb5a['sanitize'][_0x4b917f(0x153)],'issue.description_truncated':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x16e)],'issue.description_redactions':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14c)],'issue.description_redaction_kinds':_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14f)][_0x4b917f(0x16c)](',')}},'description':[_0x4b917f(0x156),'descriptionSource:\x20'+_0x3dfb5a[_0x4b917f(0x172)],_0x3dfb5a['descriptionFilePath']?_0x4b917f(0x173)+_0x3dfb5a[_0x4b917f(0x15c)]:null,_0x3dfb5a[_0x4b917f(0x148)]['truncated']?_0x4b917f(0x16d)+_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x153)]+_0x4b917f(0x162):null,_0x3dfb5a['sanitize'][_0x4b917f(0x14c)]>0x0?_0x4b917f(0x145)+_0x3dfb5a['sanitize'][_0x4b917f(0x14c)]+'\x20('+_0x3dfb5a[_0x4b917f(0x148)][_0x4b917f(0x14f)][_0x4b917f(0x16c)](',\x20')+')':null][_0x4b917f(0x14d)](Boolean)[_0x4b917f(0x16c)]('\x0a')};},async 'execute'(_0x159bba){const _0x1f83e4=a81_0x1d751a,_0x42d701=await prepareIssueReport(_0x159bba);try{await sendPlatformIssueCollectLog({'title':_0x42d701[_0x1f83e4(0x13e)],'description':_0x42d701[_0x1f83e4(0x169)],'sanitize':{'originalBytes':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x153)],'truncated':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x16e)],'redactionCount':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x14c)],'redactionKinds':_0x42d701[_0x1f83e4(0x148)]['redactionKinds']}});}catch(_0x5aaf55){throw CliErrors[_0x1f83e4(0x157)](_0x1f83e4(0x146)+(_0x5aaf55 instanceof Error?_0x5aaf55[_0x1f83e4(0x16f)]:String(_0x5aaf55)),_0x1f83e4(0x140));}return{'ok':!![],'message':buildResultMessage(_0x42d701['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1f83e4(0x15e),_0x1f83e4(0x164),_0x1f83e4(0x150),_0x1f83e4(0x154),_0x1f83e4(0x170),_0x1f83e4(0x13a)],'issue':{'title':_0x42d701['title'],'descriptionLength':_0x42d701[_0x1f83e4(0x169)][_0x1f83e4(0x16a)],'descriptionSource':_0x42d701[_0x1f83e4(0x172)],..._0x42d701['descriptionFilePath']?{'descriptionFile':_0x42d701[_0x1f83e4(0x15c)]}:{},'sanitize':{'originalBytes':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x153)],'truncated':_0x42d701[_0x1f83e4(0x148)][_0x1f83e4(0x16e)],'redactions':_0x42d701[_0x1f83e4(0x148)]['redactionCount'],'redactionKinds':_0x42d701['sanitize'][_0x1f83e4(0x14f)]}}}};}};function buildResultMessage(_0x33e3c5){const _0x20def1=a81_0x1d751a,_0x546b6e=[];return _0x33e3c5[_0x20def1(0x16e)]&&_0x546b6e[_0x20def1(0x165)]('truncated\x20from\x20'+_0x33e3c5[_0x20def1(0x153)]+_0x20def1(0x162)),_0x33e3c5[_0x20def1(0x14c)]>0x0&&_0x546b6e[_0x20def1(0x165)](_0x20def1(0x15a)+_0x33e3c5[_0x20def1(0x14c)]+'\x20secret(s):\x20'+_0x33e3c5[_0x20def1(0x14f)][_0x20def1(0x16c)](',\x20')),_0x546b6e[_0x20def1(0x16a)]===0x0?'Platform\x20issue\x20reported':_0x20def1(0x141)+_0x546b6e[_0x20def1(0x16c)](';\x20')+')';}async function prepareIssueReport(_0x24d5b7){const _0x23d2a1=a81_0x1d751a,_0x3ab4b1=_0x24d5b7['str'](_0x23d2a1(0x13e))[_0x23d2a1(0x163)](),_0x335406=_0x24d5b7['str'](_0x23d2a1(0x169)),_0x4e6fa9=_0x24d5b7['str'](DESCRIPTION_FILE_FLAG)[_0x23d2a1(0x163)]();if(!_0x4e6fa9){const _0x5d91d4=_0x335406;if(!_0x5d91d4[_0x23d2a1(0x163)]())throw CliErrors[_0x23d2a1(0x15f)](_0x23d2a1(0x147),_0x23d2a1(0x168));const _0xd851d2=sanitizeIssueDescription(_0x5d91d4);return{'title':_0x3ab4b1,'description':_0xd851d2[_0x23d2a1(0x169)],'descriptionSource':_0x23d2a1(0x16b),'sanitize':_0xd851d2};}const _0x49f034=resolve(process[_0x23d2a1(0x166)](),_0x4e6fa9),_0x5d55ff=await readFile(_0x49f034,'utf8');if(!_0x5d55ff[_0x23d2a1(0x163)]())throw CliErrors[_0x23d2a1(0x15f)](_0x23d2a1(0x139)+_0x49f034,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');const _0x3152b9=sanitizeIssueDescription(_0x5d55ff);return{'title':_0x3ab4b1,'description':_0x3152b9[_0x23d2a1(0x169)],'descriptionSource':'file','descriptionFilePath':_0x49f034,'sanitize':_0x3152b9};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0xa5b466=a82_0x1cd9;function a82_0x47ff(){const _0x3eeed5=['bearer-jwt','from','REDACTED:access-key','REDACTED:authorization','cookie','utf8','includes','87393zueUHM','14FLIBKx','replace','byteLength','password','push','authorization','private-key','pattern','154hsBSIK','10439hooiPw','209VBimeW','label','access-key','string','3850088IPazIC','toString','26590NwFKNT','kind','3543795sZKRsp','REDACTED:password','52TESnRG','234372QLCWJN','subarray','4994750Kjidyr'];a82_0x47ff=function(){return _0x3eeed5;};return a82_0x47ff();}function a82_0x1cd9(_0x18ce27,_0xcf3993){_0x18ce27=_0x18ce27-0x158;const _0x47ff19=a82_0x47ff();let _0x1cd9fd=_0x47ff19[_0x18ce27];return _0x1cd9fd;}(function(_0x4ed7b8,_0x592ee2){const _0xf5cc09=a82_0x1cd9,_0xfe7289=_0x4ed7b8();while(!![]){try{const _0xfeb868=parseInt(_0xf5cc09(0x15c))/0x1*(-parseInt(_0xf5cc09(0x172))/0x2)+-parseInt(_0xf5cc09(0x171))/0x3*(-parseInt(_0xf5cc09(0x166))/0x4)+parseInt(_0xf5cc09(0x169))/0x5+parseInt(_0xf5cc09(0x167))/0x6*(parseInt(_0xf5cc09(0x15a))/0x7)+parseInt(_0xf5cc09(0x160))/0x8+parseInt(_0xf5cc09(0x164))/0x9+-parseInt(_0xf5cc09(0x162))/0xa*(parseInt(_0xf5cc09(0x15b))/0xb);if(_0xfeb868===_0x592ee2)break;else _0xfe7289['push'](_0xfe7289['shift']());}catch(_0x4812aa){_0xfe7289['push'](_0xfe7289['shift']());}}}(a82_0x47ff,0x8f5ab));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a82_0xa5b466(0x16e),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0xa5b466(0x177),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0xa5b466(0x16d)},{'kind':a82_0xa5b466(0x158),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a82_0xa5b466(0x15e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0xa5b466(0x16c)},{'kind':a82_0xa5b466(0x175),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0xa5b466(0x165)},{'kind':a82_0xa5b466(0x16a),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':'REDACTED:bearer-jwt'}];export function sanitizeIssueDescription(_0x1d0db7){const _0x3691b9=a82_0xa5b466,_0x4e731f=Buffer['byteLength'](_0x1d0db7,_0x3691b9(0x16f)),_0x5c1485=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x25121b=_0x1d0db7,_0x403a9f=0x0;const _0x5d9faa=[];if(!_0x5c1485)for(const _0x2755b4 of REDACTION_RULES){let _0x5ef31c=0x0;_0x25121b=_0x25121b[_0x3691b9(0x173)](_0x2755b4[_0x3691b9(0x159)],(_0x40060d,_0x284a66)=>{const _0x3e32eb=_0x3691b9;_0x5ef31c+=0x1;const _0x475d80=typeof _0x284a66===_0x3e32eb(0x15f)?_0x284a66:'';return _0x475d80+'['+_0x2755b4[_0x3e32eb(0x15d)]+']';}),_0x5ef31c>0x0&&(_0x403a9f+=_0x5ef31c,!_0x5d9faa[_0x3691b9(0x170)](_0x2755b4[_0x3691b9(0x163)])&&_0x5d9faa[_0x3691b9(0x176)](_0x2755b4[_0x3691b9(0x163)]));}let _0x55befb=![];if(Buffer['byteLength'](_0x25121b,_0x3691b9(0x16f))>ISSUE_DESCRIPTION_MAX_BYTES){_0x55befb=!![];const _0x20b85e=Buffer[_0x3691b9(0x174)](TRUNCATION_NOTICE,_0x3691b9(0x16f)),_0x1adb8b=Math['max'](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x20b85e);_0x25121b=sliceUtf8Bytes(_0x25121b,_0x1adb8b)+TRUNCATION_NOTICE;}return{'description':_0x25121b,'originalBytes':_0x4e731f,'truncated':_0x55befb,'redactionCount':_0x403a9f,'redactionKinds':_0x5d9faa};}function sliceUtf8Bytes(_0x3a8aef,_0x237146){const _0x1a415e=a82_0xa5b466;if(_0x237146<=0x0)return'';const _0x16d2d7=Buffer[_0x1a415e(0x16b)](_0x3a8aef,_0x1a415e(0x16f));if(_0x16d2d7[_0x1a415e(0x174)]<=_0x237146)return _0x3a8aef;let _0x241288=_0x237146;while(_0x241288>0x0){const _0x5911e8=_0x16d2d7[_0x241288];if(_0x5911e8===undefined||(_0x5911e8&0xc0)!==0x80)break;_0x241288-=0x1;}return _0x16d2d7[_0x1a415e(0x168)](0x0,_0x241288)[_0x1a415e(0x161)](_0x1a415e(0x16f));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a83_0x48d4(){const _0x4a2aee=['1074050YVMnex','message','logs','4642077kMzHdb','write','*\x20No\x20logs\x20found','5793060OZdddn','\x20\x20\x20Time:\x20','Clear\x20command\x20history\x20logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','View\x20command\x20history\x20logs','clear','details','level','29900906KJHWau','length','timestamp','*\x20Logs\x20cleared','log','en-US','duration','show','read','930314lBreKb','keys','5694650aTQTTV','\x20\x20\x20Details:\x20','5633160ycNXbS','toLocaleString'];a83_0x48d4=function(){return _0x4a2aee;};return a83_0x48d4();}const a83_0x379229=a83_0x4771;(function(_0x14063a,_0x3c99c4){const _0x380452=a83_0x4771,_0x47661f=_0x14063a();while(!![]){try{const _0x44a602=-parseInt(_0x380452(0xc6))/0x1+parseInt(_0x380452(0xc0))/0x2+-parseInt(_0x380452(0xc9))/0x3+-parseInt(_0x380452(0xaf))/0x4+parseInt(_0x380452(0xc2))/0x5+-parseInt(_0x380452(0xc4))/0x6+parseInt(_0x380452(0xb7))/0x7;if(_0x44a602===_0x3c99c4)break;else _0x47661f['push'](_0x47661f['shift']());}catch(_0x4741f8){_0x47661f['push'](_0x47661f['shift']());}}}(a83_0x48d4,0xd3b27));function a83_0x4771(_0x2f41a3,_0x12da59){_0x2f41a3=_0x2f41a3-0xad;const _0x48d481=a83_0x48d4();let _0x477115=_0x48d481[_0x2f41a3];return _0x477115;}import{logger}from'../../utils/logger.js';function printLogs(_0x2d9914){const _0x39d2d1=a83_0x4771;if(_0x2d9914[_0x39d2d1(0xb8)]===0x0){console[_0x39d2d1(0xbb)](_0x39d2d1(0xae));return;}console[_0x39d2d1(0xbb)](_0x39d2d1(0xb2)),_0x2d9914['forEach']((_0xf47a2d,_0x26d746)=>{const _0x33747e=_0x39d2d1,_0x25e947=new Date(_0xf47a2d[_0x33747e(0xb9)])[_0x33747e(0xc5)](_0x33747e(0xbc)),_0xf64e74=_0xf47a2d[_0x33747e(0xb6)]==='success'?'√':_0xf47a2d[_0x33747e(0xb6)]==='error'?'×':_0xf47a2d[_0x33747e(0xb6)]==='warn'?'!':'i';console['log'](_0x26d746+0x1+'.\x20'+_0xf64e74+'\x20['+_0xf47a2d['command']+']\x20'+_0xf47a2d[_0x33747e(0xc7)]),console[_0x33747e(0xbb)](_0x33747e(0xb0)+_0x25e947),_0xf47a2d[_0x33747e(0xbd)]&&console[_0x33747e(0xbb)]('\x20\x20\x20Duration:\x20'+_0xf47a2d[_0x33747e(0xbd)]+'ms'),_0xf47a2d[_0x33747e(0xb5)]&&Object[_0x33747e(0xc1)](_0xf47a2d[_0x33747e(0xb5)])[_0x33747e(0xb8)]>0x0&&console[_0x33747e(0xbb)](_0x33747e(0xc3)+JSON['stringify'](_0xf47a2d[_0x33747e(0xb5)],null,0x2)),console[_0x33747e(0xbb)]('');});}export const logsDefinitions=[{'service':a83_0x379229(0xc8),'command':a83_0x379229(0xbe),'description':a83_0x379229(0xb3),'risk':a83_0x379229(0xbf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1433ef){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':a83_0x379229(0xc8),'command':a83_0x379229(0xb4),'description':a83_0x379229(0xb1),'risk':a83_0x379229(0xad),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x20914){const _0x49ec29=a83_0x379229;return logger['clearLogs'](),console['log'](_0x49ec29(0xba)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3b34d9,_0x2394d5){const _0x2fd4f8=a84_0x421a,_0x468c87=_0x3b34d9();while(!![]){try{const _0x303c70=parseInt(_0x2fd4f8(0x74))/0x1*(parseInt(_0x2fd4f8(0x76))/0x2)+-parseInt(_0x2fd4f8(0x77))/0x3+-parseInt(_0x2fd4f8(0x79))/0x4*(parseInt(_0x2fd4f8(0x7a))/0x5)+-parseInt(_0x2fd4f8(0x78))/0x6*(parseInt(_0x2fd4f8(0x72))/0x7)+-parseInt(_0x2fd4f8(0x71))/0x8+-parseInt(_0x2fd4f8(0x73))/0x9*(-parseInt(_0x2fd4f8(0x75))/0xa)+parseInt(_0x2fd4f8(0x7b))/0xb*(parseInt(_0x2fd4f8(0x7c))/0xc);if(_0x303c70===_0x2394d5)break;else _0x468c87['push'](_0x468c87['shift']());}catch(_0xb68efe){_0x468c87['push'](_0x468c87['shift']());}}}(a84_0x2736,0x8f854));import{menuList}from'../../commands/menu/list.js';function a84_0x421a(_0x23edf6,_0x200317){_0x23edf6=_0x23edf6-0x71;const _0x2736b0=a84_0x2736();let _0x421ac6=_0x2736b0[_0x23edf6];return _0x421ac6;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a84_0x2736(){const _0x3080e5=['4922065nDQdaD','11gPUutM','20247360bbiUDu','6116432ZgasEd','7gbpiBy','9gYOWOw','1591mUuxBy','9071890aXdGdX','232GUXitP','859437aLeJma','934314ctMtxO','4IKPooc'];a84_0x2736=function(){return _0x3080e5;};return a84_0x2736();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85_0x18e40f=a85_0x3504;(function(_0x2b94f1,_0x31d33d){const _0x45252f=a85_0x3504,_0x404e87=_0x2b94f1();while(!![]){try{const _0x592f9b=parseInt(_0x45252f(0x1d6))/0x1*(-parseInt(_0x45252f(0x1d1))/0x2)+parseInt(_0x45252f(0x1e1))/0x3*(-parseInt(_0x45252f(0x1e0))/0x4)+-parseInt(_0x45252f(0x1d7))/0x5*(parseInt(_0x45252f(0x1c3))/0x6)+-parseInt(_0x45252f(0x1dc))/0x7*(-parseInt(_0x45252f(0x1d0))/0x8)+parseInt(_0x45252f(0x1ca))/0x9+-parseInt(_0x45252f(0x1e4))/0xa+parseInt(_0x45252f(0x1c5))/0xb;if(_0x592f9b===_0x31d33d)break;else _0x404e87['push'](_0x404e87['shift']());}catch(_0x3d155b){_0x404e87['push'](_0x404e87['shift']());}}}(a85_0x4c09,0xb92c3));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a85_0x3504(_0x37a3ba,_0x9523ad){_0x37a3ba=_0x37a3ba-0x1c2;const _0x4c0964=a85_0x4c09();let _0x3504cc=_0x4c0964[_0x37a3ba];return _0x3504cc;}import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':'menu','command':'list','description':a85_0x18e40f(0x1c7),'risk':a85_0x18e40f(0x1e5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x18e40f(0x1e8),'type':a85_0x18e40f(0x1d2),'description':a85_0x18e40f(0x1df)}],async 'execute'(_0x48afd6){const _0x1ab8f6=a85_0x18e40f,_0x15f4bc=_0x48afd6['bool'](_0x1ab8f6(0x1e8)),_0x280e43=await platformFetch(getApiDomain()+'/smartapi/menu/find?appCode='+_0x48afd6[_0x1ab8f6(0x1da)],{'cookie':_0x48afd6[_0x1ab8f6(0x1d5)],'label':_0x1ab8f6(0x1c2)}),_0x545372=flattenMenuItems(Array[_0x1ab8f6(0x1c6)](_0x280e43)?_0x280e43:[],{'verbose':_0x15f4bc,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x545372['length'],'menus':_0x545372},'message':_0x545372['length']===0x0?_0x1ab8f6(0x1e6):_0x1ab8f6(0x1d4)+_0x545372[_0x1ab8f6(0x1e7)]+_0x1ab8f6(0x1cc)};}};function flattenMenuItems(_0xcb20da,_0x55ccbd){const _0x35e0ee=a85_0x18e40f,_0x4e4437=sortMenuItems(_0xcb20da),_0x2aebe3=[];for(const _0x525b42 of _0x4e4437){_0x2aebe3[_0x35e0ee(0x1c9)](toMenuListItem(_0x525b42,_0x55ccbd)),Array[_0x35e0ee(0x1c6)](_0x525b42['children'])&&_0x525b42[_0x35e0ee(0x1ce)]['length']>0x0&&_0x2aebe3[_0x35e0ee(0x1c9)](...flattenMenuItems(_0x525b42[_0x35e0ee(0x1ce)],{'verbose':_0x55ccbd['verbose'],'parentId':_0x525b42['id'],'depth':_0x55ccbd[_0x35e0ee(0x1e3)]+0x1}));}return _0x2aebe3;}function a85_0x4c09(){const _0x13d608=['cookie','1CHfYrR','30GywXoK','item','visible','appCode','extend','7vXWwrO','map','isFinite','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','3252CeYbiy','2862maUvQH','label','depth','6237100ukQehq','read','No\x20menus\x20found.','length','verbose','Fetch\x20menu\x20list','595824fQaOEP','path','41095989daXstv','isArray','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','parentId','push','2740725NZovBy','string','\x20menu(s)','number','children','sort','825952JFLaQW','2780330ejjoRC','boolean','index','Found\x20'];a85_0x4c09=function(){return _0x13d608;};return a85_0x4c09();}function sortMenuItems(_0x2594b1){const _0x4f5a14=a85_0x18e40f;return _0x2594b1['map']((_0xa137f2,_0x3ae091)=>({'item':_0xa137f2,'index':_0x3ae091}))[_0x4f5a14(0x1cf)]((_0x2ae312,_0x581275)=>{const _0x32ec94=_0x4f5a14,_0x3768c8=normalizeSort(_0x2ae312[_0x32ec94(0x1d8)][_0x32ec94(0x1cf)]),_0x17dbe9=normalizeSort(_0x581275[_0x32ec94(0x1d8)][_0x32ec94(0x1cf)]);if(_0x3768c8!==_0x17dbe9)return _0x3768c8-_0x17dbe9;return _0x2ae312['index']-_0x581275[_0x32ec94(0x1d3)];})[_0x4f5a14(0x1dd)](({item:_0x3e042f})=>_0x3e042f);}function toMenuListItem(_0x8432d7,_0x3a6cdc){const _0x285c7a=a85_0x18e40f,_0x137891={'id':_0x8432d7['id'],'parentId':_0x3a6cdc[_0x285c7a(0x1c8)],'depth':_0x3a6cdc['depth'],'label':normalizeString(_0x8432d7[_0x285c7a(0x1e2)]),'path':normalizeString(_0x8432d7[_0x285c7a(0x1c4)]),'type':normalizeString(_0x8432d7['type']),'visible':typeof _0x8432d7[_0x285c7a(0x1d9)]===_0x285c7a(0x1d2)?_0x8432d7['visible']:null,'sort':typeof _0x8432d7[_0x285c7a(0x1cf)]===_0x285c7a(0x1cd)&&Number[_0x285c7a(0x1de)](_0x8432d7[_0x285c7a(0x1cf)])?_0x8432d7['sort']:null,'resources':normalizeResources(_0x8432d7[_0x285c7a(0x1db)]?.['resources'])};return _0x3a6cdc['verbose']&&(_0x137891[_0x285c7a(0x1db)]=_0x8432d7['extend']??null),_0x137891;}function normalizeSort(_0x4f269d){const _0x456b88=a85_0x18e40f;return typeof _0x4f269d===_0x456b88(0x1cd)&&Number[_0x456b88(0x1de)](_0x4f269d)?_0x4f269d:Number['POSITIVE_INFINITY'];}function normalizeString(_0xe9f2a7){const _0x5620da=a85_0x18e40f;return typeof _0xe9f2a7===_0x5620da(0x1cb)?_0xe9f2a7:'';}function normalizeResources(_0x57fa53){const _0x43fed5=a85_0x18e40f;if(Array[_0x43fed5(0x1c6)](_0x57fa53))return _0x57fa53[_0x43fed5(0x1dd)](String);if(typeof _0x57fa53!==_0x43fed5(0x1cb))return[];try{const _0x13ca90=JSON['parse'](_0x57fa53);return Array[_0x43fed5(0x1c6)](_0x13ca90)?_0x13ca90[_0x43fed5(0x1dd)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20a71c,_0x2df8f7){const _0x4a75c6=a86_0x1b61,_0x4fcec4=_0x20a71c();while(!![]){try{const _0x17da67=parseInt(_0x4a75c6(0x93))/0x1*(-parseInt(_0x4a75c6(0x89))/0x2)+parseInt(_0x4a75c6(0x87))/0x3+parseInt(_0x4a75c6(0x98))/0x4*(-parseInt(_0x4a75c6(0x80))/0x5)+parseInt(_0x4a75c6(0x88))/0x6*(-parseInt(_0x4a75c6(0x82))/0x7)+parseInt(_0x4a75c6(0x9e))/0x8*(-parseInt(_0x4a75c6(0x99))/0x9)+-parseInt(_0x4a75c6(0x8b))/0xa*(parseInt(_0x4a75c6(0x94))/0xb)+-parseInt(_0x4a75c6(0x85))/0xc*(-parseInt(_0x4a75c6(0x9b))/0xd);if(_0x17da67===_0x2df8f7)break;else _0x4fcec4['push'](_0x4fcec4['shift']());}catch(_0x9fabcc){_0x4fcec4['push'](_0x4fcec4['shift']());}}}(a86_0x1668,0xbdce4));function strWidth(_0x3ef2ad){let _0x2a0843=0x0;for(const _0x552ad4 of _0x3ef2ad){_0x2a0843+=/[\u4e00-\u9fa5]/['test'](_0x552ad4)?0x2:0x1;}return _0x2a0843;}function padRight(_0x289a2b,_0x1db1b8){const _0x54fac0=a86_0x1b61,_0x4d42fe=strWidth(_0x289a2b);return _0x289a2b+'\x20'[_0x54fac0(0x9a)](Math[_0x54fac0(0x95)](0x0,_0x1db1b8-_0x4d42fe));}export function renderCompareTable(_0x285ff4,_0x4adcd9={}){const _0xbe6a97=a86_0x1b61;if(_0x285ff4[_0xbe6a97(0x96)]===0x0)return'';const _0x7ae373=_0x4adcd9[_0xbe6a97(0x86)]??!![],_0x3460ab=Math[_0xbe6a97(0x95)](0x1e,..._0x285ff4[_0xbe6a97(0x8d)](_0x5d56c4=>strWidth(_0x5d56c4[_0xbe6a97(0x84)]))),_0x2733c2=0x4,_0x1461ea=[],_0xc72e51='\x20\x20'+padRight(_0xbe6a97(0x81),_0x3460ab),_0x474775=padRight(_0xbe6a97(0x90),_0x2733c2),_0x2da493=_0x7ae373?'\x20\x20'+padRight('Platform',_0x2733c2):'';_0x1461ea['push'](_0xc72e51+'\x20\x20'+_0x474775+(_0x7ae373?_0x2da493:'')),_0x1461ea[_0xbe6a97(0x8e)]('\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x3460ab)+'\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x2733c2)+(_0x7ae373?'\x20\x20'+'─'[_0xbe6a97(0x9a)](_0x2733c2):''));for(const _0x208a85 of _0x285ff4){const _0x4d8d8f=padRight(_0x208a85[_0xbe6a97(0x84)],_0x3460ab),_0x590f95=_0x208a85['local']?'✓':'✗',_0x49f2a8=padRight(_0x590f95,_0x2733c2);let _0x338e30='\x20\x20'+_0x4d8d8f+'\x20\x20'+_0x49f2a8;if(_0x7ae373){const _0x15c749=_0x208a85[_0xbe6a97(0x97)]?'✓':'✗';_0x338e30+='\x20\x20'+padRight(_0x15c749,_0x2733c2);}_0x1461ea[_0xbe6a97(0x8e)](_0x338e30);}return _0x1461ea[_0xbe6a97(0x9c)]('\x0a');}export function renderSyncSummary(_0x48d392,_0xaf99c6){const _0x41ff20=a86_0x1b61;if(_0x48d392[_0x41ff20(0x96)]===0x0)return _0xaf99c6?_0x41ff20(0x8f):_0x41ff20(0x9d);const _0x1a9fcf=['\x20\x20'+_0x48d392[_0x41ff20(0x96)]+_0x41ff20(0x8c)];for(const _0x33be33 of _0x48d392){_0x1a9fcf[_0x41ff20(0x8e)](_0x41ff20(0x83)+_0x33be33[_0x41ff20(0x84)]+'\x20('+_0x33be33['path']+')');}return _0x1a9fcf[_0x41ff20(0x9c)]('\x0a');}function a86_0x1b61(_0x1168e4,_0x17fd4d){_0x1168e4=_0x1168e4-0x80;const _0x16681c=a86_0x1668();let _0x1b6116=_0x16681c[_0x1168e4];return _0x1b6116;}export function renderUpdateSummary(_0x5efcc5,_0x5d172c){const _0x3a3637=a86_0x1b61;if(_0x5efcc5['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x1e0801=['\x20\x20'+_0x5efcc5[_0x3a3637(0x96)]+_0x3a3637(0x92),_0x3a3637(0x91)+(_0x5d172c[0x0]??_0x3a3637(0x8a)),'\x20\x20\x20\x20CSS:\x20'+(_0x5d172c[0x1]??_0x3a3637(0x8a)),'','\x20\x20Affected\x20menus:\x20'+_0x5efcc5[_0x3a3637(0x9c)](',\x20')];return _0x1e0801['join']('\x0a');}function a86_0x1668(){const _0x4af8ed=['showOnline','3147285ySLYLw','5028JTOHfw','862EQhCgf','(unchanged)','659770LcONlK','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','map','push','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','\x20\x20\x20\x20JS:\x20\x20','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','1223cyNVNH','143nwduNG','max','length','online','500uPjJLy','4965075VCaLLa','repeat','39CfKdQI','join','\x20\x20No\x20pages\x20to\x20sync.','8hpUpBJ','31550tLyFRj','Menu\x20Name','9583cSrGgQ','\x20\x20\x20\x20•\x20','label','14403240fSpDqI'];a86_0x1668=function(){return _0x4af8ed;};return a86_0x1668();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x571ab2,_0x40566c){var _0x520b19=a87_0x13fb,_0xccf9e0=_0x571ab2();while(!![]){try{var _0x4bb618=-parseInt(_0x520b19(0xe3))/0x1*(-parseInt(_0x520b19(0xdf))/0x2)+-parseInt(_0x520b19(0xe0))/0x3+parseInt(_0x520b19(0xdd))/0x4+parseInt(_0x520b19(0xe6))/0x5+parseInt(_0x520b19(0xde))/0x6*(parseInt(_0x520b19(0xe2))/0x7)+parseInt(_0x520b19(0xe4))/0x8+-parseInt(_0x520b19(0xe1))/0x9*(parseInt(_0x520b19(0xe5))/0xa);if(_0x4bb618===_0x40566c)break;else _0xccf9e0['push'](_0xccf9e0['shift']());}catch(_0x58b8f5){_0xccf9e0['push'](_0xccf9e0['shift']());}}}(a87_0x49fb,0x63946));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 a87_0x49fb(){var _0x1bcd97=['2982696oAnhTI','198JXaJSM','25590gdTkge','501003mjxANO','7137XmnSZN','40383iokTuy','57VkGnhb','135432YgCYDG','20410qygvoH','2555485FFxuSi'];a87_0x49fb=function(){return _0x1bcd97;};return a87_0x49fb();}export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a87_0x13fb(_0xadd063,_0x2df029){_0xadd063=_0xadd063-0xdd;var _0x49fbb3=a87_0x49fb();var _0x13fbfb=_0x49fbb3[_0xadd063];return _0x13fbfb;}export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2f96de,_0x31f57e){const _0x21e2eb=a88_0x38c6,_0x536127=_0x2f96de();while(!![]){try{const _0x79c83c=-parseInt(_0x21e2eb(0xb3))/0x1*(parseInt(_0x21e2eb(0xc9))/0x2)+-parseInt(_0x21e2eb(0xbd))/0x3+parseInt(_0x21e2eb(0xa5))/0x4+-parseInt(_0x21e2eb(0xc1))/0x5*(-parseInt(_0x21e2eb(0xa1))/0x6)+-parseInt(_0x21e2eb(0xae))/0x7*(-parseInt(_0x21e2eb(0xb6))/0x8)+parseInt(_0x21e2eb(0xc3))/0x9*(parseInt(_0x21e2eb(0xc0))/0xa)+parseInt(_0x21e2eb(0xa6))/0xb;if(_0x79c83c===_0x31f57e)break;else _0x536127['push'](_0x536127['shift']());}catch(_0x2318d6){_0x536127['push'](_0x536127['shift']());}}}(a88_0x3fac,0xaa7df));import a88_0x18a913 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a88_0x38c6(_0x58405f,_0x5c68cd){_0x58405f=_0x58405f-0x9c;const _0x3fac36=a88_0x3fac();let _0x38c67c=_0x3fac36[_0x58405f];return _0x38c67c;}import a88_0x1e0f45 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5e1915){return _0x5e1915['catch'](_0x59c896=>{const _0x177df3=a88_0x38c6;if(_0x59c896?.[_0x177df3(0xa8)]===_0x177df3(0xc7))throw CliErrors[_0x177df3(0xac)]('Cancelled.');throw _0x59c896;});}export function startSpinner(_0xf08c2b){const _0x398a2e=a88_0x38c6;return a88_0x1e0f45({'text':_0xf08c2b,'color':'cyan'})[_0x398a2e(0xb5)]();}export function stopSpinner(_0x19f2df,_0x2146cb,_0x4edff0){const _0x4a5263=a88_0x38c6;_0x4edff0?_0x19f2df['succeed'](_0x2146cb):_0x19f2df[_0x4a5263(0xbf)](_0x2146cb);}export async function askConfirm(_0x313a5a){return onCancel(confirm({'message':_0x313a5a,'theme':{'prefix':''}}));}export async function askJsUrl(_0x222ae4){const _0x2d9133=a88_0x38c6;while(!![]){const _0x397820=await onCancel(input({'message':_0x2d9133(0xb4),'default':_0x222ae4,'theme':{'prefix':''}}));if(_0x397820[_0x2d9133(0x9c)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x397820['trim']())){console['error'](a88_0x18a913[_0x2d9133(0xa3)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x3d7898=startSpinner(_0x2d9133(0xc6));try{const _0x324642=await isUrlReachable(_0x397820[_0x2d9133(0x9c)]());stopSpinner(_0x3d7898,_0x2d9133(0x9e),_0x324642);if(!_0x324642){console[_0x2d9133(0xbb)](a88_0x18a913[_0x2d9133(0xa3)](_0x2d9133(0xb0)));continue;}return _0x397820[_0x2d9133(0x9c)]();}catch(_0x3858bd){stopSpinner(_0x3d7898,_0x2d9133(0xbe),![]);throw _0x3858bd;}}}function a88_0x3fac(){const _0x3f5f4e=['label','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','cancelled','No\x20menus\x20selected.','7iulojx','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','isTTY','gray','4hDtFPv','\x20\x20JS\x20URL:','start','2873144YBRTAH','test','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','Cancelled.','\x20\x20CSS\x20URL:','error','length','1541028McFPYO','JS\x20URL\x20check\x20failed','fail','10QqZnlE','3766285vlRGLM','[already\x20on\x20platform]','3201894mUMwhs','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','\x20\x20Checking\x20JS\x20URL\x20reachability...','ExitPromptError','No\x20local\x20pages\x20found.','681286bjalsE','trim','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20checked','map','path','6ckTWTH','filter','red','includes','3036068okQkOM','3821400OjJkfQ','CSS\x20URL\x20check\x20failed','name'];a88_0x3fac=function(){return _0x3f5f4e;};return a88_0x3fac();}export async function askCssUrl(_0x22e398){const _0x27f007=a88_0x38c6;while(!![]){const _0x1fa4ee=await onCancel(input({'message':_0x27f007(0xba),'default':_0x22e398,'theme':{'prefix':''}}));if(_0x1fa4ee[_0x27f007(0x9c)]()==='')throw CliErrors[_0x27f007(0xac)](_0x27f007(0xb9));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x27f007(0xb7)](_0x1fa4ee['trim']())){console[_0x27f007(0xbb)](a88_0x18a913[_0x27f007(0xa3)](_0x27f007(0xb8)));continue;}const _0x4da9d6=startSpinner(_0x27f007(0xaf));try{const _0x27a208=await isUrlReachable(_0x1fa4ee['trim']());stopSpinner(_0x4da9d6,'CSS\x20URL\x20checked',_0x27a208);if(!_0x27a208){console['error'](a88_0x18a913[_0x27f007(0xa3)](_0x27f007(0x9d)));continue;}return _0x1fa4ee[_0x27f007(0x9c)]();}catch(_0x5487ea){stopSpinner(_0x4da9d6,_0x27f007(0xa7),![]);throw _0x5487ea;}}}export async function selectPages(_0x42f37d,_0x545321,_0x597472){const _0x2de274=a88_0x38c6,_0x16dc88=_0x42f37d[_0x2de274(0x9f)](_0x387bdb=>({'name':_0x387bdb['label']+'\x20\x20'+(_0x545321[_0x2de274(0xc5)](_0x387bdb[_0x2de274(0xa0)])?a88_0x18a913[_0x2de274(0xb2)](_0x2de274(0xc2)):a88_0x18a913['green']('[new]')),'value':_0x387bdb[_0x2de274(0xa9)],'checked':_0x597472?_0x597472[_0x2de274(0xa4)](_0x387bdb[_0x2de274(0xa9)]):!_0x545321[_0x2de274(0xc5)](_0x387bdb['path'])}));if(_0x16dc88['length']===0x0)throw new Error(_0x2de274(0xc8));const _0x4e12e5=await onCancel(checkbox({'message':_0x2de274(0xc4),'choices':_0x16dc88,'loop':![],'theme':{'prefix':''}}));if(_0x4e12e5[_0x2de274(0xbc)]===0x0)throw new Error(_0x2de274(0xad));return _0x42f37d[_0x2de274(0xa2)](_0x501936=>_0x4e12e5[_0x2de274(0xa4)](_0x501936[_0x2de274(0xa9)]));}export function isInteractive(){const _0x5383c6=a88_0x38c6;return process['stdin'][_0x5383c6(0xb1)]===!![];}export function requireInteractive(){const _0x1cf09e=a88_0x38c6;if(!isInteractive())throw new Error(_0x1cf09e(0xaa)+_0x1cf09e(0xab));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0x536ad6=a89_0xa6fe;function a89_0xa6fe(_0x361e72,_0x2a697e){_0x361e72=_0x361e72-0x10f;const _0x5cb20e=a89_0x5cb2();let _0xa6fe4b=_0x5cb20e[_0x361e72];return _0xa6fe4b;}(function(_0x425750,_0x24754e){const _0x119602=a89_0xa6fe,_0x3db3b2=_0x425750();while(!![]){try{const _0x565a11=-parseInt(_0x119602(0x11b))/0x1+-parseInt(_0x119602(0x117))/0x2*(parseInt(_0x119602(0x11e))/0x3)+parseInt(_0x119602(0x120))/0x4*(parseInt(_0x119602(0x116))/0x5)+parseInt(_0x119602(0x11f))/0x6+parseInt(_0x119602(0x121))/0x7+parseInt(_0x119602(0x11a))/0x8+parseInt(_0x119602(0x123))/0x9*(parseInt(_0x119602(0x125))/0xa);if(_0x565a11===_0x24754e)break;else _0x3db3b2['push'](_0x3db3b2['shift']());}catch(_0x16d367){_0x3db3b2['push'](_0x3db3b2['shift']());}}}(a89_0x5cb2,0x91880));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a89_0x5cb2(){const _0x3f8e2b=['2067576MKZLXK','filter','919692COVyAs','match','40YVuAEQ','forEach','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','cwd','utf-8','join','trim','split','435RtuFqU','2IjEtYW','push','.tsx','3180496uiVavx','389512WaOYiH','replaceAll','path','2787468rLJpsb','2298246hbouqH','19772oRMDAr'];a89_0x5cb2=function(){return _0x3f8e2b;};return a89_0x5cb2();}const pagesDir=resolve(process[a89_0x536ad6(0x111)](),'src/pages');export function extractTitleFromComment(_0x23d55d){const _0x8d5e43=a89_0x536ad6;try{const _0x210329=readFileSync(_0x23d55d,_0x8d5e43(0x112)),_0x432d42=_0x210329[_0x8d5e43(0x124)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x432d42&&_0x432d42[0x1]){const _0x41f9d4=_0x432d42[0x1],_0x198b14=_0x41f9d4['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x198b14&&_0x198b14[0x1])return _0x198b14[0x1][_0x8d5e43(0x114)]();}let _0x309339=null;const _0x460c64=_0x210329[_0x8d5e43(0x124)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x460c64&&_0x460c64[0x1]&&(_0x309339=_0x460c64[0x1]);if(!_0x309339){const _0x2c9333=_0x210329[_0x8d5e43(0x124)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x2c9333&&_0x2c9333[0x1]&&(_0x309339=_0x2c9333[0x1]);}if(_0x309339){const _0x57a635=new RegExp('\x5cb'+_0x309339+_0x8d5e43(0x10f)),_0x257c22=_0x210329['match'](_0x57a635);if(_0x257c22&&_0x257c22[0x1])return _0x257c22[0x1];return _0x309339;}return null;}catch(_0x38b625){return null;}}export function getLocalPages(_0x2f4a06=pagesDir,_0x491b2b=pagesDir){const _0x322858=a89_0x536ad6;let _0x49e4b6=[];const _0x3d2cfb=readdirSync(_0x2f4a06);return _0x3d2cfb[_0x322858(0x126)](_0x4a1746=>{const _0x4135ee=_0x322858,_0x58ee4a=join(_0x2f4a06,_0x4a1746),_0x36224d=statSync(_0x58ee4a);if(_0x36224d&&_0x36224d['isDirectory']())_0x49e4b6=_0x49e4b6['concat'](getLocalPages(_0x58ee4a,_0x491b2b));else{if(_0x4a1746[_0x4135ee(0x127)](_0x4135ee(0x119))){let _0x437e1b=relative(_0x491b2b,_0x58ee4a);_0x437e1b[_0x4135ee(0x127)]('index.tsx')?_0x437e1b=_0x437e1b['replace'](/index\.tsx$/,''):_0x437e1b=_0x437e1b[_0x4135ee(0x110)](/\.tsx$/,'');_0x437e1b[_0x4135ee(0x127)](sep)&&(_0x437e1b=_0x437e1b['slice'](0x0,-0x1));const _0x2ee04b=_0x437e1b[_0x4135ee(0x115)](sep)[_0x4135ee(0x113)]('/'),_0x447c12=extractTitleFromComment(_0x58ee4a),_0x49f896=_0x447c12||_0x2ee04b;_0x49e4b6[_0x4135ee(0x118)]({'path':_0x2ee04b[_0x4135ee(0x11c)]('$',':'),'label':_0x49f896});}}}),_0x49e4b6[_0x322858(0x122)](_0x5629d7=>_0x5629d7[_0x322858(0x11d)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5abbe9,_0x7c3b32){const _0x34b4c6=a90_0x1d95,_0x1cc911=_0x5abbe9();while(!![]){try{const _0xce882c=-parseInt(_0x34b4c6(0xd2))/0x1*(parseInt(_0x34b4c6(0xc5))/0x2)+-parseInt(_0x34b4c6(0xd4))/0x3*(parseInt(_0x34b4c6(0xc6))/0x4)+-parseInt(_0x34b4c6(0xd9))/0x5+-parseInt(_0x34b4c6(0xdb))/0x6+parseInt(_0x34b4c6(0xc7))/0x7+parseInt(_0x34b4c6(0xdd))/0x8+parseInt(_0x34b4c6(0xc8))/0x9;if(_0xce882c===_0x7c3b32)break;else _0x1cc911['push'](_0x1cc911['shift']());}catch(_0x2915f3){_0x1cc911['push'](_0x1cc911['shift']());}}}(a90_0x57ee,0xa31f2));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(_0x11caf1){const _0x4a87a8=a90_0x1d95,_0x4ed4c9=[];return!isValidJsHttpsUrl(_0x11caf1)&&_0x4ed4c9['push'](_0x4a87a8(0xdf)),{'ok':_0x4ed4c9['length']===0x0,'errors':_0x4ed4c9};}export function validateCssUrl(_0x4efc76){const _0x22d236=a90_0x1d95,_0x5c7e45=[];return!isValidCssHttpsUrl(_0x4efc76)&&_0x5c7e45[_0x22d236(0xd0)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x5c7e45[_0x22d236(0xcc)]===0x0,'errors':_0x5c7e45};}export async function validateJsUrlReachable(_0x37b669){const _0x1e37c4=a90_0x1d95,_0x2c4d95=validateJsUrl(_0x37b669);if(!_0x2c4d95['ok'])return _0x2c4d95;const _0x32381f=await isUrlReachable(_0x37b669);if(!_0x32381f)_0x2c4d95['errors'][_0x1e37c4(0xd0)](_0x1e37c4(0xca));return{'ok':_0x2c4d95['errors'][_0x1e37c4(0xcc)]===0x0,'errors':_0x2c4d95['errors']};}function a90_0x57ee(){const _0x8ea86e=['7069794HYypEa','fulfilled','5563240PYgpSC','rejected','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','302WZWTSY','876QsjxEV','5659864YnVajB','28193859QEyYwS','status','JS\x20URL\x20is\x20unreachable','extend','length','trim','value','errors','push','map','5383zdSwMk','has','12009IlykzM','resources','allSettled','filter','label','5503365VuJKHQ','path'];a90_0x57ee=function(){return _0x8ea86e;};return a90_0x57ee();}export async function validateCssUrlReachable(_0x99f397){const _0x110c0f=a90_0x1d95,_0x22eaa7=validateCssUrl(_0x99f397);if(!_0x22eaa7['ok'])return _0x22eaa7;const _0x55c11d=await isUrlReachable(_0x99f397);if(!_0x55c11d)_0x22eaa7[_0x110c0f(0xcf)][_0x110c0f(0xd0)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x22eaa7[_0x110c0f(0xcf)][_0x110c0f(0xcc)]===0x0,'errors':_0x22eaa7[_0x110c0f(0xcf)]};}export function buildCompareRows(_0x324a20,_0x59410a){const _0x2ec853=a90_0x1d95;return _0x324a20[_0x2ec853(0xd1)](_0x153077=>({'label':_0x153077[_0x2ec853(0xd8)],'path':_0x153077[_0x2ec853(0xda)],'local':!![],'online':_0x59410a[_0x2ec853(0xd3)](_0x153077[_0x2ec853(0xda)])}));}export function filterNewPages(_0x16446a,_0x5303df,_0x16b255){const _0x4a4f84=a90_0x1d95;if(_0x16b255&&_0x16b255[_0x4a4f84(0xcc)]>0x0){const _0x1e6c19=new Set(_0x16b255[_0x4a4f84(0xd1)](_0x5e5bf1=>_0x5e5bf1[_0x4a4f84(0xcd)]())),_0x225b89=_0x16446a[_0x4a4f84(0xd7)](_0x46025e=>_0x1e6c19['has'](_0x46025e[_0x4a4f84(0xd8)]));if(_0x225b89['length']===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x1e6c19]['join'](',\x20'));return _0x225b89;}return _0x16446a[_0x4a4f84(0xd7)](_0x193205=>!_0x5303df[_0x4a4f84(0xd3)](_0x193205['path']));}function a90_0x1d95(_0x162e05,_0x5eb92d){_0x162e05=_0x162e05-0xc5;const _0x57ee00=a90_0x57ee();let _0x1d9557=_0x57ee00[_0x162e05];return _0x1d9557;}export function filterPagesByLabels(_0x51f5b4,_0x5d328f){const _0x3dda=a90_0x1d95,_0x4394a8=[],_0x201a6a=[];for(const _0x3deeea of _0x5d328f){const _0x41fb68=_0x3deeea[_0x3dda(0xcd)](),_0x52fd9f=_0x51f5b4['find'](_0x1eabdb=>_0x1eabdb[_0x3dda(0xd8)]===_0x41fb68);if(_0x52fd9f)_0x4394a8[_0x3dda(0xd0)](_0x52fd9f);else _0x201a6a[_0x3dda(0xd0)](_0x3deeea);}return{'matched':_0x4394a8,'unmatched':_0x201a6a};}export async function doCreateMenus(_0x4ed4f8,_0x4562e1,_0x5b67df,_0x29938d){const _0x42ce7a=a90_0x1d95,_0x4eaa0b=await createMenus(_0x4ed4f8,_0x4562e1,_0x5b67df,_0x29938d);return{'created':_0x4eaa0b[_0x42ce7a(0xcc)],'failed':0x0,'labels':_0x5b67df[_0x42ce7a(0xd1)](_0x3039c0=>_0x3039c0[_0x42ce7a(0xd8)]),'menus':_0x4eaa0b};}export function filterMenusWithResources(_0x4bff37){const _0x272af7=a90_0x1d95;return _0x4bff37[_0x272af7(0xd7)](_0x5dc309=>_0x5dc309[_0x272af7(0xd5)]['length']>0x0);}export async function doUpdateCdnUrls(_0x5456bb,_0x3d94ea,_0x12568f,_0x16def4){const _0x1ea01c=a90_0x1d95,_0x1e43b3=_0x12568f['filter'](_0x250978=>_0x250978[_0x1ea01c(0xd5)][_0x1ea01c(0xcc)]>0x0),_0x30aa55=await Promise[_0x1ea01c(0xd6)](_0x1e43b3[_0x1ea01c(0xd1)](_0x25da0e=>updateMenuCdnUrl(_0x5456bb,_0x3d94ea,{'id':_0x25da0e['id'],'label':_0x25da0e['label'],'path':_0x25da0e[_0x1ea01c(0xda)],'resources':_0x16def4,'extend':_0x25da0e[_0x1ea01c(0xcb)]??null}))),_0x3924e6=_0x30aa55[_0x1ea01c(0xd7)](_0x2bfae0=>_0x2bfae0[_0x1ea01c(0xc9)]===_0x1ea01c(0xdc))['map'](_0x26fa27=>_0x26fa27[_0x1ea01c(0xce)]),_0x3e4097=_0x30aa55['filter'](_0x15d21=>_0x15d21['status']===_0x1ea01c(0xde))[_0x1ea01c(0xcc)];return{'updated':_0x3924e6[_0x1ea01c(0xcc)],'failed':_0x3e4097,'menus':_0x3924e6};}export async function fetchMenuData(_0x5e855b,_0x919d36){const _0x3606f9=a90_0x1d95,_0x210bc1=getLocalPages(),_0x5b7a65=await getOnlineMenuList(_0x5e855b,_0x919d36),_0x2b4a63=new Set(_0x5b7a65[_0x3606f9(0xd1)](_0x36fb2b=>_0x36fb2b[_0x3606f9(0xda)]));return{'localPages':_0x210bc1,'onlineMenuList':_0x5b7a65,'onlinePaths':_0x2b4a63};}export async function fetchOnlineMenuList(_0x23db68,_0x320290){return getOnlineMenuList(_0x23db68,_0x320290);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36cdcd,_0x583658){const _0xe21e5d=a91_0xdf25,_0x2958fc=_0x36cdcd();while(!![]){try{const _0xb94460=parseInt(_0xe21e5d(0x105))/0x1*(parseInt(_0xe21e5d(0xeb))/0x2)+parseInt(_0xe21e5d(0x104))/0x3+-parseInt(_0xe21e5d(0xe5))/0x4+-parseInt(_0xe21e5d(0xfb))/0x5+-parseInt(_0xe21e5d(0x102))/0x6*(-parseInt(_0xe21e5d(0xe8))/0x7)+parseInt(_0xe21e5d(0xf7))/0x8*(-parseInt(_0xe21e5d(0xf4))/0x9)+-parseInt(_0xe21e5d(0xf2))/0xa;if(_0xb94460===_0x583658)break;else _0x2958fc['push'](_0x2958fc['shift']());}catch(_0x395e29){_0x2958fc['push'](_0x2958fc['shift']());}}}(a91_0x3d8d,0x54652));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(_0x1d7f27,_0x19fde2){const _0x122898=a91_0xdf25,_0x26151b=getEnv();logger[_0x122898(0xe9)](_0x122898(0x108),isProduction(_0x26151b)?_0x122898(0xf5)+_0x1d7f27+')':_0x122898(0xfd)+_0x1d7f27+')');const _0x1730af=await platformFetch(getApiDomain()+_0x122898(0xf9)+_0x1d7f27,{'cookie':_0x19fde2,'label':_0x122898(0xdf)});if(!_0x1730af)return logger[_0x122898(0xe9)](_0x122898(0x108),_0x122898(0xde)),[];return logger[_0x122898(0xe9)](_0x122898(0x108),'Fetched\x20'+_0x1730af['length']+'\x20online\x20menus\x20successfully'),_0x1730af[_0x122898(0xec)](flattenMenuItem)[_0x122898(0xfa)]();}function a91_0xdf25(_0x335bc5,_0x467e9){_0x335bc5=_0x335bc5-0xdd;const _0x3d8d70=a91_0x3d8d();let _0xdf251e=_0x3d8d70[_0x335bc5];return _0xdf251e;}function flattenMenuItem(_0x3e2b4b){const _0x441d85=a91_0xdf25;let _0x375494=[];try{const _0x3577cf=_0x3e2b4b[_0x441d85(0xe2)]?.[_0x441d85(0x101)];if(typeof _0x3577cf==='string'){const _0x25dbc3=JSON[_0x441d85(0xe1)](_0x3577cf);if(Array[_0x441d85(0x103)](_0x25dbc3))_0x375494=_0x25dbc3[_0x441d85(0xec)](String);}else Array[_0x441d85(0x103)](_0x3577cf)&&(_0x375494=_0x3577cf[_0x441d85(0xec)](String));}catch{}const _0x17b736=[{'id':_0x3e2b4b['id'],'path':_0x3e2b4b['path'],'label':_0x3e2b4b['label'],'resources':_0x375494,'extend':_0x3e2b4b[_0x441d85(0xe2)]??null}];if(_0x3e2b4b[_0x441d85(0xea)]&&_0x3e2b4b[_0x441d85(0xea)][_0x441d85(0xe3)]>0x0)for(const _0x5d2b03 of _0x3e2b4b[_0x441d85(0xea)]){_0x17b736[_0x441d85(0xff)](...flattenMenuItem(_0x5d2b03));}return _0x17b736;}function a91_0x3d8d(){const _0x4058fe=['1190517ELQYUj','644563VWPHpC','Batch\x20menu\x20creation\x20completed,\x20total\x20','label','get-online-menu-list','create-menus','create-menu','Server\x20returned\x20empty\x20menu\x20list','Fetch\x20menu\x20list','Updating\x20menu\x20asset\x20links:\x20','parse','extend','length','import','879908pfKUpC','Start\x20batch\x20menu\x20creation,\x20total\x20','POST','14Bdlyge','info','children','2RlcNcv','map','Update\x20menu\x20assets\x20\x22','/smartapi/menu/create','stringify','/smartapi/menu/update','update-menu-cdn-url','378900JvEhuZ','all','18IfIUMv','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','Creating\x20menu:\x20','2219992wHJjHN','procode','/smartapi/menu/find?appCode=','flat','2428515hGBUIO','Menu\x20assets\x20synced:\x20','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','path','push','Create\x20menu\x20\x22','resources','1808544niMCxM','isArray'];a91_0x3d8d=function(){return _0x4058fe;};return a91_0x3d8d();}export async function createMenu(_0x40d02c,_0x24b046,_0x53b51c){const _0xe8c080=a91_0xdf25;logger[_0xe8c080(0xe9)](_0xe8c080(0xdd),_0xe8c080(0xf6)+_0x53b51c[_0xe8c080(0x107)]+'\x20('+_0x53b51c[_0xe8c080(0xfe)]+')');const _0x58b5e2={'appCode':_0x40d02c,'type':_0xe8c080(0xf8),'sort':0x0,'extend':{'loadScriptMode':_0xe8c080(0xe4),'resources':_0x53b51c[_0xe8c080(0x101)]?JSON[_0xe8c080(0xef)](_0x53b51c[_0xe8c080(0x101)]):undefined},..._0x53b51c},_0x28245b=await platformFetch(getApiDomain()+_0xe8c080(0xee),{'method':_0xe8c080(0xe7),'body':_0x58b5e2,'cookie':_0x24b046,'label':_0xe8c080(0x100)+_0x53b51c[_0xe8c080(0x107)]+'\x22'});return logger[_0xe8c080(0xe9)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x53b51c[_0xe8c080(0x107)]),_0x28245b;}async function createSingleMenu(_0x49cdfc,_0x1e22fe,_0x3053ce,_0x1b2a22){const _0x1d3ce3=a91_0xdf25,_0x1031f8={'appCode':_0x49cdfc,'type':_0x1d3ce3(0xf8),'sort':0x0,'extend':{'loadScriptMode':_0x1d3ce3(0xe4),'resources':_0x1b2a22?JSON['stringify'](_0x1b2a22):undefined},'label':_0x3053ce['label'],'path':_0x3053ce[_0x1d3ce3(0xfe)]},_0x3e7de4=await platformFetch(getApiDomain()+_0x1d3ce3(0xee),{'method':_0x1d3ce3(0xe7),'body':_0x1031f8,'cookie':_0x1e22fe,'label':_0x1d3ce3(0x100)+_0x3053ce[_0x1d3ce3(0x107)]+'\x22'});return logger[_0x1d3ce3(0xe9)](_0x1d3ce3(0xdd),'Menu\x20created\x20successfully:\x20'+_0x3053ce[_0x1d3ce3(0x107)]),_0x3e7de4;}export async function createMenus(_0x5b6560,_0x30ff20,_0x23f740,_0x3883c3){const _0x331929=a91_0xdf25;logger['info'](_0x331929(0x109),_0x331929(0xe6)+_0x23f740[_0x331929(0xe3)]);const _0x2ad50=await Promise[_0x331929(0xf3)](_0x23f740[_0x331929(0xec)](_0x5d9212=>createSingleMenu(_0x5b6560,_0x30ff20,_0x5d9212,_0x3883c3)));return logger[_0x331929(0xe9)](_0x331929(0x109),_0x331929(0x106)+_0x23f740[_0x331929(0xe3)]),_0x2ad50;}export async function updateMenuCdnUrl(_0x3f5e69,_0x10c341,_0x1c504d){const _0x527f90=a91_0xdf25;logger[_0x527f90(0xe9)](_0x527f90(0xf1),_0x527f90(0xe0)+_0x1c504d[_0x527f90(0x107)]+'\x20('+_0x1c504d[_0x527f90(0xfe)]+')');const _0x1664c0={'id':_0x1c504d['id'],'appCode':_0x3f5e69,'extend':{..._0x1c504d[_0x527f90(0xe2)]??{},'loadScriptMode':_0x527f90(0xe4),'resources':_0x1c504d[_0x527f90(0x101)]?JSON[_0x527f90(0xef)](_0x1c504d['resources']):undefined}},_0x49b078=await platformFetch(getApiDomain()+_0x527f90(0xf0),{'method':_0x527f90(0xe7),'body':_0x1664c0,'cookie':_0x10c341,'label':_0x527f90(0xed)+_0x1c504d[_0x527f90(0x107)]+'\x22'});return logger['info'](_0x527f90(0xf1),_0x527f90(0xfc)+_0x1c504d[_0x527f90(0x107)],undefined),_0x49b078;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a92_0x5a53(_0x20ef19,_0x2d519f){_0x20ef19=_0x20ef19-0x1dc;const _0xcd7a28=a92_0xcd7a();let _0x5a539d=_0xcd7a28[_0x20ef19];return _0x5a539d;}(function(_0x3d752c,_0x528046){const _0x3e41b4=a92_0x5a53,_0x4333a2=_0x3d752c();while(!![]){try{const _0x393786=-parseInt(_0x3e41b4(0x202))/0x1+-parseInt(_0x3e41b4(0x1dd))/0x2+parseInt(_0x3e41b4(0x208))/0x3+parseInt(_0x3e41b4(0x1e8))/0x4*(parseInt(_0x3e41b4(0x1dc))/0x5)+-parseInt(_0x3e41b4(0x1ee))/0x6+parseInt(_0x3e41b4(0x207))/0x7+-parseInt(_0x3e41b4(0x1fc))/0x8*(-parseInt(_0x3e41b4(0x1f9))/0x9);if(_0x393786===_0x528046)break;else _0x4333a2['push'](_0x4333a2['shift']());}catch(_0x38229c){_0x4333a2['push'](_0x4333a2['shift']());}}}(a92_0xcd7a,0xab5f5));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(_0x4c61c0){const _0x5913bf=a92_0x5a53,_0xd9fff=[];return _0x4c61c0['jsUrl']&&!isValidJsHttpsUrl(_0x4c61c0[_0x5913bf(0x201)])&&_0xd9fff[_0x5913bf(0x1fa)]({'field':'jsUrl','message':_0x5913bf(0x1f5)}),_0x4c61c0['cssUrl']&&!isValidCssHttpsUrl(_0x4c61c0[_0x5913bf(0x1df)])&&_0xd9fff[_0x5913bf(0x1fa)]({'field':_0x5913bf(0x1df),'message':_0x5913bf(0x200)}),_0xd9fff;}export async function runMenuSyncCore(_0xec71bc,_0x40f61c,_0xd4922d=[],_0x192db7){const _0x31d7a1=a92_0x5a53,_0x1a3eb9=parseParamsFlag(_0x192db7),_0x35c331=_0xd4922d[_0x31d7a1(0x1f4)]>0x0?_0xd4922d:_0x1a3eb9['selectedLabels'],_0x4092e9=_0x1a3eb9['jsUrl'],_0x5e3c92=_0x1a3eb9[_0x31d7a1(0x1df)],_0x2c8a21=[];if(_0x4092e9)_0x2c8a21[_0x31d7a1(0x1fa)](_0x4092e9);if(_0x5e3c92)_0x2c8a21[_0x31d7a1(0x1fa)](_0x5e3c92);const _0x3965ae=validateParams(_0x1a3eb9);if(_0x3965ae['length']>0x0){const _0x512473=_0x3965ae[_0x31d7a1(0x1fe)](_0x53a02e=>_0x31d7a1(0x1e4)+_0x53a02e[_0x31d7a1(0x1f1)]+':\x20'+_0x53a02e[_0x31d7a1(0x1ff)])[_0x31d7a1(0x1eb)](';\x20');throw new Error(_0x31d7a1(0x205)+_0x512473);}logger[_0x31d7a1(0x1f0)](process[_0x31d7a1(0x1ed)]()),logger['info'](_0x31d7a1(0x1de),_0x31d7a1(0x1f2),{'appCode':_0xec71bc,'selectedCount':_0x35c331?.[_0x31d7a1(0x1f4)],'jsUrl':_0x4092e9,'cssUrl':_0x5e3c92});if(_0x4092e9){const _0x43a7d8=await isUrlReachable(_0x4092e9);if(!_0x43a7d8)throw new Error(_0x31d7a1(0x1e9)+_0x4092e9);}if(_0x5e3c92){const _0x2517fb=await isUrlReachable(_0x5e3c92);if(!_0x2517fb)throw new Error(_0x31d7a1(0x1e2)+_0x5e3c92);}const _0x339b09=getLocalPages();if(_0x339b09[_0x31d7a1(0x1f4)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0xd6d372=await getOnlineMenuList(_0xec71bc,_0x40f61c),_0x26abf7=new Set(_0xd6d372[_0x31d7a1(0x1fe)](_0x5abd18=>_0x5abd18[_0x31d7a1(0x1f6)]));let _0x5cd7fa;if(_0x35c331&&_0x35c331[_0x31d7a1(0x1f4)]>0x0){const _0x281c5c=new Set(_0x35c331['map'](_0x505fdb=>_0x505fdb[_0x31d7a1(0x1ec)]()));_0x5cd7fa=_0x339b09[_0x31d7a1(0x1e5)](_0x2903d4=>_0x281c5c[_0x31d7a1(0x1f8)](_0x2903d4[_0x31d7a1(0x1fd)]));if(_0x5cd7fa[_0x31d7a1(0x1f4)]===0x0){const _0x2ab2d5=_0x339b09[_0x31d7a1(0x1fe)](_0x599ff4=>_0x599ff4[_0x31d7a1(0x1fd)])['join'](',\x20');throw new Error(_0x31d7a1(0x1ea)+[..._0x281c5c][_0x31d7a1(0x1eb)](',\x20')+'\x0a\x20\x20Available\x20local\x20pages:\x20'+_0x2ab2d5);}}else _0x5cd7fa=_0x339b09[_0x31d7a1(0x1e5)](_0x342674=>!_0x26abf7[_0x31d7a1(0x1f8)](_0x342674[_0x31d7a1(0x1f6)]));if(_0x5cd7fa[_0x31d7a1(0x1f4)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x18156b=await createMenus(_0xec71bc,_0x40f61c,_0x5cd7fa,_0x2c8a21[_0x31d7a1(0x1f4)]>0x0?_0x2c8a21:undefined);return logger[_0x31d7a1(0x203)](_0x31d7a1(0x1de),'Menu\x20sync\x20completed',{'count':_0x5cd7fa[_0x31d7a1(0x1f4)],'resources':_0x2c8a21}),{'created':_0x18156b['length'],'skipped':![],'targetPages':_0x5cd7fa,'menus':_0x18156b};}export async function readPageLabelsFromStdin(){const _0x5cd74a=a92_0x5a53;if(!process[_0x5cd74a(0x1e1)]['isTTY']&&!process[_0x5cd74a(0x1e1)][_0x5cd74a(0x206)])return new Promise(_0x3016d5=>{const _0x176225=_0x5cd74a,_0x322a4a=[];process[_0x176225(0x1e1)]['on'](_0x176225(0x1ef),_0x17dcef=>_0x322a4a[_0x176225(0x1fa)](_0x17dcef)),process[_0x176225(0x1e1)]['on']('end',()=>{const _0x5a62d3=_0x176225,_0x3c690b=Buffer[_0x5a62d3(0x1f3)](_0x322a4a)['toString'](_0x5a62d3(0x204)),_0x3ada88=_0x3c690b['split']('\x0a')[_0x5a62d3(0x1fe)](_0xac4d35=>_0xac4d35[_0x5a62d3(0x1ec)]())[_0x5a62d3(0x1e5)](_0x154093=>_0x154093[_0x5a62d3(0x1f4)]>0x0&&!_0x154093[_0x5a62d3(0x1f7)]('#'));_0x3016d5(_0x3ada88);}),setTimeout(()=>_0x3016d5([]),0x1f4);});return[];}function a92_0xcd7a(){const _0x15e6e3=['JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','startsWith','has','10499373gBJesB','push','pages','8lGcqfw','label','map','message','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','jsUrl','325054VWlbVS','info','utf8','Invalid\x20--params:\x20','readableEnded','3517640AvJoIq','2126373djplYS','355GucgSC','1364020WkoNLE','menu-sync','cssUrl','parse','stdin','CSS\x20URL\x20is\x20unreachable:\x20','object','--params.','filter','isArray','string','28492BUfxfB','JS\x20URL\x20is\x20unreachable:\x20','No\x20local\x20pages\x20matched\x20labels:\x20','join','trim','cwd','7047816fDxgJH','data','setLogPath','field','Start\x20non-interactive\x20menu\x20sync','concat','length'];a92_0xcd7a=function(){return _0x15e6e3;};return a92_0xcd7a();}function parseParamsFlag(_0x183c67){const _0x38e23b=a92_0x5a53;if(!_0x183c67||typeof _0x183c67!==_0x38e23b(0x1e7))return{};try{const _0x3639a4=JSON[_0x38e23b(0x1e0)](_0x183c67);if(typeof _0x3639a4!==_0x38e23b(0x1e3)||_0x3639a4===null||Array[_0x38e23b(0x1e6)](_0x3639a4))return{};return{'selectedLabels':Array[_0x38e23b(0x1e6)](_0x3639a4[_0x38e23b(0x1fb)])?_0x3639a4[_0x38e23b(0x1fb)]['map'](String):undefined,'jsUrl':typeof _0x3639a4[_0x38e23b(0x201)]===_0x38e23b(0x1e7)?_0x3639a4[_0x38e23b(0x201)]['trim']():undefined,'cssUrl':typeof _0x3639a4[_0x38e23b(0x1df)]===_0x38e23b(0x1e7)?_0x3639a4[_0x38e23b(0x1df)][_0x38e23b(0x1ec)]():undefined};}catch{return{};}}
|