@treasuredata/tdx 2026.4.18 → 2026.4.20

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 (268) 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.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.d.ts +38 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-command.js.map +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.d.ts +1 -0
  35. package/dist/commands/journey-command.d.ts.map +1 -1
  36. package/dist/commands/journey-command.js +1 -1
  37. package/dist/commands/journey-command.js.map +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-pull-command.js +1 -1
  51. package/dist/commands/segment-push-command.js +1 -1
  52. package/dist/commands/segment-update-command.js +1 -1
  53. package/dist/commands/segment-use-command.js +1 -1
  54. package/dist/commands/segment-validate-command.js +1 -1
  55. package/dist/commands/segments.js +1 -1
  56. package/dist/commands/show.js +1 -1
  57. package/dist/commands/status-command.js +1 -1
  58. package/dist/commands/tables.js +1 -1
  59. package/dist/commands/unset-command.js +1 -1
  60. package/dist/commands/upgrade-command.js +1 -1
  61. package/dist/commands/use-command.js +1 -1
  62. package/dist/commands/user-command.js +1 -1
  63. package/dist/commands/work-command.js +1 -1
  64. package/dist/commands/workflow-command.d.ts +1 -0
  65. package/dist/commands/workflow-command.d.ts.map +1 -1
  66. package/dist/commands/workflow-command.js +1 -1
  67. package/dist/commands/workflow-command.js.map +1 -1
  68. package/dist/core/auth.js +1 -1
  69. package/dist/core/command-output.js +1 -1
  70. package/dist/core/config.js +1 -1
  71. package/dist/core/connection-cache.js +1 -1
  72. package/dist/core/constants.js +1 -1
  73. package/dist/core/credential-cache.js +1 -1
  74. package/dist/core/global-context.js +1 -1
  75. package/dist/core/keychain.js +1 -1
  76. package/dist/core/oauth-keychain.js +1 -1
  77. package/dist/core/oauth.js +1 -1
  78. package/dist/core/profile.js +1 -1
  79. package/dist/core/project-config.js +1 -1
  80. package/dist/core/session.js +1 -1
  81. package/dist/core/user-cache.js +1 -1
  82. package/dist/core/version.js +1 -1
  83. package/dist/index.js +1 -1
  84. package/dist/mcp/server.js +1 -1
  85. package/dist/mcp/tools/index.js +1 -1
  86. package/dist/mcp/tools/tdx-run.js +1 -1
  87. package/dist/mcp/tools/tdx-search.js +1 -1
  88. package/dist/mcp/tools/work-create-item.js +1 -1
  89. package/dist/mcp/utils.js +1 -1
  90. package/dist/proxy/claude-usage-tracker.js +1 -1
  91. package/dist/proxy/passthrough-server.js +1 -1
  92. package/dist/proxy/sse-usage-parser.js +1 -1
  93. package/dist/sdk/agent/agent-config.js +1 -1
  94. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  95. package/dist/sdk/agent/agent-yaml.js +1 -1
  96. package/dist/sdk/agent/test/evaluator.js +1 -1
  97. package/dist/sdk/agent/test/executor.js +1 -1
  98. package/dist/sdk/agent/test/index.js +1 -1
  99. package/dist/sdk/agent/test/output.js +1 -1
  100. package/dist/sdk/agent/test/parser.js +1 -1
  101. package/dist/sdk/agent/tool-target-registry.js +1 -1
  102. package/dist/sdk/api.js +1 -1
  103. package/dist/sdk/cas/cas-api-client.js +1 -1
  104. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  105. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  106. package/dist/sdk/cas/index.js +1 -1
  107. package/dist/sdk/cas/pull-workflow.js +1 -1
  108. package/dist/sdk/cas/push-workflow.js +1 -1
  109. package/dist/sdk/client/cdp-api-client.js +1 -1
  110. package/dist/sdk/client/delivery-api-client.js +1 -1
  111. package/dist/sdk/client/endpoints.js +1 -1
  112. package/dist/sdk/client/engage-api-client.d.ts +26 -1
  113. package/dist/sdk/client/engage-api-client.d.ts.map +1 -1
  114. package/dist/sdk/client/engage-api-client.js +1 -1
  115. package/dist/sdk/client/engage-api-client.js.map +1 -1
  116. package/dist/sdk/client/http-client.d.ts +1 -1
  117. package/dist/sdk/client/http-client.d.ts.map +1 -1
  118. package/dist/sdk/client/http-client.js +1 -1
  119. package/dist/sdk/client/http-client.js.map +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/oauth-refresh.js +1 -1
  122. package/dist/sdk/client/rate-limiter.js +1 -1
  123. package/dist/sdk/client/td-api-client.js +1 -1
  124. package/dist/sdk/client/trino-api-client.js +1 -1
  125. package/dist/sdk/client/workflow-client.d.ts +7 -0
  126. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  127. package/dist/sdk/client/workflow-client.js +1 -1
  128. package/dist/sdk/client/workflow-client.js.map +1 -1
  129. package/dist/sdk/connection-validator.js +1 -1
  130. package/dist/sdk/connection.js +1 -1
  131. package/dist/sdk/delivery.js +1 -1
  132. package/dist/sdk/engage/campaign-pull.js +1 -1
  133. package/dist/sdk/engage/campaign-push.js +1 -1
  134. package/dist/sdk/engage/campaign-validator.js +1 -1
  135. package/dist/sdk/engage/campaign-validator.js.map +1 -1
  136. package/dist/sdk/engage/campaign-yaml.d.ts +1 -1
  137. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  138. package/dist/sdk/engage/campaign-yaml.js +1 -1
  139. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  140. package/dist/sdk/engage/template-pull.js +1 -1
  141. package/dist/sdk/engage/template-push.js +1 -1
  142. package/dist/sdk/engage/template-validator.js +1 -1
  143. package/dist/sdk/engage/template-yaml.js +1 -1
  144. package/dist/sdk/engage/types/campaign-def.d.ts +2 -2
  145. package/dist/sdk/engage/types/campaign-def.d.ts.map +1 -1
  146. package/dist/sdk/engage/types/campaign-def.js +1 -1
  147. package/dist/sdk/engage/types/campaign-def.js.map +1 -1
  148. package/dist/sdk/engage/types/campaign-schema.d.ts +256 -8
  149. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  150. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  151. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  152. package/dist/sdk/engage/types/template-schema.js +1 -1
  153. package/dist/sdk/engage.d.ts +28 -1
  154. package/dist/sdk/engage.d.ts.map +1 -1
  155. package/dist/sdk/engage.js +1 -1
  156. package/dist/sdk/engage.js.map +1 -1
  157. package/dist/sdk/errors.js +1 -1
  158. package/dist/sdk/index.d.ts +1 -1
  159. package/dist/sdk/index.d.ts.map +1 -1
  160. package/dist/sdk/index.js +1 -1
  161. package/dist/sdk/index.js.map +1 -1
  162. package/dist/sdk/io/index.js +1 -1
  163. package/dist/sdk/io/node-filesystem.js +1 -1
  164. package/dist/sdk/job.js +1 -1
  165. package/dist/sdk/journey.js +1 -1
  166. package/dist/sdk/llm/chat-cache.js +1 -1
  167. package/dist/sdk/llm/index.js +1 -1
  168. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  169. package/dist/sdk/llm/model-factors.js +1 -1
  170. package/dist/sdk/personalization.js +1 -1
  171. package/dist/sdk/policy.js +1 -1
  172. package/dist/sdk/query/index.js +1 -1
  173. package/dist/sdk/query/sql-parser.js +1 -1
  174. package/dist/sdk/realtime.js +1 -1
  175. package/dist/sdk/schedule.js +1 -1
  176. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  177. package/dist/sdk/segment/fields-display.js +1 -1
  178. package/dist/sdk/segment/file-discovery.js +1 -1
  179. package/dist/sdk/segment/journey-utils.js +1 -1
  180. package/dist/sdk/segment/journey-validator.js +1 -1
  181. package/dist/sdk/segment/journey-yaml.js +1 -1
  182. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  183. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  184. package/dist/sdk/segment/pull-workflow.js +1 -1
  185. package/dist/sdk/segment/push-recovery.js +1 -1
  186. package/dist/sdk/segment/push-workflow.js +1 -1
  187. package/dist/sdk/segment/resolution-context.js +1 -1
  188. package/dist/sdk/segment/segment-path-parser.js +1 -1
  189. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  190. package/dist/sdk/segment/segment-validator.js +1 -1
  191. package/dist/sdk/segment/target-resolution.js +1 -1
  192. package/dist/sdk/segment/tdx-config.js +1 -1
  193. package/dist/sdk/segment/types/activation-schema.js +1 -1
  194. package/dist/sdk/segment/types/journey-def.js +1 -1
  195. package/dist/sdk/segment/types/journey-schema.js +1 -1
  196. package/dist/sdk/segment/types/segment-def.js +1 -1
  197. package/dist/sdk/segment/types/segment-schema.js +1 -1
  198. package/dist/sdk/segment/validate-files.js +1 -1
  199. package/dist/sdk/segment/yaml-validator.js +1 -1
  200. package/dist/sdk/segment.js +1 -1
  201. package/dist/sdk/types/engage.d.ts +125 -1
  202. package/dist/sdk/types/engage.d.ts.map +1 -1
  203. package/dist/sdk/types/index.d.ts +1 -1
  204. package/dist/sdk/types/index.d.ts.map +1 -1
  205. package/dist/sdk/types/index.js +1 -1
  206. package/dist/sdk/types/index.js.map +1 -1
  207. package/dist/sdk/types/progress.js +1 -1
  208. package/dist/sdk/types/workspace.js +1 -1
  209. package/dist/sdk/user.js +1 -1
  210. package/dist/sdk/util/format-detector.js +1 -1
  211. package/dist/sdk/util/formatters.js +1 -1
  212. package/dist/sdk/util/index.js +1 -1
  213. package/dist/sdk/util/paginate.js +1 -1
  214. package/dist/sdk/util/tree-formatter.js +1 -1
  215. package/dist/sdk/workflow/archive-validation.js +1 -1
  216. package/dist/sdk/workflow/clone-workflow.js +1 -1
  217. package/dist/sdk/workflow/index.d.ts +14 -1
  218. package/dist/sdk/workflow/index.d.ts.map +1 -1
  219. package/dist/sdk/workflow/index.js +1 -1
  220. package/dist/sdk/workflow/index.js.map +1 -1
  221. package/dist/sdk/workflow/pull-workflow.js +1 -1
  222. package/dist/sdk/workflow/push-workflow.js +1 -1
  223. package/dist/sdk/workflow/task-graph.d.ts +65 -0
  224. package/dist/sdk/workflow/task-graph.d.ts.map +1 -0
  225. package/dist/sdk/workflow/task-graph.js +1 -0
  226. package/dist/sdk/workflow/task-graph.js.map +1 -0
  227. package/dist/sdk/workflow/tdx-config.js +1 -1
  228. package/dist/sdk/workflow/workflow-utils.js +1 -1
  229. package/dist/sdk/workspace/access-tracker.js +1 -1
  230. package/dist/sdk/workspace/frontmatter.js +1 -1
  231. package/dist/sdk/workspace/git.js +1 -1
  232. package/dist/sdk/workspace/index.js +1 -1
  233. package/dist/sdk/workspace/templates.js +1 -1
  234. package/dist/sdk/workspace/weekly.js +1 -1
  235. package/dist/sdk/workspace/wikilinks.js +1 -1
  236. package/dist/test-utils/command-runner.js +1 -1
  237. package/dist/test-utils/factories.js +1 -1
  238. package/dist/test-utils/fixtures.js +1 -1
  239. package/dist/test-utils/http-mock.js +1 -1
  240. package/dist/test-utils/index.js +1 -1
  241. package/dist/utils/async.js +1 -1
  242. package/dist/utils/colors.js +1 -1
  243. package/dist/utils/diff.js +1 -1
  244. package/dist/utils/file-permissions.js +1 -1
  245. package/dist/utils/file-reader.js +1 -1
  246. package/dist/utils/github-releases.js +1 -1
  247. package/dist/utils/global-cache.js +1 -1
  248. package/dist/utils/json-loader.js +1 -1
  249. package/dist/utils/local-cache.js +1 -1
  250. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  251. package/dist/utils/logger/formatters/index.js +1 -1
  252. package/dist/utils/logger/handlers/console-handler.js +1 -1
  253. package/dist/utils/logger/handlers/file-handler.js +1 -1
  254. package/dist/utils/logger/handlers/index.js +1 -1
  255. package/dist/utils/logger/handlers/null-handler.js +1 -1
  256. package/dist/utils/logger/index.js +1 -1
  257. package/dist/utils/logger/logger.js +1 -1
  258. package/dist/utils/logger/types.js +1 -1
  259. package/dist/utils/option-validation.js +1 -1
  260. package/dist/utils/process.js +1 -1
  261. package/dist/utils/prompt.js +1 -1
  262. package/dist/utils/spinner.js +1 -1
  263. package/dist/utils/sse-parser.js +1 -1
  264. package/dist/utils/string-utils.js +1 -1
  265. package/dist/utils/table-ref-parser.js +1 -1
  266. package/dist/utils/tdx-logger.js +1 -1
  267. package/dist/utils/version-check.js +1 -1
  268. package/package.json +1 -1
