@lovrabet/rabetbase-cli 2.2.4-beta.1 → 2.2.4-beta.3

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 (205) 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.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1a5232,_0x10a132){const _0x5a303e=a148_0x35c8,_0x4bcd80=_0x1a5232();while(!![]){try{const _0x13d9ca=-parseInt(_0x5a303e(0x1f3))/0x1*(-parseInt(_0x5a303e(0x1f9))/0x2)+parseInt(_0x5a303e(0x1f1))/0x3*(-parseInt(_0x5a303e(0x1f2))/0x4)+parseInt(_0x5a303e(0x1f6))/0x5+parseInt(_0x5a303e(0x1fe))/0x6+-parseInt(_0x5a303e(0x1f7))/0x7+-parseInt(_0x5a303e(0x1fc))/0x8*(parseInt(_0x5a303e(0x1f5))/0x9)+parseInt(_0x5a303e(0x1f8))/0xa*(-parseInt(_0x5a303e(0x1fd))/0xb);if(_0x13d9ca===_0x10a132)break;else _0x4bcd80['push'](_0x4bcd80['shift']());}catch(_0x4e7f79){_0x4bcd80['push'](_0x4bcd80['shift']());}}}(a148_0x1f77,0x88d10));function a148_0x1f77(){const _0x3c790c=['digest','177piJaer','62528wDEXdX','137CvnDfx','createHash','12924WreBwI','4347400fCIzOB','4918368mHvIed','907710yuMkbs','13106GHVivQ','utf8','md5','296evIxcM','11nmmTfb','3371844XHxsES','update','hex'];a148_0x1f77=function(){return _0x3c790c;};return a148_0x1f77();}function a148_0x35c8(_0x339e44,_0x506029){_0x339e44=_0x339e44-0x1f1;const _0x1f77a8=a148_0x1f77();let _0x35c8eb=_0x1f77a8[_0x339e44];return _0x35c8eb;}import{readFile}from'node:fs/promises';import a148_0x209cb6 from'node:crypto';export function computeContentHash(_0x2a3ac8){const _0x259ba8=a148_0x35c8;return a148_0x209cb6[_0x259ba8(0x1f4)](_0x259ba8(0x1fb))[_0x259ba8(0x1ff)](_0x2a3ac8)[_0x259ba8(0x201)](_0x259ba8(0x200));}export async function computeFileHash(_0x24352a){const _0x3240f4=a148_0x35c8,_0x1965fd=await readFile(_0x24352a,_0x3240f4(0x1fa));return computeContentHash(_0x1965fd);}
1
+ (function(_0x5bfc84,_0x4a3805){const _0x58de36=a148_0x14fd,_0x4a0c3e=_0x5bfc84();while(!![]){try{const _0x41271b=-parseInt(_0x58de36(0x96))/0x1*(parseInt(_0x58de36(0x99))/0x2)+parseInt(_0x58de36(0x93))/0x3+-parseInt(_0x58de36(0x92))/0x4*(parseInt(_0x58de36(0x8b))/0x5)+-parseInt(_0x58de36(0x94))/0x6+parseInt(_0x58de36(0x8e))/0x7+parseInt(_0x58de36(0x95))/0x8*(parseInt(_0x58de36(0x8d))/0x9)+-parseInt(_0x58de36(0x97))/0xa*(-parseInt(_0x58de36(0x90))/0xb);if(_0x41271b===_0x4a3805)break;else _0x4a0c3e['push'](_0x4a0c3e['shift']());}catch(_0xdcd44c){_0x4a0c3e['push'](_0x4a0c3e['shift']());}}}(a148_0x4e1b,0x9896f));function a148_0x4e1b(){const _0x4d772f=['89090VMAccA','md5','43334HAiOkP','hex','3550cqkhQy','update','9dhsfzP','7259882xJEkZf','digest','187uYzMdf','createHash','392KwXFTD','1192206rVkMai','2166498WqIEbU','3904304CuuiTY','47oSLtMp'];a148_0x4e1b=function(){return _0x4d772f;};return a148_0x4e1b();}import{readFile}from'node:fs/promises';function a148_0x14fd(_0x289a43,_0x20d092){_0x289a43=_0x289a43-0x8a;const _0x4e1bff=a148_0x4e1b();let _0x14fd86=_0x4e1bff[_0x289a43];return _0x14fd86;}import a148_0x431b0d from'node:crypto';export function computeContentHash(_0x31a084){const _0x58371f=a148_0x14fd;return a148_0x431b0d[_0x58371f(0x91)](_0x58371f(0x98))[_0x58371f(0x8c)](_0x31a084)[_0x58371f(0x8f)](_0x58371f(0x8a));}export async function computeFileHash(_0x1f64b4){const _0xf6e251=await readFile(_0x1f64b4,'utf8');return computeContentHash(_0xf6e251);}
@@ -1 +1 @@
1
- (function(_0x3129ac,_0x282ce6){const _0x1c433d=a149_0x4600,_0x367afe=_0x3129ac();while(!![]){try{const _0x494e10=parseInt(_0x1c433d(0xfb))/0x1*(parseInt(_0x1c433d(0x102))/0x2)+parseInt(_0x1c433d(0x105))/0x3+-parseInt(_0x1c433d(0xfe))/0x4*(parseInt(_0x1c433d(0xf0))/0x5)+parseInt(_0x1c433d(0xf3))/0x6*(-parseInt(_0x1c433d(0xf7))/0x7)+-parseInt(_0x1c433d(0xf6))/0x8+parseInt(_0x1c433d(0xf2))/0x9*(parseInt(_0x1c433d(0xfd))/0xa)+parseInt(_0x1c433d(0x101))/0xb;if(_0x494e10===_0x282ce6)break;else _0x367afe['push'](_0x367afe['shift']());}catch(_0x1a838d){_0x367afe['push'](_0x367afe['shift']());}}}(a149_0x3d09,0x52bd6));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a149_0x3d09(){const _0x3ff02e=['4782437ELCyjI','4038fFUZcG','functions','\x22.\x20','523860gIcQSf','stringify','1767460nLZbUY','parse','636147vOgmEa','57282DxTeVn','object','utf8','1825368ehzUDX','105ChpZeM','lastSync','apps','scriptsRoot','15KYpyoL','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','60NelPcZ','4JIulze','ENOENT',':\x20scriptsRoot\x20mismatch\x20—\x20'];a149_0x3d09=function(){return _0x3ff02e;};return a149_0x3d09();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x144742,_0x2dff90,_0x438dc2,_0x157b19){const _0x18788a=a149_0x4600,_0x32696c={'apps':_0x144742[_0x18788a(0xf9)]&&typeof _0x144742[_0x18788a(0xf9)]===_0x18788a(0xf4)?_0x144742['apps']:{}};let _0x5049bb=_0x32696c[_0x18788a(0xf9)][_0x2dff90];if(!_0x5049bb)return _0x5049bb={'scriptsRoot':_0x438dc2,'lastSync':'','functions':{}},_0x32696c[_0x18788a(0xf9)][_0x2dff90]=_0x5049bb,{'lockData':_0x32696c,'appLock':_0x5049bb};if(!_0x5049bb[_0x18788a(0xfa)])_0x5049bb[_0x18788a(0xfa)]=_0x438dc2;else{if(_0x5049bb[_0x18788a(0xfa)]!==_0x438dc2)throw new Error(_0x157b19+_0x18788a(0x100)+('current\x20\x22'+_0x438dc2+'\x22\x20vs\x20lock\x20\x22'+_0x5049bb['scriptsRoot']+_0x18788a(0x104))+_0x18788a(0xfc));}return!_0x5049bb[_0x18788a(0x103)]&&(_0x5049bb[_0x18788a(0x103)]={}),!_0x5049bb[_0x18788a(0xf8)]&&(_0x5049bb[_0x18788a(0xf8)]=''),{'lockData':_0x32696c,'appLock':_0x5049bb};}function a149_0x4600(_0x3e71d5,_0x3aad6f){_0x3e71d5=_0x3e71d5-0xef;const _0x3d09e6=a149_0x3d09();let _0x4600b9=_0x3d09e6[_0x3e71d5];return _0x4600b9;}export async function readBffLockFile(_0x3b5917){const _0x353baa=a149_0x4600;try{const _0x537226=await readFile(_0x3b5917,_0x353baa(0xf5)),_0x2a52b3=JSON[_0x353baa(0xf1)](_0x537226);return{'apps':_0x2a52b3['apps']&&typeof _0x2a52b3['apps']===_0x353baa(0xf4)?_0x2a52b3[_0x353baa(0xf9)]:{}};}catch(_0x3a0449){if(_0x3a0449['code']===_0x353baa(0xff))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x3a0449));}}export async function writeBffLockFile(_0x269f21,_0x326b37){const _0x3d37dd=a149_0x4600;await mkdir(dirname(_0x269f21),{'recursive':!![]}),await writeFile(_0x269f21,JSON[_0x3d37dd(0xef)](_0x326b37,null,0x2),_0x3d37dd(0xf5));}
1
+ (function(_0x45facd,_0x5ea24b){const _0x187f16=a149_0x3fef,_0x4a70d3=_0x45facd();while(!![]){try{const _0x5ebf2b=parseInt(_0x187f16(0x189))/0x1*(parseInt(_0x187f16(0x17d))/0x2)+parseInt(_0x187f16(0x182))/0x3+parseInt(_0x187f16(0x180))/0x4+parseInt(_0x187f16(0x185))/0x5+parseInt(_0x187f16(0x17c))/0x6+parseInt(_0x187f16(0x184))/0x7+-parseInt(_0x187f16(0x176))/0x8*(parseInt(_0x187f16(0x177))/0x9);if(_0x5ebf2b===_0x5ea24b)break;else _0x4a70d3['push'](_0x4a70d3['shift']());}catch(_0x42edb6){_0x4a70d3['push'](_0x4a70d3['shift']());}}}(a149_0x2bb2,0x6080a));import{mkdir,readFile,writeFile}from'node:fs/promises';function a149_0x3fef(_0x455ab7,_0x98838c){_0x455ab7=_0x455ab7-0x175;const _0x2bb269=a149_0x2bb2();let _0x3fef36=_0x2bb269[_0x455ab7];return _0x3fef36;}import{dirname}from'node:path';function a149_0x2bb2(){const _0x45c02a=['1143RTVFKF','functions','ENOENT','code','parse','930150oYUwNm','468iOIXJM','\x22\x20vs\x20lock\x20\x22','object','1877648cyBRLL','utf8','2360622qHgmxF','scriptsRoot','3926202IKqTjm','116360RfxnDf','\x22.\x20',':\x20scriptsRoot\x20mismatch\x20—\x20','apps','3143iMmIqu','stringify','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','147128kVJgEs'];a149_0x2bb2=function(){return _0x45c02a;};return a149_0x2bb2();}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x31ec95,_0x26fb60,_0x145aed,_0x3bde2c){const _0x38d880=a149_0x3fef,_0x3135f4={'apps':_0x31ec95[_0x38d880(0x188)]&&typeof _0x31ec95[_0x38d880(0x188)]===_0x38d880(0x17f)?_0x31ec95[_0x38d880(0x188)]:{}};let _0x2ff13a=_0x3135f4['apps'][_0x26fb60];if(!_0x2ff13a)return _0x2ff13a={'scriptsRoot':_0x145aed,'lastSync':'','functions':{}},_0x3135f4[_0x38d880(0x188)][_0x26fb60]=_0x2ff13a,{'lockData':_0x3135f4,'appLock':_0x2ff13a};if(!_0x2ff13a[_0x38d880(0x183)])_0x2ff13a[_0x38d880(0x183)]=_0x145aed;else{if(_0x2ff13a[_0x38d880(0x183)]!==_0x145aed)throw new Error(_0x3bde2c+_0x38d880(0x187)+('current\x20\x22'+_0x145aed+_0x38d880(0x17e)+_0x2ff13a['scriptsRoot']+_0x38d880(0x186))+_0x38d880(0x175));}return!_0x2ff13a['functions']&&(_0x2ff13a[_0x38d880(0x178)]={}),!_0x2ff13a['lastSync']&&(_0x2ff13a['lastSync']=''),{'lockData':_0x3135f4,'appLock':_0x2ff13a};}export async function readBffLockFile(_0x576f1b){const _0x433bc6=a149_0x3fef;try{const _0x537268=await readFile(_0x576f1b,_0x433bc6(0x181)),_0x5988d1=JSON[_0x433bc6(0x17b)](_0x537268);return{'apps':_0x5988d1[_0x433bc6(0x188)]&&typeof _0x5988d1[_0x433bc6(0x188)]===_0x433bc6(0x17f)?_0x5988d1['apps']:{}};}catch(_0x1ad929){if(_0x1ad929[_0x433bc6(0x17a)]===_0x433bc6(0x179))return null;throw new Error('Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20'+String(_0x1ad929));}}export async function writeBffLockFile(_0x41ea78,_0x1992e9){const _0x40d768=a149_0x3fef;await mkdir(dirname(_0x41ea78),{'recursive':!![]}),await writeFile(_0x41ea78,JSON[_0x40d768(0x18a)](_0x1992e9,null,0x2),'utf8');}
@@ -1 +1 @@
1
- (function(_0x59a217,_0x4c1c50){const _0x3e8e67=a151_0x5c0e,_0x4e4cbb=_0x59a217();while(!![]){try{const _0x51b892=-parseInt(_0x3e8e67(0x14a))/0x1*(-parseInt(_0x3e8e67(0x14b))/0x2)+parseInt(_0x3e8e67(0x14e))/0x3+-parseInt(_0x3e8e67(0x145))/0x4+-parseInt(_0x3e8e67(0x144))/0x5*(-parseInt(_0x3e8e67(0x13e))/0x6)+-parseInt(_0x3e8e67(0x13f))/0x7*(parseInt(_0x3e8e67(0x151))/0x8)+-parseInt(_0x3e8e67(0x143))/0x9+parseInt(_0x3e8e67(0x14c))/0xa*(parseInt(_0x3e8e67(0x148))/0xb);if(_0x51b892===_0x4c1c50)break;else _0x4e4cbb['push'](_0x4e4cbb['shift']());}catch(_0x50c3de){_0x4e4cbb['push'](_0x4e4cbb['shift']());}}}(a151_0x677c,0x32d1f));export function snakeToCamel(_0x13e334){const _0x305d91=a151_0x5c0e;return _0x13e334['toLowerCase']()[_0x305d91(0x146)](/_([a-z])/g,(_0x462b23,_0x4a6dc3)=>_0x4a6dc3[_0x305d91(0x150)]());}export function findHookLocationByRemoteId(_0x710828,_0x5c2ed1){const _0x2e0e11=a151_0x5c0e;if(!_0x5c2ed1)return undefined;for(const _0x2dece2 of Object['values'](_0x710828)){if(_0x2dece2[_0x2e0e11(0x141)]===_0x5c2ed1&&_0x2dece2[_0x2e0e11(0x14f)]&&_0x2dece2[_0x2e0e11(0x14d)]&&_0x2dece2[_0x2e0e11(0x147)])return{'datasetCode':_0x2dece2[_0x2e0e11(0x14f)],'operationType':_0x2dece2['operationType'],'functionNode':_0x2dece2[_0x2e0e11(0x147)]};}return undefined;}function a151_0x677c(){const _0x4a8952=['after','remoteId','toLowerCase','101637KlwOxl','10XZAWzL','934308IHgdUn','replace','functionNode','774378louBxY','trim','38567NzekCG','8XBHEGW','20kckdIx','operationType','150675hQBrNn','datasetCode','toUpperCase','288MRChbA','match','test','577128swmiWB','16457mcYrCm'];a151_0x677c=function(){return _0x4a8952;};return a151_0x677c();}export function extractScriptDescription(_0x26a23e){const _0x572ea0=a151_0x5c0e,_0x30b2d4=_0x26a23e[_0x572ea0(0x13c)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x30b2d4?.[0x1]?.[_0x572ea0(0x149)]()||undefined;}function a151_0x5c0e(_0x2e2a98,_0x5a7684){_0x2e2a98=_0x2e2a98-0x13c;const _0x677c5f=a151_0x677c();let _0x5c0e0d=_0x677c5f[_0x2e2a98];return _0x5c0e0d;}export function isValidBffFunctionName(_0x1a2121){const _0x3b282c=a151_0x5c0e;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x3b282c(0x13d)](_0x1a2121);}export function normalizeHookFunctionNode(_0x204a27){const _0x1712f6=a151_0x5c0e;if(!_0x204a27)return undefined;const _0x4011bf=_0x204a27[_0x1712f6(0x149)]()[_0x1712f6(0x142)]();if(_0x4011bf==='before'||_0x4011bf===_0x1712f6(0x140))return _0x4011bf;return undefined;}
1
+ (function(_0x4342e7,_0x18de2b){const _0x34b00d=a151_0x1ec3,_0x4bf4d6=_0x4342e7();while(!![]){try{const _0x1aa5fc=parseInt(_0x34b00d(0x1ad))/0x1+-parseInt(_0x34b00d(0x1a6))/0x2*(-parseInt(_0x34b00d(0x19c))/0x3)+-parseInt(_0x34b00d(0x1a2))/0x4+-parseInt(_0x34b00d(0x1a8))/0x5+parseInt(_0x34b00d(0x1a9))/0x6*(parseInt(_0x34b00d(0x1a0))/0x7)+-parseInt(_0x34b00d(0x1a3))/0x8*(-parseInt(_0x34b00d(0x1aa))/0x9)+-parseInt(_0x34b00d(0x19d))/0xa;if(_0x1aa5fc===_0x18de2b)break;else _0x4bf4d6['push'](_0x4bf4d6['shift']());}catch(_0x38ed22){_0x4bf4d6['push'](_0x4bf4d6['shift']());}}}(a151_0x20ca,0x90cc4));export function snakeToCamel(_0x64bf44){const _0x53efed=a151_0x1ec3;return _0x64bf44[_0x53efed(0x19f)]()[_0x53efed(0x1af)](/_([a-z])/g,(_0xed0b1f,_0x58056e)=>_0x58056e['toUpperCase']());}function a151_0x20ca(){const _0x3a6b17=['9rNvXvp','datasetCode','test','204910cRiNqt','after','replace','trim','2700oRLUGX','9729620znpNRb','match','toLowerCase','91qZmlII','remoteId','1577468XRiHKk','8019016TwAdfw','operationType','before','1762XHNBPv','functionNode','5799880QTttez','517020fEndjF'];a151_0x20ca=function(){return _0x3a6b17;};return a151_0x20ca();}export function findHookLocationByRemoteId(_0xe6b5c6,_0x3ba163){const _0x23fdd5=a151_0x1ec3;if(!_0x3ba163)return undefined;for(const _0x419412 of Object['values'](_0xe6b5c6)){if(_0x419412[_0x23fdd5(0x1a1)]===_0x3ba163&&_0x419412[_0x23fdd5(0x1ab)]&&_0x419412[_0x23fdd5(0x1a4)]&&_0x419412[_0x23fdd5(0x1a7)])return{'datasetCode':_0x419412[_0x23fdd5(0x1ab)],'operationType':_0x419412[_0x23fdd5(0x1a4)],'functionNode':_0x419412[_0x23fdd5(0x1a7)]};}return undefined;}export function extractScriptDescription(_0x5eb948){const _0x5ae8a=a151_0x1ec3,_0x2b4ba0=_0x5eb948[_0x5ae8a(0x19e)](/\[\s*脚本描述\s*]\s*(.+)/);return _0x2b4ba0?.[0x1]?.[_0x5ae8a(0x19b)]()||undefined;}export function isValidBffFunctionName(_0x59a7d4){const _0x501814=a151_0x1ec3;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x501814(0x1ac)](_0x59a7d4);}function a151_0x1ec3(_0x36adf8,_0x2d9d88){_0x36adf8=_0x36adf8-0x19b;const _0x20caf8=a151_0x20ca();let _0x1ec395=_0x20caf8[_0x36adf8];return _0x1ec395;}export function normalizeHookFunctionNode(_0x776c63){const _0x25057f=a151_0x1ec3;if(!_0x776c63)return undefined;const _0xf5d455=_0x776c63[_0x25057f(0x19b)]()['toLowerCase']();if(_0xf5d455===_0x25057f(0x1a5)||_0xf5d455===_0x25057f(0x1ae))return _0xf5d455;return undefined;}
@@ -1 +1 @@
1
- (function(_0x4333b3,_0x8828b5){const _0x1874f2=a152_0x5f39,_0x568399=_0x4333b3();while(!![]){try{const _0x90722f=-parseInt(_0x1874f2(0x141))/0x1+-parseInt(_0x1874f2(0x147))/0x2*(parseInt(_0x1874f2(0x13b))/0x3)+parseInt(_0x1874f2(0x14c))/0x4+-parseInt(_0x1874f2(0x136))/0x5*(parseInt(_0x1874f2(0x13e))/0x6)+parseInt(_0x1874f2(0x132))/0x7*(parseInt(_0x1874f2(0x14d))/0x8)+parseInt(_0x1874f2(0x137))/0x9*(-parseInt(_0x1874f2(0x138))/0xa)+parseInt(_0x1874f2(0x143))/0xb*(parseInt(_0x1874f2(0x13d))/0xc);if(_0x90722f===_0x8828b5)break;else _0x568399['push'](_0x568399['shift']());}catch(_0x433b75){_0x568399['push'](_0x568399['shift']());}}}(a152_0x5c8a,0x429be));function a152_0x5c8a(){const _0x515aa7=['db-','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','1847336jNHYJl','1187280waYaSU','toLowerCase','filter','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','entries','has','map','dbtableConfig','.\x20Be\x20more\x20specific.','21SqRDJt','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','get','join','5PCAmpY','17586cWNJQs','980xhbYEj','find','dbId','51otONXU','\x22.\x20Available:\x20','300HpEDIM','2375112xpNJja','No\x20database\x20matching\x20\x22','length','227195IbHOim','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','169730KlCeIW','dbName','includes','set','24170SoJsfG','\x22\x20under\x20app\x20\x22','\x22\x20matches\x20multiple\x20databases:\x20'];a152_0x5c8a=function(){return _0x515aa7;};return a152_0x5c8a();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x2ec19e){const _0x1afcc6=a152_0x5f39;if(cache[_0x1afcc6(0x12e)](_0x2ec19e))return cache[_0x1afcc6(0x134)](_0x2ec19e);const _0x39d2fb=await listDatasets(_0x2ec19e),_0x24436a=new Map();for(const _0x2c8cb8 of _0x39d2fb){const _0xeff64c=_0x2c8cb8[_0x1afcc6(0x130)];_0xeff64c?.['dbId']!=null&&_0x24436a[_0x1afcc6(0x146)](_0xeff64c[_0x1afcc6(0x13a)],_0xeff64c[_0x1afcc6(0x144)]??_0x1afcc6(0x14a)+_0xeff64c['dbId']);}const _0x30617d=[..._0x24436a[_0x1afcc6(0x12d)]()][_0x1afcc6(0x12f)](([_0x2e48ef,_0x3c9129])=>({'dbId':_0x2e48ef,'dbName':_0x3c9129}));return cache['set'](_0x2ec19e,_0x30617d),_0x30617d;}export async function resolveDb(_0x23a48e,_0x387773){const _0x4f7ecc=a152_0x5f39,_0x389e07=await listDatabases(_0x23a48e);if(_0x389e07['length']===0x0)return{'resolved':[],'error':_0x4f7ecc(0x133)+_0x23a48e+_0x4f7ecc(0x14b)};if(!_0x387773)return{'resolved':_0x389e07};const _0x539bf2=Number(_0x387773);if(!Number['isNaN'](_0x539bf2)){const _0x49f710=_0x389e07['find'](_0x5d6232=>_0x5d6232[_0x4f7ecc(0x13a)]===_0x539bf2);if(_0x49f710)return{'resolved':[_0x49f710]};}const _0x3bf9b6=_0x387773[_0x4f7ecc(0x12a)](),_0x520f33=_0x389e07[_0x4f7ecc(0x12b)](_0x40776d=>_0x40776d[_0x4f7ecc(0x144)][_0x4f7ecc(0x12a)]()[_0x4f7ecc(0x145)](_0x3bf9b6));if(_0x520f33[_0x4f7ecc(0x140)]>0x0)return{'resolved':_0x520f33};const _0x5a1094=_0x389e07['map'](_0x1fe5df=>_0x1fe5df['dbName']+'\x20('+_0x1fe5df[_0x4f7ecc(0x13a)]+')')['join'](',\x20');return{'resolved':[],'error':_0x4f7ecc(0x13f)+_0x387773+_0x4f7ecc(0x148)+_0x23a48e+_0x4f7ecc(0x13c)+_0x5a1094+_0x4f7ecc(0x12c)};}function a152_0x5f39(_0x466cd9,_0x280d50){_0x466cd9=_0x466cd9-0x12a;const _0x5c8a8a=a152_0x5c8a();let _0x5f390b=_0x5c8a8a[_0x466cd9];return _0x5f390b;}export async function resolveOneDb(_0x5dca76,_0x1d3293){const _0x3534a0=a152_0x5f39,{resolved:_0x53f15c,error:_0x50ffc1}=await resolveDb(_0x5dca76,_0x1d3293);if(_0x50ffc1)return{'db':null,'error':_0x50ffc1};if(_0x53f15c[_0x3534a0(0x140)]===0x1)return{'db':_0x53f15c[0x0]};if(!_0x1d3293){const _0x2e5cbb=_0x53f15c[_0x3534a0(0x12f)](_0x48c5c6=>_0x48c5c6[_0x3534a0(0x144)]+'\x20('+_0x48c5c6['dbId']+')')['join'](',\x20');return{'db':null,'error':_0x3534a0(0x142)+_0x2e5cbb};}const _0x1c3253=_0x53f15c[_0x3534a0(0x12f)](_0x19dcb1=>_0x19dcb1['dbName']+'\x20('+_0x19dcb1['dbId']+')')[_0x3534a0(0x135)](',\x20');return{'db':null,'error':'\x22'+_0x1d3293+_0x3534a0(0x149)+_0x1c3253+_0x3534a0(0x131)};}export async function getDbName(_0x4a6168,_0x346f3f){const _0xc5831f=a152_0x5f39,_0x561401=await listDatabases(_0x4a6168);return _0x561401[_0xc5831f(0x139)](_0x3d9ea0=>_0x3d9ea0[_0xc5831f(0x13a)]===_0x346f3f)?.[_0xc5831f(0x144)];}
1
+ (function(_0x2330d4,_0x32698f){const _0x40025e=a152_0x51be,_0x263625=_0x2330d4();while(!![]){try{const _0x15d5e0=-parseInt(_0x40025e(0x90))/0x1*(parseInt(_0x40025e(0x96))/0x2)+-parseInt(_0x40025e(0x98))/0x3*(-parseInt(_0x40025e(0x85))/0x4)+parseInt(_0x40025e(0x8e))/0x5*(-parseInt(_0x40025e(0x92))/0x6)+parseInt(_0x40025e(0x87))/0x7+-parseInt(_0x40025e(0x83))/0x8+-parseInt(_0x40025e(0x8b))/0x9*(parseInt(_0x40025e(0x88))/0xa)+parseInt(_0x40025e(0x9a))/0xb;if(_0x15d5e0===_0x32698f)break;else _0x263625['push'](_0x263625['shift']());}catch(_0x471ddd){_0x263625['push'](_0x263625['shift']());}}}(a152_0x1f29,0xe99d9));function a152_0x1f29(){const _0x106155=['325452NRqaBR','dbName','96lbvKKf','dbId','25160366zZwKPb','find','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','\x22\x20under\x20app\x20\x22','.\x20Be\x20more\x20specific.','get','No\x20database\x20matching\x20\x22','entries','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','328800YURyDV','filter','38672zlRETI','map','5163690hjJSrB','2620aMXmdI','isNaN','dbtableConfig','40752LJnFfK','length','set','705215NkphZh','\x22.\x20Available:\x20','1Ppjcly','toLowerCase','42CatDkP','includes','has','join'];a152_0x1f29=function(){return _0x106155;};return a152_0x1f29();}function a152_0x51be(_0x54bc31,_0x2e3c05){_0x54bc31=_0x54bc31-0x7f;const _0x1f2922=a152_0x1f29();let _0x51befb=_0x1f2922[_0x54bc31];return _0x51befb;}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5c1fbb){const _0xcfbbe5=a152_0x51be;if(cache[_0xcfbbe5(0x94)](_0x5c1fbb))return cache[_0xcfbbe5(0x9f)](_0x5c1fbb);const _0x401db4=await listDatasets(_0x5c1fbb),_0x5b414e=new Map();for(const _0x581b51 of _0x401db4){const _0x57bfa0=_0x581b51[_0xcfbbe5(0x8a)];_0x57bfa0?.['dbId']!=null&&_0x5b414e[_0xcfbbe5(0x8d)](_0x57bfa0[_0xcfbbe5(0x99)],_0x57bfa0[_0xcfbbe5(0x97)]??'db-'+_0x57bfa0[_0xcfbbe5(0x99)]);}const _0x538676=[..._0x5b414e[_0xcfbbe5(0x80)]()][_0xcfbbe5(0x86)](([_0x5bc4b1,_0x571092])=>({'dbId':_0x5bc4b1,'dbName':_0x571092}));return cache['set'](_0x5c1fbb,_0x538676),_0x538676;}export async function resolveDb(_0xaaab60,_0x235188){const _0x3aea87=a152_0x51be,_0x360ce5=await listDatabases(_0xaaab60);if(_0x360ce5[_0x3aea87(0x8c)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0xaaab60+_0x3aea87(0x82)};if(!_0x235188)return{'resolved':_0x360ce5};const _0x3f060b=Number(_0x235188);if(!Number[_0x3aea87(0x89)](_0x3f060b)){const _0x47b2d5=_0x360ce5[_0x3aea87(0x9b)](_0x37121e=>_0x37121e[_0x3aea87(0x99)]===_0x3f060b);if(_0x47b2d5)return{'resolved':[_0x47b2d5]};}const _0x3b3a3b=_0x235188[_0x3aea87(0x91)](),_0x2a0abc=_0x360ce5[_0x3aea87(0x84)](_0x461bb9=>_0x461bb9[_0x3aea87(0x97)][_0x3aea87(0x91)]()[_0x3aea87(0x93)](_0x3b3a3b));if(_0x2a0abc[_0x3aea87(0x8c)]>0x0)return{'resolved':_0x2a0abc};const _0x118ef2=_0x360ce5[_0x3aea87(0x86)](_0x186f18=>_0x186f18[_0x3aea87(0x97)]+'\x20('+_0x186f18[_0x3aea87(0x99)]+')')[_0x3aea87(0x95)](',\x20');return{'resolved':[],'error':_0x3aea87(0x7f)+_0x235188+_0x3aea87(0x9d)+_0xaaab60+_0x3aea87(0x8f)+_0x118ef2+_0x3aea87(0x9c)};}export async function resolveOneDb(_0x571cb1,_0x3822e3){const _0xa21555=a152_0x51be,{resolved:_0x422464,error:_0x1d4810}=await resolveDb(_0x571cb1,_0x3822e3);if(_0x1d4810)return{'db':null,'error':_0x1d4810};if(_0x422464['length']===0x1)return{'db':_0x422464[0x0]};if(!_0x3822e3){const _0x38d485=_0x422464[_0xa21555(0x86)](_0x2b6eea=>_0x2b6eea['dbName']+'\x20('+_0x2b6eea['dbId']+')')['join'](',\x20');return{'db':null,'error':_0xa21555(0x81)+_0x38d485};}const _0x11e77c=_0x422464[_0xa21555(0x86)](_0x2b86c7=>_0x2b86c7[_0xa21555(0x97)]+'\x20('+_0x2b86c7['dbId']+')')[_0xa21555(0x95)](',\x20');return{'db':null,'error':'\x22'+_0x3822e3+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x11e77c+_0xa21555(0x9e)};}export async function getDbName(_0x14206c,_0x59355a){const _0x322dd3=a152_0x51be,_0x55f4f9=await listDatabases(_0x14206c);return _0x55f4f9['find'](_0x25da39=>_0x25da39[_0x322dd3(0x99)]===_0x59355a)?.['dbName'];}
@@ -1 +1 @@
1
- const a153_0x2f2cda=a153_0x2761;(function(_0x51aa16,_0x3160b3){const _0x4a4ad5=a153_0x2761,_0x1db022=_0x51aa16();while(!![]){try{const _0x102dd8=parseInt(_0x4a4ad5(0x10c))/0x1*(-parseInt(_0x4a4ad5(0x110))/0x2)+parseInt(_0x4a4ad5(0x10e))/0x3*(-parseInt(_0x4a4ad5(0x115))/0x4)+-parseInt(_0x4a4ad5(0x113))/0x5+parseInt(_0x4a4ad5(0x10f))/0x6+-parseInt(_0x4a4ad5(0x108))/0x7+-parseInt(_0x4a4ad5(0x10d))/0x8+parseInt(_0x4a4ad5(0x10b))/0x9;if(_0x102dd8===_0x3160b3)break;else _0x1db022['push'](_0x1db022['shift']());}catch(_0x40ab56){_0x1db022['push'](_0x1db022['shift']());}}}(a153_0x5ef3,0xd897d));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a153_0x5ef3(){const _0x71171d=['148WwcTOs','appPagesDir','7513156SbamIA','toUpperCase','.json','54611793juCBfq','79zyjFfb','9975272IBqUUX','44985HCuLzT','282390ZfVGGZ','38158oniYpM','page','cwd','4228020DyLsEb','F_OK'];a153_0x5ef3=function(){return _0x71171d;};return a153_0x5ef3();}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x389633,_0x32b27f=process[a153_0x2f2cda(0x112)]()){const _0x3f21c8=a153_0x2f2cda,_0x27369c=resolve(_0x32b27f),_0x2772ad=join(_0x27369c,'.rabetbase',_0x3f21c8(0x111));return{'projectRoot':_0x27369c,'pagesBaseDir':_0x2772ad,'appPagesDir':join(_0x2772ad,_0x389633),'lockFilePath':join(_0x27369c,'.rabetbase','page.lock.json')};}export function buildPageFileName(_0x30609d,_0x18beba){const _0x17c276=a153_0x2f2cda;return _0x30609d+'-'+String(_0x18beba)[_0x17c276(0x109)]()+_0x17c276(0x10a);}export function resolvePageFilePath(_0x38d76d,_0x858408,_0x43336b){const _0x518cf8=a153_0x2f2cda;return join(_0x38d76d[_0x518cf8(0x107)],buildPageFileName(_0x858408,_0x43336b));}function a153_0x2761(_0x401eed,_0x334b5c){_0x401eed=_0x401eed-0x107;const _0x5ef307=a153_0x5ef3();let _0x2761ba=_0x5ef307[_0x401eed];return _0x2761ba;}export async function ensureParentDirectory(_0x1f66d4){await mkdir(dirname(_0x1f66d4),{'recursive':!![]});}export async function fileExists(_0x40069b){const _0x40f38f=a153_0x2f2cda;try{return await access(_0x40069b,constants[_0x40f38f(0x114)]),!![];}catch{return![];}}
1
+ const a153_0x3241ad=a153_0x2f3a;(function(_0x33cd4e,_0x72e5fb){const _0x2c3f63=a153_0x2f3a,_0x9710db=_0x33cd4e();while(!![]){try{const _0x51ef8d=-parseInt(_0x2c3f63(0x75))/0x1*(-parseInt(_0x2c3f63(0x72))/0x2)+-parseInt(_0x2c3f63(0x71))/0x3*(-parseInt(_0x2c3f63(0x7b))/0x4)+-parseInt(_0x2c3f63(0x7f))/0x5*(parseInt(_0x2c3f63(0x6e))/0x6)+-parseInt(_0x2c3f63(0x6f))/0x7+-parseInt(_0x2c3f63(0x76))/0x8*(-parseInt(_0x2c3f63(0x74))/0x9)+-parseInt(_0x2c3f63(0x80))/0xa*(-parseInt(_0x2c3f63(0x81))/0xb)+-parseInt(_0x2c3f63(0x7e))/0xc;if(_0x51ef8d===_0x72e5fb)break;else _0x9710db['push'](_0x9710db['shift']());}catch(_0x4f38f1){_0x9710db['push'](_0x9710db['shift']());}}}(a153_0x3e1c,0xa61ca));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a153_0x3e1c(){const _0x102b7d=['164836cHgQjV','.json','2871fHGtrN','6iKvppg','20424qUZdkq','page','toUpperCase','.rabetbase','F_OK','40hqNxKN','cwd','page.lock.json','13394076XFlhLD','100klFKkQ','430TAvmtA','107921JGJyYP','112596uFsAhX','1540217Puooik','appPagesDir','198339WaLWST'];a153_0x3e1c=function(){return _0x102b7d;};return a153_0x3e1c();}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x35fbab,_0x394879=process[a153_0x3241ad(0x7c)]()){const _0x1b015c=a153_0x3241ad,_0x51762f=resolve(_0x394879),_0x31017f=join(_0x51762f,_0x1b015c(0x79),_0x1b015c(0x77));return{'projectRoot':_0x51762f,'pagesBaseDir':_0x31017f,'appPagesDir':join(_0x31017f,_0x35fbab),'lockFilePath':join(_0x51762f,_0x1b015c(0x79),_0x1b015c(0x7d))};}export function buildPageFileName(_0x42355a,_0x114559){const _0x14a7da=a153_0x3241ad;return _0x42355a+'-'+String(_0x114559)[_0x14a7da(0x78)]()+_0x14a7da(0x73);}export function resolvePageFilePath(_0x46bbe9,_0xb8d13c,_0x1f776d){const _0x51fba5=a153_0x3241ad;return join(_0x46bbe9[_0x51fba5(0x70)],buildPageFileName(_0xb8d13c,_0x1f776d));}export async function ensureParentDirectory(_0x203f1d){await mkdir(dirname(_0x203f1d),{'recursive':!![]});}function a153_0x2f3a(_0x4faf83,_0x1e4b88){_0x4faf83=_0x4faf83-0x6e;const _0x3e1c0=a153_0x3e1c();let _0x2f3a3f=_0x3e1c0[_0x4faf83];return _0x2f3a3f;}export async function fileExists(_0x439104){const _0x1e91f9=a153_0x3241ad;try{return await access(_0x439104,constants[_0x1e91f9(0x7a)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x4a5ea0,_0x4239ae){const _0x58ea62=a154_0x5d51,_0x4c110f=_0x4a5ea0();while(!![]){try{const _0x1f9e5d=parseInt(_0x58ea62(0x98))/0x1+parseInt(_0x58ea62(0x97))/0x2+parseInt(_0x58ea62(0x8d))/0x3+parseInt(_0x58ea62(0x94))/0x4*(parseInt(_0x58ea62(0x91))/0x5)+-parseInt(_0x58ea62(0x99))/0x6*(-parseInt(_0x58ea62(0x8b))/0x7)+parseInt(_0x58ea62(0x8c))/0x8+-parseInt(_0x58ea62(0x92))/0x9;if(_0x1f9e5d===_0x4239ae)break;else _0x4c110f['push'](_0x4c110f['shift']());}catch(_0x27801c){_0x4c110f['push'](_0x4c110f['shift']());}}}(a154_0xcd2f,0x59a93));function a154_0xcd2f(){const _0x18e750=['stringify','createHash','1142690DHyJmF','518473wwuRUF','136362yrTPfu','hex','126mFdyzl','544728bmCrBN','333240qlBRok','digest','md5','parse','5GQEvXv','17396181IBsIGP','update','2488340mkwpax'];a154_0xcd2f=function(){return _0x18e750;};return a154_0xcd2f();}import a154_0x2eb0eb from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x5d8dfa){const _0x15b476=a154_0x5d51;return JSON[_0x15b476(0x95)](JSON[_0x15b476(0x90)](_0x5d8dfa),null,0x2)+'\x0a';}function a154_0x5d51(_0x4f8737,_0x5bcb55){_0x4f8737=_0x4f8737-0x8a;const _0xcd2fdc=a154_0xcd2f();let _0x5d51e4=_0xcd2fdc[_0x4f8737];return _0x5d51e4;}export function computePageContentHash(_0x524888){const _0x2edcb4=a154_0x5d51;return a154_0x2eb0eb[_0x2edcb4(0x96)](_0x2edcb4(0x8f))[_0x2edcb4(0x93)](_0x524888)[_0x2edcb4(0x8e)](_0x2edcb4(0x8a));}export function computeSerializedSchemaHash(_0x2df882){return computePageContentHash(serializePageSchemaForFile(_0x2df882));}export async function computePageFileHash(_0xabb801){const _0x216620=await readFile(_0xabb801,'utf8');return computePageContentHash(_0x216620);}
1
+ (function(_0x4db3eb,_0x2cfb77){const _0x53647c=a154_0xfe9b,_0x328b82=_0x4db3eb();while(!![]){try{const _0x4e1010=parseInt(_0x53647c(0x153))/0x1+-parseInt(_0x53647c(0x154))/0x2+-parseInt(_0x53647c(0x157))/0x3*(parseInt(_0x53647c(0x15f))/0x4)+-parseInt(_0x53647c(0x15e))/0x5*(-parseInt(_0x53647c(0x159))/0x6)+-parseInt(_0x53647c(0x155))/0x7*(-parseInt(_0x53647c(0x156))/0x8)+parseInt(_0x53647c(0x15a))/0x9+parseInt(_0x53647c(0x15d))/0xa*(-parseInt(_0x53647c(0x161))/0xb);if(_0x4e1010===_0x2cfb77)break;else _0x328b82['push'](_0x328b82['shift']());}catch(_0x4c9f2d){_0x328b82['push'](_0x328b82['shift']());}}}(a154_0x4bc2,0x9cb6c));import a154_0x3ccf9e from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x7596c6){const _0x42786c=a154_0xfe9b;return JSON[_0x42786c(0x158)](JSON[_0x42786c(0x160)](_0x7596c6),null,0x2)+'\x0a';}export function computePageContentHash(_0x5598da){const _0x43244a=a154_0xfe9b;return a154_0x3ccf9e['createHash'](_0x43244a(0x15b))['update'](_0x5598da)['digest']('hex');}export function computeSerializedSchemaHash(_0xfd8883){return computePageContentHash(serializePageSchemaForFile(_0xfd8883));}function a154_0xfe9b(_0x3567a0,_0x32b3a5){_0x3567a0=_0x3567a0-0x153;const _0x4bc2d1=a154_0x4bc2();let _0xfe9b4c=_0x4bc2d1[_0x3567a0];return _0xfe9b4c;}export async function computePageFileHash(_0x4c86f1){const _0x3e3912=a154_0xfe9b,_0x4b4b6e=await readFile(_0x4c86f1,_0x3e3912(0x15c));return computePageContentHash(_0x4b4b6e);}function a154_0x4bc2(){const _0x246672=['40QvkALv','parse','7271hVVRXP','686063hVaEzC','650708tJHLDm','658vEdSTl','33344QwcSGc','239418CYIRdB','stringify','9354xwnzWq','9011106nooMDh','md5','utf8','20620oeFHYF','3365YBaUgO'];a154_0x4bc2=function(){return _0x246672;};return a154_0x4bc2();}
@@ -1 +1 @@
1
- (function(_0x159633,_0x20510e){const _0x4dc7f4=a155_0x4dfd,_0x36f0bd=_0x159633();while(!![]){try{const _0x1bf678=-parseInt(_0x4dc7f4(0x90))/0x1*(-parseInt(_0x4dc7f4(0x8c))/0x2)+-parseInt(_0x4dc7f4(0x96))/0x3*(-parseInt(_0x4dc7f4(0x8a))/0x4)+parseInt(_0x4dc7f4(0x8f))/0x5+-parseInt(_0x4dc7f4(0x87))/0x6*(-parseInt(_0x4dc7f4(0x93))/0x7)+parseInt(_0x4dc7f4(0x86))/0x8+-parseInt(_0x4dc7f4(0x92))/0x9*(-parseInt(_0x4dc7f4(0x8e))/0xa)+-parseInt(_0x4dc7f4(0x91))/0xb;if(_0x1bf678===_0x20510e)break;else _0x36f0bd['push'](_0x36f0bd['shift']());}catch(_0x4d5633){_0x36f0bd['push'](_0x36f0bd['shift']());}}}(a155_0x2bb0,0x8a7ac));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}function a155_0x2bb0(){const _0x17e619=['ENOENT','5753080YcjqBN','2286920RkIptx','1mcWQlK','27024349DieGZk','9NlyTZO','63ZIfqmY','utf8','stringify','1102953jKhAaH','apps','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','828944nlfKeJ','178374AvvrAx','object','code','8LMOVED','pages','1769596ZzuLeK'];a155_0x2bb0=function(){return _0x17e619;};return a155_0x2bb0();}export function ensurePageLockScope(_0x1b49f,_0x45e18a){const _0x1e3be6=a155_0x4dfd,_0x150483={'apps':_0x1b49f['apps']&&typeof _0x1b49f[_0x1e3be6(0x84)]===_0x1e3be6(0x88)?_0x1b49f[_0x1e3be6(0x84)]:{}};let _0x4b44d4=_0x150483[_0x1e3be6(0x84)][_0x45e18a];if(!_0x4b44d4)return _0x4b44d4={'lastSync':'','pages':{}},_0x150483[_0x1e3be6(0x84)][_0x45e18a]=_0x4b44d4,{'lockData':_0x150483,'appLock':_0x4b44d4};return!_0x4b44d4['lastSync']&&(_0x4b44d4['lastSync']=''),(!_0x4b44d4[_0x1e3be6(0x8b)]||typeof _0x4b44d4[_0x1e3be6(0x8b)]!==_0x1e3be6(0x88))&&(_0x4b44d4['pages']={}),{'lockData':_0x150483,'appLock':_0x4b44d4};}export async function readPageLockFile(_0xba1e02){const _0x5e3beb=a155_0x4dfd;try{const _0x223a9d=await readFile(_0xba1e02,_0x5e3beb(0x94)),_0x3e52a7=JSON['parse'](_0x223a9d);return{'apps':_0x3e52a7[_0x5e3beb(0x84)]&&typeof _0x3e52a7[_0x5e3beb(0x84)]===_0x5e3beb(0x88)?_0x3e52a7[_0x5e3beb(0x84)]:{}};}catch(_0x1ff4d3){if(_0x1ff4d3[_0x5e3beb(0x89)]===_0x5e3beb(0x8d))return null;throw new Error(_0x5e3beb(0x85)+String(_0x1ff4d3));}}function a155_0x4dfd(_0x2bc2cf,_0x451cb9){_0x2bc2cf=_0x2bc2cf-0x84;const _0x2bb0f0=a155_0x2bb0();let _0x4dfd4d=_0x2bb0f0[_0x2bc2cf];return _0x4dfd4d;}export async function writePageLockFile(_0x3e2fb1,_0x5e42d4){const _0x327ee7=a155_0x4dfd;await mkdir(dirname(_0x3e2fb1),{'recursive':!![]}),await writeFile(_0x3e2fb1,JSON[_0x327ee7(0x95)](_0x5e42d4,null,0x2),_0x327ee7(0x94));}
1
+ (function(_0x4149a7,_0x4c038c){const _0xec8e9a=a155_0x4f5b,_0x570c65=_0x4149a7();while(!![]){try{const _0xe6afa8=-parseInt(_0xec8e9a(0x112))/0x1*(-parseInt(_0xec8e9a(0x11a))/0x2)+-parseInt(_0xec8e9a(0x10c))/0x3+parseInt(_0xec8e9a(0x11c))/0x4*(parseInt(_0xec8e9a(0x116))/0x5)+-parseInt(_0xec8e9a(0x11b))/0x6+parseInt(_0xec8e9a(0x111))/0x7+-parseInt(_0xec8e9a(0x110))/0x8+parseInt(_0xec8e9a(0x115))/0x9;if(_0xe6afa8===_0x4c038c)break;else _0x570c65['push'](_0x570c65['shift']());}catch(_0x3c55b4){_0x570c65['push'](_0x570c65['shift']());}}}(a155_0x4bd2,0xcb7b8));import{mkdir,readFile,writeFile}from'node:fs/promises';function a155_0x4f5b(_0x161237,_0x463833){_0x161237=_0x161237-0x10c;const _0x4bd2e3=a155_0x4bd2();let _0x4f5b22=_0x4bd2e3[_0x161237];return _0x4f5b22;}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x5b931e,_0x18751f){const _0x580f2e=a155_0x4f5b,_0x41ad6d={'apps':_0x5b931e[_0x580f2e(0x11d)]&&typeof _0x5b931e['apps']==='object'?_0x5b931e[_0x580f2e(0x11d)]:{}};let _0x2b519e=_0x41ad6d['apps'][_0x18751f];if(!_0x2b519e)return _0x2b519e={'lastSync':'','pages':{}},_0x41ad6d[_0x580f2e(0x11d)][_0x18751f]=_0x2b519e,{'lockData':_0x41ad6d,'appLock':_0x2b519e};return!_0x2b519e[_0x580f2e(0x119)]&&(_0x2b519e['lastSync']=''),(!_0x2b519e['pages']||typeof _0x2b519e['pages']!==_0x580f2e(0x10f))&&(_0x2b519e[_0x580f2e(0x11e)]={}),{'lockData':_0x41ad6d,'appLock':_0x2b519e};}export async function readPageLockFile(_0x4d4949){const _0x3c3cd4=a155_0x4f5b;try{const _0x21a1a8=await readFile(_0x4d4949,_0x3c3cd4(0x114)),_0x1b0956=JSON[_0x3c3cd4(0x113)](_0x21a1a8);return{'apps':_0x1b0956[_0x3c3cd4(0x11d)]&&typeof _0x1b0956[_0x3c3cd4(0x11d)]===_0x3c3cd4(0x10f)?_0x1b0956[_0x3c3cd4(0x11d)]:{}};}catch(_0x12f7d6){if(_0x12f7d6[_0x3c3cd4(0x118)]===_0x3c3cd4(0x117))return null;throw new Error(_0x3c3cd4(0x10e)+String(_0x12f7d6));}}export async function writePageLockFile(_0x3e7ae3,_0x460f61){const _0x1cf94b=a155_0x4f5b;await mkdir(dirname(_0x3e7ae3),{'recursive':!![]}),await writeFile(_0x3e7ae3,JSON[_0x1cf94b(0x10d)](_0x460f61,null,0x2),_0x1cf94b(0x114));}function a155_0x4bd2(){const _0x381708=['stringify','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','object','11060688ZjzxdX','4196192laEIAw','1168841lEyAlv','parse','utf8','11173383DNjoaY','5Hbjlqk','ENOENT','code','lastSync','2WMpXSV','8676684lxIlnM','4873192kXRJgF','apps','pages','1697754MZpHat'];a155_0x4bd2=function(){return _0x381708;};return a155_0x4bd2();}
@@ -1 +1 @@
1
- const a157_0x18864a=a157_0x3a15;function a157_0x3a15(_0x266603,_0x94699d){_0x266603=_0x266603-0x117;const _0x3eebbc=a157_0x3eeb();let _0x3a15aa=_0x3eebbc[_0x266603];return _0x3a15aa;}(function(_0x274332,_0x4ec5d2){const _0x764f42=a157_0x3a15,_0x10435b=_0x274332();while(!![]){try{const _0x22e1bc=-parseInt(_0x764f42(0x11f))/0x1*(-parseInt(_0x764f42(0x11d))/0x2)+-parseInt(_0x764f42(0x11b))/0x3*(-parseInt(_0x764f42(0x122))/0x4)+-parseInt(_0x764f42(0x120))/0x5+parseInt(_0x764f42(0x11e))/0x6*(-parseInt(_0x764f42(0x11c))/0x7)+parseInt(_0x764f42(0x118))/0x8*(-parseInt(_0x764f42(0x117))/0x9)+parseInt(_0x764f42(0x121))/0xa+-parseInt(_0x764f42(0x123))/0xb;if(_0x22e1bc===_0x4ec5d2)break;else _0x10435b['push'](_0x10435b['shift']());}catch(_0x5c08b6){_0x10435b['push'](_0x10435b['shift']());}}}(a157_0x3eeb,0xbaed1));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a157_0x18864a(0x11a),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x5e3be5,_0x2ef17b){const _0x106778=a157_0x18864a,_0x59f88f=resolve(_0x2ef17b??findProjectRootDirectory()),_0x826608=DOT_DIR+_0x106778(0x124),_0x3cd1c1=_0x826608+'/'+_0x5e3be5;return{'projectRoot':_0x59f88f,'appCode':_0x5e3be5,'sqlWorkspaceRoot':_0x826608,'sqlRoot':_0x3cd1c1,'sqlRootDir':resolve(_0x59f88f,DOT_DIR,_0x106778(0x119),_0x5e3be5),'lockFilePath':resolve(_0x59f88f,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x59f88f,DOT_DIR,TRASH_DIR_NAME)};}function a157_0x3eeb(){const _0x4925a1=['3SPbnkQ','3290231pEzxSr','1946058QtwbNv','12eeYImU','1GyIcWd','3420805GjnvBc','7689740XvoblR','4920596OmlAFD','3033998oOxyBn','/sql','603DbbmJQ','36592tByaJt','sql','sql.lock.json'];a157_0x3eeb=function(){return _0x4925a1;};return a157_0x3eeb();}
1
+ const a157_0x23719b=a157_0x1f65;function a157_0x3afa(){const _0x5e5628=['6774933NAzybS','344IfMWkI','287438UKfFbL','.rabetbase','89315PYDadA','3FUhyon','12059448TuLFfC','20aptiHM','408WooDdk','6556167nNYfru','189832KeBjVC','sql','455YTZuOC','16959uFmPul','sql.lock.json'];a157_0x3afa=function(){return _0x5e5628;};return a157_0x3afa();}(function(_0x5bdd6a,_0x458520){const _0x5da6d0=a157_0x1f65,_0x8edee5=_0x5bdd6a();while(!![]){try{const _0x4f9cf5=parseInt(_0x5da6d0(0x155))/0x1*(parseInt(_0x5da6d0(0x152))/0x2)+-parseInt(_0x5da6d0(0x15d))/0x3*(parseInt(_0x5da6d0(0x160))/0x4)+parseInt(_0x5da6d0(0x154))/0x5*(parseInt(_0x5da6d0(0x158))/0x6)+-parseInt(_0x5da6d0(0x15c))/0x7*(-parseInt(_0x5da6d0(0x15a))/0x8)+-parseInt(_0x5da6d0(0x159))/0x9*(parseInt(_0x5da6d0(0x157))/0xa)+parseInt(_0x5da6d0(0x15f))/0xb+-parseInt(_0x5da6d0(0x156))/0xc;if(_0x4f9cf5===_0x458520)break;else _0x8edee5['push'](_0x8edee5['shift']());}catch(_0x1a1407){_0x8edee5['push'](_0x8edee5['shift']());}}}(a157_0x3afa,0xd101b));import{resolve}from'node:path';function a157_0x1f65(_0x5b6dc3,_0x2458d9){_0x5b6dc3=_0x5b6dc3-0x152;const _0x3afaa9=a157_0x3afa();let _0x1f656b=_0x3afaa9[_0x5b6dc3];return _0x1f656b;}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a157_0x23719b(0x153),LOCK_FILE_NAME=a157_0x23719b(0x15e),TRASH_DIR_NAME='sql-trash';export function loadSqlProjectConfig(_0x29dabb,_0x210a84){const _0x350900=a157_0x23719b,_0x2f51a1=resolve(_0x210a84??findProjectRootDirectory()),_0x3e5dc6=DOT_DIR+'/sql',_0x3a32c1=_0x3e5dc6+'/'+_0x29dabb;return{'projectRoot':_0x2f51a1,'appCode':_0x29dabb,'sqlWorkspaceRoot':_0x3e5dc6,'sqlRoot':_0x3a32c1,'sqlRootDir':resolve(_0x2f51a1,DOT_DIR,_0x350900(0x15b),_0x29dabb),'lockFilePath':resolve(_0x2f51a1,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x2f51a1,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3e31dd,_0x4f56d7){const _0x41e558=a158_0x5496,_0x46f01f=_0x3e31dd();while(!![]){try{const _0x232ce3=-parseInt(_0x41e558(0x159))/0x1*(-parseInt(_0x41e558(0x160))/0x2)+parseInt(_0x41e558(0x147))/0x3+parseInt(_0x41e558(0x164))/0x4+-parseInt(_0x41e558(0x14c))/0x5*(parseInt(_0x41e558(0x158))/0x6)+-parseInt(_0x41e558(0x152))/0x7*(-parseInt(_0x41e558(0x156))/0x8)+parseInt(_0x41e558(0x14e))/0x9+parseInt(_0x41e558(0x154))/0xa*(-parseInt(_0x41e558(0x161))/0xb);if(_0x232ce3===_0x4f56d7)break;else _0x46f01f['push'](_0x46f01f['shift']());}catch(_0x23e027){_0x46f01f['push'](_0x46f01f['shift']());}}}(a158_0x37f6,0xc6daf));import{readdir,stat}from'node:fs/promises';function a158_0x37f6(){const _0x44ad74=['.xml','mode','push','575265jvJBET','dbId','11601612YkNFoF','isFile','ENOENT','isDirectory','1682457NordAU','name','20vUvgDj','code','8LdvPdF','sql','42ZtfIYy','1534325kDbttg','sqlCode','dbName','indexOf','test','length','slice','2eXJhyI','13546775ikSorz','sqlRootDir','sqlName','3768488ZzhAmt','toLowerCase','mybatisXml','.sql','231198PBZcjq','filter'];a158_0x37f6=function(){return _0x44ad74;};return a158_0x37f6();}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x144ddd){const _0x54ac3f=a158_0x5496;if(_0x144ddd===_0x54ac3f(0x146))return'sql';if(_0x144ddd===_0x54ac3f(0x149))return _0x54ac3f(0x145);return undefined;}async function scanSqlFilesRecursively(_0x357b1d,_0x69500c){const _0x1ef9a7=a158_0x5496,_0x2f2121=[];try{const _0x4a1d59=await readdir(_0x357b1d,{'withFileTypes':!![]});for(const _0x4f31d0 of _0x4a1d59){const _0x3ad094=join(_0x357b1d,_0x4f31d0[_0x1ef9a7(0x153)]);if(_0x4f31d0[_0x1ef9a7(0x151)]()){_0x2f2121['push'](...await scanSqlFilesRecursively(_0x3ad094,_0x69500c));continue;}if(!_0x4f31d0[_0x1ef9a7(0x14f)]())continue;const _0x321132=extname(_0x4f31d0[_0x1ef9a7(0x153)])[_0x1ef9a7(0x144)](),_0x2b6147=extensionToMode(_0x321132);if(!_0x2b6147)continue;const _0x5e3d65=relative(_0x69500c,_0x3ad094)['replace'](/\\/g,'/'),_0x1502d1=_0x5e3d65['split']('/')[_0x1ef9a7(0x148)](Boolean),_0x438f4a=parseSqlPath(_0x1502d1,_0x4f31d0['name'],_0x321132);if(!_0x438f4a)continue;_0x2f2121[_0x1ef9a7(0x14b)]({'sqlCode':_0x438f4a['sqlCode'],'sqlName':_0x438f4a[_0x1ef9a7(0x163)],'dbDirectory':_0x1502d1[0x0],'filePath':_0x3ad094,'relativePath':_0x5e3d65,'lockKey':_0x438f4a[_0x1ef9a7(0x15a)],'mode':_0x2b6147});}}catch(_0x388b51){if(_0x388b51[_0x1ef9a7(0x155)]!==_0x1ef9a7(0x150))throw _0x388b51;}return _0x2f2121;}export async function scanLocalSqlQueries(_0x4bb6be){const _0x370ed8=a158_0x5496;return scanSqlFilesRecursively(_0x4bb6be[_0x370ed8(0x162)],_0x4bb6be[_0x370ed8(0x162)]);}function a158_0x5496(_0x4c488b,_0x125141){_0x4c488b=_0x4c488b-0x144;const _0x37f6f5=a158_0x37f6();let _0x5496df=_0x37f6f5[_0x4c488b];return _0x5496df;}export function resolveLocalSqlFilePath(_0x74e810,_0x3c4ce7,_0x5375c1){const _0x177be7=a158_0x5496,_0x5ef644=_0x5375c1?.['path']||(_0x5375c1?.[_0x177be7(0x163)]||_0x5375c1?.[_0x177be7(0x15b)]?buildSqlRelativePath(_0x3c4ce7,_0x5375c1?.[_0x177be7(0x163)],_0x5375c1?.['dbName'],_0x5375c1?.[_0x177be7(0x14a)]||_0x177be7(0x157),_0x5375c1?.[_0x177be7(0x14d)]):buildDefaultSqlFileName(_0x3c4ce7,_0x5375c1?.[_0x177be7(0x14a)]||_0x177be7(0x157)));return join(_0x74e810[_0x177be7(0x162)],_0x5ef644);}export async function directoryExists(_0x499f98){try{const _0x5081a0=await stat(_0x499f98);return _0x5081a0['isDirectory']();}catch{return![];}}function parseSqlPath(_0xcf7056,_0x5e5548,_0x45c0d9){const _0x1e7a73=a158_0x5496,_0x409cee=_0x5e5548[_0x1e7a73(0x15f)](0x0,-_0x45c0d9[_0x1e7a73(0x15e)]);if(_0xcf7056[_0x1e7a73(0x15e)]<0x2)return null;const _0x4d5435=_0x409cee[_0x1e7a73(0x15c)]('_');if(_0x4d5435<=0x0||_0x4d5435>=_0x409cee[_0x1e7a73(0x15e)]-0x1)return null;const _0x4fc845=_0x409cee['slice'](0x0,_0x4d5435);if(!isLikelySqlCode(_0x4fc845))return null;return{'sqlCode':_0x4fc845,'sqlName':_0x409cee[_0x1e7a73(0x15f)](_0x4d5435+0x1)};}function isLikelySqlCode(_0x3269fd){const _0x2859cf=a158_0x5496;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x2859cf(0x15d)](_0x3269fd);}
1
+ (function(_0x2a8686,_0x64c177){const _0x571750=a158_0x57d6,_0x1a9b10=_0x2a8686();while(!![]){try{const _0x289236=parseInt(_0x571750(0x83))/0x1*(-parseInt(_0x571750(0x8e))/0x2)+-parseInt(_0x571750(0x87))/0x3+-parseInt(_0x571750(0x8b))/0x4*(parseInt(_0x571750(0x7e))/0x5)+parseInt(_0x571750(0x93))/0x6*(-parseInt(_0x571750(0x81))/0x7)+parseInt(_0x571750(0x7d))/0x8*(parseInt(_0x571750(0x96))/0x9)+parseInt(_0x571750(0x79))/0xa*(-parseInt(_0x571750(0x85))/0xb)+parseInt(_0x571750(0x77))/0xc;if(_0x289236===_0x64c177)break;else _0x1a9b10['push'](_0x1a9b10['shift']());}catch(_0x424016){_0x1a9b10['push'](_0x1a9b10['shift']());}}}(a158_0x7a79,0x35dec));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5aec7f){const _0x401334=a158_0x57d6;if(_0x5aec7f===_0x401334(0x76))return _0x401334(0x75);if(_0x5aec7f===_0x401334(0x88))return _0x401334(0x86);return undefined;}async function scanSqlFilesRecursively(_0x9bb68e,_0x2bf494){const _0x7322b7=a158_0x57d6,_0x1a8529=[];try{const _0x197e6d=await readdir(_0x9bb68e,{'withFileTypes':!![]});for(const _0x2870a0 of _0x197e6d){const _0x268430=join(_0x9bb68e,_0x2870a0['name']);if(_0x2870a0[_0x7322b7(0x8a)]()){_0x1a8529['push'](...await scanSqlFilesRecursively(_0x268430,_0x2bf494));continue;}if(!_0x2870a0[_0x7322b7(0x90)]())continue;const _0x12e2f4=extname(_0x2870a0[_0x7322b7(0x7f)])['toLowerCase'](),_0x31701f=extensionToMode(_0x12e2f4);if(!_0x31701f)continue;const _0x3521ad=relative(_0x2bf494,_0x268430)[_0x7322b7(0x92)](/\\/g,'/'),_0x37db59=_0x3521ad['split']('/')[_0x7322b7(0x91)](Boolean),_0x674e05=parseSqlPath(_0x37db59,_0x2870a0['name'],_0x12e2f4);if(!_0x674e05)continue;_0x1a8529[_0x7322b7(0x95)]({'sqlCode':_0x674e05[_0x7322b7(0x8f)],'sqlName':_0x674e05[_0x7322b7(0x7b)],'dbDirectory':_0x37db59[0x0],'filePath':_0x268430,'relativePath':_0x3521ad,'lockKey':_0x674e05['sqlCode'],'mode':_0x31701f});}}catch(_0x45cfa7){if(_0x45cfa7[_0x7322b7(0x78)]!==_0x7322b7(0x8c))throw _0x45cfa7;}return _0x1a8529;}function a158_0x57d6(_0x31e192,_0x1cb24f){_0x31e192=_0x31e192-0x75;const _0x7a7941=a158_0x7a79();let _0x57d6f7=_0x7a7941[_0x31e192];return _0x57d6f7;}export async function scanLocalSqlQueries(_0xd4dec3){const _0x34a31a=a158_0x57d6;return scanSqlFilesRecursively(_0xd4dec3['sqlRootDir'],_0xd4dec3[_0x34a31a(0x8d)]);}export function resolveLocalSqlFilePath(_0x3918ba,_0x46bb22,_0x1783d0){const _0x5360ef=a158_0x57d6,_0x47bdf7=_0x1783d0?.[_0x5360ef(0x84)]||(_0x1783d0?.[_0x5360ef(0x7b)]||_0x1783d0?.['dbName']?buildSqlRelativePath(_0x46bb22,_0x1783d0?.['sqlName'],_0x1783d0?.[_0x5360ef(0x7a)],_0x1783d0?.[_0x5360ef(0x89)]||_0x5360ef(0x75),_0x1783d0?.['dbId']):buildDefaultSqlFileName(_0x46bb22,_0x1783d0?.['mode']||_0x5360ef(0x75)));return join(_0x3918ba[_0x5360ef(0x8d)],_0x47bdf7);}export async function directoryExists(_0x5309b0){const _0x35c088=a158_0x57d6;try{const _0x1ffeee=await stat(_0x5309b0);return _0x1ffeee[_0x35c088(0x8a)]();}catch{return![];}}function parseSqlPath(_0x5bc303,_0x12a9a9,_0x4b18a7){const _0x29449b=a158_0x57d6,_0x255540=_0x12a9a9[_0x29449b(0x82)](0x0,-_0x4b18a7['length']);if(_0x5bc303[_0x29449b(0x7c)]<0x2)return null;const _0x2974fb=_0x255540[_0x29449b(0x80)]('_');if(_0x2974fb<=0x0||_0x2974fb>=_0x255540[_0x29449b(0x7c)]-0x1)return null;const _0xe048b7=_0x255540['slice'](0x0,_0x2974fb);if(!isLikelySqlCode(_0xe048b7))return null;return{'sqlCode':_0xe048b7,'sqlName':_0x255540['slice'](_0x2974fb+0x1)};}function a158_0x7a79(){const _0x4f16c8=['sql','.sql','11355744OAqpYB','code','970FMjMYH','dbName','sqlName','length','32YfKXFS','2290FkAgbD','name','indexOf','119cwrjAV','slice','87059xyzxkS','path','16973Nampuw','mybatisXml','1003965KxPCFx','.xml','mode','isDirectory','808xjeQxP','ENOENT','sqlRootDir','2vdgpoK','sqlCode','isFile','filter','replace','114306kPtsek','test','push','589743kEqItC'];a158_0x7a79=function(){return _0x4f16c8;};return a158_0x7a79();}function isLikelySqlCode(_0x4c6447){const _0x3fe7b0=a158_0x57d6;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x3fe7b0(0x94)](_0x4c6447);}
@@ -1 +1 @@
1
- function a159_0x1431(){const _0x34cb48=['1088936QSbRHK','update','3904446JMYVgh','7ujBBiF','createHash','24577553ndzqic','504652EYjFjs','1172krjDnB','6poTtBA','md5','10KxQYQt','hex','utf8','7303950aLgism','10221IaOSup','14641731EPOnOb'];a159_0x1431=function(){return _0x34cb48;};return a159_0x1431();}(function(_0x583c11,_0x553eba){const _0x5b59ba=a159_0x40a6,_0x43f7c4=_0x583c11();while(!![]){try{const _0x26c20f=parseInt(_0x5b59ba(0x1b9))/0x1*(parseInt(_0x5b59ba(0x1c7))/0x2)+parseInt(_0x5b59ba(0x1bf))/0x3*(-parseInt(_0x5b59ba(0x1b8))/0x4)+parseInt(_0x5b59ba(0x1be))/0x5+-parseInt(_0x5b59ba(0x1c3))/0x6+parseInt(_0x5b59ba(0x1c4))/0x7*(parseInt(_0x5b59ba(0x1c1))/0x8)+parseInt(_0x5b59ba(0x1c0))/0x9+parseInt(_0x5b59ba(0x1bb))/0xa*(-parseInt(_0x5b59ba(0x1c6))/0xb);if(_0x26c20f===_0x553eba)break;else _0x43f7c4['push'](_0x43f7c4['shift']());}catch(_0x5e43ee){_0x43f7c4['push'](_0x43f7c4['shift']());}}}(a159_0x1431,0xd0987));import{readFile}from'node:fs/promises';import a159_0x2c1052 from'node:crypto';export function computeSqlContentHash(_0xe25ff){const _0xacd697=a159_0x40a6;return a159_0x2c1052[_0xacd697(0x1c5)](_0xacd697(0x1ba))[_0xacd697(0x1c2)](_0xe25ff)['digest'](_0xacd697(0x1bc));}function a159_0x40a6(_0x455079,_0x407cfe){_0x455079=_0x455079-0x1b8;const _0x14317c=a159_0x1431();let _0x40a681=_0x14317c[_0x455079];return _0x40a681;}export async function computeSqlFileHash(_0x315674){const _0x26efac=a159_0x40a6,_0x1fe0d2=await readFile(_0x315674,_0x26efac(0x1bd));return computeSqlContentHash(_0x1fe0d2);}
1
+ function a159_0x3069(_0x50eab5,_0x1ecbda){_0x50eab5=_0x50eab5-0xd0;const _0x2dd399=a159_0x2dd3();let _0x306902=_0x2dd399[_0x50eab5];return _0x306902;}function a159_0x2dd3(){const _0x6652a4=['18844FzIGmU','digest','2238273IGQapX','2791968TZFDbv','createHash','hex','347606cHGcNM','md5','4841586wGSblX','729882Jzilyv','utf8','375IbBkUi','2614087ftEkfv'];a159_0x2dd3=function(){return _0x6652a4;};return a159_0x2dd3();}(function(_0x3cad93,_0x5389db){const _0x412acc=a159_0x3069,_0x3cd877=_0x3cad93();while(!![]){try{const _0x553930=-parseInt(_0x412acc(0xd1))/0x1+-parseInt(_0x412acc(0xd4))/0x2+-parseInt(_0x412acc(0xda))/0x3+-parseInt(_0x412acc(0xd8))/0x4*(-parseInt(_0x412acc(0xd6))/0x5)+parseInt(_0x412acc(0xd3))/0x6+parseInt(_0x412acc(0xd7))/0x7+parseInt(_0x412acc(0xdb))/0x8;if(_0x553930===_0x5389db)break;else _0x3cd877['push'](_0x3cd877['shift']());}catch(_0x81e5d4){_0x3cd877['push'](_0x3cd877['shift']());}}}(a159_0x2dd3,0x67877));import{readFile}from'node:fs/promises';import a159_0x35e8b8 from'node:crypto';export function computeSqlContentHash(_0x150411){const _0x1078e6=a159_0x3069;return a159_0x35e8b8[_0x1078e6(0xdc)](_0x1078e6(0xd2))['update'](_0x150411)[_0x1078e6(0xd9)](_0x1078e6(0xd0));}export async function computeSqlFileHash(_0x255115){const _0x45a72e=a159_0x3069,_0x595db1=await readFile(_0x255115,_0x45a72e(0xd5));return computeSqlContentHash(_0x595db1);}
@@ -1 +1 @@
1
- (function(_0x124cf1,_0x3773c1){const _0x102f39=a160_0x1cfc,_0x33f8ea=_0x124cf1();while(!![]){try{const _0x3a2a50=-parseInt(_0x102f39(0x106))/0x1+parseInt(_0x102f39(0xf7))/0x2+parseInt(_0x102f39(0x103))/0x3*(parseInt(_0x102f39(0xfd))/0x4)+-parseInt(_0x102f39(0x109))/0x5+parseInt(_0x102f39(0x108))/0x6+-parseInt(_0x102f39(0x104))/0x7+parseInt(_0x102f39(0xfe))/0x8;if(_0x3a2a50===_0x3773c1)break;else _0x33f8ea['push'](_0x33f8ea['shift']());}catch(_0x3e78a9){_0x33f8ea['push'](_0x33f8ea['shift']());}}}(a160_0x557a,0x2c40b));function a160_0x557a(){const _0x2aaab2=['utf8','apps','481758CZRMun','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','\x22.\x20',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','parse','sqlRoot','76sLNYCK','56648EzUbvA','lastSync','ENOENT','\x22\x20vs\x20lock\x20\x22','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','16659CXcYSf','1754207QpDSHp','stringify','243803lfODam','sqls','2142342YdyxmP','174305wvEUdq'];a160_0x557a=function(){return _0x2aaab2;};return a160_0x557a();}function a160_0x1cfc(_0x5e4aa3,_0x5dd950){_0x5e4aa3=_0x5e4aa3-0xf7;const _0x557afe=a160_0x557a();let _0x1cfcc5=_0x557afe[_0x5e4aa3];return _0x1cfcc5;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x4eb835,_0x25174e,_0x4de68d,_0x933291){const _0x1efd95=a160_0x1cfc,_0x4b144d=_0x4eb835??createEmptySqlLock();let _0x310a48=_0x4b144d[_0x1efd95(0x10b)][_0x25174e];if(!_0x310a48)return _0x310a48={'sqlRoot':_0x4de68d,'lastSync':'','sqls':{}},_0x4b144d[_0x1efd95(0x10b)][_0x25174e]=_0x310a48,{'lockData':_0x4b144d,'appLock':_0x310a48};if(!_0x310a48['sqlRoot'])_0x310a48[_0x1efd95(0xfc)]=_0x4de68d;else{if(_0x310a48[_0x1efd95(0xfc)]!==_0x4de68d)throw new Error(_0x933291+_0x1efd95(0xfa)+_0x4de68d+_0x1efd95(0x101)+_0x310a48[_0x1efd95(0xfc)]+_0x1efd95(0xf9)+_0x1efd95(0x102));}return!_0x310a48[_0x1efd95(0x107)]&&(_0x310a48['sqls']={}),!_0x310a48[_0x1efd95(0xff)]&&(_0x310a48[_0x1efd95(0xff)]=''),{'lockData':_0x4b144d,'appLock':_0x310a48};}export async function readSqlLockFile(_0x1b1c54){const _0x544154=a160_0x1cfc;try{const _0x1acac2=await readFile(_0x1b1c54,_0x544154(0x10a));return JSON[_0x544154(0xfb)](_0x1acac2);}catch(_0x33442f){if(_0x33442f['code']===_0x544154(0x100))return null;throw new Error(_0x544154(0xf8)+String(_0x33442f));}}export async function writeSqlLockFile(_0x3dc407,_0x4374d0){const _0x255a28=a160_0x1cfc;await mkdir(dirname(_0x3dc407),{'recursive':!![]}),await writeFile(_0x3dc407,JSON[_0x255a28(0x105)](_0x4374d0,null,0x2),'utf8');}
1
+ (function(_0x14869d,_0x4bfe95){const _0x3c4f03=a160_0x35fc,_0x1f53e8=_0x14869d();while(!![]){try{const _0x32f334=parseInt(_0x3c4f03(0x110))/0x1*(parseInt(_0x3c4f03(0x10f))/0x2)+-parseInt(_0x3c4f03(0x109))/0x3*(parseInt(_0x3c4f03(0x11e))/0x4)+parseInt(_0x3c4f03(0x11b))/0x5+parseInt(_0x3c4f03(0x111))/0x6*(parseInt(_0x3c4f03(0x11f))/0x7)+-parseInt(_0x3c4f03(0x112))/0x8*(parseInt(_0x3c4f03(0x113))/0x9)+parseInt(_0x3c4f03(0x119))/0xa*(-parseInt(_0x3c4f03(0x114))/0xb)+parseInt(_0x3c4f03(0x108))/0xc;if(_0x32f334===_0x4bfe95)break;else _0x1f53e8['push'](_0x1f53e8['shift']());}catch(_0x2d245f){_0x1f53e8['push'](_0x1f53e8['shift']());}}}(a160_0x3383,0x5853d));function a160_0x3383(){const _0x5deaec=['parse','8WHxdwE','5293RksLsu','750fGoOBP','6248xazINe','7497qHyDIh','8338MKZDhj','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','lastSync',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','460PjfJGQ','sqlRoot','3186100tYzkur','sqls','stringify','2088916IlfKiK','15260QkLlqQ','apps','utf8','7662804HXzCGu','3YZqcpH','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT','\x22.\x20','code'];a160_0x3383=function(){return _0x5deaec;};return a160_0x3383();}function a160_0x35fc(_0x2362cf,_0x2aa938){_0x2362cf=_0x2362cf-0x108;const _0x3383c8=a160_0x3383();let _0x35fcec=_0x3383c8[_0x2362cf];return _0x35fcec;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x1d3ed0,_0x3c092d,_0x47c6a4,_0x55feaa){const _0x3f75bb=a160_0x35fc,_0x52aed0=_0x1d3ed0??createEmptySqlLock();let _0x116281=_0x52aed0[_0x3f75bb(0x120)][_0x3c092d];if(!_0x116281)return _0x116281={'sqlRoot':_0x47c6a4,'lastSync':'','sqls':{}},_0x52aed0[_0x3f75bb(0x120)][_0x3c092d]=_0x116281,{'lockData':_0x52aed0,'appLock':_0x116281};if(!_0x116281[_0x3f75bb(0x11a)])_0x116281['sqlRoot']=_0x47c6a4;else{if(_0x116281[_0x3f75bb(0x11a)]!==_0x47c6a4)throw new Error(_0x55feaa+_0x3f75bb(0x117)+_0x47c6a4+_0x3f75bb(0x118)+_0x116281[_0x3f75bb(0x11a)]+_0x3f75bb(0x10c)+_0x3f75bb(0x115));}return!_0x116281[_0x3f75bb(0x11c)]&&(_0x116281['sqls']={}),!_0x116281[_0x3f75bb(0x116)]&&(_0x116281[_0x3f75bb(0x116)]=''),{'lockData':_0x52aed0,'appLock':_0x116281};}export async function readSqlLockFile(_0x4293b6){const _0x58d17c=a160_0x35fc;try{const _0x442797=await readFile(_0x4293b6,_0x58d17c(0x121));return JSON[_0x58d17c(0x10e)](_0x442797);}catch(_0x2cbdff){if(_0x2cbdff[_0x58d17c(0x10d)]===_0x58d17c(0x10b))return null;throw new Error(_0x58d17c(0x10a)+String(_0x2cbdff));}}export async function writeSqlLockFile(_0x5860bc,_0x43de4b){const _0x1d8a6b=a160_0x35fc;await mkdir(dirname(_0x5860bc),{'recursive':!![]}),await writeFile(_0x5860bc,JSON[_0x1d8a6b(0x11d)](_0x43de4b,null,0x2),_0x1d8a6b(0x121));}
@@ -1 +1 @@
1
- (function(_0x421a20,_0x420986){const _0x1f7281=a162_0xf44c,_0x2d2bff=_0x421a20();while(!![]){try{const _0x3ec28e=parseInt(_0x1f7281(0x160))/0x1+parseInt(_0x1f7281(0x161))/0x2*(parseInt(_0x1f7281(0x159))/0x3)+parseInt(_0x1f7281(0x153))/0x4+-parseInt(_0x1f7281(0x15c))/0x5*(parseInt(_0x1f7281(0x151))/0x6)+-parseInt(_0x1f7281(0x15d))/0x7+-parseInt(_0x1f7281(0x156))/0x8*(parseInt(_0x1f7281(0x15b))/0x9)+parseInt(_0x1f7281(0x15e))/0xa;if(_0x3ec28e===_0x420986)break;else _0x2d2bff['push'](_0x2d2bff['shift']());}catch(_0x280b97){_0x2d2bff['push'](_0x2d2bff['shift']());}}}(a162_0x5590,0x56b01));export function detectSqlMode(_0x16bf3e){const _0x29f654=a162_0xf44c,_0x2519ec=_0x16bf3e['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x29f654(0x152)](_0x2519ec))return _0x29f654(0x155);return'sql';}export function getSqlFileExtension(_0xe18fa4){const _0x382c7d=a162_0xf44c;return _0xe18fa4===_0x382c7d(0x155)?'.xml':_0x382c7d(0x15a);}function a162_0xf44c(_0x2f893e,_0x58c574){_0x2f893e=_0x2f893e-0x151;const _0x5590b6=a162_0x5590();let _0xf44c6e=_0x5590b6[_0x2f893e];return _0xf44c6e;}function a162_0x5590(){const _0x5b200f=['db-','291040ILBfpg','5798PfRdIX','174AxitiO','test','1338276WrGbUL','unknown-db','mybatisXml','216cFAfik','replace','unknown-sql','45kXhicw','.sql','46611fMtYXv','38795lvrwKu','3949792VlpAik','6150790bUlXVy'];a162_0x5590=function(){return _0x5b200f;};return a162_0x5590();}export function buildDefaultSqlFileName(_0xc938a,_0x539f60){return''+_0xc938a+getSqlFileExtension(_0x539f60);}export function sanitizeSqlPathSegment(_0x334acf,_0x101cf5){const _0x22bc2e=a162_0xf44c,_0x27a45b=String(_0x334acf??'')['trim'](),_0x35f7c6=_0x27a45b['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x22bc2e(0x157)](/-+/g,'-')[_0x22bc2e(0x157)](/^\.+/,'')[_0x22bc2e(0x157)](/\.+$/,'')[_0x22bc2e(0x157)](/^-+/,'')['replace'](/-+$/,'');return _0x35f7c6||_0x101cf5;}export function buildDbDirectoryName(_0x56cef5,_0x1d1d02){const _0x56b9a7=a162_0xf44c;return sanitizeSqlPathSegment(_0x56cef5,_0x1d1d02!=null?_0x56b9a7(0x15f)+_0x1d1d02:_0x56b9a7(0x154));}export function buildSqlRelativePath(_0x214ba8,_0x37b95f,_0x1ad6b5,_0x84f817,_0x5d4d97){const _0x5db166=a162_0xf44c,_0x52a59f=buildDbDirectoryName(_0x1ad6b5,_0x5d4d97),_0x4a3630=sanitizeSqlPathSegment(_0x214ba8,_0x5db166(0x158)),_0x6983d0=sanitizeSqlPathSegment(_0x37b95f,_0x4a3630);return _0x52a59f+'/'+_0x4a3630+'_'+_0x6983d0+getSqlFileExtension(_0x84f817);}
1
+ (function(_0x571ab0,_0x441c71){const _0x180400=a162_0x113f,_0x22dd0d=_0x571ab0();while(!![]){try{const _0x24ba25=-parseInt(_0x180400(0xd9))/0x1*(-parseInt(_0x180400(0xe0))/0x2)+parseInt(_0x180400(0xdb))/0x3+-parseInt(_0x180400(0xe5))/0x4+-parseInt(_0x180400(0xe2))/0x5+-parseInt(_0x180400(0xe4))/0x6+-parseInt(_0x180400(0xda))/0x7+parseInt(_0x180400(0xe6))/0x8;if(_0x24ba25===_0x441c71)break;else _0x22dd0d['push'](_0x22dd0d['shift']());}catch(_0x51ce5b){_0x22dd0d['push'](_0x22dd0d['shift']());}}}(a162_0x2432,0x8262f));export function detectSqlMode(_0x16aaa4){const _0x19c7cd=a162_0x113f,_0x189902=_0x16aaa4[_0x19c7cd(0xde)]();if(/^<(select|insert|update|delete)\b/i[_0x19c7cd(0xe3)](_0x189902))return _0x19c7cd(0xdc);return'sql';}export function getSqlFileExtension(_0x3fe10f){const _0x245d62=a162_0x113f;return _0x3fe10f===_0x245d62(0xdc)?'.xml':'.sql';}export function buildDefaultSqlFileName(_0x489006,_0x2c9037){return''+_0x489006+getSqlFileExtension(_0x2c9037);}export function sanitizeSqlPathSegment(_0x16ca99,_0x134d92){const _0x4b0db0=a162_0x113f,_0xb88cf9=String(_0x16ca99??'')['trim'](),_0x2d5d00=_0xb88cf9['replace'](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4b0db0(0xe1)](/\s+/g,'-')['replace'](/-+/g,'-')['replace'](/^\.+/,'')[_0x4b0db0(0xe1)](/\.+$/,'')[_0x4b0db0(0xe1)](/^-+/,'')[_0x4b0db0(0xe1)](/-+$/,'');return _0x2d5d00||_0x134d92;}function a162_0x113f(_0x25487e,_0x4e76cc){_0x25487e=_0x25487e-0xd9;const _0x24324c=a162_0x2432();let _0x113fe5=_0x24324c[_0x25487e];return _0x113fe5;}function a162_0x2432(){const _0x40c5b6=['mybatisXml','unknown-sql','trimStart','unknown-db','1146SqFXBC','replace','3436200gyNUeG','test','1493388UuulJM','473784uRssio','4795896HhFLQv','1793PXXLas','4547473EqdqDi','1834230qEsZxP'];a162_0x2432=function(){return _0x40c5b6;};return a162_0x2432();}export function buildDbDirectoryName(_0x1a5da3,_0x31eb9a){const _0x15f7f4=a162_0x113f;return sanitizeSqlPathSegment(_0x1a5da3,_0x31eb9a!=null?'db-'+_0x31eb9a:_0x15f7f4(0xdf));}export function buildSqlRelativePath(_0x50a7b8,_0x565935,_0x280d9c,_0x26c1fe,_0x41e758){const _0x21c090=a162_0x113f,_0x6de264=buildDbDirectoryName(_0x280d9c,_0x41e758),_0x2468e7=sanitizeSqlPathSegment(_0x50a7b8,_0x21c090(0xdd)),_0xac7241=sanitizeSqlPathSegment(_0x565935,_0x2468e7);return _0x6de264+'/'+_0x2468e7+'_'+_0xac7241+getSqlFileExtension(_0x26c1fe);}
@@ -1 +1 @@
1
- (function(_0x53134c,_0x3b9fd0){const _0x374974=a163_0x3715,_0x332c97=_0x53134c();while(!![]){try{const _0x1957b=parseInt(_0x374974(0xee))/0x1*(-parseInt(_0x374974(0xff))/0x2)+-parseInt(_0x374974(0x104))/0x3+-parseInt(_0x374974(0x101))/0x4*(parseInt(_0x374974(0xfb))/0x5)+-parseInt(_0x374974(0xfc))/0x6+-parseInt(_0x374974(0x105))/0x7+-parseInt(_0x374974(0x112))/0x8+parseInt(_0x374974(0x100))/0x9;if(_0x1957b===_0x3b9fd0)break;else _0x332c97['push'](_0x332c97['shift']());}catch(_0x420b77){_0x332c97['push'](_0x332c97['shift']());}}}(a163_0x2e1f,0x82682));function a163_0x2e1f(){const _0x57faab=['UPDATE','1418RBbgky','INSERT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','test','push','DELETE','toUpperCase','type','\x20query\x20targeting\x20','from','replace','join','SQL\x20content\x20is\x20empty','5DYMywM','2928378lXPBSi','add','WITH','320EtKteA','32704389DlLCMd','4243172kdctdM','trim','match','771957kEvKhB','363552IcbjeK','DDL','\x20with\x20parameters:\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SELECT','isDangerous','length','split','includes','matchAll','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','startsWith','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','8117472HvLVaB','unknown\x20table(s)','reason','UNKNOWN'];a163_0x2e1f=function(){return _0x57faab;};return a163_0x2e1f();}function a163_0x3715(_0x577844,_0xc8c9ca){_0x577844=_0x577844-0xee;const _0x2e1f52=a163_0x2e1f();let _0x3715c9=_0x2e1f52[_0x577844];return _0x3715c9;}export function detectSqlType(_0xb0bf8a){const _0xdf4581=a163_0x3715;if(!_0xb0bf8a?.[_0xdf4581(0x102)]())return{'type':_0xdf4581(0x115),'isSelectOnly':![],'isDangerous':![],'reason':_0xdf4581(0xfa)};const _0x4e67a2=_0xb0bf8a[_0xdf4581(0xf8)](/#\{[^}]*\}/g,'?')[_0xdf4581(0xf8)](/\$\{[^}]*\}/g,'?')[_0xdf4581(0xf8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0xdf4581(0xf8)](/\/\*[\s\S]*?\*\//g,'')[_0xdf4581(0x102)](),_0x132e13=_0x4e67a2[_0xdf4581(0x10c)]('\x0a');let _0x20a50a='';for(const _0x293431 of _0x132e13){const _0x33fd1b=_0x293431[_0xdf4581(0x102)]();if(!_0x33fd1b||_0x33fd1b[_0xdf4581(0x110)]('--')||_0x33fd1b[_0xdf4581(0x110)]('/*'))continue;_0x20a50a=_0x33fd1b;break;}const _0x201842=_0x20a50a[_0xdf4581(0xf4)]();if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0x109))||_0x201842['startsWith'](_0xdf4581(0xfe))){const _0x25fdaf=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0xdf4581(0xf1)](_0x4e67a2);return{'type':_0xdf4581(0x109),'isSelectOnly':!_0x25fdaf,'isDangerous':_0x25fdaf,'reason':_0x25fdaf?_0xdf4581(0x111):undefined};}if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0xef)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x201842['startsWith'](_0xdf4581(0x116)))return{'type':_0xdf4581(0x116),'isSelectOnly':![],'isDangerous':![]};if(_0x201842[_0xdf4581(0x110)](_0xdf4581(0xf3)))return{'type':_0xdf4581(0xf3),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0xdf4581(0xf1)](_0x201842))return{'type':_0xdf4581(0x106),'isSelectOnly':![],'isDangerous':!![],'reason':_0xdf4581(0x10f)};return{'type':_0xdf4581(0x115),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x5b32d1){const _0x43410b=a163_0x3715,_0x55bcc4=_0x5b32d1[_0x43410b(0xf8)](/#\{[^}]*\}/g,'?')[_0x43410b(0xf8)](/\$\{[^}]*\}/g,'?')[_0x43410b(0xf8)](/'[^']*'/g,'\x27\x27')[_0x43410b(0xf8)](/--.*$/gm,'')[_0x43410b(0xf8)](/\/\*[\s\S]*?\*\//g,''),_0x50fe23=[],_0x3981c4=_0x55bcc4[_0x43410b(0x103)](/FROM\s+([^\s,)(]+)/i);if(_0x3981c4?.[0x1])_0x50fe23[_0x43410b(0xf2)](_0x3981c4[0x1][_0x43410b(0xf8)](/[`"]/g,''));for(const _0x5b5669 of _0x55bcc4[_0x43410b(0x10e)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4ac827=_0x5b5669[0x1]?.[_0x43410b(0xf8)](/[`"]/g,'');if(_0x4ac827&&!_0x50fe23[_0x43410b(0x10d)](_0x4ac827))_0x50fe23[_0x43410b(0xf2)](_0x4ac827);}const _0x49d477=_0x55bcc4[_0x43410b(0x103)](/INTO\s+([^\s(]+)/i);if(_0x49d477?.[0x1]){const _0x425fc8=_0x49d477[0x1]['replace'](/[`"]/g,'');if(!_0x50fe23[_0x43410b(0x10d)](_0x425fc8))_0x50fe23['push'](_0x425fc8);}const _0x2d09ad=_0x55bcc4[_0x43410b(0x103)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2d09ad?.[0x1]){const _0x53082d=_0x2d09ad[0x1]['replace'](/[`"]/g,'');if(!_0x50fe23[_0x43410b(0x10d)](_0x53082d))_0x50fe23[_0x43410b(0xf2)](_0x53082d);}return _0x50fe23;}function extractParameters(_0xa2c0df){const _0x59fc17=a163_0x3715,_0x372008=new Set();for(const _0x45e675 of _0xa2c0df[_0x59fc17(0x10e)](/#\{(\w+)\}/g))if(_0x45e675[0x1])_0x372008['add'](_0x45e675[0x1]);for(const _0x3e28c0 of _0xa2c0df[_0x59fc17(0x10e)](/\$\{(\w+)\}/g))if(_0x3e28c0[0x1])_0x372008[_0x59fc17(0xfd)](_0x3e28c0[0x1]);return Array[_0x59fc17(0xf7)](_0x372008);}export function validateSql(_0x3bcd4a){const _0x3b6ca6=a163_0x3715,_0x58cdd5=detectSqlType(_0x3bcd4a),_0x208df7=extractTables(_0x3bcd4a),_0x4de95c=extractParameters(_0x3bcd4a);if(_0x58cdd5[_0x3b6ca6(0x10a)])return{'valid':![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x58cdd5[_0x3b6ca6(0x114)]||_0x58cdd5[_0x3b6ca6(0xf5)]+_0x3b6ca6(0xf0)};if(_0x58cdd5[_0x3b6ca6(0xf5)]===_0x3b6ca6(0x115))return{'valid':![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x3b6ca6(0x108)};return{'valid':!![],'sqlType':_0x58cdd5,'tables':_0x208df7,'parameters':_0x4de95c,'message':_0x58cdd5[_0x3b6ca6(0xf5)]+_0x3b6ca6(0xf6)+(_0x208df7[_0x3b6ca6(0x10b)]?_0x208df7[_0x3b6ca6(0xf9)](',\x20'):_0x3b6ca6(0x113))+(_0x4de95c[_0x3b6ca6(0x10b)]?_0x3b6ca6(0x107)+_0x4de95c['join'](',\x20'):'')};}
1
+ (function(_0x40c825,_0x19057c){const _0x247f58=a163_0x1bff,_0xc8e537=_0x40c825();while(!![]){try{const _0x18fe99=parseInt(_0x247f58(0xcd))/0x1*(-parseInt(_0x247f58(0xe1))/0x2)+-parseInt(_0x247f58(0xd8))/0x3*(-parseInt(_0x247f58(0xeb))/0x4)+parseInt(_0x247f58(0xed))/0x5*(parseInt(_0x247f58(0xee))/0x6)+-parseInt(_0x247f58(0xd4))/0x7+-parseInt(_0x247f58(0xdd))/0x8*(-parseInt(_0x247f58(0xdc))/0x9)+parseInt(_0x247f58(0xd1))/0xa+parseInt(_0x247f58(0xce))/0xb*(-parseInt(_0x247f58(0xd0))/0xc);if(_0x18fe99===_0x19057c)break;else _0xc8e537['push'](_0xc8e537['shift']());}catch(_0x517c99){_0xc8e537['push'](_0xc8e537['shift']());}}}(a163_0x1ec8,0x409d9));export function detectSqlType(_0x247bb4){const _0x3ffe8c=a163_0x1bff;if(!_0x247bb4?.[_0x3ffe8c(0xd6)]())return{'type':_0x3ffe8c(0xe6),'isSelectOnly':![],'isDangerous':![],'reason':_0x3ffe8c(0xe0)};const _0x127bd5=_0x247bb4[_0x3ffe8c(0xda)](/#\{[^}]*\}/g,'?')[_0x3ffe8c(0xda)](/\$\{[^}]*\}/g,'?')[_0x3ffe8c(0xda)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x3ffe8c(0xd6)](),_0x3fed31=_0x127bd5['split']('\x0a');let _0x3ec230='';for(const _0x5b33b6 of _0x3fed31){const _0x25eb39=_0x5b33b6['trim']();if(!_0x25eb39||_0x25eb39[_0x3ffe8c(0xcf)]('--')||_0x25eb39['startsWith']('/*'))continue;_0x3ec230=_0x25eb39;break;}const _0x30b55b=_0x3ec230[_0x3ffe8c(0xe3)]();if(_0x30b55b['startsWith']('SELECT')||_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xd3))){const _0x33811f=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3ffe8c(0xdb)](_0x127bd5);return{'type':_0x3ffe8c(0xd7),'isSelectOnly':!_0x33811f,'isDangerous':_0x33811f,'reason':_0x33811f?_0x3ffe8c(0xc8):undefined};}if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xd2)))return{'type':_0x3ffe8c(0xd2),'isSelectOnly':![],'isDangerous':![]};if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xe2)))return{'type':_0x3ffe8c(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x30b55b[_0x3ffe8c(0xcf)](_0x3ffe8c(0xe9)))return{'type':_0x3ffe8c(0xe9),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3ffe8c(0xc7)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x30b55b))return{'type':_0x3ffe8c(0xd5),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3ffe8c(0xe6),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x453659){const _0x181d47=a163_0x1bff,_0x1f74fa=_0x453659['replace'](/#\{[^}]*\}/g,'?')[_0x181d47(0xda)](/\$\{[^}]*\}/g,'?')[_0x181d47(0xda)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x496cab=[],_0x5467d5=_0x1f74fa[_0x181d47(0xe5)](/FROM\s+([^\s,)(]+)/i);if(_0x5467d5?.[0x1])_0x496cab[_0x181d47(0xea)](_0x5467d5[0x1][_0x181d47(0xda)](/[`"]/g,''));for(const _0x3a4bdd of _0x1f74fa[_0x181d47(0xcc)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x29b67c=_0x3a4bdd[0x1]?.[_0x181d47(0xda)](/[`"]/g,'');if(_0x29b67c&&!_0x496cab['includes'](_0x29b67c))_0x496cab[_0x181d47(0xea)](_0x29b67c);}const _0x30cdc7=_0x1f74fa[_0x181d47(0xe5)](/INTO\s+([^\s(]+)/i);if(_0x30cdc7?.[0x1]){const _0x53d51c=_0x30cdc7[0x1][_0x181d47(0xda)](/[`"]/g,'');if(!_0x496cab[_0x181d47(0xe7)](_0x53d51c))_0x496cab[_0x181d47(0xea)](_0x53d51c);}const _0x738bef=_0x1f74fa[_0x181d47(0xe5)](/UPDATE\s+([^\s,)(]+)/i);if(_0x738bef?.[0x1]){const _0xd0daad=_0x738bef[0x1][_0x181d47(0xda)](/[`"]/g,'');if(!_0x496cab[_0x181d47(0xe7)](_0xd0daad))_0x496cab[_0x181d47(0xea)](_0xd0daad);}return _0x496cab;}function extractParameters(_0x1d640b){const _0x9f7997=a163_0x1bff,_0x2d3242=new Set();for(const _0x54f16c of _0x1d640b['matchAll'](/#\{(\w+)\}/g))if(_0x54f16c[0x1])_0x2d3242[_0x9f7997(0xc6)](_0x54f16c[0x1]);for(const _0x3f9014 of _0x1d640b[_0x9f7997(0xcc)](/\$\{(\w+)\}/g))if(_0x3f9014[0x1])_0x2d3242[_0x9f7997(0xc6)](_0x3f9014[0x1]);return Array[_0x9f7997(0xc9)](_0x2d3242);}function a163_0x1bff(_0x438058,_0x1da48c){_0x438058=_0x438058-0xc6;const _0x1ec829=a163_0x1ec8();let _0x1bffb3=_0x1ec829[_0x438058];return _0x1bffb3;}function a163_0x1ec8(){const _0x18f371=['\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','match','UNKNOWN','includes','join','DELETE','push','4FZfeIs','\x20query\x20targeting\x20','2055Rzmiyd','6918GygEYg','add','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','from','length','unknown\x20table(s)','matchAll','14LINFFY','87439ueNeHr','startsWith','300UdsPFj','827790bLYYcr','INSERT','WITH','3523961VhzUhV','DDL','trim','SELECT','359289SKrGUO','reason','replace','test','197874tahZno','168soMtDF','type','isDangerous','SQL\x20content\x20is\x20empty','24474FKDInn','UPDATE','toUpperCase'];a163_0x1ec8=function(){return _0x18f371;};return a163_0x1ec8();}export function validateSql(_0x1e86ad){const _0x54e13e=a163_0x1bff,_0x31cb02=detectSqlType(_0x1e86ad),_0x5eb7d2=extractTables(_0x1e86ad),_0x406d09=extractParameters(_0x1e86ad);if(_0x31cb02[_0x54e13e(0xdf)])return{'valid':![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':_0x31cb02[_0x54e13e(0xd9)]||_0x31cb02[_0x54e13e(0xde)]+_0x54e13e(0xe4)};if(_0x31cb02[_0x54e13e(0xde)]===_0x54e13e(0xe6))return{'valid':![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x31cb02,'tables':_0x5eb7d2,'parameters':_0x406d09,'message':_0x31cb02[_0x54e13e(0xde)]+_0x54e13e(0xec)+(_0x5eb7d2[_0x54e13e(0xca)]?_0x5eb7d2['join'](',\x20'):_0x54e13e(0xcb))+(_0x406d09[_0x54e13e(0xca)]?'\x20with\x20parameters:\x20'+_0x406d09[_0x54e13e(0xe8)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a164_0x267868=a164_0x3a17;(function(_0x4a0f05,_0x3819ae){const _0xfa73c7=a164_0x3a17,_0x377ada=_0x4a0f05();while(!![]){try{const _0x847e2a=parseInt(_0xfa73c7(0x1d5))/0x1+-parseInt(_0xfa73c7(0x1d2))/0x2*(parseInt(_0xfa73c7(0x1d0))/0x3)+-parseInt(_0xfa73c7(0x1d4))/0x4*(parseInt(_0xfa73c7(0x1db))/0x5)+-parseInt(_0xfa73c7(0x1da))/0x6+-parseInt(_0xfa73c7(0x1d8))/0x7+-parseInt(_0xfa73c7(0x1d7))/0x8+parseInt(_0xfa73c7(0x1d9))/0x9;if(_0x847e2a===_0x3819ae)break;else _0x377ada['push'](_0x377ada['shift']());}catch(_0x507b89){_0x377ada['push'](_0x377ada['shift']());}}}(a164_0x2a4f,0x91caa));function a164_0x2a4f(){const _0x39861d=['36dXyuNz','149074jMhOKI','Run\x20`','4413112WATEtB','5752705TsWFiO','23587416QLLDSA','199968HizLbO','148235GLFsVa','Tip:\x20`','\x0a\x20\x20\x20\x20\x20\x20\x20','Set\x20appcode\x20via\x20`','9SbyVVK','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','332754NsuxYS','join'];a164_0x2a4f=function(){return _0x39861d;};return a164_0x2a4f();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a164_0x3a17(_0x422ac3,_0x77c2c){_0x422ac3=_0x422ac3-0x1cd;const _0x2a4f63=a164_0x2a4f();let _0x3a176f=_0x2a4f63[_0x422ac3];return _0x3a176f;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a164_0x267868(0x1d6)+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a164_0x267868(0x1cf)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a164_0x267868(0x1cd)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.'][a164_0x267868(0x1d3)](a164_0x267868(0x1ce)),'notInProjectHint':a164_0x267868(0x1d1)});
1
+ function a164_0x5223(){const _0x122fed=['44hoJTrE','1709246BsCkxb','30Gstwxn','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1831023AegzmD','16QBUnpT','1168890wzNPPh','80706AHNwmE','\x20auth`\x20to\x20login\x20first.','68138BgZzML','1734867ItchLK','11NzetLQ','Tip:\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x0a\x20\x20\x20\x20\x20\x20\x20','join','1458680VMzZTW'];a164_0x5223=function(){return _0x122fed;};return a164_0x5223();}const a164_0x537dcb=a164_0x3afb;(function(_0x4a5164,_0x54b6ec){const _0x41add4=a164_0x3afb,_0x1d8273=_0x4a5164();while(!![]){try{const _0x5bd26b=parseInt(_0x41add4(0x7b))/0x1*(parseInt(_0x41add4(0x8b))/0x2)+-parseInt(_0x41add4(0x7a))/0x3+-parseInt(_0x41add4(0x80))/0x4+parseInt(_0x41add4(0x83))/0x5*(parseInt(_0x41add4(0x89))/0x6)+parseInt(_0x41add4(0x82))/0x7+parseInt(_0x41add4(0x87))/0x8*(parseInt(_0x41add4(0x86))/0x9)+parseInt(_0x41add4(0x88))/0xa*(parseInt(_0x41add4(0x81))/0xb);if(_0x5bd26b===_0x54b6ec)break;else _0x1d8273['push'](_0x1d8273['shift']());}catch(_0x3cc4eb){_0x1d8273['push'](_0x1d8273['shift']());}}}(a164_0x5223,0x9a15e));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a164_0x3afb(_0x2fcddb,_0x5806fd){_0x2fcddb=_0x2fcddb-0x7a;const _0x5223d4=a164_0x5223();let _0x3afbda=_0x5223d4[_0x2fcddb];return _0x3afbda;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a164_0x537dcb(0x8a),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a164_0x537dcb(0x7d),a164_0x537dcb(0x7c)+CLI_BIN_NAME+a164_0x537dcb(0x85)][a164_0x537dcb(0x7f)](a164_0x537dcb(0x7e)),'notInProjectHint':a164_0x537dcb(0x84)});
@@ -1 +1 @@
1
- function a165_0x38a4(){var _0x3e5195=['7wQhXgR','2WDcxEn','4655124GSRGQK','1299614PsKPQM','33MoMODR','96650NCpVVH','18qxxJvP','212yYfudB','2823210rrKxrI','85220bWIIWP','2357064PRsUKh','6780712KmfTrA'];a165_0x38a4=function(){return _0x3e5195;};return a165_0x38a4();}(function(_0x313cc4,_0x1a9f34){var _0x3649e1=a165_0x2812,_0x33f669=_0x313cc4();while(!![]){try{var _0x5b7c7a=parseInt(_0x3649e1(0x159))/0x1*(-parseInt(_0x3649e1(0x15b))/0x2)+parseInt(_0x3649e1(0x160))/0x3+parseInt(_0x3649e1(0x15f))/0x4*(-parseInt(_0x3649e1(0x155))/0x5)+parseInt(_0x3649e1(0x15a))/0x6+parseInt(_0x3649e1(0x158))/0x7*(parseInt(_0x3649e1(0x157))/0x8)+-parseInt(_0x3649e1(0x15e))/0x9*(parseInt(_0x3649e1(0x15d))/0xa)+parseInt(_0x3649e1(0x15c))/0xb*(parseInt(_0x3649e1(0x156))/0xc);if(_0x5b7c7a===_0x1a9f34)break;else _0x33f669['push'](_0x33f669['shift']());}catch(_0xc2df86){_0x33f669['push'](_0x33f669['shift']());}}}(a165_0x38a4,0xe36af));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x498d40}from'@lovrabet/cli-framework';function a165_0x2812(_0x4de61b,_0x2ac2a0){_0x4de61b=_0x4de61b-0x155;var _0x38a4a5=a165_0x38a4();var _0x2812d2=_0x38a4a5[_0x4de61b];return _0x2812d2;}export function buildAllFlags(_0x1baf34){return a165_0x498d40(_0x1baf34,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ function a165_0x4dfb(_0x588e95,_0x337dcf){_0x588e95=_0x588e95-0xa6;var _0x2ad760=a165_0x2ad7();var _0x4dfb30=_0x2ad760[_0x588e95];return _0x4dfb30;}function a165_0x2ad7(){var _0x2191f2=['147713JazNZV','627648gqKGUj','560492MQEjzs','3tvCIKb','1279936cxoqld','469370wlNCLz','874938mbLQRm','249992Lfinlp'];a165_0x2ad7=function(){return _0x2191f2;};return a165_0x2ad7();}(function(_0x5521a7,_0xc347e3){var _0x5ad08f=a165_0x4dfb,_0x6e76a6=_0x5521a7();while(!![]){try{var _0x3da956=parseInt(_0x5ad08f(0xad))/0x1+parseInt(_0x5ad08f(0xac))/0x2+parseInt(_0x5ad08f(0xa8))/0x3*(parseInt(_0x5ad08f(0xa7))/0x4)+-parseInt(_0x5ad08f(0xaa))/0x5+-parseInt(_0x5ad08f(0xab))/0x6+parseInt(_0x5ad08f(0xa6))/0x7+-parseInt(_0x5ad08f(0xa9))/0x8;if(_0x3da956===_0xc347e3)break;else _0x6e76a6['push'](_0x6e76a6['shift']());}catch(_0x24186b){_0x6e76a6['push'](_0x6e76a6['shift']());}}}(a165_0x2ad7,0x19197));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a165_0x1e6d5b}from'@lovrabet/cli-framework';export function buildAllFlags(_0x1b4041){return a165_0x1e6d5b(_0x1b4041,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a166_0x4ac507=a166_0x128b;(function(_0x40f56c,_0x5dcdab){const _0x24df28=a166_0x128b,_0x213bcb=_0x40f56c();while(!![]){try{const _0x4ab053=-parseInt(_0x24df28(0x1a1))/0x1+-parseInt(_0x24df28(0x1a3))/0x2+parseInt(_0x24df28(0x19b))/0x3+parseInt(_0x24df28(0x1a2))/0x4*(parseInt(_0x24df28(0x1a0))/0x5)+-parseInt(_0x24df28(0x199))/0x6*(-parseInt(_0x24df28(0x19c))/0x7)+-parseInt(_0x24df28(0x19a))/0x8+-parseInt(_0x24df28(0x19f))/0x9*(-parseInt(_0x24df28(0x19e))/0xa);if(_0x4ab053===_0x5dcdab)break;else _0x213bcb['push'](_0x213bcb['shift']());}catch(_0x27ad91){_0x213bcb['push'](_0x213bcb['shift']());}}}(a166_0x5c48,0x81e43));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a166_0x128b(_0x4d6749,_0x40dafb){_0x4d6749=_0x4d6749-0x199;const _0x5c486a=a166_0x5c48();let _0x128b8d=_0x5c486a[_0x4d6749];return _0x128b8d;}const helpers=createFlagHelpers(CliErrors);function a166_0x5c48(){const _0x5d2ba9=['996305VbbVVF','104nbQzXq','1271662vhbeqm','36iJwgLv','5719920cNGFPN','3053820yimhuj','950614oxRJzD','validateFlags','390sQEMbJ','1521ZVUsHG','199965sJhBJN'];a166_0x5c48=function(){return _0x5d2ba9;};return a166_0x5c48();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a166_0x4ac507(0x19d)];
1
+ const a166_0x38a090=a166_0x5472;(function(_0x187b83,_0x3590fb){const _0x1b210b=a166_0x5472,_0x43f02a=_0x187b83();while(!![]){try{const _0x46cd98=parseInt(_0x1b210b(0x66))/0x1*(parseInt(_0x1b210b(0x6a))/0x2)+parseInt(_0x1b210b(0x67))/0x3*(parseInt(_0x1b210b(0x69))/0x4)+-parseInt(_0x1b210b(0x70))/0x5+-parseInt(_0x1b210b(0x68))/0x6*(parseInt(_0x1b210b(0x6c))/0x7)+parseInt(_0x1b210b(0x6b))/0x8+-parseInt(_0x1b210b(0x71))/0x9*(-parseInt(_0x1b210b(0x6f))/0xa)+parseInt(_0x1b210b(0x6d))/0xb;if(_0x46cd98===_0x3590fb)break;else _0x43f02a['push'](_0x43f02a['shift']());}catch(_0x267a19){_0x43f02a['push'](_0x43f02a['shift']());}}}(a166_0x5924,0x6bda6));import{createFlagHelpers}from'@lovrabet/cli-framework';function a166_0x5924(){const _0x390fa9=['6282hONyBS','3SRhbJl','447591fDuZIu','6KeTMSC','12NEWJsa','300968LrIMtG','2401216XxDiuA','3631873dwuPmX','4022623EdQOoO','parseFlags','3680aHQaaK','4305735YnSQlw'];a166_0x5924=function(){return _0x390fa9;};return a166_0x5924();}function a166_0x5472(_0x5e3d77,_0x53ce44){_0x5e3d77=_0x5e3d77-0x66;const _0x59248b=a166_0x5924();let _0x547282=_0x59248b[_0x5e3d77];return _0x547282;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a166_0x38a090(0x6e)];export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a167_0x16c6d1=a167_0x470e;(function(_0x1cc74c,_0x27e1ba){const _0x3f921e=a167_0x470e,_0x5adfd0=_0x1cc74c();while(!![]){try{const _0x498d1b=parseInt(_0x3f921e(0x1ab))/0x1+-parseInt(_0x3f921e(0x1a7))/0x2+parseInt(_0x3f921e(0x1a1))/0x3*(parseInt(_0x3f921e(0x1a3))/0x4)+parseInt(_0x3f921e(0x1a4))/0x5*(parseInt(_0x3f921e(0x19c))/0x6)+-parseInt(_0x3f921e(0x19f))/0x7*(parseInt(_0x3f921e(0x1a5))/0x8)+-parseInt(_0x3f921e(0x19e))/0x9*(-parseInt(_0x3f921e(0x1a8))/0xa)+-parseInt(_0x3f921e(0x1a0))/0xb;if(_0x498d1b===_0x27e1ba)break;else _0x5adfd0['push'](_0x5adfd0['shift']());}catch(_0x2b78e7){_0x5adfd0['push'](_0x5adfd0['shift']());}}}(a167_0x4407,0xed97a));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':_0x1669a5=>serviceGroups[a167_0x16c6d1(0x1a6)](_0x1669a5),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+a167_0x16c6d1(0x1a9),'serviceUsageSuffix':a167_0x16c6d1(0x1aa),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x59eb04){const _0x58693c=a167_0x16c6d1;return generators[_0x58693c(0x19b)](_0x59eb04);}function a167_0x4407(){const _0x519426=['18PmGtnw','generateFullHelp','576616iBKZQW','19070JLvreS','176SJJRDl','get','891502uamvDG','367190qfCqdn','\x20project\x20init`\x20or\x20--appcode).','\x20[args]\x20[flags]','1320308RoHtRq','generateCommandHelp','2478TadSRP','generateServiceHelp','315pVbmxd','294035tzsINm','29727940mvnfUC'];a167_0x4407=function(){return _0x519426;};return a167_0x4407();}function a167_0x470e(_0x255a41,_0x29f0dd){_0x255a41=_0x255a41-0x19b;const _0x440742=a167_0x4407();let _0x470e5e=_0x440742[_0x255a41];return _0x470e5e;}export const generateServiceHelp=generators[a167_0x16c6d1(0x19d)];export const generateFullHelp=generators[a167_0x16c6d1(0x1a2)];
1
+ const a167_0x21ca89=a167_0x483b;(function(_0x1fcc2d,_0x462ce8){const _0x5201a6=a167_0x483b,_0x7c55d0=_0x1fcc2d();while(!![]){try{const _0x51ce47=-parseInt(_0x5201a6(0x109))/0x1*(-parseInt(_0x5201a6(0x10c))/0x2)+-parseInt(_0x5201a6(0x10e))/0x3*(parseInt(_0x5201a6(0x108))/0x4)+parseInt(_0x5201a6(0x10d))/0x5+parseInt(_0x5201a6(0x10f))/0x6*(parseInt(_0x5201a6(0x10a))/0x7)+-parseInt(_0x5201a6(0x105))/0x8*(-parseInt(_0x5201a6(0x110))/0x9)+parseInt(_0x5201a6(0x112))/0xa+-parseInt(_0x5201a6(0x111))/0xb;if(_0x51ce47===_0x462ce8)break;else _0x7c55d0['push'](_0x7c55d0['shift']());}catch(_0x35b4b3){_0x7c55d0['push'](_0x7c55d0['shift']());}}}(a167_0x17cb,0x2f703));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':_0x52de4e=>serviceGroups[a167_0x21ca89(0x107)](_0x52de4e),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a167_0x21ca89(0x104)+CLI_BIN_NAME+'\x20project\x20init`\x20or\x20--appcode).','serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x391b92){const _0x889707=a167_0x21ca89;return generators[_0x889707(0x106)](_0x391b92);}function a167_0x483b(_0x5aa26c,_0x188ebf){_0x5aa26c=_0x5aa26c-0x104;const _0x17cb51=a167_0x17cb();let _0x483b4c=_0x17cb51[_0x5aa26c];return _0x483b4c;}function a167_0x17cb(){const _0x26133e=['Requires\x20appcode\x20(set\x20via\x20`','8auKXHr','generateCommandHelp','get','892whvcet','61ykcXgG','3101mnYuqM','generateFullHelp','214oSjYwg','450970PKmGiB','4191dvnxxA','390yfnKoF','2350332HUJUFk','860618PRiZQs','1974120MFwyRO'];a167_0x17cb=function(){return _0x26133e;};return a167_0x17cb();}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a167_0x21ca89(0x10b)];
@@ -1 +1 @@
1
- (function(_0x4821d8,_0x4ce2f7){var _0x2a70f9=a168_0x4259,_0x234628=_0x4821d8();while(!![]){try{var _0x39542a=parseInt(_0x2a70f9(0x127))/0x1*(parseInt(_0x2a70f9(0x12e))/0x2)+-parseInt(_0x2a70f9(0x129))/0x3+-parseInt(_0x2a70f9(0x12a))/0x4+parseInt(_0x2a70f9(0x12d))/0x5+parseInt(_0x2a70f9(0x12b))/0x6+parseInt(_0x2a70f9(0x128))/0x7+-parseInt(_0x2a70f9(0x12c))/0x8;if(_0x39542a===_0x4ce2f7)break;else _0x234628['push'](_0x234628['shift']());}catch(_0x217bc6){_0x234628['push'](_0x234628['shift']());}}}(a168_0x3d68,0x4f62c));export{runCommand}from'../framework/runner.js';function a168_0x3d68(){var _0x204bf6=['2677605StzRiS','22xrBaoM','18161UkhtGV','1177393OvUFUg','688857iWdwWk','159240gQHCxh','2298750DFmuCP','5536184XvGNTd'];a168_0x3d68=function(){return _0x204bf6;};return a168_0x3d68();}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_0x4259(_0x2861f5,_0x23744b){_0x2861f5=_0x2861f5-0x127;var _0x3d68fb=a168_0x3d68();var _0x4259c9=_0x3d68fb[_0x2861f5];return _0x4259c9;}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x6b2904,_0x355eb1){var _0x17ac36=a168_0x3dd3,_0x1f4661=_0x6b2904();while(!![]){try{var _0x4bc3fb=parseInt(_0x17ac36(0x148))/0x1*(parseInt(_0x17ac36(0x14c))/0x2)+parseInt(_0x17ac36(0x14d))/0x3*(-parseInt(_0x17ac36(0x14a))/0x4)+parseInt(_0x17ac36(0x14f))/0x5*(parseInt(_0x17ac36(0x147))/0x6)+parseInt(_0x17ac36(0x14b))/0x7+-parseInt(_0x17ac36(0x151))/0x8+-parseInt(_0x17ac36(0x150))/0x9*(-parseInt(_0x17ac36(0x149))/0xa)+parseInt(_0x17ac36(0x152))/0xb*(-parseInt(_0x17ac36(0x14e))/0xc);if(_0x4bc3fb===_0x355eb1)break;else _0x1f4661['push'](_0x1f4661['shift']());}catch(_0x34ae46){_0x1f4661['push'](_0x1f4661['shift']());}}}(a168_0x1baf,0xa623f));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';function a168_0x3dd3(_0x223046,_0x2ba678){_0x223046=_0x223046-0x147;var _0x1bafec=a168_0x1baf();var _0x3dd36c=_0x1bafec[_0x223046];return _0x3dd36c;}export{extractList,extractPaging}from'../framework/response.js';function a168_0x1baf(){var _0x323346=['514giIuaD','3waDMCv','55812sHJquD','6428185irovjs','1413ttdMFB','651688BbcJKD','3707hlDMst','6ipgWSr','1567ccpySa','48770rFwfuA','1038704meettX','944930ehCgCR'];a168_0x1baf=function(){return _0x323346;};return a168_0x1baf();}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x46f17e,_0x2500a1){const _0x412ca9=a169_0x2eb6,_0x4ed979=_0x46f17e();while(!![]){try{const _0x21f9da=parseInt(_0x412ca9(0x87))/0x1*(parseInt(_0x412ca9(0x88))/0x2)+-parseInt(_0x412ca9(0x7b))/0x3*(-parseInt(_0x412ca9(0x89))/0x4)+parseInt(_0x412ca9(0x7f))/0x5+parseInt(_0x412ca9(0x7a))/0x6+-parseInt(_0x412ca9(0x7c))/0x7*(parseInt(_0x412ca9(0x7e))/0x8)+parseInt(_0x412ca9(0x82))/0x9*(-parseInt(_0x412ca9(0x83))/0xa)+-parseInt(_0x412ca9(0x84))/0xb;if(_0x21f9da===_0x2500a1)break;else _0x4ed979['push'](_0x4ed979['shift']());}catch(_0x2b9737){_0x4ed979['push'](_0x4ed979['shift']());}}}(a169_0x1f86,0x39de7));function a169_0x2eb6(_0x268c25,_0x5c8949){_0x268c25=_0x268c25-0x7a;const _0x1f86dd=a169_0x1f86();let _0x2eb63b=_0x1f86dd[_0x268c25];return _0x2eb63b;}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a169_0x1f86(){const _0x157729=['917612IPfUmM','24852AhJQuJ','859764ZFmlBX','108RMJKwI','143500qgabEG','message','80ooIbdw','1642020tcemub','url','_notice','51732hmwCbM','160OTWQtf','6821903fyEAHX','pretty','format','1JMUBvt'];a169_0x1f86=function(){return _0x157729;};return a169_0x1f86();}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x412d0b,_0x1278f8){const _0x13322d=a169_0x2eb6,_0x2a9014=_0x412d0b[_0x13322d(0x81)],{_notice:_0x40f683,..._0x443e40}=_0x412d0b;void _0x40f683,baseFormatOutput(_0x443e40,_0x1278f8),_0x1278f8[_0x13322d(0x86)]===_0x13322d(0x85)&&printPrettyNotice(_0x2a9014);}function printPrettyNotice(_0x30fbc5){const _0xd64788=a169_0x2eb6;if(!_0x30fbc5?.['update'])return;console['error'](_0x30fbc5['update'][_0xd64788(0x7d)]+'\x20('+_0x30fbc5['update'][_0xd64788(0x80)]+')');}
1
+ function a169_0x4ddd(_0x97e80,_0x44c690){_0x97e80=_0x97e80-0x1ef;const _0x5d2d62=a169_0x5d2d();let _0x4ddd40=_0x5d2d62[_0x97e80];return _0x4ddd40;}(function(_0x374591,_0x1fc4cc){const _0x1e7f37=a169_0x4ddd,_0x12573c=_0x374591();while(!![]){try{const _0xfae343=parseInt(_0x1e7f37(0x1f0))/0x1+parseInt(_0x1e7f37(0x1fa))/0x2+parseInt(_0x1e7f37(0x1ef))/0x3*(-parseInt(_0x1e7f37(0x1f5))/0x4)+parseInt(_0x1e7f37(0x1f9))/0x5*(-parseInt(_0x1e7f37(0x1f8))/0x6)+-parseInt(_0x1e7f37(0x1fb))/0x7+parseInt(_0x1e7f37(0x1f7))/0x8*(-parseInt(_0x1e7f37(0x1f2))/0x9)+parseInt(_0x1e7f37(0x1f1))/0xa*(parseInt(_0x1e7f37(0x1f6))/0xb);if(_0xfae343===_0x1fc4cc)break;else _0x12573c['push'](_0x12573c['shift']());}catch(_0x59f4d7){_0x12573c['push'](_0x12573c['shift']());}}}(a169_0x5d2d,0xc2504));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x572731,_0x375753){const _0x5bee82=a169_0x4ddd,_0x84e622=_0x572731['_notice'],{_notice:_0x340ba1,..._0x1b50b2}=_0x572731;void _0x340ba1,baseFormatOutput(_0x1b50b2,_0x375753),_0x375753['format']===_0x5bee82(0x1fd)&&printPrettyNotice(_0x84e622);}function printPrettyNotice(_0x185784){const _0x17d786=a169_0x4ddd;if(!_0x185784?.[_0x17d786(0x1fe)])return;console[_0x17d786(0x1f3)](_0x185784[_0x17d786(0x1fe)][_0x17d786(0x1fc)]+'\x20('+_0x185784[_0x17d786(0x1fe)][_0x17d786(0x1f4)]+')');}function a169_0x5d2d(){const _0x1df4b1=['update','2721UaSDTh','1437204vaydUu','30cKjQNg','31356drgCIZ','error','url','6724kxFwjc','8356062hOCxxl','2296dVCeYI','996168XSwvae','5FFPtsx','1295420RMlFee','6141303PEdAKY','message','pretty'];a169_0x5d2d=function(){return _0x1df4b1;};return a169_0x5d2d();}
@@ -1 +1 @@
1
- function a170_0x3d29(){var _0x372ce5=['195146iWVcCo','2394zNviQE','9680dIzKDz','65074RahTKO','18GkVwfg','321570FjsYmi','177728tvVpum','307530ETOJeb','62080xfCqVy','16FVyhCp'];a170_0x3d29=function(){return _0x372ce5;};return a170_0x3d29();}(function(_0x5688df,_0x1b45c4){var _0x31f3c3=a170_0x1761,_0xdfc6f0=_0x5688df();while(!![]){try{var _0x49fc6d=-parseInt(_0x31f3c3(0x190))/0x1+parseInt(_0x31f3c3(0x193))/0x2+parseInt(_0x31f3c3(0x194))/0x3+-parseInt(_0x31f3c3(0x18b))/0x4+-parseInt(_0x31f3c3(0x192))/0x5*(-parseInt(_0x31f3c3(0x191))/0x6)+parseInt(_0x31f3c3(0x18d))/0x7*(parseInt(_0x31f3c3(0x18c))/0x8)+-parseInt(_0x31f3c3(0x18e))/0x9*(parseInt(_0x31f3c3(0x18f))/0xa);if(_0x49fc6d===_0x1b45c4)break;else _0xdfc6f0['push'](_0xdfc6f0['shift']());}catch(_0x3e11bb){_0xdfc6f0['push'](_0xdfc6f0['shift']());}}}(a170_0x3d29,0x18e66));function a170_0x1761(_0x31f1ec,_0x19af47){_0x31f1ec=_0x31f1ec-0x18b;var _0x3d29e2=a170_0x3d29();var _0x17617a=_0x3d29e2[_0x31f1ec];return _0x17617a;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ (function(_0xc60b1d,_0x504698){var _0x1b2c11=a170_0x303b,_0x38a370=_0xc60b1d();while(!![]){try{var _0x1920ca=-parseInt(_0x1b2c11(0x13e))/0x1*(parseInt(_0x1b2c11(0x13f))/0x2)+parseInt(_0x1b2c11(0x139))/0x3+parseInt(_0x1b2c11(0x13a))/0x4+parseInt(_0x1b2c11(0x13b))/0x5*(parseInt(_0x1b2c11(0x138))/0x6)+-parseInt(_0x1b2c11(0x141))/0x7+-parseInt(_0x1b2c11(0x13c))/0x8+-parseInt(_0x1b2c11(0x140))/0x9*(-parseInt(_0x1b2c11(0x13d))/0xa);if(_0x1920ca===_0x504698)break;else _0x38a370['push'](_0x38a370['shift']());}catch(_0x1f2e78){_0x38a370['push'](_0x38a370['shift']());}}}(a170_0x4201,0x99ae5));function a170_0x303b(_0xe53138,_0x5d92a3){_0xe53138=_0xe53138-0x138;var _0x4201c4=a170_0x4201();var _0x303bde=_0x4201c4[_0xe53138];return _0x303bde;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a170_0x4201(){var _0x5bee65=['10LPXCKc','185956CeocPD','2BnaaMR','5583105MHNzqg','4050998xLpZms','462414YcNhVs','575511nxhqms','4092332TOuvbT','5DzMKEh','4145496FswEKB'];a170_0x4201=function(){return _0x5bee65;};return a170_0x4201();}
@@ -1 +1 @@
1
- (function(_0x5b76eb,_0x3c04e2){const _0xa3aadb=a171_0x4866,_0x26d4ef=_0x5b76eb();while(!![]){try{const _0x26294c=-parseInt(_0xa3aadb(0x15b))/0x1*(parseInt(_0xa3aadb(0x15a))/0x2)+parseInt(_0xa3aadb(0x154))/0x3*(-parseInt(_0xa3aadb(0x164))/0x4)+-parseInt(_0xa3aadb(0x162))/0x5*(-parseInt(_0xa3aadb(0x167))/0x6)+-parseInt(_0xa3aadb(0x166))/0x7*(-parseInt(_0xa3aadb(0x160))/0x8)+parseInt(_0xa3aadb(0x150))/0x9*(-parseInt(_0xa3aadb(0x15c))/0xa)+parseInt(_0xa3aadb(0x161))/0xb*(parseInt(_0xa3aadb(0x153))/0xc)+-parseInt(_0xa3aadb(0x155))/0xd;if(_0x26294c===_0x3c04e2)break;else _0x26d4ef['push'](_0x26d4ef['shift']());}catch(_0x3a9f92){_0x26d4ef['push'](_0x26d4ef['shift']());}}}(a171_0x574c,0x6b323));import{CliErrors}from'../errors.js';function a171_0x574c(){const _0x10e2d2=['1267760WPAbFG','66yMYCFQ','5FKliLn','Available\x20aliases:\x20','2644hjlvMk','`\x20requires\x20either\x20--code\x20or\x20--alias.','21XMGGHV','4017798OuNrKR','validation','flags','some','.\x20Run\x20`','Unknown\x20alias\x20\x22','224622CRncjr','No\x20api.ts\x20found\x20in\x20','\x20api\x20pull`\x20first.','1257564fkVXfD','2226aQvfEd','10451064aSkmcI','type','name','alias','map','906NHAkKW','34fmvmJf','10TCmCrX','code','string','\x22.\x20'];a171_0x574c=function(){return _0x10e2d2;};return a171_0x574c();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a171_0x4866(_0x594573,_0x4dcbee){_0x594573=_0x594573-0x14d;const _0x574c99=a171_0x574c();let _0x486682=_0x574c99[_0x594573];return _0x486682;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4aeebe,_0xf38d9c,_0x399919,_0x17839a){const _0x38f159=a171_0x4866,_0x33e581=_0x4aeebe[_0x38f159(0x169)][_0x38f159(0x14d)](_0x43bdcb=>_0x43bdcb[_0x38f159(0x157)]===_0x38f159(0x15d)&&_0x43bdcb[_0x38f159(0x156)]===_0x38f159(0x15e)),_0x40111d=_0x4aeebe[_0x38f159(0x169)][_0x38f159(0x14d)](_0x243565=>_0x243565[_0x38f159(0x157)]==='alias'&&_0x243565[_0x38f159(0x156)]===_0x38f159(0x15e));if(!_0x33e581||!_0x40111d)return;const _0x1da170=_0xf38d9c[_0x38f159(0x15d)]?String(_0xf38d9c['code']):'',_0x253738=_0xf38d9c[_0x38f159(0x158)]?String(_0xf38d9c[_0x38f159(0x158)]):'';if(!_0x1da170&&!_0x253738)throw CliErrors[_0x38f159(0x168)]('`'+_0x17839a+_0x38f159(0x165));if(_0x253738&&!_0x1da170){const _0x54ee1b=resolveAlias(_0x399919,_0x253738);if(!_0x54ee1b){const _0xe7db49=listAliases(_0x399919)[_0x38f159(0x159)](_0x350c11=>_0x350c11[_0x38f159(0x158)]),_0x4b33a3=_0xe7db49['length']?_0x38f159(0x163)+_0xe7db49['join'](',\x20'):_0x38f159(0x151)+_0x399919+_0x38f159(0x14e)+CLI_BIN_NAME+_0x38f159(0x152);throw CliErrors[_0x38f159(0x168)](_0x38f159(0x14f)+_0x253738+_0x38f159(0x15f)+_0x4b33a3);}_0xf38d9c[_0x38f159(0x15d)]=_0x54ee1b;}}
1
+ (function(_0x8da265,_0x5e5ac6){const _0x1ed614=a171_0x87c5,_0x26daf9=_0x8da265();while(!![]){try{const _0xf3ba8=-parseInt(_0x1ed614(0x127))/0x1+-parseInt(_0x1ed614(0x13b))/0x2+-parseInt(_0x1ed614(0x12f))/0x3+parseInt(_0x1ed614(0x129))/0x4*(parseInt(_0x1ed614(0x12d))/0x5)+-parseInt(_0x1ed614(0x133))/0x6+-parseInt(_0x1ed614(0x13c))/0x7*(parseInt(_0x1ed614(0x139))/0x8)+parseInt(_0x1ed614(0x134))/0x9;if(_0xf3ba8===_0x5e5ac6)break;else _0x26daf9['push'](_0x26daf9['shift']());}catch(_0x26f47a){_0x26daf9['push'](_0x26daf9['shift']());}}}(a171_0x2742,0xdc8f8));function a171_0x87c5(_0x392756,_0x2723d9){_0x392756=_0x392756-0x127;const _0x27422a=a171_0x2742();let _0x87c55e=_0x27422a[_0x392756];return _0x87c55e;}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a171_0x2742(){const _0x2978eb=['.\x20Run\x20`','3361292mhtQHw','511yxmwKG','flags','238838QzMirN','length','507856ZEfEBA','`\x20requires\x20either\x20--code\x20or\x20--alias.','string','Unknown\x20alias\x20\x22','45KwJZpd','alias','1136301ErfUyR','type','join','\x22.\x20','2837508LuTvKN','34185474cyaKna','code','\x20api\x20pull`\x20first.','name','validation','138792CDdckX'];a171_0x2742=function(){return _0x2978eb;};return a171_0x2742();}export function resolveAliasToCode(_0x23529c,_0x335b6a,_0x571fc8,_0x4b7be7){const _0x452bb=a171_0x87c5,_0x49ede=_0x23529c[_0x452bb(0x13d)]['some'](_0x346111=>_0x346111[_0x452bb(0x137)]===_0x452bb(0x135)&&_0x346111[_0x452bb(0x130)]==='string'),_0x4bd510=_0x23529c[_0x452bb(0x13d)]['some'](_0x5d4e58=>_0x5d4e58['name']===_0x452bb(0x12e)&&_0x5d4e58[_0x452bb(0x130)]===_0x452bb(0x12b));if(!_0x49ede||!_0x4bd510)return;const _0x4e653e=_0x335b6a[_0x452bb(0x135)]?String(_0x335b6a[_0x452bb(0x135)]):'',_0x9b50b4=_0x335b6a[_0x452bb(0x12e)]?String(_0x335b6a[_0x452bb(0x12e)]):'';if(!_0x4e653e&&!_0x9b50b4)throw CliErrors['validation']('`'+_0x4b7be7+_0x452bb(0x12a));if(_0x9b50b4&&!_0x4e653e){const _0x189f20=resolveAlias(_0x571fc8,_0x9b50b4);if(!_0x189f20){const _0x491c44=listAliases(_0x571fc8)['map'](_0x264035=>_0x264035[_0x452bb(0x12e)]),_0xf02418=_0x491c44[_0x452bb(0x128)]?'Available\x20aliases:\x20'+_0x491c44[_0x452bb(0x131)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x571fc8+_0x452bb(0x13a)+CLI_BIN_NAME+_0x452bb(0x136);throw CliErrors[_0x452bb(0x138)](_0x452bb(0x12c)+_0x9b50b4+_0x452bb(0x132)+_0xf02418);}_0x335b6a[_0x452bb(0x135)]=_0x189f20;}}
@@ -1 +1 @@
1
- const a172_0x472e31=a172_0x313f;(function(_0x230837,_0x3068ad){const _0x99d381=a172_0x313f,_0x1b2881=_0x230837();while(!![]){try{const _0x4caa97=parseInt(_0x99d381(0x192))/0x1+-parseInt(_0x99d381(0x19c))/0x2+-parseInt(_0x99d381(0x18b))/0x3+-parseInt(_0x99d381(0x1a5))/0x4*(parseInt(_0x99d381(0x1a6))/0x5)+parseInt(_0x99d381(0x1b2))/0x6*(-parseInt(_0x99d381(0x1ba))/0x7)+-parseInt(_0x99d381(0x19a))/0x8*(parseInt(_0x99d381(0x1b5))/0x9)+-parseInt(_0x99d381(0x198))/0xa*(-parseInt(_0x99d381(0x19f))/0xb);if(_0x4caa97===_0x3068ad)break;else _0x1b2881['push'](_0x1b2881['shift']());}catch(_0x3b8953){_0x1b2881['push'](_0x1b2881['shift']());}}}(a172_0x9ec2,0x5d327));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';function a172_0x9ec2(){const _0x4a75a0=['../core/api-client.js','616870rvSrYi','command','format','configMissing','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','trim','830GNdDsf','defaultApp','119368yZjKhM','appcode','1005320USOkQF','Set\x20appcode\x20via\x20`','resolveAppCode','286429IvOfJx','nonInteractive','doctor','value','selectedAppName','verbose','4GSQpqY','3109390xLxGbZ','execute','_notice','pageSize','filter','requiresAppCode','service','cookie','validation','update','resolve','resolveApiDomain','6mYHWnh','apps','High-risk\x20operation\x20`','306qVooPf','LOVRABET_APPCODE','defaultPageSize','cancelled','mergedCli','1756664uCRYAc','resolveCookie','⚠\x20\x20High-risk\x20operation:\x20','pretty','riskLevel','requiresAuth','apiDir','object','has','1540704lSNaRl','appCode','defaultVerbose','name','schema','map'];a172_0x9ec2=function(){return _0x4a75a0;};return a172_0x9ec2();}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_0x215980}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';function a172_0x313f(_0x2b1c2f,_0x77f8ae){_0x2b1c2f=_0x2b1c2f-0x185;const _0x9ec257=a172_0x9ec2();let _0x313fc6=_0x9ec257[_0x2b1c2f];return _0x313fc6;}import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x550ce6){const _0x313b7d=a172_0x313f;return typeof _0x550ce6==='string'&&_0x550ce6['trim']()?_0x550ce6[_0x313b7d(0x197)]():undefined;}function resolveEnvAppCode(){const _0x2d86c8=a172_0x313f,_0x132add=stringFlag(process.env.RABETBASE_APPCODE);if(_0x132add)return{'name':'RABETBASE_APPCODE','value':_0x132add};const _0x23a192=stringFlag(process.env.LOVRABET_APPCODE);if(_0x23a192)return{'name':_0x2d86c8(0x1b6),'value':_0x23a192};return undefined;}function hasExplicitAppCode(_0x3ce561,_0x12c80e){const _0x408ce2=a172_0x313f;return!!(stringFlag(_0x3ce561[_0x408ce2(0x19b)])||stringFlag(_0x12c80e[_0x408ce2(0x19b)]));}function assertEnvAppCodeNotIgnored(_0xafaa80,_0x251531,_0x259017){const _0x5a9546=a172_0x313f;if(!_0x251531||_0x259017||_0xafaa80===_0x251531[_0x5a9546(0x1a2)])return;const _0x815c14=_0xafaa80?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0xafaa80+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x5a9546(0x1ae)](_0x251531[_0x5a9546(0x18e)]+'='+_0x251531[_0x5a9546(0x1a2)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x815c14+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x251531[_0x5a9546(0x18e)]+'\x22.'));}export function createPipelineEnv(_0xb94de9,_0x499179,_0x23b015=[]){const _0x50617c=a172_0x313f;return{'rawFlags':_0x499179,'args':_0x23b015,'resolveAppCode':()=>_0xb94de9[_0x50617c(0x18c)],'resolveCookie':()=>_0xb94de9[_0x50617c(0x1ad)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x215980(_0x499179),'defaultFormat':_0xb94de9[_0x50617c(0x194)],'defaultPageSize':_0xb94de9[_0x50617c(0x1a9)],'defaultVerbose':_0xb94de9[_0x50617c(0x1a4)],'apiDir':_0xb94de9['apiDir'],'riskLevel':_0xb94de9[_0x50617c(0x186)],'selectedAppName':_0xb94de9['explicitAppName'],'mergedCli':{'defaultApp':_0xb94de9[_0x50617c(0x199)],'currentApp':_0xb94de9['currentApp'],'appCode':_0xb94de9[_0x50617c(0x18c)],'apps':_0xb94de9[_0x50617c(0x1b3)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x472e31(0x1aa)](_0x876d5d=>PIPELINE_FLAG_NAMES[a172_0x472e31(0x18a)](_0x876d5d['name']))[a172_0x472e31(0x190)](({name:_0x4709f6,type:_0x24a379,description:_0x42a261})=>({'name':_0x4709f6,'type':_0x24a379,'description':_0x42a261})),'formatOutput':formatOutput,'getCommandLabel'(_0x484a6f){const _0x10ea46=a172_0x472e31;return CLI_BIN_NAME+'\x20'+_0x484a6f[_0x10ea46(0x1ac)]+'\x20'+_0x484a6f[_0x10ea46(0x193)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0xd0e2){const _0x59c30d=a172_0x472e31;return CliErrors[_0x59c30d(0x1ae)](_0xd0e2);}},async 'prepare'(_0x4f4340,_0x30df7f,_0x52c974,_0x27d7e0){const _0x261dc5=a172_0x472e31,_0x581941=_0x30df7f[_0x261dc5(0x188)]||DEFAULT_API_DIR;resolveAliasToCode(_0x4f4340,_0x52c974,_0x581941,_0x27d7e0);let _0x228ed9='';if(_0x4f4340[_0x261dc5(0x187)]!==![]){_0x228ed9=_0x30df7f[_0x261dc5(0x1bb)]();if(!_0x228ed9)throw CliErrors['authRequired']();const {setActiveCookie:_0x5d7501}=await import(_0x261dc5(0x191));_0x5d7501(_0x228ed9);}const _0x20e1c3=_0x30df7f[_0x261dc5(0x19e)]()??'';if(_0x4f4340[_0x261dc5(0x1ab)]!==![]){assertEnvAppCodeNotIgnored(_0x20e1c3,resolveEnvAppCode(),hasExplicitAppCode(_0x52c974,_0x30df7f['rawFlags']));if(!_0x20e1c3)throw CliErrors[_0x261dc5(0x195)](_0x261dc5(0x19d)+CLI_BIN_NAME+_0x261dc5(0x196));}return{'defaults':{'booleans':{'verbose':_0x30df7f[_0x261dc5(0x18d)]},'numbers':{'pagesize':_0x30df7f[_0x261dc5(0x1b7)]}},'extras':{'appCode':_0x20e1c3,'cookie':_0x228ed9,'apiDomain':_0x30df7f[_0x261dc5(0x1b1)](),'apiDir':_0x581941,'selectedAppName':_0x30df7f[_0x261dc5(0x1a3)],'mergedCli':_0x30df7f[_0x261dc5(0x1b9)]}};},async 'confirmHighRisk'({env:_0x5b2d7a,commandLabel:_0x2643ad}){const _0x2b7a1a=a172_0x472e31;if(_0x5b2d7a['isNonInteractive'])throw CliErrors[_0x2b7a1a(0x1ae)](_0x2b7a1a(0x1b4)+_0x2643ad+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x2b7a1a(0x1bc)+_0x2643ad,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0xd9db7e=>CliErrors[_0x2b7a1a(0x1b8)](_0xd9db7e)});},async 'finalize'(){const _0x50978e=a172_0x472e31,{clearActiveCookie:_0x1b07f7}=await import(_0x50978e(0x191));_0x1b07f7();}};export async function runCommand(_0x254a78,_0x4dcb89){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x254a78)?withUpdateNotice(_0x254a78):_0x254a78,_0x4dcb89,runnerAdapter);}function shouldAttachUpdateNotice(_0xf7cce){const _0x1002be=a172_0x472e31;if(_0xf7cce['hasFormat']===![])return![];return![_0x1002be(0x1af),_0x1002be(0x18f),_0x1002be(0x1a1)]['includes'](_0xf7cce[_0x1002be(0x1ac)]);}function withUpdateNotice(_0x26770d){return{..._0x26770d,async 'execute'(_0x4c1b81){const _0x1e2eda=a172_0x313f,_0x1f31fd=shouldResolveUpdateNotice(_0x4c1b81)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1e2eda(0x1b0)](null),_0x4acaf6=await _0x26770d[_0x1e2eda(0x1a7)](_0x4c1b81);return attachUpdateNotice(_0x4acaf6,await _0x1f31fd);}};}function shouldResolveUpdateNotice(_0x430b09){const _0x50ae55=a172_0x472e31;return _0x430b09[_0x50ae55(0x194)]===_0x50ae55(0x185)&&!_0x430b09[_0x50ae55(0x1a0)];}function attachUpdateNotice(_0x10e1dd,_0x36a509){const _0x5d32b4=a172_0x472e31;if(!_0x36a509||!_0x10e1dd||typeof _0x10e1dd!==_0x5d32b4(0x189))return _0x10e1dd;const _0x3ca431=_0x10e1dd,_0x309464=typeof _0x3ca431[_0x5d32b4(0x1a8)]==='object'&&_0x3ca431['_notice']!==null?_0x3ca431[_0x5d32b4(0x1a8)]:{};return{..._0x3ca431,'_notice':{..._0x309464,'update':_0x36a509}};}
1
+ const a172_0x122747=a172_0x93a0;function a172_0x93a0(_0x259b31,_0x5e1e8a){_0x259b31=_0x259b31-0x89;const _0x14e56f=a172_0x14e5();let _0x93a045=_0x14e56f[_0x259b31];return _0x93a045;}(function(_0x25dd7a,_0x293918){const _0x4a8a22=a172_0x93a0,_0x297179=_0x25dd7a();while(!![]){try{const _0x43719d=-parseInt(_0x4a8a22(0xb6))/0x1*(-parseInt(_0x4a8a22(0xb5))/0x2)+parseInt(_0x4a8a22(0xab))/0x3*(-parseInt(_0x4a8a22(0x8b))/0x4)+parseInt(_0x4a8a22(0xc2))/0x5+parseInt(_0x4a8a22(0xb7))/0x6*(-parseInt(_0x4a8a22(0x9b))/0x7)+-parseInt(_0x4a8a22(0xa5))/0x8*(-parseInt(_0x4a8a22(0x92))/0x9)+-parseInt(_0x4a8a22(0xa6))/0xa*(-parseInt(_0x4a8a22(0xc5))/0xb)+-parseInt(_0x4a8a22(0x9a))/0xc;if(_0x43719d===_0x293918)break;else _0x297179['push'](_0x297179['shift']());}catch(_0xbf184d){_0x297179['push'](_0x297179['shift']());}}}(a172_0x14e5,0x8316d));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_0x18f484}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x1518e2){const _0x74223d=a172_0x93a0;return typeof _0x1518e2===_0x74223d(0x98)&&_0x1518e2[_0x74223d(0x95)]()?_0x1518e2[_0x74223d(0x95)]():undefined;}function resolveEnvAppCode(){const _0x323b2d=a172_0x93a0,_0x436de0=stringFlag(process.env.RABETBASE_APPCODE);if(_0x436de0)return{'name':'RABETBASE_APPCODE','value':_0x436de0};const _0x15cce4=stringFlag(process.env.LOVRABET_APPCODE);if(_0x15cce4)return{'name':_0x323b2d(0xad),'value':_0x15cce4};return undefined;}function hasExplicitAppCode(_0x19035e,_0x1cc151){const _0x3154e0=a172_0x93a0;return!!(stringFlag(_0x19035e[_0x3154e0(0xb3)])||stringFlag(_0x1cc151[_0x3154e0(0xb3)]));}function assertEnvAppCodeNotIgnored(_0x2c4ae6,_0x57e7ee,_0x4be1dd){const _0x39768e=a172_0x93a0;if(!_0x57e7ee||_0x4be1dd||_0x2c4ae6===_0x57e7ee[_0x39768e(0xc0)])return;const _0x4b80fa=_0x2c4ae6?_0x39768e(0xc4)+_0x2c4ae6+'\x22.':_0x39768e(0xa7);throw CliErrors[_0x39768e(0xc6)](_0x57e7ee[_0x39768e(0xc3)]+'='+_0x57e7ee[_0x39768e(0xc0)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x4b80fa+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x57e7ee[_0x39768e(0xc3)]+'\x22.'));}export function createPipelineEnv(_0x3488f9,_0x43bdf6,_0x278e8e=[]){const _0x520373=a172_0x93a0;return{'rawFlags':_0x43bdf6,'args':_0x278e8e,'resolveAppCode':()=>_0x3488f9[_0x520373(0xa1)],'resolveCookie':()=>_0x3488f9[_0x520373(0xbf)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a172_0x18f484(_0x43bdf6),'defaultFormat':_0x3488f9[_0x520373(0x89)],'defaultPageSize':_0x3488f9[_0x520373(0xae)],'defaultVerbose':_0x3488f9['verbose'],'apiDir':_0x3488f9['apiDir'],'riskLevel':_0x3488f9[_0x520373(0xc1)],'selectedAppName':_0x3488f9[_0x520373(0x9d)],'mergedCli':{'defaultApp':_0x3488f9[_0x520373(0xa3)],'currentApp':_0x3488f9[_0x520373(0xb8)],'appCode':_0x3488f9[_0x520373(0xa1)],'apps':_0x3488f9['apps']}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a172_0x122747(0x9f)](_0x156b87=>PIPELINE_FLAG_NAMES[a172_0x122747(0x8a)](_0x156b87[a172_0x122747(0xc3)]))[a172_0x122747(0xbb)](({name:_0x59808d,type:_0x4c0a4d,description:_0x453d25})=>({'name':_0x59808d,'type':_0x4c0a4d,'description':_0x453d25})),'formatOutput':formatOutput,'getCommandLabel'(_0x53e8ae){return CLI_BIN_NAME+'\x20'+_0x53e8ae['service']+'\x20'+_0x53e8ae['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x97c805){const _0x2eb1e8=a172_0x122747;return CliErrors[_0x2eb1e8(0xc6)](_0x97c805);}},async 'prepare'(_0x25cec0,_0xb097a4,_0x1e7688,_0x11e096){const _0x3d783d=a172_0x122747,_0x2cad1d=_0xb097a4[_0x3d783d(0x93)]||DEFAULT_API_DIR;resolveAliasToCode(_0x25cec0,_0x1e7688,_0x2cad1d,_0x11e096);let _0x217cc6='';if(_0x25cec0[_0x3d783d(0xbd)]!==![]){_0x217cc6=_0xb097a4['resolveCookie']();if(!_0x217cc6)throw CliErrors[_0x3d783d(0x9e)]();const {setActiveCookie:_0x22bb52}=await import(_0x3d783d(0xa4));_0x22bb52(_0x217cc6);}const _0x133ec0=_0xb097a4[_0x3d783d(0x8c)]()??'';if(_0x25cec0[_0x3d783d(0xa0)]!==![]){assertEnvAppCodeNotIgnored(_0x133ec0,resolveEnvAppCode(),hasExplicitAppCode(_0x1e7688,_0xb097a4[_0x3d783d(0xb2)]));if(!_0x133ec0)throw CliErrors[_0x3d783d(0x96)](_0x3d783d(0x8f)+CLI_BIN_NAME+_0x3d783d(0xba));}return{'defaults':{'booleans':{'verbose':_0xb097a4['defaultVerbose']},'numbers':{'pagesize':_0xb097a4[_0x3d783d(0xb4)]}},'extras':{'appCode':_0x133ec0,'cookie':_0x217cc6,'apiDomain':_0xb097a4[_0x3d783d(0xbc)](),'apiDir':_0x2cad1d,'selectedAppName':_0xb097a4[_0x3d783d(0x8e)],'mergedCli':_0xb097a4[_0x3d783d(0xaa)]}};},async 'confirmHighRisk'({env:_0x1ad582,commandLabel:_0x2c5910}){const _0x4b58c6=a172_0x122747;if(_0x1ad582[_0x4b58c6(0xa2)])throw CliErrors[_0x4b58c6(0xc6)](_0x4b58c6(0xb0)+_0x2c5910+_0x4b58c6(0xa8));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x2c5910,_0x4b58c6(0x97)],'createCancelledError':_0x497832=>CliErrors[_0x4b58c6(0x90)](_0x497832)});},async 'finalize'(){const {clearActiveCookie:_0x485c75}=await import('../core/api-client.js');_0x485c75();}};export async function runCommand(_0x4e483e,_0x31c960){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4e483e)?withUpdateNotice(_0x4e483e):_0x4e483e,_0x31c960,runnerAdapter);}function shouldAttachUpdateNotice(_0x1e3ed5){const _0x2e960e=a172_0x122747;if(_0x1e3ed5[_0x2e960e(0x8d)]===![])return![];return![_0x2e960e(0x9c),_0x2e960e(0xac),_0x2e960e(0x91)][_0x2e960e(0x99)](_0x1e3ed5[_0x2e960e(0xb9)]);}function withUpdateNotice(_0x139815){return{..._0x139815,async 'execute'(_0x368249){const _0x3c5ed9=a172_0x93a0,_0x22ab4a=shouldResolveUpdateNotice(_0x368249)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x3c5ed9(0x94)](null),_0x57009a=await _0x139815[_0x3c5ed9(0xaf)](_0x368249);return attachUpdateNotice(_0x57009a,await _0x22ab4a);}};}function shouldResolveUpdateNotice(_0x1f7612){const _0x216a05=a172_0x122747;return _0x1f7612['format']===_0x216a05(0xb1)&&!_0x1f7612['nonInteractive'];}function a172_0x14e5(){const _0x5de8d4=['selectedAppName','Set\x20appcode\x20via\x20`','cancelled','doctor','282816IADLgs','apiDir','resolve','trim','configMissing','\x20\x20\x20Continue?\x20[y/N]\x20','string','includes','3746952LmJpxM','54404cnLbbl','update','explicitAppName','authRequired','filter','requiresAppCode','appCode','isNonInteractive','defaultApp','../core/api-client.js','96ntsvmo','5750xHdeAV','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','_notice','mergedCli','372LqeeJR','schema','LOVRABET_APPCODE','pageSize','execute','High-risk\x20operation\x20`','pretty','rawFlags','appcode','defaultPageSize','2ShLdCZ','775673BPYlAh','504PsyEIJ','currentApp','service','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','map','resolveApiDomain','requiresAuth','object','cookie','value','riskLevel','365435GBrPEN','name','Current\x20resolved\x20appcode\x20is\x20\x22','10175WxzyNd','validation','format','has','8248JXUztt','resolveAppCode','hasFormat'];a172_0x14e5=function(){return _0x5de8d4;};return a172_0x14e5();}function attachUpdateNotice(_0x2b93e5,_0x4c00a5){const _0x1ef943=a172_0x122747;if(!_0x4c00a5||!_0x2b93e5||typeof _0x2b93e5!==_0x1ef943(0xbe))return _0x2b93e5;const _0x403c8f=_0x2b93e5,_0x161b79=typeof _0x403c8f['_notice']==='object'&&_0x403c8f['_notice']!==null?_0x403c8f[_0x1ef943(0xa9)]:{};return{..._0x403c8f,'_notice':{..._0x161b79,'update':_0x4c00a5}};}
@@ -1 +1 @@
1
- (function(_0x12611a,_0x1aa4ad){const _0x6764c=a173_0x4833,_0x3d8ff4=_0x12611a();while(!![]){try{const _0x162afd=parseInt(_0x6764c(0x7b))/0x1+-parseInt(_0x6764c(0x81))/0x2*(parseInt(_0x6764c(0x7c))/0x3)+parseInt(_0x6764c(0x80))/0x4+-parseInt(_0x6764c(0x7a))/0x5*(-parseInt(_0x6764c(0x79))/0x6)+parseInt(_0x6764c(0x83))/0x7+-parseInt(_0x6764c(0x7d))/0x8+-parseInt(_0x6764c(0x82))/0x9*(parseInt(_0x6764c(0x7e))/0xa);if(_0x162afd===_0x1aa4ad)break;else _0x3d8ff4['push'](_0x3d8ff4['shift']());}catch(_0x5aaff4){_0x3d8ff4['push'](_0x3d8ff4['shift']());}}}(a173_0x104e,0x31a8b));function a173_0x104e(){const _0x3bf153=['1963682JGVdEO','320154xmUoSo','10uFxJLI','239175zkMwNU','2754uEierW','249648FJDVUp','1930iTZZnf','../commands/registry.js','657204wpfAub','202fYNnYc','21609rmEVKB'];a173_0x104e=function(){return _0x3bf153;};return a173_0x104e();}function a173_0x4833(_0xc30cf1,_0x4098b8){_0xc30cf1=_0xc30cf1-0x79;const _0x104e2c=a173_0x104e();let _0x483325=_0x104e2c[_0xc30cf1];return _0x483325;}import{buildSchemaPayload as a173_0x14e393}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x4de8ad=a173_0x4833,{serviceRegistry:_0x2a3cf1,findDefinition:_0x3efe5f}=await import(_0x4de8ad(0x7f));return a173_0x14e393({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x2a3cf1,'buildAllFlags':buildAllFlags,'findDefinition':_0x3efe5f});}
1
+ function a173_0x3d1e(_0x20ccef,_0x5b1c39){_0x20ccef=_0x20ccef-0x1d5;const _0x2bc828=a173_0x2bc8();let _0x3d1e07=_0x2bc828[_0x20ccef];return _0x3d1e07;}(function(_0x392462,_0x3037c2){const _0x5f40b6=a173_0x3d1e,_0x4da308=_0x392462();while(!![]){try{const _0x463160=parseInt(_0x5f40b6(0x1db))/0x1+-parseInt(_0x5f40b6(0x1da))/0x2+parseInt(_0x5f40b6(0x1d8))/0x3+parseInt(_0x5f40b6(0x1d6))/0x4+-parseInt(_0x5f40b6(0x1d5))/0x5+-parseInt(_0x5f40b6(0x1d7))/0x6+parseInt(_0x5f40b6(0x1d9))/0x7;if(_0x463160===_0x3037c2)break;else _0x4da308['push'](_0x4da308['shift']());}catch(_0x5cffbf){_0x4da308['push'](_0x4da308['shift']());}}}(a173_0x2bc8,0xc1a89));import{buildSchemaPayload as a173_0x1c398b}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_0x2bc8(){const _0x27a712=['353148cEmRrt','24629437zvtMKB','2958040qzBjsW','443601VEkryu','6637825bFWJCG','1680892cvuGcw','5401326tSobyC'];a173_0x2bc8=function(){return _0x27a712;};return a173_0x2bc8();}import{getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const {serviceRegistry:_0x16dad9,findDefinition:_0x1c96bc}=await import('../commands/registry.js');return a173_0x1c398b({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':process.env.GIT_COMMIT??'','globalFlags':GLOBAL_FLAGS,'serviceRegistry':_0x16dad9,'buildAllFlags':buildAllFlags,'findDefinition':_0x1c96bc});}
@@ -1 +1 @@
1
- function a174_0x33ab(_0x59b55d,_0x5ce1f9){_0x59b55d=_0x59b55d-0x1ca;var _0x3c539e=a174_0x3c53();var _0x33abcd=_0x3c539e[_0x59b55d];return _0x33abcd;}(function(_0x522645,_0x3781db){var _0x419bca=a174_0x33ab,_0x50ef83=_0x522645();while(!![]){try{var _0x4f6be5=-parseInt(_0x419bca(0x1d1))/0x1*(parseInt(_0x419bca(0x1d3))/0x2)+-parseInt(_0x419bca(0x1cf))/0x3+parseInt(_0x419bca(0x1cc))/0x4+-parseInt(_0x419bca(0x1cd))/0x5*(parseInt(_0x419bca(0x1d2))/0x6)+parseInt(_0x419bca(0x1d0))/0x7+-parseInt(_0x419bca(0x1ce))/0x8*(-parseInt(_0x419bca(0x1ca))/0x9)+-parseInt(_0x419bca(0x1cb))/0xa;if(_0x4f6be5===_0x3781db)break;else _0x50ef83['push'](_0x50ef83['shift']());}catch(_0x186ceb){_0x50ef83['push'](_0x50ef83['shift']());}}}(a174_0x3c53,0x50621));function a174_0x3c53(){var _0x25a688=['40wVQCJq','638814fLoMHW','3709286MMCNjD','3QCpKTE','57108cHLoFm','292594EDGfXO','367434YTrmgL','878060zGrcpK','1605928NlMvvk','35vHWxoz'];a174_0x3c53=function(){return _0x25a688;};return a174_0x3c53();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
1
+ (function(_0x25ba6d,_0x5d8683){var _0x467306=a174_0x2913,_0x575b20=_0x25ba6d();while(!![]){try{var _0x187a59=parseInt(_0x467306(0xc0))/0x1+-parseInt(_0x467306(0xc2))/0x2*(parseInt(_0x467306(0xc6))/0x3)+parseInt(_0x467306(0xc5))/0x4+-parseInt(_0x467306(0xc1))/0x5*(-parseInt(_0x467306(0xbf))/0x6)+-parseInt(_0x467306(0xbe))/0x7+-parseInt(_0x467306(0xc3))/0x8+parseInt(_0x467306(0xc4))/0x9;if(_0x187a59===_0x5d8683)break;else _0x575b20['push'](_0x575b20['shift']());}catch(_0x54ad1f){_0x575b20['push'](_0x575b20['shift']());}}}(a174_0x3392,0x6ea67));function a174_0x2913(_0x46fc24,_0x39f7c7){_0x46fc24=_0x46fc24-0xbe;var _0x339228=a174_0x3392();var _0x291312=_0x339228[_0x46fc24];return _0x291312;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a174_0x3392(){var _0x39ef63=['205KCyBDr','1348KneDWW','5794888OdjqVr','7403976uMRExm','767532jRqDET','2166nOAjSc','3947307UBSnQs','74622VgNvek','703649JgVOEj'];a174_0x3392=function(){return _0x39ef63;};return a174_0x3392();}
@@ -1 +1 @@
1
- const a175_0x7d3c77=a175_0xfec3;(function(_0x38d53b,_0x545cb6){const _0x1fea27=a175_0xfec3,_0x428b47=_0x38d53b();while(!![]){try{const _0x2fd58b=parseInt(_0x1fea27(0x7f))/0x1*(parseInt(_0x1fea27(0x80))/0x2)+parseInt(_0x1fea27(0x88))/0x3+-parseInt(_0x1fea27(0x8d))/0x4*(parseInt(_0x1fea27(0x8b))/0x5)+parseInt(_0x1fea27(0x85))/0x6+-parseInt(_0x1fea27(0x8c))/0x7*(-parseInt(_0x1fea27(0x82))/0x8)+parseInt(_0x1fea27(0x86))/0x9*(-parseInt(_0x1fea27(0x89))/0xa)+-parseInt(_0x1fea27(0x83))/0xb*(parseInt(_0x1fea27(0x8a))/0xc);if(_0x2fd58b===_0x545cb6)break;else _0x428b47['push'](_0x428b47['shift']());}catch(_0x1ec8cb){_0x428b47['push'](_0x428b47['shift']());}}}(a175_0x543c,0xbf0ac));export const VERSION=a175_0x7d3c77(0x84);function a175_0xfec3(_0x45ee50,_0x188ca8){_0x45ee50=_0x45ee50-0x7f;const _0x543c48=a175_0x543c();let _0xfec3df=_0x543c48[_0x45ee50];return _0xfec3df;}export const GIT_TAG='v2.2.3';function a175_0x543c(){const _0x2b2685=['149529IbnXRT','18ucGEHC','13a5073','4521368dEMHXr','118657qhIhTc','2.2.4-beta.1','3399870HVpMMn','2772OTMPuf','2026-06-18T09:26:20.410Z','659874VOsNJz','2350hvlVSE','2244tDHAdy','279035bEaEKJ','14pGLAXY','28AzcpUW'];a175_0x543c=function(){return _0x2b2685;};return a175_0x543c();}export const GIT_COMMIT=a175_0x7d3c77(0x81);export const BUILD_TIME=a175_0x7d3c77(0x87);
1
+ function a175_0x5814(){const _0x44f1c3=['17631647BgVWHB','11140944qkTTnT','1iYbtDX','7MSbObL','836613TZRLDs','5MfPnWj','2.2.4-beta.3','10oWhaJs','2026-06-18T10:00:09.076Z','4016724dUPDUS','1760082OkDvZS','9205092icSNxK','9d0dd0b','8602623exVZZo'];a175_0x5814=function(){return _0x44f1c3;};return a175_0x5814();}const a175_0x5385a9=a175_0x556c;function a175_0x556c(_0x1c7f2f,_0x1a5f10){_0x1c7f2f=_0x1c7f2f-0x1d3;const _0x581427=a175_0x5814();let _0x556c39=_0x581427[_0x1c7f2f];return _0x556c39;}(function(_0x2fee5c,_0xac0a68){const _0x55c287=a175_0x556c,_0x4c48ca=_0x2fee5c();while(!![]){try{const _0x11e836=-parseInt(_0x55c287(0x1de))/0x1*(-parseInt(_0x55c287(0x1d8))/0x2)+-parseInt(_0x55c287(0x1e0))/0x3+-parseInt(_0x55c287(0x1d7))/0x4*(-parseInt(_0x55c287(0x1d3))/0x5)+-parseInt(_0x55c287(0x1d9))/0x6+-parseInt(_0x55c287(0x1df))/0x7*(-parseInt(_0x55c287(0x1dd))/0x8)+parseInt(_0x55c287(0x1db))/0x9*(parseInt(_0x55c287(0x1d5))/0xa)+-parseInt(_0x55c287(0x1dc))/0xb;if(_0x11e836===_0xac0a68)break;else _0x4c48ca['push'](_0x4c48ca['shift']());}catch(_0x1d51aa){_0x4c48ca['push'](_0x4c48ca['shift']());}}}(a175_0x5814,0xc7675));export const VERSION=a175_0x5385a9(0x1d4);export const GIT_TAG='v2.2.4-beta.3';export const GIT_COMMIT=a175_0x5385a9(0x1da);export const BUILD_TIME=a175_0x5385a9(0x1d6);