@treasuredata/tdx 2026.7.0 → 2026.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.d.ts +20 -0
  13. package/dist/commands/cas-command.d.ts.map +1 -1
  14. package/dist/commands/cas-command.js +1 -1
  15. package/dist/commands/cas-command.js.map +1 -1
  16. package/dist/commands/cas-segment-command.d.ts +24 -0
  17. package/dist/commands/cas-segment-command.d.ts.map +1 -1
  18. package/dist/commands/cas-segment-command.js +1 -1
  19. package/dist/commands/cas-segment-command.js.map +1 -1
  20. package/dist/commands/chat-command.js +1 -1
  21. package/dist/commands/claude-command.js +1 -1
  22. package/dist/commands/claude-statusline-command.js +1 -1
  23. package/dist/commands/claude-usage-command.js +1 -1
  24. package/dist/commands/command.js +1 -1
  25. package/dist/commands/connection-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/delivery-command.js +1 -1
  28. package/dist/commands/describe.js +1 -1
  29. package/dist/commands/engage-campaign-pull-command.js +1 -1
  30. package/dist/commands/engage-campaign-push-command.js +1 -1
  31. package/dist/commands/engage-campaign-validate-command.js +1 -1
  32. package/dist/commands/engage-command.js +1 -1
  33. package/dist/commands/engage-template-pull-command.js +1 -1
  34. package/dist/commands/engage-template-push-command.js +1 -1
  35. package/dist/commands/engage-template-validate-command.js +1 -1
  36. package/dist/commands/job-command.js +1 -1
  37. package/dist/commands/journey-command.js +1 -1
  38. package/dist/commands/journey-validate-command.js +1 -1
  39. package/dist/commands/llm-command.js +1 -1
  40. package/dist/commands/mcp-command.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/policy-command.js +1 -1
  43. package/dist/commands/profile-command.js +1 -1
  44. package/dist/commands/profiles-command.js +1 -1
  45. package/dist/commands/query-command.js +1 -1
  46. package/dist/commands/schedule-command.js +1 -1
  47. package/dist/commands/segment-command.js +1 -1
  48. package/dist/commands/segment-create-command.js +1 -1
  49. package/dist/commands/segment-fields-command.js +1 -1
  50. package/dist/commands/segment-move-command.js +1 -1
  51. package/dist/commands/segment-pull-command.js +1 -1
  52. package/dist/commands/segment-push-command.js +1 -1
  53. package/dist/commands/segment-update-command.js +1 -1
  54. package/dist/commands/segment-use-command.js +1 -1
  55. package/dist/commands/segment-validate-command.js +1 -1
  56. package/dist/commands/segments.js +1 -1
  57. package/dist/commands/show.js +1 -1
  58. package/dist/commands/status-command.js +1 -1
  59. package/dist/commands/table-deleted.js +1 -1
  60. package/dist/commands/tables.js +1 -1
  61. package/dist/commands/unset-command.js +1 -1
  62. package/dist/commands/upgrade-command.js +1 -1
  63. package/dist/commands/use-command.js +1 -1
  64. package/dist/commands/user-command.js +1 -1
  65. package/dist/commands/work-command.js +1 -1
  66. package/dist/commands/workflow-command.js +1 -1
  67. package/dist/core/auth.js +1 -1
  68. package/dist/core/command-output.js +1 -1
  69. package/dist/core/config.js +1 -1
  70. package/dist/core/connection-cache.js +1 -1
  71. package/dist/core/constants.js +1 -1
  72. package/dist/core/credential-cache.js +1 -1
  73. package/dist/core/global-context.js +1 -1
  74. package/dist/core/keychain.js +1 -1
  75. package/dist/core/oauth-keychain.js +1 -1
  76. package/dist/core/oauth.js +1 -1
  77. package/dist/core/profile.js +1 -1
  78. package/dist/core/project-config.js +1 -1
  79. package/dist/core/session.js +1 -1
  80. package/dist/core/user-cache.js +1 -1
  81. package/dist/core/version.js +1 -1
  82. package/dist/index.js +1 -1
  83. package/dist/mcp/server.js +1 -1
  84. package/dist/mcp/tools/index.js +1 -1
  85. package/dist/mcp/tools/tdx-run.js +1 -1
  86. package/dist/mcp/tools/tdx-search.js +1 -1
  87. package/dist/mcp/tools/work-create-item.js +1 -1
  88. package/dist/mcp/utils.js +1 -1
  89. package/dist/proxy/claude-usage-tracker.js +1 -1
  90. package/dist/proxy/passthrough-server.js +1 -1
  91. package/dist/proxy/sse-usage-parser.js +1 -1
  92. package/dist/sdk/agent/agent-config.js +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.js +1 -1
  95. package/dist/sdk/agent/test/evaluator.js +1 -1
  96. package/dist/sdk/agent/test/executor.js +1 -1
  97. package/dist/sdk/agent/test/index.js +1 -1
  98. package/dist/sdk/agent/test/output.js +1 -1
  99. package/dist/sdk/agent/test/parser.js +1 -1
  100. package/dist/sdk/agent/tool-target-registry.js +1 -1
  101. package/dist/sdk/api.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.d.ts +83 -3
  103. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
  104. package/dist/sdk/cas/cas-api-client.js +1 -1
  105. package/dist/sdk/cas/cas-api-client.js.map +1 -1
  106. package/dist/sdk/cas/cas-audience-schema.d.ts +149 -0
  107. package/dist/sdk/cas/cas-audience-schema.d.ts.map +1 -0
  108. package/dist/sdk/cas/cas-audience-schema.js +1 -0
  109. package/dist/sdk/cas/cas-audience-schema.js.map +1 -0
  110. package/dist/sdk/cas/cas-audience-validator.d.ts +57 -0
  111. package/dist/sdk/cas/cas-audience-validator.d.ts.map +1 -0
  112. package/dist/sdk/cas/cas-audience-validator.js +1 -0
  113. package/dist/sdk/cas/cas-audience-validator.js.map +1 -0
  114. package/dist/sdk/cas/cas-audience-yaml.d.ts +32 -1
  115. package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -1
  116. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  117. package/dist/sdk/cas/cas-audience-yaml.js.map +1 -1
  118. package/dist/sdk/cas/cas-segment-yaml.d.ts +30 -2
  119. package/dist/sdk/cas/cas-segment-yaml.d.ts.map +1 -1
  120. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  121. package/dist/sdk/cas/cas-segment-yaml.js.map +1 -1
  122. package/dist/sdk/cas/index.d.ts +21 -0
  123. package/dist/sdk/cas/index.d.ts.map +1 -1
  124. package/dist/sdk/cas/index.js +1 -1
  125. package/dist/sdk/cas/index.js.map +1 -1
  126. package/dist/sdk/cas/pull-workflow.js +1 -1
  127. package/dist/sdk/cas/push-workflow.d.ts +131 -0
  128. package/dist/sdk/cas/push-workflow.d.ts.map +1 -1
  129. package/dist/sdk/cas/push-workflow.js +1 -1
  130. package/dist/sdk/cas/push-workflow.js.map +1 -1
  131. package/dist/sdk/cas/types.d.ts +33 -4
  132. package/dist/sdk/cas/types.d.ts.map +1 -1
  133. package/dist/sdk/cas/validate-files.d.ts +64 -0
  134. package/dist/sdk/cas/validate-files.d.ts.map +1 -0
  135. package/dist/sdk/cas/validate-files.js +1 -0
  136. package/dist/sdk/cas/validate-files.js.map +1 -0
  137. package/dist/sdk/client/cdp-api-client.js +1 -1
  138. package/dist/sdk/client/delivery-api-client.js +1 -1
  139. package/dist/sdk/client/endpoints.d.ts +11 -1
  140. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  141. package/dist/sdk/client/endpoints.js +1 -1
  142. package/dist/sdk/client/endpoints.js.map +1 -1
  143. package/dist/sdk/client/engage-api-client.js +1 -1
  144. package/dist/sdk/client/http-client.d.ts +1 -0
  145. package/dist/sdk/client/http-client.d.ts.map +1 -1
  146. package/dist/sdk/client/http-client.js +1 -1
  147. package/dist/sdk/client/http-client.js.map +1 -1
  148. package/dist/sdk/client/llm-api-client.js +1 -1
  149. package/dist/sdk/client/oauth-refresh.js +1 -1
  150. package/dist/sdk/client/rate-limiter.js +1 -1
  151. package/dist/sdk/client/td-api-client.js +1 -1
  152. package/dist/sdk/client/trino-api-client.js +1 -1
  153. package/dist/sdk/client/workflow-client.js +1 -1
  154. package/dist/sdk/connection-validator.js +1 -1
  155. package/dist/sdk/connection.js +1 -1
  156. package/dist/sdk/delivery.js +1 -1
  157. package/dist/sdk/engage/campaign-pull.js +1 -1
  158. package/dist/sdk/engage/campaign-push.js +1 -1
  159. package/dist/sdk/engage/campaign-validator.js +1 -1
  160. package/dist/sdk/engage/campaign-yaml.js +1 -1
  161. package/dist/sdk/engage/template-pull.js +1 -1
  162. package/dist/sdk/engage/template-push.js +1 -1
  163. package/dist/sdk/engage/template-validator.js +1 -1
  164. package/dist/sdk/engage/template-yaml.js +1 -1
  165. package/dist/sdk/engage/types/campaign-def.js +1 -1
  166. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  167. package/dist/sdk/engage/types/template-schema.js +1 -1
  168. package/dist/sdk/engage.js +1 -1
  169. package/dist/sdk/errors.d.ts +20 -0
  170. package/dist/sdk/errors.d.ts.map +1 -1
  171. package/dist/sdk/errors.js +1 -1
  172. package/dist/sdk/errors.js.map +1 -1
  173. package/dist/sdk/index.js +1 -1
  174. package/dist/sdk/io/index.js +1 -1
  175. package/dist/sdk/io/node-filesystem.js +1 -1
  176. package/dist/sdk/job.js +1 -1
  177. package/dist/sdk/journey.js +1 -1
  178. package/dist/sdk/llm/chat-cache.js +1 -1
  179. package/dist/sdk/llm/index.js +1 -1
  180. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  181. package/dist/sdk/llm/model-factors.js +1 -1
  182. package/dist/sdk/llm/user-settings.js +1 -1
  183. package/dist/sdk/personalization.js +1 -1
  184. package/dist/sdk/policy.js +1 -1
  185. package/dist/sdk/query/deleted-table-validation.js +1 -1
  186. package/dist/sdk/query/index.js +1 -1
  187. package/dist/sdk/query/sql-parser.js +1 -1
  188. package/dist/sdk/realtime.js +1 -1
  189. package/dist/sdk/schedule.js +1 -1
  190. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  191. package/dist/sdk/segment/fields-display.js +1 -1
  192. package/dist/sdk/segment/file-discovery.js +1 -1
  193. package/dist/sdk/segment/journey-utils.js +1 -1
  194. package/dist/sdk/segment/journey-validator.js +1 -1
  195. package/dist/sdk/segment/journey-yaml.js +1 -1
  196. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  197. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  198. package/dist/sdk/segment/pull-workflow.js +1 -1
  199. package/dist/sdk/segment/push-recovery.js +1 -1
  200. package/dist/sdk/segment/push-workflow.js +1 -1
  201. package/dist/sdk/segment/resolution-context.d.ts +16 -7
  202. package/dist/sdk/segment/resolution-context.d.ts.map +1 -1
  203. package/dist/sdk/segment/resolution-context.js +1 -1
  204. package/dist/sdk/segment/resolution-context.js.map +1 -1
  205. package/dist/sdk/segment/segment-path-parser.js +1 -1
  206. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  207. package/dist/sdk/segment/segment-validator.js +1 -1
  208. package/dist/sdk/segment/target-resolution.js +1 -1
  209. package/dist/sdk/segment/tdx-config.js +1 -1
  210. package/dist/sdk/segment/types/activation-schema.js +1 -1
  211. package/dist/sdk/segment/types/journey-def.js +1 -1
  212. package/dist/sdk/segment/types/journey-schema.js +1 -1
  213. package/dist/sdk/segment/types/segment-def.js +1 -1
  214. package/dist/sdk/segment/types/segment-schema.js +1 -1
  215. package/dist/sdk/segment/validate-files.js +1 -1
  216. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  217. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  218. package/dist/sdk/segment/yaml-validator.js +1 -1
  219. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  220. package/dist/sdk/segment.js +1 -1
  221. package/dist/sdk/types/cas.d.ts +99 -26
  222. package/dist/sdk/types/cas.d.ts.map +1 -1
  223. package/dist/sdk/types/index.d.ts +1 -1
  224. package/dist/sdk/types/index.d.ts.map +1 -1
  225. package/dist/sdk/types/index.js +1 -1
  226. package/dist/sdk/types/index.js.map +1 -1
  227. package/dist/sdk/types/progress.js +1 -1
  228. package/dist/sdk/types/workspace.js +1 -1
  229. package/dist/sdk/user.js +1 -1
  230. package/dist/sdk/util/format-detector.js +1 -1
  231. package/dist/sdk/util/formatters.js +1 -1
  232. package/dist/sdk/util/index.js +1 -1
  233. package/dist/sdk/util/paginate.js +1 -1
  234. package/dist/sdk/util/tree-formatter.js +1 -1
  235. package/dist/sdk/util/tree-search.js +1 -1
  236. package/dist/sdk/workflow/archive-validation.js +1 -1
  237. package/dist/sdk/workflow/clone-workflow.js +1 -1
  238. package/dist/sdk/workflow/index.js +1 -1
  239. package/dist/sdk/workflow/pull-workflow.js +1 -1
  240. package/dist/sdk/workflow/push-workflow.js +1 -1
  241. package/dist/sdk/workflow/task-graph.js +1 -1
  242. package/dist/sdk/workflow/tdx-config.js +1 -1
  243. package/dist/sdk/workflow/workflow-utils.js +1 -1
  244. package/dist/sdk/workspace/access-tracker.js +1 -1
  245. package/dist/sdk/workspace/frontmatter.js +1 -1
  246. package/dist/sdk/workspace/git.js +1 -1
  247. package/dist/sdk/workspace/index.js +1 -1
  248. package/dist/sdk/workspace/templates.js +1 -1
  249. package/dist/sdk/workspace/weekly.js +1 -1
  250. package/dist/sdk/workspace/wikilinks.js +1 -1
  251. package/dist/test-utils/command-runner.js +1 -1
  252. package/dist/test-utils/factories.js +1 -1
  253. package/dist/test-utils/fixtures.js +1 -1
  254. package/dist/test-utils/http-mock.js +1 -1
  255. package/dist/test-utils/index.js +1 -1
  256. package/dist/utils/async.js +1 -1
  257. package/dist/utils/colors.js +1 -1
  258. package/dist/utils/diff.js +1 -1
  259. package/dist/utils/file-permissions.js +1 -1
  260. package/dist/utils/file-reader.js +1 -1
  261. package/dist/utils/github-releases.js +1 -1
  262. package/dist/utils/global-cache.js +1 -1
  263. package/dist/utils/json-loader.js +1 -1
  264. package/dist/utils/local-cache.js +1 -1
  265. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  266. package/dist/utils/logger/formatters/index.js +1 -1
  267. package/dist/utils/logger/handlers/console-handler.js +1 -1
  268. package/dist/utils/logger/handlers/file-handler.js +1 -1
  269. package/dist/utils/logger/handlers/index.js +1 -1
  270. package/dist/utils/logger/handlers/null-handler.js +1 -1
  271. package/dist/utils/logger/index.js +1 -1
  272. package/dist/utils/logger/logger.js +1 -1
  273. package/dist/utils/logger/types.js +1 -1
  274. package/dist/utils/option-validation.js +1 -1
  275. package/dist/utils/process.js +1 -1
  276. package/dist/utils/prompt.js +1 -1
  277. package/dist/utils/spinner.js +1 -1
  278. package/dist/utils/sse-parser.js +1 -1
  279. package/dist/utils/string-utils.js +1 -1
  280. package/dist/utils/table-ref-parser.js +1 -1
  281. package/dist/utils/tdx-logger.js +1 -1
  282. package/dist/utils/version-check.js +1 -1
  283. package/package.json +1 -1
