@lovrabet/rabetbase-cli 2.5.5 โ†’ 2.5.6-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/cross-db-analysis-shared.d.ts +40 -0
  100. package/lib/commands/db/cross-db-analysis-shared.js +1 -0
  101. package/lib/commands/db/cross-db-analyze-latest.d.ts +2 -0
  102. package/lib/commands/db/cross-db-analyze-latest.js +1 -0
  103. package/lib/commands/db/cross-db-analyze-start.d.ts +2 -0
  104. package/lib/commands/db/cross-db-analyze-start.js +1 -0
  105. package/lib/commands/db/cross-db-analyze-status.d.ts +2 -0
  106. package/lib/commands/db/cross-db-analyze-status.js +1 -0
  107. package/lib/commands/db/delete.js +1 -1
  108. package/lib/commands/db/detail.js +1 -1
  109. package/lib/commands/db/diff-refresh-start.js +1 -1
  110. package/lib/commands/db/diff-refresh-status.js +1 -1
  111. package/lib/commands/db/diff.js +1 -1
  112. package/lib/commands/db/index.js +1 -1
  113. package/lib/commands/db/list.js +1 -1
  114. package/lib/commands/db/shared.js +1 -1
  115. package/lib/commands/db/table-diff-shared.js +1 -1
  116. package/lib/commands/db/tables.js +1 -1
  117. package/lib/commands/db/test.js +1 -1
  118. package/lib/commands/db/update.js +1 -1
  119. package/lib/commands/deployment/index.js +1 -1
  120. package/lib/commands/deployment/sync-all.js +1 -1
  121. package/lib/commands/deployment/sync-jobs.js +1 -1
  122. package/lib/commands/deployment/sync-status.js +1 -1
  123. package/lib/commands/doctor.js +1 -1
  124. package/lib/commands/file/index.js +1 -1
  125. package/lib/commands/flow/create.js +1 -1
  126. package/lib/commands/flow/detail.js +1 -1
  127. package/lib/commands/flow/index.js +1 -1
  128. package/lib/commands/flow/list.js +1 -1
  129. package/lib/commands/flow/publish.js +1 -1
  130. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  131. package/lib/commands/flow/runtime-role-list.js +1 -1
  132. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  133. package/lib/commands/flow/runtime-user-search.js +1 -1
  134. package/lib/commands/flow/shared.js +1 -1
  135. package/lib/commands/flow/update.js +1 -1
  136. package/lib/commands/flow/validate.js +1 -1
  137. package/lib/commands/instant-api-policy/current.js +1 -1
  138. package/lib/commands/instant-api-policy/index.js +1 -1
  139. package/lib/commands/instant-api-policy/init.js +1 -1
  140. package/lib/commands/instant-api-policy/publish.js +1 -1
  141. package/lib/commands/instant-api-policy/pull.js +1 -1
  142. package/lib/commands/instant-api-policy/revision.js +1 -1
  143. package/lib/commands/instant-api-policy/revisions.js +1 -1
  144. package/lib/commands/instant-api-policy/rollback.js +1 -1
  145. package/lib/commands/instant-api-policy/shared.js +1 -1
  146. package/lib/commands/instant-api-policy/validate.js +1 -1
  147. package/lib/commands/issue/index.js +1 -1
  148. package/lib/commands/issue/nudge.js +1 -1
  149. package/lib/commands/issue/report.js +1 -1
  150. package/lib/commands/issue/shared.js +1 -1
  151. package/lib/commands/kb/create.js +1 -1
  152. package/lib/commands/kb/delete.js +1 -1
  153. package/lib/commands/kb/detail.js +1 -1
  154. package/lib/commands/kb/index.js +1 -1
  155. package/lib/commands/kb/list.js +1 -1
  156. package/lib/commands/kb/search.js +1 -1
  157. package/lib/commands/kb/shared.js +1 -1
  158. package/lib/commands/kb/update.js +1 -1
  159. package/lib/commands/logs/index.js +1 -1
  160. package/lib/commands/menu/asset-update.js +1 -1
  161. package/lib/commands/menu/delete.js +1 -1
  162. package/lib/commands/menu/external-link-create.js +1 -1
  163. package/lib/commands/menu/external-link-update.js +1 -1
  164. package/lib/commands/menu/group-create.js +1 -1
  165. package/lib/commands/menu/group-update.js +1 -1
  166. package/lib/commands/menu/index.js +1 -1
  167. package/lib/commands/menu/list.js +1 -1
  168. package/lib/commands/menu/move.js +1 -1
  169. package/lib/commands/menu/regroup-start.js +1 -1
  170. package/lib/commands/menu/rename.js +1 -1
  171. package/lib/commands/menu/shared/compare-table.js +1 -1
  172. package/lib/commands/menu/shared/delete-plan.js +1 -1
  173. package/lib/commands/menu/shared/facts.js +1 -1
  174. package/lib/commands/menu/shared/index.js +1 -1
  175. package/lib/commands/menu/shared/inquirer.js +1 -1
  176. package/lib/commands/menu/shared/local-pages.js +1 -1
  177. package/lib/commands/menu/shared/logic.js +1 -1
  178. package/lib/commands/menu/shared/mutations.js +1 -1
  179. package/lib/commands/menu/shared/path.js +1 -1
  180. package/lib/commands/menu/shared/service.js +1 -1
  181. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  182. package/lib/commands/menu/shared/sync-core.js +1 -1
  183. package/lib/commands/menu/shared/update-core.js +1 -1
  184. package/lib/commands/menu/shared/valid-url.js +1 -1
  185. package/lib/commands/menu/subapp-assets-status.js +1 -1
  186. package/lib/commands/menu/subapp-assets-update.js +1 -1
  187. package/lib/commands/menu/sync.js +1 -1
  188. package/lib/commands/menu/visibility-update.js +1 -1
  189. package/lib/commands/notification/config-create.js +1 -1
  190. package/lib/commands/notification/config-delete.js +1 -1
  191. package/lib/commands/notification/config-list.js +1 -1
  192. package/lib/commands/notification/config-update.js +1 -1
  193. package/lib/commands/notification/index.js +1 -1
  194. package/lib/commands/notification/shared.js +1 -1
  195. package/lib/commands/ocr/index.js +1 -1
  196. package/lib/commands/page/create.js +1 -1
  197. package/lib/commands/page/custom/detail.js +1 -1
  198. package/lib/commands/page/custom/list.js +1 -1
  199. package/lib/commands/page/custom/publish.js +1 -1
  200. package/lib/commands/page/custom/shared.js +1 -1
  201. package/lib/commands/page/custom/syntax.js +1 -1
  202. package/lib/commands/page/custom/update.js +1 -1
  203. package/lib/commands/page/data-list-status.js +1 -1
  204. package/lib/commands/page/generate-start.js +1 -1
  205. package/lib/commands/page/generate-status.js +1 -1
  206. package/lib/commands/page/index.js +1 -1
  207. package/lib/commands/page/pull.js +1 -1
  208. package/lib/commands/page/push.js +1 -1
  209. package/lib/commands/page/relation-audit.js +1 -1
  210. package/lib/commands/page/restore.js +1 -1
  211. package/lib/commands/page/shared.js +1 -1
  212. package/lib/commands/page/sync.js +1 -1
  213. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  214. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  215. package/lib/commands/project/create/format-elapsed.js +1 -1
  216. package/lib/commands/project/create/main.js +1 -1
  217. package/lib/commands/project/create/materialize-project-template.js +1 -1
  218. package/lib/commands/project/create/project-name.js +1 -1
  219. package/lib/commands/project/create/project-template-archive.js +1 -1
  220. package/lib/commands/project/create/project-template-path.js +1 -1
  221. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  222. package/lib/commands/project/create/use-format-code.js +1 -1
  223. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  224. package/lib/commands/project/domain-routing-sync.js +1 -1
  225. package/lib/commands/project/index.js +1 -1
  226. package/lib/commands/project/upgrade.js +1 -1
  227. package/lib/commands/registry.js +1 -1
  228. package/lib/commands/role/delete.js +1 -1
  229. package/lib/commands/role/detail.js +1 -1
  230. package/lib/commands/role/index.js +1 -1
  231. package/lib/commands/role/list.js +1 -1
  232. package/lib/commands/role/shared.js +1 -1
  233. package/lib/commands/role/update.js +1 -1
  234. package/lib/commands/role/user-add.js +1 -1
  235. package/lib/commands/role/user-remove.js +1 -1
  236. package/lib/commands/role/user-resolve.js +1 -1
  237. package/lib/commands/rule/get.js +1 -1
  238. package/lib/commands/rule/index.js +1 -1
  239. package/lib/commands/rule/list.js +1 -1
  240. package/lib/commands/rule/set.js +1 -1
  241. package/lib/commands/rule/shared.js +1 -1
  242. package/lib/commands/run/index.js +1 -1
  243. package/lib/commands/schema.js +1 -1
  244. package/lib/commands/sql/create.js +1 -1
  245. package/lib/commands/sql/delete.js +1 -1
  246. package/lib/commands/sql/detail.js +1 -1
  247. package/lib/commands/sql/exec.js +1 -1
  248. package/lib/commands/sql/index.js +1 -1
  249. package/lib/commands/sql/list.js +1 -1
  250. package/lib/commands/sql/pull.js +1 -1
  251. package/lib/commands/sql/push.js +1 -1
  252. package/lib/commands/sql/shared.js +1 -1
  253. package/lib/commands/sql/status.js +1 -1
  254. package/lib/commands/sql/validate.js +1 -1
  255. package/lib/commands/task/index.js +1 -1
  256. package/lib/commands/task/status.js +1 -1
  257. package/lib/commands/tenant/index.js +1 -1
  258. package/lib/commands/tenant/members-list.js +1 -1
  259. package/lib/commands/tenant/shared.js +1 -1
  260. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  261. package/lib/commands/user-account/feishu-bind.js +1 -1
  262. package/lib/commands/user-account/index.js +1 -1
  263. package/lib/commands/workspace/add.js +1 -1
  264. package/lib/commands/workspace/index.js +1 -1
  265. package/lib/commands/workspace/remove.js +1 -1
  266. package/lib/config/domain-config.js +1 -1
  267. package/lib/config/project-domain-routing.js +1 -1
  268. package/lib/config/region-config.js +1 -1
  269. package/lib/config/schema.js +1 -1
  270. package/lib/constant/cdn.js +1 -1
  271. package/lib/constant/cli.js +1 -1
  272. package/lib/constant/defaults.js +1 -1
  273. package/lib/constant/domain.js +1 -1
  274. package/lib/constant/env.js +1 -1
  275. package/lib/constant/output.js +1 -1
  276. package/lib/constant/paths.js +1 -1
  277. package/lib/constant/region.js +1 -1
  278. package/lib/constant/risk.js +1 -1
  279. package/lib/constant/routing-profile.js +1 -1
  280. package/lib/context/app-resolver.js +1 -1
  281. package/lib/context/auth-resolver.js +1 -1
  282. package/lib/context/config-loader.js +1 -1
  283. package/lib/context.js +1 -1
  284. package/lib/core/alias-resolver.js +1 -1
  285. package/lib/core/api-client.d.ts +7 -0
  286. package/lib/core/api-client.js +1 -1
  287. package/lib/core/bff/config.js +1 -1
  288. package/lib/core/bff/file-system.js +1 -1
  289. package/lib/core/bff/hash.js +1 -1
  290. package/lib/core/bff/hook-directory.js +1 -1
  291. package/lib/core/bff/lock.js +1 -1
  292. package/lib/core/bff/utils.js +1 -1
  293. package/lib/core/cross-db-analysis.d.ts +17 -0
  294. package/lib/core/cross-db-analysis.js +1 -0
  295. package/lib/core/cross-db-relation.js +1 -1
  296. package/lib/core/db-resolver.js +1 -1
  297. package/lib/core/flow-config.js +1 -1
  298. package/lib/core/instant-api-policy/config.js +1 -1
  299. package/lib/core/kb-search-client.js +1 -1
  300. package/lib/core/page/file-system.js +1 -1
  301. package/lib/core/page/hash.js +1 -1
  302. package/lib/core/page/lock.js +1 -1
  303. package/lib/core/page/lr-smart-jsx.js +1 -1
  304. package/lib/core/sql-index-auditor.js +1 -1
  305. package/lib/core/sql-sync/config.js +1 -1
  306. package/lib/core/sql-sync/file-system.js +1 -1
  307. package/lib/core/sql-sync/hash.js +1 -1
  308. package/lib/core/sql-sync/lock.js +1 -1
  309. package/lib/core/sql-sync/utils.js +1 -1
  310. package/lib/core/sql-validator.js +1 -1
  311. package/lib/errors.js +1 -1
  312. package/lib/framework/build-all-flags.js +1 -1
  313. package/lib/framework/error-output.js +1 -1
  314. package/lib/framework/explicit-yes.js +1 -1
  315. package/lib/framework/flags.js +1 -1
  316. package/lib/framework/help.js +1 -1
  317. package/lib/framework/index.js +1 -1
  318. package/lib/framework/output.js +1 -1
  319. package/lib/framework/response.js +1 -1
  320. package/lib/framework/runner-alias.js +1 -1
  321. package/lib/framework/runner.js +1 -1
  322. package/lib/framework/schema-export.js +1 -1
  323. package/lib/framework/supported-flags.js +1 -1
  324. package/lib/framework/types.js +1 -1
  325. package/lib/generated/build-info.d.ts +4 -4
  326. package/lib/generated/build-info.js +1 -1
  327. package/lib/generated/official-routing.js +1 -1
  328. package/lib/generated/routing-contract.js +1 -1
  329. package/lib/help.js +1 -1
  330. package/lib/postinstall.js +1 -1
  331. package/lib/runtime/confirmation.js +1 -1
  332. package/lib/runtime/event.js +1 -1
  333. package/lib/runtime/index.js +1 -1
  334. package/lib/runtime/queue.js +1 -1
  335. package/lib/runtime/resolve.js +1 -1
  336. package/lib/skills/builtin-skill.js +1 -1
  337. package/lib/skills/main.js +1 -1
  338. package/lib/skills/npx-skills-add.js +1 -1
  339. package/lib/skills/skill-presence.js +1 -1
  340. package/lib/telemetry/cli-command-trace.js +1 -1
  341. package/lib/telemetry/cli-help-trace.js +1 -1
  342. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  343. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  344. package/lib/telemetry/send-cli-trace-log.js +1 -1
  345. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  346. package/lib/utils/ai_config.js +1 -1
  347. package/lib/utils/apply-jq-filter.js +1 -1
  348. package/lib/utils/cdn-config.js +1 -1
  349. package/lib/utils/check-sdk-version.js +1 -1
  350. package/lib/utils/cli-version-check.js +1 -1
  351. package/lib/utils/cli-version-policy.js +1 -1
  352. package/lib/utils/config.js +1 -1
  353. package/lib/utils/entity-with-id.js +1 -1
  354. package/lib/utils/file-utils.js +1 -1
  355. package/lib/utils/guides-cdn.js +1 -1
  356. package/lib/utils/http-client.js +1 -1
  357. package/lib/utils/is-non-interactive.js +1 -1
  358. package/lib/utils/logger.js +1 -1
  359. package/lib/utils/params.js +1 -1
  360. package/lib/utils/platform.js +1 -1
  361. package/lib/utils/sleep.js +1 -1
  362. package/lib/utils/template-replacer.js +1 -1
  363. package/lib/utils/update-notice.js +1 -1
  364. package/lib/utils/version.js +1 -1
  365. package/lib/utils/with-active-cookie.js +1 -1
  366. package/lib/utils/write-cli-side-channel.js +1 -1
  367. package/package.json +1 -1
  368. package/skills/rabetbase/SKILL.md +6 -4
  369. package/skills/rabetbase/guides/database-connection-workflow.md +12 -3
  370. package/skills/rabetbase/guides/independent-deployment.md +10 -2
  371. package/skills/rabetbase/references/rabetbase-dataset-cross-relations.md +2 -0
  372. package/skills/rabetbase/references/rabetbase-db-analyze.md +2 -0
  373. package/skills/rabetbase/references/rabetbase-db-cross-analyze.md +78 -0
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +4 -3
@@ -1 +1 @@
1
- const a0_0x452c40=a0_0x183c;(function(_0x1a27d2,_0x547a88){const _0x1ca605=a0_0x183c,_0x12ce99=_0x1a27d2();while(!![]){try{const _0x40b3c1=parseInt(_0x1ca605(0xd5))/0x1+parseInt(_0x1ca605(0xc9))/0x2+-parseInt(_0x1ca605(0xda))/0x3*(-parseInt(_0x1ca605(0xc3))/0x4)+parseInt(_0x1ca605(0xd9))/0x5+parseInt(_0x1ca605(0xcc))/0x6+-parseInt(_0x1ca605(0xd1))/0x7+-parseInt(_0x1ca605(0xd0))/0x8;if(_0x40b3c1===_0x547a88)break;else _0x12ce99['push'](_0x12ce99['shift']());}catch(_0x40c11b){_0x12ce99['push'](_0x12ce99['shift']());}}}(a0_0x2393,0xada67));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x296ebb from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x56d2ca){return new Promise(_0x532e94=>setTimeout(_0x532e94,_0x56d2ca));}export async function generateDatasetDocs(_0x5593cf,_0x427672,_0x45dd0d,_0x4d8700=a0_0x452c40(0xd4),_0x56a21a,_0x34570e){const _0x2c06e8=a0_0x452c40;mkdirSync(_0x4d8700,{'recursive':!![]});const _0x267f23=[],_0x5b86b0=_0x5593cf[_0x2c06e8(0xce)];console[_0x2c06e8(0xcb)]('\x0a'+_0x5b86b0+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x40bd3b=0x0;_0x40bd3b<_0x5593cf[_0x2c06e8(0xce)];_0x40bd3b++){const _0x2548bb=_0x5593cf[_0x40bd3b],_0x33a12f=_0x40bd3b+0x1,_0x2e8f83=_0x2548bb[_0x2c06e8(0xca)];try{console[_0x2c06e8(0xcb)]('['+_0x33a12f+'/'+_0x5b86b0+_0x2c06e8(0xd6)+_0x2e8f83+'.md\x20('+_0x2548bb[_0x2c06e8(0xd7)]+')');if(_0x56a21a)_0x56a21a(_0x33a12f,_0x5b86b0,_0x2e8f83);const _0x466f69=await fetchDatasetDoc({'appCode':_0x427672,'cookie':_0x45dd0d,'datasetCode':_0x2548bb[_0x2c06e8(0xcf)],'datasetId':_0x2548bb['id'],'enableAI':![],'extraParams':_0x34570e}),_0xbff2dc=a0_0x296ebb[_0x2c06e8(0xd3)](_0x4d8700,_0x2e8f83+_0x2c06e8(0xd8));writeFileSync(_0xbff2dc,_0x466f69,{'encoding':'utf8'}),console[_0x2c06e8(0xcb)]('โœ“\x20Generated:\x20'+_0x2e8f83+_0x2c06e8(0xd8)),logger[_0x2c06e8(0xcd)]('api-doc',_0x2c06e8(0xc5)+_0x2e8f83,undefined,{'datasetCode':_0x2548bb[_0x2c06e8(0xcf)],'datasetName':_0x2548bb[_0x2c06e8(0xd7)],'filePath':_0xbff2dc,'progress':_0x33a12f+'/'+_0x5b86b0}),_0x267f23['push']({'datasetCode':_0x2548bb[_0x2c06e8(0xcf)],'datasetName':_0x2548bb['name'],'filePath':_0xbff2dc,'success':!![]});if(_0x33a12f<_0x5b86b0)await delay(0x1388);}catch(_0x4bf4b1){const _0x5f1ac1=_0x4bf4b1 instanceof Error?_0x4bf4b1['message']:String(_0x4bf4b1);console['log'](_0x2c06e8(0xd2)+_0x2e8f83+_0x2c06e8(0xc8)+_0x5f1ac1),logger[_0x2c06e8(0xdb)](_0x2c06e8(0xc6),_0x2c06e8(0xc7)+_0x2548bb[_0x2c06e8(0xcf)],{'datasetCode':_0x2548bb[_0x2c06e8(0xcf)],'datasetName':_0x2548bb['name'],'error':_0x5f1ac1,'progress':_0x33a12f+'/'+_0x5b86b0}),_0x267f23['push']({'datasetCode':_0x2548bb[_0x2c06e8(0xcf)],'datasetName':_0x2548bb[_0x2c06e8(0xd7)],'filePath':'','success':![],'error':_0x5f1ac1}),_0x33a12f<_0x5b86b0&&(console[_0x2c06e8(0xcb)](_0x2c06e8(0xc4)),await delay(0xbb8));}}return _0x267f23;}function a0_0x183c(_0x477131,_0x386e56){_0x477131=_0x477131-0xc3;const _0x2393b3=a0_0x2393();let _0x183c42=_0x2393b3[_0x477131];return _0x183c42;}function a0_0x2393(){const _0x242d1a=['2030635kuOIAC','12rwBIlS','error','1246708VUGtxW','Waiting\x203\x20seconds...\x0a','Generated\x20docs\x20successfully:\x20','api-doc','Failed\x20to\x20generate\x20docs:\x20','.md\x20-\x20','503014fpqQfC','tableName','log','780522VSKbve','success','length','datasetCode','4380664kuWmDQ','6924876QCWCgD','โœ—\x20Failed:\x20','join','./docs','213693ZXecRc',']\x20Generating:\x20','name','.md'];a0_0x2393=function(){return _0x242d1a;};return a0_0x2393();}
1
+ const a0_0x3538cb=a0_0x4931;(function(_0x20a760,_0xc233fa){const _0x153e2f=a0_0x4931,_0x5cef86=_0x20a760();while(!![]){try{const _0x1598c1=-parseInt(_0x153e2f(0x163))/0x1+parseInt(_0x153e2f(0x15d))/0x2+-parseInt(_0x153e2f(0x15b))/0x3+-parseInt(_0x153e2f(0x16c))/0x4+-parseInt(_0x153e2f(0x15e))/0x5+-parseInt(_0x153e2f(0x161))/0x6*(-parseInt(_0x153e2f(0x170))/0x7)+parseInt(_0x153e2f(0x167))/0x8;if(_0x1598c1===_0xc233fa)break;else _0x5cef86['push'](_0x5cef86['shift']());}catch(_0x2c48e6){_0x5cef86['push'](_0x5cef86['shift']());}}}(a0_0x5f13,0x26aa3));function a0_0x5f13(){const _0x390ada=['utf8','error','Waiting\x203\x20seconds...\x0a','length','357702ggClHy','success','501444FTzNgW','100250ijuTPg','โœ—\x20Failed:\x20',']\x20Generating:\x20','6yKxRHv','api-doc','11181XrjAUC','join','log','Generated\x20docs\x20successfully:\x20','169768DbOyrZ','โœ“\x20Generated:\x20','tableName','name','.md\x20(','1084064ioSZQb','push','.md\x20-\x20','message','2155363aJSmJn','datasetCode','./docs','.md'];a0_0x5f13=function(){return _0x390ada;};return a0_0x5f13();}function a0_0x4931(_0x21301b,_0xbb4bac){_0x21301b=_0x21301b-0x159;const _0x5f1393=a0_0x5f13();let _0x49316d=_0x5f1393[_0x21301b];return _0x49316d;}import{mkdirSync,writeFileSync}from'node:fs';import a0_0x34a6b7 from'node:path';import{fetchDatasetDoc}from'../core/api-client.js';import{logger}from'../utils/logger.js';export{fetchDatasetDoc}from'../core/api-client.js';function delay(_0x3aeb6a){return new Promise(_0x54ca55=>setTimeout(_0x54ca55,_0x3aeb6a));}export async function generateDatasetDocs(_0x2efa79,_0x473316,_0x4551fd,_0x738d38=a0_0x3538cb(0x172),_0x173617,_0x13e255){const _0x3b9a3e=a0_0x3538cb;mkdirSync(_0x738d38,{'recursive':!![]});const _0x46e4c9=[],_0xbf92eb=_0x2efa79[_0x3b9a3e(0x15a)];console[_0x3b9a3e(0x165)]('\x0a'+_0xbf92eb+'\x20datasets\x20to\x20generate\x20docs\x20for\x0a');for(let _0x6c6511=0x0;_0x6c6511<_0x2efa79[_0x3b9a3e(0x15a)];_0x6c6511++){const _0x3c28d9=_0x2efa79[_0x6c6511],_0x4c0332=_0x6c6511+0x1,_0x1a178e=_0x3c28d9[_0x3b9a3e(0x169)];try{console[_0x3b9a3e(0x165)]('['+_0x4c0332+'/'+_0xbf92eb+_0x3b9a3e(0x160)+_0x1a178e+_0x3b9a3e(0x16b)+_0x3c28d9[_0x3b9a3e(0x16a)]+')');if(_0x173617)_0x173617(_0x4c0332,_0xbf92eb,_0x1a178e);const _0x1c2456=await fetchDatasetDoc({'appCode':_0x473316,'cookie':_0x4551fd,'datasetCode':_0x3c28d9[_0x3b9a3e(0x171)],'datasetId':_0x3c28d9['id'],'enableAI':![],'extraParams':_0x13e255}),_0x1c9fab=a0_0x34a6b7[_0x3b9a3e(0x164)](_0x738d38,_0x1a178e+_0x3b9a3e(0x173));writeFileSync(_0x1c9fab,_0x1c2456,{'encoding':_0x3b9a3e(0x174)}),console['log'](_0x3b9a3e(0x168)+_0x1a178e+_0x3b9a3e(0x173)),logger[_0x3b9a3e(0x15c)]('api-doc',_0x3b9a3e(0x166)+_0x1a178e,undefined,{'datasetCode':_0x3c28d9[_0x3b9a3e(0x171)],'datasetName':_0x3c28d9[_0x3b9a3e(0x16a)],'filePath':_0x1c9fab,'progress':_0x4c0332+'/'+_0xbf92eb}),_0x46e4c9[_0x3b9a3e(0x16d)]({'datasetCode':_0x3c28d9[_0x3b9a3e(0x171)],'datasetName':_0x3c28d9[_0x3b9a3e(0x16a)],'filePath':_0x1c9fab,'success':!![]});if(_0x4c0332<_0xbf92eb)await delay(0x1388);}catch(_0xb53119){const _0x2d594b=_0xb53119 instanceof Error?_0xb53119[_0x3b9a3e(0x16f)]:String(_0xb53119);console[_0x3b9a3e(0x165)](_0x3b9a3e(0x15f)+_0x1a178e+_0x3b9a3e(0x16e)+_0x2d594b),logger[_0x3b9a3e(0x175)](_0x3b9a3e(0x162),'Failed\x20to\x20generate\x20docs:\x20'+_0x3c28d9[_0x3b9a3e(0x171)],{'datasetCode':_0x3c28d9[_0x3b9a3e(0x171)],'datasetName':_0x3c28d9[_0x3b9a3e(0x16a)],'error':_0x2d594b,'progress':_0x4c0332+'/'+_0xbf92eb}),_0x46e4c9[_0x3b9a3e(0x16d)]({'datasetCode':_0x3c28d9[_0x3b9a3e(0x171)],'datasetName':_0x3c28d9[_0x3b9a3e(0x16a)],'filePath':'','success':![],'error':_0x2d594b}),_0x4c0332<_0xbf92eb&&(console[_0x3b9a3e(0x165)](_0x3b9a3e(0x159)),await delay(0xbb8));}}return _0x46e4c9;}
@@ -1 +1 @@
1
- function a1_0x4550(_0x2d7b5c,_0x2cdb1d){_0x2d7b5c=_0x2d7b5c-0x1ac;const _0x415ab6=a1_0x415a();let _0x4550f6=_0x415ab6[_0x2d7b5c];return _0x4550f6;}const a1_0x21b54d=a1_0x4550;function a1_0x415a(){const _0x451506=['1386321JPygao','push','values','get','set','filter','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','4yHHMRV','5868540axFuso','outputDir','4499628shrSNn','cwd','1363776sWyCCz','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','trim','some','API\x20directory\x20\x22','join','apiGroup','name','app','1905916mtNmxW','40636408NZiEpB','API\x20group\x20\x22','map','3364172RTUGHe','normalizedApiDir','validation','size','resolve','add'];a1_0x415a=function(){return _0x451506;};return a1_0x415a();}(function(_0x56c685,_0x51ba80){const _0x7cc637=a1_0x4550,_0x3b683e=_0x56c685();while(!![]){try{const _0xa0f5a6=-parseInt(_0x7cc637(0x1b5))/0x1+parseInt(_0x7cc637(0x1b0))/0x2*(-parseInt(_0x7cc637(0x1c9))/0x3)+parseInt(_0x7cc637(0x1bf))/0x4+-parseInt(_0x7cc637(0x1b1))/0x5+-parseInt(_0x7cc637(0x1b3))/0x6+-parseInt(_0x7cc637(0x1c3))/0x7+parseInt(_0x7cc637(0x1c0))/0x8;if(_0xa0f5a6===_0x51ba80)break;else _0x3b683e['push'](_0x3b683e['shift']());}catch(_0x5fefb9){_0x3b683e['push'](_0x3b683e['shift']());}}}(a1_0x415a,0xd2e36));import a1_0x3d54f1 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x995ddf,_0x4acc3e=process['cwd']()){const _0x3589d3=a1_0x4550;return a1_0x3d54f1[_0x3589d3(0x1c7)](_0x4acc3e,_0x995ddf);}function normalizedApiGroup(_0x5adc6d){const _0x81d7cc=a1_0x4550,_0x18cd9e=_0x5adc6d?.[_0x81d7cc(0x1b8)]();return _0x18cd9e||undefined;}export function resolveApiProfileLayouts(_0x3a5cfa,_0x29cc5c,_0x585c82=process[a1_0x21b54d(0x1b4)]()){const _0x1c30a8=a1_0x21b54d,_0xd5b201=_0x3a5cfa[_0x1c30a8(0x1c2)](_0x3d6695=>{const _0x9407bd=_0x1c30a8,_0x20cbfa=_0x29cc5c(_0x3d6695);return{'app':_0x3d6695,'outputDir':_0x20cbfa,'normalizedApiDir':normalizeApiDir(_0x20cbfa,_0x585c82),'apiGroup':normalizedApiGroup(_0x3d6695[_0x9407bd(0x1bc)])};}),_0x54b6ac=new Map();for(const _0x17a206 of _0xd5b201){if(!_0x17a206['apiGroup'])continue;const _0x3d972d=_0x54b6ac[_0x1c30a8(0x1ac)](_0x17a206['apiGroup'])??new Set();_0x3d972d[_0x1c30a8(0x1c8)](_0x17a206[_0x1c30a8(0x1c4)]),_0x54b6ac[_0x1c30a8(0x1ad)](_0x17a206[_0x1c30a8(0x1bc)],_0x3d972d);}for(const [_0x2d74ef,_0x359685]of _0x54b6ac){if(_0x359685[_0x1c30a8(0x1c6)]>0x1)throw CliErrors['validation'](_0x1c30a8(0x1c1)+_0x2d74ef+'\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.');}const _0x17297a=new Map();for(const _0x1bf15d of _0xd5b201){const _0x4a551b=_0x17297a[_0x1c30a8(0x1ac)](_0x1bf15d[_0x1c30a8(0x1c4)])??[];_0x4a551b[_0x1c30a8(0x1ca)](_0x1bf15d),_0x17297a[_0x1c30a8(0x1ad)](_0x1bf15d[_0x1c30a8(0x1c4)],_0x4a551b);}for(const _0x574120 of _0x17297a[_0x1c30a8(0x1cb)]()){const _0x1365b0=new Set(_0x574120['flatMap'](_0x2d485f=>_0x2d485f['apiGroup']?[_0x2d485f[_0x1c30a8(0x1bc)]]:[]));if(_0x1365b0['size']===0x0)continue;if(_0x1365b0['size']>0x1||_0x574120[_0x1c30a8(0x1b9)](_0x3673f5=>!_0x3673f5[_0x1c30a8(0x1bc)])){const _0x45cf73=_0x574120[_0x1c30a8(0x1c2)](_0x4abf09=>_0x4abf09[_0x1c30a8(0x1be)][_0x1c30a8(0x1bd)])[_0x1c30a8(0x1bb)](',\x20');throw CliErrors[_0x1c30a8(0x1c5)](_0x1c30a8(0x1ba)+_0x574120[0x0][_0x1c30a8(0x1b2)]+_0x1c30a8(0x1b6),_0x1c30a8(0x1af)+_0x45cf73+_0x1c30a8(0x1b7));}}return _0xd5b201;}export function getRegistryGroup(_0x3fe702,_0x4a50a9){const _0x4aedc1=a1_0x21b54d;if(_0x4a50a9[_0x4aedc1(0x1bc)])return _0x3fe702['filter'](_0x43edd0=>_0x43edd0[_0x4aedc1(0x1bc)]===_0x4a50a9[_0x4aedc1(0x1bc)]);const _0x14d962=_0x3fe702[_0x4aedc1(0x1ae)](_0x5cff28=>_0x5cff28[_0x4aedc1(0x1c4)]===_0x4a50a9['normalizedApiDir']);return _0x14d962['length']===0x1?_0x14d962:undefined;}
1
+ const a1_0x212c2d=a1_0x41df;function a1_0x41df(_0x586d24,_0xa80a2d){_0x586d24=_0x586d24-0x77;const _0x3f5ca6=a1_0x3f5c();let _0x41df49=_0x3f5ca6[_0x586d24];return _0x41df49;}(function(_0x40ec3c,_0x202aaf){const _0x4f08c5=a1_0x41df,_0x1c22b2=_0x40ec3c();while(!![]){try{const _0x3702a9=-parseInt(_0x4f08c5(0x98))/0x1+-parseInt(_0x4f08c5(0x91))/0x2+-parseInt(_0x4f08c5(0x79))/0x3+parseInt(_0x4f08c5(0x9a))/0x4+parseInt(_0x4f08c5(0x94))/0x5*(parseInt(_0x4f08c5(0x87))/0x6)+-parseInt(_0x4f08c5(0x88))/0x7*(-parseInt(_0x4f08c5(0x8c))/0x8)+-parseInt(_0x4f08c5(0x7e))/0x9*(-parseInt(_0x4f08c5(0x8b))/0xa);if(_0x3702a9===_0x202aaf)break;else _0x1c22b2['push'](_0x1c22b2['shift']());}catch(_0x3426){_0x1c22b2['push'](_0x1c22b2['shift']());}}}(a1_0x3f5c,0x76d84));function a1_0x3f5c(){const _0x232574=['some','.\x20Use\x20a\x20different\x20apiDir\x20for\x20a\x20separate\x20API.','API\x20group\x20\x22','outputDir','apiGroup','add','filter','7818rZflfs','7xnDxBg','map','\x22\x20resolves\x20to\x20multiple\x20API\x20directories.','10mMSPLL','1955768EbUwUc','\x22\x20is\x20assigned\x20to\x20incompatible\x20API\x20groups.','join','resolve','API\x20directory\x20\x22','968776aaauLR','cwd','flatMap','1965riebYB','trim','size','set','223522BudJxq','validation','882984WWHaVY','app','Profiles\x20in\x20the\x20same\x20API\x20group\x20must\x20use\x20the\x20same\x20apiDir.','347607qerXsM','values','normalizedApiDir','Profiles\x20sharing\x20one\x20apiDir\x20must\x20use\x20the\x20same\x20explicit\x20apiGroup.\x20Conflicting\x20profiles:\x20','get','2999439EsgHbp','push'];a1_0x3f5c=function(){return _0x232574;};return a1_0x3f5c();}import a1_0x59e530 from'node:path';import{CliErrors}from'../errors.js';export function normalizeApiDir(_0x5f11da,_0x2bcde3=process[a1_0x212c2d(0x92)]()){const _0x563eaa=a1_0x212c2d;return a1_0x59e530[_0x563eaa(0x8f)](_0x2bcde3,_0x5f11da);}function normalizedApiGroup(_0x267257){const _0x10a503=a1_0x212c2d,_0x30a1dd=_0x267257?.[_0x10a503(0x95)]();return _0x30a1dd||undefined;}export function resolveApiProfileLayouts(_0x4935e9,_0x6c455f,_0x52b9a9=process[a1_0x212c2d(0x92)]()){const _0x7c110f=a1_0x212c2d,_0x19ac00=_0x4935e9['map'](_0x152548=>{const _0x3b72a1=_0x6c455f(_0x152548);return{'app':_0x152548,'outputDir':_0x3b72a1,'normalizedApiDir':normalizeApiDir(_0x3b72a1,_0x52b9a9),'apiGroup':normalizedApiGroup(_0x152548['apiGroup'])};}),_0xb24559=new Map();for(const _0x458610 of _0x19ac00){if(!_0x458610[_0x7c110f(0x84)])continue;const _0x4204e5=_0xb24559[_0x7c110f(0x7d)](_0x458610[_0x7c110f(0x84)])??new Set();_0x4204e5[_0x7c110f(0x85)](_0x458610['normalizedApiDir']),_0xb24559[_0x7c110f(0x97)](_0x458610['apiGroup'],_0x4204e5);}for(const [_0xd17c17,_0x28809f]of _0xb24559){if(_0x28809f[_0x7c110f(0x96)]>0x1)throw CliErrors[_0x7c110f(0x99)](_0x7c110f(0x82)+_0xd17c17+_0x7c110f(0x8a),_0x7c110f(0x78));}const _0x4b67b3=new Map();for(const _0x239373 of _0x19ac00){const _0x1472ee=_0x4b67b3['get'](_0x239373['normalizedApiDir'])??[];_0x1472ee[_0x7c110f(0x7f)](_0x239373),_0x4b67b3[_0x7c110f(0x97)](_0x239373['normalizedApiDir'],_0x1472ee);}for(const _0x9c7319 of _0x4b67b3[_0x7c110f(0x7a)]()){const _0x208faa=new Set(_0x9c7319[_0x7c110f(0x93)](_0x1f7269=>_0x1f7269[_0x7c110f(0x84)]?[_0x1f7269[_0x7c110f(0x84)]]:[]));if(_0x208faa[_0x7c110f(0x96)]===0x0)continue;if(_0x208faa['size']>0x1||_0x9c7319[_0x7c110f(0x80)](_0x4181db=>!_0x4181db[_0x7c110f(0x84)])){const _0x499b72=_0x9c7319[_0x7c110f(0x89)](_0x7c7477=>_0x7c7477[_0x7c110f(0x77)]['name'])[_0x7c110f(0x8e)](',\x20');throw CliErrors[_0x7c110f(0x99)](_0x7c110f(0x90)+_0x9c7319[0x0][_0x7c110f(0x83)]+_0x7c110f(0x8d),_0x7c110f(0x7c)+_0x499b72+_0x7c110f(0x81));}}return _0x19ac00;}export function getRegistryGroup(_0x479239,_0x5c024f){const _0x14e893=a1_0x212c2d;if(_0x5c024f['apiGroup'])return _0x479239[_0x14e893(0x86)](_0xa717d1=>_0xa717d1[_0x14e893(0x84)]===_0x5c024f[_0x14e893(0x84)]);const _0x5399b6=_0x479239[_0x14e893(0x86)](_0x39c331=>_0x39c331[_0x14e893(0x7b)]===_0x5c024f[_0x14e893(0x7b)]);return _0x5399b6['length']===0x1?_0x5399b6:undefined;}
@@ -1 +1 @@
1
- function a2_0x1955(_0x21df15,_0x545583){_0x21df15=_0x21df15-0x166;var _0x586f97=a2_0x586f();var _0x1955b6=_0x586f97[_0x21df15];return _0x1955b6;}function a2_0x586f(){var _0x22ba8b=['281790XMZJzP','460UlTJiM','986070Qwvdqg','438112yfoBES','6jBFsGP','2295015ySZath','42xxfZqm','660363rQKtkU','180wJhpbz','12yHryEO','676776UzlOkB','12521280snScuF'];a2_0x586f=function(){return _0x22ba8b;};return a2_0x586f();}(function(_0x3f91cc,_0x28bdc7){var _0x408c08=a2_0x1955,_0x4ff9fe=_0x3f91cc();while(!![]){try{var _0x41bcac=-parseInt(_0x408c08(0x166))/0x1*(parseInt(_0x408c08(0x171))/0x2)+parseInt(_0x408c08(0x170))/0x3*(-parseInt(_0x408c08(0x16b))/0x4)+parseInt(_0x408c08(0x167))/0x5+-parseInt(_0x408c08(0x16c))/0x6*(-parseInt(_0x408c08(0x168))/0x7)+parseInt(_0x408c08(0x16d))/0x8+-parseInt(_0x408c08(0x16e))/0x9*(-parseInt(_0x408c08(0x16f))/0xa)+parseInt(_0x408c08(0x169))/0xb*(-parseInt(_0x408c08(0x16a))/0xc);if(_0x41bcac===_0x28bdc7)break;else _0x4ff9fe['push'](_0x4ff9fe['shift']());}catch(_0x53d9f8){_0x4ff9fe['push'](_0x4ff9fe['shift']());}}}(a2_0x586f,0xe590a));export{fetchModelList}from'../core/api-client.js';
1
+ function a2_0x1a57(_0x365a26,_0x5367d3){_0x365a26=_0x365a26-0x198;var _0x447a1a=a2_0x447a();var _0x1a5760=_0x447a1a[_0x365a26];return _0x1a5760;}(function(_0x58212f,_0x100047){var _0x2042ee=a2_0x1a57,_0x3f874d=_0x58212f();while(!![]){try{var _0x1b4370=parseInt(_0x2042ee(0x1a1))/0x1+parseInt(_0x2042ee(0x19b))/0x2*(parseInt(_0x2042ee(0x19c))/0x3)+parseInt(_0x2042ee(0x198))/0x4+parseInt(_0x2042ee(0x19d))/0x5*(-parseInt(_0x2042ee(0x199))/0x6)+-parseInt(_0x2042ee(0x19f))/0x7*(parseInt(_0x2042ee(0x1a0))/0x8)+-parseInt(_0x2042ee(0x1a3))/0x9*(-parseInt(_0x2042ee(0x19e))/0xa)+-parseInt(_0x2042ee(0x19a))/0xb*(parseInt(_0x2042ee(0x1a2))/0xc);if(_0x1b4370===_0x100047)break;else _0x3f874d['push'](_0x3f874d['shift']());}catch(_0x5072e3){_0x3f874d['push'](_0x3f874d['shift']());}}}(a2_0x447a,0xd1c7d));export{fetchModelList}from'../core/api-client.js';function a2_0x447a(){var _0x17955b=['2554659WURxCu','4101908hUcvKZ','388398MriWBX','788403WDIoYF','2WsCFhJ','3661989OQPfXW','125KEWpWM','20hsFwPH','210889PneTHm','120mmRIkc','258995bcpAeF','24aypdti'];a2_0x447a=function(){return _0x17955b;};return a2_0x447a();}
@@ -1 +1 @@
1
- (function(_0x5e5221,_0x54e168){const _0xd6b031=a3_0x472c,_0xa9ba0a=_0x5e5221();while(!![]){try{const _0x2ae309=parseInt(_0xd6b031(0x115))/0x1*(-parseInt(_0xd6b031(0x120))/0x2)+parseInt(_0xd6b031(0x119))/0x3*(-parseInt(_0xd6b031(0x135))/0x4)+-parseInt(_0xd6b031(0x12e))/0x5+-parseInt(_0xd6b031(0x12d))/0x6+parseInt(_0xd6b031(0x144))/0x7+-parseInt(_0xd6b031(0x13e))/0x8+parseInt(_0xd6b031(0x118))/0x9*(parseInt(_0xd6b031(0x142))/0xa);if(_0x2ae309===_0x54e168)break;else _0xa9ba0a['push'](_0xa9ba0a['shift']());}catch(_0x1c16c7){_0xa9ba0a['push'](_0xa9ba0a['shift']());}}}(a3_0x1165,0xc699a));import a3_0x1bae81 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x56bbf3 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';function a3_0x472c(_0x4a4984,_0x526fef){_0x4a4984=_0x4a4984-0x110;const _0x116500=a3_0x1165();let _0x472ce3=_0x116500[_0x4a4984];return _0x472ce3;}import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';function a3_0x1165(){const _0x49cb73=['\x20config\x20set\x20app\x20<value>`','action','12CyIjSu','success','format','991422oluxBu','2348337uifZoJ','../..','.ts','templates/generate-api','typescript','none','LOVRABET','262208TlDhdn','datasetCode','missing','client.ts.tpl','includes','tableName','dirname','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','APP_','join','overwriteTypescript','basename','stringify','3844686uNYyzs','1151525vyBpRT','API\x20scaffold\x20written.','utf8','Please\x20configure\x20app\x20code\x20first\x20via\x20`','replace','existed','scaffoldMode','4CuWgUz','refreshed','modelRuntime','alias','CONFIG_NAMES.DEFAULT','overwritten','init-api','api','path','4525328YKcfoJ','toUpperCase',',\x20env:\x20','replaceApiContent','380pvivYq','LOVRABET_RUNTIME_DOMAIN','2941687gVkQbE','runtimeDomain','map','modelProfile','-api','client','preserved','name'];a3_0x1165=function(){return _0x49cb73;};return a3_0x1165();}import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0x355df9,_0x138cad){const _0x3abfe1=a3_0x472c;if(!_0x138cad)return _0x355df9?_0x3abfe1(0x111):_0x3abfe1(0x122);return _0x355df9?_0x3abfe1(0x13a):'created';}export async function generateApiFile(_0x2454a1,_0x2b4b2f,_0x32ba98,_0x51f7a0,_0x399f25,_0x473712,_0x26ab0d,_0x414dde={},_0x116448={}){const _0x4e414a=a3_0x472c;if(!_0x32ba98)throw new Error(_0x4e414a(0x131)+CLI_BIN_NAME+_0x4e414a(0x113));const _0x143bd9=_0x51f7a0&&!_0x26ab0d,_0x14c346=!!_0x116448[_0x4e414a(0x147)],_0x8aa5f3=_0x14c346||_0x143bd9,_0x2eba2e=_0x26ab0d||_0x32ba98,_0x461907=_0x14c346||_0x143bd9?'default':_0x2eba2e,_0x21afa5=_0x14c346||_0x143bd9?_0x4e414a(0x139):JSON[_0x4e414a(0x12c)](_0x2eba2e),_0x367552=!isProduction(_0x399f25),_0x59d0ea=_0x367552?_0x4e414a(0x140)+JSON['stringify'](_0x399f25):'',_0x5db48e='{\x20apiConfigName:\x20'+_0x21afa5+_0x59d0ea+',\x20...LOVRABET_SDK_CONFIG\x20}',_0x250072=_0x14c346?'':_0x2b4b2f,_0x1f6773=_0x250072?_0x250072+_0x4e414a(0x148):_0x4e414a(0x13c),_0x2d910c=_0x250072?_0x250072+'-client':'client',_0x3575f2=_0x250072&&!/^app-[a-f0-9]+$/i['test'](_0x250072)?_0x250072[_0x4e414a(0x132)](/-/g,'_')[_0x4e414a(0x13f)]():_0x4e414a(0x11f),_0x322ac3=/^\d/['test'](_0x3575f2)?_0x4e414a(0x128)+_0x3575f2:_0x3575f2,_0x2792aa=_0x2454a1[_0x4e414a(0x146)](_0x4e6ef9=>({'datasetCode':_0x4e6ef9[_0x4e414a(0x121)],'tableName':_0x4e6ef9[_0x4e414a(0x125)],'name':_0x4e6ef9[_0x4e414a(0x112)]||'','alias':_0x4e6ef9[_0x4e414a(0x138)]||_0x4e6ef9['key']})),_0x56a469=fileURLToPath(import.meta.url),_0x655b45=a3_0x56bbf3['resolve'](a3_0x56bbf3[_0x4e414a(0x126)](_0x56a469),_0x4e414a(0x11a)),_0x1e9a9f=a3_0x56bbf3['join'](_0x655b45,_0x4e414a(0x11c)),_0x31894d=a3_0x56bbf3[_0x4e414a(0x129)](_0x1e9a9f,'api.ts.tpl'),_0x13da43=a3_0x56bbf3['join'](_0x1e9a9f,_0x4e414a(0x123)),_0x493550=_0x473712;mkdirSync(_0x493550,{'recursive':!![]});const _0x5dfaf=_0x14c346?{}:_0x414dde,_0x197915=await generateSdkConfigFile(_0x493550,_0x5dfaf,_0x250072),_0x20c70f=a3_0x56bbf3[_0x4e414a(0x12b)](_0x197915,'.ts'),_0x561946=a3_0x56bbf3[_0x4e414a(0x129)](_0x493550,_0x1f6773+'.ts'),_0x27ff1d=a3_0x56bbf3[_0x4e414a(0x129)](_0x493550,_0x2d910c+'.ts'),_0x4d8301=_0x116448[_0x4e414a(0x12a)]===!![],_0x28deed=existsSync(_0x561946),_0x140fe3=existsSync(_0x27ff1d),_0x4710be=_0x116448[_0x4e414a(0x134)]??(_0x4d8301?_0x4e414a(0x132):'missing'),_0x301963=_0x4710be===_0x4e414a(0x132)||_0x4710be===_0x4e414a(0x122)&&!_0x28deed,_0x12fbd8=_0x4710be===_0x4e414a(0x132)||_0x4710be===_0x4e414a(0x122)&&!_0x140fe3,_0x28a6c5=_0x116448[_0x4e414a(0x147)]?updateModelRegistry({'outputDir':_0x493550,'profileName':_0x116448['modelProfile']['name'],'defaultProfile':_0x116448['modelProfile']['defaultName'],'appCode':_0x32ba98,'runtimeDomain':_0x116448['modelProfile'][_0x4e414a(0x145)],'models':_0x2792aa,'allowEmptyReplacement':_0x116448['allowEmptyModelReplacement']===!![]}):undefined,_0x4acbe9=_0x28a6c5?a3_0x56bbf3[_0x4e414a(0x129)](_0x493550,MODEL_RUNTIME_FILE_NAME):undefined,_0x3e3bc7=_0x4acbe9?existsSync(_0x4acbe9):![],_0x10df2b=_0x14c346&&_0x4710be!==_0x4e414a(0x11e)?await renderModelRegistryScaffold(_0x493550):undefined;_0x4acbe9&&_0x10df2b&&writeFileSync(_0x4acbe9,_0x10df2b[_0x4e414a(0x137)],_0x4e414a(0x130));const _0x32d450=_0x2792aa[0x0]?.[_0x4e414a(0x138)];if(_0x301963){const _0x16b6f0=_0x10df2b?.[_0x4e414a(0x13c)]??readFileSync(_0x31894d,_0x4e414a(0x130)),_0x188018=_0x14c346?_0x16b6f0:TemplateReplacer[_0x4e414a(0x141)](_0x16b6f0,_0x32ba98,_0x2792aa,_0x32d450,_0x1f6773,_0x21afa5,undefined,_0x322ac3);writeFileSync(_0x561946,await a3_0x1bae81[_0x4e414a(0x117)](_0x188018,{'parser':_0x4e414a(0x11d)}),{'encoding':_0x4e414a(0x130)});}if(_0x12fbd8){const _0x2bdabe=_0x10df2b?.[_0x4e414a(0x110)]??readFileSync(_0x13da43,_0x4e414a(0x130)),_0x39647b=_0x14c346?_0x2bdabe:TemplateReplacer[_0x4e414a(0x141)](_0x2bdabe,_0x32ba98,_0x2792aa,_0x32d450,_0x1f6773,_0x21afa5,_0x5db48e,_0x322ac3,_0x20c70f);writeFileSync(_0x27ff1d,await a3_0x1bae81[_0x4e414a(0x117)](_0x39647b,{'parser':_0x4e414a(0x11d)}),{'encoding':_0x4e414a(0x130)});}const _0x53eb62=_0x2792aa['length'],_0x3cb822={'api':{'path':_0x561946,'action':fileAction(_0x28deed,_0x301963)},'client':{'path':_0x27ff1d,'action':fileAction(_0x140fe3,_0x12fbd8)},'sdkConfig':{'path':_0x197915,'action':_0x4e414a(0x136)},..._0x28a6c5?{'modelRegistry':{'path':_0x28a6c5[_0x4e414a(0x13d)],'action':_0x28a6c5[_0x4e414a(0x133)]?_0x4e414a(0x136):'created'},'modelRuntime':{'path':_0x4acbe9,'action':_0x10df2b?_0x3e3bc7?_0x4e414a(0x136):'created':_0x3e3bc7?_0x4e414a(0x111):'missing'}}:{}},_0x4c6809=existsSync(_0x561946)&&readFileSync(_0x561946,_0x4e414a(0x130))[_0x4e414a(0x124)](MODEL_REGISTRY_FILE_NAME[_0x4e414a(0x132)](_0x4e414a(0x11b),'')),_0x3143fd=existsSync(_0x27ff1d)&&readFileSync(_0x27ff1d,_0x4e414a(0x130))['includes'](_0x4e414a(0x143)),_0x18bcdf=_0x14c346?!_0x4c6809||!_0x3143fd||!existsSync(_0x4acbe9):![],_0x135b7e=_0x14c346?_0x18bcdf:_0x3cb822[_0x4e414a(0x13c)]['action']===_0x4e414a(0x111)||_0x3cb822[_0x4e414a(0x110)][_0x4e414a(0x114)]==='preserved';return logger[_0x4e414a(0x116)](_0x4e414a(0x13b),_0x135b7e?a3_0x56bbf3[_0x4e414a(0x12b)](_0x197915)+_0x4e414a(0x127):_0x14c346?'Model\x20facts\x20refreshed.':_0x4e414a(0x12f),undefined,{'apiFile':_0x561946,'clientFile':_0x27ff1d,'sdkConfig':_0x197915,'modelCount':_0x53eb62,'configName':_0x461907,'isDefaultConfig':_0x8aa5f3,'needsAgentMerge':_0x135b7e,'needsProjectUpgrade':_0x18bcdf,'files':_0x3cb822}),{'appCode':_0x32ba98,'modelCount':_0x53eb62,'models':_0x2792aa,'apiFilePath':_0x561946,'clientFilePath':_0x27ff1d,'sdkConfigPath':_0x197915,'modelRegistryPath':_0x28a6c5?.[_0x4e414a(0x13d)],'modelRuntimePath':_0x4acbe9,'modelProfile':_0x116448[_0x4e414a(0x147)]?.[_0x4e414a(0x112)],'configName':_0x461907,'isDefaultConfig':_0x8aa5f3,'sdkRouting':_0x5dfaf,'files':_0x3cb822,'needsAgentMerge':_0x135b7e,'needsProjectUpgrade':_0x18bcdf};}
1
+ (function(_0x51d064,_0x45ad1e){const _0x1f4fa3=a3_0x3c07,_0x44878f=_0x51d064();while(!![]){try{const _0x3fd826=-parseInt(_0x1f4fa3(0x83))/0x1*(-parseInt(_0x1f4fa3(0x9d))/0x2)+parseInt(_0x1f4fa3(0x92))/0x3+-parseInt(_0x1f4fa3(0xb7))/0x4*(parseInt(_0x1f4fa3(0x90))/0x5)+parseInt(_0x1f4fa3(0xa1))/0x6*(parseInt(_0x1f4fa3(0x82))/0x7)+parseInt(_0x1f4fa3(0x9e))/0x8+-parseInt(_0x1f4fa3(0xa8))/0x9*(parseInt(_0x1f4fa3(0xab))/0xa)+-parseInt(_0x1f4fa3(0xa0))/0xb;if(_0x3fd826===_0x45ad1e)break;else _0x44878f['push'](_0x44878f['shift']());}catch(_0x11a108){_0x44878f['push'](_0x44878f['shift']());}}}(a3_0xeb3e,0xa4ff2));function a3_0x3c07(_0x464f1e,_0x2a744e){_0x464f1e=_0x464f1e-0x7b;const _0xeb3e8b=a3_0xeb3e();let _0x3c07bb=_0xeb3e8b[_0x464f1e];return _0x3c07bb;}import a3_0x5cbb88 from'prettier';import{existsSync,mkdirSync,writeFileSync,readFileSync}from'node:fs';import a3_0x4c4ee5 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';import{generateSdkConfigFile}from'../api/generate-sdk-config-file.js';import{MODEL_REGISTRY_FILE_NAME,MODEL_RUNTIME_FILE_NAME,updateModelRegistry}from'../api/model-registry-file.js';import{renderModelRegistryScaffold}from'../api/model-registry-scaffold.js';function fileAction(_0x56ee09,_0x5e620b){const _0x485378=a3_0x3c07;if(!_0x5e620b)return _0x56ee09?'preserved':_0x485378(0xa4);return _0x56ee09?'overwritten':'created';}export async function generateApiFile(_0x41f6ba,_0x30e846,_0x217c43,_0x1ee011,_0xa6538f,_0x2698ac,_0x37797a,_0x1b6129={},_0x306686={}){const _0x8ced44=a3_0x3c07;if(!_0x217c43)throw new Error(_0x8ced44(0x80)+CLI_BIN_NAME+'\x20config\x20set\x20app\x20<value>`');const _0x519092=_0x1ee011&&!_0x37797a,_0x7362bc=!!_0x306686[_0x8ced44(0xaf)],_0x480431=_0x7362bc||_0x519092,_0x2c6522=_0x37797a||_0x217c43,_0x15657b=_0x7362bc||_0x519092?_0x8ced44(0x97):_0x2c6522,_0x5eaed0=_0x7362bc||_0x519092?_0x8ced44(0x8b):JSON[_0x8ced44(0x7f)](_0x2c6522),_0x365948=!isProduction(_0xa6538f),_0x2b195a=_0x365948?_0x8ced44(0x98)+JSON[_0x8ced44(0x7f)](_0xa6538f):'',_0x1e6167='{\x20apiConfigName:\x20'+_0x5eaed0+_0x2b195a+_0x8ced44(0xa9),_0x18d653=_0x7362bc?'':_0x30e846,_0x2f5c05=_0x18d653?_0x18d653+_0x8ced44(0x89):_0x8ced44(0x8f),_0x3acb6f=_0x18d653?_0x18d653+_0x8ced44(0x8c):'client',_0x579ea5=_0x18d653&&!/^app-[a-f0-9]+$/i[_0x8ced44(0xa5)](_0x18d653)?_0x18d653[_0x8ced44(0x9f)](/-/g,'_')[_0x8ced44(0x7c)]():_0x8ced44(0x93),_0x3737e3=/^\d/['test'](_0x579ea5)?_0x8ced44(0xb1)+_0x579ea5:_0x579ea5,_0x555e4d=_0x41f6ba[_0x8ced44(0xa7)](_0x197727=>({'datasetCode':_0x197727[_0x8ced44(0x7e)],'tableName':_0x197727[_0x8ced44(0xac)],'name':_0x197727[_0x8ced44(0x94)]||'','alias':_0x197727[_0x8ced44(0x9a)]||_0x197727[_0x8ced44(0xa3)]})),_0x4085e2=fileURLToPath(import.meta.url),_0x5f1167=a3_0x4c4ee5[_0x8ced44(0xb4)](a3_0x4c4ee5[_0x8ced44(0xb3)](_0x4085e2),_0x8ced44(0x99)),_0x3164d4=a3_0x4c4ee5[_0x8ced44(0x87)](_0x5f1167,_0x8ced44(0xad)),_0x5aa792=a3_0x4c4ee5[_0x8ced44(0x87)](_0x3164d4,_0x8ced44(0x7d)),_0x20df0d=a3_0x4c4ee5[_0x8ced44(0x87)](_0x3164d4,'client.ts.tpl'),_0x5936d6=_0x2698ac;mkdirSync(_0x5936d6,{'recursive':!![]});const _0x117bf7=_0x7362bc?{}:_0x1b6129,_0x124d16=await generateSdkConfigFile(_0x5936d6,_0x117bf7,_0x18d653),_0x184500=a3_0x4c4ee5[_0x8ced44(0x7b)](_0x124d16,'.ts'),_0x13493e=a3_0x4c4ee5[_0x8ced44(0x87)](_0x5936d6,_0x2f5c05+_0x8ced44(0x85)),_0x775e40=a3_0x4c4ee5[_0x8ced44(0x87)](_0x5936d6,_0x3acb6f+_0x8ced44(0x85)),_0xc78f17=_0x306686['overwriteTypescript']===!![],_0x3f1823=existsSync(_0x13493e),_0x213370=existsSync(_0x775e40),_0x599fd2=_0x306686['scaffoldMode']??(_0xc78f17?_0x8ced44(0x9f):_0x8ced44(0xa4)),_0x14bb11=_0x599fd2===_0x8ced44(0x9f)||_0x599fd2===_0x8ced44(0xa4)&&!_0x3f1823,_0x3fae6d=_0x599fd2===_0x8ced44(0x9f)||_0x599fd2===_0x8ced44(0xa4)&&!_0x213370,_0x33978c=_0x306686[_0x8ced44(0xaf)]?updateModelRegistry({'outputDir':_0x5936d6,'profileName':_0x306686[_0x8ced44(0xaf)]['name'],'defaultProfile':_0x306686[_0x8ced44(0xaf)][_0x8ced44(0xae)],'appCode':_0x217c43,'runtimeDomain':_0x306686[_0x8ced44(0xaf)]['runtimeDomain'],'models':_0x555e4d,'allowEmptyReplacement':_0x306686[_0x8ced44(0x9c)]===!![]}):undefined,_0x322635=_0x33978c?a3_0x4c4ee5['join'](_0x5936d6,MODEL_RUNTIME_FILE_NAME):undefined,_0x4139ce=_0x322635?existsSync(_0x322635):![],_0x5d00e0=_0x7362bc&&_0x599fd2!=='none'?await renderModelRegistryScaffold(_0x5936d6):undefined;_0x322635&&_0x5d00e0&&writeFileSync(_0x322635,_0x5d00e0[_0x8ced44(0xa6)],_0x8ced44(0x9b));const _0x450111=_0x555e4d[0x0]?.[_0x8ced44(0x9a)];if(_0x14bb11){const _0x1f21cb=_0x5d00e0?.[_0x8ced44(0x8f)]??readFileSync(_0x5aa792,_0x8ced44(0x9b)),_0x1f9a74=_0x7362bc?_0x1f21cb:TemplateReplacer['replaceApiContent'](_0x1f21cb,_0x217c43,_0x555e4d,_0x450111,_0x2f5c05,_0x5eaed0,undefined,_0x3737e3);writeFileSync(_0x13493e,await a3_0x5cbb88[_0x8ced44(0x86)](_0x1f9a74,{'parser':'typescript'}),{'encoding':'utf8'});}if(_0x3fae6d){const _0x2378ad=_0x5d00e0?.[_0x8ced44(0x91)]??readFileSync(_0x20df0d,_0x8ced44(0x9b)),_0x135810=_0x7362bc?_0x2378ad:TemplateReplacer[_0x8ced44(0x96)](_0x2378ad,_0x217c43,_0x555e4d,_0x450111,_0x2f5c05,_0x5eaed0,_0x1e6167,_0x3737e3,_0x184500);writeFileSync(_0x775e40,await a3_0x5cbb88[_0x8ced44(0x86)](_0x135810,{'parser':_0x8ced44(0x95)}),{'encoding':_0x8ced44(0x9b)});}const _0x24ebed=_0x555e4d['length'],_0x333743={'api':{'path':_0x13493e,'action':fileAction(_0x3f1823,_0x14bb11)},'client':{'path':_0x775e40,'action':fileAction(_0x213370,_0x3fae6d)},'sdkConfig':{'path':_0x124d16,'action':'refreshed'},..._0x33978c?{'modelRegistry':{'path':_0x33978c[_0x8ced44(0x8e)],'action':_0x33978c[_0x8ced44(0x81)]?'refreshed':'created'},'modelRuntime':{'path':_0x322635,'action':_0x5d00e0?_0x4139ce?'refreshed':_0x8ced44(0xb2):_0x4139ce?_0x8ced44(0x84):_0x8ced44(0xa4)}}:{}},_0x213d00=existsSync(_0x13493e)&&readFileSync(_0x13493e,_0x8ced44(0x9b))[_0x8ced44(0xb0)](MODEL_REGISTRY_FILE_NAME[_0x8ced44(0x9f)](_0x8ced44(0x85),'')),_0x20f762=existsSync(_0x775e40)&&readFileSync(_0x775e40,_0x8ced44(0x9b))['includes'](_0x8ced44(0x8a)),_0x1b22fd=_0x7362bc?!_0x213d00||!_0x20f762||!existsSync(_0x322635):![],_0x194d1a=_0x7362bc?_0x1b22fd:_0x333743[_0x8ced44(0x8f)][_0x8ced44(0x88)]===_0x8ced44(0x84)||_0x333743[_0x8ced44(0x91)]['action']===_0x8ced44(0x84);return logger[_0x8ced44(0xb5)](_0x8ced44(0xb6),_0x194d1a?a3_0x4c4ee5['basename'](_0x124d16)+_0x8ced44(0xaa):_0x7362bc?_0x8ced44(0xa2):_0x8ced44(0x8d),undefined,{'apiFile':_0x13493e,'clientFile':_0x775e40,'sdkConfig':_0x124d16,'modelCount':_0x24ebed,'configName':_0x15657b,'isDefaultConfig':_0x480431,'needsAgentMerge':_0x194d1a,'needsProjectUpgrade':_0x1b22fd,'files':_0x333743}),{'appCode':_0x217c43,'modelCount':_0x24ebed,'models':_0x555e4d,'apiFilePath':_0x13493e,'clientFilePath':_0x775e40,'sdkConfigPath':_0x124d16,'modelRegistryPath':_0x33978c?.['path'],'modelRuntimePath':_0x322635,'modelProfile':_0x306686[_0x8ced44(0xaf)]?.[_0x8ced44(0x94)],'configName':_0x15657b,'isDefaultConfig':_0x480431,'sdkRouting':_0x117bf7,'files':_0x333743,'needsAgentMerge':_0x194d1a,'needsProjectUpgrade':_0x1b22fd};}function a3_0xeb3e(){const _0x120b67=['271299RqPYMc','preserved','.ts','format','join','action','-api','LOVRABET_RUNTIME_DOMAIN','CONFIG_NAMES.DEFAULT','-client','API\x20scaffold\x20written.','path','api','4596370bHHkaI','client','2323770exWLII','LOVRABET','name','typescript','replaceApiContent','default',',\x20env:\x20','../..','alias','utf8','allowEmptyModelReplacement','2KftcKO','5883248UJxZus','replace','1808532Zocuvm','1912284zNSIZL','Model\x20facts\x20refreshed.','key','missing','test','modelRuntime','map','1760265sXTcNY',',\x20...LOVRABET_SDK_CONFIG\x20}','\x20refreshed;\x20existing\x20TypeScript\x20left\x20unchanged.','50lUyGII','tableName','templates/generate-api','defaultName','modelProfile','includes','APP_','created','dirname','resolve','success','init-api','4NAVKeN','basename','toUpperCase','api.ts.tpl','datasetCode','stringify','Please\x20configure\x20app\x20code\x20first\x20via\x20`','existed','21NxdsQT'];a3_0xeb3e=function(){return _0x120b67;};return a3_0xeb3e();}
@@ -1 +1 @@
1
- (function(_0x45c63f,_0x46ba7d){const _0x54195f=a4_0x48ca,_0x454337=_0x45c63f();while(!![]){try{const _0xc33012=-parseInt(_0x54195f(0x157))/0x1+-parseInt(_0x54195f(0x159))/0x2+parseInt(_0x54195f(0x15b))/0x3*(parseInt(_0x54195f(0x15e))/0x4)+-parseInt(_0x54195f(0x151))/0x5*(parseInt(_0x54195f(0x150))/0x6)+-parseInt(_0x54195f(0x154))/0x7+parseInt(_0x54195f(0x15a))/0x8*(-parseInt(_0x54195f(0x156))/0x9)+parseInt(_0x54195f(0x163))/0xa;if(_0xc33012===_0x46ba7d)break;else _0x454337['push'](_0x454337['shift']());}catch(_0x4d80c7){_0x454337['push'](_0x454337['shift']());}}}(a4_0x1d80,0xb2281));import{mkdirSync,writeFileSync}from'node:fs';import a4_0x25908c from'node:path';function a4_0x1d80(){const _0x204787=['10189648KbRrpm','typescript','54EWehoQ','269072uIOKSR','push','2847662IJmfhx','448488gVQEjc','3UcaqBv',',\x0a}','/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20','3617732HSuWvG',',\x0a\x20\x20','-sdk-config.ts','length','utf8','38067010lSXGkF','3252lOYICs','4580HOVQKv','{\x0a\x20\x20','runtimeDomain'];a4_0x1d80=function(){return _0x204787;};return a4_0x1d80();}import a4_0xe4b439 from'prettier';export const SDK_CONFIG_FILE_NAME='sdk-config.ts';function a4_0x48ca(_0x59f374,_0x553171){_0x59f374=_0x59f374-0x150;const _0x1d80ce=a4_0x1d80();let _0x48cad6=_0x1d80ce[_0x59f374];return _0x48cad6;}export function getSdkConfigFileName(_0x307d90=''){const _0x6d7ffd=a4_0x48ca;return _0x307d90?_0x307d90+_0x6d7ffd(0x160):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x30ede4,_0x21cea3={},_0x57ac12=''){const _0x5e405d=a4_0x48ca,_0x13e0df=[];_0x21cea3[_0x5e405d(0x153)]&&_0x13e0df[_0x5e405d(0x158)]('runtimeDomain:\x20'+JSON['stringify'](_0x21cea3[_0x5e405d(0x153)]));const _0xd53f24=_0x13e0df[_0x5e405d(0x161)]>0x0?_0x5e405d(0x152)+_0x13e0df['join'](_0x5e405d(0x15f))+_0x5e405d(0x15c):'{}',_0x4507ca=_0x5e405d(0x15d)+_0xd53f24+'\x20as\x20const;\x0a';mkdirSync(_0x30ede4,{'recursive':!![]});const _0x3305f3=a4_0x25908c['join'](_0x30ede4,getSdkConfigFileName(_0x57ac12));return writeFileSync(_0x3305f3,await a4_0xe4b439['format'](_0x4507ca,{'parser':_0x5e405d(0x155)}),_0x5e405d(0x162)),_0x3305f3;}
1
+ const a4_0xa8df32=a4_0x12d1;function a4_0x12d1(_0x2a0018,_0x1f724e){_0x2a0018=_0x2a0018-0x1f3;const _0x4ad775=a4_0x4ad7();let _0x12d1b3=_0x4ad775[_0x2a0018];return _0x12d1b3;}(function(_0x105e25,_0x1aa84c){const _0x4e9a38=a4_0x12d1,_0x597dd6=_0x105e25();while(!![]){try{const _0x1579ed=-parseInt(_0x4e9a38(0x201))/0x1+-parseInt(_0x4e9a38(0x1fb))/0x2*(parseInt(_0x4e9a38(0x20b))/0x3)+parseInt(_0x4e9a38(0x209))/0x4+parseInt(_0x4e9a38(0x200))/0x5+-parseInt(_0x4e9a38(0x203))/0x6+-parseInt(_0x4e9a38(0x1ff))/0x7*(parseInt(_0x4e9a38(0x205))/0x8)+parseInt(_0x4e9a38(0x1f9))/0x9*(parseInt(_0x4e9a38(0x208))/0xa);if(_0x1579ed===_0x1aa84c)break;else _0x597dd6['push'](_0x597dd6['shift']());}catch(_0x5be862){_0x597dd6['push'](_0x597dd6['shift']());}}}(a4_0x4ad7,0x8e092));import{mkdirSync,writeFileSync}from'node:fs';import a4_0x25bac2 from'node:path';import a4_0x1e54f9 from'prettier';export const SDK_CONFIG_FILE_NAME=a4_0xa8df32(0x202);function a4_0x4ad7(){const _0x122743=['6507186HsEOuQ','4244460aXENxQ','969076WWDJgB','sdk-config.ts','403524DWTxyc','runtimeDomain','8mKuCQK','\x20as\x20const;\x0a',',\x0a\x20\x20','1428720aaqiqW','4506932nPDIWb','join','51lnjOTy','-sdk-config.ts','runtimeDomain:\x20','length','utf8','format','stringify','108sLjLpG','{\x0a\x20\x20','134398JKVocB','typescript','push',',\x0a}'];a4_0x4ad7=function(){return _0x122743;};return a4_0x4ad7();}export function getSdkConfigFileName(_0x1ae9b8=''){const _0x2bc839=a4_0xa8df32;return _0x1ae9b8?_0x1ae9b8+_0x2bc839(0x1f3):SDK_CONFIG_FILE_NAME;}export async function generateSdkConfigFile(_0x89a5e6,_0x73bbcc={},_0x4965da=''){const _0x1e8eb3=a4_0xa8df32,_0x3f9b93=[];_0x73bbcc[_0x1e8eb3(0x204)]&&_0x3f9b93[_0x1e8eb3(0x1fd)](_0x1e8eb3(0x1f4)+JSON[_0x1e8eb3(0x1f8)](_0x73bbcc[_0x1e8eb3(0x204)]));const _0x2290f5=_0x3f9b93[_0x1e8eb3(0x1f5)]>0x0?_0x1e8eb3(0x1fa)+_0x3f9b93[_0x1e8eb3(0x20a)](_0x1e8eb3(0x207))+_0x1e8eb3(0x1fe):'{}',_0x36fc6d='/**\x0a\x20*\x20Lovrabet\x20SDK\x20runtime\x20routing.\x0a\x20*\x20Generated\x20by\x20Rabetbase\x20CLI.\x20Do\x20not\x20add\x20credentials\x20to\x20this\x20file.\x0a\x20*/\x0aexport\x20const\x20LOVRABET_SDK_CONFIG\x20=\x20'+_0x2290f5+_0x1e8eb3(0x206);mkdirSync(_0x89a5e6,{'recursive':!![]});const _0x4c7ec5=a4_0x25bac2['join'](_0x89a5e6,getSdkConfigFileName(_0x4965da));return writeFileSync(_0x4c7ec5,await a4_0x1e54f9[_0x1e8eb3(0x1f7)](_0x36fc6d,{'parser':_0x1e8eb3(0x1fc)}),_0x1e8eb3(0x1f6)),_0x4c7ec5;}
@@ -1 +1 @@
1
- (function(_0x1803e2,_0xa0cad1){const _0x517bf9=a5_0x29a4,_0xa7eb7f=_0x1803e2();while(!![]){try{const _0x4361ae=-parseInt(_0x517bf9(0xa6))/0x1+parseInt(_0x517bf9(0xae))/0x2+parseInt(_0x517bf9(0x9c))/0x3*(parseInt(_0x517bf9(0xa0))/0x4)+-parseInt(_0x517bf9(0xb1))/0x5*(-parseInt(_0x517bf9(0xaf))/0x6)+parseInt(_0x517bf9(0xa7))/0x7*(parseInt(_0x517bf9(0x9e))/0x8)+parseInt(_0x517bf9(0xa3))/0x9+-parseInt(_0x517bf9(0xa9))/0xa;if(_0x4361ae===_0xa0cad1)break;else _0xa7eb7f['push'](_0xa7eb7f['shift']());}catch(_0x5ddb8e){_0xa7eb7f['push'](_0xa7eb7f['shift']());}}}(a5_0x2b86,0x84670));export function parseLegacyApiModels(_0x88d6c8){const _0x5669c5=a5_0x29a4,_0x551fd6=[],_0x577dcd=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3600b8;while((_0x3600b8=_0x577dcd[_0x5669c5(0x9b)](_0x88d6c8))!==null){_0x551fd6[_0x5669c5(0xa5)]({'datasetCode':_0x3600b8[0x1],'tableName':_0x3600b8[0x2],'name':_0x3600b8[0x3],'alias':_0x3600b8[0x4]});}return _0x551fd6;}function a5_0x2b86(){const _0x21597f=['registerModels','@lovrabet/sdk','replace','1233928qzseSH','1131642AwHLfM','lovrabetClient','5GZwEHg','length','match','exec','9ThOubm','map','3367096vfPjAm','endsWith','960188cDlncR','test','matchAll','1399014QvGRyV','some','push','744803kDnApr','7gPaqqR','APP_CODE','8149220qULNJx','Generated\x20by\x20Rabetbase\x20CLI'];a5_0x2b86=function(){return _0x21597f;};return a5_0x2b86();}function a5_0x29a4(_0x1df45b,_0x452f3b){_0x1df45b=_0x1df45b-0x9b;const _0x2b8619=a5_0x2b86();let _0x29a4bf=_0x2b8619[_0x1df45b];return _0x29a4bf;}export function parseLegacyApiAppCode(_0x823d68){const _0x28e78e=a5_0x29a4;return _0x823d68[_0x28e78e(0xb3)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x27257e){const _0x120a2f=a5_0x29a4;return _0x27257e[_0x120a2f(0xad)](/\/\*[\s\S]*?\*\//g,'')[_0x120a2f(0xad)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x32fa40){const _0x309535=a5_0x29a4;if(!_0x32fa40['includes']('Generated\x20by\x20Rabetbase\x20CLI'))return![];const _0x11a2a6=stripComments(_0x32fa40),_0x3f1e07=[..._0x11a2a6[_0x309535(0xa2)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)]['map'](_0x47f9d4=>_0x47f9d4[0x1]);if(_0x3f1e07[_0x309535(0xb2)]!==0x1||_0x3f1e07[0x0]!==_0x309535(0xac))return![];const _0x4bb185=[..._0x11a2a6[_0x309535(0xa2)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x309535(0x9d)](_0x15c1d5=>_0x15c1d5[0x1]);if(_0x4bb185[_0x309535(0xb2)]!==0x2||!_0x4bb185[_0x309535(0xa4)](_0x2d8ada=>_0x2d8ada[_0x309535(0x9f)](_0x309535(0xa8)))||!_0x4bb185[_0x309535(0xa4)](_0x5221b1=>_0x5221b1[_0x309535(0x9f)]('MODELS_CONFIG')))return![];const _0x52a2f8=[..._0x11a2a6[_0x309535(0xa2)](/^([A-Za-z_$][\w$]*)\s*\(/gm)][_0x309535(0x9d)](_0x137878=>_0x137878[0x1]);return _0x52a2f8['length']===0x1&&_0x52a2f8[0x0]===_0x309535(0xab);}export function isLegacyGeneratedClientScaffold(_0x34b266){const _0x1f254b=a5_0x29a4;if(!_0x34b266['includes'](_0x1f254b(0xaa)))return![];const _0x4eca17=stripComments(_0x34b266),_0x4fd302=[..._0x4eca17['matchAll'](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)]['map'](_0xf0c481=>_0xf0c481[0x1]);if(_0x4fd302[_0x1f254b(0xa4)](_0x36afc9=>_0x36afc9!==_0x1f254b(0xac)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x1f254b(0xa1)](_0x36afc9??'')))return![];const _0x397ddb=[..._0x4eca17[_0x1f254b(0xa2)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x1f254b(0x9d)](_0x3b4e1b=>_0x3b4e1b[0x1]);return _0x397ddb[_0x1f254b(0xb2)]===0x1&&_0x397ddb[0x0]===_0x1f254b(0xb0);}
1
+ function a5_0x31fa(_0x3e3220,_0x563e78){_0x3e3220=_0x3e3220-0x18d;const _0x471ef1=a5_0x471e();let _0x31fa94=_0x471ef1[_0x3e3220];return _0x31fa94;}(function(_0x550210,_0x2dda71){const _0x37f3fc=a5_0x31fa,_0x249934=_0x550210();while(!![]){try{const _0x1de253=-parseInt(_0x37f3fc(0x195))/0x1+parseInt(_0x37f3fc(0x19a))/0x2*(-parseInt(_0x37f3fc(0x191))/0x3)+-parseInt(_0x37f3fc(0x18e))/0x4*(-parseInt(_0x37f3fc(0x1a4))/0x5)+parseInt(_0x37f3fc(0x1a3))/0x6*(parseInt(_0x37f3fc(0x19d))/0x7)+-parseInt(_0x37f3fc(0x19f))/0x8*(parseInt(_0x37f3fc(0x19c))/0x9)+parseInt(_0x37f3fc(0x193))/0xa*(-parseInt(_0x37f3fc(0x18d))/0xb)+parseInt(_0x37f3fc(0x19e))/0xc*(parseInt(_0x37f3fc(0x1a0))/0xd);if(_0x1de253===_0x2dda71)break;else _0x249934['push'](_0x249934['shift']());}catch(_0x1aed0f){_0x249934['push'](_0x249934['shift']());}}}(a5_0x471e,0x8ad88));function a5_0x471e(){const _0x3aa08d=['11HJBVCl','1422712EypXUG','Generated\x20by\x20Rabetbase\x20CLI','replace','3mlfSUb','APP_CODE','3121840purmpn','@lovrabet/sdk','175847TjocCT','some','length','test','push','1951622JjghJK','match','9hSaqla','3796009ggyKOo','14920332WHLeKw','870176ANrjSx','13nDaUyK','MODELS_CONFIG','includes','6lxTAni','5smJsOL','matchAll','lovrabetClient','map'];a5_0x471e=function(){return _0x3aa08d;};return a5_0x471e();}export function parseLegacyApiModels(_0x404535){const _0x280257=a5_0x31fa,_0x180d0f=[],_0xefd35=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x34978f;while((_0x34978f=_0xefd35['exec'](_0x404535))!==null){_0x180d0f[_0x280257(0x199)]({'datasetCode':_0x34978f[0x1],'tableName':_0x34978f[0x2],'name':_0x34978f[0x3],'alias':_0x34978f[0x4]});}return _0x180d0f;}export function parseLegacyApiAppCode(_0x95ce70){const _0xe3b630=a5_0x31fa;return _0x95ce70[_0xe3b630(0x19b)](/export\s+const\s+[A-Z0-9_]*APP_CODE(?:\s*:\s*string)?\s*=\s*["']([^"']+)["']/)?.[0x1];}function stripComments(_0x25e7b3){const _0x35bb48=a5_0x31fa;return _0x25e7b3[_0x35bb48(0x190)](/\/\*[\s\S]*?\*\//g,'')[_0x35bb48(0x190)](/\/\/.*$/gm,'');}export function isLegacyGeneratedApiScaffold(_0x17882d){const _0x1a454d=a5_0x31fa;if(!_0x17882d[_0x1a454d(0x1a2)]('Generated\x20by\x20Rabetbase\x20CLI'))return![];const _0x396fa5=stripComments(_0x17882d),_0x54d476=[..._0x396fa5[_0x1a454d(0x1a5)](/^import[\s\S]*?from\s+["']([^"']+)["'];?$/gm)][_0x1a454d(0x1a7)](_0x3069f4=>_0x3069f4[0x1]);if(_0x54d476[_0x1a454d(0x197)]!==0x1||_0x54d476[0x0]!==_0x1a454d(0x194))return![];const _0x4d6386=[..._0x396fa5[_0x1a454d(0x1a5)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)]['map'](_0x471ded=>_0x471ded[0x1]);if(_0x4d6386['length']!==0x2||!_0x4d6386[_0x1a454d(0x196)](_0x52dd81=>_0x52dd81['endsWith'](_0x1a454d(0x192)))||!_0x4d6386[_0x1a454d(0x196)](_0x5d94bb=>_0x5d94bb['endsWith'](_0x1a454d(0x1a1))))return![];const _0x33f8d1=[..._0x396fa5[_0x1a454d(0x1a5)](/^([A-Za-z_$][\w$]*)\s*\(/gm)]['map'](_0x3ccbca=>_0x3ccbca[0x1]);return _0x33f8d1['length']===0x1&&_0x33f8d1[0x0]==='registerModels';}export function isLegacyGeneratedClientScaffold(_0x22fa24){const _0x132d6c=a5_0x31fa;if(!_0x22fa24['includes'](_0x132d6c(0x18f)))return![];const _0x387de5=stripComments(_0x22fa24),_0x5ec9ee=[..._0x387de5[_0x132d6c(0x1a5)](/^(?:import[\s\S]*?from\s+|import\s+)["']([^"']+)["'];?$/gm)][_0x132d6c(0x1a7)](_0x4197c0=>_0x4197c0[0x1]);if(_0x5ec9ee[_0x132d6c(0x196)](_0x52d6cb=>_0x52d6cb!==_0x132d6c(0x194)&&!/^\.\/(?:[\w-]+-)?(?:api|sdk-config)$/[_0x132d6c(0x198)](_0x52d6cb??'')))return![];const _0x392b64=[..._0x387de5[_0x132d6c(0x1a5)](/^(?:export\s+)?const\s+([A-Za-z_$][\w$]*)/gm)][_0x132d6c(0x1a7)](_0x1e18c5=>_0x1e18c5[0x1]);return _0x392b64[_0x132d6c(0x197)]===0x1&&_0x392b64[0x0]===_0x132d6c(0x1a6);}
@@ -1 +1 @@
1
- const a6_0x36f6c0=a6_0x5040;(function(_0x4eae9c,_0x25ca68){const _0x5e7ce1=a6_0x5040,_0x1fc334=_0x4eae9c();while(!![]){try{const _0x17d7a2=-parseInt(_0x5e7ce1(0x14f))/0x1*(parseInt(_0x5e7ce1(0x168))/0x2)+-parseInt(_0x5e7ce1(0x147))/0x3+parseInt(_0x5e7ce1(0x158))/0x4*(-parseInt(_0x5e7ce1(0x148))/0x5)+-parseInt(_0x5e7ce1(0x17f))/0x6+parseInt(_0x5e7ce1(0x156))/0x7*(parseInt(_0x5e7ce1(0x17b))/0x8)+parseInt(_0x5e7ce1(0x14a))/0x9+parseInt(_0x5e7ce1(0x151))/0xa;if(_0x17d7a2===_0x25ca68)break;else _0x1fc334['push'](_0x1fc334['shift']());}catch(_0x57572d){_0x1fc334['push'](_0x1fc334['shift']());}}}(a6_0x344f,0x30e32));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0xbbfed from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0x36f6c0(0x165);export const MODEL_RUNTIME_FILE_NAME=a6_0x36f6c0(0x16f);export const MODEL_REGISTRY_VERSION_MARKER=a6_0x36f6c0(0x172);const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0x36f6c0(0x183),REGISTRY_START='/*\x20rabetbase-model-registry:start\x20*/',REGISTRY_END=a6_0x36f6c0(0x154);function a6_0x344f(){const _0x15785c=['Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.','split','/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a','protocol','entries','outputDir','4600MsonBY','map','\x20model(s)\x20in\x20profile\x20\x22','allowEmptyReplacement','2103012LzAqyn','Refusing\x20to\x20replace\x20','alias','tableName','lovrabet-model-registry/v2','utf8','\x22\x20maps\x20to\x20table\x20\x22','profiles','.tmp','indexOf','lovrabet-model-registry/v1','name','object','datasetCode','\x22\x20with\x20an\x20empty\x20result.\x20','find','test','1078953MgzVXA','5YBmMos','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','992394BcyUIv','\x22\x20maps\x20to\x20both\x20\x22','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','keys','get','2OaTvVS','flatMap','8716500FDxZEI','replace','\x22\x20maps\x20to\x20alias\x20\x22','/*\x20rabetbase-model-registry:end\x20*/','profileName','2240FOQgBN','\x22\x20and\x20\x22','924292ojlOVQ','defaultProfile','runtimeDomain','\x22\x20in\x20profile\x20\x22','\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a','slice','\x22\x20in\x20the\x20registry\x20but\x20\x22','Table\x20\x22','string','join','push','length','isArray','models.generated.ts','datasetCodes','Model\x20alias\x20\x22','24448NIHYLG','filter','NOT-SET','appCode','fromEntries','stringify','set','model-runtime.ts','parse','trim','/*\x20rabetbase-model-registry:v2\x20*/','value','models'];a6_0x344f=function(){return _0x15785c;};return a6_0x344f();}function emptyRegistry(_0x523fe8){return{'defaultProfile':_0x523fe8,'profiles':{},'models':[]};}function extractRegistryJson(_0x53d607){const _0x478f4c=a6_0x36f6c0,_0x48173a=_0x53d607[_0x478f4c(0x188)](REGISTRY_START),_0x526466=_0x53d607[_0x478f4c(0x188)](REGISTRY_END);if(_0x48173a<0x0||_0x526466<=_0x48173a)return undefined;return _0x53d607[_0x478f4c(0x15d)](_0x48173a+REGISTRY_START[_0x478f4c(0x163)],_0x526466)[_0x478f4c(0x171)]()[_0x478f4c(0x152)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')['replace'](/;$/,'');}function migrateLegacyRegistry(_0x25d458){const _0x57b486=a6_0x36f6c0,_0x34c27e=emptyRegistry(_0x25d458[_0x57b486(0x159)]);for(const [_0x4bab94,_0x364f55]of Object[_0x57b486(0x179)](_0x25d458[_0x57b486(0x186)])){_0x34c27e[_0x57b486(0x186)][_0x4bab94]={'appCode':_0x364f55['appCode'],'runtimeDomain':_0x364f55[_0x57b486(0x15a)]},mergeProfileModels(_0x34c27e,_0x4bab94,_0x364f55[_0x57b486(0x174)]);}return _0x34c27e;}function generatedObjectLiteralToJson(_0x3c252e){const _0x3b8d56=a6_0x36f6c0;let _0x11e549='',_0x326a4f,_0x43f44f=![],_0x6250ab;for(let _0x2fbecf=0x0;_0x2fbecf<_0x3c252e[_0x3b8d56(0x163)];_0x2fbecf++){const _0x5139bc=_0x3c252e[_0x2fbecf];if(_0x326a4f){_0x11e549+=_0x5139bc;if(_0x43f44f)_0x43f44f=![];else{if(_0x5139bc==='\x5c')_0x43f44f=!![];else{if(_0x5139bc===_0x326a4f)_0x326a4f=undefined;}}continue;}if(_0x5139bc==='\x22'){_0x326a4f=_0x5139bc,_0x11e549+=_0x5139bc,_0x6250ab=_0x3b8d56(0x173);continue;}if(_0x5139bc===','){let _0x5b267d=_0x2fbecf+0x1;while(/\s/[_0x3b8d56(0x146)](_0x3c252e[_0x5b267d]??''))_0x5b267d++;if(_0x3c252e[_0x5b267d]==='}'||_0x3c252e[_0x5b267d]===']')continue;_0x11e549+=_0x5139bc,_0x6250ab=',';continue;}if(_0x5139bc==='{'||_0x5139bc==='['){_0x11e549+=_0x5139bc,_0x6250ab=_0x5139bc;continue;}if(_0x5139bc==='}'||_0x5139bc===']'){_0x11e549+=_0x5139bc,_0x6250ab=_0x5139bc;continue;}if((_0x6250ab==='{'||_0x6250ab===',')&&/[A-Za-z_$]/[_0x3b8d56(0x146)](_0x5139bc)){let _0x38fd40=_0x2fbecf+0x1;while(/[A-Za-z0-9_$]/[_0x3b8d56(0x146)](_0x3c252e[_0x38fd40]??''))_0x38fd40++;let _0xdb09b9=_0x38fd40;while(/\s/[_0x3b8d56(0x146)](_0x3c252e[_0xdb09b9]??''))_0xdb09b9++;if(_0x3c252e[_0xdb09b9]===':'){_0x11e549+=JSON['stringify'](_0x3c252e[_0x3b8d56(0x15d)](_0x2fbecf,_0x38fd40)),_0x2fbecf=_0x38fd40-0x1,_0x6250ab='key';continue;}}_0x11e549+=_0x5139bc;if(!/\s/['test'](_0x5139bc)&&_0x5139bc!==':')_0x6250ab='value';}return _0x11e549;}function parseGeneratedRegistryJson(_0x543593){const _0x2beb0e=a6_0x36f6c0;try{return JSON[_0x2beb0e(0x170)](_0x543593);}catch{return JSON['parse'](generatedObjectLiteralToJson(_0x543593));}}function normalizeModelEntries(_0x3a4f25,_0x77f1e0){const _0x557bba=a6_0x36f6c0,_0x402ca5=Object[_0x557bba(0x14d)](_0x3a4f25),_0x8dc18d=[];for(const _0x13e09e of _0x77f1e0){if(!_0x13e09e||typeof _0x13e09e!==_0x557bba(0x18b)||Array[_0x557bba(0x164)](_0x13e09e))return undefined;const _0x2bb7b6=_0x13e09e;if(typeof _0x2bb7b6['alias']!==_0x557bba(0x160)||typeof _0x2bb7b6[_0x557bba(0x182)]!==_0x557bba(0x160)||typeof _0x2bb7b6[_0x557bba(0x18a)]!=='string')return undefined;let _0x51320d;if(typeof _0x2bb7b6[_0x557bba(0x18c)]===_0x557bba(0x160)&&_0x2bb7b6[_0x557bba(0x166)]===undefined)_0x51320d=Object[_0x557bba(0x16c)](_0x402ca5[_0x557bba(0x17c)](_0x94afa3=>[_0x94afa3,_0x2bb7b6[_0x557bba(0x18c)]]));else{if(_0x2bb7b6[_0x557bba(0x18c)]===undefined&&_0x2bb7b6[_0x557bba(0x166)]&&typeof _0x2bb7b6[_0x557bba(0x166)]===_0x557bba(0x18b)&&!Array['isArray'](_0x2bb7b6['datasetCodes'])&&Object['values'](_0x2bb7b6[_0x557bba(0x166)])['every'](_0x344926=>typeof _0x344926===_0x557bba(0x160)))_0x51320d={..._0x2bb7b6['datasetCodes']};else return undefined;}_0x8dc18d[_0x557bba(0x162)]({'alias':_0x2bb7b6[_0x557bba(0x181)],'tableName':_0x2bb7b6[_0x557bba(0x182)],'name':_0x2bb7b6[_0x557bba(0x18a)],'datasetCodes':_0x51320d});}return _0x8dc18d;}export function parseModelRegistry(_0x106da6){const _0x535150=a6_0x36f6c0,_0x31a8b1=extractRegistryJson(_0x106da6);if(!_0x31a8b1)return undefined;try{const _0x543e76=parseGeneratedRegistryJson(_0x31a8b1);if(typeof _0x543e76[_0x535150(0x159)]!=='string'||!_0x543e76['profiles']||typeof _0x543e76['profiles']!=='object')return undefined;if(_0x543e76[_0x535150(0x178)]===_0x535150(0x189))return migrateLegacyRegistry(_0x543e76);if(!(_0x543e76[_0x535150(0x178)]===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x543e76[_0x535150(0x178)]===undefined&&_0x106da6['includes'](MODEL_REGISTRY_VERSION_MARKER))||!Array[_0x535150(0x164)](_0x543e76[_0x535150(0x174)]))return undefined;const _0x5eb7cc=_0x543e76[_0x535150(0x186)],_0x218c78=normalizeModelEntries(_0x5eb7cc,_0x543e76[_0x535150(0x174)]);if(!_0x218c78)return undefined;return{'defaultProfile':_0x543e76[_0x535150(0x159)],'profiles':_0x5eb7cc,'models':_0x218c78};}catch{return undefined;}}function a6_0x5040(_0x3d86b2,_0x2ea1d0){_0x3d86b2=_0x3d86b2-0x144;const _0x344ff9=a6_0x344f();let _0x5040f9=_0x344ff9[_0x3d86b2];return _0x5040f9;}export function readModelRegistry(_0x1f18de){if(!existsSync(_0x1f18de))return undefined;try{return parseModelRegistry(readFileSync(_0x1f18de,'utf8'));}catch{return undefined;}}function registrySource(_0x21c839){const _0x1e048e=a6_0x36f6c0,_0x5068b8=Object['keys'](_0x21c839[_0x1e048e(0x186)]),_0x511620=_0x21c839[_0x1e048e(0x174)][_0x1e048e(0x17c)](_0x13620a=>{const _0x1902f9=_0x1e048e,_0x3115ed=_0x5068b8[_0x1902f9(0x17c)](_0x406ff8=>_0x13620a['datasetCodes'][_0x406ff8]),_0x4797cd=_0x3115ed[0x0],_0x5eb7a6=_0x4797cd!==undefined&&_0x3115ed['every'](_0x3df7fe=>_0x3df7fe===_0x4797cd),_0x5bcf08={'alias':_0x13620a[_0x1902f9(0x181)],'tableName':_0x13620a[_0x1902f9(0x182)],'name':_0x13620a[_0x1902f9(0x18a)]};return _0x5eb7a6?{..._0x5bcf08,'datasetCode':_0x4797cd}:{..._0x5bcf08,'datasetCodes':_0x13620a[_0x1902f9(0x166)]};}),_0x5ad8c7=JSON[_0x1e048e(0x16d)]({'defaultProfile':_0x21c839[_0x1e048e(0x159)],'profiles':_0x21c839['profiles'],'models':_0x511620},null,0x2)[_0x1e048e(0x176)]('\x0a')['map'](_0x368f2c=>'\x20\x20'+_0x368f2c)[_0x1e048e(0x161)]('\x0a');return _0x1e048e(0x177)+MODEL_REGISTRY_VERSION_MARKER+_0x1e048e(0x14c)+REGISTRY_START+'\x0a'+_0x5ad8c7+_0x1e048e(0x15c)+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x261035,_0x10a141,_0x114ca1){const _0x5885e4=a6_0x36f6c0,_0x4a2966=_0x114ca1[_0x5885e4(0x17c)](_0x487b6b=>({..._0x487b6b,'alias':_0x487b6b[_0x5885e4(0x181)]||_0x487b6b[_0x5885e4(0x182)]})),_0x5aa3d2=new Map(),_0x2e867a=new Map();for(const _0x5995b8 of _0x4a2966){const _0x339b28=_0x5aa3d2['get'](_0x5995b8[_0x5885e4(0x181)]);if(_0x339b28&&_0x339b28!==_0x5995b8[_0x5885e4(0x182)])throw new Error(_0x5885e4(0x167)+_0x5995b8['alias']+_0x5885e4(0x14b)+_0x339b28+_0x5885e4(0x157)+_0x5995b8[_0x5885e4(0x182)]+_0x5885e4(0x15b)+_0x10a141+'\x22.');const _0x2844f6=_0x2e867a[_0x5885e4(0x14e)](_0x5995b8['tableName']);if(_0x2844f6&&_0x2844f6!==_0x5995b8[_0x5885e4(0x181)])throw new Error('Table\x20\x22'+_0x5995b8[_0x5885e4(0x182)]+_0x5885e4(0x149)+_0x2844f6+_0x5885e4(0x157)+_0x5995b8[_0x5885e4(0x181)]+'\x22\x20in\x20profile\x20\x22'+_0x10a141+'\x22.');_0x5aa3d2[_0x5885e4(0x16e)](_0x5995b8[_0x5885e4(0x181)],_0x5995b8[_0x5885e4(0x182)]),_0x2e867a[_0x5885e4(0x16e)](_0x5995b8[_0x5885e4(0x182)],_0x5995b8[_0x5885e4(0x181)]);const _0x5d32f0=_0x261035[_0x5885e4(0x174)][_0x5885e4(0x145)](_0x34ccee=>_0x34ccee['alias']===_0x5995b8[_0x5885e4(0x181)]);if(_0x5d32f0&&_0x5d32f0[_0x5885e4(0x182)]!==_0x5995b8[_0x5885e4(0x182)])throw new Error(_0x5885e4(0x167)+_0x5995b8['alias']+_0x5885e4(0x185)+_0x5d32f0['tableName']+_0x5885e4(0x15e)+_0x5995b8[_0x5885e4(0x182)]+'\x22\x20in\x20profile\x20\x22'+_0x10a141+'\x22.');const _0x135500=_0x261035[_0x5885e4(0x174)][_0x5885e4(0x145)](_0x28811a=>_0x28811a[_0x5885e4(0x182)]===_0x5995b8[_0x5885e4(0x182)]);if(_0x135500&&_0x135500['alias']!==_0x5995b8[_0x5885e4(0x181)])throw new Error(_0x5885e4(0x15f)+_0x5995b8[_0x5885e4(0x182)]+_0x5885e4(0x153)+_0x135500['alias']+'\x22\x20in\x20the\x20registry\x20but\x20\x22'+_0x5995b8[_0x5885e4(0x181)]+'\x22\x20in\x20profile\x20\x22'+_0x10a141+'\x22.');}for(const _0x38ac08 of _0x261035[_0x5885e4(0x174)]){delete _0x38ac08[_0x5885e4(0x166)][_0x10a141];}for(const _0x2cbebb of _0x4a2966){let _0x34ce0d=_0x261035['models'][_0x5885e4(0x145)](_0x44750e=>_0x44750e[_0x5885e4(0x181)]===_0x2cbebb[_0x5885e4(0x181)]);!_0x34ce0d&&(_0x34ce0d={'alias':_0x2cbebb[_0x5885e4(0x181)],'tableName':_0x2cbebb[_0x5885e4(0x182)],'name':_0x2cbebb[_0x5885e4(0x18a)],'datasetCodes':{}},_0x261035['models'][_0x5885e4(0x162)](_0x34ce0d)),(_0x10a141===_0x261035[_0x5885e4(0x159)]||!_0x34ce0d['datasetCodes'][_0x261035[_0x5885e4(0x159)]])&&(_0x34ce0d[_0x5885e4(0x181)]=_0x2cbebb[_0x5885e4(0x181)],_0x34ce0d[_0x5885e4(0x182)]=_0x2cbebb[_0x5885e4(0x182)],_0x34ce0d[_0x5885e4(0x18a)]=_0x2cbebb[_0x5885e4(0x18a)]),_0x34ce0d['datasetCodes'][_0x10a141]=_0x2cbebb[_0x5885e4(0x18c)];}_0x261035[_0x5885e4(0x174)]=_0x261035['models'][_0x5885e4(0x169)](_0x439ae5=>Object[_0x5885e4(0x14d)](_0x439ae5[_0x5885e4(0x166)])[_0x5885e4(0x163)]>0x0);}function removeUnboundProfiles(_0x19ffdd){const _0x3cf5cd=a6_0x36f6c0,_0x3beb36=Object['entries'](_0x19ffdd[_0x3cf5cd(0x186)])[_0x3cf5cd(0x169)](([,_0x1317bb])=>_0x1317bb[_0x3cf5cd(0x16b)]==='NOT-SET')[_0x3cf5cd(0x17c)](([_0x4cf0ee])=>_0x4cf0ee);if(_0x3beb36['length']===0x0)return;for(const _0x496910 of _0x3beb36){delete _0x19ffdd['profiles'][_0x496910];for(const _0x56a4e0 of _0x19ffdd[_0x3cf5cd(0x174)]){delete _0x56a4e0['datasetCodes'][_0x496910];}}_0x19ffdd[_0x3cf5cd(0x174)]=_0x19ffdd['models']['filter'](_0x1c98ad=>Object[_0x3cf5cd(0x14d)](_0x1c98ad['datasetCodes'])[_0x3cf5cd(0x163)]>0x0);}export function getProfileModels(_0xc4ef6e,_0x1eba82){const _0x4517b7=a6_0x36f6c0;return _0xc4ef6e[_0x4517b7(0x174)][_0x4517b7(0x150)](_0x2a9c49=>{const _0x18b627=_0x4517b7,_0x354809=_0x2a9c49[_0x18b627(0x166)][_0x1eba82];return _0x354809?[{'datasetCode':_0x354809,'tableName':_0x2a9c49[_0x18b627(0x182)],'name':_0x2a9c49[_0x18b627(0x18a)],'alias':_0x2a9c49[_0x18b627(0x181)]}]:[];});}export function updateModelRegistry(_0x44721a){const _0x530a55=a6_0x36f6c0,_0x3d74a0=a6_0xbbfed[_0x530a55(0x161)](_0x44721a['outputDir'],MODEL_REGISTRY_FILE_NAME),_0x321884=existsSync(_0x3d74a0),_0x10958c=readModelRegistry(_0x3d74a0);if(_0x321884&&!_0x10958c)throw new Error(MODEL_REGISTRY_FILE_NAME+'\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.');const _0x2515d5=_0x10958c??emptyRegistry(_0x44721a[_0x530a55(0x159)]);if(_0x44721a[_0x530a55(0x16b)]!==_0x530a55(0x16a))removeUnboundProfiles(_0x2515d5);const _0x18c26f=_0x10958c?getProfileModels(_0x10958c,_0x44721a[_0x530a55(0x155)])[_0x530a55(0x163)]:0x0;if(_0x18c26f>0x0&&_0x44721a[_0x530a55(0x174)][_0x530a55(0x163)]===0x0&&!_0x44721a[_0x530a55(0x17e)])throw new Error(_0x530a55(0x180)+_0x18c26f+_0x530a55(0x17d)+_0x44721a[_0x530a55(0x155)]+_0x530a55(0x144)+_0x530a55(0x175));_0x2515d5[_0x530a55(0x159)]=_0x44721a['defaultProfile'],_0x2515d5[_0x530a55(0x186)][_0x44721a[_0x530a55(0x155)]]={'appCode':_0x44721a[_0x530a55(0x16b)],'runtimeDomain':_0x44721a[_0x530a55(0x15a)]},mergeProfileModels(_0x2515d5,_0x44721a['profileName'],_0x44721a[_0x530a55(0x174)]),mkdirSync(_0x44721a[_0x530a55(0x17a)],{'recursive':!![]});const _0x1330c3=_0x3d74a0+'.'+process['pid']+'.'+Date['now']()+_0x530a55(0x187);try{writeFileSync(_0x1330c3,registrySource(_0x2515d5),{'encoding':_0x530a55(0x184),'mode':0x1a4}),renameSync(_0x1330c3,_0x3d74a0);}catch(_0xc3f4c2){try{unlinkSync(_0x1330c3);}catch{}throw _0xc3f4c2;}return{'path':_0x3d74a0,'registry':_0x2515d5,'existed':_0x321884};}
1
+ const a6_0xd43591=a6_0x2265;(function(_0x118047,_0x3219eb){const _0x4b0c64=a6_0x2265,_0x69a457=_0x118047();while(!![]){try{const _0x362db2=parseInt(_0x4b0c64(0xec))/0x1*(parseInt(_0x4b0c64(0x10b))/0x2)+parseInt(_0x4b0c64(0xfa))/0x3*(parseInt(_0x4b0c64(0x115))/0x4)+parseInt(_0x4b0c64(0x11b))/0x5*(parseInt(_0x4b0c64(0x102))/0x6)+-parseInt(_0x4b0c64(0xdc))/0x7*(-parseInt(_0x4b0c64(0xe0))/0x8)+parseInt(_0x4b0c64(0x119))/0x9+parseInt(_0x4b0c64(0x11c))/0xa+-parseInt(_0x4b0c64(0xe7))/0xb;if(_0x362db2===_0x3219eb)break;else _0x69a457['push'](_0x69a457['shift']());}catch(_0x189f10){_0x69a457['push'](_0x69a457['shift']());}}}(a6_0x5438,0x91e77));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import a6_0x43a414 from'node:path';export const MODEL_REGISTRY_FILE_NAME=a6_0xd43591(0xdd);export const MODEL_RUNTIME_FILE_NAME=a6_0xd43591(0xde);export const MODEL_REGISTRY_VERSION_MARKER='/*\x20rabetbase-model-registry:v2\x20*/';const LEGACY_MODEL_REGISTRY_V2_PROTOCOL=a6_0xd43591(0xf3),REGISTRY_START=a6_0xd43591(0x100),REGISTRY_END=a6_0xd43591(0x10f);function emptyRegistry(_0x3cf1bf){return{'defaultProfile':_0x3cf1bf,'profiles':{},'models':[]};}function a6_0x2265(_0x33046d,_0x506db3){_0x33046d=_0x33046d-0xd5;const _0x54382d=a6_0x5438();let _0x226572=_0x54382d[_0x33046d];return _0x226572;}function extractRegistryJson(_0x44d36a){const _0x57e921=a6_0xd43591,_0x389128=_0x44d36a[_0x57e921(0xe6)](REGISTRY_START),_0x21ab28=_0x44d36a['indexOf'](REGISTRY_END);if(_0x389128<0x0||_0x21ab28<=_0x389128)return undefined;return _0x44d36a['slice'](_0x389128+REGISTRY_START[_0x57e921(0xe8)],_0x21ab28)['trim']()[_0x57e921(0xee)](/\s+as const satisfies LovrabetModelRegistry;?$/,'')[_0x57e921(0xee)](/;$/,'');}function migrateLegacyRegistry(_0x2bf852){const _0x29fdef=a6_0xd43591,_0x231719=emptyRegistry(_0x2bf852[_0x29fdef(0xe3)]);for(const [_0x2bbe68,_0xee9c8b]of Object[_0x29fdef(0xd9)](_0x2bf852[_0x29fdef(0xe9)])){_0x231719[_0x29fdef(0xe9)][_0x2bbe68]={'appCode':_0xee9c8b[_0x29fdef(0x10d)],'runtimeDomain':_0xee9c8b['runtimeDomain']},mergeProfileModels(_0x231719,_0x2bbe68,_0xee9c8b[_0x29fdef(0xf5)]);}return _0x231719;}function generatedObjectLiteralToJson(_0x3e5f88){const _0x4e0f90=a6_0xd43591;let _0x35f087='',_0x2b9abc,_0x4fb8a3=![],_0x97e37d;for(let _0x560635=0x0;_0x560635<_0x3e5f88['length'];_0x560635++){const _0x357b4c=_0x3e5f88[_0x560635];if(_0x2b9abc){_0x35f087+=_0x357b4c;if(_0x4fb8a3)_0x4fb8a3=![];else{if(_0x357b4c==='\x5c')_0x4fb8a3=!![];else{if(_0x357b4c===_0x2b9abc)_0x2b9abc=undefined;}}continue;}if(_0x357b4c==='\x22'){_0x2b9abc=_0x357b4c,_0x35f087+=_0x357b4c,_0x97e37d=_0x4e0f90(0x114);continue;}if(_0x357b4c===','){let _0x1ac2bb=_0x560635+0x1;while(/\s/[_0x4e0f90(0x10c)](_0x3e5f88[_0x1ac2bb]??''))_0x1ac2bb++;if(_0x3e5f88[_0x1ac2bb]==='}'||_0x3e5f88[_0x1ac2bb]===']')continue;_0x35f087+=_0x357b4c,_0x97e37d=',';continue;}if(_0x357b4c==='{'||_0x357b4c==='['){_0x35f087+=_0x357b4c,_0x97e37d=_0x357b4c;continue;}if(_0x357b4c==='}'||_0x357b4c===']'){_0x35f087+=_0x357b4c,_0x97e37d=_0x357b4c;continue;}if((_0x97e37d==='{'||_0x97e37d===',')&&/[A-Za-z_$]/['test'](_0x357b4c)){let _0x497d16=_0x560635+0x1;while(/[A-Za-z0-9_$]/['test'](_0x3e5f88[_0x497d16]??''))_0x497d16++;let _0x140547=_0x497d16;while(/\s/[_0x4e0f90(0x10c)](_0x3e5f88[_0x140547]??''))_0x140547++;if(_0x3e5f88[_0x140547]===':'){_0x35f087+=JSON[_0x4e0f90(0xd5)](_0x3e5f88['slice'](_0x560635,_0x497d16)),_0x560635=_0x497d16-0x1,_0x97e37d=_0x4e0f90(0xfb);continue;}}_0x35f087+=_0x357b4c;if(!/\s/['test'](_0x357b4c)&&_0x357b4c!==':')_0x97e37d=_0x4e0f90(0x114);}return _0x35f087;}function parseGeneratedRegistryJson(_0x433a8c){const _0x88edf2=a6_0xd43591;try{return JSON[_0x88edf2(0xd8)](_0x433a8c);}catch{return JSON['parse'](generatedObjectLiteralToJson(_0x433a8c));}}function normalizeModelEntries(_0xdd336,_0x32f271){const _0x37d534=a6_0xd43591,_0x2ed45f=Object[_0x37d534(0xf8)](_0xdd336),_0x49854f=[];for(const _0x18a2c4 of _0x32f271){if(!_0x18a2c4||typeof _0x18a2c4!==_0x37d534(0x103)||Array[_0x37d534(0x105)](_0x18a2c4))return undefined;const _0x30400f=_0x18a2c4;if(typeof _0x30400f[_0x37d534(0xf1)]!==_0x37d534(0x116)||typeof _0x30400f['tableName']!==_0x37d534(0x116)||typeof _0x30400f['name']!=='string')return undefined;let _0x11d290;if(typeof _0x30400f['datasetCode']==='string'&&_0x30400f[_0x37d534(0xfd)]===undefined)_0x11d290=Object[_0x37d534(0x104)](_0x2ed45f['map'](_0x252094=>[_0x252094,_0x30400f[_0x37d534(0x112)]]));else{if(_0x30400f['datasetCode']===undefined&&_0x30400f[_0x37d534(0xfd)]&&typeof _0x30400f[_0x37d534(0xfd)]===_0x37d534(0x103)&&!Array['isArray'](_0x30400f['datasetCodes'])&&Object[_0x37d534(0xe4)](_0x30400f[_0x37d534(0xfd)])['every'](_0x3ebbc7=>typeof _0x3ebbc7===_0x37d534(0x116)))_0x11d290={..._0x30400f[_0x37d534(0xfd)]};else return undefined;}_0x49854f[_0x37d534(0x10a)]({'alias':_0x30400f[_0x37d534(0xf1)],'tableName':_0x30400f[_0x37d534(0xfc)],'name':_0x30400f[_0x37d534(0x108)],'datasetCodes':_0x11d290});}return _0x49854f;}export function parseModelRegistry(_0x126465){const _0x5ecb67=a6_0xd43591,_0x2b3114=extractRegistryJson(_0x126465);if(!_0x2b3114)return undefined;try{const _0x2d5b95=parseGeneratedRegistryJson(_0x2b3114);if(typeof _0x2d5b95[_0x5ecb67(0xe3)]!==_0x5ecb67(0x116)||!_0x2d5b95['profiles']||typeof _0x2d5b95[_0x5ecb67(0xe9)]!=='object')return undefined;if(_0x2d5b95[_0x5ecb67(0xea)]===_0x5ecb67(0x11d))return migrateLegacyRegistry(_0x2d5b95);if(!(_0x2d5b95['protocol']===LEGACY_MODEL_REGISTRY_V2_PROTOCOL||_0x2d5b95[_0x5ecb67(0xea)]===undefined&&_0x126465['includes'](MODEL_REGISTRY_VERSION_MARKER))||!Array['isArray'](_0x2d5b95[_0x5ecb67(0xf5)]))return undefined;const _0x5c40f1=_0x2d5b95[_0x5ecb67(0xe9)],_0x4e3ed9=normalizeModelEntries(_0x5c40f1,_0x2d5b95[_0x5ecb67(0xf5)]);if(!_0x4e3ed9)return undefined;return{'defaultProfile':_0x2d5b95['defaultProfile'],'profiles':_0x5c40f1,'models':_0x4e3ed9};}catch{return undefined;}}export function readModelRegistry(_0x305279){const _0x3074a0=a6_0xd43591;if(!existsSync(_0x305279))return undefined;try{return parseModelRegistry(readFileSync(_0x305279,_0x3074a0(0x106)));}catch{return undefined;}}function registrySource(_0x1154fb){const _0x234fe6=a6_0xd43591,_0x2f452b=Object[_0x234fe6(0xf8)](_0x1154fb[_0x234fe6(0xe9)]),_0x269fd3=_0x1154fb[_0x234fe6(0xf5)][_0x234fe6(0xf9)](_0x3b3ea4=>{const _0x3b7bd7=_0x234fe6,_0x5119c3=_0x2f452b['map'](_0x55aa08=>_0x3b3ea4['datasetCodes'][_0x55aa08]),_0x50bc2f=_0x5119c3[0x0],_0x4cbce7=_0x50bc2f!==undefined&&_0x5119c3[_0x3b7bd7(0x118)](_0x2241df=>_0x2241df===_0x50bc2f),_0x42370b={'alias':_0x3b3ea4[_0x3b7bd7(0xf1)],'tableName':_0x3b3ea4[_0x3b7bd7(0xfc)],'name':_0x3b3ea4[_0x3b7bd7(0x108)]};return _0x4cbce7?{..._0x42370b,'datasetCode':_0x50bc2f}:{..._0x42370b,'datasetCodes':_0x3b3ea4[_0x3b7bd7(0xfd)]};}),_0x44fca2=JSON['stringify']({'defaultProfile':_0x1154fb[_0x234fe6(0xe3)],'profiles':_0x1154fb[_0x234fe6(0xe9)],'models':_0x269fd3},null,0x2)[_0x234fe6(0xef)]('\x0a')[_0x234fe6(0xf9)](_0x31dd63=>'\x20\x20'+_0x31dd63)[_0x234fe6(0x111)]('\x0a');return _0x234fe6(0xda)+MODEL_REGISTRY_VERSION_MARKER+_0x234fe6(0x101)+REGISTRY_START+'\x0a'+_0x44fca2+'\x20as\x20const\x20satisfies\x20LovrabetModelRegistry;\x0a'+REGISTRY_END+'\x0a';}function mergeProfileModels(_0x24e3b9,_0x5588dd,_0xa97fc9){const _0x5f31fb=a6_0xd43591,_0x1fcc22=_0xa97fc9['map'](_0x3dd0ff=>({..._0x3dd0ff,'alias':_0x3dd0ff[_0x5f31fb(0xf1)]||_0x3dd0ff['tableName']})),_0x2691a3=new Map(),_0x213356=new Map();for(const _0x1bb206 of _0x1fcc22){const _0x1dcbb5=_0x2691a3[_0x5f31fb(0x110)](_0x1bb206[_0x5f31fb(0xf1)]);if(_0x1dcbb5&&_0x1dcbb5!==_0x1bb206[_0x5f31fb(0xfc)])throw new Error(_0x5f31fb(0xff)+_0x1bb206[_0x5f31fb(0xf1)]+'\x22\x20maps\x20to\x20both\x20\x22'+_0x1dcbb5+_0x5f31fb(0xdf)+_0x1bb206[_0x5f31fb(0xfc)]+'\x22\x20in\x20profile\x20\x22'+_0x5588dd+'\x22.');const _0x1a7781=_0x213356[_0x5f31fb(0x110)](_0x1bb206[_0x5f31fb(0xfc)]);if(_0x1a7781&&_0x1a7781!==_0x1bb206[_0x5f31fb(0xf1)])throw new Error('Table\x20\x22'+_0x1bb206[_0x5f31fb(0xfc)]+_0x5f31fb(0xe1)+_0x1a7781+_0x5f31fb(0xdf)+_0x1bb206['alias']+'\x22\x20in\x20profile\x20\x22'+_0x5588dd+'\x22.');_0x2691a3[_0x5f31fb(0x10e)](_0x1bb206[_0x5f31fb(0xf1)],_0x1bb206[_0x5f31fb(0xfc)]),_0x213356[_0x5f31fb(0x10e)](_0x1bb206[_0x5f31fb(0xfc)],_0x1bb206[_0x5f31fb(0xf1)]);const _0x5ce2ad=_0x24e3b9[_0x5f31fb(0xf5)][_0x5f31fb(0xe2)](_0x55ad9d=>_0x55ad9d[_0x5f31fb(0xf1)]===_0x1bb206[_0x5f31fb(0xf1)]);if(_0x5ce2ad&&_0x5ce2ad['tableName']!==_0x1bb206[_0x5f31fb(0xfc)])throw new Error(_0x5f31fb(0xff)+_0x1bb206[_0x5f31fb(0xf1)]+_0x5f31fb(0xf2)+_0x5ce2ad[_0x5f31fb(0xfc)]+_0x5f31fb(0x117)+_0x1bb206[_0x5f31fb(0xfc)]+_0x5f31fb(0xeb)+_0x5588dd+'\x22.');const _0x1a4447=_0x24e3b9[_0x5f31fb(0xf5)][_0x5f31fb(0xe2)](_0x32ad53=>_0x32ad53[_0x5f31fb(0xfc)]===_0x1bb206[_0x5f31fb(0xfc)]);if(_0x1a4447&&_0x1a4447['alias']!==_0x1bb206[_0x5f31fb(0xf1)])throw new Error(_0x5f31fb(0x107)+_0x1bb206[_0x5f31fb(0xfc)]+_0x5f31fb(0xf4)+_0x1a4447['alias']+'\x22\x20in\x20the\x20registry\x20but\x20\x22'+_0x1bb206['alias']+_0x5f31fb(0xeb)+_0x5588dd+'\x22.');}for(const _0x2bc187 of _0x24e3b9[_0x5f31fb(0xf5)]){delete _0x2bc187[_0x5f31fb(0xfd)][_0x5588dd];}for(const _0x44b820 of _0x1fcc22){let _0x22fa2a=_0x24e3b9['models'][_0x5f31fb(0xe2)](_0x32a2fb=>_0x32a2fb['alias']===_0x44b820[_0x5f31fb(0xf1)]);!_0x22fa2a&&(_0x22fa2a={'alias':_0x44b820[_0x5f31fb(0xf1)],'tableName':_0x44b820['tableName'],'name':_0x44b820[_0x5f31fb(0x108)],'datasetCodes':{}},_0x24e3b9[_0x5f31fb(0xf5)][_0x5f31fb(0x10a)](_0x22fa2a)),(_0x5588dd===_0x24e3b9['defaultProfile']||!_0x22fa2a[_0x5f31fb(0xfd)][_0x24e3b9[_0x5f31fb(0xe3)]])&&(_0x22fa2a[_0x5f31fb(0xf1)]=_0x44b820['alias'],_0x22fa2a[_0x5f31fb(0xfc)]=_0x44b820['tableName'],_0x22fa2a['name']=_0x44b820[_0x5f31fb(0x108)]),_0x22fa2a['datasetCodes'][_0x5588dd]=_0x44b820[_0x5f31fb(0x112)];}_0x24e3b9[_0x5f31fb(0xf5)]=_0x24e3b9[_0x5f31fb(0xf5)][_0x5f31fb(0x11a)](_0x2a38e3=>Object[_0x5f31fb(0xf8)](_0x2a38e3['datasetCodes'])[_0x5f31fb(0xe8)]>0x0);}function removeUnboundProfiles(_0x2b14df){const _0x345c64=a6_0xd43591,_0x57bdc1=Object[_0x345c64(0xd9)](_0x2b14df['profiles'])[_0x345c64(0x11a)](([,_0x29d8c3])=>_0x29d8c3[_0x345c64(0x10d)]==='NOT-SET')[_0x345c64(0xf9)](([_0x16ea06])=>_0x16ea06);if(_0x57bdc1['length']===0x0)return;for(const _0x44e9ba of _0x57bdc1){delete _0x2b14df[_0x345c64(0xe9)][_0x44e9ba];for(const _0x3e1fc6 of _0x2b14df[_0x345c64(0xf5)]){delete _0x3e1fc6[_0x345c64(0xfd)][_0x44e9ba];}}_0x2b14df['models']=_0x2b14df[_0x345c64(0xf5)][_0x345c64(0x11a)](_0x372fcb=>Object[_0x345c64(0xf8)](_0x372fcb[_0x345c64(0xfd)])[_0x345c64(0xe8)]>0x0);}export function getProfileModels(_0x1ced1f,_0x48e388){const _0x5974a7=a6_0xd43591;return _0x1ced1f[_0x5974a7(0xf5)][_0x5974a7(0xf0)](_0x5cd269=>{const _0x1860cd=_0x5974a7,_0x117573=_0x5cd269[_0x1860cd(0xfd)][_0x48e388];return _0x117573?[{'datasetCode':_0x117573,'tableName':_0x5cd269['tableName'],'name':_0x5cd269[_0x1860cd(0x108)],'alias':_0x5cd269[_0x1860cd(0xf1)]}]:[];});}function a6_0x5438(){const _0x142fa4=['\x22\x20with\x20an\x20empty\x20result.\x20','Model\x20alias\x20\x22','/*\x20rabetbase-model-registry:start\x20*/','\x0aexport\x20const\x20LOVRABET_MODEL_REGISTRY\x20=\x0a\x20\x20','238908MIRkVS','object','fromEntries','isArray','utf8','Table\x20\x22','name','Verify\x20the\x20selected\x20app\x20and\x20login,\x20or\x20rerun\x20with\x20--force\x20--yes\x20if\x20the\x20profile\x20is\x20intentionally\x20empty.','push','181266LLVpJp','test','appCode','set','/*\x20rabetbase-model-registry:end\x20*/','get','join','datasetCode','outputDir','value','1053724SvvcPn','string','\x22\x20in\x20the\x20registry\x20but\x20\x22','every','2737233wgcLAI','filter','55CbZtSo','4248200xhtJed','lovrabet-model-registry/v1','stringify','NOT-SET','allowEmptyReplacement','parse','entries','/**\x0a\x20*\x20Dataset\x20model\x20facts\x20generated\x20by\x20Rabetbase\x20CLI.\x0a\x20*\x0a\x20*\x20This\x20file\x20is\x20safe\x20to\x20commit.\x20Do\x20not\x20edit\x20it\x20manually\x20and\x20never\x20add\x20credentials.\x0a\x20*/\x0a\x0aexport\x20interface\x20LovrabetModelProfile\x20{\x0a\x20\x20appCode:\x20string;\x0a\x20\x20runtimeDomain:\x20string;\x0a}\x0a\x0aexport\x20interface\x20LovrabetModelEntryMetadata\x20{\x0a\x20\x20alias:\x20string;\x0a\x20\x20tableName:\x20string;\x0a\x20\x20name:\x20string;\x0a}\x0a\x0aexport\x20type\x20LovrabetModelEntry\x20=\x20LovrabetModelEntryMetadata\x20&\x20(\x0a\x20\x20|\x20{\x20datasetCode:\x20string;\x20datasetCodes?:\x20never\x20}\x0a\x20\x20|\x20{\x20datasetCode?:\x20never;\x20datasetCodes:\x20Record<string,\x20string>\x20}\x0a);\x0a\x0aexport\x20interface\x20LovrabetModelRegistry\x20{\x0a\x20\x20defaultProfile:\x20string;\x0a\x20\x20profiles:\x20Record<string,\x20LovrabetModelProfile>;\x0a\x20\x20models:\x20LovrabetModelEntry[];\x0a}\x0a\x0a','\x20model(s)\x20in\x20profile\x20\x22','90559FNcIiv','models.generated.ts','model-runtime.ts','\x22\x20and\x20\x22','32eAKIfs','\x22\x20maps\x20to\x20both\x20aliases\x20\x22','find','defaultProfile','values','\x20is\x20not\x20a\x20valid\x20Rabetbase\x20generated\x20file.\x20Move\x20or\x20repair\x20it\x20before\x20pulling\x20models\x20again.','indexOf','25494733oGmJtB','length','profiles','protocol','\x22\x20in\x20profile\x20\x22','10YVxPPT','profileName','replace','split','flatMap','alias','\x22\x20maps\x20to\x20table\x20\x22','lovrabet-model-registry/v2','\x22\x20maps\x20to\x20alias\x20\x22','models','.tmp','Refusing\x20to\x20replace\x20','keys','map','9ipJoAe','key','tableName','datasetCodes'];a6_0x5438=function(){return _0x142fa4;};return a6_0x5438();}export function updateModelRegistry(_0x439f3a){const _0x1258fd=a6_0xd43591,_0x3dd240=a6_0x43a414[_0x1258fd(0x111)](_0x439f3a[_0x1258fd(0x113)],MODEL_REGISTRY_FILE_NAME),_0x5ddf29=existsSync(_0x3dd240),_0x12cf19=readModelRegistry(_0x3dd240);if(_0x5ddf29&&!_0x12cf19)throw new Error(MODEL_REGISTRY_FILE_NAME+_0x1258fd(0xe5));const _0x9b7dcf=_0x12cf19??emptyRegistry(_0x439f3a[_0x1258fd(0xe3)]);if(_0x439f3a['appCode']!==_0x1258fd(0xd6))removeUnboundProfiles(_0x9b7dcf);const _0x3f308e=_0x12cf19?getProfileModels(_0x12cf19,_0x439f3a[_0x1258fd(0xed)])[_0x1258fd(0xe8)]:0x0;if(_0x3f308e>0x0&&_0x439f3a['models'][_0x1258fd(0xe8)]===0x0&&!_0x439f3a[_0x1258fd(0xd7)])throw new Error(_0x1258fd(0xf7)+_0x3f308e+_0x1258fd(0xdb)+_0x439f3a[_0x1258fd(0xed)]+_0x1258fd(0xfe)+_0x1258fd(0x109));_0x9b7dcf[_0x1258fd(0xe3)]=_0x439f3a[_0x1258fd(0xe3)],_0x9b7dcf[_0x1258fd(0xe9)][_0x439f3a[_0x1258fd(0xed)]]={'appCode':_0x439f3a[_0x1258fd(0x10d)],'runtimeDomain':_0x439f3a['runtimeDomain']},mergeProfileModels(_0x9b7dcf,_0x439f3a[_0x1258fd(0xed)],_0x439f3a[_0x1258fd(0xf5)]),mkdirSync(_0x439f3a['outputDir'],{'recursive':!![]});const _0x5354e3=_0x3dd240+'.'+process['pid']+'.'+Date['now']()+_0x1258fd(0xf6);try{writeFileSync(_0x5354e3,registrySource(_0x9b7dcf),{'encoding':_0x1258fd(0x106),'mode':0x1a4}),renameSync(_0x5354e3,_0x3dd240);}catch(_0x33cc92){try{unlinkSync(_0x5354e3);}catch{}throw _0x33cc92;}return{'path':_0x3dd240,'registry':_0x9b7dcf,'existed':_0x5ddf29};}
@@ -1 +1 @@
1
- (function(_0x60b4e2,_0x5ae1e7){const _0x588271=a7_0x2198,_0x174655=_0x60b4e2();while(!![]){try{const _0x207be2=-parseInt(_0x588271(0x9e))/0x1*(-parseInt(_0x588271(0x98))/0x2)+-parseInt(_0x588271(0x94))/0x3+-parseInt(_0x588271(0x97))/0x4*(-parseInt(_0x588271(0x8a))/0x5)+parseInt(_0x588271(0x8b))/0x6+-parseInt(_0x588271(0x99))/0x7*(parseInt(_0x588271(0x91))/0x8)+-parseInt(_0x588271(0x9a))/0x9*(-parseInt(_0x588271(0x90))/0xa)+-parseInt(_0x588271(0x95))/0xb;if(_0x207be2===_0x5ae1e7)break;else _0x174655['push'](_0x174655['shift']());}catch(_0x205cb6){_0x174655['push'](_0x174655['shift']());}}}(a7_0x20f7,0x1ca24));import{readFileSync}from'node:fs';import a7_0x47499a from'node:path';import{fileURLToPath}from'node:url';import a7_0x124ff1 from'prettier';import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function a7_0x20f7(){const _0x1eb9a5=['86saHpit','161tFJNlQ','9nfKNnM','format','all','resolve','4061CfZTlH','typescript','../../templates/generate-api','{ProjectRoutingImport}','join','20555zBZJex','33090axRvnj','model-runtime.ts.tpl','utf8','profile-client.ts.tpl','relative','1549410vQIpBH','55976oaycHb','dirname','startsWith','122625ROayRl','673310Kamjjs','replace','44ydRTCE'];a7_0x20f7=function(){return _0x1eb9a5;};return a7_0x20f7();}function relativeImport(_0x1f3b0e,_0x3c88e7){const _0x345dc1=a7_0x2198;let _0x14b479=a7_0x47499a[_0x345dc1(0x8f)](_0x1f3b0e,_0x3c88e7)[_0x345dc1(0x96)](/\\/g,'/');if(!_0x14b479[_0x345dc1(0x93)]('.'))_0x14b479='./'+_0x14b479;return _0x14b479;}function a7_0x2198(_0x1baacb,_0x4c47b5){_0x1baacb=_0x1baacb-0x89;const _0x20f707=a7_0x20f7();let _0x2198e1=_0x20f707[_0x1baacb];return _0x2198e1;}export async function renderModelRegistryScaffold(_0x55726b,_0x575af8=process['cwd']()){const _0x300c4a=a7_0x2198,_0x4b7a14=fileURLToPath(import.meta.url),_0x30b7cb=a7_0x47499a[_0x300c4a(0x9d)](a7_0x47499a[_0x300c4a(0x92)](_0x4b7a14),_0x300c4a(0xa0)),_0x5a6639=relativeImport(a7_0x47499a[_0x300c4a(0x9d)](_0x55726b),a7_0x47499a['resolve'](_0x575af8,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x5c092a=readFileSync(a7_0x47499a[_0x300c4a(0x89)](_0x30b7cb,'profile-api.ts.tpl'),_0x300c4a(0x8d))[_0x300c4a(0x96)](_0x300c4a(0xa1),_0x5a6639),[_0x238e5c,_0x63f1e0,_0x37042b]=await Promise[_0x300c4a(0x9c)]([a7_0x124ff1['format'](_0x5c092a,{'parser':_0x300c4a(0x9f)}),a7_0x124ff1[_0x300c4a(0x9b)](readFileSync(a7_0x47499a[_0x300c4a(0x89)](_0x30b7cb,_0x300c4a(0x8e)),'utf8'),{'parser':'typescript'}),a7_0x124ff1[_0x300c4a(0x9b)](readFileSync(a7_0x47499a[_0x300c4a(0x89)](_0x30b7cb,_0x300c4a(0x8c)),'utf8'),{'parser':_0x300c4a(0x9f)})]);return{'api':_0x238e5c,'client':_0x63f1e0,'modelRuntime':_0x37042b};}
1
+ (function(_0x1663bc,_0x1a82d4){const _0x2fcebe=a7_0x4e50,_0x260ab1=_0x1663bc();while(!![]){try{const _0x58a959=parseInt(_0x2fcebe(0x80))/0x1+-parseInt(_0x2fcebe(0x85))/0x2*(parseInt(_0x2fcebe(0x86))/0x3)+-parseInt(_0x2fcebe(0x7f))/0x4*(parseInt(_0x2fcebe(0x7a))/0x5)+-parseInt(_0x2fcebe(0x76))/0x6*(-parseInt(_0x2fcebe(0x84))/0x7)+parseInt(_0x2fcebe(0x88))/0x8*(-parseInt(_0x2fcebe(0x82))/0x9)+-parseInt(_0x2fcebe(0x8b))/0xa+parseInt(_0x2fcebe(0x81))/0xb*(parseInt(_0x2fcebe(0x8a))/0xc);if(_0x58a959===_0x1a82d4)break;else _0x260ab1['push'](_0x260ab1['shift']());}catch(_0x5d6dcb){_0x260ab1['push'](_0x260ab1['shift']());}}}(a7_0x1bb0,0x6cc32));import{readFileSync}from'node:fs';import a7_0x2e63aa from'node:path';import{fileURLToPath}from'node:url';import a7_0x1217d8 from'prettier';function a7_0x4e50(_0x161699,_0x27a30d){_0x161699=_0x161699-0x74;const _0x1bb05f=a7_0x1bb0();let _0x4e5056=_0x1bb05f[_0x161699];return _0x4e5056;}import{PROJECT_DOMAIN_ROUTING_FILE_NAME}from'../config/project-domain-routing.js';function relativeImport(_0x2eb801,_0x489112){const _0x294e96=a7_0x4e50;let _0x3222e2=a7_0x2e63aa[_0x294e96(0x75)](_0x2eb801,_0x489112)['replace'](/\\/g,'/');if(!_0x3222e2['startsWith']('.'))_0x3222e2='./'+_0x3222e2;return _0x3222e2;}function a7_0x1bb0(){const _0x10149e=['5038ePcddg','717CINxDd','replace','1558928ymmSUn','join','3518292hOGVLA','8532640KtmrIv','utf8','{ProjectRoutingImport}','relative','2226570sdBklD','all','../../templates/generate-api','typescript','49745mERZgu','format','dirname','model-runtime.ts.tpl','profile-api.ts.tpl','224IVSXXX','815755WLLQoP','55BsQxmF','9EiEwZq','profile-client.ts.tpl','7LPYyEb'];a7_0x1bb0=function(){return _0x10149e;};return a7_0x1bb0();}export async function renderModelRegistryScaffold(_0xeb21c2,_0xa4ee6e=process['cwd']()){const _0x2513c6=a7_0x4e50,_0xe4b744=fileURLToPath(import.meta.url),_0x572130=a7_0x2e63aa['resolve'](a7_0x2e63aa[_0x2513c6(0x7c)](_0xe4b744),_0x2513c6(0x78)),_0x54b8dc=relativeImport(a7_0x2e63aa['resolve'](_0xeb21c2),a7_0x2e63aa['resolve'](_0xa4ee6e,PROJECT_DOMAIN_ROUTING_FILE_NAME)),_0x2ba59e=readFileSync(a7_0x2e63aa[_0x2513c6(0x89)](_0x572130,_0x2513c6(0x7e)),_0x2513c6(0x8c))[_0x2513c6(0x87)](_0x2513c6(0x74),_0x54b8dc),[_0xd4d4ca,_0x1922ba,_0x2ae1e8]=await Promise[_0x2513c6(0x77)]([a7_0x1217d8[_0x2513c6(0x7b)](_0x2ba59e,{'parser':_0x2513c6(0x79)}),a7_0x1217d8[_0x2513c6(0x7b)](readFileSync(a7_0x2e63aa[_0x2513c6(0x89)](_0x572130,_0x2513c6(0x83)),_0x2513c6(0x8c)),{'parser':_0x2513c6(0x79)}),a7_0x1217d8['format'](readFileSync(a7_0x2e63aa[_0x2513c6(0x89)](_0x572130,_0x2513c6(0x7d)),_0x2513c6(0x8c)),{'parser':'typescript'})]);return{'api':_0xd4d4ca,'client':_0x1922ba,'modelRuntime':_0x2ae1e8};}
@@ -1 +1 @@
1
- (function(_0x1e19d8,_0x530f4c){const _0x1419c3=a8_0x21a9,_0x3fcbb5=_0x1e19d8();while(!![]){try{const _0x13fa7b=-parseInt(_0x1419c3(0xe6))/0x1+-parseInt(_0x1419c3(0xf6))/0x2+parseInt(_0x1419c3(0xdd))/0x3*(-parseInt(_0x1419c3(0xe9))/0x4)+parseInt(_0x1419c3(0xfb))/0x5*(parseInt(_0x1419c3(0xfc))/0x6)+parseInt(_0x1419c3(0xe2))/0x7*(parseInt(_0x1419c3(0xf1))/0x8)+-parseInt(_0x1419c3(0xe3))/0x9*(parseInt(_0x1419c3(0xf3))/0xa)+-parseInt(_0x1419c3(0xfd))/0xb*(-parseInt(_0x1419c3(0xf5))/0xc);if(_0x13fa7b===_0x530f4c)break;else _0x3fcbb5['push'](_0x3fcbb5['shift']());}catch(_0x5462bd){_0x3fcbb5['push'](_0x3fcbb5['shift']());}}}(a8_0x4556,0x57042));import{existsSync}from'node:fs';import a8_0x355c8b from'node:path';function a8_0x21a9(_0x42474a,_0xd9891){_0x42474a=_0x42474a-0xdd;const _0x455607=a8_0x4556();let _0x21a98f=_0x455607[_0x42474a];return _0x21a98f;}import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';import{CliErrors}from'../errors.js';function a8_0x4556(){const _0x3874ac=['186241PLTBzm','915uFwcdw','filter','join','api.ts','-api.ts','427aMCyjY','9igFAsO','cwd','apps','378883iaUVIU','`\x20first.','validation','1964cxHbjs','\x22\x20is\x20missing\x20from\x20','AppCode\x20\x22','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','Run\x20`','string','appcode','appCode','85288tqDfSi','defaultProfile','5201930pDNHKZ','length','204qiokca','111534LGgbKF','defaultApp','entries','profiles','object','1340maCQqi','11706DRYxoZ'];a8_0x4556=function(){return _0x3874ac;};return a8_0x4556();}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x3865dc,_0x8b664,_0x31e999){const _0x185302=a8_0x21a9,_0x472932=a8_0x355c8b['resolve'](process[_0x185302(0xe4)](),_0x3865dc),_0x2e7f37=a8_0x355c8b['resolve'](_0x472932,_0x185302(0xe0)),_0x3236e7=a8_0x355c8b['resolve'](_0x472932,MODEL_REGISTRY_FILE_NAME),_0xc1ed0f=readModelRegistry(_0x3236e7);if(_0xc1ed0f){const _0x530277=_0x8b664?Object[_0x185302(0xf8)](_0xc1ed0f[_0x185302(0xf9)])[_0x185302(0xde)](([,_0x54e759])=>_0x54e759[_0x185302(0xf0)]===_0x8b664):[];if(_0x31e999){if(_0xc1ed0f[_0x185302(0xf9)][_0x31e999])return{'filePath':_0x3236e7,'profileName':_0x31e999};if(_0x530277[_0x185302(0xf4)]>0x0)throw CliErrors[_0x185302(0xe8)]('Model\x20profile\x20\x22'+_0x31e999+_0x185302(0xea)+MODEL_REGISTRY_FILE_NAME+'.',_0x185302(0xed)+CLI_BIN_NAME+'\x20api\x20pull\x20--app\x20'+_0x31e999+_0x185302(0xe7));}else{if(_0x530277[_0x185302(0xf4)]===0x1)return{'filePath':_0x3236e7,'profileName':_0x530277[0x0][0x0]};if(_0x530277['length']>0x1)throw new Error(_0x185302(0xeb)+_0x8b664+_0x185302(0xec)+_0x530277['map'](([_0x8537d4])=>_0x8537d4)[_0x185302(0xdf)](',\x20')+'.\x20'+'Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.');if(_0xc1ed0f[_0x185302(0xf9)][_0xc1ed0f[_0x185302(0xf2)]]&&!_0x8b664)return{'filePath':_0x3236e7,'profileName':_0xc1ed0f[_0x185302(0xf2)]};}}if(!_0x8b664&&!_0x31e999)return{'filePath':_0x2e7f37};const _0x4c0b05=readRawConfig(),_0x4c9d21=_0x4c0b05[_0x185302(0xe5)]&&typeof _0x4c0b05['apps']===_0x185302(0xfa)?_0x4c0b05[_0x185302(0xe5)]:{},_0x4cfb8f=_0x31e999&&_0x4c9d21[_0x31e999]?[_0x31e999,_0x4c9d21[_0x31e999]]:Object[_0x185302(0xf8)](_0x4c9d21)['find'](([,_0x196bf4])=>_0x196bf4?.[_0x185302(0xef)]===_0x8b664);if(!_0x4cfb8f)return{'filePath':_0x2e7f37};const [_0x5b3e6c,_0x526d87]=_0x4cfb8f,_0x2f0a31=typeof _0x4c0b05[_0x185302(0xf7)]===_0x185302(0xee)?_0x4c0b05[_0x185302(0xf7)]:undefined;if(_0x526d87?.['apiDir'])return{'filePath':_0x2e7f37};if(_0x2f0a31&&_0x5b3e6c!==_0x2f0a31){const _0x11f47d=a8_0x355c8b['resolve'](_0x472932,_0x5b3e6c+_0x185302(0xe1));if(existsSync(_0x11f47d))return{'filePath':_0x11f47d};}return{'filePath':_0x2e7f37};}
1
+ function a8_0x12ad(_0x3efec9,_0x134f36){_0x3efec9=_0x3efec9-0xa5;const _0x2ff6e1=a8_0x2ff6();let _0x12ada2=_0x2ff6e1[_0x3efec9];return _0x12ada2;}(function(_0x1faf42,_0x18c0b6){const _0x5af98f=a8_0x12ad,_0x24f75c=_0x1faf42();while(!![]){try{const _0x1a569c=parseInt(_0x5af98f(0xb0))/0x1+-parseInt(_0x5af98f(0xb3))/0x2*(-parseInt(_0x5af98f(0xb9))/0x3)+parseInt(_0x5af98f(0xb1))/0x4+-parseInt(_0x5af98f(0xa9))/0x5+-parseInt(_0x5af98f(0xbe))/0x6+-parseInt(_0x5af98f(0xc4))/0x7+parseInt(_0x5af98f(0xb7))/0x8*(parseInt(_0x5af98f(0xad))/0x9);if(_0x1a569c===_0x18c0b6)break;else _0x24f75c['push'](_0x24f75c['shift']());}catch(_0x34f6c4){_0x24f75c['push'](_0x24f75c['shift']());}}}(a8_0x2ff6,0xf3bae));import{existsSync}from'node:fs';import a8_0x45ec7e from'node:path';import{readRawConfig}from'../context/config-loader.js';import{MODEL_REGISTRY_FILE_NAME,readModelRegistry}from'../api/model-registry-file.js';function a8_0x2ff6(){const _0x1b5312=['map','resolve','1939720inWLng','filter','1713NMfaQW','cwd','\x22\x20belongs\x20to\x20multiple\x20model\x20profiles:\x20','-api.ts','apiDir','5332116qMbFBM','`\x20first.','api.ts','profiles','Run\x20`','AppCode\x20\x22','13532736sjwpFn','entries','validation','appcode','length','\x22\x20is\x20missing\x20from\x20','5079505MPDSRP','string','defaultApp','defaultProfile','45PkaqDu','object','\x20api\x20pull\x20--app\x20','728223iEwIrw','4198248SyMPYc','Select\x20the\x20target\x20explicitly\x20with\x20--app\x20<profile>.','6466whsZKQ','apps'];a8_0x2ff6=function(){return _0x1b5312;};return a8_0x2ff6();}import{CliErrors}from'../errors.js';import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveApiModelSource(_0x33177f,_0xd88679,_0x41d0c7){const _0x484aa0=a8_0x12ad,_0x31d72a=a8_0x45ec7e[_0x484aa0(0xb6)](process[_0x484aa0(0xba)](),_0x33177f),_0x43a0b8=a8_0x45ec7e['resolve'](_0x31d72a,_0x484aa0(0xc0)),_0x589b93=a8_0x45ec7e['resolve'](_0x31d72a,MODEL_REGISTRY_FILE_NAME),_0x24f1ed=readModelRegistry(_0x589b93);if(_0x24f1ed){const _0x2d7363=_0xd88679?Object[_0x484aa0(0xc5)](_0x24f1ed[_0x484aa0(0xc1)])[_0x484aa0(0xb8)](([,_0x113954])=>_0x113954['appCode']===_0xd88679):[];if(_0x41d0c7){if(_0x24f1ed[_0x484aa0(0xc1)][_0x41d0c7])return{'filePath':_0x589b93,'profileName':_0x41d0c7};if(_0x2d7363[_0x484aa0(0xa7)]>0x0)throw CliErrors[_0x484aa0(0xa5)]('Model\x20profile\x20\x22'+_0x41d0c7+_0x484aa0(0xa8)+MODEL_REGISTRY_FILE_NAME+'.',_0x484aa0(0xc2)+CLI_BIN_NAME+_0x484aa0(0xaf)+_0x41d0c7+_0x484aa0(0xbf));}else{if(_0x2d7363[_0x484aa0(0xa7)]===0x1)return{'filePath':_0x589b93,'profileName':_0x2d7363[0x0][0x0]};if(_0x2d7363[_0x484aa0(0xa7)]>0x1)throw new Error(_0x484aa0(0xc3)+_0xd88679+_0x484aa0(0xbb)+_0x2d7363[_0x484aa0(0xb5)](([_0x3565ed])=>_0x3565ed)['join'](',\x20')+'.\x20'+_0x484aa0(0xb2));if(_0x24f1ed[_0x484aa0(0xc1)][_0x24f1ed[_0x484aa0(0xac)]]&&!_0xd88679)return{'filePath':_0x589b93,'profileName':_0x24f1ed[_0x484aa0(0xac)]};}}if(!_0xd88679&&!_0x41d0c7)return{'filePath':_0x43a0b8};const _0x4907ff=readRawConfig(),_0x4b00d8=_0x4907ff[_0x484aa0(0xb4)]&&typeof _0x4907ff['apps']===_0x484aa0(0xae)?_0x4907ff[_0x484aa0(0xb4)]:{},_0x95fab7=_0x41d0c7&&_0x4b00d8[_0x41d0c7]?[_0x41d0c7,_0x4b00d8[_0x41d0c7]]:Object['entries'](_0x4b00d8)['find'](([,_0x43f087])=>_0x43f087?.[_0x484aa0(0xa6)]===_0xd88679);if(!_0x95fab7)return{'filePath':_0x43a0b8};const [_0x2a4280,_0x41f6f8]=_0x95fab7,_0x2cf552=typeof _0x4907ff[_0x484aa0(0xab)]===_0x484aa0(0xaa)?_0x4907ff[_0x484aa0(0xab)]:undefined;if(_0x41f6f8?.[_0x484aa0(0xbd)])return{'filePath':_0x43a0b8};if(_0x2cf552&&_0x2a4280!==_0x2cf552){const _0x15e59a=a8_0x45ec7e[_0x484aa0(0xb6)](_0x31d72a,_0x2a4280+_0x484aa0(0xbc));if(existsSync(_0x15e59a))return{'filePath':_0x15e59a};}return{'filePath':_0x43a0b8};}
@@ -1 +1 @@
1
- (function(_0x300288,_0x45749c){const _0x110035=a9_0x44b7,_0x5e4eaf=_0x300288();while(!![]){try{const _0x3e5719=-parseInt(_0x110035(0x160))/0x1*(-parseInt(_0x110035(0x16a))/0x2)+-parseInt(_0x110035(0x16f))/0x3+-parseInt(_0x110035(0x165))/0x4*(-parseInt(_0x110035(0x169))/0x5)+parseInt(_0x110035(0x162))/0x6*(-parseInt(_0x110035(0x173))/0x7)+parseInt(_0x110035(0x171))/0x8+parseInt(_0x110035(0x15d))/0x9*(parseInt(_0x110035(0x16b))/0xa)+-parseInt(_0x110035(0x16c))/0xb;if(_0x3e5719===_0x45749c)break;else _0x5e4eaf['push'](_0x5e4eaf['shift']());}catch(_0x5e98c1){_0x5e4eaf['push'](_0x5e4eaf['shift']());}}}(a9_0x444d,0xf41bb));function a9_0x44b7(_0xe6299,_0x58e1f5){_0xe6299=_0xe6299-0x15d;const _0x444d02=a9_0x444d();let _0x44b737=_0x444d02[_0xe6299];return _0x44b737;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';function a9_0x444d(){const _0x6ab16c=['stop','1wbBjgJ','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','10747734rcZBUJ','โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','2219188ghlUCw','!\x20Login\x20failed.','No\x20valid\x20session.\x20Login\x20now?','Run\x20`','15NdmpAL','1467586FmIFQL','611810jAdANR','18359649DzWfyx','nonInteractive','autoYes','2318466qKQbQv','log','13868760IgMpus','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','7GzMJYt','start','162yctHCr','validation'];a9_0x444d=function(){return _0x6ab16c;};return a9_0x444d();}import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x452e98 from'ora';export async function runAuthServer(_0x3ad9d4){const _0x99d08b=a9_0x44b7,_0x3ef292=await getIsSessionValid();if(_0x3ef292){console[_0x99d08b(0x170)](_0x99d08b(0x163));return;}if(_0x3ad9d4?.[_0x99d08b(0x16d)]&&!_0x3ad9d4['autoYes'])throw CliErrors[_0x99d08b(0x15e)]('Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.',_0x99d08b(0x168)+CLI_BIN_NAME+_0x99d08b(0x161));const _0xa640ec=_0x3ad9d4?.[_0x99d08b(0x16e)]?!![]:await confirm({'message':_0x99d08b(0x167),'default':!![]});if(!_0xa640ec)return;if(_0x3ad9d4?.[_0x99d08b(0x16d)]){console[_0x99d08b(0x170)](_0x99d08b(0x172));const _0x145748=await authServer({'silent':![],'openBrowser':![]});_0x145748?console[_0x99d08b(0x170)]('*\x20Login\x20successful!'):console[_0x99d08b(0x170)](_0x99d08b(0x166));return;}const _0x1ce84b=a9_0x452e98(_0x99d08b(0x164))[_0x99d08b(0x174)](),_0x2db246=await authServer({'silent':!![],'openBrowser':!![]});_0x1ce84b[_0x99d08b(0x15f)](),_0x2db246?console[_0x99d08b(0x170)]('*\x20Login\x20successful!'):console[_0x99d08b(0x170)]('!\x20Login\x20failed.');}
1
+ (function(_0x23762d,_0x29738a){const _0xec7cc7=a9_0xdb78,_0x5a88b0=_0x23762d();while(!![]){try{const _0x2c54e9=parseInt(_0xec7cc7(0x1d0))/0x1+-parseInt(_0xec7cc7(0x1c2))/0x2+-parseInt(_0xec7cc7(0x1cc))/0x3*(parseInt(_0xec7cc7(0x1c7))/0x4)+parseInt(_0xec7cc7(0x1bf))/0x5+-parseInt(_0xec7cc7(0x1d6))/0x6*(-parseInt(_0xec7cc7(0x1c8))/0x7)+-parseInt(_0xec7cc7(0x1d2))/0x8+-parseInt(_0xec7cc7(0x1c5))/0x9*(-parseInt(_0xec7cc7(0x1c6))/0xa);if(_0x2c54e9===_0x29738a)break;else _0x5a88b0['push'](_0x5a88b0['shift']());}catch(_0x2c0a6b){_0x5a88b0['push'](_0x5a88b0['shift']());}}}(a9_0x325b,0x3adb7));import{getIsSessionValid}from'../auth/is-session-valid.js';function a9_0xdb78(_0x4e3460,_0x253799){_0x4e3460=_0x4e3460-0x1bf;const _0x325b15=a9_0x325b();let _0xdb78ee=_0x325b15[_0x4e3460];return _0xdb78ee;}import{authServer}from'../auth/auth-server.js';function a9_0x325b(){const _0xf6d8bd=['Run\x20`','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','109315NnQlKU','!\x20Login\x20failed.','3556880hLsooi','log','No\x20valid\x20session.\x20Login\x20now?','*\x20Login\x20successful!','1150752kwVeap','1034205WULXQZ','Browser\x20login\x20cannot\x20run\x20in\x20non-interactive\x20mode.','start','507726oxaHSO','nonInteractive','stop','178677AdMHEi','230nwwAfs','100060afodKn','7MabNhq','\x20auth\x20login\x20--yes`\x20and\x20open\x20the\x20printed\x20URL\x20in\x20your\x20browser.','Starting\x20browser\x20login.\x20Share\x20the\x20printed\x20URL\x20with\x20the\x20user.','validation','3dfjwNA','autoYes'];a9_0x325b=function(){return _0xf6d8bd;};return a9_0x325b();}import{CLI_BIN_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';import{confirm}from'@inquirer/prompts';import a9_0x3f33c7 from'ora';export async function runAuthServer(_0x370107){const _0x445923=a9_0xdb78,_0x3ab310=await getIsSessionValid();if(_0x3ab310){console[_0x445923(0x1d3)]('โˆš\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}if(_0x370107?.[_0x445923(0x1c3)]&&!_0x370107[_0x445923(0x1cd)])throw CliErrors[_0x445923(0x1cb)](_0x445923(0x1c0),_0x445923(0x1ce)+CLI_BIN_NAME+_0x445923(0x1c9));const _0x555947=_0x370107?.[_0x445923(0x1cd)]?!![]:await confirm({'message':_0x445923(0x1d4),'default':!![]});if(!_0x555947)return;if(_0x370107?.['nonInteractive']){console[_0x445923(0x1d3)](_0x445923(0x1ca));const _0x5e991e=await authServer({'silent':![],'openBrowser':![]});_0x5e991e?console['log'](_0x445923(0x1d5)):console[_0x445923(0x1d3)](_0x445923(0x1d1));return;}const _0x26c805=a9_0x3f33c7(_0x445923(0x1cf))[_0x445923(0x1c1)](),_0x339f37=await authServer({'silent':!![],'openBrowser':!![]});_0x26c805[_0x445923(0x1c4)](),_0x339f37?console[_0x445923(0x1d3)](_0x445923(0x1d5)):console[_0x445923(0x1d3)](_0x445923(0x1d1));}
@@ -1 +1 @@
1
- const a10_0x50966c=a10_0x64d8;(function(_0x17dbe6,_0x39bc8e){const _0x117a05=a10_0x64d8,_0x31af70=_0x17dbe6();while(!![]){try{const _0x2e2a63=parseInt(_0x117a05(0x190))/0x1+parseInt(_0x117a05(0x18b))/0x2+parseInt(_0x117a05(0x187))/0x3+parseInt(_0x117a05(0x19a))/0x4*(-parseInt(_0x117a05(0x1a8))/0x5)+parseInt(_0x117a05(0x1a1))/0x6+-parseInt(_0x117a05(0x196))/0x7+parseInt(_0x117a05(0x198))/0x8;if(_0x2e2a63===_0x39bc8e)break;else _0x31af70['push'](_0x31af70['shift']());}catch(_0x92507){_0x31af70['push'](_0x31af70['shift']());}}}(a10_0x52c5,0x286bd));function a10_0x52c5(){const _0xeb2032=['origin','3208528VdaEtB','createServer','40496LIJSuU','/api/auth/get-session','win32','certificateUrl','๐Ÿ“\x20Login\x20URL:','local','address','186912emApUC','timeoutMs','object','cmd\x20/c\x20start\x20\x22\x22\x20\x22','/sign-in?redirect=','close','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','160tbmSiV','๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically','xdg-open\x20\x22','user','end','listen','isAuth','json','/cert/lovrabet-dev.json','cookie','Auth\x20server\x20error:','platform','log','text/html;\x20charset=utf-8','headers','open\x20\x22','378972dKnXpK','darwin','writeHead','๐Ÿ”\x20Starting\x20login\x20service...','83030kPORWi','then','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','9741rYEIAI','catch','session','openBrowser','port','error','841855rNsqtc'];a10_0x52c5=function(){return _0xeb2032;};return a10_0x52c5();}import{writeFileSync}from'node:fs';import a10_0x4a9e8e from'node:http';import a10_0x10baf1 from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';function a10_0x64d8(_0x23d125,_0x501267){_0x23d125=_0x23d125-0x183;const _0x52c506=a10_0x52c5();let _0x64d875=_0x52c506[_0x23d125];return _0x64d875;}import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0xf4907d){const _0x2fede5=a10_0x64d8;if(!_0xf4907d)return getProjectDomainRoutingManifest()[_0x2fede5(0x19f)];const _0x20cf2e=getOfficialRoutingProfile(_0xf4907d),_0x1d0b64=getOfficialRoutingCdn(_0xf4907d);return{'origin':_0x20cf2e['local']['origin'],'certificateUrl':_0x1d0b64['lovrabet']+_0x2fede5(0x1b1)};}function withPort(_0x3d87c0,_0x1d1fcd){const _0xad033b=a10_0x64d8,_0x1f2af7=new URL(_0x3d87c0);return _0x1f2af7[_0xad033b(0x194)]=String(_0x1d1fcd),_0x1f2af7[_0xad033b(0x197)];}export async function authServer(_0x5ca9b0){const _0x3fbc1f=a10_0x64d8,_0x403ba8=_0x5ca9b0?.['silent']||![],_0x4610d9=_0x5ca9b0?.[_0x3fbc1f(0x193)]??!![],_0x4041bd=_0x5ca9b0?.[_0x3fbc1f(0x1a2)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x1bfc27=resolveAuthCallbackRouting(),_0x222c3f=_0x1bfc27[_0x3fbc1f(0x19d)]?await(await fetch(_0x1bfc27[_0x3fbc1f(0x19d)]))[_0x3fbc1f(0x1b0)]():undefined;return new Promise(async(_0x44bf16,_0x5bbaae)=>{const _0x5e2a28=_0x3fbc1f;let _0x517bbd=0x0,_0x3cd18d=![],_0x370aa9;const _0x570d37=async(_0x2ac54a,_0x1193fa)=>{const _0x201e7b=a10_0x64d8,_0x5accec=getUserDomain(),_0x14324e=_0x2ac54a[_0x201e7b(0x185)][_0x201e7b(0x1b2)]||'',_0x1b4c7c=await fetch(_0x5accec+_0x201e7b(0x19b),{'headers':{'cookie':_0x14324e}})[_0x201e7b(0x18c)](_0x36b287=>_0x36b287['json']()),_0x285140=_0x1b4c7c&&_0x1b4c7c[_0x201e7b(0x192)]&&_0x1b4c7c[_0x201e7b(0x1ac)];if(_0x285140){writeFileSync(cookieFile,_0x14324e,'utf-8');const _0x58d9eb=buildLoginSuccessHtml();_0x1193fa['writeHead'](0xc8,{'Content-Type':_0x201e7b(0x184)}),_0x1193fa[_0x201e7b(0x1ad)](_0x58d9eb),_0x27ca06(!![]);}else{const _0x1aa200=encodeURIComponent(withPort(_0x1bfc27[_0x201e7b(0x197)],_0x517bbd));_0x1193fa[_0x201e7b(0x189)](0x12e,{'location':_0x5accec+_0x201e7b(0x1a5)+_0x1aa200}),_0x1193fa[_0x201e7b(0x1ad)]();return;}},_0x94fa5d=_0x222c3f?a10_0x10baf1[_0x5e2a28(0x199)](_0x222c3f,_0x570d37):a10_0x4a9e8e[_0x5e2a28(0x199)](_0x570d37);function _0x27ca06(_0xc4d882){const _0x1271e9=_0x5e2a28;if(_0x3cd18d)return;_0x3cd18d=!![],_0x370aa9&&clearTimeout(_0x370aa9),_0x94fa5d[_0x1271e9(0x1a6)](),_0x44bf16(_0xc4d882);}_0x94fa5d[_0x5e2a28(0x1ae)](0x0,'127.0.0.1',()=>{const _0x2220e2=_0x5e2a28,_0x51f044=_0x94fa5d[_0x2220e2(0x1a0)]();_0x517bbd=typeof _0x51f044===_0x2220e2(0x1a3)&&_0x51f044?_0x51f044[_0x2220e2(0x194)]:Number(_0x51f044);const _0x309754=withPort(_0x1bfc27[_0x2220e2(0x197)],_0x517bbd);_0x370aa9=setTimeout(()=>{const _0x1f2965=_0x2220e2;!_0x403ba8&&console[_0x1f2965(0x183)](_0x1f2965(0x1a7)),_0x27ca06(![]);},_0x4041bd);!_0x403ba8&&(console[_0x2220e2(0x183)](_0x2220e2(0x18a)),console[_0x2220e2(0x183)](_0x2220e2(0x19e),_0x309754),_0x4610d9?(console['log']('๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console[_0x2220e2(0x183)](''),console[_0x2220e2(0x183)](_0x2220e2(0x18e))):console[_0x2220e2(0x183)](_0x2220e2(0x1a9)),console[_0x2220e2(0x183)](''));if(!_0x4610d9)return;openInBrowser(_0x309754)[_0x2220e2(0x18c)](_0x1a6f6a=>{const _0x4b1531=_0x2220e2;!_0x403ba8&&(_0x1a6f6a?console[_0x4b1531(0x183)](_0x4b1531(0x18f)):(console[_0x4b1531(0x183)](_0x4b1531(0x1aa)),console[_0x4b1531(0x183)]('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x309754)),console[_0x4b1531(0x183)](''));})[_0x2220e2(0x191)](()=>{const _0x53d431=_0x2220e2;!_0x403ba8&&(console[_0x53d431(0x183)](_0x53d431(0x1aa)),console[_0x53d431(0x183)](_0x53d431(0x18d),_0x309754),console[_0x53d431(0x183)](''));});}),_0x94fa5d['on'](_0x5e2a28(0x195),_0x591898=>{const _0x4c06bc=_0x5e2a28;if(_0x3cd18d)return;_0x3cd18d=!![],_0x370aa9&&clearTimeout(_0x370aa9),!_0x403ba8&&console[_0x4c06bc(0x195)](_0x4c06bc(0x1b3),_0x591898),_0x94fa5d[_0x4c06bc(0x1a6)](),_0x5bbaae(_0x591898);});});}function openInBrowser(_0x453d13){return new Promise(_0xa24f99=>{const _0x18fc36=a10_0x64d8,_0x24e45b=process[_0x18fc36(0x1b4)];let _0x37e877;if(_0x24e45b===_0x18fc36(0x19c))_0x37e877=_0x18fc36(0x1a4)+_0x453d13+'\x22';else _0x24e45b===_0x18fc36(0x188)?_0x37e877=_0x18fc36(0x186)+_0x453d13+'\x22':_0x37e877=_0x18fc36(0x1ab)+_0x453d13+'\x22';exec(_0x37e877,_0x1c88d7=>{_0x1c88d7?_0xa24f99(![]):_0xa24f99(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x50966c(0x183)](a10_0x50966c(0x1af),isAuth);}
1
+ const a10_0x3b32ee=a10_0x2f25;(function(_0x5b5f13,_0x5a64d5){const _0x3d66a9=a10_0x2f25,_0x335e30=_0x5b5f13();while(!![]){try{const _0x36f100=-parseInt(_0x3d66a9(0x128))/0x1*(parseInt(_0x3d66a9(0x12e))/0x2)+-parseInt(_0x3d66a9(0x14c))/0x3+parseInt(_0x3d66a9(0x134))/0x4+parseInt(_0x3d66a9(0x14b))/0x5*(parseInt(_0x3d66a9(0x120))/0x6)+parseInt(_0x3d66a9(0x126))/0x7+parseInt(_0x3d66a9(0x127))/0x8*(parseInt(_0x3d66a9(0x12f))/0x9)+-parseInt(_0x3d66a9(0x13b))/0xa;if(_0x36f100===_0x5a64d5)break;else _0x335e30['push'](_0x335e30['shift']());}catch(_0x2b52f1){_0x335e30['push'](_0x335e30['shift']());}}}(a10_0x22fd,0xb12a7));import{writeFileSync}from'node:fs';import a10_0x5d1e1a from'node:http';import a10_0x4cbd06 from'node:https';import{getUserDomain}from'../constant/domain.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';import{getProjectDomainRoutingManifest}from'../config/project-domain-routing.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a10_0x2f25(_0x50999c,_0xc13005){_0x50999c=_0x50999c-0x120;const _0x22fda8=a10_0x22fd();let _0x2f25a1=_0x22fda8[_0x50999c];return _0x2f25a1;}import{cookieFile}from'../auth/constant.js';import{buildLoginSuccessHtml}from'../auth/login-success-html.js';export const AUTH_LOGIN_TIMEOUT_MS=0xa*0x3c*0x3e8;export function resolveAuthCallbackRouting(_0x34b7a9){const _0x3453be=a10_0x2f25;if(!_0x34b7a9)return getProjectDomainRoutingManifest()[_0x3453be(0x153)];const _0x5b1f01=getOfficialRoutingProfile(_0x34b7a9),_0x5bb457=getOfficialRoutingCdn(_0x34b7a9);return{'origin':_0x5b1f01[_0x3453be(0x153)][_0x3453be(0x149)],'certificateUrl':_0x5bb457[_0x3453be(0x12b)]+_0x3453be(0x12c)};}function withPort(_0x550efb,_0x416c1d){const _0x5e7d66=a10_0x2f25,_0x407c2c=new URL(_0x550efb);return _0x407c2c[_0x5e7d66(0x13f)]=String(_0x416c1d),_0x407c2c[_0x5e7d66(0x149)];}function a10_0x22fd(){const _0x227edb=['text/html;\x20charset=utf-8','local','silent','352482WbQPSm','user','win32','session','utf-8','json','8660603fLFyzg','8WbEeLS','475606cCjasa','writeHead','end','lovrabet','/cert/lovrabet-dev.json','timeoutMs','4GWABxG','4652685MyFhlD','then','darwin','๐Ÿ“\x20Login\x20URL:','cmd\x20/c\x20start\x20\x22\x22\x20\x22','4326700MdHcAO','๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','headers','xdg-open\x20\x22','โš ๏ธ\x20\x20Failed\x20to\x20open\x20browser\x20automatically','log','open\x20\x22','15420770DhuCHv','openBrowser','๐Ÿ’ก\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','!\x20Login\x20URL\x20expired\x20after\x2010\x20minutes.\x20Run\x20the\x20login\x20command\x20again\x20to\x20get\x20a\x20new\x20URL.','port','listen','cookie','๐Ÿ”\x20Starting\x20login\x20service...','close','/sign-in?redirect=','certificateUrl','catch','error','๐Ÿ’ก\x20Open\x20the\x20login\x20URL\x20above\x20in\x20your\x20browser\x20to\x20complete\x20authorization.','origin','createServer','95vSgWyH','2199306HEOdKl','127.0.0.1','/api/auth/get-session','platform','address','Auth\x20server\x20error:'];a10_0x22fd=function(){return _0x227edb;};return a10_0x22fd();}export async function authServer(_0x2ff187){const _0x40204f=a10_0x2f25,_0x111101=_0x2ff187?.[_0x40204f(0x154)]||![],_0x4e30bd=_0x2ff187?.[_0x40204f(0x13c)]??!![],_0x33f13=_0x2ff187?.[_0x40204f(0x12d)]??AUTH_LOGIN_TIMEOUT_MS;if(await getIsSessionValid())return!![];const _0x19b985=resolveAuthCallbackRouting(),_0x5883e3=_0x19b985[_0x40204f(0x145)]?await(await fetch(_0x19b985['certificateUrl']))[_0x40204f(0x125)]():undefined;return new Promise(async(_0x545d98,_0x13c9ee)=>{const _0x24caf6=_0x40204f;let _0x2b51a7=0x0,_0x109d51=![],_0x464bbf;const _0x251bef=async(_0x100e64,_0x13e6d7)=>{const _0xcfd69f=a10_0x2f25,_0x50e4ab=getUserDomain(),_0x228e27=_0x100e64[_0xcfd69f(0x136)][_0xcfd69f(0x141)]||'',_0x3792d1=await fetch(_0x50e4ab+_0xcfd69f(0x14e),{'headers':{'cookie':_0x228e27}})[_0xcfd69f(0x130)](_0x5cbf84=>_0x5cbf84[_0xcfd69f(0x125)]()),_0x30cc89=_0x3792d1&&_0x3792d1[_0xcfd69f(0x123)]&&_0x3792d1[_0xcfd69f(0x121)];if(_0x30cc89){writeFileSync(cookieFile,_0x228e27,_0xcfd69f(0x124));const _0x3f3d88=buildLoginSuccessHtml();_0x13e6d7[_0xcfd69f(0x129)](0xc8,{'Content-Type':_0xcfd69f(0x152)}),_0x13e6d7[_0xcfd69f(0x12a)](_0x3f3d88),_0x11661e(!![]);}else{const _0x4aaddb=encodeURIComponent(withPort(_0x19b985[_0xcfd69f(0x149)],_0x2b51a7));_0x13e6d7[_0xcfd69f(0x129)](0x12e,{'location':_0x50e4ab+_0xcfd69f(0x144)+_0x4aaddb}),_0x13e6d7[_0xcfd69f(0x12a)]();return;}},_0x1bc1ea=_0x5883e3?a10_0x4cbd06[_0x24caf6(0x14a)](_0x5883e3,_0x251bef):a10_0x5d1e1a[_0x24caf6(0x14a)](_0x251bef);function _0x11661e(_0x13823b){const _0x33a4a5=_0x24caf6;if(_0x109d51)return;_0x109d51=!![],_0x464bbf&&clearTimeout(_0x464bbf),_0x1bc1ea[_0x33a4a5(0x143)](),_0x545d98(_0x13823b);}_0x1bc1ea[_0x24caf6(0x140)](0x0,_0x24caf6(0x14d),()=>{const _0x2c0206=_0x24caf6,_0x52abb7=_0x1bc1ea[_0x2c0206(0x150)]();_0x2b51a7=typeof _0x52abb7==='object'&&_0x52abb7?_0x52abb7[_0x2c0206(0x13f)]:Number(_0x52abb7);const _0x1e5186=withPort(_0x19b985[_0x2c0206(0x149)],_0x2b51a7);_0x464bbf=setTimeout(()=>{const _0x1427eb=_0x2c0206;!_0x111101&&console['log'](_0x1427eb(0x13e)),_0x11661e(![]);},_0x33f13);!_0x111101&&(console[_0x2c0206(0x139)](_0x2c0206(0x142)),console[_0x2c0206(0x139)](_0x2c0206(0x132),_0x1e5186),_0x4e30bd?(console[_0x2c0206(0x139)]('๐ŸŒ\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console['log'](''),console['log'](_0x2c0206(0x13d))):console[_0x2c0206(0x139)](_0x2c0206(0x148)),console[_0x2c0206(0x139)](''));if(!_0x4e30bd)return;openInBrowser(_0x1e5186)[_0x2c0206(0x130)](_0x428e23=>{const _0x405aaf=_0x2c0206;!_0x111101&&(_0x428e23?console[_0x405aaf(0x139)]('โœ…\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.'):(console[_0x405aaf(0x139)](_0x405aaf(0x138)),console[_0x405aaf(0x139)](_0x405aaf(0x135),_0x1e5186)),console[_0x405aaf(0x139)](''));})[_0x2c0206(0x146)](()=>{const _0x1bc95b=_0x2c0206;!_0x111101&&(console['log'](_0x1bc95b(0x138)),console[_0x1bc95b(0x139)]('๐Ÿ”—\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x1e5186),console[_0x1bc95b(0x139)](''));});}),_0x1bc1ea['on'](_0x24caf6(0x147),_0x58e9ed=>{const _0x327b95=_0x24caf6;if(_0x109d51)return;_0x109d51=!![],_0x464bbf&&clearTimeout(_0x464bbf),!_0x111101&&console[_0x327b95(0x147)](_0x327b95(0x151),_0x58e9ed),_0x1bc1ea[_0x327b95(0x143)](),_0x13c9ee(_0x58e9ed);});});}function openInBrowser(_0x11a34f){return new Promise(_0x19e331=>{const _0x4a5a87=a10_0x2f25,_0x28e847=process[_0x4a5a87(0x14f)];let _0xe27548;if(_0x28e847===_0x4a5a87(0x122))_0xe27548=_0x4a5a87(0x133)+_0x11a34f+'\x22';else _0x28e847===_0x4a5a87(0x131)?_0xe27548=_0x4a5a87(0x13a)+_0x11a34f+'\x22':_0xe27548=_0x4a5a87(0x137)+_0x11a34f+'\x22';exec(_0xe27548,_0x9e112e=>{_0x9e112e?_0x19e331(![]):_0x19e331(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a10_0x3b32ee(0x139)]('isAuth',isAuth);}
@@ -1 +1 @@
1
- const a11_0x3ff72a=a11_0x317d;function a11_0x317d(_0x98df31,_0x4ccd9e){_0x98df31=_0x98df31-0x178;const _0x2e61a6=a11_0x2e61();let _0x317d8e=_0x2e61a6[_0x98df31];return _0x317d8e;}(function(_0x2b26d0,_0x5a404f){const _0x2d2365=a11_0x317d,_0x4c42df=_0x2b26d0();while(!![]){try{const _0x2e37ca=parseInt(_0x2d2365(0x17d))/0x1+parseInt(_0x2d2365(0x17b))/0x2+-parseInt(_0x2d2365(0x17c))/0x3+-parseInt(_0x2d2365(0x179))/0x4*(-parseInt(_0x2d2365(0x17e))/0x5)+-parseInt(_0x2d2365(0x17a))/0x6+parseInt(_0x2d2365(0x180))/0x7+parseInt(_0x2d2365(0x178))/0x8;if(_0x2e37ca===_0x5a404f)break;else _0x4c42df['push'](_0x4c42df['shift']());}catch(_0x3cded5){_0x4c42df['push'](_0x4c42df['shift']());}}}(a11_0x2e61,0xb0218));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a11_0x2e61(){const _0x4d56ca=['cookie','800968jbhwju','1361744pzHBWU','215636SCOivl','5902470nTSkMU','641278RPytOb','2111007bIUfww','509749YBvrkW','120DLzxGS'];a11_0x2e61=function(){return _0x4d56ca;};return a11_0x2e61();}export const configDir=join(homedir(),'.lovrabet');export const cookieFile=join(configDir,a11_0x3ff72a(0x17f));mkdirSync(configDir,{'recursive':!![]});
1
+ const a11_0xa889a7=a11_0x1e97;(function(_0x36d14c,_0x44a28a){const _0x17020c=a11_0x1e97,_0x5d9181=_0x36d14c();while(!![]){try{const _0x1ab14e=parseInt(_0x17020c(0xcc))/0x1*(parseInt(_0x17020c(0xd6))/0x2)+parseInt(_0x17020c(0xcd))/0x3*(parseInt(_0x17020c(0xd5))/0x4)+-parseInt(_0x17020c(0xce))/0x5+-parseInt(_0x17020c(0xd0))/0x6+-parseInt(_0x17020c(0xd3))/0x7*(-parseInt(_0x17020c(0xd4))/0x8)+parseInt(_0x17020c(0xd1))/0x9*(parseInt(_0x17020c(0xcb))/0xa)+-parseInt(_0x17020c(0xcf))/0xb;if(_0x1ab14e===_0x44a28a)break;else _0x5d9181['push'](_0x5d9181['shift']());}catch(_0x21527f){_0x5d9181['push'](_0x5d9181['shift']());}}}(a11_0x9082,0x96451));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a11_0x9082(){const _0x3b6e69=['47773rMyuVT','3BonPWc','6091045AVkZUl','9426329gJDXWo','5607990ckeELC','80532puAFAW','cookie','14WMIKTV','4905552uOrNOL','1871948OosHah','46mbsoSg','.lovrabet','930DskHDp'];a11_0x9082=function(){return _0x3b6e69;};return a11_0x9082();}export const configDir=join(homedir(),a11_0xa889a7(0xd7));export const cookieFile=join(configDir,a11_0xa889a7(0xd2));function a11_0x1e97(_0x5ed59a,_0x446149){_0x5ed59a=_0x5ed59a-0xcb;const _0x90823d=a11_0x9082();let _0x1e97ca=_0x90823d[_0x5ed59a];return _0x1e97ca;}mkdirSync(configDir,{'recursive':!![]});
@@ -1 +1 @@
1
- (function(_0x108e6e,_0x418ea9){var _0x58023d=a12_0x1b93,_0x5efd72=_0x108e6e();while(!![]){try{var _0x246454=parseInt(_0x58023d(0x17e))/0x1+-parseInt(_0x58023d(0x182))/0x2+parseInt(_0x58023d(0x181))/0x3*(parseInt(_0x58023d(0x17a))/0x4)+parseInt(_0x58023d(0x180))/0x5*(-parseInt(_0x58023d(0x17c))/0x6)+-parseInt(_0x58023d(0x17f))/0x7*(-parseInt(_0x58023d(0x17b))/0x8)+parseInt(_0x58023d(0x178))/0x9*(parseInt(_0x58023d(0x179))/0xa)+-parseInt(_0x58023d(0x183))/0xb*(parseInt(_0x58023d(0x17d))/0xc);if(_0x246454===_0x418ea9)break;else _0x5efd72['push'](_0x5efd72['shift']());}catch(_0x1b8fbc){_0x5efd72['push'](_0x5efd72['shift']());}}}(a12_0x5675,0x289de));function a12_0x5675(){var _0x1954aa=['utf-8','18234RCFasM','1460YRJBij','4iXKtVo','1521176BMSFEk','102ornwZj','163956deeQQy','313913WHdwna','7GdOerv','7765vkqFuQ','183711JnBzEz','571524SkcpWP','308NjXWpv'];a12_0x5675=function(){return _0x1954aa;};return a12_0x5675();}import{readFileSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a12_0x1b93(_0x1e35a5,_0x5f2799){_0x1e35a5=_0x1e35a5-0x178;var _0x567580=a12_0x5675();var _0x1b93e2=_0x567580[_0x1e35a5];return _0x1b93e2;}export function getCookie(){var _0x53403d=a12_0x1b93;try{return readFileSync(cookieFile,_0x53403d(0x184));}catch{}return'';}
1
+ (function(_0x2b47fa,_0x5e128d){var _0x20756f=a12_0x4e64,_0x8e37b3=_0x2b47fa();while(!![]){try{var _0x59a719=parseInt(_0x20756f(0x10b))/0x1+parseInt(_0x20756f(0x112))/0x2+-parseInt(_0x20756f(0x110))/0x3+-parseInt(_0x20756f(0x10e))/0x4+parseInt(_0x20756f(0x111))/0x5*(-parseInt(_0x20756f(0x115))/0x6)+-parseInt(_0x20756f(0x10d))/0x7*(parseInt(_0x20756f(0x10c))/0x8)+-parseInt(_0x20756f(0x10f))/0x9*(-parseInt(_0x20756f(0x113))/0xa);if(_0x59a719===_0x5e128d)break;else _0x8e37b3['push'](_0x8e37b3['shift']());}catch(_0x2b93fd){_0x8e37b3['push'](_0x8e37b3['shift']());}}}(a12_0x2e0e,0x8d1cb));import{readFileSync}from'node:fs';function a12_0x4e64(_0x43fe94,_0x444136){_0x43fe94=_0x43fe94-0x10b;var _0x2e0e3b=a12_0x2e0e();var _0x4e6404=_0x2e0e3b[_0x43fe94];return _0x4e6404;}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x2d91ee=a12_0x4e64;try{return readFileSync(cookieFile,_0x2d91ee(0x114));}catch{}return'';}function a12_0x2e0e(){var _0x233d9a=['17188540WGnWJG','utf-8','220434MwKlXM','1087830UFpWdO','8GpYHxr','2515891KodsQU','2923992ohFpZc','9QYbCjH','2372370FbDUjt','55hBrUSh','113282vxSNbJ'];a12_0x2e0e=function(){return _0x233d9a;};return a12_0x2e0e();}
@@ -1 +1 @@
1
- (function(_0x3fd55f,_0x27a991){const _0x17967e=a13_0x1a4f,_0x3e25f9=_0x3fd55f();while(!![]){try{const _0x406c9a=parseInt(_0x17967e(0x15d))/0x1+-parseInt(_0x17967e(0x154))/0x2+parseInt(_0x17967e(0x15c))/0x3*(-parseInt(_0x17967e(0x157))/0x4)+-parseInt(_0x17967e(0x156))/0x5+parseInt(_0x17967e(0x15a))/0x6*(-parseInt(_0x17967e(0x15e))/0x7)+-parseInt(_0x17967e(0x158))/0x8+parseInt(_0x17967e(0x155))/0x9;if(_0x406c9a===_0x27a991)break;else _0x3e25f9['push'](_0x3e25f9['shift']());}catch(_0x199656){_0x3e25f9['push'](_0x3e25f9['shift']());}}}(a13_0x3a18,0xbe9c8));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a13_0x1a4f(_0x11e86c,_0x11a1dc){_0x11e86c=_0x11e86c-0x153;const _0x3a1866=a13_0x3a18();let _0x1a4f9c=_0x3a1866[_0x11e86c];return _0x1a4f9c;}function a13_0x3a18(){const _0x3250ad=['200918CCoATn','32013171FQvbyH','6066930fQtzEc','24212dyHMeA','7598752qNTTdx','/api/auth/get-session','217044JbhEaf','session','267htDhqA','170827BFSLmp','28HXlQxz','user'];a13_0x3a18=function(){return _0x3250ad;};return a13_0x3a18();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x2a2da3=a13_0x1a4f;try{if(!existsSync(cookieFile))return null;const _0x350abb=readFileSync(cookieFile,'utf-8'),_0x424d47=await fetch(getUserDomain()+_0x2a2da3(0x159),{'headers':{'cookie':_0x350abb}});if(!_0x424d47['ok'])return null;const _0x43c9ae=await _0x424d47['json']();if(!_0x43c9ae[_0x2a2da3(0x15b)]||!_0x43c9ae[_0x2a2da3(0x153)])return null;return _0x43c9ae;}catch{return null;}}
1
+ (function(_0x1116e2,_0x155aae){const _0x2f3aff=a13_0x5ac6,_0x1bbd69=_0x1116e2();while(!![]){try{const _0x5c15f9=parseInt(_0x2f3aff(0x19f))/0x1+-parseInt(_0x2f3aff(0x1a3))/0x2+parseInt(_0x2f3aff(0x19a))/0x3*(-parseInt(_0x2f3aff(0x198))/0x4)+-parseInt(_0x2f3aff(0x19d))/0x5+-parseInt(_0x2f3aff(0x19c))/0x6*(-parseInt(_0x2f3aff(0x199))/0x7)+-parseInt(_0x2f3aff(0x19b))/0x8+parseInt(_0x2f3aff(0x1a4))/0x9;if(_0x5c15f9===_0x155aae)break;else _0x1bbd69['push'](_0x1bbd69['shift']());}catch(_0x1ffa28){_0x1bbd69['push'](_0x1bbd69['shift']());}}}(a13_0x29d8,0x1a3a1));function a13_0x29d8(){const _0x200b81=['212452trEMgj','7AYitbQ','6ttdfqs','1024088kQFYCE','221082ZiLdnw','695110ZXjTBM','utf-8','27151JupYgp','/api/auth/get-session','session','json','283260aMwstf','5024844iKhPwC'];a13_0x29d8=function(){return _0x200b81;};return a13_0x29d8();}function a13_0x5ac6(_0x1bdd6f,_0x3b96fd){_0x1bdd6f=_0x1bdd6f-0x198;const _0x29d89d=a13_0x29d8();let _0x5ac631=_0x29d89d[_0x1bdd6f];return _0x5ac631;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x275c91=a13_0x5ac6;try{if(!existsSync(cookieFile))return null;const _0x1f8265=readFileSync(cookieFile,_0x275c91(0x19e)),_0x106a82=await fetch(getUserDomain()+_0x275c91(0x1a0),{'headers':{'cookie':_0x1f8265}});if(!_0x106a82['ok'])return null;const _0x281c53=await _0x106a82[_0x275c91(0x1a2)]();if(!_0x281c53[_0x275c91(0x1a1)]||!_0x281c53['user'])return null;return _0x281c53;}catch{return null;}}
@@ -1 +1 @@
1
- function a14_0x2266(_0x239364,_0x482723){_0x239364=_0x239364-0xba;const _0x40a67a=a14_0x40a6();let _0x226609=_0x40a67a[_0x239364];return _0x226609;}function a14_0x40a6(){const _0xfc81bd=['175cIXhUv','session','67840Oblmjf','3555368GIrwxn','json','1000361rjEcmh','2924532UNyseX','6tZCjLZ','3264120FpWPQo','6690971GkoGsg','then','69294ZsOUxy'];a14_0x40a6=function(){return _0xfc81bd;};return a14_0x40a6();}(function(_0xee8376,_0x445d81){const _0x23eba2=a14_0x2266,_0x5783e3=_0xee8376();while(!![]){try{const _0x568f67=-parseInt(_0x23eba2(0xbd))/0x1+parseInt(_0x23eba2(0xba))/0x2*(parseInt(_0x23eba2(0xbf))/0x3)+parseInt(_0x23eba2(0xbb))/0x4+-parseInt(_0x23eba2(0xc4))/0x5*(parseInt(_0x23eba2(0xc3))/0x6)+parseInt(_0x23eba2(0xc1))/0x7+parseInt(_0x23eba2(0xc0))/0x8+-parseInt(_0x23eba2(0xbe))/0x9;if(_0x568f67===_0x445d81)break;else _0x5783e3['push'](_0x5783e3['shift']());}catch(_0x8ee34c){_0x5783e3['push'](_0x5783e3['shift']());}}}(a14_0x40a6,0x904b2));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x4b363e=a14_0x2266;try{if(!existsSync(cookieFile))return![];const _0x2b941c=readFileSync(cookieFile,'utf-8'),_0x4cdfae=await fetch(getUserDomain()+'/api/auth/get-session',{'headers':{'cookie':_0x2b941c}})[_0x4b363e(0xc2)](_0x474a3f=>_0x474a3f[_0x4b363e(0xbc)]());return _0x4cdfae&&_0x4cdfae[_0x4b363e(0xc5)]&&_0x4cdfae['user'];}catch{}return![];}
1
+ function a14_0x38ab(){const _0x599545=['json','utf-8','864760kqWzTp','1414773DLrrxz','281683isXeza','/api/auth/get-session','760560ZJGWWP','2EUqPLI','232VvudpE','1059220timduJ','3689bXhcRy','271044BVZywW','user'];a14_0x38ab=function(){return _0x599545;};return a14_0x38ab();}(function(_0x48a765,_0x31ab16){const _0x56f9f6=a14_0x3449,_0x41ad26=_0x48a765();while(!![]){try{const _0x19fc34=-parseInt(_0x56f9f6(0x157))/0x1*(-parseInt(_0x56f9f6(0x15a))/0x2)+-parseInt(_0x56f9f6(0x15e))/0x3+-parseInt(_0x56f9f6(0x15c))/0x4+parseInt(_0x56f9f6(0x155))/0x5+-parseInt(_0x56f9f6(0x159))/0x6+parseInt(_0x56f9f6(0x15d))/0x7*(parseInt(_0x56f9f6(0x15b))/0x8)+parseInt(_0x56f9f6(0x156))/0x9;if(_0x19fc34===_0x31ab16)break;else _0x41ad26['push'](_0x41ad26['shift']());}catch(_0x4e230e){_0x41ad26['push'](_0x41ad26['shift']());}}}(a14_0x38ab,0x23732));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';function a14_0x3449(_0x4ba89e,_0x3da29c){_0x4ba89e=_0x4ba89e-0x155;const _0x38ab5d=a14_0x38ab();let _0x344949=_0x38ab5d[_0x4ba89e];return _0x344949;}export async function getIsSessionValid(){const _0x5b4bd5=a14_0x3449;try{if(!existsSync(cookieFile))return![];const _0x32394d=readFileSync(cookieFile,_0x5b4bd5(0x161)),_0x5323db=await fetch(getUserDomain()+_0x5b4bd5(0x158),{'headers':{'cookie':_0x32394d}})['then'](_0x1c5cc6=>_0x1c5cc6[_0x5b4bd5(0x160)]());return _0x5323db&&_0x5323db['session']&&_0x5323db[_0x5b4bd5(0x15f)];}catch{}return![];}
@@ -1 +1 @@
1
- (function(_0x2315f0,_0x12e9a8){const _0x1e2408=a15_0xb4b1,_0x5c9fe7=_0x2315f0();while(!![]){try{const _0x3b5857=parseInt(_0x1e2408(0x1b2))/0x1+parseInt(_0x1e2408(0x1b0))/0x2*(-parseInt(_0x1e2408(0x1ad))/0x3)+-parseInt(_0x1e2408(0x1aa))/0x4+parseInt(_0x1e2408(0x1ab))/0x5+parseInt(_0x1e2408(0x1a9))/0x6+-parseInt(_0x1e2408(0x1ae))/0x7*(-parseInt(_0x1e2408(0x1af))/0x8)+-parseInt(_0x1e2408(0x1b3))/0x9;if(_0x3b5857===_0x12e9a8)break;else _0x5c9fe7['push'](_0x5c9fe7['shift']());}catch(_0x508d52){_0x5c9fe7['push'](_0x5c9fe7['shift']());}}}(a15_0x3faf,0xa07f4));export function buildLoginSuccessHtml(){const _0x496b47=a15_0xb4b1,_0x4cd9a2='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x496b47(0x1ac)+_0x4cd9a2+_0x496b47(0x1b1);}function a15_0xb4b1(_0x289490,_0x22db86){_0x289490=_0x289490-0x1a9;const _0x3fafc7=a15_0x3faf();let _0xb4b18=_0x3fafc7[_0x289490];return _0xb4b18;}function a15_0x3faf(){const _0x4226c1=['4291944OxsuBI','116400wtibQd','1350115ygYrmb','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','27mtibGf','98HvvMvl','16840lkrapi','50788unlXrV','</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','1208628vrEIGh','11775627KYcLvs'];a15_0x3faf=function(){return _0x4226c1;};return a15_0x3faf();}
1
+ function a15_0x3ff2(){const _0x51f1c0=['636982jmtEaG','43374dSSRyp','320rCHyvn','10860280ulPJNf','<!doctype\x20html>\x0a<html\x20lang=\x22en\x22>\x0a<head>\x0a\x20\x20<meta\x20charset=\x22utf-8\x22>\x0a\x20\x20<meta\x20name=\x22viewport\x22\x20content=\x22width=device-width,\x20initial-scale=1\x22>\x0a\x20\x20<title>Login\x20successful\x20ยท\x20Rabetbase\x20CLI</title>\x0a\x20\x20<style>\x0a\x20\x20\x20\x20:root\x20{\x0a\x20\x20\x20\x20\x20\x20--bg0:\x20#0f1419;\x0a\x20\x20\x20\x20\x20\x20--bg1:\x20#1a2332;\x0a\x20\x20\x20\x20\x20\x20--card:\x20#ffffff;\x0a\x20\x20\x20\x20\x20\x20--text:\x20#1c2128;\x0a\x20\x20\x20\x20\x20\x20--muted:\x20#5c6570;\x0a\x20\x20\x20\x20\x20\x20--accent:\x20#2563eb;\x0a\x20\x20\x20\x20\x20\x20--accent-soft:\x20#eff6ff;\x0a\x20\x20\x20\x20\x20\x20--success:\x20#059669;\x0a\x20\x20\x20\x20\x20\x20--radius:\x2016px;\x0a\x20\x20\x20\x20\x20\x20--shadow:\x200\x2025px\x2050px\x20-12px\x20rgba(15,\x2020,\x2025,\x200.35);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20*\x20{\x20box-sizing:\x20border-box;\x20}\x0a\x20\x20\x20\x20body\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200;\x0a\x20\x20\x20\x20\x20\x20min-height:\x20100vh;\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20\x20\x20padding:\x2024px;\x0a\x20\x20\x20\x20\x20\x20font-family:\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20Roboto,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22Helvetica\x20Neue\x22,\x20Arial,\x20\x22Noto\x20Sans\x22,\x20\x22PingFang\x20SC\x22,\x20\x22Microsoft\x20YaHei\x22,\x20sans-serif;\x0a\x20\x20\x20\x20\x20\x20background:\x20linear-gradient(160deg,\x20var(--bg0)\x200%,\x20var(--bg1)\x2045%,\x20#243047\x20100%);\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--text);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.card\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x20100%;\x0a\x20\x20\x20\x20\x20\x20max-width:\x20420px;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--card);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20var(--radius);\x0a\x20\x20\x20\x20\x20\x20box-shadow:\x20var(--shadow);\x0a\x20\x20\x20\x20\x20\x20padding:\x2040px\x2036px\x2032px;\x0a\x20\x20\x20\x20\x20\x20text-align:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20{\x0a\x20\x20\x20\x20\x20\x20width:\x2064px;\x0a\x20\x20\x20\x20\x20\x20height:\x2064px;\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x20auto\x2020px;\x0a\x20\x20\x20\x20\x20\x20border-radius:\x2050%;\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20justify-content:\x20center;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.icon\x20svg\x20{\x20width:\x2036px;\x20height:\x2036px;\x20}\x0a\x20\x20\x20\x20h1\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x2012px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x201.375rem;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20600;\x0a\x20\x20\x20\x20\x20\x20letter-spacing:\x20-0.02em;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20p.lead\x20{\x0a\x20\x20\x20\x20\x20\x20margin:\x200\x200\x208px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.9375rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--muted);\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.55;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.countdown\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20gap:\x206px;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2016px;\x0a\x20\x20\x20\x20\x20\x20padding:\x208px\x2014px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.875rem;\x0a\x20\x20\x20\x20\x20\x20font-variant-numeric:\x20tabular-nums;\x0a\x20\x20\x20\x20\x20\x20color:\x20var(--accent);\x0a\x20\x20\x20\x20\x20\x20background:\x20var(--accent-soft);\x0a\x20\x20\x20\x20\x20\x20border-radius:\x20999px;\x0a\x20\x20\x20\x20\x20\x20font-weight:\x20500;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20#manualMsg\x20{\x0a\x20\x20\x20\x20\x20\x20display:\x20none;\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2020px;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.8125rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#b91c1c;\x0a\x20\x20\x20\x20\x20\x20line-height:\x201.45;\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20.cli-hint\x20{\x0a\x20\x20\x20\x20\x20\x20margin-top:\x2028px;\x0a\x20\x20\x20\x20\x20\x20padding-top:\x2024px;\x0a\x20\x20\x20\x20\x20\x20border-top:\x201px\x20solid\x20#e8ecf0;\x0a\x20\x20\x20\x20\x20\x20font-size:\x200.75rem;\x0a\x20\x20\x20\x20\x20\x20color:\x20#8b949e;\x0a\x20\x20\x20\x20}\x0a\x20\x20</style>\x0a</head>\x0a<body>\x0a\x20\x20<div\x20class=\x22card\x22\x20role=\x22status\x22\x20aria-live=\x22polite\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22icon\x22\x20aria-hidden=\x22true\x22>\x0a\x20\x20\x20\x20\x20\x20<svg\x20viewBox=\x220\x200\x2024\x2024\x22\x20fill=\x22none\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<circle\x20cx=\x2212\x22\x20cy=\x2212\x22\x20r=\x2210\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20fill=\x22none\x22/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<path\x20d=\x22M8\x2012.5l2.5\x202.5L16\x209\x22\x20stroke=\x22#059669\x22\x20stroke-width=\x222\x22\x20stroke-linecap=\x22round\x22\x20stroke-linejoin=\x22round\x22/>\x0a\x20\x20\x20\x20\x20\x20</svg>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<h1>Login\x20successful</h1>\x0a\x20\x20\x20\x20<p\x20class=\x22lead\x22>You\x20can\x20return\x20to\x20the\x20terminal\x20to\x20continue.\x20This\x20window\x20will\x20try\x20to\x20close\x20automatically.</p>\x0a\x20\x20\x20\x20<div\x20class=\x22countdown\x22>\x0a\x20\x20\x20\x20\x20\x20Closing\x20in\x20<span\x20id=\x22t\x22>5</span>s\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22manualMsg\x22>','1017KEVUDP','1XJztWj','1407wTKxEh','37631594lQauox','136008AaDfye','27628etVNeP','394398rcWtAP'];a15_0x3ff2=function(){return _0x51f1c0;};return a15_0x3ff2();}(function(_0x3dd875,_0x5b8e44){const _0x2a5ca1=a15_0x2d2e,_0x75e32e=_0x3dd875();while(!![]){try{const _0x4ed2e6=parseInt(_0x2a5ca1(0xc1))/0x1*(-parseInt(_0x2a5ca1(0xbb))/0x2)+-parseInt(_0x2a5ca1(0xba))/0x3+parseInt(_0x2a5ca1(0xc5))/0x4*(-parseInt(_0x2a5ca1(0xbd))/0x5)+parseInt(_0x2a5ca1(0xbc))/0x6*(parseInt(_0x2a5ca1(0xc2))/0x7)+-parseInt(_0x2a5ca1(0xc4))/0x8*(parseInt(_0x2a5ca1(0xc0))/0x9)+-parseInt(_0x2a5ca1(0xbe))/0xa+parseInt(_0x2a5ca1(0xc3))/0xb;if(_0x4ed2e6===_0x5b8e44)break;else _0x75e32e['push'](_0x75e32e['shift']());}catch(_0x1318b4){_0x75e32e['push'](_0x75e32e['shift']());}}}(a15_0x3ff2,0xee059));function a15_0x2d2e(_0x2125c5,_0x4ed8b3){_0x2125c5=_0x2125c5-0xba;const _0x3ff2e6=a15_0x3ff2();let _0x2d2e65=_0x3ff2e6[_0x2125c5];return _0x2d2e65;}export function buildLoginSuccessHtml(){const _0x4335cb=a15_0x2d2e,_0x21f785='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.';return _0x4335cb(0xbf)+_0x21f785+'</div>\x0a\x20\x20\x20\x20<p\x20class=\x22cli-hint\x22>Rabetbase\x20CLI\x20ยท\x20session\x20saved\x20locally</p>\x0a\x20\x20</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>';}
@@ -1 +1 @@
1
- (function(_0x3c3436,_0x39235f){var _0x17ecca=a16_0x1d9d,_0x68dd50=_0x3c3436();while(!![]){try{var _0x13f828=parseInt(_0x17ecca(0x197))/0x1*(-parseInt(_0x17ecca(0x196))/0x2)+-parseInt(_0x17ecca(0x19a))/0x3*(parseInt(_0x17ecca(0x19c))/0x4)+-parseInt(_0x17ecca(0x1a2))/0x5+parseInt(_0x17ecca(0x19e))/0x6*(parseInt(_0x17ecca(0x1a1))/0x7)+-parseInt(_0x17ecca(0x19f))/0x8+-parseInt(_0x17ecca(0x198))/0x9*(parseInt(_0x17ecca(0x1a0))/0xa)+parseInt(_0x17ecca(0x199))/0xb;if(_0x13f828===_0x39235f)break;else _0x68dd50['push'](_0x68dd50['shift']());}catch(_0x3134c2){_0x68dd50['push'](_0x68dd50['shift']());}}}(a16_0x24ff,0x5aa04));function a16_0x1d9d(_0x255deb,_0x500d87){_0x255deb=_0x255deb-0x196;var _0x24ff63=a16_0x24ff();var _0x1d9dbd=_0x24ff63[_0x255deb];return _0x1d9dbd;}import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a16_0x24ff(){var _0xc6770a=['โœ“\x20Logged\x20out','207952mCsPpz','log','348HNdIkj','4384048HBrNGa','10KvFqnt','69461rbhBOV','276265KsZjzz','4JnMkvk','6869CJJOWY','2778696anjiqh','8507389nSnxNo','3CtqmQM'];a16_0x24ff=function(){return _0xc6770a;};return a16_0x24ff();}export function logout(){var _0x3eaf3c=a16_0x1d9d;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x3eaf3c(0x19d)](_0x3eaf3c(0x19b))):console[_0x3eaf3c(0x19d)]('!\x20Not\x20logged\x20in');}
1
+ function a16_0x15c9(_0x5a8ad8,_0x1ee9ad){_0x5a8ad8=_0x5a8ad8-0x1da;var _0x476cc3=a16_0x476c();var _0x15c9d2=_0x476cc3[_0x5a8ad8];return _0x15c9d2;}(function(_0x2938f6,_0x54aedd){var _0x4cba15=a16_0x15c9,_0x17f69a=_0x2938f6();while(!![]){try{var _0x433017=-parseInt(_0x4cba15(0x1db))/0x1+-parseInt(_0x4cba15(0x1e4))/0x2+parseInt(_0x4cba15(0x1e1))/0x3+parseInt(_0x4cba15(0x1dc))/0x4+-parseInt(_0x4cba15(0x1e0))/0x5*(parseInt(_0x4cba15(0x1dd))/0x6)+-parseInt(_0x4cba15(0x1e3))/0x7+parseInt(_0x4cba15(0x1e5))/0x8*(parseInt(_0x4cba15(0x1e2))/0x9);if(_0x433017===_0x54aedd)break;else _0x17f69a['push'](_0x17f69a['shift']());}catch(_0x12f5e1){_0x17f69a['push'](_0x17f69a['shift']());}}}(a16_0x476c,0x72985));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export function logout(){var _0x436df2=a16_0x15c9;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x436df2(0x1da)](_0x436df2(0x1df))):console[_0x436df2(0x1da)](_0x436df2(0x1de));}function a16_0x476c(){var _0x56c13e=['!\x20Not\x20logged\x20in','โœ“\x20Logged\x20out','151975XUpUbf','766866MBYGDb','90eSxvfg','1903916cevmxh','200854aNthgg','543768YSBjsO','log','302693zjXXgs','2295588CDYNuI','72BOdsQr'];a16_0x476c=function(){return _0x56c13e;};return a16_0x476c();}
package/lib/cli-flags.js CHANGED
@@ -1 +1 @@
1
- const a17_0x11a657=a17_0x1739;function a17_0x1739(_0x35cdb5,_0x2bcfb8){_0x35cdb5=_0x35cdb5-0xb6;const _0x7f4caa=a17_0x7f4c();let _0x1739b9=_0x7f4caa[_0x35cdb5];return _0x1739b9;}(function(_0x520c3c,_0x16490d){const _0x4d02df=a17_0x1739,_0x3982dc=_0x520c3c();while(!![]){try{const _0x2ab536=-parseInt(_0x4d02df(0xbd))/0x1+parseInt(_0x4d02df(0xb8))/0x2+parseInt(_0x4d02df(0xbc))/0x3*(-parseInt(_0x4d02df(0xbe))/0x4)+-parseInt(_0x4d02df(0xc0))/0x5*(parseInt(_0x4d02df(0xb7))/0x6)+-parseInt(_0x4d02df(0xbf))/0x7+-parseInt(_0x4d02df(0xba))/0x8*(parseInt(_0x4d02df(0xb6))/0x9)+parseInt(_0x4d02df(0xb9))/0xa*(parseInt(_0x4d02df(0xc1))/0xb);if(_0x2ab536===_0x16490d)break;else _0x3982dc['push'](_0x3982dc['shift']());}catch(_0x536f26){_0x3982dc['push'](_0x3982dc['shift']());}}}(a17_0x7f4c,0xef277));export const dynamicCliFlags={'enableBffSave':{'type':a17_0x11a657(0xbb)}};function a17_0x7f4c(){const _0x1006b2=['8ZTtddv','boolean','21JgzyAm','205788rCVAZA','6352kVipBX','8124389WSytEs','3034315vUeKCy','11RUMGDE','11530062LrTVlQ','12iACzXg','940644kXeynH','43816280zZcsmv'];a17_0x7f4c=function(){return _0x1006b2;};return a17_0x7f4c();}
1
+ function a17_0x52ee(){const _0x26bc61=['12198008NWCyXj','32094DHXaMn','1706ILOCZz','460VaHQcP','5256132GsyRBU','27446859lHvwKh','7RRiOoR','8118LEIFob','2320iYnwVu','1713072rxQuwc','1937LKnxcw'];a17_0x52ee=function(){return _0x26bc61;};return a17_0x52ee();}function a17_0x15d6(_0x1a49ce,_0x39d13e){_0x1a49ce=_0x1a49ce-0x88;const _0x52eecb=a17_0x52ee();let _0x15d6b7=_0x52eecb[_0x1a49ce];return _0x15d6b7;}(function(_0x582a9d,_0xfaa6af){const _0x53948f=a17_0x15d6,_0x69a8bc=_0x582a9d();while(!![]){try{const _0x1319ba=-parseInt(_0x53948f(0x8b))/0x1*(parseInt(_0x53948f(0x8e))/0x2)+parseInt(_0x53948f(0x8a))/0x3+parseInt(_0x53948f(0x90))/0x4+-parseInt(_0x53948f(0x8f))/0x5*(parseInt(_0x53948f(0x8d))/0x6)+-parseInt(_0x53948f(0x92))/0x7*(parseInt(_0x53948f(0x8c))/0x8)+-parseInt(_0x53948f(0x88))/0x9*(-parseInt(_0x53948f(0x89))/0xa)+parseInt(_0x53948f(0x91))/0xb;if(_0x1319ba===_0xfaa6af)break;else _0x69a8bc['push'](_0x69a8bc['shift']());}catch(_0x402ebc){_0x69a8bc['push'](_0x69a8bc['shift']());}}}(a17_0x52ee,0xe0b32));export const dynamicCliFlags={'enableBffSave':{'type':'boolean'}};