@lovrabet/lovrabet-cli 2.0.5-beta.0 → 2.0.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/app/cache.js +1 -1
  3. package/lib/commands/app/definitions.js +1 -1
  4. package/lib/commands/app/mock-loader.js +1 -1
  5. package/lib/commands/app/remote-source.js +1 -1
  6. package/lib/commands/app/shared.js +1 -1
  7. package/lib/commands/auth/index.js +1 -1
  8. package/lib/commands/auth/prompt.js +1 -1
  9. package/lib/commands/bff/detail.js +1 -1
  10. package/lib/commands/bff/exec.js +1 -1
  11. package/lib/commands/bff/index.js +1 -1
  12. package/lib/commands/common/config-policy.js +1 -1
  13. package/lib/commands/common/constraints.js +1 -1
  14. package/lib/commands/common/flags.js +1 -1
  15. package/lib/commands/config/definitions.js +1 -1
  16. package/lib/commands/config/shared.js +1 -1
  17. package/lib/commands/data/index.js +1 -1
  18. package/lib/commands/dataset/detail.js +1 -1
  19. package/lib/commands/dataset/index.js +1 -1
  20. package/lib/commands/dataset/list.js +1 -1
  21. package/lib/commands/doctor.js +1 -1
  22. package/lib/commands/init.js +1 -1
  23. package/lib/commands/logs/index.js +1 -1
  24. package/lib/commands/registry.js +1 -1
  25. package/lib/commands/schema.js +1 -1
  26. package/lib/commands/skill/index.js +1 -1
  27. package/lib/commands/sql/detail.js +1 -1
  28. package/lib/commands/sql/exec.js +1 -1
  29. package/lib/commands/sql/index.js +1 -1
  30. package/lib/config/schema.js +1 -1
  31. package/lib/constant/auth-mode.js +1 -1
  32. package/lib/constant/cli.js +1 -1
  33. package/lib/constant/defaults.js +1 -1
  34. package/lib/constant/domain.js +1 -1
  35. package/lib/constant/env.js +1 -1
  36. package/lib/constant/output.js +1 -1
  37. package/lib/constant/risk.js +1 -1
  38. package/lib/constant/url.js +1 -1
  39. package/lib/context.js +1 -1
  40. package/lib/core/api-client.js +1 -1
  41. package/lib/core/db-resolver.js +1 -1
  42. package/lib/core/sdk-client.js +1 -1
  43. package/lib/errors.js +1 -1
  44. package/lib/framework/build-all-flags.js +1 -1
  45. package/lib/framework/dryrun.js +1 -1
  46. package/lib/framework/flags.js +1 -1
  47. package/lib/framework/help.js +1 -1
  48. package/lib/framework/index.js +1 -1
  49. package/lib/framework/output.js +1 -1
  50. package/lib/framework/preparse.js +1 -1
  51. package/lib/framework/response.js +1 -1
  52. package/lib/framework/runner-confirmation.js +1 -1
  53. package/lib/framework/runner-error.js +1 -1
  54. package/lib/framework/runner.js +1 -1
  55. package/lib/framework/schema-export.js +1 -1
  56. package/lib/framework/types.js +1 -1
  57. package/lib/help.js +1 -1
  58. package/lib/skills/npx-skills-add.js +1 -1
  59. package/lib/utils/apply-jq-filter.js +1 -1
  60. package/lib/utils/logger.js +1 -1
  61. package/lib/utils/params.js +1 -1
  62. package/lib/utils/platform.js +1 -1
  63. package/lib/utils/version.js +1 -1
  64. package/lib/utils/write-cli-side-channel.js +1 -1
  65. package/package.json +1 -1
