@lovrabet/rabetbase-cli 2.4.1-beta.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/members-list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app-config/delete.js +1 -1
  25. package/lib/commands/app-config/get.js +1 -1
  26. package/lib/commands/app-config/index.js +1 -1
  27. package/lib/commands/app-config/list.js +1 -1
  28. package/lib/commands/app-config/set.js +1 -1
  29. package/lib/commands/app-config/shared.js +1 -1
  30. package/lib/commands/auth/index.js +1 -1
  31. package/lib/commands/bff/create.js +1 -1
  32. package/lib/commands/bff/delete.js +1 -1
  33. package/lib/commands/bff/detail.js +1 -1
  34. package/lib/commands/bff/index.js +1 -1
  35. package/lib/commands/bff/list.js +1 -1
  36. package/lib/commands/bff/pull.js +1 -1
  37. package/lib/commands/bff/push.js +1 -1
  38. package/lib/commands/bff/status.js +1 -1
  39. package/lib/commands/cli-skill/index.js +1 -1
  40. package/lib/commands/cli-update.js +1 -1
  41. package/lib/commands/codegen/index.js +1 -1
  42. package/lib/commands/codegen/sdk.js +1 -1
  43. package/lib/commands/codegen/sql.js +1 -1
  44. package/lib/commands/common/app-registry.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/async-task.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/kb/create.js +1 -1
  101. package/lib/commands/kb/delete.js +1 -1
  102. package/lib/commands/kb/detail.js +1 -1
  103. package/lib/commands/kb/index.js +1 -1
  104. package/lib/commands/kb/list.js +1 -1
  105. package/lib/commands/kb/shared.js +1 -1
  106. package/lib/commands/kb/update.js +1 -1
  107. package/lib/commands/logs/index.js +1 -1
  108. package/lib/commands/menu/asset-update.js +1 -1
  109. package/lib/commands/menu/delete.js +1 -1
  110. package/lib/commands/menu/external-link-create.js +1 -1
  111. package/lib/commands/menu/external-link-update.js +1 -1
  112. package/lib/commands/menu/group-create.js +1 -1
  113. package/lib/commands/menu/group-update.js +1 -1
  114. package/lib/commands/menu/index.js +1 -1
  115. package/lib/commands/menu/list.js +1 -1
  116. package/lib/commands/menu/move.js +1 -1
  117. package/lib/commands/menu/regroup-start.js +1 -1
  118. package/lib/commands/menu/rename.js +1 -1
  119. package/lib/commands/menu/shared/compare-table.js +1 -1
  120. package/lib/commands/menu/shared/delete-plan.js +1 -1
  121. package/lib/commands/menu/shared/facts.js +1 -1
  122. package/lib/commands/menu/shared/index.js +1 -1
  123. package/lib/commands/menu/shared/inquirer.js +1 -1
  124. package/lib/commands/menu/shared/local-pages.js +1 -1
  125. package/lib/commands/menu/shared/logic.js +1 -1
  126. package/lib/commands/menu/shared/mutations.js +1 -1
  127. package/lib/commands/menu/shared/service.js +1 -1
  128. package/lib/commands/menu/shared/sync-core.js +1 -1
  129. package/lib/commands/menu/shared/update-core.js +1 -1
  130. package/lib/commands/menu/shared/valid-url.js +1 -1
  131. package/lib/commands/menu/sync.js +1 -1
  132. package/lib/commands/notification/config-list.js +1 -1
  133. package/lib/commands/notification/index.js +1 -1
  134. package/lib/commands/ocr/index.js +1 -1
  135. package/lib/commands/page/generate-start.js +1 -1
  136. package/lib/commands/page/generate-status.js +1 -1
  137. package/lib/commands/page/index.js +1 -1
  138. package/lib/commands/page/pull.js +1 -1
  139. package/lib/commands/page/push.js +1 -1
  140. package/lib/commands/page/react/create.js +1 -1
  141. package/lib/commands/page/react/detail.js +1 -1
  142. package/lib/commands/page/react/list.js +1 -1
  143. package/lib/commands/page/react/publish.js +1 -1
  144. package/lib/commands/page/react/shared.js +1 -1
  145. package/lib/commands/page/react/syntax.js +1 -1
  146. package/lib/commands/page/react/template.js +1 -1
  147. package/lib/commands/page/react/update.js +1 -1
  148. package/lib/commands/page/relation-audit.js +1 -1
  149. package/lib/commands/page/restore.js +1 -1
  150. package/lib/commands/page/shared.js +1 -1
  151. package/lib/commands/page/standard-page-status.js +1 -1
  152. package/lib/commands/page/sync.js +1 -1
  153. package/lib/commands/permit/index.js +1 -1
  154. package/lib/commands/permit/page-get.js +1 -1
  155. package/lib/commands/permit/page-set.js +1 -1
  156. package/lib/commands/permit/role-apis-set.js +1 -1
  157. package/lib/commands/permit/role-menus-set.js +1 -1
  158. package/lib/commands/permit/role-menus.js +1 -1
  159. package/lib/commands/permit/shared.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/non-interactive.js +1 -1
  164. package/lib/commands/project/create/project-template-path.js +1 -1
  165. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  166. package/lib/commands/project/create/use-format-code.js +1 -1
  167. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  168. package/lib/commands/project/index.js +1 -1
  169. package/lib/commands/project/upgrade.js +1 -1
  170. package/lib/commands/registry.js +1 -1
  171. package/lib/commands/role/create.js +1 -1
  172. package/lib/commands/role/delete.js +1 -1
  173. package/lib/commands/role/detail.js +1 -1
  174. package/lib/commands/role/index.js +1 -1
  175. package/lib/commands/role/list.js +1 -1
  176. package/lib/commands/role/shared.js +1 -1
  177. package/lib/commands/role/update.js +1 -1
  178. package/lib/commands/role/user-add.js +1 -1
  179. package/lib/commands/role/user-remove.js +1 -1
  180. package/lib/commands/role/user-resolve.js +1 -1
  181. package/lib/commands/run/index.js +1 -1
  182. package/lib/commands/schema.js +1 -1
  183. package/lib/commands/sql/create.js +1 -1
  184. package/lib/commands/sql/delete.js +1 -1
  185. package/lib/commands/sql/detail.js +1 -1
  186. package/lib/commands/sql/exec.js +1 -1
  187. package/lib/commands/sql/index.js +1 -1
  188. package/lib/commands/sql/list.js +1 -1
  189. package/lib/commands/sql/pull.js +1 -1
  190. package/lib/commands/sql/push.js +1 -1
  191. package/lib/commands/sql/shared.js +1 -1
  192. package/lib/commands/sql/status.js +1 -1
  193. package/lib/commands/sql/validate.js +1 -1
  194. package/lib/commands/task/index.js +1 -1
  195. package/lib/commands/task/status.js +1 -1
  196. package/lib/commands/tenant/index.js +1 -1
  197. package/lib/commands/tenant/members-list.js +1 -1
  198. package/lib/commands/tenant/shared.js +1 -1
  199. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  200. package/lib/commands/user-account/index.js +1 -1
  201. package/lib/commands/workspace/add.js +1 -1
  202. package/lib/commands/workspace/index.js +1 -1
  203. package/lib/commands/workspace/remove.js +1 -1
  204. package/lib/config/schema.js +1 -1
  205. package/lib/constant/cdn.js +1 -1
  206. package/lib/constant/cli.js +1 -1
  207. package/lib/constant/defaults.js +1 -1
  208. package/lib/constant/domain.js +1 -1
  209. package/lib/constant/env.js +1 -1
  210. package/lib/constant/output.js +1 -1
  211. package/lib/constant/paths.js +1 -1
  212. package/lib/constant/risk.js +1 -1
  213. package/lib/context/app-resolver.js +1 -1
  214. package/lib/context/auth-resolver.js +1 -1
  215. package/lib/context/config-loader.js +1 -1
  216. package/lib/context.js +1 -1
  217. package/lib/core/alias-resolver.js +1 -1
  218. package/lib/core/api-client.js +1 -1
  219. package/lib/core/bff/config.js +1 -1
  220. package/lib/core/bff/file-system.js +1 -1
  221. package/lib/core/bff/hash.js +1 -1
  222. package/lib/core/bff/lock.js +1 -1
  223. package/lib/core/bff/utils.js +1 -1
  224. package/lib/core/db-resolver.js +1 -1
  225. package/lib/core/page/file-system.js +1 -1
  226. package/lib/core/page/hash.js +1 -1
  227. package/lib/core/page/lock.js +1 -1
  228. package/lib/core/sql-index-auditor.js +1 -1
  229. package/lib/core/sql-sync/config.js +1 -1
  230. package/lib/core/sql-sync/file-system.js +1 -1
  231. package/lib/core/sql-sync/hash.js +1 -1
  232. package/lib/core/sql-sync/lock.js +1 -1
  233. package/lib/core/sql-sync/utils.js +1 -1
  234. package/lib/core/sql-validator.js +1 -1
  235. package/lib/errors.js +1 -1
  236. package/lib/framework/build-all-flags.js +1 -1
  237. package/lib/framework/error-output.js +1 -1
  238. package/lib/framework/explicit-yes.js +1 -1
  239. package/lib/framework/flags.js +1 -1
  240. package/lib/framework/help.js +1 -1
  241. package/lib/framework/index.js +1 -1
  242. package/lib/framework/output.js +1 -1
  243. package/lib/framework/response.js +1 -1
  244. package/lib/framework/runner-alias.js +1 -1
  245. package/lib/framework/runner.js +1 -1
  246. package/lib/framework/schema-export.js +1 -1
  247. package/lib/framework/types.js +1 -1
  248. package/lib/generated/build-info.d.ts +4 -4
  249. package/lib/generated/build-info.js +1 -1
  250. package/lib/help.js +1 -1
  251. package/lib/postinstall.js +1 -1
  252. package/lib/runtime/confirmation.js +1 -1
  253. package/lib/runtime/event.js +1 -1
  254. package/lib/runtime/index.js +1 -1
  255. package/lib/runtime/queue.js +1 -1
  256. package/lib/runtime/resolve.js +1 -1
  257. package/lib/skills/builtin-skill.js +1 -1
  258. package/lib/skills/main.js +1 -1
  259. package/lib/skills/npx-skills-add.js +1 -1
  260. package/lib/skills/skill-presence.js +1 -1
  261. package/lib/telemetry/cli-command-trace.js +1 -1
  262. package/lib/telemetry/cli-help-trace.js +1 -1
  263. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  264. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  265. package/lib/telemetry/send-cli-trace-log.js +1 -1
  266. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  267. package/lib/utils/ai_config.js +1 -1
  268. package/lib/utils/apply-jq-filter.js +1 -1
  269. package/lib/utils/cdn-config.js +1 -1
  270. package/lib/utils/check-sdk-version.js +1 -1
  271. package/lib/utils/cli-version-check.js +1 -1
  272. package/lib/utils/cli-version-policy.js +1 -1
  273. package/lib/utils/config.js +1 -1
  274. package/lib/utils/copy-directory.js +1 -1
  275. package/lib/utils/entity-with-id.js +1 -1
  276. package/lib/utils/file-utils.js +1 -1
  277. package/lib/utils/guides-cdn.js +1 -1
  278. package/lib/utils/http-client.js +1 -1
  279. package/lib/utils/is-non-interactive.js +1 -1
  280. package/lib/utils/logger.js +1 -1
  281. package/lib/utils/params.js +1 -1
  282. package/lib/utils/platform.js +1 -1
  283. package/lib/utils/rules-cdn.js +1 -1
  284. package/lib/utils/sleep.js +1 -1
  285. package/lib/utils/template-replacer.js +1 -1
  286. package/lib/utils/update-notice.js +1 -1
  287. package/lib/utils/version.js +1 -1
  288. package/lib/utils/with-active-cookie.js +1 -1
  289. package/lib/utils/write-cli-side-channel.js +1 -1
  290. package/package.json +1 -1
  291. package/skills/rabetbase/SKILL.md +1 -1
  292. package/skills/rabetbase/references/rabetbase-page-react-detail.md +1 -1
  293. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x18cc6a,_0x6a4d44){const _0x5a4209=a273_0x5dba,_0x47e990=_0x18cc6a();while(!![]){try{const _0x2ff756=parseInt(_0x5a4209(0x125))/0x1+parseInt(_0x5a4209(0x128))/0x2*(parseInt(_0x5a4209(0x126))/0x3)+parseInt(_0x5a4209(0x120))/0x4*(-parseInt(_0x5a4209(0x129))/0x5)+parseInt(_0x5a4209(0x124))/0x6*(-parseInt(_0x5a4209(0x11d))/0x7)+-parseInt(_0x5a4209(0x12d))/0x8+-parseInt(_0x5a4209(0x11f))/0x9+-parseInt(_0x5a4209(0x122))/0xa*(-parseInt(_0x5a4209(0x12a))/0xb);if(_0x2ff756===_0x6a4d44)break;else _0x47e990['push'](_0x47e990['shift']());}catch(_0x4c2bc9){_0x47e990['push'](_0x47e990['shift']());}}}(a273_0x455a,0xec8a2));import{getTemplateBaseUrl}from'../utils/config.js';function a273_0x455a(){const _0x5a2951=['20kYIdFH','sdk','42QNuhft','1248365mdkIXu','426597mpxBcE','stableVersion','22kffjPr','115yeVrSj','13188725gwHSol','node','cli','12743432ueYgBI','15589LhhjUD','json','13083741ehgHQZ','205108OxEabj','now'];a273_0x455a=function(){return _0x5a2951;};return a273_0x455a();}export async function fetchCdnConfig(){const _0x2f3872=a273_0x5dba,_0x16b07b=getTemplateBaseUrl(),_0x741188=[_0x16b07b+'/config.json',_0x16b07b+'/config/index.json'];for(const _0x4a9a9d of _0x741188){try{const _0x4188d1=await fetch(_0x4a9a9d,{'headers':{'Accept':'application/json'}});if(!_0x4188d1['ok'])continue;const _0x4e1579=await _0x4188d1[_0x2f3872(0x11e)]();if(!_0x4e1579[_0x2f3872(0x12c)]?.[_0x2f3872(0x127)]||!_0x4e1579[_0x2f3872(0x123)]?.[_0x2f3872(0x12b)]?.['stableVersion'])continue;return _0x4e1579;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a273_0x5dba(_0x4061be,_0x544452){_0x4061be=_0x4061be-0x11d;const _0x455ab4=a273_0x455a();let _0x5dbae8=_0x455ab4[_0x4061be];return _0x5dbae8;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x469123=a273_0x5dba,_0x4a982d=Date[_0x469123(0x121)]();if(hasCachedConfig){const _0x461097=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4a982d-cacheTime<_0x461097)return cachedConfig;}const _0x39ab7a=await fetchCdnConfig();return cachedConfig=_0x39ab7a,cacheTime=_0x4a982d,hasCachedConfig=!![],_0x39ab7a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x3311d7,_0x28caf4){const _0x16d778=a273_0x1249,_0x327c2b=_0x3311d7();while(!![]){try{const _0x319a38=parseInt(_0x16d778(0x1b8))/0x1*(-parseInt(_0x16d778(0x1b5))/0x2)+parseInt(_0x16d778(0x1bd))/0x3+parseInt(_0x16d778(0x1bb))/0x4+parseInt(_0x16d778(0x1b6))/0x5*(parseInt(_0x16d778(0x1c0))/0x6)+-parseInt(_0x16d778(0x1ae))/0x7*(-parseInt(_0x16d778(0x1ba))/0x8)+parseInt(_0x16d778(0x1af))/0x9*(parseInt(_0x16d778(0x1be))/0xa)+-parseInt(_0x16d778(0x1b2))/0xb*(parseInt(_0x16d778(0x1b9))/0xc);if(_0x319a38===_0x28caf4)break;else _0x327c2b['push'](_0x327c2b['shift']());}catch(_0x24d51a){_0x327c2b['push'](_0x327c2b['shift']());}}}(a273_0x336e,0xb348e));function a273_0x336e(){const _0x33a5fd=['6606miywLE','/config.json','stableVersion','21104721BUnkrC','now','/config/index.json','1132RdkbKa','20aNnlLx','json','1958vaGfEB','12FfXkYA','13592fkuvwG','4845192EocrmE','sdk','2852604xdRAhv','12200MWbLOS','cli','971214ETrLre','231Rsqnnd'];a273_0x336e=function(){return _0x33a5fd;};return a273_0x336e();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5897ed=a273_0x1249,_0x48146b=getTemplateBaseUrl(),_0x26a133=[_0x48146b+_0x5897ed(0x1b0),_0x48146b+_0x5897ed(0x1b4)];for(const _0x5b84fe of _0x26a133){try{const _0x31d923=await fetch(_0x5b84fe,{'headers':{'Accept':'application/json'}});if(!_0x31d923['ok'])continue;const _0x2d77b8=await _0x31d923[_0x5897ed(0x1b7)]();if(!_0x2d77b8[_0x5897ed(0x1bf)]?.[_0x5897ed(0x1b1)]||!_0x2d77b8[_0x5897ed(0x1bc)]?.['node']?.[_0x5897ed(0x1b1)])continue;return _0x2d77b8;}catch{}}return null;}function a273_0x1249(_0x4a3f9d,_0x5c2ebd){_0x4a3f9d=_0x4a3f9d-0x1ae;const _0x336e9f=a273_0x336e();let _0x1249de=_0x336e9f[_0x4a3f9d];return _0x1249de;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2c1e85=a273_0x1249,_0xbdd6bb=Date[_0x2c1e85(0x1b3)]();if(hasCachedConfig){const _0x1f794f=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xbdd6bb-cacheTime<_0x1f794f)return cachedConfig;}const _0x177db9=await fetchCdnConfig();return cachedConfig=_0x177db9,cacheTime=_0xbdd6bb,hasCachedConfig=!![],_0x177db9;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a274_0x37f2df=a274_0x1953;(function(_0xfd6f8a,_0x3a2a67){const _0x438b11=a274_0x1953,_0x572415=_0xfd6f8a();while(!![]){try{const _0x5374a5=parseInt(_0x438b11(0xef))/0x1+-parseInt(_0x438b11(0xd1))/0x2*(parseInt(_0x438b11(0xdd))/0x3)+parseInt(_0x438b11(0xec))/0x4*(-parseInt(_0x438b11(0xe8))/0x5)+parseInt(_0x438b11(0xeb))/0x6+parseInt(_0x438b11(0xee))/0x7*(-parseInt(_0x438b11(0xd6))/0x8)+-parseInt(_0x438b11(0xcf))/0x9+parseInt(_0x438b11(0xe0))/0xa;if(_0x5374a5===_0x3a2a67)break;else _0x572415['push'](_0x572415['shift']());}catch(_0x4690cb){_0x572415['push'](_0x572415['shift']());}}}(a274_0x4dfb,0xc965d));import a274_0x441048 from'node:fs';import a274_0x5a624b from'node:path';import a274_0x1b2caf from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a274_0x37f2df(0xdc);function isNonNumericVersion(_0x4f1051){const _0x4183b7=a274_0x37f2df,_0x541ffe=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x541ffe[_0x4183b7(0xd5)](_0x179745=>_0x179745[_0x4183b7(0xe1)](_0x4f1051));}function a274_0x1953(_0x5361d7,_0xb17f81){_0x5361d7=_0x5361d7-0xca;const _0x4dfbb2=a274_0x4dfb();let _0x1953c8=_0x4dfbb2[_0x5361d7];return _0x1953c8;}function getInstalledVersion(_0x5e2dd6,_0x435508){const _0x507425=a274_0x37f2df;try{const _0x5953e4=a274_0x5a624b[_0x507425(0xd0)](_0x5e2dd6,_0x507425(0xcb),_0x435508,'package.json');if(a274_0x441048['existsSync'](_0x5953e4)){const _0x35c2cc=JSON['parse'](a274_0x441048['readFileSync'](_0x5953e4,'utf-8'));return _0x35c2cc[_0x507425(0xea)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4f053f=a274_0x37f2df;try{const _0x520343=await getCdnConfig();return _0x520343?.['sdk']?.[_0x4f053f(0xed)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x2f5e87=a274_0x37f2df;try{const _0x4f644e=await getCdnConfig();return _0x4f644e?.[_0x2f5e87(0xe6)]?.[_0x2f5e87(0xed)]?.[_0x2f5e87(0xd7)]||'@lovrabet/sdk';}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x192812){const _0x4dfad0=a274_0x37f2df,_0x201fc6=a274_0x5a624b[_0x4dfad0(0xd0)](_0x192812,_0x4dfad0(0xde)),[_0x10db27,_0x368e19]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x4e7eec=_0x10db27||FALLBACK_MIN_SDK_VERSION;if(!a274_0x441048[_0x4dfad0(0xe9)](_0x201fc6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};try{const _0x18f9e9=JSON['parse'](a274_0x441048[_0x4dfad0(0xd2)](_0x201fc6,_0x4dfad0(0xe4))),_0x45d721=_0x18f9e9[_0x4dfad0(0xe5)]||{},_0x28e47c=_0x18f9e9['devDependencies']||{},_0xd398ef=_0x45d721[_0x368e19]||_0x28e47c[_0x368e19];if(!_0xd398ef)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};let _0x2289a2=getInstalledVersion(_0x192812,_0x368e19);!_0x2289a2&&(_0x2289a2=_0xd398ef);if(isNonNumericVersion(_0xd398ef))return{'installed':!![],'version':_0x2289a2,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};const _0x4c3a18=a274_0x1b2caf[_0x4dfad0(0xd3)](_0x2289a2),_0x2a13ff=a274_0x1b2caf[_0x4dfad0(0xd3)](_0x4e7eec),_0x2cfd7f=_0x4c3a18&&_0x2a13ff?a274_0x1b2caf['lt'](_0x4c3a18,_0x2a13ff):![];return{'installed':!![],'version':_0x2289a2,'needsUpgrade':_0x2cfd7f,'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4e7eec,'packageName':_0x368e19,'stableVersion':_0x10db27};}}export function checkSdkVersionSync(_0x6120c5){const _0x933195=a274_0x37f2df,_0x47dcf2=a274_0x5a624b[_0x933195(0xd0)](_0x6120c5,_0x933195(0xde)),_0x887adc=_0x933195(0xe3);if(!a274_0x441048[_0x933195(0xe9)](_0x47dcf2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};try{const _0x1e3d7a=JSON['parse'](a274_0x441048[_0x933195(0xd2)](_0x47dcf2,_0x933195(0xe4))),_0x1d742b=_0x1e3d7a['dependencies']||{},_0x2661cb=_0x1e3d7a[_0x933195(0xe2)]||{},_0x474852=_0x1d742b[_0x887adc]||_0x2661cb[_0x887adc];if(!_0x474852)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};let _0x27ec0a=getInstalledVersion(_0x6120c5,_0x887adc);!_0x27ec0a&&(_0x27ec0a=_0x474852);if(isNonNumericVersion(_0x474852))return{'installed':!![],'version':_0x27ec0a,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};const _0x2c1ebe=a274_0x1b2caf[_0x933195(0xd3)](_0x27ec0a),_0x5c3ce4=_0x2c1ebe?a274_0x1b2caf['lt'](_0x2c1ebe,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x27ec0a,'needsUpgrade':_0x5c3ce4,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x887adc,'stableVersion':null};}}function a274_0x4dfb(){const _0x28597c=['10801000iREhaG','test','devDependencies','@lovrabet/sdk','utf8','dependencies','sdk','latest','5mZTsdZ','existsSync','version','5940954VuldRU','207852uzEHAu','node','1302AyiEzp','290022WLyMdC','\x20\x20\x20Current\x20version:\x20','node_modules','minVersion','log','\x20\x20\x20Upgrade\x20command:\x20','4379049XTrPjK','join','16wyCdfk','readFileSync','coerce','\x1b[1m','some','23104BXKpAp','packageName','stableVersion','needsUpgrade','↪\x20SDK\x20update\x20available','npm\x20install\x20','1.2.0','172374DAsOWk','package.json','\x1b[33m'];a274_0x4dfb=function(){return _0x28597c;};return a274_0x4dfb();}export function printSdkUpgradeWarning(_0x145106){const _0x23655e=a274_0x37f2df;if(!_0x145106[_0x23655e(0xd9)])return;const _0x3cf367=_0x23655e(0xdf),_0x46530e='\x1b[0m',_0x44d7f3=_0x23655e(0xd4),_0x3e523c=_0x145106[_0x23655e(0xd7)]||'@lovrabet/sdk',_0x28fd01=_0x145106[_0x23655e(0xd8)]||_0x145106[_0x23655e(0xcc)],_0x3a05ec=_0x23655e(0xdb)+_0x3e523c+'@'+(_0x28fd01||_0x23655e(0xe7));console[_0x23655e(0xcd)](),console[_0x23655e(0xcd)](''+_0x3cf367+_0x44d7f3+_0x23655e(0xda)+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+_0x23655e(0xca)+_0x3e523c+'@'+_0x145106[_0x23655e(0xea)]+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+'\x20\x20\x20Stable\x20version:\x20'+_0x28fd01+_0x46530e),console[_0x23655e(0xcd)](_0x3cf367+_0x23655e(0xce)+_0x3a05ec+_0x46530e),console[_0x23655e(0xcd)]();}
1
+ (function(_0x25dbbe,_0x25dfa4){const _0x2d2e6c=a274_0x233e,_0x2af0fc=_0x25dbbe();while(!![]){try{const _0x4452a4=parseInt(_0x2d2e6c(0x1eb))/0x1*(parseInt(_0x2d2e6c(0x209))/0x2)+parseInt(_0x2d2e6c(0x1f0))/0x3*(-parseInt(_0x2d2e6c(0x1ec))/0x4)+parseInt(_0x2d2e6c(0x1f7))/0x5+-parseInt(_0x2d2e6c(0x1ff))/0x6+parseInt(_0x2d2e6c(0x1f2))/0x7*(-parseInt(_0x2d2e6c(0x206))/0x8)+parseInt(_0x2d2e6c(0x1f6))/0x9+parseInt(_0x2d2e6c(0x1f1))/0xa;if(_0x4452a4===_0x25dfa4)break;else _0x2af0fc['push'](_0x2af0fc['shift']());}catch(_0x12877f){_0x2af0fc['push'](_0x2af0fc['shift']());}}}(a274_0x3074,0x867de));import a274_0x662f49 from'node:fs';function a274_0x233e(_0x5669ae,_0x1d1480){_0x5669ae=_0x5669ae-0x1e8;const _0x3074f2=a274_0x3074();let _0x233ea3=_0x3074f2[_0x5669ae];return _0x233ea3;}import a274_0x3739a1 from'node:path';import a274_0x47d3a6 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x39e92f){const _0xad499e=a274_0x233e,_0x5a6edf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5a6edf[_0xad499e(0x1ef)](_0x2929e8=>_0x2929e8[_0xad499e(0x1f5)](_0x39e92f));}function a274_0x3074(){const _0xa12a65=['packageName','test','4116186uxbaFc','4180060kiCWGl','node','\x20\x20\x20Stable\x20version:\x20','join','readFileSync','existsSync','↪\x20SDK\x20update\x20available','\x20\x20\x20Upgrade\x20command:\x20','5713698hVkTOw','stableVersion','utf8','all','utf-8','minVersion','parse','8FhCsOO','\x1b[1m','log','626ZJamCl','npm\x20install\x20','sdk','\x1b[0m','needsUpgrade','version','latest','@lovrabet/sdk','2090lkxkwb','4JbhEMR','package.json','devDependencies','some','476493JneTRr','2722680Xrrfqa','3904684cpZdqT','coerce'];a274_0x3074=function(){return _0xa12a65;};return a274_0x3074();}function getInstalledVersion(_0x61bce7,_0x354a25){const _0x4dac5c=a274_0x233e;try{const _0x38c1d2=a274_0x3739a1[_0x4dac5c(0x1fa)](_0x61bce7,'node_modules',_0x354a25,_0x4dac5c(0x1ed));if(a274_0x662f49[_0x4dac5c(0x1fc)](_0x38c1d2)){const _0x23371e=JSON[_0x4dac5c(0x205)](a274_0x662f49['readFileSync'](_0x38c1d2,_0x4dac5c(0x203)));return _0x23371e[_0x4dac5c(0x1e8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0xf0807=a274_0x233e;try{const _0x326bca=await getCdnConfig();return _0x326bca?.[_0xf0807(0x20b)]?.[_0xf0807(0x1f8)]?.[_0xf0807(0x200)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x88e0a1=a274_0x233e;try{const _0x1795c4=await getCdnConfig();return _0x1795c4?.[_0x88e0a1(0x20b)]?.[_0x88e0a1(0x1f8)]?.[_0x88e0a1(0x1f4)]||_0x88e0a1(0x1ea);}catch{return _0x88e0a1(0x1ea);}}export async function checkSdkVersion(_0x7ec67f){const _0x5a1e89=a274_0x233e,_0x1a0435=a274_0x3739a1['join'](_0x7ec67f,_0x5a1e89(0x1ed)),[_0x96846f,_0x33500b]=await Promise[_0x5a1e89(0x202)]([getSdkStableVersion(),getSdkPackageName()]),_0x4fdfe8=_0x96846f||FALLBACK_MIN_SDK_VERSION;if(!a274_0x662f49['existsSync'](_0x1a0435))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fdfe8,'packageName':_0x33500b,'stableVersion':_0x96846f};try{const _0x8c61c=JSON[_0x5a1e89(0x205)](a274_0x662f49[_0x5a1e89(0x1fb)](_0x1a0435,_0x5a1e89(0x201))),_0x39b788=_0x8c61c['dependencies']||{},_0x352a14=_0x8c61c[_0x5a1e89(0x1ee)]||{},_0x164bbb=_0x39b788[_0x33500b]||_0x352a14[_0x33500b];if(!_0x164bbb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fdfe8,'packageName':_0x33500b,'stableVersion':_0x96846f};let _0x36919e=getInstalledVersion(_0x7ec67f,_0x33500b);!_0x36919e&&(_0x36919e=_0x164bbb);if(isNonNumericVersion(_0x164bbb))return{'installed':!![],'version':_0x36919e,'needsUpgrade':![],'minVersion':_0x4fdfe8,'packageName':_0x33500b,'stableVersion':_0x96846f};const _0x322c47=a274_0x47d3a6[_0x5a1e89(0x1f3)](_0x36919e),_0x5d5897=a274_0x47d3a6[_0x5a1e89(0x1f3)](_0x4fdfe8),_0xfe8a69=_0x322c47&&_0x5d5897?a274_0x47d3a6['lt'](_0x322c47,_0x5d5897):![];return{'installed':!![],'version':_0x36919e,'needsUpgrade':_0xfe8a69,'minVersion':_0x4fdfe8,'packageName':_0x33500b,'stableVersion':_0x96846f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4fdfe8,'packageName':_0x33500b,'stableVersion':_0x96846f};}}export function checkSdkVersionSync(_0x2806b4){const _0x535089=a274_0x233e,_0x131e3d=a274_0x3739a1[_0x535089(0x1fa)](_0x2806b4,_0x535089(0x1ed)),_0x401ee4=_0x535089(0x1ea);if(!a274_0x662f49[_0x535089(0x1fc)](_0x131e3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x401ee4,'stableVersion':null};try{const _0x5f2a2f=JSON[_0x535089(0x205)](a274_0x662f49[_0x535089(0x1fb)](_0x131e3d,'utf8')),_0x142cd9=_0x5f2a2f['dependencies']||{},_0x556c00=_0x5f2a2f[_0x535089(0x1ee)]||{},_0x1c68a6=_0x142cd9[_0x401ee4]||_0x556c00[_0x401ee4];if(!_0x1c68a6)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x401ee4,'stableVersion':null};let _0x4cd7e0=getInstalledVersion(_0x2806b4,_0x401ee4);!_0x4cd7e0&&(_0x4cd7e0=_0x1c68a6);if(isNonNumericVersion(_0x1c68a6))return{'installed':!![],'version':_0x4cd7e0,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x401ee4,'stableVersion':null};const _0x4adbcd=a274_0x47d3a6[_0x535089(0x1f3)](_0x4cd7e0),_0x539c49=_0x4adbcd?a274_0x47d3a6['lt'](_0x4adbcd,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4cd7e0,'needsUpgrade':_0x539c49,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x401ee4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x401ee4,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2bb671){const _0x4e7937=a274_0x233e;if(!_0x2bb671[_0x4e7937(0x20d)])return;const _0x432628='\x1b[33m',_0x2f4804=_0x4e7937(0x20c),_0x53a961=_0x4e7937(0x207),_0xe87386=_0x2bb671[_0x4e7937(0x1f4)]||'@lovrabet/sdk',_0x3ed9de=_0x2bb671['stableVersion']||_0x2bb671[_0x4e7937(0x204)],_0x54fb82=_0x4e7937(0x20a)+_0xe87386+'@'+(_0x3ed9de||_0x4e7937(0x1e9));console[_0x4e7937(0x208)](),console['log'](''+_0x432628+_0x53a961+_0x4e7937(0x1fd)+_0x2f4804),console[_0x4e7937(0x208)](_0x432628+'\x20\x20\x20Current\x20version:\x20'+_0xe87386+'@'+_0x2bb671[_0x4e7937(0x1e8)]+_0x2f4804),console[_0x4e7937(0x208)](_0x432628+_0x4e7937(0x1f9)+_0x3ed9de+_0x2f4804),console[_0x4e7937(0x208)](_0x432628+_0x4e7937(0x1fe)+_0x54fb82+_0x2f4804),console[_0x4e7937(0x208)]();}
@@ -1 +1 @@
1
- (function(_0x4cf4f3,_0x48a729){const _0x117cc0=a275_0x3a02,_0x276896=_0x4cf4f3();while(!![]){try{const _0x42d8af=parseInt(_0x117cc0(0x1d9))/0x1+-parseInt(_0x117cc0(0x1d5))/0x2+-parseInt(_0x117cc0(0x1d1))/0x3*(-parseInt(_0x117cc0(0x1e9))/0x4)+parseInt(_0x117cc0(0x1dd))/0x5*(parseInt(_0x117cc0(0x1e3))/0x6)+-parseInt(_0x117cc0(0x1cc))/0x7+-parseInt(_0x117cc0(0x1d3))/0x8*(-parseInt(_0x117cc0(0x1da))/0x9)+parseInt(_0x117cc0(0x1db))/0xa*(-parseInt(_0x117cc0(0x1d2))/0xb);if(_0x42d8af===_0x48a729)break;else _0x276896['push'](_0x276896['shift']());}catch(_0x5e8ea1){_0x276896['push'](_0x276896['shift']());}}}(a275_0x1c4e,0xdb04b));function a275_0x3a02(_0x5aa63f,_0x4dc2ee){_0x5aa63f=_0x5aa63f-0x1cc;const _0x1c4ebf=a275_0x1c4e();let _0x3a02cb=_0x1c4ebf[_0x5aa63f];return _0x3a02cb;}import{readFileSync}from'node:fs';function a275_0x1c4e(){const _0x404645=['log','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x1b[1m','filter','package.json','\x20\x20\x20Current\x20CLI\x20version:\x20','10191363fWpVBb','\x1b[31m','\x20\x20\x20','minimumVersionMessage','↪\x20Critical\x20CLI\x20upgrade\x20required','1385427fejYgG','26322329pONTDY','16vZTWQS','\x20\x20\x20Minimum\x20supported:\x20','351840ZKpxgX','\x1b[33m','upgradeMessage','coerce','969310bsSsga','8063037lsFtUk','10CutnrV','currentVersion','215MNywub','minimumVersion','join','../..','Minimum\x20supported:\x20','Current\x20version:\x20','172626ozuexQ','validation','parse','belowMinimum','utf-8','\x20\x20\x20Recommended\x20stable:\x20','8gWzDhM','\x20\x20\x20Stable\x20version:\x20','stableVersion','latest'];a275_0x1c4e=function(){return _0x404645;};return a275_0x1c4e();}import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a275_0x5ed8a1 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0xd54ba3){const _0x132230=a275_0x3a02,_0x26f41f=_0xd54ba3[_0x132230(0x1eb)]||_0x132230(0x1ec);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x26f41f;}function getCurrentCliVersion(){const _0x4b7c87=a275_0x3a02;try{const _0x44db2d=fileURLToPath(import.meta.url),_0x298523=resolve(dirname(_0x44db2d),_0x4b7c87(0x1e0)),_0x59b101=resolve(_0x298523,_0x4b7c87(0x1f3)),_0x51b760=JSON[_0x4b7c87(0x1e5)](readFileSync(_0x59b101,_0x4b7c87(0x1e7)));return _0x51b760['version']||_0x4b7c87(0x1f0);}catch{return _0x4b7c87(0x1f0);}}export async function checkCliVersion(){const _0x84b7b2=a275_0x3a02,_0x3a3893=getCurrentCliVersion(),_0x4812ce=await getCliVersionPolicy(),_0x16f93a=_0x4812ce?.['stableVersion']||null,_0x5a1c38=_0x4812ce?.[_0x84b7b2(0x1de)]||null;let _0x208715=![],_0x493049=![];const _0x478c69=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x3a3893);if(_0x478c69&&_0x16f93a)try{const _0xf6594e=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x16f93a);if(_0xf6594e)_0x208715=a275_0x5ed8a1['lt'](_0x478c69,_0xf6594e);}catch{}if(_0x478c69&&_0x5a1c38)try{const _0x5aca8c=a275_0x5ed8a1[_0x84b7b2(0x1d8)](_0x5a1c38);if(_0x5aca8c)_0x493049=a275_0x5ed8a1['lt'](_0x478c69,_0x5aca8c);}catch{}return _0x493049&&(_0x208715=!![]),{'currentVersion':_0x3a3893,'stableVersion':_0x16f93a,'minimumVersion':_0x5a1c38,'needsUpgrade':_0x208715,'belowMinimum':_0x493049,'isPreRelease':![],'upgradeMessage':_0x4812ce?.[_0x84b7b2(0x1d7)],'minimumVersionMessage':_0x4812ce?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x3f5438){const _0x4e3445=a275_0x3a02;if(!_0x3f5438['needsUpgrade']&&!_0x3f5438[_0x4e3445(0x1e6)])return;const _0x497c3d=_0x4e3445(0x1cd),_0x4e4bc0=_0x4e3445(0x1d6),_0x37b34a='\x1b[0m',_0x23aec9=_0x4e3445(0x1f1),_0x403d2b=getCliUpgradeCommand(_0x3f5438);console['log'](),_0x3f5438['belowMinimum']?(console[_0x4e3445(0x1ed)](''+_0x497c3d+_0x23aec9+_0x4e3445(0x1d0)+_0x37b34a),console['log'](_0x497c3d+_0x4e3445(0x1f4)+_0x3f5438[_0x4e3445(0x1dc)]+_0x37b34a),_0x3f5438[_0x4e3445(0x1de)]&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1d4)+_0x3f5438['minimumVersion']+_0x37b34a),_0x3f5438[_0x4e3445(0x1eb)]&&_0x3f5438[_0x4e3445(0x1eb)]!==_0x3f5438[_0x4e3445(0x1de)]&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1e8)+_0x3f5438[_0x4e3445(0x1eb)]+_0x37b34a),_0x3f5438['minimumVersionMessage']&&console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1ce)+_0x3f5438[_0x4e3445(0x1cf)]+_0x37b34a),console[_0x4e3445(0x1ed)](_0x497c3d+_0x4e3445(0x1ef)+_0x403d2b+_0x37b34a)):(console['log'](''+_0x4e4bc0+_0x23aec9+'↪\x20New\x20version\x20available'+_0x37b34a),console['log'](_0x4e4bc0+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x3f5438[_0x4e3445(0x1dc)]+_0x37b34a),console['log'](_0x4e4bc0+_0x4e3445(0x1ea)+_0x3f5438[_0x4e3445(0x1eb)]+_0x37b34a),_0x3f5438['upgradeMessage']&&console['log'](_0x4e4bc0+_0x4e3445(0x1ce)+_0x3f5438[_0x4e3445(0x1d7)]+_0x37b34a),console[_0x4e3445(0x1ed)](_0x4e4bc0+_0x4e3445(0x1ef)+_0x403d2b+_0x37b34a)),console[_0x4e3445(0x1ed)]();}export function assertCliVersionSupported(_0x56bcaa){const _0x1d6fe1=a275_0x3a02;if(!_0x56bcaa[_0x1d6fe1(0x1e6)])return;const _0x3d8965=[_0x56bcaa[_0x1d6fe1(0x1cf)],_0x1d6fe1(0x1e2)+_0x56bcaa[_0x1d6fe1(0x1dc)],_0x56bcaa[_0x1d6fe1(0x1de)]?_0x1d6fe1(0x1e1)+_0x56bcaa[_0x1d6fe1(0x1de)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x56bcaa)][_0x1d6fe1(0x1f2)](Boolean)[_0x1d6fe1(0x1df)]('\x0a');throw CliErrors[_0x1d6fe1(0x1e4)](_0x1d6fe1(0x1ee),_0x3d8965);}
1
+ (function(_0x208f15,_0x2efbf0){const _0x3c625c=a275_0x28b3,_0x14e7ee=_0x208f15();while(!![]){try{const _0x218b5a=-parseInt(_0x3c625c(0x105))/0x1+-parseInt(_0x3c625c(0x11e))/0x2*(-parseInt(_0x3c625c(0x121))/0x3)+-parseInt(_0x3c625c(0x106))/0x4*(-parseInt(_0x3c625c(0x123))/0x5)+parseInt(_0x3c625c(0x111))/0x6+parseInt(_0x3c625c(0x126))/0x7*(-parseInt(_0x3c625c(0x112))/0x8)+-parseInt(_0x3c625c(0x10a))/0x9*(parseInt(_0x3c625c(0x127))/0xa)+-parseInt(_0x3c625c(0x11d))/0xb*(-parseInt(_0x3c625c(0x118))/0xc);if(_0x218b5a===_0x2efbf0)break;else _0x14e7ee['push'](_0x14e7ee['shift']());}catch(_0x24cdb6){_0x14e7ee['push'](_0x14e7ee['shift']());}}}(a275_0x2cd9,0x96629));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a275_0x28b3(_0x9ef15,_0x3398bf){_0x9ef15=_0x9ef15-0x101;const _0x2cd936=a275_0x2cd9();let _0x28b32b=_0x2cd936[_0x9ef15];return _0x28b32b;}import a275_0x803e9b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a275_0x2cd9(){const _0x46dc0b=['\x1b[31m','../..','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','830652CmzBMt','2056fwxgRJ','\x20\x20\x20Upgrade\x20command:\x20','belowMinimum','\x1b[33m','Upgrade\x20command:\x20','1.0.0','19411692aRDFMA','\x20\x20\x20','stableVersion','join','\x20\x20\x20Minimum\x20supported:\x20','11fVqsAy','2NPrkzW','upgradeMessage','minimumVersion','630069GtZDok','\x1b[0m','5Bxamsm','coerce','needsUpgrade','12642cEnbJs','1462390FlbitA','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersionMessage','latest','currentVersion','log','package.json','339221iVwoVd','2492584QZmQaY','↪\x20New\x20version\x20available','version','\x1b[1m','72XvLyot','utf-8','validation','\x20\x20\x20Current\x20CLI\x20version:\x20'];a275_0x2cd9=function(){return _0x46dc0b;};return a275_0x2cd9();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x3e0361){const _0x5c3a32=a275_0x28b3,_0x1570a8=_0x3e0361[_0x5c3a32(0x11a)]||_0x5c3a32(0x101);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x1570a8;}function getCurrentCliVersion(){const _0x3ad1f2=a275_0x28b3;try{const _0x7bec97=fileURLToPath(import.meta.url),_0x5bbaf6=resolve(dirname(_0x7bec97),_0x3ad1f2(0x10f)),_0x281ada=resolve(_0x5bbaf6,_0x3ad1f2(0x104)),_0x240c78=JSON['parse'](readFileSync(_0x281ada,_0x3ad1f2(0x10b)));return _0x240c78[_0x3ad1f2(0x108)]||_0x3ad1f2(0x117);}catch{return _0x3ad1f2(0x117);}}export async function checkCliVersion(){const _0x13e431=a275_0x28b3,_0x141dfa=getCurrentCliVersion(),_0x2abf31=await getCliVersionPolicy(),_0x22c16f=_0x2abf31?.[_0x13e431(0x11a)]||null,_0x6dd3b8=_0x2abf31?.[_0x13e431(0x120)]||null;let _0x1fb810=![],_0x370120=![];const _0x5bbde0=a275_0x803e9b[_0x13e431(0x124)](_0x141dfa);if(_0x5bbde0&&_0x22c16f)try{const _0x3d9b6f=a275_0x803e9b[_0x13e431(0x124)](_0x22c16f);if(_0x3d9b6f)_0x1fb810=a275_0x803e9b['lt'](_0x5bbde0,_0x3d9b6f);}catch{}if(_0x5bbde0&&_0x6dd3b8)try{const _0x36b33e=a275_0x803e9b[_0x13e431(0x124)](_0x6dd3b8);if(_0x36b33e)_0x370120=a275_0x803e9b['lt'](_0x5bbde0,_0x36b33e);}catch{}return _0x370120&&(_0x1fb810=!![]),{'currentVersion':_0x141dfa,'stableVersion':_0x22c16f,'minimumVersion':_0x6dd3b8,'needsUpgrade':_0x1fb810,'belowMinimum':_0x370120,'isPreRelease':![],'upgradeMessage':_0x2abf31?.['upgradeMessage'],'minimumVersionMessage':_0x2abf31?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4c976c){const _0x1797cc=a275_0x28b3;if(!_0x4c976c[_0x1797cc(0x125)]&&!_0x4c976c[_0x1797cc(0x114)])return;const _0x204621=_0x1797cc(0x10e),_0x4e5ed2=_0x1797cc(0x115),_0x4cc66f=_0x1797cc(0x122),_0x52562e=_0x1797cc(0x109),_0x4446f5=getCliUpgradeCommand(_0x4c976c);console[_0x1797cc(0x103)](),_0x4c976c[_0x1797cc(0x114)]?(console[_0x1797cc(0x103)](''+_0x204621+_0x52562e+_0x1797cc(0x128)+_0x4cc66f),console[_0x1797cc(0x103)](_0x204621+_0x1797cc(0x10d)+_0x4c976c[_0x1797cc(0x102)]+_0x4cc66f),_0x4c976c[_0x1797cc(0x120)]&&console[_0x1797cc(0x103)](_0x204621+_0x1797cc(0x11c)+_0x4c976c['minimumVersion']+_0x4cc66f),_0x4c976c[_0x1797cc(0x11a)]&&_0x4c976c[_0x1797cc(0x11a)]!==_0x4c976c[_0x1797cc(0x120)]&&console[_0x1797cc(0x103)](_0x204621+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4c976c[_0x1797cc(0x11a)]+_0x4cc66f),_0x4c976c['minimumVersionMessage']&&console['log'](_0x204621+'\x20\x20\x20'+_0x4c976c[_0x1797cc(0x129)]+_0x4cc66f),console[_0x1797cc(0x103)](_0x204621+_0x1797cc(0x113)+_0x4446f5+_0x4cc66f)):(console[_0x1797cc(0x103)](''+_0x4e5ed2+_0x52562e+_0x1797cc(0x107)+_0x4cc66f),console[_0x1797cc(0x103)](_0x4e5ed2+_0x1797cc(0x10d)+_0x4c976c[_0x1797cc(0x102)]+_0x4cc66f),console[_0x1797cc(0x103)](_0x4e5ed2+'\x20\x20\x20Stable\x20version:\x20'+_0x4c976c[_0x1797cc(0x11a)]+_0x4cc66f),_0x4c976c[_0x1797cc(0x11f)]&&console[_0x1797cc(0x103)](_0x4e5ed2+_0x1797cc(0x119)+_0x4c976c['upgradeMessage']+_0x4cc66f),console['log'](_0x4e5ed2+'\x20\x20\x20Upgrade\x20command:\x20'+_0x4446f5+_0x4cc66f)),console[_0x1797cc(0x103)]();}export function assertCliVersionSupported(_0x2b9405){const _0x40938d=a275_0x28b3;if(!_0x2b9405['belowMinimum'])return;const _0x41a6e2=[_0x2b9405[_0x40938d(0x129)],'Current\x20version:\x20'+_0x2b9405['currentVersion'],_0x2b9405[_0x40938d(0x120)]?'Minimum\x20supported:\x20'+_0x2b9405[_0x40938d(0x120)]:null,_0x40938d(0x116)+getCliUpgradeCommand(_0x2b9405)]['filter'](Boolean)[_0x40938d(0x11b)]('\x0a');throw CliErrors[_0x40938d(0x10c)](_0x40938d(0x110),_0x41a6e2);}
@@ -1 +1 @@
1
- (function(_0x7ea719,_0x2295d5){const _0x1ab892=a276_0xaeb3,_0x17958e=_0x7ea719();while(!![]){try{const _0x4b21d8=parseInt(_0x1ab892(0xbf))/0x1*(-parseInt(_0x1ab892(0xc8))/0x2)+-parseInt(_0x1ab892(0xbb))/0x3+parseInt(_0x1ab892(0xb7))/0x4+-parseInt(_0x1ab892(0xb5))/0x5*(parseInt(_0x1ab892(0xc5))/0x6)+parseInt(_0x1ab892(0xb9))/0x7+-parseInt(_0x1ab892(0xb2))/0x8*(-parseInt(_0x1ab892(0xb1))/0x9)+parseInt(_0x1ab892(0xb8))/0xa;if(_0x4b21d8===_0x2295d5)break;else _0x17958e['push'](_0x17958e['shift']());}catch(_0x2a49e6){_0x17958e['push'](_0x17958e['shift']());}}}(a276_0x319d,0x32d22));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x51de46){const _0x24b7a5=a276_0xaeb3;return typeof _0x51de46===_0x24b7a5(0xb3)&&_0x51de46['trim']()['length']>0x0?_0x51de46[_0x24b7a5(0xc3)]():null;}function normalizeCliVersionPolicy(_0x29b42b){const _0x2f3371=a276_0xaeb3;if(!_0x29b42b||typeof _0x29b42b!==_0x2f3371(0xc1))return null;const _0x441a0a=_0x29b42b,_0x371836=_0x441a0a[_0x2f3371(0xbc)]&&typeof _0x441a0a[_0x2f3371(0xbc)]==='object'?_0x441a0a[_0x2f3371(0xbc)]:_0x441a0a,_0x2e4d3f=pickString(_0x371836['stableVersion'])||pickString(_0x371836[_0x2f3371(0xc7)])||pickString(_0x371836[_0x2f3371(0xb4)]),_0x4e1718=pickString(_0x371836[_0x2f3371(0xc4)])||pickString(_0x371836[_0x2f3371(0xc6)]);if(!_0x2e4d3f&&!_0x4e1718)return null;return{'stableVersion':_0x2e4d3f,'minimumVersion':_0x4e1718,'upgradeMessage':pickString(_0x371836[_0x2f3371(0xbe)])||undefined,'minimumVersionMessage':pickString(_0x371836[_0x2f3371(0xb6)])||undefined};}export async function fetchCliVersionPolicy(){const _0x416fdf=a276_0xaeb3,_0x11c83a=new AbortController(),_0x3e60d5=setTimeout(()=>_0x11c83a[_0x416fdf(0xc2)](),FETCH_TIMEOUT_MS);try{const _0x5e206f=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x416fdf(0xba)},'signal':_0x11c83a['signal']});if(!_0x5e206f['ok'])return null;const _0x2a96cb=await _0x5e206f[_0x416fdf(0xc0)]();return normalizeCliVersionPolicy(_0x2a96cb);}catch{return null;}finally{clearTimeout(_0x3e60d5);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a276_0x319d(){const _0x4b1d9b=['6zZFerv','minVersion','latestVersion','406thqruy','497277lJYKIO','8MyrfXS','string','recommendedVersion','1623865taOTOP','minimumVersionMessage','353916fxVrkA','1639240BkBvSW','1906408ELGaIw','application/json','134496tQjVIV','cli','now','upgradeMessage','11ODGvqR','json','object','abort','trim','minimumVersion'];a276_0x319d=function(){return _0x4b1d9b;};return a276_0x319d();}function a276_0xaeb3(_0x1eaff5,_0x597ac0){_0x1eaff5=_0x1eaff5-0xb1;const _0x319d23=a276_0x319d();let _0xaeb3f6=_0x319d23[_0x1eaff5];return _0xaeb3f6;}export async function getCliVersionPolicy(){const _0x2fb0ee=a276_0xaeb3,_0x127cd5=Date[_0x2fb0ee(0xbd)]();if(hasCachedPolicy){const _0x2b2bb8=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x127cd5-cacheTime<_0x2b2bb8)return cachedPolicy;}const _0x5b5329=await fetchCliVersionPolicy();return cachedPolicy=_0x5b5329,cacheTime=_0x127cd5,hasCachedPolicy=!![],_0x5b5329;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a276_0x2bb1(_0x57a8ab,_0x281fdb){_0x57a8ab=_0x57a8ab-0x1c8;const _0x4a8d94=a276_0x4a8d();let _0x2bb18e=_0x4a8d94[_0x57a8ab];return _0x2bb18e;}(function(_0x4c968c,_0x3c166b){const _0xa4b04d=a276_0x2bb1,_0x553239=_0x4c968c();while(!![]){try{const _0x5cdcbd=parseInt(_0xa4b04d(0x1c8))/0x1*(-parseInt(_0xa4b04d(0x1dc))/0x2)+-parseInt(_0xa4b04d(0x1d5))/0x3*(-parseInt(_0xa4b04d(0x1d1))/0x4)+-parseInt(_0xa4b04d(0x1d7))/0x5*(parseInt(_0xa4b04d(0x1d2))/0x6)+-parseInt(_0xa4b04d(0x1d3))/0x7+-parseInt(_0xa4b04d(0x1db))/0x8*(-parseInt(_0xa4b04d(0x1cd))/0x9)+parseInt(_0xa4b04d(0x1c9))/0xa*(parseInt(_0xa4b04d(0x1da))/0xb)+parseInt(_0xa4b04d(0x1d6))/0xc*(parseInt(_0xa4b04d(0x1cc))/0xd);if(_0x5cdcbd===_0x3c166b)break;else _0x553239['push'](_0x553239['shift']());}catch(_0x89d5f4){_0x553239['push'](_0x553239['shift']());}}}(a276_0x4a8d,0x2abd6));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3d994c){const _0x28fcaa=a276_0x2bb1;return typeof _0x3d994c===_0x28fcaa(0x1ce)&&_0x3d994c['trim']()[_0x28fcaa(0x1cb)]>0x0?_0x3d994c[_0x28fcaa(0x1d8)]():null;}function normalizeCliVersionPolicy(_0x272912){const _0x1d7f03=a276_0x2bb1;if(!_0x272912||typeof _0x272912!==_0x1d7f03(0x1d0))return null;const _0x221a13=_0x272912,_0x4e362e=_0x221a13[_0x1d7f03(0x1dd)]&&typeof _0x221a13['cli']===_0x1d7f03(0x1d0)?_0x221a13[_0x1d7f03(0x1dd)]:_0x221a13,_0x36b965=pickString(_0x4e362e['stableVersion'])||pickString(_0x4e362e['latestVersion'])||pickString(_0x4e362e['recommendedVersion']),_0xcf89f=pickString(_0x4e362e['minimumVersion'])||pickString(_0x4e362e[_0x1d7f03(0x1cf)]);if(!_0x36b965&&!_0xcf89f)return null;return{'stableVersion':_0x36b965,'minimumVersion':_0xcf89f,'upgradeMessage':pickString(_0x4e362e['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x4e362e['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x18bd5c=a276_0x2bb1,_0x5c1812=new AbortController(),_0x4c1a71=setTimeout(()=>_0x5c1812['abort'](),FETCH_TIMEOUT_MS);try{const _0xe4400=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x18bd5c(0x1d4)},'signal':_0x5c1812[_0x18bd5c(0x1d9)]});if(!_0xe4400['ok'])return null;const _0x1ce1c9=await _0xe4400[_0x18bd5c(0x1ca)]();return normalizeCliVersionPolicy(_0x1ce1c9);}catch{return null;}finally{clearTimeout(_0x4c1a71);}}function a276_0x4a8d(){const _0x638d1a=['json','length','780Xygbxi','558tayJpz','string','minVersion','object','20OWOIlW','1861794yavGDT','1570611nGJanh','application/json','175023sDCSQg','75132MILGnZ','5JQEoyG','trim','signal','59521mLoPaQ','9528ZIJtZr','20GdKQSY','cli','28579MrMsdb','470lQipjV'];a276_0x4a8d=function(){return _0x638d1a;};return a276_0x4a8d();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x26f3ad=Date['now']();if(hasCachedPolicy){const _0x58dc85=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x26f3ad-cacheTime<_0x58dc85)return cachedPolicy;}const _0x27bc45=await fetchCliVersionPolicy();return cachedPolicy=_0x27bc45,cacheTime=_0x26f3ad,hasCachedPolicy=!![],_0x27bc45;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a277_0x2284(_0x438048,_0x488aec){_0x438048=_0x438048-0x8c;const _0x4a227b=a277_0x4a22();let _0x2284f8=_0x4a227b[_0x438048];return _0x2284f8;}(function(_0x132264,_0x2bc565){const _0x48bdca=a277_0x2284,_0x27ff66=_0x132264();while(!![]){try{const _0x5e2546=-parseInt(_0x48bdca(0x96))/0x1+-parseInt(_0x48bdca(0x93))/0x2+-parseInt(_0x48bdca(0x95))/0x3*(parseInt(_0x48bdca(0x8d))/0x4)+parseInt(_0x48bdca(0x92))/0x5+-parseInt(_0x48bdca(0x8f))/0x6*(parseInt(_0x48bdca(0x97))/0x7)+parseInt(_0x48bdca(0x90))/0x8+-parseInt(_0x48bdca(0x8c))/0x9*(-parseInt(_0x48bdca(0x91))/0xa);if(_0x5e2546===_0x2bc565)break;else _0x27ff66['push'](_0x27ff66['shift']());}catch(_0xff3fe5){_0x27ff66['push'](_0x27ff66['shift']());}}}(a277_0x4a22,0xb6e8f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a277_0x2ae68a,getMultiAppConfigs as a277_0x3ce934,getTemplateBaseUrl as a277_0x5365b0}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x372b9d){const _0xb7e72d=a277_0x2284,_0x48882a=readRawConfig(_0x372b9d);return _0x48882a['env']&&typeof _0x48882a[_0xb7e72d(0x94)]===_0xb7e72d(0x8e)&&initEnv(_0x48882a[_0xb7e72d(0x94)]),_0x48882a;}function a277_0x4a22(){const _0x32bb36=['324731xzoIPF','7zAfoeY','9rJXefN','92qXVCvh','string','3566454dOwBeC','3248344Rojecl','32679410mixren','3681990hCZgzS','2923588WvpVui','env','166989TODWQc'];a277_0x4a22=function(){return _0x32bb36;};return a277_0x4a22();}export function getConfigAppCode(){return a277_0x2ae68a();}export function getMultiAppConfigs(_0x2e978b='project'){return a277_0x3ce934(_0x2e978b);}export function getTemplateBaseUrl(){return a277_0x5365b0();}
1
+ const a277_0x45b7b3=a277_0x54f2;(function(_0x2c9078,_0x1b0cc5){const _0x3796b1=a277_0x54f2,_0x462f15=_0x2c9078();while(!![]){try{const _0x3d069e=-parseInt(_0x3796b1(0x1f1))/0x1*(parseInt(_0x3796b1(0x1f4))/0x2)+-parseInt(_0x3796b1(0x1f8))/0x3*(parseInt(_0x3796b1(0x1f3))/0x4)+-parseInt(_0x3796b1(0x1ef))/0x5*(parseInt(_0x3796b1(0x1fb))/0x6)+-parseInt(_0x3796b1(0x1f9))/0x7+-parseInt(_0x3796b1(0x1f5))/0x8+-parseInt(_0x3796b1(0x1f6))/0x9*(parseInt(_0x3796b1(0x1f0))/0xa)+parseInt(_0x3796b1(0x1f2))/0xb;if(_0x3d069e===_0x1b0cc5)break;else _0x462f15['push'](_0x462f15['shift']());}catch(_0x2fa001){_0x462f15['push'](_0x462f15['shift']());}}}(a277_0x52bf,0x1d239));import{initEnv}from'../constant/env.js';function a277_0x54f2(_0x32e650,_0x241b05){_0x32e650=_0x32e650-0x1ef;const _0x52bfb2=a277_0x52bf();let _0x54f279=_0x52bfb2[_0x32e650];return _0x54f279;}import{readRawConfig,getConfigAppCode as a277_0x566e1a,getMultiAppConfigs as a277_0x2c19c3,getTemplateBaseUrl as a277_0x77fd43}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x18bd8c){const _0x4ed7f1=a277_0x54f2,_0x24de69=readRawConfig(_0x18bd8c);return _0x24de69[_0x4ed7f1(0x1f7)]&&typeof _0x24de69[_0x4ed7f1(0x1f7)]===_0x4ed7f1(0x1fa)&&initEnv(_0x24de69[_0x4ed7f1(0x1f7)]),_0x24de69;}export function getConfigAppCode(){return a277_0x566e1a();}export function getMultiAppConfigs(_0x251646=a277_0x45b7b3(0x1fc)){return a277_0x2c19c3(_0x251646);}export function getTemplateBaseUrl(){return a277_0x77fd43();}function a277_0x52bf(){const _0x52226b=['3hclaid','553014KurLub','string','6KpPLiS','project','98110MjPfaP','840rklrrb','5595qpjyJW','4353327yXfCYi','465524nNdQVD','2vebwej','19712RvqkUk','5715sRZJpi','env'];a277_0x52bf=function(){return _0x52226b;};return a277_0x52bf();}
@@ -1 +1 @@
1
- (function(_0x45a350,_0x15f67e){const _0x3215c6=a278_0x19b4,_0x155581=_0x45a350();while(!![]){try{const _0x4707fd=parseInt(_0x3215c6(0x169))/0x1+-parseInt(_0x3215c6(0x16e))/0x2*(-parseInt(_0x3215c6(0x168))/0x3)+parseInt(_0x3215c6(0x165))/0x4*(parseInt(_0x3215c6(0x16d))/0x5)+parseInt(_0x3215c6(0x16b))/0x6+-parseInt(_0x3215c6(0x16a))/0x7+-parseInt(_0x3215c6(0x16f))/0x8*(-parseInt(_0x3215c6(0x173))/0x9)+-parseInt(_0x3215c6(0x174))/0xa;if(_0x4707fd===_0x15f67e)break;else _0x155581['push'](_0x155581['shift']());}catch(_0x54a78e){_0x155581['push'](_0x155581['shift']());}}}(a278_0x1f31,0x4240d));function a278_0x19b4(_0x9608f7,_0x2966af){_0x9608f7=_0x9608f7-0x164;const _0x1f3126=a278_0x1f31();let _0x19b4ae=_0x1f3126[_0x9608f7];return _0x19b4ae;}import a278_0x152a91 from'node:path';import a278_0x52cfb7 from'node:fs';export async function copyDirectory(_0x3cec1d,_0x2ed729){const _0x509d12=a278_0x19b4;try{const _0x33264a=a278_0x52cfb7['readdirSync'](_0x3cec1d,{'withFileTypes':!![]});a278_0x52cfb7[_0x509d12(0x172)](_0x2ed729,{'recursive':!![]});for(const _0x260c33 of _0x33264a){const _0x275b59=a278_0x152a91[_0x509d12(0x16c)](_0x3cec1d,_0x260c33['name']),_0x5c42f8=a278_0x152a91[_0x509d12(0x16c)](_0x2ed729,_0x260c33[_0x509d12(0x170)]);_0x260c33[_0x509d12(0x166)]()?await copyDirectory(_0x275b59,_0x5c42f8):a278_0x52cfb7[_0x509d12(0x171)](_0x275b59,_0x5c42f8);}}catch(_0x4c3830){console[_0x509d12(0x164)](_0x509d12(0x167),_0x4c3830);}}function a278_0x1f31(){const _0x3644db=['40724AnsZZz','isDirectory','复制目录时出错:','3YZEpdR','214482BuoxWv','3224613EhqeOH','1830882kWifCa','join','70ZIaQDU','342274KlkeyU','2570080zpIaiu','name','copyFileSync','mkdirSync','9mdVfJX','4225280VdnazC','error'];a278_0x1f31=function(){return _0x3644db;};return a278_0x1f31();}
1
+ (function(_0x51e5e3,_0x282e9d){const _0x5c2463=a278_0x2331,_0x648604=_0x51e5e3();while(!![]){try{const _0x5ad6be=parseInt(_0x5c2463(0xb5))/0x1*(-parseInt(_0x5c2463(0xb4))/0x2)+parseInt(_0x5c2463(0xb2))/0x3+parseInt(_0x5c2463(0xb1))/0x4*(-parseInt(_0x5c2463(0xb8))/0x5)+parseInt(_0x5c2463(0xae))/0x6*(-parseInt(_0x5c2463(0xb6))/0x7)+parseInt(_0x5c2463(0xb0))/0x8+parseInt(_0x5c2463(0xaf))/0x9+parseInt(_0x5c2463(0xb3))/0xa;if(_0x5ad6be===_0x282e9d)break;else _0x648604['push'](_0x648604['shift']());}catch(_0x33c323){_0x648604['push'](_0x648604['shift']());}}}(a278_0x5631,0xbe932));function a278_0x2331(_0x3c4951,_0x5c0e3c){_0x3c4951=_0x3c4951-0xa9;const _0x56311a=a278_0x5631();let _0x2331ed=_0x56311a[_0x3c4951];return _0x2331ed;}import a278_0x1d2573 from'node:path';import a278_0x208890 from'node:fs';function a278_0x5631(){const _0x395987=['229722WLrehP','8992062lAqYMV','1553848MbLrzU','4RHltpR','4219959bONnHD','320650bbfFjP','4xkTPVe','78528vZyidA','280LitYJD','readdirSync','814685WkcIoV','isDirectory','error','复制目录时出错:','name','join'];a278_0x5631=function(){return _0x395987;};return a278_0x5631();}export async function copyDirectory(_0x1a483f,_0x1b0ad3){const _0xfcd273=a278_0x2331;try{const _0x39fd0=a278_0x208890[_0xfcd273(0xb7)](_0x1a483f,{'withFileTypes':!![]});a278_0x208890['mkdirSync'](_0x1b0ad3,{'recursive':!![]});for(const _0x4891a1 of _0x39fd0){const _0x4d7b0f=a278_0x1d2573[_0xfcd273(0xad)](_0x1a483f,_0x4891a1[_0xfcd273(0xac)]),_0x33f291=a278_0x1d2573[_0xfcd273(0xad)](_0x1b0ad3,_0x4891a1['name']);_0x4891a1[_0xfcd273(0xa9)]()?await copyDirectory(_0x4d7b0f,_0x33f291):a278_0x208890['copyFileSync'](_0x4d7b0f,_0x33f291);}}catch(_0x16e99b){console[_0xfcd273(0xaa)](_0xfcd273(0xab),_0x16e99b);}}
@@ -1 +1 @@
1
- function a279_0x431a(_0x3b6baf,_0x27c634){_0x3b6baf=_0x3b6baf-0x9b;const _0x4fe17a=a279_0x4fe1();let _0x431ad1=_0x4fe17a[_0x3b6baf];return _0x431ad1;}(function(_0xe3ae65,_0x434c83){const _0x1928b9=a279_0x431a,_0x2fbb2d=_0xe3ae65();while(!![]){try{const _0x36311b=parseInt(_0x1928b9(0xa1))/0x1*(-parseInt(_0x1928b9(0x9b))/0x2)+-parseInt(_0x1928b9(0x9f))/0x3+-parseInt(_0x1928b9(0xa7))/0x4*(-parseInt(_0x1928b9(0xaa))/0x5)+-parseInt(_0x1928b9(0xa4))/0x6*(parseInt(_0x1928b9(0xa6))/0x7)+-parseInt(_0x1928b9(0xa9))/0x8*(-parseInt(_0x1928b9(0xa8))/0x9)+parseInt(_0x1928b9(0x9d))/0xa*(-parseInt(_0x1928b9(0x9e))/0xb)+-parseInt(_0x1928b9(0xa2))/0xc*(-parseInt(_0x1928b9(0xa5))/0xd);if(_0x36311b===_0x434c83)break;else _0x2fbb2d['push'](_0x2fbb2d['shift']());}catch(_0x33f36d){_0x2fbb2d['push'](_0x2fbb2d['shift']());}}}(a279_0x4fe1,0x92401));function toFiniteNumber(_0x2c2135){const _0x2c4e44=a279_0x431a;if(typeof _0x2c2135==='number'&&Number[_0x2c4e44(0xa0)](_0x2c2135))return _0x2c2135;if(typeof _0x2c2135==='string'){const _0x1056fd=_0x2c2135[_0x2c4e44(0x9c)]();if(!_0x1056fd)return undefined;const _0x51baea=Number(_0x1056fd);if(Number[_0x2c4e44(0xa0)](_0x51baea))return _0x51baea;}return undefined;}function a279_0x4fe1(){const _0xe4c26f=['object','4830EDDhCs','793fcOcLI','2345qZGBDj','660892ZXYrbD','9ixbMPp','4337072tMAVVY','25tlqoWg','300914CncsKV','trim','10jTQtsa','4178086DnOyvr','3055533dCSodw','isFinite','1JmYvqo','206412TwnYag'];a279_0x4fe1=function(){return _0xe4c26f;};return a279_0x4fe1();}export function normalizeEntityWithIdResponse(_0x167e22){const _0x53843f=a279_0x431a,_0x3516c4=toFiniteNumber(_0x167e22);if(_0x3516c4!==undefined)return{'id':_0x3516c4,'entity':{'id':_0x3516c4}};if(!_0x167e22||typeof _0x167e22!==_0x53843f(0xa3))return{'id':undefined,'entity':{}};const _0x18b117={..._0x167e22},_0x178da2=toFiniteNumber(_0x18b117['id']);return _0x178da2!==undefined&&(_0x18b117['id']=_0x178da2),{'id':_0x178da2,'entity':_0x18b117};}
1
+ function a279_0x2ea5(_0x7da5f7,_0x1d9e74){_0x7da5f7=_0x7da5f7-0x1aa;const _0x42ca73=a279_0x42ca();let _0x2ea57e=_0x42ca73[_0x7da5f7];return _0x2ea57e;}(function(_0x561f7d,_0x31e580){const _0x1d11b3=a279_0x2ea5,_0x59f3b8=_0x561f7d();while(!![]){try{const _0x1cb4eb=parseInt(_0x1d11b3(0x1b3))/0x1*(-parseInt(_0x1d11b3(0x1af))/0x2)+-parseInt(_0x1d11b3(0x1b6))/0x3+-parseInt(_0x1d11b3(0x1ad))/0x4*(parseInt(_0x1d11b3(0x1ac))/0x5)+-parseInt(_0x1d11b3(0x1ab))/0x6+-parseInt(_0x1d11b3(0x1aa))/0x7+parseInt(_0x1d11b3(0x1b5))/0x8*(-parseInt(_0x1d11b3(0x1b1))/0x9)+parseInt(_0x1d11b3(0x1b8))/0xa;if(_0x1cb4eb===_0x31e580)break;else _0x59f3b8['push'](_0x59f3b8['shift']());}catch(_0x3a2616){_0x59f3b8['push'](_0x59f3b8['shift']());}}}(a279_0x42ca,0x58c4e));function toFiniteNumber(_0x22bb1c){const _0x140038=a279_0x2ea5;if(typeof _0x22bb1c===_0x140038(0x1b2)&&Number[_0x140038(0x1b0)](_0x22bb1c))return _0x22bb1c;if(typeof _0x22bb1c===_0x140038(0x1b4)){const _0x2db65f=_0x22bb1c[_0x140038(0x1ae)]();if(!_0x2db65f)return undefined;const _0x5d9eae=Number(_0x2db65f);if(Number['isFinite'](_0x5d9eae))return _0x5d9eae;}return undefined;}function a279_0x42ca(){const _0x10ad2e=['1152uLHSjW','number','17zRBcbC','string','8168CCnyGR','1293063ZebPUo','object','18626970tHCaEh','3452603TyXRHB','215322NHWvqG','101595AiVqJn','36DmnJQW','trim','26518aJNVVO','isFinite'];a279_0x42ca=function(){return _0x10ad2e;};return a279_0x42ca();}export function normalizeEntityWithIdResponse(_0x27834c){const _0x113a06=a279_0x2ea5,_0x53be5f=toFiniteNumber(_0x27834c);if(_0x53be5f!==undefined)return{'id':_0x53be5f,'entity':{'id':_0x53be5f}};if(!_0x27834c||typeof _0x27834c!==_0x113a06(0x1b7))return{'id':undefined,'entity':{}};const _0x21a7b7={..._0x27834c},_0x299ce1=toFiniteNumber(_0x21a7b7['id']);return _0x299ce1!==undefined&&(_0x21a7b7['id']=_0x299ce1),{'id':_0x299ce1,'entity':_0x21a7b7};}
@@ -1 +1 @@
1
- (function(_0x3635cc,_0x5dc2e5){const _0x471e36=a280_0x3943,_0x57c4b6=_0x3635cc();while(!![]){try{const _0x3e50f7=parseInt(_0x471e36(0x1b2))/0x1+parseInt(_0x471e36(0x1b0))/0x2*(parseInt(_0x471e36(0x1b3))/0x3)+parseInt(_0x471e36(0x1ac))/0x4+parseInt(_0x471e36(0x1ab))/0x5+parseInt(_0x471e36(0x1ad))/0x6*(-parseInt(_0x471e36(0x1af))/0x7)+-parseInt(_0x471e36(0x1ae))/0x8+parseInt(_0x471e36(0x1aa))/0x9*(-parseInt(_0x471e36(0x1b1))/0xa);if(_0x3e50f7===_0x5dc2e5)break;else _0x57c4b6['push'](_0x57c4b6['shift']());}catch(_0x4dd426){_0x57c4b6['push'](_0x57c4b6['shift']());}}}(a280_0x1907,0xab22a));function a280_0x3943(_0x21c6d0,_0x2cb0ac){_0x21c6d0=_0x21c6d0-0x1aa;const _0x190788=a280_0x1907();let _0x394371=_0x190788[_0x21c6d0];return _0x394371;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a280_0x1907(){const _0x1e8858=['1428Iburqz','21938670DNDpVj','1252452PAuQGZ','447FSMSUg','9DnhrWR','6755180ixpxos','4976864mIlsIW','89172ESHkxH','3004808VXwDPj','322vbiJMZ'];a280_0x1907=function(){return _0x1e8858;};return a280_0x1907();}export async function copyDir(_0xb72ed8,_0x453836){const _0x3b4ffc=statSync(_0xb72ed8);if(_0x3b4ffc['isDirectory']()){!existsSync(_0x453836)&&mkdirSync(_0x453836,{'recursive':!![]});const _0xc8ac84=readdirSync(_0xb72ed8);for(const _0x134217 of _0xc8ac84){await copyDir(join(_0xb72ed8,_0x134217),join(_0x453836,_0x134217));}}else copyFileSync(_0xb72ed8,_0x453836);}export function ensureDir(_0x2371a4){!existsSync(_0x2371a4)&&mkdirSync(_0x2371a4,{'recursive':!![]});}export function pathExists(_0x9382e3){return existsSync(_0x9382e3);}
1
+ function a280_0x38ec(_0x3ba03e,_0x29e324){_0x3ba03e=_0x3ba03e-0x1c7;const _0x1d05c3=a280_0x1d05();let _0x38ec54=_0x1d05c3[_0x3ba03e];return _0x38ec54;}(function(_0x5007e2,_0x24097e){const _0x213654=a280_0x38ec,_0x11e495=_0x5007e2();while(!![]){try{const _0x30b104=-parseInt(_0x213654(0x1ce))/0x1+parseInt(_0x213654(0x1c7))/0x2+parseInt(_0x213654(0x1cc))/0x3+-parseInt(_0x213654(0x1cd))/0x4+parseInt(_0x213654(0x1ca))/0x5*(parseInt(_0x213654(0x1c8))/0x6)+parseInt(_0x213654(0x1cb))/0x7+-parseInt(_0x213654(0x1c9))/0x8;if(_0x30b104===_0x24097e)break;else _0x11e495['push'](_0x11e495['shift']());}catch(_0x558de1){_0x11e495['push'](_0x11e495['shift']());}}}(a280_0x1d05,0xbbedd));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a280_0x1d05(){const _0x3972c3=['25NKBqsB','5277202cZRtgd','3403602nlFKjb','5889672eNgBfP','249441RMHOuq','1766198nqWRcu','1731432ilWSQp','13782104XPcZNA'];a280_0x1d05=function(){return _0x3972c3;};return a280_0x1d05();}import{join}from'node:path';export async function copyDir(_0x5aafb5,_0x2ff7d2){const _0x3ba0f3=statSync(_0x5aafb5);if(_0x3ba0f3['isDirectory']()){!existsSync(_0x2ff7d2)&&mkdirSync(_0x2ff7d2,{'recursive':!![]});const _0x6698a7=readdirSync(_0x5aafb5);for(const _0x5afbe7 of _0x6698a7){await copyDir(join(_0x5aafb5,_0x5afbe7),join(_0x2ff7d2,_0x5afbe7));}}else copyFileSync(_0x5aafb5,_0x2ff7d2);}export function ensureDir(_0x14e116){!existsSync(_0x14e116)&&mkdirSync(_0x14e116,{'recursive':!![]});}export function pathExists(_0xa528e5){return existsSync(_0xa528e5);}
@@ -1 +1 @@
1
- const a281_0x2b09a4=a281_0x2a31;(function(_0x5f12b0,_0x331e9c){const _0x579da1=a281_0x2a31,_0x9906e7=_0x5f12b0();while(!![]){try{const _0x23527f=parseInt(_0x579da1(0x125))/0x1+parseInt(_0x579da1(0x11b))/0x2+parseInt(_0x579da1(0x11d))/0x3*(-parseInt(_0x579da1(0x123))/0x4)+-parseInt(_0x579da1(0x110))/0x5*(parseInt(_0x579da1(0x12e))/0x6)+-parseInt(_0x579da1(0x129))/0x7*(-parseInt(_0x579da1(0x122))/0x8)+parseInt(_0x579da1(0x111))/0x9+-parseInt(_0x579da1(0x10f))/0xa;if(_0x23527f===_0x331e9c)break;else _0x9906e7['push'](_0x9906e7['shift']());}catch(_0xa84c1c){_0x9906e7['push'](_0x9906e7['shift']());}}}(a281_0x51b2,0xdb9c0));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x3cff45=a281_0x2a31,_0x5d7c53=getTemplateBaseUrl();return _0x5d7c53+_0x3cff45(0x112);}const CACHE_DIR=join(homedir(),a281_0x2b09a4(0x117),'cache');export async function fetchGuidesFromCDN(){const _0x2fdeef=a281_0x2b09a4,_0x172853=getGuidesCdnUrl(),_0x175a67=await fetch(_0x172853,{'headers':{'Accept':'application/json'}});if(!_0x175a67['ok'])throw new Error(_0x2fdeef(0x12a)+_0x175a67[_0x2fdeef(0x11a)]+'\x20'+_0x175a67[_0x2fdeef(0x113)]);const _0x2b38b8=await _0x175a67[_0x2fdeef(0x127)]();if(!_0x2b38b8[_0x2fdeef(0x12c)]||typeof _0x2b38b8[_0x2fdeef(0x12c)]!==_0x2fdeef(0x10e))throw new Error(_0x2fdeef(0x115));return _0x2b38b8;}export function writeGuidesToProject(_0x53f40d,_0x1dcfa0,_0x19e1f7=a281_0x2b09a4(0x130),_0x48c3c8){const _0x1e907a=a281_0x2b09a4,_0x2da94e=join(_0x1dcfa0,_0x19e1f7);mkdirSync(_0x2da94e,{'recursive':!![]});for(const [_0x11328c,_0x4d9387]of Object[_0x1e907a(0x11e)](_0x53f40d[_0x1e907a(0x12c)])){let _0x8ee1cf=_0x4d9387[_0x1e907a(0x128)];_0x4d9387[_0x1e907a(0x126)]&&(_0x8ee1cf=appendUpdateTime(_0x8ee1cf,_0x4d9387[_0x1e907a(0x126)])),writeFileSync(join(_0x2da94e,_0x11328c+_0x1e907a(0x11c)),_0x8ee1cf,_0x1e907a(0x10d));}}function a281_0x51b2(){const _0x54cf40=['30oQejMN','skillTemplate','.lovrabet/skill/guides','utf-8','object','13875690IlCWJv','378490KzMcjr','5049189unOPth','/skills/guides.json','statusText','length','CDN\x20返回数据格式错误','join','.lovrabet','replace','path','status','2436606emzXYj','.md','5691AThEeH','entries','push','map','title','444584IjbOQO','1828zaNaej','\x0a\x0a>更新时间:','1364173VHJluV','lastUpdated','json','content','49CQIkQU','CDN\x20请求失败:\x20','extendContent','guides','trimEnd'];a281_0x51b2=function(){return _0x54cf40;};return a281_0x51b2();}function a281_0x2a31(_0x5ea6e0,_0xfc8013){_0x5ea6e0=_0x5ea6e0-0x10d;const _0x51b229=a281_0x51b2();let _0x2a310d=_0x51b229[_0x5ea6e0];return _0x2a310d;}export function appendUpdateTime(_0x21d4b1,_0x271890){const _0x3ab65c=a281_0x2b09a4;return _0x21d4b1=_0x21d4b1[_0x3ab65c(0x118)](/\n*>更新时间:.*$/m,''),_0x21d4b1['trimEnd']()+(_0x3ab65c(0x124)+_0x271890);}export function getSkillTemplate(_0x2fecca){const _0x6e3d83=a281_0x2b09a4;return _0x2fecca[_0x6e3d83(0x12f)]?.[_0x6e3d83(0x128)]||'';}export function appendExtendContents(_0x4ae57e,_0x5371f0,_0x1172fc){const _0x5d458f=a281_0x2b09a4,_0x2dd43d=[];for(const [,_0x31a783]of Object[_0x5d458f(0x11e)](_0x5371f0[_0x5d458f(0x12c)])){_0x31a783[_0x5d458f(0x12b)]&&_0x2dd43d[_0x5d458f(0x11f)](_0x31a783[_0x5d458f(0x12b)][_0x5d458f(0x12d)]());}if(_0x2dd43d['length']===0x0)return _0x4ae57e;return _0x4ae57e[_0x5d458f(0x12d)]()+'\x0a\x0a'+_0x2dd43d[_0x5d458f(0x116)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x281692,_0x5648fa,_0x48bdf0){const _0x13452f=a281_0x2b09a4,_0x5e5afa=getSkillTemplate(_0x281692);if(!_0x5e5afa)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1227a7=dirname(_0x5648fa);mkdirSync(_0x1227a7,{'recursive':!![]});let _0x5e3301=_0x5e5afa[_0x13452f(0x118)](/\{\{IDE_NAME\}\}/g,_0x48bdf0);_0x5e3301=appendExtendContents(_0x5e3301,_0x281692),_0x281692[_0x13452f(0x12f)]['lastUpdated']&&(_0x5e3301=appendUpdateTime(_0x5e3301,_0x281692['skillTemplate'][_0x13452f(0x126)])),writeFileSync(_0x5648fa,_0x5e3301,_0x13452f(0x10d));}export async function installGuides(_0x4731c4){const _0x33dd0b=a281_0x2b09a4,_0x2ad077=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2ad077,_0x4731c4),Object['keys'](_0x2ad077[_0x33dd0b(0x12c)])[_0x33dd0b(0x114)];}export function getGuidesSummary(_0x107840){const _0x3289fb=a281_0x2b09a4;return Object[_0x3289fb(0x11e)](_0x107840[_0x3289fb(0x12c)])[_0x3289fb(0x120)](([_0x308815,_0x151cad])=>({'key':_0x308815,'title':_0x151cad[_0x3289fb(0x121)],'path':_0x151cad[_0x3289fb(0x119)]}));}
1
+ const a281_0x10465d=a281_0x3580;(function(_0x2d1eda,_0x1c6c17){const _0xd68579=a281_0x3580,_0x3c1683=_0x2d1eda();while(!![]){try{const _0x50b069=-parseInt(_0xd68579(0x16a))/0x1*(parseInt(_0xd68579(0x164))/0x2)+-parseInt(_0xd68579(0x16f))/0x3*(-parseInt(_0xd68579(0x159))/0x4)+-parseInt(_0xd68579(0x163))/0x5+-parseInt(_0xd68579(0x165))/0x6*(parseInt(_0xd68579(0x169))/0x7)+parseInt(_0xd68579(0x15f))/0x8+parseInt(_0xd68579(0x174))/0x9+parseInt(_0xd68579(0x161))/0xa*(parseInt(_0xd68579(0x16e))/0xb);if(_0x50b069===_0x1c6c17)break;else _0x3c1683['push'](_0x3c1683['shift']());}catch(_0x48cb2f){_0x3c1683['push'](_0x3c1683['shift']());}}}(a281_0x4c02,0x9e000));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x3dc0a7=getTemplateBaseUrl();return _0x3dc0a7+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a281_0x10465d(0x17b),'cache');export async function fetchGuidesFromCDN(){const _0x5eb4d6=a281_0x10465d,_0x130aa9=getGuidesCdnUrl(),_0x14d17d=await fetch(_0x130aa9,{'headers':{'Accept':_0x5eb4d6(0x17a)}});if(!_0x14d17d['ok'])throw new Error(_0x5eb4d6(0x15d)+_0x14d17d[_0x5eb4d6(0x170)]+'\x20'+_0x14d17d['statusText']);const _0x4d5af8=await _0x14d17d[_0x5eb4d6(0x16c)]();if(!_0x4d5af8['guides']||typeof _0x4d5af8[_0x5eb4d6(0x167)]!==_0x5eb4d6(0x15b))throw new Error(_0x5eb4d6(0x17d));return _0x4d5af8;}export function writeGuidesToProject(_0x369067,_0x4c0ef0,_0x185333=a281_0x10465d(0x16b),_0x29fe1c){const _0x2a690a=a281_0x10465d,_0x5c9193=join(_0x4c0ef0,_0x185333);mkdirSync(_0x5c9193,{'recursive':!![]});for(const [_0x32c63c,_0x13b25e]of Object[_0x2a690a(0x173)](_0x369067['guides'])){let _0xabe37f=_0x13b25e[_0x2a690a(0x172)];_0x13b25e[_0x2a690a(0x17c)]&&(_0xabe37f=appendUpdateTime(_0xabe37f,_0x13b25e[_0x2a690a(0x17c)])),writeFileSync(join(_0x5c9193,_0x32c63c+_0x2a690a(0x175)),_0xabe37f,_0x2a690a(0x166));}}export function appendUpdateTime(_0x25cd7c,_0x201bd3){const _0x38d1df=a281_0x10465d;return _0x25cd7c=_0x25cd7c[_0x38d1df(0x15e)](/\n*>更新时间:.*$/m,''),_0x25cd7c[_0x38d1df(0x15c)]()+(_0x38d1df(0x171)+_0x201bd3);}export function getSkillTemplate(_0x10e8f8){const _0x3ccd73=a281_0x10465d;return _0x10e8f8[_0x3ccd73(0x178)]?.[_0x3ccd73(0x172)]||'';}function a281_0x3580(_0x58efcc,_0x11879f){_0x58efcc=_0x58efcc-0x159;const _0x4c0217=a281_0x4c02();let _0x358075=_0x4c0217[_0x58efcc];return _0x358075;}export function appendExtendContents(_0x3ee04b,_0x4083b6,_0x5b3a5c){const _0x372812=a281_0x10465d,_0xedd84c=[];for(const [,_0x378669]of Object[_0x372812(0x173)](_0x4083b6['guides'])){_0x378669[_0x372812(0x162)]&&_0xedd84c['push'](_0x378669[_0x372812(0x162)]['trimEnd']());}if(_0xedd84c[_0x372812(0x160)]===0x0)return _0x3ee04b;return _0x3ee04b[_0x372812(0x15c)]()+'\x0a\x0a'+_0xedd84c[_0x372812(0x177)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x31153b,_0x270bba,_0x34a2b6){const _0x5538b6=a281_0x10465d,_0x50fc9d=getSkillTemplate(_0x31153b);if(!_0x50fc9d)throw new Error(_0x5538b6(0x176));const _0x119da1=dirname(_0x270bba);mkdirSync(_0x119da1,{'recursive':!![]});let _0x28946e=_0x50fc9d[_0x5538b6(0x15e)](/\{\{IDE_NAME\}\}/g,_0x34a2b6);_0x28946e=appendExtendContents(_0x28946e,_0x31153b),_0x31153b[_0x5538b6(0x178)][_0x5538b6(0x17c)]&&(_0x28946e=appendUpdateTime(_0x28946e,_0x31153b['skillTemplate'][_0x5538b6(0x17c)])),writeFileSync(_0x270bba,_0x28946e,_0x5538b6(0x166));}export async function installGuides(_0x1a7651){const _0x42c70f=a281_0x10465d,_0xd653dd=await fetchGuidesFromCDN();return writeGuidesToProject(_0xd653dd,_0x1a7651),Object[_0x42c70f(0x179)](_0xd653dd['guides'])[_0x42c70f(0x160)];}export function getGuidesSummary(_0x19bc0a){const _0x233ab0=a281_0x10465d;return Object[_0x233ab0(0x173)](_0x19bc0a[_0x233ab0(0x167)])[_0x233ab0(0x15a)](([_0x253f01,_0x5928ef])=>({'key':_0x253f01,'title':_0x5928ef[_0x233ab0(0x16d)],'path':_0x5928ef[_0x233ab0(0x168)]}));}function a281_0x4c02(){const _0x2e4bd1=['2612195rQmxLp','1304ZqQtyE','2532BQnHKE','utf-8','guides','path','10423CpnPpa','319ULlCXX','.lovrabet/skill/guides','json','title','22TmDJNt','123uEIESa','status','\x0a\x0a>更新时间:','content','entries','8394759OCGLrG','.md','CDN\x20数据中缺少\x20skillTemplate','join','skillTemplate','keys','application/json','.lovrabet','lastUpdated','CDN\x20返回数据格式错误','53936EPpGzq','map','object','trimEnd','CDN\x20请求失败:\x20','replace','3702720EnQKZZ','length','287590BXpzrz','extendContent'];a281_0x4c02=function(){return _0x2e4bd1;};return a281_0x4c02();}
@@ -1 +1 @@
1
- (function(_0x53fc94,_0x52e920){const _0x2ae84b=a282_0x4097,_0x1981bb=_0x53fc94();while(!![]){try{const _0x1ae6ab=parseInt(_0x2ae84b(0x143))/0x1+-parseInt(_0x2ae84b(0x127))/0x2*(parseInt(_0x2ae84b(0x137))/0x3)+-parseInt(_0x2ae84b(0x144))/0x4*(parseInt(_0x2ae84b(0x131))/0x5)+parseInt(_0x2ae84b(0x12e))/0x6*(parseInt(_0x2ae84b(0x145))/0x7)+-parseInt(_0x2ae84b(0x142))/0x8+-parseInt(_0x2ae84b(0x132))/0x9+parseInt(_0x2ae84b(0x12c))/0xa*(parseInt(_0x2ae84b(0x13b))/0xb);if(_0x1ae6ab===_0x52e920)break;else _0x1981bb['push'](_0x1981bb['shift']());}catch(_0x43fb56){_0x1981bb['push'](_0x1981bb['shift']());}}}(a282_0x3e05,0x7e71b));export async function httpRequest(_0x23cc7a,_0x19815a={}){const _0x5c7ac5=a282_0x4097,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x19815a;let _0x2ba446=null;for(let _0x3c01a8=0x0;_0x3c01a8<=retries;_0x3c01a8++){try{const _0x352756=new AbortController(),_0x59cc82=setTimeout(()=>_0x352756['abort'](),timeout),_0x4393f1=await fetch(_0x23cc7a,{'headers':headers,'signal':_0x352756['signal']});clearTimeout(_0x59cc82);let _0x511367;const _0x5c1451=_0x4393f1[_0x5c7ac5(0x138)][_0x5c7ac5(0x12b)](_0x5c7ac5(0x141));return _0x5c1451?.[_0x5c7ac5(0x12d)](_0x5c7ac5(0x126))?_0x511367=await _0x4393f1[_0x5c7ac5(0x129)]():_0x511367=await _0x4393f1['text'](),{'ok':_0x4393f1['ok'],'status':_0x4393f1[_0x5c7ac5(0x13d)],'statusText':_0x4393f1[_0x5c7ac5(0x12f)],'data':_0x511367,'headers':_0x4393f1['headers'],'url':_0x4393f1[_0x5c7ac5(0x12a)],'text':()=>_0x4393f1[_0x5c7ac5(0x140)]()};}catch(_0xcbf128){_0x2ba446=_0xcbf128 instanceof Error?_0xcbf128:new Error(String(_0xcbf128));if(_0x3c01a8===retries)break;if(shouldRetry(_0xcbf128)){console[_0x5c7ac5(0x13c)](_0x5c7ac5(0x139)+retryDelay+_0x5c7ac5(0x128)+(_0x3c01a8+0x1)+_0x5c7ac5(0x133)),await sleep(retryDelay);continue;}else break;}}throw _0x2ba446||new Error(_0x5c7ac5(0x13f));}function a282_0x3e05(){const _0x495b69=['273966JoqPuM','2768476dQubvQ','2683401SIsqMF','AbortError','application/json','133798qkGstx','ms\x20后进行第\x20','json','url','get','5228650UhunmR','includes','6ugxdxD','statusText','ECONNRESET','5fKoCda','4306698wECQjt','\x20次重试...','name','TypeError','fetch','12fHIYbn','headers','*\x20请求失败,','ENOTFOUND','44uCqFcO','log','status','message','Request\x20failed','text','content-type','6340936WikQdH'];a282_0x3e05=function(){return _0x495b69;};return a282_0x3e05();}function a282_0x4097(_0x11cc40,_0x39b5a9){_0x11cc40=_0x11cc40-0x126;const _0x3e055f=a282_0x3e05();let _0x4097ff=_0x3e055f[_0x11cc40];return _0x4097ff;}function shouldRetry(_0x5c9ce4){const _0x569eb6=a282_0x4097;if(_0x5c9ce4 instanceof Error){if(_0x5c9ce4[_0x569eb6(0x134)]===_0x569eb6(0x146))return![];if(_0x5c9ce4[_0x569eb6(0x134)]===_0x569eb6(0x135)&&_0x5c9ce4[_0x569eb6(0x13e)][_0x569eb6(0x12d)](_0x569eb6(0x136)))return!![];if(_0x5c9ce4[_0x569eb6(0x13e)][_0x569eb6(0x12d)](_0x569eb6(0x130)))return!![];if(_0x5c9ce4['message']['includes'](_0x569eb6(0x13a)))return![];}return![];}function sleep(_0x1e4711){return new Promise(_0x1c04da=>setTimeout(_0x1c04da,_0x1e4711));}export function validateUrl(_0x2dee75){try{return new URL(_0x2dee75),!![];}catch{return![];}}
1
+ (function(_0x3bf5a2,_0x591d8f){const _0x3e7fda=a282_0x481e,_0x2dba5e=_0x3bf5a2();while(!![]){try{const _0x236889=-parseInt(_0x3e7fda(0x12a))/0x1*(parseInt(_0x3e7fda(0x13d))/0x2)+-parseInt(_0x3e7fda(0x139))/0x3+parseInt(_0x3e7fda(0x142))/0x4+-parseInt(_0x3e7fda(0x137))/0x5*(-parseInt(_0x3e7fda(0x130))/0x6)+parseInt(_0x3e7fda(0x12d))/0x7*(parseInt(_0x3e7fda(0x12c))/0x8)+-parseInt(_0x3e7fda(0x131))/0x9*(parseInt(_0x3e7fda(0x133))/0xa)+parseInt(_0x3e7fda(0x132))/0xb;if(_0x236889===_0x591d8f)break;else _0x2dba5e['push'](_0x2dba5e['shift']());}catch(_0x31196e){_0x2dba5e['push'](_0x2dba5e['shift']());}}}(a282_0x4782,0xf3742));function a282_0x4782(){const _0x2fb1bc=['1440GqSEja','log','*\x20请求失败,','message','2711685ixVopM','url','4001763uotjmq','\x20次重试...','fetch','text','186662VWaIUf','json','Request\x20failed','get','TypeError','4554712MbYUbI','ENOTFOUND','headers','name','ms\x20后进行第\x20','content-type','19wCEPQR','ECONNRESET','8OIZtjZ','5607455xrBZzm','AbortError','includes','6RVwXRv','5238dNkcQr','18767364kXksEq'];a282_0x4782=function(){return _0x2fb1bc;};return a282_0x4782();}export async function httpRequest(_0xbe13c2,_0x1da9e8={}){const _0x514d0a=a282_0x481e,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1da9e8;let _0x2164aa=null;for(let _0x97cee=0x0;_0x97cee<=retries;_0x97cee++){try{const _0xb36ead=new AbortController(),_0x4aaa8e=setTimeout(()=>_0xb36ead['abort'](),timeout),_0x2c7035=await fetch(_0xbe13c2,{'headers':headers,'signal':_0xb36ead['signal']});clearTimeout(_0x4aaa8e);let _0x25867b;const _0x5f03cd=_0x2c7035[_0x514d0a(0x126)][_0x514d0a(0x140)](_0x514d0a(0x129));return _0x5f03cd?.[_0x514d0a(0x12f)]('application/json')?_0x25867b=await _0x2c7035[_0x514d0a(0x13e)]():_0x25867b=await _0x2c7035[_0x514d0a(0x13c)](),{'ok':_0x2c7035['ok'],'status':_0x2c7035['status'],'statusText':_0x2c7035['statusText'],'data':_0x25867b,'headers':_0x2c7035[_0x514d0a(0x126)],'url':_0x2c7035[_0x514d0a(0x138)],'text':()=>_0x2c7035[_0x514d0a(0x13c)]()};}catch(_0x1f22b9){_0x2164aa=_0x1f22b9 instanceof Error?_0x1f22b9:new Error(String(_0x1f22b9));if(_0x97cee===retries)break;if(shouldRetry(_0x1f22b9)){console[_0x514d0a(0x134)](_0x514d0a(0x135)+retryDelay+_0x514d0a(0x128)+(_0x97cee+0x1)+_0x514d0a(0x13a)),await sleep(retryDelay);continue;}else break;}}throw _0x2164aa||new Error(_0x514d0a(0x13f));}function shouldRetry(_0x267d3d){const _0x3fb51d=a282_0x481e;if(_0x267d3d instanceof Error){if(_0x267d3d[_0x3fb51d(0x127)]===_0x3fb51d(0x12e))return![];if(_0x267d3d[_0x3fb51d(0x127)]===_0x3fb51d(0x141)&&_0x267d3d[_0x3fb51d(0x136)][_0x3fb51d(0x12f)](_0x3fb51d(0x13b)))return!![];if(_0x267d3d[_0x3fb51d(0x136)]['includes'](_0x3fb51d(0x12b)))return!![];if(_0x267d3d[_0x3fb51d(0x136)]['includes'](_0x3fb51d(0x143)))return![];}return![];}function sleep(_0x47e5e0){return new Promise(_0x3d0b4f=>setTimeout(_0x3d0b4f,_0x47e5e0));}function a282_0x481e(_0x356712,_0x19cb58){_0x356712=_0x356712-0x126;const _0x4782f1=a282_0x4782();let _0x481e46=_0x4782f1[_0x356712];return _0x481e46;}export function validateUrl(_0x1d2d78){try{return new URL(_0x1d2d78),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x469131,_0x345b82){const _0x222d14=a283_0x3ac1,_0x237bea=_0x469131();while(!![]){try{const _0x2c6e4b=-parseInt(_0x222d14(0x175))/0x1*(parseInt(_0x222d14(0x16e))/0x2)+-parseInt(_0x222d14(0x171))/0x3+parseInt(_0x222d14(0x173))/0x4*(-parseInt(_0x222d14(0x177))/0x5)+-parseInt(_0x222d14(0x170))/0x6*(-parseInt(_0x222d14(0x178))/0x7)+parseInt(_0x222d14(0x17b))/0x8+parseInt(_0x222d14(0x16b))/0x9*(-parseInt(_0x222d14(0x174))/0xa)+parseInt(_0x222d14(0x16d))/0xb;if(_0x2c6e4b===_0x345b82)break;else _0x237bea['push'](_0x237bea['shift']());}catch(_0x132404){_0x237bea['push'](_0x237bea['shift']());}}}(a283_0xabe8,0x561b6));function a283_0xabe8(){const _0x381a26=['setRawMode','142965fGtcgZ','14zMevFv','isRaw','stdin','643576uFosuJ','isTTY','169821fcwahQ','true','9450100NCaUmZ','20jOCKNu','stdout','1242396LSaEDu','1222839FwAans','nonInteractive','12nzDGsx','170uXktwM','18682UbtSCy'];a283_0xabe8=function(){return _0x381a26;};return a283_0xabe8();}function a283_0x3ac1(_0x1979fe,_0x19a3a6){_0x1979fe=_0x1979fe-0x16b;const _0xabe832=a283_0xabe8();let _0x3ac1ce=_0xabe832[_0x1979fe];return _0x3ac1ce;}function env(_0x21f039){return process.env[`RABETBASE_${_0x21f039}`]||process.env[`LOVRABET_${_0x21f039}`]||undefined;}export function isNonInteractive(_0x3d7613){const _0x5c88c2=a283_0x3ac1;return!!(_0x3d7613[_0x5c88c2(0x172)]||_0x3d7613['ci']||env('CI')===_0x5c88c2(0x16c)||process.env.CI===_0x5c88c2(0x16c)||!process[_0x5c88c2(0x16f)][_0x5c88c2(0x17c)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5172b2=a283_0x3ac1;if(!process[_0x5172b2(0x17a)][_0x5172b2(0x17c)])return![];try{const _0x26db33=process[_0x5172b2(0x17a)][_0x5172b2(0x179)];return process[_0x5172b2(0x17a)][_0x5172b2(0x176)](!![]),process[_0x5172b2(0x17a)][_0x5172b2(0x176)](_0x26db33??![]),!![];}catch{return![];}}
1
+ function a283_0x460f(_0x18241d,_0x17d130){_0x18241d=_0x18241d-0x96;const _0x3d2228=a283_0x3d22();let _0x460f35=_0x3d2228[_0x18241d];return _0x460f35;}function a283_0x3d22(){const _0x4f226a=['446398grNOiK','true','13912630QnvGWg','stdout','1624755qBjKsg','isRaw','460224AZlzJy','45EsfnVS','21JLohhF','stdin','211900qhYEyk','isTTY','465726sXCcLk','6zNDkDH','458464hKnfgX'];a283_0x3d22=function(){return _0x4f226a;};return a283_0x3d22();}(function(_0x366a23,_0x545217){const _0x4dd461=a283_0x460f,_0xe02bff=_0x366a23();while(!![]){try{const _0x3f7068=-parseInt(_0x4dd461(0xa3))/0x1+-parseInt(_0x4dd461(0x99))/0x2*(parseInt(_0x4dd461(0x97))/0x3)+-parseInt(_0x4dd461(0x9f))/0x4+-parseInt(_0x4dd461(0x9d))/0x5+-parseInt(_0x4dd461(0x96))/0x6*(-parseInt(_0x4dd461(0xa1))/0x7)+parseInt(_0x4dd461(0x98))/0x8*(-parseInt(_0x4dd461(0xa0))/0x9)+parseInt(_0x4dd461(0x9b))/0xa;if(_0x3f7068===_0x545217)break;else _0xe02bff['push'](_0xe02bff['shift']());}catch(_0x220fed){_0xe02bff['push'](_0xe02bff['shift']());}}}(a283_0x3d22,0x3a6b1));function env(_0x2d74b3){return process.env[`RABETBASE_${_0x2d74b3}`]||process.env[`LOVRABET_${_0x2d74b3}`]||undefined;}export function isNonInteractive(_0x394672){const _0x38a81c=a283_0x460f;return!!(_0x394672['nonInteractive']||_0x394672['ci']||env('CI')===_0x38a81c(0x9a)||process.env.CI===_0x38a81c(0x9a)||!process[_0x38a81c(0x9c)][_0x38a81c(0xa4)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x2e9769=a283_0x460f;if(!process[_0x2e9769(0xa2)]['isTTY'])return![];try{const _0x2a4449=process[_0x2e9769(0xa2)][_0x2e9769(0x9e)];return process['stdin']['setRawMode'](!![]),process[_0x2e9769(0xa2)]['setRawMode'](_0x2a4449??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a284_0x49dd(_0x3e10a4,_0x1fd6e2){_0x3e10a4=_0x3e10a4-0x6b;const _0x5ce531=a284_0x5ce5();let _0x49ddf1=_0x5ce531[_0x3e10a4];return _0x49ddf1;}const a284_0x3398ac=a284_0x49dd;(function(_0x3d5d95,_0x2aea38){const _0x39bb92=a284_0x49dd,_0x4f1fd2=_0x3d5d95();while(!![]){try{const _0x559fb2=-parseInt(_0x39bb92(0x90))/0x1+parseInt(_0x39bb92(0x72))/0x2+-parseInt(_0x39bb92(0x92))/0x3*(-parseInt(_0x39bb92(0x8c))/0x4)+parseInt(_0x39bb92(0x6f))/0x5+-parseInt(_0x39bb92(0x8f))/0x6+parseInt(_0x39bb92(0x9d))/0x7+parseInt(_0x39bb92(0x7b))/0x8*(-parseInt(_0x39bb92(0x71))/0x9);if(_0x559fb2===_0x2aea38)break;else _0x4f1fd2['push'](_0x4f1fd2['shift']());}catch(_0x77386f){_0x4f1fd2['push'](_0x4f1fd2['shift']());}}}(a284_0x5ce5,0x9c93c));import a284_0x5598f5 from'winston';import a284_0x199be5 from'node:fs';import a284_0x37d3cb from'node:path';class Logger{['winstonLogger'];[a284_0x3398ac(0x8a)];['currentRawCommand']='';constructor(){const _0xefc037=a284_0x3398ac;this[_0xefc037(0x8a)]='';}[a284_0x3398ac(0x87)](_0x52e91c){const _0x2289aa=a284_0x3398ac;this[_0x2289aa(0x97)]=_0x52e91c;}['initWinstonLogger'](){const _0x2827c4=a284_0x3398ac,_0x135b40=a284_0x37d3cb[_0x2827c4(0x8e)](this[_0x2827c4(0x8a)]);!a284_0x199be5['existsSync'](_0x135b40)&&a284_0x199be5[_0x2827c4(0x75)](_0x135b40,{'recursive':!![]});const _0x12d2b7=a284_0x5598f5['format']['combine'](a284_0x5598f5[_0x2827c4(0x6b)][_0x2827c4(0x9a)](),a284_0x5598f5[_0x2827c4(0x6b)][_0x2827c4(0x91)]({'stack':!![]}),a284_0x5598f5[_0x2827c4(0x6b)]['printf'](_0x216a08=>{const _0x35f459=_0x2827c4,_0xa638e5={'timestamp':_0x216a08[_0x35f459(0x9a)]||new Date()[_0x35f459(0x93)](),'level':_0x216a08['level']||_0x35f459(0x99),'command':_0x216a08['command']||'unknown','rawCommand':_0x216a08[_0x35f459(0x80)]||this[_0x35f459(0x97)]||undefined,'message':_0x216a08[_0x35f459(0x8b)]||'','duration':_0x216a08[_0x35f459(0x6e)]||undefined,'details':_0x216a08[_0x35f459(0x7c)]||undefined};return JSON['stringify'](_0xa638e5);}));this['winstonLogger']=a284_0x5598f5[_0x2827c4(0x9b)]({'level':_0x2827c4(0x99),'format':_0x12d2b7,'transports':[new a284_0x5598f5[(_0x2827c4(0x7e))][(_0x2827c4(0x95))]({'filename':this[_0x2827c4(0x8a)],'level':'info'})],'silent':![]}),a284_0x5598f5['addColors']({'success':'green','error':_0x2827c4(0x70),'warn':_0x2827c4(0x7d),'info':'blue'});}[a284_0x3398ac(0x6d)](_0x3e2c69){const _0x19e443=a284_0x3398ac;this[_0x19e443(0x8a)]=a284_0x37d3cb[_0x19e443(0x7f)](_0x3e2c69,'.lovrabet.log'),this[_0x19e443(0x88)]&&this[_0x19e443(0x88)][_0x19e443(0x96)](),this[_0x19e443(0x6c)]();}[a284_0x3398ac(0x99)](_0x1e7776,_0x350e41,_0x4c5279){const _0x3f5d33=a284_0x3398ac;if(!this[_0x3f5d33(0x8a)]||!this['winstonLogger'])return;this[_0x3f5d33(0x88)][_0x3f5d33(0x99)](_0x350e41,{'command':_0x1e7776,'details':_0x4c5279});}[a284_0x3398ac(0x74)](_0x3f2c1e,_0x1e36a2,_0x35ce50,_0x15483e){const _0x46bdef=a284_0x3398ac;if(!this[_0x46bdef(0x8a)]||!this['winstonLogger'])return;this[_0x46bdef(0x88)]['log'](_0x46bdef(0x99),_0x1e36a2,{'level':_0x46bdef(0x74),'command':_0x3f2c1e,'duration':_0x35ce50,'details':_0x15483e});}[a284_0x3398ac(0x98)](_0x484c80,_0x2dd8bd,_0x3e5ff4){const _0x20fce7=a284_0x3398ac;if(!this[_0x20fce7(0x8a)]||!this[_0x20fce7(0x88)])return;this[_0x20fce7(0x88)][_0x20fce7(0x98)](_0x2dd8bd,{'command':_0x484c80,'details':_0x3e5ff4});}[a284_0x3398ac(0x86)](_0x50c0e6,_0x41c5d4,_0x3f323e){const _0x402114=a284_0x3398ac;if(!this[_0x402114(0x8a)]||!this[_0x402114(0x88)])return;this[_0x402114(0x88)][_0x402114(0x86)](_0x41c5d4,{'command':_0x50c0e6,'details':_0x3f323e});}async[a284_0x3398ac(0x8d)](_0x4155e8,_0x2975a0,_0x58d290){const _0x37dd3f=a284_0x3398ac,_0x471379=Date[_0x37dd3f(0x78)]();this[_0x37dd3f(0x99)](_0x4155e8,_0x37dd3f(0x85)+_0x2975a0);try{const _0x1058a5=await _0x58d290(),_0x18010e=Date[_0x37dd3f(0x78)]()-_0x471379;return this[_0x37dd3f(0x74)](_0x4155e8,_0x37dd3f(0x79)+_0x2975a0,_0x18010e),_0x1058a5;}catch(_0x561695){const _0x2f439d=Date[_0x37dd3f(0x78)]()-_0x471379;this[_0x37dd3f(0x98)](_0x4155e8,_0x37dd3f(0x84)+_0x2975a0,{'error':_0x561695 instanceof Error?_0x561695[_0x37dd3f(0x8b)]:String(_0x561695),'duration':_0x2f439d});throw _0x561695;}}[a284_0x3398ac(0x9e)](){const _0x5da21a=a284_0x3398ac;try{if(!a284_0x199be5['existsSync'](this['logFilePath']))return[];const _0x4c1041=a284_0x199be5[_0x5da21a(0x94)](this[_0x5da21a(0x8a)],'utf8');return _0x4c1041[_0x5da21a(0x89)]('\x0a')[_0x5da21a(0x83)](_0x4b08db=>_0x4b08db[_0x5da21a(0x7a)]())['map'](_0x4f6134=>JSON[_0x5da21a(0x76)](_0x4f6134));}catch(_0x339bac){return console['warn'](_0x5da21a(0x81),_0x339bac),[];}}[a284_0x3398ac(0x82)](){const _0x40cc93=a284_0x3398ac;try{a284_0x199be5[_0x40cc93(0x9c)](this[_0x40cc93(0x8a)])&&a284_0x199be5[_0x40cc93(0x73)](this['logFilePath'],'','utf8');}catch(_0x1e8ba7){console[_0x40cc93(0x86)]('Failed\x20to\x20clear\x20logs:',_0x1e8ba7);}}[a284_0x3398ac(0x77)](){const _0x1f0628=a284_0x3398ac;return this[_0x1f0628(0x88)];}}function a284_0x5ce5(){const _0x22b108=['完成:\x20','trim','136odBIaQ','details','yellow','transports','join','rawCommand','Failed\x20to\x20read\x20logs:','clearLogs','filter','失败:\x20','开始执行:\x20','warn','setRawCommand','winstonLogger','split','logFilePath','message','4mirrXM','logTask','dirname','4911636vgqQDw','452317xGuPXu','errors','75135mVQEEd','toISOString','readFileSync','File','clear','currentRawCommand','error','info','timestamp','createLogger','existsSync','8131725SlJbSH','readLogs','format','initWinstonLogger','setLogPath','duration','1014090zEfIGY','red','70029jKzEPh','1310004ZZBrvX','writeFileSync','success','mkdirSync','parse','getWinstonInstance','now'];a284_0x5ce5=function(){return _0x22b108;};return a284_0x5ce5();}export const logger=new Logger();
1
+ const a284_0x41e83d=a284_0x72eb;(function(_0x1643f9,_0x2087d7){const _0x374d32=a284_0x72eb,_0x77db76=_0x1643f9();while(!![]){try{const _0x296ea8=parseInt(_0x374d32(0xa6))/0x1*(-parseInt(_0x374d32(0x74))/0x2)+-parseInt(_0x374d32(0x88))/0x3+-parseInt(_0x374d32(0x8c))/0x4*(-parseInt(_0x374d32(0x73))/0x5)+parseInt(_0x374d32(0x91))/0x6*(parseInt(_0x374d32(0x78))/0x7)+-parseInt(_0x374d32(0x82))/0x8*(parseInt(_0x374d32(0x92))/0x9)+parseInt(_0x374d32(0x84))/0xa+parseInt(_0x374d32(0x95))/0xb;if(_0x296ea8===_0x2087d7)break;else _0x77db76['push'](_0x77db76['shift']());}catch(_0x4a5fc7){_0x77db76['push'](_0x77db76['shift']());}}}(a284_0x3d17,0x98a89));import a284_0x1b22ef from'winston';import a284_0x167248 from'node:fs';import a284_0x1cc3fd from'node:path';function a284_0x72eb(_0x4ef1f3,_0x1a546f){_0x4ef1f3=_0x4ef1f3-0x72;const _0x3d1789=a284_0x3d17();let _0x72ebca=_0x3d1789[_0x4ef1f3];return _0x72ebca;}function a284_0x3d17(){const _0x554a27=['Failed\x20to\x20clear\x20logs:','transports','stringify','createLogger','8yxWLNE','red','7150540ULHyts','unknown','existsSync','map','3220749ykhgdR','join','success','green','28eKekew','dirname','Failed\x20to\x20read\x20logs:','getWinstonInstance','format','6KpnZdR','5830074XAOKSF','rawCommand','warn','6865496VZDkUw','info','readFileSync','message','error','setLogPath','log','now','currentRawCommand','level','initWinstonLogger','.lovrabet.log','utf8','details','combine','logTask','setRawCommand','7817JyrJwx','开始执行:\x20','blue','addColors','parse','writeFileSync','clearLogs','345130SxmcOK','130rzbHMs','clear','mkdirSync','logFilePath','7226737kmRFih','toISOString','timestamp','command','winstonLogger','split'];a284_0x3d17=function(){return _0x554a27;};return a284_0x3d17();}class Logger{[a284_0x41e83d(0x7c)];[a284_0x41e83d(0x77)];[a284_0x41e83d(0x9d)]='';constructor(){const _0x49c852=a284_0x41e83d;this[_0x49c852(0x77)]='';}[a284_0x41e83d(0xa5)](_0x34ba79){const _0x5404a0=a284_0x41e83d;this[_0x5404a0(0x9d)]=_0x34ba79;}[a284_0x41e83d(0x9f)](){const _0x21aefc=a284_0x41e83d,_0x3a0400=a284_0x1cc3fd[_0x21aefc(0x8d)](this['logFilePath']);!a284_0x167248[_0x21aefc(0x86)](_0x3a0400)&&a284_0x167248[_0x21aefc(0x76)](_0x3a0400,{'recursive':!![]});const _0x4bd7b9=a284_0x1b22ef[_0x21aefc(0x90)][_0x21aefc(0xa3)](a284_0x1b22ef[_0x21aefc(0x90)][_0x21aefc(0x7a)](),a284_0x1b22ef[_0x21aefc(0x90)]['errors']({'stack':!![]}),a284_0x1b22ef[_0x21aefc(0x90)]['printf'](_0x52885=>{const _0x3002d0=_0x21aefc,_0x2aae11={'timestamp':_0x52885[_0x3002d0(0x7a)]||new Date()[_0x3002d0(0x79)](),'level':_0x52885[_0x3002d0(0x9e)]||_0x3002d0(0x96),'command':_0x52885[_0x3002d0(0x7b)]||_0x3002d0(0x85),'rawCommand':_0x52885[_0x3002d0(0x93)]||this[_0x3002d0(0x9d)]||undefined,'message':_0x52885[_0x3002d0(0x98)]||'','duration':_0x52885['duration']||undefined,'details':_0x52885[_0x3002d0(0xa2)]||undefined};return JSON[_0x3002d0(0x80)](_0x2aae11);}));this[_0x21aefc(0x7c)]=a284_0x1b22ef[_0x21aefc(0x81)]({'level':_0x21aefc(0x96),'format':_0x4bd7b9,'transports':[new a284_0x1b22ef[(_0x21aefc(0x7f))]['File']({'filename':this[_0x21aefc(0x77)],'level':_0x21aefc(0x96)})],'silent':![]}),a284_0x1b22ef[_0x21aefc(0xa9)]({'success':_0x21aefc(0x8b),'error':_0x21aefc(0x83),'warn':'yellow','info':_0x21aefc(0xa8)});}[a284_0x41e83d(0x9a)](_0x933d0a){const _0x3c38c9=a284_0x41e83d;this[_0x3c38c9(0x77)]=a284_0x1cc3fd[_0x3c38c9(0x89)](_0x933d0a,_0x3c38c9(0xa0)),this['winstonLogger']&&this[_0x3c38c9(0x7c)][_0x3c38c9(0x75)](),this[_0x3c38c9(0x9f)]();}[a284_0x41e83d(0x96)](_0x3053f3,_0x314371,_0x15d5a5){const _0x572842=a284_0x41e83d;if(!this[_0x572842(0x77)]||!this['winstonLogger'])return;this[_0x572842(0x7c)][_0x572842(0x96)](_0x314371,{'command':_0x3053f3,'details':_0x15d5a5});}[a284_0x41e83d(0x8a)](_0xf3e871,_0x333039,_0x25e6c6,_0x38b768){const _0x4f343b=a284_0x41e83d;if(!this[_0x4f343b(0x77)]||!this[_0x4f343b(0x7c)])return;this['winstonLogger'][_0x4f343b(0x9b)](_0x4f343b(0x96),_0x333039,{'level':'success','command':_0xf3e871,'duration':_0x25e6c6,'details':_0x38b768});}['error'](_0x19fae5,_0x8f1c08,_0x2f8abe){const _0x4deb24=a284_0x41e83d;if(!this[_0x4deb24(0x77)]||!this[_0x4deb24(0x7c)])return;this['winstonLogger'][_0x4deb24(0x99)](_0x8f1c08,{'command':_0x19fae5,'details':_0x2f8abe});}['warn'](_0x347936,_0x4e9189,_0x51914b){const _0x2fe8d7=a284_0x41e83d;if(!this[_0x2fe8d7(0x77)]||!this[_0x2fe8d7(0x7c)])return;this[_0x2fe8d7(0x7c)][_0x2fe8d7(0x94)](_0x4e9189,{'command':_0x347936,'details':_0x51914b});}async[a284_0x41e83d(0xa4)](_0x3e7e2c,_0x3ae304,_0x26b439){const _0x5c29f2=a284_0x41e83d,_0x2b3020=Date[_0x5c29f2(0x9c)]();this[_0x5c29f2(0x96)](_0x3e7e2c,_0x5c29f2(0xa7)+_0x3ae304);try{const _0x522753=await _0x26b439(),_0x4d0106=Date['now']()-_0x2b3020;return this[_0x5c29f2(0x8a)](_0x3e7e2c,'完成:\x20'+_0x3ae304,_0x4d0106),_0x522753;}catch(_0x2402cf){const _0x3295ad=Date[_0x5c29f2(0x9c)]()-_0x2b3020;this[_0x5c29f2(0x99)](_0x3e7e2c,'失败:\x20'+_0x3ae304,{'error':_0x2402cf instanceof Error?_0x2402cf[_0x5c29f2(0x98)]:String(_0x2402cf),'duration':_0x3295ad});throw _0x2402cf;}}['readLogs'](){const _0x366797=a284_0x41e83d;try{if(!a284_0x167248[_0x366797(0x86)](this[_0x366797(0x77)]))return[];const _0x255946=a284_0x167248[_0x366797(0x97)](this[_0x366797(0x77)],_0x366797(0xa1));return _0x255946[_0x366797(0x7d)]('\x0a')['filter'](_0x3c167d=>_0x3c167d['trim']())[_0x366797(0x87)](_0x5874c4=>JSON[_0x366797(0xaa)](_0x5874c4));}catch(_0x2ddf24){return console[_0x366797(0x94)](_0x366797(0x8e),_0x2ddf24),[];}}[a284_0x41e83d(0x72)](){const _0x21baf7=a284_0x41e83d;try{a284_0x167248[_0x21baf7(0x86)](this['logFilePath'])&&a284_0x167248[_0x21baf7(0xab)](this[_0x21baf7(0x77)],'','utf8');}catch(_0xbe431f){console[_0x21baf7(0x94)](_0x21baf7(0x7e),_0xbe431f);}}[a284_0x41e83d(0x8f)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a285_0x415c(_0x5de5cb,_0x49f374){_0x5de5cb=_0x5de5cb-0xb7;const _0x48743a=a285_0x4874();let _0x415c02=_0x48743a[_0x5de5cb];return _0x415c02;}(function(_0x29a528,_0x1fb558){const _0x1d578c=a285_0x415c,_0x1c46b6=_0x29a528();while(!![]){try{const _0x5ad465=parseInt(_0x1d578c(0xb8))/0x1+parseInt(_0x1d578c(0xbe))/0x2+-parseInt(_0x1d578c(0xb7))/0x3+-parseInt(_0x1d578c(0xb9))/0x4*(parseInt(_0x1d578c(0xc0))/0x5)+-parseInt(_0x1d578c(0xc4))/0x6*(-parseInt(_0x1d578c(0xbf))/0x7)+-parseInt(_0x1d578c(0xc2))/0x8+parseInt(_0x1d578c(0xc1))/0x9;if(_0x5ad465===_0x1fb558)break;else _0x1c46b6['push'](_0x1c46b6['shift']());}catch(_0x44e77e){_0x1c46b6['push'](_0x1c46b6['shift']());}}}(a285_0x4874,0x4631a));import{CliErrors}from'../errors.js';function a285_0x4874(){const _0x50b6fe=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','isArray','object','--params\x20must\x20be\x20a\x20JSON\x20object','84368uZsNJe','7PMBLbn','8945biROqb','2234556bdDByb','3616400SVGsYr','Invalid\x20JSON\x20for\x20--params:\x20','1634592GhcOyO','parse','660129kwSBBB','402074VVnOdV','12pjXSMr'];a285_0x4874=function(){return _0x50b6fe;};return a285_0x4874();}export function parseJsonParams(_0x298dee){const _0x54c3eb=a285_0x415c;if(!_0x298dee)return undefined;let _0x152b6e;try{_0x152b6e=JSON[_0x54c3eb(0xc5)](_0x298dee);}catch{throw CliErrors['validation'](_0x54c3eb(0xc3)+_0x298dee);}if(!_0x152b6e||typeof _0x152b6e!==_0x54c3eb(0xbc)||Array[_0x54c3eb(0xbb)](_0x152b6e))throw CliErrors['validation'](_0x54c3eb(0xbd),_0x54c3eb(0xba));return _0x152b6e;}
1
+ (function(_0x88dc7,_0x2f26ef){const _0x1aec5d=a285_0x580a,_0x5a8ff3=_0x88dc7();while(!![]){try{const _0x313ae7=parseInt(_0x1aec5d(0x134))/0x1*(parseInt(_0x1aec5d(0x13c))/0x2)+parseInt(_0x1aec5d(0x133))/0x3+-parseInt(_0x1aec5d(0x13a))/0x4*(-parseInt(_0x1aec5d(0x139))/0x5)+parseInt(_0x1aec5d(0x13f))/0x6*(parseInt(_0x1aec5d(0x135))/0x7)+parseInt(_0x1aec5d(0x142))/0x8+parseInt(_0x1aec5d(0x137))/0x9+-parseInt(_0x1aec5d(0x13e))/0xa*(parseInt(_0x1aec5d(0x140))/0xb);if(_0x313ae7===_0x2f26ef)break;else _0x5a8ff3['push'](_0x5a8ff3['shift']());}catch(_0x5015ef){_0x5a8ff3['push'](_0x5a8ff3['shift']());}}}(a285_0x1d3d,0x2a427));function a285_0x580a(_0x1a7d34,_0x2905ed){_0x1a7d34=_0x1a7d34-0x133;const _0x1d3dd7=a285_0x1d3d();let _0x580ac3=_0x1d3dd7[_0x1a7d34];return _0x580ac3;}function a285_0x1d3d(){const _0x5c30c4=['345FWQhna','12836CfjYIT','object','44262sUYbzZ','--params\x20must\x20be\x20a\x20JSON\x20object','12749530gCyjet','90rrCaJS','11FLMEAB','parse','2346608aBhcSV','870717pGISYq','12UdihsE','153013ptZFLe','validation','446445aabjMI','Invalid\x20JSON\x20for\x20--params:\x20'];a285_0x1d3d=function(){return _0x5c30c4;};return a285_0x1d3d();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x4f0fdf){const _0x59967f=a285_0x580a;if(!_0x4f0fdf)return undefined;let _0x226e6b;try{_0x226e6b=JSON[_0x59967f(0x141)](_0x4f0fdf);}catch{throw CliErrors[_0x59967f(0x136)](_0x59967f(0x138)+_0x4f0fdf);}if(!_0x226e6b||typeof _0x226e6b!==_0x59967f(0x13b)||Array['isArray'](_0x226e6b))throw CliErrors[_0x59967f(0x136)](_0x59967f(0x13d),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x226e6b;}
@@ -1 +1 @@
1
- const a286_0x732e01=a286_0x5646;function a286_0x5646(_0x5642eb,_0xa54dfa){_0x5642eb=_0x5642eb-0x12a;const _0x377320=a286_0x3773();let _0x564615=_0x377320[_0x5642eb];return _0x564615;}(function(_0x551ce7,_0x53ef88){const _0x1c78ae=a286_0x5646,_0x41f788=_0x551ce7();while(!![]){try{const _0x3936cf=parseInt(_0x1c78ae(0x12b))/0x1+parseInt(_0x1c78ae(0x12e))/0x2*(-parseInt(_0x1c78ae(0x136))/0x3)+parseInt(_0x1c78ae(0x12c))/0x4*(-parseInt(_0x1c78ae(0x12d))/0x5)+-parseInt(_0x1c78ae(0x138))/0x6*(parseInt(_0x1c78ae(0x130))/0x7)+-parseInt(_0x1c78ae(0x131))/0x8*(-parseInt(_0x1c78ae(0x132))/0x9)+-parseInt(_0x1c78ae(0x12a))/0xa*(-parseInt(_0x1c78ae(0x137))/0xb)+parseInt(_0x1c78ae(0x133))/0xc;if(_0x3936cf===_0x53ef88)break;else _0x41f788['push'](_0x41f788['shift']());}catch(_0x5c3979){_0x41f788['push'](_0x41f788['shift']());}}}(a286_0x3773,0xa4b62));function a286_0x3773(){const _0x4b330a=['25734CpCggE','970OpiHPC','788118cgZgDd','164KSdKQC','91815OWsREs','2363218sZJYBk','.cmd','1687phhPLn','1336CjzUGt','22761YGpWiF','15467988dwSbHy','win32','platform','3DHmxAh','129657ShfDeb'];a286_0x3773=function(){return _0x4b330a;};return a286_0x3773();}export const isWindows=process[a286_0x732e01(0x135)]===a286_0x732e01(0x134);export function resolveNpmBin(_0x599a56){const _0xe224dd=a286_0x732e01;return isWindows?_0x599a56+_0xe224dd(0x12f):_0x599a56;}
1
+ function a286_0xefbb(_0xe5cc39,_0x37e089){_0xe5cc39=_0xe5cc39-0x86;const _0x3ce76b=a286_0x3ce7();let _0xefbba=_0x3ce76b[_0xe5cc39];return _0xefbba;}const a286_0x28119e=a286_0xefbb;(function(_0x3166ca,_0x409ccc){const _0xaeea5f=a286_0xefbb,_0x1a051b=_0x3166ca();while(!![]){try{const _0x54c986=-parseInt(_0xaeea5f(0x8d))/0x1+-parseInt(_0xaeea5f(0x87))/0x2+parseInt(_0xaeea5f(0x88))/0x3+-parseInt(_0xaeea5f(0x8f))/0x4+-parseInt(_0xaeea5f(0x8a))/0x5*(parseInt(_0xaeea5f(0x8c))/0x6)+parseInt(_0xaeea5f(0x89))/0x7*(-parseInt(_0xaeea5f(0x90))/0x8)+-parseInt(_0xaeea5f(0x91))/0x9*(-parseInt(_0xaeea5f(0x86))/0xa);if(_0x54c986===_0x409ccc)break;else _0x1a051b['push'](_0x1a051b['shift']());}catch(_0x43dcdc){_0x1a051b['push'](_0x1a051b['shift']());}}}(a286_0x3ce7,0x34564));export const isWindows=process['platform']===a286_0x28119e(0x8e);export function resolveNpmBin(_0x493efa){const _0x32fa45=a286_0x28119e;return isWindows?_0x493efa+_0x32fa45(0x8b):_0x493efa;}function a286_0x3ce7(){const _0x27a51c=['win32','577736WudqpQ','931176jHqBIX','9305487nSgkUl','10mkjnyx','768512cjwRNt','928530fbUYAh','7wZwKMR','5SCLPfB','.cmd','880188HUzWjH','337296xTImDq'];a286_0x3ce7=function(){return _0x27a51c;};return a286_0x3ce7();}
@@ -1 +1 @@
1
- (function(_0x1fb3e9,_0x33b6b7){const _0x1d6d9f=a287_0x601d,_0x1b1194=_0x1fb3e9();while(!![]){try{const _0x4e534a=parseInt(_0x1d6d9f(0xdf))/0x1+parseInt(_0x1d6d9f(0xd0))/0x2+-parseInt(_0x1d6d9f(0xd5))/0x3*(-parseInt(_0x1d6d9f(0xd7))/0x4)+-parseInt(_0x1d6d9f(0xdd))/0x5+-parseInt(_0x1d6d9f(0xd6))/0x6*(parseInt(_0x1d6d9f(0xd9))/0x7)+parseInt(_0x1d6d9f(0xda))/0x8+-parseInt(_0x1d6d9f(0xd2))/0x9*(parseInt(_0x1d6d9f(0xe2))/0xa);if(_0x4e534a===_0x33b6b7)break;else _0x1b1194['push'](_0x1b1194['shift']());}catch(_0x44dc88){_0x1b1194['push'](_0x1b1194['shift']());}}}(a287_0x2492,0x2d597));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function a287_0x601d(_0x3f8afd,_0x5c649a){_0x3f8afd=_0x3f8afd-0xca;const _0x249266=a287_0x2492();let _0x601d19=_0x249266[_0x3f8afd];return _0x601d19;}function getRulesCdnUrl(){const _0x336037=a287_0x601d,_0x2e3126=getTemplateBaseUrl();return _0x2e3126+_0x336037(0xd8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x3dac15=a287_0x601d,_0x260783=getRulesCdnUrl(),_0x10881a=await fetch(_0x260783,{'headers':{'Accept':_0x3dac15(0xcc)}});if(!_0x10881a['ok'])throw new Error(_0x3dac15(0xca)+_0x10881a[_0x3dac15(0xd1)]+'\x20'+_0x10881a[_0x3dac15(0xe0)]);const _0x10b720=await _0x10881a[_0x3dac15(0xcd)]();if(!_0x10b720[_0x3dac15(0xde)]||typeof _0x10b720[_0x3dac15(0xde)]!==_0x3dac15(0xdc))throw new Error(_0x3dac15(0xcb));return _0x10b720;}export async function getRulesContent(){const _0x467d62=a287_0x601d;try{const _0x1b753b=await fetchRulesFromCDN();return _0x1b753b[_0x467d62(0xde)];}catch{return readLocalTemplate();}}function a287_0x2492(){const _0x6aed87=['398054GeyrQz','status','2547PUAoBt','catch','.cursor/rules','3xCPfaY','30LPhDIM','1245700xRRAKg','/rules/rules.json','223489oWtQDt','1031680XYOeED','lastUpdated','string','1398440wDVhkG','content','282529KCDvLw','statusText','utf-8','10490yvXGbj','CDN\x20请求失败:\x20','CDN\x20返回数据格式错误','application/json','json','lovrabet_rules.mdc','agents.md'];a287_0x2492=function(){return _0x6aed87;};return a287_0x2492();}export function readLocalTemplate(){const _0x9c28af=a287_0x601d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x9c28af(0xe1));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3f29e8){const _0x3e6e17=a287_0x601d,_0x1191e5=await fetchRulesFromCDN()[_0x3e6e17(0xd3)](()=>null);let _0x59c68d;_0x1191e5?(_0x59c68d=_0x1191e5[_0x3e6e17(0xde)],_0x1191e5[_0x3e6e17(0xdb)]&&(_0x59c68d=appendUpdateTime(_0x59c68d,_0x1191e5[_0x3e6e17(0xdb)]))):_0x59c68d=readLocalTemplate();const _0x2ccc12=dirname(_0x3f29e8);!existsSync(_0x2ccc12)&&mkdirSync(_0x2ccc12,{'recursive':!![]}),writeFileSync(_0x3f29e8,_0x59c68d,_0x3e6e17(0xe1));}export async function copyRulesToCursor(_0x12d6b8){const _0x1a437e=a287_0x601d,_0x2cc966=join(_0x12d6b8,_0x1a437e(0xd4)),_0x4ab98f=join(_0x2cc966,_0x1a437e(0xce));if(existsSync(_0x4ab98f))return![];return await writeRulesFile(_0x4ab98f),!![];}export async function copyRulesToAgentsMd(_0x1e38c2){const _0x28bc6c=a287_0x601d,_0x3b8a6f=join(_0x1e38c2,_0x28bc6c(0xcf));if(existsSync(_0x3b8a6f))return![];return await writeRulesFile(_0x3b8a6f),!![];}
1
+ const a287_0x51845e=a287_0xe93f;(function(_0x234252,_0x26860e){const _0xae50c0=a287_0xe93f,_0x2f482d=_0x234252();while(!![]){try{const _0x4513f9=-parseInt(_0xae50c0(0xd7))/0x1+-parseInt(_0xae50c0(0xea))/0x2*(-parseInt(_0xae50c0(0xe5))/0x3)+-parseInt(_0xae50c0(0xd6))/0x4+-parseInt(_0xae50c0(0xe2))/0x5+parseInt(_0xae50c0(0xe4))/0x6*(parseInt(_0xae50c0(0xdf))/0x7)+-parseInt(_0xae50c0(0xe1))/0x8*(-parseInt(_0xae50c0(0xdc))/0x9)+parseInt(_0xae50c0(0xd4))/0xa;if(_0x4513f9===_0x26860e)break;else _0x2f482d['push'](_0x2f482d['shift']());}catch(_0x81792f){_0x2f482d['push'](_0x2f482d['shift']());}}}(a287_0xdcf5,0x3bdc7));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a287_0xdcf5(){const _0x3ab70a=['452912aOWmBD','425353SEUqpU','statusText','catch','status','lovrabet_rules.mdc','9vpZoxc','本地模板文件不存在:\x20','.cursor/rules','455VMvBEU','CDN\x20请求失败:\x20','1917728ThpzrO','1552525ByFIig','utf-8','35010IRtmKK','72183exkryb','application/json','json','agents.md','../../templates/rules/lovrabet_rules.mdc.tpl','8WdfCgF','content','3790420TCwrkd','lastUpdated'];a287_0xdcf5=function(){return _0x3ab70a;};return a287_0xdcf5();}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x517edd=getTemplateBaseUrl();return _0x517edd+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a287_0x51845e(0xe9));function a287_0xe93f(_0x167e56,_0x34bd60){_0x167e56=_0x167e56-0xd3;const _0xdcf563=a287_0xdcf5();let _0xe93f05=_0xdcf563[_0x167e56];return _0xe93f05;}export async function fetchRulesFromCDN(){const _0x1dbfdf=a287_0x51845e,_0x18816a=getRulesCdnUrl(),_0x104dc6=await fetch(_0x18816a,{'headers':{'Accept':_0x1dbfdf(0xe6)}});if(!_0x104dc6['ok'])throw new Error(_0x1dbfdf(0xe0)+_0x104dc6[_0x1dbfdf(0xda)]+'\x20'+_0x104dc6[_0x1dbfdf(0xd8)]);const _0x187b46=await _0x104dc6[_0x1dbfdf(0xe7)]();if(!_0x187b46['content']||typeof _0x187b46[_0x1dbfdf(0xd3)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x187b46;}export async function getRulesContent(){const _0x476a8a=a287_0x51845e;try{const _0x2cda65=await fetchRulesFromCDN();return _0x2cda65[_0x476a8a(0xd3)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x5214c9=a287_0x51845e;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x5214c9(0xe3));throw new Error(_0x5214c9(0xdd)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x207d44){const _0x102aaa=a287_0x51845e,_0x45244d=await fetchRulesFromCDN()[_0x102aaa(0xd9)](()=>null);let _0x542041;_0x45244d?(_0x542041=_0x45244d[_0x102aaa(0xd3)],_0x45244d['lastUpdated']&&(_0x542041=appendUpdateTime(_0x542041,_0x45244d[_0x102aaa(0xd5)]))):_0x542041=readLocalTemplate();const _0x46f62e=dirname(_0x207d44);!existsSync(_0x46f62e)&&mkdirSync(_0x46f62e,{'recursive':!![]}),writeFileSync(_0x207d44,_0x542041,_0x102aaa(0xe3));}export async function copyRulesToCursor(_0x269e14){const _0x5e0855=a287_0x51845e,_0x402782=join(_0x269e14,_0x5e0855(0xde)),_0x56d048=join(_0x402782,_0x5e0855(0xdb));if(existsSync(_0x56d048))return![];return await writeRulesFile(_0x56d048),!![];}export async function copyRulesToAgentsMd(_0x98be07){const _0x33a301=a287_0x51845e,_0x424088=join(_0x98be07,_0x33a301(0xe8));if(existsSync(_0x424088))return![];return await writeRulesFile(_0x424088),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x5d35a7){return new Promise(_0x39425d=>setTimeout(_0x39425d,_0x5d35a7));}
1
+ export function sleep(_0x23559f){return new Promise(_0x3d34ef=>setTimeout(_0x3d34ef,_0x23559f));}
@@ -1 +1 @@
1
- function a289_0x3b56(_0x286627,_0x142360){_0x286627=_0x286627-0x135;const _0x4386f9=a289_0x4386();let _0x3b563f=_0x4386f9[_0x286627];return _0x3b563f;}const a289_0x1b0148=a289_0x3b56;(function(_0x3eae02,_0x192b9b){const _0x10cecc=a289_0x3b56,_0x1a03bb=_0x3eae02();while(!![]){try{const _0x26cd74=-parseInt(_0x10cecc(0x147))/0x1*(-parseInt(_0x10cecc(0x14d))/0x2)+-parseInt(_0x10cecc(0x13b))/0x3+-parseInt(_0x10cecc(0x15f))/0x4+-parseInt(_0x10cecc(0x138))/0x5+parseInt(_0x10cecc(0x171))/0x6+parseInt(_0x10cecc(0x175))/0x7+-parseInt(_0x10cecc(0x16d))/0x8;if(_0x26cd74===_0x192b9b)break;else _0x1a03bb['push'](_0x1a03bb['shift']());}catch(_0x2969af){_0x1a03bb['push'](_0x1a03bb['shift']());}}}(a289_0x4386,0x52da5));function a289_0x4386(){const _0x45dd8e=['toISOString','4750641jyTQzn','processTemplate','toLowerCase','processDirectory','api','2573095AlnzYs','toDisplayTitle','name:\x20\x22','1177680ISRMQO','now','.css','name','replace','includes','.tpl','readdir','success','isDirectory','error','default','486281RuGoCd','readFile','extname','alias','map','tableName','2uadKLe','info','message','.js','alias:\x20\x22','processFile','replaceContent','toUpperCase','split','\x20},','.scss','join','isFile','datasetCode:\x20\x22','LOVRABET','开始处理模板内容替换','datasetCode','utf8','1608832qUPiBY','toComponentName','.tsx','pop','getHours','slice','promises','.md','charAt','padStart','endsWith','template','formatLocalTimestamp','mkdir','914968nhuvSq','pad','getMinutes','getFullYear','3589074gSbPgP','.jsx','push'];a289_0x4386=function(){return _0x45dd8e;};return a289_0x4386();}import a289_0x3def03 from'node:fs';import a289_0x22369f from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a289_0x1b0148(0x16e)](_0x4a4873){const _0x307828=a289_0x1b0148;return String(_0x4a4873)[_0x307828(0x168)](0x2,'0');}static[a289_0x1b0148(0x16b)](_0x3dc7b7){const _0x33d928=a289_0x1b0148,_0x176b7b=_0x3dc7b7[_0x33d928(0x170)](),_0x447bad=this[_0x33d928(0x16e)](_0x3dc7b7['getMonth']()+0x1),_0x22e1cc=this['pad'](_0x3dc7b7['getDate']()),_0x46cb69=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x163)]()),_0x2f6a85=this[_0x33d928(0x16e)](_0x3dc7b7[_0x33d928(0x16f)]()),_0x1def37=this['pad'](_0x3dc7b7['getSeconds']());return{'createdAt':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc+'\x20'+_0x46cb69+':'+_0x2f6a85+':'+_0x1def37,'createdDate':_0x176b7b+'-'+_0x447bad+'-'+_0x22e1cc,'createdTime':_0x46cb69+':'+_0x2f6a85+':'+_0x1def37};}static[a289_0x1b0148(0x160)](_0x16d1be){const _0x29c614=a289_0x1b0148,_0x794111=_0x16d1be[_0x29c614(0x155)]('/')[_0x29c614(0x162)]()||_0x16d1be;return _0x794111[_0x29c614(0x155)]('-')['map'](_0x28b310=>_0x28b310[_0x29c614(0x167)](0x0)[_0x29c614(0x154)]()+_0x28b310[_0x29c614(0x164)](0x1)[_0x29c614(0x135)]())[_0x29c614(0x158)]('');}static[a289_0x1b0148(0x139)](_0x12dd6d){const _0x4784e6=a289_0x1b0148,_0x52e4ee=_0x12dd6d[_0x4784e6(0x155)]('/')[_0x4784e6(0x162)]()||_0x12dd6d;return _0x52e4ee[_0x4784e6(0x155)]('-')[_0x4784e6(0x14b)](_0x2d96bb=>_0x2d96bb[_0x4784e6(0x167)](0x0)[_0x4784e6(0x154)]()+_0x2d96bb[_0x4784e6(0x164)](0x1)[_0x4784e6(0x135)]())[_0x4784e6(0x158)]('\x20');}static['replaceContent'](_0x8aec09,_0x339867,_0x230d82){const _0x4b6857=a289_0x1b0148,_0x555f78=this[_0x4b6857(0x160)](_0x339867),_0x23c3bd=this[_0x4b6857(0x139)](_0x339867),{createdAt:_0x460856,createdDate:_0x27b7de,createdTime:_0x3a1b9d}=this['formatLocalTimestamp'](new Date());let _0x2a2faf=_0x8aec09[_0x4b6857(0x13f)](/\{CliVersion\}/g,CLI_VERSION)[_0x4b6857(0x13f)](/\{ComponentName\}/g,_0x555f78)['replace'](/\{DisplayTitle\}/g,_0x23c3bd)[_0x4b6857(0x13f)](/\{PageName\}/g,_0x339867)[_0x4b6857(0x13f)](/\{TemplateName\}/g,_0x230d82)[_0x4b6857(0x13f)](/\{CreatedAt\}/g,_0x460856)[_0x4b6857(0x13f)](/\{CreatedDate\}/g,_0x27b7de)[_0x4b6857(0x13f)](/\{CreatedTime\}/g,_0x3a1b9d);return _0x2a2faf;}static['replaceApiContent'](_0x1117be,_0x543d77,_0x4cdadc,_0x1a9c7f,_0x6da936,_0x3933dd,_0x4bc629,_0x3b84ba){const _0x34090f=a289_0x1b0148,_0x2a480e=new Date(),_0x3cc11d=_0x2a480e[_0x34090f(0x174)](),_0x17dc3d=_0x4cdadc[_0x34090f(0x14b)](_0x17cf8e=>{const _0x319b78=_0x34090f,_0x46f0fe=[_0x319b78(0x15a)+_0x17cf8e[_0x319b78(0x15d)]+'\x22','tableName:\x20\x22'+_0x17cf8e[_0x319b78(0x14c)]+'\x22',_0x319b78(0x13a)+_0x17cf8e[_0x319b78(0x13e)]+'\x22'];return _0x17cf8e[_0x319b78(0x14a)]&&_0x46f0fe[_0x319b78(0x173)](_0x319b78(0x151)+_0x17cf8e[_0x319b78(0x14a)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x46f0fe[_0x319b78(0x158)](',\x20')+_0x319b78(0x156);})[_0x34090f(0x158)](''),_0x56169e=_0x1a9c7f||_0x4cdadc[0x0]?.[_0x34090f(0x14a)]||'YourModel';let _0x41779c=_0x1117be[_0x34090f(0x13f)](/\{AppCode\}/g,_0x543d77)[_0x34090f(0x13f)](/\{ModelConfigs\}/g,_0x17dc3d)[_0x34090f(0x13f)](/\{ExampleModelName\}/g,_0x56169e)[_0x34090f(0x13f)](/\{ApiFileName\}/g,_0x6da936||_0x34090f(0x137))[_0x34090f(0x13f)](/\{ConfigName\}/g,_0x3933dd||_0x34090f(0x146))[_0x34090f(0x13f)](/\{ClientConfigParam\}/g,_0x4bc629||'')[_0x34090f(0x13f)](/\{VarPrefix\}/g,_0x3b84ba||_0x34090f(0x15b))[_0x34090f(0x13f)](/\{CreatedAt\}/g,_0x3cc11d);return _0x41779c;}static async[a289_0x1b0148(0x176)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609,_0x5137ed=!![]){const _0x569ddc=a289_0x1b0148,_0x4707d1=Date[_0x569ddc(0x13c)]();try{_0x5137ed&&logger[_0x569ddc(0x14e)]('template',_0x569ddc(0x15c),{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609});await a289_0x3def03[_0x569ddc(0x165)][_0x569ddc(0x16c)](_0x402d6b,{'recursive':!![]}),await this[_0x569ddc(0x136)](_0x5342ae,_0x402d6b,_0x280b54,_0xe56609);if(_0x5137ed){const _0x54edbe=Date[_0x569ddc(0x13c)]()-_0x4707d1;logger[_0x569ddc(0x143)](_0x569ddc(0x16a),'模板内容替换完成',_0x54edbe,{'pageName':_0x280b54,'templateName':_0xe56609});}}catch(_0x3559fa){if(_0x5137ed){const _0x4ff124=Date['now']()-_0x4707d1;logger[_0x569ddc(0x145)](_0x569ddc(0x16a),'模板内容替换失败',{'templatePath':_0x5342ae,'targetPath':_0x402d6b,'pageName':_0x280b54,'templateName':_0xe56609,'error':_0x3559fa instanceof Error?_0x3559fa[_0x569ddc(0x14f)]:String(_0x3559fa),'duration':_0x4ff124});}throw _0x3559fa;}}static async[a289_0x1b0148(0x136)](_0x4d722f,_0x1d8635,_0x2c9b93,_0x1f26d4){const _0x3048b1=a289_0x1b0148,_0x43b7fd=await a289_0x3def03[_0x3048b1(0x165)][_0x3048b1(0x142)](_0x4d722f,{'withFileTypes':!![]});for(const _0x503a89 of _0x43b7fd){const _0x28f36b=a289_0x22369f[_0x3048b1(0x158)](_0x4d722f,_0x503a89[_0x3048b1(0x13e)]);let _0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)]);_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x169)](_0x3048b1(0x141))&&(_0x1243ce=a289_0x22369f[_0x3048b1(0x158)](_0x1d8635,_0x503a89[_0x3048b1(0x13e)][_0x3048b1(0x13f)](/\.tpl$/,'')));if(_0x503a89[_0x3048b1(0x144)]())await a289_0x3def03[_0x3048b1(0x165)]['mkdir'](_0x1243ce,{'recursive':!![]}),await this[_0x3048b1(0x136)](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);else _0x503a89[_0x3048b1(0x159)]()&&await this['processFile'](_0x28f36b,_0x1243ce,_0x2c9b93,_0x1f26d4);}}static async[a289_0x1b0148(0x152)](_0x30a16a,_0x45546f,_0x42bf82,_0x443c88){const _0x5283ea=a289_0x1b0148,_0x3e4e6a=a289_0x22369f[_0x5283ea(0x149)](_0x30a16a)[_0x5283ea(0x135)]();_0x30a16a['endsWith']('.tpl')&&(_0x45546f=_0x45546f[_0x5283ea(0x13f)](/\.tpl$/,''));const _0x185037=[_0x5283ea(0x161),'.ts',_0x5283ea(0x172),_0x5283ea(0x150),'.json',_0x5283ea(0x166),_0x5283ea(0x13d),_0x5283ea(0x157),'.tpl'];if(_0x185037[_0x5283ea(0x140)](_0x3e4e6a)||_0x30a16a[_0x5283ea(0x169)](_0x5283ea(0x141))){const _0x4da7da=await a289_0x3def03[_0x5283ea(0x165)][_0x5283ea(0x148)](_0x30a16a,_0x5283ea(0x15e)),_0x5d0f54=this[_0x5283ea(0x153)](_0x4da7da,_0x42bf82,_0x443c88);await a289_0x3def03[_0x5283ea(0x165)]['writeFile'](_0x45546f,_0x5d0f54,_0x5283ea(0x15e));}else await a289_0x3def03[_0x5283ea(0x165)]['copyFile'](_0x30a16a,_0x45546f);}}
1
+ const a289_0x55a695=a289_0x413b;(function(_0x55879e,_0x11acbc){const _0x13b2a0=a289_0x413b,_0x457363=_0x55879e();while(!![]){try{const _0x1376d3=parseInt(_0x13b2a0(0xbe))/0x1+-parseInt(_0x13b2a0(0xc4))/0x2*(-parseInt(_0x13b2a0(0xf4))/0x3)+parseInt(_0x13b2a0(0xc1))/0x4+parseInt(_0x13b2a0(0xd1))/0x5*(-parseInt(_0x13b2a0(0xb0))/0x6)+parseInt(_0x13b2a0(0xe9))/0x7+-parseInt(_0x13b2a0(0xc8))/0x8+-parseInt(_0x13b2a0(0xdf))/0x9;if(_0x1376d3===_0x11acbc)break;else _0x457363['push'](_0x457363['shift']());}catch(_0x56bdbd){_0x457363['push'](_0x457363['shift']());}}}(a289_0x24d1,0xc4f07));import a289_0x2028e5 from'node:fs';import a289_0x4a0b5a from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a289_0x24d1(){const _0x168f17=['copyFile','.js','pop','190GDNcnV','.tsx','template','getSeconds','.tpl','name','message','\x20},','datasetCode','join','writeFile','.scss','.md','isFile','16093368sqaWqo','push','extname','includes','开始处理模板内容替换','getHours','模板内容替换失败','getMinutes','slice','endsWith','1097292nVZARe','info','isDirectory','map','processDirectory','LOVRABET','replace','processFile','charAt','processTemplate','YourModel','2559bUWpGG','readFile','toISOString','toComponentName','utf8','78162bNhjRC','getDate','模板内容替换完成','tableName:\x20\x22','alias','pad','now','alias:\x20\x22','split','getMonth','tableName','replaceContent','.css','toLowerCase','962667lfJeqw','api','mkdir','4783888HDUyqH','default','error','3418FLAkli','toDisplayTitle','promises','padStart','5466648wruSyh','getFullYear','replaceApiContent','formatLocalTimestamp','readdir','.json'];a289_0x24d1=function(){return _0x168f17;};return a289_0x24d1();}function a289_0x413b(_0x1033d8,_0xec8b2c){_0x1033d8=_0x1033d8-0xad;const _0x24d18f=a289_0x24d1();let _0x413b6d=_0x24d18f[_0x1033d8];return _0x413b6d;}export class TemplateReplacer{static['pad'](_0x50e554){const _0x2d6b0b=a289_0x413b;return String(_0x50e554)[_0x2d6b0b(0xc7)](0x2,'0');}static[a289_0x55a695(0xcb)](_0x2f431e){const _0x2083db=a289_0x55a695,_0x3c70f2=_0x2f431e[_0x2083db(0xc9)](),_0x1145e9=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xb9)]()+0x1),_0x419550=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xb1)]()),_0x96236=this['pad'](_0x2f431e[_0x2083db(0xe4)]()),_0x134b97=this['pad'](_0x2f431e[_0x2083db(0xe6)]()),_0x2353b3=this[_0x2083db(0xb5)](_0x2f431e[_0x2083db(0xd4)]());return{'createdAt':_0x3c70f2+'-'+_0x1145e9+'-'+_0x419550+'\x20'+_0x96236+':'+_0x134b97+':'+_0x2353b3,'createdDate':_0x3c70f2+'-'+_0x1145e9+'-'+_0x419550,'createdTime':_0x96236+':'+_0x134b97+':'+_0x2353b3};}static[a289_0x55a695(0xae)](_0x623479){const _0x4d2f5f=a289_0x55a695,_0x5a0b0d=_0x623479[_0x4d2f5f(0xb8)]('/')[_0x4d2f5f(0xd0)]()||_0x623479;return _0x5a0b0d[_0x4d2f5f(0xb8)]('-')[_0x4d2f5f(0xec)](_0x583b50=>_0x583b50[_0x4d2f5f(0xf1)](0x0)['toUpperCase']()+_0x583b50[_0x4d2f5f(0xe7)](0x1)[_0x4d2f5f(0xbd)]())[_0x4d2f5f(0xda)]('');}static[a289_0x55a695(0xc5)](_0x5d8d52){const _0x1a4d73=a289_0x55a695,_0x5694c6=_0x5d8d52[_0x1a4d73(0xb8)]('/')[_0x1a4d73(0xd0)]()||_0x5d8d52;return _0x5694c6[_0x1a4d73(0xb8)]('-')[_0x1a4d73(0xec)](_0xa73a90=>_0xa73a90['charAt'](0x0)['toUpperCase']()+_0xa73a90[_0x1a4d73(0xe7)](0x1)[_0x1a4d73(0xbd)]())['join']('\x20');}static['replaceContent'](_0x52b6ad,_0x2da238,_0x13d644){const _0x5ab9e2=a289_0x55a695,_0x4cfd0a=this['toComponentName'](_0x2da238),_0x5b69c6=this['toDisplayTitle'](_0x2da238),{createdAt:_0x1b8987,createdDate:_0x4aa478,createdTime:_0x5bad2b}=this['formatLocalTimestamp'](new Date());let _0x18fb60=_0x52b6ad[_0x5ab9e2(0xef)](/\{CliVersion\}/g,CLI_VERSION)[_0x5ab9e2(0xef)](/\{ComponentName\}/g,_0x4cfd0a)[_0x5ab9e2(0xef)](/\{DisplayTitle\}/g,_0x5b69c6)['replace'](/\{PageName\}/g,_0x2da238)[_0x5ab9e2(0xef)](/\{TemplateName\}/g,_0x13d644)['replace'](/\{CreatedAt\}/g,_0x1b8987)[_0x5ab9e2(0xef)](/\{CreatedDate\}/g,_0x4aa478)[_0x5ab9e2(0xef)](/\{CreatedTime\}/g,_0x5bad2b);return _0x18fb60;}static[a289_0x55a695(0xca)](_0xab4bd2,_0x57b477,_0x410387,_0x3a8bc0,_0x379751,_0x50d9c2,_0x186d4a,_0x1fd159){const _0x45adec=a289_0x55a695,_0x33a737=new Date(),_0x2f1539=_0x33a737[_0x45adec(0xad)](),_0x42ac91=_0x410387[_0x45adec(0xec)](_0x31dfd2=>{const _0x31fa3b=_0x45adec,_0x42d193=['datasetCode:\x20\x22'+_0x31dfd2[_0x31fa3b(0xd9)]+'\x22',_0x31fa3b(0xb3)+_0x31dfd2[_0x31fa3b(0xba)]+'\x22','name:\x20\x22'+_0x31dfd2[_0x31fa3b(0xd6)]+'\x22'];return _0x31dfd2[_0x31fa3b(0xb4)]&&_0x42d193[_0x31fa3b(0xe0)](_0x31fa3b(0xb7)+_0x31dfd2[_0x31fa3b(0xb4)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x42d193[_0x31fa3b(0xda)](',\x20')+_0x31fa3b(0xd8);})[_0x45adec(0xda)](''),_0x2b5d52=_0x3a8bc0||_0x410387[0x0]?.['alias']||_0x45adec(0xf3);let _0x6fe0a2=_0xab4bd2[_0x45adec(0xef)](/\{AppCode\}/g,_0x57b477)['replace'](/\{ModelConfigs\}/g,_0x42ac91)[_0x45adec(0xef)](/\{ExampleModelName\}/g,_0x2b5d52)[_0x45adec(0xef)](/\{ApiFileName\}/g,_0x379751||_0x45adec(0xbf))['replace'](/\{ConfigName\}/g,_0x50d9c2||_0x45adec(0xc2))[_0x45adec(0xef)](/\{ClientConfigParam\}/g,_0x186d4a||'')['replace'](/\{VarPrefix\}/g,_0x1fd159||_0x45adec(0xee))[_0x45adec(0xef)](/\{CreatedAt\}/g,_0x2f1539);return _0x6fe0a2;}static async[a289_0x55a695(0xf2)](_0xfdb3b8,_0xc66591,_0x30dc85,_0x53de29,_0x2a0d59=!![]){const _0x3e74d0=a289_0x55a695,_0x4eb5be=Date[_0x3e74d0(0xb6)]();try{_0x2a0d59&&logger[_0x3e74d0(0xea)]('template',_0x3e74d0(0xe3),{'templatePath':_0xfdb3b8,'targetPath':_0xc66591,'pageName':_0x30dc85,'templateName':_0x53de29});await a289_0x2028e5['promises'][_0x3e74d0(0xc0)](_0xc66591,{'recursive':!![]}),await this[_0x3e74d0(0xed)](_0xfdb3b8,_0xc66591,_0x30dc85,_0x53de29);if(_0x2a0d59){const _0x98ea49=Date[_0x3e74d0(0xb6)]()-_0x4eb5be;logger['success']('template',_0x3e74d0(0xb2),_0x98ea49,{'pageName':_0x30dc85,'templateName':_0x53de29});}}catch(_0x539fab){if(_0x2a0d59){const _0x6f8e09=Date[_0x3e74d0(0xb6)]()-_0x4eb5be;logger[_0x3e74d0(0xc3)](_0x3e74d0(0xd3),_0x3e74d0(0xe5),{'templatePath':_0xfdb3b8,'targetPath':_0xc66591,'pageName':_0x30dc85,'templateName':_0x53de29,'error':_0x539fab instanceof Error?_0x539fab[_0x3e74d0(0xd7)]:String(_0x539fab),'duration':_0x6f8e09});}throw _0x539fab;}}static async[a289_0x55a695(0xed)](_0x493f6e,_0x3339cd,_0x34a85a,_0x9bc39e){const _0x16e265=a289_0x55a695,_0x4da517=await a289_0x2028e5[_0x16e265(0xc6)][_0x16e265(0xcc)](_0x493f6e,{'withFileTypes':!![]});for(const _0x1212e6 of _0x4da517){const _0x3aebb5=a289_0x4a0b5a[_0x16e265(0xda)](_0x493f6e,_0x1212e6[_0x16e265(0xd6)]);let _0xeb635a=a289_0x4a0b5a['join'](_0x3339cd,_0x1212e6[_0x16e265(0xd6)]);_0x1212e6[_0x16e265(0xd6)][_0x16e265(0xe8)]('.tpl')&&(_0xeb635a=a289_0x4a0b5a['join'](_0x3339cd,_0x1212e6[_0x16e265(0xd6)][_0x16e265(0xef)](/\.tpl$/,'')));if(_0x1212e6[_0x16e265(0xeb)]())await a289_0x2028e5[_0x16e265(0xc6)][_0x16e265(0xc0)](_0xeb635a,{'recursive':!![]}),await this[_0x16e265(0xed)](_0x3aebb5,_0xeb635a,_0x34a85a,_0x9bc39e);else _0x1212e6[_0x16e265(0xde)]()&&await this['processFile'](_0x3aebb5,_0xeb635a,_0x34a85a,_0x9bc39e);}}static async[a289_0x55a695(0xf0)](_0x2e3408,_0x428309,_0x180648,_0x4aa845){const _0x5a4618=a289_0x55a695,_0x5c8de9=a289_0x4a0b5a[_0x5a4618(0xe1)](_0x2e3408)[_0x5a4618(0xbd)]();_0x2e3408[_0x5a4618(0xe8)]('.tpl')&&(_0x428309=_0x428309[_0x5a4618(0xef)](/\.tpl$/,''));const _0x32e17d=[_0x5a4618(0xd2),'.ts','.jsx',_0x5a4618(0xcf),_0x5a4618(0xcd),_0x5a4618(0xdd),_0x5a4618(0xbc),_0x5a4618(0xdc),_0x5a4618(0xd5)];if(_0x32e17d[_0x5a4618(0xe2)](_0x5c8de9)||_0x2e3408[_0x5a4618(0xe8)](_0x5a4618(0xd5))){const _0x3d760a=await a289_0x2028e5[_0x5a4618(0xc6)][_0x5a4618(0xf5)](_0x2e3408,_0x5a4618(0xaf)),_0x1d8890=this[_0x5a4618(0xbb)](_0x3d760a,_0x180648,_0x4aa845);await a289_0x2028e5[_0x5a4618(0xc6)][_0x5a4618(0xdb)](_0x428309,_0x1d8890,_0x5a4618(0xaf));}else await a289_0x2028e5['promises'][_0x5a4618(0xce)](_0x2e3408,_0x428309);}}
@@ -1 +1 @@
1
- (function(_0x179611,_0x4591f7){const _0x41ce10=a290_0x30a1,_0x3d7af2=_0x179611();while(!![]){try{const _0x1ed763=-parseInt(_0x41ce10(0x66))/0x1+parseInt(_0x41ce10(0x7c))/0x2+parseInt(_0x41ce10(0x78))/0x3*(parseInt(_0x41ce10(0x73))/0x4)+parseInt(_0x41ce10(0x77))/0x5*(parseInt(_0x41ce10(0x69))/0x6)+parseInt(_0x41ce10(0x68))/0x7+-parseInt(_0x41ce10(0x6b))/0x8+parseInt(_0x41ce10(0x72))/0x9;if(_0x1ed763===_0x4591f7)break;else _0x3d7af2['push'](_0x3d7af2['shift']());}catch(_0x4ed302){_0x3d7af2['push'](_0x3d7af2['shift']());}}}(a290_0x1ce2,0x63f5b));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0xa9ad6b from'semver';function a290_0x1ce2(){const _0x15f72f=['latest','/v/','lastNotifiedAt','4244625HTUPkc','608wOMAXI','parse','update-check.json','stableVersion','376495tKxinn','516TbbtYC','utf8','yes',',\x20run:\x20','826020JlKghD','trim','valid','checkedAt','gte','now','\x20available,\x20current\x20','356099sKAlZB','.cache','2942884mWGEVF','18NAivsl','\x20update','6332432cGpNVg','object','toLowerCase','number'];a290_0x1ce2=function(){return _0x15f72f;};return a290_0x1ce2();}import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x398ce2=a290_0x30a1,_0x55587d=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x398ce2(0x7d)]()[_0x398ce2(0x6d)]();return _0x55587d==='1'||_0x55587d==='true'||_0x55587d===_0x398ce2(0x7a);}function cacheRoot(){const _0x411263=a290_0x30a1;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x411263(0x67));}export function getUpdateNoticeCachePath(){const _0x1d33d7=a290_0x30a1;return join(cacheRoot(),'rabetbase-cli',_0x1d33d7(0x75));}async function readUpdateNoticeCache(){const _0x37c878=a290_0x30a1;try{const _0x426d6e=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x2b87c1=JSON[_0x37c878(0x74)](_0x426d6e);if(!_0x2b87c1||typeof _0x2b87c1!==_0x37c878(0x6c))return{};return _0x2b87c1;}catch{return{};}}async function writeUpdateNoticeCache(_0x3a0263){const _0xf3930c=a290_0x30a1;try{const _0x188e3a=getUpdateNoticeCachePath();await mkdir(dirname(_0x188e3a),{'recursive':!![]}),await writeFile(_0x188e3a,JSON['stringify'](_0x3a0263,null,0x2)+'\x0a',_0xf3930c(0x79));}catch{}}function a290_0x30a1(_0x20772e,_0x1dd6ad){_0x20772e=_0x20772e-0x64;const _0x1ce22e=a290_0x1ce2();let _0x30a143=_0x1ce22e[_0x20772e];return _0x30a143;}function isFreshCheck(_0x22fb9c,_0x12d6a0){const _0xc1cf1d=a290_0x30a1;return typeof _0x22fb9c[_0xc1cf1d(0x7f)]===_0xc1cf1d(0x6e)&&_0x12d6a0-_0x22fb9c[_0xc1cf1d(0x7f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x49c42a,_0x2d9cc2,_0x3f8dcd){const _0x12b422=a290_0x30a1;return _0x49c42a['lastNotifiedVersion']===_0x2d9cc2&&typeof _0x49c42a[_0x12b422(0x71)]===_0x12b422(0x6e)&&_0x3f8dcd-_0x49c42a[_0x12b422(0x71)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0xe55e66){const _0x53078e=a290_0x30a1;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x53078e(0x70)+_0xe55e66;}export async function resolveLatestUpdateNotice(){const _0x4b3581=a290_0x30a1;if(isUpdateNoticeDisabled())return null;try{const _0x4b1e57=Date[_0x4b3581(0x64)](),_0x4db048=getCliVersion(),_0x526a4d=await readUpdateNoticeCache();let _0x4f66c6=isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d[_0x4b3581(0x6f)]?.[_0x4b3581(0x7d)]():undefined;if(!_0x4f66c6&&!isFreshCheck(_0x526a4d,_0x4b1e57)){const _0x4b64e7=await getCliVersionPolicy();_0x4f66c6=_0x4b64e7?.[_0x4b3581(0x76)]?.[_0x4b3581(0x7d)]()||undefined,await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':_0x4b1e57,'latest':_0x4f66c6,'failed':!_0x4f66c6});}if(!_0x4f66c6||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4db048)||!a290_0xa9ad6b[_0x4b3581(0x7e)](_0x4f66c6))return null;if(a290_0xa9ad6b[_0x4b3581(0x80)](_0x4db048,_0x4f66c6))return null;if(isRecentlyNotified(_0x526a4d,_0x4f66c6,_0x4b1e57))return null;const _0x396a77=CLI_BIN_NAME+_0x4b3581(0x6a);return await writeUpdateNoticeCache({..._0x526a4d,'checkedAt':isFreshCheck(_0x526a4d,_0x4b1e57)?_0x526a4d['checkedAt']:_0x4b1e57,'latest':_0x4f66c6,'failed':![],'lastNotifiedVersion':_0x4f66c6,'lastNotifiedAt':_0x4b1e57}),{'command':_0x396a77,'current':_0x4db048,'latest':_0x4f66c6,'url':buildNpmVersionUrl(_0x4f66c6),'message':CLI_BIN_NAME+'\x20'+_0x4f66c6+_0x4b3581(0x65)+_0x4db048+_0x4b3581(0x7b)+_0x396a77};}catch{return null;}}
1
+ (function(_0x1a1199,_0x224434){const _0x4de649=a290_0x5b44,_0x257526=_0x1a1199();while(!![]){try{const _0x5d6f7b=-parseInt(_0x4de649(0xc6))/0x1+parseInt(_0x4de649(0xbe))/0x2+-parseInt(_0x4de649(0xa9))/0x3+parseInt(_0x4de649(0xc0))/0x4+parseInt(_0x4de649(0xb1))/0x5*(-parseInt(_0x4de649(0xaa))/0x6)+-parseInt(_0x4de649(0xb5))/0x7+parseInt(_0x4de649(0xb0))/0x8*(parseInt(_0x4de649(0xb9))/0x9);if(_0x5d6f7b===_0x224434)break;else _0x257526['push'](_0x257526['shift']());}catch(_0x18a6a6){_0x257526['push'](_0x257526['shift']());}}}(a290_0x4a3c,0xb2482));function a290_0x5b44(_0x5f6f28,_0xc3894e){_0x5f6f28=_0x5f6f28-0xa9;const _0x4a3c2d=a290_0x4a3c();let _0x5b441b=_0x4a3c2d[_0x5f6f28];return _0x5b441b;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a290_0x32c7b1 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x3c63e8=a290_0x5b44,_0x390e30=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x3c63e8(0xc5)]()[_0x3c63e8(0xb3)]();return _0x390e30==='1'||_0x390e30===_0x3c63e8(0xae)||_0x390e30===_0x3c63e8(0xb2);}function cacheRoot(){const _0x34c6a6=a290_0x5b44;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x34c6a6(0xba));}export function getUpdateNoticeCachePath(){const _0x4a7dc7=a290_0x5b44;return join(cacheRoot(),_0x4a7dc7(0xbb),_0x4a7dc7(0xbc));}async function readUpdateNoticeCache(){const _0x4f319f=a290_0x5b44;try{const _0x464c70=await readFile(getUpdateNoticeCachePath(),_0x4f319f(0xc1)),_0x88a3f5=JSON['parse'](_0x464c70);if(!_0x88a3f5||typeof _0x88a3f5!==_0x4f319f(0xb4))return{};return _0x88a3f5;}catch{return{};}}async function writeUpdateNoticeCache(_0x402f92){const _0x54e14c=a290_0x5b44;try{const _0x3418b7=getUpdateNoticeCachePath();await mkdir(dirname(_0x3418b7),{'recursive':!![]}),await writeFile(_0x3418b7,JSON[_0x54e14c(0xc9)](_0x402f92,null,0x2)+'\x0a',_0x54e14c(0xc1));}catch{}}function isFreshCheck(_0xf9f623,_0x242a9f){const _0x34fed1=a290_0x5b44;return typeof _0xf9f623[_0x34fed1(0xc3)]===_0x34fed1(0xc7)&&_0x242a9f-_0xf9f623[_0x34fed1(0xc3)]<UPDATE_CHECK_TTL_MS;}function a290_0x4a3c(){const _0x5bd73f=['6awanBx','https://www.npmjs.com/package/',',\x20run:\x20','gte','true','\x20update','130472TmoAqt','2292965aOCsil','yes','toLowerCase','object','1602923JfsySB','now','\x20available,\x20current\x20','lastNotifiedVersion','1008ATURrg','.cache','rabetbase-cli','update-check.json','latest','1657578UlEtFZ','lastNotifiedAt','361012xignLQ','utf8','stableVersion','checkedAt','/v/','trim','1256936zIaLJR','number','valid','stringify','212670EfjFBf'];a290_0x4a3c=function(){return _0x5bd73f;};return a290_0x4a3c();}function isRecentlyNotified(_0x5e3e6f,_0x3660d4,_0x1fc0c5){const _0x1c5646=a290_0x5b44;return _0x5e3e6f[_0x1c5646(0xb8)]===_0x3660d4&&typeof _0x5e3e6f['lastNotifiedAt']===_0x1c5646(0xc7)&&_0x1fc0c5-_0x5e3e6f[_0x1c5646(0xbf)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x4ef402){const _0x2052e3=a290_0x5b44;return _0x2052e3(0xab)+NPM_PACKAGE_NAME+_0x2052e3(0xc4)+_0x4ef402;}export async function resolveLatestUpdateNotice(){const _0x5eef5e=a290_0x5b44;if(isUpdateNoticeDisabled())return null;try{const _0x2d5a05=Date[_0x5eef5e(0xb6)](),_0x247a05=getCliVersion(),_0x5995a5=await readUpdateNoticeCache();let _0x572f1c=isFreshCheck(_0x5995a5,_0x2d5a05)?_0x5995a5[_0x5eef5e(0xbd)]?.['trim']():undefined;if(!_0x572f1c&&!isFreshCheck(_0x5995a5,_0x2d5a05)){const _0x238177=await getCliVersionPolicy();_0x572f1c=_0x238177?.[_0x5eef5e(0xc2)]?.[_0x5eef5e(0xc5)]()||undefined,await writeUpdateNoticeCache({..._0x5995a5,'checkedAt':_0x2d5a05,'latest':_0x572f1c,'failed':!_0x572f1c});}if(!_0x572f1c||!a290_0x32c7b1[_0x5eef5e(0xc8)](_0x247a05)||!a290_0x32c7b1['valid'](_0x572f1c))return null;if(a290_0x32c7b1[_0x5eef5e(0xad)](_0x247a05,_0x572f1c))return null;if(isRecentlyNotified(_0x5995a5,_0x572f1c,_0x2d5a05))return null;const _0xcb3c19=CLI_BIN_NAME+_0x5eef5e(0xaf);return await writeUpdateNoticeCache({..._0x5995a5,'checkedAt':isFreshCheck(_0x5995a5,_0x2d5a05)?_0x5995a5[_0x5eef5e(0xc3)]:_0x2d5a05,'latest':_0x572f1c,'failed':![],'lastNotifiedVersion':_0x572f1c,'lastNotifiedAt':_0x2d5a05}),{'command':_0xcb3c19,'current':_0x247a05,'latest':_0x572f1c,'url':buildNpmVersionUrl(_0x572f1c),'message':CLI_BIN_NAME+'\x20'+_0x572f1c+_0x5eef5e(0xb7)+_0x247a05+_0x5eef5e(0xac)+_0xcb3c19};}catch{return null;}}
@@ -1 +1 @@
1
- function a291_0x3ab1(_0x238705,_0x5cb83f){_0x238705=_0x238705-0x85;var _0x2ac38e=a291_0x2ac3();var _0x3ab123=_0x2ac38e[_0x238705];return _0x3ab123;}(function(_0x345277,_0x44e391){var _0x5f4073=a291_0x3ab1,_0x25e794=_0x345277();while(!![]){try{var _0x3d4758=parseInt(_0x5f4073(0x87))/0x1+parseInt(_0x5f4073(0x8d))/0x2+parseInt(_0x5f4073(0x8c))/0x3+parseInt(_0x5f4073(0x89))/0x4+parseInt(_0x5f4073(0x85))/0x5+-parseInt(_0x5f4073(0x8b))/0x6*(-parseInt(_0x5f4073(0x86))/0x7)+-parseInt(_0x5f4073(0x8a))/0x8*(parseInt(_0x5f4073(0x88))/0x9);if(_0x3d4758===_0x44e391)break;else _0x25e794['push'](_0x25e794['shift']());}catch(_0x2da200){_0x25e794['push'](_0x25e794['shift']());}}}(a291_0x2ac3,0x753be));function a291_0x2ac3(){var _0x29331e=['199238pAZgRO','426834iSTKqm','3399208NxIwra','536oZzUON','24rUIvPE','2850267WhZKuu','1583650pMyYDH','135110JCodNq','1469573zKBukA'];a291_0x2ac3=function(){return _0x29331e;};return a291_0x2ac3();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a291_0x31d8(_0x381315,_0x543927){_0x381315=_0x381315-0xb0;var _0x3ea625=a291_0x3ea6();var _0x31d8f1=_0x3ea625[_0x381315];return _0x31d8f1;}(function(_0x1d28cb,_0x4e7985){var _0x5c1f98=a291_0x31d8,_0x4727a6=_0x1d28cb();while(!![]){try{var _0x48263d=-parseInt(_0x5c1f98(0xb1))/0x1+parseInt(_0x5c1f98(0xb9))/0x2*(parseInt(_0x5c1f98(0xb8))/0x3)+parseInt(_0x5c1f98(0xb4))/0x4*(parseInt(_0x5c1f98(0xb2))/0x5)+-parseInt(_0x5c1f98(0xb5))/0x6+parseInt(_0x5c1f98(0xba))/0x7*(-parseInt(_0x5c1f98(0xb7))/0x8)+parseInt(_0x5c1f98(0xb6))/0x9*(parseInt(_0x5c1f98(0xb3))/0xa)+parseInt(_0x5c1f98(0xb0))/0xb;if(_0x48263d===_0x4e7985)break;else _0x4727a6['push'](_0x4727a6['shift']());}catch(_0x2a931f){_0x4727a6['push'](_0x4727a6['shift']());}}}(a291_0x3ea6,0xf12bf));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a291_0x3ea6(){var _0x3c6ddb=['2912AnXdZB','15128102dvlprm','1569370XBCxNk','275buMPfl','83320GWrsgC','103832plUfBR','7756254OXSnpk','612ipFarx','14264iAWXft','9xLbUpP','814732kGqjEg'];a291_0x3ea6=function(){return _0x3c6ddb;};return a291_0x3ea6();}
@@ -1 +1 @@
1
- (function(_0x4907fb,_0x46dc9d){var _0x2bc4e4=a292_0x234b,_0x20474f=_0x4907fb();while(!![]){try{var _0x46e1fb=-parseInt(_0x2bc4e4(0x10f))/0x1+parseInt(_0x2bc4e4(0x110))/0x2*(parseInt(_0x2bc4e4(0x10e))/0x3)+-parseInt(_0x2bc4e4(0x113))/0x4+-parseInt(_0x2bc4e4(0x115))/0x5*(parseInt(_0x2bc4e4(0x10d))/0x6)+-parseInt(_0x2bc4e4(0x111))/0x7*(-parseInt(_0x2bc4e4(0x112))/0x8)+parseInt(_0x2bc4e4(0x10c))/0x9*(parseInt(_0x2bc4e4(0x114))/0xa)+parseInt(_0x2bc4e4(0x116))/0xb;if(_0x46e1fb===_0x46dc9d)break;else _0x20474f['push'](_0x20474f['shift']());}catch(_0x1735a1){_0x20474f['push'](_0x20474f['shift']());}}}(a292_0x32ab,0x74712));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a292_0x234b(_0x56bc9d,_0x39e3d5){_0x56bc9d=_0x56bc9d-0x10c;var _0x32ab04=a292_0x32ab();var _0x234b9c=_0x32ab04[_0x56bc9d];return _0x234b9c;}function a292_0x32ab(){var _0x55849c=['683046DwiUGC','2iFMeNl','49KHFEer','260904ZOkIHz','2728388KQyXpe','12270ZKXEhw','1996925RERTpX','10007701PQcEMF','6543mFUkYF','12loVhKN','1832244RARdzi'];a292_0x32ab=function(){return _0x55849c;};return a292_0x32ab();}export async function withActiveCookie(_0x3d7aa4,_0x12ca0d){setActiveCookie(_0x3d7aa4);try{return await _0x12ca0d();}finally{clearActiveCookie();}}
1
+ (function(_0x2b829e,_0x1f9f38){var _0x3c4fbd=a292_0x3bfb,_0x34e844=_0x2b829e();while(!![]){try{var _0x276338=-parseInt(_0x3c4fbd(0xe6))/0x1+-parseInt(_0x3c4fbd(0xe7))/0x2*(-parseInt(_0x3c4fbd(0xe1))/0x3)+-parseInt(_0x3c4fbd(0xe2))/0x4*(parseInt(_0x3c4fbd(0xe3))/0x5)+-parseInt(_0x3c4fbd(0xe9))/0x6+parseInt(_0x3c4fbd(0xe0))/0x7*(parseInt(_0x3c4fbd(0xe5))/0x8)+-parseInt(_0x3c4fbd(0xe4))/0x9*(-parseInt(_0x3c4fbd(0xe8))/0xa)+parseInt(_0x3c4fbd(0xdf))/0xb;if(_0x276338===_0x1f9f38)break;else _0x34e844['push'](_0x34e844['shift']());}catch(_0x3ef826){_0x34e844['push'](_0x34e844['shift']());}}}(a292_0x573d,0x4c2e1));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4745d0,_0x4c1d9b){setActiveCookie(_0x4745d0);try{return await _0x4c1d9b();}finally{clearActiveCookie();}}function a292_0x3bfb(_0x2c7583,_0x573fb9){_0x2c7583=_0x2c7583-0xdf;var _0x573d35=a292_0x573d();var _0x3bfb3e=_0x573d35[_0x2c7583];return _0x3bfb3e;}function a292_0x573d(){var _0x216e04=['4JTCoMG','1505320fbTEED','5715YsykkS','9752kVoHJD','339619NFBOdU','71490IJgvoZ','1010VTbszk','1234740yYoEyz','10201455FZPTXj','343bwqTbr','9CPcBud'];a292_0x573d=function(){return _0x216e04;};return a292_0x573d();}
@@ -1 +1 @@
1
- function a293_0x11ae(_0x558fb1,_0x3047c8){_0x558fb1=_0x558fb1-0xc8;var _0xb1c025=a293_0xb1c0();var _0x11aec7=_0xb1c025[_0x558fb1];return _0x11aec7;}(function(_0x32e51d,_0x7e3f1b){var _0x95cf88=a293_0x11ae,_0x2f72a4=_0x32e51d();while(!![]){try{var _0x230e71=-parseInt(_0x95cf88(0xd0))/0x1+parseInt(_0x95cf88(0xc9))/0x2+parseInt(_0x95cf88(0xd1))/0x3+-parseInt(_0x95cf88(0xc8))/0x4*(parseInt(_0x95cf88(0xce))/0x5)+-parseInt(_0x95cf88(0xca))/0x6+-parseInt(_0x95cf88(0xcb))/0x7*(-parseInt(_0x95cf88(0xcf))/0x8)+parseInt(_0x95cf88(0xcc))/0x9*(parseInt(_0x95cf88(0xcd))/0xa);if(_0x230e71===_0x7e3f1b)break;else _0x2f72a4['push'](_0x2f72a4['shift']());}catch(_0x1c2831){_0x2f72a4['push'](_0x2f72a4['shift']());}}}(a293_0xb1c0,0x33de3));export function writeCliSideChannelLine(_0x258c28){var _0x412128=a293_0x11ae;process[_0x412128(0xd2)]['write'](_0x258c28+'\x0a');}function a293_0xb1c0(){var _0xaf931d=['2101098wzVuds','7bvPhes','9qLhafz','5970320KqarZF','15EFCUVv','1729688xbxmdi','347213ibKxol','363750VtTvjI','stderr','157068prpXMz','186310nXPdBW'];a293_0xb1c0=function(){return _0xaf931d;};return a293_0xb1c0();}
1
+ (function(_0x2b8a2a,_0x35a378){var _0x315099=a293_0x5d2d,_0x255da4=_0x2b8a2a();while(!![]){try{var _0x112e6d=-parseInt(_0x315099(0x141))/0x1+-parseInt(_0x315099(0x13e))/0x2*(-parseInt(_0x315099(0x138))/0x3)+parseInt(_0x315099(0x139))/0x4*(-parseInt(_0x315099(0x13d))/0x5)+-parseInt(_0x315099(0x140))/0x6+-parseInt(_0x315099(0x13a))/0x7*(parseInt(_0x315099(0x144))/0x8)+parseInt(_0x315099(0x13f))/0x9*(-parseInt(_0x315099(0x145))/0xa)+-parseInt(_0x315099(0x13c))/0xb*(-parseInt(_0x315099(0x143))/0xc);if(_0x112e6d===_0x35a378)break;else _0x255da4['push'](_0x255da4['shift']());}catch(_0x145b99){_0x255da4['push'](_0x255da4['shift']());}}}(a293_0x4846,0xc7c96));function a293_0x4846(){var _0x320a16=['135uJRpGs','3871218IOocYC','1287463EzBrgi','stderr','1195608iCvIdP','8696816BIKmFt','769430TgZXTJ','1119KATbIj','328wgeXpo','7zOuzqs','write','649jTiwsf','90675xeaKdi','3222SyzuUy'];a293_0x4846=function(){return _0x320a16;};return a293_0x4846();}function a293_0x5d2d(_0x5e6df4,_0x45b443){_0x5e6df4=_0x5e6df4-0x138;var _0x484675=a293_0x4846();var _0x5d2d65=_0x484675[_0x5e6df4];return _0x5d2d65;}export function writeCliSideChannelLine(_0x1e882d){var _0x7d3fda=a293_0x5d2d;process[_0x7d3fda(0x142)][_0x7d3fda(0x13b)](_0x1e882d+'\x0a');}