@treasuredata/tdx 2026.3.51 → 2026.3.52

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 (218) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/utils.js +1 -1
  78. package/dist/proxy/claude-usage-tracker.js +1 -1
  79. package/dist/proxy/passthrough-server.js +1 -1
  80. package/dist/proxy/sse-usage-parser.js +1 -1
  81. package/dist/sdk/agent/agent-config.js +1 -1
  82. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  83. package/dist/sdk/agent/agent-yaml.js +1 -1
  84. package/dist/sdk/agent/test/evaluator.js +1 -1
  85. package/dist/sdk/agent/test/executor.js +1 -1
  86. package/dist/sdk/agent/test/index.js +1 -1
  87. package/dist/sdk/agent/test/output.js +1 -1
  88. package/dist/sdk/agent/test/parser.js +1 -1
  89. package/dist/sdk/agent/tool-target-registry.js +1 -1
  90. package/dist/sdk/api.js +1 -1
  91. package/dist/sdk/cas/cas-api-client.js +1 -1
  92. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  93. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  94. package/dist/sdk/cas/index.js +1 -1
  95. package/dist/sdk/cas/pull-workflow.js +1 -1
  96. package/dist/sdk/cas/push-workflow.js +1 -1
  97. package/dist/sdk/client/cdp-api-client.js +1 -1
  98. package/dist/sdk/client/delivery-api-client.js +1 -1
  99. package/dist/sdk/client/endpoints.js +1 -1
  100. package/dist/sdk/client/engage-api-client.js +1 -1
  101. package/dist/sdk/client/http-client.js +1 -1
  102. package/dist/sdk/client/llm-api-client.js +1 -1
  103. package/dist/sdk/client/oauth-refresh.js +1 -1
  104. package/dist/sdk/client/rate-limiter.js +1 -1
  105. package/dist/sdk/client/td-api-client.js +1 -1
  106. package/dist/sdk/client/trino-api-client.js +1 -1
  107. package/dist/sdk/client/workflow-client.js +1 -1
  108. package/dist/sdk/connection-validator.js +1 -1
  109. package/dist/sdk/connection.js +1 -1
  110. package/dist/sdk/delivery.js +1 -1
  111. package/dist/sdk/engage/campaign-pull.js +1 -1
  112. package/dist/sdk/engage/campaign-push.js +1 -1
  113. package/dist/sdk/engage/campaign-validator.js +1 -1
  114. package/dist/sdk/engage/campaign-yaml.js +1 -1
  115. package/dist/sdk/engage/template-pull.js +1 -1
  116. package/dist/sdk/engage/template-push.js +1 -1
  117. package/dist/sdk/engage/template-validator.js +1 -1
  118. package/dist/sdk/engage/template-yaml.js +1 -1
  119. package/dist/sdk/engage/types/campaign-def.js +1 -1
  120. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  121. package/dist/sdk/engage/types/template-schema.js +1 -1
  122. package/dist/sdk/engage.js +1 -1
  123. package/dist/sdk/errors.js +1 -1
  124. package/dist/sdk/index.js +1 -1
  125. package/dist/sdk/io/index.js +1 -1
  126. package/dist/sdk/io/node-filesystem.js +1 -1
  127. package/dist/sdk/job.js +1 -1
  128. package/dist/sdk/journey.js +1 -1
  129. package/dist/sdk/llm/chat-cache.js +1 -1
  130. package/dist/sdk/llm/index.js +1 -1
  131. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  132. package/dist/sdk/llm/model-factors.js +1 -1
  133. package/dist/sdk/personalization.js +1 -1
  134. package/dist/sdk/policy.js +1 -1
  135. package/dist/sdk/query/index.js +1 -1
  136. package/dist/sdk/query/sql-parser.js +1 -1
  137. package/dist/sdk/realtime.js +1 -1
  138. package/dist/sdk/schedule.js +1 -1
  139. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  140. package/dist/sdk/segment/fields-display.js +1 -1
  141. package/dist/sdk/segment/file-discovery.js +1 -1
  142. package/dist/sdk/segment/journey-utils.js +1 -1
  143. package/dist/sdk/segment/journey-validator.js +1 -1
  144. package/dist/sdk/segment/journey-yaml.js +1 -1
  145. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  146. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  147. package/dist/sdk/segment/pull-workflow.js +1 -1
  148. package/dist/sdk/segment/push-recovery.js +1 -1
  149. package/dist/sdk/segment/push-workflow.js +1 -1
  150. package/dist/sdk/segment/resolution-context.js +1 -1
  151. package/dist/sdk/segment/segment-path-parser.js +1 -1
  152. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  153. package/dist/sdk/segment/segment-validator.js +1 -1
  154. package/dist/sdk/segment/target-resolution.js +1 -1
  155. package/dist/sdk/segment/tdx-config.js +1 -1
  156. package/dist/sdk/segment/types/activation-schema.js +1 -1
  157. package/dist/sdk/segment/types/journey-def.js +1 -1
  158. package/dist/sdk/segment/types/journey-schema.js +1 -1
  159. package/dist/sdk/segment/types/segment-def.js +1 -1
  160. package/dist/sdk/segment/types/segment-schema.js +1 -1
  161. package/dist/sdk/segment/validate-files.js +1 -1
  162. package/dist/sdk/segment/yaml-validator.js +1 -1
  163. package/dist/sdk/segment.js +1 -1
  164. package/dist/sdk/types/index.js +1 -1
  165. package/dist/sdk/types/progress.js +1 -1
  166. package/dist/sdk/types/workspace.js +1 -1
  167. package/dist/sdk/user.js +1 -1
  168. package/dist/sdk/util/format-detector.js +1 -1
  169. package/dist/sdk/util/formatters.js +1 -1
  170. package/dist/sdk/util/index.js +1 -1
  171. package/dist/sdk/util/paginate.js +1 -1
  172. package/dist/sdk/util/tree-formatter.js +1 -1
  173. package/dist/sdk/workflow/archive-validation.js +1 -1
  174. package/dist/sdk/workflow/clone-workflow.js +1 -1
  175. package/dist/sdk/workflow/index.js +1 -1
  176. package/dist/sdk/workflow/pull-workflow.js +1 -1
  177. package/dist/sdk/workflow/push-workflow.js +1 -1
  178. package/dist/sdk/workflow/tdx-config.js +1 -1
  179. package/dist/sdk/workflow/workflow-utils.js +1 -1
  180. package/dist/sdk/workspace/frontmatter.js +1 -1
  181. package/dist/sdk/workspace/git.js +1 -1
  182. package/dist/sdk/workspace/index.js +1 -1
  183. package/dist/sdk/workspace/templates.js +1 -1
  184. package/dist/sdk/workspace/weekly.js +1 -1
  185. package/dist/sdk/workspace/wikilinks.js +1 -1
  186. package/dist/test-utils/command-runner.js +1 -1
  187. package/dist/test-utils/factories.js +1 -1
  188. package/dist/test-utils/fixtures.js +1 -1
  189. package/dist/test-utils/http-mock.js +1 -1
  190. package/dist/test-utils/index.js +1 -1
  191. package/dist/utils/async.js +1 -1
  192. package/dist/utils/colors.js +1 -1
  193. package/dist/utils/diff.js +1 -1
  194. package/dist/utils/file-permissions.js +1 -1
  195. package/dist/utils/file-reader.js +1 -1
  196. package/dist/utils/github-releases.js +1 -1
  197. package/dist/utils/global-cache.js +1 -1
  198. package/dist/utils/json-loader.js +1 -1
  199. package/dist/utils/local-cache.js +1 -1
  200. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  201. package/dist/utils/logger/formatters/index.js +1 -1
  202. package/dist/utils/logger/handlers/console-handler.js +1 -1
  203. package/dist/utils/logger/handlers/file-handler.js +1 -1
  204. package/dist/utils/logger/handlers/index.js +1 -1
  205. package/dist/utils/logger/handlers/null-handler.js +1 -1
  206. package/dist/utils/logger/index.js +1 -1
  207. package/dist/utils/logger/logger.js +1 -1
  208. package/dist/utils/logger/types.js +1 -1
  209. package/dist/utils/option-validation.js +1 -1
  210. package/dist/utils/process.js +1 -1
  211. package/dist/utils/prompt.js +1 -1
  212. package/dist/utils/spinner.js +1 -1
  213. package/dist/utils/sse-parser.js +1 -1
  214. package/dist/utils/string-utils.js +1 -1
  215. package/dist/utils/table-ref-parser.js +1 -1
  216. package/dist/utils/tdx-logger.js +1 -1
  217. package/dist/utils/version-check.js +1 -1
  218. package/package.json +1 -1
