@lovrabet/rabetbase-cli 2.1.11 → 2.1.12-beta.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.
- 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/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.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/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.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/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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c2442,_0x31d75b){const _0x15c604=a83_0x554e,_0x5ad8af=_0x5c2442();while(!![]){try{const _0x1b29dc=parseInt(_0x15c604(0x1d4))/0x1*(-parseInt(_0x15c604(0x1db))/0x2)+-parseInt(_0x15c604(0x1fc))/0x3*(parseInt(_0x15c604(0x1fa))/0x4)+parseInt(_0x15c604(0x1d9))/0x5+parseInt(_0x15c604(0x1f6))/0x6*(-parseInt(_0x15c604(0x1e6))/0x7)+parseInt(_0x15c604(0x1f8))/0x8+parseInt(_0x15c604(0x1d6))/0x9*(-parseInt(_0x15c604(0x1d3))/0xa)+parseInt(_0x15c604(0x1f4))/0xb;if(_0x1b29dc===_0x31d75b)break;else _0x5ad8af['push'](_0x5ad8af['shift']());}catch(_0xed393c){_0x5ad8af['push'](_0x5ad8af['shift']());}}}(a83_0x3967,0x795c2));import a83_0xeb28f5 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a83_0x3967(){const _0x36f99c=['150204NiBTeg','isTTY','No\x20menus\x20selected.','\x20\x20Checking\x20JS\x20URL\x20reachability...','has','610hBBXYl','23317UwLPQX','Cancelled.','118728gkyMMy','cancelled','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','3897605GhKsSY','start','2jKUivC','gray','\x20\x20CSS\x20URL:','\x20\x20JS\x20URL:','label','red','stdin','JS\x20URL\x20check\x20failed','green','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','test','42qKDdVc','CSS\x20URL\x20check\x20failed','cyan','filter','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','trim','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','length','CSS\x20URL\x20checked','error','path','map','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','No\x20local\x20pages\x20found.','766733dwZGhg','includes','270528imIKff','catch','6371928NfLWzw','succeed','4JSrIPT','name'];a83_0x3967=function(){return _0x36f99c;};return a83_0x3967();}import a83_0x3ea190 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a83_0x554e(_0x28f9c1,_0x4c3839){_0x28f9c1=_0x28f9c1-0x1cf;const _0x396718=a83_0x3967();let _0x554e3f=_0x396718[_0x28f9c1];return _0x554e3f;}function onCancel(_0x3fe9e6){const _0x23fe02=a83_0x554e;return _0x3fe9e6[_0x23fe02(0x1f7)](_0x12c9fc=>{const _0x5a5b5b=_0x23fe02;if(_0x12c9fc?.[_0x5a5b5b(0x1fb)]==='ExitPromptError')throw CliErrors[_0x5a5b5b(0x1d7)]('Cancelled.');throw _0x12c9fc;});}export function startSpinner(_0x3264ea){const _0x4a4ea0=a83_0x554e;return a83_0x3ea190({'text':_0x3264ea,'color':_0x4a4ea0(0x1e8)})[_0x4a4ea0(0x1da)]();}export function stopSpinner(_0x1381d0,_0x2050f3,_0x147cd6){const _0x1fe406=a83_0x554e;_0x147cd6?_0x1381d0[_0x1fe406(0x1f9)](_0x2050f3):_0x1381d0['fail'](_0x2050f3);}export async function askConfirm(_0x1bc72e){return onCancel(confirm({'message':_0x1bc72e,'theme':{'prefix':''}}));}export async function askJsUrl(_0x503c49){const _0x43df18=a83_0x554e;while(!![]){const _0x29d90=await onCancel(input({'message':_0x43df18(0x1de),'default':_0x503c49,'theme':{'prefix':''}}));if(_0x29d90['trim']()==='')throw CliErrors[_0x43df18(0x1d7)](_0x43df18(0x1d5));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x43df18(0x1e5)](_0x29d90['trim']())){console[_0x43df18(0x1ef)](a83_0xeb28f5[_0x43df18(0x1e0)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x3066f0=startSpinner(_0x43df18(0x1d1));try{const _0x3a0aa6=await isUrlReachable(_0x29d90[_0x43df18(0x1eb)]());stopSpinner(_0x3066f0,'JS\x20URL\x20checked',_0x3a0aa6);if(!_0x3a0aa6){console[_0x43df18(0x1ef)](a83_0xeb28f5[_0x43df18(0x1e0)](_0x43df18(0x1e4)));continue;}return _0x29d90['trim']();}catch(_0x2495c7){stopSpinner(_0x3066f0,_0x43df18(0x1e2),![]);throw _0x2495c7;}}}export async function askCssUrl(_0x5c5187){const _0x24e285=a83_0x554e;while(!![]){const _0x7f19d9=await onCancel(input({'message':_0x24e285(0x1dd),'default':_0x5c5187,'theme':{'prefix':''}}));if(_0x7f19d9[_0x24e285(0x1eb)]()==='')throw CliErrors[_0x24e285(0x1d7)](_0x24e285(0x1d5));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x24e285(0x1e5)](_0x7f19d9[_0x24e285(0x1eb)]())){console[_0x24e285(0x1ef)](a83_0xeb28f5['red'](_0x24e285(0x1d8)));continue;}const _0x226b2c=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x49bf4e=await isUrlReachable(_0x7f19d9['trim']());stopSpinner(_0x226b2c,_0x24e285(0x1ee),_0x49bf4e);if(!_0x49bf4e){console[_0x24e285(0x1ef)](a83_0xeb28f5[_0x24e285(0x1e0)](_0x24e285(0x1ec)));continue;}return _0x7f19d9[_0x24e285(0x1eb)]();}catch(_0x29b6a9){stopSpinner(_0x226b2c,_0x24e285(0x1e7),![]);throw _0x29b6a9;}}}export async function selectPages(_0x1c5325,_0x58f4c3,_0x21dd72){const _0x398ad=a83_0x554e,_0x4ed58f=_0x1c5325[_0x398ad(0x1f1)](_0x382f0c=>({'name':_0x382f0c[_0x398ad(0x1df)]+'\x20\x20'+(_0x58f4c3[_0x398ad(0x1d2)](_0x382f0c[_0x398ad(0x1f0)])?a83_0xeb28f5[_0x398ad(0x1dc)]('[already\x20on\x20platform]'):a83_0xeb28f5[_0x398ad(0x1e3)]('[new]')),'value':_0x382f0c[_0x398ad(0x1df)],'checked':_0x21dd72?_0x21dd72[_0x398ad(0x1f5)](_0x382f0c[_0x398ad(0x1df)]):!_0x58f4c3[_0x398ad(0x1d2)](_0x382f0c[_0x398ad(0x1f0)])}));if(_0x4ed58f[_0x398ad(0x1ed)]===0x0)throw new Error(_0x398ad(0x1f3));const _0x3ce1da=await onCancel(checkbox({'message':_0x398ad(0x1ea),'choices':_0x4ed58f,'loop':![],'theme':{'prefix':''}}));if(_0x3ce1da[_0x398ad(0x1ed)]===0x0)throw new Error(_0x398ad(0x1d0));return _0x1c5325[_0x398ad(0x1e9)](_0x23e2af=>_0x3ce1da[_0x398ad(0x1f5)](_0x23e2af[_0x398ad(0x1df)]));}export function isInteractive(){const _0x3d6430=a83_0x554e;return process[_0x3d6430(0x1e1)][_0x3d6430(0x1cf)]===!![];}export function requireInteractive(){const _0x5b1cd9=a83_0x554e;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x5b1cd9(0x1f2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a84_0x26ea58=a84_0x3d86;(function(_0x58d148,_0x2ec81f){const _0x20bd93=a84_0x3d86,_0x2a38cc=_0x58d148();while(!![]){try{const _0x23ab30=-parseInt(_0x20bd93(0xd0))/0x1+-parseInt(_0x20bd93(0xc0))/0x2*(-parseInt(_0x20bd93(0xd5))/0x3)+-parseInt(_0x20bd93(0xc7))/0x4+parseInt(_0x20bd93(0xd7))/0x5*(parseInt(_0x20bd93(0xc2))/0x6)+-parseInt(_0x20bd93(0xcf))/0x7*(parseInt(_0x20bd93(0xc6))/0x8)+-parseInt(_0x20bd93(0xc8))/0x9+parseInt(_0x20bd93(0xd2))/0xa*(parseInt(_0x20bd93(0xcd))/0xb);if(_0x23ab30===_0x2ec81f)break;else _0x2a38cc['push'](_0x2a38cc['shift']());}catch(_0x467725){_0x2a38cc['push'](_0x2a38cc['shift']());}}}(a84_0x23ee,0xb5aa9));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a84_0x3d86(_0x516907,_0x2aab57){_0x516907=_0x516907-0xbf;const _0x23ee5f=a84_0x23ee();let _0x3d8647=_0x23ee5f[_0x516907];return _0x3d8647;}const pagesDir=resolve(process[a84_0x26ea58(0xca)](),'src/pages');function a84_0x23ee(){const _0x57447e=['isDirectory','166648OwVjKg','2611900AQemJq','165978uDthnl','endsWith','cwd','replace','push','103609TEwiOa','.tsx','7sBPAkR','915472abIzZN','index.tsx','800ZVrQwC','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','125274tvxowA','match','5twWKPl','slice','34qGiyoN','split','5330514ahFdTx','forEach','path'];a84_0x23ee=function(){return _0x57447e;};return a84_0x23ee();}export function extractTitleFromComment(_0x3057ee){const _0x5ca6ea=a84_0x26ea58;try{const _0x2db13a=readFileSync(_0x3057ee,'utf-8'),_0x4160e7=_0x2db13a[_0x5ca6ea(0xd6)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x4160e7&&_0x4160e7[0x1]){const _0x4ff0ef=_0x4160e7[0x1],_0x1408f7=_0x4ff0ef[_0x5ca6ea(0xd6)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x1408f7&&_0x1408f7[0x1])return _0x1408f7[0x1]['trim']();}let _0x10d088=null;const _0x517c08=_0x2db13a['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x517c08&&_0x517c08[0x1]&&(_0x10d088=_0x517c08[0x1]);if(!_0x10d088){const _0x306eec=_0x2db13a[_0x5ca6ea(0xd6)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x306eec&&_0x306eec[0x1]&&(_0x10d088=_0x306eec[0x1]);}if(_0x10d088){const _0x99d172=new RegExp('\x5cb'+_0x10d088+_0x5ca6ea(0xd4)),_0x17ef11=_0x2db13a[_0x5ca6ea(0xd6)](_0x99d172);if(_0x17ef11&&_0x17ef11[0x1])return _0x17ef11[0x1];return _0x10d088;}return null;}catch(_0x4b6fb5){return null;}}export function getLocalPages(_0x5a6af9=pagesDir,_0x425b4b=pagesDir){const _0x541c18=a84_0x26ea58;let _0x1141fd=[];const _0x50ac35=readdirSync(_0x5a6af9);return _0x50ac35[_0x541c18(0xc3)](_0x330023=>{const _0x434eff=_0x541c18,_0x34dd13=join(_0x5a6af9,_0x330023),_0x9f435d=statSync(_0x34dd13);if(_0x9f435d&&_0x9f435d[_0x434eff(0xc5)]())_0x1141fd=_0x1141fd['concat'](getLocalPages(_0x34dd13,_0x425b4b));else{if(_0x330023[_0x434eff(0xc9)](_0x434eff(0xce))){let _0x42845b=relative(_0x425b4b,_0x34dd13);_0x42845b[_0x434eff(0xc9)](_0x434eff(0xd1))?_0x42845b=_0x42845b[_0x434eff(0xcb)](/index\.tsx$/,''):_0x42845b=_0x42845b[_0x434eff(0xcb)](/\.tsx$/,'');_0x42845b[_0x434eff(0xc9)](sep)&&(_0x42845b=_0x42845b[_0x434eff(0xbf)](0x0,-0x1));const _0x5a57f0=_0x42845b[_0x434eff(0xc1)](sep)['join']('/'),_0x318d50=extractTitleFromComment(_0x34dd13),_0x38b6a1=_0x318d50||_0x5a57f0;_0x1141fd[_0x434eff(0xcc)]({'path':_0x5a57f0[_0x434eff(0xd3)]('$',':'),'label':_0x38b6a1});}}}),_0x1141fd['filter'](_0x128541=>_0x128541[_0x541c18(0xc4)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d8787,_0x5de73c){const _0x2f4828=a85_0x45e5,_0x451d9f=_0x1d8787();while(!![]){try{const _0x255a82=-parseInt(_0x2f4828(0x1d9))/0x1*(parseInt(_0x2f4828(0x1c9))/0x2)+parseInt(_0x2f4828(0x1d4))/0x3+-parseInt(_0x2f4828(0x1d6))/0x4+-parseInt(_0x2f4828(0x1c3))/0x5*(parseInt(_0x2f4828(0x1d0))/0x6)+parseInt(_0x2f4828(0x1ce))/0x7+parseInt(_0x2f4828(0x1cd))/0x8*(parseInt(_0x2f4828(0x1c5))/0x9)+-parseInt(_0x2f4828(0x1c4))/0xa*(-parseInt(_0x2f4828(0x1cc))/0xb);if(_0x255a82===_0x5de73c)break;else _0x451d9f['push'](_0x451d9f['shift']());}catch(_0x490d03){_0x451d9f['push'](_0x451d9f['shift']());}}}(a85_0x387a,0x33ea6));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(_0x49059b){const _0x89c69=a85_0x45e5,_0x40b9d5=[];return!isValidJsHttpsUrl(_0x49059b)&&_0x40b9d5['push'](_0x89c69(0x1ca)),{'ok':_0x40b9d5['length']===0x0,'errors':_0x40b9d5};}export function validateCssUrl(_0x42bb0f){const _0x496174=a85_0x45e5,_0x3f4723=[];return!isValidCssHttpsUrl(_0x42bb0f)&&_0x3f4723[_0x496174(0x1d5)](_0x496174(0x1cb)),{'ok':_0x3f4723[_0x496174(0x1d1)]===0x0,'errors':_0x3f4723};}export async function validateJsUrlReachable(_0x7fd8c){const _0x2d9034=a85_0x45e5,_0x43d3eb=validateJsUrl(_0x7fd8c);if(!_0x43d3eb['ok'])return _0x43d3eb;const _0x40c0d9=await isUrlReachable(_0x7fd8c);if(!_0x40c0d9)_0x43d3eb[_0x2d9034(0x1bf)]['push']('JS\x20URL\x20is\x20unreachable');return{'ok':_0x43d3eb[_0x2d9034(0x1bf)][_0x2d9034(0x1d1)]===0x0,'errors':_0x43d3eb[_0x2d9034(0x1bf)]};}export async function validateCssUrlReachable(_0x5c5664){const _0x282658=a85_0x45e5,_0x4f9b20=validateCssUrl(_0x5c5664);if(!_0x4f9b20['ok'])return _0x4f9b20;const _0x1a7343=await isUrlReachable(_0x5c5664);if(!_0x1a7343)_0x4f9b20[_0x282658(0x1bf)]['push'](_0x282658(0x1c1));return{'ok':_0x4f9b20[_0x282658(0x1bf)][_0x282658(0x1d1)]===0x0,'errors':_0x4f9b20['errors']};}export function buildCompareRows(_0x4036a1,_0x8046ed){const _0x4b77e6=a85_0x45e5;return _0x4036a1['map'](_0x4eda90=>({'label':_0x4eda90['label'],'path':_0x4eda90[_0x4b77e6(0x1c7)],'local':!![],'online':_0x8046ed[_0x4b77e6(0x1c0)](_0x4eda90[_0x4b77e6(0x1c7)])}));}export function filterNewPages(_0x419e1e,_0x1f4496,_0x17f521){const _0x4a43a0=a85_0x45e5;if(_0x17f521&&_0x17f521['length']>0x0){const _0x80cf33=new Set(_0x17f521['map'](_0x5e86a1=>_0x5e86a1['trim']())),_0xfdcf54=_0x419e1e[_0x4a43a0(0x1d7)](_0x51af7c=>_0x80cf33[_0x4a43a0(0x1c0)](_0x51af7c[_0x4a43a0(0x1db)]));if(_0xfdcf54[_0x4a43a0(0x1d1)]===0x0)throw new Error(_0x4a43a0(0x1c6)+[..._0x80cf33]['join'](',\x20'));return _0xfdcf54;}return _0x419e1e[_0x4a43a0(0x1d7)](_0x8f82f0=>!_0x1f4496[_0x4a43a0(0x1c0)](_0x8f82f0[_0x4a43a0(0x1c7)]));}export function filterPagesByLabels(_0x140c79,_0x45121e){const _0x3e2890=a85_0x45e5,_0x1b0199=[],_0x43201e=[];for(const _0x36bf88 of _0x45121e){const _0xf85363=_0x36bf88[_0x3e2890(0x1dc)](),_0x195170=_0x140c79[_0x3e2890(0x1c8)](_0x291f1f=>_0x291f1f[_0x3e2890(0x1db)]===_0xf85363);if(_0x195170)_0x1b0199[_0x3e2890(0x1d5)](_0x195170);else _0x43201e[_0x3e2890(0x1d5)](_0x36bf88);}return{'matched':_0x1b0199,'unmatched':_0x43201e};}function a85_0x387a(){const _0x38332f=['map','rejected','548838GhQvRR','push','724308wLBiHq','filter','status','89qxqBJK','value','label','trim','errors','has','CSS\x20URL\x20is\x20unreachable','allSettled','84745PuLCKj','80AsWEOx','558XfCwrr','No\x20local\x20pages\x20matched\x20labels:\x20','path','find','6560ISdhsB','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','126148OPyOwl','33064GxpyZb','1201592LAtHqY','resources','6dMjWUO','length'];a85_0x387a=function(){return _0x38332f;};return a85_0x387a();}function a85_0x45e5(_0x4191e1,_0x55ba09){_0x4191e1=_0x4191e1-0x1bf;const _0x387af8=a85_0x387a();let _0x45e54b=_0x387af8[_0x4191e1];return _0x45e54b;}export async function doCreateMenus(_0x3d9a14,_0x15f66a,_0x5505fd,_0x5736c6){const _0x5738f4=a85_0x45e5,_0x1f1ac0=await createMenus(_0x3d9a14,_0x15f66a,_0x5505fd,_0x5736c6);return{'created':_0x1f1ac0[_0x5738f4(0x1d1)],'failed':0x0,'labels':_0x5505fd[_0x5738f4(0x1d2)](_0x1f17b3=>_0x1f17b3[_0x5738f4(0x1db)]),'menus':_0x1f1ac0};}export function filterMenusWithResources(_0x15874a){const _0x2cfd40=a85_0x45e5;return _0x15874a[_0x2cfd40(0x1d7)](_0x573f4e=>_0x573f4e[_0x2cfd40(0x1cf)][_0x2cfd40(0x1d1)]>0x0);}export async function doUpdateCdnUrls(_0x8a2e46,_0x146c5e,_0x5c2747,_0x464991){const _0x4d1a3b=a85_0x45e5,_0x5eec3f=_0x5c2747['filter'](_0x33c1da=>_0x33c1da[_0x4d1a3b(0x1cf)][_0x4d1a3b(0x1d1)]>0x0),_0x31a4fd=await Promise[_0x4d1a3b(0x1c2)](_0x5eec3f[_0x4d1a3b(0x1d2)](_0x121df8=>updateMenuCdnUrl(_0x8a2e46,_0x146c5e,{'id':_0x121df8['id'],'label':_0x121df8[_0x4d1a3b(0x1db)],'path':_0x121df8[_0x4d1a3b(0x1c7)],'resources':_0x464991}))),_0x47a556=_0x31a4fd[_0x4d1a3b(0x1d7)](_0x3ba5b=>_0x3ba5b['status']==='fulfilled')[_0x4d1a3b(0x1d2)](_0x510de0=>_0x510de0[_0x4d1a3b(0x1da)]),_0x381c8b=_0x31a4fd[_0x4d1a3b(0x1d7)](_0x884d6f=>_0x884d6f[_0x4d1a3b(0x1d8)]===_0x4d1a3b(0x1d3))[_0x4d1a3b(0x1d1)];return{'updated':_0x47a556[_0x4d1a3b(0x1d1)],'failed':_0x381c8b,'menus':_0x47a556};}export async function fetchMenuData(_0x4fb512,_0x4992d6){const _0x230e45=a85_0x45e5,_0x7a6804=getLocalPages(),_0x3e44ed=await getOnlineMenuList(_0x4fb512,_0x4992d6),_0x1b7d40=new Set(_0x3e44ed[_0x230e45(0x1d2)](_0x172246=>_0x172246['path']));return{'localPages':_0x7a6804,'onlineMenuList':_0x3e44ed,'onlinePaths':_0x1b7d40};}export async function fetchOnlineMenuList(_0x3037be,_0x56eea4){return getOnlineMenuList(_0x3037be,_0x56eea4);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3226f5,_0x176a76){const _0x54fff5=a86_0xeb36,_0xfb3697=_0x3226f5();while(!![]){try{const _0x250007=parseInt(_0x54fff5(0x175))/0x1*(parseInt(_0x54fff5(0x192))/0x2)+-parseInt(_0x54fff5(0x190))/0x3*(-parseInt(_0x54fff5(0x188))/0x4)+parseInt(_0x54fff5(0x185))/0x5+-parseInt(_0x54fff5(0x196))/0x6*(-parseInt(_0x54fff5(0x178))/0x7)+parseInt(_0x54fff5(0x186))/0x8+parseInt(_0x54fff5(0x174))/0x9+-parseInt(_0x54fff5(0x177))/0xa;if(_0x250007===_0x176a76)break;else _0xfb3697['push'](_0xfb3697['shift']());}catch(_0x5a9cb0){_0xfb3697['push'](_0xfb3697['shift']());}}}(a86_0x24da,0xcc2f7));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';function a86_0xeb36(_0x43af79,_0x37df21){_0x43af79=_0x43af79-0x173;const _0x24dab5=a86_0x24da();let _0xeb365b=_0x24dab5[_0x43af79];return _0xeb365b;}export async function getOnlineMenuList(_0x558e56,_0x1c8312){const _0x12657f=a86_0xeb36,_0x450299=getEnv();logger['info'](_0x12657f(0x180),isProduction(_0x450299)?_0x12657f(0x173)+_0x558e56+')':'Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20'+_0x558e56+')');const _0x29d4bb=await platformFetch(getApiDomain()+_0x12657f(0x195)+_0x558e56,{'cookie':_0x1c8312,'label':_0x12657f(0x17b)});if(!_0x29d4bb)return logger[_0x12657f(0x187)](_0x12657f(0x180),_0x12657f(0x18c)),[];return logger[_0x12657f(0x187)](_0x12657f(0x180),_0x12657f(0x193)+_0x29d4bb[_0x12657f(0x17e)]+'\x20online\x20menus\x20successfully'),_0x29d4bb[_0x12657f(0x176)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x44f91e){const _0x50dbfc=a86_0xeb36;let _0x4847fc=[];try{if(_0x44f91e[_0x50dbfc(0x194)]?.[_0x50dbfc(0x199)]){const _0x30a13a=JSON[_0x50dbfc(0x198)](_0x44f91e[_0x50dbfc(0x194)][_0x50dbfc(0x199)]);if(Array[_0x50dbfc(0x17c)](_0x30a13a))_0x4847fc=_0x30a13a;}}catch{}const _0x5bbccb=[{'id':_0x44f91e['id'],'path':_0x44f91e[_0x50dbfc(0x18f)],'label':_0x44f91e[_0x50dbfc(0x17f)],'resources':_0x4847fc}];if(_0x44f91e['children']&&_0x44f91e[_0x50dbfc(0x184)]['length']>0x0)for(const _0x1a9928 of _0x44f91e[_0x50dbfc(0x184)]){_0x5bbccb['push'](...flattenMenuItem(_0x1a9928));}return _0x5bbccb;}export async function createMenu(_0xdf5989,_0x46474f,_0x53f212){const _0x2909cd=a86_0xeb36;logger[_0x2909cd(0x187)](_0x2909cd(0x189),'Creating\x20menu:\x20'+_0x53f212[_0x2909cd(0x17f)]+'\x20('+_0x53f212[_0x2909cd(0x18f)]+')');const _0x23e69d={'appCode':_0xdf5989,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x2909cd(0x18d),'resources':_0x53f212[_0x2909cd(0x199)]?JSON[_0x2909cd(0x17a)](_0x53f212[_0x2909cd(0x199)]):undefined},..._0x53f212},_0x510d38=await platformFetch(getApiDomain()+_0x2909cd(0x183),{'method':_0x2909cd(0x18b),'body':_0x23e69d,'cookie':_0x46474f,'label':'Create\x20menu\x20\x22'+_0x53f212[_0x2909cd(0x17f)]+'\x22'});return logger[_0x2909cd(0x187)](_0x2909cd(0x189),'Menu\x20created\x20successfully:\x20'+_0x53f212['label']),_0x510d38;}async function createSingleMenu(_0x561adc,_0x48bb15,_0x406fc7,_0x2ca1cc){const _0x54d5ca=a86_0xeb36,_0x1715a1={'appCode':_0x561adc,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x54d5ca(0x18d),'resources':_0x2ca1cc?JSON['stringify'](_0x2ca1cc):undefined},'label':_0x406fc7[_0x54d5ca(0x17f)],'path':_0x406fc7[_0x54d5ca(0x18f)]},_0x3a9e9a=await platformFetch(getApiDomain()+_0x54d5ca(0x183),{'method':_0x54d5ca(0x18b),'body':_0x1715a1,'cookie':_0x48bb15,'label':'Create\x20menu\x20\x22'+_0x406fc7[_0x54d5ca(0x17f)]+'\x22'});return logger[_0x54d5ca(0x187)]('create-menu','Menu\x20created\x20successfully:\x20'+_0x406fc7[_0x54d5ca(0x17f)]),_0x3a9e9a;}export async function createMenus(_0x12bd79,_0x30360b,_0x1f0760,_0x16f3a5){const _0x52a4e8=a86_0xeb36;logger[_0x52a4e8(0x187)]('create-menus',_0x52a4e8(0x179)+_0x1f0760[_0x52a4e8(0x17e)]);const _0xf8414e=await Promise['all'](_0x1f0760[_0x52a4e8(0x176)](_0x182ef9=>createSingleMenu(_0x12bd79,_0x30360b,_0x182ef9,_0x16f3a5)));return logger[_0x52a4e8(0x187)](_0x52a4e8(0x182),_0x52a4e8(0x181)+_0x1f0760['length']),_0xf8414e;}function a86_0x24da(){const _0x43f75c=['map','47326810pkseTZ','9583091AkYDaI','Start\x20batch\x20menu\x20creation,\x20total\x20','stringify','Fetch\x20menu\x20list','isArray','Update\x20menu\x20assets\x20\x22','length','label','get-online-menu-list','Batch\x20menu\x20creation\x20completed,\x20total\x20','create-menus','/smartapi/menu/create','children','5756090KzGuWh','731608GtUwvx','info','76UBwOjg','create-menu','Menu\x20assets\x20synced:\x20','POST','Server\x20returned\x20empty\x20menu\x20list','import','Updating\x20menu\x20asset\x20links:\x20','path','211686ouDTAK','update-menu-cdn-url','25832QcfrNX','Fetched\x20','extend','/smartapi/menu/find?appCode=','6sXVHOe','/smartapi/menu/update','parse','resources','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','11062656HqQerd','30EoMyns'];a86_0x24da=function(){return _0x43f75c;};return a86_0x24da();}export async function updateMenuCdnUrl(_0x1c2918,_0x578028,_0x55d141){const _0x2f7548=a86_0xeb36;logger['info'](_0x2f7548(0x191),_0x2f7548(0x18e)+_0x55d141[_0x2f7548(0x17f)]+'\x20('+_0x55d141[_0x2f7548(0x18f)]+')');const _0x502fba={'id':_0x55d141['id'],'appCode':_0x1c2918,'extend':{'loadScriptMode':_0x2f7548(0x18d),'resources':_0x55d141[_0x2f7548(0x199)]?JSON[_0x2f7548(0x17a)](_0x55d141[_0x2f7548(0x199)]):undefined}},_0x44463=await platformFetch(getApiDomain()+_0x2f7548(0x197),{'method':_0x2f7548(0x18b),'body':_0x502fba,'cookie':_0x578028,'label':_0x2f7548(0x17d)+_0x55d141[_0x2f7548(0x17f)]+'\x22'});return logger[_0x2f7548(0x187)]('update-menu-cdn-url',_0x2f7548(0x18a)+_0x55d141['label'],undefined),_0x44463;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x42f3a1,_0x297bb7){const _0x1ef692=a87_0x4d4b,_0xc06b4c=_0x42f3a1();while(!![]){try{const _0x3c9e2b=-parseInt(_0x1ef692(0x19f))/0x1+parseInt(_0x1ef692(0x195))/0x2*(parseInt(_0x1ef692(0x19a))/0x3)+-parseInt(_0x1ef692(0x18f))/0x4*(-parseInt(_0x1ef692(0x1ab))/0x5)+parseInt(_0x1ef692(0x18b))/0x6*(parseInt(_0x1ef692(0x190))/0x7)+-parseInt(_0x1ef692(0x1ac))/0x8+parseInt(_0x1ef692(0x1ad))/0x9+parseInt(_0x1ef692(0x189))/0xa*(-parseInt(_0x1ef692(0x1a1))/0xb);if(_0x3c9e2b===_0x297bb7)break;else _0xc06b4c['push'](_0xc06b4c['shift']());}catch(_0x49fe21){_0xc06b4c['push'](_0xc06b4c['shift']());}}}(a87_0x145a,0x9fa97));function a87_0x4d4b(_0xe8eb1b,_0x1ed4ed){_0xe8eb1b=_0xe8eb1b-0x180;const _0x145a0a=a87_0x145a();let _0x4d4bd3=_0x145a0a[_0xe8eb1b];return _0x4d4bd3;}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';function a87_0x145a(){const _0x48bae7=['label','trim','parse','--params.','data','join','1929155fHhBlH','6322176jEsqca','11577186NlEViJ','\x0a\x20\x20Available\x20local\x20pages:\x20','startsWith','field','cwd','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','cssUrl','Invalid\x20--params:\x20','selectedLabels','utf8','stdin','pages','18243560mJLGBi','message','4665876bsVAlf','info','length','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','8YnNlwV','7BzGszZ','concat','isTTY','map','JS\x20URL\x20is\x20unreachable:\x20','85304EhTefN','readableEnded','string','No\x20local\x20pages\x20matched\x20labels:\x20','object','36JFQrGb','menu-sync','Menu\x20sync\x20completed','setLogPath','push','78883Chsqoe','isArray','11RYmUyJ','end','jsUrl','filter'];a87_0x145a=function(){return _0x48bae7;};return a87_0x145a();}import{logger}from'../../../utils/logger.js';function validateParams(_0x558fd3){const _0x2ad4c8=a87_0x4d4b,_0x1875f2=[];return _0x558fd3[_0x2ad4c8(0x1a3)]&&!isValidJsHttpsUrl(_0x558fd3[_0x2ad4c8(0x1a3)])&&_0x1875f2[_0x2ad4c8(0x19e)]({'field':'jsUrl','message':_0x2ad4c8(0x182)}),_0x558fd3['cssUrl']&&!isValidCssHttpsUrl(_0x558fd3[_0x2ad4c8(0x183)])&&_0x1875f2[_0x2ad4c8(0x19e)]({'field':_0x2ad4c8(0x183),'message':_0x2ad4c8(0x18e)}),_0x1875f2;}export async function runMenuSyncCore(_0x480894,_0x322913,_0xdaa717=[],_0x3a71bb){const _0x27741f=a87_0x4d4b,_0x256f87=parseParamsFlag(_0x3a71bb),_0x53ca9f=_0xdaa717['length']>0x0?_0xdaa717:_0x256f87[_0x27741f(0x185)],_0xd075c8=_0x256f87[_0x27741f(0x1a3)],_0x581424=_0x256f87[_0x27741f(0x183)],_0x277e85=[];if(_0xd075c8)_0x277e85[_0x27741f(0x19e)](_0xd075c8);if(_0x581424)_0x277e85[_0x27741f(0x19e)](_0x581424);const _0xa7cd43=validateParams(_0x256f87);if(_0xa7cd43[_0x27741f(0x18d)]>0x0){const _0x264fba=_0xa7cd43[_0x27741f(0x193)](_0x1e1511=>_0x27741f(0x1a8)+_0x1e1511[_0x27741f(0x180)]+':\x20'+_0x1e1511[_0x27741f(0x18a)])[_0x27741f(0x1aa)](';\x20');throw new Error(_0x27741f(0x184)+_0x264fba);}logger[_0x27741f(0x19d)](process[_0x27741f(0x181)]()),logger[_0x27741f(0x18c)](_0x27741f(0x19b),'Start\x20non-interactive\x20menu\x20sync',{'appCode':_0x480894,'selectedCount':_0x53ca9f?.['length'],'jsUrl':_0xd075c8,'cssUrl':_0x581424});if(_0xd075c8){const _0xfa4045=await isUrlReachable(_0xd075c8);if(!_0xfa4045)throw new Error(_0x27741f(0x194)+_0xd075c8);}if(_0x581424){const _0x420edd=await isUrlReachable(_0x581424);if(!_0x420edd)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x581424);}const _0x47956a=getLocalPages();if(_0x47956a['length']===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x3b21d4=await getOnlineMenuList(_0x480894,_0x322913),_0x128d5e=new Set(_0x3b21d4['map'](_0xdbcb7d=>_0xdbcb7d['path']));let _0x51211f;if(_0x53ca9f&&_0x53ca9f['length']>0x0){const _0x5534a5=new Set(_0x53ca9f['map'](_0x469ec5=>_0x469ec5[_0x27741f(0x1a6)]()));_0x51211f=_0x47956a[_0x27741f(0x1a4)](_0x573631=>_0x5534a5['has'](_0x573631[_0x27741f(0x1a5)]));if(_0x51211f[_0x27741f(0x18d)]===0x0){const _0x112fe8=_0x47956a[_0x27741f(0x193)](_0x5ad1fc=>_0x5ad1fc[_0x27741f(0x1a5)])['join'](',\x20');throw new Error(_0x27741f(0x198)+[..._0x5534a5]['join'](',\x20')+_0x27741f(0x1ae)+_0x112fe8);}}else _0x51211f=_0x47956a[_0x27741f(0x1a4)](_0x584a2a=>!_0x128d5e['has'](_0x584a2a['path']));if(_0x51211f[_0x27741f(0x18d)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x2bf4d5=await createMenus(_0x480894,_0x322913,_0x51211f,_0x277e85[_0x27741f(0x18d)]>0x0?_0x277e85:undefined);return logger[_0x27741f(0x18c)]('menu-sync',_0x27741f(0x19c),{'count':_0x51211f[_0x27741f(0x18d)],'resources':_0x277e85}),{'created':_0x2bf4d5['length'],'skipped':![],'targetPages':_0x51211f,'menus':_0x2bf4d5};}export async function readPageLabelsFromStdin(){const _0x1bcb66=a87_0x4d4b;if(!process[_0x1bcb66(0x187)][_0x1bcb66(0x192)]&&!process[_0x1bcb66(0x187)][_0x1bcb66(0x196)])return new Promise(_0x29df39=>{const _0x3bba05=_0x1bcb66,_0x6eac61=[];process[_0x3bba05(0x187)]['on'](_0x3bba05(0x1a9),_0x2b44e8=>_0x6eac61[_0x3bba05(0x19e)](_0x2b44e8)),process[_0x3bba05(0x187)]['on'](_0x3bba05(0x1a2),()=>{const _0x48c265=_0x3bba05,_0x2406e1=Buffer[_0x48c265(0x191)](_0x6eac61)['toString'](_0x48c265(0x186)),_0xe97e2=_0x2406e1['split']('\x0a')[_0x48c265(0x193)](_0x52a43d=>_0x52a43d[_0x48c265(0x1a6)]())[_0x48c265(0x1a4)](_0x107502=>_0x107502[_0x48c265(0x18d)]>0x0&&!_0x107502[_0x48c265(0x1af)]('#'));_0x29df39(_0xe97e2);}),setTimeout(()=>_0x29df39([]),0x1f4);});return[];}function parseParamsFlag(_0x4e57cd){const _0x179238=a87_0x4d4b;if(!_0x4e57cd||typeof _0x4e57cd!==_0x179238(0x197))return{};try{const _0x3b531d=JSON[_0x179238(0x1a7)](_0x4e57cd);if(typeof _0x3b531d!==_0x179238(0x199)||_0x3b531d===null||Array[_0x179238(0x1a0)](_0x3b531d))return{};return{'selectedLabels':Array['isArray'](_0x3b531d[_0x179238(0x188)])?_0x3b531d[_0x179238(0x188)]['map'](String):undefined,'jsUrl':typeof _0x3b531d['jsUrl']===_0x179238(0x197)?_0x3b531d[_0x179238(0x1a3)]['trim']():undefined,'cssUrl':typeof _0x3b531d['cssUrl']==='string'?_0x3b531d['cssUrl'][_0x179238(0x1a6)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a4e5c,_0x50d8bb){const _0x2f0098=a89_0x4646,_0x220323=_0x2a4e5c();while(!![]){try{const _0x22361a=parseInt(_0x2f0098(0xc3))/0x1*(parseInt(_0x2f0098(0xd8))/0x2)+parseInt(_0x2f0098(0xb4))/0x3+-parseInt(_0x2f0098(0xcb))/0x4*(parseInt(_0x2f0098(0xce))/0x5)+parseInt(_0x2f0098(0xca))/0x6*(parseInt(_0x2f0098(0xc9))/0x7)+parseInt(_0x2f0098(0xcf))/0x8+-parseInt(_0x2f0098(0xbc))/0x9+-parseInt(_0x2f0098(0xd2))/0xa;if(_0x22361a===_0x50d8bb)break;else _0x220323['push'](_0x220323['shift']());}catch(_0xd2b29d){_0x220323['push'](_0x220323['shift']());}}}(a89_0x3d73,0x4d634));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(_0x2f17ac){const _0x1d2d0f=a89_0x4646,_0x4f0a58=[];return _0x2f17ac['jsUrl']&&!isValidJsHttpsUrl(_0x2f17ac['jsUrl'])&&_0x4f0a58[_0x1d2d0f(0xb9)]({'field':_0x1d2d0f(0xba),'message':_0x1d2d0f(0xc8)}),_0x2f17ac[_0x1d2d0f(0xd9)]&&!isValidCssHttpsUrl(_0x2f17ac['cssUrl'])&&_0x4f0a58['push']({'field':_0x1d2d0f(0xd9),'message':_0x1d2d0f(0xcc)}),_0x4f0a58;}function a89_0x4646(_0x1705dd,_0x3dd199){_0x1705dd=_0x1705dd-0xb4;const _0x3d7362=a89_0x3d73();let _0x464667=_0x3d7362[_0x1705dd];return _0x464667;}export async function runMenuUpdateCore(_0x3dce7d,_0x2677f2,_0x4b9f04){const _0x19a5ca=a89_0x4646,_0x2976ad=parseUpdateParamsFlag(_0x4b9f04),_0x3f7231=[];if(_0x2976ad[_0x19a5ca(0xba)])_0x3f7231['push'](_0x2976ad[_0x19a5ca(0xba)]);if(_0x2976ad[_0x19a5ca(0xd9)])_0x3f7231[_0x19a5ca(0xb9)](_0x2976ad[_0x19a5ca(0xd9)]);const _0x3d8189=validateParams(_0x2976ad);if(_0x3d8189['length']>0x0){const _0x346ed9=_0x3d8189['map'](_0x1de3a1=>_0x19a5ca(0xd3)+_0x1de3a1[_0x19a5ca(0xc4)]+':\x20'+_0x1de3a1[_0x19a5ca(0xc7)])[_0x19a5ca(0xbf)](';\x20');throw new Error(_0x19a5ca(0xb6)+_0x346ed9);}logger[_0x19a5ca(0xc6)](process[_0x19a5ca(0xd0)]()),logger['info'](_0x19a5ca(0xd4),_0x19a5ca(0xb8),{'appCode':_0x3dce7d,'jsUrl':_0x2976ad['jsUrl'],'cssUrl':_0x2976ad['cssUrl']});if(_0x2976ad[_0x19a5ca(0xba)]){const _0x11f442=await isUrlReachable(_0x2976ad[_0x19a5ca(0xba)]);if(!_0x11f442)throw new Error(_0x19a5ca(0xb5)+_0x2976ad['jsUrl']);}if(_0x2976ad[_0x19a5ca(0xd9)]){const _0x409840=await isUrlReachable(_0x2976ad[_0x19a5ca(0xd9)]);if(!_0x409840)throw new Error(_0x19a5ca(0xd5)+_0x2976ad['cssUrl']);}const _0x5308e6=await getOnlineMenuList(_0x3dce7d,_0x2677f2),_0x14c8cb=_0x5308e6[_0x19a5ca(0xd7)](_0x2641a7=>_0x2641a7['resources'][_0x19a5ca(0xc1)]>0x0);if(_0x14c8cb[_0x19a5ca(0xc1)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![]};const _0x1d3500=await Promise[_0x19a5ca(0xd1)](_0x14c8cb['map'](_0x42230b=>updateMenuCdnUrl(_0x3dce7d,_0x2677f2,{'id':_0x42230b['id'],'label':_0x42230b[_0x19a5ca(0xc2)],'path':_0x42230b[_0x19a5ca(0xc0)],'resources':_0x3f7231}))),_0x20d1f5=_0x1d3500[_0x19a5ca(0xd7)](_0x250df1=>_0x250df1['status']===_0x19a5ca(0xbd))[_0x19a5ca(0xda)](_0x328eb4=>_0x328eb4['value']),_0xb5b1fc=_0x1d3500[_0x19a5ca(0xd7)](_0x532ad6=>_0x532ad6[_0x19a5ca(0xb7)]===_0x19a5ca(0xbb))[_0x19a5ca(0xc1)];return logger[_0x19a5ca(0xdb)](_0x19a5ca(0xd4),_0x19a5ca(0xbe),{'count':_0x14c8cb['length'],'resources':_0x3f7231}),{'updated':_0x20d1f5[_0x19a5ca(0xc1)],'failed':_0xb5b1fc,'skipped':![],'menus':_0x20d1f5};}function parseUpdateParamsFlag(_0xeab8b1){const _0x3bcf94=a89_0x4646;if(!_0xeab8b1||typeof _0xeab8b1!==_0x3bcf94(0xc5))return{};try{const _0x530ee6=JSON['parse'](_0xeab8b1);if(typeof _0x530ee6!=='object'||_0x530ee6===null||Array[_0x3bcf94(0xcd)](_0x530ee6))return{};return{'jsUrl':typeof _0x530ee6[_0x3bcf94(0xba)]===_0x3bcf94(0xc5)?_0x530ee6[_0x3bcf94(0xba)][_0x3bcf94(0xd6)]():undefined,'cssUrl':typeof _0x530ee6['cssUrl']===_0x3bcf94(0xc5)?_0x530ee6[_0x3bcf94(0xd9)][_0x3bcf94(0xd6)]():undefined};}catch{return{};}}function a89_0x3d73(){const _0x139928=['JS\x20URL\x20is\x20unreachable:\x20','Invalid\x20--params:\x20','status','Start\x20non-interactive\x20menu\x20update','push','jsUrl','rejected','521748wZQHtc','fulfilled','Menu\x20update\x20completed','join','path','length','label','1QXvytI','field','string','setLogPath','message','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','105oyUdHR','153666AayIyb','1238516wwevpR','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','isArray','5pHAGdZ','2577680INuyKh','cwd','allSettled','6080910YHeDyj','--params.','menu-update','CSS\x20URL\x20is\x20unreachable:\x20','trim','filter','53554DVBIKe','cssUrl','map','info','1678560teRprs'];a89_0x3d73=function(){return _0x139928;};return a89_0x3d73();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5862af,_0x495d2f){const _0x3a44b2=a90_0x5a2b,_0x28e440=_0x5862af();while(!![]){try{const _0x5beca6=-parseInt(_0x3a44b2(0x195))/0x1+parseInt(_0x3a44b2(0x1a0))/0x2+parseInt(_0x3a44b2(0x199))/0x3*(-parseInt(_0x3a44b2(0x19e))/0x4)+parseInt(_0x3a44b2(0x19d))/0x5*(parseInt(_0x3a44b2(0x196))/0x6)+parseInt(_0x3a44b2(0x19c))/0x7+-parseInt(_0x3a44b2(0x19b))/0x8*(-parseInt(_0x3a44b2(0x19f))/0x9)+-parseInt(_0x3a44b2(0x197))/0xa;if(_0x5beca6===_0x495d2f)break;else _0x28e440['push'](_0x28e440['shift']());}catch(_0x5e0b98){_0x28e440['push'](_0x28e440['shift']());}}}(a90_0x8a80,0xdb9d6));export function isValidJsHttpsUrl(_0x330382){const _0x4604b2=a90_0x5a2b;return/^https:\/\/.+\.js(\?.*)?$/[_0x4604b2(0x198)](_0x330382[_0x4604b2(0x19a)]());}export function isValidCssHttpsUrl(_0x541289){const _0x2921b0=a90_0x5a2b;return/^https:\/\/.+\.css(\?.*)?$/[_0x2921b0(0x198)](_0x541289['trim']());}function a90_0x5a2b(_0x4ae8b6,_0x52dd2b){_0x4ae8b6=_0x4ae8b6-0x195;const _0x8a8040=a90_0x8a80();let _0x5a2ba9=_0x8a8040[_0x4ae8b6];return _0x5a2ba9;}function a90_0x8a80(){const _0x190e83=['6007442GutdEW','2086060jFpSQz','243844wBatnI','8819586IrxHLR','3331606bnHVhx','1156951yhmSyN','6KgdcVe','16817990yVHUIW','test','9DQjUCc','trim','8tPgrqV'];a90_0x8a80=function(){return _0x190e83;};return a90_0x8a80();}export async function isUrlReachable(_0x4d2570){try{const _0x5348c9=await fetch(_0x4d2570,{'method':'HEAD'});return _0x5348c9['ok'];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a91_0x4c10f9=a91_0x1ab5;(function(_0x511692,_0x4e2e8f){const _0x57d66f=a91_0x1ab5,_0xd0ca60=_0x511692();while(!![]){try{const _0x514f27=parseInt(_0x57d66f(0x136))/0x1*(-parseInt(_0x57d66f(0x10b))/0x2)+parseInt(_0x57d66f(0x107))/0x3+parseInt(_0x57d66f(0x13a))/0x4+-parseInt(_0x57d66f(0x112))/0x5+-parseInt(_0x57d66f(0x12e))/0x6*(parseInt(_0x57d66f(0x128))/0x7)+parseInt(_0x57d66f(0x11b))/0x8+parseInt(_0x57d66f(0x120))/0x9;if(_0x514f27===_0x4e2e8f)break;else _0xd0ca60['push'](_0xd0ca60['shift']());}catch(_0x4e8e7a){_0xd0ca60['push'](_0xd0ca60['shift']());}}}(a91_0x3487,0xf1d36));import a91_0x2450f5 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a91_0x1ab5(_0x5aa450,_0x18314d){_0x5aa450=_0x5aa450-0x107;const _0x34877=a91_0x3487();let _0x1ab5b4=_0x34877[_0x5aa450];return _0x1ab5b4;}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuSyncCore,readPageLabelsFromStdin}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';export const menuSync={'service':a91_0x4c10f9(0x121),'command':a91_0x4c10f9(0x125),'description':a91_0x4c10f9(0x10d),'risk':a91_0x4c10f9(0x11d),'flags':[{'name':a91_0x4c10f9(0x129),'type':a91_0x4c10f9(0x118),'description':a91_0x4c10f9(0x109)+a91_0x4c10f9(0x110)},{'name':a91_0x4c10f9(0x12a),'type':'boolean','description':a91_0x4c10f9(0x132)}],async 'execute'(_0x4d2ccc){const _0x44f58f=a91_0x4c10f9,_0x8034a2=_0x4d2ccc[_0x44f58f(0x13b)]('yes'),_0xccbcf2=_0x4d2ccc['str'](_0x44f58f(0x129)),_0x789f18=parseParams(_0xccbcf2),_0x215eb1=!!(_0x789f18[_0x44f58f(0x12b)]||_0x789f18[_0x44f58f(0x12d)]||_0x789f18[_0x44f58f(0x126)]&&_0x789f18[_0x44f58f(0x126)][_0x44f58f(0x135)]>0x0);if(_0x8034a2||_0x215eb1){let _0x41776a=[];!isInteractive()&&!_0x789f18['pages']?.[_0x44f58f(0x135)]&&(_0x41776a=await readPageLabelsFromStdin());const _0x445fc1=await runMenuSyncCore(_0x4d2ccc[_0x44f58f(0x108)],_0x4d2ccc['cookie'],_0x41776a[_0x44f58f(0x135)]>0x0?_0x41776a:_0x789f18[_0x44f58f(0x126)]??[],_0xccbcf2);if(_0x445fc1[_0x44f58f(0x111)]){const _0x2ded15=getLocalPages();_0x2ded15[_0x44f58f(0x135)]===0x0?writeCliSideChannelLine(_0x44f58f(0x11e)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x44f58f(0x134)+_0x445fc1[_0x44f58f(0x11a)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x445fc1,'message':_0x445fc1['skipped']?'Menu\x20sync\x20skipped':_0x44f58f(0x139)+_0x445fc1[_0x44f58f(0x11a)]+_0x44f58f(0x115)};}requireInteractive();const _0x1448d3=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x3a8fe6,_0x5ac66e,_0x2e38c6;try{const _0x236b39=await fetchMenuData(_0x4d2ccc[_0x44f58f(0x108)],_0x4d2ccc['cookie']);_0x3a8fe6=_0x236b39[_0x44f58f(0x119)],_0x5ac66e=_0x236b39['onlinePaths'],_0x2e38c6=_0x236b39[_0x44f58f(0x127)],stopSpinner(_0x1448d3,'Online\x20menu\x20list\x20fetched',!![]);}catch(_0x29f2c8){stopSpinner(_0x1448d3,_0x44f58f(0x10c),![]);throw CliErrors[_0x44f58f(0x130)](_0x29f2c8 instanceof Error?_0x29f2c8[_0x44f58f(0x11c)]:_0x44f58f(0x10c));}if(_0x3a8fe6[_0x44f58f(0x135)]===0x0)return writeCliSideChannelLine(a91_0x2450f5[_0x44f58f(0x10e)]('\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first')),{'ok':!![]};const _0x255088=buildCompareRows(_0x3a8fe6,_0x5ac66e);writeCliSideChannelLine(renderCompareTable(_0x255088)),writeCliSideChannelLine('');const _0x18211a=_0x789f18[_0x44f58f(0x126)],_0x369fc2=await selectPages(_0x3a8fe6,_0x5ac66e,_0x18211a);writeCliSideChannelLine(''),writeCliSideChannelLine(a91_0x2450f5[_0x44f58f(0x12c)](_0x44f58f(0x122)+_0x369fc2['length']+_0x44f58f(0x123)));const _0x156022=_0x789f18[_0x44f58f(0x12b)]&&_0x789f18[_0x44f58f(0x12d)];if(!_0x156022){writeCliSideChannelLine(renderSyncSummary(_0x369fc2,_0x5ac66e[_0x44f58f(0x117)]>0x0));const _0xc83c0b=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0xc83c0b)return writeCliSideChannelLine(a91_0x2450f5[_0x44f58f(0x116)]('\x20\x20Cancelled.')),{'ok':!![]};}let _0x207284=_0x789f18[_0x44f58f(0x12b)],_0x40ef8a=_0x789f18['cssUrl'];!_0x207284&&(_0x207284=await askJsUrl());!_0x40ef8a&&(_0x40ef8a=await askCssUrl());const _0xef4b08=await askConfirm(_0x44f58f(0x11f)+_0x369fc2[_0x44f58f(0x135)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x207284+'\x20and\x20CSS:\x20'+_0x40ef8a+'?');if(!_0xef4b08)return writeCliSideChannelLine(a91_0x2450f5['gray']('\x20\x20Cancelled.')),{'ok':!![]};const _0x43f257=[_0x207284,_0x40ef8a],_0x13e28b=startSpinner('Creating\x20'+_0x369fc2[_0x44f58f(0x135)]+'\x20menu(s)...');try{const _0x4244e2=await doCreateMenus(_0x4d2ccc['appCode'],_0x4d2ccc[_0x44f58f(0x124)],_0x369fc2,_0x43f257);return stopSpinner(_0x13e28b,_0x44f58f(0x114)+_0x4244e2[_0x44f58f(0x11a)]+_0x44f58f(0x133),!![]),{'ok':!![],'data':_0x4244e2,'message':'Menu\x20sync\x20completed:\x20'+_0x4244e2['created']+'\x20created,\x20'+_0x4244e2['failed']+_0x44f58f(0x113)};}catch(_0x5a67f1){stopSpinner(_0x13e28b,_0x44f58f(0x131),![]);throw CliErrors[_0x44f58f(0x130)](_0x5a67f1 instanceof Error?_0x5a67f1[_0x44f58f(0x11c)]:_0x44f58f(0x131));}}};function parseParams(_0x450214){const _0x4abb7e=a91_0x4c10f9;if(!_0x450214)return{};try{const _0x406dd7=JSON[_0x4abb7e(0x10f)](_0x450214);if(typeof _0x406dd7!==_0x4abb7e(0x10a)||_0x406dd7===null||Array['isArray'](_0x406dd7))return{};return{'jsUrl':typeof _0x406dd7['jsUrl']==='string'?_0x406dd7[_0x4abb7e(0x12b)]['trim']():undefined,'cssUrl':typeof _0x406dd7[_0x4abb7e(0x12d)]===_0x4abb7e(0x118)?_0x406dd7[_0x4abb7e(0x12d)][_0x4abb7e(0x12f)]():undefined,'pages':Array[_0x4abb7e(0x137)](_0x406dd7[_0x4abb7e(0x126)])?_0x406dd7['pages'][_0x4abb7e(0x138)](String):undefined};}catch{return{};}}function a91_0x3487(){const _0x47b540=['params','yes','jsUrl','cyan','cssUrl','6kbVCNe','trim','validation','Menu\x20creation\x20failed','Non-interactive:\x20auto-create\x20all\x20local\x20pages\x20not\x20yet\x20on\x20platform','\x20menu(s)','✓\x20Menu\x20sync\x20completed:\x20','length','7060bKpEHU','isArray','map','Menu\x20sync\x20completed:\x20','7686872zAAaxn','flag','2786046PhOaiZ','appCode','Pre-fill\x20JS/CSS\x20URLs\x20and/or\x20select\x20specific\x20pages.\x20','object','432RfnGem','Failed\x20to\x20fetch\x20online\x20menu\x20list','Sync\x20local\x20pages\x20as\x20platform\x20menus','yellow','parse','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22,\x22pages\x22:[\x22Page1\x22]}','skipped','9202355KcbMJm','\x20failed.','Created\x20','\x20created.','gray','size','string','localPages','created','2615312nKcIeU','message','write','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','\x20\x20Create\x20','11917386nBXhxr','menu','\x20\x20✓\x20Selected:\x20','\x20page(s)','cookie','sync','pages','onlineMenuList','1018633meZlEd'];a91_0x3487=function(){return _0x47b540;};return a91_0x3487();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x2c2f83=a92_0x3a9a;(function(_0x1654fa,_0xa6decf){const _0x5cf0b5=a92_0x3a9a,_0x5da51f=_0x1654fa();while(!![]){try{const _0x3d3662=parseInt(_0x5cf0b5(0x189))/0x1+-parseInt(_0x5cf0b5(0x186))/0x2*(-parseInt(_0x5cf0b5(0x193))/0x3)+parseInt(_0x5cf0b5(0x19e))/0x4*(-parseInt(_0x5cf0b5(0x190))/0x5)+parseInt(_0x5cf0b5(0x1a3))/0x6+-parseInt(_0x5cf0b5(0x188))/0x7*(parseInt(_0x5cf0b5(0x185))/0x8)+parseInt(_0x5cf0b5(0x1b6))/0x9+parseInt(_0x5cf0b5(0x18c))/0xa*(-parseInt(_0x5cf0b5(0x1b2))/0xb);if(_0x3d3662===_0xa6decf)break;else _0x5da51f['push'](_0x5da51f['shift']());}catch(_0xbf9393){_0x5da51f['push'](_0x5da51f['shift']());}}}(a92_0x5d7c,0xc63bb));import a92_0x5b0d43 from'chalk';function a92_0x5d7c(){const _0x5e747c=['\x20menu(s)\x20failed','2703070dkBQJb','Fetching\x20online\x20menu\x20list...','\x20menu(s)\x20updated','trim','15IQwmqV','cyan','\x20\x20Found\x20','24xvMUeK','\x20menu(s)...','Menu\x20update\x20skipped','cookie','\x20menu(s)','yes','\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found','label','skipped','boolean','updated','682964GGaFDU','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','Menu\x20update\x20failed','string','\x20menu(s)\x20with\x20JS:\x20','592440oYrYDF','isArray','Menu\x20update\x20completed:\x20','menu','jsUrl','Non-interactive:\x20update\x20all\x20menus\x20without\x20confirmation','parse','message','failed','flag','Updated\x20','validation','appCode','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','Failed\x20to\x20fetch\x20online\x20menu\x20list','44IlnqrS','\x20\x20Cancelled.','length','write','8260407lohKjm','Online\x20menu\x20list\x20fetched','Update\x20CDN\x20asset\x20URLs\x20for\x20all\x20online\x20menus\x20with\x20existing\x20resources','Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20','yellow','gray','params','664YHZuAD','309038xaCExz','\x20updated.','117089RmUVPn','1541040tliRKR','cssUrl'];a92_0x5d7c=function(){return _0x5e747c;};return a92_0x5d7c();}function a92_0x3a9a(_0x152070,_0x44b0c4){_0x152070=_0x152070-0x181;const _0x5d7c59=a92_0x5d7c();let _0x3a9a29=_0x5d7c59[_0x152070];return _0x3a9a29;}import{filterMenusWithResources,doUpdateCdnUrls,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';export const menuUpdate={'service':a92_0x2c2f83(0x1a6),'command':'update','description':a92_0x2c2f83(0x1b8),'risk':a92_0x2c2f83(0x1b5),'flags':[{'name':a92_0x2c2f83(0x184),'type':a92_0x2c2f83(0x1a1),'description':a92_0x2c2f83(0x181)+a92_0x2c2f83(0x19f)},{'name':a92_0x2c2f83(0x198),'type':a92_0x2c2f83(0x19c),'description':a92_0x2c2f83(0x1a8)}],async 'execute'(_0x38a264){const _0x447c87=a92_0x2c2f83,_0x48dcdc=_0x38a264[_0x447c87(0x1ac)](_0x447c87(0x198)),_0x4ea6ab=_0x38a264['str'](_0x447c87(0x184)),_0x503686=parseParams(_0x4ea6ab),_0x3fe3ec=!!(_0x503686['jsUrl']||_0x503686[_0x447c87(0x18a)]);if(_0x48dcdc||_0x3fe3ec&&!isInteractive()){const _0x4dc357=await runMenuUpdateCore(_0x38a264['appCode'],_0x38a264[_0x447c87(0x196)],_0x4ea6ab);return _0x4dc357[_0x447c87(0x19b)]?writeCliSideChannelLine(_0x447c87(0x1b0)):(writeCliSideChannelLine('✓\x20Menu\x20update\x20completed:\x20'+_0x4dc357[_0x447c87(0x19d)]+_0x447c87(0x18e)),_0x4dc357[_0x447c87(0x1ab)]>0x0&&writeCliSideChannelLine('!\x20'+_0x4dc357[_0x447c87(0x1ab)]+_0x447c87(0x18b))),{'ok':_0x4dc357[_0x447c87(0x1ab)]===0x0,'data':_0x4dc357,'message':_0x4dc357[_0x447c87(0x19b)]?_0x447c87(0x195):_0x447c87(0x1a5)+_0x4dc357[_0x447c87(0x19d)]+'\x20updated,\x20'+_0x4dc357[_0x447c87(0x1ab)]+'\x20failed.'};}requireInteractive();const _0x4cd121=startSpinner(_0x447c87(0x18d));let _0x2732da;try{_0x2732da=await fetchOnlineMenuList(_0x38a264[_0x447c87(0x1af)],_0x38a264['cookie']),stopSpinner(_0x4cd121,_0x447c87(0x1b7),!![]);}catch(_0x5ceb7f){stopSpinner(_0x4cd121,_0x447c87(0x1b1),![]);throw CliErrors[_0x447c87(0x1ae)](_0x5ceb7f instanceof Error?_0x5ceb7f[_0x447c87(0x1aa)]:_0x447c87(0x1b1));}const _0x4d2433=filterMenusWithResources(_0x2732da);if(_0x4d2433[_0x447c87(0x1b4)]===0x0)return writeCliSideChannelLine(a92_0x5b0d43[_0x447c87(0x182)](_0x447c87(0x199))),{'ok':!![]};writeCliSideChannelLine(''),writeCliSideChannelLine(a92_0x5b0d43[_0x447c87(0x191)](_0x447c87(0x192)+_0x4d2433['length']+'\x20menu(s)\x20with\x20existing\x20resources')),writeCliSideChannelLine(renderUpdateSummary(_0x4d2433['map'](_0x2acd93=>_0x2acd93[_0x447c87(0x19a)]),[_0x503686[_0x447c87(0x1a7)],_0x503686[_0x447c87(0x18a)]])),writeCliSideChannelLine('');let _0x42eb53=_0x503686[_0x447c87(0x1a7)],_0x32062d=_0x503686[_0x447c87(0x18a)];!_0x42eb53&&(_0x42eb53=await askJsUrl());!_0x32062d&&(_0x32062d=await askCssUrl());const _0x16c483=await askConfirm('\x20\x20Update\x20'+_0x4d2433[_0x447c87(0x1b4)]+_0x447c87(0x1a2)+_0x42eb53+'\x20and\x20CSS:\x20'+_0x32062d+'?');if(!_0x16c483)return writeCliSideChannelLine(a92_0x5b0d43[_0x447c87(0x183)](_0x447c87(0x1b3))),{'ok':!![]};const _0x49776e=[_0x42eb53,_0x32062d],_0x3dd9bf=startSpinner('Updating\x20'+_0x4d2433[_0x447c87(0x1b4)]+_0x447c87(0x194));try{const _0xacfd39=await doUpdateCdnUrls(_0x38a264['appCode'],_0x38a264[_0x447c87(0x196)],_0x4d2433,_0x49776e);return stopSpinner(_0x3dd9bf,_0x447c87(0x1ad)+_0xacfd39[_0x447c87(0x19d)]+_0x447c87(0x197),_0xacfd39[_0x447c87(0x1ab)]===0x0),{'ok':_0xacfd39[_0x447c87(0x1ab)]===0x0,'data':_0xacfd39,'message':_0xacfd39[_0x447c87(0x1ab)]>0x0?'Menu\x20update\x20completed:\x20'+_0xacfd39[_0x447c87(0x19d)]+'\x20updated,\x20'+_0xacfd39['failed']+'\x20failed.':_0x447c87(0x1a5)+_0xacfd39['updated']+_0x447c87(0x187)};}catch(_0x262013){stopSpinner(_0x3dd9bf,_0x447c87(0x1a0),![]);throw CliErrors['validation'](_0x262013 instanceof Error?_0x262013['message']:_0x447c87(0x1a0));}}};function parseParams(_0x325bbd){const _0x28101b=a92_0x2c2f83;if(!_0x325bbd)return{};try{const _0x450690=JSON[_0x28101b(0x1a9)](_0x325bbd);if(typeof _0x450690!=='object'||_0x450690===null||Array[_0x28101b(0x1a4)](_0x450690))return{};return{'jsUrl':typeof _0x450690['jsUrl']===_0x28101b(0x1a1)?_0x450690[_0x28101b(0x1a7)][_0x28101b(0x18f)]():undefined,'cssUrl':typeof _0x450690[_0x28101b(0x18a)]===_0x28101b(0x1a1)?_0x450690[_0x28101b(0x18a)]['trim']():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x18fa27=a93_0x5223;function a93_0x49e4(){const _0x153860=['number','string','operationId','1019816vYOjcJ','5921264PQcusl','625974yamRAz','manualResolutionRequired','standardPageStatus','status','/smartapi/lovrabet/dataset/','currentStep','progressRate','related-pages-fallback','6AUjgIS','POST','clientOperationId','Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','name','precheck','dataset','write','SUCCESS','message','generate-start','2822286QudpxE','fieldCount','358848YvgEKZ','936090MPweGr','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','page','appCode','source','/generate-standard-pages/start','复用已有生成任务','PARTIAL_SUCCESS','473861nWnftC','alias','code','reused','nextAction'];a93_0x49e4=function(){return _0x153860;};return a93_0x49e4();}function a93_0x5223(_0x3160fe,_0x15ef3d){_0x3160fe=_0x3160fe-0x1e1;const _0x49e416=a93_0x49e4();let _0x5223d2=_0x49e416[_0x3160fe];return _0x5223d2;}(function(_0x102b54,_0x4d2cdc){const _0xa86f9=a93_0x5223,_0x24c474=_0x102b54();while(!![]){try{const _0x44628e=-parseInt(_0xa86f9(0x1ed))/0x1*(-parseInt(_0xa86f9(0x1ff))/0x2)+-parseInt(_0xa86f9(0x1f7))/0x3+-parseInt(_0xa86f9(0x1e4))/0x4+parseInt(_0xa86f9(0x1e5))/0x5+parseInt(_0xa86f9(0x1e2))/0x6+-parseInt(_0xa86f9(0x1f5))/0x7+-parseInt(_0xa86f9(0x1f6))/0x8;if(_0x44628e===_0x4d2cdc)break;else _0x24c474['push'](_0x24c474['shift']());}catch(_0x47f358){_0x24c474['push'](_0x24c474['shift']());}}}(a93_0x49e4,0xda7f6));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateStandardPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a93_0x18fa27(0x1e7),'command':a93_0x18fa27(0x1e1),'description':a93_0x18fa27(0x202),'risk':a93_0x18fa27(0x206),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a93_0x18fa27(0x1ee),'type':a93_0x18fa27(0x1f3),'description':a93_0x18fa27(0x1e6)}],async 'validate'(_0xfdd9cd){validateDatasetSelector(_0xfdd9cd);},async 'dryRun'(_0x3a9dc3){const _0x3dfe36=a93_0x18fa27,_0xc8fd65=await prepare(_0x3a9dc3);return{'method':_0x3dfe36(0x200),'url':_0x3dfe36(0x1fb)+_0xc8fd65[_0x3dfe36(0x205)]['code']+_0x3dfe36(0x1ea),'body':{'appCode':_0x3a9dc3[_0x3dfe36(0x1e8)],'clientOperationId':_0xc8fd65[_0x3dfe36(0x201)]},'description':serializeDryRunDescription({'dataset':{'id':_0xc8fd65[_0x3dfe36(0x205)]['id'],'code':_0xc8fd65['dataset'][_0x3dfe36(0x1ef)],'name':_0xc8fd65['dataset'][_0x3dfe36(0x203)],'fieldCount':_0xc8fd65[_0x3dfe36(0x205)][_0x3dfe36(0x1e3)]},'precheckSource':_0xc8fd65['standardPageStatus']?.[_0x3dfe36(0x1e9)]??'related-pages-fallback','action':_0x3dfe36(0x1e1),'clientOperationId':_0xc8fd65[_0x3dfe36(0x201)],'plannedStatus':_0xc8fd65[_0x3dfe36(0x204)]['status'],'reason':_0xc8fd65[_0x3dfe36(0x204)][_0x3dfe36(0x208)]})};},async 'execute'(_0x56dea5){const _0x3f7078=a93_0x18fa27,_0x1dccdf=await prepare(_0x56dea5);if(!_0x1dccdf[_0x3f7078(0x204)]['allowGenerate'])return{'ok':![],'message':_0x1dccdf[_0x3f7078(0x204)][_0x3f7078(0x208)],'data':{'datasetCode':_0x1dccdf[_0x3f7078(0x205)][_0x3f7078(0x1ef)],'clientOperationId':_0x1dccdf[_0x3f7078(0x201)],'precheckSource':_0x1dccdf[_0x3f7078(0x1f9)]?.[_0x3f7078(0x1e9)]??_0x3f7078(0x1fe),'status':_0x1dccdf[_0x3f7078(0x204)][_0x3f7078(0x1fa)],'manualResolutionRequired':_0x1dccdf[_0x3f7078(0x204)][_0x3f7078(0x1f8)],'nextAction':_0x1dccdf[_0x3f7078(0x204)][_0x3f7078(0x1f1)],'query':{'command':buildStandardPageStatusQueryCommand(_0x1dccdf[_0x3f7078(0x205)][_0x3f7078(0x1ef)],_0x56dea5['appCode'])},'standardPageStatus':_0x1dccdf[_0x3f7078(0x1f9)]}};const _0x11706b=await startGenerateStandardPages(_0x56dea5['appCode'],_0x1dccdf[_0x3f7078(0x205)]['code'],{'clientOperationId':_0x1dccdf[_0x3f7078(0x201)]}),_0x8f64ff=_0x11706b[_0x3f7078(0x1fa)]===_0x3f7078(0x207)||_0x11706b[_0x3f7078(0x1fa)]===_0x3f7078(0x1ec)?await loadStandardPageStatusForGenerate(_0x56dea5,_0x1dccdf[_0x3f7078(0x205)][_0x3f7078(0x1ef)]):null,_0x5c12fd=assessGenerateOperationState(_0x1dccdf[_0x3f7078(0x205)][_0x3f7078(0x1ef)],_0x11706b[_0x3f7078(0x1fa)],_0x8f64ff);return{'ok':!![],'message':_0x11706b[_0x3f7078(0x1f0)]?_0x3f7078(0x1eb):'已提交生成任务','data':{'datasetCode':_0x1dccdf[_0x3f7078(0x205)]['code'],'appCode':_0x56dea5[_0x3f7078(0x1e8)],'operationId':_0x11706b[_0x3f7078(0x1f4)]??null,'clientOperationId':_0x1dccdf[_0x3f7078(0x201)],'jobStatus':_0x11706b[_0x3f7078(0x1fa)]??null,'progressRate':typeof _0x11706b[_0x3f7078(0x1fd)]===_0x3f7078(0x1f2)?_0x11706b['progressRate']:null,'currentStep':_0x11706b[_0x3f7078(0x1fc)]??null,'reused':_0x11706b[_0x3f7078(0x1f0)]===!![],'status':_0x5c12fd[_0x3f7078(0x1fa)],'manualResolutionRequired':_0x5c12fd[_0x3f7078(0x1f8)],'nextAction':_0x5c12fd['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1dccdf['dataset'][_0x3f7078(0x1ef)],{'appCode':_0x56dea5[_0x3f7078(0x1e8)],'operationId':_0x11706b[_0x3f7078(0x1f4)],'clientOperationId':_0x1dccdf[_0x3f7078(0x201)]})},'standardPageStatus':_0x8f64ff}};}};async function prepare(_0x189389){const _0x36a3bb=a93_0x18fa27,_0x5c8a0d=await loadDatasetDetailForPage(_0x189389),_0x4fb646=await loadStandardPageStatusForGenerate(_0x189389,_0x5c8a0d[_0x36a3bb(0x1ef)]),_0x5aaf9f=getUndeletedRelatedPages(_0x5c8a0d);return{'dataset':_0x5c8a0d,'standardPageStatus':_0x4fb646,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x5c8a0d[_0x36a3bb(0x1ef)],_0x4fb646,{'fallbackUndeletedPages':_0x5aaf9f})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x9315e9=a94_0x3f39;(function(_0x2eca13,_0x12bd4b){const _0x2098a2=a94_0x3f39,_0x43b0b7=_0x2eca13();while(!![]){try{const _0x398e0f=-parseInt(_0x2098a2(0x175))/0x1*(-parseInt(_0x2098a2(0x17e))/0x2)+-parseInt(_0x2098a2(0x179))/0x3+parseInt(_0x2098a2(0x172))/0x4+-parseInt(_0x2098a2(0x189))/0x5*(parseInt(_0x2098a2(0x17d))/0x6)+-parseInt(_0x2098a2(0x191))/0x7*(parseInt(_0x2098a2(0x187))/0x8)+-parseInt(_0x2098a2(0x198))/0x9+-parseInt(_0x2098a2(0x18f))/0xa*(-parseInt(_0x2098a2(0x18a))/0xb);if(_0x398e0f===_0x12bd4b)break;else _0x43b0b7['push'](_0x43b0b7['shift']());}catch(_0x13185e){_0x43b0b7['push'](_0x43b0b7['shift']());}}}(a94_0x51cf,0xb57ec));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a94_0x51cf(){const _0x3b082e=['7RSFjXj','/generate-standard-pages/status?','alias','PARTIAL_SUCCESS','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','operation_failed','page','1235439cGrfum','progressRate','manualResolutionRequired','203940cCLtqJ','nextAction','message','184783qGtsvQ','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','number','/smartapi/lovrabet/dataset/','2128806CfamYG','clientOperationId','string','query-generate-operation-status','66LUaPAe','2bpNsDb','client-operation-id','name','currentStep','set','status','GET','errorMsg','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','6380104RyblxC','operation-id','125555BPXduq','26710673sIbCMH','code','operationId','str','appCode','10ByAigU','read'];a94_0x51cf=function(){return _0x3b082e;};return a94_0x51cf();}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateStandardPagesStatus}from'../../core/api-client.js';function a94_0x3f39(_0x40d632,_0x1556e7){_0x40d632=_0x40d632-0x170;const _0x51cff3=a94_0x51cf();let _0x3f393d=_0x51cff3[_0x40d632];return _0x3f393d;}export const pageGenerateStatus={'service':a94_0x9315e9(0x197),'command':'generate-status','description':'Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','risk':a94_0x9315e9(0x190),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a94_0x9315e9(0x193),'type':a94_0x9315e9(0x17b),'description':a94_0x9315e9(0x176)},{'name':a94_0x9315e9(0x188),'type':a94_0x9315e9(0x17b),'description':a94_0x9315e9(0x195)},{'name':'client-operation-id','type':a94_0x9315e9(0x17b),'description':a94_0x9315e9(0x186)}],async 'validate'(_0x1e196a){validateDatasetSelector(_0x1e196a),validateGenerateOperationSelector(_0x1e196a);},async 'dryRun'(_0xb4219b){const _0x5b3cac=a94_0x9315e9,_0x108000=await loadDatasetDetailForPage(_0xb4219b),_0x292eac=_0xb4219b[_0x5b3cac(0x18d)](_0x5b3cac(0x188)),_0x54d67d=_0xb4219b[_0x5b3cac(0x18d)](_0x5b3cac(0x17f)),_0x460575=new URLSearchParams({'appCode':_0xb4219b[_0x5b3cac(0x18e)]});return _0x292eac&&_0x460575[_0x5b3cac(0x182)](_0x5b3cac(0x18c),_0x292eac),_0x54d67d&&_0x460575['set'](_0x5b3cac(0x17a),_0x54d67d),{'method':_0x5b3cac(0x184),'url':_0x5b3cac(0x178)+_0x108000[_0x5b3cac(0x18b)]+_0x5b3cac(0x192)+_0x460575['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x108000['id'],'code':_0x108000[_0x5b3cac(0x18b)],'name':_0x108000[_0x5b3cac(0x180)]},'action':_0x5b3cac(0x17c),'operationId':_0x292eac||undefined,'clientOperationId':_0x54d67d||undefined})};},async 'execute'(_0x58eafd){const _0x2d4c7c=a94_0x9315e9,_0x3eafe0=await loadDatasetDetailForPage(_0x58eafd),_0x279ffc=_0x58eafd[_0x2d4c7c(0x18d)](_0x2d4c7c(0x188)),_0x3a27d3=_0x58eafd['str']('client-operation-id'),_0x235c5f=await getGenerateStandardPagesStatus(_0x58eafd['appCode'],_0x3eafe0[_0x2d4c7c(0x18b)],{'operationId':_0x279ffc||undefined,'clientOperationId':_0x3a27d3||undefined}),_0x35e81b=_0x235c5f[_0x2d4c7c(0x183)]==='SUCCESS'||_0x235c5f[_0x2d4c7c(0x183)]===_0x2d4c7c(0x194),_0x5eb366=_0x35e81b?await loadStandardPageStatusForGenerate(_0x58eafd,_0x3eafe0[_0x2d4c7c(0x18b)]):null,_0x1f790d=assessGenerateOperationState(_0x3eafe0[_0x2d4c7c(0x18b)],_0x235c5f[_0x2d4c7c(0x183)],_0x5eb366),_0x867af5=_0x235c5f[_0x2d4c7c(0x18c)]??_0x279ffc??undefined,_0x10da03=_0x235c5f[_0x2d4c7c(0x17a)]??_0x3a27d3??undefined;return{'ok':!![],'message':_0x1f790d['status']===_0x2d4c7c(0x196)?_0x235c5f[_0x2d4c7c(0x185)]||_0x1f790d[_0x2d4c7c(0x174)]:_0x1f790d[_0x2d4c7c(0x174)],'data':{'datasetCode':_0x3eafe0[_0x2d4c7c(0x18b)],'appCode':_0x58eafd[_0x2d4c7c(0x18e)],'operationId':_0x867af5,'clientOperationId':_0x10da03,'jobStatus':_0x235c5f[_0x2d4c7c(0x183)]??null,'progressRate':typeof _0x235c5f[_0x2d4c7c(0x170)]===_0x2d4c7c(0x177)?_0x235c5f[_0x2d4c7c(0x170)]:null,'currentStep':_0x235c5f[_0x2d4c7c(0x181)]??null,'errorMsg':_0x235c5f[_0x2d4c7c(0x185)]??null,'status':_0x1f790d[_0x2d4c7c(0x183)],'manualResolutionRequired':_0x1f790d[_0x2d4c7c(0x171)],'nextAction':_0x1f790d[_0x2d4c7c(0x173)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3eafe0[_0x2d4c7c(0x18b)],{'appCode':_0x58eafd[_0x2d4c7c(0x18e)],'operationId':_0x867af5,'clientOperationId':_0x10da03})},'standardPageStatus':_0x5eb366,'result':_0x235c5f['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a5822,_0x377bfc){const _0x3165f2=a95_0x2f56,_0x4b3118=_0x2a5822();while(!![]){try{const _0x176507=parseInt(_0x3165f2(0x9a))/0x1+-parseInt(_0x3165f2(0x99))/0x2*(parseInt(_0x3165f2(0x9b))/0x3)+parseInt(_0x3165f2(0x98))/0x4*(parseInt(_0x3165f2(0x9d))/0x5)+-parseInt(_0x3165f2(0x97))/0x6+-parseInt(_0x3165f2(0x9f))/0x7+-parseInt(_0x3165f2(0x9c))/0x8+-parseInt(_0x3165f2(0xa0))/0x9*(-parseInt(_0x3165f2(0x9e))/0xa);if(_0x176507===_0x377bfc)break;else _0x4b3118['push'](_0x4b3118['shift']());}catch(_0x648340){_0x4b3118['push'](_0x4b3118['shift']());}}}(a95_0xac0d,0x8d14e));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';function a95_0xac0d(){const _0x4a6a3e=['353427OeQbqO','75384CgowAR','7977032qGrTMU','554165yEyfEg','1558430yYtuNU','5987604rUtkhf','162UmjSuZ','3890160psOTgw','8esyPPr','24Thrjiz'];a95_0xac0d=function(){return _0x4a6a3e;};return a95_0xac0d();}function a95_0x2f56(_0x5400cc,_0x232936){_0x5400cc=_0x5400cc-0x97;const _0xac0d84=a95_0xac0d();let _0x2f5619=_0xac0d84[_0x5400cc];return _0x2f5619;}import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageSync,pagePull,pagePush];
|