@lovrabet/rabetbase-cli 2.1.7-beta.5 → 2.1.7-beta.6

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_0x3ca056=a181_0x5db1;(function(_0x5bebeb,_0x171f39){const _0x515cf1=a181_0x5db1,_0x3fcf2f=_0x5bebeb();while(!![]){try{const _0x2782c9=-parseInt(_0x515cf1(0x143))/0x1+-parseInt(_0x515cf1(0x155))/0x2+-parseInt(_0x515cf1(0x153))/0x3+-parseInt(_0x515cf1(0x162))/0x4*(parseInt(_0x515cf1(0x141))/0x5)+-parseInt(_0x515cf1(0x152))/0x6+-parseInt(_0x515cf1(0x163))/0x7*(-parseInt(_0x515cf1(0x151))/0x8)+-parseInt(_0x515cf1(0x14f))/0x9*(-parseInt(_0x515cf1(0x15d))/0xa);if(_0x2782c9===_0x171f39)break;else _0x3fcf2f['push'](_0x3fcf2f['shift']());}catch(_0x50a624){_0x3fcf2f['push'](_0x3fcf2f['shift']());}}}(a181_0x28f9,0x5b0f5));function a181_0x28f9(){const _0x51fb1f=['sdk','\x1b[33m','12CKSHso','121989HkMwHn','stableVersion','1.2.0','739150PFqQvs','latest','361331iwqWCj','join','coerce','version','test','devDependencies','parse','readFileSync','minVersion','log','dependencies','@lovrabet/sdk','27xqtMkJ','packageName','72TuZZYN','1296HqKYQr','1756821MPZTVE','utf8','835542NnqYPM','↪\x20SDK\x20update\x20available','package.json','existsSync','node','\x20\x20\x20Current\x20version:\x20','npm\x20install\x20','needsUpgrade','6748510CDViyz','\x20\x20\x20Stable\x20version:\x20','utf-8'];a181_0x28f9=function(){return _0x51fb1f;};return a181_0x28f9();}import a181_0x2f3d07 from'node:fs';import a181_0x78263e from'node:path';import a181_0x4a0614 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x3ca056(0x140);function a181_0x5db1(_0x301ff7,_0x33d5ce){_0x301ff7=_0x301ff7-0x140;const _0x28f97b=a181_0x28f9();let _0x5db15a=_0x28f97b[_0x301ff7];return _0x5db15a;}function isNonNumericVersion(_0x362961){const _0x4bebcc=a181_0x3ca056,_0x3c4c90=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x3c4c90['some'](_0x131581=>_0x131581[_0x4bebcc(0x147)](_0x362961));}function getInstalledVersion(_0xe475bc,_0xc75e53){const _0x39f400=a181_0x3ca056;try{const _0x39b874=a181_0x78263e[_0x39f400(0x144)](_0xe475bc,'node_modules',_0xc75e53,_0x39f400(0x157));if(a181_0x2f3d07[_0x39f400(0x158)](_0x39b874)){const _0x2bcf86=JSON[_0x39f400(0x149)](a181_0x2f3d07[_0x39f400(0x14a)](_0x39b874,_0x39f400(0x15f)));return _0x2bcf86[_0x39f400(0x146)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x526ecc=a181_0x3ca056;try{const _0x4f7a1c=await getCdnConfig();return _0x4f7a1c?.[_0x526ecc(0x160)]?.[_0x526ecc(0x159)]?.[_0x526ecc(0x164)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5c7e66=a181_0x3ca056;try{const _0x26bb17=await getCdnConfig();return _0x26bb17?.[_0x5c7e66(0x160)]?.['node']?.[_0x5c7e66(0x150)]||_0x5c7e66(0x14e);}catch{return _0x5c7e66(0x14e);}}export async function checkSdkVersion(_0x456bf2){const _0x160d08=a181_0x3ca056,_0x222e3d=a181_0x78263e[_0x160d08(0x144)](_0x456bf2,'package.json'),[_0x4969f5,_0x4e9417]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x456b6a=_0x4969f5||FALLBACK_MIN_SDK_VERSION;if(!a181_0x2f3d07[_0x160d08(0x158)](_0x222e3d))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};try{const _0x30bac2=JSON[_0x160d08(0x149)](a181_0x2f3d07[_0x160d08(0x14a)](_0x222e3d,_0x160d08(0x154))),_0x5d9030=_0x30bac2[_0x160d08(0x14d)]||{},_0xd9fe7c=_0x30bac2[_0x160d08(0x148)]||{},_0x59005a=_0x5d9030[_0x4e9417]||_0xd9fe7c[_0x4e9417];if(!_0x59005a)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};let _0x4269d5=getInstalledVersion(_0x456bf2,_0x4e9417);!_0x4269d5&&(_0x4269d5=_0x59005a);if(isNonNumericVersion(_0x59005a))return{'installed':!![],'version':_0x4269d5,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};const _0x4034f1=a181_0x4a0614[_0x160d08(0x145)](_0x4269d5),_0x2402b4=a181_0x4a0614[_0x160d08(0x145)](_0x456b6a),_0x34d177=_0x4034f1&&_0x2402b4?a181_0x4a0614['lt'](_0x4034f1,_0x2402b4):![];return{'installed':!![],'version':_0x4269d5,'needsUpgrade':_0x34d177,'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x456b6a,'packageName':_0x4e9417,'stableVersion':_0x4969f5};}}export function checkSdkVersionSync(_0xcc93ab){const _0x4913ec=a181_0x3ca056,_0x3f8f9b=a181_0x78263e[_0x4913ec(0x144)](_0xcc93ab,'package.json'),_0x577741=_0x4913ec(0x14e);if(!a181_0x2f3d07[_0x4913ec(0x158)](_0x3f8f9b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};try{const _0x275389=JSON[_0x4913ec(0x149)](a181_0x2f3d07[_0x4913ec(0x14a)](_0x3f8f9b,'utf8')),_0x2f6745=_0x275389[_0x4913ec(0x14d)]||{},_0x43103a=_0x275389[_0x4913ec(0x148)]||{},_0x5d39ba=_0x2f6745[_0x577741]||_0x43103a[_0x577741];if(!_0x5d39ba)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};let _0x2e9623=getInstalledVersion(_0xcc93ab,_0x577741);!_0x2e9623&&(_0x2e9623=_0x5d39ba);if(isNonNumericVersion(_0x5d39ba))return{'installed':!![],'version':_0x2e9623,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};const _0x2d220=a181_0x4a0614['coerce'](_0x2e9623),_0x10052d=_0x2d220?a181_0x4a0614['lt'](_0x2d220,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x2e9623,'needsUpgrade':_0x10052d,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x577741,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x246921){const _0x2e3bca=a181_0x3ca056;if(!_0x246921[_0x2e3bca(0x15c)])return;const _0x5aba98=_0x2e3bca(0x161),_0x15e2c4='\x1b[0m',_0x5420f4='\x1b[1m',_0x1aa4ce=_0x246921[_0x2e3bca(0x150)]||_0x2e3bca(0x14e),_0x4ebea=_0x246921[_0x2e3bca(0x164)]||_0x246921[_0x2e3bca(0x14b)],_0x484587=_0x2e3bca(0x15b)+_0x1aa4ce+'@'+(_0x4ebea||_0x2e3bca(0x142));console['log'](),console[_0x2e3bca(0x14c)](''+_0x5aba98+_0x5420f4+_0x2e3bca(0x156)+_0x15e2c4),console[_0x2e3bca(0x14c)](_0x5aba98+_0x2e3bca(0x15a)+_0x1aa4ce+'@'+_0x246921[_0x2e3bca(0x146)]+_0x15e2c4),console['log'](_0x5aba98+_0x2e3bca(0x15e)+_0x4ebea+_0x15e2c4),console['log'](_0x5aba98+'\x20\x20\x20Upgrade\x20command:\x20'+_0x484587+_0x15e2c4),console[_0x2e3bca(0x14c)]();}
1
+ const a181_0x1b19a3=a181_0x2ad7;(function(_0x35e63d,_0x45688b){const _0x2fe7d5=a181_0x2ad7,_0xb3a280=_0x35e63d();while(!![]){try{const _0x349452=parseInt(_0x2fe7d5(0x1d5))/0x1+-parseInt(_0x2fe7d5(0x1d6))/0x2*(-parseInt(_0x2fe7d5(0x1ee))/0x3)+parseInt(_0x2fe7d5(0x1f6))/0x4*(parseInt(_0x2fe7d5(0x1f9))/0x5)+-parseInt(_0x2fe7d5(0x1f7))/0x6*(-parseInt(_0x2fe7d5(0x1ef))/0x7)+-parseInt(_0x2fe7d5(0x1ed))/0x8+parseInt(_0x2fe7d5(0x1de))/0x9*(parseInt(_0x2fe7d5(0x1fa))/0xa)+parseInt(_0x2fe7d5(0x1fc))/0xb*(-parseInt(_0x2fe7d5(0x1e8))/0xc);if(_0x349452===_0x45688b)break;else _0xb3a280['push'](_0xb3a280['shift']());}catch(_0x2b7c1c){_0xb3a280['push'](_0xb3a280['shift']());}}}(a181_0x2d41,0x234c4));import a181_0x549e99 from'node:fs';function a181_0x2ad7(_0x34a3dd,_0x26d39c){_0x34a3dd=_0x34a3dd-0x1d4;const _0x2d4122=a181_0x2d41();let _0x2ad77c=_0x2d4122[_0x34a3dd];return _0x2ad77c;}import a181_0x3f4bf0 from'node:path';import a181_0x5b64ad from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a181_0x1b19a3(0x1e4);function isNonNumericVersion(_0x10f02c){const _0x5824b3=a181_0x1b19a3,_0x1a6061=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x1a6061[_0x5824b3(0x1e5)](_0x48ae84=>_0x48ae84['test'](_0x10f02c));}function a181_0x2d41(){const _0xee0bec=['24asJRbD','\x20\x20\x20Upgrade\x20command:\x20','sdk','readFileSync','\x1b[33m','1861928vmAYQe','195981ZqBZgx','217tDLlga','coerce','parse','log','packageName','\x20\x20\x20Stable\x20version:\x20','stableVersion','4EZftSH','40998ROHTBd','node_modules','943995hdxBTA','40BfaZdD','npm\x20install\x20','2078329KkDYiW','latest','11746BqhCwS','2mAVrYP','all','utf-8','minVersion','join','↪\x20SDK\x20update\x20available','\x20\x20\x20Current\x20version:\x20','existsSync','624384ftgHUW','package.json','@lovrabet/sdk','dependencies','needsUpgrade','node','1.2.0','some','utf8','devDependencies'];a181_0x2d41=function(){return _0xee0bec;};return a181_0x2d41();}function getInstalledVersion(_0x30d9c5,_0x225657){const _0x33551c=a181_0x1b19a3;try{const _0x15d328=a181_0x3f4bf0[_0x33551c(0x1da)](_0x30d9c5,_0x33551c(0x1f8),_0x225657,_0x33551c(0x1df));if(a181_0x549e99[_0x33551c(0x1dd)](_0x15d328)){const _0x3dbda8=JSON['parse'](a181_0x549e99[_0x33551c(0x1eb)](_0x15d328,_0x33551c(0x1d8)));return _0x3dbda8['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x1cc717=a181_0x1b19a3;try{const _0x3c5c44=await getCdnConfig();return _0x3c5c44?.[_0x1cc717(0x1ea)]?.[_0x1cc717(0x1e3)]?.[_0x1cc717(0x1f5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x5895d0=a181_0x1b19a3;try{const _0x90098d=await getCdnConfig();return _0x90098d?.[_0x5895d0(0x1ea)]?.[_0x5895d0(0x1e3)]?.['packageName']||_0x5895d0(0x1e0);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x493567){const _0x5af722=a181_0x1b19a3,_0x1fd753=a181_0x3f4bf0[_0x5af722(0x1da)](_0x493567,_0x5af722(0x1df)),[_0x27dd72,_0x54bedb]=await Promise[_0x5af722(0x1d7)]([getSdkStableVersion(),getSdkPackageName()]),_0xfe449e=_0x27dd72||FALLBACK_MIN_SDK_VERSION;if(!a181_0x549e99[_0x5af722(0x1dd)](_0x1fd753))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xfe449e,'packageName':_0x54bedb,'stableVersion':_0x27dd72};try{const _0x4a737c=JSON['parse'](a181_0x549e99['readFileSync'](_0x1fd753,'utf8')),_0x471e70=_0x4a737c[_0x5af722(0x1e1)]||{},_0x4abbcd=_0x4a737c[_0x5af722(0x1e7)]||{},_0x4113bc=_0x471e70[_0x54bedb]||_0x4abbcd[_0x54bedb];if(!_0x4113bc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xfe449e,'packageName':_0x54bedb,'stableVersion':_0x27dd72};let _0x42659c=getInstalledVersion(_0x493567,_0x54bedb);!_0x42659c&&(_0x42659c=_0x4113bc);if(isNonNumericVersion(_0x4113bc))return{'installed':!![],'version':_0x42659c,'needsUpgrade':![],'minVersion':_0xfe449e,'packageName':_0x54bedb,'stableVersion':_0x27dd72};const _0x57214c=a181_0x5b64ad[_0x5af722(0x1f0)](_0x42659c),_0x3d5265=a181_0x5b64ad[_0x5af722(0x1f0)](_0xfe449e),_0x2f02d3=_0x57214c&&_0x3d5265?a181_0x5b64ad['lt'](_0x57214c,_0x3d5265):![];return{'installed':!![],'version':_0x42659c,'needsUpgrade':_0x2f02d3,'minVersion':_0xfe449e,'packageName':_0x54bedb,'stableVersion':_0x27dd72};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0xfe449e,'packageName':_0x54bedb,'stableVersion':_0x27dd72};}}export function checkSdkVersionSync(_0x2c0b80){const _0x4c8528=a181_0x1b19a3,_0x396a9c=a181_0x3f4bf0[_0x4c8528(0x1da)](_0x2c0b80,_0x4c8528(0x1df)),_0x469d1b=_0x4c8528(0x1e0);if(!a181_0x549e99['existsSync'](_0x396a9c))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x469d1b,'stableVersion':null};try{const _0x4a58db=JSON[_0x4c8528(0x1f1)](a181_0x549e99[_0x4c8528(0x1eb)](_0x396a9c,_0x4c8528(0x1e6))),_0x22afa5=_0x4a58db['dependencies']||{},_0x3bba1a=_0x4a58db[_0x4c8528(0x1e7)]||{},_0x155b07=_0x22afa5[_0x469d1b]||_0x3bba1a[_0x469d1b];if(!_0x155b07)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x469d1b,'stableVersion':null};let _0x99bce7=getInstalledVersion(_0x2c0b80,_0x469d1b);!_0x99bce7&&(_0x99bce7=_0x155b07);if(isNonNumericVersion(_0x155b07))return{'installed':!![],'version':_0x99bce7,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x469d1b,'stableVersion':null};const _0x4df4ec=a181_0x5b64ad[_0x4c8528(0x1f0)](_0x99bce7),_0x534781=_0x4df4ec?a181_0x5b64ad['lt'](_0x4df4ec,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x99bce7,'needsUpgrade':_0x534781,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x469d1b,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x469d1b,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x2a7313){const _0x5ca300=a181_0x1b19a3;if(!_0x2a7313[_0x5ca300(0x1e2)])return;const _0x32070c=_0x5ca300(0x1ec),_0x13032d='\x1b[0m',_0xf45aae='\x1b[1m',_0x58f2ca=_0x2a7313[_0x5ca300(0x1f3)]||_0x5ca300(0x1e0),_0x37c3c5=_0x2a7313[_0x5ca300(0x1f5)]||_0x2a7313[_0x5ca300(0x1d9)],_0x17d43a=_0x5ca300(0x1fb)+_0x58f2ca+'@'+(_0x37c3c5||_0x5ca300(0x1d4));console['log'](),console[_0x5ca300(0x1f2)](''+_0x32070c+_0xf45aae+_0x5ca300(0x1db)+_0x13032d),console[_0x5ca300(0x1f2)](_0x32070c+_0x5ca300(0x1dc)+_0x58f2ca+'@'+_0x2a7313['version']+_0x13032d),console[_0x5ca300(0x1f2)](_0x32070c+_0x5ca300(0x1f4)+_0x37c3c5+_0x13032d),console[_0x5ca300(0x1f2)](_0x32070c+_0x5ca300(0x1e9)+_0x17d43a+_0x13032d),console[_0x5ca300(0x1f2)]();}
@@ -1 +1 @@
1
- function a182_0x1cc6(_0x4b75ae,_0xad3c39){_0x4b75ae=_0x4b75ae-0x12e;const _0xc8bb6c=a182_0xc8bb();let _0x1cc697=_0xc8bb6c[_0x4b75ae];return _0x1cc697;}(function(_0x328b43,_0x4cb147){const _0x1ce8b1=a182_0x1cc6,_0x1c09fe=_0x328b43();while(!![]){try{const _0x568161=parseInt(_0x1ce8b1(0x150))/0x1*(parseInt(_0x1ce8b1(0x14a))/0x2)+parseInt(_0x1ce8b1(0x134))/0x3*(parseInt(_0x1ce8b1(0x13a))/0x4)+-parseInt(_0x1ce8b1(0x12e))/0x5+parseInt(_0x1ce8b1(0x133))/0x6+-parseInt(_0x1ce8b1(0x13e))/0x7+-parseInt(_0x1ce8b1(0x153))/0x8+parseInt(_0x1ce8b1(0x143))/0x9;if(_0x568161===_0x4cb147)break;else _0x1c09fe['push'](_0x1c09fe['shift']());}catch(_0x41f81b){_0x1c09fe['push'](_0x1c09fe['shift']());}}}(a182_0xc8bb,0x8fcfd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a182_0xc8bb(){const _0x3d15a3=['7985800vvTGxE','1161900uXOWdC','\x20\x20\x20Minimum\x20required:\x20','minimumVersion','↪\x20New\x20version\x20available','version','2715066EvRogG','12dnsasO','\x20\x20\x20Current\x20CLI\x20version:\x20','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','parse','\x1b[33m','667688QNwcqd','\x1b[0m','coerce','filter','2590987hoxjjR','\x20\x20\x20Upgrade\x20command:\x20','package.json','1.0.0','↪\x20Critical\x20CLI\x20upgrade\x20required','8670078FAxVHc','currentVersion','belowMinimum','\x20\x20\x20','needsUpgrade','\x20\x20\x20Recommended\x20stable:\x20','Minimum\x20required:\x20','4MNAQnm','../..','join','upgradeMessage','stableVersion','minimumVersionMessage','53129jDSyTD','\x20\x20\x20Stable\x20version:\x20','log'];a182_0xc8bb=function(){return _0x3d15a3;};return a182_0xc8bb();}import a182_0x23f5c8 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(_0x4be2ab){const _0x148b46=a182_0x1cc6,_0x59e98f=_0x4be2ab[_0x148b46(0x14e)]||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x59e98f;}function getCurrentCliVersion(){const _0x46a2f9=a182_0x1cc6;try{const _0x33548a=fileURLToPath(import.meta.url),_0x5c4667=resolve(dirname(_0x33548a),_0x46a2f9(0x14b)),_0x215af1=resolve(_0x5c4667,_0x46a2f9(0x140)),_0x1f61fe=JSON[_0x46a2f9(0x138)](readFileSync(_0x215af1,'utf-8'));return _0x1f61fe[_0x46a2f9(0x132)]||'1.0.0';}catch{return _0x46a2f9(0x141);}}export async function checkCliVersion(){const _0x5dfce5=a182_0x1cc6,_0x40b9ae=getCurrentCliVersion(),_0x18a5e2=await getCliVersionPolicy(),_0x22538d=_0x18a5e2?.[_0x5dfce5(0x14e)]||null,_0x452170=_0x18a5e2?.[_0x5dfce5(0x130)]||null;let _0x2980e5=![],_0x11ed01=![];const _0x1702da=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x40b9ae);if(_0x1702da&&_0x22538d)try{const _0xcc34ee=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x22538d);if(_0xcc34ee)_0x2980e5=a182_0x23f5c8['lt'](_0x1702da,_0xcc34ee);}catch{}if(_0x1702da&&_0x452170)try{const _0x25b28c=a182_0x23f5c8[_0x5dfce5(0x13c)](_0x452170);if(_0x25b28c)_0x11ed01=a182_0x23f5c8['lt'](_0x1702da,_0x25b28c);}catch{}return _0x11ed01&&(_0x2980e5=!![]),{'currentVersion':_0x40b9ae,'stableVersion':_0x22538d,'minimumVersion':_0x452170,'needsUpgrade':_0x2980e5,'belowMinimum':_0x11ed01,'isPreRelease':![],'upgradeMessage':_0x18a5e2?.[_0x5dfce5(0x14d)],'minimumVersionMessage':_0x18a5e2?.[_0x5dfce5(0x14f)]};}export function printCliUpgradeWarning(_0xb523db){const _0x1b9ca1=a182_0x1cc6;if(!_0xb523db[_0x1b9ca1(0x147)]&&!_0xb523db[_0x1b9ca1(0x145)])return;const _0x162146='\x1b[31m',_0x56922e=_0x1b9ca1(0x139),_0x3f9dc7=_0x1b9ca1(0x13b),_0x6e21c0='\x1b[1m',_0x5b938c=getCliUpgradeCommand(_0xb523db);console[_0x1b9ca1(0x152)](),_0xb523db[_0x1b9ca1(0x145)]?(console[_0x1b9ca1(0x152)](''+_0x162146+_0x6e21c0+_0x1b9ca1(0x142)+_0x3f9dc7),console['log'](_0x162146+_0x1b9ca1(0x135)+_0xb523db[_0x1b9ca1(0x144)]+_0x3f9dc7),_0xb523db[_0x1b9ca1(0x130)]&&console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x12f)+_0xb523db[_0x1b9ca1(0x130)]+_0x3f9dc7),_0xb523db['stableVersion']&&_0xb523db['stableVersion']!==_0xb523db[_0x1b9ca1(0x130)]&&console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x148)+_0xb523db[_0x1b9ca1(0x14e)]+_0x3f9dc7),_0xb523db['minimumVersionMessage']&&console[_0x1b9ca1(0x152)](_0x162146+'\x20\x20\x20'+_0xb523db['minimumVersionMessage']+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x162146+_0x1b9ca1(0x13f)+_0x5b938c+_0x3f9dc7)):(console['log'](''+_0x56922e+_0x6e21c0+_0x1b9ca1(0x131)+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x56922e+_0x1b9ca1(0x135)+_0xb523db['currentVersion']+_0x3f9dc7),console[_0x1b9ca1(0x152)](_0x56922e+_0x1b9ca1(0x151)+_0xb523db[_0x1b9ca1(0x14e)]+_0x3f9dc7),_0xb523db[_0x1b9ca1(0x14d)]&&console['log'](_0x56922e+_0x1b9ca1(0x146)+_0xb523db[_0x1b9ca1(0x14d)]+_0x3f9dc7),console['log'](_0x56922e+'\x20\x20\x20Upgrade\x20command:\x20'+_0x5b938c+_0x3f9dc7)),console[_0x1b9ca1(0x152)]();}export function assertCliVersionSupported(_0x3e0097){const _0x52822f=a182_0x1cc6;if(!_0x3e0097[_0x52822f(0x145)])return;const _0x2478ce=[_0x3e0097[_0x52822f(0x14f)],'Current\x20version:\x20'+_0x3e0097[_0x52822f(0x144)],_0x3e0097[_0x52822f(0x130)]?_0x52822f(0x149)+_0x3e0097[_0x52822f(0x130)]:null,_0x52822f(0x136)+getCliUpgradeCommand(_0x3e0097)][_0x52822f(0x13d)](Boolean)[_0x52822f(0x14c)]('\x0a');throw CliErrors['validation'](_0x52822f(0x137),_0x2478ce);}
1
+ (function(_0x1138c3,_0x2dd100){const _0x157a6c=a182_0x5afc,_0x339eaa=_0x1138c3();while(!![]){try{const _0x35033=parseInt(_0x157a6c(0x15e))/0x1*(parseInt(_0x157a6c(0x164))/0x2)+-parseInt(_0x157a6c(0x181))/0x3+parseInt(_0x157a6c(0x175))/0x4+-parseInt(_0x157a6c(0x16f))/0x5*(-parseInt(_0x157a6c(0x180))/0x6)+parseInt(_0x157a6c(0x161))/0x7*(-parseInt(_0x157a6c(0x167))/0x8)+parseInt(_0x157a6c(0x179))/0x9*(parseInt(_0x157a6c(0x172))/0xa)+parseInt(_0x157a6c(0x162))/0xb;if(_0x35033===_0x2dd100)break;else _0x339eaa['push'](_0x339eaa['shift']());}catch(_0xedd111){_0x339eaa['push'](_0x339eaa['shift']());}}}(a182_0x3bb3,0x9f75b));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a182_0x5afc(_0x400898,_0xa1eb7c){_0x400898=_0x400898-0x15d;const _0x3bb385=a182_0x3bb3();let _0x5afc69=_0x3bb385[_0x400898];return _0x5afc69;}import a182_0x424f20 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a182_0x3bb3(){const _0x590c80=['filter','3158920uKGlIA','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','1800728zaadlk','↪\x20New\x20version\x20available','\x20\x20\x20','parse','9wtgCdm','\x1b[33m','join','upgradeMessage','log','minimumVersionMessage','package.json','459474HrIIBi','3805338KrRKrq','1.0.0','\x20\x20\x20Stable\x20version:\x20','currentVersion','stableVersion','29abHQEb','validation','../..','7zRxGmd','20742150SkPqCa','Upgrade\x20command:\x20','25918lFUDPL','\x1b[1m','belowMinimum','9460168zOPsnm','minimumVersion','Current\x20version:\x20','\x20\x20\x20Upgrade\x20command:\x20','needsUpgrade','\x1b[31m','\x1b[0m','\x20\x20\x20Minimum\x20required:\x20','5WZuHpl','↪\x20Critical\x20CLI\x20upgrade\x20required'];a182_0x3bb3=function(){return _0x590c80;};return a182_0x3bb3();}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x39632b){const _0x261e72=_0x39632b['stableVersion']||'latest';return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x261e72;}function getCurrentCliVersion(){const _0x2e65fa=a182_0x5afc;try{const _0x2069f3=fileURLToPath(import.meta.url),_0x25ed5c=resolve(dirname(_0x2069f3),_0x2e65fa(0x160)),_0x416faf=resolve(_0x25ed5c,_0x2e65fa(0x17f)),_0x1bf139=JSON[_0x2e65fa(0x178)](readFileSync(_0x416faf,'utf-8'));return _0x1bf139['version']||'1.0.0';}catch{return _0x2e65fa(0x182);}}export async function checkCliVersion(){const _0x15c024=a182_0x5afc,_0x13b2a9=getCurrentCliVersion(),_0x37ce39=await getCliVersionPolicy(),_0x4bf4c4=_0x37ce39?.[_0x15c024(0x15d)]||null,_0x22fd04=_0x37ce39?.[_0x15c024(0x168)]||null;let _0x3a2b1f=![],_0x359f46=![];const _0x547b75=a182_0x424f20[_0x15c024(0x173)](_0x13b2a9);if(_0x547b75&&_0x4bf4c4)try{const _0x42dc0c=a182_0x424f20[_0x15c024(0x173)](_0x4bf4c4);if(_0x42dc0c)_0x3a2b1f=a182_0x424f20['lt'](_0x547b75,_0x42dc0c);}catch{}if(_0x547b75&&_0x22fd04)try{const _0x23399d=a182_0x424f20[_0x15c024(0x173)](_0x22fd04);if(_0x23399d)_0x359f46=a182_0x424f20['lt'](_0x547b75,_0x23399d);}catch{}return _0x359f46&&(_0x3a2b1f=!![]),{'currentVersion':_0x13b2a9,'stableVersion':_0x4bf4c4,'minimumVersion':_0x22fd04,'needsUpgrade':_0x3a2b1f,'belowMinimum':_0x359f46,'isPreRelease':![],'upgradeMessage':_0x37ce39?.['upgradeMessage'],'minimumVersionMessage':_0x37ce39?.[_0x15c024(0x17e)]};}export function printCliUpgradeWarning(_0x10b6f3){const _0x175a80=a182_0x5afc;if(!_0x10b6f3[_0x175a80(0x16b)]&&!_0x10b6f3['belowMinimum'])return;const _0x354e29=_0x175a80(0x16c),_0x189b60=_0x175a80(0x17a),_0x457251=_0x175a80(0x16d),_0x5ad3de=_0x175a80(0x165),_0x207b25=getCliUpgradeCommand(_0x10b6f3);console[_0x175a80(0x17d)](),_0x10b6f3[_0x175a80(0x166)]?(console[_0x175a80(0x17d)](''+_0x354e29+_0x5ad3de+_0x175a80(0x170)+_0x457251),console[_0x175a80(0x17d)](_0x354e29+_0x175a80(0x174)+_0x10b6f3[_0x175a80(0x184)]+_0x457251),_0x10b6f3[_0x175a80(0x168)]&&console[_0x175a80(0x17d)](_0x354e29+_0x175a80(0x16e)+_0x10b6f3[_0x175a80(0x168)]+_0x457251),_0x10b6f3['stableVersion']&&_0x10b6f3[_0x175a80(0x15d)]!==_0x10b6f3[_0x175a80(0x168)]&&console[_0x175a80(0x17d)](_0x354e29+'\x20\x20\x20Recommended\x20stable:\x20'+_0x10b6f3[_0x175a80(0x15d)]+_0x457251),_0x10b6f3['minimumVersionMessage']&&console[_0x175a80(0x17d)](_0x354e29+_0x175a80(0x177)+_0x10b6f3[_0x175a80(0x17e)]+_0x457251),console[_0x175a80(0x17d)](_0x354e29+_0x175a80(0x16a)+_0x207b25+_0x457251)):(console[_0x175a80(0x17d)](''+_0x189b60+_0x5ad3de+_0x175a80(0x176)+_0x457251),console[_0x175a80(0x17d)](_0x189b60+_0x175a80(0x174)+_0x10b6f3[_0x175a80(0x184)]+_0x457251),console[_0x175a80(0x17d)](_0x189b60+_0x175a80(0x183)+_0x10b6f3[_0x175a80(0x15d)]+_0x457251),_0x10b6f3[_0x175a80(0x17c)]&&console[_0x175a80(0x17d)](_0x189b60+_0x175a80(0x177)+_0x10b6f3[_0x175a80(0x17c)]+_0x457251),console[_0x175a80(0x17d)](_0x189b60+_0x175a80(0x16a)+_0x207b25+_0x457251)),console['log']();}export function assertCliVersionSupported(_0x34f820){const _0x45e6a2=a182_0x5afc;if(!_0x34f820[_0x45e6a2(0x166)])return;const _0xfcd945=[_0x34f820[_0x45e6a2(0x17e)],_0x45e6a2(0x169)+_0x34f820[_0x45e6a2(0x184)],_0x34f820['minimumVersion']?'Minimum\x20required:\x20'+_0x34f820[_0x45e6a2(0x168)]:null,_0x45e6a2(0x163)+getCliUpgradeCommand(_0x34f820)][_0x45e6a2(0x171)](Boolean)[_0x45e6a2(0x17b)]('\x0a');throw CliErrors[_0x45e6a2(0x15f)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0xfcd945);}
@@ -1 +1 @@
1
- (function(_0x24f8b6,_0x284db4){const _0x30edca=a183_0x1cd8,_0x2da731=_0x24f8b6();while(!![]){try{const _0x2a24fb=-parseInt(_0x30edca(0xe7))/0x1*(parseInt(_0x30edca(0xea))/0x2)+parseInt(_0x30edca(0xd5))/0x3*(-parseInt(_0x30edca(0xe9))/0x4)+parseInt(_0x30edca(0xdc))/0x5+-parseInt(_0x30edca(0xdb))/0x6*(-parseInt(_0x30edca(0xe6))/0x7)+parseInt(_0x30edca(0xd7))/0x8+parseInt(_0x30edca(0xdf))/0x9+-parseInt(_0x30edca(0xd6))/0xa*(parseInt(_0x30edca(0xe1))/0xb);if(_0x2a24fb===_0x284db4)break;else _0x2da731['push'](_0x2da731['shift']());}catch(_0x154e53){_0x2da731['push'](_0x2da731['shift']());}}}(a183_0x2798,0x4e377));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a183_0x1cd8(_0x41f71c,_0x1e9a4c){_0x41f71c=_0x41f71c-0xd5;const _0x2798c0=a183_0x2798();let _0x1cd85c=_0x2798c0[_0x41f71c];return _0x1cd85c;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x3b30f2){const _0x52ef11=a183_0x1cd8;return typeof _0x3b30f2==='string'&&_0x3b30f2[_0x52ef11(0xe8)]()['length']>0x0?_0x3b30f2[_0x52ef11(0xe8)]():null;}function normalizeCliVersionPolicy(_0x154274){const _0x322fa0=a183_0x1cd8;if(!_0x154274||typeof _0x154274!==_0x322fa0(0xe2))return null;const _0x3b1ec0=_0x154274,_0x434951=_0x3b1ec0[_0x322fa0(0xe5)]&&typeof _0x3b1ec0[_0x322fa0(0xe5)]===_0x322fa0(0xe2)?_0x3b1ec0['cli']:_0x3b1ec0,_0x4b4b5d=pickString(_0x434951['stableVersion'])||pickString(_0x434951[_0x322fa0(0xd9)])||pickString(_0x434951[_0x322fa0(0xe3)]),_0x3b2077=pickString(_0x434951[_0x322fa0(0xde)])||pickString(_0x434951['minVersion']);if(!_0x4b4b5d&&!_0x3b2077)return null;return{'stableVersion':_0x4b4b5d,'minimumVersion':_0x3b2077,'upgradeMessage':pickString(_0x434951[_0x322fa0(0xd8)])||undefined,'minimumVersionMessage':pickString(_0x434951[_0x322fa0(0xdd)])||undefined};}export async function fetchCliVersionPolicy(){const _0x1cc8cd=a183_0x1cd8,_0x1d483f=new AbortController(),_0x43c220=setTimeout(()=>_0x1d483f['abort'](),FETCH_TIMEOUT_MS);try{const _0x4a3d47=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x1d483f[_0x1cc8cd(0xe0)]});if(!_0x4a3d47['ok'])return null;const _0x27a739=await _0x4a3d47[_0x1cc8cd(0xe4)]();return normalizeCliVersionPolicy(_0x27a739);}catch{return null;}finally{clearTimeout(_0x43c220);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x4e12d5=a183_0x1cd8,_0x9d9dc6=Date[_0x4e12d5(0xda)]();if(hasCachedPolicy){const _0x3c7e25=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x9d9dc6-cacheTime<_0x3c7e25)return cachedPolicy;}const _0x2b532b=await fetchCliVersionPolicy();return cachedPolicy=_0x2b532b,cacheTime=_0x9d9dc6,hasCachedPolicy=!![],_0x2b532b;}function a183_0x2798(){const _0x3f0f5b=['1029996rAXYtf','signal','22lnamrb','object','recommendedVersion','json','cli','7133oOyhyg','174829LqdPDG','trim','606124YXFSue','6dfzeIa','3BBMuad','75520IpGgdq','1124984AtRvoC','upgradeMessage','latestVersion','now','2490eHNecB','1667725dUNxWP','minimumVersionMessage','minimumVersion'];a183_0x2798=function(){return _0x3f0f5b;};return a183_0x2798();}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x3b1d25,_0x178a2b){const _0x47ef2d=a183_0x4be1,_0x5f3300=_0x3b1d25();while(!![]){try{const _0x5952cb=parseInt(_0x47ef2d(0x1b1))/0x1*(parseInt(_0x47ef2d(0x1ae))/0x2)+parseInt(_0x47ef2d(0x1a9))/0x3*(-parseInt(_0x47ef2d(0x19f))/0x4)+parseInt(_0x47ef2d(0x19b))/0x5*(-parseInt(_0x47ef2d(0x1a4))/0x6)+parseInt(_0x47ef2d(0x1a3))/0x7*(parseInt(_0x47ef2d(0x19a))/0x8)+-parseInt(_0x47ef2d(0x1a1))/0x9*(parseInt(_0x47ef2d(0x1a5))/0xa)+-parseInt(_0x47ef2d(0x19c))/0xb*(-parseInt(_0x47ef2d(0x19e))/0xc)+parseInt(_0x47ef2d(0x1a8))/0xd;if(_0x5952cb===_0x178a2b)break;else _0x5f3300['push'](_0x5f3300['shift']());}catch(_0x5393ce){_0x5f3300['push'](_0x5f3300['shift']());}}}(a183_0x4333,0x993e3));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(_0x21e5e1){const _0x3ccd47=a183_0x4be1;return typeof _0x21e5e1===_0x3ccd47(0x1ab)&&_0x21e5e1[_0x3ccd47(0x1a0)]()['length']>0x0?_0x21e5e1['trim']():null;}function normalizeCliVersionPolicy(_0x941da4){const _0x1f58ef=a183_0x4be1;if(!_0x941da4||typeof _0x941da4!==_0x1f58ef(0x1a2))return null;const _0x4eaa8a=_0x941da4,_0x5f203d=_0x4eaa8a[_0x1f58ef(0x19d)]&&typeof _0x4eaa8a[_0x1f58ef(0x19d)]==='object'?_0x4eaa8a[_0x1f58ef(0x19d)]:_0x4eaa8a,_0x476b31=pickString(_0x5f203d['stableVersion'])||pickString(_0x5f203d[_0x1f58ef(0x1b0)])||pickString(_0x5f203d[_0x1f58ef(0x1ac)]),_0x27eba1=pickString(_0x5f203d['minimumVersion'])||pickString(_0x5f203d['minVersion']);if(!_0x476b31&&!_0x27eba1)return null;return{'stableVersion':_0x476b31,'minimumVersion':_0x27eba1,'upgradeMessage':pickString(_0x5f203d['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x5f203d[_0x1f58ef(0x1a6)])||undefined};}function a183_0x4333(){const _0x23c213=['signal','string','recommendedVersion','application/json','58550OwRIjM','now','latestVersion','25POEfak','11464HEbzxx','215qKHeLa','1243HqFKyj','cli','54804LvkbNW','859244oRjgls','trim','9cutsEp','object','427DvZcnO','91848qjPIbQ','9520930mdwHqr','minimumVersionMessage','abort','25697308qSwYlm','15ETJQgk'];a183_0x4333=function(){return _0x23c213;};return a183_0x4333();}export async function fetchCliVersionPolicy(){const _0x15703a=a183_0x4be1,_0x2707c1=new AbortController(),_0x241e23=setTimeout(()=>_0x2707c1[_0x15703a(0x1a7)](),FETCH_TIMEOUT_MS);try{const _0x47bc9b=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x15703a(0x1ad)},'signal':_0x2707c1[_0x15703a(0x1aa)]});if(!_0x47bc9b['ok'])return null;const _0x24ebc3=await _0x47bc9b['json']();return normalizeCliVersionPolicy(_0x24ebc3);}catch{return null;}finally{clearTimeout(_0x241e23);}}function a183_0x4be1(_0x2d8bdb,_0x3f3e12){_0x2d8bdb=_0x2d8bdb-0x19a;const _0x4333d7=a183_0x4333();let _0x4be1bc=_0x4333d7[_0x2d8bdb];return _0x4be1bc;}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x5ce84=a183_0x4be1,_0x22daaa=Date[_0x5ce84(0x1af)]();if(hasCachedPolicy){const _0xd0d11e=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x22daaa-cacheTime<_0xd0d11e)return cachedPolicy;}const _0x24b421=await fetchCliVersionPolicy();return cachedPolicy=_0x24b421,cacheTime=_0x22daaa,hasCachedPolicy=!![],_0x24b421;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- (function(_0x25fad2,_0x310ae7){const _0x43b448=a184_0xc5a0,_0x4e59aa=_0x25fad2();while(!![]){try{const _0xe79103=-parseInt(_0x43b448(0x184))/0x1*(parseInt(_0x43b448(0x182))/0x2)+-parseInt(_0x43b448(0x17a))/0x3*(parseInt(_0x43b448(0x17f))/0x4)+parseInt(_0x43b448(0x185))/0x5*(-parseInt(_0x43b448(0x187))/0x6)+parseInt(_0x43b448(0x181))/0x7*(-parseInt(_0x43b448(0x186))/0x8)+-parseInt(_0x43b448(0x17d))/0x9*(-parseInt(_0x43b448(0x17c))/0xa)+parseInt(_0x43b448(0x180))/0xb+parseInt(_0x43b448(0x183))/0xc;if(_0xe79103===_0x310ae7)break;else _0x4e59aa['push'](_0x4e59aa['shift']());}catch(_0x2b8cbe){_0x4e59aa['push'](_0x4e59aa['shift']());}}}(a184_0x28ce,0xcc914));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x37c213,getMultiAppConfigs as a184_0x4d185a,getTemplateBaseUrl as a184_0xe4f27}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';function a184_0x28ce(){const _0x54d5a7=['2684022MxwvUh','6483785ytvinK','1066dnpBbh','38046360TNKXVm','2004GlESZa','40YNgoSM','8MAIhPB','32286xLBLAc','153UQjNXH','env','20oohuOF','719406OgLoYc','string','54828LKcjFy'];a184_0x28ce=function(){return _0x54d5a7;};return a184_0x28ce();}function a184_0xc5a0(_0x119a85,_0x3275c9){_0x119a85=_0x119a85-0x17a;const _0x28ceda=a184_0x28ce();let _0xc5a0ae=_0x28ceda[_0x119a85];return _0xc5a0ae;}export function readConfig(_0x2c9848){const _0x2715d0=a184_0xc5a0,_0x3de482=readRawConfig(_0x2c9848);return _0x3de482[_0x2715d0(0x17b)]&&typeof _0x3de482[_0x2715d0(0x17b)]===_0x2715d0(0x17e)&&initEnv(_0x3de482[_0x2715d0(0x17b)]),_0x3de482;}export function getConfigAppCode(){return a184_0x37c213();}export function getMultiAppConfigs(_0x3c511a='project'){return a184_0x4d185a(_0x3c511a);}export function getTemplateBaseUrl(){return a184_0xe4f27();}
1
+ const a184_0x1c8897=a184_0x4813;(function(_0x4901cd,_0x34cdad){const _0x3671ce=a184_0x4813,_0x3cd4a7=_0x4901cd();while(!![]){try{const _0x1e342c=-parseInt(_0x3671ce(0x144))/0x1+-parseInt(_0x3671ce(0x147))/0x2*(parseInt(_0x3671ce(0x14e))/0x3)+-parseInt(_0x3671ce(0x146))/0x4*(parseInt(_0x3671ce(0x148))/0x5)+parseInt(_0x3671ce(0x14f))/0x6*(parseInt(_0x3671ce(0x14c))/0x7)+-parseInt(_0x3671ce(0x145))/0x8*(parseInt(_0x3671ce(0x14b))/0x9)+parseInt(_0x3671ce(0x151))/0xa+parseInt(_0x3671ce(0x14a))/0xb;if(_0x1e342c===_0x34cdad)break;else _0x3cd4a7['push'](_0x3cd4a7['shift']());}catch(_0x2d46c6){_0x3cd4a7['push'](_0x3cd4a7['shift']());}}}(a184_0x49d3,0xf3f2c));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a184_0x1223dc,getMultiAppConfigs as a184_0x1504dc,getTemplateBaseUrl as a184_0x19be4d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3e21db){const _0x332e9b=a184_0x4813,_0xdaaaec=readRawConfig(_0x3e21db);return _0xdaaaec[_0x332e9b(0x14d)]&&typeof _0xdaaaec[_0x332e9b(0x14d)]===_0x332e9b(0x149)&&initEnv(_0xdaaaec[_0x332e9b(0x14d)]),_0xdaaaec;}function a184_0x49d3(){const _0x1776aa=['5216078drngdH','env','4019553NmDLPX','6uUrNjb','project','6547660iBdtfg','951966rqcfXZ','904zFwXDI','1071544zKLsov','2NqGHgY','5jMuHQm','string','42847640GjxxXZ','138285RnntuB'];a184_0x49d3=function(){return _0x1776aa;};return a184_0x49d3();}function a184_0x4813(_0xd41fbe,_0x3af8d8){_0xd41fbe=_0xd41fbe-0x144;const _0x49d302=a184_0x49d3();let _0x481328=_0x49d302[_0xd41fbe];return _0x481328;}export function getConfigAppCode(){return a184_0x1223dc();}export function getMultiAppConfigs(_0x364547=a184_0x1c8897(0x150)){return a184_0x1504dc(_0x364547);}export function getTemplateBaseUrl(){return a184_0x19be4d();}
@@ -1 +1 @@
1
- (function(_0x80ac80,_0x514993){const _0x8cc4a1=a185_0x46f2,_0x4706eb=_0x80ac80();while(!![]){try{const _0x66d482=-parseInt(_0x8cc4a1(0x7f))/0x1*(-parseInt(_0x8cc4a1(0x80))/0x2)+parseInt(_0x8cc4a1(0x81))/0x3+-parseInt(_0x8cc4a1(0x77))/0x4+parseInt(_0x8cc4a1(0x79))/0x5*(-parseInt(_0x8cc4a1(0x7e))/0x6)+-parseInt(_0x8cc4a1(0x78))/0x7*(-parseInt(_0x8cc4a1(0x7a))/0x8)+parseInt(_0x8cc4a1(0x74))/0x9*(-parseInt(_0x8cc4a1(0x76))/0xa)+-parseInt(_0x8cc4a1(0x73))/0xb;if(_0x66d482===_0x514993)break;else _0x4706eb['push'](_0x4706eb['shift']());}catch(_0x19f50d){_0x4706eb['push'](_0x4706eb['shift']());}}}(a185_0x1315,0x4f1e4));function a185_0x46f2(_0x2c0c0c,_0x4ebec5){_0x2c0c0c=_0x2c0c0c-0x73;const _0x131597=a185_0x1315();let _0x46f2ee=_0x131597[_0x2c0c0c];return _0x46f2ee;}function a185_0x1315(){const _0x4cecaa=['1276418FoTKRH','63zGeoQD','mkdirSync','40350UdkjOt','2356728MqoHKK','7TtWtdi','10ldJHdT','2436520XKVfjJ','readdirSync','join','name','671340IHSrMt','136991SrFHCY','8RSgOnA','1286352TQFvqp'];a185_0x1315=function(){return _0x4cecaa;};return a185_0x1315();}import a185_0x42e0ca from'node:path';import a185_0x587ffd from'node:fs';export async function copyDirectory(_0x1ec757,_0x64db7c){const _0x54709e=a185_0x46f2;try{const _0x28d21d=a185_0x587ffd[_0x54709e(0x7b)](_0x1ec757,{'withFileTypes':!![]});a185_0x587ffd[_0x54709e(0x75)](_0x64db7c,{'recursive':!![]});for(const _0x1c5c7f of _0x28d21d){const _0x47b100=a185_0x42e0ca[_0x54709e(0x7c)](_0x1ec757,_0x1c5c7f[_0x54709e(0x7d)]),_0x42fbab=a185_0x42e0ca[_0x54709e(0x7c)](_0x64db7c,_0x1c5c7f['name']);_0x1c5c7f['isDirectory']()?await copyDirectory(_0x47b100,_0x42fbab):a185_0x587ffd['copyFileSync'](_0x47b100,_0x42fbab);}}catch(_0x4afbfc){console['error']('复制目录时出错:',_0x4afbfc);}}
1
+ function a185_0x3fd3(_0x49a07d,_0x302ab4){_0x49a07d=_0x49a07d-0xf9;const _0x455ec1=a185_0x455e();let _0x3fd3d4=_0x455ec1[_0x49a07d];return _0x3fd3d4;}(function(_0x271147,_0x19dae3){const _0x4bf2ad=a185_0x3fd3,_0x4866a7=_0x271147();while(!![]){try{const _0x3582e8=-parseInt(_0x4bf2ad(0x108))/0x1+parseInt(_0x4bf2ad(0xfc))/0x2*(parseInt(_0x4bf2ad(0xfd))/0x3)+-parseInt(_0x4bf2ad(0xf9))/0x4*(parseInt(_0x4bf2ad(0xfb))/0x5)+parseInt(_0x4bf2ad(0x109))/0x6+parseInt(_0x4bf2ad(0x102))/0x7*(-parseInt(_0x4bf2ad(0x104))/0x8)+-parseInt(_0x4bf2ad(0xff))/0x9*(-parseInt(_0x4bf2ad(0x107))/0xa)+parseInt(_0x4bf2ad(0x103))/0xb*(parseInt(_0x4bf2ad(0x105))/0xc);if(_0x3582e8===_0x19dae3)break;else _0x4866a7['push'](_0x4866a7['shift']());}catch(_0x3b415a){_0x4866a7['push'](_0x4866a7['shift']());}}}(a185_0x455e,0xab202));import a185_0x199182 from'node:path';import a185_0x332ff9 from'node:fs';function a185_0x455e(){const _0x1fced8=['132WZYUmm','join','24160ruxsCh','1031000LKsSzA','1506882vKeann','852IzkRIH','readdirSync','23245PrINqc','14834jTpTNZ','237DWJOpp','name','2763zGMXYD','复制目录时出错:','copyFileSync','21lgPETb','1527185gsUyIO','1023520DYzXPH'];a185_0x455e=function(){return _0x1fced8;};return a185_0x455e();}export async function copyDirectory(_0x2a4300,_0x2fc22a){const _0x19a1a1=a185_0x3fd3;try{const _0x2d7bca=a185_0x332ff9[_0x19a1a1(0xfa)](_0x2a4300,{'withFileTypes':!![]});a185_0x332ff9['mkdirSync'](_0x2fc22a,{'recursive':!![]});for(const _0x193b15 of _0x2d7bca){const _0x238883=a185_0x199182[_0x19a1a1(0x106)](_0x2a4300,_0x193b15[_0x19a1a1(0xfe)]),_0x1ba86d=a185_0x199182[_0x19a1a1(0x106)](_0x2fc22a,_0x193b15['name']);_0x193b15['isDirectory']()?await copyDirectory(_0x238883,_0x1ba86d):a185_0x332ff9[_0x19a1a1(0x101)](_0x238883,_0x1ba86d);}}catch(_0x5e61ab){console['error'](_0x19a1a1(0x100),_0x5e61ab);}}
@@ -1 +1 @@
1
- function a186_0x2a14(){const _0x4c766d=['115987UfyeZf','821256QVPemp','822255bxCvgY','5547703scZIXc','43970YPfkLK','14MZmERv','4254264RQFvBs','235PkaGlK','trim','4ypIgpK','228wVorax','number','242xfUFvZ','isFinite','513ceVqUy','object'];a186_0x2a14=function(){return _0x4c766d;};return a186_0x2a14();}(function(_0xdc4122,_0x1e75ab){const _0x36c102=a186_0x268f,_0x1f9b40=_0xdc4122();while(!![]){try{const _0x10db6d=parseInt(_0x36c102(0xee))/0x1*(parseInt(_0x36c102(0xf3))/0x2)+-parseInt(_0x36c102(0xf0))/0x3*(parseInt(_0x36c102(0xf7))/0x4)+parseInt(_0x36c102(0xf5))/0x5*(-parseInt(_0x36c102(0xf8))/0x6)+parseInt(_0x36c102(0xf1))/0x7+parseInt(_0x36c102(0xf4))/0x8+-parseInt(_0x36c102(0xec))/0x9*(-parseInt(_0x36c102(0xf2))/0xa)+parseInt(_0x36c102(0xea))/0xb*(-parseInt(_0x36c102(0xef))/0xc);if(_0x10db6d===_0x1e75ab)break;else _0x1f9b40['push'](_0x1f9b40['shift']());}catch(_0x16cb02){_0x1f9b40['push'](_0x1f9b40['shift']());}}}(a186_0x2a14,0x93c9f));function toFiniteNumber(_0x2602b1){const _0x354940=a186_0x268f;if(typeof _0x2602b1===_0x354940(0xf9)&&Number['isFinite'](_0x2602b1))return _0x2602b1;if(typeof _0x2602b1==='string'){const _0x29db97=_0x2602b1[_0x354940(0xf6)]();if(!_0x29db97)return undefined;const _0x330802=Number(_0x29db97);if(Number[_0x354940(0xeb)](_0x330802))return _0x330802;}return undefined;}function a186_0x268f(_0x318b68,_0x5aa706){_0x318b68=_0x318b68-0xea;const _0x2a146c=a186_0x2a14();let _0x268f38=_0x2a146c[_0x318b68];return _0x268f38;}export function normalizeEntityWithIdResponse(_0x3c8a56){const _0x416b65=a186_0x268f,_0xf72c8e=toFiniteNumber(_0x3c8a56);if(_0xf72c8e!==undefined)return{'id':_0xf72c8e,'entity':{'id':_0xf72c8e}};if(!_0x3c8a56||typeof _0x3c8a56!==_0x416b65(0xed))return{'id':undefined,'entity':{}};const _0x207acd={..._0x3c8a56},_0x9bce92=toFiniteNumber(_0x207acd['id']);return _0x9bce92!==undefined&&(_0x207acd['id']=_0x9bce92),{'id':_0x9bce92,'entity':_0x207acd};}
1
+ (function(_0x25067d,_0x21f236){const _0x4f102d=a186_0x393a,_0x521a47=_0x25067d();while(!![]){try{const _0xee5580=-parseInt(_0x4f102d(0x136))/0x1*(parseInt(_0x4f102d(0x13d))/0x2)+parseInt(_0x4f102d(0x137))/0x3*(parseInt(_0x4f102d(0x143))/0x4)+parseInt(_0x4f102d(0x142))/0x5*(-parseInt(_0x4f102d(0x141))/0x6)+-parseInt(_0x4f102d(0x13e))/0x7*(-parseInt(_0x4f102d(0x138))/0x8)+parseInt(_0x4f102d(0x13c))/0x9*(-parseInt(_0x4f102d(0x13a))/0xa)+parseInt(_0x4f102d(0x140))/0xb+parseInt(_0x4f102d(0x144))/0xc*(parseInt(_0x4f102d(0x145))/0xd);if(_0xee5580===_0x21f236)break;else _0x521a47['push'](_0x521a47['shift']());}catch(_0x1b0e29){_0x521a47['push'](_0x521a47['shift']());}}}(a186_0x1933,0xaa4eb));function a186_0x1933(){const _0x1cd63a=['65259YJIASS','6AQyIfs','189XSLTfk','isFinite','8436219CFZABD','18zQGMAh','158905fUzVkf','80cuHJHL','12khsTRV','4033406FCySbB','398392cTBHCI','150582jGnBHE','241008cRJkAm','string','1250xwOxjp','number'];a186_0x1933=function(){return _0x1cd63a;};return a186_0x1933();}function a186_0x393a(_0x574164,_0x543d9a){_0x574164=_0x574164-0x136;const _0x1933de=a186_0x1933();let _0x393adb=_0x1933de[_0x574164];return _0x393adb;}function toFiniteNumber(_0x21d0d3){const _0x8c25bd=a186_0x393a;if(typeof _0x21d0d3===_0x8c25bd(0x13b)&&Number[_0x8c25bd(0x13f)](_0x21d0d3))return _0x21d0d3;if(typeof _0x21d0d3===_0x8c25bd(0x139)){const _0x350f00=_0x21d0d3['trim']();if(!_0x350f00)return undefined;const _0x325747=Number(_0x350f00);if(Number['isFinite'](_0x325747))return _0x325747;}return undefined;}export function normalizeEntityWithIdResponse(_0x5aa3b7){const _0x9560d1=toFiniteNumber(_0x5aa3b7);if(_0x9560d1!==undefined)return{'id':_0x9560d1,'entity':{'id':_0x9560d1}};if(!_0x5aa3b7||typeof _0x5aa3b7!=='object')return{'id':undefined,'entity':{}};const _0xf529d4={..._0x5aa3b7},_0x43133d=toFiniteNumber(_0xf529d4['id']);return _0x43133d!==undefined&&(_0xf529d4['id']=_0x43133d),{'id':_0x43133d,'entity':_0xf529d4};}
@@ -1 +1 @@
1
- (function(_0x10bebb,_0x5256ef){const _0x5da448=a187_0xf97d,_0x227331=_0x10bebb();while(!![]){try{const _0x3551d0=parseInt(_0x5da448(0x70))/0x1+parseInt(_0x5da448(0x6f))/0x2+parseInt(_0x5da448(0x6b))/0x3+-parseInt(_0x5da448(0x6d))/0x4+parseInt(_0x5da448(0x6e))/0x5+parseInt(_0x5da448(0x6c))/0x6+-parseInt(_0x5da448(0x71))/0x7;if(_0x3551d0===_0x5256ef)break;else _0x227331['push'](_0x227331['shift']());}catch(_0x270040){_0x227331['push'](_0x227331['shift']());}}}(a187_0x4fb6,0xe9bfd));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x4e99da,_0x47bad8){const _0x46bb5c=a187_0xf97d,_0x343ba5=statSync(_0x4e99da);if(_0x343ba5[_0x46bb5c(0x72)]()){!existsSync(_0x47bad8)&&mkdirSync(_0x47bad8,{'recursive':!![]});const _0x4ed4d7=readdirSync(_0x4e99da);for(const _0x1387ca of _0x4ed4d7){await copyDir(join(_0x4e99da,_0x1387ca),join(_0x47bad8,_0x1387ca));}}else copyFileSync(_0x4e99da,_0x47bad8);}function a187_0x4fb6(){const _0x147f47=['isDirectory','2588754sjXhcZ','4476978uOmUrG','4394352GbqAlt','4739040GOAwGY','3262350VXISPK','1135799OvNZzF','22874866hcYNjo'];a187_0x4fb6=function(){return _0x147f47;};return a187_0x4fb6();}function a187_0xf97d(_0x32c17f,_0x1abffb){_0x32c17f=_0x32c17f-0x6b;const _0x4fb6ac=a187_0x4fb6();let _0xf97d3=_0x4fb6ac[_0x32c17f];return _0xf97d3;}export function ensureDir(_0x60b980){!existsSync(_0x60b980)&&mkdirSync(_0x60b980,{'recursive':!![]});}export function pathExists(_0x4b51bc){return existsSync(_0x4b51bc);}
1
+ (function(_0x5c27de,_0x47de1c){const _0x4efb41=a187_0x849c,_0x3b0dc0=_0x5c27de();while(!![]){try{const _0x2d61af=-parseInt(_0x4efb41(0x170))/0x1+-parseInt(_0x4efb41(0x179))/0x2*(parseInt(_0x4efb41(0x173))/0x3)+parseInt(_0x4efb41(0x175))/0x4+-parseInt(_0x4efb41(0x174))/0x5+-parseInt(_0x4efb41(0x172))/0x6+-parseInt(_0x4efb41(0x178))/0x7*(parseInt(_0x4efb41(0x171))/0x8)+parseInt(_0x4efb41(0x177))/0x9;if(_0x2d61af===_0x47de1c)break;else _0x3b0dc0['push'](_0x3b0dc0['shift']());}catch(_0x3eb6f2){_0x3b0dc0['push'](_0x3b0dc0['shift']());}}}(a187_0x3754,0x42244));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';function a187_0x849c(_0x5c386d,_0x376b58){_0x5c386d=_0x5c386d-0x170;const _0x37543a=a187_0x3754();let _0x849ceb=_0x37543a[_0x5c386d];return _0x849ceb;}function a187_0x3754(){const _0x367ff0=['7JOafdc','11984PQOqGT','370595BEITTF','6880KAsFSj','2836404LsJfkQ','258XrjovO','664875aLCIRX','139628IXqAKk','isDirectory','15556365bPVPbu'];a187_0x3754=function(){return _0x367ff0;};return a187_0x3754();}export async function copyDir(_0x4d1ddc,_0x529156){const _0x5ed260=a187_0x849c,_0x35325d=statSync(_0x4d1ddc);if(_0x35325d[_0x5ed260(0x176)]()){!existsSync(_0x529156)&&mkdirSync(_0x529156,{'recursive':!![]});const _0x5c4773=readdirSync(_0x4d1ddc);for(const _0x1f1de4 of _0x5c4773){await copyDir(join(_0x4d1ddc,_0x1f1de4),join(_0x529156,_0x1f1de4));}}else copyFileSync(_0x4d1ddc,_0x529156);}export function ensureDir(_0x292e25){!existsSync(_0x292e25)&&mkdirSync(_0x292e25,{'recursive':!![]});}export function pathExists(_0x381fa8){return existsSync(_0x381fa8);}
@@ -1 +1 @@
1
- function a188_0x3834(){const _0xcc2043=['object','.lovrabet','utf-8','application/json','/skills/guides.json','\x0a\x0a>更新时间:','path','trimEnd','CDN\x20请求失败:\x20','replace','push','2VpjGVW','731991eFNQgM','length','content','6084670VLjnIZ','CDN\x20返回数据格式错误','guides','1194443jnLyvr','1000624dTiHYx','keys','extendContent','skillTemplate','join','title','statusText','lastUpdated','cache','.md','3463551ppXCmh','5357120SPuVkT','50742tsicZT','entries','json','status'];a188_0x3834=function(){return _0xcc2043;};return a188_0x3834();}const a188_0x215c33=a188_0x44f5;(function(_0x168495,_0x578fc8){const _0x483ff3=a188_0x44f5,_0x206e9b=_0x168495();while(!![]){try{const _0x25d995=parseInt(_0x483ff3(0x1c4))/0x1*(parseInt(_0x483ff3(0x1bd))/0x2)+parseInt(_0x483ff3(0x1be))/0x3+-parseInt(_0x483ff3(0x1ad))/0x4+parseInt(_0x483ff3(0x1c1))/0x5+parseInt(_0x483ff3(0x1ae))/0x6+-parseInt(_0x483ff3(0x1ac))/0x7+-parseInt(_0x483ff3(0x1c5))/0x8;if(_0x25d995===_0x578fc8)break;else _0x206e9b['push'](_0x206e9b['shift']());}catch(_0x5911b9){_0x206e9b['push'](_0x206e9b['shift']());}}}(a188_0x3834,0xac0a8));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 _0x12fe74=a188_0x44f5,_0x450d1a=getTemplateBaseUrl();return _0x450d1a+_0x12fe74(0x1b6);}const CACHE_DIR=join(homedir(),a188_0x215c33(0x1b3),a188_0x215c33(0x1aa));export async function fetchGuidesFromCDN(){const _0x4bd70d=a188_0x215c33,_0x11cad6=getGuidesCdnUrl(),_0x408d7d=await fetch(_0x11cad6,{'headers':{'Accept':_0x4bd70d(0x1b5)}});if(!_0x408d7d['ok'])throw new Error(_0x4bd70d(0x1ba)+_0x408d7d[_0x4bd70d(0x1b1)]+'\x20'+_0x408d7d[_0x4bd70d(0x1cb)]);const _0x36814d=await _0x408d7d[_0x4bd70d(0x1b0)]();if(!_0x36814d['guides']||typeof _0x36814d[_0x4bd70d(0x1c3)]!==_0x4bd70d(0x1b2))throw new Error(_0x4bd70d(0x1c2));return _0x36814d;}function a188_0x44f5(_0x4a577c,_0x206c1f){_0x4a577c=_0x4a577c-0x1a9;const _0x3834dd=a188_0x3834();let _0x44f5b6=_0x3834dd[_0x4a577c];return _0x44f5b6;}export function writeGuidesToProject(_0x331420,_0x5f8a27,_0x35e32c='.lovrabet/skill/guides',_0x5156a4){const _0x20bfb9=a188_0x215c33,_0x47f30c=join(_0x5f8a27,_0x35e32c);mkdirSync(_0x47f30c,{'recursive':!![]});for(const [_0x2276db,_0x362a89]of Object['entries'](_0x331420['guides'])){let _0x5c0f02=_0x362a89[_0x20bfb9(0x1c0)];_0x362a89['lastUpdated']&&(_0x5c0f02=appendUpdateTime(_0x5c0f02,_0x362a89[_0x20bfb9(0x1a9)])),writeFileSync(join(_0x47f30c,_0x2276db+_0x20bfb9(0x1ab)),_0x5c0f02,_0x20bfb9(0x1b4));}}export function appendUpdateTime(_0x5b4628,_0x346570){const _0x1377d1=a188_0x215c33;return _0x5b4628=_0x5b4628[_0x1377d1(0x1bb)](/\n*>更新时间:.*$/m,''),_0x5b4628[_0x1377d1(0x1b9)]()+(_0x1377d1(0x1b7)+_0x346570);}export function getSkillTemplate(_0x2f0f73){const _0x3d6167=a188_0x215c33;return _0x2f0f73['skillTemplate']?.[_0x3d6167(0x1c0)]||'';}export function appendExtendContents(_0x4a9ae8,_0x43a33e,_0x2cea18){const _0x62d64d=a188_0x215c33,_0x485b49=[];for(const [,_0xf75a19]of Object[_0x62d64d(0x1af)](_0x43a33e[_0x62d64d(0x1c3)])){_0xf75a19[_0x62d64d(0x1c7)]&&_0x485b49[_0x62d64d(0x1bc)](_0xf75a19[_0x62d64d(0x1c7)][_0x62d64d(0x1b9)]());}if(_0x485b49[_0x62d64d(0x1bf)]===0x0)return _0x4a9ae8;return _0x4a9ae8['trimEnd']()+'\x0a\x0a'+_0x485b49[_0x62d64d(0x1c9)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2cb842,_0x521b02,_0x10ae8b){const _0x261445=a188_0x215c33,_0x3167dd=getSkillTemplate(_0x2cb842);if(!_0x3167dd)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x3eeb52=dirname(_0x521b02);mkdirSync(_0x3eeb52,{'recursive':!![]});let _0x57b20=_0x3167dd[_0x261445(0x1bb)](/\{\{IDE_NAME\}\}/g,_0x10ae8b);_0x57b20=appendExtendContents(_0x57b20,_0x2cb842),_0x2cb842[_0x261445(0x1c8)][_0x261445(0x1a9)]&&(_0x57b20=appendUpdateTime(_0x57b20,_0x2cb842[_0x261445(0x1c8)][_0x261445(0x1a9)])),writeFileSync(_0x521b02,_0x57b20,_0x261445(0x1b4));}export async function installGuides(_0xf3a413){const _0x50b2e7=a188_0x215c33,_0x4a87fa=await fetchGuidesFromCDN();return writeGuidesToProject(_0x4a87fa,_0xf3a413),Object[_0x50b2e7(0x1c6)](_0x4a87fa[_0x50b2e7(0x1c3)])[_0x50b2e7(0x1bf)];}export function getGuidesSummary(_0x18c238){const _0x32f45f=a188_0x215c33;return Object[_0x32f45f(0x1af)](_0x18c238[_0x32f45f(0x1c3)])['map'](([_0x125de2,_0x11d0f6])=>({'key':_0x125de2,'title':_0x11d0f6[_0x32f45f(0x1ca)],'path':_0x11d0f6[_0x32f45f(0x1b8)]}));}
1
+ const a188_0x35c90f=a188_0x8d5c;(function(_0x239c76,_0x5a1952){const _0xc12ac8=a188_0x8d5c,_0xa92b25=_0x239c76();while(!![]){try{const _0x54d47c=-parseInt(_0xc12ac8(0x190))/0x1*(parseInt(_0xc12ac8(0x18a))/0x2)+parseInt(_0xc12ac8(0x194))/0x3+-parseInt(_0xc12ac8(0x19b))/0x4+parseInt(_0xc12ac8(0x18c))/0x5+parseInt(_0xc12ac8(0x187))/0x6+-parseInt(_0xc12ac8(0x1a1))/0x7*(-parseInt(_0xc12ac8(0x186))/0x8)+parseInt(_0xc12ac8(0x191))/0x9*(-parseInt(_0xc12ac8(0x193))/0xa);if(_0x54d47c===_0x5a1952)break;else _0xa92b25['push'](_0xa92b25['shift']());}catch(_0x47bbeb){_0xa92b25['push'](_0xa92b25['shift']());}}}(a188_0x1791,0xeb360));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 _0x4f706e=a188_0x8d5c,_0x291d6a=getTemplateBaseUrl();return _0x291d6a+_0x4f706e(0x18e);}const CACHE_DIR=join(homedir(),a188_0x35c90f(0x1a2),'cache');export async function fetchGuidesFromCDN(){const _0x3a03c1=a188_0x35c90f,_0x423d08=getGuidesCdnUrl(),_0x26ddd9=await fetch(_0x423d08,{'headers':{'Accept':'application/json'}});if(!_0x26ddd9['ok'])throw new Error(_0x3a03c1(0x19d)+_0x26ddd9[_0x3a03c1(0x19f)]+'\x20'+_0x26ddd9[_0x3a03c1(0x18f)]);const _0x1de38a=await _0x26ddd9[_0x3a03c1(0x18d)]();if(!_0x1de38a['guides']||typeof _0x1de38a[_0x3a03c1(0x195)]!==_0x3a03c1(0x196))throw new Error(_0x3a03c1(0x192));return _0x1de38a;}export function writeGuidesToProject(_0xcffdaf,_0x585d0a,_0xc0b31d=a188_0x35c90f(0x199),_0x1c0afc){const _0x45e2b8=a188_0x35c90f,_0x46fb8c=join(_0x585d0a,_0xc0b31d);mkdirSync(_0x46fb8c,{'recursive':!![]});for(const [_0x38ec4b,_0x1f1a6b]of Object['entries'](_0xcffdaf[_0x45e2b8(0x195)])){let _0x4c07ac=_0x1f1a6b['content'];_0x1f1a6b[_0x45e2b8(0x1a3)]&&(_0x4c07ac=appendUpdateTime(_0x4c07ac,_0x1f1a6b[_0x45e2b8(0x1a3)])),writeFileSync(join(_0x46fb8c,_0x38ec4b+_0x45e2b8(0x19c)),_0x4c07ac,_0x45e2b8(0x198));}}export function appendUpdateTime(_0x17b1fc,_0x2f916a){const _0x5db4ff=a188_0x35c90f;return _0x17b1fc=_0x17b1fc[_0x5db4ff(0x1a5)](/\n*>更新时间:.*$/m,''),_0x17b1fc[_0x5db4ff(0x189)]()+('\x0a\x0a>更新时间:'+_0x2f916a);}function a188_0x8d5c(_0x15980b,_0x3d47f1){_0x15980b=_0x15980b-0x184;const _0x179166=a188_0x1791();let _0x8d5c82=_0x179166[_0x15980b];return _0x8d5c82;}export function getSkillTemplate(_0x58b8e4){const _0x5b5fef=a188_0x35c90f;return _0x58b8e4[_0x5b5fef(0x188)]?.[_0x5b5fef(0x185)]||'';}export function appendExtendContents(_0x29b0f3,_0x4f6ff9,_0x498fa3){const _0x32a147=a188_0x35c90f,_0x2d05f9=[];for(const [,_0x48e20f]of Object[_0x32a147(0x19e)](_0x4f6ff9[_0x32a147(0x195)])){_0x48e20f[_0x32a147(0x19a)]&&_0x2d05f9[_0x32a147(0x18b)](_0x48e20f[_0x32a147(0x19a)][_0x32a147(0x189)]());}if(_0x2d05f9[_0x32a147(0x1a0)]===0x0)return _0x29b0f3;return _0x29b0f3[_0x32a147(0x189)]()+'\x0a\x0a'+_0x2d05f9['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5d32b0,_0x137e80,_0x1d1a7c){const _0xf260a6=a188_0x35c90f,_0x5ca8f6=getSkillTemplate(_0x5d32b0);if(!_0x5ca8f6)throw new Error(_0xf260a6(0x1a4));const _0x277108=dirname(_0x137e80);mkdirSync(_0x277108,{'recursive':!![]});let _0x55042e=_0x5ca8f6[_0xf260a6(0x1a5)](/\{\{IDE_NAME\}\}/g,_0x1d1a7c);_0x55042e=appendExtendContents(_0x55042e,_0x5d32b0),_0x5d32b0[_0xf260a6(0x188)]['lastUpdated']&&(_0x55042e=appendUpdateTime(_0x55042e,_0x5d32b0['skillTemplate'][_0xf260a6(0x1a3)])),writeFileSync(_0x137e80,_0x55042e,'utf-8');}export async function installGuides(_0x5bbd10){const _0x5375e6=a188_0x35c90f,_0x6bb4f7=await fetchGuidesFromCDN();return writeGuidesToProject(_0x6bb4f7,_0x5bbd10),Object[_0x5375e6(0x1a6)](_0x6bb4f7['guides'])[_0x5375e6(0x1a0)];}export function getGuidesSummary(_0xe4762d){const _0x347e08=a188_0x35c90f;return Object[_0x347e08(0x19e)](_0xe4762d[_0x347e08(0x195)])[_0x347e08(0x197)](([_0x17c07e,_0x1c4ab9])=>({'key':_0x17c07e,'title':_0x1c4ab9[_0x347e08(0x184)],'path':_0x1c4ab9['path']}));}function a188_0x1791(){const _0x5a81e6=['utf-8','.lovrabet/skill/guides','extendContent','3523436qEcupW','.md','CDN\x20请求失败:\x20','entries','status','length','42AnwQDO','.lovrabet','lastUpdated','CDN\x20数据中缺少\x20skillTemplate','replace','keys','title','content','2275496hiRGUt','1232280dQrCQd','skillTemplate','trimEnd','58352BWIEQy','push','4850930pZyPNS','json','/skills/guides.json','statusText','41ASEOHL','9CJhEhz','CDN\x20返回数据格式错误','15648430dVLYUE','5169462tOlCre','guides','object','map'];a188_0x1791=function(){return _0x5a81e6;};return a188_0x1791();}
@@ -1 +1 @@
1
- (function(_0x27c0f6,_0x47e2da){const _0x42fd90=a189_0x5c90,_0x67ad01=_0x27c0f6();while(!![]){try{const _0x46f794=-parseInt(_0x42fd90(0xc0))/0x1*(-parseInt(_0x42fd90(0xad))/0x2)+parseInt(_0x42fd90(0xc9))/0x3*(parseInt(_0x42fd90(0xbd))/0x4)+parseInt(_0x42fd90(0xbe))/0x5+parseInt(_0x42fd90(0xb7))/0x6*(-parseInt(_0x42fd90(0xae))/0x7)+parseInt(_0x42fd90(0xbb))/0x8*(parseInt(_0x42fd90(0xb2))/0x9)+-parseInt(_0x42fd90(0xab))/0xa*(parseInt(_0x42fd90(0xbc))/0xb)+-parseInt(_0x42fd90(0xc5))/0xc;if(_0x46f794===_0x47e2da)break;else _0x67ad01['push'](_0x67ad01['shift']());}catch(_0x5ca6ab){_0x67ad01['push'](_0x67ad01['shift']());}}}(a189_0xbb83,0x2c46c));function a189_0x5c90(_0x5b42a9,_0x5ebdbf){_0x5b42a9=_0x5b42a9-0xab;const _0xbb8332=a189_0xbb83();let _0x5c9040=_0xbb8332[_0x5b42a9];return _0x5c9040;}export async function httpRequest(_0x56ebcf,_0x56dc22={}){const _0x5820ba=a189_0x5c90,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x56dc22;let _0x3ddbd0=null;for(let _0x9cbd02=0x0;_0x9cbd02<=retries;_0x9cbd02++){try{const _0x503816=new AbortController(),_0xfd0b75=setTimeout(()=>_0x503816[_0x5820ba(0xc1)](),timeout),_0x5c70bf=await fetch(_0x56ebcf,{'headers':headers,'signal':_0x503816[_0x5820ba(0xb4)]});clearTimeout(_0xfd0b75);let _0x5dd385;const _0x233dba=_0x5c70bf[_0x5820ba(0xac)]['get'](_0x5820ba(0xb8));return _0x233dba?.[_0x5820ba(0xb9)](_0x5820ba(0xc8))?_0x5dd385=await _0x5c70bf[_0x5820ba(0xc3)]():_0x5dd385=await _0x5c70bf[_0x5820ba(0xba)](),{'ok':_0x5c70bf['ok'],'status':_0x5c70bf[_0x5820ba(0xaf)],'statusText':_0x5c70bf[_0x5820ba(0xc7)],'data':_0x5dd385,'headers':_0x5c70bf['headers'],'url':_0x5c70bf[_0x5820ba(0xc2)],'text':()=>_0x5c70bf['text']()};}catch(_0x2e3704){_0x3ddbd0=_0x2e3704 instanceof Error?_0x2e3704:new Error(String(_0x2e3704));if(_0x9cbd02===retries)break;if(shouldRetry(_0x2e3704)){console[_0x5820ba(0xb1)](_0x5820ba(0xc4)+retryDelay+_0x5820ba(0xb5)+(_0x9cbd02+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x3ddbd0||new Error('Request\x20failed');}function a189_0xbb83(){const _0x490ddc=['201QaRvrt','230BaGVod','headers','134NhyPgY','29113ukFRZa','status','AbortError','log','18ZIlBxc','name','signal','ms\x20后进行第\x20','TypeError','510rBXEjb','content-type','includes','text','888BqNDht','12793DbSPzi','14244MLkdEz','142570pnmOWN','ECONNRESET','5059gLhHzX','abort','url','json','*\x20请求失败,','535872yihwov','message','statusText','application/json'];a189_0xbb83=function(){return _0x490ddc;};return a189_0xbb83();}function shouldRetry(_0x2a2e9e){const _0x88bcaa=a189_0x5c90;if(_0x2a2e9e instanceof Error){if(_0x2a2e9e[_0x88bcaa(0xb3)]===_0x88bcaa(0xb0))return![];if(_0x2a2e9e[_0x88bcaa(0xb3)]===_0x88bcaa(0xb6)&&_0x2a2e9e['message']['includes']('fetch'))return!![];if(_0x2a2e9e[_0x88bcaa(0xc6)][_0x88bcaa(0xb9)](_0x88bcaa(0xbf)))return!![];if(_0x2a2e9e['message'][_0x88bcaa(0xb9)]('ENOTFOUND'))return![];}return![];}function sleep(_0x45c689){return new Promise(_0x345f27=>setTimeout(_0x345f27,_0x45c689));}export function validateUrl(_0x3064b9){try{return new URL(_0x3064b9),!![];}catch{return![];}}
1
+ (function(_0x230fd8,_0x4be418){const _0x129561=a189_0x5dcb,_0x40144f=_0x230fd8();while(!![]){try{const _0xe5448f=parseInt(_0x129561(0x149))/0x1*(parseInt(_0x129561(0x143))/0x2)+-parseInt(_0x129561(0x147))/0x3+parseInt(_0x129561(0x151))/0x4+-parseInt(_0x129561(0x14a))/0x5*(parseInt(_0x129561(0x15a))/0x6)+parseInt(_0x129561(0x144))/0x7+parseInt(_0x129561(0x146))/0x8*(-parseInt(_0x129561(0x14f))/0x9)+-parseInt(_0x129561(0x158))/0xa*(-parseInt(_0x129561(0x155))/0xb);if(_0xe5448f===_0x4be418)break;else _0x40144f['push'](_0x40144f['shift']());}catch(_0x29fddb){_0x40144f['push'](_0x40144f['shift']());}}}(a189_0x5741,0x29f94));function a189_0x5741(){const _0xcb591d=['ECONNRESET','198APZVTW','*\x20请求失败,','content-type','AbortError','fetch','ENOTFOUND','signal','402GVskxK','594034fZEfyd','json','16vHIwJn','154197BbJcsn','Request\x20failed','1208YoRDbv','45895WMgIEv','ms\x20后进行第\x20','status','message','includes','706284jvtjWw','get','941364aLDmts','TypeError','url','text','1353OBdeMv','name','headers','9770WgZjby'];a189_0x5741=function(){return _0xcb591d;};return a189_0x5741();}function a189_0x5dcb(_0x5762b2,_0x374b1d){_0x5762b2=_0x5762b2-0x142;const _0x574176=a189_0x5741();let _0x5dcb7f=_0x574176[_0x5762b2];return _0x5dcb7f;}export async function httpRequest(_0x3353d5,_0x2ea20c={}){const _0x203114=a189_0x5dcb,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2ea20c;let _0xf26f50=null;for(let _0x1e52f6=0x0;_0x1e52f6<=retries;_0x1e52f6++){try{const _0x3507e7=new AbortController(),_0x51f0cb=setTimeout(()=>_0x3507e7['abort'](),timeout),_0x1b90f6=await fetch(_0x3353d5,{'headers':headers,'signal':_0x3507e7[_0x203114(0x142)]});clearTimeout(_0x51f0cb);let _0x303764;const _0x42bd8f=_0x1b90f6[_0x203114(0x157)][_0x203114(0x150)](_0x203114(0x15c));return _0x42bd8f?.[_0x203114(0x14e)]('application/json')?_0x303764=await _0x1b90f6[_0x203114(0x145)]():_0x303764=await _0x1b90f6[_0x203114(0x154)](),{'ok':_0x1b90f6['ok'],'status':_0x1b90f6[_0x203114(0x14c)],'statusText':_0x1b90f6['statusText'],'data':_0x303764,'headers':_0x1b90f6['headers'],'url':_0x1b90f6[_0x203114(0x153)],'text':()=>_0x1b90f6[_0x203114(0x154)]()};}catch(_0x3e94f9){_0xf26f50=_0x3e94f9 instanceof Error?_0x3e94f9:new Error(String(_0x3e94f9));if(_0x1e52f6===retries)break;if(shouldRetry(_0x3e94f9)){console['log'](_0x203114(0x15b)+retryDelay+_0x203114(0x14b)+(_0x1e52f6+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0xf26f50||new Error(_0x203114(0x148));}function shouldRetry(_0x521e3f){const _0x11dad7=a189_0x5dcb;if(_0x521e3f instanceof Error){if(_0x521e3f[_0x11dad7(0x156)]===_0x11dad7(0x15d))return![];if(_0x521e3f[_0x11dad7(0x156)]===_0x11dad7(0x152)&&_0x521e3f[_0x11dad7(0x14d)]['includes'](_0x11dad7(0x15e)))return!![];if(_0x521e3f[_0x11dad7(0x14d)][_0x11dad7(0x14e)](_0x11dad7(0x159)))return!![];if(_0x521e3f[_0x11dad7(0x14d)][_0x11dad7(0x14e)](_0x11dad7(0x15f)))return![];}return![];}function sleep(_0x42f0a8){return new Promise(_0x1b857b=>setTimeout(_0x1b857b,_0x42f0a8));}export function validateUrl(_0x3e3c1d){try{return new URL(_0x3e3c1d),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x54d697,_0xc0df94){const _0x16d433=a190_0x2f8b,_0x2f1475=_0x54d697();while(!![]){try{const _0x43b652=-parseInt(_0x16d433(0x1e4))/0x1+parseInt(_0x16d433(0x1ec))/0x2+parseInt(_0x16d433(0x1e6))/0x3*(parseInt(_0x16d433(0x1ea))/0x4)+parseInt(_0x16d433(0x1de))/0x5*(parseInt(_0x16d433(0x1e3))/0x6)+parseInt(_0x16d433(0x1e8))/0x7*(parseInt(_0x16d433(0x1e2))/0x8)+-parseInt(_0x16d433(0x1e7))/0x9+-parseInt(_0x16d433(0x1e5))/0xa*(parseInt(_0x16d433(0x1ed))/0xb);if(_0x43b652===_0xc0df94)break;else _0x2f1475['push'](_0x2f1475['shift']());}catch(_0x3f78d7){_0x2f1475['push'](_0x2f1475['shift']());}}}(a190_0x4d27,0x23981));function a190_0x4d27(){const _0x21958=['755dMapAm','true','isRaw','stdin','16TCHrqf','4362zUarfr','50208yMbMYZ','147290qUKKbH','3ZqKkCI','1239354aJexEP','20377akFIMR','stdout','94596oUAYcC','setRawMode','536208NXHPLM','55qjLXDf','nonInteractive'];a190_0x4d27=function(){return _0x21958;};return a190_0x4d27();}function a190_0x2f8b(_0x4879fd,_0x1916c0){_0x4879fd=_0x4879fd-0x1dd;const _0x4d272f=a190_0x4d27();let _0x2f8b06=_0x4d272f[_0x4879fd];return _0x2f8b06;}function env(_0x5afd87){return process.env[`RABETBASE_${_0x5afd87}`]||process.env[`LOVRABET_${_0x5afd87}`]||undefined;}export function isNonInteractive(_0xb1a9d7){const _0x34c7c4=a190_0x2f8b;return!!(_0xb1a9d7[_0x34c7c4(0x1dd)]||_0xb1a9d7['ci']||env('CI')===_0x34c7c4(0x1df)||process.env.CI==='true'||!process[_0x34c7c4(0x1e9)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x4c3c28=a190_0x2f8b;if(!process['stdin']['isTTY'])return![];try{const _0x2a95a8=process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1e0)];return process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1eb)](!![]),process[_0x4c3c28(0x1e1)][_0x4c3c28(0x1eb)](_0x2a95a8??![]),!![];}catch{return![];}}
1
+ (function(_0x542521,_0x6f5733){const _0x4a9234=a190_0x1751,_0x735aa2=_0x542521();while(!![]){try{const _0xeb3002=parseInt(_0x4a9234(0x13b))/0x1*(parseInt(_0x4a9234(0x145))/0x2)+parseInt(_0x4a9234(0x13e))/0x3+parseInt(_0x4a9234(0x147))/0x4+parseInt(_0x4a9234(0x140))/0x5*(-parseInt(_0x4a9234(0x148))/0x6)+parseInt(_0x4a9234(0x144))/0x7+-parseInt(_0x4a9234(0x13d))/0x8+parseInt(_0x4a9234(0x143))/0x9;if(_0xeb3002===_0x6f5733)break;else _0x735aa2['push'](_0x735aa2['shift']());}catch(_0x3aa87f){_0x735aa2['push'](_0x735aa2['shift']());}}}(a190_0x151e,0x82018));function a190_0x151e(){const _0x5e1856=['6504FeQrpF','isRaw','2UZXgrK','isTTY','5314616IlYgNx','340353ZLYJNq','stdout','2315IFztyV','setRawMode','stdin','7241436cMoyxt','4139807qdhGtu','79882sfAind','nonInteractive','437540nPdqan'];a190_0x151e=function(){return _0x5e1856;};return a190_0x151e();}function env(_0x1c5370){return process.env[`RABETBASE_${_0x1c5370}`]||process.env[`LOVRABET_${_0x1c5370}`]||undefined;}function a190_0x1751(_0x229a94,_0x547567){_0x229a94=_0x229a94-0x13a;const _0x151e34=a190_0x151e();let _0x175139=_0x151e34[_0x229a94];return _0x175139;}export function isNonInteractive(_0x4c4621){const _0x347d68=a190_0x1751;return!!(_0x4c4621[_0x347d68(0x146)]||_0x4c4621['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x347d68(0x13f)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x14bc0a=a190_0x1751;if(!process[_0x14bc0a(0x142)][_0x14bc0a(0x13c)])return![];try{const _0xbcbe32=process[_0x14bc0a(0x142)][_0x14bc0a(0x13a)];return process[_0x14bc0a(0x142)][_0x14bc0a(0x141)](!![]),process[_0x14bc0a(0x142)][_0x14bc0a(0x141)](_0xbcbe32??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a191_0x343e(){const _0x45b1d7=['map','timestamp','printf','existsSync','setLogPath','clearLogs','getWinstonInstance','green','18lCOTbN','parse','dirname','red','command','warn','utf8','13284sIrERJ','logFilePath','.lovrabet.log','addColors','56brmfhL','error','errors','logTask','message','now','combine','transports','writeFileSync','929763gDEQLM','winstonLogger','Failed\x20to\x20clear\x20logs:','createLogger','duration','level','info','readLogs','success','25820700zauZHe','stringify','join','split','filter','mkdirSync','开始执行:\x20','6073970hmDcLp','yellow','1481473TXIYVa','blue','569098vGdgVN','initWinstonLogger','setRawCommand','currentRawCommand','toISOString','clear','1973392nHWNgc','format','log','939jWpYSi'];a191_0x343e=function(){return _0x45b1d7;};return a191_0x343e();}const a191_0x730ba6=a191_0x2d6d;(function(_0x2133b5,_0x3b680f){const _0x12ba57=a191_0x2d6d,_0x1afa6a=_0x2133b5();while(!![]){try{const _0x186175=parseInt(_0x12ba57(0x1e9))/0x1+-parseInt(_0x12ba57(0x1ef))/0x2+parseInt(_0x12ba57(0x1f2))/0x3*(parseInt(_0x12ba57(0x202))/0x4)+-parseInt(_0x12ba57(0x1e5))/0x5+-parseInt(_0x12ba57(0x1fb))/0x6*(parseInt(_0x12ba57(0x1e7))/0x7)+-parseInt(_0x12ba57(0x206))/0x8*(parseInt(_0x12ba57(0x20f))/0x9)+parseInt(_0x12ba57(0x1de))/0xa;if(_0x186175===_0x3b680f)break;else _0x1afa6a['push'](_0x1afa6a['shift']());}catch(_0x3a9243){_0x1afa6a['push'](_0x1afa6a['shift']());}}}(a191_0x343e,0x9a12d));import a191_0x327ae7 from'winston';import a191_0x2270f2 from'node:fs';import a191_0x220bdd from'node:path';function a191_0x2d6d(_0x468734,_0x21f60f){_0x468734=_0x468734-0x1dd;const _0x343e22=a191_0x343e();let _0x2d6da5=_0x343e22[_0x468734];return _0x2d6da5;}class Logger{['winstonLogger'];[a191_0x730ba6(0x203)];['currentRawCommand']='';constructor(){const _0x1f23f7=a191_0x730ba6;this[_0x1f23f7(0x203)]='';}[a191_0x730ba6(0x1eb)](_0xa0e6a1){const _0x3e47d8=a191_0x730ba6;this[_0x3e47d8(0x1ec)]=_0xa0e6a1;}[a191_0x730ba6(0x1ea)](){const _0x1f3102=a191_0x730ba6,_0x529890=a191_0x220bdd[_0x1f3102(0x1fd)](this['logFilePath']);!a191_0x2270f2[_0x1f3102(0x1f6)](_0x529890)&&a191_0x2270f2[_0x1f3102(0x1e3)](_0x529890,{'recursive':!![]});const _0x409ee2=a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x20c)](a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x1f4)](),a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x208)]({'stack':!![]}),a191_0x327ae7[_0x1f3102(0x1f0)][_0x1f3102(0x1f5)](_0x316ff6=>{const _0x44280b=_0x1f3102,_0x6956e3={'timestamp':_0x316ff6[_0x44280b(0x1f4)]||new Date()[_0x44280b(0x1ed)](),'level':_0x316ff6[_0x44280b(0x214)]||_0x44280b(0x215),'command':_0x316ff6[_0x44280b(0x1ff)]||'unknown','rawCommand':_0x316ff6['rawCommand']||this[_0x44280b(0x1ec)]||undefined,'message':_0x316ff6[_0x44280b(0x20a)]||'','duration':_0x316ff6[_0x44280b(0x213)]||undefined,'details':_0x316ff6['details']||undefined};return JSON[_0x44280b(0x1df)](_0x6956e3);}));this[_0x1f3102(0x210)]=a191_0x327ae7[_0x1f3102(0x212)]({'level':_0x1f3102(0x215),'format':_0x409ee2,'transports':[new a191_0x327ae7[(_0x1f3102(0x20d))]['File']({'filename':this[_0x1f3102(0x203)],'level':_0x1f3102(0x215)})],'silent':![]}),a191_0x327ae7[_0x1f3102(0x205)]({'success':_0x1f3102(0x1fa),'error':_0x1f3102(0x1fe),'warn':_0x1f3102(0x1e6),'info':_0x1f3102(0x1e8)});}[a191_0x730ba6(0x1f7)](_0x6d619c){const _0x41bf3e=a191_0x730ba6;this['logFilePath']=a191_0x220bdd[_0x41bf3e(0x1e0)](_0x6d619c,_0x41bf3e(0x204)),this['winstonLogger']&&this[_0x41bf3e(0x210)][_0x41bf3e(0x1ee)](),this[_0x41bf3e(0x1ea)]();}[a191_0x730ba6(0x215)](_0x3112c9,_0x4254ae,_0x165f42){const _0x37b172=a191_0x730ba6;if(!this['logFilePath']||!this[_0x37b172(0x210)])return;this[_0x37b172(0x210)][_0x37b172(0x215)](_0x4254ae,{'command':_0x3112c9,'details':_0x165f42});}[a191_0x730ba6(0x1dd)](_0x44c15a,_0x184dac,_0x4bbe65,_0xba5c20){const _0x144315=a191_0x730ba6;if(!this[_0x144315(0x203)]||!this[_0x144315(0x210)])return;this[_0x144315(0x210)][_0x144315(0x1f1)](_0x144315(0x215),_0x184dac,{'level':_0x144315(0x1dd),'command':_0x44c15a,'duration':_0x4bbe65,'details':_0xba5c20});}[a191_0x730ba6(0x207)](_0x22d9b7,_0x1d7b6a,_0x55f584){const _0x3ca917=a191_0x730ba6;if(!this[_0x3ca917(0x203)]||!this[_0x3ca917(0x210)])return;this[_0x3ca917(0x210)][_0x3ca917(0x207)](_0x1d7b6a,{'command':_0x22d9b7,'details':_0x55f584});}[a191_0x730ba6(0x200)](_0x2e12f6,_0x33a1c5,_0x320934){const _0xf1d492=a191_0x730ba6;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0xf1d492(0x210)][_0xf1d492(0x200)](_0x33a1c5,{'command':_0x2e12f6,'details':_0x320934});}async[a191_0x730ba6(0x209)](_0x1fff42,_0x1fd318,_0x25cfb9){const _0x5bbbc1=a191_0x730ba6,_0x3f6fc4=Date[_0x5bbbc1(0x20b)]();this[_0x5bbbc1(0x215)](_0x1fff42,_0x5bbbc1(0x1e4)+_0x1fd318);try{const _0x1271b3=await _0x25cfb9(),_0x213feb=Date[_0x5bbbc1(0x20b)]()-_0x3f6fc4;return this[_0x5bbbc1(0x1dd)](_0x1fff42,'完成:\x20'+_0x1fd318,_0x213feb),_0x1271b3;}catch(_0x16d3fb){const _0x77bf38=Date[_0x5bbbc1(0x20b)]()-_0x3f6fc4;this['error'](_0x1fff42,'失败:\x20'+_0x1fd318,{'error':_0x16d3fb instanceof Error?_0x16d3fb['message']:String(_0x16d3fb),'duration':_0x77bf38});throw _0x16d3fb;}}[a191_0x730ba6(0x216)](){const _0x20bd33=a191_0x730ba6;try{if(!a191_0x2270f2[_0x20bd33(0x1f6)](this[_0x20bd33(0x203)]))return[];const _0x365891=a191_0x2270f2['readFileSync'](this[_0x20bd33(0x203)],_0x20bd33(0x201));return _0x365891[_0x20bd33(0x1e1)]('\x0a')[_0x20bd33(0x1e2)](_0x2823fa=>_0x2823fa['trim']())[_0x20bd33(0x1f3)](_0x2ffff1=>JSON[_0x20bd33(0x1fc)](_0x2ffff1));}catch(_0x285469){return console[_0x20bd33(0x200)]('Failed\x20to\x20read\x20logs:',_0x285469),[];}}[a191_0x730ba6(0x1f8)](){const _0x29772f=a191_0x730ba6;try{a191_0x2270f2[_0x29772f(0x1f6)](this[_0x29772f(0x203)])&&a191_0x2270f2[_0x29772f(0x20e)](this[_0x29772f(0x203)],'',_0x29772f(0x201));}catch(_0x2f6c04){console[_0x29772f(0x200)](_0x29772f(0x211),_0x2f6c04);}}[a191_0x730ba6(0x1f9)](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a191_0x107d26=a191_0x68a2;(function(_0x465f18,_0x12d932){const _0x4643ad=a191_0x68a2,_0x50d5fc=_0x465f18();while(!![]){try{const _0x122d70=parseInt(_0x4643ad(0x19b))/0x1*(-parseInt(_0x4643ad(0x183))/0x2)+-parseInt(_0x4643ad(0x18d))/0x3+parseInt(_0x4643ad(0x17f))/0x4*(parseInt(_0x4643ad(0x17d))/0x5)+-parseInt(_0x4643ad(0x194))/0x6+parseInt(_0x4643ad(0x19f))/0x7*(-parseInt(_0x4643ad(0x16d))/0x8)+parseInt(_0x4643ad(0x188))/0x9+-parseInt(_0x4643ad(0x19d))/0xa*(-parseInt(_0x4643ad(0x173))/0xb);if(_0x122d70===_0x12d932)break;else _0x50d5fc['push'](_0x50d5fc['shift']());}catch(_0x32e91e){_0x50d5fc['push'](_0x50d5fc['shift']());}}}(a191_0x1a7a,0xceeb3));import a191_0x1ed4c7 from'winston';import a191_0xa0d2bb from'node:fs';import a191_0x1d7a73 from'node:path';function a191_0x1a7a(){const _0x5b4dc8=['getWinstonInstance','587340KjnxSq','yellow','utf8','Failed\x20to\x20clear\x20logs:','info','initWinstonLogger','filter','1118442SYqCbB','transports','logFilePath','setRawCommand','setLogPath','duration','readFileSync','1MCSNqT','details','10lDvpNr','dirname','7847MdPGvv','parse','currentRawCommand','toISOString','logTask','失败:\x20','Failed\x20to\x20read\x20logs:','trim','winstonLogger','existsSync','7784uYDNVz','stringify','green','.lovrabet.log','unknown','map','17721550TueZQe','red','errors','split','printf','join','success','clearLogs','combine','message','1828150tEgLZg','blue','4iJmwNt','error','now','完成:\x20','2302634OxJNpz','format','timestamp','mkdirSync','warn','13455864tOnugT','writeFileSync','File','command'];a191_0x1a7a=function(){return _0x5b4dc8;};return a191_0x1a7a();}function a191_0x68a2(_0x35dc88,_0x4f4a9a){_0x35dc88=_0x35dc88-0x164;const _0x1a7a9d=a191_0x1a7a();let _0x68a20=_0x1a7a9d[_0x35dc88];return _0x68a20;}class Logger{[a191_0x107d26(0x16b)];[a191_0x107d26(0x196)];['currentRawCommand']='';constructor(){const _0x3421b2=a191_0x107d26;this[_0x3421b2(0x196)]='';}[a191_0x107d26(0x197)](_0x10aec3){const _0xd601f=a191_0x107d26;this[_0xd601f(0x165)]=_0x10aec3;}[a191_0x107d26(0x192)](){const _0x51303e=a191_0x107d26,_0x22b038=a191_0x1d7a73[_0x51303e(0x19e)](this['logFilePath']);!a191_0xa0d2bb[_0x51303e(0x16c)](_0x22b038)&&a191_0xa0d2bb[_0x51303e(0x186)](_0x22b038,{'recursive':!![]});const _0x1fa829=a191_0x1ed4c7[_0x51303e(0x184)][_0x51303e(0x17b)](a191_0x1ed4c7[_0x51303e(0x184)][_0x51303e(0x185)](),a191_0x1ed4c7[_0x51303e(0x184)][_0x51303e(0x175)]({'stack':!![]}),a191_0x1ed4c7[_0x51303e(0x184)][_0x51303e(0x177)](_0x4012f3=>{const _0x3681c3=_0x51303e,_0x109555={'timestamp':_0x4012f3[_0x3681c3(0x185)]||new Date()[_0x3681c3(0x166)](),'level':_0x4012f3['level']||'info','command':_0x4012f3[_0x3681c3(0x18b)]||_0x3681c3(0x171),'rawCommand':_0x4012f3['rawCommand']||this['currentRawCommand']||undefined,'message':_0x4012f3[_0x3681c3(0x17c)]||'','duration':_0x4012f3[_0x3681c3(0x199)]||undefined,'details':_0x4012f3[_0x3681c3(0x19c)]||undefined};return JSON[_0x3681c3(0x16e)](_0x109555);}));this['winstonLogger']=a191_0x1ed4c7['createLogger']({'level':_0x51303e(0x191),'format':_0x1fa829,'transports':[new a191_0x1ed4c7[(_0x51303e(0x195))][(_0x51303e(0x18a))]({'filename':this[_0x51303e(0x196)],'level':_0x51303e(0x191)})],'silent':![]}),a191_0x1ed4c7['addColors']({'success':_0x51303e(0x16f),'error':_0x51303e(0x174),'warn':_0x51303e(0x18e),'info':_0x51303e(0x17e)});}[a191_0x107d26(0x198)](_0x40b6f5){const _0x34b26c=a191_0x107d26;this[_0x34b26c(0x196)]=a191_0x1d7a73[_0x34b26c(0x178)](_0x40b6f5,_0x34b26c(0x170)),this[_0x34b26c(0x16b)]&&this[_0x34b26c(0x16b)]['clear'](),this['initWinstonLogger']();}[a191_0x107d26(0x191)](_0x560719,_0x20d104,_0x1399ad){const _0x2735ff=a191_0x107d26;if(!this[_0x2735ff(0x196)]||!this[_0x2735ff(0x16b)])return;this['winstonLogger'][_0x2735ff(0x191)](_0x20d104,{'command':_0x560719,'details':_0x1399ad});}['success'](_0x14607a,_0xcd02d2,_0x39dcdb,_0x3358f0){const _0x4fab88=a191_0x107d26;if(!this[_0x4fab88(0x196)]||!this[_0x4fab88(0x16b)])return;this[_0x4fab88(0x16b)]['log'](_0x4fab88(0x191),_0xcd02d2,{'level':_0x4fab88(0x179),'command':_0x14607a,'duration':_0x39dcdb,'details':_0x3358f0});}['error'](_0x1e7d1e,_0x1f5034,_0x5c3b4d){const _0x4a21d8=a191_0x107d26;if(!this[_0x4a21d8(0x196)]||!this[_0x4a21d8(0x16b)])return;this[_0x4a21d8(0x16b)]['error'](_0x1f5034,{'command':_0x1e7d1e,'details':_0x5c3b4d});}[a191_0x107d26(0x187)](_0x31361f,_0x58353c,_0x4d81cf){const _0x4ab608=a191_0x107d26;if(!this['logFilePath']||!this[_0x4ab608(0x16b)])return;this[_0x4ab608(0x16b)]['warn'](_0x58353c,{'command':_0x31361f,'details':_0x4d81cf});}async[a191_0x107d26(0x167)](_0x5311ac,_0x10e978,_0x5730e2){const _0x564bb1=a191_0x107d26,_0x26da59=Date[_0x564bb1(0x181)]();this['info'](_0x5311ac,'开始执行:\x20'+_0x10e978);try{const _0x38df75=await _0x5730e2(),_0x52c693=Date[_0x564bb1(0x181)]()-_0x26da59;return this[_0x564bb1(0x179)](_0x5311ac,_0x564bb1(0x182)+_0x10e978,_0x52c693),_0x38df75;}catch(_0x17cd38){const _0x5d3269=Date[_0x564bb1(0x181)]()-_0x26da59;this[_0x564bb1(0x180)](_0x5311ac,_0x564bb1(0x168)+_0x10e978,{'error':_0x17cd38 instanceof Error?_0x17cd38[_0x564bb1(0x17c)]:String(_0x17cd38),'duration':_0x5d3269});throw _0x17cd38;}}['readLogs'](){const _0xc49e71=a191_0x107d26;try{if(!a191_0xa0d2bb['existsSync'](this[_0xc49e71(0x196)]))return[];const _0x469b57=a191_0xa0d2bb[_0xc49e71(0x19a)](this[_0xc49e71(0x196)],_0xc49e71(0x18f));return _0x469b57[_0xc49e71(0x176)]('\x0a')[_0xc49e71(0x193)](_0x54c74e=>_0x54c74e[_0xc49e71(0x16a)]())[_0xc49e71(0x172)](_0x458d75=>JSON[_0xc49e71(0x164)](_0x458d75));}catch(_0x257154){return console['warn'](_0xc49e71(0x169),_0x257154),[];}}[a191_0x107d26(0x17a)](){const _0x47e19d=a191_0x107d26;try{a191_0xa0d2bb[_0x47e19d(0x16c)](this[_0x47e19d(0x196)])&&a191_0xa0d2bb[_0x47e19d(0x189)](this[_0x47e19d(0x196)],'',_0x47e19d(0x18f));}catch(_0x2ec3d7){console[_0x47e19d(0x187)](_0x47e19d(0x190),_0x2ec3d7);}}[a191_0x107d26(0x18c)](){return this['winstonLogger'];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x30a518,_0x15c21b){const _0x59ea6b=a192_0x1abf,_0x55340f=_0x30a518();while(!![]){try{const _0x312ed2=parseInt(_0x59ea6b(0x190))/0x1+parseInt(_0x59ea6b(0x18d))/0x2+parseInt(_0x59ea6b(0x18c))/0x3+parseInt(_0x59ea6b(0x188))/0x4*(-parseInt(_0x59ea6b(0x195))/0x5)+-parseInt(_0x59ea6b(0x18a))/0x6+parseInt(_0x59ea6b(0x191))/0x7*(-parseInt(_0x59ea6b(0x187))/0x8)+parseInt(_0x59ea6b(0x186))/0x9*(-parseInt(_0x59ea6b(0x18e))/0xa);if(_0x312ed2===_0x15c21b)break;else _0x55340f['push'](_0x55340f['shift']());}catch(_0x4f6483){_0x55340f['push'](_0x55340f['shift']());}}}(a192_0x24e2,0xe4bda));import{CliErrors}from'../errors.js';function a192_0x1abf(_0x3fe6a1,_0x4d7c83){_0x3fe6a1=_0x3fe6a1-0x186;const _0x24e2cf=a192_0x24e2();let _0x1abf1d=_0x24e2cf[_0x3fe6a1];return _0x1abf1d;}function a192_0x24e2(){const _0x4d70d9=['Invalid\x20JSON\x20for\x20--params:\x20','validation','--params\x20must\x20be\x20a\x20JSON\x20object','270XySIfS','891792fatgTs','64NwsoeE','28216WFkeiW','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','7812396ottdQF','isArray','4239174rJdkri','3342018pHREba','10oDyEMs','parse','562845REDBri','811930CLwKqQ'];a192_0x24e2=function(){return _0x4d70d9;};return a192_0x24e2();}export function parseJsonParams(_0x430b1c){const _0x153b1f=a192_0x1abf;if(!_0x430b1c)return undefined;let _0x1d4b47;try{_0x1d4b47=JSON[_0x153b1f(0x18f)](_0x430b1c);}catch{throw CliErrors[_0x153b1f(0x193)](_0x153b1f(0x192)+_0x430b1c);}if(!_0x1d4b47||typeof _0x1d4b47!=='object'||Array[_0x153b1f(0x18b)](_0x1d4b47))throw CliErrors['validation'](_0x153b1f(0x194),_0x153b1f(0x189));return _0x1d4b47;}
1
+ (function(_0x3c11ea,_0x3e41fd){const _0x38ee7b=a192_0x3d5d,_0x141956=_0x3c11ea();while(!![]){try{const _0xb0001c=-parseInt(_0x38ee7b(0x75))/0x1+-parseInt(_0x38ee7b(0x73))/0x2*(-parseInt(_0x38ee7b(0x71))/0x3)+-parseInt(_0x38ee7b(0x74))/0x4+parseInt(_0x38ee7b(0x7c))/0x5+parseInt(_0x38ee7b(0x72))/0x6*(-parseInt(_0x38ee7b(0x7a))/0x7)+parseInt(_0x38ee7b(0x77))/0x8*(parseInt(_0x38ee7b(0x76))/0x9)+parseInt(_0x38ee7b(0x78))/0xa;if(_0xb0001c===_0x3e41fd)break;else _0x141956['push'](_0x141956['shift']());}catch(_0x509ac2){_0x141956['push'](_0x141956['shift']());}}}(a192_0x1db3,0x8d058));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x569385){const _0x2b3b94=a192_0x3d5d;if(!_0x569385)return undefined;let _0x590027;try{_0x590027=JSON[_0x2b3b94(0x7b)](_0x569385);}catch{throw CliErrors['validation']('Invalid\x20JSON\x20for\x20--params:\x20'+_0x569385);}if(!_0x590027||typeof _0x590027!=='object'||Array[_0x2b3b94(0x7d)](_0x590027))throw CliErrors['validation'](_0x2b3b94(0x70),_0x2b3b94(0x79));return _0x590027;}function a192_0x3d5d(_0x1e02dc,_0x53e983){_0x1e02dc=_0x1e02dc-0x70;const _0x1db306=a192_0x1db3();let _0x3d5d05=_0x1db306[_0x1e02dc];return _0x3d5d05;}function a192_0x1db3(){const _0x56f07e=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','411068vwVYlY','parse','2717720BrFaHZ','isArray','--params\x20must\x20be\x20a\x20JSON\x20object','3ULEYhQ','42MKtDFT','686248AqHcvL','3239344RQzEVh','373749llxxeu','48429nALeEZ','904KgmgAB','6775560XXiOlr'];a192_0x1db3=function(){return _0x56f07e;};return a192_0x1db3();}
@@ -1 +1 @@
1
- const a193_0x5e0dd6=a193_0x1af8;function a193_0x1af8(_0x30faf8,_0x55920d){_0x30faf8=_0x30faf8-0x187;const _0x20f392=a193_0x20f3();let _0x1af875=_0x20f392[_0x30faf8];return _0x1af875;}(function(_0x1cf38e,_0x431bca){const _0x4e3d82=a193_0x1af8,_0x47f36a=_0x1cf38e();while(!![]){try{const _0x114797=parseInt(_0x4e3d82(0x18e))/0x1+parseInt(_0x4e3d82(0x190))/0x2*(-parseInt(_0x4e3d82(0x18b))/0x3)+-parseInt(_0x4e3d82(0x18c))/0x4+parseInt(_0x4e3d82(0x189))/0x5+-parseInt(_0x4e3d82(0x187))/0x6*(-parseInt(_0x4e3d82(0x191))/0x7)+parseInt(_0x4e3d82(0x18f))/0x8*(parseInt(_0x4e3d82(0x188))/0x9)+parseInt(_0x4e3d82(0x192))/0xa*(-parseInt(_0x4e3d82(0x18d))/0xb);if(_0x114797===_0x431bca)break;else _0x47f36a['push'](_0x47f36a['shift']());}catch(_0x14df3f){_0x47f36a['push'](_0x47f36a['shift']());}}}(a193_0x20f3,0xf3025));function a193_0x20f3(){const _0xa228ec=['9XgRIaz','8081105totYTT','win32','3IGYbBc','51644ixtEGU','541871hzonnj','1765259ZsHQHC','84296MRYaYf','697406ZRuYAP','7LnKpTz','450WWnADJ','1090242WinLhl'];a193_0x20f3=function(){return _0xa228ec;};return a193_0x20f3();}export const isWindows=process['platform']===a193_0x5e0dd6(0x18a);export function resolveNpmBin(_0xc6b485){return isWindows?_0xc6b485+'.cmd':_0xc6b485;}
1
+ const a193_0x3bc41c=a193_0x48f8;(function(_0x1d88d6,_0xa34e50){const _0x75eae4=a193_0x48f8,_0x115d8c=_0x1d88d6();while(!![]){try{const _0x3b5943=-parseInt(_0x75eae4(0x1d6))/0x1+-parseInt(_0x75eae4(0x1cd))/0x2*(parseInt(_0x75eae4(0x1ce))/0x3)+-parseInt(_0x75eae4(0x1d1))/0x4*(parseInt(_0x75eae4(0x1d5))/0x5)+-parseInt(_0x75eae4(0x1d3))/0x6+-parseInt(_0x75eae4(0x1d0))/0x7*(-parseInt(_0x75eae4(0x1cf))/0x8)+-parseInt(_0x75eae4(0x1ca))/0x9*(parseInt(_0x75eae4(0x1d4))/0xa)+parseInt(_0x75eae4(0x1cb))/0xb*(parseInt(_0x75eae4(0x1d2))/0xc);if(_0x3b5943===_0xa34e50)break;else _0x115d8c['push'](_0x115d8c['shift']());}catch(_0x59fd7d){_0x115d8c['push'](_0x115d8c['shift']());}}}(a193_0x3e7d,0xadf2a));function a193_0x3e7d(){const _0x1e5c13=['platform','2781344LaWBmm','3ZoRPVq','8UnsdAT','2893226VVZZSK','16yBMtWA','12TZxHCS','4053246yyypRF','10fNrGtn','282385LQKAxb','853589mkzUre','win32','11342061suvWsH','51756221bntiFs'];a193_0x3e7d=function(){return _0x1e5c13;};return a193_0x3e7d();}function a193_0x48f8(_0x2a0472,_0x1b5ee4){_0x2a0472=_0x2a0472-0x1ca;const _0x3e7d35=a193_0x3e7d();let _0x48f84a=_0x3e7d35[_0x2a0472];return _0x48f84a;}export const isWindows=process[a193_0x3bc41c(0x1cc)]===a193_0x3bc41c(0x1d7);export function resolveNpmBin(_0x292f39){return isWindows?_0x292f39+'.cmd':_0x292f39;}
@@ -1 +1 @@
1
- const a194_0x50054d=a194_0x2487;(function(_0x36b146,_0x1eaa47){const _0xef2d04=a194_0x2487,_0x2af869=_0x36b146();while(!![]){try{const _0x4b8707=-parseInt(_0xef2d04(0xcc))/0x1*(-parseInt(_0xef2d04(0xcb))/0x2)+-parseInt(_0xef2d04(0xcf))/0x3+-parseInt(_0xef2d04(0xca))/0x4+parseInt(_0xef2d04(0xce))/0x5+parseInt(_0xef2d04(0xbe))/0x6*(parseInt(_0xef2d04(0xd5))/0x7)+parseInt(_0xef2d04(0xd6))/0x8+-parseInt(_0xef2d04(0xd3))/0x9*(parseInt(_0xef2d04(0xc9))/0xa);if(_0x4b8707===_0x1eaa47)break;else _0x2af869['push'](_0x2af869['shift']());}catch(_0x442221){_0x2af869['push'](_0x2af869['shift']());}}}(a194_0x5f3e,0x3ef99));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 a194_0x2487(_0x62b0,_0x3657f1){_0x62b0=_0x62b0-0xbe;const _0x5f3e43=a194_0x5f3e();let _0x248721=_0x5f3e43[_0x62b0];return _0x248721;}function getRulesCdnUrl(){const _0x2f0742=a194_0x2487,_0x3dd296=getTemplateBaseUrl();return _0x3dd296+_0x2f0742(0xd7);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a194_0x50054d(0xc4));function a194_0x5f3e(){const _0x1cbc59=['agents.md','json','content','utf-8','378610WYJkko','1926908UdfwtP','205934HbJJVM','1zFqofP','statusText','248505TKpWLg','609837kuovMi','status','lastUpdated','string','18mQWUTJ','application/json','554855XNkmDf','3757440wkjDnC','/rules/rules.json','catch','30hVWRvM','CDN\x20请求失败:\x20','lovrabet_rules.mdc','本地模板文件不存在:\x20','CDN\x20返回数据格式错误','.cursor/rules','../../templates/rules/lovrabet_rules.mdc.tpl'];a194_0x5f3e=function(){return _0x1cbc59;};return a194_0x5f3e();}export async function fetchRulesFromCDN(){const _0x5b2d92=a194_0x50054d,_0x584acb=getRulesCdnUrl(),_0x3f59f7=await fetch(_0x584acb,{'headers':{'Accept':_0x5b2d92(0xd4)}});if(!_0x3f59f7['ok'])throw new Error(_0x5b2d92(0xbf)+_0x3f59f7[_0x5b2d92(0xd0)]+'\x20'+_0x3f59f7[_0x5b2d92(0xcd)]);const _0x145ae0=await _0x3f59f7[_0x5b2d92(0xc6)]();if(!_0x145ae0[_0x5b2d92(0xc7)]||typeof _0x145ae0['content']!==_0x5b2d92(0xd2))throw new Error(_0x5b2d92(0xc2));return _0x145ae0;}export async function getRulesContent(){const _0x3d627a=a194_0x50054d;try{const _0x2ffb1c=await fetchRulesFromCDN();return _0x2ffb1c[_0x3d627a(0xc7)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x3148e1=a194_0x50054d;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x3148e1(0xc8));throw new Error(_0x3148e1(0xc1)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3824be){const _0x3afeeb=a194_0x50054d,_0x21d221=await fetchRulesFromCDN()[_0x3afeeb(0xd8)](()=>null);let _0xcf218d;_0x21d221?(_0xcf218d=_0x21d221[_0x3afeeb(0xc7)],_0x21d221[_0x3afeeb(0xd1)]&&(_0xcf218d=appendUpdateTime(_0xcf218d,_0x21d221[_0x3afeeb(0xd1)]))):_0xcf218d=readLocalTemplate();const _0x39a96a=dirname(_0x3824be);!existsSync(_0x39a96a)&&mkdirSync(_0x39a96a,{'recursive':!![]}),writeFileSync(_0x3824be,_0xcf218d,_0x3afeeb(0xc8));}export async function copyRulesToCursor(_0x1c117f){const _0x215d5e=a194_0x50054d,_0x558dcb=join(_0x1c117f,_0x215d5e(0xc3)),_0x4b83f2=join(_0x558dcb,_0x215d5e(0xc0));if(existsSync(_0x4b83f2))return![];return await writeRulesFile(_0x4b83f2),!![];}export async function copyRulesToAgentsMd(_0x264def){const _0x30111d=a194_0x50054d,_0x4b7d9b=join(_0x264def,_0x30111d(0xc5));if(existsSync(_0x4b7d9b))return![];return await writeRulesFile(_0x4b7d9b),!![];}
1
+ (function(_0x539119,_0x32e711){const _0x1c1c31=a194_0x5195,_0x513029=_0x539119();while(!![]){try{const _0x49320b=parseInt(_0x1c1c31(0x1e3))/0x1*(parseInt(_0x1c1c31(0x1ea))/0x2)+-parseInt(_0x1c1c31(0x1e0))/0x3*(-parseInt(_0x1c1c31(0x1e6))/0x4)+-parseInt(_0x1c1c31(0x1ee))/0x5+-parseInt(_0x1c1c31(0x1e2))/0x6*(parseInt(_0x1c1c31(0x1eb))/0x7)+parseInt(_0x1c1c31(0x1e4))/0x8+parseInt(_0x1c1c31(0x1ec))/0x9*(-parseInt(_0x1c1c31(0x1f4))/0xa)+parseInt(_0x1c1c31(0x1ef))/0xb;if(_0x49320b===_0x32e711)break;else _0x513029['push'](_0x513029['shift']());}catch(_0x3e4c39){_0x513029['push'](_0x513029['shift']());}}}(a194_0x3b94,0xde27b));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';function a194_0x5195(_0x3898fc,_0x5a9af0){_0x3898fc=_0x3898fc-0x1df;const _0x3b9490=a194_0x3b94();let _0x5195e5=_0x3b9490[_0x3898fc];return _0x5195e5;}function a194_0x3b94(){const _0x4dba9d=['9203672DERnGN','lovrabet_rules.mdc','4tuwXpK','json','utf-8','本地模板文件不存在:\x20','2rSHlFr','52262xsEEbH','225BGEAdW','application/json','1202970dnHBfM','12071675QpImxr','lastUpdated','catch','CDN\x20请求失败:\x20','agents.md','504950NOUZUu','.cursor/rules','status','2519835LdghFY','content','618eurtRT','94085QtHxoQ'];a194_0x3b94=function(){return _0x4dba9d;};return a194_0x3b94();}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x29b8b8=getTemplateBaseUrl();return _0x29b8b8+'/rules/rules.json';}const LOCAL_TEMPLATE_PATH=resolve(__dirname,'../../templates/rules/lovrabet_rules.mdc.tpl');export async function fetchRulesFromCDN(){const _0x4fed5d=a194_0x5195,_0x229dfa=getRulesCdnUrl(),_0x2b4366=await fetch(_0x229dfa,{'headers':{'Accept':_0x4fed5d(0x1ed)}});if(!_0x2b4366['ok'])throw new Error(_0x4fed5d(0x1f2)+_0x2b4366[_0x4fed5d(0x1df)]+'\x20'+_0x2b4366['statusText']);const _0x3b8871=await _0x2b4366[_0x4fed5d(0x1e7)]();if(!_0x3b8871['content']||typeof _0x3b8871[_0x4fed5d(0x1e1)]!=='string')throw new Error('CDN\x20返回数据格式错误');return _0x3b8871;}export async function getRulesContent(){const _0x1478fc=a194_0x5195;try{const _0x332160=await fetchRulesFromCDN();return _0x332160[_0x1478fc(0x1e1)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2e674d=a194_0x5195;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2e674d(0x1e8));throw new Error(_0x2e674d(0x1e9)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x3d646f){const _0x15a158=a194_0x5195,_0x9f7877=await fetchRulesFromCDN()[_0x15a158(0x1f1)](()=>null);let _0x3ac215;_0x9f7877?(_0x3ac215=_0x9f7877[_0x15a158(0x1e1)],_0x9f7877[_0x15a158(0x1f0)]&&(_0x3ac215=appendUpdateTime(_0x3ac215,_0x9f7877[_0x15a158(0x1f0)]))):_0x3ac215=readLocalTemplate();const _0xdfb2e4=dirname(_0x3d646f);!existsSync(_0xdfb2e4)&&mkdirSync(_0xdfb2e4,{'recursive':!![]}),writeFileSync(_0x3d646f,_0x3ac215,_0x15a158(0x1e8));}export async function copyRulesToCursor(_0x316788){const _0x2bf457=a194_0x5195,_0x4f11ff=join(_0x316788,_0x2bf457(0x1f5)),_0x3d5779=join(_0x4f11ff,_0x2bf457(0x1e5));if(existsSync(_0x3d5779))return![];return await writeRulesFile(_0x3d5779),!![];}export async function copyRulesToAgentsMd(_0x56fb7a){const _0x15d3ca=a194_0x5195,_0x46d5b5=join(_0x56fb7a,_0x15d3ca(0x1f3));if(existsSync(_0x46d5b5))return![];return await writeRulesFile(_0x46d5b5),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2d1d72){return new Promise(_0x2d3f09=>setTimeout(_0x2d3f09,_0x2d1d72));}
1
+ export function sleep(_0x119bc1){return new Promise(_0x2da579=>setTimeout(_0x2da579,_0x119bc1));}
@@ -1 +1 @@
1
- function a196_0xddc8(_0x8a31f8,_0x3a771f){_0x8a31f8=_0x8a31f8-0x1a3;const _0x51855a=a196_0x5185();let _0xddc8e5=_0x51855a[_0x8a31f8];return _0xddc8e5;}const a196_0x3f0d89=a196_0xddc8;(function(_0x529c5c,_0x536233){const _0x2fc625=a196_0xddc8,_0x106b40=_0x529c5c();while(!![]){try{const _0x1e64cb=parseInt(_0x2fc625(0x1b6))/0x1+parseInt(_0x2fc625(0x1d6))/0x2*(parseInt(_0x2fc625(0x1cb))/0x3)+-parseInt(_0x2fc625(0x1bd))/0x4*(-parseInt(_0x2fc625(0x1a3))/0x5)+-parseInt(_0x2fc625(0x1c8))/0x6*(parseInt(_0x2fc625(0x1cc))/0x7)+parseInt(_0x2fc625(0x1da))/0x8*(parseInt(_0x2fc625(0x1b3))/0x9)+-parseInt(_0x2fc625(0x1d5))/0xa+parseInt(_0x2fc625(0x1af))/0xb;if(_0x1e64cb===_0x536233)break;else _0x106b40['push'](_0x106b40['shift']());}catch(_0x558e44){_0x106b40['push'](_0x106b40['shift']());}}}(a196_0x5185,0xca2e4));import a196_0x364c02 from'node:fs';import a196_0x1b9321 from'node:path';import{logger}from'../utils/logger.js';function a196_0x5185(){const _0x28b543=['alias','.tsx','processDirectory','tableName:\x20\x22','LOVRABET','toLowerCase','push','split','getMinutes','开始处理模板内容替换','.json','56935byYlYd','toISOString','toComponentName','replace','success','模板内容替换失败','charAt','replaceContent','formatLocalTimestamp','getDate','getFullYear','datasetCode','7895140zVHLhp','toUpperCase','isDirectory','padStart','135IlUaBE','pop','extname','30696tAkZIZ','slice','readdir','now','isFile','utf8','.js','440LKfiqM','processFile','info','name:\x20\x22','.tpl','join','.ts','map','mkdir','datasetCode:\x20\x22','.css','60LbBSTU','.scss','模板内容替换完成','319734eGrZmd','980966cLUSQe','endsWith','replaceApiContent','default','name','processTemplate','pad','promises','template','9086170jEXgjg','2UHYRHC','toDisplayTitle','message','.md','549624IaBTVg','YourModel','getMonth','copyFile'];a196_0x5185=function(){return _0x28b543;};return a196_0x5185();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x3f0d89(0x1d2)](_0x2ba811){const _0x475203=a196_0x3f0d89;return String(_0x2ba811)[_0x475203(0x1b2)](0x2,'0');}static[a196_0x3f0d89(0x1ab)](_0x33a1b1){const _0x385138=a196_0x3f0d89,_0xb9611a=_0x33a1b1[_0x385138(0x1ad)](),_0x31c896=this['pad'](_0x33a1b1[_0x385138(0x1dc)]()+0x1),_0x2419d3=this[_0x385138(0x1d2)](_0x33a1b1[_0x385138(0x1ac)]()),_0x172cd0=this[_0x385138(0x1d2)](_0x33a1b1['getHours']()),_0x10a1b1=this[_0x385138(0x1d2)](_0x33a1b1[_0x385138(0x1e6)]()),_0x36df63=this[_0x385138(0x1d2)](_0x33a1b1['getSeconds']());return{'createdAt':_0xb9611a+'-'+_0x31c896+'-'+_0x2419d3+'\x20'+_0x172cd0+':'+_0x10a1b1+':'+_0x36df63,'createdDate':_0xb9611a+'-'+_0x31c896+'-'+_0x2419d3,'createdTime':_0x172cd0+':'+_0x10a1b1+':'+_0x36df63};}static[a196_0x3f0d89(0x1a5)](_0x2a54af){const _0x1f65e1=a196_0x3f0d89,_0xebcda2=_0x2a54af[_0x1f65e1(0x1e5)]('/')['pop']()||_0x2a54af;return _0xebcda2[_0x1f65e1(0x1e5)]('-')[_0x1f65e1(0x1c4)](_0x2b3ff3=>_0x2b3ff3[_0x1f65e1(0x1a9)](0x0)['toUpperCase']()+_0x2b3ff3[_0x1f65e1(0x1b7)](0x1)[_0x1f65e1(0x1e3)]())[_0x1f65e1(0x1c2)]('');}static[a196_0x3f0d89(0x1d7)](_0x81ea76){const _0xa2a84e=a196_0x3f0d89,_0x5817eb=_0x81ea76[_0xa2a84e(0x1e5)]('/')[_0xa2a84e(0x1b4)]()||_0x81ea76;return _0x5817eb['split']('-')[_0xa2a84e(0x1c4)](_0x268dcc=>_0x268dcc[_0xa2a84e(0x1a9)](0x0)[_0xa2a84e(0x1b0)]()+_0x268dcc[_0xa2a84e(0x1b7)](0x1)[_0xa2a84e(0x1e3)]())['join']('\x20');}static['replaceContent'](_0x675fe,_0x50bd64,_0x16a69c){const _0x2a27c3=a196_0x3f0d89,_0x4de70d=this[_0x2a27c3(0x1a5)](_0x50bd64),_0x508aa7=this['toDisplayTitle'](_0x50bd64),{createdAt:_0x3b1a00,createdDate:_0x4036bb,createdTime:_0x354c7e}=this['formatLocalTimestamp'](new Date());let _0x2086b7=_0x675fe['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x4de70d)[_0x2a27c3(0x1a6)](/\{DisplayTitle\}/g,_0x508aa7)['replace'](/\{PageName\}/g,_0x50bd64)[_0x2a27c3(0x1a6)](/\{TemplateName\}/g,_0x16a69c)['replace'](/\{CreatedAt\}/g,_0x3b1a00)['replace'](/\{CreatedDate\}/g,_0x4036bb)[_0x2a27c3(0x1a6)](/\{CreatedTime\}/g,_0x354c7e);return _0x2086b7;}static[a196_0x3f0d89(0x1ce)](_0x53d19c,_0x1b8ea1,_0x56be7f,_0x42fc40,_0x35d878,_0x184e7a,_0x2cdfaf,_0x4ac694){const _0x34131f=a196_0x3f0d89,_0x65fe3d=new Date(),_0x19cb64=_0x65fe3d[_0x34131f(0x1a4)](),_0x29c8e0=_0x56be7f[_0x34131f(0x1c4)](_0x510674=>{const _0x591c07=_0x34131f,_0x1ab054=[_0x591c07(0x1c6)+_0x510674[_0x591c07(0x1ae)]+'\x22',_0x591c07(0x1e1)+_0x510674['tableName']+'\x22',_0x591c07(0x1c0)+_0x510674['name']+'\x22'];return _0x510674[_0x591c07(0x1de)]&&_0x1ab054[_0x591c07(0x1e4)]('alias:\x20\x22'+_0x510674[_0x591c07(0x1de)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x1ab054[_0x591c07(0x1c2)](',\x20')+'\x20},';})[_0x34131f(0x1c2)](''),_0x6594d8=_0x42fc40||_0x56be7f[0x0]?.[_0x34131f(0x1de)]||_0x34131f(0x1db);let _0x5b411f=_0x53d19c[_0x34131f(0x1a6)](/\{AppCode\}/g,_0x1b8ea1)[_0x34131f(0x1a6)](/\{ModelConfigs\}/g,_0x29c8e0)['replace'](/\{ExampleModelName\}/g,_0x6594d8)[_0x34131f(0x1a6)](/\{ApiFileName\}/g,_0x35d878||'api')[_0x34131f(0x1a6)](/\{ConfigName\}/g,_0x184e7a||_0x34131f(0x1cf))[_0x34131f(0x1a6)](/\{ClientConfigParam\}/g,_0x2cdfaf||'')['replace'](/\{VarPrefix\}/g,_0x4ac694||_0x34131f(0x1e2))[_0x34131f(0x1a6)](/\{CreatedAt\}/g,_0x19cb64);return _0x5b411f;}static async[a196_0x3f0d89(0x1d1)](_0x8e0cd8,_0x541853,_0x2ece4d,_0x18f0a5,_0x87fbc7=!![]){const _0x4f9ffd=a196_0x3f0d89,_0x1a58f9=Date[_0x4f9ffd(0x1b9)]();try{_0x87fbc7&&logger[_0x4f9ffd(0x1bf)]('template',_0x4f9ffd(0x1e7),{'templatePath':_0x8e0cd8,'targetPath':_0x541853,'pageName':_0x2ece4d,'templateName':_0x18f0a5});await a196_0x364c02['promises'][_0x4f9ffd(0x1c5)](_0x541853,{'recursive':!![]}),await this[_0x4f9ffd(0x1e0)](_0x8e0cd8,_0x541853,_0x2ece4d,_0x18f0a5);if(_0x87fbc7){const _0x375db6=Date['now']()-_0x1a58f9;logger[_0x4f9ffd(0x1a7)](_0x4f9ffd(0x1d4),_0x4f9ffd(0x1ca),_0x375db6,{'pageName':_0x2ece4d,'templateName':_0x18f0a5});}}catch(_0x1a1569){if(_0x87fbc7){const _0x45ff22=Date['now']()-_0x1a58f9;logger['error'](_0x4f9ffd(0x1d4),_0x4f9ffd(0x1a8),{'templatePath':_0x8e0cd8,'targetPath':_0x541853,'pageName':_0x2ece4d,'templateName':_0x18f0a5,'error':_0x1a1569 instanceof Error?_0x1a1569[_0x4f9ffd(0x1d8)]:String(_0x1a1569),'duration':_0x45ff22});}throw _0x1a1569;}}static async[a196_0x3f0d89(0x1e0)](_0x3c46b4,_0x4d6c4d,_0x157c69,_0x3ffb50){const _0xeb2723=a196_0x3f0d89,_0x2300d3=await a196_0x364c02[_0xeb2723(0x1d3)][_0xeb2723(0x1b8)](_0x3c46b4,{'withFileTypes':!![]});for(const _0x245b4b of _0x2300d3){const _0x1cb2a6=a196_0x1b9321[_0xeb2723(0x1c2)](_0x3c46b4,_0x245b4b[_0xeb2723(0x1d0)]);let _0x15c220=a196_0x1b9321[_0xeb2723(0x1c2)](_0x4d6c4d,_0x245b4b[_0xeb2723(0x1d0)]);_0x245b4b['name'][_0xeb2723(0x1cd)](_0xeb2723(0x1c1))&&(_0x15c220=a196_0x1b9321[_0xeb2723(0x1c2)](_0x4d6c4d,_0x245b4b[_0xeb2723(0x1d0)]['replace'](/\.tpl$/,'')));if(_0x245b4b[_0xeb2723(0x1b1)]())await a196_0x364c02['promises'][_0xeb2723(0x1c5)](_0x15c220,{'recursive':!![]}),await this['processDirectory'](_0x1cb2a6,_0x15c220,_0x157c69,_0x3ffb50);else _0x245b4b[_0xeb2723(0x1ba)]()&&await this['processFile'](_0x1cb2a6,_0x15c220,_0x157c69,_0x3ffb50);}}static async[a196_0x3f0d89(0x1be)](_0x5120e0,_0x363e61,_0x2451b7,_0x43a9c1){const _0x39b5d9=a196_0x3f0d89,_0x567e59=a196_0x1b9321[_0x39b5d9(0x1b5)](_0x5120e0)['toLowerCase']();_0x5120e0[_0x39b5d9(0x1cd)]('.tpl')&&(_0x363e61=_0x363e61['replace'](/\.tpl$/,''));const _0x121213=[_0x39b5d9(0x1df),_0x39b5d9(0x1c3),'.jsx',_0x39b5d9(0x1bc),_0x39b5d9(0x1e8),_0x39b5d9(0x1d9),_0x39b5d9(0x1c7),_0x39b5d9(0x1c9),_0x39b5d9(0x1c1)];if(_0x121213['includes'](_0x567e59)||_0x5120e0[_0x39b5d9(0x1cd)]('.tpl')){const _0x5490ce=await a196_0x364c02[_0x39b5d9(0x1d3)]['readFile'](_0x5120e0,_0x39b5d9(0x1bb)),_0x2b33ba=this[_0x39b5d9(0x1aa)](_0x5490ce,_0x2451b7,_0x43a9c1);await a196_0x364c02[_0x39b5d9(0x1d3)]['writeFile'](_0x363e61,_0x2b33ba,'utf8');}else await a196_0x364c02['promises'][_0x39b5d9(0x1dd)](_0x5120e0,_0x363e61);}}
1
+ const a196_0x54247e=a196_0x21ba;function a196_0x21ba(_0x6018a5,_0x5dd8b5){_0x6018a5=_0x6018a5-0x1c9;const _0x5867a2=a196_0x5867();let _0x21ba16=_0x5867a2[_0x6018a5];return _0x21ba16;}(function(_0x1986e6,_0x440439){const _0x3668c7=a196_0x21ba,_0x5b84c7=_0x1986e6();while(!![]){try{const _0x494dd3=parseInt(_0x3668c7(0x1e5))/0x1+-parseInt(_0x3668c7(0x1f2))/0x2+parseInt(_0x3668c7(0x1f9))/0x3*(-parseInt(_0x3668c7(0x204))/0x4)+parseInt(_0x3668c7(0x1e6))/0x5+-parseInt(_0x3668c7(0x1f0))/0x6*(parseInt(_0x3668c7(0x1d8))/0x7)+-parseInt(_0x3668c7(0x205))/0x8*(parseInt(_0x3668c7(0x1de))/0x9)+-parseInt(_0x3668c7(0x1e3))/0xa*(-parseInt(_0x3668c7(0x208))/0xb);if(_0x494dd3===_0x440439)break;else _0x5b84c7['push'](_0x5b84c7['shift']());}catch(_0x574740){_0x5b84c7['push'](_0x5b84c7['shift']());}}}(a196_0x5867,0x890ae));import a196_0x4c3609 from'node:fs';import a196_0x299c6e from'node:path';function a196_0x5867(){const _0x31f17e=['toDisplayTitle','892266BEtoKx','模板内容替换失败','820774GrftSh','.jsx','processFile','\x0a\x20\x20\x20\x20{\x20','name:\x20\x22','now','default','14037HcCXEu','info','utf8','replaceContent','map','getFullYear','formatLocalTimestamp','.ts','slice','.tsx','extname','12XZeHpF','316392cHsTxe','endsWith','pop','308hGKFqN','tableName:\x20\x22','processDirectory','error','join','readFile','template','promises','replace','alias','mkdir','copyFile','toUpperCase','pad','开始处理模板内容替换','.md','toComponentName','getMonth','split','getDate','charAt','api','.tpl','42WrNJwI','datasetCode:\x20\x22','LOVRABET','.scss','alias:\x20\x22','getSeconds','108MgJgyF','includes','getHours','success','datasetCode','624830JZTUEY','name','578134KNnoiQ','124730wefFYG','.json','tableName','.js','toLowerCase','模板内容替换完成','toISOString','isFile','message'];a196_0x5867=function(){return _0x31f17e;};return a196_0x5867();}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a196_0x54247e(0x1ce)](_0x31dc59){return String(_0x31dc59)['padStart'](0x2,'0');}static[a196_0x54247e(0x1ff)](_0x5ca821){const _0x29d206=a196_0x54247e,_0xdc16c0=_0x5ca821[_0x29d206(0x1fe)](),_0x5a5ef2=this[_0x29d206(0x1ce)](_0x5ca821[_0x29d206(0x1d2)]()+0x1),_0xfece04=this[_0x29d206(0x1ce)](_0x5ca821[_0x29d206(0x1d4)]()),_0x50a8ed=this[_0x29d206(0x1ce)](_0x5ca821[_0x29d206(0x1e0)]()),_0x4c3cb1=this['pad'](_0x5ca821['getMinutes']()),_0x1596be=this[_0x29d206(0x1ce)](_0x5ca821[_0x29d206(0x1dd)]());return{'createdAt':_0xdc16c0+'-'+_0x5a5ef2+'-'+_0xfece04+'\x20'+_0x50a8ed+':'+_0x4c3cb1+':'+_0x1596be,'createdDate':_0xdc16c0+'-'+_0x5a5ef2+'-'+_0xfece04,'createdTime':_0x50a8ed+':'+_0x4c3cb1+':'+_0x1596be};}static[a196_0x54247e(0x1d1)](_0x560eb7){const _0x2f4cd9=a196_0x54247e,_0x50cc7b=_0x560eb7[_0x2f4cd9(0x1d3)]('/')[_0x2f4cd9(0x207)]()||_0x560eb7;return _0x50cc7b[_0x2f4cd9(0x1d3)]('-')[_0x2f4cd9(0x1fd)](_0x45be5e=>_0x45be5e[_0x2f4cd9(0x1d5)](0x0)[_0x2f4cd9(0x1cd)]()+_0x45be5e[_0x2f4cd9(0x201)](0x1)[_0x2f4cd9(0x1ea)]())[_0x2f4cd9(0x20c)]('');}static['toDisplayTitle'](_0x5069c4){const _0x1e48fd=a196_0x54247e,_0x57b13c=_0x5069c4[_0x1e48fd(0x1d3)]('/')[_0x1e48fd(0x207)]()||_0x5069c4;return _0x57b13c[_0x1e48fd(0x1d3)]('-')['map'](_0x4c67b8=>_0x4c67b8[_0x1e48fd(0x1d5)](0x0)[_0x1e48fd(0x1cd)]()+_0x4c67b8['slice'](0x1)[_0x1e48fd(0x1ea)]())[_0x1e48fd(0x20c)]('\x20');}static[a196_0x54247e(0x1fc)](_0x430f46,_0x567327,_0x1bd891){const _0x50dcbb=a196_0x54247e,_0x3df76a=this[_0x50dcbb(0x1d1)](_0x567327),_0x2e1b43=this[_0x50dcbb(0x1ef)](_0x567327),{createdAt:_0xf7d24f,createdDate:_0x444b86,createdTime:_0x332c95}=this['formatLocalTimestamp'](new Date());let _0x3319ca=_0x430f46[_0x50dcbb(0x1c9)](/\{CliVersion\}/g,CLI_VERSION)[_0x50dcbb(0x1c9)](/\{ComponentName\}/g,_0x3df76a)[_0x50dcbb(0x1c9)](/\{DisplayTitle\}/g,_0x2e1b43)['replace'](/\{PageName\}/g,_0x567327)[_0x50dcbb(0x1c9)](/\{TemplateName\}/g,_0x1bd891)['replace'](/\{CreatedAt\}/g,_0xf7d24f)[_0x50dcbb(0x1c9)](/\{CreatedDate\}/g,_0x444b86)[_0x50dcbb(0x1c9)](/\{CreatedTime\}/g,_0x332c95);return _0x3319ca;}static['replaceApiContent'](_0x51430d,_0x3ca550,_0x15096a,_0x1c0672,_0x268926,_0x2b3eec,_0x453f62,_0x21de11){const _0x10ed4e=a196_0x54247e,_0x1d1098=new Date(),_0x3b43ac=_0x1d1098[_0x10ed4e(0x1ec)](),_0x43bfe8=_0x15096a[_0x10ed4e(0x1fd)](_0x1a6ee5=>{const _0x14dfad=_0x10ed4e,_0xd941a6=[_0x14dfad(0x1d9)+_0x1a6ee5[_0x14dfad(0x1e2)]+'\x22',_0x14dfad(0x209)+_0x1a6ee5[_0x14dfad(0x1e8)]+'\x22',_0x14dfad(0x1f6)+_0x1a6ee5[_0x14dfad(0x1e4)]+'\x22'];return _0x1a6ee5[_0x14dfad(0x1ca)]&&_0xd941a6['push'](_0x14dfad(0x1dc)+_0x1a6ee5['alias']+'\x22'),_0x14dfad(0x1f5)+_0xd941a6[_0x14dfad(0x20c)](',\x20')+'\x20},';})[_0x10ed4e(0x20c)](''),_0x3e2312=_0x1c0672||_0x15096a[0x0]?.[_0x10ed4e(0x1ca)]||'YourModel';let _0xed5336=_0x51430d[_0x10ed4e(0x1c9)](/\{AppCode\}/g,_0x3ca550)[_0x10ed4e(0x1c9)](/\{ModelConfigs\}/g,_0x43bfe8)['replace'](/\{ExampleModelName\}/g,_0x3e2312)[_0x10ed4e(0x1c9)](/\{ApiFileName\}/g,_0x268926||_0x10ed4e(0x1d6))[_0x10ed4e(0x1c9)](/\{ConfigName\}/g,_0x2b3eec||_0x10ed4e(0x1f8))[_0x10ed4e(0x1c9)](/\{ClientConfigParam\}/g,_0x453f62||'')['replace'](/\{VarPrefix\}/g,_0x21de11||_0x10ed4e(0x1da))[_0x10ed4e(0x1c9)](/\{CreatedAt\}/g,_0x3b43ac);return _0xed5336;}static async['processTemplate'](_0x2b4ad2,_0x16e4a7,_0x1961e0,_0x423760,_0x436820=!![]){const _0xc2d5ff=a196_0x54247e,_0x4c412d=Date[_0xc2d5ff(0x1f7)]();try{_0x436820&&logger[_0xc2d5ff(0x1fa)](_0xc2d5ff(0x20e),_0xc2d5ff(0x1cf),{'templatePath':_0x2b4ad2,'targetPath':_0x16e4a7,'pageName':_0x1961e0,'templateName':_0x423760});await a196_0x4c3609[_0xc2d5ff(0x20f)]['mkdir'](_0x16e4a7,{'recursive':!![]}),await this[_0xc2d5ff(0x20a)](_0x2b4ad2,_0x16e4a7,_0x1961e0,_0x423760);if(_0x436820){const _0x431e9c=Date['now']()-_0x4c412d;logger[_0xc2d5ff(0x1e1)](_0xc2d5ff(0x20e),_0xc2d5ff(0x1eb),_0x431e9c,{'pageName':_0x1961e0,'templateName':_0x423760});}}catch(_0x346f56){if(_0x436820){const _0x4745c0=Date['now']()-_0x4c412d;logger[_0xc2d5ff(0x20b)](_0xc2d5ff(0x20e),_0xc2d5ff(0x1f1),{'templatePath':_0x2b4ad2,'targetPath':_0x16e4a7,'pageName':_0x1961e0,'templateName':_0x423760,'error':_0x346f56 instanceof Error?_0x346f56[_0xc2d5ff(0x1ee)]:String(_0x346f56),'duration':_0x4745c0});}throw _0x346f56;}}static async[a196_0x54247e(0x20a)](_0x26917c,_0x30797b,_0x5d6e71,_0x6f5cf1){const _0x137eb1=a196_0x54247e,_0x5c2b2b=await a196_0x4c3609[_0x137eb1(0x20f)]['readdir'](_0x26917c,{'withFileTypes':!![]});for(const _0x433459 of _0x5c2b2b){const _0x32c39e=a196_0x299c6e[_0x137eb1(0x20c)](_0x26917c,_0x433459[_0x137eb1(0x1e4)]);let _0x5787a5=a196_0x299c6e[_0x137eb1(0x20c)](_0x30797b,_0x433459[_0x137eb1(0x1e4)]);_0x433459[_0x137eb1(0x1e4)][_0x137eb1(0x206)](_0x137eb1(0x1d7))&&(_0x5787a5=a196_0x299c6e['join'](_0x30797b,_0x433459[_0x137eb1(0x1e4)][_0x137eb1(0x1c9)](/\.tpl$/,'')));if(_0x433459['isDirectory']())await a196_0x4c3609[_0x137eb1(0x20f)][_0x137eb1(0x1cb)](_0x5787a5,{'recursive':!![]}),await this[_0x137eb1(0x20a)](_0x32c39e,_0x5787a5,_0x5d6e71,_0x6f5cf1);else _0x433459[_0x137eb1(0x1ed)]()&&await this['processFile'](_0x32c39e,_0x5787a5,_0x5d6e71,_0x6f5cf1);}}static async[a196_0x54247e(0x1f4)](_0x27dfcd,_0x3c6022,_0x5c7947,_0x3b4a03){const _0x9a5e3f=a196_0x54247e,_0x25a79d=a196_0x299c6e[_0x9a5e3f(0x203)](_0x27dfcd)[_0x9a5e3f(0x1ea)]();_0x27dfcd[_0x9a5e3f(0x206)](_0x9a5e3f(0x1d7))&&(_0x3c6022=_0x3c6022['replace'](/\.tpl$/,''));const _0x58e609=[_0x9a5e3f(0x202),_0x9a5e3f(0x200),_0x9a5e3f(0x1f3),_0x9a5e3f(0x1e9),_0x9a5e3f(0x1e7),_0x9a5e3f(0x1d0),'.css',_0x9a5e3f(0x1db),_0x9a5e3f(0x1d7)];if(_0x58e609[_0x9a5e3f(0x1df)](_0x25a79d)||_0x27dfcd[_0x9a5e3f(0x206)]('.tpl')){const _0x769426=await a196_0x4c3609[_0x9a5e3f(0x20f)][_0x9a5e3f(0x20d)](_0x27dfcd,_0x9a5e3f(0x1fb)),_0x45ab90=this[_0x9a5e3f(0x1fc)](_0x769426,_0x5c7947,_0x3b4a03);await a196_0x4c3609[_0x9a5e3f(0x20f)]['writeFile'](_0x3c6022,_0x45ab90,'utf8');}else await a196_0x4c3609[_0x9a5e3f(0x20f)][_0x9a5e3f(0x1cc)](_0x27dfcd,_0x3c6022);}}
@@ -1 +1 @@
1
- function a197_0x2e8d(_0x96a88b,_0x3e3449){_0x96a88b=_0x96a88b-0x113;var _0x1a0f08=a197_0x1a0f();var _0x2e8d40=_0x1a0f08[_0x96a88b];return _0x2e8d40;}(function(_0x4fdc99,_0x513c72){var _0x4324f0=a197_0x2e8d,_0x4b3503=_0x4fdc99();while(!![]){try{var _0x43dc9d=-parseInt(_0x4324f0(0x116))/0x1*(-parseInt(_0x4324f0(0x117))/0x2)+-parseInt(_0x4324f0(0x11c))/0x3*(-parseInt(_0x4324f0(0x118))/0x4)+parseInt(_0x4324f0(0x115))/0x5+parseInt(_0x4324f0(0x11d))/0x6+parseInt(_0x4324f0(0x11b))/0x7*(-parseInt(_0x4324f0(0x11a))/0x8)+-parseInt(_0x4324f0(0x113))/0x9*(-parseInt(_0x4324f0(0x119))/0xa)+-parseInt(_0x4324f0(0x114))/0xb*(parseInt(_0x4324f0(0x11e))/0xc);if(_0x43dc9d===_0x513c72)break;else _0x4b3503['push'](_0x4b3503['shift']());}catch(_0x13d82e){_0x4b3503['push'](_0x4b3503['shift']());}}}(a197_0x1a0f,0xe8913));import{VERSION}from'../generated/build-info.js';function a197_0x1a0f(){var _0x1c5fae=['384740UnJYTv','1150yNoSAp','3989224ZPWeyP','7OBaVaN','51yfdboF','5806392AieXcJ','36KsXTMS','38457mhwmlx','16448850aJTUdi','8074390OaxNtW','72244rFCljf','34KVtyoi'];a197_0x1a0f=function(){return _0x1c5fae;};return a197_0x1a0f();}export function getCliVersion(){return VERSION;}
1
+ (function(_0x29e0aa,_0x5a76f3){var _0x2a5e47=a197_0x2594,_0x371a44=_0x29e0aa();while(!![]){try{var _0x2de634=-parseInt(_0x2a5e47(0x1dd))/0x1+-parseInt(_0x2a5e47(0x1db))/0x2+parseInt(_0x2a5e47(0x1e0))/0x3+-parseInt(_0x2a5e47(0x1df))/0x4+parseInt(_0x2a5e47(0x1da))/0x5*(-parseInt(_0x2a5e47(0x1e2))/0x6)+parseInt(_0x2a5e47(0x1dc))/0x7+parseInt(_0x2a5e47(0x1e1))/0x8*(parseInt(_0x2a5e47(0x1de))/0x9);if(_0x2de634===_0x5a76f3)break;else _0x371a44['push'](_0x371a44['shift']());}catch(_0xac88e3){_0x371a44['push'](_0x371a44['shift']());}}}(a197_0xdfaf,0xed34a));function a197_0x2594(_0x4d528e,_0x5b9e03){_0x4d528e=_0x4d528e-0x1da;var _0xdfafa5=a197_0xdfaf();var _0x2594bb=_0xdfafa5[_0x4d528e];return _0x2594bb;}import{VERSION}from'../generated/build-info.js';function a197_0xdfaf(){var _0xefaee0=['1215zxsEAZ','870644iFBReh','5460618xpWbWu','112512vaIEfp','114VLEYon','356170OaRlNr','2045196JltlTY','6843186rUVHEE','1131145RHuTLo'];a197_0xdfaf=function(){return _0xefaee0;};return a197_0xdfaf();}export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x5699d1,_0x269ca5){var _0x225f87=a198_0xe291,_0x2f9777=_0x5699d1();while(!![]){try{var _0x551d59=-parseInt(_0x225f87(0xa2))/0x1+parseInt(_0x225f87(0x9e))/0x2+-parseInt(_0x225f87(0x9f))/0x3*(-parseInt(_0x225f87(0x9d))/0x4)+parseInt(_0x225f87(0xa1))/0x5+-parseInt(_0x225f87(0xa0))/0x6*(parseInt(_0x225f87(0x9c))/0x7)+parseInt(_0x225f87(0x9b))/0x8*(parseInt(_0x225f87(0xa3))/0x9)+parseInt(_0x225f87(0x9a))/0xa*(-parseInt(_0x225f87(0xa4))/0xb);if(_0x551d59===_0x269ca5)break;else _0x2f9777['push'](_0x2f9777['shift']());}catch(_0x2b76c3){_0x2f9777['push'](_0x2f9777['shift']());}}}(a198_0x5ec1,0xcf076));function a198_0xe291(_0x9be52d,_0x5c2107){_0x9be52d=_0x9be52d-0x9a;var _0x5ec1a7=a198_0x5ec1();var _0xe291f9=_0x5ec1a7[_0x9be52d];return _0xe291f9;}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x5e784a,_0x45faee){setActiveCookie(_0x5e784a);try{return await _0x45faee();}finally{clearActiveCookie();}}function a198_0x5ec1(){var _0x55a045=['102QjFsBd','2848045ELpLQE','481173cMHFIo','18BhdWVe','17798QDySzp','70pvEINq','5355448eFhBTP','607187kLwRAM','20zALHMg','680070dLiWjL','339948aYNgKQ'];a198_0x5ec1=function(){return _0x55a045;};return a198_0x5ec1();}
1
+ (function(_0x5c3ba6,_0x5b6b2c){var _0x1cc720=a198_0x5bd6,_0x42296a=_0x5c3ba6();while(!![]){try{var _0x3d745e=parseInt(_0x1cc720(0x1ea))/0x1+parseInt(_0x1cc720(0x1e8))/0x2*(-parseInt(_0x1cc720(0x1e5))/0x3)+parseInt(_0x1cc720(0x1e7))/0x4*(parseInt(_0x1cc720(0x1e2))/0x5)+parseInt(_0x1cc720(0x1e9))/0x6+parseInt(_0x1cc720(0x1e4))/0x7*(-parseInt(_0x1cc720(0x1ec))/0x8)+parseInt(_0x1cc720(0x1eb))/0x9+parseInt(_0x1cc720(0x1e6))/0xa*(-parseInt(_0x1cc720(0x1e3))/0xb);if(_0x3d745e===_0x5b6b2c)break;else _0x42296a['push'](_0x42296a['shift']());}catch(_0x5bac30){_0x42296a['push'](_0x42296a['shift']());}}}(a198_0x1fbe,0xa808a));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x34bede,_0x3c65d9){setActiveCookie(_0x34bede);try{return await _0x3c65d9();}finally{clearActiveCookie();}}function a198_0x5bd6(_0x2e268c,_0x18564b){_0x2e268c=_0x2e268c-0x1e2;var _0x1fbef4=a198_0x1fbe();var _0x5bd68a=_0x1fbef4[_0x2e268c];return _0x5bd68a;}function a198_0x1fbe(){var _0x537be4=['787480iAnylU','818235vtsbiP','48YfoJJq','5MzGBMc','132GuNEoo','173474CmfqHi','6vCnera','754980pvsCiu','4114280jKFWCb','1319798ePrgYy','6934602wqLxhq'];a198_0x1fbe=function(){return _0x537be4;};return a198_0x1fbe();}
@@ -1 +1 @@
1
- function a199_0x41d9(_0x3606be,_0x26a862){_0x3606be=_0x3606be-0x162;var _0x2b450d=a199_0x2b45();var _0x41d9e8=_0x2b450d[_0x3606be];return _0x41d9e8;}(function(_0x83459,_0x4416fe){var _0x5df138=a199_0x41d9,_0x4238a3=_0x83459();while(!![]){try{var _0x504314=-parseInt(_0x5df138(0x167))/0x1+parseInt(_0x5df138(0x164))/0x2+parseInt(_0x5df138(0x16a))/0x3*(parseInt(_0x5df138(0x165))/0x4)+parseInt(_0x5df138(0x16b))/0x5+-parseInt(_0x5df138(0x169))/0x6+parseInt(_0x5df138(0x163))/0x7+-parseInt(_0x5df138(0x168))/0x8;if(_0x504314===_0x4416fe)break;else _0x4238a3['push'](_0x4238a3['shift']());}catch(_0xd9e00e){_0x4238a3['push'](_0x4238a3['shift']());}}}(a199_0x2b45,0xe05e1));function a199_0x2b45(){var _0x164b0f=['write','12483716OZHlOg','1474634HCHxQE','1610468CTZKFh','stderr','1021193mRSofS','21193976OKjEhS','1857222hOBBtW','6PtHAHc','7865235dgJLNt'];a199_0x2b45=function(){return _0x164b0f;};return a199_0x2b45();}export function writeCliSideChannelLine(_0x49545b){var _0x768a17=a199_0x41d9;process[_0x768a17(0x166)][_0x768a17(0x162)](_0x49545b+'\x0a');}
1
+ function a199_0x2c41(){var _0x41984b=['2832CSiENQ','53992BFtNJv','5348388CBDZzk','2TkXtPA','9433152iFchbV','143209xrEPix','stderr','1135044LLOKIR','42gyqrfg','write','1112447FAJQMS','70cQtdYB','4221Fkbccl','19390WpKWuP'];a199_0x2c41=function(){return _0x41984b;};return a199_0x2c41();}(function(_0x27e446,_0x2f1fa8){var _0x562f77=a199_0xf5d5,_0x709fd1=_0x27e446();while(!![]){try{var _0xf1a0c0=-parseInt(_0x562f77(0xac))/0x1*(parseInt(_0x562f77(0xa8))/0x2)+parseInt(_0x562f77(0xa7))/0x3+-parseInt(_0x562f77(0xa6))/0x4*(-parseInt(_0x562f77(0xb0))/0x5)+-parseInt(_0x562f77(0xad))/0x6*(-parseInt(_0x562f77(0xaf))/0x7)+parseInt(_0x562f77(0xa9))/0x8+parseInt(_0x562f77(0xb1))/0x9*(parseInt(_0x562f77(0xa4))/0xa)+parseInt(_0x562f77(0xaa))/0xb*(-parseInt(_0x562f77(0xa5))/0xc);if(_0xf1a0c0===_0x2f1fa8)break;else _0x709fd1['push'](_0x709fd1['shift']());}catch(_0x2ef743){_0x709fd1['push'](_0x709fd1['shift']());}}}(a199_0x2c41,0xeba66));function a199_0xf5d5(_0x3ed898,_0x304880){_0x3ed898=_0x3ed898-0xa4;var _0x2c4177=a199_0x2c41();var _0xf5d571=_0x2c4177[_0x3ed898];return _0xf5d571;}export function writeCliSideChannelLine(_0x107001){var _0x4d50ae=a199_0xf5d5;process[_0x4d50ae(0xab)][_0x4d50ae(0xae)](_0x107001+'\x0a');}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lovrabet/rabetbase-cli",
3
- "version": "2.1.7-beta.5",
3
+ "version": "2.1.7-beta.6",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "repository": {
6
6
  "type": "git",