@lovrabet/rabetbase-cli 2.3.14 → 2.3.15-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) 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/asset-update.js +1 -1
  103. package/lib/commands/menu/delete.js +1 -1
  104. package/lib/commands/menu/external-link-create.js +1 -1
  105. package/lib/commands/menu/external-link-update.js +1 -1
  106. package/lib/commands/menu/group-create.js +1 -1
  107. package/lib/commands/menu/group-update.js +1 -1
  108. package/lib/commands/menu/index.js +1 -1
  109. package/lib/commands/menu/list.js +1 -1
  110. package/lib/commands/menu/move.js +1 -1
  111. package/lib/commands/menu/regroup-start.js +1 -1
  112. package/lib/commands/menu/rename.js +1 -0
  113. package/lib/commands/menu/shared/compare-table.js +1 -1
  114. package/lib/commands/menu/shared/delete-plan.js +1 -1
  115. package/lib/commands/menu/shared/facts.js +1 -1
  116. package/lib/commands/menu/shared/index.js +1 -1
  117. package/lib/commands/menu/shared/inquirer.js +1 -1
  118. package/lib/commands/menu/shared/local-pages.js +1 -1
  119. package/lib/commands/menu/shared/logic.js +1 -1
  120. package/lib/commands/menu/shared/mutations.js +1 -1
  121. package/lib/commands/menu/shared/service.js +1 -1
  122. package/lib/commands/menu/shared/sync-core.js +1 -1
  123. package/lib/commands/menu/shared/update-core.js +1 -1
  124. package/lib/commands/menu/shared/valid-url.js +1 -1
  125. package/lib/commands/menu/sync.js +1 -1
  126. package/lib/commands/notification/config-list.js +1 -1
  127. package/lib/commands/notification/index.js +1 -1
  128. package/lib/commands/ocr/index.js +1 -1
  129. package/lib/commands/page/generate-start.js +1 -1
  130. package/lib/commands/page/generate-status.js +1 -1
  131. package/lib/commands/page/index.js +1 -1
  132. package/lib/commands/page/pull.js +1 -1
  133. package/lib/commands/page/push.js +1 -1
  134. package/lib/commands/page/relation-audit.js +1 -1
  135. package/lib/commands/page/restore.js +1 -1
  136. package/lib/commands/page/shared.js +1 -1
  137. package/lib/commands/page/standard-page-status.js +1 -1
  138. package/lib/commands/page/sync.js +1 -1
  139. package/lib/commands/permit/index.js +1 -1
  140. package/lib/commands/permit/page-get.js +1 -1
  141. package/lib/commands/permit/page-set.js +1 -1
  142. package/lib/commands/permit/role-apis-set.js +1 -1
  143. package/lib/commands/permit/role-menus-set.js +1 -1
  144. package/lib/commands/permit/role-menus.js +1 -1
  145. package/lib/commands/permit/shared.js +1 -1
  146. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  147. package/lib/commands/project/create/format-elapsed.js +1 -1
  148. package/lib/commands/project/create/main.js +1 -1
  149. package/lib/commands/project/create/non-interactive.js +1 -1
  150. package/lib/commands/project/create/project-template-path.js +1 -1
  151. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  152. package/lib/commands/project/create/use-format-code.js +1 -1
  153. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  154. package/lib/commands/project/index.js +1 -1
  155. package/lib/commands/project/init.js +1 -1
  156. package/lib/commands/project/upgrade.js +1 -1
  157. package/lib/commands/registry.js +1 -1
  158. package/lib/commands/role/create.js +1 -1
  159. package/lib/commands/role/delete.js +1 -1
  160. package/lib/commands/role/detail.js +1 -1
  161. package/lib/commands/role/index.js +1 -1
  162. package/lib/commands/role/list.js +1 -1
  163. package/lib/commands/role/shared.js +1 -1
  164. package/lib/commands/role/update.js +1 -1
  165. package/lib/commands/role/user-add.js +1 -1
  166. package/lib/commands/role/user-remove.js +1 -1
  167. package/lib/commands/role/user-resolve.js +1 -1
  168. package/lib/commands/run/index.js +1 -1
  169. package/lib/commands/schema.js +1 -1
  170. package/lib/commands/sql/create.js +1 -1
  171. package/lib/commands/sql/delete.js +1 -1
  172. package/lib/commands/sql/detail.js +1 -1
  173. package/lib/commands/sql/exec.js +1 -1
  174. package/lib/commands/sql/index.js +1 -1
  175. package/lib/commands/sql/list.js +1 -1
  176. package/lib/commands/sql/pull.js +1 -1
  177. package/lib/commands/sql/push.js +1 -1
  178. package/lib/commands/sql/save.js +1 -1
  179. package/lib/commands/sql/shared.js +1 -1
  180. package/lib/commands/sql/status.js +1 -1
  181. package/lib/commands/sql/validate.js +1 -1
  182. package/lib/commands/task/index.js +1 -1
  183. package/lib/commands/task/status.js +1 -1
  184. package/lib/commands/workspace/add.js +1 -1
  185. package/lib/commands/workspace/index.js +1 -1
  186. package/lib/commands/workspace/remove.js +1 -1
  187. package/lib/config/schema.js +1 -1
  188. package/lib/constant/cdn.js +1 -1
  189. package/lib/constant/cli.js +1 -1
  190. package/lib/constant/defaults.js +1 -1
  191. package/lib/constant/domain.js +1 -1
  192. package/lib/constant/env.js +1 -1
  193. package/lib/constant/output.js +1 -1
  194. package/lib/constant/paths.js +1 -1
  195. package/lib/constant/risk.js +1 -1
  196. package/lib/context/app-resolver.js +1 -1
  197. package/lib/context/auth-resolver.js +1 -1
  198. package/lib/context/config-loader.js +1 -1
  199. package/lib/context.js +1 -1
  200. package/lib/core/alias-resolver.js +1 -1
  201. package/lib/core/api-client.js +1 -1
  202. package/lib/core/bff/config.js +1 -1
  203. package/lib/core/bff/file-system.js +1 -1
  204. package/lib/core/bff/hash.js +1 -1
  205. package/lib/core/bff/lock.js +1 -1
  206. package/lib/core/bff/utils.js +1 -1
  207. package/lib/core/db-resolver.js +1 -1
  208. package/lib/core/page/file-system.js +1 -1
  209. package/lib/core/page/hash.js +1 -1
  210. package/lib/core/page/lock.js +1 -1
  211. package/lib/core/sql-index-auditor.js +1 -1
  212. package/lib/core/sql-sync/config.js +1 -1
  213. package/lib/core/sql-sync/file-system.js +1 -1
  214. package/lib/core/sql-sync/hash.js +1 -1
  215. package/lib/core/sql-sync/lock.js +1 -1
  216. package/lib/core/sql-sync/utils.js +1 -1
  217. package/lib/core/sql-validator.js +1 -1
  218. package/lib/errors.js +1 -1
  219. package/lib/framework/build-all-flags.js +1 -1
  220. package/lib/framework/error-output.js +1 -1
  221. package/lib/framework/explicit-yes.js +1 -1
  222. package/lib/framework/flags.js +1 -1
  223. package/lib/framework/help.js +1 -1
  224. package/lib/framework/index.js +1 -1
  225. package/lib/framework/output.js +1 -1
  226. package/lib/framework/response.js +1 -1
  227. package/lib/framework/runner-alias.js +1 -1
  228. package/lib/framework/runner.js +1 -1
  229. package/lib/framework/schema-export.js +1 -1
  230. package/lib/framework/types.js +1 -1
  231. package/lib/generated/build-info.js +1 -1
  232. package/lib/help.js +1 -1
  233. package/lib/skills/main.js +1 -1
  234. package/lib/skills/npx-skills-add.js +1 -1
  235. package/lib/telemetry/cli-command-trace.js +1 -1
  236. package/lib/telemetry/cli-help-trace.js +1 -1
  237. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  238. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  239. package/lib/telemetry/send-cli-trace-log.js +1 -1
  240. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  241. package/lib/utils/ai_config.js +1 -1
  242. package/lib/utils/apply-jq-filter.js +1 -1
  243. package/lib/utils/cdn-config.js +1 -1
  244. package/lib/utils/check-sdk-version.js +1 -1
  245. package/lib/utils/cli-version-check.js +1 -1
  246. package/lib/utils/cli-version-policy.js +1 -1
  247. package/lib/utils/config.js +1 -1
  248. package/lib/utils/copy-directory.js +1 -1
  249. package/lib/utils/entity-with-id.js +1 -1
  250. package/lib/utils/file-utils.js +1 -1
  251. package/lib/utils/guides-cdn.js +1 -1
  252. package/lib/utils/http-client.js +1 -1
  253. package/lib/utils/is-non-interactive.js +1 -1
  254. package/lib/utils/logger.js +1 -1
  255. package/lib/utils/params.js +1 -1
  256. package/lib/utils/platform.js +1 -1
  257. package/lib/utils/rules-cdn.js +1 -1
  258. package/lib/utils/sleep.js +1 -1
  259. package/lib/utils/template-replacer.js +1 -1
  260. package/lib/utils/update-notice.js +1 -1
  261. package/lib/utils/version.js +1 -1
  262. package/lib/utils/with-active-cookie.js +1 -1
  263. package/lib/utils/write-cli-side-channel.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xcdb2c9,_0x577f5d){const _0x41d0db=a212_0x1582,_0x3f5490=_0xcdb2c9();while(!![]){try{const _0x2adcf0=-parseInt(_0x41d0db(0x205))/0x1*(-parseInt(_0x41d0db(0x20e))/0x2)+parseInt(_0x41d0db(0x1dc))/0x3+parseInt(_0x41d0db(0x1e6))/0x4*(-parseInt(_0x41d0db(0x216))/0x5)+-parseInt(_0x41d0db(0x219))/0x6*(-parseInt(_0x41d0db(0x1eb))/0x7)+-parseInt(_0x41d0db(0x202))/0x8+-parseInt(_0x41d0db(0x200))/0x9+parseInt(_0x41d0db(0x1e8))/0xa;if(_0x2adcf0===_0x577f5d)break;else _0x3f5490['push'](_0x3f5490['shift']());}catch(_0x2b542f){_0x3f5490['push'](_0x3f5490['shift']());}}}(a212_0x5998,0xf3200));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x466956,_0x375f23){const _0x51ec8d=a212_0x1582,_0x35dc61=[],_0xbf6768=normalizeSqlForStaticAnalysis(_0x466956),_0x31a405=(_0xbf6768[_0x51ec8d(0x21d)]?[]:extractJoinFacts(_0xbf6768[_0x51ec8d(0x1e3)]))[_0x51ec8d(0x1f2)](_0x397426=>{const _0x313241=_0x51ec8d;if(_0x397426[_0x313241(0x207)]||_0x397426[_0x313241(0x221)][_0x313241(0x214)]===0x0)return _0x35dc61[_0x313241(0x1fe)]({'code':_0x313241(0x1f3),'table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426['columns'],'reason':_0x397426[_0x313241(0x1e4)]??_0x313241(0x1fa)}),{'table':_0x397426['table'],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426[_0x313241(0x221)],'status':'unavailable'};const _0x2b5a10=resolveTableMetadata(_0x375f23,_0x397426[_0x313241(0x1ee)]),_0x590dd7=(_0x2b5a10?.['indexes']??[])['map'](_0xdca050=>({'index':_0xdca050,'matchedPrefix':findEqualityPrefix(_0xdca050['columns'],_0x397426[_0x313241(0x221)])}))[_0x313241(0x20a)](_0x3b5ede=>_0x3b5ede[_0x313241(0x1db)][_0x313241(0x214)]>0x0),_0x54392e=_0x590dd7[_0x313241(0x21c)]((_0x152e65,_0x4ebe80)=>!_0x152e65||_0x4ebe80[_0x313241(0x1db)][_0x313241(0x214)]>_0x152e65[_0x313241(0x1db)][_0x313241(0x214)]?_0x4ebe80:_0x152e65,_0x590dd7[0x0]);if(_0x54392e)return{'table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426['columns'],'status':'covered','matchedIndex':{..._0x54392e[_0x313241(0x206)],'matchedPrefix':_0x54392e[_0x313241(0x1db)]}};const _0x516a34=_0x2b5a10?.['indexes']['filter'](_0x478e2a=>_0x478e2a[_0x313241(0x221)][_0x313241(0x218)](_0x5ace36=>_0x397426[_0x313241(0x221)][_0x313241(0x218)](_0x30afde=>columnNamesMatch(_0x5ace36,_0x30afde))))??[];if(_0x516a34[_0x313241(0x214)]>0x0)return _0x35dc61[_0x313241(0x1fe)]({'code':'JOIN_INDEX_NOT_USABLE','table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426['alias'],'columns':_0x397426[_0x313241(0x221)],'reason':_0x313241(0x1f8)}),{'table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426[_0x313241(0x221)],'status':_0x313241(0x1da),'candidateIndexes':_0x516a34};if(_0x2b5a10&&_0x2b5a10[_0x313241(0x1ed)]!==![]&&_0x2b5a10[_0x313241(0x208)][_0x313241(0x214)]>0x0&&_0x397426[_0x313241(0x221)][_0x313241(0x214)]>0x0)return _0x35dc61['push']({'code':'JOIN_INDEX_MISSING','table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426['alias'],'columns':_0x397426[_0x313241(0x221)],'reason':_0x313241(0x1f9)}),{'table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426[_0x313241(0x221)],'status':'warning'};return _0x35dc61[_0x313241(0x1fe)]({'code':_0x313241(0x220),'table':_0x397426[_0x313241(0x1ee)],'alias':_0x397426[_0x313241(0x1f1)],'columns':_0x397426['columns'],'reason':_0x2b5a10?'The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.':_0x313241(0x1fc)}),{'table':_0x397426['table'],'alias':_0x397426['alias'],'columns':_0x397426[_0x313241(0x221)],'status':_0x313241(0x1fd)};});return{'checked':_0x31a405['length']>0x0,'joins':_0x31a405,'warnings':_0x35dc61};}function extractJoinFacts(_0x4a30b1){const _0x2137ae=a212_0x1582,_0xa79ef0=maskNestedQueries(stripSqlNoise(_0x4a30b1)),_0x8836aa=maskQuotedIdentifiers(_0xa79ef0),_0xc7424e=[],_0x1b5ffd=new Set(),_0x18f19b=/\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 _0x2b98fc of _0xa79ef0[_0x2137ae(0x1f5)](_0x18f19b)){const _0x5c5847=_0x2b98fc[_0x2137ae(0x206)]??0x0,_0x5c3ca6=_0x2b98fc[0x0][_0x2137ae(0x1df)](/\bJOIN\b/i),_0x2e122a=_0x5c5847+Math[_0x2137ae(0x1ec)](0x0,_0x5c3ca6);if(!/^JOIN\b/i[_0x2137ae(0x1e9)](_0x8836aa[_0x2137ae(0x21a)](_0x2e122a)))continue;_0x1b5ffd['add'](_0x2e122a);const _0x44d00a=normalizeIdentifier(_0x2b98fc[0x1]||_0x2137ae(0x21f)),_0x4882f1=normalizeIdentifier(_0x2b98fc[0x2]??''),_0x4cf742=normalizeIdentifier(_0x2b98fc[0x3]||_0x4882f1[_0x2137ae(0x1dd)]('.')['at'](-0x1)||_0x4882f1),_0x132962=[],_0x4369c9=_0x4882f1===_0x2137ae(0x211);let _0x17b536=_0x44d00a===_0x2137ae(0x1d8)||_0x44d00a===_0x2137ae(0x1ff)||_0x4369c9,_0x461dea=_0x17b536?_0x4369c9?_0x2137ae(0x212):_0x44d00a[_0x2137ae(0x204)]()+_0x2137ae(0x20d):undefined;const _0xbeed85=stripOuterParentheses(_0x2b98fc[0x4]??''),_0x1cde52=_0xbeed85[_0x2137ae(0x1ef)](MYBATIS_DYNAMIC_START_MARKER)||_0xbeed85['includes'](MYBATIS_DYNAMIC_END_MARKER),_0x5dbea0=_0xbeed85[_0x2137ae(0x1ef)](MYBATIS_INCLUDE_MARKER);_0x1cde52&&(_0x17b536=!![],_0x461dea??=_0x2137ae(0x20c));_0x5dbea0&&(_0x17b536=!![],_0x461dea??=_0x2137ae(0x1f0));const _0x3ea818=_0xbeed85[_0x2137ae(0x1f6)](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x2137ae(0x1f6)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x2137ae(0x1f6)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x3ea818,'OR')&&(_0x17b536=!![],_0x461dea??=_0x2137ae(0x1fb));for(const _0x54c65c of splitTopLevelAnd(_0x3ea818)){const _0x586534=stripOuterParentheses(_0x54c65c);if(hasTopLevelKeyword(_0x586534,'OR')){_0x17b536=!![],_0x461dea??=_0x2137ae(0x1fb);continue;}const _0x34e8db=splitEquality(_0x586534);if(!_0x34e8db){containsColumnReference(_0x54c65c,_0x4cf742)&&(_0x17b536=!![]);continue;}const _0x1401e7=parseDirectColumnReference(_0x34e8db[0x0],_0x4cf742),_0x2b09f9=parseDirectColumnReference(_0x34e8db[0x1],_0x4cf742),_0x5633f5=containsColumnReference(_0x34e8db[0x0],_0x4cf742),_0x382b70=containsColumnReference(_0x34e8db[0x1],_0x4cf742),_0x1509e7=_0x1401e7&&!_0x382b70?_0x1401e7:_0x2b09f9&&!_0x5633f5?_0x2b09f9:null;if(_0x1509e7&&!_0x132962[_0x2137ae(0x1ef)](_0x1509e7))_0x132962[_0x2137ae(0x1fe)](_0x1509e7);else!_0x1509e7&&containsColumnReference(_0x54c65c,_0x4cf742)&&(_0x17b536=!![]);}_0xc7424e['push']({'table':_0x4882f1,'alias':_0x4cf742,'columns':_0x132962,'unsupportedPredicate':_0x17b536,'unsupportedReason':_0x461dea,'containsUnresolvedInclude':_0x5dbea0,'position':_0x2e122a});}for(const _0x4af3d5 of _0x8836aa[_0x2137ae(0x1f5)](/\bJOIN\b/gi)){const _0x2389a6=_0x4af3d5[_0x2137ae(0x206)]??0x0;if(_0x1b5ffd[_0x2137ae(0x1f7)](_0x2389a6))continue;const _0x1cd481=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x2137ae(0x1e1)](_0xa79ef0[_0x2137ae(0x21a)](_0x2389a6+_0x4af3d5[0x0][_0x2137ae(0x214)])),_0x517b26=normalizeIdentifier(_0x1cd481?.[0x1]||_0x2137ae(0x1e5)),_0x224f3c=normalizeIdentifier(_0x1cd481?.[0x2]||''),_0x4889dd=isSqlClauseKeyword(_0x224f3c)?_0x517b26[_0x2137ae(0x1dd)]('.')['at'](-0x1)||_0x517b26:_0x224f3c||_0x517b26[_0x2137ae(0x1dd)]('.')['at'](-0x1)||_0x517b26;_0xc7424e[_0x2137ae(0x1fe)]({'table':_0x517b26,'alias':_0x4889dd,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x2389a6});}const _0x504b96=_0x8836aa[_0x2137ae(0x209)](MYBATIS_INCLUDE_MARKER);return _0x504b96>=0x0&&!_0xc7424e[_0x2137ae(0x218)](_0x2e8ebc=>_0x2e8ebc[_0x2137ae(0x1f4)])&&_0xc7424e[_0x2137ae(0x1fe)]({'table':_0x2137ae(0x1e5),'alias':_0x2137ae(0x1e5),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x2137ae(0x1e2),'containsUnresolvedInclude':!![],'position':_0x504b96}),_0xc7424e[_0x2137ae(0x201)]((_0x23f0c6,_0x34f56a)=>_0x23f0c6['position']-_0x34f56a[_0x2137ae(0x223)]);}function stripSqlNoise(_0x12b9b0){const _0x46db7b=a212_0x1582,_0x28e489=Array['from'](_0x12b9b0),_0x58054a=(_0x3c64c7,_0x28fd96)=>{for(let _0xfd3c17=_0x3c64c7;_0xfd3c17<_0x28fd96;_0xfd3c17+=0x1){_0x28e489[_0xfd3c17]!=='\x0a'&&_0x28e489[_0xfd3c17]!=='\x0d'&&(_0x28e489[_0xfd3c17]='\x20');}};for(let _0x29fce1=0x0;_0x29fce1<_0x28e489[_0x46db7b(0x214)];_0x29fce1+=0x1){const _0x12e03f=_0x28e489[_0x29fce1],_0xb8099c=_0x28e489[_0x29fce1+0x1];if(_0x12e03f==='\x27'||_0x12e03f==='\x22'||_0x12e03f==='`'){const _0x2cec5c=_0x12e03f,_0x3b25c2=_0x29fce1;_0x29fce1+=0x1;while(_0x29fce1<_0x28e489[_0x46db7b(0x214)]){if(_0x28e489[_0x29fce1]==='\x5c'&&_0x29fce1+0x1<_0x28e489[_0x46db7b(0x214)]){_0x29fce1+=0x2;continue;}if(_0x28e489[_0x29fce1]!==_0x2cec5c){_0x29fce1+=0x1;continue;}if(_0x28e489[_0x29fce1+0x1]===_0x2cec5c){_0x29fce1+=0x2;continue;}break;}if(_0x2cec5c==='\x27')_0x58054a(_0x3b25c2,Math[_0x46db7b(0x222)](_0x29fce1+0x1,_0x28e489[_0x46db7b(0x214)]));continue;}if(_0x12e03f==='-'&&_0xb8099c==='-'){const _0x29eb1d=_0x29fce1;while(_0x29fce1<_0x28e489[_0x46db7b(0x214)]&&_0x28e489[_0x29fce1]!=='\x0a')_0x29fce1+=0x1;_0x58054a(_0x29eb1d,_0x29fce1);continue;}if(_0x12e03f==='/'&&_0xb8099c==='*'){const _0x126cc4=_0x29fce1;_0x29fce1+=0x2;while(_0x29fce1<_0x28e489[_0x46db7b(0x214)]&&!(_0x28e489[_0x29fce1]==='*'&&_0x28e489[_0x29fce1+0x1]==='/')){_0x29fce1+=0x1;}_0x29fce1=Math[_0x46db7b(0x222)](_0x29fce1+0x1,_0x28e489['length']-0x1),_0x58054a(_0x126cc4,_0x29fce1+0x1);continue;}if(_0x12e03f==='#'&&_0xb8099c!=='{'){const _0x1ea65=_0x29fce1;while(_0x29fce1<_0x28e489[_0x46db7b(0x214)]&&_0x28e489[_0x29fce1]!=='\x0a')_0x29fce1+=0x1;_0x58054a(_0x1ea65,_0x29fce1);continue;}if((_0x12e03f==='#'||_0x12e03f==='$')&&_0xb8099c==='{'){const _0x2c62be=_0x29fce1;_0x29fce1+=0x2;while(_0x29fce1<_0x28e489[_0x46db7b(0x214)]&&_0x28e489[_0x29fce1]!=='}')_0x29fce1+=0x1;_0x58054a(_0x2c62be,Math[_0x46db7b(0x222)](_0x29fce1+0x1,_0x28e489[_0x46db7b(0x214)]));}}return _0x28e489[_0x46db7b(0x1de)]('');}function maskQuotedIdentifiers(_0x13d0f4){const _0x2cd687=a212_0x1582,_0x36617e=Array['from'](_0x13d0f4);for(let _0x4626d3=0x0;_0x4626d3<_0x36617e[_0x2cd687(0x214)];_0x4626d3+=0x1){const _0x113220=_0x36617e[_0x4626d3];if(_0x113220!=='\x22'&&_0x113220!=='`')continue;_0x4626d3+=0x1;while(_0x4626d3<_0x36617e[_0x2cd687(0x214)]){if(_0x36617e[_0x4626d3]===_0x113220){if(_0x36617e[_0x4626d3+0x1]===_0x113220){_0x36617e[_0x4626d3]='\x20',_0x36617e[_0x4626d3+0x1]='\x20',_0x4626d3+=0x2;continue;}break;}_0x36617e[_0x4626d3]='\x20',_0x4626d3+=0x1;}}return _0x36617e['join']('');}function maskNestedQueries(_0x55eb1d){const _0x10c034=a212_0x1582,_0x25c8ea=Array[_0x10c034(0x1ea)](_0x55eb1d);for(let _0x2af6d8=0x0;_0x2af6d8<_0x25c8ea['length'];_0x2af6d8+=0x1){if(_0x25c8ea[_0x2af6d8]!=='(')continue;const _0x873816=_0x55eb1d[_0x10c034(0x21a)](_0x2af6d8+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x10c034(0x1e9)](_0x873816))continue;let _0x1d85e6=0x1,_0x660c60=_0x2af6d8+0x1;for(;_0x660c60<_0x25c8ea[_0x10c034(0x214)]&&_0x1d85e6>0x0;_0x660c60+=0x1){if(_0x25c8ea[_0x660c60]==='(')_0x1d85e6+=0x1;if(_0x25c8ea[_0x660c60]===')')_0x1d85e6-=0x1;}if(_0x1d85e6!==0x0)continue;for(let _0x5d22d0=_0x2af6d8;_0x5d22d0<_0x660c60;_0x5d22d0+=0x1){_0x25c8ea[_0x5d22d0]='\x20';}const _0x2b525d=_0x10c034(0x211);for(let _0x66e6e1=0x0;_0x66e6e1<_0x2b525d[_0x10c034(0x214)]&&_0x2af6d8+_0x66e6e1<_0x660c60;_0x66e6e1+=0x1){_0x25c8ea[_0x2af6d8+_0x66e6e1]=_0x2b525d[_0x66e6e1];}_0x2af6d8=_0x660c60-0x1;}return _0x25c8ea[_0x10c034(0x1de)]('');}function a212_0x1582(_0x4c2cad,_0x1a7bc0){_0x4c2cad=_0x4c2cad-0x1d7;const _0x599869=a212_0x5998();let _0x158207=_0x599869[_0x4c2cad];return _0x158207;}function splitTopLevelAnd(_0x2930b2){const _0x352402=a212_0x1582,_0x282d5c=[];let _0x444914=0x0,_0x4c4bd5=0x0;for(let _0x39e893=0x0;_0x39e893<_0x2930b2[_0x352402(0x214)];_0x39e893+=0x1){const _0x4fadba=_0x2930b2[_0x39e893];if(_0x4fadba==='(')_0x444914+=0x1;if(_0x4fadba===')')_0x444914=Math[_0x352402(0x1ec)](0x0,_0x444914-0x1);_0x444914===0x0&&_0x2930b2[_0x352402(0x21a)](_0x39e893)[_0x352402(0x21b)](/^AND\b/i)&&(_0x39e893===0x0||/\s/[_0x352402(0x1e9)](_0x2930b2[_0x39e893-0x1]??''))&&(_0x282d5c[_0x352402(0x1fe)](_0x2930b2['slice'](_0x4c4bd5,_0x39e893)[_0x352402(0x213)]()),_0x39e893+=0x2,_0x4c4bd5=_0x39e893+0x1);}const _0x408a21=_0x2930b2[_0x352402(0x21a)](_0x4c4bd5)[_0x352402(0x213)]();if(_0x408a21)_0x282d5c[_0x352402(0x1fe)](_0x408a21);return _0x282d5c;}function hasTopLevelKeyword(_0x8bc123,_0x1c234f){const _0x2cefda=a212_0x1582;let _0x28142f=0x0;for(let _0x4decc3=0x0;_0x4decc3<_0x8bc123[_0x2cefda(0x214)];_0x4decc3+=0x1){const _0x4ac4a5=_0x8bc123[_0x4decc3];if(_0x4ac4a5==='(')_0x28142f+=0x1;if(_0x4ac4a5===')')_0x28142f=Math['max'](0x0,_0x28142f-0x1);if(_0x28142f!==0x0)continue;const _0xfba5b9=_0x8bc123['slice'](_0x4decc3,_0x4decc3+_0x1c234f[_0x2cefda(0x214)]),_0x288cb7=_0x8bc123[_0x4decc3-0x1]??'\x20',_0x18328f=_0x8bc123[_0x4decc3+_0x1c234f[_0x2cefda(0x214)]]??'\x20';if(_0xfba5b9['toUpperCase']()===_0x1c234f['toUpperCase']()&&!/[\w$]/[_0x2cefda(0x1e9)](_0x288cb7)&&!/[\w$]/['test'](_0x18328f))return!![];}return![];}function splitEquality(_0x5ada8f){const _0x5071b7=a212_0x1582,_0x2c0005=stripOuterParentheses(_0x5ada8f);let _0x4ec852=0x0,_0x4246cc;for(let _0x29abfe=0x0;_0x29abfe<_0x2c0005[_0x5071b7(0x214)];_0x29abfe+=0x1){const _0x3e271c=_0x2c0005[_0x29abfe];if(_0x3e271c==='(')_0x4ec852+=0x1;if(_0x3e271c===')')_0x4ec852=Math[_0x5071b7(0x1ec)](0x0,_0x4ec852-0x1);const _0x5d3d3e=_0x2c0005[_0x29abfe-0x1]??'',_0x4ba145=_0x2c0005[_0x29abfe+0x1]??'';if(_0x3e271c==='='&&_0x4ec852===0x0&&!/[!<>=:]/[_0x5071b7(0x1e9)](_0x5d3d3e)&&_0x4ba145!=='='){if(_0x4246cc!==undefined)return null;_0x4246cc=_0x29abfe;}}return _0x4246cc===undefined?null:[_0x2c0005['slice'](0x0,_0x4246cc)['trim'](),_0x2c0005['slice'](_0x4246cc+0x1)[_0x5071b7(0x213)]()];}function parseDirectColumnReference(_0x5a17aa,_0x5d979f){const _0x348f24=a212_0x1582,_0x31933d=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x348f24(0x1e1)](stripOuterParentheses(_0x5a17aa));if(!_0x31933d)return null;if(normalizeIdentifier(_0x31933d[0x1]??'')!==normalizeIdentifier(_0x5d979f))return null;return normalizeIdentifier(_0x31933d[0x2]??'');}function containsColumnReference(_0x44711c,_0x5cb6b3){const _0x29dcbf=a212_0x1582,_0x407ffb=_0x44711c[_0x29dcbf(0x215)](/[`"]/g,''),_0x3d2004=_0x5cb6b3['replace'](/[.*+?^${}()|[\]\\]/g,_0x29dcbf(0x21e));return new RegExp(_0x29dcbf(0x1d7)+_0x3d2004+_0x29dcbf(0x210),'i')[_0x29dcbf(0x1e9)](_0x407ffb);}function findEqualityPrefix(_0x53fac3,_0x3893bc){const _0x643d45=a212_0x1582,_0x2d74ea=new Set(_0x3893bc[_0x643d45(0x1f2)](normalizeIdentifier)),_0x3bb74b=[];for(const _0x10d2e0 of _0x53fac3){if(!_0x2d74ea['has'](normalizeIdentifier(_0x10d2e0)))break;_0x3bb74b[_0x643d45(0x1fe)](_0x10d2e0);}return _0x3bb74b;}function a212_0x5998(){const _0x3f0574=['unsupportedReason','unknown','56492zBPmsA','left','6221760LVjDKk','test','from','860412eLeIhq','max','metadataAvailable','table','includes','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','alias','map','JOIN_PREDICATE_UNSUPPORTED','containsUnresolvedInclude','matchAll','replaceAll','has','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','unavailable','push','full','15217056jxPhDq','sort','4527384ibTNWc','toLowerCase','toUpperCase','703YgoUfM','index','unsupportedPredicate','indexes','indexOf','filter','tableName','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','2514ukMRAu','natural','\x5cs*\x5c.\x5cs*[\x5cw$]+','__sq__','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','trim','length','replace','20xsExpT','startsWith','some','24WuCdus','slice','match','reduce','error','\x5c$&','INNER','INDEX_METADATA_UNAVAILABLE','columns','min','position','(?:^|[^\x5cw$])','right','inner','warning','matchedPrefix','3934584dxfcWx','split','join','search','endsWith','exec','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','sql'];a212_0x5998=function(){return _0x3f0574;};return a212_0x5998();}function resolveTableMetadata(_0x180bd8,_0xc79a04){const _0x524f00=a212_0x1582,_0x2c5826=normalizeIdentifier(_0xc79a04),_0x13b1de=_0x180bd8[_0x524f00(0x20a)](_0x51dafc=>normalizeIdentifier(_0x51dafc[_0x524f00(0x20b)])===_0x2c5826);if(_0x13b1de[_0x524f00(0x214)]===0x1)return _0x13b1de[0x0];const _0x5ecfee=_0x2c5826['includes']('.'),_0x277bd3=_0x2c5826[_0x524f00(0x1dd)]('.')['at'](-0x1),_0x212cf9=_0x180bd8['filter'](_0x112423=>{const _0x20e648=_0x524f00,_0xf01bd8=normalizeIdentifier(_0x112423[_0x20e648(0x20b)]);if(_0x5ecfee&&_0xf01bd8[_0x20e648(0x1ef)]('.'))return![];return _0xf01bd8[_0x20e648(0x1dd)]('.')['at'](-0x1)===_0x277bd3;});return _0x212cf9[_0x524f00(0x214)]===0x1?_0x212cf9[0x0]:undefined;}function columnNamesMatch(_0x2efc15,_0x5dab9){return normalizeIdentifier(_0x2efc15)===normalizeIdentifier(_0x5dab9);}function normalizeIdentifier(_0x391ea2){const _0x5b2a7a=a212_0x1582;return _0x391ea2[_0x5b2a7a(0x215)](/[`"]/g,'')[_0x5b2a7a(0x213)]()[_0x5b2a7a(0x203)]();}function isSqlClauseKeyword(_0x520274){const _0x54562f=a212_0x1582;return new Set(['on','using','where',_0x54562f(0x1de),_0x54562f(0x1d9),_0x54562f(0x1e7),_0x54562f(0x1d8),_0x54562f(0x1ff),'cross',_0x54562f(0x20f)])[_0x54562f(0x1f7)](_0x520274);}function stripOuterParentheses(_0x3ccff6){const _0x405272=a212_0x1582;let _0xb486df=_0x3ccff6[_0x405272(0x213)]();while(_0xb486df[_0x405272(0x217)]('(')&&_0xb486df[_0x405272(0x1e0)](')')){let _0x1afd1e=0x0,_0x126b53=!![];for(let _0x2d9e25=0x0;_0x2d9e25<_0xb486df[_0x405272(0x214)];_0x2d9e25+=0x1){if(_0xb486df[_0x2d9e25]==='(')_0x1afd1e+=0x1;if(_0xb486df[_0x2d9e25]===')')_0x1afd1e-=0x1;if(_0x1afd1e===0x0&&_0x2d9e25<_0xb486df['length']-0x1){_0x126b53=![];break;}}if(!_0x126b53||_0x1afd1e!==0x0)break;_0xb486df=_0xb486df['slice'](0x1,-0x1)[_0x405272(0x213)]();}return _0xb486df;}
1
+ (function(_0x4c02f5,_0x5201fc){const _0x46da7e=a213_0x23e1,_0x4c1896=_0x4c02f5();while(!![]){try{const _0x3d03bc=parseInt(_0x46da7e(0x17e))/0x1+parseInt(_0x46da7e(0x1a4))/0x2+-parseInt(_0x46da7e(0x17c))/0x3+parseInt(_0x46da7e(0x191))/0x4+parseInt(_0x46da7e(0x1a8))/0x5*(parseInt(_0x46da7e(0x19b))/0x6)+-parseInt(_0x46da7e(0x180))/0x7*(-parseInt(_0x46da7e(0x18d))/0x8)+-parseInt(_0x46da7e(0x1ac))/0x9;if(_0x3d03bc===_0x5201fc)break;else _0x4c1896['push'](_0x4c1896['shift']());}catch(_0x3ac815){_0x4c1896['push'](_0x4c1896['shift']());}}}(a213_0x562f,0x52205));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';export function auditSqlJoinIndexes(_0x3fc7be,_0x4ae97b){const _0x3219ca=a213_0x23e1,_0x340394=[],_0x4fd31b=normalizeSqlForStaticAnalysis(_0x3fc7be),_0x5a881e=(_0x4fd31b[_0x3219ca(0x1af)]?[]:extractJoinFacts(_0x4fd31b[_0x3219ca(0x179)]))[_0x3219ca(0x188)](_0x57ec83=>{const _0x10db14=_0x3219ca;if(_0x57ec83[_0x10db14(0x1a7)]||_0x57ec83[_0x10db14(0x195)]['length']===0x0)return _0x340394['push']({'code':_0x10db14(0x197),'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83[_0x10db14(0x17d)],'columns':_0x57ec83['columns'],'reason':_0x57ec83[_0x10db14(0x1a0)]??_0x10db14(0x189)}),{'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83['alias'],'columns':_0x57ec83[_0x10db14(0x195)],'status':_0x10db14(0x17f)};const _0x4f5ec9=resolveTableMetadata(_0x4ae97b,_0x57ec83[_0x10db14(0x198)]),_0x4fa515=(_0x4f5ec9?.[_0x10db14(0x176)]??[])[_0x10db14(0x188)](_0x2c0af3=>({'index':_0x2c0af3,'matchedPrefix':findEqualityPrefix(_0x2c0af3['columns'],_0x57ec83[_0x10db14(0x195)])}))[_0x10db14(0x172)](_0xab5e43=>_0xab5e43['matchedPrefix'][_0x10db14(0x1ae)]>0x0),_0x3ea365=_0x4fa515['reduce']((_0x2c2d96,_0xcf5bd0)=>!_0x2c2d96||_0xcf5bd0[_0x10db14(0x18b)][_0x10db14(0x1ae)]>_0x2c2d96[_0x10db14(0x18b)][_0x10db14(0x1ae)]?_0xcf5bd0:_0x2c2d96,_0x4fa515[0x0]);if(_0x3ea365)return{'table':_0x57ec83['table'],'alias':_0x57ec83[_0x10db14(0x17d)],'columns':_0x57ec83[_0x10db14(0x195)],'status':_0x10db14(0x1a5),'matchedIndex':{..._0x3ea365['index'],'matchedPrefix':_0x3ea365['matchedPrefix']}};const _0x35e6dc=_0x4f5ec9?.[_0x10db14(0x176)][_0x10db14(0x172)](_0x7a8174=>_0x7a8174['columns'][_0x10db14(0x174)](_0x1a1d04=>_0x57ec83[_0x10db14(0x195)][_0x10db14(0x174)](_0x522f65=>columnNamesMatch(_0x1a1d04,_0x522f65))))??[];if(_0x35e6dc[_0x10db14(0x1ae)]>0x0)return _0x340394[_0x10db14(0x19e)]({'code':_0x10db14(0x190),'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83['alias'],'columns':_0x57ec83[_0x10db14(0x195)],'reason':_0x10db14(0x1a3)}),{'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83[_0x10db14(0x17d)],'columns':_0x57ec83[_0x10db14(0x195)],'status':_0x10db14(0x192),'candidateIndexes':_0x35e6dc};if(_0x4f5ec9&&_0x4f5ec9[_0x10db14(0x19f)]!==![]&&_0x4f5ec9[_0x10db14(0x176)][_0x10db14(0x1ae)]>0x0&&_0x57ec83[_0x10db14(0x195)]['length']>0x0)return _0x340394[_0x10db14(0x19e)]({'code':_0x10db14(0x1ab),'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83['alias'],'columns':_0x57ec83['columns'],'reason':_0x10db14(0x196)}),{'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83[_0x10db14(0x17d)],'columns':_0x57ec83[_0x10db14(0x195)],'status':_0x10db14(0x192)};return _0x340394['push']({'code':'INDEX_METADATA_UNAVAILABLE','table':_0x57ec83['table'],'alias':_0x57ec83['alias'],'columns':_0x57ec83[_0x10db14(0x195)],'reason':_0x4f5ec9?_0x10db14(0x1b2):_0x10db14(0x1a6)}),{'table':_0x57ec83[_0x10db14(0x198)],'alias':_0x57ec83[_0x10db14(0x17d)],'columns':_0x57ec83['columns'],'status':'unavailable'};});return{'checked':_0x5a881e['length']>0x0,'joins':_0x5a881e,'warnings':_0x340394};}function extractJoinFacts(_0x9e0a79){const _0x194adc=a213_0x23e1,_0x428f3e=maskNestedQueries(stripSqlNoise(_0x9e0a79)),_0x31a6cf=maskQuotedIdentifiers(_0x428f3e),_0x76368d=[],_0x10869c=new Set(),_0x21946b=/\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 _0x832abd of _0x428f3e[_0x194adc(0x193)](_0x21946b)){const _0x3463c7=_0x832abd[_0x194adc(0x1a9)]??0x0,_0x2057a5=_0x832abd[0x0]['search'](/\bJOIN\b/i),_0x3be04e=_0x3463c7+Math['max'](0x0,_0x2057a5);if(!/^JOIN\b/i[_0x194adc(0x1b1)](_0x31a6cf[_0x194adc(0x19d)](_0x3be04e)))continue;_0x10869c[_0x194adc(0x1ba)](_0x3be04e);const _0x1d46f2=normalizeIdentifier(_0x832abd[0x1]||_0x194adc(0x185)),_0x5bb279=normalizeIdentifier(_0x832abd[0x2]??''),_0x15be66=normalizeIdentifier(_0x832abd[0x3]||_0x5bb279[_0x194adc(0x1b5)]('.')['at'](-0x1)||_0x5bb279),_0x40664f=[],_0x1ec50d=_0x5bb279==='__sq__';let _0x2b77ab=_0x1d46f2==='right'||_0x1d46f2===_0x194adc(0x1a1)||_0x1ec50d,_0x137e3d=_0x2b77ab?_0x1ec50d?'Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.':_0x1d46f2[_0x194adc(0x1a2)]()+_0x194adc(0x1b8):undefined;const _0x525fe8=stripOuterParentheses(_0x832abd[0x4]??''),_0x3d4be1=_0x525fe8[_0x194adc(0x18c)](MYBATIS_DYNAMIC_START_MARKER)||_0x525fe8[_0x194adc(0x18c)](MYBATIS_DYNAMIC_END_MARKER),_0x45d1e5=_0x525fe8[_0x194adc(0x18c)](MYBATIS_INCLUDE_MARKER);_0x3d4be1&&(_0x2b77ab=!![],_0x137e3d??='MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.');_0x45d1e5&&(_0x2b77ab=!![],_0x137e3d??=_0x194adc(0x1b9));const _0x5f560b=_0x525fe8['replaceAll'](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x194adc(0x1b7)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x5f560b,'OR')&&(_0x2b77ab=!![],_0x137e3d??='OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.');for(const _0x2e79e9 of splitTopLevelAnd(_0x5f560b)){const _0x45d6f0=stripOuterParentheses(_0x2e79e9);if(hasTopLevelKeyword(_0x45d6f0,'OR')){_0x2b77ab=!![],_0x137e3d??=_0x194adc(0x182);continue;}const _0x1bade6=splitEquality(_0x45d6f0);if(!_0x1bade6){containsColumnReference(_0x2e79e9,_0x15be66)&&(_0x2b77ab=!![]);continue;}const _0x1e7a6a=parseDirectColumnReference(_0x1bade6[0x0],_0x15be66),_0x5d5f0a=parseDirectColumnReference(_0x1bade6[0x1],_0x15be66),_0x309a7a=containsColumnReference(_0x1bade6[0x0],_0x15be66),_0x4ff827=containsColumnReference(_0x1bade6[0x1],_0x15be66),_0x2d6445=_0x1e7a6a&&!_0x4ff827?_0x1e7a6a:_0x5d5f0a&&!_0x309a7a?_0x5d5f0a:null;if(_0x2d6445&&!_0x40664f['includes'](_0x2d6445))_0x40664f['push'](_0x2d6445);else!_0x2d6445&&containsColumnReference(_0x2e79e9,_0x15be66)&&(_0x2b77ab=!![]);}_0x76368d['push']({'table':_0x5bb279,'alias':_0x15be66,'columns':_0x40664f,'unsupportedPredicate':_0x2b77ab,'unsupportedReason':_0x137e3d,'containsUnresolvedInclude':_0x45d1e5,'position':_0x3be04e});}for(const _0x45ba82 of _0x31a6cf['matchAll'](/\bJOIN\b/gi)){const _0xd929d4=_0x45ba82['index']??0x0;if(_0x10869c[_0x194adc(0x1ad)](_0xd929d4))continue;const _0x491a80=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x194adc(0x18f)](_0x428f3e[_0x194adc(0x19d)](_0xd929d4+_0x45ba82[0x0]['length'])),_0x4d1189=normalizeIdentifier(_0x491a80?.[0x1]||_0x194adc(0x1b0)),_0x42234e=normalizeIdentifier(_0x491a80?.[0x2]||''),_0x405320=isSqlClauseKeyword(_0x42234e)?_0x4d1189[_0x194adc(0x1b5)]('.')['at'](-0x1)||_0x4d1189:_0x42234e||_0x4d1189['split']('.')['at'](-0x1)||_0x4d1189;_0x76368d[_0x194adc(0x19e)]({'table':_0x4d1189,'alias':_0x405320,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x194adc(0x1b3),'position':_0xd929d4});}const _0x53d579=_0x31a6cf['indexOf'](MYBATIS_INCLUDE_MARKER);return _0x53d579>=0x0&&!_0x76368d[_0x194adc(0x174)](_0x497931=>_0x497931['containsUnresolvedInclude'])&&_0x76368d[_0x194adc(0x19e)]({'table':'unknown','alias':'unknown','columns':[],'unsupportedPredicate':!![],'unsupportedReason':_0x194adc(0x17b),'containsUnresolvedInclude':!![],'position':_0x53d579}),_0x76368d['sort']((_0x16d855,_0x2d4ad1)=>_0x16d855[_0x194adc(0x18e)]-_0x2d4ad1[_0x194adc(0x18e)]);}function stripSqlNoise(_0x43c3c2){const _0x449555=a213_0x23e1,_0xf3c401=Array['from'](_0x43c3c2),_0x145ec1=(_0x12d5af,_0x2653c9)=>{for(let _0x42827c=_0x12d5af;_0x42827c<_0x2653c9;_0x42827c+=0x1){_0xf3c401[_0x42827c]!=='\x0a'&&_0xf3c401[_0x42827c]!=='\x0d'&&(_0xf3c401[_0x42827c]='\x20');}};for(let _0x2bb5c2=0x0;_0x2bb5c2<_0xf3c401[_0x449555(0x1ae)];_0x2bb5c2+=0x1){const _0x4d7745=_0xf3c401[_0x2bb5c2],_0x3061e2=_0xf3c401[_0x2bb5c2+0x1];if(_0x4d7745==='\x27'||_0x4d7745==='\x22'||_0x4d7745==='`'){const _0x2cc3f8=_0x4d7745,_0x4c3d3b=_0x2bb5c2;_0x2bb5c2+=0x1;while(_0x2bb5c2<_0xf3c401[_0x449555(0x1ae)]){if(_0xf3c401[_0x2bb5c2]==='\x5c'&&_0x2bb5c2+0x1<_0xf3c401[_0x449555(0x1ae)]){_0x2bb5c2+=0x2;continue;}if(_0xf3c401[_0x2bb5c2]!==_0x2cc3f8){_0x2bb5c2+=0x1;continue;}if(_0xf3c401[_0x2bb5c2+0x1]===_0x2cc3f8){_0x2bb5c2+=0x2;continue;}break;}if(_0x2cc3f8==='\x27')_0x145ec1(_0x4c3d3b,Math['min'](_0x2bb5c2+0x1,_0xf3c401[_0x449555(0x1ae)]));continue;}if(_0x4d7745==='-'&&_0x3061e2==='-'){const _0x166e4e=_0x2bb5c2;while(_0x2bb5c2<_0xf3c401['length']&&_0xf3c401[_0x2bb5c2]!=='\x0a')_0x2bb5c2+=0x1;_0x145ec1(_0x166e4e,_0x2bb5c2);continue;}if(_0x4d7745==='/'&&_0x3061e2==='*'){const _0x435c88=_0x2bb5c2;_0x2bb5c2+=0x2;while(_0x2bb5c2<_0xf3c401['length']&&!(_0xf3c401[_0x2bb5c2]==='*'&&_0xf3c401[_0x2bb5c2+0x1]==='/')){_0x2bb5c2+=0x1;}_0x2bb5c2=Math[_0x449555(0x19c)](_0x2bb5c2+0x1,_0xf3c401[_0x449555(0x1ae)]-0x1),_0x145ec1(_0x435c88,_0x2bb5c2+0x1);continue;}if(_0x4d7745==='#'&&_0x3061e2!=='{'){const _0x260246=_0x2bb5c2;while(_0x2bb5c2<_0xf3c401[_0x449555(0x1ae)]&&_0xf3c401[_0x2bb5c2]!=='\x0a')_0x2bb5c2+=0x1;_0x145ec1(_0x260246,_0x2bb5c2);continue;}if((_0x4d7745==='#'||_0x4d7745==='$')&&_0x3061e2==='{'){const _0x2d414b=_0x2bb5c2;_0x2bb5c2+=0x2;while(_0x2bb5c2<_0xf3c401[_0x449555(0x1ae)]&&_0xf3c401[_0x2bb5c2]!=='}')_0x2bb5c2+=0x1;_0x145ec1(_0x2d414b,Math[_0x449555(0x19c)](_0x2bb5c2+0x1,_0xf3c401[_0x449555(0x1ae)]));}}return _0xf3c401[_0x449555(0x186)]('');}function maskQuotedIdentifiers(_0x862907){const _0x46a58e=a213_0x23e1,_0x3ff6ca=Array[_0x46a58e(0x17a)](_0x862907);for(let _0x54d392=0x0;_0x54d392<_0x3ff6ca[_0x46a58e(0x1ae)];_0x54d392+=0x1){const _0x34b57b=_0x3ff6ca[_0x54d392];if(_0x34b57b!=='\x22'&&_0x34b57b!=='`')continue;_0x54d392+=0x1;while(_0x54d392<_0x3ff6ca[_0x46a58e(0x1ae)]){if(_0x3ff6ca[_0x54d392]===_0x34b57b){if(_0x3ff6ca[_0x54d392+0x1]===_0x34b57b){_0x3ff6ca[_0x54d392]='\x20',_0x3ff6ca[_0x54d392+0x1]='\x20',_0x54d392+=0x2;continue;}break;}_0x3ff6ca[_0x54d392]='\x20',_0x54d392+=0x1;}}return _0x3ff6ca['join']('');}function maskNestedQueries(_0x2a52c3){const _0x414c73=a213_0x23e1,_0x5ea80a=Array[_0x414c73(0x17a)](_0x2a52c3);for(let _0x435102=0x0;_0x435102<_0x5ea80a[_0x414c73(0x1ae)];_0x435102+=0x1){if(_0x5ea80a[_0x435102]!=='(')continue;const _0x5c8180=_0x2a52c3['slice'](_0x435102+0x1);if(!/^\s*(?:SELECT|WITH)\b/i[_0x414c73(0x1b1)](_0x5c8180))continue;let _0x514cba=0x1,_0x10cc26=_0x435102+0x1;for(;_0x10cc26<_0x5ea80a[_0x414c73(0x1ae)]&&_0x514cba>0x0;_0x10cc26+=0x1){if(_0x5ea80a[_0x10cc26]==='(')_0x514cba+=0x1;if(_0x5ea80a[_0x10cc26]===')')_0x514cba-=0x1;}if(_0x514cba!==0x0)continue;for(let _0x308106=_0x435102;_0x308106<_0x10cc26;_0x308106+=0x1){_0x5ea80a[_0x308106]='\x20';}const _0x40e4fd=_0x414c73(0x1aa);for(let _0x1340a0=0x0;_0x1340a0<_0x40e4fd['length']&&_0x435102+_0x1340a0<_0x10cc26;_0x1340a0+=0x1){_0x5ea80a[_0x435102+_0x1340a0]=_0x40e4fd[_0x1340a0];}_0x435102=_0x10cc26-0x1;}return _0x5ea80a[_0x414c73(0x186)]('');}function splitTopLevelAnd(_0x44cd53){const _0x136cf5=a213_0x23e1,_0x113bbe=[];let _0x3e5ddf=0x0,_0x52dbac=0x0;for(let _0x2ffe9a=0x0;_0x2ffe9a<_0x44cd53[_0x136cf5(0x1ae)];_0x2ffe9a+=0x1){const _0x249c3a=_0x44cd53[_0x2ffe9a];if(_0x249c3a==='(')_0x3e5ddf+=0x1;if(_0x249c3a===')')_0x3e5ddf=Math['max'](0x0,_0x3e5ddf-0x1);_0x3e5ddf===0x0&&_0x44cd53[_0x136cf5(0x19d)](_0x2ffe9a)['match'](/^AND\b/i)&&(_0x2ffe9a===0x0||/\s/[_0x136cf5(0x1b1)](_0x44cd53[_0x2ffe9a-0x1]??''))&&(_0x113bbe[_0x136cf5(0x19e)](_0x44cd53[_0x136cf5(0x19d)](_0x52dbac,_0x2ffe9a)[_0x136cf5(0x18a)]()),_0x2ffe9a+=0x2,_0x52dbac=_0x2ffe9a+0x1);}const _0x249625=_0x44cd53[_0x136cf5(0x19d)](_0x52dbac)[_0x136cf5(0x18a)]();if(_0x249625)_0x113bbe['push'](_0x249625);return _0x113bbe;}function hasTopLevelKeyword(_0x4e463f,_0x108ccf){const _0x468d72=a213_0x23e1;let _0x25a684=0x0;for(let _0x5bd799=0x0;_0x5bd799<_0x4e463f[_0x468d72(0x1ae)];_0x5bd799+=0x1){const _0x2653c4=_0x4e463f[_0x5bd799];if(_0x2653c4==='(')_0x25a684+=0x1;if(_0x2653c4===')')_0x25a684=Math[_0x468d72(0x19a)](0x0,_0x25a684-0x1);if(_0x25a684!==0x0)continue;const _0x289005=_0x4e463f[_0x468d72(0x19d)](_0x5bd799,_0x5bd799+_0x108ccf[_0x468d72(0x1ae)]),_0x23024b=_0x4e463f[_0x5bd799-0x1]??'\x20',_0x216c34=_0x4e463f[_0x5bd799+_0x108ccf[_0x468d72(0x1ae)]]??'\x20';if(_0x289005[_0x468d72(0x1a2)]()===_0x108ccf[_0x468d72(0x1a2)]()&&!/[\w$]/[_0x468d72(0x1b1)](_0x23024b)&&!/[\w$]/['test'](_0x216c34))return!![];}return![];}function splitEquality(_0x729cd1){const _0x15fe8b=a213_0x23e1,_0x4ad3a0=stripOuterParentheses(_0x729cd1);let _0x423171=0x0,_0x227eff;for(let _0x5c588b=0x0;_0x5c588b<_0x4ad3a0[_0x15fe8b(0x1ae)];_0x5c588b+=0x1){const _0x23ab73=_0x4ad3a0[_0x5c588b];if(_0x23ab73==='(')_0x423171+=0x1;if(_0x23ab73===')')_0x423171=Math['max'](0x0,_0x423171-0x1);const _0x50dd12=_0x4ad3a0[_0x5c588b-0x1]??'',_0x359e66=_0x4ad3a0[_0x5c588b+0x1]??'';if(_0x23ab73==='='&&_0x423171===0x0&&!/[!<>=:]/[_0x15fe8b(0x1b1)](_0x50dd12)&&_0x359e66!=='='){if(_0x227eff!==undefined)return null;_0x227eff=_0x5c588b;}}return _0x227eff===undefined?null:[_0x4ad3a0['slice'](0x0,_0x227eff)[_0x15fe8b(0x18a)](),_0x4ad3a0[_0x15fe8b(0x19d)](_0x227eff+0x1)[_0x15fe8b(0x18a)]()];}function parseDirectColumnReference(_0x438acc,_0x29c4c7){const _0x25a547=a213_0x23e1,_0x5d33f7=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x25a547(0x18f)](stripOuterParentheses(_0x438acc));if(!_0x5d33f7)return null;if(normalizeIdentifier(_0x5d33f7[0x1]??'')!==normalizeIdentifier(_0x29c4c7))return null;return normalizeIdentifier(_0x5d33f7[0x2]??'');}function containsColumnReference(_0x2d4a4b,_0x47db7c){const _0x4833de=a213_0x23e1,_0x521587=_0x2d4a4b[_0x4833de(0x181)](/[`"]/g,''),_0x550234=_0x47db7c[_0x4833de(0x181)](/[.*+?^${}()|[\]\\]/g,_0x4833de(0x178));return new RegExp(_0x4833de(0x175)+_0x550234+_0x4833de(0x187),'i')['test'](_0x521587);}function findEqualityPrefix(_0x3cb7a7,_0x19818d){const _0x441cc9=a213_0x23e1,_0x5a8d05=new Set(_0x19818d[_0x441cc9(0x188)](normalizeIdentifier)),_0x260c09=[];for(const _0xc1e4d7 of _0x3cb7a7){if(!_0x5a8d05['has'](normalizeIdentifier(_0xc1e4d7)))break;_0x260c09[_0x441cc9(0x19e)](_0xc1e4d7);}return _0x260c09;}function resolveTableMetadata(_0x539469,_0x39b061){const _0xc36951=a213_0x23e1,_0x354c13=normalizeIdentifier(_0x39b061),_0x41570a=_0x539469[_0xc36951(0x172)](_0x14677a=>normalizeIdentifier(_0x14677a[_0xc36951(0x177)])===_0x354c13);if(_0x41570a[_0xc36951(0x1ae)]===0x1)return _0x41570a[0x0];const _0x43145f=_0x354c13['includes']('.'),_0x4c08c7=_0x354c13[_0xc36951(0x1b5)]('.')['at'](-0x1),_0x2f26af=_0x539469['filter'](_0x5e6f0a=>{const _0x5d546f=_0xc36951,_0x4b6965=normalizeIdentifier(_0x5e6f0a[_0x5d546f(0x177)]);if(_0x43145f&&_0x4b6965[_0x5d546f(0x18c)]('.'))return![];return _0x4b6965[_0x5d546f(0x1b5)]('.')['at'](-0x1)===_0x4c08c7;});return _0x2f26af[_0xc36951(0x1ae)]===0x1?_0x2f26af[0x0]:undefined;}function a213_0x562f(){const _0x574aac=['JOIN_INDEX_NOT_USABLE','2002092KUGMKH','warning','matchAll','cross','columns','No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.','JOIN_PREDICATE_UNSUPPORTED','table','toLowerCase','max','313914TppgSb','min','slice','push','metadataAvailable','unsupportedReason','full','toUpperCase','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','672330tSJqTh','covered','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','unsupportedPredicate','15VnzfBJ','index','__sq__','JOIN_INDEX_MISSING','10568286yIVzez','has','length','error','unknown','test','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','using','split','where','replaceAll','\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','add','filter','left','some','(?:^|[^\x5cw$])','indexes','tableName','\x5c$&','sql','from','MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','950709ECYrym','alias','550992LoCdgk','unavailable','21LvlsFK','replace','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','inner','endsWith','INNER','join','\x5cs*\x5c.\x5cs*[\x5cw$]+','map','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','trim','matchedPrefix','includes','754424rlpLmS','position','exec'];a213_0x562f=function(){return _0x574aac;};return a213_0x562f();}function columnNamesMatch(_0x105386,_0xc1772b){return normalizeIdentifier(_0x105386)===normalizeIdentifier(_0xc1772b);}function a213_0x23e1(_0x54b2bb,_0x24cfed){_0x54b2bb=_0x54b2bb-0x172;const _0x562f93=a213_0x562f();let _0x23e195=_0x562f93[_0x54b2bb];return _0x23e195;}function normalizeIdentifier(_0x15dc0d){const _0x63ba5e=a213_0x23e1;return _0x15dc0d[_0x63ba5e(0x181)](/[`"]/g,'')[_0x63ba5e(0x18a)]()[_0x63ba5e(0x199)]();}function isSqlClauseKeyword(_0x4d5415){const _0x4f205b=a213_0x23e1;return new Set(['on',_0x4f205b(0x1b4),_0x4f205b(0x1b6),'join',_0x4f205b(0x183),_0x4f205b(0x173),'right',_0x4f205b(0x1a1),_0x4f205b(0x194),'natural'])[_0x4f205b(0x1ad)](_0x4d5415);}function stripOuterParentheses(_0x14c3a4){const _0x214e88=a213_0x23e1;let _0x19bae7=_0x14c3a4[_0x214e88(0x18a)]();while(_0x19bae7['startsWith']('(')&&_0x19bae7[_0x214e88(0x184)](')')){let _0x11dba8=0x0,_0x16ea10=!![];for(let _0x161fe0=0x0;_0x161fe0<_0x19bae7['length'];_0x161fe0+=0x1){if(_0x19bae7[_0x161fe0]==='(')_0x11dba8+=0x1;if(_0x19bae7[_0x161fe0]===')')_0x11dba8-=0x1;if(_0x11dba8===0x0&&_0x161fe0<_0x19bae7[_0x214e88(0x1ae)]-0x1){_0x16ea10=![];break;}}if(!_0x16ea10||_0x11dba8!==0x0)break;_0x19bae7=_0x19bae7['slice'](0x1,-0x1)[_0x214e88(0x18a)]();}return _0x19bae7;}
@@ -1 +1 @@
1
- function a213_0x9d2e(){const _0x573ff5=['9YiHXvg','sql','60750ZxjJrb','8rzlrko','168jROuiH','64463KrefpN','138TRNJcp','12048AQLoLs','152zExsSC','1358860jHarDk','204089MFNkhL','44545ehZrIV','147444nBKbiA','sql-trash','/sql','sql.lock.json'];a213_0x9d2e=function(){return _0x573ff5;};return a213_0x9d2e();}const a213_0x23088e=a213_0x2510;(function(_0x32d48b,_0x3f3003){const _0x4356cc=a213_0x2510,_0x34628e=_0x32d48b();while(!![]){try{const _0x393897=-parseInt(_0x4356cc(0x1cc))/0x1+parseInt(_0x4356cc(0x1d4))/0x2+parseInt(_0x4356cc(0x1c9))/0x3*(-parseInt(_0x4356cc(0x1d5))/0x4)+parseInt(_0x4356cc(0x1cd))/0x5*(-parseInt(_0x4356cc(0x1c8))/0x6)+-parseInt(_0x4356cc(0x1c7))/0x7*(-parseInt(_0x4356cc(0x1ca))/0x8)+-parseInt(_0x4356cc(0x1d2))/0x9*(-parseInt(_0x4356cc(0x1cb))/0xa)+parseInt(_0x4356cc(0x1ce))/0xb*(parseInt(_0x4356cc(0x1d6))/0xc);if(_0x393897===_0x3f3003)break;else _0x34628e['push'](_0x34628e['shift']());}catch(_0x2182dc){_0x34628e['push'](_0x34628e['shift']());}}}(a213_0x9d2e,0x1b4f4));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a213_0x23088e(0x1d1),TRASH_DIR_NAME=a213_0x23088e(0x1cf);function a213_0x2510(_0x473531,_0x4a2f30){_0x473531=_0x473531-0x1c7;const _0x9d2e12=a213_0x9d2e();let _0x251040=_0x9d2e12[_0x473531];return _0x251040;}export function loadSqlProjectConfig(_0x290cb6,_0x3428ff){const _0x383c42=a213_0x23088e,_0x2abc15=resolve(_0x3428ff??findProjectRootDirectory()),_0x100b4e=DOT_DIR+_0x383c42(0x1d0),_0x3f5dc6=_0x100b4e+'/'+_0x290cb6;return{'projectRoot':_0x2abc15,'appCode':_0x290cb6,'sqlWorkspaceRoot':_0x100b4e,'sqlRoot':_0x3f5dc6,'sqlRootDir':resolve(_0x2abc15,DOT_DIR,_0x383c42(0x1d3),_0x290cb6),'lockFilePath':resolve(_0x2abc15,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x2abc15,DOT_DIR,TRASH_DIR_NAME)};}
1
+ function a214_0x2db7(){const _0x215fe4=['4SFoHWS','1746460Owogpd','sql-trash','656100AJRpYx','136835LlJzqj','2821188tonLqV','4378794NYWdKB','7763384xoOYgQ','/sql','7xtGrbZ','622731jYmYXE'];a214_0x2db7=function(){return _0x215fe4;};return a214_0x2db7();}const a214_0xff1701=a214_0x4bf0;(function(_0x8592ce,_0x1881c4){const _0xc4332b=a214_0x4bf0,_0x2b9044=_0x8592ce();while(!![]){try{const _0x50bd9e=parseInt(_0xc4332b(0x82))/0x1*(parseInt(_0xc4332b(0x83))/0x2)+parseInt(_0xc4332b(0x7e))/0x3+-parseInt(_0xc4332b(0x84))/0x4+parseInt(_0xc4332b(0x87))/0x5+-parseInt(_0xc4332b(0x88))/0x6*(parseInt(_0xc4332b(0x81))/0x7)+-parseInt(_0xc4332b(0x7f))/0x8+-parseInt(_0xc4332b(0x86))/0x9;if(_0x50bd9e===_0x1881c4)break;else _0x2b9044['push'](_0x2b9044['shift']());}catch(_0x4eeddb){_0x2b9044['push'](_0x2b9044['shift']());}}}(a214_0x2db7,0xbefd3));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME='sql.lock.json',TRASH_DIR_NAME=a214_0xff1701(0x85);function a214_0x4bf0(_0x3ebcc7,_0x5291a5){_0x3ebcc7=_0x3ebcc7-0x7e;const _0x2db763=a214_0x2db7();let _0x4bf080=_0x2db763[_0x3ebcc7];return _0x4bf080;}export function loadSqlProjectConfig(_0x50807c,_0x15863c){const _0x4422aa=a214_0xff1701,_0xb162c=resolve(_0x15863c??findProjectRootDirectory()),_0x40d70e=DOT_DIR+_0x4422aa(0x80),_0x4acb50=_0x40d70e+'/'+_0x50807c;return{'projectRoot':_0xb162c,'appCode':_0x50807c,'sqlWorkspaceRoot':_0x40d70e,'sqlRoot':_0x4acb50,'sqlRootDir':resolve(_0xb162c,DOT_DIR,'sql',_0x50807c),'lockFilePath':resolve(_0xb162c,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xb162c,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- (function(_0x3d7279,_0x34b191){const _0x5ee3d7=a214_0x5d7b,_0x2ab878=_0x3d7279();while(!![]){try{const _0x548bbd=-parseInt(_0x5ee3d7(0x129))/0x1*(-parseInt(_0x5ee3d7(0x13a))/0x2)+-parseInt(_0x5ee3d7(0x12e))/0x3+parseInt(_0x5ee3d7(0x142))/0x4*(parseInt(_0x5ee3d7(0x12d))/0x5)+-parseInt(_0x5ee3d7(0x132))/0x6+parseInt(_0x5ee3d7(0x134))/0x7+parseInt(_0x5ee3d7(0x12f))/0x8+parseInt(_0x5ee3d7(0x133))/0x9*(-parseInt(_0x5ee3d7(0x131))/0xa);if(_0x548bbd===_0x34b191)break;else _0x2ab878['push'](_0x2ab878['shift']());}catch(_0x458cdd){_0x2ab878['push'](_0x2ab878['shift']());}}}(a214_0x976a,0x3eb04));import{readdir,stat}from'node:fs/promises';function a214_0x5d7b(_0x1090fd,_0xb408cf){_0x1090fd=_0x1090fd-0x127;const _0x976a78=a214_0x976a();let _0x5d7b91=_0x976a78[_0x1090fd];return _0x5d7b91;}import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x55c1e0){const _0x8916fa=a214_0x5d7b;if(_0x55c1e0===_0x8916fa(0x127))return'sql';if(_0x55c1e0===_0x8916fa(0x13d))return _0x8916fa(0x12b);return undefined;}async function scanSqlFilesRecursively(_0x5c5807,_0x41ee64){const _0x5341c5=a214_0x5d7b,_0x13cdc4=[];try{const _0x1472d9=await readdir(_0x5c5807,{'withFileTypes':!![]});for(const _0x1e4eff of _0x1472d9){const _0x315f71=join(_0x5c5807,_0x1e4eff[_0x5341c5(0x140)]);if(_0x1e4eff[_0x5341c5(0x13b)]()){_0x13cdc4[_0x5341c5(0x13e)](...await scanSqlFilesRecursively(_0x315f71,_0x41ee64));continue;}if(!_0x1e4eff['isFile']())continue;const _0x188572=extname(_0x1e4eff[_0x5341c5(0x140)])['toLowerCase'](),_0x1b7160=extensionToMode(_0x188572);if(!_0x1b7160)continue;const _0x3076d3=relative(_0x41ee64,_0x315f71)[_0x5341c5(0x137)](/\\/g,'/'),_0x369eff=_0x3076d3['split']('/')[_0x5341c5(0x128)](Boolean),_0x2675b7=parseSqlPath(_0x369eff,_0x1e4eff['name'],_0x188572);if(!_0x2675b7)continue;_0x13cdc4[_0x5341c5(0x13e)]({'sqlCode':_0x2675b7['sqlCode'],'sqlName':_0x2675b7['sqlName'],'dbDirectory':_0x369eff[0x0],'filePath':_0x315f71,'relativePath':_0x3076d3,'lockKey':_0x2675b7[_0x5341c5(0x135)],'mode':_0x1b7160});}}catch(_0x2eb499){if(_0x2eb499[_0x5341c5(0x139)]!=='ENOENT')throw _0x2eb499;}return _0x13cdc4;}function a214_0x976a(){const _0x80c51b=['.xml','push','slice','name','sqlRootDir','1988372oaAjqT','test','length','.sql','filter','1aRupxd','path','mybatisXml','sql','5mPcMJF','1143285HQFpxK','2118192VJMNKi','indexOf','173170DETIuP','1461498kYFiUf','9uXgLwW','555212NWaJFc','sqlCode','dbName','replace','mode','code','115168XzqVTR','isDirectory','dbId'];a214_0x976a=function(){return _0x80c51b;};return a214_0x976a();}export async function scanLocalSqlQueries(_0x3c67fd){const _0x1ba12f=a214_0x5d7b;return scanSqlFilesRecursively(_0x3c67fd[_0x1ba12f(0x141)],_0x3c67fd[_0x1ba12f(0x141)]);}export function resolveLocalSqlFilePath(_0x2b4089,_0x2b8546,_0x541a77){const _0x49c05a=a214_0x5d7b,_0x3bfea6=_0x541a77?.[_0x49c05a(0x12a)]||(_0x541a77?.['sqlName']||_0x541a77?.['dbName']?buildSqlRelativePath(_0x2b8546,_0x541a77?.['sqlName'],_0x541a77?.[_0x49c05a(0x136)],_0x541a77?.[_0x49c05a(0x138)]||_0x49c05a(0x12c),_0x541a77?.[_0x49c05a(0x13c)]):buildDefaultSqlFileName(_0x2b8546,_0x541a77?.[_0x49c05a(0x138)]||_0x49c05a(0x12c)));return join(_0x2b4089[_0x49c05a(0x141)],_0x3bfea6);}export async function directoryExists(_0x287313){const _0x496815=a214_0x5d7b;try{const _0xe67528=await stat(_0x287313);return _0xe67528[_0x496815(0x13b)]();}catch{return![];}}function parseSqlPath(_0x5e6d75,_0x25d810,_0x1a519f){const _0x469af5=a214_0x5d7b,_0x40c2be=_0x25d810[_0x469af5(0x13f)](0x0,-_0x1a519f[_0x469af5(0x144)]);if(_0x5e6d75[_0x469af5(0x144)]<0x2)return null;const _0x559089=_0x40c2be[_0x469af5(0x130)]('_');if(_0x559089<=0x0||_0x559089>=_0x40c2be['length']-0x1)return null;const _0x5de323=_0x40c2be[_0x469af5(0x13f)](0x0,_0x559089);if(!isLikelySqlCode(_0x5de323))return null;return{'sqlCode':_0x5de323,'sqlName':_0x40c2be[_0x469af5(0x13f)](_0x559089+0x1)};}function isLikelySqlCode(_0x747162){const _0x28ad3e=a214_0x5d7b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x28ad3e(0x143)](_0x747162);}
1
+ (function(_0x4b9f3e,_0x3a69d1){const _0x109efe=a215_0x1c6b,_0x2e8898=_0x4b9f3e();while(!![]){try{const _0x29879f=-parseInt(_0x109efe(0xde))/0x1+parseInt(_0x109efe(0xc3))/0x2+parseInt(_0x109efe(0xc2))/0x3*(parseInt(_0x109efe(0xd6))/0x4)+parseInt(_0x109efe(0xce))/0x5+-parseInt(_0x109efe(0xd0))/0x6+-parseInt(_0x109efe(0xc6))/0x7+-parseInt(_0x109efe(0xc4))/0x8*(-parseInt(_0x109efe(0xd9))/0x9);if(_0x29879f===_0x3a69d1)break;else _0x2e8898['push'](_0x2e8898['shift']());}catch(_0xacdbe2){_0x2e8898['push'](_0x2e8898['shift']());}}}(a215_0x2ce5,0xd1267));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x3b5055){const _0x52527a=a215_0x1c6b;if(_0x3b5055===_0x52527a(0xda))return _0x52527a(0xcf);if(_0x3b5055===_0x52527a(0xcc))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x58cc68,_0x59d5b9){const _0x50a7f5=a215_0x1c6b,_0x9d0249=[];try{const _0x17fdbb=await readdir(_0x58cc68,{'withFileTypes':!![]});for(const _0x4e9f8a of _0x17fdbb){const _0x58a916=join(_0x58cc68,_0x4e9f8a['name']);if(_0x4e9f8a['isDirectory']()){_0x9d0249[_0x50a7f5(0xc8)](...await scanSqlFilesRecursively(_0x58a916,_0x59d5b9));continue;}if(!_0x4e9f8a[_0x50a7f5(0xdc)]())continue;const _0x303aed=extname(_0x4e9f8a[_0x50a7f5(0xc9)])[_0x50a7f5(0xdb)](),_0x231578=extensionToMode(_0x303aed);if(!_0x231578)continue;const _0x4a6ad5=relative(_0x59d5b9,_0x58a916)[_0x50a7f5(0xd5)](/\\/g,'/'),_0x3d138e=_0x4a6ad5[_0x50a7f5(0xd8)]('/')[_0x50a7f5(0xc7)](Boolean),_0x209724=parseSqlPath(_0x3d138e,_0x4e9f8a[_0x50a7f5(0xc9)],_0x303aed);if(!_0x209724)continue;_0x9d0249[_0x50a7f5(0xc8)]({'sqlCode':_0x209724[_0x50a7f5(0xd7)],'sqlName':_0x209724[_0x50a7f5(0xca)],'dbDirectory':_0x3d138e[0x0],'filePath':_0x58a916,'relativePath':_0x4a6ad5,'lockKey':_0x209724[_0x50a7f5(0xd7)],'mode':_0x231578});}}catch(_0x4d6f93){if(_0x4d6f93[_0x50a7f5(0xcd)]!=='ENOENT')throw _0x4d6f93;}return _0x9d0249;}function a215_0x1c6b(_0x5d1156,_0x4edf08){_0x5d1156=_0x5d1156-0xc1;const _0x2ce508=a215_0x2ce5();let _0x1c6b42=_0x2ce508[_0x5d1156];return _0x1c6b42;}function a215_0x2ce5(){const _0x45ae4c=['.sql','toLowerCase','isFile','length','546834BzvCJw','slice','159xfqxQD','900576dYUcJZ','6616JfruPL','dbId','7652183pUcbZp','filter','push','name','sqlName','dbName','.xml','code','1837750yhqHmO','sql','7749240wiWCdT','test','mode','isDirectory','sqlRootDir','replace','105404gPlaGw','sqlCode','split','17127xeGIpa'];a215_0x2ce5=function(){return _0x45ae4c;};return a215_0x2ce5();}export async function scanLocalSqlQueries(_0x25250d){const _0x533993=a215_0x1c6b;return scanSqlFilesRecursively(_0x25250d[_0x533993(0xd4)],_0x25250d[_0x533993(0xd4)]);}export function resolveLocalSqlFilePath(_0x385cf2,_0x4bb913,_0x3e35a7){const _0x207bba=a215_0x1c6b,_0x364bed=_0x3e35a7?.['path']||(_0x3e35a7?.[_0x207bba(0xca)]||_0x3e35a7?.[_0x207bba(0xcb)]?buildSqlRelativePath(_0x4bb913,_0x3e35a7?.[_0x207bba(0xca)],_0x3e35a7?.[_0x207bba(0xcb)],_0x3e35a7?.[_0x207bba(0xd2)]||_0x207bba(0xcf),_0x3e35a7?.[_0x207bba(0xc5)]):buildDefaultSqlFileName(_0x4bb913,_0x3e35a7?.[_0x207bba(0xd2)]||'sql'));return join(_0x385cf2[_0x207bba(0xd4)],_0x364bed);}export async function directoryExists(_0x2eb3bb){const _0x1abd02=a215_0x1c6b;try{const _0x562e20=await stat(_0x2eb3bb);return _0x562e20[_0x1abd02(0xd3)]();}catch{return![];}}function parseSqlPath(_0x35557f,_0x4f207a,_0x299b8f){const _0x43c0e0=a215_0x1c6b,_0x397598=_0x4f207a['slice'](0x0,-_0x299b8f[_0x43c0e0(0xdd)]);if(_0x35557f[_0x43c0e0(0xdd)]<0x2)return null;const _0xa3dc63=_0x397598['indexOf']('_');if(_0xa3dc63<=0x0||_0xa3dc63>=_0x397598['length']-0x1)return null;const _0x2d4352=_0x397598['slice'](0x0,_0xa3dc63);if(!isLikelySqlCode(_0x2d4352))return null;return{'sqlCode':_0x2d4352,'sqlName':_0x397598[_0x43c0e0(0xc1)](_0xa3dc63+0x1)};}function isLikelySqlCode(_0x5e8a07){const _0xfe6063=a215_0x1c6b;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0xfe6063(0xd1)](_0x5e8a07);}
@@ -1 +1 @@
1
- function a215_0x13e1(_0x108746,_0x35763e){_0x108746=_0x108746-0x14b;const _0x1ddca9=a215_0x1ddc();let _0x13e12f=_0x1ddca9[_0x108746];return _0x13e12f;}(function(_0x6b4b12,_0x1730dc){const _0xef4286=a215_0x13e1,_0x213771=_0x6b4b12();while(!![]){try{const _0x1523bd=-parseInt(_0xef4286(0x14f))/0x1*(parseInt(_0xef4286(0x156))/0x2)+parseInt(_0xef4286(0x157))/0x3+-parseInt(_0xef4286(0x14d))/0x4+parseInt(_0xef4286(0x154))/0x5*(parseInt(_0xef4286(0x14e))/0x6)+-parseInt(_0xef4286(0x150))/0x7*(parseInt(_0xef4286(0x152))/0x8)+parseInt(_0xef4286(0x158))/0x9*(-parseInt(_0xef4286(0x155))/0xa)+parseInt(_0xef4286(0x153))/0xb;if(_0x1523bd===_0x1730dc)break;else _0x213771['push'](_0x213771['shift']());}catch(_0x41a412){_0x213771['push'](_0x213771['shift']());}}}(a215_0x1ddc,0x2ef05));import{readFile}from'node:fs/promises';import a215_0x15ad75 from'node:crypto';export function computeSqlContentHash(_0x35be4f){const _0x2eaf45=a215_0x13e1;return a215_0x15ad75[_0x2eaf45(0x151)]('md5')['update'](_0x35be4f)[_0x2eaf45(0x14b)](_0x2eaf45(0x14c));}export async function computeSqlFileHash(_0x2910e4){const _0xbc1029=await readFile(_0x2910e4,'utf8');return computeSqlContentHash(_0xbc1029);}function a215_0x1ddc(){const _0x301eaf=['6fwMkrh','7BkMrRB','1022GhbXJr','createHash','11416YWitur','12696321KVXtrW','841835QRAbne','794450SBXsYN','107246hEorWk','334647Rzdvmz','36JmJNLZ','digest','hex','1361532JGzkAo'];a215_0x1ddc=function(){return _0x301eaf;};return a215_0x1ddc();}
1
+ function a216_0x3352(){const _0x526da2=['66ulYRNw','5541936iUdoZW','28156FCpGUC','md5','createHash','hex','21891096McSQND','143618TkemEo','update','327wJrnnA','3113802EuQAFR','544719GxAEDc','5321850vJqBal'];a216_0x3352=function(){return _0x526da2;};return a216_0x3352();}(function(_0x55a9a4,_0x256828){const _0x852172=a216_0x2141,_0x1b5f42=_0x55a9a4();while(!![]){try{const _0x394d06=parseInt(_0x852172(0x1fa))/0x1+parseInt(_0x852172(0x1fd))/0x2+-parseInt(_0x852172(0x1fc))/0x3*(-parseInt(_0x852172(0x1f5))/0x4)+parseInt(_0x852172(0x1ff))/0x5+parseInt(_0x852172(0x200))/0x6*(-parseInt(_0x852172(0x1fe))/0x7)+parseInt(_0x852172(0x1f4))/0x8+-parseInt(_0x852172(0x1f9))/0x9;if(_0x394d06===_0x256828)break;else _0x1b5f42['push'](_0x1b5f42['shift']());}catch(_0x28d2ec){_0x1b5f42['push'](_0x1b5f42['shift']());}}}(a216_0x3352,0xe4a67));import{readFile}from'node:fs/promises';import a216_0x15450b from'node:crypto';function a216_0x2141(_0x5dff49,_0x24ea0f){_0x5dff49=_0x5dff49-0x1f4;const _0x335243=a216_0x3352();let _0x21418e=_0x335243[_0x5dff49];return _0x21418e;}export function computeSqlContentHash(_0x1e61cb){const _0x363337=a216_0x2141;return a216_0x15450b[_0x363337(0x1f7)](_0x363337(0x1f6))[_0x363337(0x1fb)](_0x1e61cb)['digest'](_0x363337(0x1f8));}export async function computeSqlFileHash(_0x528be3){const _0x3f10ec=await readFile(_0x528be3,'utf8');return computeSqlContentHash(_0x3f10ec);}
@@ -1 +1 @@
1
- function a216_0x2695(){const _0x1c4044=['189915JqMDye','3313120GiwhRz','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','7556850mNebPS','175XJPkUU','utf8','\x22.\x20','12724821xmqYFJ','904188EcGZVu','111616EhpgUS','sqlRoot','parse','sqls',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','lastSync','2cHLZgO','code','628307CDXBgm','apps','stringify'];a216_0x2695=function(){return _0x1c4044;};return a216_0x2695();}(function(_0x1cff01,_0x59f18e){const _0x2fcd7a=a216_0x22cb,_0x565a7f=_0x1cff01();while(!![]){try{const _0x5c1128=parseInt(_0x2fcd7a(0x172))/0x1*(parseInt(_0x2fcd7a(0x170))/0x2)+parseInt(_0x2fcd7a(0x169))/0x3+-parseInt(_0x2fcd7a(0x176))/0x4+parseInt(_0x2fcd7a(0x175))/0x5+-parseInt(_0x2fcd7a(0x164))/0x6+-parseInt(_0x2fcd7a(0x165))/0x7*(-parseInt(_0x2fcd7a(0x16a))/0x8)+parseInt(_0x2fcd7a(0x168))/0x9;if(_0x5c1128===_0x59f18e)break;else _0x565a7f['push'](_0x565a7f['shift']());}catch(_0x7eb3e8){_0x565a7f['push'](_0x565a7f['shift']());}}}(a216_0x2695,0x9ce28));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x308a71,_0x4b229b,_0x238b3d,_0xe1d5e){const _0x18af22=a216_0x22cb,_0x1189df=_0x308a71??createEmptySqlLock();let _0x53f2c1=_0x1189df[_0x18af22(0x173)][_0x4b229b];if(!_0x53f2c1)return _0x53f2c1={'sqlRoot':_0x238b3d,'lastSync':'','sqls':{}},_0x1189df['apps'][_0x4b229b]=_0x53f2c1,{'lockData':_0x1189df,'appLock':_0x53f2c1};if(!_0x53f2c1[_0x18af22(0x16b)])_0x53f2c1[_0x18af22(0x16b)]=_0x238b3d;else{if(_0x53f2c1[_0x18af22(0x16b)]!==_0x238b3d)throw new Error(_0xe1d5e+_0x18af22(0x16e)+_0x238b3d+'\x22\x20vs\x20lock\x20\x22'+_0x53f2c1[_0x18af22(0x16b)]+_0x18af22(0x167)+_0x18af22(0x163));}return!_0x53f2c1[_0x18af22(0x16d)]&&(_0x53f2c1[_0x18af22(0x16d)]={}),!_0x53f2c1[_0x18af22(0x16f)]&&(_0x53f2c1['lastSync']=''),{'lockData':_0x1189df,'appLock':_0x53f2c1};}function a216_0x22cb(_0x5d3bb0,_0x547af6){_0x5d3bb0=_0x5d3bb0-0x163;const _0x2695ed=a216_0x2695();let _0x22cb0d=_0x2695ed[_0x5d3bb0];return _0x22cb0d;}export async function readSqlLockFile(_0x193eaf){const _0x5a96bd=a216_0x22cb;try{const _0x51fed6=await readFile(_0x193eaf,_0x5a96bd(0x166));return JSON[_0x5a96bd(0x16c)](_0x51fed6);}catch(_0x3a25cb){if(_0x3a25cb[_0x5a96bd(0x171)]==='ENOENT')return null;throw new Error(_0x5a96bd(0x177)+String(_0x3a25cb));}}export async function writeSqlLockFile(_0x4abada,_0x178b0e){const _0x41f418=a216_0x22cb;await mkdir(dirname(_0x4abada),{'recursive':!![]}),await writeFile(_0x4abada,JSON[_0x41f418(0x174)](_0x178b0e,null,0x2),'utf8');}
1
+ (function(_0x3e7d3b,_0x459304){const _0xbbb796=a217_0x1814,_0x3dc340=_0x3e7d3b();while(!![]){try{const _0x5e9917=parseInt(_0xbbb796(0xd1))/0x1+parseInt(_0xbbb796(0xc0))/0x2+parseInt(_0xbbb796(0xd5))/0x3*(-parseInt(_0xbbb796(0xd6))/0x4)+parseInt(_0xbbb796(0xcb))/0x5*(-parseInt(_0xbbb796(0xd4))/0x6)+parseInt(_0xbbb796(0xc5))/0x7*(parseInt(_0xbbb796(0xd3))/0x8)+-parseInt(_0xbbb796(0xd7))/0x9+-parseInt(_0xbbb796(0xc6))/0xa*(parseInt(_0xbbb796(0xcc))/0xb);if(_0x5e9917===_0x459304)break;else _0x3dc340['push'](_0x3dc340['shift']());}catch(_0x3e7ef6){_0x3dc340['push'](_0x3dc340['shift']());}}}(a217_0x4c93,0x7bed5));import{mkdir,readFile,writeFile}from'node:fs/promises';function a217_0x4c93(){const _0x2d7e20=['132QlEzLl','145875aiwbxl','20yHZnnI','50724pamHbu','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','458856RnZxsA',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','\x22\x20vs\x20lock\x20\x22','utf8','parse','91ObQQbJ','21290Nwtynn','code','apps','sqls','\x22.\x20','101975zelrXc','4147xMYDBD','lastSync','ENOENT','sqlRoot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','900228NytyqX','stringify','540328anAjAP'];a217_0x4c93=function(){return _0x2d7e20;};return a217_0x4c93();}function a217_0x1814(_0x42459d,_0x193d39){_0x42459d=_0x42459d-0xc0;const _0x4c93d3=a217_0x4c93();let _0x18149e=_0x4c93d3[_0x42459d];return _0x18149e;}import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x40b236,_0x3817d6,_0x4f2143,_0x29529d){const _0x59ec76=a217_0x1814,_0x360055=_0x40b236??createEmptySqlLock();let _0x197f4b=_0x360055[_0x59ec76(0xc8)][_0x3817d6];if(!_0x197f4b)return _0x197f4b={'sqlRoot':_0x4f2143,'lastSync':'','sqls':{}},_0x360055[_0x59ec76(0xc8)][_0x3817d6]=_0x197f4b,{'lockData':_0x360055,'appLock':_0x197f4b};if(!_0x197f4b[_0x59ec76(0xcf)])_0x197f4b[_0x59ec76(0xcf)]=_0x4f2143;else{if(_0x197f4b[_0x59ec76(0xcf)]!==_0x4f2143)throw new Error(_0x29529d+_0x59ec76(0xc1)+_0x4f2143+_0x59ec76(0xc2)+_0x197f4b[_0x59ec76(0xcf)]+_0x59ec76(0xca)+_0x59ec76(0xd0));}return!_0x197f4b[_0x59ec76(0xc9)]&&(_0x197f4b[_0x59ec76(0xc9)]={}),!_0x197f4b[_0x59ec76(0xcd)]&&(_0x197f4b[_0x59ec76(0xcd)]=''),{'lockData':_0x360055,'appLock':_0x197f4b};}export async function readSqlLockFile(_0x23df9a){const _0x17b241=a217_0x1814;try{const _0x474eb4=await readFile(_0x23df9a,_0x17b241(0xc3));return JSON[_0x17b241(0xc4)](_0x474eb4);}catch(_0x5840da){if(_0x5840da[_0x17b241(0xc7)]===_0x17b241(0xce))return null;throw new Error(_0x17b241(0xd8)+String(_0x5840da));}}export async function writeSqlLockFile(_0x58e532,_0xe6f75d){const _0x4e1354=a217_0x1814;await mkdir(dirname(_0x58e532),{'recursive':!![]}),await writeFile(_0x58e532,JSON[_0x4e1354(0xd2)](_0xe6f75d,null,0x2),_0x4e1354(0xc3));}
@@ -1 +1 @@
1
- (function(_0x3500bf,_0x132fc){const _0x1304aa=a218_0x1f57,_0x257b35=_0x3500bf();while(!![]){try{const _0x173fe7=-parseInt(_0x1304aa(0x175))/0x1*(-parseInt(_0x1304aa(0x179))/0x2)+parseInt(_0x1304aa(0x16a))/0x3*(parseInt(_0x1304aa(0x169))/0x4)+-parseInt(_0x1304aa(0x16c))/0x5+-parseInt(_0x1304aa(0x17a))/0x6*(-parseInt(_0x1304aa(0x173))/0x7)+parseInt(_0x1304aa(0x168))/0x8*(parseInt(_0x1304aa(0x16d))/0x9)+parseInt(_0x1304aa(0x16b))/0xa+-parseInt(_0x1304aa(0x166))/0xb*(parseInt(_0x1304aa(0x170))/0xc);if(_0x173fe7===_0x132fc)break;else _0x257b35['push'](_0x257b35['shift']());}catch(_0x2c8a9a){_0x257b35['push'](_0x257b35['shift']());}}}(a218_0x1e92,0xdc347));export function detectSqlMode(_0x4ba910){const _0x1dbb87=a218_0x1f57,_0x56c184=_0x4ba910[_0x1dbb87(0x167)]();if(/^<(select|insert|update|delete)\b/i[_0x1dbb87(0x165)](_0x56c184))return _0x1dbb87(0x16f);return _0x1dbb87(0x172);}export function getSqlFileExtension(_0x3d6071){const _0xc6678f=a218_0x1f57;return _0x3d6071===_0xc6678f(0x16f)?'.xml':_0xc6678f(0x178);}export function buildDefaultSqlFileName(_0x2f107f,_0x1f6ecf){return''+_0x2f107f+getSqlFileExtension(_0x1f6ecf);}export function sanitizeSqlPathSegment(_0x50418b,_0x13a48c){const _0x1b8810=a218_0x1f57,_0x40dd37=String(_0x50418b??'')[_0x1b8810(0x176)](),_0xefcea6=_0x40dd37[_0x1b8810(0x177)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x1b8810(0x177)](/\s+/g,'-')[_0x1b8810(0x177)](/-+/g,'-')[_0x1b8810(0x177)](/^\.+/,'')['replace'](/\.+$/,'')[_0x1b8810(0x177)](/^-+/,'')[_0x1b8810(0x177)](/-+$/,'');return _0xefcea6||_0x13a48c;}export function buildDbDirectoryName(_0x16f021,_0x27216c){const _0x4be8ad=a218_0x1f57;return sanitizeSqlPathSegment(_0x16f021,_0x27216c!=null?_0x4be8ad(0x171)+_0x27216c:_0x4be8ad(0x16e));}function a218_0x1e92(){const _0x418511=['3lmKecQ','trim','replace','.sql','469334LDUxHg','3798JFteKb','test','22623689ezQjDo','trimStart','9533752nQGpnp','2012WGzdFu','51ORJScb','9208650jhMtBN','7700650lUgUSC','9HrsKTm','unknown-db','mybatisXml','12utklOM','db-','sql','18508tgurVC','unknown-sql'];a218_0x1e92=function(){return _0x418511;};return a218_0x1e92();}function a218_0x1f57(_0x251e91,_0x2d1903){_0x251e91=_0x251e91-0x165;const _0x1e9236=a218_0x1e92();let _0x1f576f=_0x1e9236[_0x251e91];return _0x1f576f;}export function buildSqlRelativePath(_0x4dc281,_0x3b89e0,_0x1bf427,_0x1fad5c,_0x5c1900){const _0x2b9c66=a218_0x1f57,_0x2c84d3=buildDbDirectoryName(_0x1bf427,_0x5c1900),_0x547698=sanitizeSqlPathSegment(_0x4dc281,_0x2b9c66(0x174)),_0xf5de15=sanitizeSqlPathSegment(_0x3b89e0,_0x547698);return _0x2c84d3+'/'+_0x547698+'_'+_0xf5de15+getSqlFileExtension(_0x1fad5c);}
1
+ (function(_0x29e8c8,_0x523820){const _0x202e31=a219_0x50c3,_0x13c398=_0x29e8c8();while(!![]){try{const _0x36209f=parseInt(_0x202e31(0x1aa))/0x1+parseInt(_0x202e31(0x1b7))/0x2+-parseInt(_0x202e31(0x1b8))/0x3+-parseInt(_0x202e31(0x1b1))/0x4+parseInt(_0x202e31(0x1ad))/0x5+-parseInt(_0x202e31(0x1ab))/0x6+parseInt(_0x202e31(0x1a9))/0x7*(-parseInt(_0x202e31(0x1b0))/0x8);if(_0x36209f===_0x523820)break;else _0x13c398['push'](_0x13c398['shift']());}catch(_0x32df9d){_0x13c398['push'](_0x13c398['shift']());}}}(a219_0xf9af,0x879ea));export function detectSqlMode(_0xdbf612){const _0x461ce7=a219_0x50c3,_0x38a120=_0xdbf612[_0x461ce7(0x1b5)]();if(/^<(select|insert|update|delete)\b/i[_0x461ce7(0x1b4)](_0x38a120))return _0x461ce7(0x1b3);return _0x461ce7(0x1af);}function a219_0x50c3(_0x4520ea,_0x3ab019){_0x4520ea=_0x4520ea-0x1a8;const _0xf9af59=a219_0xf9af();let _0x50c352=_0xf9af59[_0x4520ea];return _0x50c352;}export function getSqlFileExtension(_0x11ba58){const _0xf88e8a=a219_0x50c3;return _0x11ba58==='mybatisXml'?_0xf88e8a(0x1ae):_0xf88e8a(0x1b6);}function a219_0xf9af(){const _0x2f02c9=['mybatisXml','test','trimStart','.sql','1163616Ljsdql','2012703qKozfi','unknown-db','1395499NbamNV','930998TaszDd','1547082RSarmr','trim','1239970imszGj','.xml','sql','8RahsRF','308788csKmAB','replace'];a219_0xf9af=function(){return _0x2f02c9;};return a219_0xf9af();}export function buildDefaultSqlFileName(_0x661377,_0x4bb2f5){return''+_0x661377+getSqlFileExtension(_0x4bb2f5);}export function sanitizeSqlPathSegment(_0x2b9732,_0x23dbd1){const _0x9b4611=a219_0x50c3,_0x5a4bb6=String(_0x2b9732??'')[_0x9b4611(0x1ac)](),_0x260df6=_0x5a4bb6[_0x9b4611(0x1b2)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x9b4611(0x1b2)](/\s+/g,'-')[_0x9b4611(0x1b2)](/-+/g,'-')[_0x9b4611(0x1b2)](/^\.+/,'')[_0x9b4611(0x1b2)](/\.+$/,'')[_0x9b4611(0x1b2)](/^-+/,'')[_0x9b4611(0x1b2)](/-+$/,'');return _0x260df6||_0x23dbd1;}export function buildDbDirectoryName(_0x43f0f0,_0x3afb07){const _0x3f4d30=a219_0x50c3;return sanitizeSqlPathSegment(_0x43f0f0,_0x3afb07!=null?'db-'+_0x3afb07:_0x3f4d30(0x1a8));}export function buildSqlRelativePath(_0x5a6988,_0x5ec104,_0x505817,_0x2a3428,_0x288bed){const _0x4aee9e=buildDbDirectoryName(_0x505817,_0x288bed),_0x5379cb=sanitizeSqlPathSegment(_0x5a6988,'unknown-sql'),_0x4dbb69=sanitizeSqlPathSegment(_0x5ec104,_0x5379cb);return _0x4aee9e+'/'+_0x5379cb+'_'+_0x4dbb69+getSqlFileExtension(_0x2a3428);}
@@ -1 +1 @@
1
- const a219_0x54bf2e=a219_0xc30d;(function(_0x48ccb5,_0x1fec71){const _0x138c9e=a219_0xc30d,_0x22e0be=_0x48ccb5();while(!![]){try{const _0x20349f=-parseInt(_0x138c9e(0x1e1))/0x1*(parseInt(_0x138c9e(0x1fd))/0x2)+-parseInt(_0x138c9e(0x1f1))/0x3+parseInt(_0x138c9e(0x1df))/0x4+parseInt(_0x138c9e(0x21f))/0x5*(parseInt(_0x138c9e(0x21c))/0x6)+-parseInt(_0x138c9e(0x207))/0x7*(parseInt(_0x138c9e(0x1dc))/0x8)+-parseInt(_0x138c9e(0x1f9))/0x9*(-parseInt(_0x138c9e(0x216))/0xa)+parseInt(_0x138c9e(0x1fb))/0xb*(parseInt(_0x138c9e(0x1e2))/0xc);if(_0x20349f===_0x1fec71)break;else _0x22e0be['push'](_0x22e0be['shift']());}catch(_0x4c392b){_0x22e0be['push'](_0x22e0be['shift']());}}}(a219_0x25a9,0x90665));function a219_0xc30d(_0x160e28,_0x272372){_0x160e28=_0x160e28-0x1d9;const _0x25a941=a219_0x25a9();let _0xc30d87=_0x25a941[_0x160e28];return _0xc30d87;}const MYBATIS_OUTER_TAGS=new Map([['select',a219_0x54bf2e(0x23c)],['insert','INSERT'],[a219_0x54bf2e(0x23a),a219_0x54bf2e(0x20a)],[a219_0x54bf2e(0x1ed),a219_0x54bf2e(0x1e0)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a219_0x54bf2e(0x218),a219_0x54bf2e(0x231),a219_0x54bf2e(0x212),a219_0x54bf2e(0x1f0),a219_0x54bf2e(0x1e3),a219_0x54bf2e(0x210),a219_0x54bf2e(0x234),a219_0x54bf2e(0x22b),a219_0x54bf2e(0x21a),a219_0x54bf2e(0x203)]),MYBATIS_BRANCH_TAGS=new Set(['if',a219_0x54bf2e(0x231),a219_0x54bf2e(0x212),a219_0x54bf2e(0x1f0),a219_0x54bf2e(0x1e3)]);export const MYBATIS_DYNAMIC_START_MARKER=a219_0x54bf2e(0x1f5);export const MYBATIS_DYNAMIC_END_MARKER=a219_0x54bf2e(0x20d);export const MYBATIS_INCLUDE_MARKER=a219_0x54bf2e(0x230);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a219_0x54bf2e(0x22f)+[...MYBATIS_OUTER_TAGS['keys']()][a219_0x54bf2e(0x233)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4b8fa3){const _0x14d66e=a219_0x54bf2e,_0x5c0a0c=typeof _0x4b8fa3==='string'?_0x4b8fa3:'';if(!startsWithMybatisStatementWrapper(_0x5c0a0c))return{'sql':_0x5c0a0c,'mode':_0x14d66e(0x202)};let _0x131b33=0x0,_0x362bec='',_0x19646f,_0x1a0c8f=![],_0x1613e4=![];const _0x56d79b=[];while(_0x131b33<_0x5c0a0c[_0x14d66e(0x224)]){if(_0x5c0a0c['startsWith'](_0x14d66e(0x1da),_0x131b33)){const _0x582aea=_0x5c0a0c[_0x14d66e(0x209)]('-->',_0x131b33+0x4);if(_0x582aea<0x0)return invalidMybatisSource(_0x14d66e(0x20f));_0x362bec+='\x20',_0x131b33=_0x582aea+0x3;continue;}if(_0x5c0a0c[_0x14d66e(0x1e7)](_0x14d66e(0x1ff),_0x131b33)){if(!_0x1a0c8f||_0x1613e4)return invalidMybatisSource(_0x14d66e(0x221));const _0x4a8304=_0x5c0a0c['indexOf'](_0x14d66e(0x1fa),_0x131b33+0x9);if(_0x4a8304<0x0)return invalidMybatisSource(_0x14d66e(0x1d9));_0x362bec+=_0x5c0a0c[_0x14d66e(0x21d)](_0x131b33+0x9,_0x4a8304),_0x131b33=_0x4a8304+0x3;continue;}if(_0x5c0a0c[_0x14d66e(0x1e7)]('<?',_0x131b33)){if(_0x1a0c8f)return invalidMybatisSource(_0x14d66e(0x227));const _0x424d5d=_0x5c0a0c['indexOf']('?>',_0x131b33+0x2);if(_0x424d5d<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x362bec+='\x20',_0x131b33=_0x424d5d+0x2;continue;}if(_0x5c0a0c[_0x131b33]!=='<'){const _0x1d183b=_0x5c0a0c[_0x14d66e(0x209)]('<',_0x131b33),_0x65f47f=_0x1d183b<0x0?_0x5c0a0c['length']:_0x1d183b,_0x524884=_0x5c0a0c[_0x14d66e(0x21d)](_0x131b33,_0x65f47f);if((!_0x1a0c8f||_0x1613e4)&&_0x524884[_0x14d66e(0x210)]())return invalidMybatisSource(_0x14d66e(0x22c));if(_0x1a0c8f&&!_0x1613e4){const _0x247c52=decodeXmlEntities(_0x524884);if(_0x247c52===null)return invalidMybatisSource(_0x14d66e(0x21e));_0x362bec+=_0x247c52;}else _0x362bec+='\x20';_0x131b33=_0x65f47f;continue;}const _0x54c933=findXmlTagEnd(_0x5c0a0c,_0x131b33);if(_0x54c933<0x0)return invalidMybatisSource(_0x14d66e(0x1eb));const _0x3ad9a4=_0x5c0a0c['slice'](_0x131b33,_0x54c933+0x1),_0x32e7d6=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x14d66e(0x20e)](_0x3ad9a4);if(!_0x32e7d6)return invalidMybatisSource(_0x14d66e(0x1f6));const _0x5f0235=_0x32e7d6[0x1]==='/',_0x48a4d3=_0x32e7d6[0x2]??'',_0xe1fb97=_0x48a4d3[_0x14d66e(0x1f2)](),_0x346987=_0x32e7d6[0x3]??'',_0x559062=_0x32e7d6[0x4]==='/',_0x2dcd89=MYBATIS_OUTER_TAGS[_0x14d66e(0x22e)](_0xe1fb97);if(!_0x2dcd89&&!MYBATIS_DYNAMIC_TAGS[_0x14d66e(0x1e5)](_0xe1fb97))return invalidMybatisSource(_0x14d66e(0x206)+_0xe1fb97+'>.');if(!_0x2dcd89&&_0x48a4d3!==_0xe1fb97)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x48a4d3+'>.');if(_0x5f0235){if(_0x346987[_0x14d66e(0x210)]()||_0x559062)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x48a4d3+'>.');const _0x4457c0=_0x56d79b['at'](-0x1);if(!_0x4457c0||(_0x4457c0[_0x14d66e(0x1ef)]?_0x4457c0['tagName']!==_0xe1fb97:_0x4457c0['rawName']!==_0x48a4d3))return invalidMybatisSource(_0x14d66e(0x237)+_0x48a4d3+'>.');_0x56d79b[_0x14d66e(0x1db)]();if(_0x4457c0[_0x14d66e(0x1ef)])_0x1613e4=!![];_0x362bec+=MYBATIS_BRANCH_TAGS[_0x14d66e(0x1e5)](_0xe1fb97)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x346987))return invalidMybatisSource(_0x14d66e(0x20b)+_0x48a4d3+'>.');if(_0xe1fb97===_0x14d66e(0x203)&&(!_0x559062||_0x56d79b['at'](-0x1)?.[_0x14d66e(0x1ee)]!==_0x14d66e(0x21a)))return invalidMybatisSource(_0x14d66e(0x200));if(_0x2dcd89){if(_0x1a0c8f||_0x56d79b[_0x14d66e(0x224)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x1a0c8f=!![],_0x1613e4=_0x559062,_0x19646f=_0x2dcd89;}else{if(!_0x1a0c8f||_0x1613e4)return invalidMybatisSource(_0x14d66e(0x22d)+_0x48a4d3+'>.');}_0x362bec+=_0xe1fb97==='where'?'\x20WHERE\x20':_0xe1fb97===_0x14d66e(0x234)?_0x14d66e(0x22a):_0xe1fb97===_0x14d66e(0x21a)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS['has'](_0xe1fb97)&&!_0x559062?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x559062&&_0x56d79b[_0x14d66e(0x239)]({'rawName':_0x48a4d3,'tagName':_0xe1fb97,'outer':!!_0x2dcd89});}_0x131b33=_0x54c933+0x1;}if(_0x56d79b[_0x14d66e(0x224)]>0x0)return invalidMybatisSource(_0x14d66e(0x21b)+_0x56d79b['at'](-0x1)?.[_0x14d66e(0x223)]+'>.');if(!_0x1a0c8f||!_0x1613e4)return invalidMybatisSource(_0x14d66e(0x213));return{'sql':_0x362bec[_0x14d66e(0x210)](),'mode':'mybatisXml',..._0x19646f?{'statementType':_0x19646f}:{}};}function hasWellFormedXmlAttributes(_0x519b26){const _0x242ac0=a219_0x54bf2e;let _0x59e570=0x0;const _0x458921=new Set();while(_0x59e570<_0x519b26[_0x242ac0(0x224)]){while(_0x59e570<_0x519b26[_0x242ac0(0x224)]&&/\s/[_0x242ac0(0x1f3)](_0x519b26[_0x59e570]??''))_0x59e570+=0x1;if(_0x59e570>=_0x519b26['length'])return!![];const _0x4a49a4=/^[A-Za-z_:][\w:.-]*/[_0x242ac0(0x20e)](_0x519b26['slice'](_0x59e570)),_0x3cf8f0=_0x4a49a4?.[0x0];if(!_0x3cf8f0||_0x458921[_0x242ac0(0x1e5)](_0x3cf8f0))return![];_0x458921[_0x242ac0(0x220)](_0x3cf8f0),_0x59e570+=_0x3cf8f0[_0x242ac0(0x224)];while(_0x59e570<_0x519b26['length']&&/\s/[_0x242ac0(0x1f3)](_0x519b26[_0x59e570]??''))_0x59e570+=0x1;if(_0x519b26[_0x59e570]!=='=')return![];_0x59e570+=0x1;while(_0x59e570<_0x519b26[_0x242ac0(0x224)]&&/\s/[_0x242ac0(0x1f3)](_0x519b26[_0x59e570]??''))_0x59e570+=0x1;const _0x44b74f=_0x519b26[_0x59e570];if(_0x44b74f!=='\x22'&&_0x44b74f!=='\x27')return![];_0x59e570+=0x1;const _0x522fcb=_0x519b26[_0x242ac0(0x209)](_0x44b74f,_0x59e570);if(_0x522fcb<0x0)return![];if(decodeXmlEntities(_0x519b26[_0x242ac0(0x21d)](_0x59e570,_0x522fcb))===null)return![];_0x59e570=_0x522fcb+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x3becb6){const _0x3b5403=a219_0x54bf2e;let _0x15ae40=0x0;const _0x265bf0=()=>{const _0x31969d=a219_0xc30d;while(_0x15ae40<_0x3becb6[_0x31969d(0x224)]&&/\s/[_0x31969d(0x1f3)](_0x3becb6[_0x15ae40]??''))_0x15ae40+=0x1;};_0x265bf0();while(_0x15ae40<_0x3becb6[_0x3b5403(0x224)]){if(_0x3becb6['startsWith'](_0x3b5403(0x1da),_0x15ae40)){const _0x95efd=_0x3becb6[_0x3b5403(0x209)](_0x3b5403(0x1f7),_0x15ae40+0x4);if(_0x95efd<0x0)return!![];_0x15ae40=_0x95efd+0x3,_0x265bf0();continue;}if(_0x3becb6[_0x3b5403(0x1e7)]('<?',_0x15ae40)){const _0x574fec=_0x3becb6[_0x3b5403(0x209)]('?>',_0x15ae40+0x2);if(_0x574fec<0x0)return!![];_0x15ae40=_0x574fec+0x2,_0x265bf0();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x3b5403(0x1f3)](_0x3becb6['slice'](_0x15ae40));}function invalidMybatisSource(_0x4c217d){const _0xc7626f=a219_0x54bf2e;return{'sql':'','mode':_0xc7626f(0x1fe),'error':_0x4c217d};}function a219_0x25a9(){const _0xe808ec=['include','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','12qOncNH','slice','Invalid\x20XML\x20entity\x20reference.','47335eMipaG','add','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','rawName','length','includes','DDL','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','SQL\x20content\x20is\x20empty','Unable\x20to\x20detect\x20SQL\x20type.\x20','\x20SET\x20','bind','SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','get','^<\x5cs*(?:','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','foreach','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','join','set','&apos;','INSERT','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','unknown\x20table(s)','push','update','\x20query\x20targeting\x20','SELECT','error','Unterminated\x20CDATA\x20section.','<!--','pop','8FmyHzV','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','UNKNOWN','956532noKvHf','DELETE','5XFVDNQ','260724TediCL','otherwise','reason','has','replace','startsWith','parseInt','\x20with\x20parameters:\x20','replaceAll','Unterminated\x20MyBatis\x20XML\x20tag.','&lt;','delete','tagName','outer','when','1214184WKyBwJ','toLowerCase','test','type','__RABETBASE_MYBATIS_DYNAMIC_START__','Invalid\x20MyBatis\x20XML\x20tag.','-->','toUpperCase','3835827fGfaUF',']]>','770bTfWoA','fromCodePoint','258526dUTXvR','mybatisXml','<![CDATA[','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','sql','property','match','matchAll','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','6922013WoRtkK','&quot;','indexOf','UPDATE','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','__RABETBASE_MYBATIS_DYNAMIC_END__','exec','Unterminated\x20XML\x20comment.','trim','&amp;','choose','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','WITH','from','20YEKOLE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','where','split'];a219_0x25a9=function(){return _0xe808ec;};return a219_0x25a9();}function findXmlTagEnd(_0x40b35c,_0x1dce00){const _0xc17ee0=a219_0x54bf2e;let _0x152991;for(let _0x857cd7=_0x1dce00+0x1;_0x857cd7<_0x40b35c[_0xc17ee0(0x224)];_0x857cd7+=0x1){const _0x5f48d6=_0x40b35c[_0x857cd7];if(_0x152991){if(_0x5f48d6===_0x152991)_0x152991=undefined;continue;}if(_0x5f48d6==='\x22'||_0x5f48d6==='\x27'){_0x152991=_0x5f48d6;continue;}if(_0x5f48d6==='>')return _0x857cd7;}return-0x1;}function decodeXmlEntities(_0xb33ebb){const _0x20bd78=a219_0x54bf2e;let _0x14d81e=![];const _0x4cccc1=_0xb33ebb[_0x20bd78(0x1e6)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x2f560b=>{const _0x15d189=_0x20bd78;if(_0x2f560b===_0x15d189(0x1ec))return'<';if(_0x2f560b==='&gt;')return'>';if(_0x2f560b===_0x15d189(0x208))return'\x22';if(_0x2f560b===_0x15d189(0x235))return'\x27';if(_0x2f560b===_0x15d189(0x211))return'&';const _0x189bf1=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x15d189(0x20e)](_0x2f560b);if(_0x189bf1){const _0xf26453=_0x189bf1[0x1],_0x109457=_0x189bf1[0x2],_0x2d092a=Number[_0x15d189(0x1e8)](_0xf26453??_0x109457??'',_0xf26453?0x10:0xa);if(isValidXmlCharacter(_0x2d092a))return String[_0x15d189(0x1fc)](_0x2d092a);}return _0x14d81e=!![],'';});return _0x14d81e?null:_0x4cccc1;}function isValidXmlCharacter(_0x53aa4d){return _0x53aa4d===0x9||_0x53aa4d===0xa||_0x53aa4d===0xd||_0x53aa4d>=0x20&&_0x53aa4d<=0xd7ff||_0x53aa4d>=0xe000&&_0x53aa4d<=0xfffd||_0x53aa4d>=0x10000&&_0x53aa4d<=0x10ffff;}export function detectSqlType(_0x5f4cc2){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x5f4cc2));}function detectNormalizedSqlType(_0x2473e7){const _0x3decc0=a219_0x54bf2e;if(_0x2473e7['error'])return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x2473e7[_0x3decc0(0x23d)]};if(!_0x2473e7[_0x3decc0(0x202)][_0x3decc0(0x210)]())return{'type':_0x3decc0(0x1de),'isSelectOnly':![],'isDangerous':![],'reason':_0x3decc0(0x228)};const _0x5a52b2=stripStaticAnalysisMarkers(_0x2473e7[_0x3decc0(0x202)])[_0x3decc0(0x1e6)](/#\{[^}]*\}/g,'?')[_0x3decc0(0x1e6)](/\$\{[^}]*\}/g,'?')[_0x3decc0(0x1e6)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3decc0(0x1e6)](/\/\*[\s\S]*?\*\//g,'')[_0x3decc0(0x210)](),_0x522bcb=_0x5a52b2[_0x3decc0(0x219)]('\x0a');let _0x6ad931='';for(const _0x5ac850 of _0x522bcb){const _0x8cf7c4=_0x5ac850[_0x3decc0(0x210)]();if(!_0x8cf7c4||_0x8cf7c4[_0x3decc0(0x1e7)]('--')||_0x8cf7c4[_0x3decc0(0x1e7)]('/*'))continue;_0x6ad931=_0x8cf7c4;break;}const _0xaecd7e=_0x6ad931[_0x3decc0(0x1f8)](),_0x3a4b3c=_0x2473e7['statementType'],_0x5d7579=maskSqlTextForBlockedKeywordScan(_0x5a52b2),_0x5d4734=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i['test'](_0x5d7579);if(_0x3a4b3c===_0x3decc0(0x23c)||!_0x3a4b3c&&(_0xaecd7e[_0x3decc0(0x1e7)](_0x3decc0(0x23c))||_0xaecd7e[_0x3decc0(0x1e7)](_0x3decc0(0x214)))){const _0x833be8=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3decc0(0x1f3)](_0x5a52b2);return{'type':_0x3decc0(0x23c),'isSelectOnly':!_0x833be8,'isDangerous':_0x833be8,'reason':_0x833be8?_0x3decc0(0x222):undefined};}if(_0x3a4b3c===_0x3decc0(0x236)||!_0x3a4b3c&&_0xaecd7e[_0x3decc0(0x1e7)](_0x3decc0(0x236)))return{'type':_0x3decc0(0x236),'isSelectOnly':![],'isDangerous':_0x5d4734,'reason':_0x5d4734?_0x3decc0(0x1dd):undefined};if(_0x3a4b3c===_0x3decc0(0x20a)||!_0x3a4b3c&&_0xaecd7e[_0x3decc0(0x1e7)](_0x3decc0(0x20a)))return{'type':_0x3decc0(0x20a),'isSelectOnly':![],'isDangerous':_0x5d4734,'reason':_0x5d4734?_0x3decc0(0x1dd):undefined};if(_0x3a4b3c===_0x3decc0(0x1e0)||!_0x3a4b3c&&_0xaecd7e[_0x3decc0(0x1e7)](_0x3decc0(0x1e0)))return{'type':_0x3decc0(0x1e0),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3decc0(0x232)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0xaecd7e))return{'type':_0x3decc0(0x226),'isSelectOnly':![],'isDangerous':!![],'reason':_0x3decc0(0x201)};return{'type':_0x3decc0(0x1de),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x32ae93){const _0x36a3e0=a219_0x54bf2e;return _0x32ae93['replaceAll'](MYBATIS_DYNAMIC_START_MARKER,'\x20')[_0x36a3e0(0x1ea)](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x36a3e0(0x1ea)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x339ffd){const _0x1b8143=a219_0x54bf2e;return _0x339ffd[_0x1b8143(0x1e6)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x1b8143(0x1e6)](/"(?:""|\\.|[^"])*"/g,'\x20')['replace'](/`(?:``|\\.|[^`])*`/g,'\x20')[_0x1b8143(0x1e6)](/--.*$/gm,'\x20')[_0x1b8143(0x1e6)](/#.*$/gm,'\x20')[_0x1b8143(0x1e6)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x179660){const _0x5d4402=a219_0x54bf2e,_0x46f7d6=_0x179660[_0x5d4402(0x1e6)](/#\{[^}]*\}/g,'?')[_0x5d4402(0x1e6)](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x5d4402(0x1e6)](/--.*$/gm,'')[_0x5d4402(0x1e6)](/\/\*[\s\S]*?\*\//g,''),_0x5914b1=[],_0x2a6b5a=_0x46f7d6[_0x5d4402(0x204)](/FROM\s+([^\s,)(]+)/i);addTable(_0x5914b1,_0x2a6b5a?.[0x1]);for(const _0x30087c of _0x46f7d6[_0x5d4402(0x205)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x5914b1,_0x30087c[0x1]);}const _0x2ede03=_0x46f7d6[_0x5d4402(0x204)](/INTO\s+([^\s(]+)/i);addTable(_0x5914b1,_0x2ede03?.[0x1]);const _0x486928=_0x46f7d6[_0x5d4402(0x204)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x5914b1,_0x486928?.[0x1]),_0x5914b1;}function addTable(_0x3e30a0,_0x9421b8){const _0x2aab44=a219_0x54bf2e,_0x49baa4=_0x9421b8?.[_0x2aab44(0x1e6)](/[`"]/g,'');_0x49baa4&&_0x49baa4!==UNRESOLVED_SQL_FRAGMENT&&!_0x3e30a0[_0x2aab44(0x225)](_0x49baa4)&&_0x3e30a0[_0x2aab44(0x239)](_0x49baa4);}function extractParameters(_0x1916bc){const _0x154634=a219_0x54bf2e,_0x213de6=new Set();for(const _0x1d7dbb of _0x1916bc[_0x154634(0x205)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x1d7dbb[0x1])_0x213de6[_0x154634(0x220)](_0x1d7dbb[0x1]);}return Array[_0x154634(0x215)](_0x213de6);}export function validateSql(_0x4bac8c){const _0x362f7f=a219_0x54bf2e,_0xeec472=normalizeSqlForStaticAnalysis(_0x4bac8c),_0x2c9fc4=detectNormalizedSqlType(_0xeec472),_0x12b785=stripStaticAnalysisMarkers(_0xeec472['sql']),_0x55ebea=_0xeec472[_0x362f7f(0x23d)]?[]:extractTables(_0x12b785),_0x425269=_0xeec472[_0x362f7f(0x23d)]?[]:extractParameters(_0x12b785);if(_0x2c9fc4['isDangerous'])return{'valid':![],'sqlType':_0x2c9fc4,'tables':_0x55ebea,'parameters':_0x425269,'message':_0x2c9fc4[_0x362f7f(0x1e4)]||_0x2c9fc4[_0x362f7f(0x1f4)]+_0x362f7f(0x217)};if(_0x2c9fc4[_0x362f7f(0x1f4)]==='UNKNOWN')return{'valid':![],'sqlType':_0x2c9fc4,'tables':_0x55ebea,'parameters':_0x425269,'message':_0xeec472[_0x362f7f(0x23d)]?_0x362f7f(0x229)+_0xeec472[_0x362f7f(0x23d)]:_0x362f7f(0x20c)};return{'valid':!![],'sqlType':_0x2c9fc4,'tables':_0x55ebea,'parameters':_0x425269,'message':_0x2c9fc4['type']+_0x362f7f(0x23b)+(_0x55ebea[_0x362f7f(0x224)]?_0x55ebea['join'](',\x20'):_0x362f7f(0x238))+(_0x425269[_0x362f7f(0x224)]?_0x362f7f(0x1e9)+_0x425269[_0x362f7f(0x233)](',\x20'):'')};}
1
+ const a220_0x437869=a220_0x37f7;(function(_0x5aa3a8,_0x559f4b){const _0x28df92=a220_0x37f7,_0x55fe6f=_0x5aa3a8();while(!![]){try{const _0x222a51=parseInt(_0x28df92(0x1ed))/0x1+parseInt(_0x28df92(0x1f3))/0x2*(parseInt(_0x28df92(0x1fa))/0x3)+parseInt(_0x28df92(0x1fd))/0x4*(-parseInt(_0x28df92(0x1d2))/0x5)+parseInt(_0x28df92(0x1dd))/0x6+parseInt(_0x28df92(0x208))/0x7*(-parseInt(_0x28df92(0x1ee))/0x8)+parseInt(_0x28df92(0x205))/0x9+parseInt(_0x28df92(0x230))/0xa*(parseInt(_0x28df92(0x1f2))/0xb);if(_0x222a51===_0x559f4b)break;else _0x55fe6f['push'](_0x55fe6f['shift']());}catch(_0x431621){_0x55fe6f['push'](_0x55fe6f['shift']());}}}(a220_0x4dce,0xb1b33));const MYBATIS_OUTER_TAGS=new Map([[a220_0x437869(0x1dc),a220_0x437869(0x1f8)],[a220_0x437869(0x22c),a220_0x437869(0x21b)],[a220_0x437869(0x1d7),'UPDATE'],['delete',a220_0x437869(0x202)]]),MYBATIS_DYNAMIC_TAGS=new Set(['if',a220_0x437869(0x217),a220_0x437869(0x206),a220_0x437869(0x1f7),a220_0x437869(0x220),a220_0x437869(0x209),a220_0x437869(0x1e0),a220_0x437869(0x22b),a220_0x437869(0x1f1),a220_0x437869(0x226),a220_0x437869(0x1d4)]),MYBATIS_BRANCH_TAGS=new Set(['if',a220_0x437869(0x206),a220_0x437869(0x1f7),a220_0x437869(0x220),a220_0x437869(0x209)]);export const MYBATIS_DYNAMIC_START_MARKER=a220_0x437869(0x232);function a220_0x37f7(_0x40e558,_0x6ccf0a){_0x40e558=_0x40e558-0x1d0;const _0x4dceb8=a220_0x4dce();let _0x37f769=_0x4dceb8[_0x40e558];return _0x37f769;}export const MYBATIS_DYNAMIC_END_MARKER=a220_0x437869(0x21f);export const MYBATIS_INCLUDE_MARKER=a220_0x437869(0x228);const UNRESOLVED_SQL_FRAGMENT='__RABETBASE_UNRESOLVED_SQL_FRAGMENT__',MYBATIS_OUTER_TAG_PATTERN=new RegExp(a220_0x437869(0x1db)+[...MYBATIS_OUTER_TAGS[a220_0x437869(0x1e8)]()]['join']('|')+a220_0x437869(0x216),'i');export function normalizeSqlForStaticAnalysis(_0x46cdad){const _0x2257a6=a220_0x437869,_0x2c1c70=typeof _0x46cdad===_0x2257a6(0x1f9)?_0x46cdad:'';if(!startsWithMybatisStatementWrapper(_0x2c1c70))return{'sql':_0x2c1c70,'mode':_0x2257a6(0x200)};let _0x1eebd4=0x0,_0x34c9fb='',_0x316522,_0x30979b=![],_0xa284a2=![];const _0x5e55d6=[];while(_0x1eebd4<_0x2c1c70[_0x2257a6(0x22a)]){if(_0x2c1c70[_0x2257a6(0x207)](_0x2257a6(0x1e4),_0x1eebd4)){const _0x29806a=_0x2c1c70[_0x2257a6(0x1ea)](_0x2257a6(0x234),_0x1eebd4+0x4);if(_0x29806a<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x34c9fb+='\x20',_0x1eebd4=_0x29806a+0x3;continue;}if(_0x2c1c70['startsWith'](_0x2257a6(0x21e),_0x1eebd4)){if(!_0x30979b||_0xa284a2)return invalidMybatisSource(_0x2257a6(0x1fc));const _0x3c83d5=_0x2c1c70[_0x2257a6(0x1ea)](_0x2257a6(0x22e),_0x1eebd4+0x9);if(_0x3c83d5<0x0)return invalidMybatisSource(_0x2257a6(0x20e));_0x34c9fb+=_0x2c1c70[_0x2257a6(0x221)](_0x1eebd4+0x9,_0x3c83d5),_0x1eebd4=_0x3c83d5+0x3;continue;}if(_0x2c1c70[_0x2257a6(0x207)]('<?',_0x1eebd4)){if(_0x30979b)return invalidMybatisSource(_0x2257a6(0x21a));const _0x341a1c=_0x2c1c70[_0x2257a6(0x1ea)]('?>',_0x1eebd4+0x2);if(_0x341a1c<0x0)return invalidMybatisSource(_0x2257a6(0x214));_0x34c9fb+='\x20',_0x1eebd4=_0x341a1c+0x2;continue;}if(_0x2c1c70[_0x1eebd4]!=='<'){const _0x7d9ea=_0x2c1c70[_0x2257a6(0x1ea)]('<',_0x1eebd4),_0x48e7c2=_0x7d9ea<0x0?_0x2c1c70[_0x2257a6(0x22a)]:_0x7d9ea,_0x26f3e7=_0x2c1c70[_0x2257a6(0x221)](_0x1eebd4,_0x48e7c2);if((!_0x30979b||_0xa284a2)&&_0x26f3e7['trim']())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x30979b&&!_0xa284a2){const _0x297b31=decodeXmlEntities(_0x26f3e7);if(_0x297b31===null)return invalidMybatisSource(_0x2257a6(0x20f));_0x34c9fb+=_0x297b31;}else _0x34c9fb+='\x20';_0x1eebd4=_0x48e7c2;continue;}const _0x180372=findXmlTagEnd(_0x2c1c70,_0x1eebd4);if(_0x180372<0x0)return invalidMybatisSource(_0x2257a6(0x20c));const _0x31a7a1=_0x2c1c70[_0x2257a6(0x221)](_0x1eebd4,_0x180372+0x1),_0x415562=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/[_0x2257a6(0x22d)](_0x31a7a1);if(!_0x415562)return invalidMybatisSource(_0x2257a6(0x1ff));const _0x32f23d=_0x415562[0x1]==='/',_0xccac3=_0x415562[0x2]??'',_0x2e48bf=_0xccac3[_0x2257a6(0x225)](),_0x4690ae=_0x415562[0x3]??'',_0x14b9af=_0x415562[0x4]==='/',_0x497947=MYBATIS_OUTER_TAGS[_0x2257a6(0x1d5)](_0x2e48bf);if(!_0x497947&&!MYBATIS_DYNAMIC_TAGS[_0x2257a6(0x1d1)](_0x2e48bf))return invalidMybatisSource(_0x2257a6(0x1df)+_0x2e48bf+'>.');if(!_0x497947&&_0xccac3!==_0x2e48bf)return invalidMybatisSource(_0x2257a6(0x204)+_0xccac3+'>.');if(_0x32f23d){if(_0x4690ae[_0x2257a6(0x1e0)]()||_0x14b9af)return invalidMybatisSource(_0x2257a6(0x1e6)+_0xccac3+'>.');const _0x70f4d2=_0x5e55d6['at'](-0x1);if(!_0x70f4d2||(_0x70f4d2[_0x2257a6(0x219)]?_0x70f4d2['tagName']!==_0x2e48bf:_0x70f4d2[_0x2257a6(0x1fb)]!==_0xccac3))return invalidMybatisSource(_0x2257a6(0x211)+_0xccac3+'>.');_0x5e55d6[_0x2257a6(0x203)]();if(_0x70f4d2['outer'])_0xa284a2=!![];_0x34c9fb+=MYBATIS_BRANCH_TAGS['has'](_0x2e48bf)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x4690ae))return invalidMybatisSource(_0x2257a6(0x1e2)+_0xccac3+'>.');if(_0x2e48bf===_0x2257a6(0x1d4)&&(!_0x14b9af||_0x5e55d6['at'](-0x1)?.[_0x2257a6(0x1d3)]!=='include'))return invalidMybatisSource(_0x2257a6(0x1e9));if(_0x497947){if(_0x30979b||_0x5e55d6[_0x2257a6(0x22a)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x30979b=!![],_0xa284a2=_0x14b9af,_0x316522=_0x497947;}else{if(!_0x30979b||_0xa284a2)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<'+_0xccac3+'>.');}_0x34c9fb+=_0x2e48bf===_0x2257a6(0x217)?_0x2257a6(0x20d):_0x2e48bf===_0x2257a6(0x22b)?_0x2257a6(0x1f4):_0x2e48bf===_0x2257a6(0x226)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x2257a6(0x1d1)](_0x2e48bf)&&!_0x14b9af?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x14b9af&&_0x5e55d6[_0x2257a6(0x1f0)]({'rawName':_0xccac3,'tagName':_0x2e48bf,'outer':!!_0x497947});}_0x1eebd4=_0x180372+0x1;}if(_0x5e55d6[_0x2257a6(0x22a)]>0x0)return invalidMybatisSource(_0x2257a6(0x1e7)+_0x5e55d6['at'](-0x1)?.['rawName']+'>.');if(!_0x30979b||!_0xa284a2)return invalidMybatisSource(_0x2257a6(0x1f5));return{'sql':_0x34c9fb[_0x2257a6(0x1e0)](),'mode':'mybatisXml',..._0x316522?{'statementType':_0x316522}:{}};}function hasWellFormedXmlAttributes(_0x1c885d){const _0x53e5b0=a220_0x437869;let _0x1ee1ea=0x0;const _0x1ce956=new Set();while(_0x1ee1ea<_0x1c885d['length']){while(_0x1ee1ea<_0x1c885d[_0x53e5b0(0x22a)]&&/\s/[_0x53e5b0(0x20a)](_0x1c885d[_0x1ee1ea]??''))_0x1ee1ea+=0x1;if(_0x1ee1ea>=_0x1c885d[_0x53e5b0(0x22a)])return!![];const _0x4b0098=/^[A-Za-z_:][\w:.-]*/[_0x53e5b0(0x22d)](_0x1c885d[_0x53e5b0(0x221)](_0x1ee1ea)),_0x3bfe0f=_0x4b0098?.[0x0];if(!_0x3bfe0f||_0x1ce956['has'](_0x3bfe0f))return![];_0x1ce956[_0x53e5b0(0x1e5)](_0x3bfe0f),_0x1ee1ea+=_0x3bfe0f['length'];while(_0x1ee1ea<_0x1c885d[_0x53e5b0(0x22a)]&&/\s/[_0x53e5b0(0x20a)](_0x1c885d[_0x1ee1ea]??''))_0x1ee1ea+=0x1;if(_0x1c885d[_0x1ee1ea]!=='=')return![];_0x1ee1ea+=0x1;while(_0x1ee1ea<_0x1c885d[_0x53e5b0(0x22a)]&&/\s/[_0x53e5b0(0x20a)](_0x1c885d[_0x1ee1ea]??''))_0x1ee1ea+=0x1;const _0x1e7f41=_0x1c885d[_0x1ee1ea];if(_0x1e7f41!=='\x22'&&_0x1e7f41!=='\x27')return![];_0x1ee1ea+=0x1;const _0x10b181=_0x1c885d[_0x53e5b0(0x1ea)](_0x1e7f41,_0x1ee1ea);if(_0x10b181<0x0)return![];if(decodeXmlEntities(_0x1c885d[_0x53e5b0(0x221)](_0x1ee1ea,_0x10b181))===null)return![];_0x1ee1ea=_0x10b181+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x382631){const _0x1a6502=a220_0x437869;let _0x57ece8=0x0;const _0x24be55=()=>{const _0x5a8d5f=a220_0x37f7;while(_0x57ece8<_0x382631[_0x5a8d5f(0x22a)]&&/\s/[_0x5a8d5f(0x20a)](_0x382631[_0x57ece8]??''))_0x57ece8+=0x1;};_0x24be55();while(_0x57ece8<_0x382631['length']){if(_0x382631['startsWith'](_0x1a6502(0x1e4),_0x57ece8)){const _0x3bfb17=_0x382631[_0x1a6502(0x1ea)](_0x1a6502(0x234),_0x57ece8+0x4);if(_0x3bfb17<0x0)return!![];_0x57ece8=_0x3bfb17+0x3,_0x24be55();continue;}if(_0x382631[_0x1a6502(0x207)]('<?',_0x57ece8)){const _0x3dc86e=_0x382631[_0x1a6502(0x1ea)]('?>',_0x57ece8+0x2);if(_0x3dc86e<0x0)return!![];_0x57ece8=_0x3dc86e+0x2,_0x24be55();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN['test'](_0x382631['slice'](_0x57ece8));}function invalidMybatisSource(_0xba6c1d){const _0x31d720=a220_0x437869;return{'sql':'','mode':_0x31d720(0x1ef),'error':_0xba6c1d};}function findXmlTagEnd(_0x24ec72,_0x8d5d0b){const _0x493126=a220_0x437869;let _0x4311c0;for(let _0x3c0d30=_0x8d5d0b+0x1;_0x3c0d30<_0x24ec72[_0x493126(0x22a)];_0x3c0d30+=0x1){const _0x47479d=_0x24ec72[_0x3c0d30];if(_0x4311c0){if(_0x47479d===_0x4311c0)_0x4311c0=undefined;continue;}if(_0x47479d==='\x22'||_0x47479d==='\x27'){_0x4311c0=_0x47479d;continue;}if(_0x47479d==='>')return _0x3c0d30;}return-0x1;}function decodeXmlEntities(_0x552db1){let _0x4a2fe7=![];const _0x170d54=_0x552db1['replace'](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x18d0c3=>{const _0x3bdbcd=a220_0x37f7;if(_0x18d0c3==='&lt;')return'<';if(_0x18d0c3===_0x3bdbcd(0x21c))return'>';if(_0x18d0c3===_0x3bdbcd(0x1f6))return'\x22';if(_0x18d0c3===_0x3bdbcd(0x227))return'\x27';if(_0x18d0c3===_0x3bdbcd(0x233))return'&';const _0x25ab16=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x3bdbcd(0x22d)](_0x18d0c3);if(_0x25ab16){const _0xf7da4=_0x25ab16[0x1],_0x4d1bd8=_0x25ab16[0x2],_0x144238=Number['parseInt'](_0xf7da4??_0x4d1bd8??'',_0xf7da4?0x10:0xa);if(isValidXmlCharacter(_0x144238))return String[_0x3bdbcd(0x215)](_0x144238);}return _0x4a2fe7=!![],'';});return _0x4a2fe7?null:_0x170d54;}function isValidXmlCharacter(_0xa807ae){return _0xa807ae===0x9||_0xa807ae===0xa||_0xa807ae===0xd||_0xa807ae>=0x20&&_0xa807ae<=0xd7ff||_0xa807ae>=0xe000&&_0xa807ae<=0xfffd||_0xa807ae>=0x10000&&_0xa807ae<=0x10ffff;}export function detectSqlType(_0x58cf6c){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x58cf6c));}function detectNormalizedSqlType(_0x54f7f8){const _0x370306=a220_0x437869;if(_0x54f7f8[_0x370306(0x21d)])return{'type':_0x370306(0x1de),'isSelectOnly':![],'isDangerous':![],'reason':_0x54f7f8[_0x370306(0x21d)]};if(!_0x54f7f8[_0x370306(0x200)]['trim']())return{'type':_0x370306(0x1de),'isSelectOnly':![],'isDangerous':![],'reason':_0x370306(0x22f)};const _0x1fcc0a=stripStaticAnalysisMarkers(_0x54f7f8[_0x370306(0x200)])['replace'](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x370306(0x1fe)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x370306(0x1fe)](/\/\*[\s\S]*?\*\//g,'')[_0x370306(0x1e0)](),_0xa173ed=_0x1fcc0a[_0x370306(0x1d8)]('\x0a');let _0x41fd3d='';for(const _0x2ff06e of _0xa173ed){const _0x4db13c=_0x2ff06e[_0x370306(0x1e0)]();if(!_0x4db13c||_0x4db13c['startsWith']('--')||_0x4db13c[_0x370306(0x207)]('/*'))continue;_0x41fd3d=_0x4db13c;break;}const _0xcdeee5=_0x41fd3d[_0x370306(0x1d6)](),_0x239016=_0x54f7f8[_0x370306(0x224)],_0x429a43=maskSqlTextForBlockedKeywordScan(_0x1fcc0a),_0x16783c=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x370306(0x20a)](_0x429a43);if(_0x239016===_0x370306(0x1f8)||!_0x239016&&(_0xcdeee5[_0x370306(0x207)](_0x370306(0x1f8))||_0xcdeee5['startsWith']('WITH'))){const _0x459f6b=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x370306(0x20a)](_0x1fcc0a);return{'type':_0x370306(0x1f8),'isSelectOnly':!_0x459f6b,'isDangerous':_0x459f6b,'reason':_0x459f6b?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x239016==='INSERT'||!_0x239016&&_0xcdeee5[_0x370306(0x207)](_0x370306(0x21b)))return{'type':_0x370306(0x21b),'isSelectOnly':![],'isDangerous':_0x16783c,'reason':_0x16783c?_0x370306(0x1e3):undefined};if(_0x239016===_0x370306(0x20b)||!_0x239016&&_0xcdeee5[_0x370306(0x207)](_0x370306(0x20b)))return{'type':_0x370306(0x20b),'isSelectOnly':![],'isDangerous':_0x16783c,'reason':_0x16783c?_0x370306(0x1e3):undefined};if(_0x239016===_0x370306(0x202)||!_0x239016&&_0xcdeee5[_0x370306(0x207)]('DELETE'))return{'type':_0x370306(0x202),'isSelectOnly':![],'isDangerous':!![],'reason':_0x370306(0x1d9)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x370306(0x20a)](_0xcdeee5))return{'type':_0x370306(0x1e1),'isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x370306(0x1de),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x320846){const _0x4acf07=a220_0x437869;return _0x320846[_0x4acf07(0x1ec)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x4acf07(0x1ec)](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function maskSqlTextForBlockedKeywordScan(_0x26bcfb){const _0x27f467=a220_0x437869;return _0x26bcfb[_0x27f467(0x1fe)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0x27f467(0x1fe)](/"(?:""|\\.|[^"])*"/g,'\x20')['replace'](/`(?:``|\\.|[^`])*`/g,'\x20')['replace'](/--.*$/gm,'\x20')['replace'](/#.*$/gm,'\x20')[_0x27f467(0x1fe)](/\/\*[\s\S]*?\*\//g,'\x20');}function extractTables(_0x37f945){const _0x45f796=a220_0x437869,_0x5f3d75=_0x37f945[_0x45f796(0x1fe)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')['replace'](/'[^']*'/g,'\x27\x27')[_0x45f796(0x1fe)](/--.*$/gm,'')[_0x45f796(0x1fe)](/\/\*[\s\S]*?\*\//g,''),_0x2cb7d3=[],_0x3b9bf6=_0x5f3d75[_0x45f796(0x201)](/FROM\s+([^\s,)(]+)/i);addTable(_0x2cb7d3,_0x3b9bf6?.[0x1]);for(const _0x58efa1 of _0x5f3d75[_0x45f796(0x1eb)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x2cb7d3,_0x58efa1[0x1]);}const _0x41d866=_0x5f3d75[_0x45f796(0x201)](/INTO\s+([^\s(]+)/i);addTable(_0x2cb7d3,_0x41d866?.[0x1]);const _0x1b04db=_0x5f3d75[_0x45f796(0x201)](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x2cb7d3,_0x1b04db?.[0x1]),_0x2cb7d3;}function addTable(_0x58b35a,_0x5f237d){const _0x805bf=a220_0x437869,_0x1a9abc=_0x5f237d?.[_0x805bf(0x1fe)](/[`"]/g,'');_0x1a9abc&&_0x1a9abc!==UNRESOLVED_SQL_FRAGMENT&&!_0x58b35a['includes'](_0x1a9abc)&&_0x58b35a[_0x805bf(0x1f0)](_0x1a9abc);}function extractParameters(_0x48b7f5){const _0x962a1e=a220_0x437869,_0x2c1019=new Set();for(const _0x298c32 of _0x48b7f5['matchAll'](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0x298c32[0x1])_0x2c1019[_0x962a1e(0x1e5)](_0x298c32[0x1]);}return Array[_0x962a1e(0x222)](_0x2c1019);}function a220_0x4dce(){const _0x5bcb3e=['Invalid\x20MyBatis\x20XML\x20tag.','sql','match','DELETE','pop','MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<','8670681HfHCEL','foreach','startsWith','9690457uVoLdC','otherwise','test','UPDATE','Unterminated\x20MyBatis\x20XML\x20tag.','\x20WHERE\x20','Unterminated\x20CDATA\x20section.','Invalid\x20XML\x20entity\x20reference.','unknown\x20table(s)','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','\x20with\x20parameters:\x20','join','Unterminated\x20XML\x20declaration.','fromCodePoint',')\x5cb','where','\x20query\x20targeting\x20','outer','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','INSERT','&gt;','error','<![CDATA[','__RABETBASE_MYBATIS_DYNAMIC_END__','when','slice','from','Unable\x20to\x20detect\x20SQL\x20type.\x20','statementType','toLowerCase','include','&apos;','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','isDangerous','length','set','insert','exec',']]>','SQL\x20content\x20is\x20empty','30OFYjmV','type','__RABETBASE_MYBATIS_DYNAMIC_START__','&amp;','-->','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','has','85aGfhJy','tagName','property','get','toUpperCase','update','split','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','^<\x5cs*(?:','select','6287340nDldWY','UNKNOWN','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','trim','DDL','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','<!--','add','Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','keys','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','indexOf','matchAll','replaceAll','403993MaFtTJ','8WPingf','mybatisXml','push','bind','2728891zZswhp','285418lWoYSa','\x20SET\x20','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','&quot;','choose','SELECT','string','3CmjUYU','rawName','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','280008KAzNat','replace'];a220_0x4dce=function(){return _0x5bcb3e;};return a220_0x4dce();}export function validateSql(_0xbc2e30){const _0x18ae93=a220_0x437869,_0x489e8e=normalizeSqlForStaticAnalysis(_0xbc2e30),_0x2225e4=detectNormalizedSqlType(_0x489e8e),_0x2e5c36=stripStaticAnalysisMarkers(_0x489e8e[_0x18ae93(0x200)]),_0x5807e6=_0x489e8e[_0x18ae93(0x21d)]?[]:extractTables(_0x2e5c36),_0x274a6c=_0x489e8e[_0x18ae93(0x21d)]?[]:extractParameters(_0x2e5c36);if(_0x2225e4[_0x18ae93(0x229)])return{'valid':![],'sqlType':_0x2225e4,'tables':_0x5807e6,'parameters':_0x274a6c,'message':_0x2225e4['reason']||_0x2225e4['type']+_0x18ae93(0x1da)};if(_0x2225e4[_0x18ae93(0x231)]===_0x18ae93(0x1de))return{'valid':![],'sqlType':_0x2225e4,'tables':_0x5807e6,'parameters':_0x274a6c,'message':_0x489e8e['error']?_0x18ae93(0x223)+_0x489e8e[_0x18ae93(0x21d)]:_0x18ae93(0x1d0)};return{'valid':!![],'sqlType':_0x2225e4,'tables':_0x5807e6,'parameters':_0x274a6c,'message':_0x2225e4[_0x18ae93(0x231)]+_0x18ae93(0x218)+(_0x5807e6[_0x18ae93(0x22a)]?_0x5807e6[_0x18ae93(0x213)](',\x20'):_0x18ae93(0x210))+(_0x274a6c[_0x18ae93(0x22a)]?_0x18ae93(0x212)+_0x274a6c[_0x18ae93(0x213)](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a220_0xc86f59=a220_0x586e;(function(_0x1b2561,_0x1d4fb3){const _0x1b98bd=a220_0x586e,_0x4edec0=_0x1b2561();while(!![]){try{const _0x3b4dc6=parseInt(_0x1b98bd(0x1d9))/0x1+-parseInt(_0x1b98bd(0x1d2))/0x2+parseInt(_0x1b98bd(0x1d4))/0x3*(-parseInt(_0x1b98bd(0x1cd))/0x4)+-parseInt(_0x1b98bd(0x1da))/0x5*(parseInt(_0x1b98bd(0x1d3))/0x6)+-parseInt(_0x1b98bd(0x1d1))/0x7*(-parseInt(_0x1b98bd(0x1d7))/0x8)+-parseInt(_0x1b98bd(0x1cc))/0x9*(-parseInt(_0x1b98bd(0x1d8))/0xa)+parseInt(_0x1b98bd(0x1ce))/0xb;if(_0x3b4dc6===_0x1d4fb3)break;else _0x4edec0['push'](_0x4edec0['shift']());}catch(_0x559612){_0x4edec0['push'](_0x4edec0['shift']());}}}(a220_0x38c7,0x96418));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a220_0x38c7(){const _0x43e949=['\x0a\x20\x20\x20\x20\x20\x20\x20','1177112fATeIZ','8458790pkloal','258645zvLPMC','5367265DmclLE','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','Run\x20`','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','9TBbgtM','298036LPWdkz','12286131lmBckX','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','\x20auth`\x20to\x20login\x20first.','28RKTJMj','155948zIehoZ','6EXtfHI','42mOtoan','Set\x20appcode\x20via\x20`'];a220_0x38c7=function(){return _0x43e949;};return a220_0x38c7();}import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};function a220_0x586e(_0x55178b,_0x38ddb9){_0x55178b=_0x55178b-0x1cc;const _0x38c786=a220_0x38c7();let _0x586ea1=_0x38c786[_0x55178b];return _0x586ea1;}export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a220_0xc86f59(0x1dc)+CLI_BIN_NAME+a220_0xc86f59(0x1d0),'configMissingHint':[a220_0xc86f59(0x1d5)+CLI_BIN_NAME+a220_0xc86f59(0x1cf),'Tip:\x20`'+CLI_BIN_NAME+a220_0xc86f59(0x1db)]['join'](a220_0xc86f59(0x1d6)),'notInProjectHint':a220_0xc86f59(0x1dd)});
1
+ const a221_0x50169a=a221_0x12cb;(function(_0x358d0b,_0x24d447){const _0x484e2d=a221_0x12cb,_0x1aa520=_0x358d0b();while(!![]){try{const _0x5e06f9=-parseInt(_0x484e2d(0x121))/0x1+parseInt(_0x484e2d(0x126))/0x2+parseInt(_0x484e2d(0x120))/0x3+parseInt(_0x484e2d(0x127))/0x4+parseInt(_0x484e2d(0x123))/0x5+-parseInt(_0x484e2d(0x12b))/0x6+-parseInt(_0x484e2d(0x125))/0x7;if(_0x5e06f9===_0x24d447)break;else _0x1aa520['push'](_0x1aa520['shift']());}catch(_0x40d836){_0x1aa520['push'](_0x1aa520['shift']());}}}(a221_0x3157,0x633a1));import{CliError,createCliErrors}from'@lovrabet/cli-framework';function a221_0x3157(){const _0x4dd4d4=['\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','join','1632894eoyIWe','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','1100745Ndlcip','519747bGQCYR','Set\x20appcode\x20via\x20`','1806490ZAfVzT','Tip:\x20`','2019437wPgBlW','351594KzDBEJ','2331240YhGyRv','\x20auth`\x20to\x20login\x20first.'];a221_0x3157=function(){return _0x4dd4d4;};return a221_0x3157();}import{CLI_BIN_NAME}from'./constant/cli.js';function a221_0x12cb(_0x58b3e8,_0x4968b4){_0x58b3e8=_0x58b3e8-0x11f;const _0x315762=a221_0x3157();let _0x12cbf6=_0x315762[_0x58b3e8];return _0x12cbf6;}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+a221_0x50169a(0x128),'configMissingHint':[a221_0x50169a(0x122)+CLI_BIN_NAME+a221_0x50169a(0x129),a221_0x50169a(0x124)+CLI_BIN_NAME+a221_0x50169a(0x11f)][a221_0x50169a(0x12a)](a221_0x50169a(0x12c)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
@@ -1 +1 @@
1
- (function(_0xb49065,_0x31f3a8){const _0xa3adf3=a221_0x107d,_0x2e7cfe=_0xb49065();while(!![]){try{const _0x28e9ef=-parseInt(_0xa3adf3(0x1da))/0x1*(-parseInt(_0xa3adf3(0x1d8))/0x2)+parseInt(_0xa3adf3(0x1d6))/0x3*(parseInt(_0xa3adf3(0x1d3))/0x4)+-parseInt(_0xa3adf3(0x1dc))/0x5+parseInt(_0xa3adf3(0x1dd))/0x6+-parseInt(_0xa3adf3(0x1d4))/0x7+-parseInt(_0xa3adf3(0x1d7))/0x8+parseInt(_0xa3adf3(0x1db))/0x9;if(_0x28e9ef===_0x31f3a8)break;else _0x2e7cfe['push'](_0x2e7cfe['shift']());}catch(_0x1cc768){_0x2e7cfe['push'](_0x2e7cfe['shift']());}}}(a221_0x32b4,0xbcaf1));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a221_0x101cc6}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';export function buildAllFlags(_0x36eb21){const _0x394fc0=a221_0x107d,_0x54b546=a221_0x101cc6(_0x36eb21,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x36eb21))return _0x54b546;return _0x54b546[_0x394fc0(0x1d5)](_0x5d42a0=>_0x5d42a0[_0x394fc0(0x1de)]===_0x394fc0(0x1d9)?{..._0x5d42a0,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x5d42a0);}function a221_0x107d(_0x1a83f9,_0x3e742d){_0x1a83f9=_0x1a83f9-0x1d3;const _0x32b463=a221_0x32b4();let _0x107dbd=_0x32b463[_0x1a83f9];return _0x107dbd;}function a221_0x32b4(){const _0x3c323d=['map','3DvbLOw','9066344HPDIxj','543098pMuIUu','yes','3qDfaBf','15208092TFLLrQ','7127150vhNQhB','1109172abxVCy','name','3271132FeKLtj','1228556dULXWN'];a221_0x32b4=function(){return _0x3c323d;};return a221_0x32b4();}
1
+ (function(_0x41739c,_0x1ebe0c){const _0x17a291=a222_0x4823,_0x4b8f20=_0x41739c();while(!![]){try{const _0x3aeea5=-parseInt(_0x17a291(0x186))/0x1+parseInt(_0x17a291(0x188))/0x2*(-parseInt(_0x17a291(0x17f))/0x3)+-parseInt(_0x17a291(0x185))/0x4*(-parseInt(_0x17a291(0x180))/0x5)+-parseInt(_0x17a291(0x183))/0x6+parseInt(_0x17a291(0x184))/0x7*(parseInt(_0x17a291(0x17d))/0x8)+parseInt(_0x17a291(0x181))/0x9*(-parseInt(_0x17a291(0x17e))/0xa)+parseInt(_0x17a291(0x187))/0xb;if(_0x3aeea5===_0x1ebe0c)break;else _0x4b8f20['push'](_0x4b8f20['shift']());}catch(_0x1a8c59){_0x4b8f20['push'](_0x4b8f20['shift']());}}}(a222_0x1cc8,0x3174f));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a222_0x1cc8(){const _0xe8e542=['26684Cptvwo','8197453JvjAzs','108954hfqOgy','232192MgEkRk','803680aeBxBk','3BXLXFt','142885gEDYRe','45HkyDYz','yes','1223238DByTOj','21GZFXjk','8xkyJaX'];a222_0x1cc8=function(){return _0xe8e542;};return a222_0x1cc8();}import{buildAllFlags as a222_0x2160a0}from'@lovrabet/cli-framework';import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a222_0x4823(_0x2baccd,_0x4ec2f7){_0x2baccd=_0x2baccd-0x17d;const _0x1cc8fe=a222_0x1cc8();let _0x482350=_0x1cc8fe[_0x2baccd];return _0x482350;}export function buildAllFlags(_0x4d7de3){const _0x165916=a222_0x4823,_0x4cda86=a222_0x2160a0(_0x4d7de3,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x4d7de3))return _0x4cda86;return _0x4cda86['map'](_0x2f01fa=>_0x2f01fa['name']===_0x165916(0x182)?{..._0x2f01fa,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x2f01fa);}
@@ -1 +1 @@
1
- function a222_0x4942(_0x2135a6,_0x43344b){_0x2135a6=_0x2135a6-0x1e9;var _0x15bfce=a222_0x15bf();var _0x494210=_0x15bfce[_0x2135a6];return _0x494210;}(function(_0x6de6ce,_0x4158a4){var _0x316bbf=a222_0x4942,_0x4c199=_0x6de6ce();while(!![]){try{var _0x129b4e=parseInt(_0x316bbf(0x1f7))/0x1*(-parseInt(_0x316bbf(0x1ed))/0x2)+parseInt(_0x316bbf(0x1eb))/0x3+parseInt(_0x316bbf(0x1e9))/0x4*(-parseInt(_0x316bbf(0x1f0))/0x5)+parseInt(_0x316bbf(0x1ea))/0x6+parseInt(_0x316bbf(0x1f4))/0x7+parseInt(_0x316bbf(0x1f3))/0x8+-parseInt(_0x316bbf(0x1f2))/0x9;if(_0x129b4e===_0x4158a4)break;else _0x4c199['push'](_0x4c199['shift']());}catch(_0x40c183){_0x4c199['push'](_0x4c199['shift']());}}}(a222_0x15bf,0x699f6));function a222_0x15bf(){var _0x1d8ff6=['structuredErrors','4128535JbtIye','defaultFormat','9184806ApzGum','2080352XCMckK','4905369BHvvBb','def','format','598fkGkXf','4xskfpV','4736550GTjNpa','2438055aTueRa','flags','950KPsFBJ','compress'];a222_0x15bf=function(){return _0x1d8ff6;};return a222_0x15bf();}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x2d0194){var _0x5f4455=a222_0x4942;return _0x2d0194?.[_0x5f4455(0x1ef)]===!![];}export function resolveErrorOutputFormat(_0x8d2dfb){var _0x2d5b4c=a222_0x4942;if(!_0x8d2dfb[_0x2d5b4c(0x1f5)])return _0x8d2dfb['defaultFormat']??_0x2d5b4c(0x1ee);return resolveOutputConfig({'flags':_0x8d2dfb[_0x2d5b4c(0x1ec)]??{},'def':_0x8d2dfb[_0x2d5b4c(0x1f5)],'configDefault':_0x8d2dfb[_0x2d5b4c(0x1f1)]})[_0x2d5b4c(0x1f6)];}
1
+ (function(_0x1af300,_0x5e60c8){var _0x4271ef=a223_0x5adc,_0x61a356=_0x1af300();while(!![]){try{var _0x55420a=parseInt(_0x4271ef(0x1db))/0x1*(-parseInt(_0x4271ef(0x1ce))/0x2)+-parseInt(_0x4271ef(0x1d3))/0x3*(-parseInt(_0x4271ef(0x1d2))/0x4)+parseInt(_0x4271ef(0x1d1))/0x5*(-parseInt(_0x4271ef(0x1cf))/0x6)+parseInt(_0x4271ef(0x1cd))/0x7*(-parseInt(_0x4271ef(0x1d5))/0x8)+parseInt(_0x4271ef(0x1d9))/0x9*(-parseInt(_0x4271ef(0x1d8))/0xa)+parseInt(_0x4271ef(0x1d6))/0xb+parseInt(_0x4271ef(0x1cc))/0xc*(parseInt(_0x4271ef(0x1d4))/0xd);if(_0x55420a===_0x5e60c8)break;else _0x61a356['push'](_0x61a356['shift']());}catch(_0x3161aa){_0x61a356['push'](_0x61a356['shift']());}}}(a223_0x4356,0x1e7bb));import{resolveOutputConfig}from'@lovrabet/cli-framework';function a223_0x4356(){var _0x4725fc=['2037qqUEwq','2Kttbwu','54wqvbxo','def','113375yYDdzZ','592412SQIPvG','3CxiGdD','269113qXbWoD','5960wRSkDF','764412BHnSzP','structuredErrors','1865550ExiTYk','9KPOAOI','format','189145DUMxAO','flags','defaultFormat','408LarWMg'];a223_0x4356=function(){return _0x4725fc;};return a223_0x4356();}function a223_0x5adc(_0x308f00,_0x870711){_0x308f00=_0x308f00-0x1ca;var _0x4356df=a223_0x4356();var _0x5adc0a=_0x4356df[_0x308f00];return _0x5adc0a;}export function usesStructuredErrorOutput(_0x2100fc){var _0x30a37d=a223_0x5adc;return _0x2100fc?.[_0x30a37d(0x1d7)]===!![];}export function resolveErrorOutputFormat(_0x233119){var _0x478011=a223_0x5adc;if(!_0x233119[_0x478011(0x1d0)])return _0x233119[_0x478011(0x1cb)]??'compress';return resolveOutputConfig({'flags':_0x233119[_0x478011(0x1ca)]??{},'def':_0x233119[_0x478011(0x1d0)],'configDefault':_0x233119[_0x478011(0x1cb)]})[_0x478011(0x1da)];}
@@ -1 +1 @@
1
- const a223_0x3d2b9e=a223_0x146b;function a223_0x2dcf(){const _0x35e80e=['174600aGnmsF','menu\x20regroup-start','12QGyKoX','command','menu\x20delete','764fITIET','599879tiWZyx','1698160FlPAve','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','service','9qafJrT','4046CyJkXb','8408112lPHvDs','menu\x20move','110HJDjrJ','menu\x20group-create','has','3369HhlAiV','650VRtWNS','23870ruQoEn'];a223_0x2dcf=function(){return _0x35e80e;};return a223_0x2dcf();}(function(_0x43158c,_0x5af89d){const _0x153bda=a223_0x146b,_0x2d45a4=_0x43158c();while(!![]){try{const _0xade90a=-parseInt(_0x153bda(0x1b0))/0x1*(parseInt(_0x153bda(0x1b3))/0x2)+parseInt(_0x153bda(0x1a2))/0x3*(parseInt(_0x153bda(0x1aa))/0x4)+-parseInt(_0x153bda(0x1a5))/0x5+parseInt(_0x153bda(0x1a7))/0x6*(-parseInt(_0x153bda(0x1ab))/0x7)+parseInt(_0x153bda(0x1ac))/0x8*(-parseInt(_0x153bda(0x1af))/0x9)+parseInt(_0x153bda(0x1a3))/0xa*(-parseInt(_0x153bda(0x1a4))/0xb)+parseInt(_0x153bda(0x1b1))/0xc;if(_0xade90a===_0x5af89d)break;else _0x2d45a4['push'](_0x2d45a4['shift']());}catch(_0x33b272){_0x2d45a4['push'](_0x2d45a4['shift']());}}}(a223_0x2dcf,0x2078d));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-update',a223_0x3d2b9e(0x1a9),a223_0x3d2b9e(0x1b4),'menu\x20group-update',a223_0x3d2b9e(0x1b2),a223_0x3d2b9e(0x1a6)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a223_0x3d2b9e(0x1ad);function a223_0x146b(_0x15114b,_0x24cc8d){_0x15114b=_0x15114b-0x1a2;const _0x2dcf41=a223_0x2dcf();let _0x146bf5=_0x2dcf41[_0x15114b];return _0x146bf5;}export function requiresExplicitYes(_0x736fea){const _0x3a2f35=a223_0x3d2b9e;return EXPLICIT_YES_COMMANDS[_0x3a2f35(0x1b5)](_0x736fea[_0x3a2f35(0x1ae)]+'\x20'+_0x736fea[_0x3a2f35(0x1a8)]);}
1
+ const a224_0x55aef7=a224_0x86c4;(function(_0x190d3a,_0x27c9c3){const _0x5636ad=a224_0x86c4,_0x401f83=_0x190d3a();while(!![]){try{const _0x4a57f7=parseInt(_0x5636ad(0xec))/0x1+-parseInt(_0x5636ad(0xe9))/0x2*(-parseInt(_0x5636ad(0xf0))/0x3)+parseInt(_0x5636ad(0xef))/0x4+-parseInt(_0x5636ad(0xea))/0x5+parseInt(_0x5636ad(0xee))/0x6*(-parseInt(_0x5636ad(0xe2))/0x7)+-parseInt(_0x5636ad(0xe6))/0x8+parseInt(_0x5636ad(0xe8))/0x9*(parseInt(_0x5636ad(0xf4))/0xa);if(_0x4a57f7===_0x27c9c3)break;else _0x401f83['push'](_0x401f83['shift']());}catch(_0x4b7e13){_0x401f83['push'](_0x401f83['shift']());}}}(a224_0x46ca,0x910d7));const EXPLICIT_YES_COMMANDS=new Set([a224_0x55aef7(0xe5),a224_0x55aef7(0xf3),'menu\x20delete',a224_0x55aef7(0xf2),a224_0x55aef7(0xf1),a224_0x55aef7(0xe4),a224_0x55aef7(0xf5)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a224_0x55aef7(0xeb);function a224_0x46ca(){const _0x400aa5=['57DlPcRa','menu\x20group-update','menu\x20group-create','menu\x20rename','14300920dHgxsD','menu\x20regroup-start','1043sYQEgQ','service','menu\x20move','menu\x20external-link-update','7384960snXAZZ','command','9WQLTbR','83256LGWUbc','5372935gRyqoR','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','654245NlGCDG','has','28152LHUjIS','1662724gPQSFy'];a224_0x46ca=function(){return _0x400aa5;};return a224_0x46ca();}function a224_0x86c4(_0x84050f,_0x2a17ac){_0x84050f=_0x84050f-0xe2;const _0x46cabc=a224_0x46ca();let _0x86c4dd=_0x46cabc[_0x84050f];return _0x86c4dd;}export function requiresExplicitYes(_0x512629){const _0x5a9d88=a224_0x55aef7;return EXPLICIT_YES_COMMANDS[_0x5a9d88(0xed)](_0x512629[_0x5a9d88(0xe3)]+'\x20'+_0x512629[_0x5a9d88(0xe7)]);}
@@ -1 +1 @@
1
- const a224_0x570e82=a224_0x13b7;(function(_0x2f8ad4,_0x3c1f86){const _0x916ce9=a224_0x13b7,_0x387a96=_0x2f8ad4();while(!![]){try{const _0x1e157d=-parseInt(_0x916ce9(0x92))/0x1*(parseInt(_0x916ce9(0x94))/0x2)+-parseInt(_0x916ce9(0x8b))/0x3*(-parseInt(_0x916ce9(0x90))/0x4)+parseInt(_0x916ce9(0x8a))/0x5*(-parseInt(_0x916ce9(0x95))/0x6)+-parseInt(_0x916ce9(0x89))/0x7*(-parseInt(_0x916ce9(0x93))/0x8)+-parseInt(_0x916ce9(0x96))/0x9+-parseInt(_0x916ce9(0x91))/0xa*(parseInt(_0x916ce9(0x8e))/0xb)+parseInt(_0x916ce9(0x8d))/0xc*(parseInt(_0x916ce9(0x8f))/0xd);if(_0x1e157d===_0x3c1f86)break;else _0x387a96['push'](_0x387a96['shift']());}catch(_0x28ed1c){_0x387a96['push'](_0x387a96['shift']());}}}(a224_0x2937,0x56b45));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a224_0x13b7(_0x2dd436,_0x4518ee){_0x2dd436=_0x2dd436-0x89;const _0x29378a=a224_0x2937();let _0x13b7d1=_0x29378a[_0x2dd436];return _0x13b7d1;}const helpers=createFlagHelpers(CliErrors);function a224_0x2937(){const _0x5b9593=['368124FOWjhX','5949612ZLdAdb','581028NIHBvu','10VBvrcX','277869SBfQNA','validateFlags','1164jTUmJy','38918oGBHCL','153790dkFvAS','24MkKcWs','570bgpLDs','611677VFRaTj','24Zaczwb','2NhxEvx'];a224_0x2937=function(){return _0x5b9593;};return a224_0x2937();}export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a224_0x570e82(0x8c)];
1
+ function a225_0x530c(){const _0x27b3f9=['2402324FdQrtP','136uIeXDw','8897224owUuyi','833422BayVlh','validateFlags','3FjFuRB','10chvVrX','110583CltqtG','1279818ovTwTd','6nxrKRO','parseFlags','3943790VErVeO','11933735pBRTyj'];a225_0x530c=function(){return _0x27b3f9;};return a225_0x530c();}const a225_0x56d2b4=a225_0x5ab9;(function(_0x5e0b4d,_0x53662b){const _0x1f9d64=a225_0x5ab9,_0x503b14=_0x5e0b4d();while(!![]){try{const _0x428cf2=-parseInt(_0x1f9d64(0x1bf))/0x1*(parseInt(_0x1f9d64(0x1bd))/0x2)+-parseInt(_0x1f9d64(0x1c2))/0x3+-parseInt(_0x1f9d64(0x1ba))/0x4+parseInt(_0x1f9d64(0x1c5))/0x5*(parseInt(_0x1f9d64(0x1c3))/0x6)+parseInt(_0x1f9d64(0x1bc))/0x7+parseInt(_0x1f9d64(0x1bb))/0x8*(-parseInt(_0x1f9d64(0x1c1))/0x9)+parseInt(_0x1f9d64(0x1c0))/0xa*(parseInt(_0x1f9d64(0x1b9))/0xb);if(_0x428cf2===_0x53662b)break;else _0x503b14['push'](_0x503b14['shift']());}catch(_0x565cd7){_0x503b14['push'](_0x503b14['shift']());}}}(a225_0x530c,0xa0c2c));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a225_0x5ab9(_0x564c25,_0x31afae){_0x564c25=_0x564c25-0x1b9;const _0x530c2b=a225_0x530c();let _0x5ab99b=_0x530c2b[_0x564c25];return _0x5ab99b;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a225_0x56d2b4(0x1c4)];export const validateFlags=helpers[a225_0x56d2b4(0x1be)];
@@ -1 +1 @@
1
- const a225_0x37ff93=a225_0x5d59;(function(_0x9ec9bf,_0x54a58d){const _0x533878=a225_0x5d59,_0x123cd0=_0x9ec9bf();while(!![]){try{const _0x1fcbd8=parseInt(_0x533878(0x92))/0x1*(parseInt(_0x533878(0x8a))/0x2)+-parseInt(_0x533878(0x8f))/0x3+parseInt(_0x533878(0x94))/0x4*(-parseInt(_0x533878(0x96))/0x5)+-parseInt(_0x533878(0x93))/0x6+parseInt(_0x533878(0x87))/0x7+parseInt(_0x533878(0x8c))/0x8*(-parseInt(_0x533878(0x95))/0x9)+-parseInt(_0x533878(0x8d))/0xa*(-parseInt(_0x533878(0x91))/0xb);if(_0x1fcbd8===_0x54a58d)break;else _0x123cd0['push'](_0x123cd0['shift']());}catch(_0x2a77f6){_0x123cd0['push'](_0x123cd0['shift']());}}}(a225_0x5187,0x55a77));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a225_0x5d59(_0x24dd03,_0x2b08bd){_0x24dd03=_0x24dd03-0x87;const _0x518775=a225_0x5187();let _0x5d5981=_0x518775[_0x24dd03];return _0x5d5981;}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';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x3186c2=>serviceGroups[a225_0x37ff93(0x8b)](_0x3186c2),'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20`'+CLI_BIN_NAME+'\x20workspace\x20init`\x20or\x20--appcode).','serviceUsageSuffix':a225_0x37ff93(0x8e)});export function generateCommandHelp(_0x5db83b){const _0x220863=a225_0x37ff93,_0x5c6bdf=generators[_0x220863(0x90)](_0x5db83b);if(!requiresExplicitYes(_0x5db83b))return _0x5c6bdf;return _0x5c6bdf['replace']('Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.',_0x220863(0x89));}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators[a225_0x37ff93(0x88)];function a225_0x5187(){const _0x4168f8=['2154336RLtgvs','2184580brNPwT','522SOuXTA','5UDRrhM','4446610pOdjTJ','generateFullHelp','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','23038trKNGC','get','87064hugRet','1904920iovAxg','\x20[args]\x20[flags]','1557426qApJNz','generateCommandHelp','77ysFigZ','38GRCwWY'];a225_0x5187=function(){return _0x4168f8;};return a225_0x5187();}
1
+ const a226_0x5aaab5=a226_0x44d0;(function(_0x5206a2,_0x2dbd5b){const _0x3f60e4=a226_0x44d0,_0x52d6cd=_0x5206a2();while(!![]){try{const _0x6d47c4=parseInt(_0x3f60e4(0x118))/0x1*(parseInt(_0x3f60e4(0x10e))/0x2)+parseInt(_0x3f60e4(0x116))/0x3+parseInt(_0x3f60e4(0x110))/0x4*(parseInt(_0x3f60e4(0x112))/0x5)+-parseInt(_0x3f60e4(0x114))/0x6*(-parseInt(_0x3f60e4(0x10a))/0x7)+parseInt(_0x3f60e4(0x11a))/0x8*(parseInt(_0x3f60e4(0x11c))/0x9)+parseInt(_0x3f60e4(0x115))/0xa+-parseInt(_0x3f60e4(0x111))/0xb;if(_0x6d47c4===_0x2dbd5b)break;else _0x52d6cd['push'](_0x52d6cd['shift']());}catch(_0x316567){_0x52d6cd['push'](_0x52d6cd['shift']());}}}(a226_0x4db4,0x1934d));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 a226_0x4db4(){const _0x2bb113=['\x20workspace\x20init`\x20or\x20--appcode).','8gTxDTr','generateServiceHelp','504801QyTBHs','21623hlOdww','Requires\x20appcode\x20(set\x20via\x20`','get','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','314358Tlnlls','Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.','20716kyIqJw','5690388kEyUYf','165jLZTVi','\x20[args]\x20[flags]','30ACUQkw','1270120AHYgxF','281763SCgxQt','replace','1kcmnrS'];a226_0x4db4=function(){return _0x2bb113;};return a226_0x4db4();}import{requiresExplicitYes}from'../framework/explicit-yes.js';function a226_0x44d0(_0x2264d8,_0x1f9c0c){_0x2264d8=_0x2264d8-0x10a;const _0x4db459=a226_0x4db4();let _0x44d003=_0x4db459[_0x2264d8];return _0x44d003;}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4e24d3=>serviceGroups[a226_0x5aaab5(0x10c)](_0x4e24d3),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a226_0x5aaab5(0x10b)+CLI_BIN_NAME+a226_0x5aaab5(0x119),'serviceUsageSuffix':a226_0x5aaab5(0x113)});export function generateCommandHelp(_0x29dff7){const _0x3bada9=a226_0x5aaab5,_0x534506=generators['generateCommandHelp'](_0x29dff7);if(!requiresExplicitYes(_0x29dff7))return _0x534506;return _0x534506[_0x3bada9(0x117)](_0x3bada9(0x10d),_0x3bada9(0x10f));}export const generateServiceHelp=generators[a226_0x5aaab5(0x11b)];export const generateFullHelp=generators['generateFullHelp'];
@@ -1 +1 @@
1
- function a226_0x54ef(_0x4061fc,_0x184d7b){_0x4061fc=_0x4061fc-0x174;var _0x28fafb=a226_0x28fa();var _0x54efe3=_0x28fafb[_0x4061fc];return _0x54efe3;}function a226_0x28fa(){var _0x26629a=['688684ptnsUe','4jBjkkz','9HXhCyV','156346WYZVeX','15848wzdbHU','880tOurrx','409623bnXwtq','101796AwYQFG','2773250psFuoR','26774QHEjho','2544YkrYHj','5jqmqSN'];a226_0x28fa=function(){return _0x26629a;};return a226_0x28fa();}(function(_0x4e3c2b,_0x2367ad){var _0x296058=a226_0x54ef,_0x474e68=_0x4e3c2b();while(!![]){try{var _0x286a8f=-parseInt(_0x296058(0x17f))/0x1*(parseInt(_0x296058(0x175))/0x2)+parseInt(_0x296058(0x178))/0x3+parseInt(_0x296058(0x17e))/0x4*(-parseInt(_0x296058(0x17d))/0x5)+parseInt(_0x296058(0x179))/0x6+-parseInt(_0x296058(0x176))/0x7*(-parseInt(_0x296058(0x177))/0x8)+-parseInt(_0x296058(0x174))/0x9*(parseInt(_0x296058(0x17a))/0xa)+-parseInt(_0x296058(0x17b))/0xb*(-parseInt(_0x296058(0x17c))/0xc);if(_0x286a8f===_0x2367ad)break;else _0x474e68['push'](_0x474e68['shift']());}catch(_0x4648c6){_0x474e68['push'](_0x474e68['shift']());}}}(a226_0x28fa,0x262cf));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x4d25b6,_0x45a35c){var _0x5b9c8c=a227_0x5edf,_0x49395c=_0x4d25b6();while(!![]){try{var _0x4338c7=-parseInt(_0x5b9c8c(0xb0))/0x1*(-parseInt(_0x5b9c8c(0xb7))/0x2)+-parseInt(_0x5b9c8c(0xb3))/0x3+-parseInt(_0x5b9c8c(0xb1))/0x4+parseInt(_0x5b9c8c(0xaf))/0x5+-parseInt(_0x5b9c8c(0xb2))/0x6*(-parseInt(_0x5b9c8c(0xb6))/0x7)+-parseInt(_0x5b9c8c(0xae))/0x8*(parseInt(_0x5b9c8c(0xb5))/0x9)+parseInt(_0x5b9c8c(0xb4))/0xa;if(_0x4338c7===_0x45a35c)break;else _0x49395c['push'](_0x49395c['shift']());}catch(_0x498df5){_0x49395c['push'](_0x49395c['shift']());}}}(a227_0x2451,0x6e2f4));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';function a227_0x5edf(_0x1236a4,_0x4385d){_0x1236a4=_0x1236a4-0xae;var _0x245151=a227_0x2451();var _0x5edf2a=_0x245151[_0x1236a4];return _0x5edf2a;}export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a227_0x2451(){var _0x2e8aa6=['3kHgAuI','2834668qFpDmn','678yLAIna','343803FdGEgw','2281510jxzaWX','3085461krXAiH','41881CefCgj','381274JLHfsn','8vNXwkI','706360fevDRE'];a227_0x2451=function(){return _0x2e8aa6;};return a227_0x2451();}
@@ -1 +1 @@
1
- function a227_0x4cd5(_0xc9a3a4,_0x2d4d37){_0xc9a3a4=_0xc9a3a4-0x17d;const _0xd40377=a227_0xd403();let _0x4cd5f7=_0xd40377[_0xc9a3a4];return _0x4cd5f7;}(function(_0x38c7a5,_0x46f00a){const _0x154cab=a227_0x4cd5,_0x37d24a=_0x38c7a5();while(!![]){try{const _0x1944f6=-parseInt(_0x154cab(0x181))/0x1*(parseInt(_0x154cab(0x17f))/0x2)+-parseInt(_0x154cab(0x17d))/0x3+parseInt(_0x154cab(0x17e))/0x4*(parseInt(_0x154cab(0x193))/0x5)+-parseInt(_0x154cab(0x18c))/0x6+parseInt(_0x154cab(0x18e))/0x7+parseInt(_0x154cab(0x182))/0x8+parseInt(_0x154cab(0x194))/0x9;if(_0x1944f6===_0x46f00a)break;else _0x37d24a['push'](_0x37d24a['shift']());}catch(_0x514ec7){_0x37d24a['push'](_0x37d24a['shift']());}}}(a227_0xd403,0x3e55a));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(_0x6776e4,_0x2fbedd){const _0x415a68=a227_0x4cd5,_0x4f796e=_0x6776e4[_0x415a68(0x186)],{_notice:_0x5c57e4,..._0x1e0f02}=_0x6776e4;void _0x5c57e4,baseFormatOutput(_0x1e0f02,_0x2fbedd),_0x2fbedd[_0x415a68(0x188)]===_0x415a68(0x192)&&printPrettyNotice(_0x4f796e);}export function formatCliError(_0x1fd221,_0x36ff74){const _0x4ba46e=a227_0x4cd5;if(_0x36ff74['format']===_0x4ba46e(0x192))return![];const _0x5bc6d8=_0x1fd221[_0x4ba46e(0x198)],_0x4668d1={'ok':![],'command':_0x36ff74[_0x4ba46e(0x180)],'risk':_0x36ff74[_0x4ba46e(0x190)],'data':_0x5bc6d8??null,'error':{'code':_0x1fd221[_0x4ba46e(0x196)],'message':_0x1fd221[_0x4ba46e(0x191)],..._0x1fd221[_0x4ba46e(0x195)]?{'hint':_0x1fd221[_0x4ba46e(0x195)]}:{}}},_0x7a8fed=_0x36ff74[_0x4ba46e(0x188)]===_0x4ba46e(0x197)?JSON[_0x4ba46e(0x18b)](_0x4668d1,null,0x2):JSON['stringify'](_0x4668d1);let _0x7a7b8f=_0x7a8fed;if(_0x36ff74['jqFilter']?.[_0x4ba46e(0x18a)]())try{_0x7a7b8f=applyJqFilter(_0x7a8fed,_0x36ff74[_0x4ba46e(0x183)]);}catch(_0x2a109a){const _0x3dd37e=_0x2a109a instanceof CliError?_0x2a109a:CliErrors[_0x4ba46e(0x185)](_0x4ba46e(0x18f)+(_0x2a109a instanceof Error?_0x2a109a[_0x4ba46e(0x191)]:String(_0x2a109a))),_0x1f478b={..._0x4668d1,'error':{'code':_0x3dd37e[_0x4ba46e(0x196)],'message':_0x3dd37e[_0x4ba46e(0x191)],..._0x3dd37e[_0x4ba46e(0x195)]?{'hint':_0x3dd37e[_0x4ba46e(0x195)]}:{},'cause':_0x4668d1[_0x4ba46e(0x18d)]}};_0x7a7b8f=_0x36ff74[_0x4ba46e(0x188)]===_0x4ba46e(0x197)?JSON[_0x4ba46e(0x18b)](_0x1f478b,null,0x2):JSON[_0x4ba46e(0x18b)](_0x1f478b);}return process[_0x4ba46e(0x187)][_0x4ba46e(0x199)](_0x7a7b8f[_0x4ba46e(0x184)]('\x0a')?_0x7a7b8f:_0x7a7b8f+'\x0a'),!![];}function a227_0xd403(){const _0x20c5f0=['risk','message','pretty','5HGvCBG','803502mnvdXp','hint','code','json','data','write','505536loKtjv','502940FyOVYx','2RcEnkJ','command','166459yrXDQs','3514600EWKDEo','jqFilter','endsWith','validation','_notice','stdout','format','update','trim','stringify','1457838Ulihqo','error','1252496qMbzeo','jq:\x20'];a227_0xd403=function(){return _0x20c5f0;};return a227_0xd403();}function printPrettyNotice(_0x2d18fa){const _0x1b7dec=a227_0x4cd5;if(!_0x2d18fa?.[_0x1b7dec(0x189)])return;console['error'](_0x2d18fa[_0x1b7dec(0x189)]['message']+'\x20('+_0x2d18fa[_0x1b7dec(0x189)]['url']+')');}
1
+ (function(_0x56059f,_0x126371){const _0x4dace0=a228_0x3f36,_0x1946dc=_0x56059f();while(!![]){try{const _0x2f690d=parseInt(_0x4dace0(0x1fd))/0x1+parseInt(_0x4dace0(0x204))/0x2+parseInt(_0x4dace0(0x202))/0x3+-parseInt(_0x4dace0(0x1fe))/0x4*(parseInt(_0x4dace0(0x200))/0x5)+-parseInt(_0x4dace0(0x1f4))/0x6+parseInt(_0x4dace0(0x1f6))/0x7+parseInt(_0x4dace0(0x1f9))/0x8*(-parseInt(_0x4dace0(0x1f3))/0x9);if(_0x2f690d===_0x126371)break;else _0x1946dc['push'](_0x1946dc['shift']());}catch(_0x4c1e81){_0x1946dc['push'](_0x1946dc['shift']());}}}(a228_0x29d3,0xb2012));function a228_0x29d3(){const _0x4b9214=['hint','345843SttAFl','6498426eMrofA','error','1421658anIrdy','risk','data','48RqoXKu','update','trim','stdout','532578zxenpX','165204cZpCkg','pretty','35CxNIDb','endsWith','2834670YvlZxM','code','1302568MuRbKQ','jqFilter','message','stringify','json','format','jq:\x20','_notice','validation'];a228_0x29d3=function(){return _0x4b9214;};return a228_0x29d3();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a228_0x3f36(_0x46bcc2,_0x2e5248){_0x46bcc2=_0x46bcc2-0x1ec;const _0x29d316=a228_0x29d3();let _0x3f3623=_0x29d316[_0x46bcc2];return _0x3f3623;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x165219,_0x5c5c0a){const _0x159797=a228_0x3f36,_0x3980d0=_0x165219[_0x159797(0x1f0)],{_notice:_0x478b09,..._0x135731}=_0x165219;void _0x478b09,baseFormatOutput(_0x135731,_0x5c5c0a),_0x5c5c0a['format']==='pretty'&&printPrettyNotice(_0x3980d0);}export function formatCliError(_0x204f21,_0x391797){const _0x577192=a228_0x3f36;if(_0x391797[_0x577192(0x1ee)]===_0x577192(0x1ff))return![];const _0x2c02eb=_0x204f21[_0x577192(0x1f8)],_0x216bd7={'ok':![],'command':_0x391797['command'],'risk':_0x391797[_0x577192(0x1f7)],'data':_0x2c02eb??null,'error':{'code':_0x204f21['code'],'message':_0x204f21[_0x577192(0x206)],..._0x204f21[_0x577192(0x1f2)]?{'hint':_0x204f21['hint']}:{}}},_0x56d109=_0x391797[_0x577192(0x1ee)]===_0x577192(0x1ed)?JSON[_0x577192(0x1ec)](_0x216bd7,null,0x2):JSON['stringify'](_0x216bd7);let _0x148eed=_0x56d109;if(_0x391797[_0x577192(0x205)]?.[_0x577192(0x1fb)]())try{_0x148eed=applyJqFilter(_0x56d109,_0x391797[_0x577192(0x205)]);}catch(_0x56c3ed){const _0xdcc0b=_0x56c3ed instanceof CliError?_0x56c3ed:CliErrors[_0x577192(0x1f1)](_0x577192(0x1ef)+(_0x56c3ed instanceof Error?_0x56c3ed[_0x577192(0x206)]:String(_0x56c3ed))),_0x312e74={..._0x216bd7,'error':{'code':_0xdcc0b[_0x577192(0x203)],'message':_0xdcc0b[_0x577192(0x206)],..._0xdcc0b[_0x577192(0x1f2)]?{'hint':_0xdcc0b[_0x577192(0x1f2)]}:{},'cause':_0x216bd7['error']}};_0x148eed=_0x391797[_0x577192(0x1ee)]===_0x577192(0x1ed)?JSON[_0x577192(0x1ec)](_0x312e74,null,0x2):JSON[_0x577192(0x1ec)](_0x312e74);}return process[_0x577192(0x1fc)]['write'](_0x148eed[_0x577192(0x201)]('\x0a')?_0x148eed:_0x148eed+'\x0a'),!![];}function printPrettyNotice(_0x81d0fe){const _0x56b9b6=a228_0x3f36;if(!_0x81d0fe?.[_0x56b9b6(0x1fa)])return;console[_0x56b9b6(0x1f5)](_0x81d0fe[_0x56b9b6(0x1fa)][_0x56b9b6(0x206)]+'\x20('+_0x81d0fe['update']['url']+')');}
@@ -1 +1 @@
1
- function a228_0x1d0c(){var _0x507b70=['6122044FaWSWo','33746BGCKbn','12QeyRdh','5dTyMUf','16130020LWQRdY','1535238EAiObv','130QdnRZn','3576729NpOKBR','3767532VYDUFr','76eXBmFS','11bSbxjr','1526693kEUNQc','64OfufJH'];a228_0x1d0c=function(){return _0x507b70;};return a228_0x1d0c();}function a228_0x2b79(_0x51da5d,_0x329e1f){_0x51da5d=_0x51da5d-0x6a;var _0x1d0c90=a228_0x1d0c();var _0x2b7991=_0x1d0c90[_0x51da5d];return _0x2b7991;}(function(_0x1dc5f8,_0x59e65c){var _0x9c44be=a228_0x2b79,_0x26a3df=_0x1dc5f8();while(!![]){try{var _0x557047=-parseInt(_0x9c44be(0x6d))/0x1*(parseInt(_0x9c44be(0x75))/0x2)+parseInt(_0x9c44be(0x73))/0x3+-parseInt(_0x9c44be(0x6c))/0x4*(-parseInt(_0x9c44be(0x6f))/0x5)+-parseInt(_0x9c44be(0x6e))/0x6*(parseInt(_0x9c44be(0x6a))/0x7)+parseInt(_0x9c44be(0x6b))/0x8*(parseInt(_0x9c44be(0x71))/0x9)+parseInt(_0x9c44be(0x70))/0xa*(parseInt(_0x9c44be(0x76))/0xb)+-parseInt(_0x9c44be(0x74))/0xc*(parseInt(_0x9c44be(0x72))/0xd);if(_0x557047===_0x59e65c)break;else _0x26a3df['push'](_0x26a3df['shift']());}catch(_0x409666){_0x26a3df['push'](_0x26a3df['shift']());}}}(a228_0x1d0c,0xcda10));export{extractList,extractPaging}from'@lovrabet/cli-framework';
1
+ function a229_0x1f6a(){var _0x429747=['9Ntjfpt','20483pWqnpn','6276426QCSDOW','810333FCmcbB','35470940PbgQFh','15703224GxxPPy','22VRUuon','3353847LDBXDa','530eLTVcB','45808lObzLN'];a229_0x1f6a=function(){return _0x429747;};return a229_0x1f6a();}(function(_0x5c732b,_0x21c349){var _0x4f72a7=a229_0xba08,_0x4a68b4=_0x5c732b();while(!![]){try{var _0xdeaf66=-parseInt(_0x4f72a7(0x1de))/0x1*(parseInt(_0x4f72a7(0x1e3))/0x2)+parseInt(_0x4f72a7(0x1e0))/0x3+-parseInt(_0x4f72a7(0x1dc))/0x4*(parseInt(_0x4f72a7(0x1db))/0x5)+parseInt(_0x4f72a7(0x1df))/0x6+-parseInt(_0x4f72a7(0x1e4))/0x7+-parseInt(_0x4f72a7(0x1e2))/0x8*(parseInt(_0x4f72a7(0x1dd))/0x9)+parseInt(_0x4f72a7(0x1e1))/0xa;if(_0xdeaf66===_0x21c349)break;else _0x4a68b4['push'](_0x4a68b4['shift']());}catch(_0x1c5503){_0x4a68b4['push'](_0x4a68b4['shift']());}}}(a229_0x1f6a,0xefc0b));function a229_0xba08(_0x4c3b15,_0x4b55fe){_0x4c3b15=_0x4c3b15-0x1db;var _0x1f6af1=a229_0x1f6a();var _0xba083b=_0x1f6af1[_0x4c3b15];return _0xba083b;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- function a229_0x1b71(){const _0x442c93=['\x22.\x20','name','No\x20api.ts\x20found\x20in\x20','join','4586NgWyJp','some','alias','type','773649twdEHC','2913405HFWUHa','2496668bwmtxl','string','1506375sGYqoE','373mWkrHw','flags','368HHgyNp','`\x20requires\x20either\x20--code\x20or\x20--alias.','52738XzzfSz','code','1617504UGzRzr','.\x20Run\x20`'];a229_0x1b71=function(){return _0x442c93;};return a229_0x1b71();}(function(_0x461603,_0x1efad6){const _0x4552e4=a229_0x2dcd,_0x46051e=_0x461603();while(!![]){try{const _0x158607=-parseInt(_0x4552e4(0x7d))/0x1*(-parseInt(_0x4552e4(0x74))/0x2)+parseInt(_0x4552e4(0x78))/0x3+-parseInt(_0x4552e4(0x7a))/0x4+parseInt(_0x4552e4(0x79))/0x5+-parseInt(_0x4552e4(0x6e))/0x6+-parseInt(_0x4552e4(0x81))/0x7*(parseInt(_0x4552e4(0x7f))/0x8)+parseInt(_0x4552e4(0x7c))/0x9;if(_0x158607===_0x1efad6)break;else _0x46051e['push'](_0x46051e['shift']());}catch(_0x49b386){_0x46051e['push'](_0x46051e['shift']());}}}(a229_0x1b71,0x98141));import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a229_0x2dcd(_0x12d0db,_0x4950cc){_0x12d0db=_0x12d0db-0x6d;const _0x1b7131=a229_0x1b71();let _0x2dcd08=_0x1b7131[_0x12d0db];return _0x2dcd08;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x360069,_0x15fbb1,_0x36a256,_0x1e9141){const _0x70de4=a229_0x2dcd,_0x5650db=_0x360069[_0x70de4(0x7e)]['some'](_0x374956=>_0x374956[_0x70de4(0x71)]===_0x70de4(0x6d)&&_0x374956[_0x70de4(0x77)]===_0x70de4(0x7b)),_0x552ac6=_0x360069[_0x70de4(0x7e)][_0x70de4(0x75)](_0x13e8c8=>_0x13e8c8[_0x70de4(0x71)]===_0x70de4(0x76)&&_0x13e8c8[_0x70de4(0x77)]===_0x70de4(0x7b));if(!_0x5650db||!_0x552ac6)return;const _0x3536a9=_0x15fbb1[_0x70de4(0x6d)]?String(_0x15fbb1[_0x70de4(0x6d)]):'',_0xc12332=_0x15fbb1['alias']?String(_0x15fbb1['alias']):'';if(!_0x3536a9&&!_0xc12332)throw CliErrors['validation']('`'+_0x1e9141+_0x70de4(0x80));if(_0xc12332&&!_0x3536a9){const _0x293e4b=resolveAlias(_0x36a256,_0xc12332);if(!_0x293e4b){const _0x4271fb=listAliases(_0x36a256)['map'](_0x28faf5=>_0x28faf5[_0x70de4(0x76)]),_0x5842aa=_0x4271fb['length']?'Available\x20aliases:\x20'+_0x4271fb[_0x70de4(0x73)](',\x20'):_0x70de4(0x72)+_0x36a256+_0x70de4(0x6f)+CLI_BIN_NAME+'\x20api\x20pull`\x20first.';throw CliErrors['validation']('Unknown\x20alias\x20\x22'+_0xc12332+_0x70de4(0x70)+_0x5842aa);}_0x15fbb1[_0x70de4(0x6d)]=_0x293e4b;}}
1
+ (function(_0xfd0e5c,_0x13fa63){const _0x3f942a=a230_0x590b,_0x110655=_0xfd0e5c();while(!![]){try{const _0x363396=-parseInt(_0x3f942a(0x1da))/0x1+parseInt(_0x3f942a(0x1de))/0x2*(parseInt(_0x3f942a(0x1db))/0x3)+-parseInt(_0x3f942a(0x1d8))/0x4*(parseInt(_0x3f942a(0x1e0))/0x5)+parseInt(_0x3f942a(0x1e8))/0x6*(-parseInt(_0x3f942a(0x1d9))/0x7)+-parseInt(_0x3f942a(0x1ea))/0x8*(-parseInt(_0x3f942a(0x1eb))/0x9)+-parseInt(_0x3f942a(0x1dc))/0xa+-parseInt(_0x3f942a(0x1d7))/0xb*(-parseInt(_0x3f942a(0x1e5))/0xc);if(_0x363396===_0x13fa63)break;else _0x110655['push'](_0x110655['shift']());}catch(_0x81afae){_0x110655['push'](_0x110655['shift']());}}}(a230_0x536d,0x99119));import{CliErrors}from'../errors.js';function a230_0x536d(){const _0x222118=['some','404YsorlT','flags','5019550gEAhwL','\x20api\x20pull`\x20first.','map','code','.\x20Run\x20`','24wxfGyh','name','type','6ouUfMw','alias','41416xtGsLw','711REIcmV','join','validation','Unknown\x20alias\x20\x22','13780393ZRCIFh','4loMVRD','918911eNoXne','72624CDSllk','249ilcghI','10964990XkPwTE'];a230_0x536d=function(){return _0x222118;};return a230_0x536d();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a230_0x590b(_0x3d03e5,_0x1da79a){_0x3d03e5=_0x3d03e5-0x1d7;const _0x536d59=a230_0x536d();let _0x590b17=_0x536d59[_0x3d03e5];return _0x590b17;}export function resolveAliasToCode(_0x2ed6f3,_0xae7e15,_0x5638d2,_0x5f0932){const _0x14e35c=a230_0x590b,_0x11c90e=_0x2ed6f3[_0x14e35c(0x1df)][_0x14e35c(0x1dd)](_0x1270ad=>_0x1270ad[_0x14e35c(0x1e6)]==='code'&&_0x1270ad[_0x14e35c(0x1e7)]==='string'),_0xe13017=_0x2ed6f3[_0x14e35c(0x1df)][_0x14e35c(0x1dd)](_0x368a2f=>_0x368a2f[_0x14e35c(0x1e6)]==='alias'&&_0x368a2f[_0x14e35c(0x1e7)]==='string');if(!_0x11c90e||!_0xe13017)return;const _0x51602=_0xae7e15['code']?String(_0xae7e15[_0x14e35c(0x1e3)]):'',_0x5e7396=_0xae7e15[_0x14e35c(0x1e9)]?String(_0xae7e15[_0x14e35c(0x1e9)]):'';if(!_0x51602&&!_0x5e7396)throw CliErrors[_0x14e35c(0x1ed)]('`'+_0x5f0932+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x5e7396&&!_0x51602){const _0x4a4fff=resolveAlias(_0x5638d2,_0x5e7396);if(!_0x4a4fff){const _0x4c0c64=listAliases(_0x5638d2)[_0x14e35c(0x1e2)](_0x6a69a2=>_0x6a69a2[_0x14e35c(0x1e9)]),_0x5412d0=_0x4c0c64['length']?'Available\x20aliases:\x20'+_0x4c0c64[_0x14e35c(0x1ec)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x5638d2+_0x14e35c(0x1e4)+CLI_BIN_NAME+_0x14e35c(0x1e1);throw CliErrors[_0x14e35c(0x1ed)](_0x14e35c(0x1ee)+_0x5e7396+'\x22.\x20'+_0x5412d0);}_0xae7e15[_0x14e35c(0x1e3)]=_0x4a4fff;}}
@@ -1 +1 @@
1
- const a230_0x10a254=a230_0x4410;(function(_0x3b358d,_0x1fe6b3){const _0x56a308=a230_0x4410,_0x5a21c3=_0x3b358d();while(!![]){try{const _0x3cf67d=-parseInt(_0x56a308(0x177))/0x1+parseInt(_0x56a308(0x197))/0x2+parseInt(_0x56a308(0x1a8))/0x3*(parseInt(_0x56a308(0x18c))/0x4)+-parseInt(_0x56a308(0x1a7))/0x5+-parseInt(_0x56a308(0x17f))/0x6+-parseInt(_0x56a308(0x187))/0x7*(-parseInt(_0x56a308(0x1a3))/0x8)+parseInt(_0x56a308(0x199))/0x9;if(_0x3cf67d===_0x1fe6b3)break;else _0x5a21c3['push'](_0x5a21c3['shift']());}catch(_0x2575b3){_0x5a21c3['push'](_0x5a21c3['shift']());}}}(a230_0x470e,0xeadba));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';function a230_0x4410(_0x46b14a,_0x15297d){_0x46b14a=_0x46b14a-0x16a;const _0x470e2f=a230_0x470e();let _0x441097=_0x470e2f[_0x46b14a];return _0x441097;}import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a230_0x5c1e20}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x416d38){const _0x333038=a230_0x4410;return typeof _0x416d38===_0x333038(0x193)&&_0x416d38['trim']()?_0x416d38[_0x333038(0x1a1)]():undefined;}function resolveEnvAppCode(){const _0x41a1ec=a230_0x4410,_0x2f7c55=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2f7c55)return{'name':_0x41a1ec(0x189),'value':_0x2f7c55};const _0x1b092d=stringFlag(process.env.LOVRABET_APPCODE);if(_0x1b092d)return{'name':_0x41a1ec(0x186),'value':_0x1b092d};return undefined;}function hasExplicitAppCode(_0x46ed5b,_0x159e40){const _0x370515=a230_0x4410;return!!(stringFlag(_0x46ed5b[_0x370515(0x1a2)])||stringFlag(_0x159e40[_0x370515(0x1a2)]));}function assertEnvAppCodeNotIgnored(_0x1837ac,_0x5ee8b6,_0x1014d2){const _0x5c5b96=a230_0x4410;if(!_0x5ee8b6||_0x1014d2||_0x1837ac===_0x5ee8b6[_0x5c5b96(0x17d)])return;const _0x99532a=_0x1837ac?_0x5c5b96(0x16e)+_0x1837ac+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors[_0x5c5b96(0x174)](_0x5ee8b6[_0x5c5b96(0x1a5)]+'='+_0x5ee8b6[_0x5c5b96(0x17d)]+_0x5c5b96(0x181)+_0x99532a+'\x20'+('To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$'+_0x5ee8b6[_0x5c5b96(0x1a5)]+'\x22.'));}export function createPipelineEnv(_0x620950,_0x123d3e,_0x1fdf54=[]){const _0x41dc3d=a230_0x4410;return{'rawFlags':_0x123d3e,'args':_0x1fdf54,'resolveAppCode':()=>_0x620950['appCode'],'resolveCookie':()=>_0x620950[_0x41dc3d(0x170)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a230_0x5c1e20(_0x123d3e),'defaultFormat':_0x620950[_0x41dc3d(0x179)],'defaultPageSize':_0x620950[_0x41dc3d(0x16c)],'defaultVerbose':_0x620950[_0x41dc3d(0x192)],'apiDir':_0x620950['apiDir'],'riskLevel':_0x620950[_0x41dc3d(0x175)],'selectedAppName':_0x620950[_0x41dc3d(0x196)],'mergedCli':{'defaultApp':_0x620950['defaultApp'],'currentApp':_0x620950[_0x41dc3d(0x194)],'appCode':_0x620950[_0x41dc3d(0x18f)],'apps':_0x620950[_0x41dc3d(0x1a4)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a230_0x10a254(0x16a)](_0x59df47=>PIPELINE_FLAG_NAMES['has'](_0x59df47[a230_0x10a254(0x1a5)]))[a230_0x10a254(0x171)](({name:_0x305ace,type:_0x5d8d59,description:_0x5ad302})=>({'name':_0x305ace,'type':_0x5d8d59,'description':_0x5ad302})),'formatOutput':formatOutput,'getCommandLabel'(_0x385e5e){const _0x1dcc51=a230_0x10a254;return CLI_BIN_NAME+'\x20'+_0x385e5e[_0x1dcc51(0x172)]+'\x20'+_0x385e5e[_0x1dcc51(0x19d)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x3ce75d){const _0x124c0d=a230_0x10a254;return CliErrors[_0x124c0d(0x174)](_0x3ce75d);}},async 'prepare'(_0x58e69e,_0xebe3dd,_0x5f5724,_0x41d148){const _0x32b951=a230_0x10a254,_0x3d8345=_0xebe3dd[_0x32b951(0x17e)]||DEFAULT_API_DIR;resolveAliasToCode(_0x58e69e,_0x5f5724,_0x3d8345,_0x41d148);const _0x2c29a9=resolveCommandAuthMode(_0x58e69e);let _0x54c565='';if(_0x2c29a9!==_0x32b951(0x17a)){_0x54c565=_0xebe3dd[_0x32b951(0x18d)]()||'';if(!_0x54c565){if(_0x2c29a9===_0x32b951(0x176))throw CliErrors[_0x32b951(0x180)]();}else{const {setActiveCookie:_0x5d6dc3}=await import(_0x32b951(0x19c));_0x5d6dc3(_0x54c565);}}const _0x43ea0f=_0xebe3dd[_0x32b951(0x190)]()??'';if(_0x58e69e[_0x32b951(0x188)]!==![]){assertEnvAppCodeNotIgnored(_0x43ea0f,resolveEnvAppCode(),hasExplicitAppCode(_0x5f5724,_0xebe3dd['rawFlags']));if(!_0x43ea0f)throw CliErrors[_0x32b951(0x16f)]('Set\x20appcode\x20via\x20`'+CLI_BIN_NAME+_0x32b951(0x1a6));}return{'defaults':{'booleans':{'verbose':_0xebe3dd['defaultVerbose']},'numbers':{'pagesize':_0xebe3dd['defaultPageSize']}},'extras':{'appCode':_0x43ea0f,'cookie':_0x54c565,'apiDomain':_0xebe3dd[_0x32b951(0x19a)](),'apiDir':_0x3d8345,'selectedAppName':_0xebe3dd[_0x32b951(0x178)],'mergedCli':_0xebe3dd['mergedCli']}};},async 'confirmHighRisk'({env:_0x4f2c40,commandLabel:_0x4e0607}){const _0x1234b2=a230_0x10a254;if(_0x4f2c40[_0x1234b2(0x19f)])throw CliErrors[_0x1234b2(0x174)](_0x1234b2(0x195)+_0x4e0607+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x1234b2(0x198)+_0x4e0607,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x38e8bf=>CliErrors[_0x1234b2(0x191)](_0x38e8bf)});},async 'finalize'(){const {clearActiveCookie:_0x2386fc}=await import('../core/api-client.js');_0x2386fc();}};export async function runCommand(_0x3a9134,_0x8d8d86){const _0x103ea8=a230_0x10a254;assertRejectedFlags(_0x3a9134,_0x8d8d86[_0x103ea8(0x19e)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x3a9134)?withUpdateNotice(_0x3a9134):_0x3a9134,_0x8d8d86,runnerAdapter);}function assertRejectedFlags(_0x428394,_0x565842){const _0x47a25a=a230_0x10a254;for(const _0x81fc7c of _0x428394[_0x47a25a(0x18a)]??[]){const _0x5c7e17=GLOBAL_FLAGS[_0x47a25a(0x19b)](_0x7afd2=>_0x7afd2[_0x47a25a(0x1a5)]===_0x81fc7c['name']),_0x17d298=new Set([_0x81fc7c[_0x47a25a(0x1a5)],toCamelCase(_0x81fc7c['name']),_0x5c7e17?.['meowKey']]),_0x48603a=[..._0x17d298][_0x47a25a(0x182)](_0x425452=>{if(!_0x425452)return![];const _0x2a77db=_0x565842[_0x425452];return _0x2a77db!==undefined&&_0x2a77db!==null&&_0x2a77db!==![];});if(_0x48603a)throw CliErrors['validation'](_0x81fc7c[_0x47a25a(0x18e)],_0x81fc7c['hint']);}}function toCamelCase(_0x7e82e2){const _0x2964ec=a230_0x10a254;return _0x7e82e2[_0x2964ec(0x16b)](/-([a-z])/g,(_0x2e40bd,_0x48eb47)=>_0x48eb47[_0x2964ec(0x17b)]());}function shouldAttachUpdateNotice(_0x476236){const _0x45bfbd=a230_0x10a254;if(_0x476236[_0x45bfbd(0x1aa)]===![])return![];return![_0x45bfbd(0x17c),_0x45bfbd(0x18b),_0x45bfbd(0x173)][_0x45bfbd(0x184)](_0x476236[_0x45bfbd(0x172)]);}function a230_0x470e(){const _0x57f8fb=['nonInteractive','hasFormat','filter','replace','pageSize','resolve','Current\x20resolved\x20appcode\x20is\x20\x22','configMissing','cookie','map','service','doctor','validation','riskLevel','required','1663596JrzBpY','selectedAppName','format','none','toUpperCase','update','value','apiDir','9964620ZKXAsk','authRequired','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','some','object','includes','execute','LOVRABET_APPCODE','1835701itOVcD','requiresAppCode','RABETBASE_APPCODE','rejectedFlags','schema','332hoasTs','resolveCookie','message','appCode','resolveAppCode','cancelled','verbose','string','currentApp','High-risk\x20operation\x20`','explicitAppName','875856hNpapE','⚠\x20\x20High-risk\x20operation:\x20','34517277zwUBVE','resolveApiDomain','find','../core/api-client.js','command','rawFlags','isNonInteractive','_notice','trim','appcode','8xAJaNY','apps','name','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','6751205HHpZnx','39801nvyrwC'];a230_0x470e=function(){return _0x57f8fb;};return a230_0x470e();}function withUpdateNotice(_0x2e9751){return{..._0x2e9751,async 'execute'(_0x4ee320){const _0x105852=a230_0x4410,_0x5abbd0=shouldResolveUpdateNotice(_0x4ee320)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x105852(0x16d)](null),_0x308225=await _0x2e9751[_0x105852(0x185)](_0x4ee320);return attachUpdateNotice(_0x308225,await _0x5abbd0);}};}function shouldResolveUpdateNotice(_0x249854){const _0x452fed=a230_0x10a254;return _0x249854['format']==='pretty'&&!_0x249854[_0x452fed(0x1a9)];}function attachUpdateNotice(_0x478fc5,_0xe38b21){const _0xe98356=a230_0x10a254;if(!_0xe38b21||!_0x478fc5||typeof _0x478fc5!=='object')return _0x478fc5;const _0x28d498=_0x478fc5,_0x44f18d=typeof _0x28d498[_0xe98356(0x1a0)]===_0xe98356(0x183)&&_0x28d498[_0xe98356(0x1a0)]!==null?_0x28d498[_0xe98356(0x1a0)]:{};return{..._0x28d498,'_notice':{..._0x44f18d,'update':_0xe38b21}};}
1
+ const a231_0x2464f9=a231_0x4f94;(function(_0x39f241,_0x36a45b){const _0x2e1005=a231_0x4f94,_0x42e332=_0x39f241();while(!![]){try{const _0xd1e994=-parseInt(_0x2e1005(0x1d1))/0x1+parseInt(_0x2e1005(0x201))/0x2+-parseInt(_0x2e1005(0x20b))/0x3*(parseInt(_0x2e1005(0x1d9))/0x4)+parseInt(_0x2e1005(0x1cc))/0x5*(-parseInt(_0x2e1005(0x1d8))/0x6)+parseInt(_0x2e1005(0x20a))/0x7*(parseInt(_0x2e1005(0x1dd))/0x8)+-parseInt(_0x2e1005(0x1e5))/0x9+parseInt(_0x2e1005(0x1eb))/0xa;if(_0xd1e994===_0x36a45b)break;else _0x42e332['push'](_0x42e332['shift']());}catch(_0x38b48b){_0x42e332['push'](_0x42e332['shift']());}}}(a231_0x3b9c,0x859fa));import{resolveCommandAuthMode,runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a231_0x8baeb9}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0x16ce3a){return typeof _0x16ce3a==='string'&&_0x16ce3a['trim']()?_0x16ce3a['trim']():undefined;}function resolveEnvAppCode(){const _0x50483d=a231_0x4f94,_0x2bad5f=stringFlag(process.env.RABETBASE_APPCODE);if(_0x2bad5f)return{'name':_0x50483d(0x1f4),'value':_0x2bad5f};const _0x4e599a=stringFlag(process.env.LOVRABET_APPCODE);if(_0x4e599a)return{'name':_0x50483d(0x1fe),'value':_0x4e599a};return undefined;}function hasExplicitAppCode(_0x13b07a,_0x2ba77e){const _0x3c6422=a231_0x4f94;return!!(stringFlag(_0x13b07a['appcode'])||stringFlag(_0x2ba77e[_0x3c6422(0x1d0)]));}function assertEnvAppCodeNotIgnored(_0x21820d,_0x103e01,_0x3e3853){const _0x3a4a04=a231_0x4f94;if(!_0x103e01||_0x3e3853||_0x21820d===_0x103e01[_0x3a4a04(0x209)])return;const _0x2029a2=_0x21820d?'Current\x20resolved\x20appcode\x20is\x20\x22'+_0x21820d+'\x22.':'No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.';throw CliErrors['validation'](_0x103e01['name']+'='+_0x103e01['value']+_0x3a4a04(0x1d7)+_0x2029a2+'\x20'+(_0x3a4a04(0x1ea)+_0x103e01[_0x3a4a04(0x1d4)]+'\x22.'));}export function createPipelineEnv(_0x1e13c1,_0x1611a7,_0x1e0b74=[]){const _0x5b81a9=a231_0x4f94;return{'rawFlags':_0x1611a7,'args':_0x1e0b74,'resolveAppCode':()=>_0x1e13c1[_0x5b81a9(0x1f2)],'resolveCookie':()=>_0x1e13c1[_0x5b81a9(0x1e3)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a231_0x8baeb9(_0x1611a7),'defaultFormat':_0x1e13c1[_0x5b81a9(0x202)],'defaultPageSize':_0x1e13c1[_0x5b81a9(0x1cf)],'defaultVerbose':_0x1e13c1[_0x5b81a9(0x1f6)],'apiDir':_0x1e13c1[_0x5b81a9(0x203)],'riskLevel':_0x1e13c1[_0x5b81a9(0x1ed)],'selectedAppName':_0x1e13c1[_0x5b81a9(0x1f0)],'mergedCli':{'defaultApp':_0x1e13c1[_0x5b81a9(0x1da)],'currentApp':_0x1e13c1['currentApp'],'appCode':_0x1e13c1[_0x5b81a9(0x1f2)],'apps':_0x1e13c1[_0x5b81a9(0x20d)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a231_0x2464f9(0x1ca)](_0x6c2cb8=>PIPELINE_FLAG_NAMES[a231_0x2464f9(0x1f1)](_0x6c2cb8[a231_0x2464f9(0x1d4)]))['map'](({name:_0x3858da,type:_0x41d543,description:_0x281766})=>({'name':_0x3858da,'type':_0x41d543,'description':_0x281766})),'formatOutput':formatOutput,'getCommandLabel'(_0x25a5d7){return CLI_BIN_NAME+'\x20'+_0x25a5d7['service']+'\x20'+_0x25a5d7['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x55b5ad){const _0x3dc1d8=a231_0x2464f9;return CliErrors[_0x3dc1d8(0x1e1)](_0x55b5ad);}},async 'prepare'(_0x1e7435,_0x3920a8,_0x76c67a,_0x9727f7){const _0x23d611=a231_0x2464f9,_0x31babe=_0x3920a8[_0x23d611(0x203)]||DEFAULT_API_DIR;resolveAliasToCode(_0x1e7435,_0x76c67a,_0x31babe,_0x9727f7);const _0x50e25f=resolveCommandAuthMode(_0x1e7435);let _0x4c5e6e='';if(_0x50e25f!==_0x23d611(0x1ee)){_0x4c5e6e=_0x3920a8[_0x23d611(0x1fb)]()||'';if(!_0x4c5e6e){if(_0x50e25f===_0x23d611(0x1f9))throw CliErrors[_0x23d611(0x1f8)]();}else{const {setActiveCookie:_0x206031}=await import('../core/api-client.js');_0x206031(_0x4c5e6e);}}const _0x3b9522=_0x3920a8[_0x23d611(0x1e8)]()??'';if(_0x1e7435[_0x23d611(0x206)]!==![]){assertEnvAppCodeNotIgnored(_0x3b9522,resolveEnvAppCode(),hasExplicitAppCode(_0x76c67a,_0x3920a8[_0x23d611(0x1d6)]));if(!_0x3b9522)throw CliErrors[_0x23d611(0x1f3)](_0x23d611(0x20c)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x3920a8[_0x23d611(0x1fa)]},'numbers':{'pagesize':_0x3920a8['defaultPageSize']}},'extras':{'appCode':_0x3b9522,'cookie':_0x4c5e6e,'apiDomain':_0x3920a8['resolveApiDomain'](),'apiDir':_0x31babe,'selectedAppName':_0x3920a8[_0x23d611(0x1e9)],'mergedCli':_0x3920a8['mergedCli']}};},async 'confirmHighRisk'({env:_0x21542e,commandLabel:_0x40d31f}){const _0x3797da=a231_0x2464f9;if(_0x21542e[_0x3797da(0x1e6)])throw CliErrors[_0x3797da(0x1e1)](_0x3797da(0x1cb)+_0x40d31f+_0x3797da(0x1dc));await requireConfirmationPrompt({'lines':[_0x3797da(0x1ef)+_0x40d31f,_0x3797da(0x1f5)],'createCancelledError':_0x5643c8=>CliErrors[_0x3797da(0x1cd)](_0x5643c8)});},async 'finalize'(){const _0x77052f=a231_0x2464f9,{clearActiveCookie:_0x523b50}=await import(_0x77052f(0x1d3));_0x523b50();}};export async function runCommand(_0x185ba6,_0x21a300){const _0xa86542=a231_0x2464f9;assertRejectedFlags(_0x185ba6,_0x21a300[_0xa86542(0x1d6)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x185ba6)?withUpdateNotice(_0x185ba6):_0x185ba6,_0x21a300,runnerAdapter);}function a231_0x4f94(_0x40a28a,_0x220784){_0x40a28a=_0x40a28a-0x1ca;const _0x3b9cc8=a231_0x3b9c();let _0x4f9420=_0x3b9cc8[_0x40a28a];return _0x4f9420;}function assertRejectedFlags(_0x4fc704,_0x25ecac){const _0x4d8e96=a231_0x2464f9;for(const _0x46d418 of _0x4fc704[_0x4d8e96(0x1f7)]??[]){const _0x4d436b=GLOBAL_FLAGS[_0x4d8e96(0x1de)](_0x973a2e=>_0x973a2e['name']===_0x46d418['name']),_0x59fa7b=new Set([_0x46d418[_0x4d8e96(0x1d4)],toCamelCase(_0x46d418[_0x4d8e96(0x1d4)]),_0x4d436b?.[_0x4d8e96(0x1db)]]),_0x17cc3a=[..._0x59fa7b][_0x4d8e96(0x1ce)](_0x3c5e88=>{if(!_0x3c5e88)return![];const _0x371a09=_0x25ecac[_0x3c5e88];return _0x371a09!==undefined&&_0x371a09!==null&&_0x371a09!==![];});if(_0x17cc3a)throw CliErrors[_0x4d8e96(0x1e1)](_0x46d418[_0x4d8e96(0x200)],_0x46d418[_0x4d8e96(0x1fc)]);}}function toCamelCase(_0x5d4281){const _0x4b9248=a231_0x2464f9;return _0x5d4281[_0x4b9248(0x1ec)](/-([a-z])/g,(_0x40260b,_0x4309ea)=>_0x4309ea[_0x4b9248(0x1e2)]());}function a231_0x3b9c(){const _0x5d202f=['selectedAppName','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','3539690GcfIxs','replace','riskLevel','none','⚠\x20\x20High-risk\x20operation:\x20','explicitAppName','has','appCode','configMissing','RABETBASE_APPCODE','\x20\x20\x20Continue?\x20[y/N]\x20','verbose','rejectedFlags','authRequired','required','defaultVerbose','resolveCookie','hint','service','LOVRABET_APPCODE','hasFormat','message','867908tjnoQL','format','apiDir','update','_notice','requiresAppCode','doctor','pretty','value','21bYYMgW','278247LKrYTd','Set\x20appcode\x20via\x20`','apps','filter','High-risk\x20operation\x20`','20owTYoL','cancelled','some','pageSize','appcode','203092frEUks','object','../core/api-client.js','name','catch','rawFlags','\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20','621648tcGwJT','12CQeUWI','defaultApp','meowKey','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','2288120cPEvAu','find','schema','nonInteractive','validation','toUpperCase','cookie','execute','1825875ZPSSJO','isNonInteractive','resolve','resolveAppCode'];a231_0x3b9c=function(){return _0x5d202f;};return a231_0x3b9c();}function shouldAttachUpdateNotice(_0x555821){const _0x5e8c14=a231_0x2464f9;if(_0x555821[_0x5e8c14(0x1ff)]===![])return![];return![_0x5e8c14(0x204),_0x5e8c14(0x1df),_0x5e8c14(0x207)]['includes'](_0x555821[_0x5e8c14(0x1fd)]);}function withUpdateNotice(_0x509a91){return{..._0x509a91,async 'execute'(_0x3f4935){const _0xbe9dd1=a231_0x4f94,_0x449d4b=shouldResolveUpdateNotice(_0x3f4935)?resolveLatestUpdateNotice()[_0xbe9dd1(0x1d5)](()=>null):Promise[_0xbe9dd1(0x1e7)](null),_0x3326d1=await _0x509a91[_0xbe9dd1(0x1e4)](_0x3f4935);return attachUpdateNotice(_0x3326d1,await _0x449d4b);}};}function shouldResolveUpdateNotice(_0x57ecea){const _0x7451e7=a231_0x2464f9;return _0x57ecea[_0x7451e7(0x202)]===_0x7451e7(0x208)&&!_0x57ecea[_0x7451e7(0x1e0)];}function attachUpdateNotice(_0x35a6e0,_0x3cc6c5){const _0x1d2423=a231_0x2464f9;if(!_0x3cc6c5||!_0x35a6e0||typeof _0x35a6e0!==_0x1d2423(0x1d2))return _0x35a6e0;const _0x9fceda=_0x35a6e0,_0x4949e5=typeof _0x9fceda[_0x1d2423(0x205)]===_0x1d2423(0x1d2)&&_0x9fceda['_notice']!==null?_0x9fceda['_notice']:{};return{..._0x9fceda,'_notice':{..._0x4949e5,'update':_0x3cc6c5}};}