@treasuredata/tdx 2026.3.54 → 2026.3.55

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 (254) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.d.ts.map +1 -1
  9. package/dist/commands/agent-command.js +1 -1
  10. package/dist/commands/agent-command.js.map +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/cas-command.js +1 -1
  15. package/dist/commands/cas-segment-command.js +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/delivery-command.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-campaign-pull-command.js +1 -1
  26. package/dist/commands/engage-campaign-push-command.js +1 -1
  27. package/dist/commands/engage-campaign-validate-command.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-template-pull-command.js +1 -1
  30. package/dist/commands/engage-template-push-command.js +1 -1
  31. package/dist/commands/engage-template-validate-command.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/journey-command.js +1 -1
  34. package/dist/commands/journey-validate-command.js +1 -1
  35. package/dist/commands/llm-command.js +1 -1
  36. package/dist/commands/mcp-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/policy-command.js +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/schedule-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +27 -0
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.d.ts +10 -0
  90. package/dist/sdk/agent/agent-config.d.ts.map +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-config.js.map +1 -1
  93. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  94. package/dist/sdk/agent/agent-yaml.d.ts +61 -3
  95. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  96. package/dist/sdk/agent/agent-yaml.js +1 -1
  97. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  98. package/dist/sdk/agent/test/evaluator.js +1 -1
  99. package/dist/sdk/agent/test/executor.js +1 -1
  100. package/dist/sdk/agent/test/index.js +1 -1
  101. package/dist/sdk/agent/test/output.js +1 -1
  102. package/dist/sdk/agent/test/parser.js +1 -1
  103. package/dist/sdk/agent/tool-target-registry.js +1 -1
  104. package/dist/sdk/agent/types/agent-def.d.ts +43 -0
  105. package/dist/sdk/agent/types/agent-def.d.ts.map +1 -1
  106. package/dist/sdk/api.js +1 -1
  107. package/dist/sdk/cas/cas-api-client.js +1 -1
  108. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  109. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  110. package/dist/sdk/cas/index.js +1 -1
  111. package/dist/sdk/cas/pull-workflow.js +1 -1
  112. package/dist/sdk/cas/push-workflow.js +1 -1
  113. package/dist/sdk/client/cdp-api-client.js +1 -1
  114. package/dist/sdk/client/delivery-api-client.js +1 -1
  115. package/dist/sdk/client/endpoints.js +1 -1
  116. package/dist/sdk/client/engage-api-client.js +1 -1
  117. package/dist/sdk/client/http-client.js +1 -1
  118. package/dist/sdk/client/llm-api-client.d.ts +73 -1
  119. package/dist/sdk/client/llm-api-client.d.ts.map +1 -1
  120. package/dist/sdk/client/llm-api-client.js +1 -1
  121. package/dist/sdk/client/llm-api-client.js.map +1 -1
  122. package/dist/sdk/client/oauth-refresh.js +1 -1
  123. package/dist/sdk/client/rate-limiter.js +1 -1
  124. package/dist/sdk/client/td-api-client.js +1 -1
  125. package/dist/sdk/client/trino-api-client.js +1 -1
  126. package/dist/sdk/client/workflow-client.d.ts +28 -1
  127. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  128. package/dist/sdk/client/workflow-client.js +1 -1
  129. package/dist/sdk/client/workflow-client.js.map +1 -1
  130. package/dist/sdk/connection-validator.js +1 -1
  131. package/dist/sdk/connection.js +1 -1
  132. package/dist/sdk/delivery.js +1 -1
  133. package/dist/sdk/engage/campaign-pull.js +1 -1
  134. package/dist/sdk/engage/campaign-push.js +1 -1
  135. package/dist/sdk/engage/campaign-validator.js +1 -1
  136. package/dist/sdk/engage/campaign-yaml.js +1 -1
  137. package/dist/sdk/engage/template-pull.js +1 -1
  138. package/dist/sdk/engage/template-push.js +1 -1
  139. package/dist/sdk/engage/template-validator.js +1 -1
  140. package/dist/sdk/engage/template-yaml.js +1 -1
  141. package/dist/sdk/engage/types/campaign-def.js +1 -1
  142. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  143. package/dist/sdk/engage/types/template-schema.js +1 -1
  144. package/dist/sdk/engage.js +1 -1
  145. package/dist/sdk/errors.js +1 -1
  146. package/dist/sdk/index.js +1 -1
  147. package/dist/sdk/io/index.js +1 -1
  148. package/dist/sdk/io/node-filesystem.js +1 -1
  149. package/dist/sdk/job.js +1 -1
  150. package/dist/sdk/journey.js +1 -1
  151. package/dist/sdk/llm/chat-cache.js +1 -1
  152. package/dist/sdk/llm/index.d.ts.map +1 -1
  153. package/dist/sdk/llm/index.js +1 -1
  154. package/dist/sdk/llm/index.js.map +1 -1
  155. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  156. package/dist/sdk/llm/model-factors.js +1 -1
  157. package/dist/sdk/personalization.js +1 -1
  158. package/dist/sdk/policy.js +1 -1
  159. package/dist/sdk/query/index.js +1 -1
  160. package/dist/sdk/query/sql-parser.js +1 -1
  161. package/dist/sdk/realtime.js +1 -1
  162. package/dist/sdk/schedule.js +1 -1
  163. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  164. package/dist/sdk/segment/fields-display.js +1 -1
  165. package/dist/sdk/segment/file-discovery.js +1 -1
  166. package/dist/sdk/segment/journey-utils.js +1 -1
  167. package/dist/sdk/segment/journey-validator.js +1 -1
  168. package/dist/sdk/segment/journey-yaml.js +1 -1
  169. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  170. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  171. package/dist/sdk/segment/pull-workflow.js +1 -1
  172. package/dist/sdk/segment/push-recovery.js +1 -1
  173. package/dist/sdk/segment/push-workflow.js +1 -1
  174. package/dist/sdk/segment/resolution-context.js +1 -1
  175. package/dist/sdk/segment/segment-path-parser.js +1 -1
  176. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  177. package/dist/sdk/segment/segment-validator.js +1 -1
  178. package/dist/sdk/segment/target-resolution.js +1 -1
  179. package/dist/sdk/segment/tdx-config.js +1 -1
  180. package/dist/sdk/segment/types/activation-schema.js +1 -1
  181. package/dist/sdk/segment/types/journey-def.js +1 -1
  182. package/dist/sdk/segment/types/journey-schema.js +1 -1
  183. package/dist/sdk/segment/types/segment-def.js +1 -1
  184. package/dist/sdk/segment/types/segment-schema.js +1 -1
  185. package/dist/sdk/segment/validate-files.js +1 -1
  186. package/dist/sdk/segment/yaml-validator.js +1 -1
  187. package/dist/sdk/segment.js +1 -1
  188. package/dist/sdk/types/index.d.ts +2 -2
  189. package/dist/sdk/types/index.d.ts.map +1 -1
  190. package/dist/sdk/types/index.js +1 -1
  191. package/dist/sdk/types/index.js.map +1 -1
  192. package/dist/sdk/types/llm.d.ts +158 -0
  193. package/dist/sdk/types/llm.d.ts.map +1 -1
  194. package/dist/sdk/types/progress.js +1 -1
  195. package/dist/sdk/types/workflow.d.ts +26 -0
  196. package/dist/sdk/types/workflow.d.ts.map +1 -1
  197. package/dist/sdk/types/workspace.js +1 -1
  198. package/dist/sdk/user.js +1 -1
  199. package/dist/sdk/util/format-detector.js +1 -1
  200. package/dist/sdk/util/formatters.js +1 -1
  201. package/dist/sdk/util/index.js +1 -1
  202. package/dist/sdk/util/paginate.js +1 -1
  203. package/dist/sdk/util/tree-formatter.js +1 -1
  204. package/dist/sdk/workflow/archive-validation.js +1 -1
  205. package/dist/sdk/workflow/clone-workflow.js +1 -1
  206. package/dist/sdk/workflow/index.d.ts +22 -0
  207. package/dist/sdk/workflow/index.d.ts.map +1 -1
  208. package/dist/sdk/workflow/index.js +1 -1
  209. package/dist/sdk/workflow/index.js.map +1 -1
  210. package/dist/sdk/workflow/pull-workflow.js +1 -1
  211. package/dist/sdk/workflow/push-workflow.js +1 -1
  212. package/dist/sdk/workflow/tdx-config.js +1 -1
  213. package/dist/sdk/workflow/workflow-utils.js +1 -1
  214. package/dist/sdk/workspace/frontmatter.js +1 -1
  215. package/dist/sdk/workspace/git.js +1 -1
  216. package/dist/sdk/workspace/index.js +1 -1
  217. package/dist/sdk/workspace/templates.js +1 -1
  218. package/dist/sdk/workspace/weekly.js +1 -1
  219. package/dist/sdk/workspace/wikilinks.js +1 -1
  220. package/dist/test-utils/command-runner.js +1 -1
  221. package/dist/test-utils/factories.js +1 -1
  222. package/dist/test-utils/fixtures.js +1 -1
  223. package/dist/test-utils/http-mock.js +1 -1
  224. package/dist/test-utils/index.js +1 -1
  225. package/dist/utils/async.js +1 -1
  226. package/dist/utils/colors.js +1 -1
  227. package/dist/utils/diff.js +1 -1
  228. package/dist/utils/file-permissions.js +1 -1
  229. package/dist/utils/file-reader.js +1 -1
  230. package/dist/utils/github-releases.js +1 -1
  231. package/dist/utils/global-cache.js +1 -1
  232. package/dist/utils/json-loader.js +1 -1
  233. package/dist/utils/local-cache.js +1 -1
  234. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  235. package/dist/utils/logger/formatters/index.js +1 -1
  236. package/dist/utils/logger/handlers/console-handler.js +1 -1
  237. package/dist/utils/logger/handlers/file-handler.js +1 -1
  238. package/dist/utils/logger/handlers/index.js +1 -1
  239. package/dist/utils/logger/handlers/null-handler.js +1 -1
  240. package/dist/utils/logger/index.js +1 -1
  241. package/dist/utils/logger/logger.js +1 -1
  242. package/dist/utils/logger/types.js +1 -1
  243. package/dist/utils/option-validation.js +1 -1
  244. package/dist/utils/process.d.ts.map +1 -1
  245. package/dist/utils/process.js +1 -1
  246. package/dist/utils/process.js.map +1 -1
  247. package/dist/utils/prompt.js +1 -1
  248. package/dist/utils/spinner.js +1 -1
  249. package/dist/utils/sse-parser.js +1 -1
  250. package/dist/utils/string-utils.js +1 -1
  251. package/dist/utils/table-ref-parser.js +1 -1
  252. package/dist/utils/tdx-logger.js +1 -1
  253. package/dist/utils/version-check.js +1 -1
  254. package/package.json +2 -2