@@ -1 +1 @@
1
- const a207_0x3648dc=a207_0x289d;function a207_0x289d(_0x2da6e0,_0x5ca208){_0x2da6e0=_0x2da6e0-0xd9;const _0x1923be=a207_0x1923();let _0x289d66=_0x1923be[_0x2da6e0];return _0x289d66;}(function(_0x19632b,_0xb795c6){const _0x41ebd9=a207_0x289d,_0x4bea13=_0x19632b();while(!![]){try{const _0x39a954=-parseInt(_0x41ebd9(0x124))/0x1+parseInt(_0x41ebd9(0x120))/0x2*(-parseInt(_0x41ebd9(0xfb))/0x3)+-parseInt(_0x41ebd9(0x118))/0x4*(parseInt(_0x41ebd9(0xfe))/0x5)+-parseInt(_0x41ebd9(0xea))/0x6*(parseInt(_0x41ebd9(0xe7))/0x7)+parseInt(_0x41ebd9(0xdc))/0x8*(parseInt(_0x41ebd9(0xf8))/0x9)+-parseInt(_0x41ebd9(0x128))/0xa+parseInt(_0x41ebd9(0xdd))/0xb;if(_0x39a954===_0xb795c6)break;else _0x4bea13['push'](_0x4bea13['shift']());}catch(_0x238f14){_0x4bea13['push'](_0x4bea13['shift']());}}}(a207_0x1923,0x1d1a0));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x3648dc(0x101)]=[];[a207_0x3648dc(0x127)]=[];[a207_0x3648dc(0x125)]=null;[a207_0x3648dc(0xe8)](_0x42c16d,_0x4e3a0c){return _0x228410=>{const _0x3bcbc6=a207_0x289d;if(_0x228410['method'][_0x3bcbc6(0xf3)]()!==_0x42c16d[_0x3bcbc6(0xf3)]())return![];const _0x1e704f=new URL(_0x228410[_0x3bcbc6(0x10d)]);if(typeof _0x4e3a0c===_0x3bcbc6(0xde))return _0x1e704f[_0x3bcbc6(0x11b)]===_0x4e3a0c||_0x1e704f['pathname']['includes'](_0x4e3a0c);return _0x4e3a0c[_0x3bcbc6(0xf1)](_0x1e704f[_0x3bcbc6(0x11b)]);};}[a207_0x3648dc(0x107)](_0x34a286,_0x54b43c){return _0x293d6e=>{const _0x8e9b49=a207_0x289d;if(!_0x34a286(_0x293d6e))return![];const _0x17b699=new URL(_0x293d6e[_0x8e9b49(0x10d)]);return Object[_0x8e9b49(0x111)](_0x54b43c)[_0x8e9b49(0xf4)](([_0x403835,_0x42d247])=>_0x17b699[_0x8e9b49(0xe5)][_0x8e9b49(0xdb)](_0x403835)===_0x42d247);};}[a207_0x3648dc(0x11e)](_0x13c758,_0x552970){return _0x35e0c5=>{const _0x5d268d=a207_0x289d;if(!_0x13c758(_0x35e0c5))return![];if(typeof _0x552970===_0x5d268d(0xfd))return _0x552970(_0x35e0c5['body']);return JSON['stringify'](_0x35e0c5[_0x5d268d(0x119)])===JSON[_0x5d268d(0xff)](_0x552970);};}[a207_0x3648dc(0xf2)](_0x8deb8c,_0x3a9593){return _0x2d221d=>{const _0x118b90=a207_0x289d;if(!_0x8deb8c(_0x2d221d))return![];const _0x2548bd=new URL(_0x2d221d[_0x118b90(0x10d)]);return _0x2548bd[_0x118b90(0x122)]===_0x3a9593;};}[a207_0x3648dc(0x11f)](_0x10034d,_0x339407,_0x2bf40a){const _0x5ed096=a207_0x3648dc;this['stubs']['push']({'matcher':_0x10034d,'responder':_0x339407,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x2bf40a?.[_0x5ed096(0xe2)]});}[a207_0x3648dc(0x117)](_0x4ab7ef,_0x41b2c0,_0x6311d7){const _0x4207f3=a207_0x3648dc,_0x8a6cb6=_0x248a33=>{const _0xa4d178=a207_0x289d;return _0x6311d7(_0x248a33[_0xa4d178(0x119)],_0x248a33),_0x41b2c0(_0x248a33);};this[_0x4207f3(0x11f)](_0x4ab7ef,_0x8a6cb6);}static['jsonResponse'](_0x3ade2c,_0x22322=0xc8){const _0x2ab612=a207_0x3648dc;return()=>new Response(JSON[_0x2ab612(0xff)](_0x3ade2c),{'status':_0x22322,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x4297d6,_0x3ed8e6,_0x20148c=a207_0x3648dc(0xd9)){return()=>{const _0x3b72d8=a207_0x289d;let _0x3bbc51;switch(_0x20148c){case _0x3b72d8(0x10a):_0x3bbc51={'errors':{'error':_0x3ed8e6,'message':_0x3ed8e6,'severity':_0x3b72d8(0x110),'status_code':_0x4297d6}};break;case'rfc9457':_0x3bbc51={'type':_0x3b72d8(0x113)+_0x4297d6,'title':HTTPMockRegistry[_0x3b72d8(0xe4)](_0x4297d6),'status':_0x4297d6,'detail':_0x3ed8e6};break;default:_0x3bbc51={'error':_0x3ed8e6};}return new Response(JSON[_0x3b72d8(0xff)](_0x3bbc51),{'status':_0x4297d6,'headers':{'Content-Type':_0x3b72d8(0xfa)}});};}static[a207_0x3648dc(0xda)](_0x43e634,_0x49f448,_0x1812d4=0xc8){const _0x4e3218=a207_0x3648dc;return()=>new Response(JSON[_0x4e3218(0xff)](_0x43e634),{'status':_0x1812d4,'headers':{'Content-Type':_0x4e3218(0xfa),..._0x49f448}});}static[a207_0x3648dc(0x115)](_0x180419,_0x2851dc=0xc8){const _0x1acd3b=a207_0x3648dc;return()=>new Response(_0x180419,{'status':_0x2851dc,'headers':{'Content-Type':_0x1acd3b(0x100)}});}static['networkError'](_0x3af747){return()=>{throw new Error(_0x3af747);};}[a207_0x3648dc(0xe3)](){const _0x4603ed=a207_0x3648dc;return this[_0x4603ed(0x125)]=vi['fn']()[_0x4603ed(0x10b)](async(_0x52eac8,_0x24f845)=>{const _0x3899d6=_0x4603ed,_0x4bd21a=this[_0x3899d6(0x108)](_0x52eac8,_0x24f845);this[_0x3899d6(0x127)][_0x3899d6(0x114)](_0x4bd21a);for(const _0x28df8b of this[_0x3899d6(0x101)]){if(_0x28df8b[_0x3899d6(0x116)](_0x4bd21a))return _0x28df8b['matched']=!![],_0x28df8b[_0x3899d6(0x112)]++,_0x28df8b[_0x3899d6(0x11a)](_0x4bd21a);}const _0x35301c=this[_0x3899d6(0x101)][_0x3899d6(0x126)]((_0x3d3509,_0x4c9667)=>'\x20\x20'+(_0x4c9667+0x1)+'.\x20'+(_0x3d3509[_0x3899d6(0xe2)]??_0x3899d6(0xf9)))[_0x3899d6(0xe0)]('\x0a');throw new Error(_0x3899d6(0x10e)+_0x4bd21a[_0x3899d6(0x121)]+'\x20'+_0x4bd21a[_0x3899d6(0x10d)]+'\x0a'+(_0x3899d6(0x12a)+JSON[_0x3899d6(0xff)](_0x4bd21a[_0x3899d6(0x119)])+'\x0a')+(_0x3899d6(0x11c)+(_0x35301c||_0x3899d6(0xf0))));}),this[_0x4603ed(0x125)];}['parseRequest'](_0x4f0423,_0x342558){const _0x450f89=a207_0x3648dc,_0x3f56a5={};if(_0x342558?.[_0x450f89(0x10f)]){if(_0x342558[_0x450f89(0x10f)]instanceof Headers)_0x342558['headers']['forEach']((_0x202074,_0x1741a9)=>{const _0x1efb38=_0x450f89;_0x3f56a5[_0x1741a9[_0x1efb38(0x123)]()]=_0x202074;});else{if(Array[_0x450f89(0x104)](_0x342558[_0x450f89(0x10f)]))for(const [_0x5f5b8f,_0x4560bd]of _0x342558[_0x450f89(0x10f)]){_0x3f56a5[_0x5f5b8f[_0x450f89(0x123)]()]=_0x4560bd;}else for(const [_0x461b59,_0x1b35e0]of Object['entries'](_0x342558[_0x450f89(0x10f)])){_0x1b35e0!==undefined&&(_0x3f56a5[_0x461b59[_0x450f89(0x123)]()]=_0x1b35e0);}}}let _0x5c1e9c;if(_0x342558?.[_0x450f89(0x119)])try{_0x5c1e9c=JSON[_0x450f89(0xf5)](_0x342558[_0x450f89(0x119)]);}catch{_0x5c1e9c=_0x342558[_0x450f89(0x119)];}return{'method':_0x342558?.['method']??_0x450f89(0xf6),'url':_0x4f0423,'headers':_0x3f56a5,'body':_0x5c1e9c};}[a207_0x3648dc(0x103)](_0x563a42){const _0x3887fa=a207_0x3648dc,_0x352d99=this[_0x3887fa(0x101)][_0x3887fa(0xe6)](_0x28c11f=>!_0x28c11f['matched']);if(_0x352d99[_0x3887fa(0x105)]>0x0){const _0x5598bd=_0x352d99['map'](_0x5831fd=>{const _0x530f75=_0x3887fa,_0x3bfd03=_0x5831fd[_0x530f75(0xe2)]?'\x20('+_0x5831fd[_0x530f75(0xe2)]+')':'',_0x1c785e=_0x5831fd[_0x530f75(0xec)][_0x530f75(0x106)]('\x0a')['slice'](0x2,0x5)[_0x530f75(0xe0)]('\x0a');return _0x530f75(0xdf)+_0x3bfd03+_0x530f75(0xeb)+_0x1c785e;});_0x563a42[_0x3887fa(0xf7)](_0x352d99[_0x3887fa(0x105)]+_0x3887fa(0xed)+_0x5598bd['join']('\x0a\x0a'));}}['getRequests'](){const _0x264313=a207_0x3648dc;return[...this[_0x264313(0x127)]];}[a207_0x3648dc(0xfc)](){const _0x25430e=a207_0x3648dc;return this[_0x25430e(0x127)][this[_0x25430e(0x127)]['length']-0x1];}['wasCalled'](_0x1998e8,_0x874ecb){return this['requests']['some'](_0x4decc7=>{const _0x243303=a207_0x289d;if(_0x4decc7[_0x243303(0x121)]['toUpperCase']()!==_0x1998e8[_0x243303(0xf3)]())return![];if(typeof _0x874ecb===_0x243303(0xde))return _0x4decc7[_0x243303(0x10d)]['includes'](_0x874ecb);return _0x874ecb[_0x243303(0xf1)](_0x4decc7[_0x243303(0x10d)]);});}['getMatchCount'](_0x4aacb1){const _0x183774=a207_0x3648dc;return this[_0x183774(0x101)][_0x4aacb1]?.[_0x183774(0x112)]??0x0;}['reset'](){const _0x8ca008=a207_0x3648dc;this[_0x8ca008(0x101)]=[],this['requests']=[],this[_0x8ca008(0x125)]=null;}static[a207_0x3648dc(0xe4)](_0x455ea4){const _0x12d08f=a207_0x3648dc,_0x5d30e8={0xc8:'OK',0xc9:_0x12d08f(0x11d),0xcc:_0x12d08f(0xef),0x190:_0x12d08f(0x109),0x191:_0x12d08f(0xe1),0x193:_0x12d08f(0xee),0x194:_0x12d08f(0x12c),0x199:_0x12d08f(0xe9),0x1a6:_0x12d08f(0x12b),0x1ad:_0x12d08f(0x129),0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x12d08f(0x10c)};return _0x5d30e8[_0x455ea4]??_0x12d08f(0x102);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a207_0x1923(){const _0x522d5d=['stringify','text/plain','stubs','Unknown','verify','isArray','length','split','withQuery','parseRequest','Bad\x20Request','td-api','mockImplementation','Service\x20Unavailable','url','No\x20stub\x20matched\x20request:\x20','headers','error','entries','matchCount','https://api.treasuredata.com/errors/','push','textResponse','matcher','registerWithInspector','175796VcLuEE','body','responder','pathname','Registered\x20stubs:\x0a','Created','withBody','register','5102KbidAV','method','host','toLowerCase','67224xMVVgY','fetchMock','map','requests','2169240MQNgWG','Too\x20Many\x20Requests','Request\x20body:\x20','Unprocessable\x20Entity','Not\x20Found','simple','jsonResponseWithHeaders','get','111808ONMPIq','8075683DYcGRl','string','Unmatched\x20stub','join','Unauthorized','description','createFetch','getStatusText','searchParams','filter','315jIAKQW','REST','Conflict','15126kpzduQ','\x20registered\x20at:\x0a','stack','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Forbidden','No\x20Content','\x20\x20(none)','test','withHost','toUpperCase','every','parse','GET','fail','9UPPRzC','unnamed\x20stub','application/json','117wFtzDa','getLastRequest','function','15grqibP'];a207_0x1923=function(){return _0x522d5d;};return a207_0x1923();}
1
+ const a208_0x440d58=a208_0x4016;(function(_0xf34d71,_0x1527da){const _0x1a13d1=a208_0x4016,_0x1236d1=_0xf34d71();while(!![]){try{const _0x598619=parseInt(_0x1a13d1(0x1e6))/0x1*(parseInt(_0x1a13d1(0x1fb))/0x2)+-parseInt(_0x1a13d1(0x1d1))/0x3*(parseInt(_0x1a13d1(0x1e0))/0x4)+-parseInt(_0x1a13d1(0x1c7))/0x5*(-parseInt(_0x1a13d1(0x1f6))/0x6)+-parseInt(_0x1a13d1(0x1bb))/0x7+parseInt(_0x1a13d1(0x1b2))/0x8+-parseInt(_0x1a13d1(0x1fc))/0x9*(parseInt(_0x1a13d1(0x1b5))/0xa)+-parseInt(_0x1a13d1(0x1be))/0xb;if(_0x598619===_0x1527da)break;else _0x1236d1['push'](_0x1236d1['shift']());}catch(_0x2de523){_0x1236d1['push'](_0x1236d1['shift']());}}}(a208_0x4d4a,0x99842));import{vi}from'vitest';function a208_0x4d4a(){const _0x24d0f9=['Bad\x20Request','test','Created','length','matchCount','map','register','466180wUZDNt','withBody','createFetch','stack','push','responder','434NQfxRI','headers','isArray','toLowerCase','Forbidden','jsonResponseWithHeaders','Too\x20Many\x20Requests','fetchMock','unnamed\x20stub','split','body','reset','slice','Bad\x20Gateway','parseRequest','Internal\x20Server\x20Error','465186Qyvzfi','simple','toUpperCase','matched','stubs','1156KcqbZV','3188241CneHuh','Service\x20Unavailable','Unprocessable\x20Entity','parse','No\x20stub\x20matched\x20request:\x20','requests','errorResponse','pathname','networkError','8194592UtYSTe','includes','td-api','10CZIzAG','Request\x20body:\x20','getStatusText','description','url','every','3426073qrKtmZ','Unknown','application/json','6776176HQQxBW','withHost','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','stringify','text/plain','error','string','join','GET','75XCQzlJ','searchParams','\x20\x20(none)','Registered\x20stubs:\x0a','method','filter','verify','function','wasCalled','\x20registered\x20at:\x0a','9PxhiDV','https://api.treasuredata.com/errors/','getRequests','forEach','jsonResponse','mockImplementation','Conflict','getMatchCount'];a208_0x4d4a=function(){return _0x24d0f9;};return a208_0x4d4a();}export class HTTPMockRegistry{[a208_0x440d58(0x1fa)]=[];[a208_0x440d58(0x1ae)]=[];[a208_0x440d58(0x1ed)]=null;['REST'](_0x33ceac,_0x39b516){return _0x5c890a=>{const _0x8d3355=a208_0x4016;if(_0x5c890a[_0x8d3355(0x1cb)][_0x8d3355(0x1f8)]()!==_0x33ceac[_0x8d3355(0x1f8)]())return![];const _0x2d306a=new URL(_0x5c890a['url']);if(typeof _0x39b516==='string')return _0x2d306a[_0x8d3355(0x1b0)]===_0x39b516||_0x2d306a[_0x8d3355(0x1b0)][_0x8d3355(0x1b3)](_0x39b516);return _0x39b516[_0x8d3355(0x1da)](_0x2d306a[_0x8d3355(0x1b0)]);};}['withQuery'](_0x418c5a,_0x3ce206){return _0x1f0b4b=>{const _0x1f46e3=a208_0x4016;if(!_0x418c5a(_0x1f0b4b))return![];const _0x185c4a=new URL(_0x1f0b4b[_0x1f46e3(0x1b9)]);return Object['entries'](_0x3ce206)[_0x1f46e3(0x1ba)](([_0x8b8a55,_0x4f62cd])=>_0x185c4a[_0x1f46e3(0x1c8)]['get'](_0x8b8a55)===_0x4f62cd);};}[a208_0x440d58(0x1e1)](_0x4fff9b,_0x94172b){return _0x3e346f=>{const _0x588eaa=a208_0x4016;if(!_0x4fff9b(_0x3e346f))return![];if(typeof _0x94172b===_0x588eaa(0x1ce))return _0x94172b(_0x3e346f[_0x588eaa(0x1f0)]);return JSON[_0x588eaa(0x1c1)](_0x3e346f[_0x588eaa(0x1f0)])===JSON[_0x588eaa(0x1c1)](_0x94172b);};}[a208_0x440d58(0x1bf)](_0x18315a,_0x15e762){return _0x1a6c79=>{const _0x46503f=a208_0x4016;if(!_0x18315a(_0x1a6c79))return![];const _0x372463=new URL(_0x1a6c79[_0x46503f(0x1b9)]);return _0x372463['host']===_0x15e762;};}[a208_0x440d58(0x1df)](_0x57bac7,_0x38f6ed,_0x3e73e8){const _0x55a513=a208_0x440d58;this[_0x55a513(0x1fa)][_0x55a513(0x1e4)]({'matcher':_0x57bac7,'responder':_0x38f6ed,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x3e73e8?.[_0x55a513(0x1b8)]});}['registerWithInspector'](_0x3fe10a,_0x5e4037,_0x50ed29){const _0x358056=a208_0x440d58,_0x162621=_0x5a92f6=>{return _0x50ed29(_0x5a92f6['body'],_0x5a92f6),_0x5e4037(_0x5a92f6);};this[_0x358056(0x1df)](_0x3fe10a,_0x162621);}static[a208_0x440d58(0x1d5)](_0x584ea7,_0x45be95=0xc8){const _0x5272c1=a208_0x440d58;return()=>new Response(JSON[_0x5272c1(0x1c1)](_0x584ea7),{'status':_0x45be95,'headers':{'Content-Type':_0x5272c1(0x1bd)}});}static[a208_0x440d58(0x1af)](_0xa9f5b1,_0x43db06,_0x1bc21c=a208_0x440d58(0x1f7)){return()=>{const _0x5beded=a208_0x4016;let _0x3c6990;switch(_0x1bc21c){case _0x5beded(0x1b4):_0x3c6990={'errors':{'error':_0x43db06,'message':_0x43db06,'severity':_0x5beded(0x1c3),'status_code':_0xa9f5b1}};break;case'rfc9457':_0x3c6990={'type':_0x5beded(0x1d2)+_0xa9f5b1,'title':HTTPMockRegistry[_0x5beded(0x1b7)](_0xa9f5b1),'status':_0xa9f5b1,'detail':_0x43db06};break;default:_0x3c6990={'error':_0x43db06};}return new Response(JSON['stringify'](_0x3c6990),{'status':_0xa9f5b1,'headers':{'Content-Type':_0x5beded(0x1bd)}});};}static[a208_0x440d58(0x1eb)](_0x71702c,_0x3e5bb8,_0x488991=0xc8){const _0x4ab211=a208_0x440d58;return()=>new Response(JSON[_0x4ab211(0x1c1)](_0x71702c),{'status':_0x488991,'headers':{'Content-Type':_0x4ab211(0x1bd),..._0x3e5bb8}});}static['textResponse'](_0x293449,_0x219e0c=0xc8){const _0x413ad5=a208_0x440d58;return()=>new Response(_0x293449,{'status':_0x219e0c,'headers':{'Content-Type':_0x413ad5(0x1c2)}});}static[a208_0x440d58(0x1b1)](_0x42cb0f){return()=>{throw new Error(_0x42cb0f);};}[a208_0x440d58(0x1e2)](){const _0x40bf49=a208_0x440d58;return this['fetchMock']=vi['fn']()[_0x40bf49(0x1d6)](async(_0x243d32,_0x574739)=>{const _0x1838c0=_0x40bf49,_0x253296=this[_0x1838c0(0x1f4)](_0x243d32,_0x574739);this['requests']['push'](_0x253296);for(const _0x3c7ed0 of this['stubs']){if(_0x3c7ed0['matcher'](_0x253296))return _0x3c7ed0[_0x1838c0(0x1f9)]=!![],_0x3c7ed0[_0x1838c0(0x1dd)]++,_0x3c7ed0[_0x1838c0(0x1e5)](_0x253296);}const _0x26ff9a=this[_0x1838c0(0x1fa)]['map']((_0x8664bb,_0x35bf21)=>'\x20\x20'+(_0x35bf21+0x1)+'.\x20'+(_0x8664bb['description']??_0x1838c0(0x1ee)))[_0x1838c0(0x1c5)]('\x0a');throw new Error(_0x1838c0(0x1ad)+_0x253296[_0x1838c0(0x1cb)]+'\x20'+_0x253296['url']+'\x0a'+(_0x1838c0(0x1b6)+JSON[_0x1838c0(0x1c1)](_0x253296[_0x1838c0(0x1f0)])+'\x0a')+(_0x1838c0(0x1ca)+(_0x26ff9a||_0x1838c0(0x1c9))));}),this[_0x40bf49(0x1ed)];}['parseRequest'](_0x927a96,_0x592222){const _0x310c11=a208_0x440d58,_0x29e25d={};if(_0x592222?.[_0x310c11(0x1e7)]){if(_0x592222['headers']instanceof Headers)_0x592222[_0x310c11(0x1e7)][_0x310c11(0x1d4)]((_0x453098,_0x5022d0)=>{const _0x440522=_0x310c11;_0x29e25d[_0x5022d0[_0x440522(0x1e9)]()]=_0x453098;});else{if(Array[_0x310c11(0x1e8)](_0x592222[_0x310c11(0x1e7)]))for(const [_0x2dc17a,_0x2c594d]of _0x592222[_0x310c11(0x1e7)]){_0x29e25d[_0x2dc17a[_0x310c11(0x1e9)]()]=_0x2c594d;}else for(const [_0x1ab5c8,_0x289bef]of Object['entries'](_0x592222[_0x310c11(0x1e7)])){_0x289bef!==undefined&&(_0x29e25d[_0x1ab5c8[_0x310c11(0x1e9)]()]=_0x289bef);}}}let _0x38ad40;if(_0x592222?.[_0x310c11(0x1f0)])try{_0x38ad40=JSON[_0x310c11(0x1ac)](_0x592222[_0x310c11(0x1f0)]);}catch{_0x38ad40=_0x592222[_0x310c11(0x1f0)];}return{'method':_0x592222?.[_0x310c11(0x1cb)]??_0x310c11(0x1c6),'url':_0x927a96,'headers':_0x29e25d,'body':_0x38ad40};}[a208_0x440d58(0x1cd)](_0x194f86){const _0x512809=a208_0x440d58,_0x3052ee=this[_0x512809(0x1fa)][_0x512809(0x1cc)](_0xeaf168=>!_0xeaf168['matched']);if(_0x3052ee[_0x512809(0x1dc)]>0x0){const _0x3adf35=_0x3052ee[_0x512809(0x1de)](_0x1ee2dd=>{const _0x4af35e=_0x512809,_0x4c0084=_0x1ee2dd[_0x4af35e(0x1b8)]?'\x20('+_0x1ee2dd[_0x4af35e(0x1b8)]+')':'',_0x2b58a0=_0x1ee2dd[_0x4af35e(0x1e3)][_0x4af35e(0x1ef)]('\x0a')[_0x4af35e(0x1f2)](0x2,0x5)[_0x4af35e(0x1c5)]('\x0a');return'Unmatched\x20stub'+_0x4c0084+_0x4af35e(0x1d0)+_0x2b58a0;});_0x194f86['fail'](_0x3052ee[_0x512809(0x1dc)]+_0x512809(0x1c0)+_0x3adf35[_0x512809(0x1c5)]('\x0a\x0a'));}}[a208_0x440d58(0x1d3)](){const _0x326ed8=a208_0x440d58;return[...this[_0x326ed8(0x1ae)]];}['getLastRequest'](){const _0x51a7c2=a208_0x440d58;return this[_0x51a7c2(0x1ae)][this[_0x51a7c2(0x1ae)]['length']-0x1];}[a208_0x440d58(0x1cf)](_0x5e9983,_0x4d9d28){return this['requests']['some'](_0x33cd25=>{const _0x49e32c=a208_0x4016;if(_0x33cd25[_0x49e32c(0x1cb)][_0x49e32c(0x1f8)]()!==_0x5e9983[_0x49e32c(0x1f8)]())return![];if(typeof _0x4d9d28===_0x49e32c(0x1c4))return _0x33cd25[_0x49e32c(0x1b9)][_0x49e32c(0x1b3)](_0x4d9d28);return _0x4d9d28['test'](_0x33cd25[_0x49e32c(0x1b9)]);});}[a208_0x440d58(0x1d8)](_0x1b8e15){const _0x216871=a208_0x440d58;return this['stubs'][_0x1b8e15]?.[_0x216871(0x1dd)]??0x0;}[a208_0x440d58(0x1f1)](){const _0x16396c=a208_0x440d58;this['stubs']=[],this[_0x16396c(0x1ae)]=[],this[_0x16396c(0x1ed)]=null;}static[a208_0x440d58(0x1b7)](_0x38c9d9){const _0xc14ba1=a208_0x440d58,_0x12e2a7={0xc8:'OK',0xc9:_0xc14ba1(0x1db),0xcc:'No\x20Content',0x190:_0xc14ba1(0x1d9),0x191:'Unauthorized',0x193:_0xc14ba1(0x1ea),0x194:'Not\x20Found',0x199:_0xc14ba1(0x1d7),0x1a6:_0xc14ba1(0x1fe),0x1ad:_0xc14ba1(0x1ec),0x1f4:_0xc14ba1(0x1f5),0x1f6:_0xc14ba1(0x1f3),0x1f7:_0xc14ba1(0x1fd)};return _0x12e2a7[_0x38c9d9]??_0xc14ba1(0x1bc);}}function a208_0x4016(_0x4a9043,_0xf5a35c){_0x4a9043=_0x4a9043-0x1ac;const _0x4d4a38=a208_0x4d4a();let _0x40160b=_0x4d4a38[_0x4a9043];return _0x40160b;}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a208_0x1aa2(_0x434f10,_0x4d819f){_0x434f10=_0x434f10-0x7d;var _0x5925af=a208_0x5925();var _0x1aa2de=_0x5925af[_0x434f10];return _0x1aa2de;}(function(_0x1a7550,_0x2d15cf){var _0x3e5c9e=a208_0x1aa2,_0x51a419=_0x1a7550();while(!![]){try{var _0x1f01a8=parseInt(_0x3e5c9e(0x85))/0x1*(-parseInt(_0x3e5c9e(0x86))/0x2)+-parseInt(_0x3e5c9e(0x80))/0x3+parseInt(_0x3e5c9e(0x84))/0x4*(parseInt(_0x3e5c9e(0x81))/0x5)+-parseInt(_0x3e5c9e(0x7d))/0x6+parseInt(_0x3e5c9e(0x7e))/0x7+parseInt(_0x3e5c9e(0x83))/0x8*(-parseInt(_0x3e5c9e(0x82))/0x9)+parseInt(_0x3e5c9e(0x7f))/0xa;if(_0x1f01a8===_0x2d15cf)break;else _0x51a419['push'](_0x51a419['shift']());}catch(_0x4666ff){_0x51a419['push'](_0x51a419['shift']());}}}(a208_0x5925,0x4bf83));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a208_0x5925(){var _0x47faf6=['1137906uuqthz','145362WQemFJ','13925370vnpeKe','1279707zXpcqJ','5piBcwU','297XkDxdN','17432CibEqy','586528ENVdsQ','186879eKjCVC','6FWLWYm'];a208_0x5925=function(){return _0x47faf6;};return a208_0x5925();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x577f30,_0x2f73e4){var _0xbbb8de=a209_0x171e,_0x1f4e57=_0x577f30();while(!![]){try{var _0x350b37=parseInt(_0xbbb8de(0x125))/0x1+-parseInt(_0xbbb8de(0x126))/0x2*(-parseInt(_0xbbb8de(0x12b))/0x3)+parseInt(_0xbbb8de(0x128))/0x4+-parseInt(_0xbbb8de(0x127))/0x5*(parseInt(_0xbbb8de(0x12e))/0x6)+-parseInt(_0xbbb8de(0x129))/0x7*(parseInt(_0xbbb8de(0x12c))/0x8)+parseInt(_0xbbb8de(0x12a))/0x9+-parseInt(_0xbbb8de(0x12d))/0xa;if(_0x350b37===_0x2f73e4)break;else _0x1f4e57['push'](_0x1f4e57['shift']());}catch(_0x468f62){_0x1f4e57['push'](_0x1f4e57['shift']());}}}(a209_0x3f7b,0x2a06e));function a209_0x171e(_0x33782a,_0x324d82){_0x33782a=_0x33782a-0x125;var _0x3f7bea=a209_0x3f7b();var _0x171ee6=_0x3f7bea[_0x33782a];return _0x171ee6;}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 a209_0x3f7b(){var _0xacce89=['160146TNrzyQ','94NmgTRl','2290QcvcHP','1060852MEXwan','46823sWdKbI','2266083pfJZvw','7404gXSerJ','136UxfsbU','3144690LdLRcl','2526gGsUYV'];a209_0x3f7b=function(){return _0xacce89;};return a209_0x3f7b();}
@@ -1 +1 @@
1
- (function(_0x476cf3,_0xdcdb98){const _0x278f11=a209_0x1963,_0x123351=_0x476cf3();while(!![]){try{const _0x429736=-parseInt(_0x278f11(0x92))/0x1+parseInt(_0x278f11(0x9c))/0x2*(parseInt(_0x278f11(0x9a))/0x3)+parseInt(_0x278f11(0x93))/0x4+-parseInt(_0x278f11(0x96))/0x5+-parseInt(_0x278f11(0x91))/0x6*(-parseInt(_0x278f11(0x97))/0x7)+-parseInt(_0x278f11(0x95))/0x8*(-parseInt(_0x278f11(0x9b))/0x9)+parseInt(_0x278f11(0x94))/0xa*(parseInt(_0x278f11(0x90))/0xb);if(_0x429736===_0xdcdb98)break;else _0x123351['push'](_0x123351['shift']());}catch(_0x38ff85){_0x123351['push'](_0x123351['shift']());}}}(a209_0x40a4,0xc259a));function a209_0x1963(_0x44d342,_0x47cf1c){_0x44d342=_0x44d342-0x8f;const _0x40a4b8=a209_0x40a4();let _0x196304=_0x40a4b8[_0x44d342];return _0x196304;}export async function batchAsync(_0x223555,_0xc025f0,_0x554bbb=0xa){const _0x174389=a209_0x1963,_0x387faa=[];for(let _0x558700=0x0;_0x558700<_0x223555[_0x174389(0x99)];_0x558700+=_0x554bbb){const _0xdcaf25=_0x223555[_0x174389(0x98)](_0x558700,_0x558700+_0x554bbb),_0xeb7d41=await Promise['all'](_0xdcaf25['map'](_0xc025f0));_0x387faa[_0x174389(0x8f)](..._0xeb7d41);}return _0x387faa;}function a209_0x40a4(){const _0x41ef5e=['227076cBOAqU','push','15319898eXUhAt','24kZKPUo','1317513LPrzGv','847620hjCFUR','10fvqmtN','643224LLxmZn','6551105WSgCWW','1238405tRWZUQ','slice','length','6NXOEBY','99kPRRSE'];a209_0x40a4=function(){return _0x41ef5e;};return a209_0x40a4();}
1
+ function a210_0x5f0c(_0x5d7230,_0x234367){_0x5d7230=_0x5d7230-0x94;const _0x46aba0=a210_0x46ab();let _0x5f0c79=_0x46aba0[_0x5d7230];return _0x5f0c79;}function a210_0x46ab(){const _0x5ab8fa=['4283305hkPfyo','150762UOGcWB','27656bBrXYn','35873365cnTKib','2756034IBLJXM','315NdaYij','121100jqhFXk','all','slice','1673VdmvId','59786WygKlF','8CgbYev','12qLUJAT','map'];a210_0x46ab=function(){return _0x5ab8fa;};return a210_0x46ab();}(function(_0x35dd4e,_0x508b15){const _0x2f692e=a210_0x5f0c,_0x22f537=_0x35dd4e();while(!![]){try{const _0x1404eb=-parseInt(_0x2f692e(0xa1))/0x1*(parseInt(_0x2f692e(0x9f))/0x2)+parseInt(_0x2f692e(0x96))/0x3*(parseInt(_0x2f692e(0xa0))/0x4)+-parseInt(_0x2f692e(0x95))/0x5+-parseInt(_0x2f692e(0x99))/0x6+-parseInt(_0x2f692e(0x9e))/0x7*(parseInt(_0x2f692e(0x97))/0x8)+parseInt(_0x2f692e(0x9a))/0x9*(-parseInt(_0x2f692e(0x9b))/0xa)+parseInt(_0x2f692e(0x98))/0xb;if(_0x1404eb===_0x508b15)break;else _0x22f537['push'](_0x22f537['shift']());}catch(_0x4dd7a4){_0x22f537['push'](_0x22f537['shift']());}}}(a210_0x46ab,0x6aac6));export async function batchAsync(_0x105ef0,_0x16f8c8,_0x466201=0xa){const _0x4e3d51=a210_0x5f0c,_0x2eb87e=[];for(let _0x398f7b=0x0;_0x398f7b<_0x105ef0['length'];_0x398f7b+=_0x466201){const _0x2b390b=_0x105ef0[_0x4e3d51(0x9d)](_0x398f7b,_0x398f7b+_0x466201),_0x2074a1=await Promise[_0x4e3d51(0x9c)](_0x2b390b[_0x4e3d51(0x94)](_0x16f8c8));_0x2eb87e['push'](..._0x2074a1);}return _0x2eb87e;}
@@ -1 +1 @@
1
- const a210_0x544690=a210_0x4116;(function(_0x2a4c36,_0x2a10c8){const _0x11ee04=a210_0x4116,_0x5b156a=_0x2a4c36();while(!![]){try{const _0x1517bd=-parseInt(_0x11ee04(0x119))/0x1+-parseInt(_0x11ee04(0x11c))/0x2+-parseInt(_0x11ee04(0x11b))/0x3+parseInt(_0x11ee04(0x10d))/0x4+-parseInt(_0x11ee04(0x126))/0x5+parseInt(_0x11ee04(0x117))/0x6+parseInt(_0x11ee04(0x112))/0x7*(parseInt(_0x11ee04(0x10f))/0x8);if(_0x1517bd===_0x2a10c8)break;else _0x5b156a['push'](_0x5b156a['shift']());}catch(_0x171802){_0x5b156a['push'](_0x5b156a['shift']());}}}(a210_0x3ad5,0x28558));import*as a210_0xede9a5 from'chalk';const Chalk=a210_0xede9a5[a210_0x544690(0x116)];function a210_0x3ad5(){const _0x35a00f=['1495210LUioNV','609652QSHNSv','blue','18808xCEUWq','object','string','1981gyXGje','number','isArray','stringify','Chalk','211782mkqKJs','isTTY','216255xiaOhP','green','305829DuSgJc','141190XjPxpW','map','dim','join','yellow','length','color','repeat','cyan','entries'];a210_0x3ad5=function(){return _0x35a00f;};return a210_0x3ad5();}export function shouldUseColor(_0xa86455={}){const _0x3cb208=a210_0x544690;if(_0xa86455['noColor']===!![])return![];if(_0xa86455[_0x3cb208(0x122)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x3cb208(0x118)]??![];}export function getChalk(_0x12d5ac={}){if(shouldUseColor(_0x12d5ac))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x14ca84,_0x4162e1={}){const _0x4982e2=a210_0x544690;return getChalk(_0x4162e1)[_0x4982e2(0x11e)](_0x14ca84);}export function colorHeader(_0x17630e,_0xb27b58={}){const _0x55d42d=a210_0x544690;return getChalk(_0xb27b58)[_0x55d42d(0x124)](_0x17630e);}export function colorType(_0x3cc4ad,_0x10654b={}){const _0x5c2dcb=a210_0x544690;return getChalk(_0x10654b)[_0x5c2dcb(0x11e)](_0x3cc4ad);}export function colorJSONKey(_0x2a08de,_0x184d18={}){const _0x5b91ab=a210_0x544690;return getChalk(_0x184d18)[_0x5b91ab(0x10e)](_0x2a08de);}export function colorJSONString(_0x78a31,_0x1eb87c={}){const _0x36babf=a210_0x544690;return getChalk(_0x1eb87c)[_0x36babf(0x11a)](_0x78a31);}function a210_0x4116(_0x29d13b,_0x30ee68){_0x29d13b=_0x29d13b-0x10d;const _0x3ad540=a210_0x3ad5();let _0x411658=_0x3ad540[_0x29d13b];return _0x411658;}export function colorJSONNumber(_0x46b514,_0x3974d9={}){return getChalk(_0x3974d9)['cyan'](_0x46b514);}export function colorJSONBoolean(_0xa00781,_0xf8b716={}){const _0x13fb5b=a210_0x544690;return getChalk(_0xf8b716)[_0x13fb5b(0x120)](_0xa00781);}export function colorJSONNull(_0x5ada8,_0xe7fe22={}){const _0x2fd1d8=a210_0x544690;return getChalk(_0xe7fe22)[_0x2fd1d8(0x11e)](_0x5ada8);}export function colorizeJSONCompact(_0x2c060b,_0x26f6f2={}){const _0x17117b=a210_0x544690;if(!shouldUseColor(_0x26f6f2))return JSON[_0x17117b(0x115)](_0x2c060b);if(_0x2c060b===null)return colorJSONNull('null',_0x26f6f2);if(typeof _0x2c060b==='boolean')return colorJSONBoolean(String(_0x2c060b),_0x26f6f2);if(typeof _0x2c060b===_0x17117b(0x113))return colorJSONNumber(String(_0x2c060b),_0x26f6f2);if(typeof _0x2c060b==='string')return colorJSONString(JSON[_0x17117b(0x115)](_0x2c060b),_0x26f6f2);if(Array[_0x17117b(0x114)](_0x2c060b)){if(_0x2c060b[_0x17117b(0x121)]===0x0)return'[]';const _0x1c9405=_0x2c060b[_0x17117b(0x11d)](_0x3beb81=>colorizeJSONCompact(_0x3beb81,_0x26f6f2));return'['+_0x1c9405[_0x17117b(0x11f)](',')+']';}if(typeof _0x2c060b==='object'){const _0x4e182d=Object[_0x17117b(0x125)](_0x2c060b);if(_0x4e182d['length']===0x0)return'{}';const _0x389115=_0x4e182d['map'](([_0xa726d2,_0x250949])=>{const _0x1759cf=colorJSONKey(JSON['stringify'](_0xa726d2),_0x26f6f2),_0x34f7d7=colorizeJSONCompact(_0x250949,_0x26f6f2);return _0x1759cf+':'+_0x34f7d7;});return'{'+_0x389115[_0x17117b(0x11f)](',')+'}';}return String(_0x2c060b);}export function colorizeJSON(_0xa7233d,_0x153fed={},_0x18b6d9=0x0){const _0x197023=a210_0x544690;if(!shouldUseColor(_0x153fed))return JSON['stringify'](_0xa7233d,null,0x2);const _0xc1ca8d='\x20'['repeat'](_0x18b6d9),_0x129aad=_0x18b6d9+0x2;if(_0xa7233d===null)return colorJSONNull('null',_0x153fed);if(typeof _0xa7233d==='boolean')return colorJSONBoolean(String(_0xa7233d),_0x153fed);if(typeof _0xa7233d===_0x197023(0x113))return colorJSONNumber(String(_0xa7233d),_0x153fed);if(typeof _0xa7233d===_0x197023(0x111))return colorJSONString(JSON[_0x197023(0x115)](_0xa7233d),_0x153fed);if(Array[_0x197023(0x114)](_0xa7233d)){if(_0xa7233d[_0x197023(0x121)]===0x0)return'[]';const _0x1ee685=_0xa7233d[_0x197023(0x11d)](_0x2e840e=>{const _0x4ef41c=colorizeJSON(_0x2e840e,_0x153fed,_0x129aad);return''+'\x20'['repeat'](_0x129aad)+_0x4ef41c;});return'[\x0a'+_0x1ee685[_0x197023(0x11f)](',\x0a')+('\x0a'+_0xc1ca8d+']');}if(typeof _0xa7233d===_0x197023(0x110)){const _0x16c827=Object[_0x197023(0x125)](_0xa7233d);if(_0x16c827[_0x197023(0x121)]===0x0)return'{}';const _0xf880f2=_0x16c827[_0x197023(0x11d)](([_0x1fc7b5,_0x460772])=>{const _0xed5043=_0x197023,_0x3843e6=colorJSONKey(JSON[_0xed5043(0x115)](_0x1fc7b5),_0x153fed),_0x2814f6=colorizeJSON(_0x460772,_0x153fed,_0x129aad);return''+'\x20'[_0xed5043(0x123)](_0x129aad)+_0x3843e6+':\x20'+_0x2814f6;});return'{\x0a'+_0xf880f2[_0x197023(0x11f)](',\x0a')+('\x0a'+_0xc1ca8d+'}');}return String(_0xa7233d);}
1
+ function a211_0x5694(_0x700e73,_0x5f2b5b){_0x700e73=_0x700e73-0x15a;const _0x5e9330=a211_0x5e93();let _0x569467=_0x5e9330[_0x700e73];return _0x569467;}const a211_0x403e97=a211_0x5694;(function(_0x47a13b,_0x2a84c9){const _0x4053b8=a211_0x5694,_0x391766=_0x47a13b();while(!![]){try{const _0xe3d06d=-parseInt(_0x4053b8(0x167))/0x1+parseInt(_0x4053b8(0x16d))/0x2+-parseInt(_0x4053b8(0x16a))/0x3*(-parseInt(_0x4053b8(0x15f))/0x4)+-parseInt(_0x4053b8(0x162))/0x5+-parseInt(_0x4053b8(0x15b))/0x6+-parseInt(_0x4053b8(0x168))/0x7*(-parseInt(_0x4053b8(0x171))/0x8)+parseInt(_0x4053b8(0x16f))/0x9;if(_0xe3d06d===_0x2a84c9)break;else _0x391766['push'](_0x391766['shift']());}catch(_0x23dcc6){_0x391766['push'](_0x391766['shift']());}}}(a211_0x5e93,0x83955));import*as a211_0x209c86 from'chalk';const Chalk=a211_0x209c86[a211_0x403e97(0x165)];export function shouldUseColor(_0x50d026={}){const _0x17cd40=a211_0x403e97;if(_0x50d026[_0x17cd40(0x15a)]===!![])return![];if(_0x50d026['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout']['isTTY']??![];}function a211_0x5e93(){const _0x4deb04=['2776795xwcYSd','number','cyan','Chalk','join','898086MnLqeY','7cLGemH','boolean','78ddYSYC','stringify','dim','1645078dDPodv','length','6776640qDgnjz','map','3179336BOIzLl','string','object','yellow','noColor','1937868bPRdKN','isArray','repeat','entries','52688EUKrvN','null','blue'];a211_0x5e93=function(){return _0x4deb04;};return a211_0x5e93();}export function getChalk(_0xaa993c={}){if(shouldUseColor(_0xaa993c))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5757e6,_0x3dbdb6={}){const _0x2bc819=a211_0x403e97;return getChalk(_0x3dbdb6)[_0x2bc819(0x16c)](_0x5757e6);}export function colorHeader(_0x23b3df,_0x4c16c6={}){const _0xf9bacc=a211_0x403e97;return getChalk(_0x4c16c6)[_0xf9bacc(0x164)](_0x23b3df);}export function colorType(_0x4e849e,_0x2b560f={}){const _0x3e2ddd=a211_0x403e97;return getChalk(_0x2b560f)[_0x3e2ddd(0x16c)](_0x4e849e);}export function colorJSONKey(_0x1ef37e,_0x31aeca={}){const _0x173b01=a211_0x403e97;return getChalk(_0x31aeca)[_0x173b01(0x161)](_0x1ef37e);}export function colorJSONString(_0x2a9b24,_0x115bfb={}){return getChalk(_0x115bfb)['green'](_0x2a9b24);}export function colorJSONNumber(_0x47bea6,_0x374f6d={}){const _0x276e4b=a211_0x403e97;return getChalk(_0x374f6d)[_0x276e4b(0x164)](_0x47bea6);}export function colorJSONBoolean(_0x5b4caf,_0x42af2d={}){const _0x2ba3a3=a211_0x403e97;return getChalk(_0x42af2d)[_0x2ba3a3(0x174)](_0x5b4caf);}export function colorJSONNull(_0x453afb,_0x495f78={}){const _0x3f99db=a211_0x403e97;return getChalk(_0x495f78)[_0x3f99db(0x16c)](_0x453afb);}export function colorizeJSONCompact(_0x232665,_0xf4465f={}){const _0x52f827=a211_0x403e97;if(!shouldUseColor(_0xf4465f))return JSON[_0x52f827(0x16b)](_0x232665);if(_0x232665===null)return colorJSONNull(_0x52f827(0x160),_0xf4465f);if(typeof _0x232665===_0x52f827(0x169))return colorJSONBoolean(String(_0x232665),_0xf4465f);if(typeof _0x232665==='number')return colorJSONNumber(String(_0x232665),_0xf4465f);if(typeof _0x232665===_0x52f827(0x172))return colorJSONString(JSON[_0x52f827(0x16b)](_0x232665),_0xf4465f);if(Array[_0x52f827(0x15c)](_0x232665)){if(_0x232665['length']===0x0)return'[]';const _0x3b2c9a=_0x232665[_0x52f827(0x170)](_0xc11dad=>colorizeJSONCompact(_0xc11dad,_0xf4465f));return'['+_0x3b2c9a[_0x52f827(0x166)](',')+']';}if(typeof _0x232665===_0x52f827(0x173)){const _0x336f53=Object[_0x52f827(0x15e)](_0x232665);if(_0x336f53['length']===0x0)return'{}';const _0x2a6d65=_0x336f53[_0x52f827(0x170)](([_0x1153eb,_0x5f2630])=>{const _0x28977e=_0x52f827,_0x20c289=colorJSONKey(JSON[_0x28977e(0x16b)](_0x1153eb),_0xf4465f),_0x32ccb4=colorizeJSONCompact(_0x5f2630,_0xf4465f);return _0x20c289+':'+_0x32ccb4;});return'{'+_0x2a6d65[_0x52f827(0x166)](',')+'}';}return String(_0x232665);}export function colorizeJSON(_0x1eb1c7,_0x3a869a={},_0x73c2c2=0x0){const _0x272483=a211_0x403e97;if(!shouldUseColor(_0x3a869a))return JSON[_0x272483(0x16b)](_0x1eb1c7,null,0x2);const _0x1937fc='\x20'[_0x272483(0x15d)](_0x73c2c2),_0x1500d1=_0x73c2c2+0x2;if(_0x1eb1c7===null)return colorJSONNull(_0x272483(0x160),_0x3a869a);if(typeof _0x1eb1c7===_0x272483(0x169))return colorJSONBoolean(String(_0x1eb1c7),_0x3a869a);if(typeof _0x1eb1c7===_0x272483(0x163))return colorJSONNumber(String(_0x1eb1c7),_0x3a869a);if(typeof _0x1eb1c7==='string')return colorJSONString(JSON[_0x272483(0x16b)](_0x1eb1c7),_0x3a869a);if(Array['isArray'](_0x1eb1c7)){if(_0x1eb1c7[_0x272483(0x16e)]===0x0)return'[]';const _0x2745b3=_0x1eb1c7[_0x272483(0x170)](_0x492d28=>{const _0x43b8ff=colorizeJSON(_0x492d28,_0x3a869a,_0x1500d1);return''+'\x20'['repeat'](_0x1500d1)+_0x43b8ff;});return'[\x0a'+_0x2745b3['join'](',\x0a')+('\x0a'+_0x1937fc+']');}if(typeof _0x1eb1c7===_0x272483(0x173)){const _0x4edaeb=Object['entries'](_0x1eb1c7);if(_0x4edaeb['length']===0x0)return'{}';const _0x5bdce9=_0x4edaeb[_0x272483(0x170)](([_0x2f7a0e,_0x17af3f])=>{const _0x4996cf=_0x272483,_0x510ec6=colorJSONKey(JSON['stringify'](_0x2f7a0e),_0x3a869a),_0x218673=colorizeJSON(_0x17af3f,_0x3a869a,_0x1500d1);return''+'\x20'[_0x4996cf(0x15d)](_0x1500d1)+_0x510ec6+':\x20'+_0x218673;});return'{\x0a'+_0x5bdce9['join'](',\x0a')+('\x0a'+_0x1937fc+'}');}return String(_0x1eb1c7);}
@@ -1 +1 @@
1
- function a211_0x435e(){const _0x17b09c=['split','content','type','446678cLcKVD','428700gmyEIH','3138pOXHHe','dim','repeat','new','map','some','add','2000290Ywhwxl','unshift','removed','join','green','unchanged','267831PwFqjL','10899570XfYKZI','padStart','2430981AsehVi','old','2cmzzyh','added','size','3TfkJxW','\x20\x20...','length','\x20\x20\x20','\x20-\x20','2715HqgjXR','40cryBWX','fill','push','max'];a211_0x435e=function(){return _0x17b09c;};return a211_0x435e();}(function(_0xf8f6c2,_0x4ab3e0){const _0x1b3546=a211_0x4f3b,_0xe3d789=_0xf8f6c2();while(!![]){try{const _0x1cba2c=parseInt(_0x1b3546(0x155))/0x1*(-parseInt(_0x1b3546(0x145))/0x2)+parseInt(_0x1b3546(0x148))/0x3*(parseInt(_0x1b3546(0x156))/0x4)+parseInt(_0x1b3546(0x14d))/0x5*(-parseInt(_0x1b3546(0x157))/0x6)+-parseInt(_0x1b3546(0x143))/0x7+parseInt(_0x1b3546(0x14e))/0x8*(parseInt(_0x1b3546(0x140))/0x9)+parseInt(_0x1b3546(0x13a))/0xa+parseInt(_0x1b3546(0x141))/0xb;if(_0x1cba2c===_0x4ab3e0)break;else _0xe3d789['push'](_0xe3d789['shift']());}catch(_0x36f833){_0xe3d789['push'](_0xe3d789['shift']());}}}(a211_0x435e,0x5a117));import a211_0x1a35be from'chalk';function a211_0x4f3b(_0x25d273,_0x54ad03){_0x25d273=_0x25d273-0x138;const _0x435e18=a211_0x435e();let _0x4f3bc9=_0x435e18[_0x25d273];return _0x4f3bc9;}export function generateDiff(_0x324a68,_0x32c313){const _0x55dd76=a211_0x4f3b,_0x4692b9=_0x324a68[_0x55dd76(0x152)]('\x0a'),_0x2b78a2=_0x32c313[_0x55dd76(0x152)]('\x0a'),_0x115d2e=[],_0x530e39=computeLCS(_0x4692b9,_0x2b78a2);let _0x31d5c9=0x0,_0x304ac7=0x0,_0x26f0d1=0x0;while(_0x31d5c9<_0x4692b9[_0x55dd76(0x14a)]||_0x304ac7<_0x2b78a2[_0x55dd76(0x14a)]){if(_0x26f0d1<_0x530e39['length']&&_0x31d5c9<_0x4692b9[_0x55dd76(0x14a)]&&_0x4692b9[_0x31d5c9]===_0x530e39[_0x26f0d1])_0x304ac7<_0x2b78a2[_0x55dd76(0x14a)]&&_0x2b78a2[_0x304ac7]===_0x530e39[_0x26f0d1]?(_0x115d2e[_0x55dd76(0x150)]({'type':_0x55dd76(0x13f),'content':_0x4692b9[_0x31d5c9]}),_0x31d5c9++,_0x304ac7++,_0x26f0d1++):(_0x115d2e[_0x55dd76(0x150)]({'type':_0x55dd76(0x146),'content':_0x2b78a2[_0x304ac7]}),_0x304ac7++);else{if(_0x26f0d1<_0x530e39[_0x55dd76(0x14a)]&&_0x304ac7<_0x2b78a2[_0x55dd76(0x14a)]&&_0x2b78a2[_0x304ac7]===_0x530e39[_0x26f0d1])_0x115d2e[_0x55dd76(0x150)]({'type':_0x55dd76(0x13c),'content':_0x4692b9[_0x31d5c9]}),_0x31d5c9++;else{if(_0x31d5c9<_0x4692b9['length']&&(_0x26f0d1>=_0x530e39['length']||_0x4692b9[_0x31d5c9]!==_0x530e39[_0x26f0d1]))_0x115d2e[_0x55dd76(0x150)]({'type':_0x55dd76(0x13c),'content':_0x4692b9[_0x31d5c9]}),_0x31d5c9++;else _0x304ac7<_0x2b78a2[_0x55dd76(0x14a)]&&(_0x115d2e[_0x55dd76(0x150)]({'type':_0x55dd76(0x146),'content':_0x2b78a2[_0x304ac7]}),_0x304ac7++);}}}return _0x115d2e;}function computeLCS(_0x504ad3,_0x331987){const _0x45f105=a211_0x4f3b,_0x53d6b8=_0x504ad3[_0x45f105(0x14a)],_0x50e7ac=_0x331987[_0x45f105(0x14a)],_0x6962db=Array(_0x53d6b8+0x1)[_0x45f105(0x14f)](null)[_0x45f105(0x15b)](()=>Array(_0x50e7ac+0x1)['fill'](0x0));for(let _0x23f20c=0x1;_0x23f20c<=_0x53d6b8;_0x23f20c++){for(let _0x2be765=0x1;_0x2be765<=_0x50e7ac;_0x2be765++){_0x504ad3[_0x23f20c-0x1]===_0x331987[_0x2be765-0x1]?_0x6962db[_0x23f20c][_0x2be765]=_0x6962db[_0x23f20c-0x1][_0x2be765-0x1]+0x1:_0x6962db[_0x23f20c][_0x2be765]=Math[_0x45f105(0x151)](_0x6962db[_0x23f20c-0x1][_0x2be765],_0x6962db[_0x23f20c][_0x2be765-0x1]);}}const _0x515c9a=[];let _0x18839c=_0x53d6b8,_0x20ba57=_0x50e7ac;while(_0x18839c>0x0&&_0x20ba57>0x0){if(_0x504ad3[_0x18839c-0x1]===_0x331987[_0x20ba57-0x1])_0x515c9a[_0x45f105(0x13b)](_0x504ad3[_0x18839c-0x1]),_0x18839c--,_0x20ba57--;else _0x6962db[_0x18839c-0x1][_0x20ba57]>_0x6962db[_0x18839c][_0x20ba57-0x1]?_0x18839c--:_0x20ba57--;}return _0x515c9a;}export function formatDiffWithColors(_0x4d49eb,_0x5af6fc=0x3){const _0x3ad371=a211_0x4f3b,_0xa4407f=new Set();_0x4d49eb['forEach']((_0x4d39fa,_0x2293f6)=>{const _0x1c17cd=a211_0x4f3b;_0x4d39fa[_0x1c17cd(0x154)]!=='unchanged'&&_0xa4407f[_0x1c17cd(0x139)](_0x2293f6);});if(_0xa4407f[_0x3ad371(0x147)]===0x0)return'';const _0x549616=new Set();for(const _0x58648a of _0xa4407f){for(let _0x19efd8=Math['max'](0x0,_0x58648a-_0x5af6fc);_0x19efd8<=Math['min'](_0x4d49eb[_0x3ad371(0x14a)]-0x1,_0x58648a+_0x5af6fc);_0x19efd8++){_0x549616[_0x3ad371(0x139)](_0x19efd8);}}const _0x3a7080=[];let _0x37bb3d=-0x1;const _0xee9148=_0x4d49eb[_0x3ad371(0x14a)],_0x45b649=Math[_0x3ad371(0x151)](0x3,String(_0xee9148)[_0x3ad371(0x14a)]),_0x9d8afe=[];let _0x53f4f4=0x0,_0x54d46a=0x0;for(const _0x66c30d of _0x4d49eb){if(_0x66c30d[_0x3ad371(0x154)]===_0x3ad371(0x13c))_0x53f4f4++,_0x9d8afe[_0x3ad371(0x150)]({'old':_0x53f4f4,'new':0x0});else _0x66c30d[_0x3ad371(0x154)]==='added'?(_0x54d46a++,_0x9d8afe[_0x3ad371(0x150)]({'old':0x0,'new':_0x54d46a})):(_0x53f4f4++,_0x54d46a++,_0x9d8afe[_0x3ad371(0x150)]({'old':_0x53f4f4,'new':_0x54d46a}));}for(let _0x4573ec=0x0;_0x4573ec<_0x4d49eb[_0x3ad371(0x14a)];_0x4573ec++){if(!_0x549616['has'](_0x4573ec))continue;_0x37bb3d!==-0x1&&_0x4573ec>_0x37bb3d+0x1&&_0x3a7080[_0x3ad371(0x150)](a211_0x1a35be['cyan'](_0x3ad371(0x149)));_0x37bb3d=_0x4573ec;const _0x27e766=_0x4d49eb[_0x4573ec],_0x46c896=_0x9d8afe[_0x4573ec],_0x49b3d9=_0x46c896[_0x3ad371(0x144)]>0x0?String(_0x46c896['old'])[_0x3ad371(0x142)](_0x45b649):'\x20'[_0x3ad371(0x159)](_0x45b649),_0x521339=_0x46c896[_0x3ad371(0x15a)]>0x0?String(_0x46c896['new'])[_0x3ad371(0x142)](_0x45b649):'\x20'[_0x3ad371(0x159)](_0x45b649);switch(_0x27e766['type']){case _0x3ad371(0x13c):_0x3a7080[_0x3ad371(0x150)](a211_0x1a35be['red'](_0x49b3d9+'\x20'+_0x521339+_0x3ad371(0x14c)+_0x27e766[_0x3ad371(0x153)]));break;case'added':_0x3a7080['push'](a211_0x1a35be[_0x3ad371(0x13e)](_0x49b3d9+'\x20'+_0x521339+'\x20+\x20'+_0x27e766[_0x3ad371(0x153)]));break;default:_0x3a7080[_0x3ad371(0x150)](a211_0x1a35be[_0x3ad371(0x158)](_0x49b3d9+'\x20'+_0x521339+_0x3ad371(0x14b)+_0x27e766[_0x3ad371(0x153)]));break;}}return _0x3a7080[_0x3ad371(0x13d)]('\x0a');}export function hasChanges(_0x2cb52a){const _0x2ccb52=a211_0x4f3b;return _0x2cb52a[_0x2ccb52(0x138)](_0x25ed98=>_0x25ed98[_0x2ccb52(0x154)]!==_0x2ccb52(0x13f));}
1
+ (function(_0x4df483,_0x4fe36c){const _0x54d726=a212_0x482e,_0x1b9c7f=_0x4df483();while(!![]){try{const _0x50649e=-parseInt(_0x54d726(0x1f0))/0x1+-parseInt(_0x54d726(0x1f8))/0x2+-parseInt(_0x54d726(0x20c))/0x3*(parseInt(_0x54d726(0x1f1))/0x4)+parseInt(_0x54d726(0x1f9))/0x5*(parseInt(_0x54d726(0x1ed))/0x6)+parseInt(_0x54d726(0x1f2))/0x7*(parseInt(_0x54d726(0x1fc))/0x8)+-parseInt(_0x54d726(0x204))/0x9+-parseInt(_0x54d726(0x20b))/0xa*(-parseInt(_0x54d726(0x1ea))/0xb);if(_0x50649e===_0x4fe36c)break;else _0x1b9c7f['push'](_0x1b9c7f['shift']());}catch(_0x8b1c85){_0x1b9c7f['push'](_0x1b9c7f['shift']());}}}(a212_0x3ac7,0xe5851));import a212_0x4ff70d from'chalk';export function generateDiff(_0x4723f0,_0x576169){const _0x3cde87=a212_0x482e,_0x486728=_0x4723f0[_0x3cde87(0x208)]('\x0a'),_0x246990=_0x576169[_0x3cde87(0x208)]('\x0a'),_0x32a91d=[],_0x486acf=computeLCS(_0x486728,_0x246990);let _0x56c5e1=0x0,_0x3fb66d=0x0,_0x30d7c1=0x0;while(_0x56c5e1<_0x486728[_0x3cde87(0x1f4)]||_0x3fb66d<_0x246990[_0x3cde87(0x1f4)]){if(_0x30d7c1<_0x486acf[_0x3cde87(0x1f4)]&&_0x56c5e1<_0x486728['length']&&_0x486728[_0x56c5e1]===_0x486acf[_0x30d7c1])_0x3fb66d<_0x246990[_0x3cde87(0x1f4)]&&_0x246990[_0x3fb66d]===_0x486acf[_0x30d7c1]?(_0x32a91d[_0x3cde87(0x1f7)]({'type':_0x3cde87(0x1fe),'content':_0x486728[_0x56c5e1]}),_0x56c5e1++,_0x3fb66d++,_0x30d7c1++):(_0x32a91d[_0x3cde87(0x1f7)]({'type':_0x3cde87(0x1e9),'content':_0x246990[_0x3fb66d]}),_0x3fb66d++);else{if(_0x30d7c1<_0x486acf[_0x3cde87(0x1f4)]&&_0x3fb66d<_0x246990[_0x3cde87(0x1f4)]&&_0x246990[_0x3fb66d]===_0x486acf[_0x30d7c1])_0x32a91d[_0x3cde87(0x1f7)]({'type':_0x3cde87(0x203),'content':_0x486728[_0x56c5e1]}),_0x56c5e1++;else{if(_0x56c5e1<_0x486728[_0x3cde87(0x1f4)]&&(_0x30d7c1>=_0x486acf[_0x3cde87(0x1f4)]||_0x486728[_0x56c5e1]!==_0x486acf[_0x30d7c1]))_0x32a91d[_0x3cde87(0x1f7)]({'type':_0x3cde87(0x203),'content':_0x486728[_0x56c5e1]}),_0x56c5e1++;else _0x3fb66d<_0x246990[_0x3cde87(0x1f4)]&&(_0x32a91d[_0x3cde87(0x1f7)]({'type':_0x3cde87(0x1e9),'content':_0x246990[_0x3fb66d]}),_0x3fb66d++);}}}return _0x32a91d;}function computeLCS(_0x226e23,_0x104662){const _0x3b0c82=a212_0x482e,_0x117475=_0x226e23[_0x3b0c82(0x1f4)],_0xea1913=_0x104662[_0x3b0c82(0x1f4)],_0x119f87=Array(_0x117475+0x1)['fill'](null)[_0x3b0c82(0x1f3)](()=>Array(_0xea1913+0x1)[_0x3b0c82(0x202)](0x0));for(let _0xf960bb=0x1;_0xf960bb<=_0x117475;_0xf960bb++){for(let _0x36d24f=0x1;_0x36d24f<=_0xea1913;_0x36d24f++){_0x226e23[_0xf960bb-0x1]===_0x104662[_0x36d24f-0x1]?_0x119f87[_0xf960bb][_0x36d24f]=_0x119f87[_0xf960bb-0x1][_0x36d24f-0x1]+0x1:_0x119f87[_0xf960bb][_0x36d24f]=Math[_0x3b0c82(0x1ec)](_0x119f87[_0xf960bb-0x1][_0x36d24f],_0x119f87[_0xf960bb][_0x36d24f-0x1]);}}const _0x4fe8f7=[];let _0x59d9d1=_0x117475,_0x4d4cc5=_0xea1913;while(_0x59d9d1>0x0&&_0x4d4cc5>0x0){if(_0x226e23[_0x59d9d1-0x1]===_0x104662[_0x4d4cc5-0x1])_0x4fe8f7[_0x3b0c82(0x207)](_0x226e23[_0x59d9d1-0x1]),_0x59d9d1--,_0x4d4cc5--;else _0x119f87[_0x59d9d1-0x1][_0x4d4cc5]>_0x119f87[_0x59d9d1][_0x4d4cc5-0x1]?_0x59d9d1--:_0x4d4cc5--;}return _0x4fe8f7;}export function formatDiffWithColors(_0x5547b3,_0x4398ba=0x3){const _0x319902=a212_0x482e,_0x2c5361=new Set();_0x5547b3[_0x319902(0x1f6)]((_0x138e7b,_0xf71276)=>{const _0x163323=_0x319902;_0x138e7b[_0x163323(0x1fd)]!=='unchanged'&&_0x2c5361['add'](_0xf71276);});if(_0x2c5361['size']===0x0)return'';const _0xfd7fd5=new Set();for(const _0x3f2405 of _0x2c5361){for(let _0x42bf26=Math['max'](0x0,_0x3f2405-_0x4398ba);_0x42bf26<=Math[_0x319902(0x209)](_0x5547b3[_0x319902(0x1f4)]-0x1,_0x3f2405+_0x4398ba);_0x42bf26++){_0xfd7fd5[_0x319902(0x206)](_0x42bf26);}}const _0x3cf6ec=[];let _0x4dee0b=-0x1;const _0x437526=_0x5547b3[_0x319902(0x1f4)],_0x5c40bc=Math[_0x319902(0x1ec)](0x3,String(_0x437526)[_0x319902(0x1f4)]),_0x2909f0=[];let _0x332d0=0x0,_0x1073bb=0x0;for(const _0x3466f6 of _0x5547b3){if(_0x3466f6[_0x319902(0x1fd)]==='removed')_0x332d0++,_0x2909f0[_0x319902(0x1f7)]({'old':_0x332d0,'new':0x0});else _0x3466f6['type']===_0x319902(0x1e9)?(_0x1073bb++,_0x2909f0[_0x319902(0x1f7)]({'old':0x0,'new':_0x1073bb})):(_0x332d0++,_0x1073bb++,_0x2909f0['push']({'old':_0x332d0,'new':_0x1073bb}));}for(let _0x13178d=0x0;_0x13178d<_0x5547b3[_0x319902(0x1f4)];_0x13178d++){if(!_0xfd7fd5[_0x319902(0x1ef)](_0x13178d))continue;_0x4dee0b!==-0x1&&_0x13178d>_0x4dee0b+0x1&&_0x3cf6ec[_0x319902(0x1f7)](a212_0x4ff70d['cyan'](_0x319902(0x1f5)));_0x4dee0b=_0x13178d;const _0x298db9=_0x5547b3[_0x13178d],_0x4c7b76=_0x2909f0[_0x13178d],_0x1c6329=_0x4c7b76[_0x319902(0x1eb)]>0x0?String(_0x4c7b76['old'])[_0x319902(0x200)](_0x5c40bc):'\x20'['repeat'](_0x5c40bc),_0x5a381f=_0x4c7b76[_0x319902(0x201)]>0x0?String(_0x4c7b76[_0x319902(0x201)])[_0x319902(0x200)](_0x5c40bc):'\x20'['repeat'](_0x5c40bc);switch(_0x298db9[_0x319902(0x1fd)]){case'removed':_0x3cf6ec[_0x319902(0x1f7)](a212_0x4ff70d[_0x319902(0x1ee)](_0x1c6329+'\x20'+_0x5a381f+_0x319902(0x20a)+_0x298db9['content']));break;case _0x319902(0x1e9):_0x3cf6ec[_0x319902(0x1f7)](a212_0x4ff70d[_0x319902(0x1ff)](_0x1c6329+'\x20'+_0x5a381f+_0x319902(0x1fa)+_0x298db9['content']));break;default:_0x3cf6ec['push'](a212_0x4ff70d[_0x319902(0x205)](_0x1c6329+'\x20'+_0x5a381f+'\x20\x20\x20'+_0x298db9['content']));break;}}return _0x3cf6ec[_0x319902(0x1fb)]('\x0a');}function a212_0x482e(_0x1f605a,_0x3ae1e2){_0x1f605a=_0x1f605a-0x1e9;const _0x3ac744=a212_0x3ac7();let _0x482e59=_0x3ac744[_0x1f605a];return _0x482e59;}export function hasChanges(_0x55a1a1){return _0x55a1a1['some'](_0x134985=>_0x134985['type']!=='unchanged');}function a212_0x3ac7(){const _0x2ecfb8=['new','fill','removed','12554451ZBHbNI','dim','add','unshift','split','min','\x20-\x20','820ANdUpK','1088295SnwwNA','added','477796NgoXCH','old','max','583326xceIZs','red','has','1322489sTkRxP','16UBSotK','4739iwcKdB','map','length','\x20\x20...','forEach','push','859734HXogRk','15jQJGhN','\x20+\x20','join','19912DZKXbF','type','unchanged','green','padStart'];a212_0x3ac7=function(){return _0x2ecfb8;};return a212_0x3ac7();}
@@ -1 +1 @@
1
- (function(_0x24d23d,_0x527eb0){const _0x1b3d68=a212_0x790e,_0x3688e5=_0x24d23d();while(!![]){try{const _0x37d224=parseInt(_0x1b3d68(0x1d8))/0x1*(-parseInt(_0x1b3d68(0x1e3))/0x2)+parseInt(_0x1b3d68(0x1e2))/0x3*(parseInt(_0x1b3d68(0x1e6))/0x4)+-parseInt(_0x1b3d68(0x1db))/0x5+parseInt(_0x1b3d68(0x1d6))/0x6*(-parseInt(_0x1b3d68(0x1e5))/0x7)+-parseInt(_0x1b3d68(0x1e4))/0x8*(-parseInt(_0x1b3d68(0x1d1))/0x9)+-parseInt(_0x1b3d68(0x1df))/0xa*(parseInt(_0x1b3d68(0x1d9))/0xb)+-parseInt(_0x1b3d68(0x1de))/0xc*(-parseInt(_0x1b3d68(0x1cf))/0xd);if(_0x37d224===_0x527eb0)break;else _0x3688e5['push'](_0x3688e5['shift']());}catch(_0x378781){_0x3688e5['push'](_0x3688e5['shift']());}}}(a212_0x56b8,0x8aef4));import*as a212_0x1ae2ac from'node:fs';function a212_0x790e(_0x3fe190,_0x41ad4c){_0x3fe190=_0x3fe190-0x1cf;const _0x56b810=a212_0x56b8();let _0x790ef8=_0x56b810[_0x3fe190];return _0x790ef8;}import*as a212_0x2043ab from'node:path';export function setSecureFilePermissions(_0x195a0d){const _0x16c201=a212_0x790e;try{a212_0x1ae2ac[_0x16c201(0x1d2)](_0x195a0d,0x180);}catch{console[_0x16c201(0x1d7)](_0x16c201(0x1d4)+_0x195a0d);}}function a212_0x56b8(){const _0x4dd1ad=['Warning:\x20','4642505IxLwgH','mkdirSync','mode','29292rfPmUk','81850aMHeYI','statSync','\x20has\x20insecure\x20permissions\x20(','9831EFuuoY','322314TtKZpQ','89312hqhpVu','7qJtXBT','428jbzlvQ',').\x20','12961wbvQOx','Should\x20be\x200600\x20or\x20more\x20restrictive.','639cZtpQs','chmodSync','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','5075946GBautD','warn','1wiIVbw','1441jliMzo'];a212_0x56b8=function(){return _0x4dd1ad;};return a212_0x56b8();}export function setSecureDirectoryPermissions(_0x43b752){const _0x379bfb=a212_0x790e;try{a212_0x1ae2ac['chmodSync'](_0x43b752,0x1c0);}catch{console[_0x379bfb(0x1d7)](_0x379bfb(0x1d4)+_0x43b752);}}export function createSecureDirectory(_0x1916e5){const _0x75f8e9=a212_0x790e;!a212_0x1ae2ac['existsSync'](_0x1916e5)&&(a212_0x1ae2ac[_0x75f8e9(0x1dc)](_0x1916e5,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1916e5));}export function validateSecureFilePermissions(_0x15be59){const _0x10df36=a212_0x790e;try{const _0x2f8ca9=a212_0x1ae2ac[_0x10df36(0x1e0)](_0x15be59),_0x2b4ba7=_0x2f8ca9[_0x10df36(0x1dd)]&0x1ff,_0x2913ad=(_0x2b4ba7&0x3f)!==0x0;if(_0x2913ad)return console[_0x10df36(0x1d7)](_0x10df36(0x1da)+_0x15be59+_0x10df36(0x1e1)+_0x2b4ba7[_0x10df36(0x1d3)](0x8)+_0x10df36(0x1e7)+_0x10df36(0x1d0)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x33c34b,_0x3f587b){const _0x19b681=a212_0x790e,_0x29f0f8=a212_0x2043ab[_0x19b681(0x1d5)](_0x33c34b);createSecureDirectory(_0x29f0f8),a212_0x1ae2ac['writeFileSync'](_0x33c34b,_0x3f587b,{'mode':0x180}),setSecureFilePermissions(_0x33c34b);}
1
+ (function(_0x2050fe,_0x24be11){const _0x2f9faf=a213_0x4685,_0x3cfe47=_0x2050fe();while(!![]){try{const _0x269a16=parseInt(_0x2f9faf(0x1f0))/0x1+-parseInt(_0x2f9faf(0x1f3))/0x2+-parseInt(_0x2f9faf(0x1e2))/0x3+-parseInt(_0x2f9faf(0x1f1))/0x4*(parseInt(_0x2f9faf(0x1f4))/0x5)+-parseInt(_0x2f9faf(0x1e5))/0x6*(parseInt(_0x2f9faf(0x1e7))/0x7)+-parseInt(_0x2f9faf(0x1f2))/0x8+parseInt(_0x2f9faf(0x1e3))/0x9*(parseInt(_0x2f9faf(0x1e9))/0xa);if(_0x269a16===_0x24be11)break;else _0x3cfe47['push'](_0x3cfe47['shift']());}catch(_0x14867f){_0x3cfe47['push'](_0x3cfe47['shift']());}}}(a213_0x1d06,0x9942e));import*as a213_0x41b25c from'node:fs';import*as a213_0x2f0bdd from'node:path';function a213_0x1d06(){const _0x2ce9c3=['Should\x20be\x200600\x20or\x20more\x20restrictive.','chmodSync','writeFileSync','\x20has\x20insecure\x20permissions\x20(','1724628IOSCYl','369YnwksM','Warning:\x20','6ANrCgB','warn','3934189fdhWvM','dirname','780070UzhqpX','toString',').\x20','existsSync','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mode','888659OQZWOj','453748wAlOnt','9695800hiYDZF','1766872IuGEHz','10ArswCV','statSync'];a213_0x1d06=function(){return _0x2ce9c3;};return a213_0x1d06();}export function setSecureFilePermissions(_0x1c4164){const _0x37bb50=a213_0x4685;try{a213_0x41b25c[_0x37bb50(0x1f7)](_0x1c4164,0x180);}catch{console[_0x37bb50(0x1e6)](_0x37bb50(0x1ee)+_0x1c4164);}}export function setSecureDirectoryPermissions(_0x4a645f){const _0xfd207e=a213_0x4685;try{a213_0x41b25c['chmodSync'](_0x4a645f,0x1c0);}catch{console[_0xfd207e(0x1e6)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4a645f);}}function a213_0x4685(_0x46afce,_0x3ac06a){_0x46afce=_0x46afce-0x1e2;const _0x1d0674=a213_0x1d06();let _0x468555=_0x1d0674[_0x46afce];return _0x468555;}export function createSecureDirectory(_0x503134){const _0x3fcb06=a213_0x4685;!a213_0x41b25c[_0x3fcb06(0x1ec)](_0x503134)&&(a213_0x41b25c[_0x3fcb06(0x1ed)](_0x503134,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x503134));}export function validateSecureFilePermissions(_0x4c9a32){const _0x5229d1=a213_0x4685;try{const _0x355e98=a213_0x41b25c[_0x5229d1(0x1f5)](_0x4c9a32),_0x18d30f=_0x355e98[_0x5229d1(0x1ef)]&0x1ff,_0xcff1c2=(_0x18d30f&0x3f)!==0x0;if(_0xcff1c2)return console[_0x5229d1(0x1e6)](_0x5229d1(0x1e4)+_0x4c9a32+_0x5229d1(0x1f9)+_0x18d30f[_0x5229d1(0x1ea)](0x8)+_0x5229d1(0x1eb)+_0x5229d1(0x1f6)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x18246b,_0x52631c){const _0x407278=a213_0x4685,_0x2dbc8e=a213_0x2f0bdd[_0x407278(0x1e8)](_0x18246b);createSecureDirectory(_0x2dbc8e),a213_0x41b25c[_0x407278(0x1f8)](_0x18246b,_0x52631c,{'mode':0x180}),setSecureFilePermissions(_0x18246b);}
@@ -1 +1 @@
1
- (function(_0x5307c5,_0x579e44){const _0x4a50a2=a213_0x130b,_0xee9105=_0x5307c5();while(!![]){try{const _0x17d1e3=-parseInt(_0x4a50a2(0x1dc))/0x1+-parseInt(_0x4a50a2(0x1dd))/0x2+-parseInt(_0x4a50a2(0x1e4))/0x3+parseInt(_0x4a50a2(0x1e2))/0x4+parseInt(_0x4a50a2(0x1e1))/0x5*(parseInt(_0x4a50a2(0x1d5))/0x6)+parseInt(_0x4a50a2(0x1d8))/0x7*(-parseInt(_0x4a50a2(0x1d7))/0x8)+-parseInt(_0x4a50a2(0x1e0))/0x9*(-parseInt(_0x4a50a2(0x1d2))/0xa);if(_0x17d1e3===_0x579e44)break;else _0xee9105['push'](_0xee9105['shift']());}catch(_0x48d68f){_0xee9105['push'](_0xee9105['shift']());}}}(a213_0x5f1d,0x358b6));function a213_0x130b(_0xe8b4b5,_0x4a0f20){_0xe8b4b5=_0xe8b4b5-0x1d2;const _0x5f1dc8=a213_0x5f1d();let _0x130bf7=_0x5f1dc8[_0xe8b4b5];return _0x130bf7;}import{readFileSync}from'fs';function a213_0x5f1d(){const _0x7521e7=['PERMISSION_DENIED','Error\x20reading\x20file\x20\x27','678036LbNydP','Permission\x20denied\x20reading\x20file\x20\x27','424DStHTC','15722icMLBx','INTERNAL','ENOENT','EACCES','125461TYyTDd','446912FCYULl','\x27\x20not\x20found','message','97659JHGNJR','5WxsGSN','710428QCGXBA','NOT_FOUND','209799iyzYTq','utf-8','430qNzRwJ'];a213_0x5f1d=function(){return _0x7521e7;};return a213_0x5f1d();}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x35ff29){const _0x506c43=a213_0x130b;try{return readFileSync(_0x35ff29,_0x506c43(0x1e5));}catch(_0x25a318){const _0x4ff4c3=_0x25a318['code'];if(_0x4ff4c3===_0x506c43(0x1da))throw new SDKError(ErrorCode[_0x506c43(0x1e3)],'File\x20\x27'+_0x35ff29+_0x506c43(0x1de),_0x25a318);else{if(_0x4ff4c3===_0x506c43(0x1db))throw new SDKError(ErrorCode[_0x506c43(0x1d3)],_0x506c43(0x1d6)+_0x35ff29+'\x27',_0x25a318);else throw new SDKError(ErrorCode[_0x506c43(0x1d9)],_0x506c43(0x1d4)+_0x35ff29+'\x27:\x20'+_0x25a318[_0x506c43(0x1df)],_0x25a318);}}}
1
+ (function(_0x4375e4,_0x1d0fa6){const _0x1ed394=a214_0x2483,_0x2ad07c=_0x4375e4();while(!![]){try{const _0x7057be=parseInt(_0x1ed394(0x16d))/0x1*(parseInt(_0x1ed394(0x169))/0x2)+-parseInt(_0x1ed394(0x176))/0x3*(parseInt(_0x1ed394(0x170))/0x4)+parseInt(_0x1ed394(0x172))/0x5+-parseInt(_0x1ed394(0x16e))/0x6*(-parseInt(_0x1ed394(0x166))/0x7)+parseInt(_0x1ed394(0x16a))/0x8*(parseInt(_0x1ed394(0x175))/0x9)+-parseInt(_0x1ed394(0x167))/0xa+-parseInt(_0x1ed394(0x168))/0xb*(-parseInt(_0x1ed394(0x16f))/0xc);if(_0x7057be===_0x1d0fa6)break;else _0x2ad07c['push'](_0x2ad07c['shift']());}catch(_0x6338fb){_0x2ad07c['push'](_0x2ad07c['shift']());}}}(a214_0xe6e4,0x9720b));function a214_0x2483(_0x94e2f4,_0x49d7ee){_0x94e2f4=_0x94e2f4-0x165;const _0xe6e4a=a214_0xe6e4();let _0x24832c=_0xe6e4a[_0x94e2f4];return _0x24832c;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a214_0xe6e4(){const _0x59392a=['5105112tMWKiW','372DiFULl','EACCES','4211705HGNmjs','utf-8','\x27:\x20','63FjTOId','25299oJOClF','ENOENT','code','PERMISSION_DENIED','INTERNAL','Error\x20reading\x20file\x20\x27','NOT_FOUND','21JrjAuL','12350090cBLbvX','11ELPpbh','133376bpAFrM','797576SpzdmA','message','\x27\x20not\x20found','6XRLrel','545046DjGPcm'];a214_0xe6e4=function(){return _0x59392a;};return a214_0xe6e4();}export function readFileContent(_0x307b9f){const _0x14c31e=a214_0x2483;try{return readFileSync(_0x307b9f,_0x14c31e(0x173));}catch(_0x40d781){const _0x47d3be=_0x40d781[_0x14c31e(0x178)];if(_0x47d3be===_0x14c31e(0x177))throw new SDKError(ErrorCode[_0x14c31e(0x165)],'File\x20\x27'+_0x307b9f+_0x14c31e(0x16c),_0x40d781);else{if(_0x47d3be===_0x14c31e(0x171))throw new SDKError(ErrorCode[_0x14c31e(0x179)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x307b9f+'\x27',_0x40d781);else throw new SDKError(ErrorCode[_0x14c31e(0x17a)],_0x14c31e(0x17b)+_0x307b9f+_0x14c31e(0x174)+_0x40d781[_0x14c31e(0x16b)],_0x40d781);}}}
@@ -1 +1 @@
1
- (function(_0xdae77a,_0x48d671){const _0x185de4=a214_0x2bc5,_0x446510=_0xdae77a();while(!![]){try{const _0x2ac2bf=-parseInt(_0x185de4(0x1df))/0x1*(-parseInt(_0x185de4(0x1e0))/0x2)+parseInt(_0x185de4(0x1d4))/0x3*(-parseInt(_0x185de4(0x1eb))/0x4)+parseInt(_0x185de4(0x1d0))/0x5+parseInt(_0x185de4(0x1d6))/0x6+-parseInt(_0x185de4(0x1d5))/0x7+-parseInt(_0x185de4(0x1cd))/0x8*(-parseInt(_0x185de4(0x1ec))/0x9)+parseInt(_0x185de4(0x1d9))/0xa*(parseInt(_0x185de4(0x1e4))/0xb);if(_0x2ac2bf===_0x48d671)break;else _0x446510['push'](_0x446510['shift']());}catch(_0x12a0fb){_0x446510['push'](_0x446510['shift']());}}}(a214_0x34ca,0x88537));function a214_0x34ca(){const _0x147ecf=['7385560oMgWKG','3786066gkYiCj','now','data','441170aymHMb','destroy','toString','end','slice','statusCode','159043zpmIdw','4hnQZtT','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','/releases?per_page=20','tag_name','22bpHPOp','get','set','api.github.com','fetchedAt','GitHub\x20API\x20returned\x20','application/vnd.github+json','3006788sjFKLf','846nCbuHU','/repos/','34280RlDjGz','find','error','4625235ZFkMgE','resolve','timeout','parse','3pSylCh'];a214_0x34ca=function(){return _0x147ecf;};return a214_0x34ca();}import*as a214_0x4a8b3e from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x2bc5(_0x893683,_0x191ffe){_0x893683=_0x893683-0x1cc;const _0x34cada=a214_0x34ca();let _0x2bc507=_0x34cada[_0x893683];return _0x2bc507;}export function fetchGitHubReleases(_0x119941,_0x3087d2,_0x551883){const _0x6445b4=a214_0x2bc5,_0x380f70=_0x119941+'/'+_0x3087d2,_0xf8ec26=cache[_0x6445b4(0x1e5)](_0x380f70);if(_0xf8ec26&&Date['now']()-_0xf8ec26[_0x6445b4(0x1e8)]<CACHE_TTL_MS)return Promise[_0x6445b4(0x1d1)](_0xf8ec26['releases']);return new Promise((_0x408ae9,_0x3d6ea6)=>{const _0x3a984b=_0x6445b4,_0x1c8814={'hostname':_0x3a984b(0x1e7),'path':_0x3a984b(0x1cc)+_0x119941+'/'+_0x3087d2+_0x3a984b(0x1e2),'headers':{'User-Agent':_0x551883,'Accept':_0x3a984b(0x1ea)},'timeout':REQUEST_TIMEOUT_MS},_0x490d1d=a214_0x4a8b3e[_0x3a984b(0x1e5)](_0x1c8814,_0x3183a5=>{const _0x2ac543=_0x3a984b;let _0x5cc36a='';_0x3183a5['on'](_0x2ac543(0x1d8),_0x5e5109=>{const _0x1a1973=_0x2ac543;_0x5cc36a+=_0x5e5109[_0x1a1973(0x1db)]();}),_0x3183a5['on'](_0x2ac543(0x1dc),()=>{const _0x1960e7=_0x2ac543;if(_0x3183a5[_0x1960e7(0x1de)]!==0xc8){_0x3d6ea6(new Error(_0x1960e7(0x1e9)+_0x3183a5[_0x1960e7(0x1de)]+':\x20'+_0x5cc36a[_0x1960e7(0x1dd)](0x0,0xc8)));return;}try{const _0x5a7168=JSON[_0x1960e7(0x1d3)](_0x5cc36a);cache[_0x1960e7(0x1e6)](_0x380f70,{'releases':_0x5a7168,'fetchedAt':Date[_0x1960e7(0x1d7)]()}),_0x408ae9(_0x5a7168);}catch(_0x3a94c2){_0x3d6ea6(_0x3a94c2);}});});_0x490d1d['on'](_0x3a984b(0x1d2),()=>{const _0x2ee3aa=_0x3a984b;_0x490d1d[_0x2ee3aa(0x1da)](),_0x3d6ea6(new Error(_0x2ee3aa(0x1e1)+REQUEST_TIMEOUT_MS+'ms'));}),_0x490d1d['on'](_0x3a984b(0x1cf),_0x3d6ea6);});}export async function resolveReleaseTag(_0x4d2d96,_0xadc443,_0x4e3be4,_0x54e21e){const _0x1f04ea=a214_0x2bc5;if(_0x4d2d96==='next')return null;const _0x57dd43=await fetchGitHubReleases(_0xadc443,_0x4e3be4,_0x54e21e);if(_0x57dd43['length']===0x0)return null;const _0x369945=_0x57dd43[_0x1f04ea(0x1ce)](_0x429295=>!_0x429295['prerelease']);return _0x369945?_0x369945[_0x1f04ea(0x1e3)]:null;}
1
+ (function(_0x178946,_0x350384){const _0xe95f89=a215_0x28ec,_0x513ffe=_0x178946();while(!![]){try{const _0x3df1ce=parseInt(_0xe95f89(0x179))/0x1+parseInt(_0xe95f89(0x18d))/0x2*(parseInt(_0xe95f89(0x186))/0x3)+parseInt(_0xe95f89(0x18c))/0x4+parseInt(_0xe95f89(0x189))/0x5*(parseInt(_0xe95f89(0x180))/0x6)+-parseInt(_0xe95f89(0x17d))/0x7*(parseInt(_0xe95f89(0x183))/0x8)+parseInt(_0xe95f89(0x17c))/0x9+-parseInt(_0xe95f89(0x182))/0xa;if(_0x3df1ce===_0x350384)break;else _0x513ffe['push'](_0x513ffe['shift']());}catch(_0x117fda){_0x513ffe['push'](_0x513ffe['shift']());}}}(a215_0x20d0,0x9262c));import*as a215_0x55b786 from'node:https';function a215_0x28ec(_0x2000ed,_0x43b2f0){_0x2000ed=_0x2000ed-0x175;const _0x20d061=a215_0x20d0();let _0x28ec14=_0x20d061[_0x2000ed];return _0x28ec14;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2cfb14,_0x39348f,_0x3b3386){const _0x667a5=a215_0x28ec,_0x292675=_0x2cfb14+'/'+_0x39348f,_0x24b79b=cache['get'](_0x292675);if(_0x24b79b&&Date[_0x667a5(0x17a)]()-_0x24b79b[_0x667a5(0x18e)]<CACHE_TTL_MS)return Promise[_0x667a5(0x176)](_0x24b79b[_0x667a5(0x191)]);return new Promise((_0x36218f,_0x3d71f1)=>{const _0x19d24a=_0x667a5,_0x252521={'hostname':_0x19d24a(0x181),'path':_0x19d24a(0x185)+_0x2cfb14+'/'+_0x39348f+'/releases?per_page=20','headers':{'User-Agent':_0x3b3386,'Accept':_0x19d24a(0x17b)},'timeout':REQUEST_TIMEOUT_MS},_0x8f9da9=a215_0x55b786['get'](_0x252521,_0x1ce36b=>{const _0x39d366=_0x19d24a;let _0x569bcf='';_0x1ce36b['on'](_0x39d366(0x175),_0x283b58=>{const _0x316319=_0x39d366;_0x569bcf+=_0x283b58[_0x316319(0x18b)]();}),_0x1ce36b['on'](_0x39d366(0x17f),()=>{const _0x100ecf=_0x39d366;if(_0x1ce36b['statusCode']!==0xc8){_0x3d71f1(new Error(_0x100ecf(0x177)+_0x1ce36b[_0x100ecf(0x188)]+':\x20'+_0x569bcf[_0x100ecf(0x187)](0x0,0xc8)));return;}try{const _0x12bd9e=JSON[_0x100ecf(0x17e)](_0x569bcf);cache['set'](_0x292675,{'releases':_0x12bd9e,'fetchedAt':Date[_0x100ecf(0x17a)]()}),_0x36218f(_0x12bd9e);}catch(_0x1da21a){_0x3d71f1(_0x1da21a);}});});_0x8f9da9['on']('timeout',()=>{const _0x44ce24=_0x19d24a;_0x8f9da9[_0x44ce24(0x18f)](),_0x3d71f1(new Error(_0x44ce24(0x192)+REQUEST_TIMEOUT_MS+'ms'));}),_0x8f9da9['on']('error',_0x3d71f1);});}export async function resolveReleaseTag(_0x58ee3d,_0x3f0b82,_0x469460,_0x96c193){const _0x41c1b2=a215_0x28ec;if(_0x58ee3d===_0x41c1b2(0x190))return null;const _0xae487c=await fetchGitHubReleases(_0x3f0b82,_0x469460,_0x96c193);if(_0xae487c[_0x41c1b2(0x18a)]===0x0)return null;const _0x620694=_0xae487c[_0x41c1b2(0x178)](_0x43c13d=>!_0x43c13d[_0x41c1b2(0x184)]);return _0x620694?_0x620694[_0x41c1b2(0x193)]:null;}function a215_0x20d0(){const _0x553b9a=['495381RPUrjK','slice','statusCode','210HBVjIK','length','toString','2663700rxWchK','2PYOzCN','fetchedAt','destroy','next','releases','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','tag_name','data','resolve','GitHub\x20API\x20returned\x20','find','941098KYQisB','now','application/vnd.github+json','9587034RROnTd','210tPvkOa','parse','end','105366sOymIP','api.github.com','23182820mWdEDt','175216ztkCFd','prerelease','/repos/'];a215_0x20d0=function(){return _0x553b9a;};return a215_0x20d0();}
@@ -1 +1 @@
1
- (function(_0x25e4e1,_0x2ad52d){const _0x537ae1=a215_0x5132,_0x327537=_0x25e4e1();while(!![]){try{const _0x373d63=-parseInt(_0x537ae1(0x1d9))/0x1*(-parseInt(_0x537ae1(0x1da))/0x2)+parseInt(_0x537ae1(0x1d2))/0x3*(-parseInt(_0x537ae1(0x1d8))/0x4)+-parseInt(_0x537ae1(0x1e7))/0x5+parseInt(_0x537ae1(0x1db))/0x6*(parseInt(_0x537ae1(0x1dc))/0x7)+parseInt(_0x537ae1(0x1e5))/0x8*(-parseInt(_0x537ae1(0x1e2))/0x9)+parseInt(_0x537ae1(0x1d3))/0xa*(parseInt(_0x537ae1(0x1d7))/0xb)+parseInt(_0x537ae1(0x1d4))/0xc*(parseInt(_0x537ae1(0x1e1))/0xd);if(_0x373d63===_0x2ad52d)break;else _0x327537['push'](_0x327537['shift']());}catch(_0x373f05){_0x327537['push'](_0x327537['shift']());}}}(a215_0x4136,0x5fd22));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x3d28ce=a215_0x5132;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x3d28ce(0x1d5));}const registry=new Map();function a215_0x5132(_0x4e1905,_0xf9819c){_0x4e1905=_0x4e1905-0x1d1;const _0x4136c9=a215_0x4136();let _0x5132eb=_0x4136c9[_0x4e1905];return _0x5132eb;}export function registerGlobalCacheKey(_0x3f58ed,_0x3faf46){const _0x48efe1=a215_0x5132,_0x55945c=registry[_0x48efe1(0x1e6)](_0x3f58ed);if(_0x55945c&&_0x55945c!==_0x3faf46)throw new Error(_0x48efe1(0x1de)+_0x3f58ed+'\x22\x20already\x20registered\x20by\x20\x22'+_0x55945c+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x3faf46+'\x22');registry[_0x48efe1(0x1e0)](_0x3f58ed,_0x3faf46);}export function getGlobalCachePath(_0x4fdf1d){return join(getGlobalCacheDir(),_0x4fdf1d);}function ensureGlobalCacheDir(){const _0x225698=getGlobalCacheDir();!existsSync(_0x225698)&&mkdirSync(_0x225698,{'recursive':!![]});}function readCacheJson(_0x4f94c5){const _0x4a0e04=a215_0x5132,_0x53644f=getGlobalCachePath(_0x4f94c5);if(!existsSync(_0x53644f))return undefined;try{const _0xf26ea1=readFileSync(_0x53644f,_0x4a0e04(0x1e4));return JSON[_0x4a0e04(0x1d1)](_0xf26ea1);}catch{return undefined;}}function writeCacheJson(_0xbebfd2,_0x469299){const _0xb57bf8=a215_0x5132;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xbebfd2),JSON[_0xb57bf8(0x1e3)](_0x469299,null,0x2),_0xb57bf8(0x1e4));}function readCacheText(_0x6c86e2){const _0x211d4d=a215_0x5132,_0x4b7909=getGlobalCachePath(_0x6c86e2);if(!existsSync(_0x4b7909))return undefined;try{return readFileSync(_0x4b7909,_0x211d4d(0x1e4));}catch{return undefined;}}function writeCacheText(_0xf410a7,_0x3a9a7e){const _0x5566a1=a215_0x5132;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xf410a7),_0x3a9a7e,_0x5566a1(0x1e4));}function clearCache(_0x2ef2dd){const _0x36d6d0=getGlobalCachePath(_0x2ef2dd);if(existsSync(_0x36d6d0))try{unlinkSync(_0x36d6d0);}catch{}}function a215_0x4136(){const _0x1a4c72=['1353FxvZib','4HUuYsC','5xWUKQS','273082znFEMs','202566OcLIZf','35LcSVKp','replace','Global\x20cache\x20key\x20\x22','clear','set','1781XYktRY','443619lOjrJN','stringify','utf-8','24HDUyXZ','get','2735075RyOYZY','parse','104535kosvgD','13020tDjHRM','9684pKFEfA','tdx','default'];a215_0x4136=function(){return _0x1a4c72;};return a215_0x4136();}function cacheExists(_0x4cf962){return existsSync(getGlobalCachePath(_0x4cf962));}export function createGlobalCache(_0x1ec563,_0x5eea8d){return registerGlobalCacheKey(_0x1ec563,_0x5eea8d),{'read':()=>readCacheJson(_0x1ec563),'write':_0x2e8433=>writeCacheJson(_0x1ec563,_0x2e8433),'clear':()=>clearCache(_0x1ec563),'exists':()=>cacheExists(_0x1ec563),'path':()=>getGlobalCachePath(_0x1ec563)};}export function createGlobalTextCache(_0x3135c9,_0x276bac){return registerGlobalCacheKey(_0x3135c9,_0x276bac),{'read':()=>readCacheText(_0x3135c9)?.['trim']()||undefined,'write':_0x270002=>writeCacheText(_0x3135c9,_0x270002),'clear':()=>clearCache(_0x3135c9),'exists':()=>cacheExists(_0x3135c9),'path':()=>getGlobalCachePath(_0x3135c9)};}export function createProfileCache(_0x8d34cd,_0x2f90f1){const _0x2ae27f=_0x36d6d=>{const _0x3d1b11=a215_0x5132,_0x3d2cb8=_0x36d6d||_0x3d1b11(0x1d6);return _0x8d34cd[_0x3d1b11(0x1dd)]('{profile}',_0x3d2cb8);};return{'read':_0x209d13=>{const _0x5a1c7b=_0x2ae27f(_0x209d13);return registerGlobalCacheKey(_0x5a1c7b,_0x2f90f1),readCacheJson(_0x5a1c7b);},'write':(_0x5c1412,_0x34e6f9)=>{const _0x4e07c1=_0x2ae27f(_0x5c1412);registerGlobalCacheKey(_0x4e07c1,_0x2f90f1),writeCacheJson(_0x4e07c1,_0x34e6f9);},'clear':_0x511935=>{const _0x2e9a31=_0x2ae27f(_0x511935);clearCache(_0x2e9a31);},'exists':_0x377030=>{const _0x19d418=_0x2ae27f(_0x377030);return cacheExists(_0x19d418);},'path':_0x15d745=>{const _0x2f8eb1=_0x2ae27f(_0x15d745);return getGlobalCachePath(_0x2f8eb1);}};}export function createOptionalProfileCache(_0x2854db,_0x4d863a,_0x40b4f5={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x40b4f5,_0x3eff4c=_0x2eb74a=>{return _0x2eb74a?''+_0x2854db+profileSeparator+_0x2eb74a+suffix:''+_0x2854db+suffix;};return{'read':_0x46867d=>{const _0x27a2cf=_0x3eff4c(_0x46867d);return registerGlobalCacheKey(_0x27a2cf,_0x4d863a),readCacheJson(_0x27a2cf);},'write':(_0x3f4802,_0x2fefd6)=>{const _0x29153f=_0x3eff4c(_0x2fefd6);registerGlobalCacheKey(_0x29153f,_0x4d863a),writeCacheJson(_0x29153f,_0x3f4802);},'clear':_0x499e26=>{const _0x33f804=_0x3eff4c(_0x499e26);clearCache(_0x33f804);},'exists':_0x35ad17=>{const _0x179a4b=_0x3eff4c(_0x35ad17);return cacheExists(_0x179a4b);},'path':_0x457c2d=>{const _0x35423a=_0x3eff4c(_0x457c2d);return getGlobalCachePath(_0x35423a);}};}export function clearGlobalRegistry(){const _0x849e0c=a215_0x5132;registry[_0x849e0c(0x1df)]();}
1
+ (function(_0x410829,_0x1cb03b){const _0x1af50a=a216_0x3107,_0x4b62f4=_0x410829();while(!![]){try{const _0x411797=parseInt(_0x1af50a(0x1ad))/0x1*(parseInt(_0x1af50a(0x1a2))/0x2)+-parseInt(_0x1af50a(0x199))/0x3*(parseInt(_0x1af50a(0x1a7))/0x4)+-parseInt(_0x1af50a(0x1ac))/0x5*(-parseInt(_0x1af50a(0x19b))/0x6)+parseInt(_0x1af50a(0x19f))/0x7*(-parseInt(_0x1af50a(0x1a0))/0x8)+parseInt(_0x1af50a(0x1af))/0x9*(parseInt(_0x1af50a(0x1a5))/0xa)+-parseInt(_0x1af50a(0x197))/0xb+parseInt(_0x1af50a(0x19a))/0xc*(parseInt(_0x1af50a(0x19e))/0xd);if(_0x411797===_0x1cb03b)break;else _0x4b62f4['push'](_0x4b62f4['shift']());}catch(_0x423933){_0x4b62f4['push'](_0x4b62f4['shift']());}}}(a216_0x5c00,0x3611b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a216_0x5c00(){const _0x13f3f8=['150418wfcLJp','trim','\x22,\x20cannot\x20register\x20for\x20\x22','413970WTtMyB','\x22\x20already\x20registered\x20by\x20\x22','884qYvyFs','parse','stringify','clear','tdx','655vVHuMa','4sUTGfG','get','27OJMEnt','1946483RkkEms','.cache','3291JoxaSg','276JNOZFy','18iAEIcO','Global\x20cache\x20key\x20\x22','{profile}','261092DiOBmr','105VTjQhx','131464qzbUHF','utf-8'];a216_0x5c00=function(){return _0x13f3f8;};return a216_0x5c00();}import{join}from'path';import{homedir}from'os';function a216_0x3107(_0x35ec2d,_0x4b7866){_0x35ec2d=_0x35ec2d-0x197;const _0x5c007d=a216_0x5c00();let _0x310791=_0x5c007d[_0x35ec2d];return _0x310791;}export function getGlobalCacheDir(){const _0x163ef8=a216_0x3107;return process.env.TDX_CACHE_DIR||join(homedir(),_0x163ef8(0x198),_0x163ef8(0x1ab));}const registry=new Map();export function registerGlobalCacheKey(_0x3ba6db,_0x3f98a3){const _0x23fb6f=a216_0x3107,_0xa917c0=registry[_0x23fb6f(0x1ae)](_0x3ba6db);if(_0xa917c0&&_0xa917c0!==_0x3f98a3)throw new Error(_0x23fb6f(0x19c)+_0x3ba6db+_0x23fb6f(0x1a6)+_0xa917c0+_0x23fb6f(0x1a4)+_0x3f98a3+'\x22');registry['set'](_0x3ba6db,_0x3f98a3);}export function getGlobalCachePath(_0x3f1a9d){return join(getGlobalCacheDir(),_0x3f1a9d);}function ensureGlobalCacheDir(){const _0x12c7f6=getGlobalCacheDir();!existsSync(_0x12c7f6)&&mkdirSync(_0x12c7f6,{'recursive':!![]});}function readCacheJson(_0x1522a8){const _0x617aff=a216_0x3107,_0x44fce4=getGlobalCachePath(_0x1522a8);if(!existsSync(_0x44fce4))return undefined;try{const _0x1d5f32=readFileSync(_0x44fce4,_0x617aff(0x1a1));return JSON[_0x617aff(0x1a8)](_0x1d5f32);}catch{return undefined;}}function writeCacheJson(_0x2644f5,_0x184914){const _0x1f746=a216_0x3107;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2644f5),JSON[_0x1f746(0x1a9)](_0x184914,null,0x2),_0x1f746(0x1a1));}function readCacheText(_0x589014){const _0x3a7da9=a216_0x3107,_0xfa4b60=getGlobalCachePath(_0x589014);if(!existsSync(_0xfa4b60))return undefined;try{return readFileSync(_0xfa4b60,_0x3a7da9(0x1a1));}catch{return undefined;}}function writeCacheText(_0x59e9fb,_0xf1362a){const _0x271df6=a216_0x3107;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x59e9fb),_0xf1362a,_0x271df6(0x1a1));}function clearCache(_0x34f129){const _0x59069d=getGlobalCachePath(_0x34f129);if(existsSync(_0x59069d))try{unlinkSync(_0x59069d);}catch{}}function cacheExists(_0x38e7a5){return existsSync(getGlobalCachePath(_0x38e7a5));}export function createGlobalCache(_0x2b4cef,_0xe28a80){return registerGlobalCacheKey(_0x2b4cef,_0xe28a80),{'read':()=>readCacheJson(_0x2b4cef),'write':_0x186c05=>writeCacheJson(_0x2b4cef,_0x186c05),'clear':()=>clearCache(_0x2b4cef),'exists':()=>cacheExists(_0x2b4cef),'path':()=>getGlobalCachePath(_0x2b4cef)};}export function createGlobalTextCache(_0x465087,_0x320e9f){const _0x5c78c2=a216_0x3107;return registerGlobalCacheKey(_0x465087,_0x320e9f),{'read':()=>readCacheText(_0x465087)?.[_0x5c78c2(0x1a3)]()||undefined,'write':_0x298876=>writeCacheText(_0x465087,_0x298876),'clear':()=>clearCache(_0x465087),'exists':()=>cacheExists(_0x465087),'path':()=>getGlobalCachePath(_0x465087)};}export function createProfileCache(_0xd9bd5c,_0xd9f525){const _0x4a1271=_0x5aa198=>{const _0x1a57bf=a216_0x3107,_0x3302dc=_0x5aa198||'default';return _0xd9bd5c['replace'](_0x1a57bf(0x19d),_0x3302dc);};return{'read':_0x1272e1=>{const _0x599062=_0x4a1271(_0x1272e1);return registerGlobalCacheKey(_0x599062,_0xd9f525),readCacheJson(_0x599062);},'write':(_0x49b679,_0x329821)=>{const _0x418191=_0x4a1271(_0x49b679);registerGlobalCacheKey(_0x418191,_0xd9f525),writeCacheJson(_0x418191,_0x329821);},'clear':_0x3f99ec=>{const _0x44354f=_0x4a1271(_0x3f99ec);clearCache(_0x44354f);},'exists':_0x120b2a=>{const _0x1e7633=_0x4a1271(_0x120b2a);return cacheExists(_0x1e7633);},'path':_0x174a0e=>{const _0x3b5a5e=_0x4a1271(_0x174a0e);return getGlobalCachePath(_0x3b5a5e);}};}export function createOptionalProfileCache(_0x431520,_0x3ca8c1,_0x166651={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x166651,_0x315083=_0xc74153=>{return _0xc74153?''+_0x431520+profileSeparator+_0xc74153+suffix:''+_0x431520+suffix;};return{'read':_0x515871=>{const _0x5ba33d=_0x315083(_0x515871);return registerGlobalCacheKey(_0x5ba33d,_0x3ca8c1),readCacheJson(_0x5ba33d);},'write':(_0xc72fd0,_0x6ff718)=>{const _0x4c4af6=_0x315083(_0x6ff718);registerGlobalCacheKey(_0x4c4af6,_0x3ca8c1),writeCacheJson(_0x4c4af6,_0xc72fd0);},'clear':_0x2bd62c=>{const _0x22819a=_0x315083(_0x2bd62c);clearCache(_0x22819a);},'exists':_0x41fe42=>{const _0x21b7ee=_0x315083(_0x41fe42);return cacheExists(_0x21b7ee);},'path':_0x3b06cc=>{const _0x97eccd=_0x315083(_0x3b06cc);return getGlobalCachePath(_0x97eccd);}};}export function clearGlobalRegistry(){const _0x1bffe2=a216_0x3107;registry[_0x1bffe2(0x1aa)]();}
@@ -1 +1 @@
1
- function a216_0x4552(_0x12075e,_0x566a75){_0x12075e=_0x12075e-0x1b0;const _0xe8b2cc=a216_0xe8b2();let _0x45526b=_0xe8b2cc[_0x12075e];return _0x45526b;}(function(_0x58d212,_0x2334d8){const _0x3de7cf=a216_0x4552,_0x1b4462=_0x58d212();while(!![]){try{const _0x17f989=-parseInt(_0x3de7cf(0x1b5))/0x1+parseInt(_0x3de7cf(0x1c0))/0x2+-parseInt(_0x3de7cf(0x1ca))/0x3+parseInt(_0x3de7cf(0x1c2))/0x4*(-parseInt(_0x3de7cf(0x1b1))/0x5)+parseInt(_0x3de7cf(0x1c8))/0x6*(-parseInt(_0x3de7cf(0x1b6))/0x7)+-parseInt(_0x3de7cf(0x1c7))/0x8*(-parseInt(_0x3de7cf(0x1b8))/0x9)+-parseInt(_0x3de7cf(0x1b3))/0xa*(-parseInt(_0x3de7cf(0x1c1))/0xb);if(_0x17f989===_0x2334d8)break;else _0x1b4462['push'](_0x1b4462['shift']());}catch(_0x37c007){_0x1b4462['push'](_0x1b4462['shift']());}}}(a216_0xe8b2,0x6a620));function a216_0xe8b2(){const _0xe586ca=['1087308mCYcfn','ENOENT','1469151oKRcVn','code','PERMISSION_DENIED','5wlIpXn','EACCES','10Qtfmzn','\x27:\x20','304958OUJyjY','21ZAKloE','Invalid\x20JSON\x20string:\x20','63dwaWcL','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','Permission\x20denied\x20reading\x20file:\x20','File\x20not\x20found:\x20','Failed\x20to\x20load\x20JSON:\x20','utf-8','parse','369348haGWRk','11077033eyaySU','253192cYUszL','INTERNAL','INVALID_ARGUMENT','NOT_FOUND','Invalid\x20JSON\x20in\x20file\x20\x27','737936fshTAP'];a216_0xe8b2=function(){return _0xe586ca;};return a216_0xe8b2();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x558225,_0x317595){const _0x269a8a=a216_0x4552;try{if(_0x317595){const _0x63e40d=await readFile(_0x558225,_0x269a8a(0x1be));try{return JSON[_0x269a8a(0x1bf)](_0x63e40d);}catch(_0x55e194){throw new SDKError(ErrorCode[_0x269a8a(0x1c4)],_0x269a8a(0x1c6)+_0x558225+_0x269a8a(0x1b4)+(_0x55e194 instanceof Error?_0x55e194[_0x269a8a(0x1ba)]:String(_0x55e194)));}}else try{return JSON[_0x269a8a(0x1bf)](_0x558225);}catch(_0x11f2af){throw new SDKError(ErrorCode[_0x269a8a(0x1c4)],_0x269a8a(0x1b7)+(_0x11f2af instanceof Error?_0x11f2af[_0x269a8a(0x1ba)]:String(_0x11f2af)));}}catch(_0x27cad4){if(_0x27cad4 instanceof SDKError)throw _0x27cad4;if(_0x27cad4 instanceof Error&&_0x269a8a(0x1cb)in _0x27cad4){const _0x214c75=_0x27cad4;if(_0x214c75[_0x269a8a(0x1cb)]===_0x269a8a(0x1c9))throw new SDKError(ErrorCode[_0x269a8a(0x1c5)],_0x269a8a(0x1bc)+_0x558225);else{if(_0x214c75[_0x269a8a(0x1cb)]===_0x269a8a(0x1b2))throw new SDKError(ErrorCode[_0x269a8a(0x1b0)],_0x269a8a(0x1bb)+_0x558225);}}throw new SDKError(ErrorCode[_0x269a8a(0x1c3)],_0x269a8a(0x1bd)+(_0x27cad4 instanceof Error?_0x27cad4[_0x269a8a(0x1ba)]:String(_0x27cad4)));}}export async function loadJSONFromOptions(_0x2d723d,_0x52aab5){const _0xfddea4=a216_0x4552;if(_0x2d723d&&_0x52aab5)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xfddea4(0x1b9));if(_0x2d723d)return await loadJSON(_0x2d723d,![]);if(_0x52aab5)return await loadJSON(_0x52aab5,!![]);return undefined;}
1
+ function a217_0x7071(_0x250d49,_0x276f94){_0x250d49=_0x250d49-0x15f;const _0xf40f41=a217_0xf40f();let _0x7071ba=_0xf40f41[_0x250d49];return _0x7071ba;}(function(_0x52d001,_0x5ba1c4){const _0x1e4359=a217_0x7071,_0x36f2b1=_0x52d001();while(!![]){try{const _0x26ba8f=-parseInt(_0x1e4359(0x16a))/0x1+parseInt(_0x1e4359(0x167))/0x2*(parseInt(_0x1e4359(0x169))/0x3)+parseInt(_0x1e4359(0x165))/0x4*(parseInt(_0x1e4359(0x163))/0x5)+parseInt(_0x1e4359(0x16b))/0x6+parseInt(_0x1e4359(0x168))/0x7+-parseInt(_0x1e4359(0x173))/0x8+-parseInt(_0x1e4359(0x162))/0x9;if(_0x26ba8f===_0x5ba1c4)break;else _0x36f2b1['push'](_0x36f2b1['shift']());}catch(_0x4e0435){_0x36f2b1['push'](_0x36f2b1['shift']());}}}(a217_0xf40f,0x7e21b));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x461905,_0x4e6f16){const _0x2b1e67=a217_0x7071;try{if(_0x4e6f16){const _0x321da1=await readFile(_0x461905,_0x2b1e67(0x171));try{return JSON['parse'](_0x321da1);}catch(_0x3f9b05){throw new SDKError(ErrorCode[_0x2b1e67(0x16d)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x461905+_0x2b1e67(0x172)+(_0x3f9b05 instanceof Error?_0x3f9b05[_0x2b1e67(0x16c)]:String(_0x3f9b05)));}}else try{return JSON['parse'](_0x461905);}catch(_0x5b4a21){throw new SDKError(ErrorCode[_0x2b1e67(0x16d)],_0x2b1e67(0x170)+(_0x5b4a21 instanceof Error?_0x5b4a21[_0x2b1e67(0x16c)]:String(_0x5b4a21)));}}catch(_0x2d1da8){if(_0x2d1da8 instanceof SDKError)throw _0x2d1da8;if(_0x2d1da8 instanceof Error&&'code'in _0x2d1da8){const _0x55b06a=_0x2d1da8;if(_0x55b06a[_0x2b1e67(0x16f)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2b1e67(0x16e)+_0x461905);else{if(_0x55b06a['code']===_0x2b1e67(0x161))throw new SDKError(ErrorCode[_0x2b1e67(0x160)],'Permission\x20denied\x20reading\x20file:\x20'+_0x461905);}}throw new SDKError(ErrorCode[_0x2b1e67(0x164)],_0x2b1e67(0x15f)+(_0x2d1da8 instanceof Error?_0x2d1da8[_0x2b1e67(0x16c)]:String(_0x2d1da8)));}}export async function loadJSONFromOptions(_0x1c428d,_0x3ccb65){const _0x316a54=a217_0x7071;if(_0x1c428d&&_0x3ccb65)throw new SDKError(ErrorCode[_0x316a54(0x16d)],_0x316a54(0x166));if(_0x1c428d)return await loadJSON(_0x1c428d,![]);if(_0x3ccb65)return await loadJSON(_0x3ccb65,!![]);return undefined;}function a217_0xf40f(){const _0x11beca=['7804djvWcW','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2VYUfRq','5475162RMLQCD','923001cPIbLJ','334448ksplJp','1793106OmyxGX','message','INVALID_ARGUMENT','File\x20not\x20found:\x20','code','Invalid\x20JSON\x20string:\x20','utf-8','\x27:\x20','6639312exptbM','Failed\x20to\x20load\x20JSON:\x20','PERMISSION_DENIED','EACCES','2057436ZmpXZk','1335MLKZtK','INTERNAL'];a217_0xf40f=function(){return _0x11beca;};return a217_0xf40f();}
@@ -1 +1 @@
1
- (function(_0x25802e,_0x4eb6bb){const _0x1c7be=a217_0x4e56,_0x340809=_0x25802e();while(!![]){try{const _0x427a2b=parseInt(_0x1c7be(0x14a))/0x1*(parseInt(_0x1c7be(0x149))/0x2)+-parseInt(_0x1c7be(0x15b))/0x3*(-parseInt(_0x1c7be(0x14b))/0x4)+parseInt(_0x1c7be(0x148))/0x5+parseInt(_0x1c7be(0x151))/0x6*(parseInt(_0x1c7be(0x14e))/0x7)+parseInt(_0x1c7be(0x154))/0x8+parseInt(_0x1c7be(0x158))/0x9*(parseInt(_0x1c7be(0x14d))/0xa)+parseInt(_0x1c7be(0x14c))/0xb*(-parseInt(_0x1c7be(0x14f))/0xc);if(_0x427a2b===_0x4eb6bb)break;else _0x340809['push'](_0x340809['shift']());}catch(_0x1f0689){_0x340809['push'](_0x340809['shift']());}}}(a217_0x3d71,0xa112f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';function a217_0x4e56(_0x1b6935,_0x5e30e9){_0x1b6935=_0x1b6935-0x147;const _0x3d712e=a217_0x3d71();let _0x4e5632=_0x3d712e[_0x1b6935];return _0x4e5632;}const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0xfb07f8,_0x3a12c7){const _0x53775d=a217_0x4e56,_0x36c0a8=registry[_0x53775d(0x155)](_0xfb07f8);if(_0x36c0a8&&_0x36c0a8!==_0x3a12c7)throw new Error(_0x53775d(0x147)+_0xfb07f8+_0x53775d(0x152)+_0x36c0a8+_0x53775d(0x150)+_0x3a12c7+'\x22');registry[_0x53775d(0x157)](_0xfb07f8,_0x3a12c7);}function a217_0x3d71(){const _0x293fe3=['utf-8','3927432YWlKxt','get','clear','set','27iOQDBa','trim','stringify','40620NYkedx','Cache\x20key\x20\x22','637735zmIaYG','1346gYIkBs','1451elTpbs','188ubBpBv','10974821pDCpcl','1073840GwepOI','1589vfaqEY','36wkfRfg','\x22,\x20cannot\x20register\x20for\x20\x22','29058cDnEgv','\x22\x20already\x20registered\x20by\x20\x22'];a217_0x3d71=function(){return _0x293fe3;};return a217_0x3d71();}export function getCacheDir(){const _0x581487=process['cwd'](),_0x49230e=_0x581487===parse(_0x581487)['root']?homedir():_0x581487;return join(_0x49230e,LOCAL_CACHE_DIR);}export function getCachePath(_0x449cd9){return join(getCacheDir(),_0x449cd9);}function ensureCacheDir(){const _0x42d0c6=getCacheDir();!existsSync(_0x42d0c6)&&mkdirSync(_0x42d0c6,{'recursive':!![]});}function readCacheJson(_0x332594){const _0x23aafd=a217_0x4e56,_0x36f16b=getCachePath(_0x332594);if(!existsSync(_0x36f16b))return undefined;try{const _0x22fd7f=readFileSync(_0x36f16b,_0x23aafd(0x153));return JSON['parse'](_0x22fd7f);}catch{return undefined;}}function writeCacheJson(_0xce122f,_0x163b76){const _0x544650=a217_0x4e56;ensureCacheDir(),writeFileSync(getCachePath(_0xce122f),JSON[_0x544650(0x15a)](_0x163b76,null,0x2),'utf-8');}function readCacheText(_0x5751f5){const _0x2c7db2=a217_0x4e56,_0x3460d7=getCachePath(_0x5751f5);if(!existsSync(_0x3460d7))return undefined;try{return readFileSync(_0x3460d7,_0x2c7db2(0x153));}catch{return undefined;}}function writeCacheText(_0x34acff,_0x29362d){const _0x4e1f96=a217_0x4e56;ensureCacheDir(),writeFileSync(getCachePath(_0x34acff),_0x29362d,_0x4e1f96(0x153));}function clearCache(_0x517d9e){const _0x76e64d=getCachePath(_0x517d9e);if(existsSync(_0x76e64d))try{unlinkSync(_0x76e64d);}catch{}}function cacheExists(_0x4418e0){return existsSync(getCachePath(_0x4418e0));}export function createCache(_0x2ceba4,_0x4cb93a){return registerCacheKey(_0x2ceba4,_0x4cb93a),{'read':()=>readCacheJson(_0x2ceba4),'write':_0x48d45d=>writeCacheJson(_0x2ceba4,_0x48d45d),'clear':()=>clearCache(_0x2ceba4),'exists':()=>cacheExists(_0x2ceba4),'path':()=>getCachePath(_0x2ceba4)};}export function createTextCache(_0x235522,_0xbe86a0){const _0x99a0c2=a217_0x4e56;return registerCacheKey(_0x235522,_0xbe86a0),{'read':()=>readCacheText(_0x235522)?.[_0x99a0c2(0x159)]()||undefined,'write':_0x1b1408=>writeCacheText(_0x235522,_0x1b1408),'clear':()=>clearCache(_0x235522),'exists':()=>cacheExists(_0x235522),'path':()=>getCachePath(_0x235522)};}export function clearRegistry(){const _0x13b152=a217_0x4e56;registry[_0x13b152(0x156)]();}
1
+ const a218_0x14e52d=a218_0x1246;(function(_0x32ce55,_0x3d700f){const _0x285980=a218_0x1246,_0x355351=_0x32ce55();while(!![]){try{const _0x4dac8d=-parseInt(_0x285980(0x1c9))/0x1*(-parseInt(_0x285980(0x1c4))/0x2)+-parseInt(_0x285980(0x1c5))/0x3*(parseInt(_0x285980(0x1c3))/0x4)+parseInt(_0x285980(0x1b9))/0x5*(-parseInt(_0x285980(0x1cc))/0x6)+-parseInt(_0x285980(0x1c2))/0x7+parseInt(_0x285980(0x1c7))/0x8*(parseInt(_0x285980(0x1ca))/0x9)+-parseInt(_0x285980(0x1c1))/0xa*(-parseInt(_0x285980(0x1cb))/0xb)+parseInt(_0x285980(0x1bd))/0xc;if(_0x4dac8d===_0x3d700f)break;else _0x355351['push'](_0x355351['shift']());}catch(_0x435344){_0x355351['push'](_0x355351['shift']());}}}(a218_0x345c,0xf2a05));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a218_0x1246(_0x4a7e55,_0xf862d5){_0x4a7e55=_0x4a7e55-0x1b8;const _0x345c43=a218_0x345c();let _0x1246a5=_0x345c43[_0x4a7e55];return _0x1246a5;}import{join,parse}from'path';import{homedir}from'os';function a218_0x345c(){const _0x151ea1=['utf-8','233PxighH','1548VBwzRp','39281ExQcNK','441678rfSwdj','set','\x22,\x20cannot\x20register\x20for\x20\x22','55juYIIp','cwd','\x22\x20already\x20registered\x20by\x20\x22','stringify','4219644wdkeVW','.cache/tdx','clear','Cache\x20key\x20\x22','3860qfXQzP','2448215vDWzDo','124URnBhe','406HVOukL','122097QpayYL','trim','76168QzzSKO'];a218_0x345c=function(){return _0x151ea1;};return a218_0x345c();}const LOCAL_CACHE_DIR=a218_0x14e52d(0x1be),registry=new Map();export function registerCacheKey(_0x3d7963,_0x14fa0e){const _0x4e5a93=a218_0x14e52d,_0x3c4bde=registry['get'](_0x3d7963);if(_0x3c4bde&&_0x3c4bde!==_0x14fa0e)throw new Error(_0x4e5a93(0x1c0)+_0x3d7963+_0x4e5a93(0x1bb)+_0x3c4bde+_0x4e5a93(0x1b8)+_0x14fa0e+'\x22');registry[_0x4e5a93(0x1cd)](_0x3d7963,_0x14fa0e);}export function getCacheDir(){const _0x781baf=a218_0x14e52d,_0x304d01=process[_0x781baf(0x1ba)](),_0x5042dc=_0x304d01===parse(_0x304d01)['root']?homedir():_0x304d01;return join(_0x5042dc,LOCAL_CACHE_DIR);}export function getCachePath(_0x508dfe){return join(getCacheDir(),_0x508dfe);}function ensureCacheDir(){const _0x2982af=getCacheDir();!existsSync(_0x2982af)&&mkdirSync(_0x2982af,{'recursive':!![]});}function readCacheJson(_0xd8c4a3){const _0xa7486d=a218_0x14e52d,_0x4761eb=getCachePath(_0xd8c4a3);if(!existsSync(_0x4761eb))return undefined;try{const _0xaf0b6c=readFileSync(_0x4761eb,_0xa7486d(0x1c8));return JSON['parse'](_0xaf0b6c);}catch{return undefined;}}function writeCacheJson(_0x3c733a,_0x4ec16a){const _0x5e7e71=a218_0x14e52d;ensureCacheDir(),writeFileSync(getCachePath(_0x3c733a),JSON[_0x5e7e71(0x1bc)](_0x4ec16a,null,0x2),_0x5e7e71(0x1c8));}function readCacheText(_0x2031a3){const _0x52b290=getCachePath(_0x2031a3);if(!existsSync(_0x52b290))return undefined;try{return readFileSync(_0x52b290,'utf-8');}catch{return undefined;}}function writeCacheText(_0x3f3846,_0x28483b){const _0x3ec2e0=a218_0x14e52d;ensureCacheDir(),writeFileSync(getCachePath(_0x3f3846),_0x28483b,_0x3ec2e0(0x1c8));}function clearCache(_0x4f76ae){const _0xa0256a=getCachePath(_0x4f76ae);if(existsSync(_0xa0256a))try{unlinkSync(_0xa0256a);}catch{}}function cacheExists(_0xf714de){return existsSync(getCachePath(_0xf714de));}export function createCache(_0x53f944,_0xf4c681){return registerCacheKey(_0x53f944,_0xf4c681),{'read':()=>readCacheJson(_0x53f944),'write':_0x326156=>writeCacheJson(_0x53f944,_0x326156),'clear':()=>clearCache(_0x53f944),'exists':()=>cacheExists(_0x53f944),'path':()=>getCachePath(_0x53f944)};}export function createTextCache(_0x4d4980,_0x2e5875){const _0x5a7ac2=a218_0x14e52d;return registerCacheKey(_0x4d4980,_0x2e5875),{'read':()=>readCacheText(_0x4d4980)?.[_0x5a7ac2(0x1c6)]()||undefined,'write':_0x52b677=>writeCacheText(_0x4d4980,_0x52b677),'clear':()=>clearCache(_0x4d4980),'exists':()=>cacheExists(_0x4d4980),'path':()=>getCachePath(_0x4d4980)};}export function clearRegistry(){const _0x5bd7b0=a218_0x14e52d;registry[_0x5bd7b0(0x1bf)]();}
@@ -1 +1 @@
1
- const a218_0x4e9bef=a218_0x2687;(function(_0x357712,_0x164039){const _0x26202b=a218_0x2687,_0x118db4=_0x357712();while(!![]){try{const _0x47faac=-parseInt(_0x26202b(0x97))/0x1+parseInt(_0x26202b(0xad))/0x2+-parseInt(_0x26202b(0x9a))/0x3*(-parseInt(_0x26202b(0xaa))/0x4)+parseInt(_0x26202b(0x99))/0x5+parseInt(_0x26202b(0xa1))/0x6*(-parseInt(_0x26202b(0x9b))/0x7)+-parseInt(_0x26202b(0xa8))/0x8*(-parseInt(_0x26202b(0x94))/0x9)+parseInt(_0x26202b(0xa6))/0xa*(-parseInt(_0x26202b(0xab))/0xb);if(_0x47faac===_0x164039)break;else _0x118db4['push'](_0x118db4['shift']());}catch(_0x45fd09){_0x118db4['push'](_0x118db4['shift']());}}}(a218_0x52d2,0xd8b12));import a218_0xdc31dd from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0xdc31dd,ChalkClass=chalkModule[a218_0x4e9bef(0xaf)]||chalkModule['default']?.[a218_0x4e9bef(0xaf)];function a218_0x2687(_0x6423bb,_0x5a0a3c){_0x6423bb=_0x6423bb-0x94;const _0x52d235=a218_0x52d2();let _0x268792=_0x52d235[_0x6423bb];return _0x268792;}function a218_0x52d2(){const _0x54a2aa=['WARN','6PbYtMN','chalk','TRACE','level','colors','1990vdgqUR','message','2883128vLrOAR','dim','12HddDDF','112585UQWAmb','colorLevel','1448434ZJeutd','cyan','Chalk','ERROR','9YJYIDy','component','timestamp','824149DadnnM',']\x20[','6626340hgvmDo','1748781CTMAln','2871211GiWNFe','blue','yellow','red','DEBUG'];a218_0x52d2=function(){return _0x54a2aa;};return a218_0x52d2();}export class DefaultLogFormatter{[a218_0x4e9bef(0xa5)];['chalk'];constructor(_0x53c2e5={}){const _0x26e9ff=a218_0x4e9bef;this[_0x26e9ff(0xa5)]=_0x53c2e5['colors']??![],this[_0x26e9ff(0xa2)]=_0x53c2e5['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a218_0xdc31dd;}['format'](_0x530b35){const _0x372f78=a218_0x4e9bef,_0x56cccd=formatTimestamp(_0x530b35[_0x372f78(0x96)]),_0x40d23e=logLevelToString(_0x530b35[_0x372f78(0xa4)]);if(!this[_0x372f78(0xa5)])return _0x56cccd+'\x20['+_0x40d23e+_0x372f78(0x98)+_0x530b35['component']+']\x20'+_0x530b35[_0x372f78(0xa7)];const _0x487e0b=this['chalk'][_0x372f78(0xa9)](_0x56cccd),_0x7426d7=this['colorLevel'](_0x40d23e,_0x530b35[_0x372f78(0xa4)]),_0x3c7b6e=this[_0x372f78(0xa2)][_0x372f78(0x9c)]('['+_0x530b35[_0x372f78(0x95)]+']');return _0x487e0b+'\x20'+_0x7426d7+'\x20'+_0x3c7b6e+'\x20'+_0x530b35['message'];}[a218_0x4e9bef(0xac)](_0x18cc25,_0x2f7139){const _0x5165a6=a218_0x4e9bef;switch(_0x2f7139){case LogLevel[_0x5165a6(0xa3)]:return this[_0x5165a6(0xa2)]['gray']('['+_0x18cc25+']');case LogLevel[_0x5165a6(0x9f)]:return this[_0x5165a6(0xa2)]['green']('['+_0x18cc25+']');case LogLevel['INFO']:return this['chalk'][_0x5165a6(0xae)]('['+_0x18cc25+']');case LogLevel[_0x5165a6(0xa0)]:return this[_0x5165a6(0xa2)][_0x5165a6(0x9d)]('['+_0x18cc25+']');case LogLevel[_0x5165a6(0xb0)]:return this[_0x5165a6(0xa2)][_0x5165a6(0x9e)]('['+_0x18cc25+']');default:return'['+_0x18cc25+']';}}}
1
+ const a219_0x1e2856=a219_0x118a;(function(_0x660638,_0x2e95d1){const _0x3879ac=a219_0x118a,_0x11495d=_0x660638();while(!![]){try{const _0x4f31b4=-parseInt(_0x3879ac(0x193))/0x1*(-parseInt(_0x3879ac(0x19d))/0x2)+-parseInt(_0x3879ac(0x19f))/0x3+-parseInt(_0x3879ac(0x191))/0x4+-parseInt(_0x3879ac(0x194))/0x5+-parseInt(_0x3879ac(0x199))/0x6*(parseInt(_0x3879ac(0x18c))/0x7)+-parseInt(_0x3879ac(0x19a))/0x8*(parseInt(_0x3879ac(0x195))/0x9)+parseInt(_0x3879ac(0x19e))/0xa;if(_0x4f31b4===_0x2e95d1)break;else _0x11495d['push'](_0x11495d['shift']());}catch(_0x24fb8b){_0x11495d['push'](_0x11495d['shift']());}}}(a219_0x5741,0x58712));import a219_0x5de46e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a219_0x5de46e,ChalkClass=chalkModule[a219_0x1e2856(0x19c)]||chalkModule[a219_0x1e2856(0x196)]?.[a219_0x1e2856(0x19c)];function a219_0x118a(_0x5c7960,_0x43282a){_0x5c7960=_0x5c7960-0x183;const _0x574194=a219_0x5741();let _0x118ab8=_0x574194[_0x5c7960];return _0x118ab8;}function a219_0x5741(){const _0x3b42e8=['INFO','WARN','timestamp','chalk','158796FDFxLi','colorLevel','3QuDrrF','1779635IZvSPr','735948cfbxug','default','DEBUG',']\x20[','12phVvVB','16Eakois','dim','Chalk','19676kkjLBp','21899170ZXytdW','1914267LeuaCW','component','message','ERROR','yellow','red','blue','colors','TRACE','gray','level','green','format','2309699oQLRwR'];a219_0x5741=function(){return _0x3b42e8;};return a219_0x5741();}export class DefaultLogFormatter{[a219_0x1e2856(0x186)];[a219_0x1e2856(0x190)];constructor(_0xfbe10b={}){const _0x57e5b8=a219_0x1e2856;this[_0x57e5b8(0x186)]=_0xfbe10b[_0x57e5b8(0x186)]??![],this['chalk']=_0xfbe10b[_0x57e5b8(0x186)]&&ChalkClass?new ChalkClass({'level':0x3}):a219_0x5de46e;}[a219_0x1e2856(0x18b)](_0x5a785e){const _0x558606=a219_0x1e2856,_0x59038a=formatTimestamp(_0x5a785e[_0x558606(0x18f)]),_0x23a5a9=logLevelToString(_0x5a785e[_0x558606(0x189)]);if(!this[_0x558606(0x186)])return _0x59038a+'\x20['+_0x23a5a9+_0x558606(0x198)+_0x5a785e[_0x558606(0x1a0)]+']\x20'+_0x5a785e[_0x558606(0x1a1)];const _0x2cff3f=this['chalk'][_0x558606(0x19b)](_0x59038a),_0x424030=this[_0x558606(0x192)](_0x23a5a9,_0x5a785e[_0x558606(0x189)]),_0x4b6446=this[_0x558606(0x190)][_0x558606(0x185)]('['+_0x5a785e[_0x558606(0x1a0)]+']');return _0x2cff3f+'\x20'+_0x424030+'\x20'+_0x4b6446+'\x20'+_0x5a785e[_0x558606(0x1a1)];}[a219_0x1e2856(0x192)](_0x34dc70,_0x4dc347){const _0x1dddf0=a219_0x1e2856;switch(_0x4dc347){case LogLevel[_0x1dddf0(0x187)]:return this[_0x1dddf0(0x190)][_0x1dddf0(0x188)]('['+_0x34dc70+']');case LogLevel[_0x1dddf0(0x197)]:return this[_0x1dddf0(0x190)][_0x1dddf0(0x18a)]('['+_0x34dc70+']');case LogLevel[_0x1dddf0(0x18d)]:return this[_0x1dddf0(0x190)]['cyan']('['+_0x34dc70+']');case LogLevel[_0x1dddf0(0x18e)]:return this[_0x1dddf0(0x190)][_0x1dddf0(0x183)]('['+_0x34dc70+']');case LogLevel[_0x1dddf0(0x1a2)]:return this['chalk'][_0x1dddf0(0x184)]('['+_0x34dc70+']');default:return'['+_0x34dc70+']';}}}
@@ -1 +1 @@
1
- (function(_0x5c5163,_0x1134bd){var _0x2a6d7c=a219_0x3a8e,_0x5a5ee8=_0x5c5163();while(!![]){try{var _0x2fed11=-parseInt(_0x2a6d7c(0x6b))/0x1+parseInt(_0x2a6d7c(0x67))/0x2*(parseInt(_0x2a6d7c(0x6f))/0x3)+-parseInt(_0x2a6d7c(0x6e))/0x4*(parseInt(_0x2a6d7c(0x65))/0x5)+parseInt(_0x2a6d7c(0x69))/0x6*(-parseInt(_0x2a6d7c(0x6d))/0x7)+-parseInt(_0x2a6d7c(0x66))/0x8*(parseInt(_0x2a6d7c(0x68))/0x9)+parseInt(_0x2a6d7c(0x6c))/0xa+parseInt(_0x2a6d7c(0x6a))/0xb;if(_0x2fed11===_0x1134bd)break;else _0x5a5ee8['push'](_0x5a5ee8['shift']());}catch(_0x5d86ff){_0x5a5ee8['push'](_0x5a5ee8['shift']());}}}(a219_0x3a68,0x50cc0));function a219_0x3a68(){var _0x275702=['289294GuBkgK','3484420gzPXkf','1807428ceXxrZ','108CPCamj','9NaMbPD','104425EWZhib','118552EJvoqc','89512vOUZQo','225FAOckA','6aLEfZZ','14631122FJSuqI'];a219_0x3a68=function(){return _0x275702;};return a219_0x3a68();}function a219_0x3a8e(_0xa4152d,_0x2e7c78){_0xa4152d=_0xa4152d-0x65;var _0x3a68c2=a219_0x3a68();var _0x3a8ebf=_0x3a68c2[_0xa4152d];return _0x3a8ebf;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x36499f,_0x506672){var _0x3c7c5b=a220_0x557e,_0x24b15c=_0x36499f();while(!![]){try{var _0x2af8af=parseInt(_0x3c7c5b(0x163))/0x1+parseInt(_0x3c7c5b(0x162))/0x2*(-parseInt(_0x3c7c5b(0x16d))/0x3)+parseInt(_0x3c7c5b(0x166))/0x4*(-parseInt(_0x3c7c5b(0x164))/0x5)+parseInt(_0x3c7c5b(0x165))/0x6*(parseInt(_0x3c7c5b(0x169))/0x7)+-parseInt(_0x3c7c5b(0x16b))/0x8*(-parseInt(_0x3c7c5b(0x16e))/0x9)+-parseInt(_0x3c7c5b(0x167))/0xa*(parseInt(_0x3c7c5b(0x16c))/0xb)+-parseInt(_0x3c7c5b(0x168))/0xc*(-parseInt(_0x3c7c5b(0x16a))/0xd);if(_0x2af8af===_0x506672)break;else _0x24b15c['push'](_0x24b15c['shift']());}catch(_0x13b347){_0x24b15c['push'](_0x24b15c['shift']());}}}(a220_0x12e5,0xb53b8));function a220_0x12e5(){var _0x2c86e9=['112795EDyXmA','30DFzhUo','244TDcQCn','50ZpDkxv','35629692PxOdgD','181797SYTKuC','13ePDQXA','16sEmCDo','809171XczIbi','6NpVutI','323406INXExc','1455378RakIFa','770746pUMdKC'];a220_0x12e5=function(){return _0x2c86e9;};return a220_0x12e5();}function a220_0x557e(_0x1eb7b7,_0x241ef5){_0x1eb7b7=_0x1eb7b7-0x162;var _0x12e500=a220_0x12e5();var _0x557ea8=_0x12e500[_0x1eb7b7];return _0x557ea8;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a220_0x28b1(_0x57dbda,_0x5bac3b){_0x57dbda=_0x57dbda-0xac;const _0x567515=a220_0x5675();let _0x28b18f=_0x567515[_0x57dbda];return _0x28b18f;}const a220_0x5804ca=a220_0x28b1;(function(_0x52be7f,_0x179bbd){const _0x1b89b3=a220_0x28b1,_0x2670a5=_0x52be7f();while(!![]){try{const _0x56df9e=-parseInt(_0x1b89b3(0xb4))/0x1+-parseInt(_0x1b89b3(0xad))/0x2+-parseInt(_0x1b89b3(0xb1))/0x3*(parseInt(_0x1b89b3(0xac))/0x4)+-parseInt(_0x1b89b3(0xbc))/0x5+-parseInt(_0x1b89b3(0xae))/0x6*(parseInt(_0x1b89b3(0xb5))/0x7)+-parseInt(_0x1b89b3(0xb2))/0x8*(parseInt(_0x1b89b3(0xbe))/0x9)+parseInt(_0x1b89b3(0xb8))/0xa;if(_0x56df9e===_0x179bbd)break;else _0x2670a5['push'](_0x2670a5['shift']());}catch(_0x42c67e){_0x2670a5['push'](_0x2670a5['shift']());}}}(a220_0x5675,0xccb1a));import{LogLevel as a220_0x517f2b}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a220_0x5675(){const _0x402bb6=['formatter','handle','78377990YqNbxr','colors','WARN','useStderr','1412215JvofWh','log','14266305Nqhvhu','5829016TyMHhQ','1918770SxCcFV','24gcmWqF','level','format','3QfMeQF','8DjuPgh','minLevel','1064082eBSdUf','2889362kDeoZM'];a220_0x5675=function(){return _0x402bb6;};return a220_0x5675();}export class ConsoleHandler{[a220_0x5804ca(0xb3)];[a220_0x5804ca(0xbb)];[a220_0x5804ca(0xb6)];constructor(_0x7cf5b8={}){const _0x27d10b=a220_0x5804ca;this[_0x27d10b(0xb3)]=_0x7cf5b8['minLevel']??a220_0x517f2b[_0x27d10b(0xba)],this[_0x27d10b(0xbb)]=_0x7cf5b8[_0x27d10b(0xbb)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x7cf5b8[_0x27d10b(0xb9)]??!![]});}[a220_0x5804ca(0xb7)](_0x11f4b0){const _0x3ea49a=a220_0x5804ca;if(_0x11f4b0[_0x3ea49a(0xaf)]<this[_0x3ea49a(0xb3)])return;const _0x42fb51=this[_0x3ea49a(0xb6)][_0x3ea49a(0xb0)](_0x11f4b0);this['useStderr']&&_0x11f4b0[_0x3ea49a(0xaf)]>=a220_0x517f2b['WARN']?console['error'](_0x42fb51):console[_0x3ea49a(0xbd)](_0x42fb51);}}
1
+ const a221_0x3b818a=a221_0x44a8;(function(_0x403a07,_0x3147d1){const _0x42e68e=a221_0x44a8,_0x2199c2=_0x403a07();while(!![]){try{const _0x460a9a=parseInt(_0x42e68e(0x198))/0x1*(-parseInt(_0x42e68e(0x186))/0x2)+-parseInt(_0x42e68e(0x196))/0x3+-parseInt(_0x42e68e(0x185))/0x4*(parseInt(_0x42e68e(0x18a))/0x5)+-parseInt(_0x42e68e(0x195))/0x6*(-parseInt(_0x42e68e(0x188))/0x7)+parseInt(_0x42e68e(0x190))/0x8+-parseInt(_0x42e68e(0x192))/0x9+parseInt(_0x42e68e(0x193))/0xa*(parseInt(_0x42e68e(0x187))/0xb);if(_0x460a9a===_0x3147d1)break;else _0x2199c2['push'](_0x2199c2['shift']());}catch(_0x4d0dd6){_0x2199c2['push'](_0x2199c2['shift']());}}}(a221_0x4579,0x52763));import{LogLevel as a221_0x15736a}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a221_0x4579(){const _0x6ac65f=['WARN','102zVuLDt','1248624kSYPRf','log','11037DDIOho','3584xxOqqf','74saIgcw','10727057YITUYf','158284gUaPqR','useStderr','1380oqksff','level','handle','minLevel','error','colors','2763112MbcNtm','format','2658096FhlUEJ','10nFQrIg'];a221_0x4579=function(){return _0x6ac65f;};return a221_0x4579();}function a221_0x44a8(_0x327592,_0x2b6731){_0x327592=_0x327592-0x185;const _0x4579ba=a221_0x4579();let _0x44a879=_0x4579ba[_0x327592];return _0x44a879;}export class ConsoleHandler{[a221_0x3b818a(0x18d)];[a221_0x3b818a(0x189)];['formatter'];constructor(_0x4f9da6={}){const _0x42b466=a221_0x3b818a;this[_0x42b466(0x18d)]=_0x4f9da6[_0x42b466(0x18d)]??a221_0x15736a[_0x42b466(0x194)],this[_0x42b466(0x189)]=_0x4f9da6[_0x42b466(0x189)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x4f9da6[_0x42b466(0x18f)]??!![]});}[a221_0x3b818a(0x18c)](_0x232f25){const _0x1d8dd2=a221_0x3b818a;if(_0x232f25[_0x1d8dd2(0x18b)]<this['minLevel'])return;const _0x14424a=this['formatter'][_0x1d8dd2(0x191)](_0x232f25);this['useStderr']&&_0x232f25[_0x1d8dd2(0x18b)]>=a221_0x15736a['WARN']?console[_0x1d8dd2(0x18e)](_0x14424a):console[_0x1d8dd2(0x197)](_0x14424a);}}
@@ -1 +1 @@
1
- const a221_0x354448=a221_0xcd91;function a221_0x433d(){const _0x3c59c7=['getLogPath','5804uAzKxZ','replace','message','split','logFileName','init','973071rEdiyc','logPath','40zScbOh','.gz','logDir','651629bwayLC','logs','\x5c$&','55AKgFrQ','close','format','Warning:\x20Error\x20writing\x20to\x20','test','rotate','toISOString','4nLlykB','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','error','451749MSIyQG','rotateOldLogs','555199fOJIqr','handle','7YYnrWv','filePath','237540DgklKj','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','.log','Warning:\x20Failed\x20to\x20compress\x20','logStream','includes','logBaseName','tdx.log','12aQWdLP','562326Cevujr'];a221_0x433d=function(){return _0x3c59c7;};return a221_0x433d();}(function(_0x16753f,_0x4136f0){const _0x1fabad=a221_0xcd91,_0x2a8e2e=_0x16753f();while(!![]){try{const _0x312f21=-parseInt(_0x1fabad(0x1b9))/0x1+parseInt(_0x1fabad(0x1b4))/0x2*(parseInt(_0x1fabad(0x1b7))/0x3)+-parseInt(_0x1fabad(0x1c8))/0x4*(parseInt(_0x1fabad(0x1d6))/0x5)+parseInt(_0x1fabad(0x1c6))/0x6*(parseInt(_0x1fabad(0x1bb))/0x7)+-parseInt(_0x1fabad(0x1d0))/0x8*(-parseInt(_0x1fabad(0x1ce))/0x9)+parseInt(_0x1fabad(0x1bd))/0xa+parseInt(_0x1fabad(0x1d3))/0xb*(-parseInt(_0x1fabad(0x1c5))/0xc);if(_0x312f21===_0x4136f0)break;else _0x2a8e2e['push'](_0x2a8e2e['shift']());}catch(_0x8b76f8){_0x2a8e2e['push'](_0x2a8e2e['shift']());}}}(a221_0x433d,0x50485));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a221_0xcd91(_0x3f1515,_0x2e7e36){_0x3f1515=_0x3f1515-0x1b4;const _0x433dac=a221_0x433d();let _0xcd91bf=_0x433dac[_0x3f1515];return _0xcd91bf;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a221_0x354448(0x1d2)];[a221_0x354448(0x1cc)];[a221_0x354448(0x1c3)];[a221_0x354448(0x1c1)]=null;[a221_0x354448(0x1db)];constructor(_0x35e862={}){const _0x39c46f=a221_0x354448;this[_0x39c46f(0x1cf)]=_0x35e862[_0x39c46f(0x1bc)]??join(getGlobalCacheDir(),_0x39c46f(0x1d4),_0x39c46f(0x1c4)),this['logDir']=dirname(this[_0x39c46f(0x1cf)]),this[_0x39c46f(0x1cc)]=basename(this[_0x39c46f(0x1cf)]),this[_0x39c46f(0x1c3)]=this[_0x39c46f(0x1cc)][_0x39c46f(0x1c9)](/\.log$/,''),this[_0x39c46f(0x1db)]=_0x35e862['rotate']??!![];}async[a221_0x354448(0x1cd)](){const _0x5dbf2e=a221_0x354448;try{await mkdir(this[_0x5dbf2e(0x1d2)],{'recursive':!![]}),this[_0x5dbf2e(0x1db)]&&await this[_0x5dbf2e(0x1b8)](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x5dbf2e(0x1c1)]['on'](_0x5dbf2e(0x1b6),_0x5e0ae9=>{const _0x4e7812=_0x5dbf2e;console[_0x4e7812(0x1b6)](_0x4e7812(0x1d9)+this[_0x4e7812(0x1cc)]+':',_0x5e0ae9[_0x4e7812(0x1ca)]);});}catch(_0x3a92e0){console['error'](_0x5dbf2e(0x1b5),_0x3a92e0);}}[a221_0x354448(0x1ba)](_0x39fa5f){const _0x32587a=a221_0x354448;if(!this[_0x32587a(0x1c1)])return;const _0x39fc8b=Logger[_0x32587a(0x1d8)](_0x39fa5f);this[_0x32587a(0x1c1)]['write'](_0x39fc8b+'\x0a');}async[a221_0x354448(0x1d7)](){return new Promise(_0x53340e=>{this['logStream']?this['logStream']['end'](()=>{const _0x1775e6=a221_0xcd91;this[_0x1775e6(0x1c1)]=null,_0x53340e();}):_0x53340e();});}[a221_0x354448(0x1c7)](){return this['logPath'];}async[a221_0x354448(0x1b8)](){const _0x491ba2=a221_0x354448;try{const _0x1112b4=await readdir(this['logDir']),_0x4d19bb=new Date()[_0x491ba2(0x1dc)]()[_0x491ba2(0x1cb)]('T')[0x0];if(_0x1112b4[_0x491ba2(0x1c2)](this[_0x491ba2(0x1cc)])){const _0x164dc0=join(this[_0x491ba2(0x1d2)],this['logFileName']),_0x59d16a=await stat(_0x164dc0),_0x4ec1c7=new Date(_0x59d16a['mtime'])[_0x491ba2(0x1dc)]()[_0x491ba2(0x1cb)]('T')[0x0];if(_0x4ec1c7<_0x4d19bb){const _0x35035a=join(this[_0x491ba2(0x1d2)],this[_0x491ba2(0x1c3)]+'-'+_0x4ec1c7+_0x491ba2(0x1bf));await rename(_0x164dc0,_0x35035a);}}const _0x272d38=await readdir(this[_0x491ba2(0x1d2)]),_0x5956a9=this[_0x491ba2(0x1c3)][_0x491ba2(0x1c9)](/[.*+?^${}()|[\]\\]/g,_0x491ba2(0x1d5)),_0x322bdc=new RegExp('^'+_0x5956a9+_0x491ba2(0x1be)),_0x28cbbb=_0x272d38['filter'](_0x2eea8c=>_0x322bdc[_0x491ba2(0x1da)](_0x2eea8c));for(const _0x1f1f41 of _0x28cbbb){const _0x3b4678=join(this['logDir'],_0x1f1f41),_0x16c14f=join(this[_0x491ba2(0x1d2)],_0x1f1f41+_0x491ba2(0x1d1));try{await pipeline(createReadStream(_0x3b4678),createGzip(),createWriteStream(_0x16c14f)),await unlink(_0x3b4678);}catch(_0x3ef93d){console['error'](_0x491ba2(0x1c0)+_0x1f1f41+':',_0x3ef93d);}}}catch{}}}
1
+ const a222_0x18acc5=a222_0x52da;(function(_0x5f00f4,_0x3c9042){const _0x458997=a222_0x52da,_0x45ffb4=_0x5f00f4();while(!![]){try{const _0x12658=parseInt(_0x458997(0x1a7))/0x1+parseInt(_0x458997(0x1a3))/0x2*(parseInt(_0x458997(0x191))/0x3)+parseInt(_0x458997(0x1aa))/0x4*(-parseInt(_0x458997(0x1a2))/0x5)+parseInt(_0x458997(0x1b0))/0x6+parseInt(_0x458997(0x199))/0x7*(-parseInt(_0x458997(0x19d))/0x8)+-parseInt(_0x458997(0x198))/0x9*(parseInt(_0x458997(0x196))/0xa)+-parseInt(_0x458997(0x1ac))/0xb;if(_0x12658===_0x3c9042)break;else _0x45ffb4['push'](_0x45ffb4['shift']());}catch(_0x36c78d){_0x45ffb4['push'](_0x45ffb4['shift']());}}}(a222_0x243e,0xa0df5));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a222_0x52da(_0x2a7c02,_0x1a4b32){_0x2a7c02=_0x2a7c02-0x190;const _0x243eda=a222_0x243e();let _0x52da0b=_0x243eda[_0x2a7c02];return _0x52da0b;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a222_0x243e(){const _0xc3f80c=['end','logFileName','rotateOldLogs','1744566qCwSCZ','format','handle','split','test','9rmFOOZ','.log','filePath','toISOString','logs','10BfqhXA','logPath','9095742wylwZx','7Zehnnj','rotate','logStream','replace','795384SGKHsi','logDir','init','includes','error','35bVtnjc','667126UAHfBS','.gz','filter','Warning:\x20Failed\x20to\x20compress\x20','1114222IUAHQf','message','logBaseName','150536MItCRd','write','4105640UgBliC'];a222_0x243e=function(){return _0xc3f80c;};return a222_0x243e();}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a222_0x18acc5(0x197)];[a222_0x18acc5(0x19e)];['logFileName'];[a222_0x18acc5(0x1a9)];[a222_0x18acc5(0x19b)]=null;['rotate'];constructor(_0x42b221={}){const _0xd51657=a222_0x18acc5;this[_0xd51657(0x197)]=_0x42b221[_0xd51657(0x193)]??join(getGlobalCacheDir(),_0xd51657(0x195),'tdx.log'),this[_0xd51657(0x19e)]=dirname(this[_0xd51657(0x197)]),this[_0xd51657(0x1ae)]=basename(this[_0xd51657(0x197)]),this[_0xd51657(0x1a9)]=this[_0xd51657(0x1ae)][_0xd51657(0x19c)](/\.log$/,''),this[_0xd51657(0x19a)]=_0x42b221['rotate']??!![];}async[a222_0x18acc5(0x19f)](){const _0x5195fc=a222_0x18acc5;try{await mkdir(this[_0x5195fc(0x19e)],{'recursive':!![]}),this[_0x5195fc(0x19a)]&&await this['rotateOldLogs'](),this[_0x5195fc(0x19b)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x5195fc(0x19b)]['on'](_0x5195fc(0x1a1),_0x5480e5=>{const _0x4615b7=_0x5195fc;console[_0x4615b7(0x1a1)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x4615b7(0x1ae)]+':',_0x5480e5[_0x4615b7(0x1a8)]);});}catch(_0x453ba0){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x453ba0);}}[a222_0x18acc5(0x1b2)](_0x253d38){const _0x261ece=a222_0x18acc5;if(!this[_0x261ece(0x19b)])return;const _0x219ceb=Logger[_0x261ece(0x1b1)](_0x253d38);this[_0x261ece(0x19b)][_0x261ece(0x1ab)](_0x219ceb+'\x0a');}async['close'](){return new Promise(_0x5844e8=>{const _0x186bd2=a222_0x52da;this[_0x186bd2(0x19b)]?this[_0x186bd2(0x19b)][_0x186bd2(0x1ad)](()=>{const _0x507c19=_0x186bd2;this[_0x507c19(0x19b)]=null,_0x5844e8();}):_0x5844e8();});}['getLogPath'](){const _0x1acb8d=a222_0x18acc5;return this[_0x1acb8d(0x197)];}async[a222_0x18acc5(0x1af)](){const _0x29fd77=a222_0x18acc5;try{const _0xb06a11=await readdir(this['logDir']),_0x1ba26f=new Date()[_0x29fd77(0x194)]()['split']('T')[0x0];if(_0xb06a11[_0x29fd77(0x1a0)](this[_0x29fd77(0x1ae)])){const _0x108ec3=join(this[_0x29fd77(0x19e)],this['logFileName']),_0x37fb8f=await stat(_0x108ec3),_0x52ea5d=new Date(_0x37fb8f['mtime'])['toISOString']()[_0x29fd77(0x1b3)]('T')[0x0];if(_0x52ea5d<_0x1ba26f){const _0x2534a3=join(this[_0x29fd77(0x19e)],this['logBaseName']+'-'+_0x52ea5d+_0x29fd77(0x192));await rename(_0x108ec3,_0x2534a3);}}const _0x409847=await readdir(this[_0x29fd77(0x19e)]),_0x1e909f=this[_0x29fd77(0x1a9)]['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x51afa3=new RegExp('^'+_0x1e909f+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x967ac1=_0x409847[_0x29fd77(0x1a5)](_0xd90f36=>_0x51afa3[_0x29fd77(0x190)](_0xd90f36));for(const _0x1175d2 of _0x967ac1){const _0x1598d0=join(this['logDir'],_0x1175d2),_0xdeab7c=join(this[_0x29fd77(0x19e)],_0x1175d2+_0x29fd77(0x1a4));try{await pipeline(createReadStream(_0x1598d0),createGzip(),createWriteStream(_0xdeab7c)),await unlink(_0x1598d0);}catch(_0xea17ff){console['error'](_0x29fd77(0x1a6)+_0x1175d2+':',_0xea17ff);}}}catch{}}}
@@ -1 +1 @@
1
- function a222_0x3d1f(){var _0x5aeda4=['203yheLyp','3776820dxquqi','1647608RPFhyC','5EqMsKV','2639270IFZtUa','2367291IAJnDH','17252415AWdOMB','836973hZJwOP','120714xTTGaq'];a222_0x3d1f=function(){return _0x5aeda4;};return a222_0x3d1f();}(function(_0x5c96a5,_0xecd252){var _0x4ff621=a222_0x31d5,_0x11bec5=_0x5c96a5();while(!![]){try{var _0x2f57fc=parseInt(_0x4ff621(0x116))/0x1+-parseInt(_0x4ff621(0x113))/0x2+-parseInt(_0x4ff621(0x114))/0x3+-parseInt(_0x4ff621(0x110))/0x4*(-parseInt(_0x4ff621(0x112))/0x5)+parseInt(_0x4ff621(0x10e))/0x6*(-parseInt(_0x4ff621(0x10f))/0x7)+-parseInt(_0x4ff621(0x111))/0x8+parseInt(_0x4ff621(0x115))/0x9;if(_0x2f57fc===_0xecd252)break;else _0x11bec5['push'](_0x11bec5['shift']());}catch(_0x3a300c){_0x11bec5['push'](_0x11bec5['shift']());}}}(a222_0x3d1f,0xc34eb));export{FileHandler}from'./file-handler.js';function a222_0x31d5(_0x57ceb8,_0x2bb596){_0x57ceb8=_0x57ceb8-0x10e;var _0x3d1fb0=a222_0x3d1f();var _0x31d507=_0x3d1fb0[_0x57ceb8];return _0x31d507;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a223_0x521b(){var _0x444b52=['3192005CWITao','99YVrLiD','257010HGRzrX','2848jNBAYj','16944xWXIFQ','156WkUdhX','4189455ZulRdv','1671446NQpuCs','3550532PKzSxa','6ZFyZQp','16eSGWJx'];a223_0x521b=function(){return _0x444b52;};return a223_0x521b();}(function(_0x51eaee,_0x28a0a6){var _0x37220=a223_0xb4c4,_0x5dbac5=_0x51eaee();while(!![]){try{var _0x56b8c8=-parseInt(_0x37220(0xde))/0x1+-parseInt(_0x37220(0xdd))/0x2*(parseInt(_0x37220(0xd4))/0x3)+parseInt(_0x37220(0xd7))/0x4+parseInt(_0x37220(0xda))/0x5+parseInt(_0x37220(0xd8))/0x6*(-parseInt(_0x37220(0xd6))/0x7)+-parseInt(_0x37220(0xd9))/0x8*(parseInt(_0x37220(0xd5))/0x9)+parseInt(_0x37220(0xdc))/0xa*(parseInt(_0x37220(0xdb))/0xb);if(_0x56b8c8===_0x28a0a6)break;else _0x5dbac5['push'](_0x5dbac5['shift']());}catch(_0x270c15){_0x5dbac5['push'](_0x5dbac5['shift']());}}}(a223_0x521b,0x793c7));export{FileHandler}from'./file-handler.js';function a223_0xb4c4(_0x553150,_0x288d57){_0x553150=_0x553150-0xd4;var _0x521b38=a223_0x521b();var _0xb4c446=_0x521b38[_0x553150];return _0xb4c446;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a223_0x229d60=a223_0x1f68;function a223_0x1f68(_0x4d8fa9,_0x2fdfc6){_0x4d8fa9=_0x4d8fa9-0x1b4;var _0x475259=a223_0x4752();var _0x1f68c9=_0x475259[_0x4d8fa9];return _0x1f68c9;}(function(_0x1b2f0e,_0x3bb7a1){var _0x4aa36a=a223_0x1f68,_0x1064e8=_0x1b2f0e();while(!![]){try{var _0x5ceded=parseInt(_0x4aa36a(0x1b9))/0x1+parseInt(_0x4aa36a(0x1b4))/0x2*(-parseInt(_0x4aa36a(0x1b6))/0x3)+parseInt(_0x4aa36a(0x1ba))/0x4*(parseInt(_0x4aa36a(0x1bc))/0x5)+-parseInt(_0x4aa36a(0x1be))/0x6+parseInt(_0x4aa36a(0x1b5))/0x7*(parseInt(_0x4aa36a(0x1bb))/0x8)+parseInt(_0x4aa36a(0x1b8))/0x9+-parseInt(_0x4aa36a(0x1b7))/0xa*(parseInt(_0x4aa36a(0x1bd))/0xb);if(_0x5ceded===_0x3bb7a1)break;else _0x1064e8['push'](_0x1064e8['shift']());}catch(_0x291bce){_0x1064e8['push'](_0x1064e8['shift']());}}}(a223_0x4752,0x3956a));function a223_0x4752(){var _0x229076=['72RDOGxL','1029880JmMUlH','60430fTvyUv','66SwiBSl','725814jCtJRM','handle','42NGeIZR','7DkMSUM','12114soEWmu','770030ggBuVr','3756852qjGSfj','138932tyxXJf'];a223_0x4752=function(){return _0x229076;};return a223_0x4752();}export class NullHandler{[a223_0x229d60(0x1bf)](_0x95942c){}}
1
+ function a224_0x319e(){var _0x5161de=['8215347FgkPpo','413mNLWab','handle','5205092lyJDDK','8jAfXjJ','8150130eBHtMO','1269654QNzkDX','1318dsEoqr','21983995CpEmiO','10tiuFNO','10908423jAnRhp','3KkffbY'];a224_0x319e=function(){return _0x5161de;};return a224_0x319e();}var a224_0x306415=a224_0x321a;(function(_0x2e63b3,_0x31a622){var _0x5b8bca=a224_0x321a,_0x4670e0=_0x2e63b3();while(!![]){try{var _0x31e0bb=parseInt(_0x5b8bca(0x1cf))/0x1*(parseInt(_0x5b8bca(0x1c9))/0x2)+-parseInt(_0x5b8bca(0x1cd))/0x3*(-parseInt(_0x5b8bca(0x1d1))/0x4)+-parseInt(_0x5b8bca(0x1cb))/0x5*(-parseInt(_0x5b8bca(0x1d4))/0x6)+-parseInt(_0x5b8bca(0x1ce))/0x7+parseInt(_0x5b8bca(0x1d2))/0x8*(-parseInt(_0x5b8bca(0x1cc))/0x9)+-parseInt(_0x5b8bca(0x1d3))/0xa+parseInt(_0x5b8bca(0x1ca))/0xb;if(_0x31e0bb===_0x31a622)break;else _0x4670e0['push'](_0x4670e0['shift']());}catch(_0x4dafb4){_0x4670e0['push'](_0x4670e0['shift']());}}}(a224_0x319e,0xc1f9a));function a224_0x321a(_0x2e3c99,_0x2c04e0){_0x2e3c99=_0x2e3c99-0x1c9;var _0x319ed5=a224_0x319e();var _0x321a95=_0x319ed5[_0x2e3c99];return _0x321a95;}export class NullHandler{[a224_0x306415(0x1d0)](_0x567da2){}}
@@ -1 +1 @@
1
- (function(_0x43842b,_0x26a0a5){var _0x6eb302=a224_0x2288,_0x5a3657=_0x43842b();while(!![]){try{var _0x55b1ca=-parseInt(_0x6eb302(0x15c))/0x1*(parseInt(_0x6eb302(0x159))/0x2)+-parseInt(_0x6eb302(0x160))/0x3+-parseInt(_0x6eb302(0x158))/0x4*(parseInt(_0x6eb302(0x15a))/0x5)+parseInt(_0x6eb302(0x162))/0x6+-parseInt(_0x6eb302(0x15e))/0x7*(parseInt(_0x6eb302(0x15f))/0x8)+-parseInt(_0x6eb302(0x161))/0x9*(-parseInt(_0x6eb302(0x15d))/0xa)+parseInt(_0x6eb302(0x15b))/0xb;if(_0x55b1ca===_0x26a0a5)break;else _0x5a3657['push'](_0x5a3657['shift']());}catch(_0x30b838){_0x5a3657['push'](_0x5a3657['shift']());}}}(a224_0x5950,0x41d80));function a224_0x5950(){var _0x1c6fc2=['25464yfArvn','5FSxEiI','6464887FetoTj','31XxnkvR','10JJtDna','1660253SqpvFj','8GJvOCu','140589DzTBVi','3215529AKduOn','2231058fDASUN','1473644yXiqWW'];a224_0x5950=function(){return _0x1c6fc2;};return a224_0x5950();}export{Logger}from'./logger.js';function a224_0x2288(_0x28ef39,_0x13ec7b){_0x28ef39=_0x28ef39-0x158;var _0x595070=a224_0x5950();var _0x228862=_0x595070[_0x28ef39];return _0x228862;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x17f35b,_0x5cd877){var _0x572671=a225_0x3440,_0x2d706b=_0x17f35b();while(!![]){try{var _0x4d261a=parseInt(_0x572671(0xc7))/0x1*(-parseInt(_0x572671(0xc4))/0x2)+parseInt(_0x572671(0xc3))/0x3*(parseInt(_0x572671(0xc2))/0x4)+-parseInt(_0x572671(0xcb))/0x5*(parseInt(_0x572671(0xc9))/0x6)+parseInt(_0x572671(0xc1))/0x7+parseInt(_0x572671(0xc0))/0x8*(-parseInt(_0x572671(0xca))/0x9)+parseInt(_0x572671(0xc5))/0xa*(parseInt(_0x572671(0xc8))/0xb)+parseInt(_0x572671(0xc6))/0xc*(parseInt(_0x572671(0xbf))/0xd);if(_0x4d261a===_0x5cd877)break;else _0x2d706b['push'](_0x2d706b['shift']());}catch(_0x26de62){_0x2d706b['push'](_0x2d706b['shift']());}}}(a225_0xe10e,0xe8ae8));export{Logger}from'./logger.js';function a225_0x3440(_0x443bef,_0x5e1c3b){_0x443bef=_0x443bef-0xbf;var _0xe10e8d=a225_0xe10e();var _0x3440f7=_0xe10e8d[_0x443bef];return _0x3440f7;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a225_0xe10e(){var _0x3608fc=['2457169BJmOHN','480tGSdJi','12226431uQDAFs','12RyHjid','1695501KnDTYB','2ViJyRP','59190ueBkjf','132hVmtHl','1342585vBcByK','187yQxidP','6uIgFcA','243972Ehdula','8498855NiCuTv'];a225_0xe10e=function(){return _0x3608fc;};return a225_0xe10e();}