@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (239) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/validate.js +1 -1
  50. package/lib/commands/config/get.js +1 -1
  51. package/lib/commands/config/index.js +1 -1
  52. package/lib/commands/config/list.js +1 -1
  53. package/lib/commands/config/set.js +1 -1
  54. package/lib/commands/config/shared.js +1 -1
  55. package/lib/commands/data/filter.js +1 -1
  56. package/lib/commands/data/getOne.js +1 -1
  57. package/lib/commands/data/index.js +1 -1
  58. package/lib/commands/data/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/capability.js +1 -1
  61. package/lib/commands/dataset/delete.js +1 -1
  62. package/lib/commands/dataset/detail.js +1 -1
  63. package/lib/commands/dataset/extend-update.js +1 -1
  64. package/lib/commands/dataset/field-update.js +1 -1
  65. package/lib/commands/dataset/generate.js +1 -1
  66. package/lib/commands/dataset/index.js +1 -1
  67. package/lib/commands/dataset/list.js +1 -1
  68. package/lib/commands/dataset/operations.js +1 -1
  69. package/lib/commands/dataset/relation-audit.js +1 -1
  70. package/lib/commands/dataset/relation-create.js +1 -1
  71. package/lib/commands/dataset/relation-delete.js +1 -1
  72. package/lib/commands/dataset/relation-shared.js +1 -1
  73. package/lib/commands/dataset/relation-update.js +1 -1
  74. package/lib/commands/dataset/relations.js +1 -1
  75. package/lib/commands/dataset/rename.js +1 -1
  76. package/lib/commands/dataset/restore.js +1 -1
  77. package/lib/commands/db/analyze-cancel.js +1 -1
  78. package/lib/commands/db/analyze-start.js +1 -1
  79. package/lib/commands/db/analyze-status.js +1 -1
  80. package/lib/commands/db/create.js +1 -1
  81. package/lib/commands/db/delete.js +1 -1
  82. package/lib/commands/db/detail.js +1 -1
  83. package/lib/commands/db/diff.js +1 -1
  84. package/lib/commands/db/index.js +1 -1
  85. package/lib/commands/db/list.js +1 -1
  86. package/lib/commands/db/shared.js +1 -1
  87. package/lib/commands/db/tables.js +1 -1
  88. package/lib/commands/db/test.js +1 -1
  89. package/lib/commands/db/update.js +1 -1
  90. package/lib/commands/doctor.js +1 -1
  91. package/lib/commands/init/index.js +1 -1
  92. package/lib/commands/issue/index.js +1 -1
  93. package/lib/commands/issue/nudge.js +1 -1
  94. package/lib/commands/issue/report.js +1 -1
  95. package/lib/commands/issue/shared.js +1 -1
  96. package/lib/commands/logs/index.js +1 -1
  97. package/lib/commands/menu/index.js +1 -1
  98. package/lib/commands/menu/list.js +1 -1
  99. package/lib/commands/menu/shared/compare-table.js +1 -1
  100. package/lib/commands/menu/shared/index.js +1 -1
  101. package/lib/commands/menu/shared/inquirer.js +1 -1
  102. package/lib/commands/menu/shared/local-pages.js +1 -1
  103. package/lib/commands/menu/shared/logic.js +1 -1
  104. package/lib/commands/menu/shared/service.js +1 -1
  105. package/lib/commands/menu/shared/sync-core.js +1 -1
  106. package/lib/commands/menu/shared/update-core.js +1 -1
  107. package/lib/commands/menu/shared/valid-url.js +1 -1
  108. package/lib/commands/menu/sync.js +1 -1
  109. package/lib/commands/menu/update.js +1 -1
  110. package/lib/commands/page/generate-start.js +1 -1
  111. package/lib/commands/page/generate-status.js +1 -1
  112. package/lib/commands/page/index.js +1 -1
  113. package/lib/commands/page/pull.js +1 -1
  114. package/lib/commands/page/push.js +1 -1
  115. package/lib/commands/page/relation-audit.js +1 -1
  116. package/lib/commands/page/shared.js +1 -1
  117. package/lib/commands/page/standard-page-status.js +1 -1
  118. package/lib/commands/page/sync.js +1 -1
  119. package/lib/commands/permit/index.js +1 -1
  120. package/lib/commands/permit/page-get.js +1 -1
  121. package/lib/commands/permit/page-set.js +1 -1
  122. package/lib/commands/permit/role-apis-set.js +1 -1
  123. package/lib/commands/permit/role-menus-set.js +1 -1
  124. package/lib/commands/permit/role-menus.js +1 -1
  125. package/lib/commands/permit/shared.js +1 -1
  126. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  127. package/lib/commands/project/create/format-elapsed.js +1 -1
  128. package/lib/commands/project/create/main.js +1 -1
  129. package/lib/commands/project/create/non-interactive.js +1 -1
  130. package/lib/commands/project/create/project-template-path.js +1 -1
  131. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  132. package/lib/commands/project/create/use-format-code.js +1 -1
  133. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  134. package/lib/commands/project/index.js +1 -1
  135. package/lib/commands/project/init.js +1 -1
  136. package/lib/commands/project/upgrade.js +1 -1
  137. package/lib/commands/registry.js +1 -1
  138. package/lib/commands/role/create.js +1 -1
  139. package/lib/commands/role/delete.js +1 -1
  140. package/lib/commands/role/detail.js +1 -1
  141. package/lib/commands/role/index.js +1 -1
  142. package/lib/commands/role/list.js +1 -1
  143. package/lib/commands/role/shared.js +1 -1
  144. package/lib/commands/role/update.js +1 -1
  145. package/lib/commands/role/user-add.js +1 -1
  146. package/lib/commands/role/user-remove.js +1 -1
  147. package/lib/commands/role/user-resolve.js +1 -1
  148. package/lib/commands/run/index.js +1 -1
  149. package/lib/commands/schema.js +1 -1
  150. package/lib/commands/sql/create.js +1 -1
  151. package/lib/commands/sql/delete.js +1 -1
  152. package/lib/commands/sql/detail.js +1 -1
  153. package/lib/commands/sql/exec.js +1 -1
  154. package/lib/commands/sql/index.js +1 -1
  155. package/lib/commands/sql/list.js +1 -1
  156. package/lib/commands/sql/pull.js +1 -1
  157. package/lib/commands/sql/push.js +1 -1
  158. package/lib/commands/sql/save.js +1 -1
  159. package/lib/commands/sql/shared.js +1 -1
  160. package/lib/commands/sql/status.js +1 -1
  161. package/lib/commands/sql/validate.js +1 -1
  162. package/lib/commands/workspace/add.js +1 -1
  163. package/lib/commands/workspace/index.js +1 -1
  164. package/lib/commands/workspace/remove.js +1 -1
  165. package/lib/config/schema.js +1 -1
  166. package/lib/constant/cdn.js +1 -1
  167. package/lib/constant/cli.js +1 -1
  168. package/lib/constant/defaults.js +1 -1
  169. package/lib/constant/domain.js +1 -1
  170. package/lib/constant/env.js +1 -1
  171. package/lib/constant/output.js +1 -1
  172. package/lib/constant/paths.js +1 -1
  173. package/lib/constant/risk.js +1 -1
  174. package/lib/context/app-resolver.js +1 -1
  175. package/lib/context/auth-resolver.js +1 -1
  176. package/lib/context/config-loader.js +1 -1
  177. package/lib/context.js +1 -1
  178. package/lib/core/alias-resolver.js +1 -1
  179. package/lib/core/api-client.js +1 -1
  180. package/lib/core/bff/config.js +1 -1
  181. package/lib/core/bff/file-system.js +1 -1
  182. package/lib/core/bff/hash.js +1 -1
  183. package/lib/core/bff/lock.js +1 -1
  184. package/lib/core/bff/utils.js +1 -1
  185. package/lib/core/db-resolver.js +1 -1
  186. package/lib/core/page/file-system.js +1 -1
  187. package/lib/core/page/hash.js +1 -1
  188. package/lib/core/page/lock.js +1 -1
  189. package/lib/core/sql-sync/config.js +1 -1
  190. package/lib/core/sql-sync/file-system.js +1 -1
  191. package/lib/core/sql-sync/hash.js +1 -1
  192. package/lib/core/sql-sync/lock.js +1 -1
  193. package/lib/core/sql-sync/utils.js +1 -1
  194. package/lib/core/sql-validator.js +1 -1
  195. package/lib/errors.js +1 -1
  196. package/lib/framework/build-all-flags.js +1 -1
  197. package/lib/framework/flags.js +1 -1
  198. package/lib/framework/help.js +1 -1
  199. package/lib/framework/index.js +1 -1
  200. package/lib/framework/output.js +1 -1
  201. package/lib/framework/response.js +1 -1
  202. package/lib/framework/runner-alias.js +1 -1
  203. package/lib/framework/runner.js +1 -1
  204. package/lib/framework/schema-export.js +1 -1
  205. package/lib/framework/types.js +1 -1
  206. package/lib/generated/build-info.js +1 -1
  207. package/lib/help.js +1 -1
  208. package/lib/skills/main.js +1 -1
  209. package/lib/skills/npx-skills-add.js +1 -1
  210. package/lib/telemetry/cli-command-trace.js +1 -1
  211. package/lib/telemetry/cli-help-trace.js +1 -1
  212. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  213. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  214. package/lib/telemetry/send-cli-trace-log.js +1 -1
  215. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  216. package/lib/utils/ai_config.js +1 -1
  217. package/lib/utils/apply-jq-filter.js +1 -1
  218. package/lib/utils/cdn-config.js +1 -1
  219. package/lib/utils/check-sdk-version.js +1 -1
  220. package/lib/utils/cli-version-check.js +1 -1
  221. package/lib/utils/cli-version-policy.js +1 -1
  222. package/lib/utils/config.js +1 -1
  223. package/lib/utils/copy-directory.js +1 -1
  224. package/lib/utils/entity-with-id.js +1 -1
  225. package/lib/utils/file-utils.js +1 -1
  226. package/lib/utils/guides-cdn.js +1 -1
  227. package/lib/utils/http-client.js +1 -1
  228. package/lib/utils/is-non-interactive.js +1 -1
  229. package/lib/utils/logger.js +1 -1
  230. package/lib/utils/params.js +1 -1
  231. package/lib/utils/platform.js +1 -1
  232. package/lib/utils/rules-cdn.js +1 -1
  233. package/lib/utils/sleep.js +1 -1
  234. package/lib/utils/template-replacer.js +1 -1
  235. package/lib/utils/update-notice.js +1 -1
  236. package/lib/utils/version.js +1 -1
  237. package/lib/utils/with-active-cookie.js +1 -1
  238. package/lib/utils/write-cli-side-channel.js +1 -1
  239. package/package.json +1 -1
