@lovrabet/rabetbase-cli 2.1.7-beta.7 → 2.1.7-beta.8

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 (196) 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/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a181_0x29334a=a181_0x52b2;(function(_0x3b9817,_0x4a766c){const _0x4c9bd1=a181_0x52b2,_0x450437=_0x3b9817();while(!![]){try{const _0x41a0d1=-parseInt(_0x4c9bd1(0x1e3))/0x1+-parseInt(_0x4c9bd1(0x1f0))/0x2+parseInt(_0x4c9bd1(0x1cb))/0x3*(-parseInt(_0x4c9bd1(0x1ee))/0x4)+parseInt(_0x4c9bd1(0x1eb))/0x5*(parseInt(_0x4c9bd1(0x1e5))/0x6)+-parseInt(_0x4c9bd1(0x1d6))/0x7*(-parseInt(_0x4c9bd1(0x1ea))/0x8)+-parseInt(_0x4c9bd1(0x1d3))/0x9+-parseInt(_0x4c9bd1(0x1cc))/0xa*(-parseInt(_0x4c9bd1(0x1dc))/0xb);if(_0x41a0d1===_0x4a766c)break;else _0x450437['push'](_0x450437['shift']());}catch(_0x1a6f6c){_0x450437['push'](_0x450437['shift']());}}}(a181_0x111e,0x5f2d3));import a181_0x5c362e from'node:fs';import a181_0xdf734e from'node:path';function a181_0x111e(){const _0x1edbbc=['5DGZvoH','readFileSync','existsSync','8JydzDj','join','513112lyAoTY','devDependencies','utf8','npm\x20install\x20','671676GYTHJf','92120okPwdD','coerce','@lovrabet/sdk','\x1b[33m','some','test','\x1b[1m','5911407qErnJv','↪\x20SDK\x20update\x20available','log','77wbJsUw','sdk','parse','node_modules','version','1.2.0','1067VtBunm','dependencies','latest','packageName','\x20\x20\x20Current\x20version:\x20','needsUpgrade','\x1b[0m','387888mLuqQb','package.json','4049286pGgDhp','stableVersion','minVersion','utf-8','node','414872adVYsE'];a181_0x111e=function(){return _0x1edbbc;};return a181_0x111e();}import a181_0x592173 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x29334a(0x1db);function isNonNumericVersion(_0xb287d4){const _0x7026d4=a181_0x29334a,_0x221b57=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x221b57[_0x7026d4(0x1d0)](_0x3a3f4d=>_0x3a3f4d[_0x7026d4(0x1d1)](_0xb287d4));}function getInstalledVersion(_0x5cced9,_0x1960a3){const _0x27825b=a181_0x29334a;try{const _0x297597=a181_0xdf734e[_0x27825b(0x1ef)](_0x5cced9,_0x27825b(0x1d9),_0x1960a3,'package.json');if(a181_0x5c362e[_0x27825b(0x1ed)](_0x297597)){const _0x580799=JSON[_0x27825b(0x1d8)](a181_0x5c362e[_0x27825b(0x1ec)](_0x297597,_0x27825b(0x1e8)));return _0x580799[_0x27825b(0x1da)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x33e3f2=a181_0x29334a;try{const _0x1507a5=await getCdnConfig();return _0x1507a5?.[_0x33e3f2(0x1d7)]?.[_0x33e3f2(0x1e9)]?.[_0x33e3f2(0x1e6)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x2dba83=a181_0x29334a;try{const _0x1735f2=await getCdnConfig();return _0x1735f2?.[_0x2dba83(0x1d7)]?.['node']?.['packageName']||_0x2dba83(0x1ce);}catch{return _0x2dba83(0x1ce);}}function a181_0x52b2(_0xed0f7d,_0x24a30e){_0xed0f7d=_0xed0f7d-0x1c9;const _0x111e0a=a181_0x111e();let _0x52b2a4=_0x111e0a[_0xed0f7d];return _0x52b2a4;}export async function checkSdkVersion(_0x50931f){const _0xa906d6=a181_0x29334a,_0x49b147=a181_0xdf734e[_0xa906d6(0x1ef)](_0x50931f,_0xa906d6(0x1e4)),[_0x545e1f,_0x558485]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x578924=_0x545e1f||FALLBACK_MIN_SDK_VERSION;if(!a181_0x5c362e[_0xa906d6(0x1ed)](_0x49b147))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x578924,'packageName':_0x558485,'stableVersion':_0x545e1f};try{const _0x17fd76=JSON[_0xa906d6(0x1d8)](a181_0x5c362e[_0xa906d6(0x1ec)](_0x49b147,_0xa906d6(0x1c9))),_0x1656aa=_0x17fd76[_0xa906d6(0x1dd)]||{},_0x55c153=_0x17fd76[_0xa906d6(0x1f1)]||{},_0x334f5e=_0x1656aa[_0x558485]||_0x55c153[_0x558485];if(!_0x334f5e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x578924,'packageName':_0x558485,'stableVersion':_0x545e1f};let _0x380550=getInstalledVersion(_0x50931f,_0x558485);!_0x380550&&(_0x380550=_0x334f5e);if(isNonNumericVersion(_0x334f5e))return{'installed':!![],'version':_0x380550,'needsUpgrade':![],'minVersion':_0x578924,'packageName':_0x558485,'stableVersion':_0x545e1f};const _0x3041a0=a181_0x592173[_0xa906d6(0x1cd)](_0x380550),_0x226392=a181_0x592173[_0xa906d6(0x1cd)](_0x578924),_0x31f943=_0x3041a0&&_0x226392?a181_0x592173['lt'](_0x3041a0,_0x226392):![];return{'installed':!![],'version':_0x380550,'needsUpgrade':_0x31f943,'minVersion':_0x578924,'packageName':_0x558485,'stableVersion':_0x545e1f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x578924,'packageName':_0x558485,'stableVersion':_0x545e1f};}}export function checkSdkVersionSync(_0x18e396){const _0x102bbb=a181_0x29334a,_0x45dc60=a181_0xdf734e['join'](_0x18e396,_0x102bbb(0x1e4)),_0x5ebf16=_0x102bbb(0x1ce);if(!a181_0x5c362e[_0x102bbb(0x1ed)](_0x45dc60))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ebf16,'stableVersion':null};try{const _0x3e92fc=JSON[_0x102bbb(0x1d8)](a181_0x5c362e[_0x102bbb(0x1ec)](_0x45dc60,'utf8')),_0xdc7a16=_0x3e92fc[_0x102bbb(0x1dd)]||{},_0x42fe1f=_0x3e92fc[_0x102bbb(0x1f1)]||{},_0x7a8d47=_0xdc7a16[_0x5ebf16]||_0x42fe1f[_0x5ebf16];if(!_0x7a8d47)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ebf16,'stableVersion':null};let _0x2b3cf2=getInstalledVersion(_0x18e396,_0x5ebf16);!_0x2b3cf2&&(_0x2b3cf2=_0x7a8d47);if(isNonNumericVersion(_0x7a8d47))return{'installed':!![],'version':_0x2b3cf2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ebf16,'stableVersion':null};const _0x352427=a181_0x592173[_0x102bbb(0x1cd)](_0x2b3cf2),_0x5890aa=_0x352427?a181_0x592173['lt'](_0x352427,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2b3cf2,'needsUpgrade':_0x5890aa,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ebf16,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x5ebf16,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2bfbb2){const _0x4ff46b=a181_0x29334a;if(!_0x2bfbb2[_0x4ff46b(0x1e1)])return;const _0x3644b4=_0x4ff46b(0x1cf),_0x8ffda7=_0x4ff46b(0x1e2),_0x16f326=_0x4ff46b(0x1d2),_0x238caa=_0x2bfbb2[_0x4ff46b(0x1df)]||_0x4ff46b(0x1ce),_0xa9eaf3=_0x2bfbb2[_0x4ff46b(0x1e6)]||_0x2bfbb2[_0x4ff46b(0x1e7)],_0x357c5e=_0x4ff46b(0x1ca)+_0x238caa+'@'+(_0xa9eaf3||_0x4ff46b(0x1de));console[_0x4ff46b(0x1d5)](),console[_0x4ff46b(0x1d5)](''+_0x3644b4+_0x16f326+_0x4ff46b(0x1d4)+_0x8ffda7),console['log'](_0x3644b4+_0x4ff46b(0x1e0)+_0x238caa+'@'+_0x2bfbb2[_0x4ff46b(0x1da)]+_0x8ffda7),console[_0x4ff46b(0x1d5)](_0x3644b4+'\x20\x20\x20Stable\x20version:\x20'+_0xa9eaf3+_0x8ffda7),console[_0x4ff46b(0x1d5)](_0x3644b4+'\x20\x20\x20Upgrade\x20command:\x20'+_0x357c5e+_0x8ffda7),console[_0x4ff46b(0x1d5)]();}
1
+ const a181_0x3f3f81=a181_0x2a34;(function(_0x5ae01c,_0x3a9067){const _0x589e4b=a181_0x2a34,_0x394dc4=_0x5ae01c();while(!![]){try{const _0x498f33=-parseInt(_0x589e4b(0xe2))/0x1+-parseInt(_0x589e4b(0xe3))/0x2+-parseInt(_0x589e4b(0xd7))/0x3*(-parseInt(_0x589e4b(0xd6))/0x4)+parseInt(_0x589e4b(0xef))/0x5+parseInt(_0x589e4b(0xec))/0x6*(parseInt(_0x589e4b(0xed))/0x7)+-parseInt(_0x589e4b(0xe4))/0x8*(parseInt(_0x589e4b(0xdc))/0x9)+parseInt(_0x589e4b(0xf7))/0xa;if(_0x498f33===_0x3a9067)break;else _0x394dc4['push'](_0x394dc4['shift']());}catch(_0x197cfc){_0x394dc4['push'](_0x394dc4['shift']());}}}(a181_0x1e7c,0x4eb53));function a181_0x1e7c(){const _0x24d53a=['parse','utf-8','\x1b[33m','npm\x20install\x20','all','stableVersion','282Lbtwzy','11004Zszwfp','version','348775slsvAQ','package.json','\x20\x20\x20Current\x20version:\x20','join','@lovrabet/sdk','sdk','1.2.0','packageName','9335280knwDWz','\x1b[1m','needsUpgrade','node_modules','coerce','\x1b[0m','4hMjArE','1236441PiyTVe','some','test','devDependencies','readFileSync','4428531riNrNC','node','↪\x20SDK\x20update\x20available','dependencies','utf8','existsSync','42669xXjRIz','1264398DLPMAZ','8mkJHUb','log'];a181_0x1e7c=function(){return _0x24d53a;};return a181_0x1e7c();}import a181_0x5982bd from'node:fs';import a181_0x3c49bd from'node:path';import a181_0x6deedc from'semver';function a181_0x2a34(_0x481986,_0x1fb225){_0x481986=_0x481986-0xd3;const _0x1e7cda=a181_0x1e7c();let _0x2a34c5=_0x1e7cda[_0x481986];return _0x2a34c5;}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x3f3f81(0xf5);function isNonNumericVersion(_0x50c955){const _0x174e22=a181_0x3f3f81,_0x2932d3=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2932d3[_0x174e22(0xd8)](_0x53a4c3=>_0x53a4c3[_0x174e22(0xd9)](_0x50c955));}function getInstalledVersion(_0x536ac5,_0x3fb9ad){const _0x355c5d=a181_0x3f3f81;try{const _0x2cb045=a181_0x3c49bd[_0x355c5d(0xf2)](_0x536ac5,_0x355c5d(0xd3),_0x3fb9ad,_0x355c5d(0xf0));if(a181_0x5982bd[_0x355c5d(0xe1)](_0x2cb045)){const _0x189038=JSON['parse'](a181_0x5982bd[_0x355c5d(0xdb)](_0x2cb045,_0x355c5d(0xe7)));return _0x189038[_0x355c5d(0xee)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x5f06ff=a181_0x3f3f81;try{const _0x5b3590=await getCdnConfig();return _0x5b3590?.[_0x5f06ff(0xf4)]?.[_0x5f06ff(0xdd)]?.[_0x5f06ff(0xeb)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x294df0=a181_0x3f3f81;try{const _0x3aeaca=await getCdnConfig();return _0x3aeaca?.[_0x294df0(0xf4)]?.[_0x294df0(0xdd)]?.['packageName']||_0x294df0(0xf3);}catch{return _0x294df0(0xf3);}}export async function checkSdkVersion(_0x255dc6){const _0x1d835c=a181_0x3f3f81,_0x1d72c3=a181_0x3c49bd[_0x1d835c(0xf2)](_0x255dc6,_0x1d835c(0xf0)),[_0x306312,_0x4543d6]=await Promise[_0x1d835c(0xea)]([getSdkStableVersion(),getSdkPackageName()]),_0x439a1d=_0x306312||FALLBACK_MIN_SDK_VERSION;if(!a181_0x5982bd['existsSync'](_0x1d72c3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x439a1d,'packageName':_0x4543d6,'stableVersion':_0x306312};try{const _0x64fe28=JSON[_0x1d835c(0xe6)](a181_0x5982bd[_0x1d835c(0xdb)](_0x1d72c3,_0x1d835c(0xe0))),_0x2fc737=_0x64fe28[_0x1d835c(0xdf)]||{},_0x53f385=_0x64fe28[_0x1d835c(0xda)]||{},_0x3d6dc4=_0x2fc737[_0x4543d6]||_0x53f385[_0x4543d6];if(!_0x3d6dc4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x439a1d,'packageName':_0x4543d6,'stableVersion':_0x306312};let _0x39614a=getInstalledVersion(_0x255dc6,_0x4543d6);!_0x39614a&&(_0x39614a=_0x3d6dc4);if(isNonNumericVersion(_0x3d6dc4))return{'installed':!![],'version':_0x39614a,'needsUpgrade':![],'minVersion':_0x439a1d,'packageName':_0x4543d6,'stableVersion':_0x306312};const _0x23b5c5=a181_0x6deedc[_0x1d835c(0xd4)](_0x39614a),_0x4a4630=a181_0x6deedc[_0x1d835c(0xd4)](_0x439a1d),_0x3b8e86=_0x23b5c5&&_0x4a4630?a181_0x6deedc['lt'](_0x23b5c5,_0x4a4630):![];return{'installed':!![],'version':_0x39614a,'needsUpgrade':_0x3b8e86,'minVersion':_0x439a1d,'packageName':_0x4543d6,'stableVersion':_0x306312};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x439a1d,'packageName':_0x4543d6,'stableVersion':_0x306312};}}export function checkSdkVersionSync(_0x5255a5){const _0x438258=a181_0x3f3f81,_0x14749f=a181_0x3c49bd['join'](_0x5255a5,_0x438258(0xf0)),_0x1cc28d='@lovrabet/sdk';if(!a181_0x5982bd[_0x438258(0xe1)](_0x14749f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cc28d,'stableVersion':null};try{const _0x500e0f=JSON['parse'](a181_0x5982bd[_0x438258(0xdb)](_0x14749f,'utf8')),_0x3ebf31=_0x500e0f['dependencies']||{},_0x593cba=_0x500e0f[_0x438258(0xda)]||{},_0x383624=_0x3ebf31[_0x1cc28d]||_0x593cba[_0x1cc28d];if(!_0x383624)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cc28d,'stableVersion':null};let _0xb5f74d=getInstalledVersion(_0x5255a5,_0x1cc28d);!_0xb5f74d&&(_0xb5f74d=_0x383624);if(isNonNumericVersion(_0x383624))return{'installed':!![],'version':_0xb5f74d,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cc28d,'stableVersion':null};const _0x2708cb=a181_0x6deedc['coerce'](_0xb5f74d),_0x28aabd=_0x2708cb?a181_0x6deedc['lt'](_0x2708cb,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0xb5f74d,'needsUpgrade':_0x28aabd,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cc28d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1cc28d,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4730f3){const _0x36514b=a181_0x3f3f81;if(!_0x4730f3[_0x36514b(0xf9)])return;const _0x204306=_0x36514b(0xe8),_0x59e8b6=_0x36514b(0xd5),_0xf32075=_0x36514b(0xf8),_0xa6d274=_0x4730f3[_0x36514b(0xf6)]||_0x36514b(0xf3),_0x4dd3a5=_0x4730f3[_0x36514b(0xeb)]||_0x4730f3['minVersion'],_0xc70ab7=_0x36514b(0xe9)+_0xa6d274+'@'+(_0x4dd3a5||'latest');console[_0x36514b(0xe5)](),console[_0x36514b(0xe5)](''+_0x204306+_0xf32075+_0x36514b(0xde)+_0x59e8b6),console[_0x36514b(0xe5)](_0x204306+_0x36514b(0xf1)+_0xa6d274+'@'+_0x4730f3[_0x36514b(0xee)]+_0x59e8b6),console[_0x36514b(0xe5)](_0x204306+'\x20\x20\x20Stable\x20version:\x20'+_0x4dd3a5+_0x59e8b6),console[_0x36514b(0xe5)](_0x204306+'\x20\x20\x20Upgrade\x20command:\x20'+_0xc70ab7+_0x59e8b6),console['log']();}
@@ -1 +1 @@
1
- (function(_0x43e2d6,_0x2d5689){const _0x9168fa=a182_0x3f5e,_0x23da37=_0x43e2d6();while(!![]){try{const _0x2e681c=parseInt(_0x9168fa(0x11b))/0x1+parseInt(_0x9168fa(0x117))/0x2*(parseInt(_0x9168fa(0x13f))/0x3)+-parseInt(_0x9168fa(0x133))/0x4*(-parseInt(_0x9168fa(0x119))/0x5)+-parseInt(_0x9168fa(0x13a))/0x6+parseInt(_0x9168fa(0x126))/0x7*(-parseInt(_0x9168fa(0x11e))/0x8)+-parseInt(_0x9168fa(0x127))/0x9+-parseInt(_0x9168fa(0x12e))/0xa*(-parseInt(_0x9168fa(0x123))/0xb);if(_0x2e681c===_0x2d5689)break;else _0x23da37['push'](_0x23da37['shift']());}catch(_0x32a0f5){_0x23da37['push'](_0x23da37['shift']());}}}(a182_0x5e80,0xda57d));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a182_0x5e80(){const _0x1b1a6e=['Upgrade\x20command:\x20','\x1b[33m','Current\x20version:\x20','join','1507304scMvwz','parse','↪\x20Critical\x20CLI\x20upgrade\x20required','version','\x1b[0m','log','minimumVersion','1106250APIlua','coerce','\x20\x20\x20Recommended\x20stable:\x20','\x20\x20\x20Minimum\x20required:\x20','1.0.0','31287HNEtbn','latest','\x20\x20\x20','2GYIRPo','stableVersion','15HgcyQy','package.json','638385OusPTR','↪\x20New\x20version\x20available','Minimum\x20required:\x20','2493784dHGUfS','utf-8','\x1b[1m','\x1b[31m','belowMinimum','517kCfeTE','currentVersion','validation','28raSkQC','5181507uhnLIG','../..','minimumVersionMessage','\x20\x20\x20Stable\x20version:\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','upgradeMessage','filter','238730pAbObu'];a182_0x5e80=function(){return _0x1b1a6e;};return a182_0x5e80();}import a182_0x467baa 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(_0x31bcc5){const _0x350a4b=a182_0x3f5e,_0x1d255c=_0x31bcc5[_0x350a4b(0x118)]||_0x350a4b(0x140);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x1d255c;}function getCurrentCliVersion(){const _0x4a9324=a182_0x3f5e;try{const _0x141fae=fileURLToPath(import.meta.url),_0x29ff8d=resolve(dirname(_0x141fae),_0x4a9324(0x128)),_0x69eca3=resolve(_0x29ff8d,_0x4a9324(0x11a)),_0x47bbb2=JSON[_0x4a9324(0x134)](readFileSync(_0x69eca3,_0x4a9324(0x11f)));return _0x47bbb2[_0x4a9324(0x136)]||_0x4a9324(0x13e);}catch{return _0x4a9324(0x13e);}}function a182_0x3f5e(_0x5d35eb,_0x40b4ca){_0x5d35eb=_0x5d35eb-0x117;const _0x5e8079=a182_0x5e80();let _0x3f5e7f=_0x5e8079[_0x5d35eb];return _0x3f5e7f;}export async function checkCliVersion(){const _0x2a4fdf=a182_0x3f5e,_0x439fa4=getCurrentCliVersion(),_0x303f56=await getCliVersionPolicy(),_0x9468f=_0x303f56?.[_0x2a4fdf(0x118)]||null,_0x27fdca=_0x303f56?.['minimumVersion']||null;let _0x361c7a=![],_0x461c08=![];const _0x56f143=a182_0x467baa[_0x2a4fdf(0x13b)](_0x439fa4);if(_0x56f143&&_0x9468f)try{const _0x5a2fb2=a182_0x467baa[_0x2a4fdf(0x13b)](_0x9468f);if(_0x5a2fb2)_0x361c7a=a182_0x467baa['lt'](_0x56f143,_0x5a2fb2);}catch{}if(_0x56f143&&_0x27fdca)try{const _0xfc340d=a182_0x467baa['coerce'](_0x27fdca);if(_0xfc340d)_0x461c08=a182_0x467baa['lt'](_0x56f143,_0xfc340d);}catch{}return _0x461c08&&(_0x361c7a=!![]),{'currentVersion':_0x439fa4,'stableVersion':_0x9468f,'minimumVersion':_0x27fdca,'needsUpgrade':_0x361c7a,'belowMinimum':_0x461c08,'isPreRelease':![],'upgradeMessage':_0x303f56?.[_0x2a4fdf(0x12c)],'minimumVersionMessage':_0x303f56?.['minimumVersionMessage']};}export function printCliUpgradeWarning(_0x5275b2){const _0x37f3d8=a182_0x3f5e;if(!_0x5275b2['needsUpgrade']&&!_0x5275b2[_0x37f3d8(0x122)])return;const _0x250be4=_0x37f3d8(0x121),_0x446083=_0x37f3d8(0x130),_0x6993e0=_0x37f3d8(0x137),_0x21516b=_0x37f3d8(0x120),_0x23b458=getCliUpgradeCommand(_0x5275b2);console[_0x37f3d8(0x138)](),_0x5275b2[_0x37f3d8(0x122)]?(console[_0x37f3d8(0x138)](''+_0x250be4+_0x21516b+_0x37f3d8(0x135)+_0x6993e0),console[_0x37f3d8(0x138)](_0x250be4+_0x37f3d8(0x12b)+_0x5275b2[_0x37f3d8(0x124)]+_0x6993e0),_0x5275b2[_0x37f3d8(0x139)]&&console[_0x37f3d8(0x138)](_0x250be4+_0x37f3d8(0x13d)+_0x5275b2[_0x37f3d8(0x139)]+_0x6993e0),_0x5275b2[_0x37f3d8(0x118)]&&_0x5275b2[_0x37f3d8(0x118)]!==_0x5275b2[_0x37f3d8(0x139)]&&console[_0x37f3d8(0x138)](_0x250be4+_0x37f3d8(0x13c)+_0x5275b2[_0x37f3d8(0x118)]+_0x6993e0),_0x5275b2[_0x37f3d8(0x129)]&&console[_0x37f3d8(0x138)](_0x250be4+_0x37f3d8(0x141)+_0x5275b2[_0x37f3d8(0x129)]+_0x6993e0),console['log'](_0x250be4+'\x20\x20\x20Upgrade\x20command:\x20'+_0x23b458+_0x6993e0)):(console['log'](''+_0x446083+_0x21516b+_0x37f3d8(0x11c)+_0x6993e0),console[_0x37f3d8(0x138)](_0x446083+_0x37f3d8(0x12b)+_0x5275b2[_0x37f3d8(0x124)]+_0x6993e0),console[_0x37f3d8(0x138)](_0x446083+_0x37f3d8(0x12a)+_0x5275b2[_0x37f3d8(0x118)]+_0x6993e0),_0x5275b2['upgradeMessage']&&console['log'](_0x446083+'\x20\x20\x20'+_0x5275b2[_0x37f3d8(0x12c)]+_0x6993e0),console['log'](_0x446083+'\x20\x20\x20Upgrade\x20command:\x20'+_0x23b458+_0x6993e0)),console[_0x37f3d8(0x138)]();}export function assertCliVersionSupported(_0x473665){const _0x41b99b=a182_0x3f5e;if(!_0x473665[_0x41b99b(0x122)])return;const _0x4f8563=[_0x473665[_0x41b99b(0x129)],_0x41b99b(0x131)+_0x473665['currentVersion'],_0x473665[_0x41b99b(0x139)]?_0x41b99b(0x11d)+_0x473665[_0x41b99b(0x139)]:null,_0x41b99b(0x12f)+getCliUpgradeCommand(_0x473665)][_0x41b99b(0x12d)](Boolean)[_0x41b99b(0x132)]('\x0a');throw CliErrors[_0x41b99b(0x125)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x4f8563);}
1
+ (function(_0x2341cb,_0x1f820b){const _0x265f82=a182_0x1281,_0x2aae8c=_0x2341cb();while(!![]){try{const _0x503a26=-parseInt(_0x265f82(0xbb))/0x1*(parseInt(_0x265f82(0xb6))/0x2)+parseInt(_0x265f82(0x98))/0x3+parseInt(_0x265f82(0xb0))/0x4+parseInt(_0x265f82(0x9c))/0x5*(-parseInt(_0x265f82(0xba))/0x6)+parseInt(_0x265f82(0xa4))/0x7+-parseInt(_0x265f82(0xb7))/0x8*(-parseInt(_0x265f82(0xac))/0x9)+parseInt(_0x265f82(0xbc))/0xa*(-parseInt(_0x265f82(0xae))/0xb);if(_0x503a26===_0x1f820b)break;else _0x2aae8c['push'](_0x2aae8c['shift']());}catch(_0x50b018){_0x2aae8c['push'](_0x2aae8c['shift']());}}}(a182_0x4591,0x30d30));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a182_0x21af55 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a182_0x1281(_0x5a645c,_0x5bb8b3){_0x5a645c=_0x5a645c-0x98;const _0x45914a=a182_0x4591();let _0x12818b=_0x45914a[_0x5a645c];return _0x12818b;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x58eae1){const _0x5b21ef=a182_0x1281,_0x4d420d=_0x58eae1[_0x5b21ef(0xb8)]||_0x5b21ef(0xb2);return _0x5b21ef(0xbd)+NPM_PACKAGE_NAME+'@'+_0x4d420d;}function getCurrentCliVersion(){const _0x79a605=a182_0x1281;try{const _0x555cce=fileURLToPath(import.meta.url),_0x5c1203=resolve(dirname(_0x555cce),_0x79a605(0xb5)),_0x15cf67=resolve(_0x5c1203,_0x79a605(0xa3)),_0x5a9e15=JSON[_0x79a605(0xb3)](readFileSync(_0x15cf67,'utf-8'));return _0x5a9e15[_0x79a605(0xa2)]||_0x79a605(0xaa);}catch{return _0x79a605(0xaa);}}export async function checkCliVersion(){const _0x3027e3=a182_0x1281,_0x418e9f=getCurrentCliVersion(),_0x90f605=await getCliVersionPolicy(),_0x203c7b=_0x90f605?.[_0x3027e3(0xb8)]||null,_0x42b64f=_0x90f605?.[_0x3027e3(0xa8)]||null;let _0x5e9a83=![],_0x781109=![];const _0x5e0672=a182_0x21af55['coerce'](_0x418e9f);if(_0x5e0672&&_0x203c7b)try{const _0x3b97f1=a182_0x21af55[_0x3027e3(0xa9)](_0x203c7b);if(_0x3b97f1)_0x5e9a83=a182_0x21af55['lt'](_0x5e0672,_0x3b97f1);}catch{}if(_0x5e0672&&_0x42b64f)try{const _0x74b835=a182_0x21af55[_0x3027e3(0xa9)](_0x42b64f);if(_0x74b835)_0x781109=a182_0x21af55['lt'](_0x5e0672,_0x74b835);}catch{}return _0x781109&&(_0x5e9a83=!![]),{'currentVersion':_0x418e9f,'stableVersion':_0x203c7b,'minimumVersion':_0x42b64f,'needsUpgrade':_0x5e9a83,'belowMinimum':_0x781109,'isPreRelease':![],'upgradeMessage':_0x90f605?.[_0x3027e3(0x9e)],'minimumVersionMessage':_0x90f605?.[_0x3027e3(0xc2)]};}export function printCliUpgradeWarning(_0x156cba){const _0x3e0753=a182_0x1281;if(!_0x156cba[_0x3e0753(0xb9)]&&!_0x156cba[_0x3e0753(0xbf)])return;const _0x271451=_0x3e0753(0x9a),_0x2e3280=_0x3e0753(0xc0),_0x119c71=_0x3e0753(0x9f),_0x5a849d=_0x3e0753(0xad),_0x45dc4e=getCliUpgradeCommand(_0x156cba);console[_0x3e0753(0xbe)](),_0x156cba[_0x3e0753(0xbf)]?(console[_0x3e0753(0xbe)](''+_0x271451+_0x5a849d+_0x3e0753(0xb4)+_0x119c71),console[_0x3e0753(0xbe)](_0x271451+_0x3e0753(0xa5)+_0x156cba[_0x3e0753(0xb1)]+_0x119c71),_0x156cba[_0x3e0753(0xa8)]&&console[_0x3e0753(0xbe)](_0x271451+_0x3e0753(0x9d)+_0x156cba[_0x3e0753(0xa8)]+_0x119c71),_0x156cba[_0x3e0753(0xb8)]&&_0x156cba[_0x3e0753(0xb8)]!==_0x156cba[_0x3e0753(0xa8)]&&console[_0x3e0753(0xbe)](_0x271451+'\x20\x20\x20Recommended\x20stable:\x20'+_0x156cba[_0x3e0753(0xb8)]+_0x119c71),_0x156cba[_0x3e0753(0xc2)]&&console['log'](_0x271451+_0x3e0753(0xc1)+_0x156cba[_0x3e0753(0xc2)]+_0x119c71),console[_0x3e0753(0xbe)](_0x271451+_0x3e0753(0xa6)+_0x45dc4e+_0x119c71)):(console['log'](''+_0x2e3280+_0x5a849d+'↪\x20New\x20version\x20available'+_0x119c71),console[_0x3e0753(0xbe)](_0x2e3280+_0x3e0753(0xa5)+_0x156cba[_0x3e0753(0xb1)]+_0x119c71),console[_0x3e0753(0xbe)](_0x2e3280+_0x3e0753(0xaf)+_0x156cba[_0x3e0753(0xb8)]+_0x119c71),_0x156cba[_0x3e0753(0x9e)]&&console[_0x3e0753(0xbe)](_0x2e3280+'\x20\x20\x20'+_0x156cba[_0x3e0753(0x9e)]+_0x119c71),console[_0x3e0753(0xbe)](_0x2e3280+'\x20\x20\x20Upgrade\x20command:\x20'+_0x45dc4e+_0x119c71)),console[_0x3e0753(0xbe)]();}export function assertCliVersionSupported(_0x10fef4){const _0x41e260=a182_0x1281;if(!_0x10fef4['belowMinimum'])return;const _0x559d8=[_0x10fef4['minimumVersionMessage'],'Current\x20version:\x20'+_0x10fef4[_0x41e260(0xb1)],_0x10fef4[_0x41e260(0xa8)]?_0x41e260(0xa0)+_0x10fef4[_0x41e260(0xa8)]:null,_0x41e260(0x9b)+getCliUpgradeCommand(_0x10fef4)][_0x41e260(0xa1)](Boolean)[_0x41e260(0x99)]('\x0a');throw CliErrors[_0x41e260(0xa7)](_0x41e260(0xab),_0x559d8);}function a182_0x4591(){const _0x470dc7=['parse','↪\x20Critical\x20CLI\x20upgrade\x20required','../..','130028RMuuOq','520WSnYDG','stableVersion','needsUpgrade','6qDqTLr','1mCtxOk','32370GoZzfN','npm\x20install\x20-g\x20','log','belowMinimum','\x1b[33m','\x20\x20\x20','minimumVersionMessage','1163217pbyhlu','join','\x1b[31m','Upgrade\x20command:\x20','1203190SnJyyx','\x20\x20\x20Minimum\x20required:\x20','upgradeMessage','\x1b[0m','Minimum\x20required:\x20','filter','version','package.json','485177qppYsF','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','validation','minimumVersion','coerce','1.0.0','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','1665CmXKyS','\x1b[1m','1001aUleLP','\x20\x20\x20Stable\x20version:\x20','1324512BFsZYY','currentVersion','latest'];a182_0x4591=function(){return _0x470dc7;};return a182_0x4591();}
@@ -1 +1 @@
1
- (function(_0x2a678a,_0x36d03e){const _0xb2553a=a183_0xb788,_0x5e5160=_0x2a678a();while(!![]){try{const _0x3d2cf7=parseInt(_0xb2553a(0x1e5))/0x1+parseInt(_0xb2553a(0x1d5))/0x2+-parseInt(_0xb2553a(0x1dd))/0x3*(-parseInt(_0xb2553a(0x1e4))/0x4)+-parseInt(_0xb2553a(0x1e1))/0x5*(parseInt(_0xb2553a(0x1e3))/0x6)+parseInt(_0xb2553a(0x1d6))/0x7*(-parseInt(_0xb2553a(0x1d8))/0x8)+parseInt(_0xb2553a(0x1df))/0x9+-parseInt(_0xb2553a(0x1db))/0xa;if(_0x3d2cf7===_0x36d03e)break;else _0x5e5160['push'](_0x5e5160['shift']());}catch(_0x5e5663){_0x5e5160['push'](_0x5e5160['shift']());}}}(a183_0x5b6d,0x210d0));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(_0x27c1d7){const _0x214c2f=a183_0xb788;return typeof _0x27c1d7===_0x214c2f(0x1da)&&_0x27c1d7['trim']()[_0x214c2f(0x1d3)]>0x0?_0x27c1d7[_0x214c2f(0x1e6)]():null;}function a183_0xb788(_0x35e5c,_0x2d711d){_0x35e5c=_0x35e5c-0x1d0;const _0x5b6dd3=a183_0x5b6d();let _0xb788a8=_0x5b6dd3[_0x35e5c];return _0xb788a8;}function normalizeCliVersionPolicy(_0x54f6ba){const _0xd472f7=a183_0xb788;if(!_0x54f6ba||typeof _0x54f6ba!==_0xd472f7(0x1d4))return null;const _0x92c910=_0x54f6ba,_0x39dd33=_0x92c910[_0xd472f7(0x1d1)]&&typeof _0x92c910[_0xd472f7(0x1d1)]===_0xd472f7(0x1d4)?_0x92c910['cli']:_0x92c910,_0x558b97=pickString(_0x39dd33[_0xd472f7(0x1e0)])||pickString(_0x39dd33[_0xd472f7(0x1d7)])||pickString(_0x39dd33[_0xd472f7(0x1e2)]),_0x3c9df1=pickString(_0x39dd33[_0xd472f7(0x1de)])||pickString(_0x39dd33[_0xd472f7(0x1d9)]);if(!_0x558b97&&!_0x3c9df1)return null;return{'stableVersion':_0x558b97,'minimumVersion':_0x3c9df1,'upgradeMessage':pickString(_0x39dd33[_0xd472f7(0x1dc)])||undefined,'minimumVersionMessage':pickString(_0x39dd33['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0xd99edf=a183_0xb788,_0x590038=new AbortController(),_0x3e4d5a=setTimeout(()=>_0x590038['abort'](),FETCH_TIMEOUT_MS);try{const _0x2a501e=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x590038[_0xd99edf(0x1e7)]});if(!_0x2a501e['ok'])return null;const _0x5dad94=await _0x2a501e[_0xd99edf(0x1d2)]();return normalizeCliVersionPolicy(_0x5dad94);}catch{return null;}finally{clearTimeout(_0x3e4d5a);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x36b870=a183_0xb788,_0x337947=Date[_0x36b870(0x1d0)]();if(hasCachedPolicy){const _0x5bb0e9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x337947-cacheTime<_0x5bb0e9)return cachedPolicy;}const _0xf8e1fd=await fetchCliVersionPolicy();return cachedPolicy=_0xf8e1fd,cacheTime=_0x337947,hasCachedPolicy=!![],_0xf8e1fd;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}function a183_0x5b6d(){const _0x113777=['recommendedVersion','242766IGcwBW','354700eYoABX','5458wjXnvk','trim','signal','now','cli','json','length','object','405578qvXIzI','259sQJMom','latestVersion','18296jyrbRX','minVersion','string','2993790NyCwyO','upgradeMessage','6bRtKbD','minimumVersion','1568142JzbQwi','stableVersion','5sfXmcw'];a183_0x5b6d=function(){return _0x113777;};return a183_0x5b6d();}
1
+ (function(_0x5a8aaa,_0x59bfcb){const _0x1f9d2b=a183_0x66e7,_0x199c68=_0x5a8aaa();while(!![]){try{const _0x1a7894=parseInt(_0x1f9d2b(0xd5))/0x1+-parseInt(_0x1f9d2b(0xd1))/0x2+parseInt(_0x1f9d2b(0xca))/0x3+parseInt(_0x1f9d2b(0xc6))/0x4*(parseInt(_0x1f9d2b(0xdb))/0x5)+parseInt(_0x1f9d2b(0xcb))/0x6+-parseInt(_0x1f9d2b(0xd8))/0x7+-parseInt(_0x1f9d2b(0xc8))/0x8;if(_0x1a7894===_0x59bfcb)break;else _0x199c68['push'](_0x199c68['shift']());}catch(_0x1fd629){_0x199c68['push'](_0x199c68['shift']());}}}(a183_0x39fc,0x59952));function a183_0x39fc(){const _0x139665=['string','3260104iHZzpT','object','1360245YASJOh','2984514IChtje','abort','upgradeMessage','minimumVersionMessage','now','length','618372gbzOVI','stableVersion','cli','trim','56137TehwIY','minVersion','recommendedVersion','2106720CzmqKs','application/json','latestVersion','1888090QZmYAu','4eWkHgo'];a183_0x39fc=function(){return _0x139665;};return a183_0x39fc();}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a183_0x66e7(_0x8d0a15,_0x132a16){_0x8d0a15=_0x8d0a15-0xc6;const _0x39fc34=a183_0x39fc();let _0x66e739=_0x39fc34[_0x8d0a15];return _0x66e739;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3b9e5b){const _0x3cb081=a183_0x66e7;return typeof _0x3b9e5b===_0x3cb081(0xc7)&&_0x3b9e5b[_0x3cb081(0xd4)]()[_0x3cb081(0xd0)]>0x0?_0x3b9e5b['trim']():null;}function normalizeCliVersionPolicy(_0x57ba6c){const _0x8b108c=a183_0x66e7;if(!_0x57ba6c||typeof _0x57ba6c!==_0x8b108c(0xc9))return null;const _0x2f77b6=_0x57ba6c,_0x34eaee=_0x2f77b6[_0x8b108c(0xd3)]&&typeof _0x2f77b6[_0x8b108c(0xd3)]==='object'?_0x2f77b6[_0x8b108c(0xd3)]:_0x2f77b6,_0x211c63=pickString(_0x34eaee[_0x8b108c(0xd2)])||pickString(_0x34eaee[_0x8b108c(0xda)])||pickString(_0x34eaee[_0x8b108c(0xd7)]),_0x1c219a=pickString(_0x34eaee['minimumVersion'])||pickString(_0x34eaee[_0x8b108c(0xd6)]);if(!_0x211c63&&!_0x1c219a)return null;return{'stableVersion':_0x211c63,'minimumVersion':_0x1c219a,'upgradeMessage':pickString(_0x34eaee[_0x8b108c(0xcd)])||undefined,'minimumVersionMessage':pickString(_0x34eaee[_0x8b108c(0xce)])||undefined};}export async function fetchCliVersionPolicy(){const _0x4c4b0d=a183_0x66e7,_0x4e1cc8=new AbortController(),_0x59ef19=setTimeout(()=>_0x4e1cc8[_0x4c4b0d(0xcc)](),FETCH_TIMEOUT_MS);try{const _0x4e3768=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4c4b0d(0xd9)},'signal':_0x4e1cc8['signal']});if(!_0x4e3768['ok'])return null;const _0x219dec=await _0x4e3768['json']();return normalizeCliVersionPolicy(_0x219dec);}catch{return null;}finally{clearTimeout(_0x59ef19);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x3c36bf=a183_0x66e7,_0x22f558=Date[_0x3c36bf(0xcf)]();if(hasCachedPolicy){const _0xc8e810=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x22f558-cacheTime<_0xc8e810)return cachedPolicy;}const _0x42a698=await fetchCliVersionPolicy();return cachedPolicy=_0x42a698,cacheTime=_0x22f558,hasCachedPolicy=!![],_0x42a698;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a184_0x29de(){const _0x5853fa=['161903Jgoepn','string','251830wSTVlx','10695448aQjYKB','env','222sYlHNM','1AaAMSS','3032817CIkjhJ','2564330pzywHv','1012496iMnpVF','283810wHyMFE','765oRyUGh'];a184_0x29de=function(){return _0x5853fa;};return a184_0x29de();}(function(_0x9afae8,_0x5237a7){const _0x44f744=a184_0x536c,_0x38ddc0=_0x9afae8();while(!![]){try{const _0x440048=-parseInt(_0x44f744(0x186))/0x1*(parseInt(_0x44f744(0x182))/0x2)+parseInt(_0x44f744(0x187))/0x3+parseInt(_0x44f744(0x17d))/0x4+-parseInt(_0x44f744(0x188))/0x5+parseInt(_0x44f744(0x185))/0x6*(-parseInt(_0x44f744(0x180))/0x7)+-parseInt(_0x44f744(0x183))/0x8+-parseInt(_0x44f744(0x17f))/0x9*(-parseInt(_0x44f744(0x17e))/0xa);if(_0x440048===_0x5237a7)break;else _0x38ddc0['push'](_0x38ddc0['shift']());}catch(_0x2970c2){_0x38ddc0['push'](_0x38ddc0['shift']());}}}(a184_0x29de,0xce4a3));import{initEnv}from'../constant/env.js';function a184_0x536c(_0xad03d9,_0xd5eba1){_0xad03d9=_0xad03d9-0x17d;const _0x29de4f=a184_0x29de();let _0x536cb5=_0x29de4f[_0xad03d9];return _0x536cb5;}import{readRawConfig,getConfigAppCode as a184_0x35218c,getMultiAppConfigs as a184_0x1b5756,getTemplateBaseUrl as a184_0x55e123}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x24dc02){const _0x46490b=a184_0x536c,_0x141695=readRawConfig(_0x24dc02);return _0x141695['env']&&typeof _0x141695[_0x46490b(0x184)]===_0x46490b(0x181)&&initEnv(_0x141695[_0x46490b(0x184)]),_0x141695;}export function getConfigAppCode(){return a184_0x35218c();}export function getMultiAppConfigs(_0x438a1a='project'){return a184_0x1b5756(_0x438a1a);}export function getTemplateBaseUrl(){return a184_0x55e123();}
1
+ const a184_0x46713e=a184_0x29cf;function a184_0x3c87(){const _0xb1e593=['2842588TEUJrS','50318100KjIvGY','859080bdEmSy','87771GOAiUl','3165016riYdYR','15DeTLKw','env','1508619pIEKnx','project','36aCnEfg','7abcmBi','string','14236614YCWnVb'];a184_0x3c87=function(){return _0xb1e593;};return a184_0x3c87();}(function(_0x44bd5c,_0x10feaa){const _0x4fea8b=a184_0x29cf,_0x45204c=_0x44bd5c();while(!![]){try{const _0x3d1cf0=-parseInt(_0x4fea8b(0x1bf))/0x1+parseInt(_0x4fea8b(0x1c1))/0x2*(parseInt(_0x4fea8b(0x1bb))/0x3)+-parseInt(_0x4fea8b(0x1c5))/0x4+parseInt(_0x4fea8b(0x1bd))/0x5*(-parseInt(_0x4fea8b(0x1c7))/0x6)+-parseInt(_0x4fea8b(0x1c2))/0x7*(parseInt(_0x4fea8b(0x1bc))/0x8)+-parseInt(_0x4fea8b(0x1c4))/0x9+parseInt(_0x4fea8b(0x1c6))/0xa;if(_0x3d1cf0===_0x10feaa)break;else _0x45204c['push'](_0x45204c['shift']());}catch(_0x4f1d29){_0x45204c['push'](_0x45204c['shift']());}}}(a184_0x3c87,0xe393d));import{initEnv}from'../constant/env.js';function a184_0x29cf(_0x22aeeb,_0x5b11bf){_0x22aeeb=_0x22aeeb-0x1bb;const _0x3c8726=a184_0x3c87();let _0x29cfeb=_0x3c8726[_0x22aeeb];return _0x29cfeb;}import{readRawConfig,getConfigAppCode as a184_0xec0b2f,getMultiAppConfigs as a184_0x482675,getTemplateBaseUrl as a184_0x166c87}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x401e06){const _0x3f635e=a184_0x29cf,_0x54b67f=readRawConfig(_0x401e06);return _0x54b67f[_0x3f635e(0x1be)]&&typeof _0x54b67f[_0x3f635e(0x1be)]===_0x3f635e(0x1c3)&&initEnv(_0x54b67f['env']),_0x54b67f;}export function getConfigAppCode(){return a184_0xec0b2f();}export function getMultiAppConfigs(_0x4665cf=a184_0x46713e(0x1c0)){return a184_0x482675(_0x4665cf);}export function getTemplateBaseUrl(){return a184_0x166c87();}
@@ -1 +1 @@
1
- function a185_0x1b89(_0x11807b,_0x3d7c6a){_0x11807b=_0x11807b-0xd1;const _0x4bd057=a185_0x4bd0();let _0x1b89ce=_0x4bd057[_0x11807b];return _0x1b89ce;}(function(_0x3744b4,_0x4526db){const _0x871620=a185_0x1b89,_0x22460c=_0x3744b4();while(!![]){try{const _0x58f363=-parseInt(_0x871620(0xdb))/0x1*(parseInt(_0x871620(0xd3))/0x2)+parseInt(_0x871620(0xd5))/0x3+parseInt(_0x871620(0xe1))/0x4+parseInt(_0x871620(0xde))/0x5+-parseInt(_0x871620(0xd6))/0x6*(-parseInt(_0x871620(0xd2))/0x7)+-parseInt(_0x871620(0xdd))/0x8*(parseInt(_0x871620(0xd1))/0x9)+parseInt(_0x871620(0xdf))/0xa;if(_0x58f363===_0x4526db)break;else _0x22460c['push'](_0x22460c['shift']());}catch(_0x494f7d){_0x22460c['push'](_0x22460c['shift']());}}}(a185_0x4bd0,0x27af5));function a185_0x4bd0(){const _0x2d51fc=['91680BdylLv','1038Gttdqz','copyFileSync','name','join','error','25JUkTny','readdirSync','16KpBmva','397000wrEcyh','19820YLupeL','isDirectory','1226848pRIiaa','927702ujywbg','959RkQFtU','5892PoJQJa','复制目录时出错:'];a185_0x4bd0=function(){return _0x2d51fc;};return a185_0x4bd0();}import a185_0xa02da2 from'node:path';import a185_0x528262 from'node:fs';export async function copyDirectory(_0x4f40b4,_0x2fa614){const _0x28d7b0=a185_0x1b89;try{const _0x54b443=a185_0x528262[_0x28d7b0(0xdc)](_0x4f40b4,{'withFileTypes':!![]});a185_0x528262['mkdirSync'](_0x2fa614,{'recursive':!![]});for(const _0x213f6c of _0x54b443){const _0x518b2c=a185_0xa02da2[_0x28d7b0(0xd9)](_0x4f40b4,_0x213f6c[_0x28d7b0(0xd8)]),_0x40a0ba=a185_0xa02da2[_0x28d7b0(0xd9)](_0x2fa614,_0x213f6c[_0x28d7b0(0xd8)]);_0x213f6c[_0x28d7b0(0xe0)]()?await copyDirectory(_0x518b2c,_0x40a0ba):a185_0x528262[_0x28d7b0(0xd7)](_0x518b2c,_0x40a0ba);}}catch(_0xb045b2){console[_0x28d7b0(0xda)](_0x28d7b0(0xd4),_0xb045b2);}}
1
+ (function(_0x2f61ea,_0x1ad312){const _0x3203db=a185_0x3110,_0x5eaeee=_0x2f61ea();while(!![]){try{const _0x533de1=parseInt(_0x3203db(0x1c2))/0x1*(parseInt(_0x3203db(0x1bd))/0x2)+parseInt(_0x3203db(0x1c6))/0x3*(parseInt(_0x3203db(0x1ce))/0x4)+-parseInt(_0x3203db(0x1c8))/0x5*(parseInt(_0x3203db(0x1c5))/0x6)+parseInt(_0x3203db(0x1c3))/0x7*(parseInt(_0x3203db(0x1cb))/0x8)+parseInt(_0x3203db(0x1cc))/0x9+parseInt(_0x3203db(0x1c7))/0xa*(-parseInt(_0x3203db(0x1bf))/0xb)+-parseInt(_0x3203db(0x1c4))/0xc*(parseInt(_0x3203db(0x1cf))/0xd);if(_0x533de1===_0x1ad312)break;else _0x5eaeee['push'](_0x5eaeee['shift']());}catch(_0x5eea4c){_0x5eaeee['push'](_0x5eaeee['shift']());}}}(a185_0x4505,0xced59));import a185_0x34746c from'node:path';function a185_0x3110(_0x3c6b03,_0x534608){_0x3c6b03=_0x3c6b03-0x1bd;const _0x4505bd=a185_0x4505();let _0x31105e=_0x4505bd[_0x3c6b03];return _0x31105e;}import a185_0x531327 from'node:fs';function a185_0x4505(){const _0x55500d=['7063GtrodI','5377296JaxseB','486FaccCr','4117242TUUikh','10zbhCUQ','73020mYiKnR','isDirectory','复制目录时出错:','6424yvwNTB','14275305xggXrv','readdirSync','4ocQuWu','52ddfuwb','10288OACzWX','join','17289151ebPqWA','copyFileSync','name','316khpwfb'];a185_0x4505=function(){return _0x55500d;};return a185_0x4505();}export async function copyDirectory(_0x213961,_0x3a790c){const _0x56e15c=a185_0x3110;try{const _0x5630ec=a185_0x531327[_0x56e15c(0x1cd)](_0x213961,{'withFileTypes':!![]});a185_0x531327['mkdirSync'](_0x3a790c,{'recursive':!![]});for(const _0xbba9fd of _0x5630ec){const _0x4d24d6=a185_0x34746c[_0x56e15c(0x1be)](_0x213961,_0xbba9fd['name']),_0x3398bb=a185_0x34746c[_0x56e15c(0x1be)](_0x3a790c,_0xbba9fd[_0x56e15c(0x1c1)]);_0xbba9fd[_0x56e15c(0x1c9)]()?await copyDirectory(_0x4d24d6,_0x3398bb):a185_0x531327[_0x56e15c(0x1c0)](_0x4d24d6,_0x3398bb);}}catch(_0x108ad6){console['error'](_0x56e15c(0x1ca),_0x108ad6);}}
@@ -1 +1 @@
1
- (function(_0x2dec54,_0x74a8b2){const _0x12f90f=a186_0x5560,_0x32a367=_0x2dec54();while(!![]){try{const _0x117f4e=-parseInt(_0x12f90f(0x10f))/0x1*(-parseInt(_0x12f90f(0x111))/0x2)+parseInt(_0x12f90f(0x115))/0x3+parseInt(_0x12f90f(0x112))/0x4*(parseInt(_0x12f90f(0x113))/0x5)+parseInt(_0x12f90f(0x119))/0x6+-parseInt(_0x12f90f(0x117))/0x7*(parseInt(_0x12f90f(0x10d))/0x8)+parseInt(_0x12f90f(0x110))/0x9*(-parseInt(_0x12f90f(0x10c))/0xa)+parseInt(_0x12f90f(0x10e))/0xb*(-parseInt(_0x12f90f(0x10b))/0xc);if(_0x117f4e===_0x74a8b2)break;else _0x32a367['push'](_0x32a367['shift']());}catch(_0x5ae1d8){_0x32a367['push'](_0x32a367['shift']());}}}(a186_0x5e4c,0xa5856));function a186_0x5560(_0x1dbd2b,_0x27b401){_0x1dbd2b=_0x1dbd2b-0x10b;const _0x5e4c0e=a186_0x5e4c();let _0x55603c=_0x5e4c0e[_0x1dbd2b];return _0x55603c;}function toFiniteNumber(_0x28a865){const _0x591df2=a186_0x5560;if(typeof _0x28a865==='number'&&Number[_0x591df2(0x114)](_0x28a865))return _0x28a865;if(typeof _0x28a865===_0x591df2(0x116)){const _0x3101a4=_0x28a865['trim']();if(!_0x3101a4)return undefined;const _0x5dfce3=Number(_0x3101a4);if(Number[_0x591df2(0x114)](_0x5dfce3))return _0x5dfce3;}return undefined;}export function normalizeEntityWithIdResponse(_0x19a003){const _0x5349ed=a186_0x5560,_0x2c0a78=toFiniteNumber(_0x19a003);if(_0x2c0a78!==undefined)return{'id':_0x2c0a78,'entity':{'id':_0x2c0a78}};if(!_0x19a003||typeof _0x19a003!==_0x5349ed(0x118))return{'id':undefined,'entity':{}};const _0xeaf041={..._0x19a003},_0x4de00b=toFiniteNumber(_0xeaf041['id']);return _0x4de00b!==undefined&&(_0xeaf041['id']=_0x4de00b),{'id':_0x4de00b,'entity':_0xeaf041};}function a186_0x5e4c(){const _0x417b54=['14UusnNj','object','1538382VKqALD','12QGdTya','610ELhVkd','2086472nUpWkN','18563006DzufFx','4EjXEBt','117288ZBFqEK','574138dfeXZL','4uNMnqP','4960585pAwRhl','isFinite','3855900wluYTm','string'];a186_0x5e4c=function(){return _0x417b54;};return a186_0x5e4c();}
1
+ function a186_0x5a9d(_0x498f15,_0x20a7ff){_0x498f15=_0x498f15-0x111;const _0x2f3d8b=a186_0x2f3d();let _0x5a9d10=_0x2f3d8b[_0x498f15];return _0x5a9d10;}(function(_0x355aed,_0x2f6162){const _0x40b720=a186_0x5a9d,_0x69019=_0x355aed();while(!![]){try{const _0x131cfa=parseInt(_0x40b720(0x120))/0x1*(parseInt(_0x40b720(0x116))/0x2)+parseInt(_0x40b720(0x118))/0x3*(parseInt(_0x40b720(0x111))/0x4)+-parseInt(_0x40b720(0x119))/0x5*(parseInt(_0x40b720(0x11f))/0x6)+parseInt(_0x40b720(0x11b))/0x7*(-parseInt(_0x40b720(0x115))/0x8)+parseInt(_0x40b720(0x112))/0x9*(parseInt(_0x40b720(0x11e))/0xa)+-parseInt(_0x40b720(0x117))/0xb+-parseInt(_0x40b720(0x11a))/0xc*(-parseInt(_0x40b720(0x113))/0xd);if(_0x131cfa===_0x2f6162)break;else _0x69019['push'](_0x69019['shift']());}catch(_0x52ba8c){_0x69019['push'](_0x69019['shift']());}}}(a186_0x2f3d,0xe9f43));function a186_0x2f3d(){const _0x2d1bb0=['number','10PBPndl','579246ndFEbs','128276UgLJku','12YkzIPw','7066989yZGwMG','42055TxUEQs','object','64CtJpot','4nTBxOu','99693ehVySi','1654011CkTUlX','40KNUtri','840ikKALv','1034747lyuVab','isFinite'];a186_0x2f3d=function(){return _0x2d1bb0;};return a186_0x2f3d();}function toFiniteNumber(_0x4d0d23){const _0x56031d=a186_0x5a9d;if(typeof _0x4d0d23===_0x56031d(0x11d)&&Number[_0x56031d(0x11c)](_0x4d0d23))return _0x4d0d23;if(typeof _0x4d0d23==='string'){const _0x56e2ff=_0x4d0d23['trim']();if(!_0x56e2ff)return undefined;const _0x4a1e3c=Number(_0x56e2ff);if(Number[_0x56031d(0x11c)](_0x4a1e3c))return _0x4a1e3c;}return undefined;}export function normalizeEntityWithIdResponse(_0xdfd9ee){const _0x3c27b9=a186_0x5a9d,_0x4c9d48=toFiniteNumber(_0xdfd9ee);if(_0x4c9d48!==undefined)return{'id':_0x4c9d48,'entity':{'id':_0x4c9d48}};if(!_0xdfd9ee||typeof _0xdfd9ee!==_0x3c27b9(0x114))return{'id':undefined,'entity':{}};const _0x54de5b={..._0xdfd9ee},_0xf24a47=toFiniteNumber(_0x54de5b['id']);return _0xf24a47!==undefined&&(_0x54de5b['id']=_0xf24a47),{'id':_0xf24a47,'entity':_0x54de5b};}
@@ -1 +1 @@
1
- function a187_0x1c84(_0x1d0e9c,_0x6e2b75){_0x1d0e9c=_0x1d0e9c-0x16c;const _0x415fec=a187_0x415f();let _0x1c84e4=_0x415fec[_0x1d0e9c];return _0x1c84e4;}(function(_0x290eee,_0x5bc3ab){const _0xac7a1f=a187_0x1c84,_0x3f0683=_0x290eee();while(!![]){try{const _0x5afd42=-parseInt(_0xac7a1f(0x16d))/0x1+parseInt(_0xac7a1f(0x172))/0x2+-parseInt(_0xac7a1f(0x16f))/0x3*(-parseInt(_0xac7a1f(0x170))/0x4)+parseInt(_0xac7a1f(0x174))/0x5+parseInt(_0xac7a1f(0x16c))/0x6*(parseInt(_0xac7a1f(0x171))/0x7)+-parseInt(_0xac7a1f(0x175))/0x8+-parseInt(_0xac7a1f(0x16e))/0x9;if(_0x5afd42===_0x5bc3ab)break;else _0x3f0683['push'](_0x3f0683['shift']());}catch(_0x4d7ded){_0x3f0683['push'](_0x3f0683['shift']());}}}(a187_0x415f,0x1a97a));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a187_0x415f(){const _0x3ca845=['570ehlFPn','3768XbGYJM','366905VCWTkl','413432cjWJhh','isDirectory','283655LMSelt','915752epuzhF','6IzXXLT','133428FWITCW','1242207WpcXXs'];a187_0x415f=function(){return _0x3ca845;};return a187_0x415f();}export async function copyDir(_0x4f8c2e,_0x19ed91){const _0x1a9cf8=a187_0x1c84,_0x384fd7=statSync(_0x4f8c2e);if(_0x384fd7[_0x1a9cf8(0x173)]()){!existsSync(_0x19ed91)&&mkdirSync(_0x19ed91,{'recursive':!![]});const _0x4202ac=readdirSync(_0x4f8c2e);for(const _0x93964c of _0x4202ac){await copyDir(join(_0x4f8c2e,_0x93964c),join(_0x19ed91,_0x93964c));}}else copyFileSync(_0x4f8c2e,_0x19ed91);}export function ensureDir(_0x17475f){!existsSync(_0x17475f)&&mkdirSync(_0x17475f,{'recursive':!![]});}export function pathExists(_0x4bd680){return existsSync(_0x4bd680);}
1
+ (function(_0x576167,_0x1a5d96){const _0x25679a=a187_0x14ec,_0x1d55c0=_0x576167();while(!![]){try{const _0x4745ef=-parseInt(_0x25679a(0xdf))/0x1*(parseInt(_0x25679a(0xe0))/0x2)+-parseInt(_0x25679a(0xde))/0x3+-parseInt(_0x25679a(0xda))/0x4+parseInt(_0x25679a(0xe1))/0x5+parseInt(_0x25679a(0xdd))/0x6*(parseInt(_0x25679a(0xdc))/0x7)+-parseInt(_0x25679a(0xdb))/0x8+parseInt(_0x25679a(0xd9))/0x9;if(_0x4745ef===_0x1a5d96)break;else _0x1d55c0['push'](_0x1d55c0['shift']());}catch(_0x1fd3f2){_0x1d55c0['push'](_0x1d55c0['shift']());}}}(a187_0x33d4,0x30707));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x38c233,_0x266b86){const _0x269e42=statSync(_0x38c233);if(_0x269e42['isDirectory']()){!existsSync(_0x266b86)&&mkdirSync(_0x266b86,{'recursive':!![]});const _0x2f2c59=readdirSync(_0x38c233);for(const _0x990236 of _0x2f2c59){await copyDir(join(_0x38c233,_0x990236),join(_0x266b86,_0x990236));}}else copyFileSync(_0x38c233,_0x266b86);}export function ensureDir(_0x44d5aa){!existsSync(_0x44d5aa)&&mkdirSync(_0x44d5aa,{'recursive':!![]});}export function pathExists(_0x298c69){return existsSync(_0x298c69);}function a187_0x14ec(_0x3763c5,_0xa6a9f){_0x3763c5=_0x3763c5-0xd9;const _0x33d40e=a187_0x33d4();let _0x14ecaf=_0x33d40e[_0x3763c5];return _0x14ecaf;}function a187_0x33d4(){const _0xacfb9d=['346774KFnlXz','2TSbMYo','430925yWzoLC','6815484GHQSCo','83392TNygFL','2846632YmBfBk','7pINayJ','933258zSbBOX','231438tEXxvR'];a187_0x33d4=function(){return _0xacfb9d;};return a187_0x33d4();}
@@ -1 +1 @@
1
- const a188_0x3edb18=a188_0x4f79;(function(_0xa85482,_0x5540c5){const _0x23ca15=a188_0x4f79,_0x2ecf76=_0xa85482();while(!![]){try{const _0x25ff20=parseInt(_0x23ca15(0x8f))/0x1*(parseInt(_0x23ca15(0x7d))/0x2)+parseInt(_0x23ca15(0x7a))/0x3+-parseInt(_0x23ca15(0x81))/0x4*(parseInt(_0x23ca15(0x83))/0x5)+-parseInt(_0x23ca15(0x89))/0x6*(-parseInt(_0x23ca15(0x86))/0x7)+parseInt(_0x23ca15(0x91))/0x8*(-parseInt(_0x23ca15(0x94))/0x9)+parseInt(_0x23ca15(0x92))/0xa*(-parseInt(_0x23ca15(0x99))/0xb)+-parseInt(_0x23ca15(0x85))/0xc;if(_0x25ff20===_0x5540c5)break;else _0x2ecf76['push'](_0x2ecf76['shift']());}catch(_0x3f0343){_0x2ecf76['push'](_0x2ecf76['shift']());}}}(a188_0x82aa,0x5c112));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 _0x52b0e3=a188_0x4f79,_0xf148a1=getTemplateBaseUrl();return _0xf148a1+_0x52b0e3(0x7c);}const CACHE_DIR=join(homedir(),a188_0x3edb18(0x7f),a188_0x3edb18(0x87));export async function fetchGuidesFromCDN(){const _0x13ad25=a188_0x3edb18,_0x16b1b2=getGuidesCdnUrl(),_0x46eb9f=await fetch(_0x16b1b2,{'headers':{'Accept':_0x13ad25(0x9c)}});if(!_0x46eb9f['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x46eb9f[_0x13ad25(0x7e)]+'\x20'+_0x46eb9f[_0x13ad25(0x84)]);const _0x1f22b2=await _0x46eb9f[_0x13ad25(0x9b)]();if(!_0x1f22b2['guides']||typeof _0x1f22b2['guides']!==_0x13ad25(0x79))throw new Error(_0x13ad25(0x78));return _0x1f22b2;}function a188_0x4f79(_0x481d33,_0x20bd75){_0x481d33=_0x481d33-0x76;const _0x82aa41=a188_0x82aa();let _0x4f79f4=_0x82aa41[_0x481d33];return _0x4f79f4;}export function writeGuidesToProject(_0x53a824,_0x2b310,_0x4baa0b=a188_0x3edb18(0x77),_0x1a01cd){const _0x2bbd03=a188_0x3edb18,_0x485840=join(_0x2b310,_0x4baa0b);mkdirSync(_0x485840,{'recursive':!![]});for(const [_0x60468b,_0x1553d5]of Object['entries'](_0x53a824[_0x2bbd03(0x9a)])){let _0x687db=_0x1553d5[_0x2bbd03(0x90)];_0x1553d5[_0x2bbd03(0x97)]&&(_0x687db=appendUpdateTime(_0x687db,_0x1553d5[_0x2bbd03(0x97)])),writeFileSync(join(_0x485840,_0x60468b+_0x2bbd03(0x8b)),_0x687db,_0x2bbd03(0x8a));}}export function appendUpdateTime(_0x47d3bd,_0x3b24ce){const _0x4e69ac=a188_0x3edb18;return _0x47d3bd=_0x47d3bd['replace'](/\n*>更新时间:.*$/m,''),_0x47d3bd[_0x4e69ac(0x8c)]()+(_0x4e69ac(0x80)+_0x3b24ce);}export function getSkillTemplate(_0x3e787a){const _0x27ddcb=a188_0x3edb18;return _0x3e787a[_0x27ddcb(0x88)]?.[_0x27ddcb(0x90)]||'';}export function appendExtendContents(_0x43b4bb,_0x3e6856,_0x1efb86){const _0x5599e8=a188_0x3edb18,_0x35eeed=[];for(const [,_0x51d40f]of Object[_0x5599e8(0x8d)](_0x3e6856[_0x5599e8(0x9a)])){_0x51d40f[_0x5599e8(0x96)]&&_0x35eeed[_0x5599e8(0x93)](_0x51d40f[_0x5599e8(0x96)][_0x5599e8(0x8c)]());}if(_0x35eeed[_0x5599e8(0x98)]===0x0)return _0x43b4bb;return _0x43b4bb['trimEnd']()+'\x0a\x0a'+_0x35eeed[_0x5599e8(0x76)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x4e2361,_0xe1861d,_0x1060fa){const _0x240c5f=a188_0x3edb18,_0x46ef1e=getSkillTemplate(_0x4e2361);if(!_0x46ef1e)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x48b9e4=dirname(_0xe1861d);mkdirSync(_0x48b9e4,{'recursive':!![]});let _0x1e8989=_0x46ef1e[_0x240c5f(0x7b)](/\{\{IDE_NAME\}\}/g,_0x1060fa);_0x1e8989=appendExtendContents(_0x1e8989,_0x4e2361),_0x4e2361[_0x240c5f(0x88)][_0x240c5f(0x97)]&&(_0x1e8989=appendUpdateTime(_0x1e8989,_0x4e2361[_0x240c5f(0x88)]['lastUpdated'])),writeFileSync(_0xe1861d,_0x1e8989,_0x240c5f(0x8a));}export async function installGuides(_0x14c401){const _0x1bb58c=a188_0x3edb18,_0x2901e4=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2901e4,_0x14c401),Object[_0x1bb58c(0x8e)](_0x2901e4[_0x1bb58c(0x9a)])[_0x1bb58c(0x98)];}function a188_0x82aa(){const _0x30e4c2=['8285NrSZXO','statusText','4920180oxjAhI','7YAcyCe','cache','skillTemplate','2105436wZDvYK','utf-8','.md','trimEnd','entries','keys','537968OaFeVC','content','72784urdrGE','70nQPruO','push','108HYZGeC','map','extendContent','lastUpdated','length','1046133UPjqTq','guides','json','application/json','join','.lovrabet/skill/guides','CDN\x20返回数据格式错误','object','2188446gZYWen','replace','/skills/guides.json','2kQIPJa','status','.lovrabet','\x0a\x0a>更新时间:','136pZuSni','path'];a188_0x82aa=function(){return _0x30e4c2;};return a188_0x82aa();}export function getGuidesSummary(_0x338c35){const _0x2fc51b=a188_0x3edb18;return Object[_0x2fc51b(0x8d)](_0x338c35[_0x2fc51b(0x9a)])[_0x2fc51b(0x95)](([_0x36e2e9,_0x16beb3])=>({'key':_0x36e2e9,'title':_0x16beb3['title'],'path':_0x16beb3[_0x2fc51b(0x82)]}));}
1
+ const a188_0xd5b914=a188_0x162b;(function(_0x54980a,_0x2a9665){const _0xd841f1=a188_0x162b,_0x3ba114=_0x54980a();while(!![]){try{const _0x4df78e=-parseInt(_0xd841f1(0x127))/0x1*(parseInt(_0xd841f1(0x119))/0x2)+parseInt(_0xd841f1(0x10d))/0x3*(-parseInt(_0xd841f1(0x11d))/0x4)+parseInt(_0xd841f1(0x114))/0x5*(-parseInt(_0xd841f1(0x126))/0x6)+parseInt(_0xd841f1(0x11b))/0x7*(-parseInt(_0xd841f1(0x129))/0x8)+-parseInt(_0xd841f1(0x10b))/0x9*(-parseInt(_0xd841f1(0x123))/0xa)+-parseInt(_0xd841f1(0x10f))/0xb*(-parseInt(_0xd841f1(0x118))/0xc)+parseInt(_0xd841f1(0x112))/0xd*(parseInt(_0xd841f1(0x120))/0xe);if(_0x4df78e===_0x2a9665)break;else _0x3ba114['push'](_0x3ba114['shift']());}catch(_0x198065){_0x3ba114['push'](_0x3ba114['shift']());}}}(a188_0x1c53,0x9493f));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 _0x4950ed=a188_0x162b,_0x1e7246=getTemplateBaseUrl();return _0x1e7246+_0x4950ed(0x117);}const CACHE_DIR=join(homedir(),'.lovrabet',a188_0xd5b914(0x11a));export async function fetchGuidesFromCDN(){const _0x635f32=a188_0xd5b914,_0x20dc42=getGuidesCdnUrl(),_0x3e77a3=await fetch(_0x20dc42,{'headers':{'Accept':'application/json'}});if(!_0x3e77a3['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x3e77a3[_0x635f32(0x110)]+'\x20'+_0x3e77a3[_0x635f32(0x125)]);const _0x15fd71=await _0x3e77a3['json']();if(!_0x15fd71[_0x635f32(0x122)]||typeof _0x15fd71[_0x635f32(0x122)]!==_0x635f32(0x11c))throw new Error('CDN\x20返回数据格式错误');return _0x15fd71;}export function writeGuidesToProject(_0x55d892,_0x2bbdb8,_0x365753=a188_0xd5b914(0x10c),_0x825965){const _0x17dc73=a188_0xd5b914,_0x6daa7d=join(_0x2bbdb8,_0x365753);mkdirSync(_0x6daa7d,{'recursive':!![]});for(const [_0x2c3b73,_0x175ee1]of Object[_0x17dc73(0x121)](_0x55d892[_0x17dc73(0x122)])){let _0xef7982=_0x175ee1[_0x17dc73(0x10a)];_0x175ee1[_0x17dc73(0x116)]&&(_0xef7982=appendUpdateTime(_0xef7982,_0x175ee1['lastUpdated'])),writeFileSync(join(_0x6daa7d,_0x2c3b73+'.md'),_0xef7982,_0x17dc73(0x113));}}export function appendUpdateTime(_0x2543f3,_0x37622f){const _0x53a0a6=a188_0xd5b914;return _0x2543f3=_0x2543f3[_0x53a0a6(0x11e)](/\n*>更新时间:.*$/m,''),_0x2543f3[_0x53a0a6(0x11f)]()+('\x0a\x0a>更新时间:'+_0x37622f);}function a188_0x1c53(){const _0xab8352=['map','statusText','12aQHsoo','139LRwJlC','CDN\x20数据中缺少\x20skillTemplate','696KQruFo','skillTemplate','content','180252voHYul','.lovrabet/skill/guides','57171JkgyBw','title','913EUtwnr','status','push','11960bmfdPE','utf-8','689500aaakbM','extendContent','lastUpdated','/skills/guides.json','68268xZxGWh','11436vrcMav','cache','42343TxGtiC','object','76GsWviM','replace','trimEnd','31276WWpCKU','entries','guides','20xbMlvt'];a188_0x1c53=function(){return _0xab8352;};return a188_0x1c53();}function a188_0x162b(_0x42de50,_0x44aa2d){_0x42de50=_0x42de50-0x10a;const _0x1c53f4=a188_0x1c53();let _0x162b8a=_0x1c53f4[_0x42de50];return _0x162b8a;}export function getSkillTemplate(_0x48c220){const _0x4865f3=a188_0xd5b914;return _0x48c220[_0x4865f3(0x12a)]?.[_0x4865f3(0x10a)]||'';}export function appendExtendContents(_0x58bbb7,_0x2b9bb7,_0x5a9896){const _0x4559bb=a188_0xd5b914,_0x427e86=[];for(const [,_0x55cdac]of Object[_0x4559bb(0x121)](_0x2b9bb7[_0x4559bb(0x122)])){_0x55cdac[_0x4559bb(0x115)]&&_0x427e86[_0x4559bb(0x111)](_0x55cdac[_0x4559bb(0x115)]['trimEnd']());}if(_0x427e86['length']===0x0)return _0x58bbb7;return _0x58bbb7[_0x4559bb(0x11f)]()+'\x0a\x0a'+_0x427e86['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x31e7c6,_0x1abee6,_0x2a338a){const _0x486ef3=a188_0xd5b914,_0x191f55=getSkillTemplate(_0x31e7c6);if(!_0x191f55)throw new Error(_0x486ef3(0x128));const _0x2169fe=dirname(_0x1abee6);mkdirSync(_0x2169fe,{'recursive':!![]});let _0x44825d=_0x191f55[_0x486ef3(0x11e)](/\{\{IDE_NAME\}\}/g,_0x2a338a);_0x44825d=appendExtendContents(_0x44825d,_0x31e7c6),_0x31e7c6[_0x486ef3(0x12a)][_0x486ef3(0x116)]&&(_0x44825d=appendUpdateTime(_0x44825d,_0x31e7c6[_0x486ef3(0x12a)]['lastUpdated'])),writeFileSync(_0x1abee6,_0x44825d,_0x486ef3(0x113));}export async function installGuides(_0x65af48){const _0x49043b=a188_0xd5b914,_0x2ec31b=await fetchGuidesFromCDN();return writeGuidesToProject(_0x2ec31b,_0x65af48),Object['keys'](_0x2ec31b[_0x49043b(0x122)])['length'];}export function getGuidesSummary(_0x1ec23a){const _0x168356=a188_0xd5b914;return Object[_0x168356(0x121)](_0x1ec23a['guides'])[_0x168356(0x124)](([_0x2e0122,_0x3db925])=>({'key':_0x2e0122,'title':_0x3db925[_0x168356(0x10e)],'path':_0x3db925['path']}));}
@@ -1 +1 @@
1
- (function(_0x1d2943,_0x3ef9e7){const _0x37a5b1=a189_0x2bbf,_0x2ddce5=_0x1d2943();while(!![]){try{const _0xe194f6=-parseInt(_0x37a5b1(0x1f3))/0x1*(-parseInt(_0x37a5b1(0x1e4))/0x2)+parseInt(_0x37a5b1(0x1d9))/0x3+-parseInt(_0x37a5b1(0x1dc))/0x4+-parseInt(_0x37a5b1(0x1e5))/0x5*(-parseInt(_0x37a5b1(0x1d8))/0x6)+-parseInt(_0x37a5b1(0x1ec))/0x7*(-parseInt(_0x37a5b1(0x1e9))/0x8)+-parseInt(_0x37a5b1(0x1f0))/0x9+parseInt(_0x37a5b1(0x1e6))/0xa*(-parseInt(_0x37a5b1(0x1e1))/0xb);if(_0xe194f6===_0x3ef9e7)break;else _0x2ddce5['push'](_0x2ddce5['shift']());}catch(_0x1ff149){_0x2ddce5['push'](_0x2ddce5['shift']());}}}(a189_0x596a,0x39b3b));export async function httpRequest(_0x1c907e,_0x26ac4b={}){const _0x45e945=a189_0x2bbf,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x26ac4b;let _0x245b4b=null;for(let _0x2a1119=0x0;_0x2a1119<=retries;_0x2a1119++){try{const _0x5ef660=new AbortController(),_0x3dc4cc=setTimeout(()=>_0x5ef660['abort'](),timeout),_0x19a32a=await fetch(_0x1c907e,{'headers':headers,'signal':_0x5ef660['signal']});clearTimeout(_0x3dc4cc);let _0x3be9e4;const _0x1711a5=_0x19a32a[_0x45e945(0x1ee)][_0x45e945(0x1ea)](_0x45e945(0x1df));return _0x1711a5?.[_0x45e945(0x1eb)](_0x45e945(0x1f1))?_0x3be9e4=await _0x19a32a[_0x45e945(0x1de)]():_0x3be9e4=await _0x19a32a[_0x45e945(0x1e0)](),{'ok':_0x19a32a['ok'],'status':_0x19a32a[_0x45e945(0x1ef)],'statusText':_0x19a32a[_0x45e945(0x1e3)],'data':_0x3be9e4,'headers':_0x19a32a[_0x45e945(0x1ee)],'url':_0x19a32a['url'],'text':()=>_0x19a32a[_0x45e945(0x1e0)]()};}catch(_0x5d3758){_0x245b4b=_0x5d3758 instanceof Error?_0x5d3758:new Error(String(_0x5d3758));if(_0x2a1119===retries)break;if(shouldRetry(_0x5d3758)){console[_0x45e945(0x1ed)](_0x45e945(0x1e7)+retryDelay+_0x45e945(0x1f2)+(_0x2a1119+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x245b4b||new Error(_0x45e945(0x1dd));}function a189_0x2bbf(_0xba9e70,_0xf35300){_0xba9e70=_0xba9e70-0x1d8;const _0x596abe=a189_0x596a();let _0x2bbf36=_0x596abe[_0xba9e70];return _0x2bbf36;}function a189_0x596a(){const _0x3dc6e5=['388660QhlwYr','*\x20请求失败,','fetch','448ZvOOmG','get','includes','1841guIGQa','log','headers','status','358236FrsBsp','application/json','ms\x20后进行第\x20','349yZMtIB','2166738iFeZMl','102963MOWQoz','name','ENOTFOUND','430872oaBfJZ','Request\x20failed','json','content-type','text','132XZeOkq','ECONNRESET','statusText','2522jOIBOH','5UlHbvm'];a189_0x596a=function(){return _0x3dc6e5;};return a189_0x596a();}function shouldRetry(_0x4a9d05){const _0x8bc689=a189_0x2bbf;if(_0x4a9d05 instanceof Error){if(_0x4a9d05['name']==='AbortError')return![];if(_0x4a9d05[_0x8bc689(0x1da)]==='TypeError'&&_0x4a9d05['message'][_0x8bc689(0x1eb)](_0x8bc689(0x1e8)))return!![];if(_0x4a9d05['message'][_0x8bc689(0x1eb)](_0x8bc689(0x1e2)))return!![];if(_0x4a9d05['message'][_0x8bc689(0x1eb)](_0x8bc689(0x1db)))return![];}return![];}function sleep(_0x1f209e){return new Promise(_0x5aad09=>setTimeout(_0x5aad09,_0x1f209e));}export function validateUrl(_0x23cb0e){try{return new URL(_0x23cb0e),!![];}catch{return![];}}
1
+ (function(_0x88d5ad,_0xf7f86c){const _0x3d5527=a189_0x1e72,_0x11a5cf=_0x88d5ad();while(!![]){try{const _0x4c0b6a=parseInt(_0x3d5527(0x15e))/0x1+-parseInt(_0x3d5527(0x164))/0x2+-parseInt(_0x3d5527(0x15f))/0x3*(parseInt(_0x3d5527(0x15c))/0x4)+parseInt(_0x3d5527(0x163))/0x5+-parseInt(_0x3d5527(0x158))/0x6+parseInt(_0x3d5527(0x157))/0x7*(-parseInt(_0x3d5527(0x156))/0x8)+parseInt(_0x3d5527(0x160))/0x9*(parseInt(_0x3d5527(0x166))/0xa);if(_0x4c0b6a===_0xf7f86c)break;else _0x11a5cf['push'](_0x11a5cf['shift']());}catch(_0x43cf90){_0x11a5cf['push'](_0x11a5cf['shift']());}}}(a189_0x313d,0xca427));export async function httpRequest(_0x569373,_0x3b11c4={}){const _0x216dfd=a189_0x1e72,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x3b11c4;let _0x584d46=null;for(let _0x5f2563=0x0;_0x5f2563<=retries;_0x5f2563++){try{const _0x3fe883=new AbortController(),_0x23cd74=setTimeout(()=>_0x3fe883[_0x216dfd(0x152)](),timeout),_0x17fce3=await fetch(_0x569373,{'headers':headers,'signal':_0x3fe883['signal']});clearTimeout(_0x23cd74);let _0x53099d;const _0x53a264=_0x17fce3['headers'][_0x216dfd(0x14d)]('content-type');return _0x53a264?.['includes'](_0x216dfd(0x159))?_0x53099d=await _0x17fce3[_0x216dfd(0x15d)]():_0x53099d=await _0x17fce3[_0x216dfd(0x155)](),{'ok':_0x17fce3['ok'],'status':_0x17fce3['status'],'statusText':_0x17fce3[_0x216dfd(0x14b)],'data':_0x53099d,'headers':_0x17fce3['headers'],'url':_0x17fce3[_0x216dfd(0x14e)],'text':()=>_0x17fce3[_0x216dfd(0x155)]()};}catch(_0x5239dc){_0x584d46=_0x5239dc instanceof Error?_0x5239dc:new Error(String(_0x5239dc));if(_0x5f2563===retries)break;if(shouldRetry(_0x5239dc)){console[_0x216dfd(0x15a)](_0x216dfd(0x150)+retryDelay+_0x216dfd(0x151)+(_0x5f2563+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x584d46||new Error(_0x216dfd(0x14f));}function shouldRetry(_0x19770f){const _0x4624c1=a189_0x1e72;if(_0x19770f instanceof Error){if(_0x19770f[_0x4624c1(0x15b)]===_0x4624c1(0x161))return![];if(_0x19770f['name']===_0x4624c1(0x14c)&&_0x19770f[_0x4624c1(0x165)][_0x4624c1(0x167)](_0x4624c1(0x162)))return!![];if(_0x19770f[_0x4624c1(0x165)][_0x4624c1(0x167)](_0x4624c1(0x153)))return!![];if(_0x19770f[_0x4624c1(0x165)][_0x4624c1(0x167)](_0x4624c1(0x154)))return![];}return![];}function a189_0x313d(){const _0x25f4b0=['statusText','TypeError','get','url','Request\x20failed','*\x20请求失败,','ms\x20后进行第\x20','abort','ECONNRESET','ENOTFOUND','text','48HKfQRC','1635949zJylcV','657642oXbQoJ','application/json','log','name','4YMGnqj','json','601986mGsOQl','4891449obbqlV','7457634SHDehh','AbortError','fetch','5231285MYaUOW','326668twHGfc','message','30MlFrTI','includes'];a189_0x313d=function(){return _0x25f4b0;};return a189_0x313d();}function sleep(_0x463710){return new Promise(_0x522b20=>setTimeout(_0x522b20,_0x463710));}function a189_0x1e72(_0x48c592,_0x15a1aa){_0x48c592=_0x48c592-0x14b;const _0x313d61=a189_0x313d();let _0x1e72be=_0x313d61[_0x48c592];return _0x1e72be;}export function validateUrl(_0x11adce){try{return new URL(_0x11adce),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x134a52,_0xc88d7f){const _0x4a35b9=a190_0x49b4,_0x196d33=_0x134a52();while(!![]){try{const _0x2c32b6=parseInt(_0x4a35b9(0x15e))/0x1*(parseInt(_0x4a35b9(0x163))/0x2)+parseInt(_0x4a35b9(0x162))/0x3+parseInt(_0x4a35b9(0x16a))/0x4+-parseInt(_0x4a35b9(0x16d))/0x5+parseInt(_0x4a35b9(0x168))/0x6*(-parseInt(_0x4a35b9(0x16f))/0x7)+parseInt(_0x4a35b9(0x161))/0x8*(-parseInt(_0x4a35b9(0x166))/0x9)+-parseInt(_0x4a35b9(0x160))/0xa*(-parseInt(_0x4a35b9(0x16b))/0xb);if(_0x2c32b6===_0xc88d7f)break;else _0x196d33['push'](_0x196d33['shift']());}catch(_0xd8c747){_0x196d33['push'](_0x196d33['shift']());}}}(a190_0x34a9,0x4cc23));function env(_0x4daf7c){return process.env[`RABETBASE_${_0x4daf7c}`]||process.env[`LOVRABET_${_0x4daf7c}`]||undefined;}function a190_0x49b4(_0x42e7a1,_0xb8c749){_0x42e7a1=_0x42e7a1-0x15e;const _0x34a9b8=a190_0x34a9();let _0x49b4cc=_0x34a9b8[_0x42e7a1];return _0x49b4cc;}function a190_0x34a9(){const _0x4cea01=['2658275qMumsh','stdout','7jLseKx','2purjzf','isRaw','501430rYXYoN','136EZeYaw','1466454EjLqur','272886xiQFbE','stdin','isTTY','91062YZmsru','nonInteractive','64572tezplr','setRawMode','867916zWZLqY','11uZXUNy','true'];a190_0x34a9=function(){return _0x4cea01;};return a190_0x34a9();}export function isNonInteractive(_0x46470c){const _0x5510d8=a190_0x49b4;return!!(_0x46470c[_0x5510d8(0x167)]||_0x46470c['ci']||env('CI')===_0x5510d8(0x16c)||process.env.CI==='true'||!process[_0x5510d8(0x16e)][_0x5510d8(0x165)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xce960=a190_0x49b4;if(!process['stdin']['isTTY'])return![];try{const _0x50e79d=process[_0xce960(0x164)][_0xce960(0x15f)];return process[_0xce960(0x164)][_0xce960(0x169)](!![]),process[_0xce960(0x164)]['setRawMode'](_0x50e79d??![]),!![];}catch{return![];}}
1
+ (function(_0x5d0fc4,_0x1a197d){const _0x45800f=a190_0x31d2,_0x198700=_0x5d0fc4();while(!![]){try{const _0x37446f=parseInt(_0x45800f(0x156))/0x1*(parseInt(_0x45800f(0x15a))/0x2)+parseInt(_0x45800f(0x15d))/0x3*(-parseInt(_0x45800f(0x15b))/0x4)+-parseInt(_0x45800f(0x159))/0x5+parseInt(_0x45800f(0x158))/0x6*(-parseInt(_0x45800f(0x15e))/0x7)+-parseInt(_0x45800f(0x15f))/0x8+parseInt(_0x45800f(0x151))/0x9+parseInt(_0x45800f(0x155))/0xa*(parseInt(_0x45800f(0x152))/0xb);if(_0x37446f===_0x1a197d)break;else _0x198700['push'](_0x198700['shift']());}catch(_0xa5d9fa){_0x198700['push'](_0x198700['shift']());}}}(a190_0x1a04,0xa0c86));function a190_0x1a04(){const _0x2cb560=['stdin','2701242WbfLzb','385HiPogA','isTTY','nonInteractive','1013460zdczGe','867729SwCUYs','true','6RqtfMn','3734400PjyBZg','2NNhgsV','4543856Fgyxvv','setRawMode','3ZsIMsz','7197799DVcbij','9162480nkVfzq','isRaw'];a190_0x1a04=function(){return _0x2cb560;};return a190_0x1a04();}function env(_0x27a3d8){return process.env[`RABETBASE_${_0x27a3d8}`]||process.env[`LOVRABET_${_0x27a3d8}`]||undefined;}export function isNonInteractive(_0x1625c2){const _0x53c819=a190_0x31d2;return!!(_0x1625c2[_0x53c819(0x154)]||_0x1625c2['ci']||env('CI')==='true'||process.env.CI===_0x53c819(0x157)||!process['stdout'][_0x53c819(0x153)]||!isStdinRawModeSupported());}function a190_0x31d2(_0x37b71c,_0x5eb5ca){_0x37b71c=_0x37b71c-0x150;const _0x1a047a=a190_0x1a04();let _0x31d25d=_0x1a047a[_0x37b71c];return _0x31d25d;}function isStdinRawModeSupported(){const _0x5e37a7=a190_0x31d2;if(!process['stdin']['isTTY'])return![];try{const _0x1d39cb=process[_0x5e37a7(0x150)][_0x5e37a7(0x160)];return process[_0x5e37a7(0x150)]['setRawMode'](!![]),process[_0x5e37a7(0x150)][_0x5e37a7(0x15c)](_0x1d39cb??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a191_0xb4a2b1=a191_0x5260;function a191_0x5260(_0x6ebc13,_0x5ebdde){_0x6ebc13=_0x6ebc13-0x1d5;const _0x3ead44=a191_0x3ead();let _0x52607a=_0x3ead44[_0x6ebc13];return _0x52607a;}(function(_0x45beb2,_0x504416){const _0x393d48=a191_0x5260,_0x5a6f2c=_0x45beb2();while(!![]){try{const _0x254acd=-parseInt(_0x393d48(0x207))/0x1*(-parseInt(_0x393d48(0x1d9))/0x2)+-parseInt(_0x393d48(0x1f2))/0x3*(parseInt(_0x393d48(0x1ea))/0x4)+parseInt(_0x393d48(0x20a))/0x5+parseInt(_0x393d48(0x1f7))/0x6*(parseInt(_0x393d48(0x1db))/0x7)+-parseInt(_0x393d48(0x1df))/0x8+parseInt(_0x393d48(0x1ed))/0x9+-parseInt(_0x393d48(0x1fa))/0xa;if(_0x254acd===_0x504416)break;else _0x5a6f2c['push'](_0x5a6f2c['shift']());}catch(_0x5187ab){_0x5a6f2c['push'](_0x5a6f2c['shift']());}}}(a191_0x3ead,0x1e7f4));import a191_0x5c0f41 from'winston';import a191_0x513013 from'node:fs';import a191_0xc25028 from'node:path';function a191_0x3ead(){const _0x318289=['log','printf','4vTklIh','combine','4578KNOCfu','getWinstonInstance','utf8','details','895448inWZnb','now','logTask','mkdirSync','readFileSync','command','失败:\x20','error','timestamp','开始执行:\x20','initWinstonLogger','42576eXmyKN','dirname','File','2101860zgFlPP','green','info','duration','完成:\x20','18ivHVUn','red','toISOString','success','clear','1776GngpvD','message','currentRawCommand','3962620mOljyK','winstonLogger','filter','logFilePath','addColors','unknown','writeFileSync','Failed\x20to\x20clear\x20logs:','transports','level','format','join','warn','58924ulFFeQ','existsSync','readLogs','760005rMftXp','Failed\x20to\x20read\x20logs:','blue','parse','clearLogs','rawCommand'];a191_0x3ead=function(){return _0x318289;};return a191_0x3ead();}class Logger{[a191_0xb4a2b1(0x1fb)];['logFilePath'];[a191_0xb4a2b1(0x1f9)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x43d686){const _0x4d7ed3=a191_0xb4a2b1;this[_0x4d7ed3(0x1f9)]=_0x43d686;}['initWinstonLogger'](){const _0x974f3=a191_0xb4a2b1,_0x44e8e8=a191_0xc25028[_0x974f3(0x1eb)](this[_0x974f3(0x1fd)]);!a191_0x513013[_0x974f3(0x208)](_0x44e8e8)&&a191_0x513013[_0x974f3(0x1e2)](_0x44e8e8,{'recursive':!![]});const _0x165f2f=a191_0x5c0f41[_0x974f3(0x204)][_0x974f3(0x1da)](a191_0x5c0f41[_0x974f3(0x204)][_0x974f3(0x1e7)](),a191_0x5c0f41[_0x974f3(0x204)]['errors']({'stack':!![]}),a191_0x5c0f41[_0x974f3(0x204)][_0x974f3(0x1d8)](_0x220758=>{const _0xa59b5f=_0x974f3,_0x46a9c0={'timestamp':_0x220758[_0xa59b5f(0x1e7)]||new Date()[_0xa59b5f(0x1f4)](),'level':_0x220758[_0xa59b5f(0x203)]||_0xa59b5f(0x1ef),'command':_0x220758[_0xa59b5f(0x1e4)]||_0xa59b5f(0x1ff),'rawCommand':_0x220758[_0xa59b5f(0x1d6)]||this[_0xa59b5f(0x1f9)]||undefined,'message':_0x220758[_0xa59b5f(0x1f8)]||'','duration':_0x220758[_0xa59b5f(0x1f0)]||undefined,'details':_0x220758[_0xa59b5f(0x1de)]||undefined};return JSON['stringify'](_0x46a9c0);}));this['winstonLogger']=a191_0x5c0f41['createLogger']({'level':_0x974f3(0x1ef),'format':_0x165f2f,'transports':[new a191_0x5c0f41[(_0x974f3(0x202))][(_0x974f3(0x1ec))]({'filename':this[_0x974f3(0x1fd)],'level':_0x974f3(0x1ef)})],'silent':![]}),a191_0x5c0f41[_0x974f3(0x1fe)]({'success':_0x974f3(0x1ee),'error':_0x974f3(0x1f3),'warn':'yellow','info':_0x974f3(0x20c)});}['setLogPath'](_0x5069d9){const _0x4fbbea=a191_0xb4a2b1;this[_0x4fbbea(0x1fd)]=a191_0xc25028[_0x4fbbea(0x205)](_0x5069d9,'.lovrabet.log'),this['winstonLogger']&&this[_0x4fbbea(0x1fb)][_0x4fbbea(0x1f6)](),this[_0x4fbbea(0x1e9)]();}[a191_0xb4a2b1(0x1ef)](_0x29cc77,_0x4ca7b2,_0x50b393){const _0x3d525e=a191_0xb4a2b1;if(!this[_0x3d525e(0x1fd)]||!this[_0x3d525e(0x1fb)])return;this[_0x3d525e(0x1fb)]['info'](_0x4ca7b2,{'command':_0x29cc77,'details':_0x50b393});}[a191_0xb4a2b1(0x1f5)](_0x4a9885,_0x240dcb,_0x2c38e7,_0x3a4f8e){const _0x586ee9=a191_0xb4a2b1;if(!this[_0x586ee9(0x1fd)]||!this[_0x586ee9(0x1fb)])return;this[_0x586ee9(0x1fb)][_0x586ee9(0x1d7)](_0x586ee9(0x1ef),_0x240dcb,{'level':'success','command':_0x4a9885,'duration':_0x2c38e7,'details':_0x3a4f8e});}['error'](_0xf1725d,_0x302cf7,_0x5d9862){const _0x463a3b=a191_0xb4a2b1;if(!this[_0x463a3b(0x1fd)]||!this[_0x463a3b(0x1fb)])return;this[_0x463a3b(0x1fb)][_0x463a3b(0x1e6)](_0x302cf7,{'command':_0xf1725d,'details':_0x5d9862});}[a191_0xb4a2b1(0x206)](_0x3edf2f,_0x84e00f,_0x34db80){const _0x2b5a4a=a191_0xb4a2b1;if(!this[_0x2b5a4a(0x1fd)]||!this[_0x2b5a4a(0x1fb)])return;this['winstonLogger'][_0x2b5a4a(0x206)](_0x84e00f,{'command':_0x3edf2f,'details':_0x34db80});}async[a191_0xb4a2b1(0x1e1)](_0xe48baa,_0x343963,_0x85fbaf){const _0x4bf577=a191_0xb4a2b1,_0x48db2e=Date[_0x4bf577(0x1e0)]();this[_0x4bf577(0x1ef)](_0xe48baa,_0x4bf577(0x1e8)+_0x343963);try{const _0x3e325c=await _0x85fbaf(),_0xec354=Date['now']()-_0x48db2e;return this[_0x4bf577(0x1f5)](_0xe48baa,_0x4bf577(0x1f1)+_0x343963,_0xec354),_0x3e325c;}catch(_0x310694){const _0x3beb12=Date[_0x4bf577(0x1e0)]()-_0x48db2e;this[_0x4bf577(0x1e6)](_0xe48baa,_0x4bf577(0x1e5)+_0x343963,{'error':_0x310694 instanceof Error?_0x310694[_0x4bf577(0x1f8)]:String(_0x310694),'duration':_0x3beb12});throw _0x310694;}}[a191_0xb4a2b1(0x209)](){const _0x419248=a191_0xb4a2b1;try{if(!a191_0x513013[_0x419248(0x208)](this[_0x419248(0x1fd)]))return[];const _0x5c870a=a191_0x513013[_0x419248(0x1e3)](this[_0x419248(0x1fd)],_0x419248(0x1dd));return _0x5c870a['split']('\x0a')[_0x419248(0x1fc)](_0x5b05cd=>_0x5b05cd['trim']())['map'](_0x482092=>JSON[_0x419248(0x20d)](_0x482092));}catch(_0x30015e){return console[_0x419248(0x206)](_0x419248(0x20b),_0x30015e),[];}}[a191_0xb4a2b1(0x1d5)](){const _0x19c015=a191_0xb4a2b1;try{a191_0x513013[_0x19c015(0x208)](this[_0x19c015(0x1fd)])&&a191_0x513013[_0x19c015(0x200)](this[_0x19c015(0x1fd)],'',_0x19c015(0x1dd));}catch(_0x4dafad){console[_0x19c015(0x206)](_0x19c015(0x201),_0x4dafad);}}[a191_0xb4a2b1(0x1dc)](){const _0x170bb0=a191_0xb4a2b1;return this[_0x170bb0(0x1fb)];}}export const logger=new Logger();
1
+ function a191_0x5293(_0x583af3,_0x2ffe4e){_0x583af3=_0x583af3-0xaf;const _0x47cc86=a191_0x47cc();let _0x529374=_0x47cc86[_0x583af3];return _0x529374;}const a191_0x2cb39a=a191_0x5293;(function(_0x287ca3,_0x40c836){const _0x3d2a05=a191_0x5293,_0x3aaf2b=_0x287ca3();while(!![]){try{const _0x5b76ea=parseInt(_0x3d2a05(0xc4))/0x1*(-parseInt(_0x3d2a05(0xb8))/0x2)+parseInt(_0x3d2a05(0xd8))/0x3*(-parseInt(_0x3d2a05(0xc9))/0x4)+-parseInt(_0x3d2a05(0xb0))/0x5+parseInt(_0x3d2a05(0xda))/0x6*(parseInt(_0x3d2a05(0xbf))/0x7)+parseInt(_0x3d2a05(0xb6))/0x8*(parseInt(_0x3d2a05(0xc6))/0x9)+-parseInt(_0x3d2a05(0xdc))/0xa*(-parseInt(_0x3d2a05(0xe7))/0xb)+-parseInt(_0x3d2a05(0xd6))/0xc*(-parseInt(_0x3d2a05(0xd9))/0xd);if(_0x5b76ea===_0x40c836)break;else _0x3aaf2b['push'](_0x3aaf2b['shift']());}catch(_0x5b6a45){_0x3aaf2b['push'](_0x3aaf2b['shift']());}}}(a191_0x47cc,0x7581d));function a191_0x47cc(){const _0x26bfe8=['开始执行:\x20','752HhVujc','readLogs','setLogPath','filter','success','green','.lovrabet.log','getWinstonInstance','失败:\x20','log','info','utf8','createLogger','60fRLwqe','dirname','552fqgKxy','1145755LoqNzS','12oqhROv','error','20rtIqoM','Failed\x20to\x20read\x20logs:','logFilePath','split','errors','File','parse','warn','winstonLogger','currentRawCommand','rawCommand','2055471VNyJOg','existsSync','完成:\x20','3066065XTlrvF','now','details','readFileSync','trim','Failed\x20to\x20clear\x20logs:','6965128qsIdMj','blue','30524JQRpBP','writeFileSync','join','addColors','message','printf','command','84112ZhfDMa','combine','format','initWinstonLogger','logTask','38ulmNmo','clearLogs','9tmGDKA','timestamp'];a191_0x47cc=function(){return _0x26bfe8;};return a191_0x47cc();}import a191_0x56b6d3 from'winston';import a191_0x380226 from'node:fs';import a191_0x3dab93 from'node:path';class Logger{['winstonLogger'];[a191_0x2cb39a(0xde)];[a191_0x2cb39a(0xe5)]='';constructor(){this['logFilePath']='';}['setRawCommand'](_0x2f8400){const _0x344931=a191_0x2cb39a;this[_0x344931(0xe5)]=_0x2f8400;}[a191_0x2cb39a(0xc2)](){const _0x28b2f7=a191_0x2cb39a,_0x3e0966=a191_0x3dab93[_0x28b2f7(0xd7)](this[_0x28b2f7(0xde)]);!a191_0x380226['existsSync'](_0x3e0966)&&a191_0x380226['mkdirSync'](_0x3e0966,{'recursive':!![]});const _0x48db14=a191_0x56b6d3[_0x28b2f7(0xc1)][_0x28b2f7(0xc0)](a191_0x56b6d3['format'][_0x28b2f7(0xc7)](),a191_0x56b6d3['format'][_0x28b2f7(0xe0)]({'stack':!![]}),a191_0x56b6d3[_0x28b2f7(0xc1)][_0x28b2f7(0xbd)](_0x54b160=>{const _0x3b77d8=_0x28b2f7,_0x4fee01={'timestamp':_0x54b160[_0x3b77d8(0xc7)]||new Date()['toISOString'](),'level':_0x54b160['level']||_0x3b77d8(0xd3),'command':_0x54b160[_0x3b77d8(0xbe)]||'unknown','rawCommand':_0x54b160[_0x3b77d8(0xe6)]||this[_0x3b77d8(0xe5)]||undefined,'message':_0x54b160[_0x3b77d8(0xbc)]||'','duration':_0x54b160['duration']||undefined,'details':_0x54b160[_0x3b77d8(0xb2)]||undefined};return JSON['stringify'](_0x4fee01);}));this['winstonLogger']=a191_0x56b6d3[_0x28b2f7(0xd5)]({'level':_0x28b2f7(0xd3),'format':_0x48db14,'transports':[new a191_0x56b6d3['transports'][(_0x28b2f7(0xe1))]({'filename':this[_0x28b2f7(0xde)],'level':_0x28b2f7(0xd3)})],'silent':![]}),a191_0x56b6d3[_0x28b2f7(0xbb)]({'success':_0x28b2f7(0xce),'error':'red','warn':'yellow','info':_0x28b2f7(0xb7)});}[a191_0x2cb39a(0xcb)](_0x28f6a9){const _0x59253c=a191_0x2cb39a;this['logFilePath']=a191_0x3dab93[_0x59253c(0xba)](_0x28f6a9,_0x59253c(0xcf)),this[_0x59253c(0xe4)]&&this['winstonLogger']['clear'](),this[_0x59253c(0xc2)]();}[a191_0x2cb39a(0xd3)](_0x3698b9,_0x313dce,_0x2b3aa4){const _0x5d87d5=a191_0x2cb39a;if(!this[_0x5d87d5(0xde)]||!this['winstonLogger'])return;this[_0x5d87d5(0xe4)][_0x5d87d5(0xd3)](_0x313dce,{'command':_0x3698b9,'details':_0x2b3aa4});}[a191_0x2cb39a(0xcd)](_0x5abd5f,_0x24be67,_0x4586a5,_0x690e32){const _0x319b6e=a191_0x2cb39a;if(!this[_0x319b6e(0xde)]||!this['winstonLogger'])return;this['winstonLogger'][_0x319b6e(0xd2)](_0x319b6e(0xd3),_0x24be67,{'level':_0x319b6e(0xcd),'command':_0x5abd5f,'duration':_0x4586a5,'details':_0x690e32});}['error'](_0x57cd87,_0x54b75,_0x56e26a){const _0x3117df=a191_0x2cb39a;if(!this[_0x3117df(0xde)]||!this[_0x3117df(0xe4)])return;this[_0x3117df(0xe4)][_0x3117df(0xdb)](_0x54b75,{'command':_0x57cd87,'details':_0x56e26a});}[a191_0x2cb39a(0xe3)](_0x621c97,_0x23d7bd,_0x4032c8){const _0x5ce624=a191_0x2cb39a;if(!this['logFilePath']||!this[_0x5ce624(0xe4)])return;this[_0x5ce624(0xe4)][_0x5ce624(0xe3)](_0x23d7bd,{'command':_0x621c97,'details':_0x4032c8});}async[a191_0x2cb39a(0xc3)](_0x159683,_0x2c5c2d,_0x1df527){const _0x43bede=a191_0x2cb39a,_0x46f96c=Date['now']();this[_0x43bede(0xd3)](_0x159683,_0x43bede(0xc8)+_0x2c5c2d);try{const _0x20a012=await _0x1df527(),_0x4deaa5=Date[_0x43bede(0xb1)]()-_0x46f96c;return this[_0x43bede(0xcd)](_0x159683,_0x43bede(0xaf)+_0x2c5c2d,_0x4deaa5),_0x20a012;}catch(_0x1b6404){const _0x2224d2=Date[_0x43bede(0xb1)]()-_0x46f96c;this[_0x43bede(0xdb)](_0x159683,_0x43bede(0xd1)+_0x2c5c2d,{'error':_0x1b6404 instanceof Error?_0x1b6404[_0x43bede(0xbc)]:String(_0x1b6404),'duration':_0x2224d2});throw _0x1b6404;}}[a191_0x2cb39a(0xca)](){const _0x29dd6e=a191_0x2cb39a;try{if(!a191_0x380226[_0x29dd6e(0xe8)](this[_0x29dd6e(0xde)]))return[];const _0xda5675=a191_0x380226[_0x29dd6e(0xb3)](this[_0x29dd6e(0xde)],'utf8');return _0xda5675[_0x29dd6e(0xdf)]('\x0a')[_0x29dd6e(0xcc)](_0x3d9bcf=>_0x3d9bcf[_0x29dd6e(0xb4)]())['map'](_0xee9d1=>JSON[_0x29dd6e(0xe2)](_0xee9d1));}catch(_0x1442c0){return console[_0x29dd6e(0xe3)](_0x29dd6e(0xdd),_0x1442c0),[];}}[a191_0x2cb39a(0xc5)](){const _0xa0ec85=a191_0x2cb39a;try{a191_0x380226[_0xa0ec85(0xe8)](this[_0xa0ec85(0xde)])&&a191_0x380226[_0xa0ec85(0xb9)](this[_0xa0ec85(0xde)],'',_0xa0ec85(0xd4));}catch(_0xf18047){console[_0xa0ec85(0xe3)](_0xa0ec85(0xb5),_0xf18047);}}[a191_0x2cb39a(0xd0)](){const _0x5a2e14=a191_0x2cb39a;return this[_0x5a2e14(0xe4)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x38c7f1,_0x9f9cb0){const _0x273015=a192_0x165a,_0x192549=_0x38c7f1();while(!![]){try{const _0x36848a=parseInt(_0x273015(0x88))/0x1+-parseInt(_0x273015(0x8c))/0x2+-parseInt(_0x273015(0x8e))/0x3+-parseInt(_0x273015(0x8d))/0x4+-parseInt(_0x273015(0x8f))/0x5*(-parseInt(_0x273015(0x84))/0x6)+parseInt(_0x273015(0x82))/0x7+-parseInt(_0x273015(0x80))/0x8*(parseInt(_0x273015(0x81))/0x9);if(_0x36848a===_0x9f9cb0)break;else _0x192549['push'](_0x192549['shift']());}catch(_0x4083a1){_0x192549['push'](_0x192549['shift']());}}}(a192_0xfe9c,0x85a8c));function a192_0x165a(_0x58d515,_0x49ddb3){_0x58d515=_0x58d515-0x80;const _0xfe9c8=a192_0xfe9c();let _0x165a41=_0xfe9c8[_0x58d515];return _0x165a41;}import{CliErrors}from'../errors.js';function a192_0xfe9c(){const _0x5ef4cf=['isArray','144TpsuLi','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','144518nTbvqV','--params\x20must\x20be\x20a\x20JSON\x20object','Invalid\x20JSON\x20for\x20--params:\x20','parse','434952MwtySA','97480BwTTkM','1564563HtcLKO','212140nfbjRZ','15328JZEHwh','621qPTFqm','1961743fgmaYP'];a192_0xfe9c=function(){return _0x5ef4cf;};return a192_0xfe9c();}export function parseJsonParams(_0x43ac2a){const _0x193cb8=a192_0x165a;if(!_0x43ac2a)return undefined;let _0x323e18;try{_0x323e18=JSON[_0x193cb8(0x8b)](_0x43ac2a);}catch{throw CliErrors[_0x193cb8(0x85)](_0x193cb8(0x8a)+_0x43ac2a);}if(!_0x323e18||typeof _0x323e18!==_0x193cb8(0x87)||Array[_0x193cb8(0x83)](_0x323e18))throw CliErrors['validation'](_0x193cb8(0x89),_0x193cb8(0x86));return _0x323e18;}
1
+ function a192_0x1e66(_0x478baa,_0x1a5aaa){_0x478baa=_0x478baa-0xed;const _0x46c50e=a192_0x46c5();let _0x1e6676=_0x46c50e[_0x478baa];return _0x1e6676;}(function(_0x971c53,_0x370d0e){const _0x3d8af0=a192_0x1e66,_0xca7e6=_0x971c53();while(!![]){try{const _0x50648d=-parseInt(_0x3d8af0(0xf6))/0x1+-parseInt(_0x3d8af0(0xed))/0x2+-parseInt(_0x3d8af0(0xf8))/0x3+parseInt(_0x3d8af0(0xf1))/0x4*(-parseInt(_0x3d8af0(0xf3))/0x5)+parseInt(_0x3d8af0(0xf9))/0x6*(-parseInt(_0x3d8af0(0xee))/0x7)+parseInt(_0x3d8af0(0xf7))/0x8+parseInt(_0x3d8af0(0xef))/0x9;if(_0x50648d===_0x370d0e)break;else _0xca7e6['push'](_0xca7e6['shift']());}catch(_0x3d73b4){_0xca7e6['push'](_0xca7e6['shift']());}}}(a192_0x46c5,0x20edb));function a192_0x46c5(){const _0x143f3f=['isArray','190abQZAb','parse','validation','201491LSqrev','1142320tUPUcm','777252gMNyqG','474RkCcYA','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','13326hnJwjK','13293ERGpls','6530274vVctih','object','12236vlSZtR'];a192_0x46c5=function(){return _0x143f3f;};return a192_0x46c5();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1491e9){const _0x27b459=a192_0x1e66;if(!_0x1491e9)return undefined;let _0x1d62c0;try{_0x1d62c0=JSON[_0x27b459(0xf4)](_0x1491e9);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1491e9);}if(!_0x1d62c0||typeof _0x1d62c0!==_0x27b459(0xf0)||Array[_0x27b459(0xf2)](_0x1d62c0))throw CliErrors[_0x27b459(0xf5)]('--params\x20must\x20be\x20a\x20JSON\x20object',_0x27b459(0xfa));return _0x1d62c0;}
@@ -1 +1 @@
1
- function a193_0x1f08(){const _0x245d4c=['335pQoPLn','1158870gRMtHM','2836YqCTjl','402120aXxmTL','8vtSHHP','7634EClKfB','.cmd','7210QzPeZg','1151122bAaqmy','296591JIsHZT','win32','platform','316035QsrBpP','2CwmMTB'];a193_0x1f08=function(){return _0x245d4c;};return a193_0x1f08();}const a193_0x150553=a193_0x550a;(function(_0x2b79e1,_0x538752){const _0x41116b=a193_0x550a,_0x4e1dec=_0x2b79e1();while(!![]){try{const _0x29f9ef=parseInt(_0x41116b(0xdc))/0x1*(parseInt(_0x41116b(0xd2))/0x2)+parseInt(_0x41116b(0xd6))/0x3+parseInt(_0x41116b(0xd5))/0x4*(-parseInt(_0x41116b(0xd3))/0x5)+parseInt(_0x41116b(0xd4))/0x6+parseInt(_0x41116b(0xdb))/0x7+-parseInt(_0x41116b(0xd7))/0x8*(parseInt(_0x41116b(0xd1))/0x9)+parseInt(_0x41116b(0xda))/0xa*(-parseInt(_0x41116b(0xd8))/0xb);if(_0x29f9ef===_0x538752)break;else _0x4e1dec['push'](_0x4e1dec['shift']());}catch(_0x14fb41){_0x4e1dec['push'](_0x4e1dec['shift']());}}}(a193_0x1f08,0x321ae));function a193_0x550a(_0x314fe4,_0x8a9466){_0x314fe4=_0x314fe4-0xd1;const _0x1f08b4=a193_0x1f08();let _0x550ade=_0x1f08b4[_0x314fe4];return _0x550ade;}export const isWindows=process[a193_0x150553(0xde)]===a193_0x150553(0xdd);export function resolveNpmBin(_0x27515e){const _0x9fc674=a193_0x150553;return isWindows?_0x27515e+_0x9fc674(0xd9):_0x27515e;}
1
+ const a193_0x2df4bb=a193_0x43c7;function a193_0x43c7(_0x3737ed,_0x3fddd0){_0x3737ed=_0x3737ed-0x165;const _0x4bfe04=a193_0x4bfe();let _0x43c71e=_0x4bfe04[_0x3737ed];return _0x43c71e;}(function(_0x269f50,_0x4b24b0){const _0x480995=a193_0x43c7,_0x387e8f=_0x269f50();while(!![]){try{const _0xc80993=-parseInt(_0x480995(0x167))/0x1+parseInt(_0x480995(0x169))/0x2+parseInt(_0x480995(0x16c))/0x3+-parseInt(_0x480995(0x171))/0x4*(-parseInt(_0x480995(0x168))/0x5)+-parseInt(_0x480995(0x16f))/0x6*(parseInt(_0x480995(0x16b))/0x7)+-parseInt(_0x480995(0x16a))/0x8*(-parseInt(_0x480995(0x166))/0x9)+parseInt(_0x480995(0x165))/0xa*(-parseInt(_0x480995(0x16e))/0xb);if(_0xc80993===_0x4b24b0)break;else _0x387e8f['push'](_0x387e8f['shift']());}catch(_0xc7bc19){_0x387e8f['push'](_0x387e8f['shift']());}}}(a193_0x4bfe,0x5d5e0));export const isWindows=process[a193_0x2df4bb(0x170)]==='win32';export function resolveNpmBin(_0x2ffb26){const _0x4f2d92=a193_0x2df4bb;return isWindows?_0x2ffb26+_0x4f2d92(0x16d):_0x2ffb26;}function a193_0x4bfe(){const _0x2ce59f=['984vbETBe','platform','3200HWtezd','212740amjFRD','2147805bcSjpz','647392uqgLLf','3195hJuFcn','221206QIinwv','16VtDktS','21329XSDYrI','1482783gzwnYf','.cmd','33RhCWtk'];a193_0x4bfe=function(){return _0x2ce59f;};return a193_0x4bfe();}
@@ -1 +1 @@
1
- const a194_0x2ccd41=a194_0x2538;(function(_0xbeebb7,_0x52b398){const _0x484088=a194_0x2538,_0x1c5086=_0xbeebb7();while(!![]){try{const _0x105fac=parseInt(_0x484088(0xbb))/0x1+-parseInt(_0x484088(0xba))/0x2*(parseInt(_0x484088(0xbd))/0x3)+-parseInt(_0x484088(0xbe))/0x4+-parseInt(_0x484088(0xc5))/0x5*(-parseInt(_0x484088(0xc6))/0x6)+parseInt(_0x484088(0xcf))/0x7*(-parseInt(_0x484088(0xc1))/0x8)+parseInt(_0x484088(0xbc))/0x9*(parseInt(_0x484088(0xc7))/0xa)+parseInt(_0x484088(0xc4))/0xb;if(_0x105fac===_0x52b398)break;else _0x1c5086['push'](_0x1c5086['shift']());}catch(_0x2fec42){_0x1c5086['push'](_0x1c5086['shift']());}}}(a194_0x5c90,0x5c9aa));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a194_0x5c90(){const _0x38e4f4=['1871520TXkOhm','catch','../../templates/rules/lovrabet_rules.mdc.tpl','1093096XpmKHf','json','statusText','1541144rVNDoG','9210haaEUO','1230fumpey','905940oYhvdH','application/json','agents.md','utf-8','status','/rules/rules.json','string','content','7BwhjQb','lovrabet_rules.mdc','.cursor/rules','CDN\x20请求失败:\x20','本地模板文件不存在:\x20','lastUpdated','753354xyZNoe','480410SeIooy','36WSqVOL','3JkPfDM'];a194_0x5c90=function(){return _0x38e4f4;};return a194_0x5c90();}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a194_0x2538(_0x1f2690,_0x49d0a0){_0x1f2690=_0x1f2690-0xba;const _0x5c90ef=a194_0x5c90();let _0x253810=_0x5c90ef[_0x1f2690];return _0x253810;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x38ea7f=a194_0x2538,_0x4138b9=getTemplateBaseUrl();return _0x4138b9+_0x38ea7f(0xcc);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x2ccd41(0xc0));export async function fetchRulesFromCDN(){const _0x124458=a194_0x2ccd41,_0x4a8ad4=getRulesCdnUrl(),_0x3522ec=await fetch(_0x4a8ad4,{'headers':{'Accept':_0x124458(0xc8)}});if(!_0x3522ec['ok'])throw new Error(_0x124458(0xd2)+_0x3522ec[_0x124458(0xcb)]+'\x20'+_0x3522ec[_0x124458(0xc3)]);const _0x2ba892=await _0x3522ec[_0x124458(0xc2)]();if(!_0x2ba892[_0x124458(0xce)]||typeof _0x2ba892[_0x124458(0xce)]!==_0x124458(0xcd))throw new Error('CDN\x20返回数据格式错误');return _0x2ba892;}export async function getRulesContent(){try{const _0x4f551c=await fetchRulesFromCDN();return _0x4f551c['content'];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x83edac=a194_0x2ccd41;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x83edac(0xca));throw new Error(_0x83edac(0xd3)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x2c1509){const _0x504c38=a194_0x2ccd41,_0x4857f1=await fetchRulesFromCDN()[_0x504c38(0xbf)](()=>null);let _0x14ad28;_0x4857f1?(_0x14ad28=_0x4857f1[_0x504c38(0xce)],_0x4857f1[_0x504c38(0xd4)]&&(_0x14ad28=appendUpdateTime(_0x14ad28,_0x4857f1['lastUpdated']))):_0x14ad28=readLocalTemplate();const _0x3de8ab=dirname(_0x2c1509);!existsSync(_0x3de8ab)&&mkdirSync(_0x3de8ab,{'recursive':!![]}),writeFileSync(_0x2c1509,_0x14ad28,_0x504c38(0xca));}export async function copyRulesToCursor(_0x3fbe7a){const _0x3cd472=a194_0x2ccd41,_0x3c568e=join(_0x3fbe7a,_0x3cd472(0xd1)),_0x34634a=join(_0x3c568e,_0x3cd472(0xd0));if(existsSync(_0x34634a))return![];return await writeRulesFile(_0x34634a),!![];}export async function copyRulesToAgentsMd(_0xc29d81){const _0x10d267=a194_0x2ccd41,_0x313415=join(_0xc29d81,_0x10d267(0xc9));if(existsSync(_0x313415))return![];return await writeRulesFile(_0x313415),!![];}
1
+ (function(_0x161d15,_0x9c0f76){const _0x4dc02a=a194_0x55d2,_0x4369e5=_0x161d15();while(!![]){try{const _0x1806b4=-parseInt(_0x4dc02a(0x12c))/0x1*(-parseInt(_0x4dc02a(0x136))/0x2)+parseInt(_0x4dc02a(0x137))/0x3*(parseInt(_0x4dc02a(0x12b))/0x4)+parseInt(_0x4dc02a(0x13b))/0x5*(parseInt(_0x4dc02a(0x13d))/0x6)+-parseInt(_0x4dc02a(0x138))/0x7+-parseInt(_0x4dc02a(0x130))/0x8+parseInt(_0x4dc02a(0x13e))/0x9*(-parseInt(_0x4dc02a(0x12f))/0xa)+-parseInt(_0x4dc02a(0x12e))/0xb*(-parseInt(_0x4dc02a(0x13f))/0xc);if(_0x1806b4===_0x9c0f76)break;else _0x4369e5['push'](_0x4369e5['shift']());}catch(_0x573563){_0x4369e5['push'](_0x4369e5['shift']());}}}(a194_0x362b,0x355fa));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 _0x372e3a=a194_0x55d2,_0x5c2edb=getTemplateBaseUrl();return _0x5c2edb+_0x372e3a(0x140);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x262523=a194_0x55d2,_0x1f596b=getRulesCdnUrl(),_0x1545de=await fetch(_0x1f596b,{'headers':{'Accept':_0x262523(0x134)}});if(!_0x1545de['ok'])throw new Error(_0x262523(0x12d)+_0x1545de[_0x262523(0x139)]+'\x20'+_0x1545de[_0x262523(0x12a)]);const _0x5de7b4=await _0x1545de[_0x262523(0x13c)]();if(!_0x5de7b4[_0x262523(0x132)]||typeof _0x5de7b4[_0x262523(0x132)]!=='string')throw new Error(_0x262523(0x133));return _0x5de7b4;}export async function getRulesContent(){const _0x1c13c4=a194_0x55d2;try{const _0x1d95bf=await fetchRulesFromCDN();return _0x1d95bf[_0x1c13c4(0x132)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x206b3a=a194_0x55d2;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x206b3a(0x131));throw new Error('本地模板文件不存在:\x20'+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x435f0d){const _0x3513be=a194_0x55d2,_0xc59d2d=await fetchRulesFromCDN()[_0x3513be(0x135)](()=>null);let _0x2b2378;_0xc59d2d?(_0x2b2378=_0xc59d2d['content'],_0xc59d2d['lastUpdated']&&(_0x2b2378=appendUpdateTime(_0x2b2378,_0xc59d2d['lastUpdated']))):_0x2b2378=readLocalTemplate();const _0x2a1eab=dirname(_0x435f0d);!existsSync(_0x2a1eab)&&mkdirSync(_0x2a1eab,{'recursive':!![]}),writeFileSync(_0x435f0d,_0x2b2378,_0x3513be(0x131));}function a194_0x55d2(_0x540b11,_0x293a39){_0x540b11=_0x540b11-0x12a;const _0x362be4=a194_0x362b();let _0x55d2ca=_0x362be4[_0x540b11];return _0x55d2ca;}export async function copyRulesToCursor(_0x168834){const _0x724094=a194_0x55d2,_0x189bb7=join(_0x168834,'.cursor/rules'),_0x360583=join(_0x189bb7,_0x724094(0x13a));if(existsSync(_0x360583))return![];return await writeRulesFile(_0x360583),!![];}function a194_0x362b(){const _0x33bcb9=['23396imTvmG','84743ZjDiVA','CDN\x20请求失败:\x20','3474790seDuyy','10lbljRR','1306688hHyjzE','utf-8','content','CDN\x20返回数据格式错误','application/json','catch','2IKaAnD','141KlniHF','716905bPEjBb','status','lovrabet_rules.mdc','5qEvbdY','json','1469034yxPUEq','3924054GSlDwm','12CgYaIV','/rules/rules.json','statusText'];a194_0x362b=function(){return _0x33bcb9;};return a194_0x362b();}export async function copyRulesToAgentsMd(_0x241b83){const _0x58273c=join(_0x241b83,'agents.md');if(existsSync(_0x58273c))return![];return await writeRulesFile(_0x58273c),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x46be40){return new Promise(_0x2e1869=>setTimeout(_0x2e1869,_0x46be40));}
1
+ export function sleep(_0x12956b){return new Promise(_0x3f119f=>setTimeout(_0x3f119f,_0x12956b));}
@@ -1 +1 @@
1
- const a196_0x4bc0a1=a196_0x247d;(function(_0x34964a,_0xf78c2e){const _0xe87f94=a196_0x247d,_0x9d75dd=_0x34964a();while(!![]){try{const _0x172bcb=parseInt(_0xe87f94(0x104))/0x1+-parseInt(_0xe87f94(0x11e))/0x2*(parseInt(_0xe87f94(0x111))/0x3)+-parseInt(_0xe87f94(0x10d))/0x4+parseInt(_0xe87f94(0x118))/0x5+-parseInt(_0xe87f94(0x101))/0x6+parseInt(_0xe87f94(0x125))/0x7*(-parseInt(_0xe87f94(0x11a))/0x8)+parseInt(_0xe87f94(0xe4))/0x9;if(_0x172bcb===_0xf78c2e)break;else _0x9d75dd['push'](_0x9d75dd['shift']());}catch(_0x360bda){_0x9d75dd['push'](_0x9d75dd['shift']());}}}(a196_0x3816,0xe6d57));import a196_0x4ff738 from'node:fs';function a196_0x247d(_0x400f47,_0x455d5d){_0x400f47=_0x400f47-0xe4;const _0x3816cc=a196_0x3816();let _0x247da0=_0x3816cc[_0x400f47];return _0x247da0;}import a196_0x2b2597 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x4bc0a1(0x103)](_0x564adc){const _0x1fbf0d=a196_0x4bc0a1;return String(_0x564adc)[_0x1fbf0d(0xea)](0x2,'0');}static[a196_0x4bc0a1(0x113)](_0x85402b){const _0x57e656=a196_0x4bc0a1,_0x27c1b8=_0x85402b[_0x57e656(0xef)](),_0x18bda2=this[_0x57e656(0x103)](_0x85402b[_0x57e656(0x108)]()+0x1),_0x6c58bd=this[_0x57e656(0x103)](_0x85402b[_0x57e656(0x117)]()),_0x58a4c1=this[_0x57e656(0x103)](_0x85402b[_0x57e656(0x109)]()),_0x41c002=this['pad'](_0x85402b[_0x57e656(0x12b)]()),_0x37b21f=this['pad'](_0x85402b[_0x57e656(0xeb)]());return{'createdAt':_0x27c1b8+'-'+_0x18bda2+'-'+_0x6c58bd+'\x20'+_0x58a4c1+':'+_0x41c002+':'+_0x37b21f,'createdDate':_0x27c1b8+'-'+_0x18bda2+'-'+_0x6c58bd,'createdTime':_0x58a4c1+':'+_0x41c002+':'+_0x37b21f};}static[a196_0x4bc0a1(0x10a)](_0x39f10f){const _0x4e5056=a196_0x4bc0a1,_0x14dc35=_0x39f10f[_0x4e5056(0x123)]('/')[_0x4e5056(0x128)]()||_0x39f10f;return _0x14dc35[_0x4e5056(0x123)]('-')[_0x4e5056(0x107)](_0x48f9a8=>_0x48f9a8[_0x4e5056(0xfc)](0x0)[_0x4e5056(0x11d)]()+_0x48f9a8['slice'](0x1)[_0x4e5056(0xfa)]())[_0x4e5056(0x116)]('');}static['toDisplayTitle'](_0x380f3b){const _0x3e1842=a196_0x4bc0a1,_0x597b58=_0x380f3b[_0x3e1842(0x123)]('/')[_0x3e1842(0x128)]()||_0x380f3b;return _0x597b58[_0x3e1842(0x123)]('-')['map'](_0x37cfeb=>_0x37cfeb['charAt'](0x0)['toUpperCase']()+_0x37cfeb[_0x3e1842(0xf0)](0x1)[_0x3e1842(0xfa)]())[_0x3e1842(0x116)]('\x20');}static[a196_0x4bc0a1(0xff)](_0x2c45df,_0x5851a8,_0x1a887d){const _0x556d3e=a196_0x4bc0a1,_0x5ce6da=this[_0x556d3e(0x10a)](_0x5851a8),_0x35f440=this[_0x556d3e(0x11f)](_0x5851a8),{createdAt:_0x56c14b,createdDate:_0x33917c,createdTime:_0x332053}=this['formatLocalTimestamp'](new Date());let _0x3f8103=_0x2c45df['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x5ce6da)[_0x556d3e(0xf1)](/\{DisplayTitle\}/g,_0x35f440)[_0x556d3e(0xf1)](/\{PageName\}/g,_0x5851a8)[_0x556d3e(0xf1)](/\{TemplateName\}/g,_0x1a887d)[_0x556d3e(0xf1)](/\{CreatedAt\}/g,_0x56c14b)['replace'](/\{CreatedDate\}/g,_0x33917c)[_0x556d3e(0xf1)](/\{CreatedTime\}/g,_0x332053);return _0x3f8103;}static[a196_0x4bc0a1(0x126)](_0x425e9c,_0x540058,_0x370f0c,_0x54475f,_0x50860a,_0x5c3e48,_0xb50d08,_0x8bd107){const _0x5c1d71=a196_0x4bc0a1,_0x2ec325=new Date(),_0x57414e=_0x2ec325[_0x5c1d71(0x12a)](),_0x5c5a55=_0x370f0c[_0x5c1d71(0x107)](_0x1bf27d=>{const _0x203c09=_0x5c1d71,_0x3e7e49=[_0x203c09(0x127)+_0x1bf27d[_0x203c09(0x112)]+'\x22',_0x203c09(0x11c)+_0x1bf27d[_0x203c09(0x10c)]+'\x22',_0x203c09(0xec)+_0x1bf27d['name']+'\x22'];return _0x1bf27d[_0x203c09(0x106)]&&_0x3e7e49[_0x203c09(0x110)](_0x203c09(0xe7)+_0x1bf27d[_0x203c09(0x106)]+'\x22'),_0x203c09(0x119)+_0x3e7e49[_0x203c09(0x116)](',\x20')+_0x203c09(0xf5);})[_0x5c1d71(0x116)](''),_0x3a9a92=_0x54475f||_0x370f0c[0x0]?.[_0x5c1d71(0x106)]||_0x5c1d71(0x12c);let _0x49d171=_0x425e9c[_0x5c1d71(0xf1)](/\{AppCode\}/g,_0x540058)[_0x5c1d71(0xf1)](/\{ModelConfigs\}/g,_0x5c5a55)[_0x5c1d71(0xf1)](/\{ExampleModelName\}/g,_0x3a9a92)[_0x5c1d71(0xf1)](/\{ApiFileName\}/g,_0x50860a||_0x5c1d71(0xed))[_0x5c1d71(0xf1)](/\{ConfigName\}/g,_0x5c3e48||_0x5c1d71(0x10e))['replace'](/\{ClientConfigParam\}/g,_0xb50d08||'')[_0x5c1d71(0xf1)](/\{VarPrefix\}/g,_0x8bd107||_0x5c1d71(0x124))[_0x5c1d71(0xf1)](/\{CreatedAt\}/g,_0x57414e);return _0x49d171;}static async[a196_0x4bc0a1(0x10f)](_0x1ffe67,_0x3002c2,_0x4272a4,_0x56d6a2,_0x45de45=!![]){const _0x1a89fc=a196_0x4bc0a1,_0x5ab544=Date[_0x1a89fc(0x120)]();try{_0x45de45&&logger[_0x1a89fc(0xee)](_0x1a89fc(0xe8),'开始处理模板内容替换',{'templatePath':_0x1ffe67,'targetPath':_0x3002c2,'pageName':_0x4272a4,'templateName':_0x56d6a2});await a196_0x4ff738[_0x1a89fc(0x102)][_0x1a89fc(0xf4)](_0x3002c2,{'recursive':!![]}),await this[_0x1a89fc(0x100)](_0x1ffe67,_0x3002c2,_0x4272a4,_0x56d6a2);if(_0x45de45){const _0x52c951=Date['now']()-_0x5ab544;logger['success'](_0x1a89fc(0xe8),'模板内容替换完成',_0x52c951,{'pageName':_0x4272a4,'templateName':_0x56d6a2});}}catch(_0x3fcf19){if(_0x45de45){const _0x4d5afd=Date[_0x1a89fc(0x120)]()-_0x5ab544;logger[_0x1a89fc(0xf6)](_0x1a89fc(0xe8),_0x1a89fc(0x115),{'templatePath':_0x1ffe67,'targetPath':_0x3002c2,'pageName':_0x4272a4,'templateName':_0x56d6a2,'error':_0x3fcf19 instanceof Error?_0x3fcf19[_0x1a89fc(0xf3)]:String(_0x3fcf19),'duration':_0x4d5afd});}throw _0x3fcf19;}}static async[a196_0x4bc0a1(0x100)](_0x48ee23,_0x2c7356,_0x1831d0,_0xed1595){const _0x5740c5=a196_0x4bc0a1,_0x1a0bce=await a196_0x4ff738[_0x5740c5(0x102)][_0x5740c5(0xf7)](_0x48ee23,{'withFileTypes':!![]});for(const _0xfff403 of _0x1a0bce){const _0x815a15=a196_0x2b2597[_0x5740c5(0x116)](_0x48ee23,_0xfff403['name']);let _0x11c237=a196_0x2b2597['join'](_0x2c7356,_0xfff403[_0x5740c5(0xf9)]);_0xfff403['name']['endsWith']('.tpl')&&(_0x11c237=a196_0x2b2597['join'](_0x2c7356,_0xfff403[_0x5740c5(0xf9)][_0x5740c5(0xf1)](/\.tpl$/,'')));if(_0xfff403[_0x5740c5(0xf8)]())await a196_0x4ff738[_0x5740c5(0x102)][_0x5740c5(0xf4)](_0x11c237,{'recursive':!![]}),await this[_0x5740c5(0x100)](_0x815a15,_0x11c237,_0x1831d0,_0xed1595);else _0xfff403[_0x5740c5(0xfd)]()&&await this[_0x5740c5(0xe6)](_0x815a15,_0x11c237,_0x1831d0,_0xed1595);}}static async['processFile'](_0x663121,_0x42c801,_0x445e3b,_0x13595c){const _0x185583=a196_0x4bc0a1,_0x345a8c=a196_0x2b2597[_0x185583(0x122)](_0x663121)['toLowerCase']();_0x663121['endsWith'](_0x185583(0x10b))&&(_0x42c801=_0x42c801[_0x185583(0xf1)](/\.tpl$/,''));const _0x4961bb=['.tsx',_0x185583(0xe9),_0x185583(0x129),'.js','.json',_0x185583(0x105),_0x185583(0xe5),_0x185583(0x114),_0x185583(0x10b)];if(_0x4961bb[_0x185583(0xfe)](_0x345a8c)||_0x663121[_0x185583(0x11b)](_0x185583(0x10b))){const _0x26c966=await a196_0x4ff738['promises'][_0x185583(0xfb)](_0x663121,_0x185583(0x121)),_0x53beb9=this[_0x185583(0xff)](_0x26c966,_0x445e3b,_0x13595c);await a196_0x4ff738[_0x185583(0x102)][_0x185583(0xf2)](_0x42c801,_0x53beb9,'utf8');}else await a196_0x4ff738[_0x185583(0x102)]['copyFile'](_0x663121,_0x42c801);}}function a196_0x3816(){const _0x152d94=['模板内容替换失败','join','getDate','8357960libyYK','\x0a\x20\x20\x20\x20{\x20','3428184ruPSEJ','endsWith','tableName:\x20\x22','toUpperCase','58OHqirk','toDisplayTitle','now','utf8','extname','split','LOVRABET','14SxuNLv','replaceApiContent','datasetCode:\x20\x22','pop','.jsx','toISOString','getMinutes','YourModel','3244230RUILpa','.css','processFile','alias:\x20\x22','template','.ts','padStart','getSeconds','name:\x20\x22','api','info','getFullYear','slice','replace','writeFile','message','mkdir','\x20},','error','readdir','isDirectory','name','toLowerCase','readFile','charAt','isFile','includes','replaceContent','processDirectory','6905814beQYie','promises','pad','1517673YVWerl','.md','alias','map','getMonth','getHours','toComponentName','.tpl','tableName','134152jQInPb','default','processTemplate','push','58209qoCtVF','datasetCode','formatLocalTimestamp','.scss'];a196_0x3816=function(){return _0x152d94;};return a196_0x3816();}
1
+ function a196_0x3419(){const _0x342b54=['now','mkdir','default','split','writeFile','452404SlMVzU','processDirectory','4lgobue','.md','join','name','toDisplayTitle','开始处理模板内容替换','toLowerCase','promises','getDate','.tpl','.json','.scss','replace','template','15IkYlJj','message','getHours','YourModel','.js','251251eqaMzC','20zRtjnW','.css','error','模板内容替换完成','utf8','success','toUpperCase','datasetCode','slice','6996429fQpaxH','processTemplate','readFile','pad','charAt','replaceApiContent','processFile','info','.ts','pop','getMonth','getFullYear','1742790PlMtNB','289170fltamw','\x0a\x20\x20\x20\x20{\x20','extname','copyFile','getMinutes','formatLocalTimestamp','replaceContent','toISOString','模板内容替换失败','137517rcoAaB','\x20},','toComponentName','alias','endsWith','map','3442360KbkORR'];a196_0x3419=function(){return _0x342b54;};return a196_0x3419();}function a196_0xf933(_0x4f98a0,_0xa6f857){_0x4f98a0=_0x4f98a0-0xbf;const _0x341934=a196_0x3419();let _0xf9338=_0x341934[_0x4f98a0];return _0xf9338;}const a196_0x58fb55=a196_0xf933;(function(_0x35dda7,_0x42cced){const _0x554e68=a196_0xf933,_0x13a9fe=_0x35dda7();while(!![]){try{const _0x827e6b=-parseInt(_0x554e68(0xe0))/0x1+parseInt(_0x554e68(0xf7))/0x2*(parseInt(_0x554e68(0xe9))/0x3)+-parseInt(_0x554e68(0xf5))/0x4*(parseInt(_0x554e68(0xc4))/0x5)+-parseInt(_0x554e68(0xdf))/0x6+-parseInt(_0x554e68(0xc9))/0x7+-parseInt(_0x554e68(0xef))/0x8+parseInt(_0x554e68(0xd3))/0x9*(parseInt(_0x554e68(0xca))/0xa);if(_0x827e6b===_0x42cced)break;else _0x13a9fe['push'](_0x13a9fe['shift']());}catch(_0x9618f0){_0x13a9fe['push'](_0x13a9fe['shift']());}}}(a196_0x3419,0x3fcc2));import a196_0x43ff47 from'node:fs';import a196_0x5bebe3 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x58fb55(0xd6)](_0x4e0d24){return String(_0x4e0d24)['padStart'](0x2,'0');}static[a196_0x58fb55(0xe5)](_0x10eb74){const _0xb39938=a196_0x58fb55,_0x26a930=_0x10eb74[_0xb39938(0xde)](),_0x484f13=this['pad'](_0x10eb74[_0xb39938(0xdd)]()+0x1),_0x2519b6=this[_0xb39938(0xd6)](_0x10eb74[_0xb39938(0xff)]()),_0x15c043=this[_0xb39938(0xd6)](_0x10eb74[_0xb39938(0xc6)]()),_0x1afc7f=this[_0xb39938(0xd6)](_0x10eb74[_0xb39938(0xe4)]()),_0x180598=this['pad'](_0x10eb74['getSeconds']());return{'createdAt':_0x26a930+'-'+_0x484f13+'-'+_0x2519b6+'\x20'+_0x15c043+':'+_0x1afc7f+':'+_0x180598,'createdDate':_0x26a930+'-'+_0x484f13+'-'+_0x2519b6,'createdTime':_0x15c043+':'+_0x1afc7f+':'+_0x180598};}static[a196_0x58fb55(0xeb)](_0x47cf6c){const _0x2ff76f=a196_0x58fb55,_0x395d88=_0x47cf6c[_0x2ff76f(0xf3)]('/')[_0x2ff76f(0xdc)]()||_0x47cf6c;return _0x395d88[_0x2ff76f(0xf3)]('-')[_0x2ff76f(0xee)](_0x28c437=>_0x28c437[_0x2ff76f(0xd7)](0x0)[_0x2ff76f(0xd0)]()+_0x28c437[_0x2ff76f(0xd2)](0x1)['toLowerCase']())[_0x2ff76f(0xf9)]('');}static[a196_0x58fb55(0xfb)](_0x22216e){const _0x389f2c=a196_0x58fb55,_0x2e800d=_0x22216e[_0x389f2c(0xf3)]('/')['pop']()||_0x22216e;return _0x2e800d[_0x389f2c(0xf3)]('-')['map'](_0x49774a=>_0x49774a[_0x389f2c(0xd7)](0x0)[_0x389f2c(0xd0)]()+_0x49774a['slice'](0x1)[_0x389f2c(0xfd)]())[_0x389f2c(0xf9)]('\x20');}static[a196_0x58fb55(0xe6)](_0x288460,_0x46dd10,_0x5ef8c9){const _0x51c186=a196_0x58fb55,_0x2b4aeb=this[_0x51c186(0xeb)](_0x46dd10),_0xca93df=this[_0x51c186(0xfb)](_0x46dd10),{createdAt:_0x4fe3c1,createdDate:_0x197448,createdTime:_0xf6c496}=this[_0x51c186(0xe5)](new Date());let _0x10fe65=_0x288460[_0x51c186(0xc2)](/\{CliVersion\}/g,CLI_VERSION)[_0x51c186(0xc2)](/\{ComponentName\}/g,_0x2b4aeb)[_0x51c186(0xc2)](/\{DisplayTitle\}/g,_0xca93df)['replace'](/\{PageName\}/g,_0x46dd10)[_0x51c186(0xc2)](/\{TemplateName\}/g,_0x5ef8c9)['replace'](/\{CreatedAt\}/g,_0x4fe3c1)['replace'](/\{CreatedDate\}/g,_0x197448)[_0x51c186(0xc2)](/\{CreatedTime\}/g,_0xf6c496);return _0x10fe65;}static[a196_0x58fb55(0xd8)](_0x452fcd,_0x4c8d45,_0x3d7696,_0x42f1c1,_0xb4429,_0x30103f,_0x2b2053,_0x132231){const _0x34a959=a196_0x58fb55,_0x3b168d=new Date(),_0x1ce88c=_0x3b168d[_0x34a959(0xe7)](),_0x53ccec=_0x3d7696[_0x34a959(0xee)](_0xdf9968=>{const _0x17cfd0=_0x34a959,_0x73641f=['datasetCode:\x20\x22'+_0xdf9968[_0x17cfd0(0xd1)]+'\x22','tableName:\x20\x22'+_0xdf9968['tableName']+'\x22','name:\x20\x22'+_0xdf9968[_0x17cfd0(0xfa)]+'\x22'];return _0xdf9968[_0x17cfd0(0xec)]&&_0x73641f['push']('alias:\x20\x22'+_0xdf9968[_0x17cfd0(0xec)]+'\x22'),_0x17cfd0(0xe1)+_0x73641f[_0x17cfd0(0xf9)](',\x20')+_0x17cfd0(0xea);})[_0x34a959(0xf9)](''),_0x3b4577=_0x42f1c1||_0x3d7696[0x0]?.[_0x34a959(0xec)]||_0x34a959(0xc7);let _0x15ecf2=_0x452fcd[_0x34a959(0xc2)](/\{AppCode\}/g,_0x4c8d45)[_0x34a959(0xc2)](/\{ModelConfigs\}/g,_0x53ccec)['replace'](/\{ExampleModelName\}/g,_0x3b4577)[_0x34a959(0xc2)](/\{ApiFileName\}/g,_0xb4429||'api')[_0x34a959(0xc2)](/\{ConfigName\}/g,_0x30103f||_0x34a959(0xf2))[_0x34a959(0xc2)](/\{ClientConfigParam\}/g,_0x2b2053||'')['replace'](/\{VarPrefix\}/g,_0x132231||'LOVRABET')[_0x34a959(0xc2)](/\{CreatedAt\}/g,_0x1ce88c);return _0x15ecf2;}static async[a196_0x58fb55(0xd4)](_0x22cdc3,_0xfbba7f,_0x5a99f5,_0x385d74,_0x168c5f=!![]){const _0xe89e7=a196_0x58fb55,_0x39de4b=Date[_0xe89e7(0xf0)]();try{_0x168c5f&&logger[_0xe89e7(0xda)](_0xe89e7(0xc3),_0xe89e7(0xfc),{'templatePath':_0x22cdc3,'targetPath':_0xfbba7f,'pageName':_0x5a99f5,'templateName':_0x385d74});await a196_0x43ff47[_0xe89e7(0xfe)][_0xe89e7(0xf1)](_0xfbba7f,{'recursive':!![]}),await this[_0xe89e7(0xf6)](_0x22cdc3,_0xfbba7f,_0x5a99f5,_0x385d74);if(_0x168c5f){const _0x5dab33=Date[_0xe89e7(0xf0)]()-_0x39de4b;logger[_0xe89e7(0xcf)](_0xe89e7(0xc3),_0xe89e7(0xcd),_0x5dab33,{'pageName':_0x5a99f5,'templateName':_0x385d74});}}catch(_0x215245){if(_0x168c5f){const _0x42654f=Date[_0xe89e7(0xf0)]()-_0x39de4b;logger[_0xe89e7(0xcc)](_0xe89e7(0xc3),_0xe89e7(0xe8),{'templatePath':_0x22cdc3,'targetPath':_0xfbba7f,'pageName':_0x5a99f5,'templateName':_0x385d74,'error':_0x215245 instanceof Error?_0x215245[_0xe89e7(0xc5)]:String(_0x215245),'duration':_0x42654f});}throw _0x215245;}}static async[a196_0x58fb55(0xf6)](_0x2419f4,_0x299ab6,_0x65063,_0x5ee7ac){const _0x4d9e4c=a196_0x58fb55,_0x1e53d5=await a196_0x43ff47[_0x4d9e4c(0xfe)]['readdir'](_0x2419f4,{'withFileTypes':!![]});for(const _0x1d71ab of _0x1e53d5){const _0x40d793=a196_0x5bebe3[_0x4d9e4c(0xf9)](_0x2419f4,_0x1d71ab[_0x4d9e4c(0xfa)]);let _0x40a420=a196_0x5bebe3[_0x4d9e4c(0xf9)](_0x299ab6,_0x1d71ab[_0x4d9e4c(0xfa)]);_0x1d71ab[_0x4d9e4c(0xfa)]['endsWith'](_0x4d9e4c(0xbf))&&(_0x40a420=a196_0x5bebe3[_0x4d9e4c(0xf9)](_0x299ab6,_0x1d71ab[_0x4d9e4c(0xfa)]['replace'](/\.tpl$/,'')));if(_0x1d71ab['isDirectory']())await a196_0x43ff47[_0x4d9e4c(0xfe)][_0x4d9e4c(0xf1)](_0x40a420,{'recursive':!![]}),await this[_0x4d9e4c(0xf6)](_0x40d793,_0x40a420,_0x65063,_0x5ee7ac);else _0x1d71ab['isFile']()&&await this[_0x4d9e4c(0xd9)](_0x40d793,_0x40a420,_0x65063,_0x5ee7ac);}}static async['processFile'](_0x3916c1,_0x198a31,_0x5bf7da,_0x1e3889){const _0x43c208=a196_0x58fb55,_0x235eeb=a196_0x5bebe3[_0x43c208(0xe2)](_0x3916c1)['toLowerCase']();_0x3916c1[_0x43c208(0xed)]('.tpl')&&(_0x198a31=_0x198a31['replace'](/\.tpl$/,''));const _0x1c4dbd=['.tsx',_0x43c208(0xdb),'.jsx',_0x43c208(0xc8),_0x43c208(0xc0),_0x43c208(0xf8),_0x43c208(0xcb),_0x43c208(0xc1),_0x43c208(0xbf)];if(_0x1c4dbd['includes'](_0x235eeb)||_0x3916c1[_0x43c208(0xed)](_0x43c208(0xbf))){const _0x390ba4=await a196_0x43ff47[_0x43c208(0xfe)][_0x43c208(0xd5)](_0x3916c1,_0x43c208(0xce)),_0x7f559d=this['replaceContent'](_0x390ba4,_0x5bf7da,_0x1e3889);await a196_0x43ff47[_0x43c208(0xfe)][_0x43c208(0xf4)](_0x198a31,_0x7f559d,'utf8');}else await a196_0x43ff47[_0x43c208(0xfe)][_0x43c208(0xe3)](_0x3916c1,_0x198a31);}}
@@ -1 +1 @@
1
- (function(_0x4135b5,_0x4b23d9){var _0x5e1af2=a197_0x5199,_0x6763b4=_0x4135b5();while(!![]){try{var _0x449bfb=-parseInt(_0x5e1af2(0x179))/0x1*(-parseInt(_0x5e1af2(0x17c))/0x2)+parseInt(_0x5e1af2(0x173))/0x3+-parseInt(_0x5e1af2(0x177))/0x4*(parseInt(_0x5e1af2(0x17d))/0x5)+-parseInt(_0x5e1af2(0x175))/0x6+-parseInt(_0x5e1af2(0x17a))/0x7*(-parseInt(_0x5e1af2(0x176))/0x8)+parseInt(_0x5e1af2(0x174))/0x9+parseInt(_0x5e1af2(0x178))/0xa*(-parseInt(_0x5e1af2(0x17b))/0xb);if(_0x449bfb===_0x4b23d9)break;else _0x6763b4['push'](_0x6763b4['shift']());}catch(_0x579003){_0x6763b4['push'](_0x6763b4['shift']());}}}(a197_0x3de3,0xa4e82));function a197_0x5199(_0x878791,_0x5a7c70){_0x878791=_0x878791-0x173;var _0x3de3e8=a197_0x3de3();var _0x5199db=_0x3de3e8[_0x878791];return _0x5199db;}import{VERSION}from'../generated/build-info.js';function a197_0x3de3(){var _0x30049a=['1882065uXcAxp','2849223PirGFY','1528974qkaMwn','3336000PgLMsq','1078216kgqRwD','12LkbWlG','8936380aHinNH','263CZDDTE','42lOOGAH','11kEYWZS','10084qWIdwV'];a197_0x3de3=function(){return _0x30049a;};return a197_0x3de3();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x205f33,_0x565407){var _0x2b8a6b=a197_0x1711,_0x55c978=_0x205f33();while(!![]){try{var _0x1b8e9b=-parseInt(_0x2b8a6b(0xb2))/0x1*(-parseInt(_0x2b8a6b(0xaf))/0x2)+-parseInt(_0x2b8a6b(0xae))/0x3*(parseInt(_0x2b8a6b(0xb5))/0x4)+parseInt(_0x2b8a6b(0xb4))/0x5+-parseInt(_0x2b8a6b(0xb0))/0x6*(parseInt(_0x2b8a6b(0xac))/0x7)+-parseInt(_0x2b8a6b(0xad))/0x8*(parseInt(_0x2b8a6b(0xb3))/0x9)+-parseInt(_0x2b8a6b(0xb6))/0xa+parseInt(_0x2b8a6b(0xb1))/0xb;if(_0x1b8e9b===_0x565407)break;else _0x55c978['push'](_0x55c978['shift']());}catch(_0x1b05ac){_0x55c978['push'](_0x55c978['shift']());}}}(a197_0x270b,0x244a6));import{VERSION}from'../generated/build-info.js';function a197_0x270b(){var _0x496930=['8ESfEYN','48819WwYiCO','15782JlwmCd','14316mFMcrp','5435650yxbqBG','17dPrGNu','1524771shLUvJ','1175320reAyqh','56nLXGiV','788740rxAjMB','700SwcRdD'];a197_0x270b=function(){return _0x496930;};return a197_0x270b();}function a197_0x1711(_0x12c883,_0x5449b8){_0x12c883=_0x12c883-0xac;var _0x270b8c=a197_0x270b();var _0x17112f=_0x270b8c[_0x12c883];return _0x17112f;}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x220aed,_0x294824){var _0x41d7fa=a198_0x3738,_0x5f0022=_0x220aed();while(!![]){try{var _0x5cc325=-parseInt(_0x41d7fa(0x137))/0x1*(parseInt(_0x41d7fa(0x138))/0x2)+parseInt(_0x41d7fa(0x136))/0x3+parseInt(_0x41d7fa(0x12e))/0x4*(-parseInt(_0x41d7fa(0x135))/0x5)+parseInt(_0x41d7fa(0x132))/0x6*(parseInt(_0x41d7fa(0x130))/0x7)+parseInt(_0x41d7fa(0x131))/0x8*(parseInt(_0x41d7fa(0x133))/0x9)+-parseInt(_0x41d7fa(0x12f))/0xa*(parseInt(_0x41d7fa(0x12d))/0xb)+parseInt(_0x41d7fa(0x134))/0xc;if(_0x5cc325===_0x294824)break;else _0x5f0022['push'](_0x5f0022['shift']());}catch(_0x5e92dc){_0x5f0022['push'](_0x5f0022['shift']());}}}(a198_0x5962,0xdcdb2));function a198_0x3738(_0x196cc6,_0x13ff15){_0x196cc6=_0x196cc6-0x12d;var _0x5962c0=a198_0x5962();var _0x3738dd=_0x5962c0[_0x196cc6];return _0x3738dd;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x273d76,_0x4a644f){setActiveCookie(_0x273d76);try{return await _0x4a644f();}finally{clearActiveCookie();}}function a198_0x5962(){var _0x4155e2=['842brcMBE','3748FVaKzx','117051RwTdax','12RHFcpn','890SDzMrR','335419rNpVPF','735864fSfDbL','12YoLyFh','18Hhiwso','42644364nUbJjO','2128015czBmXX','2618685mxFwHU'];a198_0x5962=function(){return _0x4155e2;};return a198_0x5962();}
1
+ (function(_0x13a80f,_0x238eaa){var _0x143a57=a198_0x3878,_0x334a9b=_0x13a80f();while(!![]){try{var _0x2e6d6a=parseInt(_0x143a57(0x172))/0x1*(-parseInt(_0x143a57(0x176))/0x2)+parseInt(_0x143a57(0x170))/0x3*(parseInt(_0x143a57(0x173))/0x4)+parseInt(_0x143a57(0x16e))/0x5*(parseInt(_0x143a57(0x174))/0x6)+-parseInt(_0x143a57(0x175))/0x7+parseInt(_0x143a57(0x171))/0x8+-parseInt(_0x143a57(0x16f))/0x9+parseInt(_0x143a57(0x177))/0xa*(-parseInt(_0x143a57(0x16d))/0xb);if(_0x2e6d6a===_0x238eaa)break;else _0x334a9b['push'](_0x334a9b['shift']());}catch(_0x25e20f){_0x334a9b['push'](_0x334a9b['shift']());}}}(a198_0x4141,0x78881));function a198_0x4141(){var _0x5549e4=['11kFnKRt','1989100jtejqy','4017492EgwbJi','6hDyaQq','6548232BiPKzY','83SpbWyI','918548TuISHS','6IyYyjU','1235577KIbgJP','10196PIljpE','1358930VddfAZ'];a198_0x4141=function(){return _0x5549e4;};return a198_0x4141();}function a198_0x3878(_0xb37263,_0x45821e){_0xb37263=_0xb37263-0x16d;var _0x4141ed=a198_0x4141();var _0x387861=_0x4141ed[_0xb37263];return _0x387861;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x3ee1ab,_0x52c3b9){setActiveCookie(_0x3ee1ab);try{return await _0x52c3b9();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a199_0x4484(_0x4388b4,_0x45a0a0){_0x4388b4=_0x4388b4-0xf1;var _0x2e8645=a199_0x2e86();var _0x44842a=_0x2e8645[_0x4388b4];return _0x44842a;}(function(_0x1e3ef3,_0x3b65cb){var _0x18bc96=a199_0x4484,_0x5f459e=_0x1e3ef3();while(!![]){try{var _0x4ca1e5=parseInt(_0x18bc96(0xfb))/0x1+parseInt(_0x18bc96(0xf9))/0x2*(-parseInt(_0x18bc96(0xf1))/0x3)+-parseInt(_0x18bc96(0xf8))/0x4+-parseInt(_0x18bc96(0xf7))/0x5+parseInt(_0x18bc96(0xf3))/0x6*(parseInt(_0x18bc96(0xfa))/0x7)+parseInt(_0x18bc96(0xf4))/0x8*(-parseInt(_0x18bc96(0xf6))/0x9)+parseInt(_0x18bc96(0xf2))/0xa;if(_0x4ca1e5===_0x3b65cb)break;else _0x5f459e['push'](_0x5f459e['shift']());}catch(_0x26ba80){_0x5f459e['push'](_0x5f459e['shift']());}}}(a199_0x2e86,0x52681));function a199_0x2e86(){var _0x4a6272=['2272sXBQgW','stderr','3690tgNlxW','2769730yhByIA','2319736QqBzyl','746USvjmK','1960322sknfqp','182320DGcime','339kCDKxo','11676400HEsiSn','6xoWZVq'];a199_0x2e86=function(){return _0x4a6272;};return a199_0x2e86();}export function writeCliSideChannelLine(_0x9ff65d){var _0x452194=a199_0x4484;process[_0x452194(0xf5)]['write'](_0x9ff65d+'\x0a');}
1
+ function a199_0x3460(_0x58eef3,_0x10b55b){_0x58eef3=_0x58eef3-0xa4;var _0x27175f=a199_0x2717();var _0x34608f=_0x27175f[_0x58eef3];return _0x34608f;}function a199_0x2717(){var _0x190414=['3899269NJuuYl','10kopTck','24oOMJYk','206914zISmNT','stderr','420RkBUBR','39708qSPDiO','13422bsReWu','776064FtwsTb','4718619oKjgQP','2323256SuADHS','2527gmCXug'];a199_0x2717=function(){return _0x190414;};return a199_0x2717();}(function(_0x1a0aa1,_0xf15c80){var _0x15fe14=a199_0x3460,_0x213381=_0x1a0aa1();while(!![]){try{var _0x4ccc97=parseInt(_0x15fe14(0xac))/0x1+parseInt(_0x15fe14(0xa7))/0x2*(parseInt(_0x15fe14(0xa6))/0x3)+-parseInt(_0x15fe14(0xaa))/0x4*(-parseInt(_0x15fe14(0xa9))/0x5)+-parseInt(_0x15fe14(0xab))/0x6*(parseInt(_0x15fe14(0xaf))/0x7)+-parseInt(_0x15fe14(0xae))/0x8+-parseInt(_0x15fe14(0xad))/0x9+parseInt(_0x15fe14(0xa5))/0xa*(-parseInt(_0x15fe14(0xa4))/0xb);if(_0x4ccc97===_0xf15c80)break;else _0x213381['push'](_0x213381['shift']());}catch(_0x390858){_0x213381['push'](_0x213381['shift']());}}}(a199_0x2717,0x70836));export function writeCliSideChannelLine(_0x44cc35){var _0x228309=a199_0x3460;process[_0x228309(0xa8)]['write'](_0x44cc35+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.7-beta.7",
3
+ "version": "2.1.7-beta.8",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",