@treasuredata/tdx 2026.4.4 → 2026.4.5

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 (231) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.d.ts +2 -0
  168. package/dist/sdk/types/workspace.d.ts.map +1 -1
  169. package/dist/sdk/types/workspace.js +1 -1
  170. package/dist/sdk/user.js +1 -1
  171. package/dist/sdk/util/format-detector.js +1 -1
  172. package/dist/sdk/util/formatters.js +1 -1
  173. package/dist/sdk/util/index.js +1 -1
  174. package/dist/sdk/util/paginate.js +1 -1
  175. package/dist/sdk/util/tree-formatter.js +1 -1
  176. package/dist/sdk/workflow/archive-validation.js +1 -1
  177. package/dist/sdk/workflow/clone-workflow.js +1 -1
  178. package/dist/sdk/workflow/index.js +1 -1
  179. package/dist/sdk/workflow/pull-workflow.js +1 -1
  180. package/dist/sdk/workflow/push-workflow.js +1 -1
  181. package/dist/sdk/workflow/tdx-config.js +1 -1
  182. package/dist/sdk/workflow/workflow-utils.js +1 -1
  183. package/dist/sdk/workspace/access-tracker.d.ts +5 -0
  184. package/dist/sdk/workspace/access-tracker.d.ts.map +1 -0
  185. package/dist/sdk/workspace/access-tracker.js +1 -0
  186. package/dist/sdk/workspace/access-tracker.js.map +1 -0
  187. package/dist/sdk/workspace/frontmatter.js +1 -1
  188. package/dist/sdk/workspace/git.d.ts +1 -1
  189. package/dist/sdk/workspace/git.d.ts.map +1 -1
  190. package/dist/sdk/workspace/git.js +1 -1
  191. package/dist/sdk/workspace/git.js.map +1 -1
  192. package/dist/sdk/workspace/index.d.ts +8 -0
  193. package/dist/sdk/workspace/index.d.ts.map +1 -1
  194. package/dist/sdk/workspace/index.js +1 -1
  195. package/dist/sdk/workspace/index.js.map +1 -1
  196. package/dist/sdk/workspace/templates.js +1 -1
  197. package/dist/sdk/workspace/weekly.js +1 -1
  198. package/dist/sdk/workspace/wikilinks.js +1 -1
  199. package/dist/test-utils/command-runner.js +1 -1
  200. package/dist/test-utils/factories.js +1 -1
  201. package/dist/test-utils/fixtures.js +1 -1
  202. package/dist/test-utils/http-mock.js +1 -1
  203. package/dist/test-utils/index.js +1 -1
  204. package/dist/utils/async.js +1 -1
  205. package/dist/utils/colors.js +1 -1
  206. package/dist/utils/diff.js +1 -1
  207. package/dist/utils/file-permissions.js +1 -1
  208. package/dist/utils/file-reader.js +1 -1
  209. package/dist/utils/github-releases.js +1 -1
  210. package/dist/utils/global-cache.js +1 -1
  211. package/dist/utils/json-loader.js +1 -1
  212. package/dist/utils/local-cache.js +1 -1
  213. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  214. package/dist/utils/logger/formatters/index.js +1 -1
  215. package/dist/utils/logger/handlers/console-handler.js +1 -1
  216. package/dist/utils/logger/handlers/file-handler.js +1 -1
  217. package/dist/utils/logger/handlers/index.js +1 -1
  218. package/dist/utils/logger/handlers/null-handler.js +1 -1
  219. package/dist/utils/logger/index.js +1 -1
  220. package/dist/utils/logger/logger.js +1 -1
  221. package/dist/utils/logger/types.js +1 -1
  222. package/dist/utils/option-validation.js +1 -1
  223. package/dist/utils/process.js +1 -1
  224. package/dist/utils/prompt.js +1 -1
  225. package/dist/utils/spinner.js +1 -1
  226. package/dist/utils/sse-parser.js +1 -1
  227. package/dist/utils/string-utils.js +1 -1
  228. package/dist/utils/table-ref-parser.js +1 -1
  229. package/dist/utils/tdx-logger.js +1 -1
  230. package/dist/utils/version-check.js +1 -1
  231. package/package.json +1 -1
