@lovrabet/rabetbase-cli 2.3.15-beta.1 → 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(_0x33d84a,_0x130e7f){const _0x982f92=a212_0x5a84,_0x402841=_0x33d84a();while(!![]){try{const _0x55ddfa=parseInt(_0x982f92(0xfd))/0x1+-parseInt(_0x982f92(0xf0))/0x2*(parseInt(_0x982f92(0xd3))/0x3)+-parseInt(_0x982f92(0xde))/0x4*(parseInt(_0x982f92(0xc8))/0x5)+-parseInt(_0x982f92(0xd5))/0x6*(parseInt(_0x982f92(0xc1))/0x7)+-parseInt(_0x982f92(0xda))/0x8+-parseInt(_0x982f92(0xcd))/0x9+parseInt(_0x982f92(0xf2))/0xa;if(_0x55ddfa===_0x130e7f)break;else _0x402841['push'](_0x402841['shift']());}catch(_0x148958){_0x402841['push'](_0x402841['shift']());}}}(a212_0x534c,0x818eb));import{MYBATIS_DYNAMIC_END_MARKER,MYBATIS_DYNAMIC_START_MARKER,MYBATIS_INCLUDE_MARKER,normalizeSqlForStaticAnalysis}from'./sql-validator.js';function a212_0x534c(){const _0x38cbdf=['where','containsUnresolvedInclude','unknown','join','warning','\x5cs*\x5c.\x5cs*[\x5cw$]+','matchAll','327426pWkRKj','INDEX_METADATA_UNAVAILABLE','some','search','JOIN_PREDICATE_UNSUPPORTED','\x5c$&','alias','MyBatis\x20<include>\x20JOIN\x20fragments\x20cannot\x20be\x20expanded\x20statically.','length','test','includes','has','Derived-table\x20JOIN\x20targets\x20are\x20not\x20supported.','JOIN_INDEX_NOT_USABLE','6433DGxsKz','toUpperCase','toLowerCase','columns','replace','max','full','382165BcEiwP','metadataAvailable','min','OR-connected\x20JOIN\x20predicates\x20are\x20not\x20supported.','INNER','5458734owofTm','index','right','JOIN_INDEX_MISSING','tableName','trim','476001OSlDHN','sql','1278ZvCNMr','Relevant\x20columns\x20do\x20not\x20form\x20a\x20complete\x20leftmost\x20index\x20prefix.','add','from','unavailable','4877648HRmvcQ','table','__sq__','indexOf','4ySgLFM','replaceAll','Not\x20every\x20JOIN\x20target\x20predicate\x20could\x20be\x20audited\x20safely.','push','The\x20dataset\x20returned\x20no\x20distinguishable\x20index\x20metadata.','MyBatis\x20dynamic\x20JOIN\x20predicates\x20cannot\x20be\x20audited\x20deterministically.','No\x20dataset\x20metadata\x20matched\x20the\x20JOIN\x20table.','left','matchedPrefix','startsWith','filter','map','using','slice','position','endsWith','error','split','4dGGnYX','indexes','20089870auILuE','(?:^|[^\x5cw$])','inner','exec'];a212_0x534c=function(){return _0x38cbdf;};return a212_0x534c();}export function auditSqlJoinIndexes(_0x74516c,_0x584d0d){const _0x2f2693=a212_0x5a84,_0x3e6cd1=[],_0x39b40d=normalizeSqlForStaticAnalysis(_0x74516c),_0x550015=(_0x39b40d[_0x2f2693(0xee)]?[]:extractJoinFacts(_0x39b40d[_0x2f2693(0xd4)]))['map'](_0x447596=>{const _0x56c9dc=_0x2f2693;if(_0x447596['unsupportedPredicate']||_0x447596[_0x56c9dc(0xc4)]['length']===0x0)return _0x3e6cd1['push']({'code':_0x56c9dc(0xb7),'table':_0x447596['table'],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596['columns'],'reason':_0x447596['unsupportedReason']??_0x56c9dc(0xe0)}),{'table':_0x447596['table'],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596[_0x56c9dc(0xc4)],'status':'unavailable'};const _0x46cbaf=resolveTableMetadata(_0x584d0d,_0x447596['table']),_0x501764=(_0x46cbaf?.[_0x56c9dc(0xf1)]??[])[_0x56c9dc(0xe9)](_0x38a0f7=>({'index':_0x38a0f7,'matchedPrefix':findEqualityPrefix(_0x38a0f7['columns'],_0x447596[_0x56c9dc(0xc4)])}))['filter'](_0x376240=>_0x376240['matchedPrefix'][_0x56c9dc(0xbb)]>0x0),_0x516826=_0x501764['reduce']((_0x51cf79,_0x253f2f)=>!_0x51cf79||_0x253f2f[_0x56c9dc(0xe6)]['length']>_0x51cf79[_0x56c9dc(0xe6)]['length']?_0x253f2f:_0x51cf79,_0x501764[0x0]);if(_0x516826)return{'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596[_0x56c9dc(0xc4)],'status':'covered','matchedIndex':{..._0x516826[_0x56c9dc(0xce)],'matchedPrefix':_0x516826[_0x56c9dc(0xe6)]}};const _0x1d7146=_0x46cbaf?.[_0x56c9dc(0xf1)][_0x56c9dc(0xe8)](_0x4d9378=>_0x4d9378[_0x56c9dc(0xc4)][_0x56c9dc(0xff)](_0x409682=>_0x447596[_0x56c9dc(0xc4)]['some'](_0x32dfc4=>columnNamesMatch(_0x409682,_0x32dfc4))))??[];if(_0x1d7146['length']>0x0)return _0x3e6cd1['push']({'code':_0x56c9dc(0xc0),'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596['columns'],'reason':_0x56c9dc(0xd6)}),{'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596[_0x56c9dc(0xc4)],'status':_0x56c9dc(0xfa),'candidateIndexes':_0x1d7146};if(_0x46cbaf&&_0x46cbaf[_0x56c9dc(0xc9)]!==![]&&_0x46cbaf['indexes'][_0x56c9dc(0xbb)]>0x0&&_0x447596[_0x56c9dc(0xc4)][_0x56c9dc(0xbb)]>0x0)return _0x3e6cd1[_0x56c9dc(0xe1)]({'code':_0x56c9dc(0xd0),'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596[_0x56c9dc(0xc4)],'reason':'No\x20reported\x20index\x20contains\x20the\x20JOIN\x20access\x20columns.'}),{'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596['alias'],'columns':_0x447596[_0x56c9dc(0xc4)],'status':_0x56c9dc(0xfa)};return _0x3e6cd1[_0x56c9dc(0xe1)]({'code':_0x56c9dc(0xfe),'table':_0x447596[_0x56c9dc(0xdb)],'alias':_0x447596[_0x56c9dc(0xb9)],'columns':_0x447596[_0x56c9dc(0xc4)],'reason':_0x46cbaf?_0x56c9dc(0xe2):_0x56c9dc(0xe4)}),{'table':_0x447596['table'],'alias':_0x447596['alias'],'columns':_0x447596[_0x56c9dc(0xc4)],'status':_0x56c9dc(0xd9)};});return{'checked':_0x550015['length']>0x0,'joins':_0x550015,'warnings':_0x3e6cd1};}function extractJoinFacts(_0x3a1fe0){const _0x15e740=a212_0x5a84,_0x3f2790=maskNestedQueries(stripSqlNoise(_0x3a1fe0)),_0x3873b8=maskQuotedIdentifiers(_0x3f2790),_0x3f84c7=[],_0x4747c3=new Set(),_0x593992=/\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 _0x579cd9 of _0x3f2790['matchAll'](_0x593992)){const _0x5cb7bb=_0x579cd9[_0x15e740(0xce)]??0x0,_0x453f5e=_0x579cd9[0x0][_0x15e740(0x100)](/\bJOIN\b/i),_0x523bcd=_0x5cb7bb+Math[_0x15e740(0xc6)](0x0,_0x453f5e);if(!/^JOIN\b/i[_0x15e740(0xbc)](_0x3873b8[_0x15e740(0xeb)](_0x523bcd)))continue;_0x4747c3[_0x15e740(0xd7)](_0x523bcd);const _0xe06927=normalizeIdentifier(_0x579cd9[0x1]||_0x15e740(0xcc)),_0x19bcf6=normalizeIdentifier(_0x579cd9[0x2]??''),_0x230f84=normalizeIdentifier(_0x579cd9[0x3]||_0x19bcf6['split']('.')['at'](-0x1)||_0x19bcf6),_0x57e6f4=[],_0x2807c8=_0x19bcf6===_0x15e740(0xdc);let _0x486588=_0xe06927===_0x15e740(0xcf)||_0xe06927===_0x15e740(0xc7)||_0x2807c8,_0x2de099=_0x486588?_0x2807c8?_0x15e740(0xbf):_0xe06927['toUpperCase']()+'\x20JOIN\x20direction\x20is\x20not\x20supported\x20by\x20static\x20index\x20auditing.':undefined;const _0x4193d3=stripOuterParentheses(_0x579cd9[0x4]??''),_0x1281d7=_0x4193d3[_0x15e740(0xbd)](MYBATIS_DYNAMIC_START_MARKER)||_0x4193d3[_0x15e740(0xbd)](MYBATIS_DYNAMIC_END_MARKER),_0x2db9c0=_0x4193d3[_0x15e740(0xbd)](MYBATIS_INCLUDE_MARKER);_0x1281d7&&(_0x486588=!![],_0x2de099??=_0x15e740(0xe3));_0x2db9c0&&(_0x486588=!![],_0x2de099??=_0x15e740(0xba));const _0x221582=_0x4193d3[_0x15e740(0xdf)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')[_0x15e740(0xdf)](MYBATIS_INCLUDE_MARKER,'\x20');hasTopLevelKeyword(_0x221582,'OR')&&(_0x486588=!![],_0x2de099??=_0x15e740(0xcb));for(const _0xfe6f0e of splitTopLevelAnd(_0x221582)){const _0x5f58f4=stripOuterParentheses(_0xfe6f0e);if(hasTopLevelKeyword(_0x5f58f4,'OR')){_0x486588=!![],_0x2de099??=_0x15e740(0xcb);continue;}const _0x50a4e7=splitEquality(_0x5f58f4);if(!_0x50a4e7){containsColumnReference(_0xfe6f0e,_0x230f84)&&(_0x486588=!![]);continue;}const _0x4dba71=parseDirectColumnReference(_0x50a4e7[0x0],_0x230f84),_0x4c0abf=parseDirectColumnReference(_0x50a4e7[0x1],_0x230f84),_0x3e261e=containsColumnReference(_0x50a4e7[0x0],_0x230f84),_0x1e3c78=containsColumnReference(_0x50a4e7[0x1],_0x230f84),_0xda9fc9=_0x4dba71&&!_0x1e3c78?_0x4dba71:_0x4c0abf&&!_0x3e261e?_0x4c0abf:null;if(_0xda9fc9&&!_0x57e6f4['includes'](_0xda9fc9))_0x57e6f4[_0x15e740(0xe1)](_0xda9fc9);else!_0xda9fc9&&containsColumnReference(_0xfe6f0e,_0x230f84)&&(_0x486588=!![]);}_0x3f84c7['push']({'table':_0x19bcf6,'alias':_0x230f84,'columns':_0x57e6f4,'unsupportedPredicate':_0x486588,'unsupportedReason':_0x2de099,'containsUnresolvedInclude':_0x2db9c0,'position':_0x523bcd});}for(const _0x463d75 of _0x3873b8[_0x15e740(0xfc)](/\bJOIN\b/gi)){const _0x3fb092=_0x463d75[_0x15e740(0xce)]??0x0;if(_0x4747c3[_0x15e740(0xbe)](_0x3fb092))continue;const _0x369ef9=/^\s+([`"\w$.]+)(?:\s+(?:AS\s+)?([`"\w$]+))?/[_0x15e740(0xf5)](_0x3f2790[_0x15e740(0xeb)](_0x3fb092+_0x463d75[0x0][_0x15e740(0xbb)])),_0x42ac59=normalizeIdentifier(_0x369ef9?.[0x1]||_0x15e740(0xf8)),_0x5e799f=normalizeIdentifier(_0x369ef9?.[0x2]||''),_0x4ba2ac=isSqlClauseKeyword(_0x5e799f)?_0x42ac59[_0x15e740(0xef)]('.')['at'](-0x1)||_0x42ac59:_0x5e799f||_0x42ac59['split']('.')['at'](-0x1)||_0x42ac59;_0x3f84c7['push']({'table':_0x42ac59,'alias':_0x4ba2ac,'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'Only\x20explicit\x20table\x20JOIN\x20clauses\x20with\x20an\x20ON\x20predicate\x20are\x20supported.','position':_0x3fb092});}const _0x47fd98=_0x3873b8[_0x15e740(0xdd)](MYBATIS_INCLUDE_MARKER);return _0x47fd98>=0x0&&!_0x3f84c7[_0x15e740(0xff)](_0x1db715=>_0x1db715[_0x15e740(0xf7)])&&_0x3f84c7[_0x15e740(0xe1)]({'table':'unknown','alias':_0x15e740(0xf8),'columns':[],'unsupportedPredicate':!![],'unsupportedReason':'MyBatis\x20<include>\x20fragments\x20cannot\x20be\x20expanded\x20for\x20JOIN\x20auditing.','containsUnresolvedInclude':!![],'position':_0x47fd98}),_0x3f84c7['sort']((_0x18d5c9,_0xd2290d)=>_0x18d5c9[_0x15e740(0xec)]-_0xd2290d[_0x15e740(0xec)]);}function stripSqlNoise(_0x4defb4){const _0x4b11ba=a212_0x5a84,_0x8c8914=Array[_0x4b11ba(0xd8)](_0x4defb4),_0x3bd45d=(_0x247848,_0x44e6b1)=>{for(let _0x41f070=_0x247848;_0x41f070<_0x44e6b1;_0x41f070+=0x1){_0x8c8914[_0x41f070]!=='\x0a'&&_0x8c8914[_0x41f070]!=='\x0d'&&(_0x8c8914[_0x41f070]='\x20');}};for(let _0x5371f3=0x0;_0x5371f3<_0x8c8914[_0x4b11ba(0xbb)];_0x5371f3+=0x1){const _0x2ebc32=_0x8c8914[_0x5371f3],_0x1c9acf=_0x8c8914[_0x5371f3+0x1];if(_0x2ebc32==='\x27'||_0x2ebc32==='\x22'||_0x2ebc32==='`'){const _0x21dd3c=_0x2ebc32,_0x317e73=_0x5371f3;_0x5371f3+=0x1;while(_0x5371f3<_0x8c8914[_0x4b11ba(0xbb)]){if(_0x8c8914[_0x5371f3]==='\x5c'&&_0x5371f3+0x1<_0x8c8914['length']){_0x5371f3+=0x2;continue;}if(_0x8c8914[_0x5371f3]!==_0x21dd3c){_0x5371f3+=0x1;continue;}if(_0x8c8914[_0x5371f3+0x1]===_0x21dd3c){_0x5371f3+=0x2;continue;}break;}if(_0x21dd3c==='\x27')_0x3bd45d(_0x317e73,Math['min'](_0x5371f3+0x1,_0x8c8914[_0x4b11ba(0xbb)]));continue;}if(_0x2ebc32==='-'&&_0x1c9acf==='-'){const _0x1332ee=_0x5371f3;while(_0x5371f3<_0x8c8914[_0x4b11ba(0xbb)]&&_0x8c8914[_0x5371f3]!=='\x0a')_0x5371f3+=0x1;_0x3bd45d(_0x1332ee,_0x5371f3);continue;}if(_0x2ebc32==='/'&&_0x1c9acf==='*'){const _0x365f83=_0x5371f3;_0x5371f3+=0x2;while(_0x5371f3<_0x8c8914['length']&&!(_0x8c8914[_0x5371f3]==='*'&&_0x8c8914[_0x5371f3+0x1]==='/')){_0x5371f3+=0x1;}_0x5371f3=Math['min'](_0x5371f3+0x1,_0x8c8914[_0x4b11ba(0xbb)]-0x1),_0x3bd45d(_0x365f83,_0x5371f3+0x1);continue;}if(_0x2ebc32==='#'&&_0x1c9acf!=='{'){const _0x2c271c=_0x5371f3;while(_0x5371f3<_0x8c8914[_0x4b11ba(0xbb)]&&_0x8c8914[_0x5371f3]!=='\x0a')_0x5371f3+=0x1;_0x3bd45d(_0x2c271c,_0x5371f3);continue;}if((_0x2ebc32==='#'||_0x2ebc32==='$')&&_0x1c9acf==='{'){const _0x25361a=_0x5371f3;_0x5371f3+=0x2;while(_0x5371f3<_0x8c8914[_0x4b11ba(0xbb)]&&_0x8c8914[_0x5371f3]!=='}')_0x5371f3+=0x1;_0x3bd45d(_0x25361a,Math[_0x4b11ba(0xca)](_0x5371f3+0x1,_0x8c8914[_0x4b11ba(0xbb)]));}}return _0x8c8914[_0x4b11ba(0xf9)]('');}function maskQuotedIdentifiers(_0x2a8457){const _0x5ab771=a212_0x5a84,_0x4cf538=Array['from'](_0x2a8457);for(let _0x1da362=0x0;_0x1da362<_0x4cf538['length'];_0x1da362+=0x1){const _0x1e8c58=_0x4cf538[_0x1da362];if(_0x1e8c58!=='\x22'&&_0x1e8c58!=='`')continue;_0x1da362+=0x1;while(_0x1da362<_0x4cf538[_0x5ab771(0xbb)]){if(_0x4cf538[_0x1da362]===_0x1e8c58){if(_0x4cf538[_0x1da362+0x1]===_0x1e8c58){_0x4cf538[_0x1da362]='\x20',_0x4cf538[_0x1da362+0x1]='\x20',_0x1da362+=0x2;continue;}break;}_0x4cf538[_0x1da362]='\x20',_0x1da362+=0x1;}}return _0x4cf538['join']('');}function maskNestedQueries(_0x263565){const _0x950a76=a212_0x5a84,_0x32522a=Array[_0x950a76(0xd8)](_0x263565);for(let _0x2c1400=0x0;_0x2c1400<_0x32522a[_0x950a76(0xbb)];_0x2c1400+=0x1){if(_0x32522a[_0x2c1400]!=='(')continue;const _0x1d5e99=_0x263565[_0x950a76(0xeb)](_0x2c1400+0x1);if(!/^\s*(?:SELECT|WITH)\b/i['test'](_0x1d5e99))continue;let _0x3b8e78=0x1,_0x2a1040=_0x2c1400+0x1;for(;_0x2a1040<_0x32522a[_0x950a76(0xbb)]&&_0x3b8e78>0x0;_0x2a1040+=0x1){if(_0x32522a[_0x2a1040]==='(')_0x3b8e78+=0x1;if(_0x32522a[_0x2a1040]===')')_0x3b8e78-=0x1;}if(_0x3b8e78!==0x0)continue;for(let _0x3d3ef1=_0x2c1400;_0x3d3ef1<_0x2a1040;_0x3d3ef1+=0x1){_0x32522a[_0x3d3ef1]='\x20';}const _0x44d7b8='__sq__';for(let _0x116c81=0x0;_0x116c81<_0x44d7b8[_0x950a76(0xbb)]&&_0x2c1400+_0x116c81<_0x2a1040;_0x116c81+=0x1){_0x32522a[_0x2c1400+_0x116c81]=_0x44d7b8[_0x116c81];}_0x2c1400=_0x2a1040-0x1;}return _0x32522a['join']('');}function splitTopLevelAnd(_0x1b3317){const _0xd8d9ac=a212_0x5a84,_0x557728=[];let _0x75bd4f=0x0,_0x22d6a5=0x0;for(let _0x4ccf2c=0x0;_0x4ccf2c<_0x1b3317[_0xd8d9ac(0xbb)];_0x4ccf2c+=0x1){const _0x48451a=_0x1b3317[_0x4ccf2c];if(_0x48451a==='(')_0x75bd4f+=0x1;if(_0x48451a===')')_0x75bd4f=Math[_0xd8d9ac(0xc6)](0x0,_0x75bd4f-0x1);_0x75bd4f===0x0&&_0x1b3317[_0xd8d9ac(0xeb)](_0x4ccf2c)['match'](/^AND\b/i)&&(_0x4ccf2c===0x0||/\s/['test'](_0x1b3317[_0x4ccf2c-0x1]??''))&&(_0x557728[_0xd8d9ac(0xe1)](_0x1b3317['slice'](_0x22d6a5,_0x4ccf2c)[_0xd8d9ac(0xd2)]()),_0x4ccf2c+=0x2,_0x22d6a5=_0x4ccf2c+0x1);}const _0x3a482e=_0x1b3317[_0xd8d9ac(0xeb)](_0x22d6a5)[_0xd8d9ac(0xd2)]();if(_0x3a482e)_0x557728[_0xd8d9ac(0xe1)](_0x3a482e);return _0x557728;}function hasTopLevelKeyword(_0x1f2fef,_0x5638de){const _0x40082e=a212_0x5a84;let _0x4a0cfd=0x0;for(let _0xcdf210=0x0;_0xcdf210<_0x1f2fef[_0x40082e(0xbb)];_0xcdf210+=0x1){const _0x46a69f=_0x1f2fef[_0xcdf210];if(_0x46a69f==='(')_0x4a0cfd+=0x1;if(_0x46a69f===')')_0x4a0cfd=Math['max'](0x0,_0x4a0cfd-0x1);if(_0x4a0cfd!==0x0)continue;const _0x3a8064=_0x1f2fef[_0x40082e(0xeb)](_0xcdf210,_0xcdf210+_0x5638de['length']),_0x191455=_0x1f2fef[_0xcdf210-0x1]??'\x20',_0x499449=_0x1f2fef[_0xcdf210+_0x5638de[_0x40082e(0xbb)]]??'\x20';if(_0x3a8064[_0x40082e(0xc2)]()===_0x5638de[_0x40082e(0xc2)]()&&!/[\w$]/['test'](_0x191455)&&!/[\w$]/[_0x40082e(0xbc)](_0x499449))return!![];}return![];}function a212_0x5a84(_0x567d15,_0x582340){_0x567d15=_0x567d15-0xb7;const _0x534cbf=a212_0x534c();let _0x5a8419=_0x534cbf[_0x567d15];return _0x5a8419;}function splitEquality(_0x42f684){const _0x1e0239=a212_0x5a84,_0x5c446d=stripOuterParentheses(_0x42f684);let _0x3ad657=0x0,_0x387b19;for(let _0x508ef4=0x0;_0x508ef4<_0x5c446d['length'];_0x508ef4+=0x1){const _0x36f9db=_0x5c446d[_0x508ef4];if(_0x36f9db==='(')_0x3ad657+=0x1;if(_0x36f9db===')')_0x3ad657=Math[_0x1e0239(0xc6)](0x0,_0x3ad657-0x1);const _0x5b615b=_0x5c446d[_0x508ef4-0x1]??'',_0x3e1aad=_0x5c446d[_0x508ef4+0x1]??'';if(_0x36f9db==='='&&_0x3ad657===0x0&&!/[!<>=:]/['test'](_0x5b615b)&&_0x3e1aad!=='='){if(_0x387b19!==undefined)return null;_0x387b19=_0x508ef4;}}return _0x387b19===undefined?null:[_0x5c446d[_0x1e0239(0xeb)](0x0,_0x387b19)['trim'](),_0x5c446d[_0x1e0239(0xeb)](_0x387b19+0x1)[_0x1e0239(0xd2)]()];}function parseDirectColumnReference(_0x783e25,_0x155edf){const _0x3cb44e=a212_0x5a84,_0x16290d=/^([`"]?[\w$]+[`"]?)\s*\.\s*([`"]?[\w$]+[`"]?)$/[_0x3cb44e(0xf5)](stripOuterParentheses(_0x783e25));if(!_0x16290d)return null;if(normalizeIdentifier(_0x16290d[0x1]??'')!==normalizeIdentifier(_0x155edf))return null;return normalizeIdentifier(_0x16290d[0x2]??'');}function containsColumnReference(_0x316c95,_0xcef8af){const _0x5c04db=a212_0x5a84,_0x11647e=_0x316c95[_0x5c04db(0xc5)](/[`"]/g,''),_0x1ac561=_0xcef8af[_0x5c04db(0xc5)](/[.*+?^${}()|[\]\\]/g,_0x5c04db(0xb8));return new RegExp(_0x5c04db(0xf3)+_0x1ac561+_0x5c04db(0xfb),'i')[_0x5c04db(0xbc)](_0x11647e);}function findEqualityPrefix(_0x2e54e4,_0x397f10){const _0x4cf3c1=a212_0x5a84,_0xd923b9=new Set(_0x397f10[_0x4cf3c1(0xe9)](normalizeIdentifier)),_0x1a0199=[];for(const _0x18154a of _0x2e54e4){if(!_0xd923b9[_0x4cf3c1(0xbe)](normalizeIdentifier(_0x18154a)))break;_0x1a0199[_0x4cf3c1(0xe1)](_0x18154a);}return _0x1a0199;}function resolveTableMetadata(_0x3378dc,_0x361512){const _0x296be5=a212_0x5a84,_0xabee7f=normalizeIdentifier(_0x361512),_0x395c56=_0x3378dc['filter'](_0x3ba301=>normalizeIdentifier(_0x3ba301[_0x296be5(0xd1)])===_0xabee7f);if(_0x395c56[_0x296be5(0xbb)]===0x1)return _0x395c56[0x0];const _0x4db7ae=_0xabee7f[_0x296be5(0xbd)]('.'),_0x35afa3=_0xabee7f[_0x296be5(0xef)]('.')['at'](-0x1),_0x196156=_0x3378dc['filter'](_0x54680f=>{const _0x557938=_0x296be5,_0x4aee57=normalizeIdentifier(_0x54680f[_0x557938(0xd1)]);if(_0x4db7ae&&_0x4aee57[_0x557938(0xbd)]('.'))return![];return _0x4aee57[_0x557938(0xef)]('.')['at'](-0x1)===_0x35afa3;});return _0x196156[_0x296be5(0xbb)]===0x1?_0x196156[0x0]:undefined;}function columnNamesMatch(_0x803e9d,_0xcada0e){return normalizeIdentifier(_0x803e9d)===normalizeIdentifier(_0xcada0e);}function normalizeIdentifier(_0x1e8f4a){const _0x304a1c=a212_0x5a84;return _0x1e8f4a[_0x304a1c(0xc5)](/[`"]/g,'')[_0x304a1c(0xd2)]()[_0x304a1c(0xc3)]();}function isSqlClauseKeyword(_0x19a57b){const _0x20fe93=a212_0x5a84;return new Set(['on',_0x20fe93(0xea),_0x20fe93(0xf6),_0x20fe93(0xf9),_0x20fe93(0xf4),_0x20fe93(0xe5),_0x20fe93(0xcf),'full','cross','natural'])[_0x20fe93(0xbe)](_0x19a57b);}function stripOuterParentheses(_0xffc6e8){const _0x5c1d18=a212_0x5a84;let _0x25b27b=_0xffc6e8[_0x5c1d18(0xd2)]();while(_0x25b27b[_0x5c1d18(0xe7)]('(')&&_0x25b27b[_0x5c1d18(0xed)](')')){let _0x4d387e=0x0,_0x2b6bd1=!![];for(let _0x58c188=0x0;_0x58c188<_0x25b27b[_0x5c1d18(0xbb)];_0x58c188+=0x1){if(_0x25b27b[_0x58c188]==='(')_0x4d387e+=0x1;if(_0x25b27b[_0x58c188]===')')_0x4d387e-=0x1;if(_0x4d387e===0x0&&_0x58c188<_0x25b27b['length']-0x1){_0x2b6bd1=![];break;}}if(!_0x2b6bd1||_0x4d387e!==0x0)break;_0x25b27b=_0x25b27b[_0x5c1d18(0xeb)](0x1,-0x1)['trim']();}return _0x25b27b;}
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
- const a213_0x4a491a=a213_0x4848;(function(_0x3757d5,_0x555958){const _0x8762c1=a213_0x4848,_0x2dd580=_0x3757d5();while(!![]){try{const _0x1d8740=-parseInt(_0x8762c1(0x10c))/0x1+parseInt(_0x8762c1(0x113))/0x2+parseInt(_0x8762c1(0x115))/0x3*(-parseInt(_0x8762c1(0x111))/0x4)+-parseInt(_0x8762c1(0x10f))/0x5+parseInt(_0x8762c1(0x10d))/0x6*(parseInt(_0x8762c1(0x116))/0x7)+-parseInt(_0x8762c1(0x117))/0x8+parseInt(_0x8762c1(0x114))/0x9;if(_0x1d8740===_0x555958)break;else _0x2dd580['push'](_0x2dd580['shift']());}catch(_0x705f7){_0x2dd580['push'](_0x2dd580['shift']());}}}(a213_0x3651,0xc9a72));function a213_0x4848(_0x5edaee,_0x5b074e){_0x5edaee=_0x5edaee-0x10c;const _0x36518a=a213_0x3651();let _0x484877=_0x36518a[_0x5edaee];return _0x484877;}import{resolve}from'node:path';function a213_0x3651(){const _0x400d80=['28aPgaMG','sql-trash','223840taAagg','37181286PpuxsM','549255FfHSdQ','217ijrwyp','6989944irarzC','sql.lock.json','1193447BvROXc','28470rWHeRy','.rabetbase','1077570OtYbUa','/sql'];a213_0x3651=function(){return _0x400d80;};return a213_0x3651();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a213_0x4a491a(0x10e),LOCK_FILE_NAME=a213_0x4a491a(0x118),TRASH_DIR_NAME=a213_0x4a491a(0x112);export function loadSqlProjectConfig(_0x5aa5a6,_0x50e107){const _0x3d4d1c=a213_0x4a491a,_0x57ac06=resolve(_0x50e107??findProjectRootDirectory()),_0x12b880=DOT_DIR+_0x3d4d1c(0x110),_0xfe56df=_0x12b880+'/'+_0x5aa5a6;return{'projectRoot':_0x57ac06,'appCode':_0x5aa5a6,'sqlWorkspaceRoot':_0x12b880,'sqlRoot':_0xfe56df,'sqlRootDir':resolve(_0x57ac06,DOT_DIR,'sql',_0x5aa5a6),'lockFilePath':resolve(_0x57ac06,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x57ac06,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 a214_0x58b4(_0x137bba,_0x4e9e1a){_0x137bba=_0x137bba-0xed;const _0x9a070c=a214_0x9a07();let _0x58b465=_0x9a070c[_0x137bba];return _0x58b465;}(function(_0x4e5a09,_0x15d618){const _0x1dc46c=a214_0x58b4,_0x24ee66=_0x4e5a09();while(!![]){try{const _0x3e0ca2=parseInt(_0x1dc46c(0x102))/0x1*(-parseInt(_0x1dc46c(0xfd))/0x2)+parseInt(_0x1dc46c(0x109))/0x3+-parseInt(_0x1dc46c(0xf3))/0x4*(-parseInt(_0x1dc46c(0x106))/0x5)+-parseInt(_0x1dc46c(0xfb))/0x6*(-parseInt(_0x1dc46c(0xef))/0x7)+-parseInt(_0x1dc46c(0xf9))/0x8+parseInt(_0x1dc46c(0xf4))/0x9*(-parseInt(_0x1dc46c(0x105))/0xa)+-parseInt(_0x1dc46c(0x101))/0xb*(-parseInt(_0x1dc46c(0x107))/0xc);if(_0x3e0ca2===_0x15d618)break;else _0x24ee66['push'](_0x24ee66['shift']());}catch(_0x26d91a){_0x24ee66['push'](_0x24ee66['shift']());}}}(a214_0x9a07,0xf3299));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x13631c){const _0x3acbf4=a214_0x58b4;if(_0x13631c==='.sql')return'sql';if(_0x13631c===_0x3acbf4(0xf1))return'mybatisXml';return undefined;}async function scanSqlFilesRecursively(_0x214150,_0x222b1c){const _0xab5315=a214_0x58b4,_0x3c89e1=[];try{const _0x20bf71=await readdir(_0x214150,{'withFileTypes':!![]});for(const _0x459358 of _0x20bf71){const _0x4fe501=join(_0x214150,_0x459358[_0xab5315(0xf2)]);if(_0x459358['isDirectory']()){_0x3c89e1[_0xab5315(0xed)](...await scanSqlFilesRecursively(_0x4fe501,_0x222b1c));continue;}if(!_0x459358['isFile']())continue;const _0x2de40b=extname(_0x459358[_0xab5315(0xf2)])[_0xab5315(0x108)](),_0x481bf8=extensionToMode(_0x2de40b);if(!_0x481bf8)continue;const _0x458e30=relative(_0x222b1c,_0x4fe501)[_0xab5315(0x10e)](/\\/g,'/'),_0x149ab3=_0x458e30[_0xab5315(0x10d)]('/')[_0xab5315(0x10c)](Boolean),_0x5711d0=parseSqlPath(_0x149ab3,_0x459358[_0xab5315(0xf2)],_0x2de40b);if(!_0x5711d0)continue;_0x3c89e1[_0xab5315(0xed)]({'sqlCode':_0x5711d0[_0xab5315(0x10b)],'sqlName':_0x5711d0[_0xab5315(0xf0)],'dbDirectory':_0x149ab3[0x0],'filePath':_0x4fe501,'relativePath':_0x458e30,'lockKey':_0x5711d0['sqlCode'],'mode':_0x481bf8});}}catch(_0x28139f){if(_0x28139f[_0xab5315(0xfe)]!==_0xab5315(0xf6))throw _0x28139f;}return _0x3c89e1;}export async function scanLocalSqlQueries(_0x5d60c8){const _0x40c443=a214_0x58b4;return scanSqlFilesRecursively(_0x5d60c8['sqlRootDir'],_0x5d60c8[_0x40c443(0x104)]);}export function resolveLocalSqlFilePath(_0x410868,_0x272c49,_0xf6701a){const _0x231129=a214_0x58b4,_0x5a7b36=_0xf6701a?.[_0x231129(0xfa)]||(_0xf6701a?.[_0x231129(0xf0)]||_0xf6701a?.[_0x231129(0xff)]?buildSqlRelativePath(_0x272c49,_0xf6701a?.[_0x231129(0xf0)],_0xf6701a?.[_0x231129(0xff)],_0xf6701a?.['mode']||_0x231129(0xf7),_0xf6701a?.[_0x231129(0xf5)]):buildDefaultSqlFileName(_0x272c49,_0xf6701a?.[_0x231129(0xfc)]||_0x231129(0xf7)));return join(_0x410868['sqlRootDir'],_0x5a7b36);}export async function directoryExists(_0x561771){const _0x8a5037=a214_0x58b4;try{const _0x579e6c=await stat(_0x561771);return _0x579e6c[_0x8a5037(0x103)]();}catch{return![];}}function parseSqlPath(_0x4fb1a5,_0x19d661,_0x48fa94){const _0x2f9ee9=a214_0x58b4,_0x38932c=_0x19d661[_0x2f9ee9(0xf8)](0x0,-_0x48fa94['length']);if(_0x4fb1a5['length']<0x2)return null;const _0x24ab92=_0x38932c[_0x2f9ee9(0xee)]('_');if(_0x24ab92<=0x0||_0x24ab92>=_0x38932c[_0x2f9ee9(0x10a)]-0x1)return null;const _0x32a4e7=_0x38932c['slice'](0x0,_0x24ab92);if(!isLikelySqlCode(_0x32a4e7))return null;return{'sqlCode':_0x32a4e7,'sqlName':_0x38932c[_0x2f9ee9(0xf8)](_0x24ab92+0x1)};}function a214_0x9a07(){const _0x58a02c=['sql','slice','10525680tMIrGb','path','9326736yRPGMv','mode','14gjeHOm','code','dbName','test','3254075NXvKko','241931KTGlFb','isDirectory','sqlRootDir','7656710lKSQIB','5CuRwCk','72mMVCbs','toLowerCase','4714092AxkOse','length','sqlCode','filter','split','replace','push','indexOf','7tlQkkY','sqlName','.xml','name','2543168LFKOoE','18mZQHgE','dbId','ENOENT'];a214_0x9a07=function(){return _0x58a02c;};return a214_0x9a07();}function isLikelySqlCode(_0x4bf955){const _0x1aff5a=a214_0x58b4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x1aff5a(0x100)](_0x4bf955);}
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(_0x5bb7f3,_0x16f683){const _0xbfb8ff=a215_0x58c4,_0xc47ae5=_0x5bb7f3();while(!![]){try{const _0x2d6072=parseInt(_0xbfb8ff(0x1a5))/0x1+parseInt(_0xbfb8ff(0x1aa))/0x2+-parseInt(_0xbfb8ff(0x1ad))/0x3*(-parseInt(_0xbfb8ff(0x1a6))/0x4)+-parseInt(_0xbfb8ff(0x1a1))/0x5+parseInt(_0xbfb8ff(0x1a0))/0x6*(-parseInt(_0xbfb8ff(0x1ab))/0x7)+-parseInt(_0xbfb8ff(0x1a4))/0x8+parseInt(_0xbfb8ff(0x1a7))/0x9;if(_0x2d6072===_0x16f683)break;else _0xc47ae5['push'](_0xc47ae5['shift']());}catch(_0x4e2fba){_0xc47ae5['push'](_0xc47ae5['shift']());}}}(a215_0xdad2,0xa66c9));function a215_0xdad2(){const _0x3b5c3d=['81bLIrOA','5496rvuQTM','5801645HOMUVx','update','hex','2400664tUGrKT','1288481EmcSFy','160764bmdXwg','2353491UQTbEE','utf8','md5','1186648vPeLYw','8302tXbYuP','createHash'];a215_0xdad2=function(){return _0x3b5c3d;};return a215_0xdad2();}function a215_0x58c4(_0x2fe7fd,_0x3df4ac){_0x2fe7fd=_0x2fe7fd-0x1a0;const _0xdad2f5=a215_0xdad2();let _0x58c4cd=_0xdad2f5[_0x2fe7fd];return _0x58c4cd;}import{readFile}from'node:fs/promises';import a215_0x29776f from'node:crypto';export function computeSqlContentHash(_0x27298e){const _0x40e176=a215_0x58c4;return a215_0x29776f[_0x40e176(0x1ac)](_0x40e176(0x1a9))[_0x40e176(0x1a2)](_0x27298e)['digest'](_0x40e176(0x1a3));}export async function computeSqlFileHash(_0x9ab4d6){const _0x3e93b5=a215_0x58c4,_0x551ecc=await readFile(_0x9ab4d6,_0x3e93b5(0x1a8));return computeSqlContentHash(_0x551ecc);}
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(_0x1ce298,_0x511cc5){const _0x5330b5=a216_0x5668,_0x1f13a1=_0x1ce298();while(!![]){try{const _0x4abeb4=parseInt(_0x5330b5(0x132))/0x1+-parseInt(_0x5330b5(0x138))/0x2+-parseInt(_0x5330b5(0x134))/0x3*(parseInt(_0x5330b5(0x140))/0x4)+parseInt(_0x5330b5(0x136))/0x5*(parseInt(_0x5330b5(0x139))/0x6)+parseInt(_0x5330b5(0x13b))/0x7*(-parseInt(_0x5330b5(0x146))/0x8)+parseInt(_0x5330b5(0x145))/0x9*(-parseInt(_0x5330b5(0x137))/0xa)+parseInt(_0x5330b5(0x147))/0xb;if(_0x4abeb4===_0x511cc5)break;else _0x1f13a1['push'](_0x1f13a1['shift']());}catch(_0x250328){_0x1f13a1['push'](_0x1f13a1['shift']());}}}(a216_0x4969,0x6ddaf));function a216_0x5668(_0x3098ea,_0x477b8d){_0x3098ea=_0x3098ea-0x132;const _0x4969b4=a216_0x4969();let _0x566812=_0x4969b4[_0x3098ea];return _0x566812;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a216_0x4969(){const _0x5af64d=['1615400BDYaiR','1169240WEYFll','4800IioPaV','parse','8995VHrjZG','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','ENOENT','sqls','lastSync','116392irTuqU','\x22.\x20','sqlRoot','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','utf8','45lyTodj','688NOtYbr','19429344XgSxMR','106791cleWPY',':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22','3mJvpPp','apps','680IncRTZ'];a216_0x4969=function(){return _0x5af64d;};return a216_0x4969();}export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x207bf3,_0xd95c12,_0x1d2798,_0x1158cf){const _0x577662=a216_0x5668,_0x2b18f3=_0x207bf3??createEmptySqlLock();let _0x4ed0e4=_0x2b18f3[_0x577662(0x135)][_0xd95c12];if(!_0x4ed0e4)return _0x4ed0e4={'sqlRoot':_0x1d2798,'lastSync':'','sqls':{}},_0x2b18f3[_0x577662(0x135)][_0xd95c12]=_0x4ed0e4,{'lockData':_0x2b18f3,'appLock':_0x4ed0e4};if(!_0x4ed0e4[_0x577662(0x142)])_0x4ed0e4[_0x577662(0x142)]=_0x1d2798;else{if(_0x4ed0e4[_0x577662(0x142)]!==_0x1d2798)throw new Error(_0x1158cf+_0x577662(0x133)+_0x1d2798+'\x22\x20vs\x20lock\x20\x22'+_0x4ed0e4[_0x577662(0x142)]+_0x577662(0x141)+_0x577662(0x143));}return!_0x4ed0e4[_0x577662(0x13e)]&&(_0x4ed0e4['sqls']={}),!_0x4ed0e4[_0x577662(0x13f)]&&(_0x4ed0e4['lastSync']=''),{'lockData':_0x2b18f3,'appLock':_0x4ed0e4};}export async function readSqlLockFile(_0xe74f71){const _0x47e62d=a216_0x5668;try{const _0x150d9f=await readFile(_0xe74f71,'utf8');return JSON[_0x47e62d(0x13a)](_0x150d9f);}catch(_0x5cd76b){if(_0x5cd76b['code']===_0x47e62d(0x13d))return null;throw new Error(_0x47e62d(0x13c)+String(_0x5cd76b));}}export async function writeSqlLockFile(_0x4d2b30,_0x43e6f0){const _0x11a977=a216_0x5668;await mkdir(dirname(_0x4d2b30),{'recursive':!![]}),await writeFile(_0x4d2b30,JSON['stringify'](_0x43e6f0,null,0x2),_0x11a977(0x144));}
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(_0x51eef9,_0x2d05ea){const _0x5c8ee3=a218_0x3c08,_0x53c82d=_0x51eef9();while(!![]){try{const _0x17d47e=parseInt(_0x5c8ee3(0x9d))/0x1*(parseInt(_0x5c8ee3(0xa1))/0x2)+parseInt(_0x5c8ee3(0x9f))/0x3+-parseInt(_0x5c8ee3(0xaa))/0x4+-parseInt(_0x5c8ee3(0xab))/0x5*(-parseInt(_0x5c8ee3(0xad))/0x6)+parseInt(_0x5c8ee3(0xa0))/0x7*(parseInt(_0x5c8ee3(0xa4))/0x8)+-parseInt(_0x5c8ee3(0xa6))/0x9+-parseInt(_0x5c8ee3(0x9c))/0xa*(parseInt(_0x5c8ee3(0x9b))/0xb);if(_0x17d47e===_0x2d05ea)break;else _0x53c82d['push'](_0x53c82d['shift']());}catch(_0x549f16){_0x53c82d['push'](_0x53c82d['shift']());}}}(a218_0x7f8d,0xb689c));function a218_0x3c08(_0x5c9932,_0x5010ae){_0x5c9932=_0x5c9932-0x9b;const _0x7f8d07=a218_0x7f8d();let _0x3c08d6=_0x7f8d07[_0x5c9932];return _0x3c08d6;}export function detectSqlMode(_0x5bd99){const _0x3a4c56=a218_0x3c08,_0x3e724f=_0x5bd99[_0x3a4c56(0xa7)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x3e724f))return _0x3a4c56(0xa3);return _0x3a4c56(0xa5);}export function getSqlFileExtension(_0x34ea95){const _0x1ccee2=a218_0x3c08;return _0x34ea95===_0x1ccee2(0xa3)?_0x1ccee2(0xa2):_0x1ccee2(0xac);}export function buildDefaultSqlFileName(_0x44eecf,_0x199623){return''+_0x44eecf+getSqlFileExtension(_0x199623);}export function sanitizeSqlPathSegment(_0x43c96d,_0x5c3a3a){const _0x4511d2=a218_0x3c08,_0x2d4671=String(_0x43c96d??'')[_0x4511d2(0xa9)](),_0x3dd74c=_0x2d4671[_0x4511d2(0xa8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')[_0x4511d2(0xa8)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x4511d2(0xa8)](/^\.+/,'')['replace'](/\.+$/,'')[_0x4511d2(0xa8)](/^-+/,'')[_0x4511d2(0xa8)](/-+$/,'');return _0x3dd74c||_0x5c3a3a;}function a218_0x7f8d(){const _0x3c8333=['.xml','mybatisXml','136JoVqRg','sql','11458602lDyTOH','trimStart','replace','trim','2231764EEiYDf','573845yTuoAJ','.sql','24SNHFwY','db-','unknown-sql','55sKpfIY','569650LPihwb','6911mzpbBf','unknown-db','2973609blHDrK','78274UAgupJ','354AfshnL'];a218_0x7f8d=function(){return _0x3c8333;};return a218_0x7f8d();}export function buildDbDirectoryName(_0x4b5499,_0x301ad6){const _0x6eb82=a218_0x3c08;return sanitizeSqlPathSegment(_0x4b5499,_0x301ad6!=null?_0x6eb82(0xae)+_0x301ad6:_0x6eb82(0x9e));}export function buildSqlRelativePath(_0xbf76d3,_0x181099,_0x47f4ca,_0x580594,_0x3fc13f){const _0x3df454=a218_0x3c08,_0x331e39=buildDbDirectoryName(_0x47f4ca,_0x3fc13f),_0x20d47d=sanitizeSqlPathSegment(_0xbf76d3,_0x3df454(0xaf)),_0x53fa4b=sanitizeSqlPathSegment(_0x181099,_0x20d47d);return _0x331e39+'/'+_0x20d47d+'_'+_0x53fa4b+getSqlFileExtension(_0x580594);}
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_0x135778=a219_0x2b02;(function(_0xba8341,_0x275d9a){const _0x3675c2=a219_0x2b02,_0x51bac9=_0xba8341();while(!![]){try{const _0x4557fd=parseInt(_0x3675c2(0xe6))/0x1+-parseInt(_0x3675c2(0xe4))/0x2*(-parseInt(_0x3675c2(0xeb))/0x3)+parseInt(_0x3675c2(0xd1))/0x4*(parseInt(_0x3675c2(0xa4))/0x5)+parseInt(_0x3675c2(0xdb))/0x6*(parseInt(_0x3675c2(0xd5))/0x7)+parseInt(_0x3675c2(0xee))/0x8*(-parseInt(_0x3675c2(0xe2))/0x9)+parseInt(_0x3675c2(0xbe))/0xa+-parseInt(_0x3675c2(0xe7))/0xb;if(_0x4557fd===_0x275d9a)break;else _0x51bac9['push'](_0x51bac9['shift']());}catch(_0x4851c1){_0x51bac9['push'](_0x51bac9['shift']());}}}(a219_0x5dad,0xd73da));const MYBATIS_OUTER_TAGS=new Map([[a219_0x135778(0xc5),a219_0x135778(0xaf)],[a219_0x135778(0xcc),a219_0x135778(0xbc)],['update',a219_0x135778(0xe9)],[a219_0x135778(0xb2),'DELETE']]),MYBATIS_DYNAMIC_TAGS=new Set(['if','where',a219_0x135778(0xa0),a219_0x135778(0xb3),a219_0x135778(0xdf),a219_0x135778(0xdd),a219_0x135778(0xed),a219_0x135778(0xb0),a219_0x135778(0xb1),'include','property']),MYBATIS_BRANCH_TAGS=new Set(['if',a219_0x135778(0xa0),a219_0x135778(0xb3),a219_0x135778(0xdf),'otherwise']);export const MYBATIS_DYNAMIC_START_MARKER='__RABETBASE_MYBATIS_DYNAMIC_START__';export const MYBATIS_DYNAMIC_END_MARKER=a219_0x135778(0xaa);export const MYBATIS_INCLUDE_MARKER=a219_0x135778(0xa7);const UNRESOLVED_SQL_FRAGMENT=a219_0x135778(0xec),MYBATIS_OUTER_TAG_PATTERN=new RegExp('^<\x5cs*(?:'+[...MYBATIS_OUTER_TAGS[a219_0x135778(0xa2)]()][a219_0x135778(0xa5)]('|')+')\x5cb','i');export function normalizeSqlForStaticAnalysis(_0x4d38e5){const _0x5809f3=a219_0x135778,_0x5cf739=typeof _0x4d38e5===_0x5809f3(0x96)?_0x4d38e5:'';if(!startsWithMybatisStatementWrapper(_0x5cf739))return{'sql':_0x5cf739,'mode':'sql'};let _0x16de29=0x0,_0x2085d5='',_0x4ea9ee,_0x408044=![],_0x50b236=![];const _0x1f10af=[];while(_0x16de29<_0x5cf739[_0x5809f3(0x9e)]){if(_0x5cf739[_0x5809f3(0xc4)]('<!--',_0x16de29)){const _0x3423cb=_0x5cf739[_0x5809f3(0x9d)]('-->',_0x16de29+0x4);if(_0x3423cb<0x0)return invalidMybatisSource('Unterminated\x20XML\x20comment.');_0x2085d5+='\x20',_0x16de29=_0x3423cb+0x3;continue;}if(_0x5cf739[_0x5809f3(0xc4)](_0x5809f3(0xd6),_0x16de29)){if(!_0x408044||_0x50b236)return invalidMybatisSource(_0x5809f3(0xe1));const _0xf780a6=_0x5cf739[_0x5809f3(0x9d)](']]>',_0x16de29+0x9);if(_0xf780a6<0x0)return invalidMybatisSource(_0x5809f3(0x9b));_0x2085d5+=_0x5cf739[_0x5809f3(0xd7)](_0x16de29+0x9,_0xf780a6),_0x16de29=_0xf780a6+0x3;continue;}if(_0x5cf739[_0x5809f3(0xc4)]('<?',_0x16de29)){if(_0x408044)return invalidMybatisSource(_0x5809f3(0xab));const _0xe5cf34=_0x5cf739[_0x5809f3(0x9d)]('?>',_0x16de29+0x2);if(_0xe5cf34<0x0)return invalidMybatisSource('Unterminated\x20XML\x20declaration.');_0x2085d5+='\x20',_0x16de29=_0xe5cf34+0x2;continue;}if(_0x5cf739[_0x16de29]!=='<'){const _0x26a99f=_0x5cf739['indexOf']('<',_0x16de29),_0x1128cb=_0x26a99f<0x0?_0x5cf739[_0x5809f3(0x9e)]:_0x26a99f,_0x262f20=_0x5cf739[_0x5809f3(0xd7)](_0x16de29,_0x1128cb);if((!_0x408044||_0x50b236)&&_0x262f20['trim']())return invalidMybatisSource('SQL\x20text\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.');if(_0x408044&&!_0x50b236){const _0x400ba5=decodeXmlEntities(_0x262f20);if(_0x400ba5===null)return invalidMybatisSource('Invalid\x20XML\x20entity\x20reference.');_0x2085d5+=_0x400ba5;}else _0x2085d5+='\x20';_0x16de29=_0x1128cb;continue;}const _0x2f8e15=findXmlTagEnd(_0x5cf739,_0x16de29);if(_0x2f8e15<0x0)return invalidMybatisSource(_0x5809f3(0xd8));const _0x2f3e16=_0x5cf739[_0x5809f3(0xd7)](_0x16de29,_0x2f8e15+0x1),_0x18c938=/^<\s*(\/?)\s*([A-Za-z][\w:-]*)([\s\S]*?)(\/?)\s*>$/['exec'](_0x2f3e16);if(!_0x18c938)return invalidMybatisSource(_0x5809f3(0xcd));const _0x41ab71=_0x18c938[0x1]==='/',_0x336599=_0x18c938[0x2]??'',_0x3a3ee4=_0x336599[_0x5809f3(0xb5)](),_0x1847b3=_0x18c938[0x3]??'',_0x98769c=_0x18c938[0x4]==='/',_0x464056=MYBATIS_OUTER_TAGS[_0x5809f3(0xd4)](_0x3a3ee4);if(!_0x464056&&!MYBATIS_DYNAMIC_TAGS[_0x5809f3(0xe3)](_0x3a3ee4))return invalidMybatisSource(_0x5809f3(0xe5)+_0x3a3ee4+'>.');if(!_0x464056&&_0x336599!==_0x3a3ee4)return invalidMybatisSource('MyBatis\x20dynamic\x20tag\x20names\x20must\x20be\x20lowercase:\x20<'+_0x336599+'>.');if(_0x41ab71){if(_0x1847b3[_0x5809f3(0xed)]()||_0x98769c)return invalidMybatisSource('Invalid\x20MyBatis\x20XML\x20closing\x20tag:\x20</'+_0x336599+'>.');const _0x468dae=_0x1f10af['at'](-0x1);if(!_0x468dae||(_0x468dae['outer']?_0x468dae['tagName']!==_0x3a3ee4:_0x468dae[_0x5809f3(0xca)]!==_0x336599))return invalidMybatisSource(_0x5809f3(0xef)+_0x336599+'>.');_0x1f10af[_0x5809f3(0xb8)]();if(_0x468dae[_0x5809f3(0xea)])_0x50b236=!![];_0x2085d5+=MYBATIS_BRANCH_TAGS[_0x5809f3(0xe3)](_0x3a3ee4)?'\x20'+MYBATIS_DYNAMIC_END_MARKER+'\x20':'\x20';}else{if(!hasWellFormedXmlAttributes(_0x1847b3))return invalidMybatisSource(_0x5809f3(0x95)+_0x336599+'>.');if(_0x3a3ee4===_0x5809f3(0xc2)&&(!_0x98769c||_0x1f10af['at'](-0x1)?.[_0x5809f3(0xda)]!==_0x5809f3(0xdc)))return invalidMybatisSource(_0x5809f3(0xc8));if(_0x464056){if(_0x408044||_0x1f10af[_0x5809f3(0x9e)]>0x0)return invalidMybatisSource('Multiple\x20MyBatis\x20statement\x20wrappers\x20are\x20not\x20supported.');_0x408044=!![],_0x50b236=_0x98769c,_0x4ea9ee=_0x464056;}else{if(!_0x408044||_0x50b236)return invalidMybatisSource(_0x5809f3(0xe8)+_0x336599+'>.');}_0x2085d5+=_0x3a3ee4===_0x5809f3(0xd3)?_0x5809f3(0xcf):_0x3a3ee4===_0x5809f3(0xb0)?'\x20SET\x20':_0x3a3ee4===_0x5809f3(0xdc)?'\x20'+MYBATIS_INCLUDE_MARKER+'\x20':MYBATIS_BRANCH_TAGS[_0x5809f3(0xe3)](_0x3a3ee4)&&!_0x98769c?'\x20'+MYBATIS_DYNAMIC_START_MARKER+'\x20':'\x20',!_0x98769c&&_0x1f10af[_0x5809f3(0xc6)]({'rawName':_0x336599,'tagName':_0x3a3ee4,'outer':!!_0x464056});}_0x16de29=_0x2f8e15+0x1;}if(_0x1f10af['length']>0x0)return invalidMybatisSource(_0x5809f3(0xbb)+_0x1f10af['at'](-0x1)?.[_0x5809f3(0xca)]+'>.');if(!_0x408044||!_0x50b236)return invalidMybatisSource(_0x5809f3(0xc1));return{'sql':_0x2085d5[_0x5809f3(0xed)](),'mode':_0x5809f3(0x9c),..._0x4ea9ee?{'statementType':_0x4ea9ee}:{}};}function hasWellFormedXmlAttributes(_0x53d565){const _0x33d083=a219_0x135778;let _0x5c60e9=0x0;const _0x4c8ffe=new Set();while(_0x5c60e9<_0x53d565[_0x33d083(0x9e)]){while(_0x5c60e9<_0x53d565[_0x33d083(0x9e)]&&/\s/[_0x33d083(0x98)](_0x53d565[_0x5c60e9]??''))_0x5c60e9+=0x1;if(_0x5c60e9>=_0x53d565[_0x33d083(0x9e)])return!![];const _0x2c4324=/^[A-Za-z_:][\w:.-]*/[_0x33d083(0x9f)](_0x53d565['slice'](_0x5c60e9)),_0x334756=_0x2c4324?.[0x0];if(!_0x334756||_0x4c8ffe[_0x33d083(0xe3)](_0x334756))return![];_0x4c8ffe[_0x33d083(0xf0)](_0x334756),_0x5c60e9+=_0x334756[_0x33d083(0x9e)];while(_0x5c60e9<_0x53d565['length']&&/\s/[_0x33d083(0x98)](_0x53d565[_0x5c60e9]??''))_0x5c60e9+=0x1;if(_0x53d565[_0x5c60e9]!=='=')return![];_0x5c60e9+=0x1;while(_0x5c60e9<_0x53d565['length']&&/\s/['test'](_0x53d565[_0x5c60e9]??''))_0x5c60e9+=0x1;const _0x22a64e=_0x53d565[_0x5c60e9];if(_0x22a64e!=='\x22'&&_0x22a64e!=='\x27')return![];_0x5c60e9+=0x1;const _0x16367c=_0x53d565[_0x33d083(0x9d)](_0x22a64e,_0x5c60e9);if(_0x16367c<0x0)return![];if(decodeXmlEntities(_0x53d565[_0x33d083(0xd7)](_0x5c60e9,_0x16367c))===null)return![];_0x5c60e9=_0x16367c+0x1;}return!![];}function startsWithMybatisStatementWrapper(_0x4d0a50){const _0x3066b5=a219_0x135778;let _0x1b21db=0x0;const _0x10bc6b=()=>{const _0x5bcec7=a219_0x2b02;while(_0x1b21db<_0x4d0a50[_0x5bcec7(0x9e)]&&/\s/[_0x5bcec7(0x98)](_0x4d0a50[_0x1b21db]??''))_0x1b21db+=0x1;};_0x10bc6b();while(_0x1b21db<_0x4d0a50[_0x3066b5(0x9e)]){if(_0x4d0a50[_0x3066b5(0xc4)](_0x3066b5(0x99),_0x1b21db)){const _0x56b6c9=_0x4d0a50[_0x3066b5(0x9d)](_0x3066b5(0xc7),_0x1b21db+0x4);if(_0x56b6c9<0x0)return!![];_0x1b21db=_0x56b6c9+0x3,_0x10bc6b();continue;}if(_0x4d0a50[_0x3066b5(0xc4)]('<?',_0x1b21db)){const _0x12574b=_0x4d0a50[_0x3066b5(0x9d)]('?>',_0x1b21db+0x2);if(_0x12574b<0x0)return!![];_0x1b21db=_0x12574b+0x2,_0x10bc6b();continue;}break;}return MYBATIS_OUTER_TAG_PATTERN[_0x3066b5(0x98)](_0x4d0a50[_0x3066b5(0xd7)](_0x1b21db));}function invalidMybatisSource(_0x50b3c2){const _0x32ac9f=a219_0x135778;return{'sql':'','mode':_0x32ac9f(0x9c),'error':_0x50b3c2};}function findXmlTagEnd(_0x24b3a2,_0x43d3ba){const _0x5e2b88=a219_0x135778;let _0x5e15a7;for(let _0x3e5e0a=_0x43d3ba+0x1;_0x3e5e0a<_0x24b3a2[_0x5e2b88(0x9e)];_0x3e5e0a+=0x1){const _0x5e4246=_0x24b3a2[_0x3e5e0a];if(_0x5e15a7){if(_0x5e4246===_0x5e15a7)_0x5e15a7=undefined;continue;}if(_0x5e4246==='\x22'||_0x5e4246==='\x27'){_0x5e15a7=_0x5e4246;continue;}if(_0x5e4246==='>')return _0x3e5e0a;}return-0x1;}function decodeXmlEntities(_0x1e10af){const _0x1e0645=a219_0x135778;let _0x1b1f49=![];const _0x1dc828=_0x1e10af[_0x1e0645(0xc9)](/&(?:#x[0-9a-f]+;|#[0-9]+;|[A-Za-z_:][\w:.-]*;)?/g,_0x53c1b7=>{const _0x5eba26=_0x1e0645;if(_0x53c1b7===_0x5eba26(0xbf))return'<';if(_0x53c1b7===_0x5eba26(0xcb))return'>';if(_0x53c1b7===_0x5eba26(0xce))return'\x22';if(_0x53c1b7===_0x5eba26(0xa9))return'\x27';if(_0x53c1b7===_0x5eba26(0xba))return'&';const _0x59d27c=/^&#(?:x([0-9a-f]+)|([0-9]+));$/[_0x5eba26(0x9f)](_0x53c1b7);if(_0x59d27c){const _0x1b9ccb=_0x59d27c[0x1],_0x2fdd34=_0x59d27c[0x2],_0x40b07d=Number[_0x5eba26(0xb4)](_0x1b9ccb??_0x2fdd34??'',_0x1b9ccb?0x10:0xa);if(isValidXmlCharacter(_0x40b07d))return String['fromCodePoint'](_0x40b07d);}return _0x1b1f49=!![],'';});return _0x1b1f49?null:_0x1dc828;}function isValidXmlCharacter(_0x3ccc06){return _0x3ccc06===0x9||_0x3ccc06===0xa||_0x3ccc06===0xd||_0x3ccc06>=0x20&&_0x3ccc06<=0xd7ff||_0x3ccc06>=0xe000&&_0x3ccc06<=0xfffd||_0x3ccc06>=0x10000&&_0x3ccc06<=0x10ffff;}export function detectSqlType(_0x35d973){return detectNormalizedSqlType(normalizeSqlForStaticAnalysis(_0x35d973));}function detectNormalizedSqlType(_0x56c0ed){const _0x3eaa6f=a219_0x135778;if(_0x56c0ed[_0x3eaa6f(0xc0)])return{'type':_0x3eaa6f(0xbd),'isSelectOnly':![],'isDangerous':![],'reason':_0x56c0ed[_0x3eaa6f(0xc0)]};if(!_0x56c0ed[_0x3eaa6f(0xb7)][_0x3eaa6f(0xed)]())return{'type':_0x3eaa6f(0xbd),'isSelectOnly':![],'isDangerous':![],'reason':_0x3eaa6f(0x9a)};const _0x148948=stripStaticAnalysisMarkers(_0x56c0ed[_0x3eaa6f(0xb7)])[_0x3eaa6f(0xc9)](/#\{[^}]*\}/g,'?')[_0x3eaa6f(0xc9)](/\$\{[^}]*\}/g,'?')[_0x3eaa6f(0xc9)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x3eaa6f(0xc9)](/\/\*[\s\S]*?\*\//g,'')[_0x3eaa6f(0xed)](),_0x4b6e78=_0x148948[_0x3eaa6f(0xe0)]('\x0a');let _0xf0b1e0='';for(const _0x18cc3c of _0x4b6e78){const _0x47936a=_0x18cc3c['trim']();if(!_0x47936a||_0x47936a['startsWith']('--')||_0x47936a[_0x3eaa6f(0xc4)]('/*'))continue;_0xf0b1e0=_0x47936a;break;}const _0x50928a=_0xf0b1e0[_0x3eaa6f(0xa8)](),_0x5cef96=_0x56c0ed[_0x3eaa6f(0xd2)],_0x3a2393=maskSqlTextForBlockedKeywordScan(_0x148948),_0x3ff125=/\b(DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3eaa6f(0x98)](_0x3a2393);if(_0x5cef96==='SELECT'||!_0x5cef96&&(_0x50928a[_0x3eaa6f(0xc4)](_0x3eaa6f(0xaf))||_0x50928a[_0x3eaa6f(0xc4)](_0x3eaa6f(0xde)))){const _0x257b00=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x3eaa6f(0x98)](_0x148948);return{'type':'SELECT','isSelectOnly':!_0x257b00,'isDangerous':_0x257b00,'reason':_0x257b00?'SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT':undefined};}if(_0x5cef96==='INSERT'||!_0x5cef96&&_0x50928a['startsWith'](_0x3eaa6f(0xbc)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':_0x3ff125,'reason':_0x3ff125?_0x3eaa6f(0xb6):undefined};if(_0x5cef96==='UPDATE'||!_0x5cef96&&_0x50928a[_0x3eaa6f(0xc4)](_0x3eaa6f(0xe9)))return{'type':'UPDATE','isSelectOnly':![],'isDangerous':_0x3ff125,'reason':_0x3ff125?_0x3eaa6f(0xb6):undefined};if(_0x5cef96===_0x3eaa6f(0xc3)||!_0x5cef96&&_0x50928a[_0x3eaa6f(0xc4)](_0x3eaa6f(0xc3)))return{'type':_0x3eaa6f(0xc3),'isSelectOnly':![],'isDangerous':!![],'reason':'DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save'};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i[_0x3eaa6f(0x98)](_0x50928a))return{'type':'DDL','isSelectOnly':![],'isDangerous':!![],'reason':'DDL\x20statements\x20are\x20blocked\x20from\x20auto-save'};return{'type':_0x3eaa6f(0xbd),'isSelectOnly':![],'isDangerous':![]};}function stripStaticAnalysisMarkers(_0x77b614){const _0x8c6942=a219_0x135778;return _0x77b614[_0x8c6942(0xad)](MYBATIS_DYNAMIC_START_MARKER,'\x20')['replaceAll'](MYBATIS_DYNAMIC_END_MARKER,'\x20')['replaceAll'](MYBATIS_INCLUDE_MARKER,'\x20'+UNRESOLVED_SQL_FRAGMENT+'\x20');}function a219_0x2b02(_0x4ae99d,_0x5888d6){_0x4ae99d=_0x4ae99d-0x94;const _0x5dadbb=a219_0x5dad();let _0x2b0275=_0x5dadbb[_0x4ae99d];return _0x2b0275;}function maskSqlTextForBlockedKeywordScan(_0x58381d){const _0xa7bfc9=a219_0x135778;return _0x58381d[_0xa7bfc9(0xc9)](/'(?:''|\\.|[^'])*'/g,'\x20')[_0xa7bfc9(0xc9)](/"(?:""|\\.|[^"])*"/g,'\x20')[_0xa7bfc9(0xc9)](/`(?:``|\\.|[^`])*`/g,'\x20')['replace'](/--.*$/gm,'\x20')[_0xa7bfc9(0xc9)](/#.*$/gm,'\x20')[_0xa7bfc9(0xc9)](/\/\*[\s\S]*?\*\//g,'\x20');}function a219_0x5dad(){const _0x59a415=['split','CDATA\x20sections\x20must\x20be\x20inside\x20the\x20MyBatis\x20statement\x20wrapper.','9HHaEvE','has','6jaanuY','Unsupported\x20MyBatis\x20XML\x20tag:\x20<','535636yhCEMq','22639144VcrdMk','MyBatis\x20dynamic\x20tag\x20must\x20be\x20inside\x20the\x20statement\x20wrapper:\x20<','UPDATE','outer','343650ESsRrD','__RABETBASE_UNRESOLVED_SQL_FRAGMENT__','trim','1791248SbhSFx','Mismatched\x20MyBatis\x20XML\x20closing\x20tag:\x20</','add','isDangerous','Unable\x20to\x20detect\x20SQL\x20type.\x20','Invalid\x20attributes\x20on\x20MyBatis\x20XML\x20tag:\x20<','string','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','test','<!--','SQL\x20content\x20is\x20empty','Unterminated\x20CDATA\x20section.','mybatisXml','indexOf','length','exec','foreach','includes','keys','reason','3455405edHIYj','join','from','__RABETBASE_MYBATIS_INCLUDE_UNRESOLVED__','toUpperCase','&apos;','__RABETBASE_MYBATIS_DYNAMIC_END__','XML\x20declarations\x20must\x20precede\x20the\x20MyBatis\x20statement\x20wrapper.','unknown\x20table(s)','replaceAll','match','SELECT','set','bind','delete','choose','parseInt','toLowerCase','SQL\x20contains\x20blocked\x20DELETE\x20or\x20DDL\x20statements','sql','pop','\x20query\x20targeting\x20','&amp;','Unclosed\x20MyBatis\x20XML\x20tag:\x20<','INSERT','UNKNOWN','4221520rZwLbf','&lt;','error','MyBatis\x20XML\x20must\x20contain\x20exactly\x20one\x20complete\x20statement\x20wrapper.','property','DELETE','startsWith','select','push','-->','MyBatis\x20<property>\x20must\x20be\x20a\x20self-closing\x20direct\x20child\x20of\x20<include>.','replace','rawName','&gt;','insert','Invalid\x20MyBatis\x20XML\x20tag.','&quot;','\x20WHERE\x20','matchAll','8nCsySf','statementType','where','get','1680126swhiEz','<![CDATA[','slice','Unterminated\x20MyBatis\x20XML\x20tag.','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','tagName','12rfEqKx','include','otherwise','WITH','when'];a219_0x5dad=function(){return _0x59a415;};return a219_0x5dad();}function extractTables(_0x5182e8){const _0x5beab7=a219_0x135778,_0x1e1f45=_0x5182e8[_0x5beab7(0xc9)](/#\{[^}]*\}/g,'?')[_0x5beab7(0xc9)](/\$\{[^}]*\}/g,'?')[_0x5beab7(0xc9)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x42093d=[],_0x20c7a2=_0x1e1f45[_0x5beab7(0xae)](/FROM\s+([^\s,)(]+)/i);addTable(_0x42093d,_0x20c7a2?.[0x1]);for(const _0xb62b01 of _0x1e1f45['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){addTable(_0x42093d,_0xb62b01[0x1]);}const _0x4d5685=_0x1e1f45['match'](/INTO\s+([^\s(]+)/i);addTable(_0x42093d,_0x4d5685?.[0x1]);const _0x1f8a7d=_0x1e1f45['match'](/UPDATE\s+([^\s,)(]+)/i);return addTable(_0x42093d,_0x1f8a7d?.[0x1]),_0x42093d;}function addTable(_0x27894b,_0x4de887){const _0x209aba=a219_0x135778,_0xa9a0b2=_0x4de887?.[_0x209aba(0xc9)](/[`"]/g,'');_0xa9a0b2&&_0xa9a0b2!==UNRESOLVED_SQL_FRAGMENT&&!_0x27894b[_0x209aba(0xa1)](_0xa9a0b2)&&_0x27894b[_0x209aba(0xc6)](_0xa9a0b2);}function extractParameters(_0x3e16d3){const _0x517604=a219_0x135778,_0x3e47dc=new Set();for(const _0xf094ce of _0x3e16d3[_0x517604(0xd0)](/[#$]\{\s*([A-Za-z_][\w.]*)\s*(?=[,}])/g)){if(_0xf094ce[0x1])_0x3e47dc[_0x517604(0xf0)](_0xf094ce[0x1]);}return Array[_0x517604(0xa6)](_0x3e47dc);}export function validateSql(_0x399544){const _0x46a4fa=a219_0x135778,_0x2704f9=normalizeSqlForStaticAnalysis(_0x399544),_0x53f7ba=detectNormalizedSqlType(_0x2704f9),_0x2fa547=stripStaticAnalysisMarkers(_0x2704f9[_0x46a4fa(0xb7)]),_0x2954de=_0x2704f9[_0x46a4fa(0xc0)]?[]:extractTables(_0x2fa547),_0x554900=_0x2704f9[_0x46a4fa(0xc0)]?[]:extractParameters(_0x2fa547);if(_0x53f7ba[_0x46a4fa(0xf1)])return{'valid':![],'sqlType':_0x53f7ba,'tables':_0x2954de,'parameters':_0x554900,'message':_0x53f7ba[_0x46a4fa(0xa3)]||_0x53f7ba['type']+_0x46a4fa(0x97)};if(_0x53f7ba['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x53f7ba,'tables':_0x2954de,'parameters':_0x554900,'message':_0x2704f9[_0x46a4fa(0xc0)]?_0x46a4fa(0x94)+_0x2704f9[_0x46a4fa(0xc0)]:_0x46a4fa(0xd9)};return{'valid':!![],'sqlType':_0x53f7ba,'tables':_0x2954de,'parameters':_0x554900,'message':_0x53f7ba['type']+_0x46a4fa(0xb9)+(_0x2954de[_0x46a4fa(0x9e)]?_0x2954de[_0x46a4fa(0xa5)](',\x20'):_0x46a4fa(0xac))+(_0x554900[_0x46a4fa(0x9e)]?'\x20with\x20parameters:\x20'+_0x554900[_0x46a4fa(0xa5)](',\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
- function a220_0x1872(_0xc25b32,_0x51f4ef){_0xc25b32=_0xc25b32-0x1c5;const _0x1fa721=a220_0x1fa7();let _0x1872f3=_0x1fa721[_0xc25b32];return _0x1872f3;}const a220_0x41bf46=a220_0x1872;(function(_0x3a7cb4,_0x3d6b12){const _0x141c7a=a220_0x1872,_0x219b16=_0x3a7cb4();while(!![]){try{const _0x5d243c=-parseInt(_0x141c7a(0x1c7))/0x1+-parseInt(_0x141c7a(0x1cf))/0x2*(parseInt(_0x141c7a(0x1c9))/0x3)+parseInt(_0x141c7a(0x1ce))/0x4+-parseInt(_0x141c7a(0x1ca))/0x5*(parseInt(_0x141c7a(0x1cd))/0x6)+parseInt(_0x141c7a(0x1d2))/0x7+parseInt(_0x141c7a(0x1cc))/0x8*(parseInt(_0x141c7a(0x1c5))/0x9)+-parseInt(_0x141c7a(0x1d3))/0xa;if(_0x5d243c===_0x3d6b12)break;else _0x219b16['push'](_0x219b16['shift']());}catch(_0x35983e){_0x219b16['push'](_0x219b16['shift']());}}}(a220_0x1fa7,0x6b467));function a220_0x1fa7(){const _0x27a140=['Set\x20appcode\x20via\x20`','1719RPcnMs','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','385126cARVSn','\x0a\x20\x20\x20\x20\x20\x20\x20','81861cfwEIu','180jxXcxz','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','31952PeZJrG','23844KlRzqy','3317892vyqSrr','14IIMKEK','join','Tip:\x20`','2561482TODRWK','7996550mBdbgb'];a220_0x1fa7=function(){return _0x27a140;};return a220_0x1fa7();}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':'Run\x20`'+CLI_BIN_NAME+'\x20auth`\x20to\x20login\x20first.','configMissingHint':[a220_0x41bf46(0x1d4)+CLI_BIN_NAME+a220_0x41bf46(0x1cb),a220_0x41bf46(0x1d1)+CLI_BIN_NAME+a220_0x41bf46(0x1c6)][a220_0x41bf46(0x1d0)](a220_0x41bf46(0x1c8)),'notInProjectHint':'Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.'});
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(_0x2dfbe5,_0x31b96e){const _0x5517ce=a221_0x5c01,_0x1b653f=_0x2dfbe5();while(!![]){try{const _0x42e292=parseInt(_0x5517ce(0x72))/0x1*(-parseInt(_0x5517ce(0x6a))/0x2)+parseInt(_0x5517ce(0x6c))/0x3*(-parseInt(_0x5517ce(0x71))/0x4)+-parseInt(_0x5517ce(0x6b))/0x5*(-parseInt(_0x5517ce(0x76))/0x6)+parseInt(_0x5517ce(0x67))/0x7*(parseInt(_0x5517ce(0x70))/0x8)+-parseInt(_0x5517ce(0x68))/0x9*(parseInt(_0x5517ce(0x73))/0xa)+-parseInt(_0x5517ce(0x6d))/0xb*(parseInt(_0x5517ce(0x75))/0xc)+parseInt(_0x5517ce(0x69))/0xd;if(_0x42e292===_0x31b96e)break;else _0x1b653f['push'](_0x1b653f['shift']());}catch(_0x24be92){_0x1b653f['push'](_0x1b653f['shift']());}}}(a221_0x4cd6,0xa7ebf));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a221_0x28092d}from'@lovrabet/cli-framework';function a221_0x4cd6(){const _0x492dc3=['8724MrqeXS','155947Sbxoxl','name','yes','2886424ZuENiE','292gAzNOs','15671rQSxmD','10OejyTW','map','948sgdhCm','42WirOba','14KGbNjC','8702973szrtpH','24170107HOUmXu','86DAtDsb','771485dtCCzc'];a221_0x4cd6=function(){return _0x492dc3;};return a221_0x4cd6();}import{EXPLICIT_YES_FLAG_DESCRIPTION,requiresExplicitYes}from'../framework/explicit-yes.js';function a221_0x5c01(_0x482cfd,_0x33e086){_0x482cfd=_0x482cfd-0x67;const _0x4cd673=a221_0x4cd6();let _0x5c01fd=_0x4cd673[_0x482cfd];return _0x5c01fd;}export function buildAllFlags(_0x48ba21){const _0x239b3b=a221_0x5c01,_0x1fdb7d=a221_0x28092d(_0x48ba21,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});if(!requiresExplicitYes(_0x48ba21))return _0x1fdb7d;return _0x1fdb7d[_0x239b3b(0x74)](_0x23dec2=>_0x23dec2[_0x239b3b(0x6e)]===_0x239b3b(0x6f)?{..._0x23dec2,'description':EXPLICIT_YES_FLAG_DESCRIPTION}:_0x23dec2);}
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(_0x37a6f7,_0xed389f){var _0x5c979d=a222_0x43a9,_0x122f93=_0x37a6f7();while(!![]){try{var _0x30ccfd=-parseInt(_0x5c979d(0x1df))/0x1+parseInt(_0x5c979d(0x1e2))/0x2*(parseInt(_0x5c979d(0x1dd))/0x3)+-parseInt(_0x5c979d(0x1da))/0x4+-parseInt(_0x5c979d(0x1db))/0x5*(parseInt(_0x5c979d(0x1d9))/0x6)+-parseInt(_0x5c979d(0x1dc))/0x7*(-parseInt(_0x5c979d(0x1de))/0x8)+parseInt(_0x5c979d(0x1e4))/0x9*(-parseInt(_0x5c979d(0x1d8))/0xa)+parseInt(_0x5c979d(0x1e6))/0xb;if(_0x30ccfd===_0xed389f)break;else _0x122f93['push'](_0x122f93['shift']());}catch(_0x4bbfe2){_0x122f93['push'](_0x122f93['shift']());}}}(a222_0x2aa6,0xd9b1d));function a222_0x2aa6(){var _0x48dae3=['6894rFhKrK','3125816NhABmJ','1695asqRqi','791WJhelh','604077OGSUyl','88888wuKSCC','336647TkTYGH','def','structuredErrors','16hXnsjh','format','7389lqxxBe','defaultFormat','9049315FXZQpg','15710ixAwDk'];a222_0x2aa6=function(){return _0x48dae3;};return a222_0x2aa6();}function a222_0x43a9(_0x3d3288,_0x50b85a){_0x3d3288=_0x3d3288-0x1d8;var _0x2aa631=a222_0x2aa6();var _0x43a9a5=_0x2aa631[_0x3d3288];return _0x43a9a5;}import{resolveOutputConfig}from'@lovrabet/cli-framework';export function usesStructuredErrorOutput(_0x30b3c6){var _0x2cfe30=a222_0x43a9;return _0x30b3c6?.[_0x2cfe30(0x1e1)]===!![];}export function resolveErrorOutputFormat(_0x61c11c){var _0x4722fb=a222_0x43a9;if(!_0x61c11c[_0x4722fb(0x1e0)])return _0x61c11c['defaultFormat']??'compress';return resolveOutputConfig({'flags':_0x61c11c['flags']??{},'def':_0x61c11c['def'],'configDefault':_0x61c11c[_0x4722fb(0x1e5)]})[_0x4722fb(0x1e3)];}
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_0x5e0083=a223_0x1bd2;(function(_0x52835b,_0x100086){const _0x3348fb=a223_0x1bd2,_0x243dbf=_0x52835b();while(!![]){try{const _0x584340=-parseInt(_0x3348fb(0x133))/0x1+-parseInt(_0x3348fb(0x137))/0x2*(parseInt(_0x3348fb(0x135))/0x3)+-parseInt(_0x3348fb(0x138))/0x4*(-parseInt(_0x3348fb(0x12a))/0x5)+parseInt(_0x3348fb(0x132))/0x6+-parseInt(_0x3348fb(0x134))/0x7*(-parseInt(_0x3348fb(0x12b))/0x8)+parseInt(_0x3348fb(0x12c))/0x9*(-parseInt(_0x3348fb(0x13c))/0xa)+parseInt(_0x3348fb(0x12e))/0xb*(parseInt(_0x3348fb(0x130))/0xc);if(_0x584340===_0x100086)break;else _0x243dbf['push'](_0x243dbf['shift']());}catch(_0x4eff93){_0x243dbf['push'](_0x243dbf['shift']());}}}(a223_0x1e3e,0x3ceed));const EXPLICIT_YES_COMMANDS=new Set(['menu\x20external-link-update',a223_0x5e0083(0x131),a223_0x5e0083(0x12f),a223_0x5e0083(0x12d),a223_0x5e0083(0x139),a223_0x5e0083(0x136)]);export const EXPLICIT_YES_FLAG_DESCRIPTION=a223_0x5e0083(0x13b);export function requiresExplicitYes(_0x2ea3ea){const _0x4681e1=a223_0x5e0083;return EXPLICIT_YES_COMMANDS[_0x4681e1(0x13a)](_0x2ea3ea['service']+'\x20'+_0x2ea3ea['command']);}function a223_0x1bd2(_0x5ae48b,_0x28fbfe){_0x5ae48b=_0x5ae48b-0x12a;const _0x1e3ee4=a223_0x1e3e();let _0x1bd288=_0x1e3ee4[_0x5ae48b];return _0x1bd288;}function a223_0x1e3e(){const _0x5dbaa7=['1265fUCwpv','969520llqYfy','1486116QxXlVQ','menu\x20group-update','11ncMPZN','menu\x20group-create','7316184SzdibD','menu\x20delete','614190MPzsah','203522DpITwb','14aNCqyt','15mpJfFx','menu\x20regroup-start','134986YXMRsH','20gUJQtk','menu\x20move','has','Required\x20for\x20execution\x20after\x20reviewing\x20the\x20--dry-run\x20plan','10HzXkVX'];a223_0x1e3e=function(){return _0x5dbaa7;};return a223_0x1e3e();}
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_0x119553=a224_0x2790;(function(_0x4bbc84,_0x2db115){const _0x1b6385=a224_0x2790,_0x155070=_0x4bbc84();while(!![]){try{const _0x4cef31=-parseInt(_0x1b6385(0x1ca))/0x1+-parseInt(_0x1b6385(0x1c1))/0x2*(parseInt(_0x1b6385(0x1c7))/0x3)+parseInt(_0x1b6385(0x1c6))/0x4+parseInt(_0x1b6385(0x1c8))/0x5+parseInt(_0x1b6385(0x1c2))/0x6*(parseInt(_0x1b6385(0x1c0))/0x7)+parseInt(_0x1b6385(0x1c5))/0x8*(parseInt(_0x1b6385(0x1c9))/0x9)+parseInt(_0x1b6385(0x1c3))/0xa;if(_0x4cef31===_0x2db115)break;else _0x155070['push'](_0x155070['shift']());}catch(_0x1b11a4){_0x155070['push'](_0x155070['shift']());}}}(a224_0x50e3,0xbcb24));import{createFlagHelpers}from'@lovrabet/cli-framework';function a224_0x2790(_0x47d492,_0x31bc26){_0x47d492=_0x47d492-0x1c0;const _0x50e3a8=a224_0x50e3();let _0x279067=_0x50e3a8[_0x47d492];return _0x279067;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a224_0x119553(0x1c4)];export const validateFlags=helpers[a224_0x119553(0x1cb)];function a224_0x50e3(){const _0x512c95=['validateFlags','21CUlnyp','38YBYXAZ','496212cqDwNx','1790740jELNWV','parseFlags','9784aRFmuM','2417248tsLOvR','15363qhaoZp','1718300YKIiDU','1917MewUFw','765452HGbtUz'];a224_0x50e3=function(){return _0x512c95;};return a224_0x50e3();}
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_0x4bcdc2=a225_0x324e;(function(_0x45cd62,_0x2571da){const _0x4527f0=a225_0x324e,_0x19d591=_0x45cd62();while(!![]){try{const _0x329923=-parseInt(_0x4527f0(0xc3))/0x1*(-parseInt(_0x4527f0(0xb9))/0x2)+parseInt(_0x4527f0(0xb8))/0x3+parseInt(_0x4527f0(0xc1))/0x4+-parseInt(_0x4527f0(0xc6))/0x5+parseInt(_0x4527f0(0xc5))/0x6*(parseInt(_0x4527f0(0xbf))/0x7)+-parseInt(_0x4527f0(0xc4))/0x8*(parseInt(_0x4527f0(0xc7))/0x9)+parseInt(_0x4527f0(0xbd))/0xa;if(_0x329923===_0x2571da)break;else _0x19d591['push'](_0x19d591['shift']());}catch(_0x341d55){_0x19d591['push'](_0x19d591['shift']());}}}(a225_0x2c6c,0xdcc45));import{createHelpGenerators}from'@lovrabet/cli-framework';function a225_0x324e(_0x1ec47c,_0x375d66){_0x1ec47c=_0x1ec47c-0xb7;const _0x2c6cee=a225_0x2c6c();let _0x324e59=_0x2c6cee[_0x1ec47c];return _0x324e59;}import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{requiresExplicitYes}from'../framework/explicit-yes.js';function a225_0x2c6c(){const _0x559ae6=['generateServiceHelp','generateCommandHelp','\x20[args]\x20[flags]','3642110CLvjWq','\x20workspace\x20init`\x20or\x20--appcode).','11942mKEOtR','Requires\x20appcode\x20(set\x20via\x20`','365624BlYUQq','get','719lZozyH','8928728hbCzMj','5958ZawHue','3323035oFwhmG','9BcRyts','replace','Requires\x20--yes\x20to\x20confirm,\x20or\x20interactive\x20prompt.','1187394kKDcHJ','388mQjFop'];a225_0x2c6c=function(){return _0x559ae6;};return a225_0x2c6c();}const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x30a366=>serviceGroups[a225_0x4bcdc2(0xc2)](_0x30a366),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a225_0x4bcdc2(0xc0)+CLI_BIN_NAME+a225_0x4bcdc2(0xbe),'serviceUsageSuffix':a225_0x4bcdc2(0xbc)});export function generateCommandHelp(_0x1fb836){const _0x3aa70b=a225_0x4bcdc2,_0x14d72a=generators[_0x3aa70b(0xbb)](_0x1fb836);if(!requiresExplicitYes(_0x1fb836))return _0x14d72a;return _0x14d72a[_0x3aa70b(0xc8)](_0x3aa70b(0xb7),'Requires\x20explicit\x20--yes\x20for\x20execution;\x20use\x20--dry-run\x20to\x20preview.');}export const generateServiceHelp=generators[a225_0x4bcdc2(0xba)];export const generateFullHelp=generators['generateFullHelp'];
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(_0xdfb350,_0x92ab31){var _0x402a3d=a226_0x4219,_0x1a664d=_0xdfb350();while(!![]){try{var _0x557681=-parseInt(_0x402a3d(0x8f))/0x1*(-parseInt(_0x402a3d(0x90))/0x2)+-parseInt(_0x402a3d(0x86))/0x3*(parseInt(_0x402a3d(0x85))/0x4)+parseInt(_0x402a3d(0x87))/0x5*(parseInt(_0x402a3d(0x8c))/0x6)+parseInt(_0x402a3d(0x88))/0x7+parseInt(_0x402a3d(0x8a))/0x8*(parseInt(_0x402a3d(0x8b))/0x9)+-parseInt(_0x402a3d(0x8e))/0xa*(-parseInt(_0x402a3d(0x8d))/0xb)+-parseInt(_0x402a3d(0x89))/0xc;if(_0x557681===_0x92ab31)break;else _0x1a664d['push'](_0x1a664d['shift']());}catch(_0x37e453){_0x1a664d['push'](_0x1a664d['shift']());}}}(a226_0x1e65,0x49f9c));function a226_0x4219(_0x17e0d2,_0x33006a){_0x17e0d2=_0x17e0d2-0x85;var _0x1e6514=a226_0x1e65();var _0x4219d5=_0x1e6514[_0x17e0d2];return _0x4219d5;}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{riskLevelOrder}from'../framework/types.js';function a226_0x1e65(){var _0x53bcd2=['10HOsoHs','1xIBQXi','275402YDYUJH','436OzkpuY','6153TTZOKS','125yLFjtw','602112CXEFLK','9486228DKEOPy','4298408sgOFgf','9tYOZRu','115716oZaxcu','813054WVueLA'];a226_0x1e65=function(){return _0x53bcd2;};return a226_0x1e65();}
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_0x4198(_0x5a6bb3,_0xe67cb8){_0x5a6bb3=_0x5a6bb3-0x1cd;const _0x330786=a227_0x3307();let _0x419858=_0x330786[_0x5a6bb3];return _0x419858;}(function(_0x2b46a8,_0xac0189){const _0x58db26=a227_0x4198,_0x2569e8=_0x2b46a8();while(!![]){try{const _0x59a798=-parseInt(_0x58db26(0x1d5))/0x1+-parseInt(_0x58db26(0x1df))/0x2*(-parseInt(_0x58db26(0x1ce))/0x3)+parseInt(_0x58db26(0x1e1))/0x4+parseInt(_0x58db26(0x1e8))/0x5+-parseInt(_0x58db26(0x1dd))/0x6+-parseInt(_0x58db26(0x1d3))/0x7+parseInt(_0x58db26(0x1cf))/0x8;if(_0x59a798===_0xac0189)break;else _0x2569e8['push'](_0x2569e8['shift']());}catch(_0x7ea2ea){_0x2569e8['push'](_0x2569e8['shift']());}}}(a227_0x3307,0x9d998));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliError,CliErrors}from'../errors.js';import{applyJqFilter}from'../utils/apply-jq-filter.js';function a227_0x3307(){const _0x3f6d96=['command','trim','validation','_notice','hint','stringify','jq:\x20','6490368rPMNrO','code','118660CyaJea','write','4835024hEKUMy','error','endsWith','message','jqFilter','json','url','102605KQrQue','stdout','data','6ZJfqxq','9552552fCbXnW','pretty','update','format','1008483yQjKww','risk','670681wOMNrv'];a227_0x3307=function(){return _0x3f6d96;};return a227_0x3307();}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x3924c8,_0x131379){const _0x4d275c=a227_0x4198,_0x334517=_0x3924c8[_0x4d275c(0x1d9)],{_notice:_0x1cbb1a,..._0x225392}=_0x3924c8;void _0x1cbb1a,baseFormatOutput(_0x225392,_0x131379),_0x131379[_0x4d275c(0x1d2)]===_0x4d275c(0x1d0)&&printPrettyNotice(_0x334517);}export function formatCliError(_0x5ed8ff,_0x5369c3){const _0x3f1c4b=a227_0x4198;if(_0x5369c3[_0x3f1c4b(0x1d2)]==='pretty')return![];const _0x443762=_0x5ed8ff[_0x3f1c4b(0x1cd)],_0x34d9cf={'ok':![],'command':_0x5369c3[_0x3f1c4b(0x1d6)],'risk':_0x5369c3[_0x3f1c4b(0x1d4)],'data':_0x443762??null,'error':{'code':_0x5ed8ff[_0x3f1c4b(0x1de)],'message':_0x5ed8ff[_0x3f1c4b(0x1e4)],..._0x5ed8ff[_0x3f1c4b(0x1da)]?{'hint':_0x5ed8ff[_0x3f1c4b(0x1da)]}:{}}},_0x25c77a=_0x5369c3[_0x3f1c4b(0x1d2)]===_0x3f1c4b(0x1e6)?JSON[_0x3f1c4b(0x1db)](_0x34d9cf,null,0x2):JSON['stringify'](_0x34d9cf);let _0x190fcd=_0x25c77a;if(_0x5369c3['jqFilter']?.[_0x3f1c4b(0x1d7)]())try{_0x190fcd=applyJqFilter(_0x25c77a,_0x5369c3[_0x3f1c4b(0x1e5)]);}catch(_0x5cc7ef){const _0x8f1837=_0x5cc7ef instanceof CliError?_0x5cc7ef:CliErrors[_0x3f1c4b(0x1d8)](_0x3f1c4b(0x1dc)+(_0x5cc7ef instanceof Error?_0x5cc7ef[_0x3f1c4b(0x1e4)]:String(_0x5cc7ef))),_0x417783={..._0x34d9cf,'error':{'code':_0x8f1837[_0x3f1c4b(0x1de)],'message':_0x8f1837[_0x3f1c4b(0x1e4)],..._0x8f1837['hint']?{'hint':_0x8f1837[_0x3f1c4b(0x1da)]}:{},'cause':_0x34d9cf[_0x3f1c4b(0x1e2)]}};_0x190fcd=_0x5369c3['format']===_0x3f1c4b(0x1e6)?JSON['stringify'](_0x417783,null,0x2):JSON[_0x3f1c4b(0x1db)](_0x417783);}return process[_0x3f1c4b(0x1e9)][_0x3f1c4b(0x1e0)](_0x190fcd[_0x3f1c4b(0x1e3)]('\x0a')?_0x190fcd:_0x190fcd+'\x0a'),!![];}function printPrettyNotice(_0x27e0e4){const _0x17cb0a=a227_0x4198;if(!_0x27e0e4?.[_0x17cb0a(0x1d1)])return;console[_0x17cb0a(0x1e2)](_0x27e0e4[_0x17cb0a(0x1d1)][_0x17cb0a(0x1e4)]+'\x20('+_0x27e0e4[_0x17cb0a(0x1d1)][_0x17cb0a(0x1e7)]+')');}
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_0x4a10(_0x27e31a,_0x432f5e){_0x27e31a=_0x27e31a-0x12d;var _0x24e679=a228_0x24e6();var _0x4a105a=_0x24e679[_0x27e31a];return _0x4a105a;}(function(_0x2df045,_0x307f3c){var _0x289658=a228_0x4a10,_0x548afa=_0x2df045();while(!![]){try{var _0x39970d=-parseInt(_0x289658(0x135))/0x1*(-parseInt(_0x289658(0x12d))/0x2)+-parseInt(_0x289658(0x12f))/0x3+-parseInt(_0x289658(0x132))/0x4*(-parseInt(_0x289658(0x12e))/0x5)+parseInt(_0x289658(0x133))/0x6+parseInt(_0x289658(0x130))/0x7*(-parseInt(_0x289658(0x134))/0x8)+parseInt(_0x289658(0x131))/0x9+-parseInt(_0x289658(0x136))/0xa;if(_0x39970d===_0x307f3c)break;else _0x548afa['push'](_0x548afa['shift']());}catch(_0x4d1185){_0x548afa['push'](_0x548afa['shift']());}}}(a228_0x24e6,0x82d33));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a228_0x24e6(){var _0x4952a2=['8ICxtms','1hFoLtK','7424610MWDBVd','1159374ppZjHJ','865iusQDr','2351379eudHBk','5413737nuUJos','6083064qfUQLK','22828crDMjk','3555660IHhFzJ'];a228_0x24e6=function(){return _0x4952a2;};return a228_0x24e6();}
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_0x2103(_0x3ba793,_0x12f6b8){_0x3ba793=_0x3ba793-0x12d;const _0x4431cd=a229_0x4431();let _0x2103fa=_0x4431cd[_0x3ba793];return _0x2103fa;}(function(_0x32b1ee,_0x18f4be){const _0x3a85ef=a229_0x2103,_0x17ce1f=_0x32b1ee();while(!![]){try{const _0x2d8f41=-parseInt(_0x3a85ef(0x12f))/0x1+-parseInt(_0x3a85ef(0x136))/0x2*(parseInt(_0x3a85ef(0x13b))/0x3)+parseInt(_0x3a85ef(0x130))/0x4+parseInt(_0x3a85ef(0x143))/0x5*(-parseInt(_0x3a85ef(0x135))/0x6)+-parseInt(_0x3a85ef(0x134))/0x7+parseInt(_0x3a85ef(0x132))/0x8*(parseInt(_0x3a85ef(0x13f))/0x9)+parseInt(_0x3a85ef(0x12e))/0xa;if(_0x2d8f41===_0x18f4be)break;else _0x17ce1f['push'](_0x17ce1f['shift']());}catch(_0x291876){_0x17ce1f['push'](_0x17ce1f['shift']());}}}(a229_0x4431,0xe054a));import{CliErrors}from'../errors.js';function a229_0x4431(){const _0x15e719=['type','23169720JeZjHJ','948031DLUBxL','3919476zQFYfM','map','3259984GEkakJ','Unknown\x20alias\x20\x22','4647888joxjdf','1038IKSzDg','12802YSQagr','flags','.\x20Run\x20`','Available\x20aliases:\x20','\x22.\x20','633pDAzsb','alias','join','code','27hlxjzw','some','`\x20requires\x20either\x20--code\x20or\x20--alias.','\x20api\x20pull`\x20first.','18435IwJarW','string','name','validation'];a229_0x4431=function(){return _0x15e719;};return a229_0x4431();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x9f7f17,_0x2f505d,_0x3aaf40,_0x55c753){const _0x3b6425=a229_0x2103,_0x41779d=_0x9f7f17['flags'][_0x3b6425(0x140)](_0x1e42b3=>_0x1e42b3[_0x3b6425(0x145)]===_0x3b6425(0x13e)&&_0x1e42b3[_0x3b6425(0x12d)]===_0x3b6425(0x144)),_0x2f0587=_0x9f7f17[_0x3b6425(0x137)][_0x3b6425(0x140)](_0x419bde=>_0x419bde[_0x3b6425(0x145)]===_0x3b6425(0x13c)&&_0x419bde['type']===_0x3b6425(0x144));if(!_0x41779d||!_0x2f0587)return;const _0x138a34=_0x2f505d[_0x3b6425(0x13e)]?String(_0x2f505d[_0x3b6425(0x13e)]):'',_0x2a7e0f=_0x2f505d[_0x3b6425(0x13c)]?String(_0x2f505d['alias']):'';if(!_0x138a34&&!_0x2a7e0f)throw CliErrors[_0x3b6425(0x146)]('`'+_0x55c753+_0x3b6425(0x141));if(_0x2a7e0f&&!_0x138a34){const _0xe50e66=resolveAlias(_0x3aaf40,_0x2a7e0f);if(!_0xe50e66){const _0x5770ca=listAliases(_0x3aaf40)[_0x3b6425(0x131)](_0x4f7c08=>_0x4f7c08['alias']),_0x10df54=_0x5770ca['length']?_0x3b6425(0x139)+_0x5770ca[_0x3b6425(0x13d)](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x3aaf40+_0x3b6425(0x138)+CLI_BIN_NAME+_0x3b6425(0x142);throw CliErrors[_0x3b6425(0x146)](_0x3b6425(0x133)+_0x2a7e0f+_0x3b6425(0x13a)+_0x10df54);}_0x2f505d[_0x3b6425(0x13e)]=_0xe50e66;}}
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_0x31fbcd=a230_0x224f;(function(_0x2ad44b,_0x30e99f){const _0xd838e3=a230_0x224f,_0x7c1d4=_0x2ad44b();while(!![]){try{const _0xb95b9c=-parseInt(_0xd838e3(0x109))/0x1+parseInt(_0xd838e3(0x12e))/0x2*(-parseInt(_0xd838e3(0x130))/0x3)+-parseInt(_0xd838e3(0x134))/0x4+-parseInt(_0xd838e3(0x113))/0x5*(parseInt(_0xd838e3(0x100))/0x6)+parseInt(_0xd838e3(0x13e))/0x7+-parseInt(_0xd838e3(0x105))/0x8*(-parseInt(_0xd838e3(0x13a))/0x9)+parseInt(_0xd838e3(0x13f))/0xa*(parseInt(_0xd838e3(0x103))/0xb);if(_0xb95b9c===_0x30e99f)break;else _0x7c1d4['push'](_0x7c1d4['shift']());}catch(_0x3c5456){_0x7c1d4['push'](_0x7c1d4['shift']());}}}(a230_0x294f,0xef51d));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';function a230_0x294f(){const _0x5516b2=['currentApp','string','value','filter','../core/api-client.js','validation','appcode','\x20\x20\x20Continue?\x20[y/N]\x20','meowKey','command','object','LOVRABET_APPCODE','Set\x20appcode\x20via\x20`','rawFlags','format','defaultPageSize','RABETBASE_APPCODE','⚠\x20\x20High-risk\x20operation:\x20','some','configMissing','pretty','mergedCli','2NmUGFU','No\x20appcode\x20is\x20resolved\x20from\x20--appcode,\x20project\x20config,\x20or\x20global\x20config.','4123149aWfqRK','riskLevel','service','selectedAppName','2350920oygiVM','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','doctor','_notice','replace','Current\x20resolved\x20appcode\x20is\x20\x22','63mOtjUg','required','schema','map','11095238peaUmO','6860bXVhnw','hint','isNonInteractive','apps','300aiAyrO','defaultApp','has','19393TYillB','cookie','1841336UDGJot','cancelled','appCode','requiresAppCode','646955lZGVMt','resolveAppCode','defaultVerbose','verbose','To\x20use\x20this\x20environment\x20variable,\x20pass\x20--appcode\x20\x22$','name','hasFormat','explicitAppName','apiDir','update','81630PcztKx','nonInteractive','trim','resolve','resolveApiDomain'];a230_0x294f=function(){return _0x5516b2;};return a230_0x294f();}import{isNonInteractive as a230_0x17d1ad}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';function stringFlag(_0xfe2b78){const _0x1c9b3d=a230_0x224f;return typeof _0xfe2b78===_0x1c9b3d(0x119)&&_0xfe2b78[_0x1c9b3d(0x115)]()?_0xfe2b78[_0x1c9b3d(0x115)]():undefined;}function a230_0x224f(_0x1bec91,_0x296386){_0x1bec91=_0x1bec91-0x100;const _0x294f24=a230_0x294f();let _0x224f56=_0x294f24[_0x1bec91];return _0x224f56;}function resolveEnvAppCode(){const _0x3b0010=a230_0x224f,_0x14bcfe=stringFlag(process.env.RABETBASE_APPCODE);if(_0x14bcfe)return{'name':_0x3b0010(0x128),'value':_0x14bcfe};const _0x348ee0=stringFlag(process.env.LOVRABET_APPCODE);if(_0x348ee0)return{'name':_0x3b0010(0x123),'value':_0x348ee0};return undefined;}function hasExplicitAppCode(_0x4b32ff,_0xf746cb){const _0x523a8a=a230_0x224f;return!!(stringFlag(_0x4b32ff[_0x523a8a(0x11e)])||stringFlag(_0xf746cb[_0x523a8a(0x11e)]));}function assertEnvAppCodeNotIgnored(_0x379b3d,_0x588088,_0x10aeb4){const _0x29e060=a230_0x224f;if(!_0x588088||_0x10aeb4||_0x379b3d===_0x588088[_0x29e060(0x11a)])return;const _0x2b812c=_0x379b3d?_0x29e060(0x139)+_0x379b3d+'\x22.':_0x29e060(0x12f);throw CliErrors[_0x29e060(0x11d)](_0x588088[_0x29e060(0x10e)]+'='+_0x588088[_0x29e060(0x11a)]+'\x20is\x20not\x20used\x20as\x20appcode\x20automatically.\x20'+_0x2b812c+'\x20'+(_0x29e060(0x10d)+_0x588088[_0x29e060(0x10e)]+'\x22.'));}export function createPipelineEnv(_0x241b55,_0x3674a6,_0x1d6035=[]){const _0x27a716=a230_0x224f;return{'rawFlags':_0x3674a6,'args':_0x1d6035,'resolveAppCode':()=>_0x241b55['appCode'],'resolveCookie':()=>_0x241b55[_0x27a716(0x104)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a230_0x17d1ad(_0x3674a6),'defaultFormat':_0x241b55['format'],'defaultPageSize':_0x241b55['pageSize'],'defaultVerbose':_0x241b55[_0x27a716(0x10c)],'apiDir':_0x241b55['apiDir'],'riskLevel':_0x241b55[_0x27a716(0x131)],'selectedAppName':_0x241b55[_0x27a716(0x110)],'mergedCli':{'defaultApp':_0x241b55[_0x27a716(0x101)],'currentApp':_0x241b55[_0x27a716(0x118)],'appCode':_0x241b55[_0x27a716(0x107)],'apps':_0x241b55[_0x27a716(0x142)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a230_0x31fbcd(0x11b)](_0x439eeb=>PIPELINE_FLAG_NAMES[a230_0x31fbcd(0x102)](_0x439eeb[a230_0x31fbcd(0x10e)]))[a230_0x31fbcd(0x13d)](({name:_0x53fe32,type:_0x23e991,description:_0x5d97ed})=>({'name':_0x53fe32,'type':_0x23e991,'description':_0x5d97ed})),'formatOutput':formatOutput,'getCommandLabel'(_0x40be7f){const _0x40dca9=a230_0x31fbcd;return CLI_BIN_NAME+'\x20'+_0x40be7f[_0x40dca9(0x132)]+'\x20'+_0x40be7f[_0x40dca9(0x121)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x2ce02f){const _0x489d18=a230_0x31fbcd;return CliErrors[_0x489d18(0x11d)](_0x2ce02f);}},async 'prepare'(_0x34c825,_0x409320,_0x5c0514,_0x276921){const _0x22f005=a230_0x31fbcd,_0x24b096=_0x409320[_0x22f005(0x111)]||DEFAULT_API_DIR;resolveAliasToCode(_0x34c825,_0x5c0514,_0x24b096,_0x276921);const _0x10c1a0=resolveCommandAuthMode(_0x34c825);let _0x80453e='';if(_0x10c1a0!=='none'){_0x80453e=_0x409320['resolveCookie']()||'';if(!_0x80453e){if(_0x10c1a0===_0x22f005(0x13b))throw CliErrors['authRequired']();}else{const {setActiveCookie:_0x4229ff}=await import(_0x22f005(0x11c));_0x4229ff(_0x80453e);}}const _0x264081=_0x409320[_0x22f005(0x10a)]()??'';if(_0x34c825[_0x22f005(0x108)]!==![]){assertEnvAppCodeNotIgnored(_0x264081,resolveEnvAppCode(),hasExplicitAppCode(_0x5c0514,_0x409320['rawFlags']));if(!_0x264081)throw CliErrors[_0x22f005(0x12b)](_0x22f005(0x124)+CLI_BIN_NAME+_0x22f005(0x135));}return{'defaults':{'booleans':{'verbose':_0x409320[_0x22f005(0x10b)]},'numbers':{'pagesize':_0x409320[_0x22f005(0x127)]}},'extras':{'appCode':_0x264081,'cookie':_0x80453e,'apiDomain':_0x409320[_0x22f005(0x117)](),'apiDir':_0x24b096,'selectedAppName':_0x409320[_0x22f005(0x133)],'mergedCli':_0x409320[_0x22f005(0x12d)]}};},async 'confirmHighRisk'({env:_0x391d0f,commandLabel:_0x1107a7}){const _0x4acf21=a230_0x31fbcd;if(_0x391d0f[_0x4acf21(0x141)])throw CliErrors[_0x4acf21(0x11d)]('High-risk\x20operation\x20`'+_0x1107a7+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.');await requireConfirmationPrompt({'lines':[_0x4acf21(0x129)+_0x1107a7,_0x4acf21(0x11f)],'createCancelledError':_0x3bffb3=>CliErrors[_0x4acf21(0x106)](_0x3bffb3)});},async 'finalize'(){const _0x4a55ed=a230_0x31fbcd,{clearActiveCookie:_0x4ecf95}=await import(_0x4a55ed(0x11c));_0x4ecf95();}};export async function runCommand(_0x2e0010,_0x2c08dd){const _0x219866=a230_0x31fbcd;assertRejectedFlags(_0x2e0010,_0x2c08dd[_0x219866(0x125)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x2e0010)?withUpdateNotice(_0x2e0010):_0x2e0010,_0x2c08dd,runnerAdapter);}function assertRejectedFlags(_0xa830a9,_0x10a1ae){const _0x1cdd3d=a230_0x31fbcd;for(const _0x5c275b of _0xa830a9['rejectedFlags']??[]){const _0x8d98d7=GLOBAL_FLAGS['find'](_0x34c1a0=>_0x34c1a0[_0x1cdd3d(0x10e)]===_0x5c275b[_0x1cdd3d(0x10e)]),_0x144cb4=new Set([_0x5c275b[_0x1cdd3d(0x10e)],toCamelCase(_0x5c275b[_0x1cdd3d(0x10e)]),_0x8d98d7?.[_0x1cdd3d(0x120)]]),_0x44fe60=[..._0x144cb4][_0x1cdd3d(0x12a)](_0x3565ff=>{if(!_0x3565ff)return![];const _0x4f3b04=_0x10a1ae[_0x3565ff];return _0x4f3b04!==undefined&&_0x4f3b04!==null&&_0x4f3b04!==![];});if(_0x44fe60)throw CliErrors[_0x1cdd3d(0x11d)](_0x5c275b['message'],_0x5c275b[_0x1cdd3d(0x140)]);}}function toCamelCase(_0x147dca){const _0x4b82c0=a230_0x31fbcd;return _0x147dca[_0x4b82c0(0x138)](/-([a-z])/g,(_0x327821,_0x48123a)=>_0x48123a['toUpperCase']());}function shouldAttachUpdateNotice(_0x2ef56f){const _0xa56729=a230_0x31fbcd;if(_0x2ef56f[_0xa56729(0x10f)]===![])return![];return![_0xa56729(0x112),_0xa56729(0x13c),_0xa56729(0x136)]['includes'](_0x2ef56f['service']);}function withUpdateNotice(_0x3401bf){return{..._0x3401bf,async 'execute'(_0x2e4881){const _0x1a2423=a230_0x224f,_0x2bc2fd=shouldResolveUpdateNotice(_0x2e4881)?resolveLatestUpdateNotice()['catch'](()=>null):Promise[_0x1a2423(0x116)](null),_0x54879a=await _0x3401bf['execute'](_0x2e4881);return attachUpdateNotice(_0x54879a,await _0x2bc2fd);}};}function shouldResolveUpdateNotice(_0x35ade6){const _0x109a85=a230_0x31fbcd;return _0x35ade6[_0x109a85(0x126)]===_0x109a85(0x12c)&&!_0x35ade6[_0x109a85(0x114)];}function attachUpdateNotice(_0x53466c,_0x18cdb1){const _0xe63d0e=a230_0x31fbcd;if(!_0x18cdb1||!_0x53466c||typeof _0x53466c!==_0xe63d0e(0x122))return _0x53466c;const _0x13f3b5=_0x53466c,_0x5813c1=typeof _0x13f3b5['_notice']===_0xe63d0e(0x122)&&_0x13f3b5[_0xe63d0e(0x137)]!==null?_0x13f3b5[_0xe63d0e(0x137)]:{};return{..._0x13f3b5,'_notice':{..._0x5813c1,'update':_0x18cdb1}};}
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}};}