@lovrabet/rabetbase-cli 2.1.14-beta.3 → 2.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -0
  60. package/lib/commands/dataset/relation-delete.js +1 -0
  61. package/lib/commands/dataset/relation-shared.js +1 -0
  62. package/lib/commands/dataset/relation-update.js +1 -0
  63. package/lib/commands/dataset/relations.js +1 -0
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/shared/compare-table.js +1 -1
  87. package/lib/commands/menu/shared/index.js +1 -1
  88. package/lib/commands/menu/shared/inquirer.js +1 -1
  89. package/lib/commands/menu/shared/local-pages.js +1 -1
  90. package/lib/commands/menu/shared/logic.js +1 -1
  91. package/lib/commands/menu/shared/service.js +1 -1
  92. package/lib/commands/menu/shared/sync-core.js +1 -1
  93. package/lib/commands/menu/shared/update-core.js +1 -1
  94. package/lib/commands/menu/shared/valid-url.js +1 -1
  95. package/lib/commands/menu/sync.js +1 -1
  96. package/lib/commands/menu/update.js +1 -1
  97. package/lib/commands/page/generate-start.js +1 -1
  98. package/lib/commands/page/generate-status.js +1 -1
  99. package/lib/commands/page/index.js +1 -1
  100. package/lib/commands/page/pull.js +1 -1
  101. package/lib/commands/page/push.js +1 -1
  102. package/lib/commands/page/relation-audit.js +1 -0
  103. package/lib/commands/page/shared.js +1 -1
  104. package/lib/commands/page/standard-page-status.js +1 -1
  105. package/lib/commands/page/sync.js +1 -1
  106. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  107. package/lib/commands/project/create/format-elapsed.js +1 -1
  108. package/lib/commands/project/create/main.js +1 -1
  109. package/lib/commands/project/create/non-interactive.js +1 -1
  110. package/lib/commands/project/create/project-template-path.js +1 -1
  111. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  112. package/lib/commands/project/create/use-format-code.js +1 -1
  113. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  114. package/lib/commands/project/index.js +1 -1
  115. package/lib/commands/project/init.js +1 -1
  116. package/lib/commands/project/upgrade.js +1 -1
  117. package/lib/commands/registry.js +1 -1
  118. package/lib/commands/run/index.js +1 -1
  119. package/lib/commands/schema.js +1 -1
  120. package/lib/commands/skill/index.js +1 -1
  121. package/lib/commands/sql/create.js +1 -1
  122. package/lib/commands/sql/delete.js +1 -1
  123. package/lib/commands/sql/detail.js +1 -1
  124. package/lib/commands/sql/exec.js +1 -1
  125. package/lib/commands/sql/index.js +1 -1
  126. package/lib/commands/sql/list.js +1 -1
  127. package/lib/commands/sql/pull.js +1 -1
  128. package/lib/commands/sql/push.js +1 -1
  129. package/lib/commands/sql/save.js +1 -1
  130. package/lib/commands/sql/shared.js +1 -1
  131. package/lib/commands/sql/status.js +1 -1
  132. package/lib/commands/sql/validate.js +1 -1
  133. package/lib/config/schema.js +1 -1
  134. package/lib/constant/cdn.js +1 -1
  135. package/lib/constant/cli.js +1 -1
  136. package/lib/constant/defaults.js +1 -1
  137. package/lib/constant/domain.js +1 -1
  138. package/lib/constant/env.js +1 -1
  139. package/lib/constant/output.js +1 -1
  140. package/lib/constant/paths.js +1 -1
  141. package/lib/constant/risk.js +1 -1
  142. package/lib/context.js +1 -1
  143. package/lib/core/alias-resolver.js +1 -1
  144. package/lib/core/api-client.js +1 -1
  145. package/lib/core/bff/config.js +1 -1
  146. package/lib/core/bff/file-system.js +1 -1
  147. package/lib/core/bff/hash.js +1 -1
  148. package/lib/core/bff/lock.js +1 -1
  149. package/lib/core/bff/utils.js +1 -1
  150. package/lib/core/db-resolver.js +1 -1
  151. package/lib/core/page/file-system.js +1 -1
  152. package/lib/core/page/hash.js +1 -1
  153. package/lib/core/page/lock.js +1 -1
  154. package/lib/core/sql-sync/config.js +1 -1
  155. package/lib/core/sql-sync/file-system.js +1 -1
  156. package/lib/core/sql-sync/hash.js +1 -1
  157. package/lib/core/sql-sync/lock.js +1 -1
  158. package/lib/core/sql-sync/utils.js +1 -1
  159. package/lib/core/sql-validator.js +1 -1
  160. package/lib/errors.js +1 -1
  161. package/lib/framework/build-all-flags.js +1 -1
  162. package/lib/framework/flags.js +1 -1
  163. package/lib/framework/help.js +1 -1
  164. package/lib/framework/index.js +1 -1
  165. package/lib/framework/output.js +1 -1
  166. package/lib/framework/response.js +1 -1
  167. package/lib/framework/runner-alias.js +1 -1
  168. package/lib/framework/runner.js +1 -1
  169. package/lib/framework/schema-export.js +1 -1
  170. package/lib/framework/types.js +1 -1
  171. package/lib/generated/build-info.js +1 -1
  172. package/lib/help.js +1 -1
  173. package/lib/skills/main.js +1 -1
  174. package/lib/skills/npx-skills-add.js +1 -1
  175. package/lib/telemetry/cli-command-trace.js +1 -1
  176. package/lib/telemetry/cli-help-trace.js +1 -1
  177. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  178. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  179. package/lib/telemetry/send-cli-trace-log.js +1 -1
  180. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  181. package/lib/utils/ai_config.js +1 -1
  182. package/lib/utils/apply-jq-filter.js +1 -1
  183. package/lib/utils/cdn-config.js +1 -1
  184. package/lib/utils/check-sdk-version.js +1 -1
  185. package/lib/utils/cli-version-check.js +1 -1
  186. package/lib/utils/cli-version-policy.js +1 -1
  187. package/lib/utils/config.js +1 -1
  188. package/lib/utils/copy-directory.js +1 -1
  189. package/lib/utils/entity-with-id.js +1 -1
  190. package/lib/utils/file-utils.js +1 -1
  191. package/lib/utils/guides-cdn.js +1 -1
  192. package/lib/utils/http-client.js +1 -1
  193. package/lib/utils/is-non-interactive.js +1 -1
  194. package/lib/utils/logger.js +1 -1
  195. package/lib/utils/params.js +1 -1
  196. package/lib/utils/platform.js +1 -1
  197. package/lib/utils/rules-cdn.js +1 -1
  198. package/lib/utils/sleep.js +1 -1
  199. package/lib/utils/template-replacer.js +1 -1
  200. package/lib/utils/update-notice.js +1 -0
  201. package/lib/utils/version.js +1 -1
  202. package/lib/utils/with-active-cookie.js +1 -1
  203. package/lib/utils/write-cli-side-channel.js +1 -1
  204. package/package.json +1 -1
  205. package/lib/commands/dataset/link-create.js +0 -1
  206. package/lib/commands/dataset/link-delete.js +0 -1
  207. package/lib/commands/dataset/link-shared.js +0 -1
  208. package/lib/commands/dataset/link-update.js +0 -1
  209. package/lib/commands/dataset/links.js +0 -1
