@treasuredata/tdx 2026.4.0 → 2026.4.1

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 (219) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/frontmatter.js +1 -1
  182. package/dist/sdk/workspace/git.js +1 -1
  183. package/dist/sdk/workspace/index.js +1 -1
  184. package/dist/sdk/workspace/templates.js +1 -1
  185. package/dist/sdk/workspace/weekly.js +1 -1
  186. package/dist/sdk/workspace/wikilinks.js +1 -1
  187. package/dist/test-utils/command-runner.js +1 -1
  188. package/dist/test-utils/factories.js +1 -1
  189. package/dist/test-utils/fixtures.js +1 -1
  190. package/dist/test-utils/http-mock.js +1 -1
  191. package/dist/test-utils/index.js +1 -1
  192. package/dist/utils/async.js +1 -1
  193. package/dist/utils/colors.js +1 -1
  194. package/dist/utils/diff.js +1 -1
  195. package/dist/utils/file-permissions.js +1 -1
  196. package/dist/utils/file-reader.js +1 -1
  197. package/dist/utils/github-releases.js +1 -1
  198. package/dist/utils/global-cache.js +1 -1
  199. package/dist/utils/json-loader.js +1 -1
  200. package/dist/utils/local-cache.js +1 -1
  201. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  202. package/dist/utils/logger/formatters/index.js +1 -1
  203. package/dist/utils/logger/handlers/console-handler.js +1 -1
  204. package/dist/utils/logger/handlers/file-handler.js +1 -1
  205. package/dist/utils/logger/handlers/index.js +1 -1
  206. package/dist/utils/logger/handlers/null-handler.js +1 -1
  207. package/dist/utils/logger/index.js +1 -1
  208. package/dist/utils/logger/logger.js +1 -1
  209. package/dist/utils/logger/types.js +1 -1
  210. package/dist/utils/option-validation.js +1 -1
  211. package/dist/utils/process.js +1 -1
  212. package/dist/utils/prompt.js +1 -1
  213. package/dist/utils/spinner.js +1 -1
  214. package/dist/utils/sse-parser.js +1 -1
  215. package/dist/utils/string-utils.js +1 -1
  216. package/dist/utils/table-ref-parser.js +1 -1
  217. package/dist/utils/tdx-logger.js +1 -1
  218. package/dist/utils/version-check.js +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- function a206_0x4ccb(_0xc82aa8,_0x5392e1){_0xc82aa8=_0xc82aa8-0x94;const _0x1a4452=a206_0x1a44();let _0x4ccbdf=_0x1a4452[_0xc82aa8];return _0x4ccbdf;}const a206_0x4f15c8=a206_0x4ccb;function a206_0x1a44(){const _0xda1601=['get','stack','application/json','withHost','7SGZhhc','6361836kIMUiX','responder','getLastRequest','7267887qKLlaL','toLowerCase','REST','jsonResponse','function','split','Conflict','toUpperCase','mockImplementation','Registered\x20stubs:\x0a','Created','https://api.treasuredata.com/errors/','forEach','Unauthorized','pathname','reset','Request\x20body:\x20','method','withBody','No\x20stub\x20matched\x20request:\x20','matched','fail','GET','587184xfwXPQ','includes','parseRequest','6FwheTq','registerWithInspector','entries','simple','8qBelTz','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','matcher','parse','length','requests','stringify','isArray','Bad\x20Gateway','register','description','\x20registered\x20at:\x0a','verify','headers','searchParams','8606320lrqMqO','stubs','jsonResponseWithHeaders','body','getStatusText','withQuery','td-api','textResponse','Unmatched\x20stub','No\x20Content','text/plain','url','join','host','test','getMatchCount','unnamed\x20stub','Too\x20Many\x20Requests','networkError','Internal\x20Server\x20Error','string','286940mLmJfs','1822180fdzWys','692885UIQuSb','Unknown','wasCalled','matchCount','filter','Not\x20Found','errorResponse','error','fetchMock'];a206_0x1a44=function(){return _0xda1601;};return a206_0x1a44();}(function(_0x1e8339,_0x161e67){const _0x1d89f3=a206_0x4ccb,_0x5bcc0c=_0x1e8339();while(!![]){try{const _0x22654c=parseInt(_0x1d89f3(0x94))/0x1+-parseInt(_0x1d89f3(0xc4))/0x2*(-parseInt(_0x1d89f3(0xbd))/0x3)+-parseInt(_0x1d89f3(0xa3))/0x4+-parseInt(_0x1d89f3(0x95))/0x5*(-parseInt(_0x1d89f3(0xc0))/0x6)+parseInt(_0x1d89f3(0xa2))/0x7*(-parseInt(_0x1d89f3(0xd3))/0x8)+parseInt(_0x1d89f3(0xa6))/0x9+parseInt(_0x1d89f3(0xe8))/0xa;if(_0x22654c===_0x161e67)break;else _0x5bcc0c['push'](_0x5bcc0c['shift']());}catch(_0x45eb8d){_0x5bcc0c['push'](_0x5bcc0c['shift']());}}}(a206_0x1a44,0xdf0f9));import{vi}from'vitest';export class HTTPMockRegistry{[a206_0x4f15c8(0xd4)]=[];[a206_0x4f15c8(0xc9)]=[];[a206_0x4f15c8(0x9d)]=null;[a206_0x4f15c8(0xa8)](_0xfff5c3,_0x5cbf7c){return _0x4b3687=>{const _0x1e39e5=a206_0x4ccb;if(_0x4b3687[_0x1e39e5(0xb7)][_0x1e39e5(0xad)]()!==_0xfff5c3['toUpperCase']())return![];const _0x8722af=new URL(_0x4b3687[_0x1e39e5(0xde)]);if(typeof _0x5cbf7c===_0x1e39e5(0xe7))return _0x8722af[_0x1e39e5(0xb4)]===_0x5cbf7c||_0x8722af[_0x1e39e5(0xb4)][_0x1e39e5(0xbe)](_0x5cbf7c);return _0x5cbf7c[_0x1e39e5(0xe1)](_0x8722af[_0x1e39e5(0xb4)]);};}[a206_0x4f15c8(0xd8)](_0x24e86a,_0x584301){return _0x3f6231=>{const _0x12d13c=a206_0x4ccb;if(!_0x24e86a(_0x3f6231))return![];const _0x2c1e37=new URL(_0x3f6231['url']);return Object[_0x12d13c(0xc2)](_0x584301)['every'](([_0xbf8b60,_0x5f125b])=>_0x2c1e37[_0x12d13c(0xd2)][_0x12d13c(0x9e)](_0xbf8b60)===_0x5f125b);};}[a206_0x4f15c8(0xb8)](_0x5a36fd,_0x36a8ae){return _0x5e3404=>{const _0x220307=a206_0x4ccb;if(!_0x5a36fd(_0x5e3404))return![];if(typeof _0x36a8ae===_0x220307(0xaa))return _0x36a8ae(_0x5e3404[_0x220307(0xd6)]);return JSON[_0x220307(0xca)](_0x5e3404[_0x220307(0xd6)])===JSON['stringify'](_0x36a8ae);};}[a206_0x4f15c8(0xa1)](_0x3502fe,_0x41d994){return _0x3dde39=>{const _0x1f636d=a206_0x4ccb;if(!_0x3502fe(_0x3dde39))return![];const _0x29e148=new URL(_0x3dde39[_0x1f636d(0xde)]);return _0x29e148[_0x1f636d(0xe0)]===_0x41d994;};}[a206_0x4f15c8(0xcd)](_0x4b9244,_0x4c1d4e,_0x170dbf){const _0x52c9f4=a206_0x4f15c8;this[_0x52c9f4(0xd4)]['push']({'matcher':_0x4b9244,'responder':_0x4c1d4e,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x170dbf?.[_0x52c9f4(0xce)]});}[a206_0x4f15c8(0xc1)](_0x430026,_0x15c3bb,_0x392cfc){const _0x2e8e25=a206_0x4f15c8,_0x578dfd=_0x1e7be2=>{const _0xa4bab5=a206_0x4ccb;return _0x392cfc(_0x1e7be2[_0xa4bab5(0xd6)],_0x1e7be2),_0x15c3bb(_0x1e7be2);};this[_0x2e8e25(0xcd)](_0x430026,_0x578dfd);}static[a206_0x4f15c8(0xa9)](_0x1ed49a,_0x3dcae3=0xc8){const _0xd2d05c=a206_0x4f15c8;return()=>new Response(JSON['stringify'](_0x1ed49a),{'status':_0x3dcae3,'headers':{'Content-Type':_0xd2d05c(0xa0)}});}static[a206_0x4f15c8(0x9b)](_0x285581,_0x53ac14,_0x52fec3=a206_0x4f15c8(0xc3)){return()=>{const _0x52c71c=a206_0x4ccb;let _0x3fdc9b;switch(_0x52fec3){case _0x52c71c(0xd9):_0x3fdc9b={'errors':{'error':_0x53ac14,'message':_0x53ac14,'severity':_0x52c71c(0x9c),'status_code':_0x285581}};break;case'rfc9457':_0x3fdc9b={'type':_0x52c71c(0xb1)+_0x285581,'title':HTTPMockRegistry[_0x52c71c(0xd7)](_0x285581),'status':_0x285581,'detail':_0x53ac14};break;default:_0x3fdc9b={'error':_0x53ac14};}return new Response(JSON[_0x52c71c(0xca)](_0x3fdc9b),{'status':_0x285581,'headers':{'Content-Type':_0x52c71c(0xa0)}});};}static[a206_0x4f15c8(0xd5)](_0x99e5a9,_0x2fdcbc,_0x1f4dfd=0xc8){const _0x20d154=a206_0x4f15c8;return()=>new Response(JSON['stringify'](_0x99e5a9),{'status':_0x1f4dfd,'headers':{'Content-Type':_0x20d154(0xa0),..._0x2fdcbc}});}static[a206_0x4f15c8(0xda)](_0x5e956e,_0x128fe9=0xc8){const _0x17ee7b=a206_0x4f15c8;return()=>new Response(_0x5e956e,{'status':_0x128fe9,'headers':{'Content-Type':_0x17ee7b(0xdd)}});}static[a206_0x4f15c8(0xe5)](_0x5f345c){return()=>{throw new Error(_0x5f345c);};}['createFetch'](){const _0x3c161b=a206_0x4f15c8;return this['fetchMock']=vi['fn']()[_0x3c161b(0xae)](async(_0x511c8e,_0x511a2e)=>{const _0x32b29e=_0x3c161b,_0x470ad5=this[_0x32b29e(0xbf)](_0x511c8e,_0x511a2e);this[_0x32b29e(0xc9)]['push'](_0x470ad5);for(const _0x53a741 of this['stubs']){if(_0x53a741[_0x32b29e(0xc6)](_0x470ad5))return _0x53a741['matched']=!![],_0x53a741[_0x32b29e(0x98)]++,_0x53a741[_0x32b29e(0xa4)](_0x470ad5);}const _0x349334=this[_0x32b29e(0xd4)]['map']((_0xc69332,_0x438577)=>'\x20\x20'+(_0x438577+0x1)+'.\x20'+(_0xc69332[_0x32b29e(0xce)]??_0x32b29e(0xe3)))[_0x32b29e(0xdf)]('\x0a');throw new Error(_0x32b29e(0xb9)+_0x470ad5[_0x32b29e(0xb7)]+'\x20'+_0x470ad5[_0x32b29e(0xde)]+'\x0a'+(_0x32b29e(0xb6)+JSON['stringify'](_0x470ad5[_0x32b29e(0xd6)])+'\x0a')+(_0x32b29e(0xaf)+(_0x349334||'\x20\x20(none)')));}),this[_0x3c161b(0x9d)];}['parseRequest'](_0x9bd01c,_0x5cf6a6){const _0x590653=a206_0x4f15c8,_0x2a0077={};if(_0x5cf6a6?.[_0x590653(0xd1)]){if(_0x5cf6a6[_0x590653(0xd1)]instanceof Headers)_0x5cf6a6['headers'][_0x590653(0xb2)]((_0x40c4f9,_0x4cfbc0)=>{const _0x31df2e=_0x590653;_0x2a0077[_0x4cfbc0[_0x31df2e(0xa7)]()]=_0x40c4f9;});else{if(Array[_0x590653(0xcb)](_0x5cf6a6[_0x590653(0xd1)]))for(const [_0x324ac2,_0x15c3b7]of _0x5cf6a6[_0x590653(0xd1)]){_0x2a0077[_0x324ac2['toLowerCase']()]=_0x15c3b7;}else for(const [_0x329a45,_0x512779]of Object[_0x590653(0xc2)](_0x5cf6a6['headers'])){_0x512779!==undefined&&(_0x2a0077[_0x329a45[_0x590653(0xa7)]()]=_0x512779);}}}let _0x1f995e;if(_0x5cf6a6?.[_0x590653(0xd6)])try{_0x1f995e=JSON[_0x590653(0xc7)](_0x5cf6a6[_0x590653(0xd6)]);}catch{_0x1f995e=_0x5cf6a6['body'];}return{'method':_0x5cf6a6?.['method']??_0x590653(0xbc),'url':_0x9bd01c,'headers':_0x2a0077,'body':_0x1f995e};}[a206_0x4f15c8(0xd0)](_0x3ea731){const _0x2cfa07=a206_0x4f15c8,_0x39790d=this[_0x2cfa07(0xd4)][_0x2cfa07(0x99)](_0x1d80c3=>!_0x1d80c3[_0x2cfa07(0xba)]);if(_0x39790d[_0x2cfa07(0xc8)]>0x0){const _0x42efc4=_0x39790d['map'](_0x2d8f59=>{const _0x461d40=_0x2cfa07,_0x2d4e39=_0x2d8f59[_0x461d40(0xce)]?'\x20('+_0x2d8f59[_0x461d40(0xce)]+')':'',_0x4d7fa6=_0x2d8f59[_0x461d40(0x9f)][_0x461d40(0xab)]('\x0a')['slice'](0x2,0x5)[_0x461d40(0xdf)]('\x0a');return _0x461d40(0xdb)+_0x2d4e39+_0x461d40(0xcf)+_0x4d7fa6;});_0x3ea731[_0x2cfa07(0xbb)](_0x39790d[_0x2cfa07(0xc8)]+_0x2cfa07(0xc5)+_0x42efc4['join']('\x0a\x0a'));}}['getRequests'](){const _0x4e09d8=a206_0x4f15c8;return[...this[_0x4e09d8(0xc9)]];}[a206_0x4f15c8(0xa5)](){const _0x22c79a=a206_0x4f15c8;return this[_0x22c79a(0xc9)][this[_0x22c79a(0xc9)]['length']-0x1];}[a206_0x4f15c8(0x97)](_0x6e8282,_0x3e3b3b){const _0x597592=a206_0x4f15c8;return this[_0x597592(0xc9)]['some'](_0x40e3d9=>{const _0x2ea1f4=_0x597592;if(_0x40e3d9['method'][_0x2ea1f4(0xad)]()!==_0x6e8282[_0x2ea1f4(0xad)]())return![];if(typeof _0x3e3b3b===_0x2ea1f4(0xe7))return _0x40e3d9[_0x2ea1f4(0xde)]['includes'](_0x3e3b3b);return _0x3e3b3b[_0x2ea1f4(0xe1)](_0x40e3d9['url']);});}[a206_0x4f15c8(0xe2)](_0x3eea6c){const _0x19aa83=a206_0x4f15c8;return this[_0x19aa83(0xd4)][_0x3eea6c]?.['matchCount']??0x0;}[a206_0x4f15c8(0xb5)](){const _0x5d711e=a206_0x4f15c8;this[_0x5d711e(0xd4)]=[],this[_0x5d711e(0xc9)]=[],this['fetchMock']=null;}static[a206_0x4f15c8(0xd7)](_0x1c036a){const _0x5254bb=a206_0x4f15c8,_0x15ce02={0xc8:'OK',0xc9:_0x5254bb(0xb0),0xcc:_0x5254bb(0xdc),0x190:'Bad\x20Request',0x191:_0x5254bb(0xb3),0x193:'Forbidden',0x194:_0x5254bb(0x9a),0x199:_0x5254bb(0xac),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x5254bb(0xe4),0x1f4:_0x5254bb(0xe6),0x1f6:_0x5254bb(0xcc),0x1f7:'Service\x20Unavailable'};return _0x15ce02[_0x1c036a]??_0x5254bb(0x96);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a206_0x173d05=a206_0x3f5b;function a206_0x3f5b(_0x529449,_0x5e4124){_0x529449=_0x529449-0x148;const _0xcf6a2b=a206_0xcf6a();let _0x3f5bdb=_0xcf6a2b[_0x529449];return _0x3f5bdb;}(function(_0x31cea0,_0x5ffc0b){const _0x451792=a206_0x3f5b,_0x48ac27=_0x31cea0();while(!![]){try{const _0x5dc7d4=parseInt(_0x451792(0x15d))/0x1*(parseInt(_0x451792(0x14e))/0x2)+parseInt(_0x451792(0x14d))/0x3*(parseInt(_0x451792(0x163))/0x4)+-parseInt(_0x451792(0x157))/0x5*(parseInt(_0x451792(0x17a))/0x6)+parseInt(_0x451792(0x17d))/0x7*(parseInt(_0x451792(0x177))/0x8)+parseInt(_0x451792(0x197))/0x9*(parseInt(_0x451792(0x14c))/0xa)+-parseInt(_0x451792(0x18d))/0xb*(-parseInt(_0x451792(0x15e))/0xc)+-parseInt(_0x451792(0x14a))/0xd;if(_0x5dc7d4===_0x5ffc0b)break;else _0x48ac27['push'](_0x48ac27['shift']());}catch(_0x21fef9){_0x48ac27['push'](_0x48ac27['shift']());}}}(a206_0xcf6a,0x249e2));function a206_0xcf6a(){const _0x105902=['jsonResponseWithHeaders','171EIOqwv','test','withBody','withHost','text/plain','Bad\x20Request','Conflict','https://api.treasuredata.com/errors/','register','toLowerCase','matchCount','includes','jsonResponse','No\x20Content','stubs','string','5012397Lrnsal','simple','51980ivTroc','417tiKOgd','414486drTdiH','url','fetchMock','method','mockImplementation','slice','join','requests','isArray','33430fTntKj','headers','textResponse','split','every','Unauthorized','1YDdjiR','180opBjQM','parseRequest','\x20\x20(none)','Internal\x20Server\x20Error','matcher','2372CvrwPE','Created','Bad\x20Gateway','REST','some','Registered\x20stubs:\x0a','host','entries','getRequests','getStatusText','description','withQuery','pathname','Unprocessable\x20Entity','\x20registered\x20at:\x0a','Service\x20Unavailable','toUpperCase','map','networkError','verify','8LtAQvI','error','Unknown','150fJyiGv','stack','getLastRequest','1606346wykYWA','Request\x20body:\x20','td-api','searchParams','Unmatched\x20stub','unnamed\x20stub','body','wasCalled','getMatchCount','filter','parse','responder','forEach','Forbidden','reset','Not\x20Found','62183WEOOKh','stringify','errorResponse','length','matched','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','application/json','push','get'];a206_0xcf6a=function(){return _0x105902;};return a206_0xcf6a();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];['requests']=[];[a206_0x173d05(0x150)]=null;[a206_0x173d05(0x166)](_0x2fecf2,_0x43fe26){return _0xc65e8a=>{const _0x37113b=a206_0x3f5b;if(_0xc65e8a[_0x37113b(0x151)][_0x37113b(0x173)]()!==_0x2fecf2[_0x37113b(0x173)]())return![];const _0x40b48d=new URL(_0xc65e8a[_0x37113b(0x14f)]);if(typeof _0x43fe26==='string')return _0x40b48d[_0x37113b(0x16f)]===_0x43fe26||_0x40b48d['pathname'][_0x37113b(0x1a2)](_0x43fe26);return _0x43fe26['test'](_0x40b48d[_0x37113b(0x16f)]);};}[a206_0x173d05(0x16e)](_0x35c9ec,_0x4dbc78){return _0x46b1b7=>{const _0x2c1a8e=a206_0x3f5b;if(!_0x35c9ec(_0x46b1b7))return![];const _0x30b6f9=new URL(_0x46b1b7[_0x2c1a8e(0x14f)]);return Object[_0x2c1a8e(0x16a)](_0x4dbc78)[_0x2c1a8e(0x15b)](([_0x2611b5,_0x11aa0f])=>_0x30b6f9[_0x2c1a8e(0x180)][_0x2c1a8e(0x195)](_0x2611b5)===_0x11aa0f);};}[a206_0x173d05(0x199)](_0x4800bc,_0x3f4b49){return _0x12c734=>{const _0x20d243=a206_0x3f5b;if(!_0x4800bc(_0x12c734))return![];if(typeof _0x3f4b49==='function')return _0x3f4b49(_0x12c734[_0x20d243(0x183)]);return JSON[_0x20d243(0x18e)](_0x12c734['body'])===JSON[_0x20d243(0x18e)](_0x3f4b49);};}[a206_0x173d05(0x19a)](_0x1e9978,_0x5698a4){return _0xd138b5=>{const _0x36fbc1=a206_0x3f5b;if(!_0x1e9978(_0xd138b5))return![];const _0x44f763=new URL(_0xd138b5[_0x36fbc1(0x14f)]);return _0x44f763[_0x36fbc1(0x169)]===_0x5698a4;};}[a206_0x173d05(0x19f)](_0x5b7b23,_0x917efc,_0x501224){const _0x5271d0=a206_0x173d05;this[_0x5271d0(0x148)][_0x5271d0(0x194)]({'matcher':_0x5b7b23,'responder':_0x917efc,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5271d0(0x17b)]??'','description':_0x501224?.[_0x5271d0(0x16d)]});}['registerWithInspector'](_0x50d0af,_0x2b67da,_0x48b1ad){const _0x1d7678=_0x38afbd=>{const _0x158a52=a206_0x3f5b;return _0x48b1ad(_0x38afbd[_0x158a52(0x183)],_0x38afbd),_0x2b67da(_0x38afbd);};this['register'](_0x50d0af,_0x1d7678);}static[a206_0x173d05(0x1a3)](_0x3224e4,_0x304b2a=0xc8){const _0x187a52=a206_0x173d05;return()=>new Response(JSON[_0x187a52(0x18e)](_0x3224e4),{'status':_0x304b2a,'headers':{'Content-Type':'application/json'}});}static[a206_0x173d05(0x18f)](_0x5e0a96,_0x493601,_0x1ae557=a206_0x173d05(0x14b)){return()=>{const _0x558bc7=a206_0x3f5b;let _0x366515;switch(_0x1ae557){case _0x558bc7(0x17f):_0x366515={'errors':{'error':_0x493601,'message':_0x493601,'severity':_0x558bc7(0x178),'status_code':_0x5e0a96}};break;case'rfc9457':_0x366515={'type':_0x558bc7(0x19e)+_0x5e0a96,'title':HTTPMockRegistry['getStatusText'](_0x5e0a96),'status':_0x5e0a96,'detail':_0x493601};break;default:_0x366515={'error':_0x493601};}return new Response(JSON[_0x558bc7(0x18e)](_0x366515),{'status':_0x5e0a96,'headers':{'Content-Type':_0x558bc7(0x193)}});};}static[a206_0x173d05(0x196)](_0x38fcd2,_0x3b40ce,_0x38abff=0xc8){const _0x4c4eff=a206_0x173d05;return()=>new Response(JSON[_0x4c4eff(0x18e)](_0x38fcd2),{'status':_0x38abff,'headers':{'Content-Type':_0x4c4eff(0x193),..._0x3b40ce}});}static[a206_0x173d05(0x159)](_0x4d9766,_0x3baff2=0xc8){const _0x961fe1=a206_0x173d05;return()=>new Response(_0x4d9766,{'status':_0x3baff2,'headers':{'Content-Type':_0x961fe1(0x19b)}});}static[a206_0x173d05(0x175)](_0x3c2a0b){return()=>{throw new Error(_0x3c2a0b);};}['createFetch'](){const _0x41c97d=a206_0x173d05;return this[_0x41c97d(0x150)]=vi['fn']()[_0x41c97d(0x152)](async(_0x2d7411,_0x48d45c)=>{const _0x120df9=_0x41c97d,_0x15327c=this[_0x120df9(0x15f)](_0x2d7411,_0x48d45c);this[_0x120df9(0x155)][_0x120df9(0x194)](_0x15327c);for(const _0x23a16d of this[_0x120df9(0x148)]){if(_0x23a16d[_0x120df9(0x162)](_0x15327c))return _0x23a16d[_0x120df9(0x191)]=!![],_0x23a16d['matchCount']++,_0x23a16d[_0x120df9(0x188)](_0x15327c);}const _0x2164a8=this['stubs'][_0x120df9(0x174)]((_0x157040,_0x4cc1c7)=>'\x20\x20'+(_0x4cc1c7+0x1)+'.\x20'+(_0x157040[_0x120df9(0x16d)]??_0x120df9(0x182)))[_0x120df9(0x154)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x15327c['method']+'\x20'+_0x15327c['url']+'\x0a'+(_0x120df9(0x17e)+JSON[_0x120df9(0x18e)](_0x15327c['body'])+'\x0a')+(_0x120df9(0x168)+(_0x2164a8||_0x120df9(0x160))));}),this['fetchMock'];}[a206_0x173d05(0x15f)](_0x2d7438,_0x2c891d){const _0x3145b7=a206_0x173d05,_0x1f1f82={};if(_0x2c891d?.[_0x3145b7(0x158)]){if(_0x2c891d[_0x3145b7(0x158)]instanceof Headers)_0x2c891d[_0x3145b7(0x158)][_0x3145b7(0x189)]((_0x28a7fb,_0x5afda0)=>{const _0x3d10dd=_0x3145b7;_0x1f1f82[_0x5afda0[_0x3d10dd(0x1a0)]()]=_0x28a7fb;});else{if(Array[_0x3145b7(0x156)](_0x2c891d['headers']))for(const [_0x50f559,_0x240f7d]of _0x2c891d[_0x3145b7(0x158)]){_0x1f1f82[_0x50f559[_0x3145b7(0x1a0)]()]=_0x240f7d;}else for(const [_0x1625a9,_0x3988cc]of Object[_0x3145b7(0x16a)](_0x2c891d[_0x3145b7(0x158)])){_0x3988cc!==undefined&&(_0x1f1f82[_0x1625a9[_0x3145b7(0x1a0)]()]=_0x3988cc);}}}let _0x121c67;if(_0x2c891d?.[_0x3145b7(0x183)])try{_0x121c67=JSON[_0x3145b7(0x187)](_0x2c891d[_0x3145b7(0x183)]);}catch{_0x121c67=_0x2c891d[_0x3145b7(0x183)];}return{'method':_0x2c891d?.[_0x3145b7(0x151)]??'GET','url':_0x2d7438,'headers':_0x1f1f82,'body':_0x121c67};}[a206_0x173d05(0x176)](_0x2bc3db){const _0x38924e=a206_0x173d05,_0x1c39a9=this[_0x38924e(0x148)][_0x38924e(0x186)](_0x38e5b2=>!_0x38e5b2[_0x38924e(0x191)]);if(_0x1c39a9['length']>0x0){const _0x3da3e1=_0x1c39a9[_0x38924e(0x174)](_0x5db075=>{const _0x104c84=_0x38924e,_0x84a616=_0x5db075[_0x104c84(0x16d)]?'\x20('+_0x5db075[_0x104c84(0x16d)]+')':'',_0x5b3449=_0x5db075['stack'][_0x104c84(0x15a)]('\x0a')[_0x104c84(0x153)](0x2,0x5)['join']('\x0a');return _0x104c84(0x181)+_0x84a616+_0x104c84(0x171)+_0x5b3449;});_0x2bc3db['fail'](_0x1c39a9[_0x38924e(0x190)]+_0x38924e(0x192)+_0x3da3e1[_0x38924e(0x154)]('\x0a\x0a'));}}[a206_0x173d05(0x16b)](){const _0x272f54=a206_0x173d05;return[...this[_0x272f54(0x155)]];}[a206_0x173d05(0x17c)](){const _0x55a0e0=a206_0x173d05;return this[_0x55a0e0(0x155)][this[_0x55a0e0(0x155)][_0x55a0e0(0x190)]-0x1];}[a206_0x173d05(0x184)](_0x2f5050,_0xc7380f){const _0x52b2e3=a206_0x173d05;return this[_0x52b2e3(0x155)][_0x52b2e3(0x167)](_0x33552f=>{const _0x3d5c32=_0x52b2e3;if(_0x33552f[_0x3d5c32(0x151)][_0x3d5c32(0x173)]()!==_0x2f5050[_0x3d5c32(0x173)]())return![];if(typeof _0xc7380f===_0x3d5c32(0x149))return _0x33552f[_0x3d5c32(0x14f)][_0x3d5c32(0x1a2)](_0xc7380f);return _0xc7380f[_0x3d5c32(0x198)](_0x33552f[_0x3d5c32(0x14f)]);});}[a206_0x173d05(0x185)](_0x406562){const _0x1c58f9=a206_0x173d05;return this[_0x1c58f9(0x148)][_0x406562]?.[_0x1c58f9(0x1a1)]??0x0;}[a206_0x173d05(0x18b)](){const _0x47f1ae=a206_0x173d05;this['stubs']=[],this[_0x47f1ae(0x155)]=[],this[_0x47f1ae(0x150)]=null;}static[a206_0x173d05(0x16c)](_0x5daace){const _0x59b145=a206_0x173d05,_0x4b4a69={0xc8:'OK',0xc9:_0x59b145(0x164),0xcc:_0x59b145(0x1a4),0x190:_0x59b145(0x19c),0x191:_0x59b145(0x15c),0x193:_0x59b145(0x18a),0x194:_0x59b145(0x18c),0x199:_0x59b145(0x19d),0x1a6:_0x59b145(0x170),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x59b145(0x161),0x1f6:_0x59b145(0x165),0x1f7:_0x59b145(0x172)};return _0x4b4a69[_0x5daace]??_0x59b145(0x179);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x393c28,_0x310d9e){var _0x28aa6a=a207_0xa663,_0x2545f8=_0x393c28();while(!![]){try{var _0x32355d=parseInt(_0x28aa6a(0x159))/0x1*(-parseInt(_0x28aa6a(0x150))/0x2)+-parseInt(_0x28aa6a(0x151))/0x3*(-parseInt(_0x28aa6a(0x155))/0x4)+parseInt(_0x28aa6a(0x156))/0x5+-parseInt(_0x28aa6a(0x157))/0x6*(parseInt(_0x28aa6a(0x14f))/0x7)+-parseInt(_0x28aa6a(0x14e))/0x8*(parseInt(_0x28aa6a(0x153))/0x9)+-parseInt(_0x28aa6a(0x152))/0xa*(parseInt(_0x28aa6a(0x158))/0xb)+parseInt(_0x28aa6a(0x154))/0xc;if(_0x32355d===_0x310d9e)break;else _0x2545f8['push'](_0x2545f8['shift']());}catch(_0x4c327a){_0x2545f8['push'](_0x2545f8['shift']());}}}(a207_0x1ecd,0x6a2f3));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a207_0x1ecd(){var _0xf3e444=['1696340qUwisP','956370hmMKAf','1602420vCYLPD','2048794tTRxKb','18XsPZwy','16KbBCNo','14ruWnxK','86900GxNZJv','6gHcROh','20RFuqBK','2610711poIbms','19972716MaYcfx'];a207_0x1ecd=function(){return _0xf3e444;};return a207_0x1ecd();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a207_0xa663(_0x3cd1b1,_0x2bf798){_0x3cd1b1=_0x3cd1b1-0x14e;var _0x1ecd6e=a207_0x1ecd();var _0xa663e3=_0x1ecd6e[_0x3cd1b1];return _0xa663e3;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x4a2493,_0x3d9241){var _0x3573b0=a207_0x11ef,_0x57b557=_0x4a2493();while(!![]){try{var _0x16c59a=-parseInt(_0x3573b0(0x156))/0x1*(parseInt(_0x3573b0(0x150))/0x2)+parseInt(_0x3573b0(0x154))/0x3*(parseInt(_0x3573b0(0x155))/0x4)+-parseInt(_0x3573b0(0x15b))/0x5*(-parseInt(_0x3573b0(0x151))/0x6)+-parseInt(_0x3573b0(0x152))/0x7*(parseInt(_0x3573b0(0x159))/0x8)+-parseInt(_0x3573b0(0x158))/0x9*(-parseInt(_0x3573b0(0x153))/0xa)+parseInt(_0x3573b0(0x157))/0xb+-parseInt(_0x3573b0(0x15a))/0xc;if(_0x16c59a===_0x3d9241)break;else _0x57b557['push'](_0x57b557['shift']());}catch(_0x44ea9d){_0x57b557['push'](_0x57b557['shift']());}}}(a207_0x4b3a,0xd3f2b));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a207_0x11ef(_0x13366c,_0x2c9d69){_0x13366c=_0x13366c-0x150;var _0x4b3a6f=a207_0x4b3a();var _0x11efd7=_0x4b3a6f[_0x13366c];return _0x11efd7;}function a207_0x4b3a(){var _0x57b2c6=['12785484swimux','5GAchkN','1082DzYxws','8569014rrPWnd','14aEEIXT','11954730ryaTac','309PfGrsP','22016sazuat','1264htmGVj','587224qNrSwf','9JIiyIF','2506072ErasMr'];a207_0x4b3a=function(){return _0x57b2c6;};return a207_0x4b3a();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x182e09,_0x11fdb6){const _0x60278a=a208_0x2994,_0x149103=_0x182e09();while(!![]){try{const _0x489e15=-parseInt(_0x60278a(0x1c7))/0x1+-parseInt(_0x60278a(0x1c5))/0x2*(-parseInt(_0x60278a(0x1c2))/0x3)+parseInt(_0x60278a(0x1c1))/0x4+-parseInt(_0x60278a(0x1c0))/0x5*(-parseInt(_0x60278a(0x1c6))/0x6)+-parseInt(_0x60278a(0x1c3))/0x7+-parseInt(_0x60278a(0x1bd))/0x8*(parseInt(_0x60278a(0x1bc))/0x9)+parseInt(_0x60278a(0x1c4))/0xa;if(_0x489e15===_0x11fdb6)break;else _0x149103['push'](_0x149103['shift']());}catch(_0x130b07){_0x149103['push'](_0x149103['shift']());}}}(a208_0x9a99,0xe146f));function a208_0x2994(_0x459bc4,_0x27600b){_0x459bc4=_0x459bc4-0x1bc;const _0x9a9902=a208_0x9a99();let _0x299439=_0x9a9902[_0x459bc4];return _0x299439;}export async function batchAsync(_0x152311,_0x6ceee7,_0xe0f3c7=0xa){const _0xde4b0=a208_0x2994,_0x106650=[];for(let _0x271907=0x0;_0x271907<_0x152311['length'];_0x271907+=_0xe0f3c7){const _0x494760=_0x152311[_0xde4b0(0x1c8)](_0x271907,_0x271907+_0xe0f3c7),_0x5f35b1=await Promise[_0xde4b0(0x1be)](_0x494760['map'](_0x6ceee7));_0x106650[_0xde4b0(0x1bf)](..._0x5f35b1);}return _0x106650;}function a208_0x9a99(){const _0x24b313=['2Ycnmwo','6DJVxbZ','1458085tefOVl','slice','36xqKAKK','456360uNoqfT','all','push','9176990jSNeZh','385212ZjsirS','3439815VFuOSA','7075642MCdhtE','5415000Roxwpi'];a208_0x9a99=function(){return _0x24b313;};return a208_0x9a99();}
