@lovrabet/rabetbase-cli 2.1.12 → 2.1.14-beta.0

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 (201) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/dataset/rename.js +1 -0
  64. package/lib/commands/db/analyze-cancel.js +1 -1
  65. package/lib/commands/db/analyze-start.js +1 -1
  66. package/lib/commands/db/analyze-status.js +1 -1
  67. package/lib/commands/db/create.js +1 -1
  68. package/lib/commands/db/delete.js +1 -1
  69. package/lib/commands/db/detail.js +1 -1
  70. package/lib/commands/db/diff.js +1 -1
  71. package/lib/commands/db/index.js +1 -1
  72. package/lib/commands/db/list.js +1 -1
  73. package/lib/commands/db/shared.js +1 -1
  74. package/lib/commands/db/tables.js +1 -1
  75. package/lib/commands/db/test.js +1 -1
  76. package/lib/commands/db/update.js +1 -1
  77. package/lib/commands/doctor.js +1 -1
  78. package/lib/commands/init/index.js +1 -1
  79. package/lib/commands/issue/index.js +1 -1
  80. package/lib/commands/issue/nudge.js +1 -1
  81. package/lib/commands/issue/report.js +1 -1
  82. package/lib/commands/issue/shared.js +1 -1
  83. package/lib/commands/logs/index.js +1 -1
  84. package/lib/commands/menu/index.js +1 -1
  85. package/lib/commands/menu/shared/compare-table.js +1 -1
  86. package/lib/commands/menu/shared/index.js +1 -1
  87. package/lib/commands/menu/shared/inquirer.js +1 -1
  88. package/lib/commands/menu/shared/local-pages.js +1 -1
  89. package/lib/commands/menu/shared/logic.js +1 -1
  90. package/lib/commands/menu/shared/service.js +1 -1
  91. package/lib/commands/menu/shared/sync-core.js +1 -1
  92. package/lib/commands/menu/shared/update-core.js +1 -1
  93. package/lib/commands/menu/shared/valid-url.js +1 -1
  94. package/lib/commands/menu/sync.js +1 -1
  95. package/lib/commands/menu/update.js +1 -1
  96. package/lib/commands/page/generate-start.js +1 -1
  97. package/lib/commands/page/generate-status.js +1 -1
  98. package/lib/commands/page/index.js +1 -1
  99. package/lib/commands/page/pull.js +1 -1
  100. package/lib/commands/page/push.js +1 -1
  101. package/lib/commands/page/shared.js +1 -1
  102. package/lib/commands/page/standard-page-status.js +1 -1
  103. package/lib/commands/page/sync.js +1 -1
  104. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  105. package/lib/commands/project/create/format-elapsed.js +1 -1
  106. package/lib/commands/project/create/main.js +1 -1
  107. package/lib/commands/project/create/non-interactive.js +1 -1
  108. package/lib/commands/project/create/project-template-path.js +1 -1
  109. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  110. package/lib/commands/project/create/use-format-code.js +1 -1
  111. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  112. package/lib/commands/project/index.js +1 -1
  113. package/lib/commands/project/init.js +1 -1
  114. package/lib/commands/project/upgrade.js +1 -1
  115. package/lib/commands/registry.js +1 -1
  116. package/lib/commands/run/index.js +1 -1
  117. package/lib/commands/schema.js +1 -1
  118. package/lib/commands/skill/index.js +1 -1
  119. package/lib/commands/sql/create.js +1 -1
  120. package/lib/commands/sql/delete.js +1 -1
  121. package/lib/commands/sql/detail.js +1 -1
  122. package/lib/commands/sql/exec.js +1 -1
  123. package/lib/commands/sql/index.js +1 -1
  124. package/lib/commands/sql/list.js +1 -1
  125. package/lib/commands/sql/pull.js +1 -1
  126. package/lib/commands/sql/push.js +1 -1
  127. package/lib/commands/sql/save.js +1 -1
  128. package/lib/commands/sql/shared.js +1 -1
  129. package/lib/commands/sql/status.js +1 -1
  130. package/lib/commands/sql/validate.js +1 -1
  131. package/lib/config/schema.js +1 -1
  132. package/lib/constant/cdn.js +1 -1
  133. package/lib/constant/cli.js +1 -1
  134. package/lib/constant/defaults.js +1 -1
  135. package/lib/constant/domain.js +1 -1
  136. package/lib/constant/env.js +1 -1
  137. package/lib/constant/output.js +1 -1
  138. package/lib/constant/paths.js +1 -1
  139. package/lib/constant/risk.js +1 -1
  140. package/lib/context.js +1 -1
  141. package/lib/core/alias-resolver.js +1 -1
  142. package/lib/core/api-client.js +1 -1
  143. package/lib/core/bff/config.js +1 -1
  144. package/lib/core/bff/file-system.js +1 -1
  145. package/lib/core/bff/hash.js +1 -1
  146. package/lib/core/bff/lock.js +1 -1
  147. package/lib/core/bff/utils.js +1 -1
  148. package/lib/core/db-resolver.js +1 -1
  149. package/lib/core/page/file-system.js +1 -1
  150. package/lib/core/page/hash.js +1 -1
  151. package/lib/core/page/lock.js +1 -1
  152. package/lib/core/sql-sync/config.js +1 -1
  153. package/lib/core/sql-sync/file-system.js +1 -1
  154. package/lib/core/sql-sync/hash.js +1 -1
  155. package/lib/core/sql-sync/lock.js +1 -1
  156. package/lib/core/sql-sync/utils.js +1 -1
  157. package/lib/core/sql-validator.js +1 -1
  158. package/lib/errors.js +1 -1
  159. package/lib/framework/build-all-flags.js +1 -1
  160. package/lib/framework/flags.js +1 -1
  161. package/lib/framework/help.js +1 -1
  162. package/lib/framework/index.js +1 -1
  163. package/lib/framework/output.js +1 -1
  164. package/lib/framework/response.js +1 -1
  165. package/lib/framework/runner-alias.js +1 -1
  166. package/lib/framework/runner.js +1 -1
  167. package/lib/framework/schema-export.js +1 -1
  168. package/lib/framework/types.js +1 -1
  169. package/lib/generated/build-info.js +1 -1
  170. package/lib/help.js +1 -1
  171. package/lib/skills/main.js +1 -1
  172. package/lib/skills/npx-skills-add.js +1 -1
  173. package/lib/telemetry/cli-command-trace.js +1 -1
  174. package/lib/telemetry/cli-help-trace.js +1 -1
  175. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  176. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  177. package/lib/telemetry/send-cli-trace-log.js +1 -1
  178. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  179. package/lib/utils/ai_config.js +1 -1
  180. package/lib/utils/apply-jq-filter.js +1 -1
  181. package/lib/utils/cdn-config.js +1 -1
  182. package/lib/utils/check-sdk-version.js +1 -1
  183. package/lib/utils/cli-version-check.js +1 -1
  184. package/lib/utils/cli-version-policy.js +1 -1
  185. package/lib/utils/config.js +1 -1
  186. package/lib/utils/copy-directory.js +1 -1
  187. package/lib/utils/entity-with-id.js +1 -1
  188. package/lib/utils/file-utils.js +1 -1
  189. package/lib/utils/guides-cdn.js +1 -1
  190. package/lib/utils/http-client.js +1 -1
  191. package/lib/utils/is-non-interactive.js +1 -1
  192. package/lib/utils/logger.js +1 -1
  193. package/lib/utils/params.js +1 -1
  194. package/lib/utils/platform.js +1 -1
  195. package/lib/utils/rules-cdn.js +1 -1
  196. package/lib/utils/sleep.js +1 -1
  197. package/lib/utils/template-replacer.js +1 -1
  198. package/lib/utils/version.js +1 -1
  199. package/lib/utils/with-active-cookie.js +1 -1
  200. package/lib/utils/write-cli-side-channel.js +1 -1
  201. package/package.json +1 -1