@@ -1 +1 @@
1
- function a205_0x3eed(){const _0x34dca5=['application/json','parseRequest','Unmatched\x20stub','Bad\x20Gateway','forEach','Too\x20Many\x20Requests','fetchMock','slice','string','toLowerCase','description','8OjxjAJ','461696KGGSoP','No\x20stub\x20matched\x20request:\x20','11ZOXZkE','8620jKRNsy','Unknown','4241724DUOOlQ','30IoFDeC','host','isArray','push','mockImplementation','length','pathname','verify','Internal\x20Server\x20Error','every','jsonResponseWithHeaders','stubs','some','networkError','getStatusText','fail','Request\x20body:\x20','registerWithInspector','51365olDevl','withQuery','27poJseV','stack','Service\x20Unavailable','test','209594WhSJVy','unnamed\x20stub','body','requests','163094BgaGYj','split','parse','map','toUpperCase','wasCalled','rfc9457','stringify','No\x20Content','method','getLastRequest','textResponse','Bad\x20Request','join','searchParams','7420400KFdzjl','includes','headers','Forbidden','Created','responder','11565MwCseY','simple','errorResponse','GET','entries','matchCount','matcher','jsonResponse','td-api','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','url','filter','withBody','Registered\x20stubs:\x0a','getRequests'];a205_0x3eed=function(){return _0x34dca5;};return a205_0x3eed();}const a205_0x179897=a205_0x32be;(function(_0x3cead9,_0x33b5b0){const _0x28ab91=a205_0x32be,_0x11d0e0=_0x3cead9();while(!![]){try{const _0xcb9faa=-parseInt(_0x28ab91(0xba))/0x1+parseInt(_0x28ab91(0xdc))/0x2*(-parseInt(_0x28ab91(0xd4))/0x3)+parseInt(_0x28ab91(0xb9))/0x4*(parseInt(_0x28ab91(0xd2))/0x5)+-parseInt(_0x28ab91(0xc0))/0x6*(-parseInt(_0x28ab91(0xd8))/0x7)+parseInt(_0x28ab91(0xeb))/0x8+-parseInt(_0x28ab91(0xf1))/0x9*(-parseInt(_0x28ab91(0xbd))/0xa)+-parseInt(_0x28ab91(0xbc))/0xb*(parseInt(_0x28ab91(0xbf))/0xc);if(_0xcb9faa===_0x33b5b0)break;else _0x11d0e0['push'](_0x11d0e0['shift']());}catch(_0x25fcf5){_0x11d0e0['push'](_0x11d0e0['shift']());}}}(a205_0x3eed,0xa03fc));import{vi}from'vitest';export class HTTPMockRegistry{[a205_0x179897(0xcb)]=[];[a205_0x179897(0xdb)]=[];[a205_0x179897(0xb4)]=null;['REST'](_0x37fb44,_0xaa3112){return _0x4efbe7=>{const _0x4d2491=a205_0x32be;if(_0x4efbe7[_0x4d2491(0xe5)][_0x4d2491(0xe0)]()!==_0x37fb44['toUpperCase']())return![];const _0x1b47f6=new URL(_0x4efbe7[_0x4d2491(0xa9)]);if(typeof _0xaa3112==='string')return _0x1b47f6[_0x4d2491(0xc6)]===_0xaa3112||_0x1b47f6['pathname']['includes'](_0xaa3112);return _0xaa3112[_0x4d2491(0xd7)](_0x1b47f6[_0x4d2491(0xc6)]);};}[a205_0x179897(0xd3)](_0xf0d2f6,_0xacfd93){return _0x459a13=>{const _0x3d7f05=a205_0x32be;if(!_0xf0d2f6(_0x459a13))return![];const _0x80495a=new URL(_0x459a13[_0x3d7f05(0xa9)]);return Object[_0x3d7f05(0xa3)](_0xacfd93)[_0x3d7f05(0xc9)](([_0xd50ff5,_0x1c5c31])=>_0x80495a[_0x3d7f05(0xea)]['get'](_0xd50ff5)===_0x1c5c31);};}[a205_0x179897(0xab)](_0x1cadce,_0x5bfe5e){return _0x3f6a45=>{const _0x13588d=a205_0x32be;if(!_0x1cadce(_0x3f6a45))return![];if(typeof _0x5bfe5e==='function')return _0x5bfe5e(_0x3f6a45[_0x13588d(0xda)]);return JSON[_0x13588d(0xe3)](_0x3f6a45[_0x13588d(0xda)])===JSON[_0x13588d(0xe3)](_0x5bfe5e);};}['withHost'](_0x3c9fb1,_0x4433e0){return _0x14f1c8=>{const _0x3fd6a3=a205_0x32be;if(!_0x3c9fb1(_0x14f1c8))return![];const _0x43887e=new URL(_0x14f1c8[_0x3fd6a3(0xa9)]);return _0x43887e[_0x3fd6a3(0xc1)]===_0x4433e0;};}['register'](_0x18a0a4,_0x51d566,_0x2955ba){const _0x58c890=a205_0x179897;this[_0x58c890(0xcb)][_0x58c890(0xc3)]({'matcher':_0x18a0a4,'responder':_0x51d566,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x2955ba?.[_0x58c890(0xb8)]});}[a205_0x179897(0xd1)](_0x648341,_0x52b793,_0x42c569){const _0x284421=_0x42b989=>{return _0x42c569(_0x42b989['body'],_0x42b989),_0x52b793(_0x42b989);};this['register'](_0x648341,_0x284421);}static[a205_0x179897(0xa6)](_0x3742c3,_0x551c01=0xc8){const _0x546b48=a205_0x179897;return()=>new Response(JSON[_0x546b48(0xe3)](_0x3742c3),{'status':_0x551c01,'headers':{'Content-Type':_0x546b48(0xae)}});}static[a205_0x179897(0xa1)](_0x37f601,_0x2329da,_0x2c4e08=a205_0x179897(0xa0)){return()=>{const _0x71606e=a205_0x32be;let _0x4e3036;switch(_0x2c4e08){case _0x71606e(0xa7):_0x4e3036={'errors':{'error':_0x2329da,'message':_0x2329da,'severity':'error','status_code':_0x37f601}};break;case _0x71606e(0xe2):_0x4e3036={'type':'https://api.treasuredata.com/errors/'+_0x37f601,'title':HTTPMockRegistry[_0x71606e(0xce)](_0x37f601),'status':_0x37f601,'detail':_0x2329da};break;default:_0x4e3036={'error':_0x2329da};}return new Response(JSON[_0x71606e(0xe3)](_0x4e3036),{'status':_0x37f601,'headers':{'Content-Type':_0x71606e(0xae)}});};}static[a205_0x179897(0xca)](_0x495b62,_0x459654,_0x3eb6cc=0xc8){const _0x782f17=a205_0x179897;return()=>new Response(JSON[_0x782f17(0xe3)](_0x495b62),{'status':_0x3eb6cc,'headers':{'Content-Type':_0x782f17(0xae),..._0x459654}});}static[a205_0x179897(0xe7)](_0x5dbc3d,_0x3e4da5=0xc8){return()=>new Response(_0x5dbc3d,{'status':_0x3e4da5,'headers':{'Content-Type':'text/plain'}});}static[a205_0x179897(0xcd)](_0x62f169){return()=>{throw new Error(_0x62f169);};}['createFetch'](){const _0x76e4df=a205_0x179897;return this[_0x76e4df(0xb4)]=vi['fn']()[_0x76e4df(0xc4)](async(_0x3cfef9,_0x6700aa)=>{const _0x415a0f=_0x76e4df,_0x519e9f=this[_0x415a0f(0xaf)](_0x3cfef9,_0x6700aa);this[_0x415a0f(0xdb)]['push'](_0x519e9f);for(const _0x3d4ee0 of this[_0x415a0f(0xcb)]){if(_0x3d4ee0[_0x415a0f(0xa5)](_0x519e9f))return _0x3d4ee0['matched']=!![],_0x3d4ee0[_0x415a0f(0xa4)]++,_0x3d4ee0[_0x415a0f(0xf0)](_0x519e9f);}const _0x49062d=this['stubs'][_0x415a0f(0xdf)]((_0x4b7381,_0x6a7053)=>'\x20\x20'+(_0x6a7053+0x1)+'.\x20'+(_0x4b7381['description']??_0x415a0f(0xd9)))[_0x415a0f(0xe9)]('\x0a');throw new Error(_0x415a0f(0xbb)+_0x519e9f[_0x415a0f(0xe5)]+'\x20'+_0x519e9f[_0x415a0f(0xa9)]+'\x0a'+(_0x415a0f(0xd0)+JSON[_0x415a0f(0xe3)](_0x519e9f[_0x415a0f(0xda)])+'\x0a')+(_0x415a0f(0xac)+(_0x49062d||'\x20\x20(none)')));}),this[_0x76e4df(0xb4)];}[a205_0x179897(0xaf)](_0x1ad903,_0x17d087){const _0x478e9d=a205_0x179897,_0x5711ba={};if(_0x17d087?.[_0x478e9d(0xed)]){if(_0x17d087[_0x478e9d(0xed)]instanceof Headers)_0x17d087['headers'][_0x478e9d(0xb2)]((_0x299183,_0x1a7895)=>{const _0x59ae81=_0x478e9d;_0x5711ba[_0x1a7895[_0x59ae81(0xb7)]()]=_0x299183;});else{if(Array[_0x478e9d(0xc2)](_0x17d087[_0x478e9d(0xed)]))for(const [_0x313fd6,_0x269046]of _0x17d087[_0x478e9d(0xed)]){_0x5711ba[_0x313fd6[_0x478e9d(0xb7)]()]=_0x269046;}else for(const [_0x7c3be8,_0x9ca51f]of Object[_0x478e9d(0xa3)](_0x17d087['headers'])){_0x9ca51f!==undefined&&(_0x5711ba[_0x7c3be8[_0x478e9d(0xb7)]()]=_0x9ca51f);}}}let _0x200556;if(_0x17d087?.[_0x478e9d(0xda)])try{_0x200556=JSON[_0x478e9d(0xde)](_0x17d087[_0x478e9d(0xda)]);}catch{_0x200556=_0x17d087[_0x478e9d(0xda)];}return{'method':_0x17d087?.[_0x478e9d(0xe5)]??_0x478e9d(0xa2),'url':_0x1ad903,'headers':_0x5711ba,'body':_0x200556};}[a205_0x179897(0xc7)](_0x21132f){const _0x542d83=a205_0x179897,_0x2fa9e6=this[_0x542d83(0xcb)][_0x542d83(0xaa)](_0x2ebbae=>!_0x2ebbae['matched']);if(_0x2fa9e6[_0x542d83(0xc5)]>0x0){const _0x36e9e7=_0x2fa9e6['map'](_0x1bfe25=>{const _0x36d859=_0x542d83,_0x450769=_0x1bfe25[_0x36d859(0xb8)]?'\x20('+_0x1bfe25[_0x36d859(0xb8)]+')':'',_0x3c0986=_0x1bfe25[_0x36d859(0xd5)][_0x36d859(0xdd)]('\x0a')[_0x36d859(0xb5)](0x2,0x5)[_0x36d859(0xe9)]('\x0a');return _0x36d859(0xb0)+_0x450769+'\x20registered\x20at:\x0a'+_0x3c0986;});_0x21132f[_0x542d83(0xcf)](_0x2fa9e6['length']+_0x542d83(0xa8)+_0x36e9e7[_0x542d83(0xe9)]('\x0a\x0a'));}}[a205_0x179897(0xad)](){const _0x2c77e1=a205_0x179897;return[...this[_0x2c77e1(0xdb)]];}[a205_0x179897(0xe6)](){const _0x54172d=a205_0x179897;return this[_0x54172d(0xdb)][this[_0x54172d(0xdb)][_0x54172d(0xc5)]-0x1];}[a205_0x179897(0xe1)](_0x36a15e,_0xb4db83){const _0x1fa610=a205_0x179897;return this[_0x1fa610(0xdb)][_0x1fa610(0xcc)](_0x441e5d=>{const _0x3854c9=_0x1fa610;if(_0x441e5d[_0x3854c9(0xe5)]['toUpperCase']()!==_0x36a15e[_0x3854c9(0xe0)]())return![];if(typeof _0xb4db83===_0x3854c9(0xb6))return _0x441e5d['url'][_0x3854c9(0xec)](_0xb4db83);return _0xb4db83[_0x3854c9(0xd7)](_0x441e5d[_0x3854c9(0xa9)]);});}['getMatchCount'](_0x14ad84){const _0xa9d6d8=a205_0x179897;return this[_0xa9d6d8(0xcb)][_0x14ad84]?.[_0xa9d6d8(0xa4)]??0x0;}['reset'](){const _0xedac82=a205_0x179897;this[_0xedac82(0xcb)]=[],this[_0xedac82(0xdb)]=[],this['fetchMock']=null;}static[a205_0x179897(0xce)](_0x5d1238){const _0x14ca94=a205_0x179897,_0x1d885b={0xc8:'OK',0xc9:_0x14ca94(0xef),0xcc:_0x14ca94(0xe4),0x190:_0x14ca94(0xe8),0x191:'Unauthorized',0x193:_0x14ca94(0xee),0x194:'Not\x20Found',0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x14ca94(0xb3),0x1f4:_0x14ca94(0xc8),0x1f6:_0x14ca94(0xb1),0x1f7:_0x14ca94(0xd6)};return _0x1d885b[_0x5d1238]??_0x14ca94(0xbe);}}function a205_0x32be(_0x48e9b1,_0x4069d5){_0x48e9b1=_0x48e9b1-0xa0;const _0x3eed94=a205_0x3eed();let _0x32be12=_0x3eed94[_0x48e9b1];return _0x32be12;}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a205_0x5c2454=a205_0x3ef1;(function(_0x4327d4,_0xb5afc9){const _0x30a6ad=a205_0x3ef1,_0x55d58a=_0x4327d4();while(!![]){try{const _0x99534e=parseInt(_0x30a6ad(0x17e))/0x1*(-parseInt(_0x30a6ad(0x196))/0x2)+parseInt(_0x30a6ad(0x19c))/0x3*(parseInt(_0x30a6ad(0x194))/0x4)+-parseInt(_0x30a6ad(0x1b2))/0x5*(-parseInt(_0x30a6ad(0x1a7))/0x6)+parseInt(_0x30a6ad(0x17a))/0x7*(parseInt(_0x30a6ad(0x1ad))/0x8)+parseInt(_0x30a6ad(0x176))/0x9+-parseInt(_0x30a6ad(0x172))/0xa*(-parseInt(_0x30a6ad(0x177))/0xb)+-parseInt(_0x30a6ad(0x16b))/0xc;if(_0x99534e===_0xb5afc9)break;else _0x55d58a['push'](_0x55d58a['shift']());}catch(_0x4bc682){_0x55d58a['push'](_0x55d58a['shift']());}}}(a205_0x2939,0x48783));import{vi}from'vitest';function a205_0x3ef1(_0x59ed98,_0x80e83d){_0x59ed98=_0x59ed98-0x163;const _0x2939d5=a205_0x2939();let _0x3ef1ef=_0x2939d5[_0x59ed98];return _0x3ef1ef;}export class HTTPMockRegistry{[a205_0x5c2454(0x1b3)]=[];[a205_0x5c2454(0x1ab)]=[];['fetchMock']=null;[a205_0x5c2454(0x189)](_0x1f3cff,_0x37aa78){return _0x25f6d5=>{const _0x181124=a205_0x3ef1;if(_0x25f6d5[_0x181124(0x17f)]['toUpperCase']()!==_0x1f3cff[_0x181124(0x18d)]())return![];const _0x55c615=new URL(_0x25f6d5[_0x181124(0x16c)]);if(typeof _0x37aa78==='string')return _0x55c615[_0x181124(0x1b1)]===_0x37aa78||_0x55c615[_0x181124(0x1b1)]['includes'](_0x37aa78);return _0x37aa78[_0x181124(0x1a2)](_0x55c615[_0x181124(0x1b1)]);};}[a205_0x5c2454(0x16e)](_0x2ede6a,_0x276736){return _0x16a991=>{const _0x240fb5=a205_0x3ef1;if(!_0x2ede6a(_0x16a991))return![];const _0x5868d3=new URL(_0x16a991[_0x240fb5(0x16c)]);return Object[_0x240fb5(0x195)](_0x276736)[_0x240fb5(0x165)](([_0x55db90,_0x296ef5])=>_0x5868d3[_0x240fb5(0x17c)][_0x240fb5(0x187)](_0x55db90)===_0x296ef5);};}[a205_0x5c2454(0x1a6)](_0x11cee6,_0x5f5d20){return _0x4f2c5f=>{const _0x1b890d=a205_0x3ef1;if(!_0x11cee6(_0x4f2c5f))return![];if(typeof _0x5f5d20===_0x1b890d(0x1ac))return _0x5f5d20(_0x4f2c5f['body']);return JSON[_0x1b890d(0x199)](_0x4f2c5f['body'])===JSON[_0x1b890d(0x199)](_0x5f5d20);};}['withHost'](_0x361a4c,_0x5d09c5){return _0x582d55=>{if(!_0x361a4c(_0x582d55))return![];const _0x2335fe=new URL(_0x582d55['url']);return _0x2335fe['host']===_0x5d09c5;};}[a205_0x5c2454(0x181)](_0x18fcb2,_0x4d97e7,_0xc023f0){const _0x575efc=a205_0x5c2454;this['stubs'][_0x575efc(0x1b0)]({'matcher':_0x18fcb2,'responder':_0x4d97e7,'matched':![],'matchCount':0x0,'stack':new Error()[_0x575efc(0x190)]??'','description':_0xc023f0?.[_0x575efc(0x169)]});}[a205_0x5c2454(0x179)](_0x148799,_0x3ffc8f,_0x1e1c91){const _0x3d1bd3=a205_0x5c2454,_0x1f6df1=_0x3c2eed=>{const _0x1b2cb2=a205_0x3ef1;return _0x1e1c91(_0x3c2eed[_0x1b2cb2(0x174)],_0x3c2eed),_0x3ffc8f(_0x3c2eed);};this[_0x3d1bd3(0x181)](_0x148799,_0x1f6df1);}static[a205_0x5c2454(0x164)](_0x31b525,_0x5d3a65=0xc8){const _0x520444=a205_0x5c2454;return()=>new Response(JSON[_0x520444(0x199)](_0x31b525),{'status':_0x5d3a65,'headers':{'Content-Type':_0x520444(0x1a8)}});}static[a205_0x5c2454(0x197)](_0xae05c2,_0x47961b,_0x443b85=a205_0x5c2454(0x183)){return()=>{const _0x571efe=a205_0x3ef1;let _0x52c7df;switch(_0x443b85){case'td-api':_0x52c7df={'errors':{'error':_0x47961b,'message':_0x47961b,'severity':_0x571efe(0x198),'status_code':_0xae05c2}};break;case _0x571efe(0x167):_0x52c7df={'type':_0x571efe(0x1ae)+_0xae05c2,'title':HTTPMockRegistry['getStatusText'](_0xae05c2),'status':_0xae05c2,'detail':_0x47961b};break;default:_0x52c7df={'error':_0x47961b};}return new Response(JSON[_0x571efe(0x199)](_0x52c7df),{'status':_0xae05c2,'headers':{'Content-Type':_0x571efe(0x1a8)}});};}static[a205_0x5c2454(0x19a)](_0x55b51e,_0x331f88,_0x15fc73=0xc8){const _0x3dfbb6=a205_0x5c2454;return()=>new Response(JSON[_0x3dfbb6(0x199)](_0x55b51e),{'status':_0x15fc73,'headers':{'Content-Type':'application/json',..._0x331f88}});}static[a205_0x5c2454(0x168)](_0x19d2b6,_0x25e180=0xc8){const _0x21f876=a205_0x5c2454;return()=>new Response(_0x19d2b6,{'status':_0x25e180,'headers':{'Content-Type':_0x21f876(0x19b)}});}static['networkError'](_0x3c54e1){return()=>{throw new Error(_0x3c54e1);};}[a205_0x5c2454(0x163)](){const _0x5e7452=a205_0x5c2454;return this[_0x5e7452(0x18b)]=vi['fn']()[_0x5e7452(0x178)](async(_0x303d7d,_0x2f8adf)=>{const _0xfd99a6=_0x5e7452,_0x18f76f=this[_0xfd99a6(0x18a)](_0x303d7d,_0x2f8adf);this['requests'][_0xfd99a6(0x1b0)](_0x18f76f);for(const _0x91690a of this[_0xfd99a6(0x1b3)]){if(_0x91690a['matcher'](_0x18f76f))return _0x91690a[_0xfd99a6(0x192)]=!![],_0x91690a[_0xfd99a6(0x173)]++,_0x91690a[_0xfd99a6(0x18e)](_0x18f76f);}const _0x1bb3fd=this[_0xfd99a6(0x1b3)]['map']((_0x1ba000,_0x1def81)=>'\x20\x20'+(_0x1def81+0x1)+'.\x20'+(_0x1ba000[_0xfd99a6(0x169)]??_0xfd99a6(0x17d)))['join']('\x0a');throw new Error(_0xfd99a6(0x171)+_0x18f76f[_0xfd99a6(0x17f)]+'\x20'+_0x18f76f[_0xfd99a6(0x16c)]+'\x0a'+(_0xfd99a6(0x1aa)+JSON[_0xfd99a6(0x199)](_0x18f76f[_0xfd99a6(0x174)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x1bb3fd||_0xfd99a6(0x184))));}),this['fetchMock'];}[a205_0x5c2454(0x18a)](_0x1b78d7,_0x2fafaa){const _0x2b6b10=a205_0x5c2454,_0x4deeee={};if(_0x2fafaa?.[_0x2b6b10(0x1af)]){if(_0x2fafaa[_0x2b6b10(0x1af)]instanceof Headers)_0x2fafaa[_0x2b6b10(0x1af)][_0x2b6b10(0x182)]((_0x415e46,_0x59dd23)=>{const _0x3883d3=_0x2b6b10;_0x4deeee[_0x59dd23[_0x3883d3(0x19d)]()]=_0x415e46;});else{if(Array[_0x2b6b10(0x16f)](_0x2fafaa[_0x2b6b10(0x1af)]))for(const [_0x101f66,_0x71e02]of _0x2fafaa[_0x2b6b10(0x1af)]){_0x4deeee[_0x101f66[_0x2b6b10(0x19d)]()]=_0x71e02;}else for(const [_0x4b60d1,_0x492b09]of Object['entries'](_0x2fafaa[_0x2b6b10(0x1af)])){_0x492b09!==undefined&&(_0x4deeee[_0x4b60d1['toLowerCase']()]=_0x492b09);}}}let _0xad2764;if(_0x2fafaa?.[_0x2b6b10(0x174)])try{_0xad2764=JSON[_0x2b6b10(0x19e)](_0x2fafaa[_0x2b6b10(0x174)]);}catch{_0xad2764=_0x2fafaa[_0x2b6b10(0x174)];}return{'method':_0x2fafaa?.[_0x2b6b10(0x17f)]??_0x2b6b10(0x18f),'url':_0x1b78d7,'headers':_0x4deeee,'body':_0xad2764};}[a205_0x5c2454(0x193)](_0x2f891d){const _0x4388b4=a205_0x5c2454,_0x43bf5f=this[_0x4388b4(0x1b3)][_0x4388b4(0x191)](_0xbc05a=>!_0xbc05a[_0x4388b4(0x192)]);if(_0x43bf5f[_0x4388b4(0x1a1)]>0x0){const _0x321422=_0x43bf5f[_0x4388b4(0x1b5)](_0x4766db=>{const _0x529753=_0x4388b4,_0x49d53e=_0x4766db['description']?'\x20('+_0x4766db[_0x529753(0x169)]+')':'',_0x30665b=_0x4766db[_0x529753(0x190)]['split']('\x0a')['slice'](0x2,0x5)['join']('\x0a');return _0x529753(0x166)+_0x49d53e+'\x20registered\x20at:\x0a'+_0x30665b;});_0x2f891d['fail'](_0x43bf5f[_0x4388b4(0x1a1)]+_0x4388b4(0x170)+_0x321422[_0x4388b4(0x16a)]('\x0a\x0a'));}}[a205_0x5c2454(0x185)](){return[...this['requests']];}['getLastRequest'](){const _0x59f75d=a205_0x5c2454;return this['requests'][this[_0x59f75d(0x1ab)][_0x59f75d(0x1a1)]-0x1];}[a205_0x5c2454(0x186)](_0x4c2eaa,_0x411360){const _0x1a34bc=a205_0x5c2454;return this[_0x1a34bc(0x1ab)][_0x1a34bc(0x16d)](_0x1abba3=>{const _0x22dc7c=_0x1a34bc;if(_0x1abba3[_0x22dc7c(0x17f)][_0x22dc7c(0x18d)]()!==_0x4c2eaa[_0x22dc7c(0x18d)]())return![];if(typeof _0x411360===_0x22dc7c(0x1b4))return _0x1abba3[_0x22dc7c(0x16c)]['includes'](_0x411360);return _0x411360[_0x22dc7c(0x1a2)](_0x1abba3[_0x22dc7c(0x16c)]);});}[a205_0x5c2454(0x18c)](_0x90ec5e){const _0x5cbfa6=a205_0x5c2454;return this[_0x5cbfa6(0x1b3)][_0x90ec5e]?.[_0x5cbfa6(0x173)]??0x0;}['reset'](){const _0x3e1cc3=a205_0x5c2454;this[_0x3e1cc3(0x1b3)]=[],this[_0x3e1cc3(0x1ab)]=[],this[_0x3e1cc3(0x18b)]=null;}static[a205_0x5c2454(0x17b)](_0x60a24d){const _0x2af976=a205_0x5c2454,_0x24d538={0xc8:'OK',0xc9:_0x2af976(0x19f),0xcc:'No\x20Content',0x190:_0x2af976(0x1a5),0x191:_0x2af976(0x180),0x193:'Forbidden',0x194:'Not\x20Found',0x199:'Conflict',0x1a6:_0x2af976(0x1a0),0x1ad:_0x2af976(0x1a4),0x1f4:_0x2af976(0x1a9),0x1f6:_0x2af976(0x188),0x1f7:_0x2af976(0x1a3)};return _0x24d538[_0x60a24d]??_0x2af976(0x175);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a205_0x2939(){const _0xbd826f=['2954777tVpHxY','getStatusText','searchParams','unnamed\x20stub','2965SWWRnA','method','Unauthorized','register','forEach','simple','\x20\x20(none)','getRequests','wasCalled','get','Bad\x20Gateway','REST','parseRequest','fetchMock','getMatchCount','toUpperCase','responder','GET','stack','filter','matched','verify','12jNloBR','entries','174DBTWWF','errorResponse','error','stringify','jsonResponseWithHeaders','text/plain','77181UCdEQv','toLowerCase','parse','Created','Unprocessable\x20Entity','length','test','Service\x20Unavailable','Too\x20Many\x20Requests','Bad\x20Request','withBody','33156JznNkC','application/json','Internal\x20Server\x20Error','Request\x20body:\x20','requests','function','8oCrbbJ','https://api.treasuredata.com/errors/','headers','push','pathname','375hZjEtR','stubs','string','map','createFetch','jsonResponse','every','Unmatched\x20stub','rfc9457','textResponse','description','join','11477580dadPPH','url','some','withQuery','isArray','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','No\x20stub\x20matched\x20request:\x20','91240AmNBrq','matchCount','body','Unknown','3817413nBFflJ','209zvDGJE','mockImplementation','registerWithInspector'];a205_0x2939=function(){return _0xbd826f;};return a205_0x2939();}
@@ -1 +1 @@
1
- function a206_0x4263(){var _0x4f5740=['2516652pEmkcb','422002WjJhtk','80EICsea','215618Zzepyq','5010510hsxlty','68988jBYUtz','10wdyUrl','275014lkoeBT','15018309jMvMsj'];a206_0x4263=function(){return _0x4f5740;};return a206_0x4263();}(function(_0x5b1b67,_0x38670f){var _0xfbba04=a206_0x3c4f,_0x5c7aed=_0x5b1b67();while(!![]){try{var _0x38b85f=-parseInt(_0xfbba04(0x185))/0x1+parseInt(_0xfbba04(0x189))/0x2+-parseInt(_0xfbba04(0x18b))/0x3+-parseInt(_0xfbba04(0x187))/0x4*(parseInt(_0xfbba04(0x188))/0x5)+-parseInt(_0xfbba04(0x186))/0x6+-parseInt(_0xfbba04(0x18c))/0x7*(-parseInt(_0xfbba04(0x184))/0x8)+parseInt(_0xfbba04(0x18a))/0x9;if(_0x38b85f===_0x38670f)break;else _0x5c7aed['push'](_0x5c7aed['shift']());}catch(_0x4f6c9f){_0x5c7aed['push'](_0x5c7aed['shift']());}}}(a206_0x4263,0x7667b));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a206_0x3c4f(_0x45697e,_0x30f191){_0x45697e=_0x45697e-0x184;var _0x426370=a206_0x4263();var _0x3c4fac=_0x426370[_0x45697e];return _0x3c4fac;}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 a206_0x82b4(_0x42fc62,_0x5680ce){_0x42fc62=_0x42fc62-0xc6;var _0x5c0f9f=a206_0x5c0f();var _0x82b44c=_0x5c0f9f[_0x42fc62];return _0x82b44c;}(function(_0x1e3e4b,_0x33feae){var _0x1fc841=a206_0x82b4,_0x5b7bda=_0x1e3e4b();while(!![]){try{var _0x430976=parseInt(_0x1fc841(0xc7))/0x1*(parseInt(_0x1fc841(0xd0))/0x2)+parseInt(_0x1fc841(0xc9))/0x3+-parseInt(_0x1fc841(0xca))/0x4*(-parseInt(_0x1fc841(0xc6))/0x5)+-parseInt(_0x1fc841(0xcd))/0x6+parseInt(_0x1fc841(0xcc))/0x7+parseInt(_0x1fc841(0xce))/0x8*(-parseInt(_0x1fc841(0xcb))/0x9)+-parseInt(_0x1fc841(0xcf))/0xa*(parseInt(_0x1fc841(0xc8))/0xb);if(_0x430976===_0x33feae)break;else _0x5b7bda['push'](_0x5b7bda['shift']());}catch(_0x16cb86){_0x5b7bda['push'](_0x5b7bda['shift']());}}}(a206_0x5c0f,0x934cf));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a206_0x5c0f(){var _0x1466c2=['50088YfMsKZ','10xvZQod','6390RTvsRS','5nkjcBz','165wGOdwZ','29011477ydIMXX','3297009ypcEno','4288628YLPBHI','405LIQmcn','6434750mSKLnR','570540IFvCYT'];a206_0x5c0f=function(){return _0x1466c2;};return a206_0x5c0f();}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x4ce6cb,_0x4179e9){const _0x483d11=a207_0x39d7,_0x364739=_0x4ce6cb();while(!![]){try{const _0x2e939f=-parseInt(_0x483d11(0x11d))/0x1*(parseInt(_0x483d11(0x120))/0x2)+-parseInt(_0x483d11(0x12d))/0x3*(parseInt(_0x483d11(0x121))/0x4)+parseInt(_0x483d11(0x12a))/0x5*(-parseInt(_0x483d11(0x12c))/0x6)+-parseInt(_0x483d11(0x125))/0x7+parseInt(_0x483d11(0x127))/0x8+-parseInt(_0x483d11(0x12b))/0x9*(-parseInt(_0x483d11(0x129))/0xa)+parseInt(_0x483d11(0x124))/0xb*(parseInt(_0x483d11(0x122))/0xc);if(_0x2e939f===_0x4179e9)break;else _0x364739['push'](_0x364739['shift']());}catch(_0x6aced2){_0x364739['push'](_0x364739['shift']());}}}(a207_0x1fd8,0xa103b));function a207_0x39d7(_0x43e107,_0x26e023){_0x43e107=_0x43e107-0x11d;const _0x1fd80a=a207_0x1fd8();let _0x39d7ae=_0x1fd80a[_0x43e107];return _0x39d7ae;}function a207_0x1fd8(){const _0x3550a9=['30QPTYNt','274115AjAqiE','582651wVFcwR','12yXBxLd','9sbzsnq','5etVvaH','push','slice','275054RJDtYS','825992AAapSF','4540164TCLqsI','map','77fraefz','5574037FiYrFQ','all','239480ikxSpN','length'];a207_0x1fd8=function(){return _0x3550a9;};return a207_0x1fd8();}export async function batchAsync(_0x2fe8e5,_0x1d050f,_0x5ecf98=0xa){const _0x386d3a=a207_0x39d7,_0x1b21cc=[];for(let _0x391dc9=0x0;_0x391dc9<_0x2fe8e5[_0x386d3a(0x128)];_0x391dc9+=_0x5ecf98){const _0x5ee063=_0x2fe8e5[_0x386d3a(0x11f)](_0x391dc9,_0x391dc9+_0x5ecf98),_0x5d6880=await Promise[_0x386d3a(0x126)](_0x5ee063[_0x386d3a(0x123)](_0x1d050f));_0x1b21cc[_0x386d3a(0x11e)](..._0x5d6880);}return _0x1b21cc;}
1
+ (function(_0x360eae,_0x473f51){const _0x2d28d4=a207_0x1c6d,_0x6111ef=_0x360eae();while(!![]){try{const _0xa2ec3d=parseInt(_0x2d28d4(0x143))/0x1+parseInt(_0x2d28d4(0x142))/0x2+-parseInt(_0x2d28d4(0x13c))/0x3+parseInt(_0x2d28d4(0x137))/0x4*(parseInt(_0x2d28d4(0x13e))/0x5)+-parseInt(_0x2d28d4(0x136))/0x6*(-parseInt(_0x2d28d4(0x139))/0x7)+-parseInt(_0x2d28d4(0x140))/0x8*(parseInt(_0x2d28d4(0x138))/0x9)+-parseInt(_0x2d28d4(0x13d))/0xa*(parseInt(_0x2d28d4(0x13a))/0xb);if(_0xa2ec3d===_0x473f51)break;else _0x6111ef['push'](_0x6111ef['shift']());}catch(_0x460182){_0x6111ef['push'](_0x6111ef['shift']());}}}(a207_0x5bf4,0x3cd80));function a207_0x5bf4(){const _0x32e4ae=['slice','1374tbuxYz','4nmGQCi','260910IeTnkA','6860nSsVIR','11bMQmwE','push','259050Ddrnqk','2680270IVxdiX','38365QpASyJ','map','88jtkDiG','length','533406bjcSJn','423687ZvCxIx'];a207_0x5bf4=function(){return _0x32e4ae;};return a207_0x5bf4();}function a207_0x1c6d(_0x49685a,_0x4227df){_0x49685a=_0x49685a-0x135;const _0x5bf40a=a207_0x5bf4();let _0x1c6d7d=_0x5bf40a[_0x49685a];return _0x1c6d7d;}export async function batchAsync(_0x5601f8,_0x3de6e7,_0x24eb3f=0xa){const _0x15ba61=a207_0x1c6d,_0x34a487=[];for(let _0x50e37d=0x0;_0x50e37d<_0x5601f8[_0x15ba61(0x141)];_0x50e37d+=_0x24eb3f){const _0x4b494b=_0x5601f8[_0x15ba61(0x135)](_0x50e37d,_0x50e37d+_0x24eb3f),_0x223215=await Promise['all'](_0x4b494b[_0x15ba61(0x13f)](_0x3de6e7));_0x34a487[_0x15ba61(0x13b)](..._0x223215);}return _0x34a487;}
@@ -1 +1 @@
1
- const a208_0x50abf7=a208_0x3c16;(function(_0x51fa2a,_0x41023d){const _0x5403b5=a208_0x3c16,_0x9e9023=_0x51fa2a();while(!![]){try{const _0x519c4f=-parseInt(_0x5403b5(0x90))/0x1+-parseInt(_0x5403b5(0x98))/0x2*(parseInt(_0x5403b5(0x8a))/0x3)+-parseInt(_0x5403b5(0x8d))/0x4*(-parseInt(_0x5403b5(0x93))/0x5)+-parseInt(_0x5403b5(0x9f))/0x6*(-parseInt(_0x5403b5(0xa1))/0x7)+-parseInt(_0x5403b5(0x9d))/0x8+parseInt(_0x5403b5(0x85))/0x9*(-parseInt(_0x5403b5(0x95))/0xa)+parseInt(_0x5403b5(0x94))/0xb;if(_0x519c4f===_0x41023d)break;else _0x9e9023['push'](_0x9e9023['shift']());}catch(_0x54aab8){_0x9e9023['push'](_0x9e9023['shift']());}}}(a208_0x1a29,0xd5d6f));import*as a208_0x231765 from'chalk';const Chalk=a208_0x231765[a208_0x50abf7(0x91)];function a208_0x3c16(_0x30f7df,_0x28320d){_0x30f7df=_0x30f7df-0x85;const _0x1a2965=a208_0x1a29();let _0x3c16c6=_0x1a2965[_0x30f7df];return _0x3c16c6;}export function shouldUseColor(_0x192c3d={}){const _0xb4b462=a208_0x50abf7;if(_0x192c3d[_0xb4b462(0x8c)]===!![])return![];if(_0x192c3d[_0xb4b462(0x9c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0xb4b462(0x86)][_0xb4b462(0x9a)]??![];}export function getChalk(_0x36063f={}){if(shouldUseColor(_0x36063f))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x514d50,_0x3bac6e={}){const _0x4bdf7c=a208_0x50abf7;return getChalk(_0x3bac6e)[_0x4bdf7c(0xa0)](_0x514d50);}export function colorHeader(_0x49409c,_0x44fc59={}){return getChalk(_0x44fc59)['cyan'](_0x49409c);}export function colorType(_0x3c2f7a,_0x20d7f0={}){return getChalk(_0x20d7f0)['dim'](_0x3c2f7a);}export function colorJSONKey(_0x339db7,_0x58ecd9={}){return getChalk(_0x58ecd9)['blue'](_0x339db7);}export function colorJSONString(_0xc1c1fa,_0xff1ccd={}){return getChalk(_0xff1ccd)['green'](_0xc1c1fa);}export function colorJSONNumber(_0x560811,_0x5c97c2={}){const _0x500ac6=a208_0x50abf7;return getChalk(_0x5c97c2)[_0x500ac6(0x88)](_0x560811);}export function colorJSONBoolean(_0x27031a,_0x20388d={}){return getChalk(_0x20388d)['yellow'](_0x27031a);}export function colorJSONNull(_0x47732a,_0x1dcd8b={}){const _0x3ad6a8=a208_0x50abf7;return getChalk(_0x1dcd8b)[_0x3ad6a8(0xa0)](_0x47732a);}function a208_0x1a29(){const _0x498d21=['isTTY','join','color','11086112JMWofU','number','1305534WNBKoe','dim','7AJvVJE','boolean','9WNDLdc','stdout','stringify','cyan','repeat','465549PzimWB','length','noColor','116ABFfpf','object','string','865546GKuOsK','Chalk','isArray','48695DrYgue','62794446mDZnZl','16847620tqBGhZ','entries','null','18rbggVo','map'];a208_0x1a29=function(){return _0x498d21;};return a208_0x1a29();}export function colorizeJSONCompact(_0xe6561e,_0x25bea={}){const _0x3000cf=a208_0x50abf7;if(!shouldUseColor(_0x25bea))return JSON[_0x3000cf(0x87)](_0xe6561e);if(_0xe6561e===null)return colorJSONNull(_0x3000cf(0x97),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0xa2))return colorJSONBoolean(String(_0xe6561e),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0x9e))return colorJSONNumber(String(_0xe6561e),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0x8f))return colorJSONString(JSON[_0x3000cf(0x87)](_0xe6561e),_0x25bea);if(Array[_0x3000cf(0x92)](_0xe6561e)){if(_0xe6561e[_0x3000cf(0x8b)]===0x0)return'[]';const _0x4d2d4c=_0xe6561e[_0x3000cf(0x99)](_0x266403=>colorizeJSONCompact(_0x266403,_0x25bea));return'['+_0x4d2d4c['join'](',')+']';}if(typeof _0xe6561e===_0x3000cf(0x8e)){const _0x54264a=Object['entries'](_0xe6561e);if(_0x54264a[_0x3000cf(0x8b)]===0x0)return'{}';const _0x4049bf=_0x54264a[_0x3000cf(0x99)](([_0x1f1e91,_0x46721e])=>{const _0x52f33b=_0x3000cf,_0x470f83=colorJSONKey(JSON[_0x52f33b(0x87)](_0x1f1e91),_0x25bea),_0x1109d0=colorizeJSONCompact(_0x46721e,_0x25bea);return _0x470f83+':'+_0x1109d0;});return'{'+_0x4049bf[_0x3000cf(0x9b)](',')+'}';}return String(_0xe6561e);}export function colorizeJSON(_0x5da594,_0x528176={},_0x53315e=0x0){const _0x6d1de9=a208_0x50abf7;if(!shouldUseColor(_0x528176))return JSON[_0x6d1de9(0x87)](_0x5da594,null,0x2);const _0x5749fe='\x20'[_0x6d1de9(0x89)](_0x53315e),_0x5cefd2=_0x53315e+0x2;if(_0x5da594===null)return colorJSONNull('null',_0x528176);if(typeof _0x5da594==='boolean')return colorJSONBoolean(String(_0x5da594),_0x528176);if(typeof _0x5da594==='number')return colorJSONNumber(String(_0x5da594),_0x528176);if(typeof _0x5da594===_0x6d1de9(0x8f))return colorJSONString(JSON[_0x6d1de9(0x87)](_0x5da594),_0x528176);if(Array[_0x6d1de9(0x92)](_0x5da594)){if(_0x5da594['length']===0x0)return'[]';const _0x1e5ee1=_0x5da594['map'](_0x428314=>{const _0x19713b=_0x6d1de9,_0x5b55ac=colorizeJSON(_0x428314,_0x528176,_0x5cefd2);return''+'\x20'[_0x19713b(0x89)](_0x5cefd2)+_0x5b55ac;});return'[\x0a'+_0x1e5ee1[_0x6d1de9(0x9b)](',\x0a')+('\x0a'+_0x5749fe+']');}if(typeof _0x5da594==='object'){const _0x80fcea=Object[_0x6d1de9(0x96)](_0x5da594);if(_0x80fcea[_0x6d1de9(0x8b)]===0x0)return'{}';const _0x12255d=_0x80fcea[_0x6d1de9(0x99)](([_0xd6c970,_0x1e07b4])=>{const _0x41be61=_0x6d1de9,_0xedb65d=colorJSONKey(JSON[_0x41be61(0x87)](_0xd6c970),_0x528176),_0x3ee635=colorizeJSON(_0x1e07b4,_0x528176,_0x5cefd2);return''+'\x20'[_0x41be61(0x89)](_0x5cefd2)+_0xedb65d+':\x20'+_0x3ee635;});return'{\x0a'+_0x12255d[_0x6d1de9(0x9b)](',\x0a')+('\x0a'+_0x5749fe+'}');}return String(_0x5da594);}
1
+ (function(_0x308650,_0x29c831){const _0x542d57=a208_0x4e20,_0x1874fb=_0x308650();while(!![]){try{const _0x2fc527=parseInt(_0x542d57(0x17f))/0x1+parseInt(_0x542d57(0x17b))/0x2*(-parseInt(_0x542d57(0x17c))/0x3)+-parseInt(_0x542d57(0x17e))/0x4*(parseInt(_0x542d57(0x17a))/0x5)+parseInt(_0x542d57(0x16b))/0x6*(-parseInt(_0x542d57(0x173))/0x7)+parseInt(_0x542d57(0x16c))/0x8*(-parseInt(_0x542d57(0x186))/0x9)+parseInt(_0x542d57(0x17d))/0xa*(parseInt(_0x542d57(0x181))/0xb)+parseInt(_0x542d57(0x16a))/0xc;if(_0x2fc527===_0x29c831)break;else _0x1874fb['push'](_0x1874fb['shift']());}catch(_0x3e637e){_0x1874fb['push'](_0x1874fb['shift']());}}}(a208_0x416b,0xea4b5));import*as a208_0x2eb5fb from'chalk';const Chalk=a208_0x2eb5fb['Chalk'];function a208_0x416b(){const _0x4e2769=['number','isArray','color','stringify','length','2302785psyaGO','44iooQgS','251973qAOCPF','1551970hOzqip','8rEWzOc','247975zcmuGk','repeat','22ngmKVI','dim','string','entries','boolean','3794994fKvjxr','null','72791844VoAwJG','7254642dAyajN','32vwzeUZ','blue','isTTY','object','join','green','cyan','7yZwaPF','map'];a208_0x416b=function(){return _0x4e2769;};return a208_0x416b();}function a208_0x4e20(_0x2146f8,_0x41dcfd){_0x2146f8=_0x2146f8-0x169;const _0x416b07=a208_0x416b();let _0x4e2019=_0x416b07[_0x2146f8];return _0x4e2019;}export function shouldUseColor(_0x34ae22={}){const _0x38914b=a208_0x4e20;if(_0x34ae22['noColor']===!![])return![];if(_0x34ae22[_0x38914b(0x177)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x38914b(0x16e)]??![];}export function getChalk(_0x103090={}){if(shouldUseColor(_0x103090))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xb0aa30,_0xa1fc6c={}){const _0x2d546d=a208_0x4e20;return getChalk(_0xa1fc6c)[_0x2d546d(0x182)](_0xb0aa30);}export function colorHeader(_0x20eb0f,_0x556c9b={}){const _0x13f925=a208_0x4e20;return getChalk(_0x556c9b)[_0x13f925(0x172)](_0x20eb0f);}export function colorType(_0x3303db,_0x5a20a6={}){const _0x2617a0=a208_0x4e20;return getChalk(_0x5a20a6)[_0x2617a0(0x182)](_0x3303db);}export function colorJSONKey(_0x1d53d8,_0x169bb0={}){const _0x298599=a208_0x4e20;return getChalk(_0x169bb0)[_0x298599(0x16d)](_0x1d53d8);}export function colorJSONString(_0x560d,_0x506306={}){const _0x1fa1cd=a208_0x4e20;return getChalk(_0x506306)[_0x1fa1cd(0x171)](_0x560d);}export function colorJSONNumber(_0x1bfeea,_0x51254a={}){return getChalk(_0x51254a)['cyan'](_0x1bfeea);}export function colorJSONBoolean(_0x28c739,_0x2fa987={}){return getChalk(_0x2fa987)['yellow'](_0x28c739);}export function colorJSONNull(_0x3f2ff6,_0x1adced={}){const _0x665cb=a208_0x4e20;return getChalk(_0x1adced)[_0x665cb(0x182)](_0x3f2ff6);}export function colorizeJSONCompact(_0x11739e,_0x496515={}){const _0x24a3ac=a208_0x4e20;if(!shouldUseColor(_0x496515))return JSON[_0x24a3ac(0x178)](_0x11739e);if(_0x11739e===null)return colorJSONNull(_0x24a3ac(0x169),_0x496515);if(typeof _0x11739e==='boolean')return colorJSONBoolean(String(_0x11739e),_0x496515);if(typeof _0x11739e===_0x24a3ac(0x175))return colorJSONNumber(String(_0x11739e),_0x496515);if(typeof _0x11739e===_0x24a3ac(0x183))return colorJSONString(JSON[_0x24a3ac(0x178)](_0x11739e),_0x496515);if(Array[_0x24a3ac(0x176)](_0x11739e)){if(_0x11739e['length']===0x0)return'[]';const _0x48b034=_0x11739e['map'](_0x192c3a=>colorizeJSONCompact(_0x192c3a,_0x496515));return'['+_0x48b034[_0x24a3ac(0x170)](',')+']';}if(typeof _0x11739e===_0x24a3ac(0x16f)){const _0x5a577a=Object[_0x24a3ac(0x184)](_0x11739e);if(_0x5a577a[_0x24a3ac(0x179)]===0x0)return'{}';const _0x26079c=_0x5a577a['map'](([_0x2fb373,_0x577137])=>{const _0x22c866=colorJSONKey(JSON['stringify'](_0x2fb373),_0x496515),_0x4d1677=colorizeJSONCompact(_0x577137,_0x496515);return _0x22c866+':'+_0x4d1677;});return'{'+_0x26079c['join'](',')+'}';}return String(_0x11739e);}export function colorizeJSON(_0x3faaed,_0x4d8287={},_0x288dd2=0x0){const _0x4bfe07=a208_0x4e20;if(!shouldUseColor(_0x4d8287))return JSON['stringify'](_0x3faaed,null,0x2);const _0x485b9d='\x20'[_0x4bfe07(0x180)](_0x288dd2),_0x1710f4=_0x288dd2+0x2;if(_0x3faaed===null)return colorJSONNull('null',_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x185))return colorJSONBoolean(String(_0x3faaed),_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x175))return colorJSONNumber(String(_0x3faaed),_0x4d8287);if(typeof _0x3faaed===_0x4bfe07(0x183))return colorJSONString(JSON[_0x4bfe07(0x178)](_0x3faaed),_0x4d8287);if(Array[_0x4bfe07(0x176)](_0x3faaed)){if(_0x3faaed[_0x4bfe07(0x179)]===0x0)return'[]';const _0x5e9331=_0x3faaed[_0x4bfe07(0x174)](_0x557700=>{const _0x57e4e0=_0x4bfe07,_0x422330=colorizeJSON(_0x557700,_0x4d8287,_0x1710f4);return''+'\x20'[_0x57e4e0(0x180)](_0x1710f4)+_0x422330;});return'[\x0a'+_0x5e9331['join'](',\x0a')+('\x0a'+_0x485b9d+']');}if(typeof _0x3faaed===_0x4bfe07(0x16f)){const _0x4e85d5=Object[_0x4bfe07(0x184)](_0x3faaed);if(_0x4e85d5[_0x4bfe07(0x179)]===0x0)return'{}';const _0x330e19=_0x4e85d5[_0x4bfe07(0x174)](([_0x2d11ba,_0x4b1c83])=>{const _0x5e31ee=_0x4bfe07,_0x549924=colorJSONKey(JSON[_0x5e31ee(0x178)](_0x2d11ba),_0x4d8287),_0x27160d=colorizeJSON(_0x4b1c83,_0x4d8287,_0x1710f4);return''+'\x20'['repeat'](_0x1710f4)+_0x549924+':\x20'+_0x27160d;});return'{\x0a'+_0x330e19[_0x4bfe07(0x170)](',\x0a')+('\x0a'+_0x485b9d+'}');}return String(_0x3faaed);}
@@ -1 +1 @@
1
- (function(_0x286bad,_0x37686c){const _0x2fb287=a209_0xd360,_0x733801=_0x286bad();while(!![]){try{const _0x43a5c2=-parseInt(_0x2fb287(0x1e1))/0x1*(-parseInt(_0x2fb287(0x1ef))/0x2)+-parseInt(_0x2fb287(0x1db))/0x3*(-parseInt(_0x2fb287(0x1f8))/0x4)+-parseInt(_0x2fb287(0x1eb))/0x5*(parseInt(_0x2fb287(0x1f5))/0x6)+-parseInt(_0x2fb287(0x1ed))/0x7+parseInt(_0x2fb287(0x1ea))/0x8*(parseInt(_0x2fb287(0x1ee))/0x9)+parseInt(_0x2fb287(0x1e2))/0xa+parseInt(_0x2fb287(0x1d6))/0xb;if(_0x43a5c2===_0x37686c)break;else _0x733801['push'](_0x733801['shift']());}catch(_0x17fa23){_0x733801['push'](_0x733801['shift']());}}}(a209_0x44a1,0x1aa6b));import a209_0x2a08a5 from'chalk';export function generateDiff(_0x2e4581,_0x46c7bc){const _0x24d1c2=a209_0xd360,_0x35ccc1=_0x2e4581['split']('\x0a'),_0x51f930=_0x46c7bc[_0x24d1c2(0x1e9)]('\x0a'),_0x3f23b3=[],_0x94375e=computeLCS(_0x35ccc1,_0x51f930);let _0x198dc6=0x0,_0x413828=0x0,_0x447f9d=0x0;while(_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]||_0x413828<_0x51f930[_0x24d1c2(0x1f4)]){if(_0x447f9d<_0x94375e[_0x24d1c2(0x1f4)]&&_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]&&_0x35ccc1[_0x198dc6]===_0x94375e[_0x447f9d])_0x413828<_0x51f930[_0x24d1c2(0x1f4)]&&_0x51f930[_0x413828]===_0x94375e[_0x447f9d]?(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1dd),'content':_0x35ccc1[_0x198dc6]}),_0x198dc6++,_0x413828++,_0x447f9d++):(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e6),'content':_0x51f930[_0x413828]}),_0x413828++);else{if(_0x447f9d<_0x94375e[_0x24d1c2(0x1f4)]&&_0x413828<_0x51f930['length']&&_0x51f930[_0x413828]===_0x94375e[_0x447f9d])_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e0),'content':_0x35ccc1[_0x198dc6]}),_0x198dc6++;else{if(_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]&&(_0x447f9d>=_0x94375e[_0x24d1c2(0x1f4)]||_0x35ccc1[_0x198dc6]!==_0x94375e[_0x447f9d]))_0x3f23b3[_0x24d1c2(0x1df)]({'type':'removed','content':_0x35ccc1[_0x198dc6]}),_0x198dc6++;else _0x413828<_0x51f930[_0x24d1c2(0x1f4)]&&(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e6),'content':_0x51f930[_0x413828]}),_0x413828++);}}}return _0x3f23b3;}function computeLCS(_0xff1a1d,_0x64d894){const _0x37af06=a209_0xd360,_0x4fd77b=_0xff1a1d[_0x37af06(0x1f4)],_0x3ca80f=_0x64d894[_0x37af06(0x1f4)],_0x336969=Array(_0x4fd77b+0x1)['fill'](null)[_0x37af06(0x1d4)](()=>Array(_0x3ca80f+0x1)[_0x37af06(0x1d5)](0x0));for(let _0xede2ef=0x1;_0xede2ef<=_0x4fd77b;_0xede2ef++){for(let _0x4d3a1f=0x1;_0x4d3a1f<=_0x3ca80f;_0x4d3a1f++){_0xff1a1d[_0xede2ef-0x1]===_0x64d894[_0x4d3a1f-0x1]?_0x336969[_0xede2ef][_0x4d3a1f]=_0x336969[_0xede2ef-0x1][_0x4d3a1f-0x1]+0x1:_0x336969[_0xede2ef][_0x4d3a1f]=Math['max'](_0x336969[_0xede2ef-0x1][_0x4d3a1f],_0x336969[_0xede2ef][_0x4d3a1f-0x1]);}}const _0x5cf08b=[];let _0xefbfe2=_0x4fd77b,_0x199d12=_0x3ca80f;while(_0xefbfe2>0x0&&_0x199d12>0x0){if(_0xff1a1d[_0xefbfe2-0x1]===_0x64d894[_0x199d12-0x1])_0x5cf08b[_0x37af06(0x1e8)](_0xff1a1d[_0xefbfe2-0x1]),_0xefbfe2--,_0x199d12--;else _0x336969[_0xefbfe2-0x1][_0x199d12]>_0x336969[_0xefbfe2][_0x199d12-0x1]?_0xefbfe2--:_0x199d12--;}return _0x5cf08b;}function a209_0x44a1(){const _0x325dc2=['removed','15966qsRZCT','1742260UEsqtH','forEach','\x20-\x20','\x20+\x20','added','red','unshift','split','8HJTmWm','5Svofvv','new','708799DymdRb','444519MoeRTF','2EDrloB','old','content','repeat','min','length','699348MYOZUc','some','green','3716lperXV','map','fill','194920RvwAFk','max','add','type','dim','225VMIYBv','size','unchanged','\x20\x20...','push'];a209_0x44a1=function(){return _0x325dc2;};return a209_0x44a1();}export function formatDiffWithColors(_0x1e1880,_0x1c8c3f=0x3){const _0x2e2fe2=a209_0xd360,_0x598feb=new Set();_0x1e1880[_0x2e2fe2(0x1e3)]((_0x1b4c21,_0x5021d8)=>{const _0x5d6793=_0x2e2fe2;_0x1b4c21[_0x5d6793(0x1d9)]!=='unchanged'&&_0x598feb['add'](_0x5021d8);});if(_0x598feb[_0x2e2fe2(0x1dc)]===0x0)return'';const _0x1f1e0a=new Set();for(const _0x9f6f3c of _0x598feb){for(let _0x52626c=Math[_0x2e2fe2(0x1d7)](0x0,_0x9f6f3c-_0x1c8c3f);_0x52626c<=Math[_0x2e2fe2(0x1f3)](_0x1e1880[_0x2e2fe2(0x1f4)]-0x1,_0x9f6f3c+_0x1c8c3f);_0x52626c++){_0x1f1e0a[_0x2e2fe2(0x1d8)](_0x52626c);}}const _0x55336d=[];let _0x335aa1=-0x1;const _0x158c00=_0x1e1880[_0x2e2fe2(0x1f4)],_0x555eba=Math[_0x2e2fe2(0x1d7)](0x3,String(_0x158c00)[_0x2e2fe2(0x1f4)]),_0x44c6de=[];let _0x5c6467=0x0,_0x548f43=0x0;for(const _0x5d6200 of _0x1e1880){if(_0x5d6200[_0x2e2fe2(0x1d9)]===_0x2e2fe2(0x1e0))_0x5c6467++,_0x44c6de[_0x2e2fe2(0x1df)]({'old':_0x5c6467,'new':0x0});else _0x5d6200[_0x2e2fe2(0x1d9)]==='added'?(_0x548f43++,_0x44c6de[_0x2e2fe2(0x1df)]({'old':0x0,'new':_0x548f43})):(_0x5c6467++,_0x548f43++,_0x44c6de['push']({'old':_0x5c6467,'new':_0x548f43}));}for(let _0x2d5961=0x0;_0x2d5961<_0x1e1880[_0x2e2fe2(0x1f4)];_0x2d5961++){if(!_0x1f1e0a['has'](_0x2d5961))continue;_0x335aa1!==-0x1&&_0x2d5961>_0x335aa1+0x1&&_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5['cyan'](_0x2e2fe2(0x1de)));_0x335aa1=_0x2d5961;const _0x16027a=_0x1e1880[_0x2d5961],_0x36db8e=_0x44c6de[_0x2d5961],_0x3cdfc6=_0x36db8e[_0x2e2fe2(0x1f0)]>0x0?String(_0x36db8e['old'])['padStart'](_0x555eba):'\x20'[_0x2e2fe2(0x1f2)](_0x555eba),_0x3d6eb4=_0x36db8e[_0x2e2fe2(0x1ec)]>0x0?String(_0x36db8e[_0x2e2fe2(0x1ec)])['padStart'](_0x555eba):'\x20'['repeat'](_0x555eba);switch(_0x16027a[_0x2e2fe2(0x1d9)]){case _0x2e2fe2(0x1e0):_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5[_0x2e2fe2(0x1e7)](_0x3cdfc6+'\x20'+_0x3d6eb4+_0x2e2fe2(0x1e4)+_0x16027a['content']));break;case _0x2e2fe2(0x1e6):_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5[_0x2e2fe2(0x1f7)](_0x3cdfc6+'\x20'+_0x3d6eb4+_0x2e2fe2(0x1e5)+_0x16027a[_0x2e2fe2(0x1f1)]));break;default:_0x55336d['push'](a209_0x2a08a5[_0x2e2fe2(0x1da)](_0x3cdfc6+'\x20'+_0x3d6eb4+'\x20\x20\x20'+_0x16027a['content']));break;}}return _0x55336d['join']('\x0a');}function a209_0xd360(_0x1aa46c,_0x93941a){_0x1aa46c=_0x1aa46c-0x1d4;const _0x44a10c=a209_0x44a1();let _0xd3604b=_0x44a10c[_0x1aa46c];return _0xd3604b;}export function hasChanges(_0x3af418){const _0xfabe36=a209_0xd360;return _0x3af418[_0xfabe36(0x1f6)](_0x3bb3e7=>_0x3bb3e7[_0xfabe36(0x1d9)]!==_0xfabe36(0x1dd));}
1
+ (function(_0x4283d,_0x2879ea){const _0x55be7c=a209_0x3f65,_0x165fc0=_0x4283d();while(!![]){try{const _0x25fee5=parseInt(_0x55be7c(0x103))/0x1*(-parseInt(_0x55be7c(0x104))/0x2)+-parseInt(_0x55be7c(0xff))/0x3*(parseInt(_0x55be7c(0x10b))/0x4)+-parseInt(_0x55be7c(0xfa))/0x5*(-parseInt(_0x55be7c(0x109))/0x6)+parseInt(_0x55be7c(0x10f))/0x7+parseInt(_0x55be7c(0xfc))/0x8*(parseInt(_0x55be7c(0x11b))/0x9)+-parseInt(_0x55be7c(0x117))/0xa+parseInt(_0x55be7c(0x106))/0xb;if(_0x25fee5===_0x2879ea)break;else _0x165fc0['push'](_0x165fc0['shift']());}catch(_0x31f483){_0x165fc0['push'](_0x165fc0['shift']());}}}(a209_0x4e32,0x18c75));import a209_0xcf770e from'chalk';export function generateDiff(_0x59da4f,_0x2454e1){const _0x30594b=a209_0x3f65,_0x1ef0dc=_0x59da4f[_0x30594b(0x107)]('\x0a'),_0x58580b=_0x2454e1['split']('\x0a'),_0x191dd2=[],_0x37d588=computeLCS(_0x1ef0dc,_0x58580b);let _0xf3bc19=0x0,_0x3b1c6a=0x0,_0x2dbc4b=0x0;while(_0xf3bc19<_0x1ef0dc['length']||_0x3b1c6a<_0x58580b[_0x30594b(0x10e)]){if(_0x2dbc4b<_0x37d588['length']&&_0xf3bc19<_0x1ef0dc[_0x30594b(0x10e)]&&_0x1ef0dc[_0xf3bc19]===_0x37d588[_0x2dbc4b])_0x3b1c6a<_0x58580b['length']&&_0x58580b[_0x3b1c6a]===_0x37d588[_0x2dbc4b]?(_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0xfd),'content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++,_0x3b1c6a++,_0x2dbc4b++):(_0x191dd2['push']({'type':_0x30594b(0xfb),'content':_0x58580b[_0x3b1c6a]}),_0x3b1c6a++);else{if(_0x2dbc4b<_0x37d588[_0x30594b(0x10e)]&&_0x3b1c6a<_0x58580b['length']&&_0x58580b[_0x3b1c6a]===_0x37d588[_0x2dbc4b])_0x191dd2[_0x30594b(0x105)]({'type':'removed','content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++;else{if(_0xf3bc19<_0x1ef0dc['length']&&(_0x2dbc4b>=_0x37d588['length']||_0x1ef0dc[_0xf3bc19]!==_0x37d588[_0x2dbc4b]))_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0x100),'content':_0x1ef0dc[_0xf3bc19]}),_0xf3bc19++;else _0x3b1c6a<_0x58580b[_0x30594b(0x10e)]&&(_0x191dd2[_0x30594b(0x105)]({'type':_0x30594b(0xfb),'content':_0x58580b[_0x3b1c6a]}),_0x3b1c6a++);}}}return _0x191dd2;}function a209_0x3f65(_0x5c6638,_0x2f1245){_0x5c6638=_0x5c6638-0xf9;const _0x4e322d=a209_0x4e32();let _0x3f65c0=_0x4e322d[_0x5c6638];return _0x3f65c0;}function computeLCS(_0x378ddd,_0x4c4006){const _0x17f783=a209_0x3f65,_0x506608=_0x378ddd[_0x17f783(0x10e)],_0x425a7b=_0x4c4006[_0x17f783(0x10e)],_0x10b3b0=Array(_0x506608+0x1)[_0x17f783(0x10d)](null)[_0x17f783(0x11d)](()=>Array(_0x425a7b+0x1)['fill'](0x0));for(let _0x4ca241=0x1;_0x4ca241<=_0x506608;_0x4ca241++){for(let _0x4f9d93=0x1;_0x4f9d93<=_0x425a7b;_0x4f9d93++){_0x378ddd[_0x4ca241-0x1]===_0x4c4006[_0x4f9d93-0x1]?_0x10b3b0[_0x4ca241][_0x4f9d93]=_0x10b3b0[_0x4ca241-0x1][_0x4f9d93-0x1]+0x1:_0x10b3b0[_0x4ca241][_0x4f9d93]=Math[_0x17f783(0xf9)](_0x10b3b0[_0x4ca241-0x1][_0x4f9d93],_0x10b3b0[_0x4ca241][_0x4f9d93-0x1]);}}const _0x27b0bc=[];let _0x1f4124=_0x506608,_0xfd3cb=_0x425a7b;while(_0x1f4124>0x0&&_0xfd3cb>0x0){if(_0x378ddd[_0x1f4124-0x1]===_0x4c4006[_0xfd3cb-0x1])_0x27b0bc[_0x17f783(0x10c)](_0x378ddd[_0x1f4124-0x1]),_0x1f4124--,_0xfd3cb--;else _0x10b3b0[_0x1f4124-0x1][_0xfd3cb]>_0x10b3b0[_0x1f4124][_0xfd3cb-0x1]?_0x1f4124--:_0xfd3cb--;}return _0x27b0bc;}function a209_0x4e32(){const _0x3542e3=['\x20\x20...','repeat','940540NXALwa','has','red','join','63EQeaVT','padStart','map','new','max','5eBMJLj','added','182720HMtqag','unchanged','\x20\x20\x20','420513ZAUfGc','removed','type','old','15948FNAite','10YJaOMd','push','2101121WEvzuB','split','min','13458iXyqeh','add','4jOnbeh','unshift','fill','length','436268Hiirkf','\x20-\x20','green','content','size','cyan'];a209_0x4e32=function(){return _0x3542e3;};return a209_0x4e32();}export function formatDiffWithColors(_0x24d7d6,_0x561ca4=0x3){const _0x18ae09=a209_0x3f65,_0x5e4b95=new Set();_0x24d7d6['forEach']((_0x5a03a0,_0x2f34ce)=>{const _0x2ecb5c=a209_0x3f65;_0x5a03a0[_0x2ecb5c(0x101)]!==_0x2ecb5c(0xfd)&&_0x5e4b95[_0x2ecb5c(0x10a)](_0x2f34ce);});if(_0x5e4b95[_0x18ae09(0x113)]===0x0)return'';const _0x116345=new Set();for(const _0xac361 of _0x5e4b95){for(let _0x210a69=Math[_0x18ae09(0xf9)](0x0,_0xac361-_0x561ca4);_0x210a69<=Math[_0x18ae09(0x108)](_0x24d7d6[_0x18ae09(0x10e)]-0x1,_0xac361+_0x561ca4);_0x210a69++){_0x116345[_0x18ae09(0x10a)](_0x210a69);}}const _0x450ff0=[];let _0x620a28=-0x1;const _0x4fa8a6=_0x24d7d6['length'],_0x3575d3=Math[_0x18ae09(0xf9)](0x3,String(_0x4fa8a6)[_0x18ae09(0x10e)]),_0x1815ec=[];let _0xd2b5f5=0x0,_0x36431a=0x0;for(const _0x3f0ae2 of _0x24d7d6){if(_0x3f0ae2[_0x18ae09(0x101)]==='removed')_0xd2b5f5++,_0x1815ec[_0x18ae09(0x105)]({'old':_0xd2b5f5,'new':0x0});else _0x3f0ae2[_0x18ae09(0x101)]===_0x18ae09(0xfb)?(_0x36431a++,_0x1815ec[_0x18ae09(0x105)]({'old':0x0,'new':_0x36431a})):(_0xd2b5f5++,_0x36431a++,_0x1815ec['push']({'old':_0xd2b5f5,'new':_0x36431a}));}for(let _0x1bf4dd=0x0;_0x1bf4dd<_0x24d7d6['length'];_0x1bf4dd++){if(!_0x116345[_0x18ae09(0x118)](_0x1bf4dd))continue;_0x620a28!==-0x1&&_0x1bf4dd>_0x620a28+0x1&&_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x114)](_0x18ae09(0x115)));_0x620a28=_0x1bf4dd;const _0x1666d4=_0x24d7d6[_0x1bf4dd],_0x59b0fe=_0x1815ec[_0x1bf4dd],_0x501818=_0x59b0fe[_0x18ae09(0x102)]>0x0?String(_0x59b0fe['old'])[_0x18ae09(0x11c)](_0x3575d3):'\x20'[_0x18ae09(0x116)](_0x3575d3),_0xe141c1=_0x59b0fe[_0x18ae09(0x11e)]>0x0?String(_0x59b0fe['new'])['padStart'](_0x3575d3):'\x20'[_0x18ae09(0x116)](_0x3575d3);switch(_0x1666d4['type']){case _0x18ae09(0x100):_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x119)](_0x501818+'\x20'+_0xe141c1+_0x18ae09(0x110)+_0x1666d4[_0x18ae09(0x112)]));break;case _0x18ae09(0xfb):_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e[_0x18ae09(0x111)](_0x501818+'\x20'+_0xe141c1+'\x20+\x20'+_0x1666d4['content']));break;default:_0x450ff0[_0x18ae09(0x105)](a209_0xcf770e['dim'](_0x501818+'\x20'+_0xe141c1+_0x18ae09(0xfe)+_0x1666d4['content']));break;}}return _0x450ff0[_0x18ae09(0x11a)]('\x0a');}export function hasChanges(_0x823fb3){const _0x2a1a3d=a209_0x3f65;return _0x823fb3['some'](_0x546ae9=>_0x546ae9[_0x2a1a3d(0x101)]!==_0x2a1a3d(0xfd));}
@@ -1 +1 @@
1
- function a210_0xbfac(){const _0x1e193e=['chmodSync','mode','5668255uyMLMX','22747370ZZbuYz','Warning:\x20','16LciWSL','312HGoKlX','320211OnrLwx','72096JCeRyk','6RGTrab','2259782UcOshu','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','statSync','warn','163250pPnKrH','existsSync','toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','dirname','1863888dUnVyK'];a210_0xbfac=function(){return _0x1e193e;};return a210_0xbfac();}(function(_0x36cd40,_0x9ceae3){const _0x3053f3=a210_0x2b69,_0x5863aa=_0x36cd40();while(!![]){try{const _0x5ceb28=parseInt(_0x3053f3(0x19f))/0x1*(parseInt(_0x3053f3(0x194))/0x2)+parseInt(_0x3053f3(0x1a2))/0x3+-parseInt(_0x3053f3(0x199))/0x4+parseInt(_0x3053f3(0x19c))/0x5*(parseInt(_0x3053f3(0x1a3))/0x6)+-parseInt(_0x3053f3(0x1a4))/0x7+-parseInt(_0x3053f3(0x1a0))/0x8*(-parseInt(_0x3053f3(0x1a1))/0x9)+-parseInt(_0x3053f3(0x19d))/0xa;if(_0x5ceb28===_0x9ceae3)break;else _0x5863aa['push'](_0x5863aa['shift']());}catch(_0x2de6ce){_0x5863aa['push'](_0x5863aa['shift']());}}}(a210_0xbfac,0xc0511));import*as a210_0x5f3629 from'node:fs';function a210_0x2b69(_0x32fc85,_0x499a49){_0x32fc85=_0x32fc85-0x193;const _0xbfacba=a210_0xbfac();let _0x2b693c=_0xbfacba[_0x32fc85];return _0x2b693c;}import*as a210_0x1dcfa2 from'node:path';export function setSecureFilePermissions(_0x26f73e){const _0x4e976d=a210_0x2b69;try{a210_0x5f3629[_0x4e976d(0x19a)](_0x26f73e,0x180);}catch{console[_0x4e976d(0x193)](_0x4e976d(0x1a5)+_0x26f73e);}}export function setSecureDirectoryPermissions(_0x456a75){const _0x57bd87=a210_0x2b69;try{a210_0x5f3629[_0x57bd87(0x19a)](_0x456a75,0x1c0);}catch{console[_0x57bd87(0x193)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x456a75);}}export function createSecureDirectory(_0x7fc873){const _0x5415cd=a210_0x2b69;!a210_0x5f3629[_0x5415cd(0x195)](_0x7fc873)&&(a210_0x5f3629['mkdirSync'](_0x7fc873,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x7fc873));}export function validateSecureFilePermissions(_0x2ca24d){const _0x286377=a210_0x2b69;try{const _0x10d9e2=a210_0x5f3629[_0x286377(0x1a6)](_0x2ca24d),_0x405a9d=_0x10d9e2[_0x286377(0x19b)]&0x1ff,_0x4b683a=(_0x405a9d&0x3f)!==0x0;if(_0x4b683a)return console[_0x286377(0x193)](_0x286377(0x19e)+_0x2ca24d+'\x20has\x20insecure\x20permissions\x20('+_0x405a9d[_0x286377(0x196)](0x8)+').\x20'+_0x286377(0x197)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2c9906,_0x26f2a4){const _0x24e117=a210_0x2b69,_0x4ea9cb=a210_0x1dcfa2[_0x24e117(0x198)](_0x2c9906);createSecureDirectory(_0x4ea9cb),a210_0x5f3629['writeFileSync'](_0x2c9906,_0x26f2a4,{'mode':0x180}),setSecureFilePermissions(_0x2c9906);}
1
+ function a210_0x3035(){const _0x48a93f=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','43164XNMarV','1730JsGkXR','mkdirSync','543823yRdVIN','2824436kjMzpK','217495EsFLtw','toString','mode','dirname','writeFileSync','\x20has\x20insecure\x20permissions\x20(','1273674xBsMXo',').\x20','warn','132tjmGXY','88dMgcbf','2hgXnxa','930877CvqspN','statSync','chmodSync','23297648Defxud'];a210_0x3035=function(){return _0x48a93f;};return a210_0x3035();}(function(_0x59309d,_0x625a72){const _0x5eeb0a=a210_0x5c7b,_0x1925be=_0x59309d();while(!![]){try{const _0x1337c9=parseInt(_0x5eeb0a(0x146))/0x1+parseInt(_0x5eeb0a(0x145))/0x2*(-parseInt(_0x5eeb0a(0x156))/0x3)+-parseInt(_0x5eeb0a(0x14f))/0x4+-parseInt(_0x5eeb0a(0x150))/0x5*(parseInt(_0x5eeb0a(0x159))/0x6)+-parseInt(_0x5eeb0a(0x14e))/0x7*(parseInt(_0x5eeb0a(0x144))/0x8)+parseInt(_0x5eeb0a(0x14b))/0x9*(parseInt(_0x5eeb0a(0x14c))/0xa)+parseInt(_0x5eeb0a(0x149))/0xb;if(_0x1337c9===_0x625a72)break;else _0x1925be['push'](_0x1925be['shift']());}catch(_0x2d634e){_0x1925be['push'](_0x1925be['shift']());}}}(a210_0x3035,0xe4989));import*as a210_0x2fbd0f from'node:fs';import*as a210_0x4fc17b from'node:path';function a210_0x5c7b(_0x49bc7e,_0x57c3f9){_0x49bc7e=_0x49bc7e-0x144;const _0x303509=a210_0x3035();let _0x5c7b68=_0x303509[_0x49bc7e];return _0x5c7b68;}export function setSecureFilePermissions(_0x56631a){const _0x56d882=a210_0x5c7b;try{a210_0x2fbd0f[_0x56d882(0x148)](_0x56631a,0x180);}catch{console['warn'](_0x56d882(0x14a)+_0x56631a);}}export function setSecureDirectoryPermissions(_0x10cffe){const _0x37fee1=a210_0x5c7b;try{a210_0x2fbd0f[_0x37fee1(0x148)](_0x10cffe,0x1c0);}catch{console[_0x37fee1(0x158)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x10cffe);}}export function createSecureDirectory(_0x468891){const _0x50c112=a210_0x5c7b;!a210_0x2fbd0f['existsSync'](_0x468891)&&(a210_0x2fbd0f[_0x50c112(0x14d)](_0x468891,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x468891));}export function validateSecureFilePermissions(_0x1e1f89){const _0x3dc37c=a210_0x5c7b;try{const _0x137432=a210_0x2fbd0f[_0x3dc37c(0x147)](_0x1e1f89),_0x23aaf2=_0x137432[_0x3dc37c(0x152)]&0x1ff,_0x57fcf4=(_0x23aaf2&0x3f)!==0x0;if(_0x57fcf4)return console['warn']('Warning:\x20'+_0x1e1f89+_0x3dc37c(0x155)+_0x23aaf2[_0x3dc37c(0x151)](0x8)+_0x3dc37c(0x157)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3ba2c8,_0x3ffca4){const _0x588c61=a210_0x5c7b,_0x4177bc=a210_0x4fc17b[_0x588c61(0x153)](_0x3ba2c8);createSecureDirectory(_0x4177bc),a210_0x2fbd0f[_0x588c61(0x154)](_0x3ba2c8,_0x3ffca4,{'mode':0x180}),setSecureFilePermissions(_0x3ba2c8);}
@@ -1 +1 @@
1
- (function(_0x219179,_0x26aa14){const _0x12947e=a211_0x40de,_0x199f5e=_0x219179();while(!![]){try{const _0xae955b=parseInt(_0x12947e(0x178))/0x1*(parseInt(_0x12947e(0x170))/0x2)+parseInt(_0x12947e(0x173))/0x3*(parseInt(_0x12947e(0x17b))/0x4)+-parseInt(_0x12947e(0x179))/0x5*(parseInt(_0x12947e(0x176))/0x6)+-parseInt(_0x12947e(0x17a))/0x7*(-parseInt(_0x12947e(0x16d))/0x8)+parseInt(_0x12947e(0x175))/0x9*(parseInt(_0x12947e(0x16e))/0xa)+parseInt(_0x12947e(0x17c))/0xb+-parseInt(_0x12947e(0x177))/0xc;if(_0xae955b===_0x26aa14)break;else _0x199f5e['push'](_0x199f5e['shift']());}catch(_0x7781cc){_0x199f5e['push'](_0x199f5e['shift']());}}}(a211_0x5de5,0x64dc0));import{readFileSync}from'fs';function a211_0x40de(_0x4500fd,_0x99d98a){_0x4500fd=_0x4500fd-0x169;const _0x5de53f=a211_0x5de5();let _0x40de54=_0x5de53f[_0x4500fd];return _0x40de54;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a211_0x5de5(){const _0x2a7ba6=['5HQlXNq','28MkEqIK','1068868cQlmsT','21571kdQepo','code','message','Permission\x20denied\x20reading\x20file\x20\x27','Error\x20reading\x20file\x20\x27','1060824RUozyK','4270DopLbO','ENOENT','2txqeEG','\x27:\x20','NOT_FOUND','6zBORpY','utf-8','10467gavXPd','1054860XNoaei','14799396TaPdPX','258805yvbEEh'];a211_0x5de5=function(){return _0x2a7ba6;};return a211_0x5de5();}export function readFileContent(_0x4884fb){const _0x2267be=a211_0x40de;try{return readFileSync(_0x4884fb,_0x2267be(0x174));}catch(_0x55cc14){const _0xfaa5da=_0x55cc14[_0x2267be(0x169)];if(_0xfaa5da===_0x2267be(0x16f))throw new SDKError(ErrorCode[_0x2267be(0x172)],'File\x20\x27'+_0x4884fb+'\x27\x20not\x20found',_0x55cc14);else{if(_0xfaa5da==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x2267be(0x16b)+_0x4884fb+'\x27',_0x55cc14);else throw new SDKError(ErrorCode['INTERNAL'],_0x2267be(0x16c)+_0x4884fb+_0x2267be(0x171)+_0x55cc14[_0x2267be(0x16a)],_0x55cc14);}}}
1
+ (function(_0x40a2c8,_0x2c7e02){const _0x144967=a211_0x1599,_0x2e21e4=_0x40a2c8();while(!![]){try{const _0x3a6943=-parseInt(_0x144967(0x1b1))/0x1+parseInt(_0x144967(0x1af))/0x2+-parseInt(_0x144967(0x1b7))/0x3+-parseInt(_0x144967(0x1ba))/0x4+parseInt(_0x144967(0x1ae))/0x5+parseInt(_0x144967(0x1b9))/0x6*(parseInt(_0x144967(0x1bd))/0x7)+parseInt(_0x144967(0x1b2))/0x8;if(_0x3a6943===_0x2c7e02)break;else _0x2e21e4['push'](_0x2e21e4['shift']());}catch(_0xff1e6a){_0x2e21e4['push'](_0x2e21e4['shift']());}}}(a211_0x2c59,0x6394d));import{readFileSync}from'fs';function a211_0x1599(_0x22ffa0,_0x27a4a6){_0x22ffa0=_0x22ffa0-0x1ae;const _0x2c592b=a211_0x2c59();let _0x1599b5=_0x2c592b[_0x22ffa0];return _0x1599b5;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a211_0x2c59(){const _0x2ab9ca=['438QKXlwA','2429284DuPUcg','NOT_FOUND','utf-8','63581nZTlJv','EACCES','2453635SguVrt','538204cxvedJ','INTERNAL','750663pcuUCy','6808072WqunWy','\x27:\x20','Error\x20reading\x20file\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','1524084DXtonv','message'];a211_0x2c59=function(){return _0x2ab9ca;};return a211_0x2c59();}export function readFileContent(_0x5d5c59){const _0x5f043f=a211_0x1599;try{return readFileSync(_0x5d5c59,_0x5f043f(0x1bc));}catch(_0x311b10){const _0x43318b=_0x311b10['code'];if(_0x43318b===_0x5f043f(0x1b6))throw new SDKError(ErrorCode[_0x5f043f(0x1bb)],'File\x20\x27'+_0x5d5c59+'\x27\x20not\x20found',_0x311b10);else{if(_0x43318b===_0x5f043f(0x1be))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5f043f(0x1b5)+_0x5d5c59+'\x27',_0x311b10);else throw new SDKError(ErrorCode[_0x5f043f(0x1b0)],_0x5f043f(0x1b4)+_0x5d5c59+_0x5f043f(0x1b3)+_0x311b10[_0x5f043f(0x1b8)],_0x311b10);}}}
@@ -1 +1 @@
1
- function a212_0x3a96(){const _0x2d2311=['fetchedAt','/releases?per_page=20','next','length','2526bwOvQT','statusCode','8870MGHKJv','timeout','400305GqESaV','24JRWJIv','2dIKnPv','tag_name','360673OozMse','prerelease','GitHub\x20API\x20returned\x20','1544922qFMrMH','parse','11487ZmFPdg','get','releases','destroy','data','now','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','end','244565MaZytq','2323976XYoEXZ','error','resolve','23089PnIKnx','find'];a212_0x3a96=function(){return _0x2d2311;};return a212_0x3a96();}function a212_0x12bf(_0x45268b,_0x4911c5){_0x45268b=_0x45268b-0x187;const _0x3a9629=a212_0x3a96();let _0x12bfab=_0x3a9629[_0x45268b];return _0x12bfab;}(function(_0x2f021d,_0x4c7ee5){const _0x4b0c48=a212_0x12bf,_0x5b1610=_0x2f021d();while(!![]){try{const _0x4e8d03=parseInt(_0x4b0c48(0x191))/0x1*(parseInt(_0x4b0c48(0x18f))/0x2)+parseInt(_0x4b0c48(0x18d))/0x3+parseInt(_0x4b0c48(0x19f))/0x4+-parseInt(_0x4b0c48(0x19e))/0x5+-parseInt(_0x4b0c48(0x189))/0x6*(-parseInt(_0x4b0c48(0x196))/0x7)+parseInt(_0x4b0c48(0x18e))/0x8*(parseInt(_0x4b0c48(0x194))/0x9)+-parseInt(_0x4b0c48(0x18b))/0xa*(parseInt(_0x4b0c48(0x1a2))/0xb);if(_0x4e8d03===_0x4c7ee5)break;else _0x5b1610['push'](_0x5b1610['shift']());}catch(_0x5db050){_0x5b1610['push'](_0x5b1610['shift']());}}}(a212_0x3a96,0x5a623));import*as a212_0x461061 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2a9b59,_0x263519,_0x174db1){const _0x5da127=a212_0x12bf,_0x7f1ab=_0x2a9b59+'/'+_0x263519,_0x1d5e28=cache[_0x5da127(0x197)](_0x7f1ab);if(_0x1d5e28&&Date[_0x5da127(0x19b)]()-_0x1d5e28[_0x5da127(0x1a4)]<CACHE_TTL_MS)return Promise[_0x5da127(0x1a1)](_0x1d5e28[_0x5da127(0x198)]);return new Promise((_0x8dee45,_0xb84990)=>{const _0x57b53e=_0x5da127,_0xb11e0={'hostname':'api.github.com','path':'/repos/'+_0x2a9b59+'/'+_0x263519+_0x57b53e(0x1a5),'headers':{'User-Agent':_0x174db1,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x27f30a=a212_0x461061[_0x57b53e(0x197)](_0xb11e0,_0x4d5cc2=>{const _0x12a377=_0x57b53e;let _0x21ee6f='';_0x4d5cc2['on'](_0x12a377(0x19a),_0xbf4b5=>{_0x21ee6f+=_0xbf4b5['toString']();}),_0x4d5cc2['on'](_0x12a377(0x19d),()=>{const _0x320f6e=_0x12a377;if(_0x4d5cc2[_0x320f6e(0x18a)]!==0xc8){_0xb84990(new Error(_0x320f6e(0x193)+_0x4d5cc2[_0x320f6e(0x18a)]+':\x20'+_0x21ee6f['slice'](0x0,0xc8)));return;}try{const _0x4c399e=JSON[_0x320f6e(0x195)](_0x21ee6f);cache['set'](_0x7f1ab,{'releases':_0x4c399e,'fetchedAt':Date[_0x320f6e(0x19b)]()}),_0x8dee45(_0x4c399e);}catch(_0x2cff2e){_0xb84990(_0x2cff2e);}});});_0x27f30a['on'](_0x57b53e(0x18c),()=>{const _0x10f76e=_0x57b53e;_0x27f30a[_0x10f76e(0x199)](),_0xb84990(new Error(_0x10f76e(0x19c)+REQUEST_TIMEOUT_MS+'ms'));}),_0x27f30a['on'](_0x57b53e(0x1a0),_0xb84990);});}export async function resolveReleaseTag(_0x32f700,_0xbb5e10,_0xb58412,_0x650193){const _0x33731a=a212_0x12bf;if(_0x32f700===_0x33731a(0x187))return null;const _0x3335e8=await fetchGitHubReleases(_0xbb5e10,_0xb58412,_0x650193);if(_0x3335e8[_0x33731a(0x188)]===0x0)return null;const _0x472d30=_0x3335e8[_0x33731a(0x1a3)](_0xf0877c=>!_0xf0877c[_0x33731a(0x192)]);return _0x472d30?_0x472d30[_0x33731a(0x190)]:null;}
1
+ (function(_0x264bf3,_0x5ecf4d){const _0x3c2dec=a212_0x4eac,_0x314fd2=_0x264bf3();while(!![]){try{const _0x434cf1=parseInt(_0x3c2dec(0x1b4))/0x1*(-parseInt(_0x3c2dec(0x198))/0x2)+parseInt(_0x3c2dec(0x1a2))/0x3*(parseInt(_0x3c2dec(0x1a6))/0x4)+parseInt(_0x3c2dec(0x1b5))/0x5*(parseInt(_0x3c2dec(0x19e))/0x6)+parseInt(_0x3c2dec(0x19a))/0x7*(-parseInt(_0x3c2dec(0x1ac))/0x8)+parseInt(_0x3c2dec(0x193))/0x9+parseInt(_0x3c2dec(0x1b0))/0xa*(-parseInt(_0x3c2dec(0x192))/0xb)+parseInt(_0x3c2dec(0x19c))/0xc*(-parseInt(_0x3c2dec(0x191))/0xd);if(_0x434cf1===_0x5ecf4d)break;else _0x314fd2['push'](_0x314fd2['shift']());}catch(_0x49060d){_0x314fd2['push'](_0x314fd2['shift']());}}}(a212_0x1edb,0xed377));function a212_0x4eac(_0x44d3c6,_0x31a460){_0x44d3c6=_0x44d3c6-0x191;const _0x1edb9f=a212_0x1edb();let _0x4eacf7=_0x1edb9f[_0x44d3c6];return _0x4eacf7;}import*as a212_0x4c9ada from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x113236,_0x346fbc,_0x32587a){const _0x365cc0=a212_0x4eac,_0x5da06f=_0x113236+'/'+_0x346fbc,_0x391c6c=cache[_0x365cc0(0x1a9)](_0x5da06f);if(_0x391c6c&&Date[_0x365cc0(0x1b3)]()-_0x391c6c[_0x365cc0(0x194)]<CACHE_TTL_MS)return Promise[_0x365cc0(0x1a0)](_0x391c6c[_0x365cc0(0x19d)]);return new Promise((_0x44816d,_0x451749)=>{const _0x1ee1a9=_0x365cc0,_0x353d22={'hostname':_0x1ee1a9(0x1ab),'path':_0x1ee1a9(0x1b2)+_0x113236+'/'+_0x346fbc+_0x1ee1a9(0x1a7),'headers':{'User-Agent':_0x32587a,'Accept':_0x1ee1a9(0x19b)},'timeout':REQUEST_TIMEOUT_MS},_0x4cb497=a212_0x4c9ada[_0x1ee1a9(0x1a9)](_0x353d22,_0x1af05a=>{const _0x29caac=_0x1ee1a9;let _0x567305='';_0x1af05a['on'](_0x29caac(0x1a3),_0x4b527e=>{const _0x5f19e9=_0x29caac;_0x567305+=_0x4b527e[_0x5f19e9(0x19f)]();}),_0x1af05a['on'](_0x29caac(0x1af),()=>{const _0x3b8b4c=_0x29caac;if(_0x1af05a[_0x3b8b4c(0x1ae)]!==0xc8){_0x451749(new Error(_0x3b8b4c(0x1a4)+_0x1af05a['statusCode']+':\x20'+_0x567305[_0x3b8b4c(0x195)](0x0,0xc8)));return;}try{const _0x54cee0=JSON['parse'](_0x567305);cache[_0x3b8b4c(0x1a5)](_0x5da06f,{'releases':_0x54cee0,'fetchedAt':Date['now']()}),_0x44816d(_0x54cee0);}catch(_0x45116e){_0x451749(_0x45116e);}});});_0x4cb497['on']('timeout',()=>{const _0x2b4115=_0x1ee1a9;_0x4cb497[_0x2b4115(0x1a8)](),_0x451749(new Error(_0x2b4115(0x197)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4cb497['on'](_0x1ee1a9(0x1a1),_0x451749);});}function a212_0x1edb(){const _0x45c28c=['tag_name','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','94898QkyUtn','prerelease','37121oYqGYO','application/vnd.github+json','8346732FeuRyJ','releases','906258BXaRxs','toString','resolve','error','714jGzlrX','data','GitHub\x20API\x20returned\x20','set','31364dQTxHi','/releases?per_page=20','destroy','get','length','api.github.com','928OjzAxm','find','statusCode','end','17673190gmaGWy','next','/repos/','now','1tCkmYW','45GtjDmD','13wFCIYO','11hPoFoc','7844139UqOfzW','fetchedAt','slice'];a212_0x1edb=function(){return _0x45c28c;};return a212_0x1edb();}export async function resolveReleaseTag(_0x412349,_0x342d7d,_0x1443c4,_0xdd0773){const _0x159fd5=a212_0x4eac;if(_0x412349===_0x159fd5(0x1b1))return null;const _0x5dd1a6=await fetchGitHubReleases(_0x342d7d,_0x1443c4,_0xdd0773);if(_0x5dd1a6[_0x159fd5(0x1aa)]===0x0)return null;const _0x97373f=_0x5dd1a6[_0x159fd5(0x1ad)](_0x2530c6=>!_0x2530c6[_0x159fd5(0x199)]);return _0x97373f?_0x97373f[_0x159fd5(0x196)]:null;}
@@ -1 +1 @@
1
- (function(_0x11cd82,_0x10499e){const _0x258456=a213_0x521e,_0x1ea227=_0x11cd82();while(!![]){try{const _0x2b6fc2=parseInt(_0x258456(0x10b))/0x1+-parseInt(_0x258456(0x104))/0x2*(-parseInt(_0x258456(0x105))/0x3)+parseInt(_0x258456(0x101))/0x4+-parseInt(_0x258456(0x107))/0x5+parseInt(_0x258456(0x102))/0x6*(-parseInt(_0x258456(0x106))/0x7)+-parseInt(_0x258456(0x10d))/0x8+parseInt(_0x258456(0xff))/0x9;if(_0x2b6fc2===_0x10499e)break;else _0x1ea227['push'](_0x1ea227['shift']());}catch(_0x1cf1cc){_0x1ea227['push'](_0x1ea227['shift']());}}}(a213_0x1bd1,0x80a0b));function a213_0x521e(_0x170a69,_0x3f4ff5){_0x170a69=_0x170a69-0xfb;const _0x1bd146=a213_0x1bd1();let _0x521e12=_0x1bd146[_0x170a69];return _0x521e12;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x325732=a213_0x521e;return process.env.TDX_CACHE_DIR||join(homedir(),_0x325732(0xfe),_0x325732(0xfd));}const registry=new Map();export function registerGlobalCacheKey(_0x3cc453,_0x43e5a9){const _0x1b2f4e=a213_0x521e,_0x2c8679=registry[_0x1b2f4e(0xfc)](_0x3cc453);if(_0x2c8679&&_0x2c8679!==_0x43e5a9)throw new Error(_0x1b2f4e(0x109)+_0x3cc453+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2c8679+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x43e5a9+'\x22');registry[_0x1b2f4e(0xfb)](_0x3cc453,_0x43e5a9);}export function getGlobalCachePath(_0x124aea){return join(getGlobalCacheDir(),_0x124aea);}function ensureGlobalCacheDir(){const _0x47f627=getGlobalCacheDir();!existsSync(_0x47f627)&&mkdirSync(_0x47f627,{'recursive':!![]});}function readCacheJson(_0x4dc5f4){const _0x1fcd99=a213_0x521e,_0x56e4a6=getGlobalCachePath(_0x4dc5f4);if(!existsSync(_0x56e4a6))return undefined;try{const _0x52755e=readFileSync(_0x56e4a6,'utf-8');return JSON[_0x1fcd99(0x103)](_0x52755e);}catch{return undefined;}}function writeCacheJson(_0x1dc61a,_0x48ca64){const _0x23f0b3=a213_0x521e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1dc61a),JSON['stringify'](_0x48ca64,null,0x2),_0x23f0b3(0x10a));}function readCacheText(_0x37fad0){const _0x1ecdac=a213_0x521e,_0x11c61c=getGlobalCachePath(_0x37fad0);if(!existsSync(_0x11c61c))return undefined;try{return readFileSync(_0x11c61c,_0x1ecdac(0x10a));}catch{return undefined;}}function writeCacheText(_0x215264,_0x24fffd){const _0x5c5399=a213_0x521e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x215264),_0x24fffd,_0x5c5399(0x10a));}function clearCache(_0x12295c){const _0x12310d=getGlobalCachePath(_0x12295c);if(existsSync(_0x12310d))try{unlinkSync(_0x12310d);}catch{}}function cacheExists(_0x2941b0){return existsSync(getGlobalCachePath(_0x2941b0));}export function createGlobalCache(_0x38f3d8,_0x17affe){return registerGlobalCacheKey(_0x38f3d8,_0x17affe),{'read':()=>readCacheJson(_0x38f3d8),'write':_0x8f07cb=>writeCacheJson(_0x38f3d8,_0x8f07cb),'clear':()=>clearCache(_0x38f3d8),'exists':()=>cacheExists(_0x38f3d8),'path':()=>getGlobalCachePath(_0x38f3d8)};}export function createGlobalTextCache(_0x1000f2,_0x2887e7){const _0x59e0ce=a213_0x521e;return registerGlobalCacheKey(_0x1000f2,_0x2887e7),{'read':()=>readCacheText(_0x1000f2)?.[_0x59e0ce(0x108)]()||undefined,'write':_0x4ad476=>writeCacheText(_0x1000f2,_0x4ad476),'clear':()=>clearCache(_0x1000f2),'exists':()=>cacheExists(_0x1000f2),'path':()=>getGlobalCachePath(_0x1000f2)};}export function createProfileCache(_0x22e694,_0x3e75e3){const _0xcb7704=_0x21ec62=>{const _0x3f63e3=a213_0x521e,_0x23770d=_0x21ec62||_0x3f63e3(0x10c);return _0x22e694['replace'](_0x3f63e3(0x100),_0x23770d);};return{'read':_0x4e7bdf=>{const _0x39d4f3=_0xcb7704(_0x4e7bdf);return registerGlobalCacheKey(_0x39d4f3,_0x3e75e3),readCacheJson(_0x39d4f3);},'write':(_0x38ce14,_0x5ca78b)=>{const _0x274c57=_0xcb7704(_0x38ce14);registerGlobalCacheKey(_0x274c57,_0x3e75e3),writeCacheJson(_0x274c57,_0x5ca78b);},'clear':_0x1d9968=>{const _0x2ccc0e=_0xcb7704(_0x1d9968);clearCache(_0x2ccc0e);},'exists':_0xb34329=>{const _0xcecb4a=_0xcb7704(_0xb34329);return cacheExists(_0xcecb4a);},'path':_0x2b127b=>{const _0x1da7c4=_0xcb7704(_0x2b127b);return getGlobalCachePath(_0x1da7c4);}};}export function createOptionalProfileCache(_0x42d8b6,_0x123a64,_0x4a145a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4a145a,_0x4f3680=_0x4dc967=>{return _0x4dc967?''+_0x42d8b6+profileSeparator+_0x4dc967+suffix:''+_0x42d8b6+suffix;};return{'read':_0x12f9fe=>{const _0x3e9870=_0x4f3680(_0x12f9fe);return registerGlobalCacheKey(_0x3e9870,_0x123a64),readCacheJson(_0x3e9870);},'write':(_0x49078b,_0x5c260b)=>{const _0x361ae0=_0x4f3680(_0x5c260b);registerGlobalCacheKey(_0x361ae0,_0x123a64),writeCacheJson(_0x361ae0,_0x49078b);},'clear':_0x368dd8=>{const _0x26bc2e=_0x4f3680(_0x368dd8);clearCache(_0x26bc2e);},'exists':_0x145238=>{const _0x120bf0=_0x4f3680(_0x145238);return cacheExists(_0x120bf0);},'path':_0x4255b8=>{const _0x3ba2e1=_0x4f3680(_0x4255b8);return getGlobalCachePath(_0x3ba2e1);}};}function a213_0x1bd1(){const _0x53ca51=['get','tdx','.cache','1629009VfZdCk','{profile}','3595568DxelBg','1182954oTzrqE','parse','332738dDQYyy','9pECgyX','21HdVHJK','2858555RNBxDC','trim','Global\x20cache\x20key\x20\x22','utf-8','1037833dpDqMV','default','7414288oCXfxe','set'];a213_0x1bd1=function(){return _0x53ca51;};return a213_0x1bd1();}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1e8f34,_0x35662d){const _0x317467=a213_0x2891,_0x2a81a3=_0x1e8f34();while(!![]){try{const _0x54c088=parseInt(_0x317467(0x196))/0x1*(-parseInt(_0x317467(0x197))/0x2)+parseInt(_0x317467(0x19e))/0x3*(-parseInt(_0x317467(0x199))/0x4)+-parseInt(_0x317467(0x1a6))/0x5*(parseInt(_0x317467(0x19f))/0x6)+parseInt(_0x317467(0x1a5))/0x7+-parseInt(_0x317467(0x1a0))/0x8+parseInt(_0x317467(0x1a7))/0x9+parseInt(_0x317467(0x1a3))/0xa;if(_0x54c088===_0x35662d)break;else _0x2a81a3['push'](_0x2a81a3['shift']());}catch(_0x15f491){_0x2a81a3['push'](_0x2a81a3['shift']());}}}(a213_0x31b5,0xa892a));function a213_0x2891(_0x29aea6,_0x59bd61){_0x29aea6=_0x29aea6-0x195;const _0x31b536=a213_0x31b5();let _0x2891db=_0x31b536[_0x29aea6];return _0x2891db;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x343de4=a213_0x2891;return process.env.TDX_CACHE_DIR||join(homedir(),_0x343de4(0x19b),_0x343de4(0x19a));}const registry=new Map();function a213_0x31b5(){const _0x4fc1e0=['{profile}','5253409gUoPxE','305YYDRzE','9808578jvaZKO','\x22\x20already\x20registered\x20by\x20\x22','parse','2jgfgXk','1207548HiJmyU','utf-8','116eNQteI','tdx','.cache','set','\x22,\x20cannot\x20register\x20for\x20\x22','77397bmAFqe','59286rLYGeS','10225760swrWBl','trim','Global\x20cache\x20key\x20\x22','26868250ggorAV'];a213_0x31b5=function(){return _0x4fc1e0;};return a213_0x31b5();}export function registerGlobalCacheKey(_0x449239,_0x43fb08){const _0xceb176=a213_0x2891,_0x5c3248=registry['get'](_0x449239);if(_0x5c3248&&_0x5c3248!==_0x43fb08)throw new Error(_0xceb176(0x1a2)+_0x449239+_0xceb176(0x1a8)+_0x5c3248+_0xceb176(0x19d)+_0x43fb08+'\x22');registry[_0xceb176(0x19c)](_0x449239,_0x43fb08);}export function getGlobalCachePath(_0x251de0){return join(getGlobalCacheDir(),_0x251de0);}function ensureGlobalCacheDir(){const _0xcfb847=getGlobalCacheDir();!existsSync(_0xcfb847)&&mkdirSync(_0xcfb847,{'recursive':!![]});}function readCacheJson(_0x495ea4){const _0x64c1f8=a213_0x2891,_0x44f82a=getGlobalCachePath(_0x495ea4);if(!existsSync(_0x44f82a))return undefined;try{const _0x103735=readFileSync(_0x44f82a,_0x64c1f8(0x198));return JSON[_0x64c1f8(0x195)](_0x103735);}catch{return undefined;}}function writeCacheJson(_0x133cb4,_0x3a7a22){const _0x4110e6=a213_0x2891;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x133cb4),JSON['stringify'](_0x3a7a22,null,0x2),_0x4110e6(0x198));}function readCacheText(_0x10f28e){const _0xf0ad84=getGlobalCachePath(_0x10f28e);if(!existsSync(_0xf0ad84))return undefined;try{return readFileSync(_0xf0ad84,'utf-8');}catch{return undefined;}}function writeCacheText(_0x460d86,_0x3e986d){const _0x10afad=a213_0x2891;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x460d86),_0x3e986d,_0x10afad(0x198));}function clearCache(_0x254fb3){const _0x38d815=getGlobalCachePath(_0x254fb3);if(existsSync(_0x38d815))try{unlinkSync(_0x38d815);}catch{}}function cacheExists(_0x3f3885){return existsSync(getGlobalCachePath(_0x3f3885));}export function createGlobalCache(_0x2e1fc8,_0x25bada){return registerGlobalCacheKey(_0x2e1fc8,_0x25bada),{'read':()=>readCacheJson(_0x2e1fc8),'write':_0x2d0ffe=>writeCacheJson(_0x2e1fc8,_0x2d0ffe),'clear':()=>clearCache(_0x2e1fc8),'exists':()=>cacheExists(_0x2e1fc8),'path':()=>getGlobalCachePath(_0x2e1fc8)};}export function createGlobalTextCache(_0x491a3e,_0x4c9a64){const _0x2ff045=a213_0x2891;return registerGlobalCacheKey(_0x491a3e,_0x4c9a64),{'read':()=>readCacheText(_0x491a3e)?.[_0x2ff045(0x1a1)]()||undefined,'write':_0x4254f2=>writeCacheText(_0x491a3e,_0x4254f2),'clear':()=>clearCache(_0x491a3e),'exists':()=>cacheExists(_0x491a3e),'path':()=>getGlobalCachePath(_0x491a3e)};}export function createProfileCache(_0x226052,_0x4cf226){const _0x51b4d9=_0x2fa65f=>{const _0x140596=a213_0x2891,_0x1fbd19=_0x2fa65f||'default';return _0x226052['replace'](_0x140596(0x1a4),_0x1fbd19);};return{'read':_0x126c0a=>{const _0x5c0cf8=_0x51b4d9(_0x126c0a);return registerGlobalCacheKey(_0x5c0cf8,_0x4cf226),readCacheJson(_0x5c0cf8);},'write':(_0x5d1f7b,_0x36fcaa)=>{const _0x44daac=_0x51b4d9(_0x5d1f7b);registerGlobalCacheKey(_0x44daac,_0x4cf226),writeCacheJson(_0x44daac,_0x36fcaa);},'clear':_0xe00cd=>{const _0x40c537=_0x51b4d9(_0xe00cd);clearCache(_0x40c537);},'exists':_0x21495e=>{const _0x43db70=_0x51b4d9(_0x21495e);return cacheExists(_0x43db70);},'path':_0x3e525c=>{const _0x16261a=_0x51b4d9(_0x3e525c);return getGlobalCachePath(_0x16261a);}};}export function createOptionalProfileCache(_0x17eaa3,_0x21fae2,_0x138187={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x138187,_0x1052b2=_0x4cd997=>{return _0x4cd997?''+_0x17eaa3+profileSeparator+_0x4cd997+suffix:''+_0x17eaa3+suffix;};return{'read':_0x3faf36=>{const _0x3e1eb1=_0x1052b2(_0x3faf36);return registerGlobalCacheKey(_0x3e1eb1,_0x21fae2),readCacheJson(_0x3e1eb1);},'write':(_0x5008dd,_0x51dbbf)=>{const _0x57cee7=_0x1052b2(_0x51dbbf);registerGlobalCacheKey(_0x57cee7,_0x21fae2),writeCacheJson(_0x57cee7,_0x5008dd);},'clear':_0x10f178=>{const _0x1c6d48=_0x1052b2(_0x10f178);clearCache(_0x1c6d48);},'exists':_0x2629c8=>{const _0x521388=_0x1052b2(_0x2629c8);return cacheExists(_0x521388);},'path':_0x4f8636=>{const _0x1bdb0b=_0x1052b2(_0x4f8636);return getGlobalCachePath(_0x1bdb0b);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- (function(_0x1a2a9d,_0x4de263){const _0xba5ac2=a214_0x1c43,_0xa6df36=_0x1a2a9d();while(!![]){try{const _0x4b930a=-parseInt(_0xba5ac2(0x1c0))/0x1*(-parseInt(_0xba5ac2(0x1d2))/0x2)+parseInt(_0xba5ac2(0x1ca))/0x3*(-parseInt(_0xba5ac2(0x1d0))/0x4)+-parseInt(_0xba5ac2(0x1c4))/0x5+-parseInt(_0xba5ac2(0x1c3))/0x6+-parseInt(_0xba5ac2(0x1be))/0x7+parseInt(_0xba5ac2(0x1cc))/0x8*(parseInt(_0xba5ac2(0x1bb))/0x9)+parseInt(_0xba5ac2(0x1c1))/0xa*(parseInt(_0xba5ac2(0x1bf))/0xb);if(_0x4b930a===_0x4de263)break;else _0xa6df36['push'](_0xa6df36['shift']());}catch(_0x4fead4){_0xa6df36['push'](_0xa6df36['shift']());}}}(a214_0x37d2,0x21de3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x57eb7b,_0x51d44f){const _0x34bdf6=a214_0x1c43;try{if(_0x51d44f){const _0x395f71=await readFile(_0x57eb7b,'utf-8');try{return JSON[_0x34bdf6(0x1c5)](_0x395f71);}catch(_0x371714){throw new SDKError(ErrorCode[_0x34bdf6(0x1c2)],_0x34bdf6(0x1d1)+_0x57eb7b+_0x34bdf6(0x1c7)+(_0x371714 instanceof Error?_0x371714[_0x34bdf6(0x1c9)]:String(_0x371714)));}}else try{return JSON[_0x34bdf6(0x1c5)](_0x57eb7b);}catch(_0x9c8d24){throw new SDKError(ErrorCode[_0x34bdf6(0x1c2)],_0x34bdf6(0x1cd)+(_0x9c8d24 instanceof Error?_0x9c8d24[_0x34bdf6(0x1c9)]:String(_0x9c8d24)));}}catch(_0x1fd0d0){if(_0x1fd0d0 instanceof SDKError)throw _0x1fd0d0;if(_0x1fd0d0 instanceof Error&&_0x34bdf6(0x1cf)in _0x1fd0d0){const _0x5e527b=_0x1fd0d0;if(_0x5e527b[_0x34bdf6(0x1cf)]===_0x34bdf6(0x1c8))throw new SDKError(ErrorCode[_0x34bdf6(0x1bc)],_0x34bdf6(0x1bd)+_0x57eb7b);else{if(_0x5e527b[_0x34bdf6(0x1cf)]===_0x34bdf6(0x1ce))throw new SDKError(ErrorCode[_0x34bdf6(0x1c6)],'Permission\x20denied\x20reading\x20file:\x20'+_0x57eb7b);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1fd0d0 instanceof Error?_0x1fd0d0[_0x34bdf6(0x1c9)]:String(_0x1fd0d0)));}}export async function loadJSONFromOptions(_0x4a6c61,_0x4e15d8){const _0x2312a2=a214_0x1c43;if(_0x4a6c61&&_0x4e15d8)throw new SDKError(ErrorCode[_0x2312a2(0x1c2)],_0x2312a2(0x1cb));if(_0x4a6c61)return await loadJSON(_0x4a6c61,![]);if(_0x4e15d8)return await loadJSON(_0x4e15d8,!![]);return undefined;}function a214_0x1c43(_0x3921a1,_0x304d3e){_0x3921a1=_0x3921a1-0x1bb;const _0x37d291=a214_0x37d2();let _0x1c430b=_0x37d291[_0x3921a1];return _0x1c430b;}function a214_0x37d2(){const _0x4b8f9a=['File\x20not\x20found:\x20','1069432bxylcf','88hhrAOl','1QXjqix','58930jQjQhF','INVALID_ARGUMENT','129738GVXVMP','233280ZSexkU','parse','PERMISSION_DENIED','\x27:\x20','ENOENT','message','476481BueXoT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','1026184hdUuey','Invalid\x20JSON\x20string:\x20','EACCES','code','4ZGOfuC','Invalid\x20JSON\x20in\x20file\x20\x27','429830BKjMCd','18wClzzQ','NOT_FOUND'];a214_0x37d2=function(){return _0x4b8f9a;};return a214_0x37d2();}
1
+ function a214_0x37da(){const _0x3a5f8c=['96250UZMAzg','message','parse','81616xWSfSh','Invalid\x20JSON\x20in\x20file\x20\x27','INTERNAL','10PoiPaL','Permission\x20denied\x20reading\x20file:\x20','\x27:\x20','12132567tLcUoj','File\x20not\x20found:\x20','5150992SqHApD','code','7PZHMTY','Invalid\x20JSON\x20string:\x20','PERMISSION_DENIED','899814DiCngK','NOT_FOUND','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','4775874NOeVud','1494462FMlhDK','90whWheO','utf-8'];a214_0x37da=function(){return _0x3a5f8c;};return a214_0x37da();}function a214_0x3932(_0x564d53,_0x54dee7){_0x564d53=_0x564d53-0x194;const _0x37da00=a214_0x37da();let _0x393207=_0x37da00[_0x564d53];return _0x393207;}(function(_0x406836,_0x5ca160){const _0x4f21ac=a214_0x3932,_0x54f24e=_0x406836();while(!![]){try{const _0x561b73=parseInt(_0x4f21ac(0x1a6))/0x1+-parseInt(_0x4f21ac(0x1a3))/0x2+-parseInt(_0x4f21ac(0x19f))/0x3+-parseInt(_0x4f21ac(0x1a9))/0x4*(-parseInt(_0x4f21ac(0x1a4))/0x5)+parseInt(_0x4f21ac(0x1a2))/0x6*(-parseInt(_0x4f21ac(0x19c))/0x7)+parseInt(_0x4f21ac(0x19a))/0x8+-parseInt(_0x4f21ac(0x198))/0x9*(-parseInt(_0x4f21ac(0x195))/0xa);if(_0x561b73===_0x5ca160)break;else _0x54f24e['push'](_0x54f24e['shift']());}catch(_0x2d5659){_0x54f24e['push'](_0x54f24e['shift']());}}}(a214_0x37da,0x957d7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x26fe52,_0x2bf235){const _0x2ddf4d=a214_0x3932;try{if(_0x2bf235){const _0x48ec60=await readFile(_0x26fe52,_0x2ddf4d(0x1a5));try{return JSON[_0x2ddf4d(0x1a8)](_0x48ec60);}catch(_0x4b098e){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2ddf4d(0x1aa)+_0x26fe52+_0x2ddf4d(0x197)+(_0x4b098e instanceof Error?_0x4b098e[_0x2ddf4d(0x1a7)]:String(_0x4b098e)));}}else try{return JSON[_0x2ddf4d(0x1a8)](_0x26fe52);}catch(_0xa485d3){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x2ddf4d(0x19d)+(_0xa485d3 instanceof Error?_0xa485d3['message']:String(_0xa485d3)));}}catch(_0x402ad6){if(_0x402ad6 instanceof SDKError)throw _0x402ad6;if(_0x402ad6 instanceof Error&&_0x2ddf4d(0x19b)in _0x402ad6){const _0x4dce33=_0x402ad6;if(_0x4dce33[_0x2ddf4d(0x19b)]==='ENOENT')throw new SDKError(ErrorCode[_0x2ddf4d(0x1a0)],_0x2ddf4d(0x199)+_0x26fe52);else{if(_0x4dce33[_0x2ddf4d(0x19b)]==='EACCES')throw new SDKError(ErrorCode[_0x2ddf4d(0x19e)],_0x2ddf4d(0x196)+_0x26fe52);}}throw new SDKError(ErrorCode[_0x2ddf4d(0x194)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x402ad6 instanceof Error?_0x402ad6['message']:String(_0x402ad6)));}}export async function loadJSONFromOptions(_0x145956,_0x20a2a2){const _0x15521f=a214_0x3932;if(_0x145956&&_0x20a2a2)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x15521f(0x1a1));if(_0x145956)return await loadJSON(_0x145956,![]);if(_0x20a2a2)return await loadJSON(_0x20a2a2,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x465c0c,_0x507fec){const _0x18718c=a215_0x59e6,_0x471db2=_0x465c0c();while(!![]){try{const _0x3ae8d6=-parseInt(_0x18718c(0xd8))/0x1*(-parseInt(_0x18718c(0xce))/0x2)+parseInt(_0x18718c(0xcb))/0x3+parseInt(_0x18718c(0xd9))/0x4*(parseInt(_0x18718c(0xd1))/0x5)+-parseInt(_0x18718c(0xdc))/0x6*(-parseInt(_0x18718c(0xde))/0x7)+-parseInt(_0x18718c(0xcd))/0x8+-parseInt(_0x18718c(0xcf))/0x9+-parseInt(_0x18718c(0xd6))/0xa;if(_0x3ae8d6===_0x507fec)break;else _0x471db2['push'](_0x471db2['shift']());}catch(_0x3fdf85){_0x471db2['push'](_0x471db2['shift']());}}}(a215_0x443c,0x5dec9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';function a215_0x443c(){const _0x40852a=['\x22\x20already\x20registered\x20by\x20\x22','49ZYEsPo','parse','1644741VvISGU','stringify','4756008DzcPIi','2QauFfK','2384649GLmJLo','utf-8','15lPgYhN','root','get','cwd','set','8670230hBtfUN','Cache\x20key\x20\x22','523737XPzarV','995700NdHGpX','trim','\x22,\x20cannot\x20register\x20for\x20\x22','250662YCZzwm'];a215_0x443c=function(){return _0x40852a;};return a215_0x443c();}const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x5d2689,_0x1cb3ed){const _0x7fd78a=a215_0x59e6,_0x148a90=registry[_0x7fd78a(0xd3)](_0x5d2689);if(_0x148a90&&_0x148a90!==_0x1cb3ed)throw new Error(_0x7fd78a(0xd7)+_0x5d2689+_0x7fd78a(0xdd)+_0x148a90+_0x7fd78a(0xdb)+_0x1cb3ed+'\x22');registry[_0x7fd78a(0xd5)](_0x5d2689,_0x1cb3ed);}export function getCacheDir(){const _0x49d29d=a215_0x59e6,_0x48e7fb=process[_0x49d29d(0xd4)](),_0x23a67e=_0x48e7fb===parse(_0x48e7fb)[_0x49d29d(0xd2)]?homedir():_0x48e7fb;return join(_0x23a67e,LOCAL_CACHE_DIR);}export function getCachePath(_0x47950c){return join(getCacheDir(),_0x47950c);}function ensureCacheDir(){const _0x229310=getCacheDir();!existsSync(_0x229310)&&mkdirSync(_0x229310,{'recursive':!![]});}function a215_0x59e6(_0x95cb88,_0x252598){_0x95cb88=_0x95cb88-0xca;const _0x443cf2=a215_0x443c();let _0x59e6f1=_0x443cf2[_0x95cb88];return _0x59e6f1;}function readCacheJson(_0x5d6e5a){const _0x542b97=a215_0x59e6,_0xcaa79f=getCachePath(_0x5d6e5a);if(!existsSync(_0xcaa79f))return undefined;try{const _0x3794e9=readFileSync(_0xcaa79f,_0x542b97(0xd0));return JSON[_0x542b97(0xca)](_0x3794e9);}catch{return undefined;}}function writeCacheJson(_0x42619f,_0x3178ee){const _0x38f91e=a215_0x59e6;ensureCacheDir(),writeFileSync(getCachePath(_0x42619f),JSON[_0x38f91e(0xcc)](_0x3178ee,null,0x2),_0x38f91e(0xd0));}function readCacheText(_0xedec11){const _0x3c9f52=a215_0x59e6,_0x407eb7=getCachePath(_0xedec11);if(!existsSync(_0x407eb7))return undefined;try{return readFileSync(_0x407eb7,_0x3c9f52(0xd0));}catch{return undefined;}}function writeCacheText(_0x21c3ae,_0x25f5b3){const _0x18a9cb=a215_0x59e6;ensureCacheDir(),writeFileSync(getCachePath(_0x21c3ae),_0x25f5b3,_0x18a9cb(0xd0));}function clearCache(_0x485534){const _0x8ef6=getCachePath(_0x485534);if(existsSync(_0x8ef6))try{unlinkSync(_0x8ef6);}catch{}}function cacheExists(_0x1678b4){return existsSync(getCachePath(_0x1678b4));}export function createCache(_0x466de6,_0x3ce3c2){return registerCacheKey(_0x466de6,_0x3ce3c2),{'read':()=>readCacheJson(_0x466de6),'write':_0x426617=>writeCacheJson(_0x466de6,_0x426617),'clear':()=>clearCache(_0x466de6),'exists':()=>cacheExists(_0x466de6),'path':()=>getCachePath(_0x466de6)};}export function createTextCache(_0xf8cb15,_0x374653){const _0x2acd98=a215_0x59e6;return registerCacheKey(_0xf8cb15,_0x374653),{'read':()=>readCacheText(_0xf8cb15)?.[_0x2acd98(0xda)]()||undefined,'write':_0x4012af=>writeCacheText(_0xf8cb15,_0x4012af),'clear':()=>clearCache(_0xf8cb15),'exists':()=>cacheExists(_0xf8cb15),'path':()=>getCachePath(_0xf8cb15)};}export function clearRegistry(){registry['clear']();}
1
+ const a215_0x3ea87b=a215_0x62ed;(function(_0x3f8c05,_0x5a58f0){const _0x3fcca3=a215_0x62ed,_0x5979ed=_0x3f8c05();while(!![]){try{const _0x1833fc=parseInt(_0x3fcca3(0x10f))/0x1+parseInt(_0x3fcca3(0x113))/0x2+-parseInt(_0x3fcca3(0x10e))/0x3+-parseInt(_0x3fcca3(0x110))/0x4+-parseInt(_0x3fcca3(0x114))/0x5*(parseInt(_0x3fcca3(0x112))/0x6)+-parseInt(_0x3fcca3(0x10b))/0x7*(-parseInt(_0x3fcca3(0x11a))/0x8)+parseInt(_0x3fcca3(0x10c))/0x9;if(_0x1833fc===_0x5a58f0)break;else _0x5979ed['push'](_0x5979ed['shift']());}catch(_0x2911c0){_0x5979ed['push'](_0x5979ed['shift']());}}}(a215_0x402a,0x79c4d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a215_0x3ea87b(0x118),registry=new Map();export function registerCacheKey(_0x397e7c,_0x38ffbf){const _0x31ec98=a215_0x3ea87b,_0x5892bd=registry['get'](_0x397e7c);if(_0x5892bd&&_0x5892bd!==_0x38ffbf)throw new Error(_0x31ec98(0x116)+_0x397e7c+_0x31ec98(0x119)+_0x5892bd+_0x31ec98(0x10d)+_0x38ffbf+'\x22');registry['set'](_0x397e7c,_0x38ffbf);}export function getCacheDir(){const _0x379fa5=a215_0x3ea87b,_0x14b425=process[_0x379fa5(0x117)](),_0x5ed5c6=_0x14b425===parse(_0x14b425)[_0x379fa5(0x11b)]?homedir():_0x14b425;return join(_0x5ed5c6,LOCAL_CACHE_DIR);}export function getCachePath(_0x1347c8){return join(getCacheDir(),_0x1347c8);}function ensureCacheDir(){const _0x4d6f42=getCacheDir();!existsSync(_0x4d6f42)&&mkdirSync(_0x4d6f42,{'recursive':!![]});}function readCacheJson(_0x3b1a91){const _0x5ae09a=a215_0x3ea87b,_0x5d2922=getCachePath(_0x3b1a91);if(!existsSync(_0x5d2922))return undefined;try{const _0x3dd6c9=readFileSync(_0x5d2922,_0x5ae09a(0x11c));return JSON['parse'](_0x3dd6c9);}catch{return undefined;}}function writeCacheJson(_0x225c64,_0x19bcb){const _0x4c05ae=a215_0x3ea87b;ensureCacheDir(),writeFileSync(getCachePath(_0x225c64),JSON[_0x4c05ae(0x115)](_0x19bcb,null,0x2),_0x4c05ae(0x11c));}function readCacheText(_0x166abe){const _0x1411f0=a215_0x3ea87b,_0x3e8ef4=getCachePath(_0x166abe);if(!existsSync(_0x3e8ef4))return undefined;try{return readFileSync(_0x3e8ef4,_0x1411f0(0x11c));}catch{return undefined;}}function writeCacheText(_0x5bde40,_0x52b5c8){const _0x5d726b=a215_0x3ea87b;ensureCacheDir(),writeFileSync(getCachePath(_0x5bde40),_0x52b5c8,_0x5d726b(0x11c));}function clearCache(_0x44c1b1){const _0x4ccfe0=getCachePath(_0x44c1b1);if(existsSync(_0x4ccfe0))try{unlinkSync(_0x4ccfe0);}catch{}}function a215_0x62ed(_0x102ebe,_0x263919){_0x102ebe=_0x102ebe-0x10b;const _0x402a13=a215_0x402a();let _0x62ed51=_0x402a13[_0x102ebe];return _0x62ed51;}function cacheExists(_0x85f6da){return existsSync(getCachePath(_0x85f6da));}export function createCache(_0xc89d69,_0xe21aa7){return registerCacheKey(_0xc89d69,_0xe21aa7),{'read':()=>readCacheJson(_0xc89d69),'write':_0x4a0813=>writeCacheJson(_0xc89d69,_0x4a0813),'clear':()=>clearCache(_0xc89d69),'exists':()=>cacheExists(_0xc89d69),'path':()=>getCachePath(_0xc89d69)};}function a215_0x402a(){const _0x1a2676=['\x22\x20already\x20registered\x20by\x20\x22','5744wuioWl','root','utf-8','trim','2842ENeePq','8292411udGDFw','\x22,\x20cannot\x20register\x20for\x20\x22','832779YqCeaE','405806jWBAZV','2870864bZCcfa','clear','1015218eNnusA','1442792HTSxta','25oYbFpr','stringify','Cache\x20key\x20\x22','cwd','.cache/tdx'];a215_0x402a=function(){return _0x1a2676;};return a215_0x402a();}export function createTextCache(_0x2c0d9f,_0x43f9cc){const _0x89baf=a215_0x3ea87b;return registerCacheKey(_0x2c0d9f,_0x43f9cc),{'read':()=>readCacheText(_0x2c0d9f)?.[_0x89baf(0x11d)]()||undefined,'write':_0x17c80c=>writeCacheText(_0x2c0d9f,_0x17c80c),'clear':()=>clearCache(_0x2c0d9f),'exists':()=>cacheExists(_0x2c0d9f),'path':()=>getCachePath(_0x2c0d9f)};}export function clearRegistry(){const _0x5650ad=a215_0x3ea87b;registry[_0x5650ad(0x111)]();}
@@ -1 +1 @@
1
- function a216_0x5026(){const _0x59a934=['colors','558SapLPA','yellow','25Lgfzds','3215499WrMetN','12UntNJO','gray','2478174SJhZBk','level','154026SEviEp',']\x20[','format','Chalk','3108900YYfeFt','default','362476ZEhxWS','green','colorLevel','ERROR','INFO','114967wSkIyJ','message','timestamp','dim','component','4320XColUw','chalk','red'];a216_0x5026=function(){return _0x59a934;};return a216_0x5026();}const a216_0x3afbfc=a216_0x8acf;(function(_0xefb36e,_0x29de6d){const _0x680173=a216_0x8acf,_0xb12947=_0xefb36e();while(!![]){try{const _0x24d75d=-parseInt(_0x680173(0x157))/0x1+parseInt(_0x680173(0x164))/0x2*(parseInt(_0x680173(0x168))/0x3)+-parseInt(_0x680173(0x16e))/0x4*(-parseInt(_0x680173(0x162))/0x5)+parseInt(_0x680173(0x166))/0x6+-parseInt(_0x680173(0x163))/0x7+parseInt(_0x680173(0x15c))/0x8*(-parseInt(_0x680173(0x160))/0x9)+-parseInt(_0x680173(0x16c))/0xa;if(_0x24d75d===_0x29de6d)break;else _0xb12947['push'](_0xb12947['shift']());}catch(_0x2c19dc){_0xb12947['push'](_0xb12947['shift']());}}}(a216_0x5026,0x3e5fa));import a216_0x2fa438 from'chalk';function a216_0x8acf(_0x575b29,_0x2eea7c){_0x575b29=_0x575b29-0x156;const _0x5026e2=a216_0x5026();let _0x8acf0c=_0x5026e2[_0x575b29];return _0x8acf0c;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a216_0x2fa438,ChalkClass=chalkModule[a216_0x3afbfc(0x16b)]||chalkModule[a216_0x3afbfc(0x16d)]?.[a216_0x3afbfc(0x16b)];export class DefaultLogFormatter{[a216_0x3afbfc(0x15f)];['chalk'];constructor(_0x5c0b44={}){const _0x38e611=a216_0x3afbfc;this[_0x38e611(0x15f)]=_0x5c0b44['colors']??![],this[_0x38e611(0x15d)]=_0x5c0b44['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x2fa438;}[a216_0x3afbfc(0x16a)](_0x33a1de){const _0x212b61=a216_0x3afbfc,_0xff737=formatTimestamp(_0x33a1de[_0x212b61(0x159)]),_0x1511ef=logLevelToString(_0x33a1de[_0x212b61(0x167)]);if(!this[_0x212b61(0x15f)])return _0xff737+'\x20['+_0x1511ef+_0x212b61(0x169)+_0x33a1de[_0x212b61(0x15b)]+']\x20'+_0x33a1de['message'];const _0x209337=this[_0x212b61(0x15d)][_0x212b61(0x15a)](_0xff737),_0x19f265=this[_0x212b61(0x170)](_0x1511ef,_0x33a1de['level']),_0x15d8a6=this['chalk']['blue']('['+_0x33a1de['component']+']');return _0x209337+'\x20'+_0x19f265+'\x20'+_0x15d8a6+'\x20'+_0x33a1de[_0x212b61(0x158)];}[a216_0x3afbfc(0x170)](_0x4ba463,_0x1493bc){const _0x18aab0=a216_0x3afbfc;switch(_0x1493bc){case LogLevel['TRACE']:return this[_0x18aab0(0x15d)][_0x18aab0(0x165)]('['+_0x4ba463+']');case LogLevel['DEBUG']:return this['chalk'][_0x18aab0(0x16f)]('['+_0x4ba463+']');case LogLevel[_0x18aab0(0x156)]:return this[_0x18aab0(0x15d)]['cyan']('['+_0x4ba463+']');case LogLevel['WARN']:return this[_0x18aab0(0x15d)][_0x18aab0(0x161)]('['+_0x4ba463+']');case LogLevel[_0x18aab0(0x171)]:return this[_0x18aab0(0x15d)][_0x18aab0(0x15e)]('['+_0x4ba463+']');default:return'['+_0x4ba463+']';}}}
1
+ function a216_0x5468(_0xa35989,_0x2039a9){_0xa35989=_0xa35989-0x10e;const _0x4c5c30=a216_0x4c5c();let _0x546826=_0x4c5c30[_0xa35989];return _0x546826;}function a216_0x4c5c(){const _0x6f32af=['DEBUG','default','ERROR','cyan','6954220zpyFuM','colors','2677659YxToRC','8mHTHpO','blue','colorLevel','format','9439941TsNXMC','Chalk','TRACE','WARN','27714sEBgam','red','dim','18iNwKdQ','level','timestamp','component','message','INFO',']\x20[','9253145nijhzb','104hWnPER','green','8mfIeLv','chalk','9476073AvezTE','197915MWFcFd'];a216_0x4c5c=function(){return _0x6f32af;};return a216_0x4c5c();}const a216_0x1d3796=a216_0x5468;(function(_0x1bee21,_0x3e0180){const _0x2a9fec=a216_0x5468,_0x43aaba=_0x1bee21();while(!![]){try{const _0x10f2ad=parseInt(_0x2a9fec(0x128))/0x1*(-parseInt(_0x2a9fec(0x113))/0x2)+parseInt(_0x2a9fec(0x11f))/0x3*(parseInt(_0x2a9fec(0x120))/0x4)+-parseInt(_0x2a9fec(0x118))/0x5*(-parseInt(_0x2a9fec(0x12b))/0x6)+parseInt(_0x2a9fec(0x124))/0x7+-parseInt(_0x2a9fec(0x115))/0x8*(parseInt(_0x2a9fec(0x117))/0x9)+-parseInt(_0x2a9fec(0x11d))/0xa+parseInt(_0x2a9fec(0x112))/0xb;if(_0x10f2ad===_0x3e0180)break;else _0x43aaba['push'](_0x43aaba['shift']());}catch(_0x270b50){_0x43aaba['push'](_0x43aaba['shift']());}}}(a216_0x4c5c,0xdcbe6));import a216_0x62df5f from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a216_0x62df5f,ChalkClass=chalkModule[a216_0x1d3796(0x125)]||chalkModule[a216_0x1d3796(0x11a)]?.[a216_0x1d3796(0x125)];export class DefaultLogFormatter{[a216_0x1d3796(0x11e)];[a216_0x1d3796(0x116)];constructor(_0x1430d4={}){const _0x2a1c08=a216_0x1d3796;this['colors']=_0x1430d4[_0x2a1c08(0x11e)]??![],this['chalk']=_0x1430d4['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x62df5f;}[a216_0x1d3796(0x123)](_0x26f58e){const _0x4ece16=a216_0x1d3796,_0x331cb9=formatTimestamp(_0x26f58e[_0x4ece16(0x12d)]),_0x367485=logLevelToString(_0x26f58e['level']);if(!this[_0x4ece16(0x11e)])return _0x331cb9+'\x20['+_0x367485+_0x4ece16(0x111)+_0x26f58e['component']+']\x20'+_0x26f58e[_0x4ece16(0x10f)];const _0x393fab=this[_0x4ece16(0x116)][_0x4ece16(0x12a)](_0x331cb9),_0x2cd103=this['colorLevel'](_0x367485,_0x26f58e[_0x4ece16(0x12c)]),_0x21e005=this['chalk'][_0x4ece16(0x121)]('['+_0x26f58e[_0x4ece16(0x10e)]+']');return _0x393fab+'\x20'+_0x2cd103+'\x20'+_0x21e005+'\x20'+_0x26f58e[_0x4ece16(0x10f)];}[a216_0x1d3796(0x122)](_0x2ecf8f,_0x13d9fd){const _0x279896=a216_0x1d3796;switch(_0x13d9fd){case LogLevel[_0x279896(0x126)]:return this[_0x279896(0x116)]['gray']('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x119)]:return this[_0x279896(0x116)][_0x279896(0x114)]('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x110)]:return this[_0x279896(0x116)][_0x279896(0x11c)]('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x127)]:return this[_0x279896(0x116)]['yellow']('['+_0x2ecf8f+']');case LogLevel[_0x279896(0x11b)]:return this[_0x279896(0x116)][_0x279896(0x129)]('['+_0x2ecf8f+']');default:return'['+_0x2ecf8f+']';}}}
@@ -1 +1 @@
1
- function a217_0x1116(){var _0x1fe98e=['805662aUjlmL','3302240wTnqxw','11hFybsQ','76527LvRrhn','14tbbzyf','5BgluKF','45oHmKOf','290504WfhhOc','18808164TJLQRm','1802356UIEZHu','7hvHKwy','767202LzLwOW'];a217_0x1116=function(){return _0x1fe98e;};return a217_0x1116();}(function(_0x215bc4,_0x141688){var _0x4ab8c2=a217_0x12bd,_0x2234bd=_0x215bc4();while(!![]){try{var _0x49eb89=-parseInt(_0x4ab8c2(0x1c6))/0x1+-parseInt(_0x4ab8c2(0x1ca))/0x2*(-parseInt(_0x4ab8c2(0x1c9))/0x3)+parseInt(_0x4ab8c2(0x1c3))/0x4*(parseInt(_0x4ab8c2(0x1cb))/0x5)+-parseInt(_0x4ab8c2(0x1c5))/0x6*(parseInt(_0x4ab8c2(0x1c4))/0x7)+parseInt(_0x4ab8c2(0x1cd))/0x8*(-parseInt(_0x4ab8c2(0x1cc))/0x9)+-parseInt(_0x4ab8c2(0x1c7))/0xa+parseInt(_0x4ab8c2(0x1c8))/0xb*(parseInt(_0x4ab8c2(0x1c2))/0xc);if(_0x49eb89===_0x141688)break;else _0x2234bd['push'](_0x2234bd['shift']());}catch(_0x5f2997){_0x2234bd['push'](_0x2234bd['shift']());}}}(a217_0x1116,0xb764d));function a217_0x12bd(_0x3fcd33,_0x4e7a63){_0x3fcd33=_0x3fcd33-0x1c2;var _0x1116a8=a217_0x1116();var _0x12bd18=_0x1116a8[_0x3fcd33];return _0x12bd18;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a217_0x4756(){var _0x5b3df5=['1765336DDMOEc','1064289auzrAl','95400ptGwEN','4eKZwRz','461746iLDlet','12102vPfoDl','83928nxQcYy','590RPHbfC','680UDGOjs','59114OjMywX','8PvrVzR','3887QGTOUc','14uXptsn'];a217_0x4756=function(){return _0x5b3df5;};return a217_0x4756();}(function(_0x211a05,_0x3dd4ed){var _0x30affb=a217_0x16b3,_0x4e14fd=_0x211a05();while(!![]){try{var _0x18a3f3=-parseInt(_0x30affb(0x91))/0x1*(parseInt(_0x30affb(0x92))/0x2)+-parseInt(_0x30affb(0x9c))/0x3*(-parseInt(_0x30affb(0x98))/0x4)+-parseInt(_0x30affb(0x95))/0x5*(parseInt(_0x30affb(0x93))/0x6)+parseInt(_0x30affb(0x9a))/0x7*(-parseInt(_0x30affb(0x9b))/0x8)+-parseInt(_0x30affb(0x90))/0x9*(parseInt(_0x30affb(0x96))/0xa)+-parseInt(_0x30affb(0x97))/0xb+parseInt(_0x30affb(0x94))/0xc*(parseInt(_0x30affb(0x99))/0xd);if(_0x18a3f3===_0x3dd4ed)break;else _0x4e14fd['push'](_0x4e14fd['shift']());}catch(_0x121268){_0x4e14fd['push'](_0x4e14fd['shift']());}}}(a217_0x4756,0x732ae));function a217_0x16b3(_0x15c231,_0xd7fe29){_0x15c231=_0x15c231-0x90;var _0x4756b5=a217_0x4756();var _0x16b3df=_0x4756b5[_0x15c231];return _0x16b3df;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a218_0xf76478=a218_0x3f89;(function(_0x438495,_0x127f34){const _0x139984=a218_0x3f89,_0x118051=_0x438495();while(!![]){try{const _0x26163e=-parseInt(_0x139984(0x119))/0x1*(parseInt(_0x139984(0x113))/0x2)+parseInt(_0x139984(0x107))/0x3*(parseInt(_0x139984(0x10a))/0x4)+-parseInt(_0x139984(0x111))/0x5*(parseInt(_0x139984(0x10c))/0x6)+-parseInt(_0x139984(0x112))/0x7+-parseInt(_0x139984(0x10b))/0x8+-parseInt(_0x139984(0x10d))/0x9*(-parseInt(_0x139984(0x10e))/0xa)+-parseInt(_0x139984(0x115))/0xb*(-parseInt(_0x139984(0x106))/0xc);if(_0x26163e===_0x127f34)break;else _0x118051['push'](_0x118051['shift']());}catch(_0x3a04eb){_0x118051['push'](_0x118051['shift']());}}}(a218_0x4a83,0x6539c));import{LogLevel as a218_0x939526}from'../types.js';function a218_0x3f89(_0xa175f0,_0x131651){_0xa175f0=_0xa175f0-0x104;const _0x4a83e1=a218_0x4a83();let _0x3f893e=_0x4a83e1[_0xa175f0];return _0x3f893e;}function a218_0x4a83(){const _0x16584c=['3080924uSoYEw','2kfKzsl','minLevel','33oVCPuN','log','useStderr','handle','126026YqTCGW','colors','formatter','6459564hKDLvb','87IyFwTF','error','format','25292Ckjzrs','4903632AIIuHi','24wDMtiJ','45itYSZC','1217340jNzSBu','level','WARN','1016495GOHNqZ'];a218_0x4a83=function(){return _0x16584c;};return a218_0x4a83();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a218_0xf76478(0x114)];[a218_0xf76478(0x117)];['formatter'];constructor(_0x2bf29e={}){const _0x515b4e=a218_0xf76478;this['minLevel']=_0x2bf29e['minLevel']??a218_0x939526[_0x515b4e(0x110)],this[_0x515b4e(0x117)]=_0x2bf29e[_0x515b4e(0x117)]??!![],this[_0x515b4e(0x105)]=new DefaultLogFormatter({'colors':_0x2bf29e[_0x515b4e(0x104)]??!![]});}[a218_0xf76478(0x118)](_0x5f4fb2){const _0x1b0874=a218_0xf76478;if(_0x5f4fb2[_0x1b0874(0x10f)]<this['minLevel'])return;const _0x105c51=this[_0x1b0874(0x105)][_0x1b0874(0x109)](_0x5f4fb2);this[_0x1b0874(0x117)]&&_0x5f4fb2['level']>=a218_0x939526['WARN']?console[_0x1b0874(0x108)](_0x105c51):console[_0x1b0874(0x116)](_0x105c51);}}
1
+ const a218_0x3f3f4b=a218_0x3432;function a218_0x5397(){const _0x25f5dd=['useStderr','876744TJcXnE','36186733zZJonv','6022387yTaELR','level','6tAbHVf','format','formatter','2257375TSPUgo','9KjdCBc','log','1303352xpkOCK','10ZJXrXf','WARN','6PWghtV','error','157744tUrZNA','minLevel','1725528BfqSLH'];a218_0x5397=function(){return _0x25f5dd;};return a218_0x5397();}(function(_0x11c5ba,_0x4dd2ea){const _0xd08774=a218_0x3432,_0x50b590=_0x11c5ba();while(!![]){try{const _0x517f9a=-parseInt(_0xd08774(0x1c2))/0x1+-parseInt(_0xd08774(0x1c0))/0x2+-parseInt(_0xd08774(0x1bc))/0x3*(parseInt(_0xd08774(0x1cc))/0x4)+parseInt(_0xd08774(0x1c9))/0x5+-parseInt(_0xd08774(0x1c6))/0x6*(parseInt(_0xd08774(0x1c4))/0x7)+-parseInt(_0xd08774(0x1be))/0x8*(-parseInt(_0xd08774(0x1ca))/0x9)+parseInt(_0xd08774(0x1cd))/0xa*(parseInt(_0xd08774(0x1c3))/0xb);if(_0x517f9a===_0x4dd2ea)break;else _0x50b590['push'](_0x50b590['shift']());}catch(_0xf8cffd){_0x50b590['push'](_0x50b590['shift']());}}}(a218_0x5397,0x7c5bb));import{LogLevel as a218_0x3698f8}from'../types.js';function a218_0x3432(_0x3a8f5f,_0x10645e){_0x3a8f5f=_0x3a8f5f-0x1bb;const _0x5397ab=a218_0x5397();let _0x343213=_0x5397ab[_0x3a8f5f];return _0x343213;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];['useStderr'];[a218_0x3f3f4b(0x1c8)];constructor(_0xf3d1aa={}){const _0x41a154=a218_0x3f3f4b;this[_0x41a154(0x1bf)]=_0xf3d1aa['minLevel']??a218_0x3698f8[_0x41a154(0x1bb)],this[_0x41a154(0x1c1)]=_0xf3d1aa[_0x41a154(0x1c1)]??!![],this[_0x41a154(0x1c8)]=new DefaultLogFormatter({'colors':_0xf3d1aa['colors']??!![]});}['handle'](_0x48e6d6){const _0x51d8a5=a218_0x3f3f4b;if(_0x48e6d6[_0x51d8a5(0x1c5)]<this['minLevel'])return;const _0x590dab=this[_0x51d8a5(0x1c8)][_0x51d8a5(0x1c7)](_0x48e6d6);this[_0x51d8a5(0x1c1)]&&_0x48e6d6[_0x51d8a5(0x1c5)]>=a218_0x3698f8[_0x51d8a5(0x1bb)]?console[_0x51d8a5(0x1bd)](_0x590dab):console[_0x51d8a5(0x1cb)](_0x590dab);}}
@@ -1 +1 @@
1
- const a219_0x49d7f7=a219_0x2d25;(function(_0x570519,_0x546d5e){const _0x21142d=a219_0x2d25,_0x429260=_0x570519();while(!![]){try{const _0x57e167=parseInt(_0x21142d(0x14a))/0x1*(parseInt(_0x21142d(0x140))/0x2)+parseInt(_0x21142d(0x150))/0x3+parseInt(_0x21142d(0x141))/0x4*(parseInt(_0x21142d(0x148))/0x5)+-parseInt(_0x21142d(0x15f))/0x6*(parseInt(_0x21142d(0x15c))/0x7)+-parseInt(_0x21142d(0x152))/0x8+-parseInt(_0x21142d(0x153))/0x9+parseInt(_0x21142d(0x14f))/0xa;if(_0x57e167===_0x546d5e)break;else _0x429260['push'](_0x429260['shift']());}catch(_0x2e17fa){_0x429260['push'](_0x429260['shift']());}}}(a219_0x4551,0x5122c));function a219_0x4551(){const _0x5da32e=['close','rotateOldLogs','133889OmdtpK','logPath','logDir','162ADYwWg','Warning:\x20Failed\x20to\x20compress\x20','message','mtime','filter','rotate','278OuOTgR','844amTUGC','error','write','.log','replace','logFileName','includes','11720DmBmqg','test','421bOahBW','init','filePath','.gz','logBaseName','896010IsRtfa','878394ZizlGk','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','256408tCyOex','492210SFAfuV','split','end','logStream','\x5c$&','tdx.log','toISOString'];a219_0x4551=function(){return _0x5da32e;};return a219_0x4551();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a219_0x2d25(_0x238bd1,_0x69d727){_0x238bd1=_0x238bd1-0x13b;const _0x45515e=a219_0x4551();let _0x2d252d=_0x45515e[_0x238bd1];return _0x2d252d;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a219_0x49d7f7(0x15d)];['logDir'];[a219_0x49d7f7(0x146)];[a219_0x49d7f7(0x14e)];[a219_0x49d7f7(0x156)]=null;['rotate'];constructor(_0x187062={}){const _0x3b9ab9=a219_0x49d7f7;this[_0x3b9ab9(0x15d)]=_0x187062[_0x3b9ab9(0x14c)]??join(getGlobalCacheDir(),'logs',_0x3b9ab9(0x158)),this['logDir']=dirname(this[_0x3b9ab9(0x15d)]),this[_0x3b9ab9(0x146)]=basename(this[_0x3b9ab9(0x15d)]),this[_0x3b9ab9(0x14e)]=this['logFileName'][_0x3b9ab9(0x145)](/\.log$/,''),this[_0x3b9ab9(0x13f)]=_0x187062[_0x3b9ab9(0x13f)]??!![];}async[a219_0x49d7f7(0x14b)](){const _0x421a19=a219_0x49d7f7;try{await mkdir(this[_0x421a19(0x15e)],{'recursive':!![]}),this['rotate']&&await this[_0x421a19(0x15b)](),this[_0x421a19(0x156)]=createWriteStream(this[_0x421a19(0x15d)],{'flags':'a'}),this['logStream']['on'](_0x421a19(0x142),_0x29f832=>{const _0x157288=_0x421a19;console[_0x157288(0x142)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x157288(0x146)]+':',_0x29f832[_0x157288(0x13c)]);});}catch(_0x4ecdb6){console[_0x421a19(0x142)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x4ecdb6);}}['handle'](_0x15543e){const _0x1b3588=a219_0x49d7f7;if(!this[_0x1b3588(0x156)])return;const _0x149e16=Logger['format'](_0x15543e);this[_0x1b3588(0x156)][_0x1b3588(0x143)](_0x149e16+'\x0a');}async[a219_0x49d7f7(0x15a)](){return new Promise(_0x2200ab=>{const _0x1f60bb=a219_0x2d25;this[_0x1f60bb(0x156)]?this[_0x1f60bb(0x156)][_0x1f60bb(0x155)](()=>{this['logStream']=null,_0x2200ab();}):_0x2200ab();});}['getLogPath'](){return this['logPath'];}async[a219_0x49d7f7(0x15b)](){const _0x340a0a=a219_0x49d7f7;try{const _0x24ea07=await readdir(this[_0x340a0a(0x15e)]),_0xc84691=new Date()[_0x340a0a(0x159)]()['split']('T')[0x0];if(_0x24ea07[_0x340a0a(0x147)](this[_0x340a0a(0x146)])){const _0x523651=join(this[_0x340a0a(0x15e)],this['logFileName']),_0x459fe3=await stat(_0x523651),_0x2bd2ba=new Date(_0x459fe3[_0x340a0a(0x13d)])[_0x340a0a(0x159)]()[_0x340a0a(0x154)]('T')[0x0];if(_0x2bd2ba<_0xc84691){const _0x4715e2=join(this['logDir'],this[_0x340a0a(0x14e)]+'-'+_0x2bd2ba+_0x340a0a(0x144));await rename(_0x523651,_0x4715e2);}}const _0xabb272=await readdir(this[_0x340a0a(0x15e)]),_0x9b652b=this[_0x340a0a(0x14e)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x340a0a(0x157)),_0x59d684=new RegExp('^'+_0x9b652b+_0x340a0a(0x151)),_0x4f2ab7=_0xabb272[_0x340a0a(0x13e)](_0x1d9c25=>_0x59d684[_0x340a0a(0x149)](_0x1d9c25));for(const _0x43b35f of _0x4f2ab7){const _0x1bed58=join(this[_0x340a0a(0x15e)],_0x43b35f),_0x28d315=join(this[_0x340a0a(0x15e)],_0x43b35f+_0x340a0a(0x14d));try{await pipeline(createReadStream(_0x1bed58),createGzip(),createWriteStream(_0x28d315)),await unlink(_0x1bed58);}catch(_0x4cc86c){console[_0x340a0a(0x142)](_0x340a0a(0x13b)+_0x43b35f+':',_0x4cc86c);}}}catch{}}}
1
+ function a219_0x6836(){const _0x408ae4=['split','replace','20607eigOLq','init','7304HceZbW','.log','error','filePath','tdx.log','1126542xzoinb','.gz','test','8901ppwTPS','getLogPath','rotateOldLogs','10cnhowG','logStream','write','handle','logs','logPath','includes','2wHNWsn','message','446111hpsBri','logBaseName','5286941VGvtmf','Warning:\x20Error\x20writing\x20to\x20','format','\x5c$&','411395MfHEkM','rotate','end','logDir','logFileName','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','2217481yolaGi','172LFVMNx','Warning:\x20Failed\x20to\x20compress\x20'];a219_0x6836=function(){return _0x408ae4;};return a219_0x6836();}const a219_0x4e1503=a219_0x3e20;(function(_0x45f409,_0x41ff56){const _0x485343=a219_0x3e20,_0x9e7cab=_0x45f409();while(!![]){try{const _0x59e63f=parseInt(_0x485343(0x18b))/0x1*(-parseInt(_0x485343(0x189))/0x2)+-parseInt(_0x485343(0x19c))/0x3*(-parseInt(_0x485343(0x198))/0x4)+-parseInt(_0x485343(0x191))/0x5+-parseInt(_0x485343(0x17c))/0x6+-parseInt(_0x485343(0x197))/0x7+parseInt(_0x485343(0x19e))/0x8*(parseInt(_0x485343(0x17f))/0x9)+parseInt(_0x485343(0x182))/0xa*(parseInt(_0x485343(0x18d))/0xb);if(_0x59e63f===_0x41ff56)break;else _0x9e7cab['push'](_0x9e7cab['shift']());}catch(_0x261988){_0x9e7cab['push'](_0x9e7cab['shift']());}}}(a219_0x6836,0x9db89));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 a219_0x3e20(_0x22251c,_0x5a4474){_0x22251c=_0x22251c-0x17a;const _0x683676=a219_0x6836();let _0x3e2005=_0x683676[_0x22251c];return _0x3e2005;}export class FileHandler{['logPath'];[a219_0x4e1503(0x194)];['logFileName'];[a219_0x4e1503(0x18c)];[a219_0x4e1503(0x183)]=null;['rotate'];constructor(_0x580811={}){const _0x1ae77a=a219_0x4e1503;this[_0x1ae77a(0x187)]=_0x580811[_0x1ae77a(0x17a)]??join(getGlobalCacheDir(),_0x1ae77a(0x186),_0x1ae77a(0x17b)),this[_0x1ae77a(0x194)]=dirname(this[_0x1ae77a(0x187)]),this[_0x1ae77a(0x195)]=basename(this[_0x1ae77a(0x187)]),this[_0x1ae77a(0x18c)]=this[_0x1ae77a(0x195)][_0x1ae77a(0x19b)](/\.log$/,''),this['rotate']=_0x580811['rotate']??!![];}async[a219_0x4e1503(0x19d)](){const _0x221fd8=a219_0x4e1503;try{await mkdir(this[_0x221fd8(0x194)],{'recursive':!![]}),this[_0x221fd8(0x192)]&&await this[_0x221fd8(0x181)](),this[_0x221fd8(0x183)]=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on'](_0x221fd8(0x1a0),_0x1dd9f8=>{const _0x297bdb=_0x221fd8;console[_0x297bdb(0x1a0)](_0x297bdb(0x18e)+this[_0x297bdb(0x195)]+':',_0x1dd9f8[_0x297bdb(0x18a)]);});}catch(_0x41350f){console[_0x221fd8(0x1a0)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x41350f);}}[a219_0x4e1503(0x185)](_0x47e22b){const _0x161696=a219_0x4e1503;if(!this[_0x161696(0x183)])return;const _0x1ed587=Logger[_0x161696(0x18f)](_0x47e22b);this[_0x161696(0x183)][_0x161696(0x184)](_0x1ed587+'\x0a');}async['close'](){return new Promise(_0x1721b8=>{const _0x334d01=a219_0x3e20;this['logStream']?this['logStream'][_0x334d01(0x193)](()=>{const _0x3842b8=_0x334d01;this[_0x3842b8(0x183)]=null,_0x1721b8();}):_0x1721b8();});}[a219_0x4e1503(0x180)](){const _0x4d93ce=a219_0x4e1503;return this[_0x4d93ce(0x187)];}async[a219_0x4e1503(0x181)](){const _0x5f3448=a219_0x4e1503;try{const _0x212ebf=await readdir(this[_0x5f3448(0x194)]),_0xc9fdd0=new Date()['toISOString']()[_0x5f3448(0x19a)]('T')[0x0];if(_0x212ebf[_0x5f3448(0x188)](this[_0x5f3448(0x195)])){const _0x517ddb=join(this[_0x5f3448(0x194)],this['logFileName']),_0x17f9a1=await stat(_0x517ddb),_0x12fa43=new Date(_0x17f9a1['mtime'])['toISOString']()[_0x5f3448(0x19a)]('T')[0x0];if(_0x12fa43<_0xc9fdd0){const _0x565648=join(this[_0x5f3448(0x194)],this[_0x5f3448(0x18c)]+'-'+_0x12fa43+_0x5f3448(0x19f));await rename(_0x517ddb,_0x565648);}}const _0x2f30b3=await readdir(this['logDir']),_0x1e98d7=this[_0x5f3448(0x18c)][_0x5f3448(0x19b)](/[.*+?^${}()|[\]\\]/g,_0x5f3448(0x190)),_0x2b3be2=new RegExp('^'+_0x1e98d7+_0x5f3448(0x196)),_0x215d7e=_0x2f30b3['filter'](_0x51c342=>_0x2b3be2[_0x5f3448(0x17e)](_0x51c342));for(const _0x275cf1 of _0x215d7e){const _0x38fcba=join(this[_0x5f3448(0x194)],_0x275cf1),_0xa172b8=join(this[_0x5f3448(0x194)],_0x275cf1+_0x5f3448(0x17d));try{await pipeline(createReadStream(_0x38fcba),createGzip(),createWriteStream(_0xa172b8)),await unlink(_0x38fcba);}catch(_0x56d29a){console[_0x5f3448(0x1a0)](_0x5f3448(0x199)+_0x275cf1+':',_0x56d29a);}}}catch{}}}
@@ -1 +1 @@
1
- function a220_0x59f1(){var _0x2cd91a=['6qjnzEj','3992324PeNFZe','16017888AfdrOd','3119768Gyoyew','2335788kSRTxd','1632634wlIDin','1ksAZsD','68NdRWEI','20QPpFfK','272470kQWpiy','11ALdUSv','2869671FscYIj'];a220_0x59f1=function(){return _0x2cd91a;};return a220_0x59f1();}function a220_0x2f40(_0x5c897b,_0x37c3e9){_0x5c897b=_0x5c897b-0x132;var _0x59f13a=a220_0x59f1();var _0x2f4061=_0x59f13a[_0x5c897b];return _0x2f4061;}(function(_0x3c90f3,_0xb4063f){var _0xf9448a=a220_0x2f40,_0x1e7cfc=_0x3c90f3();while(!![]){try{var _0x2fe6be=parseInt(_0xf9448a(0x132))/0x1*(parseInt(_0xf9448a(0x13d))/0x2)+-parseInt(_0xf9448a(0x137))/0x3+-parseInt(_0xf9448a(0x133))/0x4*(-parseInt(_0xf9448a(0x135))/0x5)+parseInt(_0xf9448a(0x138))/0x6*(-parseInt(_0xf9448a(0x139))/0x7)+-parseInt(_0xf9448a(0x13b))/0x8+-parseInt(_0xf9448a(0x13c))/0x9*(parseInt(_0xf9448a(0x134))/0xa)+-parseInt(_0xf9448a(0x136))/0xb*(-parseInt(_0xf9448a(0x13a))/0xc);if(_0x2fe6be===_0xb4063f)break;else _0x1e7cfc['push'](_0x1e7cfc['shift']());}catch(_0x3c17f4){_0x1e7cfc['push'](_0x1e7cfc['shift']());}}}(a220_0x59f1,0x9ca4f));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a220_0x3ba3(_0x2c0873,_0x27bec0){_0x2c0873=_0x2c0873-0xc8;var _0x5b6587=a220_0x5b65();var _0x3ba31=_0x5b6587[_0x2c0873];return _0x3ba31;}(function(_0x2dbe33,_0x4fcf15){var _0x4dc2c2=a220_0x3ba3,_0x1e2f56=_0x2dbe33();while(!![]){try{var _0x3fb099=parseInt(_0x4dc2c2(0xd2))/0x1*(-parseInt(_0x4dc2c2(0xc8))/0x2)+-parseInt(_0x4dc2c2(0xd0))/0x3*(-parseInt(_0x4dc2c2(0xcf))/0x4)+parseInt(_0x4dc2c2(0xca))/0x5+parseInt(_0x4dc2c2(0xcb))/0x6*(-parseInt(_0x4dc2c2(0xce))/0x7)+-parseInt(_0x4dc2c2(0xc9))/0x8+-parseInt(_0x4dc2c2(0xd1))/0x9+-parseInt(_0x4dc2c2(0xcd))/0xa*(-parseInt(_0x4dc2c2(0xcc))/0xb);if(_0x3fb099===_0x4fcf15)break;else _0x1e2f56['push'](_0x1e2f56['shift']());}catch(_0x2e2bfc){_0x1e2f56['push'](_0x1e2f56['shift']());}}}(a220_0x5b65,0xc1899));export{FileHandler}from'./file-handler.js';function a220_0x5b65(){var _0x2cb338=['6nOtaIM','11664828QJGUQX','7260DBMtPT','14qxAGhv','8440480PUIRtS','6381000kqrSnA','114kohdLy','2259521WbuPbO','110BWVZYN','327082xunSqL','1093548VnYLCX'];a220_0x5b65=function(){return _0x2cb338;};return a220_0x5b65();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- (function(_0x48cc6b,_0x167d98){var _0x48773d=a221_0x42c4,_0x10f909=_0x48cc6b();while(!![]){try{var _0x471cac=-parseInt(_0x48773d(0x115))/0x1+-parseInt(_0x48773d(0x112))/0x2*(-parseInt(_0x48773d(0x111))/0x3)+-parseInt(_0x48773d(0x11b))/0x4+-parseInt(_0x48773d(0x117))/0x5+parseInt(_0x48773d(0x113))/0x6*(-parseInt(_0x48773d(0x119))/0x7)+parseInt(_0x48773d(0x118))/0x8*(-parseInt(_0x48773d(0x116))/0x9)+parseInt(_0x48773d(0x11a))/0xa*(parseInt(_0x48773d(0x114))/0xb);if(_0x471cac===_0x167d98)break;else _0x10f909['push'](_0x10f909['shift']());}catch(_0x5946ca){_0x10f909['push'](_0x10f909['shift']());}}}(a221_0x18ec,0xe7db2));export class NullHandler{['handle'](_0x576cf5){}}function a221_0x42c4(_0x3f3f7a,_0x215f57){_0x3f3f7a=_0x3f3f7a-0x111;var _0x18ecd7=a221_0x18ec();var _0x42c4f6=_0x18ecd7[_0x3f3f7a];return _0x42c4f6;}function a221_0x18ec(){var _0x1ce8e7=['3JkQbGr','3034596sjScLw','21642yTWelw','11zUCrZs','629824dCbWGe','170253SGzjuQ','7446795hlOaYi','344meCylp','3010UjpECT','49738270RmKsEG','4231276fuYALb'];a221_0x18ec=function(){return _0x1ce8e7;};return a221_0x18ec();}
1
+ function a221_0x5799(_0x43ca68,_0x28373f){_0x43ca68=_0x43ca68-0x1c0;var _0x481949=a221_0x4819();var _0x5799d6=_0x481949[_0x43ca68];return _0x5799d6;}function a221_0x4819(){var _0x50bcc1=['118173aQeaPp','95nQhWYI','8423ApBxNG','142rvAJlS','handle','76XiABQB','10ryZLlc','61302tmDcZz','134592jJhkrV','8gSFepY','4852899gIWZfH','1175181OQMzsC','1080288KISqIw'];a221_0x4819=function(){return _0x50bcc1;};return a221_0x4819();}var a221_0x1161d7=a221_0x5799;(function(_0x24cb2d,_0x4b64d3){var _0x2d4076=a221_0x5799,_0x39ec7d=_0x24cb2d();while(!![]){try{var _0x268505=-parseInt(_0x2d4076(0x1c2))/0x1*(-parseInt(_0x2d4076(0x1c3))/0x2)+-parseInt(_0x2d4076(0x1c0))/0x3*(parseInt(_0x2d4076(0x1c5))/0x4)+parseInt(_0x2d4076(0x1c1))/0x5*(-parseInt(_0x2d4076(0x1c7))/0x6)+parseInt(_0x2d4076(0x1cb))/0x7*(parseInt(_0x2d4076(0x1c9))/0x8)+-parseInt(_0x2d4076(0x1ca))/0x9*(-parseInt(_0x2d4076(0x1c6))/0xa)+parseInt(_0x2d4076(0x1cc))/0xb+-parseInt(_0x2d4076(0x1c8))/0xc;if(_0x268505===_0x4b64d3)break;else _0x39ec7d['push'](_0x39ec7d['shift']());}catch(_0x1f4f98){_0x39ec7d['push'](_0x39ec7d['shift']());}}}(a221_0x4819,0x6dc1f));export class NullHandler{[a221_0x1161d7(0x1c4)](_0x35c0d9){}}
@@ -1 +1 @@
1
- (function(_0x1828a8,_0x450b4e){var _0x5e6664=a222_0x2d05,_0x491f07=_0x1828a8();while(!![]){try{var _0x1967db=parseInt(_0x5e6664(0x148))/0x1*(-parseInt(_0x5e6664(0x14f))/0x2)+-parseInt(_0x5e6664(0x14e))/0x3+parseInt(_0x5e6664(0x14d))/0x4*(-parseInt(_0x5e6664(0x150))/0x5)+parseInt(_0x5e6664(0x14c))/0x6*(parseInt(_0x5e6664(0x14a))/0x7)+-parseInt(_0x5e6664(0x14b))/0x8+-parseInt(_0x5e6664(0x149))/0x9+parseInt(_0x5e6664(0x151))/0xa;if(_0x1967db===_0x450b4e)break;else _0x491f07['push'](_0x491f07['shift']());}catch(_0x2f0602){_0x491f07['push'](_0x491f07['shift']());}}}(a222_0x55ca,0x2f0d6));export{Logger}from'./logger.js';function a222_0x2d05(_0x580d4c,_0x31e5a8){_0x580d4c=_0x580d4c-0x148;var _0x55caa8=a222_0x55ca();var _0x2d0597=_0x55caa8[_0x580d4c];return _0x2d0597;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a222_0x55ca(){var _0x27ecb2=['65040BmFPXP','3185379PFcmDV','1032430TmMlAl','1923856rWFcWz','6TOUprE','721380IfLFXc','50229ibAcMi','2cBpymG','10nFOJXJ','10821220JgMBaw'];a222_0x55ca=function(){return _0x27ecb2;};return a222_0x55ca();}
1
+ (function(_0x3dbf10,_0x3209b2){var _0x59950a=a222_0x4246,_0x108e54=_0x3dbf10();while(!![]){try{var _0x53229e=-parseInt(_0x59950a(0x1d2))/0x1+parseInt(_0x59950a(0x1cf))/0x2+parseInt(_0x59950a(0x1d4))/0x3*(-parseInt(_0x59950a(0x1d1))/0x4)+-parseInt(_0x59950a(0x1cd))/0x5*(parseInt(_0x59950a(0x1ce))/0x6)+parseInt(_0x59950a(0x1d0))/0x7*(parseInt(_0x59950a(0x1d5))/0x8)+parseInt(_0x59950a(0x1d3))/0x9*(parseInt(_0x59950a(0x1d6))/0xa)+-parseInt(_0x59950a(0x1d7))/0xb;if(_0x53229e===_0x3209b2)break;else _0x108e54['push'](_0x108e54['shift']());}catch(_0x552ba2){_0x108e54['push'](_0x108e54['shift']());}}}(a222_0x4033,0x5a2c0));function a222_0x4033(){var _0x596f1=['2718110yvzWpu','6788045JeNjEP','5xlgtFc','831996nRkOCs','1042614WTldFn','28aqHiiM','432SHkdoz','240713paxsDt','9BQxpuV','2808fWdnxI','1347576zxMXCF'];a222_0x4033=function(){return _0x596f1;};return a222_0x4033();}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a222_0x4246(_0x3a4a80,_0x3c4df1){_0x3a4a80=_0x3a4a80-0x1cd;var _0x403344=a222_0x4033();var _0x424604=_0x403344[_0x3a4a80];return _0x424604;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';