1
+ function a208_0x59bd(_0x27281e,_0x2ba11d){_0x27281e=_0x27281e-0xb3;const _0x364c8d=a208_0x364c();let _0x59bd0a=_0x364c8d[_0x27281e];return _0x59bd0a;}(function(_0x4093d9,_0x30fd6c){const _0x5a70d4=a208_0x59bd,_0x7b4f2f=_0x4093d9();while(!![]){try{const _0x13b885=parseInt(_0x5a70d4(0xbf))/0x1*(parseInt(_0x5a70d4(0xb6))/0x2)+-parseInt(_0x5a70d4(0xbb))/0x3+parseInt(_0x5a70d4(0xc0))/0x4+parseInt(_0x5a70d4(0xb7))/0x5*(parseInt(_0x5a70d4(0xbe))/0x6)+-parseInt(_0x5a70d4(0xb9))/0x7*(parseInt(_0x5a70d4(0xbd))/0x8)+-parseInt(_0x5a70d4(0xba))/0x9*(parseInt(_0x5a70d4(0xb8))/0xa)+-parseInt(_0x5a70d4(0xb4))/0xb*(parseInt(_0x5a70d4(0xbc))/0xc);if(_0x13b885===_0x30fd6c)break;else _0x7b4f2f['push'](_0x7b4f2f['shift']());}catch(_0x524ef3){_0x7b4f2f['push'](_0x7b4f2f['shift']());}}}(a208_0x364c,0x5d06e));export async function batchAsync(_0x358ae6,_0x4f657,_0x52845e=0xa){const _0x20e28c=a208_0x59bd,_0x471711=[];for(let _0x45ffd4=0x0;_0x45ffd4<_0x358ae6[_0x20e28c(0xb3)];_0x45ffd4+=_0x52845e){const _0x2d2f3e=_0x358ae6[_0x20e28c(0xb5)](_0x45ffd4,_0x45ffd4+_0x52845e),_0x260063=await Promise[_0x20e28c(0xc1)](_0x2d2f3e['map'](_0x4f657));_0x471711['push'](..._0x260063);}return _0x471711;}function a208_0x364c(){const _0x1f4212=['22gLpSAd','slice','1186ghHOyc','2174590pckoug','545400ujOvkc','954933WNEEXT','9wZDTlt','1800390PHLOCA','1315608VPSqGU','8UZoIig','6GhnmDz','661DYxDuh','2258016EWigdN','all','length'];a208_0x364c=function(){return _0x1f4212;};return a208_0x364c();}
@@ -1 +1 @@
1
- const a209_0x163244=a209_0x574d;(function(_0x4296e5,_0x424ff7){const _0x5b70a0=a209_0x574d,_0x3d02a4=_0x4296e5();while(!![]){try{const _0xce538c=-parseInt(_0x5b70a0(0x1e1))/0x1*(-parseInt(_0x5b70a0(0x1da))/0x2)+parseInt(_0x5b70a0(0x1e0))/0x3+-parseInt(_0x5b70a0(0x1d7))/0x4+-parseInt(_0x5b70a0(0x1e4))/0x5+-parseInt(_0x5b70a0(0x1e2))/0x6*(parseInt(_0x5b70a0(0x1d6))/0x7)+-parseInt(_0x5b70a0(0x1ed))/0x8+parseInt(_0x5b70a0(0x1e3))/0x9*(parseInt(_0x5b70a0(0x1eb))/0xa);if(_0xce538c===_0x424ff7)break;else _0x3d02a4['push'](_0x3d02a4['shift']());}catch(_0x5ef86c){_0x3d02a4['push'](_0x3d02a4['shift']());}}}(a209_0x5beb,0xb6edb));import*as a209_0x3d3e88 from'chalk';const Chalk=a209_0x3d3e88[a209_0x163244(0x1d2)];function a209_0x5beb(){const _0x3fed38=['string','49nJLfFV','789012UhWzpl','noColor','null','4mzCRlH','number','green','stdout','map','object','4076871hVdlCp','83981pkZdwa','406734lgNgUC','9bzlGyN','6673360UWOZvM','dim','entries','isArray','boolean','isTTY','blue','18589190ozRpOH','join','5040920aMrNOS','length','color','stringify','cyan','Chalk','repeat','yellow'];a209_0x5beb=function(){return _0x3fed38;};return a209_0x5beb();}export function shouldUseColor(_0x5e9b97={}){const _0x1ffea7=a209_0x163244;if(_0x5e9b97[_0x1ffea7(0x1d8)]===!![])return![];if(_0x5e9b97[_0x1ffea7(0x1cf)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1ffea7(0x1dd)][_0x1ffea7(0x1e9)]??![];}export function getChalk(_0x14d455={}){if(shouldUseColor(_0x14d455))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a209_0x574d(_0x335a87,_0x19d76e){_0x335a87=_0x335a87-0x1cf;const _0x5bebbc=a209_0x5beb();let _0x574dda=_0x5bebbc[_0x335a87];return _0x574dda;}export function colorBorder(_0x5815b1,_0x1a79c7={}){const _0x2f9514=a209_0x163244;return getChalk(_0x1a79c7)[_0x2f9514(0x1e5)](_0x5815b1);}export function colorHeader(_0x2b273b,_0xd2f4a2={}){const _0x56bdf8=a209_0x163244;return getChalk(_0xd2f4a2)[_0x56bdf8(0x1d1)](_0x2b273b);}export function colorType(_0x59c4b7,_0x28af39={}){return getChalk(_0x28af39)['dim'](_0x59c4b7);}export function colorJSONKey(_0x481104,_0x47c998={}){const _0x90ae08=a209_0x163244;return getChalk(_0x47c998)[_0x90ae08(0x1ea)](_0x481104);}export function colorJSONString(_0x465c2a,_0x11ebfb={}){const _0x9fc6d2=a209_0x163244;return getChalk(_0x11ebfb)[_0x9fc6d2(0x1dc)](_0x465c2a);}export function colorJSONNumber(_0xfae94c,_0x56ab3d={}){const _0x567f06=a209_0x163244;return getChalk(_0x56ab3d)[_0x567f06(0x1d1)](_0xfae94c);}export function colorJSONBoolean(_0xedd0c8,_0x2a76cc={}){const _0x20dcb7=a209_0x163244;return getChalk(_0x2a76cc)[_0x20dcb7(0x1d4)](_0xedd0c8);}export function colorJSONNull(_0x4ccf08,_0x3a335c={}){return getChalk(_0x3a335c)['dim'](_0x4ccf08);}export function colorizeJSONCompact(_0x5ed8fa,_0x2f9b97={}){const _0xf54c61=a209_0x163244;if(!shouldUseColor(_0x2f9b97))return JSON[_0xf54c61(0x1d0)](_0x5ed8fa);if(_0x5ed8fa===null)return colorJSONNull(_0xf54c61(0x1d9),_0x2f9b97);if(typeof _0x5ed8fa===_0xf54c61(0x1e8))return colorJSONBoolean(String(_0x5ed8fa),_0x2f9b97);if(typeof _0x5ed8fa===_0xf54c61(0x1db))return colorJSONNumber(String(_0x5ed8fa),_0x2f9b97);if(typeof _0x5ed8fa===_0xf54c61(0x1d5))return colorJSONString(JSON['stringify'](_0x5ed8fa),_0x2f9b97);if(Array[_0xf54c61(0x1e7)](_0x5ed8fa)){if(_0x5ed8fa[_0xf54c61(0x1ee)]===0x0)return'[]';const _0x4f8fba=_0x5ed8fa[_0xf54c61(0x1de)](_0x177f5a=>colorizeJSONCompact(_0x177f5a,_0x2f9b97));return'['+_0x4f8fba[_0xf54c61(0x1ec)](',')+']';}if(typeof _0x5ed8fa===_0xf54c61(0x1df)){const _0x1e2508=Object[_0xf54c61(0x1e6)](_0x5ed8fa);if(_0x1e2508[_0xf54c61(0x1ee)]===0x0)return'{}';const _0x15b9bf=_0x1e2508[_0xf54c61(0x1de)](([_0x2a90a5,_0x273880])=>{const _0x4110a0=_0xf54c61,_0x9bce59=colorJSONKey(JSON[_0x4110a0(0x1d0)](_0x2a90a5),_0x2f9b97),_0x47eeb9=colorizeJSONCompact(_0x273880,_0x2f9b97);return _0x9bce59+':'+_0x47eeb9;});return'{'+_0x15b9bf[_0xf54c61(0x1ec)](',')+'}';}return String(_0x5ed8fa);}export function colorizeJSON(_0x39407d,_0x453757={},_0x1071af=0x0){const _0x545436=a209_0x163244;if(!shouldUseColor(_0x453757))return JSON[_0x545436(0x1d0)](_0x39407d,null,0x2);const _0x25e457='\x20'[_0x545436(0x1d3)](_0x1071af),_0x284e85=_0x1071af+0x2;if(_0x39407d===null)return colorJSONNull(_0x545436(0x1d9),_0x453757);if(typeof _0x39407d===_0x545436(0x1e8))return colorJSONBoolean(String(_0x39407d),_0x453757);if(typeof _0x39407d===_0x545436(0x1db))return colorJSONNumber(String(_0x39407d),_0x453757);if(typeof _0x39407d==='string')return colorJSONString(JSON[_0x545436(0x1d0)](_0x39407d),_0x453757);if(Array[_0x545436(0x1e7)](_0x39407d)){if(_0x39407d[_0x545436(0x1ee)]===0x0)return'[]';const _0x237778=_0x39407d[_0x545436(0x1de)](_0x788eb4=>{const _0x155dd1=colorizeJSON(_0x788eb4,_0x453757,_0x284e85);return''+'\x20'['repeat'](_0x284e85)+_0x155dd1;});return'[\x0a'+_0x237778['join'](',\x0a')+('\x0a'+_0x25e457+']');}if(typeof _0x39407d==='object'){const _0x1d4193=Object[_0x545436(0x1e6)](_0x39407d);if(_0x1d4193['length']===0x0)return'{}';const _0x55bad7=_0x1d4193[_0x545436(0x1de)](([_0x4963b9,_0x112a00])=>{const _0x9fc26=_0x545436,_0x3e0eb1=colorJSONKey(JSON[_0x9fc26(0x1d0)](_0x4963b9),_0x453757),_0x162108=colorizeJSON(_0x112a00,_0x453757,_0x284e85);return''+'\x20'[_0x9fc26(0x1d3)](_0x284e85)+_0x3e0eb1+':\x20'+_0x162108;});return'{\x0a'+_0x55bad7['join'](',\x0a')+('\x0a'+_0x25e457+'}');}return String(_0x39407d);}
1
+ const a209_0x304521=a209_0x351b;(function(_0xa15fbd,_0x3ca35c){const _0x5955fb=a209_0x351b,_0x26d3f6=_0xa15fbd();while(!![]){try{const _0x137a51=parseInt(_0x5955fb(0x1e6))/0x1+-parseInt(_0x5955fb(0x1dc))/0x2*(parseInt(_0x5955fb(0x1e0))/0x3)+parseInt(_0x5955fb(0x1e8))/0x4*(-parseInt(_0x5955fb(0x1db))/0x5)+parseInt(_0x5955fb(0x1dd))/0x6+parseInt(_0x5955fb(0x1e5))/0x7+-parseInt(_0x5955fb(0x1e2))/0x8*(-parseInt(_0x5955fb(0x1e3))/0x9)+parseInt(_0x5955fb(0x1d3))/0xa;if(_0x137a51===_0x3ca35c)break;else _0x26d3f6['push'](_0x26d3f6['shift']());}catch(_0x56841f){_0x26d3f6['push'](_0x26d3f6['shift']());}}}(a209_0x224d,0xd0242));import*as a209_0x589190 from'chalk';const Chalk=a209_0x589190[a209_0x304521(0x1df)];export function shouldUseColor(_0x129724={}){const _0x5a855d=a209_0x304521;if(_0x129724['noColor']===!![])return![];if(_0x129724[_0x5a855d(0x1d9)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5a855d(0x1d2)][_0x5a855d(0x1e7)]??![];}export function getChalk(_0x5258ba={}){if(shouldUseColor(_0x5258ba))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a209_0x224d(){const _0x31911a=['4207609zBbMjE','219944cauUMY','isTTY','92VBIDLp','boolean','stringify','null','dim','cyan','isArray','yellow','map','stdout','3503690XyigXD','string','blue','repeat','object','number','color','length','362655nCpagx','6BkSLsO','4083444csVugL','green','Chalk','59307kjwHCJ','entries','16TiiXNu','3276414UTObhR','join'];a209_0x224d=function(){return _0x31911a;};return a209_0x224d();}export function colorBorder(_0x5f2097,_0x4e1137={}){const _0x4f980f=a209_0x304521;return getChalk(_0x4e1137)[_0x4f980f(0x1ec)](_0x5f2097);}function a209_0x351b(_0x721fca,_0x6d82f9){_0x721fca=_0x721fca-0x1cf;const _0x224d59=a209_0x224d();let _0x351b2a=_0x224d59[_0x721fca];return _0x351b2a;}export function colorHeader(_0x2b81a5,_0x5a5628={}){return getChalk(_0x5a5628)['cyan'](_0x2b81a5);}export function colorType(_0x2ed4c3,_0x130856={}){const _0x524fea=a209_0x304521;return getChalk(_0x130856)[_0x524fea(0x1ec)](_0x2ed4c3);}export function colorJSONKey(_0x1369a3,_0x101ed1={}){const _0x113d4c=a209_0x304521;return getChalk(_0x101ed1)[_0x113d4c(0x1d5)](_0x1369a3);}export function colorJSONString(_0x208c74,_0x6d85c2={}){const _0x4dd281=a209_0x304521;return getChalk(_0x6d85c2)[_0x4dd281(0x1de)](_0x208c74);}export function colorJSONNumber(_0x1494a2,_0x1e7132={}){const _0x2b4294=a209_0x304521;return getChalk(_0x1e7132)[_0x2b4294(0x1ed)](_0x1494a2);}export function colorJSONBoolean(_0x2cc3b6,_0x12fe13={}){const _0x5841b9=a209_0x304521;return getChalk(_0x12fe13)[_0x5841b9(0x1d0)](_0x2cc3b6);}export function colorJSONNull(_0x2709c1,_0x3c1ddb={}){const _0x49b966=a209_0x304521;return getChalk(_0x3c1ddb)[_0x49b966(0x1ec)](_0x2709c1);}export function colorizeJSONCompact(_0x3f96a5,_0x3dbc7d={}){const _0x4127a5=a209_0x304521;if(!shouldUseColor(_0x3dbc7d))return JSON[_0x4127a5(0x1ea)](_0x3f96a5);if(_0x3f96a5===null)return colorJSONNull(_0x4127a5(0x1eb),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1e9))return colorJSONBoolean(String(_0x3f96a5),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1d8))return colorJSONNumber(String(_0x3f96a5),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1d4))return colorJSONString(JSON[_0x4127a5(0x1ea)](_0x3f96a5),_0x3dbc7d);if(Array[_0x4127a5(0x1cf)](_0x3f96a5)){if(_0x3f96a5[_0x4127a5(0x1da)]===0x0)return'[]';const _0x50f8b4=_0x3f96a5[_0x4127a5(0x1d1)](_0x46541f=>colorizeJSONCompact(_0x46541f,_0x3dbc7d));return'['+_0x50f8b4[_0x4127a5(0x1e4)](',')+']';}if(typeof _0x3f96a5==='object'){const _0x190c22=Object[_0x4127a5(0x1e1)](_0x3f96a5);if(_0x190c22[_0x4127a5(0x1da)]===0x0)return'{}';const _0x44ed95=_0x190c22[_0x4127a5(0x1d1)](([_0x2e1827,_0x1fb8dd])=>{const _0x38e38f=_0x4127a5,_0x264236=colorJSONKey(JSON[_0x38e38f(0x1ea)](_0x2e1827),_0x3dbc7d),_0x25375e=colorizeJSONCompact(_0x1fb8dd,_0x3dbc7d);return _0x264236+':'+_0x25375e;});return'{'+_0x44ed95[_0x4127a5(0x1e4)](',')+'}';}return String(_0x3f96a5);}export function colorizeJSON(_0x54b0b8,_0x36eb8c={},_0x37457c=0x0){const _0x522845=a209_0x304521;if(!shouldUseColor(_0x36eb8c))return JSON[_0x522845(0x1ea)](_0x54b0b8,null,0x2);const _0x444123='\x20'[_0x522845(0x1d6)](_0x37457c),_0x15f4b9=_0x37457c+0x2;if(_0x54b0b8===null)return colorJSONNull(_0x522845(0x1eb),_0x36eb8c);if(typeof _0x54b0b8==='boolean')return colorJSONBoolean(String(_0x54b0b8),_0x36eb8c);if(typeof _0x54b0b8===_0x522845(0x1d8))return colorJSONNumber(String(_0x54b0b8),_0x36eb8c);if(typeof _0x54b0b8===_0x522845(0x1d4))return colorJSONString(JSON[_0x522845(0x1ea)](_0x54b0b8),_0x36eb8c);if(Array[_0x522845(0x1cf)](_0x54b0b8)){if(_0x54b0b8[_0x522845(0x1da)]===0x0)return'[]';const _0x298455=_0x54b0b8['map'](_0x1bfc94=>{const _0x5c7953=colorizeJSON(_0x1bfc94,_0x36eb8c,_0x15f4b9);return''+'\x20'['repeat'](_0x15f4b9)+_0x5c7953;});return'[\x0a'+_0x298455[_0x522845(0x1e4)](',\x0a')+('\x0a'+_0x444123+']');}if(typeof _0x54b0b8===_0x522845(0x1d7)){const _0x242fee=Object[_0x522845(0x1e1)](_0x54b0b8);if(_0x242fee[_0x522845(0x1da)]===0x0)return'{}';const _0x364a7b=_0x242fee[_0x522845(0x1d1)](([_0x463760,_0x52947b])=>{const _0x316b5f=_0x522845,_0x42149c=colorJSONKey(JSON[_0x316b5f(0x1ea)](_0x463760),_0x36eb8c),_0x17c566=colorizeJSON(_0x52947b,_0x36eb8c,_0x15f4b9);return''+'\x20'['repeat'](_0x15f4b9)+_0x42149c+':\x20'+_0x17c566;});return'{\x0a'+_0x364a7b[_0x522845(0x1e4)](',\x0a')+('\x0a'+_0x444123+'}');}return String(_0x54b0b8);}
@@ -1 +1 @@
1
- (function(_0x3e51c1,_0x520138){const _0x3d7af8=a210_0x3a56,_0x4646e0=_0x3e51c1();while(!![]){try{const _0x56ada7=-parseInt(_0x3d7af8(0x11a))/0x1+parseInt(_0x3d7af8(0x124))/0x2*(parseInt(_0x3d7af8(0x114))/0x3)+parseInt(_0x3d7af8(0x10e))/0x4+parseInt(_0x3d7af8(0x121))/0x5+parseInt(_0x3d7af8(0x11d))/0x6+parseInt(_0x3d7af8(0x129))/0x7+-parseInt(_0x3d7af8(0x125))/0x8;if(_0x56ada7===_0x520138)break;else _0x4646e0['push'](_0x4646e0['shift']());}catch(_0x23870e){_0x4646e0['push'](_0x4646e0['shift']());}}}(a210_0x5366,0x7c612));import a210_0x4de604 from'chalk';function a210_0x3a56(_0x133b0b,_0x4c705a){_0x133b0b=_0x133b0b-0x109;const _0x53669e=a210_0x5366();let _0x3a5672=_0x53669e[_0x133b0b];return _0x3a5672;}export function generateDiff(_0x1dcfa9,_0x86b36e){const _0x5836cb=a210_0x3a56,_0x32eec5=_0x1dcfa9[_0x5836cb(0x11e)]('\x0a'),_0x54c7ae=_0x86b36e[_0x5836cb(0x11e)]('\x0a'),_0x316fc8=[],_0x55c1a4=computeLCS(_0x32eec5,_0x54c7ae);let _0x424dac=0x0,_0x5efdb0=0x0,_0x27158c=0x0;while(_0x424dac<_0x32eec5['length']||_0x5efdb0<_0x54c7ae[_0x5836cb(0x120)]){if(_0x27158c<_0x55c1a4[_0x5836cb(0x120)]&&_0x424dac<_0x32eec5['length']&&_0x32eec5[_0x424dac]===_0x55c1a4[_0x27158c])_0x5efdb0<_0x54c7ae[_0x5836cb(0x120)]&&_0x54c7ae[_0x5efdb0]===_0x55c1a4[_0x27158c]?(_0x316fc8['push']({'type':'unchanged','content':_0x32eec5[_0x424dac]}),_0x424dac++,_0x5efdb0++,_0x27158c++):(_0x316fc8[_0x5836cb(0x11f)]({'type':'added','content':_0x54c7ae[_0x5efdb0]}),_0x5efdb0++);else{if(_0x27158c<_0x55c1a4[_0x5836cb(0x120)]&&_0x5efdb0<_0x54c7ae[_0x5836cb(0x120)]&&_0x54c7ae[_0x5efdb0]===_0x55c1a4[_0x27158c])_0x316fc8[_0x5836cb(0x11f)]({'type':_0x5836cb(0x11c),'content':_0x32eec5[_0x424dac]}),_0x424dac++;else{if(_0x424dac<_0x32eec5[_0x5836cb(0x120)]&&(_0x27158c>=_0x55c1a4['length']||_0x32eec5[_0x424dac]!==_0x55c1a4[_0x27158c]))_0x316fc8['push']({'type':_0x5836cb(0x11c),'content':_0x32eec5[_0x424dac]}),_0x424dac++;else _0x5efdb0<_0x54c7ae['length']&&(_0x316fc8[_0x5836cb(0x11f)]({'type':_0x5836cb(0x112),'content':_0x54c7ae[_0x5efdb0]}),_0x5efdb0++);}}}return _0x316fc8;}function computeLCS(_0x27b300,_0x583a04){const _0x44ceb8=a210_0x3a56,_0x51e16f=_0x27b300['length'],_0xb18a99=_0x583a04[_0x44ceb8(0x120)],_0x32914c=Array(_0x51e16f+0x1)[_0x44ceb8(0x111)](null)[_0x44ceb8(0x115)](()=>Array(_0xb18a99+0x1)['fill'](0x0));for(let _0x2743f4=0x1;_0x2743f4<=_0x51e16f;_0x2743f4++){for(let _0x11d359=0x1;_0x11d359<=_0xb18a99;_0x11d359++){_0x27b300[_0x2743f4-0x1]===_0x583a04[_0x11d359-0x1]?_0x32914c[_0x2743f4][_0x11d359]=_0x32914c[_0x2743f4-0x1][_0x11d359-0x1]+0x1:_0x32914c[_0x2743f4][_0x11d359]=Math[_0x44ceb8(0x11b)](_0x32914c[_0x2743f4-0x1][_0x11d359],_0x32914c[_0x2743f4][_0x11d359-0x1]);}}const _0x4d4746=[];let _0x2aff4a=_0x51e16f,_0x3c2aa0=_0xb18a99;while(_0x2aff4a>0x0&&_0x3c2aa0>0x0){if(_0x27b300[_0x2aff4a-0x1]===_0x583a04[_0x3c2aa0-0x1])_0x4d4746['unshift'](_0x27b300[_0x2aff4a-0x1]),_0x2aff4a--,_0x3c2aa0--;else _0x32914c[_0x2aff4a-0x1][_0x3c2aa0]>_0x32914c[_0x2aff4a][_0x3c2aa0-0x1]?_0x2aff4a--:_0x3c2aa0--;}return _0x4d4746;}export function formatDiffWithColors(_0x407119,_0x3150c3=0x3){const _0x2cdadb=a210_0x3a56,_0x59025d=new Set();_0x407119[_0x2cdadb(0x123)]((_0x5b9261,_0x1f1d36)=>{const _0x3bb828=_0x2cdadb;_0x5b9261[_0x3bb828(0x126)]!==_0x3bb828(0x113)&&_0x59025d[_0x3bb828(0x116)](_0x1f1d36);});if(_0x59025d[_0x2cdadb(0x10a)]===0x0)return'';const _0x48c56c=new Set();for(const _0x41a5e0 of _0x59025d){for(let _0x19272e=Math[_0x2cdadb(0x11b)](0x0,_0x41a5e0-_0x3150c3);_0x19272e<=Math['min'](_0x407119['length']-0x1,_0x41a5e0+_0x3150c3);_0x19272e++){_0x48c56c[_0x2cdadb(0x116)](_0x19272e);}}const _0x3d42f6=[];let _0x5d9a27=-0x1;const _0x564003=_0x407119[_0x2cdadb(0x120)],_0x328bcf=Math[_0x2cdadb(0x11b)](0x3,String(_0x564003)[_0x2cdadb(0x120)]),_0x57169b=[];let _0x4acc44=0x0,_0x4308f0=0x0;for(const _0xfadadc of _0x407119){if(_0xfadadc[_0x2cdadb(0x126)]===_0x2cdadb(0x11c))_0x4acc44++,_0x57169b[_0x2cdadb(0x11f)]({'old':_0x4acc44,'new':0x0});else _0xfadadc[_0x2cdadb(0x126)]===_0x2cdadb(0x112)?(_0x4308f0++,_0x57169b[_0x2cdadb(0x11f)]({'old':0x0,'new':_0x4308f0})):(_0x4acc44++,_0x4308f0++,_0x57169b[_0x2cdadb(0x11f)]({'old':_0x4acc44,'new':_0x4308f0}));}for(let _0x2c92d6=0x0;_0x2c92d6<_0x407119['length'];_0x2c92d6++){if(!_0x48c56c[_0x2cdadb(0x128)](_0x2c92d6))continue;_0x5d9a27!==-0x1&&_0x2c92d6>_0x5d9a27+0x1&&_0x3d42f6['push'](a210_0x4de604[_0x2cdadb(0x117)]('\x20\x20...'));_0x5d9a27=_0x2c92d6;const _0x5dfe26=_0x407119[_0x2c92d6],_0x4ca541=_0x57169b[_0x2c92d6],_0x30a2d2=_0x4ca541[_0x2cdadb(0x119)]>0x0?String(_0x4ca541['old'])['padStart'](_0x328bcf):'\x20'[_0x2cdadb(0x110)](_0x328bcf),_0x57931c=_0x4ca541[_0x2cdadb(0x10f)]>0x0?String(_0x4ca541[_0x2cdadb(0x10f)])[_0x2cdadb(0x10c)](_0x328bcf):'\x20'[_0x2cdadb(0x110)](_0x328bcf);switch(_0x5dfe26[_0x2cdadb(0x126)]){case _0x2cdadb(0x11c):_0x3d42f6[_0x2cdadb(0x11f)](a210_0x4de604[_0x2cdadb(0x10d)](_0x30a2d2+'\x20'+_0x57931c+_0x2cdadb(0x127)+_0x5dfe26['content']));break;case _0x2cdadb(0x112):_0x3d42f6[_0x2cdadb(0x11f)](a210_0x4de604['green'](_0x30a2d2+'\x20'+_0x57931c+_0x2cdadb(0x10b)+_0x5dfe26[_0x2cdadb(0x109)]));break;default:_0x3d42f6[_0x2cdadb(0x11f)](a210_0x4de604[_0x2cdadb(0x122)](_0x30a2d2+'\x20'+_0x57931c+_0x2cdadb(0x118)+_0x5dfe26['content']));break;}}return _0x3d42f6['join']('\x0a');}function a210_0x5366(){const _0x2f2011=['add','cyan','\x20\x20\x20','old','502037AAKIbi','max','removed','62970WUwSJG','split','push','length','1992815yeAxzV','dim','forEach','114uRkDNK','4643936dVlMre','type','\x20-\x20','has','3808455KZhBHb','some','content','size','\x20+\x20','padStart','red','1342268RTFzsd','new','repeat','fill','added','unchanged','15963MbKdcd','map'];a210_0x5366=function(){return _0x2f2011;};return a210_0x5366();}export function hasChanges(_0x144024){const _0x287b23=a210_0x3a56;return _0x144024[_0x287b23(0x12a)](_0x2d3298=>_0x2d3298[_0x287b23(0x126)]!==_0x287b23(0x113));}
1
+ (function(_0x164bcd,_0x147275){const _0x8357ef=a210_0x567b,_0x370fd7=_0x164bcd();while(!![]){try{const _0x2a4cd9=-parseInt(_0x8357ef(0x18b))/0x1+parseInt(_0x8357ef(0x19e))/0x2+parseInt(_0x8357ef(0x19f))/0x3*(parseInt(_0x8357ef(0x18e))/0x4)+parseInt(_0x8357ef(0x1a4))/0x5*(parseInt(_0x8357ef(0x18a))/0x6)+parseInt(_0x8357ef(0x1a0))/0x7+-parseInt(_0x8357ef(0x197))/0x8*(parseInt(_0x8357ef(0x18f))/0x9)+-parseInt(_0x8357ef(0x18d))/0xa;if(_0x2a4cd9===_0x147275)break;else _0x370fd7['push'](_0x370fd7['shift']());}catch(_0x4aac01){_0x370fd7['push'](_0x370fd7['shift']());}}}(a210_0x15bd,0x276ee));import a210_0x3845ae from'chalk';export function generateDiff(_0x416b7d,_0x21be7a){const _0x897c5a=a210_0x567b,_0x219aaf=_0x416b7d[_0x897c5a(0x1a2)]('\x0a'),_0x35a67c=_0x21be7a[_0x897c5a(0x1a2)]('\x0a'),_0x56af75=[],_0x45a5a3=computeLCS(_0x219aaf,_0x35a67c);let _0x4b07cb=0x0,_0x45262c=0x0,_0x1e8261=0x0;while(_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]||_0x45262c<_0x35a67c[_0x897c5a(0x193)]){if(_0x1e8261<_0x45a5a3[_0x897c5a(0x193)]&&_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]&&_0x219aaf[_0x4b07cb]===_0x45a5a3[_0x1e8261])_0x45262c<_0x35a67c[_0x897c5a(0x193)]&&_0x35a67c[_0x45262c]===_0x45a5a3[_0x1e8261]?(_0x56af75['push']({'type':_0x897c5a(0x19b),'content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++,_0x45262c++,_0x1e8261++):(_0x56af75[_0x897c5a(0x192)]({'type':_0x897c5a(0x194),'content':_0x35a67c[_0x45262c]}),_0x45262c++);else{if(_0x1e8261<_0x45a5a3[_0x897c5a(0x193)]&&_0x45262c<_0x35a67c['length']&&_0x35a67c[_0x45262c]===_0x45a5a3[_0x1e8261])_0x56af75['push']({'type':_0x897c5a(0x199),'content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++;else{if(_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]&&(_0x1e8261>=_0x45a5a3['length']||_0x219aaf[_0x4b07cb]!==_0x45a5a3[_0x1e8261]))_0x56af75[_0x897c5a(0x192)]({'type':'removed','content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++;else _0x45262c<_0x35a67c['length']&&(_0x56af75['push']({'type':_0x897c5a(0x194),'content':_0x35a67c[_0x45262c]}),_0x45262c++);}}}return _0x56af75;}function computeLCS(_0x2f94c3,_0x4c2340){const _0x3442f3=a210_0x567b,_0x4ace6c=_0x2f94c3[_0x3442f3(0x193)],_0x50505f=_0x4c2340[_0x3442f3(0x193)],_0x426207=Array(_0x4ace6c+0x1)[_0x3442f3(0x1aa)](null)['map'](()=>Array(_0x50505f+0x1)['fill'](0x0));for(let _0x36ee57=0x1;_0x36ee57<=_0x4ace6c;_0x36ee57++){for(let _0x31dd78=0x1;_0x31dd78<=_0x50505f;_0x31dd78++){_0x2f94c3[_0x36ee57-0x1]===_0x4c2340[_0x31dd78-0x1]?_0x426207[_0x36ee57][_0x31dd78]=_0x426207[_0x36ee57-0x1][_0x31dd78-0x1]+0x1:_0x426207[_0x36ee57][_0x31dd78]=Math['max'](_0x426207[_0x36ee57-0x1][_0x31dd78],_0x426207[_0x36ee57][_0x31dd78-0x1]);}}const _0x13e2ba=[];let _0x1d7054=_0x4ace6c,_0x546c4d=_0x50505f;while(_0x1d7054>0x0&&_0x546c4d>0x0){if(_0x2f94c3[_0x1d7054-0x1]===_0x4c2340[_0x546c4d-0x1])_0x13e2ba[_0x3442f3(0x190)](_0x2f94c3[_0x1d7054-0x1]),_0x1d7054--,_0x546c4d--;else _0x426207[_0x1d7054-0x1][_0x546c4d]>_0x426207[_0x1d7054][_0x546c4d-0x1]?_0x1d7054--:_0x546c4d--;}return _0x13e2ba;}function a210_0x567b(_0x399336,_0x180e06){_0x399336=_0x399336-0x186;const _0x15bdf0=a210_0x15bd();let _0x567b2a=_0x15bdf0[_0x399336];return _0x567b2a;}export function formatDiffWithColors(_0x49f911,_0x2a7c67=0x3){const _0x571e28=a210_0x567b,_0x1b0612=new Set();_0x49f911[_0x571e28(0x19a)]((_0x20581d,_0x27f290)=>{const _0xf25076=_0x571e28;_0x20581d[_0xf25076(0x195)]!==_0xf25076(0x19b)&&_0x1b0612['add'](_0x27f290);});if(_0x1b0612[_0x571e28(0x1a3)]===0x0)return'';const _0x98ccbf=new Set();for(const _0xbceec0 of _0x1b0612){for(let _0x41bd39=Math[_0x571e28(0x1a1)](0x0,_0xbceec0-_0x2a7c67);_0x41bd39<=Math[_0x571e28(0x19c)](_0x49f911[_0x571e28(0x193)]-0x1,_0xbceec0+_0x2a7c67);_0x41bd39++){_0x98ccbf[_0x571e28(0x196)](_0x41bd39);}}const _0x550624=[];let _0x20727e=-0x1;const _0x380f38=_0x49f911['length'],_0x152ffc=Math['max'](0x3,String(_0x380f38)[_0x571e28(0x193)]),_0x495a13=[];let _0x18f952=0x0,_0x59e6c1=0x0;for(const _0x57ed87 of _0x49f911){if(_0x57ed87[_0x571e28(0x195)]===_0x571e28(0x199))_0x18f952++,_0x495a13['push']({'old':_0x18f952,'new':0x0});else _0x57ed87[_0x571e28(0x195)]==='added'?(_0x59e6c1++,_0x495a13['push']({'old':0x0,'new':_0x59e6c1})):(_0x18f952++,_0x59e6c1++,_0x495a13[_0x571e28(0x192)]({'old':_0x18f952,'new':_0x59e6c1}));}for(let _0x12e307=0x0;_0x12e307<_0x49f911[_0x571e28(0x193)];_0x12e307++){if(!_0x98ccbf[_0x571e28(0x1a7)](_0x12e307))continue;_0x20727e!==-0x1&&_0x12e307>_0x20727e+0x1&&_0x550624[_0x571e28(0x192)](a210_0x3845ae[_0x571e28(0x18c)](_0x571e28(0x186)));_0x20727e=_0x12e307;const _0x45a328=_0x49f911[_0x12e307],_0x347efc=_0x495a13[_0x12e307],_0x3da8da=_0x347efc['old']>0x0?String(_0x347efc[_0x571e28(0x187)])[_0x571e28(0x1a8)](_0x152ffc):'\x20'[_0x571e28(0x19d)](_0x152ffc),_0x10919e=_0x347efc['new']>0x0?String(_0x347efc[_0x571e28(0x188)])[_0x571e28(0x1a8)](_0x152ffc):'\x20'[_0x571e28(0x19d)](_0x152ffc);switch(_0x45a328['type']){case'removed':_0x550624['push'](a210_0x3845ae[_0x571e28(0x1a6)](_0x3da8da+'\x20'+_0x10919e+_0x571e28(0x189)+_0x45a328[_0x571e28(0x1a5)]));break;case'added':_0x550624[_0x571e28(0x192)](a210_0x3845ae['green'](_0x3da8da+'\x20'+_0x10919e+_0x571e28(0x1a9)+_0x45a328[_0x571e28(0x1a5)]));break;default:_0x550624[_0x571e28(0x192)](a210_0x3845ae[_0x571e28(0x198)](_0x3da8da+'\x20'+_0x10919e+'\x20\x20\x20'+_0x45a328[_0x571e28(0x1a5)]));break;}}return _0x550624['join']('\x0a');}export function hasChanges(_0x28b2a4){const _0x57bcb7=a210_0x567b;return _0x28b2a4[_0x57bcb7(0x191)](_0x4ffa10=>_0x4ffa10[_0x57bcb7(0x195)]!==_0x57bcb7(0x19b));}function a210_0x15bd(){const _0x47dbfe=['red','has','padStart','\x20+\x20','fill','\x20\x20...','old','new','\x20-\x20','732588IaSpXK','12000dkpvWu','cyan','7778840nCtYpD','1173028VwezcN','814086HwNQgz','unshift','some','push','length','added','type','add','8FhWYKm','dim','removed','forEach','unchanged','min','repeat','382888wGHjEX','3JRFnAi','2190713SxgUIf','max','split','size','10UoJhHc','content'];a210_0x15bd=function(){return _0x47dbfe;};return a210_0x15bd();}
@@ -1 +1 @@
1
- function a211_0x40b7(){const _0x11d4b8=['writeFileSync','41243247EPNgyF','mode','mkdirSync','toString','11340322gFtFIq',').\x20','warn','dirname','1691870bFArcm','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','existsSync','12322064UQeKkE','6mRhiDe','16AZAVHh','2086382IAVkyC','1343542ndacwb','51609jGttgo'];a211_0x40b7=function(){return _0x11d4b8;};return a211_0x40b7();}(function(_0x5b4841,_0x740eaa){const _0x100248=a211_0x5c8a,_0x340a77=_0x5b4841();while(!![]){try{const _0x40f29d=-parseInt(_0x100248(0x124))/0x1+parseInt(_0x100248(0x123))/0x2+-parseInt(_0x100248(0x125))/0x3*(-parseInt(_0x100248(0x122))/0x4)+-parseInt(_0x100248(0x11d))/0x5+parseInt(_0x100248(0x121))/0x6*(-parseInt(_0x100248(0x12b))/0x7)+-parseInt(_0x100248(0x120))/0x8+parseInt(_0x100248(0x127))/0x9;if(_0x40f29d===_0x740eaa)break;else _0x340a77['push'](_0x340a77['shift']());}catch(_0x354913){_0x340a77['push'](_0x340a77['shift']());}}}(a211_0x40b7,0xd018e));import*as a211_0xf533b8 from'node:fs';function a211_0x5c8a(_0x45ff85,_0x328e52){_0x45ff85=_0x45ff85-0x11c;const _0x40b7c3=a211_0x40b7();let _0x5c8a63=_0x40b7c3[_0x45ff85];return _0x5c8a63;}import*as a211_0xc6b06d from'node:path';export function setSecureFilePermissions(_0x1e43ca){const _0x5addd5=a211_0x5c8a;try{a211_0xf533b8['chmodSync'](_0x1e43ca,0x180);}catch{console[_0x5addd5(0x12d)](_0x5addd5(0x11e)+_0x1e43ca);}}export function setSecureDirectoryPermissions(_0x1327b8){const _0x9b8a63=a211_0x5c8a;try{a211_0xf533b8['chmodSync'](_0x1327b8,0x1c0);}catch{console[_0x9b8a63(0x12d)](_0x9b8a63(0x11e)+_0x1327b8);}}export function createSecureDirectory(_0x19e764){const _0x33e0b0=a211_0x5c8a;!a211_0xf533b8[_0x33e0b0(0x11f)](_0x19e764)&&(a211_0xf533b8[_0x33e0b0(0x129)](_0x19e764,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x19e764));}export function validateSecureFilePermissions(_0x16829a){const _0x52f9f6=a211_0x5c8a;try{const _0x2e9fae=a211_0xf533b8['statSync'](_0x16829a),_0x288c10=_0x2e9fae[_0x52f9f6(0x128)]&0x1ff,_0x1f2412=(_0x288c10&0x3f)!==0x0;if(_0x1f2412)return console['warn']('Warning:\x20'+_0x16829a+'\x20has\x20insecure\x20permissions\x20('+_0x288c10[_0x52f9f6(0x12a)](0x8)+_0x52f9f6(0x12c)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1171f5,_0x3e3665){const _0x521540=a211_0x5c8a,_0x3f9148=a211_0xc6b06d[_0x521540(0x11c)](_0x1171f5);createSecureDirectory(_0x3f9148),a211_0xf533b8[_0x521540(0x126)](_0x1171f5,_0x3e3665,{'mode':0x180}),setSecureFilePermissions(_0x1171f5);}
1
+ (function(_0x263f6f,_0x5f56f6){const _0x33ed35=a211_0x28bc,_0x4ac6b5=_0x263f6f();while(!![]){try{const _0x2d0b73=-parseInt(_0x33ed35(0xea))/0x1+-parseInt(_0x33ed35(0xe1))/0x2+parseInt(_0x33ed35(0xe5))/0x3+-parseInt(_0x33ed35(0xf4))/0x4+parseInt(_0x33ed35(0xf2))/0x5+parseInt(_0x33ed35(0xf3))/0x6*(-parseInt(_0x33ed35(0xef))/0x7)+parseInt(_0x33ed35(0xed))/0x8;if(_0x2d0b73===_0x5f56f6)break;else _0x4ac6b5['push'](_0x4ac6b5['shift']());}catch(_0x4e0167){_0x4ac6b5['push'](_0x4ac6b5['shift']());}}}(a211_0x3af2,0x7ad65));function a211_0x28bc(_0x4eaa88,_0x5964f7){_0x4eaa88=_0x4eaa88-0xe1;const _0x3af2d1=a211_0x3af2();let _0x28bc70=_0x3af2d1[_0x4eaa88];return _0x28bc70;}import*as a211_0x3f604a from'node:fs';import*as a211_0x4c7860 from'node:path';export function setSecureFilePermissions(_0xaa46e6){const _0x15fb43=a211_0x28bc;try{a211_0x3f604a['chmodSync'](_0xaa46e6,0x180);}catch{console['warn'](_0x15fb43(0xe6)+_0xaa46e6);}}export function setSecureDirectoryPermissions(_0x1b74ce){try{a211_0x3f604a['chmodSync'](_0x1b74ce,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1b74ce);}}function a211_0x3af2(){const _0x5c71f4=['mode','existsSync','21528488hgMiie','mkdirSync','176281UzmEdO','toString','\x20has\x20insecure\x20permissions\x20(','1025060FPkmYB','138CNONmV','1760548JefAVV','1580744CxyYJm','dirname','Warning:\x20',').\x20','245184HnZLot','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','statSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','warn','664942oJnAtJ'];a211_0x3af2=function(){return _0x5c71f4;};return a211_0x3af2();}export function createSecureDirectory(_0x3988aa){const _0x31263b=a211_0x28bc;!a211_0x3f604a[_0x31263b(0xec)](_0x3988aa)&&(a211_0x3f604a[_0x31263b(0xee)](_0x3988aa,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3988aa));}export function validateSecureFilePermissions(_0x76519e){const _0x66a19c=a211_0x28bc;try{const _0x32cca5=a211_0x3f604a[_0x66a19c(0xe7)](_0x76519e),_0x3a0757=_0x32cca5[_0x66a19c(0xeb)]&0x1ff,_0x25c4e8=(_0x3a0757&0x3f)!==0x0;if(_0x25c4e8)return console[_0x66a19c(0xe9)](_0x66a19c(0xe3)+_0x76519e+_0x66a19c(0xf1)+_0x3a0757[_0x66a19c(0xf0)](0x8)+_0x66a19c(0xe4)+_0x66a19c(0xe8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xbe500d,_0x3f26a2){const _0x3e6ce=a211_0x28bc,_0x395d71=a211_0x4c7860[_0x3e6ce(0xe2)](_0xbe500d);createSecureDirectory(_0x395d71),a211_0x3f604a['writeFileSync'](_0xbe500d,_0x3f26a2,{'mode':0x180}),setSecureFilePermissions(_0xbe500d);}
@@ -1 +1 @@
1
- (function(_0x47a075,_0xc44382){const _0x1d4946=a212_0x135d,_0x5437f4=_0x47a075();while(!![]){try{const _0x353c63=-parseInt(_0x1d4946(0x159))/0x1*(parseInt(_0x1d4946(0x154))/0x2)+parseInt(_0x1d4946(0x150))/0x3+parseInt(_0x1d4946(0x15c))/0x4*(-parseInt(_0x1d4946(0x156))/0x5)+-parseInt(_0x1d4946(0x15b))/0x6+-parseInt(_0x1d4946(0x14d))/0x7*(-parseInt(_0x1d4946(0x152))/0x8)+parseInt(_0x1d4946(0x15f))/0x9*(parseInt(_0x1d4946(0x14f))/0xa)+parseInt(_0x1d4946(0x158))/0xb;if(_0x353c63===_0xc44382)break;else _0x5437f4['push'](_0x5437f4['shift']());}catch(_0x1a0e6a){_0x5437f4['push'](_0x5437f4['shift']());}}}(a212_0x29af,0x9f793));import{readFileSync}from'fs';function a212_0x29af(){const _0x39a3fb=['NOT_FOUND','Error\x20reading\x20file\x20\x27','9NmzhKK','message','7JdGmiO','INTERNAL','10895230sZZsun','2610741pnDucD','\x27\x20not\x20found','3688376Vbqmpq','ENOENT','686JoyHqc','PERMISSION_DENIED','254865cirtfB','\x27:\x20','7831571EJfpqg','3257CHGdRU','EACCES','4198650tUjTig','52DqDQBP'];a212_0x29af=function(){return _0x39a3fb;};return a212_0x29af();}function a212_0x135d(_0x1a0a24,_0x14ea3d){_0x1a0a24=_0x1a0a24-0x14c;const _0x29afee=a212_0x29af();let _0x135d13=_0x29afee[_0x1a0a24];return _0x135d13;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1bc0dc){const _0x3791a4=a212_0x135d;try{return readFileSync(_0x1bc0dc,'utf-8');}catch(_0x2854a7){const _0x280bf6=_0x2854a7['code'];if(_0x280bf6===_0x3791a4(0x153))throw new SDKError(ErrorCode[_0x3791a4(0x15d)],'File\x20\x27'+_0x1bc0dc+_0x3791a4(0x151),_0x2854a7);else{if(_0x280bf6===_0x3791a4(0x15a))throw new SDKError(ErrorCode[_0x3791a4(0x155)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x1bc0dc+'\x27',_0x2854a7);else throw new SDKError(ErrorCode[_0x3791a4(0x14e)],_0x3791a4(0x15e)+_0x1bc0dc+_0x3791a4(0x157)+_0x2854a7[_0x3791a4(0x14c)],_0x2854a7);}}}
1
+ function a212_0x1c5c(){const _0x2a0183=['62544misBiB','49615bEXFrl','470013dceKVv','ENOENT','383782iAbdVx','24996PQUfsG','Error\x20reading\x20file\x20\x27','132CDhWFE','1224mnGmTH','INTERNAL','message','Permission\x20denied\x20reading\x20file\x20\x27','\x27:\x20','\x27\x20not\x20found','3043728gtAiwD','File\x20\x27','NOT_FOUND','PERMISSION_DENIED','code','4634sRYZiA','EACCES'];a212_0x1c5c=function(){return _0x2a0183;};return a212_0x1c5c();}(function(_0x577b51,_0x5ef81f){const _0x31c157=a212_0x52b7,_0x425953=_0x577b51();while(!![]){try{const _0x15284a=-parseInt(_0x31c157(0x1bb))/0x1+-parseInt(_0x31c157(0x1ba))/0x2+parseInt(_0x31c157(0x1cd))/0x3+parseInt(_0x31c157(0x1cb))/0x4+parseInt(_0x31c157(0x1cc))/0x5*(-parseInt(_0x31c157(0x1bd))/0x6)+-parseInt(_0x31c157(0x1c9))/0x7*(-parseInt(_0x31c157(0x1be))/0x8)+parseInt(_0x31c157(0x1c4))/0x9;if(_0x15284a===_0x5ef81f)break;else _0x425953['push'](_0x425953['shift']());}catch(_0x302c5b){_0x425953['push'](_0x425953['shift']());}}}(a212_0x1c5c,0x2b1d0));function a212_0x52b7(_0x42b2df,_0x57ee2e){_0x42b2df=_0x42b2df-0x1b9;const _0x1c5c00=a212_0x1c5c();let _0x52b7ee=_0x1c5c00[_0x42b2df];return _0x52b7ee;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x40e440){const _0x42a7b2=a212_0x52b7;try{return readFileSync(_0x40e440,'utf-8');}catch(_0x20ead9){const _0x4d3723=_0x20ead9[_0x42a7b2(0x1c8)];if(_0x4d3723===_0x42a7b2(0x1b9))throw new SDKError(ErrorCode[_0x42a7b2(0x1c6)],_0x42a7b2(0x1c5)+_0x40e440+_0x42a7b2(0x1c3),_0x20ead9);else{if(_0x4d3723===_0x42a7b2(0x1ca))throw new SDKError(ErrorCode[_0x42a7b2(0x1c7)],_0x42a7b2(0x1c1)+_0x40e440+'\x27',_0x20ead9);else throw new SDKError(ErrorCode[_0x42a7b2(0x1bf)],_0x42a7b2(0x1bc)+_0x40e440+_0x42a7b2(0x1c2)+_0x20ead9[_0x42a7b2(0x1c0)],_0x20ead9);}}}
@@ -1 +1 @@
1
- (function(_0x50f9f0,_0x19db28){const _0x2d5872=a213_0x2412,_0x37e100=_0x50f9f0();while(!![]){try{const _0x15cf58=-parseInt(_0x2d5872(0xd0))/0x1*(-parseInt(_0x2d5872(0xbc))/0x2)+parseInt(_0x2d5872(0xbf))/0x3*(-parseInt(_0x2d5872(0xc5))/0x4)+-parseInt(_0x2d5872(0xb8))/0x5*(parseInt(_0x2d5872(0xc3))/0x6)+-parseInt(_0x2d5872(0xb3))/0x7+-parseInt(_0x2d5872(0xcc))/0x8+-parseInt(_0x2d5872(0xcb))/0x9*(parseInt(_0x2d5872(0xbd))/0xa)+parseInt(_0x2d5872(0xca))/0xb;if(_0x15cf58===_0x19db28)break;else _0x37e100['push'](_0x37e100['shift']());}catch(_0x2d20d8){_0x37e100['push'](_0x37e100['shift']());}}}(a213_0x1a48,0xde828));function a213_0x1a48(){const _0x1115f3=['490kkOFJo','GitHub\x20API\x20returned\x20','application/vnd.github+json','api.github.com','2OcmKyk','127490AXlRQH','fetchedAt','3Bhifbj','resolve','error','length','43926aibSNe','/releases?per_page=20','6017564ZhkKRw','data','prerelease','next','/repos/','41050790MsSQId','603oLrggq','6429752EfuaGM','get','toString','slice','1349539cHxwxA','releases','destroy','2031946bOLrfk','statusCode','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','tag_name','now'];a213_0x1a48=function(){return _0x1115f3;};return a213_0x1a48();}import*as a213_0x48a958 from'node:https';function a213_0x2412(_0x5a8634,_0x14dd17){_0x5a8634=_0x5a8634-0xb3;const _0x1a4856=a213_0x1a48();let _0x2412c1=_0x1a4856[_0x5a8634];return _0x2412c1;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x1122f0,_0x520c1d,_0x14931e){const _0x1b4967=a213_0x2412,_0x4c4b0d=_0x1122f0+'/'+_0x520c1d,_0x465565=cache[_0x1b4967(0xcd)](_0x4c4b0d);if(_0x465565&&Date['now']()-_0x465565[_0x1b4967(0xbe)]<CACHE_TTL_MS)return Promise[_0x1b4967(0xc0)](_0x465565[_0x1b4967(0xd1)]);return new Promise((_0x3b677d,_0x3eadea)=>{const _0x3c3aa1=_0x1b4967,_0x1b38ba={'hostname':_0x3c3aa1(0xbb),'path':_0x3c3aa1(0xc9)+_0x1122f0+'/'+_0x520c1d+_0x3c3aa1(0xc4),'headers':{'User-Agent':_0x14931e,'Accept':_0x3c3aa1(0xba)},'timeout':REQUEST_TIMEOUT_MS},_0x1122e8=a213_0x48a958[_0x3c3aa1(0xcd)](_0x1b38ba,_0x176d33=>{const _0x1d817a=_0x3c3aa1;let _0x5eaf45='';_0x176d33['on'](_0x1d817a(0xc6),_0x33146b=>{const _0x4f8d2e=_0x1d817a;_0x5eaf45+=_0x33146b[_0x4f8d2e(0xce)]();}),_0x176d33['on']('end',()=>{const _0x25624f=_0x1d817a;if(_0x176d33[_0x25624f(0xb4)]!==0xc8){_0x3eadea(new Error(_0x25624f(0xb9)+_0x176d33[_0x25624f(0xb4)]+':\x20'+_0x5eaf45[_0x25624f(0xcf)](0x0,0xc8)));return;}try{const _0x258e11=JSON['parse'](_0x5eaf45);cache['set'](_0x4c4b0d,{'releases':_0x258e11,'fetchedAt':Date[_0x25624f(0xb7)]()}),_0x3b677d(_0x258e11);}catch(_0x35dd70){_0x3eadea(_0x35dd70);}});});_0x1122e8['on']('timeout',()=>{const _0xc54abd=_0x3c3aa1;_0x1122e8[_0xc54abd(0xd2)](),_0x3eadea(new Error(_0xc54abd(0xb5)+REQUEST_TIMEOUT_MS+'ms'));}),_0x1122e8['on'](_0x3c3aa1(0xc1),_0x3eadea);});}export async function resolveReleaseTag(_0x106a76,_0x1d9dbf,_0x105ee9,_0x5a52b9){const _0x807a8=a213_0x2412;if(_0x106a76===_0x807a8(0xc8))return null;const _0x1c57c8=await fetchGitHubReleases(_0x1d9dbf,_0x105ee9,_0x5a52b9);if(_0x1c57c8[_0x807a8(0xc2)]===0x0)return null;const _0x417b58=_0x1c57c8['find'](_0x3d5bc7=>!_0x3d5bc7[_0x807a8(0xc7)]);return _0x417b58?_0x417b58[_0x807a8(0xb6)]:null;}
1
+ (function(_0x3c9b53,_0x48e6f8){const _0x416cbe=a213_0x1923,_0x409d32=_0x3c9b53();while(!![]){try{const _0x46c18c=-parseInt(_0x416cbe(0xba))/0x1+-parseInt(_0x416cbe(0xa3))/0x2*(-parseInt(_0x416cbe(0xa4))/0x3)+parseInt(_0x416cbe(0xb0))/0x4+parseInt(_0x416cbe(0xb5))/0x5*(-parseInt(_0x416cbe(0xaa))/0x6)+-parseInt(_0x416cbe(0xb7))/0x7*(parseInt(_0x416cbe(0x9e))/0x8)+parseInt(_0x416cbe(0xb1))/0x9*(parseInt(_0x416cbe(0xaf))/0xa)+parseInt(_0x416cbe(0xb6))/0xb*(-parseInt(_0x416cbe(0xa1))/0xc);if(_0x46c18c===_0x48e6f8)break;else _0x409d32['push'](_0x409d32['shift']());}catch(_0x20e535){_0x409d32['push'](_0x409d32['shift']());}}}(a213_0x4a80,0xe8287));import*as a213_0x1772c4 from'node:https';function a213_0x1923(_0x5351f4,_0x371f70){_0x5351f4=_0x5351f4-0x9d;const _0x4a80d1=a213_0x4a80();let _0x1923b2=_0x4a80d1[_0x5351f4];return _0x1923b2;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x4d6c91,_0x24874f,_0x1ae991){const _0x1ac02e=a213_0x1923,_0x5013da=_0x4d6c91+'/'+_0x24874f,_0x5dcc93=cache[_0x1ac02e(0xae)](_0x5013da);if(_0x5dcc93&&Date[_0x1ac02e(0xab)]()-_0x5dcc93[_0x1ac02e(0xa8)]<CACHE_TTL_MS)return Promise[_0x1ac02e(0xa9)](_0x5dcc93['releases']);return new Promise((_0x4c7b95,_0x577abb)=>{const _0x4c7062=_0x1ac02e,_0x2071a4={'hostname':'api.github.com','path':'/repos/'+_0x4d6c91+'/'+_0x24874f+_0x4c7062(0xa5),'headers':{'User-Agent':_0x1ae991,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x5508cb=a213_0x1772c4[_0x4c7062(0xae)](_0x2071a4,_0x408b5b=>{const _0x4c79e2=_0x4c7062;let _0x4b063e='';_0x408b5b['on'](_0x4c79e2(0xb8),_0x477059=>{_0x4b063e+=_0x477059['toString']();}),_0x408b5b['on'](_0x4c79e2(0xa0),()=>{const _0x2c67aa=_0x4c79e2;if(_0x408b5b['statusCode']!==0xc8){_0x577abb(new Error(_0x2c67aa(0xa2)+_0x408b5b[_0x2c67aa(0xac)]+':\x20'+_0x4b063e[_0x2c67aa(0xb4)](0x0,0xc8)));return;}try{const _0x3ded7c=JSON[_0x2c67aa(0xb2)](_0x4b063e);cache[_0x2c67aa(0xa7)](_0x5013da,{'releases':_0x3ded7c,'fetchedAt':Date['now']()}),_0x4c7b95(_0x3ded7c);}catch(_0x546991){_0x577abb(_0x546991);}});});_0x5508cb['on'](_0x4c7062(0xb9),()=>{const _0x24bc0c=_0x4c7062;_0x5508cb['destroy'](),_0x577abb(new Error(_0x24bc0c(0x9d)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5508cb['on'](_0x4c7062(0x9f),_0x577abb);});}export async function resolveReleaseTag(_0x455e0d,_0x6b6076,_0x3e5d13,_0xb61234){const _0x59b1f0=a213_0x1923;if(_0x455e0d===_0x59b1f0(0xad))return null;const _0x52d8a1=await fetchGitHubReleases(_0x6b6076,_0x3e5d13,_0xb61234);if(_0x52d8a1[_0x59b1f0(0xb3)]===0x0)return null;const _0x52b05b=_0x52d8a1[_0x59b1f0(0xa6)](_0x82c36e=>!_0x82c36e['prerelease']);return _0x52b05b?_0x52b05b['tag_name']:null;}function a213_0x4a80(){const _0x4bf844=['resolve','831666RHecTm','now','statusCode','next','get','410wHukAo','5448324PNDdEX','393039osRkDq','parse','length','slice','50knqJwK','11rqcyxM','7oJsRQr','data','timeout','1147710RXwJQi','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','9086152cnSjvP','error','end','2911188pkVPdK','GitHub\x20API\x20returned\x20','1570xpUINE','6537NkVbZr','/releases?per_page=20','find','set','fetchedAt'];a213_0x4a80=function(){return _0x4bf844;};return a213_0x4a80();}
@@ -1 +1 @@
1
- function a214_0x2693(_0x2bd83e,_0x140e5d){_0x2bd83e=_0x2bd83e-0x10c;const _0x144e12=a214_0x144e();let _0x2693f8=_0x144e12[_0x2bd83e];return _0x2693f8;}(function(_0x47bba6,_0x4e4e0f){const _0x104e47=a214_0x2693,_0x2b3497=_0x47bba6();while(!![]){try{const _0x247dea=parseInt(_0x104e47(0x10f))/0x1+-parseInt(_0x104e47(0x110))/0x2*(-parseInt(_0x104e47(0x11e))/0x3)+parseInt(_0x104e47(0x10d))/0x4*(parseInt(_0x104e47(0x11a))/0x5)+-parseInt(_0x104e47(0x123))/0x6*(-parseInt(_0x104e47(0x10c))/0x7)+-parseInt(_0x104e47(0x119))/0x8*(parseInt(_0x104e47(0x116))/0x9)+parseInt(_0x104e47(0x11f))/0xa+parseInt(_0x104e47(0x11b))/0xb*(-parseInt(_0x104e47(0x115))/0xc);if(_0x247dea===_0x4e4e0f)break;else _0x2b3497['push'](_0x2b3497['shift']());}catch(_0x52051d){_0x2b3497['push'](_0x2b3497['shift']());}}}(a214_0x144e,0xd78f9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a214_0x144e(){const _0x499369=['1078111TdNYuU','2434rDHvft','replace','default','{profile}','get','49695072mjtCmw','45smrblc','trim','.cache','2751928djhdnD','8264495MAZGmK','11xBMXfI','stringify','\x22,\x20cannot\x20register\x20for\x20\x22','2973lixhKM','10654470HANEpP','\x22\x20already\x20registered\x20by\x20\x22','utf-8','set','5224932fwSafD','14tSKHsF','4iyipcc','parse'];a214_0x144e=function(){return _0x499369;};return a214_0x144e();}import{homedir}from'os';export function getGlobalCacheDir(){const _0x4f2f2f=a214_0x2693;return process.env.TDX_CACHE_DIR||join(homedir(),_0x4f2f2f(0x118),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x56cbc1,_0x55608a){const _0x123beb=a214_0x2693,_0x4b6e89=registry[_0x123beb(0x114)](_0x56cbc1);if(_0x4b6e89&&_0x4b6e89!==_0x55608a)throw new Error('Global\x20cache\x20key\x20\x22'+_0x56cbc1+_0x123beb(0x120)+_0x4b6e89+_0x123beb(0x11d)+_0x55608a+'\x22');registry[_0x123beb(0x122)](_0x56cbc1,_0x55608a);}export function getGlobalCachePath(_0x112db){return join(getGlobalCacheDir(),_0x112db);}function ensureGlobalCacheDir(){const _0x3683e9=getGlobalCacheDir();!existsSync(_0x3683e9)&&mkdirSync(_0x3683e9,{'recursive':!![]});}function readCacheJson(_0x2e7b62){const _0x389761=a214_0x2693,_0xacede5=getGlobalCachePath(_0x2e7b62);if(!existsSync(_0xacede5))return undefined;try{const _0x5972a6=readFileSync(_0xacede5,_0x389761(0x121));return JSON[_0x389761(0x10e)](_0x5972a6);}catch{return undefined;}}function writeCacheJson(_0x4e23e0,_0x24039b){const _0x53357b=a214_0x2693;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4e23e0),JSON[_0x53357b(0x11c)](_0x24039b,null,0x2),_0x53357b(0x121));}function readCacheText(_0x3662ab){const _0x34baa4=getGlobalCachePath(_0x3662ab);if(!existsSync(_0x34baa4))return undefined;try{return readFileSync(_0x34baa4,'utf-8');}catch{return undefined;}}function writeCacheText(_0x27193e,_0x11b77c){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x27193e),_0x11b77c,'utf-8');}function clearCache(_0x7d144d){const _0xe6fb73=getGlobalCachePath(_0x7d144d);if(existsSync(_0xe6fb73))try{unlinkSync(_0xe6fb73);}catch{}}function cacheExists(_0x44c9fb){return existsSync(getGlobalCachePath(_0x44c9fb));}export function createGlobalCache(_0x325a18,_0x186fc5){return registerGlobalCacheKey(_0x325a18,_0x186fc5),{'read':()=>readCacheJson(_0x325a18),'write':_0x19661e=>writeCacheJson(_0x325a18,_0x19661e),'clear':()=>clearCache(_0x325a18),'exists':()=>cacheExists(_0x325a18),'path':()=>getGlobalCachePath(_0x325a18)};}export function createGlobalTextCache(_0x50f397,_0x40dfcf){const _0x3eae02=a214_0x2693;return registerGlobalCacheKey(_0x50f397,_0x40dfcf),{'read':()=>readCacheText(_0x50f397)?.[_0x3eae02(0x117)]()||undefined,'write':_0x3eee63=>writeCacheText(_0x50f397,_0x3eee63),'clear':()=>clearCache(_0x50f397),'exists':()=>cacheExists(_0x50f397),'path':()=>getGlobalCachePath(_0x50f397)};}export function createProfileCache(_0x15e2c3,_0x11336e){const _0x3c1514=_0x4fba9f=>{const _0x4ca6d0=a214_0x2693,_0x5a8196=_0x4fba9f||_0x4ca6d0(0x112);return _0x15e2c3[_0x4ca6d0(0x111)](_0x4ca6d0(0x113),_0x5a8196);};return{'read':_0x4453f1=>{const _0x58a2a9=_0x3c1514(_0x4453f1);return registerGlobalCacheKey(_0x58a2a9,_0x11336e),readCacheJson(_0x58a2a9);},'write':(_0x49aefb,_0x19d638)=>{const _0x5c266a=_0x3c1514(_0x49aefb);registerGlobalCacheKey(_0x5c266a,_0x11336e),writeCacheJson(_0x5c266a,_0x19d638);},'clear':_0x2f2cfd=>{const _0x21f63c=_0x3c1514(_0x2f2cfd);clearCache(_0x21f63c);},'exists':_0x26a372=>{const _0x100ae6=_0x3c1514(_0x26a372);return cacheExists(_0x100ae6);},'path':_0x34740f=>{const _0x3e06f4=_0x3c1514(_0x34740f);return getGlobalCachePath(_0x3e06f4);}};}export function createOptionalProfileCache(_0x1b6d18,_0x51fd12,_0x19c2b8={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x19c2b8,_0x76db75=_0x5a4e11=>{return _0x5a4e11?''+_0x1b6d18+profileSeparator+_0x5a4e11+suffix:''+_0x1b6d18+suffix;};return{'read':_0x272529=>{const _0xa0f63b=_0x76db75(_0x272529);return registerGlobalCacheKey(_0xa0f63b,_0x51fd12),readCacheJson(_0xa0f63b);},'write':(_0x5185eb,_0x2dfab6)=>{const _0xb2236a=_0x76db75(_0x2dfab6);registerGlobalCacheKey(_0xb2236a,_0x51fd12),writeCacheJson(_0xb2236a,_0x5185eb);},'clear':_0x3fff39=>{const _0x262694=_0x76db75(_0x3fff39);clearCache(_0x262694);},'exists':_0x2d7d3f=>{const _0x5c51f3=_0x76db75(_0x2d7d3f);return cacheExists(_0x5c51f3);},'path':_0xdaeff3=>{const _0x391d6f=_0x76db75(_0xdaeff3);return getGlobalCachePath(_0x391d6f);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x6c2d93,_0x31d0a6){const _0x28c56f=a214_0x1007,_0x347966=_0x6c2d93();while(!![]){try{const _0x5fb046=-parseInt(_0x28c56f(0xad))/0x1+parseInt(_0x28c56f(0xac))/0x2*(-parseInt(_0x28c56f(0xba))/0x3)+parseInt(_0x28c56f(0xbd))/0x4+parseInt(_0x28c56f(0xbe))/0x5*(-parseInt(_0x28c56f(0xaf))/0x6)+parseInt(_0x28c56f(0xbf))/0x7*(parseInt(_0x28c56f(0xb2))/0x8)+parseInt(_0x28c56f(0xae))/0x9+parseInt(_0x28c56f(0xb8))/0xa*(parseInt(_0x28c56f(0xbc))/0xb);if(_0x5fb046===_0x31d0a6)break;else _0x347966['push'](_0x347966['shift']());}catch(_0x6fd74e){_0x347966['push'](_0x347966['shift']());}}}(a214_0xa25c,0xa3936));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a214_0x1007(_0x3bdc04,_0x24b914){_0x3bdc04=_0x3bdc04-0xab;const _0xa25c33=a214_0xa25c();let _0x100752=_0xa25c33[_0x3bdc04];return _0x100752;}import{homedir}from'os';export function getGlobalCacheDir(){const _0xaa45c8=a214_0x1007;return process.env.TDX_CACHE_DIR||join(homedir(),_0xaa45c8(0xc0),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x2d890d,_0xb4490e){const _0x181636=a214_0x1007,_0x5ba6b5=registry[_0x181636(0xc1)](_0x2d890d);if(_0x5ba6b5&&_0x5ba6b5!==_0xb4490e)throw new Error('Global\x20cache\x20key\x20\x22'+_0x2d890d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5ba6b5+_0x181636(0xb4)+_0xb4490e+'\x22');registry[_0x181636(0xbb)](_0x2d890d,_0xb4490e);}export function getGlobalCachePath(_0x278d31){return join(getGlobalCacheDir(),_0x278d31);}function ensureGlobalCacheDir(){const _0x142273=getGlobalCacheDir();!existsSync(_0x142273)&&mkdirSync(_0x142273,{'recursive':!![]});}function readCacheJson(_0x56be5d){const _0x411f2f=a214_0x1007,_0x34401f=getGlobalCachePath(_0x56be5d);if(!existsSync(_0x34401f))return undefined;try{const _0xe28797=readFileSync(_0x34401f,'utf-8');return JSON[_0x411f2f(0xb6)](_0xe28797);}catch{return undefined;}}function a214_0xa25c(){const _0x49a95d=['trim','1938896xMQbOS','{profile}','\x22,\x20cannot\x20register\x20for\x20\x22','replace','parse','clear','160fpAQNU','utf-8','3SveTCF','set','989791GJeWBf','2825180twHigF','369785qAVyKt','7KRenwN','.cache','get','default','1388402NJtVtb','33332qILCPV','1066869YWylkY','90GKMNoO','stringify'];a214_0xa25c=function(){return _0x49a95d;};return a214_0xa25c();}function writeCacheJson(_0x1eb71a,_0x37c504){const _0x52e5a3=a214_0x1007;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1eb71a),JSON[_0x52e5a3(0xb0)](_0x37c504,null,0x2),_0x52e5a3(0xb9));}function readCacheText(_0x58b9bc){const _0x29b900=a214_0x1007,_0xc5ef07=getGlobalCachePath(_0x58b9bc);if(!existsSync(_0xc5ef07))return undefined;try{return readFileSync(_0xc5ef07,_0x29b900(0xb9));}catch{return undefined;}}function writeCacheText(_0x3fbf12,_0x5e4b09){const _0x4011bf=a214_0x1007;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3fbf12),_0x5e4b09,_0x4011bf(0xb9));}function clearCache(_0x67a709){const _0x3652d8=getGlobalCachePath(_0x67a709);if(existsSync(_0x3652d8))try{unlinkSync(_0x3652d8);}catch{}}function cacheExists(_0x3a4b78){return existsSync(getGlobalCachePath(_0x3a4b78));}export function createGlobalCache(_0x248b94,_0x33e4d7){return registerGlobalCacheKey(_0x248b94,_0x33e4d7),{'read':()=>readCacheJson(_0x248b94),'write':_0xa14413=>writeCacheJson(_0x248b94,_0xa14413),'clear':()=>clearCache(_0x248b94),'exists':()=>cacheExists(_0x248b94),'path':()=>getGlobalCachePath(_0x248b94)};}export function createGlobalTextCache(_0x24f952,_0x1a7190){const _0x3c13d1=a214_0x1007;return registerGlobalCacheKey(_0x24f952,_0x1a7190),{'read':()=>readCacheText(_0x24f952)?.[_0x3c13d1(0xb1)]()||undefined,'write':_0x9167bc=>writeCacheText(_0x24f952,_0x9167bc),'clear':()=>clearCache(_0x24f952),'exists':()=>cacheExists(_0x24f952),'path':()=>getGlobalCachePath(_0x24f952)};}export function createProfileCache(_0x4c75bc,_0x151983){const _0x17bc6e=_0x4927bb=>{const _0x4dfc3b=a214_0x1007,_0x5b0b4c=_0x4927bb||_0x4dfc3b(0xab);return _0x4c75bc[_0x4dfc3b(0xb5)](_0x4dfc3b(0xb3),_0x5b0b4c);};return{'read':_0x488260=>{const _0x4ed6d8=_0x17bc6e(_0x488260);return registerGlobalCacheKey(_0x4ed6d8,_0x151983),readCacheJson(_0x4ed6d8);},'write':(_0x3c3dab,_0xe47153)=>{const _0x16da34=_0x17bc6e(_0x3c3dab);registerGlobalCacheKey(_0x16da34,_0x151983),writeCacheJson(_0x16da34,_0xe47153);},'clear':_0x2d7c18=>{const _0x23e9f6=_0x17bc6e(_0x2d7c18);clearCache(_0x23e9f6);},'exists':_0x438bcc=>{const _0x44e349=_0x17bc6e(_0x438bcc);return cacheExists(_0x44e349);},'path':_0x33ac52=>{const _0x34ca56=_0x17bc6e(_0x33ac52);return getGlobalCachePath(_0x34ca56);}};}export function createOptionalProfileCache(_0x4a7558,_0x1a4d55,_0x481d62={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x481d62,_0x547bda=_0x4b8256=>{return _0x4b8256?''+_0x4a7558+profileSeparator+_0x4b8256+suffix:''+_0x4a7558+suffix;};return{'read':_0x143386=>{const _0x561c67=_0x547bda(_0x143386);return registerGlobalCacheKey(_0x561c67,_0x1a4d55),readCacheJson(_0x561c67);},'write':(_0x288cc6,_0x4271c2)=>{const _0x510814=_0x547bda(_0x4271c2);registerGlobalCacheKey(_0x510814,_0x1a4d55),writeCacheJson(_0x510814,_0x288cc6);},'clear':_0x361ee0=>{const _0x2e25d0=_0x547bda(_0x361ee0);clearCache(_0x2e25d0);},'exists':_0x3eb600=>{const _0x47d31b=_0x547bda(_0x3eb600);return cacheExists(_0x47d31b);},'path':_0x514301=>{const _0x15348a=_0x547bda(_0x514301);return getGlobalCachePath(_0x15348a);}};}export function clearGlobalRegistry(){const _0x2d6577=a214_0x1007;registry[_0x2d6577(0xb7)]();}
@@ -1 +1 @@
1
- function a215_0x5d22(){const _0x2724d5=['5FivhpX','Invalid\x20JSON\x20string:\x20','6082503feHjRD','Permission\x20denied\x20reading\x20file:\x20','90kOtxqA','32179ItWkTM','utf-8','17552dLRzKC','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','5022018KcuEcJ','Failed\x20to\x20load\x20JSON:\x20','12VzzEkL','message','File\x20not\x20found:\x20','code','\x27:\x20','2151oBvxyH','INVALID_ARGUMENT','29270450ryBJky','NOT_FOUND','12481410CgAboQ','1433996oyYHvM','PERMISSION_DENIED'];a215_0x5d22=function(){return _0x2724d5;};return a215_0x5d22();}(function(_0x137033,_0x56a5ac){const _0xecaa4b=a215_0x3cfe,_0x443478=_0x137033();while(!![]){try{const _0x42f957=parseInt(_0xecaa4b(0x1e7))/0x1*(-parseInt(_0xecaa4b(0x1e6))/0x2)+-parseInt(_0xecaa4b(0x1ee))/0x3*(-parseInt(_0xecaa4b(0x1e0))/0x4)+-parseInt(_0xecaa4b(0x1e2))/0x5*(-parseInt(_0xecaa4b(0x1ec))/0x6)+parseInt(_0xecaa4b(0x1e4))/0x7+parseInt(_0xecaa4b(0x1e9))/0x8*(parseInt(_0xecaa4b(0x1f3))/0x9)+parseInt(_0xecaa4b(0x1df))/0xa+-parseInt(_0xecaa4b(0x1f5))/0xb;if(_0x42f957===_0x56a5ac)break;else _0x443478['push'](_0x443478['shift']());}catch(_0x42e678){_0x443478['push'](_0x443478['shift']());}}}(a215_0x5d22,0xc4266));function a215_0x3cfe(_0x53abb1,_0x9fb658){_0x53abb1=_0x53abb1-0x1de;const _0x5d226e=a215_0x5d22();let _0x3cfe75=_0x5d226e[_0x53abb1];return _0x3cfe75;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x303a1c,_0x58a56d){const _0x431589=a215_0x3cfe;try{if(_0x58a56d){const _0x46d9a1=await readFile(_0x303a1c,_0x431589(0x1e8));try{return JSON['parse'](_0x46d9a1);}catch(_0x33a7c2){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x303a1c+_0x431589(0x1f2)+(_0x33a7c2 instanceof Error?_0x33a7c2[_0x431589(0x1ef)]:String(_0x33a7c2)));}}else try{return JSON[_0x431589(0x1eb)](_0x303a1c);}catch(_0x51943b){throw new SDKError(ErrorCode[_0x431589(0x1f4)],_0x431589(0x1e3)+(_0x51943b instanceof Error?_0x51943b[_0x431589(0x1ef)]:String(_0x51943b)));}}catch(_0x37cf85){if(_0x37cf85 instanceof SDKError)throw _0x37cf85;if(_0x37cf85 instanceof Error&&_0x431589(0x1f1)in _0x37cf85){const _0x1dd8d8=_0x37cf85;if(_0x1dd8d8[_0x431589(0x1f1)]==='ENOENT')throw new SDKError(ErrorCode[_0x431589(0x1de)],_0x431589(0x1f0)+_0x303a1c);else{if(_0x1dd8d8[_0x431589(0x1f1)]==='EACCES')throw new SDKError(ErrorCode[_0x431589(0x1e1)],_0x431589(0x1e5)+_0x303a1c);}}throw new SDKError(ErrorCode['INTERNAL'],_0x431589(0x1ed)+(_0x37cf85 instanceof Error?_0x37cf85[_0x431589(0x1ef)]:String(_0x37cf85)));}}export async function loadJSONFromOptions(_0x57b26d,_0x4b6569){const _0x41e26b=a215_0x3cfe;if(_0x57b26d&&_0x4b6569)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x41e26b(0x1ea));if(_0x57b26d)return await loadJSON(_0x57b26d,![]);if(_0x4b6569)return await loadJSON(_0x4b6569,!![]);return undefined;}
1
+ (function(_0x2324f6,_0x220599){const _0x392b5c=a215_0x5d32,_0x34566f=_0x2324f6();while(!![]){try{const _0x485a07=-parseInt(_0x392b5c(0x90))/0x1+parseInt(_0x392b5c(0x9c))/0x2*(parseInt(_0x392b5c(0x8a))/0x3)+-parseInt(_0x392b5c(0x8e))/0x4+-parseInt(_0x392b5c(0xa0))/0x5*(parseInt(_0x392b5c(0x9f))/0x6)+-parseInt(_0x392b5c(0xa1))/0x7*(parseInt(_0x392b5c(0x98))/0x8)+parseInt(_0x392b5c(0x97))/0x9+-parseInt(_0x392b5c(0x8f))/0xa*(-parseInt(_0x392b5c(0x9e))/0xb);if(_0x485a07===_0x220599)break;else _0x34566f['push'](_0x34566f['shift']());}catch(_0x1ef823){_0x34566f['push'](_0x34566f['shift']());}}}(a215_0x2061,0xd6895));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x5d32(_0x4d97c9,_0x465985){_0x4d97c9=_0x4d97c9-0x8a;const _0x206149=a215_0x2061();let _0x5d320c=_0x206149[_0x4d97c9];return _0x5d320c;}function a215_0x2061(){const _0x572656=['\x27:\x20','1339884RKeIQn','2960EnugOr','NOT_FOUND','parse','Failed\x20to\x20load\x20JSON:\x20','830eyTuFk','Permission\x20denied\x20reading\x20file:\x20','36032711guhqNx','40854ZCSBsU','1230STQchy','26054tGywsv','10749KLvNXx','File\x20not\x20found:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','INTERNAL','1641576mKQPar','10ZPzVPy','570233Byahmu','INVALID_ARGUMENT','code','ENOENT','message','EACCES'];a215_0x2061=function(){return _0x572656;};return a215_0x2061();}export async function loadJSON(_0x1545c2,_0x576f54){const _0x1d902d=a215_0x5d32;try{if(_0x576f54){const _0x5a0184=await readFile(_0x1545c2,'utf-8');try{return JSON[_0x1d902d(0x9a)](_0x5a0184);}catch(_0x219349){throw new SDKError(ErrorCode[_0x1d902d(0x91)],_0x1d902d(0x8c)+_0x1545c2+_0x1d902d(0x96)+(_0x219349 instanceof Error?_0x219349[_0x1d902d(0x94)]:String(_0x219349)));}}else try{return JSON[_0x1d902d(0x9a)](_0x1545c2);}catch(_0x53b85c){throw new SDKError(ErrorCode[_0x1d902d(0x91)],'Invalid\x20JSON\x20string:\x20'+(_0x53b85c instanceof Error?_0x53b85c['message']:String(_0x53b85c)));}}catch(_0x2eb75d){if(_0x2eb75d instanceof SDKError)throw _0x2eb75d;if(_0x2eb75d instanceof Error&&_0x1d902d(0x92)in _0x2eb75d){const _0x348a07=_0x2eb75d;if(_0x348a07[_0x1d902d(0x92)]===_0x1d902d(0x93))throw new SDKError(ErrorCode[_0x1d902d(0x99)],_0x1d902d(0x8b)+_0x1545c2);else{if(_0x348a07['code']===_0x1d902d(0x95))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1d902d(0x9d)+_0x1545c2);}}throw new SDKError(ErrorCode[_0x1d902d(0x8d)],_0x1d902d(0x9b)+(_0x2eb75d instanceof Error?_0x2eb75d[_0x1d902d(0x94)]:String(_0x2eb75d)));}}export async function loadJSONFromOptions(_0x573ef8,_0x1c932c){if(_0x573ef8&&_0x1c932c)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x573ef8)return await loadJSON(_0x573ef8,![]);if(_0x1c932c)return await loadJSON(_0x1c932c,!![]);return undefined;}
@@ -1 +1 @@
1
- const a216_0xfdd96e=a216_0x19f0;(function(_0x2c6af6,_0x40e6e3){const _0x19087c=a216_0x19f0,_0x29f8ba=_0x2c6af6();while(!![]){try{const _0x345405=-parseInt(_0x19087c(0xb1))/0x1*(parseInt(_0x19087c(0xba))/0x2)+-parseInt(_0x19087c(0xb7))/0x3*(parseInt(_0x19087c(0xb3))/0x4)+-parseInt(_0x19087c(0xab))/0x5*(-parseInt(_0x19087c(0xbb))/0x6)+parseInt(_0x19087c(0xa8))/0x7+parseInt(_0x19087c(0xb6))/0x8+-parseInt(_0x19087c(0xb8))/0x9*(parseInt(_0x19087c(0xae))/0xa)+-parseInt(_0x19087c(0xad))/0xb*(parseInt(_0x19087c(0xb4))/0xc);if(_0x345405===_0x40e6e3)break;else _0x29f8ba['push'](_0x29f8ba['shift']());}catch(_0x514f05){_0x29f8ba['push'](_0x29f8ba['shift']());}}}(a216_0x5e6e,0x82047));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a216_0x19f0(_0x350e35,_0x128f02){_0x350e35=_0x350e35-0xa7;const _0x5e6e08=a216_0x5e6e();let _0x19f0db=_0x5e6e08[_0x350e35];return _0x19f0db;}import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0xfdd96e(0xb9),registry=new Map();export function registerCacheKey(_0x1239b0,_0x5331ec){const _0x32d80c=a216_0xfdd96e,_0x2d243f=registry['get'](_0x1239b0);if(_0x2d243f&&_0x2d243f!==_0x5331ec)throw new Error(_0x32d80c(0xb2)+_0x1239b0+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2d243f+_0x32d80c(0xaa)+_0x5331ec+'\x22');registry['set'](_0x1239b0,_0x5331ec);}export function getCacheDir(){const _0x162f72=a216_0xfdd96e,_0xba001e=process[_0x162f72(0xaf)](),_0x1f3ec6=_0xba001e===parse(_0xba001e)[_0x162f72(0xb5)]?homedir():_0xba001e;return join(_0x1f3ec6,LOCAL_CACHE_DIR);}export function getCachePath(_0x5d31bd){return join(getCacheDir(),_0x5d31bd);}function ensureCacheDir(){const _0x452ca2=getCacheDir();!existsSync(_0x452ca2)&&mkdirSync(_0x452ca2,{'recursive':!![]});}function readCacheJson(_0x5b4cf2){const _0x11c2bf=a216_0xfdd96e,_0x25624a=getCachePath(_0x5b4cf2);if(!existsSync(_0x25624a))return undefined;try{const _0x5b4050=readFileSync(_0x25624a,_0x11c2bf(0xb0));return JSON[_0x11c2bf(0xa9)](_0x5b4050);}catch{return undefined;}}function writeCacheJson(_0x3ffc3c,_0x2b64e3){const _0x262eb9=a216_0xfdd96e;ensureCacheDir(),writeFileSync(getCachePath(_0x3ffc3c),JSON['stringify'](_0x2b64e3,null,0x2),_0x262eb9(0xb0));}function readCacheText(_0x37e9ca){const _0x5b53e7=getCachePath(_0x37e9ca);if(!existsSync(_0x5b53e7))return undefined;try{return readFileSync(_0x5b53e7,'utf-8');}catch{return undefined;}}function a216_0x5e6e(){const _0x394441=['parse','\x22,\x20cannot\x20register\x20for\x20\x22','5fLEjqm','clear','1856404gtncYb','30GAxvZc','cwd','utf-8','1fDMNmn','Cache\x20key\x20\x22','364MpJpqU','24TfjOGx','root','6396368OSvwTH','16887hzPusb','872784CrjiSb','.cache/tdx','1458608lSisOt','4302714BRQeaE','trim','6201195TwKozp'];a216_0x5e6e=function(){return _0x394441;};return a216_0x5e6e();}function writeCacheText(_0x1414da,_0x34be52){const _0x5e8036=a216_0xfdd96e;ensureCacheDir(),writeFileSync(getCachePath(_0x1414da),_0x34be52,_0x5e8036(0xb0));}function clearCache(_0x21488d){const _0x3fe023=getCachePath(_0x21488d);if(existsSync(_0x3fe023))try{unlinkSync(_0x3fe023);}catch{}}function cacheExists(_0x5a4863){return existsSync(getCachePath(_0x5a4863));}export function createCache(_0x32ba1d,_0x483760){return registerCacheKey(_0x32ba1d,_0x483760),{'read':()=>readCacheJson(_0x32ba1d),'write':_0x48f93e=>writeCacheJson(_0x32ba1d,_0x48f93e),'clear':()=>clearCache(_0x32ba1d),'exists':()=>cacheExists(_0x32ba1d),'path':()=>getCachePath(_0x32ba1d)};}export function createTextCache(_0x4b576f,_0x38ca44){const _0x26464a=a216_0xfdd96e;return registerCacheKey(_0x4b576f,_0x38ca44),{'read':()=>readCacheText(_0x4b576f)?.[_0x26464a(0xa7)]()||undefined,'write':_0x187452=>writeCacheText(_0x4b576f,_0x187452),'clear':()=>clearCache(_0x4b576f),'exists':()=>cacheExists(_0x4b576f),'path':()=>getCachePath(_0x4b576f)};}export function clearRegistry(){const _0x1aa556=a216_0xfdd96e;registry[_0x1aa556(0xac)]();}
1
+ const a216_0xb5c0d6=a216_0x365d;(function(_0x5312eb,_0x5bd4ee){const _0x5a881f=a216_0x365d,_0x406bc6=_0x5312eb();while(!![]){try{const _0x41946e=parseInt(_0x5a881f(0x168))/0x1+-parseInt(_0x5a881f(0x16c))/0x2*(parseInt(_0x5a881f(0x16a))/0x3)+parseInt(_0x5a881f(0x165))/0x4+parseInt(_0x5a881f(0x16b))/0x5+-parseInt(_0x5a881f(0x16e))/0x6+parseInt(_0x5a881f(0x173))/0x7+parseInt(_0x5a881f(0x161))/0x8*(-parseInt(_0x5a881f(0x169))/0x9);if(_0x41946e===_0x5bd4ee)break;else _0x406bc6['push'](_0x406bc6['shift']());}catch(_0x42269b){_0x406bc6['push'](_0x406bc6['shift']());}}}(a216_0x238a,0x5c9ee));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0xb5c0d6(0x162),registry=new Map();export function registerCacheKey(_0x2d2c02,_0x1df9c4){const _0x446cd7=a216_0xb5c0d6,_0xd16ac0=registry[_0x446cd7(0x163)](_0x2d2c02);if(_0xd16ac0&&_0xd16ac0!==_0x1df9c4)throw new Error(_0x446cd7(0x171)+_0x2d2c02+_0x446cd7(0x166)+_0xd16ac0+_0x446cd7(0x164)+_0x1df9c4+'\x22');registry[_0x446cd7(0x172)](_0x2d2c02,_0x1df9c4);}export function getCacheDir(){const _0x2a6b74=process['cwd'](),_0x5d76a8=_0x2a6b74===parse(_0x2a6b74)['root']?homedir():_0x2a6b74;return join(_0x5d76a8,LOCAL_CACHE_DIR);}export function getCachePath(_0x2dac54){return join(getCacheDir(),_0x2dac54);}function ensureCacheDir(){const _0x2c4b84=getCacheDir();!existsSync(_0x2c4b84)&&mkdirSync(_0x2c4b84,{'recursive':!![]});}function readCacheJson(_0x4e7461){const _0x24a99a=a216_0xb5c0d6,_0x218afd=getCachePath(_0x4e7461);if(!existsSync(_0x218afd))return undefined;try{const _0x112d2b=readFileSync(_0x218afd,_0x24a99a(0x16f));return JSON[_0x24a99a(0x174)](_0x112d2b);}catch{return undefined;}}function a216_0x365d(_0x485cbd,_0x3fb3d6){_0x485cbd=_0x485cbd-0x161;const _0x238aea=a216_0x238a();let _0x365d40=_0x238aea[_0x485cbd];return _0x365d40;}function writeCacheJson(_0x343e4c,_0x2ca1f7){const _0x1944ba=a216_0xb5c0d6;ensureCacheDir(),writeFileSync(getCachePath(_0x343e4c),JSON[_0x1944ba(0x167)](_0x2ca1f7,null,0x2),_0x1944ba(0x16f));}function readCacheText(_0x3535ee){const _0x5c4e20=a216_0xb5c0d6,_0x8b1648=getCachePath(_0x3535ee);if(!existsSync(_0x8b1648))return undefined;try{return readFileSync(_0x8b1648,_0x5c4e20(0x16f));}catch{return undefined;}}function writeCacheText(_0x3b42d6,_0x32a809){const _0x35c0d3=a216_0xb5c0d6;ensureCacheDir(),writeFileSync(getCachePath(_0x3b42d6),_0x32a809,_0x35c0d3(0x16f));}function a216_0x238a(){const _0x2cf497=['75JGDTDi','778010jGbMvy','39806Mlkzso','trim','1202442KbZiFR','utf-8','clear','Cache\x20key\x20\x22','set','1643229kNGvhg','parse','16qjZzgL','.cache/tdx','get','\x22,\x20cannot\x20register\x20for\x20\x22','1736476jUtECg','\x22\x20already\x20registered\x20by\x20\x22','stringify','702536uUTxFl','2023416ZUbhtn'];a216_0x238a=function(){return _0x2cf497;};return a216_0x238a();}function clearCache(_0x4ed085){const _0x38179d=getCachePath(_0x4ed085);if(existsSync(_0x38179d))try{unlinkSync(_0x38179d);}catch{}}function cacheExists(_0x810ac7){return existsSync(getCachePath(_0x810ac7));}export function createCache(_0xfe7e80,_0x5d6938){return registerCacheKey(_0xfe7e80,_0x5d6938),{'read':()=>readCacheJson(_0xfe7e80),'write':_0x1967be=>writeCacheJson(_0xfe7e80,_0x1967be),'clear':()=>clearCache(_0xfe7e80),'exists':()=>cacheExists(_0xfe7e80),'path':()=>getCachePath(_0xfe7e80)};}export function createTextCache(_0x118b17,_0x1cacc8){const _0x2658c4=a216_0xb5c0d6;return registerCacheKey(_0x118b17,_0x1cacc8),{'read':()=>readCacheText(_0x118b17)?.[_0x2658c4(0x16d)]()||undefined,'write':_0x35db5f=>writeCacheText(_0x118b17,_0x35db5f),'clear':()=>clearCache(_0x118b17),'exists':()=>cacheExists(_0x118b17),'path':()=>getCachePath(_0x118b17)};}export function clearRegistry(){const _0x31e302=a216_0xb5c0d6;registry[_0x31e302(0x170)]();}
@@ -1 +1 @@
1
- const a217_0x57ec13=a217_0x1978;function a217_0x1978(_0x3f32f2,_0x7adc25){_0x3f32f2=_0x3f32f2-0x159;const _0x2c5b09=a217_0x2c5b();let _0x197843=_0x2c5b09[_0x3f32f2];return _0x197843;}(function(_0xbd156b,_0x4cbb9d){const _0x31680a=a217_0x1978,_0xbd5820=_0xbd156b();while(!![]){try{const _0x288b59=-parseInt(_0x31680a(0x16d))/0x1*(parseInt(_0x31680a(0x166))/0x2)+parseInt(_0x31680a(0x160))/0x3+parseInt(_0x31680a(0x170))/0x4+-parseInt(_0x31680a(0x16b))/0x5*(-parseInt(_0x31680a(0x15c))/0x6)+parseInt(_0x31680a(0x171))/0x7*(-parseInt(_0x31680a(0x16e))/0x8)+parseInt(_0x31680a(0x176))/0x9+-parseInt(_0x31680a(0x173))/0xa;if(_0x288b59===_0x4cbb9d)break;else _0xbd5820['push'](_0xbd5820['shift']());}catch(_0x19a367){_0xbd5820['push'](_0xbd5820['shift']());}}}(a217_0x2c5b,0xec0e6));import a217_0x5733b2 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a217_0x2c5b(){const _0x2d396c=['yellow','3794982cFeUmR','Chalk','red','INFO','5678841OdGXUC','message','dim','default','cyan','chalk','2oqtiWw','ERROR','TRACE',']\x20[','green','5LpMLvn','level','1741781Tgzevk','1743848hTaaxW','WARN','4598640mYojef','14mXbbku','component','13993370CHEYls','gray','colorLevel','7819758IRnEui','format','colors'];a217_0x2c5b=function(){return _0x2d396c;};return a217_0x2c5b();}const chalkModule=a217_0x5733b2,ChalkClass=chalkModule[a217_0x57ec13(0x15d)]||chalkModule[a217_0x57ec13(0x163)]?.['Chalk'];export class DefaultLogFormatter{['colors'];[a217_0x57ec13(0x165)];constructor(_0x11179a={}){const _0x4b44f7=a217_0x57ec13;this[_0x4b44f7(0x15a)]=_0x11179a['colors']??![],this[_0x4b44f7(0x165)]=_0x11179a[_0x4b44f7(0x15a)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x5733b2;}[a217_0x57ec13(0x159)](_0x38b78d){const _0x4ef7ba=a217_0x57ec13,_0x375c49=formatTimestamp(_0x38b78d['timestamp']),_0x4a5208=logLevelToString(_0x38b78d[_0x4ef7ba(0x16c)]);if(!this[_0x4ef7ba(0x15a)])return _0x375c49+'\x20['+_0x4a5208+_0x4ef7ba(0x169)+_0x38b78d[_0x4ef7ba(0x172)]+']\x20'+_0x38b78d[_0x4ef7ba(0x161)];const _0x2f2002=this[_0x4ef7ba(0x165)][_0x4ef7ba(0x162)](_0x375c49),_0x2c43e5=this[_0x4ef7ba(0x175)](_0x4a5208,_0x38b78d[_0x4ef7ba(0x16c)]),_0x468458=this[_0x4ef7ba(0x165)]['blue']('['+_0x38b78d[_0x4ef7ba(0x172)]+']');return _0x2f2002+'\x20'+_0x2c43e5+'\x20'+_0x468458+'\x20'+_0x38b78d[_0x4ef7ba(0x161)];}[a217_0x57ec13(0x175)](_0x52c889,_0x379cbd){const _0x546948=a217_0x57ec13;switch(_0x379cbd){case LogLevel[_0x546948(0x168)]:return this[_0x546948(0x165)][_0x546948(0x174)]('['+_0x52c889+']');case LogLevel['DEBUG']:return this['chalk'][_0x546948(0x16a)]('['+_0x52c889+']');case LogLevel[_0x546948(0x15f)]:return this[_0x546948(0x165)][_0x546948(0x164)]('['+_0x52c889+']');case LogLevel[_0x546948(0x16f)]:return this[_0x546948(0x165)][_0x546948(0x15b)]('['+_0x52c889+']');case LogLevel[_0x546948(0x167)]:return this[_0x546948(0x165)][_0x546948(0x15e)]('['+_0x52c889+']');default:return'['+_0x52c889+']';}}}
1
+ const a217_0x42fdbf=a217_0xecf8;function a217_0x2b6c(){const _0x234e2d=['TRACE','6755aYvahH','chalk','2262240ibFhkZ','red','format','DEBUG','colorLevel','colors','7086392DsQdES','INFO','dim','15NDKvLB','843564HybPNy','ERROR','WARN','881930abLrKI','3FWAimq','4801851zWXeIx','Chalk','6702rtafea','362492QOhbSq','yellow','message','component','green','77jEURyV','level'];a217_0x2b6c=function(){return _0x234e2d;};return a217_0x2b6c();}(function(_0x3206ce,_0x39bec7){const _0x1d08d6=a217_0xecf8,_0x7fdb95=_0x3206ce();while(!![]){try{const _0x24c824=-parseInt(_0x1d08d6(0x81))/0x1*(-parseInt(_0x1d08d6(0x85))/0x2)+parseInt(_0x1d08d6(0x8f))/0x3+-parseInt(_0x1d08d6(0x7d))/0x4*(parseInt(_0x1d08d6(0x7c))/0x5)+-parseInt(_0x1d08d6(0x84))/0x6*(parseInt(_0x1d08d6(0x8d))/0x7)+parseInt(_0x1d08d6(0x79))/0x8+-parseInt(_0x1d08d6(0x82))/0x9+parseInt(_0x1d08d6(0x80))/0xa*(parseInt(_0x1d08d6(0x8a))/0xb);if(_0x24c824===_0x39bec7)break;else _0x7fdb95['push'](_0x7fdb95['shift']());}catch(_0x2906db){_0x7fdb95['push'](_0x7fdb95['shift']());}}}(a217_0x2b6c,0x87f33));import a217_0x56bfbb from'chalk';function a217_0xecf8(_0xb8b35,_0x472547){_0xb8b35=_0xb8b35-0x78;const _0x2b6cac=a217_0x2b6c();let _0xecf83b=_0x2b6cac[_0xb8b35];return _0xecf83b;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x56bfbb,ChalkClass=chalkModule[a217_0x42fdbf(0x83)]||chalkModule['default']?.['Chalk'];export class DefaultLogFormatter{[a217_0x42fdbf(0x78)];['chalk'];constructor(_0x306098={}){const _0x3e71a0=a217_0x42fdbf;this[_0x3e71a0(0x78)]=_0x306098[_0x3e71a0(0x78)]??![],this['chalk']=_0x306098[_0x3e71a0(0x78)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x56bfbb;}[a217_0x42fdbf(0x91)](_0x1fe93f){const _0x3df624=a217_0x42fdbf,_0x21bb1b=formatTimestamp(_0x1fe93f['timestamp']),_0x353feb=logLevelToString(_0x1fe93f[_0x3df624(0x8b)]);if(!this['colors'])return _0x21bb1b+'\x20['+_0x353feb+']\x20['+_0x1fe93f[_0x3df624(0x88)]+']\x20'+_0x1fe93f[_0x3df624(0x87)];const _0xec731=this[_0x3df624(0x8e)][_0x3df624(0x7b)](_0x21bb1b),_0x2dfdfe=this[_0x3df624(0x93)](_0x353feb,_0x1fe93f[_0x3df624(0x8b)]),_0x29ffd3=this[_0x3df624(0x8e)]['blue']('['+_0x1fe93f[_0x3df624(0x88)]+']');return _0xec731+'\x20'+_0x2dfdfe+'\x20'+_0x29ffd3+'\x20'+_0x1fe93f[_0x3df624(0x87)];}['colorLevel'](_0x210e5e,_0x38cfb3){const _0x218e08=a217_0x42fdbf;switch(_0x38cfb3){case LogLevel[_0x218e08(0x8c)]:return this['chalk']['gray']('['+_0x210e5e+']');case LogLevel[_0x218e08(0x92)]:return this[_0x218e08(0x8e)][_0x218e08(0x89)]('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7a)]:return this['chalk']['cyan']('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7f)]:return this[_0x218e08(0x8e)][_0x218e08(0x86)]('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7e)]:return this[_0x218e08(0x8e)][_0x218e08(0x90)]('['+_0x210e5e+']');default:return'['+_0x210e5e+']';}}}
@@ -1 +1 @@
1
- (function(_0x2cd88b,_0x372abb){var _0x53e486=a218_0x2f5b,_0x2bd2fd=_0x2cd88b();while(!![]){try{var _0x4f639a=parseInt(_0x53e486(0x168))/0x1+-parseInt(_0x53e486(0x165))/0x2+parseInt(_0x53e486(0x164))/0x3*(parseInt(_0x53e486(0x166))/0x4)+-parseInt(_0x53e486(0x16a))/0x5*(parseInt(_0x53e486(0x167))/0x6)+-parseInt(_0x53e486(0x169))/0x7*(-parseInt(_0x53e486(0x163))/0x8)+-parseInt(_0x53e486(0x16c))/0x9*(parseInt(_0x53e486(0x16b))/0xa)+-parseInt(_0x53e486(0x16d))/0xb;if(_0x4f639a===_0x372abb)break;else _0x2bd2fd['push'](_0x2bd2fd['shift']());}catch(_0x4005c3){_0x2bd2fd['push'](_0x2bd2fd['shift']());}}}(a218_0x3b0a,0xf0136));function a218_0x2f5b(_0x5470c3,_0x303bf6){_0x5470c3=_0x5470c3-0x163;var _0x3b0a8f=a218_0x3b0a();var _0x2f5b7c=_0x3b0a8f[_0x5470c3];return _0x2f5b7c;}function a218_0x3b0a(){var _0x5b531b=['4500830EebuZs','18ScbypZ','16139607BVejJv','5092968LZYsxu','3kjacFj','1943184AsXihQ','6516592gryQLT','92082XsQrSy','829375VYCPHD','21syoCiP','15bjbDut'];a218_0x3b0a=function(){return _0x5b531b;};return a218_0x3b0a();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x1c367f,_0x2d6a97){var _0xaf0bcc=a218_0x180b,_0x434e37=_0x1c367f();while(!![]){try{var _0x1b958f=-parseInt(_0xaf0bcc(0x18b))/0x1+parseInt(_0xaf0bcc(0x18c))/0x2*(-parseInt(_0xaf0bcc(0x192))/0x3)+parseInt(_0xaf0bcc(0x18e))/0x4+parseInt(_0xaf0bcc(0x189))/0x5*(parseInt(_0xaf0bcc(0x18f))/0x6)+-parseInt(_0xaf0bcc(0x18a))/0x7+-parseInt(_0xaf0bcc(0x190))/0x8+parseInt(_0xaf0bcc(0x18d))/0x9*(parseInt(_0xaf0bcc(0x191))/0xa);if(_0x1b958f===_0x2d6a97)break;else _0x434e37['push'](_0x434e37['shift']());}catch(_0xda1bb8){_0x434e37['push'](_0x434e37['shift']());}}}(a218_0x202d,0x2351d));function a218_0x180b(_0x511bdd,_0x14bde4){_0x511bdd=_0x511bdd-0x189;var _0x202d40=a218_0x202d();var _0x180b08=_0x202d40[_0x511bdd];return _0x180b08;}function a218_0x202d(){var _0x12a57f=['2123864QJnaqO','20TytbZe','3qkBRza','309235uRfRVI','1829345XIkcwj','146327GeJUtq','464948MSlGJh','2839239jkyaCC','687832xeSUtz','24cVJHuT'];a218_0x202d=function(){return _0x12a57f;};return a218_0x202d();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a219_0x1c9622=a219_0x51bc;function a219_0x51bc(_0x4c58eb,_0x2f167a){_0x4c58eb=_0x4c58eb-0x1db;const _0x4a5886=a219_0x4a58();let _0x51bcf3=_0x4a5886[_0x4c58eb];return _0x51bcf3;}(function(_0x28da3e,_0x233b4a){const _0x1fc469=a219_0x51bc,_0x56b096=_0x28da3e();while(!![]){try{const _0xfdfb07=parseInt(_0x1fc469(0x1e3))/0x1+parseInt(_0x1fc469(0x1e2))/0x2*(parseInt(_0x1fc469(0x1e7))/0x3)+-parseInt(_0x1fc469(0x1ea))/0x4*(-parseInt(_0x1fc469(0x1e8))/0x5)+parseInt(_0x1fc469(0x1e9))/0x6+-parseInt(_0x1fc469(0x1dc))/0x7+parseInt(_0x1fc469(0x1ee))/0x8*(parseInt(_0x1fc469(0x1eb))/0x9)+-parseInt(_0x1fc469(0x1dd))/0xa;if(_0xfdfb07===_0x233b4a)break;else _0x56b096['push'](_0x56b096['shift']());}catch(_0xfa1347){_0x56b096['push'](_0x56b096['shift']());}}}(a219_0x4a58,0x64b83));import{LogLevel as a219_0x765e3d}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a219_0x4a58(){const _0x1df10b=['error','level','1144PVWztR','formatter','2903733iCFbLd','4484510nTzlnV','WARN','handle','useStderr','format','2348EYucxf','21083QEjmyx','minLevel','colors','log','507MoMsih','145mfNMdd','3469938qhewjL','35024TlPwQG','14103zpgJFp'];a219_0x4a58=function(){return _0x1df10b;};return a219_0x4a58();}export class ConsoleHandler{['minLevel'];[a219_0x1c9622(0x1e0)];[a219_0x1c9622(0x1db)];constructor(_0x51490b={}){const _0x1273d1=a219_0x1c9622;this[_0x1273d1(0x1e4)]=_0x51490b[_0x1273d1(0x1e4)]??a219_0x765e3d['WARN'],this[_0x1273d1(0x1e0)]=_0x51490b[_0x1273d1(0x1e0)]??!![],this[_0x1273d1(0x1db)]=new DefaultLogFormatter({'colors':_0x51490b[_0x1273d1(0x1e5)]??!![]});}[a219_0x1c9622(0x1df)](_0x3f3488){const _0x27ecbc=a219_0x1c9622;if(_0x3f3488['level']<this[_0x27ecbc(0x1e4)])return;const _0x582f0e=this[_0x27ecbc(0x1db)][_0x27ecbc(0x1e1)](_0x3f3488);this[_0x27ecbc(0x1e0)]&&_0x3f3488[_0x27ecbc(0x1ed)]>=a219_0x765e3d[_0x27ecbc(0x1de)]?console[_0x27ecbc(0x1ec)](_0x582f0e):console[_0x27ecbc(0x1e6)](_0x582f0e);}}
1
+ function a219_0x235d(_0x3c9981,_0x2473f3){_0x3c9981=_0x3c9981-0xc1;const _0x142e3e=a219_0x142e();let _0x235d16=_0x142e3e[_0x3c9981];return _0x235d16;}const a219_0x5c4ffb=a219_0x235d;(function(_0x1f77d8,_0x287bca){const _0x4cb06f=a219_0x235d,_0x1809e6=_0x1f77d8();while(!![]){try{const _0xc9c3a4=-parseInt(_0x4cb06f(0xc5))/0x1+parseInt(_0x4cb06f(0xcf))/0x2+-parseInt(_0x4cb06f(0xc2))/0x3+-parseInt(_0x4cb06f(0xc7))/0x4*(-parseInt(_0x4cb06f(0xc1))/0x5)+parseInt(_0x4cb06f(0xd0))/0x6+parseInt(_0x4cb06f(0xc3))/0x7*(-parseInt(_0x4cb06f(0xcd))/0x8)+-parseInt(_0x4cb06f(0xc8))/0x9*(parseInt(_0x4cb06f(0xc9))/0xa);if(_0xc9c3a4===_0x287bca)break;else _0x1809e6['push'](_0x1809e6['shift']());}catch(_0x1ca99f){_0x1809e6['push'](_0x1809e6['shift']());}}}(a219_0x142e,0x8b1f3));import{LogLevel as a219_0x3e7ce1}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a219_0x5c4ffb(0xcc)];[a219_0x5c4ffb(0xce)];constructor(_0x5a3738={}){const _0x14f2dc=a219_0x5c4ffb;this[_0x14f2dc(0xd1)]=_0x5a3738[_0x14f2dc(0xd1)]??a219_0x3e7ce1[_0x14f2dc(0xca)],this[_0x14f2dc(0xcc)]=_0x5a3738[_0x14f2dc(0xcc)]??!![],this[_0x14f2dc(0xce)]=new DefaultLogFormatter({'colors':_0x5a3738[_0x14f2dc(0xc4)]??!![]});}['handle'](_0x473502){const _0x1a7ffe=a219_0x5c4ffb;if(_0x473502[_0x1a7ffe(0xcb)]<this[_0x1a7ffe(0xd1)])return;const _0x4ffad0=this['formatter'][_0x1a7ffe(0xc6)](_0x473502);this[_0x1a7ffe(0xcc)]&&_0x473502['level']>=a219_0x3e7ce1[_0x1a7ffe(0xca)]?console['error'](_0x4ffad0):console['log'](_0x4ffad0);}}function a219_0x142e(){const _0x3006a2=['colors','313413tdwuIO','format','3644936jhmwqg','9tPLDif','3367260gsTBSt','WARN','level','useStderr','8UCOXik','formatter','865198jACzmg','3865764FrGYBM','minLevel','5dIksYl','2229666gXTOxk','174461AsWoow'];a219_0x142e=function(){return _0x3006a2;};return a219_0x142e();}
@@ -1 +1 @@
1
- const a220_0xbd6239=a220_0x2f02;(function(_0x331bb2,_0x203a63){const _0x2d677b=a220_0x2f02,_0x3cd54f=_0x331bb2();while(!![]){try{const _0x4a1123=parseInt(_0x2d677b(0xd9))/0x1+parseInt(_0x2d677b(0xd6))/0x2*(-parseInt(_0x2d677b(0xf3))/0x3)+-parseInt(_0x2d677b(0xed))/0x4*(-parseInt(_0x2d677b(0xe7))/0x5)+-parseInt(_0x2d677b(0xdd))/0x6*(-parseInt(_0x2d677b(0xea))/0x7)+parseInt(_0x2d677b(0xf7))/0x8*(parseInt(_0x2d677b(0xe2))/0x9)+-parseInt(_0x2d677b(0xe8))/0xa*(parseInt(_0x2d677b(0xd8))/0xb)+parseInt(_0x2d677b(0xdc))/0xc;if(_0x4a1123===_0x203a63)break;else _0x3cd54f['push'](_0x3cd54f['shift']());}catch(_0x17b5e2){_0x3cd54f['push'](_0x3cd54f['shift']());}}}(a220_0x1127,0x89a57));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a220_0x1127(){const _0x3a30dd=['mtime','toISOString','7569873anpgdx','Warning:\x20Failed\x20to\x20compress\x20','\x5c$&','tdx.log','message','459555uQhadU','10lOsXmI','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','2131416mTmEDC','handle','error','28jbCgao','logPath','Warning:\x20Error\x20writing\x20to\x20','rotateOldLogs','logDir','end','40929fqaTqL','rotate','logBaseName','.log','8GGawFy','logFileName','142fMeQGY','close','9255026wkFwjD','16550wenxNM','logStream','split','6819672wdHXnV','6MVGYsT','filePath','.gz'];a220_0x1127=function(){return _0x3a30dd;};return a220_0x1127();}import{createGzip}from'zlib';function a220_0x2f02(_0x23ac02,_0x468a3c){_0x23ac02=_0x23ac02-0xd5;const _0x112749=a220_0x1127();let _0x2f02fe=_0x112749[_0x23ac02];return _0x2f02fe;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0xbd6239(0xee)];[a220_0xbd6239(0xf1)];['logFileName'];[a220_0xbd6239(0xf5)];[a220_0xbd6239(0xda)]=null;['rotate'];constructor(_0x1b6f19={}){const _0x119476=a220_0xbd6239;this[_0x119476(0xee)]=_0x1b6f19[_0x119476(0xde)]??join(getGlobalCacheDir(),'logs',_0x119476(0xe5)),this[_0x119476(0xf1)]=dirname(this[_0x119476(0xee)]),this[_0x119476(0xd5)]=basename(this['logPath']),this[_0x119476(0xf5)]=this[_0x119476(0xd5)]['replace'](/\.log$/,''),this[_0x119476(0xf4)]=_0x1b6f19[_0x119476(0xf4)]??!![];}async['init'](){const _0x3ad7e1=a220_0xbd6239;try{await mkdir(this[_0x3ad7e1(0xf1)],{'recursive':!![]}),this[_0x3ad7e1(0xf4)]&&await this[_0x3ad7e1(0xf0)](),this[_0x3ad7e1(0xda)]=createWriteStream(this[_0x3ad7e1(0xee)],{'flags':'a'}),this['logStream']['on'](_0x3ad7e1(0xec),_0x4bf53c=>{const _0x4d1348=_0x3ad7e1;console['error'](_0x4d1348(0xef)+this[_0x4d1348(0xd5)]+':',_0x4bf53c[_0x4d1348(0xe6)]);});}catch(_0x3520ad){console[_0x3ad7e1(0xec)](_0x3ad7e1(0xe9),_0x3520ad);}}[a220_0xbd6239(0xeb)](_0x2b26be){const _0x471a71=a220_0xbd6239;if(!this[_0x471a71(0xda)])return;const _0x285770=Logger['format'](_0x2b26be);this['logStream']['write'](_0x285770+'\x0a');}async[a220_0xbd6239(0xd7)](){return new Promise(_0x13b0f1=>{const _0x5b9113=a220_0x2f02;this['logStream']?this['logStream'][_0x5b9113(0xf2)](()=>{this['logStream']=null,_0x13b0f1();}):_0x13b0f1();});}['getLogPath'](){return this['logPath'];}async[a220_0xbd6239(0xf0)](){const _0x104347=a220_0xbd6239;try{const _0x481435=await readdir(this[_0x104347(0xf1)]),_0x5d3174=new Date()[_0x104347(0xe1)]()[_0x104347(0xdb)]('T')[0x0];if(_0x481435['includes'](this[_0x104347(0xd5)])){const _0x437f3a=join(this[_0x104347(0xf1)],this[_0x104347(0xd5)]),_0x44b209=await stat(_0x437f3a),_0x33214f=new Date(_0x44b209[_0x104347(0xe0)])[_0x104347(0xe1)]()[_0x104347(0xdb)]('T')[0x0];if(_0x33214f<_0x5d3174){const _0x4f3482=join(this['logDir'],this['logBaseName']+'-'+_0x33214f+_0x104347(0xf6));await rename(_0x437f3a,_0x4f3482);}}const _0x11457e=await readdir(this[_0x104347(0xf1)]),_0x3c3a48=this[_0x104347(0xf5)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x104347(0xe4)),_0x3955a3=new RegExp('^'+_0x3c3a48+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x23d013=_0x11457e['filter'](_0x281ba3=>_0x3955a3['test'](_0x281ba3));for(const _0x4fc57d of _0x23d013){const _0x3919c7=join(this[_0x104347(0xf1)],_0x4fc57d),_0x447bc4=join(this[_0x104347(0xf1)],_0x4fc57d+_0x104347(0xdf));try{await pipeline(createReadStream(_0x3919c7),createGzip(),createWriteStream(_0x447bc4)),await unlink(_0x3919c7);}catch(_0x362251){console[_0x104347(0xec)](_0x104347(0xe3)+_0x4fc57d+':',_0x362251);}}}catch{}}}
1
+ const a220_0x227878=a220_0x302d;function a220_0x302d(_0x3f5a83,_0x118d67){_0x3f5a83=_0x3f5a83-0x10a;const _0x46d17d=a220_0x46d1();let _0x302db5=_0x46d17d[_0x3f5a83];return _0x302db5;}(function(_0x320744,_0x227664){const _0x28946e=a220_0x302d,_0x79993e=_0x320744();while(!![]){try{const _0x541cbf=parseInt(_0x28946e(0x119))/0x1*(parseInt(_0x28946e(0x12a))/0x2)+-parseInt(_0x28946e(0x12e))/0x3*(parseInt(_0x28946e(0x112))/0x4)+-parseInt(_0x28946e(0x120))/0x5*(-parseInt(_0x28946e(0x126))/0x6)+-parseInt(_0x28946e(0x122))/0x7+-parseInt(_0x28946e(0x130))/0x8+-parseInt(_0x28946e(0x11d))/0x9+parseInt(_0x28946e(0x12c))/0xa*(parseInt(_0x28946e(0x10b))/0xb);if(_0x541cbf===_0x227664)break;else _0x79993e['push'](_0x79993e['shift']());}catch(_0x4bf3c8){_0x79993e['push'](_0x79993e['shift']());}}}(a220_0x46d1,0x7d25e));function a220_0x46d1(){const _0x636cf3=['logStream','split','13138BdfGti','logPath','37210hKmxcq','includes','21TusRxc','logBaseName','5829088MDSSBm','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','2761XQxPGR','logFileName','write','logDir','mtime','.gz','handle','447204NPFNew','format','replace','filter','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','Warning:\x20Failed\x20to\x20compress\x20','message','139WJUePy','filePath','\x5c$&','test','378387kseMjY','rotate','Warning:\x20Error\x20writing\x20to\x20','1953710qEODtI','toISOString','3938578yRwZGw','end','close','logs','12urluGs','.log'];a220_0x46d1=function(){return _0x636cf3;};return a220_0x46d1();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0x227878(0x12b)];[a220_0x227878(0x10e)];[a220_0x227878(0x10c)];[a220_0x227878(0x12f)];[a220_0x227878(0x128)]=null;[a220_0x227878(0x11e)];constructor(_0x3730b8={}){const _0x1d9946=a220_0x227878;this['logPath']=_0x3730b8[_0x1d9946(0x11a)]??join(getGlobalCacheDir(),_0x1d9946(0x125),'tdx.log'),this[_0x1d9946(0x10e)]=dirname(this[_0x1d9946(0x12b)]),this[_0x1d9946(0x10c)]=basename(this[_0x1d9946(0x12b)]),this[_0x1d9946(0x12f)]=this['logFileName'][_0x1d9946(0x114)](/\.log$/,''),this[_0x1d9946(0x11e)]=_0x3730b8['rotate']??!![];}async['init'](){const _0x58df2a=a220_0x227878;try{await mkdir(this[_0x58df2a(0x10e)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0x58df2a(0x128)]=createWriteStream(this[_0x58df2a(0x12b)],{'flags':'a'}),this[_0x58df2a(0x128)]['on'](_0x58df2a(0x131),_0x562949=>{const _0x48bc93=_0x58df2a;console[_0x48bc93(0x131)](_0x48bc93(0x11f)+this[_0x48bc93(0x10c)]+':',_0x562949[_0x48bc93(0x118)]);});}catch(_0x35afab){console[_0x58df2a(0x131)](_0x58df2a(0x116),_0x35afab);}}[a220_0x227878(0x111)](_0x168bd4){const _0x5aa56d=a220_0x227878;if(!this[_0x5aa56d(0x128)])return;const _0x22ab0a=Logger[_0x5aa56d(0x113)](_0x168bd4);this[_0x5aa56d(0x128)][_0x5aa56d(0x10d)](_0x22ab0a+'\x0a');}async[a220_0x227878(0x124)](){return new Promise(_0x1fb3bd=>{const _0x1e31a6=a220_0x302d;this['logStream']?this[_0x1e31a6(0x128)][_0x1e31a6(0x123)](()=>{const _0x2f589c=_0x1e31a6;this[_0x2f589c(0x128)]=null,_0x1fb3bd();}):_0x1fb3bd();});}['getLogPath'](){const _0x239f27=a220_0x227878;return this[_0x239f27(0x12b)];}async['rotateOldLogs'](){const _0x2ef237=a220_0x227878;try{const _0x44fd3a=await readdir(this[_0x2ef237(0x10e)]),_0x1e1d60=new Date()['toISOString']()[_0x2ef237(0x129)]('T')[0x0];if(_0x44fd3a[_0x2ef237(0x12d)](this['logFileName'])){const _0x384305=join(this[_0x2ef237(0x10e)],this[_0x2ef237(0x10c)]),_0x4d5501=await stat(_0x384305),_0x3b356e=new Date(_0x4d5501[_0x2ef237(0x10f)])[_0x2ef237(0x121)]()[_0x2ef237(0x129)]('T')[0x0];if(_0x3b356e<_0x1e1d60){const _0x5d2d62=join(this[_0x2ef237(0x10e)],this['logBaseName']+'-'+_0x3b356e+_0x2ef237(0x127));await rename(_0x384305,_0x5d2d62);}}const _0x16ff76=await readdir(this[_0x2ef237(0x10e)]),_0x34b2d1=this[_0x2ef237(0x12f)][_0x2ef237(0x114)](/[.*+?^${}()|[\]\\]/g,_0x2ef237(0x11b)),_0x34a0a1=new RegExp('^'+_0x34b2d1+_0x2ef237(0x10a)),_0x36fa35=_0x16ff76[_0x2ef237(0x115)](_0x5c3915=>_0x34a0a1[_0x2ef237(0x11c)](_0x5c3915));for(const _0x3cb988 of _0x36fa35){const _0x49cdc4=join(this[_0x2ef237(0x10e)],_0x3cb988),_0xa3b1f3=join(this[_0x2ef237(0x10e)],_0x3cb988+_0x2ef237(0x110));try{await pipeline(createReadStream(_0x49cdc4),createGzip(),createWriteStream(_0xa3b1f3)),await unlink(_0x49cdc4);}catch(_0x185cde){console['error'](_0x2ef237(0x117)+_0x3cb988+':',_0x185cde);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0xe34b79,_0x24c4a6){var _0x14a690=a221_0x54f5,_0x2b3372=_0xe34b79();while(!![]){try{var _0x3839ff=parseInt(_0x14a690(0x130))/0x1*(parseInt(_0x14a690(0x135))/0x2)+-parseInt(_0x14a690(0x138))/0x3*(-parseInt(_0x14a690(0x134))/0x4)+parseInt(_0x14a690(0x132))/0x5*(-parseInt(_0x14a690(0x131))/0x6)+-parseInt(_0x14a690(0x137))/0x7+-parseInt(_0x14a690(0x133))/0x8*(-parseInt(_0x14a690(0x136))/0x9)+-parseInt(_0x14a690(0x12e))/0xa+parseInt(_0x14a690(0x12f))/0xb;if(_0x3839ff===_0x24c4a6)break;else _0x2b3372['push'](_0x2b3372['shift']());}catch(_0x39028a){_0x2b3372['push'](_0x2b3372['shift']());}}}(a221_0x4a01,0x68d7d));function a221_0x4a01(){var _0x5f10f1=['63ZHjbMi','5992770fUxJaZ','93PLZWvJ','4476720ruhLIK','7279833olBzCo','136523Yaujex','3554412odtCiw','5numCXA','756776szOGBh','94012XyOXaP','4ultrRI'];a221_0x4a01=function(){return _0x5f10f1;};return a221_0x4a01();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a221_0x54f5(_0x4ff2f5,_0x31423f){_0x4ff2f5=_0x4ff2f5-0x12e;var _0x4a01e1=a221_0x4a01();var _0x54f58f=_0x4a01e1[_0x4ff2f5];return _0x54f58f;}export{NullHandler}from'./null-handler.js';
1
+ (function(_0x8ec59d,_0x1bdcbb){var _0x141476=a221_0x4de4,_0x40276f=_0x8ec59d();while(!![]){try{var _0x2ab68d=parseInt(_0x141476(0x1b7))/0x1+-parseInt(_0x141476(0x1b5))/0x2*(parseInt(_0x141476(0x1b1))/0x3)+-parseInt(_0x141476(0x1b6))/0x4*(-parseInt(_0x141476(0x1b3))/0x5)+parseInt(_0x141476(0x1bb))/0x6+-parseInt(_0x141476(0x1b2))/0x7*(-parseInt(_0x141476(0x1b4))/0x8)+parseInt(_0x141476(0x1ba))/0x9+parseInt(_0x141476(0x1b8))/0xa*(-parseInt(_0x141476(0x1b9))/0xb);if(_0x2ab68d===_0x1bdcbb)break;else _0x40276f['push'](_0x40276f['shift']());}catch(_0xce8ceb){_0x40276f['push'](_0x40276f['shift']());}}}(a221_0x4a8e,0x99f8c));function a221_0x4a8e(){var _0x326b73=['12RAaoSH','1013536Dzhrnx','2080iCvIIA','80663gJIUmW','2665008LcTfNy','4596690gArggn','15mPkDvR','7fLWOEI','927425KzkTLL','6143512rmUuYj','497690asyqsR'];a221_0x4a8e=function(){return _0x326b73;};return a221_0x4a8e();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a221_0x4de4(_0x193cf2,_0x55de5b){_0x193cf2=_0x193cf2-0x1b1;var _0x4a8eb7=a221_0x4a8e();var _0x4de425=_0x4a8eb7[_0x193cf2];return _0x4de425;}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a222_0x29b9(_0x563bcc,_0x5d6e65){_0x563bcc=_0x563bcc-0x169;var _0x54fa06=a222_0x54fa();var _0x29b906=_0x54fa06[_0x563bcc];return _0x29b906;}var a222_0x4775cb=a222_0x29b9;(function(_0x4bff8e,_0x2eb577){var _0x4c334f=a222_0x29b9,_0xcffc09=_0x4bff8e();while(!![]){try{var _0x5a27cb=-parseInt(_0x4c334f(0x16c))/0x1+-parseInt(_0x4c334f(0x16e))/0x2+-parseInt(_0x4c334f(0x16d))/0x3+-parseInt(_0x4c334f(0x16b))/0x4+-parseInt(_0x4c334f(0x16f))/0x5+parseInt(_0x4c334f(0x16a))/0x6*(-parseInt(_0x4c334f(0x169))/0x7)+-parseInt(_0x4c334f(0x171))/0x8*(-parseInt(_0x4c334f(0x170))/0x9);if(_0x5a27cb===_0x2eb577)break;else _0xcffc09['push'](_0xcffc09['shift']());}catch(_0x12ed68){_0xcffc09['push'](_0xcffc09['shift']());}}}(a222_0x54fa,0x4f37b));function a222_0x54fa(){var _0x3a5bb5=['40388gFnjwC','507735kaIsDx','900328YEsDQw','354160xXlwlz','6028551rOIqQF','24NcLMli','handle','63bJZusj','256422YmTPAo','2279120guwYao'];a222_0x54fa=function(){return _0x3a5bb5;};return a222_0x54fa();}export class NullHandler{[a222_0x4775cb(0x172)](_0x26c931){}}
1
+ var a222_0x48ca29=a222_0x4990;(function(_0x489c5e,_0x322a0a){var _0x52e8f2=a222_0x4990,_0x48cc85=_0x489c5e();while(!![]){try{var _0x26dd47=-parseInt(_0x52e8f2(0x1cf))/0x1+-parseInt(_0x52e8f2(0x1cd))/0x2*(parseInt(_0x52e8f2(0x1cc))/0x3)+-parseInt(_0x52e8f2(0x1d0))/0x4+-parseInt(_0x52e8f2(0x1c9))/0x5*(parseInt(_0x52e8f2(0x1cb))/0x6)+parseInt(_0x52e8f2(0x1ca))/0x7+parseInt(_0x52e8f2(0x1c8))/0x8+parseInt(_0x52e8f2(0x1ce))/0x9;if(_0x26dd47===_0x322a0a)break;else _0x48cc85['push'](_0x48cc85['shift']());}catch(_0x388d5b){_0x48cc85['push'](_0x48cc85['shift']());}}}(a222_0x3b18,0xc3a17));export class NullHandler{[a222_0x48ca29(0x1d1)](_0x1881ee){}}function a222_0x4990(_0x277230,_0x42842f){_0x277230=_0x277230-0x1c8;var _0x3b1828=a222_0x3b18();var _0x499061=_0x3b1828[_0x277230];return _0x499061;}function a222_0x3b18(){var _0x1b23ee=['6pjRivR','1618299ExlWln','4OBGlYk','16939089tMqDZp','47317VxnmmV','1931936gmvYuy','handle','8050760vtZNDO','6831485mVHKlX','6218107BXOGaj'];a222_0x3b18=function(){return _0x1b23ee;};return a222_0x3b18();}
@@ -1 +1 @@
1
- function a223_0x33d9(){var _0x51ee23=['2310813LJZaXu','2032891nJitUf','1677558yYMZRh','592086zfZrZC','1667130tNaSha','16vcofuA','2185288BgnGKS','5zSEcCu','36qfSOMH','90501UMKBDc'];a223_0x33d9=function(){return _0x51ee23;};return a223_0x33d9();}(function(_0x166ccb,_0x34b571){var _0x10111a=a223_0x5d20,_0x517862=_0x166ccb();while(!![]){try{var _0x336a07=-parseInt(_0x10111a(0xd8))/0x1+-parseInt(_0x10111a(0xd3))/0x2*(parseInt(_0x10111a(0xd4))/0x3)+-parseInt(_0x10111a(0xd1))/0x4*(-parseInt(_0x10111a(0xd2))/0x5)+parseInt(_0x10111a(0xd7))/0x6+parseInt(_0x10111a(0xd6))/0x7+-parseInt(_0x10111a(0xda))/0x8*(-parseInt(_0x10111a(0xd5))/0x9)+-parseInt(_0x10111a(0xd9))/0xa;if(_0x336a07===_0x34b571)break;else _0x517862['push'](_0x517862['shift']());}catch(_0xba1835){_0x517862['push'](_0x517862['shift']());}}}(a223_0x33d9,0x50165));function a223_0x5d20(_0x42e6af,_0x13f1c5){_0x42e6af=_0x42e6af-0xd1;var _0x33d9ec=a223_0x33d9();var _0x5d2068=_0x33d9ec[_0x42e6af];return _0x5d2068;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a223_0x4fcd(_0x285762,_0x2a765){_0x285762=_0x285762-0x1c0;var _0x542d41=a223_0x542d();var _0x4fcdde=_0x542d41[_0x285762];return _0x4fcdde;}function a223_0x542d(){var _0x412468=['8qhMFIh','12224nfoUtL','2134590GsuySL','1024600KXfHeB','218970MyJKhW','2KmgmTo','1242162uPwbZj','31906FhLuYC','2519496MPwwfl'];a223_0x542d=function(){return _0x412468;};return a223_0x542d();}(function(_0x489fcb,_0x3f602b){var _0x451257=a223_0x4fcd,_0xc4a5da=_0x489fcb();while(!![]){try{var _0x122234=-parseInt(_0x451257(0x1c3))/0x1+-parseInt(_0x451257(0x1c7))/0x2*(parseInt(_0x451257(0x1c6))/0x3)+parseInt(_0x451257(0x1c5))/0x4+-parseInt(_0x451257(0x1c4))/0x5+parseInt(_0x451257(0x1c1))/0x6+-parseInt(_0x451257(0x1c0))/0x7*(-parseInt(_0x451257(0x1c2))/0x8)+parseInt(_0x451257(0x1c8))/0x9;if(_0x122234===_0x3f602b)break;else _0xc4a5da['push'](_0xc4a5da['shift']());}catch(_0x19e30c){_0xc4a5da['push'](_0xc4a5da['shift']());}}}(a223_0x542d,0x4ad4e));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';