@lovrabet/rabetbase-cli 2.5.11 → 2.5.12

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 (379) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.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/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.d.ts +1 -0
  283. package/lib/constant/routing-profile.js +1 -1
  284. package/lib/context/app-resolver.js +1 -1
  285. package/lib/context/auth-resolver.js +1 -1
  286. package/lib/context/config-loader.js +1 -1
  287. package/lib/context.js +1 -1
  288. package/lib/core/alias-resolver.js +1 -1
  289. package/lib/core/api-client.js +1 -1
  290. package/lib/core/bff/config.js +1 -1
  291. package/lib/core/bff/file-system.js +1 -1
  292. package/lib/core/bff/hash.js +1 -1
  293. package/lib/core/bff/hook-directory.js +1 -1
  294. package/lib/core/bff/lock.js +1 -1
  295. package/lib/core/bff/utils.js +1 -1
  296. package/lib/core/cross-db-analysis.js +1 -1
  297. package/lib/core/cross-db-relation.js +1 -1
  298. package/lib/core/db-resolver.js +1 -1
  299. package/lib/core/flow-config.js +1 -1
  300. package/lib/core/instant-api-policy/config.js +1 -1
  301. package/lib/core/instant-api-policy/endpoints.js +1 -1
  302. package/lib/core/kb-management-client.js +1 -1
  303. package/lib/core/kb-search-client.js +1 -1
  304. package/lib/core/page/file-system.js +1 -1
  305. package/lib/core/page/hash.js +1 -1
  306. package/lib/core/page/lock.js +1 -1
  307. package/lib/core/page/lr-smart-jsx.js +1 -1
  308. package/lib/core/sql-index-auditor.js +1 -1
  309. package/lib/core/sql-sync/config.js +1 -1
  310. package/lib/core/sql-sync/file-system.js +1 -1
  311. package/lib/core/sql-sync/hash.js +1 -1
  312. package/lib/core/sql-sync/lock.js +1 -1
  313. package/lib/core/sql-sync/utils.js +1 -1
  314. package/lib/core/sql-validator.js +1 -1
  315. package/lib/errors.js +1 -1
  316. package/lib/framework/build-all-flags.js +1 -1
  317. package/lib/framework/error-output.js +1 -1
  318. package/lib/framework/explicit-yes.js +1 -1
  319. package/lib/framework/flags.js +1 -1
  320. package/lib/framework/help.js +1 -1
  321. package/lib/framework/index.js +1 -1
  322. package/lib/framework/output.js +1 -1
  323. package/lib/framework/response.js +1 -1
  324. package/lib/framework/runner-alias.js +1 -1
  325. package/lib/framework/runner.js +1 -1
  326. package/lib/framework/schema-export.js +1 -1
  327. package/lib/framework/supported-flags.js +1 -1
  328. package/lib/framework/types.js +1 -1
  329. package/lib/generated/build-info.d.ts +4 -4
  330. package/lib/generated/build-info.js +1 -1
  331. package/lib/generated/official-routing.d.ts +2 -1
  332. package/lib/generated/official-routing.js +1 -1
  333. package/lib/generated/routing-contract.js +1 -1
  334. package/lib/help.js +1 -1
  335. package/lib/postinstall.js +1 -1
  336. package/lib/runtime/confirmation.js +1 -1
  337. package/lib/runtime/event.js +1 -1
  338. package/lib/runtime/index.js +1 -1
  339. package/lib/runtime/queue.js +1 -1
  340. package/lib/runtime/resolve.js +1 -1
  341. package/lib/services/dataset-design/checkpoint.js +1 -1
  342. package/lib/services/dataset-design/commands.js +1 -1
  343. package/lib/services/dataset-design/contract.js +1 -1
  344. package/lib/skills/builtin-skill.js +1 -1
  345. package/lib/skills/main.js +1 -1
  346. package/lib/skills/npx-skills-add.js +1 -1
  347. package/lib/skills/skill-presence.js +1 -1
  348. package/lib/telemetry/cli-command-trace.js +1 -1
  349. package/lib/telemetry/cli-help-trace.js +1 -1
  350. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  351. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  352. package/lib/telemetry/send-cli-trace-log.js +1 -1
  353. package/lib/utils/ai_config.js +1 -1
  354. package/lib/utils/apply-jq-filter.js +1 -1
  355. package/lib/utils/cdn-config.js +1 -1
  356. package/lib/utils/check-sdk-version.js +1 -1
  357. package/lib/utils/cli-version-check.js +1 -1
  358. package/lib/utils/cli-version-policy.js +1 -1
  359. package/lib/utils/config.js +1 -1
  360. package/lib/utils/entity-with-id.js +1 -1
  361. package/lib/utils/file-utils.js +1 -1
  362. package/lib/utils/guides-cdn.js +1 -1
  363. package/lib/utils/http-client.js +1 -1
  364. package/lib/utils/is-non-interactive.js +1 -1
  365. package/lib/utils/logger.js +1 -1
  366. package/lib/utils/params.js +1 -1
  367. package/lib/utils/platform.js +1 -1
  368. package/lib/utils/sleep.js +1 -1
  369. package/lib/utils/template-replacer.js +1 -1
  370. package/lib/utils/update-notice.js +1 -1
  371. package/lib/utils/version.js +1 -1
  372. package/lib/utils/with-active-cookie.js +1 -1
  373. package/lib/utils/write-cli-side-channel.js +1 -1
  374. package/package.json +1 -1
  375. package/skills/rabetbase/SKILL.md +1 -1
  376. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  377. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  378. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  379. package/skills/rabetbase.manifest.json +3 -3
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- function a286_0x8630(_0x5b15c7,_0x214138){_0x5b15c7=_0x5b15c7-0x137;const _0x1fc41e=a286_0x1fc4();let _0x863054=_0x1fc41e[_0x5b15c7];return _0x863054;}const a286_0x19c9a9=a286_0x8630;(function(_0x4963d1,_0x36af5d){const _0x308c8a=a286_0x8630,_0x43d28d=_0x4963d1();while(!![]){try{const _0x1b5ad2=-parseInt(_0x308c8a(0x166))/0x1*(parseInt(_0x308c8a(0x15f))/0x2)+parseInt(_0x308c8a(0x163))/0x3+parseInt(_0x308c8a(0x13c))/0x4*(-parseInt(_0x308c8a(0x15b))/0x5)+parseInt(_0x308c8a(0x14c))/0x6*(parseInt(_0x308c8a(0x15a))/0x7)+parseInt(_0x308c8a(0x179))/0x8*(-parseInt(_0x308c8a(0x171))/0x9)+parseInt(_0x308c8a(0x16a))/0xa*(-parseInt(_0x308c8a(0x148))/0xb)+parseInt(_0x308c8a(0x153))/0xc;if(_0x1b5ad2===_0x36af5d)break;else _0x43d28d['push'](_0x43d28d['shift']());}catch(_0x324806){_0x43d28d['push'](_0x43d28d['shift']());}}}(a286_0x1fc4,0xaff96));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';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(_0xfbc680){return process.env[`RABETBASE_${_0xfbc680}`]||process.env[`LOVRABET_${_0xfbc680}`]||undefined;}function optionalString(_0x373921){const _0x27391a=a286_0x8630;return typeof _0x373921===_0x27391a(0x14f)&&_0x373921['trim']()?_0x373921[_0x27391a(0x13f)]():undefined;}export function isRoutingRecoveryService(_0x20848b){return _0x20848b==='config'||_0x20848b==='doctor';}export async function createContext(_0x11c258){const _0x1cd2fd=a286_0x8630,{config:_0x4bcf98,layers:_0x37fa6a}=readRawConfigWithLayers(),_0xec3847=buildConfig(_0x4bcf98,_0x11c258,_0x37fa6a);await initGlobalEnvironment(_0xec3847);const {getUserDomain:_0x2dc990,getApiDomain:_0x4ac4db}=await import(_0x1cd2fd(0x149)),_0x77aca1={'apiDomain':_0x4ac4db(),'userDomain':_0x2dc990()},_0x31a119=await buildAuth(_0xec3847);logger['setLogPath'](process['cwd']());const _0x3bd7b6=(CLI_BIN_NAME+'\x20'+process[_0x1cd2fd(0x16e)]['slice'](0x2)['join']('\x20'))[_0x1cd2fd(0x13f)]();logger[_0x1cd2fd(0x169)](_0x3bd7b6);const {isNonInteractive:_0x4b4b40}=await import('./utils/is-non-interactive.js'),_0x149c45=_0x4b4b40(_0x11c258);return{'config':_0xec3847,'auth':_0x31a119,'logger':logger,'env':_0x77aca1,'nonInteractive':_0x149c45};}export function buildConfigFromFlags(_0x3d5b64){const {config:_0x3d8776,layers:_0x5e5a90}=readRawConfigWithLayers();return buildConfig(_0x3d8776,_0x3d5b64,_0x5e5a90);}export async function initGlobalEnvironment(_0x227703){const _0x12010d=a286_0x8630,_0x5638ec=_0x227703['regionSource']==='app'&&_0x227703['currentApp']?_0x12010d(0x175)+_0x227703[_0x12010d(0x176)]+'\x22':_0x227703['regionSource']===_0x12010d(0x14e)?_0x12010d(0x161):_0x227703['regionSource']===_0x12010d(0x154)?'global\x20Rabetbase\x20configuration':_0x12010d(0x145);await initConfiguredEnvironment({'raw':_0x227703[_0x12010d(0x147)],'configuredRegion':_0x227703['regionConfiguredValue']??_0x227703[_0x12010d(0x147)]?.['region']??_0x227703['region'],'regionLocation':_0x5638ec,'targetEnv':_0x227703[_0x12010d(0x13e)]});}async function initConfiguredEnvironment(_0x594bed){const _0x1e4490=a286_0x8630,_0x2ce526=resolveConfiguredRegion(_0x594bed[_0x1e4490(0x13a)],_0x594bed[_0x1e4490(0x139)]),_0x3ab33c=resolveEnterpriseRoutingManifest(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x144)]),_0x180610={'region':_0x2ce526,'apiDomain':_0x3ab33c?_0x3ab33c[_0x1e4490(0x158)][_0x1e4490(0x137)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x137)]),'userDomain':_0x3ab33c?_0x3ab33c[_0x1e4490(0x158)][_0x1e4490(0x170)]:optionalString(_0x594bed['raw']?.[_0x1e4490(0x170)]),'runtimeDomain':_0x3ab33c?_0x3ab33c[_0x1e4490(0x158)]['runtimeDomain']:optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x174)]),'skillDomain':_0x3ab33c?_0x3ab33c['domains'][_0x1e4490(0x138)]:optionalString(_0x594bed['raw']?.['skillDomain'])||optionalString(_0x594bed[_0x1e4490(0x147)]?.['skillHubDomain'])||optionalString(_0x594bed['raw']?.[_0x1e4490(0x17b)])||optionalString(_0x594bed[_0x1e4490(0x147)]?.['platformDomain']),'kbDomain':_0x3ab33c?_0x3ab33c[_0x1e4490(0x158)][_0x1e4490(0x13b)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x13b)])||optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x17b)])||optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x152)]),'kbServiceDomain':_0x3ab33c?_0x3ab33c['domains'][_0x1e4490(0x159)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x159)]),'appDomain':_0x3ab33c?_0x3ab33c['domains'][_0x1e4490(0x162)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.[_0x1e4490(0x162)]),'localDomain':_0x3ab33c?_0x3ab33c['domains'][_0x1e4490(0x155)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.['localDomain']),'certificateDomain':_0x3ab33c?_0x3ab33c[_0x1e4490(0x158)][_0x1e4490(0x156)]:optionalString(_0x594bed[_0x1e4490(0x147)]?.['certificateDomain']),'cdn':_0x3ab33c?.['cdn'],'allowOfficialKbServiceDefault':!(_0x3ab33c!==undefined||['apiDomain',_0x1e4490(0x170),_0x1e4490(0x174),_0x1e4490(0x138),_0x1e4490(0x165),_0x1e4490(0x13b),_0x1e4490(0x159),_0x1e4490(0x17b),_0x1e4490(0x152),'appDomain',_0x1e4490(0x155),_0x1e4490(0x156)][_0x1e4490(0x14a)](_0xc3dd30=>Object[_0x1e4490(0x143)][_0x1e4490(0x14d)][_0x1e4490(0x13d)](_0x594bed[_0x1e4490(0x147)]??{},_0xc3dd30)))},{initEnv:_0x38f5ad}=await import(_0x1e4490(0x17a)),{initDomains:_0x3e7d92}=await import(_0x1e4490(0x149));_0x38f5ad(_0x594bed[_0x1e4490(0x16b)]),_0x3e7d92(_0x180610);}export async function initMultiAppEnvironment(_0x4fe8ce){const _0x29c931=a286_0x8630;await initConfiguredEnvironment({'raw':_0x4fe8ce[_0x29c931(0x150)],'configuredRegion':_0x4fe8ce[_0x29c931(0x173)],'regionLocation':_0x29c931(0x175)+_0x4fe8ce[_0x29c931(0x151)]+'\x22','targetEnv':_0x4fe8ce[_0x29c931(0x13e)]===_0x29c931(0x14b)?_0x29c931(0x14b):_0x29c931(0x168)});}export function getConfigAppCode(_0x593f32){const _0x33f27b=a286_0x8630,_0x536c2f=readRawConfig(_0x593f32);if(_0x536c2f['apps']&&typeof _0x536c2f[_0x33f27b(0x146)]===_0x33f27b(0x172)){const _0x1e9833=_0x536c2f[_0x33f27b(0x16c)];if(_0x1e9833)return _0x536c2f[_0x33f27b(0x146)][_0x1e9833]?.[_0x33f27b(0x16d)]?String(_0x536c2f['apps'][_0x1e9833][_0x33f27b(0x16d)])[_0x33f27b(0x13f)]():undefined;const _0x236b9d=Object['values'](_0x536c2f[_0x33f27b(0x146)]);if(_0x236b9d['length']===0x1&&_0x236b9d[0x0]?.[_0x33f27b(0x16d)])return String(_0x236b9d[0x0][_0x33f27b(0x16d)])['trim']();}const _0x17ad5a=_0x536c2f[_0x33f27b(0x16d)]||_0x536c2f[_0x33f27b(0x160)];if(typeof _0x17ad5a!==_0x33f27b(0x14f)||_0x17ad5a[_0x33f27b(0x13f)]()==='')return undefined;return _0x17ad5a[_0x33f27b(0x13f)]();}const CONNECTION_ROUTING_KEYS=[a286_0x19c9a9(0x144),a286_0x19c9a9(0x137),'userDomain',a286_0x19c9a9(0x174),a286_0x19c9a9(0x138),a286_0x19c9a9(0x165),a286_0x19c9a9(0x13b),a286_0x19c9a9(0x159),'agentDomain','platformDomain',a286_0x19c9a9(0x162),a286_0x19c9a9(0x155),a286_0x19c9a9(0x156)];function withAppProfileRouting(_0x157487,_0x2f5499){const _0x14c904=a286_0x19c9a9;if(!_0x2f5499||_0x2f5499[_0x14c904(0x159)]===undefined)return _0x157487;return{..._0x157487,'kbServiceDomain':_0x2f5499['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x4a9d5c,_0x402f34){const _0x4cac68={'region':_0x402f34};for(const _0x5dc5f2 of CONNECTION_ROUTING_KEYS){if(_0x4a9d5c[_0x5dc5f2]!==undefined)_0x4cac68[_0x5dc5f2]=_0x4a9d5c[_0x5dc5f2];}return _0x4cac68;}function a286_0x1fc4(){const _0x34dfb3=['skillHubDomain','54122LDcSKZ','source','production','setRawCommand','1410JxahQH','targetEnv','defaultApp','appcode','argv','map','userDomain','98172wagJiz','object','region','runtimeDomain','app\x20profile\x20\x22','currentApp','keys','globalConfig','128wkcVyu','./constant/env.js','agentDomain','length','apiDomain','skillDomain','regionLocation','configuredRegion','kbDomain','1288eWqLry','call','env','trim','projectConfig','apiDir','filePath','prototype','routing','Rabetbase\x20configuration','apps','raw','38137dbvLcz','./constant/domain.js','some','daily','259218AJwOSI','hasOwnProperty','project','string','routingConfig','name','platformDomain','24404160ntbOvr','global','localDomain','certificateDomain','cookie','domains','kbServiceDomain','189RWDZjs','21030xUtqvb','replace','apiGroup','https://g.lovrabet.com/dist/lovrabet-skill','50CeAsNA','app','project\x20Rabetbase\x20configuration','appDomain','2674158HDrAjY','template_base_url'];a286_0x1fc4=function(){return _0x34dfb3;};return a286_0x1fc4();}export function getMultiAppConfigs(_0x519ed6=a286_0x19c9a9(0x14e),_0x24dece){const _0x4c7cb2=a286_0x19c9a9,_0x3a4307=loadRawConfigLayers(_0x24dece);let _0x36ddfd,_0x4d14bf;const _0x52cd53=mergeRawConfigLayers(_0x3a4307),_0x4fc4fd=_0x3a4307['globalConfig'][_0x4c7cb2(0x146)]&&typeof _0x3a4307[_0x4c7cb2(0x178)][_0x4c7cb2(0x146)]===_0x4c7cb2(0x172)?_0x3a4307[_0x4c7cb2(0x178)][_0x4c7cb2(0x146)]:{},_0x554e22=_0x3a4307[_0x4c7cb2(0x140)]['apps']&&typeof _0x3a4307[_0x4c7cb2(0x140)][_0x4c7cb2(0x146)]===_0x4c7cb2(0x172)?_0x3a4307['projectConfig'][_0x4c7cb2(0x146)]:{};_0x519ed6==='merged'?(_0x36ddfd={..._0x4fc4fd,..._0x554e22},_0x4d14bf=_0x52cd53['defaultApp']):(_0x36ddfd=_0x3a4307[_0x4c7cb2(0x140)][_0x4c7cb2(0x146)],_0x4d14bf=_0x3a4307[_0x4c7cb2(0x140)][_0x4c7cb2(0x16c)]);!_0x4d14bf&&_0x36ddfd&&typeof _0x36ddfd==='object'&&Object[_0x4c7cb2(0x177)](_0x36ddfd)[_0x4c7cb2(0x17c)]===0x1&&(_0x4d14bf=Object[_0x4c7cb2(0x177)](_0x36ddfd)[0x0]);if(!_0x36ddfd||typeof _0x36ddfd!=='object'||Object['keys'](_0x36ddfd)[_0x4c7cb2(0x17c)]===0x0)return null;return Object['entries'](_0x36ddfd)[_0x4c7cb2(0x16f)](([_0x5cf726,_0x544e94])=>{const _0x992ea=_0x4c7cb2,_0x59aac3=_0x519ed6==='project'||Object[_0x992ea(0x143)][_0x992ea(0x14d)][_0x992ea(0x13d)](_0x554e22,_0x5cf726),_0xd64e53=withAppProfileRouting(_0x59aac3?_0x52cd53:_0x3a4307['globalConfig'],_0x544e94),_0x51d153=resolveEffectiveRegion({'appRegion':_0x544e94?.[_0x992ea(0x173)],'projectRegion':_0x59aac3?_0x3a4307['projectConfig'][_0x992ea(0x173)]:undefined,'globalRegion':_0x3a4307[_0x992ea(0x178)][_0x992ea(0x173)],'mergedRegion':_0xd64e53[_0x992ea(0x173)],'appName':_0x5cf726});return{'name':_0x5cf726,'appcode':_0x544e94?.['appcode']||'','apiGroup':optionalString(_0x544e94?.[_0x992ea(0x15d)]),'isDefault':_0x5cf726===_0x4d14bf,'region':_0x51d153['region'],'regionSource':_0x51d153[_0x992ea(0x167)],'env':_0x544e94?.[_0x992ea(0x13e)],'apiDir':optionalString(_0x544e94?.[_0x992ea(0x141)])||optionalString(_0xd64e53[_0x992ea(0x141)]),'cookie':_0x544e94?.[_0x992ea(0x157)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0xd64e53,_0x51d153[_0x992ea(0x173)])};})['filter'](_0x5733c4=>_0x5733c4[_0x4c7cb2(0x16d)]);}export function getTemplateBaseUrl(_0x20e696){const _0x480945=a286_0x19c9a9,_0xc684e=readRawConfig(_0x20e696);if(_0xc684e[_0x480945(0x164)]&&typeof _0xc684e[_0x480945(0x164)]==='string')return _0xc684e[_0x480945(0x164)][_0x480945(0x15c)](/\/$/,'');return _0x480945(0x15e);}function buildConfig(_0x341aec,_0x271de9,_0x4a29a2){const _0x335a41=resolveAppConfig({'raw':_0x341aec,'flags':_0x271de9,'layers':_0x4a29a2,'readEnv':env}),_0x359dba=_0x335a41['currentApp']?_0x335a41['apps'][_0x335a41['currentApp']]:undefined;return{..._0x335a41,'raw':withAppProfileRouting(_0x341aec,_0x359dba)};}export function resolveApiFilePath(_0x7e9073,_0x20a44a,_0x5eb59f){const _0x207ba6=a286_0x19c9a9;return resolveApiModelSource(_0x7e9073,_0x20a44a,_0x5eb59f)[_0x207ba6(0x142)];}
1
+ const a286_0xd59356=a286_0x1e7d;(function(_0x5d1761,_0x479d52){const _0x2af36c=a286_0x1e7d,_0x316bd3=_0x5d1761();while(!![]){try{const _0x2d25b9=parseInt(_0x2af36c(0x138))/0x1+parseInt(_0x2af36c(0x11f))/0x2*(parseInt(_0x2af36c(0x119))/0x3)+parseInt(_0x2af36c(0x126))/0x4*(-parseInt(_0x2af36c(0x12e))/0x5)+-parseInt(_0x2af36c(0x146))/0x6*(-parseInt(_0x2af36c(0x136))/0x7)+-parseInt(_0x2af36c(0x131))/0x8+-parseInt(_0x2af36c(0x13d))/0x9*(-parseInt(_0x2af36c(0x124))/0xa)+parseInt(_0x2af36c(0x108))/0xb*(-parseInt(_0x2af36c(0x10f))/0xc);if(_0x2d25b9===_0x479d52)break;else _0x316bd3['push'](_0x316bd3['shift']());}catch(_0x3bbd03){_0x316bd3['push'](_0x316bd3['shift']());}}}(a286_0x4033,0x60e03));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';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';function a286_0x4033(){const _0x1d2e8f=['3860tEDpiF','doctor','620HSvytl','argv','env','agentDomain','values','call','object','regionSource','14735JiydMG','daily','string','5794656LTmwGN','apiGroup','region','https://g.lovrabet.com/dist/lovrabet-skill','apps','819pFutHU','filter','389877JJCCWc','appDomain','filePath','prototype','replace','11574lISvuD','configuredRegion','userDomain','currentApp','template_base_url','projectConfig','localDomain','./utils/is-non-interactive.js','skillDomain','37998uVBwOg','app\x20profile\x20\x22','domains','apiDir','routing','name','apiDomain','routingConfig','cookie','Rabetbase\x20configuration','raw','trim','./constant/domain.js','setLogPath','kbServiceDomain','source','297AnDWBN','appcode','regionConfiguredValue','runtimeDomain','project\x20Rabetbase\x20configuration','certificateDomain','entries','66876QCoskg','cwd','production','project','globalConfig','regionLocation','hasOwnProperty','length','skillHubDomain','setRawCommand','303471eUTJuW','defaultApp','keys','config','map','merged','2KBmJVs','some','kbDomain','targetEnv','app'];a286_0x4033=function(){return _0x1d2e8f;};return a286_0x4033();}import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x1e7d(_0x4e139c,_0x50a919){_0x4e139c=_0x4e139c-0xff;const _0x4033a9=a286_0x4033();let _0x1e7dbc=_0x4033a9[_0x4e139c];return _0x1e7dbc;}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x21566d){return process.env[`RABETBASE_${_0x21566d}`]||process.env[`LOVRABET_${_0x21566d}`]||undefined;}function optionalString(_0x782c29){const _0x553b98=a286_0x1e7d;return typeof _0x782c29===_0x553b98(0x130)&&_0x782c29['trim']()?_0x782c29[_0x553b98(0x103)]():undefined;}export function isRoutingRecoveryService(_0x2f92c2){const _0x313dc5=a286_0x1e7d;return _0x2f92c2===_0x313dc5(0x11c)||_0x2f92c2===_0x313dc5(0x125);}export async function createContext(_0x3db59c){const _0x15bd59=a286_0x1e7d,{config:_0x4b4f81,layers:_0x1d93da}=readRawConfigWithLayers(),_0x384a76=buildConfig(_0x4b4f81,_0x3db59c,_0x1d93da);await initGlobalEnvironment(_0x384a76);const {getUserDomain:_0x4c2e0,getApiDomain:_0x26df01}=await import(_0x15bd59(0x104)),_0x7f8ac={'apiDomain':_0x26df01(),'userDomain':_0x4c2e0()},_0x46b9e7=await buildAuth(_0x384a76);logger[_0x15bd59(0x105)](process[_0x15bd59(0x110)]());const _0x47301c=(CLI_BIN_NAME+'\x20'+process[_0x15bd59(0x127)]['slice'](0x2)['join']('\x20'))['trim']();logger[_0x15bd59(0x118)](_0x47301c);const {isNonInteractive:_0x17cd14}=await import(_0x15bd59(0x144)),_0x35ff83=_0x17cd14(_0x3db59c);return{'config':_0x384a76,'auth':_0x46b9e7,'logger':logger,'env':_0x7f8ac,'nonInteractive':_0x35ff83};}export function buildConfigFromFlags(_0x55e527){const {config:_0x13fa7a,layers:_0x4c8fd6}=readRawConfigWithLayers();return buildConfig(_0x13fa7a,_0x55e527,_0x4c8fd6);}export async function initGlobalEnvironment(_0x495d5e){const _0x3d4dc0=a286_0x1e7d,_0x56ca27=_0x495d5e[_0x3d4dc0(0x12d)]===_0x3d4dc0(0x123)&&_0x495d5e[_0x3d4dc0(0x140)]?_0x3d4dc0(0x147)+_0x495d5e[_0x3d4dc0(0x140)]+'\x22':_0x495d5e[_0x3d4dc0(0x12d)]===_0x3d4dc0(0x112)?_0x3d4dc0(0x10c):_0x495d5e['regionSource']==='global'?'global\x20Rabetbase\x20configuration':_0x3d4dc0(0x101);await initConfiguredEnvironment({'raw':_0x495d5e[_0x3d4dc0(0x102)],'configuredRegion':_0x495d5e[_0x3d4dc0(0x10a)]??_0x495d5e['raw']?.[_0x3d4dc0(0x133)]??_0x495d5e['region'],'regionLocation':_0x56ca27,'targetEnv':_0x495d5e[_0x3d4dc0(0x128)]});}async function initConfiguredEnvironment(_0x5191cf){const _0x3297f4=a286_0x1e7d,_0x56ec00=resolveConfiguredRegion(_0x5191cf[_0x3297f4(0x13e)],_0x5191cf[_0x3297f4(0x114)]),_0xf919cc=resolveEnterpriseRoutingManifest(_0x5191cf[_0x3297f4(0x102)]?.['routing']),_0x446c51={'region':_0x56ec00,'apiDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x14c)]:optionalString(_0x5191cf['raw']?.[_0x3297f4(0x14c)]),'userDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x13f)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x13f)]),'runtimeDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x10b)]:optionalString(_0x5191cf['raw']?.[_0x3297f4(0x10b)]),'skillDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x145)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x145)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x117)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x129)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.['platformDomain']),'kbDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x121)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x121)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x129)])||optionalString(_0x5191cf[_0x3297f4(0x102)]?.['platformDomain']),'kbServiceDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x106)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x106)]),'appDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)]['appDomain']:optionalString(_0x5191cf['raw']?.['appDomain']),'localDomain':_0xf919cc?_0xf919cc['domains'][_0x3297f4(0x143)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x143)]),'certificateDomain':_0xf919cc?_0xf919cc[_0x3297f4(0x148)][_0x3297f4(0x10d)]:optionalString(_0x5191cf[_0x3297f4(0x102)]?.[_0x3297f4(0x10d)]),'cdn':_0xf919cc?.['cdn'],'allowOfficialKbServiceDefault':!(_0xf919cc!==undefined||['apiDomain',_0x3297f4(0x13f),'runtimeDomain',_0x3297f4(0x145),_0x3297f4(0x117),_0x3297f4(0x121),_0x3297f4(0x106),_0x3297f4(0x129),'platformDomain',_0x3297f4(0x139),_0x3297f4(0x143),_0x3297f4(0x10d)][_0x3297f4(0x120)](_0x129d60=>Object['prototype'][_0x3297f4(0x115)][_0x3297f4(0x12b)](_0x5191cf[_0x3297f4(0x102)]??{},_0x129d60)))},{initEnv:_0x583291}=await import('./constant/env.js'),{initDomains:_0x26a572}=await import(_0x3297f4(0x104));_0x583291(_0x5191cf[_0x3297f4(0x122)]),_0x26a572(_0x446c51);}export async function initMultiAppEnvironment(_0x239b5a){const _0x3ee5e0=a286_0x1e7d;await initConfiguredEnvironment({'raw':_0x239b5a[_0x3ee5e0(0xff)],'configuredRegion':_0x239b5a[_0x3ee5e0(0x133)],'regionLocation':'app\x20profile\x20\x22'+_0x239b5a[_0x3ee5e0(0x14b)]+'\x22','targetEnv':_0x239b5a['env']===_0x3ee5e0(0x12f)?'daily':_0x3ee5e0(0x111)});}export function getConfigAppCode(_0x5a617c){const _0x5d40a7=a286_0x1e7d,_0x265b8a=readRawConfig(_0x5a617c);if(_0x265b8a[_0x5d40a7(0x135)]&&typeof _0x265b8a[_0x5d40a7(0x135)]===_0x5d40a7(0x12c)){const _0x2a6677=_0x265b8a[_0x5d40a7(0x11a)];if(_0x2a6677)return _0x265b8a[_0x5d40a7(0x135)][_0x2a6677]?.[_0x5d40a7(0x109)]?String(_0x265b8a[_0x5d40a7(0x135)][_0x2a6677][_0x5d40a7(0x109)])[_0x5d40a7(0x103)]():undefined;const _0x46cb64=Object[_0x5d40a7(0x12a)](_0x265b8a[_0x5d40a7(0x135)]);if(_0x46cb64[_0x5d40a7(0x116)]===0x1&&_0x46cb64[0x0]?.[_0x5d40a7(0x109)])return String(_0x46cb64[0x0]['appcode'])[_0x5d40a7(0x103)]();}const _0x2349fe=_0x265b8a[_0x5d40a7(0x109)]||_0x265b8a[_0x5d40a7(0x123)];if(typeof _0x2349fe!==_0x5d40a7(0x130)||_0x2349fe[_0x5d40a7(0x103)]()==='')return undefined;return _0x2349fe[_0x5d40a7(0x103)]();}const CONNECTION_ROUTING_KEYS=[a286_0xd59356(0x14a),a286_0xd59356(0x14c),'userDomain',a286_0xd59356(0x10b),a286_0xd59356(0x145),a286_0xd59356(0x117),'kbDomain',a286_0xd59356(0x106),a286_0xd59356(0x129),'platformDomain',a286_0xd59356(0x139),a286_0xd59356(0x143),a286_0xd59356(0x10d)];function withAppProfileRouting(_0xa7a361,_0x1ab3e9){const _0x2335ed=a286_0xd59356;if(!_0x1ab3e9||_0x1ab3e9[_0x2335ed(0x106)]===undefined)return _0xa7a361;return{..._0xa7a361,'kbServiceDomain':_0x1ab3e9[_0x2335ed(0x106)]};}function pickConnectionRoutingConfig(_0x124acb,_0xb3f5b0){const _0x55fb8f={'region':_0xb3f5b0};for(const _0x28a315 of CONNECTION_ROUTING_KEYS){if(_0x124acb[_0x28a315]!==undefined)_0x55fb8f[_0x28a315]=_0x124acb[_0x28a315];}return _0x55fb8f;}export function getMultiAppConfigs(_0x22a17f=a286_0xd59356(0x112),_0x23a077){const _0x19129f=a286_0xd59356,_0x37ceca=loadRawConfigLayers(_0x23a077);let _0x126e15,_0x1e4008;const _0x471409=mergeRawConfigLayers(_0x37ceca),_0x1f44e6=_0x37ceca[_0x19129f(0x113)][_0x19129f(0x135)]&&typeof _0x37ceca[_0x19129f(0x113)]['apps']===_0x19129f(0x12c)?_0x37ceca[_0x19129f(0x113)][_0x19129f(0x135)]:{},_0x4e0038=_0x37ceca[_0x19129f(0x142)]['apps']&&typeof _0x37ceca[_0x19129f(0x142)][_0x19129f(0x135)]==='object'?_0x37ceca[_0x19129f(0x142)]['apps']:{};_0x22a17f===_0x19129f(0x11e)?(_0x126e15={..._0x1f44e6,..._0x4e0038},_0x1e4008=_0x471409[_0x19129f(0x11a)]):(_0x126e15=_0x37ceca[_0x19129f(0x142)][_0x19129f(0x135)],_0x1e4008=_0x37ceca['projectConfig']['defaultApp']);!_0x1e4008&&_0x126e15&&typeof _0x126e15===_0x19129f(0x12c)&&Object[_0x19129f(0x11b)](_0x126e15)[_0x19129f(0x116)]===0x1&&(_0x1e4008=Object[_0x19129f(0x11b)](_0x126e15)[0x0]);if(!_0x126e15||typeof _0x126e15!=='object'||Object[_0x19129f(0x11b)](_0x126e15)[_0x19129f(0x116)]===0x0)return null;return Object[_0x19129f(0x10e)](_0x126e15)[_0x19129f(0x11d)](([_0x4ff4b4,_0x2018e7])=>{const _0x31e483=_0x19129f,_0x342e63=_0x22a17f===_0x31e483(0x112)||Object[_0x31e483(0x13b)][_0x31e483(0x115)][_0x31e483(0x12b)](_0x4e0038,_0x4ff4b4),_0xf12ee3=withAppProfileRouting(_0x342e63?_0x471409:_0x37ceca[_0x31e483(0x113)],_0x2018e7),_0x2a4f8a=resolveEffectiveRegion({'appRegion':_0x2018e7?.[_0x31e483(0x133)],'projectRegion':_0x342e63?_0x37ceca[_0x31e483(0x142)][_0x31e483(0x133)]:undefined,'globalRegion':_0x37ceca[_0x31e483(0x113)]['region'],'mergedRegion':_0xf12ee3['region'],'appName':_0x4ff4b4});return{'name':_0x4ff4b4,'appcode':_0x2018e7?.['appcode']||'','apiGroup':optionalString(_0x2018e7?.[_0x31e483(0x132)]),'isDefault':_0x4ff4b4===_0x1e4008,'region':_0x2a4f8a[_0x31e483(0x133)],'regionSource':_0x2a4f8a[_0x31e483(0x107)],'env':_0x2018e7?.[_0x31e483(0x128)],'apiDir':optionalString(_0x2018e7?.[_0x31e483(0x149)])||optionalString(_0xf12ee3[_0x31e483(0x149)]),'cookie':_0x2018e7?.[_0x31e483(0x100)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0xf12ee3,_0x2a4f8a[_0x31e483(0x133)])};})[_0x19129f(0x137)](_0x3db9fa=>_0x3db9fa[_0x19129f(0x109)]);}export function getTemplateBaseUrl(_0x164bfb){const _0xc4ab86=a286_0xd59356,_0x375a0a=readRawConfig(_0x164bfb);if(_0x375a0a['template_base_url']&&typeof _0x375a0a[_0xc4ab86(0x141)]==='string')return _0x375a0a['template_base_url'][_0xc4ab86(0x13c)](/\/$/,'');return _0xc4ab86(0x134);}function buildConfig(_0x135aa8,_0x457115,_0x1c7f29){const _0x38e38f=a286_0xd59356,_0x3587b3=resolveAppConfig({'raw':_0x135aa8,'flags':_0x457115,'layers':_0x1c7f29,'readEnv':env}),_0x366b78=_0x3587b3[_0x38e38f(0x140)]?_0x3587b3[_0x38e38f(0x135)][_0x3587b3['currentApp']]:undefined;return{..._0x3587b3,'raw':withAppProfileRouting(_0x135aa8,_0x366b78)};}export function resolveApiFilePath(_0x40424a,_0xadc153,_0x5abc29){const _0x266ce3=a286_0xd59356;return resolveApiModelSource(_0x40424a,_0xadc153,_0x5abc29)[_0x266ce3(0x13a)];}
@@ -1 +1 @@
1
- const a287_0x5451d5=a287_0x4d8c;(function(_0x1659e2,_0x536d1e){const _0xa304df=a287_0x4d8c,_0x3a0d4d=_0x1659e2();while(!![]){try{const _0x5c9ac4=-parseInt(_0xa304df(0x13b))/0x1+-parseInt(_0xa304df(0x159))/0x2+parseInt(_0xa304df(0x144))/0x3*(parseInt(_0xa304df(0x13d))/0x4)+-parseInt(_0xa304df(0x153))/0x5*(parseInt(_0xa304df(0x150))/0x6)+-parseInt(_0xa304df(0x14f))/0x7+parseInt(_0xa304df(0x146))/0x8*(-parseInt(_0xa304df(0x156))/0x9)+parseInt(_0xa304df(0x14c))/0xa;if(_0x5c9ac4===_0x536d1e)break;else _0x3a0d4d['push'](_0x3a0d4d['shift']());}catch(_0x23ec66){_0x3a0d4d['push'](_0x3a0d4d['shift']());}}}(a287_0x4592,0x39381));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';function a287_0x4592(){const _0x151d15=['exec','3057943DYkiaK','1080lxftXc','size','set','590NNPaEC','.cjs','startsWith','2814921vSTwfg','slice','has','93516lVhbRy','.ts','length','.js','filter','.mts','332044FHNsbr','../','695572DUfNPY','utf-8','map','.cts','flatMap','alias','stringify','3lsfpzL','source','8bkAgdY','add','tableName','datasetCode','.tsx','cwd','12101360Yfwkjj','get'];a287_0x4592=function(){return _0x151d15;};return a287_0x4592();}const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x5451d5(0x15a),a287_0x5451d5(0x14a),a287_0x5451d5(0x13a),a287_0x5451d5(0x140),a287_0x5451d5(0x138),'.jsx','.mjs',a287_0x5451d5(0x154)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x5451d5(0x15a),a287_0x5451d5(0x14a)],'.jsx':['.tsx'],'.mjs':['.mts'],'.cjs':[a287_0x5451d5(0x140)]};function parseApiFile(_0x827905){const _0x3bb665=a287_0x5451d5;return parseLegacyApiModels(_0x827905)['flatMap'](_0x211833=>_0x211833['alias']?[{'alias':_0x211833[_0x3bb665(0x142)],'datasetCode':_0x211833[_0x3bb665(0x149)],'tableName':_0x211833[_0x3bb665(0x148)],'name':_0x211833['name']}]:[]);}function isWithinRoot(_0x3ffc99,_0x44661e){const _0x39d1eb=a287_0x5451d5,_0x49ad74=relative(_0x3ffc99,_0x44661e);return _0x49ad74===''||!_0x49ad74[_0x39d1eb(0x155)]('..')&&!isAbsolute(_0x49ad74);}function resolveExistingFile(_0x4c01b5){if(!existsSync(_0x4c01b5))return undefined;try{return statSync(_0x4c01b5)['isFile']()?realpathSync(_0x4c01b5):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x3c19f7){const _0x268357=a287_0x5451d5,_0x430a5c=extname(_0x3c19f7);if(!_0x430a5c)return[...SOURCE_FILE_EXTENSIONS[_0x268357(0x13f)](_0x101712=>''+_0x3c19f7+_0x101712),...SOURCE_FILE_EXTENSIONS[_0x268357(0x13f)](_0x1e3c22=>resolve(_0x3c19f7,'index'+_0x1e3c22))];const _0x46c46c=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x430a5c];if(!_0x46c46c)return[_0x3c19f7];const _0x57010c=_0x3c19f7[_0x268357(0x157)](0x0,-_0x430a5c[_0x268357(0x15b)]);return[..._0x46c46c[_0x268357(0x13f)](_0x40070a=>''+_0x57010c+_0x40070a),_0x3c19f7];}function resolveLocalReexport(_0x4f72bf,_0x3c795d,_0x2f7c5c){const _0x4b188f=a287_0x5451d5;if(!_0x3c795d[_0x4b188f(0x155)]('./')&&!_0x3c795d[_0x4b188f(0x155)](_0x4b188f(0x13c)))return undefined;const _0x3645ee=resolve(dirname(_0x4f72bf),_0x3c795d);if(!isWithinRoot(_0x2f7c5c,_0x3645ee))return undefined;for(const _0x14915f of reexportCandidatePaths(_0x3645ee)){const _0x29fae9=resolveExistingFile(_0x14915f);if(_0x29fae9&&isWithinRoot(_0x2f7c5c,_0x29fae9))return _0x29fae9;}return undefined;}function parseApiFileTree(_0x5129de,_0x1f9b43,_0x873a4,_0x244edc){const _0x50597d=a287_0x5451d5,_0x171344=resolveExistingFile(_0x5129de);if(!_0x171344)return[];const _0x58bb75=_0x873a4[_0x50597d(0x14d)](_0x171344);if(_0x58bb75!==undefined&&_0x58bb75<=_0x244edc)return[];_0x873a4[_0x50597d(0x152)](_0x171344,_0x244edc);const _0x3f6c77=readFileSync(_0x171344,_0x50597d(0x13e)),_0x4ca7cc=parseApiFile(_0x3f6c77);if(_0x244edc>=MAX_LOCAL_REEXPORT_DEPTH)return _0x4ca7cc;const _0x530a3c=new RegExp(LOCAL_REEXPORT_RE[_0x50597d(0x145)],LOCAL_REEXPORT_RE['flags']);let _0x3c026c;while((_0x3c026c=_0x530a3c[_0x50597d(0x14e)](_0x3f6c77))!==null){const _0xb05d70=resolveLocalReexport(_0x171344,_0x3c026c[0x1],_0x1f9b43);_0xb05d70&&_0x4ca7cc['push'](...parseApiFileTree(_0xb05d70,_0x1f9b43,_0x873a4,_0x244edc+0x1));}return _0x4ca7cc;}function aliasProjectRoot(_0x1a50a1){const _0x556136=findProjectRootDirectory(dirname(_0x1a50a1));try{return realpathSync(_0x556136);}catch{return _0x556136;}}function uniqueAliasEntries(_0x3223c3){const _0x30953f=a287_0x5451d5,_0x3160f4=new Set();return _0x3223c3[_0x30953f(0x139)](_0x2ffa47=>{const _0x1ac394=_0x30953f,_0x37a0e8=JSON[_0x1ac394(0x143)](_0x2ffa47);if(_0x3160f4[_0x1ac394(0x158)](_0x37a0e8))return![];return _0x3160f4[_0x1ac394(0x147)](_0x37a0e8),!![];});}export function loadAliasMap(_0x56d6f7,_0x1dc160,_0x304000,_0x1b09e9){const _0x3ab3a4=a287_0x5451d5,_0x5dd33d=resolve(_0x304000??resolve(process[_0x3ab3a4(0x14b)](),_0x56d6f7,'api.ts')),_0xb241a1=_0x1b09e9?_0x5dd33d+'#'+_0x1b09e9:_0x5dd33d;if(cache[_0x3ab3a4(0x158)](_0xb241a1))return cache[_0x3ab3a4(0x14d)](_0xb241a1);if(!existsSync(_0x5dd33d))return cache[_0x3ab3a4(0x152)](_0xb241a1,[]),[];try{if(_0x5dd33d['endsWith'](MODEL_REGISTRY_FILE_NAME)){const _0x30947c=readModelRegistry(_0x5dd33d),_0x56035a=_0x1b09e9??_0x30947c?.['defaultProfile'],_0x30a37a=_0x56035a&&_0x30947c?getProfileModels(_0x30947c,_0x56035a):[],_0x140884=uniqueAliasEntries(_0x30a37a[_0x3ab3a4(0x141)](_0x625db4=>_0x625db4['alias']?[{'alias':_0x625db4[_0x3ab3a4(0x142)],'datasetCode':_0x625db4['datasetCode'],'tableName':_0x625db4[_0x3ab3a4(0x148)],'name':_0x625db4['name']}]:[]));return cache[_0x3ab3a4(0x152)](_0xb241a1,_0x140884),_0x140884;}const _0x53ad13=uniqueAliasEntries(parseApiFileTree(_0x5dd33d,aliasProjectRoot(_0x5dd33d),new Map(),0x0));return cache[_0x3ab3a4(0x152)](_0xb241a1,_0x53ad13),_0x53ad13;}catch{return cache[_0x3ab3a4(0x152)](_0xb241a1,[]),[];}}function a287_0x4d8c(_0x2be1c5,_0x3bd8da){_0x2be1c5=_0x2be1c5-0x138;const _0x459218=a287_0x4592();let _0x4d8c59=_0x459218[_0x2be1c5];return _0x4d8c59;}export function resolveAlias(_0x356e35,_0x1fb74f,_0x1891b1,_0x101c35,_0x37b8df){const _0x1b588d=a287_0x5451d5;if(!_0x1fb74f)return undefined;const _0x574317=loadAliasMap(_0x356e35,_0x1891b1,_0x101c35,_0x37b8df),_0x4efc93=new Set(_0x574317[_0x1b588d(0x139)](_0x11d7e4=>_0x11d7e4[_0x1b588d(0x142)]===_0x1fb74f)[_0x1b588d(0x13f)](_0x21b47c=>_0x21b47c['datasetCode']));return _0x4efc93[_0x1b588d(0x151)]===0x1?[..._0x4efc93][0x0]:undefined;}export function listAliases(_0x48c745,_0x452ade,_0x31b592,_0x4de256){return loadAliasMap(_0x48c745,_0x452ade,_0x31b592,_0x4de256);}
1
+ const a287_0x211503=a287_0x152b;(function(_0xbad508,_0x405c91){const _0x89d476=a287_0x152b,_0x5133dc=_0xbad508();while(!![]){try{const _0x4ee669=parseInt(_0x89d476(0x1ef))/0x1+parseInt(_0x89d476(0x1f1))/0x2+parseInt(_0x89d476(0x1dc))/0x3+-parseInt(_0x89d476(0x1e6))/0x4*(parseInt(_0x89d476(0x1d6))/0x5)+parseInt(_0x89d476(0x1e5))/0x6+-parseInt(_0x89d476(0x1e3))/0x7+parseInt(_0x89d476(0x1df))/0x8*(parseInt(_0x89d476(0x1ec))/0x9);if(_0x4ee669===_0x405c91)break;else _0x5133dc['push'](_0x5133dc['shift']());}catch(_0x2782ff){_0x5133dc['push'](_0x5133dc['shift']());}}}(a287_0x5919,0xa2df2));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';function a287_0x5919(){const _0x3fdde1=['../','1223854PAjRcB','endsWith','flatMap','datasetCode','utf-8','add','.mts','startsWith','map','.tsx','.cts','has','length','1074495YXwbiQ','push','exec','.mjs','size','defaultProfile','2626764DzeVXS','index','name','3108344eZxBdE','set','.jsx','.ts','5698182pXjioK','source','2509626EeLsNq','20jRzPMo','.cjs','cwd','alias','get','filter','9FswPFO','slice','api.ts','261314qqxCKC'];a287_0x5919=function(){return _0x3fdde1;};return a287_0x5919();}import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';function a287_0x152b(_0x5910a6,_0x24a8f6){_0x5910a6=_0x5910a6-0x1d5;const _0x591965=a287_0x5919();let _0x152b2f=_0x591965[_0x5910a6];return _0x152b2f;}const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x211503(0x1e2),a287_0x211503(0x1fa),'.mts',a287_0x211503(0x1fb),'.js',a287_0x211503(0x1e1),a287_0x211503(0x1d9),a287_0x211503(0x1e7)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts',a287_0x211503(0x1fa)],'.jsx':[a287_0x211503(0x1fa)],'.mjs':[a287_0x211503(0x1f7)],'.cjs':[a287_0x211503(0x1fb)]};function parseApiFile(_0x4da56a){const _0xe14e5c=a287_0x211503;return parseLegacyApiModels(_0x4da56a)[_0xe14e5c(0x1f3)](_0x4548a7=>_0x4548a7[_0xe14e5c(0x1e9)]?[{'alias':_0x4548a7[_0xe14e5c(0x1e9)],'datasetCode':_0x4548a7[_0xe14e5c(0x1f4)],'tableName':_0x4548a7['tableName'],'name':_0x4548a7[_0xe14e5c(0x1de)]}]:[]);}function isWithinRoot(_0x2e9144,_0x2fd956){const _0x10cc98=relative(_0x2e9144,_0x2fd956);return _0x10cc98===''||!_0x10cc98['startsWith']('..')&&!isAbsolute(_0x10cc98);}function resolveExistingFile(_0x5b1e63){if(!existsSync(_0x5b1e63))return undefined;try{return statSync(_0x5b1e63)['isFile']()?realpathSync(_0x5b1e63):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0xaf4b80){const _0x12e7ce=a287_0x211503,_0x33c024=extname(_0xaf4b80);if(!_0x33c024)return[...SOURCE_FILE_EXTENSIONS[_0x12e7ce(0x1f9)](_0x52c629=>''+_0xaf4b80+_0x52c629),...SOURCE_FILE_EXTENSIONS['map'](_0x4108a5=>resolve(_0xaf4b80,_0x12e7ce(0x1dd)+_0x4108a5))];const _0x816355=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x33c024];if(!_0x816355)return[_0xaf4b80];const _0x15df2d=_0xaf4b80[_0x12e7ce(0x1ed)](0x0,-_0x33c024[_0x12e7ce(0x1d5)]);return[..._0x816355[_0x12e7ce(0x1f9)](_0x30e143=>''+_0x15df2d+_0x30e143),_0xaf4b80];}function resolveLocalReexport(_0x269b46,_0x5ad493,_0x11d5b4){const _0x8a283a=a287_0x211503;if(!_0x5ad493[_0x8a283a(0x1f8)]('./')&&!_0x5ad493[_0x8a283a(0x1f8)](_0x8a283a(0x1f0)))return undefined;const _0x207993=resolve(dirname(_0x269b46),_0x5ad493);if(!isWithinRoot(_0x11d5b4,_0x207993))return undefined;for(const _0x38324c of reexportCandidatePaths(_0x207993)){const _0x1696d0=resolveExistingFile(_0x38324c);if(_0x1696d0&&isWithinRoot(_0x11d5b4,_0x1696d0))return _0x1696d0;}return undefined;}function parseApiFileTree(_0x137750,_0x410c59,_0xfbbfdf,_0xf33228){const _0x32ac78=a287_0x211503,_0x4a7e9b=resolveExistingFile(_0x137750);if(!_0x4a7e9b)return[];const _0x4fae39=_0xfbbfdf['get'](_0x4a7e9b);if(_0x4fae39!==undefined&&_0x4fae39<=_0xf33228)return[];_0xfbbfdf[_0x32ac78(0x1e0)](_0x4a7e9b,_0xf33228);const _0x19e3ce=readFileSync(_0x4a7e9b,_0x32ac78(0x1f5)),_0x52e7e9=parseApiFile(_0x19e3ce);if(_0xf33228>=MAX_LOCAL_REEXPORT_DEPTH)return _0x52e7e9;const _0x4252ed=new RegExp(LOCAL_REEXPORT_RE[_0x32ac78(0x1e4)],LOCAL_REEXPORT_RE['flags']);let _0x56ab77;while((_0x56ab77=_0x4252ed[_0x32ac78(0x1d8)](_0x19e3ce))!==null){const _0x26018a=resolveLocalReexport(_0x4a7e9b,_0x56ab77[0x1],_0x410c59);_0x26018a&&_0x52e7e9[_0x32ac78(0x1d7)](...parseApiFileTree(_0x26018a,_0x410c59,_0xfbbfdf,_0xf33228+0x1));}return _0x52e7e9;}function aliasProjectRoot(_0x70a0b6){const _0x2161d9=findProjectRootDirectory(dirname(_0x70a0b6));try{return realpathSync(_0x2161d9);}catch{return _0x2161d9;}}function uniqueAliasEntries(_0x356fbd){const _0x4a2630=a287_0x211503,_0x25a54e=new Set();return _0x356fbd[_0x4a2630(0x1eb)](_0x550d56=>{const _0x34d279=_0x4a2630,_0x2d9e2d=JSON['stringify'](_0x550d56);if(_0x25a54e[_0x34d279(0x1fc)](_0x2d9e2d))return![];return _0x25a54e[_0x34d279(0x1f6)](_0x2d9e2d),!![];});}export function loadAliasMap(_0x595a7f,_0x1190ac,_0x3ea727,_0x40d823){const _0x312711=a287_0x211503,_0x4a5613=resolve(_0x3ea727??resolve(process[_0x312711(0x1e8)](),_0x595a7f,_0x312711(0x1ee))),_0x56e8d9=_0x40d823?_0x4a5613+'#'+_0x40d823:_0x4a5613;if(cache[_0x312711(0x1fc)](_0x56e8d9))return cache[_0x312711(0x1ea)](_0x56e8d9);if(!existsSync(_0x4a5613))return cache[_0x312711(0x1e0)](_0x56e8d9,[]),[];try{if(_0x4a5613[_0x312711(0x1f2)](MODEL_REGISTRY_FILE_NAME)){const _0xf1e74c=readModelRegistry(_0x4a5613),_0x336525=_0x40d823??_0xf1e74c?.[_0x312711(0x1db)],_0x55b29b=_0x336525&&_0xf1e74c?getProfileModels(_0xf1e74c,_0x336525):[],_0x59e817=uniqueAliasEntries(_0x55b29b[_0x312711(0x1f3)](_0x1aa112=>_0x1aa112[_0x312711(0x1e9)]?[{'alias':_0x1aa112['alias'],'datasetCode':_0x1aa112[_0x312711(0x1f4)],'tableName':_0x1aa112['tableName'],'name':_0x1aa112['name']}]:[]));return cache['set'](_0x56e8d9,_0x59e817),_0x59e817;}const _0x2bd1bf=uniqueAliasEntries(parseApiFileTree(_0x4a5613,aliasProjectRoot(_0x4a5613),new Map(),0x0));return cache[_0x312711(0x1e0)](_0x56e8d9,_0x2bd1bf),_0x2bd1bf;}catch{return cache['set'](_0x56e8d9,[]),[];}}export function resolveAlias(_0x5f1cb1,_0x1c7b86,_0x25239f,_0x54e644,_0x13b3e9){const _0x5d4f2a=a287_0x211503;if(!_0x1c7b86)return undefined;const _0x307cf8=loadAliasMap(_0x5f1cb1,_0x25239f,_0x54e644,_0x13b3e9),_0x176c6d=new Set(_0x307cf8[_0x5d4f2a(0x1eb)](_0xc4b711=>_0xc4b711[_0x5d4f2a(0x1e9)]===_0x1c7b86)[_0x5d4f2a(0x1f9)](_0x24d252=>_0x24d252[_0x5d4f2a(0x1f4)]));return _0x176c6d[_0x5d4f2a(0x1da)]===0x1?[..._0x176c6d][0x0]:undefined;}export function listAliases(_0x276063,_0x5d78d0,_0x3a212f,_0x1dc613){return loadAliasMap(_0x276063,_0x5d78d0,_0x3a212f,_0x1dc613);}