@lovrabet/rabetbase-cli 2.3.7-beta.1 → 2.3.7-beta.3

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 (243) 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/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.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 -0
  79. package/lib/commands/db/analyze-batch-plan.js +1 -0
  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/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/page/generate-start.js +1 -1
  115. package/lib/commands/page/generate-status.js +1 -1
  116. package/lib/commands/page/index.js +1 -1
  117. package/lib/commands/page/pull.js +1 -1
  118. package/lib/commands/page/push.js +1 -1
  119. package/lib/commands/page/relation-audit.js +1 -1
  120. package/lib/commands/page/shared.js +1 -1
  121. package/lib/commands/page/standard-page-status.js +1 -1
  122. package/lib/commands/page/sync.js +1 -1
  123. package/lib/commands/permit/index.js +1 -1
  124. package/lib/commands/permit/page-get.js +1 -1
  125. package/lib/commands/permit/page-set.js +1 -1
  126. package/lib/commands/permit/role-apis-set.js +1 -1
  127. package/lib/commands/permit/role-menus-set.js +1 -1
  128. package/lib/commands/permit/role-menus.js +1 -1
  129. package/lib/commands/permit/shared.js +1 -1
  130. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  131. package/lib/commands/project/create/format-elapsed.js +1 -1
  132. package/lib/commands/project/create/main.js +1 -1
  133. package/lib/commands/project/create/non-interactive.js +1 -1
  134. package/lib/commands/project/create/project-template-path.js +1 -1
  135. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  136. package/lib/commands/project/create/use-format-code.js +1 -1
  137. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  138. package/lib/commands/project/index.js +1 -1
  139. package/lib/commands/project/init.js +1 -1
  140. package/lib/commands/project/upgrade.js +1 -1
  141. package/lib/commands/registry.js +1 -1
  142. package/lib/commands/role/create.js +1 -1
  143. package/lib/commands/role/delete.js +1 -1
  144. package/lib/commands/role/detail.js +1 -1
  145. package/lib/commands/role/index.js +1 -1
  146. package/lib/commands/role/list.js +1 -1
  147. package/lib/commands/role/shared.js +1 -1
  148. package/lib/commands/role/update.js +1 -1
  149. package/lib/commands/role/user-add.js +1 -1
  150. package/lib/commands/role/user-remove.js +1 -1
  151. package/lib/commands/role/user-resolve.js +1 -1
  152. package/lib/commands/run/index.js +1 -1
  153. package/lib/commands/schema.js +1 -1
  154. package/lib/commands/sql/create.js +1 -1
  155. package/lib/commands/sql/delete.js +1 -1
  156. package/lib/commands/sql/detail.js +1 -1
  157. package/lib/commands/sql/exec.js +1 -1
  158. package/lib/commands/sql/index.js +1 -1
  159. package/lib/commands/sql/list.js +1 -1
  160. package/lib/commands/sql/pull.js +1 -1
  161. package/lib/commands/sql/push.js +1 -1
  162. package/lib/commands/sql/save.js +1 -1
  163. package/lib/commands/sql/shared.js +1 -1
  164. package/lib/commands/sql/status.js +1 -1
  165. package/lib/commands/sql/validate.js +1 -1
  166. package/lib/commands/workspace/add.js +1 -1
  167. package/lib/commands/workspace/index.js +1 -1
  168. package/lib/commands/workspace/remove.js +1 -1
  169. package/lib/config/schema.js +1 -1
  170. package/lib/constant/cdn.js +1 -1
  171. package/lib/constant/cli.js +1 -1
  172. package/lib/constant/defaults.js +1 -1
  173. package/lib/constant/domain.js +1 -1
  174. package/lib/constant/env.js +1 -1
  175. package/lib/constant/output.js +1 -1
  176. package/lib/constant/paths.js +1 -1
  177. package/lib/constant/risk.js +1 -1
  178. package/lib/context/app-resolver.js +1 -1
  179. package/lib/context/auth-resolver.js +1 -1
  180. package/lib/context/config-loader.js +1 -1
  181. package/lib/context.js +1 -1
  182. package/lib/core/alias-resolver.js +1 -1
  183. package/lib/core/api-client.js +1 -1
  184. package/lib/core/bff/config.js +1 -1
  185. package/lib/core/bff/file-system.js +1 -1
  186. package/lib/core/bff/hash.js +1 -1
  187. package/lib/core/bff/lock.js +1 -1
  188. package/lib/core/bff/utils.js +1 -1
  189. package/lib/core/db-resolver.js +1 -1
  190. package/lib/core/page/file-system.js +1 -1
  191. package/lib/core/page/hash.js +1 -1
  192. package/lib/core/page/lock.js +1 -1
  193. package/lib/core/sql-sync/config.js +1 -1
  194. package/lib/core/sql-sync/file-system.js +1 -1
  195. package/lib/core/sql-sync/hash.js +1 -1
  196. package/lib/core/sql-sync/lock.js +1 -1
  197. package/lib/core/sql-sync/utils.js +1 -1
  198. package/lib/core/sql-validator.js +1 -1
  199. package/lib/errors.js +1 -1
  200. package/lib/framework/build-all-flags.js +1 -1
  201. package/lib/framework/flags.js +1 -1
  202. package/lib/framework/help.js +1 -1
  203. package/lib/framework/index.js +1 -1
  204. package/lib/framework/output.js +1 -1
  205. package/lib/framework/response.js +1 -1
  206. package/lib/framework/runner-alias.js +1 -1
  207. package/lib/framework/runner.js +1 -1
  208. package/lib/framework/schema-export.js +1 -1
  209. package/lib/framework/types.js +1 -1
  210. package/lib/generated/build-info.js +1 -1
  211. package/lib/help.js +1 -1
  212. package/lib/skills/main.js +1 -1
  213. package/lib/skills/npx-skills-add.js +1 -1
  214. package/lib/telemetry/cli-command-trace.js +1 -1
  215. package/lib/telemetry/cli-help-trace.js +1 -1
  216. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  217. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  218. package/lib/telemetry/send-cli-trace-log.js +1 -1
  219. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  220. package/lib/utils/ai_config.js +1 -1
  221. package/lib/utils/apply-jq-filter.js +1 -1
  222. package/lib/utils/cdn-config.js +1 -1
  223. package/lib/utils/check-sdk-version.js +1 -1
  224. package/lib/utils/cli-version-check.js +1 -1
  225. package/lib/utils/cli-version-policy.js +1 -1
  226. package/lib/utils/config.js +1 -1
  227. package/lib/utils/copy-directory.js +1 -1
  228. package/lib/utils/entity-with-id.js +1 -1
  229. package/lib/utils/file-utils.js +1 -1
  230. package/lib/utils/guides-cdn.js +1 -1
  231. package/lib/utils/http-client.js +1 -1
  232. package/lib/utils/is-non-interactive.js +1 -1
  233. package/lib/utils/logger.js +1 -1
  234. package/lib/utils/params.js +1 -1
  235. package/lib/utils/platform.js +1 -1
  236. package/lib/utils/rules-cdn.js +1 -1
  237. package/lib/utils/sleep.js +1 -1
  238. package/lib/utils/template-replacer.js +1 -1
  239. package/lib/utils/update-notice.js +1 -1
  240. package/lib/utils/version.js +1 -1
  241. package/lib/utils/with-active-cookie.js +1 -1
  242. package/lib/utils/write-cli-side-channel.js +1 -1
  243. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x2f339b,_0x58f30f){const _0x383b7c=a223_0x40f6,_0x3f96ee=_0x2f339b();while(!![]){try{const _0x47aeab=parseInt(_0x383b7c(0xfd))/0x1*(parseInt(_0x383b7c(0xfb))/0x2)+parseInt(_0x383b7c(0xfe))/0x3+-parseInt(_0x383b7c(0xfc))/0x4*(parseInt(_0x383b7c(0xfa))/0x5)+-parseInt(_0x383b7c(0x101))/0x6*(-parseInt(_0x383b7c(0x100))/0x7)+parseInt(_0x383b7c(0xf7))/0x8*(-parseInt(_0x383b7c(0xf8))/0x9)+-parseInt(_0x383b7c(0xf9))/0xa+-parseInt(_0x383b7c(0xff))/0xb;if(_0x47aeab===_0x58f30f)break;else _0x3f96ee['push'](_0x3f96ee['shift']());}catch(_0x20dc7c){_0x3f96ee['push'](_0x3f96ee['shift']());}}}(a223_0x30c4,0x9d733));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a223_0x40f6(_0x5a8362,_0x1c75d){_0x5a8362=_0x5a8362-0xf7;const _0x30c435=a223_0x30c4();let _0x40f63d=_0x30c435[_0x5a8362];return _0x40f63d;}function a223_0x30c4(){const _0x114cec=['164764RdsuZk','86oIpVOq','2746455TqnnbG','5130719GVshol','4879pyUurc','10578ewJDjO','457304ccBppZ','180uWjLKR','1426570tzRaUu','65MWWIVK','18336MoxNjo'];a223_0x30c4=function(){return _0x114cec;};return a223_0x30c4();}
