@lovrabet/rabetbase-cli 2.3.9-beta.1 → 2.3.9-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) 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 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/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/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x11ba6b,_0x111ba8){const _0x4b3899=a227_0x2ba2,_0x37ac24=_0x11ba6b();while(!![]){try{const _0x4f3337=parseInt(_0x4b3899(0x11e))/0x1+-parseInt(_0x4b3899(0x127))/0x2*(-parseInt(_0x4b3899(0x126))/0x3)+parseInt(_0x4b3899(0x125))/0x4*(-parseInt(_0x4b3899(0x124))/0x5)+-parseInt(_0x4b3899(0x123))/0x6*(parseInt(_0x4b3899(0x129))/0x7)+-parseInt(_0x4b3899(0x121))/0x8+parseInt(_0x4b3899(0x120))/0x9*(-parseInt(_0x4b3899(0x122))/0xa)+-parseInt(_0x4b3899(0x11f))/0xb*(-parseInt(_0x4b3899(0x128))/0xc);if(_0x4f3337===_0x111ba8)break;else _0x37ac24['push'](_0x37ac24['shift']());}catch(_0x1f1def){_0x37ac24['push'](_0x37ac24['shift']());}}}(a227_0x4631,0x6dd92));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a227_0x2ba2(_0x5af562,_0x5cdd4b){_0x5af562=_0x5af562-0x11e;const _0x4631e8=a227_0x4631();let _0x2ba281=_0x4631e8[_0x5af562];return _0x2ba281;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a227_0x4631(){const _0x479168=['105VgdnDy','197603YUxYQi','33InMoHE','27603OreYFI','1919952vuxqvV','820hWjfxZ','30006tCjmeV','156865KdEiaU','52xDCthX','1679892tuehVZ','2jugMGg','2666892cOucMt'];a227_0x4631=function(){return _0x479168;};return a227_0x4631();}
1
+ (function(_0x56c365,_0x737493){const _0x31460d=a227_0x4b10,_0xd17d03=_0x56c365();while(!![]){try{const _0x81144e=parseInt(_0x31460d(0x150))/0x1+-parseInt(_0x31460d(0x14c))/0x2*(parseInt(_0x31460d(0x152))/0x3)+-parseInt(_0x31460d(0x149))/0x4*(parseInt(_0x31460d(0x14e))/0x5)+-parseInt(_0x31460d(0x14a))/0x6+parseInt(_0x31460d(0x14b))/0x7+parseInt(_0x31460d(0x14d))/0x8+parseInt(_0x31460d(0x14f))/0x9*(parseInt(_0x31460d(0x151))/0xa);if(_0x81144e===_0x737493)break;else _0xd17d03['push'](_0xd17d03['shift']());}catch(_0x1bf36b){_0xd17d03['push'](_0xd17d03['shift']());}}}(a227_0x6652,0xe467d));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a227_0x4b10(_0x2eb13f,_0x3bc3b1){_0x2eb13f=_0x2eb13f-0x149;const _0x6652fb=a227_0x6652();let _0x4b1072=_0x6652fb[_0x2eb13f];return _0x4b1072;}function a227_0x6652(){const _0x40217a=['12018377smqUfG','15886Dkgmat','2204240dycFPR','345HCsQkd','117BrEiML','726256rcCaMD','265030MzejTO','69mtScgU','12020jhcEgm','10425918reCOcK'];a227_0x6652=function(){return _0x40217a;};return a227_0x6652();}
@@ -1 +1 @@
1
- (function(_0x201330,_0x1b7e0c){const _0x58fc37=a228_0x1a4f,_0x5b9228=_0x201330();while(!![]){try{const _0x45d676=parseInt(_0x58fc37(0x75))/0x1*(parseInt(_0x58fc37(0x6f))/0x2)+parseInt(_0x58fc37(0x72))/0x3+parseInt(_0x58fc37(0x74))/0x4+parseInt(_0x58fc37(0x70))/0x5*(-parseInt(_0x58fc37(0x78))/0x6)+-parseInt(_0x58fc37(0x79))/0x7+-parseInt(_0x58fc37(0x6b))/0x8*(-parseInt(_0x58fc37(0x6c))/0x9)+-parseInt(_0x58fc37(0x7a))/0xa;if(_0x45d676===_0x1b7e0c)break;else _0x5b9228['push'](_0x5b9228['shift']());}catch(_0x4e850f){_0x5b9228['push'](_0x5b9228['shift']());}}}(a228_0x3ab0,0xc1071));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5e9b98=a228_0x1a4f,_0x535184=getTemplateBaseUrl(),_0x20391a=[_0x535184+_0x5e9b98(0x76),_0x535184+_0x5e9b98(0x7b)];for(const _0x1eb875 of _0x20391a){try{const _0x480023=await fetch(_0x1eb875,{'headers':{'Accept':'application/json'}});if(!_0x480023['ok'])continue;const _0xf544e7=await _0x480023[_0x5e9b98(0x6d)]();if(!_0xf544e7['cli']?.['stableVersion']||!_0xf544e7[_0x5e9b98(0x71)]?.[_0x5e9b98(0x77)]?.[_0x5e9b98(0x73)])continue;return _0xf544e7;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;function a228_0x1a4f(_0x483eeb,_0x1b0e33){_0x483eeb=_0x483eeb-0x6b;const _0x3ab057=a228_0x3ab0();let _0x1a4f7d=_0x3ab057[_0x483eeb];return _0x1a4f7d;}let hasCachedConfig=![];export async function getCdnConfig(){const _0x4548bb=a228_0x1a4f,_0x148ebb=Date[_0x4548bb(0x6e)]();if(hasCachedConfig){const _0x518b94=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x148ebb-cacheTime<_0x518b94)return cachedConfig;}const _0x2fbd06=await fetchCdnConfig();return cachedConfig=_0x2fbd06,cacheTime=_0x148ebb,hasCachedConfig=!![],_0x2fbd06;}function a228_0x3ab0(){const _0xaf8f74=['1639589tEroQk','28639630LWVXpe','/config/index.json','56DDwhxr','937179zNfSkK','json','now','8aQkpVd','5OlTJOK','sdk','3076389wWfogC','stableVersion','3787008JTQqwr','313437YtKELF','/config.json','node','396294fNUVAV'];a228_0x3ab0=function(){return _0xaf8f74;};return a228_0x3ab0();}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x39dd7f,_0xc69d5b){const _0x408592=a228_0x3902,_0x187fdb=_0x39dd7f();while(!![]){try{const _0xafa8e3=parseInt(_0x408592(0x133))/0x1+parseInt(_0x408592(0x140))/0x2*(parseInt(_0x408592(0x13b))/0x3)+-parseInt(_0x408592(0x132))/0x4+parseInt(_0x408592(0x135))/0x5*(-parseInt(_0x408592(0x13c))/0x6)+-parseInt(_0x408592(0x134))/0x7*(parseInt(_0x408592(0x13d))/0x8)+parseInt(_0x408592(0x139))/0x9*(parseInt(_0x408592(0x13f))/0xa)+parseInt(_0x408592(0x138))/0xb;if(_0xafa8e3===_0xc69d5b)break;else _0x187fdb['push'](_0x187fdb['shift']());}catch(_0x64e4a7){_0x187fdb['push'](_0x187fdb['shift']());}}}(a228_0x44ce,0xe7f5b));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x166152=a228_0x3902,_0x4d21ba=getTemplateBaseUrl(),_0x3bb023=[_0x4d21ba+_0x166152(0x13a),_0x4d21ba+_0x166152(0x130)];for(const _0x48f89e of _0x3bb023){try{const _0x44118e=await fetch(_0x48f89e,{'headers':{'Accept':_0x166152(0x137)}});if(!_0x44118e['ok'])continue;const _0x636639=await _0x44118e[_0x166152(0x13e)]();if(!_0x636639['cli']?.[_0x166152(0x131)]||!_0x636639[_0x166152(0x136)]?.['node']?.[_0x166152(0x131)])continue;return _0x636639;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a228_0x44ce(){const _0x37cbd4=['551268yTtmZf','/config.json','1769574MVkgIx','1981758LTlvvf','16sNanLf','json','160PYZOJG','4mVVYzB','/config/index.json','stableVersion','5152548boVUiK','815192cxSVeW','997157zXbyFo','15FLrCvp','sdk','application/json','5929935GfbkWH'];a228_0x44ce=function(){return _0x37cbd4;};return a228_0x44ce();}export async function getCdnConfig(){const _0x51189c=Date['now']();if(hasCachedConfig){const _0x33f62e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x51189c-cacheTime<_0x33f62e)return cachedConfig;}const _0x3101a4=await fetchCdnConfig();return cachedConfig=_0x3101a4,cacheTime=_0x51189c,hasCachedConfig=!![],_0x3101a4;}function a228_0x3902(_0x58a8f2,_0x2d76bc){_0x58a8f2=_0x58a8f2-0x130;const _0x44ce23=a228_0x44ce();let _0x3902f0=_0x44ce23[_0x58a8f2];return _0x3902f0;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a229_0x2d310b=a229_0xa59e;(function(_0x45728a,_0x3c953e){const _0x2d7d34=a229_0xa59e,_0x454adf=_0x45728a();while(!![]){try{const _0x4773ef=parseInt(_0x2d7d34(0x142))/0x1*(parseInt(_0x2d7d34(0x125))/0x2)+parseInt(_0x2d7d34(0x14b))/0x3*(parseInt(_0x2d7d34(0x14a))/0x4)+-parseInt(_0x2d7d34(0x12f))/0x5*(-parseInt(_0x2d7d34(0x131))/0x6)+parseInt(_0x2d7d34(0x12e))/0x7*(-parseInt(_0x2d7d34(0x12c))/0x8)+-parseInt(_0x2d7d34(0x129))/0x9*(parseInt(_0x2d7d34(0x13d))/0xa)+parseInt(_0x2d7d34(0x140))/0xb+parseInt(_0x2d7d34(0x133))/0xc;if(_0x4773ef===_0x3c953e)break;else _0x454adf['push'](_0x454adf['shift']());}catch(_0x541ffb){_0x454adf['push'](_0x454adf['shift']());}}}(a229_0xfc5a,0xca531));import a229_0x251230 from'node:fs';import a229_0xc86296 from'node:path';import a229_0x376a7a from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a229_0xfc5a(){const _0x22a3e5=['133305SOwZkF','devDependencies','156YdCAOx','all','179676vcpfAw','join','packageName','\x1b[0m','coerce','existsSync','test','stableVersion','1.2.0','node_modules','100CmYMAG','needsUpgrade','parse','4063290MYmVKM','minVersion','114367iufSwY','\x20\x20\x20Stable\x20version:\x20','dependencies','package.json','npm\x20install\x20','readFileSync','version','latest','20jNaSfI','202701WBxhrI','utf-8','\x1b[1m','sdk','log','some','22vCorFk','\x20\x20\x20Upgrade\x20command:\x20','↪\x20SDK\x20update\x20available','utf8','543042qfUtfa','\x1b[33m','node','1241320VRumIK','@lovrabet/sdk','56vKGBCJ'];a229_0xfc5a=function(){return _0x22a3e5;};return a229_0xfc5a();}const FALLBACK_MIN_SDK_VERSION=a229_0x2d310b(0x13b);function isNonNumericVersion(_0x5486ca){const _0x566cc2=a229_0x2d310b,_0x30431d=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x30431d[_0x566cc2(0x150)](_0x1a9cf9=>_0x1a9cf9[_0x566cc2(0x139)](_0x5486ca));}function getInstalledVersion(_0x547348,_0x1cd5ab){const _0x5ad7bd=a229_0x2d310b;try{const _0x23a3c6=a229_0xc86296['join'](_0x547348,_0x5ad7bd(0x13c),_0x1cd5ab,_0x5ad7bd(0x145));if(a229_0x251230['existsSync'](_0x23a3c6)){const _0x3dea80=JSON[_0x5ad7bd(0x13f)](a229_0x251230['readFileSync'](_0x23a3c6,_0x5ad7bd(0x14c)));return _0x3dea80['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x217abd=a229_0x2d310b;try{const _0xa2dcac=await getCdnConfig();return _0xa2dcac?.[_0x217abd(0x14e)]?.[_0x217abd(0x12b)]?.[_0x217abd(0x13a)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5b0510=a229_0x2d310b;try{const _0x5be6a3=await getCdnConfig();return _0x5be6a3?.[_0x5b0510(0x14e)]?.[_0x5b0510(0x12b)]?.[_0x5b0510(0x135)]||_0x5b0510(0x12d);}catch{return'@lovrabet/sdk';}}function a229_0xa59e(_0x3e8fa6,_0x1186ed){_0x3e8fa6=_0x3e8fa6-0x125;const _0xfc5a38=a229_0xfc5a();let _0xa59eb0=_0xfc5a38[_0x3e8fa6];return _0xa59eb0;}export async function checkSdkVersion(_0xf7e9d5){const _0x31b15e=a229_0x2d310b,_0x149e3b=a229_0xc86296[_0x31b15e(0x134)](_0xf7e9d5,_0x31b15e(0x145)),[_0x5b4ebf,_0x327982]=await Promise[_0x31b15e(0x132)]([getSdkStableVersion(),getSdkPackageName()]),_0x3fde4f=_0x5b4ebf||FALLBACK_MIN_SDK_VERSION;if(!a229_0x251230[_0x31b15e(0x138)](_0x149e3b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};try{const _0x5262d2=JSON[_0x31b15e(0x13f)](a229_0x251230['readFileSync'](_0x149e3b,_0x31b15e(0x128))),_0x5349f0=_0x5262d2[_0x31b15e(0x144)]||{},_0x38cac7=_0x5262d2['devDependencies']||{},_0x1508dd=_0x5349f0[_0x327982]||_0x38cac7[_0x327982];if(!_0x1508dd)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};let _0x20bc9b=getInstalledVersion(_0xf7e9d5,_0x327982);!_0x20bc9b&&(_0x20bc9b=_0x1508dd);if(isNonNumericVersion(_0x1508dd))return{'installed':!![],'version':_0x20bc9b,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};const _0x4724cb=a229_0x376a7a['coerce'](_0x20bc9b),_0x41d800=a229_0x376a7a['coerce'](_0x3fde4f),_0x54a2c2=_0x4724cb&&_0x41d800?a229_0x376a7a['lt'](_0x4724cb,_0x41d800):![];return{'installed':!![],'version':_0x20bc9b,'needsUpgrade':_0x54a2c2,'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x3fde4f,'packageName':_0x327982,'stableVersion':_0x5b4ebf};}}export function checkSdkVersionSync(_0x8cddc2){const _0x31a2b8=a229_0x2d310b,_0x2adbc2=a229_0xc86296[_0x31a2b8(0x134)](_0x8cddc2,_0x31a2b8(0x145)),_0x907e9d=_0x31a2b8(0x12d);if(!a229_0x251230['existsSync'](_0x2adbc2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};try{const _0xe21061=JSON[_0x31a2b8(0x13f)](a229_0x251230[_0x31a2b8(0x147)](_0x2adbc2,_0x31a2b8(0x128))),_0xe36a86=_0xe21061[_0x31a2b8(0x144)]||{},_0x4edc2c=_0xe21061[_0x31a2b8(0x130)]||{},_0x5f2b25=_0xe36a86[_0x907e9d]||_0x4edc2c[_0x907e9d];if(!_0x5f2b25)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};let _0xfe14b5=getInstalledVersion(_0x8cddc2,_0x907e9d);!_0xfe14b5&&(_0xfe14b5=_0x5f2b25);if(isNonNumericVersion(_0x5f2b25))return{'installed':!![],'version':_0xfe14b5,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};const _0x3550b0=a229_0x376a7a[_0x31a2b8(0x137)](_0xfe14b5),_0x57b922=_0x3550b0?a229_0x376a7a['lt'](_0x3550b0,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xfe14b5,'needsUpgrade':_0x57b922,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x907e9d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x59ac5d){const _0x44c27c=a229_0x2d310b;if(!_0x59ac5d[_0x44c27c(0x13e)])return;const _0x506c1a=_0x44c27c(0x12a),_0x54ace7=_0x44c27c(0x136),_0x268cb5=_0x44c27c(0x14d),_0x488bb8=_0x59ac5d[_0x44c27c(0x135)]||_0x44c27c(0x12d),_0x50db8f=_0x59ac5d[_0x44c27c(0x13a)]||_0x59ac5d[_0x44c27c(0x141)],_0x30b2b2=_0x44c27c(0x146)+_0x488bb8+'@'+(_0x50db8f||_0x44c27c(0x149));console[_0x44c27c(0x14f)](),console[_0x44c27c(0x14f)](''+_0x506c1a+_0x268cb5+_0x44c27c(0x127)+_0x54ace7),console['log'](_0x506c1a+'\x20\x20\x20Current\x20version:\x20'+_0x488bb8+'@'+_0x59ac5d[_0x44c27c(0x148)]+_0x54ace7),console[_0x44c27c(0x14f)](_0x506c1a+_0x44c27c(0x143)+_0x50db8f+_0x54ace7),console['log'](_0x506c1a+_0x44c27c(0x126)+_0x30b2b2+_0x54ace7),console[_0x44c27c(0x14f)]();}
1
+ const a229_0x5f2993=a229_0x2ead;function a229_0x4879(){const _0x317dd2=['1743HaxIKn','node','10410KzRlZb','package.json','\x1b[0m','202tXMDfM','\x20\x20\x20Current\x20version:\x20','70NLMkYh','existsSync','8NSxcAy','\x20\x20\x20Stable\x20version:\x20','packageName','1.2.0','stableVersion','@lovrabet/sdk','11071xgIfKC','3154014euoqIZ','410000iwtghf','12JFlXHE','dependencies','57780aWcHzo','test','15WupOib','\x1b[1m','log','needsUpgrade','coerce','sdk','version','devDependencies','parse','some','\x20\x20\x20Upgrade\x20command:\x20','3890068NlHEiz','utf-8','utf8','node_modules','174339inJlul','readFileSync'];a229_0x4879=function(){return _0x317dd2;};return a229_0x4879();}(function(_0x1a91e5,_0x1dc661){const _0xddc223=a229_0x2ead,_0x4de4d5=_0x1a91e5();while(!![]){try{const _0x3e1d88=-parseInt(_0xddc223(0x1f7))/0x1*(-parseInt(_0xddc223(0x1ed))/0x2)+-parseInt(_0xddc223(0x1fe))/0x3*(-parseInt(_0xddc223(0x1f9))/0x4)+parseInt(_0xddc223(0x1fc))/0x5+parseInt(_0xddc223(0x1ea))/0x6*(-parseInt(_0xddc223(0x1e8))/0x7)+parseInt(_0xddc223(0x1f1))/0x8*(-parseInt(_0xddc223(0x1f8))/0x9)+parseInt(_0xddc223(0x1ef))/0xa*(parseInt(_0xddc223(0x1e6))/0xb)+-parseInt(_0xddc223(0x1fa))/0xc*(parseInt(_0xddc223(0x1e2))/0xd);if(_0x3e1d88===_0x1dc661)break;else _0x4de4d5['push'](_0x4de4d5['shift']());}catch(_0x597f3a){_0x4de4d5['push'](_0x4de4d5['shift']());}}}(a229_0x4879,0xa3ef1));function a229_0x2ead(_0x4cfcf2,_0x59a7f7){_0x4cfcf2=_0x4cfcf2-0x1de;const _0x48797f=a229_0x4879();let _0x2eadec=_0x48797f[_0x4cfcf2];return _0x2eadec;}import a229_0x1171d8 from'node:fs';import a229_0x24cf72 from'node:path';import a229_0x5e6c73 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a229_0x5f2993(0x1f4);function isNonNumericVersion(_0x346cd0){const _0x326879=a229_0x5f2993,_0x38172e=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x38172e[_0x326879(0x1e0)](_0x2d11c3=>_0x2d11c3[_0x326879(0x1fd)](_0x346cd0));}function getInstalledVersion(_0x853dfa,_0x442766){const _0x51de92=a229_0x5f2993;try{const _0xc17383=a229_0x24cf72['join'](_0x853dfa,_0x51de92(0x1e5),_0x442766,_0x51de92(0x1eb));if(a229_0x1171d8[_0x51de92(0x1f0)](_0xc17383)){const _0x17e072=JSON['parse'](a229_0x1171d8[_0x51de92(0x1e7)](_0xc17383,_0x51de92(0x1e3)));return _0x17e072[_0x51de92(0x204)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x192dd2=a229_0x5f2993;try{const _0x4f0804=await getCdnConfig();return _0x4f0804?.[_0x192dd2(0x203)]?.[_0x192dd2(0x1e9)]?.[_0x192dd2(0x1f5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x49576c=a229_0x5f2993;try{const _0x150ae3=await getCdnConfig();return _0x150ae3?.[_0x49576c(0x203)]?.['node']?.[_0x49576c(0x1f3)]||_0x49576c(0x1f6);}catch{return _0x49576c(0x1f6);}}export async function checkSdkVersion(_0x57c929){const _0x13d253=a229_0x5f2993,_0x32483c=a229_0x24cf72['join'](_0x57c929,_0x13d253(0x1eb)),[_0xc019c,_0x497122]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x91800b=_0xc019c||FALLBACK_MIN_SDK_VERSION;if(!a229_0x1171d8[_0x13d253(0x1f0)](_0x32483c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};try{const _0x5b722c=JSON[_0x13d253(0x1df)](a229_0x1171d8['readFileSync'](_0x32483c,_0x13d253(0x1e4))),_0x216eed=_0x5b722c[_0x13d253(0x1fb)]||{},_0x21779c=_0x5b722c[_0x13d253(0x1de)]||{},_0x505173=_0x216eed[_0x497122]||_0x21779c[_0x497122];if(!_0x505173)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};let _0x14a24d=getInstalledVersion(_0x57c929,_0x497122);!_0x14a24d&&(_0x14a24d=_0x505173);if(isNonNumericVersion(_0x505173))return{'installed':!![],'version':_0x14a24d,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};const _0x1a74d=a229_0x5e6c73['coerce'](_0x14a24d),_0x5f1076=a229_0x5e6c73[_0x13d253(0x202)](_0x91800b),_0x9a056a=_0x1a74d&&_0x5f1076?a229_0x5e6c73['lt'](_0x1a74d,_0x5f1076):![];return{'installed':!![],'version':_0x14a24d,'needsUpgrade':_0x9a056a,'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x91800b,'packageName':_0x497122,'stableVersion':_0xc019c};}}export function checkSdkVersionSync(_0x3b6bbb){const _0x42ebca=a229_0x5f2993,_0x1444e7=a229_0x24cf72['join'](_0x3b6bbb,_0x42ebca(0x1eb)),_0x29340e='@lovrabet/sdk';if(!a229_0x1171d8['existsSync'](_0x1444e7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};try{const _0x41414b=JSON[_0x42ebca(0x1df)](a229_0x1171d8[_0x42ebca(0x1e7)](_0x1444e7,_0x42ebca(0x1e4))),_0x546eec=_0x41414b['dependencies']||{},_0x3e76fd=_0x41414b['devDependencies']||{},_0x4a7404=_0x546eec[_0x29340e]||_0x3e76fd[_0x29340e];if(!_0x4a7404)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};let _0x3cf3b1=getInstalledVersion(_0x3b6bbb,_0x29340e);!_0x3cf3b1&&(_0x3cf3b1=_0x4a7404);if(isNonNumericVersion(_0x4a7404))return{'installed':!![],'version':_0x3cf3b1,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};const _0x5dcd6f=a229_0x5e6c73[_0x42ebca(0x202)](_0x3cf3b1),_0x34cd70=_0x5dcd6f?a229_0x5e6c73['lt'](_0x5dcd6f,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3cf3b1,'needsUpgrade':_0x34cd70,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x29340e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x462986){const _0x28f649=a229_0x5f2993;if(!_0x462986[_0x28f649(0x201)])return;const _0x42f650='\x1b[33m',_0x1325c7=_0x28f649(0x1ec),_0x2d0128=_0x28f649(0x1ff),_0x4b0e88=_0x462986[_0x28f649(0x1f3)]||_0x28f649(0x1f6),_0x46238b=_0x462986[_0x28f649(0x1f5)]||_0x462986['minVersion'],_0x2c1f08='npm\x20install\x20'+_0x4b0e88+'@'+(_0x46238b||'latest');console['log'](),console[_0x28f649(0x200)](''+_0x42f650+_0x2d0128+'↪\x20SDK\x20update\x20available'+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1ee)+_0x4b0e88+'@'+_0x462986[_0x28f649(0x204)]+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1f2)+_0x46238b+_0x1325c7),console[_0x28f649(0x200)](_0x42f650+_0x28f649(0x1e1)+_0x2c1f08+_0x1325c7),console['log']();}
@@ -1 +1 @@
1
- (function(_0x49e599,_0x4330e4){const _0x128721=a230_0x4412,_0x30ddf0=_0x49e599();while(!![]){try{const _0x36d91d=parseInt(_0x128721(0xa2))/0x1*(-parseInt(_0x128721(0xa8))/0x2)+-parseInt(_0x128721(0x9b))/0x3*(-parseInt(_0x128721(0xb3))/0x4)+-parseInt(_0x128721(0x8f))/0x5*(-parseInt(_0x128721(0x92))/0x6)+parseInt(_0x128721(0xae))/0x7+-parseInt(_0x128721(0xad))/0x8+-parseInt(_0x128721(0xa9))/0x9+parseInt(_0x128721(0x9a))/0xa*(-parseInt(_0x128721(0x96))/0xb);if(_0x36d91d===_0x4330e4)break;else _0x30ddf0['push'](_0x30ddf0['shift']());}catch(_0x2559f8){_0x30ddf0['push'](_0x30ddf0['shift']());}}}(a230_0x580c,0x860fa));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a230_0x4412(_0x4bc576,_0x5d86ae){_0x4bc576=_0x4bc576-0x8b;const _0x580c6d=a230_0x580c();let _0x441257=_0x580c6d[_0x4bc576];return _0x441257;}import a230_0x4bc6ff from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x329bda){const _0x34fcba=a230_0x4412,_0x272d26=_0x329bda[_0x34fcba(0xac)]||_0x34fcba(0xa5);return _0x34fcba(0xa3)+NPM_PACKAGE_NAME+'@'+_0x272d26;}function getCurrentCliVersion(){const _0x3b2215=a230_0x4412;try{const _0x56f64b=fileURLToPath(import.meta.url),_0x22bb47=resolve(dirname(_0x56f64b),_0x3b2215(0x95)),_0x8ddf72=resolve(_0x22bb47,_0x3b2215(0xaa)),_0x167398=JSON[_0x3b2215(0xb1)](readFileSync(_0x8ddf72,_0x3b2215(0xa4)));return _0x167398[_0x3b2215(0xa7)]||_0x3b2215(0xb5);}catch{return'1.0.0';}}function a230_0x580c(){const _0x3a2af1=['\x1b[0m','minimumVersion','currentVersion','9BvtLRL','npm\x20install\x20-g\x20','utf-8','latest','belowMinimum','version','234168CcBSXk','609174GsuPQy','package.json','\x20\x20\x20Current\x20CLI\x20version:\x20','stableVersion','3700936fBdsQj','7456372VzJOpr','join','\x20\x20\x20Upgrade\x20command:\x20','parse','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','20FEDTyp','upgradeMessage','1.0.0','\x20\x20\x20Stable\x20version:\x20','Current\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','Upgrade\x20command:\x20','20dSgVNY','minimumVersionMessage','filter','1292202cRdaoi','validation','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','22VlTwRU','needsUpgrade','\x20\x20\x20','\x1b[1m','1134930zyJvCn','260097JrwubI','\x1b[31m','coerce','log'];a230_0x580c=function(){return _0x3a2af1;};return a230_0x580c();}export async function checkCliVersion(){const _0xdd2db2=a230_0x4412,_0x5ddc8e=getCurrentCliVersion(),_0x55a2b8=await getCliVersionPolicy(),_0xd5ce5=_0x55a2b8?.[_0xdd2db2(0xac)]||null,_0x1a7ba8=_0x55a2b8?.[_0xdd2db2(0xa0)]||null;let _0x43a1ff=![],_0x1fd348=![];const _0x3b4bf6=a230_0x4bc6ff['coerce'](_0x5ddc8e);if(_0x3b4bf6&&_0xd5ce5)try{const _0x11f985=a230_0x4bc6ff[_0xdd2db2(0x9d)](_0xd5ce5);if(_0x11f985)_0x43a1ff=a230_0x4bc6ff['lt'](_0x3b4bf6,_0x11f985);}catch{}if(_0x3b4bf6&&_0x1a7ba8)try{const _0x4e89db=a230_0x4bc6ff[_0xdd2db2(0x9d)](_0x1a7ba8);if(_0x4e89db)_0x1fd348=a230_0x4bc6ff['lt'](_0x3b4bf6,_0x4e89db);}catch{}return _0x1fd348&&(_0x43a1ff=!![]),{'currentVersion':_0x5ddc8e,'stableVersion':_0xd5ce5,'minimumVersion':_0x1a7ba8,'needsUpgrade':_0x43a1ff,'belowMinimum':_0x1fd348,'isPreRelease':![],'upgradeMessage':_0x55a2b8?.['upgradeMessage'],'minimumVersionMessage':_0x55a2b8?.[_0xdd2db2(0x90)]};}export function printCliUpgradeWarning(_0x1e0a24){const _0x1a1c9e=a230_0x4412;if(!_0x1e0a24[_0x1a1c9e(0x97)]&&!_0x1e0a24[_0x1a1c9e(0xa6)])return;const _0x400371=_0x1a1c9e(0x9c),_0x485663='\x1b[33m',_0x8aa2f7=_0x1a1c9e(0x9f),_0x11be33=_0x1a1c9e(0x99),_0x3801ae=getCliUpgradeCommand(_0x1e0a24);console[_0x1a1c9e(0x9e)](),_0x1e0a24[_0x1a1c9e(0xa6)]?(console['log'](''+_0x400371+_0x11be33+_0x1a1c9e(0x94)+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x400371+_0x1a1c9e(0xab)+_0x1e0a24['currentVersion']+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xa0)]&&console[_0x1a1c9e(0x9e)](_0x400371+_0x1a1c9e(0x8d)+_0x1e0a24[_0x1a1c9e(0xa0)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xac)]&&_0x1e0a24[_0x1a1c9e(0xac)]!==_0x1e0a24[_0x1a1c9e(0xa0)]&&console[_0x1a1c9e(0x9e)](_0x400371+'\x20\x20\x20Recommended\x20stable:\x20'+_0x1e0a24[_0x1a1c9e(0xac)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0x90)]&&console['log'](_0x400371+_0x1a1c9e(0x98)+_0x1e0a24['minimumVersionMessage']+_0x8aa2f7),console['log'](_0x400371+_0x1a1c9e(0xb0)+_0x3801ae+_0x8aa2f7)):(console['log'](''+_0x485663+_0x11be33+'↪\x20New\x20version\x20available'+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0xab)+_0x1e0a24[_0x1a1c9e(0xa1)]+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0x8b)+_0x1e0a24[_0x1a1c9e(0xac)]+_0x8aa2f7),_0x1e0a24[_0x1a1c9e(0xb4)]&&console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0x98)+_0x1e0a24[_0x1a1c9e(0xb4)]+_0x8aa2f7),console[_0x1a1c9e(0x9e)](_0x485663+_0x1a1c9e(0xb0)+_0x3801ae+_0x8aa2f7)),console[_0x1a1c9e(0x9e)]();}export function assertCliVersionSupported(_0x1ebb13){const _0x198cd7=a230_0x4412;if(!_0x1ebb13[_0x198cd7(0xa6)])return;const _0x593155=[_0x1ebb13[_0x198cd7(0x90)],_0x198cd7(0x8c)+_0x1ebb13[_0x198cd7(0xa1)],_0x1ebb13[_0x198cd7(0xa0)]?'Minimum\x20supported:\x20'+_0x1ebb13[_0x198cd7(0xa0)]:null,_0x198cd7(0x8e)+getCliUpgradeCommand(_0x1ebb13)][_0x198cd7(0x91)](Boolean)[_0x198cd7(0xaf)]('\x0a');throw CliErrors[_0x198cd7(0x93)](_0x198cd7(0xb2),_0x593155);}
1
+ function a230_0x4bc7(_0x5d7423,_0xf591ab){_0x5d7423=_0x5d7423-0x1bc;const _0x34e477=a230_0x34e4();let _0x4bc7a1=_0x34e477[_0x5d7423];return _0x4bc7a1;}(function(_0x30d9e7,_0xff5db4){const _0x59b9b0=a230_0x4bc7,_0x31f810=_0x30d9e7();while(!![]){try{const _0x4a96a7=parseInt(_0x59b9b0(0x1cf))/0x1+parseInt(_0x59b9b0(0x1cd))/0x2+-parseInt(_0x59b9b0(0x1d5))/0x3+-parseInt(_0x59b9b0(0x1d0))/0x4+parseInt(_0x59b9b0(0x1c5))/0x5+parseInt(_0x59b9b0(0x1d4))/0x6+-parseInt(_0x59b9b0(0x1d8))/0x7*(parseInt(_0x59b9b0(0x1c3))/0x8);if(_0x4a96a7===_0xff5db4)break;else _0x31f810['push'](_0x31f810['shift']());}catch(_0x1f58e8){_0x31f810['push'](_0x31f810['shift']());}}}(a230_0x34e4,0x728d2));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a230_0xe225fb from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a230_0x34e4(){const _0x5ed393=['↪\x20New\x20version\x20available','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','utf-8','currentVersion','version','993400cDtNgd','package.json','478578JKGRwi','1277752RsQNfY','\x20\x20\x20Recommended\x20stable:\x20','join','minimumVersion','2617098wUetOY','1532523njeIlQ','belowMinimum','upgradeMessage','21XdMUxj','stableVersion','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Current\x20version:\x20','log','parse','../..','\x1b[31m','1.0.0','\x20\x20\x20Stable\x20version:\x20','coerce','\x20\x20\x20','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','minimumVersionMessage','filter','validation','needsUpgrade','\x1b[1m','1725208gtYCdf','\x20\x20\x20Current\x20CLI\x20version:\x20','2674865CpbiIk'];a230_0x34e4=function(){return _0x5ed393;};return a230_0x34e4();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x34c6b2){const _0x32734c=a230_0x4bc7,_0x47100e=_0x34c6b2['stableVersion']||'latest';return _0x32734c(0x1c8)+NPM_PACKAGE_NAME+'@'+_0x47100e;}function getCurrentCliVersion(){const _0x3ffbd9=a230_0x4bc7;try{const _0x4d563e=fileURLToPath(import.meta.url),_0x5cc128=resolve(dirname(_0x4d563e),_0x3ffbd9(0x1de)),_0x314adc=resolve(_0x5cc128,_0x3ffbd9(0x1ce)),_0x72d8b1=JSON[_0x3ffbd9(0x1dd)](readFileSync(_0x314adc,_0x3ffbd9(0x1ca)));return _0x72d8b1[_0x3ffbd9(0x1cc)]||_0x3ffbd9(0x1e0);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x1753e3=a230_0x4bc7,_0x39ac5e=getCurrentCliVersion(),_0x558620=await getCliVersionPolicy(),_0x2d0c3d=_0x558620?.['stableVersion']||null,_0x5612de=_0x558620?.[_0x1753e3(0x1d3)]||null;let _0x537c45=![],_0x33b70a=![];const _0x1615c5=a230_0xe225fb['coerce'](_0x39ac5e);if(_0x1615c5&&_0x2d0c3d)try{const _0x17f772=a230_0xe225fb['coerce'](_0x2d0c3d);if(_0x17f772)_0x537c45=a230_0xe225fb['lt'](_0x1615c5,_0x17f772);}catch{}if(_0x1615c5&&_0x5612de)try{const _0xb3a2f8=a230_0xe225fb[_0x1753e3(0x1e2)](_0x5612de);if(_0xb3a2f8)_0x33b70a=a230_0xe225fb['lt'](_0x1615c5,_0xb3a2f8);}catch{}return _0x33b70a&&(_0x537c45=!![]),{'currentVersion':_0x39ac5e,'stableVersion':_0x2d0c3d,'minimumVersion':_0x5612de,'needsUpgrade':_0x537c45,'belowMinimum':_0x33b70a,'isPreRelease':![],'upgradeMessage':_0x558620?.[_0x1753e3(0x1d7)],'minimumVersionMessage':_0x558620?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x200d4d){const _0x4fd127=a230_0x4bc7;if(!_0x200d4d[_0x4fd127(0x1c1)]&&!_0x200d4d[_0x4fd127(0x1d6)])return;const _0x443cd1=_0x4fd127(0x1df),_0x1fda85=_0x4fd127(0x1bd),_0x48e388='\x1b[0m',_0x1d5850=_0x4fd127(0x1c2),_0x3191cd=getCliUpgradeCommand(_0x200d4d);console['log'](),_0x200d4d[_0x4fd127(0x1d6)]?(console['log'](''+_0x443cd1+_0x1d5850+_0x4fd127(0x1c9)+_0x48e388),console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1c4)+_0x200d4d[_0x4fd127(0x1cb)]+_0x48e388),_0x200d4d[_0x4fd127(0x1d3)]&&console[_0x4fd127(0x1dc)](_0x443cd1+'\x20\x20\x20Minimum\x20supported:\x20'+_0x200d4d['minimumVersion']+_0x48e388),_0x200d4d[_0x4fd127(0x1d9)]&&_0x200d4d[_0x4fd127(0x1d9)]!==_0x200d4d[_0x4fd127(0x1d3)]&&console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1d1)+_0x200d4d[_0x4fd127(0x1d9)]+_0x48e388),_0x200d4d[_0x4fd127(0x1be)]&&console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1e3)+_0x200d4d[_0x4fd127(0x1be)]+_0x48e388),console[_0x4fd127(0x1dc)](_0x443cd1+_0x4fd127(0x1bc)+_0x3191cd+_0x48e388)):(console[_0x4fd127(0x1dc)](''+_0x1fda85+_0x1d5850+_0x4fd127(0x1c6)+_0x48e388),console[_0x4fd127(0x1dc)](_0x1fda85+_0x4fd127(0x1c4)+_0x200d4d[_0x4fd127(0x1cb)]+_0x48e388),console['log'](_0x1fda85+_0x4fd127(0x1e1)+_0x200d4d[_0x4fd127(0x1d9)]+_0x48e388),_0x200d4d[_0x4fd127(0x1d7)]&&console[_0x4fd127(0x1dc)](_0x1fda85+_0x4fd127(0x1e3)+_0x200d4d['upgradeMessage']+_0x48e388),console[_0x4fd127(0x1dc)](_0x1fda85+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3191cd+_0x48e388)),console['log']();}export function assertCliVersionSupported(_0x5d96ba){const _0xaa4038=a230_0x4bc7;if(!_0x5d96ba['belowMinimum'])return;const _0x2fd7f1=[_0x5d96ba[_0xaa4038(0x1be)],_0xaa4038(0x1db)+_0x5d96ba['currentVersion'],_0x5d96ba['minimumVersion']?_0xaa4038(0x1c7)+_0x5d96ba[_0xaa4038(0x1d3)]:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x5d96ba)][_0xaa4038(0x1bf)](Boolean)[_0xaa4038(0x1d2)]('\x0a');throw CliErrors[_0xaa4038(0x1c0)](_0xaa4038(0x1da),_0x2fd7f1);}
@@ -1 +1 @@
1
- (function(_0x1ccfed,_0x52ac41){const _0x3372e2=a231_0x511a,_0x13de45=_0x1ccfed();while(!![]){try{const _0x3c5327=parseInt(_0x3372e2(0x114))/0x1*(-parseInt(_0x3372e2(0x116))/0x2)+-parseInt(_0x3372e2(0x113))/0x3*(-parseInt(_0x3372e2(0x10f))/0x4)+parseInt(_0x3372e2(0x100))/0x5*(parseInt(_0x3372e2(0x102))/0x6)+-parseInt(_0x3372e2(0x10a))/0x7*(-parseInt(_0x3372e2(0x108))/0x8)+-parseInt(_0x3372e2(0xff))/0x9+parseInt(_0x3372e2(0x112))/0xa*(-parseInt(_0x3372e2(0x111))/0xb)+parseInt(_0x3372e2(0x104))/0xc;if(_0x3c5327===_0x52ac41)break;else _0x13de45['push'](_0x13de45['shift']());}catch(_0x3ae116){_0x13de45['push'](_0x13de45['shift']());}}}(a231_0x1115,0x6d361));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 a231_0x511a(_0x4987d7,_0x4da602){_0x4987d7=_0x4987d7-0xff;const _0x1115da=a231_0x1115();let _0x511a83=_0x1115da[_0x4987d7];return _0x511a83;}function pickString(_0x4db8f0){const _0x30a3ed=a231_0x511a;return typeof _0x4db8f0===_0x30a3ed(0x107)&&_0x4db8f0[_0x30a3ed(0x101)]()[_0x30a3ed(0x105)]>0x0?_0x4db8f0[_0x30a3ed(0x101)]():null;}function normalizeCliVersionPolicy(_0x2054d9){const _0x5a0c3b=a231_0x511a;if(!_0x2054d9||typeof _0x2054d9!=='object')return null;const _0x572a0f=_0x2054d9,_0x3c5d2b=_0x572a0f[_0x5a0c3b(0x10e)]&&typeof _0x572a0f['cli']===_0x5a0c3b(0x10b)?_0x572a0f['cli']:_0x572a0f,_0x34b242=pickString(_0x3c5d2b[_0x5a0c3b(0x10c)])||pickString(_0x3c5d2b[_0x5a0c3b(0x106)])||pickString(_0x3c5d2b[_0x5a0c3b(0x110)]),_0x3a7126=pickString(_0x3c5d2b['minimumVersion'])||pickString(_0x3c5d2b['minVersion']);if(!_0x34b242&&!_0x3a7126)return null;return{'stableVersion':_0x34b242,'minimumVersion':_0x3a7126,'upgradeMessage':pickString(_0x3c5d2b['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3c5d2b[_0x5a0c3b(0x117)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4d2ef1=a231_0x511a,_0x4cc974=new AbortController(),_0x5cadbe=setTimeout(()=>_0x4cc974['abort'](),FETCH_TIMEOUT_MS);try{const _0x486d62=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4d2ef1(0x10d)},'signal':_0x4cc974[_0x4d2ef1(0x115)]});if(!_0x486d62['ok'])return null;const _0x2115b5=await _0x486d62[_0x4d2ef1(0x109)]();return normalizeCliVersionPolicy(_0x2115b5);}catch{return null;}finally{clearTimeout(_0x5cadbe);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x16c07d=a231_0x511a,_0x405b6c=Date[_0x16c07d(0x103)]();if(hasCachedPolicy){const _0x357bbe=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x405b6c-cacheTime<_0x357bbe)return cachedPolicy;}const _0x5d6e8f=await fetchCliVersionPolicy();return cachedPolicy=_0x5d6e8f,cacheTime=_0x405b6c,hasCachedPolicy=!![],_0x5d6e8f;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a231_0x1115(){const _0x374b9a=['6068532sTQpYa','length','latestVersion','string','55800KxMuOV','json','273MDpezz','object','stableVersion','application/json','cli','4CrAAZm','recommendedVersion','11sZWlxJ','7152490AGWruH','909159TwmLdo','207BOUoCO','signal','230BeIMlR','minimumVersionMessage','726696lSAMBC','5xZdDwJ','trim','1118028OcIGoS','now'];a231_0x1115=function(){return _0x374b9a;};return a231_0x1115();}
1
+ (function(_0x39c5b1,_0x42d2cc){const _0x34b14e=a231_0x6f74,_0x468078=_0x39c5b1();while(!![]){try{const _0x3cda83=parseInt(_0x34b14e(0x1cf))/0x1+parseInt(_0x34b14e(0x1c1))/0x2+-parseInt(_0x34b14e(0x1c8))/0x3*(-parseInt(_0x34b14e(0x1c3))/0x4)+-parseInt(_0x34b14e(0x1ca))/0x5+-parseInt(_0x34b14e(0x1ce))/0x6+-parseInt(_0x34b14e(0x1cc))/0x7+parseInt(_0x34b14e(0x1c2))/0x8*(parseInt(_0x34b14e(0x1c5))/0x9);if(_0x3cda83===_0x42d2cc)break;else _0x468078['push'](_0x468078['shift']());}catch(_0x20a9ce){_0x468078['push'](_0x468078['shift']());}}}(a231_0x37f7,0xf1aaf));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(_0x59711b){const _0x586beb=a231_0x6f74;return typeof _0x59711b===_0x586beb(0x1c0)&&_0x59711b[_0x586beb(0x1bf)]()['length']>0x0?_0x59711b['trim']():null;}function normalizeCliVersionPolicy(_0x2ad2d2){const _0x443de8=a231_0x6f74;if(!_0x2ad2d2||typeof _0x2ad2d2!==_0x443de8(0x1cd))return null;const _0x39e865=_0x2ad2d2,_0x3b4675=_0x39e865[_0x443de8(0x1be)]&&typeof _0x39e865['cli']==='object'?_0x39e865[_0x443de8(0x1be)]:_0x39e865,_0x3dd300=pickString(_0x3b4675[_0x443de8(0x1c7)])||pickString(_0x3b4675[_0x443de8(0x1cb)])||pickString(_0x3b4675[_0x443de8(0x1d1)]),_0x596a1f=pickString(_0x3b4675[_0x443de8(0x1c9)])||pickString(_0x3b4675[_0x443de8(0x1c4)]);if(!_0x3dd300&&!_0x596a1f)return null;return{'stableVersion':_0x3dd300,'minimumVersion':_0x596a1f,'upgradeMessage':pickString(_0x3b4675['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x3b4675['minimumVersionMessage'])||undefined};}function a231_0x6f74(_0x302ca3,_0xe170f3){_0x302ca3=_0x302ca3-0x1be;const _0x37f7da=a231_0x37f7();let _0x6f749c=_0x37f7da[_0x302ca3];return _0x6f749c;}function a231_0x37f7(){const _0x519cc1=['80288CuEyvN','2360248cNHZsv','minVersion','1602ANdOYf','abort','stableVersion','6GsyopN','minimumVersion','9227945bBRuok','latestVersion','13238568jUAtJO','object','287562lHrylS','1498297uLUguc','signal','recommendedVersion','cli','trim','string','619564HMByUX'];a231_0x37f7=function(){return _0x519cc1;};return a231_0x37f7();}export async function fetchCliVersionPolicy(){const _0x9991aa=a231_0x6f74,_0x365305=new AbortController(),_0xc53a9d=setTimeout(()=>_0x365305[_0x9991aa(0x1c6)](),FETCH_TIMEOUT_MS);try{const _0x305971=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x365305[_0x9991aa(0x1d0)]});if(!_0x305971['ok'])return null;const _0x511345=await _0x305971['json']();return normalizeCliVersionPolicy(_0x511345);}catch{return null;}finally{clearTimeout(_0xc53a9d);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x44f01e=Date['now']();if(hasCachedPolicy){const _0x5aa402=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x44f01e-cacheTime<_0x5aa402)return cachedPolicy;}const _0x3015be=await fetchCliVersionPolicy();return cachedPolicy=_0x3015be,cacheTime=_0x44f01e,hasCachedPolicy=!![],_0x3015be;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a232_0x59af(){const _0x5041ed=['435141YjsqNH','235084SOWMFI','4XVnURa','env','606953tUXScC','3112764xmMVuE','9GgNFmi','1000065ELqZyx','1703600PQFuiE','string','4351788DNSPdM'];a232_0x59af=function(){return _0x5041ed;};return a232_0x59af();}function a232_0x36d7(_0x38b37b,_0x44b770){_0x38b37b=_0x38b37b-0x1ca;const _0x59aff2=a232_0x59af();let _0x36d784=_0x59aff2[_0x38b37b];return _0x36d784;}(function(_0x45ac0a,_0x42ef30){const _0x5af1b3=a232_0x36d7,_0x5be321=_0x45ac0a();while(!![]){try{const _0xfec83d=-parseInt(_0x5af1b3(0x1cc))/0x1+-parseInt(_0x5af1b3(0x1ca))/0x2*(-parseInt(_0x5af1b3(0x1d3))/0x3)+-parseInt(_0x5af1b3(0x1d4))/0x4+-parseInt(_0x5af1b3(0x1cf))/0x5+parseInt(_0x5af1b3(0x1cd))/0x6+parseInt(_0x5af1b3(0x1d2))/0x7+parseInt(_0x5af1b3(0x1d0))/0x8*(-parseInt(_0x5af1b3(0x1ce))/0x9);if(_0xfec83d===_0x42ef30)break;else _0x5be321['push'](_0x5be321['shift']());}catch(_0x2020c6){_0x5be321['push'](_0x5be321['shift']());}}}(a232_0x59af,0x55e8d));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x6129de,getMultiAppConfigs as a232_0x31b534,getTemplateBaseUrl as a232_0x525e2a}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x513786){const _0x528cdd=a232_0x36d7,_0x544dac=readRawConfig(_0x513786);return _0x544dac[_0x528cdd(0x1cb)]&&typeof _0x544dac[_0x528cdd(0x1cb)]===_0x528cdd(0x1d1)&&initEnv(_0x544dac[_0x528cdd(0x1cb)]),_0x544dac;}export function getConfigAppCode(){return a232_0x6129de();}export function getMultiAppConfigs(_0x1d379e='project'){return a232_0x31b534(_0x1d379e);}export function getTemplateBaseUrl(){return a232_0x525e2a();}
1
+ (function(_0x5e31cf,_0x3b6a99){const _0x38f685=a232_0x4c4b,_0x88bbbb=_0x5e31cf();while(!![]){try{const _0x35985c=-parseInt(_0x38f685(0xbb))/0x1+parseInt(_0x38f685(0xc5))/0x2+-parseInt(_0x38f685(0xc2))/0x3+-parseInt(_0x38f685(0xbf))/0x4*(parseInt(_0x38f685(0xc3))/0x5)+-parseInt(_0x38f685(0xbd))/0x6+parseInt(_0x38f685(0xbe))/0x7*(-parseInt(_0x38f685(0xc1))/0x8)+parseInt(_0x38f685(0xc0))/0x9;if(_0x35985c===_0x3b6a99)break;else _0x88bbbb['push'](_0x88bbbb['shift']());}catch(_0x513d30){_0x88bbbb['push'](_0x88bbbb['shift']());}}}(a232_0x2554,0xabcc0));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x40f5c7,getMultiAppConfigs as a232_0x2c76bc,getTemplateBaseUrl as a232_0x425dc5}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a232_0x4c4b(_0x3cbd15,_0x598187){_0x3cbd15=_0x3cbd15-0xbb;const _0x2554b5=a232_0x2554();let _0x4c4b61=_0x2554b5[_0x3cbd15];return _0x4c4b61;}export{isInProject}from'../context.js';export function readConfig(_0x68884){const _0x5c6917=a232_0x4c4b,_0x4083ae=readRawConfig(_0x68884);return _0x4083ae['env']&&typeof _0x4083ae[_0x5c6917(0xbc)]===_0x5c6917(0xc4)&&initEnv(_0x4083ae[_0x5c6917(0xbc)]),_0x4083ae;}function a232_0x2554(){const _0x16c333=['29268jBHilT','41939982HPbnjD','1825224updijm','3989442smquSS','895DoegBI','string','2033388wovAqO','1228756ggsHIT','env','3890358iBnzra','14rUbgNh'];a232_0x2554=function(){return _0x16c333;};return a232_0x2554();}export function getConfigAppCode(){return a232_0x40f5c7();}export function getMultiAppConfigs(_0x471473='project'){return a232_0x2c76bc(_0x471473);}export function getTemplateBaseUrl(){return a232_0x425dc5();}
@@ -1 +1 @@
1
- (function(_0x36c049,_0x5ce308){const _0x18eb4e=a233_0x5423,_0x1a40fa=_0x36c049();while(!![]){try{const _0x1aa5e3=-parseInt(_0x18eb4e(0x81))/0x1+parseInt(_0x18eb4e(0x85))/0x2*(parseInt(_0x18eb4e(0x7e))/0x3)+-parseInt(_0x18eb4e(0x80))/0x4*(-parseInt(_0x18eb4e(0x86))/0x5)+-parseInt(_0x18eb4e(0x88))/0x6+-parseInt(_0x18eb4e(0x7c))/0x7*(-parseInt(_0x18eb4e(0x8b))/0x8)+parseInt(_0x18eb4e(0x89))/0x9+-parseInt(_0x18eb4e(0x8a))/0xa;if(_0x1aa5e3===_0x5ce308)break;else _0x1a40fa['push'](_0x1a40fa['shift']());}catch(_0x518378){_0x1a40fa['push'](_0x1a40fa['shift']());}}}(a233_0x669a,0x55db7));function a233_0x5423(_0x1d948d,_0x12510a){_0x1d948d=_0x1d948d-0x7c;const _0x669a85=a233_0x669a();let _0x542315=_0x669a85[_0x1d948d];return _0x542315;}import a233_0x4a21d2 from'node:path';import a233_0x2678f7 from'node:fs';export async function copyDirectory(_0x1fd609,_0x3ce8af){const _0x5416ca=a233_0x5423;try{const _0x4bf5f3=a233_0x2678f7[_0x5416ca(0x8d)](_0x1fd609,{'withFileTypes':!![]});a233_0x2678f7[_0x5416ca(0x83)](_0x3ce8af,{'recursive':!![]});for(const _0xf8a9b8 of _0x4bf5f3){const _0xe5abf0=a233_0x4a21d2[_0x5416ca(0x7f)](_0x1fd609,_0xf8a9b8[_0x5416ca(0x7d)]),_0x3f8798=a233_0x4a21d2[_0x5416ca(0x7f)](_0x3ce8af,_0xf8a9b8[_0x5416ca(0x7d)]);_0xf8a9b8[_0x5416ca(0x82)]()?await copyDirectory(_0xe5abf0,_0x3f8798):a233_0x2678f7[_0x5416ca(0x87)](_0xe5abf0,_0x3f8798);}}catch(_0x5a8e24){console[_0x5416ca(0x8c)](_0x5416ca(0x84),_0x5a8e24);}}function a233_0x669a(){const _0x443ebe=['error','readdirSync','425635UduExX','name','3HlxwyI','join','28SvZnlc','147234OSZzdF','isDirectory','mkdirSync','复制目录时出错:','911110ltCTLW','388735alrNmj','copyFileSync','866502dtisFu','4050666SHcqbS','14753910dBjhvb','88wHjBWo'];a233_0x669a=function(){return _0x443ebe;};return a233_0x669a();}
1
+ (function(_0x4dd38c,_0x4cd9d5){const _0x208d3d=a233_0xcac8,_0x3dcd6a=_0x4dd38c();while(!![]){try{const _0x36b1e4=parseInt(_0x208d3d(0xe1))/0x1*(parseInt(_0x208d3d(0xd6))/0x2)+parseInt(_0x208d3d(0xd4))/0x3*(-parseInt(_0x208d3d(0xde))/0x4)+parseInt(_0x208d3d(0xe2))/0x5+parseInt(_0x208d3d(0xdd))/0x6+-parseInt(_0x208d3d(0xdb))/0x7*(parseInt(_0x208d3d(0xdc))/0x8)+parseInt(_0x208d3d(0xe0))/0x9*(parseInt(_0x208d3d(0xd8))/0xa)+parseInt(_0x208d3d(0xd2))/0xb*(-parseInt(_0x208d3d(0xe3))/0xc);if(_0x36b1e4===_0x4cd9d5)break;else _0x3dcd6a['push'](_0x3dcd6a['shift']());}catch(_0x1a7091){_0x3dcd6a['push'](_0x3dcd6a['shift']());}}}(a233_0x1c67,0x2a05a));function a233_0xcac8(_0x33dfa7,_0x1a1d9e){_0x33dfa7=_0x33dfa7-0xd2;const _0x1c670b=a233_0x1c67();let _0xcac87f=_0x1c670b[_0x33dfa7];return _0xcac87f;}import a233_0x480e7c from'node:path';function a233_0x1c67(){const _0x2aec57=['6ZbxLPE','error','38LCOiQy','copyFileSync','250cTgxve','name','复制目录时出错:','42yOUngE','362888fPbXvn','1064904VJzWpp','137140YetWii','isDirectory','86391DsvEPw','8332vTebvh','1041500aRWnDE','12iBkOMG','readdirSync','2983299ZWZAni','join'];a233_0x1c67=function(){return _0x2aec57;};return a233_0x1c67();}import a233_0x22b696 from'node:fs';export async function copyDirectory(_0x5ed122,_0x3aa70f){const _0x37721b=a233_0xcac8;try{const _0x23e32a=a233_0x22b696[_0x37721b(0xe4)](_0x5ed122,{'withFileTypes':!![]});a233_0x22b696['mkdirSync'](_0x3aa70f,{'recursive':!![]});for(const _0x148cd1 of _0x23e32a){const _0x20e4ec=a233_0x480e7c[_0x37721b(0xd3)](_0x5ed122,_0x148cd1[_0x37721b(0xd9)]),_0x5c9314=a233_0x480e7c['join'](_0x3aa70f,_0x148cd1[_0x37721b(0xd9)]);_0x148cd1[_0x37721b(0xdf)]()?await copyDirectory(_0x20e4ec,_0x5c9314):a233_0x22b696[_0x37721b(0xd7)](_0x20e4ec,_0x5c9314);}}catch(_0x13aace){console[_0x37721b(0xd5)](_0x37721b(0xda),_0x13aace);}}
@@ -1 +1 @@
1
- (function(_0x21916e,_0x325203){const _0x1c9ea4=a234_0x56ce,_0x3f0ec5=_0x21916e();while(!![]){try{const _0x2f1095=parseInt(_0x1c9ea4(0xac))/0x1+-parseInt(_0x1c9ea4(0xa8))/0x2*(-parseInt(_0x1c9ea4(0xae))/0x3)+-parseInt(_0x1c9ea4(0xaf))/0x4*(-parseInt(_0x1c9ea4(0xb2))/0x5)+-parseInt(_0x1c9ea4(0xad))/0x6*(-parseInt(_0x1c9ea4(0xab))/0x7)+parseInt(_0x1c9ea4(0xa9))/0x8*(-parseInt(_0x1c9ea4(0xb3))/0x9)+-parseInt(_0x1c9ea4(0xaa))/0xa+-parseInt(_0x1c9ea4(0xb0))/0xb;if(_0x2f1095===_0x325203)break;else _0x3f0ec5['push'](_0x3f0ec5['shift']());}catch(_0x5a704d){_0x3f0ec5['push'](_0x3f0ec5['shift']());}}}(a234_0x2c4e,0x8399c));function toFiniteNumber(_0x51a7e7){const _0x39051a=a234_0x56ce;if(typeof _0x51a7e7==='number'&&Number[_0x39051a(0xb4)](_0x51a7e7))return _0x51a7e7;if(typeof _0x51a7e7===_0x39051a(0xb1)){const _0x240b00=_0x51a7e7['trim']();if(!_0x240b00)return undefined;const _0x2cf4e9=Number(_0x240b00);if(Number[_0x39051a(0xb4)](_0x2cf4e9))return _0x2cf4e9;}return undefined;}function a234_0x56ce(_0x47def4,_0x2d0294){_0x47def4=_0x47def4-0xa7;const _0x2c4e29=a234_0x2c4e();let _0x56ce22=_0x2c4e29[_0x47def4];return _0x56ce22;}export function normalizeEntityWithIdResponse(_0x36f67d){const _0x2618c6=a234_0x56ce,_0xe37a6f=toFiniteNumber(_0x36f67d);if(_0xe37a6f!==undefined)return{'id':_0xe37a6f,'entity':{'id':_0xe37a6f}};if(!_0x36f67d||typeof _0x36f67d!==_0x2618c6(0xa7))return{'id':undefined,'entity':{}};const _0x3c2b2b={..._0x36f67d},_0x576cae=toFiniteNumber(_0x3c2b2b['id']);return _0x576cae!==undefined&&(_0x3c2b2b['id']=_0x576cae),{'id':_0x576cae,'entity':_0x3c2b2b};}function a234_0x2c4e(){const _0x3efee2=['114500SmsnlL','4329YGLHkR','isFinite','object','1380GkgjNH','7368qwdQcT','5120640lptKjS','7NdamGT','990277NmihXP','3569058Snnuss','2082kYKYVi','40kmxhLl','8787669NETqKG','string'];a234_0x2c4e=function(){return _0x3efee2;};return a234_0x2c4e();}
1
+ function a234_0x3f44(_0x43108a,_0x15f53b){_0x43108a=_0x43108a-0x116;const _0x5c2288=a234_0x5c22();let _0x3f44d7=_0x5c2288[_0x43108a];return _0x3f44d7;}(function(_0x29179e,_0x587bbc){const _0x2e0da2=a234_0x3f44,_0x15de50=_0x29179e();while(!![]){try{const _0x10ab52=-parseInt(_0x2e0da2(0x11c))/0x1*(parseInt(_0x2e0da2(0x120))/0x2)+-parseInt(_0x2e0da2(0x11a))/0x3*(-parseInt(_0x2e0da2(0x11b))/0x4)+parseInt(_0x2e0da2(0x123))/0x5+-parseInt(_0x2e0da2(0x119))/0x6*(parseInt(_0x2e0da2(0x116))/0x7)+-parseInt(_0x2e0da2(0x122))/0x8+parseInt(_0x2e0da2(0x118))/0x9*(parseInt(_0x2e0da2(0x121))/0xa)+-parseInt(_0x2e0da2(0x11f))/0xb*(parseInt(_0x2e0da2(0x117))/0xc);if(_0x10ab52===_0x587bbc)break;else _0x15de50['push'](_0x15de50['shift']());}catch(_0x338748){_0x15de50['push'](_0x15de50['shift']());}}}(a234_0x5c22,0x9d2bb));function toFiniteNumber(_0x5a7b4a){const _0x193ed1=a234_0x3f44;if(typeof _0x5a7b4a===_0x193ed1(0x11e)&&Number[_0x193ed1(0x11d)](_0x5a7b4a))return _0x5a7b4a;if(typeof _0x5a7b4a==='string'){const _0x15d08e=_0x5a7b4a['trim']();if(!_0x15d08e)return undefined;const _0x3b0821=Number(_0x15d08e);if(Number[_0x193ed1(0x11d)](_0x3b0821))return _0x3b0821;}return undefined;}function a234_0x5c22(){const _0x33159d=['1674LJJrDt','20tUUgXV','7481280PMSaah','3934655LrOqGY','94619UUkNtx','629712CClkKm','4706037VZDOab','96Aztwog','282nnkavf','46564gCPPDa','976ihiORJ','isFinite','number','66KrozHD'];a234_0x5c22=function(){return _0x33159d;};return a234_0x5c22();}export function normalizeEntityWithIdResponse(_0x536ed5){const _0x5a2fe3=toFiniteNumber(_0x536ed5);if(_0x5a2fe3!==undefined)return{'id':_0x5a2fe3,'entity':{'id':_0x5a2fe3}};if(!_0x536ed5||typeof _0x536ed5!=='object')return{'id':undefined,'entity':{}};const _0xfc8923={..._0x536ed5},_0x5009a7=toFiniteNumber(_0xfc8923['id']);return _0x5009a7!==undefined&&(_0xfc8923['id']=_0x5009a7),{'id':_0x5009a7,'entity':_0xfc8923};}
@@ -1 +1 @@
1
- function a235_0x2955(_0x428cbf,_0x15cd6d){_0x428cbf=_0x428cbf-0x8d;const _0x416692=a235_0x4166();let _0x2955d5=_0x416692[_0x428cbf];return _0x2955d5;}(function(_0x3f41be,_0x472124){const _0x4f8ecd=a235_0x2955,_0x3d24c8=_0x3f41be();while(!![]){try{const _0x10848a=parseInt(_0x4f8ecd(0x8d))/0x1+-parseInt(_0x4f8ecd(0x90))/0x2+-parseInt(_0x4f8ecd(0x8e))/0x3*(-parseInt(_0x4f8ecd(0x94))/0x4)+parseInt(_0x4f8ecd(0x91))/0x5+-parseInt(_0x4f8ecd(0x95))/0x6*(parseInt(_0x4f8ecd(0x92))/0x7)+-parseInt(_0x4f8ecd(0x96))/0x8*(parseInt(_0x4f8ecd(0x8f))/0x9)+-parseInt(_0x4f8ecd(0x93))/0xa;if(_0x10848a===_0x472124)break;else _0x3d24c8['push'](_0x3d24c8['shift']());}catch(_0x242e3a){_0x3d24c8['push'](_0x3d24c8['shift']());}}}(a235_0x4166,0x2fdf2));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3ba04b,_0x17b762){const _0x468b16=statSync(_0x3ba04b);if(_0x468b16['isDirectory']()){!existsSync(_0x17b762)&&mkdirSync(_0x17b762,{'recursive':!![]});const _0xa1fd99=readdirSync(_0x3ba04b);for(const _0x5d6983 of _0xa1fd99){await copyDir(join(_0x3ba04b,_0x5d6983),join(_0x17b762,_0x5d6983));}}else copyFileSync(_0x3ba04b,_0x17b762);}export function ensureDir(_0x4d41e6){!existsSync(_0x4d41e6)&&mkdirSync(_0x4d41e6,{'recursive':!![]});}function a235_0x4166(){const _0x1f19d0=['2995200Uhfdoe','1011916mhnqHZ','48RGZMSV','1455856CxJtBG','374856jMotmq','3ZKKlMS','9xQoWpu','128234UIzUAj','808810sLvtjm','41909TtNAdG'];a235_0x4166=function(){return _0x1f19d0;};return a235_0x4166();}export function pathExists(_0x39d9a3){return existsSync(_0x39d9a3);}
1
+ (function(_0x9e6162,_0x2de2db){const _0x52abb7=a235_0xcef4,_0x1c9ed8=_0x9e6162();while(!![]){try{const _0x2e8c82=-parseInt(_0x52abb7(0xf0))/0x1+-parseInt(_0x52abb7(0xf1))/0x2+parseInt(_0x52abb7(0xf7))/0x3+parseInt(_0x52abb7(0xf3))/0x4+-parseInt(_0x52abb7(0xf6))/0x5*(parseInt(_0x52abb7(0xef))/0x6)+-parseInt(_0x52abb7(0xf2))/0x7*(-parseInt(_0x52abb7(0xf4))/0x8)+parseInt(_0x52abb7(0xf5))/0x9;if(_0x2e8c82===_0x2de2db)break;else _0x1c9ed8['push'](_0x1c9ed8['shift']());}catch(_0x56c293){_0x1c9ed8['push'](_0x1c9ed8['shift']());}}}(a235_0x3e3c,0xd500d));function a235_0x3e3c(){const _0x36895d=['11893rPbUyl','6732792BURRTo','3224ilXBmp','12490470WKXEfr','733870IPYDho','1109220aZTxwU','isDirectory','6hQaqxL','1445215LHEoVA','3322030ZQCbJR'];a235_0x3e3c=function(){return _0x36895d;};return a235_0x3e3c();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x57cb37,_0x4a0865){const _0x46acd2=a235_0xcef4,_0x8b7928=statSync(_0x57cb37);if(_0x8b7928[_0x46acd2(0xf8)]()){!existsSync(_0x4a0865)&&mkdirSync(_0x4a0865,{'recursive':!![]});const _0x37df04=readdirSync(_0x57cb37);for(const _0x28ce19 of _0x37df04){await copyDir(join(_0x57cb37,_0x28ce19),join(_0x4a0865,_0x28ce19));}}else copyFileSync(_0x57cb37,_0x4a0865);}export function ensureDir(_0x2634be){!existsSync(_0x2634be)&&mkdirSync(_0x2634be,{'recursive':!![]});}function a235_0xcef4(_0x47a494,_0x5d4e37){_0x47a494=_0x47a494-0xef;const _0x3e3c87=a235_0x3e3c();let _0xcef4c1=_0x3e3c87[_0x47a494];return _0xcef4c1;}export function pathExists(_0x26973e){return existsSync(_0x26973e);}
@@ -1 +1 @@
1
- function a236_0x17f8(_0x2dbfd5,_0x50cbe9){_0x2dbfd5=_0x2dbfd5-0xfc;const _0x376f3c=a236_0x376f();let _0x17f841=_0x376f3c[_0x2dbfd5];return _0x17f841;}const a236_0x162022=a236_0x17f8;(function(_0x15dc9f,_0x235bac){const _0x3d64b8=a236_0x17f8,_0x270975=_0x15dc9f();while(!![]){try{const _0x5872f7=parseInt(_0x3d64b8(0x100))/0x1*(parseInt(_0x3d64b8(0x10a))/0x2)+parseInt(_0x3d64b8(0xfd))/0x3*(-parseInt(_0x3d64b8(0x10e))/0x4)+parseInt(_0x3d64b8(0x108))/0x5+parseInt(_0x3d64b8(0x109))/0x6+-parseInt(_0x3d64b8(0x113))/0x7*(parseInt(_0x3d64b8(0x117))/0x8)+parseInt(_0x3d64b8(0xff))/0x9*(parseInt(_0x3d64b8(0x101))/0xa)+-parseInt(_0x3d64b8(0x115))/0xb;if(_0x5872f7===_0x235bac)break;else _0x270975['push'](_0x270975['shift']());}catch(_0x460ca8){_0x270975['push'](_0x270975['shift']());}}}(a236_0x376f,0x2fac2));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 _0xb7baea=a236_0x17f8,_0x2b7c1e=getTemplateBaseUrl();return _0x2b7c1e+_0xb7baea(0x107);}const CACHE_DIR=join(homedir(),'.lovrabet',a236_0x162022(0x111));export async function fetchGuidesFromCDN(){const _0x2a0aa7=a236_0x162022,_0x4eb79c=getGuidesCdnUrl(),_0x593876=await fetch(_0x4eb79c,{'headers':{'Accept':_0x2a0aa7(0x106)}});if(!_0x593876['ok'])throw new Error(_0x2a0aa7(0x102)+_0x593876[_0x2a0aa7(0x10c)]+'\x20'+_0x593876['statusText']);const _0x512b43=await _0x593876['json']();if(!_0x512b43[_0x2a0aa7(0x104)]||typeof _0x512b43[_0x2a0aa7(0x104)]!==_0x2a0aa7(0x105))throw new Error(_0x2a0aa7(0x10d));return _0x512b43;}export function writeGuidesToProject(_0x44d2f5,_0x1e9737,_0x12aff4=a236_0x162022(0x10b),_0x43cc1c){const _0x31f31a=a236_0x162022,_0x28d06d=join(_0x1e9737,_0x12aff4);mkdirSync(_0x28d06d,{'recursive':!![]});for(const [_0x991722,_0x33ebb5]of Object['entries'](_0x44d2f5[_0x31f31a(0x104)])){let _0x403e93=_0x33ebb5[_0x31f31a(0x103)];_0x33ebb5[_0x31f31a(0x116)]&&(_0x403e93=appendUpdateTime(_0x403e93,_0x33ebb5[_0x31f31a(0x116)])),writeFileSync(join(_0x28d06d,_0x991722+'.md'),_0x403e93,_0x31f31a(0x112));}}export function appendUpdateTime(_0x13de90,_0x414225){const _0x462470=a236_0x162022;return _0x13de90=_0x13de90[_0x462470(0x110)](/\n*>更新时间:.*$/m,''),_0x13de90['trimEnd']()+('\x0a\x0a>更新时间:'+_0x414225);}export function getSkillTemplate(_0xafda46){const _0x41b42e=a236_0x162022;return _0xafda46[_0x41b42e(0x119)]?.[_0x41b42e(0x103)]||'';}function a236_0x376f(){const _0x1540f7=['join','path','3TMhamy','entries','9IKCSSD','33754uRYicF','1511710BEBJoW','CDN\x20请求失败:\x20','content','guides','object','application/json','/skills/guides.json','867270fJiVVy','319464nLtSXy','22BYkvZu','.lovrabet/skill/guides','status','CDN\x20返回数据格式错误','1304228tMncII','extendContent','replace','cache','utf-8','14dJksNB','trimEnd','2301332gErKPb','lastUpdated','74512RiXXfv','length','skillTemplate','title'];a236_0x376f=function(){return _0x1540f7;};return a236_0x376f();}export function appendExtendContents(_0x4d1c69,_0x20e8b6,_0x2ec0f1){const _0x2fc921=a236_0x162022,_0x2f1577=[];for(const [,_0x56c2a1]of Object['entries'](_0x20e8b6[_0x2fc921(0x104)])){_0x56c2a1[_0x2fc921(0x10f)]&&_0x2f1577['push'](_0x56c2a1['extendContent'][_0x2fc921(0x114)]());}if(_0x2f1577[_0x2fc921(0x118)]===0x0)return _0x4d1c69;return _0x4d1c69['trimEnd']()+'\x0a\x0a'+_0x2f1577[_0x2fc921(0x11b)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5f49dc,_0x30b4e0,_0x72d0dd){const _0x51b2e4=a236_0x162022,_0x4148fb=getSkillTemplate(_0x5f49dc);if(!_0x4148fb)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x1128c5=dirname(_0x30b4e0);mkdirSync(_0x1128c5,{'recursive':!![]});let _0x6380f7=_0x4148fb[_0x51b2e4(0x110)](/\{\{IDE_NAME\}\}/g,_0x72d0dd);_0x6380f7=appendExtendContents(_0x6380f7,_0x5f49dc),_0x5f49dc[_0x51b2e4(0x119)][_0x51b2e4(0x116)]&&(_0x6380f7=appendUpdateTime(_0x6380f7,_0x5f49dc[_0x51b2e4(0x119)][_0x51b2e4(0x116)])),writeFileSync(_0x30b4e0,_0x6380f7,_0x51b2e4(0x112));}export async function installGuides(_0xd409a9){const _0x109b39=a236_0x162022,_0x221ce8=await fetchGuidesFromCDN();return writeGuidesToProject(_0x221ce8,_0xd409a9),Object['keys'](_0x221ce8[_0x109b39(0x104)])['length'];}export function getGuidesSummary(_0x2bb60a){const _0x3a573e=a236_0x162022;return Object[_0x3a573e(0xfe)](_0x2bb60a[_0x3a573e(0x104)])['map'](([_0x5374e5,_0x5c5c90])=>({'key':_0x5374e5,'title':_0x5c5c90[_0x3a573e(0x11a)],'path':_0x5c5c90[_0x3a573e(0xfc)]}));}
1
+ const a236_0x3160ed=a236_0x4d14;(function(_0x5a450d,_0x3cb11a){const _0x42c3e1=a236_0x4d14,_0x53fc35=_0x5a450d();while(!![]){try{const _0x49f91c=-parseInt(_0x42c3e1(0x1de))/0x1+-parseInt(_0x42c3e1(0x1f1))/0x2+-parseInt(_0x42c3e1(0x1e9))/0x3+-parseInt(_0x42c3e1(0x1e0))/0x4*(parseInt(_0x42c3e1(0x1eb))/0x5)+parseInt(_0x42c3e1(0x1ef))/0x6*(-parseInt(_0x42c3e1(0x1db))/0x7)+-parseInt(_0x42c3e1(0x1e5))/0x8+parseInt(_0x42c3e1(0x1dc))/0x9;if(_0x49f91c===_0x3cb11a)break;else _0x53fc35['push'](_0x53fc35['shift']());}catch(_0x4c868a){_0x53fc35['push'](_0x53fc35['shift']());}}}(a236_0x5868,0xc7098));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 _0x189c50=a236_0x4d14,_0x1746db=getTemplateBaseUrl();return _0x1746db+_0x189c50(0x1d7);}const CACHE_DIR=join(homedir(),a236_0x3160ed(0x1e1),a236_0x3160ed(0x1ed));export async function fetchGuidesFromCDN(){const _0x1af41b=a236_0x3160ed,_0x4267fb=getGuidesCdnUrl(),_0x524c87=await fetch(_0x4267fb,{'headers':{'Accept':_0x1af41b(0x1d6)}});if(!_0x524c87['ok'])throw new Error(_0x1af41b(0x1ee)+_0x524c87['status']+'\x20'+_0x524c87['statusText']);const _0x44844d=await _0x524c87[_0x1af41b(0x1ea)]();if(!_0x44844d[_0x1af41b(0x1e7)]||typeof _0x44844d[_0x1af41b(0x1e7)]!=='object')throw new Error('CDN\x20返回数据格式错误');return _0x44844d;}export function writeGuidesToProject(_0x338eb8,_0x310520,_0x48a41d=a236_0x3160ed(0x1d8),_0x18360b){const _0x39e93a=a236_0x3160ed,_0x3f45a6=join(_0x310520,_0x48a41d);mkdirSync(_0x3f45a6,{'recursive':!![]});for(const [_0x5161c3,_0x8e4264]of Object[_0x39e93a(0x1d9)](_0x338eb8[_0x39e93a(0x1e7)])){let _0x58dc55=_0x8e4264[_0x39e93a(0x1dd)];_0x8e4264[_0x39e93a(0x1da)]&&(_0x58dc55=appendUpdateTime(_0x58dc55,_0x8e4264['lastUpdated'])),writeFileSync(join(_0x3f45a6,_0x5161c3+_0x39e93a(0x1ec)),_0x58dc55,'utf-8');}}export function appendUpdateTime(_0x56c6b3,_0x39fa6e){const _0x2e5ac2=a236_0x3160ed;return _0x56c6b3=_0x56c6b3[_0x2e5ac2(0x1e6)](/\n*>更新时间:.*$/m,''),_0x56c6b3['trimEnd']()+('\x0a\x0a>更新时间:'+_0x39fa6e);}function a236_0x4d14(_0x504aee,_0x267c56){_0x504aee=_0x504aee-0x1d6;const _0x586856=a236_0x5868();let _0x4d1433=_0x586856[_0x504aee];return _0x4d1433;}export function getSkillTemplate(_0x5cebea){const _0x42713d=a236_0x3160ed;return _0x5cebea[_0x42713d(0x1e4)]?.[_0x42713d(0x1dd)]||'';}export function appendExtendContents(_0x4a4a0d,_0x373fa5,_0x5cc0db){const _0x155cd3=a236_0x3160ed,_0x249568=[];for(const [,_0x2ea9ef]of Object['entries'](_0x373fa5[_0x155cd3(0x1e7)])){_0x2ea9ef['extendContent']&&_0x249568['push'](_0x2ea9ef[_0x155cd3(0x1e2)]['trimEnd']());}if(_0x249568[_0x155cd3(0x1e8)]===0x0)return _0x4a4a0d;return _0x4a4a0d['trimEnd']()+'\x0a\x0a'+_0x249568[_0x155cd3(0x1df)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x190445,_0x31ed20,_0x516a97){const _0x4632d5=a236_0x3160ed,_0x31bb19=getSkillTemplate(_0x190445);if(!_0x31bb19)throw new Error(_0x4632d5(0x1e3));const _0x3f6fe1=dirname(_0x31ed20);mkdirSync(_0x3f6fe1,{'recursive':!![]});let _0x54bcf5=_0x31bb19[_0x4632d5(0x1e6)](/\{\{IDE_NAME\}\}/g,_0x516a97);_0x54bcf5=appendExtendContents(_0x54bcf5,_0x190445),_0x190445[_0x4632d5(0x1e4)][_0x4632d5(0x1da)]&&(_0x54bcf5=appendUpdateTime(_0x54bcf5,_0x190445[_0x4632d5(0x1e4)][_0x4632d5(0x1da)])),writeFileSync(_0x31ed20,_0x54bcf5,'utf-8');}export async function installGuides(_0x49c13e){const _0x1c3bce=a236_0x3160ed,_0x434518=await fetchGuidesFromCDN();return writeGuidesToProject(_0x434518,_0x49c13e),Object['keys'](_0x434518[_0x1c3bce(0x1e7)])[_0x1c3bce(0x1e8)];}export function getGuidesSummary(_0x25e697){const _0x50737f=a236_0x3160ed;return Object['entries'](_0x25e697['guides'])['map'](([_0x3471d1,_0x1464ef])=>({'key':_0x3471d1,'title':_0x1464ef[_0x50737f(0x1f0)],'path':_0x1464ef['path']}));}function a236_0x5868(){const _0x48960c=['43925HvfooR','.md','cache','CDN\x20请求失败:\x20','14976sabWKW','title','2355990lvRHMs','application/json','/skills/guides.json','.lovrabet/skill/guides','entries','lastUpdated','735zGTtrI','45101295YnIMTT','content','817848IciuHg','join','604oDbsMp','.lovrabet','extendContent','CDN\x20数据中缺少\x20skillTemplate','skillTemplate','2761624LnWXCw','replace','guides','length','799014WFLWPb','json'];a236_0x5868=function(){return _0x48960c;};return a236_0x5868();}
@@ -1 +1 @@
1
- (function(_0x122962,_0x3bb8a6){const _0x299909=a237_0x1cad,_0x3c2291=_0x122962();while(!![]){try{const _0x3d878a=-parseInt(_0x299909(0x72))/0x1+-parseInt(_0x299909(0x83))/0x2*(-parseInt(_0x299909(0x7c))/0x3)+-parseInt(_0x299909(0x65))/0x4+parseInt(_0x299909(0x69))/0x5*(parseInt(_0x299909(0x7f))/0x6)+-parseInt(_0x299909(0x79))/0x7+-parseInt(_0x299909(0x67))/0x8*(-parseInt(_0x299909(0x7b))/0x9)+parseInt(_0x299909(0x70))/0xa*(parseInt(_0x299909(0x74))/0xb);if(_0x3d878a===_0x3bb8a6)break;else _0x3c2291['push'](_0x3c2291['shift']());}catch(_0x2d3285){_0x3c2291['push'](_0x3c2291['shift']());}}}(a237_0xdc00,0xc21e8));export async function httpRequest(_0x50a077,_0x5bef24={}){const _0x4b7689=a237_0x1cad,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5bef24;let _0x582ed9=null;for(let _0x1c1f35=0x0;_0x1c1f35<=retries;_0x1c1f35++){try{const _0x39105a=new AbortController(),_0x3689a0=setTimeout(()=>_0x39105a[_0x4b7689(0x82)](),timeout),_0x13b540=await fetch(_0x50a077,{'headers':headers,'signal':_0x39105a[_0x4b7689(0x71)]});clearTimeout(_0x3689a0);let _0x163265;const _0x5126eb=_0x13b540[_0x4b7689(0x6b)]['get'](_0x4b7689(0x6a));return _0x5126eb?.[_0x4b7689(0x80)](_0x4b7689(0x78))?_0x163265=await _0x13b540[_0x4b7689(0x6c)]():_0x163265=await _0x13b540[_0x4b7689(0x77)](),{'ok':_0x13b540['ok'],'status':_0x13b540[_0x4b7689(0x75)],'statusText':_0x13b540[_0x4b7689(0x81)],'data':_0x163265,'headers':_0x13b540[_0x4b7689(0x6b)],'url':_0x13b540['url'],'text':()=>_0x13b540[_0x4b7689(0x77)]()};}catch(_0x2f28d7){_0x582ed9=_0x2f28d7 instanceof Error?_0x2f28d7:new Error(String(_0x2f28d7));if(_0x1c1f35===retries)break;if(shouldRetry(_0x2f28d7)){console['log'](_0x4b7689(0x7e)+retryDelay+_0x4b7689(0x6e)+(_0x1c1f35+0x1)+_0x4b7689(0x68)),await sleep(retryDelay);continue;}else break;}}throw _0x582ed9||new Error(_0x4b7689(0x84));}function a237_0x1cad(_0x2ccf1c,_0x3965d1){_0x2ccf1c=_0x2ccf1c-0x65;const _0xdc0004=a237_0xdc00();let _0x1cad81=_0xdc0004[_0x2ccf1c];return _0x1cad81;}function a237_0xdc00(){const _0x4701cf=['includes','statusText','abort','4vYpWFp','Request\x20failed','3347788VCTKfW','ENOTFOUND','17720edxFwu','\x20次重试...','331410lBOlgz','content-type','headers','json','AbortError','ms\x20后进行第\x20','name','9679510ihkfCy','signal','1553972QRxzUf','TypeError','22byLCIQ','status','ECONNRESET','text','application/json','10668546uhVvDW','fetch','6219KIIffE','1766040tAOsAO','message','*\x20请求失败,','6agnyuD'];a237_0xdc00=function(){return _0x4701cf;};return a237_0xdc00();}function shouldRetry(_0x546b56){const _0x3f4f69=a237_0x1cad;if(_0x546b56 instanceof Error){if(_0x546b56[_0x3f4f69(0x6f)]===_0x3f4f69(0x6d))return![];if(_0x546b56[_0x3f4f69(0x6f)]===_0x3f4f69(0x73)&&_0x546b56[_0x3f4f69(0x7d)][_0x3f4f69(0x80)](_0x3f4f69(0x7a)))return!![];if(_0x546b56[_0x3f4f69(0x7d)][_0x3f4f69(0x80)](_0x3f4f69(0x76)))return!![];if(_0x546b56['message'][_0x3f4f69(0x80)](_0x3f4f69(0x66)))return![];}return![];}function sleep(_0x4a40dc){return new Promise(_0x2447e5=>setTimeout(_0x2447e5,_0x4a40dc));}export function validateUrl(_0x573045){try{return new URL(_0x573045),!![];}catch{return![];}}
1
+ (function(_0x20d10d,_0x1acf5e){const _0x4e2c78=a237_0x4165,_0x26a027=_0x20d10d();while(!![]){try{const _0x14b5fc=parseInt(_0x4e2c78(0xdb))/0x1+-parseInt(_0x4e2c78(0xd5))/0x2+parseInt(_0x4e2c78(0xe5))/0x3+parseInt(_0x4e2c78(0xca))/0x4*(parseInt(_0x4e2c78(0xd2))/0x5)+-parseInt(_0x4e2c78(0xde))/0x6*(-parseInt(_0x4e2c78(0xce))/0x7)+parseInt(_0x4e2c78(0xda))/0x8*(-parseInt(_0x4e2c78(0xd8))/0x9)+-parseInt(_0x4e2c78(0xe0))/0xa;if(_0x14b5fc===_0x1acf5e)break;else _0x26a027['push'](_0x26a027['shift']());}catch(_0x5b97b5){_0x26a027['push'](_0x26a027['shift']());}}}(a237_0x56c4,0x349ce));export async function httpRequest(_0x308e73,_0x195b12={}){const _0x52f31e=a237_0x4165,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x195b12;let _0x46ff9e=null;for(let _0x46f417=0x0;_0x46f417<=retries;_0x46f417++){try{const _0x1d446d=new AbortController(),_0x4fae75=setTimeout(()=>_0x1d446d['abort'](),timeout),_0x1cff83=await fetch(_0x308e73,{'headers':headers,'signal':_0x1d446d[_0x52f31e(0xd7)]});clearTimeout(_0x4fae75);let _0x17df8c;const _0x34b403=_0x1cff83[_0x52f31e(0xd1)]['get'](_0x52f31e(0xdc));return _0x34b403?.[_0x52f31e(0xcf)](_0x52f31e(0xe1))?_0x17df8c=await _0x1cff83[_0x52f31e(0xcb)]():_0x17df8c=await _0x1cff83[_0x52f31e(0xcd)](),{'ok':_0x1cff83['ok'],'status':_0x1cff83['status'],'statusText':_0x1cff83[_0x52f31e(0xd0)],'data':_0x17df8c,'headers':_0x1cff83[_0x52f31e(0xd1)],'url':_0x1cff83[_0x52f31e(0xd6)],'text':()=>_0x1cff83['text']()};}catch(_0xdb6a37){_0x46ff9e=_0xdb6a37 instanceof Error?_0xdb6a37:new Error(String(_0xdb6a37));if(_0x46f417===retries)break;if(shouldRetry(_0xdb6a37)){console[_0x52f31e(0xd4)](_0x52f31e(0xe3)+retryDelay+'ms\x20后进行第\x20'+(_0x46f417+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x46ff9e||new Error(_0x52f31e(0xcc));}function a237_0x56c4(){const _0x3d7456=['text','6580hDHKDY','includes','statusText','headers','5fADhDL','ENOTFOUND','log','632038RKieFW','url','signal','331956GAFcKQ','message','16PuBEzt','158182bLXzgw','content-type','name','2622BYMKjz','fetch','5668630tlcYiZ','application/json','TypeError','*\x20请求失败,','AbortError','943953knschD','1154156HYGute','json','Request\x20failed'];a237_0x56c4=function(){return _0x3d7456;};return a237_0x56c4();}function shouldRetry(_0x3bc2d2){const _0x12ef36=a237_0x4165;if(_0x3bc2d2 instanceof Error){if(_0x3bc2d2[_0x12ef36(0xdd)]===_0x12ef36(0xe4))return![];if(_0x3bc2d2[_0x12ef36(0xdd)]===_0x12ef36(0xe2)&&_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)](_0x12ef36(0xdf)))return!![];if(_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)]('ECONNRESET'))return!![];if(_0x3bc2d2[_0x12ef36(0xd9)][_0x12ef36(0xcf)](_0x12ef36(0xd3)))return![];}return![];}function a237_0x4165(_0x283781,_0x2401f8){_0x283781=_0x283781-0xca;const _0x56c49a=a237_0x56c4();let _0x4165dc=_0x56c49a[_0x283781];return _0x4165dc;}function sleep(_0x3c228f){return new Promise(_0x1bb65=>setTimeout(_0x1bb65,_0x3c228f));}export function validateUrl(_0x2b9935){try{return new URL(_0x2b9935),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a238_0x5d84(){const _0x39066a=['1026945dCEjKh','nonInteractive','8879823WRiHKS','1246598TbPAcU','true','3422503VPYXTU','6549mKBMYk','isTTY','1148trzfOJ','stdin','isRaw','setRawMode','stdout','5716290QkSTQf','5268784tmfDnb','8RlmdfW'];a238_0x5d84=function(){return _0x39066a;};return a238_0x5d84();}(function(_0x3e8d6d,_0x21fcc0){const _0x5ab5cb=a238_0x3078,_0xfd2a8c=_0x3e8d6d();while(!![]){try{const _0x5a7073=-parseInt(_0x5ab5cb(0x19b))/0x1+-parseInt(_0x5ab5cb(0x1a0))/0x2*(-parseInt(_0x5ab5cb(0x19e))/0x3)+parseInt(_0x5ab5cb(0x1a6))/0x4+-parseInt(_0x5ab5cb(0x1a8))/0x5+-parseInt(_0x5ab5cb(0x1a5))/0x6+-parseInt(_0x5ab5cb(0x19d))/0x7*(parseInt(_0x5ab5cb(0x1a7))/0x8)+parseInt(_0x5ab5cb(0x1aa))/0x9;if(_0x5a7073===_0x21fcc0)break;else _0xfd2a8c['push'](_0xfd2a8c['shift']());}catch(_0x4e748f){_0xfd2a8c['push'](_0xfd2a8c['shift']());}}}(a238_0x5d84,0xa1ed6));function a238_0x3078(_0x4ea257,_0x4e0059){_0x4ea257=_0x4ea257-0x19b;const _0x5d8459=a238_0x5d84();let _0x30788a=_0x5d8459[_0x4ea257];return _0x30788a;}function env(_0x55cb37){return process.env[`RABETBASE_${_0x55cb37}`]||process.env[`LOVRABET_${_0x55cb37}`]||undefined;}export function isNonInteractive(_0x45776d){const _0x2c69cf=a238_0x3078;return!!(_0x45776d[_0x2c69cf(0x1a9)]||_0x45776d['ci']||env('CI')===_0x2c69cf(0x19c)||process.env.CI===_0x2c69cf(0x19c)||!process[_0x2c69cf(0x1a4)][_0x2c69cf(0x19f)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x349478=a238_0x3078;if(!process[_0x349478(0x1a1)][_0x349478(0x19f)])return![];try{const _0x153552=process[_0x349478(0x1a1)][_0x349478(0x1a2)];return process[_0x349478(0x1a1)][_0x349478(0x1a3)](!![]),process['stdin'][_0x349478(0x1a3)](_0x153552??![]),!![];}catch{return![];}}
1
+ function a238_0x4d45(){const _0x299647=['3272899YIwKzU','3XqRbfQ','true','isTTY','11599600ArgFgJ','1538140BqLXwm','3491739WRvoyH','isRaw','4TkCiSN','stdout','stdin','5697zwoMiR','18693675LpVUbW','nonInteractive','6vqHhvd','1003038zkXgbm','5896BdBKwF','setRawMode'];a238_0x4d45=function(){return _0x299647;};return a238_0x4d45();}(function(_0x1d4124,_0x46df09){const _0x423fa0=a238_0x3100,_0x11fcd0=_0x1d4124();while(!![]){try{const _0x56306c=-parseInt(_0x423fa0(0x1d3))/0x1*(parseInt(_0x423fa0(0x1cf))/0x2)+-parseInt(_0x423fa0(0x1d8))/0x3*(parseInt(_0x423fa0(0x1da))/0x4)+-parseInt(_0x423fa0(0x1d7))/0x5+-parseInt(_0x423fa0(0x1ce))/0x6*(-parseInt(_0x423fa0(0x1d2))/0x7)+-parseInt(_0x423fa0(0x1d0))/0x8*(-parseInt(_0x423fa0(0x1cb))/0x9)+parseInt(_0x423fa0(0x1d6))/0xa+parseInt(_0x423fa0(0x1cc))/0xb;if(_0x56306c===_0x46df09)break;else _0x11fcd0['push'](_0x11fcd0['shift']());}catch(_0x4c68ef){_0x11fcd0['push'](_0x11fcd0['shift']());}}}(a238_0x4d45,0xc78d5));function env(_0x5e2050){return process.env[`RABETBASE_${_0x5e2050}`]||process.env[`LOVRABET_${_0x5e2050}`]||undefined;}function a238_0x3100(_0x4920f3,_0x16c76d){_0x4920f3=_0x4920f3-0x1c9;const _0x4d45d0=a238_0x4d45();let _0x310040=_0x4d45d0[_0x4920f3];return _0x310040;}export function isNonInteractive(_0x1a49a6){const _0x859a1f=a238_0x3100;return!!(_0x1a49a6[_0x859a1f(0x1cd)]||_0x1a49a6['ci']||env('CI')===_0x859a1f(0x1d4)||process.env.CI===_0x859a1f(0x1d4)||!process[_0x859a1f(0x1c9)][_0x859a1f(0x1d5)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x1812be=a238_0x3100;if(!process[_0x1812be(0x1ca)][_0x1812be(0x1d5)])return![];try{const _0xeae40b=process[_0x1812be(0x1ca)][_0x1812be(0x1d9)];return process['stdin'][_0x1812be(0x1d1)](!![]),process[_0x1812be(0x1ca)]['setRawMode'](_0xeae40b??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a239_0x5b4be1=a239_0x358f;(function(_0x25784f,_0x7b1e87){const _0xae634e=a239_0x358f,_0x34394c=_0x25784f();while(!![]){try{const _0x396313=parseInt(_0xae634e(0xa6))/0x1+parseInt(_0xae634e(0xc1))/0x2+parseInt(_0xae634e(0xa5))/0x3*(parseInt(_0xae634e(0xc9))/0x4)+parseInt(_0xae634e(0xd9))/0x5*(parseInt(_0xae634e(0xa9))/0x6)+parseInt(_0xae634e(0xaf))/0x7+parseInt(_0xae634e(0xdf))/0x8+-parseInt(_0xae634e(0xc6))/0x9*(parseInt(_0xae634e(0xdc))/0xa);if(_0x396313===_0x7b1e87)break;else _0x34394c['push'](_0x34394c['shift']());}catch(_0x51a939){_0x34394c['push'](_0x34394c['shift']());}}}(a239_0x3a80,0xf2161));import a239_0x4075c7 from'winston';import a239_0x101c3f from'node:fs';import a239_0x2f0dad from'node:path';class Logger{[a239_0x5b4be1(0xac)];[a239_0x5b4be1(0xba)];[a239_0x5b4be1(0xaa)]='';constructor(){this['logFilePath']='';}[a239_0x5b4be1(0xcc)](_0x38bcd0){this['currentRawCommand']=_0x38bcd0;}[a239_0x5b4be1(0xb5)](){const _0x1db2a9=a239_0x5b4be1,_0x4f70bf=a239_0x2f0dad[_0x1db2a9(0xce)](this['logFilePath']);!a239_0x101c3f[_0x1db2a9(0xca)](_0x4f70bf)&&a239_0x101c3f[_0x1db2a9(0xb6)](_0x4f70bf,{'recursive':!![]});const _0x37b303=a239_0x4075c7[_0x1db2a9(0xbb)][_0x1db2a9(0xae)](a239_0x4075c7[_0x1db2a9(0xbb)]['timestamp'](),a239_0x4075c7[_0x1db2a9(0xbb)][_0x1db2a9(0xdd)]({'stack':!![]}),a239_0x4075c7[_0x1db2a9(0xbb)][_0x1db2a9(0xde)](_0x10d504=>{const _0x2e06cf=_0x1db2a9,_0x483f2a={'timestamp':_0x10d504[_0x2e06cf(0xb9)]||new Date()[_0x2e06cf(0xb3)](),'level':_0x10d504[_0x2e06cf(0xd2)]||_0x2e06cf(0xc5),'command':_0x10d504[_0x2e06cf(0xab)]||_0x2e06cf(0xb7),'rawCommand':_0x10d504[_0x2e06cf(0xbe)]||this['currentRawCommand']||undefined,'message':_0x10d504[_0x2e06cf(0xb2)]||'','duration':_0x10d504[_0x2e06cf(0xe2)]||undefined,'details':_0x10d504[_0x2e06cf(0xd8)]||undefined};return JSON[_0x2e06cf(0xc7)](_0x483f2a);}));this[_0x1db2a9(0xac)]=a239_0x4075c7[_0x1db2a9(0xa7)]({'level':_0x1db2a9(0xc5),'format':_0x37b303,'transports':[new a239_0x4075c7[(_0x1db2a9(0xcb))][(_0x1db2a9(0xc3))]({'filename':this[_0x1db2a9(0xba)],'level':'info'})],'silent':![]}),a239_0x4075c7[_0x1db2a9(0xc0)]({'success':_0x1db2a9(0xd3),'error':_0x1db2a9(0xa8),'warn':_0x1db2a9(0xe1),'info':_0x1db2a9(0xe3)});}[a239_0x5b4be1(0xb8)](_0x261273){const _0x44ac67=a239_0x5b4be1;this[_0x44ac67(0xba)]=a239_0x2f0dad[_0x44ac67(0xc2)](_0x261273,_0x44ac67(0xd6)),this[_0x44ac67(0xac)]&&this[_0x44ac67(0xac)]['clear'](),this[_0x44ac67(0xb5)]();}['info'](_0x55cc51,_0x292fc9,_0x5589fe){const _0x2bab41=a239_0x5b4be1;if(!this[_0x2bab41(0xba)]||!this[_0x2bab41(0xac)])return;this[_0x2bab41(0xac)]['info'](_0x292fc9,{'command':_0x55cc51,'details':_0x5589fe});}[a239_0x5b4be1(0xda)](_0x1103c9,_0x42a646,_0x11ff54,_0x3df737){const _0x196a07=a239_0x5b4be1;if(!this[_0x196a07(0xba)]||!this[_0x196a07(0xac)])return;this[_0x196a07(0xac)][_0x196a07(0xad)](_0x196a07(0xc5),_0x42a646,{'level':_0x196a07(0xda),'command':_0x1103c9,'duration':_0x11ff54,'details':_0x3df737});}[a239_0x5b4be1(0xd4)](_0x33e5ce,_0x35be22,_0x599503){const _0x2fe8b3=a239_0x5b4be1;if(!this[_0x2fe8b3(0xba)]||!this[_0x2fe8b3(0xac)])return;this[_0x2fe8b3(0xac)][_0x2fe8b3(0xd4)](_0x35be22,{'command':_0x33e5ce,'details':_0x599503});}[a239_0x5b4be1(0xb0)](_0x20a1ec,_0x463e70,_0x5a7f56){const _0x4275af=a239_0x5b4be1;if(!this[_0x4275af(0xba)]||!this[_0x4275af(0xac)])return;this[_0x4275af(0xac)]['warn'](_0x463e70,{'command':_0x20a1ec,'details':_0x5a7f56});}async[a239_0x5b4be1(0xd1)](_0x20244b,_0xac5fdf,_0x1fb8fc){const _0x196590=a239_0x5b4be1,_0x4e4037=Date[_0x196590(0xc4)]();this[_0x196590(0xc5)](_0x20244b,_0x196590(0xcf)+_0xac5fdf);try{const _0x22719f=await _0x1fb8fc(),_0x46472c=Date[_0x196590(0xc4)]()-_0x4e4037;return this['success'](_0x20244b,_0x196590(0xcd)+_0xac5fdf,_0x46472c),_0x22719f;}catch(_0x55288e){const _0xb61671=Date[_0x196590(0xc4)]()-_0x4e4037;this['error'](_0x20244b,_0x196590(0xe0)+_0xac5fdf,{'error':_0x55288e instanceof Error?_0x55288e[_0x196590(0xb2)]:String(_0x55288e),'duration':_0xb61671});throw _0x55288e;}}['readLogs'](){const _0x495b4d=a239_0x5b4be1;try{if(!a239_0x101c3f['existsSync'](this['logFilePath']))return[];const _0x19175a=a239_0x101c3f[_0x495b4d(0xd5)](this['logFilePath'],'utf8');return _0x19175a[_0x495b4d(0xbc)]('\x0a')['filter'](_0x5d5703=>_0x5d5703[_0x495b4d(0xb1)]())['map'](_0x4a827d=>JSON[_0x495b4d(0xd7)](_0x4a827d));}catch(_0x1fa58d){return console[_0x495b4d(0xb0)](_0x495b4d(0xd0),_0x1fa58d),[];}}[a239_0x5b4be1(0xb4)](){const _0x226e6d=a239_0x5b4be1;try{a239_0x101c3f[_0x226e6d(0xca)](this[_0x226e6d(0xba)])&&a239_0x101c3f[_0x226e6d(0xbf)](this['logFilePath'],'',_0x226e6d(0xdb));}catch(_0x12cd9b){console[_0x226e6d(0xb0)](_0x226e6d(0xc8),_0x12cd9b);}}[a239_0x5b4be1(0xbd)](){const _0x1ef543=a239_0x5b4be1;return this[_0x1ef543(0xac)];}}function a239_0x3a80(){const _0xc92aa2=['details','5IOZrLa','success','utf8','16860dBWpnZ','errors','printf','3674408GrNiNn','失败:\x20','yellow','duration','blue','27malizy','1378028JsbzbO','createLogger','red','8397030sCCPxv','currentRawCommand','command','winstonLogger','log','combine','9914240NvfJWX','warn','trim','message','toISOString','clearLogs','initWinstonLogger','mkdirSync','unknown','setLogPath','timestamp','logFilePath','format','split','getWinstonInstance','rawCommand','writeFileSync','addColors','1170420qhCSaH','join','File','now','info','33084wjfbWI','stringify','Failed\x20to\x20clear\x20logs:','867092ZObcow','existsSync','transports','setRawCommand','完成:\x20','dirname','开始执行:\x20','Failed\x20to\x20read\x20logs:','logTask','level','green','error','readFileSync','.lovrabet.log','parse'];a239_0x3a80=function(){return _0xc92aa2;};return a239_0x3a80();}function a239_0x358f(_0xab4f15,_0x7972de){_0xab4f15=_0xab4f15-0xa5;const _0x3a8047=a239_0x3a80();let _0x358fb7=_0x3a8047[_0xab4f15];return _0x358fb7;}export const logger=new Logger();
1
+ function a239_0x38f4(_0x2ac243,_0x54d5b0){_0x2ac243=_0x2ac243-0xc1;const _0x4eb59c=a239_0x4eb5();let _0x38f434=_0x4eb59c[_0x2ac243];return _0x38f434;}const a239_0x1db047=a239_0x38f4;(function(_0x300651,_0x3a5b4b){const _0x4522aa=a239_0x38f4,_0x495aca=_0x300651();while(!![]){try{const _0x461492=parseInt(_0x4522aa(0xf9))/0x1*(parseInt(_0x4522aa(0xc7))/0x2)+parseInt(_0x4522aa(0xd0))/0x3*(parseInt(_0x4522aa(0xca))/0x4)+-parseInt(_0x4522aa(0xc6))/0x5*(-parseInt(_0x4522aa(0xcc))/0x6)+-parseInt(_0x4522aa(0xd3))/0x7*(-parseInt(_0x4522aa(0xd1))/0x8)+-parseInt(_0x4522aa(0xcb))/0x9+-parseInt(_0x4522aa(0xe0))/0xa*(-parseInt(_0x4522aa(0xc9))/0xb)+parseInt(_0x4522aa(0xe6))/0xc;if(_0x461492===_0x3a5b4b)break;else _0x495aca['push'](_0x495aca['shift']());}catch(_0x346d78){_0x495aca['push'](_0x495aca['shift']());}}}(a239_0x4eb5,0xb5441));import a239_0x1daaf0 from'winston';import a239_0x263db3 from'node:fs';function a239_0x4eb5(){const _0x17a43b=['833tmCCZd','parse','transports','red','logTask','message','join','完成:\x20','warn','rawCommand','File','logFilePath','log','370210BMekaO','addColors','split','info','combine','readFileSync','1736892bOSVoX','toISOString','timestamp','winstonLogger','errors','now','dirname','format','filter','printf','开始执行:\x20','details','utf8','Failed\x20to\x20read\x20logs:','currentRawCommand','Failed\x20to\x20clear\x20logs:','green','setRawCommand','setLogPath','515875CtkIDP','readLogs','clearLogs','createLogger','yellow','.lovrabet.log','success','1065MzdDGX','4KAVduz','initWinstonLogger','121ferWGE','25876rFhzDI','11939040OffuUk','5604ysCtdo','mkdirSync','map','error','78EYXqUw','7944eWsjzW','getWinstonInstance'];a239_0x4eb5=function(){return _0x17a43b;};return a239_0x4eb5();}import a239_0x407fe7 from'node:path';class Logger{[a239_0x1db047(0xe9)];[a239_0x1db047(0xde)];[a239_0x1db047(0xf4)]='';constructor(){const _0x50d3a0=a239_0x1db047;this[_0x50d3a0(0xde)]='';}[a239_0x1db047(0xf7)](_0x2137dd){const _0x1223a2=a239_0x1db047;this[_0x1223a2(0xf4)]=_0x2137dd;}[a239_0x1db047(0xc8)](){const _0x451968=a239_0x1db047,_0x2e7f68=a239_0x407fe7[_0x451968(0xec)](this[_0x451968(0xde)]);!a239_0x263db3['existsSync'](_0x2e7f68)&&a239_0x263db3[_0x451968(0xcd)](_0x2e7f68,{'recursive':!![]});const _0x57031a=a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xe4)](a239_0x1daaf0['format'][_0x451968(0xe8)](),a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xea)]({'stack':!![]}),a239_0x1daaf0[_0x451968(0xed)][_0x451968(0xef)](_0x89b999=>{const _0x2e04dc=_0x451968,_0x4a3796={'timestamp':_0x89b999[_0x2e04dc(0xe8)]||new Date()[_0x2e04dc(0xe7)](),'level':_0x89b999['level']||'info','command':_0x89b999['command']||'unknown','rawCommand':_0x89b999[_0x2e04dc(0xdc)]||this[_0x2e04dc(0xf4)]||undefined,'message':_0x89b999['message']||'','duration':_0x89b999['duration']||undefined,'details':_0x89b999[_0x2e04dc(0xf1)]||undefined};return JSON['stringify'](_0x4a3796);}));this[_0x451968(0xe9)]=a239_0x1daaf0[_0x451968(0xc2)]({'level':_0x451968(0xe3),'format':_0x57031a,'transports':[new a239_0x1daaf0[(_0x451968(0xd5))][(_0x451968(0xdd))]({'filename':this[_0x451968(0xde)],'level':_0x451968(0xe3)})],'silent':![]}),a239_0x1daaf0[_0x451968(0xe1)]({'success':_0x451968(0xf6),'error':_0x451968(0xd6),'warn':_0x451968(0xc3),'info':'blue'});}[a239_0x1db047(0xf8)](_0x533657){const _0x5c7fc7=a239_0x1db047;this[_0x5c7fc7(0xde)]=a239_0x407fe7[_0x5c7fc7(0xd9)](_0x533657,_0x5c7fc7(0xc4)),this[_0x5c7fc7(0xe9)]&&this[_0x5c7fc7(0xe9)]['clear'](),this['initWinstonLogger']();}[a239_0x1db047(0xe3)](_0x49fe7e,_0xa92156,_0xf35383){const _0x402209=a239_0x1db047;if(!this['logFilePath']||!this[_0x402209(0xe9)])return;this[_0x402209(0xe9)][_0x402209(0xe3)](_0xa92156,{'command':_0x49fe7e,'details':_0xf35383});}[a239_0x1db047(0xc5)](_0xea60c9,_0x1727a1,_0x219711,_0x3eba16){const _0x2c74fa=a239_0x1db047;if(!this['logFilePath']||!this[_0x2c74fa(0xe9)])return;this[_0x2c74fa(0xe9)][_0x2c74fa(0xdf)](_0x2c74fa(0xe3),_0x1727a1,{'level':_0x2c74fa(0xc5),'command':_0xea60c9,'duration':_0x219711,'details':_0x3eba16});}[a239_0x1db047(0xcf)](_0x3800a1,_0x558549,_0x5d1dc1){const _0x456a34=a239_0x1db047;if(!this[_0x456a34(0xde)]||!this[_0x456a34(0xe9)])return;this['winstonLogger'][_0x456a34(0xcf)](_0x558549,{'command':_0x3800a1,'details':_0x5d1dc1});}[a239_0x1db047(0xdb)](_0x45047e,_0x79647b,_0xa4370e){const _0x3fa134=a239_0x1db047;if(!this[_0x3fa134(0xde)]||!this['winstonLogger'])return;this['winstonLogger'][_0x3fa134(0xdb)](_0x79647b,{'command':_0x45047e,'details':_0xa4370e});}async[a239_0x1db047(0xd7)](_0x3fe7c8,_0x3b041d,_0xcf2f1e){const _0x2e074d=a239_0x1db047,_0x36b869=Date[_0x2e074d(0xeb)]();this[_0x2e074d(0xe3)](_0x3fe7c8,_0x2e074d(0xf0)+_0x3b041d);try{const _0x281b0f=await _0xcf2f1e(),_0x333785=Date[_0x2e074d(0xeb)]()-_0x36b869;return this[_0x2e074d(0xc5)](_0x3fe7c8,_0x2e074d(0xda)+_0x3b041d,_0x333785),_0x281b0f;}catch(_0x571943){const _0x2a32de=Date[_0x2e074d(0xeb)]()-_0x36b869;this[_0x2e074d(0xcf)](_0x3fe7c8,'失败:\x20'+_0x3b041d,{'error':_0x571943 instanceof Error?_0x571943[_0x2e074d(0xd8)]:String(_0x571943),'duration':_0x2a32de});throw _0x571943;}}[a239_0x1db047(0xfa)](){const _0x4f93c7=a239_0x1db047;try{if(!a239_0x263db3['existsSync'](this['logFilePath']))return[];const _0x3ca7ae=a239_0x263db3[_0x4f93c7(0xe5)](this[_0x4f93c7(0xde)],_0x4f93c7(0xf2));return _0x3ca7ae[_0x4f93c7(0xe2)]('\x0a')[_0x4f93c7(0xee)](_0x846437=>_0x846437['trim']())[_0x4f93c7(0xce)](_0xf85f05=>JSON[_0x4f93c7(0xd4)](_0xf85f05));}catch(_0x5c17c3){return console[_0x4f93c7(0xdb)](_0x4f93c7(0xf3),_0x5c17c3),[];}}[a239_0x1db047(0xc1)](){const _0x49a928=a239_0x1db047;try{a239_0x263db3['existsSync'](this[_0x49a928(0xde)])&&a239_0x263db3['writeFileSync'](this['logFilePath'],'',_0x49a928(0xf2));}catch(_0x5d539b){console['warn'](_0x49a928(0xf5),_0x5d539b);}}[a239_0x1db047(0xd2)](){const _0x959df=a239_0x1db047;return this[_0x959df(0xe9)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a240_0x4dcf(_0x5baa59,_0x19932b){_0x5baa59=_0x5baa59-0x1a2;const _0x43ebf8=a240_0x43eb();let _0x4dcf54=_0x43ebf8[_0x5baa59];return _0x4dcf54;}(function(_0x5fe766,_0x589157){const _0x14dec5=a240_0x4dcf,_0x4e133c=_0x5fe766();while(!![]){try{const _0x4e1053=-parseInt(_0x14dec5(0x1a3))/0x1+parseInt(_0x14dec5(0x1aa))/0x2*(parseInt(_0x14dec5(0x1a4))/0x3)+parseInt(_0x14dec5(0x1ab))/0x4*(-parseInt(_0x14dec5(0x1ad))/0x5)+-parseInt(_0x14dec5(0x1a5))/0x6+-parseInt(_0x14dec5(0x1a6))/0x7*(-parseInt(_0x14dec5(0x1a2))/0x8)+-parseInt(_0x14dec5(0x1ac))/0x9+parseInt(_0x14dec5(0x1af))/0xa*(parseInt(_0x14dec5(0x1a8))/0xb);if(_0x4e1053===_0x589157)break;else _0x4e133c['push'](_0x4e133c['shift']());}catch(_0x4b28c6){_0x4e133c['push'](_0x4e133c['shift']());}}}(a240_0x43eb,0x67df5));import{CliErrors}from'../errors.js';function a240_0x43eb(){const _0xa309f9=['object','1591096DHUcWq','155068mBtJQa','3ngAXUw','5063088GFnSzC','7XbrBTK','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','3823611PyjrJQ','validation','970314XoodWp','324sIAAnQ','1101663NtNjvE','11115WLYWoS','parse','30hSjmHD'];a240_0x43eb=function(){return _0xa309f9;};return a240_0x43eb();}export function parseJsonParams(_0x183deb){const _0x484c0e=a240_0x4dcf;if(!_0x183deb)return undefined;let _0x410f60;try{_0x410f60=JSON[_0x484c0e(0x1ae)](_0x183deb);}catch{throw CliErrors[_0x484c0e(0x1a9)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x183deb);}if(!_0x410f60||typeof _0x410f60!==_0x484c0e(0x1b0)||Array['isArray'](_0x410f60))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object',_0x484c0e(0x1a7));return _0x410f60;}
1
+ (function(_0xd3c2d8,_0x2eb880){const _0x195b4e=a240_0x5b74,_0x52e82b=_0xd3c2d8();while(!![]){try{const _0x3430ee=parseInt(_0x195b4e(0x191))/0x1+parseInt(_0x195b4e(0x190))/0x2*(-parseInt(_0x195b4e(0x18b))/0x3)+parseInt(_0x195b4e(0x185))/0x4*(parseInt(_0x195b4e(0x184))/0x5)+-parseInt(_0x195b4e(0x18f))/0x6+parseInt(_0x195b4e(0x188))/0x7+-parseInt(_0x195b4e(0x189))/0x8*(-parseInt(_0x195b4e(0x18e))/0x9)+parseInt(_0x195b4e(0x18d))/0xa*(-parseInt(_0x195b4e(0x187))/0xb);if(_0x3430ee===_0x2eb880)break;else _0x52e82b['push'](_0x52e82b['shift']());}catch(_0x3678f9){_0x52e82b['push'](_0x52e82b['shift']());}}}(a240_0x191c,0xbd10a));function a240_0x5b74(_0x4755a2,_0x5c09ac){_0x4755a2=_0x4755a2-0x184;const _0x191cea=a240_0x191c();let _0x5b74ad=_0x191cea[_0x4755a2];return _0x5b74ad;}function a240_0x191c(){const _0xb19b3d=['416612ZlnTbY','--params\x20must\x20be\x20a\x20JSON\x20object','535kaSwzz','24356XxdnJp','object','535359UEpHgA','9440144gAIBEv','6000096kFYqBg','parse','39pssFMf','Invalid\x20JSON\x20for\x20--params:\x20','290XoByBZ','18Ikxiiu','8294850XyQMkT','53610mxHtiE'];a240_0x191c=function(){return _0xb19b3d;};return a240_0x191c();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x276f56){const _0x400f60=a240_0x5b74;if(!_0x276f56)return undefined;let _0xa64f71;try{_0xa64f71=JSON[_0x400f60(0x18a)](_0x276f56);}catch{throw CliErrors['validation'](_0x400f60(0x18c)+_0x276f56);}if(!_0xa64f71||typeof _0xa64f71!==_0x400f60(0x186)||Array['isArray'](_0xa64f71))throw CliErrors['validation'](_0x400f60(0x192),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xa64f71;}
@@ -1 +1 @@
1
- function a241_0x1ca8(){const _0x578c39=['12qweRRU','13176198gKasHY','948164QnGmyB','46922540UKFDCI','win32','827934YysNMK','11ECUZOf','1219674psaiDh','268jSFGWB','2FKUJCv','10719920ZetZdu','platform','4930BtkREK'];a241_0x1ca8=function(){return _0x578c39;};return a241_0x1ca8();}const a241_0x1a737d=a241_0x181c;(function(_0x11fc98,_0x202725){const _0x5220d3=a241_0x181c,_0x422b78=_0x11fc98();while(!![]){try{const _0x383bbb=-parseInt(_0x5220d3(0x1f2))/0x1*(parseInt(_0x5220d3(0x1f0))/0x2)+parseInt(_0x5220d3(0x1ee))/0x3+-parseInt(_0x5220d3(0x1f1))/0x4*(-parseInt(_0x5220d3(0x1e8))/0x5)+parseInt(_0x5220d3(0x1e9))/0x6*(-parseInt(_0x5220d3(0x1eb))/0x7)+-parseInt(_0x5220d3(0x1f3))/0x8+-parseInt(_0x5220d3(0x1ea))/0x9+-parseInt(_0x5220d3(0x1ec))/0xa*(-parseInt(_0x5220d3(0x1ef))/0xb);if(_0x383bbb===_0x202725)break;else _0x422b78['push'](_0x422b78['shift']());}catch(_0x3808d6){_0x422b78['push'](_0x422b78['shift']());}}}(a241_0x1ca8,0xb4978));export const isWindows=process[a241_0x1a737d(0x1e7)]===a241_0x1a737d(0x1ed);function a241_0x181c(_0x23e44b,_0x5c3700){_0x23e44b=_0x23e44b-0x1e7;const _0x1ca80d=a241_0x1ca8();let _0x181c3a=_0x1ca80d[_0x23e44b];return _0x181c3a;}export function resolveNpmBin(_0x5d75a7){return isWindows?_0x5d75a7+'.cmd':_0x5d75a7;}
1
+ const a241_0xa95c70=a241_0x3297;function a241_0x79b0(){const _0x3cf567=['2966046NCoulN','280356QrAQSC','8mwZJdl','5275640lRjgVT','win32','5OapfZL','2JvWHqz','22gUjceU','7nSqmmv','246628Biioxv','2838285FJImrp','647272wBLpQj','6303WQmwdk'];a241_0x79b0=function(){return _0x3cf567;};return a241_0x79b0();}function a241_0x3297(_0x2f0df6,_0x49a90d){_0x2f0df6=_0x2f0df6-0x1bc;const _0x79b0c4=a241_0x79b0();let _0x3297f8=_0x79b0c4[_0x2f0df6];return _0x3297f8;}(function(_0x548dbc,_0x195eb7){const _0x2ce6e3=a241_0x3297,_0x3cd4b5=_0x548dbc();while(!![]){try{const _0x5b1b45=-parseInt(_0x2ce6e3(0x1c6))/0x1*(parseInt(_0x2ce6e3(0x1bc))/0x2)+parseInt(_0x2ce6e3(0x1bf))/0x3+-parseInt(_0x2ce6e3(0x1be))/0x4*(parseInt(_0x2ce6e3(0x1c5))/0x5)+-parseInt(_0x2ce6e3(0x1c0))/0x6*(-parseInt(_0x2ce6e3(0x1c8))/0x7)+-parseInt(_0x2ce6e3(0x1c2))/0x8*(parseInt(_0x2ce6e3(0x1bd))/0x9)+parseInt(_0x2ce6e3(0x1c3))/0xa+parseInt(_0x2ce6e3(0x1c7))/0xb*(parseInt(_0x2ce6e3(0x1c1))/0xc);if(_0x5b1b45===_0x195eb7)break;else _0x3cd4b5['push'](_0x3cd4b5['shift']());}catch(_0x1a6275){_0x3cd4b5['push'](_0x3cd4b5['shift']());}}}(a241_0x79b0,0x54b29));export const isWindows=process['platform']===a241_0xa95c70(0x1c4);export function resolveNpmBin(_0x31045c){return isWindows?_0x31045c+'.cmd':_0x31045c;}
@@ -1 +1 @@
1
- (function(_0x1cdbf0,_0x3f5ac6){const _0x546c90=a242_0x1fd0,_0x4f7fcd=_0x1cdbf0();while(!![]){try{const _0x26e04d=parseInt(_0x546c90(0x83))/0x1+parseInt(_0x546c90(0x7b))/0x2*(-parseInt(_0x546c90(0x87))/0x3)+-parseInt(_0x546c90(0x7a))/0x4+-parseInt(_0x546c90(0x78))/0x5*(parseInt(_0x546c90(0x79))/0x6)+parseInt(_0x546c90(0x81))/0x7*(parseInt(_0x546c90(0x7d))/0x8)+parseInt(_0x546c90(0x7f))/0x9*(parseInt(_0x546c90(0x82))/0xa)+-parseInt(_0x546c90(0x8a))/0xb*(-parseInt(_0x546c90(0x85))/0xc);if(_0x26e04d===_0x3f5ac6)break;else _0x4f7fcd['push'](_0x4f7fcd['shift']());}catch(_0xdd7d64){_0x4f7fcd['push'](_0x4f7fcd['shift']());}}}(a242_0x32dc,0xa5f49));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';function a242_0x1fd0(_0x1d124f,_0x186883){_0x1d124f=_0x1d124f-0x73;const _0x32dcd7=a242_0x32dc();let _0x1fd0b3=_0x32dcd7[_0x1d124f];return _0x1fd0b3;}import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';function a242_0x32dc(){const _0x331804=['本地模板文件不存在:\x20','status','content','2184495HAWIKZ','6lYZtSv','2536248Uhgnhz','274wSLLkj','CDN\x20返回数据格式错误','936WWoWGx','lastUpdated','45ysuaFS','string','43477qrvdfQ','1091340cwtaBv','54121VucJiA','agents.md','84VWNcDJ','catch','19545BuXZsm','statusText','.cursor/rules','2069243cFlivW','lovrabet_rules.mdc','/rules/rules.json'];a242_0x32dc=function(){return _0x331804;};return a242_0x32dc();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x3aaa7e=a242_0x1fd0,_0x42f728=getTemplateBaseUrl();return _0x42f728+_0x3aaa7e(0x74);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x197884=a242_0x1fd0,_0x5b6963=getRulesCdnUrl(),_0x451fd7=await fetch(_0x5b6963,{'headers':{'Accept':'application/json'}});if(!_0x451fd7['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x451fd7[_0x197884(0x76)]+'\x20'+_0x451fd7[_0x197884(0x88)]);const _0x322a12=await _0x451fd7['json']();if(!_0x322a12[_0x197884(0x77)]||typeof _0x322a12[_0x197884(0x77)]!==_0x197884(0x80))throw new Error(_0x197884(0x7c));return _0x322a12;}export async function getRulesContent(){const _0x2ec12c=a242_0x1fd0;try{const _0x2d8c3d=await fetchRulesFromCDN();return _0x2d8c3d[_0x2ec12c(0x77)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x397f6e=a242_0x1fd0;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x397f6e(0x75)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x103006){const _0x2586ae=a242_0x1fd0,_0x5e6ee0=await fetchRulesFromCDN()[_0x2586ae(0x86)](()=>null);let _0x334c58;_0x5e6ee0?(_0x334c58=_0x5e6ee0['content'],_0x5e6ee0[_0x2586ae(0x7e)]&&(_0x334c58=appendUpdateTime(_0x334c58,_0x5e6ee0['lastUpdated']))):_0x334c58=readLocalTemplate();const _0x4df501=dirname(_0x103006);!existsSync(_0x4df501)&&mkdirSync(_0x4df501,{'recursive':!![]}),writeFileSync(_0x103006,_0x334c58,'utf-8');}export async function copyRulesToCursor(_0x417471){const _0x23b354=a242_0x1fd0,_0x1f8b88=join(_0x417471,_0x23b354(0x89)),_0x3ca945=join(_0x1f8b88,_0x23b354(0x73));if(existsSync(_0x3ca945))return![];return await writeRulesFile(_0x3ca945),!![];}export async function copyRulesToAgentsMd(_0x223fc8){const _0x13b592=a242_0x1fd0,_0x543073=join(_0x223fc8,_0x13b592(0x84));if(existsSync(_0x543073))return![];return await writeRulesFile(_0x543073),!![];}
1
+ (function(_0x207a11,_0x200c1e){const _0x3a9a8d=a242_0x372d,_0x10c788=_0x207a11();while(!![]){try{const _0x255d6f=parseInt(_0x3a9a8d(0x200))/0x1*(parseInt(_0x3a9a8d(0x1fa))/0x2)+-parseInt(_0x3a9a8d(0x1ff))/0x3+-parseInt(_0x3a9a8d(0x1f6))/0x4+-parseInt(_0x3a9a8d(0x203))/0x5*(parseInt(_0x3a9a8d(0x1f7))/0x6)+-parseInt(_0x3a9a8d(0x1f0))/0x7+parseInt(_0x3a9a8d(0x1f4))/0x8*(parseInt(_0x3a9a8d(0x1f9))/0x9)+parseInt(_0x3a9a8d(0x1fd))/0xa*(parseInt(_0x3a9a8d(0x204))/0xb);if(_0x255d6f===_0x200c1e)break;else _0x10c788['push'](_0x10c788['shift']());}catch(_0x58234f){_0x10c788['push'](_0x10c788['shift']());}}}(a242_0x35ba,0xb7a84));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 _0x2a3650=a242_0x372d,_0x40d206=getTemplateBaseUrl();return _0x40d206+_0x2a3650(0x205);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x3a9b62=a242_0x372d,_0x51accb=getRulesCdnUrl(),_0xd45c26=await fetch(_0x51accb,{'headers':{'Accept':_0x3a9b62(0x1f8)}});if(!_0xd45c26['ok'])throw new Error(_0x3a9b62(0x1fb)+_0xd45c26[_0x3a9b62(0x1ef)]+'\x20'+_0xd45c26[_0x3a9b62(0x201)]);const _0x273174=await _0xd45c26[_0x3a9b62(0x1f5)]();if(!_0x273174[_0x3a9b62(0x1fe)]||typeof _0x273174[_0x3a9b62(0x1fe)]!==_0x3a9b62(0x207))throw new Error(_0x3a9b62(0x1f2));return _0x273174;}export async function getRulesContent(){const _0x39373c=a242_0x372d;try{const _0x24d587=await fetchRulesFromCDN();return _0x24d587[_0x39373c(0x1fe)];}catch{return readLocalTemplate();}}function a242_0x35ba(){const _0x56142b=['catch','CDN\x20返回数据格式错误','lastUpdated','2840lhQXyV','json','927560uzFtlV','66954NLSXaA','application/json','693yuQzvh','44reShYd','CDN\x20请求失败:\x20','本地模板文件不存在:\x20','105190NNBfHc','content','2082837aoDLyv','16747XQqnGQ','statusText','utf-8','80mShFZd','2981PeGalr','/rules/rules.json','.cursor/rules','string','lovrabet_rules.mdc','agents.md','status','9726115Zmkpcm'];a242_0x35ba=function(){return _0x56142b;};return a242_0x35ba();}export function readLocalTemplate(){const _0x113922=a242_0x372d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x113922(0x1fc)+LOCAL_TEMPLATE_PATH);}function a242_0x372d(_0x3826bb,_0x112958){_0x3826bb=_0x3826bb-0x1ed;const _0x35ba7c=a242_0x35ba();let _0x372d95=_0x35ba7c[_0x3826bb];return _0x372d95;}export async function writeRulesFile(_0x1469b0){const _0x270d4b=a242_0x372d,_0x28a593=await fetchRulesFromCDN()[_0x270d4b(0x1f1)](()=>null);let _0x91bbe4;_0x28a593?(_0x91bbe4=_0x28a593['content'],_0x28a593[_0x270d4b(0x1f3)]&&(_0x91bbe4=appendUpdateTime(_0x91bbe4,_0x28a593[_0x270d4b(0x1f3)]))):_0x91bbe4=readLocalTemplate();const _0x9d3820=dirname(_0x1469b0);!existsSync(_0x9d3820)&&mkdirSync(_0x9d3820,{'recursive':!![]}),writeFileSync(_0x1469b0,_0x91bbe4,_0x270d4b(0x202));}export async function copyRulesToCursor(_0x42dae9){const _0x2bfb31=a242_0x372d,_0x18d690=join(_0x42dae9,_0x2bfb31(0x206)),_0x3c1f04=join(_0x18d690,_0x2bfb31(0x1ed));if(existsSync(_0x3c1f04))return![];return await writeRulesFile(_0x3c1f04),!![];}export async function copyRulesToAgentsMd(_0x57784e){const _0x50ba76=a242_0x372d,_0x1a6cb8=join(_0x57784e,_0x50ba76(0x1ee));if(existsSync(_0x1a6cb8))return![];return await writeRulesFile(_0x1a6cb8),!![];}
@@ -1 +1 @@
1
- export function sleep(_0xb06d1c){return new Promise(_0x4ca595=>setTimeout(_0x4ca595,_0xb06d1c));}
1
+ export function sleep(_0x16b56c){return new Promise(_0x370058=>setTimeout(_0x370058,_0x16b56c));}
@@ -1 +1 @@
1
- const a244_0x3e70b7=a244_0x8834;function a244_0x4f03(){const _0x35907c=['.tpl','processDirectory','formatLocalTimestamp','.ts','utf8','map','11AhmcHb','30878930nDyuLQ','.json','mkdir','483714yxEMSn','getHours','template','charAt','.js','push','default','api','processTemplate','getFullYear','info','toLowerCase','96263uxuRSE','.jsx','tableName','toComponentName','模板内容替换失败','now','extname','getDate','toDisplayTitle','\x0a\x20\x20\x20\x20{\x20','387976SVhZGy','replaceContent','pad','模板内容替换完成','pop','alias:\x20\x22','padStart','endsWith','\x20},','.css','getMonth','replace','promises','datasetCode','tableName:\x20\x22','join','isFile','YourModel','success','name','readFile','12oWJqbO','copyFile','isDirectory','6VjdjwS','648414tIKegJ','getMinutes','split','LOVRABET','6814945KUXYhj','slice','message','includes','144MRVWJn','开始处理模板内容替换','11726421LMxhbO','replaceApiContent'];a244_0x4f03=function(){return _0x35907c;};return a244_0x4f03();}function a244_0x8834(_0x50e70b,_0x3230c3){_0x50e70b=_0x50e70b-0x14e;const _0x4f035d=a244_0x4f03();let _0x883499=_0x4f035d[_0x50e70b];return _0x883499;}(function(_0x15b4a3,_0x27ccd3){const _0x140da3=a244_0x8834,_0x486ab3=_0x15b4a3();while(!![]){try{const _0x1da4c8=-parseInt(_0x140da3(0x184))/0x1*(parseInt(_0x140da3(0x15e))/0x2)+-parseInt(_0x140da3(0x161))/0x3*(parseInt(_0x140da3(0x18e))/0x4)+parseInt(_0x140da3(0x166))/0x5+-parseInt(_0x140da3(0x162))/0x6+-parseInt(_0x140da3(0x16c))/0x7+parseInt(_0x140da3(0x16a))/0x8*(-parseInt(_0x140da3(0x178))/0x9)+parseInt(_0x140da3(0x175))/0xa*(parseInt(_0x140da3(0x174))/0xb);if(_0x1da4c8===_0x27ccd3)break;else _0x486ab3['push'](_0x486ab3['shift']());}catch(_0x5641d1){_0x486ab3['push'](_0x486ab3['shift']());}}}(a244_0x4f03,0xe2b68));import a244_0x55291c from'node:fs';import a244_0x2cf6a5 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a244_0x3e70b7(0x190)](_0x37d2be){const _0x592227=a244_0x3e70b7;return String(_0x37d2be)[_0x592227(0x14f)](0x2,'0');}static['formatLocalTimestamp'](_0x3c2ba1){const _0x3191c3=a244_0x3e70b7,_0x325440=_0x3c2ba1[_0x3191c3(0x181)](),_0x511dd9=this[_0x3191c3(0x190)](_0x3c2ba1[_0x3191c3(0x153)]()+0x1),_0x5974a4=this[_0x3191c3(0x190)](_0x3c2ba1[_0x3191c3(0x18b)]()),_0x249c45=this[_0x3191c3(0x190)](_0x3c2ba1[_0x3191c3(0x179)]()),_0x12464b=this[_0x3191c3(0x190)](_0x3c2ba1[_0x3191c3(0x163)]()),_0x5839e0=this[_0x3191c3(0x190)](_0x3c2ba1['getSeconds']());return{'createdAt':_0x325440+'-'+_0x511dd9+'-'+_0x5974a4+'\x20'+_0x249c45+':'+_0x12464b+':'+_0x5839e0,'createdDate':_0x325440+'-'+_0x511dd9+'-'+_0x5974a4,'createdTime':_0x249c45+':'+_0x12464b+':'+_0x5839e0};}static[a244_0x3e70b7(0x187)](_0x5966cf){const _0x499ef4=a244_0x3e70b7,_0x56af39=_0x5966cf['split']('/')['pop']()||_0x5966cf;return _0x56af39[_0x499ef4(0x164)]('-')[_0x499ef4(0x173)](_0x4bc7c7=>_0x4bc7c7[_0x499ef4(0x17b)](0x0)['toUpperCase']()+_0x4bc7c7[_0x499ef4(0x167)](0x1)[_0x499ef4(0x183)]())[_0x499ef4(0x158)]('');}static['toDisplayTitle'](_0xe8eaf0){const _0x1da066=a244_0x3e70b7,_0x4ea438=_0xe8eaf0[_0x1da066(0x164)]('/')[_0x1da066(0x192)]()||_0xe8eaf0;return _0x4ea438[_0x1da066(0x164)]('-')[_0x1da066(0x173)](_0x42fb17=>_0x42fb17['charAt'](0x0)['toUpperCase']()+_0x42fb17[_0x1da066(0x167)](0x1)[_0x1da066(0x183)]())[_0x1da066(0x158)]('\x20');}static[a244_0x3e70b7(0x18f)](_0x3423de,_0x2c5b27,_0x5f4dc1){const _0x3fc80e=a244_0x3e70b7,_0x17b08f=this['toComponentName'](_0x2c5b27),_0x5b4a7a=this[_0x3fc80e(0x18c)](_0x2c5b27),{createdAt:_0x4de8a2,createdDate:_0x3f9549,createdTime:_0x2dcaa8}=this[_0x3fc80e(0x170)](new Date());let _0x1e122d=_0x3423de[_0x3fc80e(0x154)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x17b08f)[_0x3fc80e(0x154)](/\{DisplayTitle\}/g,_0x5b4a7a)[_0x3fc80e(0x154)](/\{PageName\}/g,_0x2c5b27)[_0x3fc80e(0x154)](/\{TemplateName\}/g,_0x5f4dc1)[_0x3fc80e(0x154)](/\{CreatedAt\}/g,_0x4de8a2)['replace'](/\{CreatedDate\}/g,_0x3f9549)[_0x3fc80e(0x154)](/\{CreatedTime\}/g,_0x2dcaa8);return _0x1e122d;}static[a244_0x3e70b7(0x16d)](_0x315628,_0x1b3f00,_0x9fbe3f,_0x65ccb9,_0x2256bf,_0x1775ce,_0x4d8395,_0x4617cb){const _0x5f10ab=a244_0x3e70b7,_0x25ff63=new Date(),_0x5d0612=_0x25ff63['toISOString'](),_0x2e5a2c=_0x9fbe3f[_0x5f10ab(0x173)](_0x34ec2f=>{const _0x33656c=_0x5f10ab,_0x4f2329=['datasetCode:\x20\x22'+_0x34ec2f[_0x33656c(0x156)]+'\x22',_0x33656c(0x157)+_0x34ec2f[_0x33656c(0x186)]+'\x22','name:\x20\x22'+_0x34ec2f[_0x33656c(0x15c)]+'\x22'];return _0x34ec2f['alias']&&_0x4f2329[_0x33656c(0x17d)](_0x33656c(0x14e)+_0x34ec2f['alias']+'\x22'),_0x33656c(0x18d)+_0x4f2329[_0x33656c(0x158)](',\x20')+_0x33656c(0x151);})[_0x5f10ab(0x158)](''),_0x4bc031=_0x65ccb9||_0x9fbe3f[0x0]?.['alias']||_0x5f10ab(0x15a);let _0x1a95be=_0x315628[_0x5f10ab(0x154)](/\{AppCode\}/g,_0x1b3f00)[_0x5f10ab(0x154)](/\{ModelConfigs\}/g,_0x2e5a2c)['replace'](/\{ExampleModelName\}/g,_0x4bc031)[_0x5f10ab(0x154)](/\{ApiFileName\}/g,_0x2256bf||_0x5f10ab(0x17f))[_0x5f10ab(0x154)](/\{ConfigName\}/g,_0x1775ce||_0x5f10ab(0x17e))['replace'](/\{ClientConfigParam\}/g,_0x4d8395||'')[_0x5f10ab(0x154)](/\{VarPrefix\}/g,_0x4617cb||_0x5f10ab(0x165))['replace'](/\{CreatedAt\}/g,_0x5d0612);return _0x1a95be;}static async[a244_0x3e70b7(0x180)](_0x55d2ed,_0x53ca9c,_0x5e0efe,_0x11aa09,_0x2f4d70=!![]){const _0x20815c=a244_0x3e70b7,_0xe10571=Date[_0x20815c(0x189)]();try{_0x2f4d70&&logger[_0x20815c(0x182)]('template',_0x20815c(0x16b),{'templatePath':_0x55d2ed,'targetPath':_0x53ca9c,'pageName':_0x5e0efe,'templateName':_0x11aa09});await a244_0x55291c[_0x20815c(0x155)][_0x20815c(0x177)](_0x53ca9c,{'recursive':!![]}),await this[_0x20815c(0x16f)](_0x55d2ed,_0x53ca9c,_0x5e0efe,_0x11aa09);if(_0x2f4d70){const _0x107ad1=Date[_0x20815c(0x189)]()-_0xe10571;logger[_0x20815c(0x15b)](_0x20815c(0x17a),_0x20815c(0x191),_0x107ad1,{'pageName':_0x5e0efe,'templateName':_0x11aa09});}}catch(_0x571698){if(_0x2f4d70){const _0x4b97bd=Date[_0x20815c(0x189)]()-_0xe10571;logger['error'](_0x20815c(0x17a),_0x20815c(0x188),{'templatePath':_0x55d2ed,'targetPath':_0x53ca9c,'pageName':_0x5e0efe,'templateName':_0x11aa09,'error':_0x571698 instanceof Error?_0x571698[_0x20815c(0x168)]:String(_0x571698),'duration':_0x4b97bd});}throw _0x571698;}}static async[a244_0x3e70b7(0x16f)](_0x43b445,_0x3aa400,_0x317d40,_0xdaeb25){const _0x191023=a244_0x3e70b7,_0x37a4c0=await a244_0x55291c[_0x191023(0x155)]['readdir'](_0x43b445,{'withFileTypes':!![]});for(const _0x537ae2 of _0x37a4c0){const _0x4d9257=a244_0x2cf6a5['join'](_0x43b445,_0x537ae2[_0x191023(0x15c)]);let _0x474354=a244_0x2cf6a5[_0x191023(0x158)](_0x3aa400,_0x537ae2['name']);_0x537ae2[_0x191023(0x15c)][_0x191023(0x150)](_0x191023(0x16e))&&(_0x474354=a244_0x2cf6a5[_0x191023(0x158)](_0x3aa400,_0x537ae2[_0x191023(0x15c)]['replace'](/\.tpl$/,'')));if(_0x537ae2[_0x191023(0x160)]())await a244_0x55291c[_0x191023(0x155)][_0x191023(0x177)](_0x474354,{'recursive':!![]}),await this[_0x191023(0x16f)](_0x4d9257,_0x474354,_0x317d40,_0xdaeb25);else _0x537ae2[_0x191023(0x159)]()&&await this['processFile'](_0x4d9257,_0x474354,_0x317d40,_0xdaeb25);}}static async['processFile'](_0x44c7b6,_0x17ca6f,_0x351c09,_0x23264b){const _0x24dc53=a244_0x3e70b7,_0x329444=a244_0x2cf6a5[_0x24dc53(0x18a)](_0x44c7b6)['toLowerCase']();_0x44c7b6[_0x24dc53(0x150)](_0x24dc53(0x16e))&&(_0x17ca6f=_0x17ca6f[_0x24dc53(0x154)](/\.tpl$/,''));const _0x19adfb=['.tsx',_0x24dc53(0x171),_0x24dc53(0x185),_0x24dc53(0x17c),_0x24dc53(0x176),'.md',_0x24dc53(0x152),'.scss','.tpl'];if(_0x19adfb[_0x24dc53(0x169)](_0x329444)||_0x44c7b6[_0x24dc53(0x150)]('.tpl')){const _0x2d84a3=await a244_0x55291c['promises'][_0x24dc53(0x15d)](_0x44c7b6,_0x24dc53(0x172)),_0x3f1a41=this[_0x24dc53(0x18f)](_0x2d84a3,_0x351c09,_0x23264b);await a244_0x55291c[_0x24dc53(0x155)]['writeFile'](_0x17ca6f,_0x3f1a41,_0x24dc53(0x172));}else await a244_0x55291c[_0x24dc53(0x155)][_0x24dc53(0x15f)](_0x44c7b6,_0x17ca6f);}}
1
+ const a244_0x29bf15=a244_0x3130;function a244_0x3130(_0x5bc773,_0x31664b){_0x5bc773=_0x5bc773-0x1b3;const _0x2d4c2d=a244_0x2d4c();let _0x31303c=_0x2d4c2d[_0x5bc773];return _0x31303c;}(function(_0xd1bca3,_0x9b78e8){const _0x61dab7=a244_0x3130,_0x226dfe=_0xd1bca3();while(!![]){try{const _0x518092=parseInt(_0x61dab7(0x1c2))/0x1*(-parseInt(_0x61dab7(0x1e9))/0x2)+-parseInt(_0x61dab7(0x1ef))/0x3*(parseInt(_0x61dab7(0x1f3))/0x4)+-parseInt(_0x61dab7(0x1ed))/0x5*(-parseInt(_0x61dab7(0x1f2))/0x6)+parseInt(_0x61dab7(0x1de))/0x7+-parseInt(_0x61dab7(0x1ce))/0x8*(-parseInt(_0x61dab7(0x1d2))/0x9)+parseInt(_0x61dab7(0x1d8))/0xa+-parseInt(_0x61dab7(0x1eb))/0xb*(parseInt(_0x61dab7(0x1e0))/0xc);if(_0x518092===_0x9b78e8)break;else _0x226dfe['push'](_0x226dfe['shift']());}catch(_0x3ca3ff){_0x226dfe['push'](_0x226dfe['shift']());}}}(a244_0x2d4c,0xa00b1));import a244_0x2f1a79 from'node:fs';import a244_0x43406b from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';function a244_0x2d4c(){const _0x56591f=['.js','template','extname','pop','split','toComponentName','getMinutes','processTemplate','开始处理模板内容替换','.json','formatLocalTimestamp','now','alias:\x20\x22','isDirectory','41KmFKHw','slice','replaceContent','toUpperCase','LOVRABET','name','getFullYear','mkdir','toDisplayTitle','promises','datasetCode:\x20\x22','push','8qEyAuo','charAt','toLowerCase','YourModel','10682487DySBkc','message','getSeconds','.tpl','info','pad','2566790PZHTjD','.tsx','padStart','api','utf8','getMonth','1879234pdZlte','datasetCode','12pTaTFH','join','processFile','endsWith','name:\x20\x22','readFile','writeFile','replace','processDirectory','40374KvWYkv','readdir','15136077RbWDPy','getHours','316795wjXOLo','copyFile','99hxqDMg','replaceApiContent','alias','114IPiSab','6872MTGtZm','map','tableName:\x20\x22'];a244_0x2d4c=function(){return _0x56591f;};return a244_0x2d4c();}const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a244_0x29bf15(0x1d7)](_0x2e9a03){const _0x212371=a244_0x29bf15;return String(_0x2e9a03)[_0x212371(0x1da)](0x2,'0');}static[a244_0x29bf15(0x1be)](_0x51e58d){const _0x261603=a244_0x29bf15,_0x483510=_0x51e58d[_0x261603(0x1c8)](),_0x326a07=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1dd)]()+0x1),_0x14648a=this[_0x261603(0x1d7)](_0x51e58d['getDate']()),_0x3667cc=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1ec)]()),_0x46406a=this[_0x261603(0x1d7)](_0x51e58d[_0x261603(0x1ba)]()),_0x4141cf=this['pad'](_0x51e58d[_0x261603(0x1d4)]());return{'createdAt':_0x483510+'-'+_0x326a07+'-'+_0x14648a+'\x20'+_0x3667cc+':'+_0x46406a+':'+_0x4141cf,'createdDate':_0x483510+'-'+_0x326a07+'-'+_0x14648a,'createdTime':_0x3667cc+':'+_0x46406a+':'+_0x4141cf};}static[a244_0x29bf15(0x1b9)](_0x108bbf){const _0x5d4235=a244_0x29bf15,_0x4ec93d=_0x108bbf[_0x5d4235(0x1b8)]('/')[_0x5d4235(0x1b7)]()||_0x108bbf;return _0x4ec93d[_0x5d4235(0x1b8)]('-')['map'](_0x54bd91=>_0x54bd91[_0x5d4235(0x1cf)](0x0)[_0x5d4235(0x1c5)]()+_0x54bd91[_0x5d4235(0x1c3)](0x1)[_0x5d4235(0x1d0)]())[_0x5d4235(0x1e1)]('');}static[a244_0x29bf15(0x1ca)](_0x1ebd06){const _0x46d3fa=a244_0x29bf15,_0x4b73d6=_0x1ebd06[_0x46d3fa(0x1b8)]('/')[_0x46d3fa(0x1b7)]()||_0x1ebd06;return _0x4b73d6[_0x46d3fa(0x1b8)]('-')[_0x46d3fa(0x1f4)](_0x32e704=>_0x32e704[_0x46d3fa(0x1cf)](0x0)[_0x46d3fa(0x1c5)]()+_0x32e704[_0x46d3fa(0x1c3)](0x1)['toLowerCase']())['join']('\x20');}static['replaceContent'](_0x309860,_0x45cd1f,_0x569b05){const _0xa4afb7=a244_0x29bf15,_0x51c7fe=this[_0xa4afb7(0x1b9)](_0x45cd1f),_0x650861=this[_0xa4afb7(0x1ca)](_0x45cd1f),{createdAt:_0x5b42ca,createdDate:_0x369123,createdTime:_0x2bcdd5}=this[_0xa4afb7(0x1be)](new Date());let _0x25b31b=_0x309860['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0xa4afb7(0x1e7)](/\{ComponentName\}/g,_0x51c7fe)[_0xa4afb7(0x1e7)](/\{DisplayTitle\}/g,_0x650861)[_0xa4afb7(0x1e7)](/\{PageName\}/g,_0x45cd1f)[_0xa4afb7(0x1e7)](/\{TemplateName\}/g,_0x569b05)[_0xa4afb7(0x1e7)](/\{CreatedAt\}/g,_0x5b42ca)[_0xa4afb7(0x1e7)](/\{CreatedDate\}/g,_0x369123)[_0xa4afb7(0x1e7)](/\{CreatedTime\}/g,_0x2bcdd5);return _0x25b31b;}static[a244_0x29bf15(0x1f0)](_0x53ba0a,_0xcf645e,_0x3f3a36,_0x20ebdf,_0x131816,_0xd1a4c7,_0x14e27b,_0xe5211c){const _0x437ccd=a244_0x29bf15,_0x35e794=new Date(),_0x5063ed=_0x35e794['toISOString'](),_0x7deae7=_0x3f3a36['map'](_0x2a66ca=>{const _0x57ee95=a244_0x3130,_0x3205a8=[_0x57ee95(0x1cc)+_0x2a66ca[_0x57ee95(0x1df)]+'\x22',_0x57ee95(0x1b3)+_0x2a66ca['tableName']+'\x22',_0x57ee95(0x1e4)+_0x2a66ca[_0x57ee95(0x1c7)]+'\x22'];return _0x2a66ca[_0x57ee95(0x1f1)]&&_0x3205a8[_0x57ee95(0x1cd)](_0x57ee95(0x1c0)+_0x2a66ca[_0x57ee95(0x1f1)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x3205a8[_0x57ee95(0x1e1)](',\x20')+'\x20},';})[_0x437ccd(0x1e1)](''),_0x58ccd1=_0x20ebdf||_0x3f3a36[0x0]?.[_0x437ccd(0x1f1)]||_0x437ccd(0x1d1);let _0x335a33=_0x53ba0a[_0x437ccd(0x1e7)](/\{AppCode\}/g,_0xcf645e)[_0x437ccd(0x1e7)](/\{ModelConfigs\}/g,_0x7deae7)['replace'](/\{ExampleModelName\}/g,_0x58ccd1)[_0x437ccd(0x1e7)](/\{ApiFileName\}/g,_0x131816||_0x437ccd(0x1db))[_0x437ccd(0x1e7)](/\{ConfigName\}/g,_0xd1a4c7||'default')[_0x437ccd(0x1e7)](/\{ClientConfigParam\}/g,_0x14e27b||'')[_0x437ccd(0x1e7)](/\{VarPrefix\}/g,_0xe5211c||_0x437ccd(0x1c6))['replace'](/\{CreatedAt\}/g,_0x5063ed);return _0x335a33;}static async[a244_0x29bf15(0x1bb)](_0x39f5f9,_0xf9626a,_0x17a4c4,_0x29680c,_0x22cd4f=!![]){const _0x2596ad=a244_0x29bf15,_0x263b74=Date[_0x2596ad(0x1bf)]();try{_0x22cd4f&&logger[_0x2596ad(0x1d6)]('template',_0x2596ad(0x1bc),{'templatePath':_0x39f5f9,'targetPath':_0xf9626a,'pageName':_0x17a4c4,'templateName':_0x29680c});await a244_0x2f1a79['promises'][_0x2596ad(0x1c9)](_0xf9626a,{'recursive':!![]}),await this[_0x2596ad(0x1e8)](_0x39f5f9,_0xf9626a,_0x17a4c4,_0x29680c);if(_0x22cd4f){const _0x2938c6=Date[_0x2596ad(0x1bf)]()-_0x263b74;logger['success'](_0x2596ad(0x1b5),'模板内容替换完成',_0x2938c6,{'pageName':_0x17a4c4,'templateName':_0x29680c});}}catch(_0x4f42da){if(_0x22cd4f){const _0x33b5ff=Date['now']()-_0x263b74;logger['error']('template','模板内容替换失败',{'templatePath':_0x39f5f9,'targetPath':_0xf9626a,'pageName':_0x17a4c4,'templateName':_0x29680c,'error':_0x4f42da instanceof Error?_0x4f42da[_0x2596ad(0x1d3)]:String(_0x4f42da),'duration':_0x33b5ff});}throw _0x4f42da;}}static async[a244_0x29bf15(0x1e8)](_0x269bd1,_0x11b1ae,_0x23ea79,_0x136911){const _0x303f0d=a244_0x29bf15,_0x8ea744=await a244_0x2f1a79[_0x303f0d(0x1cb)][_0x303f0d(0x1ea)](_0x269bd1,{'withFileTypes':!![]});for(const _0x2de474 of _0x8ea744){const _0x5956f4=a244_0x43406b[_0x303f0d(0x1e1)](_0x269bd1,_0x2de474[_0x303f0d(0x1c7)]);let _0xff30cc=a244_0x43406b[_0x303f0d(0x1e1)](_0x11b1ae,_0x2de474[_0x303f0d(0x1c7)]);_0x2de474[_0x303f0d(0x1c7)]['endsWith'](_0x303f0d(0x1d5))&&(_0xff30cc=a244_0x43406b[_0x303f0d(0x1e1)](_0x11b1ae,_0x2de474['name'][_0x303f0d(0x1e7)](/\.tpl$/,'')));if(_0x2de474[_0x303f0d(0x1c1)]())await a244_0x2f1a79['promises'][_0x303f0d(0x1c9)](_0xff30cc,{'recursive':!![]}),await this['processDirectory'](_0x5956f4,_0xff30cc,_0x23ea79,_0x136911);else _0x2de474['isFile']()&&await this['processFile'](_0x5956f4,_0xff30cc,_0x23ea79,_0x136911);}}static async[a244_0x29bf15(0x1e2)](_0x3e347d,_0x5d4300,_0x21e1b6,_0x6e6352){const _0x25f828=a244_0x29bf15,_0x1df20d=a244_0x43406b[_0x25f828(0x1b6)](_0x3e347d)['toLowerCase']();_0x3e347d[_0x25f828(0x1e3)](_0x25f828(0x1d5))&&(_0x5d4300=_0x5d4300[_0x25f828(0x1e7)](/\.tpl$/,''));const _0x20d4e6=[_0x25f828(0x1d9),'.ts','.jsx',_0x25f828(0x1b4),_0x25f828(0x1bd),'.md','.css','.scss',_0x25f828(0x1d5)];if(_0x20d4e6['includes'](_0x1df20d)||_0x3e347d[_0x25f828(0x1e3)](_0x25f828(0x1d5))){const _0x450d02=await a244_0x2f1a79['promises'][_0x25f828(0x1e5)](_0x3e347d,_0x25f828(0x1dc)),_0x34c840=this[_0x25f828(0x1c4)](_0x450d02,_0x21e1b6,_0x6e6352);await a244_0x2f1a79[_0x25f828(0x1cb)][_0x25f828(0x1e6)](_0x5d4300,_0x34c840,_0x25f828(0x1dc));}else await a244_0x2f1a79[_0x25f828(0x1cb)][_0x25f828(0x1ee)](_0x3e347d,_0x5d4300);}}
@@ -1 +1 @@
1
- (function(_0x3c5a0f,_0x216df6){const _0x229cc2=a245_0x4f69,_0xacb114=_0x3c5a0f();while(!![]){try{const _0x205c40=parseInt(_0x229cc2(0x1b7))/0x1*(parseInt(_0x229cc2(0x1cd))/0x2)+parseInt(_0x229cc2(0x1bd))/0x3*(-parseInt(_0x229cc2(0x1bf))/0x4)+parseInt(_0x229cc2(0x1c9))/0x5+parseInt(_0x229cc2(0x1b1))/0x6+parseInt(_0x229cc2(0x1b2))/0x7*(parseInt(_0x229cc2(0x1be))/0x8)+-parseInt(_0x229cc2(0x1bc))/0x9*(-parseInt(_0x229cc2(0x1c1))/0xa)+-parseInt(_0x229cc2(0x1c5))/0xb*(parseInt(_0x229cc2(0x1d0))/0xc);if(_0x205c40===_0x216df6)break;else _0xacb114['push'](_0xacb114['shift']());}catch(_0x100863){_0xacb114['push'](_0xacb114['shift']());}}}(a245_0xa2ee,0x1a3ec));import{mkdir,readFile,writeFile}from'node:fs/promises';function a245_0xa2ee(){const _0x1cad6d=['12cHCtjR','object','rabetbase-cli','yes','785400ieOzHQ','14TXWjtW','true','/v/','parse','checkedAt','177GfTgkG','.cache','number','now','stringify','45teNLOU','3VEgZrV','121336JQzqXL','506060tTWpws','valid','302030wnZhgW','toLowerCase','trim','utf8','1995367VgsDOl','lastNotifiedAt','https://www.npmjs.com/package/','\x20available,\x20current\x20','275980itXJMl','gte',',\x20run:\x20','update-check.json','542IlxMTa','lastNotifiedVersion','stableVersion'];a245_0xa2ee=function(){return _0x1cad6d;};return a245_0xa2ee();}import{homedir}from'node:os';import{dirname,join}from'node:path';import a245_0x17e680 from'semver';function a245_0x4f69(_0x1e8fb9,_0x13a27b){_0x1e8fb9=_0x1e8fb9-0x1ae;const _0xa2ee7b=a245_0xa2ee();let _0x4f69d9=_0xa2ee7b[_0x1e8fb9];return _0x4f69d9;}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 _0xae6559=a245_0x4f69,_0x498bdb=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0xae6559(0x1c3)]()[_0xae6559(0x1c2)]();return _0x498bdb==='1'||_0x498bdb===_0xae6559(0x1b3)||_0x498bdb===_0xae6559(0x1b0);}function cacheRoot(){const _0x307926=a245_0x4f69;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x307926(0x1b8));}export function getUpdateNoticeCachePath(){const _0x542e19=a245_0x4f69;return join(cacheRoot(),_0x542e19(0x1af),_0x542e19(0x1cc));}async function readUpdateNoticeCache(){const _0x196aa2=a245_0x4f69;try{const _0x133372=await readFile(getUpdateNoticeCachePath(),_0x196aa2(0x1c4)),_0x1dc736=JSON[_0x196aa2(0x1b5)](_0x133372);if(!_0x1dc736||typeof _0x1dc736!==_0x196aa2(0x1ae))return{};return _0x1dc736;}catch{return{};}}async function writeUpdateNoticeCache(_0x548c34){const _0x28a818=a245_0x4f69;try{const _0x54f715=getUpdateNoticeCachePath();await mkdir(dirname(_0x54f715),{'recursive':!![]}),await writeFile(_0x54f715,JSON[_0x28a818(0x1bb)](_0x548c34,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x52c012,_0x1ea4dc){const _0x107167=a245_0x4f69;return typeof _0x52c012[_0x107167(0x1b6)]===_0x107167(0x1b9)&&_0x1ea4dc-_0x52c012[_0x107167(0x1b6)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x38b956,_0x413c4f,_0x2a0df9){const _0x5c07f1=a245_0x4f69;return _0x38b956[_0x5c07f1(0x1ce)]===_0x413c4f&&typeof _0x38b956[_0x5c07f1(0x1c6)]==='number'&&_0x2a0df9-_0x38b956[_0x5c07f1(0x1c6)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x29f48d){const _0x5ec726=a245_0x4f69;return _0x5ec726(0x1c7)+NPM_PACKAGE_NAME+_0x5ec726(0x1b4)+_0x29f48d;}export async function resolveLatestUpdateNotice(){const _0x990574=a245_0x4f69;if(isUpdateNoticeDisabled())return null;try{const _0x591561=Date[_0x990574(0x1ba)](),_0xb1536=getCliVersion(),_0x158de7=await readUpdateNoticeCache();let _0x12c89b=isFreshCheck(_0x158de7,_0x591561)?_0x158de7['latest']?.[_0x990574(0x1c3)]():undefined;if(!_0x12c89b&&!isFreshCheck(_0x158de7,_0x591561)){const _0x231591=await getCliVersionPolicy();_0x12c89b=_0x231591?.[_0x990574(0x1cf)]?.[_0x990574(0x1c3)]()||undefined,await writeUpdateNoticeCache({..._0x158de7,'checkedAt':_0x591561,'latest':_0x12c89b,'failed':!_0x12c89b});}if(!_0x12c89b||!a245_0x17e680[_0x990574(0x1c0)](_0xb1536)||!a245_0x17e680['valid'](_0x12c89b))return null;if(a245_0x17e680[_0x990574(0x1ca)](_0xb1536,_0x12c89b))return null;if(isRecentlyNotified(_0x158de7,_0x12c89b,_0x591561))return null;const _0x4a3145=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x158de7,'checkedAt':isFreshCheck(_0x158de7,_0x591561)?_0x158de7[_0x990574(0x1b6)]:_0x591561,'latest':_0x12c89b,'failed':![],'lastNotifiedVersion':_0x12c89b,'lastNotifiedAt':_0x591561}),{'command':_0x4a3145,'current':_0xb1536,'latest':_0x12c89b,'url':buildNpmVersionUrl(_0x12c89b),'message':CLI_BIN_NAME+'\x20'+_0x12c89b+_0x990574(0x1c8)+_0xb1536+_0x990574(0x1cb)+_0x4a3145};}catch{return null;}}
1
+ (function(_0x10eeb5,_0x1450cf){const _0x728c8f=a245_0x9e86,_0x581f03=_0x10eeb5();while(!![]){try{const _0x15e942=-parseInt(_0x728c8f(0x8d))/0x1*(parseInt(_0x728c8f(0xa5))/0x2)+-parseInt(_0x728c8f(0xa1))/0x3+parseInt(_0x728c8f(0x96))/0x4+parseInt(_0x728c8f(0x8e))/0x5+-parseInt(_0x728c8f(0xa7))/0x6+parseInt(_0x728c8f(0x90))/0x7+parseInt(_0x728c8f(0x91))/0x8*(parseInt(_0x728c8f(0xa9))/0x9);if(_0x15e942===_0x1450cf)break;else _0x581f03['push'](_0x581f03['shift']());}catch(_0x26478d){_0x581f03['push'](_0x581f03['shift']());}}}(a245_0x5a3f,0x66e3a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a245_0x4df890 from'semver';function a245_0x9e86(_0x2389d4,_0x4d269f){_0x2389d4=_0x2389d4-0x8d;const _0x5a3f36=a245_0x5a3f();let _0x9e862f=_0x5a3f36[_0x2389d4];return _0x9e862f;}import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a245_0x5a3f(){const _0x2ba19d=['2515428nKrqoH','utf8','9JkuHTB','2kSPhsF','829215xMJsSB','\x20update','1694721EleXaH','5573624UxBfCM','rabetbase-cli','toLowerCase','now','true','139060yCrFYS','update-check.json','yes','gte','trim','lastNotifiedAt','number','.cache','stringify','checkedAt','/v/','613536aoGLNF','valid',',\x20run:\x20','https://www.npmjs.com/package/','94230QDglzm','\x20available,\x20current\x20'];a245_0x5a3f=function(){return _0x2ba19d;};return a245_0x5a3f();}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 _0x37decd=a245_0x9e86,_0x4d079e=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x37decd(0x9a)]()[_0x37decd(0x93)]();return _0x4d079e==='1'||_0x4d079e===_0x37decd(0x95)||_0x4d079e===_0x37decd(0x98);}function cacheRoot(){const _0x21f842=a245_0x9e86;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x21f842(0x9d));}export function getUpdateNoticeCachePath(){const _0x3c8564=a245_0x9e86;return join(cacheRoot(),_0x3c8564(0x92),_0x3c8564(0x97));}async function readUpdateNoticeCache(){try{const _0x1df988=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x4a64a2=JSON['parse'](_0x1df988);if(!_0x4a64a2||typeof _0x4a64a2!=='object')return{};return _0x4a64a2;}catch{return{};}}async function writeUpdateNoticeCache(_0xda1cd7){const _0x396c5d=a245_0x9e86;try{const _0x4debcd=getUpdateNoticeCachePath();await mkdir(dirname(_0x4debcd),{'recursive':!![]}),await writeFile(_0x4debcd,JSON[_0x396c5d(0x9e)](_0xda1cd7,null,0x2)+'\x0a',_0x396c5d(0xa8));}catch{}}function isFreshCheck(_0x1d8f2c,_0x1220c4){const _0x33f887=a245_0x9e86;return typeof _0x1d8f2c[_0x33f887(0x9f)]===_0x33f887(0x9c)&&_0x1220c4-_0x1d8f2c[_0x33f887(0x9f)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5d49bf,_0x3335b5,_0x1f760f){const _0x5c3271=a245_0x9e86;return _0x5d49bf['lastNotifiedVersion']===_0x3335b5&&typeof _0x5d49bf[_0x5c3271(0x9b)]==='number'&&_0x1f760f-_0x5d49bf['lastNotifiedAt']<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x551421){const _0x19da2f=a245_0x9e86;return _0x19da2f(0xa4)+NPM_PACKAGE_NAME+_0x19da2f(0xa0)+_0x551421;}export async function resolveLatestUpdateNotice(){const _0x500c54=a245_0x9e86;if(isUpdateNoticeDisabled())return null;try{const _0xc0f002=Date[_0x500c54(0x94)](),_0x4ef48c=getCliVersion(),_0x2cf119=await readUpdateNoticeCache();let _0x586546=isFreshCheck(_0x2cf119,_0xc0f002)?_0x2cf119['latest']?.[_0x500c54(0x9a)]():undefined;if(!_0x586546&&!isFreshCheck(_0x2cf119,_0xc0f002)){const _0x38a810=await getCliVersionPolicy();_0x586546=_0x38a810?.['stableVersion']?.[_0x500c54(0x9a)]()||undefined,await writeUpdateNoticeCache({..._0x2cf119,'checkedAt':_0xc0f002,'latest':_0x586546,'failed':!_0x586546});}if(!_0x586546||!a245_0x4df890[_0x500c54(0xa2)](_0x4ef48c)||!a245_0x4df890['valid'](_0x586546))return null;if(a245_0x4df890[_0x500c54(0x99)](_0x4ef48c,_0x586546))return null;if(isRecentlyNotified(_0x2cf119,_0x586546,_0xc0f002))return null;const _0xf84d13=CLI_BIN_NAME+_0x500c54(0x8f);return await writeUpdateNoticeCache({..._0x2cf119,'checkedAt':isFreshCheck(_0x2cf119,_0xc0f002)?_0x2cf119[_0x500c54(0x9f)]:_0xc0f002,'latest':_0x586546,'failed':![],'lastNotifiedVersion':_0x586546,'lastNotifiedAt':_0xc0f002}),{'command':_0xf84d13,'current':_0x4ef48c,'latest':_0x586546,'url':buildNpmVersionUrl(_0x586546),'message':CLI_BIN_NAME+'\x20'+_0x586546+_0x500c54(0xa6)+_0x4ef48c+_0x500c54(0xa3)+_0xf84d13};}catch{return null;}}
@@ -1 +1 @@
1
- function a246_0x4625(_0x5d8a7f,_0x4425f5){_0x5d8a7f=_0x5d8a7f-0x7e;var _0x1ac14c=a246_0x1ac1();var _0x4625ad=_0x1ac14c[_0x5d8a7f];return _0x4625ad;}(function(_0x3f4e8d,_0x516cd0){var _0x1c1033=a246_0x4625,_0x2812fa=_0x3f4e8d();while(!![]){try{var _0x2fd328=parseInt(_0x1c1033(0x84))/0x1+parseInt(_0x1c1033(0x85))/0x2*(parseInt(_0x1c1033(0x87))/0x3)+-parseInt(_0x1c1033(0x82))/0x4*(-parseInt(_0x1c1033(0x81))/0x5)+-parseInt(_0x1c1033(0x7f))/0x6+parseInt(_0x1c1033(0x80))/0x7*(-parseInt(_0x1c1033(0x86))/0x8)+-parseInt(_0x1c1033(0x7e))/0x9+-parseInt(_0x1c1033(0x88))/0xa*(-parseInt(_0x1c1033(0x83))/0xb);if(_0x2fd328===_0x516cd0)break;else _0x2812fa['push'](_0x2812fa['shift']());}catch(_0x2f8ccd){_0x2812fa['push'](_0x2812fa['shift']());}}}(a246_0x1ac1,0xb3c97));function a246_0x1ac1(){var _0xbe295c=['55LWmxZe','269923rMkzHh','4NeMqpl','184136uOlEay','285453edjpSR','4044980RCWpil','7112277gmQKEv','2278920sPquXC','413eNskzx','977210CUmNFr','16MSPhSM'];a246_0x1ac1=function(){return _0xbe295c;};return a246_0x1ac1();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
1
+ function a246_0x495f(){var _0x276935=['21qQMliT','186mxKqpa','10CGuyBT','6289404Fiwhix','32DFTVxB','13BELVZU','1222TKPXYJ','195945hKeIOw','2788524atihnt','1846njvolv','10262028WqrKDx','810604wkcTGF','59885ZoZsLU'];a246_0x495f=function(){return _0x276935;};return a246_0x495f();}(function(_0x501639,_0x17403a){var _0x599536=a246_0x262d,_0x1a69a1=_0x501639();while(!![]){try{var _0x3678f4=-parseInt(_0x599536(0xb4))/0x1*(-parseInt(_0x599536(0xb1))/0x2)+-parseInt(_0x599536(0xb8))/0x3*(-parseInt(_0x599536(0xb6))/0x4)+-parseInt(_0x599536(0xb2))/0x5*(parseInt(_0x599536(0xac))/0x6)+parseInt(_0x599536(0xb7))/0x7*(parseInt(_0x599536(0xaf))/0x8)+parseInt(_0x599536(0xb3))/0x9*(-parseInt(_0x599536(0xad))/0xa)+parseInt(_0x599536(0xae))/0xb+-parseInt(_0x599536(0xb5))/0xc*(parseInt(_0x599536(0xb0))/0xd);if(_0x3678f4===_0x17403a)break;else _0x1a69a1['push'](_0x1a69a1['shift']());}catch(_0x5d42f1){_0x1a69a1['push'](_0x1a69a1['shift']());}}}(a246_0x495f,0xbc9e7));function a246_0x262d(_0x2ec4d3,_0x1433d3){_0x2ec4d3=_0x2ec4d3-0xac;var _0x495f3e=a246_0x495f();var _0x262d60=_0x495f3e[_0x2ec4d3];return _0x262d60;}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x297456,_0x3b1f82){var _0x38be1c=a247_0x33a4,_0x410502=_0x297456();while(!![]){try{var _0x8e927a=parseInt(_0x38be1c(0x18d))/0x1+-parseInt(_0x38be1c(0x18b))/0x2*(-parseInt(_0x38be1c(0x189))/0x3)+-parseInt(_0x38be1c(0x192))/0x4*(-parseInt(_0x38be1c(0x193))/0x5)+parseInt(_0x38be1c(0x188))/0x6+parseInt(_0x38be1c(0x18a))/0x7*(parseInt(_0x38be1c(0x18f))/0x8)+parseInt(_0x38be1c(0x18c))/0x9*(parseInt(_0x38be1c(0x190))/0xa)+parseInt(_0x38be1c(0x191))/0xb*(-parseInt(_0x38be1c(0x18e))/0xc);if(_0x8e927a===_0x3b1f82)break;else _0x410502['push'](_0x410502['shift']());}catch(_0x52ce0b){_0x410502['push'](_0x410502['shift']());}}}(a247_0x4834,0xcdecc));function a247_0x4834(){var _0x5bb7f9=['8etRrmb','286785iaqqcJ','5295900AQdMLo','2355879aEFlCg','308RHHZLY','2HuliDp','61227JFDwJq','1067408ryWaij','7212McvTZn','67336mkqxfO','1190SyjiKx','58322yXJRCG'];a247_0x4834=function(){return _0x5bb7f9;};return a247_0x4834();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a247_0x33a4(_0x7d40ed,_0x1bdb87){_0x7d40ed=_0x7d40ed-0x188;var _0x4834cb=a247_0x4834();var _0x33a43f=_0x4834cb[_0x7d40ed];return _0x33a43f;}export async function withActiveCookie(_0x206b42,_0x290690){setActiveCookie(_0x206b42);try{return await _0x290690();}finally{clearActiveCookie();}}
1
+ function a247_0x535b(_0x2e5a7d,_0xaa6e73){_0x2e5a7d=_0x2e5a7d-0x128;var _0x54420d=a247_0x5442();var _0x535b66=_0x54420d[_0x2e5a7d];return _0x535b66;}(function(_0x4b170f,_0x573ede){var _0x507452=a247_0x535b,_0x576692=_0x4b170f();while(!![]){try{var _0x2f175c=parseInt(_0x507452(0x12d))/0x1*(parseInt(_0x507452(0x128))/0x2)+parseInt(_0x507452(0x130))/0x3+parseInt(_0x507452(0x129))/0x4*(parseInt(_0x507452(0x132))/0x5)+parseInt(_0x507452(0x12a))/0x6*(parseInt(_0x507452(0x12c))/0x7)+-parseInt(_0x507452(0x12f))/0x8*(-parseInt(_0x507452(0x12b))/0x9)+parseInt(_0x507452(0x131))/0xa+-parseInt(_0x507452(0x12e))/0xb;if(_0x2f175c===_0x573ede)break;else _0x576692['push'](_0x576692['shift']());}catch(_0x7b1f43){_0x576692['push'](_0x576692['shift']());}}}(a247_0x5442,0xb302c));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x4ae85e,_0x13c6b2){setActiveCookie(_0x4ae85e);try{return await _0x13c6b2();}finally{clearActiveCookie();}}function a247_0x5442(){var _0x12a020=['25731qMykxG','7hqtfQl','19368dUeSSo','22513150jBKwMq','1720pscOQL','1456929eDvfaX','1644400OuuRgb','5AlCcdx','22FtSqPX','2564532NXYgKN','3965574yyOeiB'];a247_0x5442=function(){return _0x12a020;};return a247_0x5442();}