@lovrabet/rabetbase-cli 2.5.11 → 2.5.12-beta.1

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_0x23c0bd=a286_0x49cd;(function(_0x531b1b,_0x471cdc){const _0x474dea=a286_0x49cd,_0x429390=_0x531b1b();while(!![]){try{const _0x4ad85e=parseInt(_0x474dea(0xf3))/0x1+parseInt(_0x474dea(0x134))/0x2*(-parseInt(_0x474dea(0x10c))/0x3)+parseInt(_0x474dea(0x10d))/0x4*(parseInt(_0x474dea(0x135))/0x5)+parseInt(_0x474dea(0x10a))/0x6*(-parseInt(_0x474dea(0x126))/0x7)+-parseInt(_0x474dea(0x115))/0x8*(parseInt(_0x474dea(0x136))/0x9)+parseInt(_0x474dea(0x118))/0xa*(-parseInt(_0x474dea(0x110))/0xb)+parseInt(_0x474dea(0xfc))/0xc;if(_0x4ad85e===_0x471cdc)break;else _0x429390['push'](_0x429390['shift']());}catch(_0x14955b){_0x429390['push'](_0x429390['shift']());}}}(a286_0x2cb2,0xc2757));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(_0x1ee0cf){return process.env[`RABETBASE_${_0x1ee0cf}`]||process.env[`LOVRABET_${_0x1ee0cf}`]||undefined;}function a286_0x49cd(_0x4a4c8b,_0xbf139b){_0x4a4c8b=_0x4a4c8b-0xf0;const _0x2cb281=a286_0x2cb2();let _0x49cd58=_0x2cb281[_0x4a4c8b];return _0x49cd58;}function a286_0x2cb2(){const _0x51d728=['certificateDomain','setRawCommand','./constant/domain.js','doctor','daily','app','merged','cookie','kbServiceDomain','length','153314wFdPKq','agentDomain','./constant/env.js','filter','entries','prototype','localDomain','cdn','config','string','trim','configuredRegion','setLogPath','project','42nlDoRM','2156395dkMuzl','9144oGCxPb','filePath','userDomain','appcode','project\x20Rabetbase\x20configuration','290709RzjUeG','routingConfig','global','projectConfig','source','./utils/is-non-interactive.js','skillHubDomain','hasOwnProperty','replace','27219708SrXKXd','regionLocation','raw','kbDomain','regionSource','apiDomain','apps','appDomain','call','routing','global\x20Rabetbase\x20configuration','cwd','env','runtimeDomain','300rslvEH','Rabetbase\x20configuration','67374zkzEtq','8XWUCwq','skillDomain','currentApp','6366833iRQEmb','defaultApp','name','platformDomain','region','3776kyOqKv','domains','globalConfig','10xpNDaK','object','template_base_url','keys'];a286_0x2cb2=function(){return _0x51d728;};return a286_0x2cb2();}function optionalString(_0x2fd6a6){const _0xed7bbe=a286_0x49cd;return typeof _0x2fd6a6===_0xed7bbe(0x12f)&&_0x2fd6a6[_0xed7bbe(0x130)]()?_0x2fd6a6['trim']():undefined;}export function isRoutingRecoveryService(_0x1b6418){const _0x485828=a286_0x49cd;return _0x1b6418===_0x485828(0x12e)||_0x1b6418===_0x485828(0x11f);}export async function createContext(_0x24a164){const _0x2628c4=a286_0x49cd,{config:_0x271be6,layers:_0x3c5a49}=readRawConfigWithLayers(),_0x4cddb2=buildConfig(_0x271be6,_0x24a164,_0x3c5a49);await initGlobalEnvironment(_0x4cddb2);const {getUserDomain:_0x23dd49,getApiDomain:_0xdd7c84}=await import(_0x2628c4(0x11e)),_0x4342bb={'apiDomain':_0xdd7c84(),'userDomain':_0x23dd49()},_0x50ee0a=await buildAuth(_0x4cddb2);logger[_0x2628c4(0x132)](process[_0x2628c4(0x107)]());const _0x2d56f2=(CLI_BIN_NAME+'\x20'+process['argv']['slice'](0x2)['join']('\x20'))['trim']();logger[_0x2628c4(0x11d)](_0x2d56f2);const {isNonInteractive:_0x5cd76d}=await import(_0x2628c4(0xf8)),_0x497c39=_0x5cd76d(_0x24a164);return{'config':_0x4cddb2,'auth':_0x50ee0a,'logger':logger,'env':_0x4342bb,'nonInteractive':_0x497c39};}export function buildConfigFromFlags(_0x444ec3){const {config:_0x4dfd2b,layers:_0x149962}=readRawConfigWithLayers();return buildConfig(_0x4dfd2b,_0x444ec3,_0x149962);}export async function initGlobalEnvironment(_0x3ce438){const _0x3c5a83=a286_0x49cd,_0xe6ffc=_0x3ce438['regionSource']===_0x3c5a83(0x121)&&_0x3ce438[_0x3c5a83(0x10f)]?'app\x20profile\x20\x22'+_0x3ce438['currentApp']+'\x22':_0x3ce438[_0x3c5a83(0x100)]==='project'?_0x3c5a83(0xf2):_0x3ce438['regionSource']===_0x3c5a83(0xf5)?_0x3c5a83(0x106):_0x3c5a83(0x10b);await initConfiguredEnvironment({'raw':_0x3ce438['raw'],'configuredRegion':_0x3ce438['regionConfiguredValue']??_0x3ce438['raw']?.[_0x3c5a83(0x114)]??_0x3ce438['region'],'regionLocation':_0xe6ffc,'targetEnv':_0x3ce438[_0x3c5a83(0x108)]});}async function initConfiguredEnvironment(_0x4cda72){const _0xb754f4=a286_0x49cd,_0x2e9f74=resolveConfiguredRegion(_0x4cda72[_0xb754f4(0x131)],_0x4cda72[_0xb754f4(0xfd)]),_0x2d6878=resolveEnterpriseRoutingManifest(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x105)]),_0x52bce8={'region':_0x2e9f74,'apiDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)]['apiDomain']:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x101)]),'userDomain':_0x2d6878?_0x2d6878['domains'][_0xb754f4(0xf0)]:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.['userDomain']),'runtimeDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)]['runtimeDomain']:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x109)]),'skillDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)][_0xb754f4(0x10e)]:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x10e)])||optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0xf9)])||optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x127)])||optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x113)]),'kbDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)][_0xb754f4(0xff)]:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.['kbDomain'])||optionalString(_0x4cda72[_0xb754f4(0xfe)]?.['agentDomain'])||optionalString(_0x4cda72['raw']?.['platformDomain']),'kbServiceDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)]['kbServiceDomain']:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x124)]),'appDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)][_0xb754f4(0x103)]:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x103)]),'localDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)][_0xb754f4(0x12c)]:optionalString(_0x4cda72[_0xb754f4(0xfe)]?.[_0xb754f4(0x12c)]),'certificateDomain':_0x2d6878?_0x2d6878[_0xb754f4(0x116)][_0xb754f4(0x11c)]:optionalString(_0x4cda72['raw']?.['certificateDomain']),'cdn':_0x2d6878?.[_0xb754f4(0x12d)],'allowOfficialKbServiceDefault':!(_0x2d6878!==undefined||[_0xb754f4(0x101),_0xb754f4(0xf0),_0xb754f4(0x109),'skillDomain',_0xb754f4(0xf9),'kbDomain',_0xb754f4(0x124),_0xb754f4(0x127),_0xb754f4(0x113),_0xb754f4(0x103),_0xb754f4(0x12c),_0xb754f4(0x11c)]['some'](_0x1e9ec8=>Object[_0xb754f4(0x12b)][_0xb754f4(0xfa)][_0xb754f4(0x104)](_0x4cda72[_0xb754f4(0xfe)]??{},_0x1e9ec8)))},{initEnv:_0x50c2d5}=await import(_0xb754f4(0x128)),{initDomains:_0x117f44}=await import(_0xb754f4(0x11e));_0x50c2d5(_0x4cda72['targetEnv']),_0x117f44(_0x52bce8);}export async function initMultiAppEnvironment(_0x3b08f1){const _0x5094a5=a286_0x49cd;await initConfiguredEnvironment({'raw':_0x3b08f1[_0x5094a5(0xf4)],'configuredRegion':_0x3b08f1['region'],'regionLocation':'app\x20profile\x20\x22'+_0x3b08f1[_0x5094a5(0x112)]+'\x22','targetEnv':_0x3b08f1['env']===_0x5094a5(0x120)?_0x5094a5(0x120):'production'});}export function getConfigAppCode(_0x201b2c){const _0x2de315=a286_0x49cd,_0x576bdb=readRawConfig(_0x201b2c);if(_0x576bdb[_0x2de315(0x102)]&&typeof _0x576bdb['apps']==='object'){const _0x2a0230=_0x576bdb[_0x2de315(0x111)];if(_0x2a0230)return _0x576bdb[_0x2de315(0x102)][_0x2a0230]?.[_0x2de315(0xf1)]?String(_0x576bdb[_0x2de315(0x102)][_0x2a0230]['appcode'])['trim']():undefined;const _0x5b2d1d=Object['values'](_0x576bdb[_0x2de315(0x102)]);if(_0x5b2d1d[_0x2de315(0x125)]===0x1&&_0x5b2d1d[0x0]?.[_0x2de315(0xf1)])return String(_0x5b2d1d[0x0][_0x2de315(0xf1)])[_0x2de315(0x130)]();}const _0x54eb16=_0x576bdb['appcode']||_0x576bdb[_0x2de315(0x121)];if(typeof _0x54eb16!==_0x2de315(0x12f)||_0x54eb16['trim']()==='')return undefined;return _0x54eb16[_0x2de315(0x130)]();}const CONNECTION_ROUTING_KEYS=[a286_0x23c0bd(0x105),a286_0x23c0bd(0x101),a286_0x23c0bd(0xf0),a286_0x23c0bd(0x109),a286_0x23c0bd(0x10e),'skillHubDomain','kbDomain','kbServiceDomain',a286_0x23c0bd(0x127),a286_0x23c0bd(0x113),a286_0x23c0bd(0x103),a286_0x23c0bd(0x12c),'certificateDomain'];function withAppProfileRouting(_0x2a3826,_0x1eae88){const _0x2c5635=a286_0x23c0bd;if(!_0x1eae88||_0x1eae88[_0x2c5635(0x124)]===undefined)return _0x2a3826;return{..._0x2a3826,'kbServiceDomain':_0x1eae88[_0x2c5635(0x124)]};}function pickConnectionRoutingConfig(_0x363338,_0x56228e){const _0x4a8329={'region':_0x56228e};for(const _0xc995d5 of CONNECTION_ROUTING_KEYS){if(_0x363338[_0xc995d5]!==undefined)_0x4a8329[_0xc995d5]=_0x363338[_0xc995d5];}return _0x4a8329;}export function getMultiAppConfigs(_0x169599=a286_0x23c0bd(0x133),_0x4e56d5){const _0xae315a=a286_0x23c0bd,_0x1dbf37=loadRawConfigLayers(_0x4e56d5);let _0x20c9f2,_0x17b73d;const _0x55c47e=mergeRawConfigLayers(_0x1dbf37),_0x45e0fb=_0x1dbf37[_0xae315a(0x117)][_0xae315a(0x102)]&&typeof _0x1dbf37[_0xae315a(0x117)][_0xae315a(0x102)]===_0xae315a(0x119)?_0x1dbf37[_0xae315a(0x117)][_0xae315a(0x102)]:{},_0x5640d8=_0x1dbf37[_0xae315a(0xf6)][_0xae315a(0x102)]&&typeof _0x1dbf37[_0xae315a(0xf6)][_0xae315a(0x102)]==='object'?_0x1dbf37['projectConfig'][_0xae315a(0x102)]:{};_0x169599===_0xae315a(0x122)?(_0x20c9f2={..._0x45e0fb,..._0x5640d8},_0x17b73d=_0x55c47e['defaultApp']):(_0x20c9f2=_0x1dbf37['projectConfig'][_0xae315a(0x102)],_0x17b73d=_0x1dbf37['projectConfig']['defaultApp']);!_0x17b73d&&_0x20c9f2&&typeof _0x20c9f2===_0xae315a(0x119)&&Object[_0xae315a(0x11b)](_0x20c9f2)[_0xae315a(0x125)]===0x1&&(_0x17b73d=Object[_0xae315a(0x11b)](_0x20c9f2)[0x0]);if(!_0x20c9f2||typeof _0x20c9f2!==_0xae315a(0x119)||Object['keys'](_0x20c9f2)[_0xae315a(0x125)]===0x0)return null;return Object[_0xae315a(0x12a)](_0x20c9f2)['map'](([_0x10d128,_0x5e04fe])=>{const _0x29848b=_0xae315a,_0x15de3a=_0x169599===_0x29848b(0x133)||Object[_0x29848b(0x12b)]['hasOwnProperty'][_0x29848b(0x104)](_0x5640d8,_0x10d128),_0x4bf4a9=withAppProfileRouting(_0x15de3a?_0x55c47e:_0x1dbf37[_0x29848b(0x117)],_0x5e04fe),_0x588699=resolveEffectiveRegion({'appRegion':_0x5e04fe?.[_0x29848b(0x114)],'projectRegion':_0x15de3a?_0x1dbf37[_0x29848b(0xf6)]['region']:undefined,'globalRegion':_0x1dbf37['globalConfig'][_0x29848b(0x114)],'mergedRegion':_0x4bf4a9['region'],'appName':_0x10d128});return{'name':_0x10d128,'appcode':_0x5e04fe?.[_0x29848b(0xf1)]||'','apiGroup':optionalString(_0x5e04fe?.['apiGroup']),'isDefault':_0x10d128===_0x17b73d,'region':_0x588699['region'],'regionSource':_0x588699[_0x29848b(0xf7)],'env':_0x5e04fe?.['env'],'apiDir':optionalString(_0x5e04fe?.['apiDir'])||optionalString(_0x4bf4a9['apiDir']),'cookie':_0x5e04fe?.[_0x29848b(0x123)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4bf4a9,_0x588699[_0x29848b(0x114)])};})[_0xae315a(0x129)](_0x20fd0d=>_0x20fd0d['appcode']);}export function getTemplateBaseUrl(_0x46675a){const _0x524cd1=a286_0x23c0bd,_0x165e98=readRawConfig(_0x46675a);if(_0x165e98[_0x524cd1(0x11a)]&&typeof _0x165e98[_0x524cd1(0x11a)]===_0x524cd1(0x12f))return _0x165e98[_0x524cd1(0x11a)][_0x524cd1(0xfb)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x86a3cc,_0x278b64,_0x473dd4){const _0x5ab34f=a286_0x23c0bd,_0x313e95=resolveAppConfig({'raw':_0x86a3cc,'flags':_0x278b64,'layers':_0x473dd4,'readEnv':env}),_0x3532c5=_0x313e95['currentApp']?_0x313e95['apps'][_0x313e95[_0x5ab34f(0x10f)]]:undefined;return{..._0x313e95,'raw':withAppProfileRouting(_0x86a3cc,_0x3532c5)};}export function resolveApiFilePath(_0x176d0d,_0x2e14d9,_0x3dae41){const _0x242308=a286_0x23c0bd;return resolveApiModelSource(_0x176d0d,_0x2e14d9,_0x3dae41)[_0x242308(0x137)];}
@@ -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_0x31b955=a287_0x9b15;(function(_0x1140bb,_0x26ace2){const _0x3475c2=a287_0x9b15,_0x337f36=_0x1140bb();while(!![]){try{const _0x38d3b7=parseInt(_0x3475c2(0x1c6))/0x1*(parseInt(_0x3475c2(0x1bd))/0x2)+-parseInt(_0x3475c2(0x1ad))/0x3+parseInt(_0x3475c2(0x1bc))/0x4+parseInt(_0x3475c2(0x1bb))/0x5+parseInt(_0x3475c2(0x1c0))/0x6+parseInt(_0x3475c2(0x1a8))/0x7+-parseInt(_0x3475c2(0x1ae))/0x8;if(_0x38d3b7===_0x26ace2)break;else _0x337f36['push'](_0x337f36['shift']());}catch(_0x187db2){_0x337f36['push'](_0x337f36['shift']());}}}(a287_0x9e24,0x86d38));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';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=['.ts',a287_0x31b955(0x1cc),a287_0x31b955(0x1c8),'.cts',a287_0x31b955(0x1b9),'.jsx',a287_0x31b955(0x1a7),a287_0x31b955(0x1ca)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts',a287_0x31b955(0x1cc)],'.jsx':[a287_0x31b955(0x1cc)],'.mjs':[a287_0x31b955(0x1c8)],'.cjs':[a287_0x31b955(0x1b4)]};function parseApiFile(_0x26a27f){const _0x569303=a287_0x31b955;return parseLegacyApiModels(_0x26a27f)['flatMap'](_0x140e7d=>_0x140e7d[_0x569303(0x1c1)]?[{'alias':_0x140e7d['alias'],'datasetCode':_0x140e7d[_0x569303(0x1b3)],'tableName':_0x140e7d[_0x569303(0x1ac)],'name':_0x140e7d[_0x569303(0x1c2)]}]:[]);}function isWithinRoot(_0xc39401,_0x333569){const _0xf096ab=a287_0x31b955,_0x5d9071=relative(_0xc39401,_0x333569);return _0x5d9071===''||!_0x5d9071[_0xf096ab(0x1cb)]('..')&&!isAbsolute(_0x5d9071);}function resolveExistingFile(_0x2fe94e){const _0x584b10=a287_0x31b955;if(!existsSync(_0x2fe94e))return undefined;try{return statSync(_0x2fe94e)[_0x584b10(0x1be)]()?realpathSync(_0x2fe94e):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x63b3ed){const _0x4c6037=a287_0x31b955,_0x23b14c=extname(_0x63b3ed);if(!_0x23b14c)return[...SOURCE_FILE_EXTENSIONS[_0x4c6037(0x1aa)](_0x5aee6d=>''+_0x63b3ed+_0x5aee6d),...SOURCE_FILE_EXTENSIONS[_0x4c6037(0x1aa)](_0x33cdcf=>resolve(_0x63b3ed,'index'+_0x33cdcf))];const _0x49b972=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x23b14c];if(!_0x49b972)return[_0x63b3ed];const _0x509997=_0x63b3ed[_0x4c6037(0x1c3)](0x0,-_0x23b14c[_0x4c6037(0x1c9)]);return[..._0x49b972[_0x4c6037(0x1aa)](_0x15d567=>''+_0x509997+_0x15d567),_0x63b3ed];}function resolveLocalReexport(_0x336f85,_0x3018d9,_0x356df3){const _0x4c64fb=a287_0x31b955;if(!_0x3018d9[_0x4c64fb(0x1cb)]('./')&&!_0x3018d9[_0x4c64fb(0x1cb)](_0x4c64fb(0x1bf)))return undefined;const _0xc011c4=resolve(dirname(_0x336f85),_0x3018d9);if(!isWithinRoot(_0x356df3,_0xc011c4))return undefined;for(const _0x1021a5 of reexportCandidatePaths(_0xc011c4)){const _0x8ee67e=resolveExistingFile(_0x1021a5);if(_0x8ee67e&&isWithinRoot(_0x356df3,_0x8ee67e))return _0x8ee67e;}return undefined;}function parseApiFileTree(_0x150201,_0x26fc20,_0x3e90c5,_0x44987b){const _0x455d7a=a287_0x31b955,_0x360948=resolveExistingFile(_0x150201);if(!_0x360948)return[];const _0x31728b=_0x3e90c5['get'](_0x360948);if(_0x31728b!==undefined&&_0x31728b<=_0x44987b)return[];_0x3e90c5[_0x455d7a(0x1b1)](_0x360948,_0x44987b);const _0x494593=readFileSync(_0x360948,'utf-8'),_0xe9fcc7=parseApiFile(_0x494593);if(_0x44987b>=MAX_LOCAL_REEXPORT_DEPTH)return _0xe9fcc7;const _0x433d8d=new RegExp(LOCAL_REEXPORT_RE[_0x455d7a(0x1b2)],LOCAL_REEXPORT_RE[_0x455d7a(0x1c5)]);let _0x54b13f;while((_0x54b13f=_0x433d8d['exec'](_0x494593))!==null){const _0x4742cf=resolveLocalReexport(_0x360948,_0x54b13f[0x1],_0x26fc20);_0x4742cf&&_0xe9fcc7[_0x455d7a(0x1af)](...parseApiFileTree(_0x4742cf,_0x26fc20,_0x3e90c5,_0x44987b+0x1));}return _0xe9fcc7;}function a287_0x9b15(_0x1b5946,_0x584f4e){_0x1b5946=_0x1b5946-0x1a7;const _0x9e249d=a287_0x9e24();let _0x9b15b5=_0x9e249d[_0x1b5946];return _0x9b15b5;}function aliasProjectRoot(_0x12eddb){const _0x570320=findProjectRootDirectory(dirname(_0x12eddb));try{return realpathSync(_0x570320);}catch{return _0x570320;}}function uniqueAliasEntries(_0x4dcd58){const _0x14ee53=new Set();return _0x4dcd58['filter'](_0x7cb606=>{const _0x3510b4=a287_0x9b15,_0x277ef6=JSON[_0x3510b4(0x1b5)](_0x7cb606);if(_0x14ee53[_0x3510b4(0x1ba)](_0x277ef6))return![];return _0x14ee53[_0x3510b4(0x1b6)](_0x277ef6),!![];});}function a287_0x9e24(){const _0x29c5a7=['defaultProfile','tableName','1873464pwliYZ','12921936dyunpg','push','cwd','set','source','datasetCode','.cts','stringify','add','flatMap','size','.js','has','883910GgPsGo','2709188IOMuAc','6OZLDQU','isFile','../','4707540wblswE','alias','name','slice','get','flags','54500WMuRid','endsWith','.mts','length','.cjs','startsWith','.tsx','.mjs','6928663TZfUbA','api.ts','map'];a287_0x9e24=function(){return _0x29c5a7;};return a287_0x9e24();}export function loadAliasMap(_0x17fcd5,_0x19a6d7,_0x1e98ac,_0x1ae644){const _0x4b013d=a287_0x31b955,_0x262462=resolve(_0x1e98ac??resolve(process[_0x4b013d(0x1b0)](),_0x17fcd5,_0x4b013d(0x1a9))),_0x2277eb=_0x1ae644?_0x262462+'#'+_0x1ae644:_0x262462;if(cache[_0x4b013d(0x1ba)](_0x2277eb))return cache[_0x4b013d(0x1c4)](_0x2277eb);if(!existsSync(_0x262462))return cache[_0x4b013d(0x1b1)](_0x2277eb,[]),[];try{if(_0x262462[_0x4b013d(0x1c7)](MODEL_REGISTRY_FILE_NAME)){const _0x374fb7=readModelRegistry(_0x262462),_0x5c7282=_0x1ae644??_0x374fb7?.[_0x4b013d(0x1ab)],_0x39f4e8=_0x5c7282&&_0x374fb7?getProfileModels(_0x374fb7,_0x5c7282):[],_0x101103=uniqueAliasEntries(_0x39f4e8[_0x4b013d(0x1b7)](_0xd340ab=>_0xd340ab[_0x4b013d(0x1c1)]?[{'alias':_0xd340ab[_0x4b013d(0x1c1)],'datasetCode':_0xd340ab[_0x4b013d(0x1b3)],'tableName':_0xd340ab[_0x4b013d(0x1ac)],'name':_0xd340ab['name']}]:[]));return cache[_0x4b013d(0x1b1)](_0x2277eb,_0x101103),_0x101103;}const _0x512e4a=uniqueAliasEntries(parseApiFileTree(_0x262462,aliasProjectRoot(_0x262462),new Map(),0x0));return cache[_0x4b013d(0x1b1)](_0x2277eb,_0x512e4a),_0x512e4a;}catch{return cache[_0x4b013d(0x1b1)](_0x2277eb,[]),[];}}export function resolveAlias(_0x3e7700,_0x99832d,_0x1b3731,_0x3d82d2,_0x14aefa){const _0x463178=a287_0x31b955;if(!_0x99832d)return undefined;const _0x564623=loadAliasMap(_0x3e7700,_0x1b3731,_0x3d82d2,_0x14aefa),_0x43fd93=new Set(_0x564623['filter'](_0x3755f5=>_0x3755f5[_0x463178(0x1c1)]===_0x99832d)[_0x463178(0x1aa)](_0x163878=>_0x163878['datasetCode']));return _0x43fd93[_0x463178(0x1b8)]===0x1?[..._0x43fd93][0x0]:undefined;}export function listAliases(_0x497cb8,_0x367083,_0x29383b,_0x57f700){return loadAliasMap(_0x497cb8,_0x367083,_0x29383b,_0x57f700);}