@@ -1 +1 @@
1
- const a206_0x4f5775=a206_0x41f1;(function(_0x8341d0,_0x255b5f){const _0x419473=a206_0x41f1,_0x59da56=_0x8341d0();while(!![]){try{const _0x20cb9f=-parseInt(_0x419473(0x198))/0x1+-parseInt(_0x419473(0x1a8))/0x2*(-parseInt(_0x419473(0x1b2))/0x3)+-parseInt(_0x419473(0x1b4))/0x4*(-parseInt(_0x419473(0x16c))/0x5)+parseInt(_0x419473(0x1b7))/0x6+parseInt(_0x419473(0x1b9))/0x7+-parseInt(_0x419473(0x17e))/0x8*(-parseInt(_0x419473(0x17f))/0x9)+-parseInt(_0x419473(0x186))/0xa;if(_0x20cb9f===_0x255b5f)break;else _0x59da56['push'](_0x59da56['shift']());}catch(_0x24cea7){_0x59da56['push'](_0x59da56['shift']());}}}(a206_0x4e99,0xe0e29));import{vi}from'vitest';export class HTTPMockRegistry{[a206_0x4f5775(0x176)]=[];['requests']=[];[a206_0x4f5775(0x1b6)]=null;['REST'](_0x4420f9,_0x4c437c){return _0x5a9534=>{const _0x56b63d=a206_0x41f1;if(_0x5a9534[_0x56b63d(0x171)]['toUpperCase']()!==_0x4420f9[_0x56b63d(0x193)]())return![];const _0xb19320=new URL(_0x5a9534[_0x56b63d(0x18c)]);if(typeof _0x4c437c===_0x56b63d(0x170))return _0xb19320['pathname']===_0x4c437c||_0xb19320['pathname'][_0x56b63d(0x19d)](_0x4c437c);return _0x4c437c['test'](_0xb19320[_0x56b63d(0x182)]);};}[a206_0x4f5775(0x19e)](_0x50f820,_0x2c5674){return _0x52734b=>{const _0x3d7d0b=a206_0x41f1;if(!_0x50f820(_0x52734b))return![];const _0x2ac12f=new URL(_0x52734b[_0x3d7d0b(0x18c)]);return Object[_0x3d7d0b(0x17a)](_0x2c5674)[_0x3d7d0b(0x18d)](([_0x511787,_0xf2efc])=>_0x2ac12f[_0x3d7d0b(0x196)][_0x3d7d0b(0x185)](_0x511787)===_0xf2efc);};}['withBody'](_0x423d0a,_0xa889d8){return _0x1d1f13=>{const _0x21ce55=a206_0x41f1;if(!_0x423d0a(_0x1d1f13))return![];if(typeof _0xa889d8==='function')return _0xa889d8(_0x1d1f13[_0x21ce55(0x180)]);return JSON[_0x21ce55(0x183)](_0x1d1f13['body'])===JSON[_0x21ce55(0x183)](_0xa889d8);};}[a206_0x4f5775(0x1a4)](_0x45d45e,_0x1587b0){return _0x368af7=>{const _0x47cec6=a206_0x41f1;if(!_0x45d45e(_0x368af7))return![];const _0x330aa8=new URL(_0x368af7[_0x47cec6(0x18c)]);return _0x330aa8[_0x47cec6(0x1a3)]===_0x1587b0;};}['register'](_0x1f9d81,_0x104ed6,_0x3df2f8){const _0x37f342=a206_0x4f5775;this[_0x37f342(0x176)]['push']({'matcher':_0x1f9d81,'responder':_0x104ed6,'matched':![],'matchCount':0x0,'stack':new Error()[_0x37f342(0x189)]??'','description':_0x3df2f8?.[_0x37f342(0x1af)]});}['registerWithInspector'](_0x5c18df,_0x461e78,_0xc1dafe){const _0x2cb5f1=_0x1cff41=>{const _0x2550a8=a206_0x41f1;return _0xc1dafe(_0x1cff41[_0x2550a8(0x180)],_0x1cff41),_0x461e78(_0x1cff41);};this['register'](_0x5c18df,_0x2cb5f1);}static[a206_0x4f5775(0x1a9)](_0x5091a6,_0x4af4fc=0xc8){const _0x2a0b5c=a206_0x4f5775;return()=>new Response(JSON[_0x2a0b5c(0x183)](_0x5091a6),{'status':_0x4af4fc,'headers':{'Content-Type':_0x2a0b5c(0x1ad)}});}static[a206_0x4f5775(0x17b)](_0x4a2a5e,_0x7e859f,_0x163a90=a206_0x4f5775(0x1b0)){return()=>{const _0x384132=a206_0x41f1;let _0x4dd3ad;switch(_0x163a90){case _0x384132(0x173):_0x4dd3ad={'errors':{'error':_0x7e859f,'message':_0x7e859f,'severity':'error','status_code':_0x4a2a5e}};break;case _0x384132(0x178):_0x4dd3ad={'type':_0x384132(0x191)+_0x4a2a5e,'title':HTTPMockRegistry[_0x384132(0x18b)](_0x4a2a5e),'status':_0x4a2a5e,'detail':_0x7e859f};break;default:_0x4dd3ad={'error':_0x7e859f};}return new Response(JSON[_0x384132(0x183)](_0x4dd3ad),{'status':_0x4a2a5e,'headers':{'Content-Type':'application/json'}});};}static['jsonResponseWithHeaders'](_0x431102,_0xa90a1f,_0x296467=0xc8){const _0x3bd74c=a206_0x4f5775;return()=>new Response(JSON['stringify'](_0x431102),{'status':_0x296467,'headers':{'Content-Type':_0x3bd74c(0x1ad),..._0xa90a1f}});}static[a206_0x4f5775(0x197)](_0x1f1f4d,_0x259723=0xc8){const _0x3cfc2f=a206_0x4f5775;return()=>new Response(_0x1f1f4d,{'status':_0x259723,'headers':{'Content-Type':_0x3cfc2f(0x19b)}});}static['networkError'](_0x4b173a){return()=>{throw new Error(_0x4b173a);};}['createFetch'](){const _0x4de8a0=a206_0x4f5775;return this[_0x4de8a0(0x1b6)]=vi['fn']()[_0x4de8a0(0x172)](async(_0x1df286,_0xd0221e)=>{const _0x300a67=_0x4de8a0,_0x2371ca=this[_0x300a67(0x19f)](_0x1df286,_0xd0221e);this[_0x300a67(0x1ab)][_0x300a67(0x181)](_0x2371ca);for(const _0x37b714 of this[_0x300a67(0x176)]){if(_0x37b714[_0x300a67(0x1b8)](_0x2371ca))return _0x37b714['matched']=!![],_0x37b714[_0x300a67(0x1ac)]++,_0x37b714[_0x300a67(0x18e)](_0x2371ca);}const _0x3d2f56=this[_0x300a67(0x176)]['map']((_0xb2df25,_0xc5112)=>'\x20\x20'+(_0xc5112+0x1)+'.\x20'+(_0xb2df25[_0x300a67(0x1af)]??_0x300a67(0x17c)))['join']('\x0a');throw new Error(_0x300a67(0x195)+_0x2371ca[_0x300a67(0x171)]+'\x20'+_0x2371ca[_0x300a67(0x18c)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x2371ca[_0x300a67(0x180)])+'\x0a')+(_0x300a67(0x179)+(_0x3d2f56||_0x300a67(0x19c))));}),this['fetchMock'];}['parseRequest'](_0x350b11,_0x5cfefa){const _0x335606=a206_0x4f5775,_0x5eaf4e={};if(_0x5cfefa?.['headers']){if(_0x5cfefa[_0x335606(0x1aa)]instanceof Headers)_0x5cfefa[_0x335606(0x1aa)][_0x335606(0x17d)]((_0x445c05,_0x2b7fcc)=>{const _0x30dd6e=_0x335606;_0x5eaf4e[_0x2b7fcc[_0x30dd6e(0x1a5)]()]=_0x445c05;});else{if(Array[_0x335606(0x1a0)](_0x5cfefa[_0x335606(0x1aa)]))for(const [_0x46bf00,_0x269307]of _0x5cfefa['headers']){_0x5eaf4e[_0x46bf00[_0x335606(0x1a5)]()]=_0x269307;}else for(const [_0x22e658,_0x39ea08]of Object[_0x335606(0x17a)](_0x5cfefa[_0x335606(0x1aa)])){_0x39ea08!==undefined&&(_0x5eaf4e[_0x22e658['toLowerCase']()]=_0x39ea08);}}}let _0x11b8bf;if(_0x5cfefa?.[_0x335606(0x180)])try{_0x11b8bf=JSON[_0x335606(0x1a1)](_0x5cfefa['body']);}catch{_0x11b8bf=_0x5cfefa[_0x335606(0x180)];}return{'method':_0x5cfefa?.[_0x335606(0x171)]??'GET','url':_0x350b11,'headers':_0x5eaf4e,'body':_0x11b8bf};}[a206_0x4f5775(0x192)](_0x4d5836){const _0xbc25ac=a206_0x4f5775,_0x2ab65c=this[_0xbc25ac(0x176)][_0xbc25ac(0x1b1)](_0x1fd8f5=>!_0x1fd8f5[_0xbc25ac(0x175)]);if(_0x2ab65c[_0xbc25ac(0x177)]>0x0){const _0x3e6120=_0x2ab65c['map'](_0x429eb6=>{const _0x19d4ab=_0xbc25ac,_0x483649=_0x429eb6[_0x19d4ab(0x1af)]?'\x20('+_0x429eb6[_0x19d4ab(0x1af)]+')':'',_0x132ac4=_0x429eb6[_0x19d4ab(0x189)][_0x19d4ab(0x1a7)]('\x0a')[_0x19d4ab(0x194)](0x2,0x5)[_0x19d4ab(0x190)]('\x0a');return _0x19d4ab(0x1a6)+_0x483649+_0x19d4ab(0x188)+_0x132ac4;});_0x4d5836['fail'](_0x2ab65c['length']+_0xbc25ac(0x16f)+_0x3e6120['join']('\x0a\x0a'));}}[a206_0x4f5775(0x174)](){const _0x1b6867=a206_0x4f5775;return[...this[_0x1b6867(0x1ab)]];}[a206_0x4f5775(0x199)](){const _0x3c5a2f=a206_0x4f5775;return this['requests'][this[_0x3c5a2f(0x1ab)]['length']-0x1];}[a206_0x4f5775(0x1b3)](_0x58c3d8,_0x3800fc){return this['requests']['some'](_0x2ba11c=>{const _0x2834b0=a206_0x41f1;if(_0x2ba11c['method'][_0x2834b0(0x193)]()!==_0x58c3d8[_0x2834b0(0x193)]())return![];if(typeof _0x3800fc===_0x2834b0(0x170))return _0x2ba11c[_0x2834b0(0x18c)][_0x2834b0(0x19d)](_0x3800fc);return _0x3800fc['test'](_0x2ba11c['url']);});}[a206_0x4f5775(0x1ae)](_0x384616){const _0x357b23=a206_0x4f5775;return this[_0x357b23(0x176)][_0x384616]?.[_0x357b23(0x1ac)]??0x0;}[a206_0x4f5775(0x184)](){const _0x1d4a78=a206_0x4f5775;this[_0x1d4a78(0x176)]=[],this[_0x1d4a78(0x1ab)]=[],this[_0x1d4a78(0x1b6)]=null;}static['getStatusText'](_0xc41a2){const _0x2335f7=a206_0x4f5775,_0xfe347f={0xc8:'OK',0xc9:'Created',0xcc:_0x2335f7(0x16d),0x190:'Bad\x20Request',0x191:_0x2335f7(0x18a),0x193:_0x2335f7(0x19a),0x194:_0x2335f7(0x187),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x2335f7(0x16e),0x1f4:_0x2335f7(0x18f),0x1f6:_0x2335f7(0x1b5),0x1f7:'Service\x20Unavailable'};return _0xfe347f[_0xc41a2]??_0x2335f7(0x1a2);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a206_0x41f1(_0xe383dd,_0x4c4f6c){_0xe383dd=_0xe383dd-0x16c;const _0x4e99ce=a206_0x4e99();let _0x41f1d4=_0x4e99ce[_0xe383dd];return _0x41f1d4;}function a206_0x4e99(){const _0x148a63=['9973558zykLrL','116665ykknsC','No\x20Content','Too\x20Many\x20Requests','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','string','method','mockImplementation','td-api','getRequests','matched','stubs','length','rfc9457','Registered\x20stubs:\x0a','entries','errorResponse','unnamed\x20stub','forEach','1016344XYMdsy','45SJVZRF','body','push','pathname','stringify','reset','get','28589850bMuQNr','Not\x20Found','\x20registered\x20at:\x0a','stack','Unauthorized','getStatusText','url','every','responder','Internal\x20Server\x20Error','join','https://api.treasuredata.com/errors/','verify','toUpperCase','slice','No\x20stub\x20matched\x20request:\x20','searchParams','textResponse','39588yMwTsj','getLastRequest','Forbidden','text/plain','\x20\x20(none)','includes','withQuery','parseRequest','isArray','parse','Unknown','host','withHost','toLowerCase','Unmatched\x20stub','split','429362WBJGUw','jsonResponse','headers','requests','matchCount','application/json','getMatchCount','description','simple','filter','18kjKMlI','wasCalled','72EmneLC','Bad\x20Gateway','fetchMock','309678nQsfGN','matcher'];a206_0x4e99=function(){return _0x148a63;};return a206_0x4e99();}
1
+ const a206_0x9a4124=a206_0x44fd;(function(_0x149110,_0x500c68){const _0x15df71=a206_0x44fd,_0x3770a5=_0x149110();while(!![]){try{const _0x5ed965=-parseInt(_0x15df71(0x12c))/0x1*(parseInt(_0x15df71(0x16d))/0x2)+-parseInt(_0x15df71(0x172))/0x3*(-parseInt(_0x15df71(0x126))/0x4)+parseInt(_0x15df71(0x12f))/0x5*(parseInt(_0x15df71(0x144))/0x6)+parseInt(_0x15df71(0x15d))/0x7*(parseInt(_0x15df71(0x12e))/0x8)+-parseInt(_0x15df71(0x16c))/0x9+parseInt(_0x15df71(0x15e))/0xa*(parseInt(_0x15df71(0x12a))/0xb)+parseInt(_0x15df71(0x157))/0xc*(parseInt(_0x15df71(0x16b))/0xd);if(_0x5ed965===_0x500c68)break;else _0x3770a5['push'](_0x3770a5['shift']());}catch(_0x475bdf){_0x3770a5['push'](_0x3770a5['shift']());}}}(a206_0x42b6,0xb6fb4));import{vi}from'vitest';export class HTTPMockRegistry{[a206_0x9a4124(0x159)]=[];['requests']=[];[a206_0x9a4124(0x148)]=null;[a206_0x9a4124(0x13e)](_0x1d58bb,_0x352212){return _0x1bda88=>{const _0x345200=a206_0x44fd;if(_0x1bda88['method'][_0x345200(0x175)]()!==_0x1d58bb['toUpperCase']())return![];const _0x575e82=new URL(_0x1bda88['url']);if(typeof _0x352212===_0x345200(0x15a))return _0x575e82[_0x345200(0x142)]===_0x352212||_0x575e82['pathname'][_0x345200(0x169)](_0x352212);return _0x352212['test'](_0x575e82[_0x345200(0x142)]);};}['withQuery'](_0x248b5e,_0x1a5166){return _0x29f9a1=>{const _0x68ec8f=a206_0x44fd;if(!_0x248b5e(_0x29f9a1))return![];const _0x147748=new URL(_0x29f9a1[_0x68ec8f(0x153)]);return Object['entries'](_0x1a5166)[_0x68ec8f(0x173)](([_0x5f5db0,_0x25896a])=>_0x147748['searchParams'][_0x68ec8f(0x174)](_0x5f5db0)===_0x25896a);};}[a206_0x9a4124(0x135)](_0x4c86ca,_0x13b20){return _0xf7785b=>{const _0x568e55=a206_0x44fd;if(!_0x4c86ca(_0xf7785b))return![];if(typeof _0x13b20===_0x568e55(0x163))return _0x13b20(_0xf7785b[_0x568e55(0x13c)]);return JSON[_0x568e55(0x14c)](_0xf7785b[_0x568e55(0x13c)])===JSON['stringify'](_0x13b20);};}[a206_0x9a4124(0x176)](_0x415a71,_0x585e42){return _0x1994eb=>{const _0x39f2bc=a206_0x44fd;if(!_0x415a71(_0x1994eb))return![];const _0x449ab8=new URL(_0x1994eb[_0x39f2bc(0x153)]);return _0x449ab8[_0x39f2bc(0x13b)]===_0x585e42;};}[a206_0x9a4124(0x138)](_0x322df9,_0x32c2b9,_0x2acb1c){const _0x11707a=a206_0x9a4124;this[_0x11707a(0x159)][_0x11707a(0x167)]({'matcher':_0x322df9,'responder':_0x32c2b9,'matched':![],'matchCount':0x0,'stack':new Error()[_0x11707a(0x166)]??'','description':_0x2acb1c?.[_0x11707a(0x162)]});}['registerWithInspector'](_0x4e4e47,_0x4b4851,_0x5b8bfc){const _0x2e710c=a206_0x9a4124,_0x1af043=_0x213109=>{const _0x5749e1=a206_0x44fd;return _0x5b8bfc(_0x213109[_0x5749e1(0x13c)],_0x213109),_0x4b4851(_0x213109);};this[_0x2e710c(0x138)](_0x4e4e47,_0x1af043);}static['jsonResponse'](_0x487030,_0x3f0e1a=0xc8){const _0x9529d6=a206_0x9a4124;return()=>new Response(JSON['stringify'](_0x487030),{'status':_0x3f0e1a,'headers':{'Content-Type':_0x9529d6(0x13a)}});}static[a206_0x9a4124(0x12d)](_0x4a5d44,_0x26e080,_0x1bbb1d='simple'){return()=>{const _0x21042a=a206_0x44fd;let _0x23d4b3;switch(_0x1bbb1d){case _0x21042a(0x164):_0x23d4b3={'errors':{'error':_0x26e080,'message':_0x26e080,'severity':_0x21042a(0x150),'status_code':_0x4a5d44}};break;case _0x21042a(0x137):_0x23d4b3={'type':_0x21042a(0x149)+_0x4a5d44,'title':HTTPMockRegistry[_0x21042a(0x158)](_0x4a5d44),'status':_0x4a5d44,'detail':_0x26e080};break;default:_0x23d4b3={'error':_0x26e080};}return new Response(JSON[_0x21042a(0x14c)](_0x23d4b3),{'status':_0x4a5d44,'headers':{'Content-Type':_0x21042a(0x13a)}});};}static[a206_0x9a4124(0x147)](_0x8c43e0,_0x3c5fd5,_0x3bc022=0xc8){const _0x35a7d9=a206_0x9a4124;return()=>new Response(JSON['stringify'](_0x8c43e0),{'status':_0x3bc022,'headers':{'Content-Type':_0x35a7d9(0x13a),..._0x3c5fd5}});}static['textResponse'](_0x90b486,_0x2f0215=0xc8){const _0x1b4542=a206_0x9a4124;return()=>new Response(_0x90b486,{'status':_0x2f0215,'headers':{'Content-Type':_0x1b4542(0x132)}});}static[a206_0x9a4124(0x143)](_0x4f6a62){return()=>{throw new Error(_0x4f6a62);};}['createFetch'](){const _0x1b4148=a206_0x9a4124;return this[_0x1b4148(0x148)]=vi['fn']()[_0x1b4148(0x15f)](async(_0x4d36f4,_0x57dbab)=>{const _0x232e99=_0x1b4148,_0xe6aeb8=this[_0x232e99(0x151)](_0x4d36f4,_0x57dbab);this['requests'][_0x232e99(0x167)](_0xe6aeb8);for(const _0x5719ee of this[_0x232e99(0x159)]){if(_0x5719ee['matcher'](_0xe6aeb8))return _0x5719ee[_0x232e99(0x179)]=!![],_0x5719ee['matchCount']++,_0x5719ee[_0x232e99(0x16e)](_0xe6aeb8);}const _0x150251=this[_0x232e99(0x159)][_0x232e99(0x129)]((_0x2e32fd,_0x2e8d5f)=>'\x20\x20'+(_0x2e8d5f+0x1)+'.\x20'+(_0x2e32fd['description']??_0x232e99(0x161)))['join']('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0xe6aeb8[_0x232e99(0x15c)]+'\x20'+_0xe6aeb8[_0x232e99(0x153)]+'\x0a'+(_0x232e99(0x155)+JSON[_0x232e99(0x14c)](_0xe6aeb8[_0x232e99(0x13c)])+'\x0a')+(_0x232e99(0x152)+(_0x150251||_0x232e99(0x16a))));}),this[_0x1b4148(0x148)];}[a206_0x9a4124(0x151)](_0x5b492b,_0x4b4157){const _0x225917=a206_0x9a4124,_0x190b07={};if(_0x4b4157?.[_0x225917(0x154)]){if(_0x4b4157[_0x225917(0x154)]instanceof Headers)_0x4b4157[_0x225917(0x154)]['forEach']((_0x1d7008,_0x15886d)=>{const _0x532c82=_0x225917;_0x190b07[_0x15886d[_0x532c82(0x141)]()]=_0x1d7008;});else{if(Array[_0x225917(0x136)](_0x4b4157['headers']))for(const [_0x336c76,_0x3bd42d]of _0x4b4157[_0x225917(0x154)]){_0x190b07[_0x336c76[_0x225917(0x141)]()]=_0x3bd42d;}else for(const [_0x3a0645,_0x33ce59]of Object[_0x225917(0x156)](_0x4b4157[_0x225917(0x154)])){_0x33ce59!==undefined&&(_0x190b07[_0x3a0645['toLowerCase']()]=_0x33ce59);}}}let _0x368d54;if(_0x4b4157?.[_0x225917(0x13c)])try{_0x368d54=JSON['parse'](_0x4b4157[_0x225917(0x13c)]);}catch{_0x368d54=_0x4b4157[_0x225917(0x13c)];}return{'method':_0x4b4157?.['method']??'GET','url':_0x5b492b,'headers':_0x190b07,'body':_0x368d54};}[a206_0x9a4124(0x165)](_0x3baedc){const _0x494495=a206_0x9a4124,_0x5797b3=this[_0x494495(0x159)][_0x494495(0x131)](_0x5be795=>!_0x5be795[_0x494495(0x179)]);if(_0x5797b3[_0x494495(0x133)]>0x0){const _0x439912=_0x5797b3['map'](_0x5f39fc=>{const _0x22a0d8=_0x494495,_0x5380d0=_0x5f39fc[_0x22a0d8(0x162)]?'\x20('+_0x5f39fc[_0x22a0d8(0x162)]+')':'',_0x2b089b=_0x5f39fc[_0x22a0d8(0x166)][_0x22a0d8(0x139)]('\x0a')[_0x22a0d8(0x13f)](0x2,0x5)['join']('\x0a');return _0x22a0d8(0x14f)+_0x5380d0+'\x20registered\x20at:\x0a'+_0x2b089b;});_0x3baedc[_0x494495(0x168)](_0x5797b3[_0x494495(0x133)]+_0x494495(0x134)+_0x439912[_0x494495(0x177)]('\x0a\x0a'));}}[a206_0x9a4124(0x13d)](){const _0x2123fc=a206_0x9a4124;return[...this[_0x2123fc(0x178)]];}[a206_0x9a4124(0x15b)](){const _0x167429=a206_0x9a4124;return this[_0x167429(0x178)][this[_0x167429(0x178)]['length']-0x1];}['wasCalled'](_0x106a09,_0x493629){const _0x2cffda=a206_0x9a4124;return this['requests'][_0x2cffda(0x171)](_0x1d53f8=>{const _0x2a9fd9=_0x2cffda;if(_0x1d53f8['method'][_0x2a9fd9(0x175)]()!==_0x106a09[_0x2a9fd9(0x175)]())return![];if(typeof _0x493629===_0x2a9fd9(0x15a))return _0x1d53f8[_0x2a9fd9(0x153)][_0x2a9fd9(0x169)](_0x493629);return _0x493629[_0x2a9fd9(0x127)](_0x1d53f8[_0x2a9fd9(0x153)]);});}[a206_0x9a4124(0x130)](_0x4330a2){const _0x3f6f6=a206_0x9a4124;return this['stubs'][_0x4330a2]?.[_0x3f6f6(0x146)]??0x0;}[a206_0x9a4124(0x16f)](){const _0x379fe3=a206_0x9a4124;this[_0x379fe3(0x159)]=[],this[_0x379fe3(0x178)]=[],this[_0x379fe3(0x148)]=null;}static[a206_0x9a4124(0x158)](_0x94c42e){const _0x30ba0d=a206_0x9a4124,_0x2fe87f={0xc8:'OK',0xc9:_0x30ba0d(0x14d),0xcc:_0x30ba0d(0x140),0x190:_0x30ba0d(0x14b),0x191:_0x30ba0d(0x128),0x193:_0x30ba0d(0x170),0x194:_0x30ba0d(0x14e),0x199:_0x30ba0d(0x160),0x1a6:_0x30ba0d(0x14a),0x1ad:_0x30ba0d(0x17a),0x1f4:_0x30ba0d(0x145),0x1f6:'Bad\x20Gateway',0x1f7:'Service\x20Unavailable'};return _0x2fe87f[_0x94c42e]??_0x30ba0d(0x12b);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a206_0x44fd(_0x1563d5,_0x45d4cf){_0x1563d5=_0x1563d5-0x126;const _0x42b6cb=a206_0x42b6();let _0x44fdd1=_0x42b6cb[_0x1563d5];return _0x44fdd1;}function a206_0x42b6(){const _0x454e9d=['toLowerCase','pathname','networkError','51486zDxJji','Internal\x20Server\x20Error','matchCount','jsonResponseWithHeaders','fetchMock','https://api.treasuredata.com/errors/','Unprocessable\x20Entity','Bad\x20Request','stringify','Created','Not\x20Found','Unmatched\x20stub','error','parseRequest','Registered\x20stubs:\x0a','url','headers','Request\x20body:\x20','entries','3372TFgFnD','getStatusText','stubs','string','getLastRequest','method','885451amhEaf','10LBuVki','mockImplementation','Conflict','unnamed\x20stub','description','function','td-api','verify','stack','push','fail','includes','\x20\x20(none)','16159MdAVrl','1358946OfzQaR','4FnOfET','responder','reset','Forbidden','some','23829hTcuCl','every','get','toUpperCase','withHost','join','requests','matched','Too\x20Many\x20Requests','368tVqKOB','test','Unauthorized','map','245839saFZjf','Unknown','621059lVOqKI','errorResponse','24aoLrOv','385IMpDau','getMatchCount','filter','text/plain','length','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','withBody','isArray','rfc9457','register','split','application/json','host','body','getRequests','REST','slice','No\x20Content'];a206_0x42b6=function(){return _0x454e9d;};return a206_0x42b6();}
@@ -1 +1 @@
1
- (function(_0x57bac4,_0x3e312d){var _0x4b26b4=a207_0x5770,_0x4d600f=_0x57bac4();while(!![]){try{var _0x434416=-parseInt(_0x4b26b4(0x1b4))/0x1*(-parseInt(_0x4b26b4(0x1ad))/0x2)+-parseInt(_0x4b26b4(0x1b5))/0x3+parseInt(_0x4b26b4(0x1ae))/0x4+parseInt(_0x4b26b4(0x1b7))/0x5*(parseInt(_0x4b26b4(0x1b2))/0x6)+parseInt(_0x4b26b4(0x1b1))/0x7*(parseInt(_0x4b26b4(0x1b0))/0x8)+-parseInt(_0x4b26b4(0x1af))/0x9+-parseInt(_0x4b26b4(0x1b6))/0xa*(parseInt(_0x4b26b4(0x1b3))/0xb);if(_0x434416===_0x3e312d)break;else _0x4d600f['push'](_0x4d600f['shift']());}catch(_0x272e10){_0x4d600f['push'](_0x4d600f['shift']());}}}(a207_0x3f11,0xb520e));function a207_0x3f11(){var _0x1623c1=['2219lTwyIL','3786258wqVtWC','88LKuLwY','979962JsAqxH','2716734zwPPvG','158110kiKtup','5ZIsykd','2zhLdpJ','1568396whSBOB','3140658cQJWyr','3024MbFPYZ'];a207_0x3f11=function(){return _0x1623c1;};return a207_0x3f11();}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a207_0x5770(_0x3e122b,_0x29ea5){_0x3e122b=_0x3e122b-0x1ad;var _0x3f116c=a207_0x3f11();var _0x577098=_0x3f116c[_0x3e122b];return _0x577098;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x407c8d,_0x51bf51){var _0x1ab5d3=a207_0x19b0,_0x3f9cc9=_0x407c8d();while(!![]){try{var _0x21ccaa=parseInt(_0x1ab5d3(0x1e0))/0x1*(-parseInt(_0x1ab5d3(0x1dd))/0x2)+-parseInt(_0x1ab5d3(0x1df))/0x3*(-parseInt(_0x1ab5d3(0x1da))/0x4)+-parseInt(_0x1ab5d3(0x1db))/0x5*(parseInt(_0x1ab5d3(0x1de))/0x6)+parseInt(_0x1ab5d3(0x1e4))/0x7*(-parseInt(_0x1ab5d3(0x1dc))/0x8)+-parseInt(_0x1ab5d3(0x1e3))/0x9*(-parseInt(_0x1ab5d3(0x1e6))/0xa)+-parseInt(_0x1ab5d3(0x1e2))/0xb+-parseInt(_0x1ab5d3(0x1e5))/0xc*(parseInt(_0x1ab5d3(0x1e1))/0xd);if(_0x21ccaa===_0x51bf51)break;else _0x3f9cc9['push'](_0x3f9cc9['shift']());}catch(_0x4c0873){_0x3f9cc9['push'](_0x3f9cc9['shift']());}}}(a207_0x5251,0x33d29));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_0x19b0(_0x5d8a69,_0xd81e92){_0x5d8a69=_0x5d8a69-0x1da;var _0x52514a=a207_0x5251();var _0x19b03f=_0x52514a[_0x5d8a69];return _0x19b03f;}function a207_0x5251(){var _0x131aeb=['192NKvSFv','12SfGDDu','1MFUZzO','1400555gSOIaf','40777CYgdte','1923759SSiQbI','14NmzzwJ','12jkroTr','10BjceBh','208788DNLoLd','6390HWsWlU','145352AgzgLO','43196RqbacS'];a207_0x5251=function(){return _0x131aeb;};return a207_0x5251();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a208_0x3550(_0x4acf43,_0x4b0308){_0x4acf43=_0x4acf43-0x92;const _0xffa56e=a208_0xffa5();let _0x35507c=_0xffa56e[_0x4acf43];return _0x35507c;}function a208_0xffa5(){const _0x167595=['162BkJohU','map','10759qlBNcB','1060362uLcdQT','all','length','10678640vjSdps','956836fBkyoC','push','410584iNkVxP','163100wpsVpp','1086850WnfXiH'];a208_0xffa5=function(){return _0x167595;};return a208_0xffa5();}(function(_0xd6be88,_0x20290f){const _0x14e367=a208_0x3550,_0x560afb=_0xd6be88();while(!![]){try{const _0x3b40dc=-parseInt(_0x14e367(0x97))/0x1+-parseInt(_0x14e367(0x94))/0x2+-parseInt(_0x14e367(0x9c))/0x3+parseInt(_0x14e367(0x96))/0x4+-parseInt(_0x14e367(0x98))/0x5+-parseInt(_0x14e367(0x99))/0x6*(-parseInt(_0x14e367(0x9b))/0x7)+parseInt(_0x14e367(0x93))/0x8;if(_0x3b40dc===_0x20290f)break;else _0x560afb['push'](_0x560afb['shift']());}catch(_0x8d6e32){_0x560afb['push'](_0x560afb['shift']());}}}(a208_0xffa5,0x41189));export async function batchAsync(_0x1ca67d,_0x4ab475,_0x35a9cb=0xa){const _0x30d8d5=a208_0x3550,_0xc1fdf5=[];for(let _0x2c8f39=0x0;_0x2c8f39<_0x1ca67d[_0x30d8d5(0x92)];_0x2c8f39+=_0x35a9cb){const _0x585147=_0x1ca67d['slice'](_0x2c8f39,_0x2c8f39+_0x35a9cb),_0x468695=await Promise[_0x30d8d5(0x9d)](_0x585147[_0x30d8d5(0x9a)](_0x4ab475));_0xc1fdf5[_0x30d8d5(0x95)](..._0x468695);}return _0xc1fdf5;}
1
+ (function(_0x282f50,_0x4da25e){const _0x55048c=a208_0x343c,_0x2761e3=_0x282f50();while(!![]){try{const _0x59dced=parseInt(_0x55048c(0xda))/0x1*(-parseInt(_0x55048c(0xd4))/0x2)+-parseInt(_0x55048c(0xde))/0x3+-parseInt(_0x55048c(0xe0))/0x4*(-parseInt(_0x55048c(0xdd))/0x5)+parseInt(_0x55048c(0xd9))/0x6+parseInt(_0x55048c(0xd7))/0x7*(parseInt(_0x55048c(0xdf))/0x8)+parseInt(_0x55048c(0xd8))/0x9+-parseInt(_0x55048c(0xd3))/0xa;if(_0x59dced===_0x4da25e)break;else _0x2761e3['push'](_0x2761e3['shift']());}catch(_0x979b04){_0x2761e3['push'](_0x2761e3['shift']());}}}(a208_0x3469,0x5e3ac));function a208_0x343c(_0x2e407e,_0x4f8666){_0x2e407e=_0x2e407e-0xd3;const _0x346997=a208_0x3469();let _0x343cc4=_0x346997[_0x2e407e];return _0x343cc4;}export async function batchAsync(_0x54afda,_0x33bdf8,_0x5d60cf=0xa){const _0x191641=a208_0x343c,_0x4c3bfd=[];for(let _0x312210=0x0;_0x312210<_0x54afda[_0x191641(0xd6)];_0x312210+=_0x5d60cf){const _0x38f2c4=_0x54afda['slice'](_0x312210,_0x312210+_0x5d60cf),_0x36c1e7=await Promise[_0x191641(0xdb)](_0x38f2c4[_0x191641(0xdc)](_0x33bdf8));_0x4c3bfd[_0x191641(0xd5)](..._0x36c1e7);}return _0x4c3bfd;}function a208_0x3469(){const _0x434642=['map','35ZZFMNs','1457598XWvICS','64BkKHcC','145136DFxZVn','3098450lYDGDj','121016vHokmB','push','length','166110WeZLKJ','5615838EpznUH','3224526uUJSuK','7YTLHBQ','all'];a208_0x3469=function(){return _0x434642;};return a208_0x3469();}
@@ -1 +1 @@
1
- const a209_0x3e3cad=a209_0x38c0;(function(_0x3d58d2,_0x4500bd){const _0x1a94e1=a209_0x38c0,_0x593eb6=_0x3d58d2();while(!![]){try{const _0x1985d9=parseInt(_0x1a94e1(0x19a))/0x1*(-parseInt(_0x1a94e1(0x19b))/0x2)+-parseInt(_0x1a94e1(0x191))/0x3*(parseInt(_0x1a94e1(0x185))/0x4)+parseInt(_0x1a94e1(0x193))/0x5+parseInt(_0x1a94e1(0x18f))/0x6+-parseInt(_0x1a94e1(0x182))/0x7+parseInt(_0x1a94e1(0x18e))/0x8+-parseInt(_0x1a94e1(0x199))/0x9*(-parseInt(_0x1a94e1(0x195))/0xa);if(_0x1985d9===_0x4500bd)break;else _0x593eb6['push'](_0x593eb6['shift']());}catch(_0x56ba73){_0x593eb6['push'](_0x593eb6['shift']());}}}(a209_0x8ccc,0x88929));import*as a209_0xdaff04 from'chalk';const Chalk=a209_0xdaff04[a209_0x3e3cad(0x18c)];export function shouldUseColor(_0x266076={}){const _0xe276a4=a209_0x3e3cad;if(_0x266076[_0xe276a4(0x189)]===!![])return![];if(_0x266076[_0xe276a4(0x183)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0xe276a4(0x180)][_0xe276a4(0x187)]??![];}export function getChalk(_0x446bdb={}){if(shouldUseColor(_0x446bdb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x27c195,_0x2e3067={}){const _0x49a049=a209_0x3e3cad;return getChalk(_0x2e3067)[_0x49a049(0x196)](_0x27c195);}export function colorHeader(_0x289336,_0x338496={}){const _0x32a6f6=a209_0x3e3cad;return getChalk(_0x338496)[_0x32a6f6(0x198)](_0x289336);}export function colorType(_0x268c83,_0x41ba22={}){return getChalk(_0x41ba22)['dim'](_0x268c83);}export function colorJSONKey(_0x3707af,_0x2f0ac8={}){const _0x53ee47=a209_0x3e3cad;return getChalk(_0x2f0ac8)[_0x53ee47(0x188)](_0x3707af);}export function colorJSONString(_0x260825,_0x2029f2={}){const _0x24e5cc=a209_0x3e3cad;return getChalk(_0x2029f2)[_0x24e5cc(0x19d)](_0x260825);}export function colorJSONNumber(_0x3cddf4,_0xee8cc1={}){return getChalk(_0xee8cc1)['cyan'](_0x3cddf4);}export function colorJSONBoolean(_0x4e8d11,_0x477216={}){const _0x5a7310=a209_0x3e3cad;return getChalk(_0x477216)[_0x5a7310(0x18a)](_0x4e8d11);}function a209_0x38c0(_0x4ce29c,_0x33a43f){_0x4ce29c=_0x4ce29c-0x180;const _0x8ccc3d=a209_0x8ccc();let _0x38c07d=_0x8ccc3d[_0x4ce29c];return _0x38c07d;}export function colorJSONNull(_0x3f54ea,_0x5b0639={}){return getChalk(_0x5b0639)['dim'](_0x3f54ea);}export function colorizeJSONCompact(_0x3c7a0f,_0x5e6f31={}){const _0x160a1b=a209_0x3e3cad;if(!shouldUseColor(_0x5e6f31))return JSON['stringify'](_0x3c7a0f);if(_0x3c7a0f===null)return colorJSONNull('null',_0x5e6f31);if(typeof _0x3c7a0f===_0x160a1b(0x18b))return colorJSONBoolean(String(_0x3c7a0f),_0x5e6f31);if(typeof _0x3c7a0f==='number')return colorJSONNumber(String(_0x3c7a0f),_0x5e6f31);if(typeof _0x3c7a0f===_0x160a1b(0x184))return colorJSONString(JSON['stringify'](_0x3c7a0f),_0x5e6f31);if(Array[_0x160a1b(0x19e)](_0x3c7a0f)){if(_0x3c7a0f[_0x160a1b(0x186)]===0x0)return'[]';const _0x2ca68c=_0x3c7a0f[_0x160a1b(0x190)](_0x5ddfe9=>colorizeJSONCompact(_0x5ddfe9,_0x5e6f31));return'['+_0x2ca68c[_0x160a1b(0x181)](',')+']';}if(typeof _0x3c7a0f==='object'){const _0x1fec6b=Object[_0x160a1b(0x192)](_0x3c7a0f);if(_0x1fec6b[_0x160a1b(0x186)]===0x0)return'{}';const _0x2ed47a=_0x1fec6b[_0x160a1b(0x190)](([_0x2c7896,_0x102438])=>{const _0xf8ae79=colorJSONKey(JSON['stringify'](_0x2c7896),_0x5e6f31),_0x594901=colorizeJSONCompact(_0x102438,_0x5e6f31);return _0xf8ae79+':'+_0x594901;});return'{'+_0x2ed47a['join'](',')+'}';}return String(_0x3c7a0f);}export function colorizeJSON(_0x40737b,_0x3be7be={},_0x3c4f2a=0x0){const _0x544ad6=a209_0x3e3cad;if(!shouldUseColor(_0x3be7be))return JSON[_0x544ad6(0x18d)](_0x40737b,null,0x2);const _0x3dfff3='\x20'[_0x544ad6(0x197)](_0x3c4f2a),_0x39e072=_0x3c4f2a+0x2;if(_0x40737b===null)return colorJSONNull('null',_0x3be7be);if(typeof _0x40737b===_0x544ad6(0x18b))return colorJSONBoolean(String(_0x40737b),_0x3be7be);if(typeof _0x40737b===_0x544ad6(0x194))return colorJSONNumber(String(_0x40737b),_0x3be7be);if(typeof _0x40737b===_0x544ad6(0x184))return colorJSONString(JSON[_0x544ad6(0x18d)](_0x40737b),_0x3be7be);if(Array[_0x544ad6(0x19e)](_0x40737b)){if(_0x40737b[_0x544ad6(0x186)]===0x0)return'[]';const _0x2eb190=_0x40737b[_0x544ad6(0x190)](_0x4f9555=>{const _0x5998cd=_0x544ad6,_0x296c39=colorizeJSON(_0x4f9555,_0x3be7be,_0x39e072);return''+'\x20'[_0x5998cd(0x197)](_0x39e072)+_0x296c39;});return'[\x0a'+_0x2eb190[_0x544ad6(0x181)](',\x0a')+('\x0a'+_0x3dfff3+']');}if(typeof _0x40737b===_0x544ad6(0x19c)){const _0x13b3da=Object[_0x544ad6(0x192)](_0x40737b);if(_0x13b3da[_0x544ad6(0x186)]===0x0)return'{}';const _0x38463a=_0x13b3da[_0x544ad6(0x190)](([_0x2ee4db,_0x295137])=>{const _0x494f97=_0x544ad6,_0x66dd3f=colorJSONKey(JSON[_0x494f97(0x18d)](_0x2ee4db),_0x3be7be),_0x343769=colorizeJSON(_0x295137,_0x3be7be,_0x39e072);return''+'\x20'[_0x494f97(0x197)](_0x39e072)+_0x66dd3f+':\x20'+_0x343769;});return'{\x0a'+_0x38463a[_0x544ad6(0x181)](',\x0a')+('\x0a'+_0x3dfff3+'}');}return String(_0x40737b);}function a209_0x8ccc(){const _0x30a21d=['yellow','boolean','Chalk','stringify','8216976PJQzBG','1781148sJmKzn','map','7815JCptek','entries','3833745kxStYf','number','40NiqvHK','dim','repeat','cyan','506241kOqquf','532547cWJgki','2YlwWYl','object','green','isArray','stdout','join','3004764kUwxXy','color','string','1220CJWPkh','length','isTTY','blue','noColor'];a209_0x8ccc=function(){return _0x30a21d;};return a209_0x8ccc();}
1
+ function a209_0x5133(){const _0x19a42a=['entries','cyan','number','1181331zCQzoJ','isArray','boolean','stringify','2044952ZCZjeh','24594XcPUVT','8uMYXNw','blue','repeat','128240DzTMqd','317602VHirpM','map','170uYhYAb','string','color','Chalk','isTTY','green','join','object','null','yellow','dim','521865BDbXah','length','59887OtCEsJ'];a209_0x5133=function(){return _0x19a42a;};return a209_0x5133();}const a209_0x3b5d7f=a209_0xd840;(function(_0x3c339d,_0x1e9026){const _0x529e5d=a209_0xd840,_0x406106=_0x3c339d();while(!![]){try{const _0x5f5408=-parseInt(_0x529e5d(0x120))/0x1+parseInt(_0x529e5d(0x12e))/0x2+-parseInt(_0x529e5d(0x124))/0x3+parseInt(_0x529e5d(0x128))/0x4+-parseInt(_0x529e5d(0x130))/0x5*(-parseInt(_0x529e5d(0x129))/0x6)+-parseInt(_0x529e5d(0x12d))/0x7+-parseInt(_0x529e5d(0x12a))/0x8*(parseInt(_0x529e5d(0x11e))/0x9);if(_0x5f5408===_0x1e9026)break;else _0x406106['push'](_0x406106['shift']());}catch(_0x3e0ccc){_0x406106['push'](_0x406106['shift']());}}}(a209_0x5133,0x4438c));import*as a209_0x40bf75 from'chalk';const Chalk=a209_0x40bf75[a209_0x3b5d7f(0x133)];export function shouldUseColor(_0x52a81f={}){const _0x1b2d24=a209_0x3b5d7f;if(_0x52a81f['noColor']===!![])return![];if(_0x52a81f[_0x1b2d24(0x132)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x1b2d24(0x134)]??![];}function a209_0xd840(_0x29d956,_0x191333){_0x29d956=_0x29d956-0x11d;const _0x51333c=a209_0x5133();let _0xd8404c=_0x51333c[_0x29d956];return _0xd8404c;}export function getChalk(_0x21f9b9={}){if(shouldUseColor(_0x21f9b9))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4d59af,_0x12f240={}){const _0x1b1436=a209_0x3b5d7f;return getChalk(_0x12f240)[_0x1b1436(0x11d)](_0x4d59af);}export function colorHeader(_0x578501,_0x58b991={}){const _0x166120=a209_0x3b5d7f;return getChalk(_0x58b991)[_0x166120(0x122)](_0x578501);}export function colorType(_0x2c4a84,_0x435134={}){return getChalk(_0x435134)['dim'](_0x2c4a84);}export function colorJSONKey(_0x2b6530,_0x3b4439={}){const _0x49cb65=a209_0x3b5d7f;return getChalk(_0x3b4439)[_0x49cb65(0x12b)](_0x2b6530);}export function colorJSONString(_0x1b2485,_0x2b29dd={}){const _0x5c68e7=a209_0x3b5d7f;return getChalk(_0x2b29dd)[_0x5c68e7(0x135)](_0x1b2485);}export function colorJSONNumber(_0x2a31a3,_0x341069={}){const _0x2f7f5a=a209_0x3b5d7f;return getChalk(_0x341069)[_0x2f7f5a(0x122)](_0x2a31a3);}export function colorJSONBoolean(_0x1d7fc6,_0x23e88e={}){const _0x265ea2=a209_0x3b5d7f;return getChalk(_0x23e88e)[_0x265ea2(0x139)](_0x1d7fc6);}export function colorJSONNull(_0x21af11,_0x523f0b={}){const _0x13b4bb=a209_0x3b5d7f;return getChalk(_0x523f0b)[_0x13b4bb(0x11d)](_0x21af11);}export function colorizeJSONCompact(_0x2ab355,_0x515450={}){const _0x48ad08=a209_0x3b5d7f;if(!shouldUseColor(_0x515450))return JSON[_0x48ad08(0x127)](_0x2ab355);if(_0x2ab355===null)return colorJSONNull(_0x48ad08(0x138),_0x515450);if(typeof _0x2ab355===_0x48ad08(0x126))return colorJSONBoolean(String(_0x2ab355),_0x515450);if(typeof _0x2ab355===_0x48ad08(0x123))return colorJSONNumber(String(_0x2ab355),_0x515450);if(typeof _0x2ab355===_0x48ad08(0x131))return colorJSONString(JSON[_0x48ad08(0x127)](_0x2ab355),_0x515450);if(Array[_0x48ad08(0x125)](_0x2ab355)){if(_0x2ab355[_0x48ad08(0x11f)]===0x0)return'[]';const _0xac23f3=_0x2ab355['map'](_0x229c2e=>colorizeJSONCompact(_0x229c2e,_0x515450));return'['+_0xac23f3['join'](',')+']';}if(typeof _0x2ab355===_0x48ad08(0x137)){const _0x1f3f05=Object[_0x48ad08(0x121)](_0x2ab355);if(_0x1f3f05[_0x48ad08(0x11f)]===0x0)return'{}';const _0x1743b7=_0x1f3f05[_0x48ad08(0x12f)](([_0x1c2668,_0x50686a])=>{const _0x2241ba=_0x48ad08,_0x545233=colorJSONKey(JSON[_0x2241ba(0x127)](_0x1c2668),_0x515450),_0x3757b6=colorizeJSONCompact(_0x50686a,_0x515450);return _0x545233+':'+_0x3757b6;});return'{'+_0x1743b7['join'](',')+'}';}return String(_0x2ab355);}export function colorizeJSON(_0x4de0a9,_0x212b39={},_0x7d0e8a=0x0){const _0x1c334f=a209_0x3b5d7f;if(!shouldUseColor(_0x212b39))return JSON[_0x1c334f(0x127)](_0x4de0a9,null,0x2);const _0x22dc24='\x20'[_0x1c334f(0x12c)](_0x7d0e8a),_0x26c1d6=_0x7d0e8a+0x2;if(_0x4de0a9===null)return colorJSONNull(_0x1c334f(0x138),_0x212b39);if(typeof _0x4de0a9===_0x1c334f(0x126))return colorJSONBoolean(String(_0x4de0a9),_0x212b39);if(typeof _0x4de0a9===_0x1c334f(0x123))return colorJSONNumber(String(_0x4de0a9),_0x212b39);if(typeof _0x4de0a9===_0x1c334f(0x131))return colorJSONString(JSON['stringify'](_0x4de0a9),_0x212b39);if(Array['isArray'](_0x4de0a9)){if(_0x4de0a9[_0x1c334f(0x11f)]===0x0)return'[]';const _0x2299bf=_0x4de0a9[_0x1c334f(0x12f)](_0x2b07ae=>{const _0x17a76b=_0x1c334f,_0x402b80=colorizeJSON(_0x2b07ae,_0x212b39,_0x26c1d6);return''+'\x20'[_0x17a76b(0x12c)](_0x26c1d6)+_0x402b80;});return'[\x0a'+_0x2299bf[_0x1c334f(0x136)](',\x0a')+('\x0a'+_0x22dc24+']');}if(typeof _0x4de0a9===_0x1c334f(0x137)){const _0x27f0e6=Object[_0x1c334f(0x121)](_0x4de0a9);if(_0x27f0e6[_0x1c334f(0x11f)]===0x0)return'{}';const _0x588824=_0x27f0e6['map'](([_0xfdb8b3,_0x31b45c])=>{const _0x1294a9=_0x1c334f,_0x41f1ab=colorJSONKey(JSON[_0x1294a9(0x127)](_0xfdb8b3),_0x212b39),_0x2b4d28=colorizeJSON(_0x31b45c,_0x212b39,_0x26c1d6);return''+'\x20'[_0x1294a9(0x12c)](_0x26c1d6)+_0x41f1ab+':\x20'+_0x2b4d28;});return'{\x0a'+_0x588824[_0x1c334f(0x136)](',\x0a')+('\x0a'+_0x22dc24+'}');}return String(_0x4de0a9);}
@@ -1 +1 @@
1
- function a210_0xa65a(){const _0x5d7c79=['23216mrkpaG','min','80owRVxW','old','unchanged','map','4RbEkIc','added','content','280533LqOXJw','removed','type','max','repeat','size','add','\x20\x20\x20','some','\x20\x20...','new','length','1536696NukgfN','padStart','split','unshift','2043UwSllk','join','\x20-\x20','green','1364451NXYrwW','cyan','1097832rnGuFp','66187NfpjCB','10TGITUv','forEach','fill','push','2488668FeCVAs'];a210_0xa65a=function(){return _0x5d7c79;};return a210_0xa65a();}function a210_0xe321(_0x170fcf,_0x4dde0f){_0x170fcf=_0x170fcf-0x1c5;const _0xa65ae7=a210_0xa65a();let _0xe321f9=_0xa65ae7[_0x170fcf];return _0xe321f9;}(function(_0x5d2207,_0x35e486){const _0x338c10=a210_0xe321,_0x591e47=_0x5d2207();while(!![]){try{const _0x5ab6fb=-parseInt(_0x338c10(0x1c9))/0x1*(-parseInt(_0x338c10(0x1d5))/0x2)+-parseInt(_0x338c10(0x1c6))/0x3+parseInt(_0x338c10(0x1c8))/0x4*(parseInt(_0x338c10(0x1ca))/0x5)+parseInt(_0x338c10(0x1ce))/0x6+parseInt(_0x338c10(0x1e4))/0x7+parseInt(_0x338c10(0x1cf))/0x8*(-parseInt(_0x338c10(0x1e8))/0x9)+-parseInt(_0x338c10(0x1d1))/0xa*(-parseInt(_0x338c10(0x1d8))/0xb);if(_0x5ab6fb===_0x35e486)break;else _0x591e47['push'](_0x591e47['shift']());}catch(_0x264bb7){_0x591e47['push'](_0x591e47['shift']());}}}(a210_0xa65a,0x63221));import a210_0x19b699 from'chalk';export function generateDiff(_0x49a684,_0x365789){const _0x13bd39=a210_0xe321,_0x18d885=_0x49a684['split']('\x0a'),_0x2b835a=_0x365789[_0x13bd39(0x1e6)]('\x0a'),_0x32a46d=[],_0x187364=computeLCS(_0x18d885,_0x2b835a);let _0x2fd682=0x0,_0x2a48e1=0x0,_0x4b74f1=0x0;while(_0x2fd682<_0x18d885[_0x13bd39(0x1e3)]||_0x2a48e1<_0x2b835a[_0x13bd39(0x1e3)]){if(_0x4b74f1<_0x187364['length']&&_0x2fd682<_0x18d885[_0x13bd39(0x1e3)]&&_0x18d885[_0x2fd682]===_0x187364[_0x4b74f1])_0x2a48e1<_0x2b835a[_0x13bd39(0x1e3)]&&_0x2b835a[_0x2a48e1]===_0x187364[_0x4b74f1]?(_0x32a46d[_0x13bd39(0x1cd)]({'type':_0x13bd39(0x1d3),'content':_0x18d885[_0x2fd682]}),_0x2fd682++,_0x2a48e1++,_0x4b74f1++):(_0x32a46d[_0x13bd39(0x1cd)]({'type':_0x13bd39(0x1d6),'content':_0x2b835a[_0x2a48e1]}),_0x2a48e1++);else{if(_0x4b74f1<_0x187364[_0x13bd39(0x1e3)]&&_0x2a48e1<_0x2b835a[_0x13bd39(0x1e3)]&&_0x2b835a[_0x2a48e1]===_0x187364[_0x4b74f1])_0x32a46d['push']({'type':_0x13bd39(0x1d9),'content':_0x18d885[_0x2fd682]}),_0x2fd682++;else{if(_0x2fd682<_0x18d885[_0x13bd39(0x1e3)]&&(_0x4b74f1>=_0x187364[_0x13bd39(0x1e3)]||_0x18d885[_0x2fd682]!==_0x187364[_0x4b74f1]))_0x32a46d['push']({'type':'removed','content':_0x18d885[_0x2fd682]}),_0x2fd682++;else _0x2a48e1<_0x2b835a[_0x13bd39(0x1e3)]&&(_0x32a46d[_0x13bd39(0x1cd)]({'type':_0x13bd39(0x1d6),'content':_0x2b835a[_0x2a48e1]}),_0x2a48e1++);}}}return _0x32a46d;}function computeLCS(_0x6fa144,_0x276203){const _0x213387=a210_0xe321,_0x579ece=_0x6fa144[_0x213387(0x1e3)],_0x267755=_0x276203[_0x213387(0x1e3)],_0x52995c=Array(_0x579ece+0x1)['fill'](null)[_0x213387(0x1d4)](()=>Array(_0x267755+0x1)[_0x213387(0x1cc)](0x0));for(let _0x58c3b2=0x1;_0x58c3b2<=_0x579ece;_0x58c3b2++){for(let _0x713142=0x1;_0x713142<=_0x267755;_0x713142++){_0x6fa144[_0x58c3b2-0x1]===_0x276203[_0x713142-0x1]?_0x52995c[_0x58c3b2][_0x713142]=_0x52995c[_0x58c3b2-0x1][_0x713142-0x1]+0x1:_0x52995c[_0x58c3b2][_0x713142]=Math[_0x213387(0x1db)](_0x52995c[_0x58c3b2-0x1][_0x713142],_0x52995c[_0x58c3b2][_0x713142-0x1]);}}const _0x22e546=[];let _0x53dda2=_0x579ece,_0x132a9a=_0x267755;while(_0x53dda2>0x0&&_0x132a9a>0x0){if(_0x6fa144[_0x53dda2-0x1]===_0x276203[_0x132a9a-0x1])_0x22e546[_0x213387(0x1e7)](_0x6fa144[_0x53dda2-0x1]),_0x53dda2--,_0x132a9a--;else _0x52995c[_0x53dda2-0x1][_0x132a9a]>_0x52995c[_0x53dda2][_0x132a9a-0x1]?_0x53dda2--:_0x132a9a--;}return _0x22e546;}export function formatDiffWithColors(_0x4ce377,_0x5a9d0c=0x3){const _0x1db2dd=a210_0xe321,_0x3d405e=new Set();_0x4ce377[_0x1db2dd(0x1cb)]((_0xc624fa,_0x10a727)=>{const _0x343ad8=_0x1db2dd;_0xc624fa[_0x343ad8(0x1da)]!==_0x343ad8(0x1d3)&&_0x3d405e[_0x343ad8(0x1de)](_0x10a727);});if(_0x3d405e[_0x1db2dd(0x1dd)]===0x0)return'';const _0x479b89=new Set();for(const _0x5e687e of _0x3d405e){for(let _0x572c50=Math['max'](0x0,_0x5e687e-_0x5a9d0c);_0x572c50<=Math[_0x1db2dd(0x1d0)](_0x4ce377['length']-0x1,_0x5e687e+_0x5a9d0c);_0x572c50++){_0x479b89['add'](_0x572c50);}}const _0x4d4140=[];let _0x597545=-0x1;const _0x3a3e1e=_0x4ce377[_0x1db2dd(0x1e3)],_0x480a93=Math['max'](0x3,String(_0x3a3e1e)[_0x1db2dd(0x1e3)]),_0x2692c7=[];let _0x4f304e=0x0,_0x366287=0x0;for(const _0x59a620 of _0x4ce377){if(_0x59a620[_0x1db2dd(0x1da)]===_0x1db2dd(0x1d9))_0x4f304e++,_0x2692c7[_0x1db2dd(0x1cd)]({'old':_0x4f304e,'new':0x0});else _0x59a620['type']===_0x1db2dd(0x1d6)?(_0x366287++,_0x2692c7['push']({'old':0x0,'new':_0x366287})):(_0x4f304e++,_0x366287++,_0x2692c7[_0x1db2dd(0x1cd)]({'old':_0x4f304e,'new':_0x366287}));}for(let _0x17fd13=0x0;_0x17fd13<_0x4ce377['length'];_0x17fd13++){if(!_0x479b89['has'](_0x17fd13))continue;_0x597545!==-0x1&&_0x17fd13>_0x597545+0x1&&_0x4d4140['push'](a210_0x19b699[_0x1db2dd(0x1c7)](_0x1db2dd(0x1e1)));_0x597545=_0x17fd13;const _0x25e5a5=_0x4ce377[_0x17fd13],_0x58cc8d=_0x2692c7[_0x17fd13],_0x1c8fce=_0x58cc8d[_0x1db2dd(0x1d2)]>0x0?String(_0x58cc8d[_0x1db2dd(0x1d2)])[_0x1db2dd(0x1e5)](_0x480a93):'\x20'[_0x1db2dd(0x1dc)](_0x480a93),_0x12bc9b=_0x58cc8d[_0x1db2dd(0x1e2)]>0x0?String(_0x58cc8d[_0x1db2dd(0x1e2)])[_0x1db2dd(0x1e5)](_0x480a93):'\x20'['repeat'](_0x480a93);switch(_0x25e5a5[_0x1db2dd(0x1da)]){case'removed':_0x4d4140[_0x1db2dd(0x1cd)](a210_0x19b699['red'](_0x1c8fce+'\x20'+_0x12bc9b+_0x1db2dd(0x1ea)+_0x25e5a5[_0x1db2dd(0x1d7)]));break;case _0x1db2dd(0x1d6):_0x4d4140[_0x1db2dd(0x1cd)](a210_0x19b699[_0x1db2dd(0x1c5)](_0x1c8fce+'\x20'+_0x12bc9b+'\x20+\x20'+_0x25e5a5[_0x1db2dd(0x1d7)]));break;default:_0x4d4140['push'](a210_0x19b699['dim'](_0x1c8fce+'\x20'+_0x12bc9b+_0x1db2dd(0x1df)+_0x25e5a5[_0x1db2dd(0x1d7)]));break;}}return _0x4d4140[_0x1db2dd(0x1e9)]('\x0a');}export function hasChanges(_0x30855d){const _0x500872=a210_0xe321;return _0x30855d[_0x500872(0x1e0)](_0x3eaeef=>_0x3eaeef['type']!=='unchanged');}
1
+ (function(_0x150488,_0x579e01){const _0x422bf7=a210_0x1506,_0xee701a=_0x150488();while(!![]){try{const _0xbe830e=parseInt(_0x422bf7(0xbc))/0x1*(parseInt(_0x422bf7(0xb5))/0x2)+parseInt(_0x422bf7(0xab))/0x3+-parseInt(_0x422bf7(0x9e))/0x4+-parseInt(_0x422bf7(0xa9))/0x5+parseInt(_0x422bf7(0xbf))/0x6+-parseInt(_0x422bf7(0x9f))/0x7+-parseInt(_0x422bf7(0xa6))/0x8;if(_0xbe830e===_0x579e01)break;else _0xee701a['push'](_0xee701a['shift']());}catch(_0x4d2482){_0xee701a['push'](_0xee701a['shift']());}}}(a210_0x21ff,0x4de3e));import a210_0x12b730 from'chalk';function a210_0x21ff(){const _0x2aa784=['1lmphbG','split','size','3265350wySjuk','\x20\x20...','join','217540bsywJv','3711519gsMhcL','min','add','red','new','forEach','type','4668344LPJDQE','\x20\x20\x20','\x20+\x20','1605785TNmAHg','padStart','1890483whLyyL','unchanged','removed','some','cyan','content','length','old','\x20-\x20','fill','1267908iRiKof','added','max','unshift','push','repeat','dim'];a210_0x21ff=function(){return _0x2aa784;};return a210_0x21ff();}export function generateDiff(_0x4ccdd8,_0x314cce){const _0x4aebb2=a210_0x1506,_0x11259d=_0x4ccdd8[_0x4aebb2(0xbd)]('\x0a'),_0x29d801=_0x314cce['split']('\x0a'),_0x3e59d6=[],_0x462146=computeLCS(_0x11259d,_0x29d801);let _0x109dfd=0x0,_0x3ad9e8=0x0,_0x535d76=0x0;while(_0x109dfd<_0x11259d[_0x4aebb2(0xb1)]||_0x3ad9e8<_0x29d801[_0x4aebb2(0xb1)]){if(_0x535d76<_0x462146[_0x4aebb2(0xb1)]&&_0x109dfd<_0x11259d[_0x4aebb2(0xb1)]&&_0x11259d[_0x109dfd]===_0x462146[_0x535d76])_0x3ad9e8<_0x29d801[_0x4aebb2(0xb1)]&&_0x29d801[_0x3ad9e8]===_0x462146[_0x535d76]?(_0x3e59d6['push']({'type':_0x4aebb2(0xac),'content':_0x11259d[_0x109dfd]}),_0x109dfd++,_0x3ad9e8++,_0x535d76++):(_0x3e59d6[_0x4aebb2(0xb9)]({'type':_0x4aebb2(0xb6),'content':_0x29d801[_0x3ad9e8]}),_0x3ad9e8++);else{if(_0x535d76<_0x462146[_0x4aebb2(0xb1)]&&_0x3ad9e8<_0x29d801[_0x4aebb2(0xb1)]&&_0x29d801[_0x3ad9e8]===_0x462146[_0x535d76])_0x3e59d6[_0x4aebb2(0xb9)]({'type':'removed','content':_0x11259d[_0x109dfd]}),_0x109dfd++;else{if(_0x109dfd<_0x11259d['length']&&(_0x535d76>=_0x462146[_0x4aebb2(0xb1)]||_0x11259d[_0x109dfd]!==_0x462146[_0x535d76]))_0x3e59d6[_0x4aebb2(0xb9)]({'type':'removed','content':_0x11259d[_0x109dfd]}),_0x109dfd++;else _0x3ad9e8<_0x29d801[_0x4aebb2(0xb1)]&&(_0x3e59d6[_0x4aebb2(0xb9)]({'type':_0x4aebb2(0xb6),'content':_0x29d801[_0x3ad9e8]}),_0x3ad9e8++);}}}return _0x3e59d6;}function a210_0x1506(_0x3c40da,_0x2372ae){_0x3c40da=_0x3c40da-0x9d;const _0x21ff89=a210_0x21ff();let _0x1506c0=_0x21ff89[_0x3c40da];return _0x1506c0;}function computeLCS(_0x18ed14,_0x455526){const _0x3aa2bb=a210_0x1506,_0x37e66f=_0x18ed14[_0x3aa2bb(0xb1)],_0x6a52f6=_0x455526['length'],_0x151631=Array(_0x37e66f+0x1)[_0x3aa2bb(0xb4)](null)['map'](()=>Array(_0x6a52f6+0x1)['fill'](0x0));for(let _0x15897f=0x1;_0x15897f<=_0x37e66f;_0x15897f++){for(let _0x205443=0x1;_0x205443<=_0x6a52f6;_0x205443++){_0x18ed14[_0x15897f-0x1]===_0x455526[_0x205443-0x1]?_0x151631[_0x15897f][_0x205443]=_0x151631[_0x15897f-0x1][_0x205443-0x1]+0x1:_0x151631[_0x15897f][_0x205443]=Math['max'](_0x151631[_0x15897f-0x1][_0x205443],_0x151631[_0x15897f][_0x205443-0x1]);}}const _0x539d54=[];let _0x1b3060=_0x37e66f,_0x2b34da=_0x6a52f6;while(_0x1b3060>0x0&&_0x2b34da>0x0){if(_0x18ed14[_0x1b3060-0x1]===_0x455526[_0x2b34da-0x1])_0x539d54[_0x3aa2bb(0xb8)](_0x18ed14[_0x1b3060-0x1]),_0x1b3060--,_0x2b34da--;else _0x151631[_0x1b3060-0x1][_0x2b34da]>_0x151631[_0x1b3060][_0x2b34da-0x1]?_0x1b3060--:_0x2b34da--;}return _0x539d54;}export function formatDiffWithColors(_0x326018,_0x3e3953=0x3){const _0x534422=a210_0x1506,_0x2e94d7=new Set();_0x326018[_0x534422(0xa4)]((_0x497c90,_0x38b127)=>{const _0x2d0b5b=_0x534422;_0x497c90['type']!==_0x2d0b5b(0xac)&&_0x2e94d7['add'](_0x38b127);});if(_0x2e94d7[_0x534422(0xbe)]===0x0)return'';const _0x17345b=new Set();for(const _0x24bce0 of _0x2e94d7){for(let _0x288af1=Math[_0x534422(0xb7)](0x0,_0x24bce0-_0x3e3953);_0x288af1<=Math[_0x534422(0xa0)](_0x326018['length']-0x1,_0x24bce0+_0x3e3953);_0x288af1++){_0x17345b[_0x534422(0xa1)](_0x288af1);}}const _0x3b31d=[];let _0x23be59=-0x1;const _0x115778=_0x326018[_0x534422(0xb1)],_0x2f136e=Math[_0x534422(0xb7)](0x3,String(_0x115778)[_0x534422(0xb1)]),_0xf2d190=[];let _0x5c7585=0x0,_0x58cd8b=0x0;for(const _0x2fc3dd of _0x326018){if(_0x2fc3dd[_0x534422(0xa5)]===_0x534422(0xad))_0x5c7585++,_0xf2d190['push']({'old':_0x5c7585,'new':0x0});else _0x2fc3dd[_0x534422(0xa5)]===_0x534422(0xb6)?(_0x58cd8b++,_0xf2d190[_0x534422(0xb9)]({'old':0x0,'new':_0x58cd8b})):(_0x5c7585++,_0x58cd8b++,_0xf2d190[_0x534422(0xb9)]({'old':_0x5c7585,'new':_0x58cd8b}));}for(let _0x3f0eaf=0x0;_0x3f0eaf<_0x326018[_0x534422(0xb1)];_0x3f0eaf++){if(!_0x17345b['has'](_0x3f0eaf))continue;_0x23be59!==-0x1&&_0x3f0eaf>_0x23be59+0x1&&_0x3b31d[_0x534422(0xb9)](a210_0x12b730[_0x534422(0xaf)](_0x534422(0xc0)));_0x23be59=_0x3f0eaf;const _0x74a329=_0x326018[_0x3f0eaf],_0x41c8d2=_0xf2d190[_0x3f0eaf],_0x33797f=_0x41c8d2['old']>0x0?String(_0x41c8d2[_0x534422(0xb2)])[_0x534422(0xaa)](_0x2f136e):'\x20'[_0x534422(0xba)](_0x2f136e),_0xf039cf=_0x41c8d2[_0x534422(0xa3)]>0x0?String(_0x41c8d2[_0x534422(0xa3)])[_0x534422(0xaa)](_0x2f136e):'\x20'[_0x534422(0xba)](_0x2f136e);switch(_0x74a329[_0x534422(0xa5)]){case'removed':_0x3b31d['push'](a210_0x12b730[_0x534422(0xa2)](_0x33797f+'\x20'+_0xf039cf+_0x534422(0xb3)+_0x74a329[_0x534422(0xb0)]));break;case _0x534422(0xb6):_0x3b31d[_0x534422(0xb9)](a210_0x12b730['green'](_0x33797f+'\x20'+_0xf039cf+_0x534422(0xa8)+_0x74a329[_0x534422(0xb0)]));break;default:_0x3b31d['push'](a210_0x12b730[_0x534422(0xbb)](_0x33797f+'\x20'+_0xf039cf+_0x534422(0xa7)+_0x74a329['content']));break;}}return _0x3b31d[_0x534422(0x9d)]('\x0a');}export function hasChanges(_0x28ee6f){const _0x379d05=a210_0x1506;return _0x28ee6f[_0x379d05(0xae)](_0xde0b92=>_0xde0b92[_0x379d05(0xa5)]!==_0x379d05(0xac));}
@@ -1 +1 @@
1
- (function(_0x186088,_0x2bc60c){const _0xddbc74=a211_0x5220,_0x15e7bb=_0x186088();while(!![]){try{const _0x171932=-parseInt(_0xddbc74(0x141))/0x1*(parseInt(_0xddbc74(0x138))/0x2)+-parseInt(_0xddbc74(0x13d))/0x3+-parseInt(_0xddbc74(0x144))/0x4*(parseInt(_0xddbc74(0x145))/0x5)+parseInt(_0xddbc74(0x143))/0x6+-parseInt(_0xddbc74(0x140))/0x7*(parseInt(_0xddbc74(0x137))/0x8)+parseInt(_0xddbc74(0x13e))/0x9*(parseInt(_0xddbc74(0x133))/0xa)+parseInt(_0xddbc74(0x134))/0xb;if(_0x171932===_0x2bc60c)break;else _0x15e7bb['push'](_0x15e7bb['shift']());}catch(_0x33d134){_0x15e7bb['push'](_0x15e7bb['shift']());}}}(a211_0x20a7,0xe0e2d));import*as a211_0x27f105 from'node:fs';import*as a211_0x332c5d from'node:path';function a211_0x5220(_0x259c97,_0x48f41b){_0x259c97=_0x259c97-0x133;const _0x20a7f4=a211_0x20a7();let _0x5220c1=_0x20a7f4[_0x259c97];return _0x5220c1;}export function setSecureFilePermissions(_0x419f0a){const _0x516640=a211_0x5220;try{a211_0x27f105[_0x516640(0x13a)](_0x419f0a,0x180);}catch{console[_0x516640(0x139)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x419f0a);}}export function setSecureDirectoryPermissions(_0x5acda0){const _0x350f3b=a211_0x5220;try{a211_0x27f105[_0x350f3b(0x13a)](_0x5acda0,0x1c0);}catch{console[_0x350f3b(0x139)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5acda0);}}export function createSecureDirectory(_0x3a6cab){const _0x29c8a1=a211_0x5220;!a211_0x27f105[_0x29c8a1(0x136)](_0x3a6cab)&&(a211_0x27f105[_0x29c8a1(0x13c)](_0x3a6cab,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3a6cab));}export function validateSecureFilePermissions(_0x49d448){const _0x7d0198=a211_0x5220;try{const _0x25b72e=a211_0x27f105[_0x7d0198(0x13f)](_0x49d448),_0x13c9d5=_0x25b72e[_0x7d0198(0x146)]&0x1ff,_0x2ba0d7=(_0x13c9d5&0x3f)!==0x0;if(_0x2ba0d7)return console[_0x7d0198(0x139)]('Warning:\x20'+_0x49d448+_0x7d0198(0x135)+_0x13c9d5['toString'](0x8)+_0x7d0198(0x142)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a211_0x20a7(){const _0x4339fb=['mkdirSync','3303387ESgbrN','126GMaLtw','statSync','7210070OqeYoX','238rrtfvR',').\x20','6909102qPyTsf','44648QmgRha','355kunJGG','mode','583990NtRsBP','22129877loVWic','\x20has\x20insecure\x20permissions\x20(','existsSync','8DGDPET','1144ECoCHt','warn','chmodSync','writeFileSync'];a211_0x20a7=function(){return _0x4339fb;};return a211_0x20a7();}export function writeSecureFile(_0x34b1cb,_0x28a412){const _0x4ae3bf=a211_0x5220,_0x3b396f=a211_0x332c5d['dirname'](_0x34b1cb);createSecureDirectory(_0x3b396f),a211_0x27f105[_0x4ae3bf(0x13b)](_0x34b1cb,_0x28a412,{'mode':0x180}),setSecureFilePermissions(_0x34b1cb);}
1
+ function a211_0x43b0(_0x52882c,_0x343840){_0x52882c=_0x52882c-0x188;const _0x189ea1=a211_0x189e();let _0x43b0ce=_0x189ea1[_0x52882c];return _0x43b0ce;}(function(_0x104431,_0x317e42){const _0x43e70f=a211_0x43b0,_0x5947ed=_0x104431();while(!![]){try{const _0x1dc9cd=-parseInt(_0x43e70f(0x18a))/0x1*(-parseInt(_0x43e70f(0x18d))/0x2)+-parseInt(_0x43e70f(0x189))/0x3*(parseInt(_0x43e70f(0x188))/0x4)+-parseInt(_0x43e70f(0x190))/0x5+parseInt(_0x43e70f(0x192))/0x6*(parseInt(_0x43e70f(0x18e))/0x7)+-parseInt(_0x43e70f(0x19a))/0x8+-parseInt(_0x43e70f(0x199))/0x9*(-parseInt(_0x43e70f(0x198))/0xa)+parseInt(_0x43e70f(0x197))/0xb;if(_0x1dc9cd===_0x317e42)break;else _0x5947ed['push'](_0x5947ed['shift']());}catch(_0x2f60d5){_0x5947ed['push'](_0x5947ed['shift']());}}}(a211_0x189e,0x9578c));import*as a211_0x1b2460 from'node:fs';import*as a211_0x4d9c11 from'node:path';export function setSecureFilePermissions(_0x420a0b){const _0x507987=a211_0x43b0;try{a211_0x1b2460[_0x507987(0x18b)](_0x420a0b,0x180);}catch{console[_0x507987(0x18f)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x420a0b);}}export function setSecureDirectoryPermissions(_0x59e478){const _0x2f82a6=a211_0x43b0;try{a211_0x1b2460['chmodSync'](_0x59e478,0x1c0);}catch{console[_0x2f82a6(0x18f)](_0x2f82a6(0x191)+_0x59e478);}}export function createSecureDirectory(_0x11a4d2){const _0x1179d8=a211_0x43b0;!a211_0x1b2460[_0x1179d8(0x193)](_0x11a4d2)&&(a211_0x1b2460[_0x1179d8(0x195)](_0x11a4d2,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x11a4d2));}export function validateSecureFilePermissions(_0x194e30){const _0x2e651c=a211_0x43b0;try{const _0x49a7dc=a211_0x1b2460['statSync'](_0x194e30),_0x1dbf26=_0x49a7dc['mode']&0x1ff,_0x288099=(_0x1dbf26&0x3f)!==0x0;if(_0x288099)return console[_0x2e651c(0x18f)]('Warning:\x20'+_0x194e30+'\x20has\x20insecure\x20permissions\x20('+_0x1dbf26[_0x2e651c(0x194)](0x8)+').\x20'+_0x2e651c(0x18c)),![];return!![];}catch{return!![];}}function a211_0x189e(){const _0x4b5520=['20soImUl','176376tcAwBt','8YdSAgK','chmodSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','80404VoSQua','10199uNXaBG','warn','1716070amrftd','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1254uAFfPN','existsSync','toString','mkdirSync','writeFileSync','16515719uFWIQE','690iWCytc','17271QuxNIz','8084472rfLAht'];a211_0x189e=function(){return _0x4b5520;};return a211_0x189e();}export function writeSecureFile(_0x5e2de3,_0x1ab037){const _0x27cf43=a211_0x43b0,_0x10b02a=a211_0x4d9c11['dirname'](_0x5e2de3);createSecureDirectory(_0x10b02a),a211_0x1b2460[_0x27cf43(0x196)](_0x5e2de3,_0x1ab037,{'mode':0x180}),setSecureFilePermissions(_0x5e2de3);}
@@ -1 +1 @@
1
- function a212_0x10a1(){const _0x3d1f48=['16480044taOLNV','ENOENT','15757dmkhbc','code','2990406JjLeiF','3697910UuZzcj','INTERNAL','message','File\x20\x27','\x27:\x20','Permission\x20denied\x20reading\x20file\x20\x27','1301618msUvyF','Error\x20reading\x20file\x20\x27','PERMISSION_DENIED','352903mRDQWw','4DFezcG','4857066HwtorS','3112LXLSlr'];a212_0x10a1=function(){return _0x3d1f48;};return a212_0x10a1();}(function(_0x5e331b,_0x4b53ce){const _0x23404a=a212_0xa0da,_0xb0848c=_0x5e331b();while(!![]){try{const _0x4136b1=-parseInt(_0x23404a(0x11c))/0x1+-parseInt(_0x23404a(0x119))/0x2+parseInt(_0x23404a(0x124))/0x3+-parseInt(_0x23404a(0x11d))/0x4*(-parseInt(_0x23404a(0x125))/0x5)+parseInt(_0x23404a(0x11e))/0x6+-parseInt(_0x23404a(0x122))/0x7*(-parseInt(_0x23404a(0x11f))/0x8)+-parseInt(_0x23404a(0x120))/0x9;if(_0x4136b1===_0x4b53ce)break;else _0xb0848c['push'](_0xb0848c['shift']());}catch(_0x4b0d4f){_0xb0848c['push'](_0xb0848c['shift']());}}}(a212_0x10a1,0x8f3d2));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0xa0da(_0x4f1d1d,_0x38290d){_0x4f1d1d=_0x4f1d1d-0x119;const _0x10a18c=a212_0x10a1();let _0xa0da95=_0x10a18c[_0x4f1d1d];return _0xa0da95;}export function readFileContent(_0x34fd08){const _0x555829=a212_0xa0da;try{return readFileSync(_0x34fd08,'utf-8');}catch(_0x5a229a){const _0x2075fe=_0x5a229a[_0x555829(0x123)];if(_0x2075fe===_0x555829(0x121))throw new SDKError(ErrorCode['NOT_FOUND'],_0x555829(0x128)+_0x34fd08+'\x27\x20not\x20found',_0x5a229a);else{if(_0x2075fe==='EACCES')throw new SDKError(ErrorCode[_0x555829(0x11b)],_0x555829(0x12a)+_0x34fd08+'\x27',_0x5a229a);else throw new SDKError(ErrorCode[_0x555829(0x126)],_0x555829(0x11a)+_0x34fd08+_0x555829(0x129)+_0x5a229a[_0x555829(0x127)],_0x5a229a);}}}
1
+ (function(_0x2ebdf1,_0x5688fb){const _0x5b1c8c=a212_0x1c3b,_0x5e4161=_0x2ebdf1();while(!![]){try{const _0x2d3575=parseInt(_0x5b1c8c(0x70))/0x1*(-parseInt(_0x5b1c8c(0x7d))/0x2)+parseInt(_0x5b1c8c(0x71))/0x3+parseInt(_0x5b1c8c(0x72))/0x4*(-parseInt(_0x5b1c8c(0x7e))/0x5)+parseInt(_0x5b1c8c(0x77))/0x6+-parseInt(_0x5b1c8c(0x75))/0x7+parseInt(_0x5b1c8c(0x7c))/0x8+parseInt(_0x5b1c8c(0x74))/0x9;if(_0x2d3575===_0x5688fb)break;else _0x5e4161['push'](_0x5e4161['shift']());}catch(_0x8f1348){_0x5e4161['push'](_0x5e4161['shift']());}}}(a212_0x5394,0x2137f));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0x1c3b(_0x3dec80,_0x3883ca){_0x3dec80=_0x3dec80-0x6f;const _0x53949a=a212_0x5394();let _0x1c3b6c=_0x53949a[_0x3dec80];return _0x1c3b6c;}function a212_0x5394(){const _0x208b20=['EACCES','3589929SKahNG','1278424CIsWEw','code','399354GVWOag','File\x20\x27','utf-8','PERMISSION_DENIED','\x27:\x20','1405576yrEzWa','2AeHZId','25jtjcbM','NOT_FOUND','212405vNwibD','169404nSOYLX','133204qfLXtE'];a212_0x5394=function(){return _0x208b20;};return a212_0x5394();}export function readFileContent(_0x1ccc43){const _0x5301b7=a212_0x1c3b;try{return readFileSync(_0x1ccc43,_0x5301b7(0x79));}catch(_0x4ed8b2){const _0x4481ce=_0x4ed8b2[_0x5301b7(0x76)];if(_0x4481ce==='ENOENT')throw new SDKError(ErrorCode[_0x5301b7(0x6f)],_0x5301b7(0x78)+_0x1ccc43+'\x27\x20not\x20found',_0x4ed8b2);else{if(_0x4481ce===_0x5301b7(0x73))throw new SDKError(ErrorCode[_0x5301b7(0x7a)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x1ccc43+'\x27',_0x4ed8b2);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x1ccc43+_0x5301b7(0x7b)+_0x4ed8b2['message'],_0x4ed8b2);}}}
@@ -1 +1 @@
1
- function a213_0x1535(){const _0x7f3c3f=['6021136uzfiPG','set','slice','tag_name','statusCode','2594695NSOeWe','length','282oOkIjP','70yhThwK','2438224IQoQHF','now','parse','resolve','error','163940iDnYhW','toString','9XOAgag','find','/repos/','72wrYpcX','destroy','3822511PjYiyL','fetchedAt','get','next','60962onizLx','918666WxVpMV','api.github.com','GitHub\x20API\x20returned\x20','prerelease','/releases?per_page=20'];a213_0x1535=function(){return _0x7f3c3f;};return a213_0x1535();}(function(_0x1af0cd,_0x4aec6a){const _0x43dc43=a213_0x4879,_0x392423=_0x1af0cd();while(!![]){try{const _0x39cabf=parseInt(_0x43dc43(0xba))/0x1+-parseInt(_0x43dc43(0xb9))/0x2*(-parseInt(_0x43dc43(0xb3))/0x3)+parseInt(_0x43dc43(0xa9))/0x4+parseInt(_0x43dc43(0xa5))/0x5+parseInt(_0x43dc43(0xa7))/0x6*(parseInt(_0x43dc43(0xae))/0x7)+parseInt(_0x43dc43(0xbf))/0x8*(-parseInt(_0x43dc43(0xb0))/0x9)+-parseInt(_0x43dc43(0xa8))/0xa*(parseInt(_0x43dc43(0xb5))/0xb);if(_0x39cabf===_0x4aec6a)break;else _0x392423['push'](_0x392423['shift']());}catch(_0x126788){_0x392423['push'](_0x392423['shift']());}}}(a213_0x1535,0xa9818));function a213_0x4879(_0x53f1da,_0x51d2fd){_0x53f1da=_0x53f1da-0xa4;const _0x15351c=a213_0x1535();let _0x487952=_0x15351c[_0x53f1da];return _0x487952;}import*as a213_0x1e08a4 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x4643e5,_0x1be001,_0x4d48c5){const _0x1f47ee=a213_0x4879,_0x72d424=_0x4643e5+'/'+_0x1be001,_0x166daa=cache[_0x1f47ee(0xb7)](_0x72d424);if(_0x166daa&&Date[_0x1f47ee(0xaa)]()-_0x166daa[_0x1f47ee(0xb6)]<CACHE_TTL_MS)return Promise[_0x1f47ee(0xac)](_0x166daa['releases']);return new Promise((_0x4c530b,_0x56e690)=>{const _0x165260=_0x1f47ee,_0x396970={'hostname':_0x165260(0xbb),'path':_0x165260(0xb2)+_0x4643e5+'/'+_0x1be001+_0x165260(0xbe),'headers':{'User-Agent':_0x4d48c5,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x255634=a213_0x1e08a4[_0x165260(0xb7)](_0x396970,_0x41dc8e=>{let _0x311c16='';_0x41dc8e['on']('data',_0x161915=>{const _0x16bfe8=a213_0x4879;_0x311c16+=_0x161915[_0x16bfe8(0xaf)]();}),_0x41dc8e['on']('end',()=>{const _0x2ba78d=a213_0x4879;if(_0x41dc8e[_0x2ba78d(0xa4)]!==0xc8){_0x56e690(new Error(_0x2ba78d(0xbc)+_0x41dc8e[_0x2ba78d(0xa4)]+':\x20'+_0x311c16[_0x2ba78d(0xc1)](0x0,0xc8)));return;}try{const _0x3266ed=JSON[_0x2ba78d(0xab)](_0x311c16);cache[_0x2ba78d(0xc0)](_0x72d424,{'releases':_0x3266ed,'fetchedAt':Date[_0x2ba78d(0xaa)]()}),_0x4c530b(_0x3266ed);}catch(_0x3bbc9e){_0x56e690(_0x3bbc9e);}});});_0x255634['on']('timeout',()=>{const _0x28bd06=_0x165260;_0x255634[_0x28bd06(0xb4)](),_0x56e690(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x255634['on'](_0x165260(0xad),_0x56e690);});}export async function resolveReleaseTag(_0x1e5195,_0x315c78,_0x1fa467,_0x349b32){const _0x5cac7b=a213_0x4879;if(_0x1e5195===_0x5cac7b(0xb8))return null;const _0x37d455=await fetchGitHubReleases(_0x315c78,_0x1fa467,_0x349b32);if(_0x37d455[_0x5cac7b(0xa6)]===0x0)return null;const _0x5a0f02=_0x37d455[_0x5cac7b(0xb1)](_0x891692=>!_0x891692[_0x5cac7b(0xbd)]);return _0x5a0f02?_0x5a0f02[_0x5cac7b(0xc2)]:null;}
1
+ (function(_0xe6eaa8,_0x4f891a){const _0x137cc6=a213_0x3f42,_0x350db1=_0xe6eaa8();while(!![]){try{const _0x2aaf80=parseInt(_0x137cc6(0x76))/0x1*(-parseInt(_0x137cc6(0x84))/0x2)+parseInt(_0x137cc6(0x80))/0x3+parseInt(_0x137cc6(0x7a))/0x4*(-parseInt(_0x137cc6(0x7e))/0x5)+parseInt(_0x137cc6(0x83))/0x6*(-parseInt(_0x137cc6(0x8b))/0x7)+parseInt(_0x137cc6(0x88))/0x8+parseInt(_0x137cc6(0x77))/0x9+parseInt(_0x137cc6(0x79))/0xa;if(_0x2aaf80===_0x4f891a)break;else _0x350db1['push'](_0x350db1['shift']());}catch(_0x179712){_0x350db1['push'](_0x350db1['shift']());}}}(a213_0x4fa6,0x25c3d));import*as a213_0x40b2b7 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a213_0x4fa6(){const _0x15ca2d=['6zrVpVk','534834fODJzQ','now','3161210XbcFqZ','4DjBSVJ','error','prerelease','end','505940DpAzxY','next','626823jeMhbc','/releases?per_page=20','resolve','12tuHbhw','45436kwDKxw','find','get','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','153864znDUYI','application/vnd.github+json','length','740390FwVwvy','statusCode','api.github.com','parse'];a213_0x4fa6=function(){return _0x15ca2d;};return a213_0x4fa6();}function a213_0x3f42(_0x5dad30,_0x401c3d){_0x5dad30=_0x5dad30-0x74;const _0x4fa65f=a213_0x4fa6();let _0x3f4213=_0x4fa65f[_0x5dad30];return _0x3f4213;}export function fetchGitHubReleases(_0x2b44da,_0x173795,_0x5b5e21){const _0x4747d5=a213_0x3f42,_0xfae6aa=_0x2b44da+'/'+_0x173795,_0x4e5e32=cache[_0x4747d5(0x86)](_0xfae6aa);if(_0x4e5e32&&Date[_0x4747d5(0x78)]()-_0x4e5e32['fetchedAt']<CACHE_TTL_MS)return Promise[_0x4747d5(0x82)](_0x4e5e32['releases']);return new Promise((_0x3f7658,_0x348896)=>{const _0x82edea=_0x4747d5,_0x57140d={'hostname':_0x82edea(0x74),'path':'/repos/'+_0x2b44da+'/'+_0x173795+_0x82edea(0x81),'headers':{'User-Agent':_0x5b5e21,'Accept':_0x82edea(0x89)},'timeout':REQUEST_TIMEOUT_MS},_0x1a4368=a213_0x40b2b7[_0x82edea(0x86)](_0x57140d,_0x16922c=>{const _0x40cac9=_0x82edea;let _0x1fb986='';_0x16922c['on']('data',_0x2fcd49=>{_0x1fb986+=_0x2fcd49['toString']();}),_0x16922c['on'](_0x40cac9(0x7d),()=>{const _0x13604c=_0x40cac9;if(_0x16922c[_0x13604c(0x8c)]!==0xc8){_0x348896(new Error('GitHub\x20API\x20returned\x20'+_0x16922c[_0x13604c(0x8c)]+':\x20'+_0x1fb986['slice'](0x0,0xc8)));return;}try{const _0xb8dd62=JSON[_0x13604c(0x75)](_0x1fb986);cache['set'](_0xfae6aa,{'releases':_0xb8dd62,'fetchedAt':Date[_0x13604c(0x78)]()}),_0x3f7658(_0xb8dd62);}catch(_0x1702cd){_0x348896(_0x1702cd);}});});_0x1a4368['on']('timeout',()=>{const _0x55b050=_0x82edea;_0x1a4368['destroy'](),_0x348896(new Error(_0x55b050(0x87)+REQUEST_TIMEOUT_MS+'ms'));}),_0x1a4368['on'](_0x82edea(0x7b),_0x348896);});}export async function resolveReleaseTag(_0x20d607,_0x40e900,_0x244770,_0x236f33){const _0xfb1d88=a213_0x3f42;if(_0x20d607===_0xfb1d88(0x7f))return null;const _0x398ebe=await fetchGitHubReleases(_0x40e900,_0x244770,_0x236f33);if(_0x398ebe[_0xfb1d88(0x8a)]===0x0)return null;const _0x1df7dc=_0x398ebe[_0xfb1d88(0x85)](_0x56e3bc=>!_0x56e3bc[_0xfb1d88(0x7c)]);return _0x1df7dc?_0x1df7dc['tag_name']:null;}
@@ -1 +1 @@
1
- (function(_0xe8330d,_0x466d4b){const _0x2e4909=a214_0x3436,_0x57dc44=_0xe8330d();while(!![]){try{const _0x2cc1cf=parseInt(_0x2e4909(0xbb))/0x1+-parseInt(_0x2e4909(0xbf))/0x2*(parseInt(_0x2e4909(0xcf))/0x3)+-parseInt(_0x2e4909(0xcd))/0x4*(-parseInt(_0x2e4909(0xb9))/0x5)+parseInt(_0x2e4909(0xc5))/0x6*(-parseInt(_0x2e4909(0xd0))/0x7)+-parseInt(_0x2e4909(0xbd))/0x8*(parseInt(_0x2e4909(0xba))/0x9)+parseInt(_0x2e4909(0xc4))/0xa+-parseInt(_0x2e4909(0xcb))/0xb*(-parseInt(_0x2e4909(0xd1))/0xc);if(_0x2cc1cf===_0x466d4b)break;else _0x57dc44['push'](_0x57dc44['shift']());}catch(_0x5a9dda){_0x57dc44['push'](_0x57dc44['shift']());}}}(a214_0x22a3,0x1b976));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5b4d7f=a214_0x3436;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5b4d7f(0xb7),_0x5b4d7f(0xc6));}const registry=new Map();function a214_0x3436(_0x52740d,_0x43feca){_0x52740d=_0x52740d-0xb7;const _0x22a324=a214_0x22a3();let _0x343698=_0x22a324[_0x52740d];return _0x343698;}function a214_0x22a3(){const _0x1ab69c=['tdx','trim','replace','utf-8','stringify','11nOXbFl','parse','24qETHdv','set','560559fzBKzL','9716yUQwvP','2822724pluLxO','.cache','default','94895FWgMSo','1515933Frgmwi','157274BMMDGf','clear','8KfAdeK','get','2ujrraD','Global\x20cache\x20key\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','{profile}','\x22,\x20cannot\x20register\x20for\x20\x22','313290PcAAfh','300ZZibZo'];a214_0x22a3=function(){return _0x1ab69c;};return a214_0x22a3();}export function registerGlobalCacheKey(_0x3bb646,_0x59e5c3){const _0x3b2771=a214_0x3436,_0x4d0aef=registry[_0x3b2771(0xbe)](_0x3bb646);if(_0x4d0aef&&_0x4d0aef!==_0x59e5c3)throw new Error(_0x3b2771(0xc0)+_0x3bb646+_0x3b2771(0xc1)+_0x4d0aef+_0x3b2771(0xc3)+_0x59e5c3+'\x22');registry[_0x3b2771(0xce)](_0x3bb646,_0x59e5c3);}export function getGlobalCachePath(_0x30cc50){return join(getGlobalCacheDir(),_0x30cc50);}function ensureGlobalCacheDir(){const _0x559d79=getGlobalCacheDir();!existsSync(_0x559d79)&&mkdirSync(_0x559d79,{'recursive':!![]});}function readCacheJson(_0x5b01ee){const _0x44540f=a214_0x3436,_0x1ddf00=getGlobalCachePath(_0x5b01ee);if(!existsSync(_0x1ddf00))return undefined;try{const _0x5a0054=readFileSync(_0x1ddf00,'utf-8');return JSON[_0x44540f(0xcc)](_0x5a0054);}catch{return undefined;}}function writeCacheJson(_0x38ab14,_0x108a7f){const _0x2c7870=a214_0x3436;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x38ab14),JSON[_0x2c7870(0xca)](_0x108a7f,null,0x2),_0x2c7870(0xc9));}function readCacheText(_0x1c3ec0){const _0x5c448d=a214_0x3436,_0x29e8c9=getGlobalCachePath(_0x1c3ec0);if(!existsSync(_0x29e8c9))return undefined;try{return readFileSync(_0x29e8c9,_0x5c448d(0xc9));}catch{return undefined;}}function writeCacheText(_0xdc351,_0x45a4d0){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xdc351),_0x45a4d0,'utf-8');}function clearCache(_0x4882e1){const _0x24563a=getGlobalCachePath(_0x4882e1);if(existsSync(_0x24563a))try{unlinkSync(_0x24563a);}catch{}}function cacheExists(_0x14a97){return existsSync(getGlobalCachePath(_0x14a97));}export function createGlobalCache(_0x4f978a,_0x4f83d1){return registerGlobalCacheKey(_0x4f978a,_0x4f83d1),{'read':()=>readCacheJson(_0x4f978a),'write':_0xc25ca4=>writeCacheJson(_0x4f978a,_0xc25ca4),'clear':()=>clearCache(_0x4f978a),'exists':()=>cacheExists(_0x4f978a),'path':()=>getGlobalCachePath(_0x4f978a)};}export function createGlobalTextCache(_0x47f2b1,_0x45f77c){const _0x180b7d=a214_0x3436;return registerGlobalCacheKey(_0x47f2b1,_0x45f77c),{'read':()=>readCacheText(_0x47f2b1)?.[_0x180b7d(0xc7)]()||undefined,'write':_0x6e2a73=>writeCacheText(_0x47f2b1,_0x6e2a73),'clear':()=>clearCache(_0x47f2b1),'exists':()=>cacheExists(_0x47f2b1),'path':()=>getGlobalCachePath(_0x47f2b1)};}export function createProfileCache(_0x250aed,_0x59b897){const _0x2330a9=_0x35ed56=>{const _0x77f56c=a214_0x3436,_0xf3ab80=_0x35ed56||_0x77f56c(0xb8);return _0x250aed[_0x77f56c(0xc8)](_0x77f56c(0xc2),_0xf3ab80);};return{'read':_0x4af418=>{const _0x4c8760=_0x2330a9(_0x4af418);return registerGlobalCacheKey(_0x4c8760,_0x59b897),readCacheJson(_0x4c8760);},'write':(_0x5665b3,_0x49fccd)=>{const _0x5d0a42=_0x2330a9(_0x5665b3);registerGlobalCacheKey(_0x5d0a42,_0x59b897),writeCacheJson(_0x5d0a42,_0x49fccd);},'clear':_0x121779=>{const _0x5b7d6e=_0x2330a9(_0x121779);clearCache(_0x5b7d6e);},'exists':_0x15b85d=>{const _0xc4f8c=_0x2330a9(_0x15b85d);return cacheExists(_0xc4f8c);},'path':_0xdbc121=>{const _0x423c56=_0x2330a9(_0xdbc121);return getGlobalCachePath(_0x423c56);}};}export function createOptionalProfileCache(_0x3de5d0,_0x49dee3,_0x51e9b3={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x51e9b3,_0x25ad7d=_0xdf0a69=>{return _0xdf0a69?''+_0x3de5d0+profileSeparator+_0xdf0a69+suffix:''+_0x3de5d0+suffix;};return{'read':_0x585124=>{const _0x315178=_0x25ad7d(_0x585124);return registerGlobalCacheKey(_0x315178,_0x49dee3),readCacheJson(_0x315178);},'write':(_0x4ae9f9,_0x142469)=>{const _0xf37b2b=_0x25ad7d(_0x142469);registerGlobalCacheKey(_0xf37b2b,_0x49dee3),writeCacheJson(_0xf37b2b,_0x4ae9f9);},'clear':_0x883920=>{const _0x20003b=_0x25ad7d(_0x883920);clearCache(_0x20003b);},'exists':_0x31d880=>{const _0x196d8b=_0x25ad7d(_0x31d880);return cacheExists(_0x196d8b);},'path':_0x51ebf6=>{const _0x15898e=_0x25ad7d(_0x51ebf6);return getGlobalCachePath(_0x15898e);}};}export function clearGlobalRegistry(){const _0x53908b=a214_0x3436;registry[_0x53908b(0xbc)]();}
1
+ (function(_0x2ae331,_0x232e87){const _0x3e7418=a214_0x51c0,_0x55bf4d=_0x2ae331();while(!![]){try{const _0xbf6e7c=-parseInt(_0x3e7418(0x1f4))/0x1*(parseInt(_0x3e7418(0x207))/0x2)+parseInt(_0x3e7418(0x20a))/0x3+parseInt(_0x3e7418(0x209))/0x4*(parseInt(_0x3e7418(0x208))/0x5)+-parseInt(_0x3e7418(0x202))/0x6*(-parseInt(_0x3e7418(0x1f5))/0x7)+-parseInt(_0x3e7418(0x1fc))/0x8*(-parseInt(_0x3e7418(0x1fa))/0x9)+parseInt(_0x3e7418(0x1f6))/0xa*(-parseInt(_0x3e7418(0x1ff))/0xb)+-parseInt(_0x3e7418(0x1f9))/0xc;if(_0xbf6e7c===_0x232e87)break;else _0x55bf4d['push'](_0x55bf4d['shift']());}catch(_0x4e7c50){_0x55bf4d['push'](_0x55bf4d['shift']());}}}(a214_0x4b0e,0xe43f2));function a214_0x4b0e(){const _0x3b3b04=['\x22\x20already\x20registered\x20by\x20\x22','2783DlIwkg','.cache','replace','174918pIvNqh','get','utf-8','Global\x20cache\x20key\x20\x22','trim','165950CUsnml','2954485lbuZTO','12FWJtBa','4430940bHpJGY','parse','7kVTIHv','343PWyOlM','26010ASVfDZ','clear','\x22,\x20cannot\x20register\x20for\x20\x22','46689456jhoKHd','3119391uXAfUf','stringify','32LpZePz','{profile}'];a214_0x4b0e=function(){return _0x3b3b04;};return a214_0x4b0e();}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x38c191=a214_0x51c0;return process.env.TDX_CACHE_DIR||join(homedir(),_0x38c191(0x200),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x3fc942,_0x5bea0b){const _0x4c424c=a214_0x51c0,_0x1252a0=registry[_0x4c424c(0x203)](_0x3fc942);if(_0x1252a0&&_0x1252a0!==_0x5bea0b)throw new Error(_0x4c424c(0x205)+_0x3fc942+_0x4c424c(0x1fe)+_0x1252a0+_0x4c424c(0x1f8)+_0x5bea0b+'\x22');registry['set'](_0x3fc942,_0x5bea0b);}export function getGlobalCachePath(_0x17bbdd){return join(getGlobalCacheDir(),_0x17bbdd);}function ensureGlobalCacheDir(){const _0x1a8531=getGlobalCacheDir();!existsSync(_0x1a8531)&&mkdirSync(_0x1a8531,{'recursive':!![]});}function readCacheJson(_0x412219){const _0x4fd233=a214_0x51c0,_0x5bce04=getGlobalCachePath(_0x412219);if(!existsSync(_0x5bce04))return undefined;try{const _0x3fff7b=readFileSync(_0x5bce04,_0x4fd233(0x204));return JSON[_0x4fd233(0x20b)](_0x3fff7b);}catch{return undefined;}}function a214_0x51c0(_0x34038b,_0x189d0d){_0x34038b=_0x34038b-0x1f4;const _0x4b0eef=a214_0x4b0e();let _0x51c0a4=_0x4b0eef[_0x34038b];return _0x51c0a4;}function writeCacheJson(_0x41785c,_0x2a614e){const _0x26f434=a214_0x51c0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x41785c),JSON[_0x26f434(0x1fb)](_0x2a614e,null,0x2),'utf-8');}function readCacheText(_0x2134ad){const _0x46ae3a=a214_0x51c0,_0x4a45cd=getGlobalCachePath(_0x2134ad);if(!existsSync(_0x4a45cd))return undefined;try{return readFileSync(_0x4a45cd,_0x46ae3a(0x204));}catch{return undefined;}}function writeCacheText(_0x4cce4c,_0x528d57){const _0x5d7cb6=a214_0x51c0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4cce4c),_0x528d57,_0x5d7cb6(0x204));}function clearCache(_0x5094eb){const _0x47eddf=getGlobalCachePath(_0x5094eb);if(existsSync(_0x47eddf))try{unlinkSync(_0x47eddf);}catch{}}function cacheExists(_0x34ddf3){return existsSync(getGlobalCachePath(_0x34ddf3));}export function createGlobalCache(_0x44fe26,_0x27d717){return registerGlobalCacheKey(_0x44fe26,_0x27d717),{'read':()=>readCacheJson(_0x44fe26),'write':_0x5bf31b=>writeCacheJson(_0x44fe26,_0x5bf31b),'clear':()=>clearCache(_0x44fe26),'exists':()=>cacheExists(_0x44fe26),'path':()=>getGlobalCachePath(_0x44fe26)};}export function createGlobalTextCache(_0x3b745c,_0x1815af){const _0x2263cf=a214_0x51c0;return registerGlobalCacheKey(_0x3b745c,_0x1815af),{'read':()=>readCacheText(_0x3b745c)?.[_0x2263cf(0x206)]()||undefined,'write':_0x407e04=>writeCacheText(_0x3b745c,_0x407e04),'clear':()=>clearCache(_0x3b745c),'exists':()=>cacheExists(_0x3b745c),'path':()=>getGlobalCachePath(_0x3b745c)};}export function createProfileCache(_0x13e4cc,_0x28e498){const _0x47b236=_0xa3b08=>{const _0x1d1957=a214_0x51c0,_0x26aa0d=_0xa3b08||'default';return _0x13e4cc[_0x1d1957(0x201)](_0x1d1957(0x1fd),_0x26aa0d);};return{'read':_0x39baf7=>{const _0x267750=_0x47b236(_0x39baf7);return registerGlobalCacheKey(_0x267750,_0x28e498),readCacheJson(_0x267750);},'write':(_0x4ddd0,_0x57f643)=>{const _0x2e64ce=_0x47b236(_0x4ddd0);registerGlobalCacheKey(_0x2e64ce,_0x28e498),writeCacheJson(_0x2e64ce,_0x57f643);},'clear':_0x38caa8=>{const _0x4671c1=_0x47b236(_0x38caa8);clearCache(_0x4671c1);},'exists':_0x2b67fa=>{const _0x2f08c2=_0x47b236(_0x2b67fa);return cacheExists(_0x2f08c2);},'path':_0x5b65ce=>{const _0x3196e8=_0x47b236(_0x5b65ce);return getGlobalCachePath(_0x3196e8);}};}export function createOptionalProfileCache(_0x4056d4,_0x1bdb4e,_0x4c3c8b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4c3c8b,_0x2f5be9=_0x2fad07=>{return _0x2fad07?''+_0x4056d4+profileSeparator+_0x2fad07+suffix:''+_0x4056d4+suffix;};return{'read':_0xbda5dd=>{const _0x4f5897=_0x2f5be9(_0xbda5dd);return registerGlobalCacheKey(_0x4f5897,_0x1bdb4e),readCacheJson(_0x4f5897);},'write':(_0x56dfe4,_0x500849)=>{const _0x5def2f=_0x2f5be9(_0x500849);registerGlobalCacheKey(_0x5def2f,_0x1bdb4e),writeCacheJson(_0x5def2f,_0x56dfe4);},'clear':_0x250dee=>{const _0x5cc021=_0x2f5be9(_0x250dee);clearCache(_0x5cc021);},'exists':_0x4e1c4a=>{const _0x478959=_0x2f5be9(_0x4e1c4a);return cacheExists(_0x478959);},'path':_0x329b86=>{const _0x506738=_0x2f5be9(_0x329b86);return getGlobalCachePath(_0x506738);}};}export function clearGlobalRegistry(){const _0x150e69=a214_0x51c0;registry[_0x150e69(0x1f7)]();}
@@ -1 +1 @@
1
- function a215_0x5f25(){const _0x231ee2=['18288noOJwG','Failed\x20to\x20load\x20JSON:\x20','2446244IKiXCt','3612IaKuyV','ENOENT','parse','4409304QlOgDm','Permission\x20denied\x20reading\x20file:\x20','code','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','PERMISSION_DENIED','EACCES','2FMNnQF','12945336efUHhp','\x27:\x20','NOT_FOUND','message','6665785sWLSsf','Invalid\x20JSON\x20in\x20file\x20\x27','utf-8','INTERNAL','INVALID_ARGUMENT','16664GpXWlT','420939mNTWwi','670HcEzNb'];a215_0x5f25=function(){return _0x231ee2;};return a215_0x5f25();}(function(_0x138cff,_0x1ced8b){const _0x36f344=a215_0x21c6,_0x3d6d6c=_0x138cff();while(!![]){try{const _0x2a973b=-parseInt(_0x36f344(0xc9))/0x1*(-parseInt(_0x36f344(0xbf))/0x2)+parseInt(_0x36f344(0xd2))/0x3+parseInt(_0x36f344(0xce))/0x4+-parseInt(_0x36f344(0xc4))/0x5+-parseInt(_0x36f344(0xcc))/0x6*(-parseInt(_0x36f344(0xcf))/0x7)+parseInt(_0x36f344(0xc0))/0x8+parseInt(_0x36f344(0xca))/0x9*(-parseInt(_0x36f344(0xcb))/0xa);if(_0x2a973b===_0x1ced8b)break;else _0x3d6d6c['push'](_0x3d6d6c['shift']());}catch(_0xb3d15e){_0x3d6d6c['push'](_0x3d6d6c['shift']());}}}(a215_0x5f25,0xc8b62));function a215_0x21c6(_0x4e8693,_0x589d41){_0x4e8693=_0x4e8693-0xbc;const _0x5f251e=a215_0x5f25();let _0x21c626=_0x5f251e[_0x4e8693];return _0x21c626;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x16fbcd,_0x317ba3){const _0x2624b6=a215_0x21c6;try{if(_0x317ba3){const _0x18485e=await readFile(_0x16fbcd,_0x2624b6(0xc6));try{return JSON[_0x2624b6(0xd1)](_0x18485e);}catch(_0x22dc10){throw new SDKError(ErrorCode[_0x2624b6(0xc8)],_0x2624b6(0xc5)+_0x16fbcd+_0x2624b6(0xc1)+(_0x22dc10 instanceof Error?_0x22dc10[_0x2624b6(0xc3)]:String(_0x22dc10)));}}else try{return JSON[_0x2624b6(0xd1)](_0x16fbcd);}catch(_0x58e729){throw new SDKError(ErrorCode[_0x2624b6(0xc8)],'Invalid\x20JSON\x20string:\x20'+(_0x58e729 instanceof Error?_0x58e729[_0x2624b6(0xc3)]:String(_0x58e729)));}}catch(_0x2cb73d){if(_0x2cb73d instanceof SDKError)throw _0x2cb73d;if(_0x2cb73d instanceof Error&&_0x2624b6(0xd4)in _0x2cb73d){const _0x14df76=_0x2cb73d;if(_0x14df76[_0x2624b6(0xd4)]===_0x2624b6(0xd0))throw new SDKError(ErrorCode[_0x2624b6(0xc2)],'File\x20not\x20found:\x20'+_0x16fbcd);else{if(_0x14df76[_0x2624b6(0xd4)]===_0x2624b6(0xbe))throw new SDKError(ErrorCode[_0x2624b6(0xbd)],_0x2624b6(0xd3)+_0x16fbcd);}}throw new SDKError(ErrorCode[_0x2624b6(0xc7)],_0x2624b6(0xcd)+(_0x2cb73d instanceof Error?_0x2cb73d['message']:String(_0x2cb73d)));}}export async function loadJSONFromOptions(_0x473be3,_0x5a74d3){const _0x337582=a215_0x21c6;if(_0x473be3&&_0x5a74d3)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x337582(0xbc));if(_0x473be3)return await loadJSON(_0x473be3,![]);if(_0x5a74d3)return await loadJSON(_0x5a74d3,!![]);return undefined;}
1
+ function a215_0x1be5(){const _0x27a97c=['3218976silbMg','Invalid\x20JSON\x20string:\x20','NOT_FOUND','INVALID_ARGUMENT','8038992WiArPa','1143997ROaXmo','PERMISSION_DENIED','utf-8','265076edJOCT','message','File\x20not\x20found:\x20','5723840MYFzvY','Failed\x20to\x20load\x20JSON:\x20','INTERNAL','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4QXfQaR','code','EACCES','527214ZSyMNI','7844733ximnyZ','8IXnFKr','10BZjgds','parse','Invalid\x20JSON\x20in\x20file\x20\x27'];a215_0x1be5=function(){return _0x27a97c;};return a215_0x1be5();}(function(_0x493e1e,_0x44746d){const _0x4e8e6a=a215_0x4c13,_0x26e63c=_0x493e1e();while(!![]){try{const _0x570d76=parseInt(_0x4e8e6a(0x194))/0x1+-parseInt(_0x4e8e6a(0x18b))/0x2*(parseInt(_0x4e8e6a(0x189))/0x3)+-parseInt(_0x4e8e6a(0x186))/0x4*(parseInt(_0x4e8e6a(0x182))/0x5)+-parseInt(_0x4e8e6a(0x18f))/0x6+-parseInt(_0x4e8e6a(0x17f))/0x7+parseInt(_0x4e8e6a(0x193))/0x8+-parseInt(_0x4e8e6a(0x18a))/0x9*(-parseInt(_0x4e8e6a(0x18c))/0xa);if(_0x570d76===_0x44746d)break;else _0x26e63c['push'](_0x26e63c['shift']());}catch(_0x5670fb){_0x26e63c['push'](_0x26e63c['shift']());}}}(a215_0x1be5,0x92198));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x4c13(_0x23a046,_0x5796f7){_0x23a046=_0x23a046-0x17f;const _0x1be555=a215_0x1be5();let _0x4c139a=_0x1be555[_0x23a046];return _0x4c139a;}export async function loadJSON(_0x1eedd3,_0x1922a5){const _0x5f1139=a215_0x4c13;try{if(_0x1922a5){const _0x3cfe8d=await readFile(_0x1eedd3,_0x5f1139(0x196));try{return JSON['parse'](_0x3cfe8d);}catch(_0x2ce892){throw new SDKError(ErrorCode[_0x5f1139(0x192)],_0x5f1139(0x18e)+_0x1eedd3+'\x27:\x20'+(_0x2ce892 instanceof Error?_0x2ce892[_0x5f1139(0x180)]:String(_0x2ce892)));}}else try{return JSON[_0x5f1139(0x18d)](_0x1eedd3);}catch(_0x194f90){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5f1139(0x190)+(_0x194f90 instanceof Error?_0x194f90['message']:String(_0x194f90)));}}catch(_0x1d4a6c){if(_0x1d4a6c instanceof SDKError)throw _0x1d4a6c;if(_0x1d4a6c instanceof Error&&_0x5f1139(0x187)in _0x1d4a6c){const _0xa9371a=_0x1d4a6c;if(_0xa9371a[_0x5f1139(0x187)]==='ENOENT')throw new SDKError(ErrorCode[_0x5f1139(0x191)],_0x5f1139(0x181)+_0x1eedd3);else{if(_0xa9371a[_0x5f1139(0x187)]===_0x5f1139(0x188))throw new SDKError(ErrorCode[_0x5f1139(0x195)],'Permission\x20denied\x20reading\x20file:\x20'+_0x1eedd3);}}throw new SDKError(ErrorCode[_0x5f1139(0x184)],_0x5f1139(0x183)+(_0x1d4a6c instanceof Error?_0x1d4a6c[_0x5f1139(0x180)]:String(_0x1d4a6c)));}}export async function loadJSONFromOptions(_0x1c5415,_0x3f547e){const _0x1fde38=a215_0x4c13;if(_0x1c5415&&_0x3f547e)throw new SDKError(ErrorCode[_0x1fde38(0x192)],_0x1fde38(0x185));if(_0x1c5415)return await loadJSON(_0x1c5415,![]);if(_0x3f547e)return await loadJSON(_0x3f547e,!![]);return undefined;}
@@ -1 +1 @@
1
- function a216_0x3a16(){const _0x59bf79=['25tuGJGx','60664pPuRQj','.cache/tdx','52147LZYXDf','Cache\x20key\x20\x22','cwd','\x22\x20already\x20registered\x20by\x20\x22','315ipvtOd','clear','10722eerInh','trim','\x22,\x20cannot\x20register\x20for\x20\x22','553398CaSlYw','stringify','22wxgnLI','172460DdtmjO','root','utf-8','get','297zWnGdx','4589952wIlgKY','set','84xBMCVr','2289188sMziJc'];a216_0x3a16=function(){return _0x59bf79;};return a216_0x3a16();}const a216_0x63d457=a216_0x5953;(function(_0x272c69,_0x336055){const _0x299cae=a216_0x5953,_0x44af72=_0x272c69();while(!![]){try{const _0x29ddea=parseInt(_0x299cae(0x149))/0x1*(parseInt(_0x299cae(0x154))/0x2)+-parseInt(_0x299cae(0x14f))/0x3*(parseInt(_0x299cae(0x144))/0x4)+-parseInt(_0x299cae(0x146))/0x5*(parseInt(_0x299cae(0x152))/0x6)+-parseInt(_0x299cae(0x14d))/0x7*(parseInt(_0x299cae(0x147))/0x8)+-parseInt(_0x299cae(0x141))/0x9*(-parseInt(_0x299cae(0x13d))/0xa)+-parseInt(_0x299cae(0x145))/0xb+parseInt(_0x299cae(0x142))/0xc;if(_0x29ddea===_0x336055)break;else _0x44af72['push'](_0x44af72['shift']());}catch(_0x3497cf){_0x44af72['push'](_0x44af72['shift']());}}}(a216_0x3a16,0x6b575));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x63d457(0x148),registry=new Map();export function registerCacheKey(_0x14e6f4,_0x86a554){const _0x2cea49=a216_0x63d457,_0x499356=registry[_0x2cea49(0x140)](_0x14e6f4);if(_0x499356&&_0x499356!==_0x86a554)throw new Error(_0x2cea49(0x14a)+_0x14e6f4+_0x2cea49(0x14c)+_0x499356+_0x2cea49(0x151)+_0x86a554+'\x22');registry[_0x2cea49(0x143)](_0x14e6f4,_0x86a554);}export function getCacheDir(){const _0x1db684=a216_0x63d457,_0x2f15ab=process[_0x1db684(0x14b)](),_0x4f7a30=_0x2f15ab===parse(_0x2f15ab)[_0x1db684(0x13e)]?homedir():_0x2f15ab;return join(_0x4f7a30,LOCAL_CACHE_DIR);}export function getCachePath(_0x14d653){return join(getCacheDir(),_0x14d653);}function ensureCacheDir(){const _0x21f77e=getCacheDir();!existsSync(_0x21f77e)&&mkdirSync(_0x21f77e,{'recursive':!![]});}function readCacheJson(_0x495709){const _0x32db56=getCachePath(_0x495709);if(!existsSync(_0x32db56))return undefined;try{const _0x2f5089=readFileSync(_0x32db56,'utf-8');return JSON['parse'](_0x2f5089);}catch{return undefined;}}function writeCacheJson(_0x175013,_0x525a79){const _0xe4d25a=a216_0x63d457;ensureCacheDir(),writeFileSync(getCachePath(_0x175013),JSON[_0xe4d25a(0x153)](_0x525a79,null,0x2),_0xe4d25a(0x13f));}function readCacheText(_0x2e047e){const _0x2c9b76=a216_0x63d457,_0x2541c8=getCachePath(_0x2e047e);if(!existsSync(_0x2541c8))return undefined;try{return readFileSync(_0x2541c8,_0x2c9b76(0x13f));}catch{return undefined;}}function writeCacheText(_0x5cfaab,_0x11b174){ensureCacheDir(),writeFileSync(getCachePath(_0x5cfaab),_0x11b174,'utf-8');}function clearCache(_0x5449f0){const _0x126216=getCachePath(_0x5449f0);if(existsSync(_0x126216))try{unlinkSync(_0x126216);}catch{}}function cacheExists(_0x3488e3){return existsSync(getCachePath(_0x3488e3));}export function createCache(_0x33be7e,_0x4bbc3b){return registerCacheKey(_0x33be7e,_0x4bbc3b),{'read':()=>readCacheJson(_0x33be7e),'write':_0x5d75cd=>writeCacheJson(_0x33be7e,_0x5d75cd),'clear':()=>clearCache(_0x33be7e),'exists':()=>cacheExists(_0x33be7e),'path':()=>getCachePath(_0x33be7e)};}function a216_0x5953(_0x599403,_0x2fe92f){_0x599403=_0x599403-0x13d;const _0x3a1619=a216_0x3a16();let _0x5953f3=_0x3a1619[_0x599403];return _0x5953f3;}export function createTextCache(_0x3a71b0,_0x5160cc){const _0x213b99=a216_0x63d457;return registerCacheKey(_0x3a71b0,_0x5160cc),{'read':()=>readCacheText(_0x3a71b0)?.[_0x213b99(0x150)]()||undefined,'write':_0x427183=>writeCacheText(_0x3a71b0,_0x427183),'clear':()=>clearCache(_0x3a71b0),'exists':()=>cacheExists(_0x3a71b0),'path':()=>getCachePath(_0x3a71b0)};}export function clearRegistry(){const _0x32295b=a216_0x63d457;registry[_0x32295b(0x14e)]();}
1
+ const a216_0x3e0c25=a216_0x2d92;function a216_0x2d92(_0x5e6c23,_0x4dd30e){_0x5e6c23=_0x5e6c23-0x191;const _0x101d67=a216_0x101d();let _0x2d928b=_0x101d67[_0x5e6c23];return _0x2d928b;}(function(_0x1d397f,_0x56a795){const _0x37381a=a216_0x2d92,_0x1aec90=_0x1d397f();while(!![]){try{const _0xbe71c3=-parseInt(_0x37381a(0x19a))/0x1+-parseInt(_0x37381a(0x1a3))/0x2*(parseInt(_0x37381a(0x19c))/0x3)+-parseInt(_0x37381a(0x1a0))/0x4*(parseInt(_0x37381a(0x1a2))/0x5)+parseInt(_0x37381a(0x193))/0x6*(-parseInt(_0x37381a(0x195))/0x7)+parseInt(_0x37381a(0x1a5))/0x8*(parseInt(_0x37381a(0x19d))/0x9)+parseInt(_0x37381a(0x1a4))/0xa*(parseInt(_0x37381a(0x191))/0xb)+-parseInt(_0x37381a(0x1a6))/0xc*(-parseInt(_0x37381a(0x192))/0xd);if(_0xbe71c3===_0x56a795)break;else _0x1aec90['push'](_0x1aec90['shift']());}catch(_0x449eae){_0x1aec90['push'](_0x1aec90['shift']());}}}(a216_0x101d,0x7af7e));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x3e0c25(0x196),registry=new Map();export function registerCacheKey(_0x20e9fe,_0x4f8d4f){const _0x562f8a=a216_0x3e0c25,_0x4dabf2=registry['get'](_0x20e9fe);if(_0x4dabf2&&_0x4dabf2!==_0x4f8d4f)throw new Error(_0x562f8a(0x1a1)+_0x20e9fe+_0x562f8a(0x19f)+_0x4dabf2+_0x562f8a(0x198)+_0x4f8d4f+'\x22');registry[_0x562f8a(0x197)](_0x20e9fe,_0x4f8d4f);}export function getCacheDir(){const _0x1ceaf2=a216_0x3e0c25,_0x4b1652=process[_0x1ceaf2(0x194)](),_0x2054fe=_0x4b1652===parse(_0x4b1652)[_0x1ceaf2(0x19b)]?homedir():_0x4b1652;return join(_0x2054fe,LOCAL_CACHE_DIR);}function a216_0x101d(){const _0x4c1d43=['280394dEGfNE','310360wRfcru','8vxVAcY','204kevnoi','220SeAPLR','955786PRGFOP','4908786jCrUva','cwd','7cHpQOv','.cache/tdx','set','\x22,\x20cannot\x20register\x20for\x20\x22','parse','573055lNlqfz','root','3zyvnfs','5790807TAFRul','utf-8','\x22\x20already\x20registered\x20by\x20\x22','638608LDWfIs','Cache\x20key\x20\x22','15ziQleL'];a216_0x101d=function(){return _0x4c1d43;};return a216_0x101d();}export function getCachePath(_0x29476b){return join(getCacheDir(),_0x29476b);}function ensureCacheDir(){const _0x1d7fae=getCacheDir();!existsSync(_0x1d7fae)&&mkdirSync(_0x1d7fae,{'recursive':!![]});}function readCacheJson(_0x65886a){const _0x4f8b27=a216_0x3e0c25,_0x110bab=getCachePath(_0x65886a);if(!existsSync(_0x110bab))return undefined;try{const _0x3314f8=readFileSync(_0x110bab,_0x4f8b27(0x19e));return JSON[_0x4f8b27(0x199)](_0x3314f8);}catch{return undefined;}}function writeCacheJson(_0x3f0159,_0x279242){const _0xe9e12b=a216_0x3e0c25;ensureCacheDir(),writeFileSync(getCachePath(_0x3f0159),JSON['stringify'](_0x279242,null,0x2),_0xe9e12b(0x19e));}function readCacheText(_0x53e2df){const _0x3e1b9d=a216_0x3e0c25,_0x2a9eb6=getCachePath(_0x53e2df);if(!existsSync(_0x2a9eb6))return undefined;try{return readFileSync(_0x2a9eb6,_0x3e1b9d(0x19e));}catch{return undefined;}}function writeCacheText(_0x30ca43,_0x3e7d46){const _0x582c61=a216_0x3e0c25;ensureCacheDir(),writeFileSync(getCachePath(_0x30ca43),_0x3e7d46,_0x582c61(0x19e));}function clearCache(_0x3b7b27){const _0x25b6ab=getCachePath(_0x3b7b27);if(existsSync(_0x25b6ab))try{unlinkSync(_0x25b6ab);}catch{}}function cacheExists(_0x24bb51){return existsSync(getCachePath(_0x24bb51));}export function createCache(_0x243078,_0x1b6feb){return registerCacheKey(_0x243078,_0x1b6feb),{'read':()=>readCacheJson(_0x243078),'write':_0x5854d5=>writeCacheJson(_0x243078,_0x5854d5),'clear':()=>clearCache(_0x243078),'exists':()=>cacheExists(_0x243078),'path':()=>getCachePath(_0x243078)};}export function createTextCache(_0x35d882,_0xb1eb5){return registerCacheKey(_0x35d882,_0xb1eb5),{'read':()=>readCacheText(_0x35d882)?.['trim']()||undefined,'write':_0x14c5a3=>writeCacheText(_0x35d882,_0x14c5a3),'clear':()=>clearCache(_0x35d882),'exists':()=>cacheExists(_0x35d882),'path':()=>getCachePath(_0x35d882)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a217_0x5a1024=a217_0x3197;(function(_0x2b02b4,_0x3f9679){const _0x1c3744=a217_0x3197,_0x219319=_0x2b02b4();while(!![]){try{const _0xa9a468=parseInt(_0x1c3744(0x101))/0x1+-parseInt(_0x1c3744(0x104))/0x2+parseInt(_0x1c3744(0x10a))/0x3*(parseInt(_0x1c3744(0xef))/0x4)+parseInt(_0x1c3744(0xf7))/0x5*(-parseInt(_0x1c3744(0x100))/0x6)+parseInt(_0x1c3744(0xf2))/0x7*(parseInt(_0x1c3744(0xf0))/0x8)+-parseInt(_0x1c3744(0x108))/0x9*(parseInt(_0x1c3744(0xfb))/0xa)+parseInt(_0x1c3744(0x107))/0xb*(parseInt(_0x1c3744(0xf6))/0xc);if(_0xa9a468===_0x3f9679)break;else _0x219319['push'](_0x219319['shift']());}catch(_0x2404cb){_0x219319['push'](_0x219319['shift']());}}}(a217_0x1e64,0x3907f));function a217_0x3197(_0x49d208,_0x32d161){_0x49d208=_0x49d208-0xef;const _0x1e647c=a217_0x1e64();let _0x31971f=_0x1e647c[_0x49d208];return _0x31971f;}import a217_0x8c408 from'chalk';function a217_0x1e64(){const _0x39504a=['blue','11NCeuHQ','9izMIzS','colorLevel','3PbTOji','default','611316ksWISQ','232jyQcxp','yellow','50582JNbHTb','cyan','Chalk','level','8136384dnbaki','5ndyYuq',']\x20[','green','chalk','4322810gGlRlE','message','format','colors','component','1445802oUdeKj','304150uoTuLK','red','INFO','875436rmEJAn','WARN'];a217_0x1e64=function(){return _0x39504a;};return a217_0x1e64();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x8c408,ChalkClass=chalkModule[a217_0x5a1024(0xf4)]||chalkModule[a217_0x5a1024(0x10b)]?.[a217_0x5a1024(0xf4)];export class DefaultLogFormatter{[a217_0x5a1024(0xfe)];['chalk'];constructor(_0x861b2d={}){const _0x5923dc=a217_0x5a1024;this[_0x5923dc(0xfe)]=_0x861b2d['colors']??![],this[_0x5923dc(0xfa)]=_0x861b2d['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x8c408;}[a217_0x5a1024(0xfd)](_0xc072a9){const _0x518373=a217_0x5a1024,_0x366372=formatTimestamp(_0xc072a9['timestamp']),_0x1cc4af=logLevelToString(_0xc072a9[_0x518373(0xf5)]);if(!this[_0x518373(0xfe)])return _0x366372+'\x20['+_0x1cc4af+_0x518373(0xf8)+_0xc072a9[_0x518373(0xff)]+']\x20'+_0xc072a9[_0x518373(0xfc)];const _0x52ebe6=this[_0x518373(0xfa)]['dim'](_0x366372),_0x28c8e0=this[_0x518373(0x109)](_0x1cc4af,_0xc072a9[_0x518373(0xf5)]),_0x57e23b=this[_0x518373(0xfa)][_0x518373(0x106)]('['+_0xc072a9[_0x518373(0xff)]+']');return _0x52ebe6+'\x20'+_0x28c8e0+'\x20'+_0x57e23b+'\x20'+_0xc072a9[_0x518373(0xfc)];}[a217_0x5a1024(0x109)](_0x20f48f,_0x4835f9){const _0x5b9ade=a217_0x5a1024;switch(_0x4835f9){case LogLevel['TRACE']:return this[_0x5b9ade(0xfa)]['gray']('['+_0x20f48f+']');case LogLevel['DEBUG']:return this[_0x5b9ade(0xfa)][_0x5b9ade(0xf9)]('['+_0x20f48f+']');case LogLevel[_0x5b9ade(0x103)]:return this[_0x5b9ade(0xfa)][_0x5b9ade(0xf3)]('['+_0x20f48f+']');case LogLevel[_0x5b9ade(0x105)]:return this[_0x5b9ade(0xfa)][_0x5b9ade(0xf1)]('['+_0x20f48f+']');case LogLevel['ERROR']:return this['chalk'][_0x5b9ade(0x102)]('['+_0x20f48f+']');default:return'['+_0x20f48f+']';}}}
1
+ const a217_0x2d2437=a217_0x5c24;(function(_0x5cdcfc,_0x440ade){const _0x3407c3=a217_0x5c24,_0xb3a3b0=_0x5cdcfc();while(!![]){try{const _0x1a9270=parseInt(_0x3407c3(0x7a))/0x1+parseInt(_0x3407c3(0x79))/0x2+-parseInt(_0x3407c3(0x6a))/0x3*(parseInt(_0x3407c3(0x6d))/0x4)+parseInt(_0x3407c3(0x7c))/0x5*(-parseInt(_0x3407c3(0x64))/0x6)+-parseInt(_0x3407c3(0x72))/0x7*(-parseInt(_0x3407c3(0x73))/0x8)+parseInt(_0x3407c3(0x76))/0x9+-parseInt(_0x3407c3(0x69))/0xa;if(_0x1a9270===_0x440ade)break;else _0xb3a3b0['push'](_0xb3a3b0['shift']());}catch(_0x30089b){_0xb3a3b0['push'](_0xb3a3b0['shift']());}}}(a217_0x5ddc,0x87fad));import a217_0xe89a5b from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0xe89a5b,ChalkClass=chalkModule[a217_0x2d2437(0x71)]||chalkModule['default']?.[a217_0x2d2437(0x71)];function a217_0x5c24(_0x56c210,_0x4f5bc3){_0x56c210=_0x56c210-0x64;const _0x5ddc0a=a217_0x5ddc();let _0x5c2467=_0x5ddc0a[_0x56c210];return _0x5c2467;}function a217_0x5ddc(){const _0xd7acef=['859085zhEcaa','INFO','format',']\x20[','message','18xHRRrF','component','level','TRACE','DEBUG','4221000htaNjw','2364eczUeW','red','green','1844ibVTXX','timestamp','cyan','colorLevel','Chalk','7zudVfL','2557544fKiWnO','WARN','blue','8279604woFdFu','colors','chalk','506134xJcuBB','365076ngoZsU','yellow'];a217_0x5ddc=function(){return _0xd7acef;};return a217_0x5ddc();}export class DefaultLogFormatter{[a217_0x2d2437(0x77)];[a217_0x2d2437(0x78)];constructor(_0x5ac064={}){const _0x196230=a217_0x2d2437;this[_0x196230(0x77)]=_0x5ac064['colors']??![],this[_0x196230(0x78)]=_0x5ac064[_0x196230(0x77)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0xe89a5b;}[a217_0x2d2437(0x7e)](_0x3cd643){const _0x24a210=a217_0x2d2437,_0x53e90e=formatTimestamp(_0x3cd643[_0x24a210(0x6e)]),_0x33ee45=logLevelToString(_0x3cd643[_0x24a210(0x66)]);if(!this[_0x24a210(0x77)])return _0x53e90e+'\x20['+_0x33ee45+_0x24a210(0x7f)+_0x3cd643['component']+']\x20'+_0x3cd643['message'];const _0x2f3f37=this[_0x24a210(0x78)]['dim'](_0x53e90e),_0x766225=this['colorLevel'](_0x33ee45,_0x3cd643[_0x24a210(0x66)]),_0x344716=this['chalk'][_0x24a210(0x75)]('['+_0x3cd643[_0x24a210(0x65)]+']');return _0x2f3f37+'\x20'+_0x766225+'\x20'+_0x344716+'\x20'+_0x3cd643[_0x24a210(0x80)];}[a217_0x2d2437(0x70)](_0x4ecd5c,_0x2f2ddb){const _0x3fe3d1=a217_0x2d2437;switch(_0x2f2ddb){case LogLevel[_0x3fe3d1(0x67)]:return this['chalk']['gray']('['+_0x4ecd5c+']');case LogLevel[_0x3fe3d1(0x68)]:return this[_0x3fe3d1(0x78)][_0x3fe3d1(0x6c)]('['+_0x4ecd5c+']');case LogLevel[_0x3fe3d1(0x7d)]:return this[_0x3fe3d1(0x78)][_0x3fe3d1(0x6f)]('['+_0x4ecd5c+']');case LogLevel[_0x3fe3d1(0x74)]:return this[_0x3fe3d1(0x78)][_0x3fe3d1(0x7b)]('['+_0x4ecd5c+']');case LogLevel['ERROR']:return this[_0x3fe3d1(0x78)][_0x3fe3d1(0x6b)]('['+_0x4ecd5c+']');default:return'['+_0x4ecd5c+']';}}}
@@ -1 +1 @@
1
- (function(_0x41a31b,_0x405cd3){var _0x45dbcf=a218_0x44e8,_0x47745c=_0x41a31b();while(!![]){try{var _0x2e4045=parseInt(_0x45dbcf(0x1be))/0x1+parseInt(_0x45dbcf(0x1ba))/0x2*(-parseInt(_0x45dbcf(0x1bf))/0x3)+-parseInt(_0x45dbcf(0x1b8))/0x4*(-parseInt(_0x45dbcf(0x1c2))/0x5)+parseInt(_0x45dbcf(0x1c0))/0x6*(-parseInt(_0x45dbcf(0x1c3))/0x7)+-parseInt(_0x45dbcf(0x1c1))/0x8*(parseInt(_0x45dbcf(0x1b9))/0x9)+-parseInt(_0x45dbcf(0x1bd))/0xa*(parseInt(_0x45dbcf(0x1bc))/0xb)+parseInt(_0x45dbcf(0x1bb))/0xc;if(_0x2e4045===_0x405cd3)break;else _0x47745c['push'](_0x47745c['shift']());}catch(_0x121a7c){_0x47745c['push'](_0x47745c['shift']());}}}(a218_0x4133,0x50f6c));export{DefaultLogFormatter}from'./default-formatter.js';function a218_0x44e8(_0x30d5ea,_0x238aea){_0x30d5ea=_0x30d5ea-0x1b8;var _0x4133cf=a218_0x4133();var _0x44e8c0=_0x4133cf[_0x30d5ea];return _0x44e8c0;}function a218_0x4133(){var _0x3d971e=['3368vmLelg','21695TtSfzL','63287IlOOIP','88aJYxLq','2799bObuSG','9718egoWkI','13556136gtlKhq','5687jnwMsm','6820JoiqIB','506500imalos','270HKSUxV','318gAfKnT'];a218_0x4133=function(){return _0x3d971e;};return a218_0x4133();}
1
+ (function(_0x42f46a,_0x6ce412){var _0x433e89=a218_0x2057,_0x3b094d=_0x42f46a();while(!![]){try{var _0x500bdb=parseInt(_0x433e89(0x1d6))/0x1*(parseInt(_0x433e89(0x1d9))/0x2)+-parseInt(_0x433e89(0x1d2))/0x3+parseInt(_0x433e89(0x1d4))/0x4*(-parseInt(_0x433e89(0x1d5))/0x5)+-parseInt(_0x433e89(0x1d7))/0x6+-parseInt(_0x433e89(0x1da))/0x7*(-parseInt(_0x433e89(0x1db))/0x8)+-parseInt(_0x433e89(0x1d8))/0x9+parseInt(_0x433e89(0x1d3))/0xa;if(_0x500bdb===_0x6ce412)break;else _0x3b094d['push'](_0x3b094d['shift']());}catch(_0x331d61){_0x3b094d['push'](_0x3b094d['shift']());}}}(a218_0x11d4,0x2d6e2));function a218_0x11d4(){var _0x5b53f3=['594144NyQxUw','2yCOvSm','877709cuzmLd','16ShXhkE','974946sTfgdk','5045410eXpPJi','4ZVXOYv','286155GvehVU','168553IouYWP','1737342JAdNua'];a218_0x11d4=function(){return _0x5b53f3;};return a218_0x11d4();}function a218_0x2057(_0x358580,_0x4e953d){_0x358580=_0x358580-0x1d2;var _0x11d4bc=a218_0x11d4();var _0x205705=_0x11d4bc[_0x358580];return _0x205705;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a219_0x325aa6=a219_0x346e;(function(_0x524fac,_0x1261cd){const _0x496603=a219_0x346e,_0x2fb9bf=_0x524fac();while(!![]){try{const _0x330354=-parseInt(_0x496603(0xe7))/0x1+parseInt(_0x496603(0xe3))/0x2+-parseInt(_0x496603(0xe9))/0x3+-parseInt(_0x496603(0xe1))/0x4+-parseInt(_0x496603(0xe5))/0x5*(parseInt(_0x496603(0xe4))/0x6)+parseInt(_0x496603(0xde))/0x7+parseInt(_0x496603(0xe8))/0x8;if(_0x330354===_0x1261cd)break;else _0x2fb9bf['push'](_0x2fb9bf['shift']());}catch(_0xfcb689){_0x2fb9bf['push'](_0x2fb9bf['shift']());}}}(a219_0xa8e1,0x1e714));import{LogLevel as a219_0x60a57e}from'../types.js';function a219_0x346e(_0x377325,_0x3c43f8){_0x377325=_0x377325-0xdd;const _0xa8e188=a219_0xa8e1();let _0x346ea2=_0xa8e188[_0x377325];return _0x346ea2;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x325aa6(0xed)];[a219_0x325aa6(0xea)];[a219_0x325aa6(0xdf)];constructor(_0x24188b={}){const _0x3dcd1b=a219_0x325aa6;this[_0x3dcd1b(0xed)]=_0x24188b['minLevel']??a219_0x60a57e[_0x3dcd1b(0xe6)],this[_0x3dcd1b(0xea)]=_0x24188b['useStderr']??!![],this[_0x3dcd1b(0xdf)]=new DefaultLogFormatter({'colors':_0x24188b[_0x3dcd1b(0xdd)]??!![]});}[a219_0x325aa6(0xeb)](_0x3a7a6f){const _0xc5eaee=a219_0x325aa6;if(_0x3a7a6f[_0xc5eaee(0xec)]<this['minLevel'])return;const _0x3b5f37=this['formatter'][_0xc5eaee(0xe2)](_0x3a7a6f);this[_0xc5eaee(0xea)]&&_0x3a7a6f[_0xc5eaee(0xec)]>=a219_0x60a57e[_0xc5eaee(0xe6)]?console[_0xc5eaee(0xe0)](_0x3b5f37):console['log'](_0x3b5f37);}}function a219_0xa8e1(){const _0xe6973f=['format','94950FRXJbh','12ACARAn','472715upIGer','WARN','167909EDhlAX','5360104KnvVxO','723159QyXyLM','useStderr','handle','level','minLevel','colors','834309TtdJKE','formatter','error','455740MSRWUe'];a219_0xa8e1=function(){return _0xe6973f;};return a219_0xa8e1();}
1
+ const a219_0x2873d2=a219_0x3081;function a219_0x4e13(){const _0x47ca85=['WARN','498jzWJmQ','error','colors','minLevel','2760cTlhKv','462130FPQHmq','1rEpzdW','5567016eATMDb','format','100050hhluXW','69615UDMqok','13235416unLnSt','handle','level','useStderr','13407786kSUpwf','274224yYbbAC','formatter','log'];a219_0x4e13=function(){return _0x47ca85;};return a219_0x4e13();}(function(_0x26e9d9,_0x2bd1fe){const _0x46ddbc=a219_0x3081,_0x50c27a=_0x26e9d9();while(!![]){try{const _0x14a863=-parseInt(_0x46ddbc(0x1ec))/0x1*(-parseInt(_0x46ddbc(0x1eb))/0x2)+parseInt(_0x46ddbc(0x1f6))/0x3+parseInt(_0x46ddbc(0x1ed))/0x4+-parseInt(_0x46ddbc(0x1ef))/0x5*(-parseInt(_0x46ddbc(0x1fa))/0x6)+-parseInt(_0x46ddbc(0x1f5))/0x7+parseInt(_0x46ddbc(0x1f1))/0x8+parseInt(_0x46ddbc(0x1f0))/0x9*(-parseInt(_0x46ddbc(0x1fe))/0xa);if(_0x14a863===_0x2bd1fe)break;else _0x50c27a['push'](_0x50c27a['shift']());}catch(_0x455b85){_0x50c27a['push'](_0x50c27a['shift']());}}}(a219_0x4e13,0xef11a));import{LogLevel as a219_0xea4187}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a219_0x3081(_0x52d4fd,_0x305e8e){_0x52d4fd=_0x52d4fd-0x1eb;const _0x4e13f0=a219_0x4e13();let _0x3081f8=_0x4e13f0[_0x52d4fd];return _0x3081f8;}export class ConsoleHandler{[a219_0x2873d2(0x1fd)];[a219_0x2873d2(0x1f4)];[a219_0x2873d2(0x1f7)];constructor(_0x3fe496={}){const _0x5816fa=a219_0x2873d2;this['minLevel']=_0x3fe496[_0x5816fa(0x1fd)]??a219_0xea4187[_0x5816fa(0x1f9)],this[_0x5816fa(0x1f4)]=_0x3fe496['useStderr']??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x3fe496[_0x5816fa(0x1fc)]??!![]});}[a219_0x2873d2(0x1f2)](_0x2fb557){const _0x424c52=a219_0x2873d2;if(_0x2fb557[_0x424c52(0x1f3)]<this[_0x424c52(0x1fd)])return;const _0x1b0ab5=this[_0x424c52(0x1f7)][_0x424c52(0x1ee)](_0x2fb557);this[_0x424c52(0x1f4)]&&_0x2fb557[_0x424c52(0x1f3)]>=a219_0xea4187['WARN']?console[_0x424c52(0x1fb)](_0x1b0ab5):console[_0x424c52(0x1f8)](_0x1b0ab5);}}
@@ -1 +1 @@
1
- const a220_0x189b47=a220_0x1a2b;(function(_0x292e47,_0xbd9fe3){const _0x541119=a220_0x1a2b,_0x2b8134=_0x292e47();while(!![]){try{const _0xb9491f=parseInt(_0x541119(0x1a3))/0x1+-parseInt(_0x541119(0x186))/0x2*(parseInt(_0x541119(0x195))/0x3)+parseInt(_0x541119(0x194))/0x4*(parseInt(_0x541119(0x188))/0x5)+parseInt(_0x541119(0x18c))/0x6+parseInt(_0x541119(0x1a0))/0x7*(parseInt(_0x541119(0x18d))/0x8)+-parseInt(_0x541119(0x187))/0x9+parseInt(_0x541119(0x196))/0xa;if(_0xb9491f===_0xbd9fe3)break;else _0x2b8134['push'](_0x2b8134['shift']());}catch(_0x315335){_0x2b8134['push'](_0x2b8134['shift']());}}}(a220_0x277d,0x78358));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';function a220_0x277d(){const _0x2477f7=['test','filePath','1250468VtyQed','7707447PjzRdB','2805pyMaqB','filter','logPath','logFileName','1354308lOqzrU','38752RneaCV','logDir','end','rotate','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','replace','includes','1724yrDhpb','3WYcFLW','5866150peSTRn','rotateOldLogs','logBaseName','tdx.log','init','getLogPath','mtime','toISOString','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','write','1162DfMfsO','error','.log','115765nblblo','logStream','handle','message','Warning:\x20Error\x20writing\x20to\x20','split'];a220_0x277d=function(){return _0x2477f7;};return a220_0x277d();}function a220_0x1a2b(_0x473e16,_0x180af8){_0x473e16=_0x473e16-0x186;const _0x277dae=a220_0x277d();let _0x1a2bc8=_0x277dae[_0x473e16];return _0x1a2bc8;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0x189b47(0x18a)];[a220_0x189b47(0x18e)];[a220_0x189b47(0x18b)];['logBaseName'];[a220_0x189b47(0x1a4)]=null;[a220_0x189b47(0x190)];constructor(_0x800316={}){const _0x317c72=a220_0x189b47;this[_0x317c72(0x18a)]=_0x800316[_0x317c72(0x1aa)]??join(getGlobalCacheDir(),'logs',_0x317c72(0x199)),this[_0x317c72(0x18e)]=dirname(this[_0x317c72(0x18a)]),this[_0x317c72(0x18b)]=basename(this[_0x317c72(0x18a)]),this[_0x317c72(0x198)]=this[_0x317c72(0x18b)][_0x317c72(0x192)](/\.log$/,''),this['rotate']=_0x800316[_0x317c72(0x190)]??!![];}async[a220_0x189b47(0x19a)](){const _0x37dd85=a220_0x189b47;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x37dd85(0x190)]&&await this[_0x37dd85(0x197)](),this[_0x37dd85(0x1a4)]=createWriteStream(this[_0x37dd85(0x18a)],{'flags':'a'}),this[_0x37dd85(0x1a4)]['on'](_0x37dd85(0x1a1),_0x4b6f8a=>{const _0xb0b2d9=_0x37dd85;console[_0xb0b2d9(0x1a1)](_0xb0b2d9(0x1a7)+this[_0xb0b2d9(0x18b)]+':',_0x4b6f8a[_0xb0b2d9(0x1a6)]);});}catch(_0x4d8e73){console[_0x37dd85(0x1a1)](_0x37dd85(0x19e),_0x4d8e73);}}[a220_0x189b47(0x1a5)](_0x1bd0b){const _0xee0b13=a220_0x189b47;if(!this['logStream'])return;const _0x3fd2f8=Logger['format'](_0x1bd0b);this['logStream'][_0xee0b13(0x19f)](_0x3fd2f8+'\x0a');}async['close'](){return new Promise(_0x10ad47=>{const _0x578dae=a220_0x1a2b;this[_0x578dae(0x1a4)]?this['logStream'][_0x578dae(0x18f)](()=>{const _0x14166d=_0x578dae;this[_0x14166d(0x1a4)]=null,_0x10ad47();}):_0x10ad47();});}[a220_0x189b47(0x19b)](){const _0x4e7966=a220_0x189b47;return this[_0x4e7966(0x18a)];}async[a220_0x189b47(0x197)](){const _0x546074=a220_0x189b47;try{const _0x15ad0b=await readdir(this['logDir']),_0x590d60=new Date()[_0x546074(0x19d)]()[_0x546074(0x1a8)]('T')[0x0];if(_0x15ad0b[_0x546074(0x193)](this[_0x546074(0x18b)])){const _0x5ae356=join(this[_0x546074(0x18e)],this[_0x546074(0x18b)]),_0x3107bc=await stat(_0x5ae356),_0xdb80ea=new Date(_0x3107bc[_0x546074(0x19c)])[_0x546074(0x19d)]()['split']('T')[0x0];if(_0xdb80ea<_0x590d60){const _0x25d092=join(this['logDir'],this[_0x546074(0x198)]+'-'+_0xdb80ea+_0x546074(0x1a2));await rename(_0x5ae356,_0x25d092);}}const _0x195f94=await readdir(this['logDir']),_0x229a50=this[_0x546074(0x198)][_0x546074(0x192)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x29feae=new RegExp('^'+_0x229a50+_0x546074(0x191)),_0x5b04a1=_0x195f94[_0x546074(0x189)](_0x32fb52=>_0x29feae[_0x546074(0x1a9)](_0x32fb52));for(const _0x180767 of _0x5b04a1){const _0x40b846=join(this[_0x546074(0x18e)],_0x180767),_0x4795fb=join(this[_0x546074(0x18e)],_0x180767+'.gz');try{await pipeline(createReadStream(_0x40b846),createGzip(),createWriteStream(_0x4795fb)),await unlink(_0x40b846);}catch(_0x65fb4a){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x180767+':',_0x65fb4a);}}}catch{}}}
1
+ const a220_0x2d2ada=a220_0x6adc;(function(_0x238d46,_0x4dd01c){const _0xd49830=a220_0x6adc,_0x47f8d7=_0x238d46();while(!![]){try{const _0x1f5d12=parseInt(_0xd49830(0x1c1))/0x1*(parseInt(_0xd49830(0x1e5))/0x2)+-parseInt(_0xd49830(0x1c9))/0x3+parseInt(_0xd49830(0x1ca))/0x4*(parseInt(_0xd49830(0x1e0))/0x5)+-parseInt(_0xd49830(0x1db))/0x6*(-parseInt(_0xd49830(0x1cd))/0x7)+-parseInt(_0xd49830(0x1c3))/0x8+parseInt(_0xd49830(0x1cf))/0x9*(parseInt(_0xd49830(0x1e3))/0xa)+-parseInt(_0xd49830(0x1ce))/0xb;if(_0x1f5d12===_0x4dd01c)break;else _0x47f8d7['push'](_0x47f8d7['shift']());}catch(_0x12baad){_0x47f8d7['push'](_0x47f8d7['shift']());}}}(a220_0x3415,0x77fe3));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a220_0x3415(){const _0x3360ae=['853570NFBwRu','mtime','22522raccPL','format','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','87JWLGvH','logPath','336328LTBdhM','logFileName','handle','error','split','Warning:\x20Error\x20writing\x20to\x20','41817PLyBhR','232koqbGw','rotate','filePath','1084867CzdhhK','18113964fmJWjp','45yUztiP','tdx.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logBaseName','rotateOldLogs','init','logStream','filter','logDir','.log','message','includes','6LjmBna','getLogPath','logs','toISOString','Warning:\x20Failed\x20to\x20compress\x20','54545VlLBxB','replace','close'];a220_0x3415=function(){return _0x3360ae;};return a220_0x3415();}function a220_0x6adc(_0x2fbad6,_0xc61281){_0x2fbad6=_0x2fbad6-0x1bf;const _0x3415ee=a220_0x3415();let _0x6adcf0=_0x3415ee[_0x2fbad6];return _0x6adcf0;}export class FileHandler{[a220_0x2d2ada(0x1c2)];['logDir'];['logFileName'];[a220_0x2d2ada(0x1d2)];['logStream']=null;[a220_0x2d2ada(0x1cb)];constructor(_0xbfe937={}){const _0x31b1d4=a220_0x2d2ada;this['logPath']=_0xbfe937[_0x31b1d4(0x1cc)]??join(getGlobalCacheDir(),_0x31b1d4(0x1dd),_0x31b1d4(0x1d0)),this[_0x31b1d4(0x1d7)]=dirname(this['logPath']),this[_0x31b1d4(0x1c4)]=basename(this['logPath']),this[_0x31b1d4(0x1d2)]=this[_0x31b1d4(0x1c4)][_0x31b1d4(0x1e1)](/\.log$/,''),this['rotate']=_0xbfe937[_0x31b1d4(0x1cb)]??!![];}async[a220_0x2d2ada(0x1d4)](){const _0x3c638f=a220_0x2d2ada;try{await mkdir(this[_0x3c638f(0x1d7)],{'recursive':!![]}),this[_0x3c638f(0x1cb)]&&await this[_0x3c638f(0x1d3)](),this[_0x3c638f(0x1d5)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3c638f(0x1d5)]['on'](_0x3c638f(0x1c6),_0x4f6e89=>{const _0x5dd7c6=_0x3c638f;console[_0x5dd7c6(0x1c6)](_0x5dd7c6(0x1c8)+this[_0x5dd7c6(0x1c4)]+':',_0x4f6e89[_0x5dd7c6(0x1d9)]);});}catch(_0x55a16e){console[_0x3c638f(0x1c6)](_0x3c638f(0x1d1),_0x55a16e);}}[a220_0x2d2ada(0x1c5)](_0x23b0fd){const _0x5b76ad=a220_0x2d2ada;if(!this[_0x5b76ad(0x1d5)])return;const _0x521c0d=Logger[_0x5b76ad(0x1bf)](_0x23b0fd);this[_0x5b76ad(0x1d5)]['write'](_0x521c0d+'\x0a');}async[a220_0x2d2ada(0x1e2)](){return new Promise(_0x44fc99=>{const _0x5204f4=a220_0x6adc;this[_0x5204f4(0x1d5)]?this['logStream']['end'](()=>{const _0x362167=_0x5204f4;this[_0x362167(0x1d5)]=null,_0x44fc99();}):_0x44fc99();});}[a220_0x2d2ada(0x1dc)](){const _0x2fbc52=a220_0x2d2ada;return this[_0x2fbc52(0x1c2)];}async['rotateOldLogs'](){const _0x4ddc15=a220_0x2d2ada;try{const _0x2d513c=await readdir(this[_0x4ddc15(0x1d7)]),_0x8e0b07=new Date()[_0x4ddc15(0x1de)]()[_0x4ddc15(0x1c7)]('T')[0x0];if(_0x2d513c[_0x4ddc15(0x1da)](this[_0x4ddc15(0x1c4)])){const _0x365bb4=join(this[_0x4ddc15(0x1d7)],this[_0x4ddc15(0x1c4)]),_0x6fd684=await stat(_0x365bb4),_0x3794ea=new Date(_0x6fd684[_0x4ddc15(0x1e4)])[_0x4ddc15(0x1de)]()['split']('T')[0x0];if(_0x3794ea<_0x8e0b07){const _0x11293c=join(this[_0x4ddc15(0x1d7)],this[_0x4ddc15(0x1d2)]+'-'+_0x3794ea+_0x4ddc15(0x1d8));await rename(_0x365bb4,_0x11293c);}}const _0x36b92e=await readdir(this['logDir']),_0x2c2e9b=this[_0x4ddc15(0x1d2)]['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x49f8c9=new RegExp('^'+_0x2c2e9b+_0x4ddc15(0x1c0)),_0x4acbca=_0x36b92e[_0x4ddc15(0x1d6)](_0x23c26e=>_0x49f8c9['test'](_0x23c26e));for(const _0xfd592d of _0x4acbca){const _0x6e57b5=join(this[_0x4ddc15(0x1d7)],_0xfd592d),_0x58e876=join(this[_0x4ddc15(0x1d7)],_0xfd592d+'.gz');try{await pipeline(createReadStream(_0x6e57b5),createGzip(),createWriteStream(_0x58e876)),await unlink(_0x6e57b5);}catch(_0x534226){console[_0x4ddc15(0x1c6)](_0x4ddc15(0x1df)+_0xfd592d+':',_0x534226);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x586096,_0x36e618){var _0x2c101f=a221_0x3f86,_0xee7944=_0x586096();while(!![]){try{var _0x12717b=parseInt(_0x2c101f(0x152))/0x1+parseInt(_0x2c101f(0x150))/0x2*(parseInt(_0x2c101f(0x158))/0x3)+parseInt(_0x2c101f(0x155))/0x4*(parseInt(_0x2c101f(0x157))/0x5)+parseInt(_0x2c101f(0x151))/0x6+-parseInt(_0x2c101f(0x156))/0x7*(-parseInt(_0x2c101f(0x159))/0x8)+-parseInt(_0x2c101f(0x154))/0x9*(-parseInt(_0x2c101f(0x153))/0xa)+-parseInt(_0x2c101f(0x14f))/0xb;if(_0x12717b===_0x36e618)break;else _0xee7944['push'](_0xee7944['shift']());}catch(_0x3e9a47){_0xee7944['push'](_0xee7944['shift']());}}}(a221_0x1f8d,0xd8fa9));export{FileHandler}from'./file-handler.js';function a221_0x3f86(_0x3bca57,_0x19f628){_0x3bca57=_0x3bca57-0x14f;var _0x1f8d0c=a221_0x1f8d();var _0x3f86d5=_0x1f8d0c[_0x3bca57];return _0x3f86d5;}function a221_0x1f8d(){var _0x29bda8=['23540WzkNwQ','2493qxEpwA','4tnCOuV','56sUGCOU','5087965jQNWkb','6843aMGiox','1596440gBLuBZ','56038268IKRXjf','536WPWJsA','4707240ruEYuo','1321194PynLMn'];a221_0x1f8d=function(){return _0x29bda8;};return a221_0x1f8d();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x1e4a2b,_0x597ed){var _0x1bbbe8=a221_0x37d6,_0xd01cb5=_0x1e4a2b();while(!![]){try{var _0x19a90e=-parseInt(_0x1bbbe8(0x182))/0x1+parseInt(_0x1bbbe8(0x17b))/0x2*(parseInt(_0x1bbbe8(0x17f))/0x3)+-parseInt(_0x1bbbe8(0x183))/0x4*(parseInt(_0x1bbbe8(0x17e))/0x5)+-parseInt(_0x1bbbe8(0x184))/0x6+-parseInt(_0x1bbbe8(0x180))/0x7*(-parseInt(_0x1bbbe8(0x17c))/0x8)+parseInt(_0x1bbbe8(0x17d))/0x9*(-parseInt(_0x1bbbe8(0x17a))/0xa)+parseInt(_0x1bbbe8(0x181))/0xb;if(_0x19a90e===_0x597ed)break;else _0xd01cb5['push'](_0xd01cb5['shift']());}catch(_0x3a0f1f){_0xd01cb5['push'](_0xd01cb5['shift']());}}}(a221_0x664a,0xd43c3));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a221_0x37d6(_0xde50b2,_0x1d9826){_0xde50b2=_0xde50b2-0x17a;var _0x664a59=a221_0x664a();var _0x37d6af=_0x664a59[_0xde50b2];return _0x37d6af;}function a221_0x664a(){var _0x940bd4=['9522saloXN','150185BrIjKW','1179351FLOXNM','46732nqHrQb','35236608ndNQwB','1238885tzEYtU','104qvnltX','8372586FFrjoa','4650lWZozI','6RBoaJr','472FsdyYG'];a221_0x664a=function(){return _0x940bd4;};return a221_0x664a();}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a222_0x445a(_0x3cf106,_0x3dc14b){_0x3cf106=_0x3cf106-0x1a4;var _0x457224=a222_0x4572();var _0x445a0a=_0x457224[_0x3cf106];return _0x445a0a;}var a222_0x700aae=a222_0x445a;function a222_0x4572(){var _0x5dec6d=['171035KMivaZ','3400734cDjLWg','1827588VkXlJA','handle','1396404iHgvZt','630960VmaKaR','5696wWSOAA','10129JdawVf','376935fsOiZC'];a222_0x4572=function(){return _0x5dec6d;};return a222_0x4572();}(function(_0x527e0d,_0x3fbedb){var _0x3580c9=a222_0x445a,_0x5ac7a3=_0x527e0d();while(!![]){try{var _0x314216=parseInt(_0x3580c9(0x1aa))/0x1+-parseInt(_0x3580c9(0x1a5))/0x2+-parseInt(_0x3580c9(0x1a9))/0x3+-parseInt(_0x3580c9(0x1ac))/0x4+-parseInt(_0x3580c9(0x1a6))/0x5+parseInt(_0x3580c9(0x1ab))/0x6+parseInt(_0x3580c9(0x1a8))/0x7*(parseInt(_0x3580c9(0x1a7))/0x8);if(_0x314216===_0x3fbedb)break;else _0x5ac7a3['push'](_0x5ac7a3['shift']());}catch(_0xfc2cc7){_0x5ac7a3['push'](_0x5ac7a3['shift']());}}}(a222_0x4572,0x582c0));export class NullHandler{[a222_0x700aae(0x1a4)](_0x1a65e6){}}
1
+ (function(_0x1da8b3,_0xa5295f){var _0x593734=a222_0x5b74,_0x37b9c7=_0x1da8b3();while(!![]){try{var _0x3ad490=parseInt(_0x593734(0x99))/0x1*(parseInt(_0x593734(0xa2))/0x2)+-parseInt(_0x593734(0x9d))/0x3*(-parseInt(_0x593734(0x9a))/0x4)+parseInt(_0x593734(0x9e))/0x5+parseInt(_0x593734(0x9f))/0x6+parseInt(_0x593734(0xa1))/0x7+parseInt(_0x593734(0xa0))/0x8*(parseInt(_0x593734(0x9b))/0x9)+-parseInt(_0x593734(0x9c))/0xa;if(_0x3ad490===_0xa5295f)break;else _0x37b9c7['push'](_0x37b9c7['shift']());}catch(_0x5e8279){_0x37b9c7['push'](_0x37b9c7['shift']());}}}(a222_0x5b49,0x8197b));function a222_0x5b49(){var _0xca2c05=['2639210eGIBxo','1976302bfutiW','1FunodL','93316jSpVWy','7584858uyoHEr','38805970xRDHDP','102zgiIVs','4119340KPdcpX','3518466qHTOVl','8WEXoZh'];a222_0x5b49=function(){return _0xca2c05;};return a222_0x5b49();}function a222_0x5b74(_0x33d458,_0x42e008){_0x33d458=_0x33d458-0x99;var _0x5b4909=a222_0x5b49();var _0x5b747e=_0x5b4909[_0x33d458];return _0x5b747e;}export class NullHandler{['handle'](_0x503190){}}
@@ -1 +1 @@
1
- (function(_0x4be95a,_0x3b8b8f){var _0x28bee4=a223_0x16eb,_0x3d1d46=_0x4be95a();while(!![]){try{var _0x33aa9b=parseInt(_0x28bee4(0x144))/0x1+-parseInt(_0x28bee4(0x147))/0x2+-parseInt(_0x28bee4(0x145))/0x3+-parseInt(_0x28bee4(0x14b))/0x4+-parseInt(_0x28bee4(0x148))/0x5+parseInt(_0x28bee4(0x14a))/0x6*(-parseInt(_0x28bee4(0x149))/0x7)+parseInt(_0x28bee4(0x146))/0x8*(parseInt(_0x28bee4(0x14c))/0x9);if(_0x33aa9b===_0x3b8b8f)break;else _0x3d1d46['push'](_0x3d1d46['shift']());}catch(_0x13a462){_0x3d1d46['push'](_0x3d1d46['shift']());}}}(a223_0x439a,0xa554c));function a223_0x16eb(_0x55ef9d,_0x15fe12){_0x55ef9d=_0x55ef9d-0x144;var _0x439a81=a223_0x439a();var _0x16ebd8=_0x439a81[_0x55ef9d];return _0x16ebd8;}function a223_0x439a(){var _0x316a51=['294AOUIHq','5367928eWnLpS','980982wjivcL','417664aJaZtB','3217539dKToGa','280ZkdqqT','776516qHEIFc','2527200dirXVA','35315qOqxQP'];a223_0x439a=function(){return _0x316a51;};return a223_0x439a();}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(_0x452350,_0x29db52){var _0x35124f=a223_0x15b4,_0x4a2767=_0x452350();while(!![]){try{var _0xea8fb2=parseInt(_0x35124f(0x15f))/0x1*(-parseInt(_0x35124f(0x159))/0x2)+parseInt(_0x35124f(0x163))/0x3*(parseInt(_0x35124f(0x15b))/0x4)+parseInt(_0x35124f(0x15c))/0x5*(parseInt(_0x35124f(0x15e))/0x6)+parseInt(_0x35124f(0x162))/0x7*(parseInt(_0x35124f(0x158))/0x8)+parseInt(_0x35124f(0x15d))/0x9*(parseInt(_0x35124f(0x160))/0xa)+-parseInt(_0x35124f(0x164))/0xb+parseInt(_0x35124f(0x15a))/0xc*(-parseInt(_0x35124f(0x161))/0xd);if(_0xea8fb2===_0x29db52)break;else _0x4a2767['push'](_0x4a2767['shift']());}catch(_0x3ad63d){_0x4a2767['push'](_0x4a2767['shift']());}}}(a223_0x574e,0x8ae10));export{Logger}from'./logger.js';function a223_0x574e(){var _0x2717af=['2505927BZfnKn','1369016TgIJBa','511136LeGKgD','2bKGBjv','24REGMae','4agnuwA','5viCcCk','1642824kRSAPt','6297738DizHUl','62906UwUseo','20YXjNRG','10124959FELyQr','7GfbysM'];a223_0x574e=function(){return _0x2717af;};return a223_0x574e();}function a223_0x15b4(_0x2427ec,_0x301329){_0x2427ec=_0x2427ec-0x158;var _0x574e7e=a223_0x574e();var _0x15b444=_0x574e7e[_0x2427ec];return _0x15b444;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';