@treasuredata/tdx 2026.4.7 → 2026.4.9

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 (232) 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.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.d.ts +2 -0
  182. package/dist/sdk/workspace/access-tracker.d.ts.map +1 -1
  183. package/dist/sdk/workspace/access-tracker.js +1 -1
  184. package/dist/sdk/workspace/access-tracker.js.map +1 -1
  185. package/dist/sdk/workspace/frontmatter.js +1 -1
  186. package/dist/sdk/workspace/git.js +1 -1
  187. package/dist/sdk/workspace/index.d.ts +2 -0
  188. package/dist/sdk/workspace/index.d.ts.map +1 -1
  189. package/dist/sdk/workspace/index.js +1 -1
  190. package/dist/sdk/workspace/index.js.map +1 -1
  191. package/dist/sdk/workspace/templates.js +1 -1
  192. package/dist/sdk/workspace/weekly.js +1 -1
  193. package/dist/sdk/workspace/wikilinks.js +1 -1
  194. package/dist/test-utils/command-runner.js +1 -1
  195. package/dist/test-utils/factories.js +1 -1
  196. package/dist/test-utils/fixtures.js +1 -1
  197. package/dist/test-utils/http-mock.js +1 -1
  198. package/dist/test-utils/index.js +1 -1
  199. package/dist/utils/async.js +1 -1
  200. package/dist/utils/colors.js +1 -1
  201. package/dist/utils/diff.js +1 -1
  202. package/dist/utils/file-permissions.js +1 -1
  203. package/dist/utils/file-reader.js +1 -1
  204. package/dist/utils/github-releases.js +1 -1
  205. package/dist/utils/global-cache.js +1 -1
  206. package/dist/utils/json-loader.js +1 -1
  207. package/dist/utils/local-cache.js +1 -1
  208. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  209. package/dist/utils/logger/formatters/index.js +1 -1
  210. package/dist/utils/logger/handlers/console-handler.js +1 -1
  211. package/dist/utils/logger/handlers/file-handler.js +1 -1
  212. package/dist/utils/logger/handlers/index.js +1 -1
  213. package/dist/utils/logger/handlers/null-handler.js +1 -1
  214. package/dist/utils/logger/index.js +1 -1
  215. package/dist/utils/logger/logger.js +1 -1
  216. package/dist/utils/logger/types.js +1 -1
  217. package/dist/utils/option-validation.js +1 -1
  218. package/dist/utils/process.d.ts +3 -0
  219. package/dist/utils/process.d.ts.map +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/process.js.map +1 -1
  222. package/dist/utils/prompt.js +1 -1
  223. package/dist/utils/spinner.js +1 -1
  224. package/dist/utils/sse-parser.js +1 -1
  225. package/dist/utils/string-utils.js +1 -1
  226. package/dist/utils/table-ref-parser.js +1 -1
  227. package/dist/utils/tdx-logger.js +1 -1
  228. package/dist/utils/version-check.d.ts +10 -2
  229. package/dist/utils/version-check.d.ts.map +1 -1
  230. package/dist/utils/version-check.js +1 -1
  231. package/dist/utils/version-check.js.map +1 -1
  232. package/package.json +1 -1
