@lovrabet/rabetbase-cli 2.2.4-beta.4 → 2.2.4-beta.5

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 (208) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.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/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context/app-resolver.js +1 -0
  144. package/lib/context/auth-resolver.js +1 -0
  145. package/lib/context/config-loader.js +1 -0
  146. package/lib/context.js +1 -1
  147. package/lib/core/alias-resolver.js +1 -1
  148. package/lib/core/api-client.js +1 -1
  149. package/lib/core/bff/config.js +1 -1
  150. package/lib/core/bff/file-system.js +1 -1
  151. package/lib/core/bff/hash.js +1 -1
  152. package/lib/core/bff/lock.js +1 -1
  153. package/lib/core/bff/utils.js +1 -1
  154. package/lib/core/db-resolver.js +1 -1
  155. package/lib/core/page/file-system.js +1 -1
  156. package/lib/core/page/hash.js +1 -1
  157. package/lib/core/page/lock.js +1 -1
  158. package/lib/core/sql-sync/config.js +1 -1
  159. package/lib/core/sql-sync/file-system.js +1 -1
  160. package/lib/core/sql-sync/hash.js +1 -1
  161. package/lib/core/sql-sync/lock.js +1 -1
  162. package/lib/core/sql-sync/utils.js +1 -1
  163. package/lib/core/sql-validator.js +1 -1
  164. package/lib/errors.js +1 -1
  165. package/lib/framework/build-all-flags.js +1 -1
  166. package/lib/framework/flags.js +1 -1
  167. package/lib/framework/help.js +1 -1
  168. package/lib/framework/index.js +1 -1
  169. package/lib/framework/output.js +1 -1
  170. package/lib/framework/response.js +1 -1
  171. package/lib/framework/runner-alias.js +1 -1
  172. package/lib/framework/runner.js +1 -1
  173. package/lib/framework/schema-export.js +1 -1
  174. package/lib/framework/types.js +1 -1
  175. package/lib/generated/build-info.js +1 -1
  176. package/lib/help.js +1 -1
  177. package/lib/skills/main.js +1 -1
  178. package/lib/skills/npx-skills-add.js +1 -1
  179. package/lib/telemetry/cli-command-trace.js +1 -1
  180. package/lib/telemetry/cli-help-trace.js +1 -1
  181. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  182. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  183. package/lib/telemetry/send-cli-trace-log.js +1 -1
  184. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  185. package/lib/utils/ai_config.js +1 -1
  186. package/lib/utils/apply-jq-filter.js +1 -1
  187. package/lib/utils/cdn-config.js +1 -1
  188. package/lib/utils/check-sdk-version.js +1 -1
  189. package/lib/utils/cli-version-check.js +1 -1
  190. package/lib/utils/cli-version-policy.js +1 -1
  191. package/lib/utils/config.js +1 -1
  192. package/lib/utils/copy-directory.js +1 -1
  193. package/lib/utils/entity-with-id.js +1 -1
  194. package/lib/utils/file-utils.js +1 -1
  195. package/lib/utils/guides-cdn.js +1 -1
  196. package/lib/utils/http-client.js +1 -1
  197. package/lib/utils/is-non-interactive.js +1 -1
  198. package/lib/utils/logger.js +1 -1
  199. package/lib/utils/params.js +1 -1
  200. package/lib/utils/platform.js +1 -1
  201. package/lib/utils/rules-cdn.js +1 -1
  202. package/lib/utils/sleep.js +1 -1
  203. package/lib/utils/template-replacer.js +1 -1
  204. package/lib/utils/update-notice.js +1 -1
  205. package/lib/utils/version.js +1 -1
  206. package/lib/utils/with-active-cookie.js +1 -1
  207. package/lib/utils/write-cli-side-channel.js +1 -1
  208. package/package.json +2 -2
