@lovrabet/rabetbase-cli 2.3.10 → 2.3.11-beta.1

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 (260) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/logs/index.js +1 -1
  102. package/lib/commands/menu/delete.js +1 -1
  103. package/lib/commands/menu/external-link-create.js +1 -1
  104. package/lib/commands/menu/group-create.js +1 -1
  105. package/lib/commands/menu/group-update.js +1 -1
  106. package/lib/commands/menu/index.js +1 -1
  107. package/lib/commands/menu/list.js +1 -1
  108. package/lib/commands/menu/move.js +1 -0
  109. package/lib/commands/menu/regroup-start.js +1 -1
  110. package/lib/commands/menu/shared/compare-table.js +1 -1
  111. package/lib/commands/menu/shared/delete-plan.js +1 -1
  112. package/lib/commands/menu/shared/facts.js +1 -1
  113. package/lib/commands/menu/shared/index.js +1 -1
  114. package/lib/commands/menu/shared/inquirer.js +1 -1
  115. package/lib/commands/menu/shared/local-pages.js +1 -1
  116. package/lib/commands/menu/shared/logic.js +1 -1
  117. package/lib/commands/menu/shared/mutations.js +1 -1
  118. package/lib/commands/menu/shared/service.js +1 -1
  119. package/lib/commands/menu/shared/sync-core.js +1 -1
  120. package/lib/commands/menu/shared/update-core.js +1 -1
  121. package/lib/commands/menu/shared/valid-url.js +1 -1
  122. package/lib/commands/menu/sync.js +1 -1
  123. package/lib/commands/menu/update.js +1 -1
  124. package/lib/commands/notification/config-list.js +1 -1
  125. package/lib/commands/notification/index.js +1 -1
  126. package/lib/commands/page/generate-start.js +1 -1
  127. package/lib/commands/page/generate-status.js +1 -1
  128. package/lib/commands/page/index.js +1 -1
  129. package/lib/commands/page/pull.js +1 -1
  130. package/lib/commands/page/push.js +1 -1
  131. package/lib/commands/page/relation-audit.js +1 -1
  132. package/lib/commands/page/shared.js +1 -1
  133. package/lib/commands/page/standard-page-status.js +1 -1
  134. package/lib/commands/page/sync.js +1 -1
  135. package/lib/commands/permit/index.js +1 -1
  136. package/lib/commands/permit/page-get.js +1 -1
  137. package/lib/commands/permit/page-set.js +1 -1
  138. package/lib/commands/permit/role-apis-set.js +1 -1
  139. package/lib/commands/permit/role-menus-set.js +1 -1
  140. package/lib/commands/permit/role-menus.js +1 -1
  141. package/lib/commands/permit/shared.js +1 -1
  142. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  143. package/lib/commands/project/create/format-elapsed.js +1 -1
  144. package/lib/commands/project/create/main.js +1 -1
  145. package/lib/commands/project/create/non-interactive.js +1 -1
  146. package/lib/commands/project/create/project-template-path.js +1 -1
  147. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  148. package/lib/commands/project/create/use-format-code.js +1 -1
  149. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  150. package/lib/commands/project/index.js +1 -1
  151. package/lib/commands/project/init.js +1 -1
  152. package/lib/commands/project/upgrade.js +1 -1
  153. package/lib/commands/registry.js +1 -1
  154. package/lib/commands/role/create.js +1 -1
  155. package/lib/commands/role/delete.js +1 -1
  156. package/lib/commands/role/detail.js +1 -1
  157. package/lib/commands/role/index.js +1 -1
  158. package/lib/commands/role/list.js +1 -1
  159. package/lib/commands/role/shared.js +1 -1
  160. package/lib/commands/role/update.js +1 -1
  161. package/lib/commands/role/user-add.js +1 -1
  162. package/lib/commands/role/user-remove.js +1 -1
  163. package/lib/commands/role/user-resolve.js +1 -1
  164. package/lib/commands/run/index.js +1 -1
  165. package/lib/commands/schema.js +1 -1
  166. package/lib/commands/sql/create.js +1 -1
  167. package/lib/commands/sql/delete.js +1 -1
  168. package/lib/commands/sql/detail.js +1 -1
  169. package/lib/commands/sql/exec.js +1 -1
  170. package/lib/commands/sql/index.js +1 -1
  171. package/lib/commands/sql/list.js +1 -1
  172. package/lib/commands/sql/pull.js +1 -1
  173. package/lib/commands/sql/push.js +1 -1
  174. package/lib/commands/sql/save.js +1 -1
  175. package/lib/commands/sql/shared.js +1 -1
  176. package/lib/commands/sql/status.js +1 -1
  177. package/lib/commands/sql/validate.js +1 -1
  178. package/lib/commands/task/index.js +1 -1
  179. package/lib/commands/task/status.js +1 -1
  180. package/lib/commands/workspace/add.js +1 -1
  181. package/lib/commands/workspace/index.js +1 -1
  182. package/lib/commands/workspace/remove.js +1 -1
  183. package/lib/config/schema.js +1 -1
  184. package/lib/constant/cdn.js +1 -1
  185. package/lib/constant/cli.js +1 -1
  186. package/lib/constant/defaults.js +1 -1
  187. package/lib/constant/domain.js +1 -1
  188. package/lib/constant/env.js +1 -1
  189. package/lib/constant/output.js +1 -1
  190. package/lib/constant/paths.js +1 -1
  191. package/lib/constant/risk.js +1 -1
  192. package/lib/context/app-resolver.js +1 -1
  193. package/lib/context/auth-resolver.js +1 -1
  194. package/lib/context/config-loader.js +1 -1
  195. package/lib/context.js +1 -1
  196. package/lib/core/alias-resolver.js +1 -1
  197. package/lib/core/api-client.js +1 -1
  198. package/lib/core/bff/config.js +1 -1
  199. package/lib/core/bff/file-system.js +1 -1
  200. package/lib/core/bff/hash.js +1 -1
  201. package/lib/core/bff/lock.js +1 -1
  202. package/lib/core/bff/utils.js +1 -1
  203. package/lib/core/db-resolver.js +1 -1
  204. package/lib/core/page/file-system.js +1 -1
  205. package/lib/core/page/hash.js +1 -1
  206. package/lib/core/page/lock.js +1 -1
  207. package/lib/core/sql-index-auditor.js +1 -1
  208. package/lib/core/sql-sync/config.js +1 -1
  209. package/lib/core/sql-sync/file-system.js +1 -1
  210. package/lib/core/sql-sync/hash.js +1 -1
  211. package/lib/core/sql-sync/lock.js +1 -1
  212. package/lib/core/sql-sync/utils.js +1 -1
  213. package/lib/core/sql-validator.js +1 -1
  214. package/lib/errors.js +1 -1
  215. package/lib/framework/build-all-flags.js +1 -1
  216. package/lib/framework/error-output.js +1 -1
  217. package/lib/framework/explicit-yes.js +1 -1
  218. package/lib/framework/flags.js +1 -1
  219. package/lib/framework/help.js +1 -1
  220. package/lib/framework/index.js +1 -1
  221. package/lib/framework/output.js +1 -1
  222. package/lib/framework/response.js +1 -1
  223. package/lib/framework/runner-alias.js +1 -1
  224. package/lib/framework/runner.js +1 -1
  225. package/lib/framework/schema-export.js +1 -1
  226. package/lib/framework/types.js +1 -1
  227. package/lib/generated/build-info.js +1 -1
  228. package/lib/help.js +1 -1
  229. package/lib/skills/main.js +1 -1
  230. package/lib/skills/npx-skills-add.js +1 -1
  231. package/lib/telemetry/cli-command-trace.js +1 -1
  232. package/lib/telemetry/cli-help-trace.js +1 -1
  233. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  234. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  235. package/lib/telemetry/send-cli-trace-log.js +1 -1
  236. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  237. package/lib/utils/ai_config.js +1 -1
  238. package/lib/utils/apply-jq-filter.js +1 -1
  239. package/lib/utils/cdn-config.js +1 -1
  240. package/lib/utils/check-sdk-version.js +1 -1
  241. package/lib/utils/cli-version-check.js +1 -1
  242. package/lib/utils/cli-version-policy.js +1 -1
  243. package/lib/utils/config.js +1 -1
  244. package/lib/utils/copy-directory.js +1 -1
  245. package/lib/utils/entity-with-id.js +1 -1
  246. package/lib/utils/file-utils.js +1 -1
  247. package/lib/utils/guides-cdn.js +1 -1
  248. package/lib/utils/http-client.js +1 -1
  249. package/lib/utils/is-non-interactive.js +1 -1
  250. package/lib/utils/logger.js +1 -1
  251. package/lib/utils/params.js +1 -1
  252. package/lib/utils/platform.js +1 -1
  253. package/lib/utils/rules-cdn.js +1 -1
  254. package/lib/utils/sleep.js +1 -1
  255. package/lib/utils/template-replacer.js +1 -1
  256. package/lib/utils/update-notice.js +1 -1
  257. package/lib/utils/version.js +1 -1
  258. package/lib/utils/with-active-cookie.js +1 -1
  259. package/lib/utils/write-cli-side-channel.js +1 -1
  260. package/package.json +1 -1