@@ -1 +1 @@
1
- const a132_0x1b5bfe=a132_0x32d1;(function(_0x322b26,_0xd48c0c){const _0x143359=a132_0x32d1,_0x431f1e=_0x322b26();while(!![]){try{const _0x574be8=parseInt(_0x143359(0x119))/0x1*(-parseInt(_0x143359(0x105))/0x2)+parseInt(_0x143359(0xe7))/0x3*(parseInt(_0x143359(0x10d))/0x4)+parseInt(_0x143359(0xdb))/0x5*(-parseInt(_0x143359(0xe2))/0x6)+parseInt(_0x143359(0xcf))/0x7*(parseInt(_0x143359(0xea))/0x8)+-parseInt(_0x143359(0xce))/0x9+parseInt(_0x143359(0xc0))/0xa+parseInt(_0x143359(0xd4))/0xb;if(_0x574be8===_0xd48c0c)break;else _0x431f1e['push'](_0x431f1e['shift']());}catch(_0x22365b){_0x431f1e['push'](_0x431f1e['shift']());}}}(a132_0x5b6f,0x71dd4));export const CLI_BIN_NAME=a132_0x1b5bfe(0xfd);export const CLI_DISPLAY_NAME=a132_0x1b5bfe(0xec);function a132_0x32d1(_0x1b275b,_0x1662f8){_0x1b275b=_0x1b275b-0xb1;const _0x5b6f35=a132_0x5b6f();let _0x32d1c8=_0x5b6f35[_0x1b275b];return _0x32d1c8;}function a132_0x5b6f(){const _0xdee378=['Verbose\x20output','dbid','db-id','function-node','title','<expr>','Output\x20path','Enable\x20BFF\x20save','page','7161579jruIei','1538831ejMqEz','Description','<code>','Watch\x20mode','verbose','2543794XJawus','enableBffSave','boolean','json\x20|\x20pretty\x20|\x20compress','force','clear','dbId','815170pRrqNn','skipImports','File\x20path','target','<name>','SQL\x20name','Keyword\x20filter','24RNFkmt','all','descriptionFile','sqlName','string','266967jmstgf','SQL\x20code','appcode','32mUaXOB','sqlcode','Rabetbase\x20CLI','pagesize','format','Config\x20key','sql','Record\x20ID','value','Function\x20node','name','dry-run','Skip\x20import\x20generation','fromEntries','nonInteractive','file','Alias\x20for\x20--non-interactive','datasetcode','Target\x20path','rabetbase','Name','Clear','enable-bff-save','sqlname','meowKey','@lovrabet/rabetbase-cli','operation','22198sjLEWv','sql-name','non-interactive','confirm','Dataset\x20code','Force\x20overwrite','Expected\x20affected\x20count','functionNode','32LKEeLB','type','schemas','env','JSON\x20params','Use\x20project\x20config\x20scope','description-file','output','Select\x20app\x20profile\x20by\x20name','Schemas','Description\x20file','Type\x20filter','53qbVpov','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Preview\x20operation\x20without\x20executing','global','Config\x20value','map','Override\x20appcode','expected-count','Code\x20filter','key','project','Operation\x20type','code','Title','Skip\x20confirmation\x20for\x20high-risk\x20writes','app','Apply\x20to\x20all','params','keyword','Confirm\x20destructive\x20action','yes','skip-imports','watch','6800040ZClUdD','dryRun','Show\x20help','expectedCount','Page\x20size'];a132_0x5b6f=function(){return _0xdee378;};return a132_0x5b6f();}export const NPM_PACKAGE_NAME=a132_0x1b5bfe(0x103);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a132_0x1b5bfe(0xe9),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x11f),'hint':a132_0x1b5bfe(0xd1)},{'name':a132_0x1b5bfe(0xb8),'meowKey':a132_0x1b5bfe(0xb8),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x115),'hint':a132_0x1b5bfe(0xdf)},{'name':a132_0x1b5bfe(0x110),'meowKey':a132_0x1b5bfe(0x110),'type':a132_0x1b5bfe(0xe6),'description':'Environment','hint':'production\x20|\x20daily'},{'name':'format','meowKey':a132_0x1b5bfe(0xee),'type':a132_0x1b5bfe(0xe6),'description':'Output\x20format','hint':a132_0x1b5bfe(0xd7)},{'name':'jq','meowKey':'jq','type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x11a),'hint':a132_0x1b5bfe(0xca)},{'name':a132_0x1b5bfe(0xf5),'meowKey':a132_0x1b5bfe(0xc1),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0x11b)},{'name':a132_0x1b5bfe(0xbd),'meowKey':a132_0x1b5bfe(0xbd),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xb7)},{'name':'non-interactive','meowKey':a132_0x1b5bfe(0xf8),'type':'boolean','description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a132_0x1b5bfe(0x11c),'type':a132_0x1b5bfe(0xd6),'description':'Use\x20global\x20config\x20scope'},{'name':a132_0x1b5bfe(0xb3),'meowKey':a132_0x1b5bfe(0xb3),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0x112)},{'name':'ci','meowKey':'ci','type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xfa),'hidden':!![]},{'name':'help','meowKey':'help','type':'boolean','description':a132_0x1b5bfe(0xc2)},{'name':a132_0x1b5bfe(0xf4),'meowKey':a132_0x1b5bfe(0xf4),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xfe),'hidden':!![]},{'name':a132_0x1b5bfe(0xc9),'meowKey':a132_0x1b5bfe(0xc9),'type':'string','description':a132_0x1b5bfe(0xb6),'hidden':!![]},{'name':a132_0x1b5bfe(0xd9),'meowKey':a132_0x1b5bfe(0xd9),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xff),'hidden':!![]},{'name':a132_0x1b5bfe(0xbf),'meowKey':a132_0x1b5bfe(0xbf),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xd2),'hidden':!![]},{'name':a132_0x1b5bfe(0x114),'meowKey':a132_0x1b5bfe(0x114),'type':'string','description':a132_0x1b5bfe(0xcb),'hidden':!![]},{'name':a132_0x1b5bfe(0xba),'meowKey':'params','type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x111),'hidden':!![]},{'name':'datasetcode','meowKey':a132_0x1b5bfe(0xfb),'type':'string','description':a132_0x1b5bfe(0x109),'hidden':!![]},{'name':a132_0x1b5bfe(0xe3),'meowKey':a132_0x1b5bfe(0xe3),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xb9),'hidden':!![]},{'name':a132_0x1b5bfe(0x100),'meowKey':a132_0x1b5bfe(0xd5),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xcc),'hidden':!![]},{'name':'id','meowKey':'id','type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xf1),'hidden':!![]},{'name':a132_0x1b5bfe(0x10e),'meowKey':a132_0x1b5bfe(0x10e),'type':'string','description':a132_0x1b5bfe(0x118),'hidden':!![]},{'name':a132_0x1b5bfe(0xf9),'meowKey':a132_0x1b5bfe(0xf9),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xdd),'hidden':!![]},{'name':a132_0x1b5bfe(0xeb),'meowKey':a132_0x1b5bfe(0xeb),'type':'string','description':a132_0x1b5bfe(0xe8),'hidden':!![]},{'name':a132_0x1b5bfe(0x106),'meowKey':a132_0x1b5bfe(0xe5),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xe0),'hidden':!![]},{'name':a132_0x1b5bfe(0x101),'meowKey':a132_0x1b5bfe(0x101),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xe0),'hidden':!![]},{'name':a132_0x1b5bfe(0xc7),'meowKey':a132_0x1b5bfe(0xda),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a132_0x1b5bfe(0xc6),'meowKey':a132_0x1b5bfe(0xc6),'type':a132_0x1b5bfe(0xe6),'description':'DB\x20ID','hidden':!![]},{'name':'description','meowKey':'description','type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xd0),'hidden':!![]},{'name':a132_0x1b5bfe(0x113),'meowKey':a132_0x1b5bfe(0xe4),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x117),'hidden':!![]},{'name':a132_0x1b5bfe(0xcd),'meowKey':a132_0x1b5bfe(0xcd),'type':a132_0x1b5bfe(0xe6),'description':'Page\x20number','hidden':!![]},{'name':a132_0x1b5bfe(0xed),'meowKey':a132_0x1b5bfe(0xed),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xc4),'hidden':!![]},{'name':a132_0x1b5bfe(0xbb),'meowKey':a132_0x1b5bfe(0xbb),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xe1),'hidden':!![]},{'name':'code','meowKey':a132_0x1b5bfe(0xb5),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xb1),'hidden':!![]},{'name':a132_0x1b5bfe(0xf0),'meowKey':a132_0x1b5bfe(0xf0),'type':a132_0x1b5bfe(0xe6),'description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a132_0x1b5bfe(0x10f),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x116),'hidden':!![]},{'name':'operation','meowKey':a132_0x1b5bfe(0x104),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':a132_0x1b5bfe(0xde),'meowKey':a132_0x1b5bfe(0xde),'type':'string','description':a132_0x1b5bfe(0xfc),'hidden':!![]},{'name':a132_0x1b5bfe(0xbe),'meowKey':a132_0x1b5bfe(0xdc),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xf6),'hidden':!![]},{'name':a132_0x1b5bfe(0xb2),'meowKey':'key','type':'string','description':a132_0x1b5bfe(0xef),'hidden':!![]},{'name':'value','meowKey':a132_0x1b5bfe(0xf2),'type':'string','description':a132_0x1b5bfe(0x11d),'hidden':!![]},{'name':a132_0x1b5bfe(0xd8),'meowKey':a132_0x1b5bfe(0xd8),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0x10a),'hidden':!![]},{'name':'confirm','meowKey':a132_0x1b5bfe(0x108),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xbc),'hidden':!![]},{'name':'remote','meowKey':'remote','type':a132_0x1b5bfe(0xd6),'description':'Use\x20remote','hidden':!![]},{'name':a132_0x1b5bfe(0xd3),'meowKey':a132_0x1b5bfe(0xd3),'type':a132_0x1b5bfe(0xd6),'description':a132_0x1b5bfe(0xc5),'hidden':!![]},{'name':a132_0x1b5bfe(0x120),'meowKey':a132_0x1b5bfe(0xc3),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0x10b),'hidden':!![]},{'name':'operation-type','meowKey':'operationType','type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xb4),'hidden':!![]},{'name':a132_0x1b5bfe(0xc8),'meowKey':a132_0x1b5bfe(0x10c),'type':a132_0x1b5bfe(0xe6),'description':a132_0x1b5bfe(0xf3),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a132_0x1b5bfe(0xe9),a132_0x1b5bfe(0xb8),a132_0x1b5bfe(0x110),a132_0x1b5bfe(0xee),'jq',a132_0x1b5bfe(0xf5),a132_0x1b5bfe(0xbd),a132_0x1b5bfe(0x107),'ci']);export function buildMeowFlags(){const _0x525cd5=a132_0x1b5bfe;return Object[_0x525cd5(0xf7)](GLOBAL_FLAGS[_0x525cd5(0x11e)](_0x2ba488=>[_0x2ba488[_0x525cd5(0x102)],{'type':_0x2ba488[_0x525cd5(0x10e)]}]));}
1
+ const a133_0x2cbb34=a133_0x3ca1;function a133_0x3ca1(_0x343058,_0x31c13d){_0x343058=_0x343058-0x65;const _0x1b35f0=a133_0x1b35();let _0x3ca17b=_0x1b35f0[_0x343058];return _0x3ca17b;}function a133_0x1b35(){const _0xb9f4fe=['Output\x20path','DB\x20ID','File\x20path','Use\x20project\x20config\x20scope','appcode','keyword','operationType','dbid','params','string','output','meowKey','Verbose\x20output','Force\x20non-interactive\x20mode\x20(CI)','Target\x20path','Description\x20file','sql','project','Alias\x20for\x20--non-interactive','schemas','confirm','title','84849EjejXP','JSON\x20params','Function\x20node','dbId','pagesize','map','target','Operation\x20type','9KwtZbn','skip-imports','42bOctVg','help','sqlname','enableBffSave','key','non-interactive','<code>','env','expected-count','Page\x20number','global','Description','Output\x20format','production\x20|\x20daily','Confirm\x20destructive\x20action','value','type','76yOAmxd','<expr>','4849060JYjAlr','Skip\x20import\x20generation','160835uamAUw','descriptionFile','db-id','Config\x20value','remote','all','file','Skip\x20confirmation\x20for\x20high-risk\x20writes','dry-run','<name>','yes','Dataset\x20code','Environment','operation','dryRun','nonInteractive','enable-bff-save','Code\x20filter','5741ENmOKS','description','144DEdbjR','boolean','clear','force','Use\x20global\x20config\x20scope','Record\x20ID','code','sqlcode','rabetbase','4298196RssKEP','Config\x20key','format','app','datasetcode','Schemas','SQL\x20code','Enable\x20BFF\x20save','Use\x20remote','fromEntries','Title','Type\x20filter','Show\x20help','23331957letLYb','Clear','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','Select\x20app\x20profile\x20by\x20name','page','sql-name','SQL\x20string','skipImports','verbose','functionNode','Keyword\x20filter','Page\x20size','4166696hgbeeh','SQL\x20name'];a133_0x1b35=function(){return _0xb9f4fe;};return a133_0x1b35();}(function(_0x26c947,_0x1cb4f9){const _0x46da1e=a133_0x3ca1,_0x1f5a60=_0x26c947();while(!![]){try{const _0x27251f=parseInt(_0x46da1e(0xa5))/0x1*(-parseInt(_0x46da1e(0xa7))/0x2)+-parseInt(_0x46da1e(0x74))/0x3*(parseInt(_0x46da1e(0x8f))/0x4)+-parseInt(_0x46da1e(0x93))/0x5*(parseInt(_0x46da1e(0x7e))/0x6)+-parseInt(_0x46da1e(0xb0))/0x7+-parseInt(_0x46da1e(0xc9))/0x8*(-parseInt(_0x46da1e(0x7c))/0x9)+-parseInt(_0x46da1e(0x91))/0xa+parseInt(_0x46da1e(0xbd))/0xb;if(_0x27251f===_0x1cb4f9)break;else _0x1f5a60['push'](_0x1f5a60['shift']());}catch(_0x488aac){_0x1f5a60['push'](_0x1f5a60['shift']());}}}(a133_0x1b35,0x599f4));export const CLI_BIN_NAME=a133_0x2cbb34(0xaf);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a133_0x2cbb34(0xcf),'meowKey':'appcode','type':a133_0x2cbb34(0x67),'description':'Override\x20appcode','hint':a133_0x2cbb34(0x84)},{'name':a133_0x2cbb34(0xb3),'meowKey':a133_0x2cbb34(0xb3),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xc0),'hint':a133_0x2cbb34(0x9c)},{'name':a133_0x2cbb34(0x85),'meowKey':'env','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x9f),'hint':a133_0x2cbb34(0x8b)},{'name':'format','meowKey':a133_0x2cbb34(0xb2),'type':'string','description':a133_0x2cbb34(0x8a),'hint':'json\x20|\x20pretty\x20|\x20compress'},{'name':'jq','meowKey':'jq','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xbf),'hint':a133_0x2cbb34(0x90)},{'name':a133_0x2cbb34(0x9b),'meowKey':a133_0x2cbb34(0xa1),'type':'boolean','description':'Preview\x20operation\x20without\x20executing'},{'name':a133_0x2cbb34(0x9d),'meowKey':a133_0x2cbb34(0x9d),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x9a)},{'name':a133_0x2cbb34(0x83),'meowKey':a133_0x2cbb34(0xa2),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x6b)},{'name':a133_0x2cbb34(0x88),'meowKey':a133_0x2cbb34(0x88),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0xab)},{'name':'project','meowKey':a133_0x2cbb34(0x6f),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0xce)},{'name':'ci','meowKey':'ci','type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x70),'hidden':!![]},{'name':a133_0x2cbb34(0x7f),'meowKey':'help','type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0xbc)},{'name':'name','meowKey':'name','type':a133_0x2cbb34(0x67),'description':'Name','hidden':!![]},{'name':a133_0x2cbb34(0x73),'meowKey':a133_0x2cbb34(0x73),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xba),'hidden':!![]},{'name':a133_0x2cbb34(0xa9),'meowKey':a133_0x2cbb34(0xa9),'type':'boolean','description':a133_0x2cbb34(0xbe),'hidden':!![]},{'name':'watch','meowKey':'watch','type':a133_0x2cbb34(0xa8),'description':'Watch\x20mode','hidden':!![]},{'name':a133_0x2cbb34(0x68),'meowKey':'output','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xcb),'hidden':!![]},{'name':a133_0x2cbb34(0x66),'meowKey':a133_0x2cbb34(0x66),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x75),'hidden':!![]},{'name':a133_0x2cbb34(0xb4),'meowKey':a133_0x2cbb34(0xb4),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x9e),'hidden':!![]},{'name':a133_0x2cbb34(0x98),'meowKey':a133_0x2cbb34(0x98),'type':a133_0x2cbb34(0xa8),'description':'Apply\x20to\x20all','hidden':!![]},{'name':a133_0x2cbb34(0xa3),'meowKey':a133_0x2cbb34(0x81),'type':'boolean','description':a133_0x2cbb34(0xb7),'hidden':!![]},{'name':'id','meowKey':'id','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xac),'hidden':!![]},{'name':a133_0x2cbb34(0x8e),'meowKey':a133_0x2cbb34(0x8e),'type':'string','description':a133_0x2cbb34(0xbb),'hidden':!![]},{'name':a133_0x2cbb34(0x99),'meowKey':a133_0x2cbb34(0x99),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xcd),'hidden':!![]},{'name':a133_0x2cbb34(0xae),'meowKey':a133_0x2cbb34(0xae),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xb6),'hidden':!![]},{'name':a133_0x2cbb34(0xc2),'meowKey':'sqlName','type':a133_0x2cbb34(0x67),'description':'SQL\x20name','hidden':!![]},{'name':a133_0x2cbb34(0x80),'meowKey':a133_0x2cbb34(0x80),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xca),'hidden':!![]},{'name':a133_0x2cbb34(0x95),'meowKey':a133_0x2cbb34(0x77),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xcc),'hidden':!![]},{'name':a133_0x2cbb34(0x65),'meowKey':a133_0x2cbb34(0x65),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xcc),'hidden':!![]},{'name':a133_0x2cbb34(0xa6),'meowKey':a133_0x2cbb34(0xa6),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x89),'hidden':!![]},{'name':'description-file','meowKey':a133_0x2cbb34(0x94),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x6d),'hidden':!![]},{'name':a133_0x2cbb34(0xc1),'meowKey':a133_0x2cbb34(0xc1),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x87),'hidden':!![]},{'name':a133_0x2cbb34(0x78),'meowKey':a133_0x2cbb34(0x78),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xc8),'hidden':!![]},{'name':a133_0x2cbb34(0xd0),'meowKey':a133_0x2cbb34(0xd0),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xc7),'hidden':!![]},{'name':a133_0x2cbb34(0xad),'meowKey':a133_0x2cbb34(0xad),'type':'string','description':a133_0x2cbb34(0xa4),'hidden':!![]},{'name':'sql','meowKey':a133_0x2cbb34(0x6e),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xc3),'hidden':!![]},{'name':a133_0x2cbb34(0x71),'meowKey':a133_0x2cbb34(0x71),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xb5),'hidden':!![]},{'name':a133_0x2cbb34(0xa0),'meowKey':'operation','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x7b),'hidden':!![]},{'name':a133_0x2cbb34(0x7a),'meowKey':'target','type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x6c),'hidden':!![]},{'name':a133_0x2cbb34(0x7d),'meowKey':a133_0x2cbb34(0xc4),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x92),'hidden':!![]},{'name':a133_0x2cbb34(0x82),'meowKey':a133_0x2cbb34(0x82),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0xb1),'hidden':!![]},{'name':a133_0x2cbb34(0x8d),'meowKey':a133_0x2cbb34(0x8d),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x96),'hidden':!![]},{'name':'force','meowKey':a133_0x2cbb34(0xaa),'type':a133_0x2cbb34(0xa8),'description':'Force\x20overwrite','hidden':!![]},{'name':a133_0x2cbb34(0x72),'meowKey':a133_0x2cbb34(0x72),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x8c),'hidden':!![]},{'name':a133_0x2cbb34(0x97),'meowKey':a133_0x2cbb34(0x97),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0xb8),'hidden':!![]},{'name':a133_0x2cbb34(0xc5),'meowKey':a133_0x2cbb34(0xc5),'type':a133_0x2cbb34(0xa8),'description':a133_0x2cbb34(0x6a),'hidden':!![]},{'name':a133_0x2cbb34(0x86),'meowKey':'expectedCount','type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'operation-type','meowKey':a133_0x2cbb34(0xd1),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x7b),'hidden':!![]},{'name':'function-node','meowKey':a133_0x2cbb34(0xc6),'type':a133_0x2cbb34(0x67),'description':a133_0x2cbb34(0x76),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a133_0x2cbb34(0xcf),'app',a133_0x2cbb34(0x85),a133_0x2cbb34(0xb2),'jq',a133_0x2cbb34(0x9b),a133_0x2cbb34(0x9d),a133_0x2cbb34(0x83),'ci']);export function buildMeowFlags(){const _0x53ecdd=a133_0x2cbb34;return Object[_0x53ecdd(0xb9)](GLOBAL_FLAGS[_0x53ecdd(0x79)](_0x51c7e4=>[_0x51c7e4[_0x53ecdd(0x69)],{'type':_0x51c7e4[_0x53ecdd(0x8e)]}]));}
@@ -1 +1 @@
1
- const a133_0x49a93a=a133_0x2408;function a133_0x2408(_0x16c0d3,_0x406242){_0x16c0d3=_0x16c0d3-0xd7;const _0x4a03b6=a133_0x4a03();let _0x240819=_0x4a03b6[_0x16c0d3];return _0x240819;}(function(_0x7d2d8c,_0x4f11c8){const _0x51bd68=a133_0x2408,_0x96368d=_0x7d2d8c();while(!![]){try{const _0x5e2850=parseInt(_0x51bd68(0xe0))/0x1*(-parseInt(_0x51bd68(0xd9))/0x2)+-parseInt(_0x51bd68(0xdb))/0x3+-parseInt(_0x51bd68(0xd8))/0x4*(parseInt(_0x51bd68(0xd7))/0x5)+-parseInt(_0x51bd68(0xe1))/0x6+parseInt(_0x51bd68(0xdf))/0x7+parseInt(_0x51bd68(0xdd))/0x8+parseInt(_0x51bd68(0xda))/0x9;if(_0x5e2850===_0x4f11c8)break;else _0x96368d['push'](_0x96368d['shift']());}catch(_0x185cb9){_0x96368d['push'](_0x96368d['shift']());}}}(a133_0x4a03,0xaebfc));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':'compress','locale':a133_0x49a93a(0xdc),'riskLevel':'high-risk-write','apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a133_0x49a93a(0xde);function a133_0x4a03(){const _0x30f191=['4649407LpTjZH','209527vvlOAg','5765874jJwGHE','6902130MVnvCK','4pwNdQu','2PlaZga','29173932pFwyeK','2911890anXbHM','en-US','2652680DegxwK','compress'];a133_0x4a03=function(){return _0x30f191;};return a133_0x4a03();}
1
+ const a134_0x194e5a=a134_0x2c71;function a134_0x2c71(_0x49ec01,_0x467531){_0x49ec01=_0x49ec01-0x97;const _0x31bdd1=a134_0x31bd();let _0x2c710d=_0x31bdd1[_0x49ec01];return _0x2c710d;}(function(_0x2dd02f,_0x275337){const _0x412f21=a134_0x2c71,_0x15bcee=_0x2dd02f();while(!![]){try{const _0xb90357=-parseInt(_0x412f21(0xa6))/0x1+parseInt(_0x412f21(0x97))/0x2*(parseInt(_0x412f21(0x9a))/0x3)+parseInt(_0x412f21(0x98))/0x4*(parseInt(_0x412f21(0x9c))/0x5)+parseInt(_0x412f21(0xa0))/0x6*(parseInt(_0x412f21(0x9d))/0x7)+parseInt(_0x412f21(0xa5))/0x8+parseInt(_0x412f21(0x99))/0x9*(-parseInt(_0x412f21(0x9e))/0xa)+parseInt(_0x412f21(0x9b))/0xb*(-parseInt(_0x412f21(0x9f))/0xc);if(_0xb90357===_0x275337)break;else _0x15bcee['push'](_0x15bcee['shift']());}catch(_0x1e1cc4){_0x15bcee['push'](_0x15bcee['shift']());}}}(a134_0x31bd,0xa0f63));import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a134_0x194e5a(0xa3),'format':a134_0x194e5a(0xa1),'locale':a134_0x194e5a(0xa4),'riskLevel':a134_0x194e5a(0xa2),'apiDir':DEFAULT_API_DIR};function a134_0x31bd(){const _0x51f21e=['production','en-US','2832240MEBgDx','1011439ZdtxxV','201788vBayRO','8ylCRXK','96219CLVoUY','30WaTTvQ','7572763xHEHia','874465cipELI','4899090EfHrMc','50lAcrpq','12cdqijg','6AluibS','compress','high-risk-write'];a134_0x31bd=function(){return _0x51f21e;};return a134_0x31bd();}export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
@@ -1 +1 @@
1
- function a134_0x3e9c(_0x23a7d2,_0x133ac9){_0x23a7d2=_0x23a7d2-0xd4;const _0x733f3b=a134_0x733f();let _0x3e9cd7=_0x733f3b[_0x23a7d2];return _0x3e9cd7;}const a134_0x41f1da=a134_0x3e9c;(function(_0x6034ae,_0x19dcbc){const _0x4e0854=a134_0x3e9c,_0x69dcfb=_0x6034ae();while(!![]){try{const _0x5e46da=-parseInt(_0x4e0854(0xe6))/0x1+-parseInt(_0x4e0854(0xdd))/0x2*(parseInt(_0x4e0854(0xd8))/0x3)+parseInt(_0x4e0854(0xd5))/0x4+parseInt(_0x4e0854(0xd9))/0x5*(-parseInt(_0x4e0854(0xd6))/0x6)+-parseInt(_0x4e0854(0xe2))/0x7*(-parseInt(_0x4e0854(0xe7))/0x8)+parseInt(_0x4e0854(0xdb))/0x9*(-parseInt(_0x4e0854(0xe5))/0xa)+parseInt(_0x4e0854(0xdc))/0xb*(parseInt(_0x4e0854(0xd4))/0xc);if(_0x5e46da===_0x19dcbc)break;else _0x69dcfb['push'](_0x69dcfb['shift']());}catch(_0x197322){_0x69dcfb['push'](_0x69dcfb['shift']());}}}(a134_0x733f,0xb80b9));import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x1375cd){const _0x2f3bae=a134_0x3e9c;customApiDomain=_0x1375cd?.[_0x2f3bae(0xda)],customUserDomain=_0x1375cd?.[_0x2f3bae(0xd7)],customRuntimeDomain=_0x1375cd?.[_0x2f3bae(0xe0)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a134_0x41f1da(0xdf):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a134_0x41f1da(0xe3):a134_0x41f1da(0xe4));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a134_0x41f1da(0xe1):a134_0x41f1da(0xde));function a134_0x733f(){const _0x1c5f60=['152ueNYMv','12DueuFx','5340356XvFVlN','838098karKgU','userDomain','380091iIqQCh','45tnLClw','apiDomain','18ErSdoQ','37437433XkIJHO','22miTimT','https://daily-runtime.lovrabet.com','https://user.lovrabet.com','runtimeDomain','https://runtime.lovrabet.com','211897jYWCHt','https://api.lovrabet.com','https://daily-api.lovrabet.com','4142840EAOBFW','1080410dhxudl'];a134_0x733f=function(){return _0x1c5f60;};return a134_0x733f();}
1
+ const a135_0xb1170a=a135_0x1a95;(function(_0x8d1753,_0x105d5c){const _0x1e60bf=a135_0x1a95,_0x546018=_0x8d1753();while(!![]){try{const _0x21da30=-parseInt(_0x1e60bf(0x1ab))/0x1*(-parseInt(_0x1e60bf(0x1a3))/0x2)+parseInt(_0x1e60bf(0x1a9))/0x3+parseInt(_0x1e60bf(0x1a4))/0x4+-parseInt(_0x1e60bf(0x19c))/0x5*(parseInt(_0x1e60bf(0x1a6))/0x6)+-parseInt(_0x1e60bf(0x1a5))/0x7+-parseInt(_0x1e60bf(0x19f))/0x8*(-parseInt(_0x1e60bf(0x19e))/0x9)+-parseInt(_0x1e60bf(0x1a1))/0xa;if(_0x21da30===_0x105d5c)break;else _0x546018['push'](_0x546018['shift']());}catch(_0x1a79a7){_0x546018['push'](_0x546018['shift']());}}}(a135_0x3ddc,0xd084e));import{getEnv,isProduction}from'../constant/env.js';function a135_0x1a95(_0x454c2f,_0x5acbc6){_0x454c2f=_0x454c2f-0x19c;const _0x3ddca2=a135_0x3ddc();let _0x1a95ae=_0x3ddca2[_0x454c2f];return _0x1a95ae;}function a135_0x3ddc(){const _0x5ccb83=['465913bNxjEi','894SjteER','userDomain','https://daily-runtime.lovrabet.com','2153775XIvDgP','runtimeDomain','100MhLVBO','2815OHvvzy','https://daily-api.lovrabet.com','2154312GfqnQI','48GyGRHS','https://runtime.lovrabet.com','34555200zWDcUN','https://user.lovrabet.com','16762UOKWIM','5871308MHMtcs'];a135_0x3ddc=function(){return _0x5ccb83;};return a135_0x3ddc();}let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x234fc3){const _0x795979=a135_0x1a95;customApiDomain=_0x234fc3?.['apiDomain'],customUserDomain=_0x234fc3?.[_0x795979(0x1a7)],customRuntimeDomain=_0x234fc3?.[_0x795979(0x1aa)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a135_0xb1170a(0x1a2):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?'https://api.lovrabet.com':a135_0xb1170a(0x19d));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a135_0xb1170a(0x1a0):a135_0xb1170a(0x1a8));
@@ -1 +1 @@
1
- const a135_0x46baa9=a135_0x7fff;(function(_0x250fc4,_0x5cfa3d){const _0x358a4c=a135_0x7fff,_0x29c6bb=_0x250fc4();while(!![]){try{const _0x17f29f=parseInt(_0x358a4c(0x1b2))/0x1*(parseInt(_0x358a4c(0x1b9))/0x2)+-parseInt(_0x358a4c(0x1b5))/0x3+parseInt(_0x358a4c(0x1ae))/0x4+-parseInt(_0x358a4c(0x1b3))/0x5*(parseInt(_0x358a4c(0x1ad))/0x6)+-parseInt(_0x358a4c(0x1ba))/0x7*(parseInt(_0x358a4c(0x1bb))/0x8)+parseInt(_0x358a4c(0x1b8))/0x9+parseInt(_0x358a4c(0x1af))/0xa*(parseInt(_0x358a4c(0x1b6))/0xb);if(_0x17f29f===_0x5cfa3d)break;else _0x29c6bb['push'](_0x29c6bb['shift']());}catch(_0x451422){_0x29c6bb['push'](_0x29c6bb['shift']());}}}(a135_0x5f25,0x6145f));export const RABETBASE_ENV_VALUES=[a135_0x46baa9(0x1ac),a135_0x46baa9(0x1b7)];export function normalizeEnv(_0x47e962){const _0x2ac712=a135_0x46baa9;return _0x47e962===_0x2ac712(0x1b4)?'production':_0x47e962;}export function isProduction(_0x4a9b10){return normalizeEnv(_0x4a9b10)==='production';}export function isDaily(_0x26f426){return normalizeEnv(_0x26f426)==='daily';}export function isDev(_0x11b152){const _0x49078a=a135_0x46baa9,_0x3be6e0=normalizeEnv(_0x11b152);return _0x3be6e0===_0x49078a(0x1b0)||_0x3be6e0===_0x49078a(0x1b1);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a135_0x46baa9(0x1ac));function a135_0x5f25(){const _0x394601=['online','1783251GMdvSe','11IbsVbe','daily','1183446ZBXIjC','142094apsTjR','2059757wEdImI','8zgRpVn','production','48qkVmma','1452008mfIwMm','7706330IRZcmb','development','dev','6BsNldo','252695VHwKfh'];a135_0x5f25=function(){return _0x394601;};return a135_0x5f25();}function a135_0x7fff(_0x1eeb49,_0x4f3f2e){_0x1eeb49=_0x1eeb49-0x1ac;const _0x5f25a5=a135_0x5f25();let _0x7fffe5=_0x5f25a5[_0x1eeb49];return _0x7fffe5;}export function getEnv(){return env;}export function initEnv(_0x1e9f47){env=normalizeEnv(_0x1e9f47);}
1
+ const a136_0x4cb248=a136_0x364b;function a136_0x364b(_0x3cacf2,_0xc39ba3){_0x3cacf2=_0x3cacf2-0x177;const _0x241a5e=a136_0x241a();let _0x364bc6=_0x241a5e[_0x3cacf2];return _0x364bc6;}(function(_0x1635d2,_0x2e7e16){const _0x44874d=a136_0x364b,_0x2cc715=_0x1635d2();while(!![]){try{const _0x35376a=parseInt(_0x44874d(0x17b))/0x1+-parseInt(_0x44874d(0x179))/0x2*(parseInt(_0x44874d(0x183))/0x3)+-parseInt(_0x44874d(0x17d))/0x4+-parseInt(_0x44874d(0x17a))/0x5+-parseInt(_0x44874d(0x17f))/0x6+parseInt(_0x44874d(0x177))/0x7*(parseInt(_0x44874d(0x17c))/0x8)+-parseInt(_0x44874d(0x181))/0x9*(-parseInt(_0x44874d(0x184))/0xa);if(_0x35376a===_0x2e7e16)break;else _0x2cc715['push'](_0x2cc715['shift']());}catch(_0x3dc677){_0x2cc715['push'](_0x2cc715['shift']());}}}(a136_0x241a,0xc9d55));export const RABETBASE_ENV_VALUES=[a136_0x4cb248(0x180),a136_0x4cb248(0x185)];export function normalizeEnv(_0x27163f){const _0x347c5b=a136_0x4cb248;return _0x27163f===_0x347c5b(0x182)?_0x347c5b(0x180):_0x27163f;}export function isProduction(_0x598c38){const _0x15047d=a136_0x4cb248;return normalizeEnv(_0x598c38)===_0x15047d(0x180);}export function isDaily(_0xd05ddd){return normalizeEnv(_0xd05ddd)==='daily';}export function isDev(_0x374f1c){const _0x53956c=a136_0x4cb248,_0x29bd76=normalizeEnv(_0x374f1c);return _0x29bd76===_0x53956c(0x17e)||_0x29bd76===_0x53956c(0x178);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}function a136_0x241a(){const _0x2b4965=['7484520IxTzNG','628990VncRBw','16ZsMARU','2021712yUTxPv','development','932172LBHDzR','production','1890cPDUJF','online','4066191EICput','172270lVTqtc','daily','325990PVaRDc','dev','2bdCEWO'];a136_0x241a=function(){return _0x2b4965;};return a136_0x241a();}export function initEnv(_0x14a3b6){env=normalizeEnv(_0x14a3b6);}
@@ -1 +1 @@
1
- const a136_0x367aca=a136_0x5d57;function a136_0x5d57(_0x4d6deb,_0x3c4b41){_0x4d6deb=_0x4d6deb-0x1a0;const _0x329988=a136_0x3299();let _0x5d57fd=_0x329988[_0x4d6deb];return _0x5d57fd;}(function(_0x4adcda,_0x562ea2){const _0x26379e=a136_0x5d57,_0x3d45bd=_0x4adcda();while(!![]){try{const _0x3c672f=parseInt(_0x26379e(0x1a4))/0x1*(parseInt(_0x26379e(0x1ac))/0x2)+-parseInt(_0x26379e(0x1a1))/0x3*(parseInt(_0x26379e(0x1aa))/0x4)+parseInt(_0x26379e(0x1a6))/0x5+-parseInt(_0x26379e(0x1a8))/0x6*(-parseInt(_0x26379e(0x1ab))/0x7)+-parseInt(_0x26379e(0x1a7))/0x8+-parseInt(_0x26379e(0x1a5))/0x9*(parseInt(_0x26379e(0x1a0))/0xa)+parseInt(_0x26379e(0x1a2))/0xb;if(_0x3c672f===_0x562ea2)break;else _0x3d45bd['push'](_0x3d45bd['shift']());}catch(_0x3fe38f){_0x3d45bd['push'](_0x3d45bd['shift']());}}}(a136_0x3299,0xb3ed5));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a136_0x367aca(0x1a3),a136_0x367aca(0x1a9),'compress'];function a136_0x3299(){const _0x3d226b=['8IHJOOX','559454GFBzAt','4UKhUcn','10XSWuRz','997431qRJdqd','22545754wrKvPB','json','96340FcHBFF','2555217kWVMAm','1734625ZDnfNH','10423848GqKwem','30UxfeDj','pretty'];a136_0x3299=function(){return _0x3d226b;};return a136_0x3299();}
1
+ function a137_0xb384(_0xdd61dc,_0x39b372){_0xdd61dc=_0xdd61dc-0x1c9;const _0x53c7cd=a137_0x53c7();let _0xb38485=_0x53c7cd[_0xdd61dc];return _0xb38485;}function a137_0x53c7(){const _0x2ae4d4=['62285eJLVtb','130IgcTJO','pretty','14XbMXAc','36wwPJMq','48498cJiYSV','246638VnVcyZ','246216dCXeaT','compress','5301450fgpmTr','112449ooRIay','json','305668PYcgTv'];a137_0x53c7=function(){return _0x2ae4d4;};return a137_0x53c7();}const a137_0x305a51=a137_0xb384;(function(_0x911f8d,_0x11613d){const _0x1d88f4=a137_0xb384,_0xd66c72=_0x911f8d();while(!![]){try{const _0x2a4163=parseInt(_0x1d88f4(0x1d0))/0x1+-parseInt(_0x1d88f4(0x1d3))/0x2*(parseInt(_0x1d88f4(0x1cd))/0x3)+-parseInt(_0x1d88f4(0x1cf))/0x4+parseInt(_0x1d88f4(0x1d1))/0x5*(-parseInt(_0x1d88f4(0x1d5))/0x6)+-parseInt(_0x1d88f4(0x1c9))/0x7+-parseInt(_0x1d88f4(0x1ca))/0x8*(-parseInt(_0x1d88f4(0x1d4))/0x9)+parseInt(_0x1d88f4(0x1cc))/0xa;if(_0x2a4163===_0x11613d)break;else _0xd66c72['push'](_0xd66c72['shift']());}catch(_0x1367cb){_0xd66c72['push'](_0xd66c72['shift']());}}}(a137_0x53c7,0x20114));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a137_0x305a51(0x1ce),a137_0x305a51(0x1d2),a137_0x305a51(0x1cb)];
@@ -1 +1 @@
1
- function a137_0x1689(_0x4bf524,_0x3f873a){_0x4bf524=_0x4bf524-0x1c6;const _0x169f28=a137_0x169f();let _0x168903=_0x169f28[_0x4bf524];return _0x168903;}const a137_0xa51f2a=a137_0x1689;(function(_0x37340b,_0x27d080){const _0x278a8f=a137_0x1689,_0x1f17ea=_0x37340b();while(!![]){try{const _0x4e12e2=parseInt(_0x278a8f(0x1c6))/0x1*(-parseInt(_0x278a8f(0x1d1))/0x2)+-parseInt(_0x278a8f(0x1cd))/0x3+parseInt(_0x278a8f(0x1cc))/0x4*(-parseInt(_0x278a8f(0x1c9))/0x5)+-parseInt(_0x278a8f(0x1d0))/0x6*(parseInt(_0x278a8f(0x1c7))/0x7)+-parseInt(_0x278a8f(0x1c8))/0x8+parseInt(_0x278a8f(0x1cf))/0x9+parseInt(_0x278a8f(0x1ca))/0xa*(parseInt(_0x278a8f(0x1ce))/0xb);if(_0x4e12e2===_0x27d080)break;else _0x1f17ea['push'](_0x1f17ea['shift']());}catch(_0x1df519){_0x1f17ea['push'](_0x1f17ea['shift']());}}}(a137_0x169f,0x3a913));export const DEFAULT_API_DIR=a137_0xa51f2a(0x1cb);function a137_0x169f(){const _0x2c879d=['2386265UzREJX','20420xGQOCP','./src/api','4kXGFVY','1313553rkZBQp','8668LobQDM','3693699bKEEhA','8934COMnta','22924lKHNyH','18NhUUIH','1645fOKgfC','2466248pMiIYc'];a137_0x169f=function(){return _0x2c879d;};return a137_0x169f();}
1
+ function a138_0x1e7a(){const _0x1c9dfc=['1QicDvQ','5673650gEBaSM','3120TafdfQ','43585qsPydW','964040WkWQRO','50358GkqFLA','299934gWkDkx','466947dRXGOR','132VmYJQX','12ZCCybi','1253422VLztfT','64hYyxLi'];a138_0x1e7a=function(){return _0x1c9dfc;};return a138_0x1e7a();}function a138_0x43e5(_0x430bd1,_0x3044b5){_0x430bd1=_0x430bd1-0x8f;const _0x1e7a08=a138_0x1e7a();let _0x43e5c6=_0x1e7a08[_0x430bd1];return _0x43e5c6;}(function(_0x23ce10,_0x2c9ef9){const _0x1b27f2=a138_0x43e5,_0x3fc06d=_0x23ce10();while(!![]){try{const _0x248bcf=parseInt(_0x1b27f2(0x98))/0x1*(-parseInt(_0x1b27f2(0x96))/0x2)+parseInt(_0x1b27f2(0x92))/0x3*(parseInt(_0x1b27f2(0x95))/0x4)+parseInt(_0x1b27f2(0x8f))/0x5*(-parseInt(_0x1b27f2(0x94))/0x6)+-parseInt(_0x1b27f2(0x90))/0x7+parseInt(_0x1b27f2(0x97))/0x8*(parseInt(_0x1b27f2(0x93))/0x9)+-parseInt(_0x1b27f2(0x99))/0xa+-parseInt(_0x1b27f2(0x91))/0xb*(-parseInt(_0x1b27f2(0x9a))/0xc);if(_0x248bcf===_0x2c9ef9)break;else _0x3fc06d['push'](_0x3fc06d['shift']());}catch(_0x4eac00){_0x3fc06d['push'](_0x3fc06d['shift']());}}}(a138_0x1e7a,0x5d30c));export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- const a138_0x4757e6=a138_0x3553;function a138_0x3553(_0x1472cd,_0x279e95){_0x1472cd=_0x1472cd-0x147;const _0x9b7b34=a138_0x9b7b();let _0x35530a=_0x9b7b34[_0x1472cd];return _0x35530a;}(function(_0x4fccd4,_0x4b5aa8){const _0x24d697=a138_0x3553,_0x37aac8=_0x4fccd4();while(!![]){try{const _0x57d95a=parseInt(_0x24d697(0x147))/0x1*(parseInt(_0x24d697(0x14b))/0x2)+parseInt(_0x24d697(0x14e))/0x3*(-parseInt(_0x24d697(0x151))/0x4)+parseInt(_0x24d697(0x148))/0x5*(parseInt(_0x24d697(0x149))/0x6)+-parseInt(_0x24d697(0x14f))/0x7*(-parseInt(_0x24d697(0x14c))/0x8)+parseInt(_0x24d697(0x153))/0x9+-parseInt(_0x24d697(0x152))/0xa+-parseInt(_0x24d697(0x14a))/0xb;if(_0x57d95a===_0x4b5aa8)break;else _0x37aac8['push'](_0x37aac8['shift']());}catch(_0x54a6a0){_0x37aac8['push'](_0x37aac8['shift']());}}}(a138_0x9b7b,0xa14db));function a138_0x9b7b(){const _0x146158=['write','304044YQmxZl','6372140VygVzz','5741730kFYllW','3710lQdpuS','4993285NhuHOB','6dyUaun','22544995TbifRp','592pTehig','1134544avCYtc','read','15olRfug','49nYgwSw'];a138_0x9b7b=function(){return _0x146158;};return a138_0x9b7b();}export const RISK_LEVEL_VALUES=[a138_0x4757e6(0x14d),a138_0x4757e6(0x150),'high-risk-write'];
1
+ const a139_0x98e4b0=a139_0x32e7;(function(_0x2f29dd,_0x3c4449){const _0x4a9fdf=a139_0x32e7,_0x3b0125=_0x2f29dd();while(!![]){try{const _0x3d7cc1=parseInt(_0x4a9fdf(0x1e6))/0x1+-parseInt(_0x4a9fdf(0x1e3))/0x2+-parseInt(_0x4a9fdf(0x1e2))/0x3+-parseInt(_0x4a9fdf(0x1eb))/0x4*(parseInt(_0x4a9fdf(0x1e5))/0x5)+parseInt(_0x4a9fdf(0x1ea))/0x6*(-parseInt(_0x4a9fdf(0x1e9))/0x7)+-parseInt(_0x4a9fdf(0x1e4))/0x8+parseInt(_0x4a9fdf(0x1e7))/0x9;if(_0x3d7cc1===_0x3c4449)break;else _0x3b0125['push'](_0x3b0125['shift']());}catch(_0x56b5bb){_0x3b0125['push'](_0x3b0125['shift']());}}}(a139_0xacc1,0xbf2d1));function a139_0xacc1(){const _0x31ed3f=['write','231gjyKQQ','199284klZMcU','92DSQxig','1839552OJCZTF','1894828EadNmi','5251728RRgTFW','90025KnmIxD','571040ZMBaNZ','35453322HBMjIA'];a139_0xacc1=function(){return _0x31ed3f;};return a139_0xacc1();}function a139_0x32e7(_0x4a7205,_0x5e5d38){_0x4a7205=_0x4a7205-0x1e2;const _0xacc1c9=a139_0xacc1();let _0x32e7b1=_0xacc1c9[_0x4a7205];return _0x32e7b1;}export const RISK_LEVEL_VALUES=['read',a139_0x98e4b0(0x1e8),'high-risk-write'];
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a139_0x92659e=a139_0x2371;(function(_0x99c8ba,_0x1194a3){const _0xbffe6a=a139_0x2371,_0x332385=_0x99c8ba();while(!![]){try{const _0x1bf490=-parseInt(_0xbffe6a(0x15f))/0x1*(parseInt(_0xbffe6a(0x178))/0x2)+-parseInt(_0xbffe6a(0x15d))/0x3*(parseInt(_0xbffe6a(0x15e))/0x4)+parseInt(_0xbffe6a(0x144))/0x5+parseInt(_0xbffe6a(0x154))/0x6+-parseInt(_0xbffe6a(0x159))/0x7*(-parseInt(_0xbffe6a(0x15a))/0x8)+parseInt(_0xbffe6a(0x152))/0x9+parseInt(_0xbffe6a(0x13e))/0xa;if(_0x1bf490===_0x1194a3)break;else _0x332385['push'](_0x332385['shift']());}catch(_0x453042){_0x332385['push'](_0x332385['shift']());}}}(a139_0x285c,0xf317c));import{readFileSync,writeFileSync,existsSync,mkdirSync,renameSync,unlinkSync}from'node:fs';import{resolve,dirname,parse}from'node:path';import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{getIsSessionValid}from'./auth/is-session-valid.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';function a139_0x2371(_0x18f624,_0x5e128d){_0x18f624=_0x18f624-0x12a;const _0x285cd7=a139_0x285c();let _0x23713e=_0x285cd7[_0x18f624];return _0x23713e;}import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily}from'./constant/env.js';function a139_0x285c(){const _0x3f6826=['15NJyWPv','set','Global','authRequired','riskLevel','object','empty','silent','./auth/get-cookie.js','trim','entries','merged','warn','join','cookie','maxRisk','filter','https://g.lovrabet.com/dist/lovrabet-skill','inherit','.lovrabetrc','FORMAT','ENV','project','format','apps','252842tEQUaS','userDomain','pageSize','cwd','PAGE_SIZE','get','api.ts','status','apiDomain','length','./constant/env.js','daily','utf8','stringify','message','env','globalConfig','runtimeDomain','string','-api.ts','missing','Project','find','true','argv','COOKIE','16467900rQczGi','apiDir','locale','.rabetbase.json','template_base_url','read','4109670EBjuNL','error','APP','appcode','.tmp','app','config','replace','defaultApp','./utils/is-non-interactive.js','values','setRawCommand','map','MAX_RISK','13744638EjTzEk','RISK_LEVEL','3224964UNRCcA','ACCESS_KEY','APPCODE','data','projectConfig','21NAvuHq','896224oEmgUt','accessKey','keys','3bCBBRF','7909844NizgpT'];a139_0x285c=function(){return _0x3f6826;};return a139_0x285c();}import{normalizeLegacyOutputFormat}from'./framework/types.js';function env(_0x5d3ef6){return process.env[`RABETBASE_${_0x5d3ef6}`]||process.env[`LOVRABET_${_0x5d3ef6}`]||undefined;}export const NEW_CONFIG_NAME=a139_0x92659e(0x141);export const CONFIG_NAMES=['.rabetbase.json','.lovrabet.json',a139_0x92659e(0x172)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES['filter'](_0x56ada0=>_0x56ada0!==NEW_CONFIG_NAME);export function resolveConfigPath(_0x8aa1b9){for(const _0x34a12b of CONFIG_NAMES){const _0x9784df=resolve(_0x8aa1b9,_0x34a12b);if(existsSync(_0x9784df))return _0x9784df;}return undefined;}export function findProjectRootDirectory(_0x2e6b82=process['cwd']()){let _0x92b14a=resolve(_0x2e6b82);const {root:_0x35b2d2}=parse(_0x92b14a),_0x5e46e9=homedir();while(!![]){if(resolveConfigPath(_0x92b14a)){if(_0x92b14a===_0x5e46e9)break;return _0x92b14a;}if(_0x92b14a===_0x35b2d2||_0x92b14a===_0x5e46e9)break;const _0x4859d4=dirname(_0x92b14a);if(_0x4859d4===_0x92b14a)break;_0x92b14a=_0x4859d4;}return resolve(_0x2e6b82);}export async function createContext(_0x1f2f49){const _0x35eeb3=a139_0x92659e,_0x8e626c=readRawConfig(),_0x4110e8=buildConfig(_0x8e626c,_0x1f2f49),{initEnv:_0x21cd51}=await import(_0x35eeb3(0x12e));if(_0x4110e8[_0x35eeb3(0x133)])_0x21cd51(_0x4110e8[_0x35eeb3(0x133)]);else _0x1f2f49[_0x35eeb3(0x133)]&&typeof _0x1f2f49[_0x35eeb3(0x133)]==='string'&&_0x21cd51(_0x1f2f49['env']);const {initDomains:_0x3ec522,getUserDomain:_0x450fe0,getApiDomain:_0x232964}=await import('./constant/domain.js');_0x3ec522({'apiDomain':_0x8e626c[_0x35eeb3(0x12c)]||undefined,'userDomain':_0x8e626c[_0x35eeb3(0x179)]||undefined,'runtimeDomain':_0x8e626c[_0x35eeb3(0x135)]||undefined});const _0x3308fe={'apiDomain':_0x232964(),'userDomain':_0x450fe0()},_0x3f2379=await buildAuth(_0x4110e8);logger['setLogPath'](process['cwd']());const _0xefda7e=(CLI_BIN_NAME+'\x20'+process[_0x35eeb3(0x13c)]['slice'](0x2)[_0x35eeb3(0x16c)]('\x20'))[_0x35eeb3(0x168)]();logger[_0x35eeb3(0x14f)](_0xefda7e);const {isNonInteractive:_0x29e9f5}=await import(_0x35eeb3(0x14d)),_0x43f50b=_0x29e9f5(_0x1f2f49);return{'config':_0x4110e8,'auth':_0x3f2379,'logger':logger,'env':_0x3308fe,'nonInteractive':_0x43f50b};}export function buildConfigFromFlags(_0x300b4c){return buildConfig(readRawConfig(),_0x300b4c);}export function getProjectConfigPath(){const _0x2e54e2=a139_0x92659e;return resolveConfigPath(process[_0x2e54e2(0x17b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x369e75){const _0x10b29f=a139_0x92659e;if(!existsSync(_0x369e75))return{'status':_0x10b29f(0x138)};try{const _0x194cfc=readFileSync(_0x369e75,{'encoding':'utf8'});if(!_0x194cfc?.[_0x10b29f(0x168)]())return{'status':_0x10b29f(0x165)};const _0x5ede14=JSON['parse'](_0x194cfc);return{'status':'ok','data':_0x5ede14};}catch(_0xafafaf){return{'status':_0x10b29f(0x145),'message':_0xafafaf instanceof Error?_0xafafaf[_0x10b29f(0x132)]:String(_0xafafaf)};}}function parseCliConfigJsonFile(_0x2396fc,_0x4025af,_0x332f15){const _0x1b7a16=a139_0x92659e,_0x3aca55=inspectCliConfigJsonFile(_0x2396fc);if(_0x3aca55['status']===_0x1b7a16(0x138)||_0x3aca55['status']===_0x1b7a16(0x165))return{};if(_0x3aca55[_0x1b7a16(0x12b)]==='ok')return _0x3aca55[_0x1b7a16(0x157)];return _0x4025af==='warn'&&_0x332f15&&console[_0x1b7a16(0x145)](CLI_BIN_NAME+':\x20'+_0x332f15+'\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'+_0x2396fc+'\x0a\x20\x20'+_0x3aca55[_0x1b7a16(0x132)]),{};}const normalizedWriteCache=new Map();function normalizeLegacyConfigShape(_0x58a002){const _0x59e2c7=a139_0x92659e;if(!_0x58a002||typeof _0x58a002!=='object')return{'config':{},'migrated':![]};const _0x5d545e={..._0x58a002},_0x15120c=_0x5d545e[_0x59e2c7(0x177)]&&typeof _0x5d545e[_0x59e2c7(0x177)]==='object'?{..._0x5d545e[_0x59e2c7(0x177)]}:{},_0x61139=Object[_0x59e2c7(0x15c)](_0x15120c)[_0x59e2c7(0x12d)],_0x142004=_0x5d545e['appcode']||_0x5d545e[_0x59e2c7(0x149)];let _0xd191a4=![];if(_0x142004&&_0x61139===0x0){const _0x15c46c=typeof _0x5d545e['defaultApp']===_0x59e2c7(0x136)&&_0x5d545e[_0x59e2c7(0x14c)][_0x59e2c7(0x168)]()?_0x5d545e[_0x59e2c7(0x14c)]:String(_0x142004)[_0x59e2c7(0x168)]();_0x15120c[_0x15c46c]={'appcode':String(_0x142004)['trim'](),..._0x5d545e[_0x59e2c7(0x133)]!=null?{'env':_0x5d545e['env']}:{},..._0x5d545e[_0x59e2c7(0x13f)]!=null?{'apiDir':_0x5d545e[_0x59e2c7(0x13f)]}:{},..._0x5d545e[_0x59e2c7(0x16d)]!=null?{'cookie':_0x5d545e[_0x59e2c7(0x16d)]}:{},..._0x5d545e['accessKey']!=null?{'accessKey':_0x5d545e[_0x59e2c7(0x15b)]}:{},..._0x5d545e[_0x59e2c7(0x176)]!=null?{'format':_0x5d545e[_0x59e2c7(0x176)]}:{},..._0x5d545e[_0x59e2c7(0x17a)]!=null?{'pageSize':_0x5d545e[_0x59e2c7(0x17a)]}:{},..._0x5d545e[_0x59e2c7(0x163)]!=null?{'riskLevel':_0x5d545e['riskLevel']}:{},..._0x5d545e[_0x59e2c7(0x140)]!=null?{'locale':_0x5d545e[_0x59e2c7(0x140)]}:{}},_0x5d545e[_0x59e2c7(0x177)]=_0x15120c;if(!_0x5d545e[_0x59e2c7(0x14c)])_0x5d545e['defaultApp']=_0x15c46c;_0xd191a4=!![];}return(_0x59e2c7(0x147)in _0x5d545e||_0x59e2c7(0x149)in _0x5d545e)&&(delete _0x5d545e[_0x59e2c7(0x147)],delete _0x5d545e[_0x59e2c7(0x149)],_0xd191a4=!![]),{'config':_0x5d545e,'migrated':_0xd191a4};}function writeNormalizedConfigIfNeeded(_0x4e7b09,_0x186d6c){const _0x57cdb5=a139_0x92659e,_0x45571d=JSON[_0x57cdb5(0x131)](_0x186d6c,null,0x2)+'\x0a';if(normalizedWriteCache[_0x57cdb5(0x17d)](_0x4e7b09)===_0x45571d)return;writeConfigFile(_0x4e7b09,_0x186d6c),normalizedWriteCache[_0x57cdb5(0x160)](_0x4e7b09,_0x45571d);}function parseAndNormalizeConfig(_0xf3ffda,_0x1c63b1,_0x26d233){const _0x3fda57=a139_0x92659e,_0x180840=parseCliConfigJsonFile(_0xf3ffda,_0x1c63b1,_0x26d233),_0x4f815f=normalizeLegacyConfigShape(_0x180840);if(_0x4f815f['migrated'])try{writeNormalizedConfigIfNeeded(_0xf3ffda,_0x4f815f[_0x3fda57(0x14a)]);}catch{}return _0x4f815f[_0x3fda57(0x14a)];}export function loadRawConfigLayers(_0x2fa106){const _0x460223=a139_0x92659e;let _0x568459={},_0x522b79={};const _0x2e6897=resolveConfigPath(homedir());_0x2e6897&&(_0x568459=parseAndNormalizeConfig(_0x2e6897,'warn',_0x460223(0x161)));const _0x34752b=_0x2fa106??findProjectRootDirectory(),_0x38bbe1=resolveConfigPath(_0x34752b);return _0x38bbe1&&(_0x522b79=parseAndNormalizeConfig(_0x38bbe1,_0x460223(0x16b),_0x460223(0x139))),{'globalPath':_0x2e6897,'projectPath':_0x38bbe1,'globalConfig':_0x568459,'projectConfig':_0x522b79};}const INHERIT_WHITELIST=[a139_0x92659e(0x16d),a139_0x92659e(0x15b),a139_0x92659e(0x140),a139_0x92659e(0x176),a139_0x92659e(0x163),'pageSize'];function mergeRawConfigLayers(_0x478986){const _0x22bdbe=a139_0x92659e,{globalConfig:_0x295825,projectConfig:_0x481fa8}=_0x478986,_0x26fa94=Object[_0x22bdbe(0x15c)](_0x481fa8)[_0x22bdbe(0x12d)]>0x0;if(!_0x26fa94)return mergeGlobalOnly(_0x295825);if(_0x481fa8[_0x22bdbe(0x171)]===!![])return mergeFullInherit(_0x295825,_0x481fa8);if(_0x481fa8[_0x22bdbe(0x171)]===![])return mergeIsolated(_0x481fa8);return mergeProjectFirst(_0x295825,_0x481fa8);}function mergeGlobalOnly(_0x3be234){const _0x1ced24=a139_0x92659e,_0x2f0ccf={..._0x3be234},_0x2d744d=_0x3be234[_0x1ced24(0x177)]&&typeof _0x3be234[_0x1ced24(0x177)]===_0x1ced24(0x164)?_0x3be234[_0x1ced24(0x177)]:{};Object[_0x1ced24(0x15c)](_0x2d744d)['length']>0x0&&(_0x2f0ccf[_0x1ced24(0x177)]=_0x2d744d);if(_0x3be234['defaultApp'])_0x2f0ccf['defaultApp']=_0x3be234['defaultApp'];else{const _0x48ff2f=Object[_0x1ced24(0x15c)](_0x2d744d);if(_0x48ff2f[_0x1ced24(0x12d)]>0x0)_0x2f0ccf[_0x1ced24(0x14c)]=_0x48ff2f[0x0];}return _0x2f0ccf;}function mergeIsolated(_0x5538c4){const _0x370166=a139_0x92659e,_0x1211d6={..._0x5538c4};delete _0x1211d6['inherit'];const _0x4a70db=_0x5538c4[_0x370166(0x177)]&&typeof _0x5538c4['apps']===_0x370166(0x164)?_0x5538c4[_0x370166(0x177)]:{};Object[_0x370166(0x15c)](_0x4a70db)[_0x370166(0x12d)]>0x0?_0x1211d6[_0x370166(0x177)]=_0x4a70db:delete _0x1211d6[_0x370166(0x177)];if(_0x370166(0x14c)in _0x5538c4)_0x1211d6['defaultApp']=_0x5538c4[_0x370166(0x14c)];else Object[_0x370166(0x15c)](_0x4a70db)[_0x370166(0x12d)]>0x0?_0x1211d6[_0x370166(0x14c)]=Object[_0x370166(0x15c)](_0x4a70db)[0x0]:delete _0x1211d6[_0x370166(0x14c)];return _0x1211d6;}function mergeProjectFirst(_0x50c145,_0x3eef39){const _0x530fd6=a139_0x92659e,_0x41933b={..._0x3eef39};delete _0x41933b['inherit'];for(const _0x398338 of INHERIT_WHITELIST){!(_0x398338 in _0x41933b)&&_0x398338 in _0x50c145&&(_0x41933b[_0x398338]=_0x50c145[_0x398338]);}const _0xedd28=_0x3eef39[_0x530fd6(0x177)]&&typeof _0x3eef39[_0x530fd6(0x177)]===_0x530fd6(0x164)?_0x3eef39[_0x530fd6(0x177)]:{};Object[_0x530fd6(0x15c)](_0xedd28)['length']>0x0?_0x41933b['apps']=_0xedd28:delete _0x41933b[_0x530fd6(0x177)];if(_0x530fd6(0x14c)in _0x3eef39)_0x41933b['defaultApp']=_0x3eef39['defaultApp'];else Object[_0x530fd6(0x15c)](_0xedd28)['length']>0x0?_0x41933b['defaultApp']=Object[_0x530fd6(0x15c)](_0xedd28)[0x0]:delete _0x41933b['defaultApp'];return _0x41933b;}function mergeFullInherit(_0x4dfcc3,_0x3b1a9a){const _0xf71a8a=a139_0x92659e,_0x2c042b=_0x4dfcc3[_0xf71a8a(0x177)]&&typeof _0x4dfcc3[_0xf71a8a(0x177)]==='object'?_0x4dfcc3['apps']:{},_0x5db8e8=_0x3b1a9a[_0xf71a8a(0x177)]&&typeof _0x3b1a9a['apps']===_0xf71a8a(0x164)?_0x3b1a9a[_0xf71a8a(0x177)]:{},_0x5856e9={..._0x2c042b,..._0x5db8e8},_0x47ebf1={..._0x4dfcc3,..._0x3b1a9a};delete _0x47ebf1[_0xf71a8a(0x171)];Object[_0xf71a8a(0x15c)](_0x5856e9)[_0xf71a8a(0x12d)]>0x0&&(_0x47ebf1[_0xf71a8a(0x177)]=_0x5856e9);if(_0xf71a8a(0x14c)in _0x3b1a9a)_0x47ebf1[_0xf71a8a(0x14c)]=_0x3b1a9a['defaultApp'];else{if(Object[_0xf71a8a(0x15c)](_0x5db8e8)['length']>0x0)_0x47ebf1['defaultApp']=Object[_0xf71a8a(0x15c)](_0x5db8e8)[0x0];else{if(_0x4dfcc3[_0xf71a8a(0x14c)])_0x47ebf1[_0xf71a8a(0x14c)]=_0x4dfcc3[_0xf71a8a(0x14c)];else{const _0x2c90e2=Object[_0xf71a8a(0x15c)](_0x2c042b);if(_0x2c90e2[_0xf71a8a(0x12d)]>0x0)_0x47ebf1['defaultApp']=_0x2c90e2[0x0];}}}return _0x47ebf1;}export function readRawConfigWithLayers(_0x5e1d7e){const _0x4f5ed1=loadRawConfigLayers(_0x5e1d7e);return{'config':mergeRawConfigLayers(_0x4f5ed1),'layers':_0x4f5ed1};}export function readRawConfig(_0x570254){return mergeRawConfigLayers(loadRawConfigLayers(_0x570254));}export function getConfigAppCode(_0x52b09e){const _0x2f9549=a139_0x92659e,_0x432268=readRawConfig(_0x52b09e);if(_0x432268['apps']&&typeof _0x432268[_0x2f9549(0x177)]==='object'){const _0x394b5a=_0x432268[_0x2f9549(0x14c)];if(_0x394b5a&&_0x432268[_0x2f9549(0x177)][_0x394b5a]?.[_0x2f9549(0x147)])return String(_0x432268[_0x2f9549(0x177)][_0x394b5a][_0x2f9549(0x147)])[_0x2f9549(0x168)]();const _0x5afc6f=Object[_0x2f9549(0x14e)](_0x432268[_0x2f9549(0x177)])[0x0];if(_0x5afc6f?.['appcode'])return String(_0x5afc6f[_0x2f9549(0x147)])[_0x2f9549(0x168)]();}const _0x369572=_0x432268[_0x2f9549(0x147)]||_0x432268['app'];if(typeof _0x369572!==_0x2f9549(0x136)||_0x369572['trim']()==='')return undefined;return _0x369572[_0x2f9549(0x168)]();}export function getMultiAppConfigs(_0x37c9da=a139_0x92659e(0x175),_0x3dad58){const _0x367758=a139_0x92659e,_0x334981=loadRawConfigLayers(_0x3dad58);let _0x2c5733,_0x38dadc;if(_0x37c9da===_0x367758(0x16a)){const _0x5bd783=_0x334981[_0x367758(0x134)]['apps']&&typeof _0x334981[_0x367758(0x134)][_0x367758(0x177)]===_0x367758(0x164)?_0x334981[_0x367758(0x134)][_0x367758(0x177)]:{},_0x11b129=_0x334981[_0x367758(0x158)][_0x367758(0x177)]&&typeof _0x334981[_0x367758(0x158)][_0x367758(0x177)]===_0x367758(0x164)?_0x334981['projectConfig'][_0x367758(0x177)]:{};_0x2c5733={..._0x5bd783,..._0x11b129};const _0xe85942=readRawConfig(_0x3dad58);_0x38dadc=_0xe85942[_0x367758(0x14c)];}else _0x2c5733=_0x334981['projectConfig'][_0x367758(0x177)],_0x38dadc=_0x334981[_0x367758(0x158)][_0x367758(0x14c)];if(!_0x2c5733||typeof _0x2c5733!=='object'||Object[_0x367758(0x15c)](_0x2c5733)[_0x367758(0x12d)]===0x0)return null;return Object[_0x367758(0x169)](_0x2c5733)[_0x367758(0x150)](([_0x3b9593,_0x505225])=>({'name':_0x3b9593,'appcode':_0x505225?.[_0x367758(0x147)]||'','isDefault':_0x3b9593===_0x38dadc,'env':_0x505225?.[_0x367758(0x133)],'apiDir':_0x505225?.['apiDir'],'cookie':_0x505225?.[_0x367758(0x16d)]||undefined}))[_0x367758(0x16f)](_0x5ab0d2=>_0x5ab0d2['appcode']);}export function getTemplateBaseUrl(_0x189791){const _0x1dd4a1=a139_0x92659e,_0x7f6ca5=readRawConfig(_0x189791);if(_0x7f6ca5[_0x1dd4a1(0x142)]&&typeof _0x7f6ca5[_0x1dd4a1(0x142)]===_0x1dd4a1(0x136))return _0x7f6ca5[_0x1dd4a1(0x142)][_0x1dd4a1(0x14b)](/\/$/,'');return _0x1dd4a1(0x170);}export function readConfigFile(_0x5c798b){const _0xf50499=a139_0x92659e;return parseAndNormalizeConfig(_0x5c798b,_0xf50499(0x166));}export function writeConfigFile(_0x184423,_0x236a9){const _0x4fd946=a139_0x92659e,_0x1d99f2=dirname(_0x184423);!existsSync(_0x1d99f2)&&mkdirSync(_0x1d99f2,{'recursive':!![]});const _0x5a5cbc=_0x184423+_0x4fd946(0x148);try{writeFileSync(_0x5a5cbc,JSON[_0x4fd946(0x131)](_0x236a9,null,0x2)+'\x0a',{'encoding':_0x4fd946(0x130),'mode':0x180}),renameSync(_0x5a5cbc,_0x184423);}catch(_0x1cdfa7){try{unlinkSync(_0x5a5cbc);}catch{}throw _0x1cdfa7;}}export function resolveWriteConfigPath(_0x48faef){const _0x58d454=a139_0x92659e,_0x10460e=_0x48faef===_0x58d454(0x175)?process['cwd']():homedir(),_0x90d367=resolveConfigPath(_0x10460e);return _0x90d367??resolve(_0x10460e,NEW_CONFIG_NAME);}function buildConfig(_0x2fe78a,_0x3e2026){const _0x16e8a5=a139_0x92659e,_0x19e4a3={};if(_0x2fe78a['apps']&&typeof _0x2fe78a['apps']==='object')for(const [_0x2325cf,_0x170d07]of Object[_0x16e8a5(0x169)](_0x2fe78a[_0x16e8a5(0x177)])){_0x170d07&&typeof _0x170d07===_0x16e8a5(0x164)&&_0x170d07[_0x16e8a5(0x147)]&&(_0x19e4a3[_0x2325cf]=_0x170d07);}const _0x4060d6=_0x2fe78a[_0x16e8a5(0x14c)]||undefined,_0x1a00b2=Object['keys'](_0x19e4a3)[_0x16e8a5(0x12d)]>0x0,_0x2d56da=_0x3e2026[_0x16e8a5(0x149)]||env(_0x16e8a5(0x146))||undefined,_0x64b92c=_0x2d56da||_0x4060d6||undefined,_0x3819c0=_0x3e2026[_0x16e8a5(0x147)]||env(_0x16e8a5(0x156))||undefined,_0x592941=_0x3819c0?Object[_0x16e8a5(0x169)](_0x19e4a3)[_0x16e8a5(0x13a)](([,_0x113019])=>_0x113019?.[_0x16e8a5(0x147)]===_0x3819c0):undefined,_0x56cd19=_0x592941?.[0x0],_0x293d10=_0x592941?.[0x1];let _0x1bbcf0=_0x3819c0?_0x56cd19:_0x64b92c,_0x26c30d=_0x1bbcf0&&_0x19e4a3[_0x1bbcf0]?_0x19e4a3[_0x1bbcf0]:undefined;_0x3819c0&&_0x293d10&&(_0x26c30d=_0x293d10);const _0xb77a37=_0x3819c0?_0x293d10??_0x26c30d:_0x26c30d,_0x41d22f=_0x2d56da||(_0x3819c0?_0x56cd19:undefined),_0x36bdda=_0x3819c0||_0xb77a37?.[_0x16e8a5(0x147)]||undefined,_0x18caac=_0x3e2026['env']||env(_0x16e8a5(0x174))||_0xb77a37?.[_0x16e8a5(0x133)]||_0x2fe78a[_0x16e8a5(0x133)]||DEFAULT_CONFIG_VALUES[_0x16e8a5(0x133)],_0x15d27c=_0xb77a37?.[_0x16e8a5(0x140)]||_0x2fe78a[_0x16e8a5(0x140)]||DEFAULT_CONFIG_VALUES[_0x16e8a5(0x140)],_0x5d6c51=env(_0x16e8a5(0x13d))||_0xb77a37?.['cookie']||_0x2fe78a[_0x16e8a5(0x16d)]||undefined,_0x3a93e0=env(_0x16e8a5(0x155))||_0xb77a37?.['accessKey']||_0x2fe78a['accessKey']||undefined,_0x306799=_0x3e2026[_0x16e8a5(0x176)]||env(_0x16e8a5(0x173))||_0xb77a37?.[_0x16e8a5(0x176)]||_0x2fe78a[_0x16e8a5(0x176)],_0x2f7581=normalizeLegacyOutputFormat(_0x306799),_0x2ae659=env(_0x16e8a5(0x17c))||_0xb77a37?.[_0x16e8a5(0x17a)]||_0x2fe78a[_0x16e8a5(0x17a)],_0xeff77f=_0x2ae659?Number(_0x2ae659)||undefined:undefined,_0x13b8f5=env(_0x16e8a5(0x153))||env(_0x16e8a5(0x151))||_0xb77a37?.['riskLevel']||_0x2fe78a[_0x16e8a5(0x163)]||_0x2fe78a[_0x16e8a5(0x16e)],_0x42ef4e=_0x13b8f5===_0x16e8a5(0x143)||_0x13b8f5==='write'?_0x13b8f5:DEFAULT_CONFIG_VALUES[_0x16e8a5(0x163)],_0xf0874c=env('VERBOSE'),_0x243f8e=_0xf0874c==='1'||_0xf0874c===_0x16e8a5(0x13b),_0x5a7fc6=_0xb77a37?.['apiDir']||_0x2fe78a['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],_0x376c39=isDaily(normalizeEnv(String(_0x18caac)))?_0x16e8a5(0x12f):'production';return{'appCode':typeof _0x36bdda===_0x16e8a5(0x136)&&_0x36bdda[_0x16e8a5(0x168)]()?_0x36bdda[_0x16e8a5(0x168)]():undefined,'env':_0x376c39,'locale':_0x15d27c,'cookie':_0x5d6c51,'accessKey':_0x3a93e0,'format':_0x2f7581,'pageSize':_0xeff77f,'riskLevel':_0x42ef4e,'verbose':_0x243f8e,'apiDir':_0x5a7fc6,'apps':_0x19e4a3,'defaultApp':_0x4060d6,'currentApp':_0x1a00b2?_0x1bbcf0:undefined,'explicitAppName':_0x41d22f,'raw':_0x2fe78a};}async function buildAuth(_0x12f01e){const _0x319acf=a139_0x92659e,{getCookie:_0x1d82f7}=await import(_0x319acf(0x167)),_0x1578a6=_0x12f01e['cookie']||_0x1d82f7(),_0x39f3fd=_0x1578a6?await getIsSessionValid():![];return{'cookie':_0x1578a6,'isLoggedIn':_0x39f3fd,async 'getOrLogin'(){const _0x761871=_0x319acf;if(_0x1578a6&&_0x39f3fd)return _0x1578a6;throw CliErrors[_0x761871(0x162)]();}};}export function resolveApiFilePath(_0x4432c6,_0x5c6013){const _0x531d43=a139_0x92659e,_0x283f06=resolve(process[_0x531d43(0x17b)](),_0x4432c6),_0x4729da=resolve(_0x283f06,_0x531d43(0x12a));if(!_0x5c6013)return _0x4729da;const _0x4692ce=readRawConfig(),_0x19778a=_0x4692ce[_0x531d43(0x177)]&&typeof _0x4692ce[_0x531d43(0x177)]===_0x531d43(0x164)?_0x4692ce[_0x531d43(0x177)]:{},_0x44a01e=Object[_0x531d43(0x169)](_0x19778a)[_0x531d43(0x13a)](([,_0x29e154])=>_0x29e154?.['appcode']===_0x5c6013);if(!_0x44a01e)return _0x4729da;const [_0x82d7d7,_0x5164e1]=_0x44a01e,_0x5c6f82=typeof _0x4692ce[_0x531d43(0x14c)]===_0x531d43(0x136)?_0x4692ce[_0x531d43(0x14c)]:undefined;if(_0x5164e1?.[_0x531d43(0x13f)])return _0x4729da;if(_0x5c6f82&&_0x82d7d7!==_0x5c6f82)return resolve(_0x283f06,_0x82d7d7+_0x531d43(0x137));return _0x4729da;}
1
+ const a140_0x26e0a6=a140_0x4014;(function(_0x339ce6,_0x5896dd){const _0xd6e967=a140_0x4014,_0x51ee35=_0x339ce6();while(!![]){try{const _0x409994=parseInt(_0xd6e967(0x142))/0x1+-parseInt(_0xd6e967(0x141))/0x2*(-parseInt(_0xd6e967(0x134))/0x3)+-parseInt(_0xd6e967(0x115))/0x4+parseInt(_0xd6e967(0x150))/0x5*(parseInt(_0xd6e967(0x121))/0x6)+parseInt(_0xd6e967(0x15b))/0x7+parseInt(_0xd6e967(0x12d))/0x8*(-parseInt(_0xd6e967(0x14e))/0x9)+parseInt(_0xd6e967(0x113))/0xa*(parseInt(_0xd6e967(0x136))/0xb);if(_0x409994===_0x5896dd)break;else _0x51ee35['push'](_0x51ee35['shift']());}catch(_0x163b54){_0x51ee35['push'](_0x51ee35['shift']());}}}(a140_0x21b3,0x2b5f3));import{readFileSync,writeFileSync,existsSync,mkdirSync,renameSync,unlinkSync}from'node:fs';import{resolve,dirname,parse}from'node:path';function a140_0x21b3(){const _0x5a45fc=['setRawCommand','config','162OGXlmy','projectConfig','warn','project','Global','find','object','.rabetbase.json','missing','globalConfig','RISK_LEVEL','PAGE_SIZE','749848KwCOxq','./constant/env.js','inherit','accessKey','argv','setLogPath','entries','16197MNcYdx','get','11moZhJW','./constant/domain.js','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','utf8','merged','template_base_url','MAX_RISK','empty','appcode','defaultApp','Project','116kWDdsj','86056MQhrrc','COOKIE','apps','APP','error','APPCODE','runtimeDomain','cwd','format','true','replace','.lovrabetrc','27LRkwsX','map','1525MugaZK','apiDomain','apiDir','-api.ts','message','read','app','https://g.lovrabet.com/dist/lovrabet-skill','api.ts','locale','keys','20027FfIUPl','length','\x0a\x20\x20','.lovrabet.json','.tmp','./auth/get-cookie.js','ACCESS_KEY','daily','VERBOSE','riskLevel','3162620hvBmLv','filter','1070848eWrBlA','status','pageSize','production','string','parse','stringify','trim','cookie','env'];a140_0x21b3=function(){return _0x5a45fc;};return a140_0x21b3();}import{homedir}from'node:os';import{logger}from'./utils/logger.js';import{getIsSessionValid}from'./auth/is-session-valid.js';import{CliErrors}from'./errors.js';import{CLI_BIN_NAME}from'./constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'./constant/defaults.js';import{normalizeEnv,isDaily}from'./constant/env.js';import{normalizeLegacyOutputFormat}from'./framework/types.js';function env(_0x228f25){return process.env[`RABETBASE_${_0x228f25}`]||process.env[`LOVRABET_${_0x228f25}`]||undefined;}export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[a140_0x26e0a6(0x128),a140_0x26e0a6(0x15e),a140_0x26e0a6(0x14d)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a140_0x26e0a6(0x114)](_0xaeb456=>_0xaeb456!==NEW_CONFIG_NAME);export function resolveConfigPath(_0x1309e1){for(const _0x421766 of CONFIG_NAMES){const _0x18b9e4=resolve(_0x1309e1,_0x421766);if(existsSync(_0x18b9e4))return _0x18b9e4;}return undefined;}export function findProjectRootDirectory(_0x31ffb2=process[a140_0x26e0a6(0x149)]()){let _0x41f548=resolve(_0x31ffb2);const {root:_0x4ca85d}=parse(_0x41f548),_0x41be81=homedir();while(!![]){if(resolveConfigPath(_0x41f548)){if(_0x41f548===_0x41be81)break;return _0x41f548;}if(_0x41f548===_0x4ca85d||_0x41f548===_0x41be81)break;const _0x542fc1=dirname(_0x41f548);if(_0x542fc1===_0x41f548)break;_0x41f548=_0x542fc1;}return resolve(_0x31ffb2);}export async function createContext(_0x43f96b){const _0x382be7=a140_0x26e0a6,_0x5de2ef=readRawConfig(),_0x206219=buildConfig(_0x5de2ef,_0x43f96b),{initEnv:_0x24d064}=await import(_0x382be7(0x12e));if(_0x206219[_0x382be7(0x11e)])_0x24d064(_0x206219[_0x382be7(0x11e)]);else _0x43f96b[_0x382be7(0x11e)]&&typeof _0x43f96b[_0x382be7(0x11e)]===_0x382be7(0x119)&&_0x24d064(_0x43f96b[_0x382be7(0x11e)]);const {initDomains:_0xc7615b,getUserDomain:_0x542257,getApiDomain:_0x24d08c}=await import(_0x382be7(0x137));_0xc7615b({'apiDomain':_0x5de2ef[_0x382be7(0x151)]||undefined,'userDomain':_0x5de2ef['userDomain']||undefined,'runtimeDomain':_0x5de2ef[_0x382be7(0x148)]||undefined});const _0x5c1e50={'apiDomain':_0x24d08c(),'userDomain':_0x542257()},_0x296048=await buildAuth(_0x206219);logger[_0x382be7(0x132)](process[_0x382be7(0x149)]());const _0x3f2ea1=(CLI_BIN_NAME+'\x20'+process[_0x382be7(0x131)]['slice'](0x2)['join']('\x20'))['trim']();logger[_0x382be7(0x11f)](_0x3f2ea1);const {isNonInteractive:_0x4b9738}=await import('./utils/is-non-interactive.js'),_0x493630=_0x4b9738(_0x43f96b);return{'config':_0x206219,'auth':_0x296048,'logger':logger,'env':_0x5c1e50,'nonInteractive':_0x493630};}export function buildConfigFromFlags(_0x42c4f6){return buildConfig(readRawConfig(),_0x42c4f6);}export function getProjectConfigPath(){const _0xedde31=a140_0x26e0a6;return resolveConfigPath(process[_0xedde31(0x149)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x40d40f){const _0x1e31b3=a140_0x26e0a6;if(!existsSync(_0x40d40f))return{'status':'missing'};try{const _0x52ff18=readFileSync(_0x40d40f,{'encoding':'utf8'});if(!_0x52ff18?.[_0x1e31b3(0x11c)]())return{'status':'empty'};const _0x1a57e2=JSON[_0x1e31b3(0x11a)](_0x52ff18);return{'status':'ok','data':_0x1a57e2};}catch(_0x54c471){return{'status':_0x1e31b3(0x146),'message':_0x54c471 instanceof Error?_0x54c471['message']:String(_0x54c471)};}}function a140_0x4014(_0x478e63,_0x5852b7){_0x478e63=_0x478e63-0x112;const _0x21b313=a140_0x21b3();let _0x4014e3=_0x21b313[_0x478e63];return _0x4014e3;}function parseCliConfigJsonFile(_0x4edb97,_0x4ed325,_0x2ff489){const _0x8cddd6=a140_0x26e0a6,_0x4d1d0d=inspectCliConfigJsonFile(_0x4edb97);if(_0x4d1d0d[_0x8cddd6(0x116)]===_0x8cddd6(0x129)||_0x4d1d0d[_0x8cddd6(0x116)]===_0x8cddd6(0x13d))return{};if(_0x4d1d0d[_0x8cddd6(0x116)]==='ok')return _0x4d1d0d['data'];return _0x4ed325===_0x8cddd6(0x123)&&_0x2ff489&&console[_0x8cddd6(0x146)](CLI_BIN_NAME+':\x20'+_0x2ff489+_0x8cddd6(0x138)+_0x4edb97+_0x8cddd6(0x15d)+_0x4d1d0d[_0x8cddd6(0x154)]),{};}const normalizedWriteCache=new Map();function normalizeLegacyConfigShape(_0x41b392){const _0x1ae11b=a140_0x26e0a6;if(!_0x41b392||typeof _0x41b392!=='object')return{'config':{},'migrated':![]};const _0x449aaa={..._0x41b392},_0x320321=_0x449aaa[_0x1ae11b(0x144)]&&typeof _0x449aaa[_0x1ae11b(0x144)]===_0x1ae11b(0x127)?{..._0x449aaa[_0x1ae11b(0x144)]}:{},_0xab5475=Object[_0x1ae11b(0x15a)](_0x320321)[_0x1ae11b(0x15c)],_0x5de011=_0x449aaa[_0x1ae11b(0x13e)]||_0x449aaa['app'];let _0x37c756=![];if(_0x5de011&&_0xab5475===0x0){const _0x18f3cb=typeof _0x449aaa[_0x1ae11b(0x13f)]===_0x1ae11b(0x119)&&_0x449aaa[_0x1ae11b(0x13f)][_0x1ae11b(0x11c)]()?_0x449aaa[_0x1ae11b(0x13f)]:String(_0x5de011)[_0x1ae11b(0x11c)]();_0x320321[_0x18f3cb]={'appcode':String(_0x5de011)['trim'](),..._0x449aaa['env']!=null?{'env':_0x449aaa['env']}:{},..._0x449aaa[_0x1ae11b(0x152)]!=null?{'apiDir':_0x449aaa['apiDir']}:{},..._0x449aaa[_0x1ae11b(0x11d)]!=null?{'cookie':_0x449aaa[_0x1ae11b(0x11d)]}:{},..._0x449aaa[_0x1ae11b(0x130)]!=null?{'accessKey':_0x449aaa[_0x1ae11b(0x130)]}:{},..._0x449aaa[_0x1ae11b(0x14a)]!=null?{'format':_0x449aaa[_0x1ae11b(0x14a)]}:{},..._0x449aaa[_0x1ae11b(0x117)]!=null?{'pageSize':_0x449aaa[_0x1ae11b(0x117)]}:{},..._0x449aaa[_0x1ae11b(0x112)]!=null?{'riskLevel':_0x449aaa[_0x1ae11b(0x112)]}:{},..._0x449aaa[_0x1ae11b(0x159)]!=null?{'locale':_0x449aaa[_0x1ae11b(0x159)]}:{}},_0x449aaa[_0x1ae11b(0x144)]=_0x320321;if(!_0x449aaa['defaultApp'])_0x449aaa[_0x1ae11b(0x13f)]=_0x18f3cb;_0x37c756=!![];}return('appcode'in _0x449aaa||_0x1ae11b(0x156)in _0x449aaa)&&(delete _0x449aaa['appcode'],delete _0x449aaa[_0x1ae11b(0x156)],_0x37c756=!![]),{'config':_0x449aaa,'migrated':_0x37c756};}function writeNormalizedConfigIfNeeded(_0x1538c3,_0x205c52){const _0x3ae26a=a140_0x26e0a6,_0x4fb9bc=JSON[_0x3ae26a(0x11b)](_0x205c52,null,0x2)+'\x0a';if(normalizedWriteCache[_0x3ae26a(0x135)](_0x1538c3)===_0x4fb9bc)return;writeConfigFile(_0x1538c3,_0x205c52),normalizedWriteCache['set'](_0x1538c3,_0x4fb9bc);}function parseAndNormalizeConfig(_0x457be8,_0x405eb5,_0x434f13){const _0xc8848e=a140_0x26e0a6,_0x1bbec3=parseCliConfigJsonFile(_0x457be8,_0x405eb5,_0x434f13),_0x53aa25=normalizeLegacyConfigShape(_0x1bbec3);if(_0x53aa25['migrated'])try{writeNormalizedConfigIfNeeded(_0x457be8,_0x53aa25[_0xc8848e(0x120)]);}catch{}return _0x53aa25[_0xc8848e(0x120)];}export function loadRawConfigLayers(_0x301dc9){const _0x42eaa7=a140_0x26e0a6;let _0x25138c={},_0x24bf4a={};const _0x3a828b=resolveConfigPath(homedir());_0x3a828b&&(_0x25138c=parseAndNormalizeConfig(_0x3a828b,_0x42eaa7(0x123),_0x42eaa7(0x125)));const _0x27879e=_0x301dc9??findProjectRootDirectory(),_0x19e895=resolveConfigPath(_0x27879e);return _0x19e895&&(_0x24bf4a=parseAndNormalizeConfig(_0x19e895,_0x42eaa7(0x123),_0x42eaa7(0x140))),{'globalPath':_0x3a828b,'projectPath':_0x19e895,'globalConfig':_0x25138c,'projectConfig':_0x24bf4a};}const INHERIT_WHITELIST=[a140_0x26e0a6(0x11d),a140_0x26e0a6(0x130),'locale',a140_0x26e0a6(0x14a),a140_0x26e0a6(0x112),a140_0x26e0a6(0x117)];function mergeRawConfigLayers(_0x202ed4){const _0x2537e6=a140_0x26e0a6,{globalConfig:_0x4ce13e,projectConfig:_0x192147}=_0x202ed4,_0x22a014=Object[_0x2537e6(0x15a)](_0x192147)[_0x2537e6(0x15c)]>0x0;if(!_0x22a014)return mergeGlobalOnly(_0x4ce13e);if(_0x192147[_0x2537e6(0x12f)]===!![])return mergeFullInherit(_0x4ce13e,_0x192147);if(_0x192147[_0x2537e6(0x12f)]===![])return mergeIsolated(_0x192147);return mergeProjectFirst(_0x4ce13e,_0x192147);}function mergeGlobalOnly(_0x3d1cc6){const _0x5bd267=a140_0x26e0a6,_0x16ecbf={..._0x3d1cc6},_0x5c8d06=_0x3d1cc6[_0x5bd267(0x144)]&&typeof _0x3d1cc6[_0x5bd267(0x144)]===_0x5bd267(0x127)?_0x3d1cc6[_0x5bd267(0x144)]:{};Object[_0x5bd267(0x15a)](_0x5c8d06)['length']>0x0&&(_0x16ecbf[_0x5bd267(0x144)]=_0x5c8d06);if(_0x3d1cc6[_0x5bd267(0x13f)])_0x16ecbf[_0x5bd267(0x13f)]=_0x3d1cc6[_0x5bd267(0x13f)];else{const _0x3ece80=Object[_0x5bd267(0x15a)](_0x5c8d06);if(_0x3ece80[_0x5bd267(0x15c)]>0x0)_0x16ecbf['defaultApp']=_0x3ece80[0x0];}return _0x16ecbf;}function mergeIsolated(_0x36b677){const _0x1964e0=a140_0x26e0a6,_0x1b528d={..._0x36b677};delete _0x1b528d[_0x1964e0(0x12f)];const _0x4d498a=_0x36b677[_0x1964e0(0x144)]&&typeof _0x36b677['apps']===_0x1964e0(0x127)?_0x36b677[_0x1964e0(0x144)]:{};Object[_0x1964e0(0x15a)](_0x4d498a)[_0x1964e0(0x15c)]>0x0?_0x1b528d['apps']=_0x4d498a:delete _0x1b528d[_0x1964e0(0x144)];if(_0x1964e0(0x13f)in _0x36b677)_0x1b528d[_0x1964e0(0x13f)]=_0x36b677[_0x1964e0(0x13f)];else Object[_0x1964e0(0x15a)](_0x4d498a)[_0x1964e0(0x15c)]>0x0?_0x1b528d['defaultApp']=Object[_0x1964e0(0x15a)](_0x4d498a)[0x0]:delete _0x1b528d[_0x1964e0(0x13f)];return _0x1b528d;}function mergeProjectFirst(_0x2e5ae1,_0x2c985f){const _0x59ca5d=a140_0x26e0a6,_0x154017={..._0x2c985f};delete _0x154017[_0x59ca5d(0x12f)];for(const _0x3f5d15 of INHERIT_WHITELIST){!(_0x3f5d15 in _0x154017)&&_0x3f5d15 in _0x2e5ae1&&(_0x154017[_0x3f5d15]=_0x2e5ae1[_0x3f5d15]);}const _0x19d2f6=_0x2c985f[_0x59ca5d(0x144)]&&typeof _0x2c985f[_0x59ca5d(0x144)]===_0x59ca5d(0x127)?_0x2c985f[_0x59ca5d(0x144)]:{};Object[_0x59ca5d(0x15a)](_0x19d2f6)[_0x59ca5d(0x15c)]>0x0?_0x154017[_0x59ca5d(0x144)]=_0x19d2f6:delete _0x154017[_0x59ca5d(0x144)];if(_0x59ca5d(0x13f)in _0x2c985f)_0x154017[_0x59ca5d(0x13f)]=_0x2c985f[_0x59ca5d(0x13f)];else Object[_0x59ca5d(0x15a)](_0x19d2f6)[_0x59ca5d(0x15c)]>0x0?_0x154017[_0x59ca5d(0x13f)]=Object[_0x59ca5d(0x15a)](_0x19d2f6)[0x0]:delete _0x154017[_0x59ca5d(0x13f)];return _0x154017;}function mergeFullInherit(_0x1c56d4,_0x4c6257){const _0x20b4b1=a140_0x26e0a6,_0x3839e5=_0x1c56d4[_0x20b4b1(0x144)]&&typeof _0x1c56d4[_0x20b4b1(0x144)]==='object'?_0x1c56d4['apps']:{},_0x4afe98=_0x4c6257[_0x20b4b1(0x144)]&&typeof _0x4c6257[_0x20b4b1(0x144)]===_0x20b4b1(0x127)?_0x4c6257[_0x20b4b1(0x144)]:{},_0x57ac75={..._0x3839e5,..._0x4afe98},_0x4b2196={..._0x1c56d4,..._0x4c6257};delete _0x4b2196[_0x20b4b1(0x12f)];Object[_0x20b4b1(0x15a)](_0x57ac75)[_0x20b4b1(0x15c)]>0x0&&(_0x4b2196[_0x20b4b1(0x144)]=_0x57ac75);if(_0x20b4b1(0x13f)in _0x4c6257)_0x4b2196[_0x20b4b1(0x13f)]=_0x4c6257[_0x20b4b1(0x13f)];else{if(Object[_0x20b4b1(0x15a)](_0x4afe98)['length']>0x0)_0x4b2196[_0x20b4b1(0x13f)]=Object[_0x20b4b1(0x15a)](_0x4afe98)[0x0];else{if(_0x1c56d4[_0x20b4b1(0x13f)])_0x4b2196[_0x20b4b1(0x13f)]=_0x1c56d4['defaultApp'];else{const _0x4acfbd=Object[_0x20b4b1(0x15a)](_0x3839e5);if(_0x4acfbd['length']>0x0)_0x4b2196[_0x20b4b1(0x13f)]=_0x4acfbd[0x0];}}}return _0x4b2196;}export function readRawConfigWithLayers(_0xb89d6c){const _0x5919ad=loadRawConfigLayers(_0xb89d6c);return{'config':mergeRawConfigLayers(_0x5919ad),'layers':_0x5919ad};}export function readRawConfig(_0x33867b){return mergeRawConfigLayers(loadRawConfigLayers(_0x33867b));}export function getConfigAppCode(_0x4444d2){const _0x176d69=a140_0x26e0a6,_0x29fdc3=readRawConfig(_0x4444d2);if(_0x29fdc3[_0x176d69(0x144)]&&typeof _0x29fdc3[_0x176d69(0x144)]===_0x176d69(0x127)){const _0x57e9a0=_0x29fdc3[_0x176d69(0x13f)];if(_0x57e9a0&&_0x29fdc3[_0x176d69(0x144)][_0x57e9a0]?.[_0x176d69(0x13e)])return String(_0x29fdc3['apps'][_0x57e9a0][_0x176d69(0x13e)])['trim']();const _0x2e8773=Object['values'](_0x29fdc3['apps'])[0x0];if(_0x2e8773?.[_0x176d69(0x13e)])return String(_0x2e8773[_0x176d69(0x13e)])[_0x176d69(0x11c)]();}const _0x11e02c=_0x29fdc3['appcode']||_0x29fdc3[_0x176d69(0x156)];if(typeof _0x11e02c!==_0x176d69(0x119)||_0x11e02c[_0x176d69(0x11c)]()==='')return undefined;return _0x11e02c[_0x176d69(0x11c)]();}export function getMultiAppConfigs(_0x10ff7b='project',_0x2cb2ff){const _0x5ca463=a140_0x26e0a6,_0x5e0d9b=loadRawConfigLayers(_0x2cb2ff);let _0x4b8c33,_0x130043;if(_0x10ff7b===_0x5ca463(0x13a)){const _0x3f689b=_0x5e0d9b[_0x5ca463(0x12a)][_0x5ca463(0x144)]&&typeof _0x5e0d9b['globalConfig'][_0x5ca463(0x144)]===_0x5ca463(0x127)?_0x5e0d9b['globalConfig']['apps']:{},_0x45225c=_0x5e0d9b[_0x5ca463(0x122)][_0x5ca463(0x144)]&&typeof _0x5e0d9b[_0x5ca463(0x122)][_0x5ca463(0x144)]===_0x5ca463(0x127)?_0x5e0d9b[_0x5ca463(0x122)]['apps']:{};_0x4b8c33={..._0x3f689b,..._0x45225c};const _0x4c043a=readRawConfig(_0x2cb2ff);_0x130043=_0x4c043a[_0x5ca463(0x13f)];}else _0x4b8c33=_0x5e0d9b[_0x5ca463(0x122)][_0x5ca463(0x144)],_0x130043=_0x5e0d9b[_0x5ca463(0x122)][_0x5ca463(0x13f)];if(!_0x4b8c33||typeof _0x4b8c33!==_0x5ca463(0x127)||Object[_0x5ca463(0x15a)](_0x4b8c33)[_0x5ca463(0x15c)]===0x0)return null;return Object[_0x5ca463(0x133)](_0x4b8c33)[_0x5ca463(0x14f)](([_0x499cf0,_0x4b7fdb])=>({'name':_0x499cf0,'appcode':_0x4b7fdb?.['appcode']||'','isDefault':_0x499cf0===_0x130043,'env':_0x4b7fdb?.['env'],'apiDir':_0x4b7fdb?.['apiDir'],'cookie':_0x4b7fdb?.[_0x5ca463(0x11d)]||undefined}))['filter'](_0x563859=>_0x563859[_0x5ca463(0x13e)]);}export function getTemplateBaseUrl(_0x2a6856){const _0x9dd803=a140_0x26e0a6,_0x278b6a=readRawConfig(_0x2a6856);if(_0x278b6a[_0x9dd803(0x13b)]&&typeof _0x278b6a[_0x9dd803(0x13b)]===_0x9dd803(0x119))return _0x278b6a[_0x9dd803(0x13b)][_0x9dd803(0x14c)](/\/$/,'');return _0x9dd803(0x157);}export function readConfigFile(_0x43c367){return parseAndNormalizeConfig(_0x43c367,'silent');}export function writeConfigFile(_0x43a3ab,_0x416903){const _0x32c924=a140_0x26e0a6,_0x298600=dirname(_0x43a3ab);!existsSync(_0x298600)&&mkdirSync(_0x298600,{'recursive':!![]});const _0x462255=_0x43a3ab+_0x32c924(0x15f);try{writeFileSync(_0x462255,JSON['stringify'](_0x416903,null,0x2)+'\x0a',{'encoding':_0x32c924(0x139),'mode':0x180}),renameSync(_0x462255,_0x43a3ab);}catch(_0x3b7800){try{unlinkSync(_0x462255);}catch{}throw _0x3b7800;}}export function resolveWriteConfigPath(_0x27f778){const _0x98af56=a140_0x26e0a6,_0x12365c=_0x27f778===_0x98af56(0x124)?process['cwd']():homedir(),_0x28e595=resolveConfigPath(_0x12365c);return _0x28e595??resolve(_0x12365c,NEW_CONFIG_NAME);}function buildConfig(_0x322fec,_0x23bcb4){const _0x1b65a9=a140_0x26e0a6,_0x59f4ad={};if(_0x322fec[_0x1b65a9(0x144)]&&typeof _0x322fec[_0x1b65a9(0x144)]==='object')for(const [_0x16e9ca,_0x109706]of Object[_0x1b65a9(0x133)](_0x322fec['apps'])){_0x109706&&typeof _0x109706===_0x1b65a9(0x127)&&_0x109706[_0x1b65a9(0x13e)]&&(_0x59f4ad[_0x16e9ca]=_0x109706);}const _0x50158f=_0x322fec[_0x1b65a9(0x13f)]||undefined,_0x7c20a0=Object[_0x1b65a9(0x15a)](_0x59f4ad)[_0x1b65a9(0x15c)]>0x0,_0x275555=_0x23bcb4[_0x1b65a9(0x156)]||env(_0x1b65a9(0x145))||undefined,_0x2e2913=_0x275555||_0x50158f||undefined,_0x44ae47=_0x23bcb4[_0x1b65a9(0x13e)]||env(_0x1b65a9(0x147))||undefined,_0x3db850=_0x44ae47?Object[_0x1b65a9(0x133)](_0x59f4ad)['find'](([,_0x189075])=>_0x189075?.[_0x1b65a9(0x13e)]===_0x44ae47):undefined,_0x44667e=_0x3db850?.[0x0],_0x2a0205=_0x3db850?.[0x1];let _0x4b45eb=_0x44ae47?_0x44667e:_0x2e2913,_0x45768a=_0x4b45eb&&_0x59f4ad[_0x4b45eb]?_0x59f4ad[_0x4b45eb]:undefined;_0x44ae47&&_0x2a0205&&(_0x45768a=_0x2a0205);const _0x2447a0=_0x44ae47?_0x2a0205??_0x45768a:_0x45768a,_0x881866=_0x275555||(_0x44ae47?_0x44667e:undefined),_0x427577=_0x44ae47||_0x2447a0?.[_0x1b65a9(0x13e)]||undefined,_0x204d71=_0x23bcb4[_0x1b65a9(0x11e)]||env('ENV')||_0x2447a0?.[_0x1b65a9(0x11e)]||_0x322fec[_0x1b65a9(0x11e)]||DEFAULT_CONFIG_VALUES['env'],_0x199e97=_0x2447a0?.[_0x1b65a9(0x159)]||_0x322fec['locale']||DEFAULT_CONFIG_VALUES[_0x1b65a9(0x159)],_0x17c4ff=env(_0x1b65a9(0x143))||_0x2447a0?.[_0x1b65a9(0x11d)]||_0x322fec[_0x1b65a9(0x11d)]||undefined,_0x59f4db=env(_0x1b65a9(0x161))||_0x2447a0?.[_0x1b65a9(0x130)]||_0x322fec[_0x1b65a9(0x130)]||undefined,_0x1d7979=_0x23bcb4[_0x1b65a9(0x14a)]||env('FORMAT')||_0x2447a0?.[_0x1b65a9(0x14a)]||_0x322fec[_0x1b65a9(0x14a)],_0x2ae688=normalizeLegacyOutputFormat(_0x1d7979),_0x178af8=env(_0x1b65a9(0x12c))||_0x2447a0?.['pageSize']||_0x322fec[_0x1b65a9(0x117)],_0x282c0a=_0x178af8?Number(_0x178af8)||undefined:undefined,_0x193833=env(_0x1b65a9(0x12b))||env(_0x1b65a9(0x13c))||_0x2447a0?.['riskLevel']||_0x322fec['riskLevel']||_0x322fec['maxRisk'],_0x24f6a4=_0x193833===_0x1b65a9(0x155)||_0x193833==='write'?_0x193833:DEFAULT_CONFIG_VALUES['riskLevel'],_0x2a4bf2=env(_0x1b65a9(0x163)),_0xf984a7=_0x2a4bf2==='1'||_0x2a4bf2===_0x1b65a9(0x14b),_0x3a709c=_0x2447a0?.['apiDir']||_0x322fec[_0x1b65a9(0x152)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x639cbb=isDaily(normalizeEnv(String(_0x204d71)))?_0x1b65a9(0x162):_0x1b65a9(0x118);return{'appCode':typeof _0x427577===_0x1b65a9(0x119)&&_0x427577[_0x1b65a9(0x11c)]()?_0x427577['trim']():undefined,'env':_0x639cbb,'locale':_0x199e97,'cookie':_0x17c4ff,'accessKey':_0x59f4db,'format':_0x2ae688,'pageSize':_0x282c0a,'riskLevel':_0x24f6a4,'verbose':_0xf984a7,'apiDir':_0x3a709c,'apps':_0x59f4ad,'defaultApp':_0x50158f,'currentApp':_0x7c20a0?_0x4b45eb:undefined,'explicitAppName':_0x881866,'raw':_0x322fec};}async function buildAuth(_0x1a574d){const _0x428a81=a140_0x26e0a6,{getCookie:_0x1ded74}=await import(_0x428a81(0x160)),_0x3e9d6c=_0x1a574d[_0x428a81(0x11d)]||_0x1ded74(),_0x3ae613=_0x3e9d6c?await getIsSessionValid():![];return{'cookie':_0x3e9d6c,'isLoggedIn':_0x3ae613,async 'getOrLogin'(){if(_0x3e9d6c&&_0x3ae613)return _0x3e9d6c;throw CliErrors['authRequired']();}};}export function resolveApiFilePath(_0x47619b,_0x34d428){const _0xb8e552=a140_0x26e0a6,_0x206cc8=resolve(process[_0xb8e552(0x149)](),_0x47619b),_0x4dbb71=resolve(_0x206cc8,_0xb8e552(0x158));if(!_0x34d428)return _0x4dbb71;const _0x7279f7=readRawConfig(),_0xee6664=_0x7279f7['apps']&&typeof _0x7279f7[_0xb8e552(0x144)]===_0xb8e552(0x127)?_0x7279f7[_0xb8e552(0x144)]:{},_0x567f2a=Object[_0xb8e552(0x133)](_0xee6664)[_0xb8e552(0x126)](([,_0x42b93c])=>_0x42b93c?.['appcode']===_0x34d428);if(!_0x567f2a)return _0x4dbb71;const [_0x457802,_0x242113]=_0x567f2a,_0x58151b=typeof _0x7279f7[_0xb8e552(0x13f)]==='string'?_0x7279f7['defaultApp']:undefined;if(_0x242113?.['apiDir'])return _0x4dbb71;if(_0x58151b&&_0x457802!==_0x58151b)return resolve(_0x206cc8,_0x457802+_0xb8e552(0x153));return _0x4dbb71;}
@@ -1 +1 @@
1
- (function(_0x34e785,_0x1db4fa){const _0xae45fc=a140_0x3dd4,_0x4f09e0=_0x34e785();while(!![]){try{const _0x25add5=parseInt(_0xae45fc(0xe5))/0x1+parseInt(_0xae45fc(0xee))/0x2*(parseInt(_0xae45fc(0xea))/0x3)+-parseInt(_0xae45fc(0xec))/0x4*(-parseInt(_0xae45fc(0xef))/0x5)+-parseInt(_0xae45fc(0xe9))/0x6*(-parseInt(_0xae45fc(0xe3))/0x7)+-parseInt(_0xae45fc(0xf2))/0x8*(-parseInt(_0xae45fc(0xf3))/0x9)+-parseInt(_0xae45fc(0xf5))/0xa*(-parseInt(_0xae45fc(0xf0))/0xb)+-parseInt(_0xae45fc(0xed))/0xc;if(_0x25add5===_0x1db4fa)break;else _0x4f09e0['push'](_0x4f09e0['shift']());}catch(_0x360e6e){_0x4f09e0['push'](_0x4f09e0['shift']());}}}(a140_0x4cc6,0x3350d));import{readFileSync,existsSync}from'node:fs';function a140_0x4cc6(){const _0x4988c1=['has','12760KxvHqF','18tfPvVl','exec','10daCNQL','api.ts','utf-8','push','37317yftvzk','find','264596fbavSm','alias','set','get','132tmiSsx','36219DqzQNd','cwd','4YWMAPU','4551660nlxDiO','2sfjmmN','850180OcMUNS','245487HVATYc'];a140_0x4cc6=function(){return _0x4988c1;};return a140_0x4cc6();}import{resolve}from'node:path';function a140_0x3dd4(_0x24ac63,_0xd216b7){_0x24ac63=_0x24ac63-0xe1;const _0x4cc6c4=a140_0x4cc6();let _0x3dd44f=_0x4cc6c4[_0x24ac63];return _0x3dd44f;}const cache=new Map();function parseApiFile(_0x581e86){const _0x2ccfec=a140_0x3dd4,_0x444999=[],_0xaf5ae6=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x5e67ae;while((_0x5e67ae=_0xaf5ae6[_0x2ccfec(0xf4)](_0x581e86))!==null){_0x444999[_0x2ccfec(0xe2)]({'datasetCode':_0x5e67ae[0x1],'tableName':_0x5e67ae[0x2],'name':_0x5e67ae[0x3],'alias':_0x5e67ae[0x4]});}return _0x444999;}export function loadAliasMap(_0x1a2562,_0xedb886,_0x55ef27){const _0x21e0dc=a140_0x3dd4,_0x5af131=_0x55ef27??resolve(process[_0x21e0dc(0xeb)](),_0x1a2562,_0x21e0dc(0xf6));if(cache[_0x21e0dc(0xf1)](_0x5af131))return cache[_0x21e0dc(0xe8)](_0x5af131);if(!existsSync(_0x5af131))return cache[_0x21e0dc(0xe7)](_0x5af131,[]),[];try{const _0x25ee03=readFileSync(_0x5af131,_0x21e0dc(0xe1)),_0x319638=parseApiFile(_0x25ee03);return cache[_0x21e0dc(0xe7)](_0x5af131,_0x319638),_0x319638;}catch{return cache[_0x21e0dc(0xe7)](_0x5af131,[]),[];}}export function resolveAlias(_0x2f7d89,_0x1616a2,_0x44a821,_0x5f3bd0){const _0x1d9f54=a140_0x3dd4;if(!_0x1616a2)return undefined;const _0x5acbe3=loadAliasMap(_0x2f7d89,_0x44a821,_0x5f3bd0),_0x26754b=_0x5acbe3[_0x1d9f54(0xe4)](_0x2c9d97=>_0x2c9d97[_0x1d9f54(0xe6)]===_0x1616a2);return _0x26754b?.['datasetCode'];}export function listAliases(_0x312c88,_0x41fa05,_0x37c51f){return loadAliasMap(_0x312c88,_0x41fa05,_0x37c51f);}
1
+ (function(_0x3fb61d,_0x131ae7){const _0x4876a2=a141_0x44a8,_0x300a90=_0x3fb61d();while(!![]){try{const _0x1886f4=-parseInt(_0x4876a2(0xcb))/0x1+-parseInt(_0x4876a2(0xca))/0x2+-parseInt(_0x4876a2(0xb9))/0x3+parseInt(_0x4876a2(0xbc))/0x4*(-parseInt(_0x4876a2(0xc4))/0x5)+parseInt(_0x4876a2(0xc2))/0x6*(-parseInt(_0x4876a2(0xc6))/0x7)+-parseInt(_0x4876a2(0xb8))/0x8*(-parseInt(_0x4876a2(0xbb))/0x9)+-parseInt(_0x4876a2(0xbe))/0xa*(-parseInt(_0x4876a2(0xb7))/0xb);if(_0x1886f4===_0x131ae7)break;else _0x300a90['push'](_0x300a90['shift']());}catch(_0x30fddc){_0x300a90['push'](_0x300a90['shift']());}}}(a141_0x3233,0x4282d));function a141_0x44a8(_0x4f647b,_0x226899){_0x4f647b=_0x4f647b-0xb7;const _0x323396=a141_0x3233();let _0x44a800=_0x323396[_0x4f647b];return _0x44a800;}import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x12455a){const _0xd6bcbb=a141_0x44a8,_0x348318=[],_0x37eb91=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x1d58f5;while((_0x1d58f5=_0x37eb91[_0xd6bcbb(0xc7)](_0x12455a))!==null){_0x348318[_0xd6bcbb(0xc8)]({'datasetCode':_0x1d58f5[0x1],'tableName':_0x1d58f5[0x2],'name':_0x1d58f5[0x3],'alias':_0x1d58f5[0x4]});}return _0x348318;}function a141_0x3233(){const _0x329a01=['push','api.ts','883496xhiEEx','320995wgtrgj','30371UVcrRu','8HbwzCx','1562325XuiDUH','find','2785779agCVsT','1162140IqTPyz','has','7220IiutbQ','cwd','alias','set','2738946DvKtWk','get','5GvFzDE','datasetCode','7UjfpJT','exec'];a141_0x3233=function(){return _0x329a01;};return a141_0x3233();}export function loadAliasMap(_0x3e7831,_0x2afeeb,_0x53d8ae){const _0x48bbaf=a141_0x44a8,_0xb43521=_0x53d8ae??resolve(process[_0x48bbaf(0xbf)](),_0x3e7831,_0x48bbaf(0xc9));if(cache[_0x48bbaf(0xbd)](_0xb43521))return cache[_0x48bbaf(0xc3)](_0xb43521);if(!existsSync(_0xb43521))return cache[_0x48bbaf(0xc1)](_0xb43521,[]),[];try{const _0xd90468=readFileSync(_0xb43521,'utf-8'),_0x3dcd77=parseApiFile(_0xd90468);return cache[_0x48bbaf(0xc1)](_0xb43521,_0x3dcd77),_0x3dcd77;}catch{return cache[_0x48bbaf(0xc1)](_0xb43521,[]),[];}}export function resolveAlias(_0x5e3dc3,_0x1009bb,_0x546c5d,_0x34d5f1){const _0x371c19=a141_0x44a8;if(!_0x1009bb)return undefined;const _0x1c5d86=loadAliasMap(_0x5e3dc3,_0x546c5d,_0x34d5f1),_0x367dde=_0x1c5d86[_0x371c19(0xba)](_0xf7e8f4=>_0xf7e8f4[_0x371c19(0xc0)]===_0x1009bb);return _0x367dde?.[_0x371c19(0xc5)];}export function listAliases(_0x23237b,_0x4d5f64,_0x2338fc){return loadAliasMap(_0x23237b,_0x4d5f64,_0x2338fc);}
@@ -1 +1 @@
1
- (function(_0x6034d2,_0x2d8096){const _0xce08a4=a141_0x47e4,_0xe89bf9=_0x6034d2();while(!![]){try{const _0x3103c1=-parseInt(_0xce08a4(0x1bb))/0x1+-parseInt(_0xce08a4(0x162))/0x2*(-parseInt(_0xce08a4(0x158))/0x3)+-parseInt(_0xce08a4(0x154))/0x4+-parseInt(_0xce08a4(0x192))/0x5+parseInt(_0xce08a4(0x191))/0x6*(parseInt(_0xce08a4(0x1aa))/0x7)+parseInt(_0xce08a4(0x139))/0x8+parseInt(_0xce08a4(0x1bd))/0x9;if(_0x3103c1===_0x2d8096)break;else _0xe89bf9['push'](_0xe89bf9['shift']());}catch(_0x507f90){_0xe89bf9['push'](_0xe89bf9['shift']());}}}(a141_0x43dc,0x70a1c));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{CliError,CliErrors}from'../errors.js';import{extractList,extractPaging}from'../framework/response.js';import{normalizeEntityWithIdResponse}from'../utils/entity-with-id.js';let _activeCookie;export function setActiveCookie(_0x5aa80c){_activeCookie=_0x5aa80c||undefined;}function a141_0x43dc(){const _0x355c0c=['code','SQL\x20query\x20not\x20found:\x20','authRequired','/api/management/library/scripts/list?appCode=','operationId','target','\x20failed,\x20HTTP\x20','6ucMGfe','4444520RXOSIZ','//\x20SQL:\x20','join','/smartapi/dblink/getAllTableList','cookie','/smartapi/custom/getUserCustomSql','/smartapi/question/er-config/erCreate','.create({\x20/*\x20fields\x20*/\x20});','scriptName','/api/','map','api_error','success','/smartapi/db-analysis/start','dataset_','/sync-to-pages','getOne','Use\x20the\x20platform\x20console\x20to\x20see\x20all.','\x20\x20currentPage:\x201,','&type=','.update(id,\x20{\x20/*\x20fields\x20*/\x20});','apiError','method','abort','3910081AmURWX','tableData','BFF\x20save\x20returned\x20no\x20valid\x20id','/api/custom/executeSql','path','/smartapi/question/er-config/erDelete','/smartapi/dataset/get-dataset-operation','find','/smartapi/custom/saveUserCustomSql','isArray','message','/api/node-toolbox/sql/save','\x20\x20\x20\x20sqlCode:\x20\x27','clientOperationId','json','errorCode','UNAUTHORIZED','660534zTCbGk','table','8195652WNiMtK','body','/smartapi/dataset/get-driven-data?','object','/api/management/library/scripts/delete','scriptType','validation','.filter({','dbId','.remove(id);','set','version','data','Warning:\x20showing\x20first\x20','currentPage','/generate-standard-pages/status?','\x20\x20where:\x20{},','Request\x20failed:\x20','if\x20(!data.execSuccess)\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);','\x20\x20sqlCode:\x20\x27','entries','});','const\x20data\x20=\x20await\x20client.sql.execute({','API\x20error\x20code:\x20','create','modelId','error','Check\x20network\x20connectivity\x20and\x20try\x20again.','4886880XhIaXC','/api/management/script/cache/clear','sqlName','update','/smartapi/dblink/getOne','push','toString','/smartapi/dblink/testConnect','AbortError','includes','import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','tableList','/smartapi/custom/queryUserCustomSqlList','Page\x20not\x20found:\x20','label','401','//\x20','stringify','\x22\x20not\x20found\x20in\x20dataset\x20','/smartapi/question/er-config','enabled','name','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','cli:rabetbase','/api/management/library/scripts/info?id=','/smartapi/db-analysis/status/','/filter','576580WHBHCf','\x20\x20});','/smartapi/question/er-config/update-single','\x20\x20pageSize:\x2020,','3tcSddS','\x20apps.\x20','signal','operations','/smartapi/dataset/get-dataset-list','\x20failed','GET','/smartapi/lovrabet/update-page','dbtableConfig','status','149704SzwJWf','const\x20results\x20=\x20data.execResult\x20||\x20[];','Unauthorized','const\x20result\x20=\x20await\x20client.models.','POST','tableName','toLowerCase','type','/api/management/library/scripts/statistics?appCode=','totalCount','/smartapi/dataset/delete-dataset','responseFields','operationName','/smartapi/dblink/getTableDiffV2ByPage','planId','BFF\x20script\x20not\x20found:\x20id=','delete','/smartapi/lovrabet/dataset/','/smartapi/custom/getUserCustomSql?id=','SQL\x20query\x20not\x20found:\x20id=','length','string','/smartapi/db-analysis/jobs/cancel','\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','sdk','test','(/*\x20params\x20*/);','/smartapi/dblink/update','/smartapi/lovrabet/detail?pageId=','/smartapi/dblink/delete','Dataset\x20not\x20found:\x20','\x20\x20return\x20rows;','replace','pageSize','includeImports','/standard-page-status?appCode=','Check\x20your\x20auth\x20cookie\x20and\x20try\x20again.','/smartapi/custom/updateUserCustomSql','filter','sqlCode'];a141_0x43dc=function(){return _0x355c0c;};return a141_0x43dc();}export function clearActiveCookie(){_activeCookie=undefined;}const DEFAULT_REQUEST_TIMEOUT_MS=0x7530;function createFetchFailureError(_0x564e6a,_0x306459){const _0x45a89f=a141_0x47e4,_0x32d4f4=_0x306459 instanceof Error?_0x306459[_0x45a89f(0x1b4)]:String(_0x306459);return CliErrors['apiError'](_0x45a89f(0x12e)+_0x564e6a+(_0x32d4f4?'\x20('+_0x32d4f4+')':''),_0x45a89f(0x138));}async function apiRequest(_0x232ef3,_0x261580={}){const _0x1725e5=a141_0x47e4,{method:method=_0x1725e5(0x15e),body:_0x38a2d4,headers:headers={},timeout:timeout=DEFAULT_REQUEST_TIMEOUT_MS,useRuntime:useRuntime=![]}=_0x261580,_0x118818=useRuntime?getRuntimeDomain():getApiDomain(),_0x29f7c4=_activeCookie||getCookie(),_0x20570c=''+_0x118818+_0x232ef3,_0x602d7d=new AbortController(),_0x1280b8=setTimeout(()=>_0x602d7d[_0x1725e5(0x1a9)](),timeout);try{const _0x5a3c88=await fetch(_0x20570c,{'method':method,'headers':{'Content-Type':'application/json','Cookie':_0x29f7c4,'X-Invoke-Source':_0x1725e5(0x150),...headers},'body':_0x38a2d4?JSON[_0x1725e5(0x14a)](_0x38a2d4):undefined,'signal':_0x602d7d[_0x1725e5(0x15a)]});let _0x2fe48f;try{_0x2fe48f=await _0x5a3c88[_0x1725e5(0x1b8)]();}catch{throw CliErrors[_0x1725e5(0x1a7)]('API\x20returned\x20non-JSON\x20response\x20(HTTP\x20'+_0x5a3c88[_0x1725e5(0x161)]+')',_0x5a3c88['status']>=0x190?_0x1725e5(0x186):undefined);}if(!_0x5a3c88['ok']||_0x2fe48f[_0x1725e5(0x19e)]===![])throw CliErrors[_0x1725e5(0x1a7)](_0x2fe48f['errorMsg']||_0x2fe48f['message']||'API\x20error:\x20'+_0x5a3c88['status'],_0x2fe48f[_0x1725e5(0x1b9)]?_0x1725e5(0x134)+_0x2fe48f['errorCode']:undefined);return _0x2fe48f;}catch(_0x2f3cbd){if(_0x2f3cbd instanceof CliError)throw _0x2f3cbd;if(_0x2f3cbd instanceof Error&&_0x2f3cbd['name']===_0x1725e5(0x141))throw CliErrors[_0x1725e5(0x1a7)]('Request\x20timeout:\x20'+_0x20570c);throw createFetchFailureError(_0x20570c,_0x2f3cbd);}finally{clearTimeout(_0x1280b8);}}function isAuthFailure(_0xa85b96){const _0x16cb76=a141_0x47e4,_0x2c9d35=_0xa85b96['errorMsg']||_0xa85b96[_0x16cb76(0x1b4)]||_0xa85b96['data']?.[_0x16cb76(0x1b4)]||_0xa85b96['errorMessage']||_0xa85b96[_0x16cb76(0x137)]||'';return _0xa85b96[_0x16cb76(0x1b9)]===_0x16cb76(0x1ba)||_0xa85b96['code']===0x191||_0xa85b96[_0x16cb76(0x18a)]==='401'||_0x2c9d35[_0x16cb76(0x142)](_0x16cb76(0x148))||_0x2c9d35[_0x16cb76(0x142)](_0x16cb76(0x164))||_0x2c9d35[_0x16cb76(0x142)]('登录')||_0x2c9d35[_0x16cb76(0x142)]('认证');}export async function platformFetch(_0x4b9ced,_0x4bed09){const _0x3d9d71=a141_0x47e4;let _0x441f0d;try{_0x441f0d=await fetch(_0x4b9ced,{'method':_0x4bed09[_0x3d9d71(0x1a8)]??_0x3d9d71(0x15e),'headers':{'Content-Type':'application/json','Cookie':_0x4bed09[_0x3d9d71(0x196)],'X-Invoke-Source':'cli:rabetbase'},..._0x4bed09[_0x3d9d71(0x1be)]&&{'body':JSON[_0x3d9d71(0x14a)](_0x4bed09[_0x3d9d71(0x1be)])}});}catch(_0x1104ad){throw createFetchFailureError(_0x4b9ced,_0x1104ad);}if(!_0x441f0d['ok']){if(_0x441f0d[_0x3d9d71(0x161)]===0x191)throw CliErrors[_0x3d9d71(0x18c)]();throw CliErrors['apiError'](_0x4bed09[_0x3d9d71(0x147)]+_0x3d9d71(0x190)+_0x441f0d[_0x3d9d71(0x161)]);}const _0x48a71e=await _0x441f0d['json']();if(_0x48a71e['success']===![]){if(isAuthFailure(_0x48a71e))throw CliErrors[_0x3d9d71(0x18c)]();throw CliErrors[_0x3d9d71(0x1a7)](_0x48a71e['errorMsg']||_0x48a71e[_0x3d9d71(0x1b4)]||_0x4bed09[_0x3d9d71(0x147)]+_0x3d9d71(0x15d));}return _0x48a71e[_0x3d9d71(0x129)];}export async function listBffScripts(_0x3621ef,_0x71cf82,_0x19bd75){const _0x625d18=a141_0x47e4;let _0x479ab2=_0x625d18(0x18d)+_0x3621ef;if(_0x71cf82)_0x479ab2+=_0x625d18(0x1a5)+_0x71cf82;const _0x57185d=await apiRequest(_0x479ab2);let _0x5bdf19=extractList(_0x57185d['data']);if(_0x19bd75?.[_0x625d18(0x19a)]){const _0x2e3dff=_0x19bd75['scriptName'][_0x625d18(0x168)]();_0x5bdf19=_0x5bdf19['filter'](_0x1d933b=>_0x1d933b['functionName']?.['toLowerCase']()['includes'](_0x2e3dff)||_0x1d933b['description']?.[_0x625d18(0x168)]()[_0x625d18(0x142)](_0x2e3dff));}return _0x5bdf19;}function a141_0x47e4(_0x37fb65,_0x1c704b){_0x37fb65=_0x37fb65-0x127;const _0x43dc81=a141_0x43dc();let _0x47e405=_0x43dc81[_0x37fb65];return _0x47e405;}export async function getBffScriptInfo(_0x30ec92){const _0x410b5d=a141_0x47e4,_0x4a3eee=await apiRequest(_0x410b5d(0x151)+_0x30ec92);if(!_0x4a3eee[_0x410b5d(0x129)])throw CliErrors['validation'](_0x410b5d(0x171)+_0x30ec92);return _0x4a3eee['data'];}export async function saveBffScript(_0x3c7a3f){const _0x114b5d=a141_0x47e4,_0x3b3380=await apiRequest('/api/management/library/scripts/save',{'method':_0x114b5d(0x166),'body':_0x3c7a3f}),{id:_0x1cd9e7,entity:_0xba99d7}=normalizeEntityWithIdResponse(_0x3b3380[_0x114b5d(0x129)]);if(_0x1cd9e7!==undefined){const _0x237bb8=typeof _0xba99d7['functionName']===_0x114b5d(0x177)||typeof _0xba99d7[_0x114b5d(0x1c2)]==='string'?_0xba99d7:undefined;return{'id':_0x1cd9e7,'script':_0x237bb8};}throw CliErrors[_0x114b5d(0x1a7)](_0x114b5d(0x1ac));}export async function deleteBffScript(_0x1d7fab){const _0x273ad4=a141_0x47e4;await apiRequest(_0x273ad4(0x1c1),{'method':_0x273ad4(0x166),'body':{'id':_0x1d7fab}});}export async function getBffScriptStatistics(_0x346863){const _0x4e36b8=a141_0x47e4,_0x4276d5=await apiRequest(_0x4e36b8(0x16a)+_0x346863);return extractList(_0x4276d5[_0x4e36b8(0x129)]);}export async function clearBffScriptCache(){const _0x47c3ec=a141_0x47e4,_0x17641d=await apiRequest(_0x47c3ec(0x13a),{'method':_0x47c3ec(0x166),'useRuntime':!![]});return typeof _0x17641d['data']===_0x47c3ec(0x177)?_0x17641d[_0x47c3ec(0x129)]:'';}export async function listBffDatasetOperations(_0x1481fc,_0xa737e3){const _0x16a860=a141_0x47e4,_0x21fb95=await apiRequest(_0x16a860(0x1b0),{'method':_0x16a860(0x166),'body':{'appCode':_0x1481fc,'datasetId':_0xa737e3}});return _0x21fb95['data'];}export async function listSqlQueries(_0xc7a822,_0x2c7120){const _0x3ae764=a141_0x47e4,_0x406289=await apiRequest(_0x3ae764(0x145),{'method':_0x3ae764(0x166),'body':{'appCode':_0xc7a822,'currentPage':_0x2c7120?.[_0x3ae764(0x12b)]??0x1,'pageSize':_0x2c7120?.['pageSize']??0x32,'sqlCode':_0x2c7120?.['sqlCode'],'sqlName':_0x2c7120?.['sqlName']}});return _0x406289[_0x3ae764(0x129)];}export async function getSqlQueryInfo(_0x4fbb5c,_0x1f7ba9){const _0x4aca1c=a141_0x47e4,_0x47200c=await listSqlQueries(_0x4fbb5c,{'sqlCode':_0x1f7ba9}),_0x3596aa=_0x47200c[_0x4aca1c(0x1ab)]?.[0x0];if(!_0x3596aa)throw CliErrors[_0x4aca1c(0x1c3)](_0x4aca1c(0x18b)+_0x1f7ba9);return _0x3596aa;}export async function getSqlQueryDetail(_0x58ea64){const _0x4934b4=a141_0x47e4,_0x43ffec=await apiRequest(_0x4934b4(0x197)+('?sqlCode='+encodeURIComponent(_0x58ea64)));if(!_0x43ffec[_0x4934b4(0x129)])throw CliErrors[_0x4934b4(0x1c3)](_0x4934b4(0x18b)+_0x58ea64);return _0x43ffec['data'];}export async function getSqlQueryDetailById(_0x4d46c2){const _0x1d4cff=a141_0x47e4,_0xe2d561=await apiRequest(_0x1d4cff(0x174)+_0x4d46c2);if(!_0xe2d561['data'])throw CliErrors['validation'](_0x1d4cff(0x175)+_0x4d46c2);return _0xe2d561[_0x1d4cff(0x129)];}export async function createSqlQuery(_0xd14faa){const _0x58394b=a141_0x47e4,_0x3aab9f=await apiRequest(_0x58394b(0x1b2),{'method':_0x58394b(0x166),'body':_0xd14faa}),{id:_0x1b34c2,entity:_0x20b35f}=normalizeEntityWithIdResponse(_0x3aab9f['data']);if(!(_0x58394b(0x189)in _0x20b35f)&&_0x1b34c2)return getSqlQueryDetailById(_0x1b34c2);return normalizeSqlQueryEntity(_0x20b35f);}export async function updateSqlQuery(_0x8b483a){const _0x4fb50f=a141_0x47e4,_0x160f50=await apiRequest(_0x4fb50f(0x187),{'method':'POST','body':_0x8b483a}),{id:_0xcacba,entity:_0x3527de}=normalizeEntityWithIdResponse(_0x160f50[_0x4fb50f(0x129)]);if(!(_0x4fb50f(0x189)in _0x3527de)){if(_0x8b483a[_0x4fb50f(0x189)])return getSqlQueryDetail(_0x8b483a[_0x4fb50f(0x189)]);if(_0xcacba)return getSqlQueryDetailById(_0xcacba);}return normalizeSqlQueryEntity(_0x3527de);}export async function deleteSqlQuery(_0x217a79){const _0x319b46=a141_0x47e4;await apiRequest('/smartapi/custom/deleteUserCustomSql',{'method':_0x319b46(0x166),'body':_0x217a79});}export async function saveSqlQuery(_0x22b731){const _0x42dcb=a141_0x47e4,_0x42b012=await apiRequest(_0x42dcb(0x1b5),{'method':_0x42dcb(0x166),'body':_0x22b731});return _0x42b012[_0x42dcb(0x129)];}function normalizeSqlQueryEntity(_0x1e55ac){const _0x1a3cdf=a141_0x47e4;return{..._0x1e55ac,'id':Number(_0x1e55ac['id']),'dbId':_0x1e55ac[_0x1a3cdf(0x1c5)]==null?undefined:Number(_0x1e55ac[_0x1a3cdf(0x1c5)]),'version':_0x1e55ac[_0x1a3cdf(0x128)]==null?undefined:Number(_0x1e55ac[_0x1a3cdf(0x128)])};}export async function executeSql(_0x59cafe,_0x107c92,_0x1876a8){const _0x525eb3=a141_0x47e4,_0x7d045=await apiRequest(_0x525eb3(0x1ad),{'method':'POST','body':{'appCode':_0x59cafe,'sqlCode':_0x107c92,..._0x1876a8&&{'params':_0x1876a8}},'useRuntime':!![]});return _0x7d045[_0x525eb3(0x129)];}export async function executeDatasetDataOperation(_0x28611d,_0x393761,_0x2a3677,_0x4bc721={}){const _0xb3d16f=a141_0x47e4;try{const _0x3ce07b=await apiRequest('/api/'+_0x28611d+'/'+_0x393761+'/'+_0x2a3677,{'method':'POST','body':_0x4bc721,'useRuntime':!![]});return _0x3ce07b['data'];}catch(_0xd322cf){if(_0x2a3677===_0xb3d16f(0x1a2)&&_0xd322cf instanceof CliError&&_0xd322cf[_0xb3d16f(0x18a)]===_0xb3d16f(0x19d)&&_0x4bc721['id']!==undefined&&_0x4bc721['id']!==null&&_0x4bc721['id']!==''){const _0x184a80=await apiRequest(_0xb3d16f(0x19b)+_0x28611d+'/'+_0x393761+_0xb3d16f(0x153),{'method':_0xb3d16f(0x166),'body':{'where':{'id':{'$eq':_0x4bc721['id']}},'currentPage':0x1,'pageSize':0x1},'useRuntime':!![]}),_0x506c51=Array[_0xb3d16f(0x1b3)](_0x184a80[_0xb3d16f(0x129)]?.[_0xb3d16f(0x1ab)])?_0x184a80[_0xb3d16f(0x129)]['tableData']:[];return _0x506c51[0x0]??null;}throw _0xd322cf;}}export async function listDatasets(_0x56a095,_0x19aa89){const _0x2e10b7=a141_0x47e4,_0x30dce7={'appCode':_0x56a095,'deleted':![]};if(_0x19aa89?.[_0x2e10b7(0x18a)])_0x30dce7[_0x2e10b7(0x18a)]=_0x19aa89[_0x2e10b7(0x18a)];if(_0x19aa89?.[_0x2e10b7(0x14e)])_0x30dce7[_0x2e10b7(0x14e)]=_0x19aa89[_0x2e10b7(0x14e)];const _0x16810b=await apiRequest(_0x2e10b7(0x15c),{'method':'POST','body':_0x30dce7});return extractList(_0x16810b[_0x2e10b7(0x129)]);}export async function deleteDataset(_0x33ee6c,_0x46e6f6){const _0x1e0f34=a141_0x47e4;await apiRequest(_0x1e0f34(0x16c),{'method':'POST','body':{'appCode':_0x33ee6c,'datasetId':_0x46e6f6}});}export async function searchDatasets(_0x59a4f8,_0x15eb3e){const _0x1ba310=a141_0x47e4,_0x30dd32=await listDatasets(_0x59a4f8,{'name':_0x15eb3e}),_0x93f9c0=_0x15eb3e[_0x1ba310(0x168)](),_0x36f627=new Set(_0x30dd32[_0x1ba310(0x19c)](_0x498626=>_0x498626['id'])),_0x117c9f=_0x30dd32['filter'](_0x5a9c43=>_0x5a9c43['dbtableConfig']?.[_0x1ba310(0x167)]?.['toLowerCase']()['includes'](_0x93f9c0)||_0x5a9c43['description']?.['toLowerCase']()[_0x1ba310(0x142)](_0x93f9c0)),_0x3e5cc0=await listDatasets(_0x59a4f8,{'code':_0x15eb3e});for(const _0x109ca4 of _0x3e5cc0){!_0x36f627['has'](_0x109ca4['id'])&&(_0x30dd32['push'](_0x109ca4),_0x36f627['add'](_0x109ca4['id']));}return _0x30dd32;}export function normalizeDatasetOperations(_0x33258b){const _0x543c15=a141_0x47e4;if(Array[_0x543c15(0x1b3)](_0x33258b))return _0x33258b[_0x543c15(0x188)](_0x1222e0=>_0x1222e0!=null&&typeof _0x1222e0===_0x543c15(0x1c0));if(_0x33258b&&typeof _0x33258b===_0x543c15(0x1c0))return Object[_0x543c15(0x131)](_0x33258b)['filter'](([,_0x4f3598])=>_0x4f3598!=null&&typeof _0x4f3598===_0x543c15(0x1c0))[_0x543c15(0x19c)](([_0x2b00b6,_0x3bb56a])=>({..._0x3bb56a,'name':_0x3bb56a['name']??_0x3bb56a[_0x543c15(0x16e)]??_0x2b00b6}));return[];}export async function getDatasetDetail(_0x2831fb){const _0x311266=a141_0x47e4,_0x52b416=/^\d+$/[_0x311266(0x17b)](_0x2831fb)?'id':_0x311266(0x18a),_0x5f1553=await apiRequest(_0x311266(0x1bf)+_0x52b416+'='+_0x2831fb);return _0x5f1553[_0x311266(0x129)];}export async function updateDrivenData(_0x5a6214){const _0x5f3222=a141_0x47e4,_0x3cfbe4=await apiRequest('/smartapi/dataset/update-driven-data',{'method':_0x5f3222(0x166),'body':_0x5a6214});return _0x3cfbe4[_0x5f3222(0x129)];}export async function getDatasetOperations(_0xfae09e){const _0x28cbd5=a141_0x47e4,_0x225790=await getDatasetDetail(_0xfae09e),_0x1f0175=normalizeDatasetOperations(_0x225790[_0x28cbd5(0x15b)])[_0x28cbd5(0x19c)](_0x10248b=>({'name':_0x10248b[_0x28cbd5(0x14e)]||_0x10248b['operationName'],'displayName':_0x10248b['displayName']||_0x10248b[_0x28cbd5(0x14e)],'type':_0x10248b[_0x28cbd5(0x169)],'method':_0x10248b[_0x28cbd5(0x1a8)],'path':_0x10248b[_0x28cbd5(0x1ae)],'enabled':_0x10248b[_0x28cbd5(0x14d)]??!![],'requestFields':_0x10248b['requestFields'],'responseFields':_0x10248b[_0x28cbd5(0x16d)]}));return{'dataset':{'id':_0x225790['id']??_0x225790[_0x28cbd5(0x136)],'name':_0x225790['name'],'code':_0x225790['code']||_0x225790['modelCode'],'tableName':_0x225790['tableName']||_0x225790[_0x28cbd5(0x160)]?.['tableName']},'operations':_0x1f0175};}export async function getOperationDetail(_0x58bc8d,_0x57a319,_0x5dfc44){const _0x26b3d8=a141_0x47e4;let _0x16fffc=_0x57a319;if(!/^\d+$/[_0x26b3d8(0x17b)](_0x57a319)){const _0x180b10=await listDatasets(_0x58bc8d,{'code':_0x57a319}),_0x2e4f45=_0x180b10[_0x26b3d8(0x1b1)](_0xfab69=>_0xfab69[_0x26b3d8(0x18a)]===_0x57a319||String(_0xfab69['id'])===_0x57a319);if(!_0x2e4f45)throw CliErrors[_0x26b3d8(0x1c3)](_0x26b3d8(0x180)+_0x57a319);_0x16fffc=String(_0x2e4f45['id']);}const _0x11b079=await getDatasetDetail(_0x16fffc),_0x2c5a8b=normalizeDatasetOperations(_0x11b079[_0x26b3d8(0x15b)])['find'](_0x5de911=>(_0x5de911[_0x26b3d8(0x14e)]||_0x5de911['operationName'])===_0x5dfc44);if(!_0x2c5a8b)throw CliErrors[_0x26b3d8(0x1c3)]('Operation\x20\x22'+_0x5dfc44+_0x26b3d8(0x14b)+_0x57a319);return{'dataset':{'id':_0x11b079['id']??_0x11b079[_0x26b3d8(0x136)],'name':_0x11b079[_0x26b3d8(0x14e)],'code':_0x11b079[_0x26b3d8(0x18a)]||_0x11b079['modelCode'],'tableName':_0x11b079['tableName']||_0x11b079[_0x26b3d8(0x160)]?.['tableName']},'operation':_0x2c5a8b};}export async function startGenerateStandardPages(_0x3e5a10,_0xfe1d4,_0x2a3da0){const _0x136229=a141_0x47e4,_0x50e426=await apiRequest('/smartapi/lovrabet/dataset/'+_0xfe1d4+'/generate-standard-pages/start',{'method':_0x136229(0x166),'body':{'appCode':_0x3e5a10,..._0x2a3da0?.[_0x136229(0x1b7)]?{'clientOperationId':_0x2a3da0['clientOperationId']}:{}},'timeout':DEFAULT_REQUEST_TIMEOUT_MS});return _0x50e426[_0x136229(0x129)];}export async function getGenerateStandardPagesStatus(_0x226d29,_0x4deae8,_0x1e6c19){const _0x181d24=a141_0x47e4,_0x5c5a82=new URLSearchParams({'appCode':_0x226d29});_0x1e6c19[_0x181d24(0x18e)]&&_0x5c5a82['set'](_0x181d24(0x18e),_0x1e6c19[_0x181d24(0x18e)]);_0x1e6c19['clientOperationId']&&_0x5c5a82[_0x181d24(0x127)](_0x181d24(0x1b7),_0x1e6c19[_0x181d24(0x1b7)]);const _0x1e42c3=await apiRequest(_0x181d24(0x173)+_0x4deae8+_0x181d24(0x12c)+_0x5c5a82['toString']());return _0x1e42c3['data'];}export async function getStandardPageStatus(_0x3f0f48,_0x572e48){const _0x345504=a141_0x47e4,_0x133c7d=await apiRequest('/smartapi/lovrabet/dataset/'+_0x572e48+_0x345504(0x185)+encodeURIComponent(_0x3f0f48));return _0x133c7d['data'];}export async function tryGetStandardPageStatus(_0x4e103d,_0x7c4222){const _0x4e6bb2=a141_0x47e4;try{return await getStandardPageStatus(_0x4e103d,_0x7c4222);}catch(_0x55ef52){if(_0x55ef52 instanceof CliError&&_0x55ef52[_0x4e6bb2(0x18a)]==='api_error'&&/404|not found|non-json response/i['test'](_0x55ef52[_0x4e6bb2(0x1b4)]))return null;throw _0x55ef52;}}export async function syncStandardPages(_0x4d1cef,_0x536a94){const _0x3bb38d=a141_0x47e4,_0x579ee5=await apiRequest(_0x3bb38d(0x173)+_0x536a94+_0x3bb38d(0x1a1),{'method':_0x3bb38d(0x166),'body':{'appCode':_0x4d1cef}});return _0x579ee5['data'];}export async function getPageDetail(_0x515c68){const _0x13a7db=a141_0x47e4,_0x55e26d=await apiRequest(_0x13a7db(0x17e)+_0x515c68);if(!_0x55e26d['data'])throw CliErrors['validation'](_0x13a7db(0x146)+_0x515c68);return _0x55e26d['data'];}export async function updatePage(_0x30f4e7,_0x39c48e,_0x34a8df,_0x379d67){const _0x3235b7=a141_0x47e4,_0x26389c=await apiRequest(_0x3235b7(0x15f),{'method':'POST','body':{'appCode':_0x30f4e7,'pageId':_0x39c48e,'code':_0x34a8df,'datasetIds':_0x379d67}});return _0x26389c[_0x3235b7(0x129)];}export function generateSdkCode(_0x584fb8,_0x22a5d1,_0x738632){const _0x202ecc=a141_0x47e4,_0x1acd5b=_0x738632?.['includeImports']??!![],_0x28aad2=_0x202ecc(0x1a0)+_0x584fb8[_0x202ecc(0x18a)]?.[_0x202ecc(0x182)](/-/g,'_'),_0x4ec53d=_0x22a5d1[_0x202ecc(0x14e)]||_0x22a5d1['operationName']||_0x202ecc(0x188),_0x1902bf=[];_0x1acd5b&&_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x143),'',_0x202ecc(0x14f),'');_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x149)+_0x584fb8['name']+'\x20('+(_0x584fb8[_0x202ecc(0x167)]||_0x202ecc(0x1bc))+')');if(_0x4ec53d===_0x202ecc(0x188))_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x165)+_0x28aad2+_0x202ecc(0x1c4),_0x202ecc(0x12d),_0x202ecc(0x157),_0x202ecc(0x1a4),_0x202ecc(0x132));else{if(_0x4ec53d===_0x202ecc(0x1a2))_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x165)+_0x28aad2+'.getOne(id);');else{if(_0x4ec53d===_0x202ecc(0x135))_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x165)+_0x28aad2+_0x202ecc(0x199));else{if(_0x4ec53d===_0x202ecc(0x13c))_0x1902bf[_0x202ecc(0x13e)]('const\x20result\x20=\x20await\x20client.models.'+_0x28aad2+_0x202ecc(0x1a6));else _0x4ec53d===_0x202ecc(0x172)||_0x4ec53d==='remove'?_0x1902bf['push'](_0x202ecc(0x165)+_0x28aad2+_0x202ecc(0x1c6)):_0x1902bf[_0x202ecc(0x13e)](_0x202ecc(0x165)+_0x28aad2+'.'+_0x4ec53d+_0x202ecc(0x17c));}}}return _0x1902bf['join']('\x0a');}export function generateSqlCodeTemplate(_0x4263a6,_0x33afcc){const _0x19edd1=a141_0x47e4,_0x2cd331=_0x33afcc?.[_0x19edd1(0x18f)]??_0x19edd1(0x17a),_0x43fca5=_0x33afcc?.[_0x19edd1(0x184)]??!![],_0x42582e=[];return _0x42582e['push'](_0x19edd1(0x193)+_0x4263a6[_0x19edd1(0x13b)]+'\x20('+_0x4263a6[_0x19edd1(0x189)]+')'),_0x2cd331===_0x19edd1(0x17a)?(_0x43fca5&&_0x42582e[_0x19edd1(0x13e)](_0x19edd1(0x143),'',_0x19edd1(0x14f),''),_0x42582e['push'](_0x19edd1(0x133),_0x19edd1(0x130)+_0x4263a6[_0x19edd1(0x189)]+'\x27,',_0x19edd1(0x179),_0x19edd1(0x132),_0x19edd1(0x12f),_0x19edd1(0x163))):_0x42582e[_0x19edd1(0x13e)]('//\x20BFF\x20context:\x20context.client.sql.execute\x20returns\x20rows\x20directly','export\x20default\x20async\x20function\x20handler(params,\x20context)\x20{','\x20\x20const\x20rows\x20=\x20await\x20context.client.sql.execute({',_0x19edd1(0x1b6)+_0x4263a6[_0x19edd1(0x189)]+'\x27,','\x20\x20\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},',_0x19edd1(0x155),_0x19edd1(0x181),'}'),_0x42582e[_0x19edd1(0x194)]('\x0a');}export async function getErConfig(_0xbeab05,_0x41233e){const _0x27d538=a141_0x47e4,_0x3298f9=await apiRequest(_0x27d538(0x14c),{'method':_0x27d538(0x166),'body':{'appCode':_0xbeab05,'dblinkId':_0x41233e}});return _0x3298f9[_0x27d538(0x129)];}export async function createErRelation(_0x2af9fb){const _0x5de6d2=a141_0x47e4,_0x23e3da=await apiRequest(_0x5de6d2(0x198),{'method':_0x5de6d2(0x166),'body':_0x2af9fb});return _0x23e3da[_0x5de6d2(0x129)];}export async function updateErRelation(_0xdd923b){const _0x10a7dc=a141_0x47e4,_0x154e16=await apiRequest(_0x10a7dc(0x156),{'method':'POST','body':_0xdd923b});return _0x154e16[_0x10a7dc(0x129)];}export async function deleteErRelation(_0x8c1c6a){const _0x427d21=a141_0x47e4,_0x45a4d1=await apiRequest(_0x427d21(0x1af),{'method':_0x427d21(0x166),'body':_0x8c1c6a});return _0x45a4d1[_0x427d21(0x129)];}function buildQuery(_0x1bdccc){const _0x1cd371=a141_0x47e4,_0x41e38e=new URLSearchParams();for(const [_0x334f99,_0x524490]of Object['entries'](_0x1bdccc)){if(_0x524490===undefined||_0x524490==='')continue;_0x41e38e[_0x1cd371(0x127)](_0x334f99,String(_0x524490));}const _0x2e66af=_0x41e38e[_0x1cd371(0x13f)]();return _0x2e66af?'?'+_0x2e66af:'';}export async function listDbLinks(_0x5aceb6,_0xcf6a5e){const _0x13df3a=a141_0x47e4,_0x450e80=await apiRequest('/smartapi/dblink/getList',{'method':_0x13df3a(0x166),'body':{'appCode':_0x5aceb6,'currentPage':_0xcf6a5e?.[_0x13df3a(0x12b)]??0x1,'pageSize':_0xcf6a5e?.['pageSize']??0x64}});return{'items':extractList(_0x450e80[_0x13df3a(0x129)]),'paging':extractPaging(_0x450e80['data'])};}export async function getDbLinkInfo(_0xd63943){const _0x54d167=a141_0x47e4,_0x3a069e=await apiRequest(_0x54d167(0x13d)+buildQuery({'id':_0xd63943}));return _0x3a069e['data'];}export async function createDbLink(_0x522da2){const _0x4713bf=a141_0x47e4,_0x3d18f7=await apiRequest('/smartapi/dblink/create',{'method':_0x4713bf(0x166),'body':_0x522da2});return _0x3d18f7[_0x4713bf(0x129)];}export async function updateDbLink(_0x3c0a6c){const _0x22576b=a141_0x47e4,_0x54e737=await apiRequest(_0x22576b(0x17d),{'method':_0x22576b(0x166),'body':_0x3c0a6c});return _0x54e737['data'];}export async function deleteDbLink(_0x1ad219){const _0x188c8c=a141_0x47e4;await apiRequest(_0x188c8c(0x17f),{'method':'POST','body':{'id':_0x1ad219}});}export async function testDbLinkConnect(_0xd06edd){const _0x56729=a141_0x47e4,_0x411091=await apiRequest(_0x56729(0x140)+buildQuery({'id':_0xd06edd}));return _0x411091['data'];}export async function startDbAnalysis(_0x579bc1,_0x5b1e46){const _0x2ae53b=a141_0x47e4,_0x156a3f=await apiRequest(_0x2ae53b(0x19f),{'method':_0x2ae53b(0x166),'body':{'dbLinkId':_0x579bc1,..._0x5b1e46&&_0x5b1e46[_0x2ae53b(0x176)]>0x0?{'tableNames':_0x5b1e46}:{}}}),_0x57b239=_0x156a3f[_0x2ae53b(0x129)];if(typeof _0x57b239===_0x2ae53b(0x177))return _0x57b239;if(_0x57b239&&typeof _0x57b239===_0x2ae53b(0x1c0)&&typeof _0x57b239['planId']===_0x2ae53b(0x177))return _0x57b239[_0x2ae53b(0x170)];return _0x57b239!=null?String(_0x57b239):'';}export async function cancelDbAnalysis(_0x50bad1){const _0x522082=a141_0x47e4;await apiRequest(_0x522082(0x178)+buildQuery({'planId':_0x50bad1}),{'method':_0x522082(0x166)});}export async function getDbAnalysisStatus(_0x426a98){const _0x4b6db0=a141_0x47e4,_0x593c5e=await apiRequest(_0x4b6db0(0x152)+encodeURIComponent(_0x426a98));return _0x593c5e[_0x4b6db0(0x129)];}export async function getDbAllTableList(_0x4b821b,_0x57b508){const _0x4769ca=a141_0x47e4,_0x2429ae=await apiRequest(_0x4769ca(0x195)+buildQuery({'appCode':_0x4b821b,'dbLinkId':_0x57b508})),_0x3c0a8e=_0x2429ae[_0x4769ca(0x129)];if(Array[_0x4769ca(0x1b3)](_0x3c0a8e))return _0x3c0a8e;return extractList(_0x3c0a8e);}export async function getDbTableDiff(_0x543ea6,_0x530302,_0xe7058){const _0x5bbdb5=a141_0x47e4,_0x1c0986=await apiRequest(_0x5bbdb5(0x16f)+buildQuery({'appCode':_0x543ea6,'dbLinkId':_0x530302,'pageIndex':_0xe7058?.['pageIndex']??0x1,'pageSize':_0xe7058?.[_0x5bbdb5(0x183)]??0x14,'tableName':_0xe7058?.[_0x5bbdb5(0x167)]})),_0x4ee425=_0x1c0986['data'];return{'totalCount':_0x4ee425?.[_0x5bbdb5(0x16b)]??0x0,'tableList':Array[_0x5bbdb5(0x1b3)](_0x4ee425?.[_0x5bbdb5(0x144)])?_0x4ee425[_0x5bbdb5(0x144)]:[]};}const REMOTE_APP_PAGE_SIZE=0xc8;export async function listRemoteApps(){const _0x141818=a141_0x47e4,_0x23e116=await apiRequest('/smartapi/app/getList',{'method':_0x141818(0x166),'body':{'currentPage':0x1,'pageSize':REMOTE_APP_PAGE_SIZE}}),_0x1f10a4=extractList(_0x23e116[_0x141818(0x129)]),_0x3bab56=extractPaging(_0x23e116[_0x141818(0x129)]);return _0x3bab56&&_0x3bab56[_0x141818(0x16b)]>REMOTE_APP_PAGE_SIZE&&console['warn'](_0x141818(0x12a)+REMOTE_APP_PAGE_SIZE+'\x20of\x20'+_0x3bab56[_0x141818(0x16b)]+_0x141818(0x159)+_0x141818(0x1a3)),_0x1f10a4;}
1
+ (function(_0x36779e,_0x4dbde4){const _0x11bc43=a142_0x41ef,_0x50256b=_0x36779e();while(!![]){try{const _0x43ede8=-parseInt(_0x11bc43(0x16d))/0x1+-parseInt(_0x11bc43(0x159))/0x2*(-parseInt(_0x11bc43(0x128))/0x3)+parseInt(_0x11bc43(0x1b0))/0x4*(-parseInt(_0x11bc43(0x170))/0x5)+-parseInt(_0x11bc43(0x144))/0x6*(-parseInt(_0x11bc43(0x1a3))/0x7)+-parseInt(_0x11bc43(0x157))/0x8*(-parseInt(_0x11bc43(0x1a4))/0x9)+parseInt(_0x11bc43(0x13a))/0xa+-parseInt(_0x11bc43(0x15f))/0xb;if(_0x43ede8===_0x4dbde4)break;else _0x50256b['push'](_0x50256b['shift']());}catch(_0x20bce9){_0x50256b['push'](_0x50256b['shift']());}}}(a142_0x2866,0x326e5));import{getCookie}from'../auth/get-cookie.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{CliError,CliErrors}from'../errors.js';function a142_0x41ef(_0x27ee79,_0x4d1412){_0x27ee79=_0x27ee79-0x127;const _0x286668=a142_0x2866();let _0x41ef78=_0x286668[_0x27ee79];return _0x41ef78;}import{extractList,extractPaging}from'../framework/response.js';import{normalizeEntityWithIdResponse}from'../utils/entity-with-id.js';let _activeCookie;export function setActiveCookie(_0x30e331){_activeCookie=_0x30e331||undefined;}export function clearActiveCookie(){_activeCookie=undefined;}const DEFAULT_REQUEST_TIMEOUT_MS=0x7530;function createFetchFailureError(_0x6b26f6,_0x19a07b){const _0x2aa7d2=a142_0x41ef,_0x4b3d8f=_0x19a07b instanceof Error?_0x19a07b[_0x2aa7d2(0x1c5)]:String(_0x19a07b);return CliErrors['apiError'](_0x2aa7d2(0x1b9)+_0x6b26f6+(_0x4b3d8f?'\x20('+_0x4b3d8f+')':''),_0x2aa7d2(0x19a));}async function apiRequest(_0x1e38ff,_0x5a604b={}){const _0x5018be=a142_0x41ef,{method:method='GET',body:_0xffffdc,headers:headers={},timeout:timeout=DEFAULT_REQUEST_TIMEOUT_MS,useRuntime:useRuntime=![]}=_0x5a604b,_0x4d3a38=useRuntime?getRuntimeDomain():getApiDomain(),_0x3145a2=_activeCookie||getCookie(),_0xf3daa0=''+_0x4d3a38+_0x1e38ff,_0x4f0db3=new AbortController(),_0xbb6109=setTimeout(()=>_0x4f0db3[_0x5018be(0x193)](),timeout);try{const _0x1e17fc=await fetch(_0xf3daa0,{'method':method,'headers':{'Content-Type':'application/json','Cookie':_0x3145a2,'X-Invoke-Source':_0x5018be(0x172),...headers},'body':_0xffffdc?JSON['stringify'](_0xffffdc):undefined,'signal':_0x4f0db3[_0x5018be(0x14c)]});let _0x4f7df3;try{_0x4f7df3=await _0x1e17fc['json']();}catch{throw CliErrors[_0x5018be(0x1a2)](_0x5018be(0x136)+_0x1e17fc[_0x5018be(0x1b8)]+')',_0x1e17fc['status']>=0x190?_0x5018be(0x15e):undefined);}if(!_0x1e17fc['ok']||_0x4f7df3[_0x5018be(0x137)]===![])throw CliErrors['apiError'](_0x4f7df3['errorMsg']||_0x4f7df3[_0x5018be(0x1c5)]||_0x5018be(0x17c)+_0x1e17fc['status'],_0x4f7df3[_0x5018be(0x1b7)]?_0x5018be(0x197)+_0x4f7df3[_0x5018be(0x1b7)]:undefined);return _0x4f7df3;}catch(_0x203428){if(_0x203428 instanceof CliError)throw _0x203428;if(_0x203428 instanceof Error&&_0x203428[_0x5018be(0x152)]===_0x5018be(0x19c))throw CliErrors[_0x5018be(0x1a2)](_0x5018be(0x18f)+_0xf3daa0);throw createFetchFailureError(_0xf3daa0,_0x203428);}finally{clearTimeout(_0xbb6109);}}function isAuthFailure(_0x56b93d){const _0x4018b1=a142_0x41ef,_0x32040f=_0x56b93d[_0x4018b1(0x167)]||_0x56b93d['message']||_0x56b93d['data']?.[_0x4018b1(0x1c5)]||_0x56b93d[_0x4018b1(0x1c4)]||_0x56b93d['error']||'';return _0x56b93d['errorCode']==='UNAUTHORIZED'||_0x56b93d[_0x4018b1(0x14e)]===0x191||_0x56b93d[_0x4018b1(0x14e)]==='401'||_0x32040f['includes'](_0x4018b1(0x1b4))||_0x32040f[_0x4018b1(0x1ab)](_0x4018b1(0x165))||_0x32040f[_0x4018b1(0x1ab)]('登录')||_0x32040f[_0x4018b1(0x1ab)]('认证');}export async function platformFetch(_0xe3850f,_0x162039){const _0x146781=a142_0x41ef;let _0x28585b;try{_0x28585b=await fetch(_0xe3850f,{'method':_0x162039['method']??'GET','headers':{'Content-Type':_0x146781(0x1bc),'Cookie':_0x162039[_0x146781(0x189)],'X-Invoke-Source':'cli:rabetbase'},..._0x162039[_0x146781(0x160)]&&{'body':JSON[_0x146781(0x1ae)](_0x162039[_0x146781(0x160)])}});}catch(_0x3baae0){throw createFetchFailureError(_0xe3850f,_0x3baae0);}if(!_0x28585b['ok']){if(_0x28585b[_0x146781(0x1b8)]===0x191)throw CliErrors[_0x146781(0x143)]();throw CliErrors['apiError'](_0x162039[_0x146781(0x199)]+_0x146781(0x164)+_0x28585b[_0x146781(0x1b8)]);}const _0x25488d=await _0x28585b[_0x146781(0x192)]();if(_0x25488d[_0x146781(0x137)]===![]){if(isAuthFailure(_0x25488d))throw CliErrors[_0x146781(0x143)]();throw CliErrors['apiError'](_0x25488d['errorMsg']||_0x25488d['message']||_0x162039[_0x146781(0x199)]+'\x20failed');}return _0x25488d[_0x146781(0x191)];}export async function listBffScripts(_0x135716,_0x4d086e,_0x232287){const _0x4c22e5=a142_0x41ef;let _0xe7c4a7=_0x4c22e5(0x181)+_0x135716;if(_0x4d086e)_0xe7c4a7+=_0x4c22e5(0x166)+_0x4d086e;const _0x56f29a=await apiRequest(_0xe7c4a7);let _0xbace06=extractList(_0x56f29a[_0x4c22e5(0x191)]);if(_0x232287?.['scriptName']){const _0x39c816=_0x232287[_0x4c22e5(0x15b)][_0x4c22e5(0x19b)]();_0xbace06=_0xbace06[_0x4c22e5(0x12b)](_0x22ddbc=>_0x22ddbc[_0x4c22e5(0x153)]?.[_0x4c22e5(0x19b)]()[_0x4c22e5(0x1ab)](_0x39c816)||_0x22ddbc[_0x4c22e5(0x12e)]?.['toLowerCase']()[_0x4c22e5(0x1ab)](_0x39c816));}return _0xbace06;}export async function getBffScriptInfo(_0x1a0d34){const _0x27ad20=a142_0x41ef,_0x8260a0=await apiRequest(_0x27ad20(0x186)+_0x1a0d34);if(!_0x8260a0['data'])throw CliErrors[_0x27ad20(0x183)](_0x27ad20(0x151)+_0x1a0d34);return _0x8260a0[_0x27ad20(0x191)];}export async function saveBffScript(_0x13c128){const _0x39bab9=a142_0x41ef,_0x44359a=await apiRequest(_0x39bab9(0x16e),{'method':_0x39bab9(0x177),'body':_0x13c128}),{id:_0x4ebb19,entity:_0x2f4384}=normalizeEntityWithIdResponse(_0x44359a[_0x39bab9(0x191)]);if(_0x4ebb19!==undefined){const _0x3ca1bf=typeof _0x2f4384[_0x39bab9(0x153)]===_0x39bab9(0x162)||typeof _0x2f4384[_0x39bab9(0x1b5)]==='string'?_0x2f4384:undefined;return{'id':_0x4ebb19,'script':_0x3ca1bf};}throw CliErrors[_0x39bab9(0x1a2)]('BFF\x20save\x20returned\x20no\x20valid\x20id');}export async function deleteBffScript(_0x5c5765){const _0x2e0a50=a142_0x41ef;await apiRequest(_0x2e0a50(0x15d),{'method':_0x2e0a50(0x177),'body':{'id':_0x5c5765}});}export async function getBffScriptStatistics(_0x24ebd1){const _0x4b9cb8=await apiRequest('/api/management/library/scripts/statistics?appCode='+_0x24ebd1);return extractList(_0x4b9cb8['data']);}export async function clearBffScriptCache(){const _0x4e47e9=a142_0x41ef,_0x1aa551=await apiRequest(_0x4e47e9(0x1ba),{'method':'POST','useRuntime':!![]});return typeof _0x1aa551['data']===_0x4e47e9(0x162)?_0x1aa551[_0x4e47e9(0x191)]:'';}export async function listBffDatasetOperations(_0x3c93c7,_0x5dec9f){const _0x6fcd3b=a142_0x41ef,_0x3a643b=await apiRequest(_0x6fcd3b(0x176),{'method':_0x6fcd3b(0x177),'body':{'appCode':_0x3c93c7,'datasetId':_0x5dec9f}});return _0x3a643b[_0x6fcd3b(0x191)];}function a142_0x2866(){const _0x2c3caf=['/standard-page-status?appCode=','currentPage','clientOperationId','signal','dbId','code','/smartapi/custom/queryUserCustomSqlList','method','BFF\x20script\x20not\x20found:\x20id=','name','functionName','(/*\x20params\x20*/);','/api/node-toolbox/sql/save','tableName','88HHQPaI','\x20\x20\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},','3400daUxdZ','length','scriptName','.getOne(id);','/api/management/library/scripts/delete','Check\x20your\x20auth\x20cookie\x20and\x20try\x20again.','6733001mUpRJa','body','delete','string','sdk','\x20failed,\x20HTTP\x20','Unauthorized','&type=','errorMsg','const\x20data\x20=\x20await\x20client.sql.execute({','totalCount','/smartapi/dataset/get-driven-data?','api_error','/smartapi/db-analysis/start','235786tgHNkb','/api/management/library/scripts/save','/smartapi/db-analysis/jobs/cancel','5bgmcKK','\x20\x20const\x20rows\x20=\x20await\x20context.client.sql.execute({','cli:rabetbase','/generate-standard-pages/status?','join','pageSize','/smartapi/dataset/get-dataset-operation','POST','\x20\x20pageSize:\x2020,','\x20\x20sqlCode:\x20\x27','sqlName','dbtableConfig','API\x20error:\x20','export\x20default\x20async\x20function\x20handler(params,\x20context)\x20{','object','modelCode','\x20apps.\x20','/api/management/library/scripts/list?appCode=','entries','validation','const\x20result\x20=\x20await\x20client.models.','test','/api/management/library/scripts/info?id=','/smartapi/dblink/create','/smartapi/dataset/get-dataset-list','cookie','replace','.create({\x20/*\x20fields\x20*/\x20});','/smartapi/db-analysis/status/','/smartapi/custom/getUserCustomSql','table','Request\x20timeout:\x20','\x20\x20currentPage:\x201,','data','json','abort','/smartapi/dblink/getList','/smartapi/dblink/getTableDiffV2ByPage','set','API\x20error\x20code:\x20','displayName','label','Check\x20network\x20connectivity\x20and\x20try\x20again.','toLowerCase','AbortError','dataset_','\x20\x20return\x20rows;','remove','/smartapi/custom/updateUserCustomSql','/api/','apiError','4081GKFABR','256860xaXWbU','find','enabled','.update(id,\x20{\x20/*\x20fields\x20*/\x20});','/smartapi/question/er-config/erCreate','planId','/smartapi/question/er-config/update-single','includes','/smartapi/dblink/update','modelId','stringify','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','600388xcohkc','?sqlCode=','.filter({','/smartapi/lovrabet/dataset/','401','scriptType','/smartapi/app/getList','errorCode','status','Request\x20failed:\x20','/api/management/script/cache/clear','/smartapi/dataset/update-driven-data','application/json','/smartapi/question/er-config','Operation\x20\x22','operationName','operationId','Use\x20the\x20platform\x20console\x20to\x20see\x20all.','push','Warning:\x20showing\x20first\x20','errorMessage','message','includeImports','/sync-to-pages','tableData','546JilRno','version','/smartapi/custom/deleteUserCustomSql','filter','sqlCode','update','description','\x22\x20not\x20found\x20in\x20dataset\x20','has','\x20of\x20','/smartapi/dblink/delete','/smartapi/dblink/getAllTableList','\x20\x20where:\x20{},','});','API\x20returned\x20non-JSON\x20response\x20(HTTP\x20','success','operations','tableList','2442250fTQdcQ','SQL\x20query\x20not\x20found:\x20','warn','getOne','map','.remove(id);','//\x20SQL:\x20','target','isArray','authRequired','3468nHFSzS','toString','/smartapi/dblink/getOne','/smartapi/custom/saveUserCustomSql','pageIndex'];a142_0x2866=function(){return _0x2c3caf;};return a142_0x2866();}export async function listSqlQueries(_0x3df4ff,_0x4d0f9e){const _0x2bc336=a142_0x41ef,_0x128ced=await apiRequest(_0x2bc336(0x14f),{'method':_0x2bc336(0x177),'body':{'appCode':_0x3df4ff,'currentPage':_0x4d0f9e?.[_0x2bc336(0x14a)]??0x1,'pageSize':_0x4d0f9e?.[_0x2bc336(0x175)]??0x32,'sqlCode':_0x4d0f9e?.[_0x2bc336(0x12c)],'sqlName':_0x4d0f9e?.[_0x2bc336(0x17a)]}});return _0x128ced['data'];}export async function getSqlQueryInfo(_0x31c48d,_0x30e3bc){const _0x2d434c=a142_0x41ef,_0x51890f=await listSqlQueries(_0x31c48d,{'sqlCode':_0x30e3bc}),_0x336d2c=_0x51890f[_0x2d434c(0x127)]?.[0x0];if(!_0x336d2c)throw CliErrors['validation'](_0x2d434c(0x13b)+_0x30e3bc);return _0x336d2c;}export async function getSqlQueryDetail(_0x5405b9){const _0x13a992=a142_0x41ef,_0x53e7b2=await apiRequest(_0x13a992(0x18d)+(_0x13a992(0x1b1)+encodeURIComponent(_0x5405b9)));if(!_0x53e7b2[_0x13a992(0x191)])throw CliErrors['validation'](_0x13a992(0x13b)+_0x5405b9);return _0x53e7b2['data'];}export async function getSqlQueryDetailById(_0x3df3a2){const _0x32d79d=a142_0x41ef,_0x40a430=await apiRequest('/smartapi/custom/getUserCustomSql?id='+_0x3df3a2);if(!_0x40a430['data'])throw CliErrors[_0x32d79d(0x183)]('SQL\x20query\x20not\x20found:\x20id='+_0x3df3a2);return _0x40a430[_0x32d79d(0x191)];}export async function createSqlQuery(_0xda903){const _0x139550=a142_0x41ef,_0x1ab0b8=await apiRequest(_0x139550(0x147),{'method':_0x139550(0x177),'body':_0xda903}),{id:_0x30d155,entity:_0x164123}=normalizeEntityWithIdResponse(_0x1ab0b8[_0x139550(0x191)]);if(!(_0x139550(0x12c)in _0x164123)&&_0x30d155)return getSqlQueryDetailById(_0x30d155);return normalizeSqlQueryEntity(_0x164123);}export async function updateSqlQuery(_0xed7a3){const _0x1b5110=a142_0x41ef,_0x5c96bf=await apiRequest(_0x1b5110(0x1a0),{'method':_0x1b5110(0x177),'body':_0xed7a3}),{id:_0xbf7d46,entity:_0x388d0f}=normalizeEntityWithIdResponse(_0x5c96bf['data']);if(!(_0x1b5110(0x12c)in _0x388d0f)){if(_0xed7a3[_0x1b5110(0x12c)])return getSqlQueryDetail(_0xed7a3[_0x1b5110(0x12c)]);if(_0xbf7d46)return getSqlQueryDetailById(_0xbf7d46);}return normalizeSqlQueryEntity(_0x388d0f);}export async function deleteSqlQuery(_0x777935){const _0x47e158=a142_0x41ef;await apiRequest(_0x47e158(0x12a),{'method':'POST','body':_0x777935});}export async function saveSqlQuery(_0x212f18){const _0x2878af=a142_0x41ef,_0x5d5aec=await apiRequest(_0x2878af(0x155),{'method':_0x2878af(0x177),'body':_0x212f18});return _0x5d5aec[_0x2878af(0x191)];}function normalizeSqlQueryEntity(_0x3e9664){const _0x48cc47=a142_0x41ef;return{..._0x3e9664,'id':Number(_0x3e9664['id']),'dbId':_0x3e9664[_0x48cc47(0x14d)]==null?undefined:Number(_0x3e9664[_0x48cc47(0x14d)]),'version':_0x3e9664[_0x48cc47(0x129)]==null?undefined:Number(_0x3e9664['version'])};}export async function executeSql(_0x1b4521,_0x4cb596,_0x40bc29){const _0x1960ce=await apiRequest('/api/custom/executeSql',{'method':'POST','body':{'appCode':_0x1b4521,'sqlCode':_0x4cb596,..._0x40bc29&&{'params':_0x40bc29}},'useRuntime':!![]});return _0x1960ce['data'];}export async function executeDatasetDataOperation(_0x2eaa02,_0xaf6ac9,_0xebd59f,_0x8ede0a={}){const _0x55b41c=a142_0x41ef;try{const _0x48dd78=await apiRequest(_0x55b41c(0x1a1)+_0x2eaa02+'/'+_0xaf6ac9+'/'+_0xebd59f,{'method':_0x55b41c(0x177),'body':_0x8ede0a,'useRuntime':!![]});return _0x48dd78[_0x55b41c(0x191)];}catch(_0x51aa38){if(_0xebd59f===_0x55b41c(0x13d)&&_0x51aa38 instanceof CliError&&_0x51aa38['code']===_0x55b41c(0x16b)&&_0x8ede0a['id']!==undefined&&_0x8ede0a['id']!==null&&_0x8ede0a['id']!==''){const _0x108274=await apiRequest('/api/'+_0x2eaa02+'/'+_0xaf6ac9+'/filter',{'method':_0x55b41c(0x177),'body':{'where':{'id':{'$eq':_0x8ede0a['id']}},'currentPage':0x1,'pageSize':0x1},'useRuntime':!![]}),_0x44079b=Array[_0x55b41c(0x142)](_0x108274[_0x55b41c(0x191)]?.['tableData'])?_0x108274[_0x55b41c(0x191)][_0x55b41c(0x127)]:[];return _0x44079b[0x0]??null;}throw _0x51aa38;}}export async function listDatasets(_0x50fd1e,_0x23a520){const _0x8eba30=a142_0x41ef,_0xd9c22e={'appCode':_0x50fd1e,'deleted':![]};if(_0x23a520?.[_0x8eba30(0x14e)])_0xd9c22e[_0x8eba30(0x14e)]=_0x23a520[_0x8eba30(0x14e)];if(_0x23a520?.[_0x8eba30(0x152)])_0xd9c22e[_0x8eba30(0x152)]=_0x23a520[_0x8eba30(0x152)];const _0x321424=await apiRequest(_0x8eba30(0x188),{'method':'POST','body':_0xd9c22e});return extractList(_0x321424['data']);}export async function deleteDataset(_0x1de0b2,_0x41fa7e){const _0x1d873d=a142_0x41ef;await apiRequest('/smartapi/dataset/delete-dataset',{'method':_0x1d873d(0x177),'body':{'appCode':_0x1de0b2,'datasetId':_0x41fa7e}});}export async function searchDatasets(_0x2c2260,_0x3eae04){const _0x1a3e17=a142_0x41ef,_0x4e0ffa=await listDatasets(_0x2c2260,{'name':_0x3eae04}),_0xfcb6=_0x3eae04['toLowerCase'](),_0x1598c5=new Set(_0x4e0ffa[_0x1a3e17(0x13e)](_0x34d44c=>_0x34d44c['id'])),_0x3d9e90=_0x4e0ffa[_0x1a3e17(0x12b)](_0x36af77=>_0x36af77[_0x1a3e17(0x17b)]?.[_0x1a3e17(0x156)]?.[_0x1a3e17(0x19b)]()[_0x1a3e17(0x1ab)](_0xfcb6)||_0x36af77[_0x1a3e17(0x12e)]?.['toLowerCase']()[_0x1a3e17(0x1ab)](_0xfcb6)),_0x290750=await listDatasets(_0x2c2260,{'code':_0x3eae04});for(const _0x36fbe4 of _0x290750){!_0x1598c5[_0x1a3e17(0x130)](_0x36fbe4['id'])&&(_0x4e0ffa[_0x1a3e17(0x1c2)](_0x36fbe4),_0x1598c5['add'](_0x36fbe4['id']));}return _0x4e0ffa;}export function normalizeDatasetOperations(_0x26641d){const _0x275efd=a142_0x41ef;if(Array[_0x275efd(0x142)](_0x26641d))return _0x26641d[_0x275efd(0x12b)](_0x4f0cf9=>_0x4f0cf9!=null&&typeof _0x4f0cf9===_0x275efd(0x17e));if(_0x26641d&&typeof _0x26641d===_0x275efd(0x17e))return Object[_0x275efd(0x182)](_0x26641d)[_0x275efd(0x12b)](([,_0x1edbca])=>_0x1edbca!=null&&typeof _0x1edbca===_0x275efd(0x17e))['map'](([_0x38e40e,_0x1e27f6])=>({..._0x1e27f6,'name':_0x1e27f6[_0x275efd(0x152)]??_0x1e27f6[_0x275efd(0x1bf)]??_0x38e40e}));return[];}export async function getDatasetDetail(_0x5da536){const _0x4a2a1a=a142_0x41ef,_0x54a86a=/^\d+$/[_0x4a2a1a(0x185)](_0x5da536)?'id':_0x4a2a1a(0x14e),_0x1b4005=await apiRequest(_0x4a2a1a(0x16a)+_0x54a86a+'='+_0x5da536);return _0x1b4005[_0x4a2a1a(0x191)];}export async function updateDrivenData(_0x20f5ce){const _0x5333ff=a142_0x41ef,_0x59a991=await apiRequest(_0x5333ff(0x1bb),{'method':'POST','body':_0x20f5ce});return _0x59a991[_0x5333ff(0x191)];}export async function getDatasetOperations(_0x2492f4){const _0x5d66ca=a142_0x41ef,_0x3fb919=await getDatasetDetail(_0x2492f4),_0x22e17e=normalizeDatasetOperations(_0x3fb919[_0x5d66ca(0x138)])[_0x5d66ca(0x13e)](_0xa1afd5=>({'name':_0xa1afd5[_0x5d66ca(0x152)]||_0xa1afd5[_0x5d66ca(0x1bf)],'displayName':_0xa1afd5[_0x5d66ca(0x198)]||_0xa1afd5[_0x5d66ca(0x152)],'type':_0xa1afd5['type'],'method':_0xa1afd5[_0x5d66ca(0x150)],'path':_0xa1afd5['path'],'enabled':_0xa1afd5[_0x5d66ca(0x1a6)]??!![],'requestFields':_0xa1afd5['requestFields'],'responseFields':_0xa1afd5['responseFields']}));return{'dataset':{'id':_0x3fb919['id']??_0x3fb919[_0x5d66ca(0x1ad)],'name':_0x3fb919[_0x5d66ca(0x152)],'code':_0x3fb919[_0x5d66ca(0x14e)]||_0x3fb919[_0x5d66ca(0x17f)],'tableName':_0x3fb919[_0x5d66ca(0x156)]||_0x3fb919[_0x5d66ca(0x17b)]?.[_0x5d66ca(0x156)]},'operations':_0x22e17e};}export async function getOperationDetail(_0x53ccf4,_0x3a7574,_0x1319ef){const _0x622b8f=a142_0x41ef;let _0x245d95=_0x3a7574;if(!/^\d+$/[_0x622b8f(0x185)](_0x3a7574)){const _0x5ecbee=await listDatasets(_0x53ccf4,{'code':_0x3a7574}),_0x24c640=_0x5ecbee['find'](_0xe9ae3d=>_0xe9ae3d[_0x622b8f(0x14e)]===_0x3a7574||String(_0xe9ae3d['id'])===_0x3a7574);if(!_0x24c640)throw CliErrors[_0x622b8f(0x183)]('Dataset\x20not\x20found:\x20'+_0x3a7574);_0x245d95=String(_0x24c640['id']);}const _0x5b31cb=await getDatasetDetail(_0x245d95),_0x36cfd9=normalizeDatasetOperations(_0x5b31cb[_0x622b8f(0x138)])[_0x622b8f(0x1a5)](_0x3dc537=>(_0x3dc537[_0x622b8f(0x152)]||_0x3dc537[_0x622b8f(0x1bf)])===_0x1319ef);if(!_0x36cfd9)throw CliErrors[_0x622b8f(0x183)](_0x622b8f(0x1be)+_0x1319ef+_0x622b8f(0x12f)+_0x3a7574);return{'dataset':{'id':_0x5b31cb['id']??_0x5b31cb['modelId'],'name':_0x5b31cb[_0x622b8f(0x152)],'code':_0x5b31cb[_0x622b8f(0x14e)]||_0x5b31cb[_0x622b8f(0x17f)],'tableName':_0x5b31cb[_0x622b8f(0x156)]||_0x5b31cb[_0x622b8f(0x17b)]?.[_0x622b8f(0x156)]},'operation':_0x36cfd9};}export async function startGenerateStandardPages(_0x1735e5,_0x312b42,_0x56337b){const _0x348447=a142_0x41ef,_0x19450b=await apiRequest(_0x348447(0x1b3)+_0x312b42+'/generate-standard-pages/start',{'method':'POST','body':{'appCode':_0x1735e5,..._0x56337b?.[_0x348447(0x14b)]?{'clientOperationId':_0x56337b[_0x348447(0x14b)]}:{}},'timeout':DEFAULT_REQUEST_TIMEOUT_MS});return _0x19450b[_0x348447(0x191)];}export async function getGenerateStandardPagesStatus(_0x28fa2c,_0x548d87,_0x12cde7){const _0x26bc97=a142_0x41ef,_0x3e8005=new URLSearchParams({'appCode':_0x28fa2c});_0x12cde7[_0x26bc97(0x1c0)]&&_0x3e8005['set'](_0x26bc97(0x1c0),_0x12cde7[_0x26bc97(0x1c0)]);_0x12cde7[_0x26bc97(0x14b)]&&_0x3e8005[_0x26bc97(0x196)](_0x26bc97(0x14b),_0x12cde7['clientOperationId']);const _0x54aab5=await apiRequest(_0x26bc97(0x1b3)+_0x548d87+_0x26bc97(0x173)+_0x3e8005[_0x26bc97(0x145)]());return _0x54aab5[_0x26bc97(0x191)];}export async function getStandardPageStatus(_0x24446f,_0x353d03){const _0x50c197=a142_0x41ef,_0x49297f=await apiRequest(_0x50c197(0x1b3)+_0x353d03+_0x50c197(0x149)+encodeURIComponent(_0x24446f));return _0x49297f[_0x50c197(0x191)];}export async function tryGetStandardPageStatus(_0x4edcb0,_0x13f900){try{return await getStandardPageStatus(_0x4edcb0,_0x13f900);}catch(_0x3b40e3){if(_0x3b40e3 instanceof CliError&&_0x3b40e3['code']==='api_error'&&/404|not found|non-json response/i['test'](_0x3b40e3['message']))return null;throw _0x3b40e3;}}export async function syncStandardPages(_0x2566b6,_0x4766fc){const _0x4d11de=a142_0x41ef,_0x41f062=await apiRequest(_0x4d11de(0x1b3)+_0x4766fc+_0x4d11de(0x1c7),{'method':_0x4d11de(0x177),'body':{'appCode':_0x2566b6}});return _0x41f062['data'];}export async function getPageDetail(_0x505a46){const _0x736379=a142_0x41ef,_0x294348=await apiRequest('/smartapi/lovrabet/detail?pageId='+_0x505a46);if(!_0x294348[_0x736379(0x191)])throw CliErrors[_0x736379(0x183)]('Page\x20not\x20found:\x20'+_0x505a46);return _0x294348[_0x736379(0x191)];}export async function updatePage(_0x563852,_0x2024fb,_0x5302c4,_0x21c44c){const _0x3ab359=a142_0x41ef,_0x33d336=await apiRequest('/smartapi/lovrabet/update-page',{'method':_0x3ab359(0x177),'body':{'appCode':_0x563852,'pageId':_0x2024fb,'code':_0x5302c4,'datasetIds':_0x21c44c}});return _0x33d336[_0x3ab359(0x191)];}export function generateSdkCode(_0x4adf3c,_0x1b1288,_0x40bc22){const _0x36b9af=a142_0x41ef,_0x52122f=_0x40bc22?.[_0x36b9af(0x1c6)]??!![],_0x53db17=_0x36b9af(0x19d)+_0x4adf3c[_0x36b9af(0x14e)]?.[_0x36b9af(0x18a)](/-/g,'_'),_0x56e57b=_0x1b1288[_0x36b9af(0x152)]||_0x1b1288['operationName']||'filter',_0x46201e=[];_0x52122f&&_0x46201e[_0x36b9af(0x1c2)]('import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','','const\x20client\x20=\x20new\x20LovrabetClient({\x20appCode:\x20\x27<YOUR_APP_CODE>\x27\x20});','');_0x46201e[_0x36b9af(0x1c2)]('//\x20'+_0x4adf3c['name']+'\x20('+(_0x4adf3c[_0x36b9af(0x156)]||_0x36b9af(0x18e))+')');if(_0x56e57b==='filter')_0x46201e[_0x36b9af(0x1c2)](_0x36b9af(0x184)+_0x53db17+_0x36b9af(0x1b2),_0x36b9af(0x134),_0x36b9af(0x178),_0x36b9af(0x190),'});');else{if(_0x56e57b===_0x36b9af(0x13d))_0x46201e[_0x36b9af(0x1c2)]('const\x20result\x20=\x20await\x20client.models.'+_0x53db17+_0x36b9af(0x15c));else{if(_0x56e57b==='create')_0x46201e[_0x36b9af(0x1c2)](_0x36b9af(0x184)+_0x53db17+_0x36b9af(0x18b));else{if(_0x56e57b===_0x36b9af(0x12d))_0x46201e['push'](_0x36b9af(0x184)+_0x53db17+_0x36b9af(0x1a7));else _0x56e57b===_0x36b9af(0x161)||_0x56e57b===_0x36b9af(0x19f)?_0x46201e[_0x36b9af(0x1c2)](_0x36b9af(0x184)+_0x53db17+_0x36b9af(0x13f)):_0x46201e['push'](_0x36b9af(0x184)+_0x53db17+'.'+_0x56e57b+_0x36b9af(0x154));}}}return _0x46201e[_0x36b9af(0x174)]('\x0a');}export function generateSqlCodeTemplate(_0x5187e6,_0x40ccf3){const _0x5dab44=a142_0x41ef,_0x2ffcc8=_0x40ccf3?.[_0x5dab44(0x141)]??_0x5dab44(0x163),_0xdbf9fd=_0x40ccf3?.['includeImports']??!![],_0x2dd411=[];return _0x2dd411['push'](_0x5dab44(0x140)+_0x5187e6[_0x5dab44(0x17a)]+'\x20('+_0x5187e6[_0x5dab44(0x12c)]+')'),_0x2ffcc8==='sdk'?(_0xdbf9fd&&_0x2dd411[_0x5dab44(0x1c2)]('import\x20{\x20LovrabetClient\x20}\x20from\x20\x27@lovrabet/sdk\x27;','',_0x5dab44(0x1af),''),_0x2dd411[_0x5dab44(0x1c2)](_0x5dab44(0x168),_0x5dab44(0x179)+_0x5187e6['sqlCode']+'\x27,','\x20\x20params:\x20{\x20/*\x20parameter\x20values\x20*/\x20},',_0x5dab44(0x135),'if\x20(!data.execSuccess)\x20throw\x20new\x20Error(\x27SQL\x20execution\x20failed\x27);','const\x20results\x20=\x20data.execResult\x20||\x20[];')):_0x2dd411[_0x5dab44(0x1c2)]('//\x20BFF\x20context:\x20context.client.sql.execute\x20returns\x20rows\x20directly',_0x5dab44(0x17d),_0x5dab44(0x171),'\x20\x20\x20\x20sqlCode:\x20\x27'+_0x5187e6[_0x5dab44(0x12c)]+'\x27,',_0x5dab44(0x158),'\x20\x20});',_0x5dab44(0x19e),'}'),_0x2dd411[_0x5dab44(0x174)]('\x0a');}export async function getErConfig(_0x1c4be8,_0x8d9b08){const _0x4c5f0d=a142_0x41ef,_0x413ea1=await apiRequest(_0x4c5f0d(0x1bd),{'method':_0x4c5f0d(0x177),'body':{'appCode':_0x1c4be8,'dblinkId':_0x8d9b08}});return _0x413ea1[_0x4c5f0d(0x191)];}export async function createErRelation(_0x58ae50){const _0xa60ada=a142_0x41ef,_0x5c3ba2=await apiRequest(_0xa60ada(0x1a8),{'method':_0xa60ada(0x177),'body':_0x58ae50});return _0x5c3ba2['data'];}export async function updateErRelation(_0x2ef2cf){const _0x14a4e8=a142_0x41ef,_0x1515c2=await apiRequest(_0x14a4e8(0x1aa),{'method':_0x14a4e8(0x177),'body':_0x2ef2cf});return _0x1515c2['data'];}export async function deleteErRelation(_0x4d454c){const _0x46934b=a142_0x41ef,_0x46cba3=await apiRequest('/smartapi/question/er-config/erDelete',{'method':'POST','body':_0x4d454c});return _0x46cba3[_0x46934b(0x191)];}function buildQuery(_0x2a6b74){const _0x2b429b=a142_0x41ef,_0x1e652f=new URLSearchParams();for(const [_0x130185,_0x25aa24]of Object[_0x2b429b(0x182)](_0x2a6b74)){if(_0x25aa24===undefined||_0x25aa24==='')continue;_0x1e652f[_0x2b429b(0x196)](_0x130185,String(_0x25aa24));}const _0x4bd8e0=_0x1e652f[_0x2b429b(0x145)]();return _0x4bd8e0?'?'+_0x4bd8e0:'';}export async function listDbLinks(_0x319327,_0x482043){const _0x3dd998=a142_0x41ef,_0x4bdcca=await apiRequest(_0x3dd998(0x194),{'method':_0x3dd998(0x177),'body':{'appCode':_0x319327,'currentPage':_0x482043?.[_0x3dd998(0x14a)]??0x1,'pageSize':_0x482043?.[_0x3dd998(0x175)]??0x64}});return{'items':extractList(_0x4bdcca['data']),'paging':extractPaging(_0x4bdcca[_0x3dd998(0x191)])};}export async function getDbLinkInfo(_0x3b77b3){const _0x324148=a142_0x41ef,_0x142050=await apiRequest(_0x324148(0x146)+buildQuery({'id':_0x3b77b3}));return _0x142050[_0x324148(0x191)];}export async function createDbLink(_0x788d03){const _0x37dd93=a142_0x41ef,_0x2edf91=await apiRequest(_0x37dd93(0x187),{'method':_0x37dd93(0x177),'body':_0x788d03});return _0x2edf91[_0x37dd93(0x191)];}export async function updateDbLink(_0x81a67f){const _0x15321b=a142_0x41ef,_0x213ce9=await apiRequest(_0x15321b(0x1ac),{'method':_0x15321b(0x177),'body':_0x81a67f});return _0x213ce9[_0x15321b(0x191)];}export async function deleteDbLink(_0x41fc90){const _0x4d5801=a142_0x41ef;await apiRequest(_0x4d5801(0x132),{'method':_0x4d5801(0x177),'body':{'id':_0x41fc90}});}export async function testDbLinkConnect(_0x42e2eb){const _0x28918f=a142_0x41ef,_0x28789a=await apiRequest('/smartapi/dblink/testConnect'+buildQuery({'id':_0x42e2eb}));return _0x28789a[_0x28918f(0x191)];}export async function startDbAnalysis(_0x4aa238,_0x953b66){const _0x1e2846=a142_0x41ef,_0x255749=await apiRequest(_0x1e2846(0x16c),{'method':'POST','body':{'dbLinkId':_0x4aa238,..._0x953b66&&_0x953b66[_0x1e2846(0x15a)]>0x0?{'tableNames':_0x953b66}:{}}}),_0x4340e2=_0x255749[_0x1e2846(0x191)];if(typeof _0x4340e2===_0x1e2846(0x162))return _0x4340e2;if(_0x4340e2&&typeof _0x4340e2===_0x1e2846(0x17e)&&typeof _0x4340e2[_0x1e2846(0x1a9)]===_0x1e2846(0x162))return _0x4340e2['planId'];return _0x4340e2!=null?String(_0x4340e2):'';}export async function cancelDbAnalysis(_0xeafa4){const _0x35f09a=a142_0x41ef;await apiRequest(_0x35f09a(0x16f)+buildQuery({'planId':_0xeafa4}),{'method':_0x35f09a(0x177)});}export async function getDbAnalysisStatus(_0x4c0c6f){const _0x5deadf=a142_0x41ef,_0xb6f3f6=await apiRequest(_0x5deadf(0x18c)+encodeURIComponent(_0x4c0c6f));return _0xb6f3f6[_0x5deadf(0x191)];}export async function getDbAllTableList(_0x3314ff,_0x47600a){const _0x30ec44=a142_0x41ef,_0x2751ac=await apiRequest(_0x30ec44(0x133)+buildQuery({'appCode':_0x3314ff,'dbLinkId':_0x47600a})),_0x2b364c=_0x2751ac[_0x30ec44(0x191)];if(Array[_0x30ec44(0x142)](_0x2b364c))return _0x2b364c;return extractList(_0x2b364c);}export async function getDbTableDiff(_0x546e4f,_0x145a2d,_0x2a05c2){const _0xc35900=a142_0x41ef,_0x306bc0=await apiRequest(_0xc35900(0x195)+buildQuery({'appCode':_0x546e4f,'dbLinkId':_0x145a2d,'pageIndex':_0x2a05c2?.[_0xc35900(0x148)]??0x1,'pageSize':_0x2a05c2?.[_0xc35900(0x175)]??0x14,'tableName':_0x2a05c2?.[_0xc35900(0x156)]})),_0x51ccc4=_0x306bc0['data'];return{'totalCount':_0x51ccc4?.[_0xc35900(0x169)]??0x0,'tableList':Array[_0xc35900(0x142)](_0x51ccc4?.['tableList'])?_0x51ccc4[_0xc35900(0x139)]:[]};}const REMOTE_APP_PAGE_SIZE=0xc8;export async function listRemoteApps(){const _0x5510bf=a142_0x41ef,_0x5a793a=await apiRequest(_0x5510bf(0x1b6),{'method':_0x5510bf(0x177),'body':{'currentPage':0x1,'pageSize':REMOTE_APP_PAGE_SIZE}}),_0x20f76b=extractList(_0x5a793a[_0x5510bf(0x191)]),_0x535740=extractPaging(_0x5a793a[_0x5510bf(0x191)]);return _0x535740&&_0x535740[_0x5510bf(0x169)]>REMOTE_APP_PAGE_SIZE&&console[_0x5510bf(0x13c)](_0x5510bf(0x1c3)+REMOTE_APP_PAGE_SIZE+_0x5510bf(0x131)+_0x535740[_0x5510bf(0x169)]+_0x5510bf(0x180)+_0x5510bf(0x1c1)),_0x20f76b;}
@@ -1 +1 @@
1
- function a142_0x191d(){const _0x27f17c=['51WHBNKR','2429976mXOLbT','358068dPDxbd','2272460wQSsaq','6523OQqucU','27CELmGw','18600rbTSID','12399248fXTnCr','519490UNqJyU','2dwMQXl','bff.lock.json','.rabetbase','7KAewfx','/bff','742941BDlYfG'];a142_0x191d=function(){return _0x27f17c;};return a142_0x191d();}const a142_0x5a377b=a142_0x37c5;function a142_0x37c5(_0x2b0b64,_0x4ebfbc){_0x2b0b64=_0x2b0b64-0x11f;const _0x191ddb=a142_0x191d();let _0x37c5b7=_0x191ddb[_0x2b0b64];return _0x37c5b7;}(function(_0x93985c,_0x1d6afc){const _0x34ccdc=a142_0x37c5,_0x219c86=_0x93985c();while(!![]){try{const _0xada485=parseInt(_0x34ccdc(0x126))/0x1*(-parseInt(_0x34ccdc(0x121))/0x2)+-parseInt(_0x34ccdc(0x127))/0x3*(-parseInt(_0x34ccdc(0x129))/0x4)+parseInt(_0x34ccdc(0x12a))/0x5+parseInt(_0x34ccdc(0x128))/0x6*(parseInt(_0x34ccdc(0x124))/0x7)+-parseInt(_0x34ccdc(0x11f))/0x8+parseInt(_0x34ccdc(0x12c))/0x9*(-parseInt(_0x34ccdc(0x120))/0xa)+parseInt(_0x34ccdc(0x12b))/0xb*(parseInt(_0x34ccdc(0x12d))/0xc);if(_0xada485===_0x1d6afc)break;else _0x219c86['push'](_0x219c86['shift']());}catch(_0x59a753){_0x219c86['push'](_0x219c86['shift']());}}}(a142_0x191d,0xcff15));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a142_0x5a377b(0x123),LOCK_FILE_NAME=a142_0x5a377b(0x122),TRASH_DIR_NAME='bff-trash';export function loadBffProjectConfig(_0x1dc311,_0x1d99a9){const _0x306808=a142_0x5a377b,_0x408499=resolve(_0x1d99a9??findProjectRootDirectory()),_0x4b4e79=DOT_DIR+_0x306808(0x125),_0x1ec844=_0x4b4e79+'/'+_0x1dc311;return{'projectRoot':_0x408499,'appCode':_0x1dc311,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x4b4e79,'scriptsRoot':_0x1ec844,'scriptsRootDir':resolve(_0x408499,DOT_DIR,'bff',_0x1dc311),'lockFilePath':resolve(_0x408499,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x408499,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a143_0x488eb7=a143_0x4947;(function(_0x3400d5,_0x47e037){const _0x20ea03=a143_0x4947,_0x212f7c=_0x3400d5();while(!![]){try{const _0x3b25c5=parseInt(_0x20ea03(0x15c))/0x1+parseInt(_0x20ea03(0x15a))/0x2*(parseInt(_0x20ea03(0x15d))/0x3)+parseInt(_0x20ea03(0x153))/0x4+parseInt(_0x20ea03(0x158))/0x5*(-parseInt(_0x20ea03(0x15e))/0x6)+-parseInt(_0x20ea03(0x157))/0x7*(parseInt(_0x20ea03(0x15f))/0x8)+parseInt(_0x20ea03(0x159))/0x9+-parseInt(_0x20ea03(0x152))/0xa*(parseInt(_0x20ea03(0x151))/0xb);if(_0x3b25c5===_0x47e037)break;else _0x212f7c['push'](_0x212f7c['shift']());}catch(_0x35e177){_0x212f7c['push'](_0x212f7c['shift']());}}}(a143_0x1a42,0xc22ac));import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a143_0x488eb7(0x156),LOCK_FILE_NAME=a143_0x488eb7(0x150),TRASH_DIR_NAME=a143_0x488eb7(0x15b);function a143_0x1a42(){const _0x305533=['bff','/bff','.rabetbase','965258YDtaWV','5GJyuSt','3737403CfQfxK','358FjXoMb','bff-trash','997600KPknjF','21669cbcYtz','2768922gRmFSh','8iNKqUC','bff.lock.json','44WEjWyF','6756230FANRXF','5565588VLFtcI'];a143_0x1a42=function(){return _0x305533;};return a143_0x1a42();}function a143_0x4947(_0x2a7069,_0x19dc9b){_0x2a7069=_0x2a7069-0x150;const _0x1a4220=a143_0x1a42();let _0x4947aa=_0x1a4220[_0x2a7069];return _0x4947aa;}export function loadBffProjectConfig(_0x1bec03,_0x5f2b8b){const _0x5be453=a143_0x488eb7,_0x5d3a31=resolve(_0x5f2b8b??findProjectRootDirectory()),_0x28ab33=DOT_DIR+_0x5be453(0x155),_0x236cd3=_0x28ab33+'/'+_0x1bec03;return{'projectRoot':_0x5d3a31,'appCode':_0x1bec03,'scriptsBaseDir':DOT_DIR,'scriptsWorkspaceRoot':_0x28ab33,'scriptsRoot':_0x236cd3,'scriptsRootDir':resolve(_0x5d3a31,DOT_DIR,_0x5be453(0x154),_0x1bec03),'lockFilePath':resolve(_0x5d3a31,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x5d3a31,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- const a143_0x230c76=a143_0x41ed;(function(_0x401c84,_0x448f18){const _0xa2fb93=a143_0x41ed,_0x5d5c80=_0x401c84();while(!![]){try{const _0x3850e5=-parseInt(_0xa2fb93(0x145))/0x1*(parseInt(_0xa2fb93(0x152))/0x2)+-parseInt(_0xa2fb93(0x13d))/0x3*(parseInt(_0xa2fb93(0x14d))/0x4)+-parseInt(_0xa2fb93(0x139))/0x5+parseInt(_0xa2fb93(0x142))/0x6+parseInt(_0xa2fb93(0x135))/0x7+parseInt(_0xa2fb93(0x141))/0x8*(parseInt(_0xa2fb93(0x150))/0x9)+-parseInt(_0xa2fb93(0x134))/0xa*(-parseInt(_0xa2fb93(0x12e))/0xb);if(_0x3850e5===_0x448f18)break;else _0x5d5c80['push'](_0x5d5c80['shift']());}catch(_0x17c318){_0x5d5c80['push'](_0x5d5c80['shift']());}}}(a143_0x5b49,0x517b8));function a143_0x41ed(_0xc81cc7,_0x519df8){_0xc81cc7=_0xc81cc7-0x12c;const _0x5b49b5=a143_0x5b49();let _0x41edca=_0x5b49b5[_0xc81cc7];return _0x41edca;}import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a143_0x230c76(0x13e),a143_0x230c76(0x12d),a143_0x230c76(0x13c)];export function normalizeBffType(_0x2dc7a2){const _0x32f804=a143_0x230c76;if(!_0x2dc7a2)return undefined;const _0x28b05a=_0x2dc7a2[_0x32f804(0x12f)]()[_0x32f804(0x13b)]();return SUPPORTED_BFF_TYPES[_0x32f804(0x14c)](_0x28b05a)?_0x28b05a:undefined;}function a143_0x5b49(){const _0x3963a9=['code','functionName','beforeScriptId','.js','push','ENDPOINT','22hyKAiO','trim','get','HOOK/','name','datasetCode','1590440iVmsXZ','2444253GzRFLB','isDirectory','operationType','functionNode','724415HcyEyK','F_OK','toUpperCase','HOOK','1483656RdjkLb','COMMON','replace','all','344zsTVbt','3644448oneYhx','set','split','1Gcudnn','endsWith','afterScriptId','after','alias','ENOENT','before','includes','4vwBrXO','scriptsRootDir','isFile','48177JqmAWg','map','1063334nukkeJ','scriptType'];a143_0x5b49=function(){return _0x3963a9;};return a143_0x5b49();}async function scanJsFilesRecursively(_0x5f4143,_0x3b4b1f){const _0x5be773=a143_0x230c76,_0x16ac0a=[];try{const _0x24abe3=await readdir(_0x5f4143,{'withFileTypes':!![]});for(const _0x4adeb1 of _0x24abe3){const _0x1724c0=join(_0x5f4143,_0x4adeb1[_0x5be773(0x132)]);if(_0x4adeb1[_0x5be773(0x136)]())_0x16ac0a[_0x5be773(0x12c)](...await scanJsFilesRecursively(_0x1724c0,_0x3b4b1f+'/'+_0x4adeb1['name']));else _0x4adeb1[_0x5be773(0x14f)]()&&_0x4adeb1[_0x5be773(0x132)][_0x5be773(0x146)](_0x5be773(0x157))&&_0x16ac0a['push']({'lockKey':_0x3b4b1f+'/'+_0x4adeb1[_0x5be773(0x132)][_0x5be773(0x13f)](/\.js$/,''),'filePath':_0x1724c0});}}catch(_0xfed461){if(_0xfed461[_0x5be773(0x154)]!==_0x5be773(0x14a))throw _0xfed461;}return _0x16ac0a;}async function scanFlatFunctions(_0x6fe0fe,_0x3b4324){const _0x517071=a143_0x230c76,_0x5c5b54=join(_0x6fe0fe[_0x517071(0x14e)],_0x3b4324),_0x28c1e0=await scanJsFilesRecursively(_0x5c5b54,_0x3b4324);return _0x28c1e0[_0x517071(0x151)](({lockKey:_0x2b6b04,filePath:_0x23c30e})=>({'type':_0x3b4324,'name':_0x2b6b04[_0x517071(0x144)]('/')['at'](-0x1)??'','filePath':_0x23c30e,'lockKey':_0x2b6b04}));}async function scanHookFunctions(_0x84e91e){const _0xd65924=a143_0x230c76,_0x1326a1=join(_0x84e91e[_0xd65924(0x14e)],_0xd65924(0x13c)),_0x1ce4d6=[];try{const _0x56fbdb=await readdir(_0x1326a1,{'withFileTypes':!![]});for(const _0x941400 of _0x56fbdb){if(!_0x941400[_0xd65924(0x136)]())continue;const _0x30e744=_0x941400[_0xd65924(0x132)],_0x4c32ac=join(_0x1326a1,_0x30e744),_0x16fed3=await readdir(_0x4c32ac,{'withFileTypes':!![]});for(const _0x5a39bc of _0x16fed3){if(!_0x5a39bc[_0xd65924(0x136)]())continue;const _0x2a3992=_0x5a39bc[_0xd65924(0x132)],_0x506c55=join(_0x4c32ac,_0x2a3992),_0x4154de=await readdir(_0x506c55,{'withFileTypes':!![]});for(const _0x4e37f2 of _0x4154de){if(!_0x4e37f2['isDirectory']())continue;const _0x3e71c6=_0x4e37f2['name'],_0x4de08b=join(_0x506c55,_0x3e71c6),_0x2d28db=await readdir(_0x4de08b,{'withFileTypes':!![]});for(const _0xea7eff of _0x2d28db){if(!_0xea7eff[_0xd65924(0x14f)]()||!_0xea7eff[_0xd65924(0x132)][_0xd65924(0x146)]('.js'))continue;const _0x10cd34=_0xea7eff[_0xd65924(0x132)]['replace'](/\.js$/,'');_0x1ce4d6[_0xd65924(0x12c)]({'type':'HOOK','name':_0x10cd34,'filePath':join(_0x4de08b,_0xea7eff[_0xd65924(0x132)]),'lockKey':_0xd65924(0x131)+_0x30e744+'/'+_0x2a3992+'/'+_0x3e71c6+'/'+_0x10cd34,'alias':_0x30e744,'operationType':_0x2a3992,'functionNode':_0x3e71c6});}}}}}catch(_0x4b2fdd){if(_0x4b2fdd['code']!==_0xd65924(0x14a))throw _0x4b2fdd;}return _0x1ce4d6;}export async function scanLocalBffFunctions(_0x564ea,_0x173e23){const _0x25ac2d=a143_0x230c76;if(_0x173e23==='COMMON'||_0x173e23===_0x25ac2d(0x12d))return scanFlatFunctions(_0x564ea,_0x173e23);if(_0x173e23===_0x25ac2d(0x13c))return scanHookFunctions(_0x564ea);const [_0x5a5101,_0x2c1ecd,_0x2a3437]=await Promise[_0x25ac2d(0x140)]([scanFlatFunctions(_0x564ea,_0x25ac2d(0x13e)),scanFlatFunctions(_0x564ea,'ENDPOINT'),scanHookFunctions(_0x564ea)]);return[..._0x5a5101,..._0x2c1ecd,..._0x2a3437];}export function resolveLocalFilePathFromLockKey(_0x2464a9,_0x41d1d5){const _0x431d5c=a143_0x230c76;return join(_0x2464a9['scriptsRootDir'],..._0x41d1d5[_0x431d5c(0x144)]('/'))+_0x431d5c(0x157);}export function createHookLocationMap(_0x34fd6c){const _0x22e05b=a143_0x230c76,_0x124deb=new Map();for(const _0x24fccf of _0x34fd6c){_0x24fccf[_0x22e05b(0x156)]&&_0x124deb[_0x22e05b(0x143)](_0x24fccf[_0x22e05b(0x156)],{'datasetCode':_0x24fccf[_0x22e05b(0x133)],'operationType':snakeToCamel(_0x24fccf[_0x22e05b(0x137)]),'functionNode':_0x22e05b(0x14b)}),_0x24fccf['afterScriptId']&&_0x124deb[_0x22e05b(0x143)](_0x24fccf[_0x22e05b(0x147)],{'datasetCode':_0x24fccf[_0x22e05b(0x133)],'operationType':snakeToCamel(_0x24fccf[_0x22e05b(0x137)]),'functionNode':_0x22e05b(0x148)});}return _0x124deb;}export function resolveRemoteScriptTarget(_0x2de3ce,_0x1946ef,_0x3acc55,_0x35ea5c,_0x3d37a9){const _0x3f0f08=a143_0x230c76,_0x1a152f=normalizeBffType(_0x1946ef[_0x3f0f08(0x153)]);if(!_0x1a152f||!_0x1946ef['functionName'])return null;if(_0x1a152f===_0x3f0f08(0x13c)){const _0x359482=(_0x1946ef['id']?_0x3acc55[_0x3f0f08(0x130)](_0x1946ef['id']):undefined)??findHookLocationByRemoteId(_0x35ea5c,_0x1946ef['id']);if(!_0x359482)return null;const _0x2cecb0=_0x359482[_0x3f0f08(0x149)]||_0x3d37a9[_0x3f0f08(0x130)](_0x359482[_0x3f0f08(0x133)]),_0x3f5d7b=_0x2cecb0??_0x359482['datasetCode'],_0x2fe67d={..._0x359482,'alias':_0x2cecb0},_0x41ad1e=_0x3f0f08(0x131)+_0x3f5d7b+'/'+_0x2fe67d[_0x3f0f08(0x137)]+'/'+_0x2fe67d[_0x3f0f08(0x138)]+'/'+_0x1946ef[_0x3f0f08(0x155)];return{'lockKey':_0x41ad1e,'filePath':resolveLocalFilePathFromLockKey(_0x2de3ce,_0x41ad1e),'type':_0x3f0f08(0x13c),'hookLocation':_0x2fe67d};}const _0x50067b=_0x1a152f+'/'+_0x1946ef[_0x3f0f08(0x155)];return{'lockKey':_0x50067b,'filePath':resolveLocalFilePathFromLockKey(_0x2de3ce,_0x50067b),'type':_0x1a152f};}export async function ensureParentDirectory(_0x3f69e9){await mkdir(dirname(_0x3f69e9),{'recursive':!![]});}export async function fileExists(_0x2908dc){const _0x258ca4=a143_0x230c76;try{return await access(_0x2908dc,constants[_0x258ca4(0x13a)]),!![];}catch{return![];}}export async function directoryExists(_0x55111d){try{const _0x430e05=await stat(_0x55111d);return _0x430e05['isDirectory']();}catch{return![];}}
1
+ const a144_0x20b352=a144_0x4492;(function(_0x5e5e1b,_0x2a3fe9){const _0x5742ed=a144_0x4492,_0x5914b0=_0x5e5e1b();while(!![]){try{const _0x38e413=-parseInt(_0x5742ed(0xab))/0x1*(-parseInt(_0x5742ed(0xc2))/0x2)+-parseInt(_0x5742ed(0xb0))/0x3+-parseInt(_0x5742ed(0xa2))/0x4*(-parseInt(_0x5742ed(0xb7))/0x5)+parseInt(_0x5742ed(0xa7))/0x6+-parseInt(_0x5742ed(0xb4))/0x7*(parseInt(_0x5742ed(0x9f))/0x8)+parseInt(_0x5742ed(0xa8))/0x9+parseInt(_0x5742ed(0xa4))/0xa*(-parseInt(_0x5742ed(0xa3))/0xb);if(_0x38e413===_0x2a3fe9)break;else _0x5914b0['push'](_0x5914b0['shift']());}catch(_0xbefadb){_0x5914b0['push'](_0x5914b0['shift']());}}}(a144_0x5b6c,0x2b259));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';function a144_0x5b6c(){const _0x6b94bc=['set','all','6tImfPS','beforeScriptId','name','after','operationType','HOOK','1176jLqhsf','F_OK','ENOENT','539996Gtifbr','6079381sOgGKP','10ljmsVI','functionNode','split','1919472clFfXA','2583576WanOlW','get','.js','77513PHlqoS','isDirectory','HOOK/','endsWith','code','398418WZMWTt','afterScriptId','functionName','isFile','5348OTTWsb','push','ENDPOINT','5YhJgio','scriptType','trim','map','alias','scriptsRootDir','COMMON','replace','datasetCode'];a144_0x5b6c=function(){return _0x6b94bc;};return a144_0x5b6c();}import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a144_0x4492(_0x13d46a,_0x81a8e1){_0x13d46a=_0x13d46a-0x9e;const _0x5b6c7b=a144_0x5b6c();let _0x4492f7=_0x5b6c7b[_0x13d46a];return _0x4492f7;}export const SUPPORTED_BFF_TYPES=[a144_0x20b352(0xbd),a144_0x20b352(0xb6),'HOOK'];export function normalizeBffType(_0x48742c){const _0x4289f7=a144_0x20b352;if(!_0x48742c)return undefined;const _0x215ed8=_0x48742c[_0x4289f7(0xb9)]()['toUpperCase']();return SUPPORTED_BFF_TYPES['includes'](_0x215ed8)?_0x215ed8:undefined;}async function scanJsFilesRecursively(_0x7e218a,_0x13c9e1){const _0x41e10b=a144_0x20b352,_0x4d9315=[];try{const _0xa14025=await readdir(_0x7e218a,{'withFileTypes':!![]});for(const _0x459855 of _0xa14025){const _0x45a695=join(_0x7e218a,_0x459855[_0x41e10b(0xc4)]);if(_0x459855['isDirectory']())_0x4d9315[_0x41e10b(0xb5)](...await scanJsFilesRecursively(_0x45a695,_0x13c9e1+'/'+_0x459855[_0x41e10b(0xc4)]));else _0x459855[_0x41e10b(0xb3)]()&&_0x459855[_0x41e10b(0xc4)][_0x41e10b(0xae)](_0x41e10b(0xaa))&&_0x4d9315[_0x41e10b(0xb5)]({'lockKey':_0x13c9e1+'/'+_0x459855[_0x41e10b(0xc4)]['replace'](/\.js$/,''),'filePath':_0x45a695});}}catch(_0x4bf53c){if(_0x4bf53c[_0x41e10b(0xaf)]!==_0x41e10b(0xa1))throw _0x4bf53c;}return _0x4d9315;}async function scanFlatFunctions(_0x575a40,_0x13a85a){const _0x4a85f0=a144_0x20b352,_0x3cae78=join(_0x575a40[_0x4a85f0(0xbc)],_0x13a85a),_0x2be348=await scanJsFilesRecursively(_0x3cae78,_0x13a85a);return _0x2be348[_0x4a85f0(0xba)](({lockKey:_0x503fee,filePath:_0x1fd635})=>({'type':_0x13a85a,'name':_0x503fee[_0x4a85f0(0xa6)]('/')['at'](-0x1)??'','filePath':_0x1fd635,'lockKey':_0x503fee}));}async function scanHookFunctions(_0x3c7acd){const _0x246c14=a144_0x20b352,_0x52816d=join(_0x3c7acd[_0x246c14(0xbc)],_0x246c14(0x9e)),_0x546c31=[];try{const _0x21e04b=await readdir(_0x52816d,{'withFileTypes':!![]});for(const _0x224053 of _0x21e04b){if(!_0x224053[_0x246c14(0xac)]())continue;const _0x2730b8=_0x224053[_0x246c14(0xc4)],_0x31cc5f=join(_0x52816d,_0x2730b8),_0x5e4dc1=await readdir(_0x31cc5f,{'withFileTypes':!![]});for(const _0x477996 of _0x5e4dc1){if(!_0x477996[_0x246c14(0xac)]())continue;const _0x493af6=_0x477996['name'],_0x106a6b=join(_0x31cc5f,_0x493af6),_0x3fae8a=await readdir(_0x106a6b,{'withFileTypes':!![]});for(const _0x2cb94b of _0x3fae8a){if(!_0x2cb94b[_0x246c14(0xac)]())continue;const _0x24ae7c=_0x2cb94b[_0x246c14(0xc4)],_0x3d577a=join(_0x106a6b,_0x24ae7c),_0x35c164=await readdir(_0x3d577a,{'withFileTypes':!![]});for(const _0x47c34b of _0x35c164){if(!_0x47c34b[_0x246c14(0xb3)]()||!_0x47c34b[_0x246c14(0xc4)][_0x246c14(0xae)]('.js'))continue;const _0x5c2683=_0x47c34b['name'][_0x246c14(0xbe)](/\.js$/,'');_0x546c31[_0x246c14(0xb5)]({'type':'HOOK','name':_0x5c2683,'filePath':join(_0x3d577a,_0x47c34b[_0x246c14(0xc4)]),'lockKey':'HOOK/'+_0x2730b8+'/'+_0x493af6+'/'+_0x24ae7c+'/'+_0x5c2683,'alias':_0x2730b8,'operationType':_0x493af6,'functionNode':_0x24ae7c});}}}}}catch(_0x4d76c4){if(_0x4d76c4[_0x246c14(0xaf)]!=='ENOENT')throw _0x4d76c4;}return _0x546c31;}export async function scanLocalBffFunctions(_0x98e320,_0x349aa9){const _0x8b7811=a144_0x20b352;if(_0x349aa9===_0x8b7811(0xbd)||_0x349aa9==='ENDPOINT')return scanFlatFunctions(_0x98e320,_0x349aa9);if(_0x349aa9===_0x8b7811(0x9e))return scanHookFunctions(_0x98e320);const [_0x3dbaa7,_0x9d2ec2,_0x4d69fe]=await Promise[_0x8b7811(0xc1)]([scanFlatFunctions(_0x98e320,_0x8b7811(0xbd)),scanFlatFunctions(_0x98e320,_0x8b7811(0xb6)),scanHookFunctions(_0x98e320)]);return[..._0x3dbaa7,..._0x9d2ec2,..._0x4d69fe];}export function resolveLocalFilePathFromLockKey(_0x5c13de,_0x54a37d){const _0x5bfd6f=a144_0x20b352;return join(_0x5c13de[_0x5bfd6f(0xbc)],..._0x54a37d[_0x5bfd6f(0xa6)]('/'))+_0x5bfd6f(0xaa);}export function createHookLocationMap(_0x214397){const _0x16bc88=a144_0x20b352,_0x1bafff=new Map();for(const _0x54fb36 of _0x214397){_0x54fb36['beforeScriptId']&&_0x1bafff['set'](_0x54fb36[_0x16bc88(0xc3)],{'datasetCode':_0x54fb36[_0x16bc88(0xbf)],'operationType':snakeToCamel(_0x54fb36['operationType']),'functionNode':'before'}),_0x54fb36[_0x16bc88(0xb1)]&&_0x1bafff[_0x16bc88(0xc0)](_0x54fb36[_0x16bc88(0xb1)],{'datasetCode':_0x54fb36[_0x16bc88(0xbf)],'operationType':snakeToCamel(_0x54fb36[_0x16bc88(0xc6)]),'functionNode':_0x16bc88(0xc5)});}return _0x1bafff;}export function resolveRemoteScriptTarget(_0x248577,_0x3846da,_0x2e1e1c,_0x1f0254,_0x30bf82){const _0x441f88=a144_0x20b352,_0x295672=normalizeBffType(_0x3846da[_0x441f88(0xb8)]);if(!_0x295672||!_0x3846da[_0x441f88(0xb2)])return null;if(_0x295672==='HOOK'){const _0x5c19d8=(_0x3846da['id']?_0x2e1e1c[_0x441f88(0xa9)](_0x3846da['id']):undefined)??findHookLocationByRemoteId(_0x1f0254,_0x3846da['id']);if(!_0x5c19d8)return null;const _0x39a6fe=_0x5c19d8[_0x441f88(0xbb)]||_0x30bf82[_0x441f88(0xa9)](_0x5c19d8[_0x441f88(0xbf)]),_0x4e21de=_0x39a6fe??_0x5c19d8[_0x441f88(0xbf)],_0x1b1ccd={..._0x5c19d8,'alias':_0x39a6fe},_0x736e4b=_0x441f88(0xad)+_0x4e21de+'/'+_0x1b1ccd[_0x441f88(0xc6)]+'/'+_0x1b1ccd[_0x441f88(0xa5)]+'/'+_0x3846da['functionName'];return{'lockKey':_0x736e4b,'filePath':resolveLocalFilePathFromLockKey(_0x248577,_0x736e4b),'type':_0x441f88(0x9e),'hookLocation':_0x1b1ccd};}const _0x6c8c38=_0x295672+'/'+_0x3846da[_0x441f88(0xb2)];return{'lockKey':_0x6c8c38,'filePath':resolveLocalFilePathFromLockKey(_0x248577,_0x6c8c38),'type':_0x295672};}export async function ensureParentDirectory(_0x1a5348){await mkdir(dirname(_0x1a5348),{'recursive':!![]});}export async function fileExists(_0x1fc933){const _0x197d6b=a144_0x20b352;try{return await access(_0x1fc933,constants[_0x197d6b(0xa0)]),!![];}catch{return![];}}export async function directoryExists(_0x2d6250){try{const _0x4cd28c=await stat(_0x2d6250);return _0x4cd28c['isDirectory']();}catch{return![];}}
@@ -1 +1 @@
1
- function a144_0x5683(_0x1c8a51,_0x5904a5){_0x1c8a51=_0x1c8a51-0x1d2;const _0x36743c=a144_0x3674();let _0x568342=_0x36743c[_0x1c8a51];return _0x568342;}function a144_0x3674(){const _0x23e1fc=['2868500RbzALi','478rhGvck','digest','46EFTQFs','1256307sUQFYB','8JukLac','hex','1451296lUHrMC','md5','7zfbKej','453609VmuQtu','1931410URZhiV','update','createHash','1817142cdKLfw','utf8'];a144_0x3674=function(){return _0x23e1fc;};return a144_0x3674();}(function(_0x59d1b4,_0x5d7116){const _0x582abb=a144_0x5683,_0x34f85b=_0x59d1b4();while(!![]){try{const _0x437bd3=-parseInt(_0x582abb(0x1d5))/0x1*(-parseInt(_0x582abb(0x1d3))/0x2)+-parseInt(_0x582abb(0x1d6))/0x3+parseInt(_0x582abb(0x1d9))/0x4+parseInt(_0x582abb(0x1dd))/0x5+-parseInt(_0x582abb(0x1e0))/0x6*(-parseInt(_0x582abb(0x1db))/0x7)+-parseInt(_0x582abb(0x1d7))/0x8*(parseInt(_0x582abb(0x1dc))/0x9)+-parseInt(_0x582abb(0x1d2))/0xa;if(_0x437bd3===_0x5d7116)break;else _0x34f85b['push'](_0x34f85b['shift']());}catch(_0x56c50a){_0x34f85b['push'](_0x34f85b['shift']());}}}(a144_0x3674,0x4aef9));import{readFile}from'node:fs/promises';import a144_0x1a2dd1 from'node:crypto';export function computeContentHash(_0x13178c){const _0x13f284=a144_0x5683;return a144_0x1a2dd1[_0x13f284(0x1df)](_0x13f284(0x1da))[_0x13f284(0x1de)](_0x13178c)[_0x13f284(0x1d4)](_0x13f284(0x1d8));}export async function computeFileHash(_0x35c888){const _0x2c5fea=a144_0x5683,_0xf9f2f0=await readFile(_0x35c888,_0x2c5fea(0x1e1));return computeContentHash(_0xf9f2f0);}
1
+ (function(_0x1c5744,_0x9e7ddd){const _0x2ef127=a145_0x4834,_0x21c372=_0x1c5744();while(!![]){try{const _0x186690=parseInt(_0x2ef127(0x1f6))/0x1*(parseInt(_0x2ef127(0x1f0))/0x2)+parseInt(_0x2ef127(0x1ea))/0x3+parseInt(_0x2ef127(0x1f3))/0x4+parseInt(_0x2ef127(0x1ee))/0x5+parseInt(_0x2ef127(0x1eb))/0x6+-parseInt(_0x2ef127(0x1f1))/0x7*(-parseInt(_0x2ef127(0x1f4))/0x8)+-parseInt(_0x2ef127(0x1f2))/0x9;if(_0x186690===_0x9e7ddd)break;else _0x21c372['push'](_0x21c372['shift']());}catch(_0xbd3488){_0x21c372['push'](_0x21c372['shift']());}}}(a145_0x13ec,0x7466f));function a145_0x13ec(){const _0x466a4b=['24806061CCAWjJ','2509036KkHSnI','15896YWJOwE','digest','21202aaUvYy','2072913NKOLKw','2028438fCgjwJ','md5','createHash','268410hjRUUw','update','88CgOqGo','2079rIcPzR'];a145_0x13ec=function(){return _0x466a4b;};return a145_0x13ec();}import{readFile}from'node:fs/promises';import a145_0x11d052 from'node:crypto';export function computeContentHash(_0x2d9abd){const _0x492c7c=a145_0x4834;return a145_0x11d052[_0x492c7c(0x1ed)](_0x492c7c(0x1ec))[_0x492c7c(0x1ef)](_0x2d9abd)[_0x492c7c(0x1f5)]('hex');}function a145_0x4834(_0x47f756,_0x16b70b){_0x47f756=_0x47f756-0x1ea;const _0x13ecae=a145_0x13ec();let _0x483494=_0x13ecae[_0x47f756];return _0x483494;}export async function computeFileHash(_0x183662){const _0x271557=await readFile(_0x183662,'utf8');return computeContentHash(_0x271557);}