@lovrabet/rabetbase-cli 2.2.0-beta.1 → 2.2.0-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 (204) 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/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.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/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -1
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -1
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x386121,_0x357158){const _0x207f2d=a183_0x5e12,_0x29d307=_0x386121();while(!![]){try{const _0x326ce8=parseInt(_0x207f2d(0x165))/0x1*(parseInt(_0x207f2d(0x16b))/0x2)+parseInt(_0x207f2d(0x168))/0x3+-parseInt(_0x207f2d(0x163))/0x4+parseInt(_0x207f2d(0x167))/0x5*(-parseInt(_0x207f2d(0x162))/0x6)+parseInt(_0x207f2d(0x169))/0x7*(-parseInt(_0x207f2d(0x16f))/0x8)+parseInt(_0x207f2d(0x161))/0x9*(parseInt(_0x207f2d(0x16e))/0xa)+parseInt(_0x207f2d(0x16d))/0xb;if(_0x326ce8===_0x357158)break;else _0x29d307['push'](_0x29d307['shift']());}catch(_0x199968){_0x29d307['push'](_0x29d307['shift']());}}}(a183_0x408f,0x4b42a));function a183_0x5e12(_0x138e98,_0x436524){_0x138e98=_0x138e98-0x161;const _0x408fe6=a183_0x408f();let _0x5e12ee=_0x408fe6[_0x138e98];return _0x5e12ee;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';function a183_0x408f(){const _0x5aa989=['redactionCount','6127792iWWWFI','2681060DxPRxk','3712amgrhj','join','9jMViDk','1759584qQsdiy','904860yHqVHN','sanitize','2GjUIjo','redactionKinds','10EnqLzu','991689NktkVm','2989YuXdrW','originalBytes','163396sLEkgO'];a183_0x408f=function(){return _0x5aa989;};return a183_0x408f();}export async function sendPlatformIssueCollectLog(_0x4e4072){const _0xe1e409=a183_0x5e12;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4e4072['title'],'issue.description':_0x4e4072['description'],..._0x4e4072['sanitize']?{'issue.description_original_bytes':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x16a)],'issue.description_truncated':_0x4e4072[_0xe1e409(0x164)]['truncated'],'issue.description_redactions':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x16c)],'issue.description_redaction_kinds':_0x4e4072[_0xe1e409(0x164)][_0xe1e409(0x166)][_0xe1e409(0x170)](',')}:{}}});}
1
+ const a183_0x228da3=a183_0xe567;(function(_0x4398cf,_0x5155af){const _0x3314ee=a183_0xe567,_0xca33c6=_0x4398cf();while(!![]){try{const _0x21437e=-parseInt(_0x3314ee(0x95))/0x1*(-parseInt(_0x3314ee(0x90))/0x2)+parseInt(_0x3314ee(0x92))/0x3*(-parseInt(_0x3314ee(0x9c))/0x4)+-parseInt(_0x3314ee(0x9a))/0x5+parseInt(_0x3314ee(0x96))/0x6+parseInt(_0x3314ee(0x9e))/0x7+parseInt(_0x3314ee(0x94))/0x8*(parseInt(_0x3314ee(0x98))/0x9)+-parseInt(_0x3314ee(0x97))/0xa;if(_0x21437e===_0x5155af)break;else _0xca33c6['push'](_0xca33c6['shift']());}catch(_0xae0fc9){_0xca33c6['push'](_0xca33c6['shift']());}}}(a183_0x57e4,0xaa41b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a183_0x57e4(){const _0x383268=['sanitize','5975571kQKDFH','description','issue.log.collect','join','34iGiBGd','redactionCount','19053EXkQht','truncated','6056chDERq','26774KnPhcT','5262090rtJcgn','8955930KBBwdZ','576ZKLrHh','originalBytes','1999860DDkuMB','platform-issue-log-collect','152vGGhSH'];a183_0x57e4=function(){return _0x383268;};return a183_0x57e4();}export const PLATFORM_ISSUE_TRACE_NAME=a183_0x228da3(0x9b);export const PLATFORM_ISSUE_SPAN_NAME=a183_0x228da3(0x8e);function a183_0xe567(_0x466719,_0x2404ab){_0x466719=_0x466719-0x8e;const _0x57e4ea=a183_0x57e4();let _0xe56748=_0x57e4ea[_0x466719];return _0xe56748;}export async function sendPlatformIssueCollectLog(_0x37d322){const _0x1cba27=a183_0x228da3;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x37d322['title'],'issue.description':_0x37d322[_0x1cba27(0x9f)],..._0x37d322[_0x1cba27(0x9d)]?{'issue.description_original_bytes':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x99)],'issue.description_truncated':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x93)],'issue.description_redactions':_0x37d322[_0x1cba27(0x9d)][_0x1cba27(0x91)],'issue.description_redaction_kinds':_0x37d322[_0x1cba27(0x9d)]['redactionKinds'][_0x1cba27(0x8f)](',')}:{}}});}
@@ -1 +1 @@
1
- const a185_0x31cc3=a185_0x283b;function a185_0x283b(_0x1bb419,_0x321605){_0x1bb419=_0x1bb419-0x1da;const _0x1d0208=a185_0x1d02();let _0x283b3d=_0x1d0208[_0x1bb419];return _0x283b3d;}function a185_0x1d02(){const _0x304674=['claude','.windsurf','qoder','.qoder/skills/lovrabet/SKILL.md','.claude','.cursorrules','codebuddy','.agent','Claude\x20Code','1033404jRjjmO','2YjqMfi','.qoder','.cursor','.codebuddy/skills/lovrabet/SKILL.md','Codex','CodeBuddy','.opencode/skills/lovrabet/SKILL.md','antigravity','cursor','.agent/skills/lovrabet/SKILL.md','.trae/skills/lovrabet/SKILL.md','95890jhAMuh','2104yRzCtA','2607Kfqweh','.cline/skills/lovrabet/SKILL.md','Windsurf','371916xNhlGy','其他\x20(通用模板)','Cline','272291PQLmkO','.codebuddy','Qoder\x20IDE','Windsurf\x20IDE','Cursor\x20IDE','Trae','77495sZCoPk','.trae','.codex','325980VJUtsk','windsurf','SKILL.md.tpl','opencode','Qoder','codex','cline','OpenCode\x20IDE','trae','CodeBuddy\x20IDE','2961CBHXvh','Cursor','file','Cline\x20IDE','Codex\x20IDE','444ksPIsb'];a185_0x1d02=function(){return _0x304674;};return a185_0x1d02();}(function(_0x14efa0,_0x5b3af6){const _0x17be85=a185_0x283b,_0x244857=_0x14efa0();while(!![]){try{const _0x274ec5=-parseInt(_0x17be85(0x1f2))/0x1*(-parseInt(_0x17be85(0x1df))/0x2)+parseInt(_0x17be85(0x1de))/0x3+parseInt(_0x17be85(0x20a))/0x4*(-parseInt(_0x17be85(0x1f8))/0x5)+-parseInt(_0x17be85(0x1ef))/0x6+parseInt(_0x17be85(0x205))/0x7*(-parseInt(_0x17be85(0x1eb))/0x8)+-parseInt(_0x17be85(0x1fb))/0x9+parseInt(_0x17be85(0x1ea))/0xa*(parseInt(_0x17be85(0x1ec))/0xb);if(_0x274ec5===_0x5b3af6)break;else _0x244857['push'](_0x244857['shift']());}catch(_0x4e6cff){_0x244857['push'](_0x244857['shift']());}}}(a185_0x1d02,0xea414));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x31cc3(0x206),'description':a185_0x31cc3(0x1f6),'folders':[a185_0x31cc3(0x1da),a185_0x31cc3(0x1e1)],'files':[{'type':a185_0x31cc3(0x207),'path':'.cursor/skills/rabetbase.md','template':'SKILL.md.tpl'}]},'windsurf':{'name':a185_0x31cc3(0x1ee),'description':a185_0x31cc3(0x1f5),'folders':[a185_0x31cc3(0x20c)],'files':[{'type':a185_0x31cc3(0x207),'path':'.windsurf/workflows/rabetbase.md','template':a185_0x31cc3(0x1fd)}]},'claude':{'name':a185_0x31cc3(0x1dd),'description':a185_0x31cc3(0x1dd),'folders':[a185_0x31cc3(0x20f)],'files':[{'type':a185_0x31cc3(0x207),'path':'.claude/skills/lovrabet/SKILL.md','template':a185_0x31cc3(0x1fd)}]},'cline':{'name':a185_0x31cc3(0x1f1),'description':a185_0x31cc3(0x208),'folders':['.cline'],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1ed),'template':'SKILL.md.tpl'}]},'codex':{'name':a185_0x31cc3(0x1e3),'description':a185_0x31cc3(0x209),'folders':[a185_0x31cc3(0x1fa)],'files':[{'type':a185_0x31cc3(0x207),'path':'.codex/skills/lovrabet/SKILL.md','template':a185_0x31cc3(0x1fd)}]},'opencode':{'name':'OpenCode','description':a185_0x31cc3(0x202),'folders':['.opencode'],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e5),'template':a185_0x31cc3(0x1fd)}]},'qoder':{'name':a185_0x31cc3(0x1ff),'description':a185_0x31cc3(0x1f4),'folders':[a185_0x31cc3(0x1e0)],'files':[{'type':a185_0x31cc3(0x207),'path':'.qoder/rules/rabetbase.md','template':a185_0x31cc3(0x1fd)},{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x20e),'template':'SKILL.md.tpl'}]},'codebuddy':{'name':a185_0x31cc3(0x1e4),'description':a185_0x31cc3(0x204),'folders':[a185_0x31cc3(0x1f3)],'files':[{'type':'file','path':a185_0x31cc3(0x1e2),'template':a185_0x31cc3(0x1fd)}]},'trae':{'name':a185_0x31cc3(0x1f7),'description':'Trae\x20IDE','folders':[a185_0x31cc3(0x1f9)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e9),'template':a185_0x31cc3(0x1fd)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x31cc3(0x1f0),'description':'通用模板\x20-\x20兜底方案','folders':[a185_0x31cc3(0x1dc)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e8),'template':a185_0x31cc3(0x1fd)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':[a185_0x31cc3(0x1dc)],'files':[{'type':a185_0x31cc3(0x207),'path':a185_0x31cc3(0x1e8),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a185_0x31cc3(0x20b),'cline','codebuddy',a185_0x31cc3(0x200),a185_0x31cc3(0x1e7),'opencode',a185_0x31cc3(0x20d),a185_0x31cc3(0x203),'windsurf'];export const IDE_LIST=[a185_0x31cc3(0x1e6),'claude',a185_0x31cc3(0x201),'codebuddy',a185_0x31cc3(0x200),'cursor',a185_0x31cc3(0x1fe),a185_0x31cc3(0x20d),a185_0x31cc3(0x203),'windsurf','agent'];export const ALL_CORE_IDES=[a185_0x31cc3(0x1e7),a185_0x31cc3(0x1fc),a185_0x31cc3(0x20b),a185_0x31cc3(0x201),a185_0x31cc3(0x200),'opencode',a185_0x31cc3(0x20d),a185_0x31cc3(0x1db),a185_0x31cc3(0x203)];
1
+ const a185_0x1b128a=a185_0x3d5c;function a185_0x4cbf(){const _0xebec39=['.codex','.cline','windsurf','Claude\x20Code','4selEQW','16cesbKS','.qoder','OpenCode\x20IDE','.agent','.claude','.cursor','SKILL.md.tpl','claude','Windsurf','8041mzWcIx','.opencode','.qoder/rules/rabetbase.md','Trae','agent','trae','Antigravity','.cline/skills/lovrabet/SKILL.md','cline','codex','950346cHvZBt','.opencode/skills/lovrabet/SKILL.md','477980CUVJgb','.windsurf/workflows/rabetbase.md','Codex','1238013mIQrXh','.codebuddy','antigravity','.codex/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','1074771btKbeC','Cline','.cursor/skills/rabetbase.md','opencode','22XKiEtV','Qoder\x20IDE','其他\x20(通用模板)','3955236IbsalZ','CodeBuddy\x20IDE','.codebuddy/skills/lovrabet/SKILL.md','Windsurf\x20IDE','cursor','file','10WzdoAM','Cline\x20IDE','.trae/skills/lovrabet/SKILL.md','OpenCode','2654160skLBOG','Cursor','.windsurf','Trae\x20IDE','30mCTlCi','codebuddy','Cursor\x20IDE'];a185_0x4cbf=function(){return _0xebec39;};return a185_0x4cbf();}(function(_0x4f1475,_0x553800){const _0x626bbf=a185_0x3d5c,_0x31b0af=_0x4f1475();while(!![]){try{const _0x441fc7=-parseInt(_0x626bbf(0x134))/0x1*(parseInt(_0x626bbf(0x123))/0x2)+parseInt(_0x626bbf(0x13e))/0x3*(-parseInt(_0x626bbf(0x12a))/0x4)+parseInt(_0x626bbf(0x140))/0x5+-parseInt(_0x626bbf(0x11f))/0x6+parseInt(_0x626bbf(0x109))/0x7*(parseInt(_0x626bbf(0x12b))/0x8)+parseInt(_0x626bbf(0x10e))/0x9*(parseInt(_0x626bbf(0x11b))/0xa)+-parseInt(_0x626bbf(0x112))/0xb*(-parseInt(_0x626bbf(0x115))/0xc);if(_0x441fc7===_0x553800)break;else _0x31b0af['push'](_0x31b0af['shift']());}catch(_0x4c638d){_0x31b0af['push'](_0x31b0af['shift']());}}}(a185_0x4cbf,0x55016));export const CORE_IDE_CONFIGS={'cursor':{'name':a185_0x1b128a(0x120),'description':a185_0x1b128a(0x125),'folders':['.cursorrules',a185_0x1b128a(0x130)],'files':[{'type':'file','path':a185_0x1b128a(0x110),'template':a185_0x1b128a(0x131)}]},'windsurf':{'name':a185_0x1b128a(0x133),'description':a185_0x1b128a(0x118),'folders':[a185_0x1b128a(0x121)],'files':[{'type':'file','path':a185_0x1b128a(0x141),'template':a185_0x1b128a(0x131)}]},'claude':{'name':a185_0x1b128a(0x129),'description':'Claude\x20Code','folders':[a185_0x1b128a(0x12f)],'files':[{'type':a185_0x1b128a(0x11a),'path':'.claude/skills/lovrabet/SKILL.md','template':a185_0x1b128a(0x131)}]},'cline':{'name':a185_0x1b128a(0x10f),'description':a185_0x1b128a(0x11c),'folders':[a185_0x1b128a(0x127)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x13b),'template':a185_0x1b128a(0x131)}]},'codex':{'name':a185_0x1b128a(0x142),'description':'Codex\x20IDE','folders':[a185_0x1b128a(0x126)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10c),'template':a185_0x1b128a(0x131)}]},'opencode':{'name':a185_0x1b128a(0x11e),'description':a185_0x1b128a(0x12d),'folders':[a185_0x1b128a(0x135)],'files':[{'type':'file','path':a185_0x1b128a(0x13f),'template':a185_0x1b128a(0x131)}]},'qoder':{'name':'Qoder','description':a185_0x1b128a(0x113),'folders':[a185_0x1b128a(0x12c)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x136),'template':a185_0x1b128a(0x131)},{'type':a185_0x1b128a(0x11a),'path':'.qoder/skills/lovrabet/SKILL.md','template':a185_0x1b128a(0x131)}]},'codebuddy':{'name':'CodeBuddy','description':a185_0x1b128a(0x116),'folders':[a185_0x1b128a(0x10a)],'files':[{'type':'file','path':a185_0x1b128a(0x117),'template':a185_0x1b128a(0x131)}]},'trae':{'name':a185_0x1b128a(0x137),'description':a185_0x1b128a(0x122),'folders':['.trae'],'files':[{'type':'file','path':a185_0x1b128a(0x11d),'template':'SKILL.md.tpl'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a185_0x1b128a(0x114),'description':'通用模板\x20-\x20兜底方案','folders':[a185_0x1b128a(0x12e)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10d),'template':'SKILL.md.tpl'}]},'antigravity':{'name':a185_0x1b128a(0x13a),'description':'Antigravity\x20IDE','folders':[a185_0x1b128a(0x12e)],'files':[{'type':a185_0x1b128a(0x11a),'path':a185_0x1b128a(0x10d),'template':'SKILL.md.tpl'}]}};export const CORE_IDE_LIST=[a185_0x1b128a(0x132),a185_0x1b128a(0x13c),'codebuddy',a185_0x1b128a(0x13d),a185_0x1b128a(0x119),'opencode','qoder',a185_0x1b128a(0x139),a185_0x1b128a(0x128)];function a185_0x3d5c(_0x495cda,_0x30621f){_0x495cda=_0x495cda-0x109;const _0x4cbf17=a185_0x4cbf();let _0x3d5cf2=_0x4cbf17[_0x495cda];return _0x3d5cf2;}export const IDE_LIST=[a185_0x1b128a(0x10b),a185_0x1b128a(0x132),'cline','codebuddy',a185_0x1b128a(0x13d),a185_0x1b128a(0x119),a185_0x1b128a(0x111),'qoder','trae',a185_0x1b128a(0x128),a185_0x1b128a(0x138)];export const ALL_CORE_IDES=[a185_0x1b128a(0x119),a185_0x1b128a(0x128),'claude',a185_0x1b128a(0x13c),'codex','opencode','qoder',a185_0x1b128a(0x124),'trae'];
@@ -1 +1 @@
1
- (function(_0x3d79a4,_0x14545e){const _0x3bad15=a186_0x10f8,_0x275d48=_0x3d79a4();while(!![]){try{const _0x216e8d=parseInt(_0x3bad15(0x65))/0x1+parseInt(_0x3bad15(0x6b))/0x2+parseInt(_0x3bad15(0x69))/0x3*(parseInt(_0x3bad15(0x67))/0x4)+-parseInt(_0x3bad15(0x6d))/0x5+parseInt(_0x3bad15(0x68))/0x6+-parseInt(_0x3bad15(0x6a))/0x7*(-parseInt(_0x3bad15(0x66))/0x8)+-parseInt(_0x3bad15(0x6c))/0x9;if(_0x216e8d===_0x14545e)break;else _0x275d48['push'](_0x275d48['shift']());}catch(_0x2f7524){_0x275d48['push'](_0x275d48['shift']());}}}(a186_0x52fe,0x47507));function a186_0x10f8(_0x5b47dd,_0x378c57){_0x5b47dd=_0x5b47dd-0x65;const _0x52fef2=a186_0x52fe();let _0x10f8f7=_0x52fef2[_0x5b47dd];return _0x10f8f7;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0x52fe(){const _0x2fb96b=['678620XFMRez','1658802MvTWpa','6XEkfWG','15715YemThY','150394LLRPnm','1868931YbvdGS','2834560NVBNQI','216305nmXDMR','568HBqfRa'];a186_0x52fe=function(){return _0x2fb96b;};return a186_0x52fe();}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ function a186_0x409e(){const _0x3fca44=['3hJHxse','33bsubag','8802CCgMLg','6IvKbaF','6272040OdoqlS','1767682QlLPaX','328RsecHN','584000NXxKxr','3344180kPOIeB','3742648EaGEEG','3692325YlqFWj'];a186_0x409e=function(){return _0x3fca44;};return a186_0x409e();}(function(_0x51b111,_0x29b76e){const _0x456495=a186_0xc9fa,_0x4073d0=_0x51b111();while(!![]){try{const _0x194a88=-parseInt(_0x456495(0x181))/0x1+-parseInt(_0x456495(0x17f))/0x2*(-parseInt(_0x456495(0x17a))/0x3)+parseInt(_0x456495(0x183))/0x4+-parseInt(_0x456495(0x182))/0x5*(-parseInt(_0x456495(0x17d))/0x6)+parseInt(_0x456495(0x184))/0x7+-parseInt(_0x456495(0x180))/0x8*(parseInt(_0x456495(0x17c))/0x9)+-parseInt(_0x456495(0x17e))/0xa*(parseInt(_0x456495(0x17b))/0xb);if(_0x194a88===_0x29b76e)break;else _0x4073d0['push'](_0x4073d0['shift']());}catch(_0x51c472){_0x4073d0['push'](_0x4073d0['shift']());}}}(a186_0x409e,0x7c898));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a186_0xc9fa(_0xb6c835,_0x1243f6){_0xb6c835=_0xb6c835-0x17a;const _0x409e1c=a186_0x409e();let _0xc9fac=_0x409e1c[_0xb6c835];return _0xc9fac;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x528513,_0x5502d5){const _0x121353=a187_0x144c,_0x11e623=_0x528513();while(!![]){try{const _0x55074e=-parseInt(_0x121353(0xbd))/0x1*(parseInt(_0x121353(0xbe))/0x2)+-parseInt(_0x121353(0xb5))/0x3+-parseInt(_0x121353(0xc7))/0x4*(parseInt(_0x121353(0xc3))/0x5)+parseInt(_0x121353(0xb8))/0x6+parseInt(_0x121353(0xb9))/0x7*(parseInt(_0x121353(0xbf))/0x8)+parseInt(_0x121353(0xba))/0x9*(parseInt(_0x121353(0xb7))/0xa)+parseInt(_0x121353(0xc2))/0xb*(parseInt(_0x121353(0xbc))/0xc);if(_0x55074e===_0x5502d5)break;else _0x11e623['push'](_0x11e623['shift']());}catch(_0x3dc277){_0x11e623['push'](_0x11e623['shift']());}}}(a187_0x402d,0xd6c86));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2caa73=a187_0x144c,_0x4f38be=getTemplateBaseUrl(),_0x404b72=[_0x4f38be+_0x2caa73(0xb6),_0x4f38be+_0x2caa73(0xc8)];for(const _0xcc05c3 of _0x404b72){try{const _0x2b64db=await fetch(_0xcc05c3,{'headers':{'Accept':'application/json'}});if(!_0x2b64db['ok'])continue;const _0xde8844=await _0x2b64db[_0x2caa73(0xc0)]();if(!_0xde8844[_0x2caa73(0xc4)]?.[_0x2caa73(0xc5)]||!_0xde8844[_0x2caa73(0xbb)]?.[_0x2caa73(0xc6)]?.[_0x2caa73(0xc5)])continue;return _0xde8844;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x402d(){const _0x401941=['4103556WyvFnb','1kyGKyp','1975628TDnhau','6640736qMYhsn','json','now','11prGMmu','5zgjrbZ','cli','stableVersion','node','4055804kIKVJK','/config/index.json','3342942Skorom','/config.json','1704130lnrEZf','9917136RyZAkc','14fyPpFb','18NqFLHv','sdk'];a187_0x402d=function(){return _0x401941;};return a187_0x402d();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x2d2a99=a187_0x144c,_0x3bd023=Date[_0x2d2a99(0xc1)]();if(hasCachedConfig){const _0x407940=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3bd023-cacheTime<_0x407940)return cachedConfig;}const _0x26fbef=await fetchCdnConfig();return cachedConfig=_0x26fbef,cacheTime=_0x3bd023,hasCachedConfig=!![],_0x26fbef;}function a187_0x144c(_0x224883,_0x428c51){_0x224883=_0x224883-0xb5;const _0x402d5b=a187_0x402d();let _0x144c2d=_0x402d5b[_0x224883];return _0x144c2d;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x1415f9,_0xf60539){const _0xae01a2=a187_0x35ee,_0x1e7af8=_0x1415f9();while(!![]){try{const _0x473e89=-parseInt(_0xae01a2(0xb5))/0x1+-parseInt(_0xae01a2(0xaa))/0x2+-parseInt(_0xae01a2(0xab))/0x3*(parseInt(_0xae01a2(0xaf))/0x4)+-parseInt(_0xae01a2(0xa9))/0x5*(parseInt(_0xae01a2(0xb0))/0x6)+parseInt(_0xae01a2(0xac))/0x7+parseInt(_0xae01a2(0xb3))/0x8+parseInt(_0xae01a2(0xad))/0x9*(parseInt(_0xae01a2(0xb9))/0xa);if(_0x473e89===_0xf60539)break;else _0x1e7af8['push'](_0x1e7af8['shift']());}catch(_0x732e1c){_0x1e7af8['push'](_0x1e7af8['shift']());}}}(a187_0x52dd,0xb4396));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x943aaf=a187_0x35ee,_0x307a17=getTemplateBaseUrl(),_0x3402cb=[_0x307a17+_0x943aaf(0xb2),_0x307a17+_0x943aaf(0xb8)];for(const _0x3ed882 of _0x3402cb){try{const _0x44cd6d=await fetch(_0x3ed882,{'headers':{'Accept':_0x943aaf(0xae)}});if(!_0x44cd6d['ok'])continue;const _0x40905=await _0x44cd6d[_0x943aaf(0xb7)]();if(!_0x40905['cli']?.['stableVersion']||!_0x40905['sdk']?.[_0x943aaf(0xb1)]?.[_0x943aaf(0xb4)])continue;return _0x40905;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;function a187_0x52dd(){const _0x2883be=['/config.json','2593984ksNIHe','stableVersion','215632espqWl','now','json','/config/index.json','20HyDqDX','2839765IWIDVT','979294IkcqyG','60aMwweL','718424ERLkoI','11052135OEiXHq','application/json','174296jOYBLX','6bTtmGH','node'];a187_0x52dd=function(){return _0x2883be;};return a187_0x52dd();}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3638f5=a187_0x35ee,_0x2f6a37=Date[_0x3638f5(0xb6)]();if(hasCachedConfig){const _0x2b7c61=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2f6a37-cacheTime<_0x2b7c61)return cachedConfig;}const _0x262d1c=await fetchCdnConfig();return cachedConfig=_0x262d1c,cacheTime=_0x2f6a37,hasCachedConfig=!![],_0x262d1c;}function a187_0x35ee(_0x17a9c0,_0x2afc4d){_0x17a9c0=_0x17a9c0-0xa9;const _0x52dd9d=a187_0x52dd();let _0x35ee6a=_0x52dd9d[_0x17a9c0];return _0x35ee6a;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a188_0x10a2ed=a188_0x2804;(function(_0x106f4e,_0x49009b){const _0x5e8689=a188_0x2804,_0xd95524=_0x106f4e();while(!![]){try{const _0x56702c=-parseInt(_0x5e8689(0xc5))/0x1*(parseInt(_0x5e8689(0xbd))/0x2)+-parseInt(_0x5e8689(0xa6))/0x3+parseInt(_0x5e8689(0xaf))/0x4+parseInt(_0x5e8689(0xb3))/0x5*(parseInt(_0x5e8689(0xb7))/0x6)+parseInt(_0x5e8689(0xc1))/0x7*(parseInt(_0x5e8689(0xc0))/0x8)+-parseInt(_0x5e8689(0xbb))/0x9+-parseInt(_0x5e8689(0xad))/0xa;if(_0x56702c===_0x49009b)break;else _0xd95524['push'](_0xd95524['shift']());}catch(_0x3a096b){_0xd95524['push'](_0xd95524['shift']());}}}(a188_0x4ef4,0x9265a));import a188_0x22d023 from'node:fs';import a188_0xf11ac3 from'node:path';import a188_0x23c995 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x10a2ed(0xa5);function a188_0x4ef4(){const _0x413074=['dependencies','6JMuklr','version','devDependencies','parse','1337463FoMjra','sdk','324446dNgoDZ','npm\x20install\x20','@lovrabet/sdk','4624712mMsahb','7kilpUI','test','readFileSync','stableVersion','1OPWCKe','log','existsSync','1.2.0','1022028bdBiIU','↪\x20SDK\x20update\x20available','coerce','\x1b[1m','node_modules','packageName','\x1b[33m','2329260JWrgcq','package.json','1470248MHEEZK','\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','utf8','2692115nOhPXu','node','join'];a188_0x4ef4=function(){return _0x413074;};return a188_0x4ef4();}function isNonNumericVersion(_0x399fbd){const _0x3479e4=a188_0x10a2ed,_0xbf75ba=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xbf75ba['some'](_0x46c51a=>_0x46c51a[_0x3479e4(0xc2)](_0x399fbd));}function getInstalledVersion(_0x187db6,_0x531ed5){const _0x630ddd=a188_0x10a2ed;try{const _0x3fc81c=a188_0xf11ac3[_0x630ddd(0xb5)](_0x187db6,_0x630ddd(0xaa),_0x531ed5,'package.json');if(a188_0x22d023[_0x630ddd(0xc7)](_0x3fc81c)){const _0x3e7c76=JSON[_0x630ddd(0xba)](a188_0x22d023['readFileSync'](_0x3fc81c,'utf-8'));return _0x3e7c76[_0x630ddd(0xb8)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4d9ac6=a188_0x10a2ed;try{const _0x2a29d5=await getCdnConfig();return _0x2a29d5?.[_0x4d9ac6(0xbc)]?.[_0x4d9ac6(0xb4)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x5983fe=a188_0x10a2ed;try{const _0x226a48=await getCdnConfig();return _0x226a48?.[_0x5983fe(0xbc)]?.[_0x5983fe(0xb4)]?.[_0x5983fe(0xab)]||'@lovrabet/sdk';}catch{return _0x5983fe(0xbf);}}export async function checkSdkVersion(_0x8e6511){const _0x3cc9bb=a188_0x10a2ed,_0xa103d3=a188_0xf11ac3[_0x3cc9bb(0xb5)](_0x8e6511,_0x3cc9bb(0xae)),[_0xddcfb,_0x1fd093]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x2bc317=_0xddcfb||FALLBACK_MIN_SDK_VERSION;if(!a188_0x22d023['existsSync'](_0xa103d3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};try{const _0x456614=JSON[_0x3cc9bb(0xba)](a188_0x22d023['readFileSync'](_0xa103d3,_0x3cc9bb(0xb2))),_0x3eebf9=_0x456614[_0x3cc9bb(0xb6)]||{},_0x5f441c=_0x456614[_0x3cc9bb(0xb9)]||{},_0x5075ea=_0x3eebf9[_0x1fd093]||_0x5f441c[_0x1fd093];if(!_0x5075ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};let _0x44631e=getInstalledVersion(_0x8e6511,_0x1fd093);!_0x44631e&&(_0x44631e=_0x5075ea);if(isNonNumericVersion(_0x5075ea))return{'installed':!![],'version':_0x44631e,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};const _0x3d2bb5=a188_0x23c995[_0x3cc9bb(0xa8)](_0x44631e),_0x30f2d9=a188_0x23c995[_0x3cc9bb(0xa8)](_0x2bc317),_0x507948=_0x3d2bb5&&_0x30f2d9?a188_0x23c995['lt'](_0x3d2bb5,_0x30f2d9):![];return{'installed':!![],'version':_0x44631e,'needsUpgrade':_0x507948,'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x2bc317,'packageName':_0x1fd093,'stableVersion':_0xddcfb};}}export function checkSdkVersionSync(_0x3bfd51){const _0xd0edcf=a188_0x10a2ed,_0x1475db=a188_0xf11ac3['join'](_0x3bfd51,_0xd0edcf(0xae)),_0x1f939f='@lovrabet/sdk';if(!a188_0x22d023[_0xd0edcf(0xc7)](_0x1475db))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};try{const _0x7004a=JSON[_0xd0edcf(0xba)](a188_0x22d023[_0xd0edcf(0xc3)](_0x1475db,'utf8')),_0x457466=_0x7004a[_0xd0edcf(0xb6)]||{},_0x51e49e=_0x7004a[_0xd0edcf(0xb9)]||{},_0x1e8130=_0x457466[_0x1f939f]||_0x51e49e[_0x1f939f];if(!_0x1e8130)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};let _0xa4c220=getInstalledVersion(_0x3bfd51,_0x1f939f);!_0xa4c220&&(_0xa4c220=_0x1e8130);if(isNonNumericVersion(_0x1e8130))return{'installed':!![],'version':_0xa4c220,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};const _0x286493=a188_0x23c995[_0xd0edcf(0xa8)](_0xa4c220),_0x56def2=_0x286493?a188_0x23c995['lt'](_0x286493,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xa4c220,'needsUpgrade':_0x56def2,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f939f,'stableVersion':null};}}function a188_0x2804(_0x580b30,_0x42bf06){_0x580b30=_0x580b30-0xa5;const _0x4ef40f=a188_0x4ef4();let _0x280486=_0x4ef40f[_0x580b30];return _0x280486;}export function printSdkUpgradeWarning(_0x5a2ccb){const _0x400a30=a188_0x10a2ed;if(!_0x5a2ccb['needsUpgrade'])return;const _0x1feaad=_0x400a30(0xac),_0x458b4f='\x1b[0m',_0x2ff612=_0x400a30(0xa9),_0x26de97=_0x5a2ccb[_0x400a30(0xab)]||_0x400a30(0xbf),_0x7cf881=_0x5a2ccb[_0x400a30(0xc4)]||_0x5a2ccb['minVersion'],_0x2f776f=_0x400a30(0xbe)+_0x26de97+'@'+(_0x7cf881||'latest');console[_0x400a30(0xc6)](),console[_0x400a30(0xc6)](''+_0x1feaad+_0x2ff612+_0x400a30(0xa7)+_0x458b4f),console['log'](_0x1feaad+_0x400a30(0xb0)+_0x26de97+'@'+_0x5a2ccb['version']+_0x458b4f),console[_0x400a30(0xc6)](_0x1feaad+_0x400a30(0xb1)+_0x7cf881+_0x458b4f),console['log'](_0x1feaad+'\x20\x20\x20Upgrade\x20command:\x20'+_0x2f776f+_0x458b4f),console[_0x400a30(0xc6)]();}
1
+ const a188_0x7b9647=a188_0x4f37;(function(_0x3f4a39,_0x2293a4){const _0x589c1d=a188_0x4f37,_0x2a88e5=_0x3f4a39();while(!![]){try{const _0x55575a=-parseInt(_0x589c1d(0xb3))/0x1+-parseInt(_0x589c1d(0xad))/0x2*(parseInt(_0x589c1d(0xa5))/0x3)+-parseInt(_0x589c1d(0x94))/0x4+-parseInt(_0x589c1d(0xb1))/0x5*(-parseInt(_0x589c1d(0xaa))/0x6)+parseInt(_0x589c1d(0x9c))/0x7+parseInt(_0x589c1d(0x95))/0x8+parseInt(_0x589c1d(0x9b))/0x9;if(_0x55575a===_0x2293a4)break;else _0x2a88e5['push'](_0x2a88e5['shift']());}catch(_0x1e8e56){_0x2a88e5['push'](_0x2a88e5['shift']());}}}(a188_0x2159,0x490a8));import a188_0x3beda4 from'node:fs';function a188_0x4f37(_0x22d397,_0x247cd5){_0x22d397=_0x22d397-0x90;const _0x2159a6=a188_0x2159();let _0x4f376f=_0x2159a6[_0x22d397];return _0x4f376f;}import a188_0x4de70b from'node:path';import a188_0x4e1927 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a188_0x7b9647(0xa3);function a188_0x2159(){const _0x3a6bf6=['\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','npm\x20install\x20','node','1.2.0','stableVersion','1126395QTBKBE','@lovrabet/sdk','parse','\x1b[33m','readFileSync','556716nXwBUN','\x20\x20\x20Upgrade\x20command:\x20','\x1b[0m','2BQqCLY','devDependencies','package.json','version','5dbFDke','join','479205sAXWyY','utf-8','existsSync','latest','packageName','utf8','dependencies','sdk','669552cxFtFs','3312728lWlDQF','test','\x1b[1m','needsUpgrade','all','coerce','3442824vPlDRu','3022747ErlGnI','log','node_modules'];a188_0x2159=function(){return _0x3a6bf6;};return a188_0x2159();}function isNonNumericVersion(_0x6547b){const _0x536543=a188_0x7b9647,_0x55c88b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x55c88b['some'](_0x1f52b8=>_0x1f52b8[_0x536543(0x96)](_0x6547b));}function getInstalledVersion(_0xb3a060,_0x131530){const _0x6b8060=a188_0x7b9647;try{const _0x2781db=a188_0x4de70b[_0x6b8060(0xb2)](_0xb3a060,_0x6b8060(0x9e),_0x131530,_0x6b8060(0xaf));if(a188_0x3beda4[_0x6b8060(0xb5)](_0x2781db)){const _0x55168b=JSON['parse'](a188_0x3beda4[_0x6b8060(0xa9)](_0x2781db,_0x6b8060(0xb4)));return _0x55168b[_0x6b8060(0xb0)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x69904f=a188_0x7b9647;try{const _0x3c635e=await getCdnConfig();return _0x3c635e?.[_0x69904f(0x93)]?.[_0x69904f(0xa2)]?.[_0x69904f(0xa4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x3290bf=a188_0x7b9647;try{const _0x3eaaef=await getCdnConfig();return _0x3eaaef?.[_0x3290bf(0x93)]?.[_0x3290bf(0xa2)]?.[_0x3290bf(0x90)]||_0x3290bf(0xa6);}catch{return _0x3290bf(0xa6);}}export async function checkSdkVersion(_0x4b9490){const _0xc9d7af=a188_0x7b9647,_0xaedfc7=a188_0x4de70b[_0xc9d7af(0xb2)](_0x4b9490,_0xc9d7af(0xaf)),[_0x174406,_0x6d20c6]=await Promise[_0xc9d7af(0x99)]([getSdkStableVersion(),getSdkPackageName()]),_0x404b8c=_0x174406||FALLBACK_MIN_SDK_VERSION;if(!a188_0x3beda4[_0xc9d7af(0xb5)](_0xaedfc7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};try{const _0x50cc61=JSON[_0xc9d7af(0xa7)](a188_0x3beda4['readFileSync'](_0xaedfc7,'utf8')),_0x289959=_0x50cc61[_0xc9d7af(0x92)]||{},_0x593d19=_0x50cc61[_0xc9d7af(0xae)]||{},_0x416ae9=_0x289959[_0x6d20c6]||_0x593d19[_0x6d20c6];if(!_0x416ae9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};let _0x46c487=getInstalledVersion(_0x4b9490,_0x6d20c6);!_0x46c487&&(_0x46c487=_0x416ae9);if(isNonNumericVersion(_0x416ae9))return{'installed':!![],'version':_0x46c487,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};const _0x597386=a188_0x4e1927[_0xc9d7af(0x9a)](_0x46c487),_0x42732e=a188_0x4e1927[_0xc9d7af(0x9a)](_0x404b8c),_0x312ec3=_0x597386&&_0x42732e?a188_0x4e1927['lt'](_0x597386,_0x42732e):![];return{'installed':!![],'version':_0x46c487,'needsUpgrade':_0x312ec3,'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x404b8c,'packageName':_0x6d20c6,'stableVersion':_0x174406};}}export function checkSdkVersionSync(_0x4a8d22){const _0x228ed0=a188_0x7b9647,_0x4f08fc=a188_0x4de70b['join'](_0x4a8d22,'package.json'),_0x2c9ea8=_0x228ed0(0xa6);if(!a188_0x3beda4['existsSync'](_0x4f08fc))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};try{const _0x296909=JSON[_0x228ed0(0xa7)](a188_0x3beda4[_0x228ed0(0xa9)](_0x4f08fc,_0x228ed0(0x91))),_0x470ef0=_0x296909[_0x228ed0(0x92)]||{},_0x37a56f=_0x296909['devDependencies']||{},_0x1ea474=_0x470ef0[_0x2c9ea8]||_0x37a56f[_0x2c9ea8];if(!_0x1ea474)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};let _0x331006=getInstalledVersion(_0x4a8d22,_0x2c9ea8);!_0x331006&&(_0x331006=_0x1ea474);if(isNonNumericVersion(_0x1ea474))return{'installed':!![],'version':_0x331006,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};const _0x4f4de6=a188_0x4e1927['coerce'](_0x331006),_0x447f09=_0x4f4de6?a188_0x4e1927['lt'](_0x4f4de6,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x331006,'needsUpgrade':_0x447f09,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x2c9ea8,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x330c5f){const _0x2eb483=a188_0x7b9647;if(!_0x330c5f[_0x2eb483(0x98)])return;const _0x3ee8c2=_0x2eb483(0xa8),_0x334d37=_0x2eb483(0xac),_0x244212=_0x2eb483(0x97),_0x5e21f5=_0x330c5f['packageName']||'@lovrabet/sdk',_0x558a44=_0x330c5f[_0x2eb483(0xa4)]||_0x330c5f['minVersion'],_0x272bcc=_0x2eb483(0xa1)+_0x5e21f5+'@'+(_0x558a44||_0x2eb483(0xb6));console[_0x2eb483(0x9d)](),console[_0x2eb483(0x9d)](''+_0x3ee8c2+_0x244212+'↪\x20SDK\x20update\x20available'+_0x334d37),console[_0x2eb483(0x9d)](_0x3ee8c2+_0x2eb483(0x9f)+_0x5e21f5+'@'+_0x330c5f[_0x2eb483(0xb0)]+_0x334d37),console['log'](_0x3ee8c2+_0x2eb483(0xa0)+_0x558a44+_0x334d37),console[_0x2eb483(0x9d)](_0x3ee8c2+_0x2eb483(0xab)+_0x272bcc+_0x334d37),console[_0x2eb483(0x9d)]();}
@@ -1 +1 @@
1
- (function(_0x401190,_0x521432){const _0x4d66dd=a189_0x4904,_0x3b4774=_0x401190();while(!![]){try{const _0x4de74a=-parseInt(_0x4d66dd(0xff))/0x1*(-parseInt(_0x4d66dd(0x113))/0x2)+-parseInt(_0x4d66dd(0x10a))/0x3*(-parseInt(_0x4d66dd(0xf0))/0x4)+-parseInt(_0x4d66dd(0x114))/0x5*(-parseInt(_0x4d66dd(0xf1))/0x6)+parseInt(_0x4d66dd(0xf7))/0x7+parseInt(_0x4d66dd(0x106))/0x8*(-parseInt(_0x4d66dd(0xed))/0x9)+parseInt(_0x4d66dd(0x103))/0xa+-parseInt(_0x4d66dd(0xe8))/0xb;if(_0x4de74a===_0x521432)break;else _0x3b4774['push'](_0x3b4774['shift']());}catch(_0x318d7b){_0x3b4774['push'](_0x3b4774['shift']());}}}(a189_0x1f92,0x5ec99));function a189_0x4904(_0x2098a0,_0x461c73){_0x2098a0=_0x2098a0-0xe8;const _0x1f92ea=a189_0x1f92();let _0x4904b6=_0x1f92ea[_0x2098a0];return _0x4904b6;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x40ccae from'semver';function a189_0x1f92(){const _0x4046d6=['package.json','version','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','1ATuuFM','filter','\x20\x20\x20Minimum\x20required:\x20','parse','4052690CdWpZW','↪\x20Critical\x20CLI\x20upgrade\x20required','minimumVersion','14216nmPUZa','needsUpgrade','currentVersion','join','558456ojdJmJ','\x1b[33m','coerce','↪\x20New\x20version\x20available','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','../..','\x20\x20\x20Recommended\x20stable:\x20','belowMinimum','1164658wXcAbZ','775eAjwRZ','27105606VzPVNz','\x1b[1m','latest','log','Minimum\x20required:\x20','27stoCnx','npm\x20install\x20-g\x20','minimumVersionMessage','12VDTArn','22782EOaUcz','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x1b[31m','validation','5061959VzZWMt','Upgrade\x20command:\x20','\x20\x20\x20','stableVersion'];a189_0x1f92=function(){return _0x4046d6;};return a189_0x1f92();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x39dc2b){const _0x50a727=a189_0x4904,_0x43bbd1=_0x39dc2b[_0x50a727(0xfa)]||_0x50a727(0xea);return _0x50a727(0xee)+NPM_PACKAGE_NAME+'@'+_0x43bbd1;}function getCurrentCliVersion(){const _0x2f5866=a189_0x4904;try{const _0x4d7d9d=fileURLToPath(import.meta.url),_0x239f50=resolve(dirname(_0x4d7d9d),_0x2f5866(0x110)),_0x2d9959=resolve(_0x239f50,_0x2f5866(0xfb)),_0x45dee4=JSON[_0x2f5866(0x102)](readFileSync(_0x2d9959,'utf-8'));return _0x45dee4[_0x2f5866(0xfc)]||_0x2f5866(0xf4);}catch{return _0x2f5866(0xf4);}}export async function checkCliVersion(){const _0x564332=a189_0x4904,_0x36b08e=getCurrentCliVersion(),_0x5c7e06=await getCliVersionPolicy(),_0x7f2a19=_0x5c7e06?.['stableVersion']||null,_0x1db926=_0x5c7e06?.[_0x564332(0x105)]||null;let _0x5957a7=![],_0xc3c180=![];const _0x3de502=a189_0x40ccae['coerce'](_0x36b08e);if(_0x3de502&&_0x7f2a19)try{const _0x7686e3=a189_0x40ccae[_0x564332(0x10c)](_0x7f2a19);if(_0x7686e3)_0x5957a7=a189_0x40ccae['lt'](_0x3de502,_0x7686e3);}catch{}if(_0x3de502&&_0x1db926)try{const _0x257b42=a189_0x40ccae[_0x564332(0x10c)](_0x1db926);if(_0x257b42)_0xc3c180=a189_0x40ccae['lt'](_0x3de502,_0x257b42);}catch{}return _0xc3c180&&(_0x5957a7=!![]),{'currentVersion':_0x36b08e,'stableVersion':_0x7f2a19,'minimumVersion':_0x1db926,'needsUpgrade':_0x5957a7,'belowMinimum':_0xc3c180,'isPreRelease':![],'upgradeMessage':_0x5c7e06?.[_0x564332(0xfe)],'minimumVersionMessage':_0x5c7e06?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x44baab){const _0xb69fc3=a189_0x4904;if(!_0x44baab[_0xb69fc3(0x107)]&&!_0x44baab[_0xb69fc3(0x112)])return;const _0x577e97=_0xb69fc3(0xf5),_0x4f099c=_0xb69fc3(0x10b),_0x20609e=_0xb69fc3(0x10f),_0x13d365=_0xb69fc3(0xe9),_0x2d865a=getCliUpgradeCommand(_0x44baab);console[_0xb69fc3(0xeb)](),_0x44baab[_0xb69fc3(0x112)]?(console[_0xb69fc3(0xeb)](''+_0x577e97+_0x13d365+_0xb69fc3(0x104)+_0x20609e),console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0xfd)+_0x44baab[_0xb69fc3(0x108)]+_0x20609e),_0x44baab[_0xb69fc3(0x105)]&&console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0x101)+_0x44baab[_0xb69fc3(0x105)]+_0x20609e),_0x44baab['stableVersion']&&_0x44baab['stableVersion']!==_0x44baab[_0xb69fc3(0x105)]&&console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0x111)+_0x44baab[_0xb69fc3(0xfa)]+_0x20609e),_0x44baab[_0xb69fc3(0xef)]&&console[_0xb69fc3(0xeb)](_0x577e97+'\x20\x20\x20'+_0x44baab['minimumVersionMessage']+_0x20609e),console[_0xb69fc3(0xeb)](_0x577e97+_0xb69fc3(0xf3)+_0x2d865a+_0x20609e)):(console['log'](''+_0x4f099c+_0x13d365+_0xb69fc3(0x10d)+_0x20609e),console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0xfd)+_0x44baab['currentVersion']+_0x20609e),console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0x10e)+_0x44baab['stableVersion']+_0x20609e),_0x44baab[_0xb69fc3(0xfe)]&&console[_0xb69fc3(0xeb)](_0x4f099c+_0xb69fc3(0xf9)+_0x44baab[_0xb69fc3(0xfe)]+_0x20609e),console['log'](_0x4f099c+_0xb69fc3(0xf3)+_0x2d865a+_0x20609e)),console[_0xb69fc3(0xeb)]();}export function assertCliVersionSupported(_0x2d4c01){const _0x56f2e2=a189_0x4904;if(!_0x2d4c01[_0x56f2e2(0x112)])return;const _0x2f1ab8=[_0x2d4c01['minimumVersionMessage'],'Current\x20version:\x20'+_0x2d4c01[_0x56f2e2(0x108)],_0x2d4c01[_0x56f2e2(0x105)]?_0x56f2e2(0xec)+_0x2d4c01['minimumVersion']:null,_0x56f2e2(0xf8)+getCliUpgradeCommand(_0x2d4c01)][_0x56f2e2(0x100)](Boolean)[_0x56f2e2(0x109)]('\x0a');throw CliErrors[_0x56f2e2(0xf6)](_0x56f2e2(0xf2),_0x2f1ab8);}
1
+ (function(_0xd84a43,_0x4d2d85){const _0x241b09=a189_0x2519,_0x439101=_0xd84a43();while(!![]){try{const _0x556ac0=-parseInt(_0x241b09(0xe1))/0x1+-parseInt(_0x241b09(0xfa))/0x2*(-parseInt(_0x241b09(0xe3))/0x3)+parseInt(_0x241b09(0xe2))/0x4+parseInt(_0x241b09(0xf3))/0x5+parseInt(_0x241b09(0xf6))/0x6+-parseInt(_0x241b09(0xf2))/0x7+parseInt(_0x241b09(0xf5))/0x8;if(_0x556ac0===_0x4d2d85)break;else _0x439101['push'](_0x439101['shift']());}catch(_0x113dba){_0x439101['push'](_0x439101['shift']());}}}(a189_0x4f31,0xf1427));function a189_0x2519(_0x4ca0f1,_0x380afc){_0x4ca0f1=_0x4ca0f1-0xe0;const _0x4f31d4=a189_0x4f31();let _0x25194f=_0x4f31d4[_0x4ca0f1];return _0x25194f;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a189_0x582fee 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(_0x4c37c5){const _0xa27a99=a189_0x2519,_0x1c6ed9=_0x4c37c5['stableVersion']||_0xa27a99(0x100);return _0xa27a99(0xec)+NPM_PACKAGE_NAME+'@'+_0x1c6ed9;}function getCurrentCliVersion(){const _0x4ad0a5=a189_0x2519;try{const _0x10d07b=fileURLToPath(import.meta.url),_0x57eed3=resolve(dirname(_0x10d07b),_0x4ad0a5(0xe9)),_0x4ed595=resolve(_0x57eed3,'package.json'),_0x3f7e50=JSON[_0x4ad0a5(0xed)](readFileSync(_0x4ed595,_0x4ad0a5(0x101)));return _0x3f7e50[_0x4ad0a5(0xe6)]||_0x4ad0a5(0x107);}catch{return _0x4ad0a5(0x107);}}export async function checkCliVersion(){const _0x134ea1=a189_0x2519,_0x427eac=getCurrentCliVersion(),_0x32804f=await getCliVersionPolicy(),_0x3fcdd3=_0x32804f?.['stableVersion']||null,_0x8921a0=_0x32804f?.[_0x134ea1(0xf7)]||null;let _0x439030=![],_0x41d889=![];const _0x402da4=a189_0x582fee[_0x134ea1(0xe7)](_0x427eac);if(_0x402da4&&_0x3fcdd3)try{const _0x3e0440=a189_0x582fee[_0x134ea1(0xe7)](_0x3fcdd3);if(_0x3e0440)_0x439030=a189_0x582fee['lt'](_0x402da4,_0x3e0440);}catch{}if(_0x402da4&&_0x8921a0)try{const _0x307e86=a189_0x582fee[_0x134ea1(0xe7)](_0x8921a0);if(_0x307e86)_0x41d889=a189_0x582fee['lt'](_0x402da4,_0x307e86);}catch{}return _0x41d889&&(_0x439030=!![]),{'currentVersion':_0x427eac,'stableVersion':_0x3fcdd3,'minimumVersion':_0x8921a0,'needsUpgrade':_0x439030,'belowMinimum':_0x41d889,'isPreRelease':![],'upgradeMessage':_0x32804f?.[_0x134ea1(0xf8)],'minimumVersionMessage':_0x32804f?.[_0x134ea1(0x102)]};}function a189_0x4f31(){const _0x1bedbd=['\x20\x20\x20Stable\x20version:\x20','latest','utf-8','minimumVersionMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','belowMinimum','↪\x20Critical\x20CLI\x20upgrade\x20required','\x20\x20\x20Upgrade\x20command:\x20','1.0.0','\x20\x20\x20','1972098OnwEzn','1511136KGgRLk','9VtRogo','currentVersion','\x1b[1m','version','coerce','\x20\x20\x20Minimum\x20required:\x20','../..','filter','Minimum\x20required:\x20','npm\x20install\x20-g\x20','parse','needsUpgrade','\x1b[0m','\x1b[33m','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','9611420WtJGxc','7046165wBPmhS','stableVersion','4527208fJHFVy','9168828YErVNX','minimumVersion','upgradeMessage','\x1b[31m','301534SOrroN','log','Upgrade\x20command:\x20','validation','\x20\x20\x20Recommended\x20stable:\x20'];a189_0x4f31=function(){return _0x1bedbd;};return a189_0x4f31();}export function printCliUpgradeWarning(_0x319f28){const _0x3043a6=a189_0x2519;if(!_0x319f28[_0x3043a6(0xee)]&&!_0x319f28['belowMinimum'])return;const _0x2a50ed=_0x3043a6(0xf9),_0x28254e=_0x3043a6(0xf0),_0x299895=_0x3043a6(0xef),_0x4f9b53=_0x3043a6(0xe5),_0x5619fb=getCliUpgradeCommand(_0x319f28);console[_0x3043a6(0xfb)](),_0x319f28[_0x3043a6(0x104)]?(console[_0x3043a6(0xfb)](''+_0x2a50ed+_0x4f9b53+_0x3043a6(0x105)+_0x299895),console['log'](_0x2a50ed+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x319f28[_0x3043a6(0xe4)]+_0x299895),_0x319f28['minimumVersion']&&console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0xe8)+_0x319f28[_0x3043a6(0xf7)]+_0x299895),_0x319f28[_0x3043a6(0xf4)]&&_0x319f28['stableVersion']!==_0x319f28[_0x3043a6(0xf7)]&&console['log'](_0x2a50ed+_0x3043a6(0xfe)+_0x319f28['stableVersion']+_0x299895),_0x319f28['minimumVersionMessage']&&console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0xe0)+_0x319f28['minimumVersionMessage']+_0x299895),console[_0x3043a6(0xfb)](_0x2a50ed+_0x3043a6(0x106)+_0x5619fb+_0x299895)):(console[_0x3043a6(0xfb)](''+_0x28254e+_0x4f9b53+'↪\x20New\x20version\x20available'+_0x299895),console['log'](_0x28254e+_0x3043a6(0x103)+_0x319f28[_0x3043a6(0xe4)]+_0x299895),console[_0x3043a6(0xfb)](_0x28254e+_0x3043a6(0xff)+_0x319f28[_0x3043a6(0xf4)]+_0x299895),_0x319f28[_0x3043a6(0xf8)]&&console['log'](_0x28254e+_0x3043a6(0xe0)+_0x319f28[_0x3043a6(0xf8)]+_0x299895),console[_0x3043a6(0xfb)](_0x28254e+_0x3043a6(0x106)+_0x5619fb+_0x299895)),console[_0x3043a6(0xfb)]();}export function assertCliVersionSupported(_0xe1ef26){const _0x423f2a=a189_0x2519;if(!_0xe1ef26[_0x423f2a(0x104)])return;const _0x5f31f2=[_0xe1ef26[_0x423f2a(0x102)],'Current\x20version:\x20'+_0xe1ef26[_0x423f2a(0xe4)],_0xe1ef26['minimumVersion']?_0x423f2a(0xeb)+_0xe1ef26[_0x423f2a(0xf7)]:null,_0x423f2a(0xfc)+getCliUpgradeCommand(_0xe1ef26)][_0x423f2a(0xea)](Boolean)['join']('\x0a');throw CliErrors[_0x423f2a(0xfd)](_0x423f2a(0xf1),_0x5f31f2);}
@@ -1 +1 @@
1
- function a190_0x2700(){const _0x41700=['398387xxqWQa','minimumVersionMessage','signal','6430ZmHYwU','3753jaNWDh','minimumVersion','recommendedVersion','abort','439172ZAyOkW','121824srJbcq','93846HYMMlj','96tOHzlW','application/json','3SbZqtC','json','upgradeMessage','15472pKsDAu','155ZjyvCg','2998980BJSewl','329vDAfNM','now','object','trim','cli'];a190_0x2700=function(){return _0x41700;};return a190_0x2700();}(function(_0x434ac1,_0x5459a9){const _0x2fc6bf=a190_0x259f,_0x152ff8=_0x434ac1();while(!![]){try{const _0x23987e=parseInt(_0x2fc6bf(0xc8))/0x1+-parseInt(_0x2fc6bf(0xc7))/0x2*(-parseInt(_0x2fc6bf(0xb4))/0x3)+parseInt(_0x2fc6bf(0xb9))/0x4+parseInt(_0x2fc6bf(0xb8))/0x5*(-parseInt(_0x2fc6bf(0xc9))/0x6)+parseInt(_0x2fc6bf(0xba))/0x7*(-parseInt(_0x2fc6bf(0xb7))/0x8)+-parseInt(_0x2fc6bf(0xc3))/0x9*(parseInt(_0x2fc6bf(0xc2))/0xa)+parseInt(_0x2fc6bf(0xbf))/0xb*(parseInt(_0x2fc6bf(0xca))/0xc);if(_0x23987e===_0x5459a9)break;else _0x152ff8['push'](_0x152ff8['shift']());}catch(_0x4f2b31){_0x152ff8['push'](_0x152ff8['shift']());}}}(a190_0x2700,0x8319f));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 a190_0x259f(_0x1c96b8,_0x3bc56c){_0x1c96b8=_0x1c96b8-0xb3;const _0x27006f=a190_0x2700();let _0x259f78=_0x27006f[_0x1c96b8];return _0x259f78;}function pickString(_0x1b3838){const _0x113e52=a190_0x259f;return typeof _0x1b3838==='string'&&_0x1b3838[_0x113e52(0xbd)]()['length']>0x0?_0x1b3838[_0x113e52(0xbd)]():null;}function normalizeCliVersionPolicy(_0x5306b7){const _0x360780=a190_0x259f;if(!_0x5306b7||typeof _0x5306b7!==_0x360780(0xbc))return null;const _0x2631e8=_0x5306b7,_0x34c0f7=_0x2631e8['cli']&&typeof _0x2631e8[_0x360780(0xbe)]==='object'?_0x2631e8[_0x360780(0xbe)]:_0x2631e8,_0x408315=pickString(_0x34c0f7['stableVersion'])||pickString(_0x34c0f7['latestVersion'])||pickString(_0x34c0f7[_0x360780(0xc5)]),_0x5f5bde=pickString(_0x34c0f7[_0x360780(0xc4)])||pickString(_0x34c0f7['minVersion']);if(!_0x408315&&!_0x5f5bde)return null;return{'stableVersion':_0x408315,'minimumVersion':_0x5f5bde,'upgradeMessage':pickString(_0x34c0f7[_0x360780(0xb6)])||undefined,'minimumVersionMessage':pickString(_0x34c0f7[_0x360780(0xc0)])||undefined};}export async function fetchCliVersionPolicy(){const _0x373ccf=a190_0x259f,_0x19e89c=new AbortController(),_0x1abcb2=setTimeout(()=>_0x19e89c[_0x373ccf(0xc6)](),FETCH_TIMEOUT_MS);try{const _0xf973e9=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x373ccf(0xb3)},'signal':_0x19e89c[_0x373ccf(0xc1)]});if(!_0xf973e9['ok'])return null;const _0x226de4=await _0xf973e9[_0x373ccf(0xb5)]();return normalizeCliVersionPolicy(_0x226de4);}catch{return null;}finally{clearTimeout(_0x1abcb2);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3c6858=a190_0x259f,_0x5e36d3=Date[_0x3c6858(0xbb)]();if(hasCachedPolicy){const _0x47588c=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5e36d3-cacheTime<_0x47588c)return cachedPolicy;}const _0x1c8fb7=await fetchCliVersionPolicy();return cachedPolicy=_0x1c8fb7,cacheTime=_0x5e36d3,hasCachedPolicy=!![],_0x1c8fb7;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a190_0x59ca(){const _0x23e3ee=['signal','21wBKHSq','minimumVersion','abort','477EHpeVq','4MpCqJB','application/json','46432HGWFaC','length','46698OILJdc','879075GDTuwf','stableVersion','json','object','1530438JrvyjI','latestVersion','245330PeHVgB','trim','recommendedVersion','minimumVersionMessage','string','457681groqAG','1092621cNkehH','upgradeMessage'];a190_0x59ca=function(){return _0x23e3ee;};return a190_0x59ca();}(function(_0x4c2e9a,_0x4fc082){const _0x14ac82=a190_0x53f2,_0x575f54=_0x4c2e9a();while(!![]){try{const _0x24716e=parseInt(_0x14ac82(0x186))/0x1*(parseInt(_0x14ac82(0x18e))/0x2)+-parseInt(_0x14ac82(0x183))/0x3*(parseInt(_0x14ac82(0x18a))/0x4)+parseInt(_0x14ac82(0x18f))/0x5+parseInt(_0x14ac82(0x193))/0x6+parseInt(_0x14ac82(0x182))/0x7+parseInt(_0x14ac82(0x18c))/0x8*(-parseInt(_0x14ac82(0x189))/0x9)+parseInt(_0x14ac82(0x195))/0xa;if(_0x24716e===_0x4fc082)break;else _0x575f54['push'](_0x575f54['shift']());}catch(_0x56a6f6){_0x575f54['push'](_0x575f54['shift']());}}}(a190_0x59ca,0x52d72));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(_0x41d036){const _0x3bc329=a190_0x53f2;return typeof _0x41d036===_0x3bc329(0x181)&&_0x41d036['trim']()[_0x3bc329(0x18d)]>0x0?_0x41d036[_0x3bc329(0x196)]():null;}function a190_0x53f2(_0x5e44b3,_0x5b519f){_0x5e44b3=_0x5e44b3-0x17f;const _0x59ca0a=a190_0x59ca();let _0x53f21e=_0x59ca0a[_0x5e44b3];return _0x53f21e;}function normalizeCliVersionPolicy(_0x124585){const _0x22db69=a190_0x53f2;if(!_0x124585||typeof _0x124585!==_0x22db69(0x192))return null;const _0x34ae5a=_0x124585,_0x22e8c2=_0x34ae5a['cli']&&typeof _0x34ae5a['cli']===_0x22db69(0x192)?_0x34ae5a['cli']:_0x34ae5a,_0x3f879d=pickString(_0x22e8c2[_0x22db69(0x190)])||pickString(_0x22e8c2[_0x22db69(0x194)])||pickString(_0x22e8c2[_0x22db69(0x17f)]),_0x4e915c=pickString(_0x22e8c2[_0x22db69(0x187)])||pickString(_0x22e8c2['minVersion']);if(!_0x3f879d&&!_0x4e915c)return null;return{'stableVersion':_0x3f879d,'minimumVersion':_0x4e915c,'upgradeMessage':pickString(_0x22e8c2[_0x22db69(0x184)])||undefined,'minimumVersionMessage':pickString(_0x22e8c2[_0x22db69(0x180)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1257dc=a190_0x53f2,_0x69c5aa=new AbortController(),_0x4f3f0b=setTimeout(()=>_0x69c5aa[_0x1257dc(0x188)](),FETCH_TIMEOUT_MS);try{const _0x4c1de5=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x1257dc(0x18b)},'signal':_0x69c5aa[_0x1257dc(0x185)]});if(!_0x4c1de5['ok'])return null;const _0x212f9a=await _0x4c1de5[_0x1257dc(0x191)]();return normalizeCliVersionPolicy(_0x212f9a);}catch{return null;}finally{clearTimeout(_0x4f3f0b);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3e4d62=Date['now']();if(hasCachedPolicy){const _0x15b7f3=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x3e4d62-cacheTime<_0x15b7f3)return cachedPolicy;}const _0x37e1f1=await fetchCliVersionPolicy();return cachedPolicy=_0x37e1f1,cacheTime=_0x3e4d62,hasCachedPolicy=!![],_0x37e1f1;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a191_0xd9794d=a191_0x141d;(function(_0x3799be,_0xfc6dbf){const _0x586735=a191_0x141d,_0x45351d=_0x3799be();while(!![]){try{const _0x2e7bed=-parseInt(_0x586735(0x161))/0x1*(-parseInt(_0x586735(0x163))/0x2)+-parseInt(_0x586735(0x169))/0x3+-parseInt(_0x586735(0x15d))/0x4+parseInt(_0x586735(0x167))/0x5*(parseInt(_0x586735(0x15f))/0x6)+-parseInt(_0x586735(0x162))/0x7+-parseInt(_0x586735(0x160))/0x8*(-parseInt(_0x586735(0x168))/0x9)+parseInt(_0x586735(0x164))/0xa;if(_0x2e7bed===_0xfc6dbf)break;else _0x45351d['push'](_0x45351d['shift']());}catch(_0x38057b){_0x45351d['push'](_0x45351d['shift']());}}}(a191_0x575b,0xbdbb1));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x4836d7,getMultiAppConfigs as a191_0x4c9997,getTemplateBaseUrl as a191_0x5b4a5b}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a191_0x575b(){const _0x3fcd93=['8128tbnIni','10673KhrFYO','10315956etoINI','82BdrWRN','16696320xEPpqb','string','project','15ZtzAky','6417DvpHIY','3914085bWuntz','2316368WzsjOO','env','2605998clHIrO'];a191_0x575b=function(){return _0x3fcd93;};return a191_0x575b();}function a191_0x141d(_0x5ba063,_0x505982){_0x5ba063=_0x5ba063-0x15d;const _0x575bd0=a191_0x575b();let _0x141de0=_0x575bd0[_0x5ba063];return _0x141de0;}export{isInProject}from'../context.js';export function readConfig(_0x46a2d3){const _0x410c17=a191_0x141d,_0x2bb4a7=readRawConfig(_0x46a2d3);return _0x2bb4a7[_0x410c17(0x15e)]&&typeof _0x2bb4a7[_0x410c17(0x15e)]===_0x410c17(0x165)&&initEnv(_0x2bb4a7[_0x410c17(0x15e)]),_0x2bb4a7;}export function getConfigAppCode(){return a191_0x4836d7();}export function getMultiAppConfigs(_0x1bc272=a191_0xd9794d(0x166)){return a191_0x4c9997(_0x1bc272);}export function getTemplateBaseUrl(){return a191_0x5b4a5b();}
1
+ function a191_0x315d(_0x1ed189,_0x10ba55){_0x1ed189=_0x1ed189-0x1d0;const _0x10decc=a191_0x10de();let _0x315d7d=_0x10decc[_0x1ed189];return _0x315d7d;}const a191_0x473702=a191_0x315d;(function(_0x507cad,_0x470e71){const _0x3b4695=a191_0x315d,_0x55752e=_0x507cad();while(!![]){try{const _0x127b5b=-parseInt(_0x3b4695(0x1d4))/0x1*(-parseInt(_0x3b4695(0x1d3))/0x2)+parseInt(_0x3b4695(0x1d0))/0x3*(-parseInt(_0x3b4695(0x1d1))/0x4)+-parseInt(_0x3b4695(0x1d2))/0x5+parseInt(_0x3b4695(0x1d6))/0x6+parseInt(_0x3b4695(0x1da))/0x7+parseInt(_0x3b4695(0x1db))/0x8*(parseInt(_0x3b4695(0x1d8))/0x9)+parseInt(_0x3b4695(0x1d9))/0xa*(-parseInt(_0x3b4695(0x1dd))/0xb);if(_0x127b5b===_0x470e71)break;else _0x55752e['push'](_0x55752e['shift']());}catch(_0x3bb827){_0x55752e['push'](_0x55752e['shift']());}}}(a191_0x10de,0xcc1bf));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a191_0x2c7234,getMultiAppConfigs as a191_0x5903f3,getTemplateBaseUrl as a191_0x2e2d16}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x32dba7){const _0x404a98=a191_0x315d,_0x499661=readRawConfig(_0x32dba7);return _0x499661[_0x404a98(0x1dc)]&&typeof _0x499661[_0x404a98(0x1dc)]===_0x404a98(0x1d7)&&initEnv(_0x499661[_0x404a98(0x1dc)]),_0x499661;}export function getConfigAppCode(){return a191_0x2c7234();}function a191_0x10de(){const _0x23c809=['project','6645492Tyczzb','string','9YbwsXE','10YnwpJw','6768762vvHTZt','1063064HkiTjR','env','5937602jUmNOh','2259291nkKfNe','4udhigw','729050jQEFaa','2hEOSSH','67289yYPHzU'];a191_0x10de=function(){return _0x23c809;};return a191_0x10de();}export function getMultiAppConfigs(_0x511b20=a191_0x473702(0x1d5)){return a191_0x5903f3(_0x511b20);}export function getTemplateBaseUrl(){return a191_0x2e2d16();}
@@ -1 +1 @@
1
- (function(_0x4f5445,_0x1377cd){const _0x59b5d9=a192_0xfbe4,_0x5417c8=_0x4f5445();while(!![]){try{const _0x477b07=-parseInt(_0x59b5d9(0x1e3))/0x1+-parseInt(_0x59b5d9(0x1ed))/0x2*(parseInt(_0x59b5d9(0x1e9))/0x3)+parseInt(_0x59b5d9(0x1ea))/0x4*(-parseInt(_0x59b5d9(0x1ec))/0x5)+-parseInt(_0x59b5d9(0x1e6))/0x6*(parseInt(_0x59b5d9(0x1f0))/0x7)+parseInt(_0x59b5d9(0x1f1))/0x8*(parseInt(_0x59b5d9(0x1e8))/0x9)+-parseInt(_0x59b5d9(0x1e4))/0xa*(-parseInt(_0x59b5d9(0x1f4))/0xb)+parseInt(_0x59b5d9(0x1ef))/0xc;if(_0x477b07===_0x1377cd)break;else _0x5417c8['push'](_0x5417c8['shift']());}catch(_0x3231b3){_0x5417c8['push'](_0x5417c8['shift']());}}}(a192_0x3c4d,0x5da9b));function a192_0x3c4d(){const _0x1c0c15=['135348oCKsaJ','join','5LEqufA','399214kSfbyK','name','9084516dOdpEb','7eGIBem','16nbmBeG','isDirectory','copyFileSync','33EXgiSl','54933REPvle','311970zLJmXG','复制目录时出错:','266178pbWJra','error','294102hdEYRi','6XmsJUR'];a192_0x3c4d=function(){return _0x1c0c15;};return a192_0x3c4d();}import a192_0x562f78 from'node:path';function a192_0xfbe4(_0x22d532,_0x3b4e3e){_0x22d532=_0x22d532-0x1e3;const _0x3c4d59=a192_0x3c4d();let _0xfbe4b7=_0x3c4d59[_0x22d532];return _0xfbe4b7;}import a192_0x442d93 from'node:fs';export async function copyDirectory(_0x482c3a,_0x3ea0c1){const _0x2879f8=a192_0xfbe4;try{const _0x3e2c30=a192_0x442d93['readdirSync'](_0x482c3a,{'withFileTypes':!![]});a192_0x442d93['mkdirSync'](_0x3ea0c1,{'recursive':!![]});for(const _0x17b806 of _0x3e2c30){const _0x58fbf7=a192_0x562f78[_0x2879f8(0x1eb)](_0x482c3a,_0x17b806[_0x2879f8(0x1ee)]),_0x285b54=a192_0x562f78[_0x2879f8(0x1eb)](_0x3ea0c1,_0x17b806[_0x2879f8(0x1ee)]);_0x17b806[_0x2879f8(0x1f2)]()?await copyDirectory(_0x58fbf7,_0x285b54):a192_0x442d93[_0x2879f8(0x1f3)](_0x58fbf7,_0x285b54);}}catch(_0x2c93b7){console[_0x2879f8(0x1e7)](_0x2879f8(0x1e5),_0x2c93b7);}}
1
+ function a192_0x180b(_0x543060,_0x528854){_0x543060=_0x543060-0x1c3;const _0x1f5710=a192_0x1f57();let _0x180be4=_0x1f5710[_0x543060];return _0x180be4;}(function(_0x3033a3,_0x7dec5e){const _0x5d5a1d=a192_0x180b,_0x45caba=_0x3033a3();while(!![]){try{const _0x8bedde=-parseInt(_0x5d5a1d(0x1c4))/0x1+-parseInt(_0x5d5a1d(0x1cc))/0x2+-parseInt(_0x5d5a1d(0x1ce))/0x3+parseInt(_0x5d5a1d(0x1cb))/0x4+-parseInt(_0x5d5a1d(0x1c5))/0x5+parseInt(_0x5d5a1d(0x1cf))/0x6+parseInt(_0x5d5a1d(0x1c8))/0x7;if(_0x8bedde===_0x7dec5e)break;else _0x45caba['push'](_0x45caba['shift']());}catch(_0x2c99e8){_0x45caba['push'](_0x45caba['shift']());}}}(a192_0x1f57,0x77f84));import a192_0x1a643c from'node:path';function a192_0x1f57(){const _0xf45993=['isDirectory','copyFileSync','202852DIYQCS','4688820hctJrC','join','readdirSync','13263859vbvFzj','name','error','428036qYBHMy','1266218SzfOpV','mkdirSync','622986ADlhYQ','2825622tfvVNS'];a192_0x1f57=function(){return _0xf45993;};return a192_0x1f57();}import a192_0x388cb7 from'node:fs';export async function copyDirectory(_0x469dfd,_0x3ec6d1){const _0x2960af=a192_0x180b;try{const _0x22cb0d=a192_0x388cb7[_0x2960af(0x1c7)](_0x469dfd,{'withFileTypes':!![]});a192_0x388cb7[_0x2960af(0x1cd)](_0x3ec6d1,{'recursive':!![]});for(const _0xc86a6c of _0x22cb0d){const _0x3e12a4=a192_0x1a643c[_0x2960af(0x1c6)](_0x469dfd,_0xc86a6c[_0x2960af(0x1c9)]),_0xacabb8=a192_0x1a643c[_0x2960af(0x1c6)](_0x3ec6d1,_0xc86a6c[_0x2960af(0x1c9)]);_0xc86a6c[_0x2960af(0x1d0)]()?await copyDirectory(_0x3e12a4,_0xacabb8):a192_0x388cb7[_0x2960af(0x1c3)](_0x3e12a4,_0xacabb8);}}catch(_0x6ec5d2){console[_0x2960af(0x1ca)]('复制目录时出错:',_0x6ec5d2);}}
@@ -1 +1 @@
1
- (function(_0x2935e8,_0x1dd042){const _0x5894af=a193_0x1646,_0x5abeab=_0x2935e8();while(!![]){try{const _0x5340ed=-parseInt(_0x5894af(0x8d))/0x1*(-parseInt(_0x5894af(0x8e))/0x2)+parseInt(_0x5894af(0x86))/0x3+-parseInt(_0x5894af(0x88))/0x4*(parseInt(_0x5894af(0x87))/0x5)+-parseInt(_0x5894af(0x8c))/0x6+parseInt(_0x5894af(0x82))/0x7+parseInt(_0x5894af(0x84))/0x8+-parseInt(_0x5894af(0x89))/0x9;if(_0x5340ed===_0x1dd042)break;else _0x5abeab['push'](_0x5abeab['shift']());}catch(_0x1993b5){_0x5abeab['push'](_0x5abeab['shift']());}}}(a193_0xa9f3,0xa4247));function toFiniteNumber(_0x2d691d){const _0x3189e6=a193_0x1646;if(typeof _0x2d691d===_0x3189e6(0x8a)&&Number[_0x3189e6(0x8b)](_0x2d691d))return _0x2d691d;if(typeof _0x2d691d===_0x3189e6(0x83)){const _0x3a5587=_0x2d691d[_0x3189e6(0x85)]();if(!_0x3a5587)return undefined;const _0x5e3dc0=Number(_0x3a5587);if(Number[_0x3189e6(0x8b)](_0x5e3dc0))return _0x5e3dc0;}return undefined;}export function normalizeEntityWithIdResponse(_0x531e11){const _0x555f69=a193_0x1646,_0x3b8d8a=toFiniteNumber(_0x531e11);if(_0x3b8d8a!==undefined)return{'id':_0x3b8d8a,'entity':{'id':_0x3b8d8a}};if(!_0x531e11||typeof _0x531e11!==_0x555f69(0x8f))return{'id':undefined,'entity':{}};const _0x1b319d={..._0x531e11},_0x4919ae=toFiniteNumber(_0x1b319d['id']);return _0x4919ae!==undefined&&(_0x1b319d['id']=_0x4919ae),{'id':_0x4919ae,'entity':_0x1b319d};}function a193_0x1646(_0x2fefcd,_0x59ee0b){_0x2fefcd=_0x2fefcd-0x82;const _0xa9f3e1=a193_0xa9f3();let _0x1646be=_0xa9f3e1[_0x2fefcd];return _0x1646be;}function a193_0xa9f3(){const _0x3954fe=['string','2168304KQRZok','trim','2367615CkfaGl','748780zdfERX','12GowrVp','10909566frRdkW','number','isFinite','1070982KLwOhn','1250668qGEwQu','2SZFIIf','object','1409485emUPYV'];a193_0xa9f3=function(){return _0x3954fe;};return a193_0xa9f3();}
1
+ function a193_0x1c92(_0x1def31,_0xaeb59b){_0x1def31=_0x1def31-0x1ac;const _0x2529f9=a193_0x2529();let _0x1c9288=_0x2529f9[_0x1def31];return _0x1c9288;}(function(_0x8d49c3,_0x59fbe6){const _0x21a625=a193_0x1c92,_0xecb58e=_0x8d49c3();while(!![]){try{const _0xc0d391=parseInt(_0x21a625(0x1ae))/0x1+-parseInt(_0x21a625(0x1b4))/0x2+parseInt(_0x21a625(0x1b2))/0x3+-parseInt(_0x21a625(0x1b5))/0x4+parseInt(_0x21a625(0x1ac))/0x5+parseInt(_0x21a625(0x1ad))/0x6*(parseInt(_0x21a625(0x1af))/0x7)+parseInt(_0x21a625(0x1b7))/0x8*(-parseInt(_0x21a625(0x1b8))/0x9);if(_0xc0d391===_0x59fbe6)break;else _0xecb58e['push'](_0xecb58e['shift']());}catch(_0xf32c6){_0xecb58e['push'](_0xecb58e['shift']());}}}(a193_0x2529,0x5da06));function a193_0x2529(){const _0x5c8954=['378444pNNoRl','2427180HMLlHK','isFinite','504DLfFwg','32247sQifIp','3243485yxQbRW','66XzWxpO','67555uNwttm','274442zCHZEn','string','object','773166qXeOVL','number'];a193_0x2529=function(){return _0x5c8954;};return a193_0x2529();}function toFiniteNumber(_0x20e966){const _0x1a84a2=a193_0x1c92;if(typeof _0x20e966===_0x1a84a2(0x1b3)&&Number[_0x1a84a2(0x1b6)](_0x20e966))return _0x20e966;if(typeof _0x20e966===_0x1a84a2(0x1b0)){const _0x2e0a44=_0x20e966['trim']();if(!_0x2e0a44)return undefined;const _0x9def55=Number(_0x2e0a44);if(Number[_0x1a84a2(0x1b6)](_0x9def55))return _0x9def55;}return undefined;}export function normalizeEntityWithIdResponse(_0x146618){const _0x458de0=a193_0x1c92,_0x1594e3=toFiniteNumber(_0x146618);if(_0x1594e3!==undefined)return{'id':_0x1594e3,'entity':{'id':_0x1594e3}};if(!_0x146618||typeof _0x146618!==_0x458de0(0x1b1))return{'id':undefined,'entity':{}};const _0x140d26={..._0x146618},_0x88e649=toFiniteNumber(_0x140d26['id']);return _0x88e649!==undefined&&(_0x140d26['id']=_0x88e649),{'id':_0x88e649,'entity':_0x140d26};}
@@ -1 +1 @@
1
- (function(_0x1fbe82,_0x138b7b){const _0x3cb36f=a194_0x1af7,_0x4d2650=_0x1fbe82();while(!![]){try{const _0x5d9fea=parseInt(_0x3cb36f(0x15e))/0x1+parseInt(_0x3cb36f(0x15c))/0x2*(-parseInt(_0x3cb36f(0x15b))/0x3)+parseInt(_0x3cb36f(0x160))/0x4+parseInt(_0x3cb36f(0x162))/0x5+-parseInt(_0x3cb36f(0x15f))/0x6*(parseInt(_0x3cb36f(0x163))/0x7)+-parseInt(_0x3cb36f(0x161))/0x8+parseInt(_0x3cb36f(0x15d))/0x9;if(_0x5d9fea===_0x138b7b)break;else _0x4d2650['push'](_0x4d2650['shift']());}catch(_0xb28908){_0x4d2650['push'](_0x4d2650['shift']());}}}(a194_0x5dcb,0x9a536));function a194_0x1af7(_0x76658f,_0x2266f7){_0x76658f=_0x76658f-0x15b;const _0x5dcb31=a194_0x5dcb();let _0x1af7ba=_0x5dcb31[_0x76658f];return _0x1af7ba;}function a194_0x5dcb(){const _0x523afc=['6uxvutp','2184512nYmgGE','7330904yErNvo','4739890PakZTL','1081220MwEiKe','2792007vrIeAb','2ORpTuU','1884681BFssLl','930095xgqPPf'];a194_0x5dcb=function(){return _0x523afc;};return a194_0x5dcb();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x23cc4e,_0x4ec4eb){const _0x212714=statSync(_0x23cc4e);if(_0x212714['isDirectory']()){!existsSync(_0x4ec4eb)&&mkdirSync(_0x4ec4eb,{'recursive':!![]});const _0x4ba104=readdirSync(_0x23cc4e);for(const _0x5b6115 of _0x4ba104){await copyDir(join(_0x23cc4e,_0x5b6115),join(_0x4ec4eb,_0x5b6115));}}else copyFileSync(_0x23cc4e,_0x4ec4eb);}export function ensureDir(_0x5999c9){!existsSync(_0x5999c9)&&mkdirSync(_0x5999c9,{'recursive':!![]});}export function pathExists(_0x35f670){return existsSync(_0x35f670);}
1
+ function a194_0x4696(_0x2ae5fb,_0x30f5c5){_0x2ae5fb=_0x2ae5fb-0xff;const _0x3071d2=a194_0x3071();let _0x4696dc=_0x3071d2[_0x2ae5fb];return _0x4696dc;}(function(_0x1c61eb,_0x118996){const _0x249eaa=a194_0x4696,_0x2cc34d=_0x1c61eb();while(!![]){try{const _0x592a3b=-parseInt(_0x249eaa(0x106))/0x1*(-parseInt(_0x249eaa(0x105))/0x2)+parseInt(_0x249eaa(0x108))/0x3+-parseInt(_0x249eaa(0x107))/0x4+parseInt(_0x249eaa(0x102))/0x5*(-parseInt(_0x249eaa(0x104))/0x6)+-parseInt(_0x249eaa(0x103))/0x7*(parseInt(_0x249eaa(0x101))/0x8)+parseInt(_0x249eaa(0x100))/0x9+parseInt(_0x249eaa(0xff))/0xa;if(_0x592a3b===_0x118996)break;else _0x2cc34d['push'](_0x2cc34d['shift']());}catch(_0x1736f5){_0x2cc34d['push'](_0x2cc34d['shift']());}}}(a194_0x3071,0xe8751));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a194_0x3071(){const _0x4ab2ce=['2344122HFgELb','15127704WaykgI','1565UUSIIK','7ztqJeH','10254Trweme','4GRhYYa','611749HqgQlK','3070668evrIjJ','4226502qvGbar','12529020Fbqdma'];a194_0x3071=function(){return _0x4ab2ce;};return a194_0x3071();}export async function copyDir(_0x1846ca,_0x5bf653){const _0x154cea=statSync(_0x1846ca);if(_0x154cea['isDirectory']()){!existsSync(_0x5bf653)&&mkdirSync(_0x5bf653,{'recursive':!![]});const _0x42ff6f=readdirSync(_0x1846ca);for(const _0xd29186 of _0x42ff6f){await copyDir(join(_0x1846ca,_0xd29186),join(_0x5bf653,_0xd29186));}}else copyFileSync(_0x1846ca,_0x5bf653);}export function ensureDir(_0x1bb18d){!existsSync(_0x1bb18d)&&mkdirSync(_0x1bb18d,{'recursive':!![]});}export function pathExists(_0x3b66a4){return existsSync(_0x3b66a4);}
@@ -1 +1 @@
1
- const a195_0x21d70c=a195_0xc7dc;(function(_0x1e058e,_0x23985c){const _0x4dfd55=a195_0xc7dc,_0x5d9df0=_0x1e058e();while(!![]){try{const _0x94bdb0=parseInt(_0x4dfd55(0xf7))/0x1*(parseInt(_0x4dfd55(0xf9))/0x2)+-parseInt(_0x4dfd55(0x115))/0x3*(-parseInt(_0x4dfd55(0x10f))/0x4)+parseInt(_0x4dfd55(0x113))/0x5+-parseInt(_0x4dfd55(0x107))/0x6*(-parseInt(_0x4dfd55(0x108))/0x7)+parseInt(_0x4dfd55(0x112))/0x8+parseInt(_0x4dfd55(0x103))/0x9+-parseInt(_0x4dfd55(0x10c))/0xa;if(_0x94bdb0===_0x23985c)break;else _0x5d9df0['push'](_0x5d9df0['shift']());}catch(_0x1f23a5){_0x5d9df0['push'](_0x5d9df0['shift']());}}}(a195_0x9b4d,0x4ff2b));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';function a195_0x9b4d(){const _0x46d03e=['3UxJeYL','lastUpdated','application/json','.lovrabet/skill/guides','path','cache','8mvrQgI','push','92148tItCco','\x0a\x0a>更新时间:','CDN\x20返回数据格式错误','content','extendContent','status','replace','trimEnd','keys','CDN\x20数据中缺少\x20skillTemplate','4437414SWuZTu','length','statusText','entries','414EWytMy','17689buepOW','guides','title','utf-8','17323960nNXGak','skillTemplate','CDN\x20请求失败:\x20','2255124HJOMCM','map','/skills/guides.json','2724936pnBBjv','597320FCxXdN','.md'];a195_0x9b4d=function(){return _0x46d03e;};return a195_0x9b4d();}import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x4ef512=a195_0xc7dc,_0x4e9a00=getTemplateBaseUrl();return _0x4e9a00+_0x4ef512(0x111);}const CACHE_DIR=join(homedir(),'.lovrabet',a195_0x21d70c(0xf6));export async function fetchGuidesFromCDN(){const _0x49fb45=a195_0x21d70c,_0x155f31=getGuidesCdnUrl(),_0x54703a=await fetch(_0x155f31,{'headers':{'Accept':_0x49fb45(0xf3)}});if(!_0x54703a['ok'])throw new Error(_0x49fb45(0x10e)+_0x54703a[_0x49fb45(0xfe)]+'\x20'+_0x54703a[_0x49fb45(0x105)]);const _0x5a1dac=await _0x54703a['json']();if(!_0x5a1dac[_0x49fb45(0x109)]||typeof _0x5a1dac[_0x49fb45(0x109)]!=='object')throw new Error(_0x49fb45(0xfb));return _0x5a1dac;}export function writeGuidesToProject(_0x27b37d,_0x30ac4d,_0x432715=a195_0x21d70c(0xf4),_0x257592){const _0x5131fe=a195_0x21d70c,_0x1ee874=join(_0x30ac4d,_0x432715);mkdirSync(_0x1ee874,{'recursive':!![]});for(const [_0x43966c,_0x55f918]of Object[_0x5131fe(0x106)](_0x27b37d[_0x5131fe(0x109)])){let _0x4d290=_0x55f918[_0x5131fe(0xfc)];_0x55f918['lastUpdated']&&(_0x4d290=appendUpdateTime(_0x4d290,_0x55f918['lastUpdated'])),writeFileSync(join(_0x1ee874,_0x43966c+_0x5131fe(0x114)),_0x4d290,'utf-8');}}function a195_0xc7dc(_0x23b192,_0x4ad650){_0x23b192=_0x23b192-0xf2;const _0x9b4d9=a195_0x9b4d();let _0xc7dcc9=_0x9b4d9[_0x23b192];return _0xc7dcc9;}export function appendUpdateTime(_0xfb25c6,_0x4d4787){const _0x1279fd=a195_0x21d70c;return _0xfb25c6=_0xfb25c6[_0x1279fd(0xff)](/\n*>更新时间:.*$/m,''),_0xfb25c6[_0x1279fd(0x100)]()+(_0x1279fd(0xfa)+_0x4d4787);}export function getSkillTemplate(_0x109b36){const _0x53d75b=a195_0x21d70c;return _0x109b36[_0x53d75b(0x10d)]?.[_0x53d75b(0xfc)]||'';}export function appendExtendContents(_0x561213,_0x516909,_0x228d74){const _0x2eb964=a195_0x21d70c,_0x3c1e01=[];for(const [,_0x39024f]of Object['entries'](_0x516909['guides'])){_0x39024f['extendContent']&&_0x3c1e01[_0x2eb964(0xf8)](_0x39024f[_0x2eb964(0xfd)][_0x2eb964(0x100)]());}if(_0x3c1e01[_0x2eb964(0x104)]===0x0)return _0x561213;return _0x561213['trimEnd']()+'\x0a\x0a'+_0x3c1e01['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x13b346,_0x101fbb,_0x306588){const _0x5d2d70=a195_0x21d70c,_0x345ddb=getSkillTemplate(_0x13b346);if(!_0x345ddb)throw new Error(_0x5d2d70(0x102));const _0x58526a=dirname(_0x101fbb);mkdirSync(_0x58526a,{'recursive':!![]});let _0x67c1e7=_0x345ddb[_0x5d2d70(0xff)](/\{\{IDE_NAME\}\}/g,_0x306588);_0x67c1e7=appendExtendContents(_0x67c1e7,_0x13b346),_0x13b346[_0x5d2d70(0x10d)][_0x5d2d70(0xf2)]&&(_0x67c1e7=appendUpdateTime(_0x67c1e7,_0x13b346['skillTemplate']['lastUpdated'])),writeFileSync(_0x101fbb,_0x67c1e7,_0x5d2d70(0x10b));}export async function installGuides(_0x23ba1a){const _0x2c04c4=a195_0x21d70c,_0x3c679a=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3c679a,_0x23ba1a),Object[_0x2c04c4(0x101)](_0x3c679a[_0x2c04c4(0x109)])[_0x2c04c4(0x104)];}export function getGuidesSummary(_0x45d8be){const _0x5b32d6=a195_0x21d70c;return Object[_0x5b32d6(0x106)](_0x45d8be[_0x5b32d6(0x109)])[_0x5b32d6(0x110)](([_0x2aca32,_0xb109c6])=>({'key':_0x2aca32,'title':_0xb109c6[_0x5b32d6(0x10a)],'path':_0xb109c6[_0x5b32d6(0xf5)]}));}
1
+ const a195_0x47124f=a195_0x18da;(function(_0x8b052d,_0x54cff3){const _0x3bb112=a195_0x18da,_0x16b4e9=_0x8b052d();while(!![]){try{const _0x27f613=-parseInt(_0x3bb112(0xd2))/0x1+-parseInt(_0x3bb112(0xd4))/0x2*(-parseInt(_0x3bb112(0xe3))/0x3)+parseInt(_0x3bb112(0xd3))/0x4+parseInt(_0x3bb112(0xee))/0x5+-parseInt(_0x3bb112(0xdf))/0x6*(parseInt(_0x3bb112(0xdc))/0x7)+parseInt(_0x3bb112(0xd5))/0x8+-parseInt(_0x3bb112(0xe2))/0x9*(parseInt(_0x3bb112(0xe9))/0xa);if(_0x27f613===_0x54cff3)break;else _0x16b4e9['push'](_0x16b4e9['shift']());}catch(_0xd91a9c){_0x16b4e9['push'](_0x16b4e9['shift']());}}}(a195_0x2493,0x461dc));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 _0x2a5107=getTemplateBaseUrl();return _0x2a5107+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a195_0x47124f(0xe6));export async function fetchGuidesFromCDN(){const _0x3bfa78=a195_0x47124f,_0x40ccb4=getGuidesCdnUrl(),_0x2e3bf6=await fetch(_0x40ccb4,{'headers':{'Accept':_0x3bfa78(0xdd)}});if(!_0x2e3bf6['ok'])throw new Error(_0x3bfa78(0xeb)+_0x2e3bf6['status']+'\x20'+_0x2e3bf6['statusText']);const _0x40c27=await _0x2e3bf6[_0x3bfa78(0xd0)]();if(!_0x40c27[_0x3bfa78(0xda)]||typeof _0x40c27[_0x3bfa78(0xda)]!==_0x3bfa78(0xed))throw new Error(_0x3bfa78(0xde));return _0x40c27;}function a195_0x18da(_0x133e23,_0x30aacd){_0x133e23=_0x133e23-0xd0;const _0x24939d=a195_0x2493();let _0x18da6b=_0x24939d[_0x133e23];return _0x18da6b;}export function writeGuidesToProject(_0x240638,_0x549363,_0x31c963=a195_0x47124f(0xe5),_0x44b62d){const _0x41900f=a195_0x47124f,_0x4435fc=join(_0x549363,_0x31c963);mkdirSync(_0x4435fc,{'recursive':!![]});for(const [_0x5c1420,_0x133959]of Object[_0x41900f(0xec)](_0x240638['guides'])){let _0x50174c=_0x133959[_0x41900f(0xe4)];_0x133959['lastUpdated']&&(_0x50174c=appendUpdateTime(_0x50174c,_0x133959['lastUpdated'])),writeFileSync(join(_0x4435fc,_0x5c1420+'.md'),_0x50174c,'utf-8');}}export function appendUpdateTime(_0x2b5f87,_0x23920c){const _0x1b47bb=a195_0x47124f;return _0x2b5f87=_0x2b5f87[_0x1b47bb(0xe7)](/\n*>更新时间:.*$/m,''),_0x2b5f87[_0x1b47bb(0xe8)]()+(_0x1b47bb(0xea)+_0x23920c);}export function getSkillTemplate(_0x3b5172){const _0x1067b1=a195_0x47124f;return _0x3b5172[_0x1067b1(0xd8)]?.[_0x1067b1(0xe4)]||'';}export function appendExtendContents(_0x6aaaec,_0x4d17c3,_0x2ac140){const _0x3d2db5=a195_0x47124f,_0xe40ddf=[];for(const [,_0x5b3565]of Object[_0x3d2db5(0xec)](_0x4d17c3['guides'])){_0x5b3565[_0x3d2db5(0xd7)]&&_0xe40ddf['push'](_0x5b3565['extendContent'][_0x3d2db5(0xe8)]());}if(_0xe40ddf['length']===0x0)return _0x6aaaec;return _0x6aaaec[_0x3d2db5(0xe8)]()+'\x0a\x0a'+_0xe40ddf[_0x3d2db5(0xdb)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3cef1a,_0x1596e6,_0x518b9e){const _0x4002fe=a195_0x47124f,_0x1c2a91=getSkillTemplate(_0x3cef1a);if(!_0x1c2a91)throw new Error(_0x4002fe(0xd9));const _0x46fb2e=dirname(_0x1596e6);mkdirSync(_0x46fb2e,{'recursive':!![]});let _0x5e9176=_0x1c2a91[_0x4002fe(0xe7)](/\{\{IDE_NAME\}\}/g,_0x518b9e);_0x5e9176=appendExtendContents(_0x5e9176,_0x3cef1a),_0x3cef1a['skillTemplate'][_0x4002fe(0xd1)]&&(_0x5e9176=appendUpdateTime(_0x5e9176,_0x3cef1a[_0x4002fe(0xd8)][_0x4002fe(0xd1)])),writeFileSync(_0x1596e6,_0x5e9176,_0x4002fe(0xe0));}function a195_0x2493(){const _0xa5e8f0=['content','.lovrabet/skill/guides','cache','replace','trimEnd','4782590LCocqp','\x0a\x0a>更新时间:','CDN\x20请求失败:\x20','entries','object','2710235egBOUo','json','lastUpdated','79964PQKUJf','118544tUTrVX','1162kmnoDQ','4279960eUHXGr','keys','extendContent','skillTemplate','CDN\x20数据中缺少\x20skillTemplate','guides','join','248766MIdFZD','application/json','CDN\x20返回数据格式错误','96XvlYYu','utf-8','title','9ueLExC','1587YMWsYi'];a195_0x2493=function(){return _0xa5e8f0;};return a195_0x2493();}export async function installGuides(_0x4e0ea1){const _0xd63f78=a195_0x47124f,_0x179394=await fetchGuidesFromCDN();return writeGuidesToProject(_0x179394,_0x4e0ea1),Object[_0xd63f78(0xd6)](_0x179394[_0xd63f78(0xda)])['length'];}export function getGuidesSummary(_0x49eb60){const _0x502e42=a195_0x47124f;return Object[_0x502e42(0xec)](_0x49eb60[_0x502e42(0xda)])['map'](([_0x383e09,_0x21ad21])=>({'key':_0x383e09,'title':_0x21ad21[_0x502e42(0xe1)],'path':_0x21ad21['path']}));}
@@ -1 +1 @@
1
- (function(_0x478f44,_0x1e033a){const _0x42207e=a196_0x21a6,_0x2dbfb8=_0x478f44();while(!![]){try{const _0x53d327=-parseInt(_0x42207e(0x207))/0x1*(-parseInt(_0x42207e(0x209))/0x2)+parseInt(_0x42207e(0x206))/0x3+parseInt(_0x42207e(0x1f0))/0x4+parseInt(_0x42207e(0x1f8))/0x5*(parseInt(_0x42207e(0x1fa))/0x6)+parseInt(_0x42207e(0x208))/0x7*(parseInt(_0x42207e(0x1f4))/0x8)+-parseInt(_0x42207e(0x1f9))/0x9+-parseInt(_0x42207e(0x1fb))/0xa;if(_0x53d327===_0x1e033a)break;else _0x2dbfb8['push'](_0x2dbfb8['shift']());}catch(_0x4ac04b){_0x2dbfb8['push'](_0x2dbfb8['shift']());}}}(a196_0x69eb,0xf290e));export async function httpRequest(_0x339e79,_0xfacdb6={}){const _0x4e8c36=a196_0x21a6,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xfacdb6;let _0x1d26bd=null;for(let _0x2ac28c=0x0;_0x2ac28c<=retries;_0x2ac28c++){try{const _0x1828b9=new AbortController(),_0x461125=setTimeout(()=>_0x1828b9[_0x4e8c36(0x201)](),timeout),_0x37af35=await fetch(_0x339e79,{'headers':headers,'signal':_0x1828b9[_0x4e8c36(0x20a)]});clearTimeout(_0x461125);let _0x3086ea;const _0x4ddda0=_0x37af35[_0x4e8c36(0x1f2)][_0x4e8c36(0x1f1)](_0x4e8c36(0x1f6));return _0x4ddda0?.[_0x4e8c36(0x200)](_0x4e8c36(0x1fd))?_0x3086ea=await _0x37af35[_0x4e8c36(0x1f3)]():_0x3086ea=await _0x37af35[_0x4e8c36(0x1f5)](),{'ok':_0x37af35['ok'],'status':_0x37af35[_0x4e8c36(0x204)],'statusText':_0x37af35[_0x4e8c36(0x205)],'data':_0x3086ea,'headers':_0x37af35[_0x4e8c36(0x1f2)],'url':_0x37af35[_0x4e8c36(0x203)],'text':()=>_0x37af35[_0x4e8c36(0x1f5)]()};}catch(_0x2d6dda){_0x1d26bd=_0x2d6dda instanceof Error?_0x2d6dda:new Error(String(_0x2d6dda));if(_0x2ac28c===retries)break;if(shouldRetry(_0x2d6dda)){console[_0x4e8c36(0x1ef)](_0x4e8c36(0x1fe)+retryDelay+_0x4e8c36(0x202)+(_0x2ac28c+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x1d26bd||new Error('Request\x20failed');}function a196_0x69eb(){const _0x50e0e7=['statusText','5763915aJoDUp','11287UJKeBV','259fDZxpD','14uMXVGO','signal','ECONNRESET','log','196776aqariv','get','headers','json','34800bQBZuk','text','content-type','AbortError','10965zysNRl','12073032TgrrVv','1770WuACpR','5223950NOOZgC','message','application/json','*\x20请求失败,','fetch','includes','abort','ms\x20后进行第\x20','url','status'];a196_0x69eb=function(){return _0x50e0e7;};return a196_0x69eb();}function shouldRetry(_0x4768ac){const _0x18e202=a196_0x21a6;if(_0x4768ac instanceof Error){if(_0x4768ac['name']===_0x18e202(0x1f7))return![];if(_0x4768ac['name']==='TypeError'&&_0x4768ac[_0x18e202(0x1fc)][_0x18e202(0x200)](_0x18e202(0x1ff)))return!![];if(_0x4768ac[_0x18e202(0x1fc)][_0x18e202(0x200)](_0x18e202(0x20b)))return!![];if(_0x4768ac['message'][_0x18e202(0x200)]('ENOTFOUND'))return![];}return![];}function sleep(_0x174438){return new Promise(_0x2b2a87=>setTimeout(_0x2b2a87,_0x174438));}function a196_0x21a6(_0x5e4e16,_0xd5704c){_0x5e4e16=_0x5e4e16-0x1ef;const _0x69eb94=a196_0x69eb();let _0x21a6f7=_0x69eb94[_0x5e4e16];return _0x21a6f7;}export function validateUrl(_0x58913b){try{return new URL(_0x58913b),!![];}catch{return![];}}
1
+ function a196_0x319e(){const _0x296098=['96WNqAwI','message','includes','get','headers','126064AUZOHG','36316IFPIOg','4125770BjjUkh','name','*\x20请求失败,','url','application/json','160205BtLCsT','ms\x20后进行第\x20','log','4RUhYph','8fnYcVC','text','691722AvmsGa','status','Request\x20failed','128559EYvIjd','AbortError','1767762ttibxu'];a196_0x319e=function(){return _0x296098;};return a196_0x319e();}(function(_0x1e7f83,_0x1580bf){const _0x26129d=a196_0x50e4,_0x5001a0=_0x1e7f83();while(!![]){try{const _0x13939e=parseInt(_0x26129d(0x12d))/0x1+-parseInt(_0x26129d(0x122))/0x2+parseInt(_0x26129d(0x125))/0x3*(parseInt(_0x26129d(0x11f))/0x4)+-parseInt(_0x26129d(0x11c))/0x5+parseInt(_0x26129d(0x128))/0x6*(-parseInt(_0x26129d(0x12e))/0x7)+-parseInt(_0x26129d(0x120))/0x8*(-parseInt(_0x26129d(0x127))/0x9)+parseInt(_0x26129d(0x12f))/0xa;if(_0x13939e===_0x1580bf)break;else _0x5001a0['push'](_0x5001a0['shift']());}catch(_0x5f4f05){_0x5001a0['push'](_0x5001a0['shift']());}}}(a196_0x319e,0x4d64a));export async function httpRequest(_0x1d5712,_0xdb3e06={}){const _0x1b7b18=a196_0x50e4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0xdb3e06;let _0x28df33=null;for(let _0xbc6d51=0x0;_0xbc6d51<=retries;_0xbc6d51++){try{const _0x317543=new AbortController(),_0x432f22=setTimeout(()=>_0x317543['abort'](),timeout),_0x203783=await fetch(_0x1d5712,{'headers':headers,'signal':_0x317543['signal']});clearTimeout(_0x432f22);let _0x7e87ae;const _0x1bf6de=_0x203783['headers'][_0x1b7b18(0x12b)]('content-type');return _0x1bf6de?.[_0x1b7b18(0x12a)](_0x1b7b18(0x11b))?_0x7e87ae=await _0x203783['json']():_0x7e87ae=await _0x203783[_0x1b7b18(0x121)](),{'ok':_0x203783['ok'],'status':_0x203783[_0x1b7b18(0x123)],'statusText':_0x203783['statusText'],'data':_0x7e87ae,'headers':_0x203783[_0x1b7b18(0x12c)],'url':_0x203783[_0x1b7b18(0x11a)],'text':()=>_0x203783[_0x1b7b18(0x121)]()};}catch(_0xca5836){_0x28df33=_0xca5836 instanceof Error?_0xca5836:new Error(String(_0xca5836));if(_0xbc6d51===retries)break;if(shouldRetry(_0xca5836)){console[_0x1b7b18(0x11e)](_0x1b7b18(0x119)+retryDelay+_0x1b7b18(0x11d)+(_0xbc6d51+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x28df33||new Error(_0x1b7b18(0x124));}function a196_0x50e4(_0x256ea1,_0x218c5e){_0x256ea1=_0x256ea1-0x118;const _0x319e51=a196_0x319e();let _0x50e4b8=_0x319e51[_0x256ea1];return _0x50e4b8;}function shouldRetry(_0x124f1b){const _0x43de62=a196_0x50e4;if(_0x124f1b instanceof Error){if(_0x124f1b[_0x43de62(0x118)]===_0x43de62(0x126))return![];if(_0x124f1b[_0x43de62(0x118)]==='TypeError'&&_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('fetch'))return!![];if(_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('ECONNRESET'))return!![];if(_0x124f1b[_0x43de62(0x129)][_0x43de62(0x12a)]('ENOTFOUND'))return![];}return![];}function sleep(_0x4596fc){return new Promise(_0x1cf095=>setTimeout(_0x1cf095,_0x4596fc));}export function validateUrl(_0x30b512){try{return new URL(_0x30b512),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a197_0x4391(){const _0x5d2bbf=['2TkQJtm','true','stdout','setRawMode','isTTY','nonInteractive','348vFJJJK','410YmAVil','stdin','2247ebggIA','39YCDgdB','97702kKjPfP','350gJeZne','117057gfCCcu','295026rtBDhX','31912ZgMQps','1372pLljUt','2646238gdMeBE','55737vbWjod','20ECixYJ','isRaw'];a197_0x4391=function(){return _0x5d2bbf;};return a197_0x4391();}function a197_0x15ac(_0x36e355,_0x3c9fe6){_0x36e355=_0x36e355-0x17d;const _0x439171=a197_0x4391();let _0x15ac5b=_0x439171[_0x36e355];return _0x15ac5b;}(function(_0xc98c71,_0x58c513){const _0x5f01a3=a197_0x15ac,_0x4af458=_0xc98c71();while(!![]){try{const _0x52200a=parseInt(_0x5f01a3(0x187))/0x1*(parseInt(_0x5f01a3(0x18f))/0x2)+-parseInt(_0x5f01a3(0x183))/0x3*(parseInt(_0x5f01a3(0x18a))/0x4)+parseInt(_0x5f01a3(0x18d))/0x5*(parseInt(_0x5f01a3(0x188))/0x6)+-parseInt(_0x5f01a3(0x186))/0x7*(-parseInt(_0x5f01a3(0x189))/0x8)+parseInt(_0x5f01a3(0x18c))/0x9*(parseInt(_0x5f01a3(0x181))/0xa)+-parseInt(_0x5f01a3(0x185))/0xb*(-parseInt(_0x5f01a3(0x180))/0xc)+parseInt(_0x5f01a3(0x184))/0xd*(-parseInt(_0x5f01a3(0x18b))/0xe);if(_0x52200a===_0x58c513)break;else _0x4af458['push'](_0x4af458['shift']());}catch(_0x17ed0d){_0x4af458['push'](_0x4af458['shift']());}}}(a197_0x4391,0x31014));function env(_0x170532){return process.env[`RABETBASE_${_0x170532}`]||process.env[`LOVRABET_${_0x170532}`]||undefined;}export function isNonInteractive(_0x394327){const _0x4cca23=a197_0x15ac;return!!(_0x394327[_0x4cca23(0x17f)]||_0x394327['ci']||env('CI')===_0x4cca23(0x190)||process.env.CI===_0x4cca23(0x190)||!process[_0x4cca23(0x191)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x5e0379=a197_0x15ac;if(!process[_0x5e0379(0x182)][_0x5e0379(0x17e)])return![];try{const _0x4f4c17=process[_0x5e0379(0x182)][_0x5e0379(0x18e)];return process[_0x5e0379(0x182)][_0x5e0379(0x17d)](!![]),process[_0x5e0379(0x182)][_0x5e0379(0x17d)](_0x4f4c17??![]),!![];}catch{return![];}}
1
+ (function(_0x595cd7,_0x366c17){const _0x31e316=a197_0x46e1,_0x2d26d7=_0x595cd7();while(!![]){try{const _0x4b307c=-parseInt(_0x31e316(0xed))/0x1*(-parseInt(_0x31e316(0xf2))/0x2)+-parseInt(_0x31e316(0xe9))/0x3+parseInt(_0x31e316(0xeb))/0x4+parseInt(_0x31e316(0xf1))/0x5+-parseInt(_0x31e316(0xea))/0x6+-parseInt(_0x31e316(0xec))/0x7*(parseInt(_0x31e316(0xf4))/0x8)+parseInt(_0x31e316(0xef))/0x9;if(_0x4b307c===_0x366c17)break;else _0x2d26d7['push'](_0x2d26d7['shift']());}catch(_0x357318){_0x2d26d7['push'](_0x2d26d7['shift']());}}}(a197_0x48e6,0xc1fbb));function env(_0x217b23){return process.env[`RABETBASE_${_0x217b23}`]||process.env[`LOVRABET_${_0x217b23}`]||undefined;}function a197_0x46e1(_0x297278,_0x31fd3b){_0x297278=_0x297278-0xe7;const _0x48e61a=a197_0x48e6();let _0x46e10b=_0x48e61a[_0x297278];return _0x46e10b;}export function isNonInteractive(_0x53eda7){const _0x36a152=a197_0x46e1;return!!(_0x53eda7[_0x36a152(0xee)]||_0x53eda7['ci']||env('CI')===_0x36a152(0xf3)||process.env.CI===_0x36a152(0xf3)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x12aca4=a197_0x46e1;if(!process[_0x12aca4(0xf0)][_0x12aca4(0xe7)])return![];try{const _0xd8e14a=process[_0x12aca4(0xf0)][_0x12aca4(0xe8)];return process[_0x12aca4(0xf0)]['setRawMode'](!![]),process[_0x12aca4(0xf0)]['setRawMode'](_0xd8e14a??![]),!![];}catch{return![];}}function a197_0x48e6(){const _0x28bd53=['nonInteractive','17329788SuZthe','stdin','660950cspVKX','9094mlJFKi','true','188744ippMsR','isTTY','isRaw','4179108rNABuv','4052382OmyzKW','3062180BipxOd','84NWUxTr','71EPYEjL'];a197_0x48e6=function(){return _0x28bd53;};return a197_0x48e6();}
@@ -1 +1 @@
1
- const a198_0x534b6c=a198_0x593f;(function(_0x2e5b71,_0x256659){const _0x52e4a0=a198_0x593f,_0x3f4865=_0x2e5b71();while(!![]){try{const _0x11cf46=parseInt(_0x52e4a0(0x107))/0x1*(parseInt(_0x52e4a0(0x11a))/0x2)+parseInt(_0x52e4a0(0x11c))/0x3+-parseInt(_0x52e4a0(0x106))/0x4*(parseInt(_0x52e4a0(0x114))/0x5)+-parseInt(_0x52e4a0(0x102))/0x6+-parseInt(_0x52e4a0(0x126))/0x7+parseInt(_0x52e4a0(0xf9))/0x8*(parseInt(_0x52e4a0(0x103))/0x9)+-parseInt(_0x52e4a0(0x121))/0xa;if(_0x11cf46===_0x256659)break;else _0x3f4865['push'](_0x3f4865['shift']());}catch(_0x4eaeb0){_0x3f4865['push'](_0x3f4865['shift']());}}}(a198_0x3115,0xd860c));import a198_0x3e102d from'winston';import a198_0x3ef549 from'node:fs';import a198_0x4c2d40 from'node:path';class Logger{[a198_0x534b6c(0x125)];[a198_0x534b6c(0x104)];[a198_0x534b6c(0x100)]='';constructor(){const _0x543d65=a198_0x534b6c;this[_0x543d65(0x104)]='';}['setRawCommand'](_0x421a58){this['currentRawCommand']=_0x421a58;}[a198_0x534b6c(0x11b)](){const _0x587be6=a198_0x534b6c,_0x4b8b96=a198_0x4c2d40['dirname'](this[_0x587be6(0x104)]);!a198_0x3ef549[_0x587be6(0x101)](_0x4b8b96)&&a198_0x3ef549[_0x587be6(0x12e)](_0x4b8b96,{'recursive':!![]});const _0x2b0e31=a198_0x3e102d[_0x587be6(0x119)]['combine'](a198_0x3e102d['format'][_0x587be6(0x12f)](),a198_0x3e102d['format'][_0x587be6(0x112)]({'stack':!![]}),a198_0x3e102d[_0x587be6(0x119)][_0x587be6(0x10e)](_0x3237d1=>{const _0x4913e8=_0x587be6,_0x1ce78e={'timestamp':_0x3237d1[_0x4913e8(0x12f)]||new Date()['toISOString'](),'level':_0x3237d1['level']||_0x4913e8(0xfe),'command':_0x3237d1[_0x4913e8(0x123)]||_0x4913e8(0x10b),'rawCommand':_0x3237d1['rawCommand']||this[_0x4913e8(0x100)]||undefined,'message':_0x3237d1[_0x4913e8(0x10a)]||'','duration':_0x3237d1[_0x4913e8(0x128)]||undefined,'details':_0x3237d1[_0x4913e8(0x108)]||undefined};return JSON[_0x4913e8(0x113)](_0x1ce78e);}));this[_0x587be6(0x125)]=a198_0x3e102d[_0x587be6(0x117)]({'level':_0x587be6(0xfe),'format':_0x2b0e31,'transports':[new a198_0x3e102d[(_0x587be6(0x120))][(_0x587be6(0xfa))]({'filename':this[_0x587be6(0x104)],'level':'info'})],'silent':![]}),a198_0x3e102d[_0x587be6(0x115)]({'success':_0x587be6(0x10f),'error':_0x587be6(0x116),'warn':_0x587be6(0x109),'info':'blue'});}[a198_0x534b6c(0x12c)](_0xfb722){const _0x27d110=a198_0x534b6c;this[_0x27d110(0x104)]=a198_0x4c2d40[_0x27d110(0x127)](_0xfb722,'.lovrabet.log'),this[_0x27d110(0x125)]&&this[_0x27d110(0x125)][_0x27d110(0xfb)](),this['initWinstonLogger']();}[a198_0x534b6c(0xfe)](_0x1621fe,_0x5d3c98,_0x358cbc){const _0x3611f0=a198_0x534b6c;if(!this[_0x3611f0(0x104)]||!this[_0x3611f0(0x125)])return;this[_0x3611f0(0x125)][_0x3611f0(0xfe)](_0x5d3c98,{'command':_0x1621fe,'details':_0x358cbc});}['success'](_0x2146d1,_0x345082,_0x1dc096,_0x56f03e){const _0x36063e=a198_0x534b6c;if(!this[_0x36063e(0x104)]||!this['winstonLogger'])return;this[_0x36063e(0x125)]['log'](_0x36063e(0xfe),_0x345082,{'level':_0x36063e(0x122),'command':_0x2146d1,'duration':_0x1dc096,'details':_0x56f03e});}[a198_0x534b6c(0x12a)](_0x477cd8,_0x19a1de,_0x97d0e){const _0x136148=a198_0x534b6c;if(!this[_0x136148(0x104)]||!this[_0x136148(0x125)])return;this[_0x136148(0x125)][_0x136148(0x12a)](_0x19a1de,{'command':_0x477cd8,'details':_0x97d0e});}['warn'](_0x5d0aee,_0x4b9d24,_0x36b699){const _0x239296=a198_0x534b6c;if(!this[_0x239296(0x104)]||!this[_0x239296(0x125)])return;this[_0x239296(0x125)][_0x239296(0x105)](_0x4b9d24,{'command':_0x5d0aee,'details':_0x36b699});}async['logTask'](_0x33546e,_0x13aa2d,_0x31a197){const _0x269823=a198_0x534b6c,_0x2709ca=Date[_0x269823(0x12d)]();this[_0x269823(0xfe)](_0x33546e,'开始执行:\x20'+_0x13aa2d);try{const _0x34d175=await _0x31a197(),_0x271e87=Date[_0x269823(0x12d)]()-_0x2709ca;return this[_0x269823(0x122)](_0x33546e,'完成:\x20'+_0x13aa2d,_0x271e87),_0x34d175;}catch(_0x1659fd){const _0x1ec5e9=Date['now']()-_0x2709ca;this['error'](_0x33546e,_0x269823(0x129)+_0x13aa2d,{'error':_0x1659fd instanceof Error?_0x1659fd[_0x269823(0x10a)]:String(_0x1659fd),'duration':_0x1ec5e9});throw _0x1659fd;}}[a198_0x534b6c(0x11d)](){const _0x54ffea=a198_0x534b6c;try{if(!a198_0x3ef549[_0x54ffea(0x101)](this['logFilePath']))return[];const _0x37d1a8=a198_0x3ef549[_0x54ffea(0x124)](this[_0x54ffea(0x104)],_0x54ffea(0x111));return _0x37d1a8[_0x54ffea(0x12b)]('\x0a')[_0x54ffea(0xfd)](_0x5989cf=>_0x5989cf[_0x54ffea(0x11f)]())[_0x54ffea(0x10d)](_0x3efe42=>JSON[_0x54ffea(0x118)](_0x3efe42));}catch(_0x18be35){return console['warn'](_0x54ffea(0x11e),_0x18be35),[];}}[a198_0x534b6c(0xff)](){const _0x2c3500=a198_0x534b6c;try{a198_0x3ef549[_0x2c3500(0x101)](this['logFilePath'])&&a198_0x3ef549[_0x2c3500(0xfc)](this['logFilePath'],'','utf8');}catch(_0x3c21c0){console['warn'](_0x2c3500(0x10c),_0x3c21c0);}}[a198_0x534b6c(0x110)](){const _0x4d7121=a198_0x534b6c;return this[_0x4d7121(0x125)];}}function a198_0x593f(_0x3216e4,_0x4dd3ee){_0x3216e4=_0x3216e4-0xf9;const _0x311557=a198_0x3115();let _0x593f5c=_0x311557[_0x3216e4];return _0x593f5c;}export const logger=new Logger();function a198_0x3115(){const _0x3664d4=['getWinstonInstance','utf8','errors','stringify','207275XPtxgt','addColors','red','createLogger','parse','format','186458yYbQQa','initWinstonLogger','4858263CPTMRf','readLogs','Failed\x20to\x20read\x20logs:','trim','transports','12515970knVbUx','success','command','readFileSync','winstonLogger','6920165HDJbhX','join','duration','失败:\x20','error','split','setLogPath','now','mkdirSync','timestamp','129240ZPxVoX','File','clear','writeFileSync','filter','info','clearLogs','currentRawCommand','existsSync','2748306dDOawI','945hKDsLn','logFilePath','warn','100IGHUzO','14qzhitD','details','yellow','message','unknown','Failed\x20to\x20clear\x20logs:','map','printf','green'];a198_0x3115=function(){return _0x3664d4;};return a198_0x3115();}
1
+ const a198_0x3d2f5c=a198_0x34b9;function a198_0x34b9(_0x3741cb,_0x5ce3be){_0x3741cb=_0x3741cb-0x195;const _0x34daf7=a198_0x34da();let _0x34b9e0=_0x34daf7[_0x3741cb];return _0x34b9e0;}(function(_0x2f633a,_0x35dec4){const _0x5301d4=a198_0x34b9,_0x46c908=_0x2f633a();while(!![]){try{const _0x639c87=-parseInt(_0x5301d4(0x1c9))/0x1*(parseInt(_0x5301d4(0x1cc))/0x2)+parseInt(_0x5301d4(0x1c8))/0x3*(parseInt(_0x5301d4(0x1bd))/0x4)+parseInt(_0x5301d4(0x1a7))/0x5+parseInt(_0x5301d4(0x1b9))/0x6*(-parseInt(_0x5301d4(0x1a0))/0x7)+parseInt(_0x5301d4(0x1c6))/0x8+parseInt(_0x5301d4(0x19e))/0x9*(-parseInt(_0x5301d4(0x1a8))/0xa)+parseInt(_0x5301d4(0x1c4))/0xb*(parseInt(_0x5301d4(0x1b6))/0xc);if(_0x639c87===_0x35dec4)break;else _0x46c908['push'](_0x46c908['shift']());}catch(_0xc884e6){_0x46c908['push'](_0x46c908['shift']());}}}(a198_0x34da,0x20c2d));function a198_0x34da(){const _0x5af591=['timestamp','split','printf','format','addColors','map','warn','red','1035888KBpcTh','winstonLogger','now','741558ZqqflV','开始执行:\x20','level','green','4UmbNeD','rawCommand','error','message','setRawCommand','info','details','33qUSKUR','log','1530136XNJDUv','.lovrabet.log','172548IBvttU','586GLrWZd','mkdirSync','dirname','384PIDNEi','initWinstonLogger','currentRawCommand','Failed\x20to\x20clear\x20logs:','errors','combine','parse','logFilePath','clear','duration','command','join','unknown','File','success','transports','getWinstonInstance','2317302zYtOAi','utf8','7CqUYIe','existsSync','readFileSync','trim','clearLogs','filter','readLogs','600085BJMWwa','10GoroSd','stringify','toISOString','blue','writeFileSync','Failed\x20to\x20read\x20logs:'];a198_0x34da=function(){return _0x5af591;};return a198_0x34da();}import a198_0x10f730 from'winston';import a198_0x1a6417 from'node:fs';import a198_0x56faa4 from'node:path';class Logger{[a198_0x3d2f5c(0x1b7)];[a198_0x3d2f5c(0x1d3)];[a198_0x3d2f5c(0x1ce)]='';constructor(){this['logFilePath']='';}[a198_0x3d2f5c(0x1c1)](_0x7ea68b){const _0x16f4aa=a198_0x3d2f5c;this[_0x16f4aa(0x1ce)]=_0x7ea68b;}[a198_0x3d2f5c(0x1cd)](){const _0x4b36b0=a198_0x3d2f5c,_0x11e881=a198_0x56faa4[_0x4b36b0(0x1cb)](this[_0x4b36b0(0x1d3)]);!a198_0x1a6417[_0x4b36b0(0x1a1)](_0x11e881)&&a198_0x1a6417[_0x4b36b0(0x1ca)](_0x11e881,{'recursive':!![]});const _0x5de381=a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1d1)](a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1ae)](),a198_0x10f730['format'][_0x4b36b0(0x1d0)]({'stack':!![]}),a198_0x10f730[_0x4b36b0(0x1b1)][_0x4b36b0(0x1b0)](_0x5dba14=>{const _0x1568c6=_0x4b36b0,_0x4e0e2b={'timestamp':_0x5dba14[_0x1568c6(0x1ae)]||new Date()[_0x1568c6(0x1aa)](),'level':_0x5dba14[_0x1568c6(0x1bb)]||_0x1568c6(0x1c2),'command':_0x5dba14[_0x1568c6(0x197)]||_0x1568c6(0x199),'rawCommand':_0x5dba14[_0x1568c6(0x1be)]||this[_0x1568c6(0x1ce)]||undefined,'message':_0x5dba14[_0x1568c6(0x1c0)]||'','duration':_0x5dba14[_0x1568c6(0x196)]||undefined,'details':_0x5dba14[_0x1568c6(0x1c3)]||undefined};return JSON[_0x1568c6(0x1a9)](_0x4e0e2b);}));this[_0x4b36b0(0x1b7)]=a198_0x10f730['createLogger']({'level':_0x4b36b0(0x1c2),'format':_0x5de381,'transports':[new a198_0x10f730[(_0x4b36b0(0x19c))][(_0x4b36b0(0x19a))]({'filename':this['logFilePath'],'level':_0x4b36b0(0x1c2)})],'silent':![]}),a198_0x10f730[_0x4b36b0(0x1b2)]({'success':_0x4b36b0(0x1bc),'error':_0x4b36b0(0x1b5),'warn':'yellow','info':_0x4b36b0(0x1ab)});}['setLogPath'](_0x402b01){const _0xb1384e=a198_0x3d2f5c;this[_0xb1384e(0x1d3)]=a198_0x56faa4[_0xb1384e(0x198)](_0x402b01,_0xb1384e(0x1c7)),this[_0xb1384e(0x1b7)]&&this[_0xb1384e(0x1b7)][_0xb1384e(0x195)](),this['initWinstonLogger']();}[a198_0x3d2f5c(0x1c2)](_0x47254a,_0x462a83,_0x599185){const _0x420ec5=a198_0x3d2f5c;if(!this[_0x420ec5(0x1d3)]||!this[_0x420ec5(0x1b7)])return;this[_0x420ec5(0x1b7)][_0x420ec5(0x1c2)](_0x462a83,{'command':_0x47254a,'details':_0x599185});}['success'](_0x3413c0,_0x533b17,_0x1ea603,_0xfecbae){const _0x340177=a198_0x3d2f5c;if(!this[_0x340177(0x1d3)]||!this[_0x340177(0x1b7)])return;this['winstonLogger'][_0x340177(0x1c5)](_0x340177(0x1c2),_0x533b17,{'level':_0x340177(0x19b),'command':_0x3413c0,'duration':_0x1ea603,'details':_0xfecbae});}[a198_0x3d2f5c(0x1bf)](_0x5990e7,_0x213b05,_0x17f2b3){const _0x438a53=a198_0x3d2f5c;if(!this['logFilePath']||!this[_0x438a53(0x1b7)])return;this[_0x438a53(0x1b7)][_0x438a53(0x1bf)](_0x213b05,{'command':_0x5990e7,'details':_0x17f2b3});}[a198_0x3d2f5c(0x1b4)](_0x2644de,_0x2e3c54,_0x2a6958){const _0x4170b1=a198_0x3d2f5c;if(!this[_0x4170b1(0x1d3)]||!this[_0x4170b1(0x1b7)])return;this[_0x4170b1(0x1b7)][_0x4170b1(0x1b4)](_0x2e3c54,{'command':_0x2644de,'details':_0x2a6958});}async['logTask'](_0x18630e,_0x28bb01,_0x494382){const _0x1b2829=a198_0x3d2f5c,_0xf156dd=Date[_0x1b2829(0x1b8)]();this['info'](_0x18630e,_0x1b2829(0x1ba)+_0x28bb01);try{const _0x212c8f=await _0x494382(),_0x4c452f=Date[_0x1b2829(0x1b8)]()-_0xf156dd;return this['success'](_0x18630e,'完成:\x20'+_0x28bb01,_0x4c452f),_0x212c8f;}catch(_0x41051b){const _0x31f39a=Date['now']()-_0xf156dd;this['error'](_0x18630e,'失败:\x20'+_0x28bb01,{'error':_0x41051b instanceof Error?_0x41051b[_0x1b2829(0x1c0)]:String(_0x41051b),'duration':_0x31f39a});throw _0x41051b;}}[a198_0x3d2f5c(0x1a6)](){const _0x1a2ea5=a198_0x3d2f5c;try{if(!a198_0x1a6417[_0x1a2ea5(0x1a1)](this[_0x1a2ea5(0x1d3)]))return[];const _0x306acf=a198_0x1a6417[_0x1a2ea5(0x1a2)](this['logFilePath'],_0x1a2ea5(0x19f));return _0x306acf[_0x1a2ea5(0x1af)]('\x0a')[_0x1a2ea5(0x1a5)](_0x3d0c61=>_0x3d0c61[_0x1a2ea5(0x1a3)]())[_0x1a2ea5(0x1b3)](_0x109810=>JSON[_0x1a2ea5(0x1d2)](_0x109810));}catch(_0x58d88f){return console[_0x1a2ea5(0x1b4)](_0x1a2ea5(0x1ad),_0x58d88f),[];}}[a198_0x3d2f5c(0x1a4)](){const _0x9ac96=a198_0x3d2f5c;try{a198_0x1a6417[_0x9ac96(0x1a1)](this[_0x9ac96(0x1d3)])&&a198_0x1a6417[_0x9ac96(0x1ac)](this['logFilePath'],'',_0x9ac96(0x19f));}catch(_0x516174){console[_0x9ac96(0x1b4)](_0x9ac96(0x1cf),_0x516174);}}[a198_0x3d2f5c(0x19d)](){const _0x429980=a198_0x3d2f5c;return this[_0x429980(0x1b7)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x27812a,_0x2d1fac){const _0xb3aaf2=a199_0x517a,_0x549868=_0x27812a();while(!![]){try{const _0x438383=parseInt(_0xb3aaf2(0xe0))/0x1*(-parseInt(_0xb3aaf2(0xe6))/0x2)+-parseInt(_0xb3aaf2(0xe4))/0x3*(parseInt(_0xb3aaf2(0xdb))/0x4)+parseInt(_0xb3aaf2(0xda))/0x5*(-parseInt(_0xb3aaf2(0xdf))/0x6)+-parseInt(_0xb3aaf2(0xe7))/0x7+parseInt(_0xb3aaf2(0xe1))/0x8+-parseInt(_0xb3aaf2(0xdd))/0x9*(parseInt(_0xb3aaf2(0xd8))/0xa)+parseInt(_0xb3aaf2(0xd6))/0xb*(parseInt(_0xb3aaf2(0xe5))/0xc);if(_0x438383===_0x2d1fac)break;else _0x549868['push'](_0x549868['shift']());}catch(_0x186365){_0x549868['push'](_0x549868['shift']());}}}(a199_0x5ca2,0x9722d));import{CliErrors}from'../errors.js';function a199_0x517a(_0x2328eb,_0x5b4aec){_0x2328eb=_0x2328eb-0xd6;const _0x5ca294=a199_0x5ca2();let _0x517a7f=_0x5ca294[_0x2328eb];return _0x517a7f;}function a199_0x5ca2(){const _0x1c9c82=['validation','isArray','481989RtsHTS','22345596ANrTda','3508RnEyJF','1360632KJKtNv','11alrVnY','object','16190nFKAgN','parse','640320ObxudL','8bCtcAo','Invalid\x20JSON\x20for\x20--params:\x20','657rvDlzb','--params\x20must\x20be\x20a\x20JSON\x20object','36RDRLtQ','452qigjMi','7616008rtHZYy'];a199_0x5ca2=function(){return _0x1c9c82;};return a199_0x5ca2();}export function parseJsonParams(_0x93762a){const _0x2235b7=a199_0x517a;if(!_0x93762a)return undefined;let _0x895b5a;try{_0x895b5a=JSON[_0x2235b7(0xd9)](_0x93762a);}catch{throw CliErrors[_0x2235b7(0xe2)](_0x2235b7(0xdc)+_0x93762a);}if(!_0x895b5a||typeof _0x895b5a!==_0x2235b7(0xd7)||Array[_0x2235b7(0xe3)](_0x895b5a))throw CliErrors[_0x2235b7(0xe2)](_0x2235b7(0xde),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x895b5a;}
1
+ (function(_0x3002ff,_0x21a7ab){const _0x193e95=a199_0x3d53,_0x414f0c=_0x3002ff();while(!![]){try{const _0x5347cd=parseInt(_0x193e95(0x7f))/0x1+-parseInt(_0x193e95(0x7b))/0x2+-parseInt(_0x193e95(0x7c))/0x3*(parseInt(_0x193e95(0x78))/0x4)+parseInt(_0x193e95(0x82))/0x5+-parseInt(_0x193e95(0x76))/0x6*(parseInt(_0x193e95(0x77))/0x7)+parseInt(_0x193e95(0x81))/0x8*(parseInt(_0x193e95(0x7e))/0x9)+-parseInt(_0x193e95(0x75))/0xa*(-parseInt(_0x193e95(0x80))/0xb);if(_0x5347cd===_0x21a7ab)break;else _0x414f0c['push'](_0x414f0c['shift']());}catch(_0x17b635){_0x414f0c['push'](_0x414f0c['shift']());}}}(a199_0x1341,0x6a644));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x3870b0){const _0x2c2307=a199_0x3d53;if(!_0x3870b0)return undefined;let _0x1d455b;try{_0x1d455b=JSON[_0x2c2307(0x7a)](_0x3870b0);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x3870b0);}if(!_0x1d455b||typeof _0x1d455b!=='object'||Array[_0x2c2307(0x79)](_0x1d455b))throw CliErrors[_0x2c2307(0x7d)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x2c2307(0x83));return _0x1d455b;}function a199_0x3d53(_0x919175,_0x38eb84){_0x919175=_0x919175-0x75;const _0x1341bf=a199_0x1341();let _0x3d536c=_0x1341bf[_0x919175];return _0x3d536c;}function a199_0x1341(){const _0x79dde7=['isArray','parse','741550AfYanK','12CmaAZO','validation','591417AWlhAr','47546AlHNPW','165xyLYSB','16iTrUuQ','3008700udrFip','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','709240BdWMYC','762kTeiJM','26089MQdKTk','564688eYVLXp'];a199_0x1341=function(){return _0x79dde7;};return a199_0x1341();}
@@ -1 +1 @@
1
- function a200_0x5984(_0x32dd8a,_0x39b432){_0x32dd8a=_0x32dd8a-0x78;const _0x48e120=a200_0x48e1();let _0x598474=_0x48e120[_0x32dd8a];return _0x598474;}const a200_0x1d4488=a200_0x5984;(function(_0x5aa624,_0x26f56a){const _0x179561=a200_0x5984,_0x37c3e9=_0x5aa624();while(!![]){try{const _0x50b869=parseInt(_0x179561(0x7f))/0x1+parseInt(_0x179561(0x78))/0x2*(parseInt(_0x179561(0x83))/0x3)+parseInt(_0x179561(0x79))/0x4*(-parseInt(_0x179561(0x85))/0x5)+parseInt(_0x179561(0x7b))/0x6+parseInt(_0x179561(0x82))/0x7+-parseInt(_0x179561(0x7c))/0x8*(parseInt(_0x179561(0x7e))/0x9)+parseInt(_0x179561(0x7a))/0xa*(-parseInt(_0x179561(0x84))/0xb);if(_0x50b869===_0x26f56a)break;else _0x37c3e9['push'](_0x37c3e9['shift']());}catch(_0x3cb275){_0x37c3e9['push'](_0x37c3e9['shift']());}}}(a200_0x48e1,0x23126));function a200_0x48e1(){const _0x2f55d2=['42376ssnDqw','win32','477tqcuzm','263450xZIHfI','.cmd','platform','1554749vOLZVj','3ZnFPRi','637450uaxETc','2035CMRPjW','151058iwlbIv','68fhfLlt','40haSJKJ','612168rFncOH'];a200_0x48e1=function(){return _0x2f55d2;};return a200_0x48e1();}export const isWindows=process[a200_0x1d4488(0x81)]===a200_0x1d4488(0x7d);export function resolveNpmBin(_0x33d557){const _0x507a6b=a200_0x1d4488;return isWindows?_0x33d557+_0x507a6b(0x80):_0x33d557;}
1
+ function a200_0x59a9(){const _0x69d4a3=['3eAutVI','22172BwWcgX','24062LUAHnd','1149120XfjmkP','win32','1950rQsHBY','4tYAxnA','1317120obkMus','21690XRmfwB','757248OQsJTu','863180xvEwXa'];a200_0x59a9=function(){return _0x69d4a3;};return a200_0x59a9();}const a200_0x52f529=a200_0x4630;function a200_0x4630(_0xabcc8e,_0x36d73a){_0xabcc8e=_0xabcc8e-0x19d;const _0x59a9b0=a200_0x59a9();let _0x463091=_0x59a9b0[_0xabcc8e];return _0x463091;}(function(_0x5e54c9,_0x115d15){const _0x6bfe5c=a200_0x4630,_0xfc5f73=_0x5e54c9();while(!![]){try{const _0x4b6fc1=parseInt(_0x6bfe5c(0x1a3))/0x1+-parseInt(_0x6bfe5c(0x1a2))/0x2*(-parseInt(_0x6bfe5c(0x1a1))/0x3)+-parseInt(_0x6bfe5c(0x1a7))/0x4*(parseInt(_0x6bfe5c(0x1a0))/0x5)+parseInt(_0x6bfe5c(0x19f))/0x6+-parseInt(_0x6bfe5c(0x19d))/0x7+-parseInt(_0x6bfe5c(0x1a4))/0x8+-parseInt(_0x6bfe5c(0x19e))/0x9*(-parseInt(_0x6bfe5c(0x1a6))/0xa);if(_0x4b6fc1===_0x115d15)break;else _0xfc5f73['push'](_0xfc5f73['shift']());}catch(_0x359a63){_0xfc5f73['push'](_0xfc5f73['shift']());}}}(a200_0x59a9,0x1ef96));export const isWindows=process['platform']===a200_0x52f529(0x1a5);export function resolveNpmBin(_0x47ea4d){return isWindows?_0x47ea4d+'.cmd':_0x47ea4d;}
@@ -1 +1 @@
1
- (function(_0x11c879,_0x49ff71){const _0x10694d=a201_0x35e0,_0x20f0cc=_0x11c879();while(!![]){try{const _0x18b081=parseInt(_0x10694d(0x113))/0x1*(-parseInt(_0x10694d(0x115))/0x2)+-parseInt(_0x10694d(0x11a))/0x3+parseInt(_0x10694d(0x11c))/0x4+parseInt(_0x10694d(0x10a))/0x5*(parseInt(_0x10694d(0x10f))/0x6)+parseInt(_0x10694d(0x10c))/0x7*(parseInt(_0x10694d(0x108))/0x8)+-parseInt(_0x10694d(0x104))/0x9*(parseInt(_0x10694d(0x111))/0xa)+-parseInt(_0x10694d(0x114))/0xb;if(_0x18b081===_0x49ff71)break;else _0x20f0cc['push'](_0x20f0cc['shift']());}catch(_0x351eaf){_0x20f0cc['push'](_0x20f0cc['shift']());}}}(a201_0x21e2,0x86722));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';function a201_0x21e2(){const _0x184f2e=['45575JutETE','application/json','9814bUqIJz','/rules/rules.json','lastUpdated','318abENrJ','lovrabet_rules.mdc','226810OhxjuH','catch','39cImqXX','632324BmIuAy','32884YjqwoX','content','status','json','string','537384ZShfXe','CDN\x20返回数据格式错误','3119256CyedFj','297VSQmgW','utf-8','agents.md','.cursor/rules','5216rGHioX','statusText'];a201_0x21e2=function(){return _0x184f2e;};return a201_0x21e2();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x5d68e2=a201_0x35e0,_0x3a94c6=getTemplateBaseUrl();return _0x3a94c6+_0x5d68e2(0x10d);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x40406b=a201_0x35e0,_0x143016=getRulesCdnUrl(),_0x4d7e6b=await fetch(_0x143016,{'headers':{'Accept':_0x40406b(0x10b)}});if(!_0x4d7e6b['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x4d7e6b[_0x40406b(0x117)]+'\x20'+_0x4d7e6b[_0x40406b(0x109)]);const _0x20b1f2=await _0x4d7e6b[_0x40406b(0x118)]();if(!_0x20b1f2[_0x40406b(0x116)]||typeof _0x20b1f2[_0x40406b(0x116)]!==_0x40406b(0x119))throw new Error(_0x40406b(0x11b));return _0x20b1f2;}export async function getRulesContent(){try{const _0x5e8a45=await fetchRulesFromCDN();return _0x5e8a45['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x4b3eb3){const _0x289c82=a201_0x35e0,_0x5c3900=await fetchRulesFromCDN()[_0x289c82(0x112)](()=>null);let _0x57932b;_0x5c3900?(_0x57932b=_0x5c3900[_0x289c82(0x116)],_0x5c3900[_0x289c82(0x10e)]&&(_0x57932b=appendUpdateTime(_0x57932b,_0x5c3900['lastUpdated']))):_0x57932b=readLocalTemplate();const _0x2c150b=dirname(_0x4b3eb3);!existsSync(_0x2c150b)&&mkdirSync(_0x2c150b,{'recursive':!![]}),writeFileSync(_0x4b3eb3,_0x57932b,_0x289c82(0x105));}function a201_0x35e0(_0x24981a,_0x4035e1){_0x24981a=_0x24981a-0x104;const _0x21e283=a201_0x21e2();let _0x35e0dc=_0x21e283[_0x24981a];return _0x35e0dc;}export async function copyRulesToCursor(_0x19c65a){const _0x3574ca=a201_0x35e0,_0x3d7fc7=join(_0x19c65a,_0x3574ca(0x107)),_0x57ffa5=join(_0x3d7fc7,_0x3574ca(0x110));if(existsSync(_0x57ffa5))return![];return await writeRulesFile(_0x57ffa5),!![];}export async function copyRulesToAgentsMd(_0x25e06c){const _0x287d63=a201_0x35e0,_0x355cea=join(_0x25e06c,_0x287d63(0x106));if(existsSync(_0x355cea))return![];return await writeRulesFile(_0x355cea),!![];}
1
+ const a201_0x1b9d61=a201_0x2a31;(function(_0x680c7b,_0xaa198c){const _0x5608b9=a201_0x2a31,_0x5f4edc=_0x680c7b();while(!![]){try{const _0x250921=-parseInt(_0x5608b9(0x1a6))/0x1*(-parseInt(_0x5608b9(0x1a3))/0x2)+-parseInt(_0x5608b9(0x1ba))/0x3+parseInt(_0x5608b9(0x1af))/0x4+parseInt(_0x5608b9(0x1b5))/0x5+-parseInt(_0x5608b9(0x1a5))/0x6+parseInt(_0x5608b9(0x1aa))/0x7*(parseInt(_0x5608b9(0x1b3))/0x8)+parseInt(_0x5608b9(0x1a4))/0x9*(-parseInt(_0x5608b9(0x1b7))/0xa);if(_0x250921===_0xaa198c)break;else _0x5f4edc['push'](_0x5f4edc['shift']());}catch(_0x386619){_0x5f4edc['push'](_0x5f4edc['shift']());}}}(a201_0x5eb1,0x4a98d));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 _0x36015b=a201_0x2a31,_0x4a6999=getTemplateBaseUrl();return _0x4a6999+_0x36015b(0x1b9);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a201_0x1b9d61(0x1b0));export async function fetchRulesFromCDN(){const _0x251ef8=a201_0x1b9d61,_0x597126=getRulesCdnUrl(),_0x616b3f=await fetch(_0x597126,{'headers':{'Accept':_0x251ef8(0x1ad)}});if(!_0x616b3f['ok'])throw new Error(_0x251ef8(0x1b2)+_0x616b3f[_0x251ef8(0x1a9)]+'\x20'+_0x616b3f[_0x251ef8(0x1ae)]);const _0x53704f=await _0x616b3f['json']();if(!_0x53704f[_0x251ef8(0x1a7)]||typeof _0x53704f[_0x251ef8(0x1a7)]!==_0x251ef8(0x1ab))throw new Error('CDN\x20返回数据格式错误');return _0x53704f;}export async function getRulesContent(){const _0xaee06e=a201_0x1b9d61;try{const _0x3b9f62=await fetchRulesFromCDN();return _0x3b9f62[_0xaee06e(0x1a7)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x52ec5d=a201_0x1b9d61;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,'utf-8');throw new Error(_0x52ec5d(0x1ac)+LOCAL_TEMPLATE_PATH);}function a201_0x2a31(_0x2347c3,_0x2d09e7){_0x2347c3=_0x2347c3-0x1a3;const _0x5eb110=a201_0x5eb1();let _0x2a3199=_0x5eb110[_0x2347c3];return _0x2a3199;}export async function writeRulesFile(_0x1364fc){const _0x280121=a201_0x1b9d61,_0x9e5c16=await fetchRulesFromCDN()['catch'](()=>null);let _0x4ce869;_0x9e5c16?(_0x4ce869=_0x9e5c16['content'],_0x9e5c16[_0x280121(0x1a8)]&&(_0x4ce869=appendUpdateTime(_0x4ce869,_0x9e5c16['lastUpdated']))):_0x4ce869=readLocalTemplate();const _0x4b3764=dirname(_0x1364fc);!existsSync(_0x4b3764)&&mkdirSync(_0x4b3764,{'recursive':!![]}),writeFileSync(_0x1364fc,_0x4ce869,_0x280121(0x1b4));}export async function copyRulesToCursor(_0x2455a9){const _0x42f4ab=a201_0x1b9d61,_0x37121b=join(_0x2455a9,_0x42f4ab(0x1b8)),_0x227d6a=join(_0x37121b,_0x42f4ab(0x1b6));if(existsSync(_0x227d6a))return![];return await writeRulesFile(_0x227d6a),!![];}function a201_0x5eb1(){const _0x45290f=['application/json','statusText','640020JNcNkS','../../templates/rules/lovrabet_rules.mdc.tpl','agents.md','CDN\x20请求失败:\x20','269456cSyuQc','utf-8','1727795ucYMoW','lovrabet_rules.mdc','10RsKPPI','.cursor/rules','/rules/rules.json','1210701muAeRN','194nbxmVi','2269467wuaDji','1234890HbREXv','4042NdEckW','content','lastUpdated','status','56mcQkGR','string','本地模板文件不存在:\x20'];a201_0x5eb1=function(){return _0x45290f;};return a201_0x5eb1();}export async function copyRulesToAgentsMd(_0x153d93){const _0x39d019=a201_0x1b9d61,_0x169836=join(_0x153d93,_0x39d019(0x1b1));if(existsSync(_0x169836))return![];return await writeRulesFile(_0x169836),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2b2adb){return new Promise(_0x383970=>setTimeout(_0x383970,_0x2b2adb));}
1
+ export function sleep(_0xd48f58){return new Promise(_0x162f28=>setTimeout(_0x162f28,_0xd48f58));}
@@ -1 +1 @@
1
- const a203_0x272495=a203_0x11bf;(function(_0x250d15,_0x43c8f3){const _0x1eb2d0=a203_0x11bf,_0x10181d=_0x250d15();while(!![]){try{const _0x463cb3=parseInt(_0x1eb2d0(0x14a))/0x1*(parseInt(_0x1eb2d0(0x163))/0x2)+parseInt(_0x1eb2d0(0x164))/0x3+-parseInt(_0x1eb2d0(0x171))/0x4+-parseInt(_0x1eb2d0(0x166))/0x5*(parseInt(_0x1eb2d0(0x18a))/0x6)+parseInt(_0x1eb2d0(0x14c))/0x7+-parseInt(_0x1eb2d0(0x14f))/0x8+-parseInt(_0x1eb2d0(0x15a))/0x9;if(_0x463cb3===_0x43c8f3)break;else _0x10181d['push'](_0x10181d['shift']());}catch(_0x15bdb1){_0x10181d['push'](_0x10181d['shift']());}}}(a203_0x30a6,0x7ca04));import a203_0x534896 from'node:fs';import a203_0x568bc0 from'node:path';function a203_0x30a6(){const _0x32632e=['formatLocalTimestamp','\x0a\x20\x20\x20\x20{\x20','模板内容替换完成','.tsx','processDirectory','LOVRABET','replaceApiContent','endsWith','toUpperCase','2022IRfHgz','.tpl','template','1443rnarhy','getFullYear','3768653kiyKnR','getMonth','promises','1923208MwoYho','charAt','getDate','.md','readdir','开始处理模板内容替换','模板内容替换失败','info','name:\x20\x22','includes','extname','6378435sMDkRc','copyFile','error','utf8','map','.ts','slice','.css','.jsx','686LkCjRp','2422719TuFxdN','isDirectory','875UVlXOb','now','name','YourModel','toComponentName','processTemplate','split','push','api','writeFile','toDisplayTitle','1289368ljvwkK','.js','alias','\x20},','toISOString','replace','pad','datasetCode:\x20\x22','processFile','replaceContent','readFile','mkdir','getSeconds','tableName:\x20\x22','success','join'];a203_0x30a6=function(){return _0x32632e;};return a203_0x30a6();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a203_0x11bf(_0x2bd653,_0x22a478){_0x2bd653=_0x2bd653-0x14a;const _0x30a6e5=a203_0x30a6();let _0x11bf1f=_0x30a6e5[_0x2bd653];return _0x11bf1f;}export class TemplateReplacer{static[a203_0x272495(0x177)](_0x1312d9){return String(_0x1312d9)['padStart'](0x2,'0');}static[a203_0x272495(0x181)](_0x598d59){const _0x1c4bd4=a203_0x272495,_0x2f4623=_0x598d59[_0x1c4bd4(0x14b)](),_0x29b222=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x14d)]()+0x1),_0x5ad24b=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x151)]()),_0x16a01d=this['pad'](_0x598d59['getHours']()),_0x125cce=this[_0x1c4bd4(0x177)](_0x598d59['getMinutes']()),_0x5d405d=this[_0x1c4bd4(0x177)](_0x598d59[_0x1c4bd4(0x17d)]());return{'createdAt':_0x2f4623+'-'+_0x29b222+'-'+_0x5ad24b+'\x20'+_0x16a01d+':'+_0x125cce+':'+_0x5d405d,'createdDate':_0x2f4623+'-'+_0x29b222+'-'+_0x5ad24b,'createdTime':_0x16a01d+':'+_0x125cce+':'+_0x5d405d};}static['toComponentName'](_0x501157){const _0x3973b1=a203_0x272495,_0x21e8e7=_0x501157['split']('/')['pop']()||_0x501157;return _0x21e8e7[_0x3973b1(0x16c)]('-')[_0x3973b1(0x15e)](_0x31e0a2=>_0x31e0a2[_0x3973b1(0x150)](0x0)[_0x3973b1(0x189)]()+_0x31e0a2[_0x3973b1(0x160)](0x1)['toLowerCase']())[_0x3973b1(0x180)]('');}static[a203_0x272495(0x170)](_0x91f6ac){const _0x667478=a203_0x272495,_0x5bc2f2=_0x91f6ac[_0x667478(0x16c)]('/')['pop']()||_0x91f6ac;return _0x5bc2f2[_0x667478(0x16c)]('-')['map'](_0x1e9478=>_0x1e9478[_0x667478(0x150)](0x0)[_0x667478(0x189)]()+_0x1e9478[_0x667478(0x160)](0x1)['toLowerCase']())[_0x667478(0x180)]('\x20');}static[a203_0x272495(0x17a)](_0x389559,_0x3b28e2,_0x20541b){const _0x259a23=a203_0x272495,_0x852678=this[_0x259a23(0x16a)](_0x3b28e2),_0x498238=this[_0x259a23(0x170)](_0x3b28e2),{createdAt:_0x1799fb,createdDate:_0x264b58,createdTime:_0x2e12e9}=this[_0x259a23(0x181)](new Date());let _0x4c78fc=_0x389559['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x259a23(0x176)](/\{ComponentName\}/g,_0x852678)['replace'](/\{DisplayTitle\}/g,_0x498238)[_0x259a23(0x176)](/\{PageName\}/g,_0x3b28e2)[_0x259a23(0x176)](/\{TemplateName\}/g,_0x20541b)[_0x259a23(0x176)](/\{CreatedAt\}/g,_0x1799fb)[_0x259a23(0x176)](/\{CreatedDate\}/g,_0x264b58)['replace'](/\{CreatedTime\}/g,_0x2e12e9);return _0x4c78fc;}static[a203_0x272495(0x187)](_0x2824df,_0xe75d33,_0x15ec59,_0x5f05b1,_0x4bb47f,_0x1aef63,_0x590e7f,_0x5942b7){const _0x4cb574=a203_0x272495,_0x554a9f=new Date(),_0x1969f1=_0x554a9f[_0x4cb574(0x175)](),_0x38c6c7=_0x15ec59['map'](_0x3b4ef4=>{const _0x4ac0d1=_0x4cb574,_0x35598e=[_0x4ac0d1(0x178)+_0x3b4ef4['datasetCode']+'\x22',_0x4ac0d1(0x17e)+_0x3b4ef4['tableName']+'\x22',_0x4ac0d1(0x157)+_0x3b4ef4[_0x4ac0d1(0x168)]+'\x22'];return _0x3b4ef4[_0x4ac0d1(0x173)]&&_0x35598e[_0x4ac0d1(0x16d)]('alias:\x20\x22'+_0x3b4ef4[_0x4ac0d1(0x173)]+'\x22'),_0x4ac0d1(0x182)+_0x35598e[_0x4ac0d1(0x180)](',\x20')+_0x4ac0d1(0x174);})[_0x4cb574(0x180)](''),_0x14e8b3=_0x5f05b1||_0x15ec59[0x0]?.[_0x4cb574(0x173)]||_0x4cb574(0x169);let _0x4943e7=_0x2824df[_0x4cb574(0x176)](/\{AppCode\}/g,_0xe75d33)[_0x4cb574(0x176)](/\{ModelConfigs\}/g,_0x38c6c7)[_0x4cb574(0x176)](/\{ExampleModelName\}/g,_0x14e8b3)[_0x4cb574(0x176)](/\{ApiFileName\}/g,_0x4bb47f||_0x4cb574(0x16e))[_0x4cb574(0x176)](/\{ConfigName\}/g,_0x1aef63||'default')[_0x4cb574(0x176)](/\{ClientConfigParam\}/g,_0x590e7f||'')['replace'](/\{VarPrefix\}/g,_0x5942b7||_0x4cb574(0x186))['replace'](/\{CreatedAt\}/g,_0x1969f1);return _0x4943e7;}static async[a203_0x272495(0x16b)](_0x3b7220,_0x5180d9,_0x21c515,_0xc4e5af,_0x327bd8=!![]){const _0x446cbb=a203_0x272495,_0x10e174=Date['now']();try{_0x327bd8&&logger[_0x446cbb(0x156)](_0x446cbb(0x18c),_0x446cbb(0x154),{'templatePath':_0x3b7220,'targetPath':_0x5180d9,'pageName':_0x21c515,'templateName':_0xc4e5af});await a203_0x534896['promises'][_0x446cbb(0x17c)](_0x5180d9,{'recursive':!![]}),await this['processDirectory'](_0x3b7220,_0x5180d9,_0x21c515,_0xc4e5af);if(_0x327bd8){const _0x5b07ac=Date[_0x446cbb(0x167)]()-_0x10e174;logger[_0x446cbb(0x17f)]('template',_0x446cbb(0x183),_0x5b07ac,{'pageName':_0x21c515,'templateName':_0xc4e5af});}}catch(_0x558382){if(_0x327bd8){const _0xdd7bc5=Date[_0x446cbb(0x167)]()-_0x10e174;logger[_0x446cbb(0x15c)]('template',_0x446cbb(0x155),{'templatePath':_0x3b7220,'targetPath':_0x5180d9,'pageName':_0x21c515,'templateName':_0xc4e5af,'error':_0x558382 instanceof Error?_0x558382['message']:String(_0x558382),'duration':_0xdd7bc5});}throw _0x558382;}}static async[a203_0x272495(0x185)](_0x31bb2f,_0x4e6791,_0x5b1c74,_0x1fdfc3){const _0x10b83c=a203_0x272495,_0x13d90d=await a203_0x534896[_0x10b83c(0x14e)][_0x10b83c(0x153)](_0x31bb2f,{'withFileTypes':!![]});for(const _0x325229 of _0x13d90d){const _0x116558=a203_0x568bc0[_0x10b83c(0x180)](_0x31bb2f,_0x325229[_0x10b83c(0x168)]);let _0x228a3e=a203_0x568bc0['join'](_0x4e6791,_0x325229['name']);_0x325229[_0x10b83c(0x168)]['endsWith'](_0x10b83c(0x18b))&&(_0x228a3e=a203_0x568bc0[_0x10b83c(0x180)](_0x4e6791,_0x325229[_0x10b83c(0x168)]['replace'](/\.tpl$/,'')));if(_0x325229[_0x10b83c(0x165)]())await a203_0x534896[_0x10b83c(0x14e)]['mkdir'](_0x228a3e,{'recursive':!![]}),await this['processDirectory'](_0x116558,_0x228a3e,_0x5b1c74,_0x1fdfc3);else _0x325229['isFile']()&&await this[_0x10b83c(0x179)](_0x116558,_0x228a3e,_0x5b1c74,_0x1fdfc3);}}static async['processFile'](_0x30039a,_0x76d8d9,_0x571945,_0x5d3070){const _0x490385=a203_0x272495,_0x5d73f2=a203_0x568bc0[_0x490385(0x159)](_0x30039a)['toLowerCase']();_0x30039a['endsWith'](_0x490385(0x18b))&&(_0x76d8d9=_0x76d8d9['replace'](/\.tpl$/,''));const _0x2701b2=[_0x490385(0x184),_0x490385(0x15f),_0x490385(0x162),_0x490385(0x172),'.json',_0x490385(0x152),_0x490385(0x161),'.scss',_0x490385(0x18b)];if(_0x2701b2[_0x490385(0x158)](_0x5d73f2)||_0x30039a[_0x490385(0x188)](_0x490385(0x18b))){const _0x3c64f5=await a203_0x534896[_0x490385(0x14e)][_0x490385(0x17b)](_0x30039a,_0x490385(0x15d)),_0x1b2189=this[_0x490385(0x17a)](_0x3c64f5,_0x571945,_0x5d3070);await a203_0x534896['promises'][_0x490385(0x16f)](_0x76d8d9,_0x1b2189,'utf8');}else await a203_0x534896[_0x490385(0x14e)][_0x490385(0x15b)](_0x30039a,_0x76d8d9);}}
1
+ const a203_0x35f48f=a203_0x48b3;function a203_0x21f8(){const _0x53b2af=['1240734GmmOjJ','pad','809160goMpQA','readdir','模板内容替换完成','charAt','YourModel','error','join','replaceContent','padStart','promises','copyFile','slice','toUpperCase','4570176DJXLPe','12822UKgAIt','LOVRABET','5584329lrCxyw','formatLocalTimestamp','toLowerCase','.tsx','utf8','message','alias:\x20\x22','success','push','replace','getFullYear','datasetCode:\x20\x22','.ts','readFile','.jsx','name:\x20\x22','default','map','template','alias','getSeconds','getMonth','tableName','1717944CrHbvM','.tpl','getHours','8820856NECWZT','name','.js','60XFKBIO','1415ORdvee','extname','.css','tableName:\x20\x22','模板内容替换失败','7uLVVEC','\x0a\x20\x20\x20\x20{\x20','getMinutes','.json','processDirectory','toDisplayTitle','开始处理模板内容替换','replaceApiContent','pop','toISOString','split','mkdir','isFile','info','processFile','api','toComponentName','now'];a203_0x21f8=function(){return _0x53b2af;};return a203_0x21f8();}(function(_0x3c0bdd,_0x840903){const _0x9adec6=a203_0x48b3,_0x1cb209=_0x3c0bdd();while(!![]){try{const _0x3196eb=-parseInt(_0x9adec6(0x170))/0x1+-parseInt(_0x9adec6(0x16e))/0x2+-parseInt(_0x9adec6(0x17d))/0x3+-parseInt(_0x9adec6(0x197))/0x4+parseInt(_0x9adec6(0x19e))/0x5*(-parseInt(_0x9adec6(0x17e))/0x6)+-parseInt(_0x9adec6(0x1a3))/0x7*(-parseInt(_0x9adec6(0x19a))/0x8)+-parseInt(_0x9adec6(0x180))/0x9*(-parseInt(_0x9adec6(0x19d))/0xa);if(_0x3196eb===_0x840903)break;else _0x1cb209['push'](_0x1cb209['shift']());}catch(_0x59da40){_0x1cb209['push'](_0x1cb209['shift']());}}}(a203_0x21f8,0xccaad));import a203_0x21ba92 from'node:fs';function a203_0x48b3(_0x23972b,_0xa1fef8){_0x23972b=_0x23972b-0x16b;const _0x21f885=a203_0x21f8();let _0x48b367=_0x21f885[_0x23972b];return _0x48b367;}import a203_0x345cfc from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3870b2){const _0x542ab5=a203_0x48b3;return String(_0x3870b2)[_0x542ab5(0x178)](0x2,'0');}static[a203_0x35f48f(0x181)](_0x109de0){const _0x12750b=a203_0x35f48f,_0x2d8550=_0x109de0[_0x12750b(0x18a)](),_0x329933=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x195)]()+0x1),_0x493588=this[_0x12750b(0x16f)](_0x109de0['getDate']()),_0x59993c=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x199)]()),_0x477878=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x1a5)]()),_0xa95230=this[_0x12750b(0x16f)](_0x109de0[_0x12750b(0x194)]());return{'createdAt':_0x2d8550+'-'+_0x329933+'-'+_0x493588+'\x20'+_0x59993c+':'+_0x477878+':'+_0xa95230,'createdDate':_0x2d8550+'-'+_0x329933+'-'+_0x493588,'createdTime':_0x59993c+':'+_0x477878+':'+_0xa95230};}static[a203_0x35f48f(0x16c)](_0x30a530){const _0x237ece=a203_0x35f48f,_0x365537=_0x30a530[_0x237ece(0x1ad)]('/')[_0x237ece(0x1ab)]()||_0x30a530;return _0x365537['split']('-')[_0x237ece(0x191)](_0x3a37e1=>_0x3a37e1[_0x237ece(0x173)](0x0)[_0x237ece(0x17c)]()+_0x3a37e1[_0x237ece(0x17b)](0x1)['toLowerCase']())[_0x237ece(0x176)]('');}static[a203_0x35f48f(0x1a8)](_0x21cb58){const _0x490caf=a203_0x35f48f,_0x29d1a7=_0x21cb58[_0x490caf(0x1ad)]('/')[_0x490caf(0x1ab)]()||_0x21cb58;return _0x29d1a7[_0x490caf(0x1ad)]('-')[_0x490caf(0x191)](_0x52250e=>_0x52250e[_0x490caf(0x173)](0x0)[_0x490caf(0x17c)]()+_0x52250e[_0x490caf(0x17b)](0x1)[_0x490caf(0x182)]())[_0x490caf(0x176)]('\x20');}static[a203_0x35f48f(0x177)](_0x5d6d05,_0x5418e1,_0x24166c){const _0x3b2e70=a203_0x35f48f,_0x386c66=this['toComponentName'](_0x5418e1),_0x22f433=this[_0x3b2e70(0x1a8)](_0x5418e1),{createdAt:_0x35ffb8,createdDate:_0x187e47,createdTime:_0x1fdb16}=this[_0x3b2e70(0x181)](new Date());let _0x203221=_0x5d6d05['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x386c66)['replace'](/\{DisplayTitle\}/g,_0x22f433)[_0x3b2e70(0x189)](/\{PageName\}/g,_0x5418e1)[_0x3b2e70(0x189)](/\{TemplateName\}/g,_0x24166c)[_0x3b2e70(0x189)](/\{CreatedAt\}/g,_0x35ffb8)[_0x3b2e70(0x189)](/\{CreatedDate\}/g,_0x187e47)[_0x3b2e70(0x189)](/\{CreatedTime\}/g,_0x1fdb16);return _0x203221;}static[a203_0x35f48f(0x1aa)](_0x147554,_0x220eeb,_0x2cf094,_0x8023f,_0x2a9486,_0x237721,_0x249d53,_0x51dc67){const _0x1ef6c4=a203_0x35f48f,_0x54d785=new Date(),_0x922ef4=_0x54d785[_0x1ef6c4(0x1ac)](),_0x7a6ab7=_0x2cf094['map'](_0x38c63b=>{const _0x10d075=_0x1ef6c4,_0x3b95a6=[_0x10d075(0x18b)+_0x38c63b['datasetCode']+'\x22',_0x10d075(0x1a1)+_0x38c63b[_0x10d075(0x196)]+'\x22',_0x10d075(0x18f)+_0x38c63b[_0x10d075(0x19b)]+'\x22'];return _0x38c63b['alias']&&_0x3b95a6[_0x10d075(0x188)](_0x10d075(0x186)+_0x38c63b[_0x10d075(0x193)]+'\x22'),_0x10d075(0x1a4)+_0x3b95a6[_0x10d075(0x176)](',\x20')+'\x20},';})['join'](''),_0x501729=_0x8023f||_0x2cf094[0x0]?.[_0x1ef6c4(0x193)]||_0x1ef6c4(0x174);let _0x50beb9=_0x147554[_0x1ef6c4(0x189)](/\{AppCode\}/g,_0x220eeb)['replace'](/\{ModelConfigs\}/g,_0x7a6ab7)[_0x1ef6c4(0x189)](/\{ExampleModelName\}/g,_0x501729)[_0x1ef6c4(0x189)](/\{ApiFileName\}/g,_0x2a9486||_0x1ef6c4(0x16b))['replace'](/\{ConfigName\}/g,_0x237721||_0x1ef6c4(0x190))[_0x1ef6c4(0x189)](/\{ClientConfigParam\}/g,_0x249d53||'')[_0x1ef6c4(0x189)](/\{VarPrefix\}/g,_0x51dc67||_0x1ef6c4(0x17f))[_0x1ef6c4(0x189)](/\{CreatedAt\}/g,_0x922ef4);return _0x50beb9;}static async['processTemplate'](_0x3b72e3,_0x98e15d,_0x46dbd1,_0x722477,_0xb07b51=!![]){const _0x539f66=a203_0x35f48f,_0x4b1e9f=Date[_0x539f66(0x16d)]();try{_0xb07b51&&logger[_0x539f66(0x1b0)](_0x539f66(0x192),_0x539f66(0x1a9),{'templatePath':_0x3b72e3,'targetPath':_0x98e15d,'pageName':_0x46dbd1,'templateName':_0x722477});await a203_0x21ba92[_0x539f66(0x179)][_0x539f66(0x1ae)](_0x98e15d,{'recursive':!![]}),await this[_0x539f66(0x1a7)](_0x3b72e3,_0x98e15d,_0x46dbd1,_0x722477);if(_0xb07b51){const _0x530998=Date[_0x539f66(0x16d)]()-_0x4b1e9f;logger[_0x539f66(0x187)]('template',_0x539f66(0x172),_0x530998,{'pageName':_0x46dbd1,'templateName':_0x722477});}}catch(_0x1745b1){if(_0xb07b51){const _0x538bd8=Date[_0x539f66(0x16d)]()-_0x4b1e9f;logger[_0x539f66(0x175)]('template',_0x539f66(0x1a2),{'templatePath':_0x3b72e3,'targetPath':_0x98e15d,'pageName':_0x46dbd1,'templateName':_0x722477,'error':_0x1745b1 instanceof Error?_0x1745b1[_0x539f66(0x185)]:String(_0x1745b1),'duration':_0x538bd8});}throw _0x1745b1;}}static async[a203_0x35f48f(0x1a7)](_0x25fcd5,_0x32aafa,_0x342d6b,_0x4da4e7){const _0x1ab8dd=a203_0x35f48f,_0x5e2d50=await a203_0x21ba92[_0x1ab8dd(0x179)][_0x1ab8dd(0x171)](_0x25fcd5,{'withFileTypes':!![]});for(const _0x3ec1b1 of _0x5e2d50){const _0x5f1d7c=a203_0x345cfc[_0x1ab8dd(0x176)](_0x25fcd5,_0x3ec1b1['name']);let _0x128249=a203_0x345cfc[_0x1ab8dd(0x176)](_0x32aafa,_0x3ec1b1['name']);_0x3ec1b1[_0x1ab8dd(0x19b)]['endsWith']('.tpl')&&(_0x128249=a203_0x345cfc[_0x1ab8dd(0x176)](_0x32aafa,_0x3ec1b1[_0x1ab8dd(0x19b)]['replace'](/\.tpl$/,'')));if(_0x3ec1b1['isDirectory']())await a203_0x21ba92[_0x1ab8dd(0x179)][_0x1ab8dd(0x1ae)](_0x128249,{'recursive':!![]}),await this[_0x1ab8dd(0x1a7)](_0x5f1d7c,_0x128249,_0x342d6b,_0x4da4e7);else _0x3ec1b1[_0x1ab8dd(0x1af)]()&&await this['processFile'](_0x5f1d7c,_0x128249,_0x342d6b,_0x4da4e7);}}static async[a203_0x35f48f(0x1b1)](_0x4cc844,_0x468644,_0x4463fd,_0x434102){const _0x2a5012=a203_0x35f48f,_0x591f3e=a203_0x345cfc[_0x2a5012(0x19f)](_0x4cc844)[_0x2a5012(0x182)]();_0x4cc844['endsWith'](_0x2a5012(0x198))&&(_0x468644=_0x468644[_0x2a5012(0x189)](/\.tpl$/,''));const _0x2b8405=[_0x2a5012(0x183),_0x2a5012(0x18c),_0x2a5012(0x18e),_0x2a5012(0x19c),_0x2a5012(0x1a6),'.md',_0x2a5012(0x1a0),'.scss',_0x2a5012(0x198)];if(_0x2b8405['includes'](_0x591f3e)||_0x4cc844['endsWith'](_0x2a5012(0x198))){const _0x106d9d=await a203_0x21ba92[_0x2a5012(0x179)][_0x2a5012(0x18d)](_0x4cc844,'utf8'),_0x1077ff=this[_0x2a5012(0x177)](_0x106d9d,_0x4463fd,_0x434102);await a203_0x21ba92['promises']['writeFile'](_0x468644,_0x1077ff,_0x2a5012(0x184));}else await a203_0x21ba92['promises'][_0x2a5012(0x17a)](_0x4cc844,_0x468644);}}