@@ -1 +1 @@
1
- function a148_0x3d1d(){const _0xf1491f=['12873dqLCjq','12774032DXbNIR','digest','11PnLFAU','hex','115SbmiAl','md5','245942oMBTqx','77TkzsXp','169316bcZHXh','6839700GzMjPj','5982bXybKU','utf8','12760632oBCVPl','3779700WkSNfG','update'];a148_0x3d1d=function(){return _0xf1491f;};return a148_0x3d1d();}function a148_0x1f50(_0x14fe91,_0x4debfa){_0x14fe91=_0x14fe91-0x135;const _0x3d1d57=a148_0x3d1d();let _0x1f5025=_0x3d1d57[_0x14fe91];return _0x1f5025;}(function(_0xc2f041,_0xb324ad){const _0x268ddd=a148_0x1f50,_0x487af2=_0xc2f041();while(!![]){try{const _0x545e0d=-parseInt(_0x268ddd(0x143))/0x1*(parseInt(_0x268ddd(0x137))/0x2)+parseInt(_0x268ddd(0x13e))/0x3+-parseInt(_0x268ddd(0x139))/0x4*(-parseInt(_0x268ddd(0x135))/0x5)+-parseInt(_0x268ddd(0x13b))/0x6*(-parseInt(_0x268ddd(0x140))/0x7)+parseInt(_0x268ddd(0x141))/0x8+parseInt(_0x268ddd(0x13d))/0x9+parseInt(_0x268ddd(0x13a))/0xa*(-parseInt(_0x268ddd(0x138))/0xb);if(_0x545e0d===_0xb324ad)break;else _0x487af2['push'](_0x487af2['shift']());}catch(_0x581942){_0x487af2['push'](_0x487af2['shift']());}}}(a148_0x3d1d,0xe5c19));import{readFile}from'node:fs/promises';import a148_0x19b1a5 from'node:crypto';export function computeContentHash(_0x356457){const _0x37c87b=a148_0x1f50;return a148_0x19b1a5['createHash'](_0x37c87b(0x136))[_0x37c87b(0x13f)](_0x356457)[_0x37c87b(0x142)](_0x37c87b(0x144));}export async function computeFileHash(_0x100de4){const _0x34ea50=a148_0x1f50,_0x3c6017=await readFile(_0x100de4,_0x34ea50(0x13c));return computeContentHash(_0x3c6017);}
1
+ function a151_0x2756(_0x44b0d6,_0x1908b0){_0x44b0d6=_0x44b0d6-0xbc;const _0x415150=a151_0x4151();let _0x27565c=_0x415150[_0x44b0d6];return _0x27565c;}(function(_0x58ef06,_0x17492e){const _0x1559c0=a151_0x2756,_0x3029c0=_0x58ef06();while(!![]){try{const _0x385dfc=parseInt(_0x1559c0(0xbd))/0x1+-parseInt(_0x1559c0(0xbc))/0x2+parseInt(_0x1559c0(0xc0))/0x3+parseInt(_0x1559c0(0xc8))/0x4+-parseInt(_0x1559c0(0xbe))/0x5+parseInt(_0x1559c0(0xc5))/0x6*(-parseInt(_0x1559c0(0xc3))/0x7)+parseInt(_0x1559c0(0xc4))/0x8;if(_0x385dfc===_0x17492e)break;else _0x3029c0['push'](_0x3029c0['shift']());}catch(_0x283009){_0x3029c0['push'](_0x3029c0['shift']());}}}(a151_0x4151,0xd6280));import{readFile}from'node:fs/promises';function a151_0x4151(){const _0x5a6356=['md5','utf8','21NOxyDB','13910136fiSouU','1891710IYAwZj','hex','update','1494016gjWtGx','2970828gGfERw','602474vWWvnR','3279480ttcjFC','createHash','3748812rkLTVz'];a151_0x4151=function(){return _0x5a6356;};return a151_0x4151();}import a151_0x440b1a from'node:crypto';export function computeContentHash(_0x5eca0a){const _0x232af0=a151_0x2756;return a151_0x440b1a[_0x232af0(0xbf)](_0x232af0(0xc1))[_0x232af0(0xc7)](_0x5eca0a)['digest'](_0x232af0(0xc6));}export async function computeFileHash(_0x43548d){const _0x3e8636=a151_0x2756,_0x181b8e=await readFile(_0x43548d,_0x3e8636(0xc2));return computeContentHash(_0x181b8e);}
@@ -1 +1 @@
1
- (function(_0x2b4f18,_0x328d89){const _0xb47e7c=a149_0x5db7,_0x3b5780=_0x2b4f18();while(!![]){try{const _0x33b3dd=-parseInt(_0xb47e7c(0x93))/0x1*(-parseInt(_0xb47e7c(0x92))/0x2)+-parseInt(_0xb47e7c(0x8d))/0x3+parseInt(_0xb47e7c(0x94))/0x4+-parseInt(_0xb47e7c(0x87))/0x5+parseInt(_0xb47e7c(0x95))/0x6*(parseInt(_0xb47e7c(0x8a))/0x7)+parseInt(_0xb47e7c(0x98))/0x8*(-parseInt(_0xb47e7c(0x9b))/0x9)+parseInt(_0xb47e7c(0x9a))/0xa*(parseInt(_0xb47e7c(0x8b))/0xb);if(_0x33b3dd===_0x328d89)break;else _0x3b5780['push'](_0x3b5780['shift']());}catch(_0x1d517d){_0x3b5780['push'](_0x3b5780['shift']());}}}(a149_0x389a,0x30afa));function a149_0x389a(){const _0x3d01b0=['scriptsRoot','4CkACmT','42628OpQdmY','967424cPUywk','6WbFEcn',':\x20scriptsRoot\x20mismatch\x20—\x20','lastSync','8vgkNnN','current\x20\x22','10vNuhYX','3439782ndNgYU','stringify','571765GZZttM','ENOENT','functions','1170169EpvuWC','3844511XZRryv','utf8','443433ousRxa','parse','object','apps'];a149_0x389a=function(){return _0x3d01b0;};return a149_0x389a();}function a149_0x5db7(_0x3c14b7,_0x49f8bc){_0x3c14b7=_0x3c14b7-0x86;const _0x389abc=a149_0x389a();let _0x5db759=_0x389abc[_0x3c14b7];return _0x5db759;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x592613,_0x6ad114,_0x4f346,_0x3c85fe){const _0x61d122=a149_0x5db7,_0x12361e={'apps':_0x592613[_0x61d122(0x90)]&&typeof _0x592613[_0x61d122(0x90)]==='object'?_0x592613[_0x61d122(0x90)]:{}};let _0x1b5207=_0x12361e[_0x61d122(0x90)][_0x6ad114];if(!_0x1b5207)return _0x1b5207={'scriptsRoot':_0x4f346,'lastSync':'','functions':{}},_0x12361e['apps'][_0x6ad114]=_0x1b5207,{'lockData':_0x12361e,'appLock':_0x1b5207};if(!_0x1b5207['scriptsRoot'])_0x1b5207[_0x61d122(0x91)]=_0x4f346;else{if(_0x1b5207[_0x61d122(0x91)]!==_0x4f346)throw new Error(_0x3c85fe+_0x61d122(0x96)+(_0x61d122(0x99)+_0x4f346+'\x22\x20vs\x20lock\x20\x22'+_0x1b5207[_0x61d122(0x91)]+'\x22.\x20')+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x1b5207[_0x61d122(0x89)]&&(_0x1b5207[_0x61d122(0x89)]={}),!_0x1b5207[_0x61d122(0x97)]&&(_0x1b5207['lastSync']=''),{'lockData':_0x12361e,'appLock':_0x1b5207};}export async function readBffLockFile(_0x51fb0f){const _0x5e4f60=a149_0x5db7;try{const _0x4675c6=await readFile(_0x51fb0f,'utf8'),_0x4ecd33=JSON[_0x5e4f60(0x8e)](_0x4675c6);return{'apps':_0x4ecd33[_0x5e4f60(0x90)]&&typeof _0x4ecd33[_0x5e4f60(0x90)]===_0x5e4f60(0x8f)?_0x4ecd33['apps']:{}};}catch(_0x791903){if(_0x791903['code']===_0x5e4f60(0x88))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x791903));}}export async function writeBffLockFile(_0x4d7347,_0x4e954c){const _0x47a2c7=a149_0x5db7;await mkdir(dirname(_0x4d7347),{'recursive':!![]}),await writeFile(_0x4d7347,JSON[_0x47a2c7(0x86)](_0x4e954c,null,0x2),_0x47a2c7(0x8c));}
1
+ (function(_0x35f47a,_0x28559f){const _0x43c1e9=a152_0x3bc9,_0x13b065=_0x35f47a();while(!![]){try{const _0x1e0251=parseInt(_0x43c1e9(0x122))/0x1+parseInt(_0x43c1e9(0x134))/0x2*(parseInt(_0x43c1e9(0x11e))/0x3)+parseInt(_0x43c1e9(0x125))/0x4*(-parseInt(_0x43c1e9(0x129))/0x5)+parseInt(_0x43c1e9(0x124))/0x6*(parseInt(_0x43c1e9(0x130))/0x7)+-parseInt(_0x43c1e9(0x12a))/0x8+-parseInt(_0x43c1e9(0x127))/0x9*(parseInt(_0x43c1e9(0x12c))/0xa)+parseInt(_0x43c1e9(0x126))/0xb;if(_0x1e0251===_0x28559f)break;else _0x13b065['push'](_0x13b065['shift']());}catch(_0x369551){_0x13b065['push'](_0x13b065['shift']());}}}(a152_0x2e98,0x9e779));import{mkdir,readFile,writeFile}from'node:fs/promises';function a152_0x3bc9(_0x2b57fd,_0x392dac){_0x2b57fd=_0x2b57fd-0x11d;const _0x2e9855=a152_0x2e98();let _0x3bc98f=_0x2e9855[_0x2b57fd];return _0x3bc98f;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x8f885,_0x306605,_0x3d6f12,_0x216419){const _0x5b6f39=a152_0x3bc9,_0x47765a={'apps':_0x8f885[_0x5b6f39(0x132)]&&typeof _0x8f885[_0x5b6f39(0x132)]===_0x5b6f39(0x12e)?_0x8f885[_0x5b6f39(0x132)]:{}};let _0x29025e=_0x47765a[_0x5b6f39(0x132)][_0x306605];if(!_0x29025e)return _0x29025e={'scriptsRoot':_0x3d6f12,'lastSync':'','functions':{}},_0x47765a[_0x5b6f39(0x132)][_0x306605]=_0x29025e,{'lockData':_0x47765a,'appLock':_0x29025e};if(!_0x29025e[_0x5b6f39(0x11f)])_0x29025e[_0x5b6f39(0x11f)]=_0x3d6f12;else{if(_0x29025e[_0x5b6f39(0x11f)]!==_0x3d6f12)throw new Error(_0x216419+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x5b6f39(0x121)+_0x3d6f12+_0x5b6f39(0x133)+_0x29025e[_0x5b6f39(0x11f)]+'\x22.\x20')+'Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x29025e[_0x5b6f39(0x123)]&&(_0x29025e[_0x5b6f39(0x123)]={}),!_0x29025e[_0x5b6f39(0x12d)]&&(_0x29025e[_0x5b6f39(0x12d)]=''),{'lockData':_0x47765a,'appLock':_0x29025e};}function a152_0x2e98(){const _0x1b666a=['50484jziIOd','parse','apps','\x22\x20vs\x20lock\x20\x22','61366guYveU','utf8','27tsAMBm','scriptsRoot','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','current\x20\x22','40327YaKpRK','functions','702PqFcZV','92bGxBFy','11543906ZpQEmz','38493ctkQeM','stringify','220510MNGaBI','3549192DNBxBt','code','240tvvKLN','lastSync','object','ENOENT'];a152_0x2e98=function(){return _0x1b666a;};return a152_0x2e98();}export async function readBffLockFile(_0x203340){const _0x5efedf=a152_0x3bc9;try{const _0x34275f=await readFile(_0x203340,_0x5efedf(0x11d)),_0x5f151b=JSON[_0x5efedf(0x131)](_0x34275f);return{'apps':_0x5f151b[_0x5efedf(0x132)]&&typeof _0x5f151b[_0x5efedf(0x132)]==='object'?_0x5f151b[_0x5efedf(0x132)]:{}};}catch(_0x5333cf){if(_0x5333cf[_0x5efedf(0x12b)]===_0x5efedf(0x12f))return null;throw new Error(_0x5efedf(0x120)+String(_0x5333cf));}}export async function writeBffLockFile(_0x2f9bd4,_0x16c7b2){const _0x1d3920=a152_0x3bc9;await mkdir(dirname(_0x2f9bd4),{'recursive':!![]}),await writeFile(_0x2f9bd4,JSON[_0x1d3920(0x128)](_0x16c7b2,null,0x2),_0x1d3920(0x11d));}
@@ -1 +1 @@
1
- (function(_0x304082,_0x299d2c){const _0x2e0142=a151_0x48e8,_0xcac030=_0x304082();while(!![]){try{const _0x529984=parseInt(_0x2e0142(0x1af))/0x1+parseInt(_0x2e0142(0x1b5))/0x2+-parseInt(_0x2e0142(0x1b6))/0x3*(parseInt(_0x2e0142(0x1ba))/0x4)+-parseInt(_0x2e0142(0x1b4))/0x5+-parseInt(_0x2e0142(0x1aa))/0x6+parseInt(_0x2e0142(0x1a8))/0x7*(-parseInt(_0x2e0142(0x1a7))/0x8)+parseInt(_0x2e0142(0x1b3))/0x9;if(_0x529984===_0x299d2c)break;else _0xcac030['push'](_0xcac030['shift']());}catch(_0x43bc93){_0xcac030['push'](_0xcac030['shift']());}}}(a151_0x5795,0xb7e7d));export function snakeToCamel(_0x44806e){const _0xb78970=a151_0x48e8;return _0x44806e['toLowerCase']()[_0xb78970(0x1b0)](/_([a-z])/g,(_0x22c9e9,_0x2ec639)=>_0x2ec639['toUpperCase']());}function a151_0x48e8(_0x4ac22c,_0x326881){_0x4ac22c=_0x4ac22c-0x1a7;const _0x579553=a151_0x5795();let _0x48e817=_0x579553[_0x4ac22c];return _0x48e817;}export function findHookLocationByRemoteId(_0x33c8ee,_0xeea70c){const _0x34b9fd=a151_0x48e8;if(!_0xeea70c)return undefined;for(const _0x366615 of Object[_0x34b9fd(0x1ad)](_0x33c8ee)){if(_0x366615[_0x34b9fd(0x1b1)]===_0xeea70c&&_0x366615[_0x34b9fd(0x1b7)]&&_0x366615[_0x34b9fd(0x1ac)]&&_0x366615['functionNode'])return{'datasetCode':_0x366615[_0x34b9fd(0x1b7)],'operationType':_0x366615[_0x34b9fd(0x1ac)],'functionNode':_0x366615['functionNode']};}return undefined;}export function extractScriptDescription(_0x424e3d){const _0x88beae=a151_0x48e8,_0x5e87a0=_0x424e3d[_0x88beae(0x1b8)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x5e87a0?.[0x1]?.['trim']()||undefined;}function a151_0x5795(){const _0xba6d08=['before','707249VHkPan','replace','remoteId','test','4841208XxHTqN','6931295gfDxsE','2960146UllEcK','437412oXeVPN','datasetCode','match','toLowerCase','4pNnXZI','757272IfBjON','7PuwpwR','after','2071410lXPzyg','trim','operationType','values'];a151_0x5795=function(){return _0xba6d08;};return a151_0x5795();}export function isValidBffFunctionName(_0x482cad){const _0xa76a5e=a151_0x48e8;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0xa76a5e(0x1b2)](_0x482cad);}export function normalizeHookFunctionNode(_0x541e19){const _0x581a60=a151_0x48e8;if(!_0x541e19)return undefined;const _0x58c6ae=_0x541e19[_0x581a60(0x1ab)]()[_0x581a60(0x1b9)]();if(_0x58c6ae===_0x581a60(0x1ae)||_0x58c6ae===_0x581a60(0x1a9))return _0x58c6ae;return undefined;}
1
+ (function(_0x429336,_0x5edbf9){const _0x40b61e=a154_0x587e,_0x47f09e=_0x429336();while(!![]){try{const _0x5c30a7=-parseInt(_0x40b61e(0x1c6))/0x1+parseInt(_0x40b61e(0x1d0))/0x2+-parseInt(_0x40b61e(0x1ce))/0x3*(parseInt(_0x40b61e(0x1cc))/0x4)+parseInt(_0x40b61e(0x1c7))/0x5+parseInt(_0x40b61e(0x1cd))/0x6+parseInt(_0x40b61e(0x1c9))/0x7+-parseInt(_0x40b61e(0x1c1))/0x8;if(_0x5c30a7===_0x5edbf9)break;else _0x47f09e['push'](_0x47f09e['shift']());}catch(_0x1a8d8c){_0x47f09e['push'](_0x47f09e['shift']());}}}(a154_0x429a,0xdaff6));function a154_0x429a(){const _0x3884a9=['match','4fKUaie','7222398RduzQy','1092987yzRCeH','trim','2961632YxLxhL','test','30278216hLjgxp','replace','after','operationType','functionNode','673729fPAUsM','8849370GMocca','datasetCode','8857982DWWBnc','toUpperCase'];a154_0x429a=function(){return _0x3884a9;};return a154_0x429a();}export function snakeToCamel(_0x1b5075){const _0x56f318=a154_0x587e;return _0x1b5075['toLowerCase']()[_0x56f318(0x1c2)](/_([a-z])/g,(_0x53d2c0,_0x4c6af2)=>_0x4c6af2[_0x56f318(0x1ca)]());}export function findHookLocationByRemoteId(_0xf3a20b,_0x4615dd){const _0x3db222=a154_0x587e;if(!_0x4615dd)return undefined;for(const _0x31c922 of Object['values'](_0xf3a20b)){if(_0x31c922['remoteId']===_0x4615dd&&_0x31c922[_0x3db222(0x1c8)]&&_0x31c922[_0x3db222(0x1c4)]&&_0x31c922[_0x3db222(0x1c5)])return{'datasetCode':_0x31c922[_0x3db222(0x1c8)],'operationType':_0x31c922['operationType'],'functionNode':_0x31c922[_0x3db222(0x1c5)]};}return undefined;}export function extractScriptDescription(_0x448d41){const _0x2f11ac=a154_0x587e,_0x4979da=_0x448d41[_0x2f11ac(0x1cb)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x4979da?.[0x1]?.[_0x2f11ac(0x1cf)]()||undefined;}function a154_0x587e(_0x3f184a,_0x2f1bdf){_0x3f184a=_0x3f184a-0x1c0;const _0x429ad7=a154_0x429a();let _0x587e52=_0x429ad7[_0x3f184a];return _0x587e52;}export function isValidBffFunctionName(_0x208a53){const _0x38c959=a154_0x587e;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x38c959(0x1c0)](_0x208a53);}export function normalizeHookFunctionNode(_0x1883e7){const _0x42b01f=a154_0x587e;if(!_0x1883e7)return undefined;const _0x9b39e7=_0x1883e7[_0x42b01f(0x1cf)]()['toLowerCase']();if(_0x9b39e7==='before'||_0x9b39e7===_0x42b01f(0x1c3))return _0x9b39e7;return undefined;}
@@ -1 +1 @@
1
- (function(_0x253bc9,_0x206f84){const _0x3b7f86=a152_0x3780,_0x20c774=_0x253bc9();while(!![]){try{const _0x493266=-parseInt(_0x3b7f86(0x1b8))/0x1+parseInt(_0x3b7f86(0x1b4))/0x2+parseInt(_0x3b7f86(0x1ab))/0x3+-parseInt(_0x3b7f86(0x1a5))/0x4*(parseInt(_0x3b7f86(0x1a8))/0x5)+parseInt(_0x3b7f86(0x1b6))/0x6+parseInt(_0x3b7f86(0x1ac))/0x7*(-parseInt(_0x3b7f86(0x1a1))/0x8)+-parseInt(_0x3b7f86(0x1a9))/0x9*(-parseInt(_0x3b7f86(0x1aa))/0xa);if(_0x493266===_0x206f84)break;else _0x20c774['push'](_0x20c774['shift']());}catch(_0x4b91e8){_0x20c774['push'](_0x20c774['shift']());}}}(a152_0x41c6,0xb1e55));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x116a00){const _0x332e8d=a152_0x3780;if(cache['has'](_0x116a00))return cache[_0x332e8d(0x1b1)](_0x116a00);const _0x1d9a52=await listDatasets(_0x116a00),_0x4f7a6d=new Map();for(const _0x205cff of _0x1d9a52){const _0x27e5e1=_0x205cff[_0x332e8d(0x1b9)];_0x27e5e1?.['dbId']!=null&&_0x4f7a6d['set'](_0x27e5e1['dbId'],_0x27e5e1[_0x332e8d(0x1ae)]??'db-'+_0x27e5e1[_0x332e8d(0x1b5)]);}const _0x24a824=[..._0x4f7a6d['entries']()]['map'](([_0x391b9c,_0x36be66])=>({'dbId':_0x391b9c,'dbName':_0x36be66}));return cache[_0x332e8d(0x1b2)](_0x116a00,_0x24a824),_0x24a824;}export async function resolveDb(_0x2d4c8b,_0x39939d){const _0x3cb59d=a152_0x3780,_0x506397=await listDatabases(_0x2d4c8b);if(_0x506397[_0x3cb59d(0x1b0)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x2d4c8b+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x39939d)return{'resolved':_0x506397};const _0x9c5ba2=Number(_0x39939d);if(!Number[_0x3cb59d(0x1af)](_0x9c5ba2)){const _0x5d7648=_0x506397['find'](_0x1ee6a8=>_0x1ee6a8[_0x3cb59d(0x1b5)]===_0x9c5ba2);if(_0x5d7648)return{'resolved':[_0x5d7648]};}const _0x179e15=_0x39939d['toLowerCase'](),_0x169538=_0x506397[_0x3cb59d(0x1ba)](_0x15fc4f=>_0x15fc4f[_0x3cb59d(0x1ae)][_0x3cb59d(0x1a7)]()['includes'](_0x179e15));if(_0x169538[_0x3cb59d(0x1b0)]>0x0)return{'resolved':_0x169538};const _0x1c5eba=_0x506397[_0x3cb59d(0x1b3)](_0x58afdf=>_0x58afdf[_0x3cb59d(0x1ae)]+'\x20('+_0x58afdf[_0x3cb59d(0x1b5)]+')')[_0x3cb59d(0x1b7)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x39939d+_0x3cb59d(0x1a4)+_0x2d4c8b+'\x22.\x20Available:\x20'+_0x1c5eba+_0x3cb59d(0x1ad)};}export async function resolveOneDb(_0x4a14b2,_0x1ffd80){const _0x910706=a152_0x3780,{resolved:_0x11805b,error:_0x29b817}=await resolveDb(_0x4a14b2,_0x1ffd80);if(_0x29b817)return{'db':null,'error':_0x29b817};if(_0x11805b['length']===0x1)return{'db':_0x11805b[0x0]};if(!_0x1ffd80){const _0x8165ff=_0x11805b[_0x910706(0x1b3)](_0x14ffb7=>_0x14ffb7[_0x910706(0x1ae)]+'\x20('+_0x14ffb7['dbId']+')')['join'](',\x20');return{'db':null,'error':_0x910706(0x1a2)+_0x8165ff};}const _0x3a3960=_0x11805b[_0x910706(0x1b3)](_0x3b6e6f=>_0x3b6e6f['dbName']+'\x20('+_0x3b6e6f[_0x910706(0x1b5)]+')')[_0x910706(0x1b7)](',\x20');return{'db':null,'error':'\x22'+_0x1ffd80+_0x910706(0x1a3)+_0x3a3960+_0x910706(0x1a6)};}function a152_0x41c6(){const _0x41b7d2=['\x22\x20under\x20app\x20\x22','4MzZxPI','.\x20Be\x20more\x20specific.','toLowerCase','3235EtVyvy','9EHMQOF','3239450QnprVQ','1797642umxDQL','364322ePKMjT','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','isNaN','length','get','set','map','2404202EiyaqE','dbId','6238044YlVGhR','join','1082430teuClP','dbtableConfig','filter','208rtIZfT','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','\x22\x20matches\x20multiple\x20databases:\x20'];a152_0x41c6=function(){return _0x41b7d2;};return a152_0x41c6();}function a152_0x3780(_0xf50007,_0x1df457){_0xf50007=_0xf50007-0x1a1;const _0x41c684=a152_0x41c6();let _0x378062=_0x41c684[_0xf50007];return _0x378062;}export async function getDbName(_0x1653f9,_0x5123e8){const _0x303dc2=a152_0x3780,_0x32234a=await listDatabases(_0x1653f9);return _0x32234a['find'](_0x3d9782=>_0x3d9782[_0x303dc2(0x1b5)]===_0x5123e8)?.[_0x303dc2(0x1ae)];}
1
+ (function(_0x12dfd2,_0x3aa348){const _0x3a1592=a155_0x13bc,_0x109286=_0x12dfd2();while(!![]){try{const _0x252ec3=-parseInt(_0x3a1592(0x142))/0x1*(parseInt(_0x3a1592(0x138))/0x2)+-parseInt(_0x3a1592(0x14e))/0x3*(parseInt(_0x3a1592(0x141))/0x4)+parseInt(_0x3a1592(0x13a))/0x5*(-parseInt(_0x3a1592(0x153))/0x6)+parseInt(_0x3a1592(0x14a))/0x7+-parseInt(_0x3a1592(0x149))/0x8*(parseInt(_0x3a1592(0x14b))/0x9)+parseInt(_0x3a1592(0x146))/0xa*(-parseInt(_0x3a1592(0x152))/0xb)+parseInt(_0x3a1592(0x14d))/0xc;if(_0x252ec3===_0x3aa348)break;else _0x109286['push'](_0x109286['shift']());}catch(_0x429ab5){_0x109286['push'](_0x109286['shift']());}}}(a155_0x2b03,0x4c4f3));import{listDatasets}from'../core/api-client.js';const cache=new Map();function a155_0x2b03(){const _0x1ed115=['isNaN','map','db-','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','dbName','\x22\x20under\x20app\x20\x22','204yRdVwJ','length','1014665CJhNqF','dbId','set','toLowerCase','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','filter','\x22\x20matches\x20multiple\x20databases:\x20','3868IdKHrl','883iFbyxw','.\x20Be\x20more\x20specific.','find','entries','10gzcEEU','has','join','10632pgneCT','1883161Kvufgk','387nvMnDu','dbtableConfig','11336580fyKeva','1287rBFfBf','\x22.\x20Available:\x20','includes','No\x20database\x20matching\x20\x22','1498046AmHiYt','6iDeRbL','get'];a155_0x2b03=function(){return _0x1ed115;};return a155_0x2b03();}export async function listDatabases(_0x4b5596){const _0x38f0ed=a155_0x13bc;if(cache[_0x38f0ed(0x147)](_0x4b5596))return cache[_0x38f0ed(0x154)](_0x4b5596);const _0x391bb0=await listDatasets(_0x4b5596),_0xa0efaf=new Map();for(const _0xddbef5 of _0x391bb0){const _0xc2a932=_0xddbef5[_0x38f0ed(0x14c)];_0xc2a932?.[_0x38f0ed(0x13b)]!=null&&_0xa0efaf[_0x38f0ed(0x13c)](_0xc2a932[_0x38f0ed(0x13b)],_0xc2a932['dbName']??_0x38f0ed(0x134)+_0xc2a932[_0x38f0ed(0x13b)]);}const _0x406c29=[..._0xa0efaf[_0x38f0ed(0x145)]()][_0x38f0ed(0x133)](([_0x50a7f6,_0x190042])=>({'dbId':_0x50a7f6,'dbName':_0x190042}));return cache[_0x38f0ed(0x13c)](_0x4b5596,_0x406c29),_0x406c29;}function a155_0x13bc(_0x1ae434,_0x28e52b){_0x1ae434=_0x1ae434-0x133;const _0x2b030a=a155_0x2b03();let _0x13bc3c=_0x2b030a[_0x1ae434];return _0x13bc3c;}export async function resolveDb(_0x155e24,_0x2343a1){const _0x217606=a155_0x13bc,_0x5bc8e3=await listDatabases(_0x155e24);if(_0x5bc8e3[_0x217606(0x139)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x155e24+'\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.'};if(!_0x2343a1)return{'resolved':_0x5bc8e3};const _0x227eda=Number(_0x2343a1);if(!Number[_0x217606(0x155)](_0x227eda)){const _0x346989=_0x5bc8e3[_0x217606(0x144)](_0x5f5872=>_0x5f5872['dbId']===_0x227eda);if(_0x346989)return{'resolved':[_0x346989]};}const _0x55b70a=_0x2343a1[_0x217606(0x13d)](),_0x4baccf=_0x5bc8e3[_0x217606(0x13f)](_0x5e78d5=>_0x5e78d5['dbName'][_0x217606(0x13d)]()[_0x217606(0x150)](_0x55b70a));if(_0x4baccf['length']>0x0)return{'resolved':_0x4baccf};const _0x5561a9=_0x5bc8e3[_0x217606(0x133)](_0x4a6480=>_0x4a6480[_0x217606(0x136)]+'\x20('+_0x4a6480['dbId']+')')['join'](',\x20');return{'resolved':[],'error':_0x217606(0x151)+_0x2343a1+_0x217606(0x137)+_0x155e24+_0x217606(0x14f)+_0x5561a9+_0x217606(0x135)};}export async function resolveOneDb(_0x1caada,_0x3eae7e){const _0x4dd5c7=a155_0x13bc,{resolved:_0x16578b,error:_0x49d95c}=await resolveDb(_0x1caada,_0x3eae7e);if(_0x49d95c)return{'db':null,'error':_0x49d95c};if(_0x16578b[_0x4dd5c7(0x139)]===0x1)return{'db':_0x16578b[0x0]};if(!_0x3eae7e){const _0x3a9d81=_0x16578b[_0x4dd5c7(0x133)](_0x153d4d=>_0x153d4d[_0x4dd5c7(0x136)]+'\x20('+_0x153d4d[_0x4dd5c7(0x13b)]+')')[_0x4dd5c7(0x148)](',\x20');return{'db':null,'error':_0x4dd5c7(0x13e)+_0x3a9d81};}const _0x5087d2=_0x16578b['map'](_0x20826a=>_0x20826a[_0x4dd5c7(0x136)]+'\x20('+_0x20826a[_0x4dd5c7(0x13b)]+')')[_0x4dd5c7(0x148)](',\x20');return{'db':null,'error':'\x22'+_0x3eae7e+_0x4dd5c7(0x140)+_0x5087d2+_0x4dd5c7(0x143)};}export async function getDbName(_0x316d7f,_0x35f1d3){const _0x3c19b9=a155_0x13bc,_0x5b6a22=await listDatabases(_0x316d7f);return _0x5b6a22[_0x3c19b9(0x144)](_0x3d1622=>_0x3d1622[_0x3c19b9(0x13b)]===_0x35f1d3)?.[_0x3c19b9(0x136)];}
@@ -1 +1 @@
1
- (function(_0x3ad795,_0x234742){const _0x578800=a153_0x511a,_0x2f615e=_0x3ad795();while(!![]){try{const _0x2ec7d9=-parseInt(_0x578800(0xef))/0x1*(parseInt(_0x578800(0xf1))/0x2)+-parseInt(_0x578800(0xec))/0x3*(parseInt(_0x578800(0xee))/0x4)+parseInt(_0x578800(0xe1))/0x5*(parseInt(_0x578800(0xeb))/0x6)+parseInt(_0x578800(0xe6))/0x7*(-parseInt(_0x578800(0xe8))/0x8)+parseInt(_0x578800(0xea))/0x9*(parseInt(_0x578800(0xe2))/0xa)+parseInt(_0x578800(0xe9))/0xb+parseInt(_0x578800(0xe7))/0xc;if(_0x2ec7d9===_0x234742)break;else _0x2f615e['push'](_0x2f615e['shift']());}catch(_0x524dd0){_0x2f615e['push'](_0x2f615e['shift']());}}}(a153_0x28b2,0x34949));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a153_0x511a(_0x56c53d,_0x22ba64){_0x56c53d=_0x56c53d-0xe0;const _0x28b26c=a153_0x28b2();let _0x511ad6=_0x28b26c[_0x56c53d];return _0x511ad6;}function a153_0x28b2(){const _0x5b16c9=['6cYrLXj','F_OK','page','30705qHeptg','171500jNJuZQ','toUpperCase','.json','page.lock.json','161ddXWmD','2091540cIuGil','134032zVRJfU','2637360gbPwAg','198QwPvFS','18xJaJVi','310446fjwLAQ','.rabetbase','4iGmotp','35195mZEebB','appPagesDir'];a153_0x28b2=function(){return _0x5b16c9;};return a153_0x28b2();}export function loadPageProjectConfig(_0x2faf5f,_0x322dbe=process['cwd']()){const _0x1f8d90=a153_0x511a,_0x2a97b1=resolve(_0x322dbe),_0x37de11=join(_0x2a97b1,_0x1f8d90(0xed),_0x1f8d90(0xe0));return{'projectRoot':_0x2a97b1,'pagesBaseDir':_0x37de11,'appPagesDir':join(_0x37de11,_0x2faf5f),'lockFilePath':join(_0x2a97b1,_0x1f8d90(0xed),_0x1f8d90(0xe5))};}export function buildPageFileName(_0x3e764b,_0x1aa0d9){const _0x19a0cc=a153_0x511a;return _0x3e764b+'-'+String(_0x1aa0d9)[_0x19a0cc(0xe3)]()+_0x19a0cc(0xe4);}export function resolvePageFilePath(_0x710914,_0x1a7709,_0x5a7f71){const _0x2df61e=a153_0x511a;return join(_0x710914[_0x2df61e(0xf0)],buildPageFileName(_0x1a7709,_0x5a7f71));}export async function ensureParentDirectory(_0x369da1){await mkdir(dirname(_0x369da1),{'recursive':!![]});}export async function fileExists(_0x56f287){const _0x51cc1e=a153_0x511a;try{return await access(_0x56f287,constants[_0x51cc1e(0xf2)]),!![];}catch{return![];}}
1
+ const a156_0x3b5fa3=a156_0x3060;(function(_0x25d336,_0x1d0d26){const _0x5ab163=a156_0x3060,_0x5152f6=_0x25d336();while(!![]){try{const _0x401f=parseInt(_0x5ab163(0x181))/0x1+parseInt(_0x5ab163(0x185))/0x2+parseInt(_0x5ab163(0x17f))/0x3*(-parseInt(_0x5ab163(0x186))/0x4)+-parseInt(_0x5ab163(0x18f))/0x5+-parseInt(_0x5ab163(0x187))/0x6*(parseInt(_0x5ab163(0x180))/0x7)+-parseInt(_0x5ab163(0x18e))/0x8*(-parseInt(_0x5ab163(0x189))/0x9)+-parseInt(_0x5ab163(0x17e))/0xa*(-parseInt(_0x5ab163(0x18d))/0xb);if(_0x401f===_0x1d0d26)break;else _0x5152f6['push'](_0x5152f6['shift']());}catch(_0x3b5972){_0x5152f6['push'](_0x5152f6['shift']());}}}(a156_0x2638,0x8fced));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';function a156_0x2638(){const _0x160096=['260xULgWl','3FGESLh','70agpPZp','375017ZYOfaK','.json','.rabetbase','cwd','1511472JZRkWb','1273708ftgSKA','443442KYKJCZ','page.lock.json','3099996fuFgrS','F_OK','toUpperCase','appPagesDir','104258umEAuH','16MmeLFC','2097675rNnEYH'];a156_0x2638=function(){return _0x160096;};return a156_0x2638();}export function loadPageProjectConfig(_0x2640f4,_0x4ad20e=process[a156_0x3b5fa3(0x184)]()){const _0x42eae4=a156_0x3b5fa3,_0x3e4369=resolve(_0x4ad20e),_0x3a2ee9=join(_0x3e4369,'.rabetbase','page');return{'projectRoot':_0x3e4369,'pagesBaseDir':_0x3a2ee9,'appPagesDir':join(_0x3a2ee9,_0x2640f4),'lockFilePath':join(_0x3e4369,_0x42eae4(0x183),_0x42eae4(0x188))};}function a156_0x3060(_0x19ebfe,_0x3b4fd6){_0x19ebfe=_0x19ebfe-0x17e;const _0x263890=a156_0x2638();let _0x30608d=_0x263890[_0x19ebfe];return _0x30608d;}export function buildPageFileName(_0x398e32,_0x5dfa5d){const _0x319e1a=a156_0x3b5fa3;return _0x398e32+'-'+String(_0x5dfa5d)[_0x319e1a(0x18b)]()+_0x319e1a(0x182);}export function resolvePageFilePath(_0x37a2c0,_0x301565,_0x4c44f3){const _0x5b984f=a156_0x3b5fa3;return join(_0x37a2c0[_0x5b984f(0x18c)],buildPageFileName(_0x301565,_0x4c44f3));}export async function ensureParentDirectory(_0x8e9187){await mkdir(dirname(_0x8e9187),{'recursive':!![]});}export async function fileExists(_0x310a0a){const _0x1ff623=a156_0x3b5fa3;try{return await access(_0x310a0a,constants[_0x1ff623(0x18a)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x51209d,_0x241b21){const _0x10db6f=a154_0x4c74,_0x1f9bb3=_0x51209d();while(!![]){try{const _0x1ac4ea=-parseInt(_0x10db6f(0x181))/0x1+parseInt(_0x10db6f(0x18b))/0x2*(parseInt(_0x10db6f(0x183))/0x3)+-parseInt(_0x10db6f(0x185))/0x4*(-parseInt(_0x10db6f(0x17d))/0x5)+-parseInt(_0x10db6f(0x18c))/0x6+-parseInt(_0x10db6f(0x17e))/0x7*(-parseInt(_0x10db6f(0x186))/0x8)+-parseInt(_0x10db6f(0x187))/0x9+-parseInt(_0x10db6f(0x18a))/0xa*(-parseInt(_0x10db6f(0x184))/0xb);if(_0x1ac4ea===_0x241b21)break;else _0x1f9bb3['push'](_0x1f9bb3['shift']());}catch(_0x24f523){_0x1f9bb3['push'](_0x1f9bb3['shift']());}}}(a154_0x2fc1,0x76f91));function a154_0x4c74(_0x2851db,_0x3c4daf){_0x2851db=_0x2851db-0x17b;const _0x2fc120=a154_0x2fc1();let _0x4c741b=_0x2fc120[_0x2851db];return _0x4c741b;}import a154_0x3d9edc from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x147240){const _0x783288=a154_0x4c74;return JSON[_0x783288(0x17c)](JSON[_0x783288(0x17f)](_0x147240),null,0x2)+'\x0a';}export function computePageContentHash(_0x598d09){const _0x4ead44=a154_0x4c74;return a154_0x3d9edc[_0x4ead44(0x188)](_0x4ead44(0x189))[_0x4ead44(0x17b)](_0x598d09)[_0x4ead44(0x180)]('hex');}export function computeSerializedSchemaHash(_0x3a3ff6){return computePageContentHash(serializePageSchemaForFile(_0x3a3ff6));}function a154_0x2fc1(){const _0x5c355e=['utf8','163713ccbCGA','1950619BVIoik','36732EJgCSp','53888ysgdsf','3410964qNznvp','createHash','md5','50dnXHpr','18EbgJzH','4777368xdvNnR','update','stringify','135frlRnl','917ZFobka','parse','digest','845604vUPokk'];a154_0x2fc1=function(){return _0x5c355e;};return a154_0x2fc1();}export async function computePageFileHash(_0x527bf9){const _0x291170=a154_0x4c74,_0x4b38e2=await readFile(_0x527bf9,_0x291170(0x182));return computePageContentHash(_0x4b38e2);}
1
+ (function(_0x55f1a,_0x65ccb3){const _0xbeeb7a=a157_0xcd84,_0x222963=_0x55f1a();while(!![]){try{const _0x4e3cad=-parseInt(_0xbeeb7a(0x83))/0x1*(-parseInt(_0xbeeb7a(0x86))/0x2)+-parseInt(_0xbeeb7a(0x87))/0x3*(parseInt(_0xbeeb7a(0x84))/0x4)+parseInt(_0xbeeb7a(0x88))/0x5+-parseInt(_0xbeeb7a(0x80))/0x6*(-parseInt(_0xbeeb7a(0x81))/0x7)+parseInt(_0xbeeb7a(0x7b))/0x8*(-parseInt(_0xbeeb7a(0x7d))/0x9)+parseInt(_0xbeeb7a(0x7f))/0xa+parseInt(_0xbeeb7a(0x8a))/0xb*(-parseInt(_0xbeeb7a(0x7a))/0xc);if(_0x4e3cad===_0x65ccb3)break;else _0x222963['push'](_0x222963['shift']());}catch(_0x2636a2){_0x222963['push'](_0x222963['shift']());}}}(a157_0x4694,0xccbc1));import a157_0x2f69d3 from'node:crypto';import{readFile}from'node:fs/promises';function a157_0x4694(){const _0x2c85a5=['1398876sbWUHe','49nRyHeQ','hex','593qgWQys','32VYWSSr','parse','1436viRruz','469587sHNHWm','8113920vVnmAK','stringify','16147879AjOilP','12vvNAfn','8sKYZYL','md5','4300092XInNYH','utf8','3560220NygfcG'];a157_0x4694=function(){return _0x2c85a5;};return a157_0x4694();}export function serializePageSchemaForFile(_0x127a9d){const _0x2b40d1=a157_0xcd84;return JSON[_0x2b40d1(0x89)](JSON[_0x2b40d1(0x85)](_0x127a9d),null,0x2)+'\x0a';}function a157_0xcd84(_0x39aaf9,_0x45902c){_0x39aaf9=_0x39aaf9-0x7a;const _0x4694bd=a157_0x4694();let _0xcd847b=_0x4694bd[_0x39aaf9];return _0xcd847b;}export function computePageContentHash(_0xa20bac){const _0x33026c=a157_0xcd84;return a157_0x2f69d3['createHash'](_0x33026c(0x7c))['update'](_0xa20bac)['digest'](_0x33026c(0x82));}export function computeSerializedSchemaHash(_0xb0642d){return computePageContentHash(serializePageSchemaForFile(_0xb0642d));}export async function computePageFileHash(_0x1a1862){const _0x4a75ca=a157_0xcd84,_0x499c70=await readFile(_0x1a1862,_0x4a75ca(0x7e));return computePageContentHash(_0x499c70);}
@@ -1 +1 @@
1
- (function(_0x41000a,_0x505118){const _0xb53804=a155_0x38ac,_0x97b785=_0x41000a();while(!![]){try{const _0x41da3f=parseInt(_0xb53804(0xc4))/0x1*(-parseInt(_0xb53804(0xc1))/0x2)+-parseInt(_0xb53804(0xbc))/0x3+parseInt(_0xb53804(0xc3))/0x4+-parseInt(_0xb53804(0xbf))/0x5*(-parseInt(_0xb53804(0xca))/0x6)+parseInt(_0xb53804(0xc8))/0x7*(parseInt(_0xb53804(0xc7))/0x8)+parseInt(_0xb53804(0xc6))/0x9*(-parseInt(_0xb53804(0xbe))/0xa)+parseInt(_0xb53804(0xc2))/0xb;if(_0x41da3f===_0x505118)break;else _0x97b785['push'](_0x97b785['shift']());}catch(_0x5c07b9){_0x97b785['push'](_0x97b785['shift']());}}}(a155_0x1bd6,0xc3003));function a155_0x1bd6(){const _0x128aa9=['126lRutWH','stringify','9174JfxzXu','object','code','pages','1519464SqsGCf','apps','110ZgTmcd','890aubXNe','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','20652Ouwrqo','21733569ripBhw','1349964PRCwMM','139zOjNbF','lastSync','1135071nvkCFD','685512GEaivD'];a155_0x1bd6=function(){return _0x128aa9;};return a155_0x1bd6();}import{mkdir,readFile,writeFile}from'node:fs/promises';function a155_0x38ac(_0x3bd150,_0x21914a){_0x3bd150=_0x3bd150-0xba;const _0x1bd68d=a155_0x1bd6();let _0x38acb7=_0x1bd68d[_0x3bd150];return _0x38acb7;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x3a7edd,_0x100919){const _0x304a0f=a155_0x38ac,_0x388b0e={'apps':_0x3a7edd[_0x304a0f(0xbd)]&&typeof _0x3a7edd[_0x304a0f(0xbd)]===_0x304a0f(0xcb)?_0x3a7edd['apps']:{}};let _0x3f18ab=_0x388b0e[_0x304a0f(0xbd)][_0x100919];if(!_0x3f18ab)return _0x3f18ab={'lastSync':'','pages':{}},_0x388b0e[_0x304a0f(0xbd)][_0x100919]=_0x3f18ab,{'lockData':_0x388b0e,'appLock':_0x3f18ab};return!_0x3f18ab[_0x304a0f(0xc5)]&&(_0x3f18ab[_0x304a0f(0xc5)]=''),(!_0x3f18ab[_0x304a0f(0xbb)]||typeof _0x3f18ab[_0x304a0f(0xbb)]!==_0x304a0f(0xcb))&&(_0x3f18ab['pages']={}),{'lockData':_0x388b0e,'appLock':_0x3f18ab};}export async function readPageLockFile(_0xbd7812){const _0x5cd0df=a155_0x38ac;try{const _0xe1efb4=await readFile(_0xbd7812,'utf8'),_0x21d817=JSON['parse'](_0xe1efb4);return{'apps':_0x21d817[_0x5cd0df(0xbd)]&&typeof _0x21d817['apps']===_0x5cd0df(0xcb)?_0x21d817[_0x5cd0df(0xbd)]:{}};}catch(_0x2713b4){if(_0x2713b4[_0x5cd0df(0xba)]==='ENOENT')return null;throw new Error(_0x5cd0df(0xc0)+String(_0x2713b4));}}export async function writePageLockFile(_0x212af5,_0x1cf96e){const _0x22204a=a155_0x38ac;await mkdir(dirname(_0x212af5),{'recursive':!![]}),await writeFile(_0x212af5,JSON[_0x22204a(0xc9)](_0x1cf96e,null,0x2),'utf8');}
1
+ (function(_0x1e7e07,_0x2ad6a3){const _0x523eb6=a158_0x2d5d,_0x474587=_0x1e7e07();while(!![]){try{const _0x247834=parseInt(_0x523eb6(0x117))/0x1*(parseInt(_0x523eb6(0x125))/0x2)+parseInt(_0x523eb6(0x11b))/0x3+-parseInt(_0x523eb6(0x121))/0x4*(-parseInt(_0x523eb6(0x116))/0x5)+parseInt(_0x523eb6(0x123))/0x6*(parseInt(_0x523eb6(0x115))/0x7)+-parseInt(_0x523eb6(0x126))/0x8+parseInt(_0x523eb6(0x11d))/0x9*(parseInt(_0x523eb6(0x120))/0xa)+-parseInt(_0x523eb6(0x124))/0xb;if(_0x247834===_0x2ad6a3)break;else _0x474587['push'](_0x474587['shift']());}catch(_0x8bb3e3){_0x474587['push'](_0x474587['shift']());}}}(a158_0x5486,0xb7431));import{mkdir,readFile,writeFile}from'node:fs/promises';function a158_0x5486(){const _0x53e699=['11083088xRNVTZ','parse','stringify','lastSync','672ajpVTT','8660aFVCkd','341LtrGCw','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','apps','object','3310425SvLtMw','pages','42381hrAxHb','utf8','ENOENT','1890ktWFKi','956ZtsSVu','code','34548fBcFLK','15495029udABnN','3428ONXEPn'];a158_0x5486=function(){return _0x53e699;};return a158_0x5486();}import{dirname}from'node:path';function a158_0x2d5d(_0x2614a9,_0x247d3d){_0x2614a9=_0x2614a9-0x112;const _0x5486bd=a158_0x5486();let _0x2d5de9=_0x5486bd[_0x2614a9];return _0x2d5de9;}export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x1397cd,_0x3edf2a){const _0x36d603=a158_0x2d5d,_0x511787={'apps':_0x1397cd[_0x36d603(0x119)]&&typeof _0x1397cd[_0x36d603(0x119)]===_0x36d603(0x11a)?_0x1397cd[_0x36d603(0x119)]:{}};let _0x2903df=_0x511787['apps'][_0x3edf2a];if(!_0x2903df)return _0x2903df={'lastSync':'','pages':{}},_0x511787[_0x36d603(0x119)][_0x3edf2a]=_0x2903df,{'lockData':_0x511787,'appLock':_0x2903df};return!_0x2903df[_0x36d603(0x114)]&&(_0x2903df[_0x36d603(0x114)]=''),(!_0x2903df[_0x36d603(0x11c)]||typeof _0x2903df[_0x36d603(0x11c)]!==_0x36d603(0x11a))&&(_0x2903df[_0x36d603(0x11c)]={}),{'lockData':_0x511787,'appLock':_0x2903df};}export async function readPageLockFile(_0x2161c0){const _0x59be92=a158_0x2d5d;try{const _0x70790a=await readFile(_0x2161c0,_0x59be92(0x11e)),_0x33be45=JSON[_0x59be92(0x112)](_0x70790a);return{'apps':_0x33be45[_0x59be92(0x119)]&&typeof _0x33be45['apps']==='object'?_0x33be45[_0x59be92(0x119)]:{}};}catch(_0x27dc6e){if(_0x27dc6e[_0x59be92(0x122)]===_0x59be92(0x11f))return null;throw new Error(_0x59be92(0x118)+String(_0x27dc6e));}}export async function writePageLockFile(_0x4ca9c3,_0x47587c){const _0x5c46bb=a158_0x2d5d;await mkdir(dirname(_0x4ca9c3),{'recursive':!![]}),await writeFile(_0x4ca9c3,JSON[_0x5c46bb(0x113)](_0x47587c,null,0x2),_0x5c46bb(0x11e));}
@@ -1 +1 @@
1
- const a157_0x2642fd=a157_0x4e86;(function(_0x305b91,_0x5f3618){const _0x24d062=a157_0x4e86,_0xd5ad7d=_0x305b91();while(!![]){try{const _0x49ffc1=-parseInt(_0x24d062(0x1d4))/0x1*(parseInt(_0x24d062(0x1d1))/0x2)+-parseInt(_0x24d062(0x1d0))/0x3*(parseInt(_0x24d062(0x1d5))/0x4)+parseInt(_0x24d062(0x1cf))/0x5*(-parseInt(_0x24d062(0x1dc))/0x6)+-parseInt(_0x24d062(0x1da))/0x7*(-parseInt(_0x24d062(0x1db))/0x8)+-parseInt(_0x24d062(0x1dd))/0x9*(parseInt(_0x24d062(0x1d9))/0xa)+parseInt(_0x24d062(0x1d3))/0xb+parseInt(_0x24d062(0x1d6))/0xc*(parseInt(_0x24d062(0x1d8))/0xd);if(_0x49ffc1===_0x5f3618)break;else _0xd5ad7d['push'](_0xd5ad7d['shift']());}catch(_0x264d69){_0xd5ad7d['push'](_0xd5ad7d['shift']());}}}(a157_0x207f,0x475e6));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a157_0x207f(){const _0x341c25=['.rabetbase','6640946LZnkCX','5410FeMjqs','69853dJbsyV','336Bubkmg','18dYSceN','6948ekWRfn','sql-trash','339805BMsXoG','3GYmLrg','808LvRSpg','/sql','5852682OzsstF','299HfbrLI','1709460LvwZas','12QMNXiV'];a157_0x207f=function(){return _0x341c25;};return a157_0x207f();}const DOT_DIR=a157_0x2642fd(0x1d7),LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a157_0x2642fd(0x1ce);function a157_0x4e86(_0x280568,_0x3435bf){_0x280568=_0x280568-0x1ce;const _0x207f6d=a157_0x207f();let _0x4e86df=_0x207f6d[_0x280568];return _0x4e86df;}export function loadSqlProjectConfig(_0x25b711,_0xda6959){const _0x1f13a4=a157_0x2642fd,_0xe1e36f=resolve(_0xda6959??findProjectRootDirectory()),_0x143696=DOT_DIR+_0x1f13a4(0x1d2),_0xee0540=_0x143696+'/'+_0x25b711;return{'projectRoot':_0xe1e36f,'appCode':_0x25b711,'sqlWorkspaceRoot':_0x143696,'sqlRoot':_0xee0540,'sqlRootDir':resolve(_0xe1e36f,DOT_DIR,'sql',_0x25b711),'lockFilePath':resolve(_0xe1e36f,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xe1e36f,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a160_0x33eb02=a160_0x3a71;(function(_0x2e8811,_0x44acaf){const _0x64109c=a160_0x3a71,_0x4199f3=_0x2e8811();while(!![]){try{const _0x3fbecc=-parseInt(_0x64109c(0x154))/0x1*(-parseInt(_0x64109c(0x155))/0x2)+parseInt(_0x64109c(0x150))/0x3+-parseInt(_0x64109c(0x151))/0x4*(-parseInt(_0x64109c(0x14a))/0x5)+-parseInt(_0x64109c(0x149))/0x6*(parseInt(_0x64109c(0x146))/0x7)+parseInt(_0x64109c(0x153))/0x8*(-parseInt(_0x64109c(0x152))/0x9)+parseInt(_0x64109c(0x14e))/0xa+-parseInt(_0x64109c(0x14b))/0xb;if(_0x3fbecc===_0x44acaf)break;else _0x4199f3['push'](_0x4199f3['shift']());}catch(_0x521521){_0x4199f3['push'](_0x4199f3['shift']());}}}(a160_0x5674,0xbe97b));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';function a160_0x3a71(_0x90edaa,_0x1ee83f){_0x90edaa=_0x90edaa-0x146;const _0x5674c6=a160_0x5674();let _0x3a71b2=_0x5674c6[_0x90edaa];return _0x3a71b2;}const DOT_DIR=a160_0x33eb02(0x14c),LOCK_FILE_NAME=a160_0x33eb02(0x147),TRASH_DIR_NAME=a160_0x33eb02(0x14d);export function loadSqlProjectConfig(_0x5c760e,_0x1f6c30){const _0x2c0450=a160_0x33eb02,_0x5b1d79=resolve(_0x1f6c30??findProjectRootDirectory()),_0x2b1346=DOT_DIR+_0x2c0450(0x14f),_0x5e8883=_0x2b1346+'/'+_0x5c760e;return{'projectRoot':_0x5b1d79,'appCode':_0x5c760e,'sqlWorkspaceRoot':_0x2b1346,'sqlRoot':_0x5e8883,'sqlRootDir':resolve(_0x5b1d79,DOT_DIR,_0x2c0450(0x148),_0x5c760e),'lockFilePath':resolve(_0x5b1d79,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5b1d79,DOT_DIR,TRASH_DIR_NAME)};}function a160_0x5674(){const _0x175fac=['sql.lock.json','sql','6ISzwjt','5aOEvtY','8775800SmWTVL','.rabetbase','sql-trash','5128600zKfHOp','/sql','3318024ahlTTN','1003556MMhmOQ','18BYZTFn','1374488KikRXR','3622Cpjpeh','410BIxelF','4831246XBBywJ'];a160_0x5674=function(){return _0x175fac;};return a160_0x5674();}
@@ -1 +1 @@
1
- function a158_0x4989(){const _0x16c244=['2050254pllNLE','isDirectory','toLowerCase','push','slice','name','8yDFiwp','709EKpMgV','12DDROeh','.sql','test','8693628STzDlo','filter','replace','code','isFile','928361plbtkt','134212Pjkfxo','dbName','indexOf','length','sqlCode','39OtkHzV','sql','11UOMpOt','sqlRootDir','mybatisXml','sqlName','1084090JquQzT','split','1419450kBGNju','mode','.xml','1058WkkRmD'];a158_0x4989=function(){return _0x16c244;};return a158_0x4989();}(function(_0x14bc3b,_0xf7325e){const _0x6536df=a158_0xe706,_0x56f49f=_0x14bc3b();while(!![]){try{const _0x5ef596=parseInt(_0x6536df(0x89))/0x1*(-parseInt(_0x6536df(0x81))/0x2)+-parseInt(_0x6536df(0x98))/0x3*(parseInt(_0x6536df(0x93))/0x4)+parseInt(_0x6536df(0x7c))/0x5+parseInt(_0x6536df(0x8a))/0x6*(-parseInt(_0x6536df(0x92))/0x7)+-parseInt(_0x6536df(0x88))/0x8*(-parseInt(_0x6536df(0x82))/0x9)+parseInt(_0x6536df(0x7e))/0xa+parseInt(_0x6536df(0x9a))/0xb*(parseInt(_0x6536df(0x8d))/0xc);if(_0x5ef596===_0xf7325e)break;else _0x56f49f['push'](_0x56f49f['shift']());}catch(_0x5de15c){_0x56f49f['push'](_0x56f49f['shift']());}}}(a158_0x4989,0x3942e));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x1a99c6){const _0x293ed2=a158_0xe706;if(_0x1a99c6===_0x293ed2(0x8b))return _0x293ed2(0x99);if(_0x1a99c6===_0x293ed2(0x80))return _0x293ed2(0x7a);return undefined;}async function scanSqlFilesRecursively(_0xd2caa,_0x1ea45f){const _0x3da156=a158_0xe706,_0x22e9c2=[];try{const _0x5625fc=await readdir(_0xd2caa,{'withFileTypes':!![]});for(const _0xefe511 of _0x5625fc){const _0x529d78=join(_0xd2caa,_0xefe511[_0x3da156(0x87)]);if(_0xefe511[_0x3da156(0x83)]()){_0x22e9c2[_0x3da156(0x85)](...await scanSqlFilesRecursively(_0x529d78,_0x1ea45f));continue;}if(!_0xefe511[_0x3da156(0x91)]())continue;const _0x332bd0=extname(_0xefe511[_0x3da156(0x87)])[_0x3da156(0x84)](),_0x5b01de=extensionToMode(_0x332bd0);if(!_0x5b01de)continue;const _0x2eef96=relative(_0x1ea45f,_0x529d78)[_0x3da156(0x8f)](/\\/g,'/'),_0x2809c2=_0x2eef96[_0x3da156(0x7d)]('/')[_0x3da156(0x8e)](Boolean),_0x4ff35c=parseSqlPath(_0x2809c2,_0xefe511['name'],_0x332bd0);if(!_0x4ff35c)continue;_0x22e9c2[_0x3da156(0x85)]({'sqlCode':_0x4ff35c['sqlCode'],'sqlName':_0x4ff35c['sqlName'],'dbDirectory':_0x2809c2[0x0],'filePath':_0x529d78,'relativePath':_0x2eef96,'lockKey':_0x4ff35c[_0x3da156(0x97)],'mode':_0x5b01de});}}catch(_0x856daa){if(_0x856daa[_0x3da156(0x90)]!=='ENOENT')throw _0x856daa;}return _0x22e9c2;}export async function scanLocalSqlQueries(_0x11aa39){const _0x5b1176=a158_0xe706;return scanSqlFilesRecursively(_0x11aa39[_0x5b1176(0x9b)],_0x11aa39[_0x5b1176(0x9b)]);}export function resolveLocalSqlFilePath(_0x42054b,_0x2d7aed,_0x5145b5){const _0x27d64a=a158_0xe706,_0x393033=_0x5145b5?.['path']||(_0x5145b5?.['sqlName']||_0x5145b5?.['dbName']?buildSqlRelativePath(_0x2d7aed,_0x5145b5?.[_0x27d64a(0x7b)],_0x5145b5?.[_0x27d64a(0x94)],_0x5145b5?.[_0x27d64a(0x7f)]||_0x27d64a(0x99),_0x5145b5?.['dbId']):buildDefaultSqlFileName(_0x2d7aed,_0x5145b5?.[_0x27d64a(0x7f)]||_0x27d64a(0x99)));return join(_0x42054b['sqlRootDir'],_0x393033);}export async function directoryExists(_0x37b5ca){const _0x4ab012=a158_0xe706;try{const _0x2114de=await stat(_0x37b5ca);return _0x2114de[_0x4ab012(0x83)]();}catch{return![];}}function a158_0xe706(_0x2e5319,_0x3eb079){_0x2e5319=_0x2e5319-0x7a;const _0x498932=a158_0x4989();let _0xe70668=_0x498932[_0x2e5319];return _0xe70668;}function parseSqlPath(_0x3bba62,_0x2da92e,_0x5da102){const _0x5ecf4e=a158_0xe706,_0x18da7b=_0x2da92e[_0x5ecf4e(0x86)](0x0,-_0x5da102[_0x5ecf4e(0x96)]);if(_0x3bba62[_0x5ecf4e(0x96)]<0x2)return null;const _0xb1c356=_0x18da7b[_0x5ecf4e(0x95)]('_');if(_0xb1c356<=0x0||_0xb1c356>=_0x18da7b[_0x5ecf4e(0x96)]-0x1)return null;const _0x3145b3=_0x18da7b[_0x5ecf4e(0x86)](0x0,_0xb1c356);if(!isLikelySqlCode(_0x3145b3))return null;return{'sqlCode':_0x3145b3,'sqlName':_0x18da7b['slice'](_0xb1c356+0x1)};}function isLikelySqlCode(_0x4c9da2){const _0xc431ff=a158_0xe706;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xc431ff(0x8c)](_0x4c9da2);}
1
+ (function(_0x3c7d45,_0x7f25e1){const _0x2be8ff=a161_0x3c40,_0x441eaf=_0x3c7d45();while(!![]){try{const _0x2e61e6=parseInt(_0x2be8ff(0x13f))/0x1*(parseInt(_0x2be8ff(0x139))/0x2)+parseInt(_0x2be8ff(0x14e))/0x3+parseInt(_0x2be8ff(0x149))/0x4+-parseInt(_0x2be8ff(0x14f))/0x5+parseInt(_0x2be8ff(0x14a))/0x6+parseInt(_0x2be8ff(0x13c))/0x7+-parseInt(_0x2be8ff(0x134))/0x8;if(_0x2e61e6===_0x7f25e1)break;else _0x441eaf['push'](_0x441eaf['shift']());}catch(_0x25e938){_0x441eaf['push'](_0x441eaf['shift']());}}}(a161_0x1ca4,0xb868d));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4dbb6d){const _0x2d30c1=a161_0x3c40;if(_0x4dbb6d===_0x2d30c1(0x13d))return _0x2d30c1(0x145);if(_0x4dbb6d===_0x2d30c1(0x13b))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x498e83,_0x31b373){const _0x5d12bb=a161_0x3c40,_0x2c8d64=[];try{const _0x2e9844=await readdir(_0x498e83,{'withFileTypes':!![]});for(const _0x5ea934 of _0x2e9844){const _0x2cda49=join(_0x498e83,_0x5ea934[_0x5d12bb(0x141)]);if(_0x5ea934['isDirectory']()){_0x2c8d64[_0x5d12bb(0x140)](...await scanSqlFilesRecursively(_0x2cda49,_0x31b373));continue;}if(!_0x5ea934[_0x5d12bb(0x13e)]())continue;const _0x3e8930=extname(_0x5ea934['name'])[_0x5d12bb(0x14d)](),_0x1f5ed2=extensionToMode(_0x3e8930);if(!_0x1f5ed2)continue;const _0x5aab0b=relative(_0x31b373,_0x2cda49)[_0x5d12bb(0x137)](/\\/g,'/'),_0x14ba41=_0x5aab0b[_0x5d12bb(0x135)]('/')[_0x5d12bb(0x143)](Boolean),_0x4110bf=parseSqlPath(_0x14ba41,_0x5ea934[_0x5d12bb(0x141)],_0x3e8930);if(!_0x4110bf)continue;_0x2c8d64[_0x5d12bb(0x140)]({'sqlCode':_0x4110bf[_0x5d12bb(0x14c)],'sqlName':_0x4110bf[_0x5d12bb(0x148)],'dbDirectory':_0x14ba41[0x0],'filePath':_0x2cda49,'relativePath':_0x5aab0b,'lockKey':_0x4110bf[_0x5d12bb(0x14c)],'mode':_0x1f5ed2});}}catch(_0x114a6c){if(_0x114a6c['code']!=='ENOENT')throw _0x114a6c;}return _0x2c8d64;}export async function scanLocalSqlQueries(_0x356934){const _0x4895e0=a161_0x3c40;return scanSqlFilesRecursively(_0x356934[_0x4895e0(0x146)],_0x356934[_0x4895e0(0x146)]);}export function resolveLocalSqlFilePath(_0x4dad4d,_0x316df0,_0x1a3bbb){const _0x26ad63=a161_0x3c40,_0x2190a1=_0x1a3bbb?.[_0x26ad63(0x138)]||(_0x1a3bbb?.[_0x26ad63(0x148)]||_0x1a3bbb?.[_0x26ad63(0x150)]?buildSqlRelativePath(_0x316df0,_0x1a3bbb?.[_0x26ad63(0x148)],_0x1a3bbb?.[_0x26ad63(0x150)],_0x1a3bbb?.['mode']||_0x26ad63(0x145),_0x1a3bbb?.[_0x26ad63(0x144)]):buildDefaultSqlFileName(_0x316df0,_0x1a3bbb?.['mode']||'sql'));return join(_0x4dad4d['sqlRootDir'],_0x2190a1);}export async function directoryExists(_0x6a8415){const _0x214bb2=a161_0x3c40;try{const _0x37ed30=await stat(_0x6a8415);return _0x37ed30[_0x214bb2(0x136)]();}catch{return![];}}function a161_0x1ca4(){const _0x2590ea=['isDirectory','replace','path','338gLQeIC','length','.xml','6645569peUvOe','.sql','isFile','1181aPfMYt','push','name','test','filter','dbId','sql','sqlRootDir','slice','sqlName','992204aJQooU','5252028SPesWV','indexOf','sqlCode','toLowerCase','3621207uJFaZZ','6406700IVRxys','dbName','11541864hdFyvb','split'];a161_0x1ca4=function(){return _0x2590ea;};return a161_0x1ca4();}function parseSqlPath(_0x370ff0,_0x5a63f7,_0x4db988){const _0x444e1c=a161_0x3c40,_0x135725=_0x5a63f7[_0x444e1c(0x147)](0x0,-_0x4db988[_0x444e1c(0x13a)]);if(_0x370ff0[_0x444e1c(0x13a)]<0x2)return null;const _0x69704a=_0x135725[_0x444e1c(0x14b)]('_');if(_0x69704a<=0x0||_0x69704a>=_0x135725[_0x444e1c(0x13a)]-0x1)return null;const _0x115b9a=_0x135725[_0x444e1c(0x147)](0x0,_0x69704a);if(!isLikelySqlCode(_0x115b9a))return null;return{'sqlCode':_0x115b9a,'sqlName':_0x135725[_0x444e1c(0x147)](_0x69704a+0x1)};}function a161_0x3c40(_0x5e5a58,_0x526a98){_0x5e5a58=_0x5e5a58-0x134;const _0x1ca461=a161_0x1ca4();let _0x3c406d=_0x1ca461[_0x5e5a58];return _0x3c406d;}function isLikelySqlCode(_0x2f1d7d){const _0x4561f8=a161_0x3c40;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x4561f8(0x142)](_0x2f1d7d);}
@@ -1 +1 @@
1
- (function(_0x2073bd,_0xb407a){const _0x98451b=a159_0x1bf0,_0x31401c=_0x2073bd();while(!![]){try{const _0x3a9172=-parseInt(_0x98451b(0x1d7))/0x1+parseInt(_0x98451b(0x1da))/0x2*(parseInt(_0x98451b(0x1d2))/0x3)+parseInt(_0x98451b(0x1de))/0x4*(-parseInt(_0x98451b(0x1d5))/0x5)+-parseInt(_0x98451b(0x1d1))/0x6+parseInt(_0x98451b(0x1db))/0x7*(parseInt(_0x98451b(0x1e0))/0x8)+-parseInt(_0x98451b(0x1d4))/0x9+parseInt(_0x98451b(0x1d3))/0xa*(parseInt(_0x98451b(0x1d8))/0xb);if(_0x3a9172===_0xb407a)break;else _0x31401c['push'](_0x31401c['shift']());}catch(_0x1ff00a){_0x31401c['push'](_0x31401c['shift']());}}}(a159_0x36b5,0xe7858));function a159_0x1bf0(_0x1bd13a,_0x25e652){_0x1bd13a=_0x1bd13a-0x1d0;const _0x36b5ad=a159_0x36b5();let _0x1bf01f=_0x36b5ad[_0x1bd13a];return _0x1bf01f;}import{readFile}from'node:fs/promises';import a159_0x17482d from'node:crypto';function a159_0x36b5(){const _0x364c48=['129fMukTB','516070AJCFIM','7966008bpSrSw','162535NAUGdI','createHash','609155HAhkcR','517nrKirD','utf8','50778WziVZS','14tGzsmj','update','hex','4XiZVVt','digest','633112VndLUf','md5','7202688hsFKid'];a159_0x36b5=function(){return _0x364c48;};return a159_0x36b5();}export function computeSqlContentHash(_0x1a97f5){const _0x1dd63f=a159_0x1bf0;return a159_0x17482d[_0x1dd63f(0x1d6)](_0x1dd63f(0x1d0))[_0x1dd63f(0x1dc)](_0x1a97f5)[_0x1dd63f(0x1df)](_0x1dd63f(0x1dd));}export async function computeSqlFileHash(_0x20b6c2){const _0x1ce738=a159_0x1bf0,_0x5e1c62=await readFile(_0x20b6c2,_0x1ce738(0x1d9));return computeSqlContentHash(_0x5e1c62);}
1
+ (function(_0x34e0f7,_0x297816){const _0x1ff00a=a162_0x5438,_0x2ceda1=_0x34e0f7();while(!![]){try{const _0x1b8d64=parseInt(_0x1ff00a(0x17c))/0x1+-parseInt(_0x1ff00a(0x17a))/0x2*(-parseInt(_0x1ff00a(0x180))/0x3)+-parseInt(_0x1ff00a(0x175))/0x4+parseInt(_0x1ff00a(0x17b))/0x5*(-parseInt(_0x1ff00a(0x17f))/0x6)+parseInt(_0x1ff00a(0x17d))/0x7+parseInt(_0x1ff00a(0x17e))/0x8+parseInt(_0x1ff00a(0x177))/0x9*(-parseInt(_0x1ff00a(0x179))/0xa);if(_0x1b8d64===_0x297816)break;else _0x2ceda1['push'](_0x2ceda1['shift']());}catch(_0x2c6862){_0x2ceda1['push'](_0x2ceda1['shift']());}}}(a162_0x4382,0x1ceb8));import{readFile}from'node:fs/promises';function a162_0x5438(_0x437739,_0x284008){_0x437739=_0x437739-0x172;const _0x4382e5=a162_0x4382();let _0x54384d=_0x4382e5[_0x437739];return _0x54384d;}function a162_0x4382(){const _0x1521b6=['762424ipeaKT','6ddgIYO','510429xBZcYb','hex','createHash','md5','20168iEvIIH','utf8','108OMgSFi','update','212110lgAuzH','2iuFgJX','803135xbhQxb','203969yrgXAH','484694CVxnMB'];a162_0x4382=function(){return _0x1521b6;};return a162_0x4382();}import a162_0x305d2c from'node:crypto';export function computeSqlContentHash(_0x12a14e){const _0x137815=a162_0x5438;return a162_0x305d2c[_0x137815(0x173)](_0x137815(0x174))[_0x137815(0x178)](_0x12a14e)['digest'](_0x137815(0x172));}export async function computeSqlFileHash(_0x58c31f){const _0x5e78a5=a162_0x5438,_0x46bfc3=await readFile(_0x58c31f,_0x5e78a5(0x176));return computeSqlContentHash(_0x46bfc3);}
@@ -1 +1 @@
1
- (function(_0x1197be,_0x1878d1){const _0x1549a0=a160_0x110a,_0x48b1fa=_0x1197be();while(!![]){try{const _0x4f607e=parseInt(_0x1549a0(0x127))/0x1+parseInt(_0x1549a0(0x12d))/0x2+parseInt(_0x1549a0(0x12a))/0x3*(-parseInt(_0x1549a0(0x131))/0x4)+parseInt(_0x1549a0(0x12c))/0x5*(-parseInt(_0x1549a0(0x135))/0x6)+parseInt(_0x1549a0(0x120))/0x7+-parseInt(_0x1549a0(0x132))/0x8*(-parseInt(_0x1549a0(0x125))/0x9)+parseInt(_0x1549a0(0x128))/0xa;if(_0x4f607e===_0x1878d1)break;else _0x48b1fa['push'](_0x48b1fa['shift']());}catch(_0x219346){_0x48b1fa['push'](_0x48b1fa['shift']());}}}(a160_0x1b14,0xf015a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a160_0x110a(_0xc8d6a5,_0x429c7e){_0xc8d6a5=_0xc8d6a5-0x120;const _0x1b147c=a160_0x1b14();let _0x110ae2=_0x1b147c[_0xc8d6a5];return _0x110ae2;}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5c9b73,_0x27f63b,_0x545ed7,_0x5ac068){const _0x4f3354=a160_0x110a,_0x4dc97c=_0x5c9b73??createEmptySqlLock();let _0x3c1c85=_0x4dc97c[_0x4f3354(0x133)][_0x27f63b];if(!_0x3c1c85)return _0x3c1c85={'sqlRoot':_0x545ed7,'lastSync':'','sqls':{}},_0x4dc97c[_0x4f3354(0x133)][_0x27f63b]=_0x3c1c85,{'lockData':_0x4dc97c,'appLock':_0x3c1c85};if(!_0x3c1c85[_0x4f3354(0x124)])_0x3c1c85['sqlRoot']=_0x545ed7;else{if(_0x3c1c85[_0x4f3354(0x124)]!==_0x545ed7)throw new Error(_0x5ac068+_0x4f3354(0x123)+_0x545ed7+_0x4f3354(0x12b)+_0x3c1c85['sqlRoot']+_0x4f3354(0x129)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x3c1c85[_0x4f3354(0x126)]&&(_0x3c1c85[_0x4f3354(0x126)]={}),!_0x3c1c85[_0x4f3354(0x12f)]&&(_0x3c1c85[_0x4f3354(0x12f)]=''),{'lockData':_0x4dc97c,'appLock':_0x3c1c85};}function a160_0x1b14(){const _0x5be25b=['sqlRoot','66996VxJUVM','sqls','1899263RtrJWm','6300420LtDXOY','\x22.\x20','294909kggJlI','\x22\x20vs\x20lock\x20\x22','10AVUHlW','767100ndZltQ','code','lastSync','stringify','40KyJDpO','288OraRBn','apps','parse','5517786ZKyHNG','4373873oZQsLq','utf8','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'];a160_0x1b14=function(){return _0x5be25b;};return a160_0x1b14();}export async function readSqlLockFile(_0x23a658){const _0x458d25=a160_0x110a;try{const _0x22cec8=await readFile(_0x23a658,_0x458d25(0x121));return JSON[_0x458d25(0x134)](_0x22cec8);}catch(_0x1796f6){if(_0x1796f6[_0x458d25(0x12e)]==='ENOENT')return null;throw new Error(_0x458d25(0x122)+String(_0x1796f6));}}export async function writeSqlLockFile(_0x369ffd,_0x43d834){const _0x55b736=a160_0x110a;await mkdir(dirname(_0x369ffd),{'recursive':!![]}),await writeFile(_0x369ffd,JSON[_0x55b736(0x130)](_0x43d834,null,0x2),_0x55b736(0x121));}
1
+ (function(_0x4964d0,_0x2194dc){const _0x434e2f=a163_0x29b6,_0x25295f=_0x4964d0();while(!![]){try{const _0x8b66a1=parseInt(_0x434e2f(0x185))/0x1+parseInt(_0x434e2f(0x18a))/0x2+parseInt(_0x434e2f(0x184))/0x3+parseInt(_0x434e2f(0x189))/0x4*(parseInt(_0x434e2f(0x181))/0x5)+-parseInt(_0x434e2f(0x18f))/0x6*(-parseInt(_0x434e2f(0x17f))/0x7)+parseInt(_0x434e2f(0x182))/0x8*(-parseInt(_0x434e2f(0x18e))/0x9)+-parseInt(_0x434e2f(0x186))/0xa;if(_0x8b66a1===_0x2194dc)break;else _0x25295f['push'](_0x25295f['shift']());}catch(_0xe99eb2){_0x25295f['push'](_0x25295f['shift']());}}}(a163_0x14cf,0xec843));import{mkdir,readFile,writeFile}from'node:fs/promises';function a163_0x14cf(){const _0x4f4983=['stringify','5463092MAzzYy','2210456eHzhoM','lastSync','utf8',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','18ycxkWq','5483334lqtPvS','parse','sqls','\x22.\x20','14AMTMss','sqlRoot','5NJOMhj','6831464MjXPvz','ENOENT','4969293NQKVlm','1089594kpBVtD','43681670sMEuoT','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.'];a163_0x14cf=function(){return _0x4f4983;};return a163_0x14cf();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x209c6f,_0x3a30c8,_0x5d3e3b,_0x16f02e){const _0x1ba803=a163_0x29b6,_0x41159d=_0x209c6f??createEmptySqlLock();let _0x13cac0=_0x41159d['apps'][_0x3a30c8];if(!_0x13cac0)return _0x13cac0={'sqlRoot':_0x5d3e3b,'lastSync':'','sqls':{}},_0x41159d['apps'][_0x3a30c8]=_0x13cac0,{'lockData':_0x41159d,'appLock':_0x13cac0};if(!_0x13cac0[_0x1ba803(0x180)])_0x13cac0[_0x1ba803(0x180)]=_0x5d3e3b;else{if(_0x13cac0['sqlRoot']!==_0x5d3e3b)throw new Error(_0x16f02e+_0x1ba803(0x18d)+_0x5d3e3b+'\x22\x20vs\x20lock\x20\x22'+_0x13cac0['sqlRoot']+_0x1ba803(0x192)+_0x1ba803(0x187));}return!_0x13cac0[_0x1ba803(0x191)]&&(_0x13cac0[_0x1ba803(0x191)]={}),!_0x13cac0[_0x1ba803(0x18b)]&&(_0x13cac0[_0x1ba803(0x18b)]=''),{'lockData':_0x41159d,'appLock':_0x13cac0};}export async function readSqlLockFile(_0x1d508a){const _0x304906=a163_0x29b6;try{const _0x55472d=await readFile(_0x1d508a,_0x304906(0x18c));return JSON[_0x304906(0x190)](_0x55472d);}catch(_0x3f04d1){if(_0x3f04d1['code']===_0x304906(0x183))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x3f04d1));}}function a163_0x29b6(_0x2d9750,_0x246aa9){_0x2d9750=_0x2d9750-0x17f;const _0x14cf9f=a163_0x14cf();let _0x29b6b2=_0x14cf9f[_0x2d9750];return _0x29b6b2;}export async function writeSqlLockFile(_0x186cac,_0x50f0dd){const _0x2df5a8=a163_0x29b6;await mkdir(dirname(_0x186cac),{'recursive':!![]}),await writeFile(_0x186cac,JSON[_0x2df5a8(0x188)](_0x50f0dd,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x45571c,_0x10b9f8){const _0x3885c5=a162_0x3d8a,_0x55d5eb=_0x45571c();while(!![]){try{const _0x2e39ba=parseInt(_0x3885c5(0x1b1))/0x1*(parseInt(_0x3885c5(0x1b0))/0x2)+-parseInt(_0x3885c5(0x1aa))/0x3+-parseInt(_0x3885c5(0x1ac))/0x4+-parseInt(_0x3885c5(0x1ad))/0x5*(parseInt(_0x3885c5(0x1a1))/0x6)+parseInt(_0x3885c5(0x1a6))/0x7+parseInt(_0x3885c5(0x1a7))/0x8+parseInt(_0x3885c5(0x1ab))/0x9;if(_0x2e39ba===_0x10b9f8)break;else _0x55d5eb['push'](_0x55d5eb['shift']());}catch(_0xd4c7ff){_0x55d5eb['push'](_0x55d5eb['shift']());}}}(a162_0x54b8,0x9bde2));export function detectSqlMode(_0x414732){const _0x2c601a=a162_0x3d8a,_0x33d55b=_0x414732[_0x2c601a(0x1ae)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x33d55b))return _0x2c601a(0x1a0);return _0x2c601a(0x1af);}export function getSqlFileExtension(_0x350fa9){const _0x16fbb0=a162_0x3d8a;return _0x350fa9===_0x16fbb0(0x1a0)?_0x16fbb0(0x1a8):_0x16fbb0(0x1a9);}function a162_0x3d8a(_0x219823,_0x4dca52){_0x219823=_0x219823-0x1a0;const _0x54b889=a162_0x54b8();let _0x3d8ae0=_0x54b889[_0x219823];return _0x3d8ae0;}export function buildDefaultSqlFileName(_0x2247b0,_0x29210b){return''+_0x2247b0+getSqlFileExtension(_0x29210b);}function a162_0x54b8(){const _0x158bb3=['1MGjFca','mybatisXml','6vqdADV','unknown-sql','db-','trim','replace','3457811iJaYkK','10129600xYgQwZ','.xml','.sql','3104352rovVJr','8617176CooJdc','4116416lFlWfa','1679285FGkYsF','trimStart','sql','641084NWHnUM'];a162_0x54b8=function(){return _0x158bb3;};return a162_0x54b8();}export function sanitizeSqlPathSegment(_0x5e5efe,_0x33f78d){const _0x1d641a=a162_0x3d8a,_0x27f3d2=String(_0x5e5efe??'')[_0x1d641a(0x1a4)](),_0x3754f7=_0x27f3d2[_0x1d641a(0x1a5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1d641a(0x1a5)](/\s+/g,'-')[_0x1d641a(0x1a5)](/-+/g,'-')[_0x1d641a(0x1a5)](/^\.+/,'')[_0x1d641a(0x1a5)](/\.+$/,'')[_0x1d641a(0x1a5)](/^-+/,'')[_0x1d641a(0x1a5)](/-+$/,'');return _0x3754f7||_0x33f78d;}export function buildDbDirectoryName(_0x47834b,_0x36fa45){const _0x54ec86=a162_0x3d8a;return sanitizeSqlPathSegment(_0x47834b,_0x36fa45!=null?_0x54ec86(0x1a3)+_0x36fa45:'unknown-db');}export function buildSqlRelativePath(_0x43d53e,_0x48fe3a,_0x4e181c,_0x130652,_0x1c4f33){const _0x401ee3=a162_0x3d8a,_0x4c7a14=buildDbDirectoryName(_0x4e181c,_0x1c4f33),_0x251d43=sanitizeSqlPathSegment(_0x43d53e,_0x401ee3(0x1a2)),_0x1bedb2=sanitizeSqlPathSegment(_0x48fe3a,_0x251d43);return _0x4c7a14+'/'+_0x251d43+'_'+_0x1bedb2+getSqlFileExtension(_0x130652);}
1
+ (function(_0x42edf1,_0x49d35e){const _0x160267=a165_0x4752,_0x46d5aa=_0x42edf1();while(!![]){try{const _0x3b3818=-parseInt(_0x160267(0x1af))/0x1*(-parseInt(_0x160267(0x1bc))/0x2)+parseInt(_0x160267(0x1ae))/0x3*(parseInt(_0x160267(0x1b1))/0x4)+-parseInt(_0x160267(0x1ba))/0x5*(parseInt(_0x160267(0x1b5))/0x6)+parseInt(_0x160267(0x1b6))/0x7+parseInt(_0x160267(0x1b2))/0x8+parseInt(_0x160267(0x1b4))/0x9+-parseInt(_0x160267(0x1b7))/0xa;if(_0x3b3818===_0x49d35e)break;else _0x46d5aa['push'](_0x46d5aa['shift']());}catch(_0x4e4768){_0x46d5aa['push'](_0x46d5aa['shift']());}}}(a165_0x301d,0x72cf6));export function detectSqlMode(_0xb47cf6){const _0x4619e1=a165_0x4752,_0x1466a3=_0xb47cf6[_0x4619e1(0x1b0)]();if(/^<(select|insert|update|delete)\b/i[_0x4619e1(0x1b8)](_0x1466a3))return _0x4619e1(0x1be);return'sql';}export function getSqlFileExtension(_0x27fa42){const _0x33c821=a165_0x4752;return _0x27fa42===_0x33c821(0x1be)?_0x33c821(0x1bd):_0x33c821(0x1bb);}export function buildDefaultSqlFileName(_0x2d3b34,_0x3dc6ce){return''+_0x2d3b34+getSqlFileExtension(_0x3dc6ce);}export function sanitizeSqlPathSegment(_0x55d595,_0x19fad6){const _0x1fa4ca=a165_0x4752,_0x39bd4a=String(_0x55d595??'')['trim'](),_0x416d25=_0x39bd4a['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1fa4ca(0x1b9)](/\s+/g,'-')[_0x1fa4ca(0x1b9)](/-+/g,'-')[_0x1fa4ca(0x1b9)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1fa4ca(0x1b9)](/^-+/,'')['replace'](/-+$/,'');return _0x416d25||_0x19fad6;}function a165_0x301d(){const _0x43dc4f=['271438PNoxUp','.xml','mybatisXml','13347NEJCFi','6JarDkI','trimStart','104sKyGce','6259120ExZLIK','unknown-sql','4006710CmPZwJ','30lgxaZw','3413984xovjSt','14150630oFulyS','test','replace','759955gexxJW','.sql'];a165_0x301d=function(){return _0x43dc4f;};return a165_0x301d();}function a165_0x4752(_0x151236,_0x44c3c2){_0x151236=_0x151236-0x1ae;const _0x301dc9=a165_0x301d();let _0x4752b1=_0x301dc9[_0x151236];return _0x4752b1;}export function buildDbDirectoryName(_0x41588e,_0x2e2af1){return sanitizeSqlPathSegment(_0x41588e,_0x2e2af1!=null?'db-'+_0x2e2af1:'unknown-db');}export function buildSqlRelativePath(_0x22789a,_0x4031d8,_0x1a0f0a,_0x43a844,_0x3f7dab){const _0x334817=a165_0x4752,_0x1c0282=buildDbDirectoryName(_0x1a0f0a,_0x3f7dab),_0x52b4ce=sanitizeSqlPathSegment(_0x22789a,_0x334817(0x1b3)),_0x25477f=sanitizeSqlPathSegment(_0x4031d8,_0x52b4ce);return _0x1c0282+'/'+_0x52b4ce+'_'+_0x25477f+getSqlFileExtension(_0x43a844);}
@@ -1 +1 @@
1
- function a163_0x1732(_0x495a34,_0x49e8b1){_0x495a34=_0x495a34-0x181;const _0x41e808=a163_0x41e8();let _0x17327c=_0x41e808[_0x495a34];return _0x17327c;}(function(_0x286f07,_0x4bcd74){const _0x55c9db=a163_0x1732,_0x2c3945=_0x286f07();while(!![]){try{const _0x23b08a=-parseInt(_0x55c9db(0x1a9))/0x1+parseInt(_0x55c9db(0x197))/0x2+-parseInt(_0x55c9db(0x191))/0x3+-parseInt(_0x55c9db(0x18e))/0x4*(parseInt(_0x55c9db(0x1a8))/0x5)+-parseInt(_0x55c9db(0x190))/0x6+parseInt(_0x55c9db(0x195))/0x7+parseInt(_0x55c9db(0x187))/0x8;if(_0x23b08a===_0x4bcd74)break;else _0x2c3945['push'](_0x2c3945['shift']());}catch(_0x2035be){_0x2c3945['push'](_0x2c3945['shift']());}}}(a163_0x41e8,0x667d3));export function detectSqlType(_0x3c7cbf){const _0x41415c=a163_0x1732;if(!_0x3c7cbf?.[_0x41415c(0x19c)]())return{'type':_0x41415c(0x1a3),'isSelectOnly':![],'isDangerous':![],'reason':_0x41415c(0x18c)};const _0x35bb56=_0x3c7cbf['replace'](/#\{[^}]*\}/g,'?')[_0x41415c(0x198)](/\$\{[^}]*\}/g,'?')[_0x41415c(0x198)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x41415c(0x198)](/\/\*[\s\S]*?\*\//g,'')[_0x41415c(0x19c)](),_0x37b1b9=_0x35bb56[_0x41415c(0x194)]('\x0a');let _0xee1213='';for(const _0x12d067 of _0x37b1b9){const _0x222f0b=_0x12d067[_0x41415c(0x19c)]();if(!_0x222f0b||_0x222f0b['startsWith']('--')||_0x222f0b[_0x41415c(0x1a4)]('/*'))continue;_0xee1213=_0x222f0b;break;}const _0xd82b25=_0xee1213[_0x41415c(0x18d)]();if(_0xd82b25[_0x41415c(0x1a4)]('SELECT')||_0xd82b25[_0x41415c(0x1a4)](_0x41415c(0x1a6))){const _0xd21a7=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x41415c(0x18f)](_0x35bb56);return{'type':_0x41415c(0x19f),'isSelectOnly':!_0xd21a7,'isDangerous':_0xd21a7,'reason':_0xd21a7?_0x41415c(0x199):undefined};}if(_0xd82b25['startsWith']('INSERT'))return{'type':_0x41415c(0x184),'isSelectOnly':![],'isDangerous':![]};if(_0xd82b25['startsWith'](_0x41415c(0x196)))return{'type':_0x41415c(0x196),'isSelectOnly':![],'isDangerous':![]};if(_0xd82b25['startsWith'](_0x41415c(0x192)))return{'type':_0x41415c(0x192),'isSelectOnly':![],'isDangerous':!![],'reason':_0x41415c(0x193)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0xd82b25))return{'type':_0x41415c(0x188),'isSelectOnly':![],'isDangerous':!![],'reason':_0x41415c(0x19b)};return{'type':_0x41415c(0x1a3),'isSelectOnly':![],'isDangerous':![]};}function a163_0x41e8(){const _0x58c4bb=['455mqXAgJ','556211UWQydI','includes','\x20with\x20parameters:\x20','from','INSERT','match','unknown\x20table(s)','747992arcZGg','DDL','join','reason','isDangerous','SQL\x20content\x20is\x20empty','toUpperCase','460IHAbVY','test','293394fghkxd','593532UOivsK','DELETE','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','split','5018685cxZPLx','UPDATE','845520nNYeRH','replace','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','add','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','trim','type','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','SELECT','\x20query\x20targeting\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','matchAll','UNKNOWN','startsWith','push','WITH','length'];a163_0x41e8=function(){return _0x58c4bb;};return a163_0x41e8();}function extractTables(_0x183ab1){const _0x33ba20=a163_0x1732,_0x4e9d48=_0x183ab1[_0x33ba20(0x198)](/#\{[^}]*\}/g,'?')[_0x33ba20(0x198)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')[_0x33ba20(0x198)](/\/\*[\s\S]*?\*\//g,''),_0x1f5340=[],_0x44da64=_0x4e9d48[_0x33ba20(0x185)](/FROM\s+([^\s,)(]+)/i);if(_0x44da64?.[0x1])_0x1f5340[_0x33ba20(0x1a5)](_0x44da64[0x1][_0x33ba20(0x198)](/[`"]/g,''));for(const _0xa4bbe6 of _0x4e9d48[_0x33ba20(0x1a2)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x1f5d2c=_0xa4bbe6[0x1]?.['replace'](/[`"]/g,'');if(_0x1f5d2c&&!_0x1f5340[_0x33ba20(0x181)](_0x1f5d2c))_0x1f5340[_0x33ba20(0x1a5)](_0x1f5d2c);}const _0x620596=_0x4e9d48[_0x33ba20(0x185)](/INTO\s+([^\s(]+)/i);if(_0x620596?.[0x1]){const _0x16c3bd=_0x620596[0x1][_0x33ba20(0x198)](/[`"]/g,'');if(!_0x1f5340[_0x33ba20(0x181)](_0x16c3bd))_0x1f5340[_0x33ba20(0x1a5)](_0x16c3bd);}const _0x38bcf9=_0x4e9d48[_0x33ba20(0x185)](/UPDATE\s+([^\s,)(]+)/i);if(_0x38bcf9?.[0x1]){const _0x3f60b4=_0x38bcf9[0x1][_0x33ba20(0x198)](/[`"]/g,'');if(!_0x1f5340[_0x33ba20(0x181)](_0x3f60b4))_0x1f5340[_0x33ba20(0x1a5)](_0x3f60b4);}return _0x1f5340;}function extractParameters(_0x1cc7fc){const _0x755e15=a163_0x1732,_0x56169a=new Set();for(const _0x26f7d1 of _0x1cc7fc[_0x755e15(0x1a2)](/#\{(\w+)\}/g))if(_0x26f7d1[0x1])_0x56169a[_0x755e15(0x19a)](_0x26f7d1[0x1]);for(const _0x5ebab1 of _0x1cc7fc[_0x755e15(0x1a2)](/\$\{(\w+)\}/g))if(_0x5ebab1[0x1])_0x56169a['add'](_0x5ebab1[0x1]);return Array[_0x755e15(0x183)](_0x56169a);}export function validateSql(_0x2b2ef1){const _0x31f151=a163_0x1732,_0x5a8ffe=detectSqlType(_0x2b2ef1),_0x264338=extractTables(_0x2b2ef1),_0x528f98=extractParameters(_0x2b2ef1);if(_0x5a8ffe[_0x31f151(0x18b)])return{'valid':![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x5a8ffe[_0x31f151(0x18a)]||_0x5a8ffe[_0x31f151(0x19d)]+_0x31f151(0x19e)};if(_0x5a8ffe[_0x31f151(0x19d)]==='UNKNOWN')return{'valid':![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x31f151(0x1a1)};return{'valid':!![],'sqlType':_0x5a8ffe,'tables':_0x264338,'parameters':_0x528f98,'message':_0x5a8ffe[_0x31f151(0x19d)]+_0x31f151(0x1a0)+(_0x264338[_0x31f151(0x1a7)]?_0x264338[_0x31f151(0x189)](',\x20'):_0x31f151(0x186))+(_0x528f98[_0x31f151(0x1a7)]?_0x31f151(0x182)+_0x528f98[_0x31f151(0x189)](',\x20'):'')};}
1
+ (function(_0x34cce1,_0x28578d){const _0x47c3ea=a166_0x4434,_0x2ceb39=_0x34cce1();while(!![]){try{const _0x56b6f5=-parseInt(_0x47c3ea(0xcb))/0x1+-parseInt(_0x47c3ea(0xd9))/0x2+-parseInt(_0x47c3ea(0xe1))/0x3+parseInt(_0x47c3ea(0xcf))/0x4+parseInt(_0x47c3ea(0xdd))/0x5+-parseInt(_0x47c3ea(0xe5))/0x6+parseInt(_0x47c3ea(0xc4))/0x7;if(_0x56b6f5===_0x28578d)break;else _0x2ceb39['push'](_0x2ceb39['shift']());}catch(_0x374db5){_0x2ceb39['push'](_0x2ceb39['shift']());}}}(a166_0x2677,0x332ad));function a166_0x4434(_0xcfaad,_0x5ed58a){_0xcfaad=_0xcfaad-0xc4;const _0x267737=a166_0x2677();let _0x443417=_0x267737[_0xcfaad];return _0x443417;}export function detectSqlType(_0x2b37a6){const _0x2e8e8a=a166_0x4434;if(!_0x2b37a6?.[_0x2e8e8a(0xce)]())return{'type':_0x2e8e8a(0xd5),'isSelectOnly':![],'isDangerous':![],'reason':_0x2e8e8a(0xd7)};const _0x15502b=_0x2b37a6['replace'](/#\{[^}]*\}/g,'?')[_0x2e8e8a(0xc6)](/\$\{[^}]*\}/g,'?')[_0x2e8e8a(0xc6)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x2e8e8a(0xce)](),_0x2f219d=_0x15502b[_0x2e8e8a(0xd0)]('\x0a');let _0x45f620='';for(const _0x18b6dc of _0x2f219d){const _0x3b92a9=_0x18b6dc[_0x2e8e8a(0xce)]();if(!_0x3b92a9||_0x3b92a9['startsWith']('--')||_0x3b92a9['startsWith']('/*'))continue;_0x45f620=_0x3b92a9;break;}const _0x581aa0=_0x45f620[_0x2e8e8a(0xe0)]();if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xc5))||_0x581aa0[_0x2e8e8a(0xdf)]('WITH')){const _0x590ed1=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2e8e8a(0xe6)](_0x15502b);return{'type':_0x2e8e8a(0xc5),'isSelectOnly':!_0x590ed1,'isDangerous':_0x590ed1,'reason':_0x590ed1?_0x2e8e8a(0xd6):undefined};}if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xe2)))return{'type':_0x2e8e8a(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x581aa0['startsWith'](_0x2e8e8a(0xc9)))return{'type':_0x2e8e8a(0xc9),'isSelectOnly':![],'isDangerous':![]};if(_0x581aa0[_0x2e8e8a(0xdf)](_0x2e8e8a(0xdb)))return{'type':_0x2e8e8a(0xdb),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2e8e8a(0xd3)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x2e8e8a(0xe6)](_0x581aa0))return{'type':_0x2e8e8a(0xc8),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2e8e8a(0xd5),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5658ef){const _0x53f261=a166_0x4434,_0x51b56b=_0x5658ef['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x53f261(0xc6)](/'[^']*'/g,'\x27\x27')[_0x53f261(0xc6)](/--.*$/gm,'')[_0x53f261(0xc6)](/\/\*[\s\S]*?\*\//g,''),_0x267f9c=[],_0x36c4cd=_0x51b56b['match'](/FROM\s+([^\s,)(]+)/i);if(_0x36c4cd?.[0x1])_0x267f9c[_0x53f261(0xcd)](_0x36c4cd[0x1]['replace'](/[`"]/g,''));for(const _0x10a2d0 of _0x51b56b[_0x53f261(0xd1)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x5c765d=_0x10a2d0[0x1]?.['replace'](/[`"]/g,'');if(_0x5c765d&&!_0x267f9c[_0x53f261(0xe4)](_0x5c765d))_0x267f9c[_0x53f261(0xcd)](_0x5c765d);}const _0x18491f=_0x51b56b[_0x53f261(0xd4)](/INTO\s+([^\s(]+)/i);if(_0x18491f?.[0x1]){const _0x1c1ec1=_0x18491f[0x1]['replace'](/[`"]/g,'');if(!_0x267f9c[_0x53f261(0xe4)](_0x1c1ec1))_0x267f9c[_0x53f261(0xcd)](_0x1c1ec1);}const _0x45acb8=_0x51b56b[_0x53f261(0xd4)](/UPDATE\s+([^\s,)(]+)/i);if(_0x45acb8?.[0x1]){const _0x18db64=_0x45acb8[0x1][_0x53f261(0xc6)](/[`"]/g,'');if(!_0x267f9c[_0x53f261(0xe4)](_0x18db64))_0x267f9c[_0x53f261(0xcd)](_0x18db64);}return _0x267f9c;}function a166_0x2677(){const _0x5ddfb6=['DELETE','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','55890SqoAXt','add','startsWith','toUpperCase','964998bCejQT','INSERT','\x20with\x20parameters:\x20','includes','39594gICJfs','test','5228321xNymcZ','SELECT','replace','\x20query\x20targeting\x20','DDL','UPDATE','join','201215hoEuZx','unknown\x20table(s)','push','trim','227844uCFUyA','split','matchAll','type','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','match','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','SQL\x20content\x20is\x20empty','length','151962ovuJre','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'];a166_0x2677=function(){return _0x5ddfb6;};return a166_0x2677();}function extractParameters(_0x6812a8){const _0x1f7af1=a166_0x4434,_0x35821c=new Set();for(const _0x931277 of _0x6812a8[_0x1f7af1(0xd1)](/#\{(\w+)\}/g))if(_0x931277[0x1])_0x35821c[_0x1f7af1(0xde)](_0x931277[0x1]);for(const _0x3de9bf of _0x6812a8[_0x1f7af1(0xd1)](/\$\{(\w+)\}/g))if(_0x3de9bf[0x1])_0x35821c[_0x1f7af1(0xde)](_0x3de9bf[0x1]);return Array['from'](_0x35821c);}export function validateSql(_0x40a190){const _0x336f74=a166_0x4434,_0x57a6aa=detectSqlType(_0x40a190),_0x143069=extractTables(_0x40a190),_0x486191=extractParameters(_0x40a190);if(_0x57a6aa['isDangerous'])return{'valid':![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x57a6aa['reason']||_0x57a6aa['type']+_0x336f74(0xda)};if(_0x57a6aa[_0x336f74(0xd2)]==='UNKNOWN')return{'valid':![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x336f74(0xdc)};return{'valid':!![],'sqlType':_0x57a6aa,'tables':_0x143069,'parameters':_0x486191,'message':_0x57a6aa[_0x336f74(0xd2)]+_0x336f74(0xc7)+(_0x143069['length']?_0x143069[_0x336f74(0xca)](',\x20'):_0x336f74(0xcc))+(_0x486191[_0x336f74(0xd8)]?_0x336f74(0xe3)+_0x486191['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a164_0x58e5(){const _0xf88668=['31698EXsNPD','65aEubVv','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','2XzJvyA','join','242244aCzsfN','45dWTTDE','11ctgEoz','30702txwrTP','\x0a\x20\x20\x20\x20\x20\x20\x20','2191YScBLJ','206497yWSjqF','3070416PNfcAA','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Set\x20appcode\x20via\x20`','2335143xBbrKe','Tip:\x20`','13788570IlKPMn','1608TxifKm'];a164_0x58e5=function(){return _0xf88668;};return a164_0x58e5();}const a164_0x1bc110=a164_0x562c;(function(_0x6343dd,_0x13c5c2){const _0x41421b=a164_0x562c,_0x458c20=_0x6343dd();while(!![]){try{const _0x41da9f=-parseInt(_0x41421b(0x90))/0x1*(parseInt(_0x41421b(0x88))/0x2)+parseInt(_0x41421b(0x81))/0x3+parseInt(_0x41421b(0x8a))/0x4*(-parseInt(_0x41421b(0x8b))/0x5)+-parseInt(_0x41421b(0x8d))/0x6*(-parseInt(_0x41421b(0x8f))/0x7)+-parseInt(_0x41421b(0x84))/0x8*(parseInt(_0x41421b(0x85))/0x9)+parseInt(_0x41421b(0x83))/0xa*(-parseInt(_0x41421b(0x8c))/0xb)+parseInt(_0x41421b(0x91))/0xc*(parseInt(_0x41421b(0x86))/0xd);if(_0x41da9f===_0x13c5c2)break;else _0x458c20['push'](_0x458c20['shift']());}catch(_0x469e06){_0x458c20['push'](_0x458c20['shift']());}}}(a164_0x58e5,0xc8719));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a164_0x562c(_0x212ea0,_0x4e1fb1){_0x212ea0=_0x212ea0-0x81;const _0x58e523=a164_0x58e5();let _0x562c16=_0x58e523[_0x212ea0];return _0x562c16;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x1bc110(0x93)+CLI_BIN_NAME+a164_0x1bc110(0x87),a164_0x1bc110(0x82)+CLI_BIN_NAME+a164_0x1bc110(0x92)][a164_0x1bc110(0x89)](a164_0x1bc110(0x8e)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a167_0x557506=a167_0x595c;(function(_0x1bc2ec,_0xc19199){const _0x30774d=a167_0x595c,_0xc9c68e=_0x1bc2ec();while(!![]){try{const _0x8e3beb=parseInt(_0x30774d(0x115))/0x1+-parseInt(_0x30774d(0x117))/0x2*(parseInt(_0x30774d(0x10e))/0x3)+parseInt(_0x30774d(0x10f))/0x4*(-parseInt(_0x30774d(0x116))/0x5)+-parseInt(_0x30774d(0x114))/0x6+parseInt(_0x30774d(0x10d))/0x7*(-parseInt(_0x30774d(0x107))/0x8)+-parseInt(_0x30774d(0x111))/0x9*(-parseInt(_0x30774d(0x112))/0xa)+-parseInt(_0x30774d(0x10c))/0xb*(-parseInt(_0x30774d(0x10a))/0xc);if(_0x8e3beb===_0xc19199)break;else _0xc9c68e['push'](_0xc9c68e['shift']());}catch(_0x251af2){_0xc9c68e['push'](_0xc9c68e['shift']());}}}(a167_0x1a32,0x43a7b));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a167_0x595c(_0x3e176b,_0x2dc8cf){_0x3e176b=_0x3e176b-0x105;const _0x1a32af=a167_0x1a32();let _0x595c2a=_0x1a32af[_0x3e176b];return _0x595c2a;}function a167_0x1a32(){const _0x59b5a2=['\x0a\x20\x20\x20\x20\x20\x20\x20','1323747rgEfJI','10ymWUgK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1084410skFCol','448904bjtdwt','187335iQUaka','811030OFuspl','Tip:\x20`','Set\x20appcode\x20via\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','15608fFkeFL','join','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','2640WnyBhh','\x20auth`\x20to\x20login\x20first.','39787BDREwn','1358JCNvsR','3hsCrxI','16MRktRW'];a167_0x1a32=function(){return _0x59b5a2;};return a167_0x1a32();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a167_0x557506(0x10b),'configMissingHint':[a167_0x557506(0x105)+CLI_BIN_NAME+a167_0x557506(0x106),a167_0x557506(0x118)+CLI_BIN_NAME+a167_0x557506(0x109)][a167_0x557506(0x108)](a167_0x557506(0x110)),'notInProjectHint':a167_0x557506(0x113)});
@@ -1 +1 @@
1
- (function(_0xad621b,_0x156280){var _0x18b9be=a165_0x5233,_0x301cda=_0xad621b();while(!![]){try{var _0x50f1be=-parseInt(_0x18b9be(0x1a9))/0x1*(-parseInt(_0x18b9be(0x1a4))/0x2)+-parseInt(_0x18b9be(0x1a5))/0x3+parseInt(_0x18b9be(0x1aa))/0x4+parseInt(_0x18b9be(0x1a6))/0x5*(-parseInt(_0x18b9be(0x1ab))/0x6)+parseInt(_0x18b9be(0x1ac))/0x7+parseInt(_0x18b9be(0x1a8))/0x8+-parseInt(_0x18b9be(0x1a3))/0x9*(-parseInt(_0x18b9be(0x1a7))/0xa);if(_0x50f1be===_0x156280)break;else _0x301cda['push'](_0x301cda['shift']());}catch(_0x982ea2){_0x301cda['push'](_0x301cda['shift']());}}}(a165_0xe515,0x394b2));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x1546fa}from'@lovrabet/cli-framework';export function buildAllFlags(_0x2c88d1){return a165_0x1546fa(_0x2c88d1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}function a165_0x5233(_0x294497,_0x1d53d7){_0x294497=_0x294497-0x1a3;var _0xe5150b=a165_0xe515();var _0x523383=_0xe5150b[_0x294497];return _0x523383;}function a165_0xe515(){var _0x5ebea6=['318484eDUcpX','2568gDHsFe','2308453ccICFc','18EJMtmO','71090jnhgLa','1144605adkzmS','1740WJmPZm','973970WtaDzE','1003312ymORtY','1iwooWv'];a165_0xe515=function(){return _0x5ebea6;};return a165_0xe515();}
1
+ (function(_0x37d0c7,_0x3cba6b){var _0x296e57=a168_0x55a7,_0x2f5159=_0x37d0c7();while(!![]){try{var _0x368996=parseInt(_0x296e57(0x18d))/0x1*(-parseInt(_0x296e57(0x18e))/0x2)+-parseInt(_0x296e57(0x190))/0x3*(parseInt(_0x296e57(0x192))/0x4)+parseInt(_0x296e57(0x196))/0x5+-parseInt(_0x296e57(0x18f))/0x6+parseInt(_0x296e57(0x194))/0x7+-parseInt(_0x296e57(0x197))/0x8*(-parseInt(_0x296e57(0x191))/0x9)+-parseInt(_0x296e57(0x195))/0xa*(parseInt(_0x296e57(0x193))/0xb);if(_0x368996===_0x3cba6b)break;else _0x2f5159['push'](_0x2f5159['shift']());}catch(_0x53e585){_0x2f5159['push'](_0x2f5159['shift']());}}}(a168_0x36bc,0xd66b8));function a168_0x55a7(_0x54c77b,_0x3e69fc){_0x54c77b=_0x54c77b-0x18d;var _0x36bcfb=a168_0x36bc();var _0x55a740=_0x36bcfb[_0x54c77b];return _0x55a740;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a168_0x38c1ec}from'@lovrabet/cli-framework';function a168_0x36bc(){var _0x423c5e=['8920vUeMqq','1SrTyJC','264230tdrAGQ','6015228svJzqi','9WhBoZU','10845UMsYuv','574204jqQKlO','165sRiDFn','9706690PuDObI','409670RXzfOi','1639150wUBgPQ'];a168_0x36bc=function(){return _0x423c5e;};return a168_0x36bc();}export function buildAllFlags(_0xf33c85){return a168_0x38c1ec(_0xf33c85,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a166_0x20b930=a166_0x49ee;(function(_0x280cdc,_0x5372ec){const _0xa52926=a166_0x49ee,_0x4b1efe=_0x280cdc();while(!![]){try{const _0xc7919c=-parseInt(_0xa52926(0x10d))/0x1*(-parseInt(_0xa52926(0x110))/0x2)+parseInt(_0xa52926(0x111))/0x3+-parseInt(_0xa52926(0x10f))/0x4+parseInt(_0xa52926(0x10b))/0x5+parseInt(_0xa52926(0x108))/0x6+parseInt(_0xa52926(0x10e))/0x7*(parseInt(_0xa52926(0x10c))/0x8)+-parseInt(_0xa52926(0x10a))/0x9;if(_0xc7919c===_0x5372ec)break;else _0x4b1efe['push'](_0x4b1efe['shift']());}catch(_0x574d57){_0x4b1efe['push'](_0x4b1efe['shift']());}}}(a166_0x3d2c,0xb5a46));import{createFlagHelpers}from'@lovrabet/cli-framework';function a166_0x3d2c(){const _0x5b0e8c=['2UTstjn','1729317lYjyKV','validateFlags','8772474SqleND','parseFlags','32564655UgzkpG','6076830qUKzLW','16JqBWas','1442759OQqLry','3217732TMGNlC','5014776uYYkLN'];a166_0x3d2c=function(){return _0x5b0e8c;};return a166_0x3d2c();}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a166_0x49ee(_0x3b838e,_0x37bcf7){_0x3b838e=_0x3b838e-0x107;const _0x3d2c16=a166_0x3d2c();let _0x49ee14=_0x3d2c16[_0x3b838e];return _0x49ee14;}export const parseFlags=helpers[a166_0x20b930(0x109)];export const validateFlags=helpers[a166_0x20b930(0x107)];
1
+ function a169_0x2c00(_0x2c1dfb,_0x5454f5){_0x2c1dfb=_0x2c1dfb-0x69;const _0x8e1cca=a169_0x8e1c();let _0x2c00f5=_0x8e1cca[_0x2c1dfb];return _0x2c00f5;}const a169_0x5def7c=a169_0x2c00;(function(_0x5d9122,_0x1f3979){const _0x447660=a169_0x2c00,_0x20a47f=_0x5d9122();while(!![]){try{const _0x37c59f=-parseInt(_0x447660(0x6c))/0x1+-parseInt(_0x447660(0x75))/0x2*(parseInt(_0x447660(0x74))/0x3)+-parseInt(_0x447660(0x73))/0x4*(parseInt(_0x447660(0x6d))/0x5)+parseInt(_0x447660(0x72))/0x6*(parseInt(_0x447660(0x6f))/0x7)+parseInt(_0x447660(0x69))/0x8*(parseInt(_0x447660(0x71))/0x9)+-parseInt(_0x447660(0x6b))/0xa+parseInt(_0x447660(0x70))/0xb*(parseInt(_0x447660(0x6a))/0xc);if(_0x37c59f===_0x1f3979)break;else _0x20a47f['push'](_0x20a47f['shift']());}catch(_0x2370df){_0x20a47f['push'](_0x20a47f['shift']());}}}(a169_0x8e1c,0xd3e41));function a169_0x8e1c(){const _0x32ff55=['80NRrkhZ','validateFlags','140581lXpCYe','14960033QcfDtw','1337949RAmnIX','474rXeAUG','229936nQXVoJ','155604CEUxUo','2NEzFdI','72ikLOIA','12nettTf','9012720ysvmKg','1543720uIGHTv'];a169_0x8e1c=function(){return _0x32ff55;};return a169_0x8e1c();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a169_0x5def7c(0x6e)];
@@ -1 +1 @@
1
- const a167_0x1ea866=a167_0x17aa;(function(_0x3a7a30,_0xf65e89){const _0x2ac310=a167_0x17aa,_0x50f70d=_0x3a7a30();while(!![]){try{const _0x25520a=-parseInt(_0x2ac310(0x102))/0x1+-parseInt(_0x2ac310(0x104))/0x2*(parseInt(_0x2ac310(0x109))/0x3)+-parseInt(_0x2ac310(0x107))/0x4*(-parseInt(_0x2ac310(0x100))/0x5)+-parseInt(_0x2ac310(0x105))/0x6*(parseInt(_0x2ac310(0xfa))/0x7)+parseInt(_0x2ac310(0x101))/0x8*(parseInt(_0x2ac310(0xff))/0x9)+parseInt(_0x2ac310(0x103))/0xa*(parseInt(_0x2ac310(0x106))/0xb)+parseInt(_0x2ac310(0xfb))/0xc*(parseInt(_0x2ac310(0xfc))/0xd);if(_0x25520a===_0xf65e89)break;else _0x50f70d['push'](_0x50f70d['shift']());}catch(_0x422f6f){_0x50f70d['push'](_0x50f70d['shift']());}}}(a167_0x52df,0x513a6));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 a167_0x17aa(_0x59723f,_0x3dfa22){_0x59723f=_0x59723f-0xfa;const _0x52dfe9=a167_0x52df();let _0x17aaaa=_0x52dfe9[_0x59723f];return _0x17aaaa;}function a167_0x52df(){const _0x4ad496=['generateCommandHelp','get','18eWJcAv','5LqQWUP','2273808WzARox','129172VfMQNB','10910rhaHOE','28874sGzjSA','442434lBQoFI','3509thSYDc','1183660iwaDgz','generateFullHelp','114fdnpKl','56LjMlcT','4656048VLvGnU','13vHNzGp'];a167_0x52df=function(){return _0x4ad496;};return a167_0x52df();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xc866c=>serviceGroups[a167_0x1ea866(0xfe)](_0xc866c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1e941e){const _0x4c3a8e=a167_0x1ea866;return generators[_0x4c3a8e(0xfd)](_0x1e941e);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a167_0x1ea866(0x108)];
1
+ const a170_0x13d8f3=a170_0x542e;(function(_0x47719c,_0x4625ec){const _0x329ee5=a170_0x542e,_0x30d5a5=_0x47719c();while(!![]){try{const _0x29a7c3=-parseInt(_0x329ee5(0x129))/0x1*(-parseInt(_0x329ee5(0x132))/0x2)+-parseInt(_0x329ee5(0x130))/0x3+-parseInt(_0x329ee5(0x12c))/0x4*(-parseInt(_0x329ee5(0x131))/0x5)+-parseInt(_0x329ee5(0x12f))/0x6*(parseInt(_0x329ee5(0x12a))/0x7)+-parseInt(_0x329ee5(0x12b))/0x8+parseInt(_0x329ee5(0x128))/0x9+parseInt(_0x329ee5(0x133))/0xa*(parseInt(_0x329ee5(0x12e))/0xb);if(_0x29a7c3===_0x4625ec)break;else _0x30d5a5['push'](_0x30d5a5['shift']());}catch(_0xd16059){_0x30d5a5['push'](_0x30d5a5['shift']());}}}(a170_0x1519,0x5b3b0));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x2986d5=>serviceGroups[a170_0x13d8f3(0x126)](_0x2986d5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a170_0x13d8f3(0x12d),'serviceUsageSuffix':a170_0x13d8f3(0x127),'includeWildcardExtraInFullHelp':!![]});function a170_0x542e(_0x8f9c05,_0x239d96){_0x8f9c05=_0x8f9c05-0x123;const _0x1519b8=a170_0x1519();let _0x542e8f=_0x1519b8[_0x8f9c05];return _0x542e8f;}export function generateCommandHelp(_0x2ba8fb){const _0x24fffe=a170_0x13d8f3;return generators[_0x24fffe(0x124)](_0x2ba8fb);}export const generateServiceHelp=generators[a170_0x13d8f3(0x123)];function a170_0x1519(){const _0x2e2d88=['10TibmQk','generateServiceHelp','generateCommandHelp','generateFullHelp','get','\x20[args]\x20[flags]','6313977XejwZZ','2903UerUbP','21CFqloF','5451832nhNSDI','4vpUSBZ','\x20project\x20init`\x20or\x20--appcode).','10096372LIEZbw','1358454QmOyWw','1537584SsTpqB','118425BLAHxY','416iWiana'];a170_0x1519=function(){return _0x2e2d88;};return a170_0x1519();}export const generateFullHelp=generators[a170_0x13d8f3(0x125)];
@@ -1 +1 @@
1
- (function(_0x5ae364,_0x189dc1){var _0x2e7eff=a168_0x54c1,_0x3fd020=_0x5ae364();while(!![]){try{var _0x2beabf=-parseInt(_0x2e7eff(0x1a3))/0x1*(-parseInt(_0x2e7eff(0x1a4))/0x2)+-parseInt(_0x2e7eff(0x1a7))/0x3+parseInt(_0x2e7eff(0x1a2))/0x4+-parseInt(_0x2e7eff(0x1a6))/0x5*(parseInt(_0x2e7eff(0x1a1))/0x6)+-parseInt(_0x2e7eff(0x1a5))/0x7+parseInt(_0x2e7eff(0x1a0))/0x8+parseInt(_0x2e7eff(0x19f))/0x9*(-parseInt(_0x2e7eff(0x1a8))/0xa);if(_0x2beabf===_0x189dc1)break;else _0x3fd020['push'](_0x3fd020['shift']());}catch(_0x3c8bda){_0x3fd020['push'](_0x3fd020['shift']());}}}(a168_0x1371,0x271bb));function a168_0x54c1(_0x159937,_0x3f3b78){_0x159937=_0x159937-0x19f;var _0x137169=a168_0x1371();var _0x54c11e=_0x137169[_0x159937];return _0x54c11e;}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';function a168_0x1371(){var _0x5364ca=['13074iOnmEp','937960ARjWCf','288VQbLtk','308nIqiXL','522571jCIkjE','210nURxBO','103071djjMOn','10RfQOOk','654363RECNni','1236640ryVrdK'];a168_0x1371=function(){return _0x5364ca;};return a168_0x1371();}export{riskLevelOrder}from'../framework/types.js';
1
+ function a171_0x277a(_0x58085,_0x4360c7){_0x58085=_0x58085-0x1ac;var _0x1d1158=a171_0x1d11();var _0x277ab7=_0x1d1158[_0x58085];return _0x277ab7;}(function(_0x13a104,_0x287a04){var _0x4cc6a8=a171_0x277a,_0x44861c=_0x13a104();while(!![]){try{var _0x316fd9=-parseInt(_0x4cc6a8(0x1ac))/0x1+parseInt(_0x4cc6a8(0x1af))/0x2+-parseInt(_0x4cc6a8(0x1ae))/0x3+-parseInt(_0x4cc6a8(0x1b1))/0x4*(parseInt(_0x4cc6a8(0x1b3))/0x5)+parseInt(_0x4cc6a8(0x1b0))/0x6*(parseInt(_0x4cc6a8(0x1b2))/0x7)+parseInt(_0x4cc6a8(0x1b4))/0x8*(parseInt(_0x4cc6a8(0x1ad))/0x9)+parseInt(_0x4cc6a8(0x1b5))/0xa;if(_0x316fd9===_0x287a04)break;else _0x44861c['push'](_0x44861c['shift']());}catch(_0x513c9e){_0x44861c['push'](_0x44861c['shift']());}}}(a171_0x1d11,0x5b219));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';function a171_0x1d11(){var _0x4d9f24=['2255350ehdchI','2624DLJaeQ','2531950Npisrp','95013KNEfQl','8361mHZplL','1485948yYGOLy','312508RDCnmt','4203066DkfZqM','4WOkWtR','7jkEAYO'];a171_0x1d11=function(){return _0x4d9f24;};return a171_0x1d11();}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x45d9e2,_0x49af03){const _0x17e0db=a169_0x1465,_0x2ac61c=_0x45d9e2();while(!![]){try{const _0xe570d=-parseInt(_0x17e0db(0x1c3))/0x1+parseInt(_0x17e0db(0x1bc))/0x2*(-parseInt(_0x17e0db(0x1bd))/0x3)+parseInt(_0x17e0db(0x1bb))/0x4*(-parseInt(_0x17e0db(0x1c7))/0x5)+parseInt(_0x17e0db(0x1c0))/0x6*(-parseInt(_0x17e0db(0x1c6))/0x7)+parseInt(_0x17e0db(0x1c8))/0x8+parseInt(_0x17e0db(0x1bf))/0x9*(-parseInt(_0x17e0db(0x1c9))/0xa)+parseInt(_0x17e0db(0x1c1))/0xb;if(_0xe570d===_0x49af03)break;else _0x2ac61c['push'](_0x2ac61c['shift']());}catch(_0x573729){_0x2ac61c['push'](_0x2ac61c['shift']());}}}(a169_0x43ed,0xcf2d0));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a169_0x1465(_0x14503d,_0x2322bd){_0x14503d=_0x14503d-0x1ba;const _0x43edc8=a169_0x43ed();let _0x14658f=_0x43edc8[_0x14503d];return _0x14658f;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0xc9d13a,_0x1f90fc){const _0x3b180e=a169_0x1465,_0x1786c0=_0xc9d13a['_notice'],{_notice:_0x1e12eb,..._0x1e9a9b}=_0xc9d13a;void _0x1e12eb,baseFormatOutput(_0x1e9a9b,_0x1f90fc),_0x1f90fc['format']===_0x3b180e(0x1c5)&&printPrettyNotice(_0x1786c0);}function printPrettyNotice(_0x3c385e){const _0x26ac52=a169_0x1465;if(!_0x3c385e?.[_0x26ac52(0x1be)])return;console[_0x26ac52(0x1c2)](_0x3c385e['update'][_0x26ac52(0x1c4)]+'\x20('+_0x3c385e[_0x26ac52(0x1be)][_0x26ac52(0x1ba)]+')');}function a169_0x43ed(){const _0x34e98b=['message','pretty','679301GIdZBR','5ZvYmMa','8453328EFAzYN','6470Ticdbr','url','3492172WetyLJ','26OsDrOs','123339frtWCk','update','1413qwZbyC','42NTXnOt','25912029digbBJ','error','375321DVNjFy'];a169_0x43ed=function(){return _0x34e98b;};return a169_0x43ed();}
1
+ (function(_0x5f135a,_0x5e511a){const _0x18579b=a172_0x4b90,_0x495e2e=_0x5f135a();while(!![]){try{const _0x3f5e51=-parseInt(_0x18579b(0xd8))/0x1*(parseInt(_0x18579b(0xda))/0x2)+-parseInt(_0x18579b(0xd0))/0x3*(parseInt(_0x18579b(0xd3))/0x4)+-parseInt(_0x18579b(0xd6))/0x5+parseInt(_0x18579b(0xdc))/0x6*(parseInt(_0x18579b(0xcf))/0x7)+-parseInt(_0x18579b(0xd1))/0x8*(parseInt(_0x18579b(0xd5))/0x9)+-parseInt(_0x18579b(0xdd))/0xa+parseInt(_0x18579b(0xd4))/0xb*(parseInt(_0x18579b(0xde))/0xc);if(_0x3f5e51===_0x5e511a)break;else _0x495e2e['push'](_0x495e2e['shift']());}catch(_0x1b500f){_0x495e2e['push'](_0x495e2e['shift']());}}}(a172_0x1d25,0xe013e));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a172_0x1d25(){const _0x5c7d60=['3596146QAWFjv','format','64554jNOdqB','14594010YVxRXb','33583164RzuXzQ','175VYgtvt','3575031kHEaaj','478376RwHlzs','pretty','4VMjopj','33YEaeyZ','243KpbCyf','8416370DoCYGz','message','1EoPOgO','update'];a172_0x1d25=function(){return _0x5c7d60;};return a172_0x1d25();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x534139,_0x298083){const _0x5decdd=a172_0x4b90,_0x355b6e=_0x534139['_notice'],{_notice:_0x22df85,..._0x351d0d}=_0x534139;void _0x22df85,baseFormatOutput(_0x351d0d,_0x298083),_0x298083[_0x5decdd(0xdb)]===_0x5decdd(0xd2)&&printPrettyNotice(_0x355b6e);}function a172_0x4b90(_0x5ae380,_0x5acc41){_0x5ae380=_0x5ae380-0xcf;const _0x1d25fc=a172_0x1d25();let _0x4b9001=_0x1d25fc[_0x5ae380];return _0x4b9001;}function printPrettyNotice(_0x5cf75d){const _0xc8f756=a172_0x4b90;if(!_0x5cf75d?.[_0xc8f756(0xd9)])return;console['error'](_0x5cf75d['update'][_0xc8f756(0xd7)]+'\x20('+_0x5cf75d[_0xc8f756(0xd9)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x4c6508,_0x51ddfb){var _0x180d92=a170_0xba8d,_0x9aeb57=_0x4c6508();while(!![]){try{var _0x2cba0c=parseInt(_0x180d92(0x189))/0x1+-parseInt(_0x180d92(0x184))/0x2+parseInt(_0x180d92(0x186))/0x3*(-parseInt(_0x180d92(0x183))/0x4)+parseInt(_0x180d92(0x18c))/0x5*(parseInt(_0x180d92(0x188))/0x6)+-parseInt(_0x180d92(0x185))/0x7*(parseInt(_0x180d92(0x18b))/0x8)+-parseInt(_0x180d92(0x18a))/0x9+parseInt(_0x180d92(0x187))/0xa;if(_0x2cba0c===_0x51ddfb)break;else _0x9aeb57['push'](_0x9aeb57['shift']());}catch(_0x59f7f3){_0x9aeb57['push'](_0x9aeb57['shift']());}}}(a170_0x256c,0x9ca1b));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0xba8d(_0x50655d,_0x452f44){_0x50655d=_0x50655d-0x183;var _0x256c84=a170_0x256c();var _0xba8d47=_0x256c84[_0x50655d];return _0xba8d47;}function a170_0x256c(){var _0x323b25=['276444kzBvZJ','1260396BfOkJY','184luTiiq','2800bryCai','3607028gvtBls','1480184zzyDlv','374318lXEhjT','3BxLEYM','30969140ItyfAy','3000NJkLQP'];a170_0x256c=function(){return _0x323b25;};return a170_0x256c();}
1
+ (function(_0x235a50,_0x30c3fa){var _0x54870d=a173_0x4d2d,_0x20c4d9=_0x235a50();while(!![]){try{var _0xe8f691=-parseInt(_0x54870d(0x1b2))/0x1+parseInt(_0x54870d(0x1b5))/0x2+-parseInt(_0x54870d(0x1b7))/0x3+-parseInt(_0x54870d(0x1b1))/0x4+parseInt(_0x54870d(0x1b4))/0x5*(parseInt(_0x54870d(0x1b6))/0x6)+parseInt(_0x54870d(0x1b3))/0x7*(parseInt(_0x54870d(0x1af))/0x8)+-parseInt(_0x54870d(0x1b8))/0x9*(parseInt(_0x54870d(0x1b0))/0xa);if(_0xe8f691===_0x30c3fa)break;else _0x20c4d9['push'](_0x20c4d9['shift']());}catch(_0x271e39){_0x20c4d9['push'](_0x20c4d9['shift']());}}}(a173_0x3f9e,0xa4209));function a173_0x4d2d(_0xced8b2,_0x1a663b){_0xced8b2=_0xced8b2-0x1af;var _0x3f9e00=a173_0x3f9e();var _0x4d2d15=_0x3f9e00[_0xced8b2];return _0x4d2d15;}function a173_0x3f9e(){var _0x27ee02=['8VTumFt','129650TGkUWz','3277724rvJQDr','966037FQMlHi','6235159qdtIwv','705QiBfYa','2478882vKDhQg','42318MLgrxl','911694UoUZqN','252jIYirI'];a173_0x3f9e=function(){return _0x27ee02;};return a173_0x3f9e();}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x21aa03,_0x3c1958){const _0x2334c8=a171_0x1126,_0x4c1e0a=_0x21aa03();while(!![]){try{const _0x15422c=parseInt(_0x2334c8(0x1a4))/0x1*(-parseInt(_0x2334c8(0x1ac))/0x2)+parseInt(_0x2334c8(0x1a9))/0x3*(parseInt(_0x2334c8(0x199))/0x4)+parseInt(_0x2334c8(0x19b))/0x5*(parseInt(_0x2334c8(0x193))/0x6)+-parseInt(_0x2334c8(0x19e))/0x7*(-parseInt(_0x2334c8(0x198))/0x8)+parseInt(_0x2334c8(0x1aa))/0x9*(parseInt(_0x2334c8(0x19c))/0xa)+-parseInt(_0x2334c8(0x195))/0xb*(parseInt(_0x2334c8(0x1a2))/0xc)+-parseInt(_0x2334c8(0x1a7))/0xd;if(_0x15422c===_0x3c1958)break;else _0x4c1e0a['push'](_0x4c1e0a['shift']());}catch(_0x3c3039){_0x4c1e0a['push'](_0x4c1e0a['shift']());}}}(a171_0x432f,0x71c51));function a171_0x432f(){const _0x3fc3bc=['name','761774jreJEX','No\x20api.ts\x20found\x20in\x20','2283rTjBUi','4378896TkcyRF','length','36412XXrMKC','\x20api\x20pull`\x20first.','some','102glNHPC','code','5038847kKorwN','.\x20Run\x20`','`\x20requires\x20either\x20--code\x20or\x20--alias.','8WsqMXf','1016jZWYIM','join','64115RUiCgF','10aOakCO','string','4672073yfMiyJ','\x22.\x20','alias','validation','12ivjhWT','map','32tvwWff','flags'];a171_0x432f=function(){return _0x3fc3bc;};return a171_0x432f();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a171_0x1126(_0x5881df,_0x5252ac){_0x5881df=_0x5881df-0x192;const _0x432faf=a171_0x432f();let _0x112653=_0x432faf[_0x5881df];return _0x112653;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x2c6523,_0x45e74b,_0x2968c8,_0x169269){const _0x2f3ae4=a171_0x1126,_0x31e26d=_0x2c6523[_0x2f3ae4(0x1a5)][_0x2f3ae4(0x192)](_0x458846=>_0x458846[_0x2f3ae4(0x1a6)]===_0x2f3ae4(0x194)&&_0x458846['type']==='string'),_0x1517fa=_0x2c6523[_0x2f3ae4(0x1a5)]['some'](_0x19e816=>_0x19e816[_0x2f3ae4(0x1a6)]===_0x2f3ae4(0x1a0)&&_0x19e816['type']===_0x2f3ae4(0x19d));if(!_0x31e26d||!_0x1517fa)return;const _0x99886=_0x45e74b[_0x2f3ae4(0x194)]?String(_0x45e74b[_0x2f3ae4(0x194)]):'',_0x2c3978=_0x45e74b[_0x2f3ae4(0x1a0)]?String(_0x45e74b[_0x2f3ae4(0x1a0)]):'';if(!_0x99886&&!_0x2c3978)throw CliErrors['validation']('`'+_0x169269+_0x2f3ae4(0x197));if(_0x2c3978&&!_0x99886){const _0x3631d2=resolveAlias(_0x2968c8,_0x2c3978);if(!_0x3631d2){const _0x2d24d1=listAliases(_0x2968c8)[_0x2f3ae4(0x1a3)](_0x255496=>_0x255496[_0x2f3ae4(0x1a0)]),_0x58d6e2=_0x2d24d1[_0x2f3ae4(0x1ab)]?'Available\x20aliases:\x20'+_0x2d24d1[_0x2f3ae4(0x19a)](',\x20'):_0x2f3ae4(0x1a8)+_0x2968c8+_0x2f3ae4(0x196)+CLI_BIN_NAME+_0x2f3ae4(0x1ad);throw CliErrors[_0x2f3ae4(0x1a1)]('Unknown\x20alias\x20\x22'+_0x2c3978+_0x2f3ae4(0x19f)+_0x58d6e2);}_0x45e74b[_0x2f3ae4(0x194)]=_0x3631d2;}}
1
+ (function(_0x3c75b6,_0x19f33c){const _0x1df07c=a174_0x1bbf,_0x259ff1=_0x3c75b6();while(!![]){try{const _0x58806d=-parseInt(_0x1df07c(0x125))/0x1+parseInt(_0x1df07c(0x122))/0x2*(parseInt(_0x1df07c(0x129))/0x3)+parseInt(_0x1df07c(0x11d))/0x4*(parseInt(_0x1df07c(0x133))/0x5)+-parseInt(_0x1df07c(0x121))/0x6*(-parseInt(_0x1df07c(0x12f))/0x7)+-parseInt(_0x1df07c(0x135))/0x8+-parseInt(_0x1df07c(0x12e))/0x9+parseInt(_0x1df07c(0x134))/0xa*(parseInt(_0x1df07c(0x12d))/0xb);if(_0x58806d===_0x19f33c)break;else _0x259ff1['push'](_0x259ff1['shift']());}catch(_0xff51ff){_0x259ff1['push'](_0x259ff1['shift']());}}}(a174_0x5084,0x922c2));function a174_0x5084(){const _0x2ae554=['3374379hBonrT','994ivwNLB','join','.\x20Run\x20`','type','17585TwjajK','13960gcIrlt','6994016KLZlaC','map','1332mMpQSH','some','flags','validation','5958keZUMW','61668WroJhm','code','alias','1079136IUolPg','\x22.\x20','string','Unknown\x20alias\x20\x22','27RFoBgg','name','No\x20api.ts\x20found\x20in\x20','`\x20requires\x20either\x20--code\x20or\x20--alias.','10538pJqwMj'];a174_0x5084=function(){return _0x2ae554;};return a174_0x5084();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a174_0x1bbf(_0x58562e,_0x3449db){_0x58562e=_0x58562e-0x11d;const _0x5084c7=a174_0x5084();let _0x1bbf3d=_0x5084c7[_0x58562e];return _0x1bbf3d;}export function resolveAliasToCode(_0x52a487,_0x1dfa74,_0x40d4d7,_0x562fa9){const _0x6de406=a174_0x1bbf,_0x535c7f=_0x52a487[_0x6de406(0x11f)][_0x6de406(0x11e)](_0x458dfe=>_0x458dfe[_0x6de406(0x12a)]===_0x6de406(0x123)&&_0x458dfe[_0x6de406(0x132)]===_0x6de406(0x127)),_0x1ac06e=_0x52a487[_0x6de406(0x11f)][_0x6de406(0x11e)](_0x54d11a=>_0x54d11a['name']===_0x6de406(0x124)&&_0x54d11a['type']==='string');if(!_0x535c7f||!_0x1ac06e)return;const _0x1ada0b=_0x1dfa74['code']?String(_0x1dfa74[_0x6de406(0x123)]):'',_0x6dab5b=_0x1dfa74[_0x6de406(0x124)]?String(_0x1dfa74[_0x6de406(0x124)]):'';if(!_0x1ada0b&&!_0x6dab5b)throw CliErrors[_0x6de406(0x120)]('`'+_0x562fa9+_0x6de406(0x12c));if(_0x6dab5b&&!_0x1ada0b){const _0x35f0e5=resolveAlias(_0x40d4d7,_0x6dab5b);if(!_0x35f0e5){const _0x4e590a=listAliases(_0x40d4d7)[_0x6de406(0x136)](_0x4290f1=>_0x4290f1[_0x6de406(0x124)]),_0x31cca8=_0x4e590a['length']?'Available\x20aliases:\x20'+_0x4e590a[_0x6de406(0x130)](',\x20'):_0x6de406(0x12b)+_0x40d4d7+_0x6de406(0x131)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors[_0x6de406(0x120)](_0x6de406(0x128)+_0x6dab5b+_0x6de406(0x126)+_0x31cca8);}_0x1dfa74[_0x6de406(0x123)]=_0x35f0e5;}}
@@ -1 +1 @@
1
- const a172_0x1a42f=a172_0x1451;function a172_0x2437(){const _0x5804be=['resolve','appCode','catch','110472LOeKKs','verbose','riskLevel','cookie','currentApp','string','trim','authRequired','pageSize','map','requiresAppCode','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','hasFormat','2877132XKTgHp','cancelled','resolveApiDomain','defaultApp','object','apps','command','isNonInteractive','768030ogdHie','requiresAuth','validation','rawFlags','resolveCookie','⚠\x20\x20High-risk\x20operation:\x20','defaultVerbose','pretty','4355701ORLZAu','9JHHOcE','resolveAppCode','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','name','value','735719LKJxIZ','../core/api-client.js','nonInteractive','filter','schema','High-risk\x20operation\x20`','6gADOLE','LOVRABET_APPCODE','service','appcode','Set\x20appcode\x20via\x20`','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','explicitAppName','_notice','Current\x20resolved\x20appcode\x20is\x20\x22','7363976VTjJzH','format','apiDir','497884WBPHOT','mergedCli'];a172_0x2437=function(){return _0x5804be;};return a172_0x2437();}(function(_0x1436e5,_0x256918){const _0x2bf241=a172_0x1451,_0x50fc4b=_0x1436e5();while(!![]){try{const _0x30565a=-parseInt(_0x2bf241(0xaa))/0x1+parseInt(_0x2bf241(0xbc))/0x2*(parseInt(_0x2bf241(0xb0))/0x3)+-parseInt(_0x2bf241(0x94))/0x4+-parseInt(_0x2bf241(0x9c))/0x5+parseInt(_0x2bf241(0xc1))/0x6+parseInt(_0x2bf241(0xa4))/0x7+-parseInt(_0x2bf241(0xb9))/0x8*(-parseInt(_0x2bf241(0xa5))/0x9);if(_0x30565a===_0x256918)break;else _0x50fc4b['push'](_0x50fc4b['shift']());}catch(_0x438a72){_0x50fc4b['push'](_0x50fc4b['shift']());}}}(a172_0x2437,0x6df7c));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a172_0xdbaa77}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1e1674){const _0x47c603=a172_0x1451;return typeof _0x1e1674===_0x47c603(0xc6)&&_0x1e1674[_0x47c603(0x8d)]()?_0x1e1674['trim']():undefined;}function resolveEnvAppCode(){const _0x8b128=a172_0x1451,_0x20ab42=stringFlag(process.env.RABETBASE_APPCODE);if(_0x20ab42)return{'name':'RABETBASE_APPCODE','value':_0x20ab42};const _0x114ec4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x114ec4)return{'name':_0x8b128(0xb1),'value':_0x114ec4};return undefined;}function a172_0x1451(_0x45b3df,_0x25f1eb){_0x45b3df=_0x45b3df-0x8d;const _0x24374d=a172_0x2437();let _0x1451ec=_0x24374d[_0x45b3df];return _0x1451ec;}function hasExplicitAppCode(_0x148395,_0x4e559c){const _0x53c7cd=a172_0x1451;return!!(stringFlag(_0x148395[_0x53c7cd(0xb3)])||stringFlag(_0x4e559c['appcode']));}function assertEnvAppCodeNotIgnored(_0x19ddc0,_0x20659d,_0x5a5b2b){const _0x37ef71=a172_0x1451;if(!_0x20659d||_0x5a5b2b||_0x19ddc0===_0x20659d[_0x37ef71(0xa9)])return;const _0x4b07e1=_0x19ddc0?_0x37ef71(0xb8)+_0x19ddc0+'\x22.':_0x37ef71(0x92);throw CliErrors[_0x37ef71(0x9e)](_0x20659d[_0x37ef71(0xa8)]+'='+_0x20659d[_0x37ef71(0xa9)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4b07e1+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x20659d[_0x37ef71(0xa8)]+'\x22.'));}export function createPipelineEnv(_0x447821,_0x3d1324,_0x56e7b5=[]){const _0x1fe565=a172_0x1451;return{'rawFlags':_0x3d1324,'args':_0x56e7b5,'resolveAppCode':()=>_0x447821[_0x1fe565(0xbf)],'resolveCookie':()=>_0x447821[_0x1fe565(0xc4)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0xdbaa77(_0x3d1324),'defaultFormat':_0x447821['format'],'defaultPageSize':_0x447821[_0x1fe565(0x8f)],'defaultVerbose':_0x447821[_0x1fe565(0xc2)],'apiDir':_0x447821[_0x1fe565(0xbb)],'riskLevel':_0x447821[_0x1fe565(0xc3)],'selectedAppName':_0x447821[_0x1fe565(0xb6)],'mergedCli':{'defaultApp':_0x447821[_0x1fe565(0x97)],'currentApp':_0x447821[_0x1fe565(0xc5)],'appCode':_0x447821['appCode'],'apps':_0x447821[_0x1fe565(0x99)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x1a42f(0xad)](_0x564a7f=>PIPELINE_FLAG_NAMES['has'](_0x564a7f[a172_0x1a42f(0xa8)]))[a172_0x1a42f(0x90)](({name:_0x1bcb83,type:_0x4b6f0c,description:_0xe87460})=>({'name':_0x1bcb83,'type':_0x4b6f0c,'description':_0xe87460})),'formatOutput':formatOutput,'getCommandLabel'(_0x1b5c7a){const _0x53ec51=a172_0x1a42f;return CLI_BIN_NAME+'\x20'+_0x1b5c7a[_0x53ec51(0xb2)]+'\x20'+_0x1b5c7a[_0x53ec51(0x9a)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3b7164){const _0x59e2d5=a172_0x1a42f;return CliErrors[_0x59e2d5(0x9e)](_0x3b7164);}},async 'prepare'(_0x508f3b,_0x3bc10a,_0xcd1adf,_0x3da0fc){const _0x4ea2eb=a172_0x1a42f,_0x502144=_0x3bc10a['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0x508f3b,_0xcd1adf,_0x502144,_0x3da0fc);let _0x11a577='';if(_0x508f3b[_0x4ea2eb(0x9d)]!==![]){_0x11a577=_0x3bc10a[_0x4ea2eb(0xa0)]();if(!_0x11a577)throw CliErrors[_0x4ea2eb(0x8e)]();const {setActiveCookie:_0x92ac37}=await import(_0x4ea2eb(0xab));_0x92ac37(_0x11a577);}const _0x3ab8b0=_0x3bc10a[_0x4ea2eb(0xa6)]()??'';if(_0x508f3b[_0x4ea2eb(0x91)]!==![]){assertEnvAppCodeNotIgnored(_0x3ab8b0,resolveEnvAppCode(),hasExplicitAppCode(_0xcd1adf,_0x3bc10a[_0x4ea2eb(0x9f)]));if(!_0x3ab8b0)throw CliErrors['configMissing'](_0x4ea2eb(0xb4)+CLI_BIN_NAME+_0x4ea2eb(0xa7));}return{'defaults':{'booleans':{'verbose':_0x3bc10a[_0x4ea2eb(0xa2)]},'numbers':{'pagesize':_0x3bc10a['defaultPageSize']}},'extras':{'appCode':_0x3ab8b0,'cookie':_0x11a577,'apiDomain':_0x3bc10a[_0x4ea2eb(0x96)](),'apiDir':_0x502144,'selectedAppName':_0x3bc10a['selectedAppName'],'mergedCli':_0x3bc10a[_0x4ea2eb(0xbd)]}};},async 'confirmHighRisk'({env:_0x185d80,commandLabel:_0x3ef3fa}){const _0x36db3b=a172_0x1a42f;if(_0x185d80[_0x36db3b(0x9b)])throw CliErrors[_0x36db3b(0x9e)](_0x36db3b(0xaf)+_0x3ef3fa+_0x36db3b(0xb5));await requireConfirmationPrompt({'lines':[_0x36db3b(0xa1)+_0x3ef3fa,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x2a2675=>CliErrors[_0x36db3b(0x95)](_0x2a2675)});},async 'finalize'(){const _0x102650=a172_0x1a42f,{clearActiveCookie:_0x217455}=await import(_0x102650(0xab));_0x217455();}};export async function runCommand(_0x4310ab,_0x7015b3){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4310ab)?withUpdateNotice(_0x4310ab):_0x4310ab,_0x7015b3,runnerAdapter);}function shouldAttachUpdateNotice(_0x3059bf){const _0xa36c65=a172_0x1a42f;if(_0x3059bf[_0xa36c65(0x93)]===![])return![];return!['update',_0xa36c65(0xae),'doctor']['includes'](_0x3059bf[_0xa36c65(0xb2)]);}function withUpdateNotice(_0x44b01c){return{..._0x44b01c,async 'execute'(_0x1833b1){const _0x538daf=a172_0x1451,_0x5f413e=shouldResolveUpdateNotice(_0x1833b1)?resolveLatestUpdateNotice()[_0x538daf(0xc0)](()=>null):Promise[_0x538daf(0xbe)](null),_0x3f14aa=await _0x44b01c['execute'](_0x1833b1);return attachUpdateNotice(_0x3f14aa,await _0x5f413e);}};}function shouldResolveUpdateNotice(_0x2b0b45){const _0x407bcf=a172_0x1a42f;return _0x2b0b45[_0x407bcf(0xba)]===_0x407bcf(0xa3)&&!_0x2b0b45[_0x407bcf(0xac)];}function attachUpdateNotice(_0x3c3a4c,_0x47348b){const _0x921137=a172_0x1a42f;if(!_0x47348b||!_0x3c3a4c||typeof _0x3c3a4c!==_0x921137(0x98))return _0x3c3a4c;const _0x23e82d=_0x3c3a4c,_0x3b5f2d=typeof _0x23e82d[_0x921137(0xb7)]===_0x921137(0x98)&&_0x23e82d[_0x921137(0xb7)]!==null?_0x23e82d[_0x921137(0xb7)]:{};return{..._0x23e82d,'_notice':{..._0x3b5f2d,'update':_0x47348b}};}
1
+ const a175_0x6b5eeb=a175_0xee64;(function(_0x27fc14,_0x5729ec){const _0x1d2436=a175_0xee64,_0x3770f1=_0x27fc14();while(!![]){try{const _0x13f64d=parseInt(_0x1d2436(0x1ca))/0x1*(parseInt(_0x1d2436(0x1b9))/0x2)+-parseInt(_0x1d2436(0x1b6))/0x3+-parseInt(_0x1d2436(0x1af))/0x4*(-parseInt(_0x1d2436(0x1bd))/0x5)+-parseInt(_0x1d2436(0x1be))/0x6*(parseInt(_0x1d2436(0x1b4))/0x7)+parseInt(_0x1d2436(0x1c5))/0x8+parseInt(_0x1d2436(0x1c7))/0x9+-parseInt(_0x1d2436(0x1a4))/0xa;if(_0x13f64d===_0x5729ec)break;else _0x3770f1['push'](_0x3770f1['shift']());}catch(_0xe222b0){_0x3770f1['push'](_0x3770f1['shift']());}}}(a175_0x11a4,0xc0ecc));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a175_0xee64(_0x20b360,_0x4b7942){_0x20b360=_0x20b360-0x1a1;const _0x11a407=a175_0x11a4();let _0xee64a=_0x11a407[_0x20b360];return _0xee64a;}import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';function a175_0x11a4(){const _0x539352=['968870lFxSDV','authRequired','3092013FXTiLB','command','resolve','4Nfpxsq','appCode','Set\x20appcode\x20via\x20`','cookie','190ECplmR','12HaipaW','verbose','currentApp','has','isNonInteractive','none','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','11932320zlkREu','object','2567727RnIgbG','\x20\x20\x20Continue?\x20[y/N]\x20','selectedAppName','425101UJZaua','map','apps','catch','explicitAppName','⚠\x20\x20High-risk\x20operation:\x20','../core/api-client.js','trim','defaultVerbose','pageSize','filter','appcode','hasFormat','_notice','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','validation','apiDir','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','schema','execute','nonInteractive','resolveCookie','RABETBASE_APPCODE','Current\x20resolved\x20appcode\x20is\x20\x22','update','resolveAppCode','14813480BWVoJH','format','defaultPageSize','riskLevel','name','rawFlags','LOVRABET_APPCODE','High-risk\x20operation\x20`','includes','mergedCli','pretty','100212altnhC','requiresAppCode','configMissing','value','defaultApp'];a175_0x11a4=function(){return _0x539352;};return a175_0x11a4();}import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a175_0x34e590}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xc48855){const _0x462a39=a175_0xee64;return typeof _0xc48855==='string'&&_0xc48855[_0x462a39(0x1d1)]()?_0xc48855[_0x462a39(0x1d1)]():undefined;}function resolveEnvAppCode(){const _0x3ab12c=a175_0xee64,_0x257bac=stringFlag(process.env.RABETBASE_APPCODE);if(_0x257bac)return{'name':_0x3ab12c(0x1e0),'value':_0x257bac};const _0x479ec6=stringFlag(process.env.LOVRABET_APPCODE);if(_0x479ec6)return{'name':_0x3ab12c(0x1aa),'value':_0x479ec6};return undefined;}function hasExplicitAppCode(_0x61b8fe,_0x57f372){const _0x2de113=a175_0xee64;return!!(stringFlag(_0x61b8fe[_0x2de113(0x1d5)])||stringFlag(_0x57f372['appcode']));}function assertEnvAppCodeNotIgnored(_0x55b6be,_0x21a2a3,_0x3aa79f){const _0x32f4a7=a175_0xee64;if(!_0x21a2a3||_0x3aa79f||_0x55b6be===_0x21a2a3[_0x32f4a7(0x1b2)])return;const _0x11fa38=_0x55b6be?_0x32f4a7(0x1a1)+_0x55b6be+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x32f4a7(0x1d9)](_0x21a2a3[_0x32f4a7(0x1a8)]+'='+_0x21a2a3[_0x32f4a7(0x1b2)]+_0x32f4a7(0x1db)+_0x11fa38+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x21a2a3[_0x32f4a7(0x1a8)]+'\x22.'));}export function createPipelineEnv(_0x3cb379,_0x1ce34f,_0x544d79=[]){const _0xe9e362=a175_0xee64;return{'rawFlags':_0x1ce34f,'args':_0x544d79,'resolveAppCode':()=>_0x3cb379['appCode'],'resolveCookie':()=>_0x3cb379[_0xe9e362(0x1bc)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a175_0x34e590(_0x1ce34f),'defaultFormat':_0x3cb379['format'],'defaultPageSize':_0x3cb379[_0xe9e362(0x1d3)],'defaultVerbose':_0x3cb379[_0xe9e362(0x1bf)],'apiDir':_0x3cb379['apiDir'],'riskLevel':_0x3cb379[_0xe9e362(0x1a7)],'selectedAppName':_0x3cb379[_0xe9e362(0x1ce)],'mergedCli':{'defaultApp':_0x3cb379[_0xe9e362(0x1b3)],'currentApp':_0x3cb379[_0xe9e362(0x1c0)],'appCode':_0x3cb379[_0xe9e362(0x1ba)],'apps':_0x3cb379[_0xe9e362(0x1cc)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a175_0x6b5eeb(0x1d4)](_0x29dfa8=>PIPELINE_FLAG_NAMES[a175_0x6b5eeb(0x1c1)](_0x29dfa8[a175_0x6b5eeb(0x1a8)]))[a175_0x6b5eeb(0x1cb)](({name:_0x21b44b,type:_0x37fc82,description:_0x3775e1})=>({'name':_0x21b44b,'type':_0x37fc82,'description':_0x3775e1})),'formatOutput':formatOutput,'getCommandLabel'(_0x326990){const _0x17aaa3=a175_0x6b5eeb;return CLI_BIN_NAME+'\x20'+_0x326990['service']+'\x20'+_0x326990[_0x17aaa3(0x1b7)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1f9020){return CliErrors['validation'](_0x1f9020);}},async 'prepare'(_0x16cba7,_0x15539e,_0x19d252,_0xc8fff4){const _0x402bd2=a175_0x6b5eeb,_0x42c953=_0x15539e[_0x402bd2(0x1da)]||DEFAULT_API_DIR;resolveAliasToCode(_0x16cba7,_0x19d252,_0x42c953,_0xc8fff4);const _0x12bf7a=resolveCommandAuthMode(_0x16cba7);let _0x53430a='';if(_0x12bf7a!==_0x402bd2(0x1c3)){_0x53430a=_0x15539e[_0x402bd2(0x1df)]()||'';if(!_0x53430a){if(_0x12bf7a==='required')throw CliErrors[_0x402bd2(0x1b5)]();}else{const {setActiveCookie:_0x3a04e6}=await import(_0x402bd2(0x1d0));_0x3a04e6(_0x53430a);}}const _0x4dd446=_0x15539e[_0x402bd2(0x1a3)]()??'';if(_0x16cba7[_0x402bd2(0x1b0)]!==![]){assertEnvAppCodeNotIgnored(_0x4dd446,resolveEnvAppCode(),hasExplicitAppCode(_0x19d252,_0x15539e[_0x402bd2(0x1a9)]));if(!_0x4dd446)throw CliErrors[_0x402bd2(0x1b1)](_0x402bd2(0x1bb)+CLI_BIN_NAME+_0x402bd2(0x1d8));}return{'defaults':{'booleans':{'verbose':_0x15539e[_0x402bd2(0x1d2)]},'numbers':{'pagesize':_0x15539e[_0x402bd2(0x1a6)]}},'extras':{'appCode':_0x4dd446,'cookie':_0x53430a,'apiDomain':_0x15539e['resolveApiDomain'](),'apiDir':_0x42c953,'selectedAppName':_0x15539e[_0x402bd2(0x1c9)],'mergedCli':_0x15539e[_0x402bd2(0x1ad)]}};},async 'confirmHighRisk'({env:_0x402912,commandLabel:_0x1c8d80}){const _0x416ef7=a175_0x6b5eeb;if(_0x402912[_0x416ef7(0x1c2)])throw CliErrors[_0x416ef7(0x1d9)](_0x416ef7(0x1ab)+_0x1c8d80+_0x416ef7(0x1c4));await requireConfirmationPrompt({'lines':[_0x416ef7(0x1cf)+_0x1c8d80,_0x416ef7(0x1c8)],'createCancelledError':_0x5303f1=>CliErrors['cancelled'](_0x5303f1)});},async 'finalize'(){const {clearActiveCookie:_0x3c09ba}=await import('../core/api-client.js');_0x3c09ba();}};export async function runCommand(_0x11f323,_0x49ac78){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x11f323)?withUpdateNotice(_0x11f323):_0x11f323,_0x49ac78,runnerAdapter);}function shouldAttachUpdateNotice(_0xcd8fed){const _0xabccaf=a175_0x6b5eeb;if(_0xcd8fed[_0xabccaf(0x1d6)]===![])return![];return![_0xabccaf(0x1a2),_0xabccaf(0x1dc),'doctor'][_0xabccaf(0x1ac)](_0xcd8fed['service']);}function withUpdateNotice(_0xd1b0d1){return{..._0xd1b0d1,async 'execute'(_0x332073){const _0xee744c=a175_0xee64,_0x27b243=shouldResolveUpdateNotice(_0x332073)?resolveLatestUpdateNotice()[_0xee744c(0x1cd)](()=>null):Promise[_0xee744c(0x1b8)](null),_0x5cb45d=await _0xd1b0d1[_0xee744c(0x1dd)](_0x332073);return attachUpdateNotice(_0x5cb45d,await _0x27b243);}};}function shouldResolveUpdateNotice(_0x3e3623){const _0x448e42=a175_0x6b5eeb;return _0x3e3623[_0x448e42(0x1a5)]===_0x448e42(0x1ae)&&!_0x3e3623[_0x448e42(0x1de)];}function attachUpdateNotice(_0x540843,_0x395c31){const _0x286d13=a175_0x6b5eeb;if(!_0x395c31||!_0x540843||typeof _0x540843!==_0x286d13(0x1c6))return _0x540843;const _0x13580f=_0x540843,_0x540bfb=typeof _0x13580f[_0x286d13(0x1d7)]===_0x286d13(0x1c6)&&_0x13580f[_0x286d13(0x1d7)]!==null?_0x13580f['_notice']:{};return{..._0x13580f,'_notice':{..._0x540bfb,'update':_0x395c31}};}
@@ -1 +1 @@
1
- (function(_0x7cc78,_0x1461c3){const _0x175aaa=a173_0xd2ee,_0x3f0a4c=_0x7cc78();while(!![]){try{const _0x29ba3f=parseInt(_0x175aaa(0x115))/0x1+-parseInt(_0x175aaa(0x113))/0x2*(parseInt(_0x175aaa(0x110))/0x3)+parseInt(_0x175aaa(0x114))/0x4*(parseInt(_0x175aaa(0x10e))/0x5)+parseInt(_0x175aaa(0x10f))/0x6*(-parseInt(_0x175aaa(0x117))/0x7)+parseInt(_0x175aaa(0x112))/0x8+-parseInt(_0x175aaa(0x111))/0x9+parseInt(_0x175aaa(0x116))/0xa;if(_0x29ba3f===_0x1461c3)break;else _0x3f0a4c['push'](_0x3f0a4c['shift']());}catch(_0x405150){_0x3f0a4c['push'](_0x3f0a4c['shift']());}}}(a173_0xf2e2,0x2bd6a));import{buildSchemaPayload as a173_0x31f2bc}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a173_0xf2e2(){const _0x3c68bb=['14935bRprwe','6TxTegV','177HbcLgc','217359DhAmFU','2758584bZKOeO','2678AhQLNq','180ukGbXV','14721ACEgSs','142670MYnuWx','1578584VYXrtG','../commands/registry.js'];a173_0xf2e2=function(){return _0x3c68bb;};return a173_0xf2e2();}import{getCliVersion}from'../utils/version.js';function a173_0xd2ee(_0x4f6942,_0x25771d){_0x4f6942=_0x4f6942-0x10d;const _0xf2e2b3=a173_0xf2e2();let _0xd2eed8=_0xf2e2b3[_0x4f6942];return _0xd2eed8;}export async function buildSchemaPayload(){const _0x11a3bf=a173_0xd2ee,{serviceRegistry:_0x28ebad,findDefinition:_0x3df56b}=await import(_0x11a3bf(0x10d));return a173_0x31f2bc({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x28ebad,'buildAllFlags':buildAllFlags,'findDefinition':_0x3df56b});}
1
+ (function(_0x463227,_0x554a55){const _0x2cdf30=a176_0x5611,_0x348082=_0x463227();while(!![]){try{const _0x41dff7=-parseInt(_0x2cdf30(0x187))/0x1*(parseInt(_0x2cdf30(0x18b))/0x2)+parseInt(_0x2cdf30(0x18a))/0x3+-parseInt(_0x2cdf30(0x180))/0x4+parseInt(_0x2cdf30(0x189))/0x5*(-parseInt(_0x2cdf30(0x188))/0x6)+parseInt(_0x2cdf30(0x182))/0x7*(-parseInt(_0x2cdf30(0x184))/0x8)+-parseInt(_0x2cdf30(0x186))/0x9*(parseInt(_0x2cdf30(0x185))/0xa)+parseInt(_0x2cdf30(0x181))/0xb;if(_0x41dff7===_0x554a55)break;else _0x348082['push'](_0x348082['shift']());}catch(_0xe325a2){_0x348082['push'](_0x348082['shift']());}}}(a176_0x235a,0xcc464));import{buildSchemaPayload as a176_0x1c412e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a176_0x5611(_0x34a2d9,_0x54fcbe){_0x34a2d9=_0x34a2d9-0x180;const _0x235a7e=a176_0x235a();let _0x561155=_0x235a7e[_0x34a2d9];return _0x561155;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';function a176_0x235a(){const _0x24af26=['../commands/registry.js','664oRucBr','10IasWWu','9444663MrsuMJ','23cMeVGF','7091034QVFrEG','5tcAQiT','2706564oTpRZA','139406GABxDQ','6442808FtLpkf','65551486AWLgJO','48881WgHcUw'];a176_0x235a=function(){return _0x24af26;};return a176_0x235a();}export async function buildSchemaPayload(){const _0x30fabe=a176_0x5611,{serviceRegistry:_0x31633b,findDefinition:_0x44a2fa}=await import(_0x30fabe(0x183));return a176_0x1c412e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x31633b,'buildAllFlags':buildAllFlags,'findDefinition':_0x44a2fa});}
@@ -1 +1 @@
1
- (function(_0x9ca3a,_0x50cefe){var _0x1da6df=a174_0x19e2,_0x7fa580=_0x9ca3a();while(!![]){try{var _0xbba727=parseInt(_0x1da6df(0x1a3))/0x1+-parseInt(_0x1da6df(0x1a2))/0x2*(parseInt(_0x1da6df(0x1a7))/0x3)+parseInt(_0x1da6df(0x19f))/0x4*(-parseInt(_0x1da6df(0x1a6))/0x5)+parseInt(_0x1da6df(0x1a1))/0x6+-parseInt(_0x1da6df(0x1a5))/0x7*(-parseInt(_0x1da6df(0x1a8))/0x8)+-parseInt(_0x1da6df(0x1a4))/0x9*(parseInt(_0x1da6df(0x1a0))/0xa)+parseInt(_0x1da6df(0x1a9))/0xb;if(_0xbba727===_0x50cefe)break;else _0x7fa580['push'](_0x7fa580['shift']());}catch(_0x393206){_0x7fa580['push'](_0x7fa580['shift']());}}}(a174_0x50f2,0xba28e));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a174_0x19e2(_0x4f9951,_0x8fe11){_0x4f9951=_0x4f9951-0x19f;var _0x50f275=a174_0x50f2();var _0x19e240=_0x50f275[_0x4f9951];return _0x19e240;}function a174_0x50f2(){var _0x33e412=['30YiuFpB','2794236ZMofMr','2991546thrXFs','92014GuOqSO','4476870VJSvqV','4006499KuhBBj','65UIiRga','3crqWlx','16bXuqKd','26980547rtZukh','124504TVfzJs'];a174_0x50f2=function(){return _0x33e412;};return a174_0x50f2();}
1
+ (function(_0x43e625,_0x4cca60){var _0x538f10=a177_0xd677,_0x525494=_0x43e625();while(!![]){try{var _0x446e10=-parseInt(_0x538f10(0x124))/0x1+parseInt(_0x538f10(0x123))/0x2+parseInt(_0x538f10(0x127))/0x3*(-parseInt(_0x538f10(0x11d))/0x4)+-parseInt(_0x538f10(0x11e))/0x5*(-parseInt(_0x538f10(0x120))/0x6)+-parseInt(_0x538f10(0x121))/0x7*(parseInt(_0x538f10(0x125))/0x8)+parseInt(_0x538f10(0x11f))/0x9*(parseInt(_0x538f10(0x126))/0xa)+parseInt(_0x538f10(0x122))/0xb;if(_0x446e10===_0x4cca60)break;else _0x525494['push'](_0x525494['shift']());}catch(_0x3a5a4c){_0x525494['push'](_0x525494['shift']());}}}(a177_0x512e,0x4a50a));function a177_0x512e(){var _0x18079a=['2592592tLcgvK','1270JWkwHj','3MNLBqk','108852AfYALb','5sgfAmY','21501XEZKXD','733518xZfvGo','7KFcntM','2018874bWPSRu','912112QVZIRz','409565NWtbPD'];a177_0x512e=function(){return _0x18079a;};return a177_0x512e();}function a177_0xd677(_0x1c9bdc,_0x3f8e84){_0x1c9bdc=_0x1c9bdc-0x11d;var _0x512e8a=a177_0x512e();var _0xd677c=_0x512e8a[_0x1c9bdc];return _0xd677c;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat,commandAllowsOptionalAuth,commandRequiresAuth,formatDeprecatedCommandMessage,resolveCommandAuthMode}from'@lovrabet/cli-framework';