@lovrabet/rabetbase-cli 2.5.10-beta.2 → 2.5.10-beta.4

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 (384) hide show
  1. package/README.md +10 -0
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.d.ts +2 -2
  16. package/lib/auth/get-session-user.js +1 -1
  17. package/lib/auth/is-session-valid.js +1 -1
  18. package/lib/auth/login-success-html.js +1 -1
  19. package/lib/auth/logout.js +1 -1
  20. package/lib/cli-flags.js +1 -1
  21. package/lib/cli.js +1 -1
  22. package/lib/commands/api/generate.js +1 -1
  23. package/lib/commands/api/index.js +1 -1
  24. package/lib/commands/api/list.js +1 -1
  25. package/lib/commands/api/pull.js +1 -1
  26. package/lib/commands/api/shared.js +1 -1
  27. package/lib/commands/app/detail.js +1 -1
  28. package/lib/commands/app/index.js +1 -1
  29. package/lib/commands/app/list.js +1 -1
  30. package/lib/commands/app/members-list.js +1 -1
  31. package/lib/commands/app/remote-directory.js +1 -1
  32. package/lib/commands/app/shared.js +1 -1
  33. package/lib/commands/app-config/delete.js +1 -1
  34. package/lib/commands/app-config/get.js +1 -1
  35. package/lib/commands/app-config/index.js +1 -1
  36. package/lib/commands/app-config/list.js +1 -1
  37. package/lib/commands/app-config/set.js +1 -1
  38. package/lib/commands/app-config/shared.js +1 -1
  39. package/lib/commands/auth/index.js +1 -1
  40. package/lib/commands/bff/create.js +1 -1
  41. package/lib/commands/bff/delete.js +1 -1
  42. package/lib/commands/bff/detail.js +1 -1
  43. package/lib/commands/bff/index.js +1 -1
  44. package/lib/commands/bff/list.js +1 -1
  45. package/lib/commands/bff/logs.js +1 -1
  46. package/lib/commands/bff/pull.js +1 -1
  47. package/lib/commands/bff/push.js +1 -1
  48. package/lib/commands/bff/status.js +1 -1
  49. package/lib/commands/cli-skill/index.js +1 -1
  50. package/lib/commands/cli-update.js +1 -1
  51. package/lib/commands/codegen/index.js +1 -1
  52. package/lib/commands/codegen/sdk.js +1 -1
  53. package/lib/commands/codegen/sql.js +1 -1
  54. package/lib/commands/common/app-registry.js +1 -1
  55. package/lib/commands/common/app-selector.js +1 -1
  56. package/lib/commands/common/async-task.js +1 -1
  57. package/lib/commands/common/dry-run.js +1 -1
  58. package/lib/commands/common/flags.js +1 -1
  59. package/lib/commands/common/local-file.js +1 -1
  60. package/lib/commands/common/validate.js +1 -1
  61. package/lib/commands/config/delete.js +1 -1
  62. package/lib/commands/config/get.js +1 -1
  63. package/lib/commands/config/index.js +1 -1
  64. package/lib/commands/config/init.js +1 -1
  65. package/lib/commands/config/list.js +1 -1
  66. package/lib/commands/config/set.js +1 -1
  67. package/lib/commands/config/shared.js +1 -1
  68. package/lib/commands/dataset/batch-design.js +1 -1
  69. package/lib/commands/dataset/business-group-update.js +1 -1
  70. package/lib/commands/dataset/business-groups.js +1 -1
  71. package/lib/commands/dataset/capability.js +1 -1
  72. package/lib/commands/dataset/cross-relation-create.js +1 -1
  73. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  74. package/lib/commands/dataset/cross-relation-list.js +1 -1
  75. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  76. package/lib/commands/dataset/cross-relation-update.js +1 -1
  77. package/lib/commands/dataset/delete.js +1 -1
  78. package/lib/commands/dataset/design-context.js +1 -1
  79. package/lib/commands/dataset/design-start.js +1 -1
  80. package/lib/commands/dataset/design-status.js +1 -1
  81. package/lib/commands/dataset/design-sync-retry.js +1 -1
  82. package/lib/commands/dataset/design-sync-status.js +1 -1
  83. package/lib/commands/dataset/design-validate.js +1 -1
  84. package/lib/commands/dataset/detail.js +1 -1
  85. package/lib/commands/dataset/extend-update.js +1 -1
  86. package/lib/commands/dataset/field-restore.js +1 -1
  87. package/lib/commands/dataset/field-update.js +1 -1
  88. package/lib/commands/dataset/generate.js +1 -1
  89. package/lib/commands/dataset/index.js +1 -1
  90. package/lib/commands/dataset/list.js +1 -1
  91. package/lib/commands/dataset/operations.js +1 -1
  92. package/lib/commands/dataset/relation-audit.js +1 -1
  93. package/lib/commands/dataset/relation-create.js +1 -1
  94. package/lib/commands/dataset/relation-delete.js +1 -1
  95. package/lib/commands/dataset/relation-shared.js +1 -1
  96. package/lib/commands/dataset/relation-update.js +1 -1
  97. package/lib/commands/dataset/relations.js +1 -1
  98. package/lib/commands/dataset/rename.js +1 -1
  99. package/lib/commands/dataset/restore.js +1 -1
  100. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  101. package/lib/commands/db/analysis-batching.js +1 -1
  102. package/lib/commands/db/analyze-batch-plan.js +1 -1
  103. package/lib/commands/db/analyze-cancel.js +1 -1
  104. package/lib/commands/db/analyze-start.js +1 -1
  105. package/lib/commands/db/analyze-status.js +1 -1
  106. package/lib/commands/db/create.js +1 -1
  107. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  109. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  110. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  111. package/lib/commands/db/delete.js +1 -1
  112. package/lib/commands/db/detail.js +1 -1
  113. package/lib/commands/db/diff-refresh-start.js +1 -1
  114. package/lib/commands/db/diff-refresh-status.js +1 -1
  115. package/lib/commands/db/diff.js +1 -1
  116. package/lib/commands/db/index.js +1 -1
  117. package/lib/commands/db/list.js +1 -1
  118. package/lib/commands/db/shared.js +1 -1
  119. package/lib/commands/db/table-diff-shared.js +1 -1
  120. package/lib/commands/db/tables.js +1 -1
  121. package/lib/commands/db/test.js +1 -1
  122. package/lib/commands/db/update.js +1 -1
  123. package/lib/commands/deployment/index.js +1 -1
  124. package/lib/commands/deployment/sync-all.js +1 -1
  125. package/lib/commands/deployment/sync-jobs.js +1 -1
  126. package/lib/commands/deployment/sync-status.js +1 -1
  127. package/lib/commands/doctor.js +1 -1
  128. package/lib/commands/file/index.js +1 -1
  129. package/lib/commands/flow/create.js +1 -1
  130. package/lib/commands/flow/detail.js +1 -1
  131. package/lib/commands/flow/index.js +1 -1
  132. package/lib/commands/flow/list.js +1 -1
  133. package/lib/commands/flow/page-list.js +1 -1
  134. package/lib/commands/flow/publish.js +1 -1
  135. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  136. package/lib/commands/flow/runtime-role-list.js +1 -1
  137. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  138. package/lib/commands/flow/runtime-user-search.js +1 -1
  139. package/lib/commands/flow/shared.js +1 -1
  140. package/lib/commands/flow/update.js +1 -1
  141. package/lib/commands/flow/validate.js +1 -1
  142. package/lib/commands/instant-api-policy/current.js +1 -1
  143. package/lib/commands/instant-api-policy/index.js +1 -1
  144. package/lib/commands/instant-api-policy/init.js +1 -1
  145. package/lib/commands/instant-api-policy/publish.js +1 -1
  146. package/lib/commands/instant-api-policy/pull.js +1 -1
  147. package/lib/commands/instant-api-policy/revision.js +1 -1
  148. package/lib/commands/instant-api-policy/revisions.js +1 -1
  149. package/lib/commands/instant-api-policy/rollback.js +1 -1
  150. package/lib/commands/instant-api-policy/shared.js +1 -1
  151. package/lib/commands/instant-api-policy/validate.js +1 -1
  152. package/lib/commands/issue/context.d.ts +3 -0
  153. package/lib/commands/issue/context.js +1 -0
  154. package/lib/commands/issue/index.js +1 -1
  155. package/lib/commands/issue/nudge.js +1 -1
  156. package/lib/commands/issue/report.js +1 -1
  157. package/lib/commands/kb/create.js +1 -1
  158. package/lib/commands/kb/delete.js +1 -1
  159. package/lib/commands/kb/detail.js +1 -1
  160. package/lib/commands/kb/index.js +1 -1
  161. package/lib/commands/kb/list.js +1 -1
  162. package/lib/commands/kb/search.js +1 -1
  163. package/lib/commands/kb/shared.js +1 -1
  164. package/lib/commands/kb/update.js +1 -1
  165. package/lib/commands/logs/index.js +1 -1
  166. package/lib/commands/menu/asset-update.js +1 -1
  167. package/lib/commands/menu/delete.js +1 -1
  168. package/lib/commands/menu/external-link-create.js +1 -1
  169. package/lib/commands/menu/external-link-update.js +1 -1
  170. package/lib/commands/menu/group-create.js +1 -1
  171. package/lib/commands/menu/group-update.js +1 -1
  172. package/lib/commands/menu/index.js +1 -1
  173. package/lib/commands/menu/list.js +1 -1
  174. package/lib/commands/menu/move.js +1 -1
  175. package/lib/commands/menu/regroup-start.js +1 -1
  176. package/lib/commands/menu/rename.js +1 -1
  177. package/lib/commands/menu/shared/compare-table.js +1 -1
  178. package/lib/commands/menu/shared/delete-plan.js +1 -1
  179. package/lib/commands/menu/shared/facts.js +1 -1
  180. package/lib/commands/menu/shared/index.js +1 -1
  181. package/lib/commands/menu/shared/inquirer.js +1 -1
  182. package/lib/commands/menu/shared/local-pages.js +1 -1
  183. package/lib/commands/menu/shared/logic.js +1 -1
  184. package/lib/commands/menu/shared/mutations.js +1 -1
  185. package/lib/commands/menu/shared/path.js +1 -1
  186. package/lib/commands/menu/shared/service.js +1 -1
  187. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  188. package/lib/commands/menu/shared/sync-core.js +1 -1
  189. package/lib/commands/menu/shared/update-core.js +1 -1
  190. package/lib/commands/menu/shared/valid-url.js +1 -1
  191. package/lib/commands/menu/subapp-assets-status.js +1 -1
  192. package/lib/commands/menu/subapp-assets-update.js +1 -1
  193. package/lib/commands/menu/sync.js +1 -1
  194. package/lib/commands/menu/visibility-update.js +1 -1
  195. package/lib/commands/notification/config-create.js +1 -1
  196. package/lib/commands/notification/config-delete.js +1 -1
  197. package/lib/commands/notification/config-list.js +1 -1
  198. package/lib/commands/notification/config-update.js +1 -1
  199. package/lib/commands/notification/index.js +1 -1
  200. package/lib/commands/notification/shared.js +1 -1
  201. package/lib/commands/ocr/index.js +1 -1
  202. package/lib/commands/page/create.js +1 -1
  203. package/lib/commands/page/custom/detail.js +1 -1
  204. package/lib/commands/page/custom/list.js +1 -1
  205. package/lib/commands/page/custom/publish.js +1 -1
  206. package/lib/commands/page/custom/shared.js +1 -1
  207. package/lib/commands/page/custom/syntax.js +1 -1
  208. package/lib/commands/page/custom/update.js +1 -1
  209. package/lib/commands/page/data-list-status.js +1 -1
  210. package/lib/commands/page/generate-start.js +1 -1
  211. package/lib/commands/page/generate-status.js +1 -1
  212. package/lib/commands/page/index.js +1 -1
  213. package/lib/commands/page/pull.js +1 -1
  214. package/lib/commands/page/push.js +1 -1
  215. package/lib/commands/page/relation-audit.js +1 -1
  216. package/lib/commands/page/restore.js +1 -1
  217. package/lib/commands/page/shared.js +1 -1
  218. package/lib/commands/page/sync.js +1 -1
  219. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  220. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  221. package/lib/commands/project/create/format-elapsed.js +1 -1
  222. package/lib/commands/project/create/main.js +1 -1
  223. package/lib/commands/project/create/materialize-project-template.js +1 -1
  224. package/lib/commands/project/create/project-name.js +1 -1
  225. package/lib/commands/project/create/project-template-archive.js +1 -1
  226. package/lib/commands/project/create/project-template-path.js +1 -1
  227. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  228. package/lib/commands/project/create/use-format-code.js +1 -1
  229. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  230. package/lib/commands/project/domain-routing-sync.js +1 -1
  231. package/lib/commands/project/index.js +1 -1
  232. package/lib/commands/project/upgrade.js +1 -1
  233. package/lib/commands/registry.js +1 -1
  234. package/lib/commands/role/delete.js +1 -1
  235. package/lib/commands/role/detail.js +1 -1
  236. package/lib/commands/role/index.js +1 -1
  237. package/lib/commands/role/list.js +1 -1
  238. package/lib/commands/role/shared.js +1 -1
  239. package/lib/commands/role/update.js +1 -1
  240. package/lib/commands/role/user-add.js +1 -1
  241. package/lib/commands/role/user-remove.js +1 -1
  242. package/lib/commands/role/user-resolve.js +1 -1
  243. package/lib/commands/rule/get.js +1 -1
  244. package/lib/commands/rule/index.js +1 -1
  245. package/lib/commands/rule/list.js +1 -1
  246. package/lib/commands/rule/set.js +1 -1
  247. package/lib/commands/rule/shared.js +1 -1
  248. package/lib/commands/run/index.js +1 -1
  249. package/lib/commands/schema.js +1 -1
  250. package/lib/commands/sql/create.js +1 -1
  251. package/lib/commands/sql/delete.js +1 -1
  252. package/lib/commands/sql/detail.js +1 -1
  253. package/lib/commands/sql/exec.js +1 -1
  254. package/lib/commands/sql/index.js +1 -1
  255. package/lib/commands/sql/list.js +1 -1
  256. package/lib/commands/sql/pull.js +1 -1
  257. package/lib/commands/sql/push.js +1 -1
  258. package/lib/commands/sql/shared.js +1 -1
  259. package/lib/commands/sql/status.js +1 -1
  260. package/lib/commands/sql/validate.js +1 -1
  261. package/lib/commands/task/index.js +1 -1
  262. package/lib/commands/task/status.js +1 -1
  263. package/lib/commands/tenant/index.js +1 -1
  264. package/lib/commands/tenant/members-list.js +1 -1
  265. package/lib/commands/tenant/shared.js +1 -1
  266. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  267. package/lib/commands/user-account/feishu-bind.js +1 -1
  268. package/lib/commands/user-account/index.js +1 -1
  269. package/lib/commands/workspace/add.js +1 -1
  270. package/lib/commands/workspace/index.js +1 -1
  271. package/lib/commands/workspace/remove.js +1 -1
  272. package/lib/config/domain-config.js +1 -1
  273. package/lib/config/project-domain-routing.js +1 -1
  274. package/lib/config/region-config.js +1 -1
  275. package/lib/config/schema.js +1 -1
  276. package/lib/constant/cdn.js +1 -1
  277. package/lib/constant/cli.js +1 -1
  278. package/lib/constant/defaults.js +1 -1
  279. package/lib/constant/domain.js +1 -1
  280. package/lib/constant/env.js +1 -1
  281. package/lib/constant/output.js +1 -1
  282. package/lib/constant/paths.js +1 -1
  283. package/lib/constant/region.js +1 -1
  284. package/lib/constant/risk.js +1 -1
  285. package/lib/constant/routing-profile.js +1 -1
  286. package/lib/context/app-resolver.js +1 -1
  287. package/lib/context/auth-resolver.js +1 -1
  288. package/lib/context/config-loader.js +1 -1
  289. package/lib/context.js +1 -1
  290. package/lib/core/alias-resolver.js +1 -1
  291. package/lib/core/api-client.js +1 -1
  292. package/lib/core/bff/config.js +1 -1
  293. package/lib/core/bff/file-system.js +1 -1
  294. package/lib/core/bff/hash.js +1 -1
  295. package/lib/core/bff/hook-directory.js +1 -1
  296. package/lib/core/bff/lock.js +1 -1
  297. package/lib/core/bff/utils.js +1 -1
  298. package/lib/core/cross-db-analysis.js +1 -1
  299. package/lib/core/cross-db-relation.js +1 -1
  300. package/lib/core/db-resolver.js +1 -1
  301. package/lib/core/flow-config.js +1 -1
  302. package/lib/core/instant-api-policy/config.js +1 -1
  303. package/lib/core/instant-api-policy/endpoints.js +1 -1
  304. package/lib/core/kb-management-client.js +1 -1
  305. package/lib/core/kb-search-client.js +1 -1
  306. package/lib/core/page/file-system.js +1 -1
  307. package/lib/core/page/hash.js +1 -1
  308. package/lib/core/page/lock.js +1 -1
  309. package/lib/core/page/lr-smart-jsx.js +1 -1
  310. package/lib/core/sql-index-auditor.js +1 -1
  311. package/lib/core/sql-sync/config.js +1 -1
  312. package/lib/core/sql-sync/file-system.js +1 -1
  313. package/lib/core/sql-sync/hash.js +1 -1
  314. package/lib/core/sql-sync/lock.js +1 -1
  315. package/lib/core/sql-sync/utils.js +1 -1
  316. package/lib/core/sql-validator.js +1 -1
  317. package/lib/errors.js +1 -1
  318. package/lib/framework/build-all-flags.js +1 -1
  319. package/lib/framework/error-output.js +1 -1
  320. package/lib/framework/explicit-yes.js +1 -1
  321. package/lib/framework/flags.js +1 -1
  322. package/lib/framework/help.js +1 -1
  323. package/lib/framework/index.js +1 -1
  324. package/lib/framework/output.js +1 -1
  325. package/lib/framework/response.js +1 -1
  326. package/lib/framework/runner-alias.js +1 -1
  327. package/lib/framework/runner.js +1 -1
  328. package/lib/framework/schema-export.js +1 -1
  329. package/lib/framework/supported-flags.js +1 -1
  330. package/lib/framework/types.js +1 -1
  331. package/lib/generated/build-info.d.ts +4 -4
  332. package/lib/generated/build-info.js +1 -1
  333. package/lib/generated/official-routing.js +1 -1
  334. package/lib/generated/routing-contract.js +1 -1
  335. package/lib/help.js +1 -1
  336. package/lib/postinstall.js +1 -1
  337. package/lib/runtime/confirmation.js +1 -1
  338. package/lib/runtime/event.js +1 -1
  339. package/lib/runtime/index.js +1 -1
  340. package/lib/runtime/queue.js +1 -1
  341. package/lib/runtime/resolve.js +1 -1
  342. package/lib/services/dataset-design/checkpoint.js +1 -1
  343. package/lib/services/dataset-design/commands.js +1 -1
  344. package/lib/services/dataset-design/contract.js +1 -1
  345. package/lib/skills/builtin-skill.js +1 -1
  346. package/lib/skills/main.js +1 -1
  347. package/lib/skills/npx-skills-add.js +1 -1
  348. package/lib/skills/skill-presence.js +1 -1
  349. package/lib/telemetry/cli-command-trace.js +1 -1
  350. package/lib/telemetry/cli-help-trace.js +1 -1
  351. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  352. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  353. package/lib/telemetry/send-cli-trace-log.js +1 -1
  354. package/lib/utils/ai_config.js +1 -1
  355. package/lib/utils/apply-jq-filter.js +1 -1
  356. package/lib/utils/cdn-config.js +1 -1
  357. package/lib/utils/check-sdk-version.js +1 -1
  358. package/lib/utils/cli-version-check.js +1 -1
  359. package/lib/utils/cli-version-policy.js +1 -1
  360. package/lib/utils/config.js +1 -1
  361. package/lib/utils/entity-with-id.js +1 -1
  362. package/lib/utils/file-utils.js +1 -1
  363. package/lib/utils/guides-cdn.js +1 -1
  364. package/lib/utils/http-client.js +1 -1
  365. package/lib/utils/is-non-interactive.js +1 -1
  366. package/lib/utils/logger.js +1 -1
  367. package/lib/utils/params.js +1 -1
  368. package/lib/utils/platform.js +1 -1
  369. package/lib/utils/sleep.js +1 -1
  370. package/lib/utils/template-replacer.js +1 -1
  371. package/lib/utils/update-notice.js +1 -1
  372. package/lib/utils/version.js +1 -1
  373. package/lib/utils/with-active-cookie.js +1 -1
  374. package/lib/utils/write-cli-side-channel.js +1 -1
  375. package/package.json +2 -2
  376. package/skills/rabetbase/SKILL.md +2 -2
  377. package/skills/rabetbase/references/rabetbase-issue-report.md +4 -1
  378. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  379. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  380. package/skills/rabetbase.manifest.json +3 -3
  381. package/lib/commands/issue/shared.d.ts +0 -32
  382. package/lib/commands/issue/shared.js +0 -1
  383. package/lib/telemetry/send-platform-issue-collect-log.d.ts +0 -26
  384. package/lib/telemetry/send-platform-issue-collect-log.js +0 -1