@@ -1 +1 @@
1
- const a204_0xd8cf=a204_0x50ab;(function(_0x17ee2c,_0x279bc1){const _0x38e81f=a204_0x50ab,_0x5cb990=_0x17ee2c();while(!![]){try{const _0x4dc4c6=-parseInt(_0x38e81f(0x11f))/0x1*(-parseInt(_0x38e81f(0x10b))/0x2)+parseInt(_0x38e81f(0x111))/0x3+parseInt(_0x38e81f(0x10d))/0x4*(-parseInt(_0x38e81f(0x117))/0x5)+parseInt(_0x38e81f(0x119))/0x6*(parseInt(_0x38e81f(0x105))/0x7)+parseInt(_0x38e81f(0x118))/0x8*(parseInt(_0x38e81f(0x113))/0x9)+-parseInt(_0x38e81f(0x103))/0xa*(parseInt(_0x38e81f(0x10f))/0xb)+-parseInt(_0x38e81f(0x11b))/0xc*(parseInt(_0x38e81f(0x10c))/0xd);if(_0x4dc4c6===_0x279bc1)break;else _0x5cb990['push'](_0x5cb990['shift']());}catch(_0xa01444){_0x5cb990['push'](_0x5cb990['shift']());}}}(a204_0x48f8,0xbb239));function a204_0x50ab(_0x8001ef,_0x16ad17){_0x8001ef=_0x8001ef-0xfe;const _0x48f8ca=a204_0x48f8();let _0x50ab98=_0x48f8ca[_0x8001ef];return _0x50ab98;}function a204_0x48f8(){const _0x4dae66=['join','reset','createFetch','push','2451892iiSkEr','7079319vMnhth','4772qjMNdI','setup','4181353PflCqf','originalFetch','2446536fRdWtg','fetch','666VjiNhS','log','ERROR','teardown','4390mgLbGN','57488kyoURh','14952ssZjkY','options','12qpRMtY','us01','test-api-key-id/test-api-key-secret','fail','1SpBwCr','exitCode','verify','warn','site','map','40JDieOl','http','3668pALmfl','run'];a204_0x48f8=function(){return _0x4dae66;};return a204_0x48f8();}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{['http'];[a204_0xd8cf(0x110)];constructor(){const _0x16b9ff=a204_0xd8cf;this[_0x16b9ff(0x104)]=createHTTPMock(),this[_0x16b9ff(0x110)]=global[_0x16b9ff(0x112)];}[a204_0xd8cf(0x10e)](){const _0x2ebae5=a204_0xd8cf;this[_0x2ebae5(0x110)]=global[_0x2ebae5(0x112)],global[_0x2ebae5(0x112)]=this[_0x2ebae5(0x104)][_0x2ebae5(0x109)]();}[a204_0xd8cf(0x116)](_0x177a0a){const _0x117910=a204_0xd8cf;try{_0x177a0a?.[_0x117910(0x11e)]&&this['http'][_0x117910(0xff)](_0x177a0a);}finally{global[_0x117910(0x112)]=this[_0x117910(0x110)],this['http'][_0x117910(0x108)]();}}async[a204_0xd8cf(0x106)](_0x5a7637,_0x25baa1={}){const _0x38727d=a204_0xd8cf,_0x22d6a1=[],_0x2ceca1=[],_0x4a9fae=console[_0x38727d(0x114)],_0x36b659=console['error'],_0x16870b=console[_0x38727d(0x100)];console[_0x38727d(0x114)]=(..._0x25343a)=>{const _0x2a182d=_0x38727d;_0x22d6a1[_0x2a182d(0x10a)](_0x25343a[_0x2a182d(0x102)](String)['join']('\x20'));},console['error']=(..._0x1b8f36)=>{const _0x4d9478=_0x38727d;_0x2ceca1['push'](_0x1b8f36[_0x4d9478(0x102)](String)[_0x4d9478(0x107)]('\x20'));},console[_0x38727d(0x100)]=(..._0x53faa1)=>{const _0x48c5ba=_0x38727d;_0x2ceca1[_0x48c5ba(0x10a)](_0x53faa1[_0x48c5ba(0x102)](String)['join']('\x20'));};try{const _0x4df8aa=new TDX({'site':_0x25baa1['options']?.[_0x38727d(0x101)]??_0x38727d(0x11c),'apiKey':_0x38727d(0x11d),'logLevel':LogLevel[_0x38727d(0x115)]}),_0x540d4c={'options':createTestGlobalOptions(_0x25baa1[_0x38727d(0x11a)]),'args':_0x25baa1['args']??[],'tdx':_0x4df8aa},_0x19b901=new _0x5a7637(),_0x2656ab=await _0x19b901[_0x38727d(0x106)](_0x540d4c);return{'exitCode':_0x2656ab,'stdout':_0x22d6a1,'stderr':_0x2ceca1};}finally{console[_0x38727d(0x114)]=_0x4a9fae,console['error']=_0x36b659,console[_0x38727d(0x100)]=_0x16870b;}}async['runSequence'](_0x174b2a){const _0x797bbb=a204_0xd8cf,_0x381326=[];for(const {command:_0x429b36,options:_0xba7c49}of _0x174b2a){const _0x5a45a7=await this[_0x797bbb(0x106)](_0x429b36,_0xba7c49);_0x381326[_0x797bbb(0x10a)](_0x5a45a7);if(_0x5a45a7[_0x797bbb(0xfe)]!==0x0)break;}return _0x381326;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a204_0x274fac=a204_0x35b5;(function(_0x3f56dd,_0x2f40f2){const _0x2f344b=a204_0x35b5,_0x50dc3a=_0x3f56dd();while(!![]){try{const _0x450408=-parseInt(_0x2f344b(0xaf))/0x1+-parseInt(_0x2f344b(0xba))/0x2*(-parseInt(_0x2f344b(0xb6))/0x3)+-parseInt(_0x2f344b(0xac))/0x4+parseInt(_0x2f344b(0xaa))/0x5+parseInt(_0x2f344b(0xab))/0x6*(parseInt(_0x2f344b(0xae))/0x7)+-parseInt(_0x2f344b(0xbd))/0x8+parseInt(_0x2f344b(0xa1))/0x9*(parseInt(_0x2f344b(0xad))/0xa);if(_0x450408===_0x2f40f2)break;else _0x50dc3a['push'](_0x50dc3a['shift']());}catch(_0x155c63){_0x50dc3a['push'](_0x50dc3a['shift']());}}}(a204_0x5c13,0x4dcee));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';function a204_0x5c13(){const _0x44740c=['createFetch','map','fail','verify','reset','615399HQumLh','http','options','log','6ltxzUT','warn','test-api-key-id/test-api-key-secret','2817080tYIASy','9yCdYkq','push','setup','site','fetch','join','run','originalFetch','error','2312085qaByuQ','6PBvQiw','2134000qpgBvp','1057610PcvTjE','2296413wtcfCL','307299hEpIml','us01'];a204_0x5c13=function(){return _0x44740c;};return a204_0x5c13();}function a204_0x35b5(_0xc60a26,_0x54e361){_0xc60a26=_0xc60a26-0xa1;const _0x5c1357=a204_0x5c13();let _0x35b573=_0x5c1357[_0xc60a26];return _0x35b573;}import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a204_0x274fac(0xb7)];['originalFetch'];constructor(){const _0x123ef7=a204_0x274fac;this[_0x123ef7(0xb7)]=createHTTPMock(),this[_0x123ef7(0xa8)]=global[_0x123ef7(0xa5)];}[a204_0x274fac(0xa3)](){const _0x44c189=a204_0x274fac;this['originalFetch']=global[_0x44c189(0xa5)],global['fetch']=this['http'][_0x44c189(0xb1)]();}['teardown'](_0xfc72a7){const _0x38b618=a204_0x274fac;try{_0xfc72a7?.[_0x38b618(0xb3)]&&this[_0x38b618(0xb7)][_0x38b618(0xb4)](_0xfc72a7);}finally{global[_0x38b618(0xa5)]=this[_0x38b618(0xa8)],this[_0x38b618(0xb7)][_0x38b618(0xb5)]();}}async[a204_0x274fac(0xa7)](_0xaa3154,_0x4261b6={}){const _0x156eb0=a204_0x274fac,_0x4733f9=[],_0x13bfac=[],_0x6661e3=console[_0x156eb0(0xb9)],_0x23fdcd=console[_0x156eb0(0xa9)],_0x578615=console[_0x156eb0(0xbb)];console['log']=(..._0x5bbbaa)=>{const _0x28459b=_0x156eb0;_0x4733f9[_0x28459b(0xa2)](_0x5bbbaa[_0x28459b(0xb2)](String)['join']('\x20'));},console[_0x156eb0(0xa9)]=(..._0x449b45)=>{const _0x51a872=_0x156eb0;_0x13bfac[_0x51a872(0xa2)](_0x449b45[_0x51a872(0xb2)](String)[_0x51a872(0xa6)]('\x20'));},console['warn']=(..._0x39d0fd)=>{const _0x37303e=_0x156eb0;_0x13bfac[_0x37303e(0xa2)](_0x39d0fd[_0x37303e(0xb2)](String)['join']('\x20'));};try{const _0x122a62=new TDX({'site':_0x4261b6[_0x156eb0(0xb8)]?.[_0x156eb0(0xa4)]??_0x156eb0(0xb0),'apiKey':_0x156eb0(0xbc),'logLevel':LogLevel['ERROR']}),_0x2e95c4={'options':createTestGlobalOptions(_0x4261b6['options']),'args':_0x4261b6['args']??[],'tdx':_0x122a62},_0x400e12=new _0xaa3154(),_0x3207ff=await _0x400e12[_0x156eb0(0xa7)](_0x2e95c4);return{'exitCode':_0x3207ff,'stdout':_0x4733f9,'stderr':_0x13bfac};}finally{console[_0x156eb0(0xb9)]=_0x6661e3,console[_0x156eb0(0xa9)]=_0x23fdcd,console[_0x156eb0(0xbb)]=_0x578615;}}async['runSequence'](_0x29ba0f){const _0x3dac05=a204_0x274fac,_0x45c77a=[];for(const {command:_0x286252,options:_0x414273}of _0x29ba0f){const _0x355165=await this[_0x3dac05(0xa7)](_0x286252,_0x414273);_0x45c77a[_0x3dac05(0xa2)](_0x355165);if(_0x355165['exitCode']!==0x0)break;}return _0x45c77a;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x2ceaf5,_0x4879a8){const _0x67373c=a205_0x2b7b,_0x38bcf6=_0x2ceaf5();while(!![]){try{const _0x1efa62=-parseInt(_0x67373c(0xfa))/0x1*(-parseInt(_0x67373c(0x105))/0x2)+-parseInt(_0x67373c(0x113))/0x3*(parseInt(_0x67373c(0x112))/0x4)+-parseInt(_0x67373c(0x111))/0x5*(parseInt(_0x67373c(0x108))/0x6)+parseInt(_0x67373c(0xf8))/0x7*(-parseInt(_0x67373c(0x110))/0x8)+parseInt(_0x67373c(0x102))/0x9+-parseInt(_0x67373c(0x107))/0xa+parseInt(_0x67373c(0xff))/0xb;if(_0x1efa62===_0x4879a8)break;else _0x38bcf6['push'](_0x38bcf6['shift']());}catch(_0x31ebc7){_0x38bcf6['push'](_0x38bcf6['shift']());}}}(a205_0x5bbc,0x9fa1c));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(_0x5c4767){const _0xd67806=a205_0x2b7b;return{'site':_0xd67806(0xf7),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0xd67806(0x103)],..._0x5c4767};}function a205_0x2b7b(_0x4ee187,_0x2709c2){_0x4ee187=_0x4ee187-0xf7;const _0x5bbc42=a205_0x5bbc();let _0x2b7b7e=_0x5bbc42[_0x4ee187];return _0x2b7b7e;}export function createTestGlobalOptions(_0x57153f){const _0x401182=a205_0x2b7b;return{'site':_0x401182(0xf7),'format':_0x401182(0xf9),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x401182(0x10e),'dryRun':![],'yes':![],'logLevel':LogLevel['ERROR'],..._0x57153f};}export async function initTestLogger(){const _0x4552cb=a205_0x2b7b;Logger[_0x4552cb(0x104)]();const _0xfdb7da=join(getGlobalCacheDir(),_0x4552cb(0x100),'tdx-test.log');await Logger[_0x4552cb(0xfc)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0xfdb7da,'rotate':![]})]});}export function resetTestLogger(){const _0x359ed0=a205_0x2b7b;Logger[_0x359ed0(0x104)]();}function a205_0x5bbc(){const _0x41df3a=['join','8911863DseDzi','ERROR','reset','692332kJOLEf','query','11432500yOFaBt','60174bIvHWj','map','tdx','segment','workflow','push','30000','journey','104rRDklC','145AeKBIF','373132BRxtet','30BNtiOL','test-api-key','error','options','us01','484673XMNVuz','table','1dTScgR','log','init','warn','args','28429577vyRueg','logs'];a205_0x5bbc=function(){return _0x41df3a;};return a205_0x5bbc();}export function createMockTDX(_0x3dba24){const _0x21030c=a205_0x2b7b;return{'context':{'site':_0x21030c(0xf7),'apiKey':_0x21030c(0x114),'logLevel':LogLevel[_0x21030c(0x103)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x3dba24?.[_0x21030c(0x106)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3dba24?.[_0x21030c(0x10b)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3dba24?.[_0x21030c(0x10f)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x3dba24?.[_0x21030c(0x10c)]},'user':{'show':vi['fn'](),..._0x3dba24?.['user']},'api':{'request':vi['fn'](),..._0x3dba24?.['api']},..._0x3dba24};}export function createTestCommandContext(_0x205956){const _0x22452f=a205_0x2b7b,_0x49b18b=createTestGlobalOptions(_0x205956?.[_0x22452f(0x116)]),_0x2683f2=_0x205956?.[_0x22452f(0x10a)]??createMockTDX();return{'options':_0x49b18b,'args':_0x205956?.[_0x22452f(0xfe)]??[],'tdx':_0x2683f2};}export function captureConsole(){const _0x2809a4=a205_0x2b7b,_0xcfabd3=[],_0x23d57b=[],_0x2e912a=console[_0x2809a4(0xfb)],_0x3efd3a=console[_0x2809a4(0x115)],_0x3525b0=console[_0x2809a4(0xfd)];return console[_0x2809a4(0xfb)]=(..._0x3e564e)=>{const _0xa42e82=_0x2809a4;_0xcfabd3['push'](_0x3e564e[_0xa42e82(0x109)](String)[_0xa42e82(0x101)]('\x20'));},console[_0x2809a4(0x115)]=(..._0x523a1f)=>{const _0x3528f1=_0x2809a4;_0x23d57b[_0x3528f1(0x10d)](_0x523a1f[_0x3528f1(0x109)](String)[_0x3528f1(0x101)]('\x20'));},console['warn']=(..._0xe3df3e)=>{const _0x5763b9=_0x2809a4;_0x23d57b['push'](_0xe3df3e[_0x5763b9(0x109)](String)[_0x5763b9(0x101)]('\x20'));},{'stdout':_0xcfabd3,'stderr':_0x23d57b,'restore':()=>{const _0x20d43d=_0x2809a4;console[_0x20d43d(0xfb)]=_0x2e912a,console[_0x20d43d(0x115)]=_0x3efd3a,console['warn']=_0x3525b0;}};}
1
+ (function(_0x3a809c,_0x5d2b4e){const _0x18dd20=a205_0x4d12,_0x4f792a=_0x3a809c();while(!![]){try{const _0x7d5a37=-parseInt(_0x18dd20(0xc0))/0x1*(parseInt(_0x18dd20(0xbf))/0x2)+parseInt(_0x18dd20(0xbc))/0x3*(-parseInt(_0x18dd20(0xb1))/0x4)+-parseInt(_0x18dd20(0xc6))/0x5+-parseInt(_0x18dd20(0xc9))/0x6+-parseInt(_0x18dd20(0xbb))/0x7*(parseInt(_0x18dd20(0xc5))/0x8)+parseInt(_0x18dd20(0xb6))/0x9+parseInt(_0x18dd20(0xb3))/0xa;if(_0x7d5a37===_0x5d2b4e)break;else _0x4f792a['push'](_0x4f792a['shift']());}catch(_0x1eec6f){_0x4f792a['push'](_0x4f792a['shift']());}}}(a205_0x16fc,0x21b66));function a205_0x4d12(_0x371900,_0x4f4471){_0x371900=_0x371900-0xb1;const _0x16fc19=a205_0x16fc();let _0x4d122b=_0x16fc19[_0x371900];return _0x4d122b;}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(_0x4104f3){const _0x4d5589=a205_0x4d12;return{'site':'us01','apiKey':_0x4d5589(0xca),'logLevel':LogLevel['ERROR'],..._0x4104f3};}export function createTestGlobalOptions(_0x57b553){const _0x47f555=a205_0x4d12;return{'site':_0x47f555(0xb5),'format':_0x47f555(0xb4),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x47f555(0xc2),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x47f555(0xb9)],..._0x57b553};}export async function initTestLogger(){const _0x38cb3b=a205_0x4d12;Logger['reset']();const _0x752546=join(getGlobalCacheDir(),'logs','tdx-test.log');await Logger['init']({'defaultLevel':LogLevel[_0x38cb3b(0xb7)],'handlers':[new FileHandler({'filePath':_0x752546,'rotate':![]})]});}export function resetTestLogger(){const _0x1a87e2=a205_0x4d12;Logger[_0x1a87e2(0xb8)]();}export function createMockTDX(_0x3e7916){const _0x3199b6=a205_0x4d12;return{'context':{'site':_0x3199b6(0xb5),'apiKey':'test-api-key','logLevel':LogLevel[_0x3199b6(0xb9)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xcd)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3e7916?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xc3)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x3e7916?.['workflow']},'user':{'show':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xb2)]},'api':{'request':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xbe)]},..._0x3e7916};}export function createTestCommandContext(_0x24bacf){const _0x1a6ccb=a205_0x4d12,_0x2b7c90=createTestGlobalOptions(_0x24bacf?.[_0x1a6ccb(0xc1)]),_0x54ee1c=_0x24bacf?.[_0x1a6ccb(0xce)]??createMockTDX();return{'options':_0x2b7c90,'args':_0x24bacf?.[_0x1a6ccb(0xcb)]??[],'tdx':_0x54ee1c};}function a205_0x16fc(){const _0x2da043=['query','tdx','56mMFTHK','user','6804730fwwWSU','table','us01','1372383QauGrS','DEBUG','reset','ERROR','map','7WcfwdB','28146vUwrSy','error','api','2gsixiR','116854jXqEDg','options','30000','journey','push','1430456eYufIj','625820uvUglX','log','warn','856206hGpoHT','test-api-key-id/test-api-key-secret','args','join'];a205_0x16fc=function(){return _0x2da043;};return a205_0x16fc();}export function captureConsole(){const _0x23a3aa=a205_0x4d12,_0x298172=[],_0x17193d=[],_0x453335=console['log'],_0x178d48=console['error'],_0x568371=console[_0x23a3aa(0xc8)];return console[_0x23a3aa(0xc7)]=(..._0x174af7)=>{const _0x4e6092=_0x23a3aa;_0x298172['push'](_0x174af7[_0x4e6092(0xba)](String)[_0x4e6092(0xcc)]('\x20'));},console[_0x23a3aa(0xbd)]=(..._0x214bf4)=>{const _0x555550=_0x23a3aa;_0x17193d[_0x555550(0xc4)](_0x214bf4[_0x555550(0xba)](String)['join']('\x20'));},console[_0x23a3aa(0xc8)]=(..._0x3ceb96)=>{const _0x5c5480=_0x23a3aa;_0x17193d[_0x5c5480(0xc4)](_0x3ceb96[_0x5c5480(0xba)](String)[_0x5c5480(0xcc)]('\x20'));},{'stdout':_0x298172,'stderr':_0x17193d,'restore':()=>{const _0x38a728=_0x23a3aa;console[_0x38a728(0xc7)]=_0x453335,console['error']=_0x178d48,console[_0x38a728(0xc8)]=_0x568371;}};}
@@ -1 +1 @@
1
- const a206_0xbd372a=a206_0x3ef4;(function(_0x34208,_0x5ac5ef){const _0x22fd39=a206_0x3ef4,_0xfc41d8=_0x34208();while(!![]){try{const _0x4ff1e0=-parseInt(_0x22fd39(0x16b))/0x1*(parseInt(_0x22fd39(0x196))/0x2)+-parseInt(_0x22fd39(0x19e))/0x3*(-parseInt(_0x22fd39(0x172))/0x4)+parseInt(_0x22fd39(0x161))/0x5*(-parseInt(_0x22fd39(0x16e))/0x6)+-parseInt(_0x22fd39(0x14d))/0x7*(parseInt(_0x22fd39(0x164))/0x8)+parseInt(_0x22fd39(0x166))/0x9+parseInt(_0x22fd39(0x17f))/0xa*(parseInt(_0x22fd39(0x15d))/0xb)+parseInt(_0x22fd39(0x1b0))/0xc;if(_0x4ff1e0===_0x5ac5ef)break;else _0xfc41d8['push'](_0xfc41d8['shift']());}catch(_0x1f19df){_0xfc41d8['push'](_0xfc41d8['shift']());}}}(a206_0x137e,0xd4a54));export const fixtures={'database':{'basic':{'name':a206_0xbd372a(0x168),'count':0x5,'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x199),'permission':a206_0xbd372a(0x160)},'withTables':{'name':'production_db','count':0x64,'created_at':a206_0xbd372a(0x19f),'updated_at':a206_0xbd372a(0x14a),'permission':a206_0xbd372a(0x1ab)}},'table':{'basic':{'id':0x3039,'name':a206_0xbd372a(0x157),'type':a206_0xbd372a(0x1a2),'schema':JSON[a206_0xbd372a(0x158)]([['id',a206_0xbd372a(0x159)],['time',a206_0xbd372a(0x1b2)],['name',a206_0xbd372a(0x159)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0xbd372a(0x199)},'events':{'id':0x303a,'name':a206_0xbd372a(0x14b),'type':a206_0xbd372a(0x1a2),'schema':JSON[a206_0xbd372a(0x158)]([[a206_0xbd372a(0x1a9),a206_0xbd372a(0x159)],[a206_0xbd372a(0x17e),a206_0xbd372a(0x1b2)],['user_id',a206_0xbd372a(0x159)],[a206_0xbd372a(0x148),a206_0xbd372a(0x159)],[a206_0xbd372a(0x16c),a206_0xbd372a(0x187)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x18c)}},'parentSegment':{'basic':{'id':a206_0xbd372a(0x180),'name':a206_0xbd372a(0x156),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a206_0xbd372a(0x143),'master_table':{'database':'cdp_db','table':a206_0xbd372a(0x1a7)},'attributes':[{'name':a206_0xbd372a(0x1a5),'type':'string','key':!![]},{'name':a206_0xbd372a(0x1a0),'type':'string'},{'name':a206_0xbd372a(0x19c),'type':a206_0xbd372a(0x153)}],'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x147)},'withBehaviors':{'id':a206_0xbd372a(0x186),'name':a206_0xbd372a(0x177),'description':a206_0xbd372a(0x171),'status':'active','master_table':{'database':a206_0xbd372a(0x194),'table':'customers'},'behaviors':[{'name':a206_0xbd372a(0x1ae),'table':{'database':a206_0xbd372a(0x16a),'table':'purchases'},'join_key':'customer_id'},{'name':a206_0xbd372a(0x198),'table':{'database':a206_0xbd372a(0x16a),'table':a206_0xbd372a(0x173)},'join_key':a206_0xbd372a(0x1a5)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0xbd372a(0x147)}},'segment':{'basic':{'id':'cs-456789','name':a206_0xbd372a(0x142),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':'ps-123456','status':a206_0xbd372a(0x143),'rules':[{'type':a206_0xbd372a(0x1a6),'field':a206_0xbd372a(0x195),'operator':'TimeWithinPast','value':a206_0xbd372a(0x178)}],'count':0x1388,'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x147)},'withMultipleRules':{'id':'cs-111222','name':'High\x20Value\x20Active\x20Users','description':a206_0xbd372a(0x17a),'parent_segment_id':'ps-123456','status':'active','rules':[{'type':'attribute','field':a206_0xbd372a(0x195),'operator':a206_0xbd372a(0x146),'value':'30d'},{'type':a206_0xbd372a(0x1a6),'field':a206_0xbd372a(0x151),'operator':a206_0xbd372a(0x175),'value':0x3e8}],'count':0x5dc,'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x147)}},'journey':{'basic':{'id':a206_0xbd372a(0x170),'name':a206_0xbd372a(0x18e),'description':a206_0xbd372a(0x190),'status':a206_0xbd372a(0x150),'version':0x1,'steps':[{'id':a206_0xbd372a(0x152),'type':'wait','duration':'1d'},{'id':a206_0xbd372a(0x193),'type':a206_0xbd372a(0x162),'activation_id':a206_0xbd372a(0x18d)}],'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x147)},'withDecision':{'id':'j-def456','name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':'active','version':0x2,'steps':[{'id':'step-1','type':a206_0xbd372a(0x176),'segment_id':a206_0xbd372a(0x1a8),'yes_path':a206_0xbd372a(0x193),'no_path':a206_0xbd372a(0x18a)},{'id':a206_0xbd372a(0x193),'type':a206_0xbd372a(0x162),'activation_id':'act-email'},{'id':a206_0xbd372a(0x18a),'type':a206_0xbd372a(0x17b)}],'created_at':a206_0xbd372a(0x199),'updated_at':a206_0xbd372a(0x147)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a206_0xbd372a(0x19d),'type':'varchar'},{'name':'count','type':a206_0xbd372a(0x15b)}],'data':[[a206_0xbd372a(0x1b3),a206_0xbd372a(0x19a),0x64],[a206_0xbd372a(0x18b),a206_0xbd372a(0x1af),0xc8],[a206_0xbd372a(0x169),a206_0xbd372a(0x149),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a206_0xbd372a(0x144)}],'data':[]},'singleRow':{'schema':[{'name':a206_0xbd372a(0x181),'type':a206_0xbd372a(0x15b)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a206_0xbd372a(0x174),'email':a206_0xbd372a(0x191),'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a206_0xbd372a(0x1aa),'email':a206_0xbd372a(0x1b4),'created_at':a206_0xbd372a(0x197),'updated_at':a206_0xbd372a(0x147),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0xbd372a(0x154),'database':a206_0xbd372a(0x168),'status':'success','query':a206_0xbd372a(0x14c),'start_at':a206_0xbd372a(0x155),'end_at':a206_0xbd372a(0x184),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a206_0xbd372a(0x168),'status':a206_0xbd372a(0x163),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a206_0xbd372a(0x168),'status':a206_0xbd372a(0x145),'query':a206_0xbd372a(0x1ad),'start_at':a206_0xbd372a(0x185),'end_at':a206_0xbd372a(0x15e),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a206_0xbd372a(0x18f),'name':a206_0xbd372a(0x1a3),'project':a206_0xbd372a(0x192),'revision':'abc123','timezone':a206_0xbd372a(0x182),'schedule':{'cron':a206_0xbd372a(0x183)}},'withSessions':{'id':'wf-67890','name':a206_0xbd372a(0x1a4),'project':a206_0xbd372a(0x17d),'revision':a206_0xbd372a(0x1a1),'timezone':a206_0xbd372a(0x179),'schedule':{'cron':a206_0xbd372a(0x15f)},'last_session':{'id':'sess-111','status':'success','started_at':'2024-01-15T09:00:00Z','finished_at':a206_0xbd372a(0x14f)}}},'apiError':{'unauthorized':{'errors':{'error':a206_0xbd372a(0x165),'message':a206_0xbd372a(0x165),'severity':a206_0xbd372a(0x145),'status_code':0x191}},'notFound':{'errors':{'error':a206_0xbd372a(0x1b1),'message':a206_0xbd372a(0x1ac),'severity':a206_0xbd372a(0x145),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a206_0xbd372a(0x189),'status':0x193,'detail':a206_0xbd372a(0x19b),'instance':a206_0xbd372a(0x14e)}}};function a206_0x3ef4(_0x248892,_0x2b9559){_0x248892=_0x248892-0x142;const _0x137e56=a206_0x137e();let _0x3ef472=_0x137e56[_0x248892];return _0x3ef472;}export function createDatabase(_0x5c8df8){const _0x284fc1=a206_0xbd372a;return{...fixtures['database'][_0x284fc1(0x15a)],..._0x5c8df8};}function a206_0x137e(){const _0x573754=['last_login','1685206HqwdCl','2023-01-01T00:00:00Z','page_views','2024-01-01T00:00:00Z','Alice','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','created_at','name','828627QESkMK','2023-06-15T10:30:00Z','email','def456','log','daily_etl','hourly_sync','customer_id','attribute','unified_customers','cs-456789','event_id','Admin\x20User','full_access','The\x20requested\x20resource\x20does\x20not\x20exist','SELECT\x20*\x20FROM\x20nonexistent_table','purchases','Bob','11429424RFqHMv','Resource\x20not\x20found','long','user-1','admin@example.com','Active\x20Users','active','varchar','error','TimeWithinPast','2024-01-15T00:00:00Z','event_type','Charlie','2024-01-15T08:00:00Z','events','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','163961yrvZYC','/v3/database/list','2024-01-15T09:05:00Z','draft','lifetime_value','step-1','timestamp','presto','2024-01-15T10:00:00Z','Test\x20Parent\x20Segment','users','stringify','string','basic','bigint','table','33jauBoT','2024-01-15T10:10:01Z','0\x20*\x20*\x20*\x20*','administrator','15YcDWfq','activation','running','152pCPGqL','Invalid\x20API\x20key','6262749HqjVVG','journey','test_db','user-3','events_db','1UhEWTx','properties','parentSegment','1344918KPcejs','completed','j-abc123','Parent\x20segment\x20with\x20behavioral\x20data','4sHskww','pageviews','Test\x20User','Greater','decision_point','Customers\x20with\x20Behaviors','30d','America/Los_Angeles','Active\x20users\x20with\x20high\x20lifetime\x20value','end','workflow','data_sync','time','3021910fdKALX','ps-123456','total','UTC','0\x200\x20*\x20*\x20*','2024-01-15T10:00:05Z','2024-01-15T10:10:00Z','ps-789012','map<string,string>','segment','Forbidden','step-3','user-2','2024-01-15T12:00:00Z','act-123','Welcome\x20Journey','wf-12345','Onboarding\x20journey\x20for\x20new\x20users','test@example.com','data_pipeline','step-2','cdp_db'];a206_0x137e=function(){return _0x573754;};return a206_0x137e();}export function createTable(_0x4df39b){const _0x3fbbd3=a206_0xbd372a;return{...fixtures[_0x3fbbd3(0x15c)][_0x3fbbd3(0x15a)],..._0x4df39b};}export function createParentSegment(_0x2b2da4){const _0x5ebca8=a206_0xbd372a;return{...fixtures[_0x5ebca8(0x16d)][_0x5ebca8(0x15a)],..._0x2b2da4};}export function createSegment(_0x12a4a9){const _0x13820a=a206_0xbd372a;return{...fixtures[_0x13820a(0x188)][_0x13820a(0x15a)],..._0x12a4a9};}export function createJourney(_0x1d081b){const _0x2909dd=a206_0xbd372a;return{...fixtures[_0x2909dd(0x167)][_0x2909dd(0x15a)],..._0x1d081b};}export function createQueryResult(_0x4d29b6){const _0x5e8f76=a206_0xbd372a;return{...fixtures['queryResult'][_0x5e8f76(0x15a)],..._0x4d29b6};}export function createUser(_0x3ddc2b){return{...fixtures['user']['basic'],..._0x3ddc2b};}export function createJob(_0x312604){const _0x11591f=a206_0xbd372a;return{...fixtures['job'][_0x11591f(0x16f)],..._0x312604};}export function createWorkflow(_0xf56b01){const _0x5588e5=a206_0xbd372a;return{...fixtures[_0x5588e5(0x17c)][_0x5588e5(0x15a)],..._0xf56b01};}
1
+ const a206_0x1db324=a206_0x56d2;(function(_0x4fb3ba,_0x32e472){const _0x572abc=a206_0x56d2,_0x41b184=_0x4fb3ba();while(!![]){try{const _0x516b41=-parseInt(_0x572abc(0xb4))/0x1*(parseInt(_0x572abc(0xdb))/0x2)+parseInt(_0x572abc(0xc8))/0x3*(-parseInt(_0x572abc(0x98))/0x4)+-parseInt(_0x572abc(0x86))/0x5+-parseInt(_0x572abc(0xa1))/0x6+-parseInt(_0x572abc(0xa4))/0x7*(-parseInt(_0x572abc(0xbd))/0x8)+-parseInt(_0x572abc(0xdc))/0x9*(parseInt(_0x572abc(0xba))/0xa)+parseInt(_0x572abc(0xaa))/0xb;if(_0x516b41===_0x32e472)break;else _0x41b184['push'](_0x41b184['shift']());}catch(_0x5a44e4){_0x41b184['push'](_0x41b184['shift']());}}}(a206_0x3363,0x52b95));export const fixtures={'database':{'basic':{'name':a206_0x1db324(0xb1),'count':0x5,'created_at':a206_0x1db324(0x88),'updated_at':'2024-01-01T00:00:00Z','permission':'administrator'},'withTables':{'name':'production_db','count':0x64,'created_at':a206_0x1db324(0xb6),'updated_at':a206_0x1db324(0xb8),'permission':a206_0x1db324(0xbe)}},'table':{'basic':{'id':0x3039,'name':a206_0x1db324(0x8a),'type':a206_0x1db324(0xb3),'schema':JSON[a206_0x1db324(0xca)]([['id',a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xe8),a206_0x1db324(0x85)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0x88)},'events':{'id':0x303a,'name':a206_0x1db324(0x9d),'type':'log','schema':JSON['stringify']([[a206_0x1db324(0x8c),a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xa8),a206_0x1db324(0x85)],['event_type',a206_0x1db324(0x85)],[a206_0x1db324(0xd8),a206_0x1db324(0xa5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xa7)}},'parentSegment':{'basic':{'id':'ps-123456','name':'Test\x20Parent\x20Segment','description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':a206_0x1db324(0xc0),'table':a206_0x1db324(0x9c)},'attributes':[{'name':'customer_id','type':a206_0x1db324(0x85),'key':!![]},{'name':'email','type':a206_0x1db324(0x85)},{'name':'created_at','type':'timestamp'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withBehaviors':{'id':a206_0x1db324(0xe2),'name':a206_0x1db324(0x84),'description':a206_0x1db324(0x91),'status':a206_0x1db324(0xac),'master_table':{'database':a206_0x1db324(0xc0),'table':'customers'},'behaviors':[{'name':a206_0x1db324(0x8d),'table':{'database':a206_0x1db324(0xc4),'table':a206_0x1db324(0x8d)},'join_key':'customer_id'},{'name':a206_0x1db324(0x87),'table':{'database':a206_0x1db324(0xc4),'table':'pageviews'},'join_key':'customer_id'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'segment':{'basic':{'id':a206_0x1db324(0xe5),'name':a206_0x1db324(0x89),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xb2),'operator':a206_0x1db324(0xb9),'value':'30d'}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a206_0x1db324(0x7e),'name':'High\x20Value\x20Active\x20Users','description':a206_0x1db324(0x90),'parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':'last_login','operator':a206_0x1db324(0xb9),'value':a206_0x1db324(0xa2)},{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xab),'operator':a206_0x1db324(0xcc),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb)}},'journey':{'basic':{'id':a206_0x1db324(0x7d),'name':a206_0x1db324(0xcd),'description':a206_0x1db324(0xa6),'status':a206_0x1db324(0xd0),'version':0x1,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0x96),'duration':'1d'},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xb7)}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withDecision':{'id':'j-def456','name':'Purchase\x20Reminder','description':a206_0x1db324(0xd9),'status':'active','version':0x2,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0xce),'segment_id':'cs-456789','yes_path':'step-2','no_path':a206_0x1db324(0xae)},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xc3)},{'id':a206_0x1db324(0xae),'type':'end'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xcb),'type':'bigint'}],'data':[[a206_0x1db324(0xda),a206_0x1db324(0xdf),0x64],[a206_0x1db324(0x7f),a206_0x1db324(0xd4),0xc8],[a206_0x1db324(0xb5),a206_0x1db324(0xd2),0x96]]},'empty':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)}],'data':[]},'singleRow':{'schema':[{'name':a206_0x1db324(0xaf),'type':a206_0x1db324(0x8f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb),'administrator':![]},'admin':{'id':0x1,'name':a206_0x1db324(0xdd),'email':a206_0x1db324(0xc6),'created_at':a206_0x1db324(0x80),'updated_at':a206_0x1db324(0xbb),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xa0),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a206_0x1db324(0xe0),'end_at':a206_0x1db324(0x82),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xd3),'query':a206_0x1db324(0x9e),'start_at':a206_0x1db324(0xd6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xc2),'query':a206_0x1db324(0x9f),'start_at':a206_0x1db324(0x9a),'end_at':a206_0x1db324(0x94),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a206_0x1db324(0xd5),'revision':a206_0x1db324(0xe3),'timezone':a206_0x1db324(0xcf),'schedule':{'cron':a206_0x1db324(0xad)}},'withSessions':{'id':'wf-67890','name':a206_0x1db324(0xe6),'project':a206_0x1db324(0xde),'revision':'def456','timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a206_0x1db324(0xa0),'started_at':'2024-01-15T09:00:00Z','finished_at':a206_0x1db324(0x81)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a206_0x1db324(0xc2),'status_code':0x191}},'notFound':{'errors':{'error':a206_0x1db324(0x93),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a206_0x1db324(0xa3)},'rfc9457':{'type':a206_0x1db324(0xe7),'title':a206_0x1db324(0xa9),'status':0x193,'detail':a206_0x1db324(0xe1),'instance':a206_0x1db324(0x97)}}};export function createDatabase(_0x1240a2){const _0x4d561a=a206_0x1db324;return{...fixtures[_0x4d561a(0x8e)]['basic'],..._0x1240a2};}export function createTable(_0x4991c4){const _0x495220=a206_0x1db324;return{...fixtures['table'][_0x495220(0x83)],..._0x4991c4};}export function createParentSegment(_0x51cc5c){const _0x497a6c=a206_0x1db324;return{...fixtures[_0x497a6c(0xc5)][_0x497a6c(0x83)],..._0x51cc5c};}export function createSegment(_0x3113f1){const _0x50e42c=a206_0x1db324;return{...fixtures[_0x50e42c(0xe4)][_0x50e42c(0x83)],..._0x3113f1};}export function createJourney(_0x114666){const _0x5c2375=a206_0x1db324;return{...fixtures[_0x5c2375(0x92)][_0x5c2375(0x83)],..._0x114666};}export function createQueryResult(_0x1f20d4){const _0x14c773=a206_0x1db324;return{...fixtures[_0x14c773(0xb0)]['basic'],..._0x1f20d4};}export function createUser(_0x2804ea){const _0x4ae02b=a206_0x1db324;return{...fixtures['user'][_0x4ae02b(0x83)],..._0x2804ea};}function a206_0x3363(){const _0x450a1b=['Active\x20Users','users','presto','event_id','purchases','database','bigint','Active\x20users\x20with\x20high\x20lifetime\x20value','Parent\x20segment\x20with\x20behavioral\x20data','journey','Resource\x20not\x20found','2024-01-15T10:10:01Z','attribute','wait','/v3/database/list','2988agsHBZ','long','2024-01-15T10:10:00Z','activation','unified_customers','events','SELECT\x20COUNT(*)\x20FROM\x20events','SELECT\x20*\x20FROM\x20nonexistent_table','success','2403282mQGZxw','30d','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','7nyUQnk','map<string,string>','Onboarding\x20journey\x20for\x20new\x20users','2024-01-15T12:00:00Z','user_id','Forbidden','12956460SGUxcu','lifetime_value','active','0\x200\x20*\x20*\x20*','step-3','total','queryResult','test_db','last_login','log','1Egkolz','user-3','2023-06-15T10:30:00Z','act-123','2024-01-15T08:00:00Z','TimeWithinPast','100LVwOjF','2024-01-15T00:00:00Z','workflow','2097224avmSgI','full_access','step-2','cdp_db','step-1','error','act-email','events_db','parentSegment','admin@example.com','time','330LZLehj','ps-123456','stringify','count','Greater','Welcome\x20Journey','decision_point','UTC','draft','completed','Charlie','running','Bob','data_pipeline','2024-01-15T10:05:00Z','varchar','properties','Journey\x20with\x20decision\x20point','user-1','64122FhFBfJ','179199qhNyYL','Admin\x20User','data_sync','Alice','2024-01-15T10:00:00Z','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-789012','abc123','segment','cs-456789','hourly_sync','https://api.treasuredata.com/errors/forbidden','name','j-abc123','cs-111222','user-2','2023-01-01T00:00:00Z','2024-01-15T09:05:00Z','2024-01-15T10:00:05Z','basic','Customers\x20with\x20Behaviors','string','1936440pdkqaj','page_views','2024-01-01T00:00:00Z'];a206_0x3363=function(){return _0x450a1b;};return a206_0x3363();}function a206_0x56d2(_0x589e96,_0x542865){_0x589e96=_0x589e96-0x7d;const _0x336359=a206_0x3363();let _0x56d2c3=_0x336359[_0x589e96];return _0x56d2c3;}export function createJob(_0x45e60e){const _0x1f5bb6=a206_0x1db324;return{...fixtures['job'][_0x1f5bb6(0xd1)],..._0x45e60e};}export function createWorkflow(_0x33ee08){const _0x423faf=a206_0x1db324;return{...fixtures[_0x423faf(0xbc)][_0x423faf(0x83)],..._0x33ee08};}
@@ -1 +1 @@
1
- const a207_0x4399f7=a207_0x34b6;function a207_0x34b6(_0x3cd3b6,_0x35e241){_0x3cd3b6=_0x3cd3b6-0x17d;const _0x1c0082=a207_0x1c00();let _0x34b648=_0x1c0082[_0x3cd3b6];return _0x34b648;}(function(_0x14a37b,_0x51c2c5){const _0xbad07=a207_0x34b6,_0x337a9e=_0x14a37b();while(!![]){try{const _0x2ba907=-parseInt(_0xbad07(0x18d))/0x1*(parseInt(_0xbad07(0x1ad))/0x2)+parseInt(_0xbad07(0x1be))/0x3+-parseInt(_0xbad07(0x1a1))/0x4*(parseInt(_0xbad07(0x1cc))/0x5)+parseInt(_0xbad07(0x17d))/0x6*(-parseInt(_0xbad07(0x180))/0x7)+-parseInt(_0xbad07(0x18f))/0x8+parseInt(_0xbad07(0x185))/0x9+parseInt(_0xbad07(0x1af))/0xa*(parseInt(_0xbad07(0x1a4))/0xb);if(_0x2ba907===_0x51c2c5)break;else _0x337a9e['push'](_0x337a9e['shift']());}catch(_0x419199){_0x337a9e['push'](_0x337a9e['shift']());}}}(a207_0x1c00,0xde5db));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x4399f7(0x1c3)]=[];['requests']=[];[a207_0x4399f7(0x1c5)]=null;['REST'](_0x4de1b0,_0x2394c0){return _0x331117=>{const _0x2842c8=a207_0x34b6;if(_0x331117['method'][_0x2842c8(0x19c)]()!==_0x4de1b0[_0x2842c8(0x19c)]())return![];const _0x5cdf65=new URL(_0x331117[_0x2842c8(0x1b9)]);if(typeof _0x2394c0===_0x2842c8(0x17e))return _0x5cdf65[_0x2842c8(0x1bc)]===_0x2394c0||_0x5cdf65[_0x2842c8(0x1bc)][_0x2842c8(0x1bf)](_0x2394c0);return _0x2394c0[_0x2842c8(0x1ab)](_0x5cdf65[_0x2842c8(0x1bc)]);};}[a207_0x4399f7(0x1ae)](_0xcf294,_0x4e3129){return _0x3034ef=>{const _0x1a9777=a207_0x34b6;if(!_0xcf294(_0x3034ef))return![];const _0x12334f=new URL(_0x3034ef[_0x1a9777(0x1b9)]);return Object['entries'](_0x4e3129)['every'](([_0x41dd48,_0x4053f4])=>_0x12334f[_0x1a9777(0x19f)][_0x1a9777(0x1b6)](_0x41dd48)===_0x4053f4);};}[a207_0x4399f7(0x197)](_0x43d84f,_0x3a6708){return _0x302659=>{const _0x5896ce=a207_0x34b6;if(!_0x43d84f(_0x302659))return![];if(typeof _0x3a6708===_0x5896ce(0x19e))return _0x3a6708(_0x302659['body']);return JSON[_0x5896ce(0x1b2)](_0x302659[_0x5896ce(0x1c4)])===JSON[_0x5896ce(0x1b2)](_0x3a6708);};}[a207_0x4399f7(0x1b4)](_0x4c478e,_0x50f31f){return _0x658866=>{const _0x3ff2a6=a207_0x34b6;if(!_0x4c478e(_0x658866))return![];const _0x488945=new URL(_0x658866[_0x3ff2a6(0x1b9)]);return _0x488945[_0x3ff2a6(0x1bd)]===_0x50f31f;};}[a207_0x4399f7(0x1c9)](_0x15f71c,_0xd033ef,_0x47a041){const _0x356c81=a207_0x4399f7;this[_0x356c81(0x1c3)][_0x356c81(0x1a9)]({'matcher':_0x15f71c,'responder':_0xd033ef,'matched':![],'matchCount':0x0,'stack':new Error()[_0x356c81(0x194)]??'','description':_0x47a041?.[_0x356c81(0x1ac)]});}[a207_0x4399f7(0x1b0)](_0x2b73c8,_0x100faa,_0x136efb){const _0x307c3a=a207_0x4399f7,_0x243b96=_0xfe495e=>{const _0x2e5852=a207_0x34b6;return _0x136efb(_0xfe495e[_0x2e5852(0x1c4)],_0xfe495e),_0x100faa(_0xfe495e);};this[_0x307c3a(0x1c9)](_0x2b73c8,_0x243b96);}static[a207_0x4399f7(0x19b)](_0x4301ca,_0xc72bc=0xc8){return()=>new Response(JSON['stringify'](_0x4301ca),{'status':_0xc72bc,'headers':{'Content-Type':'application/json'}});}static[a207_0x4399f7(0x1c7)](_0x28ea67,_0x18e7fd,_0x392741='simple'){return()=>{const _0x4033d2=a207_0x34b6;let _0x5c56ee;switch(_0x392741){case _0x4033d2(0x1b1):_0x5c56ee={'errors':{'error':_0x18e7fd,'message':_0x18e7fd,'severity':'error','status_code':_0x28ea67}};break;case _0x4033d2(0x1b7):_0x5c56ee={'type':_0x4033d2(0x196)+_0x28ea67,'title':HTTPMockRegistry[_0x4033d2(0x1c6)](_0x28ea67),'status':_0x28ea67,'detail':_0x18e7fd};break;default:_0x5c56ee={'error':_0x18e7fd};}return new Response(JSON[_0x4033d2(0x1b2)](_0x5c56ee),{'status':_0x28ea67,'headers':{'Content-Type':_0x4033d2(0x187)}});};}static[a207_0x4399f7(0x18e)](_0x33d4e8,_0x431558,_0x41cc0a=0xc8){const _0x14c530=a207_0x4399f7;return()=>new Response(JSON['stringify'](_0x33d4e8),{'status':_0x41cc0a,'headers':{'Content-Type':_0x14c530(0x187),..._0x431558}});}static[a207_0x4399f7(0x188)](_0xc1e52c,_0x169933=0xc8){const _0x521393=a207_0x4399f7;return()=>new Response(_0xc1e52c,{'status':_0x169933,'headers':{'Content-Type':_0x521393(0x1a7)}});}static['networkError'](_0x1fef20){return()=>{throw new Error(_0x1fef20);};}[a207_0x4399f7(0x1cd)](){const _0xb62bf0=a207_0x4399f7;return this[_0xb62bf0(0x1c5)]=vi['fn']()[_0xb62bf0(0x191)](async(_0x5bd431,_0x1fe25d)=>{const _0xb166d=_0xb62bf0,_0x51cce4=this['parseRequest'](_0x5bd431,_0x1fe25d);this['requests']['push'](_0x51cce4);for(const _0x4106f5 of this[_0xb166d(0x1c3)]){if(_0x4106f5[_0xb166d(0x184)](_0x51cce4))return _0x4106f5[_0xb166d(0x18b)]=!![],_0x4106f5['matchCount']++,_0x4106f5['responder'](_0x51cce4);}const _0x4ab917=this[_0xb166d(0x1c3)][_0xb166d(0x1c1)]((_0x394c84,_0x4778c0)=>'\x20\x20'+(_0x4778c0+0x1)+'.\x20'+(_0x394c84[_0xb166d(0x1ac)]??_0xb166d(0x18c)))['join']('\x0a');throw new Error(_0xb166d(0x199)+_0x51cce4[_0xb166d(0x1c2)]+'\x20'+_0x51cce4[_0xb166d(0x1b9)]+'\x0a'+(_0xb166d(0x1ba)+JSON[_0xb166d(0x1b2)](_0x51cce4[_0xb166d(0x1c4)])+'\x0a')+(_0xb166d(0x1b5)+(_0x4ab917||_0xb166d(0x182))));}),this[_0xb62bf0(0x1c5)];}[a207_0x4399f7(0x1cb)](_0x42e3ed,_0x725cb1){const _0x5f138e=a207_0x4399f7,_0x195e76={};if(_0x725cb1?.[_0x5f138e(0x192)]){if(_0x725cb1[_0x5f138e(0x192)]instanceof Headers)_0x725cb1[_0x5f138e(0x192)]['forEach']((_0x375415,_0x17f78f)=>{const _0x5ec153=_0x5f138e;_0x195e76[_0x17f78f[_0x5ec153(0x181)]()]=_0x375415;});else{if(Array[_0x5f138e(0x1c8)](_0x725cb1[_0x5f138e(0x192)]))for(const [_0x28bc4d,_0x5d9117]of _0x725cb1[_0x5f138e(0x192)]){_0x195e76[_0x28bc4d[_0x5f138e(0x181)]()]=_0x5d9117;}else for(const [_0x20331a,_0xf4aca2]of Object[_0x5f138e(0x1aa)](_0x725cb1[_0x5f138e(0x192)])){_0xf4aca2!==undefined&&(_0x195e76[_0x20331a['toLowerCase']()]=_0xf4aca2);}}}let _0x56b4b0;if(_0x725cb1?.[_0x5f138e(0x1c4)])try{_0x56b4b0=JSON['parse'](_0x725cb1['body']);}catch{_0x56b4b0=_0x725cb1['body'];}return{'method':_0x725cb1?.[_0x5f138e(0x1c2)]??_0x5f138e(0x1a8),'url':_0x42e3ed,'headers':_0x195e76,'body':_0x56b4b0};}[a207_0x4399f7(0x17f)](_0x70e06){const _0x26dd4f=a207_0x4399f7,_0x41c8c9=this['stubs'][_0x26dd4f(0x193)](_0x28eff3=>!_0x28eff3[_0x26dd4f(0x18b)]);if(_0x41c8c9[_0x26dd4f(0x1a5)]>0x0){const _0x537b47=_0x41c8c9[_0x26dd4f(0x1c1)](_0x424e02=>{const _0x44b94a=_0x26dd4f,_0x7d0e41=_0x424e02['description']?'\x20('+_0x424e02['description']+')':'',_0x1ca4c0=_0x424e02[_0x44b94a(0x194)]['split']('\x0a')[_0x44b94a(0x18a)](0x2,0x5)[_0x44b94a(0x183)]('\x0a');return'Unmatched\x20stub'+_0x7d0e41+_0x44b94a(0x1b8)+_0x1ca4c0;});_0x70e06[_0x26dd4f(0x189)](_0x41c8c9[_0x26dd4f(0x1a5)]+_0x26dd4f(0x1a2)+_0x537b47['join']('\x0a\x0a'));}}[a207_0x4399f7(0x195)](){const _0x2207ce=a207_0x4399f7;return[...this[_0x2207ce(0x1a3)]];}[a207_0x4399f7(0x1a6)](){const _0x481a85=a207_0x4399f7;return this[_0x481a85(0x1a3)][this[_0x481a85(0x1a3)][_0x481a85(0x1a5)]-0x1];}[a207_0x4399f7(0x19d)](_0x4f79c8,_0x5b336b){const _0x208a04=a207_0x4399f7;return this[_0x208a04(0x1a3)][_0x208a04(0x1ca)](_0x8920f4=>{const _0x3e6a59=_0x208a04;if(_0x8920f4[_0x3e6a59(0x1c2)]['toUpperCase']()!==_0x4f79c8['toUpperCase']())return![];if(typeof _0x5b336b===_0x3e6a59(0x17e))return _0x8920f4[_0x3e6a59(0x1b9)][_0x3e6a59(0x1bf)](_0x5b336b);return _0x5b336b['test'](_0x8920f4[_0x3e6a59(0x1b9)]);});}['getMatchCount'](_0x450cfb){const _0x1948a5=a207_0x4399f7;return this[_0x1948a5(0x1c3)][_0x450cfb]?.['matchCount']??0x0;}[a207_0x4399f7(0x1b3)](){const _0x2ba360=a207_0x4399f7;this['stubs']=[],this[_0x2ba360(0x1a3)]=[],this['fetchMock']=null;}static[a207_0x4399f7(0x1c6)](_0x33a400){const _0x5941d4=a207_0x4399f7,_0x5d82e6={0xc8:'OK',0xc9:'Created',0xcc:_0x5941d4(0x1a0),0x190:_0x5941d4(0x19a),0x191:'Unauthorized',0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x5941d4(0x198),0x1a6:_0x5941d4(0x1bb),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x5941d4(0x186),0x1f6:'Bad\x20Gateway',0x1f7:_0x5941d4(0x1c0)};return _0x5d82e6[_0x33a400]??_0x5941d4(0x190);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a207_0x1c00(){const _0x3402f9=['matched','unnamed\x20stub','12xiwKfn','jsonResponseWithHeaders','4789256vMXWpR','Unknown','mockImplementation','headers','filter','stack','getRequests','https://api.treasuredata.com/errors/','withBody','Conflict','No\x20stub\x20matched\x20request:\x20','Bad\x20Request','jsonResponse','toUpperCase','wasCalled','function','searchParams','No\x20Content','4OpzoZb','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','requests','2148619iadshA','length','getLastRequest','text/plain','GET','push','entries','test','description','34772OfypTe','withQuery','40tFJAqc','registerWithInspector','td-api','stringify','reset','withHost','Registered\x20stubs:\x0a','get','rfc9457','\x20registered\x20at:\x0a','url','Request\x20body:\x20','Unprocessable\x20Entity','pathname','host','1802289FgDaiv','includes','Service\x20Unavailable','map','method','stubs','body','fetchMock','getStatusText','errorResponse','isArray','register','some','parseRequest','3169055ghKWtf','createFetch','1682718IEkTBA','string','verify','7agqQit','toLowerCase','\x20\x20(none)','join','matcher','11252565EskHWA','Internal\x20Server\x20Error','application/json','textResponse','fail','slice'];a207_0x1c00=function(){return _0x3402f9;};return a207_0x1c00();}
1
+ const a207_0x51cf70=a207_0x2683;function a207_0x41d9(){const _0x16fdbf=['filter','4416TOejMs','registerWithInspector','withQuery','jsonResponse','matched','reset','withBody','stack','text/plain','host','push','379612OMqQhk','https://api.treasuredata.com/errors/','Too\x20Many\x20Requests','Unknown','register','Internal\x20Server\x20Error','createFetch','117nqiDLy','\x20registered\x20at:\x0a','stubs','simple','join','\x20\x20(none)','isArray','4249qdwpKE','Bad\x20Request','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','fail','1474790uWpXmh','fetchMock','networkError','unnamed\x20stub','toLowerCase','pathname','parseRequest','searchParams','responder','url','function','withHost','split','wasCalled','entries','getStatusText','string','Service\x20Unavailable','Forbidden','1090fvNaLj','rfc9457','map','td-api','3882sgvIcw','No\x20stub\x20matched\x20request:\x20','description','No\x20Content','includes','Unprocessable\x20Entity','mockImplementation','Created','toUpperCase','jsonResponseWithHeaders','error','Unmatched\x20stub','textResponse','35649XarJZS','application/json','method','test','body','headers','stringify','Request\x20body:\x20','136504lOEavk','matcher','807728uYYEPA','length','matchCount','Unauthorized','errorResponse','parse','Conflict','getRequests','requests'];a207_0x41d9=function(){return _0x16fdbf;};return a207_0x41d9();}(function(_0x1a6cc7,_0x40c779){const _0x166025=a207_0x2683,_0x53c51f=_0x1a6cc7();while(!![]){try{const _0x4bb401=parseInt(_0x166025(0x1b0))/0x1+parseInt(_0x166025(0x184))/0x2*(-parseInt(_0x166025(0x1b7))/0x3)+-parseInt(_0x166025(0x19b))/0x4+parseInt(_0x166025(0x1c2))/0x5+parseInt(_0x166025(0x1a5))/0x6*(-parseInt(_0x166025(0x1be))/0x7)+-parseInt(_0x166025(0x199))/0x8+-parseInt(_0x166025(0x191))/0x9*(-parseInt(_0x166025(0x180))/0xa);if(_0x4bb401===_0x40c779)break;else _0x53c51f['push'](_0x53c51f['shift']());}catch(_0x35d02b){_0x53c51f['push'](_0x53c51f['shift']());}}}(a207_0x41d9,0x59149));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x51cf70(0x1b9)]=[];[a207_0x51cf70(0x1a3)]=[];[a207_0x51cf70(0x1c3)]=null;['REST'](_0x41a3b9,_0x3ad9e0){return _0x3702e6=>{const _0xf0ecc5=a207_0x2683;if(_0x3702e6[_0xf0ecc5(0x193)][_0xf0ecc5(0x18c)]()!==_0x41a3b9[_0xf0ecc5(0x18c)]())return![];const _0x5af9ae=new URL(_0x3702e6[_0xf0ecc5(0x176)]);if(typeof _0x3ad9e0===_0xf0ecc5(0x17d))return _0x5af9ae[_0xf0ecc5(0x1c7)]===_0x3ad9e0||_0x5af9ae[_0xf0ecc5(0x1c7)][_0xf0ecc5(0x188)](_0x3ad9e0);return _0x3ad9e0[_0xf0ecc5(0x194)](_0x5af9ae[_0xf0ecc5(0x1c7)]);};}[a207_0x51cf70(0x1a7)](_0x1bec76,_0x2125bb){return _0x2a6b24=>{const _0x296b7f=a207_0x2683;if(!_0x1bec76(_0x2a6b24))return![];const _0x448e93=new URL(_0x2a6b24['url']);return Object['entries'](_0x2125bb)['every'](([_0x5e6e27,_0x382553])=>_0x448e93[_0x296b7f(0x174)]['get'](_0x5e6e27)===_0x382553);};}[a207_0x51cf70(0x1ab)](_0x1e4d0b,_0x204504){return _0x291220=>{const _0x23f2a4=a207_0x2683;if(!_0x1e4d0b(_0x291220))return![];if(typeof _0x204504===_0x23f2a4(0x177))return _0x204504(_0x291220[_0x23f2a4(0x195)]);return JSON[_0x23f2a4(0x197)](_0x291220['body'])===JSON[_0x23f2a4(0x197)](_0x204504);};}[a207_0x51cf70(0x178)](_0x39e994,_0x450b1e){return _0x2991ee=>{const _0x219966=a207_0x2683;if(!_0x39e994(_0x2991ee))return![];const _0x5d9645=new URL(_0x2991ee[_0x219966(0x176)]);return _0x5d9645[_0x219966(0x1ae)]===_0x450b1e;};}[a207_0x51cf70(0x1b4)](_0x3b18e0,_0x49968a,_0x5ff148){const _0x1b77ec=a207_0x51cf70;this['stubs'][_0x1b77ec(0x1af)]({'matcher':_0x3b18e0,'responder':_0x49968a,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x5ff148?.[_0x1b77ec(0x186)]});}[a207_0x51cf70(0x1a6)](_0x3b26cb,_0x535faa,_0x3ea1d6){const _0x5691c6=a207_0x51cf70,_0x91a60f=_0x565c79=>{return _0x3ea1d6(_0x565c79['body'],_0x565c79),_0x535faa(_0x565c79);};this[_0x5691c6(0x1b4)](_0x3b26cb,_0x91a60f);}static[a207_0x51cf70(0x1a8)](_0x3adc72,_0x347d7b=0xc8){const _0x45435f=a207_0x51cf70;return()=>new Response(JSON[_0x45435f(0x197)](_0x3adc72),{'status':_0x347d7b,'headers':{'Content-Type':_0x45435f(0x192)}});}static[a207_0x51cf70(0x19f)](_0x395502,_0x1eb823,_0x27308c=a207_0x51cf70(0x1ba)){return()=>{const _0x5c7815=a207_0x2683;let _0x13cf15;switch(_0x27308c){case _0x5c7815(0x183):_0x13cf15={'errors':{'error':_0x1eb823,'message':_0x1eb823,'severity':_0x5c7815(0x18e),'status_code':_0x395502}};break;case _0x5c7815(0x181):_0x13cf15={'type':_0x5c7815(0x1b1)+_0x395502,'title':HTTPMockRegistry[_0x5c7815(0x17c)](_0x395502),'status':_0x395502,'detail':_0x1eb823};break;default:_0x13cf15={'error':_0x1eb823};}return new Response(JSON[_0x5c7815(0x197)](_0x13cf15),{'status':_0x395502,'headers':{'Content-Type':_0x5c7815(0x192)}});};}static[a207_0x51cf70(0x18d)](_0x2f18c7,_0xa97d22,_0x57f317=0xc8){const _0x5e1d50=a207_0x51cf70;return()=>new Response(JSON[_0x5e1d50(0x197)](_0x2f18c7),{'status':_0x57f317,'headers':{'Content-Type':_0x5e1d50(0x192),..._0xa97d22}});}static[a207_0x51cf70(0x190)](_0x32b219,_0x269e61=0xc8){const _0x3c1e7c=a207_0x51cf70;return()=>new Response(_0x32b219,{'status':_0x269e61,'headers':{'Content-Type':_0x3c1e7c(0x1ad)}});}static[a207_0x51cf70(0x1c4)](_0x2043fb){return()=>{throw new Error(_0x2043fb);};}[a207_0x51cf70(0x1b6)](){const _0x1c7b71=a207_0x51cf70;return this[_0x1c7b71(0x1c3)]=vi['fn']()[_0x1c7b71(0x18a)](async(_0x230db5,_0x1aa2b5)=>{const _0x1074a9=_0x1c7b71,_0x4a49af=this[_0x1074a9(0x173)](_0x230db5,_0x1aa2b5);this[_0x1074a9(0x1a3)][_0x1074a9(0x1af)](_0x4a49af);for(const _0x14a2c2 of this['stubs']){if(_0x14a2c2[_0x1074a9(0x19a)](_0x4a49af))return _0x14a2c2[_0x1074a9(0x1a9)]=!![],_0x14a2c2[_0x1074a9(0x19d)]++,_0x14a2c2[_0x1074a9(0x175)](_0x4a49af);}const _0x4070e8=this[_0x1074a9(0x1b9)][_0x1074a9(0x182)]((_0x1da571,_0x3f71c6)=>'\x20\x20'+(_0x3f71c6+0x1)+'.\x20'+(_0x1da571[_0x1074a9(0x186)]??_0x1074a9(0x1c5)))[_0x1074a9(0x1bb)]('\x0a');throw new Error(_0x1074a9(0x185)+_0x4a49af['method']+'\x20'+_0x4a49af[_0x1074a9(0x176)]+'\x0a'+(_0x1074a9(0x198)+JSON[_0x1074a9(0x197)](_0x4a49af[_0x1074a9(0x195)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x4070e8||_0x1074a9(0x1bc))));}),this['fetchMock'];}[a207_0x51cf70(0x173)](_0x2c8273,_0x42b28f){const _0x57f284=a207_0x51cf70,_0x4acd43={};if(_0x42b28f?.[_0x57f284(0x196)]){if(_0x42b28f[_0x57f284(0x196)]instanceof Headers)_0x42b28f[_0x57f284(0x196)]['forEach']((_0x2543dd,_0x423081)=>{_0x4acd43[_0x423081['toLowerCase']()]=_0x2543dd;});else{if(Array[_0x57f284(0x1bd)](_0x42b28f[_0x57f284(0x196)]))for(const [_0xad1402,_0x656c14]of _0x42b28f[_0x57f284(0x196)]){_0x4acd43[_0xad1402[_0x57f284(0x1c6)]()]=_0x656c14;}else for(const [_0x58dcaa,_0x4e40d4]of Object[_0x57f284(0x17b)](_0x42b28f[_0x57f284(0x196)])){_0x4e40d4!==undefined&&(_0x4acd43[_0x58dcaa[_0x57f284(0x1c6)]()]=_0x4e40d4);}}}let _0xf4e6ae;if(_0x42b28f?.[_0x57f284(0x195)])try{_0xf4e6ae=JSON[_0x57f284(0x1a0)](_0x42b28f[_0x57f284(0x195)]);}catch{_0xf4e6ae=_0x42b28f[_0x57f284(0x195)];}return{'method':_0x42b28f?.['method']??'GET','url':_0x2c8273,'headers':_0x4acd43,'body':_0xf4e6ae};}['verify'](_0x5e99aa){const _0x2ed688=a207_0x51cf70,_0x1ff275=this[_0x2ed688(0x1b9)][_0x2ed688(0x1a4)](_0x354829=>!_0x354829[_0x2ed688(0x1a9)]);if(_0x1ff275['length']>0x0){const _0x876068=_0x1ff275['map'](_0x525695=>{const _0x221d7f=_0x2ed688,_0x392710=_0x525695[_0x221d7f(0x186)]?'\x20('+_0x525695['description']+')':'',_0x5e3b82=_0x525695[_0x221d7f(0x1ac)][_0x221d7f(0x179)]('\x0a')['slice'](0x2,0x5)[_0x221d7f(0x1bb)]('\x0a');return _0x221d7f(0x18f)+_0x392710+_0x221d7f(0x1b8)+_0x5e3b82;});_0x5e99aa[_0x2ed688(0x1c1)](_0x1ff275[_0x2ed688(0x19c)]+_0x2ed688(0x1c0)+_0x876068[_0x2ed688(0x1bb)]('\x0a\x0a'));}}[a207_0x51cf70(0x1a2)](){const _0x110d55=a207_0x51cf70;return[...this[_0x110d55(0x1a3)]];}['getLastRequest'](){const _0xd7be20=a207_0x51cf70;return this['requests'][this[_0xd7be20(0x1a3)][_0xd7be20(0x19c)]-0x1];}[a207_0x51cf70(0x17a)](_0x50737b,_0x496f9b){const _0x4d4720=a207_0x51cf70;return this[_0x4d4720(0x1a3)]['some'](_0xc2ac2b=>{const _0x4311aa=_0x4d4720;if(_0xc2ac2b[_0x4311aa(0x193)][_0x4311aa(0x18c)]()!==_0x50737b[_0x4311aa(0x18c)]())return![];if(typeof _0x496f9b===_0x4311aa(0x17d))return _0xc2ac2b[_0x4311aa(0x176)][_0x4311aa(0x188)](_0x496f9b);return _0x496f9b[_0x4311aa(0x194)](_0xc2ac2b['url']);});}['getMatchCount'](_0x3df3af){const _0x5abd41=a207_0x51cf70;return this[_0x5abd41(0x1b9)][_0x3df3af]?.['matchCount']??0x0;}[a207_0x51cf70(0x1aa)](){const _0x44bedc=a207_0x51cf70;this[_0x44bedc(0x1b9)]=[],this[_0x44bedc(0x1a3)]=[],this['fetchMock']=null;}static[a207_0x51cf70(0x17c)](_0x512617){const _0x4f3ff8=a207_0x51cf70,_0x353105={0xc8:'OK',0xc9:_0x4f3ff8(0x18b),0xcc:_0x4f3ff8(0x187),0x190:_0x4f3ff8(0x1bf),0x191:_0x4f3ff8(0x19e),0x193:_0x4f3ff8(0x17f),0x194:'Not\x20Found',0x199:_0x4f3ff8(0x1a1),0x1a6:_0x4f3ff8(0x189),0x1ad:_0x4f3ff8(0x1b2),0x1f4:_0x4f3ff8(0x1b5),0x1f6:'Bad\x20Gateway',0x1f7:_0x4f3ff8(0x17e)};return _0x353105[_0x512617]??_0x4f3ff8(0x1b3);}}function a207_0x2683(_0x19769d,_0x57fd04){_0x19769d=_0x19769d-0x173;const _0x41d93c=a207_0x41d9();let _0x268349=_0x41d93c[_0x19769d];return _0x268349;}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x8f6a35,_0x2ad3bd){var _0xc4dff7=a208_0x4d5d,_0x1cc7b2=_0x8f6a35();while(!![]){try{var _0x133069=parseInt(_0xc4dff7(0x152))/0x1+parseInt(_0xc4dff7(0x14d))/0x2+parseInt(_0xc4dff7(0x151))/0x3*(-parseInt(_0xc4dff7(0x14f))/0x4)+-parseInt(_0xc4dff7(0x154))/0x5*(parseInt(_0xc4dff7(0x156))/0x6)+parseInt(_0xc4dff7(0x150))/0x7+parseInt(_0xc4dff7(0x155))/0x8+-parseInt(_0xc4dff7(0x14e))/0x9*(-parseInt(_0xc4dff7(0x153))/0xa);if(_0x133069===_0x2ad3bd)break;else _0x1cc7b2['push'](_0x1cc7b2['shift']());}catch(_0xe10a44){_0x1cc7b2['push'](_0x1cc7b2['shift']());}}}(a208_0x2abf,0x2e4b5));function a208_0x4d5d(_0x532aa8,_0x44161c){_0x532aa8=_0x532aa8-0x14d;var _0x2abfad=a208_0x2abf();var _0x4d5d29=_0x2abfad[_0x532aa8];return _0x4d5d29;}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';function a208_0x2abf(){var _0x1e1b16=['537166IZDorj','18EWIiWw','219076fVkQyo','10BsQkws','209905vVLphk','2206744tAuIQX','24xSUpen','96102ndmHbU','68427SpvsfW','179844OkMhIL'];a208_0x2abf=function(){return _0x1e1b16;};return a208_0x2abf();}
1
+ function a208_0x4343(){var _0xd92ee=['27jjNuAl','43616jkgTwv','10xgpdVl','7259790XBmUAf','113689FVVWBD','679uJIAkQ','646425rxrZFq','5480064vBMzCl','4295255kOYftJ','2745104GfuKXK'];a208_0x4343=function(){return _0xd92ee;};return a208_0x4343();}(function(_0x39ef93,_0x262a44){var _0xe8aa19=a208_0x32c2,_0x31fed2=_0x39ef93();while(!![]){try{var _0x2f3f2f=-parseInt(_0xe8aa19(0x14f))/0x1*(-parseInt(_0xe8aa19(0x14d))/0x2)+parseInt(_0xe8aa19(0x147))/0x3+parseInt(_0xe8aa19(0x14a))/0x4+parseInt(_0xe8aa19(0x149))/0x5+parseInt(_0xe8aa19(0x148))/0x6+-parseInt(_0xe8aa19(0x146))/0x7*(parseInt(_0xe8aa19(0x14c))/0x8)+parseInt(_0xe8aa19(0x14b))/0x9*(-parseInt(_0xe8aa19(0x14e))/0xa);if(_0x2f3f2f===_0x262a44)break;else _0x31fed2['push'](_0x31fed2['shift']());}catch(_0x1ffaaf){_0x31fed2['push'](_0x31fed2['shift']());}}}(a208_0x4343,0x82d02));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';function a208_0x32c2(_0x40473a,_0x57ee3e){_0x40473a=_0x40473a-0x146;var _0x4343ef=a208_0x4343();var _0x32c27d=_0x4343ef[_0x40473a];return _0x32c27d;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a209_0x1ab1(_0x3bdeb5,_0x42220d){_0x3bdeb5=_0x3bdeb5-0x177;const _0xa0cb40=a209_0xa0cb();let _0x1ab110=_0xa0cb40[_0x3bdeb5];return _0x1ab110;}(function(_0xb4f92e,_0x409d9f){const _0x5a61f=a209_0x1ab1,_0x1630be=_0xb4f92e();while(!![]){try{const _0x47a7e3=-parseInt(_0x5a61f(0x17b))/0x1*(-parseInt(_0x5a61f(0x182))/0x2)+-parseInt(_0x5a61f(0x177))/0x3+-parseInt(_0x5a61f(0x17a))/0x4*(parseInt(_0x5a61f(0x17e))/0x5)+-parseInt(_0x5a61f(0x184))/0x6*(parseInt(_0x5a61f(0x178))/0x7)+-parseInt(_0x5a61f(0x17d))/0x8*(parseInt(_0x5a61f(0x187))/0x9)+-parseInt(_0x5a61f(0x17f))/0xa+-parseInt(_0x5a61f(0x17c))/0xb*(-parseInt(_0x5a61f(0x185))/0xc);if(_0x47a7e3===_0x409d9f)break;else _0x1630be['push'](_0x1630be['shift']());}catch(_0x4be5e1){_0x1630be['push'](_0x1630be['shift']());}}}(a209_0xa0cb,0x88a02));export async function batchAsync(_0x5730f7,_0xc655d1,_0x413ab3=0xa){const _0x4bcdc5=a209_0x1ab1,_0x51eb31=[];for(let _0x43e611=0x0;_0x43e611<_0x5730f7[_0x4bcdc5(0x181)];_0x43e611+=_0x413ab3){const _0x58fa48=_0x5730f7[_0x4bcdc5(0x186)](_0x43e611,_0x43e611+_0x413ab3),_0x2f0ad2=await Promise[_0x4bcdc5(0x179)](_0x58fa48[_0x4bcdc5(0x180)](_0xc655d1));_0x51eb31[_0x4bcdc5(0x183)](..._0x2f0ad2);}return _0x51eb31;}function a209_0xa0cb(){const _0x1e0c50=['30151mtaQLk','104thocCQ','155HaHQOX','6366530xOIWvX','map','length','10ccqKhs','push','3368202nCkLSD','11364IfHrHs','slice','647253ZWmCJL','1156152WFXxFE','7ZjwPqf','all','23476VjCwnI','132831lhVikk'];a209_0xa0cb=function(){return _0x1e0c50;};return a209_0xa0cb();}
1
+ function a209_0x9761(_0x160d06,_0x575c0e){_0x160d06=_0x160d06-0x99;const _0x1ae386=a209_0x1ae3();let _0x976141=_0x1ae386[_0x160d06];return _0x976141;}function a209_0x1ae3(){const _0x511289=['4022845ZBLzgC','slice','196615jfZHGb','all','7hLvLLN','904722YTYYIR','144aXXczG','1051410KzdhcN','119560QMZohX','52032ugiTPo','803710aHaIQx','push','length','87ryUPXU'];a209_0x1ae3=function(){return _0x511289;};return a209_0x1ae3();}(function(_0x2e919a,_0x3ab218){const _0x1d5409=a209_0x9761,_0x454f37=_0x2e919a();while(!![]){try{const _0x43cf56=-parseInt(_0x1d5409(0xa2))/0x1+-parseInt(_0x1d5409(0x99))/0x2+-parseInt(_0x1d5409(0x9f))/0x3*(-parseInt(_0x1d5409(0x9a))/0x4)+-parseInt(_0x1d5409(0xa0))/0x5+-parseInt(_0x1d5409(0xa5))/0x6+parseInt(_0x1d5409(0xa4))/0x7*(parseInt(_0x1d5409(0x9b))/0x8)+-parseInt(_0x1d5409(0xa6))/0x9*(-parseInt(_0x1d5409(0x9c))/0xa);if(_0x43cf56===_0x3ab218)break;else _0x454f37['push'](_0x454f37['shift']());}catch(_0x223ec5){_0x454f37['push'](_0x454f37['shift']());}}}(a209_0x1ae3,0x75926));export async function batchAsync(_0x5eb4fc,_0x24627e,_0x53c319=0xa){const _0x21add3=a209_0x9761,_0x4c4355=[];for(let _0x14dc94=0x0;_0x14dc94<_0x5eb4fc[_0x21add3(0x9e)];_0x14dc94+=_0x53c319){const _0x50e826=_0x5eb4fc[_0x21add3(0xa1)](_0x14dc94,_0x14dc94+_0x53c319),_0x546521=await Promise[_0x21add3(0xa3)](_0x50e826['map'](_0x24627e));_0x4c4355[_0x21add3(0x9d)](..._0x546521);}return _0x4c4355;}
@@ -1 +1 @@
1
- function a210_0xf04b(){const _0x576302=['isArray','green','join','blue','boolean','number','8jDFEdU','yellow','string','stringify','692153kRyoUh','entries','cyan','noColor','14AZdYNg','length','3384710AbGfAe','null','repeat','map','dim','12258063ZOqSET','color','107977PHtKbd','object','163668oKCmei','15143590JwRuFW','96292BPWWCs','stdout','isTTY','84JnMTTz','205MmofdR'];a210_0xf04b=function(){return _0x576302;};return a210_0xf04b();}(function(_0x1d7a7e,_0x17dd06){const _0x358bd0=a210_0x2f89,_0x35e5b8=_0x1d7a7e();while(!![]){try{const _0x1a64ff=parseInt(_0x358bd0(0x1d6))/0x1*(parseInt(_0x358bd0(0x1cd))/0x2)+-parseInt(_0x358bd0(0x1dd))/0x3*(-parseInt(_0x358bd0(0x1da))/0x4)+-parseInt(_0x358bd0(0x1be))/0x5*(parseInt(_0x358bd0(0x1d8))/0x6)+parseInt(_0x358bd0(0x1c9))/0x7*(parseInt(_0x358bd0(0x1c5))/0x8)+-parseInt(_0x358bd0(0x1d4))/0x9+parseInt(_0x358bd0(0x1cf))/0xa+parseInt(_0x358bd0(0x1d9))/0xb;if(_0x1a64ff===_0x17dd06)break;else _0x35e5b8['push'](_0x35e5b8['shift']());}catch(_0x3da0e1){_0x35e5b8['push'](_0x35e5b8['shift']());}}}(a210_0xf04b,0xba67e));function a210_0x2f89(_0x2c1787,_0x2e5dbd){_0x2c1787=_0x2c1787-0x1be;const _0xf04b72=a210_0xf04b();let _0x2f899d=_0xf04b72[_0x2c1787];return _0x2f899d;}import*as a210_0x3c2cd8 from'chalk';const Chalk=a210_0x3c2cd8['Chalk'];export function shouldUseColor(_0x28da16={}){const _0x18ef7d=a210_0x2f89;if(_0x28da16[_0x18ef7d(0x1cc)]===!![])return![];if(_0x28da16[_0x18ef7d(0x1d5)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x18ef7d(0x1db)][_0x18ef7d(0x1dc)]??![];}export function getChalk(_0x111a95={}){if(shouldUseColor(_0x111a95))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x252a8e,_0x14f1d7={}){const _0x5a2462=a210_0x2f89;return getChalk(_0x14f1d7)[_0x5a2462(0x1d3)](_0x252a8e);}export function colorHeader(_0x7e6744,_0xcfb042={}){const _0x42cc57=a210_0x2f89;return getChalk(_0xcfb042)[_0x42cc57(0x1cb)](_0x7e6744);}export function colorType(_0x4fc3bd,_0x36afbe={}){return getChalk(_0x36afbe)['dim'](_0x4fc3bd);}export function colorJSONKey(_0xf9b52f,_0xf348d7={}){const _0x28ccd7=a210_0x2f89;return getChalk(_0xf348d7)[_0x28ccd7(0x1c2)](_0xf9b52f);}export function colorJSONString(_0x43dc63,_0x46e9e6={}){const _0x56e2eb=a210_0x2f89;return getChalk(_0x46e9e6)[_0x56e2eb(0x1c0)](_0x43dc63);}export function colorJSONNumber(_0x26af87,_0x40e963={}){return getChalk(_0x40e963)['cyan'](_0x26af87);}export function colorJSONBoolean(_0x127cae,_0x110202={}){const _0x1506b7=a210_0x2f89;return getChalk(_0x110202)[_0x1506b7(0x1c6)](_0x127cae);}export function colorJSONNull(_0x19adaf,_0x87b2de={}){const _0x4ec374=a210_0x2f89;return getChalk(_0x87b2de)[_0x4ec374(0x1d3)](_0x19adaf);}export function colorizeJSONCompact(_0x3e0125,_0x8138e4={}){const _0x23691f=a210_0x2f89;if(!shouldUseColor(_0x8138e4))return JSON['stringify'](_0x3e0125);if(_0x3e0125===null)return colorJSONNull(_0x23691f(0x1d0),_0x8138e4);if(typeof _0x3e0125===_0x23691f(0x1c3))return colorJSONBoolean(String(_0x3e0125),_0x8138e4);if(typeof _0x3e0125===_0x23691f(0x1c4))return colorJSONNumber(String(_0x3e0125),_0x8138e4);if(typeof _0x3e0125==='string')return colorJSONString(JSON[_0x23691f(0x1c8)](_0x3e0125),_0x8138e4);if(Array[_0x23691f(0x1bf)](_0x3e0125)){if(_0x3e0125['length']===0x0)return'[]';const _0x353a82=_0x3e0125['map'](_0x369ef3=>colorizeJSONCompact(_0x369ef3,_0x8138e4));return'['+_0x353a82[_0x23691f(0x1c1)](',')+']';}if(typeof _0x3e0125===_0x23691f(0x1d7)){const _0x4f7543=Object['entries'](_0x3e0125);if(_0x4f7543[_0x23691f(0x1ce)]===0x0)return'{}';const _0x12db85=_0x4f7543[_0x23691f(0x1d2)](([_0x1a60a8,_0x2ac676])=>{const _0x26832c=_0x23691f,_0x1e7c72=colorJSONKey(JSON[_0x26832c(0x1c8)](_0x1a60a8),_0x8138e4),_0x10b968=colorizeJSONCompact(_0x2ac676,_0x8138e4);return _0x1e7c72+':'+_0x10b968;});return'{'+_0x12db85[_0x23691f(0x1c1)](',')+'}';}return String(_0x3e0125);}export function colorizeJSON(_0x39fdbd,_0x501fb8={},_0x615d99=0x0){const _0x3a6972=a210_0x2f89;if(!shouldUseColor(_0x501fb8))return JSON['stringify'](_0x39fdbd,null,0x2);const _0xbb0b17='\x20'['repeat'](_0x615d99),_0x39f151=_0x615d99+0x2;if(_0x39fdbd===null)return colorJSONNull(_0x3a6972(0x1d0),_0x501fb8);if(typeof _0x39fdbd===_0x3a6972(0x1c3))return colorJSONBoolean(String(_0x39fdbd),_0x501fb8);if(typeof _0x39fdbd===_0x3a6972(0x1c4))return colorJSONNumber(String(_0x39fdbd),_0x501fb8);if(typeof _0x39fdbd===_0x3a6972(0x1c7))return colorJSONString(JSON['stringify'](_0x39fdbd),_0x501fb8);if(Array[_0x3a6972(0x1bf)](_0x39fdbd)){if(_0x39fdbd['length']===0x0)return'[]';const _0x72946=_0x39fdbd['map'](_0x3361f1=>{const _0x354a00=_0x3a6972,_0x3289fd=colorizeJSON(_0x3361f1,_0x501fb8,_0x39f151);return''+'\x20'[_0x354a00(0x1d1)](_0x39f151)+_0x3289fd;});return'[\x0a'+_0x72946['join'](',\x0a')+('\x0a'+_0xbb0b17+']');}if(typeof _0x39fdbd===_0x3a6972(0x1d7)){const _0x109875=Object[_0x3a6972(0x1ca)](_0x39fdbd);if(_0x109875[_0x3a6972(0x1ce)]===0x0)return'{}';const _0x65e116=_0x109875[_0x3a6972(0x1d2)](([_0x465cb7,_0x87295d])=>{const _0x245e85=_0x3a6972,_0x34facf=colorJSONKey(JSON[_0x245e85(0x1c8)](_0x465cb7),_0x501fb8),_0x126990=colorizeJSON(_0x87295d,_0x501fb8,_0x39f151);return''+'\x20'[_0x245e85(0x1d1)](_0x39f151)+_0x34facf+':\x20'+_0x126990;});return'{\x0a'+_0x65e116[_0x3a6972(0x1c1)](',\x0a')+('\x0a'+_0xbb0b17+'}');}return String(_0x39fdbd);}
1
+ (function(_0x3324c1,_0x27941f){const _0xf96d75=a210_0x2611,_0x1bbaec=_0x3324c1();while(!![]){try{const _0x173352=-parseInt(_0xf96d75(0x184))/0x1+-parseInt(_0xf96d75(0x182))/0x2+-parseInt(_0xf96d75(0x17d))/0x3+parseInt(_0xf96d75(0x18d))/0x4+parseInt(_0xf96d75(0x197))/0x5*(parseInt(_0xf96d75(0x190))/0x6)+parseInt(_0xf96d75(0x186))/0x7*(parseInt(_0xf96d75(0x192))/0x8)+parseInt(_0xf96d75(0x193))/0x9;if(_0x173352===_0x27941f)break;else _0x1bbaec['push'](_0x1bbaec['shift']());}catch(_0x531bde){_0x1bbaec['push'](_0x1bbaec['shift']());}}}(a210_0x516a,0x9dd86));import*as a210_0x56b6d9 from'chalk';const Chalk=a210_0x56b6d9['Chalk'];export function shouldUseColor(_0x4cc360={}){const _0x5bb03b=a210_0x2611;if(_0x4cc360[_0x5bb03b(0x18f)]===!![])return![];if(_0x4cc360[_0x5bb03b(0x187)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5bb03b(0x180)][_0x5bb03b(0x195)]??![];}export function getChalk(_0x34a341={}){if(shouldUseColor(_0x34a341))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a210_0x516a(){const _0x301e3f=['610782TVKsUj','length','8qoRfez','6099318NnPBdl','yellow','isTTY','dim','10yvudQz','object','2121678INUBCy','map','isArray','stdout','string','361528RyTHSD','entries','449833PXbFPJ','repeat','2101092FzvCXn','color','green','join','blue','stringify','number','3211620vyOdGk','null','noColor'];a210_0x516a=function(){return _0x301e3f;};return a210_0x516a();}export function colorBorder(_0x2d4bc3,_0x14b257={}){const _0x41ce0f=a210_0x2611;return getChalk(_0x14b257)[_0x41ce0f(0x196)](_0x2d4bc3);}export function colorHeader(_0x15bafe,_0x408885={}){return getChalk(_0x408885)['cyan'](_0x15bafe);}export function colorType(_0x4d7a9f,_0x207dc4={}){const _0x5a126a=a210_0x2611;return getChalk(_0x207dc4)[_0x5a126a(0x196)](_0x4d7a9f);}function a210_0x2611(_0x3f062f,_0x319e01){_0x3f062f=_0x3f062f-0x17c;const _0x516a6a=a210_0x516a();let _0x2611e0=_0x516a6a[_0x3f062f];return _0x2611e0;}export function colorJSONKey(_0x3bd06b,_0x2528d1={}){const _0x5b1bf3=a210_0x2611;return getChalk(_0x2528d1)[_0x5b1bf3(0x18a)](_0x3bd06b);}export function colorJSONString(_0x460130,_0x5a4bb4={}){const _0x213005=a210_0x2611;return getChalk(_0x5a4bb4)[_0x213005(0x188)](_0x460130);}export function colorJSONNumber(_0x231c57,_0x283a8e={}){return getChalk(_0x283a8e)['cyan'](_0x231c57);}export function colorJSONBoolean(_0x401c8b,_0x3bebf2={}){const _0x35c4c3=a210_0x2611;return getChalk(_0x3bebf2)[_0x35c4c3(0x194)](_0x401c8b);}export function colorJSONNull(_0x4d1abd,_0x27b495={}){const _0x233cfc=a210_0x2611;return getChalk(_0x27b495)[_0x233cfc(0x196)](_0x4d1abd);}export function colorizeJSONCompact(_0x4de247,_0x7cf78e={}){const _0x1fcd74=a210_0x2611;if(!shouldUseColor(_0x7cf78e))return JSON[_0x1fcd74(0x18b)](_0x4de247);if(_0x4de247===null)return colorJSONNull(_0x1fcd74(0x18e),_0x7cf78e);if(typeof _0x4de247==='boolean')return colorJSONBoolean(String(_0x4de247),_0x7cf78e);if(typeof _0x4de247==='number')return colorJSONNumber(String(_0x4de247),_0x7cf78e);if(typeof _0x4de247===_0x1fcd74(0x181))return colorJSONString(JSON[_0x1fcd74(0x18b)](_0x4de247),_0x7cf78e);if(Array[_0x1fcd74(0x17f)](_0x4de247)){if(_0x4de247[_0x1fcd74(0x191)]===0x0)return'[]';const _0x3fc007=_0x4de247[_0x1fcd74(0x17e)](_0x385d5d=>colorizeJSONCompact(_0x385d5d,_0x7cf78e));return'['+_0x3fc007[_0x1fcd74(0x189)](',')+']';}if(typeof _0x4de247===_0x1fcd74(0x17c)){const _0x22297b=Object[_0x1fcd74(0x183)](_0x4de247);if(_0x22297b['length']===0x0)return'{}';const _0x474a87=_0x22297b[_0x1fcd74(0x17e)](([_0xb6f112,_0x418ea0])=>{const _0x50a777=_0x1fcd74,_0x2f898a=colorJSONKey(JSON[_0x50a777(0x18b)](_0xb6f112),_0x7cf78e),_0x3141b5=colorizeJSONCompact(_0x418ea0,_0x7cf78e);return _0x2f898a+':'+_0x3141b5;});return'{'+_0x474a87[_0x1fcd74(0x189)](',')+'}';}return String(_0x4de247);}export function colorizeJSON(_0x1c84c0,_0x204a73={},_0x40f511=0x0){const _0x16aa98=a210_0x2611;if(!shouldUseColor(_0x204a73))return JSON[_0x16aa98(0x18b)](_0x1c84c0,null,0x2);const _0x3a4aca='\x20'[_0x16aa98(0x185)](_0x40f511),_0x5d388f=_0x40f511+0x2;if(_0x1c84c0===null)return colorJSONNull(_0x16aa98(0x18e),_0x204a73);if(typeof _0x1c84c0==='boolean')return colorJSONBoolean(String(_0x1c84c0),_0x204a73);if(typeof _0x1c84c0===_0x16aa98(0x18c))return colorJSONNumber(String(_0x1c84c0),_0x204a73);if(typeof _0x1c84c0===_0x16aa98(0x181))return colorJSONString(JSON[_0x16aa98(0x18b)](_0x1c84c0),_0x204a73);if(Array[_0x16aa98(0x17f)](_0x1c84c0)){if(_0x1c84c0[_0x16aa98(0x191)]===0x0)return'[]';const _0x4d2130=_0x1c84c0[_0x16aa98(0x17e)](_0x148592=>{const _0x465e20=colorizeJSON(_0x148592,_0x204a73,_0x5d388f);return''+'\x20'['repeat'](_0x5d388f)+_0x465e20;});return'[\x0a'+_0x4d2130[_0x16aa98(0x189)](',\x0a')+('\x0a'+_0x3a4aca+']');}if(typeof _0x1c84c0===_0x16aa98(0x17c)){const _0x44177c=Object[_0x16aa98(0x183)](_0x1c84c0);if(_0x44177c[_0x16aa98(0x191)]===0x0)return'{}';const _0x14b144=_0x44177c[_0x16aa98(0x17e)](([_0x55160d,_0x188e0d])=>{const _0x4b0e5e=_0x16aa98,_0x399d8e=colorJSONKey(JSON[_0x4b0e5e(0x18b)](_0x55160d),_0x204a73),_0x10ce8c=colorizeJSON(_0x188e0d,_0x204a73,_0x5d388f);return''+'\x20'['repeat'](_0x5d388f)+_0x399d8e+':\x20'+_0x10ce8c;});return'{\x0a'+_0x14b144[_0x16aa98(0x189)](',\x0a')+('\x0a'+_0x3a4aca+'}');}return String(_0x1c84c0);}
@@ -1 +1 @@
1
- (function(_0x4616dc,_0x340f2a){const _0x4c4d10=a211_0x1b6f,_0x153756=_0x4616dc();while(!![]){try{const _0x20c32a=-parseInt(_0x4c4d10(0xb0))/0x1*(parseInt(_0x4c4d10(0xb7))/0x2)+parseInt(_0x4c4d10(0xbc))/0x3*(-parseInt(_0x4c4d10(0xc0))/0x4)+-parseInt(_0x4c4d10(0xc9))/0x5*(parseInt(_0x4c4d10(0xcf))/0x6)+parseInt(_0x4c4d10(0xb3))/0x7*(-parseInt(_0x4c4d10(0xb2))/0x8)+-parseInt(_0x4c4d10(0xcb))/0x9+parseInt(_0x4c4d10(0xcd))/0xa+parseInt(_0x4c4d10(0xb1))/0xb;if(_0x20c32a===_0x340f2a)break;else _0x153756['push'](_0x153756['shift']());}catch(_0x323b54){_0x153756['push'](_0x153756['shift']());}}}(a211_0x391b,0x89fb7));import a211_0x5c3e36 from'chalk';export function generateDiff(_0x94836c,_0x59d782){const _0x56bf1c=a211_0x1b6f,_0x1decb5=_0x94836c[_0x56bf1c(0xae)]('\x0a'),_0x397a9a=_0x59d782[_0x56bf1c(0xae)]('\x0a'),_0x50b1fc=[],_0x40537b=computeLCS(_0x1decb5,_0x397a9a);let _0x1120f1=0x0,_0x1adaf5=0x0,_0x368f67=0x0;while(_0x1120f1<_0x1decb5[_0x56bf1c(0xb9)]||_0x1adaf5<_0x397a9a[_0x56bf1c(0xb9)]){if(_0x368f67<_0x40537b[_0x56bf1c(0xb9)]&&_0x1120f1<_0x1decb5[_0x56bf1c(0xb9)]&&_0x1decb5[_0x1120f1]===_0x40537b[_0x368f67])_0x1adaf5<_0x397a9a[_0x56bf1c(0xb9)]&&_0x397a9a[_0x1adaf5]===_0x40537b[_0x368f67]?(_0x50b1fc[_0x56bf1c(0xc6)]({'type':_0x56bf1c(0xba),'content':_0x1decb5[_0x1120f1]}),_0x1120f1++,_0x1adaf5++,_0x368f67++):(_0x50b1fc[_0x56bf1c(0xc6)]({'type':_0x56bf1c(0xc5),'content':_0x397a9a[_0x1adaf5]}),_0x1adaf5++);else{if(_0x368f67<_0x40537b[_0x56bf1c(0xb9)]&&_0x1adaf5<_0x397a9a[_0x56bf1c(0xb9)]&&_0x397a9a[_0x1adaf5]===_0x40537b[_0x368f67])_0x50b1fc[_0x56bf1c(0xc6)]({'type':'removed','content':_0x1decb5[_0x1120f1]}),_0x1120f1++;else{if(_0x1120f1<_0x1decb5[_0x56bf1c(0xb9)]&&(_0x368f67>=_0x40537b['length']||_0x1decb5[_0x1120f1]!==_0x40537b[_0x368f67]))_0x50b1fc[_0x56bf1c(0xc6)]({'type':_0x56bf1c(0xb6),'content':_0x1decb5[_0x1120f1]}),_0x1120f1++;else _0x1adaf5<_0x397a9a['length']&&(_0x50b1fc['push']({'type':_0x56bf1c(0xc5),'content':_0x397a9a[_0x1adaf5]}),_0x1adaf5++);}}}return _0x50b1fc;}function a211_0x1b6f(_0x574a1d,_0x6523ee){_0x574a1d=_0x574a1d-0xab;const _0x391bbe=a211_0x391b();let _0x1b6f63=_0x391bbe[_0x574a1d];return _0x1b6f63;}function computeLCS(_0x442535,_0x2371b9){const _0x2327dd=a211_0x1b6f,_0x93d32e=_0x442535[_0x2327dd(0xb9)],_0xe4c696=_0x2371b9[_0x2327dd(0xb9)],_0x51ef03=Array(_0x93d32e+0x1)[_0x2327dd(0xac)](null)['map'](()=>Array(_0xe4c696+0x1)[_0x2327dd(0xac)](0x0));for(let _0x3f83f8=0x1;_0x3f83f8<=_0x93d32e;_0x3f83f8++){for(let _0x12a5cf=0x1;_0x12a5cf<=_0xe4c696;_0x12a5cf++){_0x442535[_0x3f83f8-0x1]===_0x2371b9[_0x12a5cf-0x1]?_0x51ef03[_0x3f83f8][_0x12a5cf]=_0x51ef03[_0x3f83f8-0x1][_0x12a5cf-0x1]+0x1:_0x51ef03[_0x3f83f8][_0x12a5cf]=Math[_0x2327dd(0xc4)](_0x51ef03[_0x3f83f8-0x1][_0x12a5cf],_0x51ef03[_0x3f83f8][_0x12a5cf-0x1]);}}const _0x505eae=[];let _0x29ab20=_0x93d32e,_0x2122f8=_0xe4c696;while(_0x29ab20>0x0&&_0x2122f8>0x0){if(_0x442535[_0x29ab20-0x1]===_0x2371b9[_0x2122f8-0x1])_0x505eae[_0x2327dd(0xc2)](_0x442535[_0x29ab20-0x1]),_0x29ab20--,_0x2122f8--;else _0x51ef03[_0x29ab20-0x1][_0x2122f8]>_0x51ef03[_0x29ab20][_0x2122f8-0x1]?_0x29ab20--:_0x2122f8--;}return _0x505eae;}function a211_0x391b(){const _0x47b79a=['8CrIzST','min','length','unchanged','\x20\x20...','2166LZWMPn','forEach','repeat','type','1304laxRBl','green','unshift','cyan','max','added','push','\x20\x20\x20','\x20+\x20','1344705aUKKTu','join','4985586cWvUWw','dim','1303510evqApx','content','12bxPHTo','red','fill','add','split','old','148891KJmFli','31965626sqVbRu','1462320Qmxjnj','21sljHVk','new','\x20-\x20','removed'];a211_0x391b=function(){return _0x47b79a;};return a211_0x391b();}export function formatDiffWithColors(_0x11252b,_0x545279=0x3){const _0x127506=a211_0x1b6f,_0x1b0193=new Set();_0x11252b[_0x127506(0xbd)]((_0xa93e43,_0x5854a3)=>{const _0x889224=_0x127506;_0xa93e43[_0x889224(0xbf)]!==_0x889224(0xba)&&_0x1b0193[_0x889224(0xad)](_0x5854a3);});if(_0x1b0193['size']===0x0)return'';const _0x2533e2=new Set();for(const _0x805d28 of _0x1b0193){for(let _0x12931b=Math['max'](0x0,_0x805d28-_0x545279);_0x12931b<=Math[_0x127506(0xb8)](_0x11252b[_0x127506(0xb9)]-0x1,_0x805d28+_0x545279);_0x12931b++){_0x2533e2[_0x127506(0xad)](_0x12931b);}}const _0x5ea87d=[];let _0x29365b=-0x1;const _0x9953e0=_0x11252b[_0x127506(0xb9)],_0x6101e6=Math[_0x127506(0xc4)](0x3,String(_0x9953e0)[_0x127506(0xb9)]),_0x5c62d3=[];let _0x1ebeac=0x0,_0x319d7b=0x0;for(const _0x4b6bb0 of _0x11252b){if(_0x4b6bb0['type']===_0x127506(0xb6))_0x1ebeac++,_0x5c62d3[_0x127506(0xc6)]({'old':_0x1ebeac,'new':0x0});else _0x4b6bb0[_0x127506(0xbf)]===_0x127506(0xc5)?(_0x319d7b++,_0x5c62d3[_0x127506(0xc6)]({'old':0x0,'new':_0x319d7b})):(_0x1ebeac++,_0x319d7b++,_0x5c62d3[_0x127506(0xc6)]({'old':_0x1ebeac,'new':_0x319d7b}));}for(let _0x2e246c=0x0;_0x2e246c<_0x11252b[_0x127506(0xb9)];_0x2e246c++){if(!_0x2533e2['has'](_0x2e246c))continue;_0x29365b!==-0x1&&_0x2e246c>_0x29365b+0x1&&_0x5ea87d[_0x127506(0xc6)](a211_0x5c3e36[_0x127506(0xc3)](_0x127506(0xbb)));_0x29365b=_0x2e246c;const _0x29c205=_0x11252b[_0x2e246c],_0x4e772c=_0x5c62d3[_0x2e246c],_0x410114=_0x4e772c[_0x127506(0xaf)]>0x0?String(_0x4e772c[_0x127506(0xaf)])['padStart'](_0x6101e6):'\x20'[_0x127506(0xbe)](_0x6101e6),_0x58507c=_0x4e772c[_0x127506(0xb4)]>0x0?String(_0x4e772c[_0x127506(0xb4)])['padStart'](_0x6101e6):'\x20'[_0x127506(0xbe)](_0x6101e6);switch(_0x29c205['type']){case _0x127506(0xb6):_0x5ea87d[_0x127506(0xc6)](a211_0x5c3e36[_0x127506(0xab)](_0x410114+'\x20'+_0x58507c+_0x127506(0xb5)+_0x29c205['content']));break;case'added':_0x5ea87d['push'](a211_0x5c3e36[_0x127506(0xc1)](_0x410114+'\x20'+_0x58507c+_0x127506(0xc8)+_0x29c205[_0x127506(0xce)]));break;default:_0x5ea87d['push'](a211_0x5c3e36[_0x127506(0xcc)](_0x410114+'\x20'+_0x58507c+_0x127506(0xc7)+_0x29c205[_0x127506(0xce)]));break;}}return _0x5ea87d[_0x127506(0xca)]('\x0a');}export function hasChanges(_0x11f196){const _0x5e75f3=a211_0x1b6f;return _0x11f196['some'](_0xc216d4=>_0xc216d4[_0x5e75f3(0xbf)]!==_0x5e75f3(0xba));}
1
+ (function(_0x5eef37,_0x160f4d){const _0x184618=a211_0x43bb,_0x36459e=_0x5eef37();while(!![]){try{const _0x37871d=-parseInt(_0x184618(0x8f))/0x1*(-parseInt(_0x184618(0x87))/0x2)+parseInt(_0x184618(0x85))/0x3*(-parseInt(_0x184618(0x94))/0x4)+-parseInt(_0x184618(0x8c))/0x5*(parseInt(_0x184618(0x95))/0x6)+parseInt(_0x184618(0x99))/0x7*(parseInt(_0x184618(0x8a))/0x8)+-parseInt(_0x184618(0x97))/0x9+parseInt(_0x184618(0x79))/0xa+-parseInt(_0x184618(0x88))/0xb;if(_0x37871d===_0x160f4d)break;else _0x36459e['push'](_0x36459e['shift']());}catch(_0x149f8c){_0x36459e['push'](_0x36459e['shift']());}}}(a211_0x3bae,0x26125));function a211_0x3bae(){const _0x251c9c=['type','cyan','old','map','\x20+\x20','fill','new','some','45sKhIEE','removed','96LEcQyB','263010QiETal','green','296RPolzZ','added','616915lDuPdn','forEach','unchanged','5002BNXawv','length','repeat','red','\x20\x20...','10248iYjYzA','6otNTTi','add','1735614fDEpxW','unshift','52115oegIuI','min','content','padStart','max','\x20\x20\x20','189490XcdNVa','push','split','join'];a211_0x3bae=function(){return _0x251c9c;};return a211_0x3bae();}function a211_0x43bb(_0x4ab55d,_0x343a63){_0x4ab55d=_0x4ab55d-0x79;const _0x3bae7b=a211_0x3bae();let _0x43bb00=_0x3bae7b[_0x4ab55d];return _0x43bb00;}import a211_0x235a94 from'chalk';export function generateDiff(_0x5a37ca,_0x58ee2e){const _0x23123b=a211_0x43bb,_0x32dbb2=_0x5a37ca[_0x23123b(0x7b)]('\x0a'),_0x2d0a15=_0x58ee2e['split']('\x0a'),_0x264269=[],_0x320d3e=computeLCS(_0x32dbb2,_0x2d0a15);let _0x3add20=0x0,_0x4f770e=0x0,_0x534e7b=0x0;while(_0x3add20<_0x32dbb2[_0x23123b(0x90)]||_0x4f770e<_0x2d0a15[_0x23123b(0x90)]){if(_0x534e7b<_0x320d3e[_0x23123b(0x90)]&&_0x3add20<_0x32dbb2[_0x23123b(0x90)]&&_0x32dbb2[_0x3add20]===_0x320d3e[_0x534e7b])_0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&_0x2d0a15[_0x4f770e]===_0x320d3e[_0x534e7b]?(_0x264269['push']({'type':'unchanged','content':_0x32dbb2[_0x3add20]}),_0x3add20++,_0x4f770e++,_0x534e7b++):(_0x264269['push']({'type':_0x23123b(0x8b),'content':_0x2d0a15[_0x4f770e]}),_0x4f770e++);else{if(_0x534e7b<_0x320d3e[_0x23123b(0x90)]&&_0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&_0x2d0a15[_0x4f770e]===_0x320d3e[_0x534e7b])_0x264269['push']({'type':_0x23123b(0x86),'content':_0x32dbb2[_0x3add20]}),_0x3add20++;else{if(_0x3add20<_0x32dbb2[_0x23123b(0x90)]&&(_0x534e7b>=_0x320d3e[_0x23123b(0x90)]||_0x32dbb2[_0x3add20]!==_0x320d3e[_0x534e7b]))_0x264269[_0x23123b(0x7a)]({'type':_0x23123b(0x86),'content':_0x32dbb2[_0x3add20]}),_0x3add20++;else _0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&(_0x264269[_0x23123b(0x7a)]({'type':_0x23123b(0x8b),'content':_0x2d0a15[_0x4f770e]}),_0x4f770e++);}}}return _0x264269;}function computeLCS(_0x692d13,_0x267c01){const _0x49fa82=a211_0x43bb,_0x9449e7=_0x692d13['length'],_0x5665af=_0x267c01[_0x49fa82(0x90)],_0x5d8015=Array(_0x9449e7+0x1)['fill'](null)[_0x49fa82(0x80)](()=>Array(_0x5665af+0x1)[_0x49fa82(0x82)](0x0));for(let _0x4058e3=0x1;_0x4058e3<=_0x9449e7;_0x4058e3++){for(let _0x33aee5=0x1;_0x33aee5<=_0x5665af;_0x33aee5++){_0x692d13[_0x4058e3-0x1]===_0x267c01[_0x33aee5-0x1]?_0x5d8015[_0x4058e3][_0x33aee5]=_0x5d8015[_0x4058e3-0x1][_0x33aee5-0x1]+0x1:_0x5d8015[_0x4058e3][_0x33aee5]=Math[_0x49fa82(0x9d)](_0x5d8015[_0x4058e3-0x1][_0x33aee5],_0x5d8015[_0x4058e3][_0x33aee5-0x1]);}}const _0x27c61c=[];let _0x56c759=_0x9449e7,_0x40b540=_0x5665af;while(_0x56c759>0x0&&_0x40b540>0x0){if(_0x692d13[_0x56c759-0x1]===_0x267c01[_0x40b540-0x1])_0x27c61c[_0x49fa82(0x98)](_0x692d13[_0x56c759-0x1]),_0x56c759--,_0x40b540--;else _0x5d8015[_0x56c759-0x1][_0x40b540]>_0x5d8015[_0x56c759][_0x40b540-0x1]?_0x56c759--:_0x40b540--;}return _0x27c61c;}export function formatDiffWithColors(_0x562323,_0x91bc0b=0x3){const _0x1f246a=a211_0x43bb,_0x4bac2a=new Set();_0x562323[_0x1f246a(0x8d)]((_0xb6eeec,_0x4d0750)=>{const _0x3830a7=_0x1f246a;_0xb6eeec[_0x3830a7(0x7d)]!=='unchanged'&&_0x4bac2a[_0x3830a7(0x96)](_0x4d0750);});if(_0x4bac2a['size']===0x0)return'';const _0x336911=new Set();for(const _0x5395a6 of _0x4bac2a){for(let _0x21d54e=Math[_0x1f246a(0x9d)](0x0,_0x5395a6-_0x91bc0b);_0x21d54e<=Math[_0x1f246a(0x9a)](_0x562323['length']-0x1,_0x5395a6+_0x91bc0b);_0x21d54e++){_0x336911[_0x1f246a(0x96)](_0x21d54e);}}const _0x43b28e=[];let _0xc341f=-0x1;const _0x40980b=_0x562323[_0x1f246a(0x90)],_0x495d1c=Math['max'](0x3,String(_0x40980b)['length']),_0x5882ad=[];let _0x1dfdef=0x0,_0x31fd06=0x0;for(const _0x41c205 of _0x562323){if(_0x41c205['type']===_0x1f246a(0x86))_0x1dfdef++,_0x5882ad[_0x1f246a(0x7a)]({'old':_0x1dfdef,'new':0x0});else _0x41c205[_0x1f246a(0x7d)]===_0x1f246a(0x8b)?(_0x31fd06++,_0x5882ad[_0x1f246a(0x7a)]({'old':0x0,'new':_0x31fd06})):(_0x1dfdef++,_0x31fd06++,_0x5882ad[_0x1f246a(0x7a)]({'old':_0x1dfdef,'new':_0x31fd06}));}for(let _0x1efe3e=0x0;_0x1efe3e<_0x562323[_0x1f246a(0x90)];_0x1efe3e++){if(!_0x336911['has'](_0x1efe3e))continue;_0xc341f!==-0x1&&_0x1efe3e>_0xc341f+0x1&&_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94[_0x1f246a(0x7e)](_0x1f246a(0x93)));_0xc341f=_0x1efe3e;const _0x276ad1=_0x562323[_0x1efe3e],_0x1025af=_0x5882ad[_0x1efe3e],_0x26b350=_0x1025af[_0x1f246a(0x7f)]>0x0?String(_0x1025af[_0x1f246a(0x7f)])[_0x1f246a(0x9c)](_0x495d1c):'\x20'[_0x1f246a(0x91)](_0x495d1c),_0xe43235=_0x1025af[_0x1f246a(0x83)]>0x0?String(_0x1025af['new'])[_0x1f246a(0x9c)](_0x495d1c):'\x20'[_0x1f246a(0x91)](_0x495d1c);switch(_0x276ad1[_0x1f246a(0x7d)]){case _0x1f246a(0x86):_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94[_0x1f246a(0x92)](_0x26b350+'\x20'+_0xe43235+'\x20-\x20'+_0x276ad1[_0x1f246a(0x9b)]));break;case'added':_0x43b28e['push'](a211_0x235a94[_0x1f246a(0x89)](_0x26b350+'\x20'+_0xe43235+_0x1f246a(0x81)+_0x276ad1[_0x1f246a(0x9b)]));break;default:_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94['dim'](_0x26b350+'\x20'+_0xe43235+_0x1f246a(0x9e)+_0x276ad1[_0x1f246a(0x9b)]));break;}}return _0x43b28e[_0x1f246a(0x7c)]('\x0a');}export function hasChanges(_0x248aa8){const _0x3f0b61=a211_0x43bb;return _0x248aa8[_0x3f0b61(0x84)](_0x17f5d5=>_0x17f5d5['type']!==_0x3f0b61(0x8e));}
@@ -1 +1 @@
1
- (function(_0x2376b8,_0x1c81ee){const _0x2e5670=a212_0x4df4,_0x3ca9c4=_0x2376b8();while(!![]){try{const _0x2abd53=-parseInt(_0x2e5670(0xf2))/0x1*(-parseInt(_0x2e5670(0xf5))/0x2)+-parseInt(_0x2e5670(0xf0))/0x3+parseInt(_0x2e5670(0xf3))/0x4+parseInt(_0x2e5670(0xef))/0x5+-parseInt(_0x2e5670(0xf4))/0x6*(parseInt(_0x2e5670(0xf6))/0x7)+-parseInt(_0x2e5670(0xff))/0x8*(parseInt(_0x2e5670(0xeb))/0x9)+parseInt(_0x2e5670(0xf1))/0xa;if(_0x2abd53===_0x1c81ee)break;else _0x3ca9c4['push'](_0x3ca9c4['shift']());}catch(_0x2321cc){_0x3ca9c4['push'](_0x3ca9c4['shift']());}}}(a212_0x3af8,0x1d738));import*as a212_0x515def from'node:fs';import*as a212_0x2ddba8 from'node:path';export function setSecureFilePermissions(_0x14c7f4){const _0x46bc03=a212_0x4df4;try{a212_0x515def[_0x46bc03(0xfc)](_0x14c7f4,0x180);}catch{console[_0x46bc03(0xfe)](_0x46bc03(0xf8)+_0x14c7f4);}}export function setSecureDirectoryPermissions(_0x8f1dd5){const _0x296af2=a212_0x4df4;try{a212_0x515def['chmodSync'](_0x8f1dd5,0x1c0);}catch{console[_0x296af2(0xfe)](_0x296af2(0xf8)+_0x8f1dd5);}}export function createSecureDirectory(_0x201e44){const _0x3ff059=a212_0x4df4;!a212_0x515def[_0x3ff059(0xed)](_0x201e44)&&(a212_0x515def[_0x3ff059(0xec)](_0x201e44,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x201e44));}function a212_0x3af8(){const _0x1a56c6=['590538xDabyj','625830Toxtrt','142ijNEuQ','37360WpYRbB','6744RghtXT','3298xmMquY','63zibsgt',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','statSync','chmodSync','writeFileSync','warn','24OgkZpN','mode','309681bTOAWx','mkdirSync','existsSync','toString','623700qPRMKM'];a212_0x3af8=function(){return _0x1a56c6;};return a212_0x3af8();}function a212_0x4df4(_0x19e082,_0x2d8e23){_0x19e082=_0x19e082-0xeb;const _0x3af8ce=a212_0x3af8();let _0x4df411=_0x3af8ce[_0x19e082];return _0x4df411;}export function validateSecureFilePermissions(_0x478499){const _0x4fd3ba=a212_0x4df4;try{const _0x56bdd2=a212_0x515def[_0x4fd3ba(0xfb)](_0x478499),_0x4efc30=_0x56bdd2[_0x4fd3ba(0x100)]&0x1ff,_0x5a59da=(_0x4efc30&0x3f)!==0x0;if(_0x5a59da)return console['warn'](_0x4fd3ba(0xfa)+_0x478499+_0x4fd3ba(0xf9)+_0x4efc30[_0x4fd3ba(0xee)](0x8)+_0x4fd3ba(0xf7)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2020cd,_0x4b65a5){const _0x2040e8=a212_0x4df4,_0x198358=a212_0x2ddba8['dirname'](_0x2020cd);createSecureDirectory(_0x198358),a212_0x515def[_0x2040e8(0xfd)](_0x2020cd,_0x4b65a5,{'mode':0x180}),setSecureFilePermissions(_0x2020cd);}
1
+ (function(_0xbb13b5,_0x3434c8){const _0x18377a=a212_0x11be,_0x43d00b=_0xbb13b5();while(!![]){try{const _0x3b0f6a=-parseInt(_0x18377a(0x9d))/0x1*(-parseInt(_0x18377a(0xa1))/0x2)+parseInt(_0x18377a(0x99))/0x3*(-parseInt(_0x18377a(0xa6))/0x4)+-parseInt(_0x18377a(0xa3))/0x5+parseInt(_0x18377a(0xa7))/0x6*(parseInt(_0x18377a(0x95))/0x7)+parseInt(_0x18377a(0x98))/0x8+-parseInt(_0x18377a(0xa5))/0x9*(parseInt(_0x18377a(0xa2))/0xa)+parseInt(_0x18377a(0xaa))/0xb*(parseInt(_0x18377a(0x9f))/0xc);if(_0x3b0f6a===_0x3434c8)break;else _0x43d00b['push'](_0x43d00b['shift']());}catch(_0x5ecb16){_0x43d00b['push'](_0x43d00b['shift']());}}}(a212_0x4bbe,0x54ebe));import*as a212_0x435cf1 from'node:fs';import*as a212_0x471f3c from'node:path';export function setSecureFilePermissions(_0x5c88d3){const _0x709da5=a212_0x11be;try{a212_0x435cf1[_0x709da5(0x9b)](_0x5c88d3,0x180);}catch{console['warn'](_0x709da5(0x97)+_0x5c88d3);}}function a212_0x4bbe(){const _0x5073ff=['142QBYjxB','16010UmKZvN','1631340Abjqpn','\x20has\x20insecure\x20permissions\x20(','2061ckOXES','332HsjKNv','1070052KttHyJ','writeFileSync','mode','7111940gSuVkH','7PpAOOb','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1616168WwgYDL','11523Wvloei','toString','chmodSync','mkdirSync','4685FYHFeg','statSync','12NjkGNJ','warn'];a212_0x4bbe=function(){return _0x5073ff;};return a212_0x4bbe();}export function setSecureDirectoryPermissions(_0x50fb5d){const _0x2f0aa1=a212_0x11be;try{a212_0x435cf1[_0x2f0aa1(0x9b)](_0x50fb5d,0x1c0);}catch{console[_0x2f0aa1(0xa0)](_0x2f0aa1(0x97)+_0x50fb5d);}}function a212_0x11be(_0x3ba026,_0x2710bd){_0x3ba026=_0x3ba026-0x95;const _0x4bbeb2=a212_0x4bbe();let _0x11be6c=_0x4bbeb2[_0x3ba026];return _0x11be6c;}export function createSecureDirectory(_0x819f45){const _0x541267=a212_0x11be;!a212_0x435cf1[_0x541267(0x96)](_0x819f45)&&(a212_0x435cf1[_0x541267(0x9c)](_0x819f45,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x819f45));}export function validateSecureFilePermissions(_0x12d2e9){const _0x5a4736=a212_0x11be;try{const _0xc32913=a212_0x435cf1[_0x5a4736(0x9e)](_0x12d2e9),_0x54d458=_0xc32913[_0x5a4736(0xa9)]&0x1ff,_0x21b329=(_0x54d458&0x3f)!==0x0;if(_0x21b329)return console[_0x5a4736(0xa0)]('Warning:\x20'+_0x12d2e9+_0x5a4736(0xa4)+_0x54d458[_0x5a4736(0x9a)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x30148c,_0x7882ff){const _0x438c52=a212_0x11be,_0x472b73=a212_0x471f3c['dirname'](_0x30148c);createSecureDirectory(_0x472b73),a212_0x435cf1[_0x438c52(0xa8)](_0x30148c,_0x7882ff,{'mode':0x180}),setSecureFilePermissions(_0x30148c);}
@@ -1 +1 @@
1
- function a213_0x1d73(){const _0x506b8a=['NOT_FOUND','81876nmzDXX','2704896WRlXCq','1059877ZYzUyw','\x27\x20not\x20found','Error\x20reading\x20file\x20\x27','message','Permission\x20denied\x20reading\x20file\x20\x27','EACCES','3TOmwtE','527620egeXst','File\x20\x27','6QaGNle','code','\x27:\x20','196000eHWQwc','157765uKllAU','ENOENT','utf-8','4166460KkLSec'];a213_0x1d73=function(){return _0x506b8a;};return a213_0x1d73();}function a213_0xb501(_0x23157f,_0x27c150){_0x23157f=_0x23157f-0x1af;const _0x1d7381=a213_0x1d73();let _0xb50114=_0x1d7381[_0x23157f];return _0xb50114;}(function(_0x3cd724,_0x9169a2){const _0x36f9cf=a213_0xb501,_0x53ba12=_0x3cd724();while(!![]){try{const _0x3faede=-parseInt(_0x36f9cf(0x1b7))/0x1+parseInt(_0x36f9cf(0x1bc))/0x2*(-parseInt(_0x36f9cf(0x1b0))/0x3)+-parseInt(_0x36f9cf(0x1b1))/0x4+-parseInt(_0x36f9cf(0x1b6))/0x5+parseInt(_0x36f9cf(0x1b3))/0x6*(-parseInt(_0x36f9cf(0x1be))/0x7)+parseInt(_0x36f9cf(0x1bd))/0x8+parseInt(_0x36f9cf(0x1ba))/0x9;if(_0x3faede===_0x9169a2)break;else _0x53ba12['push'](_0x53ba12['shift']());}catch(_0x4197a7){_0x53ba12['push'](_0x53ba12['shift']());}}}(a213_0x1d73,0x44519));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1b5aa1){const _0x4ef273=a213_0xb501;try{return readFileSync(_0x1b5aa1,_0x4ef273(0x1b9));}catch(_0x2b0bbb){const _0x4e2e76=_0x2b0bbb[_0x4ef273(0x1b4)];if(_0x4e2e76===_0x4ef273(0x1b8))throw new SDKError(ErrorCode[_0x4ef273(0x1bb)],_0x4ef273(0x1b2)+_0x1b5aa1+_0x4ef273(0x1bf),_0x2b0bbb);else{if(_0x4e2e76===_0x4ef273(0x1af))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4ef273(0x1c2)+_0x1b5aa1+'\x27',_0x2b0bbb);else throw new SDKError(ErrorCode['INTERNAL'],_0x4ef273(0x1c0)+_0x1b5aa1+_0x4ef273(0x1b5)+_0x2b0bbb[_0x4ef273(0x1c1)],_0x2b0bbb);}}}
1
+ (function(_0xd7cb8f,_0x4f0f3a){const _0x2df420=a213_0x5b42,_0x490493=_0xd7cb8f();while(!![]){try{const _0xfedf76=-parseInt(_0x2df420(0x105))/0x1+-parseInt(_0x2df420(0x104))/0x2+parseInt(_0x2df420(0x10f))/0x3+-parseInt(_0x2df420(0x107))/0x4*(parseInt(_0x2df420(0x10a))/0x5)+parseInt(_0x2df420(0x10c))/0x6+-parseInt(_0x2df420(0x110))/0x7*(parseInt(_0x2df420(0x114))/0x8)+-parseInt(_0x2df420(0x10b))/0x9*(-parseInt(_0x2df420(0x10e))/0xa);if(_0xfedf76===_0x4f0f3a)break;else _0x490493['push'](_0x490493['shift']());}catch(_0x56866a){_0x490493['push'](_0x490493['shift']());}}}(a213_0x5d1f,0x95618));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x3c5385){const _0x2368ab=a213_0x5b42;try{return readFileSync(_0x3c5385,_0x2368ab(0x117));}catch(_0x1da6e2){const _0x309ee5=_0x1da6e2[_0x2368ab(0x10d)];if(_0x309ee5==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2368ab(0x115)+_0x3c5385+_0x2368ab(0x106),_0x1da6e2);else{if(_0x309ee5===_0x2368ab(0x116))throw new SDKError(ErrorCode[_0x2368ab(0x108)],_0x2368ab(0x113)+_0x3c5385+'\x27',_0x1da6e2);else throw new SDKError(ErrorCode[_0x2368ab(0x112)],_0x2368ab(0x109)+_0x3c5385+_0x2368ab(0x111)+_0x1da6e2[_0x2368ab(0x103)],_0x1da6e2);}}}function a213_0x5b42(_0x5c7628,_0x5cb714){_0x5c7628=_0x5c7628-0x103;const _0x5d1fe5=a213_0x5d1f();let _0x5b42d5=_0x5d1fe5[_0x5c7628];return _0x5b42d5;}function a213_0x5d1f(){const _0x54425a=['2395266vUaurq','270315pzVCJB','\x27\x20not\x20found','12jxabfX','PERMISSION_DENIED','Error\x20reading\x20file\x20\x27','1581035sTCtzY','14067729UHJldC','4991652YTZxDw','code','10UQaVYG','3248892RuRdIF','15974drcCGw','\x27:\x20','INTERNAL','Permission\x20denied\x20reading\x20file\x20\x27','1576NbAvSO','File\x20\x27','EACCES','utf-8','message'];a213_0x5d1f=function(){return _0x54425a;};return a213_0x5d1f();}
@@ -1 +1 @@
1
- (function(_0x11c5a2,_0x1270fb){const _0x75d99a=a214_0x5bcc,_0x5f3327=_0x11c5a2();while(!![]){try{const _0x12c2d4=parseInt(_0x75d99a(0x13b))/0x1*(parseInt(_0x75d99a(0x13c))/0x2)+parseInt(_0x75d99a(0x149))/0x3+-parseInt(_0x75d99a(0x14e))/0x4*(-parseInt(_0x75d99a(0x14a))/0x5)+-parseInt(_0x75d99a(0x143))/0x6+-parseInt(_0x75d99a(0x138))/0x7+-parseInt(_0x75d99a(0x13a))/0x8*(-parseInt(_0x75d99a(0x14c))/0x9)+-parseInt(_0x75d99a(0x140))/0xa;if(_0x12c2d4===_0x1270fb)break;else _0x5f3327['push'](_0x5f3327['shift']());}catch(_0x5a8fba){_0x5f3327['push'](_0x5f3327['shift']());}}}(a214_0xa7ce,0x51383));function a214_0x5bcc(_0x57c93a,_0x4f2b2f){_0x57c93a=_0x57c93a-0x138;const _0xa7cee1=a214_0xa7ce();let _0x5bccd7=_0xa7cee1[_0x57c93a];return _0x5bccd7;}import*as a214_0x1bdbe8 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x323a99,_0x120c36,_0x451f3c){const _0x3eea3f=a214_0x5bcc,_0x5b4173=_0x323a99+'/'+_0x120c36,_0x2efdad=cache['get'](_0x5b4173);if(_0x2efdad&&Date['now']()-_0x2efdad['fetchedAt']<CACHE_TTL_MS)return Promise[_0x3eea3f(0x146)](_0x2efdad[_0x3eea3f(0x14b)]);return new Promise((_0x486b20,_0x4dbbf8)=>{const _0x366c5b=_0x3eea3f,_0x2c9ecd={'hostname':'api.github.com','path':_0x366c5b(0x151)+_0x323a99+'/'+_0x120c36+_0x366c5b(0x145),'headers':{'User-Agent':_0x451f3c,'Accept':_0x366c5b(0x152)},'timeout':REQUEST_TIMEOUT_MS},_0x58aab3=a214_0x1bdbe8[_0x366c5b(0x13e)](_0x2c9ecd,_0x126eb0=>{const _0x7bb835=_0x366c5b;let _0x585709='';_0x126eb0['on']('data',_0x191faf=>{_0x585709+=_0x191faf['toString']();}),_0x126eb0['on'](_0x7bb835(0x147),()=>{const _0x3e5a58=_0x7bb835;if(_0x126eb0['statusCode']!==0xc8){_0x4dbbf8(new Error(_0x3e5a58(0x14d)+_0x126eb0[_0x3e5a58(0x141)]+':\x20'+_0x585709['slice'](0x0,0xc8)));return;}try{const _0xeb4e83=JSON[_0x3e5a58(0x148)](_0x585709);cache[_0x3e5a58(0x144)](_0x5b4173,{'releases':_0xeb4e83,'fetchedAt':Date['now']()}),_0x486b20(_0xeb4e83);}catch(_0x1c52db){_0x4dbbf8(_0x1c52db);}});});_0x58aab3['on']('timeout',()=>{const _0x1d0eee=_0x366c5b;_0x58aab3[_0x1d0eee(0x142)](),_0x4dbbf8(new Error(_0x1d0eee(0x13d)+REQUEST_TIMEOUT_MS+'ms'));}),_0x58aab3['on'](_0x366c5b(0x150),_0x4dbbf8);});}export async function resolveReleaseTag(_0x41add6,_0x4e064e,_0x14bb59,_0x543e88){const _0x12851d=a214_0x5bcc;if(_0x41add6==='next')return null;const _0x10ea51=await fetchGitHubReleases(_0x4e064e,_0x14bb59,_0x543e88);if(_0x10ea51[_0x12851d(0x139)]===0x0)return null;const _0x2f2499=_0x10ea51[_0x12851d(0x13f)](_0x371b8a=>!_0x371b8a['prerelease']);return _0x2f2499?_0x2f2499[_0x12851d(0x14f)]:null;}function a214_0xa7ce(){const _0xdd4260=['145047ruhtXc','length','8JBfIHx','251kzKOZe','1486yHSKan','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','get','find','6958350nDiOpG','statusCode','destroy','1968270VMjksv','set','/releases?per_page=20','resolve','end','parse','470766KSHkJH','76355VDhjCC','releases','4356945fPzJwS','GitHub\x20API\x20returned\x20','144usiDFi','tag_name','error','/repos/','application/vnd.github+json'];a214_0xa7ce=function(){return _0xdd4260;};return a214_0xa7ce();}
1
+ function a214_0x14c6(_0x51c77f,_0x31af34){_0x51c77f=_0x51c77f-0x161;const _0x111a7b=a214_0x111a();let _0x14c6de=_0x111a7b[_0x51c77f];return _0x14c6de;}(function(_0x426b53,_0x11176e){const _0x3aae3b=a214_0x14c6,_0x2b73dc=_0x426b53();while(!![]){try{const _0x3ea97e=-parseInt(_0x3aae3b(0x163))/0x1+parseInt(_0x3aae3b(0x16d))/0x2+parseInt(_0x3aae3b(0x162))/0x3+parseInt(_0x3aae3b(0x161))/0x4*(-parseInt(_0x3aae3b(0x16b))/0x5)+parseInt(_0x3aae3b(0x17d))/0x6*(parseInt(_0x3aae3b(0x17e))/0x7)+parseInt(_0x3aae3b(0x16a))/0x8+parseInt(_0x3aae3b(0x177))/0x9*(-parseInt(_0x3aae3b(0x165))/0xa);if(_0x3ea97e===_0x11176e)break;else _0x2b73dc['push'](_0x2b73dc['shift']());}catch(_0x110a9c){_0x2b73dc['push'](_0x2b73dc['shift']());}}}(a214_0x111a,0xaf9cf));import*as a214_0xdfe10b from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xad5bd7,_0xfbbcc4,_0x226ad5){const _0x500665=a214_0x14c6,_0x52ca54=_0xad5bd7+'/'+_0xfbbcc4,_0x18f67e=cache[_0x500665(0x166)](_0x52ca54);if(_0x18f67e&&Date[_0x500665(0x17b)]()-_0x18f67e[_0x500665(0x167)]<CACHE_TTL_MS)return Promise[_0x500665(0x169)](_0x18f67e[_0x500665(0x170)]);return new Promise((_0x4ba034,_0x36c19b)=>{const _0x3a5b70=_0x500665,_0x711ed6={'hostname':_0x3a5b70(0x176),'path':_0x3a5b70(0x16e)+_0xad5bd7+'/'+_0xfbbcc4+_0x3a5b70(0x16f),'headers':{'User-Agent':_0x226ad5,'Accept':_0x3a5b70(0x179)},'timeout':REQUEST_TIMEOUT_MS},_0x373430=a214_0xdfe10b[_0x3a5b70(0x166)](_0x711ed6,_0x334b20=>{const _0x5d52c9=_0x3a5b70;let _0x66cc04='';_0x334b20['on'](_0x5d52c9(0x168),_0x497903=>{const _0x2933a6=_0x5d52c9;_0x66cc04+=_0x497903[_0x2933a6(0x175)]();}),_0x334b20['on'](_0x5d52c9(0x171),()=>{const _0x3e618f=_0x5d52c9;if(_0x334b20[_0x3e618f(0x173)]!==0xc8){_0x36c19b(new Error(_0x3e618f(0x17a)+_0x334b20[_0x3e618f(0x173)]+':\x20'+_0x66cc04['slice'](0x0,0xc8)));return;}try{const _0x566675=JSON[_0x3e618f(0x164)](_0x66cc04);cache['set'](_0x52ca54,{'releases':_0x566675,'fetchedAt':Date[_0x3e618f(0x17b)]()}),_0x4ba034(_0x566675);}catch(_0x2623e4){_0x36c19b(_0x2623e4);}});});_0x373430['on'](_0x3a5b70(0x16c),()=>{const _0x1bc47f=_0x3a5b70;_0x373430[_0x1bc47f(0x172)](),_0x36c19b(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x373430['on']('error',_0x36c19b);});}function a214_0x111a(){const _0x43f3d9=['timeout','1902508ILrJZK','/repos/','/releases?per_page=20','releases','end','destroy','statusCode','next','toString','api.github.com','18815292ptwUzo','find','application/vnd.github+json','GitHub\x20API\x20returned\x20','now','tag_name','162pCGznF','216559akhtQz','1450780OkOOiU','2263377pOgFMU','174486gSdDOU','parse','10qmkipG','get','fetchedAt','data','resolve','9350104ZyuErs','10NXEsIF'];a214_0x111a=function(){return _0x43f3d9;};return a214_0x111a();}export async function resolveReleaseTag(_0x2b2133,_0x363112,_0x419ff3,_0x590afe){const _0x215c87=a214_0x14c6;if(_0x2b2133===_0x215c87(0x174))return null;const _0x1a8eb1=await fetchGitHubReleases(_0x363112,_0x419ff3,_0x590afe);if(_0x1a8eb1['length']===0x0)return null;const _0x306b96=_0x1a8eb1[_0x215c87(0x178)](_0x4448be=>!_0x4448be['prerelease']);return _0x306b96?_0x306b96[_0x215c87(0x17c)]:null;}
@@ -1 +1 @@
1
- (function(_0x51b3aa,_0x372743){const _0x6f34b9=a215_0x20f7,_0x9c4aca=_0x51b3aa();while(!![]){try{const _0x51e297=parseInt(_0x6f34b9(0x17a))/0x1*(parseInt(_0x6f34b9(0x167))/0x2)+-parseInt(_0x6f34b9(0x171))/0x3+-parseInt(_0x6f34b9(0x16a))/0x4+-parseInt(_0x6f34b9(0x16e))/0x5*(-parseInt(_0x6f34b9(0x173))/0x6)+-parseInt(_0x6f34b9(0x16d))/0x7*(parseInt(_0x6f34b9(0x169))/0x8)+parseInt(_0x6f34b9(0x16c))/0x9+parseInt(_0x6f34b9(0x177))/0xa;if(_0x51e297===_0x372743)break;else _0x9c4aca['push'](_0x9c4aca['shift']());}catch(_0x1c659f){_0x9c4aca['push'](_0x9c4aca['shift']());}}}(a215_0x356b,0x9bc66));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x137566=a215_0x20f7;return process.env.TDX_CACHE_DIR||join(homedir(),_0x137566(0x178),'tdx');}function a215_0x356b(){const _0x17937a=['utf-8','\x22\x20already\x20registered\x20by\x20\x22','2151330OoceQj','get','3079794KsAnsj','clear','\x22,\x20cannot\x20register\x20for\x20\x22','stringify','12563560cGjTbF','.cache','parse','274IVtFIm','default','{profile}','1468zDyfrJ','trim','40GqNDyU','2516936qVZuDJ','Global\x20cache\x20key\x20\x22','1871388AcLXmv','272027OWHAog','5aVtlkB'];a215_0x356b=function(){return _0x17937a;};return a215_0x356b();}const registry=new Map();function a215_0x20f7(_0x5823a6,_0x25c066){_0x5823a6=_0x5823a6-0x165;const _0x356bee=a215_0x356b();let _0x20f746=_0x356bee[_0x5823a6];return _0x20f746;}export function registerGlobalCacheKey(_0x3e7fb4,_0x31de0a){const _0x5f00c5=a215_0x20f7,_0x189024=registry[_0x5f00c5(0x172)](_0x3e7fb4);if(_0x189024&&_0x189024!==_0x31de0a)throw new Error(_0x5f00c5(0x16b)+_0x3e7fb4+_0x5f00c5(0x170)+_0x189024+_0x5f00c5(0x175)+_0x31de0a+'\x22');registry['set'](_0x3e7fb4,_0x31de0a);}export function getGlobalCachePath(_0x3914d6){return join(getGlobalCacheDir(),_0x3914d6);}function ensureGlobalCacheDir(){const _0x555581=getGlobalCacheDir();!existsSync(_0x555581)&&mkdirSync(_0x555581,{'recursive':!![]});}function readCacheJson(_0x2efa37){const _0x2f72b5=a215_0x20f7,_0x30bbaf=getGlobalCachePath(_0x2efa37);if(!existsSync(_0x30bbaf))return undefined;try{const _0x54668f=readFileSync(_0x30bbaf,_0x2f72b5(0x16f));return JSON[_0x2f72b5(0x179)](_0x54668f);}catch{return undefined;}}function writeCacheJson(_0x5b32af,_0x2439cb){const _0x2d017d=a215_0x20f7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5b32af),JSON[_0x2d017d(0x176)](_0x2439cb,null,0x2),_0x2d017d(0x16f));}function readCacheText(_0x5eb704){const _0x269682=a215_0x20f7,_0x1d46e7=getGlobalCachePath(_0x5eb704);if(!existsSync(_0x1d46e7))return undefined;try{return readFileSync(_0x1d46e7,_0x269682(0x16f));}catch{return undefined;}}function writeCacheText(_0x465e8e,_0x41dd16){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x465e8e),_0x41dd16,'utf-8');}function clearCache(_0x136e31){const _0x47a00a=getGlobalCachePath(_0x136e31);if(existsSync(_0x47a00a))try{unlinkSync(_0x47a00a);}catch{}}function cacheExists(_0x27cfbf){return existsSync(getGlobalCachePath(_0x27cfbf));}export function createGlobalCache(_0x44adc7,_0x37e0ae){return registerGlobalCacheKey(_0x44adc7,_0x37e0ae),{'read':()=>readCacheJson(_0x44adc7),'write':_0x15296f=>writeCacheJson(_0x44adc7,_0x15296f),'clear':()=>clearCache(_0x44adc7),'exists':()=>cacheExists(_0x44adc7),'path':()=>getGlobalCachePath(_0x44adc7)};}export function createGlobalTextCache(_0x41a378,_0x4cdca6){const _0x3966ac=a215_0x20f7;return registerGlobalCacheKey(_0x41a378,_0x4cdca6),{'read':()=>readCacheText(_0x41a378)?.[_0x3966ac(0x168)]()||undefined,'write':_0x47c013=>writeCacheText(_0x41a378,_0x47c013),'clear':()=>clearCache(_0x41a378),'exists':()=>cacheExists(_0x41a378),'path':()=>getGlobalCachePath(_0x41a378)};}export function createProfileCache(_0x6789ec,_0x4bb75e){const _0x2a260e=_0x2a5248=>{const _0x11aadc=a215_0x20f7,_0x4731f3=_0x2a5248||_0x11aadc(0x165);return _0x6789ec['replace'](_0x11aadc(0x166),_0x4731f3);};return{'read':_0x227bcd=>{const _0x1fefd3=_0x2a260e(_0x227bcd);return registerGlobalCacheKey(_0x1fefd3,_0x4bb75e),readCacheJson(_0x1fefd3);},'write':(_0x2e19e8,_0x364eca)=>{const _0x35525a=_0x2a260e(_0x2e19e8);registerGlobalCacheKey(_0x35525a,_0x4bb75e),writeCacheJson(_0x35525a,_0x364eca);},'clear':_0x32bae5=>{const _0x47942a=_0x2a260e(_0x32bae5);clearCache(_0x47942a);},'exists':_0x3d756e=>{const _0x3e9a76=_0x2a260e(_0x3d756e);return cacheExists(_0x3e9a76);},'path':_0x6c8039=>{const _0x4f4bf1=_0x2a260e(_0x6c8039);return getGlobalCachePath(_0x4f4bf1);}};}export function createOptionalProfileCache(_0x11d7ab,_0x5c9d38,_0x300655={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x300655,_0x3d7152=_0x3e2d96=>{return _0x3e2d96?''+_0x11d7ab+profileSeparator+_0x3e2d96+suffix:''+_0x11d7ab+suffix;};return{'read':_0x126508=>{const _0xbe8835=_0x3d7152(_0x126508);return registerGlobalCacheKey(_0xbe8835,_0x5c9d38),readCacheJson(_0xbe8835);},'write':(_0x4c1978,_0x309678)=>{const _0x469fa1=_0x3d7152(_0x309678);registerGlobalCacheKey(_0x469fa1,_0x5c9d38),writeCacheJson(_0x469fa1,_0x4c1978);},'clear':_0x48adcf=>{const _0xe8c63f=_0x3d7152(_0x48adcf);clearCache(_0xe8c63f);},'exists':_0x1bcbc1=>{const _0x37b9e4=_0x3d7152(_0x1bcbc1);return cacheExists(_0x37b9e4);},'path':_0x4dc0c3=>{const _0x512238=_0x3d7152(_0x4dc0c3);return getGlobalCachePath(_0x512238);}};}export function clearGlobalRegistry(){const _0x18ea19=a215_0x20f7;registry[_0x18ea19(0x174)]();}
1
+ (function(_0xd346b9,_0x56f444){const _0x12123a=a215_0x55b5,_0x3a58b5=_0xd346b9();while(!![]){try{const _0x4b529e=parseInt(_0x12123a(0xe1))/0x1*(-parseInt(_0x12123a(0xd8))/0x2)+-parseInt(_0x12123a(0xd9))/0x3*(parseInt(_0x12123a(0xe4))/0x4)+-parseInt(_0x12123a(0xea))/0x5+parseInt(_0x12123a(0xe8))/0x6+-parseInt(_0x12123a(0xd7))/0x7*(-parseInt(_0x12123a(0xe2))/0x8)+-parseInt(_0x12123a(0xe0))/0x9*(-parseInt(_0x12123a(0xdd))/0xa)+-parseInt(_0x12123a(0xda))/0xb;if(_0x4b529e===_0x56f444)break;else _0x3a58b5['push'](_0x3a58b5['shift']());}catch(_0x3df8ce){_0x3a58b5['push'](_0x3a58b5['shift']());}}}(a215_0x3471,0xd554d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x27acec=a215_0x55b5;return process.env.TDX_CACHE_DIR||join(homedir(),_0x27acec(0xe3),_0x27acec(0xe7));}const registry=new Map();export function registerGlobalCacheKey(_0x711ddd,_0x594f3f){const _0x1aecae=a215_0x55b5,_0x55a477=registry[_0x1aecae(0xd6)](_0x711ddd);if(_0x55a477&&_0x55a477!==_0x594f3f)throw new Error('Global\x20cache\x20key\x20\x22'+_0x711ddd+_0x1aecae(0xdb)+_0x55a477+_0x1aecae(0xe5)+_0x594f3f+'\x22');registry['set'](_0x711ddd,_0x594f3f);}export function getGlobalCachePath(_0x134509){return join(getGlobalCacheDir(),_0x134509);}function ensureGlobalCacheDir(){const _0x3916cb=getGlobalCacheDir();!existsSync(_0x3916cb)&&mkdirSync(_0x3916cb,{'recursive':!![]});}function readCacheJson(_0x34a07f){const _0x41592b=a215_0x55b5,_0x1a4c2d=getGlobalCachePath(_0x34a07f);if(!existsSync(_0x1a4c2d))return undefined;try{const _0x3c6606=readFileSync(_0x1a4c2d,_0x41592b(0xe9));return JSON[_0x41592b(0xde)](_0x3c6606);}catch{return undefined;}}function writeCacheJson(_0x252a3b,_0x8dcbe4){const _0x52a90b=a215_0x55b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x252a3b),JSON['stringify'](_0x8dcbe4,null,0x2),_0x52a90b(0xe9));}function readCacheText(_0x3bbd5d){const _0x14310c=getGlobalCachePath(_0x3bbd5d);if(!existsSync(_0x14310c))return undefined;try{return readFileSync(_0x14310c,'utf-8');}catch{return undefined;}}function writeCacheText(_0x505278,_0x5ab5a8){const _0x1fff13=a215_0x55b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x505278),_0x5ab5a8,_0x1fff13(0xe9));}function clearCache(_0x18a99d){const _0x4fbbc6=getGlobalCachePath(_0x18a99d);if(existsSync(_0x4fbbc6))try{unlinkSync(_0x4fbbc6);}catch{}}function cacheExists(_0x1e7eb5){return existsSync(getGlobalCachePath(_0x1e7eb5));}export function createGlobalCache(_0x3b6955,_0x3aad17){return registerGlobalCacheKey(_0x3b6955,_0x3aad17),{'read':()=>readCacheJson(_0x3b6955),'write':_0x7d0e74=>writeCacheJson(_0x3b6955,_0x7d0e74),'clear':()=>clearCache(_0x3b6955),'exists':()=>cacheExists(_0x3b6955),'path':()=>getGlobalCachePath(_0x3b6955)};}export function createGlobalTextCache(_0x399537,_0x26584){const _0x391c74=a215_0x55b5;return registerGlobalCacheKey(_0x399537,_0x26584),{'read':()=>readCacheText(_0x399537)?.[_0x391c74(0xdf)]()||undefined,'write':_0x418757=>writeCacheText(_0x399537,_0x418757),'clear':()=>clearCache(_0x399537),'exists':()=>cacheExists(_0x399537),'path':()=>getGlobalCachePath(_0x399537)};}function a215_0x3471(){const _0x13ea99=['1bTYvHI','198064Nloced','.cache','44weEQdQ','\x22,\x20cannot\x20register\x20for\x20\x22','default','tdx','9309936UgtnWz','utf-8','4635520rkSaXl','get','175NsNtpR','415286DOBcId','70011JmYHUv','16505852RtoICX','\x22\x20already\x20registered\x20by\x20\x22','replace','15951850WYKJxK','parse','trim','9ydohrG'];a215_0x3471=function(){return _0x13ea99;};return a215_0x3471();}export function createProfileCache(_0x4f8b6d,_0x580b23){const _0x181684=_0x532a4e=>{const _0x4894a6=a215_0x55b5,_0x4ad520=_0x532a4e||_0x4894a6(0xe6);return _0x4f8b6d[_0x4894a6(0xdc)]('{profile}',_0x4ad520);};return{'read':_0x49cb8f=>{const _0x27a86d=_0x181684(_0x49cb8f);return registerGlobalCacheKey(_0x27a86d,_0x580b23),readCacheJson(_0x27a86d);},'write':(_0xfbfd1c,_0x34d53e)=>{const _0x4d84ef=_0x181684(_0xfbfd1c);registerGlobalCacheKey(_0x4d84ef,_0x580b23),writeCacheJson(_0x4d84ef,_0x34d53e);},'clear':_0x22714d=>{const _0x58d27d=_0x181684(_0x22714d);clearCache(_0x58d27d);},'exists':_0x49543d=>{const _0x2fcc08=_0x181684(_0x49543d);return cacheExists(_0x2fcc08);},'path':_0x5d66c6=>{const _0x81e172=_0x181684(_0x5d66c6);return getGlobalCachePath(_0x81e172);}};}export function createOptionalProfileCache(_0x2cbccf,_0x12bfaf,_0x4a8275={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4a8275,_0x2da2ff=_0x342bef=>{return _0x342bef?''+_0x2cbccf+profileSeparator+_0x342bef+suffix:''+_0x2cbccf+suffix;};return{'read':_0x25e644=>{const _0x4bf2c0=_0x2da2ff(_0x25e644);return registerGlobalCacheKey(_0x4bf2c0,_0x12bfaf),readCacheJson(_0x4bf2c0);},'write':(_0x3630a1,_0x34fa98)=>{const _0x56936a=_0x2da2ff(_0x34fa98);registerGlobalCacheKey(_0x56936a,_0x12bfaf),writeCacheJson(_0x56936a,_0x3630a1);},'clear':_0x4d8a92=>{const _0x468e8f=_0x2da2ff(_0x4d8a92);clearCache(_0x468e8f);},'exists':_0xddbce2=>{const _0x893276=_0x2da2ff(_0xddbce2);return cacheExists(_0x893276);},'path':_0x2f9cc3=>{const _0x1e2f68=_0x2da2ff(_0x2f9cc3);return getGlobalCachePath(_0x1e2f68);}};}function a215_0x55b5(_0x1b120a,_0x5014e6){_0x1b120a=_0x1b120a-0xd6;const _0x3471c4=a215_0x3471();let _0x55b55f=_0x3471c4[_0x1b120a];return _0x55b55f;}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a216_0x215d(){const _0x4ce20d=['Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Invalid\x20JSON\x20string:\x20','NOT_FOUND','7ffgOtT','2QVKbkK','Failed\x20to\x20load\x20JSON:\x20','8yqCOlg','168707SvtKZX','\x27:\x20','1130541cEbItL','2115300pXSido','1965576RtskcB','parse','message','INVALID_ARGUMENT','1428428rgivRs','utf-8','1574350EBKEgU','code','2666529Zeupde','File\x20not\x20found:\x20','INTERNAL'];a216_0x215d=function(){return _0x4ce20d;};return a216_0x215d();}(function(_0x3069e1,_0x4f78e2){const _0xb3630b=a216_0x40c9,_0x3d3fd5=_0x3069e1();while(!![]){try{const _0x5ae48a=parseInt(_0xb3630b(0x12e))/0x1+-parseInt(_0xb3630b(0x12b))/0x2*(-parseInt(_0xb3630b(0x130))/0x3)+-parseInt(_0xb3630b(0x11e))/0x4+parseInt(_0xb3630b(0x131))/0x5+parseInt(_0xb3630b(0x132))/0x6*(-parseInt(_0xb3630b(0x12a))/0x7)+parseInt(_0xb3630b(0x12d))/0x8*(parseInt(_0xb3630b(0x122))/0x9)+-parseInt(_0xb3630b(0x120))/0xa;if(_0x5ae48a===_0x4f78e2)break;else _0x3d3fd5['push'](_0x3d3fd5['shift']());}catch(_0x1022e4){_0x3d3fd5['push'](_0x3d3fd5['shift']());}}}(a216_0x215d,0x67365));function a216_0x40c9(_0xebace0,_0x3994e3){_0xebace0=_0xebace0-0x11e;const _0x215d99=a216_0x215d();let _0x40c9ef=_0x215d99[_0xebace0];return _0x40c9ef;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x54c344,_0x251a1d){const _0x3b522d=a216_0x40c9;try{if(_0x251a1d){const _0x3ca37f=await readFile(_0x54c344,_0x3b522d(0x11f));try{return JSON[_0x3b522d(0x133)](_0x3ca37f);}catch(_0x1bc4de){throw new SDKError(ErrorCode[_0x3b522d(0x135)],_0x3b522d(0x125)+_0x54c344+_0x3b522d(0x12f)+(_0x1bc4de instanceof Error?_0x1bc4de[_0x3b522d(0x134)]:String(_0x1bc4de)));}}else try{return JSON[_0x3b522d(0x133)](_0x54c344);}catch(_0x526659){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x3b522d(0x128)+(_0x526659 instanceof Error?_0x526659['message']:String(_0x526659)));}}catch(_0x347556){if(_0x347556 instanceof SDKError)throw _0x347556;if(_0x347556 instanceof Error&&_0x3b522d(0x121)in _0x347556){const _0x3124d1=_0x347556;if(_0x3124d1['code']==='ENOENT')throw new SDKError(ErrorCode[_0x3b522d(0x129)],_0x3b522d(0x123)+_0x54c344);else{if(_0x3124d1[_0x3b522d(0x121)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x3b522d(0x126)+_0x54c344);}}throw new SDKError(ErrorCode[_0x3b522d(0x124)],_0x3b522d(0x12c)+(_0x347556 instanceof Error?_0x347556[_0x3b522d(0x134)]:String(_0x347556)));}}export async function loadJSONFromOptions(_0x5b42a8,_0x38c674){const _0x5eae82=a216_0x40c9;if(_0x5b42a8&&_0x38c674)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5eae82(0x127));if(_0x5b42a8)return await loadJSON(_0x5b42a8,![]);if(_0x38c674)return await loadJSON(_0x38c674,!![]);return undefined;}
1
+ function a216_0x19d8(){const _0x53ae76=['3217672xBYxFV','125JilJDP','File\x20not\x20found:\x20','24426VtWRHB','2026504yzYBzb','INTERNAL','7wXDDxy','INVALID_ARGUMENT','64038ErNVmR','message','860zcALzV','627222trVdMx','6307212zAyWwb','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','Invalid\x20JSON\x20in\x20file\x20\x27','EACCES','ENOENT','Invalid\x20JSON\x20string:\x20','utf-8','Permission\x20denied\x20reading\x20file:\x20','3hTLLwL','2071069oMgNui','1TKMLLd','code'];a216_0x19d8=function(){return _0x53ae76;};return a216_0x19d8();}function a216_0x1b4c(_0x531dc6,_0x1e34af){_0x531dc6=_0x531dc6-0x197;const _0x19d816=a216_0x19d8();let _0x1b4c2c=_0x19d816[_0x531dc6];return _0x1b4c2c;}(function(_0x486606,_0x2c219f){const _0x48ce68=a216_0x1b4c,_0x288d8b=_0x486606();while(!![]){try{const _0x22a6ca=parseInt(_0x48ce68(0x1a7))/0x1*(-parseInt(_0x48ce68(0x19b))/0x2)+-parseInt(_0x48ce68(0x1a5))/0x3*(-parseInt(_0x48ce68(0x1ad))/0x4)+parseInt(_0x48ce68(0x1aa))/0x5*(parseInt(_0x48ce68(0x198))/0x6)+-parseInt(_0x48ce68(0x1af))/0x7*(-parseInt(_0x48ce68(0x1a9))/0x8)+-parseInt(_0x48ce68(0x1ac))/0x9*(parseInt(_0x48ce68(0x19a))/0xa)+parseInt(_0x48ce68(0x1a6))/0xb+-parseInt(_0x48ce68(0x19c))/0xc;if(_0x22a6ca===_0x2c219f)break;else _0x288d8b['push'](_0x288d8b['shift']());}catch(_0x4ab365){_0x288d8b['push'](_0x288d8b['shift']());}}}(a216_0x19d8,0x471fb));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x414a8c,_0x2a7005){const _0xc04ee6=a216_0x1b4c;try{if(_0x2a7005){const _0x1fe42c=await readFile(_0x414a8c,_0xc04ee6(0x1a3));try{return JSON[_0xc04ee6(0x19e)](_0x1fe42c);}catch(_0x2425fb){throw new SDKError(ErrorCode[_0xc04ee6(0x197)],_0xc04ee6(0x19f)+_0x414a8c+'\x27:\x20'+(_0x2425fb instanceof Error?_0x2425fb['message']:String(_0x2425fb)));}}else try{return JSON[_0xc04ee6(0x19e)](_0x414a8c);}catch(_0x176e5c){throw new SDKError(ErrorCode[_0xc04ee6(0x197)],_0xc04ee6(0x1a2)+(_0x176e5c instanceof Error?_0x176e5c[_0xc04ee6(0x199)]:String(_0x176e5c)));}}catch(_0x3db990){if(_0x3db990 instanceof SDKError)throw _0x3db990;if(_0x3db990 instanceof Error&&_0xc04ee6(0x1a8)in _0x3db990){const _0x47d099=_0x3db990;if(_0x47d099['code']===_0xc04ee6(0x1a1))throw new SDKError(ErrorCode['NOT_FOUND'],_0xc04ee6(0x1ab)+_0x414a8c);else{if(_0x47d099[_0xc04ee6(0x1a8)]===_0xc04ee6(0x1a0))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0xc04ee6(0x1a4)+_0x414a8c);}}throw new SDKError(ErrorCode[_0xc04ee6(0x1ae)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3db990 instanceof Error?_0x3db990['message']:String(_0x3db990)));}}export async function loadJSONFromOptions(_0x582980,_0x242256){const _0x33e4ff=a216_0x1b4c;if(_0x582980&&_0x242256)throw new SDKError(ErrorCode[_0x33e4ff(0x197)],_0x33e4ff(0x19d));if(_0x582980)return await loadJSON(_0x582980,![]);if(_0x242256)return await loadJSON(_0x242256,!![]);return undefined;}
@@ -1 +1 @@
1
- const a217_0x71dc90=a217_0x228d;function a217_0x2786(){const _0x275f38=['stringify','873jqCFVy','root','utf-8','2510LhBzOB','\x22,\x20cannot\x20register\x20for\x20\x22','143lXdqEL','get','2532012LFlYID','20CjvNzD','4528ejlQxd','4290TCZyXV','cwd','839684ZAMTTT','.cache/tdx','Cache\x20key\x20\x22','1130QQdhAD','3FsNOQv','180318CBHjeT','set','2677549bdSxtt'];a217_0x2786=function(){return _0x275f38;};return a217_0x2786();}(function(_0x521515,_0x3033a4){const _0x3d472d=a217_0x228d,_0x36d131=_0x521515();while(!![]){try{const _0x2e24a3=-parseInt(_0x3d472d(0x19f))/0x1*(-parseInt(_0x3d472d(0x1a9))/0x2)+-parseInt(_0x3d472d(0x1aa))/0x3*(parseInt(_0x3d472d(0x1a6))/0x4)+-parseInt(_0x3d472d(0x1a2))/0x5*(parseInt(_0x3d472d(0x1ab))/0x6)+parseInt(_0x3d472d(0x1ad))/0x7+parseInt(_0x3d472d(0x1a3))/0x8*(-parseInt(_0x3d472d(0x1af))/0x9)+-parseInt(_0x3d472d(0x1b2))/0xa*(parseInt(_0x3d472d(0x1a4))/0xb)+parseInt(_0x3d472d(0x1a1))/0xc;if(_0x2e24a3===_0x3033a4)break;else _0x36d131['push'](_0x36d131['shift']());}catch(_0x4fc1ed){_0x36d131['push'](_0x36d131['shift']());}}}(a217_0x2786,0x2eb92));function a217_0x228d(_0x3e3926,_0x5a6cee){_0x3e3926=_0x3e3926-0x19e;const _0x27863a=a217_0x2786();let _0x228da=_0x27863a[_0x3e3926];return _0x228da;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x71dc90(0x1a7),registry=new Map();export function registerCacheKey(_0x338674,_0xaf4187){const _0x17c277=a217_0x71dc90,_0x382067=registry[_0x17c277(0x1a0)](_0x338674);if(_0x382067&&_0x382067!==_0xaf4187)throw new Error(_0x17c277(0x1a8)+_0x338674+'\x22\x20already\x20registered\x20by\x20\x22'+_0x382067+_0x17c277(0x19e)+_0xaf4187+'\x22');registry[_0x17c277(0x1ac)](_0x338674,_0xaf4187);}export function getCacheDir(){const _0x4d0220=a217_0x71dc90,_0x583ab6=process[_0x4d0220(0x1a5)](),_0x1606c7=_0x583ab6===parse(_0x583ab6)[_0x4d0220(0x1b0)]?homedir():_0x583ab6;return join(_0x1606c7,LOCAL_CACHE_DIR);}export function getCachePath(_0x4299db){return join(getCacheDir(),_0x4299db);}function ensureCacheDir(){const _0x798e27=getCacheDir();!existsSync(_0x798e27)&&mkdirSync(_0x798e27,{'recursive':!![]});}function readCacheJson(_0x59db38){const _0x4c0895=getCachePath(_0x59db38);if(!existsSync(_0x4c0895))return undefined;try{const _0x23a285=readFileSync(_0x4c0895,'utf-8');return JSON['parse'](_0x23a285);}catch{return undefined;}}function writeCacheJson(_0x1bc3fd,_0x39de05){const _0x389ee1=a217_0x71dc90;ensureCacheDir(),writeFileSync(getCachePath(_0x1bc3fd),JSON[_0x389ee1(0x1ae)](_0x39de05,null,0x2),_0x389ee1(0x1b1));}function readCacheText(_0x3d1334){const _0xc4c253=a217_0x71dc90,_0x18fd1b=getCachePath(_0x3d1334);if(!existsSync(_0x18fd1b))return undefined;try{return readFileSync(_0x18fd1b,_0xc4c253(0x1b1));}catch{return undefined;}}function writeCacheText(_0x2d722d,_0x4680a2){const _0x185196=a217_0x71dc90;ensureCacheDir(),writeFileSync(getCachePath(_0x2d722d),_0x4680a2,_0x185196(0x1b1));}function clearCache(_0x479cee){const _0x47f31a=getCachePath(_0x479cee);if(existsSync(_0x47f31a))try{unlinkSync(_0x47f31a);}catch{}}function cacheExists(_0x8171ec){return existsSync(getCachePath(_0x8171ec));}export function createCache(_0x32cd65,_0x16c088){return registerCacheKey(_0x32cd65,_0x16c088),{'read':()=>readCacheJson(_0x32cd65),'write':_0x4ea9c2=>writeCacheJson(_0x32cd65,_0x4ea9c2),'clear':()=>clearCache(_0x32cd65),'exists':()=>cacheExists(_0x32cd65),'path':()=>getCachePath(_0x32cd65)};}export function createTextCache(_0xd07ee0,_0x39ff3d){return registerCacheKey(_0xd07ee0,_0x39ff3d),{'read':()=>readCacheText(_0xd07ee0)?.['trim']()||undefined,'write':_0x48a3d5=>writeCacheText(_0xd07ee0,_0x48a3d5),'clear':()=>clearCache(_0xd07ee0),'exists':()=>cacheExists(_0xd07ee0),'path':()=>getCachePath(_0xd07ee0)};}export function clearRegistry(){registry['clear']();}
1
+ const a217_0x3f28c8=a217_0x5c7c;(function(_0xea5e76,_0x988137){const _0x14e855=a217_0x5c7c,_0x2f1223=_0xea5e76();while(!![]){try{const _0x884f90=-parseInt(_0x14e855(0x19e))/0x1*(parseInt(_0x14e855(0x19d))/0x2)+parseInt(_0x14e855(0x197))/0x3+-parseInt(_0x14e855(0x19a))/0x4*(-parseInt(_0x14e855(0x195))/0x5)+-parseInt(_0x14e855(0x18f))/0x6+-parseInt(_0x14e855(0x192))/0x7*(-parseInt(_0x14e855(0x190))/0x8)+-parseInt(_0x14e855(0x19c))/0x9+-parseInt(_0x14e855(0x18e))/0xa*(-parseInt(_0x14e855(0x193))/0xb);if(_0x884f90===_0x988137)break;else _0x2f1223['push'](_0x2f1223['shift']());}catch(_0x18d935){_0x2f1223['push'](_0x2f1223['shift']());}}}(a217_0x404e,0x6534d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x3f28c8(0x198),registry=new Map();export function registerCacheKey(_0x367894,_0x419219){const _0x3f700c=a217_0x3f28c8,_0x2d35f0=registry[_0x3f700c(0x199)](_0x367894);if(_0x2d35f0&&_0x2d35f0!==_0x419219)throw new Error(_0x3f700c(0x19b)+_0x367894+_0x3f700c(0x194)+_0x2d35f0+_0x3f700c(0x1a1)+_0x419219+'\x22');registry[_0x3f700c(0x1a0)](_0x367894,_0x419219);}export function getCacheDir(){const _0x5395c9=a217_0x3f28c8,_0xc36dde=process[_0x5395c9(0x196)](),_0x18e887=_0xc36dde===parse(_0xc36dde)[_0x5395c9(0x1a3)]?homedir():_0xc36dde;return join(_0x18e887,LOCAL_CACHE_DIR);}export function getCachePath(_0x3148d8){return join(getCacheDir(),_0x3148d8);}function ensureCacheDir(){const _0xd5cca=getCacheDir();!existsSync(_0xd5cca)&&mkdirSync(_0xd5cca,{'recursive':!![]});}function readCacheJson(_0x20582f){const _0x291c16=a217_0x3f28c8,_0x513b75=getCachePath(_0x20582f);if(!existsSync(_0x513b75))return undefined;try{const _0x2f66ef=readFileSync(_0x513b75,_0x291c16(0x18d));return JSON[_0x291c16(0x191)](_0x2f66ef);}catch{return undefined;}}function a217_0x5c7c(_0x21e409,_0x376f70){_0x21e409=_0x21e409-0x18d;const _0x404e20=a217_0x404e();let _0x5c7cc6=_0x404e20[_0x21e409];return _0x5c7cc6;}function writeCacheJson(_0x2e771d,_0x30e84a){const _0x51dd12=a217_0x3f28c8;ensureCacheDir(),writeFileSync(getCachePath(_0x2e771d),JSON['stringify'](_0x30e84a,null,0x2),_0x51dd12(0x18d));}function readCacheText(_0x553230){const _0x1c8852=getCachePath(_0x553230);if(!existsSync(_0x1c8852))return undefined;try{return readFileSync(_0x1c8852,'utf-8');}catch{return undefined;}}function writeCacheText(_0x4c4ea7,_0x529cf){const _0xf59a60=a217_0x3f28c8;ensureCacheDir(),writeFileSync(getCachePath(_0x4c4ea7),_0x529cf,_0xf59a60(0x18d));}function clearCache(_0x5492cb){const _0x58922c=getCachePath(_0x5492cb);if(existsSync(_0x58922c))try{unlinkSync(_0x58922c);}catch{}}function cacheExists(_0xd7b794){return existsSync(getCachePath(_0xd7b794));}export function createCache(_0x211214,_0x4eee24){return registerCacheKey(_0x211214,_0x4eee24),{'read':()=>readCacheJson(_0x211214),'write':_0x1cca8e=>writeCacheJson(_0x211214,_0x1cca8e),'clear':()=>clearCache(_0x211214),'exists':()=>cacheExists(_0x211214),'path':()=>getCachePath(_0x211214)};}export function createTextCache(_0x592303,_0x81a2b0){const _0x4d598a=a217_0x3f28c8;return registerCacheKey(_0x592303,_0x81a2b0),{'read':()=>readCacheText(_0x592303)?.[_0x4d598a(0x1a2)]()||undefined,'write':_0x18f9e3=>writeCacheText(_0x592303,_0x18f9e3),'clear':()=>clearCache(_0x592303),'exists':()=>cacheExists(_0x592303),'path':()=>getCachePath(_0x592303)};}function a217_0x404e(){const _0x1936f4=['.cache/tdx','get','11396bKIcmA','Cache\x20key\x20\x22','7012566qgdFAR','24IBylyT','54013OKOfUE','clear','set','\x22,\x20cannot\x20register\x20for\x20\x22','trim','root','utf-8','10zXrSLy','3361476lHdIFm','1613224kTunxB','parse','21xhJeFD','14732069KBtTgh','\x22\x20already\x20registered\x20by\x20\x22','100qEGGII','cwd','1202697upkBZV'];a217_0x404e=function(){return _0x1936f4;};return a217_0x404e();}export function clearRegistry(){const _0x35c992=a217_0x3f28c8;registry[_0x35c992(0x19f)]();}
@@ -1 +1 @@
1
- const a218_0x42cd61=a218_0x3df3;(function(_0x5800ef,_0x5e2c69){const _0x3ae82d=a218_0x3df3,_0x508fa6=_0x5800ef();while(!![]){try{const _0x413653=parseInt(_0x3ae82d(0x1d8))/0x1*(-parseInt(_0x3ae82d(0x1db))/0x2)+-parseInt(_0x3ae82d(0x1d0))/0x3+-parseInt(_0x3ae82d(0x1e5))/0x4*(parseInt(_0x3ae82d(0x1e3))/0x5)+parseInt(_0x3ae82d(0x1d3))/0x6+parseInt(_0x3ae82d(0x1ea))/0x7*(-parseInt(_0x3ae82d(0x1cb))/0x8)+parseInt(_0x3ae82d(0x1e6))/0x9+parseInt(_0x3ae82d(0x1ce))/0xa;if(_0x413653===_0x5e2c69)break;else _0x508fa6['push'](_0x508fa6['shift']());}catch(_0x25e5f7){_0x508fa6['push'](_0x508fa6['shift']());}}}(a218_0x3ee3,0xaa8f7));import a218_0x35cbbe from'chalk';function a218_0x3df3(_0x17cd09,_0x53db19){_0x17cd09=_0x17cd09-0x1cb;const _0x3ee3bc=a218_0x3ee3();let _0x3df3d2=_0x3ee3bc[_0x17cd09];return _0x3df3d2;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x35cbbe,ChalkClass=chalkModule[a218_0x42cd61(0x1e8)]||chalkModule[a218_0x42cd61(0x1d4)]?.[a218_0x42cd61(0x1e8)];function a218_0x3ee3(){const _0x42c848=['red','INFO','2806505GPvNCh','cyan','8DeLHdC','5607297hTfPxf','colorLevel','Chalk',']\x20[','42CQrrzO','1220192toCTYf','chalk','green','35121120BjZFhM','ERROR','3249318dueTXL','format','gray','2434530cWFTcI','default','dim','colors','yellow','29wKCEGd','blue','component','49754KrQDDZ','TRACE','level','timestamp','message','WARN'];a218_0x3ee3=function(){return _0x42c848;};return a218_0x3ee3();}export class DefaultLogFormatter{['colors'];[a218_0x42cd61(0x1cc)];constructor(_0x22a7da={}){const _0xb532f2=a218_0x42cd61;this[_0xb532f2(0x1d6)]=_0x22a7da[_0xb532f2(0x1d6)]??![],this[_0xb532f2(0x1cc)]=_0x22a7da[_0xb532f2(0x1d6)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x35cbbe;}[a218_0x42cd61(0x1d1)](_0x6858b1){const _0x4efd43=a218_0x42cd61,_0x106fdf=formatTimestamp(_0x6858b1[_0x4efd43(0x1de)]),_0x46ba22=logLevelToString(_0x6858b1[_0x4efd43(0x1dd)]);if(!this[_0x4efd43(0x1d6)])return _0x106fdf+'\x20['+_0x46ba22+_0x4efd43(0x1e9)+_0x6858b1['component']+']\x20'+_0x6858b1['message'];const _0x282eb9=this['chalk'][_0x4efd43(0x1d5)](_0x106fdf),_0x21f868=this[_0x4efd43(0x1e7)](_0x46ba22,_0x6858b1[_0x4efd43(0x1dd)]),_0x1c471d=this[_0x4efd43(0x1cc)][_0x4efd43(0x1d9)]('['+_0x6858b1[_0x4efd43(0x1da)]+']');return _0x282eb9+'\x20'+_0x21f868+'\x20'+_0x1c471d+'\x20'+_0x6858b1[_0x4efd43(0x1df)];}[a218_0x42cd61(0x1e7)](_0x29d495,_0x2efa6d){const _0x4faffb=a218_0x42cd61;switch(_0x2efa6d){case LogLevel[_0x4faffb(0x1dc)]:return this[_0x4faffb(0x1cc)][_0x4faffb(0x1d2)]('['+_0x29d495+']');case LogLevel['DEBUG']:return this['chalk'][_0x4faffb(0x1cd)]('['+_0x29d495+']');case LogLevel[_0x4faffb(0x1e2)]:return this[_0x4faffb(0x1cc)][_0x4faffb(0x1e4)]('['+_0x29d495+']');case LogLevel[_0x4faffb(0x1e0)]:return this[_0x4faffb(0x1cc)][_0x4faffb(0x1d7)]('['+_0x29d495+']');case LogLevel[_0x4faffb(0x1cf)]:return this[_0x4faffb(0x1cc)][_0x4faffb(0x1e1)]('['+_0x29d495+']');default:return'['+_0x29d495+']';}}}
1
+ const a218_0x2a4b61=a218_0x476f;(function(_0x438519,_0x238cf5){const _0x16cea5=a218_0x476f,_0x6070a5=_0x438519();while(!![]){try{const _0x5a75df=parseInt(_0x16cea5(0x107))/0x1+parseInt(_0x16cea5(0x108))/0x2*(-parseInt(_0x16cea5(0x112))/0x3)+-parseInt(_0x16cea5(0x105))/0x4+-parseInt(_0x16cea5(0x10c))/0x5+parseInt(_0x16cea5(0xfb))/0x6*(parseInt(_0x16cea5(0x10b))/0x7)+-parseInt(_0x16cea5(0x106))/0x8+parseInt(_0x16cea5(0x100))/0x9;if(_0x5a75df===_0x238cf5)break;else _0x6070a5['push'](_0x6070a5['shift']());}catch(_0x14c344){_0x6070a5['push'](_0x6070a5['shift']());}}}(a218_0x1c4a,0xa8d24));import a218_0x5070ff from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x5070ff,ChalkClass=chalkModule['Chalk']||chalkModule[a218_0x2a4b61(0x109)]?.['Chalk'];export class DefaultLogFormatter{[a218_0x2a4b61(0xfe)];[a218_0x2a4b61(0x110)];constructor(_0x69e2af={}){const _0x14d510=a218_0x2a4b61;this[_0x14d510(0xfe)]=_0x69e2af['colors']??![],this['chalk']=_0x69e2af['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x5070ff;}['format'](_0x3fdd92){const _0x1665a7=a218_0x2a4b61,_0x4c9529=formatTimestamp(_0x3fdd92[_0x1665a7(0x10a)]),_0x144530=logLevelToString(_0x3fdd92[_0x1665a7(0x10f)]);if(!this[_0x1665a7(0xfe)])return _0x4c9529+'\x20['+_0x144530+']\x20['+_0x3fdd92[_0x1665a7(0xfc)]+']\x20'+_0x3fdd92[_0x1665a7(0x103)];const _0x36ee5b=this[_0x1665a7(0x110)][_0x1665a7(0x10d)](_0x4c9529),_0x2ec41d=this[_0x1665a7(0x104)](_0x144530,_0x3fdd92[_0x1665a7(0x10f)]),_0x438810=this[_0x1665a7(0x110)][_0x1665a7(0xfd)]('['+_0x3fdd92[_0x1665a7(0xfc)]+']');return _0x36ee5b+'\x20'+_0x2ec41d+'\x20'+_0x438810+'\x20'+_0x3fdd92[_0x1665a7(0x103)];}['colorLevel'](_0x39adfa,_0xfaf560){const _0x3a310d=a218_0x2a4b61;switch(_0xfaf560){case LogLevel[_0x3a310d(0x111)]:return this[_0x3a310d(0x110)]['gray']('['+_0x39adfa+']');case LogLevel[_0x3a310d(0x10e)]:return this[_0x3a310d(0x110)][_0x3a310d(0x101)]('['+_0x39adfa+']');case LogLevel['INFO']:return this[_0x3a310d(0x110)][_0x3a310d(0x102)]('['+_0x39adfa+']');case LogLevel[_0x3a310d(0x113)]:return this[_0x3a310d(0x110)][_0x3a310d(0xff)]('['+_0x39adfa+']');case LogLevel[_0x3a310d(0xfa)]:return this['chalk']['red']('['+_0x39adfa+']');default:return'['+_0x39adfa+']';}}}function a218_0x476f(_0x2f0cc9,_0x39fe4b){_0x2f0cc9=_0x2f0cc9-0xfa;const _0x1c4a9d=a218_0x1c4a();let _0x476ff4=_0x1c4a9d[_0x2f0cc9];return _0x476ff4;}function a218_0x1c4a(){const _0x411ac1=['18WZeiEN','WARN','ERROR','12BzLVSs','component','blue','colors','yellow','32258916dTBLvt','green','cyan','message','colorLevel','2660484CWQsfI','7000472rtupsC','155209GrqLwa','444382fTuzZW','default','timestamp','3509863HfNglV','5887665vGRhhx','dim','DEBUG','level','chalk','TRACE'];a218_0x1c4a=function(){return _0x411ac1;};return a218_0x1c4a();}
@@ -1 +1 @@
1
- function a219_0x53b8(_0x23fe7e,_0x29fa9c){_0x23fe7e=_0x23fe7e-0x13e;var _0x15ec6b=a219_0x15ec();var _0x53b815=_0x15ec6b[_0x23fe7e];return _0x53b815;}function a219_0x15ec(){var _0x12547f=['48431fxYWVv','2659447npTLgH','5775348rWiIgV','8888710fDMXlv','609606arRAOc','6985140uHfRvJ','216RRjIEy','10MVDBXf','1297926QCUnQG'];a219_0x15ec=function(){return _0x12547f;};return a219_0x15ec();}(function(_0x4b464a,_0x237d25){var _0x41f607=a219_0x53b8,_0x5da3f8=_0x4b464a();while(!![]){try{var _0x4c82a8=-parseInt(_0x41f607(0x145))/0x1*(-parseInt(_0x41f607(0x143))/0x2)+parseInt(_0x41f607(0x13e))/0x3+-parseInt(_0x41f607(0x141))/0x4+parseInt(_0x41f607(0x13f))/0x5+parseInt(_0x41f607(0x144))/0x6+parseInt(_0x41f607(0x146))/0x7+-parseInt(_0x41f607(0x142))/0x8*(parseInt(_0x41f607(0x140))/0x9);if(_0x4c82a8===_0x237d25)break;else _0x5da3f8['push'](_0x5da3f8['shift']());}catch(_0x4c2db0){_0x5da3f8['push'](_0x5da3f8['shift']());}}}(a219_0x15ec,0xebe08));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a219_0x1205(){var _0x36c261=['2jenwYV','2434173wMrvBL','697644qLXcCa','88AbLHUm','3119276rrrtks','6223259DpQJUw','5dsdlZZ','859842fEJDvX','375876XvwxAd','8079440FsoopU'];a219_0x1205=function(){return _0x36c261;};return a219_0x1205();}(function(_0x538945,_0x502d9b){var _0x17b9cd=a219_0x5b6f,_0x41ae30=_0x538945();while(!![]){try{var _0x43ad20=-parseInt(_0x17b9cd(0x129))/0x1+-parseInt(_0x17b9cd(0x12b))/0x2*(-parseInt(_0x17b9cd(0x12c))/0x3)+-parseInt(_0x17b9cd(0x12f))/0x4*(-parseInt(_0x17b9cd(0x131))/0x5)+parseInt(_0x17b9cd(0x132))/0x6+-parseInt(_0x17b9cd(0x130))/0x7+parseInt(_0x17b9cd(0x12e))/0x8*(parseInt(_0x17b9cd(0x12d))/0x9)+-parseInt(_0x17b9cd(0x12a))/0xa;if(_0x43ad20===_0x502d9b)break;else _0x41ae30['push'](_0x41ae30['shift']());}catch(_0x23087b){_0x41ae30['push'](_0x41ae30['shift']());}}}(a219_0x1205,0x7d920));function a219_0x5b6f(_0x3b116d,_0x3787f0){_0x3b116d=_0x3b116d-0x129;var _0x1205be=a219_0x1205();var _0x5b6f6b=_0x1205be[_0x3b116d];return _0x5b6f6b;}export{DefaultLogFormatter}from'./default-formatter.js';