@@ -1 +1 @@
1
- const a204_0x509346=a204_0x3cef;function a204_0x3cef(_0x3b9955,_0x164f03){_0x3b9955=_0x3b9955-0x17d;const _0x47ab09=a204_0x47ab();let _0x3cef9e=_0x47ab09[_0x3b9955];return _0x3cef9e;}(function(_0x7754d0,_0x54f9dc){const _0x11a84f=a204_0x3cef,_0x4f24e0=_0x7754d0();while(!![]){try{const _0x232a32=parseInt(_0x11a84f(0x189))/0x1+-parseInt(_0x11a84f(0x188))/0x2+parseInt(_0x11a84f(0x185))/0x3+-parseInt(_0x11a84f(0x182))/0x4*(-parseInt(_0x11a84f(0x186))/0x5)+-parseInt(_0x11a84f(0x181))/0x6+-parseInt(_0x11a84f(0x180))/0x7*(parseInt(_0x11a84f(0x17f))/0x8)+parseInt(_0x11a84f(0x17e))/0x9;if(_0x232a32===_0x54f9dc)break;else _0x4f24e0['push'](_0x4f24e0['shift']());}catch(_0x46ac64){_0x4f24e0['push'](_0x4f24e0['shift']());}}}(a204_0x47ab,0x3feeb));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x420348,_0xe23f93=process[a204_0x509346(0x187)]()){const _0x1f7e82=a204_0x509346,_0x2bb712=resolve(_0xe23f93),_0x16fb6d=join(_0x2bb712,_0x1f7e82(0x18a),_0x1f7e82(0x183));return{'projectRoot':_0x2bb712,'pagesBaseDir':_0x16fb6d,'appPagesDir':join(_0x16fb6d,_0x420348),'lockFilePath':join(_0x2bb712,_0x1f7e82(0x18a),'page.lock.json')};}function a204_0x47ab(){const _0x50b4aa=['914076AQPctS','237518nseXtD','.rabetbase','toUpperCase','4043727dKVcfN','1496VXSOeM','1687aXUSoa','722232AuvnNN','144320XTayzD','page','appPagesDir','376089XoUrdP','10FMxkbM','cwd'];a204_0x47ab=function(){return _0x50b4aa;};return a204_0x47ab();}export function buildPageFileName(_0x40950e,_0x59a93d){const _0x326244=a204_0x509346;return _0x40950e+'-'+String(_0x59a93d)[_0x326244(0x17d)]()+'.json';}export function resolvePageFilePath(_0x3a2bc0,_0x579277,_0x1cb1f3){const _0x4bbefd=a204_0x509346;return join(_0x3a2bc0[_0x4bbefd(0x184)],buildPageFileName(_0x579277,_0x1cb1f3));}export async function ensureParentDirectory(_0x483657){await mkdir(dirname(_0x483657),{'recursive':!![]});}export async function fileExists(_0x5c85c4){try{return await access(_0x5c85c4,constants['F_OK']),!![];}catch{return![];}}
1
+ const a205_0x13cbb7=a205_0x5c56;function a205_0x152d(){const _0x371138=['cwd','page.lock.json','1576705NZNcpf','toUpperCase','.rabetbase','1135752yROWeE','F_OK','2144296OBLjOc','3131628wnFrYR','6vHhQws','118929iqvQQA','4544910xZxBhB','appPagesDir','215652syGiwy','.json'];a205_0x152d=function(){return _0x371138;};return a205_0x152d();}(function(_0x7853b2,_0x25f3f6){const _0x49f852=a205_0x5c56,_0x34a1b9=_0x7853b2();while(!![]){try{const _0x59c401=parseInt(_0x49f852(0xf6))/0x1+parseInt(_0x49f852(0xf9))/0x2*(parseInt(_0x49f852(0xf5))/0x3)+parseInt(_0x49f852(0xf4))/0x4+-parseInt(_0x49f852(0xfd))/0x5+-parseInt(_0x49f852(0xf7))/0x6+parseInt(_0x49f852(0xf3))/0x7+parseInt(_0x49f852(0x100))/0x8;if(_0x59c401===_0x25f3f6)break;else _0x34a1b9['push'](_0x34a1b9['shift']());}catch(_0xa84b8b){_0x34a1b9['push'](_0x34a1b9['shift']());}}}(a205_0x152d,0x7859f));import{constants}from'node:fs';function a205_0x5c56(_0x12cfcc,_0x2174ab){_0x12cfcc=_0x12cfcc-0xf2;const _0x152dbd=a205_0x152d();let _0x5c56f3=_0x152dbd[_0x12cfcc];return _0x5c56f3;}import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x2fba83,_0x3d7d79=process[a205_0x13cbb7(0xfb)]()){const _0x3fcb0a=a205_0x13cbb7,_0x4f3f46=resolve(_0x3d7d79),_0xeb27ab=join(_0x4f3f46,'.rabetbase','page');return{'projectRoot':_0x4f3f46,'pagesBaseDir':_0xeb27ab,'appPagesDir':join(_0xeb27ab,_0x2fba83),'lockFilePath':join(_0x4f3f46,_0x3fcb0a(0xff),_0x3fcb0a(0xfc))};}export function buildPageFileName(_0x716afb,_0x30c0b1){const _0x268378=a205_0x13cbb7;return _0x716afb+'-'+String(_0x30c0b1)[_0x268378(0xfe)]()+_0x268378(0xfa);}export function resolvePageFilePath(_0x1d548a,_0x5e8bff,_0x5a3acf){const _0x1cf097=a205_0x13cbb7;return join(_0x1d548a[_0x1cf097(0xf8)],buildPageFileName(_0x5e8bff,_0x5a3acf));}export async function ensureParentDirectory(_0x2f6b08){await mkdir(dirname(_0x2f6b08),{'recursive':!![]});}export async function fileExists(_0x4a45bf){const _0x181902=a205_0x13cbb7;try{return await access(_0x4a45bf,constants[_0x181902(0xf2)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xd136c,_0x2a4c31){const _0x17f5a2=a205_0x32f2,_0x21e088=_0xd136c();while(!![]){try{const _0x493a1d=-parseInt(_0x17f5a2(0x1f7))/0x1+-parseInt(_0x17f5a2(0x1f6))/0x2*(parseInt(_0x17f5a2(0x1f1))/0x3)+-parseInt(_0x17f5a2(0x1f0))/0x4+-parseInt(_0x17f5a2(0x1f8))/0x5+parseInt(_0x17f5a2(0x1ee))/0x6+-parseInt(_0x17f5a2(0x1f5))/0x7+-parseInt(_0x17f5a2(0x1ef))/0x8*(-parseInt(_0x17f5a2(0x1f2))/0x9);if(_0x493a1d===_0x2a4c31)break;else _0x21e088['push'](_0x21e088['shift']());}catch(_0x563442){_0x21e088['push'](_0x21e088['shift']());}}}(a205_0x4950,0x9021d));function a205_0x32f2(_0x15e283,_0x406fa2){_0x15e283=_0x15e283-0x1eb;const _0x4950b1=a205_0x4950();let _0x32f299=_0x4950b1[_0x15e283];return _0x32f299;}import a205_0xdee3b6 from'node:crypto';function a205_0x4950(){const _0x5a8a1b=['stringify','parse','3468492pxSEgR','56pmkUJp','1969704cTCZmv','132369fgYWtC','3850074tFjvSL','createHash','digest','3383863mCiQsf','20oABGXQ','808331CPsjRI','3784115ZLQpyL','utf8','update'];a205_0x4950=function(){return _0x5a8a1b;};return a205_0x4950();}import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x495a34){const _0x3ec701=a205_0x32f2;return JSON[_0x3ec701(0x1ec)](JSON[_0x3ec701(0x1ed)](_0x495a34),null,0x2)+'\x0a';}export function computePageContentHash(_0x56526c){const _0x19c18a=a205_0x32f2;return a205_0xdee3b6[_0x19c18a(0x1f3)]('md5')[_0x19c18a(0x1eb)](_0x56526c)[_0x19c18a(0x1f4)]('hex');}export function computeSerializedSchemaHash(_0x50a540){return computePageContentHash(serializePageSchemaForFile(_0x50a540));}export async function computePageFileHash(_0x2a30d6){const _0x113024=a205_0x32f2,_0x25edd2=await readFile(_0x2a30d6,_0x113024(0x1f9));return computePageContentHash(_0x25edd2);}
1
+ (function(_0x86b9d5,_0x37abe2){const _0xa6029d=a206_0x5a66,_0xc04c27=_0x86b9d5();while(!![]){try{const _0x56696e=parseInt(_0xa6029d(0x1cb))/0x1*(parseInt(_0xa6029d(0x1d3))/0x2)+parseInt(_0xa6029d(0x1c8))/0x3+parseInt(_0xa6029d(0x1c4))/0x4*(parseInt(_0xa6029d(0x1cc))/0x5)+parseInt(_0xa6029d(0x1d1))/0x6*(-parseInt(_0xa6029d(0x1d0))/0x7)+-parseInt(_0xa6029d(0x1c6))/0x8*(parseInt(_0xa6029d(0x1c7))/0x9)+parseInt(_0xa6029d(0x1cf))/0xa+parseInt(_0xa6029d(0x1d2))/0xb*(-parseInt(_0xa6029d(0x1ca))/0xc);if(_0x56696e===_0x37abe2)break;else _0xc04c27['push'](_0xc04c27['shift']());}catch(_0x1d28f3){_0xc04c27['push'](_0xc04c27['shift']());}}}(a206_0x1c06,0x7e9fb));import a206_0x553cdc from'node:crypto';import{readFile}from'node:fs/promises';function a206_0x5a66(_0x5c5990,_0xa6d8f9){_0x5c5990=_0x5c5990-0x1c4;const _0x1c069b=a206_0x1c06();let _0x5a6628=_0x1c069b[_0x5c5990];return _0x5a6628;}export function serializePageSchemaForFile(_0x102585){const _0x132a23=a206_0x5a66;return JSON['stringify'](JSON[_0x132a23(0x1c9)](_0x102585),null,0x2)+'\x0a';}function a206_0x1c06(){const _0x4c436d=['16556wRzdYB','digest','73936MbnllL','756BKmDNE','2016630VuoSYz','parse','12ddTkzW','11284rCmluQ','25yybQDc','utf8','hex','9634370BlLhcM','126rviRRB','132186mxySEV','5694931xPdDdH','98mrzBXv'];a206_0x1c06=function(){return _0x4c436d;};return a206_0x1c06();}export function computePageContentHash(_0x17f096){const _0x47345f=a206_0x5a66;return a206_0x553cdc['createHash']('md5')['update'](_0x17f096)[_0x47345f(0x1c5)](_0x47345f(0x1ce));}export function computeSerializedSchemaHash(_0x17b8e9){return computePageContentHash(serializePageSchemaForFile(_0x17b8e9));}export async function computePageFileHash(_0x11be1e){const _0x320ca7=a206_0x5a66,_0x45546c=await readFile(_0x11be1e,_0x320ca7(0x1cd));return computePageContentHash(_0x45546c);}
@@ -1 +1 @@
1
- function a206_0x3a7c(_0x457787,_0x321055){_0x457787=_0x457787-0x1e1;const _0x305013=a206_0x3050();let _0x3a7c72=_0x305013[_0x457787];return _0x3a7c72;}(function(_0x333284,_0x246821){const _0x5835ca=a206_0x3a7c,_0x2e53fa=_0x333284();while(!![]){try{const _0x41e632=-parseInt(_0x5835ca(0x1f0))/0x1+-parseInt(_0x5835ca(0x1e9))/0x2+-parseInt(_0x5835ca(0x1ea))/0x3+-parseInt(_0x5835ca(0x1e6))/0x4*(parseInt(_0x5835ca(0x1e3))/0x5)+-parseInt(_0x5835ca(0x1ee))/0x6*(-parseInt(_0x5835ca(0x1e7))/0x7)+parseInt(_0x5835ca(0x1e1))/0x8+parseInt(_0x5835ca(0x1f2))/0x9*(parseInt(_0x5835ca(0x1e8))/0xa);if(_0x41e632===_0x246821)break;else _0x2e53fa['push'](_0x2e53fa['shift']());}catch(_0x110724){_0x2e53fa['push'](_0x2e53fa['shift']());}}}(a206_0x3050,0x1a1c4));import{mkdir,readFile,writeFile}from'node:fs/promises';function a206_0x3050(){const _0x1376aa=['ENOENT','360fCdNuL','1549832gcpxWE','pages','104545UllzUK','apps','lastSync','36pxzOXr','1400679ULuttY','71790CkWAzF','329984BMGweO','631566jqRlli','parse','object','stringify','6uuPXHm','utf8','10343kdLiXt'];a206_0x3050=function(){return _0x1376aa;};return a206_0x3050();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x4ccd3a,_0x13ecc7){const _0x5e7bf0=a206_0x3a7c,_0x580b5e={'apps':_0x4ccd3a[_0x5e7bf0(0x1e4)]&&typeof _0x4ccd3a['apps']===_0x5e7bf0(0x1ec)?_0x4ccd3a[_0x5e7bf0(0x1e4)]:{}};let _0x22d601=_0x580b5e[_0x5e7bf0(0x1e4)][_0x13ecc7];if(!_0x22d601)return _0x22d601={'lastSync':'','pages':{}},_0x580b5e[_0x5e7bf0(0x1e4)][_0x13ecc7]=_0x22d601,{'lockData':_0x580b5e,'appLock':_0x22d601};return!_0x22d601[_0x5e7bf0(0x1e5)]&&(_0x22d601[_0x5e7bf0(0x1e5)]=''),(!_0x22d601[_0x5e7bf0(0x1e2)]||typeof _0x22d601[_0x5e7bf0(0x1e2)]!=='object')&&(_0x22d601[_0x5e7bf0(0x1e2)]={}),{'lockData':_0x580b5e,'appLock':_0x22d601};}export async function readPageLockFile(_0x394591){const _0x335577=a206_0x3a7c;try{const _0x18174c=await readFile(_0x394591,_0x335577(0x1ef)),_0x1eb981=JSON[_0x335577(0x1eb)](_0x18174c);return{'apps':_0x1eb981[_0x335577(0x1e4)]&&typeof _0x1eb981[_0x335577(0x1e4)]===_0x335577(0x1ec)?_0x1eb981['apps']:{}};}catch(_0xd6b82d){if(_0xd6b82d['code']===_0x335577(0x1f1))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0xd6b82d));}}export async function writePageLockFile(_0x54721b,_0x1ef0cc){const _0x38b36f=a206_0x3a7c;await mkdir(dirname(_0x54721b),{'recursive':!![]}),await writeFile(_0x54721b,JSON[_0x38b36f(0x1ed)](_0x1ef0cc,null,0x2),_0x38b36f(0x1ef));}
1
+ function a207_0x2e6b(_0x22bfd1,_0x4bc192){_0x22bfd1=_0x22bfd1-0x110;const _0x32679b=a207_0x3267();let _0x2e6b04=_0x32679b[_0x22bfd1];return _0x2e6b04;}(function(_0x502993,_0x1740ee){const _0x24ec2d=a207_0x2e6b,_0x913633=_0x502993();while(!![]){try{const _0x498362=parseInt(_0x24ec2d(0x117))/0x1*(-parseInt(_0x24ec2d(0x115))/0x2)+parseInt(_0x24ec2d(0x112))/0x3+parseInt(_0x24ec2d(0x122))/0x4*(-parseInt(_0x24ec2d(0x120))/0x5)+-parseInt(_0x24ec2d(0x11a))/0x6+parseInt(_0x24ec2d(0x11f))/0x7+parseInt(_0x24ec2d(0x116))/0x8*(-parseInt(_0x24ec2d(0x111))/0x9)+parseInt(_0x24ec2d(0x114))/0xa;if(_0x498362===_0x1740ee)break;else _0x913633['push'](_0x913633['shift']());}catch(_0x248ad2){_0x913633['push'](_0x913633['shift']());}}}(a207_0x3267,0x4cfce));import{mkdir,readFile,writeFile}from'node:fs/promises';function a207_0x3267(){const _0x33ec7f=['ENOENT','parse','2813574cBLFlr','object','apps','stringify','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','1236795LsEydL','94630KhYfDH','lastSync','16luAWee','pages','1216377ehCkwb','1095852tMFtaK','utf8','12125330GueiJw','244534mlgOVd','24aBaUHr','4TEiqqJ'];a207_0x3267=function(){return _0x33ec7f;};return a207_0x3267();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x58aef7,_0x35bdde){const _0x1603a9=a207_0x2e6b,_0x5e2a23={'apps':_0x58aef7[_0x1603a9(0x11c)]&&typeof _0x58aef7[_0x1603a9(0x11c)]===_0x1603a9(0x11b)?_0x58aef7[_0x1603a9(0x11c)]:{}};let _0x28ce0e=_0x5e2a23[_0x1603a9(0x11c)][_0x35bdde];if(!_0x28ce0e)return _0x28ce0e={'lastSync':'','pages':{}},_0x5e2a23[_0x1603a9(0x11c)][_0x35bdde]=_0x28ce0e,{'lockData':_0x5e2a23,'appLock':_0x28ce0e};return!_0x28ce0e['lastSync']&&(_0x28ce0e[_0x1603a9(0x121)]=''),(!_0x28ce0e['pages']||typeof _0x28ce0e[_0x1603a9(0x110)]!=='object')&&(_0x28ce0e[_0x1603a9(0x110)]={}),{'lockData':_0x5e2a23,'appLock':_0x28ce0e};}export async function readPageLockFile(_0x39ca7e){const _0x31be57=a207_0x2e6b;try{const _0x957a28=await readFile(_0x39ca7e,_0x31be57(0x113)),_0x32a40a=JSON[_0x31be57(0x119)](_0x957a28);return{'apps':_0x32a40a[_0x31be57(0x11c)]&&typeof _0x32a40a[_0x31be57(0x11c)]===_0x31be57(0x11b)?_0x32a40a['apps']:{}};}catch(_0x919d87){if(_0x919d87['code']===_0x31be57(0x118))return null;throw new Error(_0x31be57(0x11e)+String(_0x919d87));}}export async function writePageLockFile(_0x2a33b3,_0x19b388){const _0x5dc50a=a207_0x2e6b;await mkdir(dirname(_0x2a33b3),{'recursive':!![]}),await writeFile(_0x2a33b3,JSON[_0x5dc50a(0x11d)](_0x19b388,null,0x2),_0x5dc50a(0x113));}
@@ -1 +1 @@
1
- (function(_0x21e7a4,_0x2882d0){const _0x1b3480=a208_0x4eeb,_0x3943ba=_0x21e7a4();while(!![]){try{const _0x5b542b=-parseInt(_0x1b3480(0xc5))/0x1*(parseInt(_0x1b3480(0xdc))/0x2)+parseInt(_0x1b3480(0xce))/0x3*(parseInt(_0x1b3480(0xe4))/0x4)+-parseInt(_0x1b3480(0xcc))/0x5+parseInt(_0x1b3480(0xc2))/0x6+-parseInt(_0x1b3480(0xf7))/0x7*(-parseInt(_0x1b3480(0xfc))/0x8)+-parseInt(_0x1b3480(0xd7))/0x9+parseInt(_0x1b3480(0xe2))/0xa*(parseInt(_0x1b3480(0xee))/0xb);if(_0x5b542b===_0x2882d0)break;else _0x3943ba['push'](_0x3943ba['shift']());}catch(_0x47c3ff){_0x3943ba['push'](_0x3943ba['shift']());}}}(a208_0x1d9f,0xc88fb));export function auditSqlJoinIndexes(_0x41d8c5,_0x456fe1){const _0x3eb2dd=a208_0x4eeb,_0x465853=[],_0x5bbe8c=extractJoinFacts(_0x41d8c5)[_0x3eb2dd(0xc4)](_0x5bdf78=>{const _0x507b82=_0x3eb2dd;if(_0x5bdf78[_0x507b82(0xf3)]||_0x5bdf78[_0x507b82(0xdf)][_0x507b82(0xc0)]===0x0)return _0x465853['push']({'code':'JOIN_PREDICATE_UNSUPPORTED','table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'reason':_0x5bdf78[_0x507b82(0xcf)]??_0x507b82(0xdb)}),{'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'status':_0x507b82(0xfa)};const _0xc89edf=resolveTableMetadata(_0x456fe1,_0x5bdf78[_0x507b82(0x105)]),_0x573b73=(_0xc89edf?.['indexes']??[])['map'](_0x5c9c3a=>({'index':_0x5c9c3a,'matchedPrefix':findEqualityPrefix(_0x5c9c3a[_0x507b82(0xdf)],_0x5bdf78[_0x507b82(0xdf)])}))['filter'](_0x484258=>_0x484258[_0x507b82(0xc9)][_0x507b82(0xc0)]>0x0),_0x4aec6b=_0x573b73[_0x507b82(0x104)]((_0x390d6c,_0x41fd51)=>!_0x390d6c||_0x41fd51[_0x507b82(0xc9)]['length']>_0x390d6c['matchedPrefix'][_0x507b82(0xc0)]?_0x41fd51:_0x390d6c,_0x573b73[0x0]);if(_0x4aec6b)return{'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'status':_0x507b82(0xea),'matchedIndex':{..._0x4aec6b[_0x507b82(0xcd)],'matchedPrefix':_0x4aec6b[_0x507b82(0xc9)]}};const _0x319564=_0xc89edf?.[_0x507b82(0xc1)][_0x507b82(0xcb)](_0x4b4f6a=>_0x4b4f6a[_0x507b82(0xdf)][_0x507b82(0x101)](_0x455a0=>_0x5bdf78[_0x507b82(0xdf)][_0x507b82(0x101)](_0x46f1fb=>columnNamesMatch(_0x455a0,_0x46f1fb))))??[];if(_0x319564[_0x507b82(0xc0)]>0x0)return _0x465853[_0x507b82(0xc8)]({'code':'JOIN_INDEX_NOT_USABLE','table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'reason':_0x507b82(0xdd)}),{'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'status':'warning','candidateIndexes':_0x319564};if(_0xc89edf&&_0xc89edf[_0x507b82(0xd0)]!==![]&&_0xc89edf['indexes'][_0x507b82(0xc0)]>0x0&&_0x5bdf78['columns']['length']>0x0)return _0x465853[_0x507b82(0xc8)]({'code':_0x507b82(0xe1),'table':_0x5bdf78['table'],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78['columns'],'status':_0x507b82(0xca)};return _0x465853[_0x507b82(0xc8)]({'code':_0x507b82(0xd5),'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78[_0x507b82(0xdf)],'reason':_0xc89edf?'The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.':_0x507b82(0xc3)}),{'table':_0x5bdf78[_0x507b82(0x105)],'alias':_0x5bdf78[_0x507b82(0xe3)],'columns':_0x5bdf78['columns'],'status':_0x507b82(0xfa)};});return{'checked':_0x5bbe8c['length']>0x0,'joins':_0x5bbe8c,'warnings':_0x465853};}function extractJoinFacts(_0x1593f1){const _0x60f335=a208_0x4eeb,_0x2b5c0b=maskNestedQueries(stripSqlNoise(_0x1593f1)),_0x287ff3=maskQuotedIdentifiers(_0x2b5c0b),_0x1259ea=[],_0x9188cc=new Set(),_0x341e24=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x4eaa78 of _0x2b5c0b['matchAll'](_0x341e24)){const _0x4991a9=_0x4eaa78[_0x60f335(0xcd)]??0x0,_0xc859ac=_0x4eaa78[0x0][_0x60f335(0xed)](/\bJOIN\b/i),_0x370f27=_0x4991a9+Math[_0x60f335(0xfb)](0x0,_0xc859ac);if(!/^JOIN\b/i['test'](_0x287ff3[_0x60f335(0xd1)](_0x370f27)))continue;_0x9188cc[_0x60f335(0xf4)](_0x370f27);const _0x2dcf63=normalizeIdentifier(_0x4eaa78[0x1]||_0x60f335(0xfd)),_0x399bf9=normalizeIdentifier(_0x4eaa78[0x2]??''),_0x115424=normalizeIdentifier(_0x4eaa78[0x3]||_0x399bf9[_0x60f335(0xf0)]('.')['at'](-0x1)||_0x399bf9),_0x3a8124=[],_0x44a821=_0x399bf9===_0x60f335(0xef);let _0x352ce7=_0x2dcf63===_0x60f335(0x100)||_0x2dcf63===_0x60f335(0xd4)||_0x44a821,_0x521cde=_0x352ce7?_0x44a821?_0x60f335(0xfe):_0x2dcf63[_0x60f335(0x103)]()+_0x60f335(0xd3):undefined;const _0x399628=stripOuterParentheses(_0x4eaa78[0x4]??'');hasTopLevelKeyword(_0x399628,'OR')&&(_0x352ce7=!![],_0x521cde??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x2368d3 of splitTopLevelAnd(_0x399628)){const _0x2847d8=stripOuterParentheses(_0x2368d3);if(hasTopLevelKeyword(_0x2847d8,'OR')){_0x352ce7=!![],_0x521cde??=_0x60f335(0xeb);continue;}const _0x3a1e85=splitEquality(_0x2847d8);if(!_0x3a1e85){containsColumnReference(_0x2368d3,_0x115424)&&(_0x352ce7=!![]);continue;}const _0x36abe5=parseDirectColumnReference(_0x3a1e85[0x0],_0x115424),_0x210c4f=parseDirectColumnReference(_0x3a1e85[0x1],_0x115424),_0x1bad60=containsColumnReference(_0x3a1e85[0x0],_0x115424),_0x56b122=containsColumnReference(_0x3a1e85[0x1],_0x115424),_0x4c0a0c=_0x36abe5&&!_0x56b122?_0x36abe5:_0x210c4f&&!_0x1bad60?_0x210c4f:null;if(_0x4c0a0c&&!_0x3a8124[_0x60f335(0xc6)](_0x4c0a0c))_0x3a8124[_0x60f335(0xc8)](_0x4c0a0c);else!_0x4c0a0c&&containsColumnReference(_0x2368d3,_0x115424)&&(_0x352ce7=!![]);}_0x1259ea[_0x60f335(0xc8)]({'table':_0x399bf9,'alias':_0x115424,'columns':_0x3a8124,'unsupportedPredicate':_0x352ce7,'unsupportedReason':_0x521cde,'position':_0x370f27});}for(const _0x125f03 of _0x287ff3[_0x60f335(0x106)](/\bJOIN\b/gi)){const _0x4130c1=_0x125f03[_0x60f335(0xcd)]??0x0;if(_0x9188cc[_0x60f335(0xf5)](_0x4130c1))continue;const _0x9f8c9c=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x60f335(0xe0)](_0x2b5c0b[_0x60f335(0xd1)](_0x4130c1+_0x125f03[0x0][_0x60f335(0xc0)])),_0x4db278=normalizeIdentifier(_0x9f8c9c?.[0x1]||_0x60f335(0xe6)),_0x24be7f=normalizeIdentifier(_0x9f8c9c?.[0x2]||''),_0x488601=isSqlClauseKeyword(_0x24be7f)?_0x4db278['split']('.')['at'](-0x1)||_0x4db278:_0x24be7f||_0x4db278[_0x60f335(0xf0)]('.')['at'](-0x1)||_0x4db278;_0x1259ea[_0x60f335(0xc8)]({'table':_0x4db278,'alias':_0x488601,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x4130c1});}return _0x1259ea[_0x60f335(0xe8)]((_0x13b3c1,_0x4dee0a)=>_0x13b3c1[_0x60f335(0xde)]-_0x4dee0a[_0x60f335(0xde)]);}function stripSqlNoise(_0x577d7f){const _0x5a37da=a208_0x4eeb,_0x32c9d6=Array[_0x5a37da(0xc7)](_0x577d7f),_0x2358dd=(_0x40028f,_0x1bda33)=>{for(let _0x47683d=_0x40028f;_0x47683d<_0x1bda33;_0x47683d+=0x1){_0x32c9d6[_0x47683d]!=='\x0a'&&_0x32c9d6[_0x47683d]!=='\x0d'&&(_0x32c9d6[_0x47683d]='\x20');}};for(let _0x1d0d94=0x0;_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)];_0x1d0d94+=0x1){const _0x513add=_0x32c9d6[_0x1d0d94],_0xcc62b1=_0x32c9d6[_0x1d0d94+0x1];if(_0x513add==='\x27'||_0x513add==='\x22'||_0x513add==='`'){const _0x4acc2a=_0x513add,_0x4482e7=_0x1d0d94;_0x1d0d94+=0x1;while(_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)]){if(_0x32c9d6[_0x1d0d94]==='\x5c'&&_0x1d0d94+0x1<_0x32c9d6[_0x5a37da(0xc0)]){_0x1d0d94+=0x2;continue;}if(_0x32c9d6[_0x1d0d94]!==_0x4acc2a){_0x1d0d94+=0x1;continue;}if(_0x32c9d6[_0x1d0d94+0x1]===_0x4acc2a){_0x1d0d94+=0x2;continue;}break;}if(_0x4acc2a==='\x27')_0x2358dd(_0x4482e7,Math['min'](_0x1d0d94+0x1,_0x32c9d6[_0x5a37da(0xc0)]));continue;}if(_0x513add==='-'&&_0xcc62b1==='-'){const _0x52cea5=_0x1d0d94;while(_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)]&&_0x32c9d6[_0x1d0d94]!=='\x0a')_0x1d0d94+=0x1;_0x2358dd(_0x52cea5,_0x1d0d94);continue;}if(_0x513add==='/'&&_0xcc62b1==='*'){const _0x3cee95=_0x1d0d94;_0x1d0d94+=0x2;while(_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)]&&!(_0x32c9d6[_0x1d0d94]==='*'&&_0x32c9d6[_0x1d0d94+0x1]==='/')){_0x1d0d94+=0x1;}_0x1d0d94=Math['min'](_0x1d0d94+0x1,_0x32c9d6[_0x5a37da(0xc0)]-0x1),_0x2358dd(_0x3cee95,_0x1d0d94+0x1);continue;}if(_0x513add==='#'&&_0xcc62b1!=='{'){const _0x1da1aa=_0x1d0d94;while(_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)]&&_0x32c9d6[_0x1d0d94]!=='\x0a')_0x1d0d94+=0x1;_0x2358dd(_0x1da1aa,_0x1d0d94);continue;}if((_0x513add==='#'||_0x513add==='$')&&_0xcc62b1==='{'){const _0x4dc4f2=_0x1d0d94;_0x1d0d94+=0x2;while(_0x1d0d94<_0x32c9d6[_0x5a37da(0xc0)]&&_0x32c9d6[_0x1d0d94]!=='}')_0x1d0d94+=0x1;_0x2358dd(_0x4dc4f2,Math[_0x5a37da(0xec)](_0x1d0d94+0x1,_0x32c9d6[_0x5a37da(0xc0)]));}}return _0x32c9d6[_0x5a37da(0xd8)]('');}function maskQuotedIdentifiers(_0x1fbb88){const _0x2d5bac=a208_0x4eeb,_0x539498=Array[_0x2d5bac(0xc7)](_0x1fbb88);for(let _0x1b90a4=0x0;_0x1b90a4<_0x539498[_0x2d5bac(0xc0)];_0x1b90a4+=0x1){const _0x15c47c=_0x539498[_0x1b90a4];if(_0x15c47c!=='\x22'&&_0x15c47c!=='`')continue;_0x1b90a4+=0x1;while(_0x1b90a4<_0x539498[_0x2d5bac(0xc0)]){if(_0x539498[_0x1b90a4]===_0x15c47c){if(_0x539498[_0x1b90a4+0x1]===_0x15c47c){_0x539498[_0x1b90a4]='\x20',_0x539498[_0x1b90a4+0x1]='\x20',_0x1b90a4+=0x2;continue;}break;}_0x539498[_0x1b90a4]='\x20',_0x1b90a4+=0x1;}}return _0x539498['join']('');}function a208_0x1d9f(){const _0x35fd86=['2655386UcFXpV','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','position','columns','exec','JOIN_INDEX_MISSING','99790CPvckQ','alias','567452encSVX','trim','unknown','natural','sort','cross','covered','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','min','search','1243zeTbkU','__sq__','split','left','replace','unsupportedPredicate','add','has','\x5cs*\x5c.\x5cs*[\x5cw$]+','42LzQsrf','\x5c$&','tableName','unavailable','max','225472XuQXNz','INNER','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','startsWith','right','some','test','toUpperCase','reduce','table','matchAll','length','indexes','5769894jXiENi','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','map','1xtwGgG','includes','from','push','matchedPrefix','warning','filter','771615oSOTQe','index','3QpKYVf','unsupportedReason','metadataAvailable','slice','toLowerCase','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','full','INDEX_METADATA_UNAVAILABLE','match','870552MibpwK','join','using','where','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.'];a208_0x1d9f=function(){return _0x35fd86;};return a208_0x1d9f();}function maskNestedQueries(_0x380703){const _0x4d1bc8=a208_0x4eeb,_0x4d39fb=Array[_0x4d1bc8(0xc7)](_0x380703);for(let _0x45d9df=0x0;_0x45d9df<_0x4d39fb['length'];_0x45d9df+=0x1){if(_0x4d39fb[_0x45d9df]!=='(')continue;const _0x301d7b=_0x380703[_0x4d1bc8(0xd1)](_0x45d9df+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x4d1bc8(0x102)](_0x301d7b))continue;let _0x1e30b7=0x1,_0x542533=_0x45d9df+0x1;for(;_0x542533<_0x4d39fb[_0x4d1bc8(0xc0)]&&_0x1e30b7>0x0;_0x542533+=0x1){if(_0x4d39fb[_0x542533]==='(')_0x1e30b7+=0x1;if(_0x4d39fb[_0x542533]===')')_0x1e30b7-=0x1;}if(_0x1e30b7!==0x0)continue;for(let _0x22eafe=_0x45d9df;_0x22eafe<_0x542533;_0x22eafe+=0x1){_0x4d39fb[_0x22eafe]='\x20';}const _0x42d694=_0x4d1bc8(0xef);for(let _0x1a45d8=0x0;_0x1a45d8<_0x42d694[_0x4d1bc8(0xc0)]&&_0x45d9df+_0x1a45d8<_0x542533;_0x1a45d8+=0x1){_0x4d39fb[_0x45d9df+_0x1a45d8]=_0x42d694[_0x1a45d8];}_0x45d9df=_0x542533-0x1;}return _0x4d39fb[_0x4d1bc8(0xd8)]('');}function splitTopLevelAnd(_0x268aa4){const _0x401515=a208_0x4eeb,_0xd6cd4e=[];let _0x592e80=0x0,_0x50fcb6=0x0;for(let _0x5a99be=0x0;_0x5a99be<_0x268aa4[_0x401515(0xc0)];_0x5a99be+=0x1){const _0x52059e=_0x268aa4[_0x5a99be];if(_0x52059e==='(')_0x592e80+=0x1;if(_0x52059e===')')_0x592e80=Math['max'](0x0,_0x592e80-0x1);_0x592e80===0x0&&_0x268aa4[_0x401515(0xd1)](_0x5a99be)[_0x401515(0xd6)](/^AND\b/i)&&(_0x5a99be===0x0||/\s/['test'](_0x268aa4[_0x5a99be-0x1]??''))&&(_0xd6cd4e[_0x401515(0xc8)](_0x268aa4[_0x401515(0xd1)](_0x50fcb6,_0x5a99be)['trim']()),_0x5a99be+=0x2,_0x50fcb6=_0x5a99be+0x1);}const _0x3d7c4b=_0x268aa4[_0x401515(0xd1)](_0x50fcb6)[_0x401515(0xe5)]();if(_0x3d7c4b)_0xd6cd4e[_0x401515(0xc8)](_0x3d7c4b);return _0xd6cd4e;}function hasTopLevelKeyword(_0x1466a8,_0x251328){const _0x59f808=a208_0x4eeb;let _0x59a8ff=0x0;for(let _0x4aa582=0x0;_0x4aa582<_0x1466a8[_0x59f808(0xc0)];_0x4aa582+=0x1){const _0x50d346=_0x1466a8[_0x4aa582];if(_0x50d346==='(')_0x59a8ff+=0x1;if(_0x50d346===')')_0x59a8ff=Math[_0x59f808(0xfb)](0x0,_0x59a8ff-0x1);if(_0x59a8ff!==0x0)continue;const _0x2c2199=_0x1466a8[_0x59f808(0xd1)](_0x4aa582,_0x4aa582+_0x251328['length']),_0x57e318=_0x1466a8[_0x4aa582-0x1]??'\x20',_0x277e50=_0x1466a8[_0x4aa582+_0x251328[_0x59f808(0xc0)]]??'\x20';if(_0x2c2199['toUpperCase']()===_0x251328[_0x59f808(0x103)]()&&!/[\w$]/[_0x59f808(0x102)](_0x57e318)&&!/[\w$]/[_0x59f808(0x102)](_0x277e50))return!![];}return![];}function splitEquality(_0x3950bc){const _0x3f3730=a208_0x4eeb,_0x44185d=stripOuterParentheses(_0x3950bc);let _0x4463a4=0x0,_0x484312;for(let _0x8c5ab8=0x0;_0x8c5ab8<_0x44185d['length'];_0x8c5ab8+=0x1){const _0x3f4853=_0x44185d[_0x8c5ab8];if(_0x3f4853==='(')_0x4463a4+=0x1;if(_0x3f4853===')')_0x4463a4=Math[_0x3f3730(0xfb)](0x0,_0x4463a4-0x1);const _0x4ba350=_0x44185d[_0x8c5ab8-0x1]??'',_0x4074fb=_0x44185d[_0x8c5ab8+0x1]??'';if(_0x3f4853==='='&&_0x4463a4===0x0&&!/[!<>=:]/[_0x3f3730(0x102)](_0x4ba350)&&_0x4074fb!=='='){if(_0x484312!==undefined)return null;_0x484312=_0x8c5ab8;}}return _0x484312===undefined?null:[_0x44185d[_0x3f3730(0xd1)](0x0,_0x484312)[_0x3f3730(0xe5)](),_0x44185d[_0x3f3730(0xd1)](_0x484312+0x1)[_0x3f3730(0xe5)]()];}function parseDirectColumnReference(_0x244147,_0x492855){const _0x1f07d0=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/['exec'](stripOuterParentheses(_0x244147));if(!_0x1f07d0)return null;if(normalizeIdentifier(_0x1f07d0[0x1]??'')!==normalizeIdentifier(_0x492855))return null;return normalizeIdentifier(_0x1f07d0[0x2]??'');}function containsColumnReference(_0xe98754,_0x114ee8){const _0x472780=a208_0x4eeb,_0x36129d=_0xe98754[_0x472780(0xf2)](/[`"]/g,''),_0x2f9515=_0x114ee8[_0x472780(0xf2)](/[.*+?^${}()|[\]\\]/g,_0x472780(0xf8));return new RegExp('(?:^|[^\x5cw$])'+_0x2f9515+_0x472780(0xf6),'i')[_0x472780(0x102)](_0x36129d);}function findEqualityPrefix(_0x12c183,_0x2c9276){const _0x5627d6=a208_0x4eeb,_0x35ff5e=new Set(_0x2c9276[_0x5627d6(0xc4)](normalizeIdentifier)),_0xe4f46c=[];for(const _0xb1cea1 of _0x12c183){if(!_0x35ff5e['has'](normalizeIdentifier(_0xb1cea1)))break;_0xe4f46c['push'](_0xb1cea1);}return _0xe4f46c;}function resolveTableMetadata(_0x54388e,_0x529418){const _0x973227=a208_0x4eeb,_0x2c93a7=normalizeIdentifier(_0x529418),_0xdd806c=_0x54388e[_0x973227(0xcb)](_0xdb1ce9=>normalizeIdentifier(_0xdb1ce9[_0x973227(0xf9)])===_0x2c93a7);if(_0xdd806c[_0x973227(0xc0)]===0x1)return _0xdd806c[0x0];const _0x423792=_0x2c93a7['includes']('.'),_0x1d60e4=_0x2c93a7[_0x973227(0xf0)]('.')['at'](-0x1),_0x5f1b49=_0x54388e['filter'](_0x381e6e=>{const _0x287c11=_0x973227,_0x16e878=normalizeIdentifier(_0x381e6e[_0x287c11(0xf9)]);if(_0x423792&&_0x16e878[_0x287c11(0xc6)]('.'))return![];return _0x16e878[_0x287c11(0xf0)]('.')['at'](-0x1)===_0x1d60e4;});return _0x5f1b49['length']===0x1?_0x5f1b49[0x0]:undefined;}function columnNamesMatch(_0x22453b,_0x1de2ba){return normalizeIdentifier(_0x22453b)===normalizeIdentifier(_0x1de2ba);}function normalizeIdentifier(_0x582660){const _0x419b28=a208_0x4eeb;return _0x582660[_0x419b28(0xf2)](/[`"]/g,'')[_0x419b28(0xe5)]()[_0x419b28(0xd2)]();}function a208_0x4eeb(_0x54fce4,_0x4af448){_0x54fce4=_0x54fce4-0xc0;const _0x1d9fed=a208_0x1d9f();let _0x4eebd8=_0x1d9fed[_0x54fce4];return _0x4eebd8;}function isSqlClauseKeyword(_0x138827){const _0x1209d3=a208_0x4eeb;return new Set(['on',_0x1209d3(0xd9),_0x1209d3(0xda),'join','inner',_0x1209d3(0xf1),'right','full',_0x1209d3(0xe9),_0x1209d3(0xe7)])[_0x1209d3(0xf5)](_0x138827);}function stripOuterParentheses(_0x396f88){const _0x17619d=a208_0x4eeb;let _0x103d6b=_0x396f88[_0x17619d(0xe5)]();while(_0x103d6b[_0x17619d(0xff)]('(')&&_0x103d6b['endsWith'](')')){let _0x70b134=0x0,_0x48f961=!![];for(let _0x190a0a=0x0;_0x190a0a<_0x103d6b[_0x17619d(0xc0)];_0x190a0a+=0x1){if(_0x103d6b[_0x190a0a]==='(')_0x70b134+=0x1;if(_0x103d6b[_0x190a0a]===')')_0x70b134-=0x1;if(_0x70b134===0x0&&_0x190a0a<_0x103d6b[_0x17619d(0xc0)]-0x1){_0x48f961=![];break;}}if(!_0x48f961||_0x70b134!==0x0)break;_0x103d6b=_0x103d6b[_0x17619d(0xd1)](0x1,-0x1)[_0x17619d(0xe5)]();}return _0x103d6b;}
1
+ (function(_0x292fb2,_0x53801f){const _0x4c3d25=a209_0x52aa,_0x47fa6b=_0x292fb2();while(!![]){try{const _0x5481b8=parseInt(_0x4c3d25(0x197))/0x1*(parseInt(_0x4c3d25(0x17e))/0x2)+parseInt(_0x4c3d25(0x18c))/0x3*(parseInt(_0x4c3d25(0x163))/0x4)+-parseInt(_0x4c3d25(0x167))/0x5+parseInt(_0x4c3d25(0x16f))/0x6*(-parseInt(_0x4c3d25(0x162))/0x7)+parseInt(_0x4c3d25(0x173))/0x8*(parseInt(_0x4c3d25(0x1a4))/0x9)+parseInt(_0x4c3d25(0x17a))/0xa*(parseInt(_0x4c3d25(0x165))/0xb)+parseInt(_0x4c3d25(0x164))/0xc*(-parseInt(_0x4c3d25(0x179))/0xd);if(_0x5481b8===_0x53801f)break;else _0x47fa6b['push'](_0x47fa6b['shift']());}catch(_0x4fcf71){_0x47fa6b['push'](_0x47fa6b['shift']());}}}(a209_0x2391,0x57902));export function auditSqlJoinIndexes(_0x335189,_0x3fd2fd){const _0x3c66b6=a209_0x52aa,_0x4e54ba=[],_0xf2e76c=extractJoinFacts(_0x335189)['map'](_0x1da914=>{const _0x2ce1fe=a209_0x52aa;if(_0x1da914[_0x2ce1fe(0x19c)]||_0x1da914[_0x2ce1fe(0x174)][_0x2ce1fe(0x1a5)]===0x0)return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x184),'table':_0x1da914['table'],'alias':_0x1da914['alias'],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x1da914[_0x2ce1fe(0x183)]??_0x2ce1fe(0x168)}),{'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x1a3)};const _0x32a01a=resolveTableMetadata(_0x3fd2fd,_0x1da914['table']),_0x5dd272=(_0x32a01a?.[_0x2ce1fe(0x17c)]??[])[_0x2ce1fe(0x186)](_0x26d1c2=>({'index':_0x26d1c2,'matchedPrefix':findEqualityPrefix(_0x26d1c2['columns'],_0x1da914[_0x2ce1fe(0x174)])}))['filter'](_0x3fb01c=>_0x3fb01c[_0x2ce1fe(0x17d)][_0x2ce1fe(0x1a5)]>0x0),_0x1b0e55=_0x5dd272[_0x2ce1fe(0x18a)]((_0x4b6035,_0x199f2a)=>!_0x4b6035||_0x199f2a[_0x2ce1fe(0x17d)][_0x2ce1fe(0x1a5)]>_0x4b6035['matchedPrefix'][_0x2ce1fe(0x1a5)]?_0x199f2a:_0x4b6035,_0x5dd272[0x0]);if(_0x1b0e55)return{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x18d),'matchedIndex':{..._0x1b0e55[_0x2ce1fe(0x17b)],'matchedPrefix':_0x1b0e55['matchedPrefix']}};const _0x33de71=_0x32a01a?.[_0x2ce1fe(0x17c)][_0x2ce1fe(0x16c)](_0x590901=>_0x590901[_0x2ce1fe(0x174)][_0x2ce1fe(0x16d)](_0x708270=>_0x1da914[_0x2ce1fe(0x174)][_0x2ce1fe(0x16d)](_0x34c367=>columnNamesMatch(_0x708270,_0x34c367))))??[];if(_0x33de71['length']>0x0)return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x161),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x2ce1fe(0x185)}),{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x199),'candidateIndexes':_0x33de71};if(_0x32a01a&&_0x32a01a['metadataAvailable']!==![]&&_0x32a01a[_0x2ce1fe(0x17c)][_0x2ce1fe(0x1a5)]>0x0&&_0x1da914['columns'][_0x2ce1fe(0x1a5)]>0x0)return _0x4e54ba['push']({'code':_0x2ce1fe(0x1a1),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x2ce1fe(0x192)}),{'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x199)};return _0x4e54ba[_0x2ce1fe(0x169)]({'code':_0x2ce1fe(0x166),'table':_0x1da914[_0x2ce1fe(0x180)],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'reason':_0x32a01a?'The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.':_0x2ce1fe(0x19b)}),{'table':_0x1da914['table'],'alias':_0x1da914[_0x2ce1fe(0x160)],'columns':_0x1da914[_0x2ce1fe(0x174)],'status':_0x2ce1fe(0x1a3)};});return{'checked':_0xf2e76c[_0x3c66b6(0x1a5)]>0x0,'joins':_0xf2e76c,'warnings':_0x4e54ba};}function a209_0x2391(){const _0x117fe6=['Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','push','(?:^|[^\x5cw$])','cross','filter','some','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','6WIMgud','inner','has','tableName','3224TVyZyi','columns','where','full','includes','test','13lOsDOV','1370810NUNoNB','index','indexes','matchedPrefix','6BdrcLn','position','table','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','\x5cs*\x5c.\x5cs*[\x5cw$]+','unsupportedReason','JOIN_PREDICATE_UNSUPPORTED','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','map','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','right','min','reduce','max','3189ARKvHS','covered','matchAll','split','exec','match','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','join','INNER','add','slice','99677dOxMDk','replace','warning','startsWith','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','unsupportedPredicate','__sq__','trim','using','from','JOIN_INDEX_MISSING','toUpperCase','unavailable','747iSiaQh','length','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','natural','alias','JOIN_INDEX_NOT_USABLE','79471SSYfXD','932DYhNVB','1986864OQVuhc','22eicKIg','INDEX_METADATA_UNAVAILABLE','1593690BCRmDO'];a209_0x2391=function(){return _0x117fe6;};return a209_0x2391();}function extractJoinFacts(_0x3d024e){const _0x457b6f=a209_0x52aa,_0x33abf3=maskNestedQueries(stripSqlNoise(_0x3d024e)),_0xff8121=maskQuotedIdentifiers(_0x33abf3),_0x3d1c41=[],_0x35da0f=new Set(),_0x2385d2=/\b(?:(INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?\s+ON\s+([\s\S]*?)(?=\s+(?:(?:(?:INNER|LEFT|RIGHT|FULL)(?:\s+OUTER)?\s+)?JOIN\b|(?:WHERE|GROUP\s+BY|ORDER\s+BY|HAVING|LIMIT|UNION)\b)|;|$)/gi;for(const _0x476822 of _0x33abf3[_0x457b6f(0x18e)](_0x2385d2)){const _0x4884ed=_0x476822[_0x457b6f(0x17b)]??0x0,_0x1af2f8=_0x476822[0x0]['search'](/\bJOIN\b/i),_0x43ba10=_0x4884ed+Math[_0x457b6f(0x18b)](0x0,_0x1af2f8);if(!/^JOIN\b/i[_0x457b6f(0x178)](_0xff8121['slice'](_0x43ba10)))continue;_0x35da0f[_0x457b6f(0x195)](_0x43ba10);const _0x40934b=normalizeIdentifier(_0x476822[0x1]||_0x457b6f(0x194)),_0x3cf0b1=normalizeIdentifier(_0x476822[0x2]??''),_0x26cf89=normalizeIdentifier(_0x476822[0x3]||_0x3cf0b1[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x3cf0b1),_0x40532e=[],_0x29b9e1=_0x3cf0b1===_0x457b6f(0x19d);let _0x38b3ef=_0x40934b===_0x457b6f(0x188)||_0x40934b===_0x457b6f(0x176)||_0x29b9e1,_0x58cbfd=_0x38b3ef?_0x29b9e1?_0x457b6f(0x187):_0x40934b[_0x457b6f(0x1a2)]()+_0x457b6f(0x16e):undefined;const _0x16f0b0=stripOuterParentheses(_0x476822[0x4]??'');hasTopLevelKeyword(_0x16f0b0,'OR')&&(_0x38b3ef=!![],_0x58cbfd??=_0x457b6f(0x181));for(const _0x1f10de of splitTopLevelAnd(_0x16f0b0)){const _0x8dc91b=stripOuterParentheses(_0x1f10de);if(hasTopLevelKeyword(_0x8dc91b,'OR')){_0x38b3ef=!![],_0x58cbfd??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.';continue;}const _0x1c4313=splitEquality(_0x8dc91b);if(!_0x1c4313){containsColumnReference(_0x1f10de,_0x26cf89)&&(_0x38b3ef=!![]);continue;}const _0x657a73=parseDirectColumnReference(_0x1c4313[0x0],_0x26cf89),_0x3918b5=parseDirectColumnReference(_0x1c4313[0x1],_0x26cf89),_0x24b744=containsColumnReference(_0x1c4313[0x0],_0x26cf89),_0xa2e3c1=containsColumnReference(_0x1c4313[0x1],_0x26cf89),_0x56f08e=_0x657a73&&!_0xa2e3c1?_0x657a73:_0x3918b5&&!_0x24b744?_0x3918b5:null;if(_0x56f08e&&!_0x40532e[_0x457b6f(0x177)](_0x56f08e))_0x40532e[_0x457b6f(0x169)](_0x56f08e);else!_0x56f08e&&containsColumnReference(_0x1f10de,_0x26cf89)&&(_0x38b3ef=!![]);}_0x3d1c41[_0x457b6f(0x169)]({'table':_0x3cf0b1,'alias':_0x26cf89,'columns':_0x40532e,'unsupportedPredicate':_0x38b3ef,'unsupportedReason':_0x58cbfd,'position':_0x43ba10});}for(const _0x2b7d55 of _0xff8121[_0x457b6f(0x18e)](/\bJOIN\b/gi)){const _0x3d3326=_0x2b7d55[_0x457b6f(0x17b)]??0x0;if(_0x35da0f[_0x457b6f(0x171)](_0x3d3326))continue;const _0x38e480=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x457b6f(0x190)](_0x33abf3[_0x457b6f(0x196)](_0x3d3326+_0x2b7d55[0x0][_0x457b6f(0x1a5)])),_0x73b13a=normalizeIdentifier(_0x38e480?.[0x1]||'unknown'),_0x3c34f0=normalizeIdentifier(_0x38e480?.[0x2]||''),_0x1c2201=isSqlClauseKeyword(_0x3c34f0)?_0x73b13a[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x73b13a:_0x3c34f0||_0x73b13a[_0x457b6f(0x18f)]('.')['at'](-0x1)||_0x73b13a;_0x3d1c41[_0x457b6f(0x169)]({'table':_0x73b13a,'alias':_0x1c2201,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x457b6f(0x15e),'position':_0x3d3326});}return _0x3d1c41['sort']((_0x260cd0,_0x1edac9)=>_0x260cd0[_0x457b6f(0x17f)]-_0x1edac9[_0x457b6f(0x17f)]);}function a209_0x52aa(_0x12b42a,_0x23080a){_0x12b42a=_0x12b42a-0x15e;const _0x2391b6=a209_0x2391();let _0x52aa34=_0x2391b6[_0x12b42a];return _0x52aa34;}function stripSqlNoise(_0x33ae28){const _0x3e371c=a209_0x52aa,_0x4461f7=Array['from'](_0x33ae28),_0x4ec845=(_0x431d74,_0x1ad28a)=>{for(let _0x4b4021=_0x431d74;_0x4b4021<_0x1ad28a;_0x4b4021+=0x1){_0x4461f7[_0x4b4021]!=='\x0a'&&_0x4461f7[_0x4b4021]!=='\x0d'&&(_0x4461f7[_0x4b4021]='\x20');}};for(let _0x28e54b=0x0;_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)];_0x28e54b+=0x1){const _0x4ce421=_0x4461f7[_0x28e54b],_0x2b2fd3=_0x4461f7[_0x28e54b+0x1];if(_0x4ce421==='\x27'||_0x4ce421==='\x22'||_0x4ce421==='`'){const _0x4da832=_0x4ce421,_0x31c93a=_0x28e54b;_0x28e54b+=0x1;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]){if(_0x4461f7[_0x28e54b]==='\x5c'&&_0x28e54b+0x1<_0x4461f7[_0x3e371c(0x1a5)]){_0x28e54b+=0x2;continue;}if(_0x4461f7[_0x28e54b]!==_0x4da832){_0x28e54b+=0x1;continue;}if(_0x4461f7[_0x28e54b+0x1]===_0x4da832){_0x28e54b+=0x2;continue;}break;}if(_0x4da832==='\x27')_0x4ec845(_0x31c93a,Math[_0x3e371c(0x189)](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]));continue;}if(_0x4ce421==='-'&&_0x2b2fd3==='-'){const _0x44ac99=_0x28e54b;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='\x0a')_0x28e54b+=0x1;_0x4ec845(_0x44ac99,_0x28e54b);continue;}if(_0x4ce421==='/'&&_0x2b2fd3==='*'){const _0x35f672=_0x28e54b;_0x28e54b+=0x2;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&!(_0x4461f7[_0x28e54b]==='*'&&_0x4461f7[_0x28e54b+0x1]==='/')){_0x28e54b+=0x1;}_0x28e54b=Math[_0x3e371c(0x189)](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]-0x1),_0x4ec845(_0x35f672,_0x28e54b+0x1);continue;}if(_0x4ce421==='#'&&_0x2b2fd3!=='{'){const _0x4a2542=_0x28e54b;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='\x0a')_0x28e54b+=0x1;_0x4ec845(_0x4a2542,_0x28e54b);continue;}if((_0x4ce421==='#'||_0x4ce421==='$')&&_0x2b2fd3==='{'){const _0x389684=_0x28e54b;_0x28e54b+=0x2;while(_0x28e54b<_0x4461f7[_0x3e371c(0x1a5)]&&_0x4461f7[_0x28e54b]!=='}')_0x28e54b+=0x1;_0x4ec845(_0x389684,Math['min'](_0x28e54b+0x1,_0x4461f7[_0x3e371c(0x1a5)]));}}return _0x4461f7[_0x3e371c(0x193)]('');}function maskQuotedIdentifiers(_0xaaab63){const _0x1dbec0=a209_0x52aa,_0x1498ad=Array[_0x1dbec0(0x1a0)](_0xaaab63);for(let _0x319ebc=0x0;_0x319ebc<_0x1498ad[_0x1dbec0(0x1a5)];_0x319ebc+=0x1){const _0x4f755f=_0x1498ad[_0x319ebc];if(_0x4f755f!=='\x22'&&_0x4f755f!=='`')continue;_0x319ebc+=0x1;while(_0x319ebc<_0x1498ad[_0x1dbec0(0x1a5)]){if(_0x1498ad[_0x319ebc]===_0x4f755f){if(_0x1498ad[_0x319ebc+0x1]===_0x4f755f){_0x1498ad[_0x319ebc]='\x20',_0x1498ad[_0x319ebc+0x1]='\x20',_0x319ebc+=0x2;continue;}break;}_0x1498ad[_0x319ebc]='\x20',_0x319ebc+=0x1;}}return _0x1498ad['join']('');}function maskNestedQueries(_0xd4224a){const _0x29920c=a209_0x52aa,_0x11a095=Array[_0x29920c(0x1a0)](_0xd4224a);for(let _0x21d9bc=0x0;_0x21d9bc<_0x11a095['length'];_0x21d9bc+=0x1){if(_0x11a095[_0x21d9bc]!=='(')continue;const _0x43ed96=_0xd4224a[_0x29920c(0x196)](_0x21d9bc+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x29920c(0x178)](_0x43ed96))continue;let _0x65da9b=0x1,_0x24897a=_0x21d9bc+0x1;for(;_0x24897a<_0x11a095[_0x29920c(0x1a5)]&&_0x65da9b>0x0;_0x24897a+=0x1){if(_0x11a095[_0x24897a]==='(')_0x65da9b+=0x1;if(_0x11a095[_0x24897a]===')')_0x65da9b-=0x1;}if(_0x65da9b!==0x0)continue;for(let _0x57f6df=_0x21d9bc;_0x57f6df<_0x24897a;_0x57f6df+=0x1){_0x11a095[_0x57f6df]='\x20';}const _0x498320='__sq__';for(let _0x1f90f6=0x0;_0x1f90f6<_0x498320[_0x29920c(0x1a5)]&&_0x21d9bc+_0x1f90f6<_0x24897a;_0x1f90f6+=0x1){_0x11a095[_0x21d9bc+_0x1f90f6]=_0x498320[_0x1f90f6];}_0x21d9bc=_0x24897a-0x1;}return _0x11a095[_0x29920c(0x193)]('');}function splitTopLevelAnd(_0x20cd40){const _0x1f4b03=a209_0x52aa,_0x306ca6=[];let _0x204e7a=0x0,_0x2c3328=0x0;for(let _0x2cb9eb=0x0;_0x2cb9eb<_0x20cd40[_0x1f4b03(0x1a5)];_0x2cb9eb+=0x1){const _0x1bc169=_0x20cd40[_0x2cb9eb];if(_0x1bc169==='(')_0x204e7a+=0x1;if(_0x1bc169===')')_0x204e7a=Math[_0x1f4b03(0x18b)](0x0,_0x204e7a-0x1);_0x204e7a===0x0&&_0x20cd40[_0x1f4b03(0x196)](_0x2cb9eb)[_0x1f4b03(0x191)](/^AND\b/i)&&(_0x2cb9eb===0x0||/\s/[_0x1f4b03(0x178)](_0x20cd40[_0x2cb9eb-0x1]??''))&&(_0x306ca6['push'](_0x20cd40['slice'](_0x2c3328,_0x2cb9eb)[_0x1f4b03(0x19e)]()),_0x2cb9eb+=0x2,_0x2c3328=_0x2cb9eb+0x1);}const _0x2ab179=_0x20cd40[_0x1f4b03(0x196)](_0x2c3328)[_0x1f4b03(0x19e)]();if(_0x2ab179)_0x306ca6[_0x1f4b03(0x169)](_0x2ab179);return _0x306ca6;}function hasTopLevelKeyword(_0xf728d9,_0x5cc92c){const _0x371706=a209_0x52aa;let _0x1c94a8=0x0;for(let _0x2e066f=0x0;_0x2e066f<_0xf728d9['length'];_0x2e066f+=0x1){const _0x3c6a49=_0xf728d9[_0x2e066f];if(_0x3c6a49==='(')_0x1c94a8+=0x1;if(_0x3c6a49===')')_0x1c94a8=Math[_0x371706(0x18b)](0x0,_0x1c94a8-0x1);if(_0x1c94a8!==0x0)continue;const _0x3fb7d8=_0xf728d9[_0x371706(0x196)](_0x2e066f,_0x2e066f+_0x5cc92c[_0x371706(0x1a5)]),_0x14ec12=_0xf728d9[_0x2e066f-0x1]??'\x20',_0x448880=_0xf728d9[_0x2e066f+_0x5cc92c[_0x371706(0x1a5)]]??'\x20';if(_0x3fb7d8[_0x371706(0x1a2)]()===_0x5cc92c['toUpperCase']()&&!/[\w$]/['test'](_0x14ec12)&&!/[\w$]/[_0x371706(0x178)](_0x448880))return!![];}return![];}function splitEquality(_0x33dc6c){const _0x512db9=a209_0x52aa,_0x5d1b4e=stripOuterParentheses(_0x33dc6c);let _0x460dff=0x0,_0x5a8cf9;for(let _0x53094c=0x0;_0x53094c<_0x5d1b4e['length'];_0x53094c+=0x1){const _0x5e6ed4=_0x5d1b4e[_0x53094c];if(_0x5e6ed4==='(')_0x460dff+=0x1;if(_0x5e6ed4===')')_0x460dff=Math[_0x512db9(0x18b)](0x0,_0x460dff-0x1);const _0x4f2d66=_0x5d1b4e[_0x53094c-0x1]??'',_0x31dc4e=_0x5d1b4e[_0x53094c+0x1]??'';if(_0x5e6ed4==='='&&_0x460dff===0x0&&!/[!<>=:]/[_0x512db9(0x178)](_0x4f2d66)&&_0x31dc4e!=='='){if(_0x5a8cf9!==undefined)return null;_0x5a8cf9=_0x53094c;}}return _0x5a8cf9===undefined?null:[_0x5d1b4e[_0x512db9(0x196)](0x0,_0x5a8cf9)[_0x512db9(0x19e)](),_0x5d1b4e[_0x512db9(0x196)](_0x5a8cf9+0x1)['trim']()];}function parseDirectColumnReference(_0x2c3e4e,_0x513bbf){const _0x71bf7a=a209_0x52aa,_0x4f0ce1=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x71bf7a(0x190)](stripOuterParentheses(_0x2c3e4e));if(!_0x4f0ce1)return null;if(normalizeIdentifier(_0x4f0ce1[0x1]??'')!==normalizeIdentifier(_0x513bbf))return null;return normalizeIdentifier(_0x4f0ce1[0x2]??'');}function containsColumnReference(_0x4d088e,_0x10ed76){const _0x66ab4a=a209_0x52aa,_0x426e54=_0x4d088e['replace'](/[`"]/g,''),_0x591510=_0x10ed76['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&');return new RegExp(_0x66ab4a(0x16a)+_0x591510+_0x66ab4a(0x182),'i')[_0x66ab4a(0x178)](_0x426e54);}function findEqualityPrefix(_0x4e2025,_0x2f754d){const _0x44fe1e=new Set(_0x2f754d['map'](normalizeIdentifier)),_0x371c5d=[];for(const _0x512b9e of _0x4e2025){if(!_0x44fe1e['has'](normalizeIdentifier(_0x512b9e)))break;_0x371c5d['push'](_0x512b9e);}return _0x371c5d;}function resolveTableMetadata(_0x5aba8a,_0x41ae41){const _0x26d8e3=a209_0x52aa,_0x2b611a=normalizeIdentifier(_0x41ae41),_0x57e091=_0x5aba8a['filter'](_0x5c6e71=>normalizeIdentifier(_0x5c6e71[_0x26d8e3(0x172)])===_0x2b611a);if(_0x57e091[_0x26d8e3(0x1a5)]===0x1)return _0x57e091[0x0];const _0x3d6376=_0x2b611a[_0x26d8e3(0x177)]('.'),_0x1f04c3=_0x2b611a[_0x26d8e3(0x18f)]('.')['at'](-0x1),_0x2841e4=_0x5aba8a[_0x26d8e3(0x16c)](_0x178308=>{const _0x2bbff7=_0x26d8e3,_0x3264ff=normalizeIdentifier(_0x178308[_0x2bbff7(0x172)]);if(_0x3d6376&&_0x3264ff[_0x2bbff7(0x177)]('.'))return![];return _0x3264ff['split']('.')['at'](-0x1)===_0x1f04c3;});return _0x2841e4[_0x26d8e3(0x1a5)]===0x1?_0x2841e4[0x0]:undefined;}function columnNamesMatch(_0x5b2664,_0x2152a1){return normalizeIdentifier(_0x5b2664)===normalizeIdentifier(_0x2152a1);}function normalizeIdentifier(_0x2b5804){const _0x486f8e=a209_0x52aa;return _0x2b5804[_0x486f8e(0x198)](/[`"]/g,'')[_0x486f8e(0x19e)]()['toLowerCase']();}function isSqlClauseKeyword(_0x3e0257){const _0x149e2b=a209_0x52aa;return new Set(['on',_0x149e2b(0x19f),_0x149e2b(0x175),'join',_0x149e2b(0x170),'left','right','full',_0x149e2b(0x16b),_0x149e2b(0x15f)])['has'](_0x3e0257);}function stripOuterParentheses(_0x15cc02){const _0x4e5431=a209_0x52aa;let _0x95913e=_0x15cc02[_0x4e5431(0x19e)]();while(_0x95913e[_0x4e5431(0x19a)]('(')&&_0x95913e['endsWith'](')')){let _0x709bdb=0x0,_0x5088ea=!![];for(let _0x25a409=0x0;_0x25a409<_0x95913e[_0x4e5431(0x1a5)];_0x25a409+=0x1){if(_0x95913e[_0x25a409]==='(')_0x709bdb+=0x1;if(_0x95913e[_0x25a409]===')')_0x709bdb-=0x1;if(_0x709bdb===0x0&&_0x25a409<_0x95913e[_0x4e5431(0x1a5)]-0x1){_0x5088ea=![];break;}}if(!_0x5088ea||_0x709bdb!==0x0)break;_0x95913e=_0x95913e[_0x4e5431(0x196)](0x1,-0x1)['trim']();}return _0x95913e;}
@@ -1 +1 @@
1
- function a209_0x2907(_0x38295e,_0x59511e){_0x38295e=_0x38295e-0x198;const _0x5a1811=a209_0x5a18();let _0x290726=_0x5a1811[_0x38295e];return _0x290726;}const a209_0x231d93=a209_0x2907;(function(_0x53d3a3,_0x586177){const _0x120808=a209_0x2907,_0x252d95=_0x53d3a3();while(!![]){try{const _0x2c6861=parseInt(_0x120808(0x1a4))/0x1+parseInt(_0x120808(0x198))/0x2*(parseInt(_0x120808(0x1a5))/0x3)+-parseInt(_0x120808(0x199))/0x4*(-parseInt(_0x120808(0x19f))/0x5)+parseInt(_0x120808(0x19e))/0x6*(parseInt(_0x120808(0x1a6))/0x7)+parseInt(_0x120808(0x1a9))/0x8*(-parseInt(_0x120808(0x19b))/0x9)+-parseInt(_0x120808(0x19c))/0xa*(parseInt(_0x120808(0x1a2))/0xb)+-parseInt(_0x120808(0x19d))/0xc*(parseInt(_0x120808(0x1a0))/0xd);if(_0x2c6861===_0x586177)break;else _0x252d95['push'](_0x252d95['shift']());}catch(_0x41c954){_0x252d95['push'](_0x252d95['shift']());}}}(a209_0x5a18,0x5b055));import{resolve}from'node:path';function a209_0x5a18(){const _0x45cbe8=['3493VMbeJI','sql-trash','sql.lock.json','1629120ucrcmZ','1226eIoUeg','8DqQaYx','.rabetbase','27aNAuKI','330gmfSvN','14844XZzyMS','7080SyQFMQ','1441635KuFiKm','9100zleCNl','sql','27698ujvDXj','/sql','61698MFeQJs','3453cgnKVf'];a209_0x5a18=function(){return _0x45cbe8;};return a209_0x5a18();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a209_0x231d93(0x19a),LOCK_FILE_NAME=a209_0x231d93(0x1a8),TRASH_DIR_NAME=a209_0x231d93(0x1a7);export function loadSqlProjectConfig(_0x1b27e7,_0xf05b3d){const _0x144b8d=a209_0x231d93,_0xd29502=resolve(_0xf05b3d??findProjectRootDirectory()),_0x2d3b78=DOT_DIR+_0x144b8d(0x1a3),_0x20df23=_0x2d3b78+'/'+_0x1b27e7;return{'projectRoot':_0xd29502,'appCode':_0x1b27e7,'sqlWorkspaceRoot':_0x2d3b78,'sqlRoot':_0x20df23,'sqlRootDir':resolve(_0xd29502,DOT_DIR,_0x144b8d(0x1a1),_0x1b27e7),'lockFilePath':resolve(_0xd29502,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xd29502,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a210_0x414585=a210_0x3210;(function(_0x24efd0,_0x540f13){const _0x583042=a210_0x3210,_0x2be42f=_0x24efd0();while(!![]){try{const _0xddb2c0=-parseInt(_0x583042(0xf4))/0x1*(-parseInt(_0x583042(0xf6))/0x2)+parseInt(_0x583042(0xf1))/0x3+-parseInt(_0x583042(0xfe))/0x4*(parseInt(_0x583042(0xf7))/0x5)+-parseInt(_0x583042(0xf2))/0x6*(parseInt(_0x583042(0xf3))/0x7)+-parseInt(_0x583042(0x100))/0x8*(-parseInt(_0x583042(0xf9))/0x9)+-parseInt(_0x583042(0xfd))/0xa*(parseInt(_0x583042(0xf8))/0xb)+parseInt(_0x583042(0xfc))/0xc;if(_0xddb2c0===_0x540f13)break;else _0x2be42f['push'](_0x2be42f['shift']());}catch(_0x203896){_0x2be42f['push'](_0x2be42f['shift']());}}}(a210_0x393f,0x22c04));function a210_0x3210(_0xe28484,_0x5f4af4){_0xe28484=_0xe28484-0xf1;const _0x393f1c=a210_0x393f();let _0x321011=_0x393f1c[_0xe28484];return _0x321011;}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a210_0x414585(0xf5),LOCK_FILE_NAME=a210_0x414585(0xfb),TRASH_DIR_NAME=a210_0x414585(0xff);function a210_0x393f(){const _0x8dbf0=['1086408uhDGTL','20lvXvMq','2708VBDMAV','sql-trash','17272qWrJyf','819309ysgyrl','13146RFVlQY','651DOKdGI','281641tIkAAG','.rabetbase','2OBylsT','1755iCDSAC','1407219nQEExV','810pqoKvi','/sql','sql.lock.json'];a210_0x393f=function(){return _0x8dbf0;};return a210_0x393f();}export function loadSqlProjectConfig(_0x5f282f,_0x5c0995){const _0x187931=a210_0x414585,_0x5e9cca=resolve(_0x5c0995??findProjectRootDirectory()),_0xa6fe53=DOT_DIR+_0x187931(0xfa),_0x3dcaa9=_0xa6fe53+'/'+_0x5f282f;return{'projectRoot':_0x5e9cca,'appCode':_0x5f282f,'sqlWorkspaceRoot':_0xa6fe53,'sqlRoot':_0x3dcaa9,'sqlRootDir':resolve(_0x5e9cca,DOT_DIR,'sql',_0x5f282f),'lockFilePath':resolve(_0x5e9cca,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5e9cca,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x39862f,_0x15c4b0){const _0x1f9041=a210_0x4f2e,_0x510d9a=_0x39862f();while(!![]){try{const _0x5c0116=-parseInt(_0x1f9041(0x19e))/0x1*(-parseInt(_0x1f9041(0x1a7))/0x2)+-parseInt(_0x1f9041(0x198))/0x3*(-parseInt(_0x1f9041(0x196))/0x4)+parseInt(_0x1f9041(0x19b))/0x5*(-parseInt(_0x1f9041(0x19c))/0x6)+-parseInt(_0x1f9041(0x1a8))/0x7*(parseInt(_0x1f9041(0x1a1))/0x8)+-parseInt(_0x1f9041(0x19f))/0x9*(parseInt(_0x1f9041(0x193))/0xa)+parseInt(_0x1f9041(0x199))/0xb+parseInt(_0x1f9041(0x1a0))/0xc;if(_0x5c0116===_0x15c4b0)break;else _0x510d9a['push'](_0x510d9a['shift']());}catch(_0x2b1898){_0x510d9a['push'](_0x510d9a['shift']());}}}(a210_0x3b3f,0xe0aab));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x4e70e2){const _0x45cac2=a210_0x4f2e;if(_0x4e70e2===_0x45cac2(0x19d))return _0x45cac2(0x1ab);if(_0x4e70e2===_0x45cac2(0x19a))return _0x45cac2(0x1ad);return undefined;}async function scanSqlFilesRecursively(_0x426f3c,_0x30aee2){const _0x1af0d3=a210_0x4f2e,_0x3f6568=[];try{const _0x10925c=await readdir(_0x426f3c,{'withFileTypes':!![]});for(const _0x137d28 of _0x10925c){const _0x149a18=join(_0x426f3c,_0x137d28[_0x1af0d3(0x1a2)]);if(_0x137d28['isDirectory']()){_0x3f6568[_0x1af0d3(0x191)](...await scanSqlFilesRecursively(_0x149a18,_0x30aee2));continue;}if(!_0x137d28[_0x1af0d3(0x1a6)]())continue;const _0x4b62b8=extname(_0x137d28[_0x1af0d3(0x1a2)])[_0x1af0d3(0x18d)](),_0x3d35d7=extensionToMode(_0x4b62b8);if(!_0x3d35d7)continue;const _0x2c43a6=relative(_0x30aee2,_0x149a18)['replace'](/\\/g,'/'),_0x272a32=_0x2c43a6[_0x1af0d3(0x1a3)]('/')['filter'](Boolean),_0x46f818=parseSqlPath(_0x272a32,_0x137d28[_0x1af0d3(0x1a2)],_0x4b62b8);if(!_0x46f818)continue;_0x3f6568[_0x1af0d3(0x191)]({'sqlCode':_0x46f818['sqlCode'],'sqlName':_0x46f818[_0x1af0d3(0x195)],'dbDirectory':_0x272a32[0x0],'filePath':_0x149a18,'relativePath':_0x2c43a6,'lockKey':_0x46f818[_0x1af0d3(0x1aa)],'mode':_0x3d35d7});}}catch(_0x585815){if(_0x585815[_0x1af0d3(0x190)]!=='ENOENT')throw _0x585815;}return _0x3f6568;}function a210_0x4f2e(_0x5da532,_0x2dd441){_0x5da532=_0x5da532-0x18d;const _0x3b3f40=a210_0x3b3f();let _0x4f2e06=_0x3b3f40[_0x5da532];return _0x4f2e06;}export async function scanLocalSqlQueries(_0x5e8142){const _0x295934=a210_0x4f2e;return scanSqlFilesRecursively(_0x5e8142[_0x295934(0x197)],_0x5e8142['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x29babd,_0x338f5b,_0x3bea9b){const _0x4b9e49=a210_0x4f2e,_0x407cbd=_0x3bea9b?.[_0x4b9e49(0x18f)]||(_0x3bea9b?.[_0x4b9e49(0x195)]||_0x3bea9b?.['dbName']?buildSqlRelativePath(_0x338f5b,_0x3bea9b?.['sqlName'],_0x3bea9b?.[_0x4b9e49(0x194)],_0x3bea9b?.['mode']||'sql',_0x3bea9b?.[_0x4b9e49(0x1ae)]):buildDefaultSqlFileName(_0x338f5b,_0x3bea9b?.[_0x4b9e49(0x192)]||_0x4b9e49(0x1ab)));return join(_0x29babd[_0x4b9e49(0x197)],_0x407cbd);}function a210_0x3b3f(){const _0x194a25=['slice','path','code','push','mode','1449730mNZEzg','dbName','sqlName','1040atbXxa','sqlRootDir','2367DRSAVR','14780095RzhJAS','.xml','115XFCGTc','47562fgEdIm','.sql','1039grNtcY','9DnLQYd','5400168vJquCm','16DuKUGu','name','split','isDirectory','indexOf','isFile','392BSTlZj','3342199opUvvU','test','sqlCode','sql','length','mybatisXml','dbId','toLowerCase'];a210_0x3b3f=function(){return _0x194a25;};return a210_0x3b3f();}export async function directoryExists(_0x5ea181){const _0x22dd78=a210_0x4f2e;try{const _0x41ed06=await stat(_0x5ea181);return _0x41ed06[_0x22dd78(0x1a4)]();}catch{return![];}}function parseSqlPath(_0x4ad9d9,_0xacccd8,_0xc474c9){const _0x5aba77=a210_0x4f2e,_0x1ba36c=_0xacccd8[_0x5aba77(0x18e)](0x0,-_0xc474c9[_0x5aba77(0x1ac)]);if(_0x4ad9d9[_0x5aba77(0x1ac)]<0x2)return null;const _0x153bc9=_0x1ba36c[_0x5aba77(0x1a5)]('_');if(_0x153bc9<=0x0||_0x153bc9>=_0x1ba36c[_0x5aba77(0x1ac)]-0x1)return null;const _0x480ba6=_0x1ba36c[_0x5aba77(0x18e)](0x0,_0x153bc9);if(!isLikelySqlCode(_0x480ba6))return null;return{'sqlCode':_0x480ba6,'sqlName':_0x1ba36c['slice'](_0x153bc9+0x1)};}function isLikelySqlCode(_0xc8cbc7){const _0xcd49c0=a210_0x4f2e;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xcd49c0(0x1a9)](_0xc8cbc7);}
1
+ (function(_0x50a4cf,_0x40bbd6){const _0x1022b1=a211_0x5621,_0x3c5d4b=_0x50a4cf();while(!![]){try{const _0x368459=-parseInt(_0x1022b1(0x162))/0x1*(-parseInt(_0x1022b1(0x163))/0x2)+parseInt(_0x1022b1(0x152))/0x3*(parseInt(_0x1022b1(0x14e))/0x4)+-parseInt(_0x1022b1(0x148))/0x5*(-parseInt(_0x1022b1(0x153))/0x6)+-parseInt(_0x1022b1(0x15d))/0x7+-parseInt(_0x1022b1(0x159))/0x8*(parseInt(_0x1022b1(0x161))/0x9)+parseInt(_0x1022b1(0x15c))/0xa*(-parseInt(_0x1022b1(0x167))/0xb)+parseInt(_0x1022b1(0x160))/0xc;if(_0x368459===_0x40bbd6)break;else _0x3c5d4b['push'](_0x3c5d4b['shift']());}catch(_0x28d476){_0x3c5d4b['push'](_0x3c5d4b['shift']());}}}(a211_0x5d29,0x8042e));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x186624){const _0x48ef55=a211_0x5621;if(_0x186624===_0x48ef55(0x151))return'sql';if(_0x186624===_0x48ef55(0x15f))return _0x48ef55(0x168);return undefined;}async function scanSqlFilesRecursively(_0x375be0,_0x29d34b){const _0x396281=a211_0x5621,_0x55e8bc=[];try{const _0x102ce5=await readdir(_0x375be0,{'withFileTypes':!![]});for(const _0x1d5fec of _0x102ce5){const _0x3bdde8=join(_0x375be0,_0x1d5fec[_0x396281(0x165)]);if(_0x1d5fec[_0x396281(0x164)]()){_0x55e8bc[_0x396281(0x157)](...await scanSqlFilesRecursively(_0x3bdde8,_0x29d34b));continue;}if(!_0x1d5fec['isFile']())continue;const _0x1dde4a=extname(_0x1d5fec[_0x396281(0x165)])[_0x396281(0x15b)](),_0xdc25b7=extensionToMode(_0x1dde4a);if(!_0xdc25b7)continue;const _0x440185=relative(_0x29d34b,_0x3bdde8)[_0x396281(0x14d)](/\\/g,'/'),_0x5bb475=_0x440185[_0x396281(0x154)]('/')[_0x396281(0x166)](Boolean),_0x502518=parseSqlPath(_0x5bb475,_0x1d5fec[_0x396281(0x165)],_0x1dde4a);if(!_0x502518)continue;_0x55e8bc['push']({'sqlCode':_0x502518[_0x396281(0x14b)],'sqlName':_0x502518[_0x396281(0x14a)],'dbDirectory':_0x5bb475[0x0],'filePath':_0x3bdde8,'relativePath':_0x440185,'lockKey':_0x502518['sqlCode'],'mode':_0xdc25b7});}}catch(_0x4dc108){if(_0x4dc108[_0x396281(0x156)]!==_0x396281(0x147))throw _0x4dc108;}return _0x55e8bc;}export async function scanLocalSqlQueries(_0x33f32e){const _0x22f64a=a211_0x5621;return scanSqlFilesRecursively(_0x33f32e[_0x22f64a(0x155)],_0x33f32e['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x30bddf,_0x338b4f,_0x39ac67){const _0xc004fe=a211_0x5621,_0x464566=_0x39ac67?.[_0xc004fe(0x14c)]||(_0x39ac67?.[_0xc004fe(0x14a)]||_0x39ac67?.[_0xc004fe(0x15e)]?buildSqlRelativePath(_0x338b4f,_0x39ac67?.[_0xc004fe(0x14a)],_0x39ac67?.[_0xc004fe(0x15e)],_0x39ac67?.[_0xc004fe(0x146)]||_0xc004fe(0x15a),_0x39ac67?.[_0xc004fe(0x158)]):buildDefaultSqlFileName(_0x338b4f,_0x39ac67?.[_0xc004fe(0x146)]||_0xc004fe(0x15a)));return join(_0x30bddf[_0xc004fe(0x155)],_0x464566);}export async function directoryExists(_0xb8f9cb){const _0xfea496=a211_0x5621;try{const _0x150486=await stat(_0xb8f9cb);return _0x150486[_0xfea496(0x164)]();}catch{return![];}}function parseSqlPath(_0x466a4c,_0xfe2c22,_0x1c05d2){const _0x488fe8=a211_0x5621,_0x3545f0=_0xfe2c22[_0x488fe8(0x169)](0x0,-_0x1c05d2[_0x488fe8(0x14f)]);if(_0x466a4c[_0x488fe8(0x14f)]<0x2)return null;const _0x8159cb=_0x3545f0[_0x488fe8(0x149)]('_');if(_0x8159cb<=0x0||_0x8159cb>=_0x3545f0[_0x488fe8(0x14f)]-0x1)return null;const _0x20e422=_0x3545f0[_0x488fe8(0x169)](0x0,_0x8159cb);if(!isLikelySqlCode(_0x20e422))return null;return{'sqlCode':_0x20e422,'sqlName':_0x3545f0[_0x488fe8(0x169)](_0x8159cb+0x1)};}function isLikelySqlCode(_0x154fc1){const _0x1f8f8c=a211_0x5621;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1f8f8c(0x150)](_0x154fc1);}function a211_0x5621(_0xeb9f1e,_0x2d713d){_0xeb9f1e=_0xeb9f1e-0x146;const _0x5d2900=a211_0x5d29();let _0x5621ce=_0x5d2900[_0xeb9f1e];return _0x5621ce;}function a211_0x5d29(){const _0x584d57=['length','test','.sql','2850591Jubbws','6mhhUbs','split','sqlRootDir','code','push','dbId','1635096iFQWSy','sql','toLowerCase','8380gHSFPP','4012491IKzKKc','dbName','.xml','5021652aPGnej','18seZAGE','509cLtChN','2090deSFaA','isDirectory','name','filter','6160IZicvm','mybatisXml','slice','mode','ENOENT','380260NlCrjc','indexOf','sqlName','sqlCode','path','replace','4wgQXZl'];a211_0x5d29=function(){return _0x584d57;};return a211_0x5d29();}
@@ -1 +1 @@
1
- (function(_0x1294eb,_0x162e89){const _0xb6a5ff=a211_0x302f,_0x2d502b=_0x1294eb();while(!![]){try{const _0x439b8f=parseInt(_0xb6a5ff(0x1a7))/0x1*(-parseInt(_0xb6a5ff(0x1a8))/0x2)+parseInt(_0xb6a5ff(0x1a9))/0x3+-parseInt(_0xb6a5ff(0x19e))/0x4*(parseInt(_0xb6a5ff(0x1aa))/0x5)+parseInt(_0xb6a5ff(0x1a1))/0x6*(parseInt(_0xb6a5ff(0x1a2))/0x7)+-parseInt(_0xb6a5ff(0x1ab))/0x8*(-parseInt(_0xb6a5ff(0x1a0))/0x9)+-parseInt(_0xb6a5ff(0x1a6))/0xa+parseInt(_0xb6a5ff(0x19d))/0xb;if(_0x439b8f===_0x162e89)break;else _0x2d502b['push'](_0x2d502b['shift']());}catch(_0x13740b){_0x2d502b['push'](_0x2d502b['shift']());}}}(a211_0x6d99,0x52c37));import{readFile}from'node:fs/promises';function a211_0x6d99(){const _0x20bdbf=['168502EKSzEe','974601JXCFRA','1640gvZTOo','1224tmvcHY','createHash','utf8','13409517mQMoHO','8144VJohSa','update','12249SInsyf','12fFnAop','173915sZuoxG','md5','hex','digest','3737750BLbCBp','5tIyYuo'];a211_0x6d99=function(){return _0x20bdbf;};return a211_0x6d99();}function a211_0x302f(_0x1bd713,_0x4f75c6){_0x1bd713=_0x1bd713-0x19b;const _0x6d99fe=a211_0x6d99();let _0x302f63=_0x6d99fe[_0x1bd713];return _0x302f63;}import a211_0x53f07 from'node:crypto';export function computeSqlContentHash(_0x2be3b2){const _0x2a6c77=a211_0x302f;return a211_0x53f07[_0x2a6c77(0x19b)](_0x2a6c77(0x1a3))[_0x2a6c77(0x19f)](_0x2be3b2)[_0x2a6c77(0x1a5)](_0x2a6c77(0x1a4));}export async function computeSqlFileHash(_0x5f3602){const _0x24699a=a211_0x302f,_0x16fa85=await readFile(_0x5f3602,_0x24699a(0x19c));return computeSqlContentHash(_0x16fa85);}
1
+ (function(_0x1409f9,_0x404940){const _0xfbf82c=a212_0x1304,_0x2e4c43=_0x1409f9();while(!![]){try{const _0x3cb7f3=parseInt(_0xfbf82c(0x1b0))/0x1+-parseInt(_0xfbf82c(0x1ba))/0x2+-parseInt(_0xfbf82c(0x1b4))/0x3+-parseInt(_0xfbf82c(0x1b9))/0x4*(parseInt(_0xfbf82c(0x1b3))/0x5)+-parseInt(_0xfbf82c(0x1b1))/0x6+-parseInt(_0xfbf82c(0x1bd))/0x7+-parseInt(_0xfbf82c(0x1b6))/0x8*(-parseInt(_0xfbf82c(0x1b5))/0x9);if(_0x3cb7f3===_0x404940)break;else _0x2e4c43['push'](_0x2e4c43['shift']());}catch(_0x7a1e5a){_0x2e4c43['push'](_0x2e4c43['shift']());}}}(a212_0x97fc,0x79dc3));import{readFile}from'node:fs/promises';function a212_0x1304(_0x363c7e,_0x24ac52){_0x363c7e=_0x363c7e-0x1b0;const _0x97fc91=a212_0x97fc();let _0x1304ea=_0x97fc91[_0x363c7e];return _0x1304ea;}import a212_0x287a11 from'node:crypto';export function computeSqlContentHash(_0x185125){const _0x3ee4f0=a212_0x1304;return a212_0x287a11[_0x3ee4f0(0x1bc)](_0x3ee4f0(0x1bb))[_0x3ee4f0(0x1b8)](_0x185125)[_0x3ee4f0(0x1b2)](_0x3ee4f0(0x1b7));}export async function computeSqlFileHash(_0x2720fc){const _0x5842d9=await readFile(_0x2720fc,'utf8');return computeSqlContentHash(_0x5842d9);}function a212_0x97fc(){const _0x3dd5a0=['createHash','488152ypnxcg','648508AfSNLi','5599572StJQNr','digest','34455FZmlMW','2599263pdvjFl','9WpoHfY','21540424JMnaWQ','hex','update','432VMxPDb','456550HmLRgE','md5'];a212_0x97fc=function(){return _0x3dd5a0;};return a212_0x97fc();}
@@ -1 +1 @@
1
- (function(_0xa2e4a7,_0xa198a4){const _0x3d3820=a212_0x4267,_0xf5d495=_0xa2e4a7();while(!![]){try{const _0x248e46=-parseInt(_0x3d3820(0x19c))/0x1+parseInt(_0x3d3820(0x190))/0x2+-parseInt(_0x3d3820(0x19a))/0x3+parseInt(_0x3d3820(0x19e))/0x4*(parseInt(_0x3d3820(0x19d))/0x5)+parseInt(_0x3d3820(0x195))/0x6+parseInt(_0x3d3820(0x199))/0x7+parseInt(_0x3d3820(0x197))/0x8*(parseInt(_0x3d3820(0x198))/0x9);if(_0x248e46===_0xa198a4)break;else _0xf5d495['push'](_0xf5d495['shift']());}catch(_0x5e56e3){_0xf5d495['push'](_0xf5d495['shift']());}}}(a212_0x2006,0x4629e));import{mkdir,readFile,writeFile}from'node:fs/promises';function a212_0x4267(_0x5f37dc,_0x91efdf){_0x5f37dc=_0x5f37dc-0x18c;const _0x200653=a212_0x2006();let _0x426718=_0x200653[_0x5f37dc];return _0x426718;}function a212_0x2006(){const _0x3cf385=['1281528rXNUzR','stringify','493781iCFXsb','5mqSSVd','342596uITdwL','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','sqlRoot','apps',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','545002VZXBSv','\x22\x20vs\x20lock\x20\x22','sqls','utf8','code','2136654tIYvcw','parse','16bxPRJS','2173194wvtFCl','78092PTYzKa'];a212_0x2006=function(){return _0x3cf385;};return a212_0x2006();}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x5122fd,_0x2264a0,_0x2cff2f,_0x332961){const _0x380970=a212_0x4267,_0x1a05f1=_0x5122fd??createEmptySqlLock();let _0x9dd95d=_0x1a05f1[_0x380970(0x18e)][_0x2264a0];if(!_0x9dd95d)return _0x9dd95d={'sqlRoot':_0x2cff2f,'lastSync':'','sqls':{}},_0x1a05f1['apps'][_0x2264a0]=_0x9dd95d,{'lockData':_0x1a05f1,'appLock':_0x9dd95d};if(!_0x9dd95d['sqlRoot'])_0x9dd95d[_0x380970(0x18d)]=_0x2cff2f;else{if(_0x9dd95d['sqlRoot']!==_0x2cff2f)throw new Error(_0x332961+_0x380970(0x18f)+_0x2cff2f+_0x380970(0x191)+_0x9dd95d['sqlRoot']+'\x22.\x20'+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x9dd95d[_0x380970(0x192)]&&(_0x9dd95d[_0x380970(0x192)]={}),!_0x9dd95d['lastSync']&&(_0x9dd95d[_0x380970(0x18c)]=''),{'lockData':_0x1a05f1,'appLock':_0x9dd95d};}export async function readSqlLockFile(_0x39d4f4){const _0x2e2d76=a212_0x4267;try{const _0x536c20=await readFile(_0x39d4f4,'utf8');return JSON[_0x2e2d76(0x196)](_0x536c20);}catch(_0x5a40de){if(_0x5a40de[_0x2e2d76(0x194)]==='ENOENT')return null;throw new Error(_0x2e2d76(0x19f)+String(_0x5a40de));}}export async function writeSqlLockFile(_0x399c93,_0x5b94ee){const _0x1a6e42=a212_0x4267;await mkdir(dirname(_0x399c93),{'recursive':!![]}),await writeFile(_0x399c93,JSON[_0x1a6e42(0x19b)](_0x5b94ee,null,0x2),_0x1a6e42(0x193));}
1
+ (function(_0x1cea3f,_0x38b098){const _0x13c0e1=a213_0x8968,_0x45c3b4=_0x1cea3f();while(!![]){try{const _0x567e9c=parseInt(_0x13c0e1(0xb7))/0x1*(parseInt(_0x13c0e1(0xc5))/0x2)+parseInt(_0x13c0e1(0xb9))/0x3+-parseInt(_0x13c0e1(0xc6))/0x4*(-parseInt(_0x13c0e1(0xbb))/0x5)+-parseInt(_0x13c0e1(0xb2))/0x6+parseInt(_0x13c0e1(0xc1))/0x7*(parseInt(_0x13c0e1(0xc4))/0x8)+-parseInt(_0x13c0e1(0xbd))/0x9+parseInt(_0x13c0e1(0xb6))/0xa*(-parseInt(_0x13c0e1(0xba))/0xb);if(_0x567e9c===_0x38b098)break;else _0x45c3b4['push'](_0x45c3b4['shift']());}catch(_0x201776){_0x45c3b4['push'](_0x45c3b4['shift']());}}}(a213_0x4250,0xe327d));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a213_0x8968(_0xdde630,_0xfd0f5c){_0xdde630=_0xdde630-0xb1;const _0x42508f=a213_0x4250();let _0x896887=_0x42508f[_0xdde630];return _0x896887;}function a213_0x4250(){const _0x48b5e9=['9383949OeJwKx','\x22\x20vs\x20lock\x20\x22','sqlRoot','utf8','1153831kPupot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','parse','40oHRASZ','2omgaOx','696IEvHiF','apps','2449194VrabVX','ENOENT','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','lastSync','20SsRAEx','988928DyqnAj','code','461238kXQpGJ','6268449oCIJyi','44660DQBFDm','sqls'];a213_0x4250=function(){return _0x48b5e9;};return a213_0x4250();}export function ensureSqlLockScope(_0x192c3c,_0x5a7b0e,_0x47ecab,_0x22427e){const _0x1ec62c=a213_0x8968,_0x42c269=_0x192c3c??createEmptySqlLock();let _0xf2f96=_0x42c269['apps'][_0x5a7b0e];if(!_0xf2f96)return _0xf2f96={'sqlRoot':_0x47ecab,'lastSync':'','sqls':{}},_0x42c269[_0x1ec62c(0xb1)][_0x5a7b0e]=_0xf2f96,{'lockData':_0x42c269,'appLock':_0xf2f96};if(!_0xf2f96['sqlRoot'])_0xf2f96[_0x1ec62c(0xbf)]=_0x47ecab;else{if(_0xf2f96[_0x1ec62c(0xbf)]!==_0x47ecab)throw new Error(_0x22427e+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x47ecab+_0x1ec62c(0xbe)+_0xf2f96[_0x1ec62c(0xbf)]+'\x22.\x20'+_0x1ec62c(0xc2));}return!_0xf2f96[_0x1ec62c(0xbc)]&&(_0xf2f96[_0x1ec62c(0xbc)]={}),!_0xf2f96[_0x1ec62c(0xb5)]&&(_0xf2f96[_0x1ec62c(0xb5)]=''),{'lockData':_0x42c269,'appLock':_0xf2f96};}export async function readSqlLockFile(_0x243442){const _0x20e198=a213_0x8968;try{const _0x55df79=await readFile(_0x243442,'utf8');return JSON[_0x20e198(0xc3)](_0x55df79);}catch(_0x4524dc){if(_0x4524dc[_0x20e198(0xb8)]===_0x20e198(0xb3))return null;throw new Error(_0x20e198(0xb4)+String(_0x4524dc));}}export async function writeSqlLockFile(_0x3d23fd,_0xfe6182){const _0xe98ade=a213_0x8968;await mkdir(dirname(_0x3d23fd),{'recursive':!![]}),await writeFile(_0x3d23fd,JSON['stringify'](_0xfe6182,null,0x2),_0xe98ade(0xc0));}
@@ -1 +1 @@
1
- function a214_0x1164(_0x2b1216,_0x254c41){_0x2b1216=_0x2b1216-0x174;const _0x176f16=a214_0x176f();let _0x1164d9=_0x176f16[_0x2b1216];return _0x1164d9;}(function(_0x1772e7,_0x85b5e2){const _0x4c6392=a214_0x1164,_0x329887=_0x1772e7();while(!![]){try{const _0x20ece8=-parseInt(_0x4c6392(0x17e))/0x1*(-parseInt(_0x4c6392(0x186))/0x2)+-parseInt(_0x4c6392(0x179))/0x3*(-parseInt(_0x4c6392(0x185))/0x4)+parseInt(_0x4c6392(0x17f))/0x5+-parseInt(_0x4c6392(0x188))/0x6*(parseInt(_0x4c6392(0x182))/0x7)+parseInt(_0x4c6392(0x17d))/0x8*(-parseInt(_0x4c6392(0x17a))/0x9)+parseInt(_0x4c6392(0x184))/0xa*(parseInt(_0x4c6392(0x176))/0xb)+-parseInt(_0x4c6392(0x180))/0xc;if(_0x20ece8===_0x85b5e2)break;else _0x329887['push'](_0x329887['shift']());}catch(_0xf0c75e){_0x329887['push'](_0x329887['shift']());}}}(a214_0x176f,0x4675c));export function detectSqlMode(_0x1e5ae0){const _0x504cb3=a214_0x1164,_0x4d2f4a=_0x1e5ae0['trimStart']();if(/^<(select|insert|update|delete)\b/i[_0x504cb3(0x17b)](_0x4d2f4a))return'mybatisXml';return _0x504cb3(0x178);}export function getSqlFileExtension(_0x2b2bc4){const _0x648bfb=a214_0x1164;return _0x2b2bc4===_0x648bfb(0x17c)?_0x648bfb(0x174):'.sql';}export function buildDefaultSqlFileName(_0x2fecac,_0x43c5e0){return''+_0x2fecac+getSqlFileExtension(_0x43c5e0);}export function sanitizeSqlPathSegment(_0x3cda3f,_0x410a5f){const _0x28bf88=a214_0x1164,_0x14c370=String(_0x3cda3f??'')[_0x28bf88(0x181)](),_0x1744ac=_0x14c370[_0x28bf88(0x187)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x28bf88(0x187)](/\s+/g,'-')[_0x28bf88(0x187)](/-+/g,'-')[_0x28bf88(0x187)](/^\.+/,'')[_0x28bf88(0x187)](/\.+$/,'')[_0x28bf88(0x187)](/^-+/,'')[_0x28bf88(0x187)](/-+$/,'');return _0x1744ac||_0x410a5f;}export function buildDbDirectoryName(_0x28b1fe,_0x439691){const _0x38ebaf=a214_0x1164;return sanitizeSqlPathSegment(_0x28b1fe,_0x439691!=null?_0x38ebaf(0x177)+_0x439691:_0x38ebaf(0x175));}function a214_0x176f(){const _0x3b43ba=['205453mXaNVA','2125745FThIfV','6676416KDGcRc','trim','217mEhqFC','unknown-sql','2189840FZGijX','2656qDfkCg','4xWUrhV','replace','59442ZAvEmA','.xml','unknown-db','11cjfjkH','db-','sql','2481FdcBQM','369882OyibET','test','mybatisXml','88ZUIlXs'];a214_0x176f=function(){return _0x3b43ba;};return a214_0x176f();}export function buildSqlRelativePath(_0x5709c2,_0x3534f8,_0x49c8c5,_0x2041c5,_0x4e0715){const _0x4abda2=a214_0x1164,_0x30b9c8=buildDbDirectoryName(_0x49c8c5,_0x4e0715),_0x370b53=sanitizeSqlPathSegment(_0x5709c2,_0x4abda2(0x183)),_0x324851=sanitizeSqlPathSegment(_0x3534f8,_0x370b53);return _0x30b9c8+'/'+_0x370b53+'_'+_0x324851+getSqlFileExtension(_0x2041c5);}
1
+ function a215_0x5141(){const _0x19a79a=['275505brcAeA','1917JijHpq','848DaKpZL','trim','41072CzklnV','315008pYtRnb','replace','6oDVkeY','trimStart','sql','unknown-sql','6987ZiXhca','unknown-db','3921840AkiRWP','.xml','1673091hsQUDb','mybatisXml','.sql'];a215_0x5141=function(){return _0x19a79a;};return a215_0x5141();}(function(_0x24cafb,_0x510dfd){const _0x5d2e63=a215_0x377d,_0x3bf156=_0x24cafb();while(!![]){try{const _0x3f7d2b=-parseInt(_0x5d2e63(0x1ba))/0x1+parseInt(_0x5d2e63(0x1b1))/0x2*(parseInt(_0x5d2e63(0x1c2))/0x3)+-parseInt(_0x5d2e63(0x1b3))/0x4+parseInt(_0x5d2e63(0x1c1))/0x5*(parseInt(_0x5d2e63(0x1b6))/0x6)+parseInt(_0x5d2e63(0x1be))/0x7+parseInt(_0x5d2e63(0x1b4))/0x8+-parseInt(_0x5d2e63(0x1bc))/0x9;if(_0x3f7d2b===_0x510dfd)break;else _0x3bf156['push'](_0x3bf156['shift']());}catch(_0x2229ef){_0x3bf156['push'](_0x3bf156['shift']());}}}(a215_0x5141,0x24f73));export function detectSqlMode(_0x3ee15c){const _0x1c20a5=a215_0x377d,_0x5b64e3=_0x3ee15c[_0x1c20a5(0x1b7)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x5b64e3))return _0x1c20a5(0x1bf);return _0x1c20a5(0x1b8);}export function getSqlFileExtension(_0x33c39a){const _0x58fbb6=a215_0x377d;return _0x33c39a===_0x58fbb6(0x1bf)?_0x58fbb6(0x1bd):_0x58fbb6(0x1c0);}export function buildDefaultSqlFileName(_0xc49684,_0x3ba723){return''+_0xc49684+getSqlFileExtension(_0x3ba723);}export function sanitizeSqlPathSegment(_0x36ba61,_0xa4edbd){const _0x138724=a215_0x377d,_0x509dff=String(_0x36ba61??'')[_0x138724(0x1b2)](),_0x2e59ac=_0x509dff[_0x138724(0x1b5)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x138724(0x1b5)](/\s+/g,'-')[_0x138724(0x1b5)](/-+/g,'-')[_0x138724(0x1b5)](/^\.+/,'')[_0x138724(0x1b5)](/\.+$/,'')[_0x138724(0x1b5)](/^-+/,'')[_0x138724(0x1b5)](/-+$/,'');return _0x2e59ac||_0xa4edbd;}function a215_0x377d(_0x3545f1,_0x1dd64e){_0x3545f1=_0x3545f1-0x1b1;const _0x51412b=a215_0x5141();let _0x377d3d=_0x51412b[_0x3545f1];return _0x377d3d;}export function buildDbDirectoryName(_0x542d4b,_0x4dd9ec){const _0x132032=a215_0x377d;return sanitizeSqlPathSegment(_0x542d4b,_0x4dd9ec!=null?'db-'+_0x4dd9ec:_0x132032(0x1bb));}export function buildSqlRelativePath(_0x24a8a2,_0x25b2a6,_0x28aa39,_0x41c7e3,_0x56bd51){const _0x33efa1=a215_0x377d,_0x96c21e=buildDbDirectoryName(_0x28aa39,_0x56bd51),_0x59ac97=sanitizeSqlPathSegment(_0x24a8a2,_0x33efa1(0x1b9)),_0x3c4b19=sanitizeSqlPathSegment(_0x25b2a6,_0x59ac97);return _0x96c21e+'/'+_0x59ac97+'_'+_0x3c4b19+getSqlFileExtension(_0x41c7e3);}
@@ -1 +1 @@
1
- (function(_0x552303,_0x19e49b){const _0x40ee4e=a215_0x1006,_0x1beb2e=_0x552303();while(!![]){try{const _0x12daed=-parseInt(_0x40ee4e(0x16d))/0x1*(parseInt(_0x40ee4e(0x185))/0x2)+-parseInt(_0x40ee4e(0x172))/0x3+-parseInt(_0x40ee4e(0x17a))/0x4*(parseInt(_0x40ee4e(0x18d))/0x5)+-parseInt(_0x40ee4e(0x181))/0x6*(-parseInt(_0x40ee4e(0x188))/0x7)+-parseInt(_0x40ee4e(0x174))/0x8*(-parseInt(_0x40ee4e(0x176))/0x9)+parseInt(_0x40ee4e(0x18b))/0xa+-parseInt(_0x40ee4e(0x189))/0xb*(-parseInt(_0x40ee4e(0x16f))/0xc);if(_0x12daed===_0x19e49b)break;else _0x1beb2e['push'](_0x1beb2e['shift']());}catch(_0xe01724){_0x1beb2e['push'](_0x1beb2e['shift']());}}}(a215_0x323b,0xd2b24));export function detectSqlType(_0xc55425){const _0x2668a1=a215_0x1006;if(!_0xc55425?.[_0x2668a1(0x18e)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x2668a1(0x175)};const _0x9b4eee=_0xc55425[_0x2668a1(0x171)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x2668a1(0x171)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x2668a1(0x18e)](),_0x4d55b1=_0x9b4eee['split']('\x0a');let _0x3fb4ba='';for(const _0xbe9417 of _0x4d55b1){const _0x5e0ba7=_0xbe9417['trim']();if(!_0x5e0ba7||_0x5e0ba7[_0x2668a1(0x16c)]('--')||_0x5e0ba7['startsWith']('/*'))continue;_0x3fb4ba=_0x5e0ba7;break;}const _0x45efff=_0x3fb4ba[_0x2668a1(0x17c)]();if(_0x45efff['startsWith'](_0x2668a1(0x16a))||_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x190))){const _0x1cd8be=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x2668a1(0x18f)](_0x9b4eee);return{'type':_0x2668a1(0x16a),'isSelectOnly':!_0x1cd8be,'isDangerous':_0x1cd8be,'reason':_0x1cd8be?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x173)))return{'type':_0x2668a1(0x173),'isSelectOnly':![],'isDangerous':![]};if(_0x45efff[_0x2668a1(0x16c)](_0x2668a1(0x17e)))return{'type':_0x2668a1(0x17e),'isSelectOnly':![],'isDangerous':![]};if(_0x45efff['startsWith'](_0x2668a1(0x17b)))return{'type':_0x2668a1(0x17b),'isSelectOnly':![],'isDangerous':!![],'reason':_0x2668a1(0x179)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x45efff))return{'type':_0x2668a1(0x191),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x2668a1(0x180),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x40bcbc){const _0x48cbe9=a215_0x1006,_0x26ae98=_0x40bcbc[_0x48cbe9(0x171)](/#\{[^}]*\}/g,'?')[_0x48cbe9(0x171)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x48cbe9(0x171)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x334c2e=[],_0x391e9d=_0x26ae98['match'](/FROM\s+([^\s,)(]+)/i);if(_0x391e9d?.[0x1])_0x334c2e[_0x48cbe9(0x16b)](_0x391e9d[0x1]['replace'](/[`"]/g,''));for(const _0x83972a of _0x26ae98['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4b3731=_0x83972a[0x1]?.[_0x48cbe9(0x171)](/[`"]/g,'');if(_0x4b3731&&!_0x334c2e['includes'](_0x4b3731))_0x334c2e[_0x48cbe9(0x16b)](_0x4b3731);}const _0x225c64=_0x26ae98[_0x48cbe9(0x183)](/INTO\s+([^\s(]+)/i);if(_0x225c64?.[0x1]){const _0x23d752=_0x225c64[0x1][_0x48cbe9(0x171)](/[`"]/g,'');if(!_0x334c2e[_0x48cbe9(0x17f)](_0x23d752))_0x334c2e[_0x48cbe9(0x16b)](_0x23d752);}const _0x5cd49c=_0x26ae98['match'](/UPDATE\s+([^\s,)(]+)/i);if(_0x5cd49c?.[0x1]){const _0xc3446d=_0x5cd49c[0x1][_0x48cbe9(0x171)](/[`"]/g,'');if(!_0x334c2e[_0x48cbe9(0x17f)](_0xc3446d))_0x334c2e[_0x48cbe9(0x16b)](_0xc3446d);}return _0x334c2e;}function a215_0x323b(){const _0x2e3326=['UNKNOWN','6280098bhpjCg','type','match','matchAll','46dFgKTg','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','reason','7bOAMvI','894124FmdDXS','from','12764480YTCWyi','join','6984545GzXNbD','trim','test','WITH','DDL','SELECT','push','startsWith','66670hIiGrj','add','216yXeUMW','\x20query\x20targeting\x20','replace','2092236CDHhWv','INSERT','5636000KgkJsA','SQL\x20content\x20is\x20empty','9FuhWMW','isDangerous','length','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','4ZerkaK','DELETE','toUpperCase','unknown\x20table(s)','UPDATE','includes'];a215_0x323b=function(){return _0x2e3326;};return a215_0x323b();}function extractParameters(_0x2d08c3){const _0x4cf01d=a215_0x1006,_0x1a671e=new Set();for(const _0xa51a37 of _0x2d08c3[_0x4cf01d(0x184)](/#\{(\w+)\}/g))if(_0xa51a37[0x1])_0x1a671e[_0x4cf01d(0x16e)](_0xa51a37[0x1]);for(const _0x4a664d of _0x2d08c3[_0x4cf01d(0x184)](/\$\{(\w+)\}/g))if(_0x4a664d[0x1])_0x1a671e['add'](_0x4a664d[0x1]);return Array[_0x4cf01d(0x18a)](_0x1a671e);}function a215_0x1006(_0x3c3c4c,_0x46ab2d){_0x3c3c4c=_0x3c3c4c-0x16a;const _0x323b42=a215_0x323b();let _0x1006a1=_0x323b42[_0x3c3c4c];return _0x1006a1;}export function validateSql(_0x1b0863){const _0x3b2687=a215_0x1006,_0xe94960=detectSqlType(_0x1b0863),_0x362621=extractTables(_0x1b0863),_0x1a399e=extractParameters(_0x1b0863);if(_0xe94960[_0x3b2687(0x177)])return{'valid':![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0xe94960[_0x3b2687(0x187)]||_0xe94960[_0x3b2687(0x182)]+'\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.'};if(_0xe94960[_0x3b2687(0x182)]===_0x3b2687(0x180))return{'valid':![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0x3b2687(0x186)};return{'valid':!![],'sqlType':_0xe94960,'tables':_0x362621,'parameters':_0x1a399e,'message':_0xe94960['type']+_0x3b2687(0x170)+(_0x362621[_0x3b2687(0x178)]?_0x362621[_0x3b2687(0x18c)](',\x20'):_0x3b2687(0x17d))+(_0x1a399e[_0x3b2687(0x178)]?'\x20with\x20parameters:\x20'+_0x1a399e[_0x3b2687(0x18c)](',\x20'):'')};}
1
+ (function(_0x5a9ec1,_0xebfabf){const _0x502f12=a216_0x2598,_0x192079=_0x5a9ec1();while(!![]){try{const _0xb2dd2c=-parseInt(_0x502f12(0x125))/0x1+-parseInt(_0x502f12(0x123))/0x2*(parseInt(_0x502f12(0x111))/0x3)+parseInt(_0x502f12(0x122))/0x4+-parseInt(_0x502f12(0x10d))/0x5+-parseInt(_0x502f12(0x10f))/0x6*(-parseInt(_0x502f12(0x10c))/0x7)+parseInt(_0x502f12(0x126))/0x8*(parseInt(_0x502f12(0x104))/0x9)+parseInt(_0x502f12(0x124))/0xa*(parseInt(_0x502f12(0x121))/0xb);if(_0xb2dd2c===_0xebfabf)break;else _0x192079['push'](_0x192079['shift']());}catch(_0x3eb2a2){_0x192079['push'](_0x192079['shift']());}}}(a216_0x3c81,0xf070b));function a216_0x2598(_0x12f895,_0x4087fc){_0x12f895=_0x12f895-0x102;const _0x3c8197=a216_0x3c81();let _0x2598ee=_0x3c8197[_0x12f895];return _0x2598ee;}export function detectSqlType(_0x1ca0e5){const _0x50f30a=a216_0x2598;if(!_0x1ca0e5?.[_0x50f30a(0x127)]())return{'type':_0x50f30a(0x11b),'isSelectOnly':![],'isDangerous':![],'reason':_0x50f30a(0x116)};const _0xe1e04b=_0x1ca0e5[_0x50f30a(0x113)](/#\{[^}]*\}/g,'?')[_0x50f30a(0x113)](/\$\{[^}]*\}/g,'?')[_0x50f30a(0x113)](/@[^(\s]+(\([^)]*\))?/g,'')['replace'](/\/\*[\s\S]*?\*\//g,'')[_0x50f30a(0x127)](),_0x266b8c=_0xe1e04b[_0x50f30a(0x120)]('\x0a');let _0x307c88='';for(const _0x3e0e21 of _0x266b8c){const _0xad8eb5=_0x3e0e21['trim']();if(!_0xad8eb5||_0xad8eb5[_0x50f30a(0x114)]('--')||_0xad8eb5[_0x50f30a(0x114)]('/*'))continue;_0x307c88=_0xad8eb5;break;}const _0x3ef64d=_0x307c88[_0x50f30a(0x119)]();if(_0x3ef64d[_0x50f30a(0x114)]('SELECT')||_0x3ef64d['startsWith'](_0x50f30a(0x118))){const _0x16d412=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x50f30a(0x107)](_0xe1e04b);return{'type':_0x50f30a(0x10e),'isSelectOnly':!_0x16d412,'isDangerous':_0x16d412,'reason':_0x16d412?_0x50f30a(0x11f):undefined};}if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x105)))return{'type':_0x50f30a(0x105),'isSelectOnly':![],'isDangerous':![]};if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x10b)))return{'type':_0x50f30a(0x10b),'isSelectOnly':![],'isDangerous':![]};if(_0x3ef64d[_0x50f30a(0x114)](_0x50f30a(0x110)))return{'type':_0x50f30a(0x110),'isSelectOnly':![],'isDangerous':!![],'reason':_0x50f30a(0x11c)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x50f30a(0x107)](_0x3ef64d))return{'type':_0x50f30a(0x102),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x50f30a(0x11b),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x52e1f0){const _0x286ffd=a216_0x2598,_0x34172b=_0x52e1f0['replace'](/#\{[^}]*\}/g,'?')[_0x286ffd(0x113)](/\$\{[^}]*\}/g,'?')[_0x286ffd(0x113)](/'[^']*'/g,'\x27\x27')[_0x286ffd(0x113)](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x47a76c=[],_0x4baaff=_0x34172b[_0x286ffd(0x115)](/FROM\s+([^\s,)(]+)/i);if(_0x4baaff?.[0x1])_0x47a76c[_0x286ffd(0x12a)](_0x4baaff[0x1]['replace'](/[`"]/g,''));for(const _0x338f92 of _0x34172b['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x4f732e=_0x338f92[0x1]?.[_0x286ffd(0x113)](/[`"]/g,'');if(_0x4f732e&&!_0x47a76c[_0x286ffd(0x10a)](_0x4f732e))_0x47a76c[_0x286ffd(0x12a)](_0x4f732e);}const _0x56e4e5=_0x34172b[_0x286ffd(0x115)](/INTO\s+([^\s(]+)/i);if(_0x56e4e5?.[0x1]){const _0x569213=_0x56e4e5[0x1]['replace'](/[`"]/g,'');if(!_0x47a76c[_0x286ffd(0x10a)](_0x569213))_0x47a76c[_0x286ffd(0x12a)](_0x569213);}const _0x2872df=_0x34172b[_0x286ffd(0x115)](/UPDATE\s+([^\s,)(]+)/i);if(_0x2872df?.[0x1]){const _0x323e34=_0x2872df[0x1]['replace'](/[`"]/g,'');if(!_0x47a76c[_0x286ffd(0x10a)](_0x323e34))_0x47a76c[_0x286ffd(0x12a)](_0x323e34);}return _0x47a76c;}function extractParameters(_0xc963e2){const _0xc76b7b=a216_0x2598,_0x441ef9=new Set();for(const _0x52f459 of _0xc963e2['matchAll'](/#\{(\w+)\}/g))if(_0x52f459[0x1])_0x441ef9[_0xc76b7b(0x112)](_0x52f459[0x1]);for(const _0x363121 of _0xc963e2['matchAll'](/\$\{(\w+)\}/g))if(_0x363121[0x1])_0x441ef9[_0xc76b7b(0x112)](_0x363121[0x1]);return Array[_0xc76b7b(0x109)](_0x441ef9);}function a216_0x3c81(){const _0x1a6394=['1019478eGCLPz','DELETE','5456016bGErzw','add','replace','startsWith','match','SQL\x20content\x20is\x20empty','type','WITH','toUpperCase','unknown\x20table(s)','UNKNOWN','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20query\x20targeting\x20','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','split','121txvAxZ','4152288glNikL','2DCVaKc','605110WOWxFk','1273829Carmwq','16pVUNUb','trim','join','isDangerous','push','DDL','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','4409109vLgeny','INSERT','length','test','\x20with\x20parameters:\x20','from','includes','UPDATE','63SeigsW','676840RnhqpZ','SELECT'];a216_0x3c81=function(){return _0x1a6394;};return a216_0x3c81();}export function validateSql(_0x4a7aed){const _0x275e8e=a216_0x2598,_0xe621c9=detectSqlType(_0x4a7aed),_0x5d7fe9=extractTables(_0x4a7aed),_0xc8a2d1=extractParameters(_0x4a7aed);if(_0xe621c9[_0x275e8e(0x129)])return{'valid':![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0xe621c9['reason']||_0xe621c9['type']+_0x275e8e(0x103)};if(_0xe621c9[_0x275e8e(0x117)]===_0x275e8e(0x11b))return{'valid':![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0x275e8e(0x11e)};return{'valid':!![],'sqlType':_0xe621c9,'tables':_0x5d7fe9,'parameters':_0xc8a2d1,'message':_0xe621c9[_0x275e8e(0x117)]+_0x275e8e(0x11d)+(_0x5d7fe9['length']?_0x5d7fe9[_0x275e8e(0x128)](',\x20'):_0x275e8e(0x11a))+(_0xc8a2d1[_0x275e8e(0x106)]?_0x275e8e(0x108)+_0xc8a2d1['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- function a216_0xe5ee(){const _0x568e19=['175YxWepa','\x0a\x20\x20\x20\x20\x20\x20\x20','1760747kqJQCe','66644PkrWEA','27ryJHFB','8708RoyMXB','24835844nLCcCi','4543670jwsAAX','Tip:\x20`','1491426IygKnM','2648TlJLlf','2dZmJVg','\x20auth`\x20to\x20login\x20first.','Run\x20`','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','892773EjgVQi'];a216_0xe5ee=function(){return _0x568e19;};return a216_0xe5ee();}const a216_0x10e57c=a216_0x153f;(function(_0x1025ab,_0x5f4b4c){const _0x403bbe=a216_0x153f,_0x5454f6=_0x1025ab();while(!![]){try{const _0x553fba=parseInt(_0x403bbe(0x12a))/0x1*(-parseInt(_0x403bbe(0x133))/0x2)+parseInt(_0x403bbe(0x127))/0x3+parseInt(_0x403bbe(0x12b))/0x4*(-parseInt(_0x403bbe(0x128))/0x5)+-parseInt(_0x403bbe(0x131))/0x6+parseInt(_0x403bbe(0x12d))/0x7*(-parseInt(_0x403bbe(0x132))/0x8)+-parseInt(_0x403bbe(0x12c))/0x9*(-parseInt(_0x403bbe(0x12f))/0xa)+parseInt(_0x403bbe(0x12e))/0xb;if(_0x553fba===_0x5f4b4c)break;else _0x5454f6['push'](_0x5454f6['shift']());}catch(_0x214c7b){_0x5454f6['push'](_0x5454f6['shift']());}}}(a216_0xe5ee,0xdf367));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a216_0x153f(_0x2f3766,_0x5b228e){_0x2f3766=_0x2f3766-0x126;const _0xe5ee13=a216_0xe5ee();let _0x153fd1=_0xe5ee13[_0x2f3766];return _0x153fd1;}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a216_0x10e57c(0x135)+CLI_BIN_NAME+a216_0x10e57c(0x134),'configMissingHint':['Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+a216_0x10e57c(0x126),a216_0x10e57c(0x130)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a216_0x10e57c(0x129)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
1
+ const a217_0x3c99b9=a217_0x5494;(function(_0x215e34,_0x57ffcb){const _0x5d28bc=a217_0x5494,_0x496d27=_0x215e34();while(!![]){try{const _0xd126d4=parseInt(_0x5d28bc(0xbc))/0x1*(-parseInt(_0x5d28bc(0xc0))/0x2)+parseInt(_0x5d28bc(0xc9))/0x3+-parseInt(_0x5d28bc(0xbe))/0x4+parseInt(_0x5d28bc(0xc5))/0x5*(-parseInt(_0x5d28bc(0xc3))/0x6)+-parseInt(_0x5d28bc(0xc6))/0x7+-parseInt(_0x5d28bc(0xca))/0x8+-parseInt(_0x5d28bc(0xc8))/0x9*(-parseInt(_0x5d28bc(0xc2))/0xa);if(_0xd126d4===_0x57ffcb)break;else _0x496d27['push'](_0x496d27['shift']());}catch(_0x1c451a){_0x496d27['push'](_0x496d27['shift']());}}}(a217_0x1640,0x507ba));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a217_0x5494(_0x244b6a,_0x508726){_0x244b6a=_0x244b6a-0xbc;const _0x164000=a217_0x1640();let _0x5494c6=_0x164000[_0x244b6a];return _0x5494c6;}import{CLI_BIN_NAME}from'./constant/cli.js';function a217_0x1640(){const _0x1a452a=['3620kQHPYY','981672ykWcTv','\x20auth`\x20to\x20login\x20first.','15UFEcge','2369213defCVq','Run\x20`','37512vZnrtI','1590411gaBoyx','1675840nrSMcj','Set\x20appcode\x20via\x20`','44374jOQdco','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','1972096kSmlUB','\x0a\x20\x20\x20\x20\x20\x20\x20','8TiEDcz','Tip:\x20`'];a217_0x1640=function(){return _0x1a452a;};return a217_0x1640();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a217_0x3c99b9(0xc7)+CLI_BIN_NAME+a217_0x3c99b9(0xc4),'configMissingHint':[a217_0x3c99b9(0xcb)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.',a217_0x3c99b9(0xc1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a217_0x3c99b9(0xbf)),'notInProjectHint':a217_0x3c99b9(0xbd)});
@@ -1 +1 @@
1
- (function(_0x2d65f1,_0x11d50e){const _0xba05db=a217_0x29f7,_0x50be20=_0x2d65f1();while(!![]){try{const _0x39092d=-parseInt(_0xba05db(0xa1))/0x1*(-parseInt(_0xba05db(0x97))/0x2)+parseInt(_0xba05db(0xa2))/0x3*(parseInt(_0xba05db(0x9f))/0x4)+-parseInt(_0xba05db(0xa3))/0x5*(parseInt(_0xba05db(0x9d))/0x6)+-parseInt(_0xba05db(0x9a))/0x7+-parseInt(_0xba05db(0x9e))/0x8*(parseInt(_0xba05db(0x9b))/0x9)+parseInt(_0xba05db(0x9c))/0xa+-parseInt(_0xba05db(0xa4))/0xb*(parseInt(_0xba05db(0x99))/0xc);if(_0x39092d===_0x11d50e)break;else _0x50be20['push'](_0x50be20['shift']());}catch(_0x2e14bc){_0x50be20['push'](_0x50be20['shift']());}}}(a217_0x2cd2,0x61fef));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a217_0x2cd2(){const _0xa5b74c=['348136iZHkso','2752008kdheCY','yes','251078BsdnJu','3xbDrMp','45AvNdLm','22YhfxAV','2wNdUqq','map','978060qctqBu','4065747YKlxto','45EYrbUA','4251940JbNIbM','978vKQslb'];a217_0x2cd2=function(){return _0xa5b74c;};return a217_0x2cd2();}function a217_0x29f7(_0x5c4449,_0x844a0a){_0x5c4449=_0x5c4449-0x97;const _0x2cd2fa=a217_0x2cd2();let _0x29f773=_0x2cd2fa[_0x5c4449];return _0x29f773;}import{buildAllFlags as a217_0x577b32}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x2e15d4){const _0x2ba5ac=a217_0x29f7,_0x294cf5=a217_0x577b32(_0x2e15d4,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x2e15d4))return _0x294cf5;return _0x294cf5[_0x2ba5ac(0x98)](_0x2940e2=>_0x2940e2['name']===_0x2ba5ac(0xa0)?{..._0x2940e2,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x2940e2);}
1
+ (function(_0x373fd5,_0x2bde8c){const _0x18f3b2=a218_0xb336,_0x28145b=_0x373fd5();while(!![]){try{const _0x347c1f=-parseInt(_0x18f3b2(0xf4))/0x1*(-parseInt(_0x18f3b2(0xf3))/0x2)+-parseInt(_0x18f3b2(0xf9))/0x3*(-parseInt(_0x18f3b2(0xf2))/0x4)+parseInt(_0x18f3b2(0xf6))/0x5*(parseInt(_0x18f3b2(0xf5))/0x6)+-parseInt(_0x18f3b2(0xf7))/0x7*(-parseInt(_0x18f3b2(0xf8))/0x8)+parseInt(_0x18f3b2(0xf0))/0x9+parseInt(_0x18f3b2(0xf1))/0xa+-parseInt(_0x18f3b2(0xfc))/0xb;if(_0x347c1f===_0x2bde8c)break;else _0x28145b['push'](_0x28145b['shift']());}catch(_0xd77b31){_0x28145b['push'](_0x28145b['shift']());}}}(a218_0x2619,0xc5b7d));function a218_0xb336(_0x294f24,_0x325dbd){_0x294f24=_0x294f24-0xf0;const _0x261991=a218_0x2619();let _0xb33696=_0x261991[_0x294f24];return _0xb33696;}import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a218_0xf7d77a}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0xb9e82a){const _0x3a194=a218_0xb336,_0x85cd7b=a218_0xf7d77a(_0xb9e82a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0xb9e82a))return _0x85cd7b;return _0x85cd7b[_0x3a194(0xfb)](_0x565fba=>_0x565fba['name']===_0x3a194(0xfa)?{..._0x565fba,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x565fba);}function a218_0x2619(){const _0x35a05f=['2116BddhqR','324SZUAUW','129795WqqqIu','84imCwCz','556504zaDkCs','183BsJYvu','yes','map','44521455GQdtKt','13537368lhTsQi','3444370pxqvkY','49660FpQlnq','14TfFqup'];a218_0x2619=function(){return _0x35a05f;};return a218_0x2619();}
@@ -1 +1 @@
1
- (function(_0x5c5a9c,_0x24987e){var _0x5ba1e2=a218_0x4cfd,_0x54e626=_0x5c5a9c();while(!![]){try{var _0x3cb477=-parseInt(_0x5ba1e2(0x163))/0x1*(parseInt(_0x5ba1e2(0x160))/0x2)+-parseInt(_0x5ba1e2(0x15f))/0x3*(-parseInt(_0x5ba1e2(0x168))/0x4)+-parseInt(_0x5ba1e2(0x15c))/0x5*(-parseInt(_0x5ba1e2(0x161))/0x6)+-parseInt(_0x5ba1e2(0x165))/0x7*(-parseInt(_0x5ba1e2(0x15d))/0x8)+parseInt(_0x5ba1e2(0x16b))/0x9+-parseInt(_0x5ba1e2(0x166))/0xa+parseInt(_0x5ba1e2(0x167))/0xb*(-parseInt(_0x5ba1e2(0x162))/0xc);if(_0x3cb477===_0x24987e)break;else _0x54e626['push'](_0x54e626['shift']());}catch(_0x746a48){_0x54e626['push'](_0x54e626['shift']());}}}(a218_0x440f,0xe9e0f));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a218_0x440f(){var _0x1e79ea=['186954zSWqXh','20449764fmYqxv','307AFuAiM','format','21XJRosS','3425370WYXHyU','11ZMqkWq','8EiYHZt','defaultFormat','def','7670916mrPCDx','295KAmHwG','3159392GAafCz','flags','971394tOwJZa','9892NcmTGX'];a218_0x440f=function(){return _0x1e79ea;};return a218_0x440f();}function a218_0x4cfd(_0x506fa8,_0x5df327){_0x506fa8=_0x506fa8-0x15c;var _0x440fa5=a218_0x440f();var _0x4cfd70=_0x440fa5[_0x506fa8];return _0x4cfd70;}export function usesStructuredErrorOutput(_0x37ddcc){return _0x37ddcc?.['structuredErrors']===!![];}export function resolveErrorOutputFormat(_0x24b1b6){var _0x5b4f5d=a218_0x4cfd;if(!_0x24b1b6[_0x5b4f5d(0x16a)])return _0x24b1b6[_0x5b4f5d(0x169)]??'compress';return resolveOutputConfig({'flags':_0x24b1b6[_0x5b4f5d(0x15e)]??{},'def':_0x24b1b6[_0x5b4f5d(0x16a)],'configDefault':_0x24b1b6[_0x5b4f5d(0x169)]})[_0x5b4f5d(0x164)];}
1
+ (function(_0x4cd944,_0x42dc46){var _0x1a1e88=a219_0xfbfb,_0x18c268=_0x4cd944();while(!![]){try{var _0x26247f=parseInt(_0x1a1e88(0xf5))/0x1+-parseInt(_0x1a1e88(0xf4))/0x2+parseInt(_0x1a1e88(0xee))/0x3+parseInt(_0x1a1e88(0xf0))/0x4+-parseInt(_0x1a1e88(0xf8))/0x5*(parseInt(_0x1a1e88(0xf3))/0x6)+parseInt(_0x1a1e88(0xf7))/0x7*(parseInt(_0x1a1e88(0xec))/0x8)+parseInt(_0x1a1e88(0xf2))/0x9*(parseInt(_0x1a1e88(0xef))/0xa);if(_0x26247f===_0x42dc46)break;else _0x18c268['push'](_0x18c268['shift']());}catch(_0x3dce9f){_0x18c268['push'](_0x18c268['shift']());}}}(a219_0x5e3a,0x4d7e5));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a219_0xfbfb(_0x54b4c6,_0x887ecb){_0x54b4c6=_0x54b4c6-0xec;var _0x5e3ac2=a219_0x5e3a();var _0xfbfb23=_0x5e3ac2[_0x54b4c6];return _0xfbfb23;}export function usesStructuredErrorOutput(_0xbb8ccd){return _0xbb8ccd?.['structuredErrors']===!![];}function a219_0x5e3a(){var _0x3089ba=['84008yBJPXK','flags','7gBFZeB','5uSyajU','310136jCPiBk','defaultFormat','105927biXzBw','5069110mQXPbu','1083676ThLOaD','def','9BoAFMR','435174kDazEh','1091944CCtdLI'];a219_0x5e3a=function(){return _0x3089ba;};return a219_0x5e3a();}export function resolveErrorOutputFormat(_0x3e8973){var _0x189f85=a219_0xfbfb;if(!_0x3e8973[_0x189f85(0xf1)])return _0x3e8973[_0x189f85(0xed)]??'compress';return resolveOutputConfig({'flags':_0x3e8973[_0x189f85(0xf6)]??{},'def':_0x3e8973[_0x189f85(0xf1)],'configDefault':_0x3e8973[_0x189f85(0xed)]})['format'];}
@@ -1 +1 @@
1
- const a219_0x40b2af=a219_0x24cd;(function(_0xd8b38a,_0x279815){const _0x474bbf=a219_0x24cd,_0x54d471=_0xd8b38a();while(!![]){try{const _0x29793b=-parseInt(_0x474bbf(0x10a))/0x1+parseInt(_0x474bbf(0x10c))/0x2*(parseInt(_0x474bbf(0x111))/0x3)+parseInt(_0x474bbf(0x10e))/0x4*(parseInt(_0x474bbf(0x114))/0x5)+-parseInt(_0x474bbf(0x10b))/0x6*(-parseInt(_0x474bbf(0x112))/0x7)+-parseInt(_0x474bbf(0x119))/0x8*(parseInt(_0x474bbf(0x109))/0x9)+parseInt(_0x474bbf(0x10f))/0xa+-parseInt(_0x474bbf(0x113))/0xb;if(_0x29793b===_0x279815)break;else _0x54d471['push'](_0x54d471['shift']());}catch(_0x42d28a){_0x54d471['push'](_0x54d471['shift']());}}}(a219_0x1364,0x9afe8));function a219_0x1364(){const _0x4155df=['3219880GNsLhx','command','15UbfDVN','49DTMQnV','12293600xzOouV','40BDyyRt','has','menu\x20group-create','menu\x20delete','menu\x20regroup-start','336296pApFNt','45dJzQjJ','129094rlgIgW','997956afFhXN','8026jowuTN','service','292700bcwFid'];a219_0x1364=function(){return _0x4155df;};return a219_0x1364();}const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a219_0x40b2af(0x117),a219_0x40b2af(0x116),'menu\x20group-update',a219_0x40b2af(0x118)]);export const EXPLICIT_YES_FLAG_DESCRIPTION='Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan';function a219_0x24cd(_0x5c0a1b,_0x122200){_0x5c0a1b=_0x5c0a1b-0x109;const _0x13643d=a219_0x1364();let _0x24cd3a=_0x13643d[_0x5c0a1b];return _0x24cd3a;}export function requiresExplicitYes(_0x417f36){const _0x308a7c=a219_0x40b2af;return EXPLICIT_YES_COMMANDS[_0x308a7c(0x115)](_0x417f36[_0x308a7c(0x10d)]+'\x20'+_0x417f36[_0x308a7c(0x110)]);}
1
+ const a220_0x4e8174=a220_0x492a;function a220_0x19b7(){const _0x214bc6=['8lnxaLr','has','6366906rLsyZf','379468xSsaKH','menu\x20delete','264501ejrefq','117152zMYTcP','856512aFFgKZ','102iXqRLY','command','989664uOqjvG','menu\x20move','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','menu\x20group-create','menu\x20regroup-start','40045ItjaRk'];a220_0x19b7=function(){return _0x214bc6;};return a220_0x19b7();}(function(_0x48df3f,_0x32ae4f){const _0x110287=a220_0x492a,_0x23d048=_0x48df3f();while(!![]){try{const _0x440e7e=-parseInt(_0x110287(0x1ab))/0x1+-parseInt(_0x110287(0x1b2))/0x2+parseInt(_0x110287(0x1ad))/0x3+parseInt(_0x110287(0x1af))/0x4+parseInt(_0x110287(0x1b7))/0x5*(parseInt(_0x110287(0x1b0))/0x6)+parseInt(_0x110287(0x1ae))/0x7*(-parseInt(_0x110287(0x1b8))/0x8)+parseInt(_0x110287(0x1aa))/0x9;if(_0x440e7e===_0x32ae4f)break;else _0x23d048['push'](_0x23d048['shift']());}catch(_0x1a5f03){_0x23d048['push'](_0x23d048['shift']());}}}(a220_0x19b7,0x3e37e));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-create',a220_0x4e8174(0x1ac),a220_0x4e8174(0x1b5),'menu\x20group-update',a220_0x4e8174(0x1b3),a220_0x4e8174(0x1b6)]);function a220_0x492a(_0x3567cf,_0x2a8d43){_0x3567cf=_0x3567cf-0x1aa;const _0x19b724=a220_0x19b7();let _0x492a8a=_0x19b724[_0x3567cf];return _0x492a8a;}export const EXPLICIT_YES_FLAG_DESCRIPTION=a220_0x4e8174(0x1b4);export function requiresExplicitYes(_0x3fe143){const _0x263671=a220_0x4e8174;return EXPLICIT_YES_COMMANDS[_0x263671(0x1b9)](_0x3fe143['service']+'\x20'+_0x3fe143[_0x263671(0x1b1)]);}
@@ -1 +1 @@
1
- const a220_0x37a0ad=a220_0x3b0b;function a220_0x5b6d(){const _0x1b7dd3=['4AwiGRy','validateFlags','1209096WwPHIW','2418220IMVhpY','222457zMIuXY','2eLUygS','1547660RZrCOd','988290IaslGF','846726ZPRTeL','208377zOWSva'];a220_0x5b6d=function(){return _0x1b7dd3;};return a220_0x5b6d();}(function(_0x1a0f2b,_0x402e95){const _0x43c447=a220_0x3b0b,_0x4a8546=_0x1a0f2b();while(!![]){try{const _0x4c1ac5=parseInt(_0x43c447(0x1a6))/0x1*(parseInt(_0x43c447(0x1a7))/0x2)+-parseInt(_0x43c447(0x1aa))/0x3*(parseInt(_0x43c447(0x1ac))/0x4)+parseInt(_0x43c447(0x1a8))/0x5+parseInt(_0x43c447(0x1a9))/0x6+-parseInt(_0x43c447(0x1af))/0x7+parseInt(_0x43c447(0x1ae))/0x8+-parseInt(_0x43c447(0x1ab))/0x9;if(_0x4c1ac5===_0x402e95)break;else _0x4a8546['push'](_0x4a8546['shift']());}catch(_0x3016f9){_0x4a8546['push'](_0x4a8546['shift']());}}}(a220_0x5b6d,0x3017a));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);function a220_0x3b0b(_0x22930b,_0x18bcf0){_0x22930b=_0x22930b-0x1a6;const _0x5b6d46=a220_0x5b6d();let _0x3b0b91=_0x5b6d46[_0x22930b];return _0x3b0b91;}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a220_0x37a0ad(0x1ad)];
1
+ function a221_0x193d(){const _0x2f7196=['validateFlags','14VEeaEy','13050135KPeOEL','parseFlags','6134704YwJeKR','60eRNmAR','343LdQHYw','1674453wULioy','55888LYHEFG','42163accMRG','301764TUDPhR','1600QhKmcY','9810YbHAqP'];a221_0x193d=function(){return _0x2f7196;};return a221_0x193d();}const a221_0x3a4fd3=a221_0x1bb0;function a221_0x1bb0(_0x35c239,_0xd5df50){_0x35c239=_0x35c239-0x1cd;const _0x193dc3=a221_0x193d();let _0x1bb07f=_0x193dc3[_0x35c239];return _0x1bb07f;}(function(_0x3c2b82,_0x4b5f56){const _0x4c1d74=a221_0x1bb0,_0x584248=_0x3c2b82();while(!![]){try{const _0x4e2f16=parseInt(_0x4c1d74(0x1d3))/0x1*(parseInt(_0x4c1d74(0x1d9))/0x2)+parseInt(_0x4c1d74(0x1d2))/0x3+parseInt(_0x4c1d74(0x1cf))/0x4+parseInt(_0x4c1d74(0x1d0))/0x5*(parseInt(_0x4c1d74(0x1d5))/0x6)+parseInt(_0x4c1d74(0x1d1))/0x7*(parseInt(_0x4c1d74(0x1d6))/0x8)+parseInt(_0x4c1d74(0x1cd))/0x9+-parseInt(_0x4c1d74(0x1d7))/0xa*(parseInt(_0x4c1d74(0x1d4))/0xb);if(_0x4e2f16===_0x4b5f56)break;else _0x584248['push'](_0x584248['shift']());}catch(_0x19c510){_0x584248['push'](_0x584248['shift']());}}}(a221_0x193d,0xbff25));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a221_0x3a4fd3(0x1ce)];export const validateFlags=helpers[a221_0x3a4fd3(0x1d8)];
@@ -1 +1 @@
1
- const a221_0x2743ce=a221_0x40b3;(function(_0x30a50c,_0x1b8354){const _0x3ac08e=a221_0x40b3,_0x5863aa=_0x30a50c();while(!![]){try{const _0x4b1c13=parseInt(_0x3ac08e(0x178))/0x1*(-parseInt(_0x3ac08e(0x170))/0x2)+parseInt(_0x3ac08e(0x180))/0x3+-parseInt(_0x3ac08e(0x176))/0x4+-parseInt(_0x3ac08e(0x17f))/0x5*(parseInt(_0x3ac08e(0x17c))/0x6)+parseInt(_0x3ac08e(0x16f))/0x7*(parseInt(_0x3ac08e(0x17a))/0x8)+parseInt(_0x3ac08e(0x177))/0x9*(-parseInt(_0x3ac08e(0x17e))/0xa)+parseInt(_0x3ac08e(0x172))/0xb;if(_0x4b1c13===_0x1b8354)break;else _0x5863aa['push'](_0x5863aa['shift']());}catch(_0x30ab82){_0x5863aa['push'](_0x5863aa['shift']());}}}(a221_0x3040,0x643bd));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';import{requiresExplicitYes}from'../framework/explicit-yes.js';function a221_0x3040(){const _0x3ef87e=['100VZWSWn','174430eacNNt','380364uUunpO','generateCommandHelp','316386dOqlve','908qbnhgy','\x20workspace\x20init`\x20or\x20--appcode).','21776975NBATvu','Requires\x20appcode\x20(set\x20via\x20`','generateServiceHelp','\x20[args]\x20[flags]','3129408GJcObH','514467gfGnVh','81YTiumK','replace','88bLWCgU','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','138DdZekw','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.'];a221_0x3040=function(){return _0x3ef87e;};return a221_0x3040();}function a221_0x40b3(_0x2dbf22,_0x520a49){_0x2dbf22=_0x2dbf22-0x16f;const _0x3040b3=a221_0x3040();let _0x40b3b7=_0x3040b3[_0x2dbf22];return _0x40b3b7;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x49061c=>serviceGroups['get'](_0x49061c),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a221_0x2743ce(0x173)+CLI_BIN_NAME+a221_0x2743ce(0x171),'serviceUsageSuffix':a221_0x2743ce(0x175)});export function generateCommandHelp(_0x455fb5){const _0x5dcca7=a221_0x2743ce,_0x342d5b=generators[_0x5dcca7(0x181)](_0x455fb5);if(!requiresExplicitYes(_0x455fb5))return _0x342d5b;return _0x342d5b[_0x5dcca7(0x179)](_0x5dcca7(0x17b),_0x5dcca7(0x17d));}export const generateServiceHelp=generators[a221_0x2743ce(0x174)];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a222_0x2c862c=a222_0x3e82;(function(_0x3495d3,_0x4be2ba){const _0x5bf135=a222_0x3e82,_0x3fa95b=_0x3495d3();while(!![]){try{const _0x4cac1e=parseInt(_0x5bf135(0x182))/0x1+-parseInt(_0x5bf135(0x172))/0x2+parseInt(_0x5bf135(0x177))/0x3*(parseInt(_0x5bf135(0x180))/0x4)+parseInt(_0x5bf135(0x179))/0x5+-parseInt(_0x5bf135(0x17f))/0x6+-parseInt(_0x5bf135(0x173))/0x7*(parseInt(_0x5bf135(0x175))/0x8)+parseInt(_0x5bf135(0x176))/0x9*(parseInt(_0x5bf135(0x17b))/0xa);if(_0x4cac1e===_0x4be2ba)break;else _0x3fa95b['push'](_0x3fa95b['shift']());}catch(_0xfaa7fe){_0x3fa95b['push'](_0x3fa95b['shift']());}}}(a222_0x44d3,0x5ecb2));function a222_0x44d3(){const _0x50a873=['1411328avNMot','204694gYRKRg','\x20workspace\x20init`\x20or\x20--appcode).','72pLjXbO','483345YlURpF','1592913KMOaew','generateServiceHelp','147270Mjkmdc','generateFullHelp','180DlqWPa','Requires\x20appcode\x20(set\x20via\x20`','\x20[args]\x20[flags]','generateCommandHelp','1366962VfrZMt','4QClEpO','replace','57828kqbbkp','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.'];a222_0x44d3=function(){return _0x50a873;};return a222_0x44d3();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a222_0x3e82(_0x681af4,_0x16e100){_0x681af4=_0x681af4-0x172;const _0x44d3af=a222_0x44d3();let _0x3e82d0=_0x44d3af[_0x681af4];return _0x3e82d0;}import{requiresExplicitYes}from'../framework/explicit-yes.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0xf995e0=>serviceGroups['get'](_0xf995e0),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a222_0x2c862c(0x17c)+CLI_BIN_NAME+a222_0x2c862c(0x174),'serviceUsageSuffix':a222_0x2c862c(0x17d)});export function generateCommandHelp(_0xf63791){const _0xbd7122=a222_0x2c862c,_0xac69c5=generators[_0xbd7122(0x17e)](_0xf63791);if(!requiresExplicitYes(_0xf63791))return _0xac69c5;return _0xac69c5[_0xbd7122(0x181)](_0xbd7122(0x183),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a222_0x2c862c(0x178)];export const generateFullHelp=generators[a222_0x2c862c(0x17a)];
@@ -1 +1 @@
1
- (function(_0x58affd,_0x2b0af4){var _0xc56e17=a222_0xd9e6,_0x2d67b1=_0x58affd();while(!![]){try{var _0x50d7e5=parseInt(_0xc56e17(0x145))/0x1+parseInt(_0xc56e17(0x13f))/0x2+parseInt(_0xc56e17(0x142))/0x3+parseInt(_0xc56e17(0x140))/0x4+-parseInt(_0xc56e17(0x13d))/0x5+-parseInt(_0xc56e17(0x143))/0x6*(parseInt(_0xc56e17(0x13e))/0x7)+-parseInt(_0xc56e17(0x144))/0x8*(parseInt(_0xc56e17(0x141))/0x9);if(_0x50d7e5===_0x2b0af4)break;else _0x2d67b1['push'](_0x2d67b1['shift']());}catch(_0x45f298){_0x2d67b1['push'](_0x2d67b1['shift']());}}}(a222_0x7648,0x39faa));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a222_0x7648(){var _0x490962=['9hmnFyD','403197gSFEkd','6nxLHjP','768440yRNQmq','340954kmBhJF','2160830HDjAGo','64967tpZZQT','334664lxtKaD','529196CemOyT'];a222_0x7648=function(){return _0x490962;};return a222_0x7648();}export{formatOutput}from'../framework/output.js';function a222_0xd9e6(_0x2ca482,_0x57fd0d){_0x2ca482=_0x2ca482-0x13d;var _0x76487a=a222_0x7648();var _0xd9e6c8=_0x76487a[_0x2ca482];return _0xd9e6c8;}export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x2a8612,_0x366ebd){var _0x45e989=a223_0xdffa,_0x33160c=_0x2a8612();while(!![]){try{var _0x116fb7=parseInt(_0x45e989(0x142))/0x1+parseInt(_0x45e989(0x13e))/0x2*(parseInt(_0x45e989(0x13c))/0x3)+parseInt(_0x45e989(0x13b))/0x4*(parseInt(_0x45e989(0x140))/0x5)+-parseInt(_0x45e989(0x143))/0x6*(-parseInt(_0x45e989(0x13d))/0x7)+-parseInt(_0x45e989(0x144))/0x8+-parseInt(_0x45e989(0x145))/0x9*(parseInt(_0x45e989(0x141))/0xa)+-parseInt(_0x45e989(0x13f))/0xb;if(_0x116fb7===_0x366ebd)break;else _0x33160c['push'](_0x33160c['shift']());}catch(_0x1f5807){_0x33160c['push'](_0x33160c['shift']());}}}(a223_0x59c2,0xede7e));function a223_0x59c2(){var _0x300760=['15fHgXwV','947555PvXGhq','340556fPqmJN','9091511HlWzSo','6844235xHOkpc','112370OxvrPw','451498Xroqqi','66qCbqEK','14023912VvrfFO','486ERDYrc','4kesxwl'];a223_0x59c2=function(){return _0x300760;};return a223_0x59c2();}export{runCommand}from'../framework/runner.js';function a223_0xdffa(_0x28cbb2,_0x338508){_0x28cbb2=_0x28cbb2-0x13b;var _0x59c29f=a223_0x59c2();var _0xdffa47=_0x59c29f[_0x28cbb2];return _0xdffa47;}export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x228d00,_0x4ab66f){const _0x311de2=a223_0x16ed,_0x1339b2=_0x228d00();while(!![]){try{const _0x4cc77f=-parseInt(_0x311de2(0x125))/0x1*(-parseInt(_0x311de2(0x10b))/0x2)+-parseInt(_0x311de2(0x11f))/0x3*(parseInt(_0x311de2(0x10c))/0x4)+parseInt(_0x311de2(0x117))/0x5+parseInt(_0x311de2(0x116))/0x6*(parseInt(_0x311de2(0x128))/0x7)+-parseInt(_0x311de2(0x11e))/0x8+-parseInt(_0x311de2(0x124))/0x9+parseInt(_0x311de2(0x10e))/0xa;if(_0x4cc77f===_0x4ab66f)break;else _0x1339b2['push'](_0x1339b2['shift']());}catch(_0x39d1c5){_0x1339b2['push'](_0x1339b2['shift']());}}}(a223_0x9488,0x5832a));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';function a223_0x9488(){const _0x382676=['validation','jq:\x20','trim','error','stdout','_notice','write','6MFAuXo','250710OIoUqc','jqFilter','risk','message','update','stringify','command','5070896pDWHQE','9FsGoFe','endsWith','data','hint','code','529677EEgXhK','9JURbYf','format','pretty','2539859xnKTTX','144868xBdHRC','784016RYaXFs','json','5771000lVpVDu'];a223_0x9488=function(){return _0x382676;};return a223_0x9488();}import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3bd723,_0x140f3d){const _0x58a314=a223_0x16ed,_0x2ce516=_0x3bd723[_0x58a314(0x114)],{_notice:_0x316533,..._0x395e94}=_0x3bd723;void _0x316533,baseFormatOutput(_0x395e94,_0x140f3d),_0x140f3d[_0x58a314(0x126)]===_0x58a314(0x127)&&printPrettyNotice(_0x2ce516);}export function formatCliError(_0x49c474,_0x1d2272){const _0x3b1378=a223_0x16ed;if(_0x1d2272[_0x3b1378(0x126)]===_0x3b1378(0x127))return![];const _0x7b9cce=_0x49c474[_0x3b1378(0x121)],_0x21c1ba={'ok':![],'command':_0x1d2272[_0x3b1378(0x11d)],'risk':_0x1d2272[_0x3b1378(0x119)],'data':_0x7b9cce??null,'error':{'code':_0x49c474['code'],'message':_0x49c474[_0x3b1378(0x11a)],..._0x49c474['hint']?{'hint':_0x49c474[_0x3b1378(0x122)]}:{}}},_0x2c93a9=_0x1d2272[_0x3b1378(0x126)]===_0x3b1378(0x10d)?JSON[_0x3b1378(0x11c)](_0x21c1ba,null,0x2):JSON[_0x3b1378(0x11c)](_0x21c1ba);let _0x4deec1=_0x2c93a9;if(_0x1d2272[_0x3b1378(0x118)]?.[_0x3b1378(0x111)]())try{_0x4deec1=applyJqFilter(_0x2c93a9,_0x1d2272[_0x3b1378(0x118)]);}catch(_0x139d7f){const _0x31e872=_0x139d7f instanceof CliError?_0x139d7f:CliErrors[_0x3b1378(0x10f)](_0x3b1378(0x110)+(_0x139d7f instanceof Error?_0x139d7f['message']:String(_0x139d7f))),_0x257130={..._0x21c1ba,'error':{'code':_0x31e872[_0x3b1378(0x123)],'message':_0x31e872[_0x3b1378(0x11a)],..._0x31e872[_0x3b1378(0x122)]?{'hint':_0x31e872[_0x3b1378(0x122)]}:{},'cause':_0x21c1ba[_0x3b1378(0x112)]}};_0x4deec1=_0x1d2272['format']===_0x3b1378(0x10d)?JSON['stringify'](_0x257130,null,0x2):JSON[_0x3b1378(0x11c)](_0x257130);}return process[_0x3b1378(0x113)][_0x3b1378(0x115)](_0x4deec1[_0x3b1378(0x120)]('\x0a')?_0x4deec1:_0x4deec1+'\x0a'),!![];}function a223_0x16ed(_0x2bf581,_0x326239){_0x2bf581=_0x2bf581-0x10b;const _0x9488f1=a223_0x9488();let _0x16ed0f=_0x9488f1[_0x2bf581];return _0x16ed0f;}function printPrettyNotice(_0x40e221){const _0x31651a=a223_0x16ed;if(!_0x40e221?.[_0x31651a(0x11b)])return;console[_0x31651a(0x112)](_0x40e221[_0x31651a(0x11b)]['message']+'\x20('+_0x40e221[_0x31651a(0x11b)]['url']+')');}
1
+ function a224_0x44cd(){const _0x417283=['4201713dhUFFc','trim','1713128SjsvFU','code','708MryXVs','43358byioDX','11JyQKxa','1816ODMfrM','command','3728175WhCYqB','pretty','validation','data','error','13902CTDAEX','_notice','message','jq:\x20','jqFilter','1662hbWjZZ','stringify','13401890GldYME','format','json','hint','update','19HzPiRP'];a224_0x44cd=function(){return _0x417283;};return a224_0x44cd();}(function(_0x5a767d,_0x25e0bf){const _0x23e185=a224_0x1d1a,_0x5c6677=_0x5a767d();while(!![]){try{const _0x1c8ca5=-parseInt(_0x23e185(0xe7))/0x1*(parseInt(_0x23e185(0xed))/0x2)+parseInt(_0x23e185(0xec))/0x3*(parseInt(_0x23e185(0xef))/0x4)+-parseInt(_0x23e185(0xf1))/0x5+parseInt(_0x23e185(0xfb))/0x6*(-parseInt(_0x23e185(0xf6))/0x7)+parseInt(_0x23e185(0xea))/0x8+parseInt(_0x23e185(0xe8))/0x9+-parseInt(_0x23e185(0xfd))/0xa*(-parseInt(_0x23e185(0xee))/0xb);if(_0x1c8ca5===_0x25e0bf)break;else _0x5c6677['push'](_0x5c6677['shift']());}catch(_0x67f5ac){_0x5c6677['push'](_0x5c6677['shift']());}}}(a224_0x44cd,0x66b41));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x5c3831,_0x5542c1){const _0x120ad7=a224_0x1d1a,_0x434e82=_0x5c3831[_0x120ad7(0xf7)],{_notice:_0x3be9db,..._0x2a9690}=_0x5c3831;void _0x3be9db,baseFormatOutput(_0x2a9690,_0x5542c1),_0x5542c1[_0x120ad7(0xfe)]===_0x120ad7(0xf2)&&printPrettyNotice(_0x434e82);}export function formatCliError(_0x405090,_0x19ad15){const _0x4e155c=a224_0x1d1a;if(_0x19ad15['format']===_0x4e155c(0xf2))return![];const _0x30d60f=_0x405090[_0x4e155c(0xf4)],_0x389cb9={'ok':![],'command':_0x19ad15[_0x4e155c(0xf0)],'risk':_0x19ad15['risk'],'data':_0x30d60f??null,'error':{'code':_0x405090['code'],'message':_0x405090[_0x4e155c(0xf8)],..._0x405090['hint']?{'hint':_0x405090[_0x4e155c(0xe5)]}:{}}},_0x36bff0=_0x19ad15[_0x4e155c(0xfe)]===_0x4e155c(0xe4)?JSON['stringify'](_0x389cb9,null,0x2):JSON[_0x4e155c(0xfc)](_0x389cb9);let _0x530b58=_0x36bff0;if(_0x19ad15[_0x4e155c(0xfa)]?.[_0x4e155c(0xe9)]())try{_0x530b58=applyJqFilter(_0x36bff0,_0x19ad15[_0x4e155c(0xfa)]);}catch(_0xfae15b){const _0x2abda6=_0xfae15b instanceof CliError?_0xfae15b:CliErrors[_0x4e155c(0xf3)](_0x4e155c(0xf9)+(_0xfae15b instanceof Error?_0xfae15b[_0x4e155c(0xf8)]:String(_0xfae15b))),_0xb9248c={..._0x389cb9,'error':{'code':_0x2abda6[_0x4e155c(0xeb)],'message':_0x2abda6['message'],..._0x2abda6['hint']?{'hint':_0x2abda6[_0x4e155c(0xe5)]}:{},'cause':_0x389cb9[_0x4e155c(0xf5)]}};_0x530b58=_0x19ad15[_0x4e155c(0xfe)]===_0x4e155c(0xe4)?JSON[_0x4e155c(0xfc)](_0xb9248c,null,0x2):JSON[_0x4e155c(0xfc)](_0xb9248c);}return process['stdout']['write'](_0x530b58['endsWith']('\x0a')?_0x530b58:_0x530b58+'\x0a'),!![];}function a224_0x1d1a(_0x3718f3,_0x316a3b){_0x3718f3=_0x3718f3-0xe4;const _0x44cd06=a224_0x44cd();let _0x1d1a29=_0x44cd06[_0x3718f3];return _0x1d1a29;}function printPrettyNotice(_0x4bc3db){const _0x5b6ce0=a224_0x1d1a;if(!_0x4bc3db?.[_0x5b6ce0(0xe6)])return;console['error'](_0x4bc3db[_0x5b6ce0(0xe6)]['message']+'\x20('+_0x4bc3db[_0x5b6ce0(0xe6)]['url']+')');}
@@ -1 +1 @@
1
- function a224_0x3307(_0x43dc6e,_0x34e3e3){_0x43dc6e=_0x43dc6e-0x1a9;var _0x402d15=a224_0x402d();var _0x3307a2=_0x402d15[_0x43dc6e];return _0x3307a2;}(function(_0x181987,_0x32fda3){var _0xaaa538=a224_0x3307,_0x57f1b6=_0x181987();while(!![]){try{var _0x422e43=-parseInt(_0xaaa538(0x1aa))/0x1+-parseInt(_0xaaa538(0x1a9))/0x2+parseInt(_0xaaa538(0x1ad))/0x3+-parseInt(_0xaaa538(0x1ab))/0x4+parseInt(_0xaaa538(0x1af))/0x5+parseInt(_0xaaa538(0x1b0))/0x6+-parseInt(_0xaaa538(0x1ae))/0x7*(parseInt(_0xaaa538(0x1ac))/0x8);if(_0x422e43===_0x32fda3)break;else _0x57f1b6['push'](_0x57f1b6['shift']());}catch(_0x556c02){_0x57f1b6['push'](_0x57f1b6['shift']());}}}(a224_0x402d,0x86004));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a224_0x402d(){var _0x1d46bd=['5324890uqphyq','3649986Yibznc','1081960jmoyoR','271828PoMIoU','2645524nmuiVQ','8CXxJGJ','1454037InenyO','944517kZHiTi'];a224_0x402d=function(){return _0x1d46bd;};return a224_0x402d();}
1
+ function a225_0x33e2(_0x2b09c2,_0x26be22){_0x2b09c2=_0x2b09c2-0x128;var _0x5a2cbd=a225_0x5a2c();var _0x33e237=_0x5a2cbd[_0x2b09c2];return _0x33e237;}(function(_0x3be53c,_0x3e9b6e){var _0x2dd909=a225_0x33e2,_0x41f501=_0x3be53c();while(!![]){try{var _0x10efea=parseInt(_0x2dd909(0x12a))/0x1*(-parseInt(_0x2dd909(0x130))/0x2)+parseInt(_0x2dd909(0x133))/0x3*(-parseInt(_0x2dd909(0x12e))/0x4)+-parseInt(_0x2dd909(0x12f))/0x5*(parseInt(_0x2dd909(0x12d))/0x6)+-parseInt(_0x2dd909(0x129))/0x7+parseInt(_0x2dd909(0x12b))/0x8*(-parseInt(_0x2dd909(0x128))/0x9)+parseInt(_0x2dd909(0x131))/0xa*(-parseInt(_0x2dd909(0x12c))/0xb)+parseInt(_0x2dd909(0x132))/0xc;if(_0x10efea===_0x3e9b6e)break;else _0x41f501['push'](_0x41f501['shift']());}catch(_0x24d284){_0x41f501['push'](_0x41f501['shift']());}}}(a225_0x5a2c,0x866e9));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a225_0x5a2c(){var _0x51bcb2=['46680PjWnJL','13744kWgrSc','121GyaNAE','6VUVnHa','101012JPPzdf','402935SywnxP','10BlksRN','439630oiamdz','37140960zGdlCQ','129KlHEdW','927NpuJTC','3388238PHbDwg'];a225_0x5a2c=function(){return _0x51bcb2;};return a225_0x5a2c();}
@@ -1 +1 @@
1
- (function(_0x139903,_0x3d1b1c){const _0x10fa1a=a225_0x472d,_0x3b0a6b=_0x139903();while(!![]){try{const _0x45ff07=-parseInt(_0x10fa1a(0x1b2))/0x1*(parseInt(_0x10fa1a(0x1c2))/0x2)+parseInt(_0x10fa1a(0x1bb))/0x3+-parseInt(_0x10fa1a(0x1b4))/0x4*(-parseInt(_0x10fa1a(0x1b0))/0x5)+parseInt(_0x10fa1a(0x1b8))/0x6+parseInt(_0x10fa1a(0x1be))/0x7+-parseInt(_0x10fa1a(0x1b7))/0x8+-parseInt(_0x10fa1a(0x1bd))/0x9;if(_0x45ff07===_0x3d1b1c)break;else _0x3b0a6b['push'](_0x3b0a6b['shift']());}catch(_0x11155b){_0x3b0a6b['push'](_0x3b0a6b['shift']());}}}(a225_0x2d2b,0xd801c));function a225_0x2d2b(){const _0x151613=['2978412ClNRpc','type','name','13131488snpFQR','6421608CrxleU','Available\x20aliases:\x20','\x20api\x20pull`\x20first.','2744493MSZdHn','No\x20api.ts\x20found\x20in\x20','8581914TAOSqu','6900719nhQqJC','Unknown\x20alias\x20\x22','flags','code','2OskENr','some','string','alias','5IVPeDW','map','235773FNvHfY','length'];a225_0x2d2b=function(){return _0x151613;};return a225_0x2d2b();}import{CliErrors}from'../errors.js';function a225_0x472d(_0x5cd7c5,_0x5422b7){_0x5cd7c5=_0x5cd7c5-0x1b0;const _0x2d2bd7=a225_0x2d2b();let _0x472dcb=_0x2d2bd7[_0x5cd7c5];return _0x472dcb;}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x4cfa3c,_0x522240,_0x15a9b8,_0x3e5536){const _0x5872ae=a225_0x472d,_0x538d59=_0x4cfa3c[_0x5872ae(0x1c0)][_0x5872ae(0x1c3)](_0x1a7d0d=>_0x1a7d0d[_0x5872ae(0x1b6)]==='code'&&_0x1a7d0d[_0x5872ae(0x1b5)]===_0x5872ae(0x1c4)),_0x47437c=_0x4cfa3c['flags'][_0x5872ae(0x1c3)](_0x8ab457=>_0x8ab457[_0x5872ae(0x1b6)]===_0x5872ae(0x1c5)&&_0x8ab457[_0x5872ae(0x1b5)]==='string');if(!_0x538d59||!_0x47437c)return;const _0x44c532=_0x522240[_0x5872ae(0x1c1)]?String(_0x522240[_0x5872ae(0x1c1)]):'',_0x28d543=_0x522240['alias']?String(_0x522240[_0x5872ae(0x1c5)]):'';if(!_0x44c532&&!_0x28d543)throw CliErrors['validation']('`'+_0x3e5536+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x28d543&&!_0x44c532){const _0x19c6fa=resolveAlias(_0x15a9b8,_0x28d543);if(!_0x19c6fa){const _0x36bbb8=listAliases(_0x15a9b8)[_0x5872ae(0x1b1)](_0x4cc547=>_0x4cc547['alias']),_0x52b355=_0x36bbb8[_0x5872ae(0x1b3)]?_0x5872ae(0x1b9)+_0x36bbb8['join'](',\x20'):_0x5872ae(0x1bc)+_0x15a9b8+'.\x20Run\x20`'+CLI_BIN_NAME+_0x5872ae(0x1ba);throw CliErrors['validation'](_0x5872ae(0x1bf)+_0x28d543+'\x22.\x20'+_0x52b355);}_0x522240[_0x5872ae(0x1c1)]=_0x19c6fa;}}
1
+ (function(_0x47d7a2,_0x31ac2d){const _0x4aab40=a226_0x3f2f,_0x25664c=_0x47d7a2();while(!![]){try{const _0xdff25c=-parseInt(_0x4aab40(0x1d4))/0x1+parseInt(_0x4aab40(0x1cc))/0x2*(parseInt(_0x4aab40(0x1cf))/0x3)+-parseInt(_0x4aab40(0x1d9))/0x4*(-parseInt(_0x4aab40(0x1c6))/0x5)+-parseInt(_0x4aab40(0x1e1))/0x6*(parseInt(_0x4aab40(0x1d3))/0x7)+parseInt(_0x4aab40(0x1df))/0x8*(-parseInt(_0x4aab40(0x1ca))/0x9)+-parseInt(_0x4aab40(0x1de))/0xa+-parseInt(_0x4aab40(0x1c5))/0xb*(-parseInt(_0x4aab40(0x1d6))/0xc);if(_0xdff25c===_0x31ac2d)break;else _0x25664c['push'](_0x25664c['shift']());}catch(_0xe8e195){_0x25664c['push'](_0x25664c['shift']());}}}(a226_0x263d,0xb3be9));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a226_0x263d(){const _0x302e06=['1294770sGDQJC','join','string','No\x20api.ts\x20found\x20in\x20','679EVVwHh','983897mfMmMS','alias','31813164lHiVzU','validation','Available\x20aliases:\x20','604dAWnnQ','\x20api\x20pull`\x20first.','name','.\x20Run\x20`','code','11130390bdaFPw','4072888VMoHSJ','some','69402cmpjmO','11bmINQw','48315SAQVdL','\x22.\x20','length','`\x20requires\x20either\x20--code\x20or\x20--alias.','18ALbnnW','flags','4SetYVX','map','type'];a226_0x263d=function(){return _0x302e06;};return a226_0x263d();}import{CLI_BIN_NAME}from'../constant/cli.js';function a226_0x3f2f(_0xe6080e,_0x15554c){_0xe6080e=_0xe6080e-0x1c5;const _0x263da7=a226_0x263d();let _0x3f2f07=_0x263da7[_0xe6080e];return _0x3f2f07;}export function resolveAliasToCode(_0xb44da,_0x1f7863,_0x1e6ed7,_0x1beba1){const _0x4e5a06=a226_0x3f2f,_0x365996=_0xb44da[_0x4e5a06(0x1cb)][_0x4e5a06(0x1e0)](_0x38e3e2=>_0x38e3e2[_0x4e5a06(0x1db)]===_0x4e5a06(0x1dd)&&_0x38e3e2[_0x4e5a06(0x1ce)]===_0x4e5a06(0x1d1)),_0x5ef18d=_0xb44da[_0x4e5a06(0x1cb)][_0x4e5a06(0x1e0)](_0x490ac2=>_0x490ac2[_0x4e5a06(0x1db)]===_0x4e5a06(0x1d5)&&_0x490ac2['type']===_0x4e5a06(0x1d1));if(!_0x365996||!_0x5ef18d)return;const _0x43665c=_0x1f7863[_0x4e5a06(0x1dd)]?String(_0x1f7863[_0x4e5a06(0x1dd)]):'',_0x5130ab=_0x1f7863[_0x4e5a06(0x1d5)]?String(_0x1f7863['alias']):'';if(!_0x43665c&&!_0x5130ab)throw CliErrors[_0x4e5a06(0x1d7)]('`'+_0x1beba1+_0x4e5a06(0x1c9));if(_0x5130ab&&!_0x43665c){const _0x37c7f3=resolveAlias(_0x1e6ed7,_0x5130ab);if(!_0x37c7f3){const _0x456c37=listAliases(_0x1e6ed7)[_0x4e5a06(0x1cd)](_0x861bb0=>_0x861bb0[_0x4e5a06(0x1d5)]),_0x54815d=_0x456c37[_0x4e5a06(0x1c8)]?_0x4e5a06(0x1d8)+_0x456c37[_0x4e5a06(0x1d0)](',\x20'):_0x4e5a06(0x1d2)+_0x1e6ed7+_0x4e5a06(0x1dc)+CLI_BIN_NAME+_0x4e5a06(0x1da);throw CliErrors[_0x4e5a06(0x1d7)]('Unknown\x20alias\x20\x22'+_0x5130ab+_0x4e5a06(0x1c7)+_0x54815d);}_0x1f7863['code']=_0x37c7f3;}}