@@ -1 +1 @@
1
- const a32_0x492b52=a32_0x39b8;(function(_0x5c4a60,_0x1d3e04){const _0x578374=a32_0x39b8,_0x27fe29=_0x5c4a60();while(!![]){try{const _0x590584=parseInt(_0x578374(0x1c9))/0x1*(parseInt(_0x578374(0x1cb))/0x2)+parseInt(_0x578374(0x1c7))/0x3*(parseInt(_0x578374(0x1c8))/0x4)+-parseInt(_0x578374(0x1c1))/0x5*(-parseInt(_0x578374(0x1bf))/0x6)+-parseInt(_0x578374(0x1be))/0x7*(-parseInt(_0x578374(0x1cc))/0x8)+parseInt(_0x578374(0x1c3))/0x9+-parseInt(_0x578374(0x1c0))/0xa+-parseInt(_0x578374(0x1c6))/0xb;if(_0x590584===_0x1d3e04)break;else _0x27fe29['push'](_0x27fe29['shift']());}catch(_0x44cfc5){_0x27fe29['push'](_0x27fe29['shift']());}}}(a32_0x2e62,0x1f364));export const DEFAULT_APP_PROFILE_NAME=a32_0x492b52(0x1c4);export const DEFAULT_CONFIG_VALUES={'env':a32_0x492b52(0x1c2),'format':'compress','locale':a32_0x492b52(0x1ca),'riskLevel':a32_0x492b52(0x1c5)};function a32_0x39b8(_0x152bc1,_0x5b5f12){_0x152bc1=_0x152bc1-0x1be;const _0x2e624a=a32_0x2e62();let _0x39b8af=_0x2e624a[_0x152bc1];return _0x39b8af;}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';function a32_0x2e62(){const _0x10463d=['2612IJxetz','1czzHkx','en-US','266936hnjzqG','520qBUNsW','23212eeyrWm','800220VjImGs','1849660mNUKKn','5JqrFUZ','production','518445tLiyrU','main','write','3073543pwPrFV','240zQLFrM'];a32_0x2e62=function(){return _0x10463d;};return a32_0x2e62();}
1
+ function a32_0x3c3c(){const _0x4780b1=['1050468VBlSzp','production','4GmuIww','445736jsIXqV','2224035vBhlFy','en-US','215yKpgOm','9100lRJjKr','compress','23084JXAmAI','write','32982sgYjPd','33NFShvI','76614VaIEYH','main','14QdfiZk','64qirVog'];a32_0x3c3c=function(){return _0x4780b1;};return a32_0x3c3c();}const a32_0x1a38a3=a32_0x23a2;(function(_0x3d74bc,_0x300a61){const _0x4d4b61=a32_0x23a2,_0x162bdf=_0x3d74bc();while(!![]){try{const _0x3267f8=-parseInt(_0x4d4b61(0xea))/0x1*(parseInt(_0x4d4b61(0xf4))/0x2)+-parseInt(_0x4d4b61(0xee))/0x3*(-parseInt(_0x4d4b61(0xf1))/0x4)+parseInt(_0x4d4b61(0xe7))/0x5*(-parseInt(_0x4d4b61(0xec))/0x6)+parseInt(_0x4d4b61(0xf0))/0x7*(parseInt(_0x4d4b61(0xf5))/0x8)+parseInt(_0x4d4b61(0xe5))/0x9+-parseInt(_0x4d4b61(0xe8))/0xa+-parseInt(_0x4d4b61(0xed))/0xb*(parseInt(_0x4d4b61(0xf2))/0xc);if(_0x3267f8===_0x300a61)break;else _0x162bdf['push'](_0x162bdf['shift']());}catch(_0x5c9165){_0x162bdf['push'](_0x162bdf['shift']());}}}(a32_0x3c3c,0x35fa3));function a32_0x23a2(_0x268830,_0x1801b8){_0x268830=_0x268830-0xe5;const _0x3c3c78=a32_0x3c3c();let _0x23a287=_0x3c3c78[_0x268830];return _0x23a287;}export const DEFAULT_APP_PROFILE_NAME=a32_0x1a38a3(0xef);export const DEFAULT_CONFIG_VALUES={'env':a32_0x1a38a3(0xf3),'format':a32_0x1a38a3(0xe9),'locale':a32_0x1a38a3(0xe6),'riskLevel':a32_0x1a38a3(0xeb)};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a32_0x1a38a3(0xe9);
@@ -1 +1 @@
1
- const a33_0x171b4e=a33_0x46cd;(function(_0x426d87,_0x59496f){const _0x3d68d0=a33_0x46cd,_0x569598=_0x426d87();while(!![]){try{const _0x160423=-parseInt(_0x3d68d0(0x1eb))/0x1*(-parseInt(_0x3d68d0(0x1ea))/0x2)+parseInt(_0x3d68d0(0x1ec))/0x3*(-parseInt(_0x3d68d0(0x1e3))/0x4)+-parseInt(_0x3d68d0(0x1e6))/0x5+parseInt(_0x3d68d0(0x1e7))/0x6*(parseInt(_0x3d68d0(0x1e5))/0x7)+-parseInt(_0x3d68d0(0x1e4))/0x8+parseInt(_0x3d68d0(0x1e9))/0x9+parseInt(_0x3d68d0(0x1e1))/0xa*(parseInt(_0x3d68d0(0x1e8))/0xb);if(_0x160423===_0x59496f)break;else _0x569598['push'](_0x569598['shift']());}catch(_0x5b91cc){_0x569598['push'](_0x569598['shift']());}}}(a33_0x441c,0xd98c8));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a33_0x46cd(_0x16e6b3,_0x402fda){_0x16e6b3=_0x16e6b3-0x1e1;const _0x441cee=a33_0x441c();let _0x46cd88=_0x441cee[_0x16e6b3];return _0x46cd88;}export function initDomains(_0x1005fc){customApiDomain=_0x1005fc?.['apiDomain'],customUserDomain=_0x1005fc?.['userDomain'],customRuntimeDomain=_0x1005fc?.['runtimeDomain'];}function a33_0x441c(){const _0x4aac68=['5400521FyKxaY','5454685piZDMG','12BWlKiE','8239leYbzj','15063777igEkhc','1536PshGxx','42BnOiMm','17898RILrxg','https://api.lovrabet.com','https://daily-runtime.lovrabet.com','18190lpfXmJ','https://user.lovrabet.com','756KDlTDW','12014840HUhiSo'];a33_0x441c=function(){return _0x4aac68;};return a33_0x441c();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a33_0x171b4e(0x1e2):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a33_0x171b4e(0x1ed):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a33_0x171b4e(0x1ee));
1
+ const a33_0xf24397=a33_0x3366;(function(_0x5ab087,_0x275dfb){const _0x39e880=a33_0x3366,_0x386971=_0x5ab087();while(!![]){try{const _0xb9eb4d=-parseInt(_0x39e880(0x179))/0x1+-parseInt(_0x39e880(0x178))/0x2+-parseInt(_0x39e880(0x174))/0x3+parseInt(_0x39e880(0x170))/0x4+-parseInt(_0x39e880(0x176))/0x5*(-parseInt(_0x39e880(0x17a))/0x6)+-parseInt(_0x39e880(0x173))/0x7*(-parseInt(_0x39e880(0x172))/0x8)+-parseInt(_0x39e880(0x16f))/0x9*(parseInt(_0x39e880(0x171))/0xa);if(_0xb9eb4d===_0x275dfb)break;else _0x386971['push'](_0x386971['shift']());}catch(_0x1df5a4){_0x386971['push'](_0x386971['shift']());}}}(a33_0x55ca,0xb257e));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;function a33_0x3366(_0x429188,_0x58afd7){_0x429188=_0x429188-0x16c;const _0x55ca11=a33_0x55ca();let _0x336636=_0x55ca11[_0x429188];return _0x336636;}export function initDomains(_0x28fb39){const _0x19dd32=a33_0x3366;customApiDomain=_0x28fb39?.[_0x19dd32(0x16e)],customUserDomain=_0x28fb39?.['userDomain'],customRuntimeDomain=_0x28fb39?.[_0x19dd32(0x175)];}function a33_0x55ca(){const _0x1e5dac=['2875765RtUKix','https://runtime.lovrabet.com','8004mChubT','456174xGktPs','6efCPXK','https://user-daily.lovrabet.com','https://api.lovrabet.com','apiDomain','63EdXexT','3856700cOmaNE','470170sdHziZ','6449048RcWLdU','7DavXNk','2477010EpnZOR','runtimeDomain'];a33_0x55ca=function(){return _0x1e5dac;};return a33_0x55ca();}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?'https://user.lovrabet.com':a33_0xf24397(0x16c));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a33_0xf24397(0x16d):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a33_0xf24397(0x177):'https://daily-runtime.lovrabet.com');
@@ -1 +1 @@
1
- const a34_0x5d5652=a34_0x2ca5;(function(_0x363a7c,_0x248b45){const _0x2110f2=a34_0x2ca5,_0x398b21=_0x363a7c();while(!![]){try{const _0x2274a6=-parseInt(_0x2110f2(0xc9))/0x1+-parseInt(_0x2110f2(0xba))/0x2*(parseInt(_0x2110f2(0xc8))/0x3)+parseInt(_0x2110f2(0xc7))/0x4*(parseInt(_0x2110f2(0xc6))/0x5)+-parseInt(_0x2110f2(0xc2))/0x6*(-parseInt(_0x2110f2(0xc0))/0x7)+parseInt(_0x2110f2(0xbc))/0x8+-parseInt(_0x2110f2(0xbd))/0x9*(-parseInt(_0x2110f2(0xc4))/0xa)+-parseInt(_0x2110f2(0xc5))/0xb*(-parseInt(_0x2110f2(0xc1))/0xc);if(_0x2274a6===_0x248b45)break;else _0x398b21['push'](_0x398b21['shift']());}catch(_0x516915){_0x398b21['push'](_0x398b21['shift']());}}}(a34_0x4cde,0x7083c));function a34_0x2ca5(_0x3ae747,_0x3414c9){_0x3ae747=_0x3ae747-0xba;const _0x4cde33=a34_0x4cde();let _0x2ca569=_0x4cde33[_0x3ae747];return _0x2ca569;}export const RUNTIME_ENV_VALUES=['production',a34_0x5d5652(0xbb),a34_0x5d5652(0xbf)];export function normalizeEnv(_0x7e4d31){const _0x32ac73=a34_0x5d5652;return _0x7e4d31===_0x32ac73(0xbe)?_0x32ac73(0xc3):_0x7e4d31;}export function isProduction(_0x54c139){return normalizeEnv(_0x54c139)==='production';}export function isDaily(_0xb98b06){const _0x23ee7c=a34_0x5d5652;return normalizeEnv(_0xb98b06)===_0x23ee7c(0xbf);}export function isDev(_0x70469b){const _0xdcaeec=normalizeEnv(_0x70469b);return _0xdcaeec==='development'||_0xdcaeec==='dev';}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x5d5652(0xc3));function a34_0x4cde(){const _0x300721=['production','930320izZwYO','5654ItnEzw','25460MqRxhv','392oNSPIW','613137kRmYlb','25525lpNpyr','6gicSVO','development','1636472Djctox','9vrbHWC','online','daily','98329hEVjuD','6744QyzJKM','6feWGQv'];a34_0x4cde=function(){return _0x300721;};return a34_0x4cde();}export function getEnv(){return env;}export function initEnv(_0xfe4666){env=normalizeEnv(_0xfe4666);}
1
+ function a34_0x3f67(_0x38ae5f,_0x8c03ed){_0x38ae5f=_0x38ae5f-0xf0;const _0x24d874=a34_0x24d8();let _0x3f67de=_0x24d874[_0x38ae5f];return _0x3f67de;}const a34_0x1e2d61=a34_0x3f67;function a34_0x24d8(){const _0x38919c=['2BuiRpF','production','9070SHrUTc','1122bPrncO','776bMqWJU','201626Uxiutx','development','714OFlHwJ','1484252dJIzRH','418968ZJUItE','3212ovUOBV','daily','8720YtRfdv','1826304lRDGsu'];a34_0x24d8=function(){return _0x38919c;};return a34_0x24d8();}(function(_0x5defa2,_0x224222){const _0x169e65=a34_0x3f67,_0x1c657f=_0x5defa2();while(!![]){try{const _0x3a1c0=parseInt(_0x169e65(0xf6))/0x1*(-parseInt(_0x169e65(0xf1))/0x2)+-parseInt(_0x169e65(0xf8))/0x3*(parseInt(_0x169e65(0xf5))/0x4)+parseInt(_0x169e65(0xfd))/0x5*(parseInt(_0x169e65(0xf4))/0x6)+-parseInt(_0x169e65(0xf9))/0x7+parseInt(_0x169e65(0xf0))/0x8+-parseInt(_0x169e65(0xfa))/0x9+-parseInt(_0x169e65(0xf3))/0xa*(-parseInt(_0x169e65(0xfb))/0xb);if(_0x3a1c0===_0x224222)break;else _0x1c657f['push'](_0x1c657f['shift']());}catch(_0x531973){_0x1c657f['push'](_0x1c657f['shift']());}}}(a34_0x24d8,0x4c62a));export const RUNTIME_ENV_VALUES=['production',a34_0x1e2d61(0xf7),a34_0x1e2d61(0xfc)];export function normalizeEnv(_0x590c9e){const _0xd6280=a34_0x1e2d61;return _0x590c9e==='online'?_0xd6280(0xf2):_0x590c9e;}export function isProduction(_0x4eddf5){const _0x18c75f=a34_0x1e2d61;return normalizeEnv(_0x4eddf5)===_0x18c75f(0xf2);}export function isDaily(_0x5a3335){const _0x583da0=a34_0x1e2d61;return normalizeEnv(_0x5a3335)===_0x583da0(0xfc);}export function isDev(_0x1ba27c){const _0x43fa88=a34_0x1e2d61,_0x23ac06=normalizeEnv(_0x1ba27c);return _0x23ac06===_0x43fa88(0xf7)||_0x23ac06==='dev';}let env=normalizeEnv(process.env.LOVRABET_ENV||a34_0x1e2d61(0xf2));export function getEnv(){return env;}export function initEnv(_0x3c3d9b){env=normalizeEnv(_0x3c3d9b);}
@@ -1 +1 @@
1
- const a35_0x4e33b2=a35_0x5846;(function(_0x4131ab,_0x4dc89d){const _0x4ee32b=a35_0x5846,_0x3b7aec=_0x4131ab();while(!![]){try{const _0x5ed029=-parseInt(_0x4ee32b(0x74))/0x1*(-parseInt(_0x4ee32b(0x73))/0x2)+parseInt(_0x4ee32b(0x6c))/0x3+-parseInt(_0x4ee32b(0x6d))/0x4+-parseInt(_0x4ee32b(0x6e))/0x5*(parseInt(_0x4ee32b(0x70))/0x6)+parseInt(_0x4ee32b(0x6f))/0x7+parseInt(_0x4ee32b(0x6b))/0x8*(parseInt(_0x4ee32b(0x72))/0x9)+-parseInt(_0x4ee32b(0x6a))/0xa;if(_0x5ed029===_0x4dc89d)break;else _0x3b7aec['push'](_0x3b7aec['shift']());}catch(_0x1a92c7){_0x3b7aec['push'](_0x3b7aec['shift']());}}}(a35_0x2098,0xa2f21));function a35_0x2098(){const _0xe16e2=['compress','json','10186870iAsvXS','1064216lYYdJS','3548712nzILdy','4588996XgrhWT','5DYOKNx','6855429DNnGoq','80202vlARHi','pretty','9EKquxe','44116RaGwnT','25TlfjtL'];a35_0x2098=function(){return _0xe16e2;};return a35_0x2098();}function a35_0x5846(_0x26ccfd,_0x4de112){_0x26ccfd=_0x26ccfd-0x69;const _0x2098bc=a35_0x2098();let _0x584672=_0x2098bc[_0x26ccfd];return _0x584672;}export const OUTPUT_FORMAT_VALUES=[a35_0x4e33b2(0x69),a35_0x4e33b2(0x71),a35_0x4e33b2(0x75)];
1
+ function a35_0x1dfe(_0x1d7407,_0x2189d2){_0x1d7407=_0x1d7407-0x8b;const _0x1f24e8=a35_0x1f24();let _0x1dfe45=_0x1f24e8[_0x1d7407];return _0x1dfe45;}function a35_0x1f24(){const _0x209849=['406HeNcSS','pretty','789859toYmoi','3663510UkDleM','6513372GaUehT','56pXmIeN','16959DkITcy','4777410OqsHho','1515220rJLHXq','compress','json','999543nwuQPk'];a35_0x1f24=function(){return _0x209849;};return a35_0x1f24();}const a35_0x9dd536=a35_0x1dfe;(function(_0x18ccc5,_0x44e455){const _0x1561ec=a35_0x1dfe,_0x1877e1=_0x18ccc5();while(!![]){try{const _0x17348a=-parseInt(_0x1561ec(0x90))/0x1+-parseInt(_0x1561ec(0x91))/0x2*(-parseInt(_0x1561ec(0x8b))/0x3)+parseInt(_0x1561ec(0x8d))/0x4+parseInt(_0x1561ec(0x8c))/0x5+parseInt(_0x1561ec(0x94))/0x6+-parseInt(_0x1561ec(0x93))/0x7*(parseInt(_0x1561ec(0x96))/0x8)+-parseInt(_0x1561ec(0x95))/0x9;if(_0x17348a===_0x44e455)break;else _0x1877e1['push'](_0x1877e1['shift']());}catch(_0x4abb82){_0x1877e1['push'](_0x1877e1['shift']());}}}(a35_0x1f24,0x8d6f9));export const OUTPUT_FORMAT_VALUES=[a35_0x9dd536(0x8f),a35_0x9dd536(0x92),a35_0x9dd536(0x8e)];
@@ -1 +1 @@
1
- function a36_0x57d2(_0x344c70,_0x519c57){_0x344c70=_0x344c70-0x15d;const _0x1c421a=a36_0x1c42();let _0x57d246=_0x1c421a[_0x344c70];return _0x57d246;}const a36_0x2392f2=a36_0x57d2;(function(_0x338719,_0x516128){const _0x3058cc=a36_0x57d2,_0x13b6fc=_0x338719();while(!![]){try{const _0x5c3bb3=-parseInt(_0x3058cc(0x16b))/0x1*(-parseInt(_0x3058cc(0x164))/0x2)+parseInt(_0x3058cc(0x160))/0x3+parseInt(_0x3058cc(0x16a))/0x4*(parseInt(_0x3058cc(0x165))/0x5)+parseInt(_0x3058cc(0x161))/0x6*(parseInt(_0x3058cc(0x162))/0x7)+parseInt(_0x3058cc(0x169))/0x8*(-parseInt(_0x3058cc(0x163))/0x9)+parseInt(_0x3058cc(0x15f))/0xa+parseInt(_0x3058cc(0x168))/0xb*(-parseInt(_0x3058cc(0x15d))/0xc);if(_0x5c3bb3===_0x516128)break;else _0x13b6fc['push'](_0x13b6fc['shift']());}catch(_0x872a9a){_0x13b6fc['push'](_0x13b6fc['shift']());}}}(a36_0x1c42,0xc334e));function a36_0x1c42(){const _0x31345f=['235878dbiDjO','133zJdSrO','2002797tFmQkE','50746wGvBhk','75SLQHLa','read','high-risk-write','3355RLFUKg','16TLEuXL','374948IXeGYh','45ITGGvT','162612yIBhFH','write','5703120dqvpsm','4537764SmOYGn'];a36_0x1c42=function(){return _0x31345f;};return a36_0x1c42();}export const RISK_LEVEL_VALUES=[a36_0x2392f2(0x166),a36_0x2392f2(0x15e),a36_0x2392f2(0x167)];
1
+ function a36_0x2061(_0x493cb8,_0x2c8099){_0x493cb8=_0x493cb8-0x1d9;const _0x5c2e40=a36_0x5c2e();let _0x206140=_0x5c2e40[_0x493cb8];return _0x206140;}const a36_0x5a6bc6=a36_0x2061;function a36_0x5c2e(){const _0x87c219=['8oosMuf','15938064fZKakP','4PKgTWb','64710WCXxWq','read','write','23608884QadngW','high-risk-write','3094597pDVlpC','4862841vInvln','10QmNaCz','18294JyTkSr','284xLVqEv','900862HnIDSV','3542BGpAAF'];a36_0x5c2e=function(){return _0x87c219;};return a36_0x5c2e();}(function(_0x38fde7,_0x37fb61){const _0x2ebd3b=a36_0x2061,_0x21b415=_0x38fde7();while(!![]){try{const _0x5447e0=parseInt(_0x2ebd3b(0x1e7))/0x1*(-parseInt(_0x2ebd3b(0x1e3))/0x2)+parseInt(_0x2ebd3b(0x1df))/0x3+parseInt(_0x2ebd3b(0x1e2))/0x4*(-parseInt(_0x2ebd3b(0x1d9))/0x5)+parseInt(_0x2ebd3b(0x1e1))/0x6*(parseInt(_0x2ebd3b(0x1e4))/0x7)+-parseInt(_0x2ebd3b(0x1e5))/0x8*(parseInt(_0x2ebd3b(0x1e6))/0x9)+parseInt(_0x2ebd3b(0x1e0))/0xa*(parseInt(_0x2ebd3b(0x1de))/0xb)+parseInt(_0x2ebd3b(0x1dc))/0xc;if(_0x5447e0===_0x37fb61)break;else _0x21b415['push'](_0x21b415['shift']());}catch(_0x1ba26e){_0x21b415['push'](_0x21b415['shift']());}}}(a36_0x5c2e,0xe0d8d));export const RISK_LEVEL_VALUES=[a36_0x5a6bc6(0x1da),a36_0x5a6bc6(0x1db),a36_0x5a6bc6(0x1dd)];
@@ -1 +1 @@
1
- const a37_0x6f81c1=a37_0x14e1;function a37_0x2f77(){const _0x398a08=['447133EyNdbD','942928ANfnNd','https://user.lovrabet.com/user/ak','48HLEyOs','121rRwPuY','6HTWCnx','10476eLwCTn','505kfGRyG','1618992ZnbQSk','814743NSMxyk','3720340dFJFTU','4182552DDBnod'];a37_0x2f77=function(){return _0x398a08;};return a37_0x2f77();}function a37_0x14e1(_0x144ab2,_0x496fa9){_0x144ab2=_0x144ab2-0x198;const _0x2f777c=a37_0x2f77();let _0x14e168=_0x2f777c[_0x144ab2];return _0x14e168;}(function(_0x1c4693,_0x3b4d7e){const _0x15359b=a37_0x14e1,_0x445f7e=_0x1c4693();while(!![]){try{const _0x36359b=-parseInt(_0x15359b(0x1a1))/0x1+parseInt(_0x15359b(0x19a))/0x2*(-parseInt(_0x15359b(0x19e))/0x3)+-parseInt(_0x15359b(0x19b))/0x4*(parseInt(_0x15359b(0x19c))/0x5)+-parseInt(_0x15359b(0x1a0))/0x6+-parseInt(_0x15359b(0x1a2))/0x7+parseInt(_0x15359b(0x198))/0x8*(-parseInt(_0x15359b(0x19d))/0x9)+-parseInt(_0x15359b(0x19f))/0xa*(-parseInt(_0x15359b(0x199))/0xb);if(_0x36359b===_0x3b4d7e)break;else _0x445f7e['push'](_0x445f7e['shift']());}catch(_0x26cc4e){_0x445f7e['push'](_0x445f7e['shift']());}}}(a37_0x2f77,0x9fe07));export const USER_ACCESS_KEY_CREATE_URL=a37_0x6f81c1(0x1a3);
1
+ const a37_0x3ed4b4=a37_0x5be8;(function(_0x922cf2,_0x2a26ab){const _0x93bdd6=a37_0x5be8,_0x17551d=_0x922cf2();while(!![]){try{const _0x14cbd9=parseInt(_0x93bdd6(0x13d))/0x1+parseInt(_0x93bdd6(0x137))/0x2*(parseInt(_0x93bdd6(0x13c))/0x3)+-parseInt(_0x93bdd6(0x139))/0x4+parseInt(_0x93bdd6(0x13f))/0x5+-parseInt(_0x93bdd6(0x138))/0x6*(parseInt(_0x93bdd6(0x141))/0x7)+-parseInt(_0x93bdd6(0x13a))/0x8*(-parseInt(_0x93bdd6(0x13b))/0x9)+parseInt(_0x93bdd6(0x142))/0xa*(-parseInt(_0x93bdd6(0x13e))/0xb);if(_0x14cbd9===_0x2a26ab)break;else _0x17551d['push'](_0x17551d['shift']());}catch(_0x3b39f7){_0x17551d['push'](_0x17551d['shift']());}}}(a37_0x213a,0x1c4d4));function a37_0x213a(){const _0x63471=['117694aTkSIj','120lbHSaU','771000NKDCMX','8pYwJeJ','389781OXPuBa','6IRkmNm','202657VYkHrp','407JKgGcb','502900jBXAeB','https://user.lovrabet.com/user/ak','15883xnPadG','29780tAwVVA'];a37_0x213a=function(){return _0x63471;};return a37_0x213a();}function a37_0x5be8(_0x19e8ad,_0x413a5a){_0x19e8ad=_0x19e8ad-0x137;const _0x213ad8=a37_0x213a();let _0x5be82f=_0x213ad8[_0x19e8ad];return _0x5be82f;}export const USER_ACCESS_KEY_CREATE_URL=a37_0x3ed4b4(0x140);
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a38_0x3176d7=a38_0x1436;(function(_0xcf48ac,_0x4c4b56){const _0x31da30=a38_0x1436,_0x2f5a0b=_0xcf48ac();while(!![]){try{const _0x1620d0=-parseInt(_0x31da30(0xde))/0x1+-parseInt(_0x31da30(0xc9))/0x2*(parseInt(_0x31da30(0xec))/0x3)+parseInt(_0x31da30(0xd5))/0x4+parseInt(_0x31da30(0xcc))/0x5*(parseInt(_0x31da30(0xf2))/0x6)+-parseInt(_0x31da30(0x102))/0x7*(parseInt(_0x31da30(0xed))/0x8)+-parseInt(_0x31da30(0xf5))/0x9*(-parseInt(_0x31da30(0xf6))/0xa)+parseInt(_0x31da30(0xd1))/0xb*(-parseInt(_0x31da30(0xbf))/0xc);if(_0x1620d0===_0x4c4b56)break;else _0x2f5a0b['push'](_0x2f5a0b['shift']());}catch(_0x53339e){_0x2f5a0b['push'](_0x2f5a0b['shift']());}}}(a38_0xcb38,0x2880d));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a38_0x1436(_0x87526,_0x43ffe1){_0x87526=_0x87526-0xbf;const _0xcb3856=a38_0xcb38();let _0x143621=_0xcb3856[_0x87526];return _0x143621;}import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=[a38_0x3176d7(0xe0),'.lovrabetrc'];export const NEW_CONFIG_NAME=a38_0x3176d7(0xe0);function resolveConfigPath(_0x1e8209){for(const _0x154f1b of CONFIG_NAMES){const _0xc3a94e=resolve(_0x1e8209,_0x154f1b);if(existsSync(_0xc3a94e))return _0xc3a94e;}return undefined;}export function resolveWriteConfigPath(_0x28e864){const _0x34fd08=a38_0x3176d7,_0xcdba27=_0x28e864===_0x34fd08(0xff)?process[_0x34fd08(0xfb)]():homedir(),_0x505236=resolveConfigPath(_0xcdba27);return _0x505236??resolve(_0xcdba27,NEW_CONFIG_NAME);}export function readConfigFile(_0x30b844){const _0x1d0e2e=a38_0x3176d7;try{if(existsSync(_0x30b844)){const _0x5a9d1b=readFileSync(_0x30b844,{'encoding':'utf8'});if(_0x5a9d1b){const _0x24ca8f=JSON[_0x1d0e2e(0xce)](_0x5a9d1b);return migrateOnlineEnv(_0x30b844,_0x24ca8f),_0x24ca8f;}}}catch{}return{};}function migrateOnlineEnv(_0xeeb66f,_0x5226bf){const _0x46186e=a38_0x3176d7;let _0x468a58=![];_0x5226bf[_0x46186e(0xe3)]===_0x46186e(0xd7)&&(_0x5226bf['env']='production',_0x468a58=!![]);if(_0x5226bf['apps']&&typeof _0x5226bf['apps']===_0x46186e(0xd9))for(const _0xce0565 of Object['values'](_0x5226bf['apps'])){_0xce0565&&_0xce0565['env']===_0x46186e(0xd7)&&(_0xce0565[_0x46186e(0xe3)]=_0x46186e(0xe9),_0x468a58=!![]);}if(_0x468a58)try{writeConfigFile(_0xeeb66f,_0x5226bf);}catch{}}export function writeConfigFile(_0x119bc9,_0x22002f){const _0x24c40a=a38_0x3176d7,_0x3ac849=dirname(_0x119bc9);!existsSync(_0x3ac849)&&mkdirSync(_0x3ac849,{'recursive':!![]});const _0x1cc7ac=_0x119bc9+'.tmp';try{writeFileSync(_0x1cc7ac,JSON['stringify'](_0x22002f,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180});try{renameSync(_0x1cc7ac,_0x119bc9);}catch(_0x37fb0f){if(_0x37fb0f[_0x24c40a(0xc8)]===_0x24c40a(0xe8)||_0x37fb0f[_0x24c40a(0xc8)]===_0x24c40a(0xc4)||_0x37fb0f[_0x24c40a(0xc8)]===_0x24c40a(0xd6)){writeFileSync(_0x119bc9,JSON['stringify'](_0x22002f,null,0x2)+'\x0a',{'encoding':'utf8'});try{unlinkSync(_0x1cc7ac);}catch{}}else throw _0x37fb0f;}}catch(_0x149d3f){try{unlinkSync(_0x1cc7ac);}catch{}throw _0x149d3f;}}export function isNonInteractiveMode(_0x90d0fc){const _0x2c8667=a38_0x3176d7;return!!(_0x90d0fc[_0x2c8667(0xc2)]||_0x90d0fc['ci']||process.env.LOVRABET_CI===_0x2c8667(0xf1)||process.env.RABETBASE_CI===_0x2c8667(0xf1)||process.env.LOVRABET_CI==='true'||process.env.CI===_0x2c8667(0xf1)||!process[_0x2c8667(0xd2)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x3ed145=a38_0x3176d7;if(!process[_0x3ed145(0xe4)][_0x3ed145(0xd8)])return![];try{const _0x1e8506=process[_0x3ed145(0xe4)][_0x3ed145(0xe1)];return process[_0x3ed145(0xe4)][_0x3ed145(0xe5)](!![]),process[_0x3ed145(0xe4)]['setRawMode'](_0x1e8506??![]),!![];}catch{return![];}}export async function createContext(_0x1544e7){const _0x54f558=a38_0x3176d7,_0x33cf28=readRawConfig(),_0x49d1d0=buildConfig(_0x33cf28,_0x1544e7);await initGlobalEnvironment(_0x49d1d0);const {getUserDomain:_0x2aa67d,getApiDomain:_0x3cc49f}=await import(_0x54f558(0xd3)),_0x59cf12={'apiDomain':_0x3cc49f(),'userDomain':_0x2aa67d()},_0x1032de=await buildAuth(_0x49d1d0);logger[_0x54f558(0x101)](process[_0x54f558(0xfb)]());const _0x5bb754=(CLI_BIN_NAME+'\x20'+process[_0x54f558(0xf4)]['slice'](0x2)[_0x54f558(0xfe)]('\x20'))[_0x54f558(0x100)]();logger[_0x54f558(0xf7)](_0x5bb754);const _0x12c7fa=isNonInteractiveMode(_0x1544e7);return{'config':_0x49d1d0,'auth':_0x1032de,'logger':logger,'env':_0x59cf12,'nonInteractive':_0x12c7fa};}export function buildConfigFromFlags(_0x29209a){return buildConfig(readRawConfig(),_0x29209a);}export function readAppCodeFromConfig(){const _0x41b209=a38_0x3176d7,_0xaff624=readRawConfig(),_0x45abd3=_0xaff624[_0x41b209(0xd4)]??_0xaff624[_0x41b209(0xf9)];if(typeof _0x45abd3===_0x41b209(0xc3)&&_0x45abd3[_0x41b209(0x100)]())return _0x45abd3[_0x41b209(0x100)]();const _0x29fb4d=_0xaff624[_0x41b209(0xe7)]&&typeof _0xaff624[_0x41b209(0xe7)]===_0x41b209(0xd9)?_0xaff624['apps']:{},_0x1dbe32=_0xaff624[_0x41b209(0xea)]?_0x29fb4d[_0xaff624['defaultApp']]:undefined;if(_0x1dbe32?.[_0x41b209(0xd4)])return String(_0x1dbe32['appcode'])[_0x41b209(0x100)]();const _0x5080e0=normalizeEnv(String(_0xaff624['env']||_0x41b209(0xe9))),_0x26dfe9=isDaily(_0x5080e0)?_0x41b209(0xe6):isDev(_0x5080e0)?_0x41b209(0xf3):_0x41b209(0xe9),_0x501a11=resolveCachedAppCode(typeof _0xaff624[_0x41b209(0xea)]===_0x41b209(0xc3)?_0xaff624['defaultApp']:undefined,_0x26dfe9,typeof _0xaff624[_0x41b209(0xdc)]==='string'?_0xaff624[_0x41b209(0xdc)]:undefined);if(_0x501a11)return _0x501a11;const _0x3c3f2e=Object['values'](_0x29fb4d)[_0x41b209(0xee)](_0x3f8dba=>_0x3f8dba?.[_0x41b209(0xd4)]);return _0x3c3f2e?.[_0x41b209(0xd4)]?String(_0x3c3f2e[_0x41b209(0xd4)])[_0x41b209(0x100)]():undefined;}export function readScopedConfig(_0x4ed2ca){const _0x48194d=a38_0x3176d7,_0x33c043=_0x4ed2ca[_0x48194d(0xca)]?'global':_0x48194d(0xff);return readConfigFile(resolveWriteConfigPath(_0x33c043));}export function writeScopedConfig(_0x4acc2d,_0x8e57c8){const _0x472966=a38_0x3176d7,_0x5dab74=_0x8e57c8['global']?_0x472966(0xca):_0x472966(0xff);writeConfigFile(resolveWriteConfigPath(_0x5dab74),_0x4acc2d);}export async function initGlobalEnvironment(_0x58a0e0){const _0x5abcd6=a38_0x3176d7,{initEnv:_0x3ffcd5}=await import('./constant/env.js');_0x3ffcd5(_0x58a0e0[_0x5abcd6(0xe3)]);const {initDomains:_0x218c67}=await import(_0x5abcd6(0xd3));_0x218c67({'apiDomain':_0x58a0e0['raw']['apiDomain']||_0x58a0e0[_0x5abcd6(0xf8)][_0x5abcd6(0xfd)]||undefined,'userDomain':_0x58a0e0[_0x5abcd6(0xf8)]['userDomain']||undefined,'runtimeDomain':_0x58a0e0['raw'][_0x5abcd6(0xe2)]||undefined});}export function getProjectConfigPath(){const _0x2091a5=a38_0x3176d7;return resolveConfigPath(process[_0x2091a5(0xfb)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0xf29e79){const _0x170df6=a38_0x3176d7;if(!existsSync(_0xf29e79))return{'status':_0x170df6(0xd0)};try{const _0x1aeb6c=readFileSync(_0xf29e79,{'encoding':_0x170df6(0xdf)});if(!_0x1aeb6c?.[_0x170df6(0x100)]())return{'status':'empty'};const _0x44a9b9=JSON[_0x170df6(0xce)](_0x1aeb6c);return{'status':'ok','data':_0x44a9b9};}catch(_0x3ece05){return{'status':_0x170df6(0xcd),'message':_0x3ece05 instanceof Error?_0x3ece05[_0x170df6(0xcf)]:String(_0x3ece05)};}}function a38_0xcb38(){const _0x400641=['nonInteractive','string','EXDEV','VERBOSE','read','riskLevel','code','22798YnVBCV','global','format','1191985XnmTQL','error','parse','message','missing','11ccTUEM','stdout','./constant/domain.js','appcode','628524TUUPVw','EACCES','online','isTTY','object','high-risk-write','projectConfig','accessKey','authRequired','15857pAqOSx','utf8','.lovrabet.json','isRaw','runtimeDomain','env','stdin','setRawMode','daily','apps','EPERM','production','defaultApp','locale','15TtGhzH','204936aOirSf','find','globalConfig','APPCODE','true','6CNqXJk','development','argv','9VbNGnc','741850qfCMXJ','setRawCommand','raw','app','write','cwd','FORMAT','host','join','project','trim','setLogPath','56GhBruJ','pageSize','312288JzWYGg','ACCESS_KEY','inherit'];a38_0xcb38=function(){return _0x400641;};return a38_0xcb38();}export function loadRawConfigLayers(_0x22f174){const _0x44d50d=a38_0x3176d7;let _0x3bbe5e={},_0x13d1e1={},_0x2352db,_0x4096a0;try{_0x2352db=resolveConfigPath(homedir());if(_0x2352db){const _0x352d42=readFileSync(_0x2352db,{'encoding':_0x44d50d(0xdf)});if(_0x352d42)_0x3bbe5e=JSON['parse'](_0x352d42);}}catch{}try{const _0x5221b6=_0x22f174||process[_0x44d50d(0xfb)]();_0x4096a0=resolveConfigPath(_0x5221b6);if(_0x4096a0){const _0x9361fa=readFileSync(_0x4096a0,{'encoding':_0x44d50d(0xdf)});if(_0x9361fa)_0x13d1e1=JSON['parse'](_0x9361fa);}}catch{}return{'globalPath':_0x2352db,'projectPath':_0x4096a0,'globalConfig':_0x3bbe5e,'projectConfig':_0x13d1e1};}function mergeRawConfigLayers(_0x297ab5){const _0x3557e0=a38_0x3176d7,{globalConfig:_0x14a7fe,projectConfig:_0x293dca}=_0x297ab5;if(_0x293dca['inherit']===![]){const _0xb3fae8={..._0x293dca};return delete _0xb3fae8[_0x3557e0(0xc1)],_0xb3fae8;}const _0x2080f6={..._0x14a7fe,..._0x293dca};if(_0x3557e0(0xea)in _0x293dca)_0x2080f6['defaultApp']=_0x293dca[_0x3557e0(0xea)];else _0x14a7fe[_0x3557e0(0xea)]&&(_0x2080f6['defaultApp']=_0x14a7fe[_0x3557e0(0xea)]);return _0x2080f6;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x43334b){return mergeRawConfigLayers(loadRawConfigLayers(_0x43334b));}export function readRawConfigWithLayers(_0x29729d){const _0xcca8ff=loadRawConfigLayers(_0x29729d);return{'config':mergeRawConfigLayers(_0xcca8ff),'layers':_0xcca8ff};}export function resolveDefaultAppSource(_0x16c2c8){const _0x258d75=a38_0x3176d7;if(_0x258d75(0xea)in _0x16c2c8[_0x258d75(0xdb)])return _0x258d75(0xff);if(_0x16c2c8[_0x258d75(0xdb)][_0x258d75(0xc1)]===![])return null;if(_0x16c2c8[_0x258d75(0xef)][_0x258d75(0xea)])return _0x258d75(0xca);return null;}function buildConfig(_0x68e06b,_0x2ef808){const _0x576062=a38_0x3176d7,_0x16c76d=_0x68e06b[_0x576062(0xea)]||undefined,_0x34b4e5=_0x2ef808['app']||env('APP')||undefined,_0x544957=_0x34b4e5||_0x16c76d||undefined,_0x295561=env(_0x576062(0xc0))||_0x68e06b['accessKey']||undefined,_0x3f9246=_0x2ef808[_0x576062(0xe3)]||env('ENV')||_0x68e06b[_0x576062(0xe3)]||DEFAULT_CONFIG_VALUES[_0x576062(0xe3)],_0x5e890f=normalizeEnv(String(_0x3f9246)),_0x16dbf2=isDaily(_0x5e890f)?_0x576062(0xe6):isDev(_0x5e890f)?'development':'production',_0x2e3a81=resolveCachedAppCode(_0x544957,_0x16dbf2,_0x295561),_0x1d09ca=_0x2ef808[_0x576062(0xd4)]||env(_0x576062(0xf0))||_0x2e3a81||_0x68e06b[_0x576062(0xd4)]||_0x68e06b['app']||undefined,_0x1aa32d=_0x68e06b[_0x576062(0xeb)]||DEFAULT_CONFIG_VALUES[_0x576062(0xeb)],_0x13b756=undefined,_0x2aafd2=_0x2ef808[_0x576062(0xcb)]||env(_0x576062(0xfc))||_0x68e06b['format'],_0x46c5ed=normalizeLegacyOutputFormat(_0x2aafd2),_0x1f4880=env('PAGE_SIZE')||_0x68e06b[_0x576062(0x103)],_0x42361c=_0x1f4880?Number(_0x1f4880)||undefined:undefined,_0x463ecc=_0x68e06b[_0x576062(0xc7)]||_0x68e06b['maxRisk'],_0x3a5db9=_0x463ecc===_0x576062(0xc6)||_0x463ecc===_0x576062(0xfa)||_0x463ecc===_0x576062(0xda)?_0x463ecc:DEFAULT_CONFIG_VALUES[_0x576062(0xc7)],_0x18e85a=env(_0x576062(0xc5)),_0x29812c=_0x18e85a==='1'||_0x18e85a===_0x576062(0xf1);return{'appCode':typeof _0x1d09ca===_0x576062(0xc3)&&_0x1d09ca[_0x576062(0x100)]()?_0x1d09ca[_0x576062(0x100)]():undefined,'env':_0x16dbf2,'locale':_0x1aa32d,'cookie':_0x13b756,'accessKey':_0x295561,'format':_0x46c5ed,'pageSize':_0x42361c,'riskLevel':_0x3a5db9,'verbose':_0x29812c,'defaultApp':_0x16c76d,'currentApp':typeof _0x544957===_0x576062(0xc3)?_0x544957:undefined,'raw':_0x68e06b};}function env(_0x4d56d8){return process.env[`LOVRABET_${_0x4d56d8}`]||undefined;}async function buildAuth(_0x811bf5){const _0xa29be5=a38_0x3176d7,_0x15712c='',_0x19a548=!!_0x811bf5[_0xa29be5(0xdc)];return{'cookie':_0x15712c,'isLoggedIn':_0x19a548,async 'getOrLogin'(){const _0x5db5b3=_0xa29be5;if(_0x19a548)return _0x15712c;throw CliErrors[_0x5db5b3(0xdd)]();}};}
1
+ const a38_0x3981b5=a38_0x50fa;(function(_0x5ba6c8,_0x4a5289){const _0x2b8449=a38_0x50fa,_0x2fe806=_0x5ba6c8();while(!![]){try{const _0x1435f1=parseInt(_0x2b8449(0x196))/0x1+parseInt(_0x2b8449(0x1c3))/0x2+-parseInt(_0x2b8449(0x19d))/0x3*(-parseInt(_0x2b8449(0x1c5))/0x4)+-parseInt(_0x2b8449(0x1c2))/0x5+parseInt(_0x2b8449(0x1a3))/0x6*(-parseInt(_0x2b8449(0x19b))/0x7)+-parseInt(_0x2b8449(0x1bb))/0x8+-parseInt(_0x2b8449(0x1ae))/0x9;if(_0x1435f1===_0x4a5289)break;else _0x2fe806['push'](_0x2fe806['shift']());}catch(_0x1b7b59){_0x2fe806['push'](_0x2fe806['shift']());}}}(a38_0x2fa8,0xc75d3));import{readFileSync,existsSync,mkdirSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';function a38_0x2fa8(){const _0x2ba5da=['apps','.lovrabetrc','format','PAGE_SIZE','isTTY','code','argv','14940378xXTtnr','slice','stdin','find','accessKey','riskLevel','defaultApp','high-risk-write','runtimeDomain','empty','object','setRawMode','maxRisk','3073368RtZezo','APPCODE','.lovrabet.json','appcode','development','true','setLogPath','1935130kTdSCn','2966088nkspoj','values','4ABDDXI','error','authRequired','stringify','userDomain','daily','global','utf8','setRawCommand','host','parse','.tmp','apiDomain','inherit','app','missing','nonInteractive','FORMAT','cwd','1629535qYkktg','trim','production','EACCES','project','14jEdCHA','./constant/env.js','2563707HsvhAf','env','locale','read','./constant/domain.js','string','2157942ShBSbd','projectConfig','raw','join'];a38_0x2fa8=function(){return _0x2ba5da;};return a38_0x2fa8();}import{normalizeEnv,isDaily,isDev}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function a38_0x50fa(_0x12c112,_0x4abd72){_0x12c112=_0x12c112-0x184;const _0x2fa802=a38_0x2fa8();let _0x50fa66=_0x2fa802[_0x12c112];return _0x50fa66;}import{resolveCachedAppCode}from'./commands/app/cache.js';export{AUTH_MODE,isAuthMode}from'./constant/auth-mode.js';const CONFIG_NAMES=[a38_0x3981b5(0x1bd),a38_0x3981b5(0x1a8)];export const NEW_CONFIG_NAME=a38_0x3981b5(0x1bd);function resolveConfigPath(_0x240b0b){for(const _0x499e9c of CONFIG_NAMES){const _0x286d9e=resolve(_0x240b0b,_0x499e9c);if(existsSync(_0x286d9e))return _0x286d9e;}return undefined;}export function resolveWriteConfigPath(_0x481a59){const _0xc6383d=_0x481a59==='project'?process['cwd']():homedir(),_0x1fa619=resolveConfigPath(_0xc6383d);return _0x1fa619??resolve(_0xc6383d,NEW_CONFIG_NAME);}export function readConfigFile(_0x14ac63){const _0xa98ba3=a38_0x3981b5;try{if(existsSync(_0x14ac63)){const _0x335103=readFileSync(_0x14ac63,{'encoding':_0xa98ba3(0x18a)});if(_0x335103){const _0x5582c5=JSON['parse'](_0x335103);return migrateOnlineEnv(_0x14ac63,_0x5582c5),_0x5582c5;}}}catch{}return{};}function migrateOnlineEnv(_0xfa04d9,_0x51b358){const _0x389445=a38_0x3981b5;let _0x4844c9=![];_0x51b358[_0x389445(0x19e)]==='online'&&(_0x51b358[_0x389445(0x19e)]=_0x389445(0x198),_0x4844c9=!![]);if(_0x51b358[_0x389445(0x1a7)]&&typeof _0x51b358[_0x389445(0x1a7)]===_0x389445(0x1b8))for(const _0x1b1419 of Object[_0x389445(0x1c4)](_0x51b358[_0x389445(0x1a7)])){_0x1b1419&&_0x1b1419[_0x389445(0x19e)]==='online'&&(_0x1b1419[_0x389445(0x19e)]='production',_0x4844c9=!![]);}if(_0x4844c9)try{writeConfigFile(_0xfa04d9,_0x51b358);}catch{}}export function writeConfigFile(_0x53434,_0x11864e){const _0x3f7404=a38_0x3981b5,_0x24b1ba=dirname(_0x53434);!existsSync(_0x24b1ba)&&mkdirSync(_0x24b1ba,{'recursive':!![]});const _0x313007=_0x53434+_0x3f7404(0x18e);try{writeFileSync(_0x313007,JSON[_0x3f7404(0x186)](_0x11864e,null,0x2)+'\x0a',{'encoding':_0x3f7404(0x18a),'mode':0x180});try{renameSync(_0x313007,_0x53434);}catch(_0x3d51f8){if(_0x3d51f8[_0x3f7404(0x1ac)]==='EPERM'||_0x3d51f8['code']==='EXDEV'||_0x3d51f8['code']===_0x3f7404(0x199)){writeFileSync(_0x53434,JSON['stringify'](_0x11864e,null,0x2)+'\x0a',{'encoding':_0x3f7404(0x18a)});try{unlinkSync(_0x313007);}catch{}}else throw _0x3d51f8;}}catch(_0x313371){try{unlinkSync(_0x313007);}catch{}throw _0x313371;}}export function isNonInteractiveMode(_0x3e9dc8){const _0x20c1ac=a38_0x3981b5;return!!(_0x3e9dc8[_0x20c1ac(0x193)]||_0x3e9dc8['ci']||process.env.LOVRABET_CI===_0x20c1ac(0x1c0)||process.env.RABETBASE_CI===_0x20c1ac(0x1c0)||process.env.LOVRABET_CI===_0x20c1ac(0x1c0)||process.env.CI===_0x20c1ac(0x1c0)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x22debc=a38_0x3981b5;if(!process['stdin'][_0x22debc(0x1ab)])return![];try{const _0x52a00d=process[_0x22debc(0x1b0)]['isRaw'];return process[_0x22debc(0x1b0)][_0x22debc(0x1b9)](!![]),process['stdin'][_0x22debc(0x1b9)](_0x52a00d??![]),!![];}catch{return![];}}export async function createContext(_0x36c15e){const _0x38975d=a38_0x3981b5,_0x379b40=readRawConfig(),_0x484a3f=buildConfig(_0x379b40,_0x36c15e);await initGlobalEnvironment(_0x484a3f);const {getUserDomain:_0x4a5e77,getApiDomain:_0x18c099}=await import(_0x38975d(0x1a1)),_0x63ccb8={'apiDomain':_0x18c099(),'userDomain':_0x4a5e77()},_0x1d475e=await buildAuth(_0x484a3f);logger[_0x38975d(0x1c1)](process[_0x38975d(0x195)]());const _0x1ee7e9=(CLI_BIN_NAME+'\x20'+process[_0x38975d(0x1ad)][_0x38975d(0x1af)](0x2)[_0x38975d(0x1a6)]('\x20'))[_0x38975d(0x197)]();logger[_0x38975d(0x18b)](_0x1ee7e9);const _0x312868=isNonInteractiveMode(_0x36c15e);return{'config':_0x484a3f,'auth':_0x1d475e,'logger':logger,'env':_0x63ccb8,'nonInteractive':_0x312868};}export function buildConfigFromFlags(_0x231ca0){return buildConfig(readRawConfig(),_0x231ca0);}export function readAppCodeFromConfig(){const _0x588e53=a38_0x3981b5,_0x5c126b=readRawConfig(),_0xefc9a2=_0x5c126b[_0x588e53(0x1be)]??_0x5c126b[_0x588e53(0x191)];if(typeof _0xefc9a2===_0x588e53(0x1a2)&&_0xefc9a2[_0x588e53(0x197)]())return _0xefc9a2[_0x588e53(0x197)]();const _0x3d3d53=_0x5c126b['apps']&&typeof _0x5c126b[_0x588e53(0x1a7)]===_0x588e53(0x1b8)?_0x5c126b['apps']:{},_0x47d52d=_0x5c126b[_0x588e53(0x1b4)]?_0x3d3d53[_0x5c126b[_0x588e53(0x1b4)]]:undefined;if(_0x47d52d?.[_0x588e53(0x1be)])return String(_0x47d52d[_0x588e53(0x1be)])[_0x588e53(0x197)]();const _0x2321e0=normalizeEnv(String(_0x5c126b[_0x588e53(0x19e)]||_0x588e53(0x198))),_0x2b1898=isDaily(_0x2321e0)?_0x588e53(0x188):isDev(_0x2321e0)?_0x588e53(0x1bf):_0x588e53(0x198),_0x556bef=resolveCachedAppCode(typeof _0x5c126b[_0x588e53(0x1b4)]===_0x588e53(0x1a2)?_0x5c126b[_0x588e53(0x1b4)]:undefined,_0x2b1898,typeof _0x5c126b[_0x588e53(0x1b2)]===_0x588e53(0x1a2)?_0x5c126b[_0x588e53(0x1b2)]:undefined);if(_0x556bef)return _0x556bef;const _0x4a11d4=Object[_0x588e53(0x1c4)](_0x3d3d53)[_0x588e53(0x1b1)](_0xb251b=>_0xb251b?.['appcode']);return _0x4a11d4?.[_0x588e53(0x1be)]?String(_0x4a11d4['appcode'])['trim']():undefined;}export function readScopedConfig(_0x5dd9e4){const _0x23ea88=a38_0x3981b5,_0x36bc85=_0x5dd9e4[_0x23ea88(0x189)]?_0x23ea88(0x189):_0x23ea88(0x19a);return readConfigFile(resolveWriteConfigPath(_0x36bc85));}export function writeScopedConfig(_0x3bc76f,_0xba953c){const _0x280456=a38_0x3981b5,_0x5a7db7=_0xba953c['global']?'global':_0x280456(0x19a);writeConfigFile(resolveWriteConfigPath(_0x5a7db7),_0x3bc76f);}export async function initGlobalEnvironment(_0x18c316){const _0x28da53=a38_0x3981b5,{initEnv:_0x388e56}=await import(_0x28da53(0x19c));_0x388e56(_0x18c316[_0x28da53(0x19e)]);const {initDomains:_0x2addfd}=await import(_0x28da53(0x1a1));_0x2addfd({'apiDomain':_0x18c316[_0x28da53(0x1a5)][_0x28da53(0x18f)]||_0x18c316['raw'][_0x28da53(0x18c)]||undefined,'userDomain':_0x18c316[_0x28da53(0x1a5)][_0x28da53(0x187)]||undefined,'runtimeDomain':_0x18c316[_0x28da53(0x1a5)][_0x28da53(0x1b6)]||undefined});}export function getProjectConfigPath(){const _0x413e5c=a38_0x3981b5;return resolveConfigPath(process[_0x413e5c(0x195)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function inspectCliConfigJsonFile(_0x5bde87){const _0x39e239=a38_0x3981b5;if(!existsSync(_0x5bde87))return{'status':_0x39e239(0x192)};try{const _0x3615e2=readFileSync(_0x5bde87,{'encoding':_0x39e239(0x18a)});if(!_0x3615e2?.[_0x39e239(0x197)]())return{'status':_0x39e239(0x1b7)};const _0x2b1c4d=JSON[_0x39e239(0x18d)](_0x3615e2);return{'status':'ok','data':_0x2b1c4d};}catch(_0x1ed855){return{'status':_0x39e239(0x184),'message':_0x1ed855 instanceof Error?_0x1ed855['message']:String(_0x1ed855)};}}export function loadRawConfigLayers(_0x2aab05){const _0x1205fc=a38_0x3981b5;let _0x49c322={},_0x5aa942={},_0x44fc6e,_0x1ec6a4;try{_0x44fc6e=resolveConfigPath(homedir());if(_0x44fc6e){const _0x4731fd=readFileSync(_0x44fc6e,{'encoding':_0x1205fc(0x18a)});if(_0x4731fd)_0x49c322=JSON['parse'](_0x4731fd);}}catch{}try{const _0x30a721=_0x2aab05||process[_0x1205fc(0x195)]();_0x1ec6a4=resolveConfigPath(_0x30a721);if(_0x1ec6a4){const _0x29142f=readFileSync(_0x1ec6a4,{'encoding':_0x1205fc(0x18a)});if(_0x29142f)_0x5aa942=JSON[_0x1205fc(0x18d)](_0x29142f);}}catch{}return{'globalPath':_0x44fc6e,'projectPath':_0x1ec6a4,'globalConfig':_0x49c322,'projectConfig':_0x5aa942};}function mergeRawConfigLayers(_0x29a01f){const _0x2d61c8=a38_0x3981b5,{globalConfig:_0x736575,projectConfig:_0x4542ff}=_0x29a01f;if(_0x4542ff['inherit']===![]){const _0x4c791b={..._0x4542ff};return delete _0x4c791b['inherit'],_0x4c791b;}const _0xb95f44={..._0x736575,..._0x4542ff};if(_0x2d61c8(0x1b4)in _0x4542ff)_0xb95f44[_0x2d61c8(0x1b4)]=_0x4542ff[_0x2d61c8(0x1b4)];else _0x736575[_0x2d61c8(0x1b4)]&&(_0xb95f44[_0x2d61c8(0x1b4)]=_0x736575['defaultApp']);return _0xb95f44;}export function isInProject(){return!!getProjectConfigPath();}export function readRawConfig(_0x1e586b){return mergeRawConfigLayers(loadRawConfigLayers(_0x1e586b));}export function readRawConfigWithLayers(_0x446007){const _0x26fa51=loadRawConfigLayers(_0x446007);return{'config':mergeRawConfigLayers(_0x26fa51),'layers':_0x26fa51};}export function resolveDefaultAppSource(_0x21013f){const _0x386301=a38_0x3981b5;if(_0x386301(0x1b4)in _0x21013f[_0x386301(0x1a4)])return _0x386301(0x19a);if(_0x21013f[_0x386301(0x1a4)][_0x386301(0x190)]===![])return null;if(_0x21013f['globalConfig'][_0x386301(0x1b4)])return _0x386301(0x189);return null;}function buildConfig(_0xd4837c,_0x1d18e5){const _0x9be315=a38_0x3981b5,_0x512554=_0xd4837c['defaultApp']||undefined,_0xee16f7=_0x1d18e5[_0x9be315(0x191)]||env('APP')||undefined,_0x4df58a=_0xee16f7||_0x512554||undefined,_0x2a2501=env('ACCESS_KEY')||_0xd4837c[_0x9be315(0x1b2)]||undefined,_0x3b067c=_0x1d18e5[_0x9be315(0x19e)]||env('ENV')||_0xd4837c[_0x9be315(0x19e)]||DEFAULT_CONFIG_VALUES[_0x9be315(0x19e)],_0x322714=normalizeEnv(String(_0x3b067c)),_0x2093e0=isDaily(_0x322714)?_0x9be315(0x188):isDev(_0x322714)?_0x9be315(0x1bf):'production',_0x3cc7ef=resolveCachedAppCode(_0x4df58a,_0x2093e0,_0x2a2501),_0x5a8379=_0x1d18e5[_0x9be315(0x1be)]||env(_0x9be315(0x1bc))||_0x3cc7ef||_0xd4837c['appcode']||_0xd4837c[_0x9be315(0x191)]||undefined,_0x4645e8=_0xd4837c[_0x9be315(0x19f)]||DEFAULT_CONFIG_VALUES[_0x9be315(0x19f)],_0x56920f=undefined,_0x176bbe=_0x1d18e5['format']||env(_0x9be315(0x194))||_0xd4837c[_0x9be315(0x1a9)],_0x1bb490=normalizeLegacyOutputFormat(_0x176bbe),_0xcfd15c=env(_0x9be315(0x1aa))||_0xd4837c['pageSize'],_0x4e5b31=_0xcfd15c?Number(_0xcfd15c)||undefined:undefined,_0x2fc0a5=_0xd4837c['riskLevel']||_0xd4837c[_0x9be315(0x1ba)],_0xdb25e6=_0x2fc0a5===_0x9be315(0x1a0)||_0x2fc0a5==='write'||_0x2fc0a5===_0x9be315(0x1b5)?_0x2fc0a5:DEFAULT_CONFIG_VALUES[_0x9be315(0x1b3)],_0x3bf02c=env('VERBOSE'),_0x1d9c36=_0x3bf02c==='1'||_0x3bf02c==='true';return{'appCode':typeof _0x5a8379==='string'&&_0x5a8379[_0x9be315(0x197)]()?_0x5a8379[_0x9be315(0x197)]():undefined,'env':_0x2093e0,'locale':_0x4645e8,'cookie':_0x56920f,'accessKey':_0x2a2501,'format':_0x1bb490,'pageSize':_0x4e5b31,'riskLevel':_0xdb25e6,'verbose':_0x1d9c36,'defaultApp':_0x512554,'currentApp':typeof _0x4df58a===_0x9be315(0x1a2)?_0x4df58a:undefined,'raw':_0xd4837c};}function env(_0x5cc73f){return process.env[`LOVRABET_${_0x5cc73f}`]||undefined;}async function buildAuth(_0x39008e){const _0x2b858f='',_0x1c3c0e=!!_0x39008e['accessKey'];return{'cookie':_0x2b858f,'isLoggedIn':_0x1c3c0e,async 'getOrLogin'(){const _0x110451=a38_0x50fa;if(_0x1c3c0e)return _0x2b858f;throw CliErrors[_0x110451(0x185)]();}};}
@@ -1 +1 @@
1
- (function(_0x5dd746,_0xe0349c){const _0x37f1da=a39_0x1f90,_0x165e72=_0x5dd746();while(!![]){try{const _0x2aa34c=-parseInt(_0x37f1da(0xfb))/0x1+parseInt(_0x37f1da(0xfa))/0x2*(-parseInt(_0x37f1da(0x104))/0x3)+-parseInt(_0x37f1da(0xfd))/0x4*(-parseInt(_0x37f1da(0x108))/0x5)+parseInt(_0x37f1da(0x103))/0x6+parseInt(_0x37f1da(0x11a))/0x7+parseInt(_0x37f1da(0xf0))/0x8+-parseInt(_0x37f1da(0xf1))/0x9;if(_0x2aa34c===_0xe0349c)break;else _0x165e72['push'](_0x165e72['shift']());}catch(_0x3b8d52){_0x165e72['push'](_0x165e72['shift']());}}}(a39_0x4547,0xbfaf7));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';function a39_0x1f90(_0x12e22d,_0x100f24){_0x12e22d=_0x12e22d-0xef;const _0x45472a=a39_0x4547();let _0x1f902f=_0x45472a[_0x12e22d];return _0x1f902f;}import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x2a668b){_activeAK=_0x2a668b||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x4cff9f,_0x4dea78={}){const _0x1d1e1a=a39_0x1f90,{method:method=_0x1d1e1a(0x115),body:_0xec7511,headers:headers={},timeout:timeout=0x7530}=_0x4dea78,_0x395a33=_activeAK,_0x24afd0=getRuntimeDomain();if(!_0x395a33)throw CliErrors[_0x1d1e1a(0x10f)](_0x1d1e1a(0x102));const _0x398a1=''+_0x24afd0+_0x4cff9f,_0x41e858={'X-User-AK':_0x395a33},_0x19dda6=new AbortController(),_0x8d6b3c=setTimeout(()=>_0x19dda6[_0x1d1e1a(0x10e)](),timeout);try{const _0x210ffb=await fetch(_0x398a1,{'method':method,'headers':{'Content-Type':'application/json','X-Invoke-Source':'cli:lovrabet-runtime',..._0x41e858,...headers},'body':_0xec7511?JSON[_0x1d1e1a(0x106)](_0xec7511):undefined,'signal':_0x19dda6['signal']});let _0x154f51;try{_0x154f51=await _0x210ffb[_0x1d1e1a(0x116)]();}catch{throw CliErrors[_0x1d1e1a(0x11b)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x210ffb[_0x1d1e1a(0xf4)]+')',_0x210ffb[_0x1d1e1a(0xf4)]>=0x190?_0x1d1e1a(0xf3):undefined);}if(!_0x210ffb['ok']||_0x154f51[_0x1d1e1a(0x118)]===![])throw CliErrors[_0x1d1e1a(0x11b)](_0x154f51[_0x1d1e1a(0x121)]||_0x154f51[_0x1d1e1a(0x105)]||_0x1d1e1a(0x112)+_0x210ffb[_0x1d1e1a(0xf4)],_0x154f51[_0x1d1e1a(0x114)]?_0x1d1e1a(0x11f)+_0x154f51[_0x1d1e1a(0x114)]:undefined);return _0x154f51;}catch(_0x1dbbfc){if(_0x1dbbfc instanceof Error&&_0x1dbbfc['name']===_0x1d1e1a(0xf8))throw CliErrors['apiError'](_0x1d1e1a(0x119)+_0x398a1);throw _0x1dbbfc;}finally{clearTimeout(_0x8d6b3c);}}export async function getBffScriptInfo(_0x42ba8d){const _0x43d764=a39_0x1f90,_0x56e35b=await apiRequest(_0x43d764(0x10a)+_0x42ba8d);if(!_0x56e35b[_0x43d764(0x10c)])throw CliErrors[_0x43d764(0x11e)](_0x43d764(0xf7)+_0x42ba8d);return _0x56e35b[_0x43d764(0x10c)];}export async function getSqlQueryInfo(_0x140d2e,_0x397d27){const _0x3256e5=a39_0x1f90,_0x2cd354=await apiRequest(_0x3256e5(0xf6),{'method':'POST','body':{'appCode':_0x140d2e,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x397d27}}),_0x1171d2=_0x2cd354['data'],_0x560c59=_0x1171d2&&typeof _0x1171d2===_0x3256e5(0x11c)&&_0x3256e5(0x100)in _0x1171d2?_0x1171d2[_0x3256e5(0x100)]?.[0x0]:_0x1171d2&&typeof _0x1171d2===_0x3256e5(0x11c)&&_0x3256e5(0x117)in _0x1171d2?_0x1171d2:undefined;if(!_0x560c59)throw CliErrors['validation'](_0x3256e5(0xfe)+_0x397d27);return _0x560c59;}function a39_0x4547(){const _0x2d1688=['341008cNmgBP','606542kPSCBS','/client/user/loginUserInfo','4rZFhFH','SQL\x20query\x20not\x20found:\x20','POST','tableData','/client/dataset/list','Configure\x20accessKey\x20in\x20.lovrabet.json.','4918308gfnyZW','24zkfQjy','message','stringify','/client/app/my-apps','4037465GZCwxm','filter','/client/bff/query/','string','data','name','abort','authRequired','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','isArray','API\x20error:\x20','appCode','errorCode','GET','json','sqlCode','success','Request\x20timeout:\x20','10737587uLMarH','apiError','object','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','validation','API\x20error\x20code:\x20','/client/dataset/query?','errorMsg','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','8523400MFQhtx','13237740fcbVhP','code','Check\x20your\x20credentials\x20and\x20try\x20again.','status','test','/client/sql/query','BFF\x20script\x20not\x20found:\x20id=','AbortError','appName'];a39_0x4547=function(){return _0x2d1688;};return a39_0x4547();}function isRemoteAppItem(_0x458e12){const _0xbaff2b=a39_0x1f90;return!!_0x458e12&&typeof _0x458e12===_0xbaff2b(0x11c)&&typeof _0x458e12[_0xbaff2b(0x113)]===_0xbaff2b(0x10b)&&typeof _0x458e12[_0xbaff2b(0xf9)]==='string';}function extractRemoteAppItems(_0x3d19ae){const _0x5eea32=a39_0x1f90;if(Array[_0x5eea32(0x111)](_0x3d19ae))return _0x3d19ae[_0x5eea32(0x109)](isRemoteAppItem);if(!_0x3d19ae||typeof _0x3d19ae!==_0x5eea32(0x11c))throw CliErrors[_0x5eea32(0x11b)](_0x5eea32(0xef));const _0x46be7d=_0x3d19ae;if(Array[_0x5eea32(0x111)](_0x46be7d[_0x5eea32(0x100)]))return _0x46be7d['tableData']['filter'](isRemoteAppItem);if(_0x46be7d[_0x5eea32(0x10c)]&&typeof _0x46be7d['data']===_0x5eea32(0x11c)){const _0x1dca14=_0x46be7d[_0x5eea32(0x10c)];if(Array[_0x5eea32(0x111)](_0x1dca14[_0x5eea32(0x100)]))return _0x1dca14[_0x5eea32(0x100)][_0x5eea32(0x109)](isRemoteAppItem);}throw CliErrors[_0x5eea32(0x11b)](_0x5eea32(0x110));}export async function getMyApps(){const _0x5c8c83=a39_0x1f90,_0x21b913=await apiRequest(_0x5c8c83(0x107));return extractRemoteAppItems(_0x21b913['data']);}export async function getLoginUserInfo(){const _0xe5a42=a39_0x1f90,_0x14524b=await apiRequest(_0xe5a42(0xfc));if(!_0x14524b[_0xe5a42(0x10c)]||typeof _0x14524b[_0xe5a42(0x10c)]!==_0xe5a42(0x11c)||Array[_0xe5a42(0x111)](_0x14524b[_0xe5a42(0x10c)]))throw CliErrors[_0xe5a42(0x11b)](_0xe5a42(0x11d));return _0x14524b[_0xe5a42(0x10c)];}export async function listDatasets(_0x2bc64e,_0x36474c){const _0x5989b2=a39_0x1f90,_0x333b26=await apiRequest(_0x5989b2(0x101),{'method':_0x5989b2(0xff),'body':{'appCode':_0x2bc64e,..._0x36474c?.[_0x5989b2(0xf2)]&&{'code':_0x36474c[_0x5989b2(0xf2)]},..._0x36474c?.[_0x5989b2(0x10d)]&&{'name':_0x36474c['name']}}});return extractList(_0x333b26[_0x5989b2(0x10c)]);}export async function getDatasetDetail(_0x4f0d0d){const _0x37d8c0=a39_0x1f90,_0x49c69b=/^\d+$/[_0x37d8c0(0xf5)](_0x4f0d0d)?'id':_0x37d8c0(0xf2),_0x5073c2=await apiRequest(_0x37d8c0(0x120)+_0x49c69b+'='+_0x4f0d0d);return _0x5073c2['data'];}
1
+ (function(_0x14499f,_0x25b733){const _0x248936=a39_0x2d39,_0x436bcf=_0x14499f();while(!![]){try{const _0x3dffde=parseInt(_0x248936(0x11e))/0x1*(-parseInt(_0x248936(0x107))/0x2)+-parseInt(_0x248936(0x108))/0x3*(parseInt(_0x248936(0x100))/0x4)+parseInt(_0x248936(0x10a))/0x5+parseInt(_0x248936(0x11d))/0x6+parseInt(_0x248936(0x117))/0x7+-parseInt(_0x248936(0x12f))/0x8*(parseInt(_0x248936(0x121))/0x9)+parseInt(_0x248936(0x116))/0xa*(-parseInt(_0x248936(0x12e))/0xb);if(_0x3dffde===_0x25b733)break;else _0x436bcf['push'](_0x436bcf['shift']());}catch(_0x18c501){_0x436bcf['push'](_0x436bcf['shift']());}}}(a39_0x473b,0xdc6f4));import{getRuntimeDomain}from'../constant/domain.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x1df2b2){_activeAK=_0x1df2b2||undefined;}export function clearActiveAK(){_activeAK=undefined;}function a39_0x2d39(_0x2e3b72,_0x542300){_0x2e3b72=_0x2e3b72-0xfe;const _0x473bbd=a39_0x473b();let _0x2d3997=_0x473bbd[_0x2e3b72];return _0x2d3997;}async function apiRequest(_0x25b938,_0x3667cd={}){const _0x2c2750=a39_0x2d39,{method:method=_0x2c2750(0x128),body:_0x4e0516,headers:headers={},timeout:timeout=0x7530}=_0x3667cd,_0x58cae2=_activeAK,_0x4a3eaa=getRuntimeDomain();if(!_0x58cae2)throw CliErrors[_0x2c2750(0x104)](_0x2c2750(0x114));const _0x2161e4=''+_0x4a3eaa+_0x25b938,_0x28ddcb={'X-User-AK':_0x58cae2},_0x2f159e=new AbortController(),_0xe7df5=setTimeout(()=>_0x2f159e['abort'](),timeout);try{const _0x3a5e9d=await fetch(_0x2161e4,{'method':method,'headers':{'Content-Type':_0x2c2750(0x12c),'X-Invoke-Source':_0x2c2750(0x127),..._0x28ddcb,...headers},'body':_0x4e0516?JSON[_0x2c2750(0x10f)](_0x4e0516):undefined,'signal':_0x2f159e[_0x2c2750(0x101)]});let _0x18af3f;try{_0x18af3f=await _0x3a5e9d[_0x2c2750(0x123)]();}catch{throw CliErrors[_0x2c2750(0x103)](_0x2c2750(0x12a)+_0x3a5e9d[_0x2c2750(0x11b)]+')',_0x3a5e9d[_0x2c2750(0x11b)]>=0x190?_0x2c2750(0x113):undefined);}if(!_0x3a5e9d['ok']||_0x18af3f['success']===![])throw CliErrors['apiError'](_0x18af3f[_0x2c2750(0x11c)]||_0x18af3f[_0x2c2750(0x10d)]||_0x2c2750(0x126)+_0x3a5e9d[_0x2c2750(0x11b)],_0x18af3f[_0x2c2750(0x102)]?_0x2c2750(0x105)+_0x18af3f['errorCode']:undefined);return _0x18af3f;}catch(_0x184114){if(_0x184114 instanceof Error&&_0x184114[_0x2c2750(0x106)]===_0x2c2750(0x125))throw CliErrors[_0x2c2750(0x103)](_0x2c2750(0x118)+_0x2161e4);throw _0x184114;}finally{clearTimeout(_0xe7df5);}}export async function getBffScriptInfo(_0x26145c){const _0x3a3a72=a39_0x2d39,_0x2c3a8a=await apiRequest(_0x3a3a72(0x12d)+_0x26145c);if(!_0x2c3a8a[_0x3a3a72(0x10e)])throw CliErrors[_0x3a3a72(0x119)]('BFF\x20script\x20not\x20found:\x20id='+_0x26145c);return _0x2c3a8a['data'];}export async function getSqlQueryInfo(_0x29e56d,_0x211857){const _0x3f0386=a39_0x2d39,_0x3ec00b=await apiRequest('/client/sql/query',{'method':_0x3f0386(0x111),'body':{'appCode':_0x29e56d,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x211857}}),_0x54cc55=_0x3ec00b[_0x3f0386(0x10e)],_0x179aec=_0x54cc55&&typeof _0x54cc55==='object'&&_0x3f0386(0x109)in _0x54cc55?_0x54cc55[_0x3f0386(0x109)]?.[0x0]:_0x54cc55&&typeof _0x54cc55===_0x3f0386(0x10c)&&_0x3f0386(0x11f)in _0x54cc55?_0x54cc55:undefined;if(!_0x179aec)throw CliErrors['validation'](_0x3f0386(0xfe)+_0x211857);return _0x179aec;}function isRemoteAppItem(_0x2f44ee){const _0x757d6a=a39_0x2d39;return!!_0x2f44ee&&typeof _0x2f44ee===_0x757d6a(0x10c)&&typeof _0x2f44ee[_0x757d6a(0xff)]===_0x757d6a(0x129)&&typeof _0x2f44ee[_0x757d6a(0x11a)]==='string';}function extractRemoteAppItems(_0x527798){const _0x27237d=a39_0x2d39;if(Array[_0x27237d(0x110)](_0x527798))return _0x527798[_0x27237d(0x12b)](isRemoteAppItem);if(!_0x527798||typeof _0x527798!=='object')throw CliErrors[_0x27237d(0x103)](_0x27237d(0x112));const _0x81fd0d=_0x527798;if(Array[_0x27237d(0x110)](_0x81fd0d[_0x27237d(0x109)]))return _0x81fd0d[_0x27237d(0x109)]['filter'](isRemoteAppItem);if(_0x81fd0d['data']&&typeof _0x81fd0d[_0x27237d(0x10e)]===_0x27237d(0x10c)){const _0x19d241=_0x81fd0d['data'];if(Array[_0x27237d(0x110)](_0x19d241[_0x27237d(0x109)]))return _0x19d241['tableData'][_0x27237d(0x12b)](isRemoteAppItem);}throw CliErrors['apiError']('Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.');}export async function getMyApps(){const _0x41a8f8=a39_0x2d39,_0x57b361=await apiRequest('/client/app/my-apps');return extractRemoteAppItems(_0x57b361[_0x41a8f8(0x10e)]);}export async function getLoginUserInfo(){const _0x40a98c=a39_0x2d39,_0x3a10a5=await apiRequest(_0x40a98c(0x124));if(!_0x3a10a5[_0x40a98c(0x10e)]||typeof _0x3a10a5[_0x40a98c(0x10e)]!==_0x40a98c(0x10c)||Array[_0x40a98c(0x110)](_0x3a10a5['data']))throw CliErrors[_0x40a98c(0x103)](_0x40a98c(0x120));return _0x3a10a5[_0x40a98c(0x10e)];}export async function listDatasets(_0x288b73,_0x11a4e6){const _0x5300b6=a39_0x2d39,_0x5c8116=await apiRequest(_0x5300b6(0x122),{'method':_0x5300b6(0x111),'body':{'appCode':_0x288b73,..._0x11a4e6?.['code']&&{'code':_0x11a4e6[_0x5300b6(0x10b)]},..._0x11a4e6?.['name']&&{'name':_0x11a4e6[_0x5300b6(0x106)]}}});return extractList(_0x5c8116[_0x5300b6(0x10e)]);}function a39_0x473b(){const _0x5a059e=['/client/user/loginUserInfo','AbortError','API\x20error:\x20','cli:lovrabet-runtime','GET','string','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','filter','application/json','/client/bff/query/','5511363IZvMgm','872JUHVdG','SQL\x20query\x20not\x20found:\x20','appCode','16TQmqpG','signal','errorCode','apiError','authRequired','API\x20error\x20code:\x20','name','4022YqiUXH','1348008diaYSB','tableData','7020040DMTgKN','code','object','message','data','stringify','isArray','POST','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','Check\x20your\x20credentials\x20and\x20try\x20again.','Configure\x20accessKey\x20in\x20.lovrabet.json.','/client/dataset/query?','10cHaMhP','11471642gHvbmg','Request\x20timeout:\x20','validation','appName','status','errorMsg','9668424chvXLE','362mtDFuV','sqlCode','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','59859mUmfnu','/client/dataset/list','json'];a39_0x473b=function(){return _0x5a059e;};return a39_0x473b();}export async function getDatasetDetail(_0x2599e0){const _0x1ba78a=a39_0x2d39,_0x16905a=/^\d+$/['test'](_0x2599e0)?'id':_0x1ba78a(0x10b),_0x504a16=await apiRequest(_0x1ba78a(0x115)+_0x16905a+'='+_0x2599e0);return _0x504a16[_0x1ba78a(0x10e)];}
@@ -1 +1 @@
1
- (function(_0x3e2595,_0x118190){const _0x5cf761=a40_0x244f,_0x36f631=_0x3e2595();while(!![]){try{const _0x2998da=parseInt(_0x5cf761(0x18e))/0x1*(-parseInt(_0x5cf761(0x18a))/0x2)+-parseInt(_0x5cf761(0x199))/0x3*(-parseInt(_0x5cf761(0x191))/0x4)+-parseInt(_0x5cf761(0x194))/0x5+parseInt(_0x5cf761(0x195))/0x6+parseInt(_0x5cf761(0x192))/0x7*(parseInt(_0x5cf761(0x18b))/0x8)+parseInt(_0x5cf761(0x18d))/0x9*(parseInt(_0x5cf761(0x198))/0xa)+-parseInt(_0x5cf761(0x188))/0xb;if(_0x2998da===_0x118190)break;else _0x36f631['push'](_0x36f631['shift']());}catch(_0x2b549b){_0x36f631['push'](_0x36f631['shift']());}}}(a40_0x39d6,0xec6d4));function a40_0x244f(_0xfd8323,_0x2584ea){_0xfd8323=_0xfd8323-0x188;const _0x39d632=a40_0x39d6();let _0x244f75=_0x39d632[_0xfd8323];return _0x244f75;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a40_0x39d6(){const _0x552d99=['16AcNPjo','1256lHNNCW','has','2554677cCSuLu','41281IggwBk','dbId','get','232YgAXFd','39067QxQvyM','db-','6681075FhsrNv','5675496qHYWyt','find','dbName','50olJNEj','4008UuMlbI','7524209ehjrlf','set'];a40_0x39d6=function(){return _0x552d99;};return a40_0x39d6();}export async function listDatabases(_0x157e45){const _0xa07cd3=a40_0x244f;if(cache[_0xa07cd3(0x18c)](_0x157e45))return cache[_0xa07cd3(0x190)](_0x157e45);const _0x30694c=await listDatasets(_0x157e45),_0x4a432f=new Map();for(const _0x32cdce of _0x30694c){const _0x44d084=_0x32cdce['dbtableConfig'];_0x44d084?.[_0xa07cd3(0x18f)]!=null&&_0x4a432f[_0xa07cd3(0x189)](_0x44d084['dbId'],_0x44d084[_0xa07cd3(0x197)]??_0xa07cd3(0x193)+_0x44d084[_0xa07cd3(0x18f)]);}const _0x3c39ce=[..._0x4a432f['entries']()]['map'](([_0x1c8eb1,_0x3b417c])=>({'dbId':_0x1c8eb1,'dbName':_0x3b417c}));return cache[_0xa07cd3(0x189)](_0x157e45,_0x3c39ce),_0x3c39ce;}export async function getDbName(_0x7cb074,_0x44d6fd){const _0x3f89ed=a40_0x244f;try{const _0x38c2ed=await listDatabases(_0x7cb074);return _0x38c2ed[_0x3f89ed(0x196)](_0x4ef636=>_0x4ef636['dbId']===_0x44d6fd)?.[_0x3f89ed(0x197)];}catch{return undefined;}}
1
+ (function(_0x54c45a,_0x2e0150){const _0x3aa8ea=a40_0x5b0e,_0x579a96=_0x54c45a();while(!![]){try{const _0x24bbd6=-parseInt(_0x3aa8ea(0x136))/0x1*(parseInt(_0x3aa8ea(0x138))/0x2)+-parseInt(_0x3aa8ea(0x13c))/0x3+-parseInt(_0x3aa8ea(0x140))/0x4*(-parseInt(_0x3aa8ea(0x142))/0x5)+parseInt(_0x3aa8ea(0x147))/0x6*(-parseInt(_0x3aa8ea(0x14a))/0x7)+-parseInt(_0x3aa8ea(0x146))/0x8*(-parseInt(_0x3aa8ea(0x14b))/0x9)+parseInt(_0x3aa8ea(0x13d))/0xa*(parseInt(_0x3aa8ea(0x141))/0xb)+-parseInt(_0x3aa8ea(0x144))/0xc*(-parseInt(_0x3aa8ea(0x139))/0xd);if(_0x24bbd6===_0x2e0150)break;else _0x579a96['push'](_0x579a96['shift']());}catch(_0xc651eb){_0x579a96['push'](_0x579a96['shift']());}}}(a40_0x2d7f,0x20278));function a40_0x5b0e(_0x350d2e,_0xc121e2){_0x350d2e=_0x350d2e-0x136;const _0x2d7f86=a40_0x2d7f();let _0x5b0e05=_0x2d7f86[_0x350d2e];return _0x5b0e05;}import{listDatasets}from'../core/api-client.js';const cache=new Map();function a40_0x2d7f(){const _0x22fe70=['1113732GVCQkR','find','has','7gBTWSZ','9kSSRAD','59UKHwdj','dbName','1186pmRTqS','3419871qpxqIA','db-','entries','311919TRpYXR','124270UfLkxs','get','map','178376PMeGsV','44TnyErA','10zWbebh','dbId','12dSpkNW','set','434584ZuURBK'];a40_0x2d7f=function(){return _0x22fe70;};return a40_0x2d7f();}export async function listDatabases(_0x1cbb80){const _0x2a0d08=a40_0x5b0e;if(cache[_0x2a0d08(0x149)](_0x1cbb80))return cache[_0x2a0d08(0x13e)](_0x1cbb80);const _0x3cb166=await listDatasets(_0x1cbb80),_0x31f5ac=new Map();for(const _0x502507 of _0x3cb166){const _0xaadfda=_0x502507['dbtableConfig'];_0xaadfda?.[_0x2a0d08(0x143)]!=null&&_0x31f5ac[_0x2a0d08(0x145)](_0xaadfda[_0x2a0d08(0x143)],_0xaadfda[_0x2a0d08(0x137)]??_0x2a0d08(0x13a)+_0xaadfda[_0x2a0d08(0x143)]);}const _0x18bcb6=[..._0x31f5ac[_0x2a0d08(0x13b)]()][_0x2a0d08(0x13f)](([_0x570512,_0x17fac7])=>({'dbId':_0x570512,'dbName':_0x17fac7}));return cache[_0x2a0d08(0x145)](_0x1cbb80,_0x18bcb6),_0x18bcb6;}export async function getDbName(_0x1ebd1e,_0x11155c){const _0x2c35ef=a40_0x5b0e;try{const _0x23e54d=await listDatabases(_0x1ebd1e);return _0x23e54d[_0x2c35ef(0x148)](_0x201adc=>_0x201adc[_0x2c35ef(0x143)]===_0x11155c)?.[_0x2c35ef(0x137)];}catch{return undefined;}}
@@ -1 +1 @@
1
- function a41_0x1ac7(){const _0x3b853c=['SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','authMode','dataset_','61072yOpcUs','update','200500qWTzTp','\x22.\x20','execute','658344IMTRQd','isArray','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','env','appCode','batchCreate','147534xnLUkE','69285ltutaY','112140USPNIP','delete','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','sql','accessKey','494034jpUAjg','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','bff'];a41_0x1ac7=function(){return _0x3b853c;};return a41_0x1ac7();}(function(_0xeb5469,_0x47ba02){const _0x75b1c9=a41_0x38c0,_0x314709=_0xeb5469();while(!![]){try{const _0x58369b=parseInt(_0x75b1c9(0xa0))/0x1+-parseInt(_0x75b1c9(0x98))/0x2+parseInt(_0x75b1c9(0xa9))/0x3+-parseInt(_0x75b1c9(0x9e))/0x4+parseInt(_0x75b1c9(0xaa))/0x5+parseInt(_0x75b1c9(0xa3))/0x6+parseInt(_0x75b1c9(0xab))/0x7;if(_0x58369b===_0x47ba02)break;else _0x314709['push'](_0x314709['shift']());}catch(_0x22d301){_0x314709['push'](_0x314709['shift']());}}}(a41_0x1ac7,0x1f012));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;export function initSdkClient(_0x232c27){const _0xe59d09=a41_0x38c0;_client=createClient({'appCode':_0x232c27[_0xe59d09(0xa7)],'env':_0x232c27[_0xe59d09(0xa6)],'authMode':_0x232c27[_0xe59d09(0x9c)],..._0x232c27[_0xe59d09(0xb0)]?{'accessKey':_0x232c27['accessKey']}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0x410cb8=a41_0x38c0;if(!_client)throw new Error(_0x410cb8(0x9b));return _client;}export async function executeData(_0x29b770,_0x323e90,_0x449215){const _0x12012c=a41_0x38c0,_0x17059d=ensureClient(),_0x4adb64=_0x12012c(0x9d)+_0x29b770,_0x46a886=_0x17059d['models'][_0x4adb64];if(!_0x46a886||typeof _0x46a886[_0x323e90]!=='function')throw new Error('SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22'+_0x323e90+_0x12012c(0xa1)+_0x12012c(0x99));if(_0x323e90===_0x12012c(0xa8))return _0x46a886[_0x12012c(0xa8)](parseBatchCreateItemsFromParams(_0x449215));const _0xceeef5=_0x449215!==undefined&&_0x449215!==null&&!Array[_0x12012c(0xa4)](_0x449215)?_0x449215:{};switch(_0x323e90){case'getOne':{const _0x371526=_0xceeef5['id'];if(_0x371526===undefined||_0x371526===null)throw new Error(_0x12012c(0xad));return _0x46a886['getOne'](_0x371526);}case _0x12012c(0x9f):{const {id:_0x443bea,..._0x7ea48a}=_0xceeef5;if(_0x443bea===undefined||_0x443bea===null)throw new Error(_0x12012c(0xae));return _0x46a886[_0x12012c(0x9f)](_0x443bea,_0x7ea48a);}case _0x12012c(0xac):{const _0x5e9ffa=_0xceeef5['id'];if(_0x5e9ffa===undefined||_0x5e9ffa===null)throw new Error(_0x12012c(0xa5));return _0x46a886[_0x12012c(0xac)](_0x5e9ffa);}default:return _0x46a886[_0x323e90](_0xceeef5);}}export async function executeSdkSql(_0x2c9970,_0x20b477){const _0x5e03a9=a41_0x38c0,_0x4b22da=ensureClient();return _0x4b22da[_0x5e03a9(0xaf)]['execute']({'sqlCode':_0x2c9970,'params':_0x20b477});}function a41_0x38c0(_0x29c1d9,_0x42c957){_0x29c1d9=_0x29c1d9-0x98;const _0x1ac7d5=a41_0x1ac7();let _0x38c020=_0x1ac7d5[_0x29c1d9];return _0x38c020;}export async function executeSdkBff(_0x1670ef,_0x514ab7){const _0x296cb7=a41_0x38c0,_0xba8e09=ensureClient();return _0xba8e09[_0x296cb7(0x9a)][_0x296cb7(0xa2)]({'scriptName':_0x1670ef,'params':_0x514ab7});}
1
+ function a41_0x21e6(){const _0x5733d8=['appCode','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','sql','27540mkaeaj','execute','\x22.\x20','models','10147832WnleYP','batchCreate','function','509328UxGhKb','1657fbCqpK','update','getOne','1275FcuRvn','9OPSYMC','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','4284yZCUFq','7TvhDJW','isArray','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','5212juILeF','dataset_','env','bff','authMode','1136540IvjejE','1626zSpJjK','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27','7249Ibkhtq','accessKey','delete','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27'];a41_0x21e6=function(){return _0x5733d8;};return a41_0x21e6();}(function(_0x68cd5b,_0x5b5617){const _0x48048c=a41_0x15a0,_0x3bd4f1=_0x68cd5b();while(!![]){try{const _0x30fb3d=-parseInt(_0x48048c(0xb8))/0x1*(parseInt(_0x48048c(0xc8))/0x2)+-parseInt(_0x48048c(0xb7))/0x3+-parseInt(_0x48048c(0xc2))/0x4*(parseInt(_0x48048c(0xbb))/0x5)+parseInt(_0x48048c(0xbe))/0x6+-parseInt(_0x48048c(0xbf))/0x7*(-parseInt(_0x48048c(0xb4))/0x8)+parseInt(_0x48048c(0xbc))/0x9*(-parseInt(_0x48048c(0xc7))/0xa)+-parseInt(_0x48048c(0xca))/0xb*(-parseInt(_0x48048c(0xd2))/0xc);if(_0x30fb3d===_0x5b5617)break;else _0x3bd4f1['push'](_0x3bd4f1['shift']());}catch(_0x2157de){_0x3bd4f1['push'](_0x3bd4f1['shift']());}}}(a41_0x21e6,0xc7e4a));import{createClient}from'@lovrabet/sdk';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a41_0x15a0(_0x2a2a67,_0x55e24f){_0x2a2a67=_0x2a2a67-0xb1;const _0x21e689=a41_0x21e6();let _0x15a051=_0x21e689[_0x2a2a67];return _0x15a051;}let _client;export function initSdkClient(_0x2ee4e4){const _0x4bf475=a41_0x15a0;_client=createClient({'appCode':_0x2ee4e4[_0x4bf475(0xcf)],'env':_0x2ee4e4[_0x4bf475(0xc4)],'authMode':_0x2ee4e4[_0x4bf475(0xc6)],..._0x2ee4e4[_0x4bf475(0xcb)]?{'accessKey':_0x2ee4e4[_0x4bf475(0xcb)]}:{},'options':{'timeout':0x7530}});}function ensureClient(){const _0xa17c84=a41_0x15a0;if(!_client)throw new Error(_0xa17c84(0xbd));return _client;}export async function executeData(_0x2c9051,_0x231fd3,_0x428c98){const _0x1a6ee9=a41_0x15a0,_0x3e7e55=ensureClient(),_0x397f9b=_0x1a6ee9(0xc3)+_0x2c9051,_0x2b6998=_0x3e7e55[_0x1a6ee9(0xb3)][_0x397f9b];if(!_0x2b6998||typeof _0x2b6998[_0x231fd3]!==_0x1a6ee9(0xb6))throw new Error(_0x1a6ee9(0xc1)+_0x231fd3+_0x1a6ee9(0xb2)+_0x1a6ee9(0xd0));if(_0x231fd3===_0x1a6ee9(0xb5))return _0x2b6998[_0x1a6ee9(0xb5)](parseBatchCreateItemsFromParams(_0x428c98));const _0x28df4d=_0x428c98!==undefined&&_0x428c98!==null&&!Array[_0x1a6ee9(0xc0)](_0x428c98)?_0x428c98:{};switch(_0x231fd3){case _0x1a6ee9(0xba):{const _0x34f2fd=_0x28df4d['id'];if(_0x34f2fd===undefined||_0x34f2fd===null)throw new Error(_0x1a6ee9(0xcd));return _0x2b6998['getOne'](_0x34f2fd);}case _0x1a6ee9(0xb9):{const {id:_0x1c5336,..._0xe8489f}=_0x28df4d;if(_0x1c5336===undefined||_0x1c5336===null)throw new Error(_0x1a6ee9(0xc9));return _0x2b6998[_0x1a6ee9(0xb9)](_0x1c5336,_0xe8489f);}case _0x1a6ee9(0xcc):{const _0x254cbe=_0x28df4d['id'];if(_0x254cbe===undefined||_0x254cbe===null)throw new Error(_0x1a6ee9(0xce));return _0x2b6998[_0x1a6ee9(0xcc)](_0x254cbe);}default:return _0x2b6998[_0x231fd3](_0x28df4d);}}export async function executeSdkSql(_0x11c892,_0x9cd94c){const _0x2878ea=a41_0x15a0,_0x74af32=ensureClient();return _0x74af32[_0x2878ea(0xd1)][_0x2878ea(0xb1)]({'sqlCode':_0x11c892,'params':_0x9cd94c});}export async function executeSdkBff(_0x29efe5,_0x4e50f9){const _0x20cd4d=a41_0x15a0,_0x1312c8=ensureClient();return _0x1312c8[_0x20cd4d(0xc5)][_0x20cd4d(0xb1)]({'scriptName':_0x29efe5,'params':_0x4e50f9});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- (function(_0x5a7471,_0x316027){const _0x40c6ee=a42_0x158f,_0x12fc50=_0x5a7471();while(!![]){try{const _0xd173d0=parseInt(_0x40c6ee(0x167))/0x1*(parseInt(_0x40c6ee(0x166))/0x2)+-parseInt(_0x40c6ee(0x161))/0x3*(parseInt(_0x40c6ee(0x163))/0x4)+parseInt(_0x40c6ee(0x164))/0x5*(-parseInt(_0x40c6ee(0x15d))/0x6)+-parseInt(_0x40c6ee(0x15f))/0x7+-parseInt(_0x40c6ee(0x165))/0x8+-parseInt(_0x40c6ee(0x160))/0x9+parseInt(_0x40c6ee(0x162))/0xa*(parseInt(_0x40c6ee(0x15e))/0xb);if(_0xd173d0===_0x316027)break;else _0x12fc50['push'](_0x12fc50['shift']());}catch(_0x50a729){_0x12fc50['push'](_0x12fc50['shift']());}}}(a42_0x687d,0xde4cb));function a42_0x687d(){const _0xa717ff=['324332TGSzBZ','8668615ObhYJe','10356848kHqIHt','2RnHCEX','981535sCOdwW','6SQclrC','64706389NhGcma','7837907PWUYBb','5302080CQQkiD','45owSKWE','10aJcFsF'];a42_0x687d=function(){return _0xa717ff;};return a42_0x687d();}function a42_0x158f(_0x5084ad,_0x5aff70){_0x5084ad=_0x5084ad-0x15d;const _0x687dcb=a42_0x687d();let _0x158f18=_0x687dcb[_0x5084ad];return _0x158f18;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`'+CLI_BIN_NAME+'\x20auth\x20login`.','configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.'});
1
+ const a42_0x6ade36=a42_0x18bb;(function(_0x152c3c,_0x133892){const _0x177e24=a42_0x18bb,_0x2fa279=_0x152c3c();while(!![]){try{const _0x2b4a2a=-parseInt(_0x177e24(0x17d))/0x1+-parseInt(_0x177e24(0x184))/0x2*(parseInt(_0x177e24(0x182))/0x3)+-parseInt(_0x177e24(0x185))/0x4+-parseInt(_0x177e24(0x187))/0x5*(parseInt(_0x177e24(0x181))/0x6)+parseInt(_0x177e24(0x17f))/0x7+-parseInt(_0x177e24(0x188))/0x8*(parseInt(_0x177e24(0x18a))/0x9)+-parseInt(_0x177e24(0x17e))/0xa*(-parseInt(_0x177e24(0x183))/0xb);if(_0x2b4a2a===_0x133892)break;else _0x2fa279['push'](_0x2fa279['shift']());}catch(_0x1845db){_0x2fa279['push'](_0x2fa279['shift']());}}}(a42_0x500a,0xc86c8));function a42_0x500a(){const _0x5c4b68=['6gKpsih','6CzXeSb','43917577Gyyqwl','501372FZoJEg','6142348XieCcn','Configure\x20accessKey\x20in\x20.lovrabet.json\x20or\x20run\x20`','1967695iTWsqU','2528kjAewN','Set\x20appcode\x20via\x20--appcode\x20or\x20.lovrabet.json.','21906fbaJFA','53503TGvvAT','10KDdKRt','571018hSaVJm','\x20auth\x20login`.'];a42_0x500a=function(){return _0x5c4b68;};return a42_0x500a();}function a42_0x18bb(_0x442f15,_0x1aca79){_0x442f15=_0x442f15-0x17d;const _0x500a56=a42_0x500a();let _0x18bb16=_0x500a56[_0x442f15];return _0x18bb16;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a42_0x6ade36(0x186)+CLI_BIN_NAME+a42_0x6ade36(0x180),'configMissingHint':a42_0x6ade36(0x189),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20.lovrabet.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x11d312,_0x56c12c){var _0x2b3126=a43_0x2596,_0x5cc633=_0x11d312();while(!![]){try{var _0x4ec19f=parseInt(_0x2b3126(0x10d))/0x1*(-parseInt(_0x2b3126(0x109))/0x2)+parseInt(_0x2b3126(0x110))/0x3*(parseInt(_0x2b3126(0x111))/0x4)+-parseInt(_0x2b3126(0x10b))/0x5*(-parseInt(_0x2b3126(0x112))/0x6)+-parseInt(_0x2b3126(0x10f))/0x7+parseInt(_0x2b3126(0x10c))/0x8+-parseInt(_0x2b3126(0x10e))/0x9+-parseInt(_0x2b3126(0x10a))/0xa;if(_0x4ec19f===_0x56c12c)break;else _0x5cc633['push'](_0x5cc633['shift']());}catch(_0x186d14){_0x5cc633['push'](_0x5cc633['shift']());}}}(a43_0x1a6d,0x9ee73));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a43_0x2596(_0x5abad7,_0x445308){_0x5abad7=_0x5abad7-0x109;var _0x1a6dce=a43_0x1a6d();var _0x259661=_0x1a6dce[_0x5abad7];return _0x259661;}import{buildAllFlags as a43_0x490a2a}from'@lovrabet/cli-framework';function a43_0x1a6d(){var _0x3cea2c=['4155186GwjxjL','63dBjAAo','80204YMuTdK','6lceLOZ','14WdVLAC','3521060CyLMGU','3627305aIAMxF','8686656lXtZHp','90745WPtrgk','5202ZPuicP'];a43_0x1a6d=function(){return _0x3cea2c;};return a43_0x1a6d();}export function buildAllFlags(_0x1dd3b2){return a43_0x490a2a(_0x1dd3b2,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x34f058,_0x21d35d){var _0x5f2e13=a43_0x469d,_0x5e4746=_0x34f058();while(!![]){try{var _0x11c2de=parseInt(_0x5f2e13(0x158))/0x1*(-parseInt(_0x5f2e13(0x151))/0x2)+-parseInt(_0x5f2e13(0x15a))/0x3*(parseInt(_0x5f2e13(0x156))/0x4)+parseInt(_0x5f2e13(0x15b))/0x5+-parseInt(_0x5f2e13(0x152))/0x6+-parseInt(_0x5f2e13(0x150))/0x7*(parseInt(_0x5f2e13(0x154))/0x8)+parseInt(_0x5f2e13(0x155))/0x9*(-parseInt(_0x5f2e13(0x159))/0xa)+-parseInt(_0x5f2e13(0x157))/0xb*(-parseInt(_0x5f2e13(0x153))/0xc);if(_0x11c2de===_0x21d35d)break;else _0x5e4746['push'](_0x5e4746['shift']());}catch(_0xb71620){_0x5e4746['push'](_0x5e4746['shift']());}}}(a43_0x4fbc,0xe03ff));function a43_0x469d(_0x41bc5c,_0x5757ff){_0x41bc5c=_0x41bc5c-0x150;var _0x4fbc4f=a43_0x4fbc();var _0x469d91=_0x4fbc4f[_0x41bc5c];return _0x469d91;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a43_0x3b30ec}from'@lovrabet/cli-framework';export function buildAllFlags(_0xb482b5){return a43_0x3b30ec(_0xb482b5,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a43_0x4fbc(){var _0x47f3bb=['307438FxOGYh','6735852VoSRqL','105384IdycGj','30416AMdayo','18WBCTkL','544HowLhk','5566yArMLo','3LKzseG','3312250halWvH','9762HUfjIk','4771850LMtWCu','3297GjjVlE'];a43_0x4fbc=function(){return _0x47f3bb;};return a43_0x4fbc();}
@@ -1 +1 @@
1
- (function(_0x3c1a2f,_0x261a85){const _0x371e24=a44_0x2bec,_0x4f0fc0=_0x3c1a2f();while(!![]){try{const _0x4bbcd5=parseInt(_0x371e24(0x165))/0x1+-parseInt(_0x371e24(0x164))/0x2*(-parseInt(_0x371e24(0x15e))/0x3)+parseInt(_0x371e24(0x163))/0x4*(parseInt(_0x371e24(0x160))/0x5)+parseInt(_0x371e24(0x161))/0x6*(parseInt(_0x371e24(0x166))/0x7)+-parseInt(_0x371e24(0x167))/0x8+parseInt(_0x371e24(0x169))/0x9+-parseInt(_0x371e24(0x168))/0xa;if(_0x4bbcd5===_0x261a85)break;else _0x4f0fc0['push'](_0x4f0fc0['shift']());}catch(_0x33412f){_0x4f0fc0['push'](_0x4f0fc0['shift']());}}}(a44_0x43ed,0xeba6a));function a44_0x43ed(){const _0x5edafb=['5vJRXwm','197940tUyGax','description','901544XZKdjd','94OCkaFE','1893441kBsxTs','406nRtwCF','7845328tnytNY','29796600qJlmFB','3536910ndHQCY','31935DRziCM','body'];a44_0x43ed=function(){return _0x5edafb;};return a44_0x43ed();}function a44_0x2bec(_0xa3d046,_0x2b33a9){_0xa3d046=_0xa3d046-0x15e;const _0x43edd3=a44_0x43ed();let _0x2bece3=_0x43edd3[_0xa3d046];return _0x2bece3;}export function dryRun(_0x354f13,_0x1c64d6){const _0x32f464={'method':_0x354f13,'url':_0x1c64d6},_0x4281e5={'body'(_0x22a08e){const _0x4d3e1d=a44_0x2bec;return _0x32f464[_0x4d3e1d(0x15f)]=_0x22a08e,_0x4281e5;},'description'(_0x2aaba6){const _0x2d902e=a44_0x2bec;return _0x32f464[_0x2d902e(0x162)]=_0x2aaba6,_0x4281e5;},'build'(){return{..._0x32f464};}};return _0x4281e5;}
1
+ function a44_0x8784(_0x3843f3,_0xbf699){_0x3843f3=_0x3843f3-0xd6;const _0xa06083=a44_0xa060();let _0x878439=_0xa06083[_0x3843f3];return _0x878439;}(function(_0xba9d37,_0x2dc848){const _0x1a27ca=a44_0x8784,_0x41fd51=_0xba9d37();while(!![]){try{const _0x5548ae=parseInt(_0x1a27ca(0xdf))/0x1*(parseInt(_0x1a27ca(0xe1))/0x2)+-parseInt(_0x1a27ca(0xe0))/0x3*(-parseInt(_0x1a27ca(0xd9))/0x4)+parseInt(_0x1a27ca(0xdd))/0x5+-parseInt(_0x1a27ca(0xde))/0x6*(-parseInt(_0x1a27ca(0xd7))/0x7)+parseInt(_0x1a27ca(0xd8))/0x8+-parseInt(_0x1a27ca(0xd6))/0x9+parseInt(_0x1a27ca(0xdc))/0xa*(-parseInt(_0x1a27ca(0xe2))/0xb);if(_0x5548ae===_0x2dc848)break;else _0x41fd51['push'](_0x41fd51['shift']());}catch(_0x3d5eb0){_0x41fd51['push'](_0x41fd51['shift']());}}}(a44_0xa060,0x985b6));function a44_0xa060(){const _0x19d328=['4369744DUHIRY','4eNZQFq','body','description','10EwrTJy','4725035oCFPRq','6FNHMVK','1eDkDLq','2909391TASvxR','1586774CNzzzJ','36585384hZkSnm','11682sQSpam','4878209jwmrhJ'];a44_0xa060=function(){return _0x19d328;};return a44_0xa060();}export function dryRun(_0x8e59aa,_0x57a781){const _0x2ff2b2={'method':_0x8e59aa,'url':_0x57a781},_0x92efb6={'body'(_0x13b17d){const _0x2d9309=a44_0x8784;return _0x2ff2b2[_0x2d9309(0xda)]=_0x13b17d,_0x92efb6;},'description'(_0x51c515){const _0x2163cf=a44_0x8784;return _0x2ff2b2[_0x2163cf(0xdb)]=_0x51c515,_0x92efb6;},'build'(){return{..._0x2ff2b2};}};return _0x92efb6;}
@@ -1 +1 @@
1
- function a45_0x3b05(){const _0x5bf97e=['192dexilM','365480fjIpHe','parseFlags','38262rfwcVG','9SqFDKd','65368AblATj','18FguJVg','validateFlags','1132490lCMIXa','1310600ZVCVes','6XQtPNd','247957pKZHrM','468qvXtpE','201718NuXQMp'];a45_0x3b05=function(){return _0x5bf97e;};return a45_0x3b05();}function a45_0x1087(_0xb14757,_0x494b78){_0xb14757=_0xb14757-0x1d7;const _0x3b05c7=a45_0x3b05();let _0x1087df=_0x3b05c7[_0xb14757];return _0x1087df;}const a45_0x39aa01=a45_0x1087;(function(_0x21c7ca,_0xea40d2){const _0x3d9260=a45_0x1087,_0x2de7e9=_0x21c7ca();while(!![]){try{const _0x149a5c=parseInt(_0x3d9260(0x1e4))/0x1+parseInt(_0x3d9260(0x1de))/0x2*(parseInt(_0x3d9260(0x1df))/0x3)+-parseInt(_0x3d9260(0x1da))/0x4+parseInt(_0x3d9260(0x1e1))/0x5*(parseInt(_0x3d9260(0x1e3))/0x6)+-parseInt(_0x3d9260(0x1dc))/0x7*(-parseInt(_0x3d9260(0x1d9))/0x8)+-parseInt(_0x3d9260(0x1dd))/0x9*(-parseInt(_0x3d9260(0x1e2))/0xa)+parseInt(_0x3d9260(0x1d8))/0xb*(-parseInt(_0x3d9260(0x1d7))/0xc);if(_0x149a5c===_0xea40d2)break;else _0x2de7e9['push'](_0x2de7e9['shift']());}catch(_0x3e3aaa){_0x2de7e9['push'](_0x2de7e9['shift']());}}}(a45_0x3b05,0x1ed2b));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a45_0x39aa01(0x1db)];export const validateFlags=helpers[a45_0x39aa01(0x1e0)];
1
+ const a45_0x53a49d=a45_0x9b83;(function(_0x5a7638,_0x2ea8af){const _0x41e696=a45_0x9b83,_0x4d44c3=_0x5a7638();while(!![]){try{const _0x81c3f0=-parseInt(_0x41e696(0x1e2))/0x1+parseInt(_0x41e696(0x1e3))/0x2+-parseInt(_0x41e696(0x1e7))/0x3*(parseInt(_0x41e696(0x1e4))/0x4)+-parseInt(_0x41e696(0x1e5))/0x5*(parseInt(_0x41e696(0x1e6))/0x6)+-parseInt(_0x41e696(0x1ed))/0x7+parseInt(_0x41e696(0x1ea))/0x8+parseInt(_0x41e696(0x1e9))/0x9*(parseInt(_0x41e696(0x1eb))/0xa);if(_0x81c3f0===_0x2ea8af)break;else _0x4d44c3['push'](_0x4d44c3['shift']());}catch(_0x281968){_0x4d44c3['push'](_0x4d44c3['shift']());}}}(a45_0x435f,0xbd7f1));import{createFlagHelpers}from'@lovrabet/cli-framework';function a45_0x9b83(_0x2d430d,_0x3a8359){_0x2d430d=_0x2d430d-0x1e2;const _0x435f8e=a45_0x435f();let _0x9b83f8=_0x435f8e[_0x2d430d];return _0x9b83f8;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a45_0x53a49d(0x1ec)];export const validateFlags=helpers[a45_0x53a49d(0x1e8)];function a45_0x435f(){const _0x21a88a=['31995oHAFqG','validateFlags','100692IeoIOp','8028976KbmyAQ','2530DuSYoa','parseFlags','5605719wfNRQb','1551431SoXAZA','617218rdzUYh','372aCTIhg','265kxCDeg','2550TEAjvv'];a45_0x435f=function(){return _0x21a88a;};return a45_0x435f();}
@@ -1 +1 @@
1
- function a46_0x1250(){const _0x12ad1b=['948222fbPawt','290868KyzEbT','generateFullHelp','12132480wGogFY','5302855iaQEUK','118UmfeHY','15746HWlKxn','generateCommandHelp','2615034iyXcjm','2025lefuju','264WfSXCu','24792WUJAVg','generateServiceHelp','14urOIsx','Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).','4ctuNcb','get'];a46_0x1250=function(){return _0x12ad1b;};return a46_0x1250();}function a46_0x2e1e(_0x68e0e1,_0x51bc87){_0x68e0e1=_0x68e0e1-0x15e;const _0x1250cc=a46_0x1250();let _0x2e1e25=_0x1250cc[_0x68e0e1];return _0x2e1e25;}const a46_0x1aa88f=a46_0x2e1e;(function(_0x546fa3,_0x5e9803){const _0x10abdd=a46_0x2e1e,_0x195085=_0x546fa3();while(!![]){try{const _0x5ce809=parseInt(_0x10abdd(0x15e))/0x1*(parseInt(_0x10abdd(0x15f))/0x2)+-parseInt(_0x10abdd(0x161))/0x3*(parseInt(_0x10abdd(0x168))/0x4)+parseInt(_0x10abdd(0x16e))/0x5+-parseInt(_0x10abdd(0x16a))/0x6*(parseInt(_0x10abdd(0x166))/0x7)+parseInt(_0x10abdd(0x164))/0x8*(-parseInt(_0x10abdd(0x162))/0x9)+parseInt(_0x10abdd(0x16d))/0xa+parseInt(_0x10abdd(0x163))/0xb*(-parseInt(_0x10abdd(0x16b))/0xc);if(_0x5ce809===_0x5e9803)break;else _0x195085['push'](_0x195085['shift']());}catch(_0x52e060){_0x195085['push'](_0x195085['shift']());}}}(a46_0x1250,0xb3b46));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x35cdb2=>serviceGroups[a46_0x1aa88f(0x169)](_0x35cdb2),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a46_0x1aa88f(0x167)});export function generateCommandHelp(_0x419826){const _0xa4ac96=a46_0x1aa88f;return generators[_0xa4ac96(0x160)](_0x419826);}export const generateServiceHelp=generators[a46_0x1aa88f(0x165)];export const generateFullHelp=generators[a46_0x1aa88f(0x16c)];
1
+ const a46_0x20f47c=a46_0x1c2e;function a46_0x1c2e(_0x56ab1a,_0x58a947){_0x56ab1a=_0x56ab1a-0x167;const _0x4d4d71=a46_0x4d4d();let _0x1c2e0c=_0x4d4d71[_0x56ab1a];return _0x1c2e0c;}(function(_0x2f4408,_0xe5604e){const _0x1b6f8d=a46_0x1c2e,_0x23d2cb=_0x2f4408();while(!![]){try{const _0x248615=parseInt(_0x1b6f8d(0x176))/0x1*(parseInt(_0x1b6f8d(0x16f))/0x2)+parseInt(_0x1b6f8d(0x175))/0x3*(-parseInt(_0x1b6f8d(0x169))/0x4)+parseInt(_0x1b6f8d(0x16e))/0x5+-parseInt(_0x1b6f8d(0x172))/0x6*(-parseInt(_0x1b6f8d(0x167))/0x7)+-parseInt(_0x1b6f8d(0x170))/0x8+parseInt(_0x1b6f8d(0x16d))/0x9*(parseInt(_0x1b6f8d(0x173))/0xa)+-parseInt(_0x1b6f8d(0x16a))/0xb;if(_0x248615===_0xe5604e)break;else _0x23d2cb['push'](_0x23d2cb['shift']());}catch(_0x4b9693){_0x23d2cb['push'](_0x23d2cb['shift']());}}}(a46_0x4d4d,0xa937e));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a46_0x4d4d(){const _0x39a0a1=['get','3303lXjYNa','3271250iTXjyw','2028326OMApHv','4273824McVsCb','Requires\x20appcode\x20(set\x20via\x20.lovrabet.json\x20or\x20--appcode).','6FvYYvG','19790uXeTJX','generateFullHelp','22011wJpsbm','1ObSALl','5800648AjjIga','generateCommandHelp','364pVsvqE','14611927hbWacZ','generateServiceHelp'];a46_0x4d4d=function(){return _0x39a0a1;};return a46_0x4d4d();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x36b202=>serviceGroups[a46_0x20f47c(0x16c)](_0x36b202),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a46_0x20f47c(0x171)});export function generateCommandHelp(_0x557024){const _0xe8e4ea=a46_0x20f47c;return generators[_0xe8e4ea(0x168)](_0x557024);}export const generateServiceHelp=generators[a46_0x20f47c(0x16b)];export const generateFullHelp=generators[a46_0x20f47c(0x174)];
@@ -1 +1 @@
1
- (function(_0x22a1b3,_0x2ed5af){var _0x53ecd4=a47_0x530f,_0x1b15bf=_0x22a1b3();while(!![]){try{var _0x1d7f5b=-parseInt(_0x53ecd4(0x97))/0x1+-parseInt(_0x53ecd4(0x94))/0x2*(parseInt(_0x53ecd4(0x96))/0x3)+-parseInt(_0x53ecd4(0x98))/0x4*(-parseInt(_0x53ecd4(0x9b))/0x5)+parseInt(_0x53ecd4(0x9a))/0x6+parseInt(_0x53ecd4(0x95))/0x7*(-parseInt(_0x53ecd4(0x99))/0x8)+-parseInt(_0x53ecd4(0x92))/0x9+parseInt(_0x53ecd4(0x93))/0xa;if(_0x1d7f5b===_0x2ed5af)break;else _0x1b15bf['push'](_0x1b15bf['shift']());}catch(_0x390d35){_0x1b15bf['push'](_0x1b15bf['shift']());}}}(a47_0x2e29,0x4fe1f));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a47_0x2e29(){var _0x561317=['60392bJtroS','1943364jiVTBz','71730KbGwJF','1081863fuwJup','3243080EZbkuh','166202MhmACg','63uzHNVU','3HuRPgW','178868CCPLtW','36kSjTnl'];a47_0x2e29=function(){return _0x561317;};return a47_0x2e29();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a47_0x530f(_0xd928fd,_0x27fcf6){_0xd928fd=_0xd928fd-0x92;var _0x2e29c4=a47_0x2e29();var _0x530f0c=_0x2e29c4[_0xd928fd];return _0x530f0c;}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x22956e,_0x14cfb0){var _0x57cc4e=a47_0xab7a,_0x3c7e7f=_0x22956e();while(!![]){try{var _0x392864=parseInt(_0x57cc4e(0x121))/0x1+-parseInt(_0x57cc4e(0x126))/0x2+-parseInt(_0x57cc4e(0x125))/0x3+parseInt(_0x57cc4e(0x124))/0x4*(parseInt(_0x57cc4e(0x123))/0x5)+-parseInt(_0x57cc4e(0x122))/0x6+-parseInt(_0x57cc4e(0x129))/0x7*(-parseInt(_0x57cc4e(0x128))/0x8)+-parseInt(_0x57cc4e(0x127))/0x9;if(_0x392864===_0x14cfb0)break;else _0x3c7e7f['push'](_0x3c7e7f['shift']());}catch(_0x369c41){_0x3c7e7f['push'](_0x3c7e7f['shift']());}}}(a47_0x4fb2,0x7e921));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a47_0x4fb2(){var _0x1759e8=['7052GTVvHB','3008835TCglLY','1050208AQmghV','1210986fGfbHh','8bmnJBq','4072866kwtooe','1033424IBCvBN','1418346OvMbZB','2275LObLRi'];a47_0x4fb2=function(){return _0x1759e8;};return a47_0x4fb2();}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a47_0xab7a(_0x180238,_0x4ae609){_0x180238=_0x180238-0x121;var _0x4fb24e=a47_0x4fb2();var _0xab7a67=_0x4fb24e[_0x180238];return _0xab7a67;}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- function a48_0x1030(){const _0x2aae38=['750550MoRavZ','12Yqtzvd','1063338WOIdMC','144PKziui','4oTlEQO','49psQzSi','235397leeHXM','26148474yFTNyt','5212595VUfjbA','428830wWJTcR','1256080krjAsI'];a48_0x1030=function(){return _0x2aae38;};return a48_0x1030();}(function(_0x5c445f,_0x5212e7){const _0x5d44da=a48_0x3570,_0x3f74bc=_0x5c445f();while(!![]){try{const _0x4190f8=-parseInt(_0x5d44da(0x148))/0x1+parseInt(_0x5d44da(0x14d))/0x2*(parseInt(_0x5d44da(0x143))/0x3)+-parseInt(_0x5d44da(0x146))/0x4*(parseInt(_0x5d44da(0x14a))/0x5)+parseInt(_0x5d44da(0x144))/0x6*(-parseInt(_0x5d44da(0x147))/0x7)+parseInt(_0x5d44da(0x14c))/0x8+-parseInt(_0x5d44da(0x145))/0x9*(parseInt(_0x5d44da(0x14b))/0xa)+parseInt(_0x5d44da(0x149))/0xb;if(_0x4190f8===_0x5212e7)break;else _0x3f74bc['push'](_0x3f74bc['shift']());}catch(_0x5c0922){_0x3f74bc['push'](_0x3f74bc['shift']());}}}(a48_0x1030,0xcacaf));function a48_0x3570(_0x33cce0,_0xbbfa57){_0x33cce0=_0x33cce0-0x143;const _0x103035=a48_0x1030();let _0x3570dd=_0x103035[_0x33cce0];return _0x3570dd;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ function a48_0x58f6(){const _0x47eefd=['1539841sNQWHb','6822000NVTxfu','1092Qmtcwl','5291356juZubU','2235490RJifEk','1660MjsjOr','11417vyVFbL','127332qzYMZO','4737MntckJ','454MHcQHa'];a48_0x58f6=function(){return _0x47eefd;};return a48_0x58f6();}(function(_0x44f617,_0x369ccc){const _0x5103c4=a48_0x1510,_0x45f684=_0x44f617();while(!![]){try{const _0xa84b9c=-parseInt(_0x5103c4(0x170))/0x1+parseInt(_0x5103c4(0x16f))/0x2*(parseInt(_0x5103c4(0x16e))/0x3)+-parseInt(_0x5103c4(0x169))/0x4+parseInt(_0x5103c4(0x16a))/0x5+-parseInt(_0x5103c4(0x168))/0x6*(parseInt(_0x5103c4(0x16c))/0x7)+parseInt(_0x5103c4(0x167))/0x8+parseInt(_0x5103c4(0x16d))/0x9*(parseInt(_0x5103c4(0x16b))/0xa);if(_0xa84b9c===_0x369ccc)break;else _0x45f684['push'](_0x45f684['shift']());}catch(_0x3314da){_0x45f684['push'](_0x45f684['shift']());}}}(a48_0x58f6,0xceddf));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a48_0x1510(_0x384769,_0x194139){_0x384769=_0x384769-0x167;const _0x58f6da=a48_0x58f6();let _0x151014=_0x58f6da[_0x384769];return _0x151014;}export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
@@ -1 +1 @@
1
- (function(_0x51d42d,_0x4059c8){const _0x2ab8eb=a49_0x126d,_0x1ffdce=_0x51d42d();while(!![]){try{const _0x24932d=-parseInt(_0x2ab8eb(0x10f))/0x1+parseInt(_0x2ab8eb(0x10a))/0x2*(parseInt(_0x2ab8eb(0xf5))/0x3)+parseInt(_0x2ab8eb(0x10c))/0x4*(-parseInt(_0x2ab8eb(0x100))/0x5)+parseInt(_0x2ab8eb(0x109))/0x6+parseInt(_0x2ab8eb(0xfe))/0x7*(-parseInt(_0x2ab8eb(0xf1))/0x8)+parseInt(_0x2ab8eb(0x102))/0x9*(parseInt(_0x2ab8eb(0x108))/0xa)+parseInt(_0x2ab8eb(0xf7))/0xb;if(_0x24932d===_0x4059c8)break;else _0x1ffdce['push'](_0x1ffdce['shift']());}catch(_0x24ed9a){_0x1ffdce['push'](_0x1ffdce['shift']());}}}(a49_0xace6,0x2f496));function a49_0xace6(){const _0x1763d1=['type','alias','help','has','toLowerCase','push','name','402664ZSYHgX','get','nonInteractive','version','14325GKMXVd','original','7510294chlKYT','replace','set','add','sticky','corrected','string','35NRtDWD','yes','1125leVQJi','entries','90891teylIC','non-interactive','global','length','indexOf','slice','10WPLtFA','1294812ACXwDD','50DyXatE','env','5444wHUaJO','appcode','dryRun','276454wUEMoj','format','boolean','toUpperCase','number'];a49_0xace6=function(){return _0x1763d1;};return a49_0xace6();}function toKebab(_0x1349b7){const _0x344d6b=a49_0x126d;return _0x1349b7[_0x344d6b(0xf8)](/_/g,'-')[_0x344d6b(0xf8)](/-([A-Z]+)/g,(_0x1c6b65,_0x33f2b7)=>'-'+_0x33f2b7[_0x344d6b(0xee)]())[_0x344d6b(0xf8)](/([a-z0-9])([A-Z])/g,(_0x2e4956,_0x32a0a9,_0x1c2be6)=>_0x32a0a9+'-'+_0x1c2be6)[_0x344d6b(0xee)]();}function buildKnownFlags(_0x411e28){const _0x5ce905=a49_0x126d,_0x4ff95b=new Set();for(const _0x25c38f of _0x411e28){_0x4ff95b[_0x5ce905(0xfa)](_0x25c38f[_0x5ce905(0xf0)]),_0x4ff95b['add'](toCamelCase(_0x25c38f[_0x5ce905(0xf0)]));}for(const _0x1e0a87 of['dry-run',_0x5ce905(0x10e),_0x5ce905(0xff),_0x5ce905(0x110)]){_0x4ff95b[_0x5ce905(0xfa)](_0x1e0a87);}for(const _0xed6014 of[_0x5ce905(0xec),_0x5ce905(0x10b),_0x5ce905(0x10d),'app',_0x5ce905(0xf3),_0x5ce905(0x103),'ci',_0x5ce905(0x104),_0x5ce905(0xf4)]){_0x4ff95b[_0x5ce905(0xfa)](_0xed6014);}return _0x4ff95b;}function a49_0x126d(_0x1d3a04,_0x574f45){_0x1d3a04=_0x1d3a04-0xea;const _0xace6d1=a49_0xace6();let _0x126d40=_0xace6d1[_0x1d3a04];return _0x126d40;}function buildFlagTypeMap(_0x1b86f0){const _0x2174a3=a49_0x126d,_0x5b2f2d=new Map();for(const _0x55f1ce of _0x1b86f0){_0x5b2f2d[_0x2174a3(0xf9)](_0x55f1ce[_0x2174a3(0xf0)],_0x55f1ce[_0x2174a3(0xea)]),_0x5b2f2d[_0x2174a3(0xf9)](toCamelCase(_0x55f1ce[_0x2174a3(0xf0)]),_0x55f1ce[_0x2174a3(0xea)]);}return _0x5b2f2d;}function toCamelCase(_0x3fd23a){const _0x4e5c00=a49_0x126d;return _0x3fd23a[_0x4e5c00(0xf8)](/-([a-z])/g,(_0x3e3ef3,_0x9afe2d)=>_0x9afe2d[_0x4e5c00(0x112)]());}function aliasHandler(_0x38f660,_0x47741d){const _0x1268de=a49_0x126d,_0x6706d0=[];for(const _0x21099f of Object['keys'](_0x38f660)){if(_0x47741d[_0x1268de(0xed)](_0x21099f))continue;const _0x5db985=toKebab(_0x21099f);_0x5db985!==_0x21099f&&_0x47741d[_0x1268de(0xed)](_0x5db985)&&_0x6706d0[_0x1268de(0xef)]({'original':_0x21099f,'corrected':_0x5db985,'handler':_0x1268de(0xeb)});}return _0x6706d0;}function stickyHandler(_0x52f9f3,_0x35b9bb,_0x5ca4ca){const _0x3e6156=a49_0x126d,_0x335ed8=[];for(const [_0x1f2208,_0x3659be]of Object[_0x3e6156(0x101)](_0x52f9f3)){if(_0x3659be!==!![])continue;for(let _0x9d7c80=_0x1f2208['length']-0x1;_0x9d7c80>0x0;_0x9d7c80--){const _0x13976b=_0x1f2208[_0x3e6156(0x107)](0x0,_0x9d7c80),_0x50b354=_0x1f2208[_0x3e6156(0x107)](_0x9d7c80),_0x21b5e5=toKebab(_0x13976b),_0x5cbc32=toCamelCase(_0x13976b),_0x11e1bf=_0x35b9bb[_0x3e6156(0xed)](_0x13976b)?_0x13976b:_0x35b9bb['has'](_0x21b5e5)?_0x21b5e5:_0x35b9bb[_0x3e6156(0xed)](_0x5cbc32)?_0x5cbc32:null;if(!_0x11e1bf)continue;const _0x1a062b=_0x5ca4ca[_0x3e6156(0xf2)](_0x11e1bf)??_0x3e6156(0xfd);let _0x441f57;if(_0x1a062b===_0x3e6156(0x113)){const _0xc6f626=Number(_0x50b354);if(isNaN(_0xc6f626)||_0x50b354==='')continue;_0x441f57=_0xc6f626;}else{if(_0x1a062b===_0x3e6156(0x111))continue;else{if(_0x50b354==='')continue;_0x441f57=_0x50b354;}}_0x335ed8[_0x3e6156(0xef)]({'original':_0x1f2208,'corrected':_0x11e1bf+'='+_0x441f57,'handler':_0x3e6156(0xfb)});break;}}return _0x335ed8;}export function correctFlags(_0x29d792,_0x5e94c){const _0x46c717=a49_0x126d,_0x39944a=buildKnownFlags(_0x5e94c),_0x44442d=buildFlagTypeMap(_0x5e94c),_0x3c85df=aliasHandler(_0x29d792,_0x39944a),_0x1b4529=stickyHandler(_0x29d792,_0x39944a,_0x44442d),_0x80349b=[..._0x3c85df,..._0x1b4529];if(_0x80349b[_0x46c717(0x105)]===0x0)return{'flags':_0x29d792,'corrections':[]};const _0x29abb8={..._0x29d792},_0x15a43e=new Set();for(const _0x256f6b of _0x3c85df){_0x29abb8[_0x256f6b[_0x46c717(0xfc)]]=_0x29d792[_0x256f6b[_0x46c717(0xf6)]],_0x15a43e[_0x46c717(0xfa)](_0x256f6b[_0x46c717(0xf6)]);}for(const _0x20d956 of _0x1b4529){const _0x1018a8=_0x20d956['corrected'][_0x46c717(0x106)]('='),_0x4b9c71=_0x20d956[_0x46c717(0xfc)][_0x46c717(0x107)](0x0,_0x1018a8),_0x30aaa6=_0x20d956[_0x46c717(0xfc)]['slice'](_0x1018a8+0x1),_0x3778e2=_0x44442d['get'](_0x4b9c71)??_0x46c717(0xfd);_0x3778e2==='number'?_0x29abb8[_0x4b9c71]=Number(_0x30aaa6):_0x29abb8[_0x4b9c71]=_0x30aaa6,_0x15a43e['add'](_0x20d956[_0x46c717(0xf6)]);}for(const _0x421e63 of _0x15a43e){delete _0x29abb8[_0x421e63];}return{'flags':_0x29abb8,'corrections':_0x80349b};}
1
+ (function(_0x743d29,_0x1f02f7){const _0x4ad641=a49_0x491d,_0x415bca=_0x743d29();while(!![]){try{const _0x4d6713=parseInt(_0x4ad641(0x1da))/0x1*(-parseInt(_0x4ad641(0x1d5))/0x2)+-parseInt(_0x4ad641(0x1dc))/0x3+-parseInt(_0x4ad641(0x1db))/0x4*(parseInt(_0x4ad641(0x1d7))/0x5)+-parseInt(_0x4ad641(0x1e3))/0x6*(parseInt(_0x4ad641(0x1c6))/0x7)+parseInt(_0x4ad641(0x1d4))/0x8+parseInt(_0x4ad641(0x1ca))/0x9+parseInt(_0x4ad641(0x1c9))/0xa;if(_0x4d6713===_0x1f02f7)break;else _0x415bca['push'](_0x415bca['shift']());}catch(_0x1a3817){_0x415bca['push'](_0x415bca['shift']());}}}(a49_0x415a,0xc4820));function a49_0x491d(_0x5972fe,_0x599c50){_0x5972fe=_0x5972fe-0x1c4;const _0x415aeb=a49_0x415a();let _0x491d19=_0x415aeb[_0x5972fe];return _0x491d19;}function toKebab(_0x1b9061){const _0xac761c=a49_0x491d;return _0x1b9061['replace'](/_/g,'-')[_0xac761c(0x1e4)](/-([A-Z]+)/g,(_0x599374,_0x5641f6)=>'-'+_0x5641f6[_0xac761c(0x1c8)]())[_0xac761c(0x1e4)](/([a-z0-9])([A-Z])/g,(_0x4f6d31,_0x3be9ba,_0x1dc71c)=>_0x3be9ba+'-'+_0x1dc71c)['toLowerCase']();}function a49_0x415a(){const _0x2a9b79=['name','string','help','version','115178IjKGMo','corrected','toLowerCase','20006880BpzOCO','2752695tDyvXX','get','yes','keys','original','alias','push','indexOf','boolean','type','11847664pBWQMr','52702rLuKqT','length','18065WxkQCR','env','slice','31QaropX','32kVOMDB','2313414LOibJV','add','appcode','format','entries','number','toUpperCase','498ktUHkq','replace','has','non-interactive','set'];a49_0x415a=function(){return _0x2a9b79;};return a49_0x415a();}function buildKnownFlags(_0x45b439){const _0x14c1a5=a49_0x491d,_0x55d68a=new Set();for(const _0x45ce55 of _0x45b439){_0x55d68a[_0x14c1a5(0x1dd)](_0x45ce55[_0x14c1a5(0x1e8)]),_0x55d68a[_0x14c1a5(0x1dd)](toCamelCase(_0x45ce55[_0x14c1a5(0x1e8)]));}for(const _0x17f825 of['dry-run','dryRun',_0x14c1a5(0x1cc),_0x14c1a5(0x1df)]){_0x55d68a[_0x14c1a5(0x1dd)](_0x17f825);}for(const _0x18b0e7 of[_0x14c1a5(0x1c4),_0x14c1a5(0x1d8),_0x14c1a5(0x1de),'app','nonInteractive',_0x14c1a5(0x1e6),'ci','global',_0x14c1a5(0x1c5)]){_0x55d68a[_0x14c1a5(0x1dd)](_0x18b0e7);}return _0x55d68a;}function buildFlagTypeMap(_0x5e0a8f){const _0x496e18=a49_0x491d,_0x34015f=new Map();for(const _0xcf6ba1 of _0x5e0a8f){_0x34015f[_0x496e18(0x1e7)](_0xcf6ba1['name'],_0xcf6ba1[_0x496e18(0x1d3)]),_0x34015f[_0x496e18(0x1e7)](toCamelCase(_0xcf6ba1['name']),_0xcf6ba1[_0x496e18(0x1d3)]);}return _0x34015f;}function toCamelCase(_0xdfbd63){const _0x54211f=a49_0x491d;return _0xdfbd63[_0x54211f(0x1e4)](/-([a-z])/g,(_0x390ae0,_0xb769e1)=>_0xb769e1[_0x54211f(0x1e2)]());}function aliasHandler(_0x1e7545,_0x1fb497){const _0xf16c10=a49_0x491d,_0x39b22c=[];for(const _0x23c85f of Object[_0xf16c10(0x1cd)](_0x1e7545)){if(_0x1fb497[_0xf16c10(0x1e5)](_0x23c85f))continue;const _0x50d272=toKebab(_0x23c85f);_0x50d272!==_0x23c85f&&_0x1fb497['has'](_0x50d272)&&_0x39b22c['push']({'original':_0x23c85f,'corrected':_0x50d272,'handler':_0xf16c10(0x1cf)});}return _0x39b22c;}function stickyHandler(_0x1d299f,_0x2b2635,_0xe90af9){const _0x39593c=a49_0x491d,_0x28ffbe=[];for(const [_0x208da6,_0x1e6fbd]of Object[_0x39593c(0x1e0)](_0x1d299f)){if(_0x1e6fbd!==!![])continue;for(let _0x4450bc=_0x208da6['length']-0x1;_0x4450bc>0x0;_0x4450bc--){const _0x2f361d=_0x208da6[_0x39593c(0x1d9)](0x0,_0x4450bc),_0x4fcbf7=_0x208da6[_0x39593c(0x1d9)](_0x4450bc),_0x32f34f=toKebab(_0x2f361d),_0x394e9f=toCamelCase(_0x2f361d),_0x5d691e=_0x2b2635[_0x39593c(0x1e5)](_0x2f361d)?_0x2f361d:_0x2b2635['has'](_0x32f34f)?_0x32f34f:_0x2b2635[_0x39593c(0x1e5)](_0x394e9f)?_0x394e9f:null;if(!_0x5d691e)continue;const _0x8126eb=_0xe90af9[_0x39593c(0x1cb)](_0x5d691e)??_0x39593c(0x1e9);let _0x83bf0a;if(_0x8126eb===_0x39593c(0x1e1)){const _0x4e419a=Number(_0x4fcbf7);if(isNaN(_0x4e419a)||_0x4fcbf7==='')continue;_0x83bf0a=_0x4e419a;}else{if(_0x8126eb===_0x39593c(0x1d2))continue;else{if(_0x4fcbf7==='')continue;_0x83bf0a=_0x4fcbf7;}}_0x28ffbe[_0x39593c(0x1d0)]({'original':_0x208da6,'corrected':_0x5d691e+'='+_0x83bf0a,'handler':'sticky'});break;}}return _0x28ffbe;}export function correctFlags(_0x3201e9,_0x27010a){const _0x382255=a49_0x491d,_0x4c16d4=buildKnownFlags(_0x27010a),_0x5c6716=buildFlagTypeMap(_0x27010a),_0x51b16c=aliasHandler(_0x3201e9,_0x4c16d4),_0x5b9273=stickyHandler(_0x3201e9,_0x4c16d4,_0x5c6716),_0x313471=[..._0x51b16c,..._0x5b9273];if(_0x313471[_0x382255(0x1d6)]===0x0)return{'flags':_0x3201e9,'corrections':[]};const _0x560b6d={..._0x3201e9},_0x1dd956=new Set();for(const _0x2b75f9 of _0x51b16c){_0x560b6d[_0x2b75f9[_0x382255(0x1c7)]]=_0x3201e9[_0x2b75f9[_0x382255(0x1ce)]],_0x1dd956[_0x382255(0x1dd)](_0x2b75f9[_0x382255(0x1ce)]);}for(const _0x45ab0e of _0x5b9273){const _0x430d0c=_0x45ab0e['corrected'][_0x382255(0x1d1)]('='),_0x49b693=_0x45ab0e[_0x382255(0x1c7)][_0x382255(0x1d9)](0x0,_0x430d0c),_0xd19c9=_0x45ab0e[_0x382255(0x1c7)][_0x382255(0x1d9)](_0x430d0c+0x1),_0x1eb7af=_0x5c6716[_0x382255(0x1cb)](_0x49b693)??_0x382255(0x1e9);_0x1eb7af===_0x382255(0x1e1)?_0x560b6d[_0x49b693]=Number(_0xd19c9):_0x560b6d[_0x49b693]=_0xd19c9,_0x1dd956['add'](_0x45ab0e['original']);}for(const _0x5d1eff of _0x1dd956){delete _0x560b6d[_0x5d1eff];}return{'flags':_0x560b6d,'corrections':_0x313471};}
@@ -1 +1 @@
1
- function a50_0x4bd3(){var _0x5b98e4=['618042GVXqyX','75fqdUUR','14459536DcmdBW','2htBwRv','18kqejAA','5587768zeFvOJ','7539763qngbWc','15969096olzmjv','940530oYAyyi','1332428DzikMc','3zAmhnX'];a50_0x4bd3=function(){return _0x5b98e4;};return a50_0x4bd3();}(function(_0x53c63b,_0x1c68b1){var _0x424485=a50_0x32b5,_0x59f7ed=_0x53c63b();while(!![]){try{var _0x385aac=-parseInt(_0x424485(0x174))/0x1*(-parseInt(_0x424485(0x16e))/0x2)+parseInt(_0x424485(0x175))/0x3*(-parseInt(_0x424485(0x170))/0x4)+-parseInt(_0x424485(0x177))/0x5*(-parseInt(_0x424485(0x176))/0x6)+-parseInt(_0x424485(0x171))/0x7+parseInt(_0x424485(0x178))/0x8+-parseInt(_0x424485(0x16f))/0x9*(-parseInt(_0x424485(0x173))/0xa)+-parseInt(_0x424485(0x172))/0xb;if(_0x385aac===_0x1c68b1)break;else _0x59f7ed['push'](_0x59f7ed['shift']());}catch(_0x1b3800){_0x59f7ed['push'](_0x59f7ed['shift']());}}}(a50_0x4bd3,0xe745e));function a50_0x32b5(_0x4253be,_0x5ae899){_0x4253be=_0x4253be-0x16e;var _0x4bd334=a50_0x4bd3();var _0x32b539=_0x4bd334[_0x4253be];return _0x32b539;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0x1ee028,_0x4d9ad9){var _0x1cdf87=a50_0x53cf,_0x1decfc=_0x1ee028();while(!![]){try{var _0x5fb1f9=-parseInt(_0x1cdf87(0x13e))/0x1*(parseInt(_0x1cdf87(0x143))/0x2)+-parseInt(_0x1cdf87(0x146))/0x3*(parseInt(_0x1cdf87(0x140))/0x4)+parseInt(_0x1cdf87(0x13d))/0x5*(parseInt(_0x1cdf87(0x13a))/0x6)+-parseInt(_0x1cdf87(0x13f))/0x7*(parseInt(_0x1cdf87(0x145))/0x8)+parseInt(_0x1cdf87(0x142))/0x9*(-parseInt(_0x1cdf87(0x139))/0xa)+-parseInt(_0x1cdf87(0x13c))/0xb*(-parseInt(_0x1cdf87(0x141))/0xc)+parseInt(_0x1cdf87(0x13b))/0xd*(parseInt(_0x1cdf87(0x144))/0xe);if(_0x5fb1f9===_0x4d9ad9)break;else _0x1decfc['push'](_0x1decfc['shift']());}catch(_0xb5277b){_0x1decfc['push'](_0x1decfc['shift']());}}}(a50_0x313e,0xe2e4f));function a50_0x313e(){var _0x4ebfe8=['1796DOeXxl','10384236RACGqb','117PJTWcI','30RrRtLj','238CxWsyV','8rpRRKv','5721LYgeDg','536040saQIXY','2590116skyzWz','1413620iyRpzB','11HhLJdr','20mgaOzU','90148iNPLZp','4242021cvPrGA'];a50_0x313e=function(){return _0x4ebfe8;};return a50_0x313e();}function a50_0x53cf(_0x2d1085,_0x45011b){_0x2d1085=_0x2d1085-0x139;var _0x313ec4=a50_0x313e();var _0x53cffd=_0x313ec4[_0x2d1085];return _0x53cffd;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x4404ca,_0x167a7){const _0x48209b=a51_0x4ea7,_0x74ab=_0x4404ca();while(!![]){try{const _0x116713=-parseInt(_0x48209b(0x1ea))/0x1*(-parseInt(_0x48209b(0x1dc))/0x2)+parseInt(_0x48209b(0x1e2))/0x3*(parseInt(_0x48209b(0x1f0))/0x4)+-parseInt(_0x48209b(0x1e7))/0x5+parseInt(_0x48209b(0x1e1))/0x6+parseInt(_0x48209b(0x1e5))/0x7*(parseInt(_0x48209b(0x1ee))/0x8)+parseInt(_0x48209b(0x1f7))/0x9*(parseInt(_0x48209b(0x1de))/0xa)+-parseInt(_0x48209b(0x1f2))/0xb*(parseInt(_0x48209b(0x1f3))/0xc);if(_0x116713===_0x167a7)break;else _0x74ab['push'](_0x74ab['shift']());}catch(_0x4346dc){_0x74ab['push'](_0x74ab['shift']());}}}(a51_0x1cb8,0x67bcc));function a51_0x1cb8(){const _0x237898=['description','\x20\x20\x20','33454lddeiR','join','6196210kJrmBF','push','entries','1405542GXJZxD','3pVCxCd','code','commandLabel','112399lcVzQV','name=','717970jsdVhu','stringify','length','26FNuACq','⚠\x20\x20High-risk\x20operation:\x20','id=','command','248RqtIgX','affectedRecords','345196CLIcdA','--yes','44qTQPFe','3913032zFdZpA','service','name','params=','9nmFMYk'];a51_0x1cb8=function(){return _0x237898;};return a51_0x1cb8();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x1e69f1,_0x2bc199,_0x3ad07f){const _0x18c502=a51_0x4ea7,_0x2bbd9a=buildConfirmationContext(_0x1e69f1,_0x2bc199,_0x3ad07f),_0x53a287=[_0x18c502(0x1eb)+_0x2bbd9a[_0x18c502(0x1e4)]];return _0x2bbd9a[_0x18c502(0x1da)]&&_0x53a287[_0x18c502(0x1df)](_0x18c502(0x1db)+_0x2bbd9a['description']),_0x2bbd9a[_0x18c502(0x1ef)]&&_0x53a287[_0x18c502(0x1df)]('\x20\x20\x20Affected:\x20'+_0x2bbd9a[_0x18c502(0x1ef)]),_0x53a287[_0x18c502(0x1df)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x53a287;}export function reconstructCommandArgv(_0x139279,_0x2bc934){const _0x19b749=a51_0x4ea7,_0x4eb6a1=[CLI_BIN_NAME,_0x139279[_0x19b749(0x1f4)],_0x139279[_0x19b749(0x1ed)]];for(const [_0xd8e004,_0x40561b]of Object[_0x19b749(0x1e0)](_0x2bc934)){if(_0x40561b===!![])_0x4eb6a1[_0x19b749(0x1df)]('--'+_0xd8e004);else _0x40561b!==![]&&_0x40561b!==undefined&&_0x40561b!==''&&_0x4eb6a1[_0x19b749(0x1df)]('--'+_0xd8e004+'\x20'+JSON[_0x19b749(0x1e8)](_0x40561b));}return _0x4eb6a1[_0x19b749(0x1df)](_0x19b749(0x1f1)),_0x4eb6a1[_0x19b749(0x1dd)]('\x20');}function buildConfirmationContext(_0x58b46c,_0x1653b4,_0x274555){const _0x5d5d8d=extractAffectedRecords(_0x274555);return{'commandLabel':_0x1653b4,'description':_0x58b46c['description'],'affectedRecords':_0x5d5d8d};}function a51_0x4ea7(_0x53fff0,_0x5fc9c7){_0x53fff0=_0x53fff0-0x1da;const _0x1cb805=a51_0x1cb8();let _0x4ea733=_0x1cb805[_0x53fff0];return _0x4ea733;}function extractAffectedRecords(_0x1d06e6){const _0x2ac29f=a51_0x4ea7,_0x4eb8b8=[];if(_0x1d06e6[_0x2ac29f(0x1e3)])_0x4eb8b8[_0x2ac29f(0x1df)]('code='+_0x1d06e6[_0x2ac29f(0x1e3)]);if(_0x1d06e6['id'])_0x4eb8b8[_0x2ac29f(0x1df)](_0x2ac29f(0x1ec)+_0x1d06e6['id']);if(_0x1d06e6[_0x2ac29f(0x1f5)])_0x4eb8b8[_0x2ac29f(0x1df)](_0x2ac29f(0x1e6)+_0x1d06e6[_0x2ac29f(0x1f5)]);if(_0x1d06e6['params'])_0x4eb8b8[_0x2ac29f(0x1df)](_0x2ac29f(0x1f6)+_0x1d06e6['params']);return _0x4eb8b8[_0x2ac29f(0x1e9)]>0x0?_0x4eb8b8[_0x2ac29f(0x1dd)](',\x20'):undefined;}
1
+ (function(_0x205b5c,_0x7b68d2){const _0x4eaf5e=a51_0x13ae,_0x4b69ca=_0x205b5c();while(!![]){try{const _0x37a99b=-parseInt(_0x4eaf5e(0x11f))/0x1+parseInt(_0x4eaf5e(0x114))/0x2*(parseInt(_0x4eaf5e(0x129))/0x3)+parseInt(_0x4eaf5e(0x12f))/0x4*(-parseInt(_0x4eaf5e(0x12c))/0x5)+parseInt(_0x4eaf5e(0x115))/0x6*(parseInt(_0x4eaf5e(0x122))/0x7)+parseInt(_0x4eaf5e(0x126))/0x8+parseInt(_0x4eaf5e(0x12a))/0x9+-parseInt(_0x4eaf5e(0x121))/0xa;if(_0x37a99b===_0x7b68d2)break;else _0x4b69ca['push'](_0x4b69ca['shift']());}catch(_0x13698d){_0x4b69ca['push'](_0x4b69ca['shift']());}}}(a51_0x5caa,0x4e0ce));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0xcdf8ea,_0x351c91,_0x2965cf){const _0x411ca9=a51_0x13ae,_0x3160fc=buildConfirmationContext(_0xcdf8ea,_0x351c91,_0x2965cf),_0x3d6bf5=[_0x411ca9(0x117)+_0x3160fc['commandLabel']];return _0x3160fc[_0x411ca9(0x12b)]&&_0x3d6bf5[_0x411ca9(0x12e)](_0x411ca9(0x120)+_0x3160fc[_0x411ca9(0x12b)]),_0x3160fc['affectedRecords']&&_0x3d6bf5['push'](_0x411ca9(0x11c)+_0x3160fc[_0x411ca9(0x119)]),_0x3d6bf5[_0x411ca9(0x12e)](_0x411ca9(0x11a)),_0x3d6bf5;}export function reconstructCommandArgv(_0x3aa1e8,_0x3484a8){const _0x1c7c50=a51_0x13ae,_0x390c07=[CLI_BIN_NAME,_0x3aa1e8[_0x1c7c50(0x123)],_0x3aa1e8[_0x1c7c50(0x124)]];for(const [_0x4483d6,_0x5c4e96]of Object[_0x1c7c50(0x11b)](_0x3484a8)){if(_0x5c4e96===!![])_0x390c07[_0x1c7c50(0x12e)]('--'+_0x4483d6);else _0x5c4e96!==![]&&_0x5c4e96!==undefined&&_0x5c4e96!==''&&_0x390c07[_0x1c7c50(0x12e)]('--'+_0x4483d6+'\x20'+JSON[_0x1c7c50(0x127)](_0x5c4e96));}return _0x390c07[_0x1c7c50(0x12e)]('--yes'),_0x390c07[_0x1c7c50(0x11d)]('\x20');}function a51_0x13ae(_0x310e63,_0x2e88e0){_0x310e63=_0x310e63-0x114;const _0x5caa6f=a51_0x5caa();let _0x13ae31=_0x5caa6f[_0x310e63];return _0x13ae31;}function buildConfirmationContext(_0x494fdc,_0x4b7ee0,_0x57c0ab){const _0x49c993=extractAffectedRecords(_0x57c0ab);return{'commandLabel':_0x4b7ee0,'description':_0x494fdc['description'],'affectedRecords':_0x49c993};}function extractAffectedRecords(_0x20d813){const _0xe6de08=a51_0x13ae,_0x205b73=[];if(_0x20d813[_0xe6de08(0x128)])_0x205b73[_0xe6de08(0x12e)](_0xe6de08(0x116)+_0x20d813[_0xe6de08(0x128)]);if(_0x20d813['id'])_0x205b73['push'](_0xe6de08(0x12d)+_0x20d813['id']);if(_0x20d813[_0xe6de08(0x11e)])_0x205b73[_0xe6de08(0x12e)](_0xe6de08(0x125)+_0x20d813['name']);if(_0x20d813[_0xe6de08(0x130)])_0x205b73[_0xe6de08(0x12e)](_0xe6de08(0x118)+_0x20d813[_0xe6de08(0x130)]);return _0x205b73['length']>0x0?_0x205b73[_0xe6de08(0x11d)](',\x20'):undefined;}function a51_0x5caa(){const _0x13074f=['affectedRecords','\x20\x20\x20Continue?\x20[y/N]\x20','entries','\x20\x20\x20Affected:\x20','join','name','148365KjeMWW','\x20\x20\x20','869380DEvAsG','7LsAPbg','service','command','name=','780888qJvBiS','stringify','code','3IyBlMz','5681619bVNkoZ','description','5RqHhhf','id=','push','752344ILjxVv','params','19274wUjKxF','27264IXyhLC','code=','⚠\x20\x20High-risk\x20operation:\x20','params='];a51_0x5caa=function(){return _0x13074f;};return a51_0x5caa();}
@@ -1 +1 @@
1
- (function(_0x2b1ae4,_0x5e7d6a){const _0x8261d1=a52_0x5091,_0x2c8a25=_0x2b1ae4();while(!![]){try{const _0x33ef1f=-parseInt(_0x8261d1(0x9f))/0x1*(parseInt(_0x8261d1(0xa8))/0x2)+-parseInt(_0x8261d1(0xa6))/0x3+-parseInt(_0x8261d1(0xa1))/0x4+parseInt(_0x8261d1(0x9c))/0x5+-parseInt(_0x8261d1(0xa5))/0x6+-parseInt(_0x8261d1(0xa4))/0x7*(parseInt(_0x8261d1(0x9b))/0x8)+parseInt(_0x8261d1(0xa2))/0x9;if(_0x33ef1f===_0x5e7d6a)break;else _0x2c8a25['push'](_0x2c8a25['shift']());}catch(_0x593ebd){_0x2c8a25['push'](_0x2c8a25['shift']());}}}(a52_0x6ee9,0xba200));function a52_0x5091(_0x570055,_0x4c116b){_0x570055=_0x570055-0x9b;const _0x6ee93b=a52_0x6ee9();let _0x509175=_0x6ee93b[_0x570055];return _0x509175;}import{LovrabetError}from'@lovrabet/sdk';function a52_0x6ee9(){const _0x2b7883=['43068258HAPPAp','string','1050kIuElS','3560568KQzdAv','4281828kewfVJ','message','757742PpBStG','stringify','17048DUBRKs','795945xdOiJJ','description','trim','3KKIvYo','validation','2820864fQeTsP'];a52_0x6ee9=function(){return _0x2b7883;};return a52_0x6ee9();}import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x1edd04){const _0x34a987=a52_0x5091;if(_0x1edd04 instanceof LovrabetError)return CliErrors[_0x34a987(0xa0)](userFacingLovrabetMessage(_0x1edd04));return _0x1edd04;}function userFacingLovrabetMessage(_0x16f24b){const _0x2a2132=a52_0x5091,_0x1a9874=_0x16f24b[_0x2a2132(0x9d)];if(_0x1a9874!==undefined&&_0x1a9874!==null){if(typeof _0x1a9874===_0x2a2132(0xa3)&&_0x1a9874[_0x2a2132(0x9e)]())return _0x1a9874[_0x2a2132(0x9e)]();try{return JSON[_0x2a2132(0xa9)](_0x1a9874);}catch{}}return _0x16f24b[_0x2a2132(0xa7)];}
1
+ (function(_0x5cc003,_0x1de6cd){const _0x441901=a52_0x261a,_0x2f1f00=_0x5cc003();while(!![]){try{const _0x437082=parseInt(_0x441901(0xcb))/0x1+-parseInt(_0x441901(0xd1))/0x2+parseInt(_0x441901(0xca))/0x3+parseInt(_0x441901(0xce))/0x4+parseInt(_0x441901(0xc4))/0x5*(-parseInt(_0x441901(0xcd))/0x6)+-parseInt(_0x441901(0xc8))/0x7*(-parseInt(_0x441901(0xc9))/0x8)+-parseInt(_0x441901(0xc5))/0x9;if(_0x437082===_0x1de6cd)break;else _0x2f1f00['push'](_0x2f1f00['shift']());}catch(_0x864099){_0x2f1f00['push'](_0x2f1f00['shift']());}}}(a52_0x1209,0x57e0f));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x267046){const _0x528b58=a52_0x261a;if(_0x267046 instanceof LovrabetError)return CliErrors[_0x528b58(0xc7)](userFacingLovrabetMessage(_0x267046));return _0x267046;}function a52_0x261a(_0x1d79d8,_0x136f08){_0x1d79d8=_0x1d79d8-0xc4;const _0x1209bf=a52_0x1209();let _0x261afc=_0x1209bf[_0x1d79d8];return _0x261afc;}function a52_0x1209(){const _0x114341=['283190jPkQpn','2227761MSEiDQ','stringify','validation','520009MpGNci','16fIlXHl','1117830pqlDmN','314510oATlTG','description','18vLQiXE','1113348sOtFXb','trim','string','673274MRumsu'];a52_0x1209=function(){return _0x114341;};return a52_0x1209();}function userFacingLovrabetMessage(_0x3655bc){const _0x5c9282=a52_0x261a,_0x7e966a=_0x3655bc[_0x5c9282(0xcc)];if(_0x7e966a!==undefined&&_0x7e966a!==null){if(typeof _0x7e966a===_0x5c9282(0xd0)&&_0x7e966a[_0x5c9282(0xcf)]())return _0x7e966a[_0x5c9282(0xcf)]();try{return JSON[_0x5c9282(0xc6)](_0x7e966a);}catch{}}return _0x3655bc['message'];}
@@ -1 +1 @@
1
- const a53_0x93da71=a53_0xee02;(function(_0x5d59b4,_0x6bb70){const _0x29816b=a53_0xee02,_0x3085f4=_0x5d59b4();while(!![]){try{const _0x799b8a=parseInt(_0x29816b(0x1fa))/0x1+-parseInt(_0x29816b(0x1f4))/0x2*(parseInt(_0x29816b(0x1ef))/0x3)+-parseInt(_0x29816b(0x1ee))/0x4*(-parseInt(_0x29816b(0x1f3))/0x5)+-parseInt(_0x29816b(0x1e4))/0x6+-parseInt(_0x29816b(0x1f0))/0x7+-parseInt(_0x29816b(0x1d9))/0x8*(-parseInt(_0x29816b(0x1f7))/0x9)+parseInt(_0x29816b(0x1f2))/0xa;if(_0x799b8a===_0x6bb70)break;else _0x3085f4['push'](_0x3085f4['shift']());}catch(_0x44e798){_0x3085f4['push'](_0x3085f4['shift']());}}}(a53_0x5955,0x5d5e9));function a53_0xee02(_0x501200,_0x28337e){_0x501200=_0x501200-0x1d4;const _0x595557=a53_0x5955();let _0xee02b8=_0x595557[_0x501200];return _0xee02b8;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a53_0x5955(){const _0x28bbc8=['../core/sdk-client.js','387DZNDvK','authRequired','filter','192561PSouQv','defaultPageSize','\x20\x20To\x20proceed:\x20','requiresAuth','map','apiDomain','134312efMsXp','pageSize','env','riskLevel','verbose','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','../core/api-client.js','production','mergedCli','defaultApp','Set\x20accessKey\x20in\x20.lovrabet.json\x20or\x20pass\x20LOVRABET_ACCESS_KEY.','3261654JqCOCF','cancelled','validation','ClientAk','requiresAppCode','accessKey','defaultVerbose','currentApp','command','High-risk\x20operation\x20`','283692pIuUny','12KShPJy','4151742KZCECZ','isNonInteractive','4881750JyFLVK','15ztBLjZ','48138emlDkq','has'];a53_0x5955=function(){return _0x28bbc8;};return a53_0x5955();}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x19feb6){const _0x4d661a=a53_0xee02;return void _0x19feb6,AUTH_MODE[_0x4d661a(0x1e7)];}export function createPipelineEnv(_0x16fb84,_0x1b66c0){const _0x5393cf=a53_0xee02;return{'rawFlags':_0x1b66c0,'appCode':_0x16fb84['appCode']||process.env.RABETBASE_APPCODE||readAppCodeFromConfig(),'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x1b66c0),'defaultFormat':_0x16fb84['format'],'defaultPageSize':_0x16fb84[_0x5393cf(0x1da)],'defaultVerbose':_0x16fb84[_0x5393cf(0x1dd)],'riskLevel':_0x16fb84[_0x5393cf(0x1dc)],'accessKey':_0x16fb84['accessKey'],'env':_0x16fb84['env'],'mergedCli':{'defaultApp':_0x16fb84[_0x5393cf(0x1e2)],'currentApp':_0x16fb84[_0x5393cf(0x1eb)],'appCode':_0x16fb84['appCode']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a53_0x93da71(0x1f9)](_0x2104b8=>PIPELINE_FLAG_NAMES[a53_0x93da71(0x1f5)](_0x2104b8['name']))[a53_0x93da71(0x1d7)](({name:_0x290265,type:_0x1e5a4f,description:_0x267dfd})=>({'name':_0x290265,'type':_0x1e5a4f,'description':_0x267dfd})),'formatOutput':formatOutput,'getCommandLabel'(_0x1e5f1b){const _0x49727=a53_0x93da71;return CLI_BIN_NAME+'\x20'+_0x1e5f1b['service']+'\x20'+_0x1e5f1b[_0x49727(0x1ec)];},'riskPolicy':{'onViolation'(_0x512dee){console['error'](_0x512dee);},'createError'(_0x254006){const _0x70292a=a53_0x93da71;return CliErrors[_0x70292a(0x1e5)](_0x254006);}},async 'prepare'(_0x425ab3,_0x50e689){const _0x388fb7=a53_0x93da71,_0x4799d2=resolveAuthMode(_0x50e689);if(_0x425ab3[_0x388fb7(0x1d6)]!==![]){if(!_0x50e689[_0x388fb7(0x1e9)])throw CliErrors[_0x388fb7(0x1f8)](_0x388fb7(0x1e3));const {setActiveAK:_0x2ec773}=await import('../core/api-client.js');_0x2ec773(_0x50e689[_0x388fb7(0x1e9)]);}let _0x24ccc7='';if(_0x425ab3[_0x388fb7(0x1e8)]!==![]){_0x24ccc7=_0x50e689['appCode']??'';if(!_0x24ccc7)throw CliErrors['configMissing']('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20.lovrabet.json.');}if(_0x24ccc7){const {initSdkClient:_0x5991f4}=await import(_0x388fb7(0x1f6));_0x5991f4({'appCode':_0x24ccc7,'env':_0x50e689[_0x388fb7(0x1db)]??_0x388fb7(0x1e0),'accessKey':_0x50e689['accessKey'],'authMode':_0x4799d2});}return{'defaults':{'booleans':{'verbose':_0x50e689[_0x388fb7(0x1ea)]},'numbers':{'pagesize':_0x50e689[_0x388fb7(0x1d4)]}},'extras':{'appCode':_0x24ccc7,'cookie':'','apiDomain':_0x50e689[_0x388fb7(0x1d8)],'apiDir':'','accessKey':_0x50e689[_0x388fb7(0x1e9)],'envName':_0x50e689[_0x388fb7(0x1db)],'mergedCli':_0x50e689[_0x388fb7(0x1e1)]}};},async 'confirmHighRisk'({def:_0x2760bd,env:_0x28b220,flags:_0x15df81,commandLabel:_0xc06441}){const _0x1d54f7=a53_0x93da71;if(_0x28b220[_0x1d54f7(0x1f1)]){const _0x210d95=reconstructCommandArgv(_0x2760bd,_0x15df81);throw CliErrors[_0x1d54f7(0x1e6)](_0x1d54f7(0x1ed)+_0xc06441+_0x1d54f7(0x1de)+(_0x1d54f7(0x1d5)+_0x210d95));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x2760bd,_0xc06441,_0x15df81),'createCancelledError':_0x42cbe1=>CliErrors[_0x1d54f7(0x1e5)](_0x42cbe1)});},'mapDryRunError'(_0x1dabbf){return mapUserFacingExecuteError(_0x1dabbf);},'mapExecuteError'(_0x375764){return mapUserFacingExecuteError(_0x375764);},async 'finalize'(){const _0xdffcfe=a53_0x93da71,{clearActiveAK:_0x2f789b}=await import(_0xdffcfe(0x1df));_0x2f789b();}};export async function runCommand(_0x1ae633,_0x2d56b0){await runCommandWithAdapter(_0x1ae633,_0x2d56b0,runnerAdapter);}
1
+ function a53_0x2086(_0x44a433,_0x35bb8d){_0x44a433=_0x44a433-0x1af;const _0x3d931e=a53_0x3d93();let _0x208686=_0x3d931e[_0x44a433];return _0x208686;}const a53_0x165d3b=a53_0x2086;(function(_0xcc4867,_0x43a78a){const _0x9b81be=a53_0x2086,_0x47108f=_0xcc4867();while(!![]){try{const _0x5d44b2=-parseInt(_0x9b81be(0x1c0))/0x1+parseInt(_0x9b81be(0x1be))/0x2*(-parseInt(_0x9b81be(0x1ca))/0x3)+-parseInt(_0x9b81be(0x1d5))/0x4+-parseInt(_0x9b81be(0x1b3))/0x5*(-parseInt(_0x9b81be(0x1d0))/0x6)+-parseInt(_0x9b81be(0x1cb))/0x7+-parseInt(_0x9b81be(0x1c7))/0x8*(-parseInt(_0x9b81be(0x1c9))/0x9)+parseInt(_0x9b81be(0x1ce))/0xa;if(_0x5d44b2===_0x43a78a)break;else _0x47108f['push'](_0x47108f['shift']());}catch(_0x5afd16){_0x47108f['push'](_0x47108f['shift']());}}}(a53_0x3d93,0x9ab3d));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';export function resolveAuthMode(_0x34e152){const _0xfd27d4=a53_0x2086;return void _0x34e152,AUTH_MODE[_0xfd27d4(0x1c1)];}export function createPipelineEnv(_0x384d19,_0x2a72b3){const _0x29af32=a53_0x2086;return{'rawFlags':_0x2a72b3,'appCode':_0x384d19[_0x29af32(0x1cd)]||process.env.RABETBASE_APPCODE||readAppCodeFromConfig(),'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x2a72b3),'defaultFormat':_0x384d19[_0x29af32(0x1b2)],'defaultPageSize':_0x384d19[_0x29af32(0x1d2)],'defaultVerbose':_0x384d19[_0x29af32(0x1ba)],'riskLevel':_0x384d19[_0x29af32(0x1b1)],'accessKey':_0x384d19[_0x29af32(0x1c6)],'env':_0x384d19[_0x29af32(0x1bc)],'mergedCli':{'defaultApp':_0x384d19[_0x29af32(0x1af)],'currentApp':_0x384d19[_0x29af32(0x1b9)],'appCode':_0x384d19[_0x29af32(0x1cd)]}};}function a53_0x3d93(){const _0x47af27=['defaultVerbose','requiresAppCode','../core/api-client.js','Set\x20accessKey\x20in\x20.lovrabet.json\x20or\x20pass\x20LOVRABET_ACCESS_KEY.','accessKey','941368VJUzAo','name','9gbXsnF','447alKIFA','2686796JauLds','production','appCode','28033380RMLkZM','authRequired','6mdkeaZ','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','pageSize','map','requiresAuth','2201944ZDPGxk','defaultApp','configMissing','riskLevel','format','135950zfyQka','apiDomain','error','cancelled','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20.lovrabet.json.','isNonInteractive','currentApp','verbose','defaultPageSize','env','command','2350WXJXZo','High-risk\x20operation\x20`','1205149mrKvEY','ClientAk'];a53_0x3d93=function(){return _0x47af27;};return a53_0x3d93();}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x4dc68b=>PIPELINE_FLAG_NAMES['has'](_0x4dc68b[a53_0x165d3b(0x1c8)]))[a53_0x165d3b(0x1d3)](({name:_0x2716e4,type:_0x4c26b2,description:_0xb62a40})=>({'name':_0x2716e4,'type':_0x4c26b2,'description':_0xb62a40})),'formatOutput':formatOutput,'getCommandLabel'(_0x4b91ee){const _0x252638=a53_0x165d3b;return CLI_BIN_NAME+'\x20'+_0x4b91ee['service']+'\x20'+_0x4b91ee[_0x252638(0x1bd)];},'riskPolicy':{'onViolation'(_0x49bbb3){const _0x4f6868=a53_0x165d3b;console[_0x4f6868(0x1b5)](_0x49bbb3);},'createError'(_0x50a549){const _0x97871a=a53_0x165d3b;return CliErrors[_0x97871a(0x1b6)](_0x50a549);}},async 'prepare'(_0x45cb57,_0x631dfd){const _0x43e763=a53_0x165d3b,_0xd08dc1=resolveAuthMode(_0x631dfd);if(_0x45cb57[_0x43e763(0x1d4)]!==![]){if(!_0x631dfd[_0x43e763(0x1c6)])throw CliErrors[_0x43e763(0x1cf)](_0x43e763(0x1c5));const {setActiveAK:_0xac3189}=await import(_0x43e763(0x1c4));_0xac3189(_0x631dfd[_0x43e763(0x1c6)]);}let _0x42be1b='';if(_0x45cb57[_0x43e763(0x1c3)]!==![]){_0x42be1b=_0x631dfd[_0x43e763(0x1cd)]??'';if(!_0x42be1b)throw CliErrors[_0x43e763(0x1b0)](_0x43e763(0x1b7));}if(_0x42be1b){const {initSdkClient:_0x2e052f}=await import('../core/sdk-client.js');_0x2e052f({'appCode':_0x42be1b,'env':_0x631dfd[_0x43e763(0x1bc)]??_0x43e763(0x1cc),'accessKey':_0x631dfd[_0x43e763(0x1c6)],'authMode':_0xd08dc1});}return{'defaults':{'booleans':{'verbose':_0x631dfd[_0x43e763(0x1c2)]},'numbers':{'pagesize':_0x631dfd[_0x43e763(0x1bb)]}},'extras':{'appCode':_0x42be1b,'cookie':'','apiDomain':_0x631dfd[_0x43e763(0x1b4)],'apiDir':'','accessKey':_0x631dfd[_0x43e763(0x1c6)],'envName':_0x631dfd[_0x43e763(0x1bc)],'mergedCli':_0x631dfd['mergedCli']}};},async 'confirmHighRisk'({def:_0x255cda,env:_0x43cf3e,flags:_0x1ec956,commandLabel:_0x1cd376}){const _0x4b86e=a53_0x165d3b;if(_0x43cf3e[_0x4b86e(0x1b8)]){const _0x45f293=reconstructCommandArgv(_0x255cda,_0x1ec956);throw CliErrors['validation'](_0x4b86e(0x1bf)+_0x1cd376+_0x4b86e(0x1d1)+('\x20\x20To\x20proceed:\x20'+_0x45f293));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x255cda,_0x1cd376,_0x1ec956),'createCancelledError':_0x300a37=>CliErrors[_0x4b86e(0x1b6)](_0x300a37)});},'mapDryRunError'(_0x227a88){return mapUserFacingExecuteError(_0x227a88);},'mapExecuteError'(_0x25171d){return mapUserFacingExecuteError(_0x25171d);},async 'finalize'(){const {clearActiveAK:_0x45e1f2}=await import('../core/api-client.js');_0x45e1f2();}};export async function runCommand(_0x567bc2,_0x2239a3){await runCommandWithAdapter(_0x567bc2,_0x2239a3,runnerAdapter);}
@@ -1 +1 @@
1
- (function(_0xafc174,_0xa59576){const _0x2d4990=a54_0x477f,_0x2e38e7=_0xafc174();while(!![]){try{const _0x2c84ad=-parseInt(_0x2d4990(0x9c))/0x1*(parseInt(_0x2d4990(0x9b))/0x2)+parseInt(_0x2d4990(0x9d))/0x3+-parseInt(_0x2d4990(0x9f))/0x4*(parseInt(_0x2d4990(0x99))/0x5)+parseInt(_0x2d4990(0x9a))/0x6+-parseInt(_0x2d4990(0x96))/0x7+parseInt(_0x2d4990(0x97))/0x8+-parseInt(_0x2d4990(0x98))/0x9;if(_0x2c84ad===_0xa59576)break;else _0x2e38e7['push'](_0x2e38e7['shift']());}catch(_0x2c03ec){_0x2e38e7['push'](_0x2e38e7['shift']());}}}(a54_0x4c68,0x4ffb3));function a54_0x4c68(){const _0x1e3d21=['1330637PJPrNS','5219360lcRtxM','4054644ZCcxlW','5qmmRMQ','1692960PTPvHR','1804KEWOYz','238RWGmKN','1147779Ycaoab','../commands/registry.js','537148CWQhTC'];a54_0x4c68=function(){return _0x1e3d21;};return a54_0x4c68();}import{buildSchemaPayload as a54_0x585956}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a54_0x477f(_0x1747b9,_0x1893f2){_0x1747b9=_0x1747b9-0x96;const _0x4c685f=a54_0x4c68();let _0x477fd0=_0x4c685f[_0x1747b9];return _0x477fd0;}export async function buildSchemaPayload(){const _0x3bec82=a54_0x477f,{serviceRegistry:_0x2a5c8,findDefinition:_0x5d3df}=await import(_0x3bec82(0x9e));return a54_0x585956({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2a5c8,'buildAllFlags':buildAllFlags,'findDefinition':_0x5d3df});}
1
+ (function(_0xfccba2,_0xbd95b){const _0x66ff41=a54_0x4570,_0xeaaac5=_0xfccba2();while(!![]){try{const _0x337551=-parseInt(_0x66ff41(0xcf))/0x1*(-parseInt(_0x66ff41(0xcb))/0x2)+-parseInt(_0x66ff41(0xd0))/0x3+parseInt(_0x66ff41(0xd2))/0x4*(-parseInt(_0x66ff41(0xcc))/0x5)+parseInt(_0x66ff41(0xc8))/0x6+-parseInt(_0x66ff41(0xc9))/0x7+-parseInt(_0x66ff41(0xce))/0x8+-parseInt(_0x66ff41(0xcd))/0x9*(-parseInt(_0x66ff41(0xd1))/0xa);if(_0x337551===_0xbd95b)break;else _0xeaaac5['push'](_0xeaaac5['shift']());}catch(_0x82ac83){_0xeaaac5['push'](_0xeaaac5['shift']());}}}(a54_0x3056,0xa2d6d));import{buildSchemaPayload as a54_0x1fbe1a}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a54_0x4570(_0x821fde,_0x889fa0){_0x821fde=_0x821fde-0xc8;const _0x30568f=a54_0x3056();let _0x457029=_0x30568f[_0x821fde];return _0x457029;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x58c7db=a54_0x4570,{serviceRegistry:_0xc53073,findDefinition:_0x4aa78b}=await import(_0x58c7db(0xca));return a54_0x1fbe1a({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0xc53073,'buildAllFlags':buildAllFlags,'findDefinition':_0x4aa78b});}function a54_0x3056(){const _0x1ad0fe=['3793113EGEawt','5532512GAaPiM','38333cTlLuU','2221932TrlDIp','70wOTEyM','12agsgfk','312390wzCsEb','8656263zPIwoC','../commands/registry.js','62NUCFDO','1424635QEiWga'];a54_0x3056=function(){return _0x1ad0fe;};return a54_0x3056();}
@@ -1 +1 @@
1
- function a55_0xcf0c(){var _0x20b680=['993033OUGSEV','461562HnCyVE','448VUDRUc','1pqUUAX','3PToNDg','1719154LLkuAK','11okwPpb','5lhZOVQ','115144uZNSaB','3409644mzaDTr','14927240DjSiOl','4448484XYdirr'];a55_0xcf0c=function(){return _0x20b680;};return a55_0xcf0c();}(function(_0x60e793,_0x440a68){var _0x180d28=a55_0x2c48,_0x611b49=_0x60e793();while(!![]){try{var _0x3c3cb5=-parseInt(_0x180d28(0x134))/0x1*(-parseInt(_0x180d28(0x12a))/0x2)+-parseInt(_0x180d28(0x129))/0x3*(parseInt(_0x180d28(0x12e))/0x4)+-parseInt(_0x180d28(0x12c))/0x5*(parseInt(_0x180d28(0x132))/0x6)+-parseInt(_0x180d28(0x133))/0x7*(parseInt(_0x180d28(0x12d))/0x8)+-parseInt(_0x180d28(0x131))/0x9+-parseInt(_0x180d28(0x12f))/0xa*(-parseInt(_0x180d28(0x12b))/0xb)+parseInt(_0x180d28(0x130))/0xc;if(_0x3c3cb5===_0x440a68)break;else _0x611b49['push'](_0x611b49['shift']());}catch(_0x4ce9c2){_0x611b49['push'](_0x611b49['shift']());}}}(a55_0xcf0c,0xba145));function a55_0x2c48(_0x28fd6,_0x4220ed){_0x28fd6=_0x28fd6-0x129;var _0xcf0ced=a55_0xcf0c();var _0x2c48cd=_0xcf0ced[_0x28fd6];return _0x2c48cd;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ function a55_0x350c(){var _0x6224f5=['3346854bJUEAl','5rDPNmi','8328MuKxrU','4925088xGspXp','903348tpqniV','1456254ZxHMHv','1144LZmSNu','2356416MUoCOD','14899923vUzfaT'];a55_0x350c=function(){return _0x6224f5;};return a55_0x350c();}function a55_0x56ba(_0x454aea,_0x419216){_0x454aea=_0x454aea-0x1bf;var _0x350c4d=a55_0x350c();var _0x56baf5=_0x350c4d[_0x454aea];return _0x56baf5;}(function(_0x2416c4,_0x4a3ce9){var _0x6cd452=a55_0x56ba,_0x3739f8=_0x2416c4();while(!![]){try{var _0x2feba7=-parseInt(_0x6cd452(0x1bf))/0x1+parseInt(_0x6cd452(0x1c0))/0x2+-parseInt(_0x6cd452(0x1c6))/0x3*(-parseInt(_0x6cd452(0x1c1))/0x4)+-parseInt(_0x6cd452(0x1c5))/0x5*(parseInt(_0x6cd452(0x1c4))/0x6)+-parseInt(_0x6cd452(0x1c7))/0x7+-parseInt(_0x6cd452(0x1c2))/0x8+parseInt(_0x6cd452(0x1c3))/0x9;if(_0x2feba7===_0x4a3ce9)break;else _0x3739f8['push'](_0x3739f8['shift']());}catch(_0x2acb53){_0x3739f8['push'](_0x3739f8['shift']());}}}(a55_0x350c,0xaf5ed));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
package/lib/help.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1d1751,_0xe58f00){const _0x5e6c02=a56_0x24e3,_0xde0456=_0x1d1751();while(!![]){try{const _0x11ee00=-parseInt(_0x5e6c02(0x7c))/0x1*(parseInt(_0x5e6c02(0x76))/0x2)+parseInt(_0x5e6c02(0x75))/0x3+-parseInt(_0x5e6c02(0x71))/0x4+-parseInt(_0x5e6c02(0x74))/0x5+parseInt(_0x5e6c02(0x7a))/0x6+parseInt(_0x5e6c02(0x79))/0x7*(parseInt(_0x5e6c02(0x70))/0x8)+parseInt(_0x5e6c02(0x7b))/0x9;if(_0x11ee00===_0xe58f00)break;else _0xde0456['push'](_0xde0456['shift']());}catch(_0x397862){_0xde0456['push'](_0xde0456['shift']());}}}(a56_0x1ba2,0x355b5));import{jsx as a56_0x583a3c,jsxs as a56_0x389861}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a56_0x1ba2(){const _0x314633=['909891ASMtyW','454FcysUu','column','green','624421pyYWFq','1426380EMHorF','1108746APsknm','718iYQqNd','8hrEyja','588072LbraUs','\x20\x20Use\x20','\x20--help','1124355gtANDB'];a56_0x1ba2=function(){return _0x314633;};return a56_0x1ba2();}function a56_0x24e3(_0x3c93a9,_0x1e61fe){_0x3c93a9=_0x3c93a9-0x70;const _0x1ba2bc=a56_0x1ba2();let _0x24e36b=_0x1ba2bc[_0x3c93a9];return _0x24e36b;}export function Help(){const _0x20dd28=a56_0x24e3,{exit:_0x5888f2}=useApp();return useEffect(()=>{_0x5888f2();},[_0x5888f2]),a56_0x389861(Box,{'flexDirection':_0x20dd28(0x77),'marginTop':0x1,'marginBottom':0x1,'children':[a56_0x583a3c(Box,{'children':a56_0x583a3c(Text,{'bold':!![],'color':_0x20dd28(0x78),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a56_0x389861(Box,{'marginTop':0x1,'children':[a56_0x583a3c(Text,{'dimColor':!![],'children':_0x20dd28(0x72)}),a56_0x583a3c(Text,{'bold':!![],'color':_0x20dd28(0x78),'children':CLI_BIN_NAME+_0x20dd28(0x73)}),a56_0x583a3c(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}
1
+ (function(_0x496eac,_0x43fa37){const _0x466c8b=a56_0x2eac,_0x37c97f=_0x496eac();while(!![]){try{const _0x3adf01=parseInt(_0x466c8b(0x109))/0x1+-parseInt(_0x466c8b(0x10e))/0x2*(parseInt(_0x466c8b(0x106))/0x3)+parseInt(_0x466c8b(0x103))/0x4+parseInt(_0x466c8b(0x111))/0x5*(-parseInt(_0x466c8b(0x10f))/0x6)+-parseInt(_0x466c8b(0x105))/0x7+parseInt(_0x466c8b(0x10a))/0x8*(parseInt(_0x466c8b(0x10c))/0x9)+parseInt(_0x466c8b(0x10d))/0xa;if(_0x3adf01===_0x43fa37)break;else _0x37c97f['push'](_0x37c97f['shift']());}catch(_0x2e3557){_0x37c97f['push'](_0x37c97f['shift']());}}}(a56_0x4862,0xd2fe5));function a56_0x2eac(_0x263de8,_0x6f144c){_0x263de8=_0x263de8-0x103;const _0x486203=a56_0x4862();let _0x2eac7c=_0x486203[_0x263de8];return _0x2eac7c;}import{jsx as a56_0x4bc67c,jsxs as a56_0x160b3c}from'react/jsx-runtime';function a56_0x4862(){const _0x26f27c=['6CpTLIf','column','1523015eUWniG','2013460nddtEL','green','8004192nFdCFc','4182vdKVuj','\x20--help','\x20to\x20view\x20available\x20commands.','856025AAmaAy','32PBIfOL','\x20\x20Use\x20','817497ALEpoP','18971380GSJFpw','1876agaUtZ'];a56_0x4862=function(){return _0x26f27c;};return a56_0x4862();}import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x565350=a56_0x2eac,{exit:_0xa8e329}=useApp();return useEffect(()=>{_0xa8e329();},[_0xa8e329]),a56_0x160b3c(Box,{'flexDirection':_0x565350(0x110),'marginTop':0x1,'marginBottom':0x1,'children':[a56_0x4bc67c(Box,{'children':a56_0x4bc67c(Text,{'bold':!![],'color':_0x565350(0x104),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a56_0x160b3c(Box,{'marginTop':0x1,'children':[a56_0x4bc67c(Text,{'dimColor':!![],'children':_0x565350(0x10b)}),a56_0x4bc67c(Text,{'bold':!![],'color':_0x565350(0x104),'children':CLI_BIN_NAME+_0x565350(0x107)}),a56_0x4bc67c(Text,{'dimColor':!![],'children':_0x565350(0x108)})]})]});}