@@ -1 +1 @@
1
- const a213_0xa5c386=a213_0x52c7;(function(_0x5b6004,_0x26d941){const _0x508c3d=a213_0x52c7,_0x1e5478=_0x5b6004();while(!![]){try{const _0x341f56=-parseInt(_0x508c3d(0x224))/0x1*(parseInt(_0x508c3d(0x1f7))/0x2)+parseInt(_0x508c3d(0x1ee))/0x3+-parseInt(_0x508c3d(0x22c))/0x4+-parseInt(_0x508c3d(0x20a))/0x5*(-parseInt(_0x508c3d(0x20f))/0x6)+-parseInt(_0x508c3d(0x1ed))/0x7+-parseInt(_0x508c3d(0x20d))/0x8*(-parseInt(_0x508c3d(0x1fb))/0x9)+-parseInt(_0x508c3d(0x21f))/0xa*(-parseInt(_0x508c3d(0x1f2))/0xb);if(_0x341f56===_0x26d941)break;else _0x1e5478['push'](_0x1e5478['shift']());}catch(_0x590b09){_0x1e5478['push'](_0x1e5478['shift']());}}}(a213_0x3da3,0x2d7bc));import{vi}from'vitest';function a213_0x52c7(_0x2eccd1,_0x39ae91){_0x2eccd1=_0x2eccd1-0x1dd;const _0x3da318=a213_0x3da3();let _0x52c70b=_0x3da318[_0x2eccd1];return _0x52c70b;}function a213_0x3da3(){const _0x123d86=['filter','419568OVjmaL','withHost','1240794NusMIF','function','entries','reset','jsonResponse','description','method','stubs','matcher','rfc9457','\x20\x20(none)','headers','pathname','forEach','errorResponse','Service\x20Unavailable','5140intUhe','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Too\x20Many\x20Requests','wasCalled','test','47uEdqMG','url','stack','Unknown','parseRequest','host','register','simple','817636neCaxc','length','verify','Unmatched\x20stub','get','requests','GET','textResponse','\x20registered\x20at:\x0a','jsonResponseWithHeaders','Conflict','unnamed\x20stub','every','body','split','fetchMock','mockImplementation','searchParams','No\x20stub\x20matched\x20request:\x20','stringify','string','application/json','825125zsIcXs','341178xxDcTn','https://api.treasuredata.com/errors/','getMatchCount','Bad\x20Gateway','8206opPBju','error','withQuery','Forbidden','Internal\x20Server\x20Error','10546eVivmg','includes','REST','networkError','9dsObZl','matchCount','getStatusText','td-api','join','matched','parse','Unprocessable\x20Entity','slice','toUpperCase','map','Bad\x20Request','createFetch','toLowerCase','Request\x20body:\x20','5iiAXPX','isArray'];a213_0x3da3=function(){return _0x123d86;};return a213_0x3da3();}export class HTTPMockRegistry{[a213_0xa5c386(0x216)]=[];[a213_0xa5c386(0x231)]=[];['fetchMock']=null;[a213_0xa5c386(0x1f9)](_0x452cba,_0xce2810){return _0x327c2d=>{const _0xc9a00f=a213_0x52c7;if(_0x327c2d[_0xc9a00f(0x215)][_0xc9a00f(0x204)]()!==_0x452cba['toUpperCase']())return![];const _0x23edec=new URL(_0x327c2d['url']);if(typeof _0xce2810===_0xc9a00f(0x1eb))return _0x23edec[_0xc9a00f(0x21b)]===_0xce2810||_0x23edec[_0xc9a00f(0x21b)]['includes'](_0xce2810);return _0xce2810[_0xc9a00f(0x223)](_0x23edec[_0xc9a00f(0x21b)]);};}[a213_0xa5c386(0x1f4)](_0x4f2107,_0x1191ff){return _0x10acae=>{const _0x5310ac=a213_0x52c7;if(!_0x4f2107(_0x10acae))return![];const _0x2691aa=new URL(_0x10acae[_0x5310ac(0x225)]);return Object[_0x5310ac(0x211)](_0x1191ff)[_0x5310ac(0x1e3)](([_0x3bfc81,_0x2d22fb])=>_0x2691aa[_0x5310ac(0x1e8)][_0x5310ac(0x230)](_0x3bfc81)===_0x2d22fb);};}['withBody'](_0x51d820,_0x3cdde0){return _0x4d9567=>{const _0x2c5cc1=a213_0x52c7;if(!_0x51d820(_0x4d9567))return![];if(typeof _0x3cdde0===_0x2c5cc1(0x210))return _0x3cdde0(_0x4d9567[_0x2c5cc1(0x1e4)]);return JSON[_0x2c5cc1(0x1ea)](_0x4d9567['body'])===JSON[_0x2c5cc1(0x1ea)](_0x3cdde0);};}[a213_0xa5c386(0x20e)](_0x57e1dd,_0xe8f26b){return _0x2654eb=>{const _0x5b61ba=a213_0x52c7;if(!_0x57e1dd(_0x2654eb))return![];const _0x3cf10a=new URL(_0x2654eb[_0x5b61ba(0x225)]);return _0x3cf10a[_0x5b61ba(0x229)]===_0xe8f26b;};}[a213_0xa5c386(0x22a)](_0x226173,_0x1194a4,_0x1b9571){const _0x5ad4ba=a213_0xa5c386;this['stubs']['push']({'matcher':_0x226173,'responder':_0x1194a4,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5ad4ba(0x226)]??'','description':_0x1b9571?.[_0x5ad4ba(0x214)]});}['registerWithInspector'](_0x46ef3c,_0x35b808,_0x39d067){const _0x4921a4=_0x6caa86=>{const _0x306ebe=a213_0x52c7;return _0x39d067(_0x6caa86[_0x306ebe(0x1e4)],_0x6caa86),_0x35b808(_0x6caa86);};this['register'](_0x46ef3c,_0x4921a4);}static[a213_0xa5c386(0x213)](_0x3d413f,_0x1664b1=0xc8){const _0xc900e6=a213_0xa5c386;return()=>new Response(JSON[_0xc900e6(0x1ea)](_0x3d413f),{'status':_0x1664b1,'headers':{'Content-Type':_0xc900e6(0x1ec)}});}static[a213_0xa5c386(0x21d)](_0x111563,_0x510b00,_0x4ef6d2=a213_0xa5c386(0x22b)){return()=>{const _0x5f44e5=a213_0x52c7;let _0x5ee6e8;switch(_0x4ef6d2){case _0x5f44e5(0x1fe):_0x5ee6e8={'errors':{'error':_0x510b00,'message':_0x510b00,'severity':_0x5f44e5(0x1f3),'status_code':_0x111563}};break;case _0x5f44e5(0x218):_0x5ee6e8={'type':_0x5f44e5(0x1ef)+_0x111563,'title':HTTPMockRegistry['getStatusText'](_0x111563),'status':_0x111563,'detail':_0x510b00};break;default:_0x5ee6e8={'error':_0x510b00};}return new Response(JSON[_0x5f44e5(0x1ea)](_0x5ee6e8),{'status':_0x111563,'headers':{'Content-Type':_0x5f44e5(0x1ec)}});};}static[a213_0xa5c386(0x1e0)](_0x347165,_0x317269,_0x9709a6=0xc8){const _0x513bd4=a213_0xa5c386;return()=>new Response(JSON[_0x513bd4(0x1ea)](_0x347165),{'status':_0x9709a6,'headers':{'Content-Type':_0x513bd4(0x1ec),..._0x317269}});}static[a213_0xa5c386(0x1de)](_0x149098,_0x837326=0xc8){return()=>new Response(_0x149098,{'status':_0x837326,'headers':{'Content-Type':'text/plain'}});}static[a213_0xa5c386(0x1fa)](_0x1441f2){return()=>{throw new Error(_0x1441f2);};}[a213_0xa5c386(0x207)](){const _0x5cd60b=a213_0xa5c386;return this[_0x5cd60b(0x1e6)]=vi['fn']()[_0x5cd60b(0x1e7)](async(_0x53c95e,_0x40d73d)=>{const _0x21b711=_0x5cd60b,_0x2bfb40=this[_0x21b711(0x228)](_0x53c95e,_0x40d73d);this[_0x21b711(0x231)]['push'](_0x2bfb40);for(const _0x4fb932 of this['stubs']){if(_0x4fb932[_0x21b711(0x217)](_0x2bfb40))return _0x4fb932[_0x21b711(0x200)]=!![],_0x4fb932[_0x21b711(0x1fc)]++,_0x4fb932['responder'](_0x2bfb40);}const _0x35b2e5=this['stubs']['map']((_0x2baae2,_0x2114d9)=>'\x20\x20'+(_0x2114d9+0x1)+'.\x20'+(_0x2baae2[_0x21b711(0x214)]??_0x21b711(0x1e2)))[_0x21b711(0x1ff)]('\x0a');throw new Error(_0x21b711(0x1e9)+_0x2bfb40['method']+'\x20'+_0x2bfb40[_0x21b711(0x225)]+'\x0a'+(_0x21b711(0x209)+JSON[_0x21b711(0x1ea)](_0x2bfb40[_0x21b711(0x1e4)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x35b2e5||_0x21b711(0x219))));}),this[_0x5cd60b(0x1e6)];}['parseRequest'](_0x53951e,_0x4ba7e6){const _0x56bd56=a213_0xa5c386,_0x10980e={};if(_0x4ba7e6?.[_0x56bd56(0x21a)]){if(_0x4ba7e6[_0x56bd56(0x21a)]instanceof Headers)_0x4ba7e6[_0x56bd56(0x21a)][_0x56bd56(0x21c)]((_0x2442bb,_0x5f5061)=>{const _0x42a051=_0x56bd56;_0x10980e[_0x5f5061[_0x42a051(0x208)]()]=_0x2442bb;});else{if(Array[_0x56bd56(0x20b)](_0x4ba7e6['headers']))for(const [_0x1642ec,_0x4e0f56]of _0x4ba7e6['headers']){_0x10980e[_0x1642ec[_0x56bd56(0x208)]()]=_0x4e0f56;}else for(const [_0x5d17b6,_0x5e0160]of Object[_0x56bd56(0x211)](_0x4ba7e6[_0x56bd56(0x21a)])){_0x5e0160!==undefined&&(_0x10980e[_0x5d17b6[_0x56bd56(0x208)]()]=_0x5e0160);}}}let _0x18684d;if(_0x4ba7e6?.['body'])try{_0x18684d=JSON[_0x56bd56(0x201)](_0x4ba7e6[_0x56bd56(0x1e4)]);}catch{_0x18684d=_0x4ba7e6[_0x56bd56(0x1e4)];}return{'method':_0x4ba7e6?.['method']??_0x56bd56(0x1dd),'url':_0x53951e,'headers':_0x10980e,'body':_0x18684d};}[a213_0xa5c386(0x22e)](_0x2ad63e){const _0x55799b=a213_0xa5c386,_0xea666a=this[_0x55799b(0x216)][_0x55799b(0x20c)](_0x929a77=>!_0x929a77[_0x55799b(0x200)]);if(_0xea666a[_0x55799b(0x22d)]>0x0){const _0x4b4811=_0xea666a[_0x55799b(0x205)](_0xc83dc4=>{const _0x2e3663=_0x55799b,_0x45a143=_0xc83dc4[_0x2e3663(0x214)]?'\x20('+_0xc83dc4[_0x2e3663(0x214)]+')':'',_0x492f70=_0xc83dc4['stack'][_0x2e3663(0x1e5)]('\x0a')[_0x2e3663(0x203)](0x2,0x5)[_0x2e3663(0x1ff)]('\x0a');return _0x2e3663(0x22f)+_0x45a143+_0x2e3663(0x1df)+_0x492f70;});_0x2ad63e['fail'](_0xea666a[_0x55799b(0x22d)]+_0x55799b(0x220)+_0x4b4811['join']('\x0a\x0a'));}}['getRequests'](){const _0x10c148=a213_0xa5c386;return[...this[_0x10c148(0x231)]];}['getLastRequest'](){const _0x51f89f=a213_0xa5c386;return this[_0x51f89f(0x231)][this['requests'][_0x51f89f(0x22d)]-0x1];}[a213_0xa5c386(0x222)](_0x902d0c,_0x3b5d7e){const _0x31a826=a213_0xa5c386;return this[_0x31a826(0x231)]['some'](_0x7f4e91=>{const _0x559c58=_0x31a826;if(_0x7f4e91[_0x559c58(0x215)][_0x559c58(0x204)]()!==_0x902d0c[_0x559c58(0x204)]())return![];if(typeof _0x3b5d7e===_0x559c58(0x1eb))return _0x7f4e91[_0x559c58(0x225)][_0x559c58(0x1f8)](_0x3b5d7e);return _0x3b5d7e[_0x559c58(0x223)](_0x7f4e91['url']);});}[a213_0xa5c386(0x1f0)](_0x471f08){const _0x14fb9f=a213_0xa5c386;return this['stubs'][_0x471f08]?.[_0x14fb9f(0x1fc)]??0x0;}[a213_0xa5c386(0x212)](){const _0xb25e91=a213_0xa5c386;this['stubs']=[],this[_0xb25e91(0x231)]=[],this['fetchMock']=null;}static[a213_0xa5c386(0x1fd)](_0x4a1c47){const _0x5f29de=a213_0xa5c386,_0x29da36={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x5f29de(0x206),0x191:'Unauthorized',0x193:_0x5f29de(0x1f5),0x194:'Not\x20Found',0x199:_0x5f29de(0x1e1),0x1a6:_0x5f29de(0x202),0x1ad:_0x5f29de(0x221),0x1f4:_0x5f29de(0x1f6),0x1f6:_0x5f29de(0x1f1),0x1f7:_0x5f29de(0x21e)};return _0x29da36[_0x4a1c47]??_0x5f29de(0x227);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a216_0x591570=a216_0x1b3e;function a216_0x1b3e(_0xa9fb4c,_0x5dd904){_0xa9fb4c=_0xa9fb4c-0x1ad;const _0x41a95c=a216_0x41a9();let _0x1b3e74=_0x41a95c[_0xa9fb4c];return _0x1b3e74;}(function(_0xef9b52,_0x357a8b){const _0x1d571b=a216_0x1b3e,_0x4975fb=_0xef9b52();while(!![]){try{const _0xe840fc=parseInt(_0x1d571b(0x1d1))/0x1+parseInt(_0x1d571b(0x1e3))/0x2*(-parseInt(_0x1d571b(0x1b6))/0x3)+parseInt(_0x1d571b(0x1da))/0x4*(-parseInt(_0x1d571b(0x200))/0x5)+parseInt(_0x1d571b(0x1dd))/0x6*(-parseInt(_0x1d571b(0x1ee))/0x7)+parseInt(_0x1d571b(0x1f2))/0x8*(-parseInt(_0x1d571b(0x1c0))/0x9)+-parseInt(_0x1d571b(0x203))/0xa*(-parseInt(_0x1d571b(0x1f0))/0xb)+parseInt(_0x1d571b(0x1e4))/0xc*(parseInt(_0x1d571b(0x1f9))/0xd);if(_0xe840fc===_0x357a8b)break;else _0x4975fb['push'](_0x4975fb['shift']());}catch(_0x1f7d8b){_0x4975fb['push'](_0x4975fb['shift']());}}}(a216_0x41a9,0x203e3));import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a216_0x591570(0x1d5)]=[];['fetchMock']=null;[a216_0x591570(0x1bf)](_0x1e65a3,_0xd601e9){return _0xb55129=>{const _0x9d05fe=a216_0x1b3e;if(_0xb55129[_0x9d05fe(0x1e8)]['toUpperCase']()!==_0x1e65a3[_0x9d05fe(0x1b2)]())return![];const _0x347a05=new URL(_0xb55129[_0x9d05fe(0x1ff)]);if(typeof _0xd601e9===_0x9d05fe(0x1ae))return _0x347a05[_0x9d05fe(0x1c8)]===_0xd601e9||_0x347a05[_0x9d05fe(0x1c8)][_0x9d05fe(0x1b5)](_0xd601e9);return _0xd601e9[_0x9d05fe(0x202)](_0x347a05[_0x9d05fe(0x1c8)]);};}[a216_0x591570(0x1c4)](_0x5e0953,_0x1f85f8){return _0x3e17ac=>{const _0x17d315=a216_0x1b3e;if(!_0x5e0953(_0x3e17ac))return![];const _0xcf3696=new URL(_0x3e17ac['url']);return Object[_0x17d315(0x1b3)](_0x1f85f8)[_0x17d315(0x1f8)](([_0xaa8731,_0xc5c6af])=>_0xcf3696['searchParams'][_0x17d315(0x1de)](_0xaa8731)===_0xc5c6af);};}['withBody'](_0x4e7e76,_0x3c6578){return _0xda392c=>{const _0x5a796b=a216_0x1b3e;if(!_0x4e7e76(_0xda392c))return![];if(typeof _0x3c6578===_0x5a796b(0x1cb))return _0x3c6578(_0xda392c[_0x5a796b(0x207)]);return JSON[_0x5a796b(0x1e0)](_0xda392c[_0x5a796b(0x207)])===JSON['stringify'](_0x3c6578);};}[a216_0x591570(0x1fb)](_0x38e129,_0x43bf40){return _0x3e7357=>{const _0x3b2d7d=a216_0x1b3e;if(!_0x38e129(_0x3e7357))return![];const _0x7685fd=new URL(_0x3e7357[_0x3b2d7d(0x1ff)]);return _0x7685fd[_0x3b2d7d(0x1ef)]===_0x43bf40;};}[a216_0x591570(0x1e7)](_0x5f07e3,_0x38235b,_0x1e2def){const _0x5509e2=a216_0x591570;this['stubs'][_0x5509e2(0x204)]({'matcher':_0x5f07e3,'responder':_0x38235b,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5509e2(0x1bb)]??'','description':_0x1e2def?.[_0x5509e2(0x1f3)]});}[a216_0x591570(0x1eb)](_0x26e99d,_0x539657,_0x474843){const _0x47248d=a216_0x591570,_0x1058fa=_0x15836d=>{return _0x474843(_0x15836d['body'],_0x15836d),_0x539657(_0x15836d);};this[_0x47248d(0x1e7)](_0x26e99d,_0x1058fa);}static['jsonResponse'](_0x34913f,_0x282acd=0xc8){const _0x2d133b=a216_0x591570;return()=>new Response(JSON[_0x2d133b(0x1e0)](_0x34913f),{'status':_0x282acd,'headers':{'Content-Type':_0x2d133b(0x1c2)}});}static[a216_0x591570(0x1be)](_0x342b8f,_0x1ee098,_0x3e3fed=a216_0x591570(0x1cf)){return()=>{const _0x12c391=a216_0x1b3e;let _0xa34aa1;switch(_0x3e3fed){case _0x12c391(0x1e9):_0xa34aa1={'errors':{'error':_0x1ee098,'message':_0x1ee098,'severity':_0x12c391(0x1e6),'status_code':_0x342b8f}};break;case _0x12c391(0x1b1):_0xa34aa1={'type':'https://api.treasuredata.com/errors/'+_0x342b8f,'title':HTTPMockRegistry[_0x12c391(0x1d8)](_0x342b8f),'status':_0x342b8f,'detail':_0x1ee098};break;default:_0xa34aa1={'error':_0x1ee098};}return new Response(JSON[_0x12c391(0x1e0)](_0xa34aa1),{'status':_0x342b8f,'headers':{'Content-Type':_0x12c391(0x1c2)}});};}static[a216_0x591570(0x1d2)](_0x43aa14,_0x425fc5,_0x2e223f=0xc8){const _0x18556f=a216_0x591570;return()=>new Response(JSON['stringify'](_0x43aa14),{'status':_0x2e223f,'headers':{'Content-Type':_0x18556f(0x1c2),..._0x425fc5}});}static[a216_0x591570(0x1b8)](_0x5ba5ea,_0x5caa56=0xc8){return()=>new Response(_0x5ba5ea,{'status':_0x5caa56,'headers':{'Content-Type':'text/plain'}});}static[a216_0x591570(0x1d9)](_0xd003db){return()=>{throw new Error(_0xd003db);};}[a216_0x591570(0x1c5)](){const _0x37b90b=a216_0x591570;return this['fetchMock']=vi['fn']()[_0x37b90b(0x1ce)](async(_0x12a5ec,_0x340257)=>{const _0x4b5562=_0x37b90b,_0x3d0802=this[_0x4b5562(0x1d3)](_0x12a5ec,_0x340257);this['requests'][_0x4b5562(0x204)](_0x3d0802);for(const _0x2ea444 of this[_0x4b5562(0x1b4)]){if(_0x2ea444[_0x4b5562(0x1f6)](_0x3d0802))return _0x2ea444[_0x4b5562(0x1fc)]=!![],_0x2ea444[_0x4b5562(0x1f4)]++,_0x2ea444['responder'](_0x3d0802);}const _0x12d002=this[_0x4b5562(0x1b4)][_0x4b5562(0x1fe)]((_0x12e388,_0x51e124)=>'\x20\x20'+(_0x51e124+0x1)+'.\x20'+(_0x12e388[_0x4b5562(0x1f3)]??_0x4b5562(0x1af)))['join']('\x0a');throw new Error(_0x4b5562(0x1e5)+_0x3d0802[_0x4b5562(0x1e8)]+'\x20'+_0x3d0802[_0x4b5562(0x1ff)]+'\x0a'+(_0x4b5562(0x205)+JSON[_0x4b5562(0x1e0)](_0x3d0802['body'])+'\x0a')+(_0x4b5562(0x1f1)+(_0x12d002||_0x4b5562(0x1c1))));}),this[_0x37b90b(0x1f5)];}['parseRequest'](_0x4189d5,_0x159aa3){const _0x41627c=a216_0x591570,_0x13d6e9={};if(_0x159aa3?.[_0x41627c(0x1d7)]){if(_0x159aa3[_0x41627c(0x1d7)]instanceof Headers)_0x159aa3[_0x41627c(0x1d7)][_0x41627c(0x1cc)]((_0x448dec,_0x508519)=>{const _0x18cbe5=_0x41627c;_0x13d6e9[_0x508519[_0x18cbe5(0x1c9)]()]=_0x448dec;});else{if(Array[_0x41627c(0x1fd)](_0x159aa3[_0x41627c(0x1d7)]))for(const [_0x5f48b7,_0xad2b60]of _0x159aa3[_0x41627c(0x1d7)]){_0x13d6e9[_0x5f48b7[_0x41627c(0x1c9)]()]=_0xad2b60;}else for(const [_0x5b6785,_0x5e79eb]of Object[_0x41627c(0x1b3)](_0x159aa3[_0x41627c(0x1d7)])){_0x5e79eb!==undefined&&(_0x13d6e9[_0x5b6785[_0x41627c(0x1c9)]()]=_0x5e79eb);}}}let _0x2b0ec9;if(_0x159aa3?.['body'])try{_0x2b0ec9=JSON[_0x41627c(0x1df)](_0x159aa3[_0x41627c(0x207)]);}catch{_0x2b0ec9=_0x159aa3['body'];}return{'method':_0x159aa3?.['method']??_0x41627c(0x1cd),'url':_0x4189d5,'headers':_0x13d6e9,'body':_0x2b0ec9};}[a216_0x591570(0x1b7)](_0x65d4d9){const _0x7454d5=a216_0x591570,_0x503fd5=this[_0x7454d5(0x1b4)][_0x7454d5(0x1ec)](_0x32d4f8=>!_0x32d4f8[_0x7454d5(0x1fc)]);if(_0x503fd5[_0x7454d5(0x1bc)]>0x0){const _0x4075af=_0x503fd5[_0x7454d5(0x1fe)](_0x1b0fa0=>{const _0x559985=_0x7454d5,_0x3bc981=_0x1b0fa0[_0x559985(0x1f3)]?'\x20('+_0x1b0fa0['description']+')':'',_0x21d834=_0x1b0fa0[_0x559985(0x1bb)][_0x559985(0x201)]('\x0a')[_0x559985(0x1ba)](0x2,0x5)[_0x559985(0x1c7)]('\x0a');return _0x559985(0x1b0)+_0x3bc981+_0x559985(0x1d6)+_0x21d834;});_0x65d4d9['fail'](_0x503fd5['length']+_0x7454d5(0x1ea)+_0x4075af[_0x7454d5(0x1c7)]('\x0a\x0a'));}}[a216_0x591570(0x1f7)](){return[...this['requests']];}[a216_0x591570(0x1dc)](){const _0x164579=a216_0x591570;return this[_0x164579(0x1d5)][this['requests'][_0x164579(0x1bc)]-0x1];}[a216_0x591570(0x1ed)](_0x1319fe,_0x4ccc2e){const _0x75d388=a216_0x591570;return this[_0x75d388(0x1d5)][_0x75d388(0x1c3)](_0x274e62=>{const _0x2f815c=_0x75d388;if(_0x274e62[_0x2f815c(0x1e8)][_0x2f815c(0x1b2)]()!==_0x1319fe[_0x2f815c(0x1b2)]())return![];if(typeof _0x4ccc2e===_0x2f815c(0x1ae))return _0x274e62['url']['includes'](_0x4ccc2e);return _0x4ccc2e[_0x2f815c(0x202)](_0x274e62[_0x2f815c(0x1ff)]);});}[a216_0x591570(0x1e1)](_0x506af3){const _0x447eb9=a216_0x591570;return this[_0x447eb9(0x1b4)][_0x506af3]?.['matchCount']??0x0;}[a216_0x591570(0x1ad)](){const _0x1e6772=a216_0x591570;this[_0x1e6772(0x1b4)]=[],this[_0x1e6772(0x1d5)]=[],this['fetchMock']=null;}static[a216_0x591570(0x1d8)](_0x4b1489){const _0x988750=a216_0x591570,_0x38fb22={0xc8:'OK',0xc9:_0x988750(0x206),0xcc:_0x988750(0x1d0),0x190:'Bad\x20Request',0x191:_0x988750(0x1fa),0x193:_0x988750(0x1e2),0x194:'Not\x20Found',0x199:_0x988750(0x1ca),0x1a6:_0x988750(0x1c6),0x1ad:_0x988750(0x1d4),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x988750(0x1b9),0x1f7:_0x988750(0x1bd)};return _0x38fb22[_0x4b1489]??_0x988750(0x1db);}}function a216_0x41a9(){const _0x2a04b6=['Unmatched\x20stub','rfc9457','toUpperCase','entries','stubs','includes','3AGZtdJ','verify','textResponse','Bad\x20Gateway','slice','stack','length','Service\x20Unavailable','errorResponse','REST','198cpFdhq','\x20\x20(none)','application/json','some','withQuery','createFetch','Unprocessable\x20Entity','join','pathname','toLowerCase','Conflict','function','forEach','GET','mockImplementation','simple','No\x20Content','186817NXwKvB','jsonResponseWithHeaders','parseRequest','Too\x20Many\x20Requests','requests','\x20registered\x20at:\x0a','headers','getStatusText','networkError','1304lOiPgo','Unknown','getLastRequest','360486dJhFzk','get','parse','stringify','getMatchCount','Forbidden','157646DglblJ','1579956aKgGSY','No\x20stub\x20matched\x20request:\x20','error','register','method','td-api','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','registerWithInspector','filter','wasCalled','28cMeiUc','host','1610059tmjCeK','Registered\x20stubs:\x0a','75448yFFKaJ','description','matchCount','fetchMock','matcher','getRequests','every','52oryOUv','Unauthorized','withHost','matched','isArray','map','url','3085YRdULf','split','test','10CvFCPT','push','Request\x20body:\x20','Created','body','reset','string','unnamed\x20stub'];a216_0x41a9=function(){return _0x2a04b6;};return a216_0x41a9();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x15f696,_0x452f4c){var _0x2ed45e=a214_0xd8bd,_0x3f872f=_0x15f696();while(!![]){try{var _0x4347aa=-parseInt(_0x2ed45e(0x17f))/0x1+-parseInt(_0x2ed45e(0x188))/0x2+-parseInt(_0x2ed45e(0x183))/0x3*(-parseInt(_0x2ed45e(0x181))/0x4)+parseInt(_0x2ed45e(0x184))/0x5*(parseInt(_0x2ed45e(0x182))/0x6)+parseInt(_0x2ed45e(0x186))/0x7+parseInt(_0x2ed45e(0x187))/0x8*(parseInt(_0x2ed45e(0x180))/0x9)+-parseInt(_0x2ed45e(0x185))/0xa;if(_0x4347aa===_0x452f4c)break;else _0x3f872f['push'](_0x3f872f['shift']());}catch(_0x3bf2fd){_0x3f872f['push'](_0x3f872f['shift']());}}}(a214_0x358c,0xc053d));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 a214_0xd8bd(_0x192677,_0x373c54){_0x192677=_0x192677-0x17f;var _0x358c6a=a214_0x358c();var _0xd8bdee=_0x358c6a[_0x192677];return _0xd8bdee;}function a214_0x358c(){var _0x41fe14=['10188WKBrQJ','126pmDXCV','1002PVqKzP','346160NadAAL','27646600yDtRPZ','8654961ViejIt','368qHOLCD','654842iFATdu','1134749oaoXwK','288315maJjFX'];a214_0x358c=function(){return _0x41fe14;};return a214_0x358c();}
1
+ function a217_0x533f(){var _0x6ea508=['472538fPyuyX','84664ZNLUsJ','2320794tyRiMU','21uCpdHn','304qIYKDV','18821169uAplPV','10cVvxim','20517ehEJHt','550372cRrnWM','884110OebDiJ'];a217_0x533f=function(){return _0x6ea508;};return a217_0x533f();}(function(_0x258239,_0x5fe684){var _0x5db835=a217_0xa5af,_0x441b31=_0x258239();while(!![]){try{var _0xced8cb=-parseInt(_0x5db835(0x11e))/0x1+-parseInt(_0x5db835(0x11c))/0x2+parseInt(_0x5db835(0x11b))/0x3*(-parseInt(_0x5db835(0x118))/0x4)+-parseInt(_0x5db835(0x11d))/0x5+-parseInt(_0x5db835(0x120))/0x6+-parseInt(_0x5db835(0x121))/0x7*(-parseInt(_0x5db835(0x11f))/0x8)+-parseInt(_0x5db835(0x119))/0x9*(-parseInt(_0x5db835(0x11a))/0xa);if(_0xced8cb===_0x5fe684)break;else _0x441b31['push'](_0x441b31['shift']());}catch(_0x21b7b5){_0x441b31['push'](_0x441b31['shift']());}}}(a217_0x533f,0x47429));function a217_0xa5af(_0x5aa73a,_0x3a049e){_0x5aa73a=_0x5aa73a-0x118;var _0x533f3e=a217_0x533f();var _0xa5af8f=_0x533f3e[_0x5aa73a];return _0xa5af8f;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x371952,_0x391a93){const _0x278b31=a215_0x252a,_0x415c3e=_0x371952();while(!![]){try{const _0x43cf56=parseInt(_0x278b31(0x12e))/0x1+parseInt(_0x278b31(0x127))/0x2*(parseInt(_0x278b31(0x12c))/0x3)+parseInt(_0x278b31(0x121))/0x4*(parseInt(_0x278b31(0x128))/0x5)+parseInt(_0x278b31(0x12f))/0x6*(parseInt(_0x278b31(0x126))/0x7)+parseInt(_0x278b31(0x124))/0x8*(-parseInt(_0x278b31(0x123))/0x9)+-parseInt(_0x278b31(0x12d))/0xa+parseInt(_0x278b31(0x122))/0xb*(-parseInt(_0x278b31(0x12b))/0xc);if(_0x43cf56===_0x391a93)break;else _0x415c3e['push'](_0x415c3e['shift']());}catch(_0x221e3f){_0x415c3e['push'](_0x415c3e['shift']());}}}(a215_0x4b9c,0x9a889));function a215_0x252a(_0x3e8410,_0xad8f1c){_0x3e8410=_0x3e8410-0x121;const _0x4b9cbb=a215_0x4b9c();let _0x252aa1=_0x4b9cbb[_0x3e8410];return _0x252aa1;}export async function batchAsync(_0x3273be,_0xbaa50f,_0x4265f8=0xa){const _0x477963=a215_0x252a,_0x253f8f=[];for(let _0x4277e0=0x0;_0x4277e0<_0x3273be[_0x477963(0x129)];_0x4277e0+=_0x4265f8){const _0x5f4014=_0x3273be[_0x477963(0x130)](_0x4277e0,_0x4277e0+_0x4265f8),_0x88f9b8=await Promise[_0x477963(0x125)](_0x5f4014['map'](_0xbaa50f));_0x253f8f[_0x477963(0x12a)](..._0x88f9b8);}return _0x253f8f;}function a215_0x4b9c(){const _0x4862cf=['426PNPXEq','slice','76qSXUTL','451RejKCn','54VnMXlQ','1355544ePWbJO','all','101227jZgXGD','280558kpjZxO','217130qRXgvc','length','push','81348ywumIV','3eglaip','9520620JXwIjv','887524aVJGsu'];a215_0x4b9c=function(){return _0x4862cf;};return a215_0x4b9c();}
1
+ (function(_0x40291,_0x1110d3){const _0x24ac6c=a218_0x3373,_0x19f20f=_0x40291();while(!![]){try{const _0x7fa995=parseInt(_0x24ac6c(0xd6))/0x1+-parseInt(_0x24ac6c(0xdb))/0x2*(-parseInt(_0x24ac6c(0xdd))/0x3)+-parseInt(_0x24ac6c(0xdc))/0x4*(parseInt(_0x24ac6c(0xe1))/0x5)+-parseInt(_0x24ac6c(0xdf))/0x6+-parseInt(_0x24ac6c(0xda))/0x7+-parseInt(_0x24ac6c(0xd8))/0x8+-parseInt(_0x24ac6c(0xe0))/0x9*(-parseInt(_0x24ac6c(0xd9))/0xa);if(_0x7fa995===_0x1110d3)break;else _0x19f20f['push'](_0x19f20f['shift']());}catch(_0x3e5098){_0x19f20f['push'](_0x19f20f['shift']());}}}(a218_0x4c17,0x98b12));function a218_0x4c17(){const _0x599f89=['16650hRxASM','5WDLJQQ','slice','1243209sXBdFC','map','9754632EXsfBe','10190PstaVk','4530533xGjkWT','144110RIivOv','248084WLtHmw','9Jggkhs','all','4743174JDADJn'];a218_0x4c17=function(){return _0x599f89;};return a218_0x4c17();}function a218_0x3373(_0x3b0d1c,_0x15a96b){_0x3b0d1c=_0x3b0d1c-0xd5;const _0x4c17c4=a218_0x4c17();let _0x3373e1=_0x4c17c4[_0x3b0d1c];return _0x3373e1;}export async function batchAsync(_0x579eda,_0x161ca7,_0x107db5=0xa){const _0x25cc07=a218_0x3373,_0x19390e=[];for(let _0x593b8d=0x0;_0x593b8d<_0x579eda['length'];_0x593b8d+=_0x107db5){const _0x54fe4f=_0x579eda[_0x25cc07(0xd5)](_0x593b8d,_0x593b8d+_0x107db5),_0x48a839=await Promise[_0x25cc07(0xde)](_0x54fe4f[_0x25cc07(0xd7)](_0x161ca7));_0x19390e['push'](..._0x48a839);}return _0x19390e;}
@@ -1 +1 @@
1
- const a216_0x539459=a216_0x3e5f;function a216_0x3e5f(_0x34f881,_0x50626f){_0x34f881=_0x34f881-0x1e8;const _0x268dcc=a216_0x268d();let _0x3e5ff1=_0x268dcc[_0x34f881];return _0x3e5ff1;}(function(_0x1c8cb2,_0x1f27cd){const _0x5adcae=a216_0x3e5f,_0x1b6dff=_0x1c8cb2();while(!![]){try{const _0x8cd9ce=parseInt(_0x5adcae(0x1f2))/0x1*(-parseInt(_0x5adcae(0x201))/0x2)+parseInt(_0x5adcae(0x202))/0x3+-parseInt(_0x5adcae(0x1f5))/0x4*(parseInt(_0x5adcae(0x1ea))/0x5)+-parseInt(_0x5adcae(0x204))/0x6*(parseInt(_0x5adcae(0x1fc))/0x7)+parseInt(_0x5adcae(0x205))/0x8+parseInt(_0x5adcae(0x1ed))/0x9+-parseInt(_0x5adcae(0x203))/0xa*(-parseInt(_0x5adcae(0x1f6))/0xb);if(_0x8cd9ce===_0x1f27cd)break;else _0x1b6dff['push'](_0x1b6dff['shift']());}catch(_0x3c3287){_0x1b6dff['push'](_0x1b6dff['shift']());}}}(a216_0x268d,0xbef99));import*as a216_0x55191f from'chalk';function a216_0x268d(){const _0x557638=['null','Chalk','3292745rHVxio','stringify','cyan','7140348cMAbIB','number','map','dim','isTTY','1geyLoF','string','blue','8RmDzLu','28976783eGwyjT','join','stdout','yellow','isArray','green','5538309GGRHQd','object','color','length','repeat','3109454vGVDvu','2430732jbKVYp','10VuvHPx','6YYnpLm','1659008RJFCSe','entries','noColor'];a216_0x268d=function(){return _0x557638;};return a216_0x268d();}const Chalk=a216_0x55191f[a216_0x539459(0x1e9)];export function shouldUseColor(_0x160231={}){const _0x1b19b7=a216_0x539459;if(_0x160231[_0x1b19b7(0x207)]===!![])return![];if(_0x160231[_0x1b19b7(0x1fe)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1b19b7(0x1f8)][_0x1b19b7(0x1f1)]??![];}export function getChalk(_0x4cec49={}){if(shouldUseColor(_0x4cec49))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x122f1e,_0x58e9f5={}){const _0x5b01ed=a216_0x539459;return getChalk(_0x58e9f5)[_0x5b01ed(0x1f0)](_0x122f1e);}export function colorHeader(_0x2c46f6,_0x391f74={}){const _0xb2c380=a216_0x539459;return getChalk(_0x391f74)[_0xb2c380(0x1ec)](_0x2c46f6);}export function colorType(_0x3701e9,_0xd6c64d={}){const _0x3ccdbb=a216_0x539459;return getChalk(_0xd6c64d)[_0x3ccdbb(0x1f0)](_0x3701e9);}export function colorJSONKey(_0x1d95eb,_0x5204c1={}){const _0x4f3e55=a216_0x539459;return getChalk(_0x5204c1)[_0x4f3e55(0x1f4)](_0x1d95eb);}export function colorJSONString(_0x499543,_0x3de3bb={}){const _0x55f579=a216_0x539459;return getChalk(_0x3de3bb)[_0x55f579(0x1fb)](_0x499543);}export function colorJSONNumber(_0x4def20,_0x25955a={}){const _0x108cb1=a216_0x539459;return getChalk(_0x25955a)[_0x108cb1(0x1ec)](_0x4def20);}export function colorJSONBoolean(_0x375762,_0x1423db={}){const _0x50a660=a216_0x539459;return getChalk(_0x1423db)[_0x50a660(0x1f9)](_0x375762);}export function colorJSONNull(_0x516d32,_0x4a3653={}){const _0x19b55c=a216_0x539459;return getChalk(_0x4a3653)[_0x19b55c(0x1f0)](_0x516d32);}export function colorizeJSONCompact(_0x371cb9,_0x25003b={}){const _0x173d1c=a216_0x539459;if(!shouldUseColor(_0x25003b))return JSON[_0x173d1c(0x1eb)](_0x371cb9);if(_0x371cb9===null)return colorJSONNull(_0x173d1c(0x1e8),_0x25003b);if(typeof _0x371cb9==='boolean')return colorJSONBoolean(String(_0x371cb9),_0x25003b);if(typeof _0x371cb9===_0x173d1c(0x1ee))return colorJSONNumber(String(_0x371cb9),_0x25003b);if(typeof _0x371cb9===_0x173d1c(0x1f3))return colorJSONString(JSON[_0x173d1c(0x1eb)](_0x371cb9),_0x25003b);if(Array[_0x173d1c(0x1fa)](_0x371cb9)){if(_0x371cb9[_0x173d1c(0x1ff)]===0x0)return'[]';const _0x47ded9=_0x371cb9[_0x173d1c(0x1ef)](_0x3457d1=>colorizeJSONCompact(_0x3457d1,_0x25003b));return'['+_0x47ded9[_0x173d1c(0x1f7)](',')+']';}if(typeof _0x371cb9===_0x173d1c(0x1fd)){const _0x4ae39c=Object[_0x173d1c(0x206)](_0x371cb9);if(_0x4ae39c['length']===0x0)return'{}';const _0x4e2b0a=_0x4ae39c[_0x173d1c(0x1ef)](([_0x248f48,_0x138a01])=>{const _0x3519fe=_0x173d1c,_0x5be509=colorJSONKey(JSON[_0x3519fe(0x1eb)](_0x248f48),_0x25003b),_0x1e6e86=colorizeJSONCompact(_0x138a01,_0x25003b);return _0x5be509+':'+_0x1e6e86;});return'{'+_0x4e2b0a[_0x173d1c(0x1f7)](',')+'}';}return String(_0x371cb9);}export function colorizeJSON(_0xfe6bcd,_0x22df26={},_0x5af12b=0x0){const _0x344989=a216_0x539459;if(!shouldUseColor(_0x22df26))return JSON[_0x344989(0x1eb)](_0xfe6bcd,null,0x2);const _0x151999='\x20'[_0x344989(0x200)](_0x5af12b),_0x49205b=_0x5af12b+0x2;if(_0xfe6bcd===null)return colorJSONNull(_0x344989(0x1e8),_0x22df26);if(typeof _0xfe6bcd==='boolean')return colorJSONBoolean(String(_0xfe6bcd),_0x22df26);if(typeof _0xfe6bcd===_0x344989(0x1ee))return colorJSONNumber(String(_0xfe6bcd),_0x22df26);if(typeof _0xfe6bcd===_0x344989(0x1f3))return colorJSONString(JSON[_0x344989(0x1eb)](_0xfe6bcd),_0x22df26);if(Array[_0x344989(0x1fa)](_0xfe6bcd)){if(_0xfe6bcd[_0x344989(0x1ff)]===0x0)return'[]';const _0x71642e=_0xfe6bcd['map'](_0x2c13ea=>{const _0x3994e1=_0x344989,_0x2dfc9e=colorizeJSON(_0x2c13ea,_0x22df26,_0x49205b);return''+'\x20'[_0x3994e1(0x200)](_0x49205b)+_0x2dfc9e;});return'[\x0a'+_0x71642e['join'](',\x0a')+('\x0a'+_0x151999+']');}if(typeof _0xfe6bcd===_0x344989(0x1fd)){const _0x101e11=Object['entries'](_0xfe6bcd);if(_0x101e11[_0x344989(0x1ff)]===0x0)return'{}';const _0x3f7ee9=_0x101e11['map'](([_0x38d270,_0x2f5d4f])=>{const _0x1023ea=_0x344989,_0x563db3=colorJSONKey(JSON[_0x1023ea(0x1eb)](_0x38d270),_0x22df26),_0x492b24=colorizeJSON(_0x2f5d4f,_0x22df26,_0x49205b);return''+'\x20'['repeat'](_0x49205b)+_0x563db3+':\x20'+_0x492b24;});return'{\x0a'+_0x3f7ee9[_0x344989(0x1f7)](',\x0a')+('\x0a'+_0x151999+'}');}return String(_0xfe6bcd);}
1
+ const a219_0x9d757d=a219_0x1312;(function(_0x2fc891,_0x1ea8d7){const _0x16ab86=a219_0x1312,_0x39a4a6=_0x2fc891();while(!![]){try{const _0x489925=parseInt(_0x16ab86(0x135))/0x1+parseInt(_0x16ab86(0x142))/0x2*(parseInt(_0x16ab86(0x143))/0x3)+parseInt(_0x16ab86(0x147))/0x4*(-parseInt(_0x16ab86(0x14b))/0x5)+-parseInt(_0x16ab86(0x155))/0x6+parseInt(_0x16ab86(0x13a))/0x7*(parseInt(_0x16ab86(0x137))/0x8)+-parseInt(_0x16ab86(0x149))/0x9*(-parseInt(_0x16ab86(0x138))/0xa)+parseInt(_0x16ab86(0x14e))/0xb*(-parseInt(_0x16ab86(0x13b))/0xc);if(_0x489925===_0x1ea8d7)break;else _0x39a4a6['push'](_0x39a4a6['shift']());}catch(_0x34dc57){_0x39a4a6['push'](_0x39a4a6['shift']());}}}(a219_0x861f,0xf247b));import*as a219_0xb92166 from'chalk';const Chalk=a219_0xb92166[a219_0x9d757d(0x141)];export function shouldUseColor(_0x2b4e91={}){const _0xf496a2=a219_0x9d757d;if(_0x2b4e91[_0xf496a2(0x14f)]===!![])return![];if(_0x2b4e91[_0xf496a2(0x14d)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0xf496a2(0x13e)]??![];}export function getChalk(_0x18140a={}){if(shouldUseColor(_0x18140a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x3b8e78,_0xebac84={}){return getChalk(_0xebac84)['dim'](_0x3b8e78);}export function colorHeader(_0x7d147e,_0x236794={}){return getChalk(_0x236794)['cyan'](_0x7d147e);}export function colorType(_0x2a7cf6,_0x1337ab={}){const _0x55121f=a219_0x9d757d;return getChalk(_0x1337ab)[_0x55121f(0x146)](_0x2a7cf6);}export function colorJSONKey(_0x4db78c,_0x540589={}){const _0x476ee9=a219_0x9d757d;return getChalk(_0x540589)[_0x476ee9(0x150)](_0x4db78c);}export function colorJSONString(_0x724e3b,_0x4d22fe={}){const _0x2ba15f=a219_0x9d757d;return getChalk(_0x4d22fe)[_0x2ba15f(0x14c)](_0x724e3b);}export function colorJSONNumber(_0xb3a590,_0x2057d8={}){const _0x47ef9f=a219_0x9d757d;return getChalk(_0x2057d8)[_0x47ef9f(0x151)](_0xb3a590);}export function colorJSONBoolean(_0x8ca481,_0x4d0181={}){const _0x1dde52=a219_0x9d757d;return getChalk(_0x4d0181)[_0x1dde52(0x153)](_0x8ca481);}function a219_0x861f(){const _0x5e4352=['cyan','null','yellow','length','5625216munkMz','1237324pVGRmV','join','1544sTvNXt','6504410OXzvQu','map','38759vWCQWd','5840376fvXWVi','stringify','repeat','isTTY','number','isArray','Chalk','10jFYPOS','616932RzcbtR','entries','object','dim','408aVtcCk','string','18Xvemqj','boolean','84890fEXgGc','green','color','22zEzecK','noColor','blue'];a219_0x861f=function(){return _0x5e4352;};return a219_0x861f();}function a219_0x1312(_0x374d84,_0x450d9b){_0x374d84=_0x374d84-0x135;const _0x861f09=a219_0x861f();let _0x1312bc=_0x861f09[_0x374d84];return _0x1312bc;}export function colorJSONNull(_0x23d872,_0x4401a7={}){return getChalk(_0x4401a7)['dim'](_0x23d872);}export function colorizeJSONCompact(_0x3df033,_0x758c2a={}){const _0x1a5603=a219_0x9d757d;if(!shouldUseColor(_0x758c2a))return JSON['stringify'](_0x3df033);if(_0x3df033===null)return colorJSONNull('null',_0x758c2a);if(typeof _0x3df033===_0x1a5603(0x14a))return colorJSONBoolean(String(_0x3df033),_0x758c2a);if(typeof _0x3df033==='number')return colorJSONNumber(String(_0x3df033),_0x758c2a);if(typeof _0x3df033===_0x1a5603(0x148))return colorJSONString(JSON[_0x1a5603(0x13c)](_0x3df033),_0x758c2a);if(Array[_0x1a5603(0x140)](_0x3df033)){if(_0x3df033[_0x1a5603(0x154)]===0x0)return'[]';const _0x34ce56=_0x3df033[_0x1a5603(0x139)](_0x7f37f8=>colorizeJSONCompact(_0x7f37f8,_0x758c2a));return'['+_0x34ce56['join'](',')+']';}if(typeof _0x3df033===_0x1a5603(0x145)){const _0x1cc07e=Object[_0x1a5603(0x144)](_0x3df033);if(_0x1cc07e[_0x1a5603(0x154)]===0x0)return'{}';const _0x384aef=_0x1cc07e['map'](([_0x554b1d,_0x74a31f])=>{const _0x3d257c=colorJSONKey(JSON['stringify'](_0x554b1d),_0x758c2a),_0x3832e1=colorizeJSONCompact(_0x74a31f,_0x758c2a);return _0x3d257c+':'+_0x3832e1;});return'{'+_0x384aef[_0x1a5603(0x136)](',')+'}';}return String(_0x3df033);}export function colorizeJSON(_0x1ab76b,_0x1597f8={},_0x347b54=0x0){const _0x103f74=a219_0x9d757d;if(!shouldUseColor(_0x1597f8))return JSON[_0x103f74(0x13c)](_0x1ab76b,null,0x2);const _0x3e1200='\x20'[_0x103f74(0x13d)](_0x347b54),_0x1a8f65=_0x347b54+0x2;if(_0x1ab76b===null)return colorJSONNull(_0x103f74(0x152),_0x1597f8);if(typeof _0x1ab76b===_0x103f74(0x14a))return colorJSONBoolean(String(_0x1ab76b),_0x1597f8);if(typeof _0x1ab76b===_0x103f74(0x13f))return colorJSONNumber(String(_0x1ab76b),_0x1597f8);if(typeof _0x1ab76b===_0x103f74(0x148))return colorJSONString(JSON[_0x103f74(0x13c)](_0x1ab76b),_0x1597f8);if(Array[_0x103f74(0x140)](_0x1ab76b)){if(_0x1ab76b[_0x103f74(0x154)]===0x0)return'[]';const _0x19626e=_0x1ab76b[_0x103f74(0x139)](_0x451fab=>{const _0x40eb19=_0x103f74,_0x1e4705=colorizeJSON(_0x451fab,_0x1597f8,_0x1a8f65);return''+'\x20'[_0x40eb19(0x13d)](_0x1a8f65)+_0x1e4705;});return'[\x0a'+_0x19626e['join'](',\x0a')+('\x0a'+_0x3e1200+']');}if(typeof _0x1ab76b===_0x103f74(0x145)){const _0x3f0511=Object[_0x103f74(0x144)](_0x1ab76b);if(_0x3f0511[_0x103f74(0x154)]===0x0)return'{}';const _0x45fb06=_0x3f0511[_0x103f74(0x139)](([_0x434ec6,_0x1c47d5])=>{const _0x2ba6aa=_0x103f74,_0x3d0ae4=colorJSONKey(JSON[_0x2ba6aa(0x13c)](_0x434ec6),_0x1597f8),_0x5e90ab=colorizeJSON(_0x1c47d5,_0x1597f8,_0x1a8f65);return''+'\x20'[_0x2ba6aa(0x13d)](_0x1a8f65)+_0x3d0ae4+':\x20'+_0x5e90ab;});return'{\x0a'+_0x45fb06['join'](',\x0a')+('\x0a'+_0x3e1200+'}');}return String(_0x1ab76b);}
@@ -1 +1 @@
1
- (function(_0x53202b,_0x3802bf){const _0x28e390=a217_0x4812,_0x2a6085=_0x53202b();while(!![]){try{const _0x5bd439=-parseInt(_0x28e390(0x166))/0x1+parseInt(_0x28e390(0x172))/0x2+parseInt(_0x28e390(0x174))/0x3*(parseInt(_0x28e390(0x17e))/0x4)+parseInt(_0x28e390(0x173))/0x5+parseInt(_0x28e390(0x165))/0x6+parseInt(_0x28e390(0x167))/0x7+parseInt(_0x28e390(0x171))/0x8*(-parseInt(_0x28e390(0x16f))/0x9);if(_0x5bd439===_0x3802bf)break;else _0x2a6085['push'](_0x2a6085['shift']());}catch(_0x4c6b5b){_0x2a6085['push'](_0x2a6085['shift']());}}}(a217_0x2dd4,0xcd4ca));import a217_0x489fb6 from'chalk';function a217_0x2dd4(){const _0x4286d9=['522576fanrdr','7104034lmDhKf','split','dim','add','some','has','push','\x20\x20\x20','184599cBcwdN','old','1256NgzGfy','2546898gNyUYH','6601635wbmTpY','26643QfyzAl','padStart','removed','map','unshift','new','length','content','added','type','88peEnTR','min','max','red','unchanged','\x20+\x20','repeat','size','forEach','join','cyan','4678134ymwrRG'];a217_0x2dd4=function(){return _0x4286d9;};return a217_0x2dd4();}export function generateDiff(_0x47bfc2,_0x5068aa){const _0x471a07=a217_0x4812,_0x3ef2b8=_0x47bfc2[_0x471a07(0x168)]('\x0a'),_0x45f948=_0x5068aa['split']('\x0a'),_0x5c3d69=[],_0x4025f4=computeLCS(_0x3ef2b8,_0x45f948);let _0x209c7d=0x0,_0x3a2563=0x0,_0x4203ec=0x0;while(_0x209c7d<_0x3ef2b8[_0x471a07(0x17a)]||_0x3a2563<_0x45f948[_0x471a07(0x17a)]){if(_0x4203ec<_0x4025f4['length']&&_0x209c7d<_0x3ef2b8[_0x471a07(0x17a)]&&_0x3ef2b8[_0x209c7d]===_0x4025f4[_0x4203ec])_0x3a2563<_0x45f948[_0x471a07(0x17a)]&&_0x45f948[_0x3a2563]===_0x4025f4[_0x4203ec]?(_0x5c3d69['push']({'type':_0x471a07(0x182),'content':_0x3ef2b8[_0x209c7d]}),_0x209c7d++,_0x3a2563++,_0x4203ec++):(_0x5c3d69[_0x471a07(0x16d)]({'type':'added','content':_0x45f948[_0x3a2563]}),_0x3a2563++);else{if(_0x4203ec<_0x4025f4[_0x471a07(0x17a)]&&_0x3a2563<_0x45f948[_0x471a07(0x17a)]&&_0x45f948[_0x3a2563]===_0x4025f4[_0x4203ec])_0x5c3d69[_0x471a07(0x16d)]({'type':'removed','content':_0x3ef2b8[_0x209c7d]}),_0x209c7d++;else{if(_0x209c7d<_0x3ef2b8[_0x471a07(0x17a)]&&(_0x4203ec>=_0x4025f4[_0x471a07(0x17a)]||_0x3ef2b8[_0x209c7d]!==_0x4025f4[_0x4203ec]))_0x5c3d69['push']({'type':_0x471a07(0x176),'content':_0x3ef2b8[_0x209c7d]}),_0x209c7d++;else _0x3a2563<_0x45f948[_0x471a07(0x17a)]&&(_0x5c3d69[_0x471a07(0x16d)]({'type':_0x471a07(0x17c),'content':_0x45f948[_0x3a2563]}),_0x3a2563++);}}}return _0x5c3d69;}function a217_0x4812(_0x1ed1dd,_0x384b1f){_0x1ed1dd=_0x1ed1dd-0x15f;const _0x2dd4c3=a217_0x2dd4();let _0x4812e6=_0x2dd4c3[_0x1ed1dd];return _0x4812e6;}function computeLCS(_0x457515,_0x10d2dc){const _0x796492=a217_0x4812,_0x2e8839=_0x457515[_0x796492(0x17a)],_0x58a846=_0x10d2dc[_0x796492(0x17a)],_0x1dcce0=Array(_0x2e8839+0x1)['fill'](null)[_0x796492(0x177)](()=>Array(_0x58a846+0x1)['fill'](0x0));for(let _0xd4f556=0x1;_0xd4f556<=_0x2e8839;_0xd4f556++){for(let _0x130ecd=0x1;_0x130ecd<=_0x58a846;_0x130ecd++){_0x457515[_0xd4f556-0x1]===_0x10d2dc[_0x130ecd-0x1]?_0x1dcce0[_0xd4f556][_0x130ecd]=_0x1dcce0[_0xd4f556-0x1][_0x130ecd-0x1]+0x1:_0x1dcce0[_0xd4f556][_0x130ecd]=Math[_0x796492(0x180)](_0x1dcce0[_0xd4f556-0x1][_0x130ecd],_0x1dcce0[_0xd4f556][_0x130ecd-0x1]);}}const _0x45ef3c=[];let _0x336f0c=_0x2e8839,_0x8ef3c8=_0x58a846;while(_0x336f0c>0x0&&_0x8ef3c8>0x0){if(_0x457515[_0x336f0c-0x1]===_0x10d2dc[_0x8ef3c8-0x1])_0x45ef3c[_0x796492(0x178)](_0x457515[_0x336f0c-0x1]),_0x336f0c--,_0x8ef3c8--;else _0x1dcce0[_0x336f0c-0x1][_0x8ef3c8]>_0x1dcce0[_0x336f0c][_0x8ef3c8-0x1]?_0x336f0c--:_0x8ef3c8--;}return _0x45ef3c;}export function formatDiffWithColors(_0x17bd05,_0x2a52e7=0x3){const _0x119d9f=a217_0x4812,_0x472586=new Set();_0x17bd05[_0x119d9f(0x162)]((_0x593cad,_0x1a56d1)=>{const _0x34c7f7=_0x119d9f;_0x593cad[_0x34c7f7(0x17d)]!==_0x34c7f7(0x182)&&_0x472586[_0x34c7f7(0x16a)](_0x1a56d1);});if(_0x472586[_0x119d9f(0x161)]===0x0)return'';const _0x2a3169=new Set();for(const _0x3b2099 of _0x472586){for(let _0x35b03f=Math['max'](0x0,_0x3b2099-_0x2a52e7);_0x35b03f<=Math[_0x119d9f(0x17f)](_0x17bd05[_0x119d9f(0x17a)]-0x1,_0x3b2099+_0x2a52e7);_0x35b03f++){_0x2a3169[_0x119d9f(0x16a)](_0x35b03f);}}const _0x2f73a0=[];let _0x3790e5=-0x1;const _0x1ad5cb=_0x17bd05[_0x119d9f(0x17a)],_0x182628=Math[_0x119d9f(0x180)](0x3,String(_0x1ad5cb)[_0x119d9f(0x17a)]),_0x24e73a=[];let _0x2c2a23=0x0,_0x5d1ed2=0x0;for(const _0x52eab6 of _0x17bd05){if(_0x52eab6[_0x119d9f(0x17d)]===_0x119d9f(0x176))_0x2c2a23++,_0x24e73a['push']({'old':_0x2c2a23,'new':0x0});else _0x52eab6[_0x119d9f(0x17d)]==='added'?(_0x5d1ed2++,_0x24e73a[_0x119d9f(0x16d)]({'old':0x0,'new':_0x5d1ed2})):(_0x2c2a23++,_0x5d1ed2++,_0x24e73a[_0x119d9f(0x16d)]({'old':_0x2c2a23,'new':_0x5d1ed2}));}for(let _0x25950c=0x0;_0x25950c<_0x17bd05[_0x119d9f(0x17a)];_0x25950c++){if(!_0x2a3169[_0x119d9f(0x16c)](_0x25950c))continue;_0x3790e5!==-0x1&&_0x25950c>_0x3790e5+0x1&&_0x2f73a0[_0x119d9f(0x16d)](a217_0x489fb6[_0x119d9f(0x164)]('\x20\x20...'));_0x3790e5=_0x25950c;const _0x1e686c=_0x17bd05[_0x25950c],_0x3ff05a=_0x24e73a[_0x25950c],_0x477d26=_0x3ff05a['old']>0x0?String(_0x3ff05a[_0x119d9f(0x170)])[_0x119d9f(0x175)](_0x182628):'\x20'[_0x119d9f(0x160)](_0x182628),_0x32150d=_0x3ff05a[_0x119d9f(0x179)]>0x0?String(_0x3ff05a[_0x119d9f(0x179)])[_0x119d9f(0x175)](_0x182628):'\x20'['repeat'](_0x182628);switch(_0x1e686c[_0x119d9f(0x17d)]){case _0x119d9f(0x176):_0x2f73a0[_0x119d9f(0x16d)](a217_0x489fb6[_0x119d9f(0x181)](_0x477d26+'\x20'+_0x32150d+'\x20-\x20'+_0x1e686c['content']));break;case _0x119d9f(0x17c):_0x2f73a0[_0x119d9f(0x16d)](a217_0x489fb6['green'](_0x477d26+'\x20'+_0x32150d+_0x119d9f(0x15f)+_0x1e686c[_0x119d9f(0x17b)]));break;default:_0x2f73a0[_0x119d9f(0x16d)](a217_0x489fb6[_0x119d9f(0x169)](_0x477d26+'\x20'+_0x32150d+_0x119d9f(0x16e)+_0x1e686c[_0x119d9f(0x17b)]));break;}}return _0x2f73a0[_0x119d9f(0x163)]('\x0a');}export function hasChanges(_0x21b34e){const _0x26a45b=a217_0x4812;return _0x21b34e[_0x26a45b(0x16b)](_0x493749=>_0x493749[_0x26a45b(0x17d)]!==_0x26a45b(0x182));}
1
+ (function(_0x4a67ba,_0x1fbcd){const _0x564bc9=a220_0xd23f,_0x1bcc3b=_0x4a67ba();while(!![]){try{const _0x4bc438=parseInt(_0x564bc9(0x10d))/0x1*(-parseInt(_0x564bc9(0x111))/0x2)+parseInt(_0x564bc9(0x10c))/0x3+-parseInt(_0x564bc9(0x110))/0x4*(-parseInt(_0x564bc9(0x10e))/0x5)+parseInt(_0x564bc9(0x116))/0x6+-parseInt(_0x564bc9(0x104))/0x7+-parseInt(_0x564bc9(0x120))/0x8+parseInt(_0x564bc9(0x115))/0x9*(-parseInt(_0x564bc9(0x101))/0xa);if(_0x4bc438===_0x1fbcd)break;else _0x1bcc3b['push'](_0x1bcc3b['shift']());}catch(_0x318886){_0x1bcc3b['push'](_0x1bcc3b['shift']());}}}(a220_0x2a6d,0xb2e70));function a220_0x2a6d(){const _0xee2b4e=['new','3688825GkRXMX','old','unchanged','split','length','max','red','added','2302263eANEWi','2806dlJdwy','6296495RpxbyQ','padStart','4CxnJGo','976geKOBr','some','has','removed','9bOwHxI','6179388JJsicm','join','\x20+\x20','dim','push','green','repeat','min','content','fill','884224PNgZLd','add','type','map','\x20\x20\x20','3170030bGOQfo','\x20\x20...'];a220_0x2a6d=function(){return _0xee2b4e;};return a220_0x2a6d();}import a220_0x5368af from'chalk';function a220_0xd23f(_0x39072b,_0x3004ad){_0x39072b=_0x39072b-0xff;const _0x2a6dd5=a220_0x2a6d();let _0xd23f95=_0x2a6dd5[_0x39072b];return _0xd23f95;}export function generateDiff(_0x34b5b3,_0x55f8c7){const _0x3e5def=a220_0xd23f,_0x4ef9a8=_0x34b5b3[_0x3e5def(0x107)]('\x0a'),_0x51b5c7=_0x55f8c7[_0x3e5def(0x107)]('\x0a'),_0x5c9dc3=[],_0x467ea1=computeLCS(_0x4ef9a8,_0x51b5c7);let _0xce6bee=0x0,_0x2b56bf=0x0,_0x28c235=0x0;while(_0xce6bee<_0x4ef9a8['length']||_0x2b56bf<_0x51b5c7[_0x3e5def(0x108)]){if(_0x28c235<_0x467ea1[_0x3e5def(0x108)]&&_0xce6bee<_0x4ef9a8[_0x3e5def(0x108)]&&_0x4ef9a8[_0xce6bee]===_0x467ea1[_0x28c235])_0x2b56bf<_0x51b5c7[_0x3e5def(0x108)]&&_0x51b5c7[_0x2b56bf]===_0x467ea1[_0x28c235]?(_0x5c9dc3[_0x3e5def(0x11a)]({'type':_0x3e5def(0x106),'content':_0x4ef9a8[_0xce6bee]}),_0xce6bee++,_0x2b56bf++,_0x28c235++):(_0x5c9dc3[_0x3e5def(0x11a)]({'type':_0x3e5def(0x10b),'content':_0x51b5c7[_0x2b56bf]}),_0x2b56bf++);else{if(_0x28c235<_0x467ea1['length']&&_0x2b56bf<_0x51b5c7[_0x3e5def(0x108)]&&_0x51b5c7[_0x2b56bf]===_0x467ea1[_0x28c235])_0x5c9dc3[_0x3e5def(0x11a)]({'type':_0x3e5def(0x114),'content':_0x4ef9a8[_0xce6bee]}),_0xce6bee++;else{if(_0xce6bee<_0x4ef9a8[_0x3e5def(0x108)]&&(_0x28c235>=_0x467ea1['length']||_0x4ef9a8[_0xce6bee]!==_0x467ea1[_0x28c235]))_0x5c9dc3[_0x3e5def(0x11a)]({'type':_0x3e5def(0x114),'content':_0x4ef9a8[_0xce6bee]}),_0xce6bee++;else _0x2b56bf<_0x51b5c7['length']&&(_0x5c9dc3[_0x3e5def(0x11a)]({'type':_0x3e5def(0x10b),'content':_0x51b5c7[_0x2b56bf]}),_0x2b56bf++);}}}return _0x5c9dc3;}function computeLCS(_0x151e46,_0x5aac28){const _0x7d363f=a220_0xd23f,_0x357d5a=_0x151e46[_0x7d363f(0x108)],_0x255f4e=_0x5aac28['length'],_0x368ef2=Array(_0x357d5a+0x1)[_0x7d363f(0x11f)](null)[_0x7d363f(0xff)](()=>Array(_0x255f4e+0x1)[_0x7d363f(0x11f)](0x0));for(let _0x471a08=0x1;_0x471a08<=_0x357d5a;_0x471a08++){for(let _0x2ced2a=0x1;_0x2ced2a<=_0x255f4e;_0x2ced2a++){_0x151e46[_0x471a08-0x1]===_0x5aac28[_0x2ced2a-0x1]?_0x368ef2[_0x471a08][_0x2ced2a]=_0x368ef2[_0x471a08-0x1][_0x2ced2a-0x1]+0x1:_0x368ef2[_0x471a08][_0x2ced2a]=Math['max'](_0x368ef2[_0x471a08-0x1][_0x2ced2a],_0x368ef2[_0x471a08][_0x2ced2a-0x1]);}}const _0x1ec8a4=[];let _0xa70a39=_0x357d5a,_0x175506=_0x255f4e;while(_0xa70a39>0x0&&_0x175506>0x0){if(_0x151e46[_0xa70a39-0x1]===_0x5aac28[_0x175506-0x1])_0x1ec8a4['unshift'](_0x151e46[_0xa70a39-0x1]),_0xa70a39--,_0x175506--;else _0x368ef2[_0xa70a39-0x1][_0x175506]>_0x368ef2[_0xa70a39][_0x175506-0x1]?_0xa70a39--:_0x175506--;}return _0x1ec8a4;}export function formatDiffWithColors(_0x145ad7,_0x275cdc=0x3){const _0x17cd18=a220_0xd23f,_0x372b67=new Set();_0x145ad7['forEach']((_0x119289,_0x5cca09)=>{const _0x572d5b=a220_0xd23f;_0x119289[_0x572d5b(0x122)]!==_0x572d5b(0x106)&&_0x372b67[_0x572d5b(0x121)](_0x5cca09);});if(_0x372b67['size']===0x0)return'';const _0x1874df=new Set();for(const _0x4f06b3 of _0x372b67){for(let _0x929617=Math[_0x17cd18(0x109)](0x0,_0x4f06b3-_0x275cdc);_0x929617<=Math[_0x17cd18(0x11d)](_0x145ad7[_0x17cd18(0x108)]-0x1,_0x4f06b3+_0x275cdc);_0x929617++){_0x1874df[_0x17cd18(0x121)](_0x929617);}}const _0x2cf228=[];let _0x3fda3c=-0x1;const _0x10ea71=_0x145ad7[_0x17cd18(0x108)],_0x412e3f=Math[_0x17cd18(0x109)](0x3,String(_0x10ea71)[_0x17cd18(0x108)]),_0x24e8a9=[];let _0x526e65=0x0,_0x53bf64=0x0;for(const _0x129c33 of _0x145ad7){if(_0x129c33[_0x17cd18(0x122)]===_0x17cd18(0x114))_0x526e65++,_0x24e8a9[_0x17cd18(0x11a)]({'old':_0x526e65,'new':0x0});else _0x129c33[_0x17cd18(0x122)]===_0x17cd18(0x10b)?(_0x53bf64++,_0x24e8a9[_0x17cd18(0x11a)]({'old':0x0,'new':_0x53bf64})):(_0x526e65++,_0x53bf64++,_0x24e8a9[_0x17cd18(0x11a)]({'old':_0x526e65,'new':_0x53bf64}));}for(let _0x23ac12=0x0;_0x23ac12<_0x145ad7['length'];_0x23ac12++){if(!_0x1874df[_0x17cd18(0x113)](_0x23ac12))continue;_0x3fda3c!==-0x1&&_0x23ac12>_0x3fda3c+0x1&&_0x2cf228['push'](a220_0x5368af['cyan'](_0x17cd18(0x102)));_0x3fda3c=_0x23ac12;const _0x564706=_0x145ad7[_0x23ac12],_0x394c54=_0x24e8a9[_0x23ac12],_0x4ad6bf=_0x394c54[_0x17cd18(0x105)]>0x0?String(_0x394c54[_0x17cd18(0x105)])[_0x17cd18(0x10f)](_0x412e3f):'\x20'[_0x17cd18(0x11c)](_0x412e3f),_0x41aa44=_0x394c54[_0x17cd18(0x103)]>0x0?String(_0x394c54['new'])[_0x17cd18(0x10f)](_0x412e3f):'\x20'[_0x17cd18(0x11c)](_0x412e3f);switch(_0x564706[_0x17cd18(0x122)]){case _0x17cd18(0x114):_0x2cf228['push'](a220_0x5368af[_0x17cd18(0x10a)](_0x4ad6bf+'\x20'+_0x41aa44+'\x20-\x20'+_0x564706[_0x17cd18(0x11e)]));break;case _0x17cd18(0x10b):_0x2cf228[_0x17cd18(0x11a)](a220_0x5368af[_0x17cd18(0x11b)](_0x4ad6bf+'\x20'+_0x41aa44+_0x17cd18(0x118)+_0x564706[_0x17cd18(0x11e)]));break;default:_0x2cf228[_0x17cd18(0x11a)](a220_0x5368af[_0x17cd18(0x119)](_0x4ad6bf+'\x20'+_0x41aa44+_0x17cd18(0x100)+_0x564706[_0x17cd18(0x11e)]));break;}}return _0x2cf228[_0x17cd18(0x117)]('\x0a');}export function hasChanges(_0x446f65){const _0x4c0b7c=a220_0xd23f;return _0x446f65[_0x4c0b7c(0x112)](_0x352010=>_0x352010[_0x4c0b7c(0x122)]!==_0x4c0b7c(0x106));}
@@ -1 +1 @@
1
- (function(_0x2d0c9c,_0x228548){const _0x215c5f=a218_0x4e34,_0x1cf1a1=_0x2d0c9c();while(!![]){try{const _0x703348=parseInt(_0x215c5f(0x1da))/0x1*(-parseInt(_0x215c5f(0x1ce))/0x2)+-parseInt(_0x215c5f(0x1dc))/0x3+-parseInt(_0x215c5f(0x1cc))/0x4*(parseInt(_0x215c5f(0x1de))/0x5)+-parseInt(_0x215c5f(0x1d2))/0x6*(-parseInt(_0x215c5f(0x1d3))/0x7)+parseInt(_0x215c5f(0x1d7))/0x8+-parseInt(_0x215c5f(0x1d6))/0x9*(parseInt(_0x215c5f(0x1d9))/0xa)+parseInt(_0x215c5f(0x1d5))/0xb*(parseInt(_0x215c5f(0x1d8))/0xc);if(_0x703348===_0x228548)break;else _0x1cf1a1['push'](_0x1cf1a1['shift']());}catch(_0x5095f6){_0x1cf1a1['push'](_0x1cf1a1['shift']());}}}(a218_0x2c0f,0x629ea));import*as a218_0x232536 from'node:fs';import*as a218_0x1a9bf1 from'node:path';export function setSecureFilePermissions(_0x4cf341){const _0x124278=a218_0x4e34;try{a218_0x232536[_0x124278(0x1cf)](_0x4cf341,0x180);}catch{console[_0x124278(0x1d0)](_0x124278(0x1c8)+_0x4cf341);}}export function setSecureDirectoryPermissions(_0x287599){try{a218_0x232536['chmodSync'](_0x287599,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x287599);}}export function createSecureDirectory(_0x1b6de8){const _0x4bd727=a218_0x4e34;!a218_0x232536[_0x4bd727(0x1e0)](_0x1b6de8)&&(a218_0x232536[_0x4bd727(0x1d4)](_0x1b6de8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b6de8));}export function validateSecureFilePermissions(_0x306a42){const _0x54c502=a218_0x4e34;try{const _0x52f127=a218_0x232536[_0x54c502(0x1df)](_0x306a42),_0x3fbd75=_0x52f127[_0x54c502(0x1ca)]&0x1ff,_0x1db42e=(_0x3fbd75&0x3f)!==0x0;if(_0x1db42e)return console[_0x54c502(0x1d0)](_0x54c502(0x1dd)+_0x306a42+_0x54c502(0x1c9)+_0x3fbd75[_0x54c502(0x1cb)](0x8)+_0x54c502(0x1cd)+_0x54c502(0x1db)),![];return!![];}catch{return!![];}}function a218_0x2c0f(){const _0x5a0db5=['495GNMogb','6237848sGtTYJ','176388gbXRum','38410HyYDkY','5ZsaEwk','Should\x20be\x200600\x20or\x20more\x20restrictive.','2204142FdiAWX','Warning:\x20','110apAZrh','statSync','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','\x20has\x20insecure\x20permissions\x20(','mode','toString','41240DCohST',').\x20','130286UmYeov','chmodSync','warn','writeFileSync','402dhbHhl','14406LiMFxs','mkdirSync','737PQCKpY'];a218_0x2c0f=function(){return _0x5a0db5;};return a218_0x2c0f();}function a218_0x4e34(_0x479508,_0x4d047c){_0x479508=_0x479508-0x1c8;const _0x2c0fbd=a218_0x2c0f();let _0x4e34de=_0x2c0fbd[_0x479508];return _0x4e34de;}export function writeSecureFile(_0x59d69b,_0x4e033d){const _0x1ae8ec=a218_0x4e34,_0xd7c6e9=a218_0x1a9bf1['dirname'](_0x59d69b);createSecureDirectory(_0xd7c6e9),a218_0x232536[_0x1ae8ec(0x1d1)](_0x59d69b,_0x4e033d,{'mode':0x180}),setSecureFilePermissions(_0x59d69b);}
1
+ (function(_0x29b77f,_0x39fe44){const _0x7d6a9c=a221_0x56b0,_0x2b9453=_0x29b77f();while(!![]){try{const _0x38515f=-parseInt(_0x7d6a9c(0xce))/0x1+-parseInt(_0x7d6a9c(0xd1))/0x2*(-parseInt(_0x7d6a9c(0xca))/0x3)+-parseInt(_0x7d6a9c(0xd8))/0x4+parseInt(_0x7d6a9c(0xc7))/0x5+-parseInt(_0x7d6a9c(0xd4))/0x6*(-parseInt(_0x7d6a9c(0xc8))/0x7)+parseInt(_0x7d6a9c(0xc5))/0x8*(parseInt(_0x7d6a9c(0xd6))/0x9)+-parseInt(_0x7d6a9c(0xd0))/0xa*(parseInt(_0x7d6a9c(0xcb))/0xb);if(_0x38515f===_0x39fe44)break;else _0x2b9453['push'](_0x2b9453['shift']());}catch(_0x3780bc){_0x2b9453['push'](_0x2b9453['shift']());}}}(a221_0x3925,0x3d487));import*as a221_0x3cdd8f from'node:fs';import*as a221_0x34f052 from'node:path';function a221_0x3925(){const _0x26b585=['warn','chmodSync','111523tJBXqE','existsSync','302150QLZcvi','23304DaUNcX','mode','dirname','6zJOXZr','writeFileSync','9DkMRiY','Warning:\x20','1584544HsZJNx','3242392YugwxV','statSync','2077735hRrhzk','2861698nqSaQu','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','81LPWyun','286DWcxco'];a221_0x3925=function(){return _0x26b585;};return a221_0x3925();}export function setSecureFilePermissions(_0x3d8a76){const _0x583c8f=a221_0x56b0;try{a221_0x3cdd8f['chmodSync'](_0x3d8a76,0x180);}catch{console[_0x583c8f(0xcc)](_0x583c8f(0xc9)+_0x3d8a76);}}export function setSecureDirectoryPermissions(_0x5664fb){const _0x415c38=a221_0x56b0;try{a221_0x3cdd8f[_0x415c38(0xcd)](_0x5664fb,0x1c0);}catch{console['warn'](_0x415c38(0xc9)+_0x5664fb);}}function a221_0x56b0(_0x5f4543,_0x47073b){_0x5f4543=_0x5f4543-0xc5;const _0x392522=a221_0x3925();let _0x56b0fb=_0x392522[_0x5f4543];return _0x56b0fb;}export function createSecureDirectory(_0x28e899){const _0x5cc8cf=a221_0x56b0;!a221_0x3cdd8f[_0x5cc8cf(0xcf)](_0x28e899)&&(a221_0x3cdd8f['mkdirSync'](_0x28e899,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x28e899));}export function validateSecureFilePermissions(_0x43b199){const _0x2826aa=a221_0x56b0;try{const _0x38b27c=a221_0x3cdd8f[_0x2826aa(0xc6)](_0x43b199),_0x355926=_0x38b27c[_0x2826aa(0xd2)]&0x1ff,_0x3e5b8d=(_0x355926&0x3f)!==0x0;if(_0x3e5b8d)return console[_0x2826aa(0xcc)](_0x2826aa(0xd7)+_0x43b199+'\x20has\x20insecure\x20permissions\x20('+_0x355926['toString'](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x38da3d,_0x5607d5){const _0x1a7f45=a221_0x56b0,_0x5bd436=a221_0x34f052[_0x1a7f45(0xd3)](_0x38da3d);createSecureDirectory(_0x5bd436),a221_0x3cdd8f[_0x1a7f45(0xd5)](_0x38da3d,_0x5607d5,{'mode':0x180}),setSecureFilePermissions(_0x38da3d);}
@@ -1 +1 @@
1
- function a219_0x550b(_0x5666c6,_0x3fe638){_0x5666c6=_0x5666c6-0x9c;const _0x48e84f=a219_0x48e8();let _0x550b6e=_0x48e84f[_0x5666c6];return _0x550b6e;}function a219_0x48e8(){const _0x3d1da1=['NOT_FOUND','10782975mCLizz','code','662165XPQlzL','PERMISSION_DENIED','File\x20\x27','1644615NinQry','message','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27','748803rMzdbE','2rxGRDB','27622320jBUPWK','7510824voXUgZ','Error\x20reading\x20file\x20\x27','\x27:\x20','1115992XAdICG','ENOENT','INTERNAL','utf-8'];a219_0x48e8=function(){return _0x3d1da1;};return a219_0x48e8();}(function(_0xac53ac,_0x4bda98){const _0x4745ed=a219_0x550b,_0x2a24fd=_0xac53ac();while(!![]){try{const _0x4709b8=-parseInt(_0x4745ed(0x9e))/0x1+-parseInt(_0x4745ed(0xa6))/0x2*(-parseInt(_0x4745ed(0xa5))/0x3)+parseInt(_0x4745ed(0xab))/0x4+parseInt(_0x4745ed(0xa1))/0x5+-parseInt(_0x4745ed(0xa8))/0x6+-parseInt(_0x4745ed(0x9c))/0x7+parseInt(_0x4745ed(0xa7))/0x8;if(_0x4709b8===_0x4bda98)break;else _0x2a24fd['push'](_0x2a24fd['shift']());}catch(_0xfe6795){_0x2a24fd['push'](_0x2a24fd['shift']());}}}(a219_0x48e8,0xd0f6e));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x2b97ad){const _0x536e89=a219_0x550b;try{return readFileSync(_0x2b97ad,_0x536e89(0xae));}catch(_0x36c340){const _0x528769=_0x36c340[_0x536e89(0x9d)];if(_0x528769===_0x536e89(0xac))throw new SDKError(ErrorCode[_0x536e89(0xaf)],_0x536e89(0xa0)+_0x2b97ad+_0x536e89(0xa3),_0x36c340);else{if(_0x528769==='EACCES')throw new SDKError(ErrorCode[_0x536e89(0x9f)],_0x536e89(0xa4)+_0x2b97ad+'\x27',_0x36c340);else throw new SDKError(ErrorCode[_0x536e89(0xad)],_0x536e89(0xa9)+_0x2b97ad+_0x536e89(0xaa)+_0x36c340[_0x536e89(0xa2)],_0x36c340);}}}
1
+ (function(_0x2e4485,_0x385fed){const _0x13dfef=a222_0x5bf3,_0x571e46=_0x2e4485();while(!![]){try{const _0x17eda8=parseInt(_0x13dfef(0x87))/0x1*(parseInt(_0x13dfef(0x84))/0x2)+-parseInt(_0x13dfef(0x86))/0x3*(parseInt(_0x13dfef(0x7f))/0x4)+parseInt(_0x13dfef(0x93))/0x5*(parseInt(_0x13dfef(0x83))/0x6)+-parseInt(_0x13dfef(0x88))/0x7*(-parseInt(_0x13dfef(0x8f))/0x8)+-parseInt(_0x13dfef(0x8e))/0x9*(parseInt(_0x13dfef(0x8c))/0xa)+-parseInt(_0x13dfef(0x8d))/0xb+parseInt(_0x13dfef(0x81))/0xc;if(_0x17eda8===_0x385fed)break;else _0x571e46['push'](_0x571e46['shift']());}catch(_0x4d72d1){_0x571e46['push'](_0x571e46['shift']());}}}(a222_0x3560,0xb1854));function a222_0x5bf3(_0x31541f,_0x2b6874){_0x31541f=_0x31541f-0x7f;const _0x3560f0=a222_0x3560();let _0x5bf302=_0x3560f0[_0x31541f];return _0x5bf302;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a222_0x3560(){const _0x50b3fb=['33512VFhHDL','utf-8','Permission\x20denied\x20reading\x20file\x20\x27','NOT_FOUND','2035xIpNsZ','4jgNLIY','ENOENT','42085656BOlWEM','\x27\x20not\x20found','1542mQcRhp','264810uvXnJa','INTERNAL','2860845fhOwJh','1clDrai','224KlTTYH','File\x20\x27','PERMISSION_DENIED','EACCES','3297610xcPuqw','13289848geZbuU','27RrHhcX'];a222_0x3560=function(){return _0x50b3fb;};return a222_0x3560();}export function readFileContent(_0x545128){const _0x435fc0=a222_0x5bf3;try{return readFileSync(_0x545128,_0x435fc0(0x90));}catch(_0x1b657f){const _0x43220d=_0x1b657f['code'];if(_0x43220d===_0x435fc0(0x80))throw new SDKError(ErrorCode[_0x435fc0(0x92)],_0x435fc0(0x89)+_0x545128+_0x435fc0(0x82),_0x1b657f);else{if(_0x43220d===_0x435fc0(0x8b))throw new SDKError(ErrorCode[_0x435fc0(0x8a)],_0x435fc0(0x91)+_0x545128+'\x27',_0x1b657f);else throw new SDKError(ErrorCode[_0x435fc0(0x85)],'Error\x20reading\x20file\x20\x27'+_0x545128+'\x27:\x20'+_0x1b657f['message'],_0x1b657f);}}}
@@ -1 +1 @@
1
- function a220_0x18ab(_0x16c958,_0x1e7f88){_0x16c958=_0x16c958-0x91;const _0x2be12e=a220_0x2be1();let _0x18abd6=_0x2be12e[_0x16c958];return _0x18abd6;}function a220_0x2be1(){const _0x3300c5=['get','parse','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','timeout','/repos/','1347222BZpiYQ','32320490iulrCK','length','data','prerelease','set','find','6wHaHKd','error','next','destroy','198211kAWxGe','/releases?per_page=20','183176hzOsJl','statusCode','application/vnd.github+json','end','5149080pfPrve','now','tag_name','15YSiTgu','slice','1977192oomOkb','11582190sqOwlZ','toString','12BTMcKx'];a220_0x2be1=function(){return _0x3300c5;};return a220_0x2be1();}(function(_0x137b6b,_0x2fd0f9){const _0x333636=a220_0x18ab,_0xce1e65=_0x137b6b();while(!![]){try{const _0x48d4df=parseInt(_0x333636(0xa9))/0x1+-parseInt(_0x333636(0xa5))/0x2*(parseInt(_0x333636(0x9e))/0x3)+parseInt(_0x333636(0xab))/0x4*(-parseInt(_0x333636(0x93))/0x5)+parseInt(_0x333636(0x98))/0x6*(-parseInt(_0x333636(0x95))/0x7)+parseInt(_0x333636(0xaf))/0x8+-parseInt(_0x333636(0x96))/0x9+parseInt(_0x333636(0x9f))/0xa;if(_0x48d4df===_0x2fd0f9)break;else _0xce1e65['push'](_0xce1e65['shift']());}catch(_0x55c0f0){_0xce1e65['push'](_0xce1e65['shift']());}}}(a220_0x2be1,0xb40bd));import*as a220_0x5dcda9 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x23a281,_0x11e02b,_0xcbc935){const _0x9377cf=a220_0x18ab,_0x2750a0=_0x23a281+'/'+_0x11e02b,_0x48b686=cache[_0x9377cf(0x99)](_0x2750a0);if(_0x48b686&&Date[_0x9377cf(0x91)]()-_0x48b686['fetchedAt']<CACHE_TTL_MS)return Promise['resolve'](_0x48b686['releases']);return new Promise((_0x2c5466,_0x1fbf36)=>{const _0x6ad0cc=_0x9377cf,_0x1e77a6={'hostname':'api.github.com','path':_0x6ad0cc(0x9d)+_0x23a281+'/'+_0x11e02b+_0x6ad0cc(0xaa),'headers':{'User-Agent':_0xcbc935,'Accept':_0x6ad0cc(0xad)},'timeout':REQUEST_TIMEOUT_MS},_0xc5ec7c=a220_0x5dcda9[_0x6ad0cc(0x99)](_0x1e77a6,_0x2ae052=>{const _0x4c76fb=_0x6ad0cc;let _0x2080ca='';_0x2ae052['on'](_0x4c76fb(0xa1),_0x22ca2b=>{const _0x39d5c2=_0x4c76fb;_0x2080ca+=_0x22ca2b[_0x39d5c2(0x97)]();}),_0x2ae052['on'](_0x4c76fb(0xae),()=>{const _0x245582=_0x4c76fb;if(_0x2ae052[_0x245582(0xac)]!==0xc8){_0x1fbf36(new Error('GitHub\x20API\x20returned\x20'+_0x2ae052[_0x245582(0xac)]+':\x20'+_0x2080ca[_0x245582(0x94)](0x0,0xc8)));return;}try{const _0x315ca4=JSON[_0x245582(0x9a)](_0x2080ca);cache[_0x245582(0xa3)](_0x2750a0,{'releases':_0x315ca4,'fetchedAt':Date['now']()}),_0x2c5466(_0x315ca4);}catch(_0x446467){_0x1fbf36(_0x446467);}});});_0xc5ec7c['on'](_0x6ad0cc(0x9c),()=>{const _0x319991=_0x6ad0cc;_0xc5ec7c[_0x319991(0xa8)](),_0x1fbf36(new Error(_0x319991(0x9b)+REQUEST_TIMEOUT_MS+'ms'));}),_0xc5ec7c['on'](_0x6ad0cc(0xa6),_0x1fbf36);});}export async function resolveReleaseTag(_0x14da29,_0x3cfc10,_0x17de31,_0x472365){const _0x1f027b=a220_0x18ab;if(_0x14da29===_0x1f027b(0xa7))return null;const _0x4ff133=await fetchGitHubReleases(_0x3cfc10,_0x17de31,_0x472365);if(_0x4ff133[_0x1f027b(0xa0)]===0x0)return null;const _0x21e4f0=_0x4ff133[_0x1f027b(0xa4)](_0x54f389=>!_0x54f389[_0x1f027b(0xa2)]);return _0x21e4f0?_0x21e4f0[_0x1f027b(0x92)]:null;}
1
+ (function(_0x189878,_0x4c0508){const _0x5b0a58=a223_0x50a7,_0x36d10e=_0x189878();while(!![]){try{const _0x14f298=parseInt(_0x5b0a58(0x18f))/0x1+parseInt(_0x5b0a58(0x194))/0x2*(parseInt(_0x5b0a58(0x19a))/0x3)+parseInt(_0x5b0a58(0x19e))/0x4+-parseInt(_0x5b0a58(0x1a5))/0x5+-parseInt(_0x5b0a58(0x1a0))/0x6*(parseInt(_0x5b0a58(0x18e))/0x7)+parseInt(_0x5b0a58(0x1a1))/0x8+-parseInt(_0x5b0a58(0x1a4))/0x9;if(_0x14f298===_0x4c0508)break;else _0x36d10e['push'](_0x36d10e['shift']());}catch(_0x5d7421){_0x36d10e['push'](_0x36d10e['shift']());}}}(a223_0x2e21,0x8d561));import*as a223_0x6f9a35 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a223_0x50a7(_0x58a7d1,_0x4fd244){_0x58a7d1=_0x58a7d1-0x18a;const _0x2e2177=a223_0x2e21();let _0x50a777=_0x2e2177[_0x58a7d1];return _0x50a777;}export function fetchGitHubReleases(_0x28992a,_0x472de2,_0x49c0c2){const _0x5cf064=a223_0x50a7,_0x318085=_0x28992a+'/'+_0x472de2,_0x3a6932=cache[_0x5cf064(0x192)](_0x318085);if(_0x3a6932&&Date[_0x5cf064(0x18a)]()-_0x3a6932['fetchedAt']<CACHE_TTL_MS)return Promise[_0x5cf064(0x18d)](_0x3a6932[_0x5cf064(0x19b)]);return new Promise((_0x449695,_0x39e4c1)=>{const _0x391c41=_0x5cf064,_0x36ab53={'hostname':_0x391c41(0x19c),'path':_0x391c41(0x190)+_0x28992a+'/'+_0x472de2+'/releases?per_page=20','headers':{'User-Agent':_0x49c0c2,'Accept':_0x391c41(0x199)},'timeout':REQUEST_TIMEOUT_MS},_0x4c727c=a223_0x6f9a35[_0x391c41(0x192)](_0x36ab53,_0x2ce17a=>{const _0x4dc0df=_0x391c41;let _0x3b3497='';_0x2ce17a['on'](_0x4dc0df(0x18c),_0x87a4cf=>{const _0x383e57=_0x4dc0df;_0x3b3497+=_0x87a4cf[_0x383e57(0x1a6)]();}),_0x2ce17a['on'](_0x4dc0df(0x1a2),()=>{const _0x339d7e=_0x4dc0df;if(_0x2ce17a[_0x339d7e(0x18b)]!==0xc8){_0x39e4c1(new Error('GitHub\x20API\x20returned\x20'+_0x2ce17a[_0x339d7e(0x18b)]+':\x20'+_0x3b3497[_0x339d7e(0x195)](0x0,0xc8)));return;}try{const _0x3043b6=JSON[_0x339d7e(0x196)](_0x3b3497);cache[_0x339d7e(0x19d)](_0x318085,{'releases':_0x3043b6,'fetchedAt':Date[_0x339d7e(0x18a)]()}),_0x449695(_0x3043b6);}catch(_0x111157){_0x39e4c1(_0x111157);}});});_0x4c727c['on'](_0x391c41(0x191),()=>{const _0xfb9020=_0x391c41;_0x4c727c[_0xfb9020(0x198)](),_0x39e4c1(new Error(_0xfb9020(0x1a3)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4c727c['on'](_0x391c41(0x19f),_0x39e4c1);});}export async function resolveReleaseTag(_0x5cc7f7,_0x4059ee,_0x29ec53,_0x1bef0d){const _0x5bb223=a223_0x50a7;if(_0x5cc7f7===_0x5bb223(0x193))return null;const _0x49f886=await fetchGitHubReleases(_0x4059ee,_0x29ec53,_0x1bef0d);if(_0x49f886[_0x5bb223(0x197)]===0x0)return null;const _0x40df76=_0x49f886['find'](_0x53ab7c=>!_0x53ab7c['prerelease']);return _0x40df76?_0x40df76['tag_name']:null;}function a223_0x2e21(){const _0x41af9b=['length','destroy','application/vnd.github+json','72bjuLqa','releases','api.github.com','set','4529076sKAyiE','error','3907542fWpCWS','1739024AJgcmk','end','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','3663900zcRaeB','2479415BzNfXm','toString','now','statusCode','data','resolve','7GoFIot','166634HOloWf','/repos/','timeout','get','next','51406YMIaGh','slice','parse'];a223_0x2e21=function(){return _0x41af9b;};return a223_0x2e21();}
@@ -1 +1 @@
1
- (function(_0x1f5390,_0x35255a){const _0x28d598=a221_0xa53b,_0x2608a8=_0x1f5390();while(!![]){try{const _0xa244fd=parseInt(_0x28d598(0x1d1))/0x1*(-parseInt(_0x28d598(0x1c3))/0x2)+-parseInt(_0x28d598(0x1cb))/0x3+-parseInt(_0x28d598(0x1ce))/0x4*(parseInt(_0x28d598(0x1c4))/0x5)+parseInt(_0x28d598(0x1c8))/0x6*(-parseInt(_0x28d598(0x1c5))/0x7)+parseInt(_0x28d598(0x1d6))/0x8+-parseInt(_0x28d598(0x1cd))/0x9*(-parseInt(_0x28d598(0x1db))/0xa)+-parseInt(_0x28d598(0x1c2))/0xb*(-parseInt(_0x28d598(0x1d2))/0xc);if(_0xa244fd===_0x35255a)break;else _0x2608a8['push'](_0x2608a8['shift']());}catch(_0x506ea3){_0x2608a8['push'](_0x2608a8['shift']());}}}(a221_0x4874,0x5454f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5a0dc2=a221_0xa53b;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5a0dc2(0x1d8),_0x5a0dc2(0x1ca));}const registry=new Map();export function registerGlobalCacheKey(_0x21b6fa,_0x47f485){const _0x4d6b6e=a221_0xa53b,_0x1c2c8d=registry[_0x4d6b6e(0x1c7)](_0x21b6fa);if(_0x1c2c8d&&_0x1c2c8d!==_0x47f485)throw new Error(_0x4d6b6e(0x1d4)+_0x21b6fa+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1c2c8d+_0x4d6b6e(0x1d5)+_0x47f485+'\x22');registry[_0x4d6b6e(0x1cc)](_0x21b6fa,_0x47f485);}export function getGlobalCachePath(_0x5bd78d){return join(getGlobalCacheDir(),_0x5bd78d);}function ensureGlobalCacheDir(){const _0x524ea1=getGlobalCacheDir();!existsSync(_0x524ea1)&&mkdirSync(_0x524ea1,{'recursive':!![]});}function readCacheJson(_0x429d79){const _0x302e44=a221_0xa53b,_0x3e39f2=getGlobalCachePath(_0x429d79);if(!existsSync(_0x3e39f2))return undefined;try{const _0x9823f8=readFileSync(_0x3e39f2,'utf-8');return JSON[_0x302e44(0x1d7)](_0x9823f8);}catch{return undefined;}}function writeCacheJson(_0x5c6de6,_0x10df96){const _0x2d2ed6=a221_0xa53b;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5c6de6),JSON[_0x2d2ed6(0x1d3)](_0x10df96,null,0x2),_0x2d2ed6(0x1da));}function readCacheText(_0x125536){const _0x47f0f1=getGlobalCachePath(_0x125536);if(!existsSync(_0x47f0f1))return undefined;try{return readFileSync(_0x47f0f1,'utf-8');}catch{return undefined;}}function a221_0x4874(){const _0x88bf32=['replace','utf-8','940QEsCsY','11HukwPB','1486ilUTLI','1437995LpCJUZ','49FxfhXc','{profile}','get','268662POCPzH','trim','tdx','422817AKKoHl','set','46089vmPKEc','4MkvQFQ','clear','default','803pcAueu','9850164yGXZVm','stringify','Global\x20cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','3054464WPvvuX','parse','.cache'];a221_0x4874=function(){return _0x88bf32;};return a221_0x4874();}function writeCacheText(_0x582185,_0x277bd8){const _0x1b9ed6=a221_0xa53b;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x582185),_0x277bd8,_0x1b9ed6(0x1da));}function clearCache(_0x157f0d){const _0x54f515=getGlobalCachePath(_0x157f0d);if(existsSync(_0x54f515))try{unlinkSync(_0x54f515);}catch{}}function cacheExists(_0x27510d){return existsSync(getGlobalCachePath(_0x27510d));}export function createGlobalCache(_0x475294,_0x2dbdca){return registerGlobalCacheKey(_0x475294,_0x2dbdca),{'read':()=>readCacheJson(_0x475294),'write':_0x585cb8=>writeCacheJson(_0x475294,_0x585cb8),'clear':()=>clearCache(_0x475294),'exists':()=>cacheExists(_0x475294),'path':()=>getGlobalCachePath(_0x475294)};}function a221_0xa53b(_0x5f1345,_0x56709d){_0x5f1345=_0x5f1345-0x1c2;const _0x48747f=a221_0x4874();let _0xa53b20=_0x48747f[_0x5f1345];return _0xa53b20;}export function createGlobalTextCache(_0x13e53d,_0x586304){const _0x5074b7=a221_0xa53b;return registerGlobalCacheKey(_0x13e53d,_0x586304),{'read':()=>readCacheText(_0x13e53d)?.[_0x5074b7(0x1c9)]()||undefined,'write':_0x3ef506=>writeCacheText(_0x13e53d,_0x3ef506),'clear':()=>clearCache(_0x13e53d),'exists':()=>cacheExists(_0x13e53d),'path':()=>getGlobalCachePath(_0x13e53d)};}export function createProfileCache(_0x39dd73,_0x37183c){const _0x52be31=_0x31e343=>{const _0x2877bc=a221_0xa53b,_0x154a93=_0x31e343||_0x2877bc(0x1d0);return _0x39dd73[_0x2877bc(0x1d9)](_0x2877bc(0x1c6),_0x154a93);};return{'read':_0x904ab8=>{const _0x549256=_0x52be31(_0x904ab8);return registerGlobalCacheKey(_0x549256,_0x37183c),readCacheJson(_0x549256);},'write':(_0x1a11be,_0x14239d)=>{const _0x3d6ece=_0x52be31(_0x1a11be);registerGlobalCacheKey(_0x3d6ece,_0x37183c),writeCacheJson(_0x3d6ece,_0x14239d);},'clear':_0xaa37e2=>{const _0x2f2b4a=_0x52be31(_0xaa37e2);clearCache(_0x2f2b4a);},'exists':_0x2219a8=>{const _0x4cc49d=_0x52be31(_0x2219a8);return cacheExists(_0x4cc49d);},'path':_0xd87f63=>{const _0x417d4d=_0x52be31(_0xd87f63);return getGlobalCachePath(_0x417d4d);}};}export function createOptionalProfileCache(_0x57f5bc,_0x59224e,_0x6558b8={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x6558b8,_0x140198=_0x4b9c69=>{return _0x4b9c69?''+_0x57f5bc+profileSeparator+_0x4b9c69+suffix:''+_0x57f5bc+suffix;};return{'read':_0x123e80=>{const _0x6ded26=_0x140198(_0x123e80);return registerGlobalCacheKey(_0x6ded26,_0x59224e),readCacheJson(_0x6ded26);},'write':(_0x457fcc,_0xae2fbb)=>{const _0x4c2548=_0x140198(_0xae2fbb);registerGlobalCacheKey(_0x4c2548,_0x59224e),writeCacheJson(_0x4c2548,_0x457fcc);},'clear':_0x2ab409=>{const _0x3339bc=_0x140198(_0x2ab409);clearCache(_0x3339bc);},'exists':_0x2cadee=>{const _0xc434a2=_0x140198(_0x2cadee);return cacheExists(_0xc434a2);},'path':_0x472571=>{const _0x37507a=_0x140198(_0x472571);return getGlobalCachePath(_0x37507a);}};}export function clearGlobalRegistry(){const _0xcaed6a=a221_0xa53b;registry[_0xcaed6a(0x1cf)]();}
1
+ function a224_0x3baf(){const _0x42d559=['748712JaDqYQ','set','default','{profile}','stringify','40bfJpxy','Global\x20cache\x20key\x20\x22','3135513TBeEZi','883542TTBRFP','parse','utf-8','replace','clear','7734078zDyEfE','993112kgATPt','584372GFFwVS','\x22\x20already\x20registered\x20by\x20\x22','10hHxOKq','91oGnKEZ','1520399tUbWeN','.cache','trim'];a224_0x3baf=function(){return _0x42d559;};return a224_0x3baf();}(function(_0x1995d7,_0x4490ee){const _0x53b447=a224_0x2a82,_0x37f116=_0x1995d7();while(!![]){try{const _0x4850a0=-parseInt(_0x53b447(0x13a))/0x1+-parseInt(_0x53b447(0x13d))/0x2+-parseInt(_0x53b447(0x144))/0x3+parseInt(_0x53b447(0x136))/0x4+-parseInt(_0x53b447(0x142))/0x5*(-parseInt(_0x53b447(0x145))/0x6)+-parseInt(_0x53b447(0x139))/0x7*(-parseInt(_0x53b447(0x14b))/0x8)+-parseInt(_0x53b447(0x14a))/0x9*(-parseInt(_0x53b447(0x138))/0xa);if(_0x4850a0===_0x4490ee)break;else _0x37f116['push'](_0x37f116['shift']());}catch(_0x457d32){_0x37f116['push'](_0x37f116['shift']());}}}(a224_0x3baf,0xd151c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x675c9a=a224_0x2a82;return process.env.TDX_CACHE_DIR||join(homedir(),_0x675c9a(0x13b),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x3f2baa,_0x103de7){const _0xffe137=a224_0x2a82,_0x3c47aa=registry['get'](_0x3f2baa);if(_0x3c47aa&&_0x3c47aa!==_0x103de7)throw new Error(_0xffe137(0x143)+_0x3f2baa+_0xffe137(0x137)+_0x3c47aa+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x103de7+'\x22');registry[_0xffe137(0x13e)](_0x3f2baa,_0x103de7);}export function getGlobalCachePath(_0x1829b3){return join(getGlobalCacheDir(),_0x1829b3);}function ensureGlobalCacheDir(){const _0x4fcf09=getGlobalCacheDir();!existsSync(_0x4fcf09)&&mkdirSync(_0x4fcf09,{'recursive':!![]});}function readCacheJson(_0x45fc52){const _0x361477=a224_0x2a82,_0xb0a936=getGlobalCachePath(_0x45fc52);if(!existsSync(_0xb0a936))return undefined;try{const _0x3e9ce8=readFileSync(_0xb0a936,'utf-8');return JSON[_0x361477(0x146)](_0x3e9ce8);}catch{return undefined;}}function writeCacheJson(_0x898332,_0x1687c0){const _0xc38c2d=a224_0x2a82;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x898332),JSON[_0xc38c2d(0x141)](_0x1687c0,null,0x2),_0xc38c2d(0x147));}function readCacheText(_0x1e7955){const _0x42c076=a224_0x2a82,_0x93b3b1=getGlobalCachePath(_0x1e7955);if(!existsSync(_0x93b3b1))return undefined;try{return readFileSync(_0x93b3b1,_0x42c076(0x147));}catch{return undefined;}}function writeCacheText(_0x18d80e,_0x109a11){const _0x98fe8a=a224_0x2a82;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x18d80e),_0x109a11,_0x98fe8a(0x147));}function clearCache(_0x51089b){const _0x2a394a=getGlobalCachePath(_0x51089b);if(existsSync(_0x2a394a))try{unlinkSync(_0x2a394a);}catch{}}function a224_0x2a82(_0x5e5c07,_0x4ec1ac){_0x5e5c07=_0x5e5c07-0x136;const _0x3baf9e=a224_0x3baf();let _0x2a82e6=_0x3baf9e[_0x5e5c07];return _0x2a82e6;}function cacheExists(_0x2deae7){return existsSync(getGlobalCachePath(_0x2deae7));}export function createGlobalCache(_0x3f8123,_0x2d3ef3){return registerGlobalCacheKey(_0x3f8123,_0x2d3ef3),{'read':()=>readCacheJson(_0x3f8123),'write':_0x3a35d5=>writeCacheJson(_0x3f8123,_0x3a35d5),'clear':()=>clearCache(_0x3f8123),'exists':()=>cacheExists(_0x3f8123),'path':()=>getGlobalCachePath(_0x3f8123)};}export function createGlobalTextCache(_0x1710df,_0x439c4f){const _0x408c8a=a224_0x2a82;return registerGlobalCacheKey(_0x1710df,_0x439c4f),{'read':()=>readCacheText(_0x1710df)?.[_0x408c8a(0x13c)]()||undefined,'write':_0x1e313a=>writeCacheText(_0x1710df,_0x1e313a),'clear':()=>clearCache(_0x1710df),'exists':()=>cacheExists(_0x1710df),'path':()=>getGlobalCachePath(_0x1710df)};}export function createProfileCache(_0x5863df,_0x474759){const _0x413ae6=_0x6dd36=>{const _0x577a42=a224_0x2a82,_0x2c37f5=_0x6dd36||_0x577a42(0x13f);return _0x5863df[_0x577a42(0x148)](_0x577a42(0x140),_0x2c37f5);};return{'read':_0x4b9620=>{const _0x5e77b0=_0x413ae6(_0x4b9620);return registerGlobalCacheKey(_0x5e77b0,_0x474759),readCacheJson(_0x5e77b0);},'write':(_0x424137,_0x277546)=>{const _0x4e6678=_0x413ae6(_0x424137);registerGlobalCacheKey(_0x4e6678,_0x474759),writeCacheJson(_0x4e6678,_0x277546);},'clear':_0x3dc31a=>{const _0x2da1c3=_0x413ae6(_0x3dc31a);clearCache(_0x2da1c3);},'exists':_0x191e67=>{const _0x3cd510=_0x413ae6(_0x191e67);return cacheExists(_0x3cd510);},'path':_0x1d2955=>{const _0x12ddbb=_0x413ae6(_0x1d2955);return getGlobalCachePath(_0x12ddbb);}};}export function createOptionalProfileCache(_0xdfb9f4,_0x1ca2d2,_0x4985dd={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4985dd,_0x2397f8=_0x1d8603=>{return _0x1d8603?''+_0xdfb9f4+profileSeparator+_0x1d8603+suffix:''+_0xdfb9f4+suffix;};return{'read':_0x4a14f1=>{const _0x7db3fd=_0x2397f8(_0x4a14f1);return registerGlobalCacheKey(_0x7db3fd,_0x1ca2d2),readCacheJson(_0x7db3fd);},'write':(_0x4a5452,_0x4c4b0e)=>{const _0x5b7874=_0x2397f8(_0x4c4b0e);registerGlobalCacheKey(_0x5b7874,_0x1ca2d2),writeCacheJson(_0x5b7874,_0x4a5452);},'clear':_0xf7ccfc=>{const _0x3b1c87=_0x2397f8(_0xf7ccfc);clearCache(_0x3b1c87);},'exists':_0x42e346=>{const _0x5ccfe2=_0x2397f8(_0x42e346);return cacheExists(_0x5ccfe2);},'path':_0x37264d=>{const _0x5b20be=_0x2397f8(_0x37264d);return getGlobalCachePath(_0x5b20be);}};}export function clearGlobalRegistry(){const _0x55a258=a224_0x2a82;registry[_0x55a258(0x149)]();}
@@ -1 +1 @@
1
- (function(_0x3a3827,_0x1fd740){const _0x27c99c=a222_0x420d,_0x2553c7=_0x3a3827();while(!![]){try{const _0x456693=parseInt(_0x27c99c(0x1c9))/0x1+parseInt(_0x27c99c(0x1b9))/0x2*(-parseInt(_0x27c99c(0x1bc))/0x3)+parseInt(_0x27c99c(0x1c2))/0x4+parseInt(_0x27c99c(0x1be))/0x5+-parseInt(_0x27c99c(0x1c0))/0x6*(-parseInt(_0x27c99c(0x1cd))/0x7)+-parseInt(_0x27c99c(0x1ca))/0x8+-parseInt(_0x27c99c(0x1c1))/0x9;if(_0x456693===_0x1fd740)break;else _0x2553c7['push'](_0x2553c7['shift']());}catch(_0xcc7e62){_0x2553c7['push'](_0x2553c7['shift']());}}}(a222_0x3aa1,0xc2753));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x46440d,_0x2fdea8){const _0x577b87=a222_0x420d;try{if(_0x2fdea8){const _0x35cb74=await readFile(_0x46440d,_0x577b87(0x1c3));try{return JSON['parse'](_0x35cb74);}catch(_0x44527a){throw new SDKError(ErrorCode[_0x577b87(0x1c6)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x46440d+_0x577b87(0x1bd)+(_0x44527a instanceof Error?_0x44527a[_0x577b87(0x1cb)]:String(_0x44527a)));}}else try{return JSON['parse'](_0x46440d);}catch(_0x5b6bc0){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x5b6bc0 instanceof Error?_0x5b6bc0[_0x577b87(0x1cb)]:String(_0x5b6bc0)));}}catch(_0x3e133f){if(_0x3e133f instanceof SDKError)throw _0x3e133f;if(_0x3e133f instanceof Error&&_0x577b87(0x1c5)in _0x3e133f){const _0x5e4190=_0x3e133f;if(_0x5e4190[_0x577b87(0x1c5)]===_0x577b87(0x1bf))throw new SDKError(ErrorCode[_0x577b87(0x1c4)],'File\x20not\x20found:\x20'+_0x46440d);else{if(_0x5e4190[_0x577b87(0x1c5)]===_0x577b87(0x1cc))throw new SDKError(ErrorCode[_0x577b87(0x1c8)],_0x577b87(0x1ba)+_0x46440d);}}throw new SDKError(ErrorCode[_0x577b87(0x1c7)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3e133f instanceof Error?_0x3e133f[_0x577b87(0x1cb)]:String(_0x3e133f)));}}export async function loadJSONFromOptions(_0x9a528c,_0x1c8404){const _0x1b9453=a222_0x420d;if(_0x9a528c&&_0x1c8404)throw new SDKError(ErrorCode[_0x1b9453(0x1c6)],_0x1b9453(0x1bb));if(_0x9a528c)return await loadJSON(_0x9a528c,![]);if(_0x1c8404)return await loadJSON(_0x1c8404,!![]);return undefined;}function a222_0x420d(_0x4b3f04,_0x1e16a5){_0x4b3f04=_0x4b3f04-0x1b9;const _0x3aa164=a222_0x3aa1();let _0x420d3c=_0x3aa164[_0x4b3f04];return _0x420d3c;}function a222_0x3aa1(){const _0x2b2b7f=['EACCES','21TYkHlS','38964mYpljV','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','9LXcpTk','\x27:\x20','4839575iuZDyj','ENOENT','305094QflyZE','16583967ctQBBB','6043876ZTOGgr','utf-8','NOT_FOUND','code','INVALID_ARGUMENT','INTERNAL','PERMISSION_DENIED','714626QhzRXt','5187592GNocAu','message'];a222_0x3aa1=function(){return _0x2b2b7f;};return a222_0x3aa1();}
1
+ function a225_0x5824(_0x3cd9b7,_0x1111b3){_0x3cd9b7=_0x3cd9b7-0x1ec;const _0x233068=a225_0x2330();let _0x58247d=_0x233068[_0x3cd9b7];return _0x58247d;}(function(_0x1ebf18,_0x282ec9){const _0x6ce1a4=a225_0x5824,_0x1a8595=_0x1ebf18();while(!![]){try{const _0x1b9e69=parseInt(_0x6ce1a4(0x1f6))/0x1*(parseInt(_0x6ce1a4(0x1f3))/0x2)+parseInt(_0x6ce1a4(0x1fa))/0x3+parseInt(_0x6ce1a4(0x1ff))/0x4*(-parseInt(_0x6ce1a4(0x1ef))/0x5)+parseInt(_0x6ce1a4(0x1f8))/0x6+-parseInt(_0x6ce1a4(0x1f2))/0x7+parseInt(_0x6ce1a4(0x202))/0x8+parseInt(_0x6ce1a4(0x1f9))/0x9*(-parseInt(_0x6ce1a4(0x200))/0xa);if(_0x1b9e69===_0x282ec9)break;else _0x1a8595['push'](_0x1a8595['shift']());}catch(_0x5d0137){_0x1a8595['push'](_0x1a8595['shift']());}}}(a225_0x2330,0xb3f0e));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x521489,_0x567871){const _0x44f1af=a225_0x5824;try{if(_0x567871){const _0x2cc38c=await readFile(_0x521489,'utf-8');try{return JSON[_0x44f1af(0x1f1)](_0x2cc38c);}catch(_0x22391d){throw new SDKError(ErrorCode[_0x44f1af(0x1ec)],_0x44f1af(0x1f7)+_0x521489+'\x27:\x20'+(_0x22391d instanceof Error?_0x22391d['message']:String(_0x22391d)));}}else try{return JSON['parse'](_0x521489);}catch(_0xbec364){throw new SDKError(ErrorCode[_0x44f1af(0x1ec)],_0x44f1af(0x1f0)+(_0xbec364 instanceof Error?_0xbec364[_0x44f1af(0x1fb)]:String(_0xbec364)));}}catch(_0x4227d9){if(_0x4227d9 instanceof SDKError)throw _0x4227d9;if(_0x4227d9 instanceof Error&&'code'in _0x4227d9){const _0x3f1f90=_0x4227d9;if(_0x3f1f90['code']==='ENOENT')throw new SDKError(ErrorCode[_0x44f1af(0x1f4)],_0x44f1af(0x1fc)+_0x521489);else{if(_0x3f1f90[_0x44f1af(0x1f5)]===_0x44f1af(0x1fe))throw new SDKError(ErrorCode[_0x44f1af(0x1ed)],_0x44f1af(0x1fd)+_0x521489);}}throw new SDKError(ErrorCode[_0x44f1af(0x201)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x4227d9 instanceof Error?_0x4227d9[_0x44f1af(0x1fb)]:String(_0x4227d9)));}}export async function loadJSONFromOptions(_0x3d55ae,_0x1866d2){const _0x78fc5e=a225_0x5824;if(_0x3d55ae&&_0x1866d2)throw new SDKError(ErrorCode[_0x78fc5e(0x1ec)],_0x78fc5e(0x1ee));if(_0x3d55ae)return await loadJSON(_0x3d55ae,![]);if(_0x1866d2)return await loadJSON(_0x1866d2,!![]);return undefined;}function a225_0x2330(){const _0x43dec3=['Invalid\x20JSON\x20in\x20file\x20\x27','6414696NEIvHQ','67896FWJIBL','3291606buYBBS','message','File\x20not\x20found:\x20','Permission\x20denied\x20reading\x20file:\x20','EACCES','5052620eSlsco','930VmCCXJ','INTERNAL','5481088AvyXEf','INVALID_ARGUMENT','PERMISSION_DENIED','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','5xQlLdj','Invalid\x20JSON\x20string:\x20','parse','6820884JSLSbN','1042pfrdOA','NOT_FOUND','code','1583yFAApg'];a225_0x2330=function(){return _0x43dec3;};return a225_0x2330();}
@@ -1 +1 @@
1
- const a223_0x1997c5=a223_0x3db7;(function(_0x44902f,_0x4c9402){const _0x2f5448=a223_0x3db7,_0x4edf3b=_0x44902f();while(!![]){try{const _0xf53d4a=parseInt(_0x2f5448(0x175))/0x1+parseInt(_0x2f5448(0x178))/0x2*(-parseInt(_0x2f5448(0x173))/0x3)+-parseInt(_0x2f5448(0x186))/0x4*(-parseInt(_0x2f5448(0x17c))/0x5)+-parseInt(_0x2f5448(0x17d))/0x6*(-parseInt(_0x2f5448(0x185))/0x7)+-parseInt(_0x2f5448(0x174))/0x8*(parseInt(_0x2f5448(0x17b))/0x9)+parseInt(_0x2f5448(0x17f))/0xa*(-parseInt(_0x2f5448(0x179))/0xb)+parseInt(_0x2f5448(0x17a))/0xc;if(_0xf53d4a===_0x4c9402)break;else _0x4edf3b['push'](_0x4edf3b['shift']());}catch(_0x13041f){_0x4edf3b['push'](_0x4edf3b['shift']());}}}(a223_0x4580,0xb05db));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a223_0x1997c5(0x184),registry=new Map();export function registerCacheKey(_0x5be0a0,_0x48d153){const _0x1e0ffa=a223_0x1997c5,_0x2692c1=registry['get'](_0x5be0a0);if(_0x2692c1&&_0x2692c1!==_0x48d153)throw new Error('Cache\x20key\x20\x22'+_0x5be0a0+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2692c1+_0x1e0ffa(0x176)+_0x48d153+'\x22');registry['set'](_0x5be0a0,_0x48d153);}export function getCacheDir(){const _0xee3daf=a223_0x1997c5,_0x42e18e=process[_0xee3daf(0x182)](),_0x3a1210=_0x42e18e===parse(_0x42e18e)[_0xee3daf(0x181)]?homedir():_0x42e18e;return join(_0x3a1210,LOCAL_CACHE_DIR);}export function getCachePath(_0x5e234f){return join(getCacheDir(),_0x5e234f);}function ensureCacheDir(){const _0xe6d04a=getCacheDir();!existsSync(_0xe6d04a)&&mkdirSync(_0xe6d04a,{'recursive':!![]});}function a223_0x3db7(_0x3503b5,_0x5cb17a){_0x3503b5=_0x3503b5-0x173;const _0x4580bc=a223_0x4580();let _0x3db7e3=_0x4580bc[_0x3503b5];return _0x3db7e3;}function readCacheJson(_0x54eaba){const _0x91cb5a=a223_0x1997c5,_0xd0f230=getCachePath(_0x54eaba);if(!existsSync(_0xd0f230))return undefined;try{const _0x398c9d=readFileSync(_0xd0f230,_0x91cb5a(0x177));return JSON[_0x91cb5a(0x183)](_0x398c9d);}catch{return undefined;}}function writeCacheJson(_0x2387f0,_0x205009){const _0x710ab7=a223_0x1997c5;ensureCacheDir(),writeFileSync(getCachePath(_0x2387f0),JSON[_0x710ab7(0x17e)](_0x205009,null,0x2),_0x710ab7(0x177));}function readCacheText(_0x38b687){const _0x5012c6=a223_0x1997c5,_0x5494cd=getCachePath(_0x38b687);if(!existsSync(_0x5494cd))return undefined;try{return readFileSync(_0x5494cd,_0x5012c6(0x177));}catch{return undefined;}}function writeCacheText(_0x55e6f0,_0x3fcf07){const _0x186e32=a223_0x1997c5;ensureCacheDir(),writeFileSync(getCachePath(_0x55e6f0),_0x3fcf07,_0x186e32(0x177));}function clearCache(_0x7fa1a0){const _0xf46bff=getCachePath(_0x7fa1a0);if(existsSync(_0xf46bff))try{unlinkSync(_0xf46bff);}catch{}}function cacheExists(_0x346578){return existsSync(getCachePath(_0x346578));}function a223_0x4580(){const _0x38f586=['2053108WdSACS','8079nPYzbf','8VQrbCS','329501ksyOAJ','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','1018OSEaQj','11BKhtzZ','24750660ZpEAjz','5045274rxNdgG','10uomIAS','354RlkDqd','stringify','12681030wVBIKV','trim','root','cwd','parse','.cache/tdx','59703rmeeUp'];a223_0x4580=function(){return _0x38f586;};return a223_0x4580();}export function createCache(_0xb9e1b4,_0x5c32c2){return registerCacheKey(_0xb9e1b4,_0x5c32c2),{'read':()=>readCacheJson(_0xb9e1b4),'write':_0x404fa7=>writeCacheJson(_0xb9e1b4,_0x404fa7),'clear':()=>clearCache(_0xb9e1b4),'exists':()=>cacheExists(_0xb9e1b4),'path':()=>getCachePath(_0xb9e1b4)};}export function createTextCache(_0x4776d7,_0xcb51c2){const _0x3adba6=a223_0x1997c5;return registerCacheKey(_0x4776d7,_0xcb51c2),{'read':()=>readCacheText(_0x4776d7)?.[_0x3adba6(0x180)]()||undefined,'write':_0x66ba9f=>writeCacheText(_0x4776d7,_0x66ba9f),'clear':()=>clearCache(_0x4776d7),'exists':()=>cacheExists(_0x4776d7),'path':()=>getCachePath(_0x4776d7)};}export function clearRegistry(){registry['clear']();}
1
+ const a226_0x791ff0=a226_0x307c;(function(_0x4556f5,_0x3921a0){const _0x2f39fc=a226_0x307c,_0x3b1824=_0x4556f5();while(!![]){try{const _0x527a32=parseInt(_0x2f39fc(0x1d4))/0x1*(-parseInt(_0x2f39fc(0x1d2))/0x2)+-parseInt(_0x2f39fc(0x1e2))/0x3+-parseInt(_0x2f39fc(0x1dc))/0x4*(-parseInt(_0x2f39fc(0x1d9))/0x5)+parseInt(_0x2f39fc(0x1cf))/0x6*(parseInt(_0x2f39fc(0x1db))/0x7)+parseInt(_0x2f39fc(0x1d7))/0x8+parseInt(_0x2f39fc(0x1d0))/0x9+parseInt(_0x2f39fc(0x1e3))/0xa*(-parseInt(_0x2f39fc(0x1d6))/0xb);if(_0x527a32===_0x3921a0)break;else _0x3b1824['push'](_0x3b1824['shift']());}catch(_0x5498c3){_0x3b1824['push'](_0x3b1824['shift']());}}}(a226_0x28cf,0xb24ac));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a226_0x307c(_0x5372b4,_0x246f54){_0x5372b4=_0x5372b4-0x1cf;const _0x28cf96=a226_0x28cf();let _0x307cbd=_0x28cf96[_0x5372b4];return _0x307cbd;}import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a226_0x791ff0(0x1da),registry=new Map();export function registerCacheKey(_0x2c1fff,_0x1dcbd1){const _0x1e3382=a226_0x791ff0,_0x3592c5=registry[_0x1e3382(0x1d3)](_0x2c1fff);if(_0x3592c5&&_0x3592c5!==_0x1dcbd1)throw new Error('Cache\x20key\x20\x22'+_0x2c1fff+_0x1e3382(0x1e1)+_0x3592c5+_0x1e3382(0x1e0)+_0x1dcbd1+'\x22');registry[_0x1e3382(0x1de)](_0x2c1fff,_0x1dcbd1);}export function getCacheDir(){const _0x48f4f7=a226_0x791ff0,_0x3bc0e7=process[_0x48f4f7(0x1d1)](),_0x49c051=_0x3bc0e7===parse(_0x3bc0e7)[_0x48f4f7(0x1df)]?homedir():_0x3bc0e7;return join(_0x49c051,LOCAL_CACHE_DIR);}export function getCachePath(_0x33203b){return join(getCacheDir(),_0x33203b);}function ensureCacheDir(){const _0x5b28dc=getCacheDir();!existsSync(_0x5b28dc)&&mkdirSync(_0x5b28dc,{'recursive':!![]});}function readCacheJson(_0xb04803){const _0x860a46=a226_0x791ff0,_0x17f549=getCachePath(_0xb04803);if(!existsSync(_0x17f549))return undefined;try{const _0x2b05a0=readFileSync(_0x17f549,_0x860a46(0x1e4));return JSON[_0x860a46(0x1dd)](_0x2b05a0);}catch{return undefined;}}function writeCacheJson(_0x412fe0,_0x50acad){const _0x3de6dc=a226_0x791ff0;ensureCacheDir(),writeFileSync(getCachePath(_0x412fe0),JSON[_0x3de6dc(0x1d8)](_0x50acad,null,0x2),'utf-8');}function readCacheText(_0x334cf3){const _0x2206e1=a226_0x791ff0,_0xd12c17=getCachePath(_0x334cf3);if(!existsSync(_0xd12c17))return undefined;try{return readFileSync(_0xd12c17,_0x2206e1(0x1e4));}catch{return undefined;}}function writeCacheText(_0x12ff6a,_0x4c46a5){const _0x447f63=a226_0x791ff0;ensureCacheDir(),writeFileSync(getCachePath(_0x12ff6a),_0x4c46a5,_0x447f63(0x1e4));}function clearCache(_0x2141e6){const _0x24fbf2=getCachePath(_0x2141e6);if(existsSync(_0x24fbf2))try{unlinkSync(_0x24fbf2);}catch{}}function a226_0x28cf(){const _0x567990=['121302AJZgCR','11146005KejNdn','cwd','939524xMPmkA','get','1FhvaaB','clear','33grZLWC','8312416evhoAw','stringify','340hDmtXw','.cache/tdx','301xKdqeX','6036vTnowj','parse','set','root','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','837921nSwmas','5900290UFnLLD','utf-8'];a226_0x28cf=function(){return _0x567990;};return a226_0x28cf();}function cacheExists(_0x3d16ec){return existsSync(getCachePath(_0x3d16ec));}export function createCache(_0x501325,_0x118d24){return registerCacheKey(_0x501325,_0x118d24),{'read':()=>readCacheJson(_0x501325),'write':_0x1066a1=>writeCacheJson(_0x501325,_0x1066a1),'clear':()=>clearCache(_0x501325),'exists':()=>cacheExists(_0x501325),'path':()=>getCachePath(_0x501325)};}export function createTextCache(_0xab2e81,_0x1c722c){return registerCacheKey(_0xab2e81,_0x1c722c),{'read':()=>readCacheText(_0xab2e81)?.['trim']()||undefined,'write':_0x39e373=>writeCacheText(_0xab2e81,_0x39e373),'clear':()=>clearCache(_0xab2e81),'exists':()=>cacheExists(_0xab2e81),'path':()=>getCachePath(_0xab2e81)};}export function clearRegistry(){const _0x2ffb69=a226_0x791ff0;registry[_0x2ffb69(0x1d5)]();}
@@ -1 +1 @@
1
- function a224_0x4c64(){const _0x2ff3cc=['red','2060396xVLeoQ','blue','chalk','cyan','gray','format','15446493OxuUVA','3510786pipSjn','266042irBNGJ',']\x20[','INFO','WARN','colorLevel','timestamp','84248ubUtmB','component','level','colors','5EAXTGr','1050014fKhujP','91128awUysf','DEBUG','10vkbXRy','message','7sLaGmT','TRACE','Chalk','ERROR'];a224_0x4c64=function(){return _0x2ff3cc;};return a224_0x4c64();}const a224_0x4129d4=a224_0x1f93;(function(_0x26578c,_0x7d8fb3){const _0xa15659=a224_0x1f93,_0x453803=_0x26578c();while(!![]){try{const _0x241adf=parseInt(_0xa15659(0x181))/0x1+-parseInt(_0xa15659(0x18c))/0x2+-parseInt(_0xa15659(0x18d))/0x3+-parseInt(_0xa15659(0x196))/0x4+-parseInt(_0xa15659(0x18b))/0x5*(parseInt(_0xa15659(0x19d))/0x6)+parseInt(_0xa15659(0x191))/0x7*(-parseInt(_0xa15659(0x187))/0x8)+-parseInt(_0xa15659(0x19c))/0x9*(-parseInt(_0xa15659(0x18f))/0xa);if(_0x241adf===_0x7d8fb3)break;else _0x453803['push'](_0x453803['shift']());}catch(_0x289b26){_0x453803['push'](_0x453803['shift']());}}}(a224_0x4c64,0x4d30f));import a224_0x1f6ccf from'chalk';function a224_0x1f93(_0x45f693,_0x258429){_0x45f693=_0x45f693-0x181;const _0x4c6484=a224_0x4c64();let _0x1f93d3=_0x4c6484[_0x45f693];return _0x1f93d3;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a224_0x1f6ccf,ChalkClass=chalkModule[a224_0x4129d4(0x193)]||chalkModule['default']?.[a224_0x4129d4(0x193)];export class DefaultLogFormatter{[a224_0x4129d4(0x18a)];[a224_0x4129d4(0x198)];constructor(_0x299d84={}){const _0x12faaa=a224_0x4129d4;this[_0x12faaa(0x18a)]=_0x299d84['colors']??![],this[_0x12faaa(0x198)]=_0x299d84[_0x12faaa(0x18a)]&&ChalkClass?new ChalkClass({'level':0x3}):a224_0x1f6ccf;}[a224_0x4129d4(0x19b)](_0x4d2a9f){const _0x53ab06=a224_0x4129d4,_0x44a54c=formatTimestamp(_0x4d2a9f[_0x53ab06(0x186)]),_0x285b3c=logLevelToString(_0x4d2a9f[_0x53ab06(0x189)]);if(!this['colors'])return _0x44a54c+'\x20['+_0x285b3c+_0x53ab06(0x182)+_0x4d2a9f['component']+']\x20'+_0x4d2a9f['message'];const _0x2d69c3=this[_0x53ab06(0x198)]['dim'](_0x44a54c),_0x141a61=this[_0x53ab06(0x185)](_0x285b3c,_0x4d2a9f[_0x53ab06(0x189)]),_0x3e0d5b=this[_0x53ab06(0x198)][_0x53ab06(0x197)]('['+_0x4d2a9f[_0x53ab06(0x188)]+']');return _0x2d69c3+'\x20'+_0x141a61+'\x20'+_0x3e0d5b+'\x20'+_0x4d2a9f[_0x53ab06(0x190)];}[a224_0x4129d4(0x185)](_0x476828,_0xed5cf0){const _0x4771f6=a224_0x4129d4;switch(_0xed5cf0){case LogLevel[_0x4771f6(0x192)]:return this[_0x4771f6(0x198)][_0x4771f6(0x19a)]('['+_0x476828+']');case LogLevel[_0x4771f6(0x18e)]:return this[_0x4771f6(0x198)]['green']('['+_0x476828+']');case LogLevel[_0x4771f6(0x183)]:return this[_0x4771f6(0x198)][_0x4771f6(0x199)]('['+_0x476828+']');case LogLevel[_0x4771f6(0x184)]:return this[_0x4771f6(0x198)]['yellow']('['+_0x476828+']');case LogLevel[_0x4771f6(0x194)]:return this[_0x4771f6(0x198)][_0x4771f6(0x195)]('['+_0x476828+']');default:return'['+_0x476828+']';}}}
1
+ function a227_0xe162(_0x44f0f0,_0x290428){_0x44f0f0=_0x44f0f0-0x1eb;const _0x5416be=a227_0x5416();let _0xe1623=_0x5416be[_0x44f0f0];return _0xe1623;}const a227_0x197f97=a227_0xe162;(function(_0x382ddd,_0x2f09e2){const _0x4c7b71=a227_0xe162,_0x2a8c28=_0x382ddd();while(!![]){try{const _0x286d84=parseInt(_0x4c7b71(0x1fa))/0x1+parseInt(_0x4c7b71(0x1fe))/0x2*(parseInt(_0x4c7b71(0x1ef))/0x3)+parseInt(_0x4c7b71(0x200))/0x4+-parseInt(_0x4c7b71(0x206))/0x5*(parseInt(_0x4c7b71(0x1f7))/0x6)+-parseInt(_0x4c7b71(0x202))/0x7*(parseInt(_0x4c7b71(0x201))/0x8)+-parseInt(_0x4c7b71(0x207))/0x9+-parseInt(_0x4c7b71(0x1fc))/0xa;if(_0x286d84===_0x2f09e2)break;else _0x2a8c28['push'](_0x2a8c28['shift']());}catch(_0x125b83){_0x2a8c28['push'](_0x2a8c28['shift']());}}}(a227_0x5416,0x22945));import a227_0x4734e1 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a227_0x5416(){const _0x50cc7d=['WARN','72mnJcCA','component','DEBUG','179267tpDFlT','INFO','105020QXhUlw','Chalk','6378CAZzQy','chalk','862060LHVryW','232doyGuQ','10997mLYkGh','format','message','colors','49365UBNgJu','1769409RETdYA','green','cyan','colorLevel','gray','level','blue','111PmxLyE','yellow','default','ERROR','timestamp',']\x20[','red'];a227_0x5416=function(){return _0x50cc7d;};return a227_0x5416();}const chalkModule=a227_0x4734e1,ChalkClass=chalkModule[a227_0x197f97(0x1fd)]||chalkModule[a227_0x197f97(0x1f1)]?.[a227_0x197f97(0x1fd)];export class DefaultLogFormatter{[a227_0x197f97(0x205)];[a227_0x197f97(0x1ff)];constructor(_0x1ca913={}){const _0x42ad45=a227_0x197f97;this['colors']=_0x1ca913['colors']??![],this[_0x42ad45(0x1ff)]=_0x1ca913[_0x42ad45(0x205)]&&ChalkClass?new ChalkClass({'level':0x3}):a227_0x4734e1;}[a227_0x197f97(0x203)](_0x262c60){const _0x3fc3ce=a227_0x197f97,_0x1f4445=formatTimestamp(_0x262c60[_0x3fc3ce(0x1f3)]),_0x36d901=logLevelToString(_0x262c60[_0x3fc3ce(0x1ed)]);if(!this[_0x3fc3ce(0x205)])return _0x1f4445+'\x20['+_0x36d901+_0x3fc3ce(0x1f4)+_0x262c60[_0x3fc3ce(0x1f8)]+']\x20'+_0x262c60[_0x3fc3ce(0x204)];const _0x181cbb=this['chalk']['dim'](_0x1f4445),_0xc2141a=this[_0x3fc3ce(0x1eb)](_0x36d901,_0x262c60[_0x3fc3ce(0x1ed)]),_0x3000be=this['chalk'][_0x3fc3ce(0x1ee)]('['+_0x262c60[_0x3fc3ce(0x1f8)]+']');return _0x181cbb+'\x20'+_0xc2141a+'\x20'+_0x3000be+'\x20'+_0x262c60[_0x3fc3ce(0x204)];}[a227_0x197f97(0x1eb)](_0x559ac6,_0x571b9d){const _0x19cebb=a227_0x197f97;switch(_0x571b9d){case LogLevel['TRACE']:return this[_0x19cebb(0x1ff)][_0x19cebb(0x1ec)]('['+_0x559ac6+']');case LogLevel[_0x19cebb(0x1f9)]:return this['chalk'][_0x19cebb(0x208)]('['+_0x559ac6+']');case LogLevel[_0x19cebb(0x1fb)]:return this[_0x19cebb(0x1ff)][_0x19cebb(0x209)]('['+_0x559ac6+']');case LogLevel[_0x19cebb(0x1f6)]:return this[_0x19cebb(0x1ff)][_0x19cebb(0x1f0)]('['+_0x559ac6+']');case LogLevel[_0x19cebb(0x1f2)]:return this[_0x19cebb(0x1ff)][_0x19cebb(0x1f5)]('['+_0x559ac6+']');default:return'['+_0x559ac6+']';}}}
@@ -1 +1 @@
1
- function a225_0x5be9(){var _0x38b11f=['3342530qyALUw','937746JoTxRg','2860lcBTeE','12xSKXBh','23567532WKVvTP','17883FBUMZM','110666tjdCuY','5333392ZJUwCA','4vbvIVJ','11TOtbQo','869184IfHJvp','7Hlzpah'];a225_0x5be9=function(){return _0x38b11f;};return a225_0x5be9();}function a225_0x5ec7(_0x322078,_0x5c59a9){_0x322078=_0x322078-0xb4;var _0x5be9b8=a225_0x5be9();var _0x5ec75c=_0x5be9b8[_0x322078];return _0x5ec75c;}(function(_0xefee22,_0x10902f){var _0x2bfc27=a225_0x5ec7,_0x3e0d51=_0xefee22();while(!![]){try{var _0x26e3e9=-parseInt(_0x2bfc27(0xbf))/0x1*(parseInt(_0x2bfc27(0xb6))/0x2)+-parseInt(_0x2bfc27(0xbd))/0x3+parseInt(_0x2bfc27(0xb8))/0x4*(-parseInt(_0x2bfc27(0xbc))/0x5)+parseInt(_0x2bfc27(0xba))/0x6+-parseInt(_0x2bfc27(0xbb))/0x7*(parseInt(_0x2bfc27(0xb7))/0x8)+parseInt(_0x2bfc27(0xb5))/0x9*(parseInt(_0x2bfc27(0xbe))/0xa)+parseInt(_0x2bfc27(0xb9))/0xb*(parseInt(_0x2bfc27(0xb4))/0xc);if(_0x26e3e9===_0x10902f)break;else _0x3e0d51['push'](_0x3e0d51['shift']());}catch(_0x418f75){_0x3e0d51['push'](_0x3e0d51['shift']());}}}(a225_0x5be9,0x59325));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a228_0x4896(){var _0x2be261=['25ovbRmu','9GZKObj','3320dTIxgy','9046580WgACGd','1982328ZhRsaP','332526rvRPIE','2749FpRmqy','8106UsPiOP','844227snGEtk','23101342MFxlxp','52iRHtpY'];a228_0x4896=function(){return _0x2be261;};return a228_0x4896();}(function(_0x522886,_0x4b01cc){var _0x16ff2b=a228_0x2177,_0x44e570=_0x522886();while(!![]){try{var _0x3c65be=-parseInt(_0x16ff2b(0xf5))/0x1*(parseInt(_0x16ff2b(0xee))/0x2)+-parseInt(_0x16ff2b(0xec))/0x3+-parseInt(_0x16ff2b(0xf3))/0x4+parseInt(_0x16ff2b(0xef))/0x5*(-parseInt(_0x16ff2b(0xf4))/0x6)+parseInt(_0x16ff2b(0xf6))/0x7*(parseInt(_0x16ff2b(0xf1))/0x8)+-parseInt(_0x16ff2b(0xf0))/0x9*(parseInt(_0x16ff2b(0xf2))/0xa)+parseInt(_0x16ff2b(0xed))/0xb;if(_0x3c65be===_0x4b01cc)break;else _0x44e570['push'](_0x44e570['shift']());}catch(_0x166475){_0x44e570['push'](_0x44e570['shift']());}}}(a228_0x4896,0x86640));function a228_0x2177(_0x14c4fe,_0x49d6bc){_0x14c4fe=_0x14c4fe-0xec;var _0x4896f8=a228_0x4896();var _0x2177eb=_0x4896f8[_0x14c4fe];return _0x2177eb;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a226_0x2f61(_0x5e285d,_0x5974b7){_0x5e285d=_0x5e285d-0x191;const _0x19425c=a226_0x1942();let _0x2f61e5=_0x19425c[_0x5e285d];return _0x2f61e5;}function a226_0x1942(){const _0x5b3577=['formatter','2266722TztzGI','minLevel','471760CjRBBM','handle','log','7352zhXjJy','1LYXALJ','useStderr','1357230OggqVk','WARN','1421810LdkPYm','67764UutmwF','45LzXwzQ','1000758JSTaaS','1750jkrqhT','format','level'];a226_0x1942=function(){return _0x5b3577;};return a226_0x1942();}const a226_0x46be51=a226_0x2f61;(function(_0x5d892a,_0x1b26f7){const _0x3b4621=a226_0x2f61,_0x56e972=_0x5d892a();while(!![]){try{const _0x575356=-parseInt(_0x3b4621(0x19b))/0x1*(-parseInt(_0x3b4621(0x197))/0x2)+-parseInt(_0x3b4621(0x1a1))/0x3*(-parseInt(_0x3b4621(0x1a0))/0x4)+-parseInt(_0x3b4621(0x19f))/0x5+-parseInt(_0x3b4621(0x1a2))/0x6+parseInt(_0x3b4621(0x191))/0x7*(parseInt(_0x3b4621(0x19a))/0x8)+-parseInt(_0x3b4621(0x195))/0x9+parseInt(_0x3b4621(0x19d))/0xa;if(_0x575356===_0x1b26f7)break;else _0x56e972['push'](_0x56e972['shift']());}catch(_0x1fa6e7){_0x56e972['push'](_0x56e972['shift']());}}}(a226_0x1942,0x25387));import{LogLevel as a226_0x3590c6}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a226_0x46be51(0x19c)];[a226_0x46be51(0x194)];constructor(_0x1bad94={}){const _0x1c21bd=a226_0x46be51;this[_0x1c21bd(0x196)]=_0x1bad94[_0x1c21bd(0x196)]??a226_0x3590c6[_0x1c21bd(0x19e)],this['useStderr']=_0x1bad94[_0x1c21bd(0x19c)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x1bad94['colors']??!![]});}[a226_0x46be51(0x198)](_0x138963){const _0xa8f0c3=a226_0x46be51;if(_0x138963[_0xa8f0c3(0x193)]<this[_0xa8f0c3(0x196)])return;const _0x1bab64=this[_0xa8f0c3(0x194)][_0xa8f0c3(0x192)](_0x138963);this['useStderr']&&_0x138963[_0xa8f0c3(0x193)]>=a226_0x3590c6[_0xa8f0c3(0x19e)]?console['error'](_0x1bab64):console[_0xa8f0c3(0x199)](_0x1bab64);}}
1
+ const a229_0x3fbf2b=a229_0x2f9b;function a229_0x2f9b(_0x41123b,_0x54a913){_0x41123b=_0x41123b-0x1d7;const _0x14b9cc=a229_0x14b9();let _0x2f9bdc=_0x14b9cc[_0x41123b];return _0x2f9bdc;}(function(_0x2eee82,_0x3fbb3c){const _0x2ecf41=a229_0x2f9b,_0xc4b2c=_0x2eee82();while(!![]){try{const _0x55f8d0=-parseInt(_0x2ecf41(0x1de))/0x1+-parseInt(_0x2ecf41(0x1db))/0x2+parseInt(_0x2ecf41(0x1e1))/0x3*(-parseInt(_0x2ecf41(0x1e6))/0x4)+parseInt(_0x2ecf41(0x1dc))/0x5+-parseInt(_0x2ecf41(0x1e7))/0x6+parseInt(_0x2ecf41(0x1e5))/0x7+parseInt(_0x2ecf41(0x1dd))/0x8;if(_0x55f8d0===_0x3fbb3c)break;else _0xc4b2c['push'](_0xc4b2c['shift']());}catch(_0x579b6d){_0xc4b2c['push'](_0xc4b2c['shift']());}}}(a229_0x14b9,0xd64b5));import{LogLevel as a229_0x370ccc}from'../types.js';function a229_0x14b9(){const _0x58c69b=['904CqcOSw','4625142EcBrOp','format','formatter','minLevel','WARN','log','1998402sPyCwm','5659155SPVeMg','27648992VgKhbl','976940mjtlaI','useStderr','level','21126nuatvn','error','handle','colors','4397988mSCPOf'];a229_0x14b9=function(){return _0x58c69b;};return a229_0x14b9();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a229_0x3fbf2b(0x1df)];[a229_0x3fbf2b(0x1d7)];constructor(_0x136a83={}){const _0x2f22e3=a229_0x3fbf2b;this[_0x2f22e3(0x1d8)]=_0x136a83[_0x2f22e3(0x1d8)]??a229_0x370ccc['WARN'],this[_0x2f22e3(0x1df)]=_0x136a83[_0x2f22e3(0x1df)]??!![],this[_0x2f22e3(0x1d7)]=new DefaultLogFormatter({'colors':_0x136a83[_0x2f22e3(0x1e4)]??!![]});}[a229_0x3fbf2b(0x1e3)](_0x348260){const _0x4318c6=a229_0x3fbf2b;if(_0x348260[_0x4318c6(0x1e0)]<this['minLevel'])return;const _0x1bf0a1=this['formatter'][_0x4318c6(0x1e8)](_0x348260);this[_0x4318c6(0x1df)]&&_0x348260[_0x4318c6(0x1e0)]>=a229_0x370ccc[_0x4318c6(0x1d9)]?console[_0x4318c6(0x1e2)](_0x1bf0a1):console[_0x4318c6(0x1da)](_0x1bf0a1);}}
@@ -1 +1 @@
1
- const a227_0x43a90b=a227_0x4930;function a227_0x3664(){const _0x138076=['\x5c$&','.log','includes','message','test','error','write','filter','mtime','logPath','26202ZAnYVK','logBaseName','Warning:\x20Error\x20writing\x20to\x20','220mCCkkK','toISOString','handle','1838043xKKYaZ','split','init','1002353ynkojA','rotate','404749ZcnyYE','2sQXxhe','559349mhAMOS','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','filePath','40TaEAwR','8PVZVcK','rotateOldLogs','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','822849jNlpdz','logFileName','getLogPath','1373064cPeJnY','logStream','logDir'];a227_0x3664=function(){return _0x138076;};return a227_0x3664();}(function(_0x3d5608,_0x24faab){const _0x4370f=a227_0x4930,_0x152019=_0x3d5608();while(!![]){try{const _0xf30d82=parseInt(_0x4370f(0x1d5))/0x1+-parseInt(_0x4370f(0x1d6))/0x2*(-parseInt(_0x4370f(0x1ba))/0x3)+parseInt(_0x4370f(0x1bd))/0x4+-parseInt(_0x4370f(0x1cd))/0x5*(parseInt(_0x4370f(0x1ca))/0x6)+-parseInt(_0x4370f(0x1d7))/0x7*(-parseInt(_0x4370f(0x1db))/0x8)+-parseInt(_0x4370f(0x1d0))/0x9+parseInt(_0x4370f(0x1da))/0xa*(-parseInt(_0x4370f(0x1d3))/0xb);if(_0xf30d82===_0x24faab)break;else _0x152019['push'](_0x152019['shift']());}catch(_0x96ac15){_0x152019['push'](_0x152019['shift']());}}}(a227_0x3664,0x5355a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a227_0x4930(_0x41f4bb,_0x3f4e64){_0x41f4bb=_0x41f4bb-0x1b8;const _0x366479=a227_0x3664();let _0x4930e7=_0x366479[_0x41f4bb];return _0x4930e7;}export class FileHandler{[a227_0x43a90b(0x1c9)];[a227_0x43a90b(0x1bf)];['logFileName'];[a227_0x43a90b(0x1cb)];[a227_0x43a90b(0x1be)]=null;[a227_0x43a90b(0x1d4)];constructor(_0x5b7942={}){const _0x232956=a227_0x43a90b;this[_0x232956(0x1c9)]=_0x5b7942[_0x232956(0x1d9)]??join(getGlobalCacheDir(),'logs','tdx.log'),this[_0x232956(0x1bf)]=dirname(this['logPath']),this[_0x232956(0x1bb)]=basename(this[_0x232956(0x1c9)]),this[_0x232956(0x1cb)]=this[_0x232956(0x1bb)]['replace'](/\.log$/,''),this[_0x232956(0x1d4)]=_0x5b7942[_0x232956(0x1d4)]??!![];}async[a227_0x43a90b(0x1d2)](){const _0x105366=a227_0x43a90b;try{await mkdir(this[_0x105366(0x1bf)],{'recursive':!![]}),this[_0x105366(0x1d4)]&&await this[_0x105366(0x1b8)](),this[_0x105366(0x1be)]=createWriteStream(this[_0x105366(0x1c9)],{'flags':'a'}),this[_0x105366(0x1be)]['on'](_0x105366(0x1c5),_0x245d75=>{const _0x763a67=_0x105366;console[_0x763a67(0x1c5)](_0x763a67(0x1cc)+this[_0x763a67(0x1bb)]+':',_0x245d75[_0x763a67(0x1c3)]);});}catch(_0x4842d9){console[_0x105366(0x1c5)](_0x105366(0x1d8),_0x4842d9);}}[a227_0x43a90b(0x1cf)](_0x8e4f69){const _0x3b263c=a227_0x43a90b;if(!this[_0x3b263c(0x1be)])return;const _0x2230d5=Logger['format'](_0x8e4f69);this[_0x3b263c(0x1be)][_0x3b263c(0x1c6)](_0x2230d5+'\x0a');}async['close'](){return new Promise(_0x4384b2=>{const _0x8867e6=a227_0x4930;this[_0x8867e6(0x1be)]?this[_0x8867e6(0x1be)]['end'](()=>{const _0x4cb127=_0x8867e6;this[_0x4cb127(0x1be)]=null,_0x4384b2();}):_0x4384b2();});}[a227_0x43a90b(0x1bc)](){const _0x45c39e=a227_0x43a90b;return this[_0x45c39e(0x1c9)];}async['rotateOldLogs'](){const _0x3f241a=a227_0x43a90b;try{const _0x49d2ef=await readdir(this['logDir']),_0x346ab5=new Date()[_0x3f241a(0x1ce)]()[_0x3f241a(0x1d1)]('T')[0x0];if(_0x49d2ef[_0x3f241a(0x1c2)](this[_0x3f241a(0x1bb)])){const _0x314238=join(this[_0x3f241a(0x1bf)],this[_0x3f241a(0x1bb)]),_0x5d1b37=await stat(_0x314238),_0x19e892=new Date(_0x5d1b37[_0x3f241a(0x1c8)])[_0x3f241a(0x1ce)]()[_0x3f241a(0x1d1)]('T')[0x0];if(_0x19e892<_0x346ab5){const _0x2e53c3=join(this[_0x3f241a(0x1bf)],this[_0x3f241a(0x1cb)]+'-'+_0x19e892+_0x3f241a(0x1c1));await rename(_0x314238,_0x2e53c3);}}const _0x1073dd=await readdir(this[_0x3f241a(0x1bf)]),_0x50869f=this[_0x3f241a(0x1cb)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x3f241a(0x1c0)),_0x11b1a0=new RegExp('^'+_0x50869f+_0x3f241a(0x1b9)),_0x546178=_0x1073dd[_0x3f241a(0x1c7)](_0x480f76=>_0x11b1a0[_0x3f241a(0x1c4)](_0x480f76));for(const _0x1f40af of _0x546178){const _0xe5924d=join(this[_0x3f241a(0x1bf)],_0x1f40af),_0x1d290b=join(this[_0x3f241a(0x1bf)],_0x1f40af+'.gz');try{await pipeline(createReadStream(_0xe5924d),createGzip(),createWriteStream(_0x1d290b)),await unlink(_0xe5924d);}catch(_0x37b5a2){console[_0x3f241a(0x1c5)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x1f40af+':',_0x37b5a2);}}}catch{}}}
1
+ const a230_0x2c690e=a230_0x40a9;(function(_0x234e0a,_0x118b01){const _0x369fef=a230_0x40a9,_0xafdaeb=_0x234e0a();while(!![]){try{const _0x6f0445=parseInt(_0x369fef(0x168))/0x1*(-parseInt(_0x369fef(0x16f))/0x2)+parseInt(_0x369fef(0x17c))/0x3+-parseInt(_0x369fef(0x167))/0x4*(parseInt(_0x369fef(0x16d))/0x5)+parseInt(_0x369fef(0x189))/0x6*(-parseInt(_0x369fef(0x18a))/0x7)+-parseInt(_0x369fef(0x174))/0x8*(parseInt(_0x369fef(0x17b))/0x9)+-parseInt(_0x369fef(0x17f))/0xa*(-parseInt(_0x369fef(0x182))/0xb)+-parseInt(_0x369fef(0x177))/0xc*(-parseInt(_0x369fef(0x185))/0xd);if(_0x6f0445===_0x118b01)break;else _0xafdaeb['push'](_0xafdaeb['shift']());}catch(_0x4f1dc7){_0xafdaeb['push'](_0xafdaeb['shift']());}}}(a230_0x4674,0x6e018));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a230_0x40a9(_0xd3bceb,_0x46e307){_0xd3bceb=_0xd3bceb-0x167;const _0x467494=a230_0x4674();let _0x40a91e=_0x467494[_0xd3bceb];return _0x40a91e;}import{createGzip}from'zlib';function a230_0x4674(){const _0x2b8d18=['1258269HzjfQw','logBaseName','.log','6192370fGhuwS','write','Warning:\x20Error\x20writing\x20to\x20','11tVBDvR','init','logStream','13GknUhl','logDir','includes','handle','6LCeNnY','6250412slZgTX','toISOString','logPath','Warning:\x20Failed\x20to\x20compress\x20','filter','end','879372BioZKE','253bVvuAv','close','logFileName','getLogPath','split','5mRHJuA','rotateOldLogs','4682dUOPNv','.gz','format','test','replace','1992800lqNQRy','rotate','message','16392672pxnGIw','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','error','filePath','9yniHCO'];a230_0x4674=function(){return _0x2b8d18;};return a230_0x4674();}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a230_0x2c690e(0x18c)];[a230_0x2c690e(0x186)];[a230_0x2c690e(0x16a)];[a230_0x2c690e(0x17d)];[a230_0x2c690e(0x184)]=null;[a230_0x2c690e(0x175)];constructor(_0x466ad9={}){const _0x4e923b=a230_0x2c690e;this[_0x4e923b(0x18c)]=_0x466ad9[_0x4e923b(0x17a)]??join(getGlobalCacheDir(),'logs','tdx.log'),this[_0x4e923b(0x186)]=dirname(this[_0x4e923b(0x18c)]),this[_0x4e923b(0x16a)]=basename(this[_0x4e923b(0x18c)]),this[_0x4e923b(0x17d)]=this[_0x4e923b(0x16a)][_0x4e923b(0x173)](/\.log$/,''),this[_0x4e923b(0x175)]=_0x466ad9[_0x4e923b(0x175)]??!![];}async[a230_0x2c690e(0x183)](){const _0x30ed54=a230_0x2c690e;try{await mkdir(this[_0x30ed54(0x186)],{'recursive':!![]}),this[_0x30ed54(0x175)]&&await this[_0x30ed54(0x16e)](),this[_0x30ed54(0x184)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x30ed54(0x184)]['on'](_0x30ed54(0x179),_0x4a8023=>{const _0x514621=_0x30ed54;console[_0x514621(0x179)](_0x514621(0x181)+this[_0x514621(0x16a)]+':',_0x4a8023[_0x514621(0x176)]);});}catch(_0x3ed1c7){console[_0x30ed54(0x179)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x3ed1c7);}}[a230_0x2c690e(0x188)](_0x285c98){const _0x33e2c7=a230_0x2c690e;if(!this[_0x33e2c7(0x184)])return;const _0x7e8f2a=Logger[_0x33e2c7(0x171)](_0x285c98);this[_0x33e2c7(0x184)][_0x33e2c7(0x180)](_0x7e8f2a+'\x0a');}async[a230_0x2c690e(0x169)](){return new Promise(_0x5783a6=>{const _0x114fbe=a230_0x40a9;this['logStream']?this['logStream'][_0x114fbe(0x18f)](()=>{const _0x5ca178=_0x114fbe;this[_0x5ca178(0x184)]=null,_0x5783a6();}):_0x5783a6();});}[a230_0x2c690e(0x16b)](){const _0x27f913=a230_0x2c690e;return this[_0x27f913(0x18c)];}async[a230_0x2c690e(0x16e)](){const _0x21f5d7=a230_0x2c690e;try{const _0x1d2a95=await readdir(this[_0x21f5d7(0x186)]),_0x368a29=new Date()[_0x21f5d7(0x18b)]()['split']('T')[0x0];if(_0x1d2a95[_0x21f5d7(0x187)](this[_0x21f5d7(0x16a)])){const _0x1b8593=join(this[_0x21f5d7(0x186)],this[_0x21f5d7(0x16a)]),_0x1259dd=await stat(_0x1b8593),_0x2ee7be=new Date(_0x1259dd['mtime'])[_0x21f5d7(0x18b)]()[_0x21f5d7(0x16c)]('T')[0x0];if(_0x2ee7be<_0x368a29){const _0x3da8a8=join(this[_0x21f5d7(0x186)],this[_0x21f5d7(0x17d)]+'-'+_0x2ee7be+_0x21f5d7(0x17e));await rename(_0x1b8593,_0x3da8a8);}}const _0x273263=await readdir(this[_0x21f5d7(0x186)]),_0x38de85=this[_0x21f5d7(0x17d)]['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x2ef618=new RegExp('^'+_0x38de85+_0x21f5d7(0x178)),_0x54594d=_0x273263[_0x21f5d7(0x18e)](_0x475304=>_0x2ef618[_0x21f5d7(0x172)](_0x475304));for(const _0xf04071 of _0x54594d){const _0x185597=join(this[_0x21f5d7(0x186)],_0xf04071),_0x1576e3=join(this[_0x21f5d7(0x186)],_0xf04071+_0x21f5d7(0x170));try{await pipeline(createReadStream(_0x185597),createGzip(),createWriteStream(_0x1576e3)),await unlink(_0x185597);}catch(_0x574a94){console['error'](_0x21f5d7(0x18d)+_0xf04071+':',_0x574a94);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x1bce83,_0x4408c4){var _0x5a5a63=a228_0x241f,_0x4853a3=_0x1bce83();while(!![]){try{var _0x34a327=parseInt(_0x5a5a63(0x1f1))/0x1*(-parseInt(_0x5a5a63(0x1f7))/0x2)+parseInt(_0x5a5a63(0x1f8))/0x3+parseInt(_0x5a5a63(0x1f0))/0x4*(-parseInt(_0x5a5a63(0x1f3))/0x5)+parseInt(_0x5a5a63(0x1fb))/0x6*(-parseInt(_0x5a5a63(0x1f4))/0x7)+-parseInt(_0x5a5a63(0x1f5))/0x8+-parseInt(_0x5a5a63(0x1f2))/0x9*(parseInt(_0x5a5a63(0x1fa))/0xa)+parseInt(_0x5a5a63(0x1f6))/0xb*(parseInt(_0x5a5a63(0x1f9))/0xc);if(_0x34a327===_0x4408c4)break;else _0x4853a3['push'](_0x4853a3['shift']());}catch(_0xff5094){_0x4853a3['push'](_0x4853a3['shift']());}}}(a228_0x2db2,0x3677a));function a228_0x241f(_0x4823ca,_0x5b27d6){_0x4823ca=_0x4823ca-0x1f0;var _0x2db2fc=a228_0x2db2();var _0x241f39=_0x2db2fc[_0x4823ca];return _0x241f39;}export{FileHandler}from'./file-handler.js';function a228_0x2db2(){var _0x1601ca=['3346QflCdI','2903360eCCsFw','2299cxJIfr','81292lHHLci','39486zBIduJ','63780PMedtQ','1854340TsABoN','384mDeqit','30356NsTrvK','4rdRjFQ','9yScQFC','105UMBXWM'];a228_0x2db2=function(){return _0x1601ca;};return a228_0x2db2();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a231_0x12c0(_0x3d79e0,_0x3ca1c2){_0x3d79e0=_0x3d79e0-0xb7;var _0x1a6971=a231_0x1a69();var _0x12c09d=_0x1a6971[_0x3d79e0];return _0x12c09d;}(function(_0x3ad4d9,_0x9076ad){var _0x37f356=a231_0x12c0,_0x143cbb=_0x3ad4d9();while(!![]){try{var _0x70cc6=-parseInt(_0x37f356(0xb7))/0x1*(parseInt(_0x37f356(0xbc))/0x2)+parseInt(_0x37f356(0xc2))/0x3+-parseInt(_0x37f356(0xb8))/0x4*(-parseInt(_0x37f356(0xbd))/0x5)+parseInt(_0x37f356(0xbf))/0x6*(parseInt(_0x37f356(0xc0))/0x7)+parseInt(_0x37f356(0xbb))/0x8+-parseInt(_0x37f356(0xc1))/0x9*(-parseInt(_0x37f356(0xba))/0xa)+-parseInt(_0x37f356(0xbe))/0xb*(parseInt(_0x37f356(0xb9))/0xc);if(_0x70cc6===_0x9076ad)break;else _0x143cbb['push'](_0x143cbb['shift']());}catch(_0x1fc034){_0x143cbb['push'](_0x143cbb['shift']());}}}(a231_0x1a69,0xdcfa7));function a231_0x1a69(){var _0x582cdf=['11934610fnyOIp','6316096FFqRmX','2aurgQu','3632590KkJyax','22286GeOgfV','1068uIyRjK','56063AcSayk','9QrGlNu','1336533kuKQnq','832183IpXyID','8tNeKTo','21144vqNLYr'];a231_0x1a69=function(){return _0x582cdf;};return a231_0x1a69();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a229_0x508b(_0x131c90,_0x4091f6){_0x131c90=_0x131c90-0x1ab;var _0x1fb2e8=a229_0x1fb2();var _0x508b3a=_0x1fb2e8[_0x131c90];return _0x508b3a;}var a229_0xd1e3e5=a229_0x508b;function a229_0x1fb2(){var _0x271d63=['537HJjjng','481482DMKsIT','22yTpPJE','42QooLuR','handle','363104VOloiL','6qVROvP','2566WZPjvs','1589560nDIdPY','1709990vFRlrJ','509776HhDGGd','2383180kaClax'];a229_0x1fb2=function(){return _0x271d63;};return a229_0x1fb2();}(function(_0x4d38d2,_0x3f4186){var _0x4d2068=a229_0x508b,_0x510cb5=_0x4d38d2();while(!![]){try{var _0x394823=parseInt(_0x4d2068(0x1b2))/0x1+parseInt(_0x4d2068(0x1b4))/0x2*(-parseInt(_0x4d2068(0x1ad))/0x3)+-parseInt(_0x4d2068(0x1b5))/0x4+parseInt(_0x4d2068(0x1b6))/0x5*(-parseInt(_0x4d2068(0x1b3))/0x6)+parseInt(_0x4d2068(0x1b0))/0x7*(parseInt(_0x4d2068(0x1ab))/0x8)+-parseInt(_0x4d2068(0x1ae))/0x9+parseInt(_0x4d2068(0x1ac))/0xa*(parseInt(_0x4d2068(0x1af))/0xb);if(_0x394823===_0x3f4186)break;else _0x510cb5['push'](_0x510cb5['shift']());}catch(_0x1967c6){_0x510cb5['push'](_0x510cb5['shift']());}}}(a229_0x1fb2,0x30b69));export class NullHandler{[a229_0xd1e3e5(0x1b1)](_0x53a425){}}
1
+ var a232_0x4695ff=a232_0x50e9;function a232_0x44fd(){var _0x159a39=['3246gDfzoX','2115arKdLo','handle','3822imCUoU','4DvTGNa','35848QESTjX','32976jcCRvx','138428yJJrMk','5860zlWZvI','14eQUTdk','464695uODCYy','36440wUOiWO','63oUFlrU','727374ZSoIVs'];a232_0x44fd=function(){return _0x159a39;};return a232_0x44fd();}(function(_0x19f1e7,_0x224a47){var _0x302ce3=a232_0x50e9,_0x46406c=_0x19f1e7();while(!![]){try{var _0x117b39=parseInt(_0x302ce3(0x1cf))/0x1*(parseInt(_0x302ce3(0x1cd))/0x2)+parseInt(_0x302ce3(0x1d3))/0x3*(parseInt(_0x302ce3(0x1d8))/0x4)+parseInt(_0x302ce3(0x1ce))/0x5*(-parseInt(_0x302ce3(0x1d4))/0x6)+-parseInt(_0x302ce3(0x1d2))/0x7*(parseInt(_0x302ce3(0x1d9))/0x8)+parseInt(_0x302ce3(0x1d5))/0x9*(parseInt(_0x302ce3(0x1d1))/0xa)+-parseInt(_0x302ce3(0x1d0))/0xb+-parseInt(_0x302ce3(0x1cc))/0xc*(parseInt(_0x302ce3(0x1d7))/0xd);if(_0x117b39===_0x224a47)break;else _0x46406c['push'](_0x46406c['shift']());}catch(_0x211cc8){_0x46406c['push'](_0x46406c['shift']());}}}(a232_0x44fd,0x84a18));function a232_0x50e9(_0x5dca21,_0x5597c7){_0x5dca21=_0x5dca21-0x1cc;var _0x44fd24=a232_0x44fd();var _0x50e997=_0x44fd24[_0x5dca21];return _0x50e997;}export class NullHandler{[a232_0x4695ff(0x1d6)](_0x27a1a7){}}
@@ -1 +1 @@
1
- (function(_0x132937,_0x178e48){var _0x26e35a=a230_0x29e8,_0x2ef819=_0x132937();while(!![]){try{var _0x32ce99=parseInt(_0x26e35a(0x159))/0x1*(parseInt(_0x26e35a(0x15e))/0x2)+parseInt(_0x26e35a(0x163))/0x3*(-parseInt(_0x26e35a(0x158))/0x4)+parseInt(_0x26e35a(0x15c))/0x5*(parseInt(_0x26e35a(0x164))/0x6)+parseInt(_0x26e35a(0x160))/0x7+parseInt(_0x26e35a(0x161))/0x8*(-parseInt(_0x26e35a(0x15f))/0x9)+parseInt(_0x26e35a(0x15b))/0xa*(-parseInt(_0x26e35a(0x162))/0xb)+-parseInt(_0x26e35a(0x15a))/0xc*(-parseInt(_0x26e35a(0x15d))/0xd);if(_0x32ce99===_0x178e48)break;else _0x2ef819['push'](_0x2ef819['shift']());}catch(_0x169471){_0x2ef819['push'](_0x2ef819['shift']());}}}(a230_0x54ff,0x915c8));function a230_0x29e8(_0x335ab4,_0x3f94e0){_0x335ab4=_0x335ab4-0x158;var _0x54ff21=a230_0x54ff();var _0x29e8bd=_0x54ff21[_0x335ab4];return _0x29e8bd;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a230_0x54ff(){var _0x19ae8b=['48JwfTNt','741367dNSLLB','3LJcbVv','6SPilbT','450876WyzHFm','5viDYPu','25356dVRyOf','110URCagD','3601990igXJfO','5330yyQADv','303748JPCslk','1595115VPUWtb','1167586rodpsk'];a230_0x54ff=function(){return _0x19ae8b;};return a230_0x54ff();}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a233_0x512b(_0x389431,_0x4366f4){_0x389431=_0x389431-0x10b;var _0x3ca04a=a233_0x3ca0();var _0x512bc1=_0x3ca04a[_0x389431];return _0x512bc1;}(function(_0x40ae2a,_0xbf960a){var _0x58f0ad=a233_0x512b,_0x1687f2=_0x40ae2a();while(!![]){try{var _0x7fc8f8=-parseInt(_0x58f0ad(0x116))/0x1*(-parseInt(_0x58f0ad(0x10d))/0x2)+-parseInt(_0x58f0ad(0x111))/0x3*(parseInt(_0x58f0ad(0x10b))/0x4)+-parseInt(_0x58f0ad(0x10c))/0x5*(-parseInt(_0x58f0ad(0x113))/0x6)+-parseInt(_0x58f0ad(0x10f))/0x7*(-parseInt(_0x58f0ad(0x10e))/0x8)+-parseInt(_0x58f0ad(0x112))/0x9*(-parseInt(_0x58f0ad(0x110))/0xa)+parseInt(_0x58f0ad(0x115))/0xb+-parseInt(_0x58f0ad(0x114))/0xc;if(_0x7fc8f8===_0xbf960a)break;else _0x1687f2['push'](_0x1687f2['shift']());}catch(_0x3d1cd6){_0x1687f2['push'](_0x1687f2['shift']());}}}(a233_0x3ca0,0x1d1f1));export{Logger}from'./logger.js';function a233_0x3ca0(){var _0x13a982=['296pojdqs','6181FjqFec','74570ypSLZg','4425dDrhAB','45qqXHwh','12atGlMU','4841700JITxpY','2069738OIwGxE','191gSYZlT','236jEuTWO','554945tIexkU','1358SiXDQc'];a233_0x3ca0=function(){return _0x13a982;};return a233_0x3ca0();}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';