@@ -1 +1 @@
1
- function a280_0xf986(_0x19b8da,_0x50215e){_0x19b8da=_0x19b8da-0xf8;const _0x1779f0=a280_0x1779();let _0xf9863d=_0x1779f0[_0x19b8da];return _0xf9863d;}(function(_0xd2a27e,_0x3498dc){const _0x1000c0=a280_0xf986,_0x39c142=_0xd2a27e();while(!![]){try{const _0x5dc02f=parseInt(_0x1000c0(0x102))/0x1+parseInt(_0x1000c0(0xff))/0x2+-parseInt(_0x1000c0(0xfd))/0x3+parseInt(_0x1000c0(0xf8))/0x4+parseInt(_0x1000c0(0xfc))/0x5+-parseInt(_0x1000c0(0xfb))/0x6*(parseInt(_0x1000c0(0x100))/0x7)+parseInt(_0x1000c0(0x101))/0x8*(-parseInt(_0x1000c0(0xfe))/0x9);if(_0x5dc02f===_0x3498dc)break;else _0x39c142['push'](_0x39c142['shift']());}catch(_0x36ca24){_0x39c142['push'](_0x39c142['shift']());}}}(a280_0x1779,0x34a94));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0xa8b58e){return typeof _0xa8b58e==='string'&&LOVRABET_REGION_VALUES['includes'](_0xa8b58e);}export function isEnabledLovrabetRegion(_0x5ce3fc){const _0x1f1423=a280_0xf986;return typeof _0x5ce3fc===_0x1f1423(0xfa)&&ENABLED_LOVRABET_REGION_VALUES[_0x1f1423(0xf9)](_0x5ce3fc);}export function normalizeLovrabetRegion(_0x2ec261){const _0x59038d=a280_0xf986;if(typeof _0x2ec261!==_0x59038d(0xfa))return undefined;const _0x52a8ae=REGION_ALIASES[_0x2ec261]??_0x2ec261;return isLovrabetRegion(_0x52a8ae)?_0x52a8ae:undefined;}export function isInvalidLovrabetRegion(_0x52798f){return _0x52798f!==undefined&&_0x52798f!==null&&_0x52798f!==''&&normalizeLovrabetRegion(_0x52798f)===undefined;}function a280_0x1779(){const _0x49e599=['168SYcIFQ','35811buDcCs','899224WzLKXr','includes','string','6IpLmYT','906090HRGiBV','403656PCqOqE','79479oHHkHw','836154xHiamV','2269463cDqcli'];a280_0x1779=function(){return _0x49e599;};return a280_0x1779();}
1
+ (function(_0xda08a3,_0x4edede){const _0x4e5bba=a280_0x2ffa,_0x26e081=_0xda08a3();while(!![]){try{const _0x2815fe=-parseInt(_0x4e5bba(0x12d))/0x1*(-parseInt(_0x4e5bba(0x12b))/0x2)+-parseInt(_0x4e5bba(0x121))/0x3*(-parseInt(_0x4e5bba(0x128))/0x4)+-parseInt(_0x4e5bba(0x12c))/0x5+parseInt(_0x4e5bba(0x12e))/0x6*(parseInt(_0x4e5bba(0x124))/0x7)+-parseInt(_0x4e5bba(0x123))/0x8*(parseInt(_0x4e5bba(0x122))/0x9)+parseInt(_0x4e5bba(0x125))/0xa+-parseInt(_0x4e5bba(0x129))/0xb*(parseInt(_0x4e5bba(0x127))/0xc);if(_0x2815fe===_0x4edede)break;else _0x26e081['push'](_0x26e081['shift']());}catch(_0x290c17){_0x26e081['push'](_0x26e081['shift']());}}}(a280_0x1d66,0xc0012));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;function a280_0x2ffa(_0x48340d,_0x1afcc0){_0x48340d=_0x48340d-0x121;const _0x1d669a=a280_0x1d66();let _0x2ffaab=_0x1d669a[_0x48340d];return _0x2ffaab;}export function isLovrabetRegion(_0x9302ad){const _0x1a09dd=a280_0x2ffa;return typeof _0x9302ad===_0x1a09dd(0x126)&&LOVRABET_REGION_VALUES[_0x1a09dd(0x12a)](_0x9302ad);}export function isEnabledLovrabetRegion(_0x2a0a34){const _0x5d9d74=a280_0x2ffa;return typeof _0x2a0a34===_0x5d9d74(0x126)&&ENABLED_LOVRABET_REGION_VALUES[_0x5d9d74(0x12a)](_0x2a0a34);}export function normalizeLovrabetRegion(_0x55ca7e){const _0x511655=a280_0x2ffa;if(typeof _0x55ca7e!==_0x511655(0x126))return undefined;const _0x4bd4fc=REGION_ALIASES[_0x55ca7e]??_0x55ca7e;return isLovrabetRegion(_0x4bd4fc)?_0x4bd4fc:undefined;}export function isInvalidLovrabetRegion(_0x598aa2){return _0x598aa2!==undefined&&_0x598aa2!==null&&_0x598aa2!==''&&normalizeLovrabetRegion(_0x598aa2)===undefined;}function a280_0x1d66(){const _0x36839a=['507717Vnjrlu','126vMnqyK','1359234lTEGwA','9FmtKFl','381824SGRPEd','308021jnphQq','12610000RPsKav','string','412812cGwrGd','8aubFDv','869zTKJOd','includes','2VaULZr','235395qbCfie'];a280_0x1d66=function(){return _0x36839a;};return a280_0x1d66();}
@@ -1 +1 @@
1
- const a281_0x26c8e1=a281_0x37db;function a281_0x37db(_0x40f56a,_0x56de12){_0x40f56a=_0x40f56a-0xd9;const _0x4050ed=a281_0x4050();let _0x37dbd8=_0x4050ed[_0x40f56a];return _0x37dbd8;}function a281_0x4050(){const _0x543f99=['3026223juOLLv','387502maBOjH','35114676BXCSgf','6RvkAEZ','10wMghLn','10660595veNWHJ','33868KAOWhI','high-risk-write','472uSPmWU','read','30474iCujVE','365BELsUo','2sGlMkS','5424559TbNgtk'];a281_0x4050=function(){return _0x543f99;};return a281_0x4050();}(function(_0x7d5c2b,_0xf7058f){const _0x596f67=a281_0x37db,_0x49467d=_0x7d5c2b();while(!![]){try{const _0x28b993=-parseInt(_0x596f67(0xdc))/0x1*(parseInt(_0x596f67(0xd9))/0x2)+-parseInt(_0x596f67(0xdb))/0x3+parseInt(_0x596f67(0xe1))/0x4*(-parseInt(_0x596f67(0xe6))/0x5)+parseInt(_0x596f67(0xde))/0x6*(parseInt(_0x596f67(0xda))/0x7)+-parseInt(_0x596f67(0xe3))/0x8*(parseInt(_0x596f67(0xe5))/0x9)+-parseInt(_0x596f67(0xdf))/0xa*(parseInt(_0x596f67(0xe0))/0xb)+parseInt(_0x596f67(0xdd))/0xc;if(_0x28b993===_0xf7058f)break;else _0x49467d['push'](_0x49467d['shift']());}catch(_0x414a86){_0x49467d['push'](_0x49467d['shift']());}}}(a281_0x4050,0x7e713));export const RISK_LEVEL_VALUES=[a281_0x26c8e1(0xe4),'write',a281_0x26c8e1(0xe2)];
1
+ const a281_0x20846a=a281_0x56f6;(function(_0x1586a8,_0x3a4436){const _0x57fe9d=a281_0x56f6,_0x4c3ce5=_0x1586a8();while(!![]){try{const _0x52fbe7=parseInt(_0x57fe9d(0x91))/0x1*(-parseInt(_0x57fe9d(0x93))/0x2)+parseInt(_0x57fe9d(0x92))/0x3*(-parseInt(_0x57fe9d(0x8f))/0x4)+parseInt(_0x57fe9d(0x9c))/0x5*(-parseInt(_0x57fe9d(0x9d))/0x6)+parseInt(_0x57fe9d(0x98))/0x7*(parseInt(_0x57fe9d(0x97))/0x8)+-parseInt(_0x57fe9d(0x9e))/0x9*(-parseInt(_0x57fe9d(0x9b))/0xa)+-parseInt(_0x57fe9d(0x90))/0xb*(parseInt(_0x57fe9d(0x96))/0xc)+parseInt(_0x57fe9d(0x99))/0xd;if(_0x52fbe7===_0x3a4436)break;else _0x4c3ce5['push'](_0x4c3ce5['shift']());}catch(_0x32c266){_0x4c3ce5['push'](_0x4c3ce5['shift']());}}}(a281_0x3264,0x590f1));function a281_0x3264(){const _0x4ee282=['write','712212cavgON','8LjqBkg','4594198EWeWld','18321329VaalmF','read','19400aKydpj','5KHdBKJ','3945234rIvzRT','360BcxCRU','1172660yJSZTg','88dKvwwh','3BexFQo','3XdYlng','235300zzOriY','high-risk-write'];a281_0x3264=function(){return _0x4ee282;};return a281_0x3264();}function a281_0x56f6(_0x59417e,_0x4b74a6){_0x59417e=_0x59417e-0x8f;const _0x3264a1=a281_0x3264();let _0x56f636=_0x3264a1[_0x59417e];return _0x56f636;}export const RISK_LEVEL_VALUES=[a281_0x20846a(0x9a),a281_0x20846a(0x95),a281_0x20846a(0x94)];
@@ -1 +1 @@
1
- (function(_0x63983e,_0x1ce1b8){const _0x1f9fa8=a282_0x3051,_0x1081bc=_0x63983e();while(!![]){try{const _0x129b7d=-parseInt(_0x1f9fa8(0x15b))/0x1+parseInt(_0x1f9fa8(0x15c))/0x2*(-parseInt(_0x1f9fa8(0x154))/0x3)+parseInt(_0x1f9fa8(0x15a))/0x4+parseInt(_0x1f9fa8(0x156))/0x5+-parseInt(_0x1f9fa8(0x159))/0x6*(parseInt(_0x1f9fa8(0x15e))/0x7)+parseInt(_0x1f9fa8(0x158))/0x8+parseInt(_0x1f9fa8(0x157))/0x9;if(_0x129b7d===_0x1ce1b8)break;else _0x1081bc['push'](_0x1081bc['shift']());}catch(_0x162fda){_0x1081bc['push'](_0x1081bc['shift']());}}}(a282_0x4d9f,0x89abc));function a282_0x4d9f(){const _0x1761f4=['920309bAxRpP','4126WctPdn','cdn','42JBgoWs','735UyQWGt','lovrabet','3924355EzCoVH','3756141nWuatb','859528EqdHrl','370398kxPCVu','4201524hrMHFx'];a282_0x4d9f=function(){return _0x1761f4;};return a282_0x4d9f();}import{OFFICIAL_ROUTING_PROFILES as a282_0x3d3a1c,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x3d3a1c;function a282_0x3051(_0x553f1d,_0x127489){_0x553f1d=_0x553f1d-0x154;const _0x4d9f5b=a282_0x4d9f();let _0x3051af=_0x4d9f5b[_0x553f1d];return _0x3051af;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x37595a){return OFFICIAL_ROUTING_PROFILES[_0x37595a];}export function getOfficialRoutingCdn(_0x1b0261){const _0x5cdecb=a282_0x3051,_0x2d0e7e=getOfficialRoutingProfile(_0x1b0261)[_0x5cdecb(0x15d)];if(!_0x2d0e7e[_0x5cdecb(0x155)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x1b0261+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x2d0e7e['libraries'],'lovrabet':_0x2d0e7e['lovrabet']};}
1
+ (function(_0x3e2411,_0x1ac22f){const _0x9e1a69=a282_0xdea9,_0x25d1e3=_0x3e2411();while(!![]){try{const _0x22c89b=-parseInt(_0x9e1a69(0xdf))/0x1*(parseInt(_0x9e1a69(0xda))/0x2)+parseInt(_0x9e1a69(0xd9))/0x3+-parseInt(_0x9e1a69(0xe1))/0x4*(parseInt(_0x9e1a69(0xd6))/0x5)+-parseInt(_0x9e1a69(0xd7))/0x6+-parseInt(_0x9e1a69(0xde))/0x7+parseInt(_0x9e1a69(0xd8))/0x8+-parseInt(_0x9e1a69(0xe2))/0x9*(-parseInt(_0x9e1a69(0xe0))/0xa);if(_0x22c89b===_0x1ac22f)break;else _0x25d1e3['push'](_0x25d1e3['shift']());}catch(_0x41730a){_0x25d1e3['push'](_0x25d1e3['shift']());}}}(a282_0x5672,0x8ef89));function a282_0x5672(){const _0x5cdc47=['436lNBeRV','20439207PoMrAq','42095KFdMbi','6068154GAbYhn','6029432KLKQwm','656832HVWWbn','149134vZhRcs','libraries','lovrabet','cdn','3537142mAOKfk','3hHxyqV','10ztmEID'];a282_0x5672=function(){return _0x5cdc47;};return a282_0x5672();}import{OFFICIAL_ROUTING_PROFILES as a282_0x1735cf,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x1735cf;function a282_0xdea9(_0x185d33,_0x2ee660){_0x185d33=_0x185d33-0xd6;const _0x567277=a282_0x5672();let _0xdea93f=_0x567277[_0x185d33];return _0xdea93f;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x12c52c){return OFFICIAL_ROUTING_PROFILES[_0x12c52c];}export function getOfficialRoutingCdn(_0x50fd98){const _0x3b915c=a282_0xdea9,_0x5ab4e7=getOfficialRoutingProfile(_0x50fd98)[_0x3b915c(0xdd)];if(!_0x5ab4e7[_0x3b915c(0xdc)])throw new Error('Official\x20routing\x20for\x20region\x20\x22'+_0x50fd98+'\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.');return{'libraries':_0x5ab4e7[_0x3b915c(0xdb)],'lovrabet':_0x5ab4e7[_0x3b915c(0xdc)]};}
@@ -1 +1 @@
1
- function a283_0x54d6(){const _0x3e04ce=['high-risk-write','app','value','pageSize','PAGE_SIZE','entries','579rXSMxM','accessKey','ACCESS_KEY','appcode','apiDir','FORMAT','103976SZSWec','39775373YcfJsN','trim','length','object','2422322RLCIJM','1845292tjxbNu','VERBOSE','region','12362355cXkkEJ','9XNkZTw','globalConfig','filter','locale','cookie','string','riskLevel','1141240UkgbTW','10mvujkt','defaultApp','daily','projectConfig','apps','ENV','2598ZkFhpI','COOKIE','format','keys','6cusyGZ','read','source','env'];a283_0x54d6=function(){return _0x3e04ce;};return a283_0x54d6();}(function(_0x384747,_0x1781ea){const _0x1dff96=a283_0x51e3,_0x41425c=_0x384747();while(!![]){try{const _0x3531c3=-parseInt(_0x1dff96(0xa8))/0x1*(parseInt(_0x1dff96(0xc6))/0x2)+-parseInt(_0x1dff96(0xb8))/0x3*(parseInt(_0x1dff96(0xb4))/0x4)+parseInt(_0x1dff96(0xbf))/0x5+-parseInt(_0x1dff96(0xca))/0x6*(-parseInt(_0x1dff96(0xb3))/0x7)+parseInt(_0x1dff96(0xae))/0x8+-parseInt(_0x1dff96(0xb7))/0x9+parseInt(_0x1dff96(0xc0))/0xa*(parseInt(_0x1dff96(0xaf))/0xb);if(_0x3531c3===_0x1781ea)break;else _0x41425c['push'](_0x41425c['shift']());}catch(_0x5115a7){_0x41425c['push'](_0x41425c['shift']());}}}(a283_0x54d6,0xa952d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function a283_0x51e3(_0x2cc3e3,_0x7dd34b){_0x2cc3e3=_0x2cc3e3-0xa3;const _0x54d695=a283_0x54d6();let _0x51e3c5=_0x54d695[_0x2cc3e3];return _0x51e3c5;}function stringConfigValue(_0x23a8c5){const _0x32dee7=a283_0x51e3;return typeof _0x23a8c5===_0x32dee7(0xbd)&&_0x23a8c5[_0x32dee7(0xb0)]()?_0x23a8c5['trim']():undefined;}function appProfiles(_0x1d4bd5){const _0x4033a3=a283_0x51e3;return _0x1d4bd5[_0x4033a3(0xc4)]&&typeof _0x1d4bd5[_0x4033a3(0xc4)]===_0x4033a3(0xb2)?_0x1d4bd5['apps']:{};}function resolveDefaultAppName(_0x4e91a1){const _0x164eca=a283_0x51e3,_0x3a0cb0=stringConfigValue(_0x4e91a1[_0x164eca(0xc1)]);if(_0x3a0cb0)return _0x3a0cb0;const _0x2fc8ff=Object[_0x164eca(0xc9)](appProfiles(_0x4e91a1));return _0x2fc8ff[_0x164eca(0xb1)]===0x1?_0x2fc8ff[0x0]:undefined;}function resolveTopLevelAppCode(_0x1041fe){return stringConfigValue(_0x1041fe['appcode'])||stringConfigValue(_0x1041fe['app']);}function normalizeRiskCeiling(_0x3ba992){const _0x4588fd=a283_0x51e3;if(_0x3ba992===undefined||_0x3ba992===null)return undefined;if(_0x3ba992===_0x4588fd(0xcb)||_0x3ba992==='write'||_0x3ba992===_0x4588fd(0xce))return _0x3ba992;return _0x4588fd(0xcb);}function resolveRiskCeiling(..._0x267f51){const _0x592e74=a283_0x51e3;let _0x8046e2;for(const _0xc560fc of _0x267f51){const _0x11db64=normalizeRiskCeiling(_0xc560fc);_0x11db64&&(!_0x8046e2||riskLevelOrder(_0x11db64)<riskLevelOrder(_0x8046e2))&&(_0x8046e2=_0x11db64);}return _0x8046e2??DEFAULT_CONFIG_VALUES[_0x592e74(0xbe)];}export function resolveAppConfig({raw:_0x53f2ca,flags:_0x49ab89,layers:_0x54f2bc,readEnv:_0x3466b7}){const _0x2cf02e=a283_0x51e3,_0x582e0c=_0x54f2bc?.[_0x2cf02e(0xc3)]??{},_0x5d9664=_0x54f2bc?.[_0x2cf02e(0xb9)]??{},_0x3e07e1=!!_0x54f2bc?.['projectPath']||Object[_0x2cf02e(0xc9)](_0x582e0c)[_0x2cf02e(0xb1)]>0x0,_0x385aa7=!_0x3e07e1,_0x6523b1=_0x3e07e1?resolveDefaultAppName(_0x582e0c):undefined,_0x23ae95=_0x385aa7?resolveDefaultAppName(_0x5d9664):undefined,_0x4a25fc=stringConfigValue(_0x49ab89[_0x2cf02e(0xa3)]),_0x4a8731=_0x3466b7('APP'),_0x43d805={};if(_0x53f2ca[_0x2cf02e(0xc4)]&&typeof _0x53f2ca[_0x2cf02e(0xc4)]==='object')for(const [_0x51b5d7,_0x579f5b]of Object[_0x2cf02e(0xa7)](_0x53f2ca[_0x2cf02e(0xc4)])){_0x579f5b&&typeof _0x579f5b===_0x2cf02e(0xb2)&&_0x579f5b[_0x2cf02e(0xab)]&&(_0x43d805[_0x51b5d7]=_0x579f5b);}const _0x42e86d=_0x6523b1||_0x23ae95||resolveDefaultAppName(_0x53f2ca),_0x5bfdb2=Object[_0x2cf02e(0xc9)](_0x43d805)['length']>0x0,_0x46a9dd=_0x4a25fc||_0x6523b1||_0x4a8731||_0x23ae95||_0x42e86d||undefined,_0x4684ff=stringConfigValue(_0x49ab89[_0x2cf02e(0xab)]),_0xd5e004=_0x4684ff?Object[_0x2cf02e(0xa7)](_0x43d805)[_0x2cf02e(0xba)](([,_0x1f1e01])=>_0x1f1e01?.[_0x2cf02e(0xab)]===_0x4684ff):[],_0x32cd34=_0x4a25fc&&_0x43d805[_0x4a25fc]?.[_0x2cf02e(0xab)]===_0x4684ff?[_0x4a25fc,_0x43d805[_0x4a25fc]]:undefined,_0x1819a2=_0x32cd34??(_0xd5e004[_0x2cf02e(0xb1)]===0x1?_0xd5e004[0x0]:undefined),_0x116f36=_0x1819a2?.[0x0],_0x17ebf9=_0x1819a2?.[0x1],_0x5dd611=_0x4684ff?_0x116f36:_0x46a9dd;let _0x370705=_0x5dd611&&_0x43d805[_0x5dd611]?_0x43d805[_0x5dd611]:undefined;_0x4684ff&&_0x17ebf9&&(_0x370705=_0x17ebf9);const _0x3a590e=_0x4684ff?_0x17ebf9??_0x370705:_0x370705,_0x1eaa1e=!_0x4a25fc&&!_0x6523b1&&_0x4a8731&&_0x5dd611===_0x4a8731,_0x4a6f79=_0x4a25fc||(_0x1eaa1e?_0x4a8731:undefined)||(_0x4684ff?_0x116f36:undefined),_0x5de4ef=_0x3a590e?.['appcode'],_0x5225fb=_0x3e07e1?resolveTopLevelAppCode(_0x582e0c):undefined,_0x2fb717=_0x385aa7?resolveTopLevelAppCode(_0x5d9664):undefined,_0x34cea3=_0x4a25fc||_0x6523b1?_0x5de4ef:undefined,_0x5f15e0=!_0x4a25fc&&!_0x6523b1?_0x5de4ef:undefined,_0x324921=_0x4684ff||_0x34cea3||_0x5225fb||_0x5f15e0||_0x2fb717||undefined,_0x4306bc=_0x3e07e1?stringConfigValue(_0x582e0c[_0x2cf02e(0xcd)]):undefined,_0x5157c4=_0x385aa7?stringConfigValue(_0x5d9664['env']):undefined,_0x489eaf=_0x49ab89[_0x2cf02e(0xcd)]||_0x3a590e?.[_0x2cf02e(0xcd)]||_0x4306bc||_0x3466b7(_0x2cf02e(0xc5))||_0x5157c4||_0x53f2ca[_0x2cf02e(0xcd)]||DEFAULT_CONFIG_VALUES['env'],_0x3efb81=_0x3a590e?.[_0x2cf02e(0xbb)]||_0x53f2ca[_0x2cf02e(0xbb)]||DEFAULT_CONFIG_VALUES[_0x2cf02e(0xbb)],_0x98834=_0x3466b7(_0x2cf02e(0xc7))||_0x3a590e?.[_0x2cf02e(0xbc)]||_0x53f2ca[_0x2cf02e(0xbc)]||undefined,_0x112710=_0x3466b7(_0x2cf02e(0xaa))||_0x3a590e?.[_0x2cf02e(0xa9)]||_0x53f2ca[_0x2cf02e(0xa9)]||undefined,_0x16c489=_0x49ab89[_0x2cf02e(0xc8)]||_0x3466b7(_0x2cf02e(0xad))||_0x3a590e?.['format']||_0x53f2ca['format'],_0x2bd98d=normalizeLegacyOutputFormat(_0x16c489),_0x30fb9f=_0x3466b7(_0x2cf02e(0xa6))||_0x3a590e?.[_0x2cf02e(0xa5)]||_0x53f2ca[_0x2cf02e(0xa5)],_0x442f19=_0x30fb9f?Number(_0x30fb9f)||undefined:undefined,_0xf66181=_0x54f2bc?[_0x54f2bc[_0x2cf02e(0xb9)][_0x2cf02e(0xbe)],_0x54f2bc['projectConfig'][_0x2cf02e(0xbe)]]:[_0x53f2ca[_0x2cf02e(0xbe)]],_0x50881e=resolveRiskCeiling(..._0xf66181,_0x3a590e?.[_0x2cf02e(0xbe)]),_0x5b21d1=resolveRiskCeiling(_0x50881e,_0x3466b7('RISK_LEVEL')),_0x988d7=_0x3466b7(_0x2cf02e(0xb5)),_0x383443=_0x988d7==='1'||_0x988d7==='true',_0xdfb32f=_0x3a590e?.[_0x2cf02e(0xac)]||_0x53f2ca[_0x2cf02e(0xac)]||DEFAULT_CONFIG_VALUES[_0x2cf02e(0xac)],_0x3266ef=selectConfiguredRegion({'appRegion':_0x3a590e?.[_0x2cf02e(0xb6)],'projectRegion':_0x3e07e1?_0x582e0c['region']:undefined,'globalRegion':_0x3e07e1||_0x385aa7?_0x5d9664['region']:undefined,'mergedRegion':_0x53f2ca[_0x2cf02e(0xb6)]}),_0x53e2c5=normalizeLovrabetRegion(_0x3266ef['value'])??DEFAULT_LOVRABET_REGION,_0x12b53f=isDaily(normalizeEnv(String(_0x489eaf)))?_0x2cf02e(0xc2):'production';return{'appCode':typeof _0x324921==='string'&&_0x324921[_0x2cf02e(0xb0)]()?_0x324921['trim']():undefined,'region':_0x53e2c5,'regionConfiguredValue':_0x3266ef[_0x2cf02e(0xa4)],'regionSource':_0x3266ef[_0x2cf02e(0xcc)],'env':_0x12b53f,'locale':_0x3efb81,'cookie':_0x98834,'accessKey':_0x112710,'format':_0x2bd98d,'pageSize':_0x442f19,'riskLevel':_0x5b21d1,'verbose':_0x383443,'apiDir':_0xdfb32f,'apps':_0x43d805,'defaultApp':_0x42e86d,'currentApp':_0x5bfdb2?_0x5dd611:undefined,'explicitAppName':_0x4a6f79};}
1
+ (function(_0x385ec2,_0x24d1e6){const _0x59dbb5=a283_0x2ddc,_0x5e4985=_0x385ec2();while(!![]){try{const _0x5c3f7b=-parseInt(_0x59dbb5(0x15f))/0x1+-parseInt(_0x59dbb5(0x165))/0x2+parseInt(_0x59dbb5(0x164))/0x3*(parseInt(_0x59dbb5(0x152))/0x4)+-parseInt(_0x59dbb5(0x155))/0x5+-parseInt(_0x59dbb5(0x13f))/0x6*(-parseInt(_0x59dbb5(0x14e))/0x7)+parseInt(_0x59dbb5(0x163))/0x8+parseInt(_0x59dbb5(0x160))/0x9*(parseInt(_0x59dbb5(0x15b))/0xa);if(_0x5c3f7b===_0x24d1e6)break;else _0x5e4985['push'](_0x5e4985['shift']());}catch(_0x34bc77){_0x5e4985['push'](_0x5e4985['shift']());}}}(a283_0x57cb,0x2a4e5));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x4d909d){const _0x2b4196=a283_0x2ddc;return typeof _0x4d909d===_0x2b4196(0x154)&&_0x4d909d[_0x2b4196(0x148)]()?_0x4d909d[_0x2b4196(0x148)]():undefined;}function appProfiles(_0x53eed3){const _0x394285=a283_0x2ddc;return _0x53eed3[_0x394285(0x13e)]&&typeof _0x53eed3[_0x394285(0x13e)]===_0x394285(0x156)?_0x53eed3[_0x394285(0x13e)]:{};}function resolveDefaultAppName(_0x674cc9){const _0x3428c8=a283_0x2ddc,_0x44e532=stringConfigValue(_0x674cc9['defaultApp']);if(_0x44e532)return _0x44e532;const _0x301a3b=Object['keys'](appProfiles(_0x674cc9));return _0x301a3b[_0x3428c8(0x15c)]===0x1?_0x301a3b[0x0]:undefined;}function a283_0x2ddc(_0x595a6f,_0x36aa41){_0x595a6f=_0x595a6f-0x13b;const _0x57cbb3=a283_0x57cb();let _0x2ddcf7=_0x57cbb3[_0x595a6f];return _0x2ddcf7;}function resolveTopLevelAppCode(_0x41a0ef){const _0x70ee63=a283_0x2ddc;return stringConfigValue(_0x41a0ef[_0x70ee63(0x145)])||stringConfigValue(_0x41a0ef[_0x70ee63(0x15e)]);}function normalizeRiskCeiling(_0x25fbb8){const _0x58a1ef=a283_0x2ddc;if(_0x25fbb8===undefined||_0x25fbb8===null)return undefined;if(_0x25fbb8==='read'||_0x25fbb8===_0x58a1ef(0x14b)||_0x25fbb8===_0x58a1ef(0x13b))return _0x25fbb8;return _0x58a1ef(0x141);}function resolveRiskCeiling(..._0x31964c){const _0x2f3002=a283_0x2ddc;let _0x4392b8;for(const _0x30c177 of _0x31964c){const _0x58f10d=normalizeRiskCeiling(_0x30c177);_0x58f10d&&(!_0x4392b8||riskLevelOrder(_0x58f10d)<riskLevelOrder(_0x4392b8))&&(_0x4392b8=_0x58f10d);}return _0x4392b8??DEFAULT_CONFIG_VALUES[_0x2f3002(0x13d)];}export function resolveAppConfig({raw:_0x201d98,flags:_0x3f0a37,layers:_0x1e4420,readEnv:_0xb3a13e}){const _0x3ceec4=a283_0x2ddc,_0x500ffd=_0x1e4420?.[_0x3ceec4(0x14d)]??{},_0x1d83a7=_0x1e4420?.['globalConfig']??{},_0x151aa5=!!_0x1e4420?.[_0x3ceec4(0x15a)]||Object[_0x3ceec4(0x153)](_0x500ffd)[_0x3ceec4(0x15c)]>0x0,_0x2e8539=!_0x151aa5,_0x2afca0=_0x151aa5?resolveDefaultAppName(_0x500ffd):undefined,_0x390a1b=_0x2e8539?resolveDefaultAppName(_0x1d83a7):undefined,_0x4f900f=stringConfigValue(_0x3f0a37[_0x3ceec4(0x15e)]),_0x18d163=_0xb3a13e(_0x3ceec4(0x149)),_0x39da52={};if(_0x201d98[_0x3ceec4(0x13e)]&&typeof _0x201d98[_0x3ceec4(0x13e)]===_0x3ceec4(0x156))for(const [_0x2dc923,_0x4f0e04]of Object['entries'](_0x201d98['apps'])){_0x4f0e04&&typeof _0x4f0e04===_0x3ceec4(0x156)&&_0x4f0e04['appcode']&&(_0x39da52[_0x2dc923]=_0x4f0e04);}const _0xae2edc=_0x2afca0||_0x390a1b||resolveDefaultAppName(_0x201d98),_0x115713=Object[_0x3ceec4(0x153)](_0x39da52)[_0x3ceec4(0x15c)]>0x0,_0x3ca2dd=_0x4f900f||_0x2afca0||_0x18d163||_0x390a1b||_0xae2edc||undefined,_0x6f116d=stringConfigValue(_0x3f0a37[_0x3ceec4(0x145)]),_0x22308f=_0x6f116d?Object[_0x3ceec4(0x13c)](_0x39da52)[_0x3ceec4(0x157)](([,_0xedaed])=>_0xedaed?.[_0x3ceec4(0x145)]===_0x6f116d):[],_0x40ccf0=_0x4f900f&&_0x39da52[_0x4f900f]?.[_0x3ceec4(0x145)]===_0x6f116d?[_0x4f900f,_0x39da52[_0x4f900f]]:undefined,_0x811d65=_0x40ccf0??(_0x22308f[_0x3ceec4(0x15c)]===0x1?_0x22308f[0x0]:undefined),_0x45df4e=_0x811d65?.[0x0],_0x58c6db=_0x811d65?.[0x1],_0x42342e=_0x6f116d?_0x45df4e:_0x3ca2dd;let _0x54235e=_0x42342e&&_0x39da52[_0x42342e]?_0x39da52[_0x42342e]:undefined;_0x6f116d&&_0x58c6db&&(_0x54235e=_0x58c6db);const _0x566135=_0x6f116d?_0x58c6db??_0x54235e:_0x54235e,_0x24fc4c=!_0x4f900f&&!_0x2afca0&&_0x18d163&&_0x42342e===_0x18d163,_0x2a1cf1=_0x4f900f||(_0x24fc4c?_0x18d163:undefined)||(_0x6f116d?_0x45df4e:undefined),_0x5cef90=_0x566135?.[_0x3ceec4(0x145)],_0xde9431=_0x151aa5?resolveTopLevelAppCode(_0x500ffd):undefined,_0x563787=_0x2e8539?resolveTopLevelAppCode(_0x1d83a7):undefined,_0x3ed2a7=_0x4f900f||_0x2afca0?_0x5cef90:undefined,_0x55fc91=!_0x4f900f&&!_0x2afca0?_0x5cef90:undefined,_0x3655e6=_0x6f116d||_0x3ed2a7||_0xde9431||_0x55fc91||_0x563787||undefined,_0xc0ba6b=_0x151aa5?stringConfigValue(_0x500ffd[_0x3ceec4(0x14f)]):undefined,_0x53326f=_0x2e8539?stringConfigValue(_0x1d83a7[_0x3ceec4(0x14f)]):undefined,_0xa4c82e=_0x3f0a37[_0x3ceec4(0x14f)]||_0x566135?.['env']||_0xc0ba6b||_0xb3a13e(_0x3ceec4(0x142))||_0x53326f||_0x201d98[_0x3ceec4(0x14f)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14f)],_0x22e455=_0x566135?.[_0x3ceec4(0x161)]||_0x201d98[_0x3ceec4(0x161)]||DEFAULT_CONFIG_VALUES['locale'],_0x1fdd53=_0xb3a13e(_0x3ceec4(0x159))||_0x566135?.['cookie']||_0x201d98[_0x3ceec4(0x151)]||undefined,_0x280d40=_0xb3a13e('ACCESS_KEY')||_0x566135?.[_0x3ceec4(0x143)]||_0x201d98[_0x3ceec4(0x143)]||undefined,_0x21f4cd=_0x3f0a37['format']||_0xb3a13e('FORMAT')||_0x566135?.[_0x3ceec4(0x144)]||_0x201d98[_0x3ceec4(0x144)],_0xeaf388=normalizeLegacyOutputFormat(_0x21f4cd),_0x5e9492=_0xb3a13e(_0x3ceec4(0x147))||_0x566135?.[_0x3ceec4(0x15d)]||_0x201d98[_0x3ceec4(0x15d)],_0x273115=_0x5e9492?Number(_0x5e9492)||undefined:undefined,_0x3ee3d3=_0x1e4420?[_0x1e4420['globalConfig'][_0x3ceec4(0x13d)],_0x1e4420['projectConfig']['riskLevel']]:[_0x201d98['riskLevel']],_0x5b9bf1=resolveRiskCeiling(..._0x3ee3d3,_0x566135?.[_0x3ceec4(0x13d)]),_0x521f5a=resolveRiskCeiling(_0x5b9bf1,_0xb3a13e(_0x3ceec4(0x140))),_0x81fea8=_0xb3a13e(_0x3ceec4(0x158)),_0x106b30=_0x81fea8==='1'||_0x81fea8==='true',_0x32a326=_0x566135?.[_0x3ceec4(0x14c)]||_0x201d98[_0x3ceec4(0x14c)]||DEFAULT_CONFIG_VALUES[_0x3ceec4(0x14c)],_0x129cee=selectConfiguredRegion({'appRegion':_0x566135?.[_0x3ceec4(0x146)],'projectRegion':_0x151aa5?_0x500ffd[_0x3ceec4(0x146)]:undefined,'globalRegion':_0x151aa5||_0x2e8539?_0x1d83a7[_0x3ceec4(0x146)]:undefined,'mergedRegion':_0x201d98[_0x3ceec4(0x146)]}),_0x446b7f=normalizeLovrabetRegion(_0x129cee[_0x3ceec4(0x162)])??DEFAULT_LOVRABET_REGION,_0x491bee=isDaily(normalizeEnv(String(_0xa4c82e)))?_0x3ceec4(0x150):_0x3ceec4(0x14a);return{'appCode':typeof _0x3655e6===_0x3ceec4(0x154)&&_0x3655e6[_0x3ceec4(0x148)]()?_0x3655e6[_0x3ceec4(0x148)]():undefined,'region':_0x446b7f,'regionConfiguredValue':_0x129cee[_0x3ceec4(0x162)],'regionSource':_0x129cee['source'],'env':_0x491bee,'locale':_0x22e455,'cookie':_0x1fdd53,'accessKey':_0x280d40,'format':_0xeaf388,'pageSize':_0x273115,'riskLevel':_0x521f5a,'verbose':_0x106b30,'apiDir':_0x32a326,'apps':_0x39da52,'defaultApp':_0xae2edc,'currentApp':_0x115713?_0x42342e:undefined,'explicitAppName':_0x2a1cf1};}function a283_0x57cb(){const _0x2bce1b=['value','10600SzDPnJ','3eBFXeV','443956YgVtao','high-risk-write','entries','riskLevel','apps','348864eZfdVg','RISK_LEVEL','read','ENV','accessKey','format','appcode','region','PAGE_SIZE','trim','APP','production','write','apiDir','projectConfig','28UhmzuA','env','daily','cookie','658504VDaxMR','keys','string','715305uBZNZt','object','filter','VERBOSE','COOKIE','projectPath','4090XqbEGg','length','pageSize','app','6625xQNQTW','3222kRqWXf','locale'];a283_0x57cb=function(){return _0x2bce1b;};return a283_0x57cb();}
@@ -1 +1 @@
1
- function a284_0x3372(_0x48ad08,_0x174a43){_0x48ad08=_0x48ad08-0x8f;const _0x1af68c=a284_0x1af6();let _0x337237=_0x1af68c[_0x48ad08];return _0x337237;}(function(_0x515012,_0x483742){const _0x23b706=a284_0x3372,_0x37aba0=_0x515012();while(!![]){try{const _0x35a631=-parseInt(_0x23b706(0x96))/0x1*(-parseInt(_0x23b706(0x9a))/0x2)+parseInt(_0x23b706(0x95))/0x3+-parseInt(_0x23b706(0x9b))/0x4*(-parseInt(_0x23b706(0x98))/0x5)+parseInt(_0x23b706(0x94))/0x6+-parseInt(_0x23b706(0x92))/0x7+-parseInt(_0x23b706(0x99))/0x8*(-parseInt(_0x23b706(0x91))/0x9)+-parseInt(_0x23b706(0x97))/0xa*(parseInt(_0x23b706(0x90))/0xb);if(_0x35a631===_0x483742)break;else _0x37aba0['push'](_0x37aba0['shift']());}catch(_0x1116fd){_0x37aba0['push'](_0x37aba0['shift']());}}}(a284_0x1af6,0x2e39e));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x1af6(){const _0x2668d7=['326367YWTmNJ','33799TXBYWh','567010skGEwR','5iJilsY','1503016Hbadvd','18cWfsVh','864408gLhXLM','cookie','121LtrBAE','9wcxEsr','119350NEpqdB','../auth/get-cookie.js','78864ZNLKhA'];a284_0x1af6=function(){return _0x2668d7;};return a284_0x1af6();}import{CliErrors}from'../errors.js';export async function buildAuth(_0x509b67){const _0x1f93f9=a284_0x3372,{getCookie:_0x23da5d}=await import(_0x1f93f9(0x93)),_0x547bc6=_0x509b67[_0x1f93f9(0x8f)]||_0x23da5d(),_0x21a380=_0x547bc6?await getIsSessionValid():![];return{'cookie':_0x547bc6,'isLoggedIn':_0x21a380,async 'getOrLogin'(){if(_0x547bc6&&_0x21a380)return _0x547bc6;throw CliErrors['authRequired']();}};}
1
+ (function(_0x4fbe30,_0x8cd03f){const _0x307860=a284_0x5b17,_0x31b45a=_0x4fbe30();while(!![]){try{const _0x3616ec=-parseInt(_0x307860(0xf0))/0x1*(-parseInt(_0x307860(0xf4))/0x2)+parseInt(_0x307860(0xf7))/0x3*(-parseInt(_0x307860(0xf1))/0x4)+-parseInt(_0x307860(0xf3))/0x5+-parseInt(_0x307860(0xf2))/0x6+-parseInt(_0x307860(0xf8))/0x7+parseInt(_0x307860(0xf5))/0x8+parseInt(_0x307860(0xf6))/0x9;if(_0x3616ec===_0x8cd03f)break;else _0x31b45a['push'](_0x31b45a['shift']());}catch(_0x10b663){_0x31b45a['push'](_0x31b45a['shift']());}}}(a284_0x4267,0x776d3));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x5b17(_0x2906ef,_0x397e63){_0x2906ef=_0x2906ef-0xef;const _0x426725=a284_0x4267();let _0x5b17c3=_0x426725[_0x2906ef];return _0x5b17c3;}import{CliErrors}from'../errors.js';function a284_0x4267(){const _0x5ccb4b=['4646432oWbFTK','authRequired','347alGCgy','2156548XEdIxf','3877650tEPUKW','2965985OVrHRJ','3966MgjCfs','6598808IEQngA','12767436VVOEZo','3OPpTWE'];a284_0x4267=function(){return _0x5ccb4b;};return a284_0x4267();}export async function buildAuth(_0x5f4c2b){const {getCookie:_0x4fae59}=await import('../auth/get-cookie.js'),_0x1d3557=_0x5f4c2b['cookie']||_0x4fae59(),_0x59cdc7=_0x1d3557?await getIsSessionValid():![];return{'cookie':_0x1d3557,'isLoggedIn':_0x59cdc7,async 'getOrLogin'(){const _0x85164b=a284_0x5b17;if(_0x1d3557&&_0x59cdc7)return _0x1d3557;throw CliErrors[_0x85164b(0xef)]();}};}
@@ -1 +1 @@
1
- function a285_0x468b(_0x1b12ac,_0x1c3e8d){_0x1b12ac=_0x1b12ac-0x1e2;const _0x44e44d=a285_0x44e4();let _0x468b32=_0x44e44d[_0x1b12ac];return _0x468b32;}const a285_0x2d38fd=a285_0x468b;(function(_0x21ff09,_0x21d192){const _0x1de854=a285_0x468b,_0xa02d26=_0x21ff09();while(!![]){try{const _0x39bf6f=-parseInt(_0x1de854(0x206))/0x1*(-parseInt(_0x1de854(0x218))/0x2)+parseInt(_0x1de854(0x203))/0x3*(-parseInt(_0x1de854(0x1f9))/0x4)+-parseInt(_0x1de854(0x20d))/0x5*(-parseInt(_0x1de854(0x1f2))/0x6)+-parseInt(_0x1de854(0x1e2))/0x7+-parseInt(_0x1de854(0x1fe))/0x8*(-parseInt(_0x1de854(0x1fd))/0x9)+parseInt(_0x1de854(0x1ff))/0xa*(parseInt(_0x1de854(0x211))/0xb)+-parseInt(_0x1de854(0x20e))/0xc*(parseInt(_0x1de854(0x215))/0xd);if(_0x39bf6f===_0x21d192)break;else _0xa02d26['push'](_0xa02d26['shift']());}catch(_0x3578d8){_0xa02d26['push'](_0xa02d26['shift']());}}}(a285_0x44e4,0x97f6e));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x252b87){for(const _0x58a441 of CONFIG_NAMES){const _0x3fca01=resolve(_0x252b87,_0x58a441);if(existsSync(_0x3fca01))return _0x3fca01;}return undefined;}function a285_0x44e4(){const _0x4095e6=['runtimeDomain','project','keys','length','4vSzdvT','config','empty','inherit','2029419fnnuNh','16SCypoC','10QRaZRk','utf8','kbServiceDomain','kbDomain','69753hZbONx','object','status','326301RYeUDb','locale','message','certificateDomain','set','accessKey','migrated','65eptBNv','70932csEwaF','apiDir','localDomain','5431118bxsAqD','parse','format','routing','1651gddtWv','apps','skillDomain','2rdyryr','riskLevel','1785868TAmCSa','appDomain','string','env','app','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','pageSize','appcode','stringify','warn','Global','error','missing','cookie','defaultApp','silent','175614cPwjYt','Project','get'];a285_0x44e4=function(){return _0x4095e6;};return a285_0x44e4();}export function findProjectRootDirectory(_0x897435=process['cwd']()){let _0xb5e339=resolve(_0x897435);const {root:_0x19d3a2}=parse(_0xb5e339),_0x432a0f=homedir();while(!![]){if(resolveConfigPath(_0xb5e339)){if(_0xb5e339===_0x432a0f)break;return _0xb5e339;}if(_0xb5e339===_0x19d3a2||_0xb5e339===_0x432a0f)break;const _0x5e59dd=dirname(_0xb5e339);if(_0x5e59dd===_0xb5e339)break;_0xb5e339=_0x5e59dd;}return resolve(_0x897435);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x2336ce){const _0x48f540=a285_0x468b;if(!existsSync(_0x2336ce))return{'status':_0x48f540(0x1ee)};try{const _0xdda51b=readFileSync(_0x2336ce,{'encoding':_0x48f540(0x200)});if(!_0xdda51b?.['trim']())return{'status':_0x48f540(0x1fb)};const _0xe847e9=JSON[_0x48f540(0x212)](_0xdda51b);return{'status':'ok','data':_0xe847e9};}catch(_0x2be1c2){return{'status':_0x48f540(0x1ed),'message':_0x2be1c2 instanceof Error?_0x2be1c2[_0x48f540(0x208)]:String(_0x2be1c2)};}}function parseCliConfigJsonFile(_0x2aaf91,_0x2e5114,_0x260419){const _0x3d00e2=a285_0x468b,_0x12c07e=inspectCliConfigJsonFile(_0x2aaf91);if(_0x12c07e[_0x3d00e2(0x205)]===_0x3d00e2(0x1ee)||_0x12c07e[_0x3d00e2(0x205)]===_0x3d00e2(0x1fb))return{};if(_0x12c07e[_0x3d00e2(0x205)]==='ok')return _0x12c07e['data'];return _0x2e5114==='warn'&&_0x260419&&console[_0x3d00e2(0x1ed)](CLI_BIN_NAME+':\x20'+_0x260419+_0x3d00e2(0x1e7)+_0x2aaf91+'\x0a\x20\x20'+_0x12c07e[_0x3d00e2(0x208)]),{};}function normalizeLegacyConfigShape(_0x17f679){const _0x5b7f53=a285_0x468b;if(!_0x17f679||typeof _0x17f679!==_0x5b7f53(0x204))return{'config':{},'migrated':![]};const _0x2f5e86={..._0x17f679},_0x2565bf=_0x2f5e86[_0x5b7f53(0x216)]&&typeof _0x2f5e86[_0x5b7f53(0x216)]===_0x5b7f53(0x204)?{..._0x2f5e86[_0x5b7f53(0x216)]}:{},_0x532701=Object[_0x5b7f53(0x1f7)](_0x2565bf)[_0x5b7f53(0x1f8)],_0x4d4c89=_0x2f5e86['appcode']||_0x2f5e86['app'];let _0x2e0ad6=![];if(_0x4d4c89&&_0x532701===0x0){const _0x538876=typeof _0x2f5e86[_0x5b7f53(0x1f0)]===_0x5b7f53(0x1e4)&&_0x2f5e86[_0x5b7f53(0x1f0)]['trim']()?_0x2f5e86['defaultApp']:String(_0x4d4c89)['trim']();_0x2565bf[_0x538876]={'appcode':String(_0x4d4c89)['trim'](),..._0x2f5e86[_0x5b7f53(0x1e5)]!=null?{'env':_0x2f5e86['env']}:{},..._0x2f5e86[_0x5b7f53(0x20f)]!=null?{'apiDir':_0x2f5e86[_0x5b7f53(0x20f)]}:{},..._0x2f5e86[_0x5b7f53(0x1ef)]!=null?{'cookie':_0x2f5e86['cookie']}:{},..._0x2f5e86[_0x5b7f53(0x20b)]!=null?{'accessKey':_0x2f5e86[_0x5b7f53(0x20b)]}:{},..._0x2f5e86[_0x5b7f53(0x213)]!=null?{'format':_0x2f5e86[_0x5b7f53(0x213)]}:{},..._0x2f5e86[_0x5b7f53(0x1e8)]!=null?{'pageSize':_0x2f5e86['pageSize']}:{},..._0x2f5e86[_0x5b7f53(0x219)]!=null?{'riskLevel':_0x2f5e86[_0x5b7f53(0x219)]}:{},..._0x2f5e86[_0x5b7f53(0x207)]!=null?{'locale':_0x2f5e86[_0x5b7f53(0x207)]}:{}},_0x2f5e86['apps']=_0x2565bf,delete _0x2f5e86['defaultApp'],_0x2e0ad6=!![];}return(_0x5b7f53(0x1e9)in _0x2f5e86||'app'in _0x2f5e86)&&(delete _0x2f5e86[_0x5b7f53(0x1e9)],delete _0x2f5e86[_0x5b7f53(0x1e6)],_0x2e0ad6=!![]),{'config':_0x2f5e86,'migrated':_0x2e0ad6};}function writeNormalizedConfigIfNeeded(_0x36d692,_0x45c0dd){const _0x56b13c=a285_0x468b,_0x13ebf1=JSON[_0x56b13c(0x1ea)](normalizeConfigForWrite(_0x45c0dd),null,0x2)+'\x0a';if(normalizedWriteCache[_0x56b13c(0x1f4)](_0x36d692)===_0x13ebf1)return;writeConfigFile(_0x36d692,_0x45c0dd),normalizedWriteCache[_0x56b13c(0x20a)](_0x36d692,_0x13ebf1);}function parseAndNormalizeConfig(_0x56ac53,_0x5f4d02,_0x3934a9){const _0x408a59=a285_0x468b,_0x5de2d1=parseCliConfigJsonFile(_0x56ac53,_0x5f4d02,_0x3934a9),_0x513fa6=normalizeLegacyConfigShape(_0x5de2d1);if(_0x513fa6[_0x408a59(0x20c)])try{writeNormalizedConfigIfNeeded(_0x56ac53,_0x513fa6['config']);}catch{}return _0x513fa6[_0x408a59(0x1fa)];}export function loadRawConfigLayers(_0x38d63f){const _0x2b5ccd=a285_0x468b;let _0x32e53d={},_0x3141be={};const _0x5681c1=resolveConfigPath(homedir());_0x5681c1&&(_0x32e53d=parseAndNormalizeConfig(_0x5681c1,_0x2b5ccd(0x1eb),_0x2b5ccd(0x1ec)));const _0x563335=_0x38d63f??findProjectRootDirectory(),_0x265b04=resolveConfigPath(_0x563335);return _0x265b04&&(_0x3141be=parseAndNormalizeConfig(_0x265b04,_0x2b5ccd(0x1eb),_0x2b5ccd(0x1f3))),{'globalPath':_0x5681c1,'projectPath':_0x265b04,'globalConfig':_0x32e53d,'projectConfig':_0x3141be};}const INHERIT_WHITELIST=[a285_0x2d38fd(0x1ef),'accessKey',a285_0x2d38fd(0x207),a285_0x2d38fd(0x213),'riskLevel',a285_0x2d38fd(0x1e8),'region',a285_0x2d38fd(0x214),'userDomain','apiDomain',a285_0x2d38fd(0x1f5),a285_0x2d38fd(0x217),a285_0x2d38fd(0x202),a285_0x2d38fd(0x201),a285_0x2d38fd(0x1e3),a285_0x2d38fd(0x210),a285_0x2d38fd(0x209)];export function mergeRawConfigLayers(_0x254d59){const _0xc52b11=a285_0x2d38fd,{globalConfig:_0x11e3ce,projectConfig:_0x149b78}=_0x254d59,_0x2394b3=!!_0x254d59['projectPath']||Object[_0xc52b11(0x1f7)](_0x149b78)[_0xc52b11(0x1f8)]>0x0;if(!_0x2394b3)return mergeGlobalOnly(_0x11e3ce);return mergeProjectFirst(_0x11e3ce,_0x149b78);}function mergeGlobalOnly(_0x1c4eba){const _0x44fcad=a285_0x2d38fd,_0x12139e={..._0x1c4eba};delete _0x12139e['inherit'];const _0x49983a=_0x1c4eba[_0x44fcad(0x216)]&&typeof _0x1c4eba[_0x44fcad(0x216)]===_0x44fcad(0x204)?_0x1c4eba['apps']:{};if(Object[_0x44fcad(0x1f7)](_0x49983a)[_0x44fcad(0x1f8)]>0x0)_0x12139e[_0x44fcad(0x216)]=_0x49983a;if(_0x1c4eba[_0x44fcad(0x1f0)])_0x12139e[_0x44fcad(0x1f0)]=_0x1c4eba[_0x44fcad(0x1f0)];return _0x12139e;}function mergeProjectFirst(_0x1ccd37,_0x40add1){const _0x160c9b=a285_0x2d38fd,_0x5db36e={..._0x40add1};delete _0x5db36e[_0x160c9b(0x1fc)];for(const _0x1e3604 of INHERIT_WHITELIST){!(_0x1e3604 in _0x5db36e)&&_0x1e3604 in _0x1ccd37&&(_0x5db36e[_0x1e3604]=_0x1ccd37[_0x1e3604]);}const _0xec590b=_0x40add1[_0x160c9b(0x216)]&&typeof _0x40add1['apps']===_0x160c9b(0x204)?_0x40add1['apps']:{};return Object[_0x160c9b(0x1f7)](_0xec590b)[_0x160c9b(0x1f8)]>0x0?_0x5db36e['apps']=_0xec590b:delete _0x5db36e[_0x160c9b(0x216)],'defaultApp'in _0x40add1?_0x5db36e['defaultApp']=_0x40add1[_0x160c9b(0x1f0)]:delete _0x5db36e[_0x160c9b(0x1f0)],_0x5db36e;}export function readRawConfigWithLayers(_0x3739b0){const _0x5171be=loadRawConfigLayers(_0x3739b0);return{'config':mergeRawConfigLayers(_0x5171be),'layers':_0x5171be};}export function readRawConfig(_0x429a9a){return mergeRawConfigLayers(loadRawConfigLayers(_0x429a9a));}export function readConfigFile(_0x3e40a7){const _0xedf196=a285_0x2d38fd;return parseAndNormalizeConfig(_0x3e40a7,_0xedf196(0x1f1));}export function writeConfigFile(_0x24a873,_0x55a348){const _0x26c1ee=a285_0x2d38fd,_0x5ac76d=dirname(_0x24a873);!existsSync(_0x5ac76d)&&mkdirSync(_0x5ac76d,{'recursive':!![]});const _0x1429ec=_0x24a873+'.tmp';try{const _0x3c5f6d=normalizeConfigForWrite(_0x55a348);writeFileSync(_0x1429ec,JSON['stringify'](_0x3c5f6d,null,0x2)+'\x0a',{'encoding':_0x26c1ee(0x200),'mode':0x180}),renameSync(_0x1429ec,_0x24a873);}catch(_0x14ab70){try{unlinkSync(_0x1429ec);}catch{}throw _0x14ab70;}}export function resolveWriteConfigPath(_0x302b02){const _0x494249=a285_0x2d38fd,_0x112698=_0x302b02===_0x494249(0x1f6)?process['cwd']():homedir(),_0x1f25c4=resolveConfigPath(_0x112698);return _0x1f25c4??resolve(_0x112698,NEW_CONFIG_NAME);}
1
+ const a285_0x475e72=a285_0x24f1;(function(_0x46380d,_0x1cbff8){const _0x4be5ce=a285_0x24f1,_0x49d299=_0x46380d();while(!![]){try{const _0xb81fd1=parseInt(_0x4be5ce(0xdb))/0x1*(parseInt(_0x4be5ce(0xd3))/0x2)+-parseInt(_0x4be5ce(0xce))/0x3*(-parseInt(_0x4be5ce(0x100))/0x4)+parseInt(_0x4be5ce(0x101))/0x5+parseInt(_0x4be5ce(0xe8))/0x6*(parseInt(_0x4be5ce(0x103))/0x7)+-parseInt(_0x4be5ce(0xe5))/0x8*(-parseInt(_0x4be5ce(0xd2))/0x9)+-parseInt(_0x4be5ce(0xd8))/0xa+-parseInt(_0x4be5ce(0xde))/0xb;if(_0xb81fd1===_0x1cbff8)break;else _0x49d299['push'](_0x49d299['shift']());}catch(_0x2326b0){_0x49d299['push'](_0x49d299['shift']());}}}(a285_0x28d2,0xc11bb));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a285_0x475e72(0xf7);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x151fb0){for(const _0x475676 of CONFIG_NAMES){const _0x208647=resolve(_0x151fb0,_0x475676);if(existsSync(_0x208647))return _0x208647;}return undefined;}export function findProjectRootDirectory(_0x6ff512=process['cwd']()){let _0x330215=resolve(_0x6ff512);const {root:_0x54f963}=parse(_0x330215),_0x4005a2=homedir();while(!![]){if(resolveConfigPath(_0x330215)){if(_0x330215===_0x4005a2)break;return _0x330215;}if(_0x330215===_0x54f963||_0x330215===_0x4005a2)break;const _0x381e22=dirname(_0x330215);if(_0x381e22===_0x330215)break;_0x330215=_0x381e22;}return resolve(_0x6ff512);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1a454a){const _0x7a3d06=a285_0x475e72;if(!existsSync(_0x1a454a))return{'status':'missing'};try{const _0x595b0e=readFileSync(_0x1a454a,{'encoding':_0x7a3d06(0xf4)});if(!_0x595b0e?.[_0x7a3d06(0xd0)]())return{'status':_0x7a3d06(0xf5)};const _0x1ead41=JSON['parse'](_0x595b0e);return{'status':'ok','data':_0x1ead41};}catch(_0x3afd3b){return{'status':_0x7a3d06(0x102),'message':_0x3afd3b instanceof Error?_0x3afd3b[_0x7a3d06(0xe4)]:String(_0x3afd3b)};}}function parseCliConfigJsonFile(_0x277b54,_0x45ebcd,_0x4b78dc){const _0x5e19d7=a285_0x475e72,_0x4ea6c8=inspectCliConfigJsonFile(_0x277b54);if(_0x4ea6c8['status']===_0x5e19d7(0xe7)||_0x4ea6c8[_0x5e19d7(0xdd)]===_0x5e19d7(0xf5))return{};if(_0x4ea6c8['status']==='ok')return _0x4ea6c8['data'];return _0x45ebcd==='warn'&&_0x4b78dc&&console[_0x5e19d7(0x102)](CLI_BIN_NAME+':\x20'+_0x4b78dc+_0x5e19d7(0xdf)+_0x277b54+'\x0a\x20\x20'+_0x4ea6c8['message']),{};}function normalizeLegacyConfigShape(_0x4fe49e){const _0x636d47=a285_0x475e72;if(!_0x4fe49e||typeof _0x4fe49e!==_0x636d47(0xfc))return{'config':{},'migrated':![]};const _0x97eb32={..._0x4fe49e},_0x38f0f1=_0x97eb32['apps']&&typeof _0x97eb32[_0x636d47(0xea)]==='object'?{..._0x97eb32[_0x636d47(0xea)]}:{},_0x39b00f=Object[_0x636d47(0xeb)](_0x38f0f1)[_0x636d47(0xe1)],_0x2a5dc7=_0x97eb32[_0x636d47(0xf9)]||_0x97eb32[_0x636d47(0x104)];let _0x2e96c0=![];if(_0x2a5dc7&&_0x39b00f===0x0){const _0x59ddac=typeof _0x97eb32[_0x636d47(0xf3)]===_0x636d47(0xee)&&_0x97eb32[_0x636d47(0xf3)][_0x636d47(0xd0)]()?_0x97eb32[_0x636d47(0xf3)]:String(_0x2a5dc7)[_0x636d47(0xd0)]();_0x38f0f1[_0x59ddac]={'appcode':String(_0x2a5dc7)[_0x636d47(0xd0)](),..._0x97eb32[_0x636d47(0xd4)]!=null?{'env':_0x97eb32[_0x636d47(0xd4)]}:{},..._0x97eb32[_0x636d47(0xf2)]!=null?{'apiDir':_0x97eb32[_0x636d47(0xf2)]}:{},..._0x97eb32[_0x636d47(0xec)]!=null?{'cookie':_0x97eb32[_0x636d47(0xec)]}:{},..._0x97eb32[_0x636d47(0xf0)]!=null?{'accessKey':_0x97eb32[_0x636d47(0xf0)]}:{},..._0x97eb32[_0x636d47(0xe2)]!=null?{'format':_0x97eb32[_0x636d47(0xe2)]}:{},..._0x97eb32['pageSize']!=null?{'pageSize':_0x97eb32[_0x636d47(0xe6)]}:{},..._0x97eb32[_0x636d47(0xf1)]!=null?{'riskLevel':_0x97eb32[_0x636d47(0xf1)]}:{},..._0x97eb32[_0x636d47(0xe3)]!=null?{'locale':_0x97eb32[_0x636d47(0xe3)]}:{}},_0x97eb32['apps']=_0x38f0f1,delete _0x97eb32['defaultApp'],_0x2e96c0=!![];}return(_0x636d47(0xf9)in _0x97eb32||_0x636d47(0x104)in _0x97eb32)&&(delete _0x97eb32[_0x636d47(0xf9)],delete _0x97eb32[_0x636d47(0x104)],_0x2e96c0=!![]),{'config':_0x97eb32,'migrated':_0x2e96c0};}function writeNormalizedConfigIfNeeded(_0x3a1131,_0x3bbb88){const _0x390daa=a285_0x475e72,_0x23261c=JSON[_0x390daa(0xd6)](normalizeConfigForWrite(_0x3bbb88),null,0x2)+'\x0a';if(normalizedWriteCache[_0x390daa(0xef)](_0x3a1131)===_0x23261c)return;writeConfigFile(_0x3a1131,_0x3bbb88),normalizedWriteCache[_0x390daa(0xfd)](_0x3a1131,_0x23261c);}function parseAndNormalizeConfig(_0x24643c,_0x3b3531,_0x1586e5){const _0x4f171d=a285_0x475e72,_0x417b65=parseCliConfigJsonFile(_0x24643c,_0x3b3531,_0x1586e5),_0x52a632=normalizeLegacyConfigShape(_0x417b65);if(_0x52a632['migrated'])try{writeNormalizedConfigIfNeeded(_0x24643c,_0x52a632[_0x4f171d(0xfb)]);}catch{}return _0x52a632['config'];}export function loadRawConfigLayers(_0x1dab9c){const _0x1e28de=a285_0x475e72;let _0x452ed8={},_0x1d8ad2={};const _0xbd46bd=resolveConfigPath(homedir());_0xbd46bd&&(_0x452ed8=parseAndNormalizeConfig(_0xbd46bd,_0x1e28de(0xcf),'Global'));const _0x5baab3=_0x1dab9c??findProjectRootDirectory(),_0x5a813f=resolveConfigPath(_0x5baab3);return _0x5a813f&&(_0x1d8ad2=parseAndNormalizeConfig(_0x5a813f,_0x1e28de(0xcf),_0x1e28de(0xf8))),{'globalPath':_0xbd46bd,'projectPath':_0x5a813f,'globalConfig':_0x452ed8,'projectConfig':_0x1d8ad2};}const INHERIT_WHITELIST=[a285_0x475e72(0xec),a285_0x475e72(0xf0),a285_0x475e72(0xe3),'format',a285_0x475e72(0xf1),a285_0x475e72(0xe6),a285_0x475e72(0xd9),a285_0x475e72(0xe0),a285_0x475e72(0xd7),a285_0x475e72(0xff),'runtimeDomain',a285_0x475e72(0xfe),a285_0x475e72(0xd5),a285_0x475e72(0xda),a285_0x475e72(0xd1),a285_0x475e72(0xfa),'certificateDomain'];export function mergeRawConfigLayers(_0xd2534f){const _0x577b6d=a285_0x475e72,{globalConfig:_0x23a5ac,projectConfig:_0x42b9a2}=_0xd2534f,_0x56cb4c=!!_0xd2534f['projectPath']||Object['keys'](_0x42b9a2)[_0x577b6d(0xe1)]>0x0;if(!_0x56cb4c)return mergeGlobalOnly(_0x23a5ac);return mergeProjectFirst(_0x23a5ac,_0x42b9a2);}function mergeGlobalOnly(_0x350a0a){const _0x53bac3=a285_0x475e72,_0x223cfe={..._0x350a0a};delete _0x223cfe[_0x53bac3(0xf6)];const _0x313798=_0x350a0a[_0x53bac3(0xea)]&&typeof _0x350a0a['apps']==='object'?_0x350a0a[_0x53bac3(0xea)]:{};if(Object[_0x53bac3(0xeb)](_0x313798)[_0x53bac3(0xe1)]>0x0)_0x223cfe['apps']=_0x313798;if(_0x350a0a[_0x53bac3(0xf3)])_0x223cfe['defaultApp']=_0x350a0a[_0x53bac3(0xf3)];return _0x223cfe;}function mergeProjectFirst(_0x4e0c02,_0x212f7c){const _0x3eb061=a285_0x475e72,_0x5401cf={..._0x212f7c};delete _0x5401cf[_0x3eb061(0xf6)];for(const _0x2541e0 of INHERIT_WHITELIST){!(_0x2541e0 in _0x5401cf)&&_0x2541e0 in _0x4e0c02&&(_0x5401cf[_0x2541e0]=_0x4e0c02[_0x2541e0]);}const _0x3cf94c=_0x212f7c['apps']&&typeof _0x212f7c[_0x3eb061(0xea)]==='object'?_0x212f7c[_0x3eb061(0xea)]:{};return Object[_0x3eb061(0xeb)](_0x3cf94c)[_0x3eb061(0xe1)]>0x0?_0x5401cf[_0x3eb061(0xea)]=_0x3cf94c:delete _0x5401cf['apps'],'defaultApp'in _0x212f7c?_0x5401cf['defaultApp']=_0x212f7c[_0x3eb061(0xf3)]:delete _0x5401cf['defaultApp'],_0x5401cf;}export function readRawConfigWithLayers(_0x38c4c5){const _0x2acd97=loadRawConfigLayers(_0x38c4c5);return{'config':mergeRawConfigLayers(_0x2acd97),'layers':_0x2acd97};}function a285_0x24f1(_0x54af28,_0x5636d1){_0x54af28=_0x54af28-0xce;const _0x28d2c9=a285_0x28d2();let _0x24f133=_0x28d2c9[_0x54af28];return _0x24f133;}export function readRawConfig(_0x29d9b3){return mergeRawConfigLayers(loadRawConfigLayers(_0x29d9b3));}export function readConfigFile(_0x1dcac1){const _0x4fe59b=a285_0x475e72;return parseAndNormalizeConfig(_0x1dcac1,_0x4fe59b(0xdc));}export function writeConfigFile(_0x25ce49,_0x2d7ecb){const _0x13f260=a285_0x475e72,_0x29fb0e=dirname(_0x25ce49);!existsSync(_0x29fb0e)&&mkdirSync(_0x29fb0e,{'recursive':!![]});const _0x3adad5=_0x25ce49+_0x13f260(0xe9);try{const _0x27f7c8=normalizeConfigForWrite(_0x2d7ecb);writeFileSync(_0x3adad5,JSON[_0x13f260(0xd6)](_0x27f7c8,null,0x2)+'\x0a',{'encoding':_0x13f260(0xf4),'mode':0x180}),renameSync(_0x3adad5,_0x25ce49);}catch(_0x3dcefe){try{unlinkSync(_0x3adad5);}catch{}throw _0x3dcefe;}}export function resolveWriteConfigPath(_0x579ae8){const _0x57e325=a285_0x475e72,_0x4e9382=_0x579ae8==='project'?process[_0x57e325(0xed)]():homedir(),_0x2808d9=resolveConfigPath(_0x4e9382);return _0x2808d9??resolve(_0x4e9382,NEW_CONFIG_NAME);}function a285_0x28d2(){const _0x1300fa=['object','set','skillDomain','apiDomain','433948CHZciZ','3908995AvmwMm','error','6034063OTEeQE','app','24yWnXxY','warn','trim','appDomain','19863zLgeyk','2125806VueJYx','env','kbDomain','stringify','userDomain','8141940NLHJXX','region','kbServiceDomain','1rkztLg','silent','status','32685620AoRhoi','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','routing','length','format','locale','message','3632Uzpsae','pageSize','missing','6AKkhdY','.tmp','apps','keys','cookie','cwd','string','get','accessKey','riskLevel','apiDir','defaultApp','utf8','empty','inherit','.rabetbase.json','Project','appcode','localDomain','config'];a285_0x28d2=function(){return _0x1300fa;};return a285_0x28d2();}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a286_0x34879f=a286_0x219b;(function(_0x54e396,_0x3fa354){const _0x9d1494=a286_0x219b,_0x5779a5=_0x54e396();while(!![]){try{const _0x238207=parseInt(_0x9d1494(0x1f3))/0x1*(-parseInt(_0x9d1494(0x1ed))/0x2)+parseInt(_0x9d1494(0x206))/0x3*(-parseInt(_0x9d1494(0x227))/0x4)+parseInt(_0x9d1494(0x224))/0x5*(parseInt(_0x9d1494(0x205))/0x6)+parseInt(_0x9d1494(0x229))/0x7*(-parseInt(_0x9d1494(0x21a))/0x8)+-parseInt(_0x9d1494(0x22a))/0x9*(parseInt(_0x9d1494(0x1fc))/0xa)+parseInt(_0x9d1494(0x204))/0xb+-parseInt(_0x9d1494(0x1f4))/0xc*(-parseInt(_0x9d1494(0x1e3))/0xd);if(_0x238207===_0x3fa354)break;else _0x5779a5['push'](_0x5779a5['shift']());}catch(_0x431d41){_0x5779a5['push'](_0x5779a5['shift']());}}}(a286_0x10b7,0x1efbf));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(_0x8ef37e){return process.env[`RABETBASE_${_0x8ef37e}`]||process.env[`LOVRABET_${_0x8ef37e}`]||undefined;}function optionalString(_0x4ee163){const _0x5ed9e5=a286_0x219b;return typeof _0x4ee163===_0x5ed9e5(0x1e6)&&_0x4ee163[_0x5ed9e5(0x1e0)]()?_0x4ee163['trim']():undefined;}export function isRoutingRecoveryService(_0x589b29){const _0x16436c=a286_0x219b;return _0x589b29===_0x16436c(0x213)||_0x589b29===_0x16436c(0x222);}export async function createContext(_0x491a79){const _0x3082d3=a286_0x219b,{config:_0x4d9a98,layers:_0x5b89e0}=readRawConfigWithLayers(),_0x2f6f3b=buildConfig(_0x4d9a98,_0x491a79,_0x5b89e0);await initGlobalEnvironment(_0x2f6f3b);const {getUserDomain:_0x5b6d68,getApiDomain:_0x2c76d1}=await import('./constant/domain.js'),_0x526482={'apiDomain':_0x2c76d1(),'userDomain':_0x5b6d68()},_0x546b0e=await buildAuth(_0x2f6f3b);logger['setLogPath'](process[_0x3082d3(0x1f2)]());const _0x53a73d=(CLI_BIN_NAME+'\x20'+process[_0x3082d3(0x20e)][_0x3082d3(0x1f6)](0x2)[_0x3082d3(0x22b)]('\x20'))[_0x3082d3(0x1e0)]();logger[_0x3082d3(0x1e4)](_0x53a73d);const {isNonInteractive:_0x4d2df4}=await import(_0x3082d3(0x21c)),_0x141b94=_0x4d2df4(_0x491a79);return{'config':_0x2f6f3b,'auth':_0x546b0e,'logger':logger,'env':_0x526482,'nonInteractive':_0x141b94};}export function buildConfigFromFlags(_0x2902f8){const {config:_0x1d2365,layers:_0x5ce039}=readRawConfigWithLayers();return buildConfig(_0x1d2365,_0x2902f8,_0x5ce039);}export async function initGlobalEnvironment(_0x3a3239){const _0x2edaec=a286_0x219b,_0x453144=_0x3a3239[_0x2edaec(0x215)]==='app'&&_0x3a3239[_0x2edaec(0x1e5)]?_0x2edaec(0x216)+_0x3a3239[_0x2edaec(0x1e5)]+'\x22':_0x3a3239[_0x2edaec(0x215)]===_0x2edaec(0x1ff)?_0x2edaec(0x1eb):_0x3a3239[_0x2edaec(0x215)]===_0x2edaec(0x1f9)?_0x2edaec(0x217):_0x2edaec(0x1e7);await initConfiguredEnvironment({'raw':_0x3a3239[_0x2edaec(0x1fb)],'configuredRegion':_0x3a3239[_0x2edaec(0x223)]??_0x3a3239[_0x2edaec(0x1fb)]?.[_0x2edaec(0x1e1)]??_0x3a3239[_0x2edaec(0x1e1)],'regionLocation':_0x453144,'targetEnv':_0x3a3239[_0x2edaec(0x1e8)]});}function a286_0x10b7(){const _0x3330a8=['routingConfig','agentDomain','project','appDomain','defaultApp','template_base_url','production','1861145ZHnymT','22938XLlXwO','75SGsgCi','keys','skillHubDomain','hasOwnProperty','./constant/domain.js','merged','app','regionLocation','argv','certificateDomain','cdn','runtimeDomain','kbDomain','config','map','regionSource','app\x20profile\x20\x22','global\x20Rabetbase\x20configuration','platformDomain','globalConfig','1529648VAuHdF','name','./utils/is-non-interactive.js','prototype','source','values','object','filePath','doctor','regionConfiguredValue','305ARptRy','skillDomain','apps','7484dqVufx','domains','7zNAWSq','1030284kjyoWc','join','projectConfig','filter','trim','region','localDomain','1079bEXrEs','setRawCommand','currentApp','string','Rabetbase\x20configuration','env','cookie','routing','project\x20Rabetbase\x20configuration','appcode','23612AXmemi','daily','configuredRegion','length','userDomain','cwd','11DknPRf','29904roPRtF','call','slice','apiDomain','apiDir','global','kbServiceDomain','raw','10ryVGqb'];a286_0x10b7=function(){return _0x3330a8;};return a286_0x10b7();}async function initConfiguredEnvironment(_0x1adbd4){const _0x1e92df=a286_0x219b,_0x43377f=resolveConfiguredRegion(_0x1adbd4[_0x1e92df(0x1ef)],_0x1adbd4[_0x1e92df(0x20d)]),_0x43ef67=resolveEnterpriseRoutingManifest(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1ea)]),_0x3fe6c7={'region':_0x43377f,'apiDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x1f7)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1f7)]),'userDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x1f1)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1f1)]),'runtimeDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x211)]:optionalString(_0x1adbd4['raw']?.[_0x1e92df(0x211)]),'skillDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x225)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x225)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['skillHubDomain'])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1fe)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['platformDomain']),'kbDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)]['kbDomain']:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x212)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1fe)])||optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x218)]),'kbServiceDomain':_0x43ef67?_0x43ef67['domains'][_0x1e92df(0x1fa)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['kbServiceDomain']),'appDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x200)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.['appDomain']),'localDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)][_0x1e92df(0x1e2)]:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x1e2)]),'certificateDomain':_0x43ef67?_0x43ef67[_0x1e92df(0x228)]['certificateDomain']:optionalString(_0x1adbd4[_0x1e92df(0x1fb)]?.[_0x1e92df(0x20f)]),'cdn':_0x43ef67?.[_0x1e92df(0x210)],'allowOfficialKbServiceDefault':!(_0x43ef67!==undefined||[_0x1e92df(0x1f7),_0x1e92df(0x1f1),_0x1e92df(0x211),'skillDomain',_0x1e92df(0x208),_0x1e92df(0x212),_0x1e92df(0x1fa),'agentDomain',_0x1e92df(0x218),_0x1e92df(0x200),_0x1e92df(0x1e2),'certificateDomain']['some'](_0x3e0a94=>Object[_0x1e92df(0x21d)][_0x1e92df(0x209)][_0x1e92df(0x1f5)](_0x1adbd4[_0x1e92df(0x1fb)]??{},_0x3e0a94)))},{initEnv:_0x205c08}=await import('./constant/env.js'),{initDomains:_0x5ba5f2}=await import(_0x1e92df(0x20a));_0x205c08(_0x1adbd4['targetEnv']),_0x5ba5f2(_0x3fe6c7);}export async function initMultiAppEnvironment(_0x4efef7){const _0xf5d2d6=a286_0x219b;await initConfiguredEnvironment({'raw':_0x4efef7[_0xf5d2d6(0x1fd)],'configuredRegion':_0x4efef7[_0xf5d2d6(0x1e1)],'regionLocation':_0xf5d2d6(0x216)+_0x4efef7[_0xf5d2d6(0x21b)]+'\x22','targetEnv':_0x4efef7[_0xf5d2d6(0x1e8)]===_0xf5d2d6(0x1ee)?_0xf5d2d6(0x1ee):_0xf5d2d6(0x203)});}export function getConfigAppCode(_0x4b3921){const _0x30c57c=a286_0x219b,_0x4033bd=readRawConfig(_0x4b3921);if(_0x4033bd[_0x30c57c(0x226)]&&typeof _0x4033bd['apps']===_0x30c57c(0x220)){const _0x368f4=_0x4033bd[_0x30c57c(0x201)];if(_0x368f4)return _0x4033bd[_0x30c57c(0x226)][_0x368f4]?.[_0x30c57c(0x1ec)]?String(_0x4033bd[_0x30c57c(0x226)][_0x368f4][_0x30c57c(0x1ec)])[_0x30c57c(0x1e0)]():undefined;const _0x3af197=Object[_0x30c57c(0x21f)](_0x4033bd[_0x30c57c(0x226)]);if(_0x3af197[_0x30c57c(0x1f0)]===0x1&&_0x3af197[0x0]?.[_0x30c57c(0x1ec)])return String(_0x3af197[0x0][_0x30c57c(0x1ec)])[_0x30c57c(0x1e0)]();}const _0x394948=_0x4033bd['appcode']||_0x4033bd[_0x30c57c(0x20c)];if(typeof _0x394948!==_0x30c57c(0x1e6)||_0x394948[_0x30c57c(0x1e0)]()==='')return undefined;return _0x394948[_0x30c57c(0x1e0)]();}const CONNECTION_ROUTING_KEYS=[a286_0x34879f(0x1ea),a286_0x34879f(0x1f7),a286_0x34879f(0x1f1),a286_0x34879f(0x211),'skillDomain','skillHubDomain',a286_0x34879f(0x212),a286_0x34879f(0x1fa),a286_0x34879f(0x1fe),a286_0x34879f(0x218),a286_0x34879f(0x200),'localDomain',a286_0x34879f(0x20f)];function withAppProfileRouting(_0x156f0a,_0x3e15c0){const _0x4fc9fe=a286_0x34879f;if(!_0x3e15c0||_0x3e15c0[_0x4fc9fe(0x1fa)]===undefined)return _0x156f0a;return{..._0x156f0a,'kbServiceDomain':_0x3e15c0[_0x4fc9fe(0x1fa)]};}function a286_0x219b(_0x49939b,_0x1b0c39){_0x49939b=_0x49939b-0x1e0;const _0x10b715=a286_0x10b7();let _0x219b16=_0x10b715[_0x49939b];return _0x219b16;}function pickConnectionRoutingConfig(_0x1457e2,_0xa94c83){const _0x24a4a2={'region':_0xa94c83};for(const _0x4c2cff of CONNECTION_ROUTING_KEYS){if(_0x1457e2[_0x4c2cff]!==undefined)_0x24a4a2[_0x4c2cff]=_0x1457e2[_0x4c2cff];}return _0x24a4a2;}export function getMultiAppConfigs(_0x5e2fea=a286_0x34879f(0x1ff),_0x48f6f6){const _0x403c99=a286_0x34879f,_0xa0b2b1=loadRawConfigLayers(_0x48f6f6);let _0x53a35f,_0x5cd13c;const _0x2b1c5b=mergeRawConfigLayers(_0xa0b2b1),_0x28e7ca=_0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]&&typeof _0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]===_0x403c99(0x220)?_0xa0b2b1[_0x403c99(0x219)][_0x403c99(0x226)]:{},_0x535bde=_0xa0b2b1[_0x403c99(0x22c)]['apps']&&typeof _0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)]===_0x403c99(0x220)?_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)]:{};_0x5e2fea===_0x403c99(0x20b)?(_0x53a35f={..._0x28e7ca,..._0x535bde},_0x5cd13c=_0x2b1c5b[_0x403c99(0x201)]):(_0x53a35f=_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x226)],_0x5cd13c=_0xa0b2b1[_0x403c99(0x22c)][_0x403c99(0x201)]);!_0x5cd13c&&_0x53a35f&&typeof _0x53a35f===_0x403c99(0x220)&&Object[_0x403c99(0x207)](_0x53a35f)[_0x403c99(0x1f0)]===0x1&&(_0x5cd13c=Object[_0x403c99(0x207)](_0x53a35f)[0x0]);if(!_0x53a35f||typeof _0x53a35f!=='object'||Object['keys'](_0x53a35f)['length']===0x0)return null;return Object['entries'](_0x53a35f)[_0x403c99(0x214)](([_0x2d5369,_0x29e4dd])=>{const _0x4f6449=_0x403c99,_0x1549f0=_0x5e2fea===_0x4f6449(0x1ff)||Object[_0x4f6449(0x21d)][_0x4f6449(0x209)]['call'](_0x535bde,_0x2d5369),_0x4a0170=withAppProfileRouting(_0x1549f0?_0x2b1c5b:_0xa0b2b1[_0x4f6449(0x219)],_0x29e4dd),_0x515f9a=resolveEffectiveRegion({'appRegion':_0x29e4dd?.[_0x4f6449(0x1e1)],'projectRegion':_0x1549f0?_0xa0b2b1['projectConfig'][_0x4f6449(0x1e1)]:undefined,'globalRegion':_0xa0b2b1[_0x4f6449(0x219)]['region'],'mergedRegion':_0x4a0170[_0x4f6449(0x1e1)],'appName':_0x2d5369});return{'name':_0x2d5369,'appcode':_0x29e4dd?.[_0x4f6449(0x1ec)]||'','apiGroup':optionalString(_0x29e4dd?.['apiGroup']),'isDefault':_0x2d5369===_0x5cd13c,'region':_0x515f9a['region'],'regionSource':_0x515f9a[_0x4f6449(0x21e)],'env':_0x29e4dd?.[_0x4f6449(0x1e8)],'apiDir':optionalString(_0x29e4dd?.[_0x4f6449(0x1f8)])||optionalString(_0x4a0170['apiDir']),'cookie':_0x29e4dd?.[_0x4f6449(0x1e9)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4a0170,_0x515f9a[_0x4f6449(0x1e1)])};})[_0x403c99(0x22d)](_0x5f2b8f=>_0x5f2b8f[_0x403c99(0x1ec)]);}export function getTemplateBaseUrl(_0x3221e6){const _0x5d1a70=a286_0x34879f,_0x3e4f11=readRawConfig(_0x3221e6);if(_0x3e4f11[_0x5d1a70(0x202)]&&typeof _0x3e4f11[_0x5d1a70(0x202)]===_0x5d1a70(0x1e6))return _0x3e4f11[_0x5d1a70(0x202)]['replace'](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0xbb5b9a,_0x177c5e,_0x4f59e6){const _0x1ce304=a286_0x34879f,_0x11c7a2=resolveAppConfig({'raw':_0xbb5b9a,'flags':_0x177c5e,'layers':_0x4f59e6,'readEnv':env}),_0x3ab5fc=_0x11c7a2[_0x1ce304(0x1e5)]?_0x11c7a2['apps'][_0x11c7a2[_0x1ce304(0x1e5)]]:undefined;return{..._0x11c7a2,'raw':withAppProfileRouting(_0xbb5b9a,_0x3ab5fc)};}export function resolveApiFilePath(_0x1367e9,_0x4592e1,_0x588c8b){const _0x966dd9=a286_0x34879f;return resolveApiModelSource(_0x1367e9,_0x4592e1,_0x588c8b)[_0x966dd9(0x221)];}
1
+ const a286_0x26a0f0=a286_0x37af;(function(_0x291a3b,_0x5d1e1e){const _0x30ce9a=a286_0x37af,_0x153c3f=_0x291a3b();while(!![]){try{const _0x3c52ac=-parseInt(_0x30ce9a(0x1e0))/0x1+-parseInt(_0x30ce9a(0x1ca))/0x2+parseInt(_0x30ce9a(0x1de))/0x3+-parseInt(_0x30ce9a(0x1b1))/0x4+parseInt(_0x30ce9a(0x1bb))/0x5*(parseInt(_0x30ce9a(0x1d8))/0x6)+parseInt(_0x30ce9a(0x1c5))/0x7*(-parseInt(_0x30ce9a(0x1e9))/0x8)+parseInt(_0x30ce9a(0x1b0))/0x9;if(_0x3c52ac===_0x5d1e1e)break;else _0x153c3f['push'](_0x153c3f['shift']());}catch(_0x4e45bc){_0x153c3f['push'](_0x153c3f['shift']());}}}(a286_0x5122,0xa15eb));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(_0x3c6731){return process.env[`RABETBASE_${_0x3c6731}`]||process.env[`LOVRABET_${_0x3c6731}`]||undefined;}function a286_0x5122(){const _0x572e01=['kbDomain','values','apps','region','defaultApp','26357724qEzAOs','613960MgVawT','projectConfig','trim','some','globalConfig','agentDomain','doctor','routingConfig','join','entries','125AOuVJI','apiDir','appcode','daily','filePath','configuredRegion','app','filter','config','platformDomain','4680025DmnHGu','runtimeDomain','Rabetbase\x20configuration','app\x20profile\x20\x22','regionConfiguredValue','2066974FrTfyC','kbServiceDomain','./constant/env.js','prototype','string','domains','template_base_url','length','localDomain','userDomain','routing','source','global\x20Rabetbase\x20configuration','cwd','51132uHudWc','certificateDomain','appDomain','targetEnv','slice','raw','991056CtcdyQ','hasOwnProperty','955515chlkoL','env','regionSource','./utils/is-non-interactive.js','skillDomain','./constant/domain.js','keys','call','apiGroup','8iQgtbC','apiDomain','name','skillHubDomain','setRawCommand','object','https://g.lovrabet.com/dist/lovrabet-skill','global','currentApp','project'];a286_0x5122=function(){return _0x572e01;};return a286_0x5122();}function optionalString(_0x4abda9){const _0x10fdab=a286_0x37af;return typeof _0x4abda9===_0x10fdab(0x1ce)&&_0x4abda9[_0x10fdab(0x1b3)]()?_0x4abda9[_0x10fdab(0x1b3)]():undefined;}export function isRoutingRecoveryService(_0x162bdb){const _0x4abb2c=a286_0x37af;return _0x162bdb===_0x4abb2c(0x1c3)||_0x162bdb===_0x4abb2c(0x1b7);}function a286_0x37af(_0x3d217d,_0x23611c){_0x3d217d=_0x3d217d-0x1a3;const _0x512285=a286_0x5122();let _0x37af20=_0x512285[_0x3d217d];return _0x37af20;}export async function createContext(_0x539f0c){const _0x3a026d=a286_0x37af,{config:_0xf0b149,layers:_0x1ae201}=readRawConfigWithLayers(),_0x4e242e=buildConfig(_0xf0b149,_0x539f0c,_0x1ae201);await initGlobalEnvironment(_0x4e242e);const {getUserDomain:_0x3c0b24,getApiDomain:_0xf644d7}=await import(_0x3a026d(0x1e5)),_0x85181d={'apiDomain':_0xf644d7(),'userDomain':_0x3c0b24()},_0x51ce63=await buildAuth(_0x4e242e);logger['setLogPath'](process[_0x3a026d(0x1d7)]());const _0x5be315=(CLI_BIN_NAME+'\x20'+process['argv'][_0x3a026d(0x1dc)](0x2)[_0x3a026d(0x1b9)]('\x20'))[_0x3a026d(0x1b3)]();logger[_0x3a026d(0x1a5)](_0x5be315);const {isNonInteractive:_0x1fb1f7}=await import(_0x3a026d(0x1e3)),_0x59bc27=_0x1fb1f7(_0x539f0c);return{'config':_0x4e242e,'auth':_0x51ce63,'logger':logger,'env':_0x85181d,'nonInteractive':_0x59bc27};}export function buildConfigFromFlags(_0x8a9e95){const {config:_0x27db01,layers:_0x31a704}=readRawConfigWithLayers();return buildConfig(_0x27db01,_0x8a9e95,_0x31a704);}export async function initGlobalEnvironment(_0x28a98d){const _0x9a7062=a286_0x37af,_0x5b6c62=_0x28a98d['regionSource']===_0x9a7062(0x1c1)&&_0x28a98d[_0x9a7062(0x1a9)]?'app\x20profile\x20\x22'+_0x28a98d[_0x9a7062(0x1a9)]+'\x22':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1aa)?'project\x20Rabetbase\x20configuration':_0x28a98d[_0x9a7062(0x1e2)]===_0x9a7062(0x1a8)?_0x9a7062(0x1d6):_0x9a7062(0x1c7);await initConfiguredEnvironment({'raw':_0x28a98d['raw'],'configuredRegion':_0x28a98d[_0x9a7062(0x1c9)]??_0x28a98d[_0x9a7062(0x1dd)]?.[_0x9a7062(0x1ae)]??_0x28a98d[_0x9a7062(0x1ae)],'regionLocation':_0x5b6c62,'targetEnv':_0x28a98d[_0x9a7062(0x1e1)]});}async function initConfiguredEnvironment(_0x8cc95c){const _0x320d09=a286_0x37af,_0x4931d0=resolveConfiguredRegion(_0x8cc95c[_0x320d09(0x1c0)],_0x8cc95c['regionLocation']),_0x31cf80=resolveEnterpriseRoutingManifest(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d4)]),_0x1d02b5={'region':_0x4931d0,'apiDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1ea)]:optionalString(_0x8cc95c['raw']?.['apiDomain']),'userDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d3)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d3)]),'runtimeDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)]['runtimeDomain']:optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c6)]),'skillDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1e4)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['skillDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1a4)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1c4)]),'kbDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1ab)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.['kbDomain'])||optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1b6)])||optionalString(_0x8cc95c['raw']?.[_0x320d09(0x1c4)]),'kbServiceDomain':_0x31cf80?_0x31cf80['domains'][_0x320d09(0x1cb)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1cb)]),'appDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1da)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1da)]),'localDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d2)]:optionalString(_0x8cc95c['raw']?.['localDomain']),'certificateDomain':_0x31cf80?_0x31cf80[_0x320d09(0x1cf)][_0x320d09(0x1d9)]:optionalString(_0x8cc95c[_0x320d09(0x1dd)]?.[_0x320d09(0x1d9)]),'cdn':_0x31cf80?.['cdn'],'allowOfficialKbServiceDefault':!(_0x31cf80!==undefined||['apiDomain',_0x320d09(0x1d3),_0x320d09(0x1c6),_0x320d09(0x1e4),'skillHubDomain',_0x320d09(0x1ab),'kbServiceDomain',_0x320d09(0x1b6),_0x320d09(0x1c4),'appDomain','localDomain',_0x320d09(0x1d9)][_0x320d09(0x1b4)](_0x4a0b33=>Object[_0x320d09(0x1cd)]['hasOwnProperty'][_0x320d09(0x1e7)](_0x8cc95c[_0x320d09(0x1dd)]??{},_0x4a0b33)))},{initEnv:_0x70cf76}=await import(_0x320d09(0x1cc)),{initDomains:_0x22d3a0}=await import('./constant/domain.js');_0x70cf76(_0x8cc95c[_0x320d09(0x1db)]),_0x22d3a0(_0x1d02b5);}export async function initMultiAppEnvironment(_0x3b00d2){const _0x4ff057=a286_0x37af;await initConfiguredEnvironment({'raw':_0x3b00d2[_0x4ff057(0x1b8)],'configuredRegion':_0x3b00d2[_0x4ff057(0x1ae)],'regionLocation':_0x4ff057(0x1c8)+_0x3b00d2[_0x4ff057(0x1a3)]+'\x22','targetEnv':_0x3b00d2['env']===_0x4ff057(0x1be)?_0x4ff057(0x1be):'production'});}export function getConfigAppCode(_0x41eef8){const _0x4d0262=a286_0x37af,_0x26092f=readRawConfig(_0x41eef8);if(_0x26092f['apps']&&typeof _0x26092f[_0x4d0262(0x1ad)]===_0x4d0262(0x1a6)){const _0x32664a=_0x26092f[_0x4d0262(0x1af)];if(_0x32664a)return _0x26092f[_0x4d0262(0x1ad)][_0x32664a]?.[_0x4d0262(0x1bd)]?String(_0x26092f[_0x4d0262(0x1ad)][_0x32664a][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]():undefined;const _0x27992a=Object[_0x4d0262(0x1ac)](_0x26092f[_0x4d0262(0x1ad)]);if(_0x27992a['length']===0x1&&_0x27992a[0x0]?.[_0x4d0262(0x1bd)])return String(_0x27992a[0x0][_0x4d0262(0x1bd)])[_0x4d0262(0x1b3)]();}const _0x46702b=_0x26092f[_0x4d0262(0x1bd)]||_0x26092f[_0x4d0262(0x1c1)];if(typeof _0x46702b!==_0x4d0262(0x1ce)||_0x46702b[_0x4d0262(0x1b3)]()==='')return undefined;return _0x46702b[_0x4d0262(0x1b3)]();}const CONNECTION_ROUTING_KEYS=[a286_0x26a0f0(0x1d4),a286_0x26a0f0(0x1ea),a286_0x26a0f0(0x1d3),'runtimeDomain',a286_0x26a0f0(0x1e4),a286_0x26a0f0(0x1a4),a286_0x26a0f0(0x1ab),a286_0x26a0f0(0x1cb),a286_0x26a0f0(0x1b6),'platformDomain','appDomain','localDomain',a286_0x26a0f0(0x1d9)];function withAppProfileRouting(_0x57f0c4,_0x330132){const _0x1b9d52=a286_0x26a0f0;if(!_0x330132||_0x330132[_0x1b9d52(0x1cb)]===undefined)return _0x57f0c4;return{..._0x57f0c4,'kbServiceDomain':_0x330132['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x413fb3,_0x36963b){const _0x234cb7={'region':_0x36963b};for(const _0x3ba3d2 of CONNECTION_ROUTING_KEYS){if(_0x413fb3[_0x3ba3d2]!==undefined)_0x234cb7[_0x3ba3d2]=_0x413fb3[_0x3ba3d2];}return _0x234cb7;}export function getMultiAppConfigs(_0x21aa30=a286_0x26a0f0(0x1aa),_0x2020e8){const _0x2165a9=a286_0x26a0f0,_0x8eb897=loadRawConfigLayers(_0x2020e8);let _0x26acb0,_0x1f919f;const _0x17de40=mergeRawConfigLayers(_0x8eb897),_0xd0348=_0x8eb897[_0x2165a9(0x1b5)][_0x2165a9(0x1ad)]&&typeof _0x8eb897[_0x2165a9(0x1b5)]['apps']==='object'?_0x8eb897[_0x2165a9(0x1b5)]['apps']:{},_0x1dff50=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]&&typeof _0x8eb897['projectConfig'][_0x2165a9(0x1ad)]===_0x2165a9(0x1a6)?_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)]:{};_0x21aa30==='merged'?(_0x26acb0={..._0xd0348,..._0x1dff50},_0x1f919f=_0x17de40[_0x2165a9(0x1af)]):(_0x26acb0=_0x8eb897[_0x2165a9(0x1b2)][_0x2165a9(0x1ad)],_0x1f919f=_0x8eb897[_0x2165a9(0x1b2)]['defaultApp']);!_0x1f919f&&_0x26acb0&&typeof _0x26acb0===_0x2165a9(0x1a6)&&Object[_0x2165a9(0x1e6)](_0x26acb0)['length']===0x1&&(_0x1f919f=Object['keys'](_0x26acb0)[0x0]);if(!_0x26acb0||typeof _0x26acb0!==_0x2165a9(0x1a6)||Object[_0x2165a9(0x1e6)](_0x26acb0)[_0x2165a9(0x1d1)]===0x0)return null;return Object[_0x2165a9(0x1ba)](_0x26acb0)['map'](([_0x3ed7b4,_0x2042c6])=>{const _0x5218c3=_0x2165a9,_0x25fe09=_0x21aa30===_0x5218c3(0x1aa)||Object[_0x5218c3(0x1cd)][_0x5218c3(0x1df)][_0x5218c3(0x1e7)](_0x1dff50,_0x3ed7b4),_0x5ee0a8=withAppProfileRouting(_0x25fe09?_0x17de40:_0x8eb897['globalConfig'],_0x2042c6),_0x2eb19a=resolveEffectiveRegion({'appRegion':_0x2042c6?.['region'],'projectRegion':_0x25fe09?_0x8eb897[_0x5218c3(0x1b2)][_0x5218c3(0x1ae)]:undefined,'globalRegion':_0x8eb897['globalConfig'][_0x5218c3(0x1ae)],'mergedRegion':_0x5ee0a8[_0x5218c3(0x1ae)],'appName':_0x3ed7b4});return{'name':_0x3ed7b4,'appcode':_0x2042c6?.[_0x5218c3(0x1bd)]||'','apiGroup':optionalString(_0x2042c6?.[_0x5218c3(0x1e8)]),'isDefault':_0x3ed7b4===_0x1f919f,'region':_0x2eb19a[_0x5218c3(0x1ae)],'regionSource':_0x2eb19a[_0x5218c3(0x1d5)],'env':_0x2042c6?.[_0x5218c3(0x1e1)],'apiDir':optionalString(_0x2042c6?.[_0x5218c3(0x1bc)])||optionalString(_0x5ee0a8[_0x5218c3(0x1bc)]),'cookie':_0x2042c6?.['cookie']||undefined,'routingConfig':pickConnectionRoutingConfig(_0x5ee0a8,_0x2eb19a['region'])};})[_0x2165a9(0x1c2)](_0x1237db=>_0x1237db[_0x2165a9(0x1bd)]);}export function getTemplateBaseUrl(_0x3b530e){const _0x33cd41=a286_0x26a0f0,_0x3092e5=readRawConfig(_0x3b530e);if(_0x3092e5[_0x33cd41(0x1d0)]&&typeof _0x3092e5['template_base_url']==='string')return _0x3092e5['template_base_url']['replace'](/\/$/,'');return _0x33cd41(0x1a7);}function buildConfig(_0x23466d,_0x46c6b1,_0x26e3f4){const _0x14cdaa=a286_0x26a0f0,_0x11cbd9=resolveAppConfig({'raw':_0x23466d,'flags':_0x46c6b1,'layers':_0x26e3f4,'readEnv':env}),_0x13a1a7=_0x11cbd9[_0x14cdaa(0x1a9)]?_0x11cbd9[_0x14cdaa(0x1ad)][_0x11cbd9['currentApp']]:undefined;return{..._0x11cbd9,'raw':withAppProfileRouting(_0x23466d,_0x13a1a7)};}export function resolveApiFilePath(_0x202506,_0x1bd35a,_0x3817dc){const _0xab835b=a286_0x26a0f0;return resolveApiModelSource(_0x202506,_0x1bd35a,_0x3817dc)[_0xab835b(0x1bf)];}
@@ -1 +1 @@
1
- const a287_0x2dc0f3=a287_0x2aa9;function a287_0x3db0(){const _0x51586c=['14QnNeiR','1104340tkhBBj','set','1csENJg','alias','slice','.mjs','size','name','../','3374380xudnwE','defaultProfile','10649529IBRltU','.ts','utf-8','1672074nEqXCx','index','exec','.tsx','datasetCode','flatMap','map','.cts','startsWith','9917104crscHR','461726gVOCNO','push','endsWith','.mts','4MTLoOo','source','stringify','flags','filter','1865166HAxggL','.js','.jsx','isFile','22HzDWOp','.cjs','get','tableName','add'];a287_0x3db0=function(){return _0x51586c;};return a287_0x3db0();}(function(_0x205d0c,_0x1458d7){const _0x12eb47=a287_0x2aa9,_0x3a0b24=_0x205d0c();while(!![]){try{const _0x2a3a94=-parseInt(_0x12eb47(0xf9))/0x1*(parseInt(_0x12eb47(0xe4))/0x2)+parseInt(_0x12eb47(0xed))/0x3+parseInt(_0x12eb47(0xe8))/0x4*(parseInt(_0x12eb47(0xf7))/0x5)+-parseInt(_0x12eb47(0x105))/0x6*(parseInt(_0x12eb47(0xf6))/0x7)+-parseInt(_0x12eb47(0xe3))/0x8+parseInt(_0x12eb47(0x102))/0x9+-parseInt(_0x12eb47(0x100))/0xa*(-parseInt(_0x12eb47(0xf1))/0xb);if(_0x2a3a94===_0x1458d7)break;else _0x3a0b24['push'](_0x3a0b24['shift']());}catch(_0x7e0ad1){_0x3a0b24['push'](_0x3a0b24['shift']());}}}(a287_0x3db0,0xa4478));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=[a287_0x2dc0f3(0x103),'.tsx','.mts',a287_0x2dc0f3(0xe1),a287_0x2dc0f3(0xee),a287_0x2dc0f3(0xef),a287_0x2dc0f3(0xfc),a287_0x2dc0f3(0xf2)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts','.tsx'],'.jsx':[a287_0x2dc0f3(0xdd)],'.mjs':[a287_0x2dc0f3(0xe7)],'.cjs':[a287_0x2dc0f3(0xe1)]};function parseApiFile(_0x4d86a8){const _0x62d774=a287_0x2dc0f3;return parseLegacyApiModels(_0x4d86a8)[_0x62d774(0xdf)](_0x5a65c8=>_0x5a65c8[_0x62d774(0xfa)]?[{'alias':_0x5a65c8[_0x62d774(0xfa)],'datasetCode':_0x5a65c8[_0x62d774(0xde)],'tableName':_0x5a65c8[_0x62d774(0xf4)],'name':_0x5a65c8[_0x62d774(0xfe)]}]:[]);}function isWithinRoot(_0x249345,_0x585451){const _0x419913=a287_0x2dc0f3,_0x479d17=relative(_0x249345,_0x585451);return _0x479d17===''||!_0x479d17[_0x419913(0xe2)]('..')&&!isAbsolute(_0x479d17);}function resolveExistingFile(_0x3e5e71){const _0x109a9a=a287_0x2dc0f3;if(!existsSync(_0x3e5e71))return undefined;try{return statSync(_0x3e5e71)[_0x109a9a(0xf0)]()?realpathSync(_0x3e5e71):undefined;}catch{return undefined;}}function a287_0x2aa9(_0x33178c,_0x173662){_0x33178c=_0x33178c-0xdb;const _0x3db096=a287_0x3db0();let _0x2aa991=_0x3db096[_0x33178c];return _0x2aa991;}function reexportCandidatePaths(_0x4e8ff1){const _0x73feb3=a287_0x2dc0f3,_0x311176=extname(_0x4e8ff1);if(!_0x311176)return[...SOURCE_FILE_EXTENSIONS[_0x73feb3(0xe0)](_0x3ae2da=>''+_0x4e8ff1+_0x3ae2da),...SOURCE_FILE_EXTENSIONS['map'](_0x5bd9de=>resolve(_0x4e8ff1,_0x73feb3(0xdb)+_0x5bd9de))];const _0x1579f9=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x311176];if(!_0x1579f9)return[_0x4e8ff1];const _0x50fd41=_0x4e8ff1[_0x73feb3(0xfb)](0x0,-_0x311176['length']);return[..._0x1579f9['map'](_0x1ac8b7=>''+_0x50fd41+_0x1ac8b7),_0x4e8ff1];}function resolveLocalReexport(_0x502699,_0x451b06,_0x140e41){const _0xb8e632=a287_0x2dc0f3;if(!_0x451b06[_0xb8e632(0xe2)]('./')&&!_0x451b06[_0xb8e632(0xe2)](_0xb8e632(0xff)))return undefined;const _0x11febb=resolve(dirname(_0x502699),_0x451b06);if(!isWithinRoot(_0x140e41,_0x11febb))return undefined;for(const _0x52fc66 of reexportCandidatePaths(_0x11febb)){const _0x581a51=resolveExistingFile(_0x52fc66);if(_0x581a51&&isWithinRoot(_0x140e41,_0x581a51))return _0x581a51;}return undefined;}function parseApiFileTree(_0x535d36,_0x3e374d,_0x293363,_0x28a648){const _0x4e658f=a287_0x2dc0f3,_0xce28fa=resolveExistingFile(_0x535d36);if(!_0xce28fa)return[];const _0x1ecd14=_0x293363['get'](_0xce28fa);if(_0x1ecd14!==undefined&&_0x1ecd14<=_0x28a648)return[];_0x293363['set'](_0xce28fa,_0x28a648);const _0x57f9c4=readFileSync(_0xce28fa,_0x4e658f(0x104)),_0x237e94=parseApiFile(_0x57f9c4);if(_0x28a648>=MAX_LOCAL_REEXPORT_DEPTH)return _0x237e94;const _0x42e0ff=new RegExp(LOCAL_REEXPORT_RE[_0x4e658f(0xe9)],LOCAL_REEXPORT_RE[_0x4e658f(0xeb)]);let _0x308954;while((_0x308954=_0x42e0ff[_0x4e658f(0xdc)](_0x57f9c4))!==null){const _0x1b88f9=resolveLocalReexport(_0xce28fa,_0x308954[0x1],_0x3e374d);_0x1b88f9&&_0x237e94[_0x4e658f(0xe5)](...parseApiFileTree(_0x1b88f9,_0x3e374d,_0x293363,_0x28a648+0x1));}return _0x237e94;}function aliasProjectRoot(_0x177172){const _0x573ef8=findProjectRootDirectory(dirname(_0x177172));try{return realpathSync(_0x573ef8);}catch{return _0x573ef8;}}function uniqueAliasEntries(_0x1eadb1){const _0x9b4398=a287_0x2dc0f3,_0x79f1e6=new Set();return _0x1eadb1[_0x9b4398(0xec)](_0x1f76f9=>{const _0x3080f0=_0x9b4398,_0x3da8e0=JSON[_0x3080f0(0xea)](_0x1f76f9);if(_0x79f1e6['has'](_0x3da8e0))return![];return _0x79f1e6[_0x3080f0(0xf5)](_0x3da8e0),!![];});}export function loadAliasMap(_0x52d2bd,_0x116d9b,_0x2971cc,_0x2793d0){const _0x394951=a287_0x2dc0f3,_0x501270=resolve(_0x2971cc??resolve(process['cwd'](),_0x52d2bd,'api.ts')),_0x5329f7=_0x2793d0?_0x501270+'#'+_0x2793d0:_0x501270;if(cache['has'](_0x5329f7))return cache[_0x394951(0xf3)](_0x5329f7);if(!existsSync(_0x501270))return cache[_0x394951(0xf8)](_0x5329f7,[]),[];try{if(_0x501270[_0x394951(0xe6)](MODEL_REGISTRY_FILE_NAME)){const _0x1ee683=readModelRegistry(_0x501270),_0x2de1a8=_0x2793d0??_0x1ee683?.[_0x394951(0x101)],_0x46e749=_0x2de1a8&&_0x1ee683?getProfileModels(_0x1ee683,_0x2de1a8):[],_0x4205ca=uniqueAliasEntries(_0x46e749[_0x394951(0xdf)](_0x2601fc=>_0x2601fc[_0x394951(0xfa)]?[{'alias':_0x2601fc['alias'],'datasetCode':_0x2601fc[_0x394951(0xde)],'tableName':_0x2601fc[_0x394951(0xf4)],'name':_0x2601fc[_0x394951(0xfe)]}]:[]));return cache['set'](_0x5329f7,_0x4205ca),_0x4205ca;}const _0xf71b79=uniqueAliasEntries(parseApiFileTree(_0x501270,aliasProjectRoot(_0x501270),new Map(),0x0));return cache['set'](_0x5329f7,_0xf71b79),_0xf71b79;}catch{return cache['set'](_0x5329f7,[]),[];}}export function resolveAlias(_0x4d1138,_0x2df92f,_0xbf99a,_0x535942,_0x1bae91){const _0xeb8b85=a287_0x2dc0f3;if(!_0x2df92f)return undefined;const _0x383f29=loadAliasMap(_0x4d1138,_0xbf99a,_0x535942,_0x1bae91),_0x6de70=new Set(_0x383f29[_0xeb8b85(0xec)](_0x23b55b=>_0x23b55b['alias']===_0x2df92f)[_0xeb8b85(0xe0)](_0x286d3c=>_0x286d3c['datasetCode']));return _0x6de70[_0xeb8b85(0xfd)]===0x1?[..._0x6de70][0x0]:undefined;}export function listAliases(_0x2ef672,_0x2934b2,_0xcad86e,_0x35584b){return loadAliasMap(_0x2ef672,_0x2934b2,_0xcad86e,_0x35584b);}
1
+ const a287_0x957179=a287_0x45f6;(function(_0x12b7ea,_0x552eb9){const _0x45953e=a287_0x45f6,_0x96f30d=_0x12b7ea();while(!![]){try{const _0x5673eb=-parseInt(_0x45953e(0xc3))/0x1*(parseInt(_0x45953e(0xb6))/0x2)+-parseInt(_0x45953e(0xa9))/0x3*(-parseInt(_0x45953e(0xb9))/0x4)+parseInt(_0x45953e(0xbe))/0x5*(parseInt(_0x45953e(0xb1))/0x6)+parseInt(_0x45953e(0xa5))/0x7*(parseInt(_0x45953e(0xa8))/0x8)+-parseInt(_0x45953e(0xa3))/0x9+parseInt(_0x45953e(0xae))/0xa+-parseInt(_0x45953e(0xaf))/0xb*(-parseInt(_0x45953e(0xb8))/0xc);if(_0x5673eb===_0x552eb9)break;else _0x96f30d['push'](_0x96f30d['shift']());}catch(_0x593549){_0x96f30d['push'](_0x96f30d['shift']());}}}(a287_0x5d29,0xa9436));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_0x957179(0xa0),a287_0x957179(0xc7),a287_0x957179(0xb7),a287_0x957179(0xac),a287_0x957179(0x9f),a287_0x957179(0xc5),a287_0x957179(0xc6)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':[a287_0x957179(0xbf),a287_0x957179(0xa0)],'.jsx':[a287_0x957179(0xa0)],'.mjs':[a287_0x957179(0xc7)],'.cjs':[a287_0x957179(0xb7)]};function parseApiFile(_0x186f11){const _0x1367a9=a287_0x957179;return parseLegacyApiModels(_0x186f11)[_0x1367a9(0xb0)](_0x20d8ac=>_0x20d8ac[_0x1367a9(0xc4)]?[{'alias':_0x20d8ac['alias'],'datasetCode':_0x20d8ac[_0x1367a9(0xc2)],'tableName':_0x20d8ac['tableName'],'name':_0x20d8ac[_0x1367a9(0xa1)]}]:[]);}function isWithinRoot(_0x124e57,_0x5db911){const _0x55912b=a287_0x957179,_0x19438d=relative(_0x124e57,_0x5db911);return _0x19438d===''||!_0x19438d[_0x55912b(0xa4)]('..')&&!isAbsolute(_0x19438d);}function resolveExistingFile(_0x3f8433){if(!existsSync(_0x3f8433))return undefined;try{return statSync(_0x3f8433)['isFile']()?realpathSync(_0x3f8433):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x20ccb5){const _0x10b398=a287_0x957179,_0x45fc3b=extname(_0x20ccb5);if(!_0x45fc3b)return[...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3ed894=>''+_0x20ccb5+_0x3ed894),...SOURCE_FILE_EXTENSIONS[_0x10b398(0xa2)](_0x3c9f00=>resolve(_0x20ccb5,'index'+_0x3c9f00))];const _0x4bb245=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x45fc3b];if(!_0x4bb245)return[_0x20ccb5];const _0x1aca96=_0x20ccb5[_0x10b398(0xad)](0x0,-_0x45fc3b[_0x10b398(0xb5)]);return[..._0x4bb245[_0x10b398(0xa2)](_0x1a6160=>''+_0x1aca96+_0x1a6160),_0x20ccb5];}function resolveLocalReexport(_0x7f02b0,_0xd34697,_0x2893ba){const _0x4394ec=a287_0x957179;if(!_0xd34697[_0x4394ec(0xa4)]('./')&&!_0xd34697[_0x4394ec(0xa4)](_0x4394ec(0xa7)))return undefined;const _0xe10fdd=resolve(dirname(_0x7f02b0),_0xd34697);if(!isWithinRoot(_0x2893ba,_0xe10fdd))return undefined;for(const _0x2f132a of reexportCandidatePaths(_0xe10fdd)){const _0x4e092b=resolveExistingFile(_0x2f132a);if(_0x4e092b&&isWithinRoot(_0x2893ba,_0x4e092b))return _0x4e092b;}return undefined;}function a287_0x45f6(_0x5eb091,_0x266488){_0x5eb091=_0x5eb091-0x9e;const _0x5d29cd=a287_0x5d29();let _0x45f642=_0x5d29cd[_0x5eb091];return _0x45f642;}function parseApiFileTree(_0x23b005,_0x43182c,_0x4e4225,_0x5a6694){const _0x1178d0=a287_0x957179,_0x47bcdb=resolveExistingFile(_0x23b005);if(!_0x47bcdb)return[];const _0x303dbb=_0x4e4225['get'](_0x47bcdb);if(_0x303dbb!==undefined&&_0x303dbb<=_0x5a6694)return[];_0x4e4225[_0x1178d0(0xc1)](_0x47bcdb,_0x5a6694);const _0x569bf4=readFileSync(_0x47bcdb,_0x1178d0(0xbb)),_0x28edf5=parseApiFile(_0x569bf4);if(_0x5a6694>=MAX_LOCAL_REEXPORT_DEPTH)return _0x28edf5;const _0x2cbfcb=new RegExp(LOCAL_REEXPORT_RE[_0x1178d0(0xb4)],LOCAL_REEXPORT_RE[_0x1178d0(0xbc)]);let _0x1795a3;while((_0x1795a3=_0x2cbfcb[_0x1178d0(0xb2)](_0x569bf4))!==null){const _0x4d5634=resolveLocalReexport(_0x47bcdb,_0x1795a3[0x1],_0x43182c);_0x4d5634&&_0x28edf5[_0x1178d0(0xab)](...parseApiFileTree(_0x4d5634,_0x43182c,_0x4e4225,_0x5a6694+0x1));}return _0x28edf5;}function aliasProjectRoot(_0x5dcd39){const _0x4112b0=findProjectRootDirectory(dirname(_0x5dcd39));try{return realpathSync(_0x4112b0);}catch{return _0x4112b0;}}function a287_0x5d29(){const _0x3ccf9a=['alias','.mjs','.cjs','.mts','defaultProfile','.jsx','.tsx','name','map','7483419GCiNFH','startsWith','6026769KmLpPS','endsWith','../','8utWOxJ','9YxWmai','api.ts','push','.js','slice','2335190imGjKb','44LMzNCW','flatMap','28488tIasoX','exec','size','source','length','4wVUaPM','.cts','1810812bueYPf','1202948YRWKUT','stringify','utf-8','flags','tableName','80KDhKBo','.ts','filter','set','datasetCode','575738IDrtZv'];a287_0x5d29=function(){return _0x3ccf9a;};return a287_0x5d29();}function uniqueAliasEntries(_0x4b3ffa){const _0x28a1d2=a287_0x957179,_0x67d68d=new Set();return _0x4b3ffa[_0x28a1d2(0xc0)](_0x12b215=>{const _0x72384=_0x28a1d2,_0x16f240=JSON[_0x72384(0xba)](_0x12b215);if(_0x67d68d['has'](_0x16f240))return![];return _0x67d68d['add'](_0x16f240),!![];});}export function loadAliasMap(_0x811f51,_0x553cb9,_0x1aa788,_0x3baf03){const _0x570397=a287_0x957179,_0x2a2c07=resolve(_0x1aa788??resolve(process['cwd'](),_0x811f51,_0x570397(0xaa))),_0x290567=_0x3baf03?_0x2a2c07+'#'+_0x3baf03:_0x2a2c07;if(cache['has'](_0x290567))return cache['get'](_0x290567);if(!existsSync(_0x2a2c07))return cache[_0x570397(0xc1)](_0x290567,[]),[];try{if(_0x2a2c07[_0x570397(0xa6)](MODEL_REGISTRY_FILE_NAME)){const _0x531903=readModelRegistry(_0x2a2c07),_0x455a64=_0x3baf03??_0x531903?.[_0x570397(0x9e)],_0x2d150d=_0x455a64&&_0x531903?getProfileModels(_0x531903,_0x455a64):[],_0x5553fc=uniqueAliasEntries(_0x2d150d[_0x570397(0xb0)](_0x28b12e=>_0x28b12e[_0x570397(0xc4)]?[{'alias':_0x28b12e[_0x570397(0xc4)],'datasetCode':_0x28b12e[_0x570397(0xc2)],'tableName':_0x28b12e[_0x570397(0xbd)],'name':_0x28b12e[_0x570397(0xa1)]}]:[]));return cache['set'](_0x290567,_0x5553fc),_0x5553fc;}const _0x5e8925=uniqueAliasEntries(parseApiFileTree(_0x2a2c07,aliasProjectRoot(_0x2a2c07),new Map(),0x0));return cache['set'](_0x290567,_0x5e8925),_0x5e8925;}catch{return cache['set'](_0x290567,[]),[];}}export function resolveAlias(_0x327364,_0x41148e,_0x4592e9,_0x52f444,_0x536e25){const _0x149790=a287_0x957179;if(!_0x41148e)return undefined;const _0x39041e=loadAliasMap(_0x327364,_0x4592e9,_0x52f444,_0x536e25),_0xf05a9=new Set(_0x39041e[_0x149790(0xc0)](_0x372bb3=>_0x372bb3[_0x149790(0xc4)]===_0x41148e)[_0x149790(0xa2)](_0x16771c=>_0x16771c['datasetCode']));return _0xf05a9[_0x149790(0xb3)]===0x1?[..._0xf05a9][0x0]:undefined;}export function listAliases(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859){return loadAliasMap(_0x20cc5e,_0x49d79b,_0x58be58,_0x455859);}