@lovrabet/rabetbase-cli 2.5.8-beta.1 → 2.5.8-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +7 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/detail.js +1 -1
  27. package/lib/commands/app/index.js +1 -1
  28. package/lib/commands/app/list.js +1 -1
  29. package/lib/commands/app/members-list.js +1 -1
  30. package/lib/commands/app/remote-directory.js +1 -1
  31. package/lib/commands/app/shared.js +1 -1
  32. package/lib/commands/app-config/delete.js +1 -1
  33. package/lib/commands/app-config/get.js +1 -1
  34. package/lib/commands/app-config/index.js +1 -1
  35. package/lib/commands/app-config/list.js +1 -1
  36. package/lib/commands/app-config/set.js +1 -1
  37. package/lib/commands/app-config/shared.js +1 -1
  38. package/lib/commands/auth/index.js +1 -1
  39. package/lib/commands/bff/create.js +1 -1
  40. package/lib/commands/bff/delete.js +1 -1
  41. package/lib/commands/bff/detail.js +1 -1
  42. package/lib/commands/bff/index.js +1 -1
  43. package/lib/commands/bff/list.js +1 -1
  44. package/lib/commands/bff/logs.js +1 -1
  45. package/lib/commands/bff/pull.js +1 -1
  46. package/lib/commands/bff/push.js +1 -1
  47. package/lib/commands/bff/status.js +1 -1
  48. package/lib/commands/cli-skill/index.js +1 -1
  49. package/lib/commands/cli-update.js +1 -1
  50. package/lib/commands/codegen/index.js +1 -1
  51. package/lib/commands/codegen/sdk.js +1 -1
  52. package/lib/commands/codegen/sql.js +1 -1
  53. package/lib/commands/common/app-registry.js +1 -1
  54. package/lib/commands/common/app-selector.js +1 -1
  55. package/lib/commands/common/async-task.js +1 -1
  56. package/lib/commands/common/dry-run.js +1 -1
  57. package/lib/commands/common/flags.js +1 -1
  58. package/lib/commands/common/local-file.js +1 -1
  59. package/lib/commands/common/validate.js +1 -1
  60. package/lib/commands/config/delete.js +1 -1
  61. package/lib/commands/config/get.js +1 -1
  62. package/lib/commands/config/index.js +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/design-context.js +1 -1
  78. package/lib/commands/dataset/design-start.js +1 -1
  79. package/lib/commands/dataset/design-status.js +1 -1
  80. package/lib/commands/dataset/design-sync-retry.js +1 -1
  81. package/lib/commands/dataset/design-sync-status.js +1 -1
  82. package/lib/commands/dataset/design-validate.js +1 -1
  83. package/lib/commands/dataset/detail.js +1 -1
  84. package/lib/commands/dataset/extend-update.js +1 -1
  85. package/lib/commands/dataset/field-restore.js +1 -1
  86. package/lib/commands/dataset/field-update.js +1 -1
  87. package/lib/commands/dataset/generate.js +1 -1
  88. package/lib/commands/dataset/index.js +1 -1
  89. package/lib/commands/dataset/list.js +1 -1
  90. package/lib/commands/dataset/operations.js +1 -1
  91. package/lib/commands/dataset/relation-audit.js +1 -1
  92. package/lib/commands/dataset/relation-create.js +1 -1
  93. package/lib/commands/dataset/relation-delete.js +1 -1
  94. package/lib/commands/dataset/relation-shared.js +1 -1
  95. package/lib/commands/dataset/relation-update.js +1 -1
  96. package/lib/commands/dataset/relations.js +1 -1
  97. package/lib/commands/dataset/rename.js +1 -1
  98. package/lib/commands/dataset/restore.js +1 -1
  99. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  100. package/lib/commands/db/analysis-batching.js +1 -1
  101. package/lib/commands/db/analyze-batch-plan.js +1 -1
  102. package/lib/commands/db/analyze-cancel.js +1 -1
  103. package/lib/commands/db/analyze-start.js +1 -1
  104. package/lib/commands/db/analyze-status.js +1 -1
  105. package/lib/commands/db/create.js +1 -1
  106. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  110. package/lib/commands/db/delete.js +1 -1
  111. package/lib/commands/db/detail.js +1 -1
  112. package/lib/commands/db/diff-refresh-start.js +1 -1
  113. package/lib/commands/db/diff-refresh-status.js +1 -1
  114. package/lib/commands/db/diff.js +1 -1
  115. package/lib/commands/db/index.js +1 -1
  116. package/lib/commands/db/list.js +1 -1
  117. package/lib/commands/db/shared.js +1 -1
  118. package/lib/commands/db/table-diff-shared.js +1 -1
  119. package/lib/commands/db/tables.js +1 -1
  120. package/lib/commands/db/test.js +1 -1
  121. package/lib/commands/db/update.js +1 -1
  122. package/lib/commands/deployment/index.js +1 -1
  123. package/lib/commands/deployment/sync-all.js +1 -1
  124. package/lib/commands/deployment/sync-jobs.js +1 -1
  125. package/lib/commands/deployment/sync-status.js +1 -1
  126. package/lib/commands/doctor.js +1 -1
  127. package/lib/commands/file/index.js +1 -1
  128. package/lib/commands/flow/create.js +1 -1
  129. package/lib/commands/flow/detail.js +1 -1
  130. package/lib/commands/flow/index.js +1 -1
  131. package/lib/commands/flow/list.js +1 -1
  132. package/lib/commands/flow/page-list.js +1 -1
  133. package/lib/commands/flow/publish.js +1 -1
  134. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  135. package/lib/commands/flow/runtime-role-list.js +1 -1
  136. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  137. package/lib/commands/flow/runtime-user-search.js +1 -1
  138. package/lib/commands/flow/shared.js +1 -1
  139. package/lib/commands/flow/update.js +1 -1
  140. package/lib/commands/flow/validate.js +1 -1
  141. package/lib/commands/instant-api-policy/current.js +1 -1
  142. package/lib/commands/instant-api-policy/index.js +1 -1
  143. package/lib/commands/instant-api-policy/init.js +1 -1
  144. package/lib/commands/instant-api-policy/publish.js +1 -1
  145. package/lib/commands/instant-api-policy/pull.js +1 -1
  146. package/lib/commands/instant-api-policy/revision.js +1 -1
  147. package/lib/commands/instant-api-policy/revisions.js +1 -1
  148. package/lib/commands/instant-api-policy/rollback.js +1 -1
  149. package/lib/commands/instant-api-policy/shared.js +1 -1
  150. package/lib/commands/instant-api-policy/validate.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/issue/shared.js +1 -1
  155. package/lib/commands/kb/create.js +1 -1
  156. package/lib/commands/kb/delete.js +1 -1
  157. package/lib/commands/kb/detail.js +1 -1
  158. package/lib/commands/kb/index.js +1 -1
  159. package/lib/commands/kb/list.js +1 -1
  160. package/lib/commands/kb/search.js +1 -1
  161. package/lib/commands/kb/shared.js +1 -1
  162. package/lib/commands/kb/update.js +1 -1
  163. package/lib/commands/logs/index.js +1 -1
  164. package/lib/commands/menu/asset-update.js +1 -1
  165. package/lib/commands/menu/delete.js +1 -1
  166. package/lib/commands/menu/external-link-create.js +1 -1
  167. package/lib/commands/menu/external-link-update.js +1 -1
  168. package/lib/commands/menu/group-create.js +1 -1
  169. package/lib/commands/menu/group-update.js +1 -1
  170. package/lib/commands/menu/index.js +1 -1
  171. package/lib/commands/menu/list.js +1 -1
  172. package/lib/commands/menu/move.js +1 -1
  173. package/lib/commands/menu/regroup-start.js +1 -1
  174. package/lib/commands/menu/rename.js +1 -1
  175. package/lib/commands/menu/shared/compare-table.js +1 -1
  176. package/lib/commands/menu/shared/delete-plan.js +1 -1
  177. package/lib/commands/menu/shared/facts.js +1 -1
  178. package/lib/commands/menu/shared/index.js +1 -1
  179. package/lib/commands/menu/shared/inquirer.js +1 -1
  180. package/lib/commands/menu/shared/local-pages.js +1 -1
  181. package/lib/commands/menu/shared/logic.js +1 -1
  182. package/lib/commands/menu/shared/mutations.js +1 -1
  183. package/lib/commands/menu/shared/path.js +1 -1
  184. package/lib/commands/menu/shared/service.js +1 -1
  185. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  186. package/lib/commands/menu/shared/sync-core.js +1 -1
  187. package/lib/commands/menu/shared/update-core.js +1 -1
  188. package/lib/commands/menu/shared/valid-url.js +1 -1
  189. package/lib/commands/menu/subapp-assets-status.js +1 -1
  190. package/lib/commands/menu/subapp-assets-update.js +1 -1
  191. package/lib/commands/menu/sync.js +1 -1
  192. package/lib/commands/menu/visibility-update.js +1 -1
  193. package/lib/commands/notification/config-create.js +1 -1
  194. package/lib/commands/notification/config-delete.js +1 -1
  195. package/lib/commands/notification/config-list.js +1 -1
  196. package/lib/commands/notification/config-update.js +1 -1
  197. package/lib/commands/notification/index.js +1 -1
  198. package/lib/commands/notification/shared.js +1 -1
  199. package/lib/commands/ocr/index.js +1 -1
  200. package/lib/commands/page/create.js +1 -1
  201. package/lib/commands/page/custom/detail.js +1 -1
  202. package/lib/commands/page/custom/list.js +1 -1
  203. package/lib/commands/page/custom/publish.js +1 -1
  204. package/lib/commands/page/custom/shared.js +1 -1
  205. package/lib/commands/page/custom/syntax.js +1 -1
  206. package/lib/commands/page/custom/update.js +1 -1
  207. package/lib/commands/page/data-list-status.js +1 -1
  208. package/lib/commands/page/generate-start.js +1 -1
  209. package/lib/commands/page/generate-status.js +1 -1
  210. package/lib/commands/page/index.js +1 -1
  211. package/lib/commands/page/pull.js +1 -1
  212. package/lib/commands/page/push.js +1 -1
  213. package/lib/commands/page/relation-audit.js +1 -1
  214. package/lib/commands/page/restore.js +1 -1
  215. package/lib/commands/page/shared.js +1 -1
  216. package/lib/commands/page/sync.js +1 -1
  217. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  218. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  219. package/lib/commands/project/create/format-elapsed.js +1 -1
  220. package/lib/commands/project/create/main.js +1 -1
  221. package/lib/commands/project/create/materialize-project-template.js +1 -1
  222. package/lib/commands/project/create/project-name.js +1 -1
  223. package/lib/commands/project/create/project-template-archive.js +1 -1
  224. package/lib/commands/project/create/project-template-path.js +1 -1
  225. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  226. package/lib/commands/project/create/use-format-code.js +1 -1
  227. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  228. package/lib/commands/project/domain-routing-sync.js +1 -1
  229. package/lib/commands/project/index.js +1 -1
  230. package/lib/commands/project/upgrade.js +1 -1
  231. package/lib/commands/registry.js +1 -1
  232. package/lib/commands/role/delete.js +1 -1
  233. package/lib/commands/role/detail.js +1 -1
  234. package/lib/commands/role/index.js +1 -1
  235. package/lib/commands/role/list.js +1 -1
  236. package/lib/commands/role/shared.js +1 -1
  237. package/lib/commands/role/update.js +1 -1
  238. package/lib/commands/role/user-add.js +1 -1
  239. package/lib/commands/role/user-remove.js +1 -1
  240. package/lib/commands/role/user-resolve.js +1 -1
  241. package/lib/commands/rule/get.js +1 -1
  242. package/lib/commands/rule/index.js +1 -1
  243. package/lib/commands/rule/list.js +1 -1
  244. package/lib/commands/rule/set.js +1 -1
  245. package/lib/commands/rule/shared.js +1 -1
  246. package/lib/commands/run/index.js +1 -1
  247. package/lib/commands/schema.js +1 -1
  248. package/lib/commands/sql/create.js +1 -1
  249. package/lib/commands/sql/delete.js +1 -1
  250. package/lib/commands/sql/detail.js +1 -1
  251. package/lib/commands/sql/exec.js +1 -1
  252. package/lib/commands/sql/index.js +1 -1
  253. package/lib/commands/sql/list.js +1 -1
  254. package/lib/commands/sql/pull.js +1 -1
  255. package/lib/commands/sql/push.js +1 -1
  256. package/lib/commands/sql/shared.js +1 -1
  257. package/lib/commands/sql/status.js +1 -1
  258. package/lib/commands/sql/validate.js +1 -1
  259. package/lib/commands/task/index.js +1 -1
  260. package/lib/commands/task/status.js +1 -1
  261. package/lib/commands/tenant/index.js +1 -1
  262. package/lib/commands/tenant/members-list.js +1 -1
  263. package/lib/commands/tenant/shared.js +1 -1
  264. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  265. package/lib/commands/user-account/feishu-bind.js +1 -1
  266. package/lib/commands/user-account/index.js +1 -1
  267. package/lib/commands/workspace/add.js +1 -1
  268. package/lib/commands/workspace/index.js +1 -1
  269. package/lib/commands/workspace/remove.js +1 -1
  270. package/lib/config/domain-config.js +1 -1
  271. package/lib/config/project-domain-routing.js +1 -1
  272. package/lib/config/region-config.js +1 -1
  273. package/lib/config/schema.js +1 -1
  274. package/lib/constant/cdn.js +1 -1
  275. package/lib/constant/cli.js +1 -1
  276. package/lib/constant/defaults.js +1 -1
  277. package/lib/constant/domain.d.ts +1 -1
  278. package/lib/constant/domain.js +1 -1
  279. package/lib/constant/env.js +1 -1
  280. package/lib/constant/output.js +1 -1
  281. package/lib/constant/paths.js +1 -1
  282. package/lib/constant/region.js +1 -1
  283. package/lib/constant/risk.js +1 -1
  284. package/lib/constant/routing-profile.js +1 -1
  285. package/lib/context/app-resolver.js +1 -1
  286. package/lib/context/auth-resolver.js +1 -1
  287. package/lib/context/config-loader.js +1 -1
  288. package/lib/context.js +1 -1
  289. package/lib/core/alias-resolver.js +1 -1
  290. package/lib/core/api-client.d.ts +2 -2
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/kb-management-client.d.ts +19 -0
  304. package/lib/core/kb-management-client.js +1 -0
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  355. package/lib/utils/ai_config.js +1 -1
  356. package/lib/utils/apply-jq-filter.js +1 -1
  357. package/lib/utils/cdn-config.js +1 -1
  358. package/lib/utils/check-sdk-version.js +1 -1
  359. package/lib/utils/cli-version-check.js +1 -1
  360. package/lib/utils/cli-version-policy.js +1 -1
  361. package/lib/utils/config.js +1 -1
  362. package/lib/utils/entity-with-id.js +1 -1
  363. package/lib/utils/file-utils.js +1 -1
  364. package/lib/utils/guides-cdn.js +1 -1
  365. package/lib/utils/http-client.js +1 -1
  366. package/lib/utils/is-non-interactive.js +1 -1
  367. package/lib/utils/logger.js +1 -1
  368. package/lib/utils/params.js +1 -1
  369. package/lib/utils/platform.js +1 -1
  370. package/lib/utils/sleep.js +1 -1
  371. package/lib/utils/template-replacer.js +1 -1
  372. package/lib/utils/update-notice.js +1 -1
  373. package/lib/utils/version.js +1 -1
  374. package/lib/utils/with-active-cookie.js +1 -1
  375. package/lib/utils/write-cli-side-channel.js +1 -1
  376. package/package.json +1 -1
  377. package/skills/rabetbase/SKILL.md +2 -2
  378. package/skills/rabetbase/references/rabetbase-kb.md +7 -6
  379. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  380. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  381. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a272_0x17d927=a272_0x55dd;(function(_0x43eb2f,_0xfdec69){const _0x2be314=a272_0x55dd,_0x1f20a4=_0x43eb2f();while(!![]){try{const _0x5e73e8=-parseInt(_0x2be314(0x199))/0x1+parseInt(_0x2be314(0x1a6))/0x2+-parseInt(_0x2be314(0x1a1))/0x3+-parseInt(_0x2be314(0x18a))/0x4+-parseInt(_0x2be314(0x19b))/0x5*(parseInt(_0x2be314(0x1a3))/0x6)+parseInt(_0x2be314(0x194))/0x7*(parseInt(_0x2be314(0x1ab))/0x8)+-parseInt(_0x2be314(0x1a5))/0x9*(-parseInt(_0x2be314(0x189))/0xa);if(_0x5e73e8===_0xfdec69)break;else _0x1f20a4['push'](_0x1f20a4['shift']());}catch(_0x30de31){_0x1f20a4['push'](_0x1f20a4['shift']());}}}(a272_0x320c,0xc91fd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a272_0x320c(){const _0xe8413d=['Target\x20environment','defaultFormat','some','inherit','join','certificateDomain','10703VGEgGU','Config\x20key\x20(','apiDir','app','cookie','737371KzCxxi','kbDomain','1850rPDnOB','object','apiGroup','Risk\x20level','has','runtimeDomain','3698676IoZAIk','apps','12186ffHXqT','riskLevel','10980amNIdf','419352Fzjjwy','number','appDomain','map','env','6128uteJvW','region','skillDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','string','entries','localDomain','locale','format','keys','length','Auth\x20cookie','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Access\x20key','kbServiceDomain','trim','defaultApp','appcode','accessKey','fromEntries','userDomain','Default\x20page\x20size','API\x20directory\x20path','values','routing','apiDomain','toLowerCase','23450ceVqsO','2785008hIPbIF','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize'];a272_0x320c=function(){return _0xe8413d;};return a272_0x320c();}export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a272_0x17d927(0x180),a272_0x17d927(0x1b2),'format','riskLevel','region',a272_0x17d927(0x186),'userDomain',a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),a272_0x17d927(0x19a),'kbServiceDomain',a272_0x17d927(0x1a8),a272_0x17d927(0x1b1),a272_0x17d927(0x193)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x17d927(0x17f),a272_0x17d927(0x1aa),'locale',a272_0x17d927(0x1b3),a272_0x17d927(0x198),a272_0x17d927(0x180),'apiDir',a272_0x17d927(0x1ac),a272_0x17d927(0x182),a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),'kbDomain',a272_0x17d927(0x17c),'appDomain',a272_0x17d927(0x1b1),a272_0x17d927(0x193)]);function a272_0x55dd(_0x5c8bbb,_0x5e171c){_0x5c8bbb=_0x5c8bbb-0x17b;const _0x320cfc=a272_0x320c();let _0x55dd77=_0x320cfc[_0x5c8bbb];return _0x55dd77;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x476949){const _0x52ddef=a272_0x17d927;return[..._0x476949][_0x52ddef(0x192)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xbbe5ce){const _0x1fb7e6=a272_0x17d927;return TOP_LEVEL_CONFIG_KEYS[_0x1fb7e6(0x19f)](_0xbbe5ce);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4da5d2=a272_0x17d927;return _0x4da5d2(0x195)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x17d927(0x19d),'region':a272_0x17d927(0x1ac),'env':a272_0x17d927(0x1aa),'apiDir':a272_0x17d927(0x196),'cookie':a272_0x17d927(0x198),'accessKey':a272_0x17d927(0x180),'defaultFormat':a272_0x17d927(0x1b3),'pageSize':a272_0x17d927(0x18d),'riskLevel':a272_0x17d927(0x1a4),'locale':a272_0x17d927(0x1b2)};export function getAppProfileFlagDefs(){const _0x5a4690=a272_0x17d927;return[{'name':_0x5a4690(0x19d),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b7)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x5a4690(0x1aa),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18e),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x5a4690(0x1af),'description':_0x5a4690(0x184)},{'name':'cookie','type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b6),'hidden':!![]},{'name':_0x5a4690(0x180),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x17b),'hidden':!![]},{'name':_0x5a4690(0x18f),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x5a4690(0x1a7),'description':_0x5a4690(0x183)},{'name':_0x5a4690(0x1a4),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x19e),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5a4690(0x1b2),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1ae)}];}export function collectAppProfileOverrides(_0x2192b4){const _0x518574=a272_0x17d927,_0x1340d0={};for(const [_0x53eda8,_0x125d51]of Object[_0x518574(0x1b0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x23b24e=_0x2192b4(_0x53eda8);if(!_0x23b24e)continue;_0x1340d0[_0x125d51]=_0x125d51===_0x518574(0x18d)?Number(_0x23b24e):_0x23b24e;}return _0x1340d0;}export function buildAppProfileListFields(_0x55d46a){const _0x41b007=a272_0x17d927;return{'apiGroup':_0x55d46a['apiGroup']??null,'region':_0x55d46a['region']??null,'env':_0x55d46a['env']??null,'apiDir':_0x55d46a['apiDir']??null,'hasCookie':!!_0x55d46a[_0x41b007(0x198)],'hasAccessKey':!!_0x55d46a[_0x41b007(0x180)],'format':_0x55d46a[_0x41b007(0x1b3)]??null,'pageSize':_0x55d46a['pageSize']??null,'riskLevel':_0x55d46a[_0x41b007(0x1a4)]??null,'locale':_0x55d46a[_0x41b007(0x1b2)]??null};}export function buildAppDoctorFields(_0x766925,_0x1e2f30){const _0x2bed20=a272_0x17d927;return{'region':{'value':_0x766925[_0x2bed20(0x1ac)]||_0x1e2f30[_0x2bed20(0x1ac)],'source':_0x766925[_0x2bed20(0x1ac)]?_0x2bed20(0x197):_0x2bed20(0x191)},'env':{'value':_0x766925['env']||_0x1e2f30[_0x2bed20(0x1aa)],'source':_0x766925[_0x2bed20(0x1aa)]?_0x2bed20(0x197):_0x2bed20(0x191)},'apiDir':{'value':_0x766925[_0x2bed20(0x196)]||_0x1e2f30[_0x2bed20(0x196)],'source':_0x766925['apiDir']?_0x2bed20(0x197):_0x2bed20(0x191)},'cookie':{'value':_0x766925['cookie']||_0x1e2f30['cookie'],'source':_0x766925[_0x2bed20(0x198)]?_0x2bed20(0x197):_0x2bed20(0x191)},'accessKey':{'value':_0x766925[_0x2bed20(0x180)]||_0x1e2f30['accessKey'],'source':_0x766925[_0x2bed20(0x180)]?'app':_0x2bed20(0x191)}};}export function buildCanonicalAppConfig(_0x59283c,_0xe15fb){const _0x139766=a272_0x17d927,_0x241ab6=_0x59283c[_0x139766(0x1a9)](_0x5d75ab=>String(_0x5d75ab||'')[_0x139766(0x17d)]())['filter'](Boolean);if(_0x241ab6[_0x139766(0x1b5)]===0x0)return{};const _0x11f9a9={};for(const _0x2d44e5 of _0x241ab6){_0x11f9a9[_0x2d44e5]=_0xe15fb&&!isProduction(_0xe15fb)?{'appcode':_0x2d44e5,'env':_0xe15fb}:{'appcode':_0x2d44e5};}return _0x241ab6['length']>0x1?{'apps':_0x11f9a9,'defaultApp':_0x241ab6[0x0]}:{'apps':_0x11f9a9};}export function normalizeStoredDefaultApp(_0x15c889,_0x349433){const _0x1934c9=a272_0x17d927,_0x5d4e13=_0x15c889[_0x1934c9(0x1a2)]&&typeof _0x15c889['apps']==='object'?_0x15c889[_0x1934c9(0x1a2)]:{},_0x36ba71=Object[_0x1934c9(0x1b4)](_0x5d4e13);if(_0x36ba71[_0x1934c9(0x1b5)]<=0x1)return delete _0x15c889[_0x1934c9(0x17e)],undefined;const _0x2df2b8=typeof _0x15c889[_0x1934c9(0x17e)]===_0x1934c9(0x1af)&&_0x5d4e13[_0x15c889[_0x1934c9(0x17e)]]?_0x15c889[_0x1934c9(0x17e)]:undefined,_0x5d9609=_0x349433&&_0x5d4e13[_0x349433]?_0x349433:_0x2df2b8;if(_0x5d9609)return _0x15c889[_0x1934c9(0x17e)]=_0x5d9609,_0x5d9609;return delete _0x15c889[_0x1934c9(0x17e)],undefined;}export function buildCanonicalProjectConfig(_0x4a82a7,_0x32dfed){const _0x4451d3=a272_0x17d927,{appCodes:appCodes=[],env:_0x4b723c,metadata:_0x4de139}=_0x32dfed,_0x35a4d0={..._0x4a82a7,..._0x4de139||{}};delete _0x35a4d0[_0x4451d3(0x17f)],delete _0x35a4d0[_0x4451d3(0x197)];const _0x58106c=_0x4b723c||(typeof _0x35a4d0[_0x4451d3(0x1aa)]===_0x4451d3(0x1af)?_0x35a4d0[_0x4451d3(0x1aa)]:'')||DEFAULT_CONFIG_VALUES[_0x4451d3(0x1aa)];if(isProduction(_0x58106c))delete _0x35a4d0[_0x4451d3(0x1aa)];else _0x35a4d0['env']=_0x58106c;const _0x12c87d=buildCanonicalAppConfig(appCodes,_0x58106c);if(Object[_0x4451d3(0x1b4)](_0x12c87d)['length']>0x0){_0x35a4d0[_0x4451d3(0x1a2)]=_0x12c87d[_0x4451d3(0x1a2)];if(_0x12c87d[_0x4451d3(0x17e)])_0x35a4d0['defaultApp']=_0x12c87d['defaultApp'];else delete _0x35a4d0[_0x4451d3(0x17e)];}return normalizeConfigForWrite(_0x35a4d0);}function isRecord(_0x263504){const _0x59330e=a272_0x17d927;return!!_0x263504&&typeof _0x263504===_0x59330e(0x19c)&&!Array['isArray'](_0x263504);}export function normalizeConfigForWrite(_0x36a1fc){const _0x8a698d=a272_0x17d927,_0x5773b2={..._0x36a1fc},_0x406617=isRecord(_0x36a1fc[_0x8a698d(0x1a2)])?_0x36a1fc[_0x8a698d(0x1a2)]:undefined,_0x106ac5=_0x406617?Object[_0x8a698d(0x181)](Object[_0x8a698d(0x1b0)](_0x406617)['map'](([_0x147fa1,_0x3fd1a8])=>[_0x147fa1,isRecord(_0x3fd1a8)?{..._0x3fd1a8}:_0x3fd1a8])):undefined;if(_0x106ac5){const _0x402b19=typeof _0x5773b2[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)?_0x5773b2['env']:undefined,_0x48358f=Object['values'](_0x106ac5)[_0x8a698d(0x190)](_0x5f32e6=>isRecord(_0x5f32e6)&&typeof _0x5f32e6[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)&&isProduction(_0x5f32e6[_0x8a698d(0x1aa)]));if(_0x402b19&&isDaily(_0x402b19)&&_0x48358f){for(const _0x13eb95 of Object[_0x8a698d(0x185)](_0x106ac5)){if(!isRecord(_0x13eb95))continue;if(_0x13eb95[_0x8a698d(0x1aa)]===undefined)_0x13eb95[_0x8a698d(0x1aa)]=_0x402b19;}delete _0x5773b2[_0x8a698d(0x1aa)];}for(const _0x11f40a of Object[_0x8a698d(0x185)](_0x106ac5)){isRecord(_0x11f40a)&&typeof _0x11f40a['env']===_0x8a698d(0x1af)&&isProduction(_0x11f40a[_0x8a698d(0x1aa)])&&delete _0x11f40a[_0x8a698d(0x1aa)];}_0x5773b2[_0x8a698d(0x1a2)]=_0x106ac5;}return typeof _0x5773b2['env']===_0x8a698d(0x1af)&&isProduction(_0x5773b2[_0x8a698d(0x1aa)])&&delete _0x5773b2[_0x8a698d(0x1aa)],_0x5773b2;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a272_0x17d927(0x18b),'en-us':a272_0x17d927(0x18b),'en_us':a272_0x17d927(0x18b)};export function normalizeLocale(_0x3523ac){const _0x1a71ac=a272_0x17d927;if(!_0x3523ac)return null;return LOCALE_MAP[_0x3523ac[_0x1a71ac(0x188)]()]??null;}
1
+ const a272_0x370180=a272_0x22d8;(function(_0x2bd1e7,_0x9eedf7){const _0x411c24=a272_0x22d8,_0x1d7c12=_0x2bd1e7();while(!![]){try{const _0x53e198=parseInt(_0x411c24(0x1aa))/0x1+-parseInt(_0x411c24(0x1c3))/0x2+-parseInt(_0x411c24(0x1c6))/0x3+-parseInt(_0x411c24(0x1d7))/0x4+-parseInt(_0x411c24(0x1ab))/0x5+-parseInt(_0x411c24(0x1c2))/0x6+parseInt(_0x411c24(0x1bb))/0x7*(parseInt(_0x411c24(0x1b2))/0x8);if(_0x53e198===_0x9eedf7)break;else _0x1d7c12['push'](_0x1d7c12['shift']());}catch(_0x5bc4a7){_0x1d7c12['push'](_0x1d7c12['shift']());}}}(a272_0x49e7,0x444a5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey','locale',a272_0x370180(0x1c0),a272_0x370180(0x1d4),a272_0x370180(0x1a8),a272_0x370180(0x1bc),a272_0x370180(0x1a6),a272_0x370180(0x1c4),'runtimeDomain',a272_0x370180(0x1d1),a272_0x370180(0x1b3),a272_0x370180(0x1d2),'appDomain',a272_0x370180(0x1d6),'certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set(['appcode',a272_0x370180(0x1d0),'locale','format',a272_0x370180(0x1bf),a272_0x370180(0x1a4),a272_0x370180(0x1b0),a272_0x370180(0x1a8),a272_0x370180(0x1a6),'apiDomain',a272_0x370180(0x1ae),'skillDomain',a272_0x370180(0x1b3),a272_0x370180(0x1d2),a272_0x370180(0x1c1),'localDomain',a272_0x370180(0x1ad)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x4e58a6){const _0xdf3009=a272_0x370180;return[..._0x4e58a6][_0xdf3009(0x1cd)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x1edcdb){const _0x53f6ac=a272_0x370180;return TOP_LEVEL_CONFIG_KEYS[_0x53f6ac(0x1b5)](_0x1edcdb);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x41752c=a272_0x370180;return _0x41752c(0x1b1)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x370180(0x1c7),'region':a272_0x370180(0x1a8),'env':a272_0x370180(0x1d0),'apiDir':a272_0x370180(0x1b0),'cookie':'cookie','accessKey':a272_0x370180(0x1a4),'defaultFormat':a272_0x370180(0x1c0),'pageSize':a272_0x370180(0x1b4),'riskLevel':a272_0x370180(0x1d4),'locale':a272_0x370180(0x1b7)};function a272_0x22d8(_0x422414,_0x260d11){_0x422414=_0x422414-0x1a0;const _0x49e7ab=a272_0x49e7();let _0x22d8aa=_0x49e7ab[_0x422414];return _0x22d8aa;}function a272_0x49e7(){const _0x1e7c46=['localDomain','1726236UuUnKp','en-US','fromEntries','values','string','Auth\x20cookie','accessKey','zh-CN','userDomain','app','region','appcode','75577XyZfkG','2506735rzOCou','entries','certificateDomain','runtimeDomain','map','apiDir','Config\x20key\x20(','8UrjOcW','kbDomain','pageSize','has','Target\x20environment','locale','isArray','inherit','object','14367038PaecKr','routing','toLowerCase','API\x20directory\x20path','cookie','format','appDomain','2724438YNvwIl','441858DsZDTX','apiDomain','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','721158KijXXH','apiGroup','length','Default\x20page\x20size','defaultFormat','trim','defaultApp','join','filter','Access\x20key','env','skillDomain','kbServiceDomain','apps','riskLevel','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)'];a272_0x49e7=function(){return _0x1e7c46;};return a272_0x49e7();}export function getAppProfileFlagDefs(){const _0x4e57c5=a272_0x370180;return[{'name':_0x4e57c5(0x1c7),'type':'string','description':_0x4e57c5(0x1c5)},{'name':_0x4e57c5(0x1a8),'type':_0x4e57c5(0x1a2),'description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':_0x4e57c5(0x1a2),'description':_0x4e57c5(0x1b6),'enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4e57c5(0x1b0),'type':_0x4e57c5(0x1a2),'description':_0x4e57c5(0x1be)},{'name':_0x4e57c5(0x1bf),'type':_0x4e57c5(0x1a2),'description':_0x4e57c5(0x1a3),'hidden':!![]},{'name':'accessKey','type':'string','description':_0x4e57c5(0x1cf),'hidden':!![]},{'name':_0x4e57c5(0x1ca),'type':_0x4e57c5(0x1a2),'description':_0x4e57c5(0x1d5),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4e57c5(0x1b4),'type':'number','description':_0x4e57c5(0x1c9)},{'name':_0x4e57c5(0x1d4),'type':_0x4e57c5(0x1a2),'description':'Risk\x20level','enum':[...RISK_LEVEL_VALUES]},{'name':_0x4e57c5(0x1b7),'type':_0x4e57c5(0x1a2),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x419f3e){const _0x4f92b6=a272_0x370180,_0x217b00={};for(const [_0x1a20b0,_0xbfc27]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x3f161a=_0x419f3e(_0x1a20b0);if(!_0x3f161a)continue;_0x217b00[_0xbfc27]=_0xbfc27===_0x4f92b6(0x1b4)?Number(_0x3f161a):_0x3f161a;}return _0x217b00;}export function buildAppProfileListFields(_0x54ff76){const _0x44bce5=a272_0x370180;return{'apiGroup':_0x54ff76[_0x44bce5(0x1c7)]??null,'region':_0x54ff76['region']??null,'env':_0x54ff76[_0x44bce5(0x1d0)]??null,'apiDir':_0x54ff76['apiDir']??null,'hasCookie':!!_0x54ff76[_0x44bce5(0x1bf)],'hasAccessKey':!!_0x54ff76['accessKey'],'format':_0x54ff76[_0x44bce5(0x1c0)]??null,'pageSize':_0x54ff76['pageSize']??null,'riskLevel':_0x54ff76[_0x44bce5(0x1d4)]??null,'locale':_0x54ff76[_0x44bce5(0x1b7)]??null};}export function buildAppDoctorFields(_0x169936,_0x3231d4){const _0x3f0831=a272_0x370180;return{'region':{'value':_0x169936['region']||_0x3231d4[_0x3f0831(0x1a8)],'source':_0x169936[_0x3f0831(0x1a8)]?_0x3f0831(0x1a7):_0x3f0831(0x1b9)},'env':{'value':_0x169936[_0x3f0831(0x1d0)]||_0x3231d4[_0x3f0831(0x1d0)],'source':_0x169936['env']?_0x3f0831(0x1a7):_0x3f0831(0x1b9)},'apiDir':{'value':_0x169936['apiDir']||_0x3231d4[_0x3f0831(0x1b0)],'source':_0x169936['apiDir']?_0x3f0831(0x1a7):_0x3f0831(0x1b9)},'cookie':{'value':_0x169936[_0x3f0831(0x1bf)]||_0x3231d4[_0x3f0831(0x1bf)],'source':_0x169936[_0x3f0831(0x1bf)]?_0x3f0831(0x1a7):_0x3f0831(0x1b9)},'accessKey':{'value':_0x169936['accessKey']||_0x3231d4[_0x3f0831(0x1a4)],'source':_0x169936[_0x3f0831(0x1a4)]?_0x3f0831(0x1a7):_0x3f0831(0x1b9)}};}export function buildCanonicalAppConfig(_0x264fa0,_0x23247b){const _0x51390a=a272_0x370180,_0x33ac69=_0x264fa0['map'](_0x2efb0f=>String(_0x2efb0f||'')[_0x51390a(0x1cb)]())[_0x51390a(0x1ce)](Boolean);if(_0x33ac69[_0x51390a(0x1c8)]===0x0)return{};const _0x1b1af3={};for(const _0x19f026 of _0x33ac69){_0x1b1af3[_0x19f026]=_0x23247b&&!isProduction(_0x23247b)?{'appcode':_0x19f026,'env':_0x23247b}:{'appcode':_0x19f026};}return _0x33ac69[_0x51390a(0x1c8)]>0x1?{'apps':_0x1b1af3,'defaultApp':_0x33ac69[0x0]}:{'apps':_0x1b1af3};}export function normalizeStoredDefaultApp(_0x2027ce,_0x1cfc8c){const _0x49820d=a272_0x370180,_0x33fa41=_0x2027ce[_0x49820d(0x1d3)]&&typeof _0x2027ce[_0x49820d(0x1d3)]===_0x49820d(0x1ba)?_0x2027ce[_0x49820d(0x1d3)]:{},_0x26a930=Object['keys'](_0x33fa41);if(_0x26a930['length']<=0x1)return delete _0x2027ce[_0x49820d(0x1cc)],undefined;const _0x36fcc9=typeof _0x2027ce['defaultApp']===_0x49820d(0x1a2)&&_0x33fa41[_0x2027ce[_0x49820d(0x1cc)]]?_0x2027ce[_0x49820d(0x1cc)]:undefined,_0x794ffd=_0x1cfc8c&&_0x33fa41[_0x1cfc8c]?_0x1cfc8c:_0x36fcc9;if(_0x794ffd)return _0x2027ce[_0x49820d(0x1cc)]=_0x794ffd,_0x794ffd;return delete _0x2027ce[_0x49820d(0x1cc)],undefined;}export function buildCanonicalProjectConfig(_0x3c55d0,_0x4367e9){const _0x2e4f98=a272_0x370180,{appCodes:appCodes=[],env:_0x2aea9f,metadata:_0x22f471}=_0x4367e9,_0x58b2b4={..._0x3c55d0,..._0x22f471||{}};delete _0x58b2b4[_0x2e4f98(0x1a9)],delete _0x58b2b4[_0x2e4f98(0x1a7)];const _0x4568c7=_0x2aea9f||(typeof _0x58b2b4['env']===_0x2e4f98(0x1a2)?_0x58b2b4[_0x2e4f98(0x1d0)]:'')||DEFAULT_CONFIG_VALUES[_0x2e4f98(0x1d0)];if(isProduction(_0x4568c7))delete _0x58b2b4[_0x2e4f98(0x1d0)];else _0x58b2b4[_0x2e4f98(0x1d0)]=_0x4568c7;const _0x48a13f=buildCanonicalAppConfig(appCodes,_0x4568c7);if(Object['keys'](_0x48a13f)[_0x2e4f98(0x1c8)]>0x0){_0x58b2b4[_0x2e4f98(0x1d3)]=_0x48a13f[_0x2e4f98(0x1d3)];if(_0x48a13f[_0x2e4f98(0x1cc)])_0x58b2b4[_0x2e4f98(0x1cc)]=_0x48a13f[_0x2e4f98(0x1cc)];else delete _0x58b2b4[_0x2e4f98(0x1cc)];}return normalizeConfigForWrite(_0x58b2b4);}function isRecord(_0x2e7e2f){const _0x4911e4=a272_0x370180;return!!_0x2e7e2f&&typeof _0x2e7e2f===_0x4911e4(0x1ba)&&!Array[_0x4911e4(0x1b8)](_0x2e7e2f);}export function normalizeConfigForWrite(_0x19f24c){const _0x2a5d7d=a272_0x370180,_0x5a8a2e={..._0x19f24c},_0x343528=isRecord(_0x19f24c[_0x2a5d7d(0x1d3)])?_0x19f24c[_0x2a5d7d(0x1d3)]:undefined,_0x2bc5c2=_0x343528?Object[_0x2a5d7d(0x1a0)](Object[_0x2a5d7d(0x1ac)](_0x343528)[_0x2a5d7d(0x1af)](([_0x397bad,_0x46fa26])=>[_0x397bad,isRecord(_0x46fa26)?{..._0x46fa26}:_0x46fa26])):undefined;if(_0x2bc5c2){const _0x3e2084=typeof _0x5a8a2e[_0x2a5d7d(0x1d0)]===_0x2a5d7d(0x1a2)?_0x5a8a2e[_0x2a5d7d(0x1d0)]:undefined,_0x17121a=Object[_0x2a5d7d(0x1a1)](_0x2bc5c2)['some'](_0x2b7d8a=>isRecord(_0x2b7d8a)&&typeof _0x2b7d8a[_0x2a5d7d(0x1d0)]===_0x2a5d7d(0x1a2)&&isProduction(_0x2b7d8a[_0x2a5d7d(0x1d0)]));if(_0x3e2084&&isDaily(_0x3e2084)&&_0x17121a){for(const _0x48acf0 of Object[_0x2a5d7d(0x1a1)](_0x2bc5c2)){if(!isRecord(_0x48acf0))continue;if(_0x48acf0[_0x2a5d7d(0x1d0)]===undefined)_0x48acf0[_0x2a5d7d(0x1d0)]=_0x3e2084;}delete _0x5a8a2e[_0x2a5d7d(0x1d0)];}for(const _0x3ebfa5 of Object[_0x2a5d7d(0x1a1)](_0x2bc5c2)){isRecord(_0x3ebfa5)&&typeof _0x3ebfa5[_0x2a5d7d(0x1d0)]==='string'&&isProduction(_0x3ebfa5[_0x2a5d7d(0x1d0)])&&delete _0x3ebfa5[_0x2a5d7d(0x1d0)];}_0x5a8a2e[_0x2a5d7d(0x1d3)]=_0x2bc5c2;}return typeof _0x5a8a2e[_0x2a5d7d(0x1d0)]==='string'&&isProduction(_0x5a8a2e[_0x2a5d7d(0x1d0)])&&delete _0x5a8a2e[_0x2a5d7d(0x1d0)],_0x5a8a2e;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a272_0x370180(0x1a5),'zh_cn':a272_0x370180(0x1a5),'en':'en-US','en-us':a272_0x370180(0x1d8),'en_us':a272_0x370180(0x1d8)};export function normalizeLocale(_0x287183){const _0x56a64b=a272_0x370180;if(!_0x287183)return null;return LOCALE_MAP[_0x287183[_0x56a64b(0x1bd)]()]??null;}
@@ -1 +1 @@
1
- function a273_0x350a(){const _0xaef4ba=['8740hQSeeo','sub-app-react-demo.zip','sub-app-react-demo-','2993768AcqaAY','2755SdPPWe','422345TkiiNf','lovrabet','102906PIuTWQ','sub-app-react-demo-beta.zip','https://g.lovrabet.com','3095229fvekCY','769818PiwDzN','config/index.json','templates/projects','freeze','.zip','rabetbase-cli','1sWNNLA','25992963gXkedK'];a273_0x350a=function(){return _0xaef4ba;};return a273_0x350a();}const a273_0x423e0f=a273_0x54a8;(function(_0x1bc440,_0x172790){const _0x57f8c2=a273_0x54a8,_0x2c43aa=_0x1bc440();while(!![]){try{const _0x3b2864=parseInt(_0x57f8c2(0x131))/0x1*(parseInt(_0x57f8c2(0x13e))/0x2)+-parseInt(_0x57f8c2(0x13d))/0x3+-parseInt(_0x57f8c2(0x133))/0x4*(parseInt(_0x57f8c2(0x137))/0x5)+parseInt(_0x57f8c2(0x13a))/0x6+-parseInt(_0x57f8c2(0x138))/0x7+-parseInt(_0x57f8c2(0x136))/0x8+parseInt(_0x57f8c2(0x132))/0x9;if(_0x3b2864===_0x172790)break;else _0x2c43aa['push'](_0x2c43aa['shift']());}catch(_0xb7ed53){_0x2c43aa['push'](_0x2c43aa['shift']());}}}(a273_0x350a,0x9759d));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x423e0f(0x130),RABETBASE_CDN_CONFIG_ORIGIN=a273_0x423e0f(0x13c),CDN_CONFIG_PATH=a273_0x423e0f(0x13f),PROJECT_TEMPLATE_ASSET_PATH=a273_0x423e0f(0x12d),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x423e0f(0x12e)]({'release':a273_0x423e0f(0x134),'beta':a273_0x423e0f(0x13b)});function a273_0x54a8(_0x1b004b,_0x431069){_0x1b004b=_0x1b004b-0x12d;const _0x350a1d=a273_0x350a();let _0x54a824=_0x350a1d[_0x1b004b];return _0x54a824;}export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x1cef96=a273_0x423e0f;return''+getActiveCdn()[_0x1cef96(0x139)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x261aa7,_0x4e252b){const _0x3de9e7=a273_0x423e0f,_0x58f21f=_0x4e252b?_0x3de9e7(0x135)+_0x4e252b+_0x3de9e7(0x12f):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x261aa7];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x58f21f;}
1
+ const a273_0x4c42cd=a273_0x474b;(function(_0x38d3a0,_0x516832){const _0xb15bf5=a273_0x474b,_0x19dace=_0x38d3a0();while(!![]){try{const _0x470d37=-parseInt(_0xb15bf5(0xa3))/0x1+-parseInt(_0xb15bf5(0xa0))/0x2+parseInt(_0xb15bf5(0xa1))/0x3+parseInt(_0xb15bf5(0x9e))/0x4+parseInt(_0xb15bf5(0xa2))/0x5+parseInt(_0xb15bf5(0xa5))/0x6+-parseInt(_0xb15bf5(0x9d))/0x7*(parseInt(_0xb15bf5(0x9c))/0x8);if(_0x470d37===_0x516832)break;else _0x19dace['push'](_0x19dace['shift']());}catch(_0x29626a){_0x19dace['push'](_0x19dace['shift']());}}}(a273_0x58fe,0x5202b));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT='rabetbase-cli',RABETBASE_CDN_CONFIG_ORIGIN=a273_0x4c42cd(0xa8),CDN_CONFIG_PATH=a273_0x4c42cd(0xa7),PROJECT_TEMPLATE_ASSET_PATH='templates/projects',PROJECT_TEMPLATE_ARCHIVE_NAMES=Object['freeze']({'release':a273_0x4c42cd(0xa4),'beta':a273_0x4c42cd(0x9a)});export const RABETBASE_CDN_PROJECT_PATH=a273_0x4c42cd(0x9f)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x41aa0f=a273_0x4c42cd;return''+getActiveCdn()[_0x41aa0f(0xa6)]+RABETBASE_CDN_PROJECT_PATH;}function a273_0x474b(_0xf6f424,_0x3b46a2){_0xf6f424=_0xf6f424-0x9a;const _0x58fe9a=a273_0x58fe();let _0x474b23=_0x58fe9a[_0xf6f424];return _0x474b23;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x1dff21,_0xc641f5){const _0xb32bb7=a273_0x4c42cd,_0x53c70b=_0xc641f5?_0xb32bb7(0xa9)+_0xc641f5+_0xb32bb7(0x9b):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x1dff21];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x53c70b;}function a273_0x58fe(){const _0x1527aa=['/dist/','957158pfBdvF','1577253NkcMhH','1088990yoFhzK','221367hEWyMV','sub-app-react-demo.zip','3403350MMCLrE','lovrabet','config/index.json','https://g.lovrabet.com','sub-app-react-demo-','sub-app-react-demo-beta.zip','.zip','8240bCPmtK','4249HtyGhZ','1401188qwAcNJ'];a273_0x58fe=function(){return _0x1527aa;};return a273_0x58fe();}
@@ -1 +1 @@
1
- function a274_0x5d3e(){const _0x128ba8=['query','Keyword\x20filter','flowStatus','Select\x20app\x20profile\x20by\x20name','2652985ZQwhVU','Menu\x20label','string','stdin','Config\x20key','Reveal\x20sensitive\x20value','2943100nIChjr','expectPath','Force\x20non-interactive\x20mode\x20(CI)','description-file','Asynchronous\x20task\x20ID','target','Search\x20query','reveal','sqlcode','operation-type','Skip\x20import\x20generation','operationType','2629467ksQgCP','21733308VQUxPW','tags','Function\x20node','yes','functionNode','confirm','value','function-node','Comma-separated\x20metadata\x20codes','512631xVLHpY','task-id','flowType','expectParentId','appcode','taskId','rabetbase','3325840QGInXw','flow-status','Override\x20appcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','params','sqlname','enable-bff-save','dbId','type','Description\x20file','name','Watch\x20mode','all','Page\x20number','non-interactive','datasetcode','sql','Read\x20value\x20from\x20environment\x20variable','Name','verbose','652062QpMFgl','env','2RSrXAU','production\x20|\x20daily','schemas','global','output','sort','@lovrabet/rabetbase-cli','parentId','expected-count','Type\x20filter','DB\x20ID','Page\x20size','Parent\x20menu\x20id','Menu\x20sort\x20value','JSON\x20params','operation','meowKey','Comma-separated\x20menu\x20IDs','Expected\x20current\x20menu\x20path','Enable\x20Backend\x20Function\x20save','Verbose\x20output','fromEnv','title','Title','enableBffSave','sqlName','keyword','nonInteractive','json\x20|\x20pretty\x20|\x20compress','remote','boolean','Use\x20project\x20config\x20scope','watch','SQL\x20string','Dataset\x20code','flow-type','Output\x20path','help','Expected\x20affected\x20count','7FNmKPL','Use\x20remote','description','flow-code','Code\x20filter','code','dry-run','map','pagesize','topk','Flow\x20name','page','File\x20path','expectedChildrenCount','fromEntries','zh-CN\x20|\x20en-US','menu-ids','expect-parent-id','Flow\x20code','force','key','sql-name','Expected\x20current\x20parent\x20menu\x20id','dbid','flow-name','datasetCode','Maximum\x20search\x20hits','app','menuIds','Environment','Description','label','<code>','Apply\x20to\x20all','Operation\x20type','Clear','Schemas','flowCode','Preview\x20operation\x20without\x20executing','page-size','clear','format','locale','skip-imports','parent-id'];a274_0x5d3e=function(){return _0x128ba8;};return a274_0x5d3e();}const a274_0xbd501b=a274_0x3280;(function(_0x510b36,_0x292bb4){const _0x8caec8=a274_0x3280,_0xfee3bb=_0x510b36();while(!![]){try{const _0x13812f=parseInt(_0x8caec8(0x1c9))/0x1+parseInt(_0x8caec8(0x1e6))/0x2*(-parseInt(_0x8caec8(0x1bf))/0x3)+-parseInt(_0x8caec8(0x1b3))/0x4+-parseInt(_0x8caec8(0x1ad))/0x5+-parseInt(_0x8caec8(0x1e4))/0x6*(-parseInt(_0x8caec8(0x17c))/0x7)+-parseInt(_0x8caec8(0x1d0))/0x8+parseInt(_0x8caec8(0x1c0))/0x9;if(_0x13812f===_0x292bb4)break;else _0xfee3bb['push'](_0xfee3bb['shift']());}catch(_0x126368){_0xfee3bb['push'](_0xfee3bb['shift']());}}}(a274_0x5d3e,0x74959));export const CLI_BIN_NAME=a274_0xbd501b(0x1cf);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a274_0xbd501b(0x1ec);export const GLOBAL_FLAGS=[{'name':a274_0xbd501b(0x1cd),'meowKey':a274_0xbd501b(0x1cd),'type':'string','description':a274_0xbd501b(0x1d2),'hint':a274_0xbd501b(0x19c)},{'name':a274_0xbd501b(0x197),'meowKey':a274_0xbd501b(0x197),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ac),'hint':'<name>'},{'name':'env','meowKey':a274_0xbd501b(0x1e5),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x199),'hint':a274_0xbd501b(0x1e7)},{'name':a274_0xbd501b(0x1a5),'meowKey':a274_0xbd501b(0x1a5),'type':'string','description':'Output\x20format','hint':a274_0xbd501b(0x171)},{'name':'jq','meowKey':'jq','type':a274_0xbd501b(0x1af),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a274_0xbd501b(0x182),'meowKey':'dryRun','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1a2)},{'name':a274_0xbd501b(0x1c3),'meowKey':'yes','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1d3)},{'name':'non-interactive','meowKey':a274_0xbd501b(0x170),'type':'boolean','description':a274_0xbd501b(0x1b5)},{'name':a274_0xbd501b(0x1e9),'meowKey':a274_0xbd501b(0x1e9),'type':a274_0xbd501b(0x173),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x174)},{'name':'ci','meowKey':'ci','type':a274_0xbd501b(0x173),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0xbd501b(0x17a),'meowKey':a274_0xbd501b(0x17a),'type':a274_0xbd501b(0x173),'description':'Show\x20help'},{'name':a274_0xbd501b(0x1a6),'meowKey':a274_0xbd501b(0x1a6),'type':a274_0xbd501b(0x1af),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a274_0xbd501b(0x18b)},{'name':a274_0xbd501b(0x1da),'meowKey':'name','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e2),'hidden':!![]},{'name':a274_0xbd501b(0x16b),'meowKey':a274_0xbd501b(0x16b),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x16c),'hidden':!![]},{'name':a274_0xbd501b(0x1a9),'meowKey':a274_0xbd501b(0x1a9),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b9),'hidden':!![]},{'name':a274_0xbd501b(0x185),'meowKey':a274_0xbd501b(0x185),'type':'string','description':a274_0xbd501b(0x196),'hidden':!![]},{'name':'clear','meowKey':a274_0xbd501b(0x1a4),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19f),'hidden':!![]},{'name':a274_0xbd501b(0x175),'meowKey':a274_0xbd501b(0x175),'type':'boolean','description':a274_0xbd501b(0x1db),'hidden':!![]},{'name':a274_0xbd501b(0x1ea),'meowKey':a274_0xbd501b(0x1ea),'type':'string','description':a274_0xbd501b(0x179),'hidden':!![]},{'name':'params','meowKey':a274_0xbd501b(0x1d4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x163),'hidden':!![]},{'name':'datasetcode','meowKey':a274_0xbd501b(0x1df),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1dc),'meowKey':a274_0xbd501b(0x1dc),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19d),'hidden':!![]},{'name':a274_0xbd501b(0x1d6),'meowKey':a274_0xbd501b(0x16d),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x168),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a274_0xbd501b(0x1d8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ef),'hidden':!![]},{'name':'file','meowKey':'file','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x188),'hidden':!![]},{'name':a274_0xbd501b(0x17f),'meowKey':a274_0xbd501b(0x1a1),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x18e),'hidden':!![]},{'name':a274_0xbd501b(0x194),'meowKey':'flowName','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x186),'hidden':!![]},{'name':a274_0xbd501b(0x1d1),'meowKey':a274_0xbd501b(0x1ab),'type':a274_0xbd501b(0x1af),'description':'Flow\x20status','hidden':!![]},{'name':a274_0xbd501b(0x178),'meowKey':a274_0xbd501b(0x1cb),'type':a274_0xbd501b(0x1af),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0xbd501b(0x195),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1bb),'meowKey':a274_0xbd501b(0x1bb),'type':a274_0xbd501b(0x1af),'description':'SQL\x20code','hidden':!![]},{'name':a274_0xbd501b(0x191),'meowKey':a274_0xbd501b(0x16e),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':a274_0xbd501b(0x1d5),'meowKey':a274_0xbd501b(0x1d5),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a274_0xbd501b(0x1d7),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x193),'meowKey':a274_0xbd501b(0x193),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x17e),'meowKey':a274_0xbd501b(0x17e),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19a),'hidden':!![]},{'name':a274_0xbd501b(0x1b6),'meowKey':'descriptionFile','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1d9),'hidden':!![]},{'name':a274_0xbd501b(0x187),'meowKey':a274_0xbd501b(0x187),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1dd),'hidden':!![]},{'name':a274_0xbd501b(0x1a3),'meowKey':'pageSize','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'pagesize','meowKey':a274_0xbd501b(0x184),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'keyword','meowKey':a274_0xbd501b(0x16f),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1aa),'hidden':!![]},{'name':'code','meowKey':a274_0xbd501b(0x181),'type':'string','description':a274_0xbd501b(0x180),'hidden':!![]},{'name':a274_0xbd501b(0x1e0),'meowKey':'sql','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x176),'hidden':!![]},{'name':a274_0xbd501b(0x1e8),'meowKey':a274_0xbd501b(0x1e8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1a0),'hidden':!![]},{'name':'operation','meowKey':a274_0xbd501b(0x164),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1b8),'meowKey':'target','type':a274_0xbd501b(0x1af),'description':'Target\x20path','hidden':!![]},{'name':a274_0xbd501b(0x1a7),'meowKey':'skipImports','type':'boolean','description':a274_0xbd501b(0x1bd),'hidden':!![]},{'name':a274_0xbd501b(0x190),'meowKey':'key','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b1),'hidden':!![]},{'name':a274_0xbd501b(0x1c6),'meowKey':a274_0xbd501b(0x1c6),'type':a274_0xbd501b(0x1af),'description':'Config\x20value','hidden':!![]},{'name':a274_0xbd501b(0x1c1),'meowKey':a274_0xbd501b(0x1c1),'type':a274_0xbd501b(0x1af),'description':'Tags','hidden':!![]},{'name':a274_0xbd501b(0x1b0),'meowKey':a274_0xbd501b(0x1b0),'type':a274_0xbd501b(0x173),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a274_0xbd501b(0x16a),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e1),'hidden':!![]},{'name':'reveal','meowKey':a274_0xbd501b(0x1ba),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1b2),'hidden':!![]},{'name':a274_0xbd501b(0x18f),'meowKey':'force','type':a274_0xbd501b(0x173),'description':'Force\x20overwrite','hidden':!![]},{'name':a274_0xbd501b(0x1c5),'meowKey':a274_0xbd501b(0x1c5),'type':a274_0xbd501b(0x173),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a274_0xbd501b(0x172),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x17d),'hidden':!![]},{'name':a274_0xbd501b(0x1e3),'meowKey':a274_0xbd501b(0x1e3),'type':'boolean','description':a274_0xbd501b(0x169),'hidden':!![]},{'name':a274_0xbd501b(0x1ee),'meowKey':'expectedCount','type':'string','description':a274_0xbd501b(0x17b),'hidden':!![]},{'name':a274_0xbd501b(0x19b),'meowKey':a274_0xbd501b(0x19b),'type':'string','description':a274_0xbd501b(0x1ae),'hidden':!![]},{'name':a274_0xbd501b(0x1a8),'meowKey':a274_0xbd501b(0x1ed),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f2),'hidden':!![]},{'name':a274_0xbd501b(0x1eb),'meowKey':'sort','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x162),'hidden':!![]},{'name':a274_0xbd501b(0x18d),'meowKey':a274_0xbd501b(0x1cc),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x192),'hidden':!![]},{'name':'expect-path','meowKey':a274_0xbd501b(0x1b4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x167),'hidden':!![]},{'name':'expected-children-count','meowKey':a274_0xbd501b(0x189),'type':a274_0xbd501b(0x1af),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0xbd501b(0x18c),'meowKey':a274_0xbd501b(0x198),'type':'string','description':a274_0xbd501b(0x166),'hidden':!![]},{'name':a274_0xbd501b(0x1ca),'meowKey':a274_0xbd501b(0x1ce),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b7),'hidden':!![]},{'name':a274_0xbd501b(0x1bc),'meowKey':a274_0xbd501b(0x1be),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1c7),'meowKey':a274_0xbd501b(0x1c4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c2),'hidden':!![]},{'name':'codes','meowKey':'codes','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a274_0xbd501b(0x197),a274_0xbd501b(0x1e5),a274_0xbd501b(0x1a5),'jq',a274_0xbd501b(0x182),'yes',a274_0xbd501b(0x1de),'ci']);function a274_0x3280(_0x524687,_0x170374){_0x524687=_0x524687-0x162;const _0x5d3ee0=a274_0x5d3e();let _0x3280f4=_0x5d3ee0[_0x524687];return _0x3280f4;}export function buildMeowFlags(){const _0x2d8416=a274_0xbd501b;return Object[_0x2d8416(0x18a)](GLOBAL_FLAGS[_0x2d8416(0x183)](_0x426937=>[_0x426937[_0x2d8416(0x165)],{'type':_0x426937[_0x2d8416(0x1d8)]}]));}
1
+ const a274_0xd7836f=a274_0x104c;(function(_0x3cf59f,_0x173ebd){const _0x3596ae=a274_0x104c,_0x20ec8c=_0x3cf59f();while(!![]){try{const _0x31bf76=-parseInt(_0x3596ae(0x1b2))/0x1*(-parseInt(_0x3596ae(0x1ad))/0x2)+-parseInt(_0x3596ae(0x1b0))/0x3+-parseInt(_0x3596ae(0x1e2))/0x4*(parseInt(_0x3596ae(0x1de))/0x5)+-parseInt(_0x3596ae(0x19f))/0x6*(-parseInt(_0x3596ae(0x198))/0x7)+-parseInt(_0x3596ae(0x1e0))/0x8*(parseInt(_0x3596ae(0x160))/0x9)+-parseInt(_0x3596ae(0x1b6))/0xa*(parseInt(_0x3596ae(0x19e))/0xb)+parseInt(_0x3596ae(0x15e))/0xc;if(_0x31bf76===_0x173ebd)break;else _0x20ec8c['push'](_0x20ec8c['shift']());}catch(_0x375646){_0x20ec8c['push'](_0x20ec8c['shift']());}}}(a274_0x31b4,0x7d7bc));export const CLI_BIN_NAME=a274_0xd7836f(0x1dd);export const CLI_DISPLAY_NAME=a274_0xd7836f(0x18e);export const NPM_PACKAGE_NAME=a274_0xd7836f(0x1df);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a274_0xd7836f(0x1a8),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1d6),'hint':'<code>'},{'name':a274_0xd7836f(0x1b1),'meowKey':a274_0xd7836f(0x1b1),'type':a274_0xd7836f(0x1d1),'description':'Select\x20app\x20profile\x20by\x20name','hint':a274_0xd7836f(0x17c)},{'name':a274_0xd7836f(0x1c8),'meowKey':'env','type':'string','description':a274_0xd7836f(0x1e4),'hint':a274_0xd7836f(0x1b5)},{'name':a274_0xd7836f(0x197),'meowKey':a274_0xd7836f(0x197),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1c7),'hint':a274_0xd7836f(0x1d8)},{'name':'jq','meowKey':'jq','type':a274_0xd7836f(0x1d1),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a274_0xd7836f(0x16b)},{'name':a274_0xd7836f(0x1b4),'meowKey':a274_0xd7836f(0x1db),'type':'boolean','description':a274_0xd7836f(0x1af)},{'name':'yes','meowKey':'yes','type':a274_0xd7836f(0x1d3),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':a274_0xd7836f(0x173),'meowKey':a274_0xd7836f(0x1cb),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1a6)},{'name':'global','meowKey':a274_0xd7836f(0x162),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x150)},{'name':a274_0xd7836f(0x177),'meowKey':'project','type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x17f)},{'name':'ci','meowKey':'ci','type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x17d),'hidden':!![]},{'name':a274_0xd7836f(0x171),'meowKey':a274_0xd7836f(0x171),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1a9)},{'name':a274_0xd7836f(0x188),'meowKey':a274_0xd7836f(0x188),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x185),'hidden':!![],'hint':a274_0xd7836f(0x167)},{'name':'name','meowKey':a274_0xd7836f(0x1a5),'type':a274_0xd7836f(0x1d1),'description':'Name','hidden':!![]},{'name':'title','meowKey':'title','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1b7),'hidden':!![]},{'name':a274_0xd7836f(0x19b),'meowKey':a274_0xd7836f(0x19b),'type':'string','description':a274_0xd7836f(0x1bd),'hidden':!![]},{'name':a274_0xd7836f(0x155),'meowKey':a274_0xd7836f(0x155),'type':'string','description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a274_0xd7836f(0x14d),'meowKey':a274_0xd7836f(0x14d),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1a1),'hidden':!![]},{'name':a274_0xd7836f(0x189),'meowKey':a274_0xd7836f(0x189),'type':a274_0xd7836f(0x1d3),'description':'Watch\x20mode','hidden':!![]},{'name':a274_0xd7836f(0x1c1),'meowKey':a274_0xd7836f(0x1c1),'type':'string','description':a274_0xd7836f(0x18b),'hidden':!![]},{'name':'params','meowKey':'params','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x195),'hidden':!![]},{'name':'datasetcode','meowKey':a274_0xd7836f(0x180),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x172),'hidden':!![]},{'name':a274_0xd7836f(0x183),'meowKey':a274_0xd7836f(0x183),'type':'boolean','description':a274_0xd7836f(0x1a4),'hidden':!![]},{'name':a274_0xd7836f(0x153),'meowKey':a274_0xd7836f(0x192),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x18c),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':a274_0xd7836f(0x1e3),'meowKey':a274_0xd7836f(0x1e3),'type':a274_0xd7836f(0x1d1),'description':'Type\x20filter','hidden':!![]},{'name':a274_0xd7836f(0x199),'meowKey':'file','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1bf),'hidden':!![]},{'name':a274_0xd7836f(0x1cf),'meowKey':a274_0xd7836f(0x166),'type':'string','description':a274_0xd7836f(0x1ab),'hidden':!![]},{'name':a274_0xd7836f(0x14f),'meowKey':a274_0xd7836f(0x14c),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x17b),'hidden':!![]},{'name':a274_0xd7836f(0x1c0),'meowKey':'flowStatus','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1b8),'hidden':!![]},{'name':'flow-type','meowKey':a274_0xd7836f(0x19c),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x18f),'hidden':!![]},{'name':a274_0xd7836f(0x1a2),'meowKey':a274_0xd7836f(0x1aa),'type':a274_0xd7836f(0x1d1),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0xd7836f(0x1ae),'meowKey':a274_0xd7836f(0x1ae),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x19d),'hidden':!![]},{'name':a274_0xd7836f(0x187),'meowKey':a274_0xd7836f(0x1c9),'type':'string','description':'SQL\x20name','hidden':!![]},{'name':a274_0xd7836f(0x168),'meowKey':a274_0xd7836f(0x168),'type':a274_0xd7836f(0x1d1),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a274_0xd7836f(0x157),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x17e),'hidden':!![]},{'name':a274_0xd7836f(0x158),'meowKey':a274_0xd7836f(0x158),'type':'string','description':a274_0xd7836f(0x17e),'hidden':!![]},{'name':'description','meowKey':a274_0xd7836f(0x1ba),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x179),'hidden':!![]},{'name':a274_0xd7836f(0x161),'meowKey':a274_0xd7836f(0x152),'type':a274_0xd7836f(0x1d1),'description':'Description\x20file','hidden':!![]},{'name':a274_0xd7836f(0x156),'meowKey':a274_0xd7836f(0x156),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1ce),'hidden':!![]},{'name':a274_0xd7836f(0x19a),'meowKey':'pageSize','type':'string','description':a274_0xd7836f(0x1d9),'hidden':!![]},{'name':a274_0xd7836f(0x1c5),'meowKey':a274_0xd7836f(0x1c5),'type':a274_0xd7836f(0x1d1),'description':'Page\x20size','hidden':!![]},{'name':a274_0xd7836f(0x1dc),'meowKey':a274_0xd7836f(0x1dc),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x15f),'hidden':!![]},{'name':a274_0xd7836f(0x165),'meowKey':a274_0xd7836f(0x165),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x170),'hidden':!![]},{'name':a274_0xd7836f(0x1be),'meowKey':a274_0xd7836f(0x1be),'type':'string','description':a274_0xd7836f(0x1a7),'hidden':!![]},{'name':a274_0xd7836f(0x164),'meowKey':'schemas','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1c3),'hidden':!![]},{'name':a274_0xd7836f(0x1c6),'meowKey':a274_0xd7836f(0x1c6),'type':'string','description':a274_0xd7836f(0x1b9),'hidden':!![]},{'name':a274_0xd7836f(0x1d7),'meowKey':a274_0xd7836f(0x1d7),'type':'string','description':a274_0xd7836f(0x16a),'hidden':!![]},{'name':a274_0xd7836f(0x169),'meowKey':'skipImports','type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1da),'hidden':!![]},{'name':a274_0xd7836f(0x16c),'meowKey':a274_0xd7836f(0x16c),'type':a274_0xd7836f(0x1d1),'description':'Config\x20key','hidden':!![]},{'name':a274_0xd7836f(0x1b3),'meowKey':a274_0xd7836f(0x1b3),'type':'string','description':'Config\x20value','hidden':!![]},{'name':a274_0xd7836f(0x1ca),'meowKey':a274_0xd7836f(0x1ca),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1d2),'hidden':!![]},{'name':a274_0xd7836f(0x159),'meowKey':'stdin','type':a274_0xd7836f(0x1d3),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':a274_0xd7836f(0x1bb),'meowKey':'fromEnv','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x15d),'hidden':!![]},{'name':a274_0xd7836f(0x16e),'meowKey':'reveal','type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1a0),'hidden':!![]},{'name':a274_0xd7836f(0x175),'meowKey':a274_0xd7836f(0x175),'type':'boolean','description':a274_0xd7836f(0x190),'hidden':!![]},{'name':'confirm','meowKey':a274_0xd7836f(0x17a),'type':a274_0xd7836f(0x1d3),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a274_0xd7836f(0x191),'meowKey':a274_0xd7836f(0x191),'type':a274_0xd7836f(0x1d3),'description':'Use\x20remote','hidden':!![]},{'name':a274_0xd7836f(0x193),'meowKey':a274_0xd7836f(0x193),'type':a274_0xd7836f(0x1d3),'description':a274_0xd7836f(0x1c4),'hidden':!![]},{'name':a274_0xd7836f(0x1cd),'meowKey':a274_0xd7836f(0x1e1),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1a3),'hidden':!![]},{'name':a274_0xd7836f(0x163),'meowKey':a274_0xd7836f(0x163),'type':'string','description':a274_0xd7836f(0x182),'hidden':!![]},{'name':'parent-id','meowKey':a274_0xd7836f(0x176),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x15b),'hidden':!![]},{'name':'sort','meowKey':a274_0xd7836f(0x15a),'type':'string','description':a274_0xd7836f(0x194),'hidden':!![]},{'name':a274_0xd7836f(0x174),'meowKey':a274_0xd7836f(0x1bc),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x16d),'hidden':!![]},{'name':a274_0xd7836f(0x154),'meowKey':a274_0xd7836f(0x15c),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x16f),'hidden':!![]},{'name':a274_0xd7836f(0x18a),'meowKey':a274_0xd7836f(0x186),'type':a274_0xd7836f(0x1d1),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0xd7836f(0x18d),'meowKey':a274_0xd7836f(0x196),'type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x1d4),'hidden':!![]},{'name':a274_0xd7836f(0x1d0),'meowKey':'taskId','type':'string','description':a274_0xd7836f(0x151),'hidden':!![]},{'name':a274_0xd7836f(0x1ac),'meowKey':a274_0xd7836f(0x14e),'type':a274_0xd7836f(0x1d1),'description':'Operation\x20type','hidden':!![]},{'name':a274_0xd7836f(0x178),'meowKey':'functionNode','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x181),'hidden':!![]},{'name':'codes','meowKey':'codes','type':a274_0xd7836f(0x1d1),'description':a274_0xd7836f(0x184),'hidden':!![]}];function a274_0x104c(_0x77b725,_0x38c357){_0x77b725=_0x77b725-0x14c;const _0x31b485=a274_0x31b4();let _0x104cc6=_0x31b485[_0x77b725];return _0x104cc6;}export const PIPELINE_FLAG_NAMES=new Set(['appcode',a274_0xd7836f(0x1b1),'env',a274_0xd7836f(0x197),'jq',a274_0xd7836f(0x1b4),'yes',a274_0xd7836f(0x173),'ci']);export function buildMeowFlags(){const _0x97b45d=a274_0xd7836f;return Object[_0x97b45d(0x1cc)](GLOBAL_FLAGS[_0x97b45d(0x1d5)](_0x12fb54=>[_0x12fb54[_0x97b45d(0x1c2)],{'type':_0x12fb54[_0x97b45d(0x1e3)]}]));}function a274_0x31b4(){const _0x414319=['flow-status','output','meowKey','Schemas','Verbose\x20output','pagesize','operation','Output\x20format','env','sqlName','tags','nonInteractive','fromEntries','expected-count','Page\x20number','flow-code','task-id','string','Tags','boolean','Comma-separated\x20menu\x20IDs','map','Override\x20appcode','target','json\x20|\x20pretty\x20|\x20compress','Page\x20size','Skip\x20import\x20generation','dryRun','keyword','rabetbase','1495wsSOul','@lovrabet/rabetbase-cli','808iEyXpd','expectedCount','956KRqADQ','type','Environment','flowName','clear','operationType','flow-name','Use\x20global\x20config\x20scope','Asynchronous\x20task\x20ID','descriptionFile','enable-bff-save','expect-path','topk','page','dbId','dbid','stdin','sort','Parent\x20menu\x20id','expectPath','Read\x20value\x20from\x20environment\x20variable','15152040INNzqt','Keyword\x20filter','42813WSPpYf','description-file','global','label','schemas','code','flowCode','zh-CN\x20|\x20en-US','sqlname','skip-imports','Target\x20path','<expr>','key','Expected\x20current\x20parent\x20menu\x20id','reveal','Expected\x20current\x20menu\x20path','Code\x20filter','help','Dataset\x20code','non-interactive','expect-parent-id','force','parentId','project','function-node','Description','confirm','Flow\x20name','<name>','Alias\x20for\x20--non-interactive','DB\x20ID','Use\x20project\x20config\x20scope','datasetcode','Function\x20node','Menu\x20label','all','Comma-separated\x20metadata\x20codes','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','expectedChildrenCount','sql-name','locale','watch','expected-children-count','Output\x20path','Enable\x20Backend\x20Function\x20save','menu-ids','Rabetbase\x20CLI','Flow\x20type','Force\x20overwrite','remote','enableBffSave','verbose','Menu\x20sort\x20value','JSON\x20params','menuIds','format','7135667SuMNWT','file','page-size','query','flowType','SQL\x20code','167651zXxBlK','6jRMIfS','Reveal\x20sensitive\x20value','Clear','dataset-code','Expected\x20affected\x20count','Apply\x20to\x20all','name','Force\x20non-interactive\x20mode\x20(CI)','SQL\x20string','appcode','Show\x20help','datasetCode','Flow\x20code','operation-type','384qiiNRj','sqlcode','Preview\x20operation\x20without\x20executing','2797002MqeTPm','app','30QEMUmP','value','dry-run','production\x20|\x20daily','190PLYChl','Title','Flow\x20status','Operation\x20type','description','from-env','expectParentId','Search\x20query','sql','File\x20path'];a274_0x31b4=function(){return _0x414319;};return a274_0x31b4();}
@@ -1 +1 @@
1
- function a275_0x4f0e(){const _0x46c804=['en-US','12PEgndQ','4055105iLJIHO','2153253hUtzvt','production','5661208qnawjd','561800cRruXY','634688UQpANx','write','4CvFoGy','531708iFkfoY','compress','31953230ReNmbY','117ZYdtXE'];a275_0x4f0e=function(){return _0x46c804;};return a275_0x4f0e();}const a275_0x99f109=a275_0x2e53;(function(_0x1ea883,_0x5e3ef8){const _0x225ebf=a275_0x2e53,_0x362bd3=_0x1ea883();while(!![]){try{const _0x1aa7b0=-parseInt(_0x225ebf(0x9d))/0x1+-parseInt(_0x225ebf(0x9c))/0x2*(-parseInt(_0x225ebf(0xa4))/0x3)+-parseInt(_0x225ebf(0x9a))/0x4+parseInt(_0x225ebf(0xa3))/0x5+parseInt(_0x225ebf(0xa2))/0x6*(parseInt(_0x225ebf(0xa6))/0x7)+-parseInt(_0x225ebf(0xa7))/0x8*(-parseInt(_0x225ebf(0xa0))/0x9)+-parseInt(_0x225ebf(0x9f))/0xa;if(_0x1aa7b0===_0x5e3ef8)break;else _0x362bd3['push'](_0x362bd3['shift']());}catch(_0x2dfb14){_0x362bd3['push'](_0x362bd3['shift']());}}}(a275_0x4f0e,0xd9961));import{DEFAULT_API_DIR}from'../constant/paths.js';function a275_0x2e53(_0x5c364f,_0x4075f9){_0x5c364f=_0x5c364f-0x9a;const _0x4f0e84=a275_0x4f0e();let _0x2e5355=_0x4f0e84[_0x5c364f];return _0x2e5355;}export const DEFAULT_CONFIG_VALUES={'env':a275_0x99f109(0xa5),'format':a275_0x99f109(0x9e),'locale':a275_0x99f109(0xa1),'riskLevel':a275_0x99f109(0x9b),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x99f109(0x9e);
1
+ const a275_0x2d25b1=a275_0x2127;(function(_0x1899e7,_0x490769){const _0x14f1d3=a275_0x2127,_0x1dd120=_0x1899e7();while(!![]){try{const _0x30c986=-parseInt(_0x14f1d3(0xf5))/0x1+parseInt(_0x14f1d3(0xf3))/0x2+-parseInt(_0x14f1d3(0xf7))/0x3*(-parseInt(_0x14f1d3(0xf4))/0x4)+parseInt(_0x14f1d3(0xfb))/0x5+-parseInt(_0x14f1d3(0xf8))/0x6+parseInt(_0x14f1d3(0xf1))/0x7*(parseInt(_0x14f1d3(0xf9))/0x8)+parseInt(_0x14f1d3(0xef))/0x9*(-parseInt(_0x14f1d3(0xf0))/0xa);if(_0x30c986===_0x490769)break;else _0x1dd120['push'](_0x1dd120['shift']());}catch(_0x278379){_0x1dd120['push'](_0x1dd120['shift']());}}}(a275_0x4102,0xa24a9));function a275_0x2127(_0x266091,_0x5430dc){_0x266091=_0x266091-0xef;const _0x41021d=a275_0x4102();let _0x21278f=_0x41021d[_0x266091];return _0x21278f;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a275_0x2d25b1(0xf2),'format':a275_0x2d25b1(0xfa),'locale':'en-US','riskLevel':a275_0x2d25b1(0xf6),'apiDir':DEFAULT_API_DIR};function a275_0x4102(){const _0x20d633=['compress','4344345ZaqPQe','432ZWGuCI','115590lFchwa','1351RiiXRy','production','702234SRfBbM','667444KgOqRF','808310mcvOWx','write','9mkwByn','3119280LUTueK','34288sWpJki'];a275_0x4102=function(){return _0x20d633;};return a275_0x4102();}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x2d25b1(0xfa);
@@ -25,7 +25,7 @@ export declare const getApiDomain: () => string;
25
25
  export declare const getRuntimeDomain: () => string;
26
26
  export declare const getSkillDomain: () => string;
27
27
  export declare const getKbDomain: () => string;
28
- /** Resolve only the dedicated KB search service; never infer it from another service. */
28
+ /** Resolve only the dedicated KB management and search service; never infer it from another service. */
29
29
  export declare const getKbServiceDomain: () => string | undefined;
30
30
  export declare const getAppDomain: () => string;
31
31
  export declare const getActiveRegion: () => "global" | "id" | "cn";
@@ -1 +1 @@
1
- const a276_0x3187d7=a276_0x1a21;(function(_0x13039a,_0x8db064){const _0x440738=a276_0x1a21,_0x1cb80e=_0x13039a();while(!![]){try{const _0x4f7126=-parseInt(_0x440738(0xe9))/0x1*(parseInt(_0x440738(0xde))/0x2)+-parseInt(_0x440738(0xf8))/0x3*(-parseInt(_0x440738(0xdc))/0x4)+parseInt(_0x440738(0xfa))/0x5*(-parseInt(_0x440738(0xe8))/0x6)+parseInt(_0x440738(0xe0))/0x7+parseInt(_0x440738(0xf9))/0x8+parseInt(_0x440738(0xe5))/0x9*(-parseInt(_0x440738(0xea))/0xa)+parseInt(_0x440738(0xe7))/0xb;if(_0x4f7126===_0x8db064)break;else _0x1cb80e['push'](_0x1cb80e['shift']());}catch(_0x51c75f){_0x1cb80e['push'](_0x1cb80e['shift']());}}}(a276_0x335f,0xb4475));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x3d0a69=a276_0x1a21,_0xed5e0a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)]:_0xed5e0a['serviceDomains'][_0x3d0a69(0xe4)]??_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)];}export function initDomains(_0x59b596){const _0x4ace07=a276_0x1a21;customApiDomain=_0x59b596?.['apiDomain'],customUserDomain=_0x59b596?.['userDomain'],customRuntimeDomain=_0x59b596?.[_0x4ace07(0xf7)],customSkillDomain=_0x59b596?.[_0x4ace07(0xf5)],customKbDomain=_0x59b596?.['kbDomain'],customKbServiceDomain=_0x59b596?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x59b596?.[_0x4ace07(0xf6)]??!![],customAppDomain=_0x59b596?.['appDomain'],customLocalDomain=_0x59b596?.[_0x4ace07(0xf0)],customCertificateDomain=_0x59b596?.[_0x4ace07(0xf4)],customCdn=_0x59b596?.[_0x4ace07(0xef)],activeRegion=_0x59b596?.[_0x4ace07(0xeb)]??DEFAULT_LOVRABET_REGION;}function a276_0x1a21(_0xea68e,_0x3bec41){_0xea68e=_0xea68e-0xdc;const _0x335f4d=a276_0x335f();let _0x1a21e7=_0x335f4d[_0xea68e];return _0x1a21e7;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x3187d7(0xf3)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x3187d7(0xdf)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x3187d7(0xf1)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x4b4508=a276_0x3187d7;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x4b4508(0xdd)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x3187d7(0xe2)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a276_0x335f(){const _0xc86bb9=['app','trim','daily','84141pbuIgC','/web-app/app/','19193724SKKlRW','7546908Ysvlys','289538cgcSmu','1230jXahut','region','origin','hostname','serviceDomains','cdn','localDomain','skill','/app/','user','certificateDomain','skillDomain','allowOfficialKbServiceDefault','runtimeDomain','1770OcsHfB','5150040BDaJUC','5gMwzix','524HSiKcS','kbService','4UkdCkI','runtime','8815191essAkw','production'];a276_0x335f=function(){return _0xc86bb9;};return a276_0x335f();}export const getAppBaseUrl=_0x20f17f=>{const _0x3c6a08=a276_0x3187d7,_0x569116=encodeURIComponent(_0x20f17f[_0x3c6a08(0xe3)]());return isProduction(getEnv())?getAppDomain()+_0x3c6a08(0xf2)+_0x569116:getAppDomain()+_0x3c6a08(0xe6)+_0x569116;};export const getPublishedAppDomain=_0x426d34=>{const _0x1d63ab=a276_0x3187d7,_0x331515=new URL(getAppDomain());return _0x331515[_0x1d63ab(0xed)]=_0x426d34[_0x1d63ab(0xe3)]()+'.'+_0x331515[_0x1d63ab(0xed)],_0x331515[_0x1d63ab(0xec)];};
1
+ const a276_0x2ad58e=a276_0x28f4;(function(_0x9db4fb,_0x25db63){const _0x62549=a276_0x28f4,_0x3d7daf=_0x9db4fb();while(!![]){try{const _0x9ab043=parseInt(_0x62549(0xec))/0x1+parseInt(_0x62549(0xf3))/0x2*(-parseInt(_0x62549(0xf4))/0x3)+-parseInt(_0x62549(0xdd))/0x4+-parseInt(_0x62549(0xef))/0x5+parseInt(_0x62549(0xe7))/0x6*(-parseInt(_0x62549(0xe0))/0x7)+parseInt(_0x62549(0xe1))/0x8+-parseInt(_0x62549(0xee))/0x9*(-parseInt(_0x62549(0xde))/0xa);if(_0x9ab043===_0x25db63)break;else _0x3d7daf['push'](_0x3d7daf['shift']());}catch(_0x3b3147){_0x3d7daf['push'](_0x3d7daf['shift']());}}}(a276_0x4494,0x6f251));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x270353=a276_0x28f4,_0x56841f=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x56841f[_0x270353(0xeb)][_0x270353(0xe3)]:_0x56841f[_0x270353(0xeb)][_0x270353(0xf6)]??_0x56841f[_0x270353(0xeb)][_0x270353(0xe3)];}export function initDomains(_0x5c91a0){const _0x2067b6=a276_0x28f4;customApiDomain=_0x5c91a0?.['apiDomain'],customUserDomain=_0x5c91a0?.['userDomain'],customRuntimeDomain=_0x5c91a0?.[_0x2067b6(0xe4)],customSkillDomain=_0x5c91a0?.[_0x2067b6(0xdc)],customKbDomain=_0x5c91a0?.[_0x2067b6(0xe6)],customKbServiceDomain=_0x5c91a0?.[_0x2067b6(0xf2)],allowOfficialKbServiceDefault=_0x5c91a0?.[_0x2067b6(0xea)]??!![],customAppDomain=_0x5c91a0?.[_0x2067b6(0xf5)],customLocalDomain=_0x5c91a0?.[_0x2067b6(0xf7)],customCertificateDomain=_0x5c91a0?.[_0x2067b6(0xf8)],customCdn=_0x5c91a0?.[_0x2067b6(0xed)],activeRegion=_0x5c91a0?.['region']??DEFAULT_LOVRABET_REGION;}function a276_0x28f4(_0x5b9b46,_0x106d77){_0x5b9b46=_0x5b9b46-0xdc;const _0x449445=a276_0x4494();let _0x28f46a=_0x449445[_0x5b9b46];return _0x28f46a;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()['user'];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()['runtime'];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x2ad58e(0xdf)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()['kbService'];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x2ad58e(0xe5)];function a276_0x4494(){const _0x552560=['daily','localDomain','certificateDomain','skillDomain','1040744cTdLLa','10jUuiLX','skill','64869aVzKsP','710912UQiSVy','origin','production','runtimeDomain','app','kbDomain','198AQSBLW','/app/','trim','allowOfficialKbServiceDefault','serviceDomains','513887QPCDXG','cdn','16410582dvHqNN','2713120pxsKYT','hostname','runtime','kbServiceDomain','22alKxpg','235167ZKNLTZ','appDomain'];a276_0x4494=function(){return _0x552560;};return a276_0x4494();}export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x2960e2=a276_0x2ad58e;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x2960e2(0xf1)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x559c50=>{const _0xb906ee=a276_0x2ad58e,_0x3b98ef=encodeURIComponent(_0x559c50[_0xb906ee(0xe9)]());return isProduction(getEnv())?getAppDomain()+_0xb906ee(0xe8)+_0x3b98ef:getAppDomain()+'/web-app/app/'+_0x3b98ef;};export const getPublishedAppDomain=_0x12a3c5=>{const _0x4d01c9=a276_0x2ad58e,_0x542f8f=new URL(getAppDomain());return _0x542f8f[_0x4d01c9(0xf0)]=_0x12a3c5[_0x4d01c9(0xe9)]()+'.'+_0x542f8f[_0x4d01c9(0xf0)],_0x542f8f[_0x4d01c9(0xe2)];};
@@ -1 +1 @@
1
- const a277_0x492995=a277_0x285d;(function(_0x203d55,_0x4b6844){const _0x411fcd=a277_0x285d,_0x270200=_0x203d55();while(!![]){try{const _0x58ad21=-parseInt(_0x411fcd(0x1e5))/0x1*(parseInt(_0x411fcd(0x1ea))/0x2)+-parseInt(_0x411fcd(0x1e6))/0x3*(parseInt(_0x411fcd(0x1de))/0x4)+parseInt(_0x411fcd(0x1dd))/0x5+-parseInt(_0x411fcd(0x1df))/0x6+-parseInt(_0x411fcd(0x1e8))/0x7*(parseInt(_0x411fcd(0x1e0))/0x8)+parseInt(_0x411fcd(0x1e7))/0x9*(parseInt(_0x411fcd(0x1dc))/0xa)+-parseInt(_0x411fcd(0x1eb))/0xb*(-parseInt(_0x411fcd(0x1e2))/0xc);if(_0x58ad21===_0x4b6844)break;else _0x270200['push'](_0x270200['shift']());}catch(_0x2ffb9d){_0x270200['push'](_0x270200['shift']());}}}(a277_0x61a4,0x46d31));export const RABETBASE_ENV_VALUES=[a277_0x492995(0x1e3),a277_0x492995(0x1e4)];function a277_0x61a4(){const _0xe0d587=['22980WfgADI','production','daily','105767YRMfkC','3Mtufvk','126BOTWIU','35dJJkjW','online','6DOsxcw','3806RgNXeB','143090KoXbJe','1871175MJcDMm','1342748uWgizl','1692966DaOMhu','19048rkjpCB','development'];a277_0x61a4=function(){return _0xe0d587;};return a277_0x61a4();}export function normalizeEnv(_0x588c73){const _0x2d8bd8=a277_0x492995;return _0x588c73===_0x2d8bd8(0x1e9)?_0x2d8bd8(0x1e3):_0x588c73;}export function isProduction(_0x3c53e9){return normalizeEnv(_0x3c53e9)==='production';}function a277_0x285d(_0x2fb9b1,_0x5013f1){_0x2fb9b1=_0x2fb9b1-0x1dc;const _0x61a4c0=a277_0x61a4();let _0x285d53=_0x61a4c0[_0x2fb9b1];return _0x285d53;}export function isDaily(_0x34f3aa){const _0x486774=a277_0x492995;return normalizeEnv(_0x34f3aa)===_0x486774(0x1e4);}export function isDev(_0x28cc3b){const _0x3f12c8=a277_0x492995,_0x5e90ff=normalizeEnv(_0x28cc3b);return _0x5e90ff===_0x3f12c8(0x1e1)||_0x5e90ff==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x492995(0x1e3));export function getEnv(){return env;}export function initEnv(_0x2c2285){env=normalizeEnv(_0x2c2285);}
1
+ const a277_0x3b32c4=a277_0x16f9;function a277_0x276b(){const _0x1a8a82=['10izvYSR','786475ZBBqyt','777927REHYMO','online','87569mQNWzu','production','5474238ETJYvX','3005056KvZfFN','daily','7fJnccq','dev','20FbzKQE','development','1663736mNBECK','5318865JgZGRk'];a277_0x276b=function(){return _0x1a8a82;};return a277_0x276b();}(function(_0x1477e4,_0x1580ee){const _0x1b937e=a277_0x16f9,_0x3ce39f=_0x1477e4();while(!![]){try{const _0x50e114=parseInt(_0x1b937e(0xf5))/0x1+parseInt(_0x1b937e(0xf1))/0x2*(-parseInt(_0x1b937e(0xf3))/0x3)+-parseInt(_0x1b937e(0xef))/0x4+-parseInt(_0x1b937e(0xf2))/0x5+parseInt(_0x1b937e(0xf7))/0x6+-parseInt(_0x1b937e(0xeb))/0x7*(-parseInt(_0x1b937e(0xf8))/0x8)+parseInt(_0x1b937e(0xf0))/0x9*(parseInt(_0x1b937e(0xed))/0xa);if(_0x50e114===_0x1580ee)break;else _0x3ce39f['push'](_0x3ce39f['shift']());}catch(_0x8e5c2e){_0x3ce39f['push'](_0x3ce39f['shift']());}}}(a277_0x276b,0xa7e9a));export const RABETBASE_ENV_VALUES=[a277_0x3b32c4(0xf6),a277_0x3b32c4(0xea)];export function normalizeEnv(_0x15d76a){const _0x4631cf=a277_0x3b32c4;return _0x15d76a===_0x4631cf(0xf4)?_0x4631cf(0xf6):_0x15d76a;}function a277_0x16f9(_0x1b0baf,_0x217328){_0x1b0baf=_0x1b0baf-0xea;const _0x276bbd=a277_0x276b();let _0x16f965=_0x276bbd[_0x1b0baf];return _0x16f965;}export function isProduction(_0x3b7437){const _0x4d5885=a277_0x3b32c4;return normalizeEnv(_0x3b7437)===_0x4d5885(0xf6);}export function isDaily(_0x18635c){const _0x193e5f=a277_0x3b32c4;return normalizeEnv(_0x18635c)===_0x193e5f(0xea);}export function isDev(_0x348d66){const _0x4d557b=a277_0x3b32c4,_0x1cb4d8=normalizeEnv(_0x348d66);return _0x1cb4d8===_0x4d557b(0xee)||_0x1cb4d8===_0x4d557b(0xec);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x3b32c4(0xf6));export function getEnv(){return env;}export function initEnv(_0x3ad912){env=normalizeEnv(_0x3ad912);}
@@ -1 +1 @@
1
- function a278_0x21b9(_0xa41aad,_0x23c956){_0xa41aad=_0xa41aad-0xb1;const _0x5f18b6=a278_0x5f18();let _0x21b995=_0x5f18b6[_0xa41aad];return _0x21b995;}const a278_0x3da53c=a278_0x21b9;(function(_0x36140c,_0x188328){const _0x59c8eb=a278_0x21b9,_0x2b1408=_0x36140c();while(!![]){try{const _0x3c26d4=parseInt(_0x59c8eb(0xb2))/0x1*(-parseInt(_0x59c8eb(0xba))/0x2)+-parseInt(_0x59c8eb(0xbb))/0x3+-parseInt(_0x59c8eb(0xb7))/0x4*(-parseInt(_0x59c8eb(0xb1))/0x5)+parseInt(_0x59c8eb(0xb6))/0x6*(parseInt(_0x59c8eb(0xb9))/0x7)+parseInt(_0x59c8eb(0xb8))/0x8+parseInt(_0x59c8eb(0xb3))/0x9+parseInt(_0x59c8eb(0xb5))/0xa;if(_0x3c26d4===_0x188328)break;else _0x2b1408['push'](_0x2b1408['shift']());}catch(_0x224bf8){_0x2b1408['push'](_0x2b1408['shift']());}}}(a278_0x5f18,0x72748));function a278_0x5f18(){const _0xf123b1=['3044610JWlCYK','569562AbKJST','12YhFkYV','1927008tIsCzC','7dVYUqn','106706KJHjKZ','189924Trptzt','25965blalKo','16TgtVKK','6569289EdhKqd','pretty'];a278_0x5f18=function(){return _0xf123b1;};return a278_0x5f18();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a278_0x3da53c(0xb4),'compress'];
1
+ const a278_0x3ca31d=a278_0x2f70;(function(_0x3bfe8f,_0x207962){const _0x441621=a278_0x2f70,_0x12ec6c=_0x3bfe8f();while(!![]){try{const _0x42d1f5=-parseInt(_0x441621(0x1d7))/0x1+-parseInt(_0x441621(0x1d2))/0x2*(-parseInt(_0x441621(0x1d1))/0x3)+-parseInt(_0x441621(0x1d8))/0x4*(parseInt(_0x441621(0x1db))/0x5)+parseInt(_0x441621(0x1d0))/0x6*(parseInt(_0x441621(0x1d5))/0x7)+-parseInt(_0x441621(0x1dd))/0x8+-parseInt(_0x441621(0x1d9))/0x9*(parseInt(_0x441621(0x1da))/0xa)+parseInt(_0x441621(0x1d3))/0xb*(parseInt(_0x441621(0x1d6))/0xc);if(_0x42d1f5===_0x207962)break;else _0x12ec6c['push'](_0x12ec6c['shift']());}catch(_0x35780a){_0x12ec6c['push'](_0x12ec6c['shift']());}}}(a278_0x436c,0x23a87));function a278_0x2f70(_0x26f2bb,_0x9b0b08){_0x26f2bb=_0x26f2bb-0x1d0;const _0x436c47=a278_0x436c();let _0x2f7083=_0x436c47[_0x26f2bb];return _0x2f7083;}function a278_0x436c(){const _0x1f3cf2=['3190XtIkeL','52340zlewIU','pretty','2087224vgdVaz','407226ogvsSf','6JqYBHb','135070NJsicb','2409sUMorF','compress','7WEaRpE','28524nnGbja','145975agLQDD','28ZdKIFZ','2745qbzNVe'];a278_0x436c=function(){return _0x1f3cf2;};return a278_0x436c();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a278_0x3ca31d(0x1dc),a278_0x3ca31d(0x1d4)];
@@ -1 +1 @@
1
- function a279_0x429e(){const _0x25ddae=['19308ACGSYW','2iopZtG','2688684CEvMJp','37074jVQnwm','5PElVcg','1308324WgXDoh','253LNMgLa','2075820QOBIKv','./src/api','360606mQoOep','623SfhmNQ','40329eSOZmY','104BbLmiN'];a279_0x429e=function(){return _0x25ddae;};return a279_0x429e();}const a279_0x39933f=a279_0x33b3;(function(_0x662109,_0x5cd82e){const _0x5dea0d=a279_0x33b3,_0x235626=_0x662109();while(!![]){try{const _0x48c24a=parseInt(_0x5dea0d(0x1c5))/0x1*(parseInt(_0x5dea0d(0x1cd))/0x2)+parseInt(_0x5dea0d(0x1c9))/0x3+-parseInt(_0x5dea0d(0x1c6))/0x4*(parseInt(_0x5dea0d(0x1c8))/0x5)+parseInt(_0x5dea0d(0x1c7))/0x6*(parseInt(_0x5dea0d(0x1c1))/0x7)+parseInt(_0x5dea0d(0x1c3))/0x8*(-parseInt(_0x5dea0d(0x1c2))/0x9)+-parseInt(_0x5dea0d(0x1cb))/0xa+parseInt(_0x5dea0d(0x1ca))/0xb*(-parseInt(_0x5dea0d(0x1c4))/0xc);if(_0x48c24a===_0x5cd82e)break;else _0x235626['push'](_0x235626['shift']());}catch(_0x206ed7){_0x235626['push'](_0x235626['shift']());}}}(a279_0x429e,0x5abb0));function a279_0x33b3(_0x396db7,_0x5051a1){_0x396db7=_0x396db7-0x1c1;const _0x429eb8=a279_0x429e();let _0x33b3e7=_0x429eb8[_0x396db7];return _0x33b3e7;}export const DEFAULT_API_DIR=a279_0x39933f(0x1cc);
1
+ (function(_0x2424f2,_0x55b4b7){const _0x478578=a279_0x4b6b,_0x482351=_0x2424f2();while(!![]){try{const _0x475f7a=parseInt(_0x478578(0x1c9))/0x1+parseInt(_0x478578(0x1cb))/0x2*(-parseInt(_0x478578(0x1c8))/0x3)+-parseInt(_0x478578(0x1ce))/0x4*(parseInt(_0x478578(0x1d0))/0x5)+-parseInt(_0x478578(0x1cd))/0x6+parseInt(_0x478578(0x1cf))/0x7*(parseInt(_0x478578(0x1ca))/0x8)+parseInt(_0x478578(0x1cc))/0x9+parseInt(_0x478578(0x1c6))/0xa*(parseInt(_0x478578(0x1c7))/0xb);if(_0x475f7a===_0x55b4b7)break;else _0x482351['push'](_0x482351['shift']());}catch(_0x33f3a5){_0x482351['push'](_0x482351['shift']());}}}(a279_0x4a6b,0x40b0f));function a279_0x4b6b(_0x13eb88,_0x5a5cd4){_0x13eb88=_0x13eb88-0x1c6;const _0x4a6bd3=a279_0x4a6b();let _0x4b6bb7=_0x4a6bd3[_0x13eb88];return _0x4b6bb7;}export const DEFAULT_API_DIR='./src/api';function a279_0x4a6b(){const _0x42d286=['1240674VTkgay','383132IWmykp','5222IahclY','5dXlqzT','2895890OYxbHL','11jOrwTn','2589BzyCeO','324066GmVETs','632UMKctr','464mamJfw','856476ABBLRa'];a279_0x4a6b=function(){return _0x42d286;};return a279_0x4a6b();}
@@ -1 +1 @@
1
- (function(_0x57081a,_0x3219b3){const _0x251dbb=a280_0x301a,_0x4ec262=_0x57081a();while(!![]){try{const _0x509345=parseInt(_0x251dbb(0x1f0))/0x1+parseInt(_0x251dbb(0x1f3))/0x2+parseInt(_0x251dbb(0x1f7))/0x3+parseInt(_0x251dbb(0x1f8))/0x4+parseInt(_0x251dbb(0x1f6))/0x5+parseInt(_0x251dbb(0x1f1))/0x6+-parseInt(_0x251dbb(0x1f4))/0x7;if(_0x509345===_0x3219b3)break;else _0x4ec262['push'](_0x4ec262['shift']());}catch(_0x33df06){_0x4ec262['push'](_0x4ec262['shift']());}}}(a280_0x1e54,0x1c79e));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a280_0x1e54(){const _0x4a2b75=['803508SyQyAt','49402jQPTuZ','169668efcDRa','string','120438lXVxdE','2181410qdXvLP','includes','40255SWQrkJ','244323xXzqEw'];a280_0x1e54=function(){return _0x4a2b75;};return a280_0x1e54();}function a280_0x301a(_0x66d7ed,_0x53c5a4){_0x66d7ed=_0x66d7ed-0x1f0;const _0x1e546e=a280_0x1e54();let _0x301a5d=_0x1e546e[_0x66d7ed];return _0x301a5d;}export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x556049){const _0x1bd047=a280_0x301a;return typeof _0x556049===_0x1bd047(0x1f2)&&LOVRABET_REGION_VALUES[_0x1bd047(0x1f5)](_0x556049);}export function isEnabledLovrabetRegion(_0x34ecc1){return typeof _0x34ecc1==='string'&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x34ecc1);}export function normalizeLovrabetRegion(_0x23d3af){const _0x3a72f1=a280_0x301a;if(typeof _0x23d3af!==_0x3a72f1(0x1f2))return undefined;const _0x240343=REGION_ALIASES[_0x23d3af]??_0x23d3af;return isLovrabetRegion(_0x240343)?_0x240343:undefined;}export function isInvalidLovrabetRegion(_0x2bfeef){return _0x2bfeef!==undefined&&_0x2bfeef!==null&&_0x2bfeef!==''&&normalizeLovrabetRegion(_0x2bfeef)===undefined;}
1
+ function a280_0x4979(_0x3b3610,_0x3b7603){_0x3b3610=_0x3b3610-0x80;const _0x69ce50=a280_0x69ce();let _0x49796b=_0x69ce50[_0x3b3610];return _0x49796b;}(function(_0x23c1d7,_0x230108){const _0x1ebcb8=a280_0x4979,_0x2e6e29=_0x23c1d7();while(!![]){try{const _0x28f770=parseInt(_0x1ebcb8(0x82))/0x1*(parseInt(_0x1ebcb8(0x84))/0x2)+-parseInt(_0x1ebcb8(0x89))/0x3+-parseInt(_0x1ebcb8(0x85))/0x4+-parseInt(_0x1ebcb8(0x83))/0x5+parseInt(_0x1ebcb8(0x8a))/0x6+parseInt(_0x1ebcb8(0x81))/0x7+-parseInt(_0x1ebcb8(0x87))/0x8*(-parseInt(_0x1ebcb8(0x80))/0x9);if(_0x28f770===_0x230108)break;else _0x2e6e29['push'](_0x2e6e29['shift']());}catch(_0x346b91){_0x2e6e29['push'](_0x2e6e29['shift']());}}}(a280_0x69ce,0xc464a));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x317a69){const _0x23a4cf=a280_0x4979;return typeof _0x317a69===_0x23a4cf(0x86)&&LOVRABET_REGION_VALUES[_0x23a4cf(0x88)](_0x317a69);}export function isEnabledLovrabetRegion(_0x1512ab){const _0x2a84cb=a280_0x4979;return typeof _0x1512ab==='string'&&ENABLED_LOVRABET_REGION_VALUES[_0x2a84cb(0x88)](_0x1512ab);}export function normalizeLovrabetRegion(_0x4b70d6){if(typeof _0x4b70d6!=='string')return undefined;const _0x37a7a4=REGION_ALIASES[_0x4b70d6]??_0x4b70d6;return isLovrabetRegion(_0x37a7a4)?_0x37a7a4:undefined;}function a280_0x69ce(){const _0x2a1374=['652169xAqdcW','4YuoavG','4230935ZeJPDz','170098KVAnkV','6416608xkhDZD','string','24774976oQikNo','includes','894363YlbDRY','135906WuEGrP','9SaPsTa'];a280_0x69ce=function(){return _0x2a1374;};return a280_0x69ce();}export function isInvalidLovrabetRegion(_0x17d90c){return _0x17d90c!==undefined&&_0x17d90c!==null&&_0x17d90c!==''&&normalizeLovrabetRegion(_0x17d90c)===undefined;}
@@ -1 +1 @@
1
- function a281_0x3466(){const _0x3eae62=['548232xBxIPB','99232ymPIMp','write','read','136540QEODgD','792HQpVfI','1727HuhPcV','152406GTNhVF','867542ECOBUs','7QnhzgN','4nFtYWu','4810775JFoGGn','5570346GSTxfn'];a281_0x3466=function(){return _0x3eae62;};return a281_0x3466();}const a281_0x50da80=a281_0x1db2;(function(_0x42bb51,_0x5b88a5){const _0x35655d=a281_0x1db2,_0x2ac07b=_0x42bb51();while(!![]){try{const _0x4752e1=-parseInt(_0x35655d(0x107))/0x1+-parseInt(_0x35655d(0x106))/0x2+parseInt(_0x35655d(0x10c))/0x3+parseInt(_0x35655d(0x109))/0x4*(-parseInt(_0x35655d(0x10a))/0x5)+-parseInt(_0x35655d(0x10b))/0x6*(parseInt(_0x35655d(0x108))/0x7)+-parseInt(_0x35655d(0x10d))/0x8*(-parseInt(_0x35655d(0x104))/0x9)+-parseInt(_0x35655d(0x110))/0xa*(-parseInt(_0x35655d(0x105))/0xb);if(_0x4752e1===_0x5b88a5)break;else _0x2ac07b['push'](_0x2ac07b['shift']());}catch(_0x1744e4){_0x2ac07b['push'](_0x2ac07b['shift']());}}}(a281_0x3466,0x8e803));function a281_0x1db2(_0x2f2783,_0x3fd152){_0x2f2783=_0x2f2783-0x104;const _0x3466fd=a281_0x3466();let _0x1db26e=_0x3466fd[_0x2f2783];return _0x1db26e;}export const RISK_LEVEL_VALUES=[a281_0x50da80(0x10f),a281_0x50da80(0x10e),'high-risk-write'];
1
+ function a281_0x1e71(){const _0x22d8b4=['5569040NkDGKK','3647444mJQUvM','write','3GcXAZd','8200350ybUmDC','5gaSdmV','9bSrzBF','796166AGGlpi','843219WyyPFO','279518hmnyQL','3270010MhLeJg','high-risk-write'];a281_0x1e71=function(){return _0x22d8b4;};return a281_0x1e71();}const a281_0x36315e=a281_0x2d5b;(function(_0x388538,_0x392437){const _0x38bdee=a281_0x2d5b,_0x5b3fd8=_0x388538();while(!![]){try{const _0x486d76=parseInt(_0x38bdee(0x111))/0x1+parseInt(_0x38bdee(0x112))/0x2*(-parseInt(_0x38bdee(0x10c))/0x3)+-parseInt(_0x38bdee(0x10a))/0x4*(-parseInt(_0x38bdee(0x10e))/0x5)+-parseInt(_0x38bdee(0x10d))/0x6+parseInt(_0x38bdee(0x110))/0x7+parseInt(_0x38bdee(0x109))/0x8+parseInt(_0x38bdee(0x10f))/0x9*(-parseInt(_0x38bdee(0x113))/0xa);if(_0x486d76===_0x392437)break;else _0x5b3fd8['push'](_0x5b3fd8['shift']());}catch(_0x14f162){_0x5b3fd8['push'](_0x5b3fd8['shift']());}}}(a281_0x1e71,0xb2947));function a281_0x2d5b(_0x291255,_0x259285){_0x291255=_0x291255-0x109;const _0x1e7147=a281_0x1e71();let _0x2d5b8a=_0x1e7147[_0x291255];return _0x2d5b8a;}export const RISK_LEVEL_VALUES=['read',a281_0x36315e(0x10b),a281_0x36315e(0x114)];
@@ -1 +1 @@
1
- (function(_0x2eae6c,_0x49b09a){const _0x396c0f=a282_0x39d4,_0x6df51d=_0x2eae6c();while(!![]){try{const _0x5c48d4=parseInt(_0x396c0f(0x67))/0x1*(-parseInt(_0x396c0f(0x6a))/0x2)+-parseInt(_0x396c0f(0x6c))/0x3*(parseInt(_0x396c0f(0x70))/0x4)+-parseInt(_0x396c0f(0x66))/0x5*(parseInt(_0x396c0f(0x6e))/0x6)+parseInt(_0x396c0f(0x6d))/0x7*(parseInt(_0x396c0f(0x65))/0x8)+parseInt(_0x396c0f(0x71))/0x9+-parseInt(_0x396c0f(0x6b))/0xa+parseInt(_0x396c0f(0x72))/0xb*(parseInt(_0x396c0f(0x68))/0xc);if(_0x5c48d4===_0x49b09a)break;else _0x6df51d['push'](_0x6df51d['shift']());}catch(_0x485df4){_0x6df51d['push'](_0x6df51d['shift']());}}}(a282_0x47b4,0xf3667));import{OFFICIAL_ROUTING_PROFILES as a282_0x7b7834,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x39d4(_0x4dcdca,_0x442d97){_0x4dcdca=_0x4dcdca-0x65;const _0x47b484=a282_0x47b4();let _0x39d491=_0x47b484[_0x4dcdca];return _0x39d491;}function a282_0x47b4(){const _0x535ff8=['\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','Official\x20routing\x20for\x20region\x20\x22','cdn','24IBgYza','4536085DpBcTV','1jlYQFO','57048bfreex','libraries','3178594QOPgzy','11410580hclCvK','312159Rdhvck','4396196SKHgZg','6xwFcar','lovrabet','76hgsUka','7633782ZWnBTH','8976PAetaV'];a282_0x47b4=function(){return _0x535ff8;};return a282_0x47b4();}export const OFFICIAL_ROUTING_PROFILES=a282_0x7b7834;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x489957){return OFFICIAL_ROUTING_PROFILES[_0x489957];}export function getOfficialRoutingCdn(_0x43b7e6){const _0x7e07a5=a282_0x39d4,_0x38c878=getOfficialRoutingProfile(_0x43b7e6)[_0x7e07a5(0x75)];if(!_0x38c878[_0x7e07a5(0x6f)])throw new Error(_0x7e07a5(0x74)+_0x43b7e6+_0x7e07a5(0x73));return{'libraries':_0x38c878[_0x7e07a5(0x69)],'lovrabet':_0x38c878[_0x7e07a5(0x6f)]};}
1
+ (function(_0x1db2b3,_0x20d1fb){const _0x5c6170=a282_0x4c12,_0x4d238a=_0x1db2b3();while(!![]){try{const _0x5ab3e0=-parseInt(_0x5c6170(0xa2))/0x1*(parseInt(_0x5c6170(0x99))/0x2)+parseInt(_0x5c6170(0x9d))/0x3+parseInt(_0x5c6170(0x9c))/0x4*(-parseInt(_0x5c6170(0x9e))/0x5)+parseInt(_0x5c6170(0x9b))/0x6+-parseInt(_0x5c6170(0x9a))/0x7+-parseInt(_0x5c6170(0xa4))/0x8*(parseInt(_0x5c6170(0xa1))/0x9)+parseInt(_0x5c6170(0xa0))/0xa;if(_0x5ab3e0===_0x20d1fb)break;else _0x4d238a['push'](_0x4d238a['shift']());}catch(_0x1acebb){_0x4d238a['push'](_0x4d238a['shift']());}}}(a282_0x974f,0x82b30));import{OFFICIAL_ROUTING_PROFILES as a282_0x1f57dc,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x974f(){const _0x4db1d6=['7914QQSens','1717898tIkwwW','331080ViEMPs','164kzkcqI','3160893QPfinZ','90995VQrsLX','lovrabet','11663800ddTpCf','63RXaCFZ','113HfWDyi','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','344152cYiBgP','cdn'];a282_0x974f=function(){return _0x4db1d6;};return a282_0x974f();}function a282_0x4c12(_0x6af943,_0x565dc1){_0x6af943=_0x6af943-0x99;const _0x974fc=a282_0x974f();let _0x4c12b7=_0x974fc[_0x6af943];return _0x4c12b7;}export const OFFICIAL_ROUTING_PROFILES=a282_0x1f57dc;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x3de6b3){return OFFICIAL_ROUTING_PROFILES[_0x3de6b3];}export function getOfficialRoutingCdn(_0x152093){const _0x3bc7b2=a282_0x4c12,_0x53a741=getOfficialRoutingProfile(_0x152093)[_0x3bc7b2(0xa5)];if(!_0x53a741[_0x3bc7b2(0x9f)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x152093+_0x3bc7b2(0xa3));return{'libraries':_0x53a741['libraries'],'lovrabet':_0x53a741['lovrabet']};}
@@ -1 +1 @@
1
- (function(_0x19a12b,_0x3462e6){const _0x25d31c=a283_0x1a17,_0x1790d4=_0x19a12b();while(!![]){try{const _0x116854=parseInt(_0x25d31c(0x206))/0x1+parseInt(_0x25d31c(0x213))/0x2+parseInt(_0x25d31c(0x20a))/0x3*(parseInt(_0x25d31c(0x1f3))/0x4)+parseInt(_0x25d31c(0x1ff))/0x5*(parseInt(_0x25d31c(0x207))/0x6)+parseInt(_0x25d31c(0x20b))/0x7+-parseInt(_0x25d31c(0x201))/0x8+-parseInt(_0x25d31c(0x208))/0x9;if(_0x116854===_0x3462e6)break;else _0x1790d4['push'](_0x1790d4['shift']());}catch(_0x35c26e){_0x1790d4['push'](_0x1790d4['shift']());}}}(a283_0x3385,0x68310));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a283_0x3385(){const _0xb563d0=['trim','riskLevel','cookie','108680SZDJPx','37782BpcmWp','17009127WYtrSn','locale','793794izLPPf','5555368lsdSzT','APP','string','daily','env','value','RISK_LEVEL','format','477280SZwruT','accessKey','PAGE_SIZE','ENV','pageSize','keys','defaultApp','region','COOKIE','12sEkciO','object','length','entries','projectPath','apiDir','high-risk-write','apps','appcode','projectConfig','true','source','565dYstME','globalConfig','2637024TWnfcH','FORMAT'];a283_0x3385=function(){return _0xb563d0;};return a283_0x3385();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x15260d){const _0x4b920c=a283_0x1a17;return typeof _0x15260d==='string'&&_0x15260d[_0x4b920c(0x203)]()?_0x15260d[_0x4b920c(0x203)]():undefined;}function a283_0x1a17(_0x316607,_0x27e89f){_0x316607=_0x316607-0x1f1;const _0x338567=a283_0x3385();let _0x1a1793=_0x338567[_0x316607];return _0x1a1793;}function appProfiles(_0x1b9eef){const _0x881f91=a283_0x1a17;return _0x1b9eef[_0x881f91(0x1fa)]&&typeof _0x1b9eef[_0x881f91(0x1fa)]===_0x881f91(0x1f4)?_0x1b9eef[_0x881f91(0x1fa)]:{};}function resolveDefaultAppName(_0x18aa2d){const _0xff2075=a283_0x1a17,_0x3d3422=stringConfigValue(_0x18aa2d[_0xff2075(0x219)]);if(_0x3d3422)return _0x3d3422;const _0x80595d=Object[_0xff2075(0x218)](appProfiles(_0x18aa2d));return _0x80595d[_0xff2075(0x1f5)]===0x1?_0x80595d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5693f8){const _0x21932c=a283_0x1a17;return stringConfigValue(_0x5693f8[_0x21932c(0x1fb)])||stringConfigValue(_0x5693f8['app']);}function normalizeRiskCeiling(_0x4700a8){const _0x326e39=a283_0x1a17;if(_0x4700a8===undefined||_0x4700a8===null)return undefined;if(_0x4700a8==='read'||_0x4700a8==='write'||_0x4700a8===_0x326e39(0x1f9))return _0x4700a8;return'read';}function resolveRiskCeiling(..._0x23bb27){const _0x3e5cd6=a283_0x1a17;let _0x10e78d;for(const _0x483773 of _0x23bb27){const _0x372d19=normalizeRiskCeiling(_0x483773);_0x372d19&&(!_0x10e78d||riskLevelOrder(_0x372d19)<riskLevelOrder(_0x10e78d))&&(_0x10e78d=_0x372d19);}return _0x10e78d??DEFAULT_CONFIG_VALUES[_0x3e5cd6(0x204)];}export function resolveAppConfig({raw:_0x1252d1,flags:_0x265f6c,layers:_0x21401c,readEnv:_0x67bbea}){const _0x5a2926=a283_0x1a17,_0x5b8cf0=_0x21401c?.[_0x5a2926(0x1fc)]??{},_0x5a32cb=_0x21401c?.[_0x5a2926(0x200)]??{},_0xe3a99f=!!_0x21401c?.[_0x5a2926(0x1f7)]||Object[_0x5a2926(0x218)](_0x5b8cf0)[_0x5a2926(0x1f5)]>0x0,_0x53aabd=!_0xe3a99f,_0x3badd1=_0xe3a99f?resolveDefaultAppName(_0x5b8cf0):undefined,_0x417486=_0x53aabd?resolveDefaultAppName(_0x5a32cb):undefined,_0xce79c8=stringConfigValue(_0x265f6c['app']),_0x12a0c0=_0x67bbea(_0x5a2926(0x20c)),_0x2cc64a={};if(_0x1252d1[_0x5a2926(0x1fa)]&&typeof _0x1252d1[_0x5a2926(0x1fa)]===_0x5a2926(0x1f4))for(const [_0x9b5f4f,_0x4ae73a]of Object[_0x5a2926(0x1f6)](_0x1252d1[_0x5a2926(0x1fa)])){_0x4ae73a&&typeof _0x4ae73a===_0x5a2926(0x1f4)&&_0x4ae73a[_0x5a2926(0x1fb)]&&(_0x2cc64a[_0x9b5f4f]=_0x4ae73a);}const _0x5408c7=_0x3badd1||_0x417486||resolveDefaultAppName(_0x1252d1),_0x5f0133=Object[_0x5a2926(0x218)](_0x2cc64a)[_0x5a2926(0x1f5)]>0x0,_0x48c06b=_0xce79c8||_0x3badd1||_0x12a0c0||_0x417486||_0x5408c7||undefined,_0x223c0c=stringConfigValue(_0x265f6c[_0x5a2926(0x1fb)]),_0x5833b0=_0x223c0c?Object[_0x5a2926(0x1f6)](_0x2cc64a)['filter'](([,_0x5385d6])=>_0x5385d6?.[_0x5a2926(0x1fb)]===_0x223c0c):[],_0x5b0988=_0xce79c8&&_0x2cc64a[_0xce79c8]?.[_0x5a2926(0x1fb)]===_0x223c0c?[_0xce79c8,_0x2cc64a[_0xce79c8]]:undefined,_0x4a45ad=_0x5b0988??(_0x5833b0[_0x5a2926(0x1f5)]===0x1?_0x5833b0[0x0]:undefined),_0x31f486=_0x4a45ad?.[0x0],_0x3a4b4c=_0x4a45ad?.[0x1],_0x552628=_0x223c0c?_0x31f486:_0x48c06b;let _0x3bcc7f=_0x552628&&_0x2cc64a[_0x552628]?_0x2cc64a[_0x552628]:undefined;_0x223c0c&&_0x3a4b4c&&(_0x3bcc7f=_0x3a4b4c);const _0x349d6c=_0x223c0c?_0x3a4b4c??_0x3bcc7f:_0x3bcc7f,_0x413a24=!_0xce79c8&&!_0x3badd1&&_0x12a0c0&&_0x552628===_0x12a0c0,_0x9ffcdb=_0xce79c8||(_0x413a24?_0x12a0c0:undefined)||(_0x223c0c?_0x31f486:undefined),_0xf0818a=_0x349d6c?.['appcode'],_0x1b7354=_0xe3a99f?resolveTopLevelAppCode(_0x5b8cf0):undefined,_0x10d1cc=_0x53aabd?resolveTopLevelAppCode(_0x5a32cb):undefined,_0x1ac1c9=_0xce79c8||_0x3badd1?_0xf0818a:undefined,_0x3dc671=!_0xce79c8&&!_0x3badd1?_0xf0818a:undefined,_0x574e06=_0x223c0c||_0x1ac1c9||_0x1b7354||_0x3dc671||_0x10d1cc||undefined,_0x3550cc=_0xe3a99f?stringConfigValue(_0x5b8cf0[_0x5a2926(0x20f)]):undefined,_0xb0789c=_0x53aabd?stringConfigValue(_0x5a32cb[_0x5a2926(0x20f)]):undefined,_0x41e532=_0x265f6c[_0x5a2926(0x20f)]||_0x349d6c?.[_0x5a2926(0x20f)]||_0x3550cc||_0x67bbea(_0x5a2926(0x216))||_0xb0789c||_0x1252d1['env']||DEFAULT_CONFIG_VALUES[_0x5a2926(0x20f)],_0x5ea13c=_0x349d6c?.[_0x5a2926(0x209)]||_0x1252d1[_0x5a2926(0x209)]||DEFAULT_CONFIG_VALUES['locale'],_0x2f76d6=_0x67bbea(_0x5a2926(0x1f2))||_0x349d6c?.[_0x5a2926(0x205)]||_0x1252d1[_0x5a2926(0x205)]||undefined,_0x43918c=_0x67bbea('ACCESS_KEY')||_0x349d6c?.[_0x5a2926(0x214)]||_0x1252d1[_0x5a2926(0x214)]||undefined,_0x2370ba=_0x265f6c[_0x5a2926(0x212)]||_0x67bbea(_0x5a2926(0x202))||_0x349d6c?.[_0x5a2926(0x212)]||_0x1252d1[_0x5a2926(0x212)],_0x997c90=normalizeLegacyOutputFormat(_0x2370ba),_0x10129b=_0x67bbea(_0x5a2926(0x215))||_0x349d6c?.['pageSize']||_0x1252d1[_0x5a2926(0x217)],_0x3a724c=_0x10129b?Number(_0x10129b)||undefined:undefined,_0x391143=_0x21401c?[_0x21401c[_0x5a2926(0x200)]['riskLevel'],_0x21401c['projectConfig']['riskLevel']]:[_0x1252d1['riskLevel']],_0x2ba368=resolveRiskCeiling(..._0x391143,_0x349d6c?.[_0x5a2926(0x204)]),_0x215767=resolveRiskCeiling(_0x2ba368,_0x67bbea(_0x5a2926(0x211))),_0x3ddd9f=_0x67bbea('VERBOSE'),_0x15705f=_0x3ddd9f==='1'||_0x3ddd9f===_0x5a2926(0x1fd),_0x29ff4c=_0x349d6c?.[_0x5a2926(0x1f8)]||_0x1252d1[_0x5a2926(0x1f8)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x10534c=selectConfiguredRegion({'appRegion':_0x349d6c?.[_0x5a2926(0x1f1)],'projectRegion':_0xe3a99f?_0x5b8cf0['region']:undefined,'globalRegion':_0xe3a99f||_0x53aabd?_0x5a32cb['region']:undefined,'mergedRegion':_0x1252d1[_0x5a2926(0x1f1)]}),_0x264089=normalizeLovrabetRegion(_0x10534c[_0x5a2926(0x210)])??DEFAULT_LOVRABET_REGION,_0x8be016=isDaily(normalizeEnv(String(_0x41e532)))?_0x5a2926(0x20e):'production';return{'appCode':typeof _0x574e06===_0x5a2926(0x20d)&&_0x574e06[_0x5a2926(0x203)]()?_0x574e06['trim']():undefined,'region':_0x264089,'regionConfiguredValue':_0x10534c['value'],'regionSource':_0x10534c[_0x5a2926(0x1fe)],'env':_0x8be016,'locale':_0x5ea13c,'cookie':_0x2f76d6,'accessKey':_0x43918c,'format':_0x997c90,'pageSize':_0x3a724c,'riskLevel':_0x215767,'verbose':_0x15705f,'apiDir':_0x29ff4c,'apps':_0x2cc64a,'defaultApp':_0x5408c7,'currentApp':_0x5f0133?_0x552628:undefined,'explicitAppName':_0x9ffcdb};}
1
+ (function(_0x4a91fd,_0x410655){const _0xb4fade=a283_0x2075,_0x354223=_0x4a91fd();while(!![]){try{const _0x4bfda3=parseInt(_0xb4fade(0x144))/0x1*(-parseInt(_0xb4fade(0x150))/0x2)+-parseInt(_0xb4fade(0x13f))/0x3+parseInt(_0xb4fade(0x148))/0x4+parseInt(_0xb4fade(0x137))/0x5*(parseInt(_0xb4fade(0x154))/0x6)+parseInt(_0xb4fade(0x14b))/0x7+-parseInt(_0xb4fade(0x142))/0x8+parseInt(_0xb4fade(0x133))/0x9;if(_0x4bfda3===_0x410655)break;else _0x354223['push'](_0x354223['shift']());}catch(_0x862946){_0x354223['push'](_0x354223['shift']());}}}(a283_0x5037,0x361f7));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x2160df){const _0x4853eb=a283_0x2075;return typeof _0x2160df===_0x4853eb(0x130)&&_0x2160df[_0x4853eb(0x138)]()?_0x2160df['trim']():undefined;}function appProfiles(_0x2b2f0b){const _0x56df66=a283_0x2075;return _0x2b2f0b[_0x56df66(0x128)]&&typeof _0x2b2f0b['apps']===_0x56df66(0x12f)?_0x2b2f0b[_0x56df66(0x128)]:{};}function resolveDefaultAppName(_0x13cbad){const _0x3b448b=a283_0x2075,_0x5a27f3=stringConfigValue(_0x13cbad['defaultApp']);if(_0x5a27f3)return _0x5a27f3;const _0x120220=Object[_0x3b448b(0x127)](appProfiles(_0x13cbad));return _0x120220[_0x3b448b(0x149)]===0x1?_0x120220[0x0]:undefined;}function a283_0x2075(_0x4e7700,_0x1baa65){_0x4e7700=_0x4e7700-0x127;const _0x503766=a283_0x5037();let _0x2075ce=_0x503766[_0x4e7700];return _0x2075ce;}function resolveTopLevelAppCode(_0x462092){const _0xf41fa=a283_0x2075;return stringConfigValue(_0x462092[_0xf41fa(0x146)])||stringConfigValue(_0x462092[_0xf41fa(0x12d)]);}function normalizeRiskCeiling(_0x4d8247){const _0x5e3dbb=a283_0x2075;if(_0x4d8247===undefined||_0x4d8247===null)return undefined;if(_0x4d8247===_0x5e3dbb(0x153)||_0x4d8247===_0x5e3dbb(0x129)||_0x4d8247===_0x5e3dbb(0x13c))return _0x4d8247;return'read';}function resolveRiskCeiling(..._0x508b9f){let _0x1640dd;for(const _0x20edb9 of _0x508b9f){const _0x35a93d=normalizeRiskCeiling(_0x20edb9);_0x35a93d&&(!_0x1640dd||riskLevelOrder(_0x35a93d)<riskLevelOrder(_0x1640dd))&&(_0x1640dd=_0x35a93d);}return _0x1640dd??DEFAULT_CONFIG_VALUES['riskLevel'];}export function resolveAppConfig({raw:_0x269c9a,flags:_0x1acab6,layers:_0x3e1db4,readEnv:_0x29640b}){const _0x8dcfda=a283_0x2075,_0x4535c0=_0x3e1db4?.[_0x8dcfda(0x14d)]??{},_0x1f5d90=_0x3e1db4?.[_0x8dcfda(0x13d)]??{},_0xe987b6=!!_0x3e1db4?.[_0x8dcfda(0x13e)]||Object['keys'](_0x4535c0)[_0x8dcfda(0x149)]>0x0,_0xf694a5=!_0xe987b6,_0x982633=_0xe987b6?resolveDefaultAppName(_0x4535c0):undefined,_0xcee767=_0xf694a5?resolveDefaultAppName(_0x1f5d90):undefined,_0x57d66c=stringConfigValue(_0x1acab6[_0x8dcfda(0x12d)]),_0x558940=_0x29640b(_0x8dcfda(0x13b)),_0x6a9209={};if(_0x269c9a[_0x8dcfda(0x128)]&&typeof _0x269c9a[_0x8dcfda(0x128)]===_0x8dcfda(0x12f))for(const [_0x3045cb,_0x23a25a]of Object[_0x8dcfda(0x152)](_0x269c9a[_0x8dcfda(0x128)])){_0x23a25a&&typeof _0x23a25a==='object'&&_0x23a25a['appcode']&&(_0x6a9209[_0x3045cb]=_0x23a25a);}const _0x1388a9=_0x982633||_0xcee767||resolveDefaultAppName(_0x269c9a),_0x524eb8=Object[_0x8dcfda(0x127)](_0x6a9209)[_0x8dcfda(0x149)]>0x0,_0x50003f=_0x57d66c||_0x982633||_0x558940||_0xcee767||_0x1388a9||undefined,_0x5d2635=stringConfigValue(_0x1acab6[_0x8dcfda(0x146)]),_0x2c7da5=_0x5d2635?Object[_0x8dcfda(0x152)](_0x6a9209)['filter'](([,_0x590b9c])=>_0x590b9c?.[_0x8dcfda(0x146)]===_0x5d2635):[],_0x2f71e3=_0x57d66c&&_0x6a9209[_0x57d66c]?.['appcode']===_0x5d2635?[_0x57d66c,_0x6a9209[_0x57d66c]]:undefined,_0xfc1dc=_0x2f71e3??(_0x2c7da5[_0x8dcfda(0x149)]===0x1?_0x2c7da5[0x0]:undefined),_0x152102=_0xfc1dc?.[0x0],_0x5298b0=_0xfc1dc?.[0x1],_0x2fd773=_0x5d2635?_0x152102:_0x50003f;let _0x3e9c8e=_0x2fd773&&_0x6a9209[_0x2fd773]?_0x6a9209[_0x2fd773]:undefined;_0x5d2635&&_0x5298b0&&(_0x3e9c8e=_0x5298b0);const _0x4c1c01=_0x5d2635?_0x5298b0??_0x3e9c8e:_0x3e9c8e,_0x3941ac=!_0x57d66c&&!_0x982633&&_0x558940&&_0x2fd773===_0x558940,_0x4b90d9=_0x57d66c||(_0x3941ac?_0x558940:undefined)||(_0x5d2635?_0x152102:undefined),_0x511273=_0x4c1c01?.[_0x8dcfda(0x146)],_0x68953d=_0xe987b6?resolveTopLevelAppCode(_0x4535c0):undefined,_0x1aaa16=_0xf694a5?resolveTopLevelAppCode(_0x1f5d90):undefined,_0x431b42=_0x57d66c||_0x982633?_0x511273:undefined,_0x35f539=!_0x57d66c&&!_0x982633?_0x511273:undefined,_0x43a980=_0x5d2635||_0x431b42||_0x68953d||_0x35f539||_0x1aaa16||undefined,_0xca1098=_0xe987b6?stringConfigValue(_0x4535c0['env']):undefined,_0x3977ea=_0xf694a5?stringConfigValue(_0x1f5d90[_0x8dcfda(0x134)]):undefined,_0x446ecb=_0x1acab6[_0x8dcfda(0x134)]||_0x4c1c01?.[_0x8dcfda(0x134)]||_0xca1098||_0x29640b(_0x8dcfda(0x12a))||_0x3977ea||_0x269c9a['env']||DEFAULT_CONFIG_VALUES[_0x8dcfda(0x134)],_0x262c02=_0x4c1c01?.[_0x8dcfda(0x14a)]||_0x269c9a['locale']||DEFAULT_CONFIG_VALUES[_0x8dcfda(0x14a)],_0x332b60=_0x29640b(_0x8dcfda(0x140))||_0x4c1c01?.[_0x8dcfda(0x136)]||_0x269c9a[_0x8dcfda(0x136)]||undefined,_0x162df9=_0x29640b(_0x8dcfda(0x12c))||_0x4c1c01?.[_0x8dcfda(0x147)]||_0x269c9a['accessKey']||undefined,_0x36b74d=_0x1acab6[_0x8dcfda(0x135)]||_0x29640b(_0x8dcfda(0x14c))||_0x4c1c01?.[_0x8dcfda(0x135)]||_0x269c9a[_0x8dcfda(0x135)],_0xd2d19e=normalizeLegacyOutputFormat(_0x36b74d),_0x2b0c86=_0x29640b(_0x8dcfda(0x145))||_0x4c1c01?.[_0x8dcfda(0x12e)]||_0x269c9a[_0x8dcfda(0x12e)],_0x3fe400=_0x2b0c86?Number(_0x2b0c86)||undefined:undefined,_0x46c8ec=_0x3e1db4?[_0x3e1db4[_0x8dcfda(0x13d)][_0x8dcfda(0x13a)],_0x3e1db4['projectConfig'][_0x8dcfda(0x13a)]]:[_0x269c9a[_0x8dcfda(0x13a)]],_0x47e5f3=resolveRiskCeiling(..._0x46c8ec,_0x4c1c01?.[_0x8dcfda(0x13a)]),_0x51080c=resolveRiskCeiling(_0x47e5f3,_0x29640b(_0x8dcfda(0x14f))),_0x4f3d58=_0x29640b(_0x8dcfda(0x132)),_0x489d7b=_0x4f3d58==='1'||_0x4f3d58===_0x8dcfda(0x12b),_0x24358a=_0x4c1c01?.[_0x8dcfda(0x139)]||_0x269c9a[_0x8dcfda(0x139)]||DEFAULT_CONFIG_VALUES[_0x8dcfda(0x139)],_0x3506b8=selectConfiguredRegion({'appRegion':_0x4c1c01?.[_0x8dcfda(0x143)],'projectRegion':_0xe987b6?_0x4535c0[_0x8dcfda(0x143)]:undefined,'globalRegion':_0xe987b6||_0xf694a5?_0x1f5d90[_0x8dcfda(0x143)]:undefined,'mergedRegion':_0x269c9a[_0x8dcfda(0x143)]}),_0x36f69d=normalizeLovrabetRegion(_0x3506b8[_0x8dcfda(0x131)])??DEFAULT_LOVRABET_REGION,_0xab2780=isDaily(normalizeEnv(String(_0x446ecb)))?_0x8dcfda(0x141):_0x8dcfda(0x14e);return{'appCode':typeof _0x43a980==='string'&&_0x43a980[_0x8dcfda(0x138)]()?_0x43a980['trim']():undefined,'region':_0x36f69d,'regionConfiguredValue':_0x3506b8[_0x8dcfda(0x131)],'regionSource':_0x3506b8[_0x8dcfda(0x151)],'env':_0xab2780,'locale':_0x262c02,'cookie':_0x332b60,'accessKey':_0x162df9,'format':_0xd2d19e,'pageSize':_0x3fe400,'riskLevel':_0x51080c,'verbose':_0x489d7b,'apiDir':_0x24358a,'apps':_0x6a9209,'defaultApp':_0x1388a9,'currentApp':_0x524eb8?_0x2fd773:undefined,'explicitAppName':_0x4b90d9};}function a283_0x5037(){const _0x2d8ad1=['cookie','4895BebyFR','trim','apiDir','riskLevel','APP','high-risk-write','globalConfig','projectPath','561303BIynNl','COOKIE','daily','3346488AMvyGC','region','1liVfQx','PAGE_SIZE','appcode','accessKey','581724SrSSQo','length','locale','472703pWNziw','FORMAT','projectConfig','production','RISK_LEVEL','77156NCTcMm','source','entries','read','2184sbYrHq','keys','apps','write','ENV','true','ACCESS_KEY','app','pageSize','object','string','value','VERBOSE','2667249JXsHKl','env','format'];a283_0x5037=function(){return _0x2d8ad1;};return a283_0x5037();}
@@ -1 +1 @@
1
- (function(_0x4d0892,_0x37b0d2){const _0x27e449=a284_0xb3c8,_0x5f0e9e=_0x4d0892();while(!![]){try{const _0x17f744=-parseInt(_0x27e449(0x1e1))/0x1+-parseInt(_0x27e449(0x1dc))/0x2+-parseInt(_0x27e449(0x1df))/0x3*(-parseInt(_0x27e449(0x1d9))/0x4)+-parseInt(_0x27e449(0x1e2))/0x5+-parseInt(_0x27e449(0x1e0))/0x6*(-parseInt(_0x27e449(0x1e3))/0x7)+-parseInt(_0x27e449(0x1dd))/0x8+-parseInt(_0x27e449(0x1de))/0x9*(-parseInt(_0x27e449(0x1db))/0xa);if(_0x17f744===_0x37b0d2)break;else _0x5f0e9e['push'](_0x5f0e9e['shift']());}catch(_0x3a85c4){_0x5f0e9e['push'](_0x5f0e9e['shift']());}}}(a284_0x24ca,0xe2677));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x24ca(){const _0x47230b=['10493FnJcHc','authRequired','19192yvGNFr','cookie','25221890PzxPBp','1450986VfFeXj','14787048FZwUxA','9ODzRhZ','789dCaQSZ','3174QDUjVr','632473flgEYJ','2216680cmADKI'];a284_0x24ca=function(){return _0x47230b;};return a284_0x24ca();}function a284_0xb3c8(_0x59f744,_0x9ba60e){_0x59f744=_0x59f744-0x1d9;const _0x24ca37=a284_0x24ca();let _0xb3c819=_0x24ca37[_0x59f744];return _0xb3c819;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4a854b){const _0x4981da=a284_0xb3c8,{getCookie:_0xd161e4}=await import('../auth/get-cookie.js'),_0x16f5c4=_0x4a854b[_0x4981da(0x1da)]||_0xd161e4(),_0x2b168f=_0x16f5c4?await getIsSessionValid():![];return{'cookie':_0x16f5c4,'isLoggedIn':_0x2b168f,async 'getOrLogin'(){const _0xc069aa=_0x4981da;if(_0x16f5c4&&_0x2b168f)return _0x16f5c4;throw CliErrors[_0xc069aa(0x1e4)]();}};}
1
+ function a284_0x19bd(){const _0x448771=['714152SXuZcm','4bMRxwL','2691wiwZCq','2932596VVfdSg','711980aUQOUY','779005fPCamt','278523OChfju','578LZNHVk','48fElFfH','236446zkzQSF'];a284_0x19bd=function(){return _0x448771;};return a284_0x19bd();}function a284_0x8375(_0x35eadd,_0x4150c7){_0x35eadd=_0x35eadd-0x15e;const _0x19bde1=a284_0x19bd();let _0x837557=_0x19bde1[_0x35eadd];return _0x837557;}(function(_0x4b322d,_0x45d168){const _0x2046bf=a284_0x8375,_0x4c4b92=_0x4b322d();while(!![]){try{const _0x2f7ce8=parseInt(_0x2046bf(0x161))/0x1+parseInt(_0x2046bf(0x162))/0x2*(parseInt(_0x2046bf(0x167))/0x3)+parseInt(_0x2046bf(0x166))/0x4*(-parseInt(_0x2046bf(0x160))/0x5)+parseInt(_0x2046bf(0x163))/0x6*(-parseInt(_0x2046bf(0x164))/0x7)+-parseInt(_0x2046bf(0x165))/0x8+parseInt(_0x2046bf(0x15e))/0x9+-parseInt(_0x2046bf(0x15f))/0xa;if(_0x2f7ce8===_0x45d168)break;else _0x4c4b92['push'](_0x4c4b92['shift']());}catch(_0x48f7a6){_0x4c4b92['push'](_0x4c4b92['shift']());}}}(a284_0x19bd,0x43a74));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x14c4f5){const {getCookie:_0x20609a}=await import('../auth/get-cookie.js'),_0x45e6b1=_0x14c4f5['cookie']||_0x20609a(),_0x4e3016=_0x45e6b1?await getIsSessionValid():![];return{'cookie':_0x45e6b1,'isLoggedIn':_0x4e3016,async 'getOrLogin'(){if(_0x45e6b1&&_0x4e3016)return _0x45e6b1;throw CliErrors['authRequired']();}};}
@@ -1 +1 @@
1
- const a285_0x2b21f5=a285_0x1404;(function(_0x404192,_0x40d199){const _0x27720b=a285_0x1404,_0x49c4df=_0x404192();while(!![]){try{const _0x533b41=-parseInt(_0x27720b(0x184))/0x1*(parseInt(_0x27720b(0x1a2))/0x2)+-parseInt(_0x27720b(0x183))/0x3*(-parseInt(_0x27720b(0x173))/0x4)+-parseInt(_0x27720b(0x199))/0x5*(-parseInt(_0x27720b(0x19f))/0x6)+parseInt(_0x27720b(0x18e))/0x7+parseInt(_0x27720b(0x172))/0x8*(parseInt(_0x27720b(0x186))/0x9)+-parseInt(_0x27720b(0x19c))/0xa+-parseInt(_0x27720b(0x195))/0xb*(parseInt(_0x27720b(0x18f))/0xc);if(_0x533b41===_0x40d199)break;else _0x49c4df['push'](_0x49c4df['shift']());}catch(_0xb5f468){_0x49c4df['push'](_0x49c4df['shift']());}}}(a285_0x2fbf,0x2f894));function a285_0x2fbf(){const _0x343778=['message','kbServiceDomain','1214245XHOWpb','pageSize','keys','1846850yXSwZb','certificateDomain','warn','6bIXdrb','appcode','data','274QPfsZI','\x0a\x20\x20','env','accessKey','stringify','utf8','runtimeDomain','160CMocgB','552ebvbks','format','set','app','silent','region','trim','appDomain','empty','apiDir','length','locale','config','kbDomain','migrated','object','7377KFJmyq','2689pWnPNJ','apps','70857YwPOdK','status','projectPath','riskLevel','get','cookie','defaultApp','.tmp','1752996sruLiC','2907516HdMfWF','error','apiDomain','inherit','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','11WPwNmN','parse'];a285_0x2fbf=function(){return _0x343778;};return a285_0x2fbf();}import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2bb78f){for(const _0x118d39 of CONFIG_NAMES){const _0x403b80=resolve(_0x2bb78f,_0x118d39);if(existsSync(_0x403b80))return _0x403b80;}return undefined;}export function findProjectRootDirectory(_0xb07b90=process[a285_0x2b21f5(0x194)]()){let _0x941ef2=resolve(_0xb07b90);const {root:_0x507c9e}=parse(_0x941ef2),_0xa14d2=homedir();while(!![]){if(resolveConfigPath(_0x941ef2)){if(_0x941ef2===_0xa14d2)break;return _0x941ef2;}if(_0x941ef2===_0x507c9e||_0x941ef2===_0xa14d2)break;const _0x1644ab=dirname(_0x941ef2);if(_0x1644ab===_0x941ef2)break;_0x941ef2=_0x1644ab;}return resolve(_0xb07b90);}export function getProjectConfigPath(){const _0x37eb4c=a285_0x2b21f5;return resolveConfigPath(process[_0x37eb4c(0x194)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x5e2628){const _0x1a4dbc=a285_0x2b21f5;if(!existsSync(_0x5e2628))return{'status':'missing'};try{const _0x62de8f=readFileSync(_0x5e2628,{'encoding':_0x1a4dbc(0x170)});if(!_0x62de8f?.[_0x1a4dbc(0x179)]())return{'status':_0x1a4dbc(0x17b)};const _0x37b6b3=JSON[_0x1a4dbc(0x196)](_0x62de8f);return{'status':'ok','data':_0x37b6b3};}catch(_0x18bf63){return{'status':_0x1a4dbc(0x190),'message':_0x18bf63 instanceof Error?_0x18bf63[_0x1a4dbc(0x197)]:String(_0x18bf63)};}}function parseCliConfigJsonFile(_0xe01b5b,_0xbe1ad1,_0x40810a){const _0xad60cb=a285_0x2b21f5,_0x30df9e=inspectCliConfigJsonFile(_0xe01b5b);if(_0x30df9e[_0xad60cb(0x187)]==='missing'||_0x30df9e['status']===_0xad60cb(0x17b))return{};if(_0x30df9e['status']==='ok')return _0x30df9e[_0xad60cb(0x1a1)];return _0xbe1ad1===_0xad60cb(0x19e)&&_0x40810a&&console['error'](CLI_BIN_NAME+':\x20'+_0x40810a+_0xad60cb(0x193)+_0xe01b5b+_0xad60cb(0x1a3)+_0x30df9e[_0xad60cb(0x197)]),{};}function normalizeLegacyConfigShape(_0x8f6ae5){const _0x1a0e43=a285_0x2b21f5;if(!_0x8f6ae5||typeof _0x8f6ae5!==_0x1a0e43(0x182))return{'config':{},'migrated':![]};const _0x24c926={..._0x8f6ae5},_0x15a84d=_0x24c926[_0x1a0e43(0x185)]&&typeof _0x24c926[_0x1a0e43(0x185)]==='object'?{..._0x24c926['apps']}:{},_0x1f452f=Object[_0x1a0e43(0x19b)](_0x15a84d)[_0x1a0e43(0x17d)],_0x2bcee2=_0x24c926[_0x1a0e43(0x1a0)]||_0x24c926[_0x1a0e43(0x176)];let _0x1a035c=![];if(_0x2bcee2&&_0x1f452f===0x0){const _0x975fba=typeof _0x24c926[_0x1a0e43(0x18c)]==='string'&&_0x24c926[_0x1a0e43(0x18c)]['trim']()?_0x24c926[_0x1a0e43(0x18c)]:String(_0x2bcee2)[_0x1a0e43(0x179)]();_0x15a84d[_0x975fba]={'appcode':String(_0x2bcee2)[_0x1a0e43(0x179)](),..._0x24c926[_0x1a0e43(0x1a4)]!=null?{'env':_0x24c926['env']}:{},..._0x24c926[_0x1a0e43(0x17c)]!=null?{'apiDir':_0x24c926[_0x1a0e43(0x17c)]}:{},..._0x24c926[_0x1a0e43(0x18b)]!=null?{'cookie':_0x24c926['cookie']}:{},..._0x24c926[_0x1a0e43(0x1a5)]!=null?{'accessKey':_0x24c926['accessKey']}:{},..._0x24c926[_0x1a0e43(0x174)]!=null?{'format':_0x24c926[_0x1a0e43(0x174)]}:{},..._0x24c926[_0x1a0e43(0x19a)]!=null?{'pageSize':_0x24c926[_0x1a0e43(0x19a)]}:{},..._0x24c926[_0x1a0e43(0x189)]!=null?{'riskLevel':_0x24c926['riskLevel']}:{},..._0x24c926[_0x1a0e43(0x17e)]!=null?{'locale':_0x24c926[_0x1a0e43(0x17e)]}:{}},_0x24c926[_0x1a0e43(0x185)]=_0x15a84d,delete _0x24c926[_0x1a0e43(0x18c)],_0x1a035c=!![];}return(_0x1a0e43(0x1a0)in _0x24c926||_0x1a0e43(0x176)in _0x24c926)&&(delete _0x24c926[_0x1a0e43(0x1a0)],delete _0x24c926['app'],_0x1a035c=!![]),{'config':_0x24c926,'migrated':_0x1a035c};}function writeNormalizedConfigIfNeeded(_0x2ad584,_0x583c1b){const _0x25ba62=a285_0x2b21f5,_0x151e0a=JSON[_0x25ba62(0x16f)](normalizeConfigForWrite(_0x583c1b),null,0x2)+'\x0a';if(normalizedWriteCache[_0x25ba62(0x18a)](_0x2ad584)===_0x151e0a)return;writeConfigFile(_0x2ad584,_0x583c1b),normalizedWriteCache[_0x25ba62(0x175)](_0x2ad584,_0x151e0a);}function a285_0x1404(_0x5a0aab,_0x6f7965){_0x5a0aab=_0x5a0aab-0x16f;const _0x2fbf5d=a285_0x2fbf();let _0x14041b=_0x2fbf5d[_0x5a0aab];return _0x14041b;}function parseAndNormalizeConfig(_0x5bd508,_0x574919,_0xbaba11){const _0x4b84e5=a285_0x2b21f5,_0x3d9b91=parseCliConfigJsonFile(_0x5bd508,_0x574919,_0xbaba11),_0x21e0bf=normalizeLegacyConfigShape(_0x3d9b91);if(_0x21e0bf[_0x4b84e5(0x181)])try{writeNormalizedConfigIfNeeded(_0x5bd508,_0x21e0bf[_0x4b84e5(0x17f)]);}catch{}return _0x21e0bf[_0x4b84e5(0x17f)];}export function loadRawConfigLayers(_0x2c01f8){const _0x1424f7=a285_0x2b21f5;let _0x35d12f={},_0x479ca4={};const _0x37564c=resolveConfigPath(homedir());_0x37564c&&(_0x35d12f=parseAndNormalizeConfig(_0x37564c,_0x1424f7(0x19e),'Global'));const _0x73e86f=_0x2c01f8??findProjectRootDirectory(),_0x21dad6=resolveConfigPath(_0x73e86f);return _0x21dad6&&(_0x479ca4=parseAndNormalizeConfig(_0x21dad6,_0x1424f7(0x19e),'Project')),{'globalPath':_0x37564c,'projectPath':_0x21dad6,'globalConfig':_0x35d12f,'projectConfig':_0x479ca4};}const INHERIT_WHITELIST=['cookie',a285_0x2b21f5(0x1a5),a285_0x2b21f5(0x17e),a285_0x2b21f5(0x174),'riskLevel',a285_0x2b21f5(0x19a),a285_0x2b21f5(0x178),'routing','userDomain',a285_0x2b21f5(0x191),a285_0x2b21f5(0x171),'skillDomain',a285_0x2b21f5(0x180),a285_0x2b21f5(0x198),a285_0x2b21f5(0x17a),'localDomain',a285_0x2b21f5(0x19d)];export function mergeRawConfigLayers(_0x15f26e){const _0x3a6a5e=a285_0x2b21f5,{globalConfig:_0xe50c1f,projectConfig:_0x48373f}=_0x15f26e,_0x9490d1=!!_0x15f26e[_0x3a6a5e(0x188)]||Object[_0x3a6a5e(0x19b)](_0x48373f)['length']>0x0;if(!_0x9490d1)return mergeGlobalOnly(_0xe50c1f);return mergeProjectFirst(_0xe50c1f,_0x48373f);}function mergeGlobalOnly(_0x332ec3){const _0x4b46c4=a285_0x2b21f5,_0x1cc604={..._0x332ec3};delete _0x1cc604[_0x4b46c4(0x192)];const _0x190a4b=_0x332ec3['apps']&&typeof _0x332ec3[_0x4b46c4(0x185)]===_0x4b46c4(0x182)?_0x332ec3['apps']:{};if(Object['keys'](_0x190a4b)['length']>0x0)_0x1cc604[_0x4b46c4(0x185)]=_0x190a4b;if(_0x332ec3[_0x4b46c4(0x18c)])_0x1cc604[_0x4b46c4(0x18c)]=_0x332ec3['defaultApp'];return _0x1cc604;}function mergeProjectFirst(_0x1be5d3,_0x151283){const _0x8a60ea=a285_0x2b21f5,_0x456098={..._0x151283};delete _0x456098[_0x8a60ea(0x192)];for(const _0xd4f15c of INHERIT_WHITELIST){!(_0xd4f15c in _0x456098)&&_0xd4f15c in _0x1be5d3&&(_0x456098[_0xd4f15c]=_0x1be5d3[_0xd4f15c]);}const _0x5240fe=_0x151283[_0x8a60ea(0x185)]&&typeof _0x151283[_0x8a60ea(0x185)]===_0x8a60ea(0x182)?_0x151283['apps']:{};return Object[_0x8a60ea(0x19b)](_0x5240fe)['length']>0x0?_0x456098[_0x8a60ea(0x185)]=_0x5240fe:delete _0x456098['apps'],'defaultApp'in _0x151283?_0x456098['defaultApp']=_0x151283[_0x8a60ea(0x18c)]:delete _0x456098[_0x8a60ea(0x18c)],_0x456098;}export function readRawConfigWithLayers(_0xec8f91){const _0x11b879=loadRawConfigLayers(_0xec8f91);return{'config':mergeRawConfigLayers(_0x11b879),'layers':_0x11b879};}export function readRawConfig(_0x498bf9){return mergeRawConfigLayers(loadRawConfigLayers(_0x498bf9));}export function readConfigFile(_0x4f1f94){const _0x2707e5=a285_0x2b21f5;return parseAndNormalizeConfig(_0x4f1f94,_0x2707e5(0x177));}export function writeConfigFile(_0x344d81,_0xcc8070){const _0x24fb2b=a285_0x2b21f5,_0x4a0c51=dirname(_0x344d81);!existsSync(_0x4a0c51)&&mkdirSync(_0x4a0c51,{'recursive':!![]});const _0x28c586=_0x344d81+_0x24fb2b(0x18d);try{const _0x3d8030=normalizeConfigForWrite(_0xcc8070);writeFileSync(_0x28c586,JSON[_0x24fb2b(0x16f)](_0x3d8030,null,0x2)+'\x0a',{'encoding':_0x24fb2b(0x170),'mode':0x180}),renameSync(_0x28c586,_0x344d81);}catch(_0x3cdd6d){try{unlinkSync(_0x28c586);}catch{}throw _0x3cdd6d;}}export function resolveWriteConfigPath(_0xbb3452){const _0x1dc86e=a285_0x2b21f5,_0x8b3b99=_0xbb3452==='project'?process[_0x1dc86e(0x194)]():homedir(),_0x44462c=resolveConfigPath(_0x8b3b99);return _0x44462c??resolve(_0x8b3b99,NEW_CONFIG_NAME);}
1
+ const a285_0x3e1d95=a285_0x2593;(function(_0x4ce67c,_0x317629){const _0x47fd73=a285_0x2593,_0x86cf0f=_0x4ce67c();while(!![]){try{const _0x2aca1c=-parseInt(_0x47fd73(0x1a2))/0x1*(-parseInt(_0x47fd73(0x19e))/0x2)+-parseInt(_0x47fd73(0x19a))/0x3*(-parseInt(_0x47fd73(0x1cb))/0x4)+-parseInt(_0x47fd73(0x1ab))/0x5*(-parseInt(_0x47fd73(0x1a5))/0x6)+-parseInt(_0x47fd73(0x1a6))/0x7*(parseInt(_0x47fd73(0x1c4))/0x8)+-parseInt(_0x47fd73(0x1b2))/0x9*(parseInt(_0x47fd73(0x1b4))/0xa)+-parseInt(_0x47fd73(0x199))/0xb+-parseInt(_0x47fd73(0x1b1))/0xc;if(_0x2aca1c===_0x317629)break;else _0x86cf0f['push'](_0x86cf0f['shift']());}catch(_0x2535a4){_0x86cf0f['push'](_0x86cf0f['shift']());}}}(a285_0x39ce,0xccfb0));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a285_0x3e1d95(0x1b7);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x46a5a4){for(const _0x1f1033 of CONFIG_NAMES){const _0x164d51=resolve(_0x46a5a4,_0x1f1033);if(existsSync(_0x164d51))return _0x164d51;}return undefined;}function a285_0x39ce(){const _0x32549f=['appcode','utf8','stringify','runtimeDomain','app','status','apps','8nDVUCk','config','error','warn','Project','appDomain','format','16tldxaR','silent','env','parse','object','6322866bsqaar','950358rzJOmR','skillDomain','defaultApp','riskLevel','2957678BuFPpr','pageSize','missing','inherit','1YxfhxS','string','.tmp','978NcZffG','7977564GWdfZw','kbDomain','migrated','localDomain','\x0a\x20\x20','30265jCMaii','apiDir','Global','locale','project','get','5922372riDMgd','143379pJMllE','trim','430XikiJq','cookie','keys','.rabetbase.json','accessKey','cwd','empty','length','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20'];a285_0x39ce=function(){return _0x32549f;};return a285_0x39ce();}export function findProjectRootDirectory(_0x5da837=process['cwd']()){let _0x1aa931=resolve(_0x5da837);const {root:_0x5ad4d7}=parse(_0x1aa931),_0x342e15=homedir();while(!![]){if(resolveConfigPath(_0x1aa931)){if(_0x1aa931===_0x342e15)break;return _0x1aa931;}if(_0x1aa931===_0x5ad4d7||_0x1aa931===_0x342e15)break;const _0x145b34=dirname(_0x1aa931);if(_0x145b34===_0x1aa931)break;_0x1aa931=_0x145b34;}return resolve(_0x5da837);}export function getProjectConfigPath(){const _0x52fba7=a285_0x3e1d95;return resolveConfigPath(process[_0x52fba7(0x1b9)]());}function a285_0x2593(_0x42249e,_0x4235fa){_0x42249e=_0x42249e-0x195;const _0x39ce21=a285_0x39ce();let _0x25932a=_0x39ce21[_0x42249e];return _0x25932a;}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x3c1430){const _0x4fe0c0=a285_0x3e1d95;if(!existsSync(_0x3c1430))return{'status':'missing'};try{const _0x23e477=readFileSync(_0x3c1430,{'encoding':_0x4fe0c0(0x1be)});if(!_0x23e477?.['trim']())return{'status':_0x4fe0c0(0x1ba)};const _0x47b589=JSON[_0x4fe0c0(0x197)](_0x23e477);return{'status':'ok','data':_0x47b589};}catch(_0x5dea7f){return{'status':_0x4fe0c0(0x1c6),'message':_0x5dea7f instanceof Error?_0x5dea7f['message']:String(_0x5dea7f)};}}function parseCliConfigJsonFile(_0x203e79,_0x26305f,_0x139a48){const _0x204601=a285_0x3e1d95,_0x44de53=inspectCliConfigJsonFile(_0x203e79);if(_0x44de53[_0x204601(0x1c2)]===_0x204601(0x1a0)||_0x44de53[_0x204601(0x1c2)]==='empty')return{};if(_0x44de53['status']==='ok')return _0x44de53['data'];return _0x26305f===_0x204601(0x1c7)&&_0x139a48&&console[_0x204601(0x1c6)](CLI_BIN_NAME+':\x20'+_0x139a48+_0x204601(0x1bc)+_0x203e79+_0x204601(0x1aa)+_0x44de53['message']),{};}function normalizeLegacyConfigShape(_0x137747){const _0x5672d8=a285_0x3e1d95;if(!_0x137747||typeof _0x137747!==_0x5672d8(0x198))return{'config':{},'migrated':![]};const _0x49ca84={..._0x137747},_0x56f690=_0x49ca84[_0x5672d8(0x1c3)]&&typeof _0x49ca84[_0x5672d8(0x1c3)]===_0x5672d8(0x198)?{..._0x49ca84['apps']}:{},_0x49b798=Object[_0x5672d8(0x1b6)](_0x56f690)[_0x5672d8(0x1bb)],_0x1a955a=_0x49ca84[_0x5672d8(0x1bd)]||_0x49ca84['app'];let _0x1b5b8a=![];if(_0x1a955a&&_0x49b798===0x0){const _0x179f5a=typeof _0x49ca84[_0x5672d8(0x19c)]===_0x5672d8(0x1a3)&&_0x49ca84[_0x5672d8(0x19c)]['trim']()?_0x49ca84[_0x5672d8(0x19c)]:String(_0x1a955a)['trim']();_0x56f690[_0x179f5a]={'appcode':String(_0x1a955a)[_0x5672d8(0x1b3)](),..._0x49ca84[_0x5672d8(0x196)]!=null?{'env':_0x49ca84['env']}:{},..._0x49ca84['apiDir']!=null?{'apiDir':_0x49ca84[_0x5672d8(0x1ac)]}:{},..._0x49ca84[_0x5672d8(0x1b5)]!=null?{'cookie':_0x49ca84[_0x5672d8(0x1b5)]}:{},..._0x49ca84[_0x5672d8(0x1b8)]!=null?{'accessKey':_0x49ca84['accessKey']}:{},..._0x49ca84[_0x5672d8(0x1ca)]!=null?{'format':_0x49ca84[_0x5672d8(0x1ca)]}:{},..._0x49ca84['pageSize']!=null?{'pageSize':_0x49ca84['pageSize']}:{},..._0x49ca84[_0x5672d8(0x19d)]!=null?{'riskLevel':_0x49ca84['riskLevel']}:{},..._0x49ca84[_0x5672d8(0x1ae)]!=null?{'locale':_0x49ca84['locale']}:{}},_0x49ca84[_0x5672d8(0x1c3)]=_0x56f690,delete _0x49ca84[_0x5672d8(0x19c)],_0x1b5b8a=!![];}return(_0x5672d8(0x1bd)in _0x49ca84||_0x5672d8(0x1c1)in _0x49ca84)&&(delete _0x49ca84[_0x5672d8(0x1bd)],delete _0x49ca84[_0x5672d8(0x1c1)],_0x1b5b8a=!![]),{'config':_0x49ca84,'migrated':_0x1b5b8a};}function writeNormalizedConfigIfNeeded(_0x571bb9,_0x5421e1){const _0x19e695=a285_0x3e1d95,_0x33c021=JSON[_0x19e695(0x1bf)](normalizeConfigForWrite(_0x5421e1),null,0x2)+'\x0a';if(normalizedWriteCache[_0x19e695(0x1b0)](_0x571bb9)===_0x33c021)return;writeConfigFile(_0x571bb9,_0x5421e1),normalizedWriteCache['set'](_0x571bb9,_0x33c021);}function parseAndNormalizeConfig(_0x3623e4,_0x5ec770,_0x22fca2){const _0x216fa7=a285_0x3e1d95,_0x5b7cd9=parseCliConfigJsonFile(_0x3623e4,_0x5ec770,_0x22fca2),_0x21c7a7=normalizeLegacyConfigShape(_0x5b7cd9);if(_0x21c7a7[_0x216fa7(0x1a8)])try{writeNormalizedConfigIfNeeded(_0x3623e4,_0x21c7a7['config']);}catch{}return _0x21c7a7[_0x216fa7(0x1c5)];}export function loadRawConfigLayers(_0x261fb6){const _0x2e93df=a285_0x3e1d95;let _0xf827b9={},_0x727680={};const _0x2d38af=resolveConfigPath(homedir());_0x2d38af&&(_0xf827b9=parseAndNormalizeConfig(_0x2d38af,_0x2e93df(0x1c7),_0x2e93df(0x1ad)));const _0x4a6498=_0x261fb6??findProjectRootDirectory(),_0x3c5137=resolveConfigPath(_0x4a6498);return _0x3c5137&&(_0x727680=parseAndNormalizeConfig(_0x3c5137,_0x2e93df(0x1c7),_0x2e93df(0x1c8))),{'globalPath':_0x2d38af,'projectPath':_0x3c5137,'globalConfig':_0xf827b9,'projectConfig':_0x727680};}const INHERIT_WHITELIST=['cookie',a285_0x3e1d95(0x1b8),'locale',a285_0x3e1d95(0x1ca),'riskLevel',a285_0x3e1d95(0x19f),'region','routing','userDomain','apiDomain',a285_0x3e1d95(0x1c0),a285_0x3e1d95(0x19b),a285_0x3e1d95(0x1a7),'kbServiceDomain',a285_0x3e1d95(0x1c9),a285_0x3e1d95(0x1a9),'certificateDomain'];export function mergeRawConfigLayers(_0x39e32c){const _0x2f6bdf=a285_0x3e1d95,{globalConfig:_0x45fdf2,projectConfig:_0x30cefb}=_0x39e32c,_0xa41541=!!_0x39e32c['projectPath']||Object[_0x2f6bdf(0x1b6)](_0x30cefb)[_0x2f6bdf(0x1bb)]>0x0;if(!_0xa41541)return mergeGlobalOnly(_0x45fdf2);return mergeProjectFirst(_0x45fdf2,_0x30cefb);}function mergeGlobalOnly(_0x3259f0){const _0x21bd34=a285_0x3e1d95,_0x144448={..._0x3259f0};delete _0x144448[_0x21bd34(0x1a1)];const _0x3ff2b3=_0x3259f0['apps']&&typeof _0x3259f0[_0x21bd34(0x1c3)]===_0x21bd34(0x198)?_0x3259f0[_0x21bd34(0x1c3)]:{};if(Object[_0x21bd34(0x1b6)](_0x3ff2b3)[_0x21bd34(0x1bb)]>0x0)_0x144448['apps']=_0x3ff2b3;if(_0x3259f0[_0x21bd34(0x19c)])_0x144448[_0x21bd34(0x19c)]=_0x3259f0[_0x21bd34(0x19c)];return _0x144448;}function mergeProjectFirst(_0x3f0bd6,_0x549683){const _0x35c5ee=a285_0x3e1d95,_0x486c15={..._0x549683};delete _0x486c15[_0x35c5ee(0x1a1)];for(const _0x4d7354 of INHERIT_WHITELIST){!(_0x4d7354 in _0x486c15)&&_0x4d7354 in _0x3f0bd6&&(_0x486c15[_0x4d7354]=_0x3f0bd6[_0x4d7354]);}const _0xf69dfa=_0x549683[_0x35c5ee(0x1c3)]&&typeof _0x549683[_0x35c5ee(0x1c3)]===_0x35c5ee(0x198)?_0x549683[_0x35c5ee(0x1c3)]:{};return Object[_0x35c5ee(0x1b6)](_0xf69dfa)[_0x35c5ee(0x1bb)]>0x0?_0x486c15[_0x35c5ee(0x1c3)]=_0xf69dfa:delete _0x486c15[_0x35c5ee(0x1c3)],_0x35c5ee(0x19c)in _0x549683?_0x486c15[_0x35c5ee(0x19c)]=_0x549683['defaultApp']:delete _0x486c15['defaultApp'],_0x486c15;}export function readRawConfigWithLayers(_0xf06dc6){const _0x410873=loadRawConfigLayers(_0xf06dc6);return{'config':mergeRawConfigLayers(_0x410873),'layers':_0x410873};}export function readRawConfig(_0x1a11fd){return mergeRawConfigLayers(loadRawConfigLayers(_0x1a11fd));}export function readConfigFile(_0xad9199){const _0x14747f=a285_0x3e1d95;return parseAndNormalizeConfig(_0xad9199,_0x14747f(0x195));}export function writeConfigFile(_0x4b70f5,_0x45a6e7){const _0x4c5a36=a285_0x3e1d95,_0x1ade50=dirname(_0x4b70f5);!existsSync(_0x1ade50)&&mkdirSync(_0x1ade50,{'recursive':!![]});const _0x59ddce=_0x4b70f5+_0x4c5a36(0x1a4);try{const _0x14448c=normalizeConfigForWrite(_0x45a6e7);writeFileSync(_0x59ddce,JSON['stringify'](_0x14448c,null,0x2)+'\x0a',{'encoding':_0x4c5a36(0x1be),'mode':0x180}),renameSync(_0x59ddce,_0x4b70f5);}catch(_0x2ccd6a){try{unlinkSync(_0x59ddce);}catch{}throw _0x2ccd6a;}}export function resolveWriteConfigPath(_0x2f7dce){const _0x567ad0=a285_0x3e1d95,_0x55d066=_0x2f7dce===_0x567ad0(0x1af)?process[_0x567ad0(0x1b9)]():homedir(),_0x18a56f=resolveConfigPath(_0x55d066);return _0x18a56f??resolve(_0x55d066,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a286_0x11edda=a286_0x5675;(function(_0x46eb98,_0x5f2630){const _0x1e9699=a286_0x5675,_0x3e28bb=_0x46eb98();while(!![]){try{const _0x5acf39=-parseInt(_0x1e9699(0x95))/0x1*(-parseInt(_0x1e9699(0x9b))/0x2)+parseInt(_0x1e9699(0xc6))/0x3+-parseInt(_0x1e9699(0xc5))/0x4+parseInt(_0x1e9699(0xce))/0x5+parseInt(_0x1e9699(0xb8))/0x6*(-parseInt(_0x1e9699(0xb7))/0x7)+-parseInt(_0x1e9699(0xd1))/0x8*(-parseInt(_0x1e9699(0x9d))/0x9)+-parseInt(_0x1e9699(0xb2))/0xa;if(_0x5acf39===_0x5f2630)break;else _0x3e28bb['push'](_0x3e28bb['shift']());}catch(_0x38b688){_0x3e28bb['push'](_0x3e28bb['shift']());}}}(a286_0x16d5,0x5631b));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x16d5(){const _0x395d91=['kbDomain','https://g.lovrabet.com/dist/lovrabet-skill','./constant/domain.js','config','setRawCommand','182432RHoeJl','575823LLujCi','production','localDomain','apps','merged','defaultApp','global','currentApp','3061235ClLIQH','env','platformDomain','4968EvWYZD','routing','template_base_url','kbServiceDomain','appDomain','Rabetbase\x20configuration','join','name','filter','replace','runtimeDomain','length','hasOwnProperty','agentDomain','setLogPath','1uwLUxX','region','doctor','globalConfig','project\x20Rabetbase\x20configuration','app','178302ilZXtn','./utils/is-non-interactive.js','7524LxZCNl','project','projectConfig','skillHubDomain','string','app\x20profile\x20\x22','configuredRegion','keys','daily','skillDomain','cookie','apiGroup','userDomain','routingConfig','source','raw','filePath','slice','prototype','object','domains','3932720WMRnoP','values','regionSource','cwd','apiDomain','14PnSVDQ','1861692csCAtR','call','trim','certificateDomain','appcode','cdn','map','regionConfiguredValue'];a286_0x16d5=function(){return _0x395d91;};return a286_0x16d5();}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1e59ac){return process.env[`RABETBASE_${_0x1e59ac}`]||process.env[`LOVRABET_${_0x1e59ac}`]||undefined;}function optionalString(_0x3f729b){const _0x1476cd=a286_0x5675;return typeof _0x3f729b===_0x1476cd(0xa1)&&_0x3f729b[_0x1476cd(0xba)]()?_0x3f729b[_0x1476cd(0xba)]():undefined;}function a286_0x5675(_0x1f223a,_0x580925){_0x1f223a=_0x1f223a-0x8a;const _0x16d559=a286_0x16d5();let _0x5675d2=_0x16d559[_0x1f223a];return _0x5675d2;}export function isRoutingRecoveryService(_0x14fd0c){const _0x1d22e7=a286_0x5675;return _0x14fd0c===_0x1d22e7(0xc3)||_0x14fd0c===_0x1d22e7(0x97);}export async function createContext(_0x3c4a52){const _0x548783=a286_0x5675,{config:_0x364d18,layers:_0x4a2a50}=readRawConfigWithLayers(),_0x40d356=buildConfig(_0x364d18,_0x3c4a52,_0x4a2a50);await initGlobalEnvironment(_0x40d356);const {getUserDomain:_0x26434b,getApiDomain:_0x4cc8a4}=await import(_0x548783(0xc2)),_0x2c7b80={'apiDomain':_0x4cc8a4(),'userDomain':_0x26434b()},_0x1fde8b=await buildAuth(_0x40d356);logger[_0x548783(0x94)](process[_0x548783(0xb5)]());const _0x5f31b7=(CLI_BIN_NAME+'\x20'+process['argv'][_0x548783(0xae)](0x2)[_0x548783(0x8c)]('\x20'))[_0x548783(0xba)]();logger[_0x548783(0xc4)](_0x5f31b7);const {isNonInteractive:_0x1723db}=await import(_0x548783(0x9c)),_0x411930=_0x1723db(_0x3c4a52);return{'config':_0x40d356,'auth':_0x1fde8b,'logger':logger,'env':_0x2c7b80,'nonInteractive':_0x411930};}export function buildConfigFromFlags(_0x3581b4){const {config:_0x419463,layers:_0x5d033c}=readRawConfigWithLayers();return buildConfig(_0x419463,_0x3581b4,_0x5d033c);}export async function initGlobalEnvironment(_0x2f8bda){const _0x4fc19c=a286_0x5675,_0x40c6ea=_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9a)&&_0x2f8bda['currentApp']?_0x4fc19c(0xa2)+_0x2f8bda[_0x4fc19c(0xcd)]+'\x22':_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9e)?_0x4fc19c(0x99):_0x2f8bda['regionSource']===_0x4fc19c(0xcc)?'global\x20Rabetbase\x20configuration':_0x4fc19c(0x8b);await initConfiguredEnvironment({'raw':_0x2f8bda[_0x4fc19c(0xac)],'configuredRegion':_0x2f8bda[_0x4fc19c(0xbf)]??_0x2f8bda[_0x4fc19c(0xac)]?.[_0x4fc19c(0x96)]??_0x2f8bda[_0x4fc19c(0x96)],'regionLocation':_0x40c6ea,'targetEnv':_0x2f8bda[_0x4fc19c(0xcf)]});}async function initConfiguredEnvironment(_0x31655c){const _0x20215e=a286_0x5675,_0x56eda5=resolveConfiguredRegion(_0x31655c[_0x20215e(0xa3)],_0x31655c['regionLocation']),_0xc5fbe7=resolveEnterpriseRoutingManifest(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd2)]),_0x302a33={'region':_0x56eda5,'apiDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xb6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xb6)]),'userDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['userDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa9)]),'runtimeDomain':_0xc5fbe7?_0xc5fbe7['domains']['runtimeDomain']:optionalString(_0x31655c['raw']?.['runtimeDomain']),'skillDomain':_0xc5fbe7?_0xc5fbe7['domains'][_0x20215e(0xa6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa6)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xa0)])||optionalString(_0x31655c['raw']?.[_0x20215e(0x93)])||optionalString(_0x31655c[_0x20215e(0xac)]?.['platformDomain']),'kbDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['kbDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.['kbDomain'])||optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x93)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xd0)]),'kbServiceDomain':_0xc5fbe7?_0xc5fbe7['domains']['kbServiceDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd4)]),'appDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0x8a)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x8a)]),'localDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xc8)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xc8)]),'certificateDomain':_0xc5fbe7?_0xc5fbe7['domains']['certificateDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xbb)]),'cdn':_0xc5fbe7?.[_0x20215e(0xbd)],'allowOfficialKbServiceDefault':!(_0xc5fbe7!==undefined||['apiDomain',_0x20215e(0xa9),_0x20215e(0x90),_0x20215e(0xa6),'skillHubDomain',_0x20215e(0xc0),_0x20215e(0xd4),'agentDomain',_0x20215e(0xd0),'appDomain',_0x20215e(0xc8),_0x20215e(0xbb)]['some'](_0x21e46a=>Object[_0x20215e(0xaf)]['hasOwnProperty'][_0x20215e(0xb9)](_0x31655c[_0x20215e(0xac)]??{},_0x21e46a)))},{initEnv:_0x3baeb3}=await import('./constant/env.js'),{initDomains:_0xce917c}=await import(_0x20215e(0xc2));_0x3baeb3(_0x31655c['targetEnv']),_0xce917c(_0x302a33);}export async function initMultiAppEnvironment(_0xb00e2c){const _0x3a86ad=a286_0x5675;await initConfiguredEnvironment({'raw':_0xb00e2c[_0x3a86ad(0xaa)],'configuredRegion':_0xb00e2c[_0x3a86ad(0x96)],'regionLocation':'app\x20profile\x20\x22'+_0xb00e2c[_0x3a86ad(0x8d)]+'\x22','targetEnv':_0xb00e2c[_0x3a86ad(0xcf)]===_0x3a86ad(0xa5)?'daily':_0x3a86ad(0xc7)});}export function getConfigAppCode(_0x285e4a){const _0x10a6ca=a286_0x5675,_0x206efb=readRawConfig(_0x285e4a);if(_0x206efb[_0x10a6ca(0xc9)]&&typeof _0x206efb[_0x10a6ca(0xc9)]===_0x10a6ca(0xb0)){const _0x37e34b=_0x206efb[_0x10a6ca(0xcb)];if(_0x37e34b)return _0x206efb['apps'][_0x37e34b]?.['appcode']?String(_0x206efb[_0x10a6ca(0xc9)][_0x37e34b][_0x10a6ca(0xbc)])[_0x10a6ca(0xba)]():undefined;const _0x2b4a8d=Object[_0x10a6ca(0xb3)](_0x206efb[_0x10a6ca(0xc9)]);if(_0x2b4a8d['length']===0x1&&_0x2b4a8d[0x0]?.[_0x10a6ca(0xbc)])return String(_0x2b4a8d[0x0]['appcode'])[_0x10a6ca(0xba)]();}const _0x546a14=_0x206efb[_0x10a6ca(0xbc)]||_0x206efb[_0x10a6ca(0x9a)];if(typeof _0x546a14!==_0x10a6ca(0xa1)||_0x546a14[_0x10a6ca(0xba)]()==='')return undefined;return _0x546a14[_0x10a6ca(0xba)]();}const CONNECTION_ROUTING_KEYS=[a286_0x11edda(0xd2),a286_0x11edda(0xb6),a286_0x11edda(0xa9),a286_0x11edda(0x90),a286_0x11edda(0xa6),a286_0x11edda(0xa0),a286_0x11edda(0xc0),'kbServiceDomain',a286_0x11edda(0x93),'platformDomain','appDomain',a286_0x11edda(0xc8),'certificateDomain'];function withAppProfileRouting(_0x54860b,_0x2b907c){const _0x2cc621=a286_0x11edda;if(!_0x2b907c||_0x2b907c[_0x2cc621(0xd4)]===undefined)return _0x54860b;return{..._0x54860b,'kbServiceDomain':_0x2b907c['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x1929f2,_0x1d3f3f){const _0x170cdf={'region':_0x1d3f3f};for(const _0x2bb919 of CONNECTION_ROUTING_KEYS){if(_0x1929f2[_0x2bb919]!==undefined)_0x170cdf[_0x2bb919]=_0x1929f2[_0x2bb919];}return _0x170cdf;}export function getMultiAppConfigs(_0x27518e=a286_0x11edda(0x9e),_0x494551){const _0x1d1234=a286_0x11edda,_0x5b0dec=loadRawConfigLayers(_0x494551);let _0x22c1d3,_0x23a4f6;const _0x382c11=mergeRawConfigLayers(_0x5b0dec),_0xce206d=_0x5b0dec['globalConfig'][_0x1d1234(0xc9)]&&typeof _0x5b0dec['globalConfig'][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x98)][_0x1d1234(0xc9)]:{},_0x1ac85b=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]&&typeof _0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]:{};_0x27518e===_0x1d1234(0xca)?(_0x22c1d3={..._0xce206d,..._0x1ac85b},_0x23a4f6=_0x382c11[_0x1d1234(0xcb)]):(_0x22c1d3=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)],_0x23a4f6=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xcb)]);!_0x23a4f6&&_0x22c1d3&&typeof _0x22c1d3==='object'&&Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x1&&(_0x23a4f6=Object[_0x1d1234(0xa4)](_0x22c1d3)[0x0]);if(!_0x22c1d3||typeof _0x22c1d3!==_0x1d1234(0xb0)||Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x0)return null;return Object['entries'](_0x22c1d3)[_0x1d1234(0xbe)](([_0x4ce806,_0x31ac50])=>{const _0x28a4f5=_0x1d1234,_0x524890=_0x27518e===_0x28a4f5(0x9e)||Object[_0x28a4f5(0xaf)][_0x28a4f5(0x92)][_0x28a4f5(0xb9)](_0x1ac85b,_0x4ce806),_0x4b3e8a=withAppProfileRouting(_0x524890?_0x382c11:_0x5b0dec[_0x28a4f5(0x98)],_0x31ac50),_0xcb75e9=resolveEffectiveRegion({'appRegion':_0x31ac50?.[_0x28a4f5(0x96)],'projectRegion':_0x524890?_0x5b0dec[_0x28a4f5(0x9f)]['region']:undefined,'globalRegion':_0x5b0dec[_0x28a4f5(0x98)][_0x28a4f5(0x96)],'mergedRegion':_0x4b3e8a[_0x28a4f5(0x96)],'appName':_0x4ce806});return{'name':_0x4ce806,'appcode':_0x31ac50?.[_0x28a4f5(0xbc)]||'','apiGroup':optionalString(_0x31ac50?.[_0x28a4f5(0xa8)]),'isDefault':_0x4ce806===_0x23a4f6,'region':_0xcb75e9['region'],'regionSource':_0xcb75e9[_0x28a4f5(0xab)],'env':_0x31ac50?.['env'],'apiDir':optionalString(_0x31ac50?.['apiDir'])||optionalString(_0x4b3e8a['apiDir']),'cookie':_0x31ac50?.[_0x28a4f5(0xa7)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4b3e8a,_0xcb75e9[_0x28a4f5(0x96)])};})[_0x1d1234(0x8e)](_0x590153=>_0x590153[_0x1d1234(0xbc)]);}export function getTemplateBaseUrl(_0x233987){const _0x5c6dfd=a286_0x11edda,_0x4eb1e7=readRawConfig(_0x233987);if(_0x4eb1e7[_0x5c6dfd(0xd3)]&&typeof _0x4eb1e7['template_base_url']===_0x5c6dfd(0xa1))return _0x4eb1e7[_0x5c6dfd(0xd3)][_0x5c6dfd(0x8f)](/\/$/,'');return _0x5c6dfd(0xc1);}function buildConfig(_0x14a3c2,_0x3cdd1e,_0x7e37c){const _0x26e23b=a286_0x11edda,_0x503d53=resolveAppConfig({'raw':_0x14a3c2,'flags':_0x3cdd1e,'layers':_0x7e37c,'readEnv':env}),_0x4bfd16=_0x503d53[_0x26e23b(0xcd)]?_0x503d53[_0x26e23b(0xc9)][_0x503d53[_0x26e23b(0xcd)]]:undefined;return{..._0x503d53,'raw':withAppProfileRouting(_0x14a3c2,_0x4bfd16)};}export function resolveApiFilePath(_0xaa13f2,_0x9a333e,_0x21c74a){const _0x47c73f=a286_0x11edda;return resolveApiModelSource(_0xaa13f2,_0x9a333e,_0x21c74a)[_0x47c73f(0xad)];}
1
+ const a286_0xe84561=a286_0x3029;(function(_0x1169e9,_0x30bac2){const _0x41eec0=a286_0x3029,_0x24ec77=_0x1169e9();while(!![]){try{const _0x294d80=parseInt(_0x41eec0(0x86))/0x1*(-parseInt(_0x41eec0(0x76))/0x2)+-parseInt(_0x41eec0(0x70))/0x3*(parseInt(_0x41eec0(0xa3))/0x4)+-parseInt(_0x41eec0(0x8c))/0x5*(-parseInt(_0x41eec0(0x75))/0x6)+parseInt(_0x41eec0(0x81))/0x7*(-parseInt(_0x41eec0(0x77))/0x8)+-parseInt(_0x41eec0(0x66))/0x9+-parseInt(_0x41eec0(0x94))/0xa*(parseInt(_0x41eec0(0x99))/0xb)+parseInt(_0x41eec0(0x7d))/0xc*(parseInt(_0x41eec0(0x9e))/0xd);if(_0x294d80===_0x30bac2)break;else _0x24ec77['push'](_0x24ec77['shift']());}catch(_0x3df0ef){_0x24ec77['push'](_0x24ec77['shift']());}}}(a286_0x4de3,0x18b58));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x4de3(){const _0x5b4375=['map','name','regionSource','global','kbServiceDomain','https://g.lovrabet.com/dist/lovrabet-skill','3FfpliB','template_base_url','skillHubDomain','app','argv','173646ALYYJX','84xsfBdO','1084712YnSJmR','setRawCommand','localDomain','daily','regionConfiguredValue','appDomain','19044hmcuTQ','entries','region','source','7hlltKy','agentDomain','apps','kbDomain','call','4502ULEJlR','apiDomain','trim','regionLocation','join','appcode','10hQOLDT','object','runtimeDomain','routingConfig','Rabetbase\x20configuration','slice','string','replace','510LyAWJQ','merged','length','raw','keys','26510JLYsib','global\x20Rabetbase\x20configuration','values','domains','prototype','4979TQvFSF','skillDomain','./constant/env.js','routing','apiDir','319556BWgbWe','configuredRegion','hasOwnProperty','defaultApp','app\x20profile\x20\x22','project','project\x20Rabetbase\x20configuration','userDomain','projectConfig','currentApp','globalConfig','apiGroup','333207ibcMZH','platformDomain','certificateDomain','env'];a286_0x4de3=function(){return _0x5b4375;};return a286_0x4de3();}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x2ee880){return process.env[`RABETBASE_${_0x2ee880}`]||process.env[`LOVRABET_${_0x2ee880}`]||undefined;}function optionalString(_0x4cef3e){const _0x13cfe9=a286_0x3029;return typeof _0x4cef3e==='string'&&_0x4cef3e[_0x13cfe9(0x88)]()?_0x4cef3e[_0x13cfe9(0x88)]():undefined;}export function isRoutingRecoveryService(_0x539769){return _0x539769==='config'||_0x539769==='doctor';}export async function createContext(_0x375f9e){const _0x3ae113=a286_0x3029,{config:_0x1921b2,layers:_0x127784}=readRawConfigWithLayers(),_0x4417c9=buildConfig(_0x1921b2,_0x375f9e,_0x127784);await initGlobalEnvironment(_0x4417c9);const {getUserDomain:_0x5351d9,getApiDomain:_0x63f577}=await import('./constant/domain.js'),_0x29b877={'apiDomain':_0x63f577(),'userDomain':_0x5351d9()},_0x22f4fa=await buildAuth(_0x4417c9);logger['setLogPath'](process['cwd']());const _0x405e1e=(CLI_BIN_NAME+'\x20'+process[_0x3ae113(0x74)][_0x3ae113(0x91)](0x2)[_0x3ae113(0x8a)]('\x20'))[_0x3ae113(0x88)]();logger[_0x3ae113(0x78)](_0x405e1e);const {isNonInteractive:_0xab9f3c}=await import('./utils/is-non-interactive.js'),_0x21acc0=_0xab9f3c(_0x375f9e);return{'config':_0x4417c9,'auth':_0x22f4fa,'logger':logger,'env':_0x29b877,'nonInteractive':_0x21acc0};}function a286_0x3029(_0xf5960c,_0x4144ea){_0xf5960c=_0xf5960c-0x65;const _0x4de3fb=a286_0x4de3();let _0x3029e6=_0x4de3fb[_0xf5960c];return _0x3029e6;}export function buildConfigFromFlags(_0x3715d6){const {config:_0x1716d4,layers:_0x14ae72}=readRawConfigWithLayers();return buildConfig(_0x1716d4,_0x3715d6,_0x14ae72);}export async function initGlobalEnvironment(_0x23882f){const _0x3164cd=a286_0x3029,_0x147063=_0x23882f[_0x3164cd(0x6c)]===_0x3164cd(0x73)&&_0x23882f[_0x3164cd(0xac)]?'app\x20profile\x20\x22'+_0x23882f[_0x3164cd(0xac)]+'\x22':_0x23882f[_0x3164cd(0x6c)]===_0x3164cd(0xa8)?_0x3164cd(0xa9):_0x23882f[_0x3164cd(0x6c)]===_0x3164cd(0x6d)?_0x3164cd(0x9a):_0x3164cd(0x90);await initConfiguredEnvironment({'raw':_0x23882f[_0x3164cd(0x97)],'configuredRegion':_0x23882f[_0x3164cd(0x7b)]??_0x23882f[_0x3164cd(0x97)]?.[_0x3164cd(0x7f)]??_0x23882f['region'],'regionLocation':_0x147063,'targetEnv':_0x23882f[_0x3164cd(0x69)]});}async function initConfiguredEnvironment(_0x33c89a){const _0x27a41e=a286_0x3029,_0x4a9339=resolveConfiguredRegion(_0x33c89a[_0x27a41e(0xa4)],_0x33c89a[_0x27a41e(0x89)]),_0x5ecb8f=resolveEnterpriseRoutingManifest(_0x33c89a['raw']?.[_0x27a41e(0xa1)]),_0x37d763={'region':_0x4a9339,'apiDomain':_0x5ecb8f?_0x5ecb8f['domains']['apiDomain']:optionalString(_0x33c89a[_0x27a41e(0x97)]?.['apiDomain']),'userDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)][_0x27a41e(0xaa)]:optionalString(_0x33c89a['raw']?.['userDomain']),'runtimeDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)]['runtimeDomain']:optionalString(_0x33c89a['raw']?.[_0x27a41e(0x8e)]),'skillDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)]['skillDomain']:optionalString(_0x33c89a['raw']?.[_0x27a41e(0x9f)])||optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x72)])||optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x82)])||optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x67)]),'kbDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)][_0x27a41e(0x84)]:optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x84)])||optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x82)])||optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x67)]),'kbServiceDomain':_0x5ecb8f?_0x5ecb8f['domains'][_0x27a41e(0x6e)]:optionalString(_0x33c89a['raw']?.[_0x27a41e(0x6e)]),'appDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)][_0x27a41e(0x7c)]:optionalString(_0x33c89a['raw']?.['appDomain']),'localDomain':_0x5ecb8f?_0x5ecb8f[_0x27a41e(0x9c)]['localDomain']:optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x79)]),'certificateDomain':_0x5ecb8f?_0x5ecb8f['domains'][_0x27a41e(0x68)]:optionalString(_0x33c89a[_0x27a41e(0x97)]?.[_0x27a41e(0x68)]),'cdn':_0x5ecb8f?.['cdn'],'allowOfficialKbServiceDefault':!(_0x5ecb8f!==undefined||[_0x27a41e(0x87),_0x27a41e(0xaa),_0x27a41e(0x8e),_0x27a41e(0x9f),'skillHubDomain','kbDomain',_0x27a41e(0x6e),_0x27a41e(0x82),_0x27a41e(0x67),_0x27a41e(0x7c),_0x27a41e(0x79),_0x27a41e(0x68)]['some'](_0x1a7a68=>Object[_0x27a41e(0x9d)]['hasOwnProperty'][_0x27a41e(0x85)](_0x33c89a[_0x27a41e(0x97)]??{},_0x1a7a68)))},{initEnv:_0x41a214}=await import(_0x27a41e(0xa0)),{initDomains:_0x5ec885}=await import('./constant/domain.js');_0x41a214(_0x33c89a['targetEnv']),_0x5ec885(_0x37d763);}export async function initMultiAppEnvironment(_0x303e36){const _0x5cc2b7=a286_0x3029;await initConfiguredEnvironment({'raw':_0x303e36[_0x5cc2b7(0x8f)],'configuredRegion':_0x303e36[_0x5cc2b7(0x7f)],'regionLocation':_0x5cc2b7(0xa7)+_0x303e36[_0x5cc2b7(0x6b)]+'\x22','targetEnv':_0x303e36[_0x5cc2b7(0x69)]===_0x5cc2b7(0x7a)?_0x5cc2b7(0x7a):'production'});}export function getConfigAppCode(_0x481c95){const _0x2664b4=a286_0x3029,_0x3fa6cd=readRawConfig(_0x481c95);if(_0x3fa6cd[_0x2664b4(0x83)]&&typeof _0x3fa6cd['apps']===_0x2664b4(0x8d)){const _0xa06e5c=_0x3fa6cd[_0x2664b4(0xa6)];if(_0xa06e5c)return _0x3fa6cd[_0x2664b4(0x83)][_0xa06e5c]?.['appcode']?String(_0x3fa6cd[_0x2664b4(0x83)][_0xa06e5c][_0x2664b4(0x8b)])[_0x2664b4(0x88)]():undefined;const _0x468cbb=Object[_0x2664b4(0x9b)](_0x3fa6cd[_0x2664b4(0x83)]);if(_0x468cbb[_0x2664b4(0x96)]===0x1&&_0x468cbb[0x0]?.['appcode'])return String(_0x468cbb[0x0][_0x2664b4(0x8b)])['trim']();}const _0x1b5b63=_0x3fa6cd[_0x2664b4(0x8b)]||_0x3fa6cd['app'];if(typeof _0x1b5b63!==_0x2664b4(0x92)||_0x1b5b63[_0x2664b4(0x88)]()==='')return undefined;return _0x1b5b63[_0x2664b4(0x88)]();}const CONNECTION_ROUTING_KEYS=[a286_0xe84561(0xa1),a286_0xe84561(0x87),'userDomain',a286_0xe84561(0x8e),'skillDomain',a286_0xe84561(0x72),'kbDomain',a286_0xe84561(0x6e),'agentDomain',a286_0xe84561(0x67),a286_0xe84561(0x7c),a286_0xe84561(0x79),a286_0xe84561(0x68)];function withAppProfileRouting(_0x2f8074,_0x45b1a0){const _0x313165=a286_0xe84561;if(!_0x45b1a0||_0x45b1a0[_0x313165(0x6e)]===undefined)return _0x2f8074;return{..._0x2f8074,'kbServiceDomain':_0x45b1a0[_0x313165(0x6e)]};}function pickConnectionRoutingConfig(_0x2ade68,_0x1bd531){const _0x175793={'region':_0x1bd531};for(const _0x33cae1 of CONNECTION_ROUTING_KEYS){if(_0x2ade68[_0x33cae1]!==undefined)_0x175793[_0x33cae1]=_0x2ade68[_0x33cae1];}return _0x175793;}export function getMultiAppConfigs(_0x1811d1=a286_0xe84561(0xa8),_0x4469c5){const _0x27b768=a286_0xe84561,_0x175d32=loadRawConfigLayers(_0x4469c5);let _0x320d9e,_0x253e4e;const _0x3822cf=mergeRawConfigLayers(_0x175d32),_0x238115=_0x175d32['globalConfig'][_0x27b768(0x83)]&&typeof _0x175d32[_0x27b768(0xad)][_0x27b768(0x83)]==='object'?_0x175d32[_0x27b768(0xad)][_0x27b768(0x83)]:{},_0x3ab450=_0x175d32[_0x27b768(0xab)]['apps']&&typeof _0x175d32[_0x27b768(0xab)][_0x27b768(0x83)]===_0x27b768(0x8d)?_0x175d32[_0x27b768(0xab)][_0x27b768(0x83)]:{};_0x1811d1===_0x27b768(0x95)?(_0x320d9e={..._0x238115,..._0x3ab450},_0x253e4e=_0x3822cf[_0x27b768(0xa6)]):(_0x320d9e=_0x175d32[_0x27b768(0xab)][_0x27b768(0x83)],_0x253e4e=_0x175d32[_0x27b768(0xab)][_0x27b768(0xa6)]);!_0x253e4e&&_0x320d9e&&typeof _0x320d9e===_0x27b768(0x8d)&&Object[_0x27b768(0x98)](_0x320d9e)[_0x27b768(0x96)]===0x1&&(_0x253e4e=Object[_0x27b768(0x98)](_0x320d9e)[0x0]);if(!_0x320d9e||typeof _0x320d9e!==_0x27b768(0x8d)||Object['keys'](_0x320d9e)[_0x27b768(0x96)]===0x0)return null;return Object[_0x27b768(0x7e)](_0x320d9e)[_0x27b768(0x6a)](([_0x9e2b99,_0x27f37c])=>{const _0x539660=_0x27b768,_0x309916=_0x1811d1===_0x539660(0xa8)||Object['prototype'][_0x539660(0xa5)]['call'](_0x3ab450,_0x9e2b99),_0x241599=withAppProfileRouting(_0x309916?_0x3822cf:_0x175d32[_0x539660(0xad)],_0x27f37c),_0x3792df=resolveEffectiveRegion({'appRegion':_0x27f37c?.[_0x539660(0x7f)],'projectRegion':_0x309916?_0x175d32['projectConfig'][_0x539660(0x7f)]:undefined,'globalRegion':_0x175d32[_0x539660(0xad)][_0x539660(0x7f)],'mergedRegion':_0x241599[_0x539660(0x7f)],'appName':_0x9e2b99});return{'name':_0x9e2b99,'appcode':_0x27f37c?.[_0x539660(0x8b)]||'','apiGroup':optionalString(_0x27f37c?.[_0x539660(0x65)]),'isDefault':_0x9e2b99===_0x253e4e,'region':_0x3792df[_0x539660(0x7f)],'regionSource':_0x3792df[_0x539660(0x80)],'env':_0x27f37c?.[_0x539660(0x69)],'apiDir':optionalString(_0x27f37c?.[_0x539660(0xa2)])||optionalString(_0x241599[_0x539660(0xa2)]),'cookie':_0x27f37c?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x241599,_0x3792df[_0x539660(0x7f)])};})['filter'](_0xc7a259=>_0xc7a259[_0x27b768(0x8b)]);}export function getTemplateBaseUrl(_0xd125b){const _0x5a85b4=a286_0xe84561,_0x482ce5=readRawConfig(_0xd125b);if(_0x482ce5[_0x5a85b4(0x71)]&&typeof _0x482ce5[_0x5a85b4(0x71)]===_0x5a85b4(0x92))return _0x482ce5[_0x5a85b4(0x71)][_0x5a85b4(0x93)](/\/$/,'');return _0x5a85b4(0x6f);}function buildConfig(_0x207225,_0x562e3c,_0x4f561e){const _0x18c2a7=a286_0xe84561,_0x52b249=resolveAppConfig({'raw':_0x207225,'flags':_0x562e3c,'layers':_0x4f561e,'readEnv':env}),_0x4639cf=_0x52b249[_0x18c2a7(0xac)]?_0x52b249[_0x18c2a7(0x83)][_0x52b249[_0x18c2a7(0xac)]]:undefined;return{..._0x52b249,'raw':withAppProfileRouting(_0x207225,_0x4639cf)};}export function resolveApiFilePath(_0x11ab51,_0x13ccce,_0x502e95){return resolveApiModelSource(_0x11ab51,_0x13ccce,_0x502e95)['filePath'];}