@@ -1 +1 @@
1
- const a145_0x42bd5f=a145_0x1eb7;(function(_0x386bdc,_0x22fc89){const _0x570f5c=a145_0x1eb7,_0x29a17=_0x386bdc();while(!![]){try{const _0x5058de=-parseInt(_0x570f5c(0x150))/0x1*(parseInt(_0x570f5c(0x16a))/0x2)+-parseInt(_0x570f5c(0x166))/0x3*(-parseInt(_0x570f5c(0x165))/0x4)+parseInt(_0x570f5c(0x168))/0x5*(-parseInt(_0x570f5c(0x15b))/0x6)+-parseInt(_0x570f5c(0x15c))/0x7*(-parseInt(_0x570f5c(0x159))/0x8)+-parseInt(_0x570f5c(0x14d))/0x9*(parseInt(_0x570f5c(0x16b))/0xa)+parseInt(_0x570f5c(0x157))/0xb+-parseInt(_0x570f5c(0x156))/0xc*(parseInt(_0x570f5c(0x15f))/0xd);if(_0x5058de===_0x22fc89)break;else _0x29a17['push'](_0x29a17['shift']());}catch(_0x3eb930){_0x29a17['push'](_0x29a17['shift']());}}}(a145_0x2399,0x262f9));import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';function a145_0x1eb7(_0x280602,_0x28a682){_0x280602=_0x280602-0x14c;const _0x2399db=a145_0x2399();let _0x1eb70e=_0x2399db[_0x280602];return _0x1eb70e;}import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';function a145_0x2399(){const _0xe5ec1f=['operationType','toUpperCase','afterScriptId','ENDPOINT','28845vHgGZX','COMMON','split','1mTDnxT','functionNode','isFile','.js','endsWith','set','12vnlugX','3270179HtkocL','alias','33016kNrgOj','get','6OLuYAf','238aczfDO','functionName','push','784719nNNsDx','HOOK','name','code','datasetCode','isDirectory','664028mkadJC','3AnPtHb','all','691090gnFuXc','replace','433148dTIqur','100oIghcF','scriptsRootDir','scriptType','beforeScriptId','F_OK'];a145_0x2399=function(){return _0xe5ec1f;};return a145_0x2399();}export const SUPPORTED_BFF_TYPES=['COMMON',a145_0x42bd5f(0x14c),a145_0x42bd5f(0x160)];export function normalizeBffType(_0x5eaf1e){const _0xa711a4=a145_0x42bd5f;if(!_0x5eaf1e)return undefined;const _0x56b745=_0x5eaf1e['trim']()[_0xa711a4(0x171)]();return SUPPORTED_BFF_TYPES['includes'](_0x56b745)?_0x56b745:undefined;}async function scanJsFilesRecursively(_0x58fecc,_0x35d685){const _0x25eeef=a145_0x42bd5f,_0x583cd8=[];try{const _0x488156=await readdir(_0x58fecc,{'withFileTypes':!![]});for(const _0x19520b of _0x488156){const _0x4e7d55=join(_0x58fecc,_0x19520b[_0x25eeef(0x161)]);if(_0x19520b[_0x25eeef(0x164)]())_0x583cd8[_0x25eeef(0x15e)](...await scanJsFilesRecursively(_0x4e7d55,_0x35d685+'/'+_0x19520b[_0x25eeef(0x161)]));else _0x19520b[_0x25eeef(0x152)]()&&_0x19520b[_0x25eeef(0x161)][_0x25eeef(0x154)](_0x25eeef(0x153))&&_0x583cd8['push']({'lockKey':_0x35d685+'/'+_0x19520b['name']['replace'](/\.js$/,''),'filePath':_0x4e7d55});}}catch(_0x3d292d){if(_0x3d292d[_0x25eeef(0x162)]!=='ENOENT')throw _0x3d292d;}return _0x583cd8;}async function scanFlatFunctions(_0x5ba313,_0x39e495){const _0x43c0e=a145_0x42bd5f,_0x456965=join(_0x5ba313[_0x43c0e(0x16c)],_0x39e495),_0x79e104=await scanJsFilesRecursively(_0x456965,_0x39e495);return _0x79e104['map'](({lockKey:_0x110e1a,filePath:_0x3fcde6})=>({'type':_0x39e495,'name':_0x110e1a[_0x43c0e(0x14f)]('/')['at'](-0x1)??'','filePath':_0x3fcde6,'lockKey':_0x110e1a}));}async function scanHookFunctions(_0x2064a7){const _0xbc8df3=a145_0x42bd5f,_0x4f3c85=join(_0x2064a7[_0xbc8df3(0x16c)],'HOOK'),_0x1a7efe=[];try{const _0x59e67c=await readdir(_0x4f3c85,{'withFileTypes':!![]});for(const _0x5b38ab of _0x59e67c){if(!_0x5b38ab[_0xbc8df3(0x164)]())continue;const _0x373c7a=_0x5b38ab['name'],_0x4c835f=join(_0x4f3c85,_0x373c7a),_0x4b946d=await readdir(_0x4c835f,{'withFileTypes':!![]});for(const _0x32ec3e of _0x4b946d){if(!_0x32ec3e[_0xbc8df3(0x164)]())continue;const _0x77a930=_0x32ec3e[_0xbc8df3(0x161)],_0x5bc906=join(_0x4c835f,_0x77a930),_0x55cbfc=await readdir(_0x5bc906,{'withFileTypes':!![]});for(const _0x551d80 of _0x55cbfc){if(!_0x551d80[_0xbc8df3(0x164)]())continue;const _0x132719=_0x551d80['name'],_0x25a626=join(_0x5bc906,_0x132719),_0x235bc9=await readdir(_0x25a626,{'withFileTypes':!![]});for(const _0x1a38f9 of _0x235bc9){if(!_0x1a38f9['isFile']()||!_0x1a38f9[_0xbc8df3(0x161)][_0xbc8df3(0x154)](_0xbc8df3(0x153)))continue;const _0x1c1e6d=_0x1a38f9[_0xbc8df3(0x161)][_0xbc8df3(0x169)](/\.js$/,'');_0x1a7efe[_0xbc8df3(0x15e)]({'type':_0xbc8df3(0x160),'name':_0x1c1e6d,'filePath':join(_0x25a626,_0x1a38f9[_0xbc8df3(0x161)]),'lockKey':'HOOK/'+_0x373c7a+'/'+_0x77a930+'/'+_0x132719+'/'+_0x1c1e6d,'alias':_0x373c7a,'operationType':_0x77a930,'functionNode':_0x132719});}}}}}catch(_0x2fb76b){if(_0x2fb76b[_0xbc8df3(0x162)]!=='ENOENT')throw _0x2fb76b;}return _0x1a7efe;}export async function scanLocalBffFunctions(_0x1e10b4,_0x584449){const _0xd56542=a145_0x42bd5f;if(_0x584449===_0xd56542(0x14e)||_0x584449===_0xd56542(0x14c))return scanFlatFunctions(_0x1e10b4,_0x584449);if(_0x584449===_0xd56542(0x160))return scanHookFunctions(_0x1e10b4);const [_0x1f4326,_0x22d93f,_0x23b323]=await Promise[_0xd56542(0x167)]([scanFlatFunctions(_0x1e10b4,_0xd56542(0x14e)),scanFlatFunctions(_0x1e10b4,_0xd56542(0x14c)),scanHookFunctions(_0x1e10b4)]);return[..._0x1f4326,..._0x22d93f,..._0x23b323];}export function resolveLocalFilePathFromLockKey(_0x37c473,_0x1598e7){const _0x41736e=a145_0x42bd5f;return join(_0x37c473[_0x41736e(0x16c)],..._0x1598e7[_0x41736e(0x14f)]('/'))+'.js';}export function createHookLocationMap(_0x22d048){const _0x832be4=a145_0x42bd5f,_0x32f333=new Map();for(const _0x3b4256 of _0x22d048){_0x3b4256[_0x832be4(0x16e)]&&_0x32f333[_0x832be4(0x155)](_0x3b4256[_0x832be4(0x16e)],{'datasetCode':_0x3b4256[_0x832be4(0x163)],'operationType':snakeToCamel(_0x3b4256[_0x832be4(0x170)]),'functionNode':'before'}),_0x3b4256['afterScriptId']&&_0x32f333[_0x832be4(0x155)](_0x3b4256[_0x832be4(0x172)],{'datasetCode':_0x3b4256['datasetCode'],'operationType':snakeToCamel(_0x3b4256[_0x832be4(0x170)]),'functionNode':'after'});}return _0x32f333;}export function resolveRemoteScriptTarget(_0x5635bc,_0x30bcd4,_0x29ed7c,_0xfb6d1b,_0x2fd524){const _0x53eef7=a145_0x42bd5f,_0x38cf91=normalizeBffType(_0x30bcd4[_0x53eef7(0x16d)]);if(!_0x38cf91||!_0x30bcd4[_0x53eef7(0x15d)])return null;if(_0x38cf91===_0x53eef7(0x160)){const _0x36ce1e=(_0x30bcd4['id']?_0x29ed7c[_0x53eef7(0x15a)](_0x30bcd4['id']):undefined)??findHookLocationByRemoteId(_0xfb6d1b,_0x30bcd4['id']);if(!_0x36ce1e)return null;const _0x1eebe4=_0x36ce1e[_0x53eef7(0x158)]||_0x2fd524[_0x53eef7(0x15a)](_0x36ce1e[_0x53eef7(0x163)]),_0x17f46e=_0x1eebe4??_0x36ce1e[_0x53eef7(0x163)],_0x12ec71={..._0x36ce1e,'alias':_0x1eebe4},_0x4ac6b3='HOOK/'+_0x17f46e+'/'+_0x12ec71[_0x53eef7(0x170)]+'/'+_0x12ec71[_0x53eef7(0x151)]+'/'+_0x30bcd4['functionName'];return{'lockKey':_0x4ac6b3,'filePath':resolveLocalFilePathFromLockKey(_0x5635bc,_0x4ac6b3),'type':_0x53eef7(0x160),'hookLocation':_0x12ec71};}const _0x2d1528=_0x38cf91+'/'+_0x30bcd4[_0x53eef7(0x15d)];return{'lockKey':_0x2d1528,'filePath':resolveLocalFilePathFromLockKey(_0x5635bc,_0x2d1528),'type':_0x38cf91};}export async function ensureParentDirectory(_0x1e7dad){await mkdir(dirname(_0x1e7dad),{'recursive':!![]});}export async function fileExists(_0x2ce3a0){const _0x7c2fa9=a145_0x42bd5f;try{return await access(_0x2ce3a0,constants[_0x7c2fa9(0x16f)]),!![];}catch{return![];}}export async function directoryExists(_0x7927a){const _0x42b942=a145_0x42bd5f;try{const _0x1a2964=await stat(_0x7927a);return _0x1a2964[_0x42b942(0x164)]();}catch{return![];}}
1
+ const a146_0x4c3856=a146_0x2b20;(function(_0x18cbd3,_0x26d88d){const _0xe9f443=a146_0x2b20,_0x1768a8=_0x18cbd3();while(!![]){try{const _0x570264=-parseInt(_0xe9f443(0xaa))/0x1*(parseInt(_0xe9f443(0xa0))/0x2)+parseInt(_0xe9f443(0x98))/0x3*(parseInt(_0xe9f443(0x9d))/0x4)+-parseInt(_0xe9f443(0xa4))/0x5*(parseInt(_0xe9f443(0xa8))/0x6)+parseInt(_0xe9f443(0x9b))/0x7+-parseInt(_0xe9f443(0xa2))/0x8*(-parseInt(_0xe9f443(0xa7))/0x9)+parseInt(_0xe9f443(0x9c))/0xa*(parseInt(_0xe9f443(0x8e))/0xb)+parseInt(_0xe9f443(0x8d))/0xc*(-parseInt(_0xe9f443(0x8a))/0xd);if(_0x570264===_0x26d88d)break;else _0x1768a8['push'](_0x1768a8['shift']());}catch(_0x5eff5a){_0x1768a8['push'](_0x1768a8['shift']());}}}(a146_0x3c2f,0xc90ea));function a146_0x2b20(_0xb7fc1d,_0x2a713e){_0xb7fc1d=_0xb7fc1d-0x89;const _0x3c2f0e=a146_0x3c2f();let _0x2b2016=_0x3c2f0e[_0xb7fc1d];return _0x2b2016;}import{access,mkdir,readdir,stat}from'node:fs/promises';import{constants}from'node:fs';import{dirname,join}from'node:path';import{findHookLocationByRemoteId,snakeToCamel}from'../../core/bff/utils.js';export const SUPPORTED_BFF_TYPES=[a146_0x4c3856(0x96),a146_0x4c3856(0x93),a146_0x4c3856(0x89)];export function normalizeBffType(_0x2ff1ed){const _0x35afed=a146_0x4c3856;if(!_0x2ff1ed)return undefined;const _0xfa6082=_0x2ff1ed[_0x35afed(0x97)]()['toUpperCase']();return SUPPORTED_BFF_TYPES[_0x35afed(0xa6)](_0xfa6082)?_0xfa6082:undefined;}async function scanJsFilesRecursively(_0x290506,_0x50d710){const _0x58b174=a146_0x4c3856,_0x49f5ba=[];try{const _0x12f7f0=await readdir(_0x290506,{'withFileTypes':!![]});for(const _0x27dc02 of _0x12f7f0){const _0x380e6a=join(_0x290506,_0x27dc02['name']);if(_0x27dc02[_0x58b174(0x92)]())_0x49f5ba[_0x58b174(0x95)](...await scanJsFilesRecursively(_0x380e6a,_0x50d710+'/'+_0x27dc02['name']));else _0x27dc02[_0x58b174(0xad)]()&&_0x27dc02[_0x58b174(0xaf)][_0x58b174(0xa1)](_0x58b174(0xa3))&&_0x49f5ba[_0x58b174(0x95)]({'lockKey':_0x50d710+'/'+_0x27dc02['name'][_0x58b174(0x9f)](/\.js$/,''),'filePath':_0x380e6a});}}catch(_0x43a520){if(_0x43a520[_0x58b174(0x8f)]!==_0x58b174(0xa5))throw _0x43a520;}return _0x49f5ba;}async function scanFlatFunctions(_0x5d0a94,_0x366f3d){const _0x58ea46=a146_0x4c3856,_0x198037=join(_0x5d0a94[_0x58ea46(0x9a)],_0x366f3d),_0x49c939=await scanJsFilesRecursively(_0x198037,_0x366f3d);return _0x49c939[_0x58ea46(0x8c)](({lockKey:_0x200b1f,filePath:_0x40ae76})=>({'type':_0x366f3d,'name':_0x200b1f[_0x58ea46(0xab)]('/')['at'](-0x1)??'','filePath':_0x40ae76,'lockKey':_0x200b1f}));}async function scanHookFunctions(_0x2aff0e){const _0x50bc4e=a146_0x4c3856,_0x4864c2=join(_0x2aff0e[_0x50bc4e(0x9a)],_0x50bc4e(0x89)),_0xa6092b=[];try{const _0x4bbdbe=await readdir(_0x4864c2,{'withFileTypes':!![]});for(const _0x15c92c of _0x4bbdbe){if(!_0x15c92c['isDirectory']())continue;const _0x262429=_0x15c92c[_0x50bc4e(0xaf)],_0x548adb=join(_0x4864c2,_0x262429),_0x4668d6=await readdir(_0x548adb,{'withFileTypes':!![]});for(const _0x245e9a of _0x4668d6){if(!_0x245e9a[_0x50bc4e(0x92)]())continue;const _0x1cd9fb=_0x245e9a[_0x50bc4e(0xaf)],_0x5e399e=join(_0x548adb,_0x1cd9fb),_0x337388=await readdir(_0x5e399e,{'withFileTypes':!![]});for(const _0x16131f of _0x337388){if(!_0x16131f[_0x50bc4e(0x92)]())continue;const _0x3a06c4=_0x16131f[_0x50bc4e(0xaf)],_0x3e716c=join(_0x5e399e,_0x3a06c4),_0x3cd43b=await readdir(_0x3e716c,{'withFileTypes':!![]});for(const _0x4858e6 of _0x3cd43b){if(!_0x4858e6[_0x50bc4e(0xad)]()||!_0x4858e6['name'][_0x50bc4e(0xa1)]('.js'))continue;const _0xd733=_0x4858e6['name'][_0x50bc4e(0x9f)](/\.js$/,'');_0xa6092b[_0x50bc4e(0x95)]({'type':_0x50bc4e(0x89),'name':_0xd733,'filePath':join(_0x3e716c,_0x4858e6[_0x50bc4e(0xaf)]),'lockKey':_0x50bc4e(0x9e)+_0x262429+'/'+_0x1cd9fb+'/'+_0x3a06c4+'/'+_0xd733,'alias':_0x262429,'operationType':_0x1cd9fb,'functionNode':_0x3a06c4});}}}}}catch(_0x19ac11){if(_0x19ac11[_0x50bc4e(0x8f)]!=='ENOENT')throw _0x19ac11;}return _0xa6092b;}export async function scanLocalBffFunctions(_0x1bd0c6,_0x1bd565){const _0x288cf4=a146_0x4c3856;if(_0x1bd565==='COMMON'||_0x1bd565===_0x288cf4(0x93))return scanFlatFunctions(_0x1bd0c6,_0x1bd565);if(_0x1bd565===_0x288cf4(0x89))return scanHookFunctions(_0x1bd0c6);const [_0xcee187,_0x3f79d5,_0x464075]=await Promise['all']([scanFlatFunctions(_0x1bd0c6,_0x288cf4(0x96)),scanFlatFunctions(_0x1bd0c6,_0x288cf4(0x93)),scanHookFunctions(_0x1bd0c6)]);return[..._0xcee187,..._0x3f79d5,..._0x464075];}export function resolveLocalFilePathFromLockKey(_0x59d9e0,_0x1baa92){const _0x361640=a146_0x4c3856;return join(_0x59d9e0[_0x361640(0x9a)],..._0x1baa92[_0x361640(0xab)]('/'))+_0x361640(0xa3);}export function createHookLocationMap(_0x404810){const _0x14455a=a146_0x4c3856,_0x1b341d=new Map();for(const _0xed5ee8 of _0x404810){_0xed5ee8[_0x14455a(0x99)]&&_0x1b341d[_0x14455a(0x94)](_0xed5ee8[_0x14455a(0x99)],{'datasetCode':_0xed5ee8[_0x14455a(0x8b)],'operationType':snakeToCamel(_0xed5ee8[_0x14455a(0x90)]),'functionNode':'before'}),_0xed5ee8[_0x14455a(0x91)]&&_0x1b341d['set'](_0xed5ee8[_0x14455a(0x91)],{'datasetCode':_0xed5ee8[_0x14455a(0x8b)],'operationType':snakeToCamel(_0xed5ee8[_0x14455a(0x90)]),'functionNode':'after'});}return _0x1b341d;}export function resolveRemoteScriptTarget(_0x117378,_0x43e51e,_0x1340b5,_0x16e7b9,_0x5722a2){const _0x2db7f1=a146_0x4c3856,_0x31e03c=normalizeBffType(_0x43e51e['scriptType']);if(!_0x31e03c||!_0x43e51e['functionName'])return null;if(_0x31e03c===_0x2db7f1(0x89)){const _0x60663b=(_0x43e51e['id']?_0x1340b5[_0x2db7f1(0xac)](_0x43e51e['id']):undefined)??findHookLocationByRemoteId(_0x16e7b9,_0x43e51e['id']);if(!_0x60663b)return null;const _0x1266a0=_0x60663b['alias']||_0x5722a2[_0x2db7f1(0xac)](_0x60663b['datasetCode']),_0x47b329=_0x1266a0??_0x60663b[_0x2db7f1(0x8b)],_0x1a0f6e={..._0x60663b,'alias':_0x1266a0},_0x5ee3fa=_0x2db7f1(0x9e)+_0x47b329+'/'+_0x1a0f6e['operationType']+'/'+_0x1a0f6e[_0x2db7f1(0xa9)]+'/'+_0x43e51e[_0x2db7f1(0xae)];return{'lockKey':_0x5ee3fa,'filePath':resolveLocalFilePathFromLockKey(_0x117378,_0x5ee3fa),'type':_0x2db7f1(0x89),'hookLocation':_0x1a0f6e};}const _0x219a28=_0x31e03c+'/'+_0x43e51e[_0x2db7f1(0xae)];return{'lockKey':_0x219a28,'filePath':resolveLocalFilePathFromLockKey(_0x117378,_0x219a28),'type':_0x31e03c};}function a146_0x3c2f(){const _0x4c47bf=['includes','14055354BmrCRG','6ZYWbeX','functionNode','251WTleJt','split','get','isFile','functionName','name','HOOK','13AXiEWJ','datasetCode','map','23310804iYGnmO','10120121DclTIN','code','operationType','afterScriptId','isDirectory','ENDPOINT','set','push','COMMON','trim','1086DHKpxi','beforeScriptId','scriptsRootDir','8661324SuKXLI','10bQXoxy','8092yhgKQK','HOOK/','replace','1354GFJucw','endsWith','8yUOjuK','.js','7576755JFTWuS','ENOENT'];a146_0x3c2f=function(){return _0x4c47bf;};return a146_0x3c2f();}export async function ensureParentDirectory(_0x88b443){await mkdir(dirname(_0x88b443),{'recursive':!![]});}export async function fileExists(_0xea2de1){try{return await access(_0xea2de1,constants['F_OK']),!![];}catch{return![];}}export async function directoryExists(_0x5e80ea){const _0xb24b7=a146_0x4c3856;try{const _0x52a0a9=await stat(_0x5e80ea);return _0x52a0a9[_0xb24b7(0x92)]();}catch{return![];}}
@@ -1 +1 @@
1
- function a146_0xc612(){const _0x3e6951=['2152520XNkgCU','59PALGBt','createHash','10YxdpIS','utf8','157704KDDfYc','663744gLBdER','484SwVsAM','hex','digest','28viVLiD','2906874aoYHIr','8rAlBHB','md5','9662bvFlBz','1113258YHDHKm','288141YlwdRM'];a146_0xc612=function(){return _0x3e6951;};return a146_0xc612();}(function(_0x33b531,_0xfa79a4){const _0x9646f1=a146_0xc79c,_0x30e510=_0x33b531();while(!![]){try{const _0x37d36b=parseInt(_0x9646f1(0x11a))/0x1*(-parseInt(_0x9646f1(0x116))/0x2)+-parseInt(_0x9646f1(0x118))/0x3*(parseInt(_0x9646f1(0x114))/0x4)+parseInt(_0x9646f1(0x10b))/0x5*(parseInt(_0x9646f1(0x117))/0x6)+-parseInt(_0x9646f1(0x112))/0x7*(parseInt(_0x9646f1(0x10e))/0x8)+parseInt(_0x9646f1(0x113))/0x9+-parseInt(_0x9646f1(0x119))/0xa+-parseInt(_0x9646f1(0x10f))/0xb*(-parseInt(_0x9646f1(0x10d))/0xc);if(_0x37d36b===_0xfa79a4)break;else _0x30e510['push'](_0x30e510['shift']());}catch(_0x2ec1d3){_0x30e510['push'](_0x30e510['shift']());}}}(a146_0xc612,0x3c909));import{readFile}from'node:fs/promises';import a146_0x3a257e from'node:crypto';export function computeContentHash(_0x41d52f){const _0x582385=a146_0xc79c;return a146_0x3a257e[_0x582385(0x11b)](_0x582385(0x115))['update'](_0x41d52f)[_0x582385(0x111)](_0x582385(0x110));}function a146_0xc79c(_0x5221f9,_0x41ba9a){_0x5221f9=_0x5221f9-0x10b;const _0xc61265=a146_0xc612();let _0xc79c48=_0xc61265[_0x5221f9];return _0xc79c48;}export async function computeFileHash(_0x8c65b6){const _0x28b8ff=a146_0xc79c,_0x3abff5=await readFile(_0x8c65b6,_0x28b8ff(0x10c));return computeContentHash(_0x3abff5);}
1
+ (function(_0x1132bf,_0x2e3dcf){const _0x228f1c=a147_0x31c2,_0xf0c18c=_0x1132bf();while(!![]){try{const _0x345b0d=parseInt(_0x228f1c(0xcf))/0x1+-parseInt(_0x228f1c(0xd2))/0x2*(-parseInt(_0x228f1c(0xcd))/0x3)+-parseInt(_0x228f1c(0xd0))/0x4+-parseInt(_0x228f1c(0xcc))/0x5*(parseInt(_0x228f1c(0xd4))/0x6)+parseInt(_0x228f1c(0xd1))/0x7+parseInt(_0x228f1c(0xd3))/0x8+-parseInt(_0x228f1c(0xce))/0x9;if(_0x345b0d===_0x2e3dcf)break;else _0xf0c18c['push'](_0xf0c18c['shift']());}catch(_0x52e560){_0xf0c18c['push'](_0xf0c18c['shift']());}}}(a147_0x32dd,0xb47f3));function a147_0x31c2(_0x15432d,_0x3d8e73){_0x15432d=_0x15432d-0xc7;const _0x32dd57=a147_0x32dd();let _0x31c28b=_0x32dd57[_0x15432d];return _0x31c28b;}import{readFile}from'node:fs/promises';import a147_0x32425c from'node:crypto';function a147_0x32dd(){const _0x18ed69=['10AAVAVI','1149xPPHxH','10992627HkqXhE','933635OlKjVJ','1087768iYvRTe','4411505bmsaLz','3460kzxPgK','9953664jgPkJg','3713964JEdaeF','hex','md5','utf8','update','createHash'];a147_0x32dd=function(){return _0x18ed69;};return a147_0x32dd();}export function computeContentHash(_0x514a63){const _0x885240=a147_0x31c2;return a147_0x32425c[_0x885240(0xcb)](_0x885240(0xc8))[_0x885240(0xca)](_0x514a63)['digest'](_0x885240(0xc7));}export async function computeFileHash(_0x9548a6){const _0x13c145=a147_0x31c2,_0x2a7839=await readFile(_0x9548a6,_0x13c145(0xc9));return computeContentHash(_0x2a7839);}
@@ -1 +1 @@
1
- (function(_0x99bfc6,_0x2864f7){const _0x3cde3f=a147_0x23ab,_0x3b12d4=_0x99bfc6();while(!![]){try{const _0x52cd59=parseInt(_0x3cde3f(0x129))/0x1+parseInt(_0x3cde3f(0x136))/0x2+parseInt(_0x3cde3f(0x12e))/0x3*(-parseInt(_0x3cde3f(0x12d))/0x4)+-parseInt(_0x3cde3f(0x130))/0x5+parseInt(_0x3cde3f(0x127))/0x6+parseInt(_0x3cde3f(0x126))/0x7+-parseInt(_0x3cde3f(0x134))/0x8*(parseInt(_0x3cde3f(0x122))/0x9);if(_0x52cd59===_0x2864f7)break;else _0x3b12d4['push'](_0x3b12d4['shift']());}catch(_0x23c617){_0x3b12d4['push'](_0x3b12d4['shift']());}}}(a147_0x4470,0x9da83));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';function a147_0x4470(){const _0x3e568c=['ENOENT','functions','utf8','5258085EQBtKp','6007236nUGZbL','code','180329QOhoej','\x22\x20vs\x20lock\x20\x22','\x22.\x20','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','12IvBWJh','13008AbMiQX','parse','3393065zSbqih','current\x20\x22','stringify','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','13825536IzmdSh','scriptsRoot','2265772wKacrS','apps','9XEiGny'];a147_0x4470=function(){return _0x3e568c;};return a147_0x4470();}function a147_0x23ab(_0x83f9a7,_0x586e38){_0x83f9a7=_0x83f9a7-0x122;const _0x447059=a147_0x4470();let _0x23ab61=_0x447059[_0x83f9a7];return _0x23ab61;}export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x480c70,_0x2bfc71,_0x1789f6,_0x523dd3){const _0x29385f=a147_0x23ab,_0x3e9995={'apps':_0x480c70[_0x29385f(0x137)]&&typeof _0x480c70[_0x29385f(0x137)]==='object'?_0x480c70['apps']:{}};let _0x39adcb=_0x3e9995[_0x29385f(0x137)][_0x2bfc71];if(!_0x39adcb)return _0x39adcb={'scriptsRoot':_0x1789f6,'lastSync':'','functions':{}},_0x3e9995['apps'][_0x2bfc71]=_0x39adcb,{'lockData':_0x3e9995,'appLock':_0x39adcb};if(!_0x39adcb[_0x29385f(0x135)])_0x39adcb[_0x29385f(0x135)]=_0x1789f6;else{if(_0x39adcb[_0x29385f(0x135)]!==_0x1789f6)throw new Error(_0x523dd3+':\x20scriptsRoot\x20mismatch\x20—\x20'+(_0x29385f(0x131)+_0x1789f6+_0x29385f(0x12a)+_0x39adcb['scriptsRoot']+_0x29385f(0x12b))+_0x29385f(0x12c));}return!_0x39adcb[_0x29385f(0x124)]&&(_0x39adcb['functions']={}),!_0x39adcb['lastSync']&&(_0x39adcb['lastSync']=''),{'lockData':_0x3e9995,'appLock':_0x39adcb};}export async function readBffLockFile(_0xdf4f30){const _0x467a02=a147_0x23ab;try{const _0x16c681=await readFile(_0xdf4f30,_0x467a02(0x125)),_0x54050f=JSON[_0x467a02(0x12f)](_0x16c681);return{'apps':_0x54050f[_0x467a02(0x137)]&&typeof _0x54050f[_0x467a02(0x137)]==='object'?_0x54050f[_0x467a02(0x137)]:{}};}catch(_0x205bb1){if(_0x205bb1[_0x467a02(0x128)]===_0x467a02(0x123))return null;throw new Error(_0x467a02(0x133)+String(_0x205bb1));}}export async function writeBffLockFile(_0x5348e1,_0x5e71a0){const _0x503367=a147_0x23ab;await mkdir(dirname(_0x5348e1),{'recursive':!![]}),await writeFile(_0x5348e1,JSON[_0x503367(0x132)](_0x5e71a0,null,0x2),_0x503367(0x125));}
1
+ function a148_0x3fa0(){const _0x6c5855=['utf8','code','object','lastSync','current\x20\x22','Check\x20.rabetbase/bff.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','3638364KxILye','61394zIXeCy','1892190FxRXSl','scriptsRoot','82647tjbEIx','1176SdtWId',':\x20scriptsRoot\x20mismatch\x20—\x20','Failed\x20to\x20read\x20BFF\x20lock\x20file:\x20','43DkrQlt','12hftyUE','9013020FeqrUS','parse','apps','stringify','ENOENT','710385vPUUFp','11042024DvreLk'];a148_0x3fa0=function(){return _0x6c5855;};return a148_0x3fa0();}(function(_0x495f3c,_0x3c417f){const _0x2373a9=a148_0x2506,_0x9846ab=_0x495f3c();while(!![]){try{const _0x34f359=-parseInt(_0x2373a9(0xf9))/0x1*(-parseInt(_0x2373a9(0xf2))/0x2)+-parseInt(_0x2373a9(0x100))/0x3+parseInt(_0x2373a9(0xfa))/0x4*(parseInt(_0x2373a9(0xf3))/0x5)+parseInt(_0x2373a9(0xf1))/0x6+-parseInt(_0x2373a9(0x101))/0x7+parseInt(_0x2373a9(0xf6))/0x8*(-parseInt(_0x2373a9(0xf5))/0x9)+parseInt(_0x2373a9(0xfb))/0xa;if(_0x34f359===_0x3c417f)break;else _0x9846ab['push'](_0x9846ab['shift']());}catch(_0x719dcd){_0x9846ab['push'](_0x9846ab['shift']());}}}(a148_0x3fa0,0xc3085));import{mkdir,readFile,writeFile}from'node:fs/promises';function a148_0x2506(_0x4b0152,_0x59060b){_0x4b0152=_0x4b0152-0xeb;const _0x3fa04c=a148_0x3fa0();let _0x250663=_0x3fa04c[_0x4b0152];return _0x250663;}import{dirname}from'node:path';export function createEmptyBffLock(){return{'apps':{}};}export function ensureLockScope(_0x45cde2,_0x594c15,_0x10ce1d,_0x287e07){const _0x2aec0c=a148_0x2506,_0x529ecc={'apps':_0x45cde2[_0x2aec0c(0xfd)]&&typeof _0x45cde2[_0x2aec0c(0xfd)]===_0x2aec0c(0xed)?_0x45cde2[_0x2aec0c(0xfd)]:{}};let _0x228dca=_0x529ecc[_0x2aec0c(0xfd)][_0x594c15];if(!_0x228dca)return _0x228dca={'scriptsRoot':_0x10ce1d,'lastSync':'','functions':{}},_0x529ecc[_0x2aec0c(0xfd)][_0x594c15]=_0x228dca,{'lockData':_0x529ecc,'appLock':_0x228dca};if(!_0x228dca['scriptsRoot'])_0x228dca[_0x2aec0c(0xf4)]=_0x10ce1d;else{if(_0x228dca[_0x2aec0c(0xf4)]!==_0x10ce1d)throw new Error(_0x287e07+_0x2aec0c(0xf7)+(_0x2aec0c(0xef)+_0x10ce1d+'\x22\x20vs\x20lock\x20\x22'+_0x228dca[_0x2aec0c(0xf4)]+'\x22.\x20')+_0x2aec0c(0xf0));}return!_0x228dca['functions']&&(_0x228dca['functions']={}),!_0x228dca[_0x2aec0c(0xee)]&&(_0x228dca[_0x2aec0c(0xee)]=''),{'lockData':_0x529ecc,'appLock':_0x228dca};}export async function readBffLockFile(_0x4f0771){const _0x4a029c=a148_0x2506;try{const _0x3603de=await readFile(_0x4f0771,_0x4a029c(0xeb)),_0x525a6e=JSON[_0x4a029c(0xfc)](_0x3603de);return{'apps':_0x525a6e[_0x4a029c(0xfd)]&&typeof _0x525a6e['apps']===_0x4a029c(0xed)?_0x525a6e[_0x4a029c(0xfd)]:{}};}catch(_0x3a7f0a){if(_0x3a7f0a[_0x4a029c(0xec)]===_0x4a029c(0xff))return null;throw new Error(_0x4a029c(0xf8)+String(_0x3a7f0a));}}export async function writeBffLockFile(_0x389ffe,_0x221a13){const _0x2cdaad=a148_0x2506;await mkdir(dirname(_0x389ffe),{'recursive':!![]}),await writeFile(_0x389ffe,JSON[_0x2cdaad(0xfe)](_0x221a13,null,0x2),_0x2cdaad(0xeb));}
@@ -1 +1 @@
1
- function a149_0x5942(_0x303b70,_0x40c441){_0x303b70=_0x303b70-0x1da;const _0x257cc8=a149_0x257c();let _0x59428b=_0x257cc8[_0x303b70];return _0x59428b;}(function(_0x3da513,_0x587dbd){const _0x2b7c1e=a149_0x5942,_0x4fab27=_0x3da513();while(!![]){try{const _0x31675e=parseInt(_0x2b7c1e(0x1dd))/0x1*(parseInt(_0x2b7c1e(0x1dc))/0x2)+-parseInt(_0x2b7c1e(0x1e5))/0x3*(-parseInt(_0x2b7c1e(0x1e7))/0x4)+parseInt(_0x2b7c1e(0x1eb))/0x5+-parseInt(_0x2b7c1e(0x1e2))/0x6*(parseInt(_0x2b7c1e(0x1da))/0x7)+-parseInt(_0x2b7c1e(0x1e8))/0x8*(-parseInt(_0x2b7c1e(0x1ed))/0x9)+parseInt(_0x2b7c1e(0x1e0))/0xa+parseInt(_0x2b7c1e(0x1e1))/0xb*(-parseInt(_0x2b7c1e(0x1de))/0xc);if(_0x31675e===_0x587dbd)break;else _0x4fab27['push'](_0x4fab27['shift']());}catch(_0x1605db){_0x4fab27['push'](_0x4fab27['shift']());}}}(a149_0x257c,0x4893c));export function snakeToCamel(_0x57b32e){const _0x40245e=a149_0x5942;return _0x57b32e['toLowerCase']()[_0x40245e(0x1e3)](/_([a-z])/g,(_0x143349,_0x46194e)=>_0x46194e[_0x40245e(0x1e9)]());}export function findHookLocationByRemoteId(_0x12dc6e,_0x12c527){const _0x2605d5=a149_0x5942;if(!_0x12c527)return undefined;for(const _0x534807 of Object[_0x2605d5(0x1ea)](_0x12dc6e)){if(_0x534807['remoteId']===_0x12c527&&_0x534807['datasetCode']&&_0x534807['operationType']&&_0x534807[_0x2605d5(0x1e6)])return{'datasetCode':_0x534807[_0x2605d5(0x1db)],'operationType':_0x534807[_0x2605d5(0x1df)],'functionNode':_0x534807[_0x2605d5(0x1e6)]};}return undefined;}export function extractScriptDescription(_0x4f26e5){const _0x8cd75c=_0x4f26e5['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x8cd75c?.[0x1]?.['trim']()||undefined;}function a149_0x257c(){const _0x1b688a=['functionNode','64iEfBDv','8ykKOyf','toUpperCase','values','1776020ZziEzc','test','5021343foizNJ','343AOZeuT','datasetCode','2niLArB','427255mfcKNx','11788824qzEKNB','operationType','77970yfGTaT','11aXqAWc','29910sTBfTb','replace','after','32955RqXPNH'];a149_0x257c=function(){return _0x1b688a;};return a149_0x257c();}export function isValidBffFunctionName(_0x3fddb9){const _0x51739e=a149_0x5942;return/^[A-Za-z_$][A-Za-z0-9_$]*$/[_0x51739e(0x1ec)](_0x3fddb9);}export function normalizeHookFunctionNode(_0x2c0d8d){const _0x2dd861=a149_0x5942;if(!_0x2c0d8d)return undefined;const _0xcab52b=_0x2c0d8d['trim']()['toLowerCase']();if(_0xcab52b==='before'||_0xcab52b===_0x2dd861(0x1e4))return _0xcab52b;return undefined;}
1
+ (function(_0x4f3ba7,_0x2380df){const _0x5a9b41=a150_0x1b7b,_0x2ce190=_0x4f3ba7();while(!![]){try{const _0xdd45f2=parseInt(_0x5a9b41(0x146))/0x1*(-parseInt(_0x5a9b41(0x13d))/0x2)+-parseInt(_0x5a9b41(0x149))/0x3*(parseInt(_0x5a9b41(0x13c))/0x4)+parseInt(_0x5a9b41(0x13e))/0x5+parseInt(_0x5a9b41(0x144))/0x6*(-parseInt(_0x5a9b41(0x145))/0x7)+-parseInt(_0x5a9b41(0x140))/0x8*(-parseInt(_0x5a9b41(0x137))/0x9)+parseInt(_0x5a9b41(0x13a))/0xa+-parseInt(_0x5a9b41(0x14a))/0xb*(-parseInt(_0x5a9b41(0x13f))/0xc);if(_0xdd45f2===_0x2380df)break;else _0x2ce190['push'](_0x2ce190['shift']());}catch(_0x277b73){_0x2ce190['push'](_0x2ce190['shift']());}}}(a150_0x3585,0x43957));function a150_0x3585(){const _0x31c430=['functionNode','trim','1611860MJUZxL','operationType','204596UNIVSo','40dqAMnK','2093100oOPAJB','12wuLFyT','16rLrisc','after','toLowerCase','before','64320nqiFiY','140TaRYhM','5989aecPlp','toUpperCase','datasetCode','6KelGzH','1108811aQIiCP','147123sPXsoe'];a150_0x3585=function(){return _0x31c430;};return a150_0x3585();}export function snakeToCamel(_0x492086){const _0x312ae8=a150_0x1b7b;return _0x492086[_0x312ae8(0x142)]()['replace'](/_([a-z])/g,(_0x2d03a7,_0x24fdf8)=>_0x24fdf8[_0x312ae8(0x147)]());}export function findHookLocationByRemoteId(_0xdf5fe1,_0x455ed1){const _0x431bbb=a150_0x1b7b;if(!_0x455ed1)return undefined;for(const _0x59aec2 of Object['values'](_0xdf5fe1)){if(_0x59aec2['remoteId']===_0x455ed1&&_0x59aec2[_0x431bbb(0x148)]&&_0x59aec2[_0x431bbb(0x13b)]&&_0x59aec2[_0x431bbb(0x138)])return{'datasetCode':_0x59aec2['datasetCode'],'operationType':_0x59aec2[_0x431bbb(0x13b)],'functionNode':_0x59aec2[_0x431bbb(0x138)]};}return undefined;}export function extractScriptDescription(_0x10c4f5){const _0x3c0e9b=a150_0x1b7b,_0x385551=_0x10c4f5['match'](/\[\s*脚本描述\s*]\s*(.+)/);return _0x385551?.[0x1]?.[_0x3c0e9b(0x139)]()||undefined;}export function isValidBffFunctionName(_0x34a168){return/^[A-Za-z_$][A-Za-z0-9_$]*$/['test'](_0x34a168);}function a150_0x1b7b(_0x241ab5,_0x2e6138){_0x241ab5=_0x241ab5-0x137;const _0x3585ac=a150_0x3585();let _0x1b7b2a=_0x3585ac[_0x241ab5];return _0x1b7b2a;}export function normalizeHookFunctionNode(_0x46fefe){const _0x31df0b=a150_0x1b7b;if(!_0x46fefe)return undefined;const _0x41facc=_0x46fefe['trim']()[_0x31df0b(0x142)]();if(_0x41facc===_0x31df0b(0x143)||_0x41facc===_0x31df0b(0x141))return _0x41facc;return undefined;}
@@ -1 +1 @@
1
- (function(_0x3be394,_0x10b88a){const _0x12580c=a150_0x535e,_0x41fce1=_0x3be394();while(!![]){try{const _0x162420=-parseInt(_0x12580c(0x125))/0x1*(parseInt(_0x12580c(0x11c))/0x2)+-parseInt(_0x12580c(0x12b))/0x3+-parseInt(_0x12580c(0x11f))/0x4+parseInt(_0x12580c(0x130))/0x5+parseInt(_0x12580c(0x11d))/0x6*(-parseInt(_0x12580c(0x132))/0x7)+parseInt(_0x12580c(0x129))/0x8*(-parseInt(_0x12580c(0x124))/0x9)+parseInt(_0x12580c(0x116))/0xa*(parseInt(_0x12580c(0x121))/0xb);if(_0x162420===_0x10b88a)break;else _0x41fce1['push'](_0x41fce1['shift']());}catch(_0x51b8da){_0x41fce1['push'](_0x41fce1['shift']());}}}(a150_0x54ee,0x7fc32));function a150_0x54ee(){const _0x90537=['toLowerCase','.\x20Be\x20more\x20specific.','get','8NxJqRQ','102066FistQf','find','3282452EZXFBh','includes','286AMHduS','dbId','\x22\x20matches\x20multiple\x20databases:\x20','7173VpBWHH','63285JKHehl','filter','length','\x22\x20under\x20app\x20\x22','7416YMjDIg','isNaN','1693464GDAMFA','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','map','No\x20linked\x20databases\x20found\x20under\x20app\x20\x22','set','3751965BtJAdW','dbName','427pKuJpj','.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.','join','1226020LKgoTO','dbtableConfig','\x22.\x20Available:\x20'];a150_0x54ee=function(){return _0x90537;};return a150_0x54ee();}import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x5d7da9){const _0x3b16be=a150_0x535e;if(cache['has'](_0x5d7da9))return cache[_0x3b16be(0x11b)](_0x5d7da9);const _0x17e25d=await listDatasets(_0x5d7da9),_0x1ea67b=new Map();for(const _0xca56e2 of _0x17e25d){const _0x424e78=_0xca56e2[_0x3b16be(0x117)];_0x424e78?.[_0x3b16be(0x122)]!=null&&_0x1ea67b[_0x3b16be(0x12f)](_0x424e78['dbId'],_0x424e78[_0x3b16be(0x131)]??'db-'+_0x424e78['dbId']);}const _0x3f1b37=[..._0x1ea67b['entries']()][_0x3b16be(0x12d)](([_0x39b912,_0x511762])=>({'dbId':_0x39b912,'dbName':_0x511762}));return cache['set'](_0x5d7da9,_0x3f1b37),_0x3f1b37;}export async function resolveDb(_0x50922f,_0x195d13){const _0x321007=a150_0x535e,_0x5bb2d2=await listDatabases(_0x50922f);if(_0x5bb2d2[_0x321007(0x127)]===0x0)return{'resolved':[],'error':_0x321007(0x12e)+_0x50922f+_0x321007(0x12c)};if(!_0x195d13)return{'resolved':_0x5bb2d2};const _0x1ca765=Number(_0x195d13);if(!Number[_0x321007(0x12a)](_0x1ca765)){const _0x548767=_0x5bb2d2[_0x321007(0x11e)](_0x56008d=>_0x56008d['dbId']===_0x1ca765);if(_0x548767)return{'resolved':[_0x548767]};}const _0x40ee61=_0x195d13[_0x321007(0x119)](),_0x3795ba=_0x5bb2d2[_0x321007(0x126)](_0x4245f8=>_0x4245f8[_0x321007(0x131)][_0x321007(0x119)]()[_0x321007(0x120)](_0x40ee61));if(_0x3795ba[_0x321007(0x127)]>0x0)return{'resolved':_0x3795ba};const _0x25cfc1=_0x5bb2d2[_0x321007(0x12d)](_0x1d61d1=>_0x1d61d1[_0x321007(0x131)]+'\x20('+_0x1d61d1['dbId']+')')[_0x321007(0x115)](',\x20');return{'resolved':[],'error':'No\x20database\x20matching\x20\x22'+_0x195d13+_0x321007(0x128)+_0x50922f+_0x321007(0x118)+_0x25cfc1+_0x321007(0x114)};}function a150_0x535e(_0x58c995,_0x173584){_0x58c995=_0x58c995-0x114;const _0x54ee1d=a150_0x54ee();let _0x535e38=_0x54ee1d[_0x58c995];return _0x535e38;}export async function resolveOneDb(_0x3736ca,_0x782796){const _0x3b2724=a150_0x535e,{resolved:_0x31647e,error:_0x22c71e}=await resolveDb(_0x3736ca,_0x782796);if(_0x22c71e)return{'db':null,'error':_0x22c71e};if(_0x31647e[_0x3b2724(0x127)]===0x1)return{'db':_0x31647e[0x0]};if(!_0x782796){const _0x208a71=_0x31647e['map'](_0x301227=>_0x301227[_0x3b2724(0x131)]+'\x20('+_0x301227[_0x3b2724(0x122)]+')')[_0x3b2724(0x115)](',\x20');return{'db':null,'error':'Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20'+_0x208a71};}const _0x14bf2d=_0x31647e['map'](_0x480b49=>_0x480b49[_0x3b2724(0x131)]+'\x20('+_0x480b49['dbId']+')')[_0x3b2724(0x115)](',\x20');return{'db':null,'error':'\x22'+_0x782796+_0x3b2724(0x123)+_0x14bf2d+_0x3b2724(0x11a)};}export async function getDbName(_0x5087c4,_0x3f79a3){const _0x25ce44=a150_0x535e,_0x40b925=await listDatabases(_0x5087c4);return _0x40b925[_0x25ce44(0x11e)](_0x1c24be=>_0x1c24be[_0x25ce44(0x122)]===_0x3f79a3)?.[_0x25ce44(0x131)];}
1
+ function a151_0x4cd4(){const _0x30c3c7=['105760sBfVnv','dbtableConfig','\x22\x20under\x20app\x20\x22','set','join','No\x20database\x20matching\x20\x22','1401006fDEuxf','28uMTsiN','555182qyJrxU','has','dbName','length','dbId','14105272LOBfxz','\x22.\x20Make\x20sure\x20datasets\x20have\x20been\x20created.','entries','Multiple\x20databases\x20found.\x20Specify\x20one\x20with\x20--db:\x20','827106nOBYVc','map','\x22.\x20Available:\x20','.\x20Be\x20more\x20specific.','toLowerCase','7713349QTCtkg','3584490lXfBQo','includes','find'];a151_0x4cd4=function(){return _0x30c3c7;};return a151_0x4cd4();}(function(_0x5abc23,_0x469503){const _0x3c38c6=a151_0x17d4,_0x518387=_0x5abc23();while(!![]){try{const _0x4a2a3b=-parseInt(_0x3c38c6(0x1df))/0x1+parseInt(_0x3c38c6(0x1dd))/0x2+parseInt(_0x3c38c6(0x1d4))/0x3+parseInt(_0x3c38c6(0x1de))/0x4*(-parseInt(_0x3c38c6(0x1d7))/0x5)+parseInt(_0x3c38c6(0x1e8))/0x6+parseInt(_0x3c38c6(0x1d3))/0x7+-parseInt(_0x3c38c6(0x1e4))/0x8;if(_0x4a2a3b===_0x469503)break;else _0x518387['push'](_0x518387['shift']());}catch(_0x140c1d){_0x518387['push'](_0x518387['shift']());}}}(a151_0x4cd4,0xa340e));import{listDatasets}from'../core/api-client.js';const cache=new Map();export async function listDatabases(_0x39b8ee){const _0x252475=a151_0x17d4;if(cache[_0x252475(0x1e0)](_0x39b8ee))return cache['get'](_0x39b8ee);const _0x2384c4=await listDatasets(_0x39b8ee),_0x5175d4=new Map();for(const _0x2bf59e of _0x2384c4){const _0x4d0c05=_0x2bf59e[_0x252475(0x1d8)];_0x4d0c05?.[_0x252475(0x1e3)]!=null&&_0x5175d4[_0x252475(0x1da)](_0x4d0c05[_0x252475(0x1e3)],_0x4d0c05['dbName']??'db-'+_0x4d0c05['dbId']);}const _0x3b2590=[..._0x5175d4[_0x252475(0x1e6)]()][_0x252475(0x1e9)](([_0x293996,_0x4000b9])=>({'dbId':_0x293996,'dbName':_0x4000b9}));return cache['set'](_0x39b8ee,_0x3b2590),_0x3b2590;}export async function resolveDb(_0x311577,_0x516d25){const _0x35420e=a151_0x17d4,_0x4a6a70=await listDatabases(_0x311577);if(_0x4a6a70[_0x35420e(0x1e2)]===0x0)return{'resolved':[],'error':'No\x20linked\x20databases\x20found\x20under\x20app\x20\x22'+_0x311577+_0x35420e(0x1e5)};if(!_0x516d25)return{'resolved':_0x4a6a70};const _0x53ebdf=Number(_0x516d25);if(!Number['isNaN'](_0x53ebdf)){const _0x263e55=_0x4a6a70[_0x35420e(0x1d6)](_0xfa998e=>_0xfa998e['dbId']===_0x53ebdf);if(_0x263e55)return{'resolved':[_0x263e55]};}const _0x40385b=_0x516d25[_0x35420e(0x1d2)](),_0x97d63=_0x4a6a70['filter'](_0x52d40b=>_0x52d40b[_0x35420e(0x1e1)][_0x35420e(0x1d2)]()[_0x35420e(0x1d5)](_0x40385b));if(_0x97d63[_0x35420e(0x1e2)]>0x0)return{'resolved':_0x97d63};const _0x1e01f0=_0x4a6a70[_0x35420e(0x1e9)](_0x421e35=>_0x421e35[_0x35420e(0x1e1)]+'\x20('+_0x421e35[_0x35420e(0x1e3)]+')')[_0x35420e(0x1db)](',\x20');return{'resolved':[],'error':_0x35420e(0x1dc)+_0x516d25+_0x35420e(0x1d9)+_0x311577+_0x35420e(0x1d0)+_0x1e01f0+'.\x20If\x20this\x20db\x20belongs\x20to\x20another\x20app,\x20rerun\x20with\x20--appcode\x20<appCode>.'};}export async function resolveOneDb(_0x36c1bc,_0x49efe6){const _0xb3304e=a151_0x17d4,{resolved:_0x3f230b,error:_0x43180f}=await resolveDb(_0x36c1bc,_0x49efe6);if(_0x43180f)return{'db':null,'error':_0x43180f};if(_0x3f230b[_0xb3304e(0x1e2)]===0x1)return{'db':_0x3f230b[0x0]};if(!_0x49efe6){const _0x16ca8c=_0x3f230b[_0xb3304e(0x1e9)](_0x1917a0=>_0x1917a0['dbName']+'\x20('+_0x1917a0[_0xb3304e(0x1e3)]+')')[_0xb3304e(0x1db)](',\x20');return{'db':null,'error':_0xb3304e(0x1e7)+_0x16ca8c};}const _0x1f493c=_0x3f230b[_0xb3304e(0x1e9)](_0x37607f=>_0x37607f['dbName']+'\x20('+_0x37607f['dbId']+')')['join'](',\x20');return{'db':null,'error':'\x22'+_0x49efe6+'\x22\x20matches\x20multiple\x20databases:\x20'+_0x1f493c+_0xb3304e(0x1d1)};}function a151_0x17d4(_0x32e035,_0x740805){_0x32e035=_0x32e035-0x1d0;const _0x4cd49f=a151_0x4cd4();let _0x17d4db=_0x4cd49f[_0x32e035];return _0x17d4db;}export async function getDbName(_0x265fb9,_0x501a61){const _0x5cbcc9=a151_0x17d4,_0x368f25=await listDatabases(_0x265fb9);return _0x368f25[_0x5cbcc9(0x1d6)](_0x5a1834=>_0x5a1834[_0x5cbcc9(0x1e3)]===_0x501a61)?.[_0x5cbcc9(0x1e1)];}
@@ -1 +1 @@
1
- function a151_0x5134(_0x58862a,_0x2a7f5e){_0x58862a=_0x58862a-0x151;const _0x4fd773=a151_0x4fd7();let _0x513475=_0x4fd773[_0x58862a];return _0x513475;}const a151_0x49300e=a151_0x5134;(function(_0x322a4b,_0x2479f7){const _0x1a851e=a151_0x5134,_0x4e434a=_0x322a4b();while(!![]){try{const _0x137d68=parseInt(_0x1a851e(0x15c))/0x1+parseInt(_0x1a851e(0x155))/0x2+parseInt(_0x1a851e(0x152))/0x3*(-parseInt(_0x1a851e(0x157))/0x4)+parseInt(_0x1a851e(0x15f))/0x5+parseInt(_0x1a851e(0x153))/0x6*(-parseInt(_0x1a851e(0x159))/0x7)+parseInt(_0x1a851e(0x15e))/0x8+parseInt(_0x1a851e(0x15a))/0x9*(parseInt(_0x1a851e(0x156))/0xa);if(_0x137d68===_0x2479f7)break;else _0x4e434a['push'](_0x4e434a['shift']());}catch(_0x5b19e0){_0x4e434a['push'](_0x4e434a['shift']());}}}(a151_0x4fd7,0xed23f));import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';function a151_0x4fd7(){const _0x5718bb=['.rabetbase','12917632fLsloj','423965xuXVwR','F_OK','120biQinW','4746972iRdjpg','toUpperCase','1686318DdaozI','61430UkgVfD','172644vIIXNq','cwd','7VqiJWl','1359pqfdCV','page','18680feHRwQ'];a151_0x4fd7=function(){return _0x5718bb;};return a151_0x4fd7();}import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x5ce5ad,_0x4558a0=process[a151_0x49300e(0x158)]()){const _0x4ac6e0=a151_0x49300e,_0xe67ccb=resolve(_0x4558a0),_0x2376e6=join(_0xe67ccb,_0x4ac6e0(0x15d),_0x4ac6e0(0x15b));return{'projectRoot':_0xe67ccb,'pagesBaseDir':_0x2376e6,'appPagesDir':join(_0x2376e6,_0x5ce5ad),'lockFilePath':join(_0xe67ccb,_0x4ac6e0(0x15d),'page.lock.json')};}export function buildPageFileName(_0x530f1d,_0x51bb82){const _0x25201a=a151_0x49300e;return _0x530f1d+'-'+String(_0x51bb82)[_0x25201a(0x154)]()+'.json';}export function resolvePageFilePath(_0x5bfd62,_0x22b9d2,_0x5bb5a4){return join(_0x5bfd62['appPagesDir'],buildPageFileName(_0x22b9d2,_0x5bb5a4));}export async function ensureParentDirectory(_0x4f956b){await mkdir(dirname(_0x4f956b),{'recursive':!![]});}export async function fileExists(_0x53e1fd){const _0x2b67aa=a151_0x49300e;try{return await access(_0x53e1fd,constants[_0x2b67aa(0x151)]),!![];}catch{return![];}}
1
+ (function(_0x29a4ad,_0x4a382f){const _0x3e9102=a152_0x1ec9,_0x32e615=_0x29a4ad();while(!![]){try{const _0x4b199f=-parseInt(_0x3e9102(0xbc))/0x1+parseInt(_0x3e9102(0xb9))/0x2*(parseInt(_0x3e9102(0xb6))/0x3)+-parseInt(_0x3e9102(0xbe))/0x4+parseInt(_0x3e9102(0xb5))/0x5*(parseInt(_0x3e9102(0xbd))/0x6)+parseInt(_0x3e9102(0xb2))/0x7+parseInt(_0x3e9102(0xb3))/0x8+-parseInt(_0x3e9102(0xbf))/0x9*(parseInt(_0x3e9102(0xb4))/0xa);if(_0x4b199f===_0x4a382f)break;else _0x32e615['push'](_0x32e615['shift']());}catch(_0xbfaa3a){_0x32e615['push'](_0x32e615['shift']());}}}(a152_0x4eb0,0x67d5b));function a152_0x4eb0(){const _0x17ade2=['.json','.rabetbase','597576NxMXOg','56706dfamAf','458348Jvywcl','18sHDQfr','F_OK','4303019mINpKX','3280776JgyCEU','6481430zlrsvq','370IEWkfs','3OoKeAx','page','appPagesDir','1419136NqHqeh'];a152_0x4eb0=function(){return _0x17ade2;};return a152_0x4eb0();}import{constants}from'node:fs';import{access,mkdir}from'node:fs/promises';import{dirname,join,resolve}from'node:path';export function loadPageProjectConfig(_0x21da1b,_0x473084=process['cwd']()){const _0x41a3ca=a152_0x1ec9,_0x137aeb=resolve(_0x473084),_0x39dc8d=join(_0x137aeb,_0x41a3ca(0xbb),_0x41a3ca(0xb7));return{'projectRoot':_0x137aeb,'pagesBaseDir':_0x39dc8d,'appPagesDir':join(_0x39dc8d,_0x21da1b),'lockFilePath':join(_0x137aeb,_0x41a3ca(0xbb),'page.lock.json')};}export function buildPageFileName(_0x5f1e7c,_0x23b025){const _0x313855=a152_0x1ec9;return _0x5f1e7c+'-'+String(_0x23b025)['toUpperCase']()+_0x313855(0xba);}function a152_0x1ec9(_0x254460,_0x21b735){_0x254460=_0x254460-0xb2;const _0x4eb0b9=a152_0x4eb0();let _0x1ec9c2=_0x4eb0b9[_0x254460];return _0x1ec9c2;}export function resolvePageFilePath(_0x4a7272,_0x4e4ee7,_0x2abb99){const _0x345c72=a152_0x1ec9;return join(_0x4a7272[_0x345c72(0xb8)],buildPageFileName(_0x4e4ee7,_0x2abb99));}export async function ensureParentDirectory(_0x3c0cec){await mkdir(dirname(_0x3c0cec),{'recursive':!![]});}export async function fileExists(_0x2c5b66){const _0x3c5aed=a152_0x1ec9;try{return await access(_0x2c5b66,constants[_0x3c5aed(0xc0)]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x1ba056,_0x4c2cd5){const _0x193d0b=a152_0x1263,_0x273936=_0x1ba056();while(!![]){try{const _0x4c0576=-parseInt(_0x193d0b(0x13f))/0x1*(parseInt(_0x193d0b(0x13c))/0x2)+-parseInt(_0x193d0b(0x13e))/0x3+-parseInt(_0x193d0b(0x138))/0x4+-parseInt(_0x193d0b(0x136))/0x5+parseInt(_0x193d0b(0x13a))/0x6+parseInt(_0x193d0b(0x135))/0x7+parseInt(_0x193d0b(0x139))/0x8*(parseInt(_0x193d0b(0x13b))/0x9);if(_0x4c0576===_0x4c2cd5)break;else _0x273936['push'](_0x273936['shift']());}catch(_0x5a4a54){_0x273936['push'](_0x273936['shift']());}}}(a152_0x25a3,0x39a22));import a152_0x45701e from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x3f4d30){const _0x535ecd=a152_0x1263;return JSON['stringify'](JSON[_0x535ecd(0x141)](_0x3f4d30),null,0x2)+'\x0a';}export function computePageContentHash(_0x3f186e){const _0x51c6f3=a152_0x1263;return a152_0x45701e[_0x51c6f3(0x134)]('md5')[_0x51c6f3(0x142)](_0x3f186e)[_0x51c6f3(0x13d)](_0x51c6f3(0x137));}function a152_0x25a3(){const _0x141f27=['1712436LWZeNZ','11976LgMUbo','2263920lEgYiO','4797ROgTXw','138ogyBIq','digest','386856EQcUcZ','132PpEcXy','utf8','parse','update','createHash','425313prbMDw','2168725pNNxpC','hex'];a152_0x25a3=function(){return _0x141f27;};return a152_0x25a3();}function a152_0x1263(_0x439079,_0x56e527){_0x439079=_0x439079-0x134;const _0x25a3bf=a152_0x25a3();let _0x126349=_0x25a3bf[_0x439079];return _0x126349;}export function computeSerializedSchemaHash(_0x25c1f5){return computePageContentHash(serializePageSchemaForFile(_0x25c1f5));}export async function computePageFileHash(_0x14f4fb){const _0x2ed9d9=a152_0x1263,_0xa75a47=await readFile(_0x14f4fb,_0x2ed9d9(0x140));return computePageContentHash(_0xa75a47);}
1
+ function a153_0x3d74(_0x4d9d3b,_0x511873){_0x4d9d3b=_0x4d9d3b-0x154;const _0x4cc711=a153_0x4cc7();let _0x3d7495=_0x4cc711[_0x4d9d3b];return _0x3d7495;}(function(_0x184dd9,_0x493bff){const _0x5eca71=a153_0x3d74,_0x3a6db4=_0x184dd9();while(!![]){try{const _0x1d04b8=parseInt(_0x5eca71(0x159))/0x1*(-parseInt(_0x5eca71(0x163))/0x2)+parseInt(_0x5eca71(0x160))/0x3+-parseInt(_0x5eca71(0x15f))/0x4*(-parseInt(_0x5eca71(0x154))/0x5)+-parseInt(_0x5eca71(0x156))/0x6+parseInt(_0x5eca71(0x15d))/0x7*(-parseInt(_0x5eca71(0x15c))/0x8)+parseInt(_0x5eca71(0x158))/0x9+parseInt(_0x5eca71(0x15e))/0xa;if(_0x1d04b8===_0x493bff)break;else _0x3a6db4['push'](_0x3a6db4['shift']());}catch(_0x2f8e21){_0x3a6db4['push'](_0x3a6db4['shift']());}}}(a153_0x4cc7,0xbc377));import a153_0x1d6c5e from'node:crypto';import{readFile}from'node:fs/promises';export function serializePageSchemaForFile(_0x2a37c4){const _0xcbd404=a153_0x3d74;return JSON['stringify'](JSON[_0xcbd404(0x157)](_0x2a37c4),null,0x2)+'\x0a';}export function computePageContentHash(_0x11714e){const _0x4c492d=a153_0x3d74;return a153_0x1d6c5e[_0x4c492d(0x155)]('md5')[_0x4c492d(0x162)](_0x11714e)[_0x4c492d(0x161)](_0x4c492d(0x15b));}export function computeSerializedSchemaHash(_0x470aa4){return computePageContentHash(serializePageSchemaForFile(_0x470aa4));}function a153_0x4cc7(){const _0xa4415d=['3415iTRJeY','utf8','hex','24fCbSJg','1395359Jyryse','16353180ONCBLH','164228dVbouR','309501Zvtznc','digest','update','802FucsgA','170kKOGeI','createHash','6239058mLSEwY','parse','5794029iPgRQR'];a153_0x4cc7=function(){return _0xa4415d;};return a153_0x4cc7();}export async function computePageFileHash(_0x43a953){const _0x486386=a153_0x3d74,_0x27ae73=await readFile(_0x43a953,_0x486386(0x15a));return computePageContentHash(_0x27ae73);}
@@ -1 +1 @@
1
- (function(_0x9072d0,_0x468dc2){const _0x122cb1=a153_0x13e5,_0x243a20=_0x9072d0();while(!![]){try{const _0x1d7046=parseInt(_0x122cb1(0x76))/0x1*(parseInt(_0x122cb1(0x6f))/0x2)+-parseInt(_0x122cb1(0x79))/0x3+-parseInt(_0x122cb1(0x7c))/0x4+parseInt(_0x122cb1(0x6e))/0x5*(-parseInt(_0x122cb1(0x77))/0x6)+-parseInt(_0x122cb1(0x74))/0x7*(-parseInt(_0x122cb1(0x6c))/0x8)+parseInt(_0x122cb1(0x70))/0x9+-parseInt(_0x122cb1(0x75))/0xa*(-parseInt(_0x122cb1(0x7e))/0xb);if(_0x1d7046===_0x468dc2)break;else _0x243a20['push'](_0x243a20['shift']());}catch(_0x35ae68){_0x243a20['push'](_0x243a20['shift']());}}}(a153_0x7424,0x7c08c));import{mkdir,readFile,writeFile}from'node:fs/promises';function a153_0x7424(){const _0x5ef879=['parse','107212TqTgOq','10SPhgqd','35361cYJDou','1722WzfBHZ','stringify','1762689OnqTmO','Failed\x20to\x20read\x20page\x20lock\x20file:\x20','code','3607948KkcPcI','object','10801439smlnCG','pages','464FglIVc','apps','8815idODYy','18wkbLhy','2835441RRBtWl','utf8','lastSync'];a153_0x7424=function(){return _0x5ef879;};return a153_0x7424();}import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x351ddd,_0xd3adc){const _0x2cbeb8=a153_0x13e5,_0x3d5f92={'apps':_0x351ddd['apps']&&typeof _0x351ddd[_0x2cbeb8(0x6d)]===_0x2cbeb8(0x7d)?_0x351ddd[_0x2cbeb8(0x6d)]:{}};let _0x3dc8b0=_0x3d5f92[_0x2cbeb8(0x6d)][_0xd3adc];if(!_0x3dc8b0)return _0x3dc8b0={'lastSync':'','pages':{}},_0x3d5f92[_0x2cbeb8(0x6d)][_0xd3adc]=_0x3dc8b0,{'lockData':_0x3d5f92,'appLock':_0x3dc8b0};return!_0x3dc8b0[_0x2cbeb8(0x72)]&&(_0x3dc8b0[_0x2cbeb8(0x72)]=''),(!_0x3dc8b0[_0x2cbeb8(0x6b)]||typeof _0x3dc8b0[_0x2cbeb8(0x6b)]!==_0x2cbeb8(0x7d))&&(_0x3dc8b0[_0x2cbeb8(0x6b)]={}),{'lockData':_0x3d5f92,'appLock':_0x3dc8b0};}function a153_0x13e5(_0x20b33d,_0x404858){_0x20b33d=_0x20b33d-0x6b;const _0x742474=a153_0x7424();let _0x13e5f6=_0x742474[_0x20b33d];return _0x13e5f6;}export async function readPageLockFile(_0x3a6b63){const _0x6e45f3=a153_0x13e5;try{const _0x92003e=await readFile(_0x3a6b63,_0x6e45f3(0x71)),_0x43ff9b=JSON[_0x6e45f3(0x73)](_0x92003e);return{'apps':_0x43ff9b[_0x6e45f3(0x6d)]&&typeof _0x43ff9b[_0x6e45f3(0x6d)]===_0x6e45f3(0x7d)?_0x43ff9b['apps']:{}};}catch(_0x1b73f0){if(_0x1b73f0[_0x6e45f3(0x7b)]==='ENOENT')return null;throw new Error(_0x6e45f3(0x7a)+String(_0x1b73f0));}}export async function writePageLockFile(_0x4f2055,_0x3cfa66){const _0x420839=a153_0x13e5;await mkdir(dirname(_0x4f2055),{'recursive':!![]}),await writeFile(_0x4f2055,JSON[_0x420839(0x78)](_0x3cfa66,null,0x2),_0x420839(0x71));}
1
+ (function(_0x332f18,_0x2a5a92){const _0x100242=a154_0x192a,_0x2ababf=_0x332f18();while(!![]){try{const _0x31c010=-parseInt(_0x100242(0x153))/0x1+parseInt(_0x100242(0x15e))/0x2+parseInt(_0x100242(0x154))/0x3+-parseInt(_0x100242(0x160))/0x4+-parseInt(_0x100242(0x157))/0x5*(parseInt(_0x100242(0x152))/0x6)+-parseInt(_0x100242(0x15a))/0x7+parseInt(_0x100242(0x15d))/0x8*(parseInt(_0x100242(0x15c))/0x9);if(_0x31c010===_0x2a5a92)break;else _0x2ababf['push'](_0x2ababf['shift']());}catch(_0x3ed8d2){_0x2ababf['push'](_0x2ababf['shift']());}}}(a154_0x2cac,0xb0dd1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptyPageLock(){return{'apps':{}};}export function ensurePageLockScope(_0x16d937,_0x54e401){const _0x11c5a8=a154_0x192a,_0x1710c1={'apps':_0x16d937['apps']&&typeof _0x16d937['apps']==='object'?_0x16d937[_0x11c5a8(0x161)]:{}};let _0x47aeb6=_0x1710c1[_0x11c5a8(0x161)][_0x54e401];if(!_0x47aeb6)return _0x47aeb6={'lastSync':'','pages':{}},_0x1710c1['apps'][_0x54e401]=_0x47aeb6,{'lockData':_0x1710c1,'appLock':_0x47aeb6};return!_0x47aeb6['lastSync']&&(_0x47aeb6[_0x11c5a8(0x158)]=''),(!_0x47aeb6['pages']||typeof _0x47aeb6[_0x11c5a8(0x15f)]!==_0x11c5a8(0x159))&&(_0x47aeb6[_0x11c5a8(0x15f)]={}),{'lockData':_0x1710c1,'appLock':_0x47aeb6};}export async function readPageLockFile(_0x17aeae){const _0x111b08=a154_0x192a;try{const _0x34a72c=await readFile(_0x17aeae,_0x111b08(0x151)),_0x41bbb3=JSON[_0x111b08(0x15b)](_0x34a72c);return{'apps':_0x41bbb3['apps']&&typeof _0x41bbb3[_0x111b08(0x161)]===_0x111b08(0x159)?_0x41bbb3[_0x111b08(0x161)]:{}};}catch(_0x49f5dd){if(_0x49f5dd[_0x111b08(0x155)]===_0x111b08(0x150))return null;throw new Error('Failed\x20to\x20read\x20page\x20lock\x20file:\x20'+String(_0x49f5dd));}}function a154_0x192a(_0x4cb1f2,_0x31cf7e){_0x4cb1f2=_0x4cb1f2-0x150;const _0x2caca6=a154_0x2cac();let _0x192a6c=_0x2caca6[_0x4cb1f2];return _0x192a6c;}export async function writePageLockFile(_0x7b14bc,_0x1770b9){const _0x101bc4=a154_0x192a;await mkdir(dirname(_0x7b14bc),{'recursive':!![]}),await writeFile(_0x7b14bc,JSON[_0x101bc4(0x156)](_0x1770b9,null,0x2),_0x101bc4(0x151));}function a154_0x2cac(){const _0x4efcf1=['7187628kCWWCP','parse','9873351jYQvXR','16FAygRR','2017588bSUpSf','pages','999392tpwCYS','apps','ENOENT','utf8','2768940YisFhX','353979xIsJuQ','1609986Jzlnrq','code','stringify','15RbHUts','lastSync','object'];a154_0x2cac=function(){return _0x4efcf1;};return a154_0x2cac();}
@@ -1 +1 @@
1
- function a155_0xdbce(_0x113c3e,_0x7682f4){_0x113c3e=_0x113c3e-0x119;const _0x28a08d=a155_0x28a0();let _0xdbcea3=_0x28a08d[_0x113c3e];return _0xdbcea3;}const a155_0x190f54=a155_0xdbce;(function(_0x282abc,_0x4ced92){const _0x521b99=a155_0xdbce,_0x2d109f=_0x282abc();while(!![]){try{const _0x48a463=parseInt(_0x521b99(0x125))/0x1+parseInt(_0x521b99(0x123))/0x2*(-parseInt(_0x521b99(0x126))/0x3)+-parseInt(_0x521b99(0x119))/0x4*(-parseInt(_0x521b99(0x11d))/0x5)+-parseInt(_0x521b99(0x122))/0x6+-parseInt(_0x521b99(0x11f))/0x7+parseInt(_0x521b99(0x11b))/0x8*(-parseInt(_0x521b99(0x11e))/0x9)+-parseInt(_0x521b99(0x121))/0xa*(-parseInt(_0x521b99(0x124))/0xb);if(_0x48a463===_0x4ced92)break;else _0x2d109f['push'](_0x2d109f['shift']());}catch(_0x32d963){_0x2d109f['push'](_0x2d109f['shift']());}}}(a155_0x28a0,0x62e34));function a155_0x28a0(){const _0x2f7a79=['2624fnaqxM','.rabetbase','1652045ddGCvv','13617mLVBcB','4070654tcrgQy','sql.lock.json','20CScPgj','4105338TkiSHE','136354zGkCiB','8062824qsXCzr','438853bzIfjw','3NkQShM','4hZaePm','sql-trash'];a155_0x28a0=function(){return _0x2f7a79;};return a155_0x28a0();}import{resolve}from'node:path';import{findProjectRootDirectory}from'../../context.js';const DOT_DIR=a155_0x190f54(0x11c),LOCK_FILE_NAME=a155_0x190f54(0x120),TRASH_DIR_NAME=a155_0x190f54(0x11a);export function loadSqlProjectConfig(_0xbf42f5,_0x39289e){const _0x4e554a=resolve(_0x39289e??findProjectRootDirectory()),_0x4ffb51=DOT_DIR+'/sql',_0x279003=_0x4ffb51+'/'+_0xbf42f5;return{'projectRoot':_0x4e554a,'appCode':_0xbf42f5,'sqlWorkspaceRoot':_0x4ffb51,'sqlRoot':_0x279003,'sqlRootDir':resolve(_0x4e554a,DOT_DIR,'sql',_0xbf42f5),'lockFilePath':resolve(_0x4e554a,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0x4e554a,DOT_DIR,TRASH_DIR_NAME)};}
1
+ const a156_0x65f86f=a156_0x3518;function a156_0x3518(_0x242bbb,_0x3d0da4){_0x242bbb=_0x242bbb-0x1f2;const _0x414f5a=a156_0x414f();let _0x3518d9=_0x414f5a[_0x242bbb];return _0x3518d9;}(function(_0x3c2b15,_0x283986){const _0x13e2b8=a156_0x3518,_0x29641b=_0x3c2b15();while(!![]){try{const _0xb30326=parseInt(_0x13e2b8(0x1fb))/0x1+parseInt(_0x13e2b8(0x1f8))/0x2+parseInt(_0x13e2b8(0x1f7))/0x3+parseInt(_0x13e2b8(0x1f5))/0x4+-parseInt(_0x13e2b8(0x1f2))/0x5*(parseInt(_0x13e2b8(0x1fd))/0x6)+-parseInt(_0x13e2b8(0x1f3))/0x7*(parseInt(_0x13e2b8(0x1fc))/0x8)+parseInt(_0x13e2b8(0x1f9))/0x9;if(_0xb30326===_0x283986)break;else _0x29641b['push'](_0x29641b['shift']());}catch(_0x48f239){_0x29641b['push'](_0x29641b['shift']());}}}(a156_0x414f,0x9de34));import{resolve}from'node:path';function a156_0x414f(){const _0x234280=['472HgFFNB','186cDquky','/sql','202195ZabREq','15323OKAXKe','sql','1081832yUiuOR','sql.lock.json','2095242niibdR','1190294xVBIfi','3635748vOYoCR','sql-trash','61477MmdPhz'];a156_0x414f=function(){return _0x234280;};return a156_0x414f();}import{findProjectRootDirectory}from'../../context.js';const DOT_DIR='.rabetbase',LOCK_FILE_NAME=a156_0x65f86f(0x1f6),TRASH_DIR_NAME=a156_0x65f86f(0x1fa);export function loadSqlProjectConfig(_0x498b5a,_0x3d1784){const _0x240c6=a156_0x65f86f,_0xc0d086=resolve(_0x3d1784??findProjectRootDirectory()),_0xade26c=DOT_DIR+_0x240c6(0x1fe),_0x53a5c9=_0xade26c+'/'+_0x498b5a;return{'projectRoot':_0xc0d086,'appCode':_0x498b5a,'sqlWorkspaceRoot':_0xade26c,'sqlRoot':_0x53a5c9,'sqlRootDir':resolve(_0xc0d086,DOT_DIR,_0x240c6(0x1f4),_0x498b5a),'lockFilePath':resolve(_0xc0d086,DOT_DIR,LOCK_FILE_NAME),'trashDir':resolve(_0xc0d086,DOT_DIR,TRASH_DIR_NAME)};}
@@ -1 +1 @@
1
- function a156_0x6bee(){const _0x38f41b=['348HCGDmx','1502172mzXETb','indexOf','dbName','length','sql','687033qdRaNf','213127zfZHpw','replace','split','227590GECNGk','toLowerCase','test','60myTSWA','slice','isDirectory','332205WWsGzU','5663NwknoG','4kEqaDl','filter','709178MpjiyX','sqlRootDir','.xml','sqlCode','mode','mybatisXml','3bTEqYh','.sql','ENOENT','code','path','2904UILrEX','sqlName','name','push'];a156_0x6bee=function(){return _0x38f41b;};return a156_0x6bee();}(function(_0x3f14b5,_0x4267a3){const _0x5796bb=a156_0x24e4,_0x419c25=_0x3f14b5();while(!![]){try{const _0x9fba88=parseInt(_0x5796bb(0x81))/0x1+-parseInt(_0x5796bb(0x6b))/0x2*(-parseInt(_0x5796bb(0x71))/0x3)+parseInt(_0x5796bb(0x69))/0x4*(parseInt(_0x5796bb(0x8a))/0x5)+-parseInt(_0x5796bb(0x7b))/0x6+parseInt(_0x5796bb(0x68))/0x7*(-parseInt(_0x5796bb(0x76))/0x8)+parseInt(_0x5796bb(0x80))/0x9*(-parseInt(_0x5796bb(0x87))/0xa)+parseInt(_0x5796bb(0x84))/0xb*(parseInt(_0x5796bb(0x7a))/0xc);if(_0x9fba88===_0x4267a3)break;else _0x419c25['push'](_0x419c25['shift']());}catch(_0x225942){_0x419c25['push'](_0x419c25['shift']());}}}(a156_0x6bee,0x38ab4));import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a156_0x24e4(_0x219d6c,_0x2e5dbe){_0x219d6c=_0x219d6c-0x68;const _0x6beebb=a156_0x6bee();let _0x24e459=_0x6beebb[_0x219d6c];return _0x24e459;}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x5c26bf){const _0x6e5bff=a156_0x24e4;if(_0x5c26bf===_0x6e5bff(0x72))return _0x6e5bff(0x7f);if(_0x5c26bf===_0x6e5bff(0x6d))return _0x6e5bff(0x70);return undefined;}async function scanSqlFilesRecursively(_0x2f3abc,_0x48f152){const _0x5e3a69=a156_0x24e4,_0xd4a8e7=[];try{const _0x33c6e3=await readdir(_0x2f3abc,{'withFileTypes':!![]});for(const _0x1179bc of _0x33c6e3){const _0x526033=join(_0x2f3abc,_0x1179bc[_0x5e3a69(0x78)]);if(_0x1179bc[_0x5e3a69(0x89)]()){_0xd4a8e7[_0x5e3a69(0x79)](...await scanSqlFilesRecursively(_0x526033,_0x48f152));continue;}if(!_0x1179bc['isFile']())continue;const _0x1d67fb=extname(_0x1179bc['name'])[_0x5e3a69(0x85)](),_0x205e1a=extensionToMode(_0x1d67fb);if(!_0x205e1a)continue;const _0x366732=relative(_0x48f152,_0x526033)[_0x5e3a69(0x82)](/\\/g,'/'),_0x579f1d=_0x366732[_0x5e3a69(0x83)]('/')[_0x5e3a69(0x6a)](Boolean),_0x3ccba3=parseSqlPath(_0x579f1d,_0x1179bc['name'],_0x1d67fb);if(!_0x3ccba3)continue;_0xd4a8e7[_0x5e3a69(0x79)]({'sqlCode':_0x3ccba3[_0x5e3a69(0x6e)],'sqlName':_0x3ccba3['sqlName'],'dbDirectory':_0x579f1d[0x0],'filePath':_0x526033,'relativePath':_0x366732,'lockKey':_0x3ccba3[_0x5e3a69(0x6e)],'mode':_0x205e1a});}}catch(_0x5643e9){if(_0x5643e9[_0x5e3a69(0x74)]!==_0x5e3a69(0x73))throw _0x5643e9;}return _0xd4a8e7;}export async function scanLocalSqlQueries(_0x1fb6f){const _0x4fafc9=a156_0x24e4;return scanSqlFilesRecursively(_0x1fb6f[_0x4fafc9(0x6c)],_0x1fb6f[_0x4fafc9(0x6c)]);}export function resolveLocalSqlFilePath(_0x1864ad,_0x1b046e,_0x4ce19d){const _0x11669a=a156_0x24e4,_0x371845=_0x4ce19d?.[_0x11669a(0x75)]||(_0x4ce19d?.[_0x11669a(0x77)]||_0x4ce19d?.[_0x11669a(0x7d)]?buildSqlRelativePath(_0x1b046e,_0x4ce19d?.[_0x11669a(0x77)],_0x4ce19d?.[_0x11669a(0x7d)],_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f),_0x4ce19d?.['dbId']):buildDefaultSqlFileName(_0x1b046e,_0x4ce19d?.[_0x11669a(0x6f)]||_0x11669a(0x7f)));return join(_0x1864ad['sqlRootDir'],_0x371845);}export async function directoryExists(_0x53b372){try{const _0x2d7615=await stat(_0x53b372);return _0x2d7615['isDirectory']();}catch{return![];}}function parseSqlPath(_0x2ea5a5,_0x289c83,_0x168c99){const _0x63aab1=a156_0x24e4,_0x2eb311=_0x289c83[_0x63aab1(0x88)](0x0,-_0x168c99[_0x63aab1(0x7e)]);if(_0x2ea5a5[_0x63aab1(0x7e)]<0x2)return null;const _0x15ca3e=_0x2eb311[_0x63aab1(0x7c)]('_');if(_0x15ca3e<=0x0||_0x15ca3e>=_0x2eb311[_0x63aab1(0x7e)]-0x1)return null;const _0xae821a=_0x2eb311[_0x63aab1(0x88)](0x0,_0x15ca3e);if(!isLikelySqlCode(_0xae821a))return null;return{'sqlCode':_0xae821a,'sqlName':_0x2eb311['slice'](_0x15ca3e+0x1)};}function isLikelySqlCode(_0x29cc6d){const _0x31f130=a156_0x24e4;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x31f130(0x86)](_0x29cc6d);}
1
+ (function(_0xfda9d9,_0x258b27){const _0x151204=a157_0x2f08,_0xdf019=_0xfda9d9();while(!![]){try{const _0xf40a8=parseInt(_0x151204(0x8e))/0x1*(parseInt(_0x151204(0x94))/0x2)+parseInt(_0x151204(0x7b))/0x3+-parseInt(_0x151204(0x8d))/0x4+parseInt(_0x151204(0x99))/0x5+parseInt(_0x151204(0x80))/0x6*(parseInt(_0x151204(0x91))/0x7)+parseInt(_0x151204(0x95))/0x8*(-parseInt(_0x151204(0x82))/0x9)+-parseInt(_0x151204(0x97))/0xa;if(_0xf40a8===_0x258b27)break;else _0xdf019['push'](_0xdf019['shift']());}catch(_0x271a0f){_0xdf019['push'](_0xdf019['shift']());}}}(a157_0x4af5,0x4b807));function a157_0x2f08(_0x4bd742,_0x194685){_0x4bd742=_0x4bd742-0x7b;const _0x4af54f=a157_0x4af5();let _0x2f087d=_0x4af54f[_0x4bd742];return _0x2f087d;}import{readdir,stat}from'node:fs/promises';import{extname,join,relative}from'node:path';function a157_0x4af5(){const _0x415cc0=['slice','sqlName','ENOENT','push','2340492uhBkLK','1315spHApf','name','sql','119182TbrjqD','indexOf','mode','58weOZnd','312KBKjKo','toLowerCase','4364380SRYUni','isDirectory','3000690FkYKzB','1854648mHbbfZ','mybatisXml','dbId','.sql','sqlCode','30DPBnnn','sqlRootDir','2493scgbbv','test','.xml','dbName','split','length','isFile'];a157_0x4af5=function(){return _0x415cc0;};return a157_0x4af5();}import{buildDefaultSqlFileName,buildSqlRelativePath}from'./utils.js';function extensionToMode(_0x53adb0){const _0x251152=a157_0x2f08;if(_0x53adb0===_0x251152(0x7e))return _0x251152(0x90);if(_0x53adb0===_0x251152(0x84))return _0x251152(0x7c);return undefined;}async function scanSqlFilesRecursively(_0x524a0c,_0x53ea8f){const _0x411672=a157_0x2f08,_0x45bbdf=[];try{const _0x124713=await readdir(_0x524a0c,{'withFileTypes':!![]});for(const _0x5dd578 of _0x124713){const _0x188899=join(_0x524a0c,_0x5dd578[_0x411672(0x8f)]);if(_0x5dd578[_0x411672(0x98)]()){_0x45bbdf[_0x411672(0x8c)](...await scanSqlFilesRecursively(_0x188899,_0x53ea8f));continue;}if(!_0x5dd578[_0x411672(0x88)]())continue;const _0x11ed4c=extname(_0x5dd578[_0x411672(0x8f)])[_0x411672(0x96)](),_0x97c2a8=extensionToMode(_0x11ed4c);if(!_0x97c2a8)continue;const _0x1391d8=relative(_0x53ea8f,_0x188899)['replace'](/\\/g,'/'),_0x2e6436=_0x1391d8[_0x411672(0x86)]('/')['filter'](Boolean),_0x4d655d=parseSqlPath(_0x2e6436,_0x5dd578[_0x411672(0x8f)],_0x11ed4c);if(!_0x4d655d)continue;_0x45bbdf['push']({'sqlCode':_0x4d655d['sqlCode'],'sqlName':_0x4d655d['sqlName'],'dbDirectory':_0x2e6436[0x0],'filePath':_0x188899,'relativePath':_0x1391d8,'lockKey':_0x4d655d[_0x411672(0x7f)],'mode':_0x97c2a8});}}catch(_0x16f192){if(_0x16f192['code']!==_0x411672(0x8b))throw _0x16f192;}return _0x45bbdf;}export async function scanLocalSqlQueries(_0x18e034){const _0x473ddf=a157_0x2f08;return scanSqlFilesRecursively(_0x18e034[_0x473ddf(0x81)],_0x18e034['sqlRootDir']);}export function resolveLocalSqlFilePath(_0x5766c6,_0x1e7968,_0x6bb754){const _0x334c89=a157_0x2f08,_0x2efc1e=_0x6bb754?.['path']||(_0x6bb754?.[_0x334c89(0x8a)]||_0x6bb754?.[_0x334c89(0x85)]?buildSqlRelativePath(_0x1e7968,_0x6bb754?.[_0x334c89(0x8a)],_0x6bb754?.['dbName'],_0x6bb754?.[_0x334c89(0x93)]||_0x334c89(0x90),_0x6bb754?.[_0x334c89(0x7d)]):buildDefaultSqlFileName(_0x1e7968,_0x6bb754?.[_0x334c89(0x93)]||_0x334c89(0x90)));return join(_0x5766c6[_0x334c89(0x81)],_0x2efc1e);}export async function directoryExists(_0xb50735){try{const _0x2b103a=await stat(_0xb50735);return _0x2b103a['isDirectory']();}catch{return![];}}function parseSqlPath(_0x506659,_0xc1589b,_0x1091c0){const _0x3ad0ad=a157_0x2f08,_0xa6bec6=_0xc1589b[_0x3ad0ad(0x89)](0x0,-_0x1091c0[_0x3ad0ad(0x87)]);if(_0x506659[_0x3ad0ad(0x87)]<0x2)return null;const _0x85eb17=_0xa6bec6[_0x3ad0ad(0x92)]('_');if(_0x85eb17<=0x0||_0x85eb17>=_0xa6bec6[_0x3ad0ad(0x87)]-0x1)return null;const _0x374554=_0xa6bec6[_0x3ad0ad(0x89)](0x0,_0x85eb17);if(!isLikelySqlCode(_0x374554))return null;return{'sqlCode':_0x374554,'sqlName':_0xa6bec6[_0x3ad0ad(0x89)](_0x85eb17+0x1)};}function isLikelySqlCode(_0x13a82d){const _0x34fab8=a157_0x2f08;return/^[A-Za-z0-9-]+-[A-Za-z0-9-]+$/[_0x34fab8(0x83)](_0x13a82d);}
@@ -1 +1 @@
1
- (function(_0x13f4da,_0x114d87){const _0x38feeb=a157_0x3820,_0x4a510d=_0x13f4da();while(!![]){try{const _0x3cb257=parseInt(_0x38feeb(0x152))/0x1*(-parseInt(_0x38feeb(0x154))/0x2)+parseInt(_0x38feeb(0x14e))/0x3*(-parseInt(_0x38feeb(0x150))/0x4)+-parseInt(_0x38feeb(0x14f))/0x5+parseInt(_0x38feeb(0x14a))/0x6+parseInt(_0x38feeb(0x14d))/0x7*(parseInt(_0x38feeb(0x149))/0x8)+-parseInt(_0x38feeb(0x155))/0x9+parseInt(_0x38feeb(0x151))/0xa;if(_0x3cb257===_0x114d87)break;else _0x4a510d['push'](_0x4a510d['shift']());}catch(_0x24faf3){_0x4a510d['push'](_0x4a510d['shift']());}}}(a157_0xc772,0x27ab3));import{readFile}from'node:fs/promises';function a157_0xc772(){const _0x5971bc=['md5','createHash','7GaVUmZ','2118oeanfS','339990ggkPNb','676LqtGMs','3709650UfkJSd','9rQAedh','hex','29394uTmMEm','1093770zwsVjE','utf8','553552jFEsce','980634RoYnSs'];a157_0xc772=function(){return _0x5971bc;};return a157_0xc772();}import a157_0x2e244d from'node:crypto';export function computeSqlContentHash(_0x4676e1){const _0x4168c4=a157_0x3820;return a157_0x2e244d[_0x4168c4(0x14c)](_0x4168c4(0x14b))['update'](_0x4676e1)['digest'](_0x4168c4(0x153));}function a157_0x3820(_0x8ca272,_0x859103){_0x8ca272=_0x8ca272-0x148;const _0xc772a7=a157_0xc772();let _0x382010=_0xc772a7[_0x8ca272];return _0x382010;}export async function computeSqlFileHash(_0x50c6e4){const _0xa9feb4=a157_0x3820,_0x3c5e4f=await readFile(_0x50c6e4,_0xa9feb4(0x148));return computeSqlContentHash(_0x3c5e4f);}
1
+ function a158_0x4be6(){const _0x5e0246=['1350316gmuUbk','createHash','294777dfQbAP','hex','3dphpqm','3450448MmYtgO','748939dEWlvz','update','md5','640tYCqkx','3803424OVCzAY','8esJnaa','digest','utf8','375930dSmziP','5813752KLXOiN'];a158_0x4be6=function(){return _0x5e0246;};return a158_0x4be6();}(function(_0x247033,_0x2ec57a){const _0x2ffa42=a158_0x559e,_0x5f1c87=_0x247033();while(!![]){try{const _0xedc2b4=parseInt(_0x2ffa42(0x16a))/0x1+parseInt(_0x2ffa42(0x164))/0x2*(parseInt(_0x2ffa42(0x168))/0x3)+parseInt(_0x2ffa42(0x169))/0x4+parseInt(_0x2ffa42(0x162))/0x5+-parseInt(_0x2ffa42(0x16e))/0x6+parseInt(_0x2ffa42(0x163))/0x7*(parseInt(_0x2ffa42(0x16f))/0x8)+parseInt(_0x2ffa42(0x166))/0x9*(-parseInt(_0x2ffa42(0x16d))/0xa);if(_0xedc2b4===_0x2ec57a)break;else _0x5f1c87['push'](_0x5f1c87['shift']());}catch(_0x52b04c){_0x5f1c87['push'](_0x5f1c87['shift']());}}}(a158_0x4be6,0x70dff));function a158_0x559e(_0x2e508a,_0x17fca1){_0x2e508a=_0x2e508a-0x161;const _0x4be6c4=a158_0x4be6();let _0x559e7a=_0x4be6c4[_0x2e508a];return _0x559e7a;}import{readFile}from'node:fs/promises';import a158_0x3224cf from'node:crypto';export function computeSqlContentHash(_0x45c66a){const _0x4d0e84=a158_0x559e;return a158_0x3224cf[_0x4d0e84(0x165)](_0x4d0e84(0x16c))[_0x4d0e84(0x16b)](_0x45c66a)[_0x4d0e84(0x170)](_0x4d0e84(0x167));}export async function computeSqlFileHash(_0x165d2d){const _0x5814a0=a158_0x559e,_0x4e1787=await readFile(_0x165d2d,_0x5814a0(0x161));return computeSqlContentHash(_0x4e1787);}
@@ -1 +1 @@
1
- function a158_0x4eba(_0x1967a9,_0x2a1aac){_0x1967a9=_0x1967a9-0x106;const _0x5779d3=a158_0x5779();let _0x4ebab9=_0x5779d3[_0x1967a9];return _0x4ebab9;}function a158_0x5779(){const _0x2455a1=['104049xBaIti','2128752EWznsw','14196zwyEbz','parse','202722jFlMxJ','stringify','27574ITxqeO','sqlRoot','utf8','sqls','105VlXnkW','lastSync','63115hWyJOt','apps','\x22\x20vs\x20lock\x20\x22','64nlSoAk','490fKCEsf','2292OtXySm','\x22.\x20','27TzbDco','Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20','230NQHBUY','code','1183203wZJAfW'];a158_0x5779=function(){return _0x2455a1;};return a158_0x5779();}(function(_0x4632f0,_0x4b7f2f){const _0x285367=a158_0x4eba,_0x4c7b8c=_0x4632f0();while(!![]){try{const _0x2747ce=-parseInt(_0x285367(0x114))/0x1*(parseInt(_0x285367(0x107))/0x2)+parseInt(_0x285367(0x11a))/0x3+-parseInt(_0x285367(0x11b))/0x4*(parseInt(_0x285367(0x111))/0x5)+parseInt(_0x285367(0x11d))/0x6*(parseInt(_0x285367(0x10b))/0x7)+parseInt(_0x285367(0x110))/0x8*(-parseInt(_0x285367(0x118))/0x9)+parseInt(_0x285367(0x116))/0xa*(parseInt(_0x285367(0x119))/0xb)+-parseInt(_0x285367(0x112))/0xc*(-parseInt(_0x285367(0x10d))/0xd);if(_0x2747ce===_0x4b7f2f)break;else _0x4c7b8c['push'](_0x4c7b8c['shift']());}catch(_0x5bcbf8){_0x4c7b8c['push'](_0x4c7b8c['shift']());}}}(a158_0x5779,0x8fe98));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}export function ensureSqlLockScope(_0x346bb9,_0x50743d,_0x561bca,_0x1eca8e){const _0x2c7224=a158_0x4eba,_0x22dea5=_0x346bb9??createEmptySqlLock();let _0x2852ad=_0x22dea5[_0x2c7224(0x10e)][_0x50743d];if(!_0x2852ad)return _0x2852ad={'sqlRoot':_0x561bca,'lastSync':'','sqls':{}},_0x22dea5['apps'][_0x50743d]=_0x2852ad,{'lockData':_0x22dea5,'appLock':_0x2852ad};if(!_0x2852ad[_0x2c7224(0x108)])_0x2852ad[_0x2c7224(0x108)]=_0x561bca;else{if(_0x2852ad['sqlRoot']!==_0x561bca)throw new Error(_0x1eca8e+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0x561bca+_0x2c7224(0x10f)+_0x2852ad[_0x2c7224(0x108)]+_0x2c7224(0x113)+'Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.');}return!_0x2852ad[_0x2c7224(0x10a)]&&(_0x2852ad[_0x2c7224(0x10a)]={}),!_0x2852ad[_0x2c7224(0x10c)]&&(_0x2852ad[_0x2c7224(0x10c)]=''),{'lockData':_0x22dea5,'appLock':_0x2852ad};}export async function readSqlLockFile(_0x481870){const _0x57d0af=a158_0x4eba;try{const _0x14a689=await readFile(_0x481870,_0x57d0af(0x109));return JSON[_0x57d0af(0x11c)](_0x14a689);}catch(_0x238006){if(_0x238006[_0x57d0af(0x117)]==='ENOENT')return null;throw new Error(_0x57d0af(0x115)+String(_0x238006));}}export async function writeSqlLockFile(_0x479ae2,_0x4e5f68){const _0x12000b=a158_0x4eba;await mkdir(dirname(_0x479ae2),{'recursive':!![]}),await writeFile(_0x479ae2,JSON[_0x12000b(0x106)](_0x4e5f68,null,0x2),_0x12000b(0x109));}
1
+ function a159_0x2458(){const _0xf94b9d=['ENOENT','sqlRoot','apps','code','3502260EJByQK','utf8','Check\x20.rabetbase/sql.lock.json\x20or\x20operate\x20from\x20the\x20correct\x20project\x20directory.','8UPTbPE','sqls','9317312PQkGUd','4419976hqTmRp','3615144JAzcYT','\x22.\x20','\x22\x20vs\x20lock\x20\x22','48rjwPaB','27tdxadf','4915628imJVAW','parse','lastSync','380706PTBAcl','5axWDcK','236541DysJay','7QbEXso'];a159_0x2458=function(){return _0xf94b9d;};return a159_0x2458();}(function(_0x2a1c56,_0x1e4181){const _0x49dbdf=a159_0x18e4,_0x14c4c6=_0x2a1c56();while(!![]){try{const _0x24bed7=parseInt(_0x49dbdf(0xe5))/0x1+parseInt(_0x49dbdf(0xee))/0x2*(parseInt(_0x49dbdf(0xe3))/0x3)+parseInt(_0x49dbdf(0xe0))/0x4+-parseInt(_0x49dbdf(0xe4))/0x5*(-parseInt(_0x49dbdf(0xf2))/0x6)+-parseInt(_0x49dbdf(0xe6))/0x7*(parseInt(_0x49dbdf(0xf0))/0x8)+-parseInt(_0x49dbdf(0xdf))/0x9*(-parseInt(_0x49dbdf(0xeb))/0xa)+parseInt(_0x49dbdf(0xf1))/0xb*(-parseInt(_0x49dbdf(0xde))/0xc);if(_0x24bed7===_0x1e4181)break;else _0x14c4c6['push'](_0x14c4c6['shift']());}catch(_0x16b0b5){_0x14c4c6['push'](_0x14c4c6['shift']());}}}(a159_0x2458,0xd093a));import{mkdir,readFile,writeFile}from'node:fs/promises';import{dirname}from'node:path';export function createEmptySqlLock(){return{'apps':{}};}function a159_0x18e4(_0xacc0cc,_0x2648e0){_0xacc0cc=_0xacc0cc-0xdd;const _0x245864=a159_0x2458();let _0x18e4bf=_0x245864[_0xacc0cc];return _0x18e4bf;}export function ensureSqlLockScope(_0x13fd13,_0x4d43e6,_0xd4aa7b,_0x1e8189){const _0x237f7a=a159_0x18e4,_0x1dc08d=_0x13fd13??createEmptySqlLock();let _0x1b9586=_0x1dc08d[_0x237f7a(0xe9)][_0x4d43e6];if(!_0x1b9586)return _0x1b9586={'sqlRoot':_0xd4aa7b,'lastSync':'','sqls':{}},_0x1dc08d['apps'][_0x4d43e6]=_0x1b9586,{'lockData':_0x1dc08d,'appLock':_0x1b9586};if(!_0x1b9586[_0x237f7a(0xe8)])_0x1b9586[_0x237f7a(0xe8)]=_0xd4aa7b;else{if(_0x1b9586[_0x237f7a(0xe8)]!==_0xd4aa7b)throw new Error(_0x1e8189+':\x20sqlRoot\x20mismatch\x20—\x20current\x20\x22'+_0xd4aa7b+_0x237f7a(0xdd)+_0x1b9586['sqlRoot']+_0x237f7a(0xf3)+_0x237f7a(0xed));}return!_0x1b9586[_0x237f7a(0xef)]&&(_0x1b9586[_0x237f7a(0xef)]={}),!_0x1b9586[_0x237f7a(0xe2)]&&(_0x1b9586['lastSync']=''),{'lockData':_0x1dc08d,'appLock':_0x1b9586};}export async function readSqlLockFile(_0x455640){const _0x4b86aa=a159_0x18e4;try{const _0x213d42=await readFile(_0x455640,'utf8');return JSON[_0x4b86aa(0xe1)](_0x213d42);}catch(_0x5f2d15){if(_0x5f2d15[_0x4b86aa(0xea)]===_0x4b86aa(0xe7))return null;throw new Error('Failed\x20to\x20read\x20SQL\x20lock\x20file:\x20'+String(_0x5f2d15));}}export async function writeSqlLockFile(_0xe850f7,_0x1b13e8){const _0x4321a6=a159_0x18e4;await mkdir(dirname(_0xe850f7),{'recursive':!![]}),await writeFile(_0xe850f7,JSON['stringify'](_0x1b13e8,null,0x2),_0x4321a6(0xec));}
@@ -1 +1 @@
1
- (function(_0xd004c2,_0x3bc343){const _0x2b63fc=a160_0x1b39,_0x4ab141=_0xd004c2();while(!![]){try{const _0x22e045=parseInt(_0x2b63fc(0x104))/0x1*(parseInt(_0x2b63fc(0x102))/0x2)+-parseInt(_0x2b63fc(0xff))/0x3+parseInt(_0x2b63fc(0x106))/0x4*(-parseInt(_0x2b63fc(0x10b))/0x5)+parseInt(_0x2b63fc(0x10e))/0x6*(parseInt(_0x2b63fc(0x107))/0x7)+parseInt(_0x2b63fc(0xfe))/0x8+parseInt(_0x2b63fc(0x109))/0x9*(parseInt(_0x2b63fc(0x100))/0xa)+-parseInt(_0x2b63fc(0x10a))/0xb;if(_0x22e045===_0x3bc343)break;else _0x4ab141['push'](_0x4ab141['shift']());}catch(_0x321925){_0x4ab141['push'](_0x4ab141['shift']());}}}(a160_0x261e,0xdf9d2));function a160_0x1b39(_0x2817ee,_0x5f352c){_0x2817ee=_0x2817ee-0xfd;const _0x261ec5=a160_0x261e();let _0x1b391b=_0x261ec5[_0x2817ee];return _0x1b391b;}export function detectSqlMode(_0x4b5967){const _0x5aa1a0=a160_0x1b39,_0x2fa11e=_0x4b5967[_0x5aa1a0(0x105)]();if(/^<(select|insert|update|delete)\b/i['test'](_0x2fa11e))return'mybatisXml';return'sql';}export function getSqlFileExtension(_0x484641){const _0x3baaec=a160_0x1b39;return _0x484641===_0x3baaec(0x101)?_0x3baaec(0x10c):'.sql';}export function buildDefaultSqlFileName(_0x7c1598,_0x4a9821){return''+_0x7c1598+getSqlFileExtension(_0x4a9821);}export function sanitizeSqlPathSegment(_0x2d7e79,_0x4bf3d0){const _0x5540e7=a160_0x1b39,_0x236de9=String(_0x2d7e79??'')[_0x5540e7(0x108)](),_0x3ed361=_0x236de9[_0x5540e7(0xfd)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x5540e7(0xfd)](/-+/g,'-')[_0x5540e7(0xfd)](/^\.+/,'')[_0x5540e7(0xfd)](/\.+$/,'')[_0x5540e7(0xfd)](/^-+/,'')[_0x5540e7(0xfd)](/-+$/,'');return _0x3ed361||_0x4bf3d0;}export function buildDbDirectoryName(_0xdc094b,_0x1c56eb){const _0x5ea9bf=a160_0x1b39;return sanitizeSqlPathSegment(_0xdc094b,_0x1c56eb!=null?_0x5ea9bf(0x10d)+_0x1c56eb:'unknown-db');}function a160_0x261e(){const _0x3cf453=['66025oVpNnY','.xml','db-','6522lwndbi','replace','4872384VVpVAn','2575878GazLWR','41880sdRjAq','mybatisXml','31054EuXtZD','unknown-sql','71vTCYBf','trimStart','116TFNhoC','2821VQjgmr','trim','882ECoqaU','4427027JOuHUZ'];a160_0x261e=function(){return _0x3cf453;};return a160_0x261e();}export function buildSqlRelativePath(_0x5ecc6c,_0x5e0599,_0x4d91c6,_0x56e243,_0x1bbf73){const _0x455271=a160_0x1b39,_0x150722=buildDbDirectoryName(_0x4d91c6,_0x1bbf73),_0x12e73a=sanitizeSqlPathSegment(_0x5ecc6c,_0x455271(0x103)),_0x106b40=sanitizeSqlPathSegment(_0x5e0599,_0x12e73a);return _0x150722+'/'+_0x12e73a+'_'+_0x106b40+getSqlFileExtension(_0x56e243);}
1
+ (function(_0xdbf713,_0x2076a3){const _0x416291=a161_0x3cd5,_0x17f253=_0xdbf713();while(!![]){try{const _0x55f921=parseInt(_0x416291(0x1d4))/0x1+parseInt(_0x416291(0x1e8))/0x2+parseInt(_0x416291(0x1e6))/0x3*(-parseInt(_0x416291(0x1d6))/0x4)+parseInt(_0x416291(0x1dc))/0x5*(-parseInt(_0x416291(0x1e7))/0x6)+parseInt(_0x416291(0x1df))/0x7+-parseInt(_0x416291(0x1db))/0x8+-parseInt(_0x416291(0x1d5))/0x9*(-parseInt(_0x416291(0x1de))/0xa);if(_0x55f921===_0x2076a3)break;else _0x17f253['push'](_0x17f253['shift']());}catch(_0x889f6e){_0x17f253['push'](_0x17f253['shift']());}}}(a161_0x1198,0x92d10));export function detectSqlMode(_0x273cb5){const _0x52f180=a161_0x3cd5,_0x553064=_0x273cb5[_0x52f180(0x1e0)]();if(/^<(select|insert|update|delete)\b/i[_0x52f180(0x1d9)](_0x553064))return _0x52f180(0x1e2);return _0x52f180(0x1e3);}export function getSqlFileExtension(_0x17657e){const _0x576773=a161_0x3cd5;return _0x17657e==='mybatisXml'?_0x576773(0x1e1):_0x576773(0x1e5);}function a161_0x1198(){const _0x448e2a=['unknown-db','20pAoeNG','3161746RDUiQB','trimStart','.xml','mybatisXml','sql','db-','.sql','4101UskXnI','18lgEUfB','417090jZWZEf','803834lcSDFA','5921091TVSTTl','132TyhEBE','unknown-sql','replace','test','trim','7893000XGbazH','1911265iVslvd'];a161_0x1198=function(){return _0x448e2a;};return a161_0x1198();}export function buildDefaultSqlFileName(_0x5514ae,_0xfee91d){return''+_0x5514ae+getSqlFileExtension(_0xfee91d);}export function sanitizeSqlPathSegment(_0x487dcb,_0x45c12f){const _0x6ca19=a161_0x3cd5,_0x38c1df=String(_0x487dcb??'')[_0x6ca19(0x1da)](),_0x5405c5=_0x38c1df[_0x6ca19(0x1d8)](/[<>:"/\\|?*\u0000-\u001F]/g,'-')['replace'](/\s+/g,'-')[_0x6ca19(0x1d8)](/-+/g,'-')[_0x6ca19(0x1d8)](/^\.+/,'')[_0x6ca19(0x1d8)](/\.+$/,'')['replace'](/^-+/,'')[_0x6ca19(0x1d8)](/-+$/,'');return _0x5405c5||_0x45c12f;}function a161_0x3cd5(_0xd64812,_0x27c40e){_0xd64812=_0xd64812-0x1d4;const _0x1198a7=a161_0x1198();let _0x3cd52f=_0x1198a7[_0xd64812];return _0x3cd52f;}export function buildDbDirectoryName(_0x48c281,_0x2192ce){const _0x186a4b=a161_0x3cd5;return sanitizeSqlPathSegment(_0x48c281,_0x2192ce!=null?_0x186a4b(0x1e4)+_0x2192ce:_0x186a4b(0x1dd));}export function buildSqlRelativePath(_0x5af89d,_0x27801d,_0x449fbb,_0x59d5b4,_0x4b9e4c){const _0x59e00d=a161_0x3cd5,_0x49b0e4=buildDbDirectoryName(_0x449fbb,_0x4b9e4c),_0x3872cf=sanitizeSqlPathSegment(_0x5af89d,_0x59e00d(0x1d7)),_0x2dc3c6=sanitizeSqlPathSegment(_0x27801d,_0x3872cf);return _0x49b0e4+'/'+_0x3872cf+'_'+_0x2dc3c6+getSqlFileExtension(_0x59d5b4);}
@@ -1 +1 @@
1
- (function(_0x55db01,_0x5b1b07){const _0x2e67a0=a161_0x570a,_0x14be9f=_0x55db01();while(!![]){try{const _0x30265c=-parseInt(_0x2e67a0(0xf5))/0x1*(-parseInt(_0x2e67a0(0xe6))/0x2)+-parseInt(_0x2e67a0(0xf7))/0x3+-parseInt(_0x2e67a0(0xef))/0x4+parseInt(_0x2e67a0(0xdf))/0x5+parseInt(_0x2e67a0(0xdd))/0x6+-parseInt(_0x2e67a0(0xf6))/0x7*(-parseInt(_0x2e67a0(0xe8))/0x8)+parseInt(_0x2e67a0(0xf0))/0x9;if(_0x30265c===_0x5b1b07)break;else _0x14be9f['push'](_0x14be9f['shift']());}catch(_0x5aea6d){_0x14be9f['push'](_0x14be9f['shift']());}}}(a161_0x5210,0xa1236));export function detectSqlType(_0x1e153b){const _0x5d8915=a161_0x570a;if(!_0x1e153b?.[_0x5d8915(0xda)]())return{'type':_0x5d8915(0xe4),'isSelectOnly':![],'isDangerous':![],'reason':_0x5d8915(0xde)};const _0x4d39d2=_0x1e153b['replace'](/#\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/\$\{[^}]*\}/g,'?')[_0x5d8915(0xd8)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x5d8915(0xd8)](/\/\*[\s\S]*?\*\//g,'')[_0x5d8915(0xda)](),_0x4a6a2b=_0x4d39d2[_0x5d8915(0xea)]('\x0a');let _0x4eb277='';for(const _0x50f260 of _0x4a6a2b){const _0x45f6f1=_0x50f260[_0x5d8915(0xda)]();if(!_0x45f6f1||_0x45f6f1[_0x5d8915(0xd9)]('--')||_0x45f6f1[_0x5d8915(0xd9)]('/*'))continue;_0x4eb277=_0x45f6f1;break;}const _0x368172=_0x4eb277[_0x5d8915(0xd7)]();if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe0))||_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf2))){const _0x196aeb=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x5d8915(0xf3)](_0x4d39d2);return{'type':'SELECT','isSelectOnly':!_0x196aeb,'isDangerous':_0x196aeb,'reason':_0x196aeb?_0x5d8915(0xe5):undefined};}if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xf9)))return{'type':_0x5d8915(0xf9),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xe2)))return{'type':_0x5d8915(0xe2),'isSelectOnly':![],'isDangerous':![]};if(_0x368172[_0x5d8915(0xd9)](_0x5d8915(0xdc)))return{'type':_0x5d8915(0xdc),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xf4)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x368172))return{'type':_0x5d8915(0xf8),'isSelectOnly':![],'isDangerous':!![],'reason':_0x5d8915(0xfa)};return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x42cdeb){const _0x510afc=a161_0x570a,_0x4c494f=_0x42cdeb[_0x510afc(0xd8)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x510afc(0xd8)](/'[^']*'/g,'\x27\x27')[_0x510afc(0xd8)](/--.*$/gm,'')[_0x510afc(0xd8)](/\/\*[\s\S]*?\*\//g,''),_0x1147e1=[],_0xd9b503=_0x4c494f[_0x510afc(0xe7)](/FROM\s+([^\s,)(]+)/i);if(_0xd9b503?.[0x1])_0x1147e1[_0x510afc(0xfd)](_0xd9b503[0x1][_0x510afc(0xd8)](/[`"]/g,''));for(const _0x26b337 of _0x4c494f['matchAll'](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x3c597f=_0x26b337[0x1]?.['replace'](/[`"]/g,'');if(_0x3c597f&&!_0x1147e1['includes'](_0x3c597f))_0x1147e1[_0x510afc(0xfd)](_0x3c597f);}const _0x51a76a=_0x4c494f['match'](/INTO\s+([^\s(]+)/i);if(_0x51a76a?.[0x1]){const _0xd30fb1=_0x51a76a[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0xd30fb1))_0x1147e1[_0x510afc(0xfd)](_0xd30fb1);}const _0x108ab7=_0x4c494f[_0x510afc(0xe7)](/UPDATE\s+([^\s,)(]+)/i);if(_0x108ab7?.[0x1]){const _0x572194=_0x108ab7[0x1][_0x510afc(0xd8)](/[`"]/g,'');if(!_0x1147e1[_0x510afc(0xec)](_0x572194))_0x1147e1[_0x510afc(0xfd)](_0x572194);}return _0x1147e1;}function a161_0x5210(){const _0x82b8ce=['startsWith','trim','isDangerous','DELETE','102972SwVoXY','SQL\x20content\x20is\x20empty','1755110GABsIp','SELECT','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','UPDATE','type','UNKNOWN','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','110itxMWR','match','2111112EZawea','from','split','matchAll','includes','join','\x20query\x20targeting\x20','3025248JBvHoO','7001100oxhrzh','unknown\x20table(s)','WITH','test','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','4303mgoZan','14iiKzOR','1482579ZqAFhI','DDL','INSERT','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','\x20with\x20parameters:\x20','length','push','toUpperCase','replace'];a161_0x5210=function(){return _0x82b8ce;};return a161_0x5210();}function extractParameters(_0x39b642){const _0x35a579=a161_0x570a,_0x3cf406=new Set();for(const _0x5adf88 of _0x39b642[_0x35a579(0xeb)](/#\{(\w+)\}/g))if(_0x5adf88[0x1])_0x3cf406['add'](_0x5adf88[0x1]);for(const _0x196ea8 of _0x39b642[_0x35a579(0xeb)](/\$\{(\w+)\}/g))if(_0x196ea8[0x1])_0x3cf406['add'](_0x196ea8[0x1]);return Array[_0x35a579(0xe9)](_0x3cf406);}function a161_0x570a(_0x2fe0cd,_0x55d242){_0x2fe0cd=_0x2fe0cd-0xd7;const _0x5210b9=a161_0x5210();let _0x570a8f=_0x5210b9[_0x2fe0cd];return _0x570a8f;}export function validateSql(_0x4c0ea6){const _0x4c333e=a161_0x570a,_0x5cfb2a=detectSqlType(_0x4c0ea6),_0x2a7d81=extractTables(_0x4c0ea6),_0x6d0aeb=extractParameters(_0x4c0ea6);if(_0x5cfb2a[_0x4c333e(0xdb)])return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a['reason']||_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xe1)};if(_0x5cfb2a['type']==='UNKNOWN')return{'valid':![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':'Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.'};return{'valid':!![],'sqlType':_0x5cfb2a,'tables':_0x2a7d81,'parameters':_0x6d0aeb,'message':_0x5cfb2a[_0x4c333e(0xe3)]+_0x4c333e(0xee)+(_0x2a7d81[_0x4c333e(0xfc)]?_0x2a7d81['join'](',\x20'):_0x4c333e(0xf1))+(_0x6d0aeb['length']?_0x4c333e(0xfb)+_0x6d0aeb[_0x4c333e(0xed)](',\x20'):'')};}
1
+ (function(_0x42bdd1,_0x3c0cc4){const _0x5666b5=a162_0x1426,_0x309d56=_0x42bdd1();while(!![]){try{const _0x4ec458=-parseInt(_0x5666b5(0x179))/0x1*(parseInt(_0x5666b5(0x18d))/0x2)+-parseInt(_0x5666b5(0x18e))/0x3+-parseInt(_0x5666b5(0x174))/0x4+-parseInt(_0x5666b5(0x176))/0x5+parseInt(_0x5666b5(0x18f))/0x6+-parseInt(_0x5666b5(0x192))/0x7+parseInt(_0x5666b5(0x188))/0x8;if(_0x4ec458===_0x3c0cc4)break;else _0x309d56['push'](_0x309d56['shift']());}catch(_0x1027c1){_0x309d56['push'](_0x309d56['shift']());}}}(a162_0x47ab,0x64b8e));export function detectSqlType(_0x2b4d10){const _0x536a65=a162_0x1426;if(!_0x2b4d10?.[_0x536a65(0x178)]())return{'type':'UNKNOWN','isSelectOnly':![],'isDangerous':![],'reason':_0x536a65(0x187)};const _0x48ffa2=_0x2b4d10[_0x536a65(0x196)](/#\{[^}]*\}/g,'?')['replace'](/\$\{[^}]*\}/g,'?')[_0x536a65(0x196)](/@[^(\s]+(\([^)]*\))?/g,'')[_0x536a65(0x196)](/\/\*[\s\S]*?\*\//g,'')[_0x536a65(0x178)](),_0x42586d=_0x48ffa2[_0x536a65(0x194)]('\x0a');let _0x407ef4='';for(const _0x5a9008 of _0x42586d){const _0xb3a74=_0x5a9008[_0x536a65(0x178)]();if(!_0xb3a74||_0xb3a74[_0x536a65(0x189)]('--')||_0xb3a74[_0x536a65(0x189)]('/*'))continue;_0x407ef4=_0xb3a74;break;}const _0x14f332=_0x407ef4[_0x536a65(0x18b)]();if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x177))||_0x14f332[_0x536a65(0x189)]('WITH')){const _0x49953a=/\b(INSERT|UPDATE|DELETE|DROP|ALTER|CREATE|TRUNCATE)\b/i[_0x536a65(0x173)](_0x48ffa2);return{'type':_0x536a65(0x177),'isSelectOnly':!_0x49953a,'isDangerous':_0x49953a,'reason':_0x49953a?_0x536a65(0x195):undefined};}if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x193)))return{'type':'INSERT','isSelectOnly':![],'isDangerous':![]};if(_0x14f332[_0x536a65(0x189)](_0x536a65(0x18c)))return{'type':_0x536a65(0x18c),'isSelectOnly':![],'isDangerous':![]};if(_0x14f332[_0x536a65(0x189)]('DELETE'))return{'type':_0x536a65(0x183),'isSelectOnly':![],'isDangerous':!![],'reason':_0x536a65(0x17e)};if(/^(CREATE|ALTER|DROP|TRUNCATE)/i['test'](_0x14f332))return{'type':_0x536a65(0x186),'isSelectOnly':![],'isDangerous':!![],'reason':_0x536a65(0x199)};return{'type':_0x536a65(0x190),'isSelectOnly':![],'isDangerous':![]};}function extractTables(_0x299edd){const _0x5238d1=a162_0x1426,_0x2805fa=_0x299edd['replace'](/#\{[^}]*\}/g,'?')[_0x5238d1(0x196)](/\$\{[^}]*\}/g,'?')[_0x5238d1(0x196)](/'[^']*'/g,'\x27\x27')['replace'](/--.*$/gm,'')['replace'](/\/\*[\s\S]*?\*\//g,''),_0x533656=[],_0x503dae=_0x2805fa[_0x5238d1(0x198)](/FROM\s+([^\s,)(]+)/i);if(_0x503dae?.[0x1])_0x533656[_0x5238d1(0x185)](_0x503dae[0x1][_0x5238d1(0x196)](/[`"]/g,''));for(const _0x7d4795 of _0x2805fa[_0x5238d1(0x18a)](/(?:INNER|LEFT|RIGHT|FULL|CROSS)?\s*JOIN\s+([^\s,)(]+)/gi)){const _0x15b256=_0x7d4795[0x1]?.['replace'](/[`"]/g,'');if(_0x15b256&&!_0x533656['includes'](_0x15b256))_0x533656[_0x5238d1(0x185)](_0x15b256);}const _0x1aee4d=_0x2805fa[_0x5238d1(0x198)](/INTO\s+([^\s(]+)/i);if(_0x1aee4d?.[0x1]){const _0x1c2d9b=_0x1aee4d[0x1]['replace'](/[`"]/g,'');if(!_0x533656['includes'](_0x1c2d9b))_0x533656[_0x5238d1(0x185)](_0x1c2d9b);}const _0x3652e3=_0x2805fa[_0x5238d1(0x198)](/UPDATE\s+([^\s,)(]+)/i);if(_0x3652e3?.[0x1]){const _0x16e191=_0x3652e3[0x1][_0x5238d1(0x196)](/[`"]/g,'');if(!_0x533656[_0x5238d1(0x17d)](_0x16e191))_0x533656[_0x5238d1(0x185)](_0x16e191);}return _0x533656;}function a162_0x1426(_0x372763,_0x4b2f97){_0x372763=_0x372763-0x173;const _0x47abff=a162_0x47ab();let _0x1426ff=_0x47abff[_0x372763];return _0x1426ff;}function extractParameters(_0x107110){const _0x557fa8=a162_0x1426,_0x5f4be8=new Set();for(const _0x260691 of _0x107110[_0x557fa8(0x18a)](/#\{(\w+)\}/g))if(_0x260691[0x1])_0x5f4be8[_0x557fa8(0x182)](_0x260691[0x1]);for(const _0x400c33 of _0x107110[_0x557fa8(0x18a)](/\$\{(\w+)\}/g))if(_0x400c33[0x1])_0x5f4be8[_0x557fa8(0x182)](_0x400c33[0x1]);return Array[_0x557fa8(0x197)](_0x5f4be8);}function a162_0x47ab(){const _0x437e72=['matchAll','toUpperCase','UPDATE','7110cGckTz','2251281vuNGCt','4587408NSXNPh','UNKNOWN','Unable\x20to\x20detect\x20SQL\x20type.\x20Please\x20check\x20the\x20SQL\x20content.','4106501PNifPv','INSERT','split','SQL\x20contains\x20modification\x20statements\x20alongside\x20SELECT','replace','from','match','DDL\x20statements\x20are\x20blocked\x20from\x20auto-save','test','1466620mbrHZX','join','3503380qaDDXU','SELECT','trim','79EwrgJW','length','unknown\x20table(s)','type','includes','DELETE\x20statements\x20are\x20blocked\x20from\x20auto-save','reason','\x20with\x20parameters:\x20','\x20query\x20targeting\x20','add','DELETE','\x20statements\x20cannot\x20be\x20auto-saved.\x20Please\x20operate\x20manually\x20on\x20the\x20platform.','push','DDL','SQL\x20content\x20is\x20empty','18665888KquLzZ','startsWith'];a162_0x47ab=function(){return _0x437e72;};return a162_0x47ab();}export function validateSql(_0x5d4b8a){const _0x48ce26=a162_0x1426,_0xcd58e7=detectSqlType(_0x5d4b8a),_0x2d9767=extractTables(_0x5d4b8a),_0x57ced4=extractParameters(_0x5d4b8a);if(_0xcd58e7['isDangerous'])return{'valid':![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0xcd58e7[_0x48ce26(0x17f)]||_0xcd58e7[_0x48ce26(0x17c)]+_0x48ce26(0x184)};if(_0xcd58e7[_0x48ce26(0x17c)]===_0x48ce26(0x190))return{'valid':![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0x48ce26(0x191)};return{'valid':!![],'sqlType':_0xcd58e7,'tables':_0x2d9767,'parameters':_0x57ced4,'message':_0xcd58e7['type']+_0x48ce26(0x181)+(_0x2d9767[_0x48ce26(0x17a)]?_0x2d9767[_0x48ce26(0x175)](',\x20'):_0x48ce26(0x17b))+(_0x57ced4[_0x48ce26(0x17a)]?_0x48ce26(0x180)+_0x57ced4['join'](',\x20'):'')};}
package/lib/errors.js CHANGED
@@ -1 +1 @@
1
- const a162_0x5d7361=a162_0x1195;(function(_0x36c865,_0x5108b4){const _0x439007=a162_0x1195,_0x4dc649=_0x36c865();while(!![]){try{const _0x111fd8=-parseInt(_0x439007(0x1df))/0x1*(-parseInt(_0x439007(0x1d9))/0x2)+parseInt(_0x439007(0x1db))/0x3+-parseInt(_0x439007(0x1e4))/0x4*(-parseInt(_0x439007(0x1e8))/0x5)+parseInt(_0x439007(0x1da))/0x6+-parseInt(_0x439007(0x1eb))/0x7+-parseInt(_0x439007(0x1e1))/0x8*(parseInt(_0x439007(0x1e0))/0x9)+parseInt(_0x439007(0x1e9))/0xa*(-parseInt(_0x439007(0x1e7))/0xb);if(_0x111fd8===_0x5108b4)break;else _0x4dc649['push'](_0x4dc649['shift']());}catch(_0x563274){_0x4dc649['push'](_0x4dc649['shift']());}}}(a162_0x2635,0x9059b));function a162_0x2635(){const _0x1a732c=['join','3385620Lqobdi','4GPrLCx','1299930lUuRty','2485998pdolmV','\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','429242IgVPOr','9gzTAsE','7563000GrfqRf','Run\x20`','Tip:\x20`','183116kPIuNX','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','\x20auth`\x20to\x20login\x20first.','22RnCydb','15MbtUZU','104240jPmDFI'];a162_0x2635=function(){return _0x1a732c;};return a162_0x2635();}function a162_0x1195(_0x4fd49a,_0x5ac76e){_0x4fd49a=_0x4fd49a-0x1d9;const _0x2635b1=a162_0x2635();let _0x119577=_0x2635b1[_0x4fd49a];return _0x119577;}import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a162_0x5d7361(0x1e2)+CLI_BIN_NAME+a162_0x5d7361(0x1e6),'configMissingHint':[a162_0x5d7361(0x1de)+CLI_BIN_NAME+a162_0x5d7361(0x1dd),a162_0x5d7361(0x1e3)+CLI_BIN_NAME+a162_0x5d7361(0x1dc)][a162_0x5d7361(0x1ea)]('\x0a\x20\x20\x20\x20\x20\x20\x20'),'notInProjectHint':a162_0x5d7361(0x1e5)});
1
+ function a163_0xbff6(_0x313f20,_0x248e16){_0x313f20=_0x313f20-0x99;const _0x77e01a=a163_0x77e0();let _0xbff653=_0x77e01a[_0x313f20];return _0xbff653;}const a163_0x15dcc1=a163_0xbff6;(function(_0x2a0559,_0x40f191){const _0x44e40f=a163_0xbff6,_0x44907c=_0x2a0559();while(!![]){try{const _0x2f6003=parseInt(_0x44e40f(0xa6))/0x1*(parseInt(_0x44e40f(0x9a))/0x2)+parseInt(_0x44e40f(0xa7))/0x3*(-parseInt(_0x44e40f(0x9f))/0x4)+-parseInt(_0x44e40f(0xa8))/0x5+-parseInt(_0x44e40f(0xa5))/0x6*(-parseInt(_0x44e40f(0xa9))/0x7)+-parseInt(_0x44e40f(0x99))/0x8+parseInt(_0x44e40f(0xa4))/0x9*(-parseInt(_0x44e40f(0x9c))/0xa)+-parseInt(_0x44e40f(0xa0))/0xb*(-parseInt(_0x44e40f(0xab))/0xc);if(_0x2f6003===_0x40f191)break;else _0x44907c['push'](_0x44907c['shift']());}catch(_0x621fac){_0x44907c['push'](_0x44907c['shift']());}}}(a163_0x77e0,0x44478));import{CliError,createCliErrors}from'@lovrabet/cli-framework';import{CLI_BIN_NAME}from'./constant/cli.js';function a163_0x77e0(){const _0x188276=['2464005VmmLdW','14245hLfYgM','Tip:\x20`','72TQgJId','1369200znnFuJ','9702lAtSuB','Run\x20`','1150yfFvtG','\x20auth`\x20to\x20login\x20first.','Run\x20this\x20command\x20inside\x20a\x20project\x20with\x20.rabetbase.json\x20file.','35324jIHRnH','1698224GqdXiF','\x0a\x20\x20\x20\x20\x20\x20\x20','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','Set\x20appcode\x20via\x20`','31365hyPETX','138yDYCGa','82ahyzYE','9BRilMZ'];a163_0x77e0=function(){return _0x188276;};return a163_0x77e0();}export{CliError};export const CliErrors=createCliErrors({'cliBinName':CLI_BIN_NAME,'authRequiredHint':a163_0x15dcc1(0x9b)+CLI_BIN_NAME+a163_0x15dcc1(0x9d),'configMissingHint':[a163_0x15dcc1(0xa3)+CLI_BIN_NAME+a163_0x15dcc1(0xa2),a163_0x15dcc1(0xaa)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20--global`\x20registers\x20globally\x20so\x20you\x20can\x20use\x20it\x20from\x20anywhere.']['join'](a163_0x15dcc1(0xa1)),'notInProjectHint':a163_0x15dcc1(0x9e)});
@@ -1 +1 @@
1
- function a163_0x5891(_0x37ca49,_0x4ff068){_0x37ca49=_0x37ca49-0x176;var _0x43c11d=a163_0x43c1();var _0x5891b0=_0x43c11d[_0x37ca49];return _0x5891b0;}function a163_0x43c1(){var _0x479911=['3214716GQxmae','18sSlaCU','1450017NUZWaZ','3047sgzApZ','33772blIRau','6MCvydd','148BxqUAb','538625hBeXww','762713MnukEl','6070306DyPdIP','39PYMaIx','10MrnUjC','16lSIntn'];a163_0x43c1=function(){return _0x479911;};return a163_0x43c1();}(function(_0x33dc78,_0x37ed9b){var _0x44c5a8=a163_0x5891,_0x569dc3=_0x33dc78();while(!![]){try{var _0x500c6e=parseInt(_0x44c5a8(0x17f))/0x1*(parseInt(_0x44c5a8(0x182))/0x2)+parseInt(_0x44c5a8(0x181))/0x3*(parseInt(_0x44c5a8(0x180))/0x4)+-parseInt(_0x44c5a8(0x176))/0x5+parseInt(_0x44c5a8(0x17d))/0x6*(-parseInt(_0x44c5a8(0x177))/0x7)+-parseInt(_0x44c5a8(0x17b))/0x8*(-parseInt(_0x44c5a8(0x17e))/0x9)+-parseInt(_0x44c5a8(0x17a))/0xa*(parseInt(_0x44c5a8(0x178))/0xb)+parseInt(_0x44c5a8(0x17c))/0xc*(parseInt(_0x44c5a8(0x179))/0xd);if(_0x500c6e===_0x37ed9b)break;else _0x569dc3['push'](_0x569dc3['shift']());}catch(_0x15670f){_0x569dc3['push'](_0x569dc3['shift']());}}}(a163_0x43c1,0x5d37d));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a163_0x1e7289}from'@lovrabet/cli-framework';export function buildAllFlags(_0x611b36){return a163_0x1e7289(_0x611b36,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
1
+ (function(_0x45f0a1,_0x3a7c5a){var _0x21735b=a164_0x2d68,_0x41cd79=_0x45f0a1();while(!![]){try{var _0x3ee2ee=-parseInt(_0x21735b(0xc7))/0x1+parseInt(_0x21735b(0xc9))/0x2*(-parseInt(_0x21735b(0xc8))/0x3)+-parseInt(_0x21735b(0xc2))/0x4+-parseInt(_0x21735b(0xc4))/0x5*(parseInt(_0x21735b(0xc3))/0x6)+parseInt(_0x21735b(0xc5))/0x7+parseInt(_0x21735b(0xc6))/0x8*(parseInt(_0x21735b(0xcb))/0x9)+-parseInt(_0x21735b(0xca))/0xa;if(_0x3ee2ee===_0x3a7c5a)break;else _0x41cd79['push'](_0x41cd79['shift']());}catch(_0x4ef94c){_0x41cd79['push'](_0x41cd79['shift']());}}}(a164_0x1e30,0x7cefd));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a164_0x1e30(){var _0x483402=['39194pXexJh','1528650epndJl','7884360suJktq','72240cuasVw','12SwqWIt','325605dwefvn','2381589QLeKiE','8RgSMGS','324971raWNWq','12IlregE'];a164_0x1e30=function(){return _0x483402;};return a164_0x1e30();}import{buildAllFlags as a164_0x2c1d62}from'@lovrabet/cli-framework';function a164_0x2d68(_0x1e6cd9,_0x13d88d){_0x1e6cd9=_0x1e6cd9-0xc2;var _0x1e30c5=a164_0x1e30();var _0x2d6816=_0x1e30c5[_0x1e6cd9];return _0x2d6816;}export function buildAllFlags(_0x1ed4cb){return a164_0x2c1d62(_0x1ed4cb,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
@@ -1 +1 @@
1
- const a164_0x30d49d=a164_0x453f;function a164_0x3730(){const _0x5acd86=['991206HsrZUP','557588OiAudP','219324ejLArC','validateFlags','52300oKJFFs','2UufIQd','776690AOpLXN','666mCqdvD','199904NTuDrO','14svpxqT','658328enMNml'];a164_0x3730=function(){return _0x5acd86;};return a164_0x3730();}(function(_0xde8610,_0x5c81d0){const _0x8c2d96=a164_0x453f,_0x1efac1=_0xde8610();while(!![]){try{const _0x3237bf=parseInt(_0x8c2d96(0x1e9))/0x1*(-parseInt(_0x8c2d96(0x1e6))/0x2)+parseInt(_0x8c2d96(0x1ee))/0x3+parseInt(_0x8c2d96(0x1ed))/0x4+parseInt(_0x8c2d96(0x1e7))/0x5+parseInt(_0x8c2d96(0x1ec))/0x6+parseInt(_0x8c2d96(0x1ea))/0x7*(parseInt(_0x8c2d96(0x1eb))/0x8)+parseInt(_0x8c2d96(0x1e8))/0x9*(-parseInt(_0x8c2d96(0x1e5))/0xa);if(_0x3237bf===_0x5c81d0)break;else _0x1efac1['push'](_0x1efac1['shift']());}catch(_0x45fdf6){_0x1efac1['push'](_0x1efac1['shift']());}}}(a164_0x3730,0x1b06e));import{createFlagHelpers}from'@lovrabet/cli-framework';function a164_0x453f(_0x154310,_0x3fbecf){_0x154310=_0x154310-0x1e5;const _0x3730fb=a164_0x3730();let _0x453f0a=_0x3730fb[_0x154310];return _0x453f0a;}import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];export const validateFlags=helpers[a164_0x30d49d(0x1ef)];
1
+ (function(_0x4bcbfd,_0x4fac7d){const _0x3c64a7=a165_0x505e,_0x321dbd=_0x4bcbfd();while(!![]){try{const _0x3bcf32=-parseInt(_0x3c64a7(0x14b))/0x1*(-parseInt(_0x3c64a7(0x14c))/0x2)+-parseInt(_0x3c64a7(0x148))/0x3+-parseInt(_0x3c64a7(0x147))/0x4+-parseInt(_0x3c64a7(0x146))/0x5+parseInt(_0x3c64a7(0x145))/0x6+parseInt(_0x3c64a7(0x149))/0x7*(parseInt(_0x3c64a7(0x14d))/0x8)+parseInt(_0x3c64a7(0x14a))/0x9;if(_0x3bcf32===_0x4fac7d)break;else _0x321dbd['push'](_0x321dbd['shift']());}catch(_0x2f5ea3){_0x321dbd['push'](_0x321dbd['shift']());}}}(a165_0x3def,0x771af));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a165_0x505e(_0x39afbf,_0x2b6f67){_0x39afbf=_0x39afbf-0x145;const _0x3def49=a165_0x3def();let _0x505eea=_0x3def49[_0x39afbf];return _0x505eea;}const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a165_0x3def(){const _0x5c4ef9=['3GkQDJU','304518CZOFWd','2680WzRuxW','5116230SHWaGi','3221725zGcLMr','2039512wXIgVi','267399FPcwyR','4655VBIjgK','1790586kUBHvR'];a165_0x3def=function(){return _0x5c4ef9;};return a165_0x3def();}export const validateFlags=helpers['validateFlags'];
@@ -1 +1 @@
1
- const a165_0x542685=a165_0x5d8f;function a165_0x5e43(){const _0x24b5c8=['11134386OOXVWY','10YcLBgc','Requires\x20appcode\x20(set\x20via\x20`','842087dLMjSy','4034868KULnnd','\x20project\x20init`\x20or\x20--appcode).','generateCommandHelp','1887148XHyyYV','201999cltIOk','2xvduiA','5PWxQTP','2671328JfHtWO','6677360ZanhQe','3KzAYDT'];a165_0x5e43=function(){return _0x24b5c8;};return a165_0x5e43();}(function(_0x850f5d,_0x45d9a4){const _0x23ced9=a165_0x5d8f,_0x476050=_0x850f5d();while(!![]){try{const _0x1c38a8=-parseInt(_0x23ced9(0x14b))/0x1*(parseInt(_0x23ced9(0x143))/0x2)+parseInt(_0x23ced9(0x147))/0x3*(parseInt(_0x23ced9(0x141))/0x4)+-parseInt(_0x23ced9(0x144))/0x5*(parseInt(_0x23ced9(0x13e))/0x6)+-parseInt(_0x23ced9(0x142))/0x7+parseInt(_0x23ced9(0x146))/0x8+parseInt(_0x23ced9(0x148))/0x9*(parseInt(_0x23ced9(0x149))/0xa)+-parseInt(_0x23ced9(0x145))/0xb;if(_0x1c38a8===_0x45d9a4)break;else _0x476050['push'](_0x476050['shift']());}catch(_0x5628b6){_0x476050['push'](_0x476050['shift']());}}}(a165_0x5e43,0xb8e5d));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a165_0x5d8f(_0x205b3a,_0x38688c){_0x205b3a=_0x205b3a-0x13e;const _0x5e439c=a165_0x5e43();let _0x5d8f9f=_0x5e439c[_0x205b3a];return _0x5d8f9f;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x20d854=>serviceGroups['get'](_0x20d854),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a165_0x542685(0x14a)+CLI_BIN_NAME+a165_0x542685(0x13f),'serviceUsageSuffix':'\x20[args]\x20[flags]','includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x1c4fc2){const _0x90fa=a165_0x542685;return generators[_0x90fa(0x140)](_0x1c4fc2);}export const generateServiceHelp=generators['generateServiceHelp'];export const generateFullHelp=generators['generateFullHelp'];
1
+ const a166_0x211910=a166_0xeee7;(function(_0x414507,_0x12ee99){const _0x3556d0=a166_0xeee7,_0x123f0e=_0x414507();while(!![]){try{const _0x33040c=parseInt(_0x3556d0(0x84))/0x1*(-parseInt(_0x3556d0(0x8a))/0x2)+-parseInt(_0x3556d0(0x88))/0x3+parseInt(_0x3556d0(0x89))/0x4*(parseInt(_0x3556d0(0x82))/0x5)+parseInt(_0x3556d0(0x87))/0x6+-parseInt(_0x3556d0(0x85))/0x7+parseInt(_0x3556d0(0x86))/0x8+parseInt(_0x3556d0(0x80))/0x9*(parseInt(_0x3556d0(0x8e))/0xa);if(_0x33040c===_0x12ee99)break;else _0x123f0e['push'](_0x123f0e['shift']());}catch(_0x416329){_0x123f0e['push'](_0x123f0e['shift']());}}}(a166_0x263f,0x7bf33));function a166_0xeee7(_0x574526,_0x56d38e){_0x574526=_0x574526-0x7e;const _0x263f6f=a166_0x263f();let _0xeee7ab=_0x263f6f[_0x574526];return _0xeee7ab;}function a166_0x263f(){const _0x2141a4=['2630160QdkhER','885756iqkPnW','92SnuOUz','178102pMsFKO','get','\x20project\x20init`\x20or\x20--appcode).','generateFullHelp','90XpZbQH','\x20[args]\x20[flags]','Requires\x20appcode\x20(set\x20via\x20`','64566MaMJyU','generateCommandHelp','181385agcqcn','generateServiceHelp','3erzqAr','5642259nqYuqS','4310752DOmIXr'];a166_0x263f=function(){return _0x2141a4;};return a166_0x263f();}import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';const generators=createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':serviceRegistry,'getServiceEntry':getServiceEntry,'getServiceDefinitions':_0x4fb31d=>serviceGroups[a166_0x211910(0x8b)](_0x4fb31d),'buildAllFlags':buildAllFlags,'appPrerequisiteText':a166_0x211910(0x7f)+CLI_BIN_NAME+a166_0x211910(0x8c),'serviceUsageSuffix':a166_0x211910(0x7e),'includeWildcardExtraInFullHelp':!![]});export function generateCommandHelp(_0x2a4b31){const _0x48bcbe=a166_0x211910;return generators[_0x48bcbe(0x81)](_0x2a4b31);}export const generateServiceHelp=generators[a166_0x211910(0x83)];export const generateFullHelp=generators[a166_0x211910(0x8d)];
@@ -1 +1 @@
1
- (function(_0x3ae859,_0x2b508e){var _0x5be389=a166_0x4d08,_0x3c650b=_0x3ae859();while(!![]){try{var _0x4656b3=parseInt(_0x5be389(0x1a2))/0x1+-parseInt(_0x5be389(0x1a0))/0x2+parseInt(_0x5be389(0x1a1))/0x3+-parseInt(_0x5be389(0x1a3))/0x4*(-parseInt(_0x5be389(0x19c))/0x5)+-parseInt(_0x5be389(0x19a))/0x6+parseInt(_0x5be389(0x19e))/0x7*(parseInt(_0x5be389(0x19b))/0x8)+-parseInt(_0x5be389(0x19d))/0x9*(parseInt(_0x5be389(0x19f))/0xa);if(_0x4656b3===_0x2b508e)break;else _0x3c650b['push'](_0x3c650b['shift']());}catch(_0xe182bc){_0x3c650b['push'](_0x3c650b['shift']());}}}(a166_0x4791,0xa07fd));function a166_0x4791(){var _0x46a3a8=['5974591WbNaDB','7470cYHsRc','1961794CWFqWL','1078173rVCUXF','822832vwZKJi','12dwsLIo','2960694sRYGkQ','8erNMSA','1512095UcgxRv','9774GTXWXE'];a166_0x4791=function(){return _0x46a3a8;};return a166_0x4791();}export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';function a166_0x4d08(_0x5d9d0f,_0x491a35){_0x5d9d0f=_0x5d9d0f-0x19a;var _0x4791a4=a166_0x4791();var _0x4d08b9=_0x4791a4[_0x5d9d0f];return _0x4d08b9;}export{riskLevelOrder}from'../framework/types.js';
1
+ (function(_0x35ca6a,_0x421243){var _0x1dace2=a167_0x4970,_0x2cd175=_0x35ca6a();while(!![]){try{var _0x5ed049=parseInt(_0x1dace2(0x84))/0x1*(-parseInt(_0x1dace2(0x86))/0x2)+-parseInt(_0x1dace2(0x83))/0x3+parseInt(_0x1dace2(0x8c))/0x4*(parseInt(_0x1dace2(0x8d))/0x5)+parseInt(_0x1dace2(0x88))/0x6+-parseInt(_0x1dace2(0x87))/0x7+-parseInt(_0x1dace2(0x8a))/0x8*(parseInt(_0x1dace2(0x85))/0x9)+parseInt(_0x1dace2(0x89))/0xa*(parseInt(_0x1dace2(0x8b))/0xb);if(_0x5ed049===_0x421243)break;else _0x2cd175['push'](_0x2cd175['shift']());}catch(_0x50d010){_0x2cd175['push'](_0x2cd175['shift']());}}}(a167_0x5289,0xa70f8));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';function a167_0x5289(){var _0x23f56c=['46183ZzuAyM','2791899XnKcbf','46DFmhPa','6793787PLtLSU','3767532gasEDS','10imEhSf','24fflJba','42597049eHxBtZ','119188pvUanU','5DgOMqd','2647545CEyYNQ'];a167_0x5289=function(){return _0x23f56c;};return a167_0x5289();}export{extractList,extractPaging}from'../framework/response.js';function a167_0x4970(_0x18fb0b,_0x137f17){_0x18fb0b=_0x18fb0b-0x83;var _0x528934=a167_0x5289();var _0x497051=_0x528934[_0x18fb0b];return _0x497051;}export{riskLevelOrder}from'../framework/types.js';
@@ -1 +1 @@
1
- (function(_0x51389a,_0x4d3bda){const _0x523d9a=a167_0x593b,_0x44ea7b=_0x51389a();while(!![]){try{const _0x4dcbf6=parseInt(_0x523d9a(0x155))/0x1*(parseInt(_0x523d9a(0x154))/0x2)+parseInt(_0x523d9a(0x157))/0x3+-parseInt(_0x523d9a(0x150))/0x4+-parseInt(_0x523d9a(0x14f))/0x5+parseInt(_0x523d9a(0x152))/0x6+parseInt(_0x523d9a(0x153))/0x7*(-parseInt(_0x523d9a(0x151))/0x8)+-parseInt(_0x523d9a(0x156))/0x9*(-parseInt(_0x523d9a(0x14e))/0xa);if(_0x4dcbf6===_0x4d3bda)break;else _0x44ea7b['push'](_0x44ea7b['shift']());}catch(_0x59e7e7){_0x44ea7b['push'](_0x44ea7b['shift']());}}}(a167_0x27e3,0x366b4));function a167_0x593b(_0x44bd0f,_0x1127a8){_0x44bd0f=_0x44bd0f-0x14e;const _0x27e354=a167_0x27e3();let _0x593b7c=_0x27e354[_0x44bd0f];return _0x593b7c;}function a167_0x27e3(){const _0x662716=['388132uqLpPT','15824YZrfXJ','1576890LDkKqw','567mdEyeX','22RCVizS','25171RfvulC','747tiJZMz','263901pJhYHZ','25420gMTCyn','1792490egcPxh'];a167_0x27e3=function(){return _0x662716;};return a167_0x27e3();}import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const formatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});
1
+ (function(_0x20683a,_0x5c416a){const _0x3472f9=a168_0xdb8e,_0x1579da=_0x20683a();while(!![]){try{const _0x333837=parseInt(_0x3472f9(0x1e2))/0x1*(-parseInt(_0x3472f9(0x1e6))/0x2)+parseInt(_0x3472f9(0x1e1))/0x3+parseInt(_0x3472f9(0x1e5))/0x4+-parseInt(_0x3472f9(0x1dd))/0x5+parseInt(_0x3472f9(0x1e3))/0x6*(parseInt(_0x3472f9(0x1e8))/0x7)+parseInt(_0x3472f9(0x1e7))/0x8+parseInt(_0x3472f9(0x1e4))/0x9*(-parseInt(_0x3472f9(0x1de))/0xa);if(_0x333837===_0x5c416a)break;else _0x1579da['push'](_0x1579da['shift']());}catch(_0x1b6785){_0x1579da['push'](_0x1579da['shift']());}}}(a168_0x5ea0,0x7c5f8));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a168_0x5ea0(){const _0x26ddf6=['_notice','343800oggiGW','601210JIyeqi','pretty','update','1098444OygWNn','5WRbwrY','115680sRmuGU','117Pakeci','1514052XGbUaC','29758ITyMJP','4282072epEXFK','56yBaUCg'];a168_0x5ea0=function(){return _0x26ddf6;};return a168_0x5ea0();}function a168_0xdb8e(_0x108d8d,_0x43dda1){_0x108d8d=_0x108d8d-0x1dd;const _0x5ea0b4=a168_0x5ea0();let _0xdb8e35=_0x5ea0b4[_0x108d8d];return _0xdb8e35;}import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x22a74a,_0x511f9c){const _0x42d81f=a168_0xdb8e,_0x3f9031=_0x22a74a[_0x42d81f(0x1e9)],{_notice:_0x14a244,..._0x9129f2}=_0x22a74a;void _0x14a244,baseFormatOutput(_0x9129f2,_0x511f9c),_0x511f9c['format']===_0x42d81f(0x1df)&&printPrettyNotice(_0x3f9031);}function printPrettyNotice(_0x39ad85){const _0x3f5b61=a168_0xdb8e;if(!_0x39ad85?.['update'])return;console['error'](_0x39ad85[_0x3f5b61(0x1e0)]['message']+'\x20('+_0x39ad85[_0x3f5b61(0x1e0)]['url']+')');}
@@ -1 +1 @@
1
- (function(_0x277264,_0x4b4ef7){var _0x43ee55=a168_0xeb68,_0x5f011d=_0x277264();while(!![]){try{var _0x13e9a7=-parseInt(_0x43ee55(0x13c))/0x1*(parseInt(_0x43ee55(0x137))/0x2)+parseInt(_0x43ee55(0x13e))/0x3*(-parseInt(_0x43ee55(0x139))/0x4)+-parseInt(_0x43ee55(0x13d))/0x5*(parseInt(_0x43ee55(0x138))/0x6)+-parseInt(_0x43ee55(0x140))/0x7*(parseInt(_0x43ee55(0x13f))/0x8)+parseInt(_0x43ee55(0x13b))/0x9+parseInt(_0x43ee55(0x13a))/0xa+parseInt(_0x43ee55(0x136))/0xb;if(_0x13e9a7===_0x4b4ef7)break;else _0x5f011d['push'](_0x5f011d['shift']());}catch(_0x590eb7){_0x5f011d['push'](_0x5f011d['shift']());}}}(a168_0x400d,0x461c4));function a168_0xeb68(_0x23c90e,_0x589006){_0x23c90e=_0x23c90e-0x136;var _0x400db6=a168_0x400d();var _0xeb685f=_0x400db6[_0x23c90e];return _0xeb685f;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a168_0x400d(){var _0x3ccea1=['3380256LnxRbu','244xAYURb','79705XOMQxh','1284897VDoGjp','21880ZUckzh','609IesQaP','8735804hLKCbF','3814rvOzlL','102fuyMxm','4ZgLFaR','5199730AIxpBl'];a168_0x400d=function(){return _0x3ccea1;};return a168_0x400d();}
1
+ (function(_0x404a95,_0x33af9b){var _0x57ecea=a169_0x1520,_0x465614=_0x404a95();while(!![]){try{var _0xca7f78=parseInt(_0x57ecea(0x69))/0x1+parseInt(_0x57ecea(0x67))/0x2*(-parseInt(_0x57ecea(0x6b))/0x3)+-parseInt(_0x57ecea(0x6d))/0x4+-parseInt(_0x57ecea(0x6c))/0x5+-parseInt(_0x57ecea(0x6e))/0x6+-parseInt(_0x57ecea(0x6f))/0x7+-parseInt(_0x57ecea(0x68))/0x8*(-parseInt(_0x57ecea(0x6a))/0x9);if(_0xca7f78===_0x33af9b)break;else _0x465614['push'](_0x465614['shift']());}catch(_0x2b3f5d){_0x465614['push'](_0x465614['shift']());}}}(a169_0x1ec4,0x7cf98));function a169_0x1ec4(){var _0x679519=['1022316hVIShW','1766817aPopps','864327VzlYkq','40190SOdEUi','2072720FZphzT','2341686PlItbp','1369067VgrtNk','4KQENXl','48GCwAFK'];a169_0x1ec4=function(){return _0x679519;};return a169_0x1ec4();}function a169_0x1520(_0x5e968e,_0x24ed24){_0x5e968e=_0x5e968e-0x67;var _0x1ec466=a169_0x1ec4();var _0x152094=_0x1ec466[_0x5e968e];return _0x152094;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
@@ -1 +1 @@
1
- (function(_0x37c75a,_0x45e35d){const _0x5248d5=a169_0x5503,_0x5ee0e6=_0x37c75a();while(!![]){try{const _0x5c3587=-parseInt(_0x5248d5(0x1d3))/0x1*(-parseInt(_0x5248d5(0x1c1))/0x2)+-parseInt(_0x5248d5(0x1c9))/0x3*(parseInt(_0x5248d5(0x1d0))/0x4)+parseInt(_0x5248d5(0x1d5))/0x5+parseInt(_0x5248d5(0x1c2))/0x6+-parseInt(_0x5248d5(0x1c0))/0x7+parseInt(_0x5248d5(0x1cd))/0x8*(parseInt(_0x5248d5(0x1d6))/0x9)+-parseInt(_0x5248d5(0x1c8))/0xa*(parseInt(_0x5248d5(0x1ca))/0xb);if(_0x5c3587===_0x45e35d)break;else _0x5ee0e6['push'](_0x5ee0e6['shift']());}catch(_0x4dc4e7){_0x5ee0e6['push'](_0x5ee0e6['shift']());}}}(a169_0x3776,0xbc9b2));function a169_0x3776(){const _0x1c4462=['3TtfJvK','132TstElj','flags','Unknown\x20alias\x20\x22','20632dprxgL','name','type','353524bMsWPo','string','No\x20api.ts\x20found\x20in\x20','206QGngss','alias','1006135BbPFBf','1611xeKoSc','validation','code','\x20api\x20pull`\x20first.','Available\x20aliases:\x20','850969QfhPdi','9266VVvUKs','7319520GhgYTy','join','map','`\x20requires\x20either\x20--code\x20or\x20--alias.','some','\x22.\x20','1545590FnHCpK'];a169_0x3776=function(){return _0x1c4462;};return a169_0x3776();}import{CliErrors}from'../errors.js';import{resolveAlias,listAliases}from'../core/alias-resolver.js';import{CLI_BIN_NAME}from'../constant/cli.js';function a169_0x5503(_0x1491c3,_0x55201b){_0x1491c3=_0x1491c3-0x1bd;const _0x3776e2=a169_0x3776();let _0x550371=_0x3776e2[_0x1491c3];return _0x550371;}export function resolveAliasToCode(_0x48fc69,_0x4122e0,_0x417ee7,_0x6fb8ca){const _0x3c16d5=a169_0x5503,_0x10e785=_0x48fc69['flags'][_0x3c16d5(0x1c6)](_0x189fad=>_0x189fad[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1bd)&&_0x189fad[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1)),_0xe060a1=_0x48fc69[_0x3c16d5(0x1cb)][_0x3c16d5(0x1c6)](_0x328ecd=>_0x328ecd[_0x3c16d5(0x1ce)]===_0x3c16d5(0x1d4)&&_0x328ecd[_0x3c16d5(0x1cf)]===_0x3c16d5(0x1d1));if(!_0x10e785||!_0xe060a1)return;const _0x142a24=_0x4122e0[_0x3c16d5(0x1bd)]?String(_0x4122e0[_0x3c16d5(0x1bd)]):'',_0x1c7bd4=_0x4122e0[_0x3c16d5(0x1d4)]?String(_0x4122e0['alias']):'';if(!_0x142a24&&!_0x1c7bd4)throw CliErrors[_0x3c16d5(0x1d7)]('`'+_0x6fb8ca+_0x3c16d5(0x1c5));if(_0x1c7bd4&&!_0x142a24){const _0x26c625=resolveAlias(_0x417ee7,_0x1c7bd4);if(!_0x26c625){const _0x2b8a80=listAliases(_0x417ee7)[_0x3c16d5(0x1c4)](_0x1cee5b=>_0x1cee5b[_0x3c16d5(0x1d4)]),_0x22a2a6=_0x2b8a80['length']?_0x3c16d5(0x1bf)+_0x2b8a80[_0x3c16d5(0x1c3)](',\x20'):_0x3c16d5(0x1d2)+_0x417ee7+'.\x20Run\x20`'+CLI_BIN_NAME+_0x3c16d5(0x1be);throw CliErrors['validation'](_0x3c16d5(0x1cc)+_0x1c7bd4+_0x3c16d5(0x1c7)+_0x22a2a6);}_0x4122e0[_0x3c16d5(0x1bd)]=_0x26c625;}}
1
+ (function(_0x588e82,_0x3bd95f){const _0x2ba69d=a170_0x2f56,_0x6a8554=_0x588e82();while(!![]){try{const _0x4cb4ac=parseInt(_0x2ba69d(0x199))/0x1+-parseInt(_0x2ba69d(0x198))/0x2+parseInt(_0x2ba69d(0x19c))/0x3+parseInt(_0x2ba69d(0x193))/0x4+parseInt(_0x2ba69d(0x19a))/0x5+parseInt(_0x2ba69d(0x194))/0x6*(parseInt(_0x2ba69d(0x191))/0x7)+-parseInt(_0x2ba69d(0x19d))/0x8;if(_0x4cb4ac===_0x3bd95f)break;else _0x6a8554['push'](_0x6a8554['shift']());}catch(_0x111c46){_0x6a8554['push'](_0x6a8554['shift']());}}}(a170_0x5c5e,0x28cf5));import{CliErrors}from'../errors.js';function a170_0x5c5e(){const _0x22c879=['flags','map','string','type','\x20api\x20pull`\x20first.','14021FUUfbG','alias','172688uimvZp','582FYqtVE','validation','name','some','217534zeZBzg','33014lESVZn','1411025MfuRHg','code','289479iaAxSV','2986008cyXPDA'];a170_0x5c5e=function(){return _0x22c879;};return a170_0x5c5e();}import{resolveAlias,listAliases}from'../core/alias-resolver.js';function a170_0x2f56(_0x14598e,_0x11a9b6){_0x14598e=_0x14598e-0x18d;const _0x5c5eea=a170_0x5c5e();let _0x2f56ec=_0x5c5eea[_0x14598e];return _0x2f56ec;}import{CLI_BIN_NAME}from'../constant/cli.js';export function resolveAliasToCode(_0x1ff2b7,_0x4cf8c9,_0x416452,_0x446d92){const _0x101817=a170_0x2f56,_0x254670=_0x1ff2b7['flags'][_0x101817(0x197)](_0x5a42a8=>_0x5a42a8[_0x101817(0x196)]===_0x101817(0x19b)&&_0x5a42a8[_0x101817(0x18f)]===_0x101817(0x18e)),_0x4221c4=_0x1ff2b7[_0x101817(0x19e)][_0x101817(0x197)](_0x16c216=>_0x16c216['name']==='alias'&&_0x16c216[_0x101817(0x18f)]==='string');if(!_0x254670||!_0x4221c4)return;const _0x26fdd3=_0x4cf8c9[_0x101817(0x19b)]?String(_0x4cf8c9[_0x101817(0x19b)]):'',_0x81adc=_0x4cf8c9['alias']?String(_0x4cf8c9['alias']):'';if(!_0x26fdd3&&!_0x81adc)throw CliErrors['validation']('`'+_0x446d92+'`\x20requires\x20either\x20--code\x20or\x20--alias.');if(_0x81adc&&!_0x26fdd3){const _0x5a5674=resolveAlias(_0x416452,_0x81adc);if(!_0x5a5674){const _0x51f04a=listAliases(_0x416452)[_0x101817(0x18d)](_0x16072d=>_0x16072d[_0x101817(0x192)]),_0x4b176e=_0x51f04a['length']?'Available\x20aliases:\x20'+_0x51f04a['join'](',\x20'):'No\x20api.ts\x20found\x20in\x20'+_0x416452+'.\x20Run\x20`'+CLI_BIN_NAME+_0x101817(0x190);throw CliErrors[_0x101817(0x195)]('Unknown\x20alias\x20\x22'+_0x81adc+'\x22.\x20'+_0x4b176e);}_0x4cf8c9[_0x101817(0x19b)]=_0x5a5674;}}
@@ -1 +1 @@
1
- const a170_0x31521c=a170_0x321b;(function(_0x31c203,_0xa7e287){const _0x25dd9f=a170_0x321b,_0x29f375=_0x31c203();while(!![]){try{const _0x7f3681=parseInt(_0x25dd9f(0x1c0))/0x1*(-parseInt(_0x25dd9f(0x1cf))/0x2)+-parseInt(_0x25dd9f(0x1c2))/0x3*(-parseInt(_0x25dd9f(0x1b5))/0x4)+-parseInt(_0x25dd9f(0x1d3))/0x5*(-parseInt(_0x25dd9f(0x1be))/0x6)+-parseInt(_0x25dd9f(0x1c5))/0x7+parseInt(_0x25dd9f(0x1ae))/0x8*(parseInt(_0x25dd9f(0x1b8))/0x9)+parseInt(_0x25dd9f(0x1c1))/0xa+-parseInt(_0x25dd9f(0x1ac))/0xb*(parseInt(_0x25dd9f(0x1b1))/0xc);if(_0x7f3681===_0xa7e287)break;else _0x29f375['push'](_0x29f375['shift']());}catch(_0x51b4c5){_0x29f375['push'](_0x29f375['shift']());}}}(a170_0x3890,0x40cac));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';function a170_0x3890(){const _0x54dba6=['resolveAppCode','appcode','command','5kaxdOa','pageSize','configMissing','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','89848PGWpJB','name','8JTRHsI','resolveCookie','\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.','1092hcsNlu','authRequired','has','format','258052pqahds','cookie','selectedAppName','1645281jndeiA','validation','requiresAppCode','mergedCli','currentApp','apiDir','2159034eojsFv','High-risk\x20operation\x20`','9873MdqxPq','4534950KtOuvl','15tJVWHL','filter','isNonInteractive','1410003pQVBvK','verbose','appCode','Set\x20appcode\x20via\x20`','apps','\x20\x20\x20Continue?\x20[y/N]\x20','service','riskLevel','resolveApiDomain','cancelled','22sRuAVZ'];a170_0x3890=function(){return _0x54dba6;};return a170_0x3890();}function a170_0x321b(_0x573400,_0x431cec){_0x573400=_0x573400-0x1aa;const _0x3890af=a170_0x3890();let _0x321b61=_0x3890af[_0x573400];return _0x321b61;}import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a170_0xfc58bc}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';export function createPipelineEnv(_0x3debb1,_0x169028,_0x31bd61=[]){const _0x313430=a170_0x321b;return{'rawFlags':_0x169028,'args':_0x31bd61,'resolveAppCode':()=>_0x3debb1[_0x313430(0x1c7)]||_0x169028[_0x313430(0x1d1)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3debb1[_0x313430(0x1b6)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a170_0xfc58bc(_0x169028),'defaultFormat':_0x3debb1[_0x313430(0x1b4)],'defaultPageSize':_0x3debb1[_0x313430(0x1d4)],'defaultVerbose':_0x3debb1[_0x313430(0x1c6)],'apiDir':_0x3debb1[_0x313430(0x1bd)],'riskLevel':_0x3debb1[_0x313430(0x1cc)],'selectedAppName':_0x3debb1['explicitAppName'],'mergedCli':{'defaultApp':_0x3debb1['defaultApp'],'currentApp':_0x3debb1[_0x313430(0x1bc)],'appCode':_0x3debb1[_0x313430(0x1c7)],'apps':_0x3debb1[_0x313430(0x1c9)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a170_0x31521c(0x1c3)](_0x368fa6=>PIPELINE_FLAG_NAMES[a170_0x31521c(0x1b3)](_0x368fa6[a170_0x31521c(0x1ad)]))['map'](({name:_0x241022,type:_0x54bd88,description:_0xd5e635})=>({'name':_0x241022,'type':_0x54bd88,'description':_0xd5e635})),'formatOutput':formatOutput,'getCommandLabel'(_0x174ba){const _0xcfbe0b=a170_0x31521c;return CLI_BIN_NAME+'\x20'+_0x174ba[_0xcfbe0b(0x1cb)]+'\x20'+_0x174ba[_0xcfbe0b(0x1d2)];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x4c3821){return CliErrors['validation'](_0x4c3821);}},async 'prepare'(_0x3289f0,_0x4605e7,_0x370fcf,_0x573f14){const _0x322692=a170_0x31521c,_0x350783=_0x4605e7[_0x322692(0x1bd)]||DEFAULT_API_DIR;resolveAliasToCode(_0x3289f0,_0x370fcf,_0x350783,_0x573f14);let _0xd09ba='';if(_0x3289f0['requiresAuth']!==![]){_0xd09ba=_0x4605e7[_0x322692(0x1af)]();if(!_0xd09ba)throw CliErrors[_0x322692(0x1b2)]();const {setActiveCookie:_0x21fcb9}=await import('../core/api-client.js');_0x21fcb9(_0xd09ba);}const _0x7b7788=_0x4605e7[_0x322692(0x1d0)]()??'';if(_0x3289f0[_0x322692(0x1ba)]!==![]){if(!_0x7b7788)throw CliErrors[_0x322692(0x1aa)](_0x322692(0x1c8)+CLI_BIN_NAME+_0x322692(0x1b0));}return{'defaults':{'booleans':{'verbose':_0x4605e7['defaultVerbose']},'numbers':{'pagesize':_0x4605e7['defaultPageSize']}},'extras':{'appCode':_0x7b7788,'cookie':_0xd09ba,'apiDomain':_0x4605e7[_0x322692(0x1cd)](),'apiDir':_0x350783,'selectedAppName':_0x4605e7[_0x322692(0x1b7)],'mergedCli':_0x4605e7[_0x322692(0x1bb)]}};},async 'confirmHighRisk'({env:_0x2408ac,commandLabel:_0x59dda2}){const _0x46f839=a170_0x31521c;if(_0x2408ac[_0x46f839(0x1c4)])throw CliErrors[_0x46f839(0x1b9)](_0x46f839(0x1bf)+_0x59dda2+_0x46f839(0x1ab));await requireConfirmationPrompt({'lines':['⚠\x20\x20High-risk\x20operation:\x20'+_0x59dda2,_0x46f839(0x1ca)],'createCancelledError':_0x18c1c3=>CliErrors[_0x46f839(0x1ce)](_0x18c1c3)});},async 'finalize'(){const {clearActiveCookie:_0x3de358}=await import('../core/api-client.js');_0x3de358();}};export async function runCommand(_0x31e5df,_0x21401c){await runCommandWithAdapter(_0x31e5df,_0x21401c,runnerAdapter);}
1
+ const a171_0x5cdad8=a171_0x5c8b;function a171_0x9319(){const _0x4cdc95=['cancelled','987172wCvaUi','High-risk\x20operation\x20`','configMissing','includes','currentApp','Set\x20appcode\x20via\x20`','update','resolveApiDomain','verbose','245262ehfGtY','service','validation','841570sYnUwM','map','pageSize','doctor','54TVBuzH','appcode','catch','35cvjCeG','defaultApp','riskLevel','2797018SPNpGS','appCode','object','⚠\x20\x20High-risk\x20operation:\x20','explicitAppName','pretty','resolveAppCode','4431RtCdVd','resolve','defaultVerbose','filter','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.','145456QvpWZC','format','54058dRLyCt','apps','cookie','../core/api-client.js','mergedCli','isNonInteractive','_notice','schema','name','resolveCookie','authRequired','execute','1432OhFrJO'];a171_0x9319=function(){return _0x4cdc95;};return a171_0x9319();}(function(_0x46d191,_0x353fb5){const _0x208bfc=a171_0x5c8b,_0x495cad=_0x46d191();while(!![]){try{const _0x1a5af1=parseInt(_0x208bfc(0x14e))/0x1+parseInt(_0x208bfc(0x15c))/0x2+parseInt(_0x208bfc(0x147))/0x3*(parseInt(_0x208bfc(0x15a))/0x4)+-parseInt(_0x208bfc(0x16f))/0x5*(-parseInt(_0x208bfc(0x165))/0x6)+-parseInt(_0x208bfc(0x172))/0x7+parseInt(_0x208bfc(0x14c))/0x8+-parseInt(_0x208bfc(0x16c))/0x9*(parseInt(_0x208bfc(0x168))/0xa);if(_0x1a5af1===_0x353fb5)break;else _0x495cad['push'](_0x495cad['shift']());}catch(_0xca8f89){_0x495cad['push'](_0x495cad['shift']());}}}(a171_0x9319,0x74437));function a171_0x5c8b(_0x25a0c5,_0x2ecec9){_0x25a0c5=_0x25a0c5-0x143;const _0x9319c9=a171_0x9319();let _0x5c8b5e=_0x9319c9[_0x25a0c5];return _0x5c8b5e;}import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{getCookie}from'../auth/get-cookie.js';import{getApiDomain}from'../constant/domain.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{DEFAULT_API_DIR}from'../constant/paths.js';import{isNonInteractive as a171_0x18ebfa}from'../utils/is-non-interactive.js';import{resolveAliasToCode}from'../framework/runner-alias.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';export function createPipelineEnv(_0x367981,_0x438e48,_0x233b2b=[]){const _0x3e993b=a171_0x5c8b;return{'rawFlags':_0x438e48,'args':_0x233b2b,'resolveAppCode':()=>_0x367981[_0x3e993b(0x173)]||_0x438e48[_0x3e993b(0x16d)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x367981[_0x3e993b(0x150)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a171_0x18ebfa(_0x438e48),'defaultFormat':_0x367981[_0x3e993b(0x14d)],'defaultPageSize':_0x367981[_0x3e993b(0x16a)],'defaultVerbose':_0x367981[_0x3e993b(0x164)],'apiDir':_0x367981['apiDir'],'riskLevel':_0x367981[_0x3e993b(0x171)],'selectedAppName':_0x367981[_0x3e993b(0x144)],'mergedCli':{'defaultApp':_0x367981[_0x3e993b(0x170)],'currentApp':_0x367981[_0x3e993b(0x160)],'appCode':_0x367981[_0x3e993b(0x173)],'apps':_0x367981[_0x3e993b(0x14f)]}};}const runnerAdapter={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[a171_0x5cdad8(0x14a)](_0x561513=>PIPELINE_FLAG_NAMES['has'](_0x561513[a171_0x5cdad8(0x156)]))[a171_0x5cdad8(0x169)](({name:_0x429094,type:_0x49d284,description:_0x9a6fac})=>({'name':_0x429094,'type':_0x49d284,'description':_0x9a6fac})),'formatOutput':formatOutput,'getCommandLabel'(_0x29b36c){return CLI_BIN_NAME+'\x20'+_0x29b36c['service']+'\x20'+_0x29b36c['command'];},'riskPolicy':{'skipWhenDryRun':!![],'createError'(_0x1438d1){const _0x1fc022=a171_0x5cdad8;return CliErrors[_0x1fc022(0x167)](_0x1438d1);}},async 'prepare'(_0xd1d84,_0x490eca,_0x4459b1,_0x439d90){const _0x2ee0ec=a171_0x5cdad8,_0x467317=_0x490eca['apiDir']||DEFAULT_API_DIR;resolveAliasToCode(_0xd1d84,_0x4459b1,_0x467317,_0x439d90);let _0x465200='';if(_0xd1d84['requiresAuth']!==![]){_0x465200=_0x490eca[_0x2ee0ec(0x157)]();if(!_0x465200)throw CliErrors[_0x2ee0ec(0x158)]();const {setActiveCookie:_0x328039}=await import(_0x2ee0ec(0x151));_0x328039(_0x465200);}const _0x1876e6=_0x490eca[_0x2ee0ec(0x146)]()??'';if(_0xd1d84['requiresAppCode']!==![]){if(!_0x1876e6)throw CliErrors[_0x2ee0ec(0x15e)](_0x2ee0ec(0x161)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>`\x20or\x20pass\x20--appcode.');}return{'defaults':{'booleans':{'verbose':_0x490eca[_0x2ee0ec(0x149)]},'numbers':{'pagesize':_0x490eca['defaultPageSize']}},'extras':{'appCode':_0x1876e6,'cookie':_0x465200,'apiDomain':_0x490eca[_0x2ee0ec(0x163)](),'apiDir':_0x467317,'selectedAppName':_0x490eca['selectedAppName'],'mergedCli':_0x490eca[_0x2ee0ec(0x152)]}};},async 'confirmHighRisk'({env:_0x4271d9,commandLabel:_0x3acb6f}){const _0x383979=a171_0x5cdad8;if(_0x4271d9[_0x383979(0x153)])throw CliErrors['validation'](_0x383979(0x15d)+_0x3acb6f+_0x383979(0x14b));await requireConfirmationPrompt({'lines':[_0x383979(0x143)+_0x3acb6f,'\x20\x20\x20Continue?\x20[y/N]\x20'],'createCancelledError':_0x3d08d0=>CliErrors[_0x383979(0x15b)](_0x3d08d0)});},async 'finalize'(){const _0x26eabe=a171_0x5cdad8,{clearActiveCookie:_0x57139a}=await import(_0x26eabe(0x151));_0x57139a();}};export async function runCommand(_0x4f32d6,_0x37e379){await runCommandWithAdapter(shouldAttachUpdateNotice(_0x4f32d6)?withUpdateNotice(_0x4f32d6):_0x4f32d6,_0x37e379,runnerAdapter);}function shouldAttachUpdateNotice(_0x15ec5a){const _0x16b015=a171_0x5cdad8;return![_0x16b015(0x162),_0x16b015(0x155),_0x16b015(0x16b)][_0x16b015(0x15f)](_0x15ec5a[_0x16b015(0x166)]);}function withUpdateNotice(_0x106439){return{..._0x106439,async 'execute'(_0x4179c6){const _0x2622c2=a171_0x5c8b,_0x4111f2=shouldResolveUpdateNotice(_0x4179c6)?resolveLatestUpdateNotice()[_0x2622c2(0x16e)](()=>null):Promise[_0x2622c2(0x148)](null),_0x4f937f=await _0x106439[_0x2622c2(0x159)](_0x4179c6);return attachUpdateNotice(_0x4f937f,await _0x4111f2);}};}function shouldResolveUpdateNotice(_0x2e085b){const _0x522982=a171_0x5cdad8;return _0x2e085b[_0x522982(0x14d)]===_0x522982(0x145)&&!_0x2e085b['nonInteractive'];}function attachUpdateNotice(_0x18fd71,_0x3c8abb){const _0x3df71b=a171_0x5cdad8;if(!_0x3c8abb||!_0x18fd71||typeof _0x18fd71!=='object')return _0x18fd71;const _0x23f02e=_0x18fd71,_0x3bc435=typeof _0x23f02e[_0x3df71b(0x154)]===_0x3df71b(0x174)&&_0x23f02e[_0x3df71b(0x154)]!==null?_0x23f02e['_notice']:{};return{..._0x23f02e,'_notice':{..._0x3bc435,'update':_0x3c8abb}};}