@lovrabet/lovrabet-cli 2.1.9-beta.1 → 2.1.9-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 (117) hide show
  1. package/lib/cli.js +1 -1
  2. package/lib/commands/api-doc/index.js +1 -1
  3. package/lib/commands/app/cache.js +1 -1
  4. package/lib/commands/app/definitions.js +1 -1
  5. package/lib/commands/app/eligibility.js +1 -1
  6. package/lib/commands/app/mock-loader.js +1 -1
  7. package/lib/commands/app/remote-source.js +1 -1
  8. package/lib/commands/app/shared.js +1 -1
  9. package/lib/commands/app-config/get.js +1 -1
  10. package/lib/commands/app-config/index.js +1 -1
  11. package/lib/commands/app-config/shared.js +1 -1
  12. package/lib/commands/artifact/index.js +1 -1
  13. package/lib/commands/auth/index.js +1 -1
  14. package/lib/commands/auth/prompt.js +1 -1
  15. package/lib/commands/bff/detail.js +1 -1
  16. package/lib/commands/bff/exec.js +1 -1
  17. package/lib/commands/bff/index.js +1 -1
  18. package/lib/commands/cli-skill/index.js +1 -1
  19. package/lib/commands/common/config-policy.js +1 -1
  20. package/lib/commands/common/constraints.js +1 -1
  21. package/lib/commands/common/flags.js +1 -1
  22. package/lib/commands/common/local-file.js +1 -1
  23. package/lib/commands/config/definitions.js +1 -1
  24. package/lib/commands/config/shared.js +1 -1
  25. package/lib/commands/data/index.js +1 -1
  26. package/lib/commands/dataset/detail.js +1 -1
  27. package/lib/commands/dataset/index.js +1 -1
  28. package/lib/commands/dataset/list.js +1 -1
  29. package/lib/commands/dataset/sdk-doc.js +1 -1
  30. package/lib/commands/doctor.js +1 -1
  31. package/lib/commands/file/index.js +1 -1
  32. package/lib/commands/init.js +1 -1
  33. package/lib/commands/kb/index.js +1 -1
  34. package/lib/commands/logs/index.js +1 -1
  35. package/lib/commands/ocr/index.js +1 -1
  36. package/lib/commands/personal-bff/index.js +1 -1
  37. package/lib/commands/registry.js +1 -1
  38. package/lib/commands/schema.js +1 -1
  39. package/lib/commands/service/dynamic.js +1 -1
  40. package/lib/commands/service/index.js +1 -1
  41. package/lib/commands/service/registry.js +1 -1
  42. package/lib/commands/skill/commands/create.js +1 -1
  43. package/lib/commands/skill/commands/install.js +1 -1
  44. package/lib/commands/skill/commands/list.js +1 -1
  45. package/lib/commands/skill/commands/push.js +1 -1
  46. package/lib/commands/skill/commands/validate.js +1 -1
  47. package/lib/commands/skill/flags.js +1 -1
  48. package/lib/commands/skill/index.js +1 -1
  49. package/lib/commands/skill/manifest-helpers.js +1 -1
  50. package/lib/commands/skill/push-execute.js +1 -1
  51. package/lib/commands/skill/push-flow-helpers.js +1 -1
  52. package/lib/commands/skill/push-retarget.js +1 -1
  53. package/lib/commands/skill/scopes.js +1 -1
  54. package/lib/commands/skill/summary.js +1 -1
  55. package/lib/commands/skill/templates.js +1 -1
  56. package/lib/commands/skill/validate.js +1 -1
  57. package/lib/commands/sql/detail.js +1 -1
  58. package/lib/commands/sql/exec.js +1 -1
  59. package/lib/commands/sql/index.js +1 -1
  60. package/lib/commands/update.js +1 -1
  61. package/lib/commands/workspace/index.js +1 -1
  62. package/lib/config/schema.js +1 -1
  63. package/lib/constant/app.js +1 -1
  64. package/lib/constant/auth-mode.js +1 -1
  65. package/lib/constant/cli.js +1 -1
  66. package/lib/constant/defaults.js +1 -1
  67. package/lib/constant/distribution.js +1 -1
  68. package/lib/constant/domain.js +1 -1
  69. package/lib/constant/env.js +1 -1
  70. package/lib/constant/output.js +1 -1
  71. package/lib/constant/product.js +1 -1
  72. package/lib/constant/risk.js +1 -1
  73. package/lib/constant/url.js +1 -1
  74. package/lib/context.js +1 -1
  75. package/lib/core/api-client.js +1 -1
  76. package/lib/core/db-resolver.js +1 -1
  77. package/lib/core/sdk-client.js +1 -1
  78. package/lib/errors.js +1 -1
  79. package/lib/framework/build-all-flags.js +1 -1
  80. package/lib/framework/dryrun.js +1 -1
  81. package/lib/framework/flags.js +1 -1
  82. package/lib/framework/help.js +1 -1
  83. package/lib/framework/index.js +1 -1
  84. package/lib/framework/output.js +1 -1
  85. package/lib/framework/preparse.js +1 -1
  86. package/lib/framework/response.js +1 -1
  87. package/lib/framework/runner-confirmation.js +1 -1
  88. package/lib/framework/runner-error.js +1 -1
  89. package/lib/framework/runner.js +1 -1
  90. package/lib/framework/schema-export.js +1 -1
  91. package/lib/framework/service-order.js +1 -1
  92. package/lib/framework/types.js +1 -1
  93. package/lib/generated/build-info.js +1 -1
  94. package/lib/help.js +1 -1
  95. package/lib/skills/npx-skills-add.js +1 -1
  96. package/lib/skills/runtime-skill-sync/constants.js +1 -1
  97. package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
  98. package/lib/skills/runtime-skill-sync/hashing.js +1 -1
  99. package/lib/skills/runtime-skill-sync/links.js +1 -1
  100. package/lib/skills/runtime-skill-sync/list-local.js +1 -1
  101. package/lib/skills/runtime-skill-sync/local-files.js +1 -1
  102. package/lib/skills/runtime-skill-sync/materialize.js +1 -1
  103. package/lib/skills/runtime-skill-sync/metadata.js +1 -1
  104. package/lib/skills/runtime-skill-sync/paths.js +1 -1
  105. package/lib/skills/runtime-skill-sync/push.js +1 -1
  106. package/lib/skills/runtime-skill-sync/scopes.js +1 -1
  107. package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
  108. package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
  109. package/lib/skills/runtime-skill-sync.js +1 -1
  110. package/lib/utils/apply-jq-filter.js +1 -1
  111. package/lib/utils/logger.js +1 -1
  112. package/lib/utils/params.js +1 -1
  113. package/lib/utils/platform.js +1 -1
  114. package/lib/utils/update-notice.js +1 -1
  115. package/lib/utils/version.js +1 -1
  116. package/lib/utils/write-cli-side-channel.js +1 -1
  117. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x190d82,_0x904aa8){const _0x1e7251=a74_0x363e,_0x4caab4=_0x190d82();while(!![]){try{const _0x5a3677=parseInt(_0x1e7251(0x253))/0x1*(-parseInt(_0x1e7251(0x20b))/0x2)+-parseInt(_0x1e7251(0x237))/0x3*(-parseInt(_0x1e7251(0x212))/0x4)+-parseInt(_0x1e7251(0x275))/0x5+-parseInt(_0x1e7251(0x1e8))/0x6+-parseInt(_0x1e7251(0x272))/0x7+-parseInt(_0x1e7251(0x21c))/0x8+parseInt(_0x1e7251(0x252))/0x9*(parseInt(_0x1e7251(0x23c))/0xa);if(_0x5a3677===_0x904aa8)break;else _0x4caab4['push'](_0x4caab4['shift']());}catch(_0x5ce9d3){_0x4caab4['push'](_0x4caab4['shift']());}}}(a74_0x2622,0xc3c04));import{readFile}from'node:fs/promises';import{basename}from'node:path';import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x4c3b1a){_activeAK=_0x4c3b1a||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x5b63e6,_0x56abd4={}){const _0x134849=a74_0x363e,{method:method=_0x134849(0x1f4),body:_0x50cc9e,headers:headers={},timeout:timeout=0x7530}=_0x56abd4,_0x41621d=_activeAK,_0x5aad8a=getRuntimeDomain();if(!_0x41621d)throw CliErrors[_0x134849(0x238)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x134849(0x1fe)]+'.');const _0x46c8ff=''+_0x5aad8a+_0x5b63e6,_0x40e596={'X-User-AK':_0x41621d},_0x5d1a45=new AbortController(),_0x153cc3=setTimeout(()=>_0x5d1a45['abort'](),timeout);try{const _0x3476bf=await fetch(_0x46c8ff,{'method':method,'headers':{'Content-Type':_0x134849(0x261),'X-Invoke-Source':PRODUCT_CONFIG[_0x134849(0x22c)],..._0x40e596,...headers},'body':_0x50cc9e?JSON[_0x134849(0x241)](_0x50cc9e):undefined,'signal':_0x5d1a45['signal']});let _0x56a33d;try{_0x56a33d=await _0x3476bf[_0x134849(0x223)]();}catch{throw CliErrors[_0x134849(0x23d)](_0x134849(0x224)+_0x3476bf[_0x134849(0x21b)]+')',_0x3476bf[_0x134849(0x21b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x3476bf['ok']||_0x56a33d[_0x134849(0x1f5)]===![])throw CliErrors[_0x134849(0x23d)](_0x56a33d[_0x134849(0x26e)]||_0x56a33d['message']||_0x134849(0x206)+_0x3476bf[_0x134849(0x21b)],_0x56a33d[_0x134849(0x229)]?_0x134849(0x268)+_0x56a33d['errorCode']:undefined);return _0x56a33d;}catch(_0x31452f){if(_0x31452f instanceof Error&&_0x31452f[_0x134849(0x24a)]===_0x134849(0x22e))throw CliErrors[_0x134849(0x23d)](_0x134849(0x263)+_0x46c8ff);throw _0x31452f;}finally{clearTimeout(_0x153cc3);}}async function apiBinaryRequest(_0x37b8dc,_0x5e11e8={}){const _0x1e0a6b=a74_0x363e,{method:method=_0x1e0a6b(0x1f4),headers:headers={},timeout:timeout=0x7530}=_0x5e11e8,_0x302bca=_activeAK,_0x163bbc=getRuntimeDomain();if(!_0x302bca)throw CliErrors['authRequired'](_0x1e0a6b(0x21f)+PRODUCT_CONFIG[_0x1e0a6b(0x1fe)]+'.');const _0x57cb6f=''+_0x163bbc+_0x37b8dc,_0x285750=new AbortController(),_0xac4773=setTimeout(()=>_0x285750[_0x1e0a6b(0x240)](),timeout);try{const _0x52ea08=await fetch(_0x57cb6f,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x1e0a6b(0x22c)],'X-User-AK':_0x302bca,...headers},'signal':_0x285750[_0x1e0a6b(0x1f1)]});if(!_0x52ea08['ok']){let _0x3524b2;try{const _0x51eead=await _0x52ea08[_0x1e0a6b(0x223)]();_0x3524b2=_0x51eead[_0x1e0a6b(0x26e)]||_0x51eead[_0x1e0a6b(0x23f)]||_0x51eead[_0x1e0a6b(0x229)];}catch{_0x3524b2=await _0x52ea08[_0x1e0a6b(0x257)]()[_0x1e0a6b(0x203)](()=>undefined);}throw CliErrors[_0x1e0a6b(0x23d)](_0x3524b2||'API\x20error:\x20'+_0x52ea08['status'],_0x1e0a6b(0x225)+_0x57cb6f);}return Buffer['from'](await _0x52ea08[_0x1e0a6b(0x214)]());}catch(_0x3bef9f){if(_0x3bef9f instanceof Error&&_0x3bef9f['name']===_0x1e0a6b(0x22e))throw CliErrors[_0x1e0a6b(0x23d)](_0x1e0a6b(0x263)+_0x57cb6f);throw _0x3bef9f;}finally{clearTimeout(_0xac4773);}}async function apiFormRequest(_0x39c534,_0x51e054,_0x42149d={}){const _0x20382e=a74_0x363e,{timeout:timeout=0x7530}=_0x42149d,_0x37d7ed=_activeAK,_0x1a8af9=getRuntimeDomain();if(!_0x37d7ed)throw CliErrors[_0x20382e(0x238)](_0x20382e(0x21f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x5b60ab=''+_0x1a8af9+_0x39c534,_0xf1a89b=new AbortController(),_0x19e573=setTimeout(()=>_0xf1a89b[_0x20382e(0x240)](),timeout);try{const _0x182bd4=await fetch(_0x5b60ab,{'method':_0x20382e(0x202),'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x20382e(0x22c)],'X-User-AK':_0x37d7ed},'body':_0x51e054,'signal':_0xf1a89b['signal']});let _0x5831e5;try{_0x5831e5=await _0x182bd4[_0x20382e(0x223)]();}catch{throw CliErrors[_0x20382e(0x23d)](_0x20382e(0x224)+_0x182bd4[_0x20382e(0x21b)]+')',_0x182bd4[_0x20382e(0x21b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x182bd4['ok']||_0x5831e5[_0x20382e(0x1f5)]===![])throw CliErrors[_0x20382e(0x23d)](_0x5831e5[_0x20382e(0x26e)]||_0x5831e5[_0x20382e(0x23f)]||'API\x20error:\x20'+_0x182bd4['status'],_0x5831e5[_0x20382e(0x229)]?_0x20382e(0x268)+_0x5831e5[_0x20382e(0x229)]:undefined);return _0x5831e5;}catch(_0x4c3437){if(_0x4c3437 instanceof Error&&_0x4c3437[_0x20382e(0x24a)]==='AbortError')throw CliErrors[_0x20382e(0x23d)]('Request\x20timeout:\x20'+_0x5b60ab);throw _0x4c3437;}finally{clearTimeout(_0x19e573);}}async function toolboxRequest(_0x115cca,_0x422911,_0x1e4f40={}){const _0x4e7a39=a74_0x363e,{method:method='GET',headers:headers={},timeout:timeout=0x7530}=_0x1e4f40,_0x8b5493=_activeAK;if(!_0x8b5493)throw CliErrors[_0x4e7a39(0x238)](_0x4e7a39(0x21f)+PRODUCT_CONFIG[_0x4e7a39(0x1fe)]+'.');const _0x540acc=getApiDomain()[_0x4e7a39(0x22f)](/\/$/,''),_0x49ac67=new URL(_0x115cca,_0x540acc+'/api/node-toolbox/');if(_0x422911)for(const [_0x318af2,_0x452e6e]of Object[_0x4e7a39(0x1ec)](_0x422911)){_0x452e6e!==undefined&&_0x452e6e!==null&&_0x49ac67['searchParams']['set'](_0x318af2,String(_0x452e6e));}const _0x111b8f=new AbortController(),_0x23ae37=setTimeout(()=>_0x111b8f[_0x4e7a39(0x240)](),timeout);try{const _0x3f5fd5=await fetch(_0x49ac67,{'method':method,'headers':{'Content-Type':_0x4e7a39(0x261),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x8b5493,...headers},'signal':_0x111b8f[_0x4e7a39(0x1f1)]});let _0x161750;try{_0x161750=await _0x3f5fd5['json']();}catch{throw CliErrors['apiError'](_0x4e7a39(0x1fa)+_0x3f5fd5[_0x4e7a39(0x21b)]+')',_0x3f5fd5[_0x4e7a39(0x21b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x3f5fd5['ok']){const _0x305405=_0x161750&&typeof _0x161750==='object'?_0x161750:{};throw CliErrors[_0x4e7a39(0x23d)](_0x305405[_0x4e7a39(0x26e)]||_0x305405[_0x4e7a39(0x23f)]||_0x4e7a39(0x1e7)+_0x3f5fd5[_0x4e7a39(0x21b)],_0x305405[_0x4e7a39(0x229)]?_0x4e7a39(0x26a)+_0x305405['errorCode']:undefined);}if(_0x161750&&typeof _0x161750===_0x4e7a39(0x26d)&&_0x4e7a39(0x1f5)in _0x161750&&typeof _0x161750['success']===_0x4e7a39(0x264)){const _0x2d604a=_0x161750;if(!_0x2d604a[_0x4e7a39(0x1f5)])throw CliErrors['apiError'](_0x2d604a['errorMsg']||_0x2d604a['message']||_0x4e7a39(0x1f9),_0x2d604a[_0x4e7a39(0x229)]?'Toolbox\x20error\x20code:\x20'+_0x2d604a[_0x4e7a39(0x229)]:undefined);return _0x2d604a[_0x4e7a39(0x213)];}return _0x161750;}catch(_0x4b2465){if(_0x4b2465 instanceof Error&&_0x4b2465[_0x4e7a39(0x24a)]==='AbortError')throw CliErrors[_0x4e7a39(0x23d)]('Request\x20timeout:\x20'+_0x49ac67['toString']());throw _0x4b2465;}finally{clearTimeout(_0x23ae37);}}async function skillHubJsonRequest(_0x1a2eba,_0x5d83fa={}){const _0x190594=a74_0x363e,{method:method=_0x190594(0x1f4),query:_0x350f4e,body:_0x23eb49,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5d83fa,_0x427e3c=_activeAK;if(!_0x427e3c)throw CliErrors[_0x190594(0x238)](_0x190594(0x21f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x305b5d=getSkillHubDomain()['replace'](/\/$/,''),_0xbe8920=new URL(_0x1a2eba,_0x305b5d+'/');if(_0x350f4e)for(const [_0x3574a3,_0x59cc05]of Object[_0x190594(0x1ec)](_0x350f4e)){_0x59cc05!==undefined&&_0x59cc05!==null&&_0xbe8920[_0x190594(0x276)][_0x190594(0x228)](_0x3574a3,String(_0x59cc05));}const _0x552b97=new AbortController(),_0x388135=setTimeout(()=>_0x552b97[_0x190594(0x240)](),timeout);try{const _0x12c667=await fetch(_0xbe8920[_0x190594(0x26f)](),{'method':method,'headers':{'Accept':_0x190594(0x261),'X-Invoke-Source':PRODUCT_CONFIG[_0x190594(0x22c)],'X-User-AK':_0x427e3c,...headers},'body':_0x23eb49,'signal':_0x552b97[_0x190594(0x1f1)]});let _0x531502;try{_0x531502=await _0x12c667[_0x190594(0x223)]();}catch{if(allowNotFound&&_0x12c667[_0x190594(0x21b)]===0x194)return undefined;throw CliErrors[_0x190594(0x23d)](_0x190594(0x267)+_0x12c667[_0x190594(0x21b)]+')',_0x12c667[_0x190594(0x21b)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x12c667[_0x190594(0x21b)],_0x531502))return undefined;const _0x2ed847=!_0x12c667['ok']||_0x531502?.[_0x190594(0x1f5)]===![]||typeof _0x531502?.[_0x190594(0x248)]==='number'&&_0x531502['code']>=0x190;if(_0x2ed847)throw CliErrors[_0x190594(0x23d)](_0x531502?.[_0x190594(0x26e)]||_0x531502?.[_0x190594(0x23f)]||_0x531502?.[_0x190594(0x1f7)]||_0x190594(0x205)+_0x12c667['status'],_0x531502?.[_0x190594(0x229)]?_0x190594(0x245)+_0x531502[_0x190594(0x229)]:undefined);return _0x531502?.[_0x190594(0x213)]??_0x531502;}catch(_0x31cc3a){if(_0x31cc3a instanceof Error&&_0x31cc3a['name']===_0x190594(0x22e))throw CliErrors[_0x190594(0x23d)]('Request\x20timeout:\x20'+_0xbe8920[_0x190594(0x26f)]());throw _0x31cc3a;}finally{clearTimeout(_0x388135);}}function isSkillHubNotFoundResponse(_0x593870,_0x7df24f){const _0x1df454=a74_0x363e;if(_0x593870===0x194||_0x7df24f?.[_0x1df454(0x248)]===0x194)return!![];if(_0x593870!==0x190&&_0x7df24f?.[_0x1df454(0x248)]!==0x190)return![];const _0x57431c=[_0x7df24f?.[_0x1df454(0x1f7)],_0x7df24f?.[_0x1df454(0x23f)],_0x7df24f?.[_0x1df454(0x26e)],_0x7df24f?.[_0x1df454(0x24d)]][_0x1df454(0x21d)](_0x591e83=>typeof _0x591e83===_0x1df454(0x20c))[_0x1df454(0x222)]('\x20');return/skill not found\b/i['test'](_0x57431c);}async function skillHubBinaryRequest(_0x52af05,_0x58b4e0={}){const _0xeca701=a74_0x363e,{query:_0x3d6b41,headers:headers={},timeout:timeout=0x7530}=_0x58b4e0,_0x40f52c=_activeAK;if(!_0x40f52c)throw CliErrors[_0xeca701(0x238)](_0xeca701(0x21f)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x416a23=getSkillHubDomain()[_0xeca701(0x22f)](/\/$/,''),_0x125677=new URL(_0x52af05,_0x416a23+'/');if(_0x3d6b41)for(const [_0x5d0629,_0x5cbf93]of Object[_0xeca701(0x1ec)](_0x3d6b41)){_0x5cbf93!==undefined&&_0x5cbf93!==null&&_0x125677[_0xeca701(0x276)]['set'](_0x5d0629,String(_0x5cbf93));}const _0x24e2ef=new AbortController(),_0x588ebf=setTimeout(()=>_0x24e2ef[_0xeca701(0x240)](),timeout);try{const _0x8dfad2=await fetch(_0x125677['toString'](),{'method':_0xeca701(0x1f4),'headers':{'Accept':_0xeca701(0x23b),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x40f52c,...headers},'signal':_0x24e2ef['signal']});if(!_0x8dfad2['ok']){let _0x1c1904;try{const _0x5735b2=await _0x8dfad2[_0xeca701(0x223)]();_0x1c1904=_0x5735b2[_0xeca701(0x26e)]||_0x5735b2[_0xeca701(0x23f)]||_0x5735b2[_0xeca701(0x1f7)]||_0x5735b2['errorCode'];}catch{_0x1c1904=await _0x8dfad2[_0xeca701(0x257)]()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x1c1904||_0xeca701(0x205)+_0x8dfad2[_0xeca701(0x21b)],_0xeca701(0x225)+_0x125677[_0xeca701(0x26f)]());}return Buffer[_0xeca701(0x236)](await _0x8dfad2[_0xeca701(0x214)]());}catch(_0x49f135){if(_0x49f135 instanceof Error&&_0x49f135[_0xeca701(0x24a)]===_0xeca701(0x22e))throw CliErrors[_0xeca701(0x23d)]('Request\x20timeout:\x20'+_0x125677['toString']());throw _0x49f135;}finally{clearTimeout(_0x588ebf);}}export async function getBffScriptInfo(_0x3daf49){const _0x4becba=a74_0x363e,_0x4922fa=await apiRequest('/client/bff/query/'+_0x3daf49);if(!_0x4922fa['data'])throw CliErrors[_0x4becba(0x26c)](_0x4becba(0x255)+_0x3daf49);return _0x4922fa[_0x4becba(0x213)];}export async function getSqlQueryInfo(_0x28096b,_0x9dc8d5){const _0x17e7fc=a74_0x363e,_0x22ab75=await apiRequest('/client/sql/query',{'method':_0x17e7fc(0x202),'body':{'appCode':_0x28096b,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0x9dc8d5}}),_0x36377d=_0x22ab75[_0x17e7fc(0x213)],_0x14c5eb=_0x36377d&&typeof _0x36377d===_0x17e7fc(0x26d)&&'tableData'in _0x36377d?_0x36377d['tableData']?.[0x0]:_0x36377d&&typeof _0x36377d===_0x17e7fc(0x26d)&&'sqlCode'in _0x36377d?_0x36377d:undefined;if(!_0x14c5eb)throw CliErrors[_0x17e7fc(0x26c)](_0x17e7fc(0x1f6)+_0x9dc8d5);return _0x14c5eb;}function isRemoteAppItem(_0x20b7a7){const _0x16719d=a74_0x363e;return!!_0x20b7a7&&typeof _0x20b7a7==='object'&&typeof _0x20b7a7[_0x16719d(0x25a)]===_0x16719d(0x20c)&&typeof _0x20b7a7[_0x16719d(0x1ee)]==='string';}function extractRemoteAppItems(_0x1c67df){const _0x11c46b=a74_0x363e;if(Array[_0x11c46b(0x1fd)](_0x1c67df))return _0x1c67df[_0x11c46b(0x21d)](isRemoteAppItem);if(!_0x1c67df||typeof _0x1c67df!==_0x11c46b(0x26d))throw CliErrors[_0x11c46b(0x23d)](_0x11c46b(0x246));const _0xc0e39d=_0x1c67df;if(Array[_0x11c46b(0x1fd)](_0xc0e39d[_0x11c46b(0x250)]))return _0xc0e39d['tableData'][_0x11c46b(0x21d)](isRemoteAppItem);if(_0xc0e39d[_0x11c46b(0x213)]&&typeof _0xc0e39d['data']==='object'){const _0x6ac103=_0xc0e39d[_0x11c46b(0x213)];if(Array[_0x11c46b(0x1fd)](_0x6ac103[_0x11c46b(0x250)]))return _0x6ac103[_0x11c46b(0x250)][_0x11c46b(0x21d)](isRemoteAppItem);}throw CliErrors['apiError'](_0x11c46b(0x23e));}export async function getMyApps(){const _0x5eb735=a74_0x363e,_0x3ffda8=await apiRequest(_0x5eb735(0x260));return extractRemoteAppItems(_0x3ffda8[_0x5eb735(0x213)]);}export async function getLoginUserInfo(){const _0x807390=a74_0x363e,_0x3ae9fd=await apiRequest(_0x807390(0x21e));if(!_0x3ae9fd[_0x807390(0x213)]||typeof _0x3ae9fd[_0x807390(0x213)]!==_0x807390(0x26d)||Array[_0x807390(0x1fd)](_0x3ae9fd[_0x807390(0x213)]))throw CliErrors['apiError'](_0x807390(0x1e9));return _0x3ae9fd[_0x807390(0x213)];}function a74_0x363e(_0x4345e2,_0x2c2417){_0x4345e2=_0x4345e2-0x1e6;const _0x2622b0=a74_0x2622();let _0x363e63=_0x2622b0[_0x4345e2];return _0x363e63;}export async function listDatasets(_0x15c1ae,_0x2e118f){const _0x303bb8=a74_0x363e,_0x1f27e8=await apiRequest(_0x303bb8(0x232),{'method':_0x303bb8(0x202),'body':{'appCode':_0x15c1ae,..._0x2e118f?.[_0x303bb8(0x248)]&&{'code':_0x2e118f[_0x303bb8(0x248)]},..._0x2e118f?.[_0x303bb8(0x24a)]&&{'name':_0x2e118f[_0x303bb8(0x24a)]}}});return extractList(_0x1f27e8[_0x303bb8(0x213)]);}export async function getDatasetDetail(_0x116c3a){const _0x1ab363=a74_0x363e,_0xbd7953=await apiRequest(_0x1ab363(0x25f)+encodeURIComponent(_0x116c3a));return _0xbd7953[_0x1ab363(0x213)];}export async function getDatasetSdkUsageDoc(_0x109790,_0x2a4944){const _0x1d77c7=a74_0x363e,_0x517ca8=await toolboxRequest(_0x1d77c7(0x211),{'datasetCode':_0x109790,'appCode':_0x2a4944});return typeof _0x517ca8?.[_0x1d77c7(0x1f8)]===_0x1d77c7(0x20c)?_0x517ca8[_0x1d77c7(0x1f8)]:'';}export async function uploadRuntimeFile(_0x47ecb2,_0x596c50){const _0x4ab272=a74_0x363e,_0x2fd340=await readFile(_0x596c50),_0x5430dc=new FormData();_0x5430dc[_0x4ab272(0x235)](_0x4ab272(0x25a),_0x47ecb2),_0x5430dc[_0x4ab272(0x235)](_0x4ab272(0x25c),new Blob([new Uint8Array(_0x2fd340)]),basename(_0x596c50));const _0x237189=await apiFormRequest(_0x4ab272(0x25d),_0x5430dc);return _0x237189['data'];}export async function queryRuntimeFileUrl(_0x14e803,_0x435bf2={}){const _0x4b8943=a74_0x363e,_0xc2dc06=await apiRequest(_0x4b8943(0x216),{'method':_0x4b8943(0x202),'body':{'filePath':_0x14e803,'downloadFlag':_0x435bf2[_0x4b8943(0x218)]??![]}});return _0xc2dc06['data'];}export async function recognizeRuntimeOcr(_0x1a0e6b,_0x58b3a7){const _0x1d865e=a74_0x363e,_0x28f891=await apiRequest(_0x1d865e(0x209),{'method':_0x1d865e(0x202),'body':{'appCode':_0x1a0e6b,'url':_0x58b3a7['url'],'type':_0x58b3a7['type']}});return _0x28f891['data'];}export async function getRuntimeAppConfigByKey(_0x3ce8ed,_0x58dfb5){const _0x1e8519=a74_0x363e,_0x52753b=new URLSearchParams({'appCode':_0x3ce8ed,'key':_0x58dfb5}),_0x39e8a8=await apiRequest('/client/app-config/getByKey?'+_0x52753b[_0x1e8519(0x26f)]());if(!_0x39e8a8[_0x1e8519(0x213)])throw CliErrors[_0x1e8519(0x26c)](_0x1e8519(0x210)+_0x58dfb5);return _0x39e8a8[_0x1e8519(0x213)];}export async function listRuntimeArtifacts(_0x269f9d,_0x5e25dd){const _0x1756b5=a74_0x363e,_0x41956a=new URLSearchParams({'appCode':_0x269f9d});if(_0x5e25dd?.[_0x1756b5(0x266)])_0x41956a[_0x1756b5(0x228)]('artifactType',_0x5e25dd['artifactType']);if(_0x5e25dd?.['source'])_0x41956a[_0x1756b5(0x228)](_0x1756b5(0x269),_0x5e25dd[_0x1756b5(0x269)]);if(_0x5e25dd?.[_0x1756b5(0x22d)]!==undefined)_0x41956a[_0x1756b5(0x228)]('favorite',String(_0x5e25dd[_0x1756b5(0x22d)]));const _0x407baf=await apiRequest(_0x1756b5(0x254)+_0x41956a[_0x1756b5(0x26f)]());return Array[_0x1756b5(0x1fd)](_0x407baf['data'])?_0x407baf['data']:[];}export async function getRuntimeArtifact(_0x28e3e8,_0x42913d){const _0x2a9def=a74_0x363e,_0x21cb24=await apiRequest(_0x2a9def(0x1ff)+_0x28e3e8+'?appCode='+encodeURIComponent(_0x42913d));if(!_0x21cb24[_0x2a9def(0x213)])throw CliErrors[_0x2a9def(0x26c)](_0x2a9def(0x259)+_0x28e3e8);return _0x21cb24[_0x2a9def(0x213)];}export async function createRuntimeArtifact(_0x4da069,_0x18671b){const _0x4ac5aa=a74_0x363e,_0x3bffa3=await apiRequest(_0x4ac5aa(0x242),{'method':_0x4ac5aa(0x202),'body':{'appCode':_0x4da069,..._0x18671b}});return _0x3bffa3[_0x4ac5aa(0x213)];}export async function updateRuntimeArtifact(_0x260d2a,_0x2b00ed,_0x47f647){const _0x833112=a74_0x363e,_0x4481e0=await apiRequest(_0x833112(0x1ff)+_0x260d2a+'/update',{'method':'POST','body':{'appCode':_0x2b00ed,..._0x47f647}});return _0x4481e0[_0x833112(0x213)];}export async function listPersonalBffs(_0x3541bb){const _0x5e866f=a74_0x363e,_0x2664bd=await apiRequest(_0x5e866f(0x231)+encodeURIComponent(_0x3541bb));return Array[_0x5e866f(0x1fd)](_0x2664bd[_0x5e866f(0x213)])?_0x2664bd['data']:[];}export async function getPersonalBff(_0x34d90a,_0x11a0e0){const _0x5cfeb2=a74_0x363e,_0x3139d7=await apiRequest(_0x5cfeb2(0x1fb)+_0x34d90a+_0x5cfeb2(0x251)+encodeURIComponent(_0x11a0e0));if(!_0x3139d7['data'])throw CliErrors['validation']('Personal\x20BFF\x20not\x20found:\x20id='+_0x34d90a);return _0x3139d7[_0x5cfeb2(0x213)];}export async function createPersonalBff(_0xbd5fdf,_0x167f5a){const _0x39f09b=a74_0x363e,_0x5c2069=await apiRequest(_0x39f09b(0x220),{'method':_0x39f09b(0x202),'body':{'appCode':_0xbd5fdf,..._0x167f5a}});return _0x5c2069[_0x39f09b(0x213)];}export async function updatePersonalBff(_0xdf90e,_0x4cb85f,_0x2d73d3){const _0x1d1736=a74_0x363e,_0x4249a1=await apiRequest(_0x1d1736(0x1fb)+_0xdf90e+_0x1d1736(0x256),{'method':_0x1d1736(0x202),'body':{'appCode':_0x4cb85f,..._0x2d73d3}});return _0x4249a1[_0x1d1736(0x213)];}export async function executePersonalBff(_0x346995,_0x4de7a8,_0x3b29a4){const _0x445fda=a74_0x363e,_0x89730b=await apiRequest(_0x445fda(0x1fb)+_0x346995+_0x445fda(0x21a)+encodeURIComponent(_0x4de7a8),{'method':_0x445fda(0x202),'body':_0x3b29a4});return _0x89730b[_0x445fda(0x213)];}export async function listPersonalKnowledgeBaseItems(_0x1e9539){const _0x3c749e=a74_0x363e,_0x3e4c91=await apiRequest(_0x3c749e(0x24b)+encodeURIComponent(_0x1e9539));return Array[_0x3c749e(0x1fd)](_0x3e4c91['data'])?_0x3e4c91[_0x3c749e(0x213)]:[];}export async function getPersonalKnowledgeBaseItem(_0x1a1e09,_0x45c986){const _0x598eae=a74_0x363e,_0x5ac2fa=await apiRequest(_0x598eae(0x258)+_0x1a1e09+_0x598eae(0x251)+encodeURIComponent(_0x45c986));if(!_0x5ac2fa[_0x598eae(0x213)])throw CliErrors[_0x598eae(0x26c)](_0x598eae(0x234)+_0x1a1e09);return _0x5ac2fa[_0x598eae(0x213)];}export async function createPersonalKnowledgeBaseItem(_0x42e0c1,_0xd8c329){const _0x19a825=a74_0x363e,_0x1d6244=await apiRequest(_0x19a825(0x22b),{'method':_0x19a825(0x202),'body':{'appCode':_0x42e0c1,..._0xd8c329}});return _0x1d6244[_0x19a825(0x213)];}export async function updatePersonalKnowledgeBaseItem(_0x2e3a45,_0xd986de,_0x35e43d){const _0x455d9a=a74_0x363e,_0x324a8f=await apiRequest(_0x455d9a(0x258)+_0x2e3a45+_0x455d9a(0x256),{'method':_0x455d9a(0x202),'body':{'appCode':_0xd986de,..._0x35e43d}});return _0x324a8f[_0x455d9a(0x213)];}export async function searchKnowledgeBase(_0x1ebd0b,_0x1a41f6){const _0x54c137=a74_0x363e,_0x4c48ff=await apiRequest(_0x54c137(0x207),{'method':'POST','body':{'appCode':_0x1ebd0b,'query':_0x1a41f6[_0x54c137(0x1ea)],..._0x1a41f6[_0x54c137(0x24c)]!==undefined?{'topK':_0x1a41f6[_0x54c137(0x24c)]}:{}}});return Array[_0x54c137(0x1fd)](_0x4c48ff[_0x54c137(0x213)])?_0x4c48ff['data']:[];}export async function getRuntimeSkillByCode(_0x38cf00,_0x2ceb37){const _0x3b3f28=a74_0x363e,_0x18ef26=await skillHubJsonRequest(_0x3b3f28(0x226)+encodeURIComponent(_0x38cf00)+'/'+encodeURIComponent(_0x2ceb37),{'allowNotFound':!![]});return _0x18ef26?skillHubRuntimeDetailToRuntimeSkill(_0x18ef26):undefined;}export async function listRuntimeSkills(_0x467633){const _0x440557=a74_0x363e,_0x464e04=await skillHubJsonRequest(_0x440557(0x244)+encodeURIComponent(_0x467633[_0x440557(0x25a)])+_0x440557(0x26b),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x467633[_0x440557(0x25a)],_0x464e04,_0x467633[_0x440557(0x270)]??_0x440557(0x208),_0x467633[_0x440557(0x248)]);}export async function listPersonalRuntimeSkills(_0x4d09ec){const _0x43d80d=a74_0x363e;return(await listRuntimeSkills({'appCode':_0x4d09ec,'scope':'personal'}))[_0x43d80d(0x233)];}export async function listCompanyRuntimeSkills(_0x31cad0){const _0x14b20f=a74_0x363e;return(await listRuntimeSkills({'appCode':_0x31cad0,'scope':_0x14b20f(0x265)}))['company'];}export async function listVisibleRuntimeSkills(_0xbe371a){const _0x2e1413=a74_0x363e;return(await listRuntimeSkills({'appCode':_0xbe371a,'scope':_0x2e1413(0x208)}))[_0x2e1413(0x1ef)];}export async function createPersonalRuntimeSkill(_0x577f90,_0x26cca3){const _0xcbb789=a74_0x363e;return publishRuntimeSkill(_0x577f90,_0x26cca3,{'visibility':_0xcbb789(0x23a)});}export async function updatePersonalRuntimeSkill(_0x3b5c03,_0x51310c,_0x52d5a4){const _0x2d0a86=a74_0x363e;return publishRuntimeSkill(_0x51310c,{..._0x52d5a4,'skillCode':_0x52d5a4[_0x2d0a86(0x247)]??_0x3b5c03},{'visibility':_0x2d0a86(0x23a)});}export async function publishCompanyRuntimeSkill(_0x520916,_0x2d4280,_0x54e909={}){const _0x5ae825=a74_0x363e;return publishRuntimeSkill(_0x520916,_0x2d4280,{'visibility':_0x5ae825(0x249),'confirmWarnings':_0x54e909[_0x5ae825(0x274)]});}export async function validateRuntimeSkillPublish(_0x3060f5,_0x7fa64c,_0x30fb77){const _0x264c46=a74_0x363e,_0x57e3f7=buildRuntimeSkillPublishForm(_0x7fa64c,_0x30fb77[_0x264c46(0x215)]),_0xd36a2c=await skillHubJsonRequest(_0x264c46(0x200)+encodeURIComponent(_0x3060f5)+_0x264c46(0x20d),{'method':_0x264c46(0x202),'body':_0x57e3f7});return{'valid':_0xd36a2c[_0x264c46(0x227)]===!![],'errors':Array[_0x264c46(0x1fd)](_0xd36a2c['errors'])?_0xd36a2c[_0x264c46(0x20f)]:[],'warnings':Array[_0x264c46(0x1fd)](_0xd36a2c['warnings'])?_0xd36a2c['warnings']:[],'resolvedSlug':_0xd36a2c[_0x264c46(0x204)],'resolvedVersion':_0xd36a2c[_0x264c46(0x24f)]};}export async function downloadRuntimeSkillPackage(_0x4669b9,_0xf32500,_0x34076e,_0x3c48d6){const _0x578103=a74_0x363e;void _0x4669b9;const _0x388589=_0x3c48d6?_0x578103(0x200)+encodeURIComponent(_0x34076e)+'/'+encodeURIComponent(_0xf32500)+_0x578103(0x24e)+encodeURIComponent(_0x3c48d6)+_0x578103(0x25b):'/api/cli/v1/skills/'+encodeURIComponent(_0x34076e)+'/'+encodeURIComponent(_0xf32500)+_0x578103(0x25b);return skillHubBinaryRequest(_0x388589);}async function publishRuntimeSkill(_0x4b35de,_0x2fc358,_0x3ac3a9){const _0x61b815=a74_0x363e,_0x367cd5=buildRuntimeSkillPublishForm(_0x2fc358,_0x3ac3a9[_0x61b815(0x215)]),_0x432e83=await skillHubJsonRequest(_0x61b815(0x200)+encodeURIComponent(_0x4b35de)+'/publish',{'method':'POST','query':{'confirmWarnings':_0x3ac3a9[_0x61b815(0x274)]===!![]?!![]:undefined},'body':_0x367cd5});return{'appCode':_0x432e83[_0x61b815(0x1e6)]??_0x4b35de,'skillCode':_0x432e83[_0x61b815(0x230)]??_0x2fc358['skillCode']??'','skillName':_0x2fc358[_0x61b815(0x1eb)]??_0x432e83[_0x61b815(0x230)]??_0x2fc358['skillCode'],'description':_0x2fc358[_0x61b815(0x273)],'scope':skillHubVisibilityToScope(_0x432e83[_0x61b815(0x215)]??_0x3ac3a9['visibility'])??_0x61b815(0x233),'version':_0x432e83['version']??_0x2fc358[_0x61b815(0x1f2)],'tags':_0x2fc358[_0x61b815(0x1fc)],'content':_0x2fc358[_0x61b815(0x1f0)]};}function buildRuntimeSkillPublishForm(_0x3e63b0,_0x2060c1){const _0x551c81=a74_0x363e,_0x29b2da=new FormData();return _0x29b2da['set'](_0x551c81(0x25c),runtimeSkillPackageFile(_0x3e63b0)),_0x3e63b0[_0x551c81(0x1eb)]?.[_0x551c81(0x219)]()&&_0x29b2da['set'](_0x551c81(0x243),_0x3e63b0['skillName'][_0x551c81(0x219)]()),_0x29b2da['set']('visibility',_0x2060c1),_0x29b2da;}function runtimeSkillPackageFile(_0x3b3cde){const _0x4cf25c=a74_0x363e;if(!_0x3b3cde[_0x4cf25c(0x1ed)])throw CliErrors[_0x4cf25c(0x26c)](_0x4cf25c(0x221));const _0x13c234=Buffer[_0x4cf25c(0x236)](_0x3b3cde[_0x4cf25c(0x1ed)],_0x4cf25c(0x25e)),_0x492296=new Blob([_0x13c234],{'type':_0x4cf25c(0x271)}),_0xd5f9f1=(_0x3b3cde[_0x4cf25c(0x247)]||_0x4cf25c(0x1f3))+'.zip';if(typeof File!==_0x4cf25c(0x239))return new File([_0x492296],_0xd5f9f1,{'type':'application/zip'});return _0x492296;}function normalizeSkillHubRuntimeListResponse(_0x50875a,_0x424ad4,_0x41dc55,_0x380619){const _0xb75e67=a74_0x363e,_0x53a5dc=Array[_0xb75e67(0x1fd)](_0x424ad4)?_0x424ad4:Array['isArray'](_0x424ad4?.['items'])?_0x424ad4[_0xb75e67(0x201)]:[],_0x1f1ad3=_0x380619?.[_0xb75e67(0x219)](),_0x8d0248=_0x53a5dc['filter'](_0x1441a5=>!_0x1f1ad3||_0x1441a5['slug']===_0x1f1ad3)[_0xb75e67(0x20a)](skillHubRuntimeItemToRuntimeSkill)[_0xb75e67(0x21d)](_0x3e6b10=>Boolean(_0x3e6b10)),_0x14d47c=_0x8d0248[_0xb75e67(0x21d)](_0x43a2d8=>_0x43a2d8[_0xb75e67(0x270)]===_0xb75e67(0x233)),_0x303813=_0x8d0248[_0xb75e67(0x21d)](_0x544745=>_0x544745[_0xb75e67(0x270)]===_0xb75e67(0x265));return{'appCode':_0x50875a,'personal':_0x41dc55==='company'?[]:_0x14d47c,'company':_0x41dc55===_0xb75e67(0x233)?[]:_0x303813,'effective':buildEffectiveRuntimeSkills(_0x14d47c,_0x303813,_0x41dc55)};}function skillHubRuntimeItemToRuntimeSkill(_0xb39214){const _0x11fd50=a74_0x363e,_0x1292c3=_0xb39214[_0x11fd50(0x230)]?.[_0x11fd50(0x219)](),_0x57987c=skillHubVisibilityToScope(_0xb39214['visibility']);if(!_0x1292c3||!_0x57987c)return undefined;return{'id':_0xb39214['id'],'appCode':_0xb39214[_0x11fd50(0x1e6)],'skillCode':_0x1292c3,'skillName':_0xb39214[_0x11fd50(0x243)]??_0x1292c3,'description':_0xb39214[_0x11fd50(0x262)],'scope':_0x57987c,'version':skillHubRuntimeItemVersion(_0xb39214),'status':_0xb39214[_0x11fd50(0x21b)]};}function skillHubRuntimeDetailToRuntimeSkill(_0x339575){const _0x495dcd=a74_0x363e,_0xd9065e=_0x339575['slug']?.[_0x495dcd(0x219)]();if(!_0xd9065e)return undefined;return{'id':_0x339575['id'],'appCode':_0x339575['namespace'],'skillCode':_0xd9065e,'skillName':_0x339575[_0x495dcd(0x243)]??_0xd9065e,'description':_0x339575[_0x495dcd(0x262)],'scope':skillHubVisibilityToScope(_0x339575[_0x495dcd(0x215)])??_0x339575[_0x495dcd(0x215)]?.['toLowerCase'](),'version':skillHubRuntimeItemVersion(_0x339575),'status':_0x339575[_0x495dcd(0x21b)]};}function skillHubVisibilityToScope(_0x4aee13){const _0x17f5fe=a74_0x363e;if(_0x4aee13==='PRIVATE')return _0x17f5fe(0x233);if(_0x4aee13===_0x17f5fe(0x249))return _0x17f5fe(0x265);return undefined;}function skillHubRuntimeItemVersion(_0x8d1533){const _0x5ac976=a74_0x363e;return _0x8d1533[_0x5ac976(0x20e)]?.[_0x5ac976(0x1f2)]??_0x8d1533[_0x5ac976(0x22a)]?.[_0x5ac976(0x1f2)]??_0x8d1533['ownerPreviewVersion']?.['version'];}function buildEffectiveRuntimeSkills(_0x2c4d2f,_0x17fec7,_0x53eab9){const _0x4ee5ba=a74_0x363e;if(_0x53eab9===_0x4ee5ba(0x233))return _0x2c4d2f;if(_0x53eab9==='company')return _0x17fec7;const _0x4d1c69=new Map();for(const _0x58fa2c of _0x17fec7){_0x4d1c69[_0x4ee5ba(0x228)](_0x58fa2c['skillCode'],_0x58fa2c);}for(const _0x4ed922 of _0x2c4d2f){_0x4d1c69[_0x4ee5ba(0x228)](_0x4ed922[_0x4ee5ba(0x247)],_0x4ed922);}return Array[_0x4ee5ba(0x236)](_0x4d1c69[_0x4ee5ba(0x217)]());}function normalizeRuntimeSkillListResponse(_0x83e612,_0x3e8842){const _0x42dfa1=a74_0x363e;if(Array[_0x42dfa1(0x1fd)](_0x3e8842)){const _0x58858f=_0x3e8842[_0x42dfa1(0x21d)](_0x1faf3d=>_0x1faf3d[_0x42dfa1(0x270)]==='personal'),_0x234200=_0x3e8842[_0x42dfa1(0x21d)](_0x487d21=>_0x487d21[_0x42dfa1(0x270)]===_0x42dfa1(0x265));return{'appCode':_0x83e612,'personal':_0x58858f,'company':_0x234200,'effective':[..._0x234200,..._0x58858f]};}return{'appCode':_0x3e8842?.[_0x42dfa1(0x25a)]??_0x83e612,'personal':Array['isArray'](_0x3e8842?.[_0x42dfa1(0x233)])?_0x3e8842[_0x42dfa1(0x233)]:[],'company':Array[_0x42dfa1(0x1fd)](_0x3e8842?.[_0x42dfa1(0x265)])?_0x3e8842['company']:[],'effective':Array[_0x42dfa1(0x1fd)](_0x3e8842?.[_0x42dfa1(0x1ef)])?_0x3e8842[_0x42dfa1(0x1ef)]:[]};}function a74_0x2622(){const _0x1dd463=['appCode','/download','file','/client/uploadFile','base64','/client/dataset/get-driven-data?code=','/client/app/my-apps','application/json','summary','Request\x20timeout:\x20','boolean','company','artifactType','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','API\x20error\x20code:\x20','source','Toolbox\x20error\x20code:\x20','/skills','validation','object','errorMsg','toString','scope','application/zip','1156554SWWWCV','description','confirmWarnings','6541610EmdqcW','searchParams','namespace','Toolbox\x20API\x20error:\x20','1967532eXGoNq','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','query','skillName','entries','packageBase64','appName','effective','content','signal','version','skill','GET','success','SQL\x20query\x20not\x20found:\x20','msg','markdown','Toolbox\x20API\x20error','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','/client/runtime-bff/personal/','tags','isArray','newConfigFileName','/client/artifact/','/api/cli/v1/skills/','items','POST','catch','resolvedSlug','SkillHub\x20API\x20error:\x20','API\x20error:\x20','/client/knowledge-base/search','all','/client/ocr','map','292iCMhCZ','string','/publish/validate','publishedVersion','errors','App\x20config\x20not\x20found:\x20key=','api-doc-generator','19736cxDfcR','data','arrayBuffer','visibility','/client/queryFileUrl','values','download','trim','/execute?appCode=','status','10015376niSltn','filter','/client/user/loginUserInfo','Configure\x20accessKey\x20in\x20','/client/runtime-bff/personal/create','Missing\x20Skill\x20package\x20payload.','join','json','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Download\x20failed:\x20','/api/v1/skills/','valid','set','errorCode','headlineVersion','/client/knowledge-base/personal/create','invokeSource','favorite','AbortError','replace','slug','/client/runtime-bff/personal/list?appCode=','/client/dataset/list','personal','Knowledge-base\x20entry\x20not\x20found:\x20id=','append','from','249JnRJVP','authRequired','undefined','PRIVATE','application/octet-stream','82540wyRcPZ','apiError','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','message','abort','stringify','/client/artifact/create','displayName','/api/runtime/v1/namespaces/','SkillHub\x20error\x20code:\x20','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','skillCode','code','NAMESPACE_ONLY','name','/client/knowledge-base/personal/list?appCode=','topK','error','/versions/','resolvedVersion','tableData','?appCode=','4185maTJbn','2688mTcQGQ','/client/artifact/list?','BFF\x20script\x20not\x20found:\x20id=','/update','text','/client/knowledge-base/personal/','Artifact\x20not\x20found:\x20id='];a74_0x2622=function(){return _0x1dd463;};return a74_0x2622();}
1
+ (function(_0x30a2c1,_0x558bb7){const _0x5b7965=a74_0x5cd9,_0x21a3ef=_0x30a2c1();while(!![]){try{const _0x302e07=-parseInt(_0x5b7965(0xeb))/0x1+parseInt(_0x5b7965(0xf7))/0x2*(parseInt(_0x5b7965(0x9b))/0x3)+parseInt(_0x5b7965(0xdf))/0x4+-parseInt(_0x5b7965(0x96))/0x5+parseInt(_0x5b7965(0xf8))/0x6+-parseInt(_0x5b7965(0xb9))/0x7*(-parseInt(_0x5b7965(0xea))/0x8)+parseInt(_0x5b7965(0xe8))/0x9*(-parseInt(_0x5b7965(0x92))/0xa);if(_0x302e07===_0x558bb7)break;else _0x21a3ef['push'](_0x21a3ef['shift']());}catch(_0x44d5c9){_0x21a3ef['push'](_0x21a3ef['shift']());}}}(a74_0x4d58,0x714a9));import{readFile}from'node:fs/promises';import{basename}from'node:path';function a74_0x4d58(){const _0x50d375=['base64','data','invokeSource','/publish','/download','SkillHub\x20API\x20error:\x20','API\x20error:\x20','Invalid\x20login\x20user\x20info\x20response:\x20expected\x20object.','application/json','message','/client/runtime-bff/personal/','application/octet-stream','API\x20error\x20code:\x20','Configure\x20accessKey\x20in\x20','/skills','AbortError','/client/sql/query','GET','all','values','Invalid\x20app\x20list\x20response:\x20expected\x20object\x20or\x20array.','items','/client/dataset/get-driven-data?code=','NAMESPACE_ONLY','url','trim','/execute?appCode=','toLowerCase','errorMsg','valid','arrayBuffer','/client/artifact/create','download','newConfigFileName','name','/client/dataset/list','publishedVersion','5050mngfiW','status','error','Request\x20timeout:\x20','1079105TUZvjx','/api/cli/v1/skills/','POST','scope','map','6YHvYuf','boolean','errorCode','undefined','packageBase64','api-doc-generator','warnings','abort','/client/bff/query/','authRequired','application/zip','company','/api/runtime/v1/namespaces/','/client/knowledge-base/personal/list?appCode=','append','summary','string','.zip','skillCode','join','errors','version','success','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','Invalid\x20app\x20list\x20response:\x20missing\x20data.tableData.','Toolbox\x20error\x20code:\x20','tableData','/client/runtime-bff/personal/create','file','/client/app/my-apps','3370283bMuBnR','favorite','SQL\x20query\x20not\x20found:\x20','/client/knowledge-base/search','Check\x20your\x20credentials\x20and\x20try\x20again.','appCode','apiError','text','confirmWarnings','filter','slug','markdown','/versions/','Knowledge-base\x20entry\x20not\x20found:\x20id=','json','headlineVersion','tags','Toolbox\x20API\x20error:\x20','/client/artifact/list?','/client/user/loginUserInfo','replace','from','/client/uploadFile','type','isArray','test','validation','code','entries','App\x20config\x20not\x20found:\x20key=','catch','source','signal','skillName','PRIVATE','skill','appName','displayName','249048LzKScn','Artifact\x20not\x20found:\x20id=','Personal\x20BFF\x20not\x20found:\x20id=','artifactType','/client/ocr','content','effective','/client/queryFileUrl','object','5580bQjDnb','personal','8fdsdff','181746KqDMoE','visibility','number','searchParams','/client/knowledge-base/personal/create','Toolbox\x20returned\x20non-JSON\x20response\x20(HTTP\x20','SkillHub\x20returned\x20non-JSON\x20response\x20(HTTP\x20','namespace','/client/artifact/','msg','/api/v1/skills/','toString','327034GSvLku','1823658OAlgUN','ownerPreviewVersion','set','/api/node-toolbox/'];a74_0x4d58=function(){return _0x50d375;};return a74_0x4d58();}import{getApiDomain,getRuntimeDomain,getSkillHubDomain}from'../constant/domain.js';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{extractList}from'../framework/response.js';let _activeAK;export function setActiveAK(_0x5ba192){_activeAK=_0x5ba192||undefined;}export function clearActiveAK(){_activeAK=undefined;}async function apiRequest(_0x2ec0bf,_0x351969={}){const _0x378318=a74_0x5cd9,{method:method='GET',body:_0x417ef7,headers:headers={},timeout:timeout=0x7530}=_0x351969,_0x368e00=_activeAK,_0x27e425=getRuntimeDomain();if(!_0x368e00)throw CliErrors[_0x378318(0xa4)](_0x378318(0x7a)+PRODUCT_CONFIG['newConfigFileName']+'.');const _0x37689e=''+_0x27e425+_0x2ec0bf,_0x20c982={'X-User-AK':_0x368e00},_0x3b22d5=new AbortController(),_0xea65fc=setTimeout(()=>_0x3b22d5['abort'](),timeout);try{const _0x3b2777=await fetch(_0x37689e,{'method':method,'headers':{'Content-Type':_0x378318(0x75),'X-Invoke-Source':PRODUCT_CONFIG[_0x378318(0x6f)],..._0x20c982,...headers},'body':_0x417ef7?JSON['stringify'](_0x417ef7):undefined,'signal':_0x3b22d5[_0x378318(0xd9)]});let _0x44744b;try{_0x44744b=await _0x3b2777[_0x378318(0xc7)]();}catch{throw CliErrors[_0x378318(0xbf)](_0x378318(0xb2)+_0x3b2777[_0x378318(0x93)]+')',_0x3b2777['status']>=0x190?_0x378318(0xbd):undefined);}if(!_0x3b2777['ok']||_0x44744b[_0x378318(0xb1)]===![])throw CliErrors[_0x378318(0xbf)](_0x44744b['errorMsg']||_0x44744b[_0x378318(0x76)]||_0x378318(0x73)+_0x3b2777[_0x378318(0x93)],_0x44744b[_0x378318(0x9d)]?_0x378318(0x79)+_0x44744b[_0x378318(0x9d)]:undefined);return _0x44744b;}catch(_0x26ba00){if(_0x26ba00 instanceof Error&&_0x26ba00[_0x378318(0x8f)]==='AbortError')throw CliErrors[_0x378318(0xbf)](_0x378318(0x95)+_0x37689e);throw _0x26ba00;}finally{clearTimeout(_0xea65fc);}}async function apiBinaryRequest(_0x54ee90,_0x4949ff={}){const _0x2f1e72=a74_0x5cd9,{method:method=_0x2f1e72(0x7e),headers:headers={},timeout:timeout=0x7530}=_0x4949ff,_0x413c8f=_activeAK,_0x50db0f=getRuntimeDomain();if(!_0x413c8f)throw CliErrors[_0x2f1e72(0xa4)](_0x2f1e72(0x7a)+PRODUCT_CONFIG[_0x2f1e72(0x8e)]+'.');const _0x442ae9=''+_0x50db0f+_0x54ee90,_0x5118fc=new AbortController(),_0x4ebd1a=setTimeout(()=>_0x5118fc['abort'](),timeout);try{const _0x11e699=await fetch(_0x442ae9,{'method':method,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x2f1e72(0x6f)],'X-User-AK':_0x413c8f,...headers},'signal':_0x5118fc[_0x2f1e72(0xd9)]});if(!_0x11e699['ok']){let _0x4a75cd;try{const _0x51ecd3=await _0x11e699[_0x2f1e72(0xc7)]();_0x4a75cd=_0x51ecd3[_0x2f1e72(0x89)]||_0x51ecd3[_0x2f1e72(0x76)]||_0x51ecd3[_0x2f1e72(0x9d)];}catch{_0x4a75cd=await _0x11e699[_0x2f1e72(0xc0)]()[_0x2f1e72(0xd7)](()=>undefined);}throw CliErrors['apiError'](_0x4a75cd||_0x2f1e72(0x73)+_0x11e699[_0x2f1e72(0x93)],'Download\x20failed:\x20'+_0x442ae9);}return Buffer[_0x2f1e72(0xce)](await _0x11e699[_0x2f1e72(0x8b)]());}catch(_0x1f250a){if(_0x1f250a instanceof Error&&_0x1f250a['name']==='AbortError')throw CliErrors[_0x2f1e72(0xbf)](_0x2f1e72(0x95)+_0x442ae9);throw _0x1f250a;}finally{clearTimeout(_0x4ebd1a);}}async function apiFormRequest(_0x4ff459,_0x505056,_0x24859e={}){const _0x21d2b3=a74_0x5cd9,{timeout:timeout=0x7530}=_0x24859e,_0x4bb8c3=_activeAK,_0x3d67ee=getRuntimeDomain();if(!_0x4bb8c3)throw CliErrors['authRequired']('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x21d2b3(0x8e)]+'.');const _0x32be1d=''+_0x3d67ee+_0x4ff459,_0x169ac6=new AbortController(),_0x1d7d7d=setTimeout(()=>_0x169ac6[_0x21d2b3(0xa2)](),timeout);try{const _0x300121=await fetch(_0x32be1d,{'method':_0x21d2b3(0x98),'headers':{'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4bb8c3},'body':_0x505056,'signal':_0x169ac6[_0x21d2b3(0xd9)]});let _0x2806ec;try{_0x2806ec=await _0x300121[_0x21d2b3(0xc7)]();}catch{throw CliErrors[_0x21d2b3(0xbf)](_0x21d2b3(0xb2)+_0x300121['status']+')',_0x300121[_0x21d2b3(0x93)]>=0x190?'Check\x20your\x20credentials\x20and\x20try\x20again.':undefined);}if(!_0x300121['ok']||_0x2806ec[_0x21d2b3(0xb1)]===![])throw CliErrors[_0x21d2b3(0xbf)](_0x2806ec[_0x21d2b3(0x89)]||_0x2806ec['message']||'API\x20error:\x20'+_0x300121['status'],_0x2806ec[_0x21d2b3(0x9d)]?_0x21d2b3(0x79)+_0x2806ec[_0x21d2b3(0x9d)]:undefined);return _0x2806ec;}catch(_0x38664b){if(_0x38664b instanceof Error&&_0x38664b[_0x21d2b3(0x8f)]===_0x21d2b3(0x7c))throw CliErrors[_0x21d2b3(0xbf)]('Request\x20timeout:\x20'+_0x32be1d);throw _0x38664b;}finally{clearTimeout(_0x1d7d7d);}}async function toolboxRequest(_0x5abe65,_0x5bcb6a,_0x2cc0d9={}){const _0x152340=a74_0x5cd9,{method:method=_0x152340(0x7e),headers:headers={},timeout:timeout=0x7530}=_0x2cc0d9,_0x1eaa23=_activeAK;if(!_0x1eaa23)throw CliErrors['authRequired'](_0x152340(0x7a)+PRODUCT_CONFIG[_0x152340(0x8e)]+'.');const _0xfb03f8=getApiDomain()[_0x152340(0xcd)](/\/$/,''),_0x5f197b=new URL(_0x5abe65,_0xfb03f8+_0x152340(0x6c));if(_0x5bcb6a)for(const [_0x4f1b65,_0x1c29cb]of Object['entries'](_0x5bcb6a)){_0x1c29cb!==undefined&&_0x1c29cb!==null&&_0x5f197b[_0x152340(0xee)]['set'](_0x4f1b65,String(_0x1c29cb));}const _0x40116e=new AbortController(),_0x314a71=setTimeout(()=>_0x40116e[_0x152340(0xa2)](),timeout);try{const _0xf9e147=await fetch(_0x5f197b,{'method':method,'headers':{'Content-Type':_0x152340(0x75),'X-Invoke-Source':PRODUCT_CONFIG[_0x152340(0x6f)],'X-User-AK':_0x1eaa23,...headers},'signal':_0x40116e['signal']});let _0x34c2e0;try{_0x34c2e0=await _0xf9e147[_0x152340(0xc7)]();}catch{throw CliErrors[_0x152340(0xbf)](_0x152340(0xf0)+_0xf9e147['status']+')',_0xf9e147[_0x152340(0x93)]>=0x190?_0x152340(0xbd):undefined);}if(!_0xf9e147['ok']){const _0x1b51ee=_0x34c2e0&&typeof _0x34c2e0===_0x152340(0xe7)?_0x34c2e0:{};throw CliErrors[_0x152340(0xbf)](_0x1b51ee[_0x152340(0x89)]||_0x1b51ee['message']||_0x152340(0xca)+_0xf9e147[_0x152340(0x93)],_0x1b51ee['errorCode']?'Toolbox\x20error\x20code:\x20'+_0x1b51ee[_0x152340(0x9d)]:undefined);}if(_0x34c2e0&&typeof _0x34c2e0==='object'&&_0x152340(0xb1)in _0x34c2e0&&typeof _0x34c2e0[_0x152340(0xb1)]===_0x152340(0x9c)){const _0x11cc52=_0x34c2e0;if(!_0x11cc52[_0x152340(0xb1)])throw CliErrors['apiError'](_0x11cc52['errorMsg']||_0x11cc52[_0x152340(0x76)]||'Toolbox\x20API\x20error',_0x11cc52['errorCode']?_0x152340(0xb4)+_0x11cc52[_0x152340(0x9d)]:undefined);return _0x11cc52[_0x152340(0x6e)];}return _0x34c2e0;}catch(_0x19e262){if(_0x19e262 instanceof Error&&_0x19e262[_0x152340(0x8f)]===_0x152340(0x7c))throw CliErrors[_0x152340(0xbf)](_0x152340(0x95)+_0x5f197b['toString']());throw _0x19e262;}finally{clearTimeout(_0x314a71);}}async function skillHubJsonRequest(_0x438262,_0x5c443f={}){const _0x32473d=a74_0x5cd9,{method:method=_0x32473d(0x7e),query:_0xea06c0,body:_0x48c3ba,headers:headers={},timeout:timeout=0x7530,allowNotFound:allowNotFound=![]}=_0x5c443f,_0x4df2bd=_activeAK;if(!_0x4df2bd)throw CliErrors[_0x32473d(0xa4)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x32473d(0x8e)]+'.');const _0x5d0193=getSkillHubDomain()[_0x32473d(0xcd)](/\/$/,''),_0x5cc3f3=new URL(_0x438262,_0x5d0193+'/');if(_0xea06c0)for(const [_0x1fa319,_0x12eb8e]of Object[_0x32473d(0xd5)](_0xea06c0)){_0x12eb8e!==undefined&&_0x12eb8e!==null&&_0x5cc3f3[_0x32473d(0xee)][_0x32473d(0x6b)](_0x1fa319,String(_0x12eb8e));}const _0x5cbdbe=new AbortController(),_0x48be4c=setTimeout(()=>_0x5cbdbe[_0x32473d(0xa2)](),timeout);try{const _0x2d3c00=await fetch(_0x5cc3f3[_0x32473d(0xf6)](),{'method':method,'headers':{'Accept':_0x32473d(0x75),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x4df2bd,...headers},'body':_0x48c3ba,'signal':_0x5cbdbe[_0x32473d(0xd9)]});let _0xa750da;try{_0xa750da=await _0x2d3c00[_0x32473d(0xc7)]();}catch{if(allowNotFound&&_0x2d3c00[_0x32473d(0x93)]===0x194)return undefined;throw CliErrors[_0x32473d(0xbf)](_0x32473d(0xf1)+_0x2d3c00[_0x32473d(0x93)]+')',_0x2d3c00['status']>=0x190?_0x32473d(0xbd):undefined);}if(allowNotFound&&isSkillHubNotFoundResponse(_0x2d3c00['status'],_0xa750da))return undefined;const _0x53fea7=!_0x2d3c00['ok']||_0xa750da?.[_0x32473d(0xb1)]===![]||typeof _0xa750da?.[_0x32473d(0xd4)]===_0x32473d(0xed)&&_0xa750da['code']>=0x190;if(_0x53fea7)throw CliErrors[_0x32473d(0xbf)](_0xa750da?.['errorMsg']||_0xa750da?.['message']||_0xa750da?.[_0x32473d(0xf4)]||_0x32473d(0x72)+_0x2d3c00[_0x32473d(0x93)],_0xa750da?.[_0x32473d(0x9d)]?'SkillHub\x20error\x20code:\x20'+_0xa750da[_0x32473d(0x9d)]:undefined);return _0xa750da?.['data']??_0xa750da;}catch(_0x5a0732){if(_0x5a0732 instanceof Error&&_0x5a0732[_0x32473d(0x8f)]==='AbortError')throw CliErrors[_0x32473d(0xbf)](_0x32473d(0x95)+_0x5cc3f3[_0x32473d(0xf6)]());throw _0x5a0732;}finally{clearTimeout(_0x48be4c);}}function isSkillHubNotFoundResponse(_0x11b79c,_0x8cda00){const _0x2c785c=a74_0x5cd9;if(_0x11b79c===0x194||_0x8cda00?.['code']===0x194)return!![];if(_0x11b79c!==0x190&&_0x8cda00?.['code']!==0x190)return![];const _0xe00481=[_0x8cda00?.[_0x2c785c(0xf4)],_0x8cda00?.[_0x2c785c(0x76)],_0x8cda00?.[_0x2c785c(0x89)],_0x8cda00?.[_0x2c785c(0x94)]][_0x2c785c(0xc2)](_0x47091e=>typeof _0x47091e===_0x2c785c(0xab))[_0x2c785c(0xae)]('\x20');return/skill not found\b/i[_0x2c785c(0xd2)](_0xe00481);}function a74_0x5cd9(_0x1aaa18,_0x4e3d33){_0x1aaa18=_0x1aaa18-0x6b;const _0x4d5877=a74_0x4d58();let _0x5cd917=_0x4d5877[_0x1aaa18];return _0x5cd917;}async function skillHubBinaryRequest(_0x14eb9e,_0x2b6124={}){const _0x5b9892=a74_0x5cd9,{query:_0x465e72,headers:headers={},timeout:timeout=0x7530}=_0x2b6124,_0x3d18fb=_activeAK;if(!_0x3d18fb)throw CliErrors[_0x5b9892(0xa4)]('Configure\x20accessKey\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');const _0xa987bb=getSkillHubDomain()[_0x5b9892(0xcd)](/\/$/,''),_0x31a623=new URL(_0x14eb9e,_0xa987bb+'/');if(_0x465e72)for(const [_0x1fe172,_0x5e1e2c]of Object[_0x5b9892(0xd5)](_0x465e72)){_0x5e1e2c!==undefined&&_0x5e1e2c!==null&&_0x31a623[_0x5b9892(0xee)][_0x5b9892(0x6b)](_0x1fe172,String(_0x5e1e2c));}const _0x431592=new AbortController(),_0x5958b5=setTimeout(()=>_0x431592['abort'](),timeout);try{const _0x26cc0c=await fetch(_0x31a623[_0x5b9892(0xf6)](),{'method':_0x5b9892(0x7e),'headers':{'Accept':_0x5b9892(0x78),'X-Invoke-Source':PRODUCT_CONFIG['invokeSource'],'X-User-AK':_0x3d18fb,...headers},'signal':_0x431592['signal']});if(!_0x26cc0c['ok']){let _0x25499d;try{const _0x343538=await _0x26cc0c['json']();_0x25499d=_0x343538[_0x5b9892(0x89)]||_0x343538[_0x5b9892(0x76)]||_0x343538[_0x5b9892(0xf4)]||_0x343538[_0x5b9892(0x9d)];}catch{_0x25499d=await _0x26cc0c['text']()['catch'](()=>undefined);}throw CliErrors['apiError'](_0x25499d||_0x5b9892(0x72)+_0x26cc0c[_0x5b9892(0x93)],'Download\x20failed:\x20'+_0x31a623[_0x5b9892(0xf6)]());}return Buffer[_0x5b9892(0xce)](await _0x26cc0c[_0x5b9892(0x8b)]());}catch(_0x4d437a){if(_0x4d437a instanceof Error&&_0x4d437a[_0x5b9892(0x8f)]===_0x5b9892(0x7c))throw CliErrors['apiError']('Request\x20timeout:\x20'+_0x31a623[_0x5b9892(0xf6)]());throw _0x4d437a;}finally{clearTimeout(_0x5958b5);}}export async function getBffScriptInfo(_0x29a457){const _0x33b638=a74_0x5cd9,_0x203f75=await apiRequest(_0x33b638(0xa3)+_0x29a457);if(!_0x203f75[_0x33b638(0x6e)])throw CliErrors[_0x33b638(0xd3)]('BFF\x20script\x20not\x20found:\x20id='+_0x29a457);return _0x203f75[_0x33b638(0x6e)];}export async function getSqlQueryInfo(_0x8d3e26,_0xf18c6){const _0x4e6108=a74_0x5cd9,_0x3c2b0e=await apiRequest(_0x4e6108(0x7d),{'method':_0x4e6108(0x98),'body':{'appCode':_0x8d3e26,'currentPage':0x1,'pageSize':0x1,'sqlCode':_0xf18c6}}),_0x5b9710=_0x3c2b0e[_0x4e6108(0x6e)],_0x17cc0a=_0x5b9710&&typeof _0x5b9710===_0x4e6108(0xe7)&&_0x4e6108(0xb5)in _0x5b9710?_0x5b9710['tableData']?.[0x0]:_0x5b9710&&typeof _0x5b9710==='object'&&'sqlCode'in _0x5b9710?_0x5b9710:undefined;if(!_0x17cc0a)throw CliErrors['validation'](_0x4e6108(0xbb)+_0xf18c6);return _0x17cc0a;}function isRemoteAppItem(_0x546382){const _0x5aac32=a74_0x5cd9;return!!_0x546382&&typeof _0x546382===_0x5aac32(0xe7)&&typeof _0x546382[_0x5aac32(0xbe)]===_0x5aac32(0xab)&&typeof _0x546382[_0x5aac32(0xdd)]==='string';}function extractRemoteAppItems(_0x85b1ac){const _0x3eecfb=a74_0x5cd9;if(Array[_0x3eecfb(0xd1)](_0x85b1ac))return _0x85b1ac['filter'](isRemoteAppItem);if(!_0x85b1ac||typeof _0x85b1ac!==_0x3eecfb(0xe7))throw CliErrors[_0x3eecfb(0xbf)](_0x3eecfb(0x81));const _0x11ed18=_0x85b1ac;if(Array['isArray'](_0x11ed18['tableData']))return _0x11ed18['tableData'][_0x3eecfb(0xc2)](isRemoteAppItem);if(_0x11ed18[_0x3eecfb(0x6e)]&&typeof _0x11ed18[_0x3eecfb(0x6e)]==='object'){const _0x25364d=_0x11ed18[_0x3eecfb(0x6e)];if(Array[_0x3eecfb(0xd1)](_0x25364d[_0x3eecfb(0xb5)]))return _0x25364d['tableData'][_0x3eecfb(0xc2)](isRemoteAppItem);}throw CliErrors[_0x3eecfb(0xbf)](_0x3eecfb(0xb3));}export async function getMyApps(){const _0x3c489e=a74_0x5cd9,_0x1d0d0e=await apiRequest(_0x3c489e(0xb8));return extractRemoteAppItems(_0x1d0d0e[_0x3c489e(0x6e)]);}export async function getLoginUserInfo(){const _0x2b4dad=a74_0x5cd9,_0x1e3f02=await apiRequest(_0x2b4dad(0xcc));if(!_0x1e3f02[_0x2b4dad(0x6e)]||typeof _0x1e3f02[_0x2b4dad(0x6e)]!=='object'||Array[_0x2b4dad(0xd1)](_0x1e3f02[_0x2b4dad(0x6e)]))throw CliErrors[_0x2b4dad(0xbf)](_0x2b4dad(0x74));return _0x1e3f02['data'];}export async function listDatasets(_0x38fdb4,_0x24389f){const _0x5f057f=a74_0x5cd9,_0x25fa49=await apiRequest(_0x5f057f(0x90),{'method':_0x5f057f(0x98),'body':{'appCode':_0x38fdb4,..._0x24389f?.[_0x5f057f(0xd4)]&&{'code':_0x24389f[_0x5f057f(0xd4)]},..._0x24389f?.['name']&&{'name':_0x24389f[_0x5f057f(0x8f)]}}});return extractList(_0x25fa49['data']);}export async function getDatasetDetail(_0x1f71fe){const _0x4e37bc=a74_0x5cd9,_0x202095=await apiRequest(_0x4e37bc(0x83)+encodeURIComponent(_0x1f71fe));return _0x202095[_0x4e37bc(0x6e)];}export async function getDatasetSdkUsageDoc(_0x5b81c5,_0x409720){const _0x2dc2f1=a74_0x5cd9,_0x43bedc=await toolboxRequest(_0x2dc2f1(0xa0),{'datasetCode':_0x5b81c5,'appCode':_0x409720});return typeof _0x43bedc?.[_0x2dc2f1(0xc4)]===_0x2dc2f1(0xab)?_0x43bedc['markdown']:'';}export async function uploadRuntimeFile(_0x260d2d,_0x2d7883){const _0xf322e3=a74_0x5cd9,_0x30acf8=await readFile(_0x2d7883),_0x25b91e=new FormData();_0x25b91e[_0xf322e3(0xa9)]('appCode',_0x260d2d),_0x25b91e[_0xf322e3(0xa9)](_0xf322e3(0xb7),new Blob([new Uint8Array(_0x30acf8)]),basename(_0x2d7883));const _0x3e7079=await apiFormRequest(_0xf322e3(0xcf),_0x25b91e);return _0x3e7079[_0xf322e3(0x6e)];}export async function queryRuntimeFileUrl(_0x2333d2,_0x725a36={}){const _0xa453c5=a74_0x5cd9,_0x372e55=await apiRequest(_0xa453c5(0xe6),{'method':_0xa453c5(0x98),'body':{'filePath':_0x2333d2,'downloadFlag':_0x725a36[_0xa453c5(0x8d)]??![]}});return _0x372e55[_0xa453c5(0x6e)];}export async function recognizeRuntimeOcr(_0x5d9b03,_0x5d58cc){const _0x1e6462=a74_0x5cd9,_0x39e564=await apiRequest(_0x1e6462(0xe3),{'method':_0x1e6462(0x98),'body':{'appCode':_0x5d9b03,'url':_0x5d58cc[_0x1e6462(0x85)],'type':_0x5d58cc[_0x1e6462(0xd0)]}});return _0x39e564[_0x1e6462(0x6e)];}export async function getRuntimeAppConfigByKey(_0x530305,_0x12016b){const _0x3f3e74=a74_0x5cd9,_0x4bbf0a=new URLSearchParams({'appCode':_0x530305,'key':_0x12016b}),_0x39a2b1=await apiRequest('/client/app-config/getByKey?'+_0x4bbf0a[_0x3f3e74(0xf6)]());if(!_0x39a2b1['data'])throw CliErrors['validation'](_0x3f3e74(0xd6)+_0x12016b);return _0x39a2b1[_0x3f3e74(0x6e)];}export async function listRuntimeArtifacts(_0xbf29a3,_0xe8bf69){const _0x14c0fd=a74_0x5cd9,_0x39610e=new URLSearchParams({'appCode':_0xbf29a3});if(_0xe8bf69?.[_0x14c0fd(0xe2)])_0x39610e[_0x14c0fd(0x6b)](_0x14c0fd(0xe2),_0xe8bf69['artifactType']);if(_0xe8bf69?.['source'])_0x39610e[_0x14c0fd(0x6b)](_0x14c0fd(0xd8),_0xe8bf69['source']);if(_0xe8bf69?.[_0x14c0fd(0xba)]!==undefined)_0x39610e[_0x14c0fd(0x6b)](_0x14c0fd(0xba),String(_0xe8bf69[_0x14c0fd(0xba)]));const _0x1fdc42=await apiRequest(_0x14c0fd(0xcb)+_0x39610e[_0x14c0fd(0xf6)]());return Array[_0x14c0fd(0xd1)](_0x1fdc42['data'])?_0x1fdc42[_0x14c0fd(0x6e)]:[];}export async function getRuntimeArtifact(_0x2f14c0,_0x23da82){const _0x79d485=a74_0x5cd9,_0x4337f5=await apiRequest(_0x79d485(0xf3)+_0x2f14c0+'?appCode='+encodeURIComponent(_0x23da82));if(!_0x4337f5['data'])throw CliErrors[_0x79d485(0xd3)](_0x79d485(0xe0)+_0x2f14c0);return _0x4337f5[_0x79d485(0x6e)];}export async function createRuntimeArtifact(_0x3c57a1,_0x3862df){const _0x5c758e=a74_0x5cd9,_0x19a33e=await apiRequest(_0x5c758e(0x8c),{'method':_0x5c758e(0x98),'body':{'appCode':_0x3c57a1,..._0x3862df}});return _0x19a33e['data'];}export async function updateRuntimeArtifact(_0x11d5d3,_0x359c07,_0x50ef70){const _0x40ad97=a74_0x5cd9,_0x4fb224=await apiRequest(_0x40ad97(0xf3)+_0x11d5d3+'/update',{'method':_0x40ad97(0x98),'body':{'appCode':_0x359c07,..._0x50ef70}});return _0x4fb224[_0x40ad97(0x6e)];}export async function listPersonalBffs(_0x25dc73){const _0x3ab3c5=a74_0x5cd9,_0x3c5bde=await apiRequest('/client/runtime-bff/personal/list?appCode='+encodeURIComponent(_0x25dc73));return Array[_0x3ab3c5(0xd1)](_0x3c5bde[_0x3ab3c5(0x6e)])?_0x3c5bde['data']:[];}export async function getPersonalBff(_0x206838,_0x532b38){const _0x3ce1f2=a74_0x5cd9,_0x3c9d27=await apiRequest(_0x3ce1f2(0x77)+_0x206838+'?appCode='+encodeURIComponent(_0x532b38));if(!_0x3c9d27[_0x3ce1f2(0x6e)])throw CliErrors['validation'](_0x3ce1f2(0xe1)+_0x206838);return _0x3c9d27[_0x3ce1f2(0x6e)];}export async function createPersonalBff(_0x2849c1,_0x113ae5){const _0x2166b7=a74_0x5cd9,_0x33616d=await apiRequest(_0x2166b7(0xb6),{'method':_0x2166b7(0x98),'body':{'appCode':_0x2849c1,..._0x113ae5}});return _0x33616d['data'];}export async function updatePersonalBff(_0x42c039,_0x1e90ab,_0x165563){const _0xbcf39=a74_0x5cd9,_0xba6009=await apiRequest('/client/runtime-bff/personal/'+_0x42c039+'/update',{'method':'POST','body':{'appCode':_0x1e90ab,..._0x165563}});return _0xba6009[_0xbcf39(0x6e)];}export async function executePersonalBff(_0x4a7fb1,_0x4973ba,_0x3dd8a9){const _0xbf830c=a74_0x5cd9,_0x2189e2=await apiRequest(_0xbf830c(0x77)+_0x4a7fb1+_0xbf830c(0x87)+encodeURIComponent(_0x4973ba),{'method':_0xbf830c(0x98),'body':_0x3dd8a9});return _0x2189e2[_0xbf830c(0x6e)];}export async function listPersonalKnowledgeBaseItems(_0x1bc071){const _0x24ad25=a74_0x5cd9,_0x220437=await apiRequest(_0x24ad25(0xa8)+encodeURIComponent(_0x1bc071));return Array[_0x24ad25(0xd1)](_0x220437['data'])?_0x220437[_0x24ad25(0x6e)]:[];}export async function getPersonalKnowledgeBaseItem(_0x1b3d1a,_0x5a5603){const _0x1dbbbd=a74_0x5cd9,_0x2ab737=await apiRequest('/client/knowledge-base/personal/'+_0x1b3d1a+'?appCode='+encodeURIComponent(_0x5a5603));if(!_0x2ab737[_0x1dbbbd(0x6e)])throw CliErrors[_0x1dbbbd(0xd3)](_0x1dbbbd(0xc6)+_0x1b3d1a);return _0x2ab737[_0x1dbbbd(0x6e)];}export async function createPersonalKnowledgeBaseItem(_0x3a3162,_0x4c7b05){const _0x269bc4=a74_0x5cd9,_0x52bbb5=await apiRequest(_0x269bc4(0xef),{'method':'POST','body':{'appCode':_0x3a3162,..._0x4c7b05}});return _0x52bbb5['data'];}export async function updatePersonalKnowledgeBaseItem(_0x53c22e,_0x1d8778,_0x113979){const _0x17c52f=a74_0x5cd9,_0x3a67be=await apiRequest('/client/knowledge-base/personal/'+_0x53c22e+'/update',{'method':'POST','body':{'appCode':_0x1d8778,..._0x113979}});return _0x3a67be[_0x17c52f(0x6e)];}export async function searchKnowledgeBase(_0x26ab0d,_0x5e2c99){const _0x24ad78=a74_0x5cd9,_0x472701=await apiRequest(_0x24ad78(0xbc),{'method':'POST','body':{'appCode':_0x26ab0d,'query':_0x5e2c99['query'],..._0x5e2c99['topK']!==undefined?{'topK':_0x5e2c99['topK']}:{}}});return Array[_0x24ad78(0xd1)](_0x472701[_0x24ad78(0x6e)])?_0x472701['data']:[];}export async function getRuntimeSkillByCode(_0x2b3130,_0x416820){const _0x13a745=a74_0x5cd9,_0x2a3539=await skillHubJsonRequest(_0x13a745(0xf5)+encodeURIComponent(_0x2b3130)+'/'+encodeURIComponent(_0x416820),{'allowNotFound':!![]});return _0x2a3539?skillHubRuntimeDetailToRuntimeSkill(_0x2a3539):undefined;}export async function listRuntimeSkills(_0x2f9009){const _0x3ba0cd=a74_0x5cd9,_0x447ce1=await skillHubJsonRequest(_0x3ba0cd(0xa7)+encodeURIComponent(_0x2f9009[_0x3ba0cd(0xbe)])+_0x3ba0cd(0x7b),{'query':{'page':0x0,'size':0xc8}});return normalizeSkillHubRuntimeListResponse(_0x2f9009['appCode'],_0x447ce1,_0x2f9009[_0x3ba0cd(0x99)]??_0x3ba0cd(0x7f),_0x2f9009[_0x3ba0cd(0xd4)]);}export async function listPersonalRuntimeSkills(_0x43159f){const _0x5a5c2d=a74_0x5cd9;return(await listRuntimeSkills({'appCode':_0x43159f,'scope':'personal'}))[_0x5a5c2d(0xe9)];}export async function listCompanyRuntimeSkills(_0xbe97e0){const _0x380249=a74_0x5cd9;return(await listRuntimeSkills({'appCode':_0xbe97e0,'scope':_0x380249(0xa6)}))[_0x380249(0xa6)];}export async function listVisibleRuntimeSkills(_0x2a5d11){const _0x1b2e0e=a74_0x5cd9;return(await listRuntimeSkills({'appCode':_0x2a5d11,'scope':'all'}))[_0x1b2e0e(0xe5)];}export async function createPersonalRuntimeSkill(_0x1c2004,_0x2d3c30){const _0x365fff=a74_0x5cd9;return publishRuntimeSkill(_0x1c2004,_0x2d3c30,{'visibility':_0x365fff(0xdb)});}export async function updatePersonalRuntimeSkill(_0x57f497,_0x1c067f,_0x349538){const _0x367a0d=a74_0x5cd9;return publishRuntimeSkill(_0x1c067f,{..._0x349538,'skillCode':_0x349538[_0x367a0d(0xad)]??_0x57f497},{'visibility':_0x367a0d(0xdb)});}export async function publishCompanyRuntimeSkill(_0x1e447f,_0xf04b1c,_0x5a05f5={}){const _0x589502=a74_0x5cd9;return publishRuntimeSkill(_0x1e447f,_0xf04b1c,{'visibility':_0x589502(0x84),'confirmWarnings':_0x5a05f5[_0x589502(0xc1)]});}export async function validateRuntimeSkillPublish(_0x2dd8ae,_0x53aab3,_0x462fc8){const _0x4ddfa3=a74_0x5cd9,_0x3533d8=buildRuntimeSkillPublishForm(_0x53aab3,_0x462fc8['visibility']),_0x3b6536=await skillHubJsonRequest('/api/cli/v1/skills/'+encodeURIComponent(_0x2dd8ae)+'/publish/validate',{'method':_0x4ddfa3(0x98),'body':_0x3533d8});return{'valid':_0x3b6536[_0x4ddfa3(0x8a)]===!![],'errors':Array[_0x4ddfa3(0xd1)](_0x3b6536[_0x4ddfa3(0xaf)])?_0x3b6536['errors']:[],'warnings':Array['isArray'](_0x3b6536[_0x4ddfa3(0xa1)])?_0x3b6536[_0x4ddfa3(0xa1)]:[],'resolvedSlug':_0x3b6536['resolvedSlug'],'resolvedVersion':_0x3b6536['resolvedVersion']};}export async function downloadRuntimeSkillPackage(_0x5035d0,_0x44c07e,_0x57a0c8,_0x3de377){const _0x5db82d=a74_0x5cd9;void _0x5035d0;const _0x35b523=_0x3de377?_0x5db82d(0x97)+encodeURIComponent(_0x57a0c8)+'/'+encodeURIComponent(_0x44c07e)+_0x5db82d(0xc5)+encodeURIComponent(_0x3de377)+_0x5db82d(0x71):_0x5db82d(0x97)+encodeURIComponent(_0x57a0c8)+'/'+encodeURIComponent(_0x44c07e)+_0x5db82d(0x71);return skillHubBinaryRequest(_0x35b523);}async function publishRuntimeSkill(_0x224fb6,_0x29be6f,_0x44ff21){const _0x5dcccd=a74_0x5cd9,_0x39b7a4=buildRuntimeSkillPublishForm(_0x29be6f,_0x44ff21[_0x5dcccd(0xec)]),_0x70a517=await skillHubJsonRequest(_0x5dcccd(0x97)+encodeURIComponent(_0x224fb6)+_0x5dcccd(0x70),{'method':_0x5dcccd(0x98),'query':{'confirmWarnings':_0x44ff21[_0x5dcccd(0xc1)]===!![]?!![]:undefined},'body':_0x39b7a4});return{'appCode':_0x70a517['namespace']??_0x224fb6,'skillCode':_0x70a517[_0x5dcccd(0xc3)]??_0x29be6f[_0x5dcccd(0xad)]??'','skillName':_0x29be6f['skillName']??_0x70a517[_0x5dcccd(0xc3)]??_0x29be6f[_0x5dcccd(0xad)],'description':_0x29be6f['description'],'scope':skillHubVisibilityToScope(_0x70a517[_0x5dcccd(0xec)]??_0x44ff21[_0x5dcccd(0xec)])??'personal','version':_0x70a517[_0x5dcccd(0xb0)]??_0x29be6f[_0x5dcccd(0xb0)],'tags':_0x29be6f[_0x5dcccd(0xc9)],'content':_0x29be6f[_0x5dcccd(0xe4)]};}function buildRuntimeSkillPublishForm(_0x385e08,_0x13ba17){const _0x1a5f3e=a74_0x5cd9,_0x2b116f=new FormData();return _0x2b116f[_0x1a5f3e(0x6b)](_0x1a5f3e(0xb7),runtimeSkillPackageFile(_0x385e08)),_0x385e08[_0x1a5f3e(0xda)]?.[_0x1a5f3e(0x86)]()&&_0x2b116f['set'](_0x1a5f3e(0xde),_0x385e08[_0x1a5f3e(0xda)][_0x1a5f3e(0x86)]()),_0x2b116f['set'](_0x1a5f3e(0xec),_0x13ba17),_0x2b116f;}function runtimeSkillPackageFile(_0x52b792){const _0x28ef03=a74_0x5cd9;if(!_0x52b792[_0x28ef03(0x9f)])throw CliErrors[_0x28ef03(0xd3)]('Missing\x20Skill\x20package\x20payload.');const _0x6e7a36=Buffer[_0x28ef03(0xce)](_0x52b792['packageBase64'],_0x28ef03(0x6d)),_0x5229e5=new Blob([_0x6e7a36],{'type':'application/zip'}),_0x1535eb=(_0x52b792['skillCode']||_0x28ef03(0xdc))+_0x28ef03(0xac);if(typeof File!==_0x28ef03(0x9e))return new File([_0x5229e5],_0x1535eb,{'type':_0x28ef03(0xa5)});return _0x5229e5;}function normalizeSkillHubRuntimeListResponse(_0x4cec6a,_0x2c6aba,_0x13f4d0,_0x3967cd){const _0x35507b=a74_0x5cd9,_0x4ac225=Array[_0x35507b(0xd1)](_0x2c6aba)?_0x2c6aba:Array['isArray'](_0x2c6aba?.[_0x35507b(0x82)])?_0x2c6aba[_0x35507b(0x82)]:[],_0x1017ab=_0x3967cd?.[_0x35507b(0x86)](),_0x24976e=_0x4ac225[_0x35507b(0xc2)](_0x2ff1e2=>!_0x1017ab||_0x2ff1e2[_0x35507b(0xc3)]===_0x1017ab)[_0x35507b(0x9a)](skillHubRuntimeItemToRuntimeSkill)[_0x35507b(0xc2)](_0x4e9171=>Boolean(_0x4e9171)),_0x57e974=_0x24976e['filter'](_0x4415c3=>_0x4415c3[_0x35507b(0x99)]===_0x35507b(0xe9)),_0x53eabf=_0x24976e[_0x35507b(0xc2)](_0x59afc9=>_0x59afc9['scope']===_0x35507b(0xa6));return{'appCode':_0x4cec6a,'personal':_0x13f4d0===_0x35507b(0xa6)?[]:_0x57e974,'company':_0x13f4d0===_0x35507b(0xe9)?[]:_0x53eabf,'effective':buildEffectiveRuntimeSkills(_0x57e974,_0x53eabf,_0x13f4d0)};}function skillHubRuntimeItemToRuntimeSkill(_0x5c92ca){const _0x5ee4c9=a74_0x5cd9,_0x1e3826=_0x5c92ca['slug']?.[_0x5ee4c9(0x86)](),_0x4ade3b=skillHubVisibilityToScope(_0x5c92ca[_0x5ee4c9(0xec)]);if(!_0x1e3826||!_0x4ade3b)return undefined;return{'id':_0x5c92ca['id'],'appCode':_0x5c92ca[_0x5ee4c9(0xf2)],'skillCode':_0x1e3826,'skillName':_0x5c92ca[_0x5ee4c9(0xde)]??_0x1e3826,'description':_0x5c92ca[_0x5ee4c9(0xaa)],'scope':_0x4ade3b,'version':skillHubRuntimeItemVersion(_0x5c92ca),'status':_0x5c92ca['status']};}function skillHubRuntimeDetailToRuntimeSkill(_0x16148c){const _0x17bb02=a74_0x5cd9,_0x2a619c=_0x16148c[_0x17bb02(0xc3)]?.[_0x17bb02(0x86)]();if(!_0x2a619c)return undefined;return{'id':_0x16148c['id'],'appCode':_0x16148c[_0x17bb02(0xf2)],'skillCode':_0x2a619c,'skillName':_0x16148c[_0x17bb02(0xde)]??_0x2a619c,'description':_0x16148c[_0x17bb02(0xaa)],'scope':skillHubVisibilityToScope(_0x16148c['visibility'])??_0x16148c[_0x17bb02(0xec)]?.[_0x17bb02(0x88)](),'version':skillHubRuntimeItemVersion(_0x16148c),'status':_0x16148c[_0x17bb02(0x93)]};}function skillHubVisibilityToScope(_0xf09915){const _0x4815a3=a74_0x5cd9;if(_0xf09915==='PRIVATE')return _0x4815a3(0xe9);if(_0xf09915===_0x4815a3(0x84))return _0x4815a3(0xa6);return undefined;}function skillHubRuntimeItemVersion(_0x22d579){const _0x43d514=a74_0x5cd9;return _0x22d579[_0x43d514(0x91)]?.[_0x43d514(0xb0)]??_0x22d579[_0x43d514(0xc8)]?.[_0x43d514(0xb0)]??_0x22d579[_0x43d514(0xf9)]?.[_0x43d514(0xb0)];}function buildEffectiveRuntimeSkills(_0x193d68,_0x4aeb76,_0x556f11){const _0x365a32=a74_0x5cd9;if(_0x556f11===_0x365a32(0xe9))return _0x193d68;if(_0x556f11==='company')return _0x4aeb76;const _0x4a84b4=new Map();for(const _0x447f8a of _0x4aeb76){_0x4a84b4[_0x365a32(0x6b)](_0x447f8a['skillCode'],_0x447f8a);}for(const _0x2df3bc of _0x193d68){_0x4a84b4[_0x365a32(0x6b)](_0x2df3bc[_0x365a32(0xad)],_0x2df3bc);}return Array['from'](_0x4a84b4[_0x365a32(0x80)]());}function normalizeRuntimeSkillListResponse(_0x150bd3,_0xa7f1ac){const _0x166e6a=a74_0x5cd9;if(Array[_0x166e6a(0xd1)](_0xa7f1ac)){const _0x455827=_0xa7f1ac['filter'](_0x51ebb1=>_0x51ebb1[_0x166e6a(0x99)]==='personal'),_0x5ee87b=_0xa7f1ac['filter'](_0x2919fa=>_0x2919fa['scope']===_0x166e6a(0xa6));return{'appCode':_0x150bd3,'personal':_0x455827,'company':_0x5ee87b,'effective':[..._0x5ee87b,..._0x455827]};}return{'appCode':_0xa7f1ac?.['appCode']??_0x150bd3,'personal':Array[_0x166e6a(0xd1)](_0xa7f1ac?.[_0x166e6a(0xe9)])?_0xa7f1ac['personal']:[],'company':Array[_0x166e6a(0xd1)](_0xa7f1ac?.[_0x166e6a(0xa6)])?_0xa7f1ac['company']:[],'effective':Array[_0x166e6a(0xd1)](_0xa7f1ac?.[_0x166e6a(0xe5)])?_0xa7f1ac[_0x166e6a(0xe5)]:[]};}
@@ -1 +1 @@
1
- (function(_0x4efa22,_0x455482){const _0x4e4bbf=a75_0x1068,_0x244865=_0x4efa22();while(!![]){try{const _0x1170de=parseInt(_0x4e4bbf(0x7e))/0x1+-parseInt(_0x4e4bbf(0x75))/0x2*(-parseInt(_0x4e4bbf(0x76))/0x3)+-parseInt(_0x4e4bbf(0x71))/0x4+parseInt(_0x4e4bbf(0x7a))/0x5*(-parseInt(_0x4e4bbf(0x6f))/0x6)+-parseInt(_0x4e4bbf(0x79))/0x7+-parseInt(_0x4e4bbf(0x77))/0x8+-parseInt(_0x4e4bbf(0x70))/0x9*(-parseInt(_0x4e4bbf(0x7d))/0xa);if(_0x1170de===_0x455482)break;else _0x244865['push'](_0x244865['shift']());}catch(_0x2ea85b){_0x244865['push'](_0x244865['shift']());}}}(a75_0x3684,0xc3402));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a75_0x3684(){const _0x31f87e=['584595QdCFxE','2433848ZhbvPT','set','db-','dbName','270614uFMJEp','3owFJGh','1470704amrZnn','get','1771721wUeJXo','110735htdkXX','dbtableConfig','entries','190NsOafS','697167UkzbIw','dbId','60UlTaZK'];a75_0x3684=function(){return _0x31f87e;};return a75_0x3684();}export async function listDatabases(_0x109b53){const _0x3df9b8=a75_0x1068;if(cache['has'](_0x109b53))return cache[_0x3df9b8(0x78)](_0x109b53);const _0x407a28=await listDatasets(_0x109b53),_0x33d249=new Map();for(const _0x464cfd of _0x407a28){const _0x151b5f=_0x464cfd[_0x3df9b8(0x7b)];_0x151b5f?.[_0x3df9b8(0x6e)]!=null&&_0x33d249[_0x3df9b8(0x72)](_0x151b5f[_0x3df9b8(0x6e)],_0x151b5f[_0x3df9b8(0x74)]??_0x3df9b8(0x73)+_0x151b5f[_0x3df9b8(0x6e)]);}const _0x5e318f=[..._0x33d249[_0x3df9b8(0x7c)]()]['map'](([_0x1f601d,_0x40aea9])=>({'dbId':_0x1f601d,'dbName':_0x40aea9}));return cache[_0x3df9b8(0x72)](_0x109b53,_0x5e318f),_0x5e318f;}function a75_0x1068(_0x2f6291,_0x18d190){_0x2f6291=_0x2f6291-0x6e;const _0x36846e=a75_0x3684();let _0x1068cd=_0x36846e[_0x2f6291];return _0x1068cd;}export async function getDbName(_0x3bfb1a,_0x51affe){const _0x1d5891=a75_0x1068;try{const _0x4975c0=await listDatabases(_0x3bfb1a);return _0x4975c0['find'](_0x3e7b49=>_0x3e7b49[_0x1d5891(0x6e)]===_0x51affe)?.[_0x1d5891(0x74)];}catch{return undefined;}}
1
+ (function(_0x13dc6b,_0x3a7946){const _0x52f093=a75_0x4b80,_0x23c60c=_0x13dc6b();while(!![]){try{const _0x3ff1d4=-parseInt(_0x52f093(0x1b5))/0x1*(parseInt(_0x52f093(0x1b3))/0x2)+parseInt(_0x52f093(0x1b2))/0x3*(parseInt(_0x52f093(0x1b6))/0x4)+-parseInt(_0x52f093(0x1c2))/0x5+parseInt(_0x52f093(0x1bd))/0x6*(-parseInt(_0x52f093(0x1bb))/0x7)+parseInt(_0x52f093(0x1be))/0x8+parseInt(_0x52f093(0x1b4))/0x9*(parseInt(_0x52f093(0x1b7))/0xa)+-parseInt(_0x52f093(0x1c1))/0xb;if(_0x3ff1d4===_0x3a7946)break;else _0x23c60c['push'](_0x23c60c['shift']());}catch(_0xfe55af){_0x23c60c['push'](_0x23c60c['shift']());}}}(a75_0x4b8b,0xa49f3));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a75_0x4b8b(){const _0x15104d=['dbName','376569oBwZOP','2xFVECR','153COftVR','149895vnuqRi','16MTMjXG','485620cicISC','dbtableConfig','find','map','581BpPlto','dbId','29208SNydTG','6015264OfpCQG','has','entries','4303090jGLchD','2300670Phhgqh'];a75_0x4b8b=function(){return _0x15104d;};return a75_0x4b8b();}export async function listDatabases(_0xae07c3){const _0x3601ba=a75_0x4b80;if(cache[_0x3601ba(0x1bf)](_0xae07c3))return cache['get'](_0xae07c3);const _0x21e1ca=await listDatasets(_0xae07c3),_0x1d0ee9=new Map();for(const _0x59b0ac of _0x21e1ca){const _0x4af56d=_0x59b0ac[_0x3601ba(0x1b8)];_0x4af56d?.[_0x3601ba(0x1bc)]!=null&&_0x1d0ee9['set'](_0x4af56d[_0x3601ba(0x1bc)],_0x4af56d[_0x3601ba(0x1b1)]??'db-'+_0x4af56d['dbId']);}const _0x5df3d5=[..._0x1d0ee9[_0x3601ba(0x1c0)]()][_0x3601ba(0x1ba)](([_0x171925,_0x1e3c92])=>({'dbId':_0x171925,'dbName':_0x1e3c92}));return cache['set'](_0xae07c3,_0x5df3d5),_0x5df3d5;}function a75_0x4b80(_0x24da80,_0xa3f3ec){_0x24da80=_0x24da80-0x1b1;const _0x4b8b1b=a75_0x4b8b();let _0x4b800b=_0x4b8b1b[_0x24da80];return _0x4b800b;}export async function getDbName(_0x3ee0b0,_0x2cb1b6){const _0x168769=a75_0x4b80;try{const _0x190999=await listDatabases(_0x3ee0b0);return _0x190999[_0x168769(0x1b9)](_0x2ace4c=>_0x2ace4c['dbId']===_0x2cb1b6)?.[_0x168769(0x1b1)];}catch{return undefined;}}
@@ -1 +1 @@
1
- (function(_0x198411,_0x531e2f){const _0x313ac6=a76_0x4f70,_0x3a3830=_0x198411();while(!![]){try{const _0x1638b3=-parseInt(_0x313ac6(0x1ae))/0x1+-parseInt(_0x313ac6(0x1ad))/0x2*(-parseInt(_0x313ac6(0x1cc))/0x3)+parseInt(_0x313ac6(0x1b6))/0x4+-parseInt(_0x313ac6(0x1a8))/0x5*(-parseInt(_0x313ac6(0x1c0))/0x6)+-parseInt(_0x313ac6(0x1a7))/0x7+parseInt(_0x313ac6(0x1cb))/0x8*(parseInt(_0x313ac6(0x1b0))/0x9)+parseInt(_0x313ac6(0x1b5))/0xa*(-parseInt(_0x313ac6(0x1b2))/0xb);if(_0x1638b3===_0x531e2f)break;else _0x3a3830['push'](_0x3a3830['shift']());}catch(_0x32f108){_0x3a3830['push'](_0x3a3830['shift']());}}}(a76_0x1164,0x65559));import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';function a76_0x1164(){const _0x99da8f=['accessKey','delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','data\x20aggregate\x20--params.aggregate[','14232fSqhsj','1554591wReYTv','invokeSource','env','4864538ecfiPW','335IsVOfs','object','validation','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','map','2kqIdxg','42484aKghCw','dataset_','1413OgytMf','field','11KVYxJT','delete','aggregate','747190TIlZkE','1558812ATsWSu','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','batchCreate','update\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123,\x22name\x22:\x22new\x22}\x27\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','isArray','sql','\x22.\x20','function','getOne\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27','update','3582DTrrgs','getOne',']\x20must\x20be\x20an\x20object.','models','string','column','bff','authMode'];a76_0x1164=function(){return _0x99da8f;};return a76_0x1164();}import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';let _client;function a76_0x4f70(_0x4e580b,_0x4a8426){_0x4e580b=_0x4e580b-0x1a6;const _0x1164b1=a76_0x1164();let _0x4f70c1=_0x1164b1[_0x4e580b];return _0x4f70c1;}export function initSdkClient(_0x225bfe){const _0x3d9a9b=a76_0x4f70;_client=createClient({'appCode':_0x225bfe['appCode'],'env':_0x225bfe[_0x3d9a9b(0x1a6)],'authMode':_0x225bfe[_0x3d9a9b(0x1c7)],..._0x225bfe[_0x3d9a9b(0x1c8)]?{'accessKey':_0x225bfe[_0x3d9a9b(0x1c8)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x3d9a9b(0x1cd)]}}});}function ensureClient(){if(!_client)throw new Error('SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.');return _client;}function normalizeAggregateParams(_0x30abcb){const _0x230701=a76_0x4f70,_0x3a21a9=_0x30abcb[_0x230701(0x1b4)];if(_0x3a21a9===undefined)return _0x30abcb;if(!Array[_0x230701(0x1ba)](_0x3a21a9))throw CliErrors[_0x230701(0x1aa)](_0x230701(0x1ab));return{..._0x30abcb,'aggregate':_0x3a21a9[_0x230701(0x1ac)]((_0x20d275,_0x4c939f)=>{const _0x29bd7e=_0x230701;if(!_0x20d275||typeof _0x20d275!==_0x29bd7e(0x1a9)||Array[_0x29bd7e(0x1ba)](_0x20d275))throw CliErrors[_0x29bd7e(0x1aa)](_0x29bd7e(0x1ca)+_0x4c939f+_0x29bd7e(0x1c2));const _0x10af8c=_0x20d275[_0x29bd7e(0x1c5)]??_0x20d275[_0x29bd7e(0x1b1)];if(typeof _0x10af8c!==_0x29bd7e(0x1c4)||_0x10af8c['trim']()==='')throw CliErrors[_0x29bd7e(0x1aa)](_0x29bd7e(0x1ca)+_0x4c939f+']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.');const _0x5dfc17={..._0x20d275,'column':_0x10af8c};return delete _0x5dfc17[_0x29bd7e(0x1b1)],_0x5dfc17;})};}export async function executeData(_0x1e440d,_0x132ebd,_0x1355bf){const _0x5a819e=a76_0x4f70,_0x104c05=ensureClient(),_0x4c222e=_0x5a819e(0x1af)+_0x1e440d,_0x5deca4=_0x104c05[_0x5a819e(0x1c3)][_0x4c222e];if(!_0x5deca4||typeof _0x5deca4[_0x132ebd]!==_0x5a819e(0x1bd))throw new Error(_0x5a819e(0x1b7)+_0x132ebd+_0x5a819e(0x1bc)+'Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.');if(_0x132ebd===_0x5a819e(0x1b8))return _0x5deca4[_0x5a819e(0x1b8)](parseBatchCreateItemsFromParams(_0x1355bf));const _0x3102f5=_0x1355bf!==undefined&&_0x1355bf!==null&&!Array[_0x5a819e(0x1ba)](_0x1355bf)?_0x1355bf:{};switch(_0x132ebd){case _0x5a819e(0x1c1):{const _0x38b96a=_0x3102f5['id'];if(_0x38b96a===undefined||_0x38b96a===null)throw new Error(_0x5a819e(0x1be));return _0x5deca4[_0x5a819e(0x1c1)](_0x38b96a);}case _0x5a819e(0x1bf):{const {id:_0x20bf88,..._0x1b26b3}=_0x3102f5;if(_0x20bf88===undefined||_0x20bf88===null)throw new Error(_0x5a819e(0x1b9));return _0x5deca4[_0x5a819e(0x1bf)](_0x20bf88,_0x1b26b3);}case _0x5a819e(0x1b3):{const _0x46cad7=_0x3102f5['id'];if(_0x46cad7===undefined||_0x46cad7===null)throw new Error(_0x5a819e(0x1c9));return _0x5deca4['delete'](_0x46cad7);}case _0x5a819e(0x1b4):return _0x5deca4[_0x5a819e(0x1b4)](normalizeAggregateParams(_0x3102f5));default:return _0x5deca4[_0x132ebd](_0x3102f5);}}export async function executeSdkSql(_0x5c0c76,_0x10fe86){const _0x2d6c91=a76_0x4f70,_0xfcbb72=ensureClient();return _0xfcbb72[_0x2d6c91(0x1bb)]['execute']({'sqlCode':_0x5c0c76,'params':_0x10fe86});}export async function executeSdkBff(_0x46966b,_0x2a257d){const _0x1aaf9a=a76_0x4f70,_0x544fd=ensureClient();return _0x544fd[_0x1aaf9a(0x1c6)]['execute']({'scriptName':_0x46966b,'params':_0x2a257d});}
1
+ (function(_0x266aa9,_0x3e3ca6){const _0x406f6d=a76_0x3a43,_0xbecfe8=_0x266aa9();while(!![]){try{const _0x6b3e18=-parseInt(_0x406f6d(0xb2))/0x1*(-parseInt(_0x406f6d(0xad))/0x2)+-parseInt(_0x406f6d(0xc2))/0x3*(-parseInt(_0x406f6d(0xbd))/0x4)+-parseInt(_0x406f6d(0xb7))/0x5*(-parseInt(_0x406f6d(0xc9))/0x6)+parseInt(_0x406f6d(0xc6))/0x7*(parseInt(_0x406f6d(0xba))/0x8)+parseInt(_0x406f6d(0xb4))/0x9+parseInt(_0x406f6d(0xaa))/0xa+parseInt(_0x406f6d(0xc1))/0xb*(-parseInt(_0x406f6d(0xbf))/0xc);if(_0x6b3e18===_0x3e3ca6)break;else _0xbecfe8['push'](_0xbecfe8['shift']());}catch(_0x28e6ac){_0xbecfe8['push'](_0xbecfe8['shift']());}}}(a76_0x469f,0x3d739));function a76_0x3a43(_0x4bff53,_0x28ae4b){_0x4bff53=_0x4bff53-0x9e;const _0x469fde=a76_0x469f();let _0x3a43eb=_0x469fde[_0x4bff53];return _0x3a43eb;}import{createClient}from'@lovrabet/sdk';import{PRODUCT_CONFIG}from'../constant/product.js';import{CliErrors}from'../errors.js';import{parseBatchCreateItemsFromParams}from'../utils/params.js';function a76_0x469f(){const _0x35e693=['invokeSource','2233660yBjepr','accessKey','column','139038ODBITJ','update','appCode','dataset_','string','7JYFFQz','delete','1973250oCgILS','object','isArray','4975GteYGY','validation','trim','2389192LkAlBV','map','data\x20aggregate\x20--params.aggregate\x20must\x20be\x20an\x20array.','4mLCfWU','sql','795060LGoCMT','data\x20aggregate\x20--params.aggregate[','231yQtRbV','418641yVpADG','execute','\x22.\x20','SDK\x20client\x20not\x20initialized.\x20Call\x20initSdkClient()\x20first.','7ZlPeEv',']\x20requires\x20\x22column\x22;\x20\x22field\x22\x20is\x20accepted\x20only\x20as\x20a\x20deprecated\x20alias.','Available:\x20filter,\x20getOne,\x20create,\x20batchCreate,\x20update,\x20delete,\x20aggregate.','1662RfzxKY',']\x20must\x20be\x20an\x20object.','aggregate','batchCreate','env','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\x20or\x20\x27{\x22id\x22:[1,2,3],\x22name\x22:\x22new\x22}\x27','getOne','field','SDK\x20model\x20does\x20not\x20support\x20operation\x20\x22','models','bff'];a76_0x469f=function(){return _0x35e693;};return a76_0x469f();}let _client;export function initSdkClient(_0x3e2c8f){const _0x25310c=a76_0x3a43;_client=createClient({'appCode':_0x3e2c8f[_0x25310c(0xaf)],'env':_0x3e2c8f[_0x25310c(0xa1)],'authMode':_0x3e2c8f['authMode'],..._0x3e2c8f['accessKey']?{'accessKey':_0x3e2c8f[_0x25310c(0xab)]}:{},'options':{'timeout':0x7530,'headers':{'X-Invoke-Source':PRODUCT_CONFIG[_0x25310c(0xa9)]}}});}function ensureClient(){const _0x3afff1=a76_0x3a43;if(!_client)throw new Error(_0x3afff1(0xc5));return _client;}function normalizeAggregateParams(_0x3a9033){const _0x3b9df2=a76_0x3a43,_0x4d3f14=_0x3a9033[_0x3b9df2(0x9f)];if(_0x4d3f14===undefined)return _0x3a9033;if(!Array['isArray'](_0x4d3f14))throw CliErrors[_0x3b9df2(0xb8)](_0x3b9df2(0xbc));return{..._0x3a9033,'aggregate':_0x4d3f14[_0x3b9df2(0xbb)]((_0x314d5d,_0x2f8ada)=>{const _0x3a99a4=_0x3b9df2;if(!_0x314d5d||typeof _0x314d5d!==_0x3a99a4(0xb5)||Array['isArray'](_0x314d5d))throw CliErrors[_0x3a99a4(0xb8)](_0x3a99a4(0xc0)+_0x2f8ada+_0x3a99a4(0x9e));const _0x370a2e=_0x314d5d[_0x3a99a4(0xac)]??_0x314d5d[_0x3a99a4(0xa5)];if(typeof _0x370a2e!==_0x3a99a4(0xb1)||_0x370a2e[_0x3a99a4(0xb9)]()==='')throw CliErrors[_0x3a99a4(0xb8)](_0x3a99a4(0xc0)+_0x2f8ada+_0x3a99a4(0xc7));const _0x4cbd23={..._0x314d5d,'column':_0x370a2e};return delete _0x4cbd23[_0x3a99a4(0xa5)],_0x4cbd23;})};}export async function executeData(_0x2a3071,_0x269913,_0x3b36ac){const _0x3a3d30=a76_0x3a43,_0x5e9a81=ensureClient(),_0x489ec1=_0x3a3d30(0xb0)+_0x2a3071,_0x222a52=_0x5e9a81[_0x3a3d30(0xa7)][_0x489ec1];if(!_0x222a52||typeof _0x222a52[_0x269913]!=='function')throw new Error(_0x3a3d30(0xa6)+_0x269913+_0x3a3d30(0xc4)+_0x3a3d30(0xc8));if(_0x269913==='batchCreate')return _0x222a52[_0x3a3d30(0xa0)](parseBatchCreateItemsFromParams(_0x3b36ac));const _0x1a98f8=_0x3b36ac!==undefined&&_0x3b36ac!==null&&!Array[_0x3a3d30(0xb6)](_0x3b36ac)?_0x3b36ac:{};switch(_0x269913){case _0x3a3d30(0xa4):{const _0x3cb2da=_0x1a98f8['id'];if(_0x3cb2da===undefined||_0x3cb2da===null)throw new Error(_0x3a3d30(0xa2));return _0x222a52[_0x3a3d30(0xa4)](_0x3cb2da);}case _0x3a3d30(0xae):{const {id:_0x376f06,..._0x377461}=_0x1a98f8;if(_0x376f06===undefined||_0x376f06===null)throw new Error(_0x3a3d30(0xa3));return _0x222a52[_0x3a3d30(0xae)](_0x376f06,_0x377461);}case _0x3a3d30(0xb3):{const _0x5d8ba5=_0x1a98f8['id'];if(_0x5d8ba5===undefined||_0x5d8ba5===null)throw new Error('delete\x20requires\x20\x22id\x22\x20in\x20--params,\x20e.g.\x20\x27{\x22id\x22:123}\x27');return _0x222a52[_0x3a3d30(0xb3)](_0x5d8ba5);}case _0x3a3d30(0x9f):return _0x222a52['aggregate'](normalizeAggregateParams(_0x1a98f8));default:return _0x222a52[_0x269913](_0x1a98f8);}}export async function executeSdkSql(_0x16f85f,_0x26d82d){const _0x5baeb4=a76_0x3a43,_0x545789=ensureClient();return _0x545789[_0x5baeb4(0xbe)][_0x5baeb4(0xc3)]({'sqlCode':_0x16f85f,'params':_0x26d82d});}export async function executeSdkBff(_0x383c86,_0x2feecf){const _0x415ff3=a76_0x3a43,_0x3a7b63=ensureClient();return _0x3a7b63[_0x415ff3(0xa8)][_0x415ff3(0xc3)]({'scriptName':_0x383c86,'params':_0x2feecf});}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a77_0x2569ab=a77_0xbe81;(function(_0x228d1b,_0x18b8c8){const _0x5d517f=a77_0xbe81,_0x413f48=_0x228d1b();while(!![]){try{const _0x2d059f=-parseInt(_0x5d517f(0x8d))/0x1*(parseInt(_0x5d517f(0x92))/0x2)+-parseInt(_0x5d517f(0x87))/0x3*(-parseInt(_0x5d517f(0x94))/0x4)+parseInt(_0x5d517f(0x96))/0x5*(parseInt(_0x5d517f(0x8e))/0x6)+parseInt(_0x5d517f(0x8b))/0x7*(-parseInt(_0x5d517f(0x89))/0x8)+-parseInt(_0x5d517f(0x8a))/0x9+-parseInt(_0x5d517f(0x88))/0xa+parseInt(_0x5d517f(0x8c))/0xb;if(_0x2d059f===_0x18b8c8)break;else _0x413f48['push'](_0x413f48['shift']());}catch(_0x48b390){_0x413f48['push'](_0x413f48['shift']());}}}(a77_0x165a,0x5e165));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a77_0xbe81(_0x23cebe,_0x575dcf){_0x23cebe=_0x23cebe-0x87;const _0x165a09=a77_0x165a();let _0xbe8156=_0x165a09[_0x23cebe];return _0xbe8156;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};function a77_0x165a(){const _0x4a6226=['\x20or\x20run\x20`','1599OoRuvY','3844310BmSEJB','15344ZUXRtS','4495887ZGPynf','1127LsImNQ','10311840QehlHJ','50DVnotK','606FMbyuY','\x20auth\x20login`.','newConfigFileName','Configure\x20accessKey\x20in\x20','12178XkjzSp','\x20file.','5296oqmWCD','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','11855HQxELb'];a77_0x165a=function(){return _0x4a6226;};return a77_0x165a();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x2569ab(0x91)+PRODUCT_CONFIG['newConfigFileName']+a77_0x2569ab(0x97)+CLI_BIN_NAME+a77_0x2569ab(0x8f),'configMissingHint':'Set\x20appcode\x20via\x20--appcode\x20or\x20'+PRODUCT_CONFIG[a77_0x2569ab(0x90)]+'.','notInProjectHint':a77_0x2569ab(0x95)+PRODUCT_CONFIG[a77_0x2569ab(0x90)]+a77_0x2569ab(0x93)});
1
+ const a77_0x3f5d04=a77_0x43c0;(function(_0x4daab1,_0x567be3){const _0xfdf9d2=a77_0x43c0,_0x2cb746=_0x4daab1();while(!![]){try{const _0x510556=-parseInt(_0xfdf9d2(0x13d))/0x1+-parseInt(_0xfdf9d2(0x13b))/0x2*(-parseInt(_0xfdf9d2(0x12e))/0x3)+parseInt(_0xfdf9d2(0x13c))/0x4+parseInt(_0xfdf9d2(0x132))/0x5+-parseInt(_0xfdf9d2(0x130))/0x6+parseInt(_0xfdf9d2(0x134))/0x7*(-parseInt(_0xfdf9d2(0x12f))/0x8)+-parseInt(_0xfdf9d2(0x139))/0x9;if(_0x510556===_0x567be3)break;else _0x2cb746['push'](_0x2cb746['shift']());}catch(_0x1eddda){_0x2cb746['push'](_0x2cb746['shift']());}}}(a77_0x4fd0,0x3543a));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a77_0x43c0(_0x2064ee,_0x5edf2c){_0x2064ee=_0x2064ee-0x12e;const _0x4fd06c=a77_0x4fd0();let _0x43c038=_0x4fd06c[_0x2064ee];return _0x43c038;}import{CLI_BIN_NAME}from'./constant/cli.js';import{PRODUCT_CONFIG}from'./constant/product.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a77_0x3f5d04(0x138)+PRODUCT_CONFIG[a77_0x3f5d04(0x133)]+a77_0x3f5d04(0x131)+CLI_BIN_NAME+a77_0x3f5d04(0x137),'configMissingHint':a77_0x3f5d04(0x135)+PRODUCT_CONFIG[a77_0x3f5d04(0x133)]+'.','notInProjectHint':a77_0x3f5d04(0x13a)+PRODUCT_CONFIG[a77_0x3f5d04(0x133)]+a77_0x3f5d04(0x136)});function a77_0x4fd0(){const _0x3448ff=['3DnIXxF','11384JCfwjZ','370422atXbeZ','\x20or\x20run\x20`','318380nWSJzf','newConfigFileName','511iRhBpv','Set\x20appcode\x20via\x20--appcode\x20or\x20','\x20file.','\x20auth\x20login`.','Configure\x20accessKey\x20in\x20','682272uxpMKv','Run\x20this\x20command\x20inside\x20a\x20directory\x20with\x20a\x20','813690AzggWu','208764fejXNh','63118hGdCJE'];a77_0x4fd0=function(){return _0x3448ff;};return a77_0x4fd0();}
@@ -1 +1 @@
1
- (function(_0x31c5bc,_0x5874a2){var _0x459e44=a78_0x23d6,_0x86bbdf=_0x31c5bc();while(!![]){try{var _0x1c380a=-parseInt(_0x459e44(0xdb))/0x1*(-parseInt(_0x459e44(0xdd))/0x2)+parseInt(_0x459e44(0xde))/0x3+parseInt(_0x459e44(0xe0))/0x4+-parseInt(_0x459e44(0xda))/0x5+parseInt(_0x459e44(0xd9))/0x6+parseInt(_0x459e44(0xdc))/0x7+-parseInt(_0x459e44(0xdf))/0x8;if(_0x1c380a===_0x5874a2)break;else _0x86bbdf['push'](_0x86bbdf['shift']());}catch(_0x1e9166){_0x86bbdf['push'](_0x86bbdf['shift']());}}}(a78_0x5a69,0x2a568));function a78_0x23d6(_0x1e397f,_0x5c2565){_0x1e397f=_0x1e397f-0xd9;var _0x5a6992=a78_0x5a69();var _0x23d683=_0x5a6992[_0x1e397f];return _0x23d683;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a78_0xf43987}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2a0529){return a78_0xf43987(_0x2a0529,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a78_0x5a69(){var _0x56f78c=['1058030bhuRSe','7GGMMYh','899444QLnSMZ','67872pqUYVt','71148PuCJlU','5447952BCdomP','1378156wwtwna','1990302vSgZaK'];a78_0x5a69=function(){return _0x56f78c;};return a78_0x5a69();}
1
+ function a78_0x1625(_0x54fac9,_0x25f1be){_0x54fac9=_0x54fac9-0x195;var _0x14d3af=a78_0x14d3();var _0x16253b=_0x14d3af[_0x54fac9];return _0x16253b;}(function(_0x1399b6,_0x76f410){var _0x89cf19=a78_0x1625,_0x5864ca=_0x1399b6();while(!![]){try{var _0x1f8e08=-parseInt(_0x89cf19(0x197))/0x1*(parseInt(_0x89cf19(0x19b))/0x2)+-parseInt(_0x89cf19(0x199))/0x3*(parseInt(_0x89cf19(0x195))/0x4)+-parseInt(_0x89cf19(0x19a))/0x5+-parseInt(_0x89cf19(0x19d))/0x6+-parseInt(_0x89cf19(0x19f))/0x7*(-parseInt(_0x89cf19(0x19c))/0x8)+parseInt(_0x89cf19(0x196))/0x9*(parseInt(_0x89cf19(0x198))/0xa)+parseInt(_0x89cf19(0x19e))/0xb;if(_0x1f8e08===_0x76f410)break;else _0x5864ca['push'](_0x5864ca['shift']());}catch(_0x27640a){_0x5864ca['push'](_0x5864ca['shift']());}}}(a78_0x14d3,0x4f1ad));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a78_0x16e9be}from'@lovrabet/cli-framework';export function buildAllFlags(_0x9ace38){return a78_0x16e9be(_0x9ace38,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a78_0x14d3(){var _0xe993d5=['247430hJFYxL','8744fRkZWr','2564868qRAXxV','5728063RUSUVB','2667FLGAWq','20JmCLhj','9YmCnsQ','2EGNhHy','2380600pLUJzH','48225rYpYxq','479650XpETdL'];a78_0x14d3=function(){return _0xe993d5;};return a78_0x14d3();}
@@ -1 +1 @@
1
- (function(_0x63a5fd,_0x1d0690){const _0x2b1436=a79_0x4430,_0x3d67b6=_0x63a5fd();while(!![]){try{const _0x5a5864=parseInt(_0x2b1436(0xc6))/0x1+-parseInt(_0x2b1436(0xc1))/0x2+-parseInt(_0x2b1436(0xbe))/0x3*(-parseInt(_0x2b1436(0xc5))/0x4)+parseInt(_0x2b1436(0xbf))/0x5*(-parseInt(_0x2b1436(0xc0))/0x6)+-parseInt(_0x2b1436(0xc4))/0x7*(-parseInt(_0x2b1436(0xc7))/0x8)+-parseInt(_0x2b1436(0xc2))/0x9+parseInt(_0x2b1436(0xc8))/0xa;if(_0x5a5864===_0x1d0690)break;else _0x3d67b6['push'](_0x3d67b6['shift']());}catch(_0x18b919){_0x3d67b6['push'](_0x3d67b6['shift']());}}}(a79_0x76a5,0x4ad70));export function dryRun(_0x5cc802,_0x1ea8ae){const _0x3eba5d={'method':_0x5cc802,'url':_0x1ea8ae},_0x203858={'body'(_0x526c4c){const _0x5031d4=a79_0x4430;return _0x3eba5d[_0x5031d4(0xc3)]=_0x526c4c,_0x203858;},'description'(_0xb2b4ec){return _0x3eba5d['description']=_0xb2b4ec,_0x203858;},'build'(){return{..._0x3eba5d};}};return _0x203858;}function a79_0x4430(_0x23a9f2,_0x2aa529){_0x23a9f2=_0x23a9f2-0xbe;const _0x76a5c0=a79_0x76a5();let _0x4430a1=_0x76a5c0[_0x23a9f2];return _0x4430a1;}function a79_0x76a5(){const _0x54e0db=['563480ZQxoaW','2675270zAMxFI','21pXnxDZ','2839165qFYsIg','6DrPADo','92734wCEBiO','8397GipiYT','body','7EMHOxM','170588mJPHjS','285186dSeDfu'];a79_0x76a5=function(){return _0x54e0db;};return a79_0x76a5();}
1
+ function a79_0x402e(){const _0x75cb44=['10UjZFZU','1052634eksfBg','description','4YMudzz','12335279uYrJAr','1604925UWULvp','280cxXOfo','38768Laigas','1gkwKTR','543558mmMFjc','420003DuTAZU','1320129CiCRKb'];a79_0x402e=function(){return _0x75cb44;};return a79_0x402e();}function a79_0x4675(_0x3859f3,_0x181f7){_0x3859f3=_0x3859f3-0x1ce;const _0x402e7c=a79_0x402e();let _0x4675c6=_0x402e7c[_0x3859f3];return _0x4675c6;}(function(_0x441e6b,_0x40a14e){const _0x390499=a79_0x4675,_0x5916af=_0x441e6b();while(!![]){try{const _0x3b5e47=parseInt(_0x390499(0x1ce))/0x1*(parseInt(_0x390499(0x1cf))/0x2)+parseInt(_0x390499(0x1d1))/0x3*(parseInt(_0x390499(0x1d5))/0x4)+parseInt(_0x390499(0x1d7))/0x5+parseInt(_0x390499(0x1d3))/0x6+-parseInt(_0x390499(0x1d8))/0x7*(-parseInt(_0x390499(0x1d9))/0x8)+-parseInt(_0x390499(0x1d0))/0x9+parseInt(_0x390499(0x1d2))/0xa*(-parseInt(_0x390499(0x1d6))/0xb);if(_0x3b5e47===_0x40a14e)break;else _0x5916af['push'](_0x5916af['shift']());}catch(_0x3398fd){_0x5916af['push'](_0x5916af['shift']());}}}(a79_0x402e,0x3922e));export function dryRun(_0x3e14fb,_0x4e3c1d){const _0xc1aa00={'method':_0x3e14fb,'url':_0x4e3c1d},_0x25f0da={'body'(_0x5438b4){return _0xc1aa00['body']=_0x5438b4,_0x25f0da;},'description'(_0x5c74f1){const _0x95af8a=a79_0x4675;return _0xc1aa00[_0x95af8a(0x1d4)]=_0x5c74f1,_0x25f0da;},'build'(){return{..._0xc1aa00};}};return _0x25f0da;}
@@ -1 +1 @@
1
- const a80_0x536648=a80_0x3ce2;(function(_0x93cae1,_0x65af7e){const _0x13f9ac=a80_0x3ce2,_0x93d12=_0x93cae1();while(!![]){try{const _0x2f3854=parseInt(_0x13f9ac(0xe7))/0x1*(parseInt(_0x13f9ac(0xe2))/0x2)+parseInt(_0x13f9ac(0xe1))/0x3*(-parseInt(_0x13f9ac(0xe0))/0x4)+parseInt(_0x13f9ac(0xe3))/0x5*(parseInt(_0x13f9ac(0xdd))/0x6)+parseInt(_0x13f9ac(0xe4))/0x7+parseInt(_0x13f9ac(0xe5))/0x8+-parseInt(_0x13f9ac(0xea))/0x9*(parseInt(_0x13f9ac(0xe6))/0xa)+-parseInt(_0x13f9ac(0xe9))/0xb*(-parseInt(_0x13f9ac(0xdf))/0xc);if(_0x2f3854===_0x65af7e)break;else _0x93d12['push'](_0x93d12['shift']());}catch(_0xd6de6e){_0x93d12['push'](_0x93d12['shift']());}}}(a80_0x22cb,0xd2e13));function a80_0x22cb(){const _0x5593f1=['2859857eRbXBW','3534984Jrxefc','3153340PTJEkb','1YcLXrY','parseFlags','373571qTshyD','18BjOuLg','628302YCArgl','validateFlags','108snpuDt','4101788sghgIC','3eWexGV','423836mtgZVr','55gxRLya'];a80_0x22cb=function(){return _0x5593f1;};return a80_0x22cb();}import{createFlagHelpers}from'@lovrabet/cli-framework';function a80_0x3ce2(_0x5d8093,_0x36ea58){_0x5d8093=_0x5d8093-0xdd;const _0x22cb90=a80_0x22cb();let _0x3ce2a4=_0x22cb90[_0x5d8093];return _0x3ce2a4;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a80_0x536648(0xe8)];export const validateFlags=helpers[a80_0x536648(0xde)];
1
+ function a80_0x69ef(){const _0x5d1b75=['1922634bogHEg','722585sKiWeg','validateFlags','117768yFMLdY','863805EBGmbS','370226ogzlYX','328270GNTPfK','40fGKnas','1572102sTjUDS'];a80_0x69ef=function(){return _0x5d1b75;};return a80_0x69ef();}const a80_0x54075a=a80_0x2f51;(function(_0x2389c8,_0x562b6d){const _0x9a8cd3=a80_0x2f51,_0x146ca6=_0x2389c8();while(!![]){try{const _0x47fd1b=parseInt(_0x9a8cd3(0x158))/0x1+parseInt(_0x9a8cd3(0x157))/0x2+parseInt(_0x9a8cd3(0x156))/0x3+parseInt(_0x9a8cd3(0x155))/0x4+parseInt(_0x9a8cd3(0x15c))/0x5+parseInt(_0x9a8cd3(0x15b))/0x6+parseInt(_0x9a8cd3(0x15a))/0x7*(-parseInt(_0x9a8cd3(0x159))/0x8);if(_0x47fd1b===_0x562b6d)break;else _0x146ca6['push'](_0x146ca6['shift']());}catch(_0x7d89c6){_0x146ca6['push'](_0x146ca6['shift']());}}}(a80_0x69ef,0x2a2f2));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a80_0x2f51(_0x15a4e0,_0xbc7598){_0x15a4e0=_0x15a4e0-0x155;const _0x69ef40=a80_0x69ef();let _0x2f517d=_0x69ef40[_0x15a4e0];return _0x2f517d;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a80_0x54075a(0x15d)];
@@ -1 +1 @@
1
- (function(_0x59934c,_0x40374b){const _0x963500=a81_0x3946,_0x1babf8=_0x59934c();while(!![]){try{const _0x403fa1=parseInt(_0x963500(0x77))/0x1*(-parseInt(_0x963500(0x7a))/0x2)+-parseInt(_0x963500(0x81))/0x3+parseInt(_0x963500(0x79))/0x4+-parseInt(_0x963500(0x7e))/0x5+parseInt(_0x963500(0x78))/0x6+-parseInt(_0x963500(0x7f))/0x7*(parseInt(_0x963500(0x7c))/0x8)+parseInt(_0x963500(0x83))/0x9*(parseInt(_0x963500(0x7d))/0xa);if(_0x403fa1===_0x40374b)break;else _0x1babf8['push'](_0x1babf8['shift']());}catch(_0x4f915e){_0x1babf8['push'](_0x1babf8['shift']());}}}(a81_0x45df,0xba3c0));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a81_0x45df(){const _0x331db2=['generateFullHelp','447fNaZzh','3586584kPzpTU','3808388ZtCjok','6222cCfnap','generateCommandHelp','56WStXBk','230yxtglz','4532325WsWcLT','1367023KCHjYv','filter','2050779EMrscF','service','1393299EDTwZL','has','\x20or\x20--appcode).','Requires\x20appcode\x20(set\x20via\x20','get'];a81_0x45df=function(){return _0x331db2;};return a81_0x45df();}function a81_0x3946(_0x383bbf,_0x3e7418){_0x383bbf=_0x383bbf-0x73;const _0x45df87=a81_0x45df();let _0x3946a3=_0x45df87[_0x383bbf];return _0x3946a3;}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x18d73d=a81_0x3946;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x18d73d(0x74)+PRODUCT_CONFIG['newConfigFileName']+_0x18d73d(0x73)});}export function generateCommandHelp(_0x2e031a){const _0xa33b52=a81_0x3946;return createGenerators()[_0xa33b52(0x7b)](_0x2e031a);}export function generateServiceHelp(_0x37f335){return createGenerators()['generateServiceHelp'](_0x37f335);}export function generateFullHelp(){const _0x38f719=a81_0x3946;return createGenerators()[_0x38f719(0x76)]();}function getAnyServiceEntry(_0x27862a){const _0x3c08f3=getServiceEntry(_0x27862a);if(_0x3c08f3)return _0x3c08f3;try{return getDynamicServiceEntry(_0x27862a);}catch{return undefined;}}function getAnyServiceDefinitions(_0xe163a0){const _0x255913=a81_0x3946,_0x31ca45=serviceGroups[_0x255913(0x75)](_0xe163a0);if(_0x31ca45)return _0x31ca45;try{return getDynamicServiceDefinitions(_0xe163a0);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x4b5e05=a81_0x3946,_0x442aaf=new Set(serviceRegistry['map'](_0x3b5b1c=>_0x3b5b1c['service']));try{return listDynamicServiceEntries()[_0x4b5e05(0x80)](_0x16baff=>!_0x442aaf[_0x4b5e05(0x84)](_0x16baff[_0x4b5e05(0x82)]));}catch{return[];}}
1
+ (function(_0x3cefbd,_0x328ebc){const _0x535d2a=a81_0xee3d,_0x1235f6=_0x3cefbd();while(!![]){try{const _0x5260e4=-parseInt(_0x535d2a(0x9e))/0x1+parseInt(_0x535d2a(0xa9))/0x2*(parseInt(_0x535d2a(0xaa))/0x3)+-parseInt(_0x535d2a(0xa3))/0x4*(-parseInt(_0x535d2a(0xa2))/0x5)+parseInt(_0x535d2a(0xa1))/0x6*(-parseInt(_0x535d2a(0x9f))/0x7)+-parseInt(_0x535d2a(0xb2))/0x8*(parseInt(_0x535d2a(0xa4))/0x9)+-parseInt(_0x535d2a(0xa6))/0xa+parseInt(_0x535d2a(0xa7))/0xb*(parseInt(_0x535d2a(0xa0))/0xc);if(_0x5260e4===_0x328ebc)break;else _0x1235f6['push'](_0x1235f6['shift']());}catch(_0xd0c1bd){_0x1235f6['push'](_0x1235f6['shift']());}}}(a81_0x5abe,0x3f86e));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';function a81_0x5abe(){const _0x25ba60=['generateCommandHelp','Requires\x20appcode\x20(set\x20via\x20','newConfigFileName','128fXchuv','generateServiceHelp','461706WnrrZs','49455fUHVBU','303132CxFuXF','120vPvwig','4850RUBjbO','2116XxgKUy','272133TRmdLA','filter','3605810HwNlij','341eFtSzu','get','205682rsSfww','12YQzrsD','service','\x20or\x20--appcode).','generateFullHelp','map'];a81_0x5abe=function(){return _0x25ba60;};return a81_0x5abe();}import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x2f73bf=a81_0xee3d;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x2f73bf(0xb0)+PRODUCT_CONFIG[_0x2f73bf(0xb1)]+_0x2f73bf(0xac)});}export function generateCommandHelp(_0x3655a9){const _0x1de505=a81_0xee3d;return createGenerators()[_0x1de505(0xaf)](_0x3655a9);}export function generateServiceHelp(_0x3ed7ab){const _0x43b181=a81_0xee3d;return createGenerators()[_0x43b181(0x9d)](_0x3ed7ab);}export function generateFullHelp(){const _0x5ecfe3=a81_0xee3d;return createGenerators()[_0x5ecfe3(0xad)]();}function a81_0xee3d(_0x1630cb,_0x51bb0c){_0x1630cb=_0x1630cb-0x9d;const _0x5abed7=a81_0x5abe();let _0xee3d83=_0x5abed7[_0x1630cb];return _0xee3d83;}function getAnyServiceEntry(_0x4b80b2){const _0x13af5f=getServiceEntry(_0x4b80b2);if(_0x13af5f)return _0x13af5f;try{return getDynamicServiceEntry(_0x4b80b2);}catch{return undefined;}}function getAnyServiceDefinitions(_0x58d7b1){const _0x771d97=a81_0xee3d,_0x2a1aa8=serviceGroups[_0x771d97(0xa8)](_0x58d7b1);if(_0x2a1aa8)return _0x2a1aa8;try{return getDynamicServiceDefinitions(_0x58d7b1);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x279b21=a81_0xee3d,_0xdc431b=new Set(serviceRegistry[_0x279b21(0xae)](_0x57e532=>_0x57e532[_0x279b21(0xab)]));try{return listDynamicServiceEntries()[_0x279b21(0xa5)](_0x28ba82=>!_0xdc431b['has'](_0x28ba82[_0x279b21(0xab)]));}catch{return[];}}
@@ -1 +1 @@
1
- (function(_0x31f1f0,_0x3db750){var _0x3c880c=a82_0x9d42,_0x8ce44e=_0x31f1f0();while(!![]){try{var _0x4ce51c=-parseInt(_0x3c880c(0x105))/0x1+-parseInt(_0x3c880c(0x102))/0x2*(-parseInt(_0x3c880c(0x103))/0x3)+-parseInt(_0x3c880c(0x104))/0x4+parseInt(_0x3c880c(0xfe))/0x5+parseInt(_0x3c880c(0x100))/0x6*(-parseInt(_0x3c880c(0x101))/0x7)+-parseInt(_0x3c880c(0x106))/0x8+parseInt(_0x3c880c(0xff))/0x9;if(_0x4ce51c===_0x3db750)break;else _0x8ce44e['push'](_0x8ce44e['shift']());}catch(_0xc1f8a2){_0x8ce44e['push'](_0x8ce44e['shift']());}}}(a82_0x3858,0x46e0b));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a82_0x9d42(_0x3020f0,_0x21af31){_0x3020f0=_0x3020f0-0xfe;var _0x3858cb=a82_0x3858();var _0x9d4250=_0x3858cb[_0x3020f0];return _0x9d4250;}function a82_0x3858(){var _0x97f026=['3579633RYFKIL','2238lYwCuq','6237AjNtFS','326526wLJmqM','9LKwJxK','548852sIJDFF','343833aKjXss','2384936JEaBYe','2571475ymPFHn'];a82_0x3858=function(){return _0x97f026;};return a82_0x3858();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
1
+ (function(_0x54cd8b,_0x40fb41){var _0x1ce4ab=a82_0x20a8,_0x48af59=_0x54cd8b();while(!![]){try{var _0x117dfe=-parseInt(_0x1ce4ab(0x73))/0x1+parseInt(_0x1ce4ab(0x76))/0x2*(-parseInt(_0x1ce4ab(0x7c))/0x3)+parseInt(_0x1ce4ab(0x78))/0x4+-parseInt(_0x1ce4ab(0x79))/0x5*(-parseInt(_0x1ce4ab(0x77))/0x6)+-parseInt(_0x1ce4ab(0x72))/0x7*(-parseInt(_0x1ce4ab(0x7a))/0x8)+parseInt(_0x1ce4ab(0x7b))/0x9*(parseInt(_0x1ce4ab(0x75))/0xa)+parseInt(_0x1ce4ab(0x74))/0xb;if(_0x117dfe===_0x40fb41)break;else _0x48af59['push'](_0x48af59['shift']());}catch(_0x48dfd4){_0x48af59['push'](_0x48af59['shift']());}}}(a82_0xc5d8,0x57576));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a82_0x20a8(_0x3ef14b,_0x41f675){_0x3ef14b=_0x3ef14b-0x72;var _0xc5d803=a82_0xc5d8();var _0x20a8c3=_0xc5d803[_0x3ef14b];return _0x20a8c3;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a82_0xc5d8(){var _0x16e1f=['2924LJqFjh','1138386FXbZVa','1634944HqfYvS','5aQrEid','16cvRCHR','423IcfrtO','927mBzebd','19565mqfYtK','137050hVCXOg','962269wJqUbB','54260qSkSVA'];a82_0xc5d8=function(){return _0x16e1f;};return a82_0xc5d8();}export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
@@ -1 +1 @@
1
- function a83_0x2f96(){const _0x4a2ed9=['8880xywGet','4693654jtJvbQ','6rcewAs','pretty','34gKLYQl','update','7627653AaSRAQ','160QQSnGd','2222157uFbyDO','format','72752CwOZxZ','125ugUNhO','error','3392430yCezpK','308709mrQEJw'];a83_0x2f96=function(){return _0x4a2ed9;};return a83_0x2f96();}function a83_0xe27a(_0x4a9157,_0x42ec46){_0x4a9157=_0x4a9157-0x159;const _0x2f9643=a83_0x2f96();let _0xe27abf=_0x2f9643[_0x4a9157];return _0xe27abf;}(function(_0x2050cf,_0x8c59ac){const _0x57bbef=a83_0xe27a,_0x950993=_0x2050cf();while(!![]){try{const _0x174703=parseInt(_0x57bbef(0x15e))/0x1*(-parseInt(_0x57bbef(0x15a))/0x2)+-parseInt(_0x57bbef(0x162))/0x3+parseInt(_0x57bbef(0x164))/0x4*(parseInt(_0x57bbef(0x165))/0x5)+parseInt(_0x57bbef(0x15c))/0x6*(parseInt(_0x57bbef(0x15b))/0x7)+parseInt(_0x57bbef(0x161))/0x8*(parseInt(_0x57bbef(0x159))/0x9)+parseInt(_0x57bbef(0x167))/0xa+-parseInt(_0x57bbef(0x160))/0xb;if(_0x174703===_0x8c59ac)break;else _0x950993['push'](_0x950993['shift']());}catch(_0x57d2a9){_0x950993['push'](_0x950993['shift']());}}}(a83_0x2f96,0x8a087));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xfaaf6d,_0x4698e1){const _0x4ea90a=a83_0xe27a,_0x317f65=_0xfaaf6d['_notice'],{_notice:_0x104843,..._0x1cf440}=_0xfaaf6d;void _0x104843,baseFormatOutput(_0x1cf440,_0x4698e1),_0x4698e1[_0x4ea90a(0x163)]===_0x4ea90a(0x15d)&&printPrettyNotice(_0x317f65);}function printPrettyNotice(_0x249ab2){const _0x1333ff=a83_0xe27a;if(!_0x249ab2?.[_0x1333ff(0x15f)])return;console[_0x1333ff(0x166)](_0x249ab2[_0x1333ff(0x15f)]['message']+'\x20('+_0x249ab2[_0x1333ff(0x15f)]['url']+')');}
1
+ (function(_0x1c218e,_0x408387){const _0x3a4776=a83_0x2cfc,_0xaccfec=_0x1c218e();while(!![]){try{const _0x1a6069=parseInt(_0x3a4776(0x1a0))/0x1*(parseInt(_0x3a4776(0x1a2))/0x2)+parseInt(_0x3a4776(0x19f))/0x3+-parseInt(_0x3a4776(0x19c))/0x4+-parseInt(_0x3a4776(0x19d))/0x5+-parseInt(_0x3a4776(0x195))/0x6+parseInt(_0x3a4776(0x199))/0x7*(-parseInt(_0x3a4776(0x198))/0x8)+parseInt(_0x3a4776(0x19e))/0x9;if(_0x1a6069===_0x408387)break;else _0xaccfec['push'](_0xaccfec['shift']());}catch(_0x561764){_0xaccfec['push'](_0xaccfec['shift']());}}}(a83_0x4164,0x1be93));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x26d797,_0x4d007d){const _0x33f30d=a83_0x2cfc,_0x1ece3c=_0x26d797['_notice'],{_notice:_0x1dbbb5,..._0x59f7f9}=_0x26d797;void _0x1dbbb5,baseFormatOutput(_0x59f7f9,_0x4d007d),_0x4d007d['format']===_0x33f30d(0x19b)&&printPrettyNotice(_0x1ece3c);}function a83_0x2cfc(_0x3b0f07,_0x20b6c7){_0x3b0f07=_0x3b0f07-0x195;const _0x416486=a83_0x4164();let _0x2cfc88=_0x416486[_0x3b0f07];return _0x2cfc88;}function a83_0x4164(){const _0x5ebdfe=['1428yKNCTC','924024otQpQa','url','update','6168gxHrfj','2058GUnIQn','message','pretty','15024LENiMw','369750VFdNrg','3286494ygbwBK','78555JREBqp','254mDUnSS','error'];a83_0x4164=function(){return _0x5ebdfe;};return a83_0x4164();}function printPrettyNotice(_0x51e5fe){const _0x51dc7a=a83_0x2cfc;if(!_0x51e5fe?.['update'])return;console[_0x51dc7a(0x1a1)](_0x51e5fe['update'][_0x51dc7a(0x19a)]+'\x20('+_0x51e5fe[_0x51dc7a(0x197)][_0x51dc7a(0x196)]+')');}
@@ -1 +1 @@
1
- (function(_0x147238,_0x2679af){const _0x4f76e8=a84_0x45ec,_0x1f4320=_0x147238();while(!![]){try{const _0xe47a6a=parseInt(_0x4f76e8(0xf3))/0x1*(-parseInt(_0x4f76e8(0xe3))/0x2)+parseInt(_0x4f76e8(0xe9))/0x3*(parseInt(_0x4f76e8(0xfc))/0x4)+-parseInt(_0x4f76e8(0xe5))/0x5*(-parseInt(_0x4f76e8(0xdb))/0x6)+parseInt(_0x4f76e8(0xf1))/0x7+parseInt(_0x4f76e8(0xe7))/0x8+parseInt(_0x4f76e8(0xdf))/0x9+-parseInt(_0x4f76e8(0xe1))/0xa*(parseInt(_0x4f76e8(0xf5))/0xb);if(_0xe47a6a===_0x2679af)break;else _0x1f4320['push'](_0x1f4320['shift']());}catch(_0x438ae){_0x1f4320['push'](_0x1f4320['shift']());}}}(a84_0x4267,0x3525b));function toKebab(_0x4d0ee2){const _0x5638b7=a84_0x45ec;return _0x4d0ee2[_0x5638b7(0xff)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x5aff28,_0x28266b)=>'-'+_0x28266b[_0x5638b7(0xeb)]())['replace'](/([a-z0-9])([A-Z])/g,(_0x4648f6,_0x23f357,_0x551572)=>_0x23f357+'-'+_0x551572)['toLowerCase']();}function a84_0x4267(){const _0x23c920=['corrected','77OhKHZy','slice','help','length','format','yes','dryRun','4jQxpxF','push','set','replace','name','has','appcode','add','string','keys','sticky','209796YSosgc','app','nonInteractive','toUpperCase','2373219eYKKoG','entries','1298230vlyLMr','type','424006ezUPcW','boolean','45UNBRsn','original','435432zFcnwc','dry-run','1059969oWoXbl','indexOf','toLowerCase','non-interactive','get','global','number','env','2466226wKJkKe','version','1IzyVFu'];a84_0x4267=function(){return _0x23c920;};return a84_0x4267();}function a84_0x45ec(_0x215d24,_0x4f1451){_0x215d24=_0x215d24-0xd5;const _0x4267b9=a84_0x4267();let _0x45ece7=_0x4267b9[_0x215d24];return _0x45ece7;}function buildKnownFlags(_0x345b89){const _0x94472c=a84_0x45ec,_0x3cca6f=new Set();for(const _0x473fba of _0x345b89){_0x3cca6f[_0x94472c(0xd7)](_0x473fba['name']),_0x3cca6f[_0x94472c(0xd7)](toCamelCase(_0x473fba[_0x94472c(0x100)]));}for(const _0x561699 of[_0x94472c(0xe8),_0x94472c(0xfb),_0x94472c(0xfa),_0x94472c(0xf9)]){_0x3cca6f[_0x94472c(0xd7)](_0x561699);}for(const _0xef5eac of[_0x94472c(0xf7),_0x94472c(0xf0),_0x94472c(0xd6),_0x94472c(0xdc),_0x94472c(0xdd),_0x94472c(0xec),'ci',_0x94472c(0xee),_0x94472c(0xf2)]){_0x3cca6f[_0x94472c(0xd7)](_0xef5eac);}return _0x3cca6f;}function buildFlagTypeMap(_0x19ac5b){const _0x27a5e4=a84_0x45ec,_0xbe73d4=new Map();for(const _0x598427 of _0x19ac5b){_0xbe73d4[_0x27a5e4(0xfe)](_0x598427[_0x27a5e4(0x100)],_0x598427[_0x27a5e4(0xe2)]),_0xbe73d4[_0x27a5e4(0xfe)](toCamelCase(_0x598427[_0x27a5e4(0x100)]),_0x598427['type']);}return _0xbe73d4;}function toCamelCase(_0x1153b8){const _0x25f3fd=a84_0x45ec;return _0x1153b8[_0x25f3fd(0xff)](/-([a-z])/g,(_0x38da8c,_0x278e95)=>_0x278e95[_0x25f3fd(0xde)]());}function aliasHandler(_0x46e884,_0x912a22){const _0x1b1c4b=a84_0x45ec,_0x4006ab=[];for(const _0x2dd72b of Object[_0x1b1c4b(0xd9)](_0x46e884)){if(_0x912a22[_0x1b1c4b(0xd5)](_0x2dd72b))continue;const _0x1b9397=toKebab(_0x2dd72b);_0x1b9397!==_0x2dd72b&&_0x912a22['has'](_0x1b9397)&&_0x4006ab[_0x1b1c4b(0xfd)]({'original':_0x2dd72b,'corrected':_0x1b9397,'handler':'alias'});}return _0x4006ab;}function stickyHandler(_0x238429,_0xd1066b,_0x44dda3){const _0x4f111d=a84_0x45ec,_0x3708b1=[];for(const [_0x2b5287,_0x3f06df]of Object[_0x4f111d(0xe0)](_0x238429)){if(_0x3f06df!==!![])continue;for(let _0x12d2ca=_0x2b5287['length']-0x1;_0x12d2ca>0x0;_0x12d2ca--){const _0x1f49f3=_0x2b5287[_0x4f111d(0xf6)](0x0,_0x12d2ca),_0x3be772=_0x2b5287['slice'](_0x12d2ca),_0x3a0a8a=toKebab(_0x1f49f3),_0xbd7af1=toCamelCase(_0x1f49f3),_0x15738e=_0xd1066b[_0x4f111d(0xd5)](_0x1f49f3)?_0x1f49f3:_0xd1066b[_0x4f111d(0xd5)](_0x3a0a8a)?_0x3a0a8a:_0xd1066b[_0x4f111d(0xd5)](_0xbd7af1)?_0xbd7af1:null;if(!_0x15738e)continue;const _0x42ee91=_0x44dda3[_0x4f111d(0xed)](_0x15738e)??'string';let _0x38a851;if(_0x42ee91===_0x4f111d(0xef)){const _0x543edf=Number(_0x3be772);if(isNaN(_0x543edf)||_0x3be772==='')continue;_0x38a851=_0x543edf;}else{if(_0x42ee91===_0x4f111d(0xe4))continue;else{if(_0x3be772==='')continue;_0x38a851=_0x3be772;}}_0x3708b1[_0x4f111d(0xfd)]({'original':_0x2b5287,'corrected':_0x15738e+'='+_0x38a851,'handler':_0x4f111d(0xda)});break;}}return _0x3708b1;}export function correctFlags(_0xf11599,_0xc58684){const _0x5f542e=a84_0x45ec,_0x437eb3=buildKnownFlags(_0xc58684),_0x3c67c0=buildFlagTypeMap(_0xc58684),_0x4a9f3a=aliasHandler(_0xf11599,_0x437eb3),_0x56254f=stickyHandler(_0xf11599,_0x437eb3,_0x3c67c0),_0x15d035=[..._0x4a9f3a,..._0x56254f];if(_0x15d035[_0x5f542e(0xf8)]===0x0)return{'flags':_0xf11599,'corrections':[]};const _0x1cc8f2={..._0xf11599},_0x1f227d=new Set();for(const _0x2c2166 of _0x4a9f3a){_0x1cc8f2[_0x2c2166['corrected']]=_0xf11599[_0x2c2166[_0x5f542e(0xe6)]],_0x1f227d['add'](_0x2c2166['original']);}for(const _0x1bf36e of _0x56254f){const _0x2072c6=_0x1bf36e['corrected'][_0x5f542e(0xea)]('='),_0x2a1882=_0x1bf36e[_0x5f542e(0xf4)]['slice'](0x0,_0x2072c6),_0x2dfb82=_0x1bf36e[_0x5f542e(0xf4)]['slice'](_0x2072c6+0x1),_0x27e22b=_0x3c67c0[_0x5f542e(0xed)](_0x2a1882)??_0x5f542e(0xd8);_0x27e22b===_0x5f542e(0xef)?_0x1cc8f2[_0x2a1882]=Number(_0x2dfb82):_0x1cc8f2[_0x2a1882]=_0x2dfb82,_0x1f227d['add'](_0x1bf36e['original']);}for(const _0x593489 of _0x1f227d){delete _0x1cc8f2[_0x593489];}return{'flags':_0x1cc8f2,'corrections':_0x15d035};}
1
+ (function(_0xfe399e,_0x1f590e){const _0x431c5f=a84_0x25fc,_0x104ba5=_0xfe399e();while(!![]){try{const _0x23edf0=-parseInt(_0x431c5f(0x14a))/0x1+parseInt(_0x431c5f(0x136))/0x2*(parseInt(_0x431c5f(0x13a))/0x3)+parseInt(_0x431c5f(0x12d))/0x4+-parseInt(_0x431c5f(0x134))/0x5+parseInt(_0x431c5f(0x141))/0x6+parseInt(_0x431c5f(0x139))/0x7+parseInt(_0x431c5f(0x12f))/0x8*(-parseInt(_0x431c5f(0x138))/0x9);if(_0x23edf0===_0x1f590e)break;else _0x104ba5['push'](_0x104ba5['shift']());}catch(_0x1626ec){_0x104ba5['push'](_0x104ba5['shift']());}}}(a84_0x3803,0xd9ae3));function toKebab(_0x1fd087){const _0x40ce08=a84_0x25fc;return _0x1fd087['replace'](/_/g,'-')[_0x40ce08(0x12e)](/-([A-Z]+)/g,(_0x1d1174,_0x152376)=>'-'+_0x152376['toLowerCase']())[_0x40ce08(0x12e)](/([a-z0-9])([A-Z])/g,(_0x30d20b,_0x1fdecb,_0x1f6bf)=>_0x1fdecb+'-'+_0x1f6bf)[_0x40ce08(0x13e)]();}function buildKnownFlags(_0x473e04){const _0x1a000a=a84_0x25fc,_0x1174f4=new Set();for(const _0x838d44 of _0x473e04){_0x1174f4[_0x1a000a(0x140)](_0x838d44[_0x1a000a(0x135)]),_0x1174f4[_0x1a000a(0x140)](toCamelCase(_0x838d44['name']));}for(const _0x336570 of[_0x1a000a(0x127),_0x1a000a(0x14b),_0x1a000a(0x131),_0x1a000a(0x124)]){_0x1174f4[_0x1a000a(0x140)](_0x336570);}for(const _0x3d9196 of[_0x1a000a(0x13c),_0x1a000a(0x13d),_0x1a000a(0x123),_0x1a000a(0x12c),'nonInteractive',_0x1a000a(0x126),'ci',_0x1a000a(0x12b),_0x1a000a(0x13b)]){_0x1174f4[_0x1a000a(0x140)](_0x3d9196);}return _0x1174f4;}function buildFlagTypeMap(_0xb693fa){const _0x1d5c6d=a84_0x25fc,_0xf342a2=new Map();for(const _0x29b04d of _0xb693fa){_0xf342a2['set'](_0x29b04d[_0x1d5c6d(0x135)],_0x29b04d[_0x1d5c6d(0x145)]),_0xf342a2[_0x1d5c6d(0x144)](toCamelCase(_0x29b04d[_0x1d5c6d(0x135)]),_0x29b04d[_0x1d5c6d(0x145)]);}return _0xf342a2;}function toCamelCase(_0x37b2a4){return _0x37b2a4['replace'](/-([a-z])/g,(_0x127230,_0x4763d0)=>_0x4763d0['toUpperCase']());}function aliasHandler(_0x3b3f83,_0x2d15b7){const _0x344844=a84_0x25fc,_0x572a32=[];for(const _0x3bed05 of Object[_0x344844(0x128)](_0x3b3f83)){if(_0x2d15b7[_0x344844(0x147)](_0x3bed05))continue;const _0x1e0642=toKebab(_0x3bed05);_0x1e0642!==_0x3bed05&&_0x2d15b7[_0x344844(0x147)](_0x1e0642)&&_0x572a32['push']({'original':_0x3bed05,'corrected':_0x1e0642,'handler':_0x344844(0x130)});}return _0x572a32;}function a84_0x3803(){const _0x5e4f4e=['sticky','4348310DBaQJV','name','141566wqptqC','original','4527VIuzgy','3417596BwfUHM','9SBqReI','version','help','env','toLowerCase','entries','add','8008254cXyVhi','string','boolean','set','type','length','has','slice','push','1540777KZAmAJ','dryRun','appcode','format','indexOf','non-interactive','dry-run','keys','get','corrected','global','app','6248132YZjbbb','replace','4696YRgskG','alias','yes','number'];a84_0x3803=function(){return _0x5e4f4e;};return a84_0x3803();}function stickyHandler(_0x2ff354,_0xd710ec,_0x8cfb11){const _0x1b18b3=a84_0x25fc,_0x206359=[];for(const [_0x399782,_0x1fa2ee]of Object[_0x1b18b3(0x13f)](_0x2ff354)){if(_0x1fa2ee!==!![])continue;for(let _0x114e7d=_0x399782[_0x1b18b3(0x146)]-0x1;_0x114e7d>0x0;_0x114e7d--){const _0x27074f=_0x399782[_0x1b18b3(0x148)](0x0,_0x114e7d),_0x45a23b=_0x399782[_0x1b18b3(0x148)](_0x114e7d),_0x1c96ae=toKebab(_0x27074f),_0x2c25bd=toCamelCase(_0x27074f),_0x1dcc4e=_0xd710ec[_0x1b18b3(0x147)](_0x27074f)?_0x27074f:_0xd710ec[_0x1b18b3(0x147)](_0x1c96ae)?_0x1c96ae:_0xd710ec[_0x1b18b3(0x147)](_0x2c25bd)?_0x2c25bd:null;if(!_0x1dcc4e)continue;const _0x56f490=_0x8cfb11['get'](_0x1dcc4e)??_0x1b18b3(0x142);let _0x4c70f6;if(_0x56f490==='number'){const _0x22714e=Number(_0x45a23b);if(isNaN(_0x22714e)||_0x45a23b==='')continue;_0x4c70f6=_0x22714e;}else{if(_0x56f490===_0x1b18b3(0x143))continue;else{if(_0x45a23b==='')continue;_0x4c70f6=_0x45a23b;}}_0x206359[_0x1b18b3(0x149)]({'original':_0x399782,'corrected':_0x1dcc4e+'='+_0x4c70f6,'handler':_0x1b18b3(0x133)});break;}}return _0x206359;}function a84_0x25fc(_0x31c08c,_0x2afe55){_0x31c08c=_0x31c08c-0x123;const _0x3803ba=a84_0x3803();let _0x25fc9a=_0x3803ba[_0x31c08c];return _0x25fc9a;}export function correctFlags(_0x55fd98,_0x3eef77){const _0x5fb743=a84_0x25fc,_0x533f59=buildKnownFlags(_0x3eef77),_0x4d7c7b=buildFlagTypeMap(_0x3eef77),_0x5c162a=aliasHandler(_0x55fd98,_0x533f59),_0x62d2ac=stickyHandler(_0x55fd98,_0x533f59,_0x4d7c7b),_0x280413=[..._0x5c162a,..._0x62d2ac];if(_0x280413['length']===0x0)return{'flags':_0x55fd98,'corrections':[]};const _0x18371d={..._0x55fd98},_0x1fcdc4=new Set();for(const _0x2348c1 of _0x5c162a){_0x18371d[_0x2348c1[_0x5fb743(0x12a)]]=_0x55fd98[_0x2348c1[_0x5fb743(0x137)]],_0x1fcdc4['add'](_0x2348c1['original']);}for(const _0x18206a of _0x62d2ac){const _0x2539f2=_0x18206a[_0x5fb743(0x12a)][_0x5fb743(0x125)]('='),_0xa17d6=_0x18206a[_0x5fb743(0x12a)][_0x5fb743(0x148)](0x0,_0x2539f2),_0x3b2690=_0x18206a[_0x5fb743(0x12a)][_0x5fb743(0x148)](_0x2539f2+0x1),_0x218c90=_0x4d7c7b[_0x5fb743(0x129)](_0xa17d6)??'string';_0x218c90===_0x5fb743(0x132)?_0x18371d[_0xa17d6]=Number(_0x3b2690):_0x18371d[_0xa17d6]=_0x3b2690,_0x1fcdc4[_0x5fb743(0x140)](_0x18206a['original']);}for(const _0x1f27b4 of _0x1fcdc4){delete _0x18371d[_0x1f27b4];}return{'flags':_0x18371d,'corrections':_0x280413};}
@@ -1 +1 @@
1
- function a85_0x51bd(_0x439650,_0x23ae31){_0x439650=_0x439650-0x12e;var _0x3cccf5=a85_0x3ccc();var _0x51bd34=_0x3cccf5[_0x439650];return _0x51bd34;}(function(_0x5c3d1f,_0x50688a){var _0x10cfa8=a85_0x51bd,_0x31216e=_0x5c3d1f();while(!![]){try{var _0x36deab=-parseInt(_0x10cfa8(0x135))/0x1+parseInt(_0x10cfa8(0x131))/0x2+parseInt(_0x10cfa8(0x133))/0x3+parseInt(_0x10cfa8(0x132))/0x4*(-parseInt(_0x10cfa8(0x12e))/0x5)+-parseInt(_0x10cfa8(0x136))/0x6+parseInt(_0x10cfa8(0x134))/0x7*(-parseInt(_0x10cfa8(0x130))/0x8)+parseInt(_0x10cfa8(0x12f))/0x9;if(_0x36deab===_0x50688a)break;else _0x31216e['push'](_0x31216e['shift']());}catch(_0x1c1790){_0x31216e['push'](_0x31216e['shift']());}}}(a85_0x3ccc,0x75ce6));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a85_0x3ccc(){var _0xe26825=['266017uumKrh','3149790kYzLBE','515SzpWoA','16086384xuencn','4696ajDmyr','1908438kUtQsR','24712xuYLDP','269535tReWhd','10990wFmHWP'];a85_0x3ccc=function(){return _0xe26825;};return a85_0x3ccc();}
1
+ function a85_0x388e(_0x216638,_0x58cdbc){_0x216638=_0x216638-0x17e;var _0x9ddab2=a85_0x9dda();var _0x388ebd=_0x9ddab2[_0x216638];return _0x388ebd;}(function(_0xd514a0,_0x2e72c3){var _0x5f0e85=a85_0x388e,_0x3d4568=_0xd514a0();while(!![]){try{var _0x12fb38=-parseInt(_0x5f0e85(0x185))/0x1+-parseInt(_0x5f0e85(0x180))/0x2*(-parseInt(_0x5f0e85(0x186))/0x3)+parseInt(_0x5f0e85(0x187))/0x4+-parseInt(_0x5f0e85(0x183))/0x5+parseInt(_0x5f0e85(0x17f))/0x6+parseInt(_0x5f0e85(0x181))/0x7*(parseInt(_0x5f0e85(0x182))/0x8)+-parseInt(_0x5f0e85(0x17e))/0x9*(parseInt(_0x5f0e85(0x184))/0xa);if(_0x12fb38===_0x2e72c3)break;else _0x3d4568['push'](_0x3d4568['shift']());}catch(_0x34b2f2){_0x3d4568['push'](_0x3d4568['shift']());}}}(a85_0x9dda,0xb6628));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a85_0x9dda(){var _0x38d574=['7459422WfiUGB','368zuTOan','2859745YXUCeZ','8ntZNaE','4068725AhmkGM','10VKIrTK','111668WtJudQ','3114IRIvCd','5434740GmuVDR','13760892gpUwUa'];a85_0x9dda=function(){return _0x38d574;};return a85_0x9dda();}
@@ -1 +1 @@
1
- (function(_0xcac2ca,_0x13819a){const _0x973e0=a86_0x3788,_0xab7f54=_0xcac2ca();while(!![]){try{const _0x5bdb60=parseInt(_0x973e0(0x13c))/0x1+-parseInt(_0x973e0(0x150))/0x2+parseInt(_0x973e0(0x143))/0x3+parseInt(_0x973e0(0x13f))/0x4+-parseInt(_0x973e0(0x144))/0x5*(-parseInt(_0x973e0(0x145))/0x6)+-parseInt(_0x973e0(0x14c))/0x7+-parseInt(_0x973e0(0x142))/0x8*(parseInt(_0x973e0(0x148))/0x9);if(_0x5bdb60===_0x13819a)break;else _0xab7f54['push'](_0xab7f54['shift']());}catch(_0x8b5125){_0xab7f54['push'](_0xab7f54['shift']());}}}(a86_0x2859,0x7e583));function a86_0x2859(){const _0x282e5a=['service','3969768CziLKb','commandLabel','code','1696blHMHT','1216527dffnzF','4972165HAYjDO','6JCzgNZ','join','\x20\x20\x20Continue?\x20[y/N]\x20','39087GAoNtU','description','code=','\x20\x20\x20','5182695lzVXbz','affectedRecords','name','id=','757682hktgMC','push','stringify','name=','--yes','165065snQTPi','params'];a86_0x2859=function(){return _0x282e5a;};return a86_0x2859();}import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x2ef8d7,_0x3ccfca,_0x3edba7){const _0x573b81=a86_0x3788,_0x5d1113=buildConfirmationContext(_0x2ef8d7,_0x3ccfca,_0x3edba7),_0x20e541=['⚠\x20\x20High-risk\x20operation:\x20'+_0x5d1113[_0x573b81(0x140)]];return _0x5d1113[_0x573b81(0x149)]&&_0x20e541[_0x573b81(0x151)](_0x573b81(0x14b)+_0x5d1113[_0x573b81(0x149)]),_0x5d1113[_0x573b81(0x14d)]&&_0x20e541[_0x573b81(0x151)]('\x20\x20\x20Affected:\x20'+_0x5d1113['affectedRecords']),_0x20e541[_0x573b81(0x151)](_0x573b81(0x147)),_0x20e541;}export function reconstructCommandArgv(_0x5ad3ff,_0xe616f0){const _0x1f5cb9=a86_0x3788,_0x22c8bb=[CLI_BIN_NAME,_0x5ad3ff[_0x1f5cb9(0x13e)],_0x5ad3ff['command']];for(const [_0xa3c2ec,_0x1a593b]of Object['entries'](_0xe616f0)){if(_0x1a593b===!![])_0x22c8bb[_0x1f5cb9(0x151)]('--'+_0xa3c2ec);else _0x1a593b!==![]&&_0x1a593b!==undefined&&_0x1a593b!==''&&_0x22c8bb[_0x1f5cb9(0x151)]('--'+_0xa3c2ec+'\x20'+JSON[_0x1f5cb9(0x152)](_0x1a593b));}return _0x22c8bb[_0x1f5cb9(0x151)](_0x1f5cb9(0x13b)),_0x22c8bb['join']('\x20');}function buildConfirmationContext(_0x257a13,_0x687f3e,_0x4caee3){const _0x3567d8=a86_0x3788,_0x3ee8c0=extractAffectedRecords(_0x4caee3);return{'commandLabel':_0x687f3e,'description':_0x257a13[_0x3567d8(0x149)],'affectedRecords':_0x3ee8c0};}function a86_0x3788(_0x31ee0d,_0x29393f){_0x31ee0d=_0x31ee0d-0x13a;const _0x2859d2=a86_0x2859();let _0x3788c2=_0x2859d2[_0x31ee0d];return _0x3788c2;}function extractAffectedRecords(_0x3661da){const _0x27beb2=a86_0x3788,_0x54ad0a=[];if(_0x3661da[_0x27beb2(0x141)])_0x54ad0a[_0x27beb2(0x151)](_0x27beb2(0x14a)+_0x3661da[_0x27beb2(0x141)]);if(_0x3661da['id'])_0x54ad0a[_0x27beb2(0x151)](_0x27beb2(0x14f)+_0x3661da['id']);if(_0x3661da['name'])_0x54ad0a['push'](_0x27beb2(0x13a)+_0x3661da[_0x27beb2(0x14e)]);if(_0x3661da[_0x27beb2(0x13d)])_0x54ad0a[_0x27beb2(0x151)]('params='+_0x3661da[_0x27beb2(0x13d)]);return _0x54ad0a['length']>0x0?_0x54ad0a[_0x27beb2(0x146)](',\x20'):undefined;}
1
+ function a86_0x2f45(_0x5f19c2,_0x2003ac){_0x5f19c2=_0x5f19c2-0x18f;const _0x4930c3=a86_0x4930();let _0x2f45b5=_0x4930c3[_0x5f19c2];return _0x2f45b5;}(function(_0x1cfd92,_0x55e925){const _0x3d159c=a86_0x2f45,_0xd7c87a=_0x1cfd92();while(!![]){try{const _0x4c22fb=-parseInt(_0x3d159c(0x1a0))/0x1*(parseInt(_0x3d159c(0x19f))/0x2)+parseInt(_0x3d159c(0x1a8))/0x3*(-parseInt(_0x3d159c(0x1a6))/0x4)+parseInt(_0x3d159c(0x192))/0x5+-parseInt(_0x3d159c(0x190))/0x6*(parseInt(_0x3d159c(0x1ab))/0x7)+-parseInt(_0x3d159c(0x19a))/0x8*(parseInt(_0x3d159c(0x1a5))/0x9)+parseInt(_0x3d159c(0x1a9))/0xa*(-parseInt(_0x3d159c(0x1a4))/0xb)+parseInt(_0x3d159c(0x1aa))/0xc;if(_0x4c22fb===_0x55e925)break;else _0xd7c87a['push'](_0xd7c87a['shift']());}catch(_0x422c61){_0xd7c87a['push'](_0xd7c87a['shift']());}}}(a86_0x4930,0x75206));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x45ae8a,_0x2cfd02,_0x4bfa59){const _0x320af8=a86_0x2f45,_0x257eb9=buildConfirmationContext(_0x45ae8a,_0x2cfd02,_0x4bfa59),_0x77b45d=[_0x320af8(0x1a3)+_0x257eb9[_0x320af8(0x196)]];return _0x257eb9[_0x320af8(0x197)]&&_0x77b45d[_0x320af8(0x1a1)](_0x320af8(0x1a2)+_0x257eb9[_0x320af8(0x197)]),_0x257eb9[_0x320af8(0x194)]&&_0x77b45d[_0x320af8(0x1a1)](_0x320af8(0x198)+_0x257eb9[_0x320af8(0x194)]),_0x77b45d[_0x320af8(0x1a1)](_0x320af8(0x1a7)),_0x77b45d;}export function reconstructCommandArgv(_0x106af1,_0x4ec2f9){const _0x51dcd7=a86_0x2f45,_0x54f451=[CLI_BIN_NAME,_0x106af1[_0x51dcd7(0x193)],_0x106af1[_0x51dcd7(0x199)]];for(const [_0x52ba66,_0x22feba]of Object[_0x51dcd7(0x19d)](_0x4ec2f9)){if(_0x22feba===!![])_0x54f451[_0x51dcd7(0x1a1)]('--'+_0x52ba66);else _0x22feba!==![]&&_0x22feba!==undefined&&_0x22feba!==''&&_0x54f451[_0x51dcd7(0x1a1)]('--'+_0x52ba66+'\x20'+JSON[_0x51dcd7(0x1ac)](_0x22feba));}return _0x54f451[_0x51dcd7(0x1a1)]('--yes'),_0x54f451[_0x51dcd7(0x191)]('\x20');}function buildConfirmationContext(_0x422196,_0x4850d0,_0x1b7048){const _0x1c88f2=a86_0x2f45,_0x397684=extractAffectedRecords(_0x1b7048);return{'commandLabel':_0x4850d0,'description':_0x422196[_0x1c88f2(0x197)],'affectedRecords':_0x397684};}function a86_0x4930(){const _0x141025=['\x20\x20\x20','⚠\x20\x20High-risk\x20operation:\x20','241758cZtuLv','31932uWLmZN','2213976QLeOcN','\x20\x20\x20Continue?\x20[y/N]\x20','3PYeIUE','140cVBGKu','26338308ViOjSA','610554lqpyUV','stringify','length','12onwnah','join','3321355OiLBqP','service','affectedRecords','code=','commandLabel','description','\x20\x20\x20Affected:\x20','command','1336tWboYM','id=','name','entries','code','4TnzlCX','375617hixZQN','push'];a86_0x4930=function(){return _0x141025;};return a86_0x4930();}function extractAffectedRecords(_0x32df5b){const _0x476af1=a86_0x2f45,_0x3c1701=[];if(_0x32df5b['code'])_0x3c1701[_0x476af1(0x1a1)](_0x476af1(0x195)+_0x32df5b[_0x476af1(0x19e)]);if(_0x32df5b['id'])_0x3c1701[_0x476af1(0x1a1)](_0x476af1(0x19b)+_0x32df5b['id']);if(_0x32df5b[_0x476af1(0x19c)])_0x3c1701[_0x476af1(0x1a1)]('name='+_0x32df5b[_0x476af1(0x19c)]);if(_0x32df5b['params'])_0x3c1701[_0x476af1(0x1a1)]('params='+_0x32df5b['params']);return _0x3c1701[_0x476af1(0x18f)]>0x0?_0x3c1701[_0x476af1(0x191)](',\x20'):undefined;}
@@ -1 +1 @@
1
- (function(_0x211f05,_0x27e6f4){const _0x25b059=a87_0x3fc0,_0x2fdc37=_0x211f05();while(!![]){try{const _0x1d27cd=-parseInt(_0x25b059(0x1d9))/0x1*(parseInt(_0x25b059(0x1e4))/0x2)+parseInt(_0x25b059(0x1d6))/0x3*(-parseInt(_0x25b059(0x1d8))/0x4)+-parseInt(_0x25b059(0x1e0))/0x5*(parseInt(_0x25b059(0x1e3))/0x6)+parseInt(_0x25b059(0x1d5))/0x7*(parseInt(_0x25b059(0x1e1))/0x8)+parseInt(_0x25b059(0x1df))/0x9*(-parseInt(_0x25b059(0x1db))/0xa)+parseInt(_0x25b059(0x1da))/0xb+parseInt(_0x25b059(0x1dd))/0xc;if(_0x1d27cd===_0x27e6f4)break;else _0x2fdc37['push'](_0x2fdc37['shift']());}catch(_0x2e612b){_0x2fdc37['push'](_0x2fdc37['shift']());}}}(a87_0x52f5,0xc09a9));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x3bbdb8){const _0x4bd0ac=a87_0x3fc0;if(_0x3bbdb8 instanceof LovrabetError)return CliErrors[_0x4bd0ac(0x1d3)](userFacingLovrabetMessage(_0x3bbdb8));return _0x3bbdb8;}function a87_0x3fc0(_0x1b55cf,_0x43c6a3){_0x1b55cf=_0x1b55cf-0x1d3;const _0x52f5e4=a87_0x52f5();let _0x3fc0a0=_0x52f5e4[_0x1b55cf];return _0x3fc0a0;}function a87_0x52f5(){const _0x4800d6=['message','258020sWQuud','70467SySpbG','string','100OTSSvq','949423GyEKad','2469775EvjqbN','10NEJRtK','trim','22281876xYdNZh','stringify','1003473TVqOAb','28470mbCQwf','160rvMzGM','description','402AEkpBQ','2IwnMOJ','validation'];a87_0x52f5=function(){return _0x4800d6;};return a87_0x52f5();}function userFacingLovrabetMessage(_0x3ef53c){const _0x2d4a7c=a87_0x3fc0,_0x3421e9=_0x3ef53c[_0x2d4a7c(0x1e2)];if(_0x3421e9!==undefined&&_0x3421e9!==null){if(typeof _0x3421e9===_0x2d4a7c(0x1d7)&&_0x3421e9[_0x2d4a7c(0x1dc)]())return _0x3421e9[_0x2d4a7c(0x1dc)]();try{return JSON[_0x2d4a7c(0x1de)](_0x3421e9);}catch{}}return _0x3ef53c[_0x2d4a7c(0x1d4)];}
1
+ function a87_0x11d3(_0x263fe2,_0x126385){_0x263fe2=_0x263fe2-0x124;const _0x5595bf=a87_0x5595();let _0x11d37e=_0x5595bf[_0x263fe2];return _0x11d37e;}(function(_0x2efca7,_0x2e0444){const _0x384b3c=a87_0x11d3,_0x40ee46=_0x2efca7();while(!![]){try{const _0x347c97=parseInt(_0x384b3c(0x133))/0x1+-parseInt(_0x384b3c(0x12b))/0x2*(-parseInt(_0x384b3c(0x12e))/0x3)+-parseInt(_0x384b3c(0x134))/0x4+-parseInt(_0x384b3c(0x125))/0x5*(-parseInt(_0x384b3c(0x132))/0x6)+-parseInt(_0x384b3c(0x130))/0x7*(-parseInt(_0x384b3c(0x127))/0x8)+parseInt(_0x384b3c(0x12a))/0x9*(-parseInt(_0x384b3c(0x131))/0xa)+-parseInt(_0x384b3c(0x124))/0xb;if(_0x347c97===_0x2e0444)break;else _0x40ee46['push'](_0x40ee46['shift']());}catch(_0x150739){_0x40ee46['push'](_0x40ee46['shift']());}}}(a87_0x5595,0x2211b));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';export function mapUserFacingExecuteError(_0x1d0f08){const _0x277530=a87_0x11d3;if(_0x1d0f08 instanceof LovrabetError)return CliErrors[_0x277530(0x129)](userFacingLovrabetMessage(_0x1d0f08));return _0x1d0f08;}function a87_0x5595(){const _0x11dbf5=['150biPGAl','214460mvDGXs','287856gDwGbg','2576112vilDCt','230RHUxXg','trim','664zZErcR','string','validation','45xfyzeh','36818lnIRgX','message','stringify','12feSQGE','description','19348TFbdxh','145910KxqKXh'];a87_0x5595=function(){return _0x11dbf5;};return a87_0x5595();}function userFacingLovrabetMessage(_0x3814fc){const _0x1215ac=a87_0x11d3,_0x34265e=_0x3814fc[_0x1215ac(0x12f)];if(_0x34265e!==undefined&&_0x34265e!==null){if(typeof _0x34265e===_0x1215ac(0x128)&&_0x34265e[_0x1215ac(0x126)]())return _0x34265e[_0x1215ac(0x126)]();try{return JSON[_0x1215ac(0x12d)](_0x34265e);}catch{}}return _0x3814fc[_0x1215ac(0x12c)];}
@@ -1 +1 @@
1
- const a88_0x17d848=a88_0x2a7c;(function(_0x44e6a4,_0x2d192b){const _0xf9f2d=a88_0x2a7c,_0x554af2=_0x44e6a4();while(!![]){try{const _0x1ea9a7=parseInt(_0xf9f2d(0x14d))/0x1*(parseInt(_0xf9f2d(0x135))/0x2)+parseInt(_0xf9f2d(0x150))/0x3*(parseInt(_0xf9f2d(0x12b))/0x4)+parseInt(_0xf9f2d(0x153))/0x5*(-parseInt(_0xf9f2d(0x12e))/0x6)+parseInt(_0xf9f2d(0x14b))/0x7+-parseInt(_0xf9f2d(0x128))/0x8*(parseInt(_0xf9f2d(0x125))/0x9)+parseInt(_0xf9f2d(0x139))/0xa*(parseInt(_0xf9f2d(0x147))/0xb)+-parseInt(_0xf9f2d(0x14f))/0xc;if(_0x1ea9a7===_0x2d192b)break;else _0x554af2['push'](_0x554af2['shift']());}catch(_0x3165a9){_0x554af2['push'](_0x554af2['shift']());}}}(a88_0x5ab7,0xc9e58));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a88_0x5ab7(){const _0x2c75fa=['1115901lkZGOT','app','pageSize','40XZfjrZ','appcode','../core/api-client.js','8LOBdXL','env','authRequired','1614162FELKAu','items','../commands/app/remote-source.js','execute','pretty','mergedCli','nonInteractive','2CFVrtd','format','newConfigFileName','\x20\x20To\x20proceed:\x20','10EuPFXU','currentApp','defaultPageSize','includes','accessKey','name','string','isNonInteractive','ACCESS_KEY','verbose','has','production','Unknown\x20app:\x20','validation','8756737NbgdVO','apiDomain','local-alias','cancelled','10463684QdJWzW','rawFlags','659641rTuSlu','APPCODE','12769080mgOFec','1358427CplwjP','object','riskLevel','25TCtXmy','trim','filter','ClientAk','_notice','doctor','\x20or\x20pass\x20','requiresAppCode','defaultApp','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','requiresAuth','appCodeSource','defaultVerbose','appCode','catch','schema','service'];a88_0x5ab7=function(){return _0x2c75fa;};return a88_0x5ab7();}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a88_0x2a7c(_0x47be6c,_0x1e64a9){_0x47be6c=_0x47be6c-0x121;const _0x5ab7be=a88_0x5ab7();let _0x2a7cc1=_0x5ab7be[_0x47be6c];return _0x2a7cc1;}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.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';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x4727da){const _0x183925=a88_0x2a7c;return void _0x4727da,AUTH_MODE[_0x183925(0x156)];}export function createPipelineEnv(_0x439e58,_0x4990ed){const _0x192d3c=a88_0x2a7c,_0x2371c9=typeof _0x4990ed[_0x192d3c(0x126)]===_0x192d3c(0x13f)&&_0x4990ed[_0x192d3c(0x126)]['trim']();return{'rawFlags':_0x4990ed,'appCode':_0x439e58['appCode']||productEnv(_0x192d3c(0x14e))||(_0x2371c9?undefined:readAppCodeFromConfig()),'appCodeSource':_0x439e58[_0x192d3c(0x15e)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x4990ed),'defaultFormat':_0x439e58[_0x192d3c(0x136)],'defaultPageSize':_0x439e58[_0x192d3c(0x127)],'defaultVerbose':_0x439e58[_0x192d3c(0x142)],'riskLevel':_0x439e58[_0x192d3c(0x152)],'accessKey':_0x439e58[_0x192d3c(0x13d)],'env':_0x439e58[_0x192d3c(0x12c)],'mergedCli':{'defaultApp':_0x439e58[_0x192d3c(0x15b)],'currentApp':_0x439e58[_0x192d3c(0x13a)],'appCode':_0x439e58[_0x192d3c(0x121)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a88_0x17d848(0x155)](_0x32aa0e=>PIPELINE_FLAG_NAMES[a88_0x17d848(0x143)](_0x32aa0e[a88_0x17d848(0x13e)]))['map'](({name:_0x3f7db5,type:_0x40af4d,description:_0x315c1b})=>({'name':_0x3f7db5,'type':_0x40af4d,'description':_0x315c1b})),'formatOutput':formatOutput,'getCommandLabel'(_0x2d9e01){return CLI_BIN_NAME+'\x20'+_0x2d9e01['service']+'\x20'+_0x2d9e01['command'];},'riskPolicy':{'onViolation'(_0x56352d){console['error'](_0x56352d);},'createError'(_0x3b97f5){return CliErrors['cancelled'](_0x3b97f5);}},async 'prepare'(_0x3abe5a,_0x2b27c1){const _0x8bbefe=a88_0x17d848,_0x136db2=resolveAuthMode(_0x2b27c1);if(_0x3abe5a[_0x8bbefe(0x15d)]!==![]){if(!_0x2b27c1[_0x8bbefe(0x13d)])throw CliErrors[_0x8bbefe(0x12d)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x8bbefe(0x137)]+_0x8bbefe(0x159)+productEnvName(_0x8bbefe(0x141))+'.');const {setActiveAK:_0x42c359}=await import('../core/api-client.js');_0x42c359(_0x2b27c1[_0x8bbefe(0x13d)]);}let _0x7be541='';if(_0x3abe5a[_0x8bbefe(0x15a)]!==![]){_0x7be541=_0x2b27c1['appCode']??'',_0x7be541=await resolveExplicitAppName(_0x3abe5a,_0x2b27c1,_0x7be541);if(!_0x7be541){await assertSelectedAppNameIsRuntimeAccessible(_0x3abe5a,_0x2b27c1);throw CliErrors['configMissing'](_0x8bbefe(0x15c)+PRODUCT_CONFIG[_0x8bbefe(0x137)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x3abe5a,_0x2b27c1,_0x7be541);}if(_0x7be541){const {initSdkClient:_0x3bdc66}=await import('../core/sdk-client.js');_0x3bdc66({'appCode':_0x7be541,'env':_0x2b27c1[_0x8bbefe(0x12c)]??_0x8bbefe(0x144),'accessKey':_0x2b27c1[_0x8bbefe(0x13d)],'authMode':_0x136db2});}return{'defaults':{'booleans':{'verbose':_0x2b27c1[_0x8bbefe(0x15f)]},'numbers':{'pagesize':_0x2b27c1[_0x8bbefe(0x13b)]}},'extras':{'appCode':_0x7be541,'cookie':'','apiDomain':_0x2b27c1[_0x8bbefe(0x148)],'apiDir':'','accessKey':_0x2b27c1[_0x8bbefe(0x13d)],'envName':_0x2b27c1['env'],'mergedCli':_0x2b27c1[_0x8bbefe(0x133)]}};},async 'confirmHighRisk'({def:_0xc6777d,env:_0x2c1e1f,flags:_0x3ba064,commandLabel:_0x235854}){const _0xb13b18=a88_0x17d848;if(_0x2c1e1f[_0xb13b18(0x140)]){const _0x333e78=reconstructCommandArgv(_0xc6777d,_0x3ba064);throw CliErrors[_0xb13b18(0x146)]('High-risk\x20operation\x20`'+_0x235854+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0xb13b18(0x138)+_0x333e78));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xc6777d,_0x235854,_0x3ba064),'createCancelledError':_0x57583c=>CliErrors[_0xb13b18(0x14a)](_0x57583c)});},'mapDryRunError'(_0x4f949f){return mapUserFacingExecuteError(_0x4f949f);},'mapExecuteError'(_0x301407){return mapUserFacingExecuteError(_0x301407);},async 'finalize'(){const _0x24b04b=a88_0x17d848,{clearActiveAK:_0xc08407}=await import(_0x24b04b(0x12a));_0xc08407();}};async function resolveExplicitAppName(_0x44f5b4,_0x4ffa9a,_0xe2a6e8){const _0x3c0192=a88_0x17d848;if(_0x44f5b4[_0x3c0192(0x15a)]===![])return _0xe2a6e8;const _0x22ade0=typeof _0x4ffa9a['rawFlags'][_0x3c0192(0x126)]===_0x3c0192(0x13f)?_0x4ffa9a[_0x3c0192(0x14c)]['app'][_0x3c0192(0x154)]():'';if(!_0x22ade0)return _0xe2a6e8;const _0x2289af=typeof _0x4ffa9a[_0x3c0192(0x14c)][_0x3c0192(0x129)]==='string'&&_0x4ffa9a[_0x3c0192(0x14c)][_0x3c0192(0x129)][_0x3c0192(0x154)]()||productEnv(_0x3c0192(0x14e));if(_0x2289af||_0x4ffa9a[_0x3c0192(0x15e)]===_0x3c0192(0x149))return _0xe2a6e8;const {getRemoteAppList:_0x3bee1a}=await import(_0x3c0192(0x130)),_0x7908a3=await _0x3bee1a({'env':_0x4ffa9a['env']??_0x3c0192(0x144),'accessKey':_0x4ffa9a[_0x3c0192(0x13d)]}),_0x4b0e3c=findAppByName(_0x7908a3[_0x3c0192(0x12f)],_0x22ade0);if(_0x4b0e3c&&!isRuntimeAccessibleApp(_0x4b0e3c))throw runtimeInaccessibleAppError(_0x4b0e3c,'\x22'+_0x22ade0+'\x22');const _0x134c5c=_0x4b0e3c?.['appCode']?.[_0x3c0192(0x154)]();if(_0x134c5c)return _0x134c5c;throw CliErrors[_0x3c0192(0x146)](_0x3c0192(0x145)+_0x22ade0,'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x22ade0+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x3c0192(0x137)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xbda7e6,_0x145571){const _0x143197=a88_0x17d848;if(_0xbda7e6[_0x143197(0x15a)]===![]||!_0x145571[_0x143197(0x13d)])return;const _0x1f0a4b=(typeof _0x145571[_0x143197(0x14c)][_0x143197(0x126)]===_0x143197(0x13f)&&_0x145571[_0x143197(0x14c)][_0x143197(0x126)]['trim']()?_0x145571[_0x143197(0x14c)][_0x143197(0x126)]:_0x145571[_0x143197(0x133)]?.[_0x143197(0x13a)]??_0x145571[_0x143197(0x133)]?.[_0x143197(0x15b)])?.['trim']();if(!_0x1f0a4b)return;const {getRemoteAppList:_0x3192c0}=await import(_0x143197(0x130)),_0x30480d=await _0x3192c0({'env':_0x145571['env']??_0x143197(0x144),'accessKey':_0x145571[_0x143197(0x13d)]}),_0x1f620e=findAppByName(_0x30480d['items'],_0x1f0a4b);if(_0x1f620e&&!isRuntimeAccessibleApp(_0x1f620e))throw runtimeInaccessibleAppError(_0x1f620e,'\x22'+_0x1f0a4b+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x42569b,_0x46bb10,_0xa683d6){const _0x224964=a88_0x17d848;if(_0x42569b[_0x224964(0x15a)]===![]||!_0x46bb10[_0x224964(0x13d)])return;const {getRemoteAppList:_0x2447af}=await import(_0x224964(0x130)),_0x49702f=await _0x2447af({'env':_0x46bb10[_0x224964(0x12c)]??'production','accessKey':_0x46bb10['accessKey']}),_0x4d1d80=findAppByCode(_0x49702f[_0x224964(0x12f)],_0xa683d6);if(_0x4d1d80&&!isRuntimeAccessibleApp(_0x4d1d80))throw runtimeInaccessibleAppError(_0x4d1d80,'appcode\x20\x22'+_0xa683d6+'\x22');}export async function runCommand(_0x2453e4,_0x1a7c6e){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2453e4)?withUpdateNotice(_0x2453e4):_0x2453e4,_0x1a7c6e,runnerAdapter);}function shouldAttachUpdateNotice(_0x28e010){const _0x4da613=a88_0x17d848;return!['update',_0x4da613(0x123),_0x4da613(0x158)][_0x4da613(0x13c)](_0x28e010[_0x4da613(0x124)]);}function withUpdateNotice(_0x3f1d22){return{..._0x3f1d22,async 'execute'(_0x22c3cf){const _0x3039a=a88_0x2a7c,_0x236bdc=shouldResolveUpdateNotice(_0x22c3cf)?resolveLatestUpdateNotice()[_0x3039a(0x122)](()=>null):Promise['resolve'](null),_0x3fa06f=await _0x3f1d22[_0x3039a(0x131)](_0x22c3cf);return attachUpdateNotice(_0x3fa06f,await _0x236bdc);}};}function shouldResolveUpdateNotice(_0x1ecf78){const _0x5896f7=a88_0x17d848;return _0x1ecf78['format']===_0x5896f7(0x132)&&!_0x1ecf78[_0x5896f7(0x134)];}function attachUpdateNotice(_0x5cd2cb,_0x3acad3){const _0x13c6b4=a88_0x17d848;if(!_0x3acad3||!_0x5cd2cb||typeof _0x5cd2cb!=='object')return _0x5cd2cb;const _0x321704=_0x5cd2cb,_0x3648ec=typeof _0x321704[_0x13c6b4(0x157)]===_0x13c6b4(0x151)&&_0x321704[_0x13c6b4(0x157)]!==null?_0x321704[_0x13c6b4(0x157)]:{};return{..._0x321704,'_notice':{..._0x3648ec,'update':_0x3acad3}};}
1
+ const a88_0x492026=a88_0x4c65;(function(_0x69df70,_0x14f573){const _0x4090f5=a88_0x4c65,_0x381311=_0x69df70();while(!![]){try{const _0x1f3c16=parseInt(_0x4090f5(0x13e))/0x1*(-parseInt(_0x4090f5(0x16a))/0x2)+parseInt(_0x4090f5(0x15b))/0x3*(parseInt(_0x4090f5(0x13b))/0x4)+-parseInt(_0x4090f5(0x151))/0x5+-parseInt(_0x4090f5(0x152))/0x6+-parseInt(_0x4090f5(0x131))/0x7*(parseInt(_0x4090f5(0x130))/0x8)+parseInt(_0x4090f5(0x170))/0x9+-parseInt(_0x4090f5(0x149))/0xa*(-parseInt(_0x4090f5(0x15d))/0xb);if(_0x1f3c16===_0x14f573)break;else _0x381311['push'](_0x381311['shift']());}catch(_0x4f32aa){_0x381311['push'](_0x381311['shift']());}}}(a88_0x55bc,0x5e9a0));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a88_0x55bc(){const _0x2ea959=['doctor','currentApp','ClientAk','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','requiresAppCode','90365LzKWHs','564414kmhseh','error','appcode','trim','items','newConfigFileName','Set\x20accessKey\x20in\x20','format','High-risk\x20operation\x20`','3zvGJUW','string','67001gGkprT','../commands/app/remote-source.js','Unknown\x20app:\x20','schema','local-alias','../core/sdk-client.js','APPCODE','service','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','defaultPageSize','object','.appcode\x20to\x20','nonInteractive','2PTeANj','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','env','defaultApp','_notice','has','6965676gSiPxa','appcode\x20\x22','161464zZdBFx','119lmSXqx','name','ACCESS_KEY','app','mergedCli','production','map','requiresAuth','pageSize','../core/api-client.js','216540zAjhdH','catch','cancelled','3631uNIzbn','apiDomain','rawFlags','appCode','update','configMissing','validation','Run\x20`','accessKey','defaultVerbose','appCodeSource','30ynVfgK','\x20\x20To\x20proceed:\x20','\x20or\x20pass\x20'];a88_0x55bc=function(){return _0x2ea959;};return a88_0x55bc();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain}from'../constant/domain.js';function a88_0x4c65(_0x55205,_0x2c87b5){_0x55205=_0x55205-0x12f;const _0x55bc10=a88_0x55bc();let _0x4c655a=_0x55bc10[_0x55205];return _0x4c655a;}import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x650826){const _0x219d8b=a88_0x4c65;return void _0x650826,AUTH_MODE[_0x219d8b(0x14e)];}export function createPipelineEnv(_0x18e33e,_0x87a6bc){const _0x3805e3=a88_0x4c65,_0x43e0ed=typeof _0x87a6bc['app']==='string'&&_0x87a6bc[_0x3805e3(0x134)]['trim']();return{'rawFlags':_0x87a6bc,'appCode':_0x18e33e[_0x3805e3(0x141)]||productEnv('APPCODE')||(_0x43e0ed?undefined:readAppCodeFromConfig()),'appCodeSource':_0x18e33e[_0x3805e3(0x148)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x87a6bc),'defaultFormat':_0x18e33e[_0x3805e3(0x159)],'defaultPageSize':_0x18e33e[_0x3805e3(0x139)],'defaultVerbose':_0x18e33e['verbose'],'riskLevel':_0x18e33e['riskLevel'],'accessKey':_0x18e33e[_0x3805e3(0x146)],'env':_0x18e33e[_0x3805e3(0x16c)],'mergedCli':{'defaultApp':_0x18e33e['defaultApp'],'currentApp':_0x18e33e[_0x3805e3(0x14d)],'appCode':_0x18e33e[_0x3805e3(0x141)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x1ef777=>PIPELINE_FLAG_NAMES[a88_0x492026(0x16f)](_0x1ef777[a88_0x492026(0x132)]))[a88_0x492026(0x137)](({name:_0x500535,type:_0x202c3a,description:_0x376bf6})=>({'name':_0x500535,'type':_0x202c3a,'description':_0x376bf6})),'formatOutput':formatOutput,'getCommandLabel'(_0x3b1f04){const _0x11aa7e=a88_0x492026;return CLI_BIN_NAME+'\x20'+_0x3b1f04[_0x11aa7e(0x164)]+'\x20'+_0x3b1f04['command'];},'riskPolicy':{'onViolation'(_0x46f2c9){const _0x5c2c4e=a88_0x492026;console[_0x5c2c4e(0x153)](_0x46f2c9);},'createError'(_0x1a5fde){const _0x4b4acc=a88_0x492026;return CliErrors[_0x4b4acc(0x13d)](_0x1a5fde);}},async 'prepare'(_0x3b493c,_0x1f2d6e){const _0x14e202=a88_0x492026,_0x336ab6=resolveAuthMode(_0x1f2d6e);if(_0x3b493c[_0x14e202(0x138)]!==![]){if(!_0x1f2d6e['accessKey'])throw CliErrors['authRequired'](_0x14e202(0x158)+PRODUCT_CONFIG[_0x14e202(0x157)]+_0x14e202(0x14b)+productEnvName(_0x14e202(0x133))+'.');const {setActiveAK:_0x4a59a6}=await import(_0x14e202(0x13a));_0x4a59a6(_0x1f2d6e[_0x14e202(0x146)]);}let _0x123dbf='';if(_0x3b493c[_0x14e202(0x150)]!==![]){_0x123dbf=_0x1f2d6e[_0x14e202(0x141)]??'',_0x123dbf=await resolveExplicitAppName(_0x3b493c,_0x1f2d6e,_0x123dbf);if(!_0x123dbf){await assertSelectedAppNameIsRuntimeAccessible(_0x3b493c,_0x1f2d6e);throw CliErrors[_0x14e202(0x143)](_0x14e202(0x14f)+PRODUCT_CONFIG[_0x14e202(0x157)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x3b493c,_0x1f2d6e,_0x123dbf);}if(_0x123dbf){const {initSdkClient:_0x268fd5}=await import(_0x14e202(0x162));_0x268fd5({'appCode':_0x123dbf,'env':_0x1f2d6e['env']??_0x14e202(0x136),'accessKey':_0x1f2d6e['accessKey'],'authMode':_0x336ab6});}return{'defaults':{'booleans':{'verbose':_0x1f2d6e[_0x14e202(0x147)]},'numbers':{'pagesize':_0x1f2d6e[_0x14e202(0x166)]}},'extras':{'appCode':_0x123dbf,'cookie':'','apiDomain':_0x1f2d6e[_0x14e202(0x13f)],'apiDir':'','accessKey':_0x1f2d6e['accessKey'],'envName':_0x1f2d6e[_0x14e202(0x16c)],'mergedCli':_0x1f2d6e[_0x14e202(0x135)]}};},async 'confirmHighRisk'({def:_0x54d9f8,env:_0x2de1f1,flags:_0xf2c46e,commandLabel:_0xc7f7a1}){const _0x143e7a=a88_0x492026;if(_0x2de1f1['isNonInteractive']){const _0x4f9162=reconstructCommandArgv(_0x54d9f8,_0xf2c46e);throw CliErrors['validation'](_0x143e7a(0x15a)+_0xc7f7a1+_0x143e7a(0x16b)+(_0x143e7a(0x14a)+_0x4f9162));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x54d9f8,_0xc7f7a1,_0xf2c46e),'createCancelledError':_0x91ae82=>CliErrors['cancelled'](_0x91ae82)});},'mapDryRunError'(_0x3269f9){return mapUserFacingExecuteError(_0x3269f9);},'mapExecuteError'(_0x44d9b4){return mapUserFacingExecuteError(_0x44d9b4);},async 'finalize'(){const {clearActiveAK:_0x5b9f13}=await import('../core/api-client.js');_0x5b9f13();}};async function resolveExplicitAppName(_0x41219a,_0xe06cd,_0x575ded){const _0x4a168d=a88_0x492026;if(_0x41219a[_0x4a168d(0x150)]===![])return _0x575ded;const _0x1e180b=typeof _0xe06cd[_0x4a168d(0x140)][_0x4a168d(0x134)]==='string'?_0xe06cd[_0x4a168d(0x140)][_0x4a168d(0x134)][_0x4a168d(0x155)]():'';if(!_0x1e180b)return _0x575ded;const _0x28ce6f=typeof _0xe06cd[_0x4a168d(0x140)][_0x4a168d(0x154)]===_0x4a168d(0x15c)&&_0xe06cd[_0x4a168d(0x140)]['appcode'][_0x4a168d(0x155)]()||productEnv(_0x4a168d(0x163));if(_0x28ce6f||_0xe06cd[_0x4a168d(0x148)]===_0x4a168d(0x161))return _0x575ded;const {getRemoteAppList:_0x1f0a93}=await import(_0x4a168d(0x15e)),_0x5c8fc7=await _0x1f0a93({'env':_0xe06cd['env']??'production','accessKey':_0xe06cd['accessKey']}),_0x359ebc=findAppByName(_0x5c8fc7['items'],_0x1e180b);if(_0x359ebc&&!isRuntimeAccessibleApp(_0x359ebc))throw runtimeInaccessibleAppError(_0x359ebc,'\x22'+_0x1e180b+'\x22');const _0x2a1efd=_0x359ebc?.[_0x4a168d(0x141)]?.[_0x4a168d(0x155)]();if(_0x2a1efd)return _0x2a1efd;throw CliErrors[_0x4a168d(0x144)](_0x4a168d(0x15f)+_0x1e180b,_0x4a168d(0x145)+CLI_BIN_NAME+_0x4a168d(0x165)+_0x1e180b+_0x4a168d(0x168)+PRODUCT_CONFIG[_0x4a168d(0x157)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0xc8dd1f,_0x38cebe){const _0x558c12=a88_0x492026;if(_0xc8dd1f[_0x558c12(0x150)]===![]||!_0x38cebe['accessKey'])return;const _0x4a27e1=(typeof _0x38cebe['rawFlags']['app']===_0x558c12(0x15c)&&_0x38cebe[_0x558c12(0x140)][_0x558c12(0x134)][_0x558c12(0x155)]()?_0x38cebe[_0x558c12(0x140)][_0x558c12(0x134)]:_0x38cebe[_0x558c12(0x135)]?.[_0x558c12(0x14d)]??_0x38cebe[_0x558c12(0x135)]?.[_0x558c12(0x16d)])?.['trim']();if(!_0x4a27e1)return;const {getRemoteAppList:_0x4ec1ca}=await import(_0x558c12(0x15e)),_0x42c8b7=await _0x4ec1ca({'env':_0x38cebe[_0x558c12(0x16c)]??'production','accessKey':_0x38cebe[_0x558c12(0x146)]}),_0x45fc52=findAppByName(_0x42c8b7[_0x558c12(0x156)],_0x4a27e1);if(_0x45fc52&&!isRuntimeAccessibleApp(_0x45fc52))throw runtimeInaccessibleAppError(_0x45fc52,'\x22'+_0x4a27e1+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x11bc04,_0x3bc1a0,_0x75a17){const _0x5387a1=a88_0x492026;if(_0x11bc04[_0x5387a1(0x150)]===![]||!_0x3bc1a0[_0x5387a1(0x146)])return;const {getRemoteAppList:_0x4f8282}=await import(_0x5387a1(0x15e)),_0x459f3e=await _0x4f8282({'env':_0x3bc1a0[_0x5387a1(0x16c)]??_0x5387a1(0x136),'accessKey':_0x3bc1a0[_0x5387a1(0x146)]}),_0x122c1b=findAppByCode(_0x459f3e['items'],_0x75a17);if(_0x122c1b&&!isRuntimeAccessibleApp(_0x122c1b))throw runtimeInaccessibleAppError(_0x122c1b,_0x5387a1(0x12f)+_0x75a17+'\x22');}export async function runCommand(_0x21466f,_0x693ad7){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x21466f)?withUpdateNotice(_0x21466f):_0x21466f,_0x693ad7,runnerAdapter);}function shouldAttachUpdateNotice(_0x309504){const _0x33e237=a88_0x492026;return![_0x33e237(0x142),_0x33e237(0x160),_0x33e237(0x14c)]['includes'](_0x309504[_0x33e237(0x164)]);}function withUpdateNotice(_0x417dc6){return{..._0x417dc6,async 'execute'(_0x21bd0a){const _0x3e8d1a=a88_0x4c65,_0x41fafb=shouldResolveUpdateNotice(_0x21bd0a)?resolveLatestUpdateNotice()[_0x3e8d1a(0x13c)](()=>null):Promise['resolve'](null),_0x16ab77=await _0x417dc6['execute'](_0x21bd0a);return attachUpdateNotice(_0x16ab77,await _0x41fafb);}};}function shouldResolveUpdateNotice(_0x27cf9d){const _0x38d0f9=a88_0x492026;return _0x27cf9d[_0x38d0f9(0x159)]==='pretty'&&!_0x27cf9d[_0x38d0f9(0x169)];}function attachUpdateNotice(_0x3a3d3a,_0x16b490){const _0x210201=a88_0x492026;if(!_0x16b490||!_0x3a3d3a||typeof _0x3a3d3a!=='object')return _0x3a3d3a;const _0x303fc0=_0x3a3d3a,_0x3552b1=typeof _0x303fc0[_0x210201(0x16e)]===_0x210201(0x167)&&_0x303fc0['_notice']!==null?_0x303fc0[_0x210201(0x16e)]:{};return{..._0x303fc0,'_notice':{..._0x3552b1,'update':_0x16b490}};}
@@ -1 +1 @@
1
- (function(_0x1e7dee,_0x44bd8b){const _0x3e5c6f=a89_0x1b67,_0x6136a4=_0x1e7dee();while(!![]){try{const _0x55d3d9=parseInt(_0x3e5c6f(0x178))/0x1*(-parseInt(_0x3e5c6f(0x187))/0x2)+-parseInt(_0x3e5c6f(0x17e))/0x3+parseInt(_0x3e5c6f(0x186))/0x4*(-parseInt(_0x3e5c6f(0x180))/0x5)+parseInt(_0x3e5c6f(0x189))/0x6+parseInt(_0x3e5c6f(0x18b))/0x7*(-parseInt(_0x3e5c6f(0x18a))/0x8)+parseInt(_0x3e5c6f(0x17f))/0x9+-parseInt(_0x3e5c6f(0x17d))/0xa*(-parseInt(_0x3e5c6f(0x17c))/0xb);if(_0x55d3d9===_0x44bd8b)break;else _0x6136a4['push'](_0x6136a4['shift']());}catch(_0x47548b){_0x6136a4['push'](_0x6136a4['shift']());}}}(a89_0x5c84,0x3ca06));function a89_0x5c84(){const _0x4fd164=['20SQTxbE','filter','980328TZbXqW','8usHKfr','246953PEUfYy','30658rfsdjP','../commands/registry.js','auth','requiresAuth','9926917xdbihC','10WQEztl','1374564aZBovF','569214zqFhOP','20spoEhi','service','has','commands','required','map','80708keoEDC'];a89_0x5c84=function(){return _0x4fd164;};return a89_0x5c84();}import{buildSchemaPayload as a89_0x2d13a6}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';function a89_0x1b67(_0x5ad322,_0x2bccad){_0x5ad322=_0x5ad322-0x178;const _0x5c845f=a89_0x5c84();let _0x1b6799=_0x5c845f[_0x5ad322];return _0x1b6799;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x24cb4c=a89_0x1b67,{serviceRegistry:_0x3790f6,findDefinition:_0x2e697e}=await import(_0x24cb4c(0x179)),_0x34f43e=new Set(_0x3790f6[_0x24cb4c(0x185)](_0x23e5ac=>_0x23e5ac[_0x24cb4c(0x181)])),_0x219592=listDynamicServiceEntries()[_0x24cb4c(0x188)](_0x3ffc96=>!_0x34f43e[_0x24cb4c(0x182)](_0x3ffc96[_0x24cb4c(0x181)])),_0x4866f3=a89_0x2d13a6({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3790f6,_0x219592),'buildAllFlags':buildAllFlags,'findDefinition':(_0x529ea4,_0x36d856)=>_0x2e697e(_0x529ea4,_0x36d856)??findDynamicServiceDefinition(_0x529ea4,_0x36d856)});return normalizeSchemaPayload(_0x4866f3);}function normalizeSchemaPayload(_0x102d36){const _0x155194=a89_0x1b67;return{..._0x102d36,'schemaVersion':0x2,'services':_0x102d36['services'][_0x155194(0x185)](_0x4ec015=>({..._0x4ec015,'commands':_0x4ec015[_0x155194(0x183)][_0x155194(0x185)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3489e4){const _0xfd6a9f=a89_0x1b67,_0x348c15=_0x3489e4;return{..._0x3489e4,'auth':_0x348c15[_0xfd6a9f(0x17a)]??(_0x3489e4[_0xfd6a9f(0x17b)]?_0xfd6a9f(0x184):'none')};}
1
+ (function(_0x2dd5d1,_0x794c0f){const _0x19b4a1=a89_0x59a0,_0x48aa43=_0x2dd5d1();while(!![]){try{const _0x309bee=parseInt(_0x19b4a1(0x130))/0x1*(parseInt(_0x19b4a1(0x12a))/0x2)+parseInt(_0x19b4a1(0x12c))/0x3*(-parseInt(_0x19b4a1(0x134))/0x4)+parseInt(_0x19b4a1(0x136))/0x5+-parseInt(_0x19b4a1(0x126))/0x6+-parseInt(_0x19b4a1(0x127))/0x7*(-parseInt(_0x19b4a1(0x129))/0x8)+-parseInt(_0x19b4a1(0x132))/0x9+-parseInt(_0x19b4a1(0x139))/0xa*(-parseInt(_0x19b4a1(0x137))/0xb);if(_0x309bee===_0x794c0f)break;else _0x48aa43['push'](_0x48aa43['shift']());}catch(_0x2d18d0){_0x48aa43['push'](_0x48aa43['shift']());}}}(a89_0x1187,0x36715));import{buildSchemaPayload as a89_0x3bfac}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a89_0x1187(){const _0x3f86e1=['7381319TSMaND','requiresAuth','10FtNmRs','auth','2215140SSgChr','294uGsfCH','has','61624cvNwHn','2YuCdpW','services','1187997FlxSzF','none','service','filter','5437wqQmGs','../commands/registry.js','3540411UEdSyj','commands','4McRDoB','map','1907865NIjzxj'];a89_0x1187=function(){return _0x3f86e1;};return a89_0x1187();}import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x5c0b5f=a89_0x59a0,{serviceRegistry:_0x2e7a95,findDefinition:_0x2a941}=await import(_0x5c0b5f(0x131)),_0x4b11a0=new Set(_0x2e7a95[_0x5c0b5f(0x135)](_0x4c7813=>_0x4c7813[_0x5c0b5f(0x12e)])),_0x370264=listDynamicServiceEntries()[_0x5c0b5f(0x12f)](_0x4fb9e5=>!_0x4b11a0[_0x5c0b5f(0x128)](_0x4fb9e5[_0x5c0b5f(0x12e)])),_0xf1df55=a89_0x3bfac({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x2e7a95,_0x370264),'buildAllFlags':buildAllFlags,'findDefinition':(_0x54ce28,_0x217724)=>_0x2a941(_0x54ce28,_0x217724)??findDynamicServiceDefinition(_0x54ce28,_0x217724)});return normalizeSchemaPayload(_0xf1df55);}function a89_0x59a0(_0x1c27b8,_0x4ea21f){_0x1c27b8=_0x1c27b8-0x126;const _0x1187c3=a89_0x1187();let _0x59a0b9=_0x1187c3[_0x1c27b8];return _0x59a0b9;}function normalizeSchemaPayload(_0x412316){const _0x5844a8=a89_0x59a0;return{..._0x412316,'schemaVersion':0x2,'services':_0x412316[_0x5844a8(0x12b)][_0x5844a8(0x135)](_0x13fe2d=>({..._0x13fe2d,'commands':_0x13fe2d[_0x5844a8(0x133)][_0x5844a8(0x135)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x411838){const _0x267733=a89_0x59a0,_0x134349=_0x411838;return{..._0x411838,'auth':_0x134349[_0x267733(0x13a)]??(_0x411838[_0x267733(0x138)]?'required':_0x267733(0x12d))};}
@@ -1 +1 @@
1
- (function(_0x5a3652,_0x5c4bca){const _0x4f3b42=a90_0x2d22,_0x458bf9=_0x5a3652();while(!![]){try{const _0x3ee3a1=-parseInt(_0x4f3b42(0x10a))/0x1*(-parseInt(_0x4f3b42(0x105))/0x2)+parseInt(_0x4f3b42(0x10d))/0x3+parseInt(_0x4f3b42(0x107))/0x4*(parseInt(_0x4f3b42(0x10e))/0x5)+-parseInt(_0x4f3b42(0x106))/0x6+parseInt(_0x4f3b42(0x103))/0x7+parseInt(_0x4f3b42(0x101))/0x8*(parseInt(_0x4f3b42(0x109))/0x9)+parseInt(_0x4f3b42(0x10f))/0xa*(-parseInt(_0x4f3b42(0x104))/0xb);if(_0x3ee3a1===_0x5c4bca)break;else _0x458bf9['push'](_0x458bf9['shift']());}catch(_0x6f2254){_0x458bf9['push'](_0x458bf9['shift']());}}}(a90_0x37c4,0xe3b3e));function a90_0x37c4(){const _0x5bbdf5=['412173ERYFNQ','1FxvpIp','findIndex','service','4704816Pgnbqm','5NOYwid','1469680BWztWZ','136JcnhoE','length','2675344asMZKl','143DyOeEh','40666gCrpae','10059834olinpg','7082188ltnhPY','slice'];a90_0x37c4=function(){return _0x5bbdf5;};return a90_0x37c4();}function a90_0x2d22(_0x5617ab,_0x36eb83){_0x5617ab=_0x5617ab-0x101;const _0x37c4af=a90_0x37c4();let _0x2d2259=_0x37c4af[_0x5617ab];return _0x2d2259;}export function insertDynamicServicesAfterServiceTree(_0x20b038,_0x2fd789){const _0x1c3d36=a90_0x2d22;if(_0x2fd789[_0x1c3d36(0x102)]===0x0)return[..._0x20b038];const _0x561ef3=_0x20b038[_0x1c3d36(0x10b)](_0x4f1801=>_0x4f1801[_0x1c3d36(0x10c)]==='service');if(_0x561ef3<0x0)return[..._0x20b038,..._0x2fd789];return[..._0x20b038[_0x1c3d36(0x108)](0x0,_0x561ef3+0x1),..._0x2fd789,..._0x20b038[_0x1c3d36(0x108)](_0x561ef3+0x1)];}
1
+ function a90_0x40ae(_0x59aa2d,_0x33c50f){_0x59aa2d=_0x59aa2d-0x195;const _0x186d98=a90_0x186d();let _0x40ae1a=_0x186d98[_0x59aa2d];return _0x40ae1a;}(function(_0x309912,_0x53b733){const _0x55c286=a90_0x40ae,_0x59c831=_0x309912();while(!![]){try{const _0x43695a=parseInt(_0x55c286(0x19d))/0x1*(parseInt(_0x55c286(0x19c))/0x2)+-parseInt(_0x55c286(0x197))/0x3+parseInt(_0x55c286(0x1a0))/0x4+-parseInt(_0x55c286(0x1a1))/0x5+-parseInt(_0x55c286(0x19a))/0x6*(-parseInt(_0x55c286(0x19f))/0x7)+-parseInt(_0x55c286(0x195))/0x8*(parseInt(_0x55c286(0x198))/0x9)+parseInt(_0x55c286(0x19e))/0xa;if(_0x43695a===_0x53b733)break;else _0x59c831['push'](_0x59c831['shift']());}catch(_0xb66123){_0x59c831['push'](_0x59c831['shift']());}}}(a90_0x186d,0x5b624));function a90_0x186d(){const _0x3a2b73=['2675280ZjeyEw','14VkOhzv','2641944bWWYwK','3705830fudSPR','8BcflWN','service','840492VqmbXb','1783647VHmJjt','slice','425622gkJOso','length','358wcMQrY','2927TDbWUj'];a90_0x186d=function(){return _0x3a2b73;};return a90_0x186d();}export function insertDynamicServicesAfterServiceTree(_0x3b3c27,_0x56d36b){const _0x393923=a90_0x40ae;if(_0x56d36b[_0x393923(0x19b)]===0x0)return[..._0x3b3c27];const _0x5d362e=_0x3b3c27['findIndex'](_0x2143a0=>_0x2143a0[_0x393923(0x196)]===_0x393923(0x196));if(_0x5d362e<0x0)return[..._0x3b3c27,..._0x56d36b];return[..._0x3b3c27['slice'](0x0,_0x5d362e+0x1),..._0x56d36b,..._0x3b3c27[_0x393923(0x199)](_0x5d362e+0x1)];}
@@ -1 +1 @@
1
- function a91_0x5242(_0x1e8ae0,_0x26b70f){_0x1e8ae0=_0x1e8ae0-0x161;var _0x49fdea=a91_0x49fd();var _0x5242fa=_0x49fdea[_0x1e8ae0];return _0x5242fa;}function a91_0x49fd(){var _0x315784=['429zpyfcg','7924869MRFQiN','975030OyZYHj','846gpfaLN','4gNKafQ','7872425RWDHZw','10iWRaIS','461443VCZMYd','8204SaGQqb','345036woNsTI','4gcwGeC','1112688PDIVZC'];a91_0x49fd=function(){return _0x315784;};return a91_0x49fd();}(function(_0x9dbd27,_0x4395da){var _0x7cce5d=a91_0x5242,_0xaede41=_0x9dbd27();while(!![]){try{var _0x4da909=parseInt(_0x7cce5d(0x16b))/0x1*(parseInt(_0x7cce5d(0x162))/0x2)+-parseInt(_0x7cce5d(0x166))/0x3+-parseInt(_0x7cce5d(0x168))/0x4*(parseInt(_0x7cce5d(0x169))/0x5)+parseInt(_0x7cce5d(0x167))/0x6*(-parseInt(_0x7cce5d(0x16c))/0x7)+parseInt(_0x7cce5d(0x163))/0x8+parseInt(_0x7cce5d(0x165))/0x9*(parseInt(_0x7cce5d(0x16a))/0xa)+parseInt(_0x7cce5d(0x164))/0xb*(parseInt(_0x7cce5d(0x161))/0xc);if(_0x4da909===_0x4395da)break;else _0xaede41['push'](_0xaede41['shift']());}catch(_0x289e3b){_0xaede41['push'](_0xaede41['shift']());}}}(a91_0x49fd,0xf3edd));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x1755d4,_0x53333f){var _0x52aec3=a91_0x49be,_0x51cf86=_0x1755d4();while(!![]){try{var _0x3f845b=-parseInt(_0x52aec3(0x90))/0x1+parseInt(_0x52aec3(0x96))/0x2+-parseInt(_0x52aec3(0x95))/0x3*(-parseInt(_0x52aec3(0x8f))/0x4)+parseInt(_0x52aec3(0x8d))/0x5*(-parseInt(_0x52aec3(0x93))/0x6)+parseInt(_0x52aec3(0x8c))/0x7+-parseInt(_0x52aec3(0x92))/0x8*(parseInt(_0x52aec3(0x94))/0x9)+parseInt(_0x52aec3(0x8e))/0xa*(parseInt(_0x52aec3(0x91))/0xb);if(_0x3f845b===_0x53333f)break;else _0x51cf86['push'](_0x51cf86['shift']());}catch(_0x117322){_0x51cf86['push'](_0x51cf86['shift']());}}}(a91_0x40cb,0xea85f));function a91_0x40cb(){var _0x214f06=['2300935kabEqv','5WXYuUv','2870mhsvRU','16ScGuuC','1598989GHkmSt','90541rNJmey','88CgeFxx','7762254xpNrcd','191979Ktugqi','669078FvuEiy','1009680PUEaHa'];a91_0x40cb=function(){return _0x214f06;};return a91_0x40cb();}function a91_0x49be(_0xa26ab3,_0x4459dd){_0xa26ab3=_0xa26ab3-0x8c;var _0x40cbfe=a91_0x40cb();var _0x49bed3=_0x40cbfe[_0xa26ab3];return _0x49bed3;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';