@@ -1 +1 @@
1
- function a203_0x57b7(_0x445c35,_0x30ffa6){_0x445c35=_0x445c35-0x198;const _0x38f2f6=a203_0x38f2();let _0x57b708=_0x38f2f6[_0x445c35];return _0x57b708;}const a203_0x550aeb=a203_0x57b7;(function(_0x137e19,_0x216fe7){const _0x3111b4=a203_0x57b7,_0x57ef9f=_0x137e19();while(!![]){try{const _0x2ca20b=-parseInt(_0x3111b4(0x1a0))/0x1+parseInt(_0x3111b4(0x1aa))/0x2+-parseInt(_0x3111b4(0x19e))/0x3*(-parseInt(_0x3111b4(0x1a7))/0x4)+parseInt(_0x3111b4(0x1a2))/0x5+parseInt(_0x3111b4(0x19f))/0x6*(-parseInt(_0x3111b4(0x1a1))/0x7)+-parseInt(_0x3111b4(0x19c))/0x8*(parseInt(_0x3111b4(0x1b5))/0x9)+parseInt(_0x3111b4(0x198))/0xa*(parseInt(_0x3111b4(0x1a3))/0xb);if(_0x2ca20b===_0x216fe7)break;else _0x57ef9f['push'](_0x57ef9f['shift']());}catch(_0x1f56b1){_0x57ef9f['push'](_0x57ef9f['shift']());}}}(a203_0x38f2,0x9830a));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';function a203_0x38f2(){const _0x5dbe72=['createFetch','131628iuOrJk','us01','log','exitCode','test-api-key-id/test-api-key-secret','teardown','join','error','warn','setup','map','243YvdpGS','1403950fvhxpc','args','fail','push','6424sdINsd','fetch','1661799zTfQzv','104100iyFLls','315603colxOo','238qoyzMm','3250085mELqJJ','22PPnHPh','run','runSequence','originalFetch','4DNQJzY','http'];a203_0x38f2=function(){return _0x5dbe72;};return a203_0x38f2();}import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a203_0x550aeb(0x1a8)];[a203_0x550aeb(0x1a6)];constructor(){const _0x445a38=a203_0x550aeb;this[_0x445a38(0x1a8)]=createHTTPMock(),this[_0x445a38(0x1a6)]=global[_0x445a38(0x19d)];}[a203_0x550aeb(0x1b3)](){const _0xd59179=a203_0x550aeb;this[_0xd59179(0x1a6)]=global[_0xd59179(0x19d)],global[_0xd59179(0x19d)]=this[_0xd59179(0x1a8)][_0xd59179(0x1a9)]();}[a203_0x550aeb(0x1af)](_0x37a91c){const _0x21779d=a203_0x550aeb;try{_0x37a91c?.[_0x21779d(0x19a)]&&this[_0x21779d(0x1a8)]['verify'](_0x37a91c);}finally{global[_0x21779d(0x19d)]=this[_0x21779d(0x1a6)],this[_0x21779d(0x1a8)]['reset']();}}async[a203_0x550aeb(0x1a4)](_0x59218b,_0x3082ce={}){const _0x5b46e9=a203_0x550aeb,_0x24fc02=[],_0x4dfaa5=[],_0x59233e=console[_0x5b46e9(0x1ac)],_0x5398cb=console[_0x5b46e9(0x1b1)],_0x4c5559=console[_0x5b46e9(0x1b2)];console[_0x5b46e9(0x1ac)]=(..._0x5b5fc3)=>{const _0x1837ea=_0x5b46e9;_0x24fc02[_0x1837ea(0x19b)](_0x5b5fc3[_0x1837ea(0x1b4)](String)[_0x1837ea(0x1b0)]('\x20'));},console['error']=(..._0x30ceb8)=>{const _0x537ceb=_0x5b46e9;_0x4dfaa5['push'](_0x30ceb8[_0x537ceb(0x1b4)](String)[_0x537ceb(0x1b0)]('\x20'));},console[_0x5b46e9(0x1b2)]=(..._0x441f0)=>{const _0x9c6c10=_0x5b46e9;_0x4dfaa5[_0x9c6c10(0x19b)](_0x441f0[_0x9c6c10(0x1b4)](String)[_0x9c6c10(0x1b0)]('\x20'));};try{const _0x3f0d0a=new TDX({'site':_0x3082ce['options']?.['site']??_0x5b46e9(0x1ab),'apiKey':_0x5b46e9(0x1ae),'logLevel':LogLevel['ERROR']}),_0x3d25c1={'options':createTestGlobalOptions(_0x3082ce['options']),'args':_0x3082ce[_0x5b46e9(0x199)]??[],'tdx':_0x3f0d0a},_0x43e355=new _0x59218b(),_0x549717=await _0x43e355[_0x5b46e9(0x1a4)](_0x3d25c1);return{'exitCode':_0x549717,'stdout':_0x24fc02,'stderr':_0x4dfaa5};}finally{console['log']=_0x59233e,console[_0x5b46e9(0x1b1)]=_0x5398cb,console[_0x5b46e9(0x1b2)]=_0x4c5559;}}async[a203_0x550aeb(0x1a5)](_0x450c76){const _0x4e3e17=a203_0x550aeb,_0x55d857=[];for(const {command:_0x424432,options:_0x1fd9f4}of _0x450c76){const _0x593d51=await this['run'](_0x424432,_0x1fd9f4);_0x55d857['push'](_0x593d51);if(_0x593d51[_0x4e3e17(0x1ad)]!==0x0)break;}return _0x55d857;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a204_0x27546f=a204_0x27c1;(function(_0x40b776,_0x110d8d){const _0x32effe=a204_0x27c1,_0x529ad8=_0x40b776();while(!![]){try{const _0x51aa46=-parseInt(_0x32effe(0x1bf))/0x1*(-parseInt(_0x32effe(0x1ba))/0x2)+parseInt(_0x32effe(0x1c9))/0x3*(parseInt(_0x32effe(0x1b6))/0x4)+-parseInt(_0x32effe(0x1af))/0x5*(parseInt(_0x32effe(0x1b2))/0x6)+-parseInt(_0x32effe(0x1ab))/0x7*(-parseInt(_0x32effe(0x1b1))/0x8)+parseInt(_0x32effe(0x1c8))/0x9*(-parseInt(_0x32effe(0x1c5))/0xa)+parseInt(_0x32effe(0x1ae))/0xb+-parseInt(_0x32effe(0x1b0))/0xc;if(_0x51aa46===_0x110d8d)break;else _0x529ad8['push'](_0x529ad8['shift']());}catch(_0x10386e){_0x529ad8['push'](_0x529ad8['shift']());}}}(a204_0x1d59,0x30a72));function a204_0x27c1(_0x3a04c4,_0x1a2682){_0x3a04c4=_0x3a04c4-0x1ab;const _0x1d5972=a204_0x1d59();let _0x27c10b=_0x1d5972[_0x3a04c4];return _0x27c10b;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';function a204_0x1d59(){const _0x8586a3=['1725832IagZzp','984KjbZPq','warn','ERROR','exitCode','4GhwXXd','createFetch','fetch','run','6070jGtdwH','setup','options','log','push','107MuPrkm','us01','teardown','join','http','args','20UBmakx','originalFetch','map','487683vBZIiE','1132629CORpDH','7WkuOpt','error','site','1689633AFadOR','8895AOmQfX','5666496xizXMu'];a204_0x1d59=function(){return _0x8586a3;};return a204_0x1d59();}import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a204_0x27546f(0x1c3)];[a204_0x27546f(0x1c6)];constructor(){const _0x41fd30=a204_0x27546f;this[_0x41fd30(0x1c3)]=createHTTPMock(),this[_0x41fd30(0x1c6)]=global[_0x41fd30(0x1b8)];}[a204_0x27546f(0x1bb)](){const _0x302301=a204_0x27546f;this[_0x302301(0x1c6)]=global[_0x302301(0x1b8)],global[_0x302301(0x1b8)]=this[_0x302301(0x1c3)][_0x302301(0x1b7)]();}[a204_0x27546f(0x1c1)](_0x3aa5a4){const _0x3f92b9=a204_0x27546f;try{_0x3aa5a4?.['fail']&&this[_0x3f92b9(0x1c3)]['verify'](_0x3aa5a4);}finally{global[_0x3f92b9(0x1b8)]=this[_0x3f92b9(0x1c6)],this['http']['reset']();}}async[a204_0x27546f(0x1b9)](_0x3a8515,_0xafe9c7={}){const _0x43b14b=a204_0x27546f,_0x74eef6=[],_0x48a397=[],_0x1ce21a=console[_0x43b14b(0x1bd)],_0x2a28d5=console[_0x43b14b(0x1ac)],_0x3d6481=console[_0x43b14b(0x1b3)];console[_0x43b14b(0x1bd)]=(..._0x21940a)=>{const _0x384a66=_0x43b14b;_0x74eef6['push'](_0x21940a[_0x384a66(0x1c7)](String)[_0x384a66(0x1c2)]('\x20'));},console['error']=(..._0x3f85a3)=>{const _0x48279d=_0x43b14b;_0x48a397[_0x48279d(0x1be)](_0x3f85a3[_0x48279d(0x1c7)](String)['join']('\x20'));},console['warn']=(..._0x3345ff)=>{const _0x2fb1fa=_0x43b14b;_0x48a397['push'](_0x3345ff[_0x2fb1fa(0x1c7)](String)[_0x2fb1fa(0x1c2)]('\x20'));};try{const _0x47e11e=new TDX({'site':_0xafe9c7[_0x43b14b(0x1bc)]?.[_0x43b14b(0x1ad)]??_0x43b14b(0x1c0),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x43b14b(0x1b4)]}),_0x35eca3={'options':createTestGlobalOptions(_0xafe9c7['options']),'args':_0xafe9c7[_0x43b14b(0x1c4)]??[],'tdx':_0x47e11e},_0x7d937a=new _0x3a8515(),_0x5178cf=await _0x7d937a[_0x43b14b(0x1b9)](_0x35eca3);return{'exitCode':_0x5178cf,'stdout':_0x74eef6,'stderr':_0x48a397};}finally{console['log']=_0x1ce21a,console[_0x43b14b(0x1ac)]=_0x2a28d5,console[_0x43b14b(0x1b3)]=_0x3d6481;}}async['runSequence'](_0xbbaba2){const _0x81362e=a204_0x27546f,_0x583952=[];for(const {command:_0x2734b9,options:_0x18c7a2}of _0xbbaba2){const _0x40edb8=await this['run'](_0x2734b9,_0x18c7a2);_0x583952[_0x81362e(0x1be)](_0x40edb8);if(_0x40edb8[_0x81362e(0x1b5)]!==0x0)break;}return _0x583952;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0xa6f1ce,_0x407697){const _0x592883=a204_0x2074,_0x47b8a8=_0xa6f1ce();while(!![]){try{const _0x59108a=-parseInt(_0x592883(0x1e7))/0x1*(-parseInt(_0x592883(0x1dd))/0x2)+-parseInt(_0x592883(0x1d9))/0x3*(-parseInt(_0x592883(0x1db))/0x4)+parseInt(_0x592883(0x1e1))/0x5*(parseInt(_0x592883(0x1d6))/0x6)+-parseInt(_0x592883(0x1d2))/0x7*(-parseInt(_0x592883(0x1df))/0x8)+-parseInt(_0x592883(0x1ef))/0x9*(-parseInt(_0x592883(0x1ed))/0xa)+parseInt(_0x592883(0x1e5))/0xb+-parseInt(_0x592883(0x1d7))/0xc*(parseInt(_0x592883(0x1e9))/0xd);if(_0x59108a===_0x407697)break;else _0x47b8a8['push'](_0x47b8a8['shift']());}catch(_0x459ee4){_0x47b8a8['push'](_0x47b8a8['shift']());}}}(a204_0x788f,0xf0a6d));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';function a204_0x788f(){const _0xd9b901=['log','9HhbOgp','logs','us01','args','413EMYHsw','journey','join','tdx-test.log','2575134TQUTjM','2244Yisbct','init','4635294Mmbcea','map','4bKxHEl','user','2inqihh','workflow','196256rnUimp','error','10mmhUlM','ERROR','table','30000','6579705WtsMDO','tdx','660277eXjHdH','warn','414193qJcxKa','reset','test-api-key','push','18344200jUFxTm'];a204_0x788f=function(){return _0xd9b901;};return a204_0x788f();}import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x366e5b){const _0x234860=a204_0x2074;return{'site':'us01','apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x234860(0x1e2)],..._0x366e5b};}function a204_0x2074(_0x426c40,_0xd8dbe0){_0x426c40=_0x426c40-0x1d2;const _0x788f0e=a204_0x788f();let _0x207432=_0x788f0e[_0x426c40];return _0x207432;}export function createTestGlobalOptions(_0x54c79b){const _0x288701=a204_0x2074;return{'site':_0x288701(0x1f1),'format':_0x288701(0x1e3),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x288701(0x1e4),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x288701(0x1e2)],..._0x54c79b};}export async function initTestLogger(){const _0x804bf6=a204_0x2074;Logger['reset']();const _0xd5d827=join(getGlobalCacheDir(),_0x804bf6(0x1f0),_0x804bf6(0x1d5));await Logger[_0x804bf6(0x1d8)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0xd5d827,'rotate':![]})]});}export function resetTestLogger(){const _0x4d555f=a204_0x2074;Logger[_0x4d555f(0x1ea)]();}export function createMockTDX(_0x302b4e){const _0xebef1f=a204_0x2074;return{'context':{'site':_0xebef1f(0x1f1),'apiKey':_0xebef1f(0x1eb),'logLevel':LogLevel[_0xebef1f(0x1e2)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x302b4e?.['query']},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x302b4e?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x302b4e?.[_0xebef1f(0x1d3)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x302b4e?.[_0xebef1f(0x1de)]},'user':{'show':vi['fn'](),..._0x302b4e?.[_0xebef1f(0x1dc)]},'api':{'request':vi['fn'](),..._0x302b4e?.['api']},..._0x302b4e};}export function createTestCommandContext(_0x2b1727){const _0x24037d=a204_0x2074,_0x5ddd98=createTestGlobalOptions(_0x2b1727?.['options']),_0x5dc0e7=_0x2b1727?.[_0x24037d(0x1e6)]??createMockTDX();return{'options':_0x5ddd98,'args':_0x2b1727?.[_0x24037d(0x1f2)]??[],'tdx':_0x5dc0e7};}export function captureConsole(){const _0x533888=a204_0x2074,_0x2a6bc7=[],_0x2b6164=[],_0x236a5e=console[_0x533888(0x1ee)],_0x17b8f7=console[_0x533888(0x1e0)],_0x265bf4=console[_0x533888(0x1e8)];return console['log']=(..._0x23eb84)=>{const _0x5364b0=_0x533888;_0x2a6bc7[_0x5364b0(0x1ec)](_0x23eb84[_0x5364b0(0x1da)](String)[_0x5364b0(0x1d4)]('\x20'));},console['error']=(..._0x8a5106)=>{const _0x1fbf12=_0x533888;_0x2b6164[_0x1fbf12(0x1ec)](_0x8a5106['map'](String)[_0x1fbf12(0x1d4)]('\x20'));},console[_0x533888(0x1e8)]=(..._0x31fce5)=>{const _0xbe2cfe=_0x533888;_0x2b6164[_0xbe2cfe(0x1ec)](_0x31fce5[_0xbe2cfe(0x1da)](String)[_0xbe2cfe(0x1d4)]('\x20'));},{'stdout':_0x2a6bc7,'stderr':_0x2b6164,'restore':()=>{const _0x4f7409=_0x533888;console[_0x4f7409(0x1ee)]=_0x236a5e,console[_0x4f7409(0x1e0)]=_0x17b8f7,console[_0x4f7409(0x1e8)]=_0x265bf4;}};}
1
+ function a205_0x192a(_0x366a3f,_0xd7130d){_0x366a3f=_0x366a3f-0x18a;const _0x2dbb5e=a205_0x2dbb();let _0x192a21=_0x2dbb5e[_0x366a3f];return _0x192a21;}(function(_0x29e893,_0x17acc1){const _0x363a89=a205_0x192a,_0xc734d3=_0x29e893();while(!![]){try{const _0x5aeed3=-parseInt(_0x363a89(0x198))/0x1*(parseInt(_0x363a89(0x193))/0x2)+parseInt(_0x363a89(0x18e))/0x3*(-parseInt(_0x363a89(0x196))/0x4)+-parseInt(_0x363a89(0x18b))/0x5+parseInt(_0x363a89(0x1a4))/0x6*(parseInt(_0x363a89(0x1a5))/0x7)+parseInt(_0x363a89(0x19e))/0x8+-parseInt(_0x363a89(0x1a7))/0x9+parseInt(_0x363a89(0x190))/0xa;if(_0x5aeed3===_0x17acc1)break;else _0xc734d3['push'](_0xc734d3['shift']());}catch(_0x5b4ce9){_0xc734d3['push'](_0xc734d3['shift']());}}}(a205_0x2dbb,0x1f224));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0xd70143){const _0x133d7a=a205_0x192a;return{'site':'us01','apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x133d7a(0x194)],..._0xd70143};}export function createTestGlobalOptions(_0x568e64){const _0x4cc179=a205_0x192a;return{'site':'us01','format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x4cc179(0x1a0),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x4cc179(0x194)],..._0x568e64};}export async function initTestLogger(){const _0x330e9d=a205_0x192a;Logger['reset']();const _0x21f037=join(getGlobalCacheDir(),_0x330e9d(0x197),_0x330e9d(0x19f));await Logger[_0x330e9d(0x192)]({'defaultLevel':LogLevel[_0x330e9d(0x1a1)],'handlers':[new FileHandler({'filePath':_0x21f037,'rotate':![]})]});}function a205_0x2dbb(){const _0x1e80ce=['tdx','segment','1014088AGaANO','tdx-test.log','30000','DEBUG','journey','map','1039914XtytXS','7ucLBkS','join','1424817yMUkpE','args','1169740DVgPdj','push','error','2340ZgLdWa','reset','6048310dtCZgY','workflow','init','14cZyDfU','ERROR','us01','756QbiKrV','logs','33958uRGayE','log','warn','query'];a205_0x2dbb=function(){return _0x1e80ce;};return a205_0x2dbb();}export function resetTestLogger(){const _0x124ed1=a205_0x192a;Logger[_0x124ed1(0x18f)]();}export function createMockTDX(_0x4d9b83){const _0x57c8ec=a205_0x192a;return{'context':{'site':_0x57c8ec(0x195),'apiKey':'test-api-key','logLevel':LogLevel[_0x57c8ec(0x194)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4d9b83?.[_0x57c8ec(0x19b)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4d9b83?.[_0x57c8ec(0x19d)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4d9b83?.[_0x57c8ec(0x1a2)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4d9b83?.[_0x57c8ec(0x191)]},'user':{'show':vi['fn'](),..._0x4d9b83?.['user']},'api':{'request':vi['fn'](),..._0x4d9b83?.['api']},..._0x4d9b83};}export function createTestCommandContext(_0x387791){const _0x69b742=a205_0x192a,_0x258c27=createTestGlobalOptions(_0x387791?.['options']),_0x98a527=_0x387791?.[_0x69b742(0x19c)]??createMockTDX();return{'options':_0x258c27,'args':_0x387791?.[_0x69b742(0x18a)]??[],'tdx':_0x98a527};}export function captureConsole(){const _0x4b39d8=a205_0x192a,_0x465742=[],_0x50d929=[],_0x58111d=console[_0x4b39d8(0x199)],_0x259728=console[_0x4b39d8(0x18d)],_0x1909eb=console[_0x4b39d8(0x19a)];return console[_0x4b39d8(0x199)]=(..._0x595c5d)=>{const _0x1f0b7b=_0x4b39d8;_0x465742[_0x1f0b7b(0x18c)](_0x595c5d[_0x1f0b7b(0x1a3)](String)['join']('\x20'));},console[_0x4b39d8(0x18d)]=(..._0x46ba7c)=>{const _0x2f856a=_0x4b39d8;_0x50d929['push'](_0x46ba7c['map'](String)[_0x2f856a(0x1a6)]('\x20'));},console['warn']=(..._0x57e66c)=>{const _0x538f31=_0x4b39d8;_0x50d929[_0x538f31(0x18c)](_0x57e66c[_0x538f31(0x1a3)](String)[_0x538f31(0x1a6)]('\x20'));},{'stdout':_0x465742,'stderr':_0x50d929,'restore':()=>{const _0x447e20=_0x4b39d8;console['log']=_0x58111d,console[_0x447e20(0x18d)]=_0x259728,console['warn']=_0x1909eb;}};}
@@ -1 +1 @@
1
- const a205_0x47b14e=a205_0x1e6f;(function(_0x28a84e,_0x3a6ff5){const _0x6ef5f7=a205_0x1e6f,_0x12e862=_0x28a84e();while(!![]){try{const _0x146e45=-parseInt(_0x6ef5f7(0x149))/0x1+-parseInt(_0x6ef5f7(0x143))/0x2+parseInt(_0x6ef5f7(0x17e))/0x3+parseInt(_0x6ef5f7(0x18c))/0x4*(-parseInt(_0x6ef5f7(0x11f))/0x5)+parseInt(_0x6ef5f7(0x16a))/0x6+-parseInt(_0x6ef5f7(0x184))/0x7+parseInt(_0x6ef5f7(0x144))/0x8;if(_0x146e45===_0x3a6ff5)break;else _0x12e862['push'](_0x12e862['shift']());}catch(_0x3c6588){_0x12e862['push'](_0x12e862['shift']());}}}(a205_0x4617,0xf14ef));export const fixtures={'database':{'basic':{'name':a205_0x47b14e(0x129),'count':0x5,'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x189),'permission':'administrator'},'withTables':{'name':'production_db','count':0x64,'created_at':a205_0x47b14e(0x13e),'updated_at':a205_0x47b14e(0x182),'permission':a205_0x47b14e(0x133)}},'table':{'basic':{'id':0x3039,'name':a205_0x47b14e(0x157),'type':'log','schema':JSON[a205_0x47b14e(0x172)]([['id',a205_0x47b14e(0x165)],['time','long'],[a205_0x47b14e(0x12b),a205_0x47b14e(0x165)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x189)},'events':{'id':0x303a,'name':a205_0x47b14e(0x134),'type':'log','schema':JSON[a205_0x47b14e(0x172)]([[a205_0x47b14e(0x11b),a205_0x47b14e(0x165)],[a205_0x47b14e(0x16c),a205_0x47b14e(0x146)],[a205_0x47b14e(0x15f),'string'],[a205_0x47b14e(0x166),a205_0x47b14e(0x165)],[a205_0x47b14e(0x13c),a205_0x47b14e(0x130)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x47b14e(0x14c)}},'parentSegment':{'basic':{'id':'ps-123456','name':'Test\x20Parent\x20Segment','description':a205_0x47b14e(0x136),'status':a205_0x47b14e(0x162),'master_table':{'database':a205_0x47b14e(0x156),'table':a205_0x47b14e(0x170)},'attributes':[{'name':'customer_id','type':'string','key':!![]},{'name':a205_0x47b14e(0x15e),'type':a205_0x47b14e(0x165)},{'name':a205_0x47b14e(0x126),'type':a205_0x47b14e(0x147)}],'created_at':a205_0x47b14e(0x189),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':'ps-789012','name':a205_0x47b14e(0x181),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a205_0x47b14e(0x162),'master_table':{'database':a205_0x47b14e(0x156),'table':'customers'},'behaviors':[{'name':a205_0x47b14e(0x12c),'table':{'database':a205_0x47b14e(0x18a),'table':a205_0x47b14e(0x12c)},'join_key':a205_0x47b14e(0x175)},{'name':a205_0x47b14e(0x17c),'table':{'database':a205_0x47b14e(0x18a),'table':a205_0x47b14e(0x14e)},'join_key':a205_0x47b14e(0x175)}],'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x188)}},'segment':{'basic':{'id':'cs-456789','name':a205_0x47b14e(0x141),'description':a205_0x47b14e(0x14a),'parent_segment_id':a205_0x47b14e(0x13a),'status':a205_0x47b14e(0x162),'rules':[{'type':a205_0x47b14e(0x16d),'field':a205_0x47b14e(0x13b),'operator':a205_0x47b14e(0x154),'value':'30d'}],'count':0x1388,'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x188)},'withMultipleRules':{'id':a205_0x47b14e(0x151),'name':a205_0x47b14e(0x153),'description':a205_0x47b14e(0x161),'parent_segment_id':a205_0x47b14e(0x13a),'status':a205_0x47b14e(0x162),'rules':[{'type':a205_0x47b14e(0x16d),'field':a205_0x47b14e(0x13b),'operator':a205_0x47b14e(0x154),'value':a205_0x47b14e(0x16f)},{'type':a205_0x47b14e(0x16d),'field':a205_0x47b14e(0x187),'operator':a205_0x47b14e(0x169),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x47b14e(0x188)}},'journey':{'basic':{'id':a205_0x47b14e(0x18d),'name':a205_0x47b14e(0x131),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a205_0x47b14e(0x11c),'version':0x1,'steps':[{'id':'step-1','type':a205_0x47b14e(0x148),'duration':'1d'},{'id':'step-2','type':'activation','activation_id':a205_0x47b14e(0x152)}],'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x188)},'withDecision':{'id':a205_0x47b14e(0x18b),'name':a205_0x47b14e(0x155),'description':a205_0x47b14e(0x186),'status':a205_0x47b14e(0x162),'version':0x2,'steps':[{'id':a205_0x47b14e(0x17b),'type':a205_0x47b14e(0x13f),'segment_id':'cs-456789','yes_path':a205_0x47b14e(0x120),'no_path':a205_0x47b14e(0x177)},{'id':a205_0x47b14e(0x120),'type':'activation','activation_id':'act-email'},{'id':'step-3','type':a205_0x47b14e(0x164)}],'created_at':a205_0x47b14e(0x189),'updated_at':a205_0x47b14e(0x188)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a205_0x47b14e(0x15d)},{'name':a205_0x47b14e(0x12b),'type':a205_0x47b14e(0x15d)},{'name':'count','type':a205_0x47b14e(0x171)}],'data':[[a205_0x47b14e(0x167),a205_0x47b14e(0x185),0x64],[a205_0x47b14e(0x180),a205_0x47b14e(0x124),0xc8],[a205_0x47b14e(0x160),a205_0x47b14e(0x15a),0x96]]},'empty':{'schema':[{'name':'id','type':a205_0x47b14e(0x15d)},{'name':a205_0x47b14e(0x12b),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a205_0x47b14e(0x12a),'type':a205_0x47b14e(0x171)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a205_0x47b14e(0x13d),'email':a205_0x47b14e(0x15b),'created_at':a205_0x47b14e(0x189),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a205_0x47b14e(0x159),'email':'admin@example.com','created_at':'2023-01-01T00:00:00Z','updated_at':a205_0x47b14e(0x188),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a205_0x47b14e(0x129),'status':a205_0x47b14e(0x139),'query':a205_0x47b14e(0x179),'start_at':a205_0x47b14e(0x17d),'end_at':a205_0x47b14e(0x163),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a205_0x47b14e(0x129),'status':a205_0x47b14e(0x174),'query':a205_0x47b14e(0x140),'start_at':a205_0x47b14e(0x125),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a205_0x47b14e(0x145),'database':a205_0x47b14e(0x129),'status':a205_0x47b14e(0x17a),'query':a205_0x47b14e(0x128),'start_at':'2024-01-15T10:10:00Z','end_at':a205_0x47b14e(0x122),'duration':0x1,'result_size':null,'error':a205_0x47b14e(0x183)}},'workflow':{'basic':{'id':a205_0x47b14e(0x12d),'name':a205_0x47b14e(0x16b),'project':a205_0x47b14e(0x11e),'revision':a205_0x47b14e(0x158),'timezone':a205_0x47b14e(0x14f),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a205_0x47b14e(0x11a),'name':a205_0x47b14e(0x168),'project':a205_0x47b14e(0x12e),'revision':a205_0x47b14e(0x14b),'timezone':a205_0x47b14e(0x135),'schedule':{'cron':a205_0x47b14e(0x137)},'last_session':{'id':a205_0x47b14e(0x142),'status':a205_0x47b14e(0x139),'started_at':'2024-01-15T09:00:00Z','finished_at':a205_0x47b14e(0x127)}}},'apiError':{'unauthorized':{'errors':{'error':a205_0x47b14e(0x15c),'message':a205_0x47b14e(0x15c),'severity':a205_0x47b14e(0x17a),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a205_0x47b14e(0x17a),'status_code':0x194}},'rateLimited':{'detail':a205_0x47b14e(0x176)},'rfc9457':{'type':a205_0x47b14e(0x17f),'title':a205_0x47b14e(0x123),'status':0x193,'detail':a205_0x47b14e(0x16e),'instance':a205_0x47b14e(0x132)}}};function a205_0x1e6f(_0x1b0fe1,_0x39210e){_0x1b0fe1=_0x1b0fe1-0x11a;const _0x461752=a205_0x4617();let _0x1e6fb3=_0x461752[_0x1b0fe1];return _0x1e6fb3;}export function createDatabase(_0x2f82d8){const _0x309e72=a205_0x47b14e;return{...fixtures[_0x309e72(0x178)][_0x309e72(0x173)],..._0x2f82d8};}export function createTable(_0xe6d6ff){const _0xc362d6=a205_0x47b14e;return{...fixtures[_0xc362d6(0x12f)]['basic'],..._0xe6d6ff};}export function createParentSegment(_0x69fe1c){const _0xc2e203=a205_0x47b14e;return{...fixtures[_0xc2e203(0x11d)][_0xc2e203(0x173)],..._0x69fe1c};}export function createSegment(_0x595883){const _0x59b6cc=a205_0x47b14e;return{...fixtures[_0x59b6cc(0x138)]['basic'],..._0x595883};}export function createJourney(_0x2dcca9){const _0x266557=a205_0x47b14e;return{...fixtures['journey'][_0x266557(0x173)],..._0x2dcca9};}export function createQueryResult(_0x2f04a6){const _0x1ef8a7=a205_0x47b14e;return{...fixtures[_0x1ef8a7(0x150)]['basic'],..._0x2f04a6};}function a205_0x4617(){const _0x591949=['Customers\x20with\x20Behaviors','2024-01-15T08:00:00Z','Table\x20does\x20not\x20exist:\x20nonexistent_table','10624026suvNvi','Alice','Journey\x20with\x20decision\x20point','lifetime_value','2024-01-15T00:00:00Z','2024-01-01T00:00:00Z','events_db','j-def456','40nqBgnX','j-abc123','wf-67890','event_id','draft','parentSegment','data_pipeline','581710xKWloc','step-2','job','2024-01-15T10:10:01Z','Forbidden','Bob','2024-01-15T10:05:00Z','created_at','2024-01-15T09:05:00Z','SELECT\x20*\x20FROM\x20nonexistent_table','test_db','total','name','purchases','wf-12345','data_sync','table','map<string,string>','Welcome\x20Journey','/v3/database/list','full_access','events','America/Los_Angeles','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','0\x20*\x20*\x20*\x20*','segment','success','ps-123456','last_login','properties','Test\x20User','2023-06-15T10:30:00Z','decision_point','SELECT\x20COUNT(*)\x20FROM\x20events','Active\x20Users','sess-111','519340Kkvmgr','26252328NQwIIE','presto','long','timestamp','wait','62374HTiLtJ','Users\x20active\x20in\x20the\x20last\x2030\x20days','def456','2024-01-15T12:00:00Z','workflow','pageviews','UTC','queryResult','cs-111222','act-123','High\x20Value\x20Active\x20Users','TimeWithinPast','Purchase\x20Reminder','cdp_db','users','abc123','Admin\x20User','Charlie','test@example.com','Invalid\x20API\x20key','varchar','email','user_id','user-3','Active\x20users\x20with\x20high\x20lifetime\x20value','active','2024-01-15T10:00:05Z','end','string','event_type','user-1','hourly_sync','Greater','2450484KdGjEt','daily_etl','time','attribute','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','30d','unified_customers','bigint','stringify','basic','running','customer_id','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','step-3','database','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','error','step-1','page_views','2024-01-15T10:00:00Z','904878AbvvGu','https://api.treasuredata.com/errors/forbidden','user-2'];a205_0x4617=function(){return _0x591949;};return a205_0x4617();}export function createUser(_0x50eeda){const _0x488175=a205_0x47b14e;return{...fixtures['user'][_0x488175(0x173)],..._0x50eeda};}export function createJob(_0xa2e169){const _0x2654e7=a205_0x47b14e;return{...fixtures[_0x2654e7(0x121)]['completed'],..._0xa2e169};}export function createWorkflow(_0x5a9c08){const _0x1c39b6=a205_0x47b14e;return{...fixtures[_0x1c39b6(0x14d)][_0x1c39b6(0x173)],..._0x5a9c08};}
1
+ const a206_0x207047=a206_0x19aa;(function(_0x37c5b5,_0x461781){const _0x4c7c1c=a206_0x19aa,_0x293006=_0x37c5b5();while(!![]){try{const _0x1cac62=parseInt(_0x4c7c1c(0xe3))/0x1*(parseInt(_0x4c7c1c(0xa0))/0x2)+parseInt(_0x4c7c1c(0xe2))/0x3*(parseInt(_0x4c7c1c(0xd9))/0x4)+parseInt(_0x4c7c1c(0xaa))/0x5+parseInt(_0x4c7c1c(0xc4))/0x6+-parseInt(_0x4c7c1c(0xf4))/0x7*(-parseInt(_0x4c7c1c(0xf8))/0x8)+parseInt(_0x4c7c1c(0xe9))/0x9+parseInt(_0x4c7c1c(0xdf))/0xa*(-parseInt(_0x4c7c1c(0x9d))/0xb);if(_0x1cac62===_0x461781)break;else _0x293006['push'](_0x293006['shift']());}catch(_0x457526){_0x293006['push'](_0x293006['shift']());}}}(a206_0x2ace,0xa62ad));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x207047(0x108),'permission':a206_0x207047(0xf6)},'withTables':{'name':'production_db','count':0x64,'created_at':a206_0x207047(0xbe),'updated_at':a206_0x207047(0xe0),'permission':a206_0x207047(0xea)}},'table':{'basic':{'id':0x3039,'name':'users','type':a206_0x207047(0x107),'schema':JSON[a206_0x207047(0xbb)]([['id','string'],[a206_0x207047(0xe6),a206_0x207047(0x9c)],['name',a206_0x207047(0xc9)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x207047(0x108),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a206_0x207047(0xd5),'type':a206_0x207047(0x107),'schema':JSON[a206_0x207047(0xbb)]([[a206_0x207047(0x10a),a206_0x207047(0xc9)],[a206_0x207047(0xe6),a206_0x207047(0x9c)],[a206_0x207047(0x9f),a206_0x207047(0xc9)],[a206_0x207047(0xcc),a206_0x207047(0xc9)],['properties',a206_0x207047(0xae)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a206_0x207047(0x108),'updated_at':a206_0x207047(0xd7)}},'parentSegment':{'basic':{'id':a206_0x207047(0xd8),'name':a206_0x207047(0xbc),'description':a206_0x207047(0xce),'status':'active','master_table':{'database':a206_0x207047(0xff),'table':a206_0x207047(0x99)},'attributes':[{'name':a206_0x207047(0xa8),'type':a206_0x207047(0xc9),'key':!![]},{'name':'email','type':a206_0x207047(0xc9)},{'name':a206_0x207047(0x104),'type':a206_0x207047(0xfd)}],'created_at':a206_0x207047(0x108),'updated_at':a206_0x207047(0x105)},'withBehaviors':{'id':a206_0x207047(0xd1),'name':a206_0x207047(0xca),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a206_0x207047(0xde),'master_table':{'database':a206_0x207047(0xff),'table':'customers'},'behaviors':[{'name':a206_0x207047(0xf7),'table':{'database':a206_0x207047(0xdb),'table':a206_0x207047(0xf7)},'join_key':a206_0x207047(0xa8)},{'name':'page_views','table':{'database':a206_0x207047(0xdb),'table':a206_0x207047(0xef)},'join_key':a206_0x207047(0xa8)}],'created_at':a206_0x207047(0x108),'updated_at':a206_0x207047(0x105)}},'segment':{'basic':{'id':a206_0x207047(0xf3),'name':a206_0x207047(0xf0),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a206_0x207047(0xd8),'status':a206_0x207047(0xde),'rules':[{'type':a206_0x207047(0x106),'field':'last_login','operator':a206_0x207047(0xc8),'value':a206_0x207047(0xbf)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x207047(0x105)},'withMultipleRules':{'id':a206_0x207047(0xc5),'name':a206_0x207047(0xb4),'description':a206_0x207047(0xa3),'parent_segment_id':'ps-123456','status':a206_0x207047(0xde),'rules':[{'type':a206_0x207047(0x106),'field':'last_login','operator':a206_0x207047(0xc8),'value':'30d'},{'type':a206_0x207047(0x106),'field':'lifetime_value','operator':a206_0x207047(0xd3),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x207047(0x105)}},'journey':{'basic':{'id':a206_0x207047(0xcd),'name':a206_0x207047(0xfb),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':'draft','version':0x1,'steps':[{'id':a206_0x207047(0xf2),'type':'wait','duration':'1d'},{'id':'step-2','type':a206_0x207047(0xf1),'activation_id':a206_0x207047(0xe7)}],'created_at':a206_0x207047(0x108),'updated_at':a206_0x207047(0x105)},'withDecision':{'id':a206_0x207047(0xba),'name':'Purchase\x20Reminder','description':a206_0x207047(0xf9),'status':a206_0x207047(0xde),'version':0x2,'steps':[{'id':a206_0x207047(0xf2),'type':a206_0x207047(0xb8),'segment_id':a206_0x207047(0xf3),'yes_path':a206_0x207047(0xaf),'no_path':a206_0x207047(0xe5)},{'id':a206_0x207047(0xaf),'type':a206_0x207047(0xf1),'activation_id':a206_0x207047(0xb6)},{'id':a206_0x207047(0xe5),'type':'end'}],'created_at':a206_0x207047(0x108),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a206_0x207047(0xee),'type':a206_0x207047(0xb1)},{'name':'count','type':'bigint'}],'data':[[a206_0x207047(0x100),a206_0x207047(0xd2),0x64],[a206_0x207047(0xf5),a206_0x207047(0xb3),0xc8],[a206_0x207047(0xa5),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a206_0x207047(0xb1)}],'data':[]},'singleRow':{'schema':[{'name':a206_0x207047(0xda),'type':a206_0x207047(0xb0)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a206_0x207047(0xab),'email':a206_0x207047(0xfc),'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x207047(0x105),'administrator':![]},'admin':{'id':0x1,'name':a206_0x207047(0xd0),'email':a206_0x207047(0xb5),'created_at':a206_0x207047(0xdd),'updated_at':a206_0x207047(0x105),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x207047(0xc7),'database':a206_0x207047(0xb9),'status':'success','query':a206_0x207047(0x102),'start_at':a206_0x207047(0xc3),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a206_0x207047(0xb9),'status':a206_0x207047(0xa2),'query':a206_0x207047(0xeb),'start_at':a206_0x207047(0x10b),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x207047(0xc7),'database':a206_0x207047(0xb9),'status':a206_0x207047(0xc1),'query':a206_0x207047(0xac),'start_at':a206_0x207047(0xa1),'end_at':a206_0x207047(0xa7),'duration':0x1,'result_size':null,'error':a206_0x207047(0x101)}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a206_0x207047(0xd4),'revision':a206_0x207047(0xb2),'timezone':a206_0x207047(0xb7),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a206_0x207047(0x103),'project':a206_0x207047(0xed),'revision':'def456','timezone':a206_0x207047(0xe4),'schedule':{'cron':a206_0x207047(0x109)},'last_session':{'id':a206_0x207047(0xa6),'status':a206_0x207047(0xa9),'started_at':a206_0x207047(0xe8),'finished_at':a206_0x207047(0xc2)}}},'apiError':{'unauthorized':{'errors':{'error':a206_0x207047(0xec),'message':a206_0x207047(0xec),'severity':a206_0x207047(0xc1),'status_code':0x191}},'notFound':{'errors':{'error':a206_0x207047(0x9e),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a206_0x207047(0xc6)},'rfc9457':{'type':a206_0x207047(0xe1),'title':a206_0x207047(0xad),'status':0x193,'detail':a206_0x207047(0xc0),'instance':a206_0x207047(0xbd)}}};export function createDatabase(_0x1feba6){const _0x1f48f7=a206_0x207047;return{...fixtures[_0x1f48f7(0xfa)][_0x1f48f7(0x9a)],..._0x1feba6};}export function createTable(_0x2a599a){const _0x236d42=a206_0x207047;return{...fixtures[_0x236d42(0xdc)][_0x236d42(0x9a)],..._0x2a599a};}function a206_0x19aa(_0x1c32ea,_0x3ed6c7){_0x1c32ea=_0x1c32ea-0x99;const _0x2aceb3=a206_0x2ace();let _0x19aaf2=_0x2aceb3[_0x1c32ea];return _0x19aaf2;}export function createParentSegment(_0x2b5f2c){const _0xca111a=a206_0x207047;return{...fixtures[_0xca111a(0xd6)][_0xca111a(0x9a)],..._0x2b5f2c};}function a206_0x2ace(){const _0x15c99a=['SELECT\x20*\x20FROM\x20nonexistent_table','Forbidden','map<string,string>','step-2','bigint','varchar','abc123','Bob','High\x20Value\x20Active\x20Users','admin@example.com','act-email','UTC','decision_point','test_db','j-def456','stringify','Test\x20Parent\x20Segment','/v3/database/list','2023-06-15T10:30:00Z','30d','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','error','2024-01-15T09:05:00Z','2024-01-15T10:00:00Z','4204410JqbwQl','cs-111222','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','presto','TimeWithinPast','string','Customers\x20with\x20Behaviors','journey','event_type','j-abc123','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','job','Admin\x20User','ps-789012','Alice','Greater','data_pipeline','events','parentSegment','2024-01-15T12:00:00Z','ps-123456','4uKkBNw','total','events_db','table','2023-01-01T00:00:00Z','active','683000xjjYuf','2024-01-15T08:00:00Z','https://api.treasuredata.com/errors/forbidden','3339579sflozV','39oofEyE','America/Los_Angeles','step-3','time','act-123','2024-01-15T09:00:00Z','11909331oJDBSE','full_access','SELECT\x20COUNT(*)\x20FROM\x20events','Invalid\x20API\x20key','data_sync','name','pageviews','Active\x20Users','activation','step-1','cs-456789','5275753jygYgb','user-2','administrator','purchases','8twAZZX','Journey\x20with\x20decision\x20point','database','Welcome\x20Journey','test@example.com','timestamp','completed','cdp_db','user-1','Table\x20does\x20not\x20exist:\x20nonexistent_table','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','hourly_sync','created_at','2024-01-15T00:00:00Z','attribute','log','2024-01-01T00:00:00Z','0\x20*\x20*\x20*\x20*','event_id','2024-01-15T10:05:00Z','unified_customers','basic','queryResult','long','902IDAMgT','Resource\x20not\x20found','user_id','63222SlPWja','2024-01-15T10:10:00Z','running','Active\x20users\x20with\x20high\x20lifetime\x20value','segment','user-3','sess-111','2024-01-15T10:10:01Z','customer_id','success','5787630VGPqBp','Test\x20User'];a206_0x2ace=function(){return _0x15c99a;};return a206_0x2ace();}export function createSegment(_0x337209){const _0x181371=a206_0x207047;return{...fixtures[_0x181371(0xa4)][_0x181371(0x9a)],..._0x337209};}export function createJourney(_0x177b4f){const _0x3f3a2=a206_0x207047;return{...fixtures[_0x3f3a2(0xcb)][_0x3f3a2(0x9a)],..._0x177b4f};}export function createQueryResult(_0x29a7b2){const _0x151202=a206_0x207047;return{...fixtures[_0x151202(0x9b)][_0x151202(0x9a)],..._0x29a7b2};}export function createUser(_0x42df12){const _0x122716=a206_0x207047;return{...fixtures['user'][_0x122716(0x9a)],..._0x42df12};}export function createJob(_0x2dd7d8){const _0x5b0379=a206_0x207047;return{...fixtures[_0x5b0379(0xcf)][_0x5b0379(0xfe)],..._0x2dd7d8};}export function createWorkflow(_0x22c68c){const _0x929595=a206_0x207047;return{...fixtures['workflow'][_0x929595(0x9a)],..._0x22c68c};}
@@ -1 +1 @@
1
- function a206_0x2da2(_0x12121b,_0x318b4d){_0x12121b=_0x12121b-0x100;const _0x7dc73b=a206_0x7dc7();let _0x2da21c=_0x7dc73b[_0x12121b];return _0x2da21c;}const a206_0x57e804=a206_0x2da2;(function(_0x2a03bb,_0x1a86ac){const _0x465dbc=a206_0x2da2,_0x4e589e=_0x2a03bb();while(!![]){try{const _0x2a8e4c=-parseInt(_0x465dbc(0x130))/0x1+parseInt(_0x465dbc(0x144))/0x2+-parseInt(_0x465dbc(0x134))/0x3*(parseInt(_0x465dbc(0x111))/0x4)+parseInt(_0x465dbc(0x141))/0x5*(parseInt(_0x465dbc(0x10c))/0x6)+parseInt(_0x465dbc(0x142))/0x7*(parseInt(_0x465dbc(0x118))/0x8)+parseInt(_0x465dbc(0x124))/0x9+parseInt(_0x465dbc(0x11e))/0xa*(parseInt(_0x465dbc(0x101))/0xb);if(_0x2a8e4c===_0x1a86ac)break;else _0x4e589e['push'](_0x4e589e['shift']());}catch(_0xaef884){_0x4e589e['push'](_0x4e589e['shift']());}}}(a206_0x7dc7,0x8bb3b));import{vi}from'vitest';export class HTTPMockRegistry{[a206_0x57e804(0x112)]=[];[a206_0x57e804(0x14a)]=[];[a206_0x57e804(0x10f)]=null;[a206_0x57e804(0x100)](_0x8229c7,_0x886fe0){return _0x29e169=>{const _0xbab366=a206_0x2da2;if(_0x29e169[_0xbab366(0x146)][_0xbab366(0x108)]()!==_0x8229c7[_0xbab366(0x108)]())return![];const _0x22a579=new URL(_0x29e169[_0xbab366(0x105)]);if(typeof _0x886fe0===_0xbab366(0x121))return _0x22a579[_0xbab366(0x150)]===_0x886fe0||_0x22a579['pathname'][_0xbab366(0x13a)](_0x886fe0);return _0x886fe0[_0xbab366(0x12b)](_0x22a579['pathname']);};}[a206_0x57e804(0x11f)](_0x4dabd2,_0x4b209c){return _0x6de895=>{const _0x44e463=a206_0x2da2;if(!_0x4dabd2(_0x6de895))return![];const _0xfb0a61=new URL(_0x6de895[_0x44e463(0x105)]);return Object['entries'](_0x4b209c)[_0x44e463(0x14b)](([_0x1652d9,_0x572bb3])=>_0xfb0a61['searchParams']['get'](_0x1652d9)===_0x572bb3);};}['withBody'](_0x157ced,_0x33b967){return _0x254ef5=>{const _0x1ee502=a206_0x2da2;if(!_0x157ced(_0x254ef5))return![];if(typeof _0x33b967===_0x1ee502(0x13d))return _0x33b967(_0x254ef5[_0x1ee502(0x115)]);return JSON[_0x1ee502(0x123)](_0x254ef5['body'])===JSON['stringify'](_0x33b967);};}[a206_0x57e804(0x126)](_0x2a722d,_0x5d73ca){return _0x1f2be0=>{if(!_0x2a722d(_0x1f2be0))return![];const _0xf2d81c=new URL(_0x1f2be0['url']);return _0xf2d81c['host']===_0x5d73ca;};}[a206_0x57e804(0x109)](_0x3d9d47,_0x76bca7,_0x10f324){const _0x4a2b89=a206_0x57e804;this[_0x4a2b89(0x112)]['push']({'matcher':_0x3d9d47,'responder':_0x76bca7,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x10f324?.[_0x4a2b89(0x133)]});}[a206_0x57e804(0x14d)](_0x4b7796,_0x2974b7,_0x4ab5df){const _0x2ad906=a206_0x57e804,_0x77ef39=_0x5cd825=>{const _0x2eea0a=a206_0x2da2;return _0x4ab5df(_0x5cd825[_0x2eea0a(0x115)],_0x5cd825),_0x2974b7(_0x5cd825);};this[_0x2ad906(0x109)](_0x4b7796,_0x77ef39);}static[a206_0x57e804(0x114)](_0x32f664,_0x48e7bf=0xc8){return()=>new Response(JSON['stringify'](_0x32f664),{'status':_0x48e7bf,'headers':{'Content-Type':'application/json'}});}static[a206_0x57e804(0x135)](_0x4f8926,_0x2af8a7,_0xa91172=a206_0x57e804(0x136)){return()=>{const _0x17f2f1=a206_0x2da2;let _0x140ec2;switch(_0xa91172){case'td-api':_0x140ec2={'errors':{'error':_0x2af8a7,'message':_0x2af8a7,'severity':_0x17f2f1(0x110),'status_code':_0x4f8926}};break;case _0x17f2f1(0x116):_0x140ec2={'type':_0x17f2f1(0x117)+_0x4f8926,'title':HTTPMockRegistry[_0x17f2f1(0x128)](_0x4f8926),'status':_0x4f8926,'detail':_0x2af8a7};break;default:_0x140ec2={'error':_0x2af8a7};}return new Response(JSON['stringify'](_0x140ec2),{'status':_0x4f8926,'headers':{'Content-Type':_0x17f2f1(0x14e)}});};}static[a206_0x57e804(0x148)](_0x6c00d1,_0x56273e,_0x1e8aa8=0xc8){const _0x30406b=a206_0x57e804;return()=>new Response(JSON[_0x30406b(0x123)](_0x6c00d1),{'status':_0x1e8aa8,'headers':{'Content-Type':_0x30406b(0x14e),..._0x56273e}});}static[a206_0x57e804(0x127)](_0x3cf23a,_0x4ecdb4=0xc8){const _0x5bd2f5=a206_0x57e804;return()=>new Response(_0x3cf23a,{'status':_0x4ecdb4,'headers':{'Content-Type':_0x5bd2f5(0x13e)}});}static['networkError'](_0x4ea94c){return()=>{throw new Error(_0x4ea94c);};}['createFetch'](){const _0x266858=a206_0x57e804;return this['fetchMock']=vi['fn']()[_0x266858(0x10b)](async(_0x32600f,_0x26c8de)=>{const _0x390f7f=_0x266858,_0x488cb8=this[_0x390f7f(0x137)](_0x32600f,_0x26c8de);this[_0x390f7f(0x14a)][_0x390f7f(0x13b)](_0x488cb8);for(const _0x3857b8 of this[_0x390f7f(0x112)]){if(_0x3857b8[_0x390f7f(0x10a)](_0x488cb8))return _0x3857b8[_0x390f7f(0x125)]=!![],_0x3857b8['matchCount']++,_0x3857b8[_0x390f7f(0x12e)](_0x488cb8);}const _0x4fe82b=this[_0x390f7f(0x112)]['map']((_0x185b0c,_0x238a5d)=>'\x20\x20'+(_0x238a5d+0x1)+'.\x20'+(_0x185b0c[_0x390f7f(0x133)]??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x390f7f(0x10d)+_0x488cb8[_0x390f7f(0x146)]+'\x20'+_0x488cb8[_0x390f7f(0x105)]+'\x0a'+(_0x390f7f(0x129)+JSON[_0x390f7f(0x123)](_0x488cb8[_0x390f7f(0x115)])+'\x0a')+(_0x390f7f(0x138)+(_0x4fe82b||_0x390f7f(0x119))));}),this[_0x266858(0x10f)];}[a206_0x57e804(0x137)](_0xedd52c,_0x44feed){const _0x4a2ce5=a206_0x57e804,_0x367604={};if(_0x44feed?.[_0x4a2ce5(0x113)]){if(_0x44feed[_0x4a2ce5(0x113)]instanceof Headers)_0x44feed[_0x4a2ce5(0x113)][_0x4a2ce5(0x12c)]((_0x243609,_0x42e1e3)=>{const _0x2e35ae=_0x4a2ce5;_0x367604[_0x42e1e3[_0x2e35ae(0x143)]()]=_0x243609;});else{if(Array[_0x4a2ce5(0x14f)](_0x44feed['headers']))for(const [_0x7a253b,_0x5c27f2]of _0x44feed[_0x4a2ce5(0x113)]){_0x367604[_0x7a253b[_0x4a2ce5(0x143)]()]=_0x5c27f2;}else for(const [_0x1d60d3,_0x3b0767]of Object[_0x4a2ce5(0x10e)](_0x44feed[_0x4a2ce5(0x113)])){_0x3b0767!==undefined&&(_0x367604[_0x1d60d3[_0x4a2ce5(0x143)]()]=_0x3b0767);}}}let _0x2093dc;if(_0x44feed?.[_0x4a2ce5(0x115)])try{_0x2093dc=JSON[_0x4a2ce5(0x11c)](_0x44feed['body']);}catch{_0x2093dc=_0x44feed[_0x4a2ce5(0x115)];}return{'method':_0x44feed?.[_0x4a2ce5(0x146)]??_0x4a2ce5(0x11b),'url':_0xedd52c,'headers':_0x367604,'body':_0x2093dc};}[a206_0x57e804(0x106)](_0x461dcc){const _0x17254c=a206_0x57e804,_0x5251f0=this['stubs']['filter'](_0x541fc7=>!_0x541fc7[_0x17254c(0x125)]);if(_0x5251f0['length']>0x0){const _0x45a174=_0x5251f0[_0x17254c(0x12f)](_0x238284=>{const _0x25d55b=_0x17254c,_0x437d61=_0x238284['description']?'\x20('+_0x238284[_0x25d55b(0x133)]+')':'',_0x5ae0b3=_0x238284[_0x25d55b(0x103)]['split']('\x0a')['slice'](0x2,0x5)[_0x25d55b(0x147)]('\x0a');return _0x25d55b(0x11d)+_0x437d61+'\x20registered\x20at:\x0a'+_0x5ae0b3;});_0x461dcc[_0x17254c(0x14c)](_0x5251f0['length']+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x45a174['join']('\x0a\x0a'));}}['getRequests'](){const _0x4e3fdc=a206_0x57e804;return[...this[_0x4e3fdc(0x14a)]];}[a206_0x57e804(0x107)](){const _0x1b9fc4=a206_0x57e804;return this[_0x1b9fc4(0x14a)][this[_0x1b9fc4(0x14a)][_0x1b9fc4(0x132)]-0x1];}[a206_0x57e804(0x11a)](_0x149e2f,_0x3be0d1){const _0x5b3cb0=a206_0x57e804;return this[_0x5b3cb0(0x14a)][_0x5b3cb0(0x122)](_0x183a8a=>{const _0x25f54b=_0x5b3cb0;if(_0x183a8a[_0x25f54b(0x146)][_0x25f54b(0x108)]()!==_0x149e2f[_0x25f54b(0x108)]())return![];if(typeof _0x3be0d1==='string')return _0x183a8a[_0x25f54b(0x105)][_0x25f54b(0x13a)](_0x3be0d1);return _0x3be0d1['test'](_0x183a8a[_0x25f54b(0x105)]);});}[a206_0x57e804(0x140)](_0x3eddc8){const _0x2f9ab3=a206_0x57e804;return this[_0x2f9ab3(0x112)][_0x3eddc8]?.[_0x2f9ab3(0x13f)]??0x0;}[a206_0x57e804(0x145)](){const _0x175c3a=a206_0x57e804;this[_0x175c3a(0x112)]=[],this['requests']=[],this[_0x175c3a(0x10f)]=null;}static[a206_0x57e804(0x128)](_0x439292){const _0x226ebe=a206_0x57e804,_0x4a7c46={0xc8:'OK',0xc9:_0x226ebe(0x149),0xcc:_0x226ebe(0x120),0x190:'Bad\x20Request',0x191:_0x226ebe(0x104),0x193:'Forbidden',0x194:_0x226ebe(0x12d),0x199:'Conflict',0x1a6:_0x226ebe(0x12a),0x1ad:_0x226ebe(0x131),0x1f4:_0x226ebe(0x102),0x1f6:'Bad\x20Gateway',0x1f7:_0x226ebe(0x139)};return _0x4a7c46[_0x439292]??_0x226ebe(0x13c);}}function a206_0x7dc7(){const _0x22ebe7=['getStatusText','Request\x20body:\x20','Unprocessable\x20Entity','test','forEach','Not\x20Found','responder','map','877605KBBprM','Too\x20Many\x20Requests','length','description','3FGaztl','errorResponse','simple','parseRequest','Registered\x20stubs:\x0a','Service\x20Unavailable','includes','push','Unknown','function','text/plain','matchCount','getMatchCount','5zDhbOo','175YMxUfb','toLowerCase','1386368ammFJD','reset','method','join','jsonResponseWithHeaders','Created','requests','every','fail','registerWithInspector','application/json','isArray','pathname','REST','517zebjOf','Internal\x20Server\x20Error','stack','Unauthorized','url','verify','getLastRequest','toUpperCase','register','matcher','mockImplementation','361734JRtJMS','No\x20stub\x20matched\x20request:\x20','entries','fetchMock','error','2790692kXzcMt','stubs','headers','jsonResponse','body','rfc9457','https://api.treasuredata.com/errors/','52856AgSNOe','\x20\x20(none)','wasCalled','GET','parse','Unmatched\x20stub','66620VCfvuY','withQuery','No\x20Content','string','some','stringify','8241615napaie','matched','withHost','textResponse'];a206_0x7dc7=function(){return _0x22ebe7;};return a206_0x7dc7();}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a207_0x2fc4d0=a207_0x4971;(function(_0x98ccb7,_0x3c45d4){const _0x294903=a207_0x4971,_0x31a93d=_0x98ccb7();while(!![]){try{const _0xe4a9e8=-parseInt(_0x294903(0xd0))/0x1*(parseInt(_0x294903(0xe4))/0x2)+parseInt(_0x294903(0xeb))/0x3*(parseInt(_0x294903(0xf6))/0x4)+-parseInt(_0x294903(0xf3))/0x5*(-parseInt(_0x294903(0xe8))/0x6)+parseInt(_0x294903(0xc5))/0x7*(parseInt(_0x294903(0x111))/0x8)+parseInt(_0x294903(0xce))/0x9+-parseInt(_0x294903(0xd8))/0xa+-parseInt(_0x294903(0x102))/0xb;if(_0xe4a9e8===_0x3c45d4)break;else _0x31a93d['push'](_0x31a93d['shift']());}catch(_0x3899b7){_0x31a93d['push'](_0x31a93d['shift']());}}}(a207_0x4afc,0xc1c32));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x2fc4d0(0x107)]=[];[a207_0x2fc4d0(0xea)]=[];[a207_0x2fc4d0(0x103)]=null;['REST'](_0x2c141d,_0x26cd74){return _0x23a451=>{const _0x361405=a207_0x4971;if(_0x23a451['method'][_0x361405(0xe6)]()!==_0x2c141d[_0x361405(0xe6)]())return![];const _0x3aeea4=new URL(_0x23a451[_0x361405(0x10d)]);if(typeof _0x26cd74==='string')return _0x3aeea4[_0x361405(0x104)]===_0x26cd74||_0x3aeea4[_0x361405(0x104)][_0x361405(0xdf)](_0x26cd74);return _0x26cd74[_0x361405(0xd3)](_0x3aeea4[_0x361405(0x104)]);};}['withQuery'](_0xc9a6e5,_0x5f1a75){return _0xaf1711=>{const _0xfc3c63=a207_0x4971;if(!_0xc9a6e5(_0xaf1711))return![];const _0x4db788=new URL(_0xaf1711[_0xfc3c63(0x10d)]);return Object[_0xfc3c63(0xdd)](_0x5f1a75)[_0xfc3c63(0x110)](([_0x527d70,_0x244340])=>_0x4db788['searchParams'][_0xfc3c63(0x10b)](_0x527d70)===_0x244340);};}[a207_0x2fc4d0(0x10a)](_0x1549da,_0x4e47e9){return _0x184bdb=>{const _0x551355=a207_0x4971;if(!_0x1549da(_0x184bdb))return![];if(typeof _0x4e47e9===_0x551355(0xec))return _0x4e47e9(_0x184bdb[_0x551355(0xed)]);return JSON['stringify'](_0x184bdb[_0x551355(0xed)])===JSON[_0x551355(0x10e)](_0x4e47e9);};}[a207_0x2fc4d0(0x105)](_0x5a860b,_0x6e83af){return _0x580171=>{const _0x847ef4=a207_0x4971;if(!_0x5a860b(_0x580171))return![];const _0x175f50=new URL(_0x580171[_0x847ef4(0x10d)]);return _0x175f50['host']===_0x6e83af;};}[a207_0x2fc4d0(0x100)](_0x493d7e,_0x1c4ef3,_0x1c66bf){const _0x26de60=a207_0x2fc4d0;this['stubs']['push']({'matcher':_0x493d7e,'responder':_0x1c4ef3,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x1c66bf?.[_0x26de60(0xd2)]});}[a207_0x2fc4d0(0xf9)](_0x34594f,_0x2d68ff,_0x55d2b2){const _0x2e8ce2=a207_0x2fc4d0,_0x37a9b5=_0x15725a=>{const _0x58510e=a207_0x4971;return _0x55d2b2(_0x15725a[_0x58510e(0xed)],_0x15725a),_0x2d68ff(_0x15725a);};this[_0x2e8ce2(0x100)](_0x34594f,_0x37a9b5);}static[a207_0x2fc4d0(0xda)](_0x28a3f8,_0x5cf08c=0xc8){const _0x273e42=a207_0x2fc4d0;return()=>new Response(JSON[_0x273e42(0x10e)](_0x28a3f8),{'status':_0x5cf08c,'headers':{'Content-Type':_0x273e42(0x108)}});}static[a207_0x2fc4d0(0xc8)](_0x1bc7dd,_0x275657,_0x19cb59=a207_0x2fc4d0(0xf8)){return()=>{const _0x373a1b=a207_0x4971;let _0x571b12;switch(_0x19cb59){case'td-api':_0x571b12={'errors':{'error':_0x275657,'message':_0x275657,'severity':_0x373a1b(0xf4),'status_code':_0x1bc7dd}};break;case _0x373a1b(0xdc):_0x571b12={'type':'https://api.treasuredata.com/errors/'+_0x1bc7dd,'title':HTTPMockRegistry[_0x373a1b(0x109)](_0x1bc7dd),'status':_0x1bc7dd,'detail':_0x275657};break;default:_0x571b12={'error':_0x275657};}return new Response(JSON[_0x373a1b(0x10e)](_0x571b12),{'status':_0x1bc7dd,'headers':{'Content-Type':_0x373a1b(0x108)}});};}static[a207_0x2fc4d0(0xe5)](_0x2b4d5d,_0x56a428,_0x4f47e7=0xc8){const _0x11e234=a207_0x2fc4d0;return()=>new Response(JSON['stringify'](_0x2b4d5d),{'status':_0x4f47e7,'headers':{'Content-Type':_0x11e234(0x108),..._0x56a428}});}static['textResponse'](_0x12f5db,_0x177993=0xc8){const _0x166ec9=a207_0x2fc4d0;return()=>new Response(_0x12f5db,{'status':_0x177993,'headers':{'Content-Type':_0x166ec9(0x101)}});}static[a207_0x2fc4d0(0xe9)](_0x155ed9){return()=>{throw new Error(_0x155ed9);};}[a207_0x2fc4d0(0xd9)](){const _0x3facc5=a207_0x2fc4d0;return this[_0x3facc5(0x103)]=vi['fn']()['mockImplementation'](async(_0x2afb71,_0xd4ec0d)=>{const _0x3922a8=_0x3facc5,_0x44ae6d=this[_0x3922a8(0xe0)](_0x2afb71,_0xd4ec0d);this['requests'][_0x3922a8(0xca)](_0x44ae6d);for(const _0x4d59f8 of this[_0x3922a8(0x107)]){if(_0x4d59f8['matcher'](_0x44ae6d))return _0x4d59f8[_0x3922a8(0xdb)]=!![],_0x4d59f8[_0x3922a8(0xef)]++,_0x4d59f8[_0x3922a8(0xfe)](_0x44ae6d);}const _0x1d9350=this[_0x3922a8(0x107)][_0x3922a8(0xde)]((_0x2ae3e1,_0xefb840)=>'\x20\x20'+(_0xefb840+0x1)+'.\x20'+(_0x2ae3e1['description']??'unnamed\x20stub'))[_0x3922a8(0xe3)]('\x0a');throw new Error(_0x3922a8(0xcf)+_0x44ae6d[_0x3922a8(0xd6)]+'\x20'+_0x44ae6d['url']+'\x0a'+(_0x3922a8(0xee)+JSON[_0x3922a8(0x10e)](_0x44ae6d[_0x3922a8(0xed)])+'\x0a')+(_0x3922a8(0xf5)+(_0x1d9350||_0x3922a8(0xcc))));}),this[_0x3facc5(0x103)];}[a207_0x2fc4d0(0xe0)](_0x2fd3b2,_0x3c55f9){const _0x1e9d87=a207_0x2fc4d0,_0x5448d6={};if(_0x3c55f9?.['headers']){if(_0x3c55f9[_0x1e9d87(0x114)]instanceof Headers)_0x3c55f9['headers'][_0x1e9d87(0x10f)]((_0x246362,_0x41cccc)=>{const _0xbb815d=_0x1e9d87;_0x5448d6[_0x41cccc[_0xbb815d(0x112)]()]=_0x246362;});else{if(Array[_0x1e9d87(0xd7)](_0x3c55f9['headers']))for(const [_0x916ea9,_0x3a5f6c]of _0x3c55f9[_0x1e9d87(0x114)]){_0x5448d6[_0x916ea9[_0x1e9d87(0x112)]()]=_0x3a5f6c;}else for(const [_0x2a687d,_0x3f9360]of Object[_0x1e9d87(0xdd)](_0x3c55f9[_0x1e9d87(0x114)])){_0x3f9360!==undefined&&(_0x5448d6[_0x2a687d[_0x1e9d87(0x112)]()]=_0x3f9360);}}}let _0x3d6e4d;if(_0x3c55f9?.[_0x1e9d87(0xed)])try{_0x3d6e4d=JSON[_0x1e9d87(0xc3)](_0x3c55f9[_0x1e9d87(0xed)]);}catch{_0x3d6e4d=_0x3c55f9['body'];}return{'method':_0x3c55f9?.[_0x1e9d87(0xd6)]??_0x1e9d87(0xf0),'url':_0x2fd3b2,'headers':_0x5448d6,'body':_0x3d6e4d};}['verify'](_0x5c81ba){const _0x41199b=a207_0x2fc4d0,_0x53e0d2=this['stubs'][_0x41199b(0xc9)](_0x58f624=>!_0x58f624[_0x41199b(0xdb)]);if(_0x53e0d2[_0x41199b(0xfa)]>0x0){const _0x311b05=_0x53e0d2['map'](_0x52e954=>{const _0x919e1d=_0x41199b,_0x4ba5a3=_0x52e954[_0x919e1d(0xd2)]?'\x20('+_0x52e954['description']+')':'',_0x38030b=_0x52e954[_0x919e1d(0x106)]['split']('\x0a')[_0x919e1d(0xf1)](0x2,0x5)['join']('\x0a');return _0x919e1d(0xfc)+_0x4ba5a3+_0x919e1d(0xd5)+_0x38030b;});_0x5c81ba[_0x41199b(0x113)](_0x53e0d2[_0x41199b(0xfa)]+_0x41199b(0xf2)+_0x311b05[_0x41199b(0xe3)]('\x0a\x0a'));}}[a207_0x2fc4d0(0xd1)](){return[...this['requests']];}['getLastRequest'](){const _0x3e4e02=a207_0x2fc4d0;return this['requests'][this[_0x3e4e02(0xea)][_0x3e4e02(0xfa)]-0x1];}[a207_0x2fc4d0(0xfb)](_0xcd507d,_0x30f9a2){const _0x36622f=a207_0x2fc4d0;return this[_0x36622f(0xea)]['some'](_0x5701ca=>{const _0x542f60=_0x36622f;if(_0x5701ca[_0x542f60(0xd6)][_0x542f60(0xe6)]()!==_0xcd507d['toUpperCase']())return![];if(typeof _0x30f9a2===_0x542f60(0xf7))return _0x5701ca[_0x542f60(0x10d)][_0x542f60(0xdf)](_0x30f9a2);return _0x30f9a2[_0x542f60(0xd3)](_0x5701ca[_0x542f60(0x10d)]);});}[a207_0x2fc4d0(0xc4)](_0x2857cf){const _0x145615=a207_0x2fc4d0;return this['stubs'][_0x2857cf]?.[_0x145615(0xef)]??0x0;}[a207_0x2fc4d0(0xcb)](){const _0x41299d=a207_0x2fc4d0;this[_0x41299d(0x107)]=[],this[_0x41299d(0xea)]=[],this['fetchMock']=null;}static[a207_0x2fc4d0(0x109)](_0x2910e7){const _0x553122=a207_0x2fc4d0,_0x5902a8={0xc8:'OK',0xc9:_0x553122(0xd4),0xcc:_0x553122(0x10c),0x190:_0x553122(0xcd),0x191:_0x553122(0xc6),0x193:_0x553122(0xfd),0x194:'Not\x20Found',0x199:'Conflict',0x1a6:_0x553122(0xff),0x1ad:_0x553122(0xe2),0x1f4:_0x553122(0xe1),0x1f6:'Bad\x20Gateway',0x1f7:_0x553122(0xc7)};return _0x5902a8[_0x2910e7]??_0x553122(0xe7);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a207_0x4971(_0x3ba461,_0x35745e){_0x3ba461=_0x3ba461-0xc3;const _0x4afcde=a207_0x4afc();let _0x497164=_0x4afcde[_0x3ba461];return _0x497164;}function a207_0x4afc(){const _0x1c497b=['392923wjCLoj','getRequests','description','test','Created','\x20registered\x20at:\x0a','method','isArray','10239740ehSgRZ','createFetch','jsonResponse','matched','rfc9457','entries','map','includes','parseRequest','Internal\x20Server\x20Error','Too\x20Many\x20Requests','join','2kZXtYV','jsonResponseWithHeaders','toUpperCase','Unknown','125484tMEisG','networkError','requests','99vuAPGw','function','body','Request\x20body:\x20','matchCount','GET','slice','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','145GlhCTo','error','Registered\x20stubs:\x0a','148540NxxZoa','string','simple','registerWithInspector','length','wasCalled','Unmatched\x20stub','Forbidden','responder','Unprocessable\x20Entity','register','text/plain','4876256eHJSyS','fetchMock','pathname','withHost','stack','stubs','application/json','getStatusText','withBody','get','No\x20Content','url','stringify','forEach','every','51536YMOzJR','toLowerCase','fail','headers','parse','getMatchCount','511zdBGus','Unauthorized','Service\x20Unavailable','errorResponse','filter','push','reset','\x20\x20(none)','Bad\x20Request','3164544Yaukdc','No\x20stub\x20matched\x20request:\x20'];a207_0x4afc=function(){return _0x1c497b;};return a207_0x4afc();}
@@ -1 +1 @@
1
- function a207_0x19f2(_0x47211e,_0x57e0c6){_0x47211e=_0x47211e-0x72;var _0xeb626e=a207_0xeb62();var _0x19f242=_0xeb626e[_0x47211e];return _0x19f242;}function a207_0xeb62(){var _0x4e17c7=['498CwqFZG','495715XmBnRv','1435434ncduST','47NdgrtM','301Nhliss','6304610sdWJMS','82448DcYSIf','12sfWPwU','143547FoPpuh','3089718mJExuw','22wrBQrC'];a207_0xeb62=function(){return _0x4e17c7;};return a207_0xeb62();}(function(_0xc35b72,_0x330bb8){var _0x4c5095=a207_0x19f2,_0x4f3af7=_0xc35b72();while(!![]){try{var _0x2e38e4=-parseInt(_0x4c5095(0x78))/0x1*(-parseInt(_0x4c5095(0x75))/0x2)+-parseInt(_0x4c5095(0x72))/0x3+-parseInt(_0x4c5095(0x7c))/0x4*(parseInt(_0x4c5095(0x76))/0x5)+parseInt(_0x4c5095(0x77))/0x6+parseInt(_0x4c5095(0x79))/0x7*(-parseInt(_0x4c5095(0x7b))/0x8)+-parseInt(_0x4c5095(0x73))/0x9+-parseInt(_0x4c5095(0x7a))/0xa*(-parseInt(_0x4c5095(0x74))/0xb);if(_0x2e38e4===_0x330bb8)break;else _0x4f3af7['push'](_0x4f3af7['shift']());}catch(_0x73b9fc){_0x4f3af7['push'](_0x4f3af7['shift']());}}}(a207_0xeb62,0x5ccde));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a208_0x4b2f(_0x321af6,_0x12b97e){_0x321af6=_0x321af6-0x152;var _0x35f8b7=a208_0x35f8();var _0x4b2fac=_0x35f8b7[_0x321af6];return _0x4b2fac;}function a208_0x35f8(){var _0x4a4973=['290yfyzrt','63QsjzsJ','200127RXysTL','30716fLYzYQ','1358490EkKkch','3662504LIFXCw','7GSSNYO','4NtEuwR','103458MlEDAS','2374922JVVFFM','123125epWmTx'];a208_0x35f8=function(){return _0x4a4973;};return a208_0x35f8();}(function(_0x5ef6a8,_0x1f5f33){var _0x2ed88c=a208_0x4b2f,_0x4c2c99=_0x5ef6a8();while(!![]){try{var _0x3c3884=-parseInt(_0x2ed88c(0x15b))/0x1+-parseInt(_0x2ed88c(0x154))/0x2+parseInt(_0x2ed88c(0x153))/0x3*(-parseInt(_0x2ed88c(0x158))/0x4)+parseInt(_0x2ed88c(0x15c))/0x5*(parseInt(_0x2ed88c(0x159))/0x6)+-parseInt(_0x2ed88c(0x157))/0x7*(-parseInt(_0x2ed88c(0x156))/0x8)+parseInt(_0x2ed88c(0x152))/0x9*(-parseInt(_0x2ed88c(0x155))/0xa)+parseInt(_0x2ed88c(0x15a))/0xb;if(_0x3c3884===_0x1f5f33)break;else _0x4c2c99['push'](_0x4c2c99['shift']());}catch(_0x2f0f8e){_0x4c2c99['push'](_0x4c2c99['shift']());}}}(a208_0x35f8,0x7e62a));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x2d1627,_0x471a49){const _0x38f4c9=a208_0x24fc,_0x43a477=_0x2d1627();while(!![]){try{const _0x5049ab=-parseInt(_0x38f4c9(0x1d1))/0x1*(-parseInt(_0x38f4c9(0x1cf))/0x2)+-parseInt(_0x38f4c9(0x1d4))/0x3*(parseInt(_0x38f4c9(0x1d8))/0x4)+parseInt(_0x38f4c9(0x1d6))/0x5+-parseInt(_0x38f4c9(0x1d3))/0x6*(-parseInt(_0x38f4c9(0x1ce))/0x7)+parseInt(_0x38f4c9(0x1d0))/0x8+-parseInt(_0x38f4c9(0x1d5))/0x9+-parseInt(_0x38f4c9(0x1d2))/0xa;if(_0x5049ab===_0x471a49)break;else _0x43a477['push'](_0x43a477['shift']());}catch(_0x5f5c86){_0x43a477['push'](_0x43a477['shift']());}}}(a208_0x1fe8,0x98a0e));function a208_0x1fe8(){const _0x44da76=['165867khCQvr','5469399UmGgQK','21925qRBzeg','push','16RNQmyx','map','length','6481321AOISjU','187468qcJvAZ','6938880bAeEBp','13rZdiaE','15621570VAMJDj','6bnMxfA'];a208_0x1fe8=function(){return _0x44da76;};return a208_0x1fe8();}function a208_0x24fc(_0x163f9a,_0x53e755){_0x163f9a=_0x163f9a-0x1cd;const _0x1fe838=a208_0x1fe8();let _0x24fcb4=_0x1fe838[_0x163f9a];return _0x24fcb4;}export async function batchAsync(_0x37ff80,_0x25c960,_0x44a49d=0xa){const _0x16a43d=a208_0x24fc,_0x2e623d=[];for(let _0x4ed865=0x0;_0x4ed865<_0x37ff80[_0x16a43d(0x1cd)];_0x4ed865+=_0x44a49d){const _0x5835a6=_0x37ff80['slice'](_0x4ed865,_0x4ed865+_0x44a49d),_0x264c6f=await Promise['all'](_0x5835a6[_0x16a43d(0x1d9)](_0x25c960));_0x2e623d[_0x16a43d(0x1d7)](..._0x264c6f);}return _0x2e623d;}
1
+ function a209_0x312c(){const _0x8e2c04=['1986RQhSvx','974uFRfHp','635FTSnrZ','327780dUejLF','772457UdtVcj','210020EunvuP','136824ZVdjYk','24AFTQTU','1195965jGEDLG','107qTnUOP','push','363AGXBqZ','99FPqCUN'];a209_0x312c=function(){return _0x8e2c04;};return a209_0x312c();}function a209_0x36a0(_0xafcf2a,_0x4fd887){_0xafcf2a=_0xafcf2a-0x78;const _0x312ce5=a209_0x312c();let _0x36a075=_0x312ce5[_0xafcf2a];return _0x36a075;}(function(_0xbdcf23,_0x3a8411){const _0x414c29=a209_0x36a0,_0x40a297=_0xbdcf23();while(!![]){try{const _0xf9202=parseInt(_0x414c29(0x7f))/0x1*(-parseInt(_0x414c29(0x84))/0x2)+parseInt(_0x414c29(0x7e))/0x3+parseInt(_0x414c29(0x79))/0x4+parseInt(_0x414c29(0x78))/0x5*(-parseInt(_0x414c29(0x83))/0x6)+-parseInt(_0x414c29(0x7a))/0x7*(parseInt(_0x414c29(0x7d))/0x8)+parseInt(_0x414c29(0x82))/0x9*(-parseInt(_0x414c29(0x7b))/0xa)+-parseInt(_0x414c29(0x81))/0xb*(-parseInt(_0x414c29(0x7c))/0xc);if(_0xf9202===_0x3a8411)break;else _0x40a297['push'](_0x40a297['shift']());}catch(_0x51ab68){_0x40a297['push'](_0x40a297['shift']());}}}(a209_0x312c,0x30fc5));export async function batchAsync(_0x36e926,_0x2f3587,_0x1d54b4=0xa){const _0xa3b51e=a209_0x36a0,_0x50e78b=[];for(let _0x5b21f7=0x0;_0x5b21f7<_0x36e926['length'];_0x5b21f7+=_0x1d54b4){const _0x320ff3=_0x36e926['slice'](_0x5b21f7,_0x5b21f7+_0x1d54b4),_0x2c3dc4=await Promise['all'](_0x320ff3['map'](_0x2f3587));_0x50e78b[_0xa3b51e(0x80)](..._0x2c3dc4);}return _0x50e78b;}
@@ -1 +1 @@
1
- const a209_0x5bcb1e=a209_0x533d;(function(_0x4ac359,_0x511f9a){const _0x204392=a209_0x533d,_0x23bc08=_0x4ac359();while(!![]){try{const _0xad8d03=-parseInt(_0x204392(0x129))/0x1+parseInt(_0x204392(0x141))/0x2+parseInt(_0x204392(0x128))/0x3+-parseInt(_0x204392(0x134))/0x4*(-parseInt(_0x204392(0x124))/0x5)+-parseInt(_0x204392(0x139))/0x6*(-parseInt(_0x204392(0x12b))/0x7)+parseInt(_0x204392(0x13c))/0x8+parseInt(_0x204392(0x140))/0x9*(-parseInt(_0x204392(0x12a))/0xa);if(_0xad8d03===_0x511f9a)break;else _0x23bc08['push'](_0x23bc08['shift']());}catch(_0x27da3e){_0x23bc08['push'](_0x23bc08['shift']());}}}(a209_0x56b1,0x8b438));import*as a209_0x3c6941 from'chalk';const Chalk=a209_0x3c6941[a209_0x5bcb1e(0x13e)];export function shouldUseColor(_0x74cd4c={}){const _0x1c308e=a209_0x5bcb1e;if(_0x74cd4c['noColor']===!![])return![];if(_0x74cd4c[_0x1c308e(0x125)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1c308e(0x137)][_0x1c308e(0x13d)]??![];}export function getChalk(_0x4c414b={}){if(shouldUseColor(_0x4c414b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4de458,_0x3e0a49={}){const _0x38b94d=a209_0x5bcb1e;return getChalk(_0x3e0a49)[_0x38b94d(0x13f)](_0x4de458);}export function colorHeader(_0x3e7631,_0x4031f3={}){return getChalk(_0x4031f3)['cyan'](_0x3e7631);}export function colorType(_0x1e078a,_0x1b53bd={}){return getChalk(_0x1b53bd)['dim'](_0x1e078a);}export function colorJSONKey(_0x5ab820,_0x21c047={}){const _0x50a29c=a209_0x5bcb1e;return getChalk(_0x21c047)[_0x50a29c(0x12f)](_0x5ab820);}export function colorJSONString(_0x2e932b,_0x5390d7={}){const _0x3d3898=a209_0x5bcb1e;return getChalk(_0x5390d7)[_0x3d3898(0x131)](_0x2e932b);}function a209_0x56b1(){const _0x20003c=['repeat','length','590451yaATLN','379276WIiVTZ','450180apHCwb','1007174clKcnc','null','join','map','blue','yellow','green','boolean','number','1124276BYlSlU','entries','string','stdout','object','24NhZhOX','cyan','isArray','2779672KHWlVJ','isTTY','Chalk','dim','387tQhbtj','1844926wHsEtB','stringify','15fXDpxb','color'];a209_0x56b1=function(){return _0x20003c;};return a209_0x56b1();}export function colorJSONNumber(_0x100087,_0x5760a2={}){const _0x5cea9c=a209_0x5bcb1e;return getChalk(_0x5760a2)[_0x5cea9c(0x13a)](_0x100087);}export function colorJSONBoolean(_0x40590f,_0x4acaa2={}){const _0x35f7f5=a209_0x5bcb1e;return getChalk(_0x4acaa2)[_0x35f7f5(0x130)](_0x40590f);}export function colorJSONNull(_0x1e65de,_0x274eca={}){const _0x312364=a209_0x5bcb1e;return getChalk(_0x274eca)[_0x312364(0x13f)](_0x1e65de);}function a209_0x533d(_0x145669,_0x35338c){_0x145669=_0x145669-0x123;const _0x56b1a6=a209_0x56b1();let _0x533d12=_0x56b1a6[_0x145669];return _0x533d12;}export function colorizeJSONCompact(_0x4dcdaf,_0x53a26f={}){const _0x43bd53=a209_0x5bcb1e;if(!shouldUseColor(_0x53a26f))return JSON[_0x43bd53(0x123)](_0x4dcdaf);if(_0x4dcdaf===null)return colorJSONNull(_0x43bd53(0x12c),_0x53a26f);if(typeof _0x4dcdaf===_0x43bd53(0x132))return colorJSONBoolean(String(_0x4dcdaf),_0x53a26f);if(typeof _0x4dcdaf===_0x43bd53(0x133))return colorJSONNumber(String(_0x4dcdaf),_0x53a26f);if(typeof _0x4dcdaf===_0x43bd53(0x136))return colorJSONString(JSON[_0x43bd53(0x123)](_0x4dcdaf),_0x53a26f);if(Array[_0x43bd53(0x13b)](_0x4dcdaf)){if(_0x4dcdaf['length']===0x0)return'[]';const _0x41e406=_0x4dcdaf[_0x43bd53(0x12e)](_0x4da02a=>colorizeJSONCompact(_0x4da02a,_0x53a26f));return'['+_0x41e406[_0x43bd53(0x12d)](',')+']';}if(typeof _0x4dcdaf===_0x43bd53(0x138)){const _0x195aaf=Object[_0x43bd53(0x135)](_0x4dcdaf);if(_0x195aaf[_0x43bd53(0x127)]===0x0)return'{}';const _0x10260e=_0x195aaf['map'](([_0x55bdb5,_0x5736ab])=>{const _0x38fdc4=_0x43bd53,_0x8b60ad=colorJSONKey(JSON[_0x38fdc4(0x123)](_0x55bdb5),_0x53a26f),_0x401be3=colorizeJSONCompact(_0x5736ab,_0x53a26f);return _0x8b60ad+':'+_0x401be3;});return'{'+_0x10260e[_0x43bd53(0x12d)](',')+'}';}return String(_0x4dcdaf);}export function colorizeJSON(_0x348eb1,_0x2ca801={},_0x1921b1=0x0){const _0x3914b7=a209_0x5bcb1e;if(!shouldUseColor(_0x2ca801))return JSON[_0x3914b7(0x123)](_0x348eb1,null,0x2);const _0x4d267b='\x20'['repeat'](_0x1921b1),_0x4eb238=_0x1921b1+0x2;if(_0x348eb1===null)return colorJSONNull('null',_0x2ca801);if(typeof _0x348eb1===_0x3914b7(0x132))return colorJSONBoolean(String(_0x348eb1),_0x2ca801);if(typeof _0x348eb1===_0x3914b7(0x133))return colorJSONNumber(String(_0x348eb1),_0x2ca801);if(typeof _0x348eb1===_0x3914b7(0x136))return colorJSONString(JSON[_0x3914b7(0x123)](_0x348eb1),_0x2ca801);if(Array[_0x3914b7(0x13b)](_0x348eb1)){if(_0x348eb1['length']===0x0)return'[]';const _0x305889=_0x348eb1[_0x3914b7(0x12e)](_0x5792fb=>{const _0x275d1d=_0x3914b7,_0x48b7fe=colorizeJSON(_0x5792fb,_0x2ca801,_0x4eb238);return''+'\x20'[_0x275d1d(0x126)](_0x4eb238)+_0x48b7fe;});return'[\x0a'+_0x305889['join'](',\x0a')+('\x0a'+_0x4d267b+']');}if(typeof _0x348eb1==='object'){const _0x510bf9=Object[_0x3914b7(0x135)](_0x348eb1);if(_0x510bf9[_0x3914b7(0x127)]===0x0)return'{}';const _0xb739f5=_0x510bf9['map'](([_0xedd367,_0x1add7c])=>{const _0x5f4455=colorJSONKey(JSON['stringify'](_0xedd367),_0x2ca801),_0x498ec9=colorizeJSON(_0x1add7c,_0x2ca801,_0x4eb238);return''+'\x20'['repeat'](_0x4eb238)+_0x5f4455+':\x20'+_0x498ec9;});return'{\x0a'+_0xb739f5['join'](',\x0a')+('\x0a'+_0x4d267b+'}');}return String(_0x348eb1);}
1
+ const a210_0xf7a5e1=a210_0x2ccb;(function(_0x5ba520,_0x3c2fd0){const _0x519424=a210_0x2ccb,_0x4c2c3a=_0x5ba520();while(!![]){try{const _0x5362cb=-parseInt(_0x519424(0x124))/0x1*(parseInt(_0x519424(0x112))/0x2)+-parseInt(_0x519424(0x115))/0x3+-parseInt(_0x519424(0x114))/0x4*(parseInt(_0x519424(0x11a))/0x5)+parseInt(_0x519424(0x127))/0x6*(parseInt(_0x519424(0x121))/0x7)+-parseInt(_0x519424(0x119))/0x8*(-parseInt(_0x519424(0x110))/0x9)+parseInt(_0x519424(0x10b))/0xa+parseInt(_0x519424(0x125))/0xb*(parseInt(_0x519424(0x123))/0xc);if(_0x5362cb===_0x3c2fd0)break;else _0x4c2c3a['push'](_0x4c2c3a['shift']());}catch(_0xd02926){_0x4c2c3a['push'](_0x4c2c3a['shift']());}}}(a210_0x51a1,0x49609));import*as a210_0xce1613 from'chalk';const Chalk=a210_0xce1613[a210_0xf7a5e1(0x10f)];export function shouldUseColor(_0xdd8996={}){const _0x36664b=a210_0xf7a5e1;if(_0xdd8996[_0x36664b(0x11d)]===!![])return![];if(_0xdd8996['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x36664b(0x122)]['isTTY']??![];}export function getChalk(_0x1489f3={}){if(shouldUseColor(_0x1489f3))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x281e2b,_0x319e40={}){const _0x15481d=a210_0xf7a5e1;return getChalk(_0x319e40)[_0x15481d(0x118)](_0x281e2b);}export function colorHeader(_0x1b892d,_0x49cbff={}){const _0x5975c6=a210_0xf7a5e1;return getChalk(_0x49cbff)[_0x5975c6(0x113)](_0x1b892d);}function a210_0x51a1(){const _0x1756ed=['entries','Chalk','288783viSxZi','boolean','15746tcxwUO','cyan','1156076dtpnBA','812241GPNjoc','string','green','dim','32vclULP','10wyRoIt','stringify','join','noColor','length','isArray','blue','1834lqHfwe','stdout','564TyvQZM','37ABxrjn','219109dsSGxc','number','7536rwBRDQ','repeat','map','470260MnrTHf','object','null'];a210_0x51a1=function(){return _0x1756ed;};return a210_0x51a1();}function a210_0x2ccb(_0x40f6b9,_0x5d83db){_0x40f6b9=_0x40f6b9-0x10a;const _0x51a151=a210_0x51a1();let _0x2ccbc4=_0x51a151[_0x40f6b9];return _0x2ccbc4;}export function colorType(_0x2825d5,_0x4ff140={}){return getChalk(_0x4ff140)['dim'](_0x2825d5);}export function colorJSONKey(_0x4460cd,_0x98eb78={}){const _0x26a254=a210_0xf7a5e1;return getChalk(_0x98eb78)[_0x26a254(0x120)](_0x4460cd);}export function colorJSONString(_0x3c7146,_0x435b29={}){const _0xdfaeed=a210_0xf7a5e1;return getChalk(_0x435b29)[_0xdfaeed(0x117)](_0x3c7146);}export function colorJSONNumber(_0x3f2906,_0xb48c39={}){const _0x97d3cb=a210_0xf7a5e1;return getChalk(_0xb48c39)[_0x97d3cb(0x113)](_0x3f2906);}export function colorJSONBoolean(_0x574e45,_0x2e96bd={}){return getChalk(_0x2e96bd)['yellow'](_0x574e45);}export function colorJSONNull(_0x323326,_0x1740d7={}){const _0x36d23e=a210_0xf7a5e1;return getChalk(_0x1740d7)[_0x36d23e(0x118)](_0x323326);}export function colorizeJSONCompact(_0x242c28,_0x336218={}){const _0x292d2b=a210_0xf7a5e1;if(!shouldUseColor(_0x336218))return JSON['stringify'](_0x242c28);if(_0x242c28===null)return colorJSONNull(_0x292d2b(0x10d),_0x336218);if(typeof _0x242c28===_0x292d2b(0x111))return colorJSONBoolean(String(_0x242c28),_0x336218);if(typeof _0x242c28===_0x292d2b(0x126))return colorJSONNumber(String(_0x242c28),_0x336218);if(typeof _0x242c28==='string')return colorJSONString(JSON[_0x292d2b(0x11b)](_0x242c28),_0x336218);if(Array['isArray'](_0x242c28)){if(_0x242c28[_0x292d2b(0x11e)]===0x0)return'[]';const _0x1a48a0=_0x242c28['map'](_0x4b3586=>colorizeJSONCompact(_0x4b3586,_0x336218));return'['+_0x1a48a0[_0x292d2b(0x11c)](',')+']';}if(typeof _0x242c28===_0x292d2b(0x10c)){const _0xb9db0b=Object[_0x292d2b(0x10e)](_0x242c28);if(_0xb9db0b[_0x292d2b(0x11e)]===0x0)return'{}';const _0x32838f=_0xb9db0b['map'](([_0x494012,_0x2cd3d2])=>{const _0x13b8e6=_0x292d2b,_0x476044=colorJSONKey(JSON[_0x13b8e6(0x11b)](_0x494012),_0x336218),_0x279bd3=colorizeJSONCompact(_0x2cd3d2,_0x336218);return _0x476044+':'+_0x279bd3;});return'{'+_0x32838f[_0x292d2b(0x11c)](',')+'}';}return String(_0x242c28);}export function colorizeJSON(_0x39ef48,_0x3d156f={},_0x3061aa=0x0){const _0x4b151c=a210_0xf7a5e1;if(!shouldUseColor(_0x3d156f))return JSON[_0x4b151c(0x11b)](_0x39ef48,null,0x2);const _0x27969f='\x20'[_0x4b151c(0x128)](_0x3061aa),_0x4d1e60=_0x3061aa+0x2;if(_0x39ef48===null)return colorJSONNull(_0x4b151c(0x10d),_0x3d156f);if(typeof _0x39ef48==='boolean')return colorJSONBoolean(String(_0x39ef48),_0x3d156f);if(typeof _0x39ef48==='number')return colorJSONNumber(String(_0x39ef48),_0x3d156f);if(typeof _0x39ef48===_0x4b151c(0x116))return colorJSONString(JSON[_0x4b151c(0x11b)](_0x39ef48),_0x3d156f);if(Array[_0x4b151c(0x11f)](_0x39ef48)){if(_0x39ef48[_0x4b151c(0x11e)]===0x0)return'[]';const _0x172c32=_0x39ef48[_0x4b151c(0x10a)](_0x29ba7e=>{const _0x1658f7=_0x4b151c,_0x48c957=colorizeJSON(_0x29ba7e,_0x3d156f,_0x4d1e60);return''+'\x20'[_0x1658f7(0x128)](_0x4d1e60)+_0x48c957;});return'[\x0a'+_0x172c32[_0x4b151c(0x11c)](',\x0a')+('\x0a'+_0x27969f+']');}if(typeof _0x39ef48===_0x4b151c(0x10c)){const _0x200af4=Object[_0x4b151c(0x10e)](_0x39ef48);if(_0x200af4['length']===0x0)return'{}';const _0x22b79=_0x200af4['map'](([_0x74f12c,_0x11f913])=>{const _0x41b439=_0x4b151c,_0x40b459=colorJSONKey(JSON[_0x41b439(0x11b)](_0x74f12c),_0x3d156f),_0x811e22=colorizeJSON(_0x11f913,_0x3d156f,_0x4d1e60);return''+'\x20'[_0x41b439(0x128)](_0x4d1e60)+_0x40b459+':\x20'+_0x811e22;});return'{\x0a'+_0x22b79[_0x4b151c(0x11c)](',\x0a')+('\x0a'+_0x27969f+'}');}return String(_0x39ef48);}
@@ -1 +1 @@
1
- function a210_0x2718(){const _0x5766b8=['split','fill','8010656iOCjXh','\x20\x20\x20','repeat','140HwVzcD','unchanged','some','green','\x20\x20...','padStart','length','2666475VTalYt','unshift','max','937854Xoavci','2995980hAnmfF','110886WyUiuJ','push','\x20+\x20','old','content','new','dim','forEach','size','type','add','red','2634819cmALqL','1GraoTD','2843412HOaHUF','\x20-\x20','removed','added','5gPjQAr'];a210_0x2718=function(){return _0x5766b8;};return a210_0x2718();}(function(_0x1888a7,_0x469008){const _0x47fd08=a210_0x3830,_0x298d26=_0x1888a7();while(!![]){try{const _0x13a47a=parseInt(_0x47fd08(0xd3))/0x1*(parseInt(_0x47fd08(0xea))/0x2)+parseInt(_0x47fd08(0xd2))/0x3+parseInt(_0x47fd08(0xe9))/0x4*(-parseInt(_0x47fd08(0xd8))/0x5)+-parseInt(_0x47fd08(0xd4))/0x6+parseInt(_0x47fd08(0xe5))/0x7+-parseInt(_0x47fd08(0xdb))/0x8+-parseInt(_0x47fd08(0xe8))/0x9*(-parseInt(_0x47fd08(0xde))/0xa);if(_0x13a47a===_0x469008)break;else _0x298d26['push'](_0x298d26['shift']());}catch(_0x5f5439){_0x298d26['push'](_0x298d26['shift']());}}}(a210_0x2718,0x861b0));function a210_0x3830(_0x5af0b2,_0x452c57){_0x5af0b2=_0x5af0b2-0xca;const _0x2718fc=a210_0x2718();let _0x383014=_0x2718fc[_0x5af0b2];return _0x383014;}import a210_0x46bdca from'chalk';export function generateDiff(_0x120791,_0x5cb089){const _0x4b55ed=a210_0x3830,_0x3dbfb5=_0x120791[_0x4b55ed(0xd9)]('\x0a'),_0x328c72=_0x5cb089[_0x4b55ed(0xd9)]('\x0a'),_0x501ad7=[],_0x43b86d=computeLCS(_0x3dbfb5,_0x328c72);let _0x2ad740=0x0,_0x17be3f=0x0,_0x166d66=0x0;while(_0x2ad740<_0x3dbfb5[_0x4b55ed(0xe4)]||_0x17be3f<_0x328c72[_0x4b55ed(0xe4)]){if(_0x166d66<_0x43b86d[_0x4b55ed(0xe4)]&&_0x2ad740<_0x3dbfb5['length']&&_0x3dbfb5[_0x2ad740]===_0x43b86d[_0x166d66])_0x17be3f<_0x328c72['length']&&_0x328c72[_0x17be3f]===_0x43b86d[_0x166d66]?(_0x501ad7['push']({'type':'unchanged','content':_0x3dbfb5[_0x2ad740]}),_0x2ad740++,_0x17be3f++,_0x166d66++):(_0x501ad7[_0x4b55ed(0xeb)]({'type':_0x4b55ed(0xd7),'content':_0x328c72[_0x17be3f]}),_0x17be3f++);else{if(_0x166d66<_0x43b86d['length']&&_0x17be3f<_0x328c72[_0x4b55ed(0xe4)]&&_0x328c72[_0x17be3f]===_0x43b86d[_0x166d66])_0x501ad7[_0x4b55ed(0xeb)]({'type':_0x4b55ed(0xd6),'content':_0x3dbfb5[_0x2ad740]}),_0x2ad740++;else{if(_0x2ad740<_0x3dbfb5[_0x4b55ed(0xe4)]&&(_0x166d66>=_0x43b86d[_0x4b55ed(0xe4)]||_0x3dbfb5[_0x2ad740]!==_0x43b86d[_0x166d66]))_0x501ad7[_0x4b55ed(0xeb)]({'type':'removed','content':_0x3dbfb5[_0x2ad740]}),_0x2ad740++;else _0x17be3f<_0x328c72[_0x4b55ed(0xe4)]&&(_0x501ad7[_0x4b55ed(0xeb)]({'type':_0x4b55ed(0xd7),'content':_0x328c72[_0x17be3f]}),_0x17be3f++);}}}return _0x501ad7;}function computeLCS(_0x11af6a,_0x46e7ad){const _0x2bd332=a210_0x3830,_0xa1efae=_0x11af6a[_0x2bd332(0xe4)],_0x3b5ae9=_0x46e7ad[_0x2bd332(0xe4)],_0x148fd9=Array(_0xa1efae+0x1)[_0x2bd332(0xda)](null)['map'](()=>Array(_0x3b5ae9+0x1)[_0x2bd332(0xda)](0x0));for(let _0x2339fc=0x1;_0x2339fc<=_0xa1efae;_0x2339fc++){for(let _0x144534=0x1;_0x144534<=_0x3b5ae9;_0x144534++){_0x11af6a[_0x2339fc-0x1]===_0x46e7ad[_0x144534-0x1]?_0x148fd9[_0x2339fc][_0x144534]=_0x148fd9[_0x2339fc-0x1][_0x144534-0x1]+0x1:_0x148fd9[_0x2339fc][_0x144534]=Math[_0x2bd332(0xe7)](_0x148fd9[_0x2339fc-0x1][_0x144534],_0x148fd9[_0x2339fc][_0x144534-0x1]);}}const _0x3cb340=[];let _0x5aa805=_0xa1efae,_0x260a23=_0x3b5ae9;while(_0x5aa805>0x0&&_0x260a23>0x0){if(_0x11af6a[_0x5aa805-0x1]===_0x46e7ad[_0x260a23-0x1])_0x3cb340[_0x2bd332(0xe6)](_0x11af6a[_0x5aa805-0x1]),_0x5aa805--,_0x260a23--;else _0x148fd9[_0x5aa805-0x1][_0x260a23]>_0x148fd9[_0x5aa805][_0x260a23-0x1]?_0x5aa805--:_0x260a23--;}return _0x3cb340;}export function formatDiffWithColors(_0x41af41,_0x1663b7=0x3){const _0x2bb6eb=a210_0x3830,_0x3885f6=new Set();_0x41af41[_0x2bb6eb(0xcd)]((_0xb18b54,_0x2e5252)=>{const _0x3baf36=_0x2bb6eb;_0xb18b54[_0x3baf36(0xcf)]!==_0x3baf36(0xdf)&&_0x3885f6[_0x3baf36(0xd0)](_0x2e5252);});if(_0x3885f6[_0x2bb6eb(0xce)]===0x0)return'';const _0x531547=new Set();for(const _0x2433e4 of _0x3885f6){for(let _0x4ddb25=Math[_0x2bb6eb(0xe7)](0x0,_0x2433e4-_0x1663b7);_0x4ddb25<=Math['min'](_0x41af41[_0x2bb6eb(0xe4)]-0x1,_0x2433e4+_0x1663b7);_0x4ddb25++){_0x531547[_0x2bb6eb(0xd0)](_0x4ddb25);}}const _0x2669b7=[];let _0x388c6=-0x1;const _0x3ab349=_0x41af41[_0x2bb6eb(0xe4)],_0x4e08a8=Math['max'](0x3,String(_0x3ab349)[_0x2bb6eb(0xe4)]),_0x5126c7=[];let _0x4cd6c5=0x0,_0x41f5aa=0x0;for(const _0x463d20 of _0x41af41){if(_0x463d20['type']===_0x2bb6eb(0xd6))_0x4cd6c5++,_0x5126c7[_0x2bb6eb(0xeb)]({'old':_0x4cd6c5,'new':0x0});else _0x463d20[_0x2bb6eb(0xcf)]===_0x2bb6eb(0xd7)?(_0x41f5aa++,_0x5126c7[_0x2bb6eb(0xeb)]({'old':0x0,'new':_0x41f5aa})):(_0x4cd6c5++,_0x41f5aa++,_0x5126c7[_0x2bb6eb(0xeb)]({'old':_0x4cd6c5,'new':_0x41f5aa}));}for(let _0x4ea9d8=0x0;_0x4ea9d8<_0x41af41[_0x2bb6eb(0xe4)];_0x4ea9d8++){if(!_0x531547['has'](_0x4ea9d8))continue;_0x388c6!==-0x1&&_0x4ea9d8>_0x388c6+0x1&&_0x2669b7[_0x2bb6eb(0xeb)](a210_0x46bdca['cyan'](_0x2bb6eb(0xe2)));_0x388c6=_0x4ea9d8;const _0x376040=_0x41af41[_0x4ea9d8],_0x36977d=_0x5126c7[_0x4ea9d8],_0x339e70=_0x36977d[_0x2bb6eb(0xed)]>0x0?String(_0x36977d['old'])[_0x2bb6eb(0xe3)](_0x4e08a8):'\x20'['repeat'](_0x4e08a8),_0x2e4d4d=_0x36977d[_0x2bb6eb(0xcb)]>0x0?String(_0x36977d[_0x2bb6eb(0xcb)])[_0x2bb6eb(0xe3)](_0x4e08a8):'\x20'[_0x2bb6eb(0xdd)](_0x4e08a8);switch(_0x376040['type']){case _0x2bb6eb(0xd6):_0x2669b7[_0x2bb6eb(0xeb)](a210_0x46bdca[_0x2bb6eb(0xd1)](_0x339e70+'\x20'+_0x2e4d4d+_0x2bb6eb(0xd5)+_0x376040[_0x2bb6eb(0xca)]));break;case'added':_0x2669b7[_0x2bb6eb(0xeb)](a210_0x46bdca[_0x2bb6eb(0xe1)](_0x339e70+'\x20'+_0x2e4d4d+_0x2bb6eb(0xec)+_0x376040[_0x2bb6eb(0xca)]));break;default:_0x2669b7[_0x2bb6eb(0xeb)](a210_0x46bdca[_0x2bb6eb(0xcc)](_0x339e70+'\x20'+_0x2e4d4d+_0x2bb6eb(0xdc)+_0x376040[_0x2bb6eb(0xca)]));break;}}return _0x2669b7['join']('\x0a');}export function hasChanges(_0x4cf8e2){const _0x1a689a=a210_0x3830;return _0x4cf8e2[_0x1a689a(0xe0)](_0xbeb9eb=>_0xbeb9eb[_0x1a689a(0xcf)]!==_0x1a689a(0xdf));}
1
+ function a211_0x3a8e(){const _0x2be984=['new','3537440nbsDEi','cyan','green','unchanged','map','content','unshift','2FNNuiB','max','\x20\x20...','length','\x20\x20\x20','split','11qWABfB','repeat','16QNSNRQ','join','push','add','5162031EuYlKS','5145860CCGJFx','fill','has','old','8463lyyxfP','340clPHHA','red','2512722WMmPxm','1009270uQMLMD','dim','forEach','\x20+\x20','type','6597850UptrKB','padStart','some','added','min','removed'];a211_0x3a8e=function(){return _0x2be984;};return a211_0x3a8e();}(function(_0x2fdf8e,_0x17a808){const _0x3fd452=a211_0x146d,_0x55de28=_0x2fdf8e();while(!![]){try{const _0x634056=parseInt(_0x3fd452(0xe0))/0x1*(parseInt(_0x3fd452(0xcb))/0x2)+-parseInt(_0x3fd452(0xdc))/0x3*(-parseInt(_0x3fd452(0xdd))/0x4)+-parseInt(_0x3fd452(0xec))/0x5+parseInt(_0x3fd452(0xdf))/0x6+-parseInt(_0x3fd452(0xe5))/0x7+-parseInt(_0x3fd452(0xd3))/0x8*(-parseInt(_0x3fd452(0xd7))/0x9)+-parseInt(_0x3fd452(0xd8))/0xa*(parseInt(_0x3fd452(0xd1))/0xb);if(_0x634056===_0x17a808)break;else _0x55de28['push'](_0x55de28['shift']());}catch(_0x55dfc0){_0x55de28['push'](_0x55de28['shift']());}}}(a211_0x3a8e,0x9ec60));import a211_0x22e95e from'chalk';function a211_0x146d(_0x2e4698,_0x433ff4){_0x2e4698=_0x2e4698-0xc7;const _0x3a8e69=a211_0x3a8e();let _0x146db3=_0x3a8e69[_0x2e4698];return _0x146db3;}export function generateDiff(_0x36124d,_0x196754){const _0x57e298=a211_0x146d,_0x572ea8=_0x36124d[_0x57e298(0xd0)]('\x0a'),_0x2144fe=_0x196754['split']('\x0a'),_0x5debcf=[],_0x3d8eda=computeLCS(_0x572ea8,_0x2144fe);let _0x529761=0x0,_0xda8b89=0x0,_0x3d2a7a=0x0;while(_0x529761<_0x572ea8[_0x57e298(0xce)]||_0xda8b89<_0x2144fe['length']){if(_0x3d2a7a<_0x3d8eda['length']&&_0x529761<_0x572ea8[_0x57e298(0xce)]&&_0x572ea8[_0x529761]===_0x3d8eda[_0x3d2a7a])_0xda8b89<_0x2144fe[_0x57e298(0xce)]&&_0x2144fe[_0xda8b89]===_0x3d8eda[_0x3d2a7a]?(_0x5debcf['push']({'type':'unchanged','content':_0x572ea8[_0x529761]}),_0x529761++,_0xda8b89++,_0x3d2a7a++):(_0x5debcf['push']({'type':'added','content':_0x2144fe[_0xda8b89]}),_0xda8b89++);else{if(_0x3d2a7a<_0x3d8eda[_0x57e298(0xce)]&&_0xda8b89<_0x2144fe['length']&&_0x2144fe[_0xda8b89]===_0x3d8eda[_0x3d2a7a])_0x5debcf[_0x57e298(0xd5)]({'type':_0x57e298(0xea),'content':_0x572ea8[_0x529761]}),_0x529761++;else{if(_0x529761<_0x572ea8[_0x57e298(0xce)]&&(_0x3d2a7a>=_0x3d8eda[_0x57e298(0xce)]||_0x572ea8[_0x529761]!==_0x3d8eda[_0x3d2a7a]))_0x5debcf['push']({'type':_0x57e298(0xea),'content':_0x572ea8[_0x529761]}),_0x529761++;else _0xda8b89<_0x2144fe[_0x57e298(0xce)]&&(_0x5debcf[_0x57e298(0xd5)]({'type':_0x57e298(0xe8),'content':_0x2144fe[_0xda8b89]}),_0xda8b89++);}}}return _0x5debcf;}function computeLCS(_0xefd42f,_0x4ff3ae){const _0x4b61f6=a211_0x146d,_0x1f60aa=_0xefd42f[_0x4b61f6(0xce)],_0x4d7197=_0x4ff3ae[_0x4b61f6(0xce)],_0x542b76=Array(_0x1f60aa+0x1)[_0x4b61f6(0xd9)](null)[_0x4b61f6(0xc8)](()=>Array(_0x4d7197+0x1)[_0x4b61f6(0xd9)](0x0));for(let _0xfac879=0x1;_0xfac879<=_0x1f60aa;_0xfac879++){for(let _0x59ba46=0x1;_0x59ba46<=_0x4d7197;_0x59ba46++){_0xefd42f[_0xfac879-0x1]===_0x4ff3ae[_0x59ba46-0x1]?_0x542b76[_0xfac879][_0x59ba46]=_0x542b76[_0xfac879-0x1][_0x59ba46-0x1]+0x1:_0x542b76[_0xfac879][_0x59ba46]=Math[_0x4b61f6(0xcc)](_0x542b76[_0xfac879-0x1][_0x59ba46],_0x542b76[_0xfac879][_0x59ba46-0x1]);}}const _0x35163a=[];let _0x151c28=_0x1f60aa,_0x2ddfea=_0x4d7197;while(_0x151c28>0x0&&_0x2ddfea>0x0){if(_0xefd42f[_0x151c28-0x1]===_0x4ff3ae[_0x2ddfea-0x1])_0x35163a[_0x4b61f6(0xca)](_0xefd42f[_0x151c28-0x1]),_0x151c28--,_0x2ddfea--;else _0x542b76[_0x151c28-0x1][_0x2ddfea]>_0x542b76[_0x151c28][_0x2ddfea-0x1]?_0x151c28--:_0x2ddfea--;}return _0x35163a;}export function formatDiffWithColors(_0x1b75d3,_0x47f301=0x3){const _0x4a39e6=a211_0x146d,_0x2c24d0=new Set();_0x1b75d3[_0x4a39e6(0xe2)]((_0x281fe5,_0x170400)=>{const _0x571cd2=_0x4a39e6;_0x281fe5[_0x571cd2(0xe4)]!==_0x571cd2(0xc7)&&_0x2c24d0['add'](_0x170400);});if(_0x2c24d0['size']===0x0)return'';const _0x21300a=new Set();for(const _0x2327e8 of _0x2c24d0){for(let _0x76dd4b=Math['max'](0x0,_0x2327e8-_0x47f301);_0x76dd4b<=Math[_0x4a39e6(0xe9)](_0x1b75d3[_0x4a39e6(0xce)]-0x1,_0x2327e8+_0x47f301);_0x76dd4b++){_0x21300a[_0x4a39e6(0xd6)](_0x76dd4b);}}const _0x110619=[];let _0xb81c11=-0x1;const _0x4666da=_0x1b75d3[_0x4a39e6(0xce)],_0x2919aa=Math[_0x4a39e6(0xcc)](0x3,String(_0x4666da)[_0x4a39e6(0xce)]),_0x29de6c=[];let _0x50b63a=0x0,_0x510f72=0x0;for(const _0x3055d2 of _0x1b75d3){if(_0x3055d2[_0x4a39e6(0xe4)]===_0x4a39e6(0xea))_0x50b63a++,_0x29de6c['push']({'old':_0x50b63a,'new':0x0});else _0x3055d2[_0x4a39e6(0xe4)]==='added'?(_0x510f72++,_0x29de6c[_0x4a39e6(0xd5)]({'old':0x0,'new':_0x510f72})):(_0x50b63a++,_0x510f72++,_0x29de6c[_0x4a39e6(0xd5)]({'old':_0x50b63a,'new':_0x510f72}));}for(let _0x4671c9=0x0;_0x4671c9<_0x1b75d3[_0x4a39e6(0xce)];_0x4671c9++){if(!_0x21300a[_0x4a39e6(0xda)](_0x4671c9))continue;_0xb81c11!==-0x1&&_0x4671c9>_0xb81c11+0x1&&_0x110619['push'](a211_0x22e95e[_0x4a39e6(0xed)](_0x4a39e6(0xcd)));_0xb81c11=_0x4671c9;const _0x4afa6f=_0x1b75d3[_0x4671c9],_0x4962ee=_0x29de6c[_0x4671c9],_0x13eb1a=_0x4962ee[_0x4a39e6(0xdb)]>0x0?String(_0x4962ee['old'])[_0x4a39e6(0xe6)](_0x2919aa):'\x20'[_0x4a39e6(0xd2)](_0x2919aa),_0x27494c=_0x4962ee[_0x4a39e6(0xeb)]>0x0?String(_0x4962ee['new'])[_0x4a39e6(0xe6)](_0x2919aa):'\x20'[_0x4a39e6(0xd2)](_0x2919aa);switch(_0x4afa6f[_0x4a39e6(0xe4)]){case _0x4a39e6(0xea):_0x110619[_0x4a39e6(0xd5)](a211_0x22e95e[_0x4a39e6(0xde)](_0x13eb1a+'\x20'+_0x27494c+'\x20-\x20'+_0x4afa6f[_0x4a39e6(0xc9)]));break;case'added':_0x110619[_0x4a39e6(0xd5)](a211_0x22e95e[_0x4a39e6(0xee)](_0x13eb1a+'\x20'+_0x27494c+_0x4a39e6(0xe3)+_0x4afa6f['content']));break;default:_0x110619['push'](a211_0x22e95e[_0x4a39e6(0xe1)](_0x13eb1a+'\x20'+_0x27494c+_0x4a39e6(0xcf)+_0x4afa6f['content']));break;}}return _0x110619[_0x4a39e6(0xd4)]('\x0a');}export function hasChanges(_0xac1e82){const _0xa82c1c=a211_0x146d;return _0xac1e82[_0xa82c1c(0xe7)](_0x2fe642=>_0x2fe642[_0xa82c1c(0xe4)]!==_0xa82c1c(0xc7));}
@@ -1 +1 @@
1
- function a211_0x5e69(_0x22afff,_0x597164){_0x22afff=_0x22afff-0x120;const _0x20cb62=a211_0x20cb();let _0x5e692e=_0x20cb62[_0x22afff];return _0x5e692e;}(function(_0x27ae14,_0x31c809){const _0x2be182=a211_0x5e69,_0x1e274d=_0x27ae14();while(!![]){try{const _0x2e224c=-parseInt(_0x2be182(0x12f))/0x1*(parseInt(_0x2be182(0x12a))/0x2)+-parseInt(_0x2be182(0x12e))/0x3*(parseInt(_0x2be182(0x12d))/0x4)+parseInt(_0x2be182(0x121))/0x5*(parseInt(_0x2be182(0x12b))/0x6)+-parseInt(_0x2be182(0x12c))/0x7+-parseInt(_0x2be182(0x125))/0x8+parseInt(_0x2be182(0x123))/0x9+parseInt(_0x2be182(0x130))/0xa;if(_0x2e224c===_0x31c809)break;else _0x1e274d['push'](_0x1e274d['shift']());}catch(_0x26bc8a){_0x1e274d['push'](_0x1e274d['shift']());}}}(a211_0x20cb,0xe82fa));import*as a211_0xcf7b9f from'node:fs';function a211_0x20cb(){const _0x3aed66=['chmodSync','toString','\x20has\x20insecure\x20permissions\x20(','749615DgsMIw','existsSync','11089251GjTkCS','warn','6699960QGqqkd','mode','Warning:\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','404bQwFfo','30QUJdzu','5281276AUfaFL','4kJkvKa','185727BLfdas','8798ijwEbZ','24003480rbVSDI','mkdirSync'];a211_0x20cb=function(){return _0x3aed66;};return a211_0x20cb();}import*as a211_0x17180c from'node:path';export function setSecureFilePermissions(_0x1c0793){const _0x447b7a=a211_0x5e69;try{a211_0xcf7b9f[_0x447b7a(0x132)](_0x1c0793,0x180);}catch{console['warn'](_0x447b7a(0x128)+_0x1c0793);}}export function setSecureDirectoryPermissions(_0x1d4b3a){const _0x2601c0=a211_0x5e69;try{a211_0xcf7b9f[_0x2601c0(0x132)](_0x1d4b3a,0x1c0);}catch{console[_0x2601c0(0x124)](_0x2601c0(0x128)+_0x1d4b3a);}}export function createSecureDirectory(_0x49f12d){const _0x1c5079=a211_0x5e69;!a211_0xcf7b9f[_0x1c5079(0x122)](_0x49f12d)&&(a211_0xcf7b9f[_0x1c5079(0x131)](_0x49f12d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x49f12d));}export function validateSecureFilePermissions(_0x1cbbbe){const _0x4e19cb=a211_0x5e69;try{const _0x1073e2=a211_0xcf7b9f['statSync'](_0x1cbbbe),_0x1231b4=_0x1073e2[_0x4e19cb(0x126)]&0x1ff,_0x3d3200=(_0x1231b4&0x3f)!==0x0;if(_0x3d3200)return console['warn'](_0x4e19cb(0x127)+_0x1cbbbe+_0x4e19cb(0x120)+_0x1231b4[_0x4e19cb(0x133)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x28b532,_0x1458ad){const _0x21c5e5=a211_0x5e69,_0x290ed6=a211_0x17180c['dirname'](_0x28b532);createSecureDirectory(_0x290ed6),a211_0xcf7b9f[_0x21c5e5(0x129)](_0x28b532,_0x1458ad,{'mode':0x180}),setSecureFilePermissions(_0x28b532);}
1
+ (function(_0x2be8b3,_0x5f78dd){const _0x2f0edc=a212_0x2f08,_0x3ee1b3=_0x2be8b3();while(!![]){try{const _0x2230e3=parseInt(_0x2f0edc(0x1e0))/0x1*(-parseInt(_0x2f0edc(0x1dd))/0x2)+-parseInt(_0x2f0edc(0x1de))/0x3*(parseInt(_0x2f0edc(0x1cf))/0x4)+-parseInt(_0x2f0edc(0x1ce))/0x5*(-parseInt(_0x2f0edc(0x1d7))/0x6)+-parseInt(_0x2f0edc(0x1d8))/0x7*(parseInt(_0x2f0edc(0x1d5))/0x8)+-parseInt(_0x2f0edc(0x1d3))/0x9+parseInt(_0x2f0edc(0x1cd))/0xa+parseInt(_0x2f0edc(0x1cc))/0xb;if(_0x2230e3===_0x5f78dd)break;else _0x3ee1b3['push'](_0x3ee1b3['shift']());}catch(_0x83c1c){_0x3ee1b3['push'](_0x3ee1b3['shift']());}}}(a212_0x56db,0xb39de));function a212_0x56db(){const _0x4f1a7f=['toString','7hTlFPR','dirname','warn','6516796dugLKt','12980440nWWSrY','1591050DtkPcp','8gNGqcE',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','4002273HdQpPG','mode','760088thISme','existsSync','24oBMKTF','35GajsLE','chmodSync','statSync','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','359280dUvOVS','375567ITDrKZ'];a212_0x56db=function(){return _0x4f1a7f;};return a212_0x56db();}import*as a212_0x2dbfd6 from'node:fs';function a212_0x2f08(_0xae63ac,_0x180d34){_0xae63ac=_0xae63ac-0x1cb;const _0x56db56=a212_0x56db();let _0x2f08c=_0x56db56[_0xae63ac];return _0x2f08c;}import*as a212_0x1cc6b3 from'node:path';export function setSecureFilePermissions(_0x1f8dd6){const _0x443e37=a212_0x2f08;try{a212_0x2dbfd6[_0x443e37(0x1d9)](_0x1f8dd6,0x180);}catch{console[_0x443e37(0x1cb)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1f8dd6);}}export function setSecureDirectoryPermissions(_0x3fac87){const _0x320608=a212_0x2f08;try{a212_0x2dbfd6[_0x320608(0x1d9)](_0x3fac87,0x1c0);}catch{console[_0x320608(0x1cb)](_0x320608(0x1d1)+_0x3fac87);}}export function createSecureDirectory(_0x141e02){const _0x5e53d5=a212_0x2f08;!a212_0x2dbfd6[_0x5e53d5(0x1d6)](_0x141e02)&&(a212_0x2dbfd6[_0x5e53d5(0x1db)](_0x141e02,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x141e02));}export function validateSecureFilePermissions(_0x49fc96){const _0x45e53a=a212_0x2f08;try{const _0x5b9773=a212_0x2dbfd6[_0x45e53a(0x1da)](_0x49fc96),_0xabe744=_0x5b9773[_0x45e53a(0x1d4)]&0x1ff,_0x4f116b=(_0xabe744&0x3f)!==0x0;if(_0x4f116b)return console['warn']('Warning:\x20'+_0x49fc96+'\x20has\x20insecure\x20permissions\x20('+_0xabe744[_0x45e53a(0x1df)](0x8)+_0x45e53a(0x1d0)+_0x45e53a(0x1dc)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2909a2,_0xfea3b4){const _0x45d55a=a212_0x2f08,_0x14a908=a212_0x1cc6b3[_0x45d55a(0x1e1)](_0x2909a2);createSecureDirectory(_0x14a908),a212_0x2dbfd6[_0x45d55a(0x1d2)](_0x2909a2,_0xfea3b4,{'mode':0x180}),setSecureFilePermissions(_0x2909a2);}
@@ -1 +1 @@
1
- (function(_0x5b2dae,_0x1ca1d5){const _0x486746=a212_0x2f0a,_0x237cd2=_0x5b2dae();while(!![]){try{const _0x206385=-parseInt(_0x486746(0x103))/0x1+parseInt(_0x486746(0x10d))/0x2+parseInt(_0x486746(0x100))/0x3+-parseInt(_0x486746(0x104))/0x4*(-parseInt(_0x486746(0x110))/0x5)+parseInt(_0x486746(0x10c))/0x6+parseInt(_0x486746(0x102))/0x7*(parseInt(_0x486746(0x111))/0x8)+-parseInt(_0x486746(0x106))/0x9*(parseInt(_0x486746(0x109))/0xa);if(_0x206385===_0x1ca1d5)break;else _0x237cd2['push'](_0x237cd2['shift']());}catch(_0x591461){_0x237cd2['push'](_0x237cd2['shift']());}}}(a212_0x503f,0x1e7a5));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x3b35c8){const _0xbfc543=a212_0x2f0a;try{return readFileSync(_0x3b35c8,_0xbfc543(0x10e));}catch(_0x1b05a5){const _0x4f73f5=_0x1b05a5[_0xbfc543(0xfd)];if(_0x4f73f5===_0xbfc543(0xff))throw new SDKError(ErrorCode[_0xbfc543(0x10b)],_0xbfc543(0xfb)+_0x3b35c8+_0xbfc543(0x10a),_0x1b05a5);else{if(_0x4f73f5===_0xbfc543(0x107))throw new SDKError(ErrorCode[_0xbfc543(0xfe)],_0xbfc543(0x105)+_0x3b35c8+'\x27',_0x1b05a5);else throw new SDKError(ErrorCode[_0xbfc543(0x108)],_0xbfc543(0x10f)+_0x3b35c8+_0xbfc543(0x101)+_0x1b05a5[_0xbfc543(0xfc)],_0x1b05a5);}}}function a212_0x2f0a(_0x527007,_0x443b89){_0x527007=_0x527007-0xfb;const _0x503f2b=a212_0x503f();let _0x2f0a22=_0x503f2b[_0x527007];return _0x2f0a22;}function a212_0x503f(){const _0x253f19=['EACCES','INTERNAL','880AbhzjW','\x27\x20not\x20found','NOT_FOUND','1395144yWSjVP','388094mCbHRa','utf-8','Error\x20reading\x20file\x20\x27','519565eAdCLy','904YNGXdn','File\x20\x27','message','code','PERMISSION_DENIED','ENOENT','620517nlgchB','\x27:\x20','7301qdKPFS','106410pWbbKh','8MMUMmr','Permission\x20denied\x20reading\x20file\x20\x27','74439qgsWvv'];a212_0x503f=function(){return _0x253f19;};return a212_0x503f();}
1
+ (function(_0x3bd832,_0x4f74c5){const _0x8e41e9=a213_0x19fa,_0x4024d8=_0x3bd832();while(!![]){try{const _0xee2337=parseInt(_0x8e41e9(0xce))/0x1*(-parseInt(_0x8e41e9(0xc0))/0x2)+parseInt(_0x8e41e9(0xd0))/0x3*(-parseInt(_0x8e41e9(0xcb))/0x4)+parseInt(_0x8e41e9(0xcf))/0x5*(-parseInt(_0x8e41e9(0xc7))/0x6)+parseInt(_0x8e41e9(0xcc))/0x7+parseInt(_0x8e41e9(0xc2))/0x8+-parseInt(_0x8e41e9(0xc4))/0x9+parseInt(_0x8e41e9(0xc3))/0xa;if(_0xee2337===_0x4f74c5)break;else _0x4024d8['push'](_0x4024d8['shift']());}catch(_0xf6bd6b){_0x4024d8['push'](_0x4024d8['shift']());}}}(a213_0x5f3f,0x1da8c));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a213_0x19fa(_0xf69b9c,_0x11d66d){_0xf69b9c=_0xf69b9c-0xbe;const _0x5f3fc3=a213_0x5f3f();let _0x19fa28=_0x5f3fc3[_0xf69b9c];return _0x19fa28;}function a213_0x5f3f(){const _0x13f873=['78312yWEYAM','\x27\x20not\x20found','Error\x20reading\x20file\x20\x27','EACCES','6476sEUlIW','202307cwfogn','File\x20\x27','3CgeTUI','15azNNYO','222uPMeld','message','INTERNAL','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','682YpEzMh','NOT_FOUND','1339648EBtTWd','2257070dWSJdx','1265355YShMoB','code','utf-8'];a213_0x5f3f=function(){return _0x13f873;};return a213_0x5f3f();}export function readFileContent(_0xd6cb06){const _0x5f4e0c=a213_0x19fa;try{return readFileSync(_0xd6cb06,_0x5f4e0c(0xc6));}catch(_0x35326b){const _0x2fa796=_0x35326b[_0x5f4e0c(0xc5)];if(_0x2fa796===_0x5f4e0c(0xbe))throw new SDKError(ErrorCode[_0x5f4e0c(0xc1)],_0x5f4e0c(0xcd)+_0xd6cb06+_0x5f4e0c(0xc8),_0x35326b);else{if(_0x2fa796===_0x5f4e0c(0xca))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5f4e0c(0xbf)+_0xd6cb06+'\x27',_0x35326b);else throw new SDKError(ErrorCode[_0x5f4e0c(0xd2)],_0x5f4e0c(0xc9)+_0xd6cb06+'\x27:\x20'+_0x35326b[_0x5f4e0c(0xd1)],_0x35326b);}}}
@@ -1 +1 @@
1
- (function(_0x4554bd,_0x7ee439){const _0x2fe0bb=a213_0x1a1b,_0x6d8e2b=_0x4554bd();while(!![]){try{const _0x4a5892=-parseInt(_0x2fe0bb(0x1c6))/0x1+parseInt(_0x2fe0bb(0x1ac))/0x2+-parseInt(_0x2fe0bb(0x1c7))/0x3*(parseInt(_0x2fe0bb(0x1b8))/0x4)+-parseInt(_0x2fe0bb(0x1bf))/0x5+parseInt(_0x2fe0bb(0x1ae))/0x6+-parseInt(_0x2fe0bb(0x1c5))/0x7*(parseInt(_0x2fe0bb(0x1b2))/0x8)+-parseInt(_0x2fe0bb(0x1b0))/0x9*(-parseInt(_0x2fe0bb(0x1bb))/0xa);if(_0x4a5892===_0x7ee439)break;else _0x6d8e2b['push'](_0x6d8e2b['shift']());}catch(_0x97f357){_0x6d8e2b['push'](_0x6d8e2b['shift']());}}}(a213_0x5e7b,0x7c330));import*as a213_0x47aead from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a213_0x1a1b(_0x299159,_0x49e4af){_0x299159=_0x299159-0x1ab;const _0x5e7b3f=a213_0x5e7b();let _0x1a1b4b=_0x5e7b3f[_0x299159];return _0x1a1b4b;}function a213_0x5e7b(){const _0x51f396=['2577wqSwHy','get','1993826jiwpWl','parse','1980762PepjLj','length','8595kthDIt','fetchedAt','72728dMQGoz','end','/repos/','destroy','slice','find','588UxQQqO','application/vnd.github+json','/releases?per_page=20','7690dZiAFN','tag_name','now','set','3059575ObufwU','data','error','releases','timeout','prerelease','49HGdXhI','750890NysGbS'];a213_0x5e7b=function(){return _0x51f396;};return a213_0x5e7b();}export function fetchGitHubReleases(_0x388d2c,_0x2f1df7,_0x396d5b){const _0x3bf228=a213_0x1a1b,_0x10a058=_0x388d2c+'/'+_0x2f1df7,_0x440d88=cache[_0x3bf228(0x1ab)](_0x10a058);if(_0x440d88&&Date[_0x3bf228(0x1bd)]()-_0x440d88[_0x3bf228(0x1b1)]<CACHE_TTL_MS)return Promise['resolve'](_0x440d88[_0x3bf228(0x1c2)]);return new Promise((_0x15b480,_0x419daf)=>{const _0x3b20d7=_0x3bf228,_0x158cc3={'hostname':'api.github.com','path':_0x3b20d7(0x1b4)+_0x388d2c+'/'+_0x2f1df7+_0x3b20d7(0x1ba),'headers':{'User-Agent':_0x396d5b,'Accept':_0x3b20d7(0x1b9)},'timeout':REQUEST_TIMEOUT_MS},_0x3cf048=a213_0x47aead[_0x3b20d7(0x1ab)](_0x158cc3,_0x57af37=>{const _0x254504=_0x3b20d7;let _0x19e29a='';_0x57af37['on'](_0x254504(0x1c0),_0x5ad03e=>{_0x19e29a+=_0x5ad03e['toString']();}),_0x57af37['on'](_0x254504(0x1b3),()=>{const _0x183732=_0x254504;if(_0x57af37['statusCode']!==0xc8){_0x419daf(new Error('GitHub\x20API\x20returned\x20'+_0x57af37['statusCode']+':\x20'+_0x19e29a[_0x183732(0x1b6)](0x0,0xc8)));return;}try{const _0x158af1=JSON[_0x183732(0x1ad)](_0x19e29a);cache[_0x183732(0x1be)](_0x10a058,{'releases':_0x158af1,'fetchedAt':Date[_0x183732(0x1bd)]()}),_0x15b480(_0x158af1);}catch(_0x156de8){_0x419daf(_0x156de8);}});});_0x3cf048['on'](_0x3b20d7(0x1c3),()=>{const _0x40acfa=_0x3b20d7;_0x3cf048[_0x40acfa(0x1b5)](),_0x419daf(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x3cf048['on'](_0x3b20d7(0x1c1),_0x419daf);});}export async function resolveReleaseTag(_0x489103,_0x222975,_0x3f39f4,_0x5df8e6){const _0x480f01=a213_0x1a1b;if(_0x489103==='next')return null;const _0x52121f=await fetchGitHubReleases(_0x222975,_0x3f39f4,_0x5df8e6);if(_0x52121f[_0x480f01(0x1af)]===0x0)return null;const _0x1457b3=_0x52121f[_0x480f01(0x1b7)](_0x3495ce=>!_0x3495ce[_0x480f01(0x1c4)]);return _0x1457b3?_0x1457b3[_0x480f01(0x1bc)]:null;}
1
+ (function(_0x386350,_0x2f2d05){const _0x3f7a5d=a214_0x3d77,_0x238c35=_0x386350();while(!![]){try{const _0xea18d9=-parseInt(_0x3f7a5d(0x1cd))/0x1+-parseInt(_0x3f7a5d(0x1b7))/0x2+parseInt(_0x3f7a5d(0x1cf))/0x3*(parseInt(_0x3f7a5d(0x1c9))/0x4)+parseInt(_0x3f7a5d(0x1b5))/0x5*(-parseInt(_0x3f7a5d(0x1c0))/0x6)+-parseInt(_0x3f7a5d(0x1cc))/0x7+parseInt(_0x3f7a5d(0x1b6))/0x8+parseInt(_0x3f7a5d(0x1ca))/0x9;if(_0xea18d9===_0x2f2d05)break;else _0x238c35['push'](_0x238c35['shift']());}catch(_0x5d27fa){_0x238c35['push'](_0x238c35['shift']());}}}(a214_0x3612,0xd290b));import*as a214_0x43d0f3 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x3d77(_0x28f04d,_0x11bc81){_0x28f04d=_0x28f04d-0x1b3;const _0x36129a=a214_0x3612();let _0x3d775d=_0x36129a[_0x28f04d];return _0x3d775d;}function a214_0x3612(){const _0x85028a=['12fEqVSf','destroy','length','parse','resolve','timeout','/repos/','get','toString','1124392aqkUYL','24013935cNyBxx','tag_name','5352438SeuXfz','1005962xdUwsb','slice','6NoVkXF','now','api.github.com','1712605vqHYSR','1839784ATpGEo','284542ZrscrF','releases','next','error','find','set','end','GitHub\x20API\x20returned\x20','statusCode'];a214_0x3612=function(){return _0x85028a;};return a214_0x3612();}export function fetchGitHubReleases(_0x5206ef,_0x51e273,_0x3c845e){const _0x30fd43=a214_0x3d77,_0x37aa89=_0x5206ef+'/'+_0x51e273,_0x491bfc=cache[_0x30fd43(0x1c7)](_0x37aa89);if(_0x491bfc&&Date[_0x30fd43(0x1b3)]()-_0x491bfc['fetchedAt']<CACHE_TTL_MS)return Promise[_0x30fd43(0x1c4)](_0x491bfc[_0x30fd43(0x1b8)]);return new Promise((_0xc8972f,_0x262598)=>{const _0x423038=_0x30fd43,_0x39e8b5={'hostname':_0x423038(0x1b4),'path':_0x423038(0x1c6)+_0x5206ef+'/'+_0x51e273+'/releases?per_page=20','headers':{'User-Agent':_0x3c845e,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x58fa0a=a214_0x43d0f3[_0x423038(0x1c7)](_0x39e8b5,_0x5b8ced=>{const _0x4c8093=_0x423038;let _0xb17139='';_0x5b8ced['on']('data',_0x536a20=>{const _0x3788c4=a214_0x3d77;_0xb17139+=_0x536a20[_0x3788c4(0x1c8)]();}),_0x5b8ced['on'](_0x4c8093(0x1bd),()=>{const _0x197e8f=_0x4c8093;if(_0x5b8ced[_0x197e8f(0x1bf)]!==0xc8){_0x262598(new Error(_0x197e8f(0x1be)+_0x5b8ced[_0x197e8f(0x1bf)]+':\x20'+_0xb17139[_0x197e8f(0x1ce)](0x0,0xc8)));return;}try{const _0x50bb3b=JSON[_0x197e8f(0x1c3)](_0xb17139);cache[_0x197e8f(0x1bc)](_0x37aa89,{'releases':_0x50bb3b,'fetchedAt':Date[_0x197e8f(0x1b3)]()}),_0xc8972f(_0x50bb3b);}catch(_0x1b0776){_0x262598(_0x1b0776);}});});_0x58fa0a['on'](_0x423038(0x1c5),()=>{const _0x3fdda2=_0x423038;_0x58fa0a[_0x3fdda2(0x1c1)](),_0x262598(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x58fa0a['on'](_0x423038(0x1ba),_0x262598);});}export async function resolveReleaseTag(_0x508ae6,_0x2a1bb9,_0x1f16cd,_0x1acf50){const _0x1515ee=a214_0x3d77;if(_0x508ae6===_0x1515ee(0x1b9))return null;const _0x359471=await fetchGitHubReleases(_0x2a1bb9,_0x1f16cd,_0x1acf50);if(_0x359471[_0x1515ee(0x1c2)]===0x0)return null;const _0x3acf8f=_0x359471[_0x1515ee(0x1bb)](_0x519298=>!_0x519298['prerelease']);return _0x3acf8f?_0x3acf8f[_0x1515ee(0x1cb)]:null;}
@@ -1 +1 @@
1
- function a214_0xf544(){const _0x220026=['102739keNrNJ','\x22,\x20cannot\x20register\x20for\x20\x22','2493VwnOYC','utf-8','set','2367csOJbs','\x22\x20already\x20registered\x20by\x20\x22','parse','clear','{profile}','10983176IkEQLb','3641qedXjo','31190iTGcTm','534ojlyMH','tdx','118572CbbXkE','61590CleloU','get','7452OafnAS','trim','260tDuczj','464GFYCVf'];a214_0xf544=function(){return _0x220026;};return a214_0xf544();}(function(_0x2a030a,_0x2ab23c){const _0x3d38fd=a214_0x3304,_0x2e3e54=_0x2a030a();while(!![]){try{const _0x1d4742=parseInt(_0x3d38fd(0xbe))/0x1*(parseInt(_0x3d38fd(0xab))/0x2)+parseInt(_0x3d38fd(0xae))/0x3*(parseInt(_0x3d38fd(0xc0))/0x4)+-parseInt(_0x3d38fd(0xb8))/0x5*(parseInt(_0x3d38fd(0xb9))/0x6)+parseInt(_0x3d38fd(0xac))/0x7+parseInt(_0x3d38fd(0xb6))/0x8+parseInt(_0x3d38fd(0xb1))/0x9*(parseInt(_0x3d38fd(0xbc))/0xa)+parseInt(_0x3d38fd(0xb7))/0xb*(-parseInt(_0x3d38fd(0xbb))/0xc);if(_0x1d4742===_0x2ab23c)break;else _0x2e3e54['push'](_0x2e3e54['shift']());}catch(_0x501087){_0x2e3e54['push'](_0x2e3e54['shift']());}}}(a214_0xf544,0xeb77d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x51f356=a214_0x3304;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x51f356(0xba));}const registry=new Map();export function registerGlobalCacheKey(_0x166f32,_0x4317bc){const _0xb8575=a214_0x3304,_0xd7c592=registry[_0xb8575(0xbd)](_0x166f32);if(_0xd7c592&&_0xd7c592!==_0x4317bc)throw new Error('Global\x20cache\x20key\x20\x22'+_0x166f32+_0xb8575(0xb2)+_0xd7c592+_0xb8575(0xad)+_0x4317bc+'\x22');registry[_0xb8575(0xb0)](_0x166f32,_0x4317bc);}export function getGlobalCachePath(_0x4e3f71){return join(getGlobalCacheDir(),_0x4e3f71);}function ensureGlobalCacheDir(){const _0x14c1e8=getGlobalCacheDir();!existsSync(_0x14c1e8)&&mkdirSync(_0x14c1e8,{'recursive':!![]});}function readCacheJson(_0x43fc32){const _0x1b146f=a214_0x3304,_0x173cce=getGlobalCachePath(_0x43fc32);if(!existsSync(_0x173cce))return undefined;try{const _0x39d92e=readFileSync(_0x173cce,'utf-8');return JSON[_0x1b146f(0xb3)](_0x39d92e);}catch{return undefined;}}function writeCacheJson(_0x36efba,_0x15d659){const _0x188823=a214_0x3304;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x36efba),JSON['stringify'](_0x15d659,null,0x2),_0x188823(0xaf));}function readCacheText(_0x28aad2){const _0x1c7bf0=a214_0x3304,_0x5c966d=getGlobalCachePath(_0x28aad2);if(!existsSync(_0x5c966d))return undefined;try{return readFileSync(_0x5c966d,_0x1c7bf0(0xaf));}catch{return undefined;}}function writeCacheText(_0x5ea7e3,_0x3d106b){const _0x3b509e=a214_0x3304;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5ea7e3),_0x3d106b,_0x3b509e(0xaf));}function a214_0x3304(_0x38e98f,_0x45bbee){_0x38e98f=_0x38e98f-0xab;const _0xf544a3=a214_0xf544();let _0x33040d=_0xf544a3[_0x38e98f];return _0x33040d;}function clearCache(_0x2dc795){const _0x13526d=getGlobalCachePath(_0x2dc795);if(existsSync(_0x13526d))try{unlinkSync(_0x13526d);}catch{}}function cacheExists(_0x5af981){return existsSync(getGlobalCachePath(_0x5af981));}export function createGlobalCache(_0x490ba8,_0x344090){return registerGlobalCacheKey(_0x490ba8,_0x344090),{'read':()=>readCacheJson(_0x490ba8),'write':_0x52265b=>writeCacheJson(_0x490ba8,_0x52265b),'clear':()=>clearCache(_0x490ba8),'exists':()=>cacheExists(_0x490ba8),'path':()=>getGlobalCachePath(_0x490ba8)};}export function createGlobalTextCache(_0x301e3f,_0x374214){const _0x3262a5=a214_0x3304;return registerGlobalCacheKey(_0x301e3f,_0x374214),{'read':()=>readCacheText(_0x301e3f)?.[_0x3262a5(0xbf)]()||undefined,'write':_0x42062f=>writeCacheText(_0x301e3f,_0x42062f),'clear':()=>clearCache(_0x301e3f),'exists':()=>cacheExists(_0x301e3f),'path':()=>getGlobalCachePath(_0x301e3f)};}export function createProfileCache(_0x595ad8,_0x4fb304){const _0x500a4f=_0xa5699f=>{const _0x3fc4f2=a214_0x3304,_0x204a00=_0xa5699f||'default';return _0x595ad8['replace'](_0x3fc4f2(0xb5),_0x204a00);};return{'read':_0x123b0f=>{const _0x13b023=_0x500a4f(_0x123b0f);return registerGlobalCacheKey(_0x13b023,_0x4fb304),readCacheJson(_0x13b023);},'write':(_0x1af6aa,_0x36e50c)=>{const _0x578039=_0x500a4f(_0x1af6aa);registerGlobalCacheKey(_0x578039,_0x4fb304),writeCacheJson(_0x578039,_0x36e50c);},'clear':_0x3e74b5=>{const _0x4d9dbe=_0x500a4f(_0x3e74b5);clearCache(_0x4d9dbe);},'exists':_0x4a39d5=>{const _0x148b5e=_0x500a4f(_0x4a39d5);return cacheExists(_0x148b5e);},'path':_0x4fb8b8=>{const _0x79acbb=_0x500a4f(_0x4fb8b8);return getGlobalCachePath(_0x79acbb);}};}export function createOptionalProfileCache(_0x32e6cf,_0x530131,_0x41f59c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x41f59c,_0x2be9f4=_0x4aeed2=>{return _0x4aeed2?''+_0x32e6cf+profileSeparator+_0x4aeed2+suffix:''+_0x32e6cf+suffix;};return{'read':_0x54d5fb=>{const _0x35365b=_0x2be9f4(_0x54d5fb);return registerGlobalCacheKey(_0x35365b,_0x530131),readCacheJson(_0x35365b);},'write':(_0x259101,_0xcb1f9d)=>{const _0x18075f=_0x2be9f4(_0xcb1f9d);registerGlobalCacheKey(_0x18075f,_0x530131),writeCacheJson(_0x18075f,_0x259101);},'clear':_0x2fd8d7=>{const _0xddd5e2=_0x2be9f4(_0x2fd8d7);clearCache(_0xddd5e2);},'exists':_0x22ee2b=>{const _0x445d9f=_0x2be9f4(_0x22ee2b);return cacheExists(_0x445d9f);},'path':_0x4c7b5d=>{const _0x11f6bb=_0x2be9f4(_0x4c7b5d);return getGlobalCachePath(_0x11f6bb);}};}export function clearGlobalRegistry(){const _0x31ff08=a214_0x3304;registry[_0x31ff08(0xb4)]();}
1
+ (function(_0x564f8f,_0x55a911){const _0x364416=a215_0x550d,_0x4bebee=_0x564f8f();while(!![]){try{const _0x47d089=parseInt(_0x364416(0x97))/0x1+-parseInt(_0x364416(0x90))/0x2+parseInt(_0x364416(0x8a))/0x3*(parseInt(_0x364416(0x88))/0x4)+parseInt(_0x364416(0x99))/0x5*(parseInt(_0x364416(0x9a))/0x6)+parseInt(_0x364416(0x87))/0x7+-parseInt(_0x364416(0x8d))/0x8+-parseInt(_0x364416(0x89))/0x9*(-parseInt(_0x364416(0x92))/0xa);if(_0x47d089===_0x55a911)break;else _0x4bebee['push'](_0x4bebee['shift']());}catch(_0x13be37){_0x4bebee['push'](_0x4bebee['shift']());}}}(a215_0x4f55,0xafa51));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x559092=a215_0x550d;return process.env.TDX_CACHE_DIR||join(homedir(),_0x559092(0x98),_0x559092(0x94));}const registry=new Map();export function registerGlobalCacheKey(_0x106793,_0x5da3bc){const _0x2d94c9=a215_0x550d,_0x4ad398=registry[_0x2d94c9(0x9b)](_0x106793);if(_0x4ad398&&_0x4ad398!==_0x5da3bc)throw new Error(_0x2d94c9(0x8b)+_0x106793+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4ad398+_0x2d94c9(0x95)+_0x5da3bc+'\x22');registry[_0x2d94c9(0x8c)](_0x106793,_0x5da3bc);}export function getGlobalCachePath(_0x109f66){return join(getGlobalCacheDir(),_0x109f66);}function ensureGlobalCacheDir(){const _0x1deaa6=getGlobalCacheDir();!existsSync(_0x1deaa6)&&mkdirSync(_0x1deaa6,{'recursive':!![]});}function readCacheJson(_0x3cddf3){const _0x1305ed=a215_0x550d,_0x17893f=getGlobalCachePath(_0x3cddf3);if(!existsSync(_0x17893f))return undefined;try{const _0x1f2d9e=readFileSync(_0x17893f,_0x1305ed(0x93));return JSON['parse'](_0x1f2d9e);}catch{return undefined;}}function writeCacheJson(_0x59605d,_0x7b9f99){const _0x29cc70=a215_0x550d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x59605d),JSON[_0x29cc70(0x91)](_0x7b9f99,null,0x2),_0x29cc70(0x93));}function readCacheText(_0x3d4f85){const _0x307359=a215_0x550d,_0x405551=getGlobalCachePath(_0x3d4f85);if(!existsSync(_0x405551))return undefined;try{return readFileSync(_0x405551,_0x307359(0x93));}catch{return undefined;}}function writeCacheText(_0x1a7c1e,_0x32c5e2){const _0x2b66e0=a215_0x550d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1a7c1e),_0x32c5e2,_0x2b66e0(0x93));}function a215_0x4f55(){const _0x3b69e9=['513776OzhqHR','66474SygsJB','9XhWmjh','Global\x20cache\x20key\x20\x22','set','9050240aRUmKs','default','{profile}','866768ypaVGs','stringify','190WXtnYf','utf-8','tdx','\x22,\x20cannot\x20register\x20for\x20\x22','replace','736497qvmdMB','.cache','1369320mqBTaF','12XcySiM','get','3319498hXcemi'];a215_0x4f55=function(){return _0x3b69e9;};return a215_0x4f55();}function clearCache(_0xc86ed){const _0x4fb4c3=getGlobalCachePath(_0xc86ed);if(existsSync(_0x4fb4c3))try{unlinkSync(_0x4fb4c3);}catch{}}function cacheExists(_0x21acd2){return existsSync(getGlobalCachePath(_0x21acd2));}export function createGlobalCache(_0x49a2c8,_0x2b6856){return registerGlobalCacheKey(_0x49a2c8,_0x2b6856),{'read':()=>readCacheJson(_0x49a2c8),'write':_0x88f5e5=>writeCacheJson(_0x49a2c8,_0x88f5e5),'clear':()=>clearCache(_0x49a2c8),'exists':()=>cacheExists(_0x49a2c8),'path':()=>getGlobalCachePath(_0x49a2c8)};}function a215_0x550d(_0x4df62b,_0x1dd4ef){_0x4df62b=_0x4df62b-0x87;const _0x4f5547=a215_0x4f55();let _0x550da1=_0x4f5547[_0x4df62b];return _0x550da1;}export function createGlobalTextCache(_0x500267,_0xded6bb){return registerGlobalCacheKey(_0x500267,_0xded6bb),{'read':()=>readCacheText(_0x500267)?.['trim']()||undefined,'write':_0x3ec761=>writeCacheText(_0x500267,_0x3ec761),'clear':()=>clearCache(_0x500267),'exists':()=>cacheExists(_0x500267),'path':()=>getGlobalCachePath(_0x500267)};}export function createProfileCache(_0x4dc385,_0x1322a4){const _0x4725ce=_0x5c88a8=>{const _0x5e5bb1=a215_0x550d,_0x4f4c37=_0x5c88a8||_0x5e5bb1(0x8e);return _0x4dc385[_0x5e5bb1(0x96)](_0x5e5bb1(0x8f),_0x4f4c37);};return{'read':_0x484e57=>{const _0x1b856c=_0x4725ce(_0x484e57);return registerGlobalCacheKey(_0x1b856c,_0x1322a4),readCacheJson(_0x1b856c);},'write':(_0x58deb5,_0x135e01)=>{const _0x24339e=_0x4725ce(_0x58deb5);registerGlobalCacheKey(_0x24339e,_0x1322a4),writeCacheJson(_0x24339e,_0x135e01);},'clear':_0x8451d6=>{const _0x29b71f=_0x4725ce(_0x8451d6);clearCache(_0x29b71f);},'exists':_0x5602c3=>{const _0x5afb0a=_0x4725ce(_0x5602c3);return cacheExists(_0x5afb0a);},'path':_0x43feb1=>{const _0x5ba3bc=_0x4725ce(_0x43feb1);return getGlobalCachePath(_0x5ba3bc);}};}export function createOptionalProfileCache(_0x1cbe4e,_0x27b787,_0x588d34={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x588d34,_0xfc19a7=_0x499089=>{return _0x499089?''+_0x1cbe4e+profileSeparator+_0x499089+suffix:''+_0x1cbe4e+suffix;};return{'read':_0x494d66=>{const _0x22f2ba=_0xfc19a7(_0x494d66);return registerGlobalCacheKey(_0x22f2ba,_0x27b787),readCacheJson(_0x22f2ba);},'write':(_0x5b6c9f,_0x1c98e0)=>{const _0x2970c9=_0xfc19a7(_0x1c98e0);registerGlobalCacheKey(_0x2970c9,_0x27b787),writeCacheJson(_0x2970c9,_0x5b6c9f);},'clear':_0x1e8d02=>{const _0x3e4e52=_0xfc19a7(_0x1e8d02);clearCache(_0x3e4e52);},'exists':_0x2aad77=>{const _0xf48496=_0xfc19a7(_0x2aad77);return cacheExists(_0xf48496);},'path':_0x5847b2=>{const _0x13fa2d=_0xfc19a7(_0x5847b2);return getGlobalCachePath(_0x13fa2d);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- (function(_0x51c82a,_0x5d8245){const _0x2aa066=a215_0x5a36,_0x22b399=_0x51c82a();while(!![]){try{const _0x35b61b=-parseInt(_0x2aa066(0x111))/0x1*(-parseInt(_0x2aa066(0x105))/0x2)+-parseInt(_0x2aa066(0x106))/0x3*(parseInt(_0x2aa066(0x10b))/0x4)+parseInt(_0x2aa066(0x108))/0x5+parseInt(_0x2aa066(0x113))/0x6+-parseInt(_0x2aa066(0xff))/0x7+parseInt(_0x2aa066(0x10e))/0x8+-parseInt(_0x2aa066(0x10a))/0x9*(parseInt(_0x2aa066(0x112))/0xa);if(_0x35b61b===_0x5d8245)break;else _0x22b399['push'](_0x22b399['shift']());}catch(_0x190385){_0x22b399['push'](_0x22b399['shift']());}}}(a215_0x4d12,0x65562));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x4d12(){const _0x4be650=['Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','21805OhvCOP','Invalid\x20JSON\x20in\x20file\x20\x27','message','\x27:\x20','ENOENT','INTERNAL','56918PnClbh','3XuGWmK','parse','3404245aIQVEf','File\x20not\x20found:\x20','9MMHTSI','325960fHXBIV','EACCES','utf-8','6470280nZHwNm','code','INVALID_ARGUMENT','25igbvyD','20520060uzDnzJ','2103456JEzTHt'];a215_0x4d12=function(){return _0x4be650;};return a215_0x4d12();}export async function loadJSON(_0x2ddcae,_0x516811){const _0x3da6df=a215_0x5a36;try{if(_0x516811){const _0x4682e5=await readFile(_0x2ddcae,_0x3da6df(0x10d));try{return JSON[_0x3da6df(0x107)](_0x4682e5);}catch(_0x2ff678){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x3da6df(0x100)+_0x2ddcae+_0x3da6df(0x102)+(_0x2ff678 instanceof Error?_0x2ff678[_0x3da6df(0x101)]:String(_0x2ff678)));}}else try{return JSON['parse'](_0x2ddcae);}catch(_0x1f076b){throw new SDKError(ErrorCode[_0x3da6df(0x110)],_0x3da6df(0x115)+(_0x1f076b instanceof Error?_0x1f076b[_0x3da6df(0x101)]:String(_0x1f076b)));}}catch(_0x346e7d){if(_0x346e7d instanceof SDKError)throw _0x346e7d;if(_0x346e7d instanceof Error&&_0x3da6df(0x10f)in _0x346e7d){const _0x3b8b6e=_0x346e7d;if(_0x3b8b6e[_0x3da6df(0x10f)]===_0x3da6df(0x103))throw new SDKError(ErrorCode['NOT_FOUND'],_0x3da6df(0x109)+_0x2ddcae);else{if(_0x3b8b6e[_0x3da6df(0x10f)]===_0x3da6df(0x10c))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x2ddcae);}}throw new SDKError(ErrorCode[_0x3da6df(0x104)],_0x3da6df(0x114)+(_0x346e7d instanceof Error?_0x346e7d[_0x3da6df(0x101)]:String(_0x346e7d)));}}function a215_0x5a36(_0x3be521,_0x2561ce){_0x3be521=_0x3be521-0xff;const _0x4d122c=a215_0x4d12();let _0x5a36ea=_0x4d122c[_0x3be521];return _0x5a36ea;}export async function loadJSONFromOptions(_0x1502a3,_0x291abf){const _0x4c58cd=a215_0x5a36;if(_0x1502a3&&_0x291abf)throw new SDKError(ErrorCode[_0x4c58cd(0x110)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x1502a3)return await loadJSON(_0x1502a3,![]);if(_0x291abf)return await loadJSON(_0x291abf,!![]);return undefined;}
1
+ function a216_0x5eed(){const _0x4db613=['Invalid\x20JSON\x20string:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','5582748dyArOr','11JoXOOh','55oobMEX','utf-8','63hClDRc','210486IcoWkH','65gCTTGK','347862lauPCh','parse','PERMISSION_DENIED','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','INTERNAL','File\x20not\x20found:\x20','5GpdARM','27342aSeCnd','\x27:\x20','Permission\x20denied\x20reading\x20file:\x20','12TDpTzC','code','ENOENT','747976GfiOlx','375222kTrUOj','message','EACCES','170jfSkbH','7322042VKXcSV'];a216_0x5eed=function(){return _0x4db613;};return a216_0x5eed();}(function(_0x37ac8c,_0x570350){const _0x3a6d14=a216_0x1afb,_0x12dfeb=_0x37ac8c();while(!![]){try{const _0x1b1a88=-parseInt(_0x3a6d14(0xfd))/0x1*(parseInt(_0x3a6d14(0xf6))/0x2)+-parseInt(_0x3a6d14(0x105))/0x3*(-parseInt(_0x3a6d14(0x101))/0x4)+-parseInt(_0x3a6d14(0xf1))/0x5*(parseInt(_0x3a6d14(0xf4))/0x6)+parseInt(_0x3a6d14(0xf3))/0x7*(-parseInt(_0x3a6d14(0x104))/0x8)+-parseInt(_0x3a6d14(0xfe))/0x9*(-parseInt(_0x3a6d14(0x108))/0xa)+-parseInt(_0x3a6d14(0xf0))/0xb*(parseInt(_0x3a6d14(0x10c))/0xc)+-parseInt(_0x3a6d14(0xf5))/0xd*(-parseInt(_0x3a6d14(0x109))/0xe);if(_0x1b1a88===_0x570350)break;else _0x12dfeb['push'](_0x12dfeb['shift']());}catch(_0xf9a2ff){_0x12dfeb['push'](_0x12dfeb['shift']());}}}(a216_0x5eed,0x75193));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a216_0x1afb(_0x71eb2c,_0x197298){_0x71eb2c=_0x71eb2c-0xf0;const _0x5eedec=a216_0x5eed();let _0x1afb46=_0x5eedec[_0x71eb2c];return _0x1afb46;}export async function loadJSON(_0x501609,_0xb5cd75){const _0x5daf4f=a216_0x1afb;try{if(_0xb5cd75){const _0x5d9800=await readFile(_0x501609,_0x5daf4f(0xf2));try{return JSON[_0x5daf4f(0xf7)](_0x5d9800);}catch(_0x4609e4){throw new SDKError(ErrorCode[_0x5daf4f(0xf9)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x501609+_0x5daf4f(0xff)+(_0x4609e4 instanceof Error?_0x4609e4[_0x5daf4f(0x106)]:String(_0x4609e4)));}}else try{return JSON[_0x5daf4f(0xf7)](_0x501609);}catch(_0x2e36fc){throw new SDKError(ErrorCode[_0x5daf4f(0xf9)],_0x5daf4f(0x10a)+(_0x2e36fc instanceof Error?_0x2e36fc['message']:String(_0x2e36fc)));}}catch(_0x2e2405){if(_0x2e2405 instanceof SDKError)throw _0x2e2405;if(_0x2e2405 instanceof Error&&_0x5daf4f(0x102)in _0x2e2405){const _0x388ae5=_0x2e2405;if(_0x388ae5[_0x5daf4f(0x102)]===_0x5daf4f(0x103))throw new SDKError(ErrorCode['NOT_FOUND'],_0x5daf4f(0xfc)+_0x501609);else{if(_0x388ae5['code']===_0x5daf4f(0x107))throw new SDKError(ErrorCode[_0x5daf4f(0xf8)],_0x5daf4f(0x100)+_0x501609);}}throw new SDKError(ErrorCode[_0x5daf4f(0xfb)],_0x5daf4f(0xfa)+(_0x2e2405 instanceof Error?_0x2e2405[_0x5daf4f(0x106)]:String(_0x2e2405)));}}export async function loadJSONFromOptions(_0x304af7,_0x2b56d8){const _0x15f704=a216_0x1afb;if(_0x304af7&&_0x2b56d8)throw new SDKError(ErrorCode[_0x15f704(0xf9)],_0x15f704(0x10b));if(_0x304af7)return await loadJSON(_0x304af7,![]);if(_0x2b56d8)return await loadJSON(_0x2b56d8,!![]);return undefined;}
@@ -1 +1 @@
1
- const a216_0xb9ce2a=a216_0x1594;(function(_0x1f8d8d,_0x4451f1){const _0x415add=a216_0x1594,_0x35c944=_0x1f8d8d();while(!![]){try{const _0x487d77=parseInt(_0x415add(0x1f5))/0x1+parseInt(_0x415add(0x203))/0x2+-parseInt(_0x415add(0x1ff))/0x3+parseInt(_0x415add(0x1f3))/0x4+-parseInt(_0x415add(0x201))/0x5*(-parseInt(_0x415add(0x1fd))/0x6)+-parseInt(_0x415add(0x1fc))/0x7*(parseInt(_0x415add(0x1f4))/0x8)+parseInt(_0x415add(0x1f2))/0x9;if(_0x487d77===_0x4451f1)break;else _0x35c944['push'](_0x35c944['shift']());}catch(_0x4d7dc3){_0x35c944['push'](_0x35c944['shift']());}}}(a216_0x1e62,0x353a4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a216_0x1e62(){const _0x1e8a4e=['491424TcizUd','stringify','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','800631yewrRG','492780ekZirE','13024vCqLpt','165873ZWrUtC','cwd','Cache\x20key\x20\x22','root','\x22\x20already\x20registered\x20by\x20\x22','parse','trim','924PBiEoJ','414RJizJb','get','1114395PLWovL','.cache/tdx','13090PiLocO','set'];a216_0x1e62=function(){return _0x1e8a4e;};return a216_0x1e62();}import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0xb9ce2a(0x200),registry=new Map();export function registerCacheKey(_0x5eea10,_0x4e195a){const _0x59ccd6=a216_0xb9ce2a,_0x10c7fe=registry[_0x59ccd6(0x1fe)](_0x5eea10);if(_0x10c7fe&&_0x10c7fe!==_0x4e195a)throw new Error(_0x59ccd6(0x1f7)+_0x5eea10+_0x59ccd6(0x1f9)+_0x10c7fe+_0x59ccd6(0x1f0)+_0x4e195a+'\x22');registry[_0x59ccd6(0x202)](_0x5eea10,_0x4e195a);}export function getCacheDir(){const _0x2115f8=a216_0xb9ce2a,_0x406946=process[_0x2115f8(0x1f6)](),_0x388031=_0x406946===parse(_0x406946)[_0x2115f8(0x1f8)]?homedir():_0x406946;return join(_0x388031,LOCAL_CACHE_DIR);}export function getCachePath(_0x30206a){return join(getCacheDir(),_0x30206a);}function ensureCacheDir(){const _0x35e105=getCacheDir();!existsSync(_0x35e105)&&mkdirSync(_0x35e105,{'recursive':!![]});}function readCacheJson(_0x57788f){const _0x184721=a216_0xb9ce2a,_0x431eee=getCachePath(_0x57788f);if(!existsSync(_0x431eee))return undefined;try{const _0x1237a6=readFileSync(_0x431eee,'utf-8');return JSON[_0x184721(0x1fa)](_0x1237a6);}catch{return undefined;}}function writeCacheJson(_0x2889c6,_0x4f1444){const _0x2b0b46=a216_0xb9ce2a;ensureCacheDir(),writeFileSync(getCachePath(_0x2889c6),JSON[_0x2b0b46(0x1ef)](_0x4f1444,null,0x2),_0x2b0b46(0x1f1));}function readCacheText(_0x4ec5c9){const _0x4bf222=getCachePath(_0x4ec5c9);if(!existsSync(_0x4bf222))return undefined;try{return readFileSync(_0x4bf222,'utf-8');}catch{return undefined;}}function writeCacheText(_0x41cfe3,_0x3445c7){const _0x48f3fb=a216_0xb9ce2a;ensureCacheDir(),writeFileSync(getCachePath(_0x41cfe3),_0x3445c7,_0x48f3fb(0x1f1));}function clearCache(_0x5538a9){const _0x20b70a=getCachePath(_0x5538a9);if(existsSync(_0x20b70a))try{unlinkSync(_0x20b70a);}catch{}}function cacheExists(_0x3bf1c7){return existsSync(getCachePath(_0x3bf1c7));}function a216_0x1594(_0x18d769,_0x471742){_0x18d769=_0x18d769-0x1ef;const _0x1e625e=a216_0x1e62();let _0x15944b=_0x1e625e[_0x18d769];return _0x15944b;}export function createCache(_0x153632,_0x1bf349){return registerCacheKey(_0x153632,_0x1bf349),{'read':()=>readCacheJson(_0x153632),'write':_0x3d13e3=>writeCacheJson(_0x153632,_0x3d13e3),'clear':()=>clearCache(_0x153632),'exists':()=>cacheExists(_0x153632),'path':()=>getCachePath(_0x153632)};}export function createTextCache(_0x38dba5,_0x52d432){const _0x1295df=a216_0xb9ce2a;return registerCacheKey(_0x38dba5,_0x52d432),{'read':()=>readCacheText(_0x38dba5)?.[_0x1295df(0x1fb)]()||undefined,'write':_0x18891f=>writeCacheText(_0x38dba5,_0x18891f),'clear':()=>clearCache(_0x38dba5),'exists':()=>cacheExists(_0x38dba5),'path':()=>getCachePath(_0x38dba5)};}export function clearRegistry(){registry['clear']();}
1
+ const a217_0x1a39ba=a217_0x549e;(function(_0x20f8d8,_0x34da75){const _0x3eda4c=a217_0x549e,_0x1c2ddb=_0x20f8d8();while(!![]){try{const _0x1059a5=-parseInt(_0x3eda4c(0x18d))/0x1+-parseInt(_0x3eda4c(0x189))/0x2*(parseInt(_0x3eda4c(0x198))/0x3)+-parseInt(_0x3eda4c(0x184))/0x4+parseInt(_0x3eda4c(0x187))/0x5*(-parseInt(_0x3eda4c(0x190))/0x6)+parseInt(_0x3eda4c(0x196))/0x7*(-parseInt(_0x3eda4c(0x195))/0x8)+-parseInt(_0x3eda4c(0x192))/0x9*(-parseInt(_0x3eda4c(0x197))/0xa)+-parseInt(_0x3eda4c(0x18e))/0xb*(-parseInt(_0x3eda4c(0x194))/0xc);if(_0x1059a5===_0x34da75)break;else _0x1c2ddb['push'](_0x1c2ddb['shift']());}catch(_0x202d4f){_0x1c2ddb['push'](_0x1c2ddb['shift']());}}}(a217_0x1dc9,0xd3091));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x1a39ba(0x18c),registry=new Map();export function registerCacheKey(_0x592603,_0x4a58ed){const _0x5916f9=a217_0x1a39ba,_0x3caafd=registry[_0x5916f9(0x18a)](_0x592603);if(_0x3caafd&&_0x3caafd!==_0x4a58ed)throw new Error('Cache\x20key\x20\x22'+_0x592603+_0x5916f9(0x191)+_0x3caafd+_0x5916f9(0x188)+_0x4a58ed+'\x22');registry[_0x5916f9(0x185)](_0x592603,_0x4a58ed);}export function getCacheDir(){const _0x176477=a217_0x1a39ba,_0x1d7b9c=process[_0x176477(0x193)](),_0x449d30=_0x1d7b9c===parse(_0x1d7b9c)[_0x176477(0x18b)]?homedir():_0x1d7b9c;return join(_0x449d30,LOCAL_CACHE_DIR);}export function getCachePath(_0x33ca44){return join(getCacheDir(),_0x33ca44);}function ensureCacheDir(){const _0x571c24=getCacheDir();!existsSync(_0x571c24)&&mkdirSync(_0x571c24,{'recursive':!![]});}function readCacheJson(_0x33b87e){const _0x54b468=a217_0x1a39ba,_0x39d8e0=getCachePath(_0x33b87e);if(!existsSync(_0x39d8e0))return undefined;try{const _0x536c80=readFileSync(_0x39d8e0,_0x54b468(0x19a));return JSON[_0x54b468(0x199)](_0x536c80);}catch{return undefined;}}function writeCacheJson(_0x2ab06b,_0x27f008){const _0x1b2ed8=a217_0x1a39ba;ensureCacheDir(),writeFileSync(getCachePath(_0x2ab06b),JSON[_0x1b2ed8(0x186)](_0x27f008,null,0x2),_0x1b2ed8(0x19a));}function readCacheText(_0x471b4a){const _0x489921=getCachePath(_0x471b4a);if(!existsSync(_0x489921))return undefined;try{return readFileSync(_0x489921,'utf-8');}catch{return undefined;}}function writeCacheText(_0xb0fbe5,_0x385a10){const _0x130a8b=a217_0x1a39ba;ensureCacheDir(),writeFileSync(getCachePath(_0xb0fbe5),_0x385a10,_0x130a8b(0x19a));}function clearCache(_0x31dd61){const _0x3f2997=getCachePath(_0x31dd61);if(existsSync(_0x3f2997))try{unlinkSync(_0x3f2997);}catch{}}function cacheExists(_0x32b3a3){return existsSync(getCachePath(_0x32b3a3));}function a217_0x549e(_0x3f9d15,_0x7733cb){_0x3f9d15=_0x3f9d15-0x184;const _0x1dc9a2=a217_0x1dc9();let _0x549e3a=_0x1dc9a2[_0x3f9d15];return _0x549e3a;}function a217_0x1dc9(){const _0xca6569=['115785vCvtJt','cwd','40814040WEYsKz','9860968XppuWm','7FFUyjO','210zZINlm','3KRpElT','parse','utf-8','3205708zDCiLC','set','stringify','710045LUhlNx','\x22,\x20cannot\x20register\x20for\x20\x22','448366NPaAFv','get','root','.cache/tdx','122676VVDJGV','11BtufBB','trim','18RxVMhM','\x22\x20already\x20registered\x20by\x20\x22'];a217_0x1dc9=function(){return _0xca6569;};return a217_0x1dc9();}export function createCache(_0x11efec,_0x4276aa){return registerCacheKey(_0x11efec,_0x4276aa),{'read':()=>readCacheJson(_0x11efec),'write':_0x2c9e7=>writeCacheJson(_0x11efec,_0x2c9e7),'clear':()=>clearCache(_0x11efec),'exists':()=>cacheExists(_0x11efec),'path':()=>getCachePath(_0x11efec)};}export function createTextCache(_0x21f854,_0xf2fc32){const _0x374d2f=a217_0x1a39ba;return registerCacheKey(_0x21f854,_0xf2fc32),{'read':()=>readCacheText(_0x21f854)?.[_0x374d2f(0x18f)]()||undefined,'write':_0x308422=>writeCacheText(_0x21f854,_0x308422),'clear':()=>clearCache(_0x21f854),'exists':()=>cacheExists(_0x21f854),'path':()=>getCachePath(_0x21f854)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a217_0x468e80=a217_0x27ad;function a217_0x27ad(_0x3670aa,_0x36e5b8){_0x3670aa=_0x3670aa-0x1e3;const _0x233a6d=a217_0x233a();let _0x27ad8e=_0x233a6d[_0x3670aa];return _0x27ad8e;}(function(_0x5a4bdf,_0x58c621){const _0x4d2644=a217_0x27ad,_0x54b128=_0x5a4bdf();while(!![]){try{const _0x28b02f=parseInt(_0x4d2644(0x1fc))/0x1+-parseInt(_0x4d2644(0x1f5))/0x2+parseInt(_0x4d2644(0x1ed))/0x3*(-parseInt(_0x4d2644(0x1e5))/0x4)+parseInt(_0x4d2644(0x1fd))/0x5*(parseInt(_0x4d2644(0x1ef))/0x6)+-parseInt(_0x4d2644(0x1ec))/0x7+-parseInt(_0x4d2644(0x1fb))/0x8+parseInt(_0x4d2644(0x1ff))/0x9*(parseInt(_0x4d2644(0x1f0))/0xa);if(_0x28b02f===_0x58c621)break;else _0x54b128['push'](_0x54b128['shift']());}catch(_0x25c168){_0x54b128['push'](_0x54b128['shift']());}}}(a217_0x233a,0x59470));import a217_0x395eab from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x395eab,ChalkClass=chalkModule[a217_0x468e80(0x1fa)]||chalkModule[a217_0x468e80(0x1f3)]?.['Chalk'];export class DefaultLogFormatter{[a217_0x468e80(0x1e4)];[a217_0x468e80(0x1f8)];constructor(_0x222c6c={}){const _0x1517e9=a217_0x468e80;this[_0x1517e9(0x1e4)]=_0x222c6c[_0x1517e9(0x1e4)]??![],this[_0x1517e9(0x1f8)]=_0x222c6c[_0x1517e9(0x1e4)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x395eab;}[a217_0x468e80(0x1f2)](_0x2a4abe){const _0x275992=a217_0x468e80,_0x1f9374=formatTimestamp(_0x2a4abe[_0x275992(0x1e6)]),_0x5c2d36=logLevelToString(_0x2a4abe[_0x275992(0x1eb)]);if(!this[_0x275992(0x1e4)])return _0x1f9374+'\x20['+_0x5c2d36+']\x20['+_0x2a4abe[_0x275992(0x1f4)]+']\x20'+_0x2a4abe[_0x275992(0x1f9)];const _0x20a0c1=this[_0x275992(0x1f8)]['dim'](_0x1f9374),_0x52df09=this[_0x275992(0x1fe)](_0x5c2d36,_0x2a4abe[_0x275992(0x1eb)]),_0x118435=this[_0x275992(0x1f8)][_0x275992(0x1f7)]('['+_0x2a4abe['component']+']');return _0x20a0c1+'\x20'+_0x52df09+'\x20'+_0x118435+'\x20'+_0x2a4abe['message'];}['colorLevel'](_0x1ccdaf,_0x25640f){const _0x14e324=a217_0x468e80;switch(_0x25640f){case LogLevel[_0x14e324(0x1e9)]:return this[_0x14e324(0x1f8)][_0x14e324(0x1e7)]('['+_0x1ccdaf+']');case LogLevel[_0x14e324(0x200)]:return this[_0x14e324(0x1f8)][_0x14e324(0x1e3)]('['+_0x1ccdaf+']');case LogLevel[_0x14e324(0x1e8)]:return this[_0x14e324(0x1f8)][_0x14e324(0x1f6)]('['+_0x1ccdaf+']');case LogLevel[_0x14e324(0x1ea)]:return this[_0x14e324(0x1f8)][_0x14e324(0x1f1)]('['+_0x1ccdaf+']');case LogLevel[_0x14e324(0x1ee)]:return this[_0x14e324(0x1f8)]['red']('['+_0x1ccdaf+']');default:return'['+_0x1ccdaf+']';}}}function a217_0x233a(){const _0x460d3c=['chalk','message','Chalk','320112NQWskM','437492ZYNVAy','220BkqzJk','colorLevel','1863ovRQBr','DEBUG','green','colors','356300TpzfDr','timestamp','gray','INFO','TRACE','WARN','level','2433998hspsgF','15zSZDIn','ERROR','58998aRUckH','22230owEwqU','yellow','format','default','component','263044qFdvdf','cyan','blue'];a217_0x233a=function(){return _0x460d3c;};return a217_0x233a();}
1
+ const a218_0x30b09c=a218_0x1b56;function a218_0x2e98(){const _0x53eb7d=['WARN','5994810joJkSX',']\x20[','format','Chalk','ERROR','48UXkCzz','DEBUG','colorLevel','2574620yBRzTv','956347zRVgrG','4566usjeWv','dim','message','51btrxYI','912148HSTbnJ','chalk','blue','860371jBTMAP','INFO','145336umZGLC','TRACE','colors','3075zSIWED','red'];a218_0x2e98=function(){return _0x53eb7d;};return a218_0x2e98();}(function(_0x49f7f0,_0x40b9b9){const _0x57b4c1=a218_0x1b56,_0x2f9075=_0x49f7f0();while(!![]){try{const _0x2e18fe=-parseInt(_0x57b4c1(0xb7))/0x1+parseInt(_0x57b4c1(0xb4))/0x2+-parseInt(_0x57b4c1(0xb3))/0x3*(-parseInt(_0x57b4c1(0xa0))/0x4)+parseInt(_0x57b4c1(0xa3))/0x5*(parseInt(_0x57b4c1(0xb0))/0x6)+-parseInt(_0x57b4c1(0xaf))/0x7*(-parseInt(_0x57b4c1(0xab))/0x8)+-parseInt(_0x57b4c1(0xa6))/0x9+-parseInt(_0x57b4c1(0xae))/0xa;if(_0x2e18fe===_0x40b9b9)break;else _0x2f9075['push'](_0x2f9075['shift']());}catch(_0x56093e){_0x2f9075['push'](_0x2f9075['shift']());}}}(a218_0x2e98,0x8d022));function a218_0x1b56(_0x2b08de,_0x5c8e89){_0x2b08de=_0x2b08de-0x9f;const _0x2e984e=a218_0x2e98();let _0x1b56af=_0x2e984e[_0x2b08de];return _0x1b56af;}import a218_0x148661 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x148661,ChalkClass=chalkModule[a218_0x30b09c(0xa9)]||chalkModule['default']?.[a218_0x30b09c(0xa9)];export class DefaultLogFormatter{[a218_0x30b09c(0xa2)];[a218_0x30b09c(0xb5)];constructor(_0x42d891={}){const _0x2680fa=a218_0x30b09c;this[_0x2680fa(0xa2)]=_0x42d891[_0x2680fa(0xa2)]??![],this['chalk']=_0x42d891[_0x2680fa(0xa2)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x148661;}[a218_0x30b09c(0xa8)](_0x2f1207){const _0x26efea=a218_0x30b09c,_0x153be6=formatTimestamp(_0x2f1207['timestamp']),_0x259439=logLevelToString(_0x2f1207['level']);if(!this[_0x26efea(0xa2)])return _0x153be6+'\x20['+_0x259439+_0x26efea(0xa7)+_0x2f1207['component']+']\x20'+_0x2f1207[_0x26efea(0xb2)];const _0xc29299=this[_0x26efea(0xb5)][_0x26efea(0xb1)](_0x153be6),_0xf7b6c4=this[_0x26efea(0xad)](_0x259439,_0x2f1207['level']),_0x44cf06=this[_0x26efea(0xb5)][_0x26efea(0xb6)]('['+_0x2f1207['component']+']');return _0xc29299+'\x20'+_0xf7b6c4+'\x20'+_0x44cf06+'\x20'+_0x2f1207['message'];}[a218_0x30b09c(0xad)](_0x407c42,_0x294330){const _0x5d1197=a218_0x30b09c;switch(_0x294330){case LogLevel[_0x5d1197(0xa1)]:return this['chalk']['gray']('['+_0x407c42+']');case LogLevel[_0x5d1197(0xac)]:return this[_0x5d1197(0xb5)]['green']('['+_0x407c42+']');case LogLevel[_0x5d1197(0x9f)]:return this['chalk']['cyan']('['+_0x407c42+']');case LogLevel[_0x5d1197(0xa5)]:return this[_0x5d1197(0xb5)]['yellow']('['+_0x407c42+']');case LogLevel[_0x5d1197(0xaa)]:return this[_0x5d1197(0xb5)][_0x5d1197(0xa4)]('['+_0x407c42+']');default:return'['+_0x407c42+']';}}}
@@ -1 +1 @@
1
- function a218_0x3aa3(){var _0xb39074=['1503384xlcwMn','270822rgsSSZ','10450lWituM','623296MWpPGB','7380AHgUnL','195796FobsNi','724974LVOybn','10wjBDkZ','575433UIGDKn','7XYuvwg'];a218_0x3aa3=function(){return _0xb39074;};return a218_0x3aa3();}(function(_0x179d20,_0x49b331){var _0x22848e=a218_0x3723,_0x4e48de=_0x179d20();while(!![]){try{var _0x2cd0dc=parseInt(_0x22848e(0x11b))/0x1+-parseInt(_0x22848e(0x121))/0x2+-parseInt(_0x22848e(0x11e))/0x3+-parseInt(_0x22848e(0x119))/0x4+-parseInt(_0x22848e(0x11d))/0x5*(parseInt(_0x22848e(0x11c))/0x6)+-parseInt(_0x22848e(0x11f))/0x7*(parseInt(_0x22848e(0x120))/0x8)+-parseInt(_0x22848e(0x11a))/0x9*(-parseInt(_0x22848e(0x118))/0xa);if(_0x2cd0dc===_0x49b331)break;else _0x4e48de['push'](_0x4e48de['shift']());}catch(_0x14b60d){_0x4e48de['push'](_0x4e48de['shift']());}}}(a218_0x3aa3,0x22325));function a218_0x3723(_0x3d0c3e,_0x24a5e7){_0x3d0c3e=_0x3d0c3e-0x118;var _0x3aa32e=a218_0x3aa3();var _0x37235c=_0x3aa32e[_0x3d0c3e];return _0x37235c;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a219_0x4b89(_0xedd6fa,_0x4b2a8e){_0xedd6fa=_0xedd6fa-0x1bd;var _0x100fbd=a219_0x100f();var _0x4b89b0=_0x100fbd[_0xedd6fa];return _0x4b89b0;}(function(_0xc0bcb7,_0x2b96ad){var _0x48ae8a=a219_0x4b89,_0x2a5688=_0xc0bcb7();while(!![]){try{var _0x5bba85=parseInt(_0x48ae8a(0x1c5))/0x1+parseInt(_0x48ae8a(0x1bd))/0x2+parseInt(_0x48ae8a(0x1c4))/0x3+-parseInt(_0x48ae8a(0x1c0))/0x4*(parseInt(_0x48ae8a(0x1be))/0x5)+parseInt(_0x48ae8a(0x1bf))/0x6*(parseInt(_0x48ae8a(0x1c2))/0x7)+-parseInt(_0x48ae8a(0x1c1))/0x8*(parseInt(_0x48ae8a(0x1c3))/0x9)+-parseInt(_0x48ae8a(0x1c6))/0xa;if(_0x5bba85===_0x2b96ad)break;else _0x2a5688['push'](_0x2a5688['shift']());}catch(_0x3a6f00){_0x2a5688['push'](_0x2a5688['shift']());}}}(a219_0x100f,0x5a468));export{DefaultLogFormatter}from'./default-formatter.js';function a219_0x100f(){var _0x31b420=['653214kcMQTb','20GNWJfX','754072rBuKSG','7zoxMii','9iKGqdl','89535EeqJAk','360889uWyxZq','1562020VBRzMK','553022zHmtDF','155885zlmDvg'];a219_0x100f=function(){return _0x31b420;};return a219_0x100f();}