1
+ (function(_0x186dd6,_0x235f81){const _0x46111b=a225_0x145b,_0x29ea58=_0x186dd6();while(!![]){try{const _0x520597=parseInt(_0x46111b(0x13f))/0x1+parseInt(_0x46111b(0x136))/0x2*(parseInt(_0x46111b(0x13e))/0x3)+-parseInt(_0x46111b(0x13c))/0x4+parseInt(_0x46111b(0x13a))/0x5*(parseInt(_0x46111b(0x138))/0x6)+-parseInt(_0x46111b(0x137))/0x7*(-parseInt(_0x46111b(0x13d))/0x8)+-parseInt(_0x46111b(0x140))/0x9+-parseInt(_0x46111b(0x139))/0xa*(-parseInt(_0x46111b(0x13b))/0xb);if(_0x520597===_0x235f81)break;else _0x29ea58['push'](_0x29ea58['shift']());}catch(_0x14b324){_0x29ea58['push'](_0x29ea58['shift']());}}}(a225_0x55be,0x29de6));function a225_0x145b(_0x44766e,_0x12ea12){_0x44766e=_0x44766e-0x136;const _0x55bee6=a225_0x55be();let _0x145bba=_0x55bee6[_0x44766e];return _0x145bba;}function a225_0x55be(){const _0x318f1b=['956312VfSxgi','216056NnHpPW','132nwZYQD','30478lZdZgz','1363905yPdUAC','1846TuWSAz','7AmMZRN','79068YqSlkF','2136380ojFEMH','95PTXDfY','11VxEmWk'];a225_0x55be=function(){return _0x318f1b;};return a225_0x55be();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x4c33d6,_0x3b9176){const _0xddbfb9=a224_0x1273,_0x30d14d=_0x4c33d6();while(!![]){try{const _0x4aab61=-parseInt(_0xddbfb9(0x87))/0x1*(parseInt(_0xddbfb9(0x8b))/0x2)+parseInt(_0xddbfb9(0x89))/0x3+-parseInt(_0xddbfb9(0x8d))/0x4+parseInt(_0xddbfb9(0x91))/0x5*(-parseInt(_0xddbfb9(0x86))/0x6)+parseInt(_0xddbfb9(0x88))/0x7*(parseInt(_0xddbfb9(0x92))/0x8)+-parseInt(_0xddbfb9(0x85))/0x9+parseInt(_0xddbfb9(0x8e))/0xa;if(_0x4aab61===_0x3b9176)break;else _0x30d14d['push'](_0x30d14d['shift']());}catch(_0x1b46e1){_0x30d14d['push'](_0x30d14d['shift']());}}}(a224_0x3bfe,0x32dfe));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x1c99e4=a224_0x1273,_0x4a96e2=getTemplateBaseUrl(),_0x11f507=[_0x4a96e2+_0x1c99e4(0x8c),_0x4a96e2+_0x1c99e4(0x8f)];for(const _0x510281 of _0x11f507){try{const _0x5da421=await fetch(_0x510281,{'headers':{'Accept':'application/json'}});if(!_0x5da421['ok'])continue;const _0x3e5a79=await _0x5da421['json']();if(!_0x3e5a79['cli']?.[_0x1c99e4(0x8a)]||!_0x3e5a79[_0x1c99e4(0x93)]?.[_0x1c99e4(0x84)]?.[_0x1c99e4(0x8a)])continue;return _0x3e5a79;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x12aa2b=a224_0x1273,_0x327155=Date[_0x12aa2b(0x90)]();if(hasCachedConfig){const _0x2807c1=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x327155-cacheTime<_0x2807c1)return cachedConfig;}const _0x5a5003=await fetchCdnConfig();return cachedConfig=_0x5a5003,cacheTime=_0x327155,hasCachedConfig=!![],_0x5a5003;}function a224_0x1273(_0x3a4f85,_0x501a13){_0x3a4f85=_0x3a4f85-0x84;const _0x3bfec7=a224_0x3bfe();let _0x1273d9=_0x3bfec7[_0x3a4f85];return _0x1273d9;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a224_0x3bfe(){const _0x2771a7=['/config.json','1132192zWxwaw','4950460qbLAEY','/config/index.json','now','5ngBFhC','2588552ftQOFs','sdk','node','1542231VreLif','2159922FsdMie','2HXFftB','7gBKUmw','783711eMrUwH','stableVersion','57076uIRGvn'];a224_0x3bfe=function(){return _0x2771a7;};return a224_0x3bfe();}
1
+ (function(_0x17c8c1,_0x50f58e){const _0x495e47=a226_0x41ef,_0x58d76e=_0x17c8c1();while(!![]){try{const _0x4b45cf=parseInt(_0x495e47(0x19e))/0x1*(parseInt(_0x495e47(0x196))/0x2)+-parseInt(_0x495e47(0x190))/0x3*(parseInt(_0x495e47(0x195))/0x4)+parseInt(_0x495e47(0x19b))/0x5*(parseInt(_0x495e47(0x194))/0x6)+parseInt(_0x495e47(0x192))/0x7*(-parseInt(_0x495e47(0x193))/0x8)+parseInt(_0x495e47(0x1a1))/0x9*(-parseInt(_0x495e47(0x19d))/0xa)+parseInt(_0x495e47(0x197))/0xb*(-parseInt(_0x495e47(0x18c))/0xc)+-parseInt(_0x495e47(0x191))/0xd*(-parseInt(_0x495e47(0x18f))/0xe);if(_0x4b45cf===_0x50f58e)break;else _0x58d76e['push'](_0x58d76e['shift']());}catch(_0x412776){_0x58d76e['push'](_0x58d76e['shift']());}}}(a226_0x30f8,0x4f102));import{getTemplateBaseUrl}from'../utils/config.js';function a226_0x41ef(_0x1a1f8b,_0xe32499){_0x1a1f8b=_0x1a1f8b-0x18c;const _0x30f8d9=a226_0x30f8();let _0x41ef38=_0x30f8d9[_0x1a1f8b];return _0x41ef38;}export async function fetchCdnConfig(){const _0x27a7fc=a226_0x41ef,_0x4d3355=getTemplateBaseUrl(),_0x571a8f=[_0x4d3355+_0x27a7fc(0x19f),_0x4d3355+_0x27a7fc(0x18d)];for(const _0x12cdeb of _0x571a8f){try{const _0x2616a1=await fetch(_0x12cdeb,{'headers':{'Accept':_0x27a7fc(0x18e)}});if(!_0x2616a1['ok'])continue;const _0x5ea0fb=await _0x2616a1[_0x27a7fc(0x199)]();if(!_0x5ea0fb[_0x27a7fc(0x19a)]?.[_0x27a7fc(0x19c)]||!_0x5ea0fb[_0x27a7fc(0x198)]?.[_0x27a7fc(0x1a0)]?.['stableVersion'])continue;return _0x5ea0fb;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a226_0x30f8(){const _0x433af4=['1852nubkJB','479328xYNWtx','11kvmLnf','sdk','json','cli','1239790AgTTEN','stableVersion','3190060QRTUsM','1RhiirR','/config.json','node','9iqPLCE','3614196VJPJfD','/config/index.json','application/json','8393196cPRldk','246pjpuYT','13LvNHhm','7VhzZIk','841112pNbmiC','6LeNkdQ'];a226_0x30f8=function(){return _0x433af4;};return a226_0x30f8();}let hasCachedConfig=![];export async function getCdnConfig(){const _0x370ea4=Date['now']();if(hasCachedConfig){const _0x3d7d0c=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x370ea4-cacheTime<_0x3d7d0c)return cachedConfig;}const _0x3acb89=await fetchCdnConfig();return cachedConfig=_0x3acb89,cacheTime=_0x370ea4,hasCachedConfig=!![],_0x3acb89;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x23f294,_0x4297fc){const _0x38336e=a225_0x36cb,_0x42e0dd=_0x23f294();while(!![]){try{const _0x4196dd=parseInt(_0x38336e(0x188))/0x1*(parseInt(_0x38336e(0x17c))/0x2)+-parseInt(_0x38336e(0x172))/0x3+parseInt(_0x38336e(0x177))/0x4+-parseInt(_0x38336e(0x18d))/0x5+parseInt(_0x38336e(0x176))/0x6*(parseInt(_0x38336e(0x192))/0x7)+-parseInt(_0x38336e(0x183))/0x8*(parseInt(_0x38336e(0x18f))/0x9)+parseInt(_0x38336e(0x178))/0xa*(parseInt(_0x38336e(0x18b))/0xb);if(_0x4196dd===_0x4297fc)break;else _0x42e0dd['push'](_0x42e0dd['shift']());}catch(_0x2f4590){_0x42e0dd['push'](_0x42e0dd['shift']());}}}(a225_0x3871,0xc31fb));import a225_0x376156 from'node:fs';import a225_0x4cff74 from'node:path';function a225_0x3871(){const _0x46d6de=['packageName','988583EFmeLL','existsSync','package.json','55ryojDO','node','28540UOrGxu','\x1b[0m','747aNmCrv','stableVersion','sdk','1059779lrwYFg','coerce','log','↪\x20SDK\x20update\x20available','\x20\x20\x20Stable\x20version:\x20','utf8','version','some','3059691uYxHmM','node_modules','parse','npm\x20install\x20','60VkHNSl','2910384EQGGeS','113290eRxKtg','@lovrabet/sdk','join','test','2fozPYM','devDependencies','\x1b[1m','dependencies','\x20\x20\x20Current\x20version:\x20','needsUpgrade','\x1b[33m','140912HhNnxO','latest','all','readFileSync'];a225_0x3871=function(){return _0x46d6de;};return a225_0x3871();}import a225_0x7c4827 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x1d10b3){const _0x319988=a225_0x36cb,_0xb61a21=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xb61a21[_0x319988(0x171)](_0x2bea6e=>_0x2bea6e[_0x319988(0x17b)](_0x1d10b3));}function getInstalledVersion(_0x3abbea,_0x5d0da5){const _0x47823=a225_0x36cb;try{const _0x1605d0=a225_0x4cff74[_0x47823(0x17a)](_0x3abbea,_0x47823(0x173),_0x5d0da5,_0x47823(0x18a));if(a225_0x376156[_0x47823(0x189)](_0x1605d0)){const _0x858067=JSON[_0x47823(0x174)](a225_0x376156['readFileSync'](_0x1605d0,'utf-8'));return _0x858067[_0x47823(0x170)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1bcb08=a225_0x36cb;try{const _0x389b96=await getCdnConfig();return _0x389b96?.[_0x1bcb08(0x191)]?.[_0x1bcb08(0x18c)]?.[_0x1bcb08(0x190)]||null;}catch{return null;}}function a225_0x36cb(_0x2851ef,_0xc3d913){_0x2851ef=_0x2851ef-0x16b;const _0x3871c6=a225_0x3871();let _0x36cbd4=_0x3871c6[_0x2851ef];return _0x36cbd4;}async function getSdkPackageName(){const _0x10a151=a225_0x36cb;try{const _0x249948=await getCdnConfig();return _0x249948?.[_0x10a151(0x191)]?.['node']?.[_0x10a151(0x187)]||_0x10a151(0x179);}catch{return _0x10a151(0x179);}}export async function checkSdkVersion(_0x3e8f0b){const _0x2d7680=a225_0x36cb,_0x207603=a225_0x4cff74[_0x2d7680(0x17a)](_0x3e8f0b,_0x2d7680(0x18a)),[_0x4deb63,_0x155c0e]=await Promise[_0x2d7680(0x185)]([getSdkStableVersion(),getSdkPackageName()]),_0x56b1b1=_0x4deb63||FALLBACK_MIN_SDK_VERSION;if(!a225_0x376156[_0x2d7680(0x189)](_0x207603))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};try{const _0xbc330c=JSON[_0x2d7680(0x174)](a225_0x376156[_0x2d7680(0x186)](_0x207603,_0x2d7680(0x16f))),_0x368068=_0xbc330c[_0x2d7680(0x17f)]||{},_0x2b3934=_0xbc330c['devDependencies']||{},_0x2f893d=_0x368068[_0x155c0e]||_0x2b3934[_0x155c0e];if(!_0x2f893d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};let _0x45583b=getInstalledVersion(_0x3e8f0b,_0x155c0e);!_0x45583b&&(_0x45583b=_0x2f893d);if(isNonNumericVersion(_0x2f893d))return{'installed':!![],'version':_0x45583b,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};const _0x51417a=a225_0x7c4827['coerce'](_0x45583b),_0x2bd2fa=a225_0x7c4827['coerce'](_0x56b1b1),_0x102ae9=_0x51417a&&_0x2bd2fa?a225_0x7c4827['lt'](_0x51417a,_0x2bd2fa):![];return{'installed':!![],'version':_0x45583b,'needsUpgrade':_0x102ae9,'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56b1b1,'packageName':_0x155c0e,'stableVersion':_0x4deb63};}}export function checkSdkVersionSync(_0x50324d){const _0x342558=a225_0x36cb,_0x1131bc=a225_0x4cff74[_0x342558(0x17a)](_0x50324d,_0x342558(0x18a)),_0x1d0db4='@lovrabet/sdk';if(!a225_0x376156['existsSync'](_0x1131bc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};try{const _0x267035=JSON['parse'](a225_0x376156[_0x342558(0x186)](_0x1131bc,_0x342558(0x16f))),_0x48d9a0=_0x267035[_0x342558(0x17f)]||{},_0x3a1389=_0x267035[_0x342558(0x17d)]||{},_0x9ff16f=_0x48d9a0[_0x1d0db4]||_0x3a1389[_0x1d0db4];if(!_0x9ff16f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};let _0x40e2bf=getInstalledVersion(_0x50324d,_0x1d0db4);!_0x40e2bf&&(_0x40e2bf=_0x9ff16f);if(isNonNumericVersion(_0x9ff16f))return{'installed':!![],'version':_0x40e2bf,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};const _0x1e65c8=a225_0x7c4827[_0x342558(0x16b)](_0x40e2bf),_0x543cae=_0x1e65c8?a225_0x7c4827['lt'](_0x1e65c8,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x40e2bf,'needsUpgrade':_0x543cae,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1d0db4,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x52dc40){const _0x4042b8=a225_0x36cb;if(!_0x52dc40[_0x4042b8(0x181)])return;const _0x1e4e30=_0x4042b8(0x182),_0x48564e=_0x4042b8(0x18e),_0x353f26=_0x4042b8(0x17e),_0x482a00=_0x52dc40[_0x4042b8(0x187)]||_0x4042b8(0x179),_0xd44e2e=_0x52dc40[_0x4042b8(0x190)]||_0x52dc40['minVersion'],_0x3f0cbd=_0x4042b8(0x175)+_0x482a00+'@'+(_0xd44e2e||_0x4042b8(0x184));console[_0x4042b8(0x16c)](),console[_0x4042b8(0x16c)](''+_0x1e4e30+_0x353f26+_0x4042b8(0x16d)+_0x48564e),console['log'](_0x1e4e30+_0x4042b8(0x180)+_0x482a00+'@'+_0x52dc40[_0x4042b8(0x170)]+_0x48564e),console['log'](_0x1e4e30+_0x4042b8(0x16e)+_0xd44e2e+_0x48564e),console['log'](_0x1e4e30+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3f0cbd+_0x48564e),console[_0x4042b8(0x16c)]();}
1
+ (function(_0x3ae222,_0x4df72f){const _0x24328a=a227_0x5977,_0x5e4db4=_0x3ae222();while(!![]){try{const _0x467341=parseInt(_0x24328a(0x121))/0x1*(parseInt(_0x24328a(0x114))/0x2)+parseInt(_0x24328a(0x117))/0x3+-parseInt(_0x24328a(0x129))/0x4*(parseInt(_0x24328a(0x116))/0x5)+parseInt(_0x24328a(0x10c))/0x6*(-parseInt(_0x24328a(0x125))/0x7)+-parseInt(_0x24328a(0x118))/0x8+parseInt(_0x24328a(0x10e))/0x9+-parseInt(_0x24328a(0x10b))/0xa*(-parseInt(_0x24328a(0x10d))/0xb);if(_0x467341===_0x4df72f)break;else _0x5e4db4['push'](_0x5e4db4['shift']());}catch(_0x5de3e0){_0x5e4db4['push'](_0x5e4db4['shift']());}}}(a227_0x374f,0xbe1ef));import a227_0x2544af from'node:fs';function a227_0x5977(_0xe2e6,_0x32cf87){_0xe2e6=_0xe2e6-0x109;const _0x374f41=a227_0x374f();let _0x5977a1=_0x374f41[_0xe2e6];return _0x5977a1;}import a227_0x4c4b2b from'node:path';import a227_0x1bf443 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0xd041b6){const _0x4756ff=a227_0x5977,_0x4d2f4d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4d2f4d[_0x4756ff(0x128)](_0x515183=>_0x515183[_0x4756ff(0x12a)](_0xd041b6));}function getInstalledVersion(_0x363cc0,_0x161f9d){const _0x5f0fae=a227_0x5977;try{const _0x306adb=a227_0x4c4b2b[_0x5f0fae(0x124)](_0x363cc0,_0x5f0fae(0x12c),_0x161f9d,'package.json');if(a227_0x2544af[_0x5f0fae(0x110)](_0x306adb)){const _0x444718=JSON[_0x5f0fae(0x126)](a227_0x2544af[_0x5f0fae(0x11e)](_0x306adb,_0x5f0fae(0x10a)));return _0x444718[_0x5f0fae(0x12b)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x47d3f3=a227_0x5977;try{const _0x792b3=await getCdnConfig();return _0x792b3?.[_0x47d3f3(0x115)]?.['node']?.[_0x47d3f3(0x120)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x533ee0=a227_0x5977;try{const _0x2606e9=await getCdnConfig();return _0x2606e9?.['sdk']?.['node']?.['packageName']||'@lovrabet/sdk';}catch{return _0x533ee0(0x11b);}}export async function checkSdkVersion(_0x3f6364){const _0x527ce8=a227_0x5977,_0x5c9d63=a227_0x4c4b2b[_0x527ce8(0x124)](_0x3f6364,_0x527ce8(0x127)),[_0x424f25,_0x7558c1]=await Promise[_0x527ce8(0x11a)]([getSdkStableVersion(),getSdkPackageName()]),_0x278906=_0x424f25||FALLBACK_MIN_SDK_VERSION;if(!a227_0x2544af[_0x527ce8(0x110)](_0x5c9d63))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};try{const _0x4048a3=JSON[_0x527ce8(0x126)](a227_0x2544af[_0x527ce8(0x11e)](_0x5c9d63,_0x527ce8(0x11f))),_0x34c96e=_0x4048a3['dependencies']||{},_0x14d8ef=_0x4048a3['devDependencies']||{},_0x4e5a9e=_0x34c96e[_0x7558c1]||_0x14d8ef[_0x7558c1];if(!_0x4e5a9e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};let _0x559687=getInstalledVersion(_0x3f6364,_0x7558c1);!_0x559687&&(_0x559687=_0x4e5a9e);if(isNonNumericVersion(_0x4e5a9e))return{'installed':!![],'version':_0x559687,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};const _0x28947a=a227_0x1bf443['coerce'](_0x559687),_0x5e0255=a227_0x1bf443[_0x527ce8(0x11d)](_0x278906),_0x581749=_0x28947a&&_0x5e0255?a227_0x1bf443['lt'](_0x28947a,_0x5e0255):![];return{'installed':!![],'version':_0x559687,'needsUpgrade':_0x581749,'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x278906,'packageName':_0x7558c1,'stableVersion':_0x424f25};}}function a227_0x374f(){const _0x436549=['all','@lovrabet/sdk','packageName','coerce','readFileSync','utf8','stableVersion','64544wAhilJ','minVersion','needsUpgrade','join','5316997btcNMJ','parse','package.json','some','1759684wUISFg','test','version','node_modules','dependencies','log','utf-8','1547270JYWjXI','12slAhnx','154frxRQD','3140460gBCUKc','latest','existsSync','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20version:\x20','46RFTRBm','sdk','15oftdBt','103524YgMgWS','3331984HnYgwj','\x1b[1m'];a227_0x374f=function(){return _0x436549;};return a227_0x374f();}export function checkSdkVersionSync(_0x21293c){const _0x219a54=a227_0x5977,_0x2fe004=a227_0x4c4b2b['join'](_0x21293c,_0x219a54(0x127)),_0x18396f=_0x219a54(0x11b);if(!a227_0x2544af['existsSync'](_0x2fe004))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};try{const _0x19675a=JSON[_0x219a54(0x126)](a227_0x2544af[_0x219a54(0x11e)](_0x2fe004,_0x219a54(0x11f))),_0x4774a5=_0x19675a[_0x219a54(0x12d)]||{},_0x5715e2=_0x19675a['devDependencies']||{},_0x234add=_0x4774a5[_0x18396f]||_0x5715e2[_0x18396f];if(!_0x234add)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};let _0x2ffddd=getInstalledVersion(_0x21293c,_0x18396f);!_0x2ffddd&&(_0x2ffddd=_0x234add);if(isNonNumericVersion(_0x234add))return{'installed':!![],'version':_0x2ffddd,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};const _0x16101a=a227_0x1bf443[_0x219a54(0x11d)](_0x2ffddd),_0x44d836=_0x16101a?a227_0x1bf443['lt'](_0x16101a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2ffddd,'needsUpgrade':_0x44d836,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x18396f,'stableVersion':null};}}export function printSdkUpgradeWarning(_0xf19b9f){const _0xaa939e=a227_0x5977;if(!_0xf19b9f[_0xaa939e(0x123)])return;const _0x2f68cd='\x1b[33m',_0x5e911f='\x1b[0m',_0x78b0d5=_0xaa939e(0x119),_0x51aefa=_0xf19b9f[_0xaa939e(0x11c)]||_0xaa939e(0x11b),_0x515a0e=_0xf19b9f['stableVersion']||_0xf19b9f[_0xaa939e(0x122)],_0x36d20b='npm\x20install\x20'+_0x51aefa+'@'+(_0x515a0e||_0xaa939e(0x10f));console[_0xaa939e(0x109)](),console['log'](''+_0x2f68cd+_0x78b0d5+'↪\x20SDK\x20update\x20available'+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x113)+_0x51aefa+'@'+_0xf19b9f[_0xaa939e(0x12b)]+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x111)+_0x515a0e+_0x5e911f),console[_0xaa939e(0x109)](_0x2f68cd+_0xaa939e(0x112)+_0x36d20b+_0x5e911f),console[_0xaa939e(0x109)]();}
@@ -1 +1 @@
1
- (function(_0x432ab8,_0x18c7a3){const _0x20004e=a226_0x477d,_0x39410a=_0x432ab8();while(!![]){try{const _0x352356=-parseInt(_0x20004e(0x10e))/0x1+-parseInt(_0x20004e(0x11f))/0x2+parseInt(_0x20004e(0x117))/0x3*(parseInt(_0x20004e(0x10f))/0x4)+-parseInt(_0x20004e(0x11a))/0x5*(-parseInt(_0x20004e(0x11e))/0x6)+parseInt(_0x20004e(0x134))/0x7*(-parseInt(_0x20004e(0x11b))/0x8)+-parseInt(_0x20004e(0x123))/0x9+parseInt(_0x20004e(0x127))/0xa;if(_0x352356===_0x18c7a3)break;else _0x39410a['push'](_0x39410a['shift']());}catch(_0x2c48df){_0x39410a['push'](_0x39410a['shift']());}}}(a226_0x1913,0x8d9b9));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';function a226_0x477d(_0x18f54a,_0x287314){_0x18f54a=_0x18f54a-0x10e;const _0x19138a=a226_0x1913();let _0x477d90=_0x19138a[_0x18f54a];return _0x477d90;}import{fileURLToPath}from'node:url';import a226_0x4cb3ca from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a226_0x1913(){const _0x43f9e7=['957990bsDUfm','4qAiUnU','coerce','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','package.json','\x1b[33m','log','\x20\x20\x20Stable\x20version:\x20','2642874XqlTDx','version','stableVersion','23240KVGtkq','11184QDvmKQ','\x20\x20\x20Upgrade\x20command:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','1428WstYfG','204482EztgFC','\x20\x20\x20Minimum\x20supported:\x20','join','currentVersion','9756738vcQSPf','npm\x20install\x20-g\x20','\x1b[31m','↪\x20Critical\x20CLI\x20upgrade\x20required','16192940pHiTUI','\x20\x20\x20','belowMinimum','needsUpgrade','minimumVersionMessage','1.0.0','validation','../..','upgradeMessage','↪\x20New\x20version\x20available','Current\x20version:\x20','filter','minimumVersion','4417tLUxpa'];a226_0x1913=function(){return _0x43f9e7;};return a226_0x1913();}export function getCliUpgradeCommand(_0x3cbc44){const _0x393064=a226_0x477d,_0x4aac9e=_0x3cbc44[_0x393064(0x119)]||'latest';return _0x393064(0x124)+NPM_PACKAGE_NAME+'@'+_0x4aac9e;}function getCurrentCliVersion(){const _0x236799=a226_0x477d;try{const _0x229ad3=fileURLToPath(import.meta.url),_0x4ba5f8=resolve(dirname(_0x229ad3),_0x236799(0x12e)),_0x47e0fa=resolve(_0x4ba5f8,_0x236799(0x113)),_0x13bcd8=JSON['parse'](readFileSync(_0x47e0fa,'utf-8'));return _0x13bcd8[_0x236799(0x118)]||_0x236799(0x12c);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x4c2dab=a226_0x477d,_0x2205ec=getCurrentCliVersion(),_0x57bc60=await getCliVersionPolicy(),_0x3018e0=_0x57bc60?.[_0x4c2dab(0x119)]||null,_0x1ea74f=_0x57bc60?.[_0x4c2dab(0x133)]||null;let _0x29a02a=![],_0x31e36e=![];const _0x5b2c5f=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x2205ec);if(_0x5b2c5f&&_0x3018e0)try{const _0x3275ff=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x3018e0);if(_0x3275ff)_0x29a02a=a226_0x4cb3ca['lt'](_0x5b2c5f,_0x3275ff);}catch{}if(_0x5b2c5f&&_0x1ea74f)try{const _0x1d0c42=a226_0x4cb3ca[_0x4c2dab(0x110)](_0x1ea74f);if(_0x1d0c42)_0x31e36e=a226_0x4cb3ca['lt'](_0x5b2c5f,_0x1d0c42);}catch{}return _0x31e36e&&(_0x29a02a=!![]),{'currentVersion':_0x2205ec,'stableVersion':_0x3018e0,'minimumVersion':_0x1ea74f,'needsUpgrade':_0x29a02a,'belowMinimum':_0x31e36e,'isPreRelease':![],'upgradeMessage':_0x57bc60?.[_0x4c2dab(0x12f)],'minimumVersionMessage':_0x57bc60?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x4abf71){const _0x49d8d3=a226_0x477d;if(!_0x4abf71[_0x49d8d3(0x12a)]&&!_0x4abf71[_0x49d8d3(0x129)])return;const _0x8b95c1=_0x49d8d3(0x125),_0x578dc1=_0x49d8d3(0x114),_0x48eb6c='\x1b[0m',_0x42f5ab=_0x49d8d3(0x111),_0x2de1f4=getCliUpgradeCommand(_0x4abf71);console[_0x49d8d3(0x115)](),_0x4abf71[_0x49d8d3(0x129)]?(console[_0x49d8d3(0x115)](''+_0x8b95c1+_0x42f5ab+_0x49d8d3(0x126)+_0x48eb6c),console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4abf71[_0x49d8d3(0x122)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x133)]&&console[_0x49d8d3(0x115)](_0x8b95c1+_0x49d8d3(0x120)+_0x4abf71[_0x49d8d3(0x133)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x119)]&&_0x4abf71[_0x49d8d3(0x119)]!==_0x4abf71['minimumVersion']&&console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4abf71['stableVersion']+_0x48eb6c),_0x4abf71[_0x49d8d3(0x12b)]&&console[_0x49d8d3(0x115)](_0x8b95c1+'\x20\x20\x20'+_0x4abf71['minimumVersionMessage']+_0x48eb6c),console[_0x49d8d3(0x115)](_0x8b95c1+_0x49d8d3(0x11c)+_0x2de1f4+_0x48eb6c)):(console[_0x49d8d3(0x115)](''+_0x578dc1+_0x42f5ab+_0x49d8d3(0x130)+_0x48eb6c),console['log'](_0x578dc1+_0x49d8d3(0x11d)+_0x4abf71[_0x49d8d3(0x122)]+_0x48eb6c),console[_0x49d8d3(0x115)](_0x578dc1+_0x49d8d3(0x116)+_0x4abf71[_0x49d8d3(0x119)]+_0x48eb6c),_0x4abf71[_0x49d8d3(0x12f)]&&console[_0x49d8d3(0x115)](_0x578dc1+_0x49d8d3(0x128)+_0x4abf71[_0x49d8d3(0x12f)]+_0x48eb6c),console['log'](_0x578dc1+_0x49d8d3(0x11c)+_0x2de1f4+_0x48eb6c)),console['log']();}export function assertCliVersionSupported(_0x79e72b){const _0x74a5c4=a226_0x477d;if(!_0x79e72b[_0x74a5c4(0x129)])return;const _0x3da853=[_0x79e72b[_0x74a5c4(0x12b)],_0x74a5c4(0x131)+_0x79e72b[_0x74a5c4(0x122)],_0x79e72b['minimumVersion']?'Minimum\x20supported:\x20'+_0x79e72b[_0x74a5c4(0x133)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x79e72b)][_0x74a5c4(0x132)](Boolean)[_0x74a5c4(0x121)]('\x0a');throw CliErrors[_0x74a5c4(0x12d)](_0x74a5c4(0x112),_0x3da853);}
1
+ (function(_0x2ca7c8,_0x30f7bc){const _0x4e3eb1=a228_0x46e7,_0x4b41cb=_0x2ca7c8();while(!![]){try{const _0x542a49=-parseInt(_0x4e3eb1(0x9c))/0x1*(parseInt(_0x4e3eb1(0x95))/0x2)+-parseInt(_0x4e3eb1(0xb6))/0x3+-parseInt(_0x4e3eb1(0x97))/0x4+parseInt(_0x4e3eb1(0xb1))/0x5*(-parseInt(_0x4e3eb1(0xad))/0x6)+-parseInt(_0x4e3eb1(0x93))/0x7+parseInt(_0x4e3eb1(0xa3))/0x8*(parseInt(_0x4e3eb1(0x99))/0x9)+parseInt(_0x4e3eb1(0xb2))/0xa;if(_0x542a49===_0x30f7bc)break;else _0x4b41cb['push'](_0x4b41cb['shift']());}catch(_0x1f9cf3){_0x4b41cb['push'](_0x4b41cb['shift']());}}}(a228_0xac41,0x2d809));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a228_0x26b608 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a228_0x46e7(_0x4859ea,_0x104dfd){_0x4859ea=_0x4859ea-0x93;const _0xac4115=a228_0xac41();let _0x46e701=_0xac4115[_0x4859ea];return _0x46e701;}function a228_0xac41(){const _0x2ebb85=['\x20\x20\x20Upgrade\x20command:\x20','759580jYXSCp','minimumVersion','156762xxlWrs','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Current\x20CLI\x20version:\x20','19nbJPIw','belowMinimum','package.json','↪\x20New\x20version\x20available','Minimum\x20supported:\x20','1.0.0','needsUpgrade','8GoGTuS','join','currentVersion','filter','upgradeMessage','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','minimumVersionMessage','Upgrade\x20command:\x20','stableVersion','658392czlNha','utf-8','coerce','validation','10QefFgF','9388780JUYiGg','\x20\x20\x20','latest','\x20\x20\x20Stable\x20version:\x20','412854YJiTmP','\x1b[33m','../..','\x1b[0m','403627xwBLRk','log','17398VdSHox'];a228_0xac41=function(){return _0x2ebb85;};return a228_0xac41();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x2f556b){const _0x3a9062=a228_0x46e7,_0x495654=_0x2f556b[_0x3a9062(0xac)]||_0x3a9062(0xb4);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x495654;}function getCurrentCliVersion(){const _0x24ce62=a228_0x46e7;try{const _0x5ae743=fileURLToPath(import.meta.url),_0x383e8d=resolve(dirname(_0x5ae743),_0x24ce62(0xb8)),_0x162f5e=resolve(_0x383e8d,_0x24ce62(0x9e)),_0x5e4f33=JSON['parse'](readFileSync(_0x162f5e,_0x24ce62(0xae)));return _0x5e4f33['version']||_0x24ce62(0xa1);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1f8e29=a228_0x46e7,_0x2e9450=getCurrentCliVersion(),_0x492250=await getCliVersionPolicy(),_0x3750e2=_0x492250?.['stableVersion']||null,_0x3edc91=_0x492250?.[_0x1f8e29(0x98)]||null;let _0x514624=![],_0xdf1578=![];const _0x36e4e1=a228_0x26b608['coerce'](_0x2e9450);if(_0x36e4e1&&_0x3750e2)try{const _0x4372ee=a228_0x26b608[_0x1f8e29(0xaf)](_0x3750e2);if(_0x4372ee)_0x514624=a228_0x26b608['lt'](_0x36e4e1,_0x4372ee);}catch{}if(_0x36e4e1&&_0x3edc91)try{const _0x2f2431=a228_0x26b608['coerce'](_0x3edc91);if(_0x2f2431)_0xdf1578=a228_0x26b608['lt'](_0x36e4e1,_0x2f2431);}catch{}return _0xdf1578&&(_0x514624=!![]),{'currentVersion':_0x2e9450,'stableVersion':_0x3750e2,'minimumVersion':_0x3edc91,'needsUpgrade':_0x514624,'belowMinimum':_0xdf1578,'isPreRelease':![],'upgradeMessage':_0x492250?.['upgradeMessage'],'minimumVersionMessage':_0x492250?.[_0x1f8e29(0xaa)]};}export function printCliUpgradeWarning(_0x49e272){const _0xadb664=a228_0x46e7;if(!_0x49e272[_0xadb664(0xa2)]&&!_0x49e272[_0xadb664(0x9d)])return;const _0x4e8812='\x1b[31m',_0x3531a3=_0xadb664(0xb7),_0x4dfa6d=_0xadb664(0xb9),_0xbb40ac=_0xadb664(0xa8),_0x2f389f=getCliUpgradeCommand(_0x49e272);console[_0xadb664(0x94)](),_0x49e272[_0xadb664(0x9d)]?(console[_0xadb664(0x94)](''+_0x4e8812+_0xbb40ac+_0xadb664(0x9a)+_0x4dfa6d),console['log'](_0x4e8812+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x49e272['currentVersion']+_0x4dfa6d),_0x49e272[_0xadb664(0x98)]&&console[_0xadb664(0x94)](_0x4e8812+'\x20\x20\x20Minimum\x20supported:\x20'+_0x49e272['minimumVersion']+_0x4dfa6d),_0x49e272[_0xadb664(0xac)]&&_0x49e272[_0xadb664(0xac)]!==_0x49e272['minimumVersion']&&console[_0xadb664(0x94)](_0x4e8812+'\x20\x20\x20Recommended\x20stable:\x20'+_0x49e272[_0xadb664(0xac)]+_0x4dfa6d),_0x49e272['minimumVersionMessage']&&console['log'](_0x4e8812+_0xadb664(0xb3)+_0x49e272[_0xadb664(0xaa)]+_0x4dfa6d),console['log'](_0x4e8812+_0xadb664(0x96)+_0x2f389f+_0x4dfa6d)):(console[_0xadb664(0x94)](''+_0x3531a3+_0xbb40ac+_0xadb664(0x9f)+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0x9b)+_0x49e272[_0xadb664(0xa5)]+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0xb5)+_0x49e272[_0xadb664(0xac)]+_0x4dfa6d),_0x49e272[_0xadb664(0xa7)]&&console[_0xadb664(0x94)](_0x3531a3+'\x20\x20\x20'+_0x49e272[_0xadb664(0xa7)]+_0x4dfa6d),console[_0xadb664(0x94)](_0x3531a3+_0xadb664(0x96)+_0x2f389f+_0x4dfa6d)),console[_0xadb664(0x94)]();}export function assertCliVersionSupported(_0x589b6f){const _0x305031=a228_0x46e7;if(!_0x589b6f[_0x305031(0x9d)])return;const _0x3bc518=[_0x589b6f[_0x305031(0xaa)],'Current\x20version:\x20'+_0x589b6f['currentVersion'],_0x589b6f[_0x305031(0x98)]?_0x305031(0xa0)+_0x589b6f[_0x305031(0x98)]:null,_0x305031(0xab)+getCliUpgradeCommand(_0x589b6f)][_0x305031(0xa6)](Boolean)[_0x305031(0xa4)]('\x0a');throw CliErrors[_0x305031(0xb0)](_0x305031(0xa9),_0x3bc518);}
@@ -1 +1 @@
1
- (function(_0xc8011f,_0x475c87){const _0x4cc023=a227_0x27e1,_0x1b2fdc=_0xc8011f();while(!![]){try{const _0x3ae4ba=parseInt(_0x4cc023(0x1db))/0x1*(parseInt(_0x4cc023(0x1d4))/0x2)+-parseInt(_0x4cc023(0x1df))/0x3+-parseInt(_0x4cc023(0x1e5))/0x4+parseInt(_0x4cc023(0x1d6))/0x5+parseInt(_0x4cc023(0x1e4))/0x6+parseInt(_0x4cc023(0x1de))/0x7*(parseInt(_0x4cc023(0x1e6))/0x8)+-parseInt(_0x4cc023(0x1d9))/0x9;if(_0x3ae4ba===_0x475c87)break;else _0x1b2fdc['push'](_0x1b2fdc['shift']());}catch(_0x174d5f){_0x1b2fdc['push'](_0x1b2fdc['shift']());}}}(a227_0x2a35,0x7c208));function a227_0x27e1(_0x36e0b6,_0x1445d2){_0x36e0b6=_0x36e0b6-0x1d2;const _0x2a35e7=a227_0x2a35();let _0x27e1fd=_0x2a35e7[_0x36e0b6];return _0x27e1fd;}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(_0x196724){const _0x575f8b=a227_0x27e1;return typeof _0x196724===_0x575f8b(0x1d2)&&_0x196724[_0x575f8b(0x1e2)]()['length']>0x0?_0x196724[_0x575f8b(0x1e2)]():null;}function normalizeCliVersionPolicy(_0x13f035){const _0x7e9bd6=a227_0x27e1;if(!_0x13f035||typeof _0x13f035!==_0x7e9bd6(0x1d3))return null;const _0x11dc02=_0x13f035,_0x2a8132=_0x11dc02['cli']&&typeof _0x11dc02[_0x7e9bd6(0x1dd)]===_0x7e9bd6(0x1d3)?_0x11dc02['cli']:_0x11dc02,_0x4efe1b=pickString(_0x2a8132[_0x7e9bd6(0x1d7)])||pickString(_0x2a8132[_0x7e9bd6(0x1e3)])||pickString(_0x2a8132['recommendedVersion']),_0x127f53=pickString(_0x2a8132[_0x7e9bd6(0x1e0)])||pickString(_0x2a8132['minVersion']);if(!_0x4efe1b&&!_0x127f53)return null;return{'stableVersion':_0x4efe1b,'minimumVersion':_0x127f53,'upgradeMessage':pickString(_0x2a8132['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x2a8132[_0x7e9bd6(0x1d8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x2b843b=a227_0x27e1,_0x3ec704=new AbortController(),_0x1ec8ec=setTimeout(()=>_0x3ec704[_0x2b843b(0x1da)](),FETCH_TIMEOUT_MS);try{const _0x27f9d3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x2b843b(0x1d5)},'signal':_0x3ec704['signal']});if(!_0x27f9d3['ok'])return null;const _0x479f16=await _0x27f9d3[_0x2b843b(0x1dc)]();return normalizeCliVersionPolicy(_0x479f16);}catch{return null;}finally{clearTimeout(_0x1ec8ec);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a227_0x2a35(){const _0x3729c6=['cli','7071274clpRAp','1271253bheoKq','minimumVersion','now','trim','latestVersion','4317828fGrZeX','3200116PROGJq','8SCODZx','string','object','130UVfszn','application/json','2770370pkJlEy','stableVersion','minimumVersionMessage','6822585mkMDVt','abort','3175RVLbgM','json'];a227_0x2a35=function(){return _0x3729c6;};return a227_0x2a35();}export async function getCliVersionPolicy(){const _0x4c1579=a227_0x27e1,_0x3cd496=Date[_0x4c1579(0x1e1)]();if(hasCachedPolicy){const _0x2393bb=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3cd496-cacheTime<_0x2393bb)return cachedPolicy;}const _0x3e888a=await fetchCliVersionPolicy();return cachedPolicy=_0x3e888a,cacheTime=_0x3cd496,hasCachedPolicy=!![],_0x3e888a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x552488,_0x25f181){const _0x35f7dc=a229_0x3230,_0xb3dcdc=_0x552488();while(!![]){try{const _0x19bc42=-parseInt(_0x35f7dc(0x74))/0x1+-parseInt(_0x35f7dc(0x7b))/0x2+-parseInt(_0x35f7dc(0x7f))/0x3+parseInt(_0x35f7dc(0x79))/0x4+-parseInt(_0x35f7dc(0x78))/0x5*(-parseInt(_0x35f7dc(0x70))/0x6)+-parseInt(_0x35f7dc(0x81))/0x7+-parseInt(_0x35f7dc(0x7d))/0x8*(-parseInt(_0x35f7dc(0x82))/0x9);if(_0x19bc42===_0x25f181)break;else _0xb3dcdc['push'](_0xb3dcdc['shift']());}catch(_0x4bad21){_0xb3dcdc['push'](_0xb3dcdc['shift']());}}}(a229_0x3c91,0x6a87d));function a229_0x3230(_0x570ee1,_0x100299){_0x570ee1=_0x570ee1-0x70;const _0x3c914a=a229_0x3c91();let _0x3230e0=_0x3c914a[_0x570ee1];return _0x3230e0;}function a229_0x3c91(){const _0x16ab43=['abort','stableVersion','6QibRVN','length','upgradeMessage','trim','459836xSSUvb','signal','application/json','minimumVersion','956720ZImHvT','2873868gSRCOO','recommendedVersion','1374514vEGlYe','minVersion','8RytEjo','latestVersion','390297HKDysG','cli','5677658tADSLZ','14533416VwOBkb'];a229_0x3c91=function(){return _0x16ab43;};return a229_0x3c91();}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(_0x1ad473){const _0x5240c1=a229_0x3230;return typeof _0x1ad473==='string'&&_0x1ad473[_0x5240c1(0x73)]()[_0x5240c1(0x71)]>0x0?_0x1ad473[_0x5240c1(0x73)]():null;}function normalizeCliVersionPolicy(_0x1f22d0){const _0x3a600c=a229_0x3230;if(!_0x1f22d0||typeof _0x1f22d0!=='object')return null;const _0x4352af=_0x1f22d0,_0x19ed44=_0x4352af[_0x3a600c(0x80)]&&typeof _0x4352af[_0x3a600c(0x80)]==='object'?_0x4352af[_0x3a600c(0x80)]:_0x4352af,_0x23d2ad=pickString(_0x19ed44[_0x3a600c(0x84)])||pickString(_0x19ed44[_0x3a600c(0x7e)])||pickString(_0x19ed44[_0x3a600c(0x7a)]),_0x20bfb1=pickString(_0x19ed44[_0x3a600c(0x77)])||pickString(_0x19ed44[_0x3a600c(0x7c)]);if(!_0x23d2ad&&!_0x20bfb1)return null;return{'stableVersion':_0x23d2ad,'minimumVersion':_0x20bfb1,'upgradeMessage':pickString(_0x19ed44[_0x3a600c(0x72)])||undefined,'minimumVersionMessage':pickString(_0x19ed44['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x5d8bf0=a229_0x3230,_0x48b09f=new AbortController(),_0x14b99d=setTimeout(()=>_0x48b09f[_0x5d8bf0(0x83)](),FETCH_TIMEOUT_MS);try{const _0x15fa5c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x5d8bf0(0x76)},'signal':_0x48b09f[_0x5d8bf0(0x75)]});if(!_0x15fa5c['ok'])return null;const _0xecd080=await _0x15fa5c['json']();return normalizeCliVersionPolicy(_0xecd080);}catch{return null;}finally{clearTimeout(_0x14b99d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x392785=Date['now']();if(hasCachedPolicy){const _0x519d7d=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x392785-cacheTime<_0x519d7d)return cachedPolicy;}const _0x4ad58a=await fetchCliVersionPolicy();return cachedPolicy=_0x4ad58a,cacheTime=_0x392785,hasCachedPolicy=!![],_0x4ad58a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a228_0x382feb=a228_0x3a4b;(function(_0x59ceb3,_0xfc4e10){const _0x3f4469=a228_0x3a4b,_0xdedbe5=_0x59ceb3();while(!![]){try{const _0x59ed3c=parseInt(_0x3f4469(0x1bc))/0x1*(parseInt(_0x3f4469(0x1c4))/0x2)+parseInt(_0x3f4469(0x1c2))/0x3*(-parseInt(_0x3f4469(0x1c6))/0x4)+parseInt(_0x3f4469(0x1c8))/0x5+-parseInt(_0x3f4469(0x1c1))/0x6*(-parseInt(_0x3f4469(0x1c7))/0x7)+-parseInt(_0x3f4469(0x1bf))/0x8+-parseInt(_0x3f4469(0x1c3))/0x9+parseInt(_0x3f4469(0x1c0))/0xa*(parseInt(_0x3f4469(0x1bb))/0xb);if(_0x59ed3c===_0xfc4e10)break;else _0xdedbe5['push'](_0xdedbe5['shift']());}catch(_0x5d67f4){_0xdedbe5['push'](_0xdedbe5['shift']());}}}(a228_0x25c2,0x3e4a7));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a228_0x1036a5,getMultiAppConfigs as a228_0x53774f,getTemplateBaseUrl as a228_0x44d813}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a228_0x25c2(){const _0x204823=['55204ERkWdL','133KtJERn','1316320ybzZqB','11acEAxj','549OhmplC','project','env','3936592LkfHuK','1599490azymTU','27876sJboeX','39HllESr','745200ytzqZA','1814njZwki','string'];a228_0x25c2=function(){return _0x204823;};return a228_0x25c2();}function a228_0x3a4b(_0x3f1681,_0x1e4b7){_0x3f1681=_0x3f1681-0x1bb;const _0x25c21b=a228_0x25c2();let _0x3a4b11=_0x25c21b[_0x3f1681];return _0x3a4b11;}export function readConfig(_0x59d961){const _0x5ea774=a228_0x3a4b,_0x40789a=readRawConfig(_0x59d961);return _0x40789a[_0x5ea774(0x1be)]&&typeof _0x40789a[_0x5ea774(0x1be)]===_0x5ea774(0x1c5)&&initEnv(_0x40789a['env']),_0x40789a;}export function getConfigAppCode(){return a228_0x1036a5();}export function getMultiAppConfigs(_0xa0131=a228_0x382feb(0x1bd)){return a228_0x53774f(_0xa0131);}export function getTemplateBaseUrl(){return a228_0x44d813();}
1
+ const a230_0x5dd140=a230_0x1672;(function(_0x565748,_0x41e6ed){const _0x1e694f=a230_0x1672,_0x2b8845=_0x565748();while(!![]){try{const _0x366718=parseInt(_0x1e694f(0xab))/0x1*(-parseInt(_0x1e694f(0xb5))/0x2)+-parseInt(_0x1e694f(0xb1))/0x3*(parseInt(_0x1e694f(0xaa))/0x4)+parseInt(_0x1e694f(0xb2))/0x5+parseInt(_0x1e694f(0xb0))/0x6*(-parseInt(_0x1e694f(0xb3))/0x7)+parseInt(_0x1e694f(0xae))/0x8+-parseInt(_0x1e694f(0xa9))/0x9*(-parseInt(_0x1e694f(0xad))/0xa)+-parseInt(_0x1e694f(0xac))/0xb*(-parseInt(_0x1e694f(0xb6))/0xc);if(_0x366718===_0x41e6ed)break;else _0x2b8845['push'](_0x2b8845['shift']());}catch(_0x29b806){_0x2b8845['push'](_0x2b8845['shift']());}}}(a230_0x20ce,0xad57a));function a230_0x1672(_0x4a45a6,_0x5331fa){_0x4a45a6=_0x4a45a6-0xa8;const _0x20cea4=a230_0x20ce();let _0x16720a=_0x20cea4[_0x4a45a6];return _0x16720a;}function a230_0x20ce(){const _0x492612=['29jqjeXr','3016563xferai','20UTZTOT','8093800YgzIGC','env','6785724CDwCqF','38244GSTRLi','2932220HhigDd','7tiJIhX','string','23464nLMUgY','12tNjffL','project','3512097GZtnLi','148SCdnms'];a230_0x20ce=function(){return _0x492612;};return a230_0x20ce();}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a230_0x5d1bec,getMultiAppConfigs as a230_0x46f3ec,getTemplateBaseUrl as a230_0x19bc8b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x398e03){const _0x3c0ba1=a230_0x1672,_0x2e0b09=readRawConfig(_0x398e03);return _0x2e0b09[_0x3c0ba1(0xaf)]&&typeof _0x2e0b09[_0x3c0ba1(0xaf)]===_0x3c0ba1(0xb4)&&initEnv(_0x2e0b09[_0x3c0ba1(0xaf)]),_0x2e0b09;}export function getConfigAppCode(){return a230_0x5d1bec();}export function getMultiAppConfigs(_0x23bc88=a230_0x5dd140(0xa8)){return a230_0x46f3ec(_0x23bc88);}export function getTemplateBaseUrl(){return a230_0x19bc8b();}
@@ -1 +1 @@
1
- (function(_0x1c8858,_0x150822){const _0x52f889=a229_0x5d6b,_0x3a64d=_0x1c8858();while(!![]){try{const _0x89bf18=-parseInt(_0x52f889(0x1bf))/0x1+-parseInt(_0x52f889(0x1be))/0x2*(-parseInt(_0x52f889(0x1c8))/0x3)+parseInt(_0x52f889(0x1c2))/0x4+parseInt(_0x52f889(0x1c6))/0x5+-parseInt(_0x52f889(0x1c3))/0x6*(parseInt(_0x52f889(0x1c1))/0x7)+parseInt(_0x52f889(0x1c5))/0x8+parseInt(_0x52f889(0x1bd))/0x9*(-parseInt(_0x52f889(0x1bc))/0xa);if(_0x89bf18===_0x150822)break;else _0x3a64d['push'](_0x3a64d['shift']());}catch(_0x22c6ea){_0x3a64d['push'](_0x3a64d['shift']());}}}(a229_0x116d,0x5f1aa));function a229_0x116d(){const _0x1aa20=['error','name','join','230iPjoHP','272106rrMQQP','110326TdlGHp','738088ZwYfca','readdirSync','307517WCxyoY','3115532NgPqmf','102TPqAzG','复制目录时出错:','4490248TNLkQx','3114430WWXKAr','isDirectory','33cbYsWw'];a229_0x116d=function(){return _0x1aa20;};return a229_0x116d();}import a229_0x2ed807 from'node:path';import a229_0x6a1058 from'node:fs';function a229_0x5d6b(_0x3ca2f8,_0x8aa172){_0x3ca2f8=_0x3ca2f8-0x1bb;const _0x116d6b=a229_0x116d();let _0x5d6b09=_0x116d6b[_0x3ca2f8];return _0x5d6b09;}export async function copyDirectory(_0x2255ea,_0x120d93){const _0x32b7d1=a229_0x5d6b;try{const _0xcb0989=a229_0x6a1058[_0x32b7d1(0x1c0)](_0x2255ea,{'withFileTypes':!![]});a229_0x6a1058['mkdirSync'](_0x120d93,{'recursive':!![]});for(const _0x4d4fd4 of _0xcb0989){const _0x2c4912=a229_0x2ed807[_0x32b7d1(0x1bb)](_0x2255ea,_0x4d4fd4[_0x32b7d1(0x1ca)]),_0x4e0b50=a229_0x2ed807[_0x32b7d1(0x1bb)](_0x120d93,_0x4d4fd4[_0x32b7d1(0x1ca)]);_0x4d4fd4[_0x32b7d1(0x1c7)]()?await copyDirectory(_0x2c4912,_0x4e0b50):a229_0x6a1058['copyFileSync'](_0x2c4912,_0x4e0b50);}}catch(_0x4351df){console[_0x32b7d1(0x1c9)](_0x32b7d1(0x1c4),_0x4351df);}}
1
+ (function(_0x57c61b,_0x71e948){const _0x709a4c=a231_0x1bf0,_0x50aa79=_0x57c61b();while(!![]){try{const _0x52d13c=parseInt(_0x709a4c(0x70))/0x1*(parseInt(_0x709a4c(0x7a))/0x2)+-parseInt(_0x709a4c(0x77))/0x3+parseInt(_0x709a4c(0x78))/0x4+parseInt(_0x709a4c(0x75))/0x5+parseInt(_0x709a4c(0x7c))/0x6+-parseInt(_0x709a4c(0x76))/0x7+-parseInt(_0x709a4c(0x73))/0x8;if(_0x52d13c===_0x71e948)break;else _0x50aa79['push'](_0x50aa79['shift']());}catch(_0x146dc0){_0x50aa79['push'](_0x50aa79['shift']());}}}(a231_0x1403,0xaadcb));function a231_0x1403(){const _0x240918=['2713125VaSuWv','756076xOcvGM','isDirectory','1830506pbDLUS','name','5897100MThQkj','join','copyFileSync','1BfjVyA','error','复制目录时出错:','5809152jNeFpw','readdirSync','6743130EMARwe','7737646FFyfNy'];a231_0x1403=function(){return _0x240918;};return a231_0x1403();}import a231_0x29a8bd from'node:path';function a231_0x1bf0(_0x4e314f,_0x248e83){_0x4e314f=_0x4e314f-0x6f;const _0x1403df=a231_0x1403();let _0x1bf0d2=_0x1403df[_0x4e314f];return _0x1bf0d2;}import a231_0x2601d7 from'node:fs';export async function copyDirectory(_0xeff039,_0x14e7d9){const _0x45a994=a231_0x1bf0;try{const _0x1abaac=a231_0x2601d7[_0x45a994(0x74)](_0xeff039,{'withFileTypes':!![]});a231_0x2601d7['mkdirSync'](_0x14e7d9,{'recursive':!![]});for(const _0x2f49db of _0x1abaac){const _0x3eb8cc=a231_0x29a8bd[_0x45a994(0x7d)](_0xeff039,_0x2f49db[_0x45a994(0x7b)]),_0x251714=a231_0x29a8bd[_0x45a994(0x7d)](_0x14e7d9,_0x2f49db[_0x45a994(0x7b)]);_0x2f49db[_0x45a994(0x79)]()?await copyDirectory(_0x3eb8cc,_0x251714):a231_0x2601d7[_0x45a994(0x6f)](_0x3eb8cc,_0x251714);}}catch(_0x11bb51){console[_0x45a994(0x71)](_0x45a994(0x72),_0x11bb51);}}
@@ -1 +1 @@
1
- function a230_0x5419(_0x923a55,_0x51e30e){_0x923a55=_0x923a55-0xc9;const _0x359fd9=a230_0x359f();let _0x5419c2=_0x359fd9[_0x923a55];return _0x5419c2;}(function(_0x574956,_0x50e877){const _0x2f192b=a230_0x5419,_0x23c2bb=_0x574956();while(!![]){try{const _0x1fc5c3=parseInt(_0x2f192b(0xd2))/0x1+parseInt(_0x2f192b(0xd4))/0x2+parseInt(_0x2f192b(0xc9))/0x3*(parseInt(_0x2f192b(0xd7))/0x4)+parseInt(_0x2f192b(0xce))/0x5*(-parseInt(_0x2f192b(0xcf))/0x6)+parseInt(_0x2f192b(0xd5))/0x7+parseInt(_0x2f192b(0xcc))/0x8*(parseInt(_0x2f192b(0xd6))/0x9)+-parseInt(_0x2f192b(0xd1))/0xa;if(_0x1fc5c3===_0x50e877)break;else _0x23c2bb['push'](_0x23c2bb['shift']());}catch(_0x2e3bdd){_0x23c2bb['push'](_0x23c2bb['shift']());}}}(a230_0x359f,0xd03ed));function a230_0x359f(){const _0x264602=['string','43410770XsSeaT','1400966UOwMAO','number','1625258VdyVmJ','8969443fGTnZW','6696qNjNEz','565064RTvlWr','18QDnXds','isFinite','object','16352NvWjUD','trim','5mGmwqw','4015356fJLLIw'];a230_0x359f=function(){return _0x264602;};return a230_0x359f();}function toFiniteNumber(_0x1b7fdf){const _0x2b3a5b=a230_0x5419;if(typeof _0x1b7fdf===_0x2b3a5b(0xd3)&&Number['isFinite'](_0x1b7fdf))return _0x1b7fdf;if(typeof _0x1b7fdf===_0x2b3a5b(0xd0)){const _0x44a5b0=_0x1b7fdf[_0x2b3a5b(0xcd)]();if(!_0x44a5b0)return undefined;const _0x2e5528=Number(_0x44a5b0);if(Number[_0x2b3a5b(0xca)](_0x2e5528))return _0x2e5528;}return undefined;}export function normalizeEntityWithIdResponse(_0x3f27f2){const _0x19c5c7=a230_0x5419,_0x54e6cf=toFiniteNumber(_0x3f27f2);if(_0x54e6cf!==undefined)return{'id':_0x54e6cf,'entity':{'id':_0x54e6cf}};if(!_0x3f27f2||typeof _0x3f27f2!==_0x19c5c7(0xcb))return{'id':undefined,'entity':{}};const _0x35a005={..._0x3f27f2},_0x4307a1=toFiniteNumber(_0x35a005['id']);return _0x4307a1!==undefined&&(_0x35a005['id']=_0x4307a1),{'id':_0x4307a1,'entity':_0x35a005};}
1
+ (function(_0x3ac829,_0x97058){const _0x2981f3=a232_0x21b1,_0x332426=_0x3ac829();while(!![]){try{const _0x4e378f=parseInt(_0x2981f3(0x1b1))/0x1*(parseInt(_0x2981f3(0x1b8))/0x2)+-parseInt(_0x2981f3(0x1b5))/0x3*(-parseInt(_0x2981f3(0x1b0))/0x4)+parseInt(_0x2981f3(0x1b3))/0x5*(-parseInt(_0x2981f3(0x1ae))/0x6)+parseInt(_0x2981f3(0x1b9))/0x7*(parseInt(_0x2981f3(0x1af))/0x8)+-parseInt(_0x2981f3(0x1b2))/0x9+-parseInt(_0x2981f3(0x1b7))/0xa*(parseInt(_0x2981f3(0x1be))/0xb)+parseInt(_0x2981f3(0x1bc))/0xc;if(_0x4e378f===_0x97058)break;else _0x332426['push'](_0x332426['shift']());}catch(_0x2311df){_0x332426['push'](_0x332426['shift']());}}}(a232_0x5ce6,0xc9eff));function toFiniteNumber(_0x52c456){const _0x1c7bb5=a232_0x21b1;if(typeof _0x52c456===_0x1c7bb5(0x1b4)&&Number['isFinite'](_0x52c456))return _0x52c456;if(typeof _0x52c456===_0x1c7bb5(0x1b6)){const _0x1bf882=_0x52c456[_0x1c7bb5(0x1bb)]();if(!_0x1bf882)return undefined;const _0x5b13ac=Number(_0x1bf882);if(Number[_0x1c7bb5(0x1ba)](_0x5b13ac))return _0x5b13ac;}return undefined;}function a232_0x21b1(_0x21d662,_0x45cb8b){_0x21d662=_0x21d662-0x1ae;const _0x5ce647=a232_0x5ce6();let _0x21b142=_0x5ce647[_0x21d662];return _0x21b142;}function a232_0x5ce6(){const _0x39fe09=['1464515gnPyXv','number','3AGbnlN','string','1392340pHelmt','4YsogBR','49GrBWfR','isFinite','trim','9667380sBVzHb','object','44VVrBIx','30QyQdun','153752ddWyGJ','3002264vfJCvk','826531NrBZFu','4456710EexyHq'];a232_0x5ce6=function(){return _0x39fe09;};return a232_0x5ce6();}export function normalizeEntityWithIdResponse(_0x20dcd3){const _0x116198=a232_0x21b1,_0x5b601e=toFiniteNumber(_0x20dcd3);if(_0x5b601e!==undefined)return{'id':_0x5b601e,'entity':{'id':_0x5b601e}};if(!_0x20dcd3||typeof _0x20dcd3!==_0x116198(0x1bd))return{'id':undefined,'entity':{}};const _0x22d64c={..._0x20dcd3},_0x2db32c=toFiniteNumber(_0x22d64c['id']);return _0x2db32c!==undefined&&(_0x22d64c['id']=_0x2db32c),{'id':_0x2db32c,'entity':_0x22d64c};}
@@ -1 +1 @@
1
- (function(_0x46ff4a,_0x43db5b){const _0x3f910c=a231_0x2185,_0x3edf97=_0x46ff4a();while(!![]){try{const _0x541c98=parseInt(_0x3f910c(0xf5))/0x1+-parseInt(_0x3f910c(0xee))/0x2+-parseInt(_0x3f910c(0xef))/0x3+parseInt(_0x3f910c(0xed))/0x4*(parseInt(_0x3f910c(0xf4))/0x5)+-parseInt(_0x3f910c(0xec))/0x6*(parseInt(_0x3f910c(0xeb))/0x7)+parseInt(_0x3f910c(0xf0))/0x8*(-parseInt(_0x3f910c(0xea))/0x9)+parseInt(_0x3f910c(0xf1))/0xa*(parseInt(_0x3f910c(0xf2))/0xb);if(_0x541c98===_0x43db5b)break;else _0x3edf97['push'](_0x3edf97['shift']());}catch(_0x5108c0){_0x3edf97['push'](_0x3edf97['shift']());}}}(a231_0x57e2,0xb166e));function a231_0x57e2(){const _0x2ba1e9=['846354chvRqw','2689263CzcgZh','8TibuTm','24460yoaIPp','5401UKMJyU','isDirectory','4530065PvGqHv','441478XLGBUV','2171619msTnFj','107450PdQsrf','102ekAarj','4RrApcu'];a231_0x57e2=function(){return _0x2ba1e9;};return a231_0x57e2();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a231_0x2185(_0x213edb,_0x1db135){_0x213edb=_0x213edb-0xea;const _0x57e2cd=a231_0x57e2();let _0x218599=_0x57e2cd[_0x213edb];return _0x218599;}export async function copyDir(_0x1a0422,_0x584949){const _0x66fe31=a231_0x2185,_0x16fa77=statSync(_0x1a0422);if(_0x16fa77[_0x66fe31(0xf3)]()){!existsSync(_0x584949)&&mkdirSync(_0x584949,{'recursive':!![]});const _0x25c021=readdirSync(_0x1a0422);for(const _0x2b1b42 of _0x25c021){await copyDir(join(_0x1a0422,_0x2b1b42),join(_0x584949,_0x2b1b42));}}else copyFileSync(_0x1a0422,_0x584949);}export function ensureDir(_0x404e17){!existsSync(_0x404e17)&&mkdirSync(_0x404e17,{'recursive':!![]});}export function pathExists(_0x3c46ef){return existsSync(_0x3c46ef);}
1
+ function a233_0x345f(){const _0x5ba07e=['11jOkABh','67434qmlOoQ','19626EInZxN','3962zgUnBG','13716XPrpGS','2743765qjWcTK','18317508uVERjy','isDirectory','336WROcXI','8WmbKJp','4711330dndnLB','1920938UqmgWJ','117kzFBLf'];a233_0x345f=function(){return _0x5ba07e;};return a233_0x345f();}(function(_0x266d68,_0x139cbd){const _0x3480b0=a233_0x4b9c,_0x4da6b3=_0x266d68();while(!![]){try{const _0x4ea0e5=parseInt(_0x3480b0(0x17c))/0x1+-parseInt(_0x3480b0(0x17f))/0x2*(parseInt(_0x3480b0(0x17d))/0x3)+-parseInt(_0x3480b0(0x17a))/0x4*(-parseInt(_0x3480b0(0x176))/0x5)+parseInt(_0x3480b0(0x180))/0x6*(-parseInt(_0x3480b0(0x181))/0x7)+-parseInt(_0x3480b0(0x179))/0x8*(-parseInt(_0x3480b0(0x182))/0x9)+-parseInt(_0x3480b0(0x17b))/0xa+parseInt(_0x3480b0(0x17e))/0xb*(parseInt(_0x3480b0(0x177))/0xc);if(_0x4ea0e5===_0x139cbd)break;else _0x4da6b3['push'](_0x4da6b3['shift']());}catch(_0x25eb09){_0x4da6b3['push'](_0x4da6b3['shift']());}}}(a233_0x345f,0xed2a5));function a233_0x4b9c(_0x34a1aa,_0x363e72){_0x34a1aa=_0x34a1aa-0x176;const _0x345fdd=a233_0x345f();let _0x4b9c44=_0x345fdd[_0x34a1aa];return _0x4b9c44;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4396a9,_0x249738){const _0x686700=a233_0x4b9c,_0x1c6eea=statSync(_0x4396a9);if(_0x1c6eea[_0x686700(0x178)]()){!existsSync(_0x249738)&&mkdirSync(_0x249738,{'recursive':!![]});const _0x4e1f53=readdirSync(_0x4396a9);for(const _0x741375 of _0x4e1f53){await copyDir(join(_0x4396a9,_0x741375),join(_0x249738,_0x741375));}}else copyFileSync(_0x4396a9,_0x249738);}export function ensureDir(_0x50a428){!existsSync(_0x50a428)&&mkdirSync(_0x50a428,{'recursive':!![]});}export function pathExists(_0x4abb89){return existsSync(_0x4abb89);}
@@ -1 +1 @@
1
- function a232_0x44a9(){const _0x1c4686=['title','.lovrabet/skill/guides','guides','trimEnd','content','.lovrabet','entries','1124bZaoVK','66OYKANJ','lastUpdated','replace','83142nYeUpk','\x0a\x0a>更新时间:','5561896YDkdGc','status','utf-8','statusText','10wIJrit','object','skillTemplate','/skills/guides.json','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','2vWSSJc','CDN\x20数据中缺少\x20skillTemplate','cache','17945WkUrXL','push','extendContent','189369HWLytW','5713477ipdfsm','keys','.md','length','join','path','3050883FaSRJv','json','map','366107hnutCU'];a232_0x44a9=function(){return _0x1c4686;};return a232_0x44a9();}const a232_0xf4fca1=a232_0x11e7;(function(_0x376c35,_0x1ba200){const _0x4fc1c9=a232_0x11e7,_0x5994b3=_0x376c35();while(!![]){try{const _0x2de395=-parseInt(_0x4fc1c9(0x1d3))/0x1*(parseInt(_0x4fc1c9(0x1df))/0x2)+-parseInt(_0x4fc1c9(0x1ec))/0x3+parseInt(_0x4fc1c9(0x1cf))/0x4*(parseInt(_0x4fc1c9(0x1e2))/0x5)+parseInt(_0x4fc1c9(0x1d0))/0x6*(-parseInt(_0x4fc1c9(0x1ef))/0x7)+parseInt(_0x4fc1c9(0x1d5))/0x8+-parseInt(_0x4fc1c9(0x1e5))/0x9*(parseInt(_0x4fc1c9(0x1d9))/0xa)+parseInt(_0x4fc1c9(0x1e6))/0xb;if(_0x2de395===_0x1ba200)break;else _0x5994b3['push'](_0x5994b3['shift']());}catch(_0x23ff0a){_0x5994b3['push'](_0x5994b3['shift']());}}}(a232_0x44a9,0x8096a));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 _0x58e19f=a232_0x11e7,_0x4ed24e=getTemplateBaseUrl();return _0x4ed24e+_0x58e19f(0x1dc);}const CACHE_DIR=join(homedir(),a232_0xf4fca1(0x1cd),a232_0xf4fca1(0x1e1));function a232_0x11e7(_0xbbb345,_0x1a33e0){_0xbbb345=_0xbbb345-0x1cd;const _0x44a988=a232_0x44a9();let _0x11e7b6=_0x44a988[_0xbbb345];return _0x11e7b6;}export async function fetchGuidesFromCDN(){const _0x2ea095=a232_0xf4fca1,_0x3520d3=getGuidesCdnUrl(),_0x20001c=await fetch(_0x3520d3,{'headers':{'Accept':'application/json'}});if(!_0x20001c['ok'])throw new Error(_0x2ea095(0x1de)+_0x20001c[_0x2ea095(0x1d6)]+'\x20'+_0x20001c[_0x2ea095(0x1d8)]);const _0x2fe1e2=await _0x20001c[_0x2ea095(0x1ed)]();if(!_0x2fe1e2[_0x2ea095(0x1f2)]||typeof _0x2fe1e2[_0x2ea095(0x1f2)]!==_0x2ea095(0x1da))throw new Error(_0x2ea095(0x1dd));return _0x2fe1e2;}export function writeGuidesToProject(_0x1696dc,_0xb0708f,_0x439f7a=a232_0xf4fca1(0x1f1),_0xc2d702){const _0xe5c24a=a232_0xf4fca1,_0x198326=join(_0xb0708f,_0x439f7a);mkdirSync(_0x198326,{'recursive':!![]});for(const [_0x41a1dd,_0x4e94ea]of Object[_0xe5c24a(0x1ce)](_0x1696dc[_0xe5c24a(0x1f2)])){let _0x2e4782=_0x4e94ea[_0xe5c24a(0x1f4)];_0x4e94ea[_0xe5c24a(0x1d1)]&&(_0x2e4782=appendUpdateTime(_0x2e4782,_0x4e94ea[_0xe5c24a(0x1d1)])),writeFileSync(join(_0x198326,_0x41a1dd+_0xe5c24a(0x1e8)),_0x2e4782,_0xe5c24a(0x1d7));}}export function appendUpdateTime(_0x49b3a5,_0x94f7fa){const _0x5cd850=a232_0xf4fca1;return _0x49b3a5=_0x49b3a5[_0x5cd850(0x1d2)](/\n*>更新时间:.*$/m,''),_0x49b3a5[_0x5cd850(0x1f3)]()+(_0x5cd850(0x1d4)+_0x94f7fa);}export function getSkillTemplate(_0x366258){const _0x58d8b3=a232_0xf4fca1;return _0x366258[_0x58d8b3(0x1db)]?.[_0x58d8b3(0x1f4)]||'';}export function appendExtendContents(_0x5c1e33,_0x2ccc7c,_0x4c2059){const _0x2ebfad=a232_0xf4fca1,_0xaece44=[];for(const [,_0x4d01d2]of Object['entries'](_0x2ccc7c[_0x2ebfad(0x1f2)])){_0x4d01d2[_0x2ebfad(0x1e4)]&&_0xaece44[_0x2ebfad(0x1e3)](_0x4d01d2[_0x2ebfad(0x1e4)]['trimEnd']());}if(_0xaece44[_0x2ebfad(0x1e9)]===0x0)return _0x5c1e33;return _0x5c1e33[_0x2ebfad(0x1f3)]()+'\x0a\x0a'+_0xaece44[_0x2ebfad(0x1ea)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2ed277,_0x1e04a4,_0x33eb0d){const _0xbe859a=a232_0xf4fca1,_0x1544ca=getSkillTemplate(_0x2ed277);if(!_0x1544ca)throw new Error(_0xbe859a(0x1e0));const _0x3009a1=dirname(_0x1e04a4);mkdirSync(_0x3009a1,{'recursive':!![]});let _0x212e0d=_0x1544ca[_0xbe859a(0x1d2)](/\{\{IDE_NAME\}\}/g,_0x33eb0d);_0x212e0d=appendExtendContents(_0x212e0d,_0x2ed277),_0x2ed277[_0xbe859a(0x1db)][_0xbe859a(0x1d1)]&&(_0x212e0d=appendUpdateTime(_0x212e0d,_0x2ed277[_0xbe859a(0x1db)]['lastUpdated'])),writeFileSync(_0x1e04a4,_0x212e0d,_0xbe859a(0x1d7));}export async function installGuides(_0x42f08b){const _0x31ce77=a232_0xf4fca1,_0x34b335=await fetchGuidesFromCDN();return writeGuidesToProject(_0x34b335,_0x42f08b),Object[_0x31ce77(0x1e7)](_0x34b335[_0x31ce77(0x1f2)])[_0x31ce77(0x1e9)];}export function getGuidesSummary(_0x5046f7){const _0x538a8c=a232_0xf4fca1;return Object[_0x538a8c(0x1ce)](_0x5046f7[_0x538a8c(0x1f2)])[_0x538a8c(0x1ee)](([_0x176736,_0x2ae1c8])=>({'key':_0x176736,'title':_0x2ae1c8[_0x538a8c(0x1f0)],'path':_0x2ae1c8[_0x538a8c(0x1eb)]}));}
1
+ function a234_0x1e84(_0xbf6514,_0x25e36e){_0xbf6514=_0xbf6514-0x149;const _0x5a4312=a234_0x5a43();let _0x1e8401=_0x5a4312[_0xbf6514];return _0x1e8401;}const a234_0x46af15=a234_0x1e84;(function(_0x39ba0b,_0x2946b7){const _0x57daa5=a234_0x1e84,_0x3cecb=_0x39ba0b();while(!![]){try{const _0x418768=parseInt(_0x57daa5(0x158))/0x1*(parseInt(_0x57daa5(0x14c))/0x2)+-parseInt(_0x57daa5(0x149))/0x3+parseInt(_0x57daa5(0x157))/0x4+-parseInt(_0x57daa5(0x14e))/0x5+-parseInt(_0x57daa5(0x156))/0x6+-parseInt(_0x57daa5(0x169))/0x7*(-parseInt(_0x57daa5(0x168))/0x8)+parseInt(_0x57daa5(0x167))/0x9*(parseInt(_0x57daa5(0x166))/0xa);if(_0x418768===_0x2946b7)break;else _0x3cecb['push'](_0x3cecb['shift']());}catch(_0x44e600){_0x3cecb['push'](_0x3cecb['shift']());}}}(a234_0x5a43,0x4de0c));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 _0x4768c8=a234_0x1e84,_0x546e7b=getTemplateBaseUrl();return _0x546e7b+_0x4768c8(0x160);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');export async function fetchGuidesFromCDN(){const _0x3bd560=a234_0x1e84,_0x4f6b15=getGuidesCdnUrl(),_0x26baa3=await fetch(_0x4f6b15,{'headers':{'Accept':_0x3bd560(0x162)}});if(!_0x26baa3['ok'])throw new Error(_0x3bd560(0x15b)+_0x26baa3[_0x3bd560(0x154)]+'\x20'+_0x26baa3['statusText']);const _0x50b6d5=await _0x26baa3[_0x3bd560(0x16b)]();if(!_0x50b6d5['guides']||typeof _0x50b6d5[_0x3bd560(0x15f)]!==_0x3bd560(0x153))throw new Error('CDN\x20返回数据格式错误');return _0x50b6d5;}export function writeGuidesToProject(_0x5a4a70,_0x2df8b3,_0x43823c=a234_0x46af15(0x165),_0x2e3c41){const _0x1b5884=a234_0x46af15,_0x273014=join(_0x2df8b3,_0x43823c);mkdirSync(_0x273014,{'recursive':!![]});for(const [_0x3f1360,_0x376c3d]of Object[_0x1b5884(0x15c)](_0x5a4a70[_0x1b5884(0x15f)])){let _0x304bb8=_0x376c3d['content'];_0x376c3d['lastUpdated']&&(_0x304bb8=appendUpdateTime(_0x304bb8,_0x376c3d[_0x1b5884(0x16c)])),writeFileSync(join(_0x273014,_0x3f1360+_0x1b5884(0x155)),_0x304bb8,_0x1b5884(0x159));}}export function appendUpdateTime(_0x3bbccb,_0x17288e){const _0x2c6fd1=a234_0x46af15;return _0x3bbccb=_0x3bbccb[_0x2c6fd1(0x14d)](/\n*>更新时间:.*$/m,''),_0x3bbccb[_0x2c6fd1(0x15a)]()+(_0x2c6fd1(0x164)+_0x17288e);}export function getSkillTemplate(_0x45be5d){const _0x8dff55=a234_0x46af15;return _0x45be5d[_0x8dff55(0x163)]?.[_0x8dff55(0x151)]||'';}function a234_0x5a43(){const _0x4d7aa1=['json','lastUpdated','1264617uoBDiN','push','keys','4WvbNJn','replace','2199875DNJQbP','title','join','content','map','object','status','.md','3509772FlDXDZ','580360VBHdHZ','314237ibngnc','utf-8','trimEnd','CDN\x20请求失败:\x20','entries','extendContent','path','guides','/skills/guides.json','length','application/json','skillTemplate','\x0a\x0a>更新时间:','.lovrabet/skill/guides','1556570ggzCQQ','45FrcYhy','24kScYIA','498435cNWdiH','CDN\x20数据中缺少\x20skillTemplate'];a234_0x5a43=function(){return _0x4d7aa1;};return a234_0x5a43();}export function appendExtendContents(_0xedd59e,_0x5ae40c,_0x1ecc4c){const _0x3abed8=a234_0x46af15,_0x431f4b=[];for(const [,_0x2686ba]of Object[_0x3abed8(0x15c)](_0x5ae40c[_0x3abed8(0x15f)])){_0x2686ba[_0x3abed8(0x15d)]&&_0x431f4b[_0x3abed8(0x14a)](_0x2686ba[_0x3abed8(0x15d)]['trimEnd']());}if(_0x431f4b['length']===0x0)return _0xedd59e;return _0xedd59e[_0x3abed8(0x15a)]()+'\x0a\x0a'+_0x431f4b[_0x3abed8(0x150)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xf3b5fe,_0x488986,_0x1c94ec){const _0xf95a2c=a234_0x46af15,_0x41130e=getSkillTemplate(_0xf3b5fe);if(!_0x41130e)throw new Error(_0xf95a2c(0x16a));const _0x60a396=dirname(_0x488986);mkdirSync(_0x60a396,{'recursive':!![]});let _0x4257a3=_0x41130e[_0xf95a2c(0x14d)](/\{\{IDE_NAME\}\}/g,_0x1c94ec);_0x4257a3=appendExtendContents(_0x4257a3,_0xf3b5fe),_0xf3b5fe['skillTemplate'][_0xf95a2c(0x16c)]&&(_0x4257a3=appendUpdateTime(_0x4257a3,_0xf3b5fe[_0xf95a2c(0x163)][_0xf95a2c(0x16c)])),writeFileSync(_0x488986,_0x4257a3,_0xf95a2c(0x159));}export async function installGuides(_0x3af05f){const _0x2ec08e=a234_0x46af15,_0x9dd1e=await fetchGuidesFromCDN();return writeGuidesToProject(_0x9dd1e,_0x3af05f),Object[_0x2ec08e(0x14b)](_0x9dd1e[_0x2ec08e(0x15f)])[_0x2ec08e(0x161)];}export function getGuidesSummary(_0x550ac2){const _0x21fc39=a234_0x46af15;return Object[_0x21fc39(0x15c)](_0x550ac2['guides'])[_0x21fc39(0x152)](([_0x98b0bd,_0x41bb7e])=>({'key':_0x98b0bd,'title':_0x41bb7e[_0x21fc39(0x14f)],'path':_0x41bb7e[_0x21fc39(0x15e)]}));}
@@ -1 +1 @@
1
- (function(_0x142fc9,_0x1fb5eb){const _0x964ed4=a233_0x6a51,_0x41fc16=_0x142fc9();while(!![]){try{const _0x50f519=parseInt(_0x964ed4(0x13a))/0x1+parseInt(_0x964ed4(0x14b))/0x2*(-parseInt(_0x964ed4(0x146))/0x3)+-parseInt(_0x964ed4(0x13c))/0x4+-parseInt(_0x964ed4(0x145))/0x5*(parseInt(_0x964ed4(0x148))/0x6)+parseInt(_0x964ed4(0x13f))/0x7+-parseInt(_0x964ed4(0x155))/0x8*(-parseInt(_0x964ed4(0x14d))/0x9)+parseInt(_0x964ed4(0x144))/0xa;if(_0x50f519===_0x1fb5eb)break;else _0x41fc16['push'](_0x41fc16['shift']());}catch(_0x349e57){_0x41fc16['push'](_0x41fc16['shift']());}}}(a233_0x32d7,0x43790));export async function httpRequest(_0x557a07,_0x298b4c={}){const _0x1b6fd2=a233_0x6a51,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x298b4c;let _0x50eb3b=null;for(let _0x358af8=0x0;_0x358af8<=retries;_0x358af8++){try{const _0x33bbb6=new AbortController(),_0x5f0629=setTimeout(()=>_0x33bbb6[_0x1b6fd2(0x13e)](),timeout),_0x2517ce=await fetch(_0x557a07,{'headers':headers,'signal':_0x33bbb6[_0x1b6fd2(0x14c)]});clearTimeout(_0x5f0629);let _0x39ab10;const _0x4dde62=_0x2517ce[_0x1b6fd2(0x13b)][_0x1b6fd2(0x141)]('content-type');return _0x4dde62?.[_0x1b6fd2(0x14f)](_0x1b6fd2(0x153))?_0x39ab10=await _0x2517ce[_0x1b6fd2(0x140)]():_0x39ab10=await _0x2517ce['text'](),{'ok':_0x2517ce['ok'],'status':_0x2517ce['status'],'statusText':_0x2517ce[_0x1b6fd2(0x149)],'data':_0x39ab10,'headers':_0x2517ce[_0x1b6fd2(0x13b)],'url':_0x2517ce[_0x1b6fd2(0x151)],'text':()=>_0x2517ce[_0x1b6fd2(0x138)]()};}catch(_0x47018c){_0x50eb3b=_0x47018c instanceof Error?_0x47018c:new Error(String(_0x47018c));if(_0x358af8===retries)break;if(shouldRetry(_0x47018c)){console[_0x1b6fd2(0x147)](_0x1b6fd2(0x139)+retryDelay+_0x1b6fd2(0x150)+(_0x358af8+0x1)+_0x1b6fd2(0x14e)),await sleep(retryDelay);continue;}else break;}}throw _0x50eb3b||new Error(_0x1b6fd2(0x143));}function a233_0x32d7(){const _0x21b732=['222UmQRtj','statusText','AbortError','2JbYHGs','signal','225Jqilyo','\x20次重试...','includes','ms\x20后进行第\x20','url','message','application/json','TypeError','19280kJyPTf','fetch','text','*\x20请求失败,','4294PXNqac','headers','546096aSXknO','name','abort','3095757rtUJLP','json','get','ENOTFOUND','Request\x20failed','5641990MzURcA','45070wvUCCS','973752EgOEZV','log'];a233_0x32d7=function(){return _0x21b732;};return a233_0x32d7();}function a233_0x6a51(_0x49c00b,_0x4a2bf9){_0x49c00b=_0x49c00b-0x138;const _0x32d7c9=a233_0x32d7();let _0x6a5121=_0x32d7c9[_0x49c00b];return _0x6a5121;}function shouldRetry(_0x427f6b){const _0x312125=a233_0x6a51;if(_0x427f6b instanceof Error){if(_0x427f6b[_0x312125(0x13d)]===_0x312125(0x14a))return![];if(_0x427f6b['name']===_0x312125(0x154)&&_0x427f6b[_0x312125(0x152)][_0x312125(0x14f)](_0x312125(0x156)))return!![];if(_0x427f6b[_0x312125(0x152)][_0x312125(0x14f)]('ECONNRESET'))return!![];if(_0x427f6b[_0x312125(0x152)]['includes'](_0x312125(0x142)))return![];}return![];}function sleep(_0x50dee8){return new Promise(_0x15bbfc=>setTimeout(_0x15bbfc,_0x50dee8));}export function validateUrl(_0x1b1eeb){try{return new URL(_0x1b1eeb),!![];}catch{return![];}}
1
+ (function(_0x2df42b,_0x2a9fe1){const _0x1cf1fc=a235_0x53bf,_0xea92ac=_0x2df42b();while(!![]){try{const _0x321467=parseInt(_0x1cf1fc(0x11e))/0x1*(parseInt(_0x1cf1fc(0x11c))/0x2)+-parseInt(_0x1cf1fc(0x124))/0x3+parseInt(_0x1cf1fc(0x12e))/0x4*(-parseInt(_0x1cf1fc(0x130))/0x5)+parseInt(_0x1cf1fc(0x12b))/0x6+parseInt(_0x1cf1fc(0x129))/0x7+parseInt(_0x1cf1fc(0x125))/0x8*(-parseInt(_0x1cf1fc(0x12d))/0x9)+-parseInt(_0x1cf1fc(0x123))/0xa*(-parseInt(_0x1cf1fc(0x112))/0xb);if(_0x321467===_0x2a9fe1)break;else _0xea92ac['push'](_0xea92ac['shift']());}catch(_0x114cd7){_0xea92ac['push'](_0xea92ac['shift']());}}}(a235_0x51d5,0x97100));export async function httpRequest(_0x2e83a7,_0x14ffdf={}){const _0x27deae=a235_0x53bf,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x14ffdf;let _0x5eb132=null;for(let _0x34ca43=0x0;_0x34ca43<=retries;_0x34ca43++){try{const _0x53ac9e=new AbortController(),_0x15a918=setTimeout(()=>_0x53ac9e[_0x27deae(0x11b)](),timeout),_0x4f16bd=await fetch(_0x2e83a7,{'headers':headers,'signal':_0x53ac9e['signal']});clearTimeout(_0x15a918);let _0x51c920;const _0x37f938=_0x4f16bd['headers'][_0x27deae(0x126)](_0x27deae(0x120));return _0x37f938?.['includes'](_0x27deae(0x12a))?_0x51c920=await _0x4f16bd[_0x27deae(0x12f)]():_0x51c920=await _0x4f16bd[_0x27deae(0x121)](),{'ok':_0x4f16bd['ok'],'status':_0x4f16bd['status'],'statusText':_0x4f16bd[_0x27deae(0x12c)],'data':_0x51c920,'headers':_0x4f16bd[_0x27deae(0x11d)],'url':_0x4f16bd[_0x27deae(0x11f)],'text':()=>_0x4f16bd[_0x27deae(0x121)]()};}catch(_0x4b1867){_0x5eb132=_0x4b1867 instanceof Error?_0x4b1867:new Error(String(_0x4b1867));if(_0x34ca43===retries)break;if(shouldRetry(_0x4b1867)){console[_0x27deae(0x113)]('*\x20请求失败,'+retryDelay+_0x27deae(0x127)+(_0x34ca43+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x5eb132||new Error(_0x27deae(0x11a));}function a235_0x51d5(){const _0x5ecf43=['4uEgJjV','headers','446287jcYusE','url','content-type','text','ENOTFOUND','2325610hUTMzW','478953VyVYfR','24VsjrVu','get','ms\x20后进行第\x20','message','4187939guuGqE','application/json','2374626mutMKn','statusText','1328202cAUVum','292GavPNm','json','61510AbJXGX','11JeNwuH','log','name','fetch','AbortError','TypeError','includes','ECONNRESET','Request\x20failed','abort'];a235_0x51d5=function(){return _0x5ecf43;};return a235_0x51d5();}function shouldRetry(_0x4e5e65){const _0x4eb5df=a235_0x53bf;if(_0x4e5e65 instanceof Error){if(_0x4e5e65[_0x4eb5df(0x114)]===_0x4eb5df(0x116))return![];if(_0x4e5e65[_0x4eb5df(0x114)]===_0x4eb5df(0x117)&&_0x4e5e65[_0x4eb5df(0x128)][_0x4eb5df(0x118)](_0x4eb5df(0x115)))return!![];if(_0x4e5e65[_0x4eb5df(0x128)][_0x4eb5df(0x118)](_0x4eb5df(0x119)))return!![];if(_0x4e5e65[_0x4eb5df(0x128)]['includes'](_0x4eb5df(0x122)))return![];}return![];}function sleep(_0x21de8e){return new Promise(_0x5a7670=>setTimeout(_0x5a7670,_0x21de8e));}function a235_0x53bf(_0x2733e6,_0x128a6c){_0x2733e6=_0x2733e6-0x112;const _0x51d510=a235_0x51d5();let _0x53bfc6=_0x51d510[_0x2733e6];return _0x53bfc6;}export function validateUrl(_0x59540e){try{return new URL(_0x59540e),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x5a5d2f,_0x4bd0c0){const _0x14b146=a234_0x25ed,_0x3b9907=_0x5a5d2f();while(!![]){try{const _0x251a13=parseInt(_0x14b146(0x15e))/0x1*(parseInt(_0x14b146(0x165))/0x2)+parseInt(_0x14b146(0x166))/0x3*(parseInt(_0x14b146(0x164))/0x4)+-parseInt(_0x14b146(0x168))/0x5*(parseInt(_0x14b146(0x15a))/0x6)+parseInt(_0x14b146(0x162))/0x7*(parseInt(_0x14b146(0x15d))/0x8)+parseInt(_0x14b146(0x161))/0x9+parseInt(_0x14b146(0x15c))/0xa*(-parseInt(_0x14b146(0x15f))/0xb)+parseInt(_0x14b146(0x158))/0xc*(-parseInt(_0x14b146(0x156))/0xd);if(_0x251a13===_0x4bd0c0)break;else _0x3b9907['push'](_0x3b9907['shift']());}catch(_0x35ac63){_0x3b9907['push'](_0x3b9907['shift']());}}}(a234_0x2786,0x5e59d));function env(_0x4bb256){return process.env[`RABETBASE_${_0x4bb256}`]||process.env[`LOVRABET_${_0x4bb256}`]||undefined;}export function isNonInteractive(_0x47ad3c){const _0xa1c368=a234_0x25ed;return!!(_0x47ad3c[_0xa1c368(0x155)]||_0x47ad3c['ci']||env('CI')==='true'||process.env.CI===_0xa1c368(0x15b)||!process[_0xa1c368(0x159)][_0xa1c368(0x160)]||!isStdinRawModeSupported());}function a234_0x25ed(_0x4ca2fd,_0x4be350){_0x4ca2fd=_0x4ca2fd-0x155;const _0x2786f1=a234_0x2786();let _0x25ed23=_0x2786f1[_0x4ca2fd];return _0x25ed23;}function isStdinRawModeSupported(){const _0x48429c=a234_0x25ed;if(!process['stdin']['isTTY'])return![];try{const _0x286b1c=process[_0x48429c(0x163)][_0x48429c(0x157)];return process[_0x48429c(0x163)][_0x48429c(0x167)](!![]),process[_0x48429c(0x163)][_0x48429c(0x167)](_0x286b1c??![]),!![];}catch{return![];}}function a234_0x2786(){const _0x2833ac=['5927751IbdSec','21FXgtjR','stdin','1408LuEIoM','14lhjJpK','5304zfxlli','setRawMode','3769905izcSFj','nonInteractive','44057jwhTSK','isRaw','1740wXWaoQ','stdout','6DDJLbl','true','120ESVTPI','851248mUwUib','49966fMTeRQ','291599zuRPnT','isTTY'];a234_0x2786=function(){return _0x2833ac;};return a234_0x2786();}
1
+ function a236_0x489e(){const _0x5d4379=['134904ncRVfx','setRawMode','true','stdout','528994upCyJn','474872WwdGrl','13180FJKwoa','35MbiuoY','isTTY','27935ShbCuH','6AMbyKS','369QxxUpy','523248QuoVYv','stdin','276272xxhdEJ','isRaw'];a236_0x489e=function(){return _0x5d4379;};return a236_0x489e();}(function(_0x57ea82,_0x469b4e){const _0x55423f=a236_0x1d09,_0x50e2a4=_0x57ea82();while(!![]){try{const _0x3ebae8=parseInt(_0x55423f(0xfb))/0x1+parseInt(_0x55423f(0xf1))/0x2+-parseInt(_0x55423f(0xf9))/0x3+parseInt(_0x55423f(0xfd))/0x4+parseInt(_0x55423f(0xf6))/0x5*(-parseInt(_0x55423f(0xf7))/0x6)+-parseInt(_0x55423f(0xf4))/0x7*(parseInt(_0x55423f(0xf2))/0x8)+-parseInt(_0x55423f(0xf8))/0x9*(-parseInt(_0x55423f(0xf3))/0xa);if(_0x3ebae8===_0x469b4e)break;else _0x50e2a4['push'](_0x50e2a4['shift']());}catch(_0x582d4f){_0x50e2a4['push'](_0x50e2a4['shift']());}}}(a236_0x489e,0x250b7));function a236_0x1d09(_0x54402a,_0x30f7fe){_0x54402a=_0x54402a-0xef;const _0x489e7f=a236_0x489e();let _0x1d0959=_0x489e7f[_0x54402a];return _0x1d0959;}function env(_0x153346){return process.env[`RABETBASE_${_0x153346}`]||process.env[`LOVRABET_${_0x153346}`]||undefined;}export function isNonInteractive(_0x107f89){const _0x47b38d=a236_0x1d09;return!!(_0x107f89['nonInteractive']||_0x107f89['ci']||env('CI')===_0x47b38d(0xef)||process.env.CI===_0x47b38d(0xef)||!process[_0x47b38d(0xf0)][_0x47b38d(0xf5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x49da55=a236_0x1d09;if(!process[_0x49da55(0xfa)][_0x49da55(0xf5)])return![];try{const _0x281438=process[_0x49da55(0xfa)][_0x49da55(0xfc)];return process['stdin'][_0x49da55(0xfe)](!![]),process[_0x49da55(0xfa)][_0x49da55(0xfe)](_0x281438??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a235_0x12a8(_0x378965,_0x59fde9){_0x378965=_0x378965-0x71;const _0x46282b=a235_0x4628();let _0x12a88f=_0x46282b[_0x378965];return _0x12a88f;}const a235_0x2ce089=a235_0x12a8;function a235_0x4628(){const _0x1d58d4=['map','getWinstonInstance','initWinstonLogger','setLogPath','1238844lvuSkJ','531530cdDnYo','red','green','yellow','info','logTask','878IAExTR','43QXbXCM','clear','560077YLIzCj','duration','format','开始执行:\x20','parse','setRawCommand','printf','split','warn','message','createLogger','mkdirSync','28840iEGcto','logFilePath','writeFileSync','timestamp','Failed\x20to\x20clear\x20logs:','trim','addColors','unknown','失败:\x20','success','errors','utf8','winstonLogger','error','109605JmNzCS','stringify','readFileSync','existsSync','combine','52pZSiYC','log','join','currentRawCommand','readLogs','level','File','423XKBZBc','2069346lnArhI','Failed\x20to\x20read\x20logs:','now'];a235_0x4628=function(){return _0x1d58d4;};return a235_0x4628();}(function(_0x13a5c5,_0x552885){const _0x4a343f=a235_0x12a8,_0x332636=_0x13a5c5();while(!![]){try{const _0x184015=-parseInt(_0x4a343f(0x95))/0x1*(-parseInt(_0x4a343f(0x94))/0x2)+parseInt(_0x4a343f(0x8d))/0x3+-parseInt(_0x4a343f(0x7e))/0x4*(-parseInt(_0x4a343f(0x79))/0x5)+-parseInt(_0x4a343f(0x86))/0x6+parseInt(_0x4a343f(0x97))/0x7+parseInt(_0x4a343f(0xa3))/0x8*(-parseInt(_0x4a343f(0x85))/0x9)+-parseInt(_0x4a343f(0x8e))/0xa;if(_0x184015===_0x552885)break;else _0x332636['push'](_0x332636['shift']());}catch(_0x857cc9){_0x332636['push'](_0x332636['shift']());}}}(a235_0x4628,0x37fd2));import a235_0x1c978d from'winston';import a235_0x551d10 from'node:fs';import a235_0x177131 from'node:path';class Logger{['winstonLogger'];[a235_0x2ce089(0xa4)];[a235_0x2ce089(0x81)]='';constructor(){const _0xd4fe86=a235_0x2ce089;this[_0xd4fe86(0xa4)]='';}[a235_0x2ce089(0x9c)](_0x3f5333){const _0x2317e4=a235_0x2ce089;this[_0x2317e4(0x81)]=_0x3f5333;}[a235_0x2ce089(0x8b)](){const _0x2473c5=a235_0x2ce089,_0x4fdc9a=a235_0x177131['dirname'](this['logFilePath']);!a235_0x551d10[_0x2473c5(0x7c)](_0x4fdc9a)&&a235_0x551d10[_0x2473c5(0xa2)](_0x4fdc9a,{'recursive':!![]});const _0x47c075=a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x7d)](a235_0x1c978d['format'][_0x2473c5(0xa6)](),a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x75)]({'stack':!![]}),a235_0x1c978d[_0x2473c5(0x99)][_0x2473c5(0x9d)](_0x41e78=>{const _0x488323=_0x2473c5,_0x1fc6b8={'timestamp':_0x41e78[_0x488323(0xa6)]||new Date()['toISOString'](),'level':_0x41e78[_0x488323(0x83)]||'info','command':_0x41e78['command']||_0x488323(0x72),'rawCommand':_0x41e78['rawCommand']||this[_0x488323(0x81)]||undefined,'message':_0x41e78[_0x488323(0xa0)]||'','duration':_0x41e78[_0x488323(0x98)]||undefined,'details':_0x41e78['details']||undefined};return JSON[_0x488323(0x7a)](_0x1fc6b8);}));this[_0x2473c5(0x77)]=a235_0x1c978d[_0x2473c5(0xa1)]({'level':_0x2473c5(0x92),'format':_0x47c075,'transports':[new a235_0x1c978d['transports'][(_0x2473c5(0x84))]({'filename':this['logFilePath'],'level':_0x2473c5(0x92)})],'silent':![]}),a235_0x1c978d[_0x2473c5(0x71)]({'success':_0x2473c5(0x90),'error':_0x2473c5(0x8f),'warn':_0x2473c5(0x91),'info':'blue'});}[a235_0x2ce089(0x8c)](_0x5ca00c){const _0x37f2b5=a235_0x2ce089;this[_0x37f2b5(0xa4)]=a235_0x177131[_0x37f2b5(0x80)](_0x5ca00c,'.lovrabet.log'),this[_0x37f2b5(0x77)]&&this[_0x37f2b5(0x77)][_0x37f2b5(0x96)](),this[_0x37f2b5(0x8b)]();}[a235_0x2ce089(0x92)](_0x171d1e,_0x51f262,_0x186c7f){const _0xd4ab2b=a235_0x2ce089;if(!this['logFilePath']||!this[_0xd4ab2b(0x77)])return;this[_0xd4ab2b(0x77)]['info'](_0x51f262,{'command':_0x171d1e,'details':_0x186c7f});}[a235_0x2ce089(0x74)](_0x4912c5,_0x67db61,_0x531d1d,_0x3c9c84){const _0x5f1f56=a235_0x2ce089;if(!this[_0x5f1f56(0xa4)]||!this[_0x5f1f56(0x77)])return;this['winstonLogger'][_0x5f1f56(0x7f)](_0x5f1f56(0x92),_0x67db61,{'level':_0x5f1f56(0x74),'command':_0x4912c5,'duration':_0x531d1d,'details':_0x3c9c84});}[a235_0x2ce089(0x78)](_0x367508,_0x2a64ff,_0x1b4a49){const _0x15b71f=a235_0x2ce089;if(!this[_0x15b71f(0xa4)]||!this['winstonLogger'])return;this[_0x15b71f(0x77)][_0x15b71f(0x78)](_0x2a64ff,{'command':_0x367508,'details':_0x1b4a49});}['warn'](_0x3b3d43,_0x37de11,_0x2cccfe){const _0x41fc29=a235_0x2ce089;if(!this['logFilePath']||!this[_0x41fc29(0x77)])return;this['winstonLogger']['warn'](_0x37de11,{'command':_0x3b3d43,'details':_0x2cccfe});}async[a235_0x2ce089(0x93)](_0x3d81af,_0x5c7d1e,_0x35006a){const _0x797cef=a235_0x2ce089,_0x5684ae=Date[_0x797cef(0x88)]();this[_0x797cef(0x92)](_0x3d81af,_0x797cef(0x9a)+_0x5c7d1e);try{const _0x4f372f=await _0x35006a(),_0x590357=Date[_0x797cef(0x88)]()-_0x5684ae;return this[_0x797cef(0x74)](_0x3d81af,'完成:\x20'+_0x5c7d1e,_0x590357),_0x4f372f;}catch(_0x529bb6){const _0x2ec461=Date[_0x797cef(0x88)]()-_0x5684ae;this[_0x797cef(0x78)](_0x3d81af,_0x797cef(0x73)+_0x5c7d1e,{'error':_0x529bb6 instanceof Error?_0x529bb6[_0x797cef(0xa0)]:String(_0x529bb6),'duration':_0x2ec461});throw _0x529bb6;}}[a235_0x2ce089(0x82)](){const _0xca8850=a235_0x2ce089;try{if(!a235_0x551d10[_0xca8850(0x7c)](this[_0xca8850(0xa4)]))return[];const _0x540a89=a235_0x551d10[_0xca8850(0x7b)](this[_0xca8850(0xa4)],_0xca8850(0x76));return _0x540a89[_0xca8850(0x9e)]('\x0a')['filter'](_0x4e09d7=>_0x4e09d7[_0xca8850(0xa8)]())[_0xca8850(0x89)](_0x472280=>JSON[_0xca8850(0x9b)](_0x472280));}catch(_0x251c4f){return console[_0xca8850(0x9f)](_0xca8850(0x87),_0x251c4f),[];}}['clearLogs'](){const _0x3210f3=a235_0x2ce089;try{a235_0x551d10[_0x3210f3(0x7c)](this['logFilePath'])&&a235_0x551d10[_0x3210f3(0xa5)](this[_0x3210f3(0xa4)],'','utf8');}catch(_0xc05358){console[_0x3210f3(0x9f)](_0x3210f3(0xa7),_0xc05358);}}[a235_0x2ce089(0x8a)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a237_0x2b967a=a237_0x1614;(function(_0x5143ea,_0x72ac36){const _0x25bfb9=a237_0x1614,_0xc4604f=_0x5143ea();while(!![]){try{const _0x584a31=-parseInt(_0x25bfb9(0x11d))/0x1*(-parseInt(_0x25bfb9(0x10a))/0x2)+parseInt(_0x25bfb9(0x116))/0x3+-parseInt(_0x25bfb9(0xfc))/0x4*(-parseInt(_0x25bfb9(0x113))/0x5)+-parseInt(_0x25bfb9(0x103))/0x6*(parseInt(_0x25bfb9(0x111))/0x7)+parseInt(_0x25bfb9(0xf7))/0x8+-parseInt(_0x25bfb9(0xf8))/0x9+-parseInt(_0x25bfb9(0x10b))/0xa*(parseInt(_0x25bfb9(0x128))/0xb);if(_0x584a31===_0x72ac36)break;else _0xc4604f['push'](_0xc4604f['shift']());}catch(_0x2dc4bf){_0xc4604f['push'](_0xc4604f['shift']());}}}(a237_0x460c,0x9f6bf));function a237_0x1614(_0x41bf5b,_0x43c35a){_0x41bf5b=_0x41bf5b-0xf6;const _0x460c42=a237_0x460c();let _0x1614b0=_0x460c42[_0x41bf5b];return _0x1614b0;}import a237_0xd6a2d from'winston';import a237_0x52d924 from'node:fs';import a237_0x444a9c from'node:path';class Logger{[a237_0x2b967a(0x121)];['logFilePath'];[a237_0x2b967a(0x10e)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x388d5e){const _0x3db17c=a237_0x2b967a;this[_0x3db17c(0x10e)]=_0x388d5e;}[a237_0x2b967a(0xfb)](){const _0x2e83c1=a237_0x2b967a,_0x33e72f=a237_0x444a9c[_0x2e83c1(0x126)](this[_0x2e83c1(0x127)]);!a237_0x52d924[_0x2e83c1(0x11e)](_0x33e72f)&&a237_0x52d924[_0x2e83c1(0x109)](_0x33e72f,{'recursive':!![]});const _0x25c4e1=a237_0xd6a2d[_0x2e83c1(0x125)]['combine'](a237_0xd6a2d[_0x2e83c1(0x125)][_0x2e83c1(0xf6)](),a237_0xd6a2d[_0x2e83c1(0x125)]['errors']({'stack':!![]}),a237_0xd6a2d[_0x2e83c1(0x125)][_0x2e83c1(0x12b)](_0x4d66eb=>{const _0x2d8967=_0x2e83c1,_0x152d7c={'timestamp':_0x4d66eb[_0x2d8967(0xf6)]||new Date()[_0x2d8967(0x12a)](),'level':_0x4d66eb[_0x2d8967(0x115)]||'info','command':_0x4d66eb[_0x2d8967(0x10d)]||_0x2d8967(0x10c),'rawCommand':_0x4d66eb['rawCommand']||this[_0x2d8967(0x10e)]||undefined,'message':_0x4d66eb[_0x2d8967(0x124)]||'','duration':_0x4d66eb[_0x2d8967(0x105)]||undefined,'details':_0x4d66eb[_0x2d8967(0x123)]||undefined};return JSON['stringify'](_0x152d7c);}));this['winstonLogger']=a237_0xd6a2d[_0x2e83c1(0xf9)]({'level':'info','format':_0x25c4e1,'transports':[new a237_0xd6a2d[(_0x2e83c1(0x117))][(_0x2e83c1(0x122))]({'filename':this[_0x2e83c1(0x127)],'level':'info'})],'silent':![]}),a237_0xd6a2d['addColors']({'success':_0x2e83c1(0xff),'error':'red','warn':_0x2e83c1(0x11f),'info':_0x2e83c1(0x102)});}[a237_0x2b967a(0xfa)](_0xc9f586){const _0x5048da=a237_0x2b967a;this[_0x5048da(0x127)]=a237_0x444a9c[_0x5048da(0x104)](_0xc9f586,'.lovrabet.log'),this[_0x5048da(0x121)]&&this['winstonLogger'][_0x5048da(0x112)](),this[_0x5048da(0xfb)]();}[a237_0x2b967a(0x114)](_0x1b2965,_0x1df1c9,_0x47ae82){const _0x2a2348=a237_0x2b967a;if(!this[_0x2a2348(0x127)]||!this['winstonLogger'])return;this['winstonLogger'][_0x2a2348(0x114)](_0x1df1c9,{'command':_0x1b2965,'details':_0x47ae82});}['success'](_0x431ee8,_0x2a15c2,_0x53d3ec,_0x3024ef){const _0x36776d=a237_0x2b967a;if(!this[_0x36776d(0x127)]||!this[_0x36776d(0x121)])return;this[_0x36776d(0x121)][_0x36776d(0x106)](_0x36776d(0x114),_0x2a15c2,{'level':'success','command':_0x431ee8,'duration':_0x53d3ec,'details':_0x3024ef});}[a237_0x2b967a(0x11b)](_0x3b3730,_0x5d7e91,_0x55336f){const _0x56fe81=a237_0x2b967a;if(!this[_0x56fe81(0x127)]||!this[_0x56fe81(0x121)])return;this[_0x56fe81(0x121)][_0x56fe81(0x11b)](_0x5d7e91,{'command':_0x3b3730,'details':_0x55336f});}[a237_0x2b967a(0x101)](_0x4fbd75,_0x154619,_0x5d9d58){const _0x25fba3=a237_0x2b967a;if(!this['logFilePath']||!this[_0x25fba3(0x121)])return;this['winstonLogger'][_0x25fba3(0x101)](_0x154619,{'command':_0x4fbd75,'details':_0x5d9d58});}async[a237_0x2b967a(0xfe)](_0x392d10,_0x5a7ba3,_0x1591cf){const _0x241b11=a237_0x2b967a,_0x47e0df=Date[_0x241b11(0x110)]();this[_0x241b11(0x114)](_0x392d10,'开始执行:\x20'+_0x5a7ba3);try{const _0x106d5a=await _0x1591cf(),_0x37bebb=Date[_0x241b11(0x110)]()-_0x47e0df;return this['success'](_0x392d10,_0x241b11(0x100)+_0x5a7ba3,_0x37bebb),_0x106d5a;}catch(_0x504684){const _0x51769c=Date[_0x241b11(0x110)]()-_0x47e0df;this[_0x241b11(0x11b)](_0x392d10,_0x241b11(0x118)+_0x5a7ba3,{'error':_0x504684 instanceof Error?_0x504684[_0x241b11(0x124)]:String(_0x504684),'duration':_0x51769c});throw _0x504684;}}['readLogs'](){const _0x5aeeec=a237_0x2b967a;try{if(!a237_0x52d924[_0x5aeeec(0x11e)](this[_0x5aeeec(0x127)]))return[];const _0xc3187c=a237_0x52d924[_0x5aeeec(0x11c)](this[_0x5aeeec(0x127)],_0x5aeeec(0x120));return _0xc3187c[_0x5aeeec(0x129)]('\x0a')[_0x5aeeec(0xfd)](_0x2d9468=>_0x2d9468[_0x5aeeec(0x108)]())[_0x5aeeec(0x119)](_0x10ad65=>JSON['parse'](_0x10ad65));}catch(_0x3f967f){return console[_0x5aeeec(0x101)](_0x5aeeec(0x11a),_0x3f967f),[];}}['clearLogs'](){const _0x544a69=a237_0x2b967a;try{a237_0x52d924[_0x544a69(0x11e)](this['logFilePath'])&&a237_0x52d924[_0x544a69(0x107)](this[_0x544a69(0x127)],'',_0x544a69(0x120));}catch(_0xb375cd){console[_0x544a69(0x101)]('Failed\x20to\x20clear\x20logs:',_0xb375cd);}}[a237_0x2b967a(0x10f)](){const _0x2336af=a237_0x2b967a;return this[_0x2336af(0x121)];}}function a237_0x460c(){const _0x4529fd=['log','writeFileSync','trim','mkdirSync','564486cXcNrz','4207800wqtDXJ','unknown','command','currentRawCommand','getWinstonInstance','now','119GQeMbb','clear','965oLoFsW','info','level','2712918CUbrJA','transports','失败:\x20','map','Failed\x20to\x20read\x20logs:','error','readFileSync','2EZNrFx','existsSync','yellow','utf8','winstonLogger','File','details','message','format','dirname','logFilePath','11viXZYP','split','toISOString','printf','timestamp','10397824hSZijB','7868106dKnCnR','createLogger','setLogPath','initWinstonLogger','4912pSsWXE','filter','logTask','green','完成:\x20','warn','blue','373242MpAjgf','join','duration'];a237_0x460c=function(){return _0x4529fd;};return a237_0x460c();}export const logger=new Logger();
@@ -1 +1 @@
1
- function a236_0x5f10(){const _0x571977=['917464YeYqgp','1oemPrd','Invalid\x20JSON\x20for\x20--params:\x20','153244ohsXOX','8281PrhkGf','2064GRzbUw','10ATFVmv','--params\x20must\x20be\x20a\x20JSON\x20object','559386EhPrdd','166476QLyykL','15goSJYD','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3313563mOXYnC','493264fXQVPV'];a236_0x5f10=function(){return _0x571977;};return a236_0x5f10();}(function(_0x57369b,_0x337ecc){const _0xcbcd99=a236_0x445d,_0x52e4c2=_0x57369b();while(!![]){try{const _0x23e8d3=-parseInt(_0xcbcd99(0xba))/0x1*(parseInt(_0xcbcd99(0xb8))/0x2)+-parseInt(_0xcbcd99(0xc2))/0x3+parseInt(_0xcbcd99(0xbc))/0x4*(-parseInt(_0xcbcd99(0xc3))/0x5)+-parseInt(_0xcbcd99(0xbe))/0x6*(-parseInt(_0xcbcd99(0xbd))/0x7)+-parseInt(_0xcbcd99(0xb9))/0x8+parseInt(_0xcbcd99(0xc1))/0x9+-parseInt(_0xcbcd99(0xbf))/0xa*(-parseInt(_0xcbcd99(0xb7))/0xb);if(_0x23e8d3===_0x337ecc)break;else _0x52e4c2['push'](_0x52e4c2['shift']());}catch(_0xb8f7bd){_0x52e4c2['push'](_0x52e4c2['shift']());}}}(a236_0x5f10,0x3a407));import{CliErrors}from'../errors.js';function a236_0x445d(_0x25bee4,_0x4642fc){_0x25bee4=_0x25bee4-0xb7;const _0x5f1099=a236_0x5f10();let _0x445d2f=_0x5f1099[_0x25bee4];return _0x445d2f;}export function parseJsonParams(_0x41f09f){const _0x2d601b=a236_0x445d;if(!_0x41f09f)return undefined;let _0x167ce4;try{_0x167ce4=JSON['parse'](_0x41f09f);}catch{throw CliErrors['validation'](_0x2d601b(0xbb)+_0x41f09f);}if(!_0x167ce4||typeof _0x167ce4!=='object'||Array['isArray'](_0x167ce4))throw CliErrors['validation'](_0x2d601b(0xc0),_0x2d601b(0xc4));return _0x167ce4;}
1
+ function a238_0x4d8c(){const _0x55b3fb=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1992FYgmpe','8708539snhNjB','25497eaRtEq','2440WfgiaM','isArray','1559958BwhyZs','11649NbFHUm','validation','1cmfzeI','15wvtDbr','2420727AcrYXf','5112400KrRAzh','--params\x20must\x20be\x20a\x20JSON\x20object','8weLMSc','Invalid\x20JSON\x20for\x20--params:\x20','2519080zrMnWj'];a238_0x4d8c=function(){return _0x55b3fb;};return a238_0x4d8c();}(function(_0x4ca21c,_0x19df52){const _0x415cc3=a238_0xb113,_0x2474d1=_0x4ca21c();while(!![]){try{const _0x4f86a8=parseInt(_0x415cc3(0xb7))/0x1*(parseInt(_0x415cc3(0xad))/0x2)+parseInt(_0x415cc3(0xa8))/0x3+-parseInt(_0x415cc3(0xa9))/0x4+parseInt(_0x415cc3(0xa7))/0x5*(-parseInt(_0x415cc3(0xb4))/0x6)+parseInt(_0x415cc3(0xb0))/0x7*(parseInt(_0x415cc3(0xab))/0x8)+-parseInt(_0x415cc3(0xb1))/0x9*(parseInt(_0x415cc3(0xb2))/0xa)+parseInt(_0x415cc3(0xb5))/0xb*(parseInt(_0x415cc3(0xaf))/0xc);if(_0x4f86a8===_0x19df52)break;else _0x2474d1['push'](_0x2474d1['shift']());}catch(_0x1f6e16){_0x2474d1['push'](_0x2474d1['shift']());}}}(a238_0x4d8c,0xb3edd));function a238_0xb113(_0x1431b2,_0x44291c){_0x1431b2=_0x1431b2-0xa7;const _0x4d8c09=a238_0x4d8c();let _0xb11359=_0x4d8c09[_0x1431b2];return _0xb11359;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x399bd9){const _0x846750=a238_0xb113;if(!_0x399bd9)return undefined;let _0x457b83;try{_0x457b83=JSON['parse'](_0x399bd9);}catch{throw CliErrors[_0x846750(0xb6)](_0x846750(0xac)+_0x399bd9);}if(!_0x457b83||typeof _0x457b83!=='object'||Array[_0x846750(0xb3)](_0x457b83))throw CliErrors[_0x846750(0xb6)](_0x846750(0xaa),_0x846750(0xae));return _0x457b83;}
@@ -1 +1 @@
1
- const a237_0x507c43=a237_0x31ad;(function(_0x203137,_0x24dff7){const _0x50b9fa=a237_0x31ad,_0x46c072=_0x203137();while(!![]){try{const _0x262dcf=parseInt(_0x50b9fa(0x143))/0x1*(parseInt(_0x50b9fa(0x14b))/0x2)+parseInt(_0x50b9fa(0x14e))/0x3*(parseInt(_0x50b9fa(0x142))/0x4)+parseInt(_0x50b9fa(0x144))/0x5*(-parseInt(_0x50b9fa(0x14d))/0x6)+parseInt(_0x50b9fa(0x145))/0x7+-parseInt(_0x50b9fa(0x14a))/0x8*(-parseInt(_0x50b9fa(0x146))/0x9)+-parseInt(_0x50b9fa(0x148))/0xa*(parseInt(_0x50b9fa(0x14c))/0xb)+-parseInt(_0x50b9fa(0x147))/0xc;if(_0x262dcf===_0x24dff7)break;else _0x46c072['push'](_0x46c072['shift']());}catch(_0x5664ad){_0x46c072['push'](_0x46c072['shift']());}}}(a237_0x4de4,0x9fb51));function a237_0x31ad(_0x3aaa8d,_0x5b9962){_0x3aaa8d=_0x3aaa8d-0x141;const _0x4de4d9=a237_0x4de4();let _0x31ad0e=_0x4de4d9[_0x3aaa8d];return _0x31ad0e;}export const isWindows=process[a237_0x507c43(0x149)]===a237_0x507c43(0x141);export function resolveNpmBin(_0x2dbf06){return isWindows?_0x2dbf06+'.cmd':_0x2dbf06;}function a237_0x4de4(){const _0x5c2105=['4GpgNjI','36749RDrsYc','19230nbyhSl','5021471FzmVur','9ehfVRD','16809996yIrcVk','475500KuwNMl','platform','6930512vAhKXY','26kWnVlp','110AKIqaM','396VxWabX','2168778nqVixr','win32'];a237_0x4de4=function(){return _0x5c2105;};return a237_0x4de4();}
1
+ function a239_0x424c(_0x38c7a6,_0x5b55d5){_0x38c7a6=_0x38c7a6-0xcc;const _0x2862a6=a239_0x2862();let _0x424c35=_0x2862a6[_0x38c7a6];return _0x424c35;}const a239_0x34ea12=a239_0x424c;(function(_0x208afb,_0x26f77c){const _0x31ccde=a239_0x424c,_0x44623e=_0x208afb();while(!![]){try{const _0x4b88fc=-parseInt(_0x31ccde(0xd4))/0x1+-parseInt(_0x31ccde(0xce))/0x2*(-parseInt(_0x31ccde(0xd5))/0x3)+parseInt(_0x31ccde(0xd6))/0x4+-parseInt(_0x31ccde(0xd2))/0x5+-parseInt(_0x31ccde(0xcc))/0x6*(-parseInt(_0x31ccde(0xcd))/0x7)+parseInt(_0x31ccde(0xd0))/0x8+-parseInt(_0x31ccde(0xd1))/0x9;if(_0x4b88fc===_0x26f77c)break;else _0x44623e['push'](_0x44623e['shift']());}catch(_0x172c5a){_0x44623e['push'](_0x44623e['shift']());}}}(a239_0x2862,0x4a6ee));export const isWindows=process[a239_0x34ea12(0xd3)]===a239_0x34ea12(0xcf);function a239_0x2862(){const _0x1609a8=['548637FulBSm','69567YwkVpX','2430788puewaU','1315548mXWSkc','14luIVrv','42TRHgTu','win32','2616312gFUYuK','7004799qgoWpg','1141975EuzrPY','platform'];a239_0x2862=function(){return _0x1609a8;};return a239_0x2862();}export function resolveNpmBin(_0x5334a4){return isWindows?_0x5334a4+'.cmd':_0x5334a4;}
@@ -1 +1 @@
1
- const a238_0x5befcc=a238_0x3861;(function(_0x30297f,_0x57810c){const _0x1f1161=a238_0x3861,_0x3ec097=_0x30297f();while(!![]){try{const _0x5d81d7=parseInt(_0x1f1161(0x1bd))/0x1*(-parseInt(_0x1f1161(0x1cd))/0x2)+parseInt(_0x1f1161(0x1d3))/0x3+parseInt(_0x1f1161(0x1cb))/0x4*(-parseInt(_0x1f1161(0x1d2))/0x5)+-parseInt(_0x1f1161(0x1d5))/0x6+-parseInt(_0x1f1161(0x1c3))/0x7*(parseInt(_0x1f1161(0x1c6))/0x8)+parseInt(_0x1f1161(0x1c7))/0x9*(parseInt(_0x1f1161(0x1ce))/0xa)+parseInt(_0x1f1161(0x1c2))/0xb*(parseInt(_0x1f1161(0x1be))/0xc);if(_0x5d81d7===_0x57810c)break;else _0x3ec097['push'](_0x3ec097['shift']());}catch(_0x4dfd8c){_0x3ec097['push'](_0x3ec097['shift']());}}}(a238_0x17fc,0x50e0c));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 getRulesCdnUrl(){const _0x1d4f5e=getTemplateBaseUrl();return _0x1d4f5e+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a238_0x5befcc(0x1d4));export async function fetchRulesFromCDN(){const _0x428a33=a238_0x5befcc,_0x9e79e9=getRulesCdnUrl(),_0x28df03=await fetch(_0x9e79e9,{'headers':{'Accept':'application/json'}});if(!_0x28df03['ok'])throw new Error(_0x428a33(0x1ca)+_0x28df03[_0x428a33(0x1bf)]+'\x20'+_0x28df03['statusText']);const _0x5c70c9=await _0x28df03[_0x428a33(0x1c8)]();if(!_0x5c70c9['content']||typeof _0x5c70c9[_0x428a33(0x1bc)]!==_0x428a33(0x1d1))throw new Error(_0x428a33(0x1c0));return _0x5c70c9;}function a238_0x3861(_0xbdcb7c,_0x47c063){_0xbdcb7c=_0xbdcb7c-0x1bc;const _0x17fc7e=a238_0x17fc();let _0x3861f0=_0x17fc7e[_0xbdcb7c];return _0x3861f0;}function a238_0x17fc(){const _0xdeea45=['961314BXkzjd','content','1sUQCDC','13240116KEGTbS','status','CDN\x20返回数据格式错误','本地模板文件不存在:\x20','11JPLiBJ','427iOyVQS','agents.md','lastUpdated','61464grsmBo','11349Dhyycq','json','catch','CDN\x20请求失败:\x20','1312xNJkNK','.cursor/rules','467692SShATo','4780NerfQo','lovrabet_rules.mdc','utf-8','string','8730RhhvyI','181773PBvXhW','../../templates/rules/lovrabet_rules.mdc.tpl'];a238_0x17fc=function(){return _0xdeea45;};return a238_0x17fc();}export async function getRulesContent(){const _0x35ef6c=a238_0x5befcc;try{const _0x572e57=await fetchRulesFromCDN();return _0x572e57[_0x35ef6c(0x1bc)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2e3699=a238_0x5befcc;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2e3699(0x1d0));throw new Error(_0x2e3699(0x1c1)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x28f26a){const _0x35f2ef=a238_0x5befcc,_0x439c5c=await fetchRulesFromCDN()[_0x35f2ef(0x1c9)](()=>null);let _0x335e2f;_0x439c5c?(_0x335e2f=_0x439c5c[_0x35f2ef(0x1bc)],_0x439c5c[_0x35f2ef(0x1c5)]&&(_0x335e2f=appendUpdateTime(_0x335e2f,_0x439c5c[_0x35f2ef(0x1c5)]))):_0x335e2f=readLocalTemplate();const _0x35205f=dirname(_0x28f26a);!existsSync(_0x35205f)&&mkdirSync(_0x35205f,{'recursive':!![]}),writeFileSync(_0x28f26a,_0x335e2f,_0x35f2ef(0x1d0));}export async function copyRulesToCursor(_0x1f2e5e){const _0x1c3fa6=a238_0x5befcc,_0x3fa695=join(_0x1f2e5e,_0x1c3fa6(0x1cc)),_0x487364=join(_0x3fa695,_0x1c3fa6(0x1cf));if(existsSync(_0x487364))return![];return await writeRulesFile(_0x487364),!![];}export async function copyRulesToAgentsMd(_0x2fe66b){const _0x53f5fb=a238_0x5befcc,_0x29e2b0=join(_0x2fe66b,_0x53f5fb(0x1c4));if(existsSync(_0x29e2b0))return![];return await writeRulesFile(_0x29e2b0),!![];}
1
+ (function(_0x377ac4,_0xef3ac8){const _0x1c631b=a240_0x2e7a,_0x13dfc2=_0x377ac4();while(!![]){try{const _0x35731b=parseInt(_0x1c631b(0xa5))/0x1+parseInt(_0x1c631b(0xa6))/0x2+parseInt(_0x1c631b(0xaf))/0x3+parseInt(_0x1c631b(0xb6))/0x4+-parseInt(_0x1c631b(0xa7))/0x5*(parseInt(_0x1c631b(0xb5))/0x6)+-parseInt(_0x1c631b(0xb1))/0x7*(-parseInt(_0x1c631b(0xb2))/0x8)+-parseInt(_0x1c631b(0xa3))/0x9;if(_0x35731b===_0xef3ac8)break;else _0x13dfc2['push'](_0x13dfc2['shift']());}catch(_0x4c39bc){_0x13dfc2['push'](_0x13dfc2['shift']());}}}(a240_0x1081,0x60ed5));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 getRulesCdnUrl(){const _0x38724b=getTemplateBaseUrl();return _0x38724b+'/rules/rules.json';}function a240_0x1081(){const _0x57e275=['content','2280639eYTFiI','json','4325986hbexlh','8GfZtjK','status','utf-8','666zdXPmO','314820tCjBbd','application/json','14298948RqzNIu','.cursor/rules','303696gnUIIz','978928RcRQYS','11905VikAHR','CDN\x20返回数据格式错误','CDN\x20请求失败:\x20','lastUpdated','agents.md','本地模板文件不存在:\x20','string'];a240_0x1081=function(){return _0x57e275;};return a240_0x1081();}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x5ae419=a240_0x2e7a,_0xdbf92=getRulesCdnUrl(),_0x940c99=await fetch(_0xdbf92,{'headers':{'Accept':_0x5ae419(0xa2)}});if(!_0x940c99['ok'])throw new Error(_0x5ae419(0xa9)+_0x940c99[_0x5ae419(0xb3)]+'\x20'+_0x940c99['statusText']);const _0x3e7cc5=await _0x940c99[_0x5ae419(0xb0)]();if(!_0x3e7cc5['content']||typeof _0x3e7cc5['content']!==_0x5ae419(0xad))throw new Error(_0x5ae419(0xa8));return _0x3e7cc5;}export async function getRulesContent(){const _0x4a7ecd=a240_0x2e7a;try{const _0x5b87c3=await fetchRulesFromCDN();return _0x5b87c3[_0x4a7ecd(0xae)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x162ff3=a240_0x2e7a;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x162ff3(0xb4));throw new Error(_0x162ff3(0xac)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x47275b){const _0x3c6711=a240_0x2e7a,_0xc289ce=await fetchRulesFromCDN()['catch'](()=>null);let _0x43211f;_0xc289ce?(_0x43211f=_0xc289ce[_0x3c6711(0xae)],_0xc289ce[_0x3c6711(0xaa)]&&(_0x43211f=appendUpdateTime(_0x43211f,_0xc289ce[_0x3c6711(0xaa)]))):_0x43211f=readLocalTemplate();const _0x2b0fea=dirname(_0x47275b);!existsSync(_0x2b0fea)&&mkdirSync(_0x2b0fea,{'recursive':!![]}),writeFileSync(_0x47275b,_0x43211f,_0x3c6711(0xb4));}function a240_0x2e7a(_0x3579d0,_0x44c08c){_0x3579d0=_0x3579d0-0xa2;const _0x1081fc=a240_0x1081();let _0x2e7a20=_0x1081fc[_0x3579d0];return _0x2e7a20;}export async function copyRulesToCursor(_0x1387eb){const _0x485bd0=a240_0x2e7a,_0x43b9f6=join(_0x1387eb,_0x485bd0(0xa4)),_0x5e62a6=join(_0x43b9f6,'lovrabet_rules.mdc');if(existsSync(_0x5e62a6))return![];return await writeRulesFile(_0x5e62a6),!![];}export async function copyRulesToAgentsMd(_0x20edc8){const _0x247606=a240_0x2e7a,_0x46d72c=join(_0x20edc8,_0x247606(0xab));if(existsSync(_0x46d72c))return![];return await writeRulesFile(_0x46d72c),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x17ff34){return new Promise(_0xa41a11=>setTimeout(_0xa41a11,_0x17ff34));}
1
+ export function sleep(_0xe74c17){return new Promise(_0x237703=>setTimeout(_0x237703,_0xe74c17));}
@@ -1 +1 @@
1
- const a240_0x3caaf3=a240_0x18d8;(function(_0x1f0966,_0x469917){const _0x4b30e3=a240_0x18d8,_0x5aaa5b=_0x1f0966();while(!![]){try{const _0x14edde=parseInt(_0x4b30e3(0x1c2))/0x1+-parseInt(_0x4b30e3(0x204))/0x2*(-parseInt(_0x4b30e3(0x1db))/0x3)+-parseInt(_0x4b30e3(0x1d1))/0x4*(parseInt(_0x4b30e3(0x1c4))/0x5)+-parseInt(_0x4b30e3(0x203))/0x6*(-parseInt(_0x4b30e3(0x1d5))/0x7)+-parseInt(_0x4b30e3(0x1f6))/0x8+parseInt(_0x4b30e3(0x1ea))/0x9*(parseInt(_0x4b30e3(0x1e2))/0xa)+parseInt(_0x4b30e3(0x1e8))/0xb*(-parseInt(_0x4b30e3(0x1cd))/0xc);if(_0x14edde===_0x469917)break;else _0x5aaa5b['push'](_0x5aaa5b['shift']());}catch(_0x2a249e){_0x5aaa5b['push'](_0x5aaa5b['shift']());}}}(a240_0x24e7,0x3e651));function a240_0x24e7(){const _0x2e04ff=['开始处理模板内容替换','toDisplayTitle','success','info','replaceContent','name:\x20\x22','.js','809200APaIOI','tableName:\x20\x22','datasetCode:\x20\x22','mkdir','toComponentName','.scss','LOVRABET','readdir','getMinutes','replace','\x0a\x20\x20\x20\x20{\x20','.jsx','模板内容替换完成','6ERFvze','2442eoDhOm','isFile','join','promises','processFile','.ts','262598mBmOJV','.md','1725275GYsINF','replaceApiContent','toLowerCase','alias','.tsx','getDate','writeFile','template','split','12lxangb','charAt','now','datasetCode','4AwCCYm','getHours','\x20},','YourModel','2203439JkNwWu','pad','模板内容替换失败','endsWith','padStart','includes','291ZCBBga','alias:\x20\x22','name','.json','pop','push','.tpl','7870GAMGKk','readFile','toUpperCase','processDirectory','isDirectory','getSeconds','3492445yQXGIZ','map','3699IirOmJ','message','getFullYear','slice','toISOString'];a240_0x24e7=function(){return _0x2e04ff;};return a240_0x24e7();}import a240_0x1ceaf0 from'node:fs';function a240_0x18d8(_0x4f45ea,_0x266f2c){_0x4f45ea=_0x4f45ea-0x1c1;const _0x24e7a2=a240_0x24e7();let _0x18d82b=_0x24e7a2[_0x4f45ea];return _0x18d82b;}import a240_0x5f3431 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3487c0){const _0x4f1fe3=a240_0x18d8;return String(_0x3487c0)[_0x4f1fe3(0x1d9)](0x2,'0');}static['formatLocalTimestamp'](_0x547533){const _0x4b046e=a240_0x18d8,_0x5cfffa=_0x547533[_0x4b046e(0x1ec)](),_0x166119=this[_0x4b046e(0x1d6)](_0x547533['getMonth']()+0x1),_0x2645b9=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1c9)]()),_0x535ac5=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1d2)]()),_0x2e3326=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1fe)]()),_0x263a6f=this[_0x4b046e(0x1d6)](_0x547533[_0x4b046e(0x1e7)]());return{'createdAt':_0x5cfffa+'-'+_0x166119+'-'+_0x2645b9+'\x20'+_0x535ac5+':'+_0x2e3326+':'+_0x263a6f,'createdDate':_0x5cfffa+'-'+_0x166119+'-'+_0x2645b9,'createdTime':_0x535ac5+':'+_0x2e3326+':'+_0x263a6f};}static[a240_0x3caaf3(0x1fa)](_0x28203d){const _0x240fad=a240_0x3caaf3,_0x56447c=_0x28203d[_0x240fad(0x1cc)]('/')[_0x240fad(0x1df)]()||_0x28203d;return _0x56447c[_0x240fad(0x1cc)]('-')[_0x240fad(0x1e9)](_0x11d0f5=>_0x11d0f5[_0x240fad(0x1ce)](0x0)['toUpperCase']()+_0x11d0f5[_0x240fad(0x1ed)](0x1)['toLowerCase']())[_0x240fad(0x206)]('');}static[a240_0x3caaf3(0x1f0)](_0x585cbd){const _0x5a7c34=a240_0x3caaf3,_0x53573e=_0x585cbd['split']('/')[_0x5a7c34(0x1df)]()||_0x585cbd;return _0x53573e[_0x5a7c34(0x1cc)]('-')[_0x5a7c34(0x1e9)](_0x2c84af=>_0x2c84af[_0x5a7c34(0x1ce)](0x0)[_0x5a7c34(0x1e4)]()+_0x2c84af[_0x5a7c34(0x1ed)](0x1)[_0x5a7c34(0x1c6)]())[_0x5a7c34(0x206)]('\x20');}static[a240_0x3caaf3(0x1f3)](_0x52890c,_0x7e92ee,_0x43300e){const _0x3e0399=a240_0x3caaf3,_0xed19b6=this[_0x3e0399(0x1fa)](_0x7e92ee),_0x3b9437=this['toDisplayTitle'](_0x7e92ee),{createdAt:_0x5105be,createdDate:_0x5155fd,createdTime:_0x3f1d21}=this['formatLocalTimestamp'](new Date());let _0x1d07d5=_0x52890c[_0x3e0399(0x1ff)](/\{CliVersion\}/g,CLI_VERSION)[_0x3e0399(0x1ff)](/\{ComponentName\}/g,_0xed19b6)[_0x3e0399(0x1ff)](/\{DisplayTitle\}/g,_0x3b9437)[_0x3e0399(0x1ff)](/\{PageName\}/g,_0x7e92ee)[_0x3e0399(0x1ff)](/\{TemplateName\}/g,_0x43300e)[_0x3e0399(0x1ff)](/\{CreatedAt\}/g,_0x5105be)[_0x3e0399(0x1ff)](/\{CreatedDate\}/g,_0x5155fd)[_0x3e0399(0x1ff)](/\{CreatedTime\}/g,_0x3f1d21);return _0x1d07d5;}static[a240_0x3caaf3(0x1c5)](_0x429dc5,_0x2ba628,_0x4af5a5,_0x234291,_0x4ee3bb,_0x2dc0ff,_0x13c883,_0x5357ce){const _0x3478e8=a240_0x3caaf3,_0xc5750f=new Date(),_0x56eb80=_0xc5750f[_0x3478e8(0x1ee)](),_0x44f190=_0x4af5a5[_0x3478e8(0x1e9)](_0x440714=>{const _0x11fe18=_0x3478e8,_0xe82ff8=[_0x11fe18(0x1f8)+_0x440714[_0x11fe18(0x1d0)]+'\x22',_0x11fe18(0x1f7)+_0x440714['tableName']+'\x22',_0x11fe18(0x1f4)+_0x440714[_0x11fe18(0x1dd)]+'\x22'];return _0x440714[_0x11fe18(0x1c7)]&&_0xe82ff8[_0x11fe18(0x1e0)](_0x11fe18(0x1dc)+_0x440714[_0x11fe18(0x1c7)]+'\x22'),_0x11fe18(0x200)+_0xe82ff8[_0x11fe18(0x206)](',\x20')+_0x11fe18(0x1d3);})[_0x3478e8(0x206)](''),_0x2d3126=_0x234291||_0x4af5a5[0x0]?.['alias']||_0x3478e8(0x1d4);let _0x56e2c6=_0x429dc5[_0x3478e8(0x1ff)](/\{AppCode\}/g,_0x2ba628)[_0x3478e8(0x1ff)](/\{ModelConfigs\}/g,_0x44f190)[_0x3478e8(0x1ff)](/\{ExampleModelName\}/g,_0x2d3126)[_0x3478e8(0x1ff)](/\{ApiFileName\}/g,_0x4ee3bb||'api')[_0x3478e8(0x1ff)](/\{ConfigName\}/g,_0x2dc0ff||'default')[_0x3478e8(0x1ff)](/\{ClientConfigParam\}/g,_0x13c883||'')[_0x3478e8(0x1ff)](/\{VarPrefix\}/g,_0x5357ce||_0x3478e8(0x1fc))[_0x3478e8(0x1ff)](/\{CreatedAt\}/g,_0x56eb80);return _0x56e2c6;}static async['processTemplate'](_0x45a5d3,_0x56d3af,_0x17a096,_0x284cf3,_0x47a917=!![]){const _0x1c8de1=a240_0x3caaf3,_0x3ef42f=Date['now']();try{_0x47a917&&logger[_0x1c8de1(0x1f2)](_0x1c8de1(0x1cb),_0x1c8de1(0x1ef),{'templatePath':_0x45a5d3,'targetPath':_0x56d3af,'pageName':_0x17a096,'templateName':_0x284cf3});await a240_0x1ceaf0[_0x1c8de1(0x207)]['mkdir'](_0x56d3af,{'recursive':!![]}),await this[_0x1c8de1(0x1e5)](_0x45a5d3,_0x56d3af,_0x17a096,_0x284cf3);if(_0x47a917){const _0xb07c2f=Date[_0x1c8de1(0x1cf)]()-_0x3ef42f;logger[_0x1c8de1(0x1f1)]('template',_0x1c8de1(0x202),_0xb07c2f,{'pageName':_0x17a096,'templateName':_0x284cf3});}}catch(_0x4599fb){if(_0x47a917){const _0x2e2124=Date[_0x1c8de1(0x1cf)]()-_0x3ef42f;logger['error'](_0x1c8de1(0x1cb),_0x1c8de1(0x1d7),{'templatePath':_0x45a5d3,'targetPath':_0x56d3af,'pageName':_0x17a096,'templateName':_0x284cf3,'error':_0x4599fb instanceof Error?_0x4599fb[_0x1c8de1(0x1eb)]:String(_0x4599fb),'duration':_0x2e2124});}throw _0x4599fb;}}static async['processDirectory'](_0x3a2c12,_0x361008,_0x131eef,_0x4506d2){const _0x4e3bfe=a240_0x3caaf3,_0x6daf17=await a240_0x1ceaf0[_0x4e3bfe(0x207)][_0x4e3bfe(0x1fd)](_0x3a2c12,{'withFileTypes':!![]});for(const _0x4c010 of _0x6daf17){const _0x26c560=a240_0x5f3431[_0x4e3bfe(0x206)](_0x3a2c12,_0x4c010[_0x4e3bfe(0x1dd)]);let _0x436658=a240_0x5f3431['join'](_0x361008,_0x4c010[_0x4e3bfe(0x1dd)]);_0x4c010['name']['endsWith'](_0x4e3bfe(0x1e1))&&(_0x436658=a240_0x5f3431['join'](_0x361008,_0x4c010['name'][_0x4e3bfe(0x1ff)](/\.tpl$/,'')));if(_0x4c010[_0x4e3bfe(0x1e6)]())await a240_0x1ceaf0[_0x4e3bfe(0x207)][_0x4e3bfe(0x1f9)](_0x436658,{'recursive':!![]}),await this[_0x4e3bfe(0x1e5)](_0x26c560,_0x436658,_0x131eef,_0x4506d2);else _0x4c010[_0x4e3bfe(0x205)]()&&await this[_0x4e3bfe(0x208)](_0x26c560,_0x436658,_0x131eef,_0x4506d2);}}static async['processFile'](_0x301e7a,_0x550af4,_0xc4250a,_0x2df0fa){const _0x4af73f=a240_0x3caaf3,_0x4d13fb=a240_0x5f3431['extname'](_0x301e7a)[_0x4af73f(0x1c6)]();_0x301e7a[_0x4af73f(0x1d8)](_0x4af73f(0x1e1))&&(_0x550af4=_0x550af4[_0x4af73f(0x1ff)](/\.tpl$/,''));const _0xf5d914=[_0x4af73f(0x1c8),_0x4af73f(0x1c1),_0x4af73f(0x201),_0x4af73f(0x1f5),_0x4af73f(0x1de),_0x4af73f(0x1c3),'.css',_0x4af73f(0x1fb),_0x4af73f(0x1e1)];if(_0xf5d914[_0x4af73f(0x1da)](_0x4d13fb)||_0x301e7a[_0x4af73f(0x1d8)](_0x4af73f(0x1e1))){const _0x485925=await a240_0x1ceaf0[_0x4af73f(0x207)][_0x4af73f(0x1e3)](_0x301e7a,'utf8'),_0x2e19ec=this[_0x4af73f(0x1f3)](_0x485925,_0xc4250a,_0x2df0fa);await a240_0x1ceaf0[_0x4af73f(0x207)][_0x4af73f(0x1ca)](_0x550af4,_0x2e19ec,'utf8');}else await a240_0x1ceaf0['promises']['copyFile'](_0x301e7a,_0x550af4);}}
1
+ const a242_0x4277a0=a242_0x5426;(function(_0x5f499b,_0x570319){const _0x4ac5d6=a242_0x5426,_0x343d50=_0x5f499b();while(!![]){try{const _0x4598b9=parseInt(_0x4ac5d6(0x178))/0x1+-parseInt(_0x4ac5d6(0x162))/0x2*(parseInt(_0x4ac5d6(0x155))/0x3)+parseInt(_0x4ac5d6(0x14f))/0x4+parseInt(_0x4ac5d6(0x165))/0x5+-parseInt(_0x4ac5d6(0x166))/0x6*(parseInt(_0x4ac5d6(0x137))/0x7)+parseInt(_0x4ac5d6(0x152))/0x8*(-parseInt(_0x4ac5d6(0x169))/0x9)+parseInt(_0x4ac5d6(0x142))/0xa*(parseInt(_0x4ac5d6(0x16a))/0xb);if(_0x4598b9===_0x570319)break;else _0x343d50['push'](_0x343d50['shift']());}catch(_0x5ad2c7){_0x343d50['push'](_0x343d50['shift']());}}}(a242_0x3bcd,0xa71a1));import a242_0x98bb09 from'node:fs';function a242_0x5426(_0x398898,_0x26bfff){_0x398898=_0x398898-0x137;const _0x3bcd43=a242_0x3bcd();let _0x54267a=_0x3bcd43[_0x398898];return _0x54267a;}import a242_0x291f44 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a242_0x3bcd(){const _0x447563=['\x20},','charAt','processFile','success','processTemplate','replaceContent','.js','\x0a\x20\x20\x20\x20{\x20','模板内容替换完成','pad','getMonth','pop','151750CyrrFY','14DMNQSi','join','info','.md','replace','.ts','readFile','formatLocalTimestamp','toISOString','getFullYear','toDisplayTitle','602830hnAwFe','alias','split','getHours','toComponentName','readdir','api','getSeconds','endsWith','writeFile','mkdir','.json','slice','2348272RwEveY','.css','message','584stLsCP','开始处理模板内容替换','name','842019dBCNNR','utf8','default','padStart','template','error','.tpl','getMinutes','map','processDirectory','isDirectory','includes','name:\x20\x22','6xNNWFM','toUpperCase','tableName:\x20\x22','4136775ZWxmpO','2274IfMaFH','now','.tsx','168309yYplqk','242cUEFEN','promises'];a242_0x3bcd=function(){return _0x447563;};return a242_0x3bcd();}export class TemplateReplacer{static[a242_0x4277a0(0x175)](_0x51bbd3){const _0x301663=a242_0x4277a0;return String(_0x51bbd3)[_0x301663(0x158)](0x2,'0');}static[a242_0x4277a0(0x13e)](_0x5dc48c){const _0x5d832d=a242_0x4277a0,_0x3a3a9a=_0x5dc48c[_0x5d832d(0x140)](),_0x3044c5=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x176)]()+0x1),_0x2889db=this['pad'](_0x5dc48c['getDate']()),_0x326982=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x145)]()),_0x19be56=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x15c)]()),_0x2ba702=this[_0x5d832d(0x175)](_0x5dc48c[_0x5d832d(0x149)]());return{'createdAt':_0x3a3a9a+'-'+_0x3044c5+'-'+_0x2889db+'\x20'+_0x326982+':'+_0x19be56+':'+_0x2ba702,'createdDate':_0x3a3a9a+'-'+_0x3044c5+'-'+_0x2889db,'createdTime':_0x326982+':'+_0x19be56+':'+_0x2ba702};}static[a242_0x4277a0(0x146)](_0x21d575){const _0x4de41c=a242_0x4277a0,_0x187cbf=_0x21d575[_0x4de41c(0x144)]('/')[_0x4de41c(0x177)]()||_0x21d575;return _0x187cbf[_0x4de41c(0x144)]('-')[_0x4de41c(0x15d)](_0x3b1ce2=>_0x3b1ce2['charAt'](0x0)[_0x4de41c(0x163)]()+_0x3b1ce2['slice'](0x1)['toLowerCase']())[_0x4de41c(0x138)]('');}static[a242_0x4277a0(0x141)](_0x565b21){const _0x40d910=a242_0x4277a0,_0x294a45=_0x565b21[_0x40d910(0x144)]('/')[_0x40d910(0x177)]()||_0x565b21;return _0x294a45['split']('-')['map'](_0x322cab=>_0x322cab[_0x40d910(0x16d)](0x0)[_0x40d910(0x163)]()+_0x322cab[_0x40d910(0x14e)](0x1)['toLowerCase']())[_0x40d910(0x138)]('\x20');}static[a242_0x4277a0(0x171)](_0xee6c2a,_0x34e3f8,_0x36f1b4){const _0x4b263a=a242_0x4277a0,_0x55ec5b=this[_0x4b263a(0x146)](_0x34e3f8),_0x228c0d=this[_0x4b263a(0x141)](_0x34e3f8),{createdAt:_0x4ec776,createdDate:_0x59021e,createdTime:_0x15d36b}=this[_0x4b263a(0x13e)](new Date());let _0x38335d=_0xee6c2a[_0x4b263a(0x13b)](/\{CliVersion\}/g,CLI_VERSION)[_0x4b263a(0x13b)](/\{ComponentName\}/g,_0x55ec5b)[_0x4b263a(0x13b)](/\{DisplayTitle\}/g,_0x228c0d)[_0x4b263a(0x13b)](/\{PageName\}/g,_0x34e3f8)[_0x4b263a(0x13b)](/\{TemplateName\}/g,_0x36f1b4)[_0x4b263a(0x13b)](/\{CreatedAt\}/g,_0x4ec776)[_0x4b263a(0x13b)](/\{CreatedDate\}/g,_0x59021e)[_0x4b263a(0x13b)](/\{CreatedTime\}/g,_0x15d36b);return _0x38335d;}static['replaceApiContent'](_0x5d37fb,_0x5871b4,_0x339a65,_0x4a76de,_0x2001b0,_0x56ae94,_0x5620d1,_0x16a49b){const _0x380288=a242_0x4277a0,_0x45d4e0=new Date(),_0x6823ed=_0x45d4e0[_0x380288(0x13f)](),_0x809163=_0x339a65[_0x380288(0x15d)](_0xc8946f=>{const _0x5a31c6=_0x380288,_0x5461a3=['datasetCode:\x20\x22'+_0xc8946f['datasetCode']+'\x22',_0x5a31c6(0x164)+_0xc8946f['tableName']+'\x22',_0x5a31c6(0x161)+_0xc8946f['name']+'\x22'];return _0xc8946f[_0x5a31c6(0x143)]&&_0x5461a3['push']('alias:\x20\x22'+_0xc8946f[_0x5a31c6(0x143)]+'\x22'),_0x5a31c6(0x173)+_0x5461a3[_0x5a31c6(0x138)](',\x20')+_0x5a31c6(0x16c);})[_0x380288(0x138)](''),_0x42e676=_0x4a76de||_0x339a65[0x0]?.[_0x380288(0x143)]||'YourModel';let _0x110dc3=_0x5d37fb[_0x380288(0x13b)](/\{AppCode\}/g,_0x5871b4)['replace'](/\{ModelConfigs\}/g,_0x809163)[_0x380288(0x13b)](/\{ExampleModelName\}/g,_0x42e676)[_0x380288(0x13b)](/\{ApiFileName\}/g,_0x2001b0||_0x380288(0x148))[_0x380288(0x13b)](/\{ConfigName\}/g,_0x56ae94||_0x380288(0x157))[_0x380288(0x13b)](/\{ClientConfigParam\}/g,_0x5620d1||'')[_0x380288(0x13b)](/\{VarPrefix\}/g,_0x16a49b||'LOVRABET')[_0x380288(0x13b)](/\{CreatedAt\}/g,_0x6823ed);return _0x110dc3;}static async[a242_0x4277a0(0x170)](_0x3899bf,_0x4a1762,_0x960b41,_0x22b934,_0x1a3877=!![]){const _0x56bf6e=a242_0x4277a0,_0x47f76a=Date[_0x56bf6e(0x167)]();try{_0x1a3877&&logger[_0x56bf6e(0x139)](_0x56bf6e(0x159),_0x56bf6e(0x153),{'templatePath':_0x3899bf,'targetPath':_0x4a1762,'pageName':_0x960b41,'templateName':_0x22b934});await a242_0x98bb09[_0x56bf6e(0x16b)][_0x56bf6e(0x14c)](_0x4a1762,{'recursive':!![]}),await this[_0x56bf6e(0x15e)](_0x3899bf,_0x4a1762,_0x960b41,_0x22b934);if(_0x1a3877){const _0x55ef81=Date[_0x56bf6e(0x167)]()-_0x47f76a;logger[_0x56bf6e(0x16f)](_0x56bf6e(0x159),_0x56bf6e(0x174),_0x55ef81,{'pageName':_0x960b41,'templateName':_0x22b934});}}catch(_0x294e64){if(_0x1a3877){const _0x69a9fd=Date[_0x56bf6e(0x167)]()-_0x47f76a;logger[_0x56bf6e(0x15a)](_0x56bf6e(0x159),'模板内容替换失败',{'templatePath':_0x3899bf,'targetPath':_0x4a1762,'pageName':_0x960b41,'templateName':_0x22b934,'error':_0x294e64 instanceof Error?_0x294e64[_0x56bf6e(0x151)]:String(_0x294e64),'duration':_0x69a9fd});}throw _0x294e64;}}static async[a242_0x4277a0(0x15e)](_0x542da1,_0x24f2b3,_0x3a40d0,_0x2f0015){const _0x1d205f=a242_0x4277a0,_0x7126d8=await a242_0x98bb09[_0x1d205f(0x16b)][_0x1d205f(0x147)](_0x542da1,{'withFileTypes':!![]});for(const _0x120820 of _0x7126d8){const _0x56241a=a242_0x291f44['join'](_0x542da1,_0x120820[_0x1d205f(0x154)]);let _0x3ae217=a242_0x291f44[_0x1d205f(0x138)](_0x24f2b3,_0x120820[_0x1d205f(0x154)]);_0x120820[_0x1d205f(0x154)]['endsWith'](_0x1d205f(0x15b))&&(_0x3ae217=a242_0x291f44[_0x1d205f(0x138)](_0x24f2b3,_0x120820[_0x1d205f(0x154)]['replace'](/\.tpl$/,'')));if(_0x120820[_0x1d205f(0x15f)]())await a242_0x98bb09['promises']['mkdir'](_0x3ae217,{'recursive':!![]}),await this[_0x1d205f(0x15e)](_0x56241a,_0x3ae217,_0x3a40d0,_0x2f0015);else _0x120820['isFile']()&&await this[_0x1d205f(0x16e)](_0x56241a,_0x3ae217,_0x3a40d0,_0x2f0015);}}static async[a242_0x4277a0(0x16e)](_0x44b377,_0x3a1096,_0x26fee1,_0xec0c32){const _0x483dc8=a242_0x4277a0,_0x2dc6e1=a242_0x291f44['extname'](_0x44b377)['toLowerCase']();_0x44b377[_0x483dc8(0x14a)](_0x483dc8(0x15b))&&(_0x3a1096=_0x3a1096[_0x483dc8(0x13b)](/\.tpl$/,''));const _0xef173c=[_0x483dc8(0x168),_0x483dc8(0x13c),'.jsx',_0x483dc8(0x172),_0x483dc8(0x14d),_0x483dc8(0x13a),_0x483dc8(0x150),'.scss',_0x483dc8(0x15b)];if(_0xef173c[_0x483dc8(0x160)](_0x2dc6e1)||_0x44b377[_0x483dc8(0x14a)](_0x483dc8(0x15b))){const _0xaee7f5=await a242_0x98bb09['promises'][_0x483dc8(0x13d)](_0x44b377,_0x483dc8(0x156)),_0x43798f=this[_0x483dc8(0x171)](_0xaee7f5,_0x26fee1,_0xec0c32);await a242_0x98bb09[_0x483dc8(0x16b)][_0x483dc8(0x14b)](_0x3a1096,_0x43798f,_0x483dc8(0x156));}else await a242_0x98bb09[_0x483dc8(0x16b)]['copyFile'](_0x44b377,_0x3a1096);}}
@@ -1 +1 @@
1
- function a241_0x376a(){const _0x29165c=['now','3suRkcN','331895sOdzuQ','number','trim','parse','stableVersion','2307192TANfKL','\x20update','https://www.npmjs.com/package/','true','latest','checkedAt','update-check.json','toLowerCase',',\x20run:\x20','2zsxoDu','utf8','rabetbase-cli','17854790bAaXnI','9050598itQkXM','gte','lastNotifiedAt','valid','3096476AShPpK','2014050mfiOac','570510QNzhme','object','7WoMZzx','.cache'];a241_0x376a=function(){return _0x29165c;};return a241_0x376a();}(function(_0x2af5d2,_0x4a2024){const _0x39d839=a241_0x72e3,_0x57449e=_0x2af5d2();while(!![]){try{const _0x455ace=-parseInt(_0x39d839(0x6a))/0x1*(-parseInt(_0x39d839(0x7e))/0x2)+parseInt(_0x39d839(0x6f))/0x3*(-parseInt(_0x39d839(0x68))/0x4)+parseInt(_0x39d839(0x70))/0x5+-parseInt(_0x39d839(0x69))/0x6+-parseInt(_0x39d839(0x6c))/0x7*(-parseInt(_0x39d839(0x75))/0x8)+-parseInt(_0x39d839(0x82))/0x9+parseInt(_0x39d839(0x81))/0xa;if(_0x455ace===_0x4a2024)break;else _0x57449e['push'](_0x57449e['shift']());}catch(_0xd38e75){_0x57449e['push'](_0x57449e['shift']());}}}(a241_0x376a,0x91597));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a241_0x5b2d72 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';function a241_0x72e3(_0x241ff4,_0x31deae){_0x241ff4=_0x241ff4-0x65;const _0x376ab3=a241_0x376a();let _0x72e372=_0x376ab3[_0x241ff4];return _0x72e372;}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 _0x4d6736=a241_0x72e3,_0x52a604=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x4d6736(0x72)]()[_0x4d6736(0x7c)]();return _0x52a604==='1'||_0x52a604===_0x4d6736(0x78)||_0x52a604==='yes';}function cacheRoot(){const _0x1f80d0=a241_0x72e3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1f80d0(0x6d));}export function getUpdateNoticeCachePath(){const _0x3e7134=a241_0x72e3;return join(cacheRoot(),_0x3e7134(0x80),_0x3e7134(0x7b));}async function readUpdateNoticeCache(){const _0x54fbe8=a241_0x72e3;try{const _0x18c4b4=await readFile(getUpdateNoticeCachePath(),_0x54fbe8(0x7f)),_0x55d562=JSON[_0x54fbe8(0x73)](_0x18c4b4);if(!_0x55d562||typeof _0x55d562!==_0x54fbe8(0x6b))return{};return _0x55d562;}catch{return{};}}async function writeUpdateNoticeCache(_0x2ad8b8){const _0x5075f8=a241_0x72e3;try{const _0x14b893=getUpdateNoticeCachePath();await mkdir(dirname(_0x14b893),{'recursive':!![]}),await writeFile(_0x14b893,JSON['stringify'](_0x2ad8b8,null,0x2)+'\x0a',_0x5075f8(0x7f));}catch{}}function isFreshCheck(_0x4a1708,_0x481214){const _0x16253d=a241_0x72e3;return typeof _0x4a1708[_0x16253d(0x7a)]===_0x16253d(0x71)&&_0x481214-_0x4a1708[_0x16253d(0x7a)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x26dc45,_0x338922,_0x154b63){const _0x34e13f=a241_0x72e3;return _0x26dc45['lastNotifiedVersion']===_0x338922&&typeof _0x26dc45[_0x34e13f(0x66)]===_0x34e13f(0x71)&&_0x154b63-_0x26dc45['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x13fb7c){const _0x1c05c2=a241_0x72e3;return _0x1c05c2(0x77)+NPM_PACKAGE_NAME+'/v/'+_0x13fb7c;}export async function resolveLatestUpdateNotice(){const _0x47f997=a241_0x72e3;if(isUpdateNoticeDisabled())return null;try{const _0x597f2c=Date[_0x47f997(0x6e)](),_0x4ded3e=getCliVersion(),_0x58b1a9=await readUpdateNoticeCache();let _0x52f48e=isFreshCheck(_0x58b1a9,_0x597f2c)?_0x58b1a9[_0x47f997(0x79)]?.[_0x47f997(0x72)]():undefined;if(!_0x52f48e&&!isFreshCheck(_0x58b1a9,_0x597f2c)){const _0x1d777c=await getCliVersionPolicy();_0x52f48e=_0x1d777c?.[_0x47f997(0x74)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x58b1a9,'checkedAt':_0x597f2c,'latest':_0x52f48e,'failed':!_0x52f48e});}if(!_0x52f48e||!a241_0x5b2d72['valid'](_0x4ded3e)||!a241_0x5b2d72[_0x47f997(0x67)](_0x52f48e))return null;if(a241_0x5b2d72[_0x47f997(0x65)](_0x4ded3e,_0x52f48e))return null;if(isRecentlyNotified(_0x58b1a9,_0x52f48e,_0x597f2c))return null;const _0x104115=CLI_BIN_NAME+_0x47f997(0x76);return await writeUpdateNoticeCache({..._0x58b1a9,'checkedAt':isFreshCheck(_0x58b1a9,_0x597f2c)?_0x58b1a9[_0x47f997(0x7a)]:_0x597f2c,'latest':_0x52f48e,'failed':![],'lastNotifiedVersion':_0x52f48e,'lastNotifiedAt':_0x597f2c}),{'command':_0x104115,'current':_0x4ded3e,'latest':_0x52f48e,'url':buildNpmVersionUrl(_0x52f48e),'message':CLI_BIN_NAME+'\x20'+_0x52f48e+'\x20available,\x20current\x20'+_0x4ded3e+_0x47f997(0x7d)+_0x104115};}catch{return null;}}
1
+ (function(_0x236e88,_0xa7d2f2){const _0x1506b8=a243_0x2cee,_0x1eb3a9=_0x236e88();while(!![]){try{const _0xd70099=-parseInt(_0x1506b8(0x1f3))/0x1+parseInt(_0x1506b8(0x1fa))/0x2*(parseInt(_0x1506b8(0x208))/0x3)+-parseInt(_0x1506b8(0x1ff))/0x4+parseInt(_0x1506b8(0x1f4))/0x5+-parseInt(_0x1506b8(0x202))/0x6*(-parseInt(_0x1506b8(0x1f7))/0x7)+-parseInt(_0x1506b8(0x1ef))/0x8*(-parseInt(_0x1506b8(0x1f9))/0x9)+parseInt(_0x1506b8(0x1f2))/0xa*(-parseInt(_0x1506b8(0x1f6))/0xb);if(_0xd70099===_0xa7d2f2)break;else _0x1eb3a9['push'](_0x1eb3a9['shift']());}catch(_0xbd9b87){_0x1eb3a9['push'](_0x1eb3a9['shift']());}}}(a243_0x2fa9,0x6d891));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a243_0x32bdfc from'semver';function a243_0x2cee(_0x15b743,_0x12ba72){_0x15b743=_0x15b743-0x1ee;const _0x2fa99e=a243_0x2fa9();let _0x2cee23=_0x2fa99e[_0x15b743];return _0x2cee23;}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 _0x554a7f=a243_0x2cee,_0x65e4ac=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x554a7f(0x1ee)]()['toLowerCase']();return _0x65e4ac==='1'||_0x65e4ac===_0x554a7f(0x206)||_0x65e4ac===_0x554a7f(0x1fb);}function cacheRoot(){const _0x4e783c=a243_0x2cee;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4e783c(0x201));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x15dd78=a243_0x2cee;try{const _0x25e323=await readFile(getUpdateNoticeCachePath(),_0x15dd78(0x1fe)),_0x189147=JSON['parse'](_0x25e323);if(!_0x189147||typeof _0x189147!==_0x15dd78(0x1fc))return{};return _0x189147;}catch{return{};}}async function writeUpdateNoticeCache(_0x107513){const _0x372d27=a243_0x2cee;try{const _0x122ce6=getUpdateNoticeCachePath();await mkdir(dirname(_0x122ce6),{'recursive':!![]}),await writeFile(_0x122ce6,JSON[_0x372d27(0x200)](_0x107513,null,0x2)+'\x0a',_0x372d27(0x1fe));}catch{}}function isFreshCheck(_0x7d6c0d,_0xa4f6d0){const _0xa6183e=a243_0x2cee;return typeof _0x7d6c0d[_0xa6183e(0x1f5)]===_0xa6183e(0x203)&&_0xa4f6d0-_0x7d6c0d[_0xa6183e(0x1f5)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x4aaa70,_0x1a2659,_0x5d0340){const _0xd28eb=a243_0x2cee;return _0x4aaa70['lastNotifiedVersion']===_0x1a2659&&typeof _0x4aaa70[_0xd28eb(0x1f0)]===_0xd28eb(0x203)&&_0x5d0340-_0x4aaa70['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x58817e){const _0x155e6e=a243_0x2cee;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x155e6e(0x1f8)+_0x58817e;}export async function resolveLatestUpdateNotice(){const _0x257948=a243_0x2cee;if(isUpdateNoticeDisabled())return null;try{const _0x4cbcfa=Date[_0x257948(0x1fd)](),_0x1a8f32=getCliVersion(),_0x4b77b2=await readUpdateNoticeCache();let _0x4ecd0e=isFreshCheck(_0x4b77b2,_0x4cbcfa)?_0x4b77b2['latest']?.[_0x257948(0x1ee)]():undefined;if(!_0x4ecd0e&&!isFreshCheck(_0x4b77b2,_0x4cbcfa)){const _0x5eeb08=await getCliVersionPolicy();_0x4ecd0e=_0x5eeb08?.[_0x257948(0x1f1)]?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x4b77b2,'checkedAt':_0x4cbcfa,'latest':_0x4ecd0e,'failed':!_0x4ecd0e});}if(!_0x4ecd0e||!a243_0x32bdfc[_0x257948(0x205)](_0x1a8f32)||!a243_0x32bdfc['valid'](_0x4ecd0e))return null;if(a243_0x32bdfc['gte'](_0x1a8f32,_0x4ecd0e))return null;if(isRecentlyNotified(_0x4b77b2,_0x4ecd0e,_0x4cbcfa))return null;const _0x333a88=CLI_BIN_NAME+_0x257948(0x204);return await writeUpdateNoticeCache({..._0x4b77b2,'checkedAt':isFreshCheck(_0x4b77b2,_0x4cbcfa)?_0x4b77b2[_0x257948(0x1f5)]:_0x4cbcfa,'latest':_0x4ecd0e,'failed':![],'lastNotifiedVersion':_0x4ecd0e,'lastNotifiedAt':_0x4cbcfa}),{'command':_0x333a88,'current':_0x1a8f32,'latest':_0x4ecd0e,'url':buildNpmVersionUrl(_0x4ecd0e),'message':CLI_BIN_NAME+'\x20'+_0x4ecd0e+'\x20available,\x20current\x20'+_0x1a8f32+_0x257948(0x207)+_0x333a88};}catch{return null;}}function a243_0x2fa9(){const _0x1b07b9=['1126508TxlgyK','stringify','.cache','10338BWaEyD','number','\x20update','valid','true',',\x20run:\x20','2919oZuXGH','trim','3744SetjyY','lastNotifiedAt','stableVersion','10DQayyX','529651EpGLWY','1920515rNhqpK','checkedAt','5585371BbgtiQ','1057lmBHAx','/v/','4689rLnGBg','1808oByDwz','yes','object','now','utf8'];a243_0x2fa9=function(){return _0x1b07b9;};return a243_0x2fa9();}
@@ -1 +1 @@
1
- (function(_0x5f0375,_0x3235f3){var _0x537dde=a242_0x4fbf,_0x2cecfa=_0x5f0375();while(!![]){try{var _0x429fdd=-parseInt(_0x537dde(0x17d))/0x1*(parseInt(_0x537dde(0x179))/0x2)+-parseInt(_0x537dde(0x176))/0x3+parseInt(_0x537dde(0x177))/0x4+parseInt(_0x537dde(0x178))/0x5+-parseInt(_0x537dde(0x175))/0x6+-parseInt(_0x537dde(0x17c))/0x7*(-parseInt(_0x537dde(0x17e))/0x8)+-parseInt(_0x537dde(0x17b))/0x9*(-parseInt(_0x537dde(0x17a))/0xa);if(_0x429fdd===_0x3235f3)break;else _0x2cecfa['push'](_0x2cecfa['shift']());}catch(_0x4573ba){_0x2cecfa['push'](_0x2cecfa['shift']());}}}(a242_0x2040,0x36360));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}function a242_0x4fbf(_0x533e68,_0x2e7f11){_0x533e68=_0x533e68-0x175;var _0x2040d9=a242_0x2040();var _0x4fbffa=_0x2040d9[_0x533e68];return _0x4fbffa;}function a242_0x2040(){var _0x28a402=['833HzhzMu','8SOXeAA','17144DDFWBX','1051704ABeEqB','389838oKSUQv','1315572nSPiBO','331085RvzdhS','36724AhyjXU','1730hjXphG','1251HRSGRv'];a242_0x2040=function(){return _0x28a402;};return a242_0x2040();}
1
+ (function(_0x3cb534,_0x4ae191){var _0x594e41=a244_0x513f,_0x5e80af=_0x3cb534();while(!![]){try{var _0x4e22fa=parseInt(_0x594e41(0x135))/0x1+parseInt(_0x594e41(0x137))/0x2+parseInt(_0x594e41(0x12e))/0x3*(-parseInt(_0x594e41(0x134))/0x4)+-parseInt(_0x594e41(0x133))/0x5*(parseInt(_0x594e41(0x136))/0x6)+-parseInt(_0x594e41(0x131))/0x7+-parseInt(_0x594e41(0x132))/0x8+-parseInt(_0x594e41(0x130))/0x9*(-parseInt(_0x594e41(0x12f))/0xa);if(_0x4e22fa===_0x4ae191)break;else _0x5e80af['push'](_0x5e80af['shift']());}catch(_0x247953){_0x5e80af['push'](_0x5e80af['shift']());}}}(a244_0x3482,0xf1fec));import{VERSION}from'../generated/build-info.js';function a244_0x513f(_0x3ee667,_0xcbecfd){_0x3ee667=_0x3ee667-0x12e;var _0x34825c=a244_0x3482();var _0x513f0e=_0x34825c[_0x3ee667];return _0x513f0e;}export function getCliVersion(){return VERSION;}function a244_0x3482(){var _0x22d6e2=['889600eWHISh','5831382jWqOhO','311288XkfNtj','5961ZpnhJq','10LtyMfn','30447189wvZhlY','979356cLkScM','8714672fpFfXw','5PmnmzK','2488alnbbI'];a244_0x3482=function(){return _0x22d6e2;};return a244_0x3482();}
@@ -1 +1 @@
1
- function a243_0x4cb4(_0x9c8cf4,_0x5ae6f5){_0x9c8cf4=_0x9c8cf4-0xb9;var _0xe2535a=a243_0xe253();var _0x4cb41d=_0xe2535a[_0x9c8cf4];return _0x4cb41d;}(function(_0x49c9b2,_0x20edce){var _0x223ee4=a243_0x4cb4,_0x1d24f4=_0x49c9b2();while(!![]){try{var _0x26e827=parseInt(_0x223ee4(0xc0))/0x1*(parseInt(_0x223ee4(0xbd))/0x2)+parseInt(_0x223ee4(0xbf))/0x3+-parseInt(_0x223ee4(0xb9))/0x4+parseInt(_0x223ee4(0xba))/0x5+-parseInt(_0x223ee4(0xbc))/0x6+-parseInt(_0x223ee4(0xbe))/0x7+-parseInt(_0x223ee4(0xbb))/0x8;if(_0x26e827===_0x20edce)break;else _0x1d24f4['push'](_0x1d24f4['shift']());}catch(_0x1ea8a2){_0x1d24f4['push'](_0x1d24f4['shift']());}}}(a243_0xe253,0x835ce));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5ac930,_0x430f32){setActiveCookie(_0x5ac930);try{return await _0x430f32();}finally{clearActiveCookie();}}function a243_0xe253(){var _0x49bc91=['1594327vgdyIy','1283982JPxJOW','1lAEoQH','1817736kixOPq','5210440xVOejJ','934960pBqHUr','6246078sEYXvs','1816116owcvAl'];a243_0xe253=function(){return _0x49bc91;};return a243_0xe253();}
1
+ function a245_0xe015(){var _0x5def69=['5211620YedUhD','5uIcHKW','88paULxr','3525812GJzetz','77qWWgmS','2324724aljqcM','481581OYZOnj','2129dUyqBj','1244RGquSc','7OmasGG','2843157WYWEuf','3815778BIntTo'];a245_0xe015=function(){return _0x5def69;};return a245_0xe015();}(function(_0x41be2d,_0x14f6da){var _0x3a8fc0=a245_0xf7c7,_0x21a460=_0x41be2d();while(!![]){try{var _0x466ac4=parseInt(_0x3a8fc0(0x1c7))/0x1*(-parseInt(_0x3a8fc0(0x1c8))/0x2)+parseInt(_0x3a8fc0(0x1be))/0x3+parseInt(_0x3a8fc0(0x1c3))/0x4*(-parseInt(_0x3a8fc0(0x1c1))/0x5)+parseInt(_0x3a8fc0(0x1bf))/0x6*(parseInt(_0x3a8fc0(0x1bd))/0x7)+-parseInt(_0x3a8fc0(0x1c2))/0x8*(parseInt(_0x3a8fc0(0x1c6))/0x9)+parseInt(_0x3a8fc0(0x1c0))/0xa+parseInt(_0x3a8fc0(0x1c4))/0xb*(parseInt(_0x3a8fc0(0x1c5))/0xc);if(_0x466ac4===_0x14f6da)break;else _0x21a460['push'](_0x21a460['shift']());}catch(_0x135364){_0x21a460['push'](_0x21a460['shift']());}}}(a245_0xe015,0xa2c13));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a245_0xf7c7(_0x295d07,_0x23cb30){_0x295d07=_0x295d07-0x1bd;var _0xe0159b=a245_0xe015();var _0xf7c790=_0xe0159b[_0x295d07];return _0xf7c790;}export async function withActiveCookie(_0x51a7ed,_0x4b39dc){setActiveCookie(_0x51a7ed);try{return await _0x4b39dc();}finally{clearActiveCookie();}}