@@ -1 +1 @@
1
- const a181_0x4b0d7d=a181_0x1d52;(function(_0x40ffb9,_0x4f6620){const _0x5a2752=a181_0x1d52,_0x1274ca=_0x40ffb9();while(!![]){try{const _0x373885=-parseInt(_0x5a2752(0x195))/0x1*(parseInt(_0x5a2752(0x18e))/0x2)+-parseInt(_0x5a2752(0x19c))/0x3*(parseInt(_0x5a2752(0x18d))/0x4)+-parseInt(_0x5a2752(0x199))/0x5+-parseInt(_0x5a2752(0x1a9))/0x6+parseInt(_0x5a2752(0x18a))/0x7*(parseInt(_0x5a2752(0x1a2))/0x8)+parseInt(_0x5a2752(0x194))/0x9*(parseInt(_0x5a2752(0x1a4))/0xa)+parseInt(_0x5a2752(0x18b))/0xb;if(_0x373885===_0x4f6620)break;else _0x1274ca['push'](_0x1274ca['shift']());}catch(_0x46a536){_0x1274ca['push'](_0x1274ca['shift']());}}}(a181_0x2915,0xd96df));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a181_0x4b0d7d(0x18c),a181_0x4b0d7d(0x192),a181_0x4b0d7d(0x185)];export function normalizeBffType(_0x50a113){const _0x552027=a181_0x4b0d7d;if(!_0x50a113)return undefined;const _0x466a39=_0x50a113[_0x552027(0x188)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x552027(0x19b)](_0x466a39)?_0x466a39:undefined;}async function scanJsFilesRecursively(_0xf38d4e,_0x26ceba){const _0x65ffad=a181_0x4b0d7d,_0x4ae34d=[];try{const _0x51f581=await readdir(_0xf38d4e,{'withFileTypes':!![]});for(const _0x5da436 of _0x51f581){const _0x33a5a7=join(_0xf38d4e,_0x5da436['name']);if(_0x5da436[_0x65ffad(0x1a5)]())_0x4ae34d[_0x65ffad(0x19d)](...await scanJsFilesRecursively(_0x33a5a7,_0x26ceba+'/'+_0x5da436[_0x65ffad(0x1a7)]));else _0x5da436[_0x65ffad(0x193)]()&&_0x5da436['name']['endsWith'](_0x65ffad(0x1a1))&&_0x4ae34d['push']({'lockKey':_0x26ceba+'/'+_0x5da436['name'][_0x65ffad(0x1a0)](/\.js$/,''),'filePath':_0x33a5a7});}}catch(_0x5e5e5c){if(_0x5e5e5c[_0x65ffad(0x18f)]!==_0x65ffad(0x191))throw _0x5e5e5c;}return _0x4ae34d;}async function scanFlatFunctions(_0x32edd3,_0x43e7f0){const _0xd53801=a181_0x4b0d7d,_0x18b52a=join(_0x32edd3['scriptsRootDir'],_0x43e7f0),_0x3ae912=await scanJsFilesRecursively(_0x18b52a,_0x43e7f0);return _0x3ae912[_0xd53801(0x1a8)](({lockKey:_0xb24866,filePath:_0x106487})=>({'type':_0x43e7f0,'name':_0xb24866[_0xd53801(0x1a6)]('/')['at'](-0x1)??'','filePath':_0x106487,'lockKey':_0xb24866}));}async function scanHookFunctions(_0x179dd6){const _0x509121=a181_0x4b0d7d,_0x4a8ee8=join(_0x179dd6['scriptsRootDir'],_0x509121(0x185)),_0x1bd1d4=[];try{const _0x4488b0=await readdir(_0x4a8ee8,{'withFileTypes':!![]});for(const _0x4eb0ba of _0x4488b0){if(!_0x4eb0ba[_0x509121(0x1a5)]())continue;const _0x1c3dc7=_0x4eb0ba['name'],_0x2aacc6=join(_0x4a8ee8,_0x1c3dc7),_0x304fe4=await readdir(_0x2aacc6,{'withFileTypes':!![]});for(const _0x2242ca of _0x304fe4){if(!_0x2242ca['isDirectory']())continue;const _0x3afe44=_0x2242ca['name'],_0x4f5f51=join(_0x2aacc6,_0x3afe44),_0x15099e=await readdir(_0x4f5f51,{'withFileTypes':!![]});for(const _0x51f703 of _0x15099e){if(!_0x51f703[_0x509121(0x1a5)]())continue;const _0x5363c2=_0x51f703[_0x509121(0x1a7)],_0x4283cb=join(_0x4f5f51,_0x5363c2),_0x15238b=await readdir(_0x4283cb,{'withFileTypes':!![]});for(const _0x33e5ac of _0x15238b){if(!_0x33e5ac[_0x509121(0x193)]()||!_0x33e5ac[_0x509121(0x1a7)][_0x509121(0x196)]('.js'))continue;const _0x39c62b=_0x33e5ac['name']['replace'](/\.js$/,'');_0x1bd1d4[_0x509121(0x19d)]({'type':'HOOK','name':_0x39c62b,'filePath':join(_0x4283cb,_0x33e5ac[_0x509121(0x1a7)]),'lockKey':_0x509121(0x186)+_0x1c3dc7+'/'+_0x3afe44+'/'+_0x5363c2+'/'+_0x39c62b,'alias':_0x1c3dc7,'operationType':_0x3afe44,'functionNode':_0x5363c2});}}}}}catch(_0xc4a86b){if(_0xc4a86b[_0x509121(0x18f)]!==_0x509121(0x191))throw _0xc4a86b;}return _0x1bd1d4;}export async function scanLocalBffFunctions(_0x29ac29,_0x402dae){const _0x44bd73=a181_0x4b0d7d;if(_0x402dae==='COMMON'||_0x402dae===_0x44bd73(0x192))return scanFlatFunctions(_0x29ac29,_0x402dae);if(_0x402dae===_0x44bd73(0x185))return scanHookFunctions(_0x29ac29);const [_0x5a3935,_0x3af727,_0x249d09]=await Promise['all']([scanFlatFunctions(_0x29ac29,_0x44bd73(0x18c)),scanFlatFunctions(_0x29ac29,_0x44bd73(0x192)),scanHookFunctions(_0x29ac29)]);return[..._0x5a3935,..._0x3af727,..._0x249d09];}export function resolveLocalFilePathFromLockKey(_0x495305,_0x23a49e){const _0x302e9b=a181_0x4b0d7d;return join(_0x495305['scriptsRootDir'],..._0x23a49e[_0x302e9b(0x1a6)]('/'))+_0x302e9b(0x1a1);}function a181_0x2915(){const _0x9bef48=['datasetCode','includes','12Icojds','push','functionName','get','replace','.js','64BXyEFh','afterScriptId','16110OiTHNe','isDirectory','split','name','map','3601644nmEgTs','HOOK','HOOK/','set','trim','operationType','26845QYlgWq','35929751EkwsOm','COMMON','903864EbpfOs','608wCbOHU','code','functionNode','ENOENT','ENDPOINT','isFile','9846uZLGmR','5464xaDkzJ','endsWith','scriptType','beforeScriptId','5018350QvQPhT'];a181_0x2915=function(){return _0x9bef48;};return a181_0x2915();}export function createHookLocationMap(_0x2a7cd8){const _0x4819ff=a181_0x4b0d7d,_0x2562e9=new Map();for(const _0x582957 of _0x2a7cd8){_0x582957[_0x4819ff(0x198)]&&_0x2562e9[_0x4819ff(0x187)](_0x582957[_0x4819ff(0x198)],{'datasetCode':_0x582957['datasetCode'],'operationType':snakeToCamel(_0x582957[_0x4819ff(0x189)]),'functionNode':'before'}),_0x582957[_0x4819ff(0x1a3)]&&_0x2562e9[_0x4819ff(0x187)](_0x582957[_0x4819ff(0x1a3)],{'datasetCode':_0x582957[_0x4819ff(0x19a)],'operationType':snakeToCamel(_0x582957[_0x4819ff(0x189)]),'functionNode':'after'});}return _0x2562e9;}export function resolveRemoteScriptTarget(_0x77b119,_0x126703,_0x25678f,_0x189c98,_0x48ba8c){const _0x5e9eb8=a181_0x4b0d7d,_0xb8c848=normalizeBffType(_0x126703[_0x5e9eb8(0x197)]);if(!_0xb8c848||!_0x126703[_0x5e9eb8(0x19e)])return null;if(_0xb8c848===_0x5e9eb8(0x185)){const _0x2b2196=(_0x126703['id']?_0x25678f['get'](_0x126703['id']):undefined)??findHookLocationByRemoteId(_0x189c98,_0x126703['id']);if(!_0x2b2196)return null;const _0x314c54=_0x2b2196['alias']||_0x48ba8c[_0x5e9eb8(0x19f)](_0x2b2196[_0x5e9eb8(0x19a)]),_0x2e1848=_0x314c54??_0x2b2196['datasetCode'],_0x22b6d4={..._0x2b2196,'alias':_0x314c54},_0x237bf8='HOOK/'+_0x2e1848+'/'+_0x22b6d4[_0x5e9eb8(0x189)]+'/'+_0x22b6d4[_0x5e9eb8(0x190)]+'/'+_0x126703[_0x5e9eb8(0x19e)];return{'lockKey':_0x237bf8,'filePath':resolveLocalFilePathFromLockKey(_0x77b119,_0x237bf8),'type':_0x5e9eb8(0x185),'hookLocation':_0x22b6d4};}const _0x469433=_0xb8c848+'/'+_0x126703[_0x5e9eb8(0x19e)];return{'lockKey':_0x469433,'filePath':resolveLocalFilePathFromLockKey(_0x77b119,_0x469433),'type':_0xb8c848};}export async function ensureParentDirectory(_0x2aac3b){await mkdir(dirname(_0x2aac3b),{'recursive':!![]});}function a181_0x1d52(_0x39671d,_0x2e5804){_0x39671d=_0x39671d-0x185;const _0x291501=a181_0x2915();let _0x1d5238=_0x291501[_0x39671d];return _0x1d5238;}export async function fileExists(_0x2a2951){try{return await access(_0x2a2951,constants['F_OK']),!![];}catch{return![];}}export async function directoryExists(_0x488ce9){const _0x2f4d83=a181_0x4b0d7d;try{const _0x185bcf=await stat(_0x488ce9);return _0x185bcf[_0x2f4d83(0x1a5)]();}catch{return![];}}
1
+ const a181_0x272cd0=a181_0x4c19;(function(_0x4f279b,_0x3636e3){const _0xecd443=a181_0x4c19,_0x1d6361=_0x4f279b();while(!![]){try{const _0x5ed3e8=-parseInt(_0xecd443(0x136))/0x1+parseInt(_0xecd443(0x145))/0x2*(parseInt(_0xecd443(0x139))/0x3)+-parseInt(_0xecd443(0x12e))/0x4*(-parseInt(_0xecd443(0x144))/0x5)+-parseInt(_0xecd443(0x148))/0x6+parseInt(_0xecd443(0x147))/0x7*(-parseInt(_0xecd443(0x141))/0x8)+parseInt(_0xecd443(0x130))/0x9+-parseInt(_0xecd443(0x12d))/0xa*(-parseInt(_0xecd443(0x134))/0xb);if(_0x5ed3e8===_0x3636e3)break;else _0x1d6361['push'](_0x1d6361['shift']());}catch(_0x218b00){_0x1d6361['push'](_0x1d6361['shift']());}}}(a181_0x2115,0x34900));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a181_0x272cd0(0x138),'ENDPOINT',a181_0x272cd0(0x123)];export function normalizeBffType(_0x90c537){const _0x313c61=a181_0x272cd0;if(!_0x90c537)return undefined;const _0x225c45=_0x90c537['trim']()[_0x313c61(0x13a)]();return SUPPORTED_BFF_TYPES[_0x313c61(0x132)](_0x225c45)?_0x225c45:undefined;}async function scanJsFilesRecursively(_0x3198c7,_0x5afc17){const _0x1ed909=a181_0x272cd0,_0x19e135=[];try{const _0x5d79aa=await readdir(_0x3198c7,{'withFileTypes':!![]});for(const _0x4d8e06 of _0x5d79aa){const _0x5f5603=join(_0x3198c7,_0x4d8e06['name']);if(_0x4d8e06[_0x1ed909(0x142)]())_0x19e135[_0x1ed909(0x12b)](...await scanJsFilesRecursively(_0x5f5603,_0x5afc17+'/'+_0x4d8e06[_0x1ed909(0x131)]));else _0x4d8e06[_0x1ed909(0x126)]()&&_0x4d8e06[_0x1ed909(0x131)]['endsWith'](_0x1ed909(0x13d))&&_0x19e135[_0x1ed909(0x12b)]({'lockKey':_0x5afc17+'/'+_0x4d8e06[_0x1ed909(0x131)][_0x1ed909(0x12a)](/\.js$/,''),'filePath':_0x5f5603});}}catch(_0x3d5878){if(_0x3d5878['code']!==_0x1ed909(0x127))throw _0x3d5878;}return _0x19e135;}function a181_0x2115(){const _0x5704bd=['ENOENT','operationType','all','replace','push','functionName','18430IqTKpI','1136GCoTVk','beforeScriptId','3000024LKvHHL','name','includes','code','2321cgMOQP','HOOK/','275781WbEpZJ','alias','COMMON','1194999YigNKl','toUpperCase','get','afterScriptId','.js','split','functionNode','datasetCode','2456536otlWpr','isDirectory','ENDPOINT','555infxUh','2OmhnxZ','scriptsRootDir','7YgUeWP','2123532UQWTVo','endsWith','HOOK','map','set','isFile'];a181_0x2115=function(){return _0x5704bd;};return a181_0x2115();}async function scanFlatFunctions(_0x57bd58,_0x3e62bc){const _0x2bfb8e=a181_0x272cd0,_0xb72a3f=join(_0x57bd58[_0x2bfb8e(0x146)],_0x3e62bc),_0xd7b943=await scanJsFilesRecursively(_0xb72a3f,_0x3e62bc);return _0xd7b943[_0x2bfb8e(0x124)](({lockKey:_0x19f618,filePath:_0x5825f9})=>({'type':_0x3e62bc,'name':_0x19f618[_0x2bfb8e(0x13e)]('/')['at'](-0x1)??'','filePath':_0x5825f9,'lockKey':_0x19f618}));}async function scanHookFunctions(_0x3c37d6){const _0x463667=a181_0x272cd0,_0x1ca774=join(_0x3c37d6['scriptsRootDir'],_0x463667(0x123)),_0x539cda=[];try{const _0xaa35a6=await readdir(_0x1ca774,{'withFileTypes':!![]});for(const _0x221230 of _0xaa35a6){if(!_0x221230[_0x463667(0x142)]())continue;const _0x233222=_0x221230[_0x463667(0x131)],_0x54365c=join(_0x1ca774,_0x233222),_0x1e2cfa=await readdir(_0x54365c,{'withFileTypes':!![]});for(const _0x295b2f of _0x1e2cfa){if(!_0x295b2f[_0x463667(0x142)]())continue;const _0x16e144=_0x295b2f[_0x463667(0x131)],_0x1700c7=join(_0x54365c,_0x16e144),_0xf33cd6=await readdir(_0x1700c7,{'withFileTypes':!![]});for(const _0xc9388a of _0xf33cd6){if(!_0xc9388a[_0x463667(0x142)]())continue;const _0x5d2c71=_0xc9388a[_0x463667(0x131)],_0x1ecd41=join(_0x1700c7,_0x5d2c71),_0x4f378c=await readdir(_0x1ecd41,{'withFileTypes':!![]});for(const _0x5e614b of _0x4f378c){if(!_0x5e614b[_0x463667(0x126)]()||!_0x5e614b[_0x463667(0x131)][_0x463667(0x149)](_0x463667(0x13d)))continue;const _0x4638c9=_0x5e614b['name'][_0x463667(0x12a)](/\.js$/,'');_0x539cda['push']({'type':_0x463667(0x123),'name':_0x4638c9,'filePath':join(_0x1ecd41,_0x5e614b[_0x463667(0x131)]),'lockKey':_0x463667(0x135)+_0x233222+'/'+_0x16e144+'/'+_0x5d2c71+'/'+_0x4638c9,'alias':_0x233222,'operationType':_0x16e144,'functionNode':_0x5d2c71});}}}}}catch(_0x1f092b){if(_0x1f092b[_0x463667(0x133)]!==_0x463667(0x127))throw _0x1f092b;}return _0x539cda;}export async function scanLocalBffFunctions(_0xdc7364,_0x2d3e11){const _0x306bfb=a181_0x272cd0;if(_0x2d3e11===_0x306bfb(0x138)||_0x2d3e11==='ENDPOINT')return scanFlatFunctions(_0xdc7364,_0x2d3e11);if(_0x2d3e11===_0x306bfb(0x123))return scanHookFunctions(_0xdc7364);const [_0x267bcd,_0x3e39fd,_0x2c5de0]=await Promise[_0x306bfb(0x129)]([scanFlatFunctions(_0xdc7364,_0x306bfb(0x138)),scanFlatFunctions(_0xdc7364,_0x306bfb(0x143)),scanHookFunctions(_0xdc7364)]);return[..._0x267bcd,..._0x3e39fd,..._0x2c5de0];}export function resolveLocalFilePathFromLockKey(_0x239144,_0x106c53){const _0x426e9c=a181_0x272cd0;return join(_0x239144[_0x426e9c(0x146)],..._0x106c53[_0x426e9c(0x13e)]('/'))+'.js';}export function createHookLocationMap(_0x37beee){const _0x3aa2cb=a181_0x272cd0,_0x4f231d=new Map();for(const _0x47de29 of _0x37beee){_0x47de29[_0x3aa2cb(0x12f)]&&_0x4f231d[_0x3aa2cb(0x125)](_0x47de29[_0x3aa2cb(0x12f)],{'datasetCode':_0x47de29[_0x3aa2cb(0x140)],'operationType':snakeToCamel(_0x47de29[_0x3aa2cb(0x128)]),'functionNode':'before'}),_0x47de29[_0x3aa2cb(0x13c)]&&_0x4f231d[_0x3aa2cb(0x125)](_0x47de29[_0x3aa2cb(0x13c)],{'datasetCode':_0x47de29[_0x3aa2cb(0x140)],'operationType':snakeToCamel(_0x47de29[_0x3aa2cb(0x128)]),'functionNode':'after'});}return _0x4f231d;}export function resolveRemoteScriptTarget(_0x5ab1f9,_0x214fd3,_0x44a5ea,_0x5478da,_0x9126d){const _0x430a11=a181_0x272cd0,_0x58bec9=normalizeBffType(_0x214fd3['scriptType']);if(!_0x58bec9||!_0x214fd3[_0x430a11(0x12c)])return null;if(_0x58bec9===_0x430a11(0x123)){const _0x170391=(_0x214fd3['id']?_0x44a5ea['get'](_0x214fd3['id']):undefined)??findHookLocationByRemoteId(_0x5478da,_0x214fd3['id']);if(!_0x170391)return null;const _0x33cd75=_0x170391[_0x430a11(0x137)]||_0x9126d[_0x430a11(0x13b)](_0x170391[_0x430a11(0x140)]),_0x11eb27=_0x33cd75??_0x170391['datasetCode'],_0xec57e5={..._0x170391,'alias':_0x33cd75},_0x19253d=_0x430a11(0x135)+_0x11eb27+'/'+_0xec57e5[_0x430a11(0x128)]+'/'+_0xec57e5[_0x430a11(0x13f)]+'/'+_0x214fd3[_0x430a11(0x12c)];return{'lockKey':_0x19253d,'filePath':resolveLocalFilePathFromLockKey(_0x5ab1f9,_0x19253d),'type':_0x430a11(0x123),'hookLocation':_0xec57e5};}const _0x216ff1=_0x58bec9+'/'+_0x214fd3['functionName'];return{'lockKey':_0x216ff1,'filePath':resolveLocalFilePathFromLockKey(_0x5ab1f9,_0x216ff1),'type':_0x58bec9};}export async function ensureParentDirectory(_0x53f1f3){await mkdir(dirname(_0x53f1f3),{'recursive':!![]});}export async function fileExists(_0x2a9def){try{return await access(_0x2a9def,constants['F_OK']),!![];}catch{return![];}}function a181_0x4c19(_0xc4fa90,_0xfe5928){_0xc4fa90=_0xc4fa90-0x123;const _0x21155a=a181_0x2115();let _0x4c1916=_0x21155a[_0xc4fa90];return _0x4c1916;}export async function directoryExists(_0x247af0){const _0x38c6be=a181_0x272cd0;try{const _0x430ef9=await stat(_0x247af0);return _0x430ef9[_0x38c6be(0x142)]();}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x3188fd,_0xb16aed){const _0xc1f737=a182_0x451d,_0x271ec4=_0x3188fd();while(!![]){try{const _0x5dbe39=parseInt(_0xc1f737(0x1bb))/0x1*(-parseInt(_0xc1f737(0x1bd))/0x2)+parseInt(_0xc1f737(0x1bc))/0x3+parseInt(_0xc1f737(0x1ba))/0x4+parseInt(_0xc1f737(0x1c3))/0x5+-parseInt(_0xc1f737(0x1c1))/0x6+-parseInt(_0xc1f737(0x1b8))/0x7*(parseInt(_0xc1f737(0x1b6))/0x8)+-parseInt(_0xc1f737(0x1be))/0x9;if(_0x5dbe39===_0xb16aed)break;else _0x271ec4['push'](_0x271ec4['shift']());}catch(_0x299734){_0x271ec4['push'](_0x271ec4['shift']());}}}(a182_0x121e,0xb194b));function a182_0x451d(_0x1a8022,_0x5bc217){_0x1a8022=_0x1a8022-0x1b5;const _0x121e6c=a182_0x121e();let _0x451d5b=_0x121e6c[_0x1a8022];return _0x451d5b;}function a182_0x121e(){const _0x176666=['update','3168420pJenwK','md5','1662025Pmwjem','digest','4856yxUmty','hex','5201xmVUbT','createHash','4241788SsjfOn','1oZrcrm','4264821kffCmG','1070246GqmTPJ','5156046KQylkh','utf8'];a182_0x121e=function(){return _0x176666;};return a182_0x121e();}import{readFile}from'node:fs/promises';import a182_0x3cadab from'node:crypto';export function computeContentHash(_0x20f3e4){const _0x516d8c=a182_0x451d;return a182_0x3cadab[_0x516d8c(0x1b9)](_0x516d8c(0x1c2))[_0x516d8c(0x1c0)](_0x20f3e4)[_0x516d8c(0x1b5)](_0x516d8c(0x1b7));}export async function computeFileHash(_0x397863){const _0x23691f=a182_0x451d,_0x25a45a=await readFile(_0x397863,_0x23691f(0x1bf));return computeContentHash(_0x25a45a);}
1
+ (function(_0x135f7f,_0x33b4fc){const _0x4048e4=a182_0x1298,_0x165b68=_0x135f7f();while(!![]){try{const _0x203c50=parseInt(_0x4048e4(0xea))/0x1+parseInt(_0x4048e4(0xe9))/0x2*(parseInt(_0x4048e4(0xe0))/0x3)+-parseInt(_0x4048e4(0xdf))/0x4*(parseInt(_0x4048e4(0xe5))/0x5)+parseInt(_0x4048e4(0xed))/0x6+-parseInt(_0x4048e4(0xe7))/0x7*(parseInt(_0x4048e4(0xde))/0x8)+parseInt(_0x4048e4(0xe6))/0x9*(-parseInt(_0x4048e4(0xe1))/0xa)+parseInt(_0x4048e4(0xe2))/0xb;if(_0x203c50===_0x33b4fc)break;else _0x165b68['push'](_0x165b68['shift']());}catch(_0x46e6e8){_0x165b68['push'](_0x165b68['shift']());}}}(a182_0x2e71,0x25714));import{readFile}from'node:fs/promises';import a182_0x394072 from'node:crypto';function a182_0x2e71(){const _0x33dc7f=['digest','md5','534966JOihPU','16MAEudL','115564yIacXT','21rIfurL','30WUQseN','460449GYPmpo','utf8','hex','5NGbCxI','738117KPGhhl','83650Ywfntt','update','60022UHfUoA','111097aquHur'];a182_0x2e71=function(){return _0x33dc7f;};return a182_0x2e71();}export function computeContentHash(_0x1bd1f8){const _0x1fd6ed=a182_0x1298;return a182_0x394072['createHash'](_0x1fd6ed(0xec))[_0x1fd6ed(0xe8)](_0x1bd1f8)[_0x1fd6ed(0xeb)](_0x1fd6ed(0xe4));}function a182_0x1298(_0x54ab2c,_0x2a6bc7){_0x54ab2c=_0x54ab2c-0xde;const _0x2e7167=a182_0x2e71();let _0x12983a=_0x2e7167[_0x54ab2c];return _0x12983a;}export async function computeFileHash(_0xb7da37){const _0x29dec1=a182_0x1298,_0x145cbd=await readFile(_0xb7da37,_0x29dec1(0xe3));return computeContentHash(_0x145cbd);}
@@ -1 +1 @@
1
- (function(_0x3ee860,_0x490621){const _0x17db34=a183_0x5c47,_0x17f1f2=_0x3ee860();while(!![]){try{const _0x592026=parseInt(_0x17db34(0x10b))/0x1*(-parseInt(_0x17db34(0xfd))/0x2)+-parseInt(_0x17db34(0x101))/0x3+-parseInt(_0x17db34(0xf9))/0x4+-parseInt(_0x17db34(0x105))/0x5*(-parseInt(_0x17db34(0x106))/0x6)+parseInt(_0x17db34(0x10a))/0x7*(parseInt(_0x17db34(0x100))/0x8)+-parseInt(_0x17db34(0x104))/0x9+-parseInt(_0x17db34(0xf6))/0xa*(-parseInt(_0x17db34(0x108))/0xb);if(_0x592026===_0x490621)break;else _0x17f1f2['push'](_0x17f1f2['shift']());}catch(_0x5284c4){_0x17f1f2['push'](_0x17f1f2['shift']());}}}(a183_0x101a,0x1a3cb));import{mkdir,readFile,writeFile}from'node:fs/promises';function a183_0x5c47(_0x428527,_0x63c29){_0x428527=_0x428527-0xf3;const _0x101a60=a183_0x101a();let _0x5c4758=_0x101a60[_0x428527];return _0x5c4758;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x2535b6,_0x1de3f0,_0xf72968,_0xdca4ff){const _0x565c45=a183_0x5c47,_0x4a7686={'apps':_0x2535b6[_0x565c45(0xfa)]&&typeof _0x2535b6[_0x565c45(0xfa)]===_0x565c45(0x107)?_0x2535b6[_0x565c45(0xfa)]:{}};let _0x3688cb=_0x4a7686[_0x565c45(0xfa)][_0x1de3f0];if(!_0x3688cb)return _0x3688cb={'scriptsRoot':_0xf72968,'lastSync':'','functions':{}},_0x4a7686[_0x565c45(0xfa)][_0x1de3f0]=_0x3688cb,{'lockData':_0x4a7686,'appLock':_0x3688cb};if(!_0x3688cb[_0x565c45(0xf5)])_0x3688cb['scriptsRoot']=_0xf72968;else{if(_0x3688cb[_0x565c45(0xf5)]!==_0xf72968)throw new Error(_0xdca4ff+_0x565c45(0x109)+('current\x20\x22'+_0xf72968+_0x565c45(0xfb)+_0x3688cb[_0x565c45(0xf5)]+_0x565c45(0xf7))+_0x565c45(0x102));}return!_0x3688cb['functions']&&(_0x3688cb[_0x565c45(0xfc)]={}),!_0x3688cb[_0x565c45(0xf8)]&&(_0x3688cb['lastSync']=''),{'lockData':_0x4a7686,'appLock':_0x3688cb};}export async function readBffLockFile(_0x3a2fdd){const _0x75eb1f=a183_0x5c47;try{const _0x201d00=await readFile(_0x3a2fdd,'utf8'),_0x27bbf8=JSON['parse'](_0x201d00);return{'apps':_0x27bbf8[_0x75eb1f(0xfa)]&&typeof _0x27bbf8[_0x75eb1f(0xfa)]===_0x75eb1f(0x107)?_0x27bbf8[_0x75eb1f(0xfa)]:{}};}catch(_0x539c30){if(_0x539c30[_0x75eb1f(0xff)]===_0x75eb1f(0x103))return null;throw new Error(_0x75eb1f(0xf3)+String(_0x539c30));}}function a183_0x101a(){const _0x38b245=['1170872WAHwtF','319878QEJjku','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','ENOENT','989145NFKyVV','31190YXXmcG','180gEkPLF','object','86746vgROZK',':\x20scriptsRoot\x20mismatch\x20—\x20','7RksBLJ','42491DgwaUG','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','stringify','scriptsRoot','300FNFPCp','\x22.\x20','lastSync','644396ltIHlt','apps','\x22\x20vs\x20lock\x20\x22','functions','4IygyXi','utf8','code'];a183_0x101a=function(){return _0x38b245;};return a183_0x101a();}export async function writeBffLockFile(_0x2f1882,_0x3ba7fa){const _0x34d19a=a183_0x5c47;await mkdir(dirname(_0x2f1882),{'recursive':!![]}),await writeFile(_0x2f1882,JSON[_0x34d19a(0xf4)](_0x3ba7fa,null,0x2),_0x34d19a(0xfe));}
1
+ (function(_0x45d6f9,_0x542cc5){const _0x2e1d85=a183_0x3c7f,_0x30048d=_0x45d6f9();while(!![]){try{const _0x42f355=parseInt(_0x2e1d85(0xd5))/0x1+parseInt(_0x2e1d85(0xc7))/0x2*(-parseInt(_0x2e1d85(0xd8))/0x3)+parseInt(_0x2e1d85(0xc5))/0x4+-parseInt(_0x2e1d85(0xda))/0x5*(-parseInt(_0x2e1d85(0xd9))/0x6)+-parseInt(_0x2e1d85(0xc8))/0x7*(parseInt(_0x2e1d85(0xc3))/0x8)+parseInt(_0x2e1d85(0xca))/0x9*(parseInt(_0x2e1d85(0xc6))/0xa)+-parseInt(_0x2e1d85(0xd1))/0xb*(parseInt(_0x2e1d85(0xcf))/0xc);if(_0x42f355===_0x542cc5)break;else _0x30048d['push'](_0x30048d['shift']());}catch(_0x36f690){_0x30048d['push'](_0x30048d['shift']());}}}(a183_0x1d0d,0x24bf0));import{mkdir,readFile,writeFile}from'node:fs/promises';function a183_0x1d0d(){const _0x26c093=['49482hCwjdM','stringify','object',':\x20scriptsRoot\x20mismatch\x20—\x20','utf8','12wUZaOJ','ENOENT','3523157VoJLlG','lastSync','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','current\x20\x22','276478YLklpw','scriptsRoot','code','24TshTgb','322710kfcmaE','25ennjVX','parse','\x22.\x20','4792QdlVHE','apps','485044JLXllh','430voaMsK','43228KKDlRJ','3031QuBXhC','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'];a183_0x1d0d=function(){return _0x26c093;};return a183_0x1d0d();}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x40a24f,_0x183b18,_0x3282e4,_0x3b3377){const _0x2f9dac=a183_0x3c7f,_0x50c6dd={'apps':_0x40a24f[_0x2f9dac(0xc4)]&&typeof _0x40a24f[_0x2f9dac(0xc4)]===_0x2f9dac(0xcc)?_0x40a24f['apps']:{}};let _0x3e6aa2=_0x50c6dd[_0x2f9dac(0xc4)][_0x183b18];if(!_0x3e6aa2)return _0x3e6aa2={'scriptsRoot':_0x3282e4,'lastSync':'','functions':{}},_0x50c6dd[_0x2f9dac(0xc4)][_0x183b18]=_0x3e6aa2,{'lockData':_0x50c6dd,'appLock':_0x3e6aa2};if(!_0x3e6aa2['scriptsRoot'])_0x3e6aa2[_0x2f9dac(0xd6)]=_0x3282e4;else{if(_0x3e6aa2['scriptsRoot']!==_0x3282e4)throw new Error(_0x3b3377+_0x2f9dac(0xcd)+(_0x2f9dac(0xd4)+_0x3282e4+'\x22\x20vs\x20lock\x20\x22'+_0x3e6aa2[_0x2f9dac(0xd6)]+_0x2f9dac(0xc2))+_0x2f9dac(0xd3));}return!_0x3e6aa2['functions']&&(_0x3e6aa2['functions']={}),!_0x3e6aa2[_0x2f9dac(0xd2)]&&(_0x3e6aa2['lastSync']=''),{'lockData':_0x50c6dd,'appLock':_0x3e6aa2};}export async function readBffLockFile(_0x35c498){const _0x261178=a183_0x3c7f;try{const _0x1f9dfc=await readFile(_0x35c498,_0x261178(0xce)),_0x50cfd3=JSON[_0x261178(0xdb)](_0x1f9dfc);return{'apps':_0x50cfd3['apps']&&typeof _0x50cfd3[_0x261178(0xc4)]==='object'?_0x50cfd3[_0x261178(0xc4)]:{}};}catch(_0x1f7c73){if(_0x1f7c73[_0x261178(0xd7)]===_0x261178(0xd0))return null;throw new Error(_0x261178(0xc9)+String(_0x1f7c73));}}function a183_0x3c7f(_0x173ae8,_0x4b133b){_0x173ae8=_0x173ae8-0xc2;const _0x1d0d56=a183_0x1d0d();let _0x3c7fdd=_0x1d0d56[_0x173ae8];return _0x3c7fdd;}export async function writeBffLockFile(_0x39424a,_0x1fc9cf){const _0x247fb0=a183_0x3c7f;await mkdir(dirname(_0x39424a),{'recursive':!![]}),await writeFile(_0x39424a,JSON[_0x247fb0(0xcb)](_0x1fc9cf,null,0x2),_0x247fb0(0xce));}
@@ -1 +1 @@
1
- (function(_0x3226c8,_0x41c394){const _0xf0d7d8=a185_0x569c,_0xae3b53=_0x3226c8();while(!![]){try{const _0x439a5e=-parseInt(_0xf0d7d8(0x10d))/0x1*(parseInt(_0xf0d7d8(0x113))/0x2)+-parseInt(_0xf0d7d8(0x114))/0x3+-parseInt(_0xf0d7d8(0x112))/0x4*(-parseInt(_0xf0d7d8(0x118))/0x5)+parseInt(_0xf0d7d8(0x106))/0x6*(-parseInt(_0xf0d7d8(0x111))/0x7)+parseInt(_0xf0d7d8(0x10b))/0x8+-parseInt(_0xf0d7d8(0x110))/0x9*(-parseInt(_0xf0d7d8(0x107))/0xa)+-parseInt(_0xf0d7d8(0x10c))/0xb;if(_0x439a5e===_0x41c394)break;else _0xae3b53['push'](_0xae3b53['shift']());}catch(_0x593d0f){_0xae3b53['push'](_0xae3b53['shift']());}}}(a185_0x2867,0x47885));export function snakeToCamel(_0x3dcfe5){const _0x3a420f=a185_0x569c;return _0x3dcfe5[_0x3a420f(0x119)]()['replace'](/_([a-z])/g,(_0x68790a,_0xd4ca60)=>_0xd4ca60[_0x3a420f(0x11b)]());}export function findHookLocationByRemoteId(_0x5dd851,_0x5df43b){const _0x25371f=a185_0x569c;if(!_0x5df43b)return undefined;for(const _0x5037e7 of Object[_0x25371f(0x115)](_0x5dd851)){if(_0x5037e7[_0x25371f(0x116)]===_0x5df43b&&_0x5037e7[_0x25371f(0x117)]&&_0x5037e7[_0x25371f(0x10a)]&&_0x5037e7[_0x25371f(0x10e)])return{'datasetCode':_0x5037e7[_0x25371f(0x117)],'operationType':_0x5037e7[_0x25371f(0x10a)],'functionNode':_0x5037e7['functionNode']};}return undefined;}export function extractScriptDescription(_0x58f666){const _0x22adae=a185_0x569c,_0x18c3aa=_0x58f666[_0x22adae(0x109)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x18c3aa?.[0x1]?.[_0x22adae(0x105)]()||undefined;}function a185_0x569c(_0x2ff025,_0x1cb19f){_0x2ff025=_0x2ff025-0x105;const _0x28672c=a185_0x2867();let _0x569cef=_0x28672c[_0x2ff025];return _0x569cef;}export function isValidBffFunctionName(_0x3a0693){const _0x225228=a185_0x569c;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x225228(0x10f)](_0x3a0693);}function a185_0x2867(){const _0x4e1364=['3124496cyozym','3114331HkqiNH','29REmHXi','functionNode','test','153ByZQNE','7zvJKDk','167036CrFrTT','33404PFigPq','262623CbfZJR','values','remoteId','datasetCode','50mzmteJ','toLowerCase','after','toUpperCase','trim','1324260sGiSAP','329750AZcyNc','before','match','operationType'];a185_0x2867=function(){return _0x4e1364;};return a185_0x2867();}export function normalizeHookFunctionNode(_0x1b1373){const _0x3ceaa3=a185_0x569c;if(!_0x1b1373)return undefined;const _0x4fcbc3=_0x1b1373['trim']()[_0x3ceaa3(0x119)]();if(_0x4fcbc3===_0x3ceaa3(0x108)||_0x4fcbc3===_0x3ceaa3(0x11a))return _0x4fcbc3;return undefined;}
1
+ (function(_0x245916,_0xa1b74f){const _0x36fcd7=a185_0x430b,_0x213019=_0x245916();while(!![]){try{const _0x1d05b8=parseInt(_0x36fcd7(0x1c4))/0x1+parseInt(_0x36fcd7(0x1c1))/0x2+parseInt(_0x36fcd7(0x1cc))/0x3+-parseInt(_0x36fcd7(0x1c5))/0x4+parseInt(_0x36fcd7(0x1c6))/0x5+parseInt(_0x36fcd7(0x1c7))/0x6*(-parseInt(_0x36fcd7(0x1bd))/0x7)+parseInt(_0x36fcd7(0x1bf))/0x8*(-parseInt(_0x36fcd7(0x1c2))/0x9);if(_0x1d05b8===_0xa1b74f)break;else _0x213019['push'](_0x213019['shift']());}catch(_0x3b5027){_0x213019['push'](_0x213019['shift']());}}}(a185_0x1222,0xcbdc0));export function snakeToCamel(_0x127d49){const _0x436069=a185_0x430b;return _0x127d49['toLowerCase']()[_0x436069(0x1cb)](/_([a-z])/g,(_0x5f5494,_0x27c0c9)=>_0x27c0c9['toUpperCase']());}function a185_0x1222(){const _0xd4611a=['toLowerCase','1442325zWaMYQ','3869096RVLWGG','2425710LdauzS','1680582ppbLqP','after','remoteId','operationType','replace','3275955gomFka','trim','datasetCode','values','before','functionNode','21JsPRkW','match','16AWcmLz','test','3066330NRwLrp','8595198dlLKjC'];a185_0x1222=function(){return _0xd4611a;};return a185_0x1222();}function a185_0x430b(_0x4a4abd,_0x420ead){_0x4a4abd=_0x4a4abd-0x1bb;const _0x12220b=a185_0x1222();let _0x430bbc=_0x12220b[_0x4a4abd];return _0x430bbc;}export function findHookLocationByRemoteId(_0x46766d,_0x204cd7){const _0x45e89b=a185_0x430b;if(!_0x204cd7)return undefined;for(const _0x4c320b of Object[_0x45e89b(0x1cf)](_0x46766d)){if(_0x4c320b[_0x45e89b(0x1c9)]===_0x204cd7&&_0x4c320b[_0x45e89b(0x1ce)]&&_0x4c320b[_0x45e89b(0x1ca)]&&_0x4c320b[_0x45e89b(0x1bc)])return{'datasetCode':_0x4c320b['datasetCode'],'operationType':_0x4c320b[_0x45e89b(0x1ca)],'functionNode':_0x4c320b[_0x45e89b(0x1bc)]};}return undefined;}export function extractScriptDescription(_0x3fe69f){const _0x2cefc7=a185_0x430b,_0x24a4eb=_0x3fe69f[_0x2cefc7(0x1be)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x24a4eb?.[0x1]?.[_0x2cefc7(0x1cd)]()||undefined;}export function isValidBffFunctionName(_0x2fb43c){const _0x34bdfb=a185_0x430b;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x34bdfb(0x1c0)](_0x2fb43c);}export function normalizeHookFunctionNode(_0x55f5af){const _0x2b0c7c=a185_0x430b;if(!_0x55f5af)return undefined;const _0x20bf1a=_0x55f5af[_0x2b0c7c(0x1cd)]()[_0x2b0c7c(0x1c3)]();if(_0x20bf1a===_0x2b0c7c(0x1bb)||_0x20bf1a===_0x2b0c7c(0x1c8))return _0x20bf1a;return undefined;}
@@ -1 +1 @@
1
- (function(_0x23b37e,_0x2ffd60){const _0x3739a0=a186_0x3a7e,_0x553740=_0x23b37e();while(!![]){try{const _0x3b94f4=-parseInt(_0x3739a0(0xf1))/0x1*(parseInt(_0x3739a0(0xf3))/0x2)+-parseInt(_0x3739a0(0xe9))/0x3*(parseInt(_0x3739a0(0xf9))/0x4)+-parseInt(_0x3739a0(0xee))/0x5+parseInt(_0x3739a0(0xfe))/0x6+parseInt(_0x3739a0(0xe8))/0x7*(parseInt(_0x3739a0(0xf7))/0x8)+parseInt(_0x3739a0(0xe7))/0x9+-parseInt(_0x3739a0(0xfc))/0xa*(-parseInt(_0x3739a0(0x100))/0xb);if(_0x3b94f4===_0x2ffd60)break;else _0x553740['push'](_0x553740['shift']());}catch(_0x144ee5){_0x553740['push'](_0x553740['shift']());}}}(a186_0x4ed4,0x2a36e));import{listDatasets}from'../core/api-client.js';function a186_0x3a7e(_0x247f1b,_0x52dd0c){_0x247f1b=_0x247f1b-0xe7;const _0x4ed45d=a186_0x4ed4();let _0x3a7e1c=_0x4ed45d[_0x247f1b];return _0x3a7e1c;}const cache=new Map();export async function listDatabases(_0x92fe31){const _0xe9a78f=a186_0x3a7e;if(cache[_0xe9a78f(0xef)](_0x92fe31))return cache[_0xe9a78f(0xeb)](_0x92fe31);const _0x58464e=await listDatasets(_0x92fe31),_0x5cbbb7=new Map();for(const _0x176ca0 of _0x58464e){const _0x2f9048=_0x176ca0[_0xe9a78f(0x103)];_0x2f9048?.[_0xe9a78f(0xfb)]!=null&&_0x5cbbb7[_0xe9a78f(0xfa)](_0x2f9048[_0xe9a78f(0xfb)],_0x2f9048[_0xe9a78f(0x106)]??_0xe9a78f(0xfd)+_0x2f9048[_0xe9a78f(0xfb)]);}const _0x6e829=[..._0x5cbbb7['entries']()][_0xe9a78f(0xff)](([_0x299d4b,_0x34723a])=>({'dbId':_0x299d4b,'dbName':_0x34723a}));return cache[_0xe9a78f(0xfa)](_0x92fe31,_0x6e829),_0x6e829;}export async function resolveDb(_0x236e83,_0x543917){const _0x5ac7e7=a186_0x3a7e,_0x38e504=await listDatabases(_0x236e83);if(_0x38e504['length']===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x236e83+_0x5ac7e7(0xf8)};if(!_0x543917)return{'resolved':_0x38e504};const _0x3a49b8=Number(_0x543917);if(!Number[_0x5ac7e7(0xf5)](_0x3a49b8)){const _0x5e8c2e=_0x38e504[_0x5ac7e7(0xed)](_0x507339=>_0x507339[_0x5ac7e7(0xfb)]===_0x3a49b8);if(_0x5e8c2e)return{'resolved':[_0x5e8c2e]};}const _0xee9067=_0x543917['toLowerCase'](),_0x3e3929=_0x38e504[_0x5ac7e7(0xf4)](_0x1cec48=>_0x1cec48[_0x5ac7e7(0x106)][_0x5ac7e7(0xf6)]()[_0x5ac7e7(0xf0)](_0xee9067));if(_0x3e3929['length']>0x0)return{'resolved':_0x3e3929};const _0x23df24=_0x38e504['map'](_0x114375=>_0x114375['dbName']+'\x20('+_0x114375[_0x5ac7e7(0xfb)]+')')[_0x5ac7e7(0x105)](',\x20');return{'resolved':[],'error':_0x5ac7e7(0x101)+_0x543917+'\x22\x20under\x20app\x20\x22'+_0x236e83+_0x5ac7e7(0xec)+_0x23df24+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0xc1b434,_0x116187){const _0x1a82a4=a186_0x3a7e,{resolved:_0x10a65f,error:_0x49075e}=await resolveDb(_0xc1b434,_0x116187);if(_0x49075e)return{'db':null,'error':_0x49075e};if(_0x10a65f[_0x1a82a4(0xf2)]===0x1)return{'db':_0x10a65f[0x0]};if(!_0x116187){const _0x2d3d9a=_0x10a65f[_0x1a82a4(0xff)](_0x2a4164=>_0x2a4164['dbName']+'\x20('+_0x2a4164[_0x1a82a4(0xfb)]+')')['join'](',\x20');return{'db':null,'error':_0x1a82a4(0x104)+_0x2d3d9a};}const _0x594f7a=_0x10a65f['map'](_0x25fd96=>_0x25fd96[_0x1a82a4(0x106)]+'\x20('+_0x25fd96[_0x1a82a4(0xfb)]+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x116187+_0x1a82a4(0xea)+_0x594f7a+_0x1a82a4(0x102)};}function a186_0x4ed4(){const _0x49a9f3=['Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','join','dbName','1809405ZqCXXS','1974gulNds','281328JnMlbQ','\x22\x20matches\x20multiple\x20databases:\x20','get','\x22.\x20Available:\x20','find','1544270kYbrKk','has','includes','41hTJAvk','length','4794oFTpWb','filter','isNaN','toLowerCase','3832QHsJyt','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','4PrApCg','set','dbId','15090LNkTUH','db-','224418YPTbNX','map','2189KZLqJP','No\x20database\x20matching\x20\x22','.\x20Be\x20more\x20specific.','dbtableConfig'];a186_0x4ed4=function(){return _0x49a9f3;};return a186_0x4ed4();}export async function getDbName(_0x37412c,_0x20fbea){const _0x3c37ee=a186_0x3a7e,_0x83d598=await listDatabases(_0x37412c);return _0x83d598['find'](_0x5b09cc=>_0x5b09cc[_0x3c37ee(0xfb)]===_0x20fbea)?.[_0x3c37ee(0x106)];}
1
+ (function(_0x33d80b,_0x26b7cd){const _0x55da52=a186_0x6a29,_0x4937ab=_0x33d80b();while(!![]){try{const _0x383582=-parseInt(_0x55da52(0xcf))/0x1*(-parseInt(_0x55da52(0xc4))/0x2)+-parseInt(_0x55da52(0xc7))/0x3*(parseInt(_0x55da52(0xcc))/0x4)+-parseInt(_0x55da52(0xc1))/0x5+-parseInt(_0x55da52(0xd8))/0x6+-parseInt(_0x55da52(0xb9))/0x7*(-parseInt(_0x55da52(0xd6))/0x8)+parseInt(_0x55da52(0xbc))/0x9*(parseInt(_0x55da52(0xcd))/0xa)+-parseInt(_0x55da52(0xd4))/0xb*(parseInt(_0x55da52(0xce))/0xc);if(_0x383582===_0x26b7cd)break;else _0x4937ab['push'](_0x4937ab['shift']());}catch(_0x3399aa){_0x4937ab['push'](_0x4937ab['shift']());}}}(a186_0x3c78,0xb496f));function a186_0x3c78(){const _0x9d0dfd=['length','2pWiOvO','includes','join','26652MFCXDT','has','\x22\x20under\x20app\x20\x22','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','dbId','236kcxiVQ','10MJMUSg','11362116QDlurI','543775sxBcwR','\x22\x20matches\x20multiple\x20databases:\x20','\x22.\x20Available:\x20','entries','find','11NMhhBJ','set','24tvecFE','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','2013234EzcyiR','dbName','toLowerCase','2719857LSbgUF','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','isNaN','8984457WFYQQj','map','get','No\x20database\x20matching\x20\x22','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','807340GAlxgL','dbtableConfig'];a186_0x3c78=function(){return _0x9d0dfd;};return a186_0x3c78();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x2afe76){const _0x45c27a=a186_0x6a29;if(cache[_0x45c27a(0xc8)](_0x2afe76))return cache[_0x45c27a(0xbe)](_0x2afe76);const _0x3a9506=await listDatasets(_0x2afe76),_0x4acd80=new Map();for(const _0x80fdc3 of _0x3a9506){const _0x1d3057=_0x80fdc3[_0x45c27a(0xc2)];_0x1d3057?.['dbId']!=null&&_0x4acd80[_0x45c27a(0xd5)](_0x1d3057[_0x45c27a(0xcb)],_0x1d3057[_0x45c27a(0xd9)]??'db-'+_0x1d3057['dbId']);}const _0x55ba56=[..._0x4acd80[_0x45c27a(0xd2)]()][_0x45c27a(0xbd)](([_0x5ad83f,_0x1b5b5b])=>({'dbId':_0x5ad83f,'dbName':_0x1b5b5b}));return cache[_0x45c27a(0xd5)](_0x2afe76,_0x55ba56),_0x55ba56;}export async function resolveDb(_0x19adc9,_0x2424ec){const _0x3e89d7=a186_0x6a29,_0x24e618=await listDatabases(_0x19adc9);if(_0x24e618[_0x3e89d7(0xc3)]===0x0)return{'resolved':[],'error':_0x3e89d7(0xca)+_0x19adc9+_0x3e89d7(0xd7)};if(!_0x2424ec)return{'resolved':_0x24e618};const _0x212ff6=Number(_0x2424ec);if(!Number[_0x3e89d7(0xbb)](_0x212ff6)){const _0x503b4=_0x24e618['find'](_0x3ea878=>_0x3ea878[_0x3e89d7(0xcb)]===_0x212ff6);if(_0x503b4)return{'resolved':[_0x503b4]};}const _0x47189c=_0x2424ec[_0x3e89d7(0xda)](),_0x5888fb=_0x24e618['filter'](_0x318edf=>_0x318edf[_0x3e89d7(0xd9)][_0x3e89d7(0xda)]()[_0x3e89d7(0xc5)](_0x47189c));if(_0x5888fb[_0x3e89d7(0xc3)]>0x0)return{'resolved':_0x5888fb};const _0x338467=_0x24e618[_0x3e89d7(0xbd)](_0x2d96b5=>_0x2d96b5[_0x3e89d7(0xd9)]+'\x20('+_0x2d96b5[_0x3e89d7(0xcb)]+')')[_0x3e89d7(0xc6)](',\x20');return{'resolved':[],'error':_0x3e89d7(0xbf)+_0x2424ec+_0x3e89d7(0xc9)+_0x19adc9+_0x3e89d7(0xd1)+_0x338467+_0x3e89d7(0xba)};}export async function resolveOneDb(_0x4fc1d7,_0x32e360){const _0x138068=a186_0x6a29,{resolved:_0x33d61a,error:_0x971784}=await resolveDb(_0x4fc1d7,_0x32e360);if(_0x971784)return{'db':null,'error':_0x971784};if(_0x33d61a[_0x138068(0xc3)]===0x1)return{'db':_0x33d61a[0x0]};if(!_0x32e360){const _0x11f6de=_0x33d61a[_0x138068(0xbd)](_0x2684db=>_0x2684db[_0x138068(0xd9)]+'\x20('+_0x2684db[_0x138068(0xcb)]+')')[_0x138068(0xc6)](',\x20');return{'db':null,'error':_0x138068(0xc0)+_0x11f6de};}const _0x39e11f=_0x33d61a['map'](_0x42ccf9=>_0x42ccf9[_0x138068(0xd9)]+'\x20('+_0x42ccf9['dbId']+')')[_0x138068(0xc6)](',\x20');return{'db':null,'error':'\x22'+_0x32e360+_0x138068(0xd0)+_0x39e11f+'.\x20Be\x20more\x20specific.'};}function a186_0x6a29(_0x5b8c72,_0x1c7fec){_0x5b8c72=_0x5b8c72-0xb9;const _0x3c78c3=a186_0x3c78();let _0x6a29ec=_0x3c78c3[_0x5b8c72];return _0x6a29ec;}export async function getDbName(_0x3f77b9,_0x3c8b22){const _0xb87eb3=a186_0x6a29,_0xdb68a=await listDatabases(_0x3f77b9);return _0xdb68a[_0xb87eb3(0xd3)](_0x2efd51=>_0x2efd51['dbId']===_0x3c8b22)?.[_0xb87eb3(0xd9)];}
@@ -1 +1 @@
1
- function a187_0x1db4(_0xaae2fa,_0x8c66b2){_0xaae2fa=_0xaae2fa-0x1d4;const _0x53f6b0=a187_0x53f6();let _0x1db494=_0x53f6b0[_0xaae2fa];return _0x1db494;}(function(_0x4e1a4f,_0x240e73){const _0x31489f=a187_0x1db4,_0x5559fa=_0x4e1a4f();while(!![]){try{const _0x2ef045=parseInt(_0x31489f(0x1d9))/0x1*(-parseInt(_0x31489f(0x1e0))/0x2)+parseInt(_0x31489f(0x1dc))/0x3*(-parseInt(_0x31489f(0x1e3))/0x4)+parseInt(_0x31489f(0x1dd))/0x5+parseInt(_0x31489f(0x1e4))/0x6*(-parseInt(_0x31489f(0x1d8))/0x7)+parseInt(_0x31489f(0x1d6))/0x8*(-parseInt(_0x31489f(0x1da))/0x9)+-parseInt(_0x31489f(0x1e1))/0xa+parseInt(_0x31489f(0x1db))/0xb;if(_0x2ef045===_0x240e73)break;else _0x5559fa['push'](_0x5559fa['shift']());}catch(_0x2f6c93){_0x5559fa['push'](_0x5559fa['shift']());}}}(a187_0x53f6,0x532c4));import{constants}from'node:fs';function a187_0x53f6(){const _0x12b7e4=['.json','3168EhLMJD','.rabetbase','286097gAQPRi','289075LVaLCP','360WaluWI','10889626xtMcJS','10383XMCYRg','1667715cCMcWu','page','toUpperCase','2JmzirL','694430BoJjQX','F_OK','656zYQRtk','6ZCsnoQ','appPagesDir'];a187_0x53f6=function(){return _0x12b7e4;};return a187_0x53f6();}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x4c4918,_0x5aba4d=process['cwd']()){const _0x8ed769=a187_0x1db4,_0x3755bd=resolve(_0x5aba4d),_0x117cb6=join(_0x3755bd,_0x8ed769(0x1d7),_0x8ed769(0x1de));return{'projectRoot':_0x3755bd,'pagesBaseDir':_0x117cb6,'appPagesDir':join(_0x117cb6,_0x4c4918),'lockFilePath':join(_0x3755bd,_0x8ed769(0x1d7),'page.lock.json')};}export function buildPageFileName(_0x4b2e28,_0x23a31f){const _0x2aea63=a187_0x1db4;return _0x4b2e28+'-'+String(_0x23a31f)[_0x2aea63(0x1df)]()+_0x2aea63(0x1d5);}export function resolvePageFilePath(_0x4451bf,_0x31327d,_0x435661){const _0x303cbf=a187_0x1db4;return join(_0x4451bf[_0x303cbf(0x1d4)],buildPageFileName(_0x31327d,_0x435661));}export async function ensureParentDirectory(_0x1f4ce3){await mkdir(dirname(_0x1f4ce3),{'recursive':!![]});}export async function fileExists(_0x59e8e9){const _0x16cbe6=a187_0x1db4;try{return await access(_0x59e8e9,constants[_0x16cbe6(0x1e2)]),!![];}catch{return![];}}
1
+ function a187_0x3c99(_0x238edb,_0x1dfc7b){_0x238edb=_0x238edb-0x1e3;const _0x340a29=a187_0x340a();let _0x3c992f=_0x340a29[_0x238edb];return _0x3c992f;}const a187_0x516b05=a187_0x3c99;(function(_0x567f08,_0x4400fa){const _0x41f6ea=a187_0x3c99,_0x1e8da1=_0x567f08();while(!![]){try{const _0x40aabd=-parseInt(_0x41f6ea(0x1e8))/0x1*(parseInt(_0x41f6ea(0x1eb))/0x2)+-parseInt(_0x41f6ea(0x1f0))/0x3*(parseInt(_0x41f6ea(0x1f3))/0x4)+-parseInt(_0x41f6ea(0x1e6))/0x5+-parseInt(_0x41f6ea(0x1e3))/0x6*(-parseInt(_0x41f6ea(0x1f1))/0x7)+-parseInt(_0x41f6ea(0x1ea))/0x8+parseInt(_0x41f6ea(0x1e4))/0x9*(parseInt(_0x41f6ea(0x1ec))/0xa)+-parseInt(_0x41f6ea(0x1e5))/0xb*(-parseInt(_0x41f6ea(0x1e7))/0xc);if(_0x40aabd===_0x4400fa)break;else _0x1e8da1['push'](_0x1e8da1['shift']());}catch(_0x2d1614){_0x1e8da1['push'](_0x1e8da1['shift']());}}}(a187_0x340a,0xeed46));import{constants}from'node:fs';function a187_0x340a(){const _0x137f2d=['page','3632346aPzrkZ','589673TnWcjK','F_OK','4JoQQvq','toUpperCase','cwd','24yXXoOR','98973qZHksy','77dcuiWo','4697830HOMBDa','9275244EQFila','609106WSCYdQ','appPagesDir','12227216MsMbrN','6NaGEoU','670vjVkhX','page.lock.json','.rabetbase'];a187_0x340a=function(){return _0x137f2d;};return a187_0x340a();}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x95742d,_0x5ad4c1=process[a187_0x516b05(0x1f5)]()){const _0x6e3cac=a187_0x516b05,_0x1b3294=resolve(_0x5ad4c1),_0x5c38a3=join(_0x1b3294,_0x6e3cac(0x1ee),_0x6e3cac(0x1ef));return{'projectRoot':_0x1b3294,'pagesBaseDir':_0x5c38a3,'appPagesDir':join(_0x5c38a3,_0x95742d),'lockFilePath':join(_0x1b3294,_0x6e3cac(0x1ee),_0x6e3cac(0x1ed))};}export function buildPageFileName(_0x43ff7a,_0x3d81b2){const _0x1bde7b=a187_0x516b05;return _0x43ff7a+'-'+String(_0x3d81b2)[_0x1bde7b(0x1f4)]()+'.json';}export function resolvePageFilePath(_0x4f8790,_0x405fe5,_0xba9670){const _0x493044=a187_0x516b05;return join(_0x4f8790[_0x493044(0x1e9)],buildPageFileName(_0x405fe5,_0xba9670));}export async function ensureParentDirectory(_0x1a82ca){await mkdir(dirname(_0x1a82ca),{'recursive':!![]});}export async function fileExists(_0x38f955){const _0xbaec30=a187_0x516b05;try{return await access(_0x38f955,constants[_0xbaec30(0x1f2)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a188_0x1a95(_0x58aceb,_0x561f49){_0x58aceb=_0x58aceb-0xac;const _0x3d57b3=a188_0x3d57();let _0x1a95f6=_0x3d57b3[_0x58aceb];return _0x1a95f6;}(function(_0x5b25e8,_0x3b8639){const _0x4068a4=a188_0x1a95,_0x4ad5ba=_0x5b25e8();while(!![]){try{const _0x3dacf9=-parseInt(_0x4068a4(0xb2))/0x1*(parseInt(_0x4068a4(0xaf))/0x2)+parseInt(_0x4068a4(0xb0))/0x3*(parseInt(_0x4068a4(0xb3))/0x4)+parseInt(_0x4068a4(0xb6))/0x5*(parseInt(_0x4068a4(0xbc))/0x6)+-parseInt(_0x4068a4(0xad))/0x7+parseInt(_0x4068a4(0xb4))/0x8*(parseInt(_0x4068a4(0xae))/0x9)+parseInt(_0x4068a4(0xbf))/0xa*(-parseInt(_0x4068a4(0xba))/0xb)+parseInt(_0x4068a4(0xbd))/0xc;if(_0x3dacf9===_0x3b8639)break;else _0x4ad5ba['push'](_0x4ad5ba['shift']());}catch(_0x15a68a){_0x4ad5ba['push'](_0x4ad5ba['shift']());}}}(a188_0x3d57,0x5b118));import a188_0x32e77e from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x1f952b){const _0x48a024=a188_0x1a95;return JSON[_0x48a024(0xbb)](JSON[_0x48a024(0xb9)](_0x1f952b),null,0x2)+'\x0a';}export function computePageContentHash(_0x34e57e){const _0x27832d=a188_0x1a95;return a188_0x32e77e[_0x27832d(0xb7)](_0x27832d(0xb1))[_0x27832d(0xb5)](_0x34e57e)[_0x27832d(0xac)](_0x27832d(0xb8));}function a188_0x3d57(){const _0x1a6e28=['3908DWmlBB','8XnzTJX','update','6660MuUVbe','createHash','hex','parse','22mjUcAS','stringify','2274MkpDuH','12214704ezdyHP','utf8','1844470PmkkLV','digest','5134010KlWXRD','3666249AxXBof','960286fIwUPx','78HUdieE','md5','1QNEIyQ'];a188_0x3d57=function(){return _0x1a6e28;};return a188_0x3d57();}export function computeSerializedSchemaHash(_0xaee12d){return computePageContentHash(serializePageSchemaForFile(_0xaee12d));}export async function computePageFileHash(_0x351d01){const _0x19e9f9=a188_0x1a95,_0x3e6199=await readFile(_0x351d01,_0x19e9f9(0xbe));return computePageContentHash(_0x3e6199);}
1
+ (function(_0x4ed223,_0x1ac0c7){const _0x4c7126=a188_0xe6a2,_0xed05f2=_0x4ed223();while(!![]){try{const _0x4cac47=parseInt(_0x4c7126(0x148))/0x1+parseInt(_0x4c7126(0x14a))/0x2+-parseInt(_0x4c7126(0x141))/0x3+parseInt(_0x4c7126(0x144))/0x4*(parseInt(_0x4c7126(0x13d))/0x5)+parseInt(_0x4c7126(0x146))/0x6+-parseInt(_0x4c7126(0x143))/0x7*(-parseInt(_0x4c7126(0x140))/0x8)+parseInt(_0x4c7126(0x13b))/0x9*(-parseInt(_0x4c7126(0x13e))/0xa);if(_0x4cac47===_0x1ac0c7)break;else _0xed05f2['push'](_0xed05f2['shift']());}catch(_0x434836){_0xed05f2['push'](_0xed05f2['shift']());}}}(a188_0x4074,0xb8eba));function a188_0xe6a2(_0x35f677,_0x28d184){_0x35f677=_0x35f677-0x13b;const _0x40746e=a188_0x4074();let _0xe6a298=_0x40746e[_0x35f677];return _0xe6a298;}import a188_0x59a21c from'node:crypto';import{readFile}from'node:fs/promises';function a188_0x4074(){const _0x34b977=['10081729QlUMiX','8PhFbHg','digest','4775556bdGORQ','hex','1467963YKrOEa','parse','2205622vPOAZJ','32584473HDPJiA','createHash','2290565SISdgR','10otQrkl','utf8','8IrVdbd','4035726FMaKwX','update'];a188_0x4074=function(){return _0x34b977;};return a188_0x4074();}export function serializePageSchemaForFile(_0x1220db){const _0x122e7d=a188_0xe6a2;return JSON['stringify'](JSON[_0x122e7d(0x149)](_0x1220db),null,0x2)+'\x0a';}export function computePageContentHash(_0xa4f4b6){const _0x4c3d82=a188_0xe6a2;return a188_0x59a21c[_0x4c3d82(0x13c)]('md5')[_0x4c3d82(0x142)](_0xa4f4b6)[_0x4c3d82(0x145)](_0x4c3d82(0x147));}export function computeSerializedSchemaHash(_0x398348){return computePageContentHash(serializePageSchemaForFile(_0x398348));}export async function computePageFileHash(_0x173067){const _0x1a7a5e=a188_0xe6a2,_0x382000=await readFile(_0x173067,_0x1a7a5e(0x13f));return computePageContentHash(_0x382000);}
@@ -1 +1 @@
1
- (function(_0x1b2ccd,_0x1e124d){const _0x521043=a189_0x4f3b,_0xcff472=_0x1b2ccd();while(!![]){try{const _0x1985df=parseInt(_0x521043(0xd8))/0x1*(-parseInt(_0x521043(0xdd))/0x2)+-parseInt(_0x521043(0xe0))/0x3*(-parseInt(_0x521043(0xd2))/0x4)+parseInt(_0x521043(0xce))/0x5*(parseInt(_0x521043(0xcd))/0x6)+-parseInt(_0x521043(0xd5))/0x7*(-parseInt(_0x521043(0xd1))/0x8)+-parseInt(_0x521043(0xd0))/0x9+-parseInt(_0x521043(0xdc))/0xa*(parseInt(_0x521043(0xdb))/0xb)+parseInt(_0x521043(0xd6))/0xc*(parseInt(_0x521043(0xda))/0xd);if(_0x1985df===_0x1e124d)break;else _0xcff472['push'](_0xcff472['shift']());}catch(_0x2e1d1a){_0xcff472['push'](_0xcff472['shift']());}}}(a189_0x4dc4,0x8ae31));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a189_0x4f3b(_0xf03646,_0xc88c2a){_0xf03646=_0xf03646-0xcd;const _0x4dc481=a189_0x4dc4();let _0x4f3baa=_0x4dc481[_0xf03646];return _0x4f3baa;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x16993d,_0x2ed6b1){const _0x1e4b87=a189_0x4f3b,_0x4afdd4={'apps':_0x16993d[_0x1e4b87(0xd9)]&&typeof _0x16993d[_0x1e4b87(0xd9)]==='object'?_0x16993d[_0x1e4b87(0xd9)]:{}};let _0x2e7669=_0x4afdd4[_0x1e4b87(0xd9)][_0x2ed6b1];if(!_0x2e7669)return _0x2e7669={'lastSync':'','pages':{}},_0x4afdd4['apps'][_0x2ed6b1]=_0x2e7669,{'lockData':_0x4afdd4,'appLock':_0x2e7669};return!_0x2e7669[_0x1e4b87(0xde)]&&(_0x2e7669['lastSync']=''),(!_0x2e7669[_0x1e4b87(0xd3)]||typeof _0x2e7669[_0x1e4b87(0xd3)]!==_0x1e4b87(0xd7))&&(_0x2e7669[_0x1e4b87(0xd3)]={}),{'lockData':_0x4afdd4,'appLock':_0x2e7669};}export async function readPageLockFile(_0xa2725f){const _0x9e8ef8=a189_0x4f3b;try{const _0x3c65d8=await readFile(_0xa2725f,_0x9e8ef8(0xcf)),_0x11ac23=JSON['parse'](_0x3c65d8);return{'apps':_0x11ac23[_0x9e8ef8(0xd9)]&&typeof _0x11ac23['apps']===_0x9e8ef8(0xd7)?_0x11ac23['apps']:{}};}catch(_0xba557){if(_0xba557['code']===_0x9e8ef8(0xd4))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0xba557));}}export async function writePageLockFile(_0x2dd28c,_0x4a5835){const _0x49a250=a189_0x4f3b;await mkdir(dirname(_0x2dd28c),{'recursive':!![]}),await writeFile(_0x2dd28c,JSON[_0x49a250(0xdf)](_0x4a5835,null,0x2),_0x49a250(0xcf));}function a189_0x4dc4(){const _0x370338=['2027WhOfwC','apps','13IaODCA','93929VepfDW','700HYkaWo','766InWavf','lastSync','stringify','439863EeAoEd','68898lKfRjx','235ZcuYfx','utf8','9937512MmUFtw','1336ELRFzH','12PjoSYz','pages','ENOENT','17129RqYYMS','19906884SxIRGW','object'];a189_0x4dc4=function(){return _0x370338;};return a189_0x4dc4();}
1
+ function a189_0x3a97(){const _0x4b46fb=['7995967EoVHDD','object','5058744MIXHNe','parse','423DjLmtj','lastSync','ENOENT','utf8','2556VefnJl','code','4141850hOLyhT','4430fTjKsL','18674nmvAXO','4612088IzjcyB','pages','474279vCAkYa','apps','27LOpnFt','Failed\x20to\x20read\x20page\x20lock\x20file:\x20'];a189_0x3a97=function(){return _0x4b46fb;};return a189_0x3a97();}(function(_0x43d2e3,_0x3bbae9){const _0x396f9d=a189_0x122f,_0x29da0e=_0x43d2e3();while(!![]){try{const _0x4c1fdc=-parseInt(_0x396f9d(0x12e))/0x1+parseInt(_0x396f9d(0x13e))/0x2*(parseInt(_0x396f9d(0x136))/0x3)+parseInt(_0x396f9d(0x134))/0x4+parseInt(_0x396f9d(0x13d))/0x5*(parseInt(_0x396f9d(0x13a))/0x6)+-parseInt(_0x396f9d(0x132))/0x7+parseInt(_0x396f9d(0x12c))/0x8+-parseInt(_0x396f9d(0x130))/0x9*(parseInt(_0x396f9d(0x13c))/0xa);if(_0x4c1fdc===_0x3bbae9)break;else _0x29da0e['push'](_0x29da0e['shift']());}catch(_0x11c5aa){_0x29da0e['push'](_0x29da0e['shift']());}}}(a189_0x3a97,0xa50c3));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a189_0x122f(_0x47b710,_0x13cb8a){_0x47b710=_0x47b710-0x12c;const _0x3a97ce=a189_0x3a97();let _0x122f56=_0x3a97ce[_0x47b710];return _0x122f56;}export function ensurePageLockScope(_0x1b6d48,_0x520875){const _0x4d266a=a189_0x122f,_0x5bcc74={'apps':_0x1b6d48[_0x4d266a(0x12f)]&&typeof _0x1b6d48[_0x4d266a(0x12f)]===_0x4d266a(0x133)?_0x1b6d48[_0x4d266a(0x12f)]:{}};let _0x1a9407=_0x5bcc74[_0x4d266a(0x12f)][_0x520875];if(!_0x1a9407)return _0x1a9407={'lastSync':'','pages':{}},_0x5bcc74[_0x4d266a(0x12f)][_0x520875]=_0x1a9407,{'lockData':_0x5bcc74,'appLock':_0x1a9407};return!_0x1a9407[_0x4d266a(0x137)]&&(_0x1a9407['lastSync']=''),(!_0x1a9407[_0x4d266a(0x12d)]||typeof _0x1a9407[_0x4d266a(0x12d)]!==_0x4d266a(0x133))&&(_0x1a9407['pages']={}),{'lockData':_0x5bcc74,'appLock':_0x1a9407};}export async function readPageLockFile(_0x13a367){const _0x69e7de=a189_0x122f;try{const _0x54faa4=await readFile(_0x13a367,_0x69e7de(0x139)),_0x593680=JSON[_0x69e7de(0x135)](_0x54faa4);return{'apps':_0x593680[_0x69e7de(0x12f)]&&typeof _0x593680[_0x69e7de(0x12f)]===_0x69e7de(0x133)?_0x593680[_0x69e7de(0x12f)]:{}};}catch(_0x39d911){if(_0x39d911[_0x69e7de(0x13b)]===_0x69e7de(0x138))return null;throw new Error(_0x69e7de(0x131)+String(_0x39d911));}}export async function writePageLockFile(_0x5c3544,_0x21b77f){const _0x24b568=a189_0x122f;await mkdir(dirname(_0x5c3544),{'recursive':!![]}),await writeFile(_0x5c3544,JSON['stringify'](_0x21b77f,null,0x2),_0x24b568(0x139));}
@@ -1 +1 @@
1
- const a191_0x2d67fa=a191_0x578a;(function(_0x14348d,_0x4de3d4){const _0x270def=a191_0x578a,_0x4b0ecc=_0x14348d();while(!![]){try{const _0x21bd23=-parseInt(_0x270def(0xd7))/0x1*(-parseInt(_0x270def(0xd5))/0x2)+parseInt(_0x270def(0xd0))/0x3+-parseInt(_0x270def(0xd4))/0x4+-parseInt(_0x270def(0xd1))/0x5+parseInt(_0x270def(0xd6))/0x6+-parseInt(_0x270def(0xd2))/0x7+parseInt(_0x270def(0xd8))/0x8*(parseInt(_0x270def(0xd3))/0x9);if(_0x21bd23===_0x4de3d4)break;else _0x4b0ecc['push'](_0x4b0ecc['shift']());}catch(_0x5706d6){_0x4b0ecc['push'](_0x4b0ecc['shift']());}}}(a191_0x15ce,0xa2651));function a191_0x578a(_0x30784d,_0x1ac4e9){_0x30784d=_0x30784d-0xd0;const _0x15ce47=a191_0x15ce();let _0x578a51=_0x15ce47[_0x30784d];return _0x578a51;}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a191_0x2d67fa(0xdc),LOCK_FILE_NAME=a191_0x2d67fa(0xda),TRASH_DIR_NAME=a191_0x2d67fa(0xdb);export function loadSqlProjectConfig(_0x503aee,_0x39d1da){const _0x2331b9=a191_0x2d67fa,_0x1d680e=resolve(_0x39d1da??findProjectRootDirectory()),_0x824318=DOT_DIR+_0x2331b9(0xd9),_0x504fe8=_0x824318+'/'+_0x503aee;return{'projectRoot':_0x1d680e,'appCode':_0x503aee,'sqlWorkspaceRoot':_0x824318,'sqlRoot':_0x504fe8,'sqlRootDir':resolve(_0x1d680e,DOT_DIR,'sql',_0x503aee),'lockFilePath':resolve(_0x1d680e,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x1d680e,DOT_DIR,TRASH_DIR_NAME)};}function a191_0x15ce(){const _0x395325=['1325342otclmv','80892EfZQdp','1NTJbSh','16880104DngLNS','/sql','sql.lock.json','sql-trash','.rabetbase','554469QWUgML','2300240plcTky','6977621bcAHBD','9dILtxC','3395876fMklPa'];a191_0x15ce=function(){return _0x395325;};return a191_0x15ce();}
1
+ const a191_0x184984=a191_0xa88b;(function(_0x2517f7,_0x5aeb49){const _0x43c36c=a191_0xa88b,_0x478664=_0x2517f7();while(!![]){try{const _0x118b4f=parseInt(_0x43c36c(0x1c2))/0x1+-parseInt(_0x43c36c(0x1c7))/0x2+parseInt(_0x43c36c(0x1c1))/0x3+-parseInt(_0x43c36c(0x1c3))/0x4*(-parseInt(_0x43c36c(0x1c8))/0x5)+parseInt(_0x43c36c(0x1c9))/0x6+parseInt(_0x43c36c(0x1c5))/0x7+-parseInt(_0x43c36c(0x1c6))/0x8;if(_0x118b4f===_0x5aeb49)break;else _0x478664['push'](_0x478664['shift']());}catch(_0x94e50e){_0x478664['push'](_0x478664['shift']());}}}(a191_0x30ac,0x25bcb));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a191_0xa88b(_0xd7b063,_0x3d504b){_0xd7b063=_0xd7b063-0x1c0;const _0x30ac84=a191_0x30ac();let _0xa88b75=_0x30ac84[_0xd7b063];return _0xa88b75;}const DOT_DIR='.rabetbase',LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a191_0x184984(0x1c0);function a191_0x30ac(){const _0x287d37=['1843290eOZbEh','sql','sql-trash','521178WnCeML','223485IybsPS','2920CydXcd','/sql','919506ERbPXs','5876672yrwzwq','69918qBpdch','605vsIwLU'];a191_0x30ac=function(){return _0x287d37;};return a191_0x30ac();}export function loadSqlProjectConfig(_0x20fd96,_0x110f59){const _0x532ba4=a191_0x184984,_0x36d8ce=resolve(_0x110f59??findProjectRootDirectory()),_0x4b1475=DOT_DIR+_0x532ba4(0x1c4),_0x3155b6=_0x4b1475+'/'+_0x20fd96;return{'projectRoot':_0x36d8ce,'appCode':_0x20fd96,'sqlWorkspaceRoot':_0x4b1475,'sqlRoot':_0x3155b6,'sqlRootDir':resolve(_0x36d8ce,DOT_DIR,_0x532ba4(0x1ca),_0x20fd96),'lockFilePath':resolve(_0x36d8ce,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x36d8ce,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3b965e,_0x33572f){const _0x2063b8=a192_0x312c,_0x2b1710=_0x3b965e();while(!![]){try{const _0x1422ce=parseInt(_0x2063b8(0xb0))/0x1+parseInt(_0x2063b8(0xc5))/0x2*(parseInt(_0x2063b8(0xae))/0x3)+parseInt(_0x2063b8(0xb4))/0x4*(-parseInt(_0x2063b8(0xc0))/0x5)+-parseInt(_0x2063b8(0xb1))/0x6*(parseInt(_0x2063b8(0xb5))/0x7)+-parseInt(_0x2063b8(0xbf))/0x8+-parseInt(_0x2063b8(0xbe))/0x9*(-parseInt(_0x2063b8(0xb6))/0xa)+parseInt(_0x2063b8(0xc6))/0xb;if(_0x1422ce===_0x33572f)break;else _0x2b1710['push'](_0x2b1710['shift']());}catch(_0xe19cda){_0x2b1710['push'](_0x2b1710['shift']());}}}(a192_0x3b44,0xc98fa));function a192_0x312c(_0x595679,_0x2f0093){_0x595679=_0x595679-0xad;const _0x3b4452=a192_0x3b44();let _0x312cf0=_0x3b4452[_0x595679];return _0x312cf0;}function a192_0x3b44(){const _0x159848=['5657315DiDVPM','push','toLowerCase','mode','sqlName','10YYYXRR','19830855bPsfIc','indexOf','filter','path','.sql','ENOENT','sql','slice','343074GGLyWX','sqlCode','777092IPoyZz','6OFNEjn','length','code','4OJVePm','6018663NaLIMR','20gTzWSf','sqlRootDir','replace','isDirectory','name','dbName','split','dbId','5443803caJruJ','12356440pbrVjE'];a192_0x3b44=function(){return _0x159848;};return a192_0x3b44();}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x227af5){const _0x16b2e4=a192_0x312c;if(_0x227af5===_0x16b2e4(0xca))return _0x16b2e4(0xcc);if(_0x227af5==='.xml')return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x11a31f,_0x3e5c19){const _0x548b13=a192_0x312c,_0x339bb8=[];try{const _0x45394e=await readdir(_0x11a31f,{'withFileTypes':!![]});for(const _0x46abc8 of _0x45394e){const _0x48e78e=join(_0x11a31f,_0x46abc8['name']);if(_0x46abc8[_0x548b13(0xb9)]()){_0x339bb8[_0x548b13(0xc1)](...await scanSqlFilesRecursively(_0x48e78e,_0x3e5c19));continue;}if(!_0x46abc8['isFile']())continue;const _0x128abd=extname(_0x46abc8[_0x548b13(0xba)])[_0x548b13(0xc2)](),_0x5b8554=extensionToMode(_0x128abd);if(!_0x5b8554)continue;const _0x23fa2c=relative(_0x3e5c19,_0x48e78e)[_0x548b13(0xb8)](/\\/g,'/'),_0x2b3fd4=_0x23fa2c[_0x548b13(0xbc)]('/')[_0x548b13(0xc8)](Boolean),_0x25ccd1=parseSqlPath(_0x2b3fd4,_0x46abc8[_0x548b13(0xba)],_0x128abd);if(!_0x25ccd1)continue;_0x339bb8[_0x548b13(0xc1)]({'sqlCode':_0x25ccd1[_0x548b13(0xaf)],'sqlName':_0x25ccd1[_0x548b13(0xc4)],'dbDirectory':_0x2b3fd4[0x0],'filePath':_0x48e78e,'relativePath':_0x23fa2c,'lockKey':_0x25ccd1[_0x548b13(0xaf)],'mode':_0x5b8554});}}catch(_0x1f2bc4){if(_0x1f2bc4[_0x548b13(0xb3)]!==_0x548b13(0xcb))throw _0x1f2bc4;}return _0x339bb8;}export async function scanLocalSqlQueries(_0x5cc063){const _0x24670d=a192_0x312c;return scanSqlFilesRecursively(_0x5cc063[_0x24670d(0xb7)],_0x5cc063[_0x24670d(0xb7)]);}export function resolveLocalSqlFilePath(_0x1ad06b,_0x4b9740,_0x399bd4){const _0x38067d=a192_0x312c,_0x485386=_0x399bd4?.[_0x38067d(0xc9)]||(_0x399bd4?.[_0x38067d(0xc4)]||_0x399bd4?.[_0x38067d(0xbb)]?buildSqlRelativePath(_0x4b9740,_0x399bd4?.[_0x38067d(0xc4)],_0x399bd4?.[_0x38067d(0xbb)],_0x399bd4?.[_0x38067d(0xc3)]||_0x38067d(0xcc),_0x399bd4?.[_0x38067d(0xbd)]):buildDefaultSqlFileName(_0x4b9740,_0x399bd4?.[_0x38067d(0xc3)]||'sql'));return join(_0x1ad06b[_0x38067d(0xb7)],_0x485386);}export async function directoryExists(_0x554d8c){const _0x5a4906=a192_0x312c;try{const _0x1f20db=await stat(_0x554d8c);return _0x1f20db[_0x5a4906(0xb9)]();}catch{return![];}}function parseSqlPath(_0x52140b,_0x120754,_0x1c42b8){const _0x392444=a192_0x312c,_0x5c7c6c=_0x120754[_0x392444(0xad)](0x0,-_0x1c42b8[_0x392444(0xb2)]);if(_0x52140b[_0x392444(0xb2)]<0x2)return null;const _0x11003c=_0x5c7c6c[_0x392444(0xc7)]('_');if(_0x11003c<=0x0||_0x11003c>=_0x5c7c6c['length']-0x1)return null;const _0xcd884d=_0x5c7c6c['slice'](0x0,_0x11003c);if(!isLikelySqlCode(_0xcd884d))return null;return{'sqlCode':_0xcd884d,'sqlName':_0x5c7c6c[_0x392444(0xad)](_0x11003c+0x1)};}function isLikelySqlCode(_0x48c4ce){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0x48c4ce);}
1
+ (function(_0x10023,_0x547b12){const _0x23fd1e=a192_0x5958,_0x3d8317=_0x10023();while(!![]){try{const _0x6774ec=-parseInt(_0x23fd1e(0x1a2))/0x1+-parseInt(_0x23fd1e(0x18c))/0x2*(-parseInt(_0x23fd1e(0x195))/0x3)+parseInt(_0x23fd1e(0x18e))/0x4+-parseInt(_0x23fd1e(0x18f))/0x5*(parseInt(_0x23fd1e(0x19f))/0x6)+-parseInt(_0x23fd1e(0x197))/0x7+parseInt(_0x23fd1e(0x19a))/0x8*(-parseInt(_0x23fd1e(0x19d))/0x9)+parseInt(_0x23fd1e(0x18b))/0xa*(parseInt(_0x23fd1e(0x1a7))/0xb);if(_0x6774ec===_0x547b12)break;else _0x3d8317['push'](_0x3d8317['shift']());}catch(_0x2c75ce){_0x3d8317['push'](_0x3d8317['shift']());}}}(a192_0x1a5b,0x91ff1));import{readdir,stat}from'node:fs/promises';function a192_0x1a5b(){const _0x5e953b=['isFile','indexOf','length','102915uBtPXQ','mode','7991501BIXaTD','code','name','1685120JctRQo','.xml','isDirectory','27dvmZLt','.sql','66cwWTSl','dbName','sql','552772aEVaDF','mybatisXml','push','sqlRootDir','sqlName','5922169szATmm','dbId','40OnZnDT','58GbJDfp','slice','839304dzHPnM','197205lEPgUE','sqlCode','replace'];a192_0x1a5b=function(){return _0x5e953b;};return a192_0x1a5b();}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x222dc1){const _0x3bad65=a192_0x5958;if(_0x222dc1===_0x3bad65(0x19e))return'sql';if(_0x222dc1===_0x3bad65(0x19b))return _0x3bad65(0x1a3);return undefined;}async function scanSqlFilesRecursively(_0x892079,_0x28f053){const _0x53a96d=a192_0x5958,_0x504186=[];try{const _0x3619ef=await readdir(_0x892079,{'withFileTypes':!![]});for(const _0x4b5844 of _0x3619ef){const _0x1cc409=join(_0x892079,_0x4b5844[_0x53a96d(0x199)]);if(_0x4b5844[_0x53a96d(0x19c)]()){_0x504186[_0x53a96d(0x1a4)](...await scanSqlFilesRecursively(_0x1cc409,_0x28f053));continue;}if(!_0x4b5844[_0x53a96d(0x192)]())continue;const _0xc40038=extname(_0x4b5844[_0x53a96d(0x199)])['toLowerCase'](),_0x393155=extensionToMode(_0xc40038);if(!_0x393155)continue;const _0x52a44c=relative(_0x28f053,_0x1cc409)[_0x53a96d(0x191)](/\\/g,'/'),_0x545406=_0x52a44c['split']('/')['filter'](Boolean),_0x14c371=parseSqlPath(_0x545406,_0x4b5844[_0x53a96d(0x199)],_0xc40038);if(!_0x14c371)continue;_0x504186['push']({'sqlCode':_0x14c371[_0x53a96d(0x190)],'sqlName':_0x14c371[_0x53a96d(0x1a6)],'dbDirectory':_0x545406[0x0],'filePath':_0x1cc409,'relativePath':_0x52a44c,'lockKey':_0x14c371[_0x53a96d(0x190)],'mode':_0x393155});}}catch(_0x34e9ab){if(_0x34e9ab[_0x53a96d(0x198)]!=='ENOENT')throw _0x34e9ab;}return _0x504186;}export async function scanLocalSqlQueries(_0x5ab49c){const _0x384bfc=a192_0x5958;return scanSqlFilesRecursively(_0x5ab49c[_0x384bfc(0x1a5)],_0x5ab49c['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x5a8bec,_0x3fbfcb,_0x306df8){const _0x43dc4f=a192_0x5958,_0x3ff26a=_0x306df8?.['path']||(_0x306df8?.[_0x43dc4f(0x1a6)]||_0x306df8?.[_0x43dc4f(0x1a0)]?buildSqlRelativePath(_0x3fbfcb,_0x306df8?.[_0x43dc4f(0x1a6)],_0x306df8?.[_0x43dc4f(0x1a0)],_0x306df8?.[_0x43dc4f(0x196)]||'sql',_0x306df8?.[_0x43dc4f(0x1a8)]):buildDefaultSqlFileName(_0x3fbfcb,_0x306df8?.[_0x43dc4f(0x196)]||_0x43dc4f(0x1a1)));return join(_0x5a8bec[_0x43dc4f(0x1a5)],_0x3ff26a);}export async function directoryExists(_0x261f30){const _0x2874cb=a192_0x5958;try{const _0x1f1db9=await stat(_0x261f30);return _0x1f1db9[_0x2874cb(0x19c)]();}catch{return![];}}function a192_0x5958(_0x26ac98,_0x41a698){_0x26ac98=_0x26ac98-0x18b;const _0x1a5b4e=a192_0x1a5b();let _0x595819=_0x1a5b4e[_0x26ac98];return _0x595819;}function parseSqlPath(_0x45ae53,_0x38cb1e,_0x573b24){const _0x2e0762=a192_0x5958,_0x3b88bd=_0x38cb1e[_0x2e0762(0x18d)](0x0,-_0x573b24[_0x2e0762(0x194)]);if(_0x45ae53[_0x2e0762(0x194)]<0x2)return null;const _0xc56ba3=_0x3b88bd[_0x2e0762(0x193)]('_');if(_0xc56ba3<=0x0||_0xc56ba3>=_0x3b88bd['length']-0x1)return null;const _0x3ac1db=_0x3b88bd[_0x2e0762(0x18d)](0x0,_0xc56ba3);if(!isLikelySqlCode(_0x3ac1db))return null;return{'sqlCode':_0x3ac1db,'sqlName':_0x3b88bd[_0x2e0762(0x18d)](_0xc56ba3+0x1)};}function isLikelySqlCode(_0xbe8651){return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/['test'](_0xbe8651);}
@@ -1 +1 @@
1
- function a193_0x4810(_0x4c9ab6,_0x26f6ca){_0x4c9ab6=_0x4c9ab6-0xe7;const _0x2508d=a193_0x2508();let _0x48109d=_0x2508d[_0x4c9ab6];return _0x48109d;}(function(_0x51da35,_0x2b193a){const _0x40b4b2=a193_0x4810,_0x9ba8b8=_0x51da35();while(!![]){try{const _0x4155cc=-parseInt(_0x40b4b2(0xf1))/0x1+parseInt(_0x40b4b2(0xee))/0x2+-parseInt(_0x40b4b2(0xef))/0x3+parseInt(_0x40b4b2(0xf2))/0x4*(parseInt(_0x40b4b2(0xf4))/0x5)+parseInt(_0x40b4b2(0xed))/0x6*(parseInt(_0x40b4b2(0xe7))/0x7)+parseInt(_0x40b4b2(0xe9))/0x8+-parseInt(_0x40b4b2(0xe8))/0x9;if(_0x4155cc===_0x2b193a)break;else _0x9ba8b8['push'](_0x9ba8b8['shift']());}catch(_0x1fb5cf){_0x9ba8b8['push'](_0x9ba8b8['shift']());}}}(a193_0x2508,0x9bdbc));import{readFile}from'node:fs/promises';import a193_0x32b33a from'node:crypto';export function computeSqlContentHash(_0x167e37){const _0xf74ce=a193_0x4810;return a193_0x32b33a[_0xf74ce(0xf0)](_0xf74ce(0xec))[_0xf74ce(0xf3)](_0x167e37)[_0xf74ce(0xf5)](_0xf74ce(0xea));}export async function computeSqlFileHash(_0x547914){const _0x4654a9=a193_0x4810,_0x3bce80=await readFile(_0x547914,_0x4654a9(0xeb));return computeSqlContentHash(_0x3bce80);}function a193_0x2508(){const _0x35cffc=['md5','1441212PMFvEw','802074ToJUFM','3353544jWEDlp','createHash','1036365SyFNzP','19828bHETNI','update','1285SkcCTr','digest','21TBAqlc','5266908BIYRqq','7857832YFtyum','hex','utf8'];a193_0x2508=function(){return _0x35cffc;};return a193_0x2508();}
1
+ (function(_0x5a8a82,_0x4bb5f1){const _0x115ccf=a193_0x1258,_0x2a7215=_0x5a8a82();while(!![]){try{const _0xbee9a=-parseInt(_0x115ccf(0x1e5))/0x1+parseInt(_0x115ccf(0x1df))/0x2*(parseInt(_0x115ccf(0x1e8))/0x3)+parseInt(_0x115ccf(0x1dd))/0x4*(parseInt(_0x115ccf(0x1e4))/0x5)+-parseInt(_0x115ccf(0x1ea))/0x6+-parseInt(_0x115ccf(0x1e1))/0x7*(-parseInt(_0x115ccf(0x1de))/0x8)+parseInt(_0x115ccf(0x1e9))/0x9*(-parseInt(_0x115ccf(0x1dc))/0xa)+-parseInt(_0x115ccf(0x1db))/0xb;if(_0xbee9a===_0x4bb5f1)break;else _0x2a7215['push'](_0x2a7215['shift']());}catch(_0x3014db){_0x2a7215['push'](_0x2a7215['shift']());}}}(a193_0x5746,0x74ff9));import{readFile}from'node:fs/promises';import a193_0x21e8a1 from'node:crypto';export function computeSqlContentHash(_0x3e520b){const _0x2c6a54=a193_0x1258;return a193_0x21e8a1[_0x2c6a54(0x1da)](_0x2c6a54(0x1e0))[_0x2c6a54(0x1e2)](_0x3e520b)[_0x2c6a54(0x1e7)](_0x2c6a54(0x1e3));}function a193_0x1258(_0x340df0,_0x3e408b){_0x340df0=_0x340df0-0x1da;const _0x574678=a193_0x5746();let _0x1258cc=_0x574678[_0x340df0];return _0x1258cc;}function a193_0x5746(){const _0x87c983=['36571eIiVtA','utf8','digest','3aHsqMB','63GcYBAD','255366sovLIy','createHash','976844oZwGVN','1257380qiJKQG','6980XgQRnD','8dFVdLH','1355126GqnqHL','md5','3908443IKkQiV','update','hex','835XzBRcg'];a193_0x5746=function(){return _0x87c983;};return a193_0x5746();}export async function computeSqlFileHash(_0x9afcf1){const _0x3d46ff=a193_0x1258,_0x4aa805=await readFile(_0x9afcf1,_0x3d46ff(0x1e6));return computeSqlContentHash(_0x4aa805);}
@@ -1 +1 @@
1
- (function(_0x300b13,_0x2c0d3c){const _0x323dea=a194_0x2d8a,_0xce310d=_0x300b13();while(!![]){try{const _0x1b405b=parseInt(_0x323dea(0xf2))/0x1+-parseInt(_0x323dea(0xe6))/0x2*(parseInt(_0x323dea(0xec))/0x3)+-parseInt(_0x323dea(0xe5))/0x4*(parseInt(_0x323dea(0xeb))/0x5)+-parseInt(_0x323dea(0xed))/0x6*(parseInt(_0x323dea(0xf9))/0x7)+parseInt(_0x323dea(0xef))/0x8+parseInt(_0x323dea(0xf4))/0x9*(-parseInt(_0x323dea(0xf3))/0xa)+-parseInt(_0x323dea(0xf7))/0xb*(-parseInt(_0x323dea(0xf0))/0xc);if(_0x1b405b===_0x2c0d3c)break;else _0xce310d['push'](_0xce310d['shift']());}catch(_0x56aee6){_0xce310d['push'](_0xce310d['shift']());}}}(a194_0x5f07,0x7ec47));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a194_0x2d8a(_0x389be8,_0xc0a905){_0x389be8=_0x389be8-0xe5;const _0x5f0758=a194_0x5f07();let _0x2d8a94=_0x5f0758[_0x389be8];return _0x2d8a94;}function a194_0x5f07(){const _0x249c65=['sqlRoot','4500936IXsxlB','228jwobVM','parse','84484kMGPwr','33450tDlTIV','2475imBFSB','ENOENT','\x22\x20vs\x20lock\x20\x22','1382887adnvWD','stringify','5030165HfiSYL','apps','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','4HEpGxE','2hXxQJt','\x22.\x20','lastSync','sqls','utf8','2539060etFzdm','1110609ofGIan','6fTwXMf'];a194_0x5f07=function(){return _0x249c65;};return a194_0x5f07();}export function ensureSqlLockScope(_0x46abf8,_0x164e32,_0x382864,_0x4d5a13){const _0x526d7a=a194_0x2d8a,_0x155df3=_0x46abf8??createEmptySqlLock();let _0x3989be=_0x155df3[_0x526d7a(0xfa)][_0x164e32];if(!_0x3989be)return _0x3989be={'sqlRoot':_0x382864,'lastSync':'','sqls':{}},_0x155df3[_0x526d7a(0xfa)][_0x164e32]=_0x3989be,{'lockData':_0x155df3,'appLock':_0x3989be};if(!_0x3989be[_0x526d7a(0xee)])_0x3989be[_0x526d7a(0xee)]=_0x382864;else{if(_0x3989be[_0x526d7a(0xee)]!==_0x382864)throw new Error(_0x4d5a13+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x382864+_0x526d7a(0xf6)+_0x3989be['sqlRoot']+_0x526d7a(0xe7)+_0x526d7a(0xfb));}return!_0x3989be['sqls']&&(_0x3989be[_0x526d7a(0xe9)]={}),!_0x3989be[_0x526d7a(0xe8)]&&(_0x3989be[_0x526d7a(0xe8)]=''),{'lockData':_0x155df3,'appLock':_0x3989be};}export async function readSqlLockFile(_0x4760d7){const _0x257ee8=a194_0x2d8a;try{const _0x158d7e=await readFile(_0x4760d7,'utf8');return JSON[_0x257ee8(0xf1)](_0x158d7e);}catch(_0x14d7a2){if(_0x14d7a2['code']===_0x257ee8(0xf5))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x14d7a2));}}export async function writeSqlLockFile(_0x3d7969,_0x48dee6){const _0x3081f5=a194_0x2d8a;await mkdir(dirname(_0x3d7969),{'recursive':!![]}),await writeFile(_0x3d7969,JSON[_0x3081f5(0xf8)](_0x48dee6,null,0x2),_0x3081f5(0xea));}
1
+ function a194_0x1a50(){const _0x3eb2bb=['sqlRoot','702191fFPdsM','1068723quVPQb','lastSync','40kdOHzA','\x22\x20vs\x20lock\x20\x22','9417018ZJywGK','parse','31077eQMkkQ','apps','3560pvjQDG','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','utf8','sqls','stringify','ENOENT','\x22.\x20','33XpIwcp','324316PuvpsY','868KSDUnH','7722wVybTK',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','1433950oOJPEa'];a194_0x1a50=function(){return _0x3eb2bb;};return a194_0x1a50();}(function(_0x2ce031,_0x12c77f){const _0x4bad58=a194_0x32a3,_0x3abfbf=_0x2ce031();while(!![]){try{const _0xc2a0de=-parseInt(_0x4bad58(0x152))/0x1+parseInt(_0x4bad58(0x14b))/0x2*(-parseInt(_0x4bad58(0x14c))/0x3)+parseInt(_0x4bad58(0x14a))/0x4*(-parseInt(_0x4bad58(0x154))/0x5)+parseInt(_0x4bad58(0x156))/0x6+parseInt(_0x4bad58(0x151))/0x7+parseInt(_0x4bad58(0x142))/0x8*(parseInt(_0x4bad58(0x140))/0x9)+parseInt(_0x4bad58(0x14f))/0xa*(parseInt(_0x4bad58(0x149))/0xb);if(_0xc2a0de===_0x12c77f)break;else _0x3abfbf['push'](_0x3abfbf['shift']());}catch(_0x1bd626){_0x3abfbf['push'](_0x3abfbf['shift']());}}}(a194_0x1a50,0xc3d43));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a194_0x32a3(_0x3530b1,_0x5c78fa){_0x3530b1=_0x3530b1-0x140;const _0x1a50fc=a194_0x1a50();let _0x32a397=_0x1a50fc[_0x3530b1];return _0x32a397;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x43f2bf,_0x3b7833,_0x55eb18,_0x5e8075){const _0x204993=a194_0x32a3,_0x453851=_0x43f2bf??createEmptySqlLock();let _0x3179e7=_0x453851[_0x204993(0x141)][_0x3b7833];if(!_0x3179e7)return _0x3179e7={'sqlRoot':_0x55eb18,'lastSync':'','sqls':{}},_0x453851[_0x204993(0x141)][_0x3b7833]=_0x3179e7,{'lockData':_0x453851,'appLock':_0x3179e7};if(!_0x3179e7[_0x204993(0x150)])_0x3179e7[_0x204993(0x150)]=_0x55eb18;else{if(_0x3179e7[_0x204993(0x150)]!==_0x55eb18)throw new Error(_0x5e8075+_0x204993(0x14d)+_0x55eb18+_0x204993(0x155)+_0x3179e7['sqlRoot']+_0x204993(0x148)+_0x204993(0x143));}return!_0x3179e7[_0x204993(0x145)]&&(_0x3179e7['sqls']={}),!_0x3179e7[_0x204993(0x153)]&&(_0x3179e7[_0x204993(0x153)]=''),{'lockData':_0x453851,'appLock':_0x3179e7};}export async function readSqlLockFile(_0x551ded){const _0x4397d4=a194_0x32a3;try{const _0x4b34f5=await readFile(_0x551ded,_0x4397d4(0x144));return JSON[_0x4397d4(0x157)](_0x4b34f5);}catch(_0x35eb48){if(_0x35eb48['code']===_0x4397d4(0x147))return null;throw new Error(_0x4397d4(0x14e)+String(_0x35eb48));}}export async function writeSqlLockFile(_0x587c78,_0x58e1da){const _0x9ed58d=a194_0x32a3;await mkdir(dirname(_0x587c78),{'recursive':!![]}),await writeFile(_0x587c78,JSON[_0x9ed58d(0x146)](_0x58e1da,null,0x2),_0x9ed58d(0x144));}
@@ -1 +1 @@
1
- (function(_0xf486e7,_0x3ee9ff){const _0x202cb2=a196_0x2d4b,_0x3b4d30=_0xf486e7();while(!![]){try{const _0x59e357=-parseInt(_0x202cb2(0x1d9))/0x1+-parseInt(_0x202cb2(0x1d8))/0x2*(parseInt(_0x202cb2(0x1d3))/0x3)+-parseInt(_0x202cb2(0x1cb))/0x4+parseInt(_0x202cb2(0x1dd))/0x5*(-parseInt(_0x202cb2(0x1da))/0x6)+-parseInt(_0x202cb2(0x1cf))/0x7*(parseInt(_0x202cb2(0x1d2))/0x8)+parseInt(_0x202cb2(0x1de))/0x9+parseInt(_0x202cb2(0x1d6))/0xa;if(_0x59e357===_0x3ee9ff)break;else _0x3b4d30['push'](_0x3b4d30['shift']());}catch(_0x33c9cc){_0x3b4d30['push'](_0x3b4d30['shift']());}}}(a196_0x1aa7,0xda850));function a196_0x1aa7(){const _0x4759bd=['trimStart','1585jsigWY','13872564usZAil','4304784LrawNB','unknown-db','replace','trim','5316899CjWzad','sql','unknown-sql','8SfrHyv','12Tgbxje','test','db-','40888100XnfMtD','mybatisXml','365844ibxmPX','1736589PZvwfc','8160IpTMAp','.xml'];a196_0x1aa7=function(){return _0x4759bd;};return a196_0x1aa7();}export function detectSqlMode(_0x21cef4){const _0x85fa7a=a196_0x2d4b,_0x512c41=_0x21cef4[_0x85fa7a(0x1dc)]();if(/^<(select|insert|update|delete)\b/i[_0x85fa7a(0x1d4)](_0x512c41))return _0x85fa7a(0x1d7);return _0x85fa7a(0x1d0);}export function getSqlFileExtension(_0x4c4263){const _0x192c29=a196_0x2d4b;return _0x4c4263===_0x192c29(0x1d7)?_0x192c29(0x1db):'.sql';}export function buildDefaultSqlFileName(_0x47bfea,_0x5956ce){return''+_0x47bfea+getSqlFileExtension(_0x5956ce);}function a196_0x2d4b(_0x17a2c6,_0x3f9c84){_0x17a2c6=_0x17a2c6-0x1cb;const _0x1aa75d=a196_0x1aa7();let _0x2d4b39=_0x1aa75d[_0x17a2c6];return _0x2d4b39;}export function sanitizeSqlPathSegment(_0xa158f4,_0x5f2f98){const _0x277419=a196_0x2d4b,_0x1dd0a7=String(_0xa158f4??'')[_0x277419(0x1ce)](),_0x4ebf92=_0x1dd0a7['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x277419(0x1cd)](/\s+/g,'-')[_0x277419(0x1cd)](/-+/g,'-')[_0x277419(0x1cd)](/^\.+/,'')['replace'](/\.+$/,'')['replace'](/^-+/,'')[_0x277419(0x1cd)](/-+$/,'');return _0x4ebf92||_0x5f2f98;}export function buildDbDirectoryName(_0x486a19,_0xd22f2a){const _0x31c445=a196_0x2d4b;return sanitizeSqlPathSegment(_0x486a19,_0xd22f2a!=null?_0x31c445(0x1d5)+_0xd22f2a:_0x31c445(0x1cc));}export function buildSqlRelativePath(_0x3ab539,_0x4f612c,_0x28c262,_0x262c18,_0x523a81){const _0x311bd8=a196_0x2d4b,_0x506c2b=buildDbDirectoryName(_0x28c262,_0x523a81),_0x35ebaf=sanitizeSqlPathSegment(_0x3ab539,_0x311bd8(0x1d1)),_0x4d6c91=sanitizeSqlPathSegment(_0x4f612c,_0x35ebaf);return _0x506c2b+'/'+_0x35ebaf+'_'+_0x4d6c91+getSqlFileExtension(_0x262c18);}
1
+ (function(_0x583bb1,_0x24afdb){const _0x4fc79f=a196_0x5f5b,_0x21a5f0=_0x583bb1();while(!![]){try{const _0x3f0197=-parseInt(_0x4fc79f(0x193))/0x1+-parseInt(_0x4fc79f(0x19d))/0x2*(-parseInt(_0x4fc79f(0x18e))/0x3)+parseInt(_0x4fc79f(0x19a))/0x4+parseInt(_0x4fc79f(0x199))/0x5+parseInt(_0x4fc79f(0x19c))/0x6+parseInt(_0x4fc79f(0x195))/0x7*(-parseInt(_0x4fc79f(0x191))/0x8)+-parseInt(_0x4fc79f(0x18f))/0x9*(parseInt(_0x4fc79f(0x18c))/0xa);if(_0x3f0197===_0x24afdb)break;else _0x21a5f0['push'](_0x21a5f0['shift']());}catch(_0x272ac3){_0x21a5f0['push'](_0x21a5f0['shift']());}}}(a196_0x3cb3,0x571a2));export function detectSqlMode(_0xfaee4f){const _0x1e2f8b=a196_0x5f5b,_0x2ae7c9=_0xfaee4f[_0x1e2f8b(0x198)]();if(/^<(select|insert|update|delete)\b/i[_0x1e2f8b(0x190)](_0x2ae7c9))return _0x1e2f8b(0x197);return _0x1e2f8b(0x196);}export function getSqlFileExtension(_0x1fe498){const _0x5d1d3a=a196_0x5f5b;return _0x1fe498===_0x5d1d3a(0x197)?_0x5d1d3a(0x19e):_0x5d1d3a(0x194);}export function buildDefaultSqlFileName(_0x142bbd,_0x18bc9c){return''+_0x142bbd+getSqlFileExtension(_0x18bc9c);}export function sanitizeSqlPathSegment(_0xc4b334,_0x47a7dc){const _0x41c770=a196_0x5f5b,_0x5b1f8f=String(_0xc4b334??'')[_0x41c770(0x18d)](),_0x6ccc2e=_0x5b1f8f[_0x41c770(0x19b)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x41c770(0x19b)](/\s+/g,'-')[_0x41c770(0x19b)](/-+/g,'-')[_0x41c770(0x19b)](/^\.+/,'')[_0x41c770(0x19b)](/\.+$/,'')[_0x41c770(0x19b)](/^-+/,'')[_0x41c770(0x19b)](/-+$/,'');return _0x6ccc2e||_0x47a7dc;}function a196_0x5f5b(_0x5a08b9,_0x2810b8){_0x5a08b9=_0x5a08b9-0x18c;const _0x3cb33e=a196_0x3cb3();let _0x5f5bc3=_0x3cb33e[_0x5a08b9];return _0x5f5bc3;}export function buildDbDirectoryName(_0x27ffd0,_0x248567){const _0x5693c3=a196_0x5f5b;return sanitizeSqlPathSegment(_0x27ffd0,_0x248567!=null?_0x5693c3(0x192)+_0x248567:'unknown-db');}export function buildSqlRelativePath(_0x5002ba,_0x26d89f,_0x4ba1d0,_0x14bf55,_0x58ef9b){const _0x561d09=buildDbDirectoryName(_0x4ba1d0,_0x58ef9b),_0x2c25c1=sanitizeSqlPathSegment(_0x5002ba,'unknown-sql'),_0x158349=sanitizeSqlPathSegment(_0x26d89f,_0x2c25c1);return _0x561d09+'/'+_0x2c25c1+'_'+_0x158349+getSqlFileExtension(_0x14bf55);}function a196_0x3cb3(){const _0x5b0738=['1829468mvMLYs','replace','735576XbJgLg','3758bWUamy','.xml','1160WbsiPo','trim','843jJbEeP','74565ISyFUi','test','678872SzeGIB','db-','164106RHlbce','.sql','7nEcSir','sql','mybatisXml','trimStart','2294165xXpFXs'];a196_0x3cb3=function(){return _0x5b0738;};return a196_0x3cb3();}
@@ -1 +1 @@
1
- function a197_0x3e72(){const _0x1234d5=['5915245iQixOq','push','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','startsWith','232DmkOcf','3578895DXMYtn','add','unknown\x20table(s)','from','isDangerous','566082BzqXzu','trim','777628ixxXJw','\x20query\x20targeting\x20','UPDATE','5957736AGLVVy','WITH','DELETE','type','INSERT','includes','934696UVdMvS','SELECT','toUpperCase','6OrLsUB','reason','UNKNOWN','3235qWhXxg','test','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','split','length','matchAll','replace','match','SQL\x20content\x20is\x20empty','join'];a197_0x3e72=function(){return _0x1234d5;};return a197_0x3e72();}function a197_0x2258(_0x58d5b7,_0x11d711){_0x58d5b7=_0x58d5b7-0x1d5;const _0x3e7248=a197_0x3e72();let _0x22586c=_0x3e7248[_0x58d5b7];return _0x22586c;}(function(_0x3e5183,_0x4bd7ed){const _0x2369a1=a197_0x2258,_0x1e5b68=_0x3e5183();while(!![]){try{const _0x368519=-parseInt(_0x2369a1(0x1f6))/0x1+parseInt(_0x2369a1(0x1d9))/0x2*(parseInt(_0x2369a1(0x1dc))/0x3)+parseInt(_0x2369a1(0x1ee))/0x4*(parseInt(_0x2369a1(0x1df))/0x5)+parseInt(_0x2369a1(0x1f4))/0x6+-parseInt(_0x2369a1(0x1e9))/0x7+parseInt(_0x2369a1(0x1f9))/0x8+parseInt(_0x2369a1(0x1ef))/0x9;if(_0x368519===_0x4bd7ed)break;else _0x1e5b68['push'](_0x1e5b68['shift']());}catch(_0x5df409){_0x1e5b68['push'](_0x1e5b68['shift']());}}}(a197_0x3e72,0x8f226));export function detectSqlType(_0x33fd37){const _0xe034f=a197_0x2258;if(!_0x33fd37?.[_0xe034f(0x1f5)]())return{'type':_0xe034f(0x1de),'isSelectOnly':![],'isDangerous':![],'reason':_0xe034f(0x1e7)};const _0x426b30=_0x33fd37['replace'](/#\{[^}]*\}/g,'?')[_0xe034f(0x1e5)](/\$\{[^}]*\}/g,'?')[_0xe034f(0x1e5)](/@[^(\s]+(\([^)]*\))?/g,'')[_0xe034f(0x1e5)](/\/\*[\s\S]*?\*\//g,'')[_0xe034f(0x1f5)](),_0x23e048=_0x426b30[_0xe034f(0x1e2)]('\x0a');let _0x3e28a9='';for(const _0x10d0a6 of _0x23e048){const _0x380d1f=_0x10d0a6['trim']();if(!_0x380d1f||_0x380d1f[_0xe034f(0x1ed)]('--')||_0x380d1f[_0xe034f(0x1ed)]('/*'))continue;_0x3e28a9=_0x380d1f;break;}const _0x372f6a=_0x3e28a9[_0xe034f(0x1db)]();if(_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1da))||_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1fa))){const _0x1e0a83=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0xe034f(0x1e0)](_0x426b30);return{'type':_0xe034f(0x1da),'isSelectOnly':!_0x1e0a83,'isDangerous':_0x1e0a83,'reason':_0x1e0a83?_0xe034f(0x1e1):undefined};}if(_0x372f6a[_0xe034f(0x1ed)](_0xe034f(0x1d7)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x372f6a['startsWith'](_0xe034f(0x1f8)))return{'type':_0xe034f(0x1f8),'isSelectOnly':![],'isDangerous':![]};if(_0x372f6a['startsWith'](_0xe034f(0x1d5)))return{'type':_0xe034f(0x1d5),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0xe034f(0x1e0)](_0x372f6a))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0xe034f(0x1de),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x24c3fa){const _0x40b5af=a197_0x2258,_0x247e2d=_0x24c3fa[_0x40b5af(0x1e5)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x40b5af(0x1e5)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x40b5af(0x1e5)](/\/\*[\s\S]*?\*\//g,''),_0x1e6c20=[],_0x57d9e7=_0x247e2d[_0x40b5af(0x1e6)](/FROM\s+([^\s,)(]+)/i);if(_0x57d9e7?.[0x1])_0x1e6c20[_0x40b5af(0x1ea)](_0x57d9e7[0x1][_0x40b5af(0x1e5)](/[`"]/g,''));for(const _0x502418 of _0x247e2d[_0x40b5af(0x1e4)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x18605c=_0x502418[0x1]?.['replace'](/[`"]/g,'');if(_0x18605c&&!_0x1e6c20[_0x40b5af(0x1d8)](_0x18605c))_0x1e6c20[_0x40b5af(0x1ea)](_0x18605c);}const _0x4d56e9=_0x247e2d[_0x40b5af(0x1e6)](/INTO\s+([^\s(]+)/i);if(_0x4d56e9?.[0x1]){const _0x3a369c=_0x4d56e9[0x1]['replace'](/[`"]/g,'');if(!_0x1e6c20['includes'](_0x3a369c))_0x1e6c20['push'](_0x3a369c);}const _0x57ec2c=_0x247e2d['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x57ec2c?.[0x1]){const _0x51ad89=_0x57ec2c[0x1][_0x40b5af(0x1e5)](/[`"]/g,'');if(!_0x1e6c20[_0x40b5af(0x1d8)](_0x51ad89))_0x1e6c20['push'](_0x51ad89);}return _0x1e6c20;}function extractParameters(_0x43f8c){const _0x96096a=a197_0x2258,_0x24b0c5=new Set();for(const _0xdce47c of _0x43f8c['matchAll'](/#\{(\w+)\}/g))if(_0xdce47c[0x1])_0x24b0c5[_0x96096a(0x1f0)](_0xdce47c[0x1]);for(const _0x8d5cf7 of _0x43f8c[_0x96096a(0x1e4)](/\$\{(\w+)\}/g))if(_0x8d5cf7[0x1])_0x24b0c5[_0x96096a(0x1f0)](_0x8d5cf7[0x1]);return Array[_0x96096a(0x1f2)](_0x24b0c5);}export function validateSql(_0x57bd68){const _0x3f5438=a197_0x2258,_0x58ec12=detectSqlType(_0x57bd68),_0x1c1e34=extractTables(_0x57bd68),_0x15e717=extractParameters(_0x57bd68);if(_0x58ec12[_0x3f5438(0x1f3)])return{'valid':![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x58ec12[_0x3f5438(0x1dd)]||_0x58ec12[_0x3f5438(0x1d6)]+_0x3f5438(0x1ec)};if(_0x58ec12[_0x3f5438(0x1d6)]==='UNKNOWN')return{'valid':![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x3f5438(0x1eb)};return{'valid':!![],'sqlType':_0x58ec12,'tables':_0x1c1e34,'parameters':_0x15e717,'message':_0x58ec12[_0x3f5438(0x1d6)]+_0x3f5438(0x1f7)+(_0x1c1e34[_0x3f5438(0x1e3)]?_0x1c1e34[_0x3f5438(0x1e8)](',\x20'):_0x3f5438(0x1f1))+(_0x15e717[_0x3f5438(0x1e3)]?'\x20with\x20parameters:\x20'+_0x15e717[_0x3f5438(0x1e8)](',\x20'):'')};}
1
+ (function(_0x219fcc,_0x15575d){const _0x201fce=a197_0x3028,_0x45e0e3=_0x219fcc();while(!![]){try{const _0x2d3aa0=parseInt(_0x201fce(0xfe))/0x1+parseInt(_0x201fce(0x10c))/0x2*(parseInt(_0x201fce(0xfa))/0x3)+-parseInt(_0x201fce(0xf0))/0x4+-parseInt(_0x201fce(0x108))/0x5*(parseInt(_0x201fce(0xf7))/0x6)+-parseInt(_0x201fce(0xf8))/0x7+parseInt(_0x201fce(0xf5))/0x8+parseInt(_0x201fce(0x107))/0x9*(parseInt(_0x201fce(0x101))/0xa);if(_0x2d3aa0===_0x15575d)break;else _0x45e0e3['push'](_0x45e0e3['shift']());}catch(_0x51018d){_0x45e0e3['push'](_0x45e0e3['shift']());}}}(a197_0xb861,0x4bd0d));export function detectSqlType(_0x44a23c){const _0x2b3a01=a197_0x3028;if(!_0x44a23c?.[_0x2b3a01(0xea)]())return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![],'reason':_0x2b3a01(0xf3)};const _0x714db=_0x44a23c['replace'](/#\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/\$\{[^}]*\}/g,'?')[_0x2b3a01(0x10e)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x2b3a01(0x10e)](/\/\*[\s\S]*?\*\//g,'')[_0x2b3a01(0xea)](),_0x146ae3=_0x714db[_0x2b3a01(0x105)]('\x0a');let _0x2b2a59='';for(const _0x12e657 of _0x146ae3){const _0x522bf2=_0x12e657['trim']();if(!_0x522bf2||_0x522bf2[_0x2b3a01(0xf4)]('--')||_0x522bf2[_0x2b3a01(0xf4)]('/*'))continue;_0x2b2a59=_0x522bf2;break;}const _0x1fda6c=_0x2b2a59[_0x2b3a01(0x102)]();if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xe9))||_0x1fda6c['startsWith'](_0x2b3a01(0x100))){const _0x190891=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2b3a01(0x10b)](_0x714db);return{'type':_0x2b3a01(0xe9),'isSelectOnly':!_0x190891,'isDangerous':_0x190891,'reason':_0x190891?_0x2b3a01(0xef):undefined};}if(_0x1fda6c[_0x2b3a01(0xf4)]('INSERT'))return{'type':_0x2b3a01(0xfc),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c[_0x2b3a01(0xf4)](_0x2b3a01(0xf9)))return{'type':_0x2b3a01(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x1fda6c['startsWith'](_0x2b3a01(0x10a)))return{'type':_0x2b3a01(0x10a),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xec)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2b3a01(0x10b)](_0x1fda6c))return{'type':_0x2b3a01(0x103),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2b3a01(0xf2)};return{'type':_0x2b3a01(0x109),'isSelectOnly':![],'isDangerous':![]};}function a197_0x3028(_0x1dafce,_0x16439f){_0x1dafce=_0x1dafce-0xe7;const _0xb861db=a197_0xb861();let _0x302803=_0xb861db[_0x1dafce];return _0x302803;}function extractTables(_0x3bf20a){const _0x23228f=a197_0x3028,_0x1b86bb=_0x3bf20a['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x23228f(0x10e)](/'[^']*'/g,'\x27\x27')[_0x23228f(0x10e)](/--.*$/gm,'')[_0x23228f(0x10e)](/\/\*[\s\S]*?\*\//g,''),_0x3213f3=[],_0x119655=_0x1b86bb[_0x23228f(0xf1)](/FROM\s+([^\s,)(]+)/i);if(_0x119655?.[0x1])_0x3213f3[_0x23228f(0xf6)](_0x119655[0x1][_0x23228f(0x10e)](/[`"]/g,''));for(const _0x255a25 of _0x1b86bb[_0x23228f(0x104)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x59e604=_0x255a25[0x1]?.[_0x23228f(0x10e)](/[`"]/g,'');if(_0x59e604&&!_0x3213f3[_0x23228f(0xee)](_0x59e604))_0x3213f3['push'](_0x59e604);}const _0x2c2688=_0x1b86bb['match'](/INTO\s+([^\s(]+)/i);if(_0x2c2688?.[0x1]){const _0x39e19b=_0x2c2688[0x1]['replace'](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x39e19b))_0x3213f3['push'](_0x39e19b);}const _0x2566d8=_0x1b86bb['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x2566d8?.[0x1]){const _0x1f89c1=_0x2566d8[0x1][_0x23228f(0x10e)](/[`"]/g,'');if(!_0x3213f3[_0x23228f(0xee)](_0x1f89c1))_0x3213f3['push'](_0x1f89c1);}return _0x3213f3;}function extractParameters(_0x3c0aea){const _0x456da4=a197_0x3028,_0x5a44ce=new Set();for(const _0x3b12b5 of _0x3c0aea[_0x456da4(0x104)](/#\{(\w+)\}/g))if(_0x3b12b5[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x3b12b5[0x1]);for(const _0x355978 of _0x3c0aea['matchAll'](/\$\{(\w+)\}/g))if(_0x355978[0x1])_0x5a44ce[_0x456da4(0xeb)](_0x355978[0x1]);return Array[_0x456da4(0xfb)](_0x5a44ce);}export function validateSql(_0x5633d6){const _0x2070b4=a197_0x3028,_0x4bf4af=detectSqlType(_0x5633d6),_0x10becc=extractTables(_0x5633d6),_0x3401b5=extractParameters(_0x5633d6);if(_0x4bf4af[_0x2070b4(0x106)])return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xe7)]||_0x4bf4af[_0x2070b4(0xed)]+_0x2070b4(0xff)};if(_0x4bf4af[_0x2070b4(0xed)]===_0x2070b4(0x109))return{'valid':![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x2070b4(0x10d)};return{'valid':!![],'sqlType':_0x4bf4af,'tables':_0x10becc,'parameters':_0x3401b5,'message':_0x4bf4af[_0x2070b4(0xed)]+'\x20query\x20targeting\x20'+(_0x10becc['length']?_0x10becc[_0x2070b4(0xe8)](',\x20'):_0x2070b4(0x10f))+(_0x3401b5[_0x2070b4(0xfd)]?'\x20with\x20parameters:\x20'+_0x3401b5['join'](',\x20'):'')};}function a197_0xb861(){const _0x11620c=['type','includes','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','1123220urHVJv','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20content\x20is\x20empty','startsWith','1464232sRAkha','push','721398XjCOxC','2252544iZztbb','UPDATE','698862nIdtUe','from','INSERT','length','77258EPoHyM','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','WITH','2738210VqWGQe','toUpperCase','DDL','matchAll','split','isDangerous','18KdsbWx','15RJjEkA','UNKNOWN','DELETE','test','4ACXAnS','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','replace','unknown\x20table(s)','reason','join','SELECT','trim','add','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'];a197_0xb861=function(){return _0x11620c;};return a197_0xb861();}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a198_0x50675e=a198_0x2df5;(function(_0x4d6cd1,_0x1fb209){const _0x5cb864=a198_0x2df5,_0x587d67=_0x4d6cd1();while(!![]){try{const _0x195f52=-parseInt(_0x5cb864(0xbe))/0x1+-parseInt(_0x5cb864(0xca))/0x2+-parseInt(_0x5cb864(0xcc))/0x3*(parseInt(_0x5cb864(0xc0))/0x4)+parseInt(_0x5cb864(0xc5))/0x5*(-parseInt(_0x5cb864(0xc3))/0x6)+parseInt(_0x5cb864(0xc4))/0x7*(-parseInt(_0x5cb864(0xc1))/0x8)+parseInt(_0x5cb864(0xc6))/0x9+-parseInt(_0x5cb864(0xc2))/0xa*(-parseInt(_0x5cb864(0xbd))/0xb);if(_0x195f52===_0x1fb209)break;else _0x587d67['push'](_0x587d67['shift']());}catch(_0x24a850){_0x587d67['push'](_0x587d67['shift']());}}}(a198_0x539f,0xdd5e7));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x50675e(0xc9)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a198_0x50675e(0xc7)+CLI_BIN_NAME+a198_0x50675e(0xbf),a198_0x50675e(0xc8)+CLI_BIN_NAME+a198_0x50675e(0xbc)][a198_0x50675e(0xcb)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});function a198_0x2df5(_0x10eecf,_0x234f7d){_0x10eecf=_0x10eecf-0xbc;const _0x539f00=a198_0x539f();let _0x2df525=_0x539f00[_0x10eecf];return _0x2df525;}function a198_0x539f(){const _0x393729=['160XkyOeA','33326770wdsPEi','387360YDIAzv','453334SAFgGz','75EEogUE','15045930BeBtHD','Set\x20appcode\x20via\x20`','Tip:\x20`','Run\x20`','13362vZPgqK','join','2287797JbwIES','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','11jYyZkC','302201HhxfQU','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','8RAfwpu'];a198_0x539f=function(){return _0x393729;};return a198_0x539f();}
1
+ const a198_0x137c6a=a198_0x5d97;(function(_0x30fc01,_0x30cfa2){const _0x25213c=a198_0x5d97,_0xa7fe05=_0x30fc01();while(!![]){try{const _0x5d7ecc=-parseInt(_0x25213c(0xf2))/0x1*(-parseInt(_0x25213c(0xf8))/0x2)+parseInt(_0x25213c(0x102))/0x3*(-parseInt(_0x25213c(0xfa))/0x4)+parseInt(_0x25213c(0xfb))/0x5*(parseInt(_0x25213c(0xf7))/0x6)+-parseInt(_0x25213c(0x100))/0x7+-parseInt(_0x25213c(0x101))/0x8*(parseInt(_0x25213c(0xf5))/0x9)+parseInt(_0x25213c(0xfd))/0xa+-parseInt(_0x25213c(0xf1))/0xb*(-parseInt(_0x25213c(0xf4))/0xc);if(_0x5d7ecc===_0x30cfa2)break;else _0xa7fe05['push'](_0xa7fe05['shift']());}catch(_0x4eb309){_0xa7fe05['push'](_0xa7fe05['shift']());}}}(a198_0x404a,0x943c7));function a198_0x5d97(_0x1e0420,_0x1f186d){_0x1e0420=_0x1e0420-0xf1;const _0x404a5c=a198_0x404a();let _0x5d971f=_0x404a5c[_0x1e0420];return _0x5d971f;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a198_0x404a(){const _0x4f65df=['478874GHXLRP','Set\x20appcode\x20via\x20`','96efVUyl','4245PJbklg','\x0a\x20\x20\x20\x20\x20\x20\x20','751820mTeXls','\x20auth`\x20to\x20login\x20first.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','4102609CzNnQZ','59984xkAOQw','29853dlYszu','682wEChsu','2CAiLfm','Run\x20`','190824WnSHPN','423QUhrEt','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1728YYlbSn'];a198_0x404a=function(){return _0x4f65df;};return a198_0x404a();}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a198_0x137c6a(0xf3)+CLI_BIN_NAME+a198_0x137c6a(0xfe),'configMissingHint':[a198_0x137c6a(0xf9)+CLI_BIN_NAME+a198_0x137c6a(0xff),'Tip:\x20`'+CLI_BIN_NAME+a198_0x137c6a(0xf6)]['join'](a198_0x137c6a(0xfc)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0x1e98b3,_0x4b64bd){var _0x2469e6=a199_0x5b97,_0x3d1821=_0x1e98b3();while(!![]){try{var _0x143288=parseInt(_0x2469e6(0x1c3))/0x1*(parseInt(_0x2469e6(0x1c5))/0x2)+parseInt(_0x2469e6(0x1c4))/0x3*(parseInt(_0x2469e6(0x1ca))/0x4)+parseInt(_0x2469e6(0x1c7))/0x5+parseInt(_0x2469e6(0x1c2))/0x6*(-parseInt(_0x2469e6(0x1c0))/0x7)+parseInt(_0x2469e6(0x1c8))/0x8*(parseInt(_0x2469e6(0x1c6))/0x9)+-parseInt(_0x2469e6(0x1c9))/0xa*(parseInt(_0x2469e6(0x1c1))/0xb)+-parseInt(_0x2469e6(0x1bf))/0xc;if(_0x143288===_0x4b64bd)break;else _0x3d1821['push'](_0x3d1821['shift']());}catch(_0x197946){_0x3d1821['push'](_0x3d1821['shift']());}}}(a199_0x22bd,0xe72b3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a199_0x22bd(){var _0x59fe78=['4724144xXALQc','1817860hHviFD','1228YqqwZX','22846848bdBLeM','2055718pcfldc','22qPeHWd','12DQhZSC','2fHqRdY','9318bAdGEk','678966pljYLa','18GGXwtA','4940735fYvotY'];a199_0x22bd=function(){return _0x59fe78;};return a199_0x22bd();}function a199_0x5b97(_0x9b4571,_0x29533c){_0x9b4571=_0x9b4571-0x1bf;var _0x22bda2=a199_0x22bd();var _0x5b97a6=_0x22bda2[_0x9b4571];return _0x5b97a6;}import{buildAllFlags as a199_0x5e6b38}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1b50f0){return a199_0x5e6b38(_0x1b50f0,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x6810db,_0x3009f4){var _0x9a9109=a199_0x4f36,_0x3bf7f4=_0x6810db();while(!![]){try{var _0x177373=parseInt(_0x9a9109(0x181))/0x1+parseInt(_0x9a9109(0x180))/0x2*(parseInt(_0x9a9109(0x188))/0x3)+-parseInt(_0x9a9109(0x17f))/0x4+-parseInt(_0x9a9109(0x187))/0x5+parseInt(_0x9a9109(0x185))/0x6*(parseInt(_0x9a9109(0x186))/0x7)+-parseInt(_0x9a9109(0x183))/0x8*(parseInt(_0x9a9109(0x184))/0x9)+-parseInt(_0x9a9109(0x182))/0xa;if(_0x177373===_0x3009f4)break;else _0x3bf7f4['push'](_0x3bf7f4['shift']());}catch(_0x570075){_0x3bf7f4['push'](_0x3bf7f4['shift']());}}}(a199_0x569a,0xa23c3));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a199_0x4dea75}from'@lovrabet/cli-framework';function a199_0x569a(){var _0x95032b=['900676zZQekW','2qZHWmT','1307270zoeYPY','3182880vQjHBG','8RHxjhu','4756086JBlVeq','2028mRtRma','12817irRbBB','2540885UFuemK','955365mtbLEA'];a199_0x569a=function(){return _0x95032b;};return a199_0x569a();}function a199_0x4f36(_0x435929,_0x5cfb92){_0x435929=_0x435929-0x17f;var _0x569ae1=a199_0x569a();var _0x4f36f6=_0x569ae1[_0x435929];return _0x4f36f6;}export function buildAllFlags(_0x195de9){return a199_0x4dea75(_0x195de9,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a200_0xb0f072=a200_0x4457;(function(_0x522bb8,_0x14d6e7){const _0x1dc5b9=a200_0x4457,_0x1a5a5b=_0x522bb8();while(!![]){try{const _0x1d9168=parseInt(_0x1dc5b9(0x148))/0x1*(-parseInt(_0x1dc5b9(0x149))/0x2)+-parseInt(_0x1dc5b9(0x143))/0x3+-parseInt(_0x1dc5b9(0x144))/0x4*(parseInt(_0x1dc5b9(0x145))/0x5)+parseInt(_0x1dc5b9(0x14e))/0x6*(-parseInt(_0x1dc5b9(0x14b))/0x7)+-parseInt(_0x1dc5b9(0x146))/0x8*(-parseInt(_0x1dc5b9(0x14a))/0x9)+parseInt(_0x1dc5b9(0x147))/0xa+-parseInt(_0x1dc5b9(0x14d))/0xb*(-parseInt(_0x1dc5b9(0x14f))/0xc);if(_0x1d9168===_0x14d6e7)break;else _0x1a5a5b['push'](_0x1a5a5b['shift']());}catch(_0x53d322){_0x1a5a5b['push'](_0x1a5a5b['shift']());}}}(a200_0x852a,0x26170));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a200_0x4457(_0x7dc3e7,_0x2c3097){_0x7dc3e7=_0x7dc3e7-0x142;const _0x852a9d=a200_0x852a();let _0x445799=_0x852a9d[_0x7dc3e7];return _0x445799;}const helpers=createFlagHelpers(CliErrors);function a200_0x852a(){const _0x285fe4=['1987160fUsXgP','16CjGDvG','16286Sdpevo','99TUAINa','342671VSeTQT','validateFlags','4359322bbWXYA','24SLHzRJ','12VUWYcM','parseFlags','149811FlMFiU','205232cXsjhc','15shvHrB','66152LOHlLt'];a200_0x852a=function(){return _0x285fe4;};return a200_0x852a();}export const parseFlags=helpers[a200_0xb0f072(0x142)];export const validateFlags=helpers[a200_0xb0f072(0x14c)];
1
+ const a200_0xfef1ef=a200_0x2c15;(function(_0x45161c,_0x3361c4){const _0x45d4cd=a200_0x2c15,_0x12079b=_0x45161c();while(!![]){try{const _0x1a2c38=parseInt(_0x45d4cd(0x107))/0x1*(-parseInt(_0x45d4cd(0x103))/0x2)+parseInt(_0x45d4cd(0x10b))/0x3+-parseInt(_0x45d4cd(0x108))/0x4+parseInt(_0x45d4cd(0x105))/0x5+parseInt(_0x45d4cd(0x104))/0x6*(-parseInt(_0x45d4cd(0x106))/0x7)+-parseInt(_0x45d4cd(0x109))/0x8*(-parseInt(_0x45d4cd(0x10a))/0x9)+parseInt(_0x45d4cd(0x10c))/0xa;if(_0x1a2c38===_0x3361c4)break;else _0x12079b['push'](_0x12079b['shift']());}catch(_0x4d657e){_0x12079b['push'](_0x12079b['shift']());}}}(a200_0x55bf,0xc38b0));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a200_0x2c15(_0x5d23c9,_0x4ad6e1){_0x5d23c9=_0x5d23c9-0x103;const _0x55bfdd=a200_0x55bf();let _0x2c1574=_0x55bfdd[_0x5d23c9];return _0x2c1574;}function a200_0x55bf(){const _0x2ae07e=['7437330SiSYoC','parseFlags','2EojWtm','42WyZEnv','5779885JpAIAr','351946IjyHLr','920827bRaaen','1592728xGngMA','120tuVYJh','329877YsnluI','67182maPwFp'];a200_0x55bf=function(){return _0x2ae07e;};return a200_0x55bf();}export const parseFlags=helpers[a200_0xfef1ef(0x10d)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a201_0x4196d9=a201_0x5dbf;(function(_0x59697b,_0x13ffef){const _0x8246a1=a201_0x5dbf,_0x1d7271=_0x59697b();while(!![]){try{const _0x421918=-parseInt(_0x8246a1(0x13b))/0x1*(parseInt(_0x8246a1(0x145))/0x2)+-parseInt(_0x8246a1(0x13d))/0x3+parseInt(_0x8246a1(0x144))/0x4*(parseInt(_0x8246a1(0x140))/0x5)+parseInt(_0x8246a1(0x142))/0x6+-parseInt(_0x8246a1(0x138))/0x7*(parseInt(_0x8246a1(0x143))/0x8)+-parseInt(_0x8246a1(0x139))/0x9+parseInt(_0x8246a1(0x13a))/0xa;if(_0x421918===_0x13ffef)break;else _0x1d7271['push'](_0x1d7271['shift']());}catch(_0x133bdc){_0x1d7271['push'](_0x1d7271['shift']());}}}(a201_0x523c,0xc7e5a));import{createHelpGenerators}from'@lovrabet/cli-framework';function a201_0x5dbf(_0xcb3e1,_0x4b0fa8){_0xcb3e1=_0xcb3e1-0x138;const _0x523cfb=a201_0x523c();let _0x5dbfbd=_0x523cfb[_0xcb3e1];return _0x5dbfbd;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x65a9f6=>serviceGroups['get'](_0x65a9f6),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x4196d9(0x141)+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]'});export function generateCommandHelp(_0x3df817){const _0x5f46a3=a201_0x4196d9;return generators[_0x5f46a3(0x13e)](_0x3df817);}export const generateServiceHelp=generators[a201_0x4196d9(0x13c)];export const generateFullHelp=generators[a201_0x4196d9(0x13f)];function a201_0x523c(){const _0xce0f6e=['generateFullHelp','112940MinfHi','Requires\x20appcode\x20(set\x20via\x20`','9117498RQgFKZ','88POuDIj','172ZUSMcU','6dbGMbT','888944DMpacS','9116343zksTQg','27802760fwMwza','406201zfMLmu','generateServiceHelp','2471769AMybvA','generateCommandHelp'];a201_0x523c=function(){return _0xce0f6e;};return a201_0x523c();}
1
+ const a201_0x5c115f=a201_0x5707;(function(_0x5217e2,_0x1f62a5){const _0x7e68f5=a201_0x5707,_0x54ee7b=_0x5217e2();while(!![]){try{const _0x5a43e5=-parseInt(_0x7e68f5(0x15f))/0x1+parseInt(_0x7e68f5(0x164))/0x2+parseInt(_0x7e68f5(0x167))/0x3*(-parseInt(_0x7e68f5(0x163))/0x4)+-parseInt(_0x7e68f5(0x160))/0x5+parseInt(_0x7e68f5(0x15d))/0x6+-parseInt(_0x7e68f5(0x169))/0x7+parseInt(_0x7e68f5(0x166))/0x8;if(_0x5a43e5===_0x1f62a5)break;else _0x54ee7b['push'](_0x54ee7b['shift']());}catch(_0x3212e5){_0x54ee7b['push'](_0x54ee7b['shift']());}}}(a201_0x5384,0xac2a1));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a201_0x5707(_0x3c9e4f,_0x20f26c){_0x3c9e4f=_0x3c9e4f-0x15d;const _0x538460=a201_0x5384();let _0x570794=_0x538460[_0x3c9e4f];return _0x570794;}function a201_0x5384(){const _0x15d1f0=['3757292zojJck','2692674CDriUn','\x20[args]\x20[flags]','690337AxGWUi','4415455MkrrWT','generateServiceHelp','generateCommandHelp','4BFjUsZ','442796ZUnGni','Requires\x20appcode\x20(set\x20via\x20`','24736024ZRNmKI','2840433UOrNTk','\x20workspace\x20init`\x20or\x20--appcode).'];a201_0x5384=function(){return _0x15d1f0;};return a201_0x5384();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2f6b9f=>serviceGroups['get'](_0x2f6b9f),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a201_0x5c115f(0x165)+CLI_BIN_NAME+a201_0x5c115f(0x168),'serviceUsageSuffix':a201_0x5c115f(0x15e)});export function generateCommandHelp(_0x39cf2f){const _0x5c22ae=a201_0x5c115f;return generators[_0x5c22ae(0x162)](_0x39cf2f);}export const generateServiceHelp=generators[a201_0x5c115f(0x161)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- (function(_0x91a9a2,_0x475d99){var _0x3218bf=a202_0x513c,_0xa61ccb=_0x91a9a2();while(!![]){try{var _0xfda188=-parseInt(_0x3218bf(0x139))/0x1+-parseInt(_0x3218bf(0x141))/0x2+parseInt(_0x3218bf(0x13a))/0x3+parseInt(_0x3218bf(0x140))/0x4+parseInt(_0x3218bf(0x13e))/0x5+parseInt(_0x3218bf(0x13b))/0x6*(parseInt(_0x3218bf(0x13f))/0x7)+-parseInt(_0x3218bf(0x13c))/0x8*(parseInt(_0x3218bf(0x13d))/0x9);if(_0xfda188===_0x475d99)break;else _0xa61ccb['push'](_0xa61ccb['shift']());}catch(_0x276c31){_0xa61ccb['push'](_0xa61ccb['shift']());}}}(a202_0x5959,0x84fa1));function a202_0x5959(){var _0x2eb8a9=['2761100Pkvnac','4334729DXUAqf','2274248TMiYoL','1102086XtgLtI','319365pjhlkN','796719ypudCn','6XjwxpU','26392QvjbDZ','1611Nxzgrt'];a202_0x5959=function(){return _0x2eb8a9;};return a202_0x5959();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a202_0x513c(_0x313925,_0x27a447){_0x313925=_0x313925-0x139;var _0x59593c=a202_0x5959();var _0x513c3b=_0x59593c[_0x313925];return _0x513c3b;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x226806,_0x2c2485){var _0x13bd89=a202_0x4995,_0x62f254=_0x226806();while(!![]){try{var _0x19de4e=-parseInt(_0x13bd89(0x19a))/0x1*(parseInt(_0x13bd89(0x19b))/0x2)+parseInt(_0x13bd89(0x196))/0x3*(parseInt(_0x13bd89(0x19e))/0x4)+parseInt(_0x13bd89(0x19f))/0x5+-parseInt(_0x13bd89(0x199))/0x6*(parseInt(_0x13bd89(0x197))/0x7)+parseInt(_0x13bd89(0x198))/0x8*(-parseInt(_0x13bd89(0x195))/0x9)+-parseInt(_0x13bd89(0x19d))/0xa+parseInt(_0x13bd89(0x19c))/0xb;if(_0x19de4e===_0x2c2485)break;else _0x62f254['push'](_0x62f254['shift']());}catch(_0x6f4121){_0x62f254['push'](_0x62f254['shift']());}}}(a202_0x15d5,0x75cf3));function a202_0x4995(_0x370439,_0x1c52cf){_0x370439=_0x370439-0x195;var _0x15d55e=a202_0x15d5();var _0x499501=_0x15d55e[_0x370439];return _0x499501;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a202_0x15d5(){var _0x5ab2c9=['44716IFSZNz','16TUzrEI','366kDrupW','169527vpYANe','4CEINUJ','10937993Mecqzs','5848050PnTyoI','419996ylkHPK','495020CxqEbQ','145287HZAFgL','21iKLpFI'];a202_0x15d5=function(){return _0x5ab2c9;};return a202_0x15d5();}
@@ -1 +1 @@
1
- (function(_0x50e2b4,_0x103461){const _0xe4073a=a203_0x27d7,_0x495250=_0x50e2b4();while(!![]){try{const _0x186c97=parseInt(_0xe4073a(0xff))/0x1+-parseInt(_0xe4073a(0x105))/0x2*(parseInt(_0xe4073a(0x100))/0x3)+parseInt(_0xe4073a(0xf8))/0x4+-parseInt(_0xe4073a(0xf9))/0x5*(parseInt(_0xe4073a(0x101))/0x6)+parseInt(_0xe4073a(0x104))/0x7+parseInt(_0xe4073a(0xfc))/0x8*(parseInt(_0xe4073a(0x103))/0x9)+-parseInt(_0xe4073a(0xfb))/0xa;if(_0x186c97===_0x103461)break;else _0x495250['push'](_0x495250['shift']());}catch(_0x40ad40){_0x495250['push'](_0x495250['shift']());}}}(a203_0xb9ab,0xd3cbf));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a203_0x27d7(_0x22e17d,_0x5ad9d9){_0x22e17d=_0x22e17d-0xf7;const _0xb9abdc=a203_0xb9ab();let _0x27d7b0=_0xb9abdc[_0x22e17d];return _0x27d7b0;}function a203_0xb9ab(){const _0x15e5c8=['format','pretty','904681pezaQQ','597BMaBhx','6LjvWBV','_notice','73323fLpTdt','9950808wzXKrJ','11348QotxDF','update','2255000NjvHHN','1476785DcVtae','message','13230560mfTNZQ','712SiSqNi'];a203_0xb9ab=function(){return _0x15e5c8;};return a203_0xb9ab();}export function formatOutput(_0x26dc52,_0x58710a){const _0x3c62ad=a203_0x27d7,_0x253972=_0x26dc52[_0x3c62ad(0x102)],{_notice:_0x2b9735,..._0xc4974e}=_0x26dc52;void _0x2b9735,baseFormatOutput(_0xc4974e,_0x58710a),_0x58710a[_0x3c62ad(0xfd)]===_0x3c62ad(0xfe)&&printPrettyNotice(_0x253972);}function printPrettyNotice(_0x30bc58){const _0x112d55=a203_0x27d7;if(!_0x30bc58?.[_0x112d55(0xf7)])return;console['error'](_0x30bc58[_0x112d55(0xf7)][_0x112d55(0xfa)]+'\x20('+_0x30bc58['update']['url']+')');}
1
+ (function(_0x50a13e,_0x172091){const _0x1aa803=a203_0x559e,_0x55fee9=_0x50a13e();while(!![]){try{const _0x6942c4=parseInt(_0x1aa803(0xff))/0x1+parseInt(_0x1aa803(0x101))/0x2+parseInt(_0x1aa803(0xfb))/0x3*(parseInt(_0x1aa803(0x109))/0x4)+-parseInt(_0x1aa803(0xfe))/0x5*(-parseInt(_0x1aa803(0x108))/0x6)+parseInt(_0x1aa803(0x105))/0x7+-parseInt(_0x1aa803(0x104))/0x8*(-parseInt(_0x1aa803(0x103))/0x9)+-parseInt(_0x1aa803(0x102))/0xa;if(_0x6942c4===_0x172091)break;else _0x55fee9['push'](_0x55fee9['shift']());}catch(_0x3a8163){_0x55fee9['push'](_0x55fee9['shift']());}}}(a203_0x4b9d,0x8fc20));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x467baf,_0x942f11){const _0x5cf46a=a203_0x559e,_0x1e1d4b=_0x467baf[_0x5cf46a(0xfd)],{_notice:_0x58cf0a,..._0x3179e8}=_0x467baf;void _0x58cf0a,baseFormatOutput(_0x3179e8,_0x942f11),_0x942f11[_0x5cf46a(0xfa)]===_0x5cf46a(0x100)&&printPrettyNotice(_0x1e1d4b);}function a203_0x559e(_0x46c143,_0x1381c1){_0x46c143=_0x46c143-0xfa;const _0x4b9d94=a203_0x4b9d();let _0x559eb2=_0x4b9d94[_0x46c143];return _0x559eb2;}function a203_0x4b9d(){const _0x1e0b70=['url','message','36870cWDyuE','158068wKjmPE','format','9FbeZRb','update','_notice','865ehfGmH','403317ZHjHzZ','pretty','774976yMRHvB','20096270iMDfmz','1529514UoQnLM','8WggWBU','3192504rmKsPH'];a203_0x4b9d=function(){return _0x1e0b70;};return a203_0x4b9d();}function printPrettyNotice(_0x3fde9b){const _0x5b8d1a=a203_0x559e;if(!_0x3fde9b?.[_0x5b8d1a(0xfc)])return;console['error'](_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x107)]+'\x20('+_0x3fde9b[_0x5b8d1a(0xfc)][_0x5b8d1a(0x106)]+')');}
@@ -1 +1 @@
1
- function a204_0x4c46(_0x458cbb,_0x2e4ebd){_0x458cbb=_0x458cbb-0x1c6;var _0x16ec6b=a204_0x16ec();var _0x4c469b=_0x16ec6b[_0x458cbb];return _0x4c469b;}(function(_0x28c04c,_0x5b3ef1){var _0x7b0cf6=a204_0x4c46,_0x5abfbf=_0x28c04c();while(!![]){try{var _0x5419c6=parseInt(_0x7b0cf6(0x1ca))/0x1*(parseInt(_0x7b0cf6(0x1cd))/0x2)+-parseInt(_0x7b0cf6(0x1c8))/0x3*(-parseInt(_0x7b0cf6(0x1c6))/0x4)+-parseInt(_0x7b0cf6(0x1c7))/0x5+-parseInt(_0x7b0cf6(0x1c9))/0x6+parseInt(_0x7b0cf6(0x1cb))/0x7*(parseInt(_0x7b0cf6(0x1cc))/0x8)+parseInt(_0x7b0cf6(0x1ce))/0x9+-parseInt(_0x7b0cf6(0x1cf))/0xa;if(_0x5419c6===_0x5b3ef1)break;else _0x5abfbf['push'](_0x5abfbf['shift']());}catch(_0x41d8ba){_0x5abfbf['push'](_0x5abfbf['shift']());}}}(a204_0x16ec,0x5b1ce));function a204_0x16ec(){var _0x1756bb=['676069BTqRtm','3731350AyOMmb','8iopYKp','2BZTsjr','4817808RMwBbg','410710nVXXxc','4MxEfnT','3388140mwxsKx','33942OnXEfe','3983088ZkwEmh'];a204_0x16ec=function(){return _0x1756bb;};return a204_0x16ec();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a204_0x314e(_0x4febea,_0x377113){_0x4febea=_0x4febea-0x9c;var _0x297002=a204_0x2970();var _0x314e0c=_0x297002[_0x4febea];return _0x314e0c;}(function(_0x2ec4d8,_0x509889){var _0x24991a=a204_0x314e,_0x102881=_0x2ec4d8();while(!![]){try{var _0x2edce1=parseInt(_0x24991a(0xa0))/0x1+parseInt(_0x24991a(0x9d))/0x2+-parseInt(_0x24991a(0xa2))/0x3+parseInt(_0x24991a(0x9e))/0x4+-parseInt(_0x24991a(0xa1))/0x5+-parseInt(_0x24991a(0x9c))/0x6+parseInt(_0x24991a(0x9f))/0x7;if(_0x2edce1===_0x509889)break;else _0x102881['push'](_0x102881['shift']());}catch(_0x476872){_0x102881['push'](_0x102881['shift']());}}}(a204_0x2970,0x1d094));function a204_0x2970(){var _0x24a1ff=['140208eUbrHg','900774TAGWOo','188929wrRLfO','375090xlshxM','470847gQLDvN','1337100FUGDhq','442172eomIoY'];a204_0x2970=function(){return _0x24a1ff;};return a204_0x2970();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x1fc069,_0x29c1b9){const _0x287da1=a205_0x358f,_0x1a46e9=_0x1fc069();while(!![]){try{const _0x53d532=-parseInt(_0x287da1(0x1fb))/0x1*(-parseInt(_0x287da1(0x1f6))/0x2)+-parseInt(_0x287da1(0x1f7))/0x3+-parseInt(_0x287da1(0x1f1))/0x4+-parseInt(_0x287da1(0x1ff))/0x5+parseInt(_0x287da1(0x1eb))/0x6+parseInt(_0x287da1(0x1fa))/0x7*(-parseInt(_0x287da1(0x1ee))/0x8)+parseInt(_0x287da1(0x1ea))/0x9*(parseInt(_0x287da1(0x1f8))/0xa);if(_0x53d532===_0x29c1b9)break;else _0x1a46e9['push'](_0x1a46e9['shift']());}catch(_0x5d399b){_0x1a46e9['push'](_0x1a46e9['shift']());}}}(a205_0x32ac,0x20a4b));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a205_0x358f(_0x190c62,_0x3469f8){_0x190c62=_0x190c62-0x1ea;const _0x32ac4f=a205_0x32ac();let _0x358f75=_0x32ac4f[_0x190c62];return _0x358f75;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x28233b,_0x3f6e27,_0x134f09,_0x79b739){const _0x4da1dd=a205_0x358f,_0x15ce11=_0x28233b[_0x4da1dd(0x1f4)]['some'](_0x56e799=>_0x56e799['name']===_0x4da1dd(0x1fe)&&_0x56e799['type']==='string'),_0xb8bbe0=_0x28233b[_0x4da1dd(0x1f4)]['some'](_0x16b035=>_0x16b035[_0x4da1dd(0x1fd)]===_0x4da1dd(0x1ec)&&_0x16b035[_0x4da1dd(0x1fc)]==='string');if(!_0x15ce11||!_0xb8bbe0)return;const _0x31f8c5=_0x3f6e27['code']?String(_0x3f6e27[_0x4da1dd(0x1fe)]):'',_0x10bc1b=_0x3f6e27['alias']?String(_0x3f6e27[_0x4da1dd(0x1ec)]):'';if(!_0x31f8c5&&!_0x10bc1b)throw CliErrors['validation']('`'+_0x79b739+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x10bc1b&&!_0x31f8c5){const _0x3fbc0e=resolveAlias(_0x134f09,_0x10bc1b);if(!_0x3fbc0e){const _0x53a16f=listAliases(_0x134f09)[_0x4da1dd(0x1f9)](_0x564758=>_0x564758[_0x4da1dd(0x1ec)]),_0x18b7d0=_0x53a16f[_0x4da1dd(0x1f5)]?'Available\x20aliases:\x20'+_0x53a16f[_0x4da1dd(0x1ef)](',\x20'):_0x4da1dd(0x1ed)+_0x134f09+'.\x20Run\x20`'+CLI_BIN_NAME+_0x4da1dd(0x1f0);throw CliErrors[_0x4da1dd(0x1f3)](_0x4da1dd(0x1f2)+_0x10bc1b+'\x22.\x20'+_0x18b7d0);}_0x3f6e27[_0x4da1dd(0x1fe)]=_0x3fbc0e;}}function a205_0x32ac(){const _0x5f0bef=['validation','flags','length','429162DxPWSx','295881NEFSer','10JXOCjj','map','225127wqcdPs','1PDKXKj','type','name','code','164115GuSgDD','741492CGkkSD','490080BmcPBV','alias','No\x20api.ts\x20found\x20in\x20','24aZUnbr','join','\x20api\x20pull`\x20first.','68036QAmzIH','Unknown\x20alias\x20\x22'];a205_0x32ac=function(){return _0x5f0bef;};return a205_0x32ac();}
1
+ function a205_0x5da6(_0x31787e,_0x37af34){_0x31787e=_0x31787e-0x6a;const _0x55f83d=a205_0x55f8();let _0x5da6a9=_0x55f83d[_0x31787e];return _0x5da6a9;}(function(_0x3a21c2,_0x4ecce8){const _0x474a93=a205_0x5da6,_0x1f17c2=_0x3a21c2();while(!![]){try{const _0x372328=parseInt(_0x474a93(0x7a))/0x1*(-parseInt(_0x474a93(0x75))/0x2)+parseInt(_0x474a93(0x7f))/0x3+parseInt(_0x474a93(0x79))/0x4+parseInt(_0x474a93(0x80))/0x5+-parseInt(_0x474a93(0x74))/0x6*(parseInt(_0x474a93(0x71))/0x7)+-parseInt(_0x474a93(0x70))/0x8+-parseInt(_0x474a93(0x7b))/0x9*(parseInt(_0x474a93(0x76))/0xa);if(_0x372328===_0x4ecce8)break;else _0x1f17c2['push'](_0x1f17c2['shift']());}catch(_0x35d3d1){_0x1f17c2['push'](_0x1f17c2['shift']());}}}(a205_0x55f8,0xc8a17));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a205_0x55f8(){const _0x9ed5c3=['4435630bMQIlP','`\x20requires\x20either\x20--code\x20or\x20--alias.','No\x20api.ts\x20found\x20in\x20','332068qUOljy','2hbEGmZ','9aXPqTr','flags','code','type','4446834OPjAvp','7016235lxNthh','Unknown\x20alias\x20\x22','join','\x22.\x20','some','string','\x20api\x20pull`\x20first.','alias','1167320AenqeK','182665SjdbcM','length','validation','6vsDDgt','1531186iigVxM'];a205_0x55f8=function(){return _0x9ed5c3;};return a205_0x55f8();}export function resolveAliasToCode(_0x368878,_0x5b8ed7,_0x366286,_0x367178){const _0x1f0c02=a205_0x5da6,_0x490bd6=_0x368878['flags']['some'](_0x38771a=>_0x38771a['name']==='code'&&_0x38771a[_0x1f0c02(0x7e)]===_0x1f0c02(0x6d)),_0x1c1723=_0x368878[_0x1f0c02(0x7c)][_0x1f0c02(0x6c)](_0x45de5c=>_0x45de5c['name']===_0x1f0c02(0x6f)&&_0x45de5c['type']===_0x1f0c02(0x6d));if(!_0x490bd6||!_0x1c1723)return;const _0x53e22f=_0x5b8ed7[_0x1f0c02(0x7d)]?String(_0x5b8ed7[_0x1f0c02(0x7d)]):'',_0x2dad5f=_0x5b8ed7['alias']?String(_0x5b8ed7[_0x1f0c02(0x6f)]):'';if(!_0x53e22f&&!_0x2dad5f)throw CliErrors[_0x1f0c02(0x73)]('`'+_0x367178+_0x1f0c02(0x77));if(_0x2dad5f&&!_0x53e22f){const _0x161576=resolveAlias(_0x366286,_0x2dad5f);if(!_0x161576){const _0x1dd4b6=listAliases(_0x366286)['map'](_0x4e51b2=>_0x4e51b2[_0x1f0c02(0x6f)]),_0x3ef95d=_0x1dd4b6[_0x1f0c02(0x72)]?'Available\x20aliases:\x20'+_0x1dd4b6[_0x1f0c02(0x6a)](',\x20'):_0x1f0c02(0x78)+_0x366286+'.\x20Run\x20`'+CLI_BIN_NAME+_0x1f0c02(0x6e);throw CliErrors[_0x1f0c02(0x73)](_0x1f0c02(0x81)+_0x2dad5f+_0x1f0c02(0x6b)+_0x3ef95d);}_0x5b8ed7[_0x1f0c02(0x7d)]=_0x161576;}}