@treasuredata/tdx 2026.3.20 → 2026.3.21

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 (223) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-login-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.d.ts +33 -0
  38. package/dist/commands/policy-command.d.ts.map +1 -0
  39. package/dist/commands/policy-command.js +1 -0
  40. package/dist/commands/policy-command.js.map +1 -0
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-update-command.js +1 -1
  51. package/dist/commands/segment-use-command.js +1 -1
  52. package/dist/commands/segment-validate-command.js +1 -1
  53. package/dist/commands/segments.js +1 -1
  54. package/dist/commands/show.js +1 -1
  55. package/dist/commands/status-command.js +1 -1
  56. package/dist/commands/tables.js +1 -1
  57. package/dist/commands/unset-command.js +1 -1
  58. package/dist/commands/upgrade-command.js +1 -1
  59. package/dist/commands/use-command.js +1 -1
  60. package/dist/commands/user-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/utils.js +1 -1
  83. package/dist/proxy/claude-usage-tracker.js +1 -1
  84. package/dist/proxy/passthrough-server.js +1 -1
  85. package/dist/proxy/sse-usage-parser.js +1 -1
  86. package/dist/sdk/agent/agent-config.js +1 -1
  87. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  88. package/dist/sdk/agent/agent-yaml.js +1 -1
  89. package/dist/sdk/agent/test/evaluator.js +1 -1
  90. package/dist/sdk/agent/test/executor.js +1 -1
  91. package/dist/sdk/agent/test/index.js +1 -1
  92. package/dist/sdk/agent/test/output.js +1 -1
  93. package/dist/sdk/agent/test/parser.js +1 -1
  94. package/dist/sdk/agent/tool-target-registry.js +1 -1
  95. package/dist/sdk/api.js +1 -1
  96. package/dist/sdk/client/cdp-api-client.js +1 -1
  97. package/dist/sdk/client/delivery-api-client.js +1 -1
  98. package/dist/sdk/client/endpoints.js +1 -1
  99. package/dist/sdk/client/engage-api-client.js +1 -1
  100. package/dist/sdk/client/http-client.js +1 -1
  101. package/dist/sdk/client/llm-api-client.js +1 -1
  102. package/dist/sdk/client/oauth-refresh.js +1 -1
  103. package/dist/sdk/client/rate-limiter.js +1 -1
  104. package/dist/sdk/client/td-api-client.js +1 -1
  105. package/dist/sdk/client/trino-api-client.js +1 -1
  106. package/dist/sdk/client/workflow-client.js +1 -1
  107. package/dist/sdk/connection-validator.js +1 -1
  108. package/dist/sdk/connection.js +1 -1
  109. package/dist/sdk/delivery.js +1 -1
  110. package/dist/sdk/engage/campaign-pull.js +1 -1
  111. package/dist/sdk/engage/campaign-push.js +1 -1
  112. package/dist/sdk/engage/campaign-validator.js +1 -1
  113. package/dist/sdk/engage/campaign-yaml.js +1 -1
  114. package/dist/sdk/engage/template-pull.js +1 -1
  115. package/dist/sdk/engage/template-push.js +1 -1
  116. package/dist/sdk/engage/template-validator.js +1 -1
  117. package/dist/sdk/engage/template-yaml.js +1 -1
  118. package/dist/sdk/engage/types/campaign-def.js +1 -1
  119. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  120. package/dist/sdk/engage/types/template-schema.js +1 -1
  121. package/dist/sdk/engage.js +1 -1
  122. package/dist/sdk/errors.js +1 -1
  123. package/dist/sdk/index.d.ts +7 -0
  124. package/dist/sdk/index.d.ts.map +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/index.js.map +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/personalization.js +1 -1
  136. package/dist/sdk/policy.d.ts +41 -0
  137. package/dist/sdk/policy.d.ts.map +1 -0
  138. package/dist/sdk/policy.js +1 -0
  139. package/dist/sdk/policy.js.map +1 -0
  140. package/dist/sdk/query/index.js +1 -1
  141. package/dist/sdk/query/sql-parser.js +1 -1
  142. package/dist/sdk/realtime.js +1 -1
  143. package/dist/sdk/schedule.js +1 -1
  144. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  145. package/dist/sdk/segment/fields-display.js +1 -1
  146. package/dist/sdk/segment/file-discovery.js +1 -1
  147. package/dist/sdk/segment/journey-utils.js +1 -1
  148. package/dist/sdk/segment/journey-validator.js +1 -1
  149. package/dist/sdk/segment/journey-yaml.js +1 -1
  150. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  151. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  152. package/dist/sdk/segment/pull-workflow.js +1 -1
  153. package/dist/sdk/segment/push-recovery.js +1 -1
  154. package/dist/sdk/segment/push-workflow.js +1 -1
  155. package/dist/sdk/segment/resolution-context.js +1 -1
  156. package/dist/sdk/segment/segment-path-parser.js +1 -1
  157. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  158. package/dist/sdk/segment/segment-validator.js +1 -1
  159. package/dist/sdk/segment/target-resolution.js +1 -1
  160. package/dist/sdk/segment/tdx-config.js +1 -1
  161. package/dist/sdk/segment/types/activation-schema.js +1 -1
  162. package/dist/sdk/segment/types/journey-def.js +1 -1
  163. package/dist/sdk/segment/types/journey-schema.js +1 -1
  164. package/dist/sdk/segment/types/segment-def.js +1 -1
  165. package/dist/sdk/segment/types/segment-schema.js +1 -1
  166. package/dist/sdk/segment/validate-files.js +1 -1
  167. package/dist/sdk/segment/yaml-validator.js +1 -1
  168. package/dist/sdk/segment.js +1 -1
  169. package/dist/sdk/types/index.d.ts +1 -0
  170. package/dist/sdk/types/index.d.ts.map +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/index.js.map +1 -1
  173. package/dist/sdk/types/policy.d.ts +58 -0
  174. package/dist/sdk/types/policy.d.ts.map +1 -0
  175. package/dist/sdk/types/policy.js +1 -0
  176. package/dist/sdk/types/policy.js.map +1 -0
  177. package/dist/sdk/types/progress.js +1 -1
  178. package/dist/sdk/user.js +1 -1
  179. package/dist/sdk/util/format-detector.js +1 -1
  180. package/dist/sdk/util/formatters.js +1 -1
  181. package/dist/sdk/util/index.js +1 -1
  182. package/dist/sdk/util/paginate.js +1 -1
  183. package/dist/sdk/util/tree-formatter.js +1 -1
  184. package/dist/sdk/workflow/archive-validation.js +1 -1
  185. package/dist/sdk/workflow/clone-workflow.js +1 -1
  186. package/dist/sdk/workflow/index.js +1 -1
  187. package/dist/sdk/workflow/pull-workflow.js +1 -1
  188. package/dist/sdk/workflow/push-workflow.js +1 -1
  189. package/dist/sdk/workflow/tdx-config.js +1 -1
  190. package/dist/sdk/workflow/workflow-utils.js +1 -1
  191. package/dist/test-utils/command-runner.js +1 -1
  192. package/dist/test-utils/factories.js +1 -1
  193. package/dist/test-utils/fixtures.js +1 -1
  194. package/dist/test-utils/http-mock.js +1 -1
  195. package/dist/test-utils/index.js +1 -1
  196. package/dist/utils/async.js +1 -1
  197. package/dist/utils/colors.js +1 -1
  198. package/dist/utils/diff.js +1 -1
  199. package/dist/utils/file-permissions.js +1 -1
  200. package/dist/utils/file-reader.js +1 -1
  201. package/dist/utils/github-releases.js +1 -1
  202. package/dist/utils/global-cache.js +1 -1
  203. package/dist/utils/json-loader.js +1 -1
  204. package/dist/utils/local-cache.js +1 -1
  205. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  206. package/dist/utils/logger/formatters/index.js +1 -1
  207. package/dist/utils/logger/handlers/console-handler.js +1 -1
  208. package/dist/utils/logger/handlers/file-handler.js +1 -1
  209. package/dist/utils/logger/handlers/index.js +1 -1
  210. package/dist/utils/logger/handlers/null-handler.js +1 -1
  211. package/dist/utils/logger/index.js +1 -1
  212. package/dist/utils/logger/logger.js +1 -1
  213. package/dist/utils/logger/types.js +1 -1
  214. package/dist/utils/option-validation.js +1 -1
  215. package/dist/utils/process.js +1 -1
  216. package/dist/utils/prompt.js +1 -1
  217. package/dist/utils/spinner.js +1 -1
  218. package/dist/utils/sse-parser.js +1 -1
  219. package/dist/utils/string-utils.js +1 -1
  220. package/dist/utils/table-ref-parser.js +1 -1
  221. package/dist/utils/tdx-logger.js +1 -1
  222. package/dist/utils/version-check.js +1 -1
  223. package/package.json +1 -1
@@ -1 +1 @@
1
- const a184_0x2c213f=a184_0x10b2;(function(_0x1e2072,_0x594a29){const _0xb42dcf=a184_0x10b2,_0x179ec4=_0x1e2072();while(!![]){try{const _0x972a49=parseInt(_0xb42dcf(0x15b))/0x1+-parseInt(_0xb42dcf(0x189))/0x2+-parseInt(_0xb42dcf(0x184))/0x3*(parseInt(_0xb42dcf(0x11f))/0x4)+-parseInt(_0xb42dcf(0x142))/0x5+parseInt(_0xb42dcf(0x17f))/0x6+-parseInt(_0xb42dcf(0x156))/0x7*(parseInt(_0xb42dcf(0x126))/0x8)+parseInt(_0xb42dcf(0x163))/0x9;if(_0x972a49===_0x594a29)break;else _0x179ec4['push'](_0x179ec4['shift']());}catch(_0x5e0b86){_0x179ec4['push'](_0x179ec4['shift']());}}}(a184_0xcc00,0x30bac));export const fixtures={'database':{'basic':{'name':a184_0x2c213f(0x136),'count':0x5,'created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x13f),'permission':a184_0x2c213f(0x16f)},'withTables':{'name':a184_0x2c213f(0x17a),'count':0x64,'created_at':a184_0x2c213f(0x15a),'updated_at':a184_0x2c213f(0x174),'permission':a184_0x2c213f(0x134)}},'table':{'basic':{'id':0x3039,'name':'users','type':a184_0x2c213f(0x133),'schema':JSON[a184_0x2c213f(0x148)]([['id',a184_0x2c213f(0x155)],[a184_0x2c213f(0x15d),a184_0x2c213f(0x131)],['name','string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x13f)},'events':{'id':0x303a,'name':a184_0x2c213f(0x14b),'type':a184_0x2c213f(0x133),'schema':JSON['stringify']([['event_id',a184_0x2c213f(0x155)],[a184_0x2c213f(0x15d),a184_0x2c213f(0x131)],[a184_0x2c213f(0x166),'string'],[a184_0x2c213f(0x17c),'string'],[a184_0x2c213f(0x139),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x2c213f(0x179)}},'parentSegment':{'basic':{'id':a184_0x2c213f(0x187),'name':'Test\x20Parent\x20Segment','description':a184_0x2c213f(0x16a),'status':a184_0x2c213f(0x122),'master_table':{'database':a184_0x2c213f(0x16b),'table':a184_0x2c213f(0x185)},'attributes':[{'name':a184_0x2c213f(0x143),'type':a184_0x2c213f(0x155),'key':!![]},{'name':a184_0x2c213f(0x13c),'type':a184_0x2c213f(0x155)},{'name':a184_0x2c213f(0x153),'type':a184_0x2c213f(0x130)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x2c213f(0x16c)},'withBehaviors':{'id':a184_0x2c213f(0x147),'name':'Customers\x20with\x20Behaviors','description':'Parent\x20segment\x20with\x20behavioral\x20data','status':'active','master_table':{'database':a184_0x2c213f(0x16b),'table':'customers'},'behaviors':[{'name':'purchases','table':{'database':a184_0x2c213f(0x175),'table':a184_0x2c213f(0x182)},'join_key':a184_0x2c213f(0x143)},{'name':a184_0x2c213f(0x173),'table':{'database':a184_0x2c213f(0x175),'table':'pageviews'},'join_key':'customer_id'}],'created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x16c)}},'segment':{'basic':{'id':a184_0x2c213f(0x15c),'name':a184_0x2c213f(0x152),'description':a184_0x2c213f(0x14c),'parent_segment_id':a184_0x2c213f(0x187),'status':'active','rules':[{'type':a184_0x2c213f(0x12e),'field':a184_0x2c213f(0x165),'operator':a184_0x2c213f(0x15f),'value':'30d'}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x2c213f(0x16c)},'withMultipleRules':{'id':a184_0x2c213f(0x180),'name':a184_0x2c213f(0x128),'description':a184_0x2c213f(0x12f),'parent_segment_id':'ps-123456','status':a184_0x2c213f(0x122),'rules':[{'type':a184_0x2c213f(0x12e),'field':a184_0x2c213f(0x165),'operator':a184_0x2c213f(0x15f),'value':'30d'},{'type':a184_0x2c213f(0x12e),'field':a184_0x2c213f(0x16e),'operator':a184_0x2c213f(0x12a),'value':0x3e8}],'count':0x5dc,'created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x16c)}},'journey':{'basic':{'id':a184_0x2c213f(0x17b),'name':'Welcome\x20Journey','description':a184_0x2c213f(0x12c),'status':a184_0x2c213f(0x123),'version':0x1,'steps':[{'id':a184_0x2c213f(0x16d),'type':a184_0x2c213f(0x151),'duration':'1d'},{'id':a184_0x2c213f(0x170),'type':'activation','activation_id':a184_0x2c213f(0x188)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x2c213f(0x16c)},'withDecision':{'id':a184_0x2c213f(0x121),'name':'Purchase\x20Reminder','description':a184_0x2c213f(0x132),'status':a184_0x2c213f(0x122),'version':0x2,'steps':[{'id':a184_0x2c213f(0x16d),'type':'decision_point','segment_id':a184_0x2c213f(0x15c),'yes_path':'step-2','no_path':'step-3'},{'id':'step-2','type':'activation','activation_id':a184_0x2c213f(0x164)},{'id':'step-3','type':a184_0x2c213f(0x157)}],'created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x16c)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a184_0x2c213f(0x14f)},{'name':a184_0x2c213f(0x140),'type':a184_0x2c213f(0x14f)},{'name':'count','type':a184_0x2c213f(0x158)}],'data':[['user-1','Alice',0x64],['user-2',a184_0x2c213f(0x12d),0xc8],[a184_0x2c213f(0x129),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a184_0x2c213f(0x140),'type':a184_0x2c213f(0x14f)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a184_0x2c213f(0x158)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a184_0x2c213f(0x186),'email':'test@example.com','created_at':a184_0x2c213f(0x13f),'updated_at':a184_0x2c213f(0x16c),'administrator':![]},'admin':{'id':0x1,'name':a184_0x2c213f(0x149),'email':a184_0x2c213f(0x17d),'created_at':a184_0x2c213f(0x14a),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a184_0x2c213f(0x172),'database':a184_0x2c213f(0x136),'status':'success','query':a184_0x2c213f(0x145),'start_at':a184_0x2c213f(0x159),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a184_0x2c213f(0x172),'database':a184_0x2c213f(0x136),'status':'running','query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a184_0x2c213f(0x160),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a184_0x2c213f(0x172),'database':a184_0x2c213f(0x136),'status':a184_0x2c213f(0x171),'query':a184_0x2c213f(0x177),'start_at':a184_0x2c213f(0x137),'end_at':a184_0x2c213f(0x138),'duration':0x1,'result_size':null,'error':a184_0x2c213f(0x14d)}},'workflow':{'basic':{'id':a184_0x2c213f(0x141),'name':a184_0x2c213f(0x167),'project':a184_0x2c213f(0x120),'revision':a184_0x2c213f(0x154),'timezone':'UTC','schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a184_0x2c213f(0x124),'name':'hourly_sync','project':'data_sync','revision':'def456','timezone':a184_0x2c213f(0x13b),'schedule':{'cron':a184_0x2c213f(0x127)},'last_session':{'id':a184_0x2c213f(0x135),'status':'success','started_at':a184_0x2c213f(0x162),'finished_at':a184_0x2c213f(0x183)}}},'apiError':{'unauthorized':{'errors':{'error':a184_0x2c213f(0x178),'message':a184_0x2c213f(0x178),'severity':a184_0x2c213f(0x171),'status_code':0x191}},'notFound':{'errors':{'error':a184_0x2c213f(0x12b),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a184_0x2c213f(0x171),'status_code':0x194}},'rateLimited':{'detail':a184_0x2c213f(0x125)},'rfc9457':{'type':a184_0x2c213f(0x13a),'title':a184_0x2c213f(0x181),'status':0x193,'detail':a184_0x2c213f(0x13d),'instance':a184_0x2c213f(0x15e)}}};export function createDatabase(_0x51db55){const _0x402c0f=a184_0x2c213f;return{...fixtures[_0x402c0f(0x146)][_0x402c0f(0x168)],..._0x51db55};}export function createTable(_0x419c40){const _0x26c084=a184_0x2c213f;return{...fixtures[_0x26c084(0x176)]['basic'],..._0x419c40};}export function createParentSegment(_0x37af05){const _0x17f71f=a184_0x2c213f;return{...fixtures[_0x17f71f(0x150)][_0x17f71f(0x168)],..._0x37af05};}export function createSegment(_0x18150f){const _0xd14f32=a184_0x2c213f;return{...fixtures[_0xd14f32(0x13e)][_0xd14f32(0x168)],..._0x18150f};}export function createJourney(_0x5f3658){const _0x3458e1=a184_0x2c213f;return{...fixtures[_0x3458e1(0x161)][_0x3458e1(0x168)],..._0x5f3658};}export function createQueryResult(_0x251d18){const _0xda02af=a184_0x2c213f;return{...fixtures[_0xda02af(0x169)][_0xda02af(0x168)],..._0x251d18};}export function createUser(_0x50d479){const _0xc95817=a184_0x2c213f;return{...fixtures[_0xc95817(0x14e)]['basic'],..._0x50d479};}function a184_0x10b2(_0x69dcac,_0x3c8239){_0x69dcac=_0x69dcac-0x11f;const _0xcc00f7=a184_0xcc00();let _0x10b226=_0xcc00f7[_0x69dcac];return _0x10b226;}function a184_0xcc00(){const _0x27a351=['event_type','admin@example.com','workflow','1485024OYElhH','cs-111222','Forbidden','purchases','2024-01-15T09:05:00Z','2091ruzPmw','unified_customers','Test\x20User','ps-123456','act-123','519346jgnfmd','1912SEuRPS','data_pipeline','j-def456','active','draft','wf-67890','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','88VZUwrR','0\x20*\x20*\x20*\x20*','High\x20Value\x20Active\x20Users','user-3','Greater','Resource\x20not\x20found','Onboarding\x20journey\x20for\x20new\x20users','Bob','attribute','Active\x20users\x20with\x20high\x20lifetime\x20value','timestamp','long','Journey\x20with\x20decision\x20point','log','full_access','sess-111','test_db','2024-01-15T10:10:00Z','2024-01-15T10:10:01Z','properties','https://api.treasuredata.com/errors/forbidden','America/Los_Angeles','email','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','segment','2024-01-01T00:00:00Z','name','wf-12345','1257800GzlPzJ','customer_id','completed','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','database','ps-789012','stringify','Admin\x20User','2023-01-01T00:00:00Z','events','Users\x20active\x20in\x20the\x20last\x2030\x20days','Table\x20does\x20not\x20exist:\x20nonexistent_table','user','varchar','parentSegment','wait','Active\x20Users','created_at','abc123','string','14357awyujq','end','bigint','2024-01-15T10:00:00Z','2023-06-15T10:30:00Z','202928uzmYfk','cs-456789','time','/v3/database/list','TimeWithinPast','2024-01-15T10:05:00Z','journey','2024-01-15T09:00:00Z','5545116TvvWRR','act-email','last_login','user_id','daily_etl','basic','queryResult','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','cdp_db','2024-01-15T00:00:00Z','step-1','lifetime_value','administrator','step-2','error','presto','page_views','2024-01-15T08:00:00Z','events_db','table','SELECT\x20*\x20FROM\x20nonexistent_table','Invalid\x20API\x20key','2024-01-15T12:00:00Z','production_db','j-abc123'];a184_0xcc00=function(){return _0x27a351;};return a184_0xcc00();}export function createJob(_0x3ff101){const _0x521149=a184_0x2c213f;return{...fixtures['job'][_0x521149(0x144)],..._0x3ff101};}export function createWorkflow(_0x2b99c7){const _0x5489f6=a184_0x2c213f;return{...fixtures[_0x5489f6(0x17e)][_0x5489f6(0x168)],..._0x2b99c7};}
1
+ const a187_0x406751=a187_0x1a0a;(function(_0x396493,_0x490f2c){const _0x46ced8=a187_0x1a0a,_0x346ee8=_0x396493();while(!![]){try{const _0x5665e3=parseInt(_0x46ced8(0x199))/0x1*(parseInt(_0x46ced8(0x19c))/0x2)+parseInt(_0x46ced8(0x1d0))/0x3+-parseInt(_0x46ced8(0x190))/0x4+parseInt(_0x46ced8(0x1b4))/0x5*(-parseInt(_0x46ced8(0x17d))/0x6)+parseInt(_0x46ced8(0x1d9))/0x7+-parseInt(_0x46ced8(0x1a4))/0x8+parseInt(_0x46ced8(0x19b))/0x9*(-parseInt(_0x46ced8(0x19e))/0xa);if(_0x5665e3===_0x490f2c)break;else _0x346ee8['push'](_0x346ee8['shift']());}catch(_0x3d4045){_0x346ee8['push'](_0x346ee8['shift']());}}}(a187_0x56e6,0xc5b5e));function a187_0x1a0a(_0xd7cb82,_0x1087d2){_0xd7cb82=_0xd7cb82-0x16d;const _0x56e67a=a187_0x56e6();let _0x1a0a5b=_0x56e67a[_0xd7cb82];return _0x1a0a5b;}export const fixtures={'database':{'basic':{'name':a187_0x406751(0x18b),'count':0x5,'created_at':a187_0x406751(0x177),'updated_at':a187_0x406751(0x177),'permission':a187_0x406751(0x16d)},'withTables':{'name':a187_0x406751(0x1bf),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a187_0x406751(0x1b2),'permission':a187_0x406751(0x1aa)}},'table':{'basic':{'id':0x3039,'name':a187_0x406751(0x174),'type':a187_0x406751(0x1c5),'schema':JSON[a187_0x406751(0x189)]([['id',a187_0x406751(0x1d2)],[a187_0x406751(0x194),a187_0x406751(0x18a)],[a187_0x406751(0x1d8),a187_0x406751(0x1d2)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a187_0x406751(0x177),'updated_at':a187_0x406751(0x177)},'events':{'id':0x303a,'name':a187_0x406751(0x1bc),'type':a187_0x406751(0x1c5),'schema':JSON[a187_0x406751(0x189)]([[a187_0x406751(0x181),a187_0x406751(0x1d2)],['time',a187_0x406751(0x18a)],[a187_0x406751(0x1b6),'string'],['event_type',a187_0x406751(0x1d2)],[a187_0x406751(0x1b8),a187_0x406751(0x18f)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a187_0x406751(0x177),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a187_0x406751(0x19f),'name':a187_0x406751(0x1b9),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a187_0x406751(0x1ac),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a187_0x406751(0x16e),'type':'string','key':!![]},{'name':a187_0x406751(0x1a2),'type':a187_0x406751(0x1d2)},{'name':'created_at','type':'timestamp'}],'created_at':a187_0x406751(0x177),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':'ps-789012','name':a187_0x406751(0x1c4),'description':a187_0x406751(0x1be),'status':'active','master_table':{'database':a187_0x406751(0x184),'table':'customers'},'behaviors':[{'name':a187_0x406751(0x176),'table':{'database':a187_0x406751(0x1bb),'table':a187_0x406751(0x176)},'join_key':a187_0x406751(0x16e)},{'name':a187_0x406751(0x197),'table':{'database':a187_0x406751(0x1bb),'table':a187_0x406751(0x16f)},'join_key':a187_0x406751(0x16e)}],'created_at':a187_0x406751(0x177),'updated_at':a187_0x406751(0x17f)}},'segment':{'basic':{'id':a187_0x406751(0x193),'name':a187_0x406751(0x188),'description':a187_0x406751(0x1ab),'parent_segment_id':a187_0x406751(0x19f),'status':a187_0x406751(0x1ac),'rules':[{'type':a187_0x406751(0x1bd),'field':a187_0x406751(0x1af),'operator':a187_0x406751(0x175),'value':a187_0x406751(0x172)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x406751(0x17f)},'withMultipleRules':{'id':'cs-111222','name':a187_0x406751(0x19d),'description':a187_0x406751(0x180),'parent_segment_id':a187_0x406751(0x19f),'status':a187_0x406751(0x1ac),'rules':[{'type':a187_0x406751(0x1bd),'field':a187_0x406751(0x1af),'operator':a187_0x406751(0x175),'value':a187_0x406751(0x172)},{'type':a187_0x406751(0x1bd),'field':'lifetime_value','operator':a187_0x406751(0x1cf),'value':0x3e8}],'count':0x5dc,'created_at':a187_0x406751(0x177),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a187_0x406751(0x171),'name':a187_0x406751(0x1cc),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a187_0x406751(0x1ad),'version':0x1,'steps':[{'id':a187_0x406751(0x1da),'type':'wait','duration':'1d'},{'id':a187_0x406751(0x1c2),'type':a187_0x406751(0x1a9),'activation_id':a187_0x406751(0x1a7)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':a187_0x406751(0x1c7),'name':a187_0x406751(0x187),'description':a187_0x406751(0x191),'status':a187_0x406751(0x1ac),'version':0x2,'steps':[{'id':'step-1','type':a187_0x406751(0x173),'segment_id':a187_0x406751(0x193),'yes_path':a187_0x406751(0x1c2),'no_path':a187_0x406751(0x1a1)},{'id':'step-2','type':a187_0x406751(0x1a9),'activation_id':a187_0x406751(0x196)},{'id':a187_0x406751(0x1a1),'type':a187_0x406751(0x1ca)}],'created_at':a187_0x406751(0x177),'updated_at':a187_0x406751(0x17f)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a187_0x406751(0x18c)},{'name':'name','type':a187_0x406751(0x18c)},{'name':a187_0x406751(0x170),'type':a187_0x406751(0x1d1)}],'data':[[a187_0x406751(0x18d),a187_0x406751(0x19a),0x64],[a187_0x406751(0x1b1),'Bob',0xc8],[a187_0x406751(0x1d3),a187_0x406751(0x182),0x96]]},'empty':{'schema':[{'name':'id','type':a187_0x406751(0x18c)},{'name':a187_0x406751(0x1d8),'type':a187_0x406751(0x18c)}],'data':[]},'singleRow':{'schema':[{'name':a187_0x406751(0x1d7),'type':a187_0x406751(0x1d1)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a187_0x406751(0x1cd),'email':a187_0x406751(0x1b5),'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a187_0x406751(0x17b),'created_at':a187_0x406751(0x1c1),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a187_0x406751(0x1b3),'database':a187_0x406751(0x18b),'status':a187_0x406751(0x1ba),'query':a187_0x406751(0x17c),'start_at':a187_0x406751(0x1b0),'end_at':a187_0x406751(0x1c8),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a187_0x406751(0x18b),'status':a187_0x406751(0x183),'query':a187_0x406751(0x1a6),'start_at':a187_0x406751(0x1c6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a187_0x406751(0x1b3),'database':a187_0x406751(0x18b),'status':a187_0x406751(0x185),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a187_0x406751(0x1cb),'end_at':a187_0x406751(0x1c0),'duration':0x1,'result_size':null,'error':a187_0x406751(0x179)}},'workflow':{'basic':{'id':a187_0x406751(0x186),'name':a187_0x406751(0x178),'project':'data_pipeline','revision':'abc123','timezone':'UTC','schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a187_0x406751(0x192),'project':a187_0x406751(0x1a0),'revision':a187_0x406751(0x1ce),'timezone':a187_0x406751(0x1b7),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a187_0x406751(0x17e),'status':a187_0x406751(0x1ba),'started_at':a187_0x406751(0x17a),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':a187_0x406751(0x198),'severity':a187_0x406751(0x185),'status_code':0x191}},'notFound':{'errors':{'error':a187_0x406751(0x1c9),'message':a187_0x406751(0x1a8),'severity':a187_0x406751(0x185),'status_code':0x194}},'rateLimited':{'detail':a187_0x406751(0x195)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a187_0x406751(0x1c3)}}};function a187_0x56e6(){const _0x26e6c7=['full_access','Users\x20active\x20in\x20the\x20last\x2030\x20days','active','draft','basic','last_login','2024-01-15T10:00:00Z','user-2','2024-01-15T08:00:00Z','presto','5cjnAfd','test@example.com','user_id','America/Los_Angeles','properties','Test\x20Parent\x20Segment','success','events_db','events','attribute','Parent\x20segment\x20with\x20behavioral\x20data','production_db','2024-01-15T10:10:01Z','2023-01-01T00:00:00Z','step-2','/v3/database/list','Customers\x20with\x20Behaviors','log','2024-01-15T10:05:00Z','j-def456','2024-01-15T10:00:05Z','Resource\x20not\x20found','end','2024-01-15T10:10:00Z','Welcome\x20Journey','Test\x20User','def456','Greater','2233605XMsQCT','bigint','string','user-3','segment','journey','workflow','total','name','8717576mfgEit','step-1','administrator','customer_id','pageviews','count','j-abc123','30d','decision_point','users','TimeWithinPast','purchases','2024-01-01T00:00:00Z','daily_etl','Table\x20does\x20not\x20exist:\x20nonexistent_table','2024-01-15T09:00:00Z','admin@example.com','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2883042YJmdef','sess-111','2024-01-15T00:00:00Z','Active\x20users\x20with\x20high\x20lifetime\x20value','event_id','Charlie','running','cdp_db','error','wf-12345','Purchase\x20Reminder','Active\x20Users','stringify','long','test_db','varchar','user-1','queryResult','map<string,string>','3714772HDKYeo','Journey\x20with\x20decision\x20point','hourly_sync','cs-456789','time','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','act-email','page_views','Invalid\x20API\x20key','806009ZbttmD','Alice','4617iKQoLf','4brQdCA','High\x20Value\x20Active\x20Users','22290FFCTQi','ps-123456','data_sync','step-3','email','completed','1915376IrcdLf','job','SELECT\x20COUNT(*)\x20FROM\x20events','act-123','The\x20requested\x20resource\x20does\x20not\x20exist','activation'];a187_0x56e6=function(){return _0x26e6c7;};return a187_0x56e6();}export function createDatabase(_0x113766){const _0x38b09f=a187_0x406751;return{...fixtures['database'][_0x38b09f(0x1ae)],..._0x113766};}export function createTable(_0x28f76e){const _0x576fde=a187_0x406751;return{...fixtures['table'][_0x576fde(0x1ae)],..._0x28f76e};}export function createParentSegment(_0x34df65){const _0x427477=a187_0x406751;return{...fixtures['parentSegment'][_0x427477(0x1ae)],..._0x34df65};}export function createSegment(_0x18d6e9){const _0x4be79f=a187_0x406751;return{...fixtures[_0x4be79f(0x1d4)][_0x4be79f(0x1ae)],..._0x18d6e9};}export function createJourney(_0x5f5755){const _0x2010ba=a187_0x406751;return{...fixtures[_0x2010ba(0x1d5)][_0x2010ba(0x1ae)],..._0x5f5755};}export function createQueryResult(_0xcdadf9){const _0x37cb8a=a187_0x406751;return{...fixtures[_0x37cb8a(0x18e)]['basic'],..._0xcdadf9};}export function createUser(_0x471d8e){const _0x3fbfd4=a187_0x406751;return{...fixtures['user'][_0x3fbfd4(0x1ae)],..._0x471d8e};}export function createJob(_0x14cdf7){const _0x12f147=a187_0x406751;return{...fixtures[_0x12f147(0x1a5)][_0x12f147(0x1a3)],..._0x14cdf7};}export function createWorkflow(_0x1d4cdc){const _0x24ecac=a187_0x406751;return{...fixtures[_0x24ecac(0x1d6)][_0x24ecac(0x1ae)],..._0x1d4cdc};}
@@ -1 +1 @@
1
- function a185_0x1686(_0x5f83c,_0x2b00e1){_0x5f83c=_0x5f83c-0x177;const _0x314745=a185_0x3147();let _0x168699=_0x314745[_0x5f83c];return _0x168699;}const a185_0x405a9d=a185_0x1686;(function(_0x5e9b70,_0x5964c5){const _0x119c6d=a185_0x1686,_0x4841a0=_0x5e9b70();while(!![]){try{const _0x511ea9=parseInt(_0x119c6d(0x17b))/0x1*(-parseInt(_0x119c6d(0x1a0))/0x2)+parseInt(_0x119c6d(0x18b))/0x3*(-parseInt(_0x119c6d(0x1a5))/0x4)+parseInt(_0x119c6d(0x1b2))/0x5*(parseInt(_0x119c6d(0x1c2))/0x6)+parseInt(_0x119c6d(0x19c))/0x7+parseInt(_0x119c6d(0x195))/0x8*(-parseInt(_0x119c6d(0x1bf))/0x9)+parseInt(_0x119c6d(0x1b0))/0xa+parseInt(_0x119c6d(0x1c3))/0xb;if(_0x511ea9===_0x5964c5)break;else _0x4841a0['push'](_0x4841a0['shift']());}catch(_0x53c06e){_0x4841a0['push'](_0x4841a0['shift']());}}}(a185_0x3147,0x8698b));import{vi}from'vitest';export class HTTPMockRegistry{[a185_0x405a9d(0x17a)]=[];[a185_0x405a9d(0x188)]=[];[a185_0x405a9d(0x186)]=null;[a185_0x405a9d(0x1a8)](_0x14f53b,_0x40dee7){return _0x109bc7=>{const _0x3e2422=a185_0x1686;if(_0x109bc7[_0x3e2422(0x197)]['toUpperCase']()!==_0x14f53b['toUpperCase']())return![];const _0x429f1c=new URL(_0x109bc7[_0x3e2422(0x1c5)]);if(typeof _0x40dee7===_0x3e2422(0x1b1))return _0x429f1c[_0x3e2422(0x194)]===_0x40dee7||_0x429f1c[_0x3e2422(0x194)][_0x3e2422(0x178)](_0x40dee7);return _0x40dee7[_0x3e2422(0x179)](_0x429f1c[_0x3e2422(0x194)]);};}[a185_0x405a9d(0x1aa)](_0xb673c,_0x160f61){return _0x5b800e=>{const _0x49c9b2=a185_0x1686;if(!_0xb673c(_0x5b800e))return![];const _0x369710=new URL(_0x5b800e[_0x49c9b2(0x1c5)]);return Object[_0x49c9b2(0x1a6)](_0x160f61)[_0x49c9b2(0x1c0)](([_0x4758e8,_0x419ac5])=>_0x369710['searchParams'][_0x49c9b2(0x1b3)](_0x4758e8)===_0x419ac5);};}['withBody'](_0x4f09fe,_0x2a6272){return _0x48a8c2=>{const _0x217087=a185_0x1686;if(!_0x4f09fe(_0x48a8c2))return![];if(typeof _0x2a6272==='function')return _0x2a6272(_0x48a8c2['body']);return JSON[_0x217087(0x196)](_0x48a8c2[_0x217087(0x1bd)])===JSON[_0x217087(0x196)](_0x2a6272);};}['withHost'](_0xd63fbc,_0x58043b){return _0x593699=>{const _0x1bc9d9=a185_0x1686;if(!_0xd63fbc(_0x593699))return![];const _0x5ea9cf=new URL(_0x593699[_0x1bc9d9(0x1c5)]);return _0x5ea9cf['host']===_0x58043b;};}[a185_0x405a9d(0x1ba)](_0x112fdb,_0xd1568,_0x443eae){const _0xe5984e=a185_0x405a9d;this['stubs'][_0xe5984e(0x1a4)]({'matcher':_0x112fdb,'responder':_0xd1568,'matched':![],'matchCount':0x0,'stack':new Error()[_0xe5984e(0x1c7)]??'','description':_0x443eae?.[_0xe5984e(0x1af)]});}[a185_0x405a9d(0x17e)](_0x22e6be,_0x615df7,_0x2ccfd3){const _0x28c64d=a185_0x405a9d,_0x23b0f9=_0x976b44=>{return _0x2ccfd3(_0x976b44['body'],_0x976b44),_0x615df7(_0x976b44);};this[_0x28c64d(0x1ba)](_0x22e6be,_0x23b0f9);}static[a185_0x405a9d(0x191)](_0x38d15b,_0x1d87ea=0xc8){return()=>new Response(JSON['stringify'](_0x38d15b),{'status':_0x1d87ea,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x594774,_0x12bcf2,_0x12dc10=a185_0x405a9d(0x181)){return()=>{const _0x4d4c8a=a185_0x1686;let _0x1780fd;switch(_0x12dc10){case _0x4d4c8a(0x177):_0x1780fd={'errors':{'error':_0x12bcf2,'message':_0x12bcf2,'severity':_0x4d4c8a(0x1be),'status_code':_0x594774}};break;case _0x4d4c8a(0x1c4):_0x1780fd={'type':'https://api.treasuredata.com/errors/'+_0x594774,'title':HTTPMockRegistry[_0x4d4c8a(0x1c1)](_0x594774),'status':_0x594774,'detail':_0x12bcf2};break;default:_0x1780fd={'error':_0x12bcf2};}return new Response(JSON['stringify'](_0x1780fd),{'status':_0x594774,'headers':{'Content-Type':_0x4d4c8a(0x17d)}});};}static[a185_0x405a9d(0x18d)](_0x3ed6f8,_0x5de921,_0x5ef51a=0xc8){const _0x490ebe=a185_0x405a9d;return()=>new Response(JSON[_0x490ebe(0x196)](_0x3ed6f8),{'status':_0x5ef51a,'headers':{'Content-Type':'application/json',..._0x5de921}});}static[a185_0x405a9d(0x184)](_0x4d4d57,_0x1185a9=0xc8){const _0x11c093=a185_0x405a9d;return()=>new Response(_0x4d4d57,{'status':_0x1185a9,'headers':{'Content-Type':_0x11c093(0x1b6)}});}static[a185_0x405a9d(0x1b5)](_0x12a7f4){return()=>{throw new Error(_0x12a7f4);};}[a185_0x405a9d(0x17f)](){const _0x4b4cdd=a185_0x405a9d;return this['fetchMock']=vi['fn']()[_0x4b4cdd(0x199)](async(_0x149fa6,_0x30c46c)=>{const _0x3810a1=_0x4b4cdd,_0x57de20=this[_0x3810a1(0x183)](_0x149fa6,_0x30c46c);this[_0x3810a1(0x188)][_0x3810a1(0x1a4)](_0x57de20);for(const _0x2c1d7b of this['stubs']){if(_0x2c1d7b[_0x3810a1(0x1ac)](_0x57de20))return _0x2c1d7b[_0x3810a1(0x187)]=!![],_0x2c1d7b[_0x3810a1(0x1b4)]++,_0x2c1d7b[_0x3810a1(0x1b9)](_0x57de20);}const _0x5a0a7e=this[_0x3810a1(0x17a)]['map']((_0x55978e,_0x1bf2c5)=>'\x20\x20'+(_0x1bf2c5+0x1)+'.\x20'+(_0x55978e[_0x3810a1(0x1af)]??_0x3810a1(0x185)))[_0x3810a1(0x1b8)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x57de20[_0x3810a1(0x197)]+'\x20'+_0x57de20['url']+'\x0a'+(_0x3810a1(0x192)+JSON[_0x3810a1(0x196)](_0x57de20[_0x3810a1(0x1bd)])+'\x0a')+(_0x3810a1(0x1bb)+(_0x5a0a7e||'\x20\x20(none)')));}),this[_0x4b4cdd(0x186)];}['parseRequest'](_0x236e9a,_0x46d080){const _0x331386=a185_0x405a9d,_0x1c07b2={};if(_0x46d080?.[_0x331386(0x1a1)]){if(_0x46d080[_0x331386(0x1a1)]instanceof Headers)_0x46d080[_0x331386(0x1a1)][_0x331386(0x1a7)]((_0x4281d9,_0x49366d)=>{const _0x194712=_0x331386;_0x1c07b2[_0x49366d[_0x194712(0x193)]()]=_0x4281d9;});else{if(Array[_0x331386(0x182)](_0x46d080[_0x331386(0x1a1)]))for(const [_0x14b1ee,_0xe96818]of _0x46d080['headers']){_0x1c07b2[_0x14b1ee[_0x331386(0x193)]()]=_0xe96818;}else for(const [_0x196a7a,_0x137850]of Object[_0x331386(0x1a6)](_0x46d080['headers'])){_0x137850!==undefined&&(_0x1c07b2[_0x196a7a[_0x331386(0x193)]()]=_0x137850);}}}let _0x459565;if(_0x46d080?.['body'])try{_0x459565=JSON[_0x331386(0x180)](_0x46d080[_0x331386(0x1bd)]);}catch{_0x459565=_0x46d080['body'];}return{'method':_0x46d080?.[_0x331386(0x197)]??_0x331386(0x1a9),'url':_0x236e9a,'headers':_0x1c07b2,'body':_0x459565};}[a185_0x405a9d(0x1bc)](_0x3d0ba9){const _0x2afcd1=a185_0x405a9d,_0x4357a3=this[_0x2afcd1(0x17a)][_0x2afcd1(0x19a)](_0x33a56f=>!_0x33a56f['matched']);if(_0x4357a3[_0x2afcd1(0x1c6)]>0x0){const _0x1ee690=_0x4357a3['map'](_0x4d708a=>{const _0x39ecc7=_0x2afcd1,_0x3c484c=_0x4d708a['description']?'\x20('+_0x4d708a[_0x39ecc7(0x1af)]+')':'',_0x2ec0ad=_0x4d708a[_0x39ecc7(0x1c7)]['split']('\x0a')[_0x39ecc7(0x18f)](0x2,0x5)[_0x39ecc7(0x1b8)]('\x0a');return _0x39ecc7(0x1ae)+_0x3c484c+_0x39ecc7(0x18c)+_0x2ec0ad;});_0x3d0ba9[_0x2afcd1(0x19f)](_0x4357a3[_0x2afcd1(0x1c6)]+_0x2afcd1(0x1a3)+_0x1ee690[_0x2afcd1(0x1b8)]('\x0a\x0a'));}}['getRequests'](){const _0x1c510b=a185_0x405a9d;return[...this[_0x1c510b(0x188)]];}['getLastRequest'](){const _0x495489=a185_0x405a9d;return this[_0x495489(0x188)][this[_0x495489(0x188)][_0x495489(0x1c6)]-0x1];}[a185_0x405a9d(0x18a)](_0x390152,_0x31b3b4){const _0x4db83b=a185_0x405a9d;return this[_0x4db83b(0x188)][_0x4db83b(0x189)](_0x62009=>{const _0x31de4f=_0x4db83b;if(_0x62009[_0x31de4f(0x197)][_0x31de4f(0x1ab)]()!==_0x390152[_0x31de4f(0x1ab)]())return![];if(typeof _0x31b3b4===_0x31de4f(0x1b1))return _0x62009[_0x31de4f(0x1c5)][_0x31de4f(0x178)](_0x31b3b4);return _0x31b3b4[_0x31de4f(0x179)](_0x62009[_0x31de4f(0x1c5)]);});}['getMatchCount'](_0x25eb8a){const _0x473a94=a185_0x405a9d;return this[_0x473a94(0x17a)][_0x25eb8a]?.[_0x473a94(0x1b4)]??0x0;}['reset'](){const _0x406412=a185_0x405a9d;this[_0x406412(0x17a)]=[],this[_0x406412(0x188)]=[],this[_0x406412(0x186)]=null;}static[a185_0x405a9d(0x1c1)](_0xa3c35b){const _0x2f948c=a185_0x405a9d,_0x2907ce={0xc8:'OK',0xc9:_0x2f948c(0x19b),0xcc:_0x2f948c(0x198),0x190:_0x2f948c(0x17c),0x191:_0x2f948c(0x19d),0x193:'Forbidden',0x194:_0x2f948c(0x1a2),0x199:_0x2f948c(0x18e),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x2f948c(0x19e),0x1f4:_0x2f948c(0x1ad),0x1f6:_0x2f948c(0x1c8),0x1f7:_0x2f948c(0x190)};return _0x2907ce[_0xa3c35b]??_0x2f948c(0x1b7);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a185_0x3147(){const _0x5bcbfe=['entries','forEach','REST','GET','withQuery','toUpperCase','matcher','Internal\x20Server\x20Error','Unmatched\x20stub','description','5391450NmQxTA','string','675hcoQzn','get','matchCount','networkError','text/plain','Unknown','join','responder','register','Registered\x20stubs:\x0a','verify','body','error','68031hlhFiS','every','getStatusText','30090hHPVhn','9754206QEKFtX','rfc9457','url','length','stack','Bad\x20Gateway','td-api','includes','test','stubs','1456KpGRCm','Bad\x20Request','application/json','registerWithInspector','createFetch','parse','simple','isArray','parseRequest','textResponse','unnamed\x20stub','fetchMock','matched','requests','some','wasCalled','3hljQpE','\x20registered\x20at:\x0a','jsonResponseWithHeaders','Conflict','slice','Service\x20Unavailable','jsonResponse','Request\x20body:\x20','toLowerCase','pathname','824BIHlVc','stringify','method','No\x20Content','mockImplementation','filter','Created','18375czOjXP','Unauthorized','Too\x20Many\x20Requests','fail','820KmVvfe','headers','Not\x20Found','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','push','714788hMkKUh'];a185_0x3147=function(){return _0x5bcbfe;};return a185_0x3147();}
1
+ const a188_0x32b9fe=a188_0x2a51;(function(_0x525747,_0x1e0f06){const _0x1f0364=a188_0x2a51,_0x3d0fe9=_0x525747();while(!![]){try{const _0x5f00ba=-parseInt(_0x1f0364(0x11c))/0x1+parseInt(_0x1f0364(0x138))/0x2+parseInt(_0x1f0364(0x114))/0x3+-parseInt(_0x1f0364(0x136))/0x4*(parseInt(_0x1f0364(0x147))/0x5)+parseInt(_0x1f0364(0x162))/0x6*(-parseInt(_0x1f0364(0x14a))/0x7)+-parseInt(_0x1f0364(0x140))/0x8*(parseInt(_0x1f0364(0x11d))/0x9)+-parseInt(_0x1f0364(0x15f))/0xa*(-parseInt(_0x1f0364(0x14c))/0xb);if(_0x5f00ba===_0x1e0f06)break;else _0x3d0fe9['push'](_0x3d0fe9['shift']());}catch(_0x2f8231){_0x3d0fe9['push'](_0x3d0fe9['shift']());}}}(a188_0x16ac,0x893f9));import{vi}from'vitest';export class HTTPMockRegistry{[a188_0x32b9fe(0x128)]=[];[a188_0x32b9fe(0x11e)]=[];[a188_0x32b9fe(0x165)]=null;[a188_0x32b9fe(0x12d)](_0x25fbd9,_0x60c6c){return _0x4c0965=>{const _0x294f73=a188_0x2a51;if(_0x4c0965['method'][_0x294f73(0x152)]()!==_0x25fbd9['toUpperCase']())return![];const _0x520f0e=new URL(_0x4c0965[_0x294f73(0x168)]);if(typeof _0x60c6c==='string')return _0x520f0e[_0x294f73(0x166)]===_0x60c6c||_0x520f0e['pathname']['includes'](_0x60c6c);return _0x60c6c[_0x294f73(0x116)](_0x520f0e[_0x294f73(0x166)]);};}[a188_0x32b9fe(0x124)](_0x3a1bd0,_0x1bb3c6){return _0x561a9d=>{const _0xf44a61=a188_0x2a51;if(!_0x3a1bd0(_0x561a9d))return![];const _0x382236=new URL(_0x561a9d[_0xf44a61(0x168)]);return Object[_0xf44a61(0x160)](_0x1bb3c6)[_0xf44a61(0x134)](([_0x22a1ba,_0x49251c])=>_0x382236[_0xf44a61(0x12a)][_0xf44a61(0x118)](_0x22a1ba)===_0x49251c);};}[a188_0x32b9fe(0x154)](_0x46dc4e,_0x2414a7){return _0x1be6a5=>{const _0x9864ee=a188_0x2a51;if(!_0x46dc4e(_0x1be6a5))return![];if(typeof _0x2414a7===_0x9864ee(0x13f))return _0x2414a7(_0x1be6a5[_0x9864ee(0x144)]);return JSON[_0x9864ee(0x122)](_0x1be6a5[_0x9864ee(0x144)])===JSON[_0x9864ee(0x122)](_0x2414a7);};}[a188_0x32b9fe(0x121)](_0x1e2a23,_0x4e7a1c){return _0x2cb9ad=>{const _0x56a36c=a188_0x2a51;if(!_0x1e2a23(_0x2cb9ad))return![];const _0x11e4de=new URL(_0x2cb9ad[_0x56a36c(0x168)]);return _0x11e4de[_0x56a36c(0x117)]===_0x4e7a1c;};}['register'](_0x3636bd,_0x4b7a90,_0x33cf7f){const _0x2e8c64=a188_0x32b9fe;this[_0x2e8c64(0x128)][_0x2e8c64(0x12f)]({'matcher':_0x3636bd,'responder':_0x4b7a90,'matched':![],'matchCount':0x0,'stack':new Error()[_0x2e8c64(0x13a)]??'','description':_0x33cf7f?.[_0x2e8c64(0x149)]});}[a188_0x32b9fe(0x155)](_0x544ed0,_0x34fa3a,_0x5cab9e){const _0x2b7763=_0x9f8fd=>{const _0x4c910e=a188_0x2a51;return _0x5cab9e(_0x9f8fd[_0x4c910e(0x144)],_0x9f8fd),_0x34fa3a(_0x9f8fd);};this['register'](_0x544ed0,_0x2b7763);}static[a188_0x32b9fe(0x14b)](_0x3f7849,_0x347915=0xc8){const _0x3d2b40=a188_0x32b9fe;return()=>new Response(JSON[_0x3d2b40(0x122)](_0x3f7849),{'status':_0x347915,'headers':{'Content-Type':_0x3d2b40(0x151)}});}static[a188_0x32b9fe(0x137)](_0x28a4c7,_0x22aac7,_0x13aae4='simple'){return()=>{const _0x756546=a188_0x2a51;let _0x293746;switch(_0x13aae4){case _0x756546(0x130):_0x293746={'errors':{'error':_0x22aac7,'message':_0x22aac7,'severity':_0x756546(0x15d),'status_code':_0x28a4c7}};break;case _0x756546(0x141):_0x293746={'type':_0x756546(0x167)+_0x28a4c7,'title':HTTPMockRegistry[_0x756546(0x12e)](_0x28a4c7),'status':_0x28a4c7,'detail':_0x22aac7};break;default:_0x293746={'error':_0x22aac7};}return new Response(JSON[_0x756546(0x122)](_0x293746),{'status':_0x28a4c7,'headers':{'Content-Type':_0x756546(0x151)}});};}static[a188_0x32b9fe(0x135)](_0x152bbe,_0x49eae7,_0x36a984=0xc8){const _0x4bdf07=a188_0x32b9fe;return()=>new Response(JSON[_0x4bdf07(0x122)](_0x152bbe),{'status':_0x36a984,'headers':{'Content-Type':_0x4bdf07(0x151),..._0x49eae7}});}static['textResponse'](_0x52ffb3,_0xbcbc50=0xc8){const _0x2c2313=a188_0x32b9fe;return()=>new Response(_0x52ffb3,{'status':_0xbcbc50,'headers':{'Content-Type':_0x2c2313(0x127)}});}static[a188_0x32b9fe(0x12c)](_0x1b0bc5){return()=>{throw new Error(_0x1b0bc5);};}['createFetch'](){const _0x37e4b7=a188_0x32b9fe;return this['fetchMock']=vi['fn']()[_0x37e4b7(0x13e)](async(_0x30991d,_0x52289e)=>{const _0x1ebb65=_0x37e4b7,_0x304979=this['parseRequest'](_0x30991d,_0x52289e);this[_0x1ebb65(0x11e)][_0x1ebb65(0x12f)](_0x304979);for(const _0x2a62c4 of this[_0x1ebb65(0x128)]){if(_0x2a62c4[_0x1ebb65(0x142)](_0x304979))return _0x2a62c4[_0x1ebb65(0x123)]=!![],_0x2a62c4['matchCount']++,_0x2a62c4[_0x1ebb65(0x15b)](_0x304979);}const _0x401ab0=this[_0x1ebb65(0x128)][_0x1ebb65(0x15a)]((_0x1a07de,_0x186d01)=>'\x20\x20'+(_0x186d01+0x1)+'.\x20'+(_0x1a07de[_0x1ebb65(0x149)]??_0x1ebb65(0x157)))[_0x1ebb65(0x145)]('\x0a');throw new Error(_0x1ebb65(0x148)+_0x304979['method']+'\x20'+_0x304979[_0x1ebb65(0x168)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x304979['body'])+'\x0a')+(_0x1ebb65(0x132)+(_0x401ab0||_0x1ebb65(0x125))));}),this[_0x37e4b7(0x165)];}['parseRequest'](_0x15b963,_0x46b0b9){const _0x1ab077=a188_0x32b9fe,_0x140dca={};if(_0x46b0b9?.[_0x1ab077(0x14d)]){if(_0x46b0b9[_0x1ab077(0x14d)]instanceof Headers)_0x46b0b9[_0x1ab077(0x14d)]['forEach']((_0x288949,_0x97ad18)=>{const _0x2e19ce=_0x1ab077;_0x140dca[_0x97ad18[_0x2e19ce(0x156)]()]=_0x288949;});else{if(Array['isArray'](_0x46b0b9[_0x1ab077(0x14d)]))for(const [_0x4fada1,_0x544642]of _0x46b0b9[_0x1ab077(0x14d)]){_0x140dca[_0x4fada1[_0x1ab077(0x156)]()]=_0x544642;}else for(const [_0x49b98c,_0x340ea8]of Object[_0x1ab077(0x160)](_0x46b0b9['headers'])){_0x340ea8!==undefined&&(_0x140dca[_0x49b98c[_0x1ab077(0x156)]()]=_0x340ea8);}}}let _0x3fe399;if(_0x46b0b9?.[_0x1ab077(0x144)])try{_0x3fe399=JSON[_0x1ab077(0x164)](_0x46b0b9[_0x1ab077(0x144)]);}catch{_0x3fe399=_0x46b0b9[_0x1ab077(0x144)];}return{'method':_0x46b0b9?.['method']??'GET','url':_0x15b963,'headers':_0x140dca,'body':_0x3fe399};}['verify'](_0x470536){const _0x32ec1d=a188_0x32b9fe,_0x52ed93=this['stubs'][_0x32ec1d(0x15e)](_0x29fc2e=>!_0x29fc2e['matched']);if(_0x52ed93[_0x32ec1d(0x159)]>0x0){const _0x54324e=_0x52ed93[_0x32ec1d(0x15a)](_0x2d84fc=>{const _0x76b224=_0x32ec1d,_0x2bbb9a=_0x2d84fc['description']?'\x20('+_0x2d84fc['description']+')':'',_0x36c578=_0x2d84fc[_0x76b224(0x13a)][_0x76b224(0x11a)]('\x0a')[_0x76b224(0x129)](0x2,0x5)[_0x76b224(0x145)]('\x0a');return'Unmatched\x20stub'+_0x2bbb9a+_0x76b224(0x153)+_0x36c578;});_0x470536[_0x32ec1d(0x14f)](_0x52ed93[_0x32ec1d(0x159)]+_0x32ec1d(0x161)+_0x54324e[_0x32ec1d(0x145)]('\x0a\x0a'));}}[a188_0x32b9fe(0x119)](){const _0x47526c=a188_0x32b9fe;return[...this[_0x47526c(0x11e)]];}[a188_0x32b9fe(0x131)](){const _0x5ed4c5=a188_0x32b9fe;return this[_0x5ed4c5(0x11e)][this[_0x5ed4c5(0x11e)][_0x5ed4c5(0x159)]-0x1];}[a188_0x32b9fe(0x120)](_0x3d6efa,_0x47607e){const _0x42f1dc=a188_0x32b9fe;return this[_0x42f1dc(0x11e)]['some'](_0x4a4130=>{const _0x369f69=_0x42f1dc;if(_0x4a4130[_0x369f69(0x143)][_0x369f69(0x152)]()!==_0x3d6efa[_0x369f69(0x152)]())return![];if(typeof _0x47607e===_0x369f69(0x11f))return _0x4a4130['url'][_0x369f69(0x12b)](_0x47607e);return _0x47607e[_0x369f69(0x116)](_0x4a4130[_0x369f69(0x168)]);});}[a188_0x32b9fe(0x126)](_0x406e5b){const _0x4e0227=a188_0x32b9fe;return this[_0x4e0227(0x128)][_0x406e5b]?.[_0x4e0227(0x13b)]??0x0;}[a188_0x32b9fe(0x139)](){const _0x243e5c=a188_0x32b9fe;this[_0x243e5c(0x128)]=[],this['requests']=[],this['fetchMock']=null;}static['getStatusText'](_0x44495f){const _0x395a3d=a188_0x32b9fe,_0x19b922={0xc8:'OK',0xc9:_0x395a3d(0x13d),0xcc:_0x395a3d(0x158),0x190:_0x395a3d(0x115),0x191:_0x395a3d(0x13c),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x395a3d(0x133),0x1a6:_0x395a3d(0x11b),0x1ad:_0x395a3d(0x150),0x1f4:_0x395a3d(0x163),0x1f6:_0x395a3d(0x146),0x1f7:_0x395a3d(0x15c)};return _0x19b922[_0x44495f]??_0x395a3d(0x14e);}}function a188_0x2a51(_0x46e20c,_0x4da583){_0x46e20c=_0x46e20c-0x114;const _0x16acdb=a188_0x16ac();let _0x2a51f6=_0x16acdb[_0x46e20c];return _0x2a51f6;}function a188_0x16ac(){const _0xa7b05b=['function','24872DbXlMS','rfc9457','matcher','method','body','join','Bad\x20Gateway','1321440zGiETz','No\x20stub\x20matched\x20request:\x20','description','4858qxFzQq','jsonResponse','44SBrACA','headers','Unknown','fail','Too\x20Many\x20Requests','application/json','toUpperCase','\x20registered\x20at:\x0a','withBody','registerWithInspector','toLowerCase','unnamed\x20stub','No\x20Content','length','map','responder','Service\x20Unavailable','error','filter','3983680CghqTj','entries','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','5142lLeXLv','Internal\x20Server\x20Error','parse','fetchMock','pathname','https://api.treasuredata.com/errors/','url','2065830SEikaI','Bad\x20Request','test','host','get','getRequests','split','Unprocessable\x20Entity','946986mnqRwE','927XvAGyu','requests','string','wasCalled','withHost','stringify','matched','withQuery','\x20\x20(none)','getMatchCount','text/plain','stubs','slice','searchParams','includes','networkError','REST','getStatusText','push','td-api','getLastRequest','Registered\x20stubs:\x0a','Conflict','every','jsonResponseWithHeaders','12lnwebQ','errorResponse','1869844xodNnb','reset','stack','matchCount','Unauthorized','Created','mockImplementation'];a188_0x16ac=function(){return _0xa7b05b;};return a188_0x16ac();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x3ea566,_0x1b61de){var _0x559335=a186_0x29b6,_0x4f9ccd=_0x3ea566();while(!![]){try{var _0x5dbfcd=-parseInt(_0x559335(0x106))/0x1*(parseInt(_0x559335(0x102))/0x2)+-parseInt(_0x559335(0x107))/0x3+-parseInt(_0x559335(0x103))/0x4+-parseInt(_0x559335(0xff))/0x5+parseInt(_0x559335(0x105))/0x6+-parseInt(_0x559335(0x101))/0x7*(parseInt(_0x559335(0x104))/0x8)+parseInt(_0x559335(0x100))/0x9;if(_0x5dbfcd===_0x1b61de)break;else _0x4f9ccd['push'](_0x4f9ccd['shift']());}catch(_0x15a4ac){_0x4f9ccd['push'](_0x4f9ccd['shift']());}}}(a186_0x2076,0xb3afb));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a186_0x29b6(_0x51267a,_0x145e70){_0x51267a=_0x51267a-0xff;var _0x2076fe=a186_0x2076();var _0x29b61e=_0x2076fe[_0x51267a];return _0x29b61e;}export{CommandRunner,createCommandRunner}from'./command-runner.js';function a186_0x2076(){var _0x87751f=['91qIkpKY','2cxbsKs','4131216vdNLsh','382504jLSxcg','3841758BvxbHs','789713WxlglR','3854577mrHLqF','5219030MyfGXa','43816077nyMYgG'];a186_0x2076=function(){return _0x87751f;};return a186_0x2076();}
1
+ function a189_0x455a(){var _0x3bd2d2=['181297EuzBfA','3711018OgSWan','3930664NPGCVw','63YrWqwE','1941270QQriZk','597vhBJgi','5VdbyOS','1454732ZzpJUs','1494bUFzMn','3761240BzMiSR'];a189_0x455a=function(){return _0x3bd2d2;};return a189_0x455a();}(function(_0xdfae1f,_0x65f882){var _0x37c280=a189_0x37c2,_0x12c742=_0xdfae1f();while(!![]){try{var _0x3cb665=-parseInt(_0x37c280(0x1d7))/0x1+parseInt(_0x37c280(0x1d5))/0x2*(-parseInt(_0x37c280(0x1d2))/0x3)+-parseInt(_0x37c280(0x1d4))/0x4*(-parseInt(_0x37c280(0x1d3))/0x5)+parseInt(_0x37c280(0x1d8))/0x6+parseInt(_0x37c280(0x1d6))/0x7+parseInt(_0x37c280(0x1cf))/0x8+-parseInt(_0x37c280(0x1d0))/0x9*(parseInt(_0x37c280(0x1d1))/0xa);if(_0x3cb665===_0x65f882)break;else _0x12c742['push'](_0x12c742['shift']());}catch(_0x2c685f){_0x12c742['push'](_0x12c742['shift']());}}}(a189_0x455a,0x4e9d0));function a189_0x37c2(_0x49496f,_0x59f364){_0x49496f=_0x49496f-0x1cf;var _0x455a09=a189_0x455a();var _0x37c2d2=_0x455a09[_0x49496f];return _0x37c2d2;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x6be855,_0x331fa2){const _0x4702d1=a187_0xe7fe,_0x11e86e=_0x6be855();while(!![]){try{const _0x294441=-parseInt(_0x4702d1(0x19e))/0x1*(parseInt(_0x4702d1(0x1a3))/0x2)+parseInt(_0x4702d1(0x19a))/0x3*(parseInt(_0x4702d1(0x1a4))/0x4)+-parseInt(_0x4702d1(0x19c))/0x5+parseInt(_0x4702d1(0x196))/0x6*(parseInt(_0x4702d1(0x199))/0x7)+parseInt(_0x4702d1(0x19d))/0x8+parseInt(_0x4702d1(0x1a1))/0x9*(parseInt(_0x4702d1(0x197))/0xa)+parseInt(_0x4702d1(0x1a0))/0xb;if(_0x294441===_0x331fa2)break;else _0x11e86e['push'](_0x11e86e['shift']());}catch(_0x2113b1){_0x11e86e['push'](_0x11e86e['shift']());}}}(a187_0x56a5,0xe6029));function a187_0xe7fe(_0x5e24ca,_0x2b8d98){_0x5e24ca=_0x5e24ca-0x196;const _0x56a54e=a187_0x56a5();let _0xe7fe3f=_0x56a54e[_0x5e24ca];return _0xe7fe3f;}export async function batchAsync(_0x3bd884,_0x12374e,_0x5c4c25=0xa){const _0x1fd9e3=a187_0xe7fe,_0x3c1b33=[];for(let _0x27c706=0x0;_0x27c706<_0x3bd884[_0x1fd9e3(0x19b)];_0x27c706+=_0x5c4c25){const _0x4084c7=_0x3bd884[_0x1fd9e3(0x1a5)](_0x27c706,_0x27c706+_0x5c4c25),_0xdedcb=await Promise[_0x1fd9e3(0x19f)](_0x4084c7[_0x1fd9e3(0x1a2)](_0x12374e));_0x3c1b33[_0x1fd9e3(0x198)](..._0xdedcb);}return _0x3c1b33;}function a187_0x56a5(){const _0x1f8db4=['length','8728065hRTXuX','11254992vZcNQr','1736769MYTdez','all','9902794acrmIo','2830158GqkEPK','map','2sYvHUN','16RYQtuH','slice','6wDReko','30sFSRZg','push','6164347LjTGmt','220026otkOhU'];a187_0x56a5=function(){return _0x1f8db4;};return a187_0x56a5();}
1
+ (function(_0xeba57,_0x13cc64){const _0x21d6b9=a190_0x1098,_0x45a84e=_0xeba57();while(!![]){try{const _0x3c9e58=-parseInt(_0x21d6b9(0x7d))/0x1*(-parseInt(_0x21d6b9(0x79))/0x2)+-parseInt(_0x21d6b9(0x83))/0x3+parseInt(_0x21d6b9(0x7c))/0x4*(parseInt(_0x21d6b9(0x7e))/0x5)+-parseInt(_0x21d6b9(0x81))/0x6+parseInt(_0x21d6b9(0x7f))/0x7*(-parseInt(_0x21d6b9(0x77))/0x8)+parseInt(_0x21d6b9(0x75))/0x9+parseInt(_0x21d6b9(0x7a))/0xa*(parseInt(_0x21d6b9(0x78))/0xb);if(_0x3c9e58===_0x13cc64)break;else _0x45a84e['push'](_0x45a84e['shift']());}catch(_0x488984){_0x45a84e['push'](_0x45a84e['shift']());}}}(a190_0x120a,0x57e4d));function a190_0x1098(_0x1f18b2,_0x1d8b2a){_0x1f18b2=_0x1f18b2-0x75;const _0x120aab=a190_0x120a();let _0x109831=_0x120aab[_0x1f18b2];return _0x109831;}export async function batchAsync(_0x4780de,_0x3b9cb1,_0x35f2fc=0xa){const _0x59795d=a190_0x1098,_0x3e5390=[];for(let _0x4d326f=0x0;_0x4d326f<_0x4780de[_0x59795d(0x80)];_0x4d326f+=_0x35f2fc){const _0x44b822=_0x4780de[_0x59795d(0x82)](_0x4d326f,_0x4d326f+_0x35f2fc),_0x33e671=await Promise[_0x59795d(0x76)](_0x44b822[_0x59795d(0x7b)](_0x3b9cb1));_0x3e5390['push'](..._0x33e671);}return _0x3e5390;}function a190_0x120a(){const _0x171554=['81319AJQzSA','length','3220188EQWXoR','slice','656397nAfnIB','238167irjuji','all','360uhNuKL','8514407nOdTwe','2FUscVp','10PHWBnF','map','101848dbOdsy','404921zQkZat','85wwkziU'];a190_0x120a=function(){return _0x171554;};return a190_0x120a();}
@@ -1 +1 @@
1
- const a188_0x2ac5c5=a188_0x1fa6;(function(_0x51185d,_0xab9838){const _0x1de0b9=a188_0x1fa6,_0x3cbc0b=_0x51185d();while(!![]){try{const _0xf0c75c=parseInt(_0x1de0b9(0xe6))/0x1+parseInt(_0x1de0b9(0xe0))/0x2*(parseInt(_0x1de0b9(0xed))/0x3)+parseInt(_0x1de0b9(0xe1))/0x4*(-parseInt(_0x1de0b9(0xef))/0x5)+parseInt(_0x1de0b9(0xd7))/0x6*(parseInt(_0x1de0b9(0xe8))/0x7)+-parseInt(_0x1de0b9(0xdf))/0x8+parseInt(_0x1de0b9(0xea))/0x9*(-parseInt(_0x1de0b9(0xd8))/0xa)+-parseInt(_0x1de0b9(0xd9))/0xb*(-parseInt(_0x1de0b9(0xe2))/0xc);if(_0xf0c75c===_0xab9838)break;else _0x3cbc0b['push'](_0x3cbc0b['shift']());}catch(_0x4368fd){_0x3cbc0b['push'](_0x3cbc0b['shift']());}}}(a188_0x3db9,0x25c2c));import*as a188_0x344064 from'chalk';const Chalk=a188_0x344064[a188_0x2ac5c5(0xd5)];export function shouldUseColor(_0x36fa63={}){const _0x206bc5=a188_0x2ac5c5;if(_0x36fa63[_0x206bc5(0xf0)]===!![])return![];if(_0x36fa63['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x206bc5(0xd4)]??![];}export function getChalk(_0x434e64={}){if(shouldUseColor(_0x434e64))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x784e19,_0x97e0b9={}){const _0x3106de=a188_0x2ac5c5;return getChalk(_0x97e0b9)[_0x3106de(0xe9)](_0x784e19);}export function colorHeader(_0x14620a,_0x49ebfe={}){return getChalk(_0x49ebfe)['cyan'](_0x14620a);}function a188_0x3db9(){const _0x543311=['764388CiAZni','map','stringify','object','299615YAbcPJ','number','92519VwKWim','dim','54fAIMEY','string','boolean','3tloLZX','isArray','974410fodUoJ','noColor','yellow','isTTY','Chalk','repeat','18RKJhOx','446850AmIOjQ','44GXlFhw','join','length','null','entries','cyan','547288PGsmhj','184018bIxUVY','4DHYhDM'];a188_0x3db9=function(){return _0x543311;};return a188_0x3db9();}export function colorType(_0x35b1b9,_0x4d5eba={}){const _0x3c5b58=a188_0x2ac5c5;return getChalk(_0x4d5eba)[_0x3c5b58(0xe9)](_0x35b1b9);}export function colorJSONKey(_0x581e85,_0x3b9e90={}){return getChalk(_0x3b9e90)['blue'](_0x581e85);}function a188_0x1fa6(_0x1793c4,_0x1d422c){_0x1793c4=_0x1793c4-0xd3;const _0x3db99e=a188_0x3db9();let _0x1fa6f9=_0x3db99e[_0x1793c4];return _0x1fa6f9;}export function colorJSONString(_0x2804e9,_0x1f61e6={}){return getChalk(_0x1f61e6)['green'](_0x2804e9);}export function colorJSONNumber(_0x3a192c,_0x1353d3={}){const _0x2a08f3=a188_0x2ac5c5;return getChalk(_0x1353d3)[_0x2a08f3(0xde)](_0x3a192c);}export function colorJSONBoolean(_0x29133d,_0x4e2d45={}){const _0x15d05c=a188_0x2ac5c5;return getChalk(_0x4e2d45)[_0x15d05c(0xd3)](_0x29133d);}export function colorJSONNull(_0x572a94,_0x3ceeaf={}){const _0x2720cd=a188_0x2ac5c5;return getChalk(_0x3ceeaf)[_0x2720cd(0xe9)](_0x572a94);}export function colorizeJSONCompact(_0x3b4784,_0x54f269={}){const _0x92c416=a188_0x2ac5c5;if(!shouldUseColor(_0x54f269))return JSON[_0x92c416(0xe4)](_0x3b4784);if(_0x3b4784===null)return colorJSONNull(_0x92c416(0xdc),_0x54f269);if(typeof _0x3b4784===_0x92c416(0xec))return colorJSONBoolean(String(_0x3b4784),_0x54f269);if(typeof _0x3b4784===_0x92c416(0xe7))return colorJSONNumber(String(_0x3b4784),_0x54f269);if(typeof _0x3b4784===_0x92c416(0xeb))return colorJSONString(JSON[_0x92c416(0xe4)](_0x3b4784),_0x54f269);if(Array[_0x92c416(0xee)](_0x3b4784)){if(_0x3b4784[_0x92c416(0xdb)]===0x0)return'[]';const _0x375864=_0x3b4784['map'](_0x34349a=>colorizeJSONCompact(_0x34349a,_0x54f269));return'['+_0x375864[_0x92c416(0xda)](',')+']';}if(typeof _0x3b4784==='object'){const _0x30b897=Object[_0x92c416(0xdd)](_0x3b4784);if(_0x30b897[_0x92c416(0xdb)]===0x0)return'{}';const _0x569acb=_0x30b897[_0x92c416(0xe3)](([_0x32a95b,_0x1d2667])=>{const _0x245ff5=_0x92c416,_0x25f237=colorJSONKey(JSON[_0x245ff5(0xe4)](_0x32a95b),_0x54f269),_0x32d286=colorizeJSONCompact(_0x1d2667,_0x54f269);return _0x25f237+':'+_0x32d286;});return'{'+_0x569acb[_0x92c416(0xda)](',')+'}';}return String(_0x3b4784);}export function colorizeJSON(_0xeeec1d,_0x13cd06={},_0x3f76a8=0x0){const _0x44f193=a188_0x2ac5c5;if(!shouldUseColor(_0x13cd06))return JSON[_0x44f193(0xe4)](_0xeeec1d,null,0x2);const _0x4bfcff='\x20'[_0x44f193(0xd6)](_0x3f76a8),_0x439367=_0x3f76a8+0x2;if(_0xeeec1d===null)return colorJSONNull(_0x44f193(0xdc),_0x13cd06);if(typeof _0xeeec1d===_0x44f193(0xec))return colorJSONBoolean(String(_0xeeec1d),_0x13cd06);if(typeof _0xeeec1d==='number')return colorJSONNumber(String(_0xeeec1d),_0x13cd06);if(typeof _0xeeec1d===_0x44f193(0xeb))return colorJSONString(JSON['stringify'](_0xeeec1d),_0x13cd06);if(Array['isArray'](_0xeeec1d)){if(_0xeeec1d['length']===0x0)return'[]';const _0x1f21b7=_0xeeec1d[_0x44f193(0xe3)](_0x10a605=>{const _0x4c8563=_0x44f193,_0x159713=colorizeJSON(_0x10a605,_0x13cd06,_0x439367);return''+'\x20'[_0x4c8563(0xd6)](_0x439367)+_0x159713;});return'[\x0a'+_0x1f21b7[_0x44f193(0xda)](',\x0a')+('\x0a'+_0x4bfcff+']');}if(typeof _0xeeec1d===_0x44f193(0xe5)){const _0x47fd15=Object[_0x44f193(0xdd)](_0xeeec1d);if(_0x47fd15[_0x44f193(0xdb)]===0x0)return'{}';const _0x2369eb=_0x47fd15[_0x44f193(0xe3)](([_0xbd173a,_0x4714c9])=>{const _0x2022a9=colorJSONKey(JSON['stringify'](_0xbd173a),_0x13cd06),_0x4de903=colorizeJSON(_0x4714c9,_0x13cd06,_0x439367);return''+'\x20'['repeat'](_0x439367)+_0x2022a9+':\x20'+_0x4de903;});return'{\x0a'+_0x2369eb[_0x44f193(0xda)](',\x0a')+('\x0a'+_0x4bfcff+'}');}return String(_0xeeec1d);}
1
+ const a191_0x68d00b=a191_0x59ec;(function(_0x14bf40,_0xc39958){const _0x6f6893=a191_0x59ec,_0x31686a=_0x14bf40();while(!![]){try{const _0x6ebeaf=-parseInt(_0x6f6893(0xe0))/0x1*(parseInt(_0x6f6893(0xf2))/0x2)+-parseInt(_0x6f6893(0xe3))/0x3+parseInt(_0x6f6893(0xe8))/0x4*(parseInt(_0x6f6893(0xf5))/0x5)+parseInt(_0x6f6893(0xf7))/0x6*(-parseInt(_0x6f6893(0xec))/0x7)+-parseInt(_0x6f6893(0xf3))/0x8+-parseInt(_0x6f6893(0xe5))/0x9*(-parseInt(_0x6f6893(0xee))/0xa)+parseInt(_0x6f6893(0xe6))/0xb*(parseInt(_0x6f6893(0xed))/0xc);if(_0x6ebeaf===_0xc39958)break;else _0x31686a['push'](_0x31686a['shift']());}catch(_0x118760){_0x31686a['push'](_0x31686a['shift']());}}}(a191_0x1931,0xaefa0));function a191_0x1931(){const _0x4dad80=['2200604TwDDcF','852TBXuJs','1558740gQIPZl','map','stringify','object','2EUvjyz','3970968wofkEb','cyan','3743485bivZQy','repeat','24ANoHvw','boolean','noColor','yellow','Chalk','number','join','32348ZRMLHJ','string','entries','3097530eYPMVB','blue','36ejOUpI','335148xVolcp','length','4WIcsqN','null','dim','isArray'];a191_0x1931=function(){return _0x4dad80;};return a191_0x1931();}import*as a191_0x52a902 from'chalk';const Chalk=a191_0x52a902[a191_0x68d00b(0xdd)];export function shouldUseColor(_0x1b8b6f={}){const _0x233353=a191_0x68d00b;if(_0x1b8b6f[_0x233353(0xdb)]===!![])return![];if(_0x1b8b6f['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout']['isTTY']??![];}export function getChalk(_0x360278={}){if(shouldUseColor(_0x360278))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2bf076,_0x5dd514={}){const _0x3df489=a191_0x68d00b;return getChalk(_0x5dd514)[_0x3df489(0xea)](_0x2bf076);}export function colorHeader(_0x59b2db,_0xc25584={}){return getChalk(_0xc25584)['cyan'](_0x59b2db);}export function colorType(_0x2a60db,_0x414636={}){return getChalk(_0x414636)['dim'](_0x2a60db);}export function colorJSONKey(_0xe09a2e,_0xb5603={}){const _0x1e4386=a191_0x68d00b;return getChalk(_0xb5603)[_0x1e4386(0xe4)](_0xe09a2e);}export function colorJSONString(_0x442d41,_0x3a952f={}){return getChalk(_0x3a952f)['green'](_0x442d41);}export function colorJSONNumber(_0x4f2930,_0x30a72e={}){const _0x285989=a191_0x68d00b;return getChalk(_0x30a72e)[_0x285989(0xf4)](_0x4f2930);}export function colorJSONBoolean(_0x5d4f75,_0x478c06={}){const _0x51911b=a191_0x68d00b;return getChalk(_0x478c06)[_0x51911b(0xdc)](_0x5d4f75);}export function colorJSONNull(_0x2f0071,_0x40d853={}){const _0x4ec17e=a191_0x68d00b;return getChalk(_0x40d853)[_0x4ec17e(0xea)](_0x2f0071);}export function colorizeJSONCompact(_0xa9a679,_0x2bd8f8={}){const _0x6005e4=a191_0x68d00b;if(!shouldUseColor(_0x2bd8f8))return JSON[_0x6005e4(0xf0)](_0xa9a679);if(_0xa9a679===null)return colorJSONNull(_0x6005e4(0xe9),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xda))return colorJSONBoolean(String(_0xa9a679),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xde))return colorJSONNumber(String(_0xa9a679),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xe1))return colorJSONString(JSON[_0x6005e4(0xf0)](_0xa9a679),_0x2bd8f8);if(Array[_0x6005e4(0xeb)](_0xa9a679)){if(_0xa9a679[_0x6005e4(0xe7)]===0x0)return'[]';const _0x2031c4=_0xa9a679[_0x6005e4(0xef)](_0x3486ad=>colorizeJSONCompact(_0x3486ad,_0x2bd8f8));return'['+_0x2031c4[_0x6005e4(0xdf)](',')+']';}if(typeof _0xa9a679===_0x6005e4(0xf1)){const _0x283f97=Object[_0x6005e4(0xe2)](_0xa9a679);if(_0x283f97['length']===0x0)return'{}';const _0xebc180=_0x283f97[_0x6005e4(0xef)](([_0x51413d,_0x94b1a8])=>{const _0x444e34=_0x6005e4,_0x37e533=colorJSONKey(JSON[_0x444e34(0xf0)](_0x51413d),_0x2bd8f8),_0x1950ca=colorizeJSONCompact(_0x94b1a8,_0x2bd8f8);return _0x37e533+':'+_0x1950ca;});return'{'+_0xebc180['join'](',')+'}';}return String(_0xa9a679);}function a191_0x59ec(_0x5d242a,_0x36b1f5){_0x5d242a=_0x5d242a-0xda;const _0x19318d=a191_0x1931();let _0x59ec99=_0x19318d[_0x5d242a];return _0x59ec99;}export function colorizeJSON(_0x1cfad9,_0x5c31b4={},_0x5512e8=0x0){const _0x463df1=a191_0x68d00b;if(!shouldUseColor(_0x5c31b4))return JSON[_0x463df1(0xf0)](_0x1cfad9,null,0x2);const _0x95f1c0='\x20'[_0x463df1(0xf6)](_0x5512e8),_0x442359=_0x5512e8+0x2;if(_0x1cfad9===null)return colorJSONNull(_0x463df1(0xe9),_0x5c31b4);if(typeof _0x1cfad9==='boolean')return colorJSONBoolean(String(_0x1cfad9),_0x5c31b4);if(typeof _0x1cfad9===_0x463df1(0xde))return colorJSONNumber(String(_0x1cfad9),_0x5c31b4);if(typeof _0x1cfad9===_0x463df1(0xe1))return colorJSONString(JSON[_0x463df1(0xf0)](_0x1cfad9),_0x5c31b4);if(Array['isArray'](_0x1cfad9)){if(_0x1cfad9[_0x463df1(0xe7)]===0x0)return'[]';const _0x1e2cb9=_0x1cfad9[_0x463df1(0xef)](_0x7198a5=>{const _0x425ebb=_0x463df1,_0x479c09=colorizeJSON(_0x7198a5,_0x5c31b4,_0x442359);return''+'\x20'[_0x425ebb(0xf6)](_0x442359)+_0x479c09;});return'[\x0a'+_0x1e2cb9[_0x463df1(0xdf)](',\x0a')+('\x0a'+_0x95f1c0+']');}if(typeof _0x1cfad9===_0x463df1(0xf1)){const _0x4a9688=Object[_0x463df1(0xe2)](_0x1cfad9);if(_0x4a9688[_0x463df1(0xe7)]===0x0)return'{}';const _0x4743b2=_0x4a9688[_0x463df1(0xef)](([_0x992293,_0xd777e7])=>{const _0xff9dde=_0x463df1,_0x86dedf=colorJSONKey(JSON[_0xff9dde(0xf0)](_0x992293),_0x5c31b4),_0x5b2b11=colorizeJSON(_0xd777e7,_0x5c31b4,_0x442359);return''+'\x20'[_0xff9dde(0xf6)](_0x442359)+_0x86dedf+':\x20'+_0x5b2b11;});return'{\x0a'+_0x4743b2['join'](',\x0a')+('\x0a'+_0x95f1c0+'}');}return String(_0x1cfad9);}
@@ -1 +1 @@
1
- (function(_0x54afd1,_0x50080e){const _0x1c8985=a189_0x52b1,_0x52cb72=_0x54afd1();while(!![]){try{const _0x479258=parseInt(_0x1c8985(0xbe))/0x1+-parseInt(_0x1c8985(0xb6))/0x2+parseInt(_0x1c8985(0xbf))/0x3+parseInt(_0x1c8985(0xce))/0x4+-parseInt(_0x1c8985(0xb8))/0x5*(-parseInt(_0x1c8985(0xc7))/0x6)+parseInt(_0x1c8985(0xcd))/0x7+-parseInt(_0x1c8985(0xc3))/0x8;if(_0x479258===_0x50080e)break;else _0x52cb72['push'](_0x52cb72['shift']());}catch(_0x10f6b3){_0x52cb72['push'](_0x52cb72['shift']());}}}(a189_0x12db,0xa2592));function a189_0x12db(){const _0x17514d=['1382740QLnGrF','some','padStart','repeat','size','push','1606546uwvOGN','added','76210vdjcnl','content','dim','new','split','join','484778BpNBHT','20607OmomfV','type','length','unchanged','717912ElNyHj','red','add','fill','216xaDDBf','forEach','\x20-\x20','has','\x20\x20\x20','green','1203622dslUvO'];a189_0x12db=function(){return _0x17514d;};return a189_0x12db();}import a189_0x3f653d from'chalk';export function generateDiff(_0x59803e,_0x793046){const _0x4c6a9f=a189_0x52b1,_0x1f106c=_0x59803e[_0x4c6a9f(0xbc)]('\x0a'),_0x3f4b9d=_0x793046['split']('\x0a'),_0x32c160=[],_0x559d6b=computeLCS(_0x1f106c,_0x3f4b9d);let _0x3cb091=0x0,_0x159a09=0x0,_0x270ec3=0x0;while(_0x3cb091<_0x1f106c[_0x4c6a9f(0xc1)]||_0x159a09<_0x3f4b9d['length']){if(_0x270ec3<_0x559d6b['length']&&_0x3cb091<_0x1f106c[_0x4c6a9f(0xc1)]&&_0x1f106c[_0x3cb091]===_0x559d6b[_0x270ec3])_0x159a09<_0x3f4b9d['length']&&_0x3f4b9d[_0x159a09]===_0x559d6b[_0x270ec3]?(_0x32c160[_0x4c6a9f(0xb5)]({'type':_0x4c6a9f(0xc2),'content':_0x1f106c[_0x3cb091]}),_0x3cb091++,_0x159a09++,_0x270ec3++):(_0x32c160[_0x4c6a9f(0xb5)]({'type':_0x4c6a9f(0xb7),'content':_0x3f4b9d[_0x159a09]}),_0x159a09++);else{if(_0x270ec3<_0x559d6b[_0x4c6a9f(0xc1)]&&_0x159a09<_0x3f4b9d['length']&&_0x3f4b9d[_0x159a09]===_0x559d6b[_0x270ec3])_0x32c160[_0x4c6a9f(0xb5)]({'type':'removed','content':_0x1f106c[_0x3cb091]}),_0x3cb091++;else{if(_0x3cb091<_0x1f106c[_0x4c6a9f(0xc1)]&&(_0x270ec3>=_0x559d6b[_0x4c6a9f(0xc1)]||_0x1f106c[_0x3cb091]!==_0x559d6b[_0x270ec3]))_0x32c160['push']({'type':'removed','content':_0x1f106c[_0x3cb091]}),_0x3cb091++;else _0x159a09<_0x3f4b9d['length']&&(_0x32c160[_0x4c6a9f(0xb5)]({'type':_0x4c6a9f(0xb7),'content':_0x3f4b9d[_0x159a09]}),_0x159a09++);}}}return _0x32c160;}function computeLCS(_0x516d6e,_0x1eb069){const _0x1a6b61=a189_0x52b1,_0x4104ef=_0x516d6e[_0x1a6b61(0xc1)],_0x10fd88=_0x1eb069[_0x1a6b61(0xc1)],_0x1a0486=Array(_0x4104ef+0x1)[_0x1a6b61(0xc6)](null)['map'](()=>Array(_0x10fd88+0x1)['fill'](0x0));for(let _0x41e140=0x1;_0x41e140<=_0x4104ef;_0x41e140++){for(let _0x4d9460=0x1;_0x4d9460<=_0x10fd88;_0x4d9460++){_0x516d6e[_0x41e140-0x1]===_0x1eb069[_0x4d9460-0x1]?_0x1a0486[_0x41e140][_0x4d9460]=_0x1a0486[_0x41e140-0x1][_0x4d9460-0x1]+0x1:_0x1a0486[_0x41e140][_0x4d9460]=Math['max'](_0x1a0486[_0x41e140-0x1][_0x4d9460],_0x1a0486[_0x41e140][_0x4d9460-0x1]);}}const _0xd0b037=[];let _0x2bb430=_0x4104ef,_0x4cd4b8=_0x10fd88;while(_0x2bb430>0x0&&_0x4cd4b8>0x0){if(_0x516d6e[_0x2bb430-0x1]===_0x1eb069[_0x4cd4b8-0x1])_0xd0b037['unshift'](_0x516d6e[_0x2bb430-0x1]),_0x2bb430--,_0x4cd4b8--;else _0x1a0486[_0x2bb430-0x1][_0x4cd4b8]>_0x1a0486[_0x2bb430][_0x4cd4b8-0x1]?_0x2bb430--:_0x4cd4b8--;}return _0xd0b037;}function a189_0x52b1(_0x25ea86,_0x2652c6){_0x25ea86=_0x25ea86-0xb3;const _0x12dbb8=a189_0x12db();let _0x52b102=_0x12dbb8[_0x25ea86];return _0x52b102;}export function formatDiffWithColors(_0x58eacb,_0x2d7db8=0x3){const _0x45550c=a189_0x52b1,_0x331158=new Set();_0x58eacb[_0x45550c(0xc8)]((_0x3e1de7,_0x2aac7f)=>{const _0x4d8642=_0x45550c;_0x3e1de7[_0x4d8642(0xc0)]!==_0x4d8642(0xc2)&&_0x331158['add'](_0x2aac7f);});if(_0x331158[_0x45550c(0xb4)]===0x0)return'';const _0xefa783=new Set();for(const _0x5ab32d of _0x331158){for(let _0x527a09=Math['max'](0x0,_0x5ab32d-_0x2d7db8);_0x527a09<=Math['min'](_0x58eacb['length']-0x1,_0x5ab32d+_0x2d7db8);_0x527a09++){_0xefa783[_0x45550c(0xc5)](_0x527a09);}}const _0x225475=[];let _0xa188fd=-0x1;const _0x20f3c6=_0x58eacb[_0x45550c(0xc1)],_0xdfe45e=Math['max'](0x3,String(_0x20f3c6)[_0x45550c(0xc1)]),_0x2554f3=[];let _0x2eb021=0x0,_0x8a9c13=0x0;for(const _0x13420e of _0x58eacb){if(_0x13420e['type']==='removed')_0x2eb021++,_0x2554f3[_0x45550c(0xb5)]({'old':_0x2eb021,'new':0x0});else _0x13420e[_0x45550c(0xc0)]==='added'?(_0x8a9c13++,_0x2554f3[_0x45550c(0xb5)]({'old':0x0,'new':_0x8a9c13})):(_0x2eb021++,_0x8a9c13++,_0x2554f3['push']({'old':_0x2eb021,'new':_0x8a9c13}));}for(let _0x110477=0x0;_0x110477<_0x58eacb[_0x45550c(0xc1)];_0x110477++){if(!_0xefa783[_0x45550c(0xca)](_0x110477))continue;_0xa188fd!==-0x1&&_0x110477>_0xa188fd+0x1&&_0x225475['push'](a189_0x3f653d['cyan']('\x20\x20...'));_0xa188fd=_0x110477;const _0x2161ff=_0x58eacb[_0x110477],_0x32b178=_0x2554f3[_0x110477],_0x3cc8b5=_0x32b178['old']>0x0?String(_0x32b178['old'])[_0x45550c(0xd0)](_0xdfe45e):'\x20'['repeat'](_0xdfe45e),_0x2dd31c=_0x32b178[_0x45550c(0xbb)]>0x0?String(_0x32b178['new'])[_0x45550c(0xd0)](_0xdfe45e):'\x20'[_0x45550c(0xb3)](_0xdfe45e);switch(_0x2161ff[_0x45550c(0xc0)]){case'removed':_0x225475['push'](a189_0x3f653d[_0x45550c(0xc4)](_0x3cc8b5+'\x20'+_0x2dd31c+_0x45550c(0xc9)+_0x2161ff[_0x45550c(0xb9)]));break;case _0x45550c(0xb7):_0x225475[_0x45550c(0xb5)](a189_0x3f653d[_0x45550c(0xcc)](_0x3cc8b5+'\x20'+_0x2dd31c+'\x20+\x20'+_0x2161ff['content']));break;default:_0x225475['push'](a189_0x3f653d[_0x45550c(0xba)](_0x3cc8b5+'\x20'+_0x2dd31c+_0x45550c(0xcb)+_0x2161ff[_0x45550c(0xb9)]));break;}}return _0x225475[_0x45550c(0xbd)]('\x0a');}export function hasChanges(_0x30859f){const _0x94771b=a189_0x52b1;return _0x30859f[_0x94771b(0xcf)](_0x4956b8=>_0x4956b8[_0x94771b(0xc0)]!=='unchanged');}
1
+ (function(_0xcff623,_0x478ba8){const _0x9b9b3=a192_0x596f,_0x916932=_0xcff623();while(!![]){try{const _0xe7b96b=-parseInt(_0x9b9b3(0xd3))/0x1+parseInt(_0x9b9b3(0xd5))/0x2*(parseInt(_0x9b9b3(0xc7))/0x3)+parseInt(_0x9b9b3(0xdb))/0x4+parseInt(_0x9b9b3(0xe4))/0x5+-parseInt(_0x9b9b3(0xd8))/0x6*(parseInt(_0x9b9b3(0xda))/0x7)+-parseInt(_0x9b9b3(0xdd))/0x8+parseInt(_0x9b9b3(0xd6))/0x9;if(_0xe7b96b===_0x478ba8)break;else _0x916932['push'](_0x916932['shift']());}catch(_0xa933ae){_0x916932['push'](_0x916932['shift']());}}}(a192_0x428e,0xef5d3));function a192_0x596f(_0x3e45ed,_0x364b1e){_0x3e45ed=_0x3e45ed-0xc2;const _0x428eef=a192_0x428e();let _0x596f44=_0x428eef[_0x3e45ed];return _0x596f44;}import a192_0x858ea6 from'chalk';function a192_0x428e(){const _0x10a13d=['added','add','1695048VpAACd','new','1527536BaJPCL','11810817vDoEAp','\x20\x20...','10190676DNujeN','forEach','7NwhkfB','5059296IxsCHu','content','7242568zKbXsl','max','push','unshift','type','split','map','9691725aNNWcN','unchanged','removed','\x20-\x20','cyan','\x20\x20\x20','3GUqMCq','fill','length','red','padStart','repeat','old','dim','size','join'];a192_0x428e=function(){return _0x10a13d;};return a192_0x428e();}export function generateDiff(_0x42d4d1,_0x1a2fe9){const _0x4f0d6a=a192_0x596f,_0xf1fdf3=_0x42d4d1[_0x4f0d6a(0xe2)]('\x0a'),_0x552fcc=_0x1a2fe9['split']('\x0a'),_0x2aaf50=[],_0x175342=computeLCS(_0xf1fdf3,_0x552fcc);let _0x5dbba3=0x0,_0x269cb6=0x0,_0x2040ff=0x0;while(_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]||_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]){if(_0x2040ff<_0x175342[_0x4f0d6a(0xc9)]&&_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]&&_0xf1fdf3[_0x5dbba3]===_0x175342[_0x2040ff])_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&_0x552fcc[_0x269cb6]===_0x175342[_0x2040ff]?(_0x2aaf50['push']({'type':_0x4f0d6a(0xc2),'content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++,_0x269cb6++,_0x2040ff++):(_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xd1),'content':_0x552fcc[_0x269cb6]}),_0x269cb6++);else{if(_0x2040ff<_0x175342[_0x4f0d6a(0xc9)]&&_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&_0x552fcc[_0x269cb6]===_0x175342[_0x2040ff])_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xc3),'content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++;else{if(_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]&&(_0x2040ff>=_0x175342['length']||_0xf1fdf3[_0x5dbba3]!==_0x175342[_0x2040ff]))_0x2aaf50[_0x4f0d6a(0xdf)]({'type':'removed','content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++;else _0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&(_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xd1),'content':_0x552fcc[_0x269cb6]}),_0x269cb6++);}}}return _0x2aaf50;}function computeLCS(_0x3ab093,_0x582304){const _0x4118d3=a192_0x596f,_0x58041c=_0x3ab093[_0x4118d3(0xc9)],_0xf4d59=_0x582304[_0x4118d3(0xc9)],_0x523ed4=Array(_0x58041c+0x1)[_0x4118d3(0xc8)](null)[_0x4118d3(0xe3)](()=>Array(_0xf4d59+0x1)['fill'](0x0));for(let _0x268bcd=0x1;_0x268bcd<=_0x58041c;_0x268bcd++){for(let _0x5be182=0x1;_0x5be182<=_0xf4d59;_0x5be182++){_0x3ab093[_0x268bcd-0x1]===_0x582304[_0x5be182-0x1]?_0x523ed4[_0x268bcd][_0x5be182]=_0x523ed4[_0x268bcd-0x1][_0x5be182-0x1]+0x1:_0x523ed4[_0x268bcd][_0x5be182]=Math[_0x4118d3(0xde)](_0x523ed4[_0x268bcd-0x1][_0x5be182],_0x523ed4[_0x268bcd][_0x5be182-0x1]);}}const _0x33d897=[];let _0x4553bd=_0x58041c,_0x369cd7=_0xf4d59;while(_0x4553bd>0x0&&_0x369cd7>0x0){if(_0x3ab093[_0x4553bd-0x1]===_0x582304[_0x369cd7-0x1])_0x33d897[_0x4118d3(0xe0)](_0x3ab093[_0x4553bd-0x1]),_0x4553bd--,_0x369cd7--;else _0x523ed4[_0x4553bd-0x1][_0x369cd7]>_0x523ed4[_0x4553bd][_0x369cd7-0x1]?_0x4553bd--:_0x369cd7--;}return _0x33d897;}export function formatDiffWithColors(_0x797ba5,_0x5cfb77=0x3){const _0x2d5215=a192_0x596f,_0x161fad=new Set();_0x797ba5[_0x2d5215(0xd9)]((_0x2ad025,_0x1ccc54)=>{const _0x406d2a=_0x2d5215;_0x2ad025[_0x406d2a(0xe1)]!==_0x406d2a(0xc2)&&_0x161fad[_0x406d2a(0xd2)](_0x1ccc54);});if(_0x161fad[_0x2d5215(0xcf)]===0x0)return'';const _0x947d19=new Set();for(const _0x4b3384 of _0x161fad){for(let _0x26af99=Math['max'](0x0,_0x4b3384-_0x5cfb77);_0x26af99<=Math['min'](_0x797ba5[_0x2d5215(0xc9)]-0x1,_0x4b3384+_0x5cfb77);_0x26af99++){_0x947d19[_0x2d5215(0xd2)](_0x26af99);}}const _0x359b73=[];let _0x4b07aa=-0x1;const _0x4ffd22=_0x797ba5[_0x2d5215(0xc9)],_0x235b0c=Math[_0x2d5215(0xde)](0x3,String(_0x4ffd22)['length']),_0x2a8216=[];let _0x335bcf=0x0,_0x1c7169=0x0;for(const _0x1dc2b0 of _0x797ba5){if(_0x1dc2b0[_0x2d5215(0xe1)]===_0x2d5215(0xc3))_0x335bcf++,_0x2a8216[_0x2d5215(0xdf)]({'old':_0x335bcf,'new':0x0});else _0x1dc2b0[_0x2d5215(0xe1)]===_0x2d5215(0xd1)?(_0x1c7169++,_0x2a8216[_0x2d5215(0xdf)]({'old':0x0,'new':_0x1c7169})):(_0x335bcf++,_0x1c7169++,_0x2a8216[_0x2d5215(0xdf)]({'old':_0x335bcf,'new':_0x1c7169}));}for(let _0x298ceb=0x0;_0x298ceb<_0x797ba5[_0x2d5215(0xc9)];_0x298ceb++){if(!_0x947d19['has'](_0x298ceb))continue;_0x4b07aa!==-0x1&&_0x298ceb>_0x4b07aa+0x1&&_0x359b73[_0x2d5215(0xdf)](a192_0x858ea6[_0x2d5215(0xc5)](_0x2d5215(0xd7)));_0x4b07aa=_0x298ceb;const _0x2650eb=_0x797ba5[_0x298ceb],_0x1a07ed=_0x2a8216[_0x298ceb],_0x4b7c85=_0x1a07ed[_0x2d5215(0xcd)]>0x0?String(_0x1a07ed[_0x2d5215(0xcd)])[_0x2d5215(0xcb)](_0x235b0c):'\x20'[_0x2d5215(0xcc)](_0x235b0c),_0x38ce7e=_0x1a07ed[_0x2d5215(0xd4)]>0x0?String(_0x1a07ed[_0x2d5215(0xd4)])[_0x2d5215(0xcb)](_0x235b0c):'\x20'[_0x2d5215(0xcc)](_0x235b0c);switch(_0x2650eb[_0x2d5215(0xe1)]){case _0x2d5215(0xc3):_0x359b73['push'](a192_0x858ea6[_0x2d5215(0xca)](_0x4b7c85+'\x20'+_0x38ce7e+_0x2d5215(0xc4)+_0x2650eb[_0x2d5215(0xdc)]));break;case _0x2d5215(0xd1):_0x359b73['push'](a192_0x858ea6['green'](_0x4b7c85+'\x20'+_0x38ce7e+'\x20+\x20'+_0x2650eb['content']));break;default:_0x359b73['push'](a192_0x858ea6[_0x2d5215(0xce)](_0x4b7c85+'\x20'+_0x38ce7e+_0x2d5215(0xc6)+_0x2650eb[_0x2d5215(0xdc)]));break;}}return _0x359b73[_0x2d5215(0xd0)]('\x0a');}export function hasChanges(_0x525ecb){const _0x20dc44=a192_0x596f;return _0x525ecb['some'](_0x40fe56=>_0x40fe56[_0x20dc44(0xe1)]!==_0x20dc44(0xc2));}
@@ -1 +1 @@
1
- (function(_0x5b8687,_0x2ef126){const _0x569506=a190_0x4ac5,_0x3b2f08=_0x5b8687();while(!![]){try{const _0x183f91=-parseInt(_0x569506(0x1fc))/0x1+parseInt(_0x569506(0x1fa))/0x2+-parseInt(_0x569506(0x1f6))/0x3*(-parseInt(_0x569506(0x1f0))/0x4)+parseInt(_0x569506(0x1ee))/0x5*(-parseInt(_0x569506(0x1fd))/0x6)+parseInt(_0x569506(0x1f9))/0x7*(-parseInt(_0x569506(0x1ec))/0x8)+-parseInt(_0x569506(0x1f8))/0x9+-parseInt(_0x569506(0x1f7))/0xa*(-parseInt(_0x569506(0x1ff))/0xb);if(_0x183f91===_0x2ef126)break;else _0x3b2f08['push'](_0x3b2f08['shift']());}catch(_0x2b9cbf){_0x3b2f08['push'](_0x3b2f08['shift']());}}}(a190_0x5980,0x6521d));function a190_0x5980(){const _0x3f0577=['\x20has\x20insecure\x20permissions\x20(','88QmKODq','warn','statSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','87411EjWHpA','10zzNABZ','6890661DgpqSF','2800672IaeMLM','608826dcNAnK','mode','592357mBCOlj','84BOXTjT','chmodSync','26882306PQtxBf','Warning:\x20','16KJDSjA','existsSync','291735SXImVx'];a190_0x5980=function(){return _0x3f0577;};return a190_0x5980();}import*as a190_0x230312 from'node:fs';function a190_0x4ac5(_0x39180f,_0x100468){_0x39180f=_0x39180f-0x1eb;const _0x59802b=a190_0x5980();let _0x4ac551=_0x59802b[_0x39180f];return _0x4ac551;}import*as a190_0x388b45 from'node:path';export function setSecureFilePermissions(_0x184ba8){const _0xa5b8b4=a190_0x4ac5;try{a190_0x230312[_0xa5b8b4(0x1fe)](_0x184ba8,0x180);}catch{console[_0xa5b8b4(0x1f1)](_0xa5b8b4(0x1f3)+_0x184ba8);}}export function setSecureDirectoryPermissions(_0x475e55){const _0xd8c7ef=a190_0x4ac5;try{a190_0x230312['chmodSync'](_0x475e55,0x1c0);}catch{console[_0xd8c7ef(0x1f1)](_0xd8c7ef(0x1f3)+_0x475e55);}}export function createSecureDirectory(_0x3bfe5c){const _0x5ecf16=a190_0x4ac5;!a190_0x230312[_0x5ecf16(0x1ed)](_0x3bfe5c)&&(a190_0x230312['mkdirSync'](_0x3bfe5c,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3bfe5c));}export function validateSecureFilePermissions(_0x31f08f){const _0x4f4ffe=a190_0x4ac5;try{const _0x2565db=a190_0x230312[_0x4f4ffe(0x1f2)](_0x31f08f),_0x39f6f2=_0x2565db[_0x4f4ffe(0x1fb)]&0x1ff,_0x51cd5c=(_0x39f6f2&0x3f)!==0x0;if(_0x51cd5c)return console[_0x4f4ffe(0x1f1)](_0x4f4ffe(0x1eb)+_0x31f08f+_0x4f4ffe(0x1ef)+_0x39f6f2['toString'](0x8)+_0x4f4ffe(0x1f5)+_0x4f4ffe(0x1f4)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x55b3f9,_0x83c8ad){const _0x5671e7=a190_0x388b45['dirname'](_0x55b3f9);createSecureDirectory(_0x5671e7),a190_0x230312['writeFileSync'](_0x55b3f9,_0x83c8ad,{'mode':0x180}),setSecureFilePermissions(_0x55b3f9);}
1
+ (function(_0x56226e,_0x4208ee){const _0x4084be=a193_0x55bd,_0x4df58b=_0x56226e();while(!![]){try{const _0x5111ae=-parseInt(_0x4084be(0x75))/0x1*(parseInt(_0x4084be(0x7a))/0x2)+-parseInt(_0x4084be(0x72))/0x3*(parseInt(_0x4084be(0x6f))/0x4)+-parseInt(_0x4084be(0x7d))/0x5+-parseInt(_0x4084be(0x77))/0x6*(parseInt(_0x4084be(0x6e))/0x7)+parseInt(_0x4084be(0x74))/0x8*(parseInt(_0x4084be(0x79))/0x9)+parseInt(_0x4084be(0x7f))/0xa+-parseInt(_0x4084be(0x6d))/0xb*(-parseInt(_0x4084be(0x78))/0xc);if(_0x5111ae===_0x4208ee)break;else _0x4df58b['push'](_0x4df58b['shift']());}catch(_0x32384b){_0x4df58b['push'](_0x4df58b['shift']());}}}(a193_0x2f50,0x3a25d));import*as a193_0x49d281 from'node:fs';import*as a193_0x514164 from'node:path';function a193_0x55bd(_0x1643be,_0x27a593){_0x1643be=_0x1643be-0x6d;const _0x2f5021=a193_0x2f50();let _0x55bde9=_0x2f5021[_0x1643be];return _0x55bde9;}export function setSecureFilePermissions(_0x1afef8){const _0x49646b=a193_0x55bd;try{a193_0x49d281[_0x49646b(0x76)](_0x1afef8,0x180);}catch{console[_0x49646b(0x73)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1afef8);}}function a193_0x2f50(){const _0x440f5e=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','2107585YjYiLT','statSync','356820HgvKbe','11ItuJts','10864zIFKwa','212828PVTWdd','Warning:\x20','dirname','15RVspZV','warn','17400mPmzbF','59tRzVbY','chmodSync','1746wxtseS','14002572WoScdc','1818QTmnoJ','8968BmYdHA','mkdirSync'];a193_0x2f50=function(){return _0x440f5e;};return a193_0x2f50();}export function setSecureDirectoryPermissions(_0x271463){const _0x48d15d=a193_0x55bd;try{a193_0x49d281[_0x48d15d(0x76)](_0x271463,0x1c0);}catch{console['warn'](_0x48d15d(0x7c)+_0x271463);}}export function createSecureDirectory(_0x3e6409){const _0x41f375=a193_0x55bd;!a193_0x49d281['existsSync'](_0x3e6409)&&(a193_0x49d281[_0x41f375(0x7b)](_0x3e6409,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3e6409));}export function validateSecureFilePermissions(_0x4d15f2){const _0x40084b=a193_0x55bd;try{const _0x524e2f=a193_0x49d281[_0x40084b(0x7e)](_0x4d15f2),_0x4232a7=_0x524e2f['mode']&0x1ff,_0x524e25=(_0x4232a7&0x3f)!==0x0;if(_0x524e25)return console[_0x40084b(0x73)](_0x40084b(0x70)+_0x4d15f2+'\x20has\x20insecure\x20permissions\x20('+_0x4232a7['toString'](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x124d85,_0x263893){const _0x28bc10=a193_0x55bd,_0x7de294=a193_0x514164[_0x28bc10(0x71)](_0x124d85);createSecureDirectory(_0x7de294),a193_0x49d281['writeFileSync'](_0x124d85,_0x263893,{'mode':0x180}),setSecureFilePermissions(_0x124d85);}
@@ -1 +1 @@
1
- (function(_0x275797,_0x45be0){const _0x56296a=a191_0x51c2,_0x4eca6e=_0x275797();while(!![]){try{const _0x369dd5=parseInt(_0x56296a(0x13c))/0x1*(parseInt(_0x56296a(0x136))/0x2)+parseInt(_0x56296a(0x135))/0x3*(-parseInt(_0x56296a(0x132))/0x4)+parseInt(_0x56296a(0x133))/0x5+parseInt(_0x56296a(0x13f))/0x6+-parseInt(_0x56296a(0x13e))/0x7*(-parseInt(_0x56296a(0x13a))/0x8)+parseInt(_0x56296a(0x140))/0x9*(-parseInt(_0x56296a(0x13b))/0xa)+-parseInt(_0x56296a(0x138))/0xb;if(_0x369dd5===_0x45be0)break;else _0x4eca6e['push'](_0x4eca6e['shift']());}catch(_0x9fe8f0){_0x4eca6e['push'](_0x4eca6e['shift']());}}}(a191_0x4e9b,0x54ee4));import{readFileSync}from'fs';function a191_0x51c2(_0xd98a4c,_0x5e8fb1){_0xd98a4c=_0xd98a4c-0x131;const _0x4e9bf0=a191_0x4e9b();let _0x51c29f=_0x4e9bf0[_0xd98a4c];return _0x51c29f;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x4e9b(){const _0x183865=['File\x20\x27','304372sGSNlW','1835750UGLTlo','Permission\x20denied\x20reading\x20file\x20\x27','24scknYc','102wcIohV','utf-8','10289411KbYsxC','INTERNAL','904wLrIOO','1113110SoGFwK','10959qlFhlF','NOT_FOUND','34713MPbNPP','3101436cPglHj','9dTfgKE','\x27:\x20','Error\x20reading\x20file\x20\x27'];a191_0x4e9b=function(){return _0x183865;};return a191_0x4e9b();}export function readFileContent(_0x38e96b){const _0x26491e=a191_0x51c2;try{return readFileSync(_0x38e96b,_0x26491e(0x137));}catch(_0xbc32fc){const _0x8a4e8c=_0xbc32fc['code'];if(_0x8a4e8c==='ENOENT')throw new SDKError(ErrorCode[_0x26491e(0x13d)],_0x26491e(0x131)+_0x38e96b+'\x27\x20not\x20found',_0xbc32fc);else{if(_0x8a4e8c==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x26491e(0x134)+_0x38e96b+'\x27',_0xbc32fc);else throw new SDKError(ErrorCode[_0x26491e(0x139)],_0x26491e(0x142)+_0x38e96b+_0x26491e(0x141)+_0xbc32fc['message'],_0xbc32fc);}}}
1
+ (function(_0x8224a4,_0x14dab5){const _0x3eb9a6=a194_0x4e4b,_0x1131e2=_0x8224a4();while(!![]){try{const _0x20e973=-parseInt(_0x3eb9a6(0xd7))/0x1*(-parseInt(_0x3eb9a6(0xd6))/0x2)+-parseInt(_0x3eb9a6(0xd3))/0x3*(parseInt(_0x3eb9a6(0xe2))/0x4)+-parseInt(_0x3eb9a6(0xde))/0x5*(parseInt(_0x3eb9a6(0xe8))/0x6)+parseInt(_0x3eb9a6(0xdf))/0x7*(-parseInt(_0x3eb9a6(0xe3))/0x8)+parseInt(_0x3eb9a6(0xd8))/0x9*(-parseInt(_0x3eb9a6(0xe7))/0xa)+-parseInt(_0x3eb9a6(0xdc))/0xb+parseInt(_0x3eb9a6(0xe9))/0xc;if(_0x20e973===_0x14dab5)break;else _0x1131e2['push'](_0x1131e2['shift']());}catch(_0x690cdc){_0x1131e2['push'](_0x1131e2['shift']());}}}(a194_0x2212,0x809c9));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x2212(){const _0x4e94ed=['Error\x20reading\x20file\x20\x27','9163030ssGTCw','1015884klzmGb','50800212HdvQXI','INTERNAL','3VVAwoF','\x27:\x20','ENOENT','2414ncaYNC','171bimCWH','9uBmGsl','File\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','6807570lfaOfe','NOT_FOUND','20lUiNzO','5539583tDWWvi','\x27\x20not\x20found','message','3636628vxCpWb','8EyfdFz','code','EACCES'];a194_0x2212=function(){return _0x4e94ed;};return a194_0x2212();}function a194_0x4e4b(_0x235a87,_0x271529){_0x235a87=_0x235a87-0xd3;const _0x22129a=a194_0x2212();let _0x4e4bc3=_0x22129a[_0x235a87];return _0x4e4bc3;}export function readFileContent(_0x5eb18e){const _0x1b6ec7=a194_0x4e4b;try{return readFileSync(_0x5eb18e,_0x1b6ec7(0xdb));}catch(_0x216c2b){const _0x2e7aaf=_0x216c2b[_0x1b6ec7(0xe4)];if(_0x2e7aaf===_0x1b6ec7(0xd5))throw new SDKError(ErrorCode[_0x1b6ec7(0xdd)],_0x1b6ec7(0xd9)+_0x5eb18e+_0x1b6ec7(0xe0),_0x216c2b);else{if(_0x2e7aaf===_0x1b6ec7(0xe5))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1b6ec7(0xda)+_0x5eb18e+'\x27',_0x216c2b);else throw new SDKError(ErrorCode[_0x1b6ec7(0xea)],_0x1b6ec7(0xe6)+_0x5eb18e+_0x1b6ec7(0xd4)+_0x216c2b[_0x1b6ec7(0xe1)],_0x216c2b);}}}
@@ -1 +1 @@
1
- function a192_0x1587(){const _0x223e30=['1305Eycrmy','7443966jlUOtH','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','24898580LSUKVH','tag_name','data','/releases?per_page=20','slice','prerelease','1846110JIIVas','set','releases','error','now','application/vnd.github+json','919986AFrXxp','statusCode','end','8584AoUdqM','find','1CYbzYl','destroy','api.github.com','toString','14825133lPxFAC','length','594640aWGoCp','next','98mmwfIl'];a192_0x1587=function(){return _0x223e30;};return a192_0x1587();}(function(_0x432e37,_0x4912d9){const _0x53a5df=a192_0x27ad,_0x96c0a4=_0x432e37();while(!![]){try{const _0x101bfc=-parseInt(_0x53a5df(0x145))/0x1*(parseInt(_0x53a5df(0x140))/0x2)+-parseInt(_0x53a5df(0x14e))/0x3*(parseInt(_0x53a5df(0x143))/0x4)+parseInt(_0x53a5df(0x13a))/0x5+-parseInt(_0x53a5df(0x14f))/0x6+parseInt(_0x53a5df(0x14d))/0x7*(-parseInt(_0x53a5df(0x14b))/0x8)+parseInt(_0x53a5df(0x149))/0x9+parseInt(_0x53a5df(0x151))/0xa;if(_0x101bfc===_0x4912d9)break;else _0x96c0a4['push'](_0x96c0a4['shift']());}catch(_0x5c6ac1){_0x96c0a4['push'](_0x96c0a4['shift']());}}}(a192_0x1587,0xcb02d));import*as a192_0x3e760d from'node:https';function a192_0x27ad(_0x1ea1a4,_0x11061a){_0x1ea1a4=_0x1ea1a4-0x135;const _0x1587dd=a192_0x1587();let _0x27ad5e=_0x1587dd[_0x1ea1a4];return _0x27ad5e;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xbc1700,_0x56825c,_0x163c17){const _0x4af6c0=a192_0x27ad,_0x57d15c=_0xbc1700+'/'+_0x56825c,_0x392ba1=cache['get'](_0x57d15c);if(_0x392ba1&&Date[_0x4af6c0(0x13e)]()-_0x392ba1['fetchedAt']<CACHE_TTL_MS)return Promise['resolve'](_0x392ba1[_0x4af6c0(0x13c)]);return new Promise((_0x4ad019,_0x32225f)=>{const _0x4e9b6f=_0x4af6c0,_0x221306={'hostname':_0x4e9b6f(0x147),'path':'/repos/'+_0xbc1700+'/'+_0x56825c+_0x4e9b6f(0x137),'headers':{'User-Agent':_0x163c17,'Accept':_0x4e9b6f(0x13f)},'timeout':REQUEST_TIMEOUT_MS},_0x41b83d=a192_0x3e760d['get'](_0x221306,_0x564780=>{const _0x33997b=_0x4e9b6f;let _0x22c90d='';_0x564780['on'](_0x33997b(0x136),_0x1ec0f7=>{const _0x39af8b=_0x33997b;_0x22c90d+=_0x1ec0f7[_0x39af8b(0x148)]();}),_0x564780['on'](_0x33997b(0x142),()=>{const _0x4e2b1b=_0x33997b;if(_0x564780['statusCode']!==0xc8){_0x32225f(new Error('GitHub\x20API\x20returned\x20'+_0x564780[_0x4e2b1b(0x141)]+':\x20'+_0x22c90d[_0x4e2b1b(0x138)](0x0,0xc8)));return;}try{const _0x40a98c=JSON['parse'](_0x22c90d);cache[_0x4e2b1b(0x13b)](_0x57d15c,{'releases':_0x40a98c,'fetchedAt':Date['now']()}),_0x4ad019(_0x40a98c);}catch(_0x41d70a){_0x32225f(_0x41d70a);}});});_0x41b83d['on']('timeout',()=>{const _0x651ced=_0x4e9b6f;_0x41b83d[_0x651ced(0x146)](),_0x32225f(new Error(_0x651ced(0x150)+REQUEST_TIMEOUT_MS+'ms'));}),_0x41b83d['on'](_0x4e9b6f(0x13d),_0x32225f);});}export async function resolveReleaseTag(_0x1a467e,_0x5e73b7,_0x1e4507,_0x382d68){const _0x16dcc0=a192_0x27ad,_0x3a1c46=await fetchGitHubReleases(_0x5e73b7,_0x1e4507,_0x382d68);if(_0x3a1c46[_0x16dcc0(0x14a)]===0x0)return null;if(_0x1a467e===_0x16dcc0(0x14c))return _0x3a1c46[0x0]['tag_name'];const _0x3d0043=_0x3a1c46[_0x16dcc0(0x144)](_0x260062=>!_0x260062[_0x16dcc0(0x139)]);return _0x3d0043?_0x3d0043[_0x16dcc0(0x135)]:null;}
1
+ (function(_0x2327ab,_0x355126){const _0x223500=a195_0x18cd,_0x17e8bb=_0x2327ab();while(!![]){try{const _0x55cb6f=-parseInt(_0x223500(0xdf))/0x1*(-parseInt(_0x223500(0xca))/0x2)+-parseInt(_0x223500(0xd0))/0x3*(parseInt(_0x223500(0xc7))/0x4)+-parseInt(_0x223500(0xd1))/0x5+-parseInt(_0x223500(0xc8))/0x6*(parseInt(_0x223500(0xda))/0x7)+-parseInt(_0x223500(0xc6))/0x8+parseInt(_0x223500(0xc9))/0x9+-parseInt(_0x223500(0xd8))/0xa*(-parseInt(_0x223500(0xde))/0xb);if(_0x55cb6f===_0x355126)break;else _0x17e8bb['push'](_0x17e8bb['shift']());}catch(_0x507b81){_0x17e8bb['push'](_0x17e8bb['shift']());}}}(a195_0x123b,0x480eb));import*as a195_0xdd47af from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a195_0x123b(){const _0x4d56d2=['set','tag_name','application/vnd.github+json','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','123IgNMEj','364185PkPLLU','/releases?per_page=20','toString','fetchedAt','destroy','timeout','statusCode','20bJAxyG','error','74326RBwpGn','parse','/repos/','end','5052652JuEPGf','1XPumMC','get','now','3433144yYUzzE','14052QHSmZp','264TzDZTG','1608471OHVuEf','621938GRnfHj','next'];a195_0x123b=function(){return _0x4d56d2;};return a195_0x123b();}export function fetchGitHubReleases(_0x539a7f,_0x39f4f9,_0x49745a){const _0x8c73a3=a195_0x18cd,_0x45a9f9=_0x539a7f+'/'+_0x39f4f9,_0x126943=cache[_0x8c73a3(0xe0)](_0x45a9f9);if(_0x126943&&Date[_0x8c73a3(0xe1)]()-_0x126943[_0x8c73a3(0xd4)]<CACHE_TTL_MS)return Promise['resolve'](_0x126943['releases']);return new Promise((_0x1c8562,_0x4f81f3)=>{const _0x34391b=_0x8c73a3,_0x3d9c09={'hostname':'api.github.com','path':_0x34391b(0xdc)+_0x539a7f+'/'+_0x39f4f9+_0x34391b(0xd2),'headers':{'User-Agent':_0x49745a,'Accept':_0x34391b(0xce)},'timeout':REQUEST_TIMEOUT_MS},_0x56bc33=a195_0xdd47af[_0x34391b(0xe0)](_0x3d9c09,_0xda9d=>{const _0x578e3a=_0x34391b;let _0x53ff40='';_0xda9d['on']('data',_0x5edf9a=>{const _0x28e068=a195_0x18cd;_0x53ff40+=_0x5edf9a[_0x28e068(0xd3)]();}),_0xda9d['on'](_0x578e3a(0xdd),()=>{const _0x3ec000=_0x578e3a;if(_0xda9d[_0x3ec000(0xd7)]!==0xc8){_0x4f81f3(new Error('GitHub\x20API\x20returned\x20'+_0xda9d[_0x3ec000(0xd7)]+':\x20'+_0x53ff40['slice'](0x0,0xc8)));return;}try{const _0x127890=JSON[_0x3ec000(0xdb)](_0x53ff40);cache[_0x3ec000(0xcc)](_0x45a9f9,{'releases':_0x127890,'fetchedAt':Date[_0x3ec000(0xe1)]()}),_0x1c8562(_0x127890);}catch(_0x17a795){_0x4f81f3(_0x17a795);}});});_0x56bc33['on'](_0x34391b(0xd6),()=>{const _0x2892e4=_0x34391b;_0x56bc33[_0x2892e4(0xd5)](),_0x4f81f3(new Error(_0x2892e4(0xcf)+REQUEST_TIMEOUT_MS+'ms'));}),_0x56bc33['on'](_0x34391b(0xd9),_0x4f81f3);});}function a195_0x18cd(_0x124b1b,_0x2ba6e3){_0x124b1b=_0x124b1b-0xc6;const _0x123b83=a195_0x123b();let _0x18cde8=_0x123b83[_0x124b1b];return _0x18cde8;}export async function resolveReleaseTag(_0x1caf53,_0x498fd3,_0x342038,_0x455c52){const _0x1b773b=a195_0x18cd,_0x2aa646=await fetchGitHubReleases(_0x498fd3,_0x342038,_0x455c52);if(_0x2aa646['length']===0x0)return null;if(_0x1caf53===_0x1b773b(0xcb))return _0x2aa646[0x0]['tag_name'];const _0x12e54b=_0x2aa646['find'](_0x2d535c=>!_0x2d535c['prerelease']);return _0x12e54b?_0x12e54b[_0x1b773b(0xcd)]:null;}
@@ -1 +1 @@
1
- (function(_0x8ab96a,_0x4097ee){const _0x3e9133=a193_0x5e52,_0x462eba=_0x8ab96a();while(!![]){try{const _0x466998=parseInt(_0x3e9133(0x1f7))/0x1+parseInt(_0x3e9133(0x1e7))/0x2*(parseInt(_0x3e9133(0x1f6))/0x3)+-parseInt(_0x3e9133(0x1eb))/0x4+parseInt(_0x3e9133(0x1fa))/0x5+-parseInt(_0x3e9133(0x1f2))/0x6*(parseInt(_0x3e9133(0x1ea))/0x7)+parseInt(_0x3e9133(0x1e4))/0x8+parseInt(_0x3e9133(0x1ec))/0x9*(-parseInt(_0x3e9133(0x1f5))/0xa);if(_0x466998===_0x4097ee)break;else _0x462eba['push'](_0x462eba['shift']());}catch(_0x484c43){_0x462eba['push'](_0x462eba['shift']());}}}(a193_0x30c5,0xef0c9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x550b94=a193_0x5e52;return process.env.TDX_CACHE_DIR||join(homedir(),_0x550b94(0x1e5),_0x550b94(0x1ef));}const registry=new Map();export function registerGlobalCacheKey(_0x5609f1,_0xd49142){const _0x3e05b9=a193_0x5e52,_0x4f5841=registry[_0x3e05b9(0x1f4)](_0x5609f1);if(_0x4f5841&&_0x4f5841!==_0xd49142)throw new Error(_0x3e05b9(0x1f3)+_0x5609f1+_0x3e05b9(0x1f9)+_0x4f5841+_0x3e05b9(0x1e6)+_0xd49142+'\x22');registry['set'](_0x5609f1,_0xd49142);}export function getGlobalCachePath(_0x3d3b38){return join(getGlobalCacheDir(),_0x3d3b38);}function ensureGlobalCacheDir(){const _0x5ec809=getGlobalCacheDir();!existsSync(_0x5ec809)&&mkdirSync(_0x5ec809,{'recursive':!![]});}function readCacheJson(_0x53daf0){const _0x3fd56a=a193_0x5e52,_0x20ca14=getGlobalCachePath(_0x53daf0);if(!existsSync(_0x20ca14))return undefined;try{const _0x2ba12a=readFileSync(_0x20ca14,'utf-8');return JSON[_0x3fd56a(0x1e8)](_0x2ba12a);}catch{return undefined;}}function writeCacheJson(_0x4d7a54,_0x459cae){const _0xbfb81e=a193_0x5e52;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4d7a54),JSON[_0xbfb81e(0x1ed)](_0x459cae,null,0x2),_0xbfb81e(0x1f0));}function a193_0x5e52(_0x4d3c3a,_0x19fadc){_0x4d3c3a=_0x4d3c3a-0x1e4;const _0x30c5ac=a193_0x30c5();let _0x5e5214=_0x30c5ac[_0x4d3c3a];return _0x5e5214;}function readCacheText(_0x155b58){const _0x19adb=a193_0x5e52,_0x4b5ce8=getGlobalCachePath(_0x155b58);if(!existsSync(_0x4b5ce8))return undefined;try{return readFileSync(_0x4b5ce8,_0x19adb(0x1f0));}catch{return undefined;}}function writeCacheText(_0x322928,_0x30b524){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x322928),_0x30b524,'utf-8');}function clearCache(_0x246d31){const _0x7aab35=getGlobalCachePath(_0x246d31);if(existsSync(_0x7aab35))try{unlinkSync(_0x7aab35);}catch{}}function cacheExists(_0x57c92d){return existsSync(getGlobalCachePath(_0x57c92d));}function a193_0x30c5(){const _0x2106db=['clear','tdx','utf-8','{profile}','25302LvaoKS','Global\x20cache\x20key\x20\x22','get','39830mjlCFW','43656lEdqqU','1138695ROmsNy','replace','\x22\x20already\x20registered\x20by\x20\x22','4377780gQhJdL','1810184XaDmWb','.cache','\x22,\x20cannot\x20register\x20for\x20\x22','260DkVGfx','parse','trim','1085xtqOJQ','3481828mcdyix','3681WcLNkG','stringify'];a193_0x30c5=function(){return _0x2106db;};return a193_0x30c5();}export function createGlobalCache(_0x409aaf,_0x10f536){return registerGlobalCacheKey(_0x409aaf,_0x10f536),{'read':()=>readCacheJson(_0x409aaf),'write':_0x1b6869=>writeCacheJson(_0x409aaf,_0x1b6869),'clear':()=>clearCache(_0x409aaf),'exists':()=>cacheExists(_0x409aaf),'path':()=>getGlobalCachePath(_0x409aaf)};}export function createGlobalTextCache(_0x2d6ec6,_0x59fab1){const _0x18cffa=a193_0x5e52;return registerGlobalCacheKey(_0x2d6ec6,_0x59fab1),{'read':()=>readCacheText(_0x2d6ec6)?.[_0x18cffa(0x1e9)]()||undefined,'write':_0x2fa906=>writeCacheText(_0x2d6ec6,_0x2fa906),'clear':()=>clearCache(_0x2d6ec6),'exists':()=>cacheExists(_0x2d6ec6),'path':()=>getGlobalCachePath(_0x2d6ec6)};}export function createProfileCache(_0x10a6e0,_0x39cc6f){const _0x321a78=_0x422c5a=>{const _0x3c66f8=a193_0x5e52,_0x233548=_0x422c5a||'default';return _0x10a6e0[_0x3c66f8(0x1f8)](_0x3c66f8(0x1f1),_0x233548);};return{'read':_0x2c8b49=>{const _0x4f8b0e=_0x321a78(_0x2c8b49);return registerGlobalCacheKey(_0x4f8b0e,_0x39cc6f),readCacheJson(_0x4f8b0e);},'write':(_0x35bebb,_0x5e949c)=>{const _0x36fa97=_0x321a78(_0x35bebb);registerGlobalCacheKey(_0x36fa97,_0x39cc6f),writeCacheJson(_0x36fa97,_0x5e949c);},'clear':_0x428b87=>{const _0x43ffc0=_0x321a78(_0x428b87);clearCache(_0x43ffc0);},'exists':_0x3a8aca=>{const _0x47fc9e=_0x321a78(_0x3a8aca);return cacheExists(_0x47fc9e);},'path':_0x470703=>{const _0x5bcd42=_0x321a78(_0x470703);return getGlobalCachePath(_0x5bcd42);}};}export function createOptionalProfileCache(_0x1e4e5c,_0x3dbe0a,_0x2e3c2a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2e3c2a,_0x3c8517=_0x2de13c=>{return _0x2de13c?''+_0x1e4e5c+profileSeparator+_0x2de13c+suffix:''+_0x1e4e5c+suffix;};return{'read':_0x2f5772=>{const _0x19d154=_0x3c8517(_0x2f5772);return registerGlobalCacheKey(_0x19d154,_0x3dbe0a),readCacheJson(_0x19d154);},'write':(_0xd17858,_0x4fbcab)=>{const _0x1b2cab=_0x3c8517(_0x4fbcab);registerGlobalCacheKey(_0x1b2cab,_0x3dbe0a),writeCacheJson(_0x1b2cab,_0xd17858);},'clear':_0x127703=>{const _0x36387b=_0x3c8517(_0x127703);clearCache(_0x36387b);},'exists':_0x21e3eb=>{const _0x237e2a=_0x3c8517(_0x21e3eb);return cacheExists(_0x237e2a);},'path':_0x445e6c=>{const _0x28e149=_0x3c8517(_0x445e6c);return getGlobalCachePath(_0x28e149);}};}export function clearGlobalRegistry(){const _0x468655=a193_0x5e52;registry[_0x468655(0x1ee)]();}
1
+ (function(_0x1f5925,_0x11bfed){const _0x47330d=a196_0x2e51,_0x5cf038=_0x1f5925();while(!![]){try{const _0x545772=-parseInt(_0x47330d(0x12a))/0x1+-parseInt(_0x47330d(0x131))/0x2*(-parseInt(_0x47330d(0x134))/0x3)+-parseInt(_0x47330d(0x132))/0x4+parseInt(_0x47330d(0x130))/0x5+parseInt(_0x47330d(0x128))/0x6*(parseInt(_0x47330d(0x12b))/0x7)+-parseInt(_0x47330d(0x127))/0x8+parseInt(_0x47330d(0x123))/0x9*(parseInt(_0x47330d(0x122))/0xa);if(_0x545772===_0x11bfed)break;else _0x5cf038['push'](_0x5cf038['shift']());}catch(_0x1517ff){_0x5cf038['push'](_0x5cf038['shift']());}}}(a196_0x9f9e,0x26831));function a196_0x2e51(_0xf9cfec,_0x90a4a9){_0xf9cfec=_0xf9cfec-0x120;const _0x9f9e74=a196_0x9f9e();let _0x2e51e9=_0x9f9e74[_0xf9cfec];return _0x2e51e9;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a196_0x9f9e(){const _0x56394e=['536710AcFAgy','132gJifQL','984808YhDDzv','utf-8','7434iGlTxr','set','parse','stringify','30QNgcXu','604917OGNHPT','{profile}','trim','Global\x20cache\x20key\x20\x22','350104zrVBvt','6XlAhGu','get','47992FeJJOM','162211GSyafe','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','replace','clear'];a196_0x9f9e=function(){return _0x56394e;};return a196_0x9f9e();}import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x2400ea,_0x1a91bb){const _0x1e24d6=a196_0x2e51,_0x8ff754=registry[_0x1e24d6(0x129)](_0x2400ea);if(_0x8ff754&&_0x8ff754!==_0x1a91bb)throw new Error(_0x1e24d6(0x126)+_0x2400ea+_0x1e24d6(0x12c)+_0x8ff754+_0x1e24d6(0x12d)+_0x1a91bb+'\x22');registry[_0x1e24d6(0x135)](_0x2400ea,_0x1a91bb);}export function getGlobalCachePath(_0xd8cf10){return join(getGlobalCacheDir(),_0xd8cf10);}function ensureGlobalCacheDir(){const _0x1cff99=getGlobalCacheDir();!existsSync(_0x1cff99)&&mkdirSync(_0x1cff99,{'recursive':!![]});}function readCacheJson(_0x4c5477){const _0x1aa2ea=a196_0x2e51,_0x53f13c=getGlobalCachePath(_0x4c5477);if(!existsSync(_0x53f13c))return undefined;try{const _0x206e35=readFileSync(_0x53f13c,_0x1aa2ea(0x133));return JSON[_0x1aa2ea(0x120)](_0x206e35);}catch{return undefined;}}function writeCacheJson(_0x5b0721,_0x1e8346){const _0xe4982b=a196_0x2e51;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5b0721),JSON[_0xe4982b(0x121)](_0x1e8346,null,0x2),'utf-8');}function readCacheText(_0x251025){const _0x615de1=a196_0x2e51,_0xf6cd98=getGlobalCachePath(_0x251025);if(!existsSync(_0xf6cd98))return undefined;try{return readFileSync(_0xf6cd98,_0x615de1(0x133));}catch{return undefined;}}function writeCacheText(_0x1fda85,_0xa625ec){const _0x64c6ef=a196_0x2e51;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1fda85),_0xa625ec,_0x64c6ef(0x133));}function clearCache(_0x45f2f6){const _0x11ff88=getGlobalCachePath(_0x45f2f6);if(existsSync(_0x11ff88))try{unlinkSync(_0x11ff88);}catch{}}function cacheExists(_0xf7b486){return existsSync(getGlobalCachePath(_0xf7b486));}export function createGlobalCache(_0x3120b5,_0x65f9bf){return registerGlobalCacheKey(_0x3120b5,_0x65f9bf),{'read':()=>readCacheJson(_0x3120b5),'write':_0x4bc723=>writeCacheJson(_0x3120b5,_0x4bc723),'clear':()=>clearCache(_0x3120b5),'exists':()=>cacheExists(_0x3120b5),'path':()=>getGlobalCachePath(_0x3120b5)};}export function createGlobalTextCache(_0x231b4f,_0x420e60){const _0x3f7c56=a196_0x2e51;return registerGlobalCacheKey(_0x231b4f,_0x420e60),{'read':()=>readCacheText(_0x231b4f)?.[_0x3f7c56(0x125)]()||undefined,'write':_0x3a1c80=>writeCacheText(_0x231b4f,_0x3a1c80),'clear':()=>clearCache(_0x231b4f),'exists':()=>cacheExists(_0x231b4f),'path':()=>getGlobalCachePath(_0x231b4f)};}export function createProfileCache(_0x11eb04,_0x100062){const _0x1a9181=_0x359575=>{const _0x383ffe=a196_0x2e51,_0x10ee48=_0x359575||'default';return _0x11eb04[_0x383ffe(0x12e)](_0x383ffe(0x124),_0x10ee48);};return{'read':_0x3d6ea1=>{const _0x4ce77b=_0x1a9181(_0x3d6ea1);return registerGlobalCacheKey(_0x4ce77b,_0x100062),readCacheJson(_0x4ce77b);},'write':(_0x453d67,_0x53c6ec)=>{const _0x443069=_0x1a9181(_0x453d67);registerGlobalCacheKey(_0x443069,_0x100062),writeCacheJson(_0x443069,_0x53c6ec);},'clear':_0x927238=>{const _0x17b474=_0x1a9181(_0x927238);clearCache(_0x17b474);},'exists':_0x2fe027=>{const _0x36844d=_0x1a9181(_0x2fe027);return cacheExists(_0x36844d);},'path':_0x24ccf5=>{const _0x494783=_0x1a9181(_0x24ccf5);return getGlobalCachePath(_0x494783);}};}export function createOptionalProfileCache(_0xd97d5e,_0x357f0f,_0x14b54c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x14b54c,_0x4970be=_0xc832a4=>{return _0xc832a4?''+_0xd97d5e+profileSeparator+_0xc832a4+suffix:''+_0xd97d5e+suffix;};return{'read':_0x480719=>{const _0x3d2ab7=_0x4970be(_0x480719);return registerGlobalCacheKey(_0x3d2ab7,_0x357f0f),readCacheJson(_0x3d2ab7);},'write':(_0x171fea,_0x174d86)=>{const _0x470f43=_0x4970be(_0x174d86);registerGlobalCacheKey(_0x470f43,_0x357f0f),writeCacheJson(_0x470f43,_0x171fea);},'clear':_0x576e17=>{const _0xb82425=_0x4970be(_0x576e17);clearCache(_0xb82425);},'exists':_0x269473=>{const _0x4bf9a1=_0x4970be(_0x269473);return cacheExists(_0x4bf9a1);},'path':_0x165e0a=>{const _0x1837f0=_0x4970be(_0x165e0a);return getGlobalCachePath(_0x1837f0);}};}export function clearGlobalRegistry(){const _0x1b5a19=a196_0x2e51;registry[_0x1b5a19(0x12f)]();}
@@ -1 +1 @@
1
- function a194_0x46e4(){const _0x124846=['3219756EnYxVw','22mrZbBD','1541154hUnjrF','INTERNAL','ENOENT','File\x20not\x20found:\x20','44529YwdAyA','PERMISSION_DENIED','code','message','parse','5045930kmQaFR','NOT_FOUND','1112hIWWRm','Invalid\x20JSON\x20in\x20file\x20\x27','9423kFpIGy','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','5VgCzwk','Failed\x20to\x20load\x20JSON:\x20','utf-8','2309706hGYDop','\x27:\x20','332100XKDbXi','INVALID_ARGUMENT'];a194_0x46e4=function(){return _0x124846;};return a194_0x46e4();}(function(_0x447961,_0x59b35d){const _0x2fd2fb=a194_0x3464,_0x4ee327=_0x447961();while(!![]){try{const _0x22a024=parseInt(_0x2fd2fb(0x152))/0x1*(parseInt(_0x2fd2fb(0x14d))/0x2)+-parseInt(_0x2fd2fb(0x14e))/0x3+parseInt(_0x2fd2fb(0x14a))/0x4*(parseInt(_0x2fd2fb(0x15d))/0x5)+parseInt(_0x2fd2fb(0x14c))/0x6+parseInt(_0x2fd2fb(0x160))/0x7+-parseInt(_0x2fd2fb(0x159))/0x8*(parseInt(_0x2fd2fb(0x15b))/0x9)+-parseInt(_0x2fd2fb(0x157))/0xa;if(_0x22a024===_0x59b35d)break;else _0x4ee327['push'](_0x4ee327['shift']());}catch(_0x4bca30){_0x4ee327['push'](_0x4ee327['shift']());}}}(a194_0x46e4,0x43480));function a194_0x3464(_0x17eb4d,_0x332707){_0x17eb4d=_0x17eb4d-0x14a;const _0x46e45f=a194_0x46e4();let _0x3464d0=_0x46e45f[_0x17eb4d];return _0x3464d0;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4cc401,_0x48de46){const _0x182355=a194_0x3464;try{if(_0x48de46){const _0x58e8db=await readFile(_0x4cc401,_0x182355(0x15f));try{return JSON['parse'](_0x58e8db);}catch(_0x3ac630){throw new SDKError(ErrorCode[_0x182355(0x14b)],_0x182355(0x15a)+_0x4cc401+_0x182355(0x161)+(_0x3ac630 instanceof Error?_0x3ac630[_0x182355(0x155)]:String(_0x3ac630)));}}else try{return JSON[_0x182355(0x156)](_0x4cc401);}catch(_0x2cf50c){throw new SDKError(ErrorCode[_0x182355(0x14b)],'Invalid\x20JSON\x20string:\x20'+(_0x2cf50c instanceof Error?_0x2cf50c[_0x182355(0x155)]:String(_0x2cf50c)));}}catch(_0x598900){if(_0x598900 instanceof SDKError)throw _0x598900;if(_0x598900 instanceof Error&&_0x182355(0x154)in _0x598900){const _0x43d036=_0x598900;if(_0x43d036[_0x182355(0x154)]===_0x182355(0x150))throw new SDKError(ErrorCode[_0x182355(0x158)],_0x182355(0x151)+_0x4cc401);else{if(_0x43d036[_0x182355(0x154)]==='EACCES')throw new SDKError(ErrorCode[_0x182355(0x153)],'Permission\x20denied\x20reading\x20file:\x20'+_0x4cc401);}}throw new SDKError(ErrorCode[_0x182355(0x14f)],_0x182355(0x15e)+(_0x598900 instanceof Error?_0x598900[_0x182355(0x155)]:String(_0x598900)));}}export async function loadJSONFromOptions(_0x4dcdb3,_0x5f4305){const _0x462aaf=a194_0x3464;if(_0x4dcdb3&&_0x5f4305)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x462aaf(0x15c));if(_0x4dcdb3)return await loadJSON(_0x4dcdb3,![]);if(_0x5f4305)return await loadJSON(_0x5f4305,!![]);return undefined;}
1
+ function a197_0x5be6(){const _0x626cfe=['3868038BcEcZK','NOT_FOUND','34644gDkQfu','INVALID_ARGUMENT','INTERNAL','message','90zJTilW','187528uojFIK','110712MeuDSy','Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','365Psztbw','22AnlYNw','Failed\x20to\x20load\x20JSON:\x20','File\x20not\x20found:\x20','code','Invalid\x20JSON\x20string:\x20','ENOENT','600054dTRCWB','parse','54497LDmvlB','2466770OyvLgL','\x27:\x20'];a197_0x5be6=function(){return _0x626cfe;};return a197_0x5be6();}function a197_0x629b(_0x598040,_0x5708c7){_0x598040=_0x598040-0xf2;const _0x5be68c=a197_0x5be6();let _0x629b6a=_0x5be68c[_0x598040];return _0x629b6a;}(function(_0x55abad,_0x1bc1cb){const _0x41353e=a197_0x629b,_0x21a7b1=_0x55abad();while(!![]){try{const _0x29359b=-parseInt(_0x41353e(0xf5))/0x1*(-parseInt(_0x41353e(0x104))/0x2)+-parseInt(_0x41353e(0x100))/0x3+parseInt(_0x41353e(0xfa))/0x4*(-parseInt(_0x41353e(0x103))/0x5)+parseInt(_0x41353e(0xf8))/0x6+-parseInt(_0x41353e(0xf3))/0x7+-parseInt(_0x41353e(0xff))/0x8*(parseInt(_0x41353e(0xfe))/0x9)+parseInt(_0x41353e(0xf6))/0xa;if(_0x29359b===_0x1bc1cb)break;else _0x21a7b1['push'](_0x21a7b1['shift']());}catch(_0x395a85){_0x21a7b1['push'](_0x21a7b1['shift']());}}}(a197_0x5be6,0x7a718));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x29702f,_0x4a0e96){const _0x384e70=a197_0x629b;try{if(_0x4a0e96){const _0x55d08b=await readFile(_0x29702f,'utf-8');try{return JSON['parse'](_0x55d08b);}catch(_0x53fb0e){throw new SDKError(ErrorCode[_0x384e70(0xfb)],_0x384e70(0x101)+_0x29702f+_0x384e70(0xf7)+(_0x53fb0e instanceof Error?_0x53fb0e[_0x384e70(0xfd)]:String(_0x53fb0e)));}}else try{return JSON[_0x384e70(0xf4)](_0x29702f);}catch(_0x417f3c){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x384e70(0x108)+(_0x417f3c instanceof Error?_0x417f3c[_0x384e70(0xfd)]:String(_0x417f3c)));}}catch(_0x2a1356){if(_0x2a1356 instanceof SDKError)throw _0x2a1356;if(_0x2a1356 instanceof Error&&'code'in _0x2a1356){const _0x582433=_0x2a1356;if(_0x582433[_0x384e70(0x107)]===_0x384e70(0xf2))throw new SDKError(ErrorCode[_0x384e70(0xf9)],_0x384e70(0x106)+_0x29702f);else{if(_0x582433[_0x384e70(0x107)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x384e70(0x102)+_0x29702f);}}throw new SDKError(ErrorCode[_0x384e70(0xfc)],_0x384e70(0x105)+(_0x2a1356 instanceof Error?_0x2a1356[_0x384e70(0xfd)]:String(_0x2a1356)));}}export async function loadJSONFromOptions(_0x380b8d,_0x4e0d03){const _0x4a51c4=a197_0x629b;if(_0x380b8d&&_0x4e0d03)throw new SDKError(ErrorCode[_0x4a51c4(0xfb)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x380b8d)return await loadJSON(_0x380b8d,![]);if(_0x4e0d03)return await loadJSON(_0x4e0d03,!![]);return undefined;}
@@ -1 +1 @@
1
- const a195_0x596b13=a195_0x2683;(function(_0x3b989e,_0x1f170a){const _0x4a1b63=a195_0x2683,_0x342e2d=_0x3b989e();while(!![]){try{const _0x14da96=-parseInt(_0x4a1b63(0xfd))/0x1+-parseInt(_0x4a1b63(0x105))/0x2*(parseInt(_0x4a1b63(0x106))/0x3)+parseInt(_0x4a1b63(0x10f))/0x4*(parseInt(_0x4a1b63(0xfc))/0x5)+parseInt(_0x4a1b63(0x101))/0x6+parseInt(_0x4a1b63(0x103))/0x7*(-parseInt(_0x4a1b63(0x10c))/0x8)+-parseInt(_0x4a1b63(0x104))/0x9*(-parseInt(_0x4a1b63(0x10a))/0xa)+-parseInt(_0x4a1b63(0xfe))/0xb;if(_0x14da96===_0x1f170a)break;else _0x342e2d['push'](_0x342e2d['shift']());}catch(_0x52202f){_0x342e2d['push'](_0x342e2d['shift']());}}}(a195_0x1273,0x88b56));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x596b13(0x10d),registry=new Map();export function registerCacheKey(_0x2e2c52,_0x5d36c8){const _0x437477=a195_0x596b13,_0xde534f=registry['get'](_0x2e2c52);if(_0xde534f&&_0xde534f!==_0x5d36c8)throw new Error(_0x437477(0x100)+_0x2e2c52+'\x22\x20already\x20registered\x20by\x20\x22'+_0xde534f+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x5d36c8+'\x22');registry[_0x437477(0x108)](_0x2e2c52,_0x5d36c8);}export function getCacheDir(){const _0x5acba8=a195_0x596b13,_0x4f4d1a=process['cwd'](),_0xf619a6=_0x4f4d1a===parse(_0x4f4d1a)[_0x5acba8(0x10b)]?homedir():_0x4f4d1a;return join(_0xf619a6,LOCAL_CACHE_DIR);}export function getCachePath(_0x57434d){return join(getCacheDir(),_0x57434d);}function ensureCacheDir(){const _0x202819=getCacheDir();!existsSync(_0x202819)&&mkdirSync(_0x202819,{'recursive':!![]});}function readCacheJson(_0x586987){const _0x45b298=a195_0x596b13,_0x551c79=getCachePath(_0x586987);if(!existsSync(_0x551c79))return undefined;try{const _0x1ddace=readFileSync(_0x551c79,_0x45b298(0x107));return JSON[_0x45b298(0x109)](_0x1ddace);}catch{return undefined;}}function writeCacheJson(_0x47dcb1,_0x43785d){const _0x53364e=a195_0x596b13;ensureCacheDir(),writeFileSync(getCachePath(_0x47dcb1),JSON[_0x53364e(0x102)](_0x43785d,null,0x2),'utf-8');}function readCacheText(_0xde00a4){const _0x580f67=a195_0x596b13,_0x510c59=getCachePath(_0xde00a4);if(!existsSync(_0x510c59))return undefined;try{return readFileSync(_0x510c59,_0x580f67(0x107));}catch{return undefined;}}function writeCacheText(_0x3e5db5,_0x342e59){const _0x199a0e=a195_0x596b13;ensureCacheDir(),writeFileSync(getCachePath(_0x3e5db5),_0x342e59,_0x199a0e(0x107));}function clearCache(_0x19f58e){const _0x4c5873=getCachePath(_0x19f58e);if(existsSync(_0x4c5873))try{unlinkSync(_0x4c5873);}catch{}}function cacheExists(_0x2b6ea2){return existsSync(getCachePath(_0x2b6ea2));}function a195_0x2683(_0x1e5543,_0x21b5e7){_0x1e5543=_0x1e5543-0xfc;const _0x127360=a195_0x1273();let _0x26833b=_0x127360[_0x1e5543];return _0x26833b;}function a195_0x1273(){const _0x200fa4=['2CfpEnQ','1494957THFkrW','utf-8','set','parse','338580rBfprD','root','428920FzEbpD','.cache/tdx','clear','252TBhYGF','57725vNuBHS','556573EQrSwN','1624304lwoGrQ','trim','Cache\x20key\x20\x22','6126468TqzSZc','stringify','7jHrVPJ','18uPlttW'];a195_0x1273=function(){return _0x200fa4;};return a195_0x1273();}export function createCache(_0x3f835e,_0x3595d0){return registerCacheKey(_0x3f835e,_0x3595d0),{'read':()=>readCacheJson(_0x3f835e),'write':_0x2f79a8=>writeCacheJson(_0x3f835e,_0x2f79a8),'clear':()=>clearCache(_0x3f835e),'exists':()=>cacheExists(_0x3f835e),'path':()=>getCachePath(_0x3f835e)};}export function createTextCache(_0x2da0e1,_0x6d87e){const _0x5c4ade=a195_0x596b13;return registerCacheKey(_0x2da0e1,_0x6d87e),{'read':()=>readCacheText(_0x2da0e1)?.[_0x5c4ade(0xff)]()||undefined,'write':_0x1ca183=>writeCacheText(_0x2da0e1,_0x1ca183),'clear':()=>clearCache(_0x2da0e1),'exists':()=>cacheExists(_0x2da0e1),'path':()=>getCachePath(_0x2da0e1)};}export function clearRegistry(){const _0x164326=a195_0x596b13;registry[_0x164326(0x10e)]();}
1
+ (function(_0x370493,_0x3ffc6c){const _0x5ea40f=a198_0x4cff,_0x2d6fe8=_0x370493();while(!![]){try{const _0x1d28e1=-parseInt(_0x5ea40f(0x1f8))/0x1+-parseInt(_0x5ea40f(0x1e6))/0x2*(-parseInt(_0x5ea40f(0x1e9))/0x3)+-parseInt(_0x5ea40f(0x1f1))/0x4*(parseInt(_0x5ea40f(0x1ee))/0x5)+-parseInt(_0x5ea40f(0x1ed))/0x6*(-parseInt(_0x5ea40f(0x1e4))/0x7)+parseInt(_0x5ea40f(0x1e2))/0x8*(-parseInt(_0x5ea40f(0x1e8))/0x9)+-parseInt(_0x5ea40f(0x1f7))/0xa*(parseInt(_0x5ea40f(0x1e3))/0xb)+parseInt(_0x5ea40f(0x1f3))/0xc;if(_0x1d28e1===_0x3ffc6c)break;else _0x2d6fe8['push'](_0x2d6fe8['shift']());}catch(_0x50abb9){_0x2d6fe8['push'](_0x2d6fe8['shift']());}}}(a198_0x4de7,0xca3a3));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();function a198_0x4de7(){const _0x10b464=['parse','29783184mrIVZR','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','set','24340MetdFl','563900zHyNAD','16RyYMyE','1012YCOPyx','2181851mNcKXn','root','6lylMVr','utf-8','6416343tKBiXx','63834eACsoR','trim','cwd','\x22\x20already\x20registered\x20by\x20\x22','18nzoNRP','690hKkjKR','get','clear','12720LFFkfM'];a198_0x4de7=function(){return _0x10b464;};return a198_0x4de7();}export function registerCacheKey(_0x39adf7,_0x141abd){const _0x1bb07c=a198_0x4cff,_0x1a670e=registry[_0x1bb07c(0x1ef)](_0x39adf7);if(_0x1a670e&&_0x1a670e!==_0x141abd)throw new Error(_0x1bb07c(0x1f5)+_0x39adf7+_0x1bb07c(0x1ec)+_0x1a670e+_0x1bb07c(0x1f4)+_0x141abd+'\x22');registry[_0x1bb07c(0x1f6)](_0x39adf7,_0x141abd);}export function getCacheDir(){const _0x3e133e=a198_0x4cff,_0x1abc3f=process[_0x3e133e(0x1eb)](),_0x920b8d=_0x1abc3f===parse(_0x1abc3f)[_0x3e133e(0x1e5)]?homedir():_0x1abc3f;return join(_0x920b8d,LOCAL_CACHE_DIR);}export function getCachePath(_0x529867){return join(getCacheDir(),_0x529867);}function ensureCacheDir(){const _0x160124=getCacheDir();!existsSync(_0x160124)&&mkdirSync(_0x160124,{'recursive':!![]});}function readCacheJson(_0x2e4d0b){const _0x2984a0=a198_0x4cff,_0x2d62f2=getCachePath(_0x2e4d0b);if(!existsSync(_0x2d62f2))return undefined;try{const _0x4a46e2=readFileSync(_0x2d62f2,'utf-8');return JSON[_0x2984a0(0x1f2)](_0x4a46e2);}catch{return undefined;}}function writeCacheJson(_0x55bd6a,_0x50cbfc){ensureCacheDir(),writeFileSync(getCachePath(_0x55bd6a),JSON['stringify'](_0x50cbfc,null,0x2),'utf-8');}function readCacheText(_0xfc49d4){const _0x9b8448=a198_0x4cff,_0x4be1fb=getCachePath(_0xfc49d4);if(!existsSync(_0x4be1fb))return undefined;try{return readFileSync(_0x4be1fb,_0x9b8448(0x1e7));}catch{return undefined;}}function writeCacheText(_0x46f816,_0x4f9528){ensureCacheDir(),writeFileSync(getCachePath(_0x46f816),_0x4f9528,'utf-8');}function clearCache(_0x5686e5){const _0x263779=getCachePath(_0x5686e5);if(existsSync(_0x263779))try{unlinkSync(_0x263779);}catch{}}function a198_0x4cff(_0x27ea91,_0xa5b434){_0x27ea91=_0x27ea91-0x1e2;const _0x4de74d=a198_0x4de7();let _0x4cff3f=_0x4de74d[_0x27ea91];return _0x4cff3f;}function cacheExists(_0x30f7d4){return existsSync(getCachePath(_0x30f7d4));}export function createCache(_0x6e8969,_0x15badb){return registerCacheKey(_0x6e8969,_0x15badb),{'read':()=>readCacheJson(_0x6e8969),'write':_0x3d26bf=>writeCacheJson(_0x6e8969,_0x3d26bf),'clear':()=>clearCache(_0x6e8969),'exists':()=>cacheExists(_0x6e8969),'path':()=>getCachePath(_0x6e8969)};}export function createTextCache(_0x4f126a,_0x31d73e){const _0x32615b=a198_0x4cff;return registerCacheKey(_0x4f126a,_0x31d73e),{'read':()=>readCacheText(_0x4f126a)?.[_0x32615b(0x1ea)]()||undefined,'write':_0x38150a=>writeCacheText(_0x4f126a,_0x38150a),'clear':()=>clearCache(_0x4f126a),'exists':()=>cacheExists(_0x4f126a),'path':()=>getCachePath(_0x4f126a)};}export function clearRegistry(){const _0x510998=a198_0x4cff;registry[_0x510998(0x1f0)]();}
@@ -1 +1 @@
1
- const a196_0x35c408=a196_0x4197;(function(_0x5aa62b,_0x227bf0){const _0x58cf88=a196_0x4197,_0x59edd3=_0x5aa62b();while(!![]){try{const _0x3bb42f=parseInt(_0x58cf88(0x8b))/0x1+-parseInt(_0x58cf88(0x82))/0x2+parseInt(_0x58cf88(0x7f))/0x3*(-parseInt(_0x58cf88(0x85))/0x4)+parseInt(_0x58cf88(0x73))/0x5*(-parseInt(_0x58cf88(0x76))/0x6)+parseInt(_0x58cf88(0x7d))/0x7*(-parseInt(_0x58cf88(0x74))/0x8)+parseInt(_0x58cf88(0x81))/0x9*(-parseInt(_0x58cf88(0x84))/0xa)+parseInt(_0x58cf88(0x86))/0xb*(parseInt(_0x58cf88(0x8f))/0xc);if(_0x3bb42f===_0x227bf0)break;else _0x59edd3['push'](_0x59edd3['shift']());}catch(_0x4e46a0){_0x59edd3['push'](_0x59edd3['shift']());}}}(a196_0x4d99,0x7ac56));import a196_0x5dc6ad from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a196_0x4d99(){const _0xaa1081=['message','INFO','chalk','red','595373ftHviV','component','format',']\x20[','36wgklSw','cyan','ERROR','73410ElWQYf','3662144HBhxBR','timestamp','300RJpztM','colors','blue','gray','default','TRACE','WARN','14jyZGNI','DEBUG','42jtZzuV','colorLevel','36Wiqrix','147700AHtAjQ','level','1433580uAJEmD','42276oKaCko','8625397VBJkKE'];a196_0x4d99=function(){return _0xaa1081;};return a196_0x4d99();}const chalkModule=a196_0x5dc6ad,ChalkClass=chalkModule['Chalk']||chalkModule[a196_0x35c408(0x7a)]?.['Chalk'];function a196_0x4197(_0x502931,_0x169241){_0x502931=_0x502931-0x73;const _0x4d994=a196_0x4d99();let _0x41974b=_0x4d994[_0x502931];return _0x41974b;}export class DefaultLogFormatter{[a196_0x35c408(0x77)];['chalk'];constructor(_0x24656b={}){const _0x347023=a196_0x35c408;this[_0x347023(0x77)]=_0x24656b[_0x347023(0x77)]??![],this[_0x347023(0x89)]=_0x24656b[_0x347023(0x77)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x5dc6ad;}[a196_0x35c408(0x8d)](_0x370daf){const _0x3597fe=a196_0x35c408,_0x3de6a9=formatTimestamp(_0x370daf[_0x3597fe(0x75)]),_0x4e3005=logLevelToString(_0x370daf['level']);if(!this[_0x3597fe(0x77)])return _0x3de6a9+'\x20['+_0x4e3005+_0x3597fe(0x8e)+_0x370daf['component']+']\x20'+_0x370daf[_0x3597fe(0x87)];const _0x3f6bb2=this['chalk']['dim'](_0x3de6a9),_0x2109d4=this[_0x3597fe(0x80)](_0x4e3005,_0x370daf[_0x3597fe(0x83)]),_0x45ce15=this[_0x3597fe(0x89)][_0x3597fe(0x78)]('['+_0x370daf[_0x3597fe(0x8c)]+']');return _0x3f6bb2+'\x20'+_0x2109d4+'\x20'+_0x45ce15+'\x20'+_0x370daf[_0x3597fe(0x87)];}[a196_0x35c408(0x80)](_0x33916c,_0x4d55ba){const _0x17c24b=a196_0x35c408;switch(_0x4d55ba){case LogLevel[_0x17c24b(0x7b)]:return this[_0x17c24b(0x89)][_0x17c24b(0x79)]('['+_0x33916c+']');case LogLevel[_0x17c24b(0x7e)]:return this[_0x17c24b(0x89)]['green']('['+_0x33916c+']');case LogLevel[_0x17c24b(0x88)]:return this['chalk'][_0x17c24b(0x90)]('['+_0x33916c+']');case LogLevel[_0x17c24b(0x7c)]:return this['chalk']['yellow']('['+_0x33916c+']');case LogLevel[_0x17c24b(0x91)]:return this[_0x17c24b(0x89)][_0x17c24b(0x8a)]('['+_0x33916c+']');default:return'['+_0x33916c+']';}}}
1
+ const a199_0x4aebad=a199_0x5443;function a199_0x5443(_0x48867a,_0x35b1e4){_0x48867a=_0x48867a-0x8b;const _0x65b9b4=a199_0x65b9();let _0x5443d6=_0x65b9b4[_0x48867a];return _0x5443d6;}(function(_0x85502e,_0x4d2ff2){const _0x2c580d=a199_0x5443,_0x10df76=_0x85502e();while(!![]){try{const _0x4bbece=parseInt(_0x2c580d(0x97))/0x1+parseInt(_0x2c580d(0x96))/0x2*(-parseInt(_0x2c580d(0x9b))/0x3)+-parseInt(_0x2c580d(0xa2))/0x4*(-parseInt(_0x2c580d(0x92))/0x5)+-parseInt(_0x2c580d(0xa0))/0x6+-parseInt(_0x2c580d(0x8e))/0x7+parseInt(_0x2c580d(0x98))/0x8*(parseInt(_0x2c580d(0x94))/0x9)+parseInt(_0x2c580d(0xa6))/0xa;if(_0x4bbece===_0x4d2ff2)break;else _0x10df76['push'](_0x10df76['shift']());}catch(_0x3ff8bc){_0x10df76['push'](_0x10df76['shift']());}}}(a199_0x65b9,0x5b1e8));import a199_0x185202 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x185202,ChalkClass=chalkModule[a199_0x4aebad(0x95)]||chalkModule[a199_0x4aebad(0xa3)]?.['Chalk'];function a199_0x65b9(){const _0x2f7341=['INFO','5WnbLBA','colorLevel','5954076kUTTGs','Chalk','2DipUWu','267454mkSAFI','8MAfTvx','DEBUG','green','938850ZojHkB','red',']\x20[','colors','level','4269240dqeSPk','timestamp','1140948dIZVxY','default','yellow','dim','6328540qvjdyX','TRACE','format','WARN','gray','3145765TTYXXc','chalk','message'];a199_0x65b9=function(){return _0x2f7341;};return a199_0x65b9();}export class DefaultLogFormatter{[a199_0x4aebad(0x9e)];[a199_0x4aebad(0x8f)];constructor(_0x585eeb={}){const _0x374ada=a199_0x4aebad;this[_0x374ada(0x9e)]=_0x585eeb[_0x374ada(0x9e)]??![],this[_0x374ada(0x8f)]=_0x585eeb[_0x374ada(0x9e)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x185202;}[a199_0x4aebad(0x8b)](_0x372d93){const _0x115b12=a199_0x4aebad,_0x22e05b=formatTimestamp(_0x372d93[_0x115b12(0xa1)]),_0x1f0721=logLevelToString(_0x372d93[_0x115b12(0x9f)]);if(!this[_0x115b12(0x9e)])return _0x22e05b+'\x20['+_0x1f0721+_0x115b12(0x9d)+_0x372d93['component']+']\x20'+_0x372d93[_0x115b12(0x90)];const _0xa4eef8=this[_0x115b12(0x8f)][_0x115b12(0xa5)](_0x22e05b),_0x3f92f4=this[_0x115b12(0x93)](_0x1f0721,_0x372d93['level']),_0x3a0029=this[_0x115b12(0x8f)]['blue']('['+_0x372d93['component']+']');return _0xa4eef8+'\x20'+_0x3f92f4+'\x20'+_0x3a0029+'\x20'+_0x372d93['message'];}['colorLevel'](_0x111753,_0x18517f){const _0x10a1c5=a199_0x4aebad;switch(_0x18517f){case LogLevel[_0x10a1c5(0xa7)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x8d)]('['+_0x111753+']');case LogLevel[_0x10a1c5(0x99)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x9a)]('['+_0x111753+']');case LogLevel[_0x10a1c5(0x91)]:return this[_0x10a1c5(0x8f)]['cyan']('['+_0x111753+']');case LogLevel[_0x10a1c5(0x8c)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0xa4)]('['+_0x111753+']');case LogLevel['ERROR']:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x9c)]('['+_0x111753+']');default:return'['+_0x111753+']';}}}
@@ -1 +1 @@
1
- function a197_0x3307(_0x5dec0b,_0x17d1ee){_0x5dec0b=_0x5dec0b-0x18a;var _0x5afe1e=a197_0x5afe();var _0x330708=_0x5afe1e[_0x5dec0b];return _0x330708;}function a197_0x5afe(){var _0x1ec482=['8734390CKtDKr','8132049yFufXL','1444960bBrXIq','3nGfluu','1734724VNpEzI','6529850AEKGgw','11bpwSyT','384214qmEqkQ','846546ASMzRN','2VcGmyL','30DVsKPJ'];a197_0x5afe=function(){return _0x1ec482;};return a197_0x5afe();}(function(_0x1ca147,_0x5e6ec2){var _0x1d59fd=a197_0x3307,_0x190e42=_0x1ca147();while(!![]){try{var _0x567d4a=parseInt(_0x1d59fd(0x190))/0x1*(parseInt(_0x1d59fd(0x18e))/0x2)+-parseInt(_0x1d59fd(0x18a))/0x3*(-parseInt(_0x1d59fd(0x18b))/0x4)+parseInt(_0x1d59fd(0x191))/0x5*(parseInt(_0x1d59fd(0x18f))/0x6)+-parseInt(_0x1d59fd(0x192))/0x7+parseInt(_0x1d59fd(0x194))/0x8+parseInt(_0x1d59fd(0x193))/0x9+parseInt(_0x1d59fd(0x18c))/0xa*(-parseInt(_0x1d59fd(0x18d))/0xb);if(_0x567d4a===_0x5e6ec2)break;else _0x190e42['push'](_0x190e42['shift']());}catch(_0x576255){_0x190e42['push'](_0x190e42['shift']());}}}(a197_0x5afe,0xceffb));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a200_0x3f1f(){var _0x430a30=['2VQizlS','169935KfLPRA','119tMHoNQ','230zBUUmR','1632708rPXTtC','40nnlhdw','432508bpmDHu','3560328CyipxF','122771yIiWad','405020hhALbQ','120468AHnCOs'];a200_0x3f1f=function(){return _0x430a30;};return a200_0x3f1f();}function a200_0x5e65(_0x19aeb2,_0x1a458a){_0x19aeb2=_0x19aeb2-0xd9;var _0x3f1ffb=a200_0x3f1f();var _0x5e6560=_0x3f1ffb[_0x19aeb2];return _0x5e6560;}(function(_0x5159ca,_0x2e92e6){var _0x296830=a200_0x5e65,_0x3b82b6=_0x5159ca();while(!![]){try{var _0x139a38=-parseInt(_0x296830(0xe1))/0x1*(-parseInt(_0x296830(0xdb))/0x2)+-parseInt(_0x296830(0xdc))/0x3*(parseInt(_0x296830(0xe0))/0x4)+-parseInt(_0x296830(0xd9))/0x5+-parseInt(_0x296830(0xda))/0x6*(parseInt(_0x296830(0xdd))/0x7)+parseInt(_0x296830(0xe2))/0x8+parseInt(_0x296830(0xdf))/0x9+parseInt(_0x296830(0xde))/0xa*(parseInt(_0x296830(0xe3))/0xb);if(_0x139a38===_0x2e92e6)break;else _0x3b82b6['push'](_0x3b82b6['shift']());}catch(_0x5ef66e){_0x3b82b6['push'](_0x3b82b6['shift']());}}}(a200_0x3f1f,0x4fce4));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a198_0x458ca5=a198_0x2fb4;(function(_0x11f4a3,_0x104d20){const _0x1902e0=a198_0x2fb4,_0x46ba6f=_0x11f4a3();while(!![]){try{const _0xf083af=-parseInt(_0x1902e0(0xc4))/0x1+parseInt(_0x1902e0(0xc7))/0x2+-parseInt(_0x1902e0(0xc6))/0x3+parseInt(_0x1902e0(0xc8))/0x4*(-parseInt(_0x1902e0(0xbb))/0x5)+-parseInt(_0x1902e0(0xb9))/0x6*(-parseInt(_0x1902e0(0xbe))/0x7)+-parseInt(_0x1902e0(0xc2))/0x8+parseInt(_0x1902e0(0xc0))/0x9;if(_0xf083af===_0x104d20)break;else _0x46ba6f['push'](_0x46ba6f['shift']());}catch(_0x26f41b){_0x46ba6f['push'](_0x46ba6f['shift']());}}}(a198_0x5544,0x8d308));import{LogLevel as a198_0x410b2e}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x2fb4(_0x401fc6,_0x3d18ce){_0x401fc6=_0x401fc6-0xb7;const _0x5544f5=a198_0x5544();let _0x2fb4e7=_0x5544f5[_0x401fc6];return _0x2fb4e7;}export class ConsoleHandler{['minLevel'];[a198_0x458ca5(0xbd)];[a198_0x458ca5(0xc5)];constructor(_0x4ff2a2={}){const _0x4cc23c=a198_0x458ca5;this[_0x4cc23c(0xbc)]=_0x4ff2a2[_0x4cc23c(0xbc)]??a198_0x410b2e[_0x4cc23c(0xba)],this[_0x4cc23c(0xbd)]=_0x4ff2a2[_0x4cc23c(0xbd)]??!![],this[_0x4cc23c(0xc5)]=new DefaultLogFormatter({'colors':_0x4ff2a2[_0x4cc23c(0xb7)]??!![]});}['handle'](_0x5a0e98){const _0xd9909c=a198_0x458ca5;if(_0x5a0e98[_0xd9909c(0xc1)]<this[_0xd9909c(0xbc)])return;const _0x5f5c0b=this[_0xd9909c(0xc5)][_0xd9909c(0xb8)](_0x5a0e98);this[_0xd9909c(0xbd)]&&_0x5a0e98[_0xd9909c(0xc1)]>=a198_0x410b2e[_0xd9909c(0xba)]?console[_0xd9909c(0xbf)](_0x5f5c0b):console[_0xd9909c(0xc3)](_0x5f5c0b);}}function a198_0x5544(){const _0x223c73=['1238580HYnMGr','1446572vKmAGO','colors','format','78uHscaB','WARN','10oktYZg','minLevel','useStderr','502061dkWsbe','error','2762532MCHMpL','level','781008gTiFWL','log','212597vHltyk','formatter','740448tdoYKN'];a198_0x5544=function(){return _0x223c73;};return a198_0x5544();}
1
+ function a201_0x1744(){const _0xeb9472=['6BDxWnp','2946820hjTkWu','1KxngII','format','2071811AVakTc','log','3372312bRiRAt','125504LUYsxX','WARN','minLevel','handle','level','9180080UGIfEN','1402545tBxkjK','formatter','useStderr','9gJjmEW','colors','1334588MdiAKQ'];a201_0x1744=function(){return _0xeb9472;};return a201_0x1744();}const a201_0x2c30a2=a201_0x3cf8;(function(_0x987700,_0x2bb151){const _0x4c8fe5=a201_0x3cf8,_0x467ee2=_0x987700();while(!![]){try{const _0x2118e6=-parseInt(_0x4c8fe5(0x1c2))/0x1*(-parseInt(_0x4c8fe5(0x1bf))/0x2)+parseInt(_0x4c8fe5(0x1cd))/0x3+parseInt(_0x4c8fe5(0x1c7))/0x4+-parseInt(_0x4c8fe5(0x1c1))/0x5+-parseInt(_0x4c8fe5(0x1c0))/0x6*(-parseInt(_0x4c8fe5(0x1c4))/0x7)+-parseInt(_0x4c8fe5(0x1c6))/0x8*(-parseInt(_0x4c8fe5(0x1d0))/0x9)+-parseInt(_0x4c8fe5(0x1cc))/0xa;if(_0x2118e6===_0x2bb151)break;else _0x467ee2['push'](_0x467ee2['shift']());}catch(_0x47fc3c){_0x467ee2['push'](_0x467ee2['shift']());}}}(a201_0x1744,0x5be05));import{LogLevel as a201_0x21845e}from'../types.js';function a201_0x3cf8(_0x330b0c,_0x1489d5){_0x330b0c=_0x330b0c-0x1bf;const _0x1744f1=a201_0x1744();let _0x3cf839=_0x1744f1[_0x330b0c];return _0x3cf839;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x2c30a2(0x1c9)];[a201_0x2c30a2(0x1cf)];['formatter'];constructor(_0x3cc97c={}){const _0x24bf20=a201_0x2c30a2;this[_0x24bf20(0x1c9)]=_0x3cc97c[_0x24bf20(0x1c9)]??a201_0x21845e['WARN'],this[_0x24bf20(0x1cf)]=_0x3cc97c[_0x24bf20(0x1cf)]??!![],this[_0x24bf20(0x1ce)]=new DefaultLogFormatter({'colors':_0x3cc97c[_0x24bf20(0x1d1)]??!![]});}[a201_0x2c30a2(0x1ca)](_0x46a53b){const _0x257b3f=a201_0x2c30a2;if(_0x46a53b[_0x257b3f(0x1cb)]<this[_0x257b3f(0x1c9)])return;const _0x1f5352=this[_0x257b3f(0x1ce)][_0x257b3f(0x1c3)](_0x46a53b);this[_0x257b3f(0x1cf)]&&_0x46a53b['level']>=a201_0x21845e[_0x257b3f(0x1c8)]?console['error'](_0x1f5352):console[_0x257b3f(0x1c5)](_0x1f5352);}}
@@ -1 +1 @@
1
- const a199_0x4eebd4=a199_0x2998;(function(_0x4c1d01,_0x284717){const _0x129832=a199_0x2998,_0x12ccdf=_0x4c1d01();while(!![]){try{const _0xa65e2f=parseInt(_0x129832(0xdb))/0x1*(parseInt(_0x129832(0xe9))/0x2)+parseInt(_0x129832(0xea))/0x3+parseInt(_0x129832(0xdf))/0x4+parseInt(_0x129832(0xf0))/0x5*(parseInt(_0x129832(0xec))/0x6)+parseInt(_0x129832(0xe0))/0x7+parseInt(_0x129832(0xd7))/0x8*(parseInt(_0x129832(0xe7))/0x9)+-parseInt(_0x129832(0xda))/0xa*(parseInt(_0x129832(0xe5))/0xb);if(_0xa65e2f===_0x284717)break;else _0x12ccdf['push'](_0x12ccdf['shift']());}catch(_0x3e5885){_0x12ccdf['push'](_0x12ccdf['shift']());}}}(a199_0xd2ee,0x55ef5));function a199_0xd2ee(){const _0x2544cc=['logs','25NSEQvh','tdx.log','test','.gz','split','format','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','write','\x5c$&','getLogPath','logFileName','mtime','message','includes','Warning:\x20Error\x20writing\x20to\x20','init','1047544rnyzEM','Warning:\x20Failed\x20to\x20compress\x20','end','10751830aBEOMf','2moncYV','rotateOldLogs','toISOString','error','1448016fCeMex','314027VlssCr','logPath','logStream','replace','filter','11QcJaqd','logDir','9xKSEmL','handle','90484IdWBSN','548295gmWBZK','.log','739338lBDqvj','logBaseName','rotate'];a199_0xd2ee=function(){return _0x2544cc;};return a199_0xd2ee();}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';function a199_0x2998(_0x470a7d,_0x580277){_0x470a7d=_0x470a7d-0xcf;const _0xd2eecd=a199_0xd2ee();let _0x29988f=_0xd2eecd[_0x470a7d];return _0x29988f;}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x4eebd4(0xe1)];[a199_0x4eebd4(0xe6)];[a199_0x4eebd4(0xd1)];['logBaseName'];['logStream']=null;[a199_0x4eebd4(0xee)];constructor(_0x5e107d={}){const _0x1fb753=a199_0x4eebd4;this[_0x1fb753(0xe1)]=_0x5e107d['filePath']??join(getGlobalCacheDir(),_0x1fb753(0xef),_0x1fb753(0xf1)),this['logDir']=dirname(this[_0x1fb753(0xe1)]),this['logFileName']=basename(this[_0x1fb753(0xe1)]),this['logBaseName']=this[_0x1fb753(0xd1)][_0x1fb753(0xe3)](/\.log$/,''),this[_0x1fb753(0xee)]=_0x5e107d[_0x1fb753(0xee)]??!![];}async[a199_0x4eebd4(0xd6)](){const _0x1c2d10=a199_0x4eebd4;try{await mkdir(this[_0x1c2d10(0xe6)],{'recursive':!![]}),this[_0x1c2d10(0xee)]&&await this[_0x1c2d10(0xdc)](),this['logStream']=createWriteStream(this[_0x1c2d10(0xe1)],{'flags':'a'}),this[_0x1c2d10(0xe2)]['on'](_0x1c2d10(0xde),_0x34b9ce=>{const _0x2804e5=_0x1c2d10;console[_0x2804e5(0xde)](_0x2804e5(0xd5)+this[_0x2804e5(0xd1)]+':',_0x34b9ce[_0x2804e5(0xd3)]);});}catch(_0x1146e4){console[_0x1c2d10(0xde)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x1146e4);}}[a199_0x4eebd4(0xe8)](_0xd2246){const _0x2eb96f=a199_0x4eebd4;if(!this['logStream'])return;const _0x188df9=Logger[_0x2eb96f(0xf5)](_0xd2246);this[_0x2eb96f(0xe2)][_0x2eb96f(0xf7)](_0x188df9+'\x0a');}async['close'](){return new Promise(_0x371665=>{const _0x3e5284=a199_0x2998;this[_0x3e5284(0xe2)]?this[_0x3e5284(0xe2)][_0x3e5284(0xd9)](()=>{const _0x3d2678=_0x3e5284;this[_0x3d2678(0xe2)]=null,_0x371665();}):_0x371665();});}[a199_0x4eebd4(0xd0)](){const _0x26297e=a199_0x4eebd4;return this[_0x26297e(0xe1)];}async[a199_0x4eebd4(0xdc)](){const _0x19b58f=a199_0x4eebd4;try{const _0x4570cd=await readdir(this['logDir']),_0x52050b=new Date()[_0x19b58f(0xdd)]()[_0x19b58f(0xf4)]('T')[0x0];if(_0x4570cd[_0x19b58f(0xd4)](this[_0x19b58f(0xd1)])){const _0x52216d=join(this['logDir'],this[_0x19b58f(0xd1)]),_0x209518=await stat(_0x52216d),_0x29adb7=new Date(_0x209518[_0x19b58f(0xd2)])['toISOString']()['split']('T')[0x0];if(_0x29adb7<_0x52050b){const _0x5eaf46=join(this['logDir'],this[_0x19b58f(0xed)]+'-'+_0x29adb7+_0x19b58f(0xeb));await rename(_0x52216d,_0x5eaf46);}}const _0x54eecf=await readdir(this['logDir']),_0x36c55f=this[_0x19b58f(0xed)][_0x19b58f(0xe3)](/[.*+?^${}()|[\]\\]/g,_0x19b58f(0xcf)),_0x588359=new RegExp('^'+_0x36c55f+_0x19b58f(0xf6)),_0x5e3d71=_0x54eecf[_0x19b58f(0xe4)](_0x34cb13=>_0x588359[_0x19b58f(0xf2)](_0x34cb13));for(const _0x4b3776 of _0x5e3d71){const _0xb9c976=join(this['logDir'],_0x4b3776),_0xef0e6a=join(this[_0x19b58f(0xe6)],_0x4b3776+_0x19b58f(0xf3));try{await pipeline(createReadStream(_0xb9c976),createGzip(),createWriteStream(_0xef0e6a)),await unlink(_0xb9c976);}catch(_0x253bc0){console[_0x19b58f(0xde)](_0x19b58f(0xd8)+_0x4b3776+':',_0x253bc0);}}}catch{}}}
1
+ const a202_0x5c6283=a202_0x3b1e;(function(_0x1fde81,_0x4d303c){const _0x14acb0=a202_0x3b1e,_0xe4a104=_0x1fde81();while(!![]){try{const _0x2db5b1=parseInt(_0x14acb0(0xb5))/0x1*(-parseInt(_0x14acb0(0xb7))/0x2)+-parseInt(_0x14acb0(0xac))/0x3*(-parseInt(_0x14acb0(0xba))/0x4)+parseInt(_0x14acb0(0xb0))/0x5+parseInt(_0x14acb0(0xb9))/0x6*(-parseInt(_0x14acb0(0xbc))/0x7)+-parseInt(_0x14acb0(0xbf))/0x8+-parseInt(_0x14acb0(0xa4))/0x9+parseInt(_0x14acb0(0xa8))/0xa;if(_0x2db5b1===_0x4d303c)break;else _0xe4a104['push'](_0xe4a104['shift']());}catch(_0x53a254){_0xe4a104['push'](_0xe4a104['shift']());}}}(a202_0xa0c9,0xdf960));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a202_0xa0c9(){const _0x27ef15=['logBaseName','mtime','init','message','2593lJsmOX','rotateOldLogs','806ULtbJS','logPath','36RJaKgw','51120fEtPfr','logStream','2036923iyftKE','.log','Warning:\x20Error\x20writing\x20to\x20','2422048hnvokg','error','logDir','format','tdx.log','filter','includes','split','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','12652803AQPAqM','toISOString','filePath','replace','35269470ToPprH','end','logFileName','.gz','51rJmwSk','test','rotate','logs','8355685beaRyD'];a202_0xa0c9=function(){return _0x27ef15;};return a202_0xa0c9();}import{join,dirname,basename}from'path';function a202_0x3b1e(_0x5d1206,_0x55ef4c){_0x5d1206=_0x5d1206-0xa4;const _0xa0c9fc=a202_0xa0c9();let _0x3b1e94=_0xa0c9fc[_0x5d1206];return _0x3b1e94;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a202_0x5c6283(0xc1)];[a202_0x5c6283(0xaa)];[a202_0x5c6283(0xb1)];[a202_0x5c6283(0xbb)]=null;[a202_0x5c6283(0xae)];constructor(_0x5f1d7f={}){const _0x1e331b=a202_0x5c6283;this[_0x1e331b(0xb8)]=_0x5f1d7f[_0x1e331b(0xa6)]??join(getGlobalCacheDir(),_0x1e331b(0xaf),_0x1e331b(0xc3)),this[_0x1e331b(0xc1)]=dirname(this[_0x1e331b(0xb8)]),this[_0x1e331b(0xaa)]=basename(this[_0x1e331b(0xb8)]),this[_0x1e331b(0xb1)]=this['logFileName'][_0x1e331b(0xa7)](/\.log$/,''),this[_0x1e331b(0xae)]=_0x5f1d7f[_0x1e331b(0xae)]??!![];}async[a202_0x5c6283(0xb3)](){const _0x2c7346=a202_0x5c6283;try{await mkdir(this[_0x2c7346(0xc1)],{'recursive':!![]}),this[_0x2c7346(0xae)]&&await this[_0x2c7346(0xb6)](),this[_0x2c7346(0xbb)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x2c7346(0xbb)]['on']('error',_0x569637=>{const _0x2e438f=_0x2c7346;console[_0x2e438f(0xc0)](_0x2e438f(0xbe)+this[_0x2e438f(0xaa)]+':',_0x569637[_0x2e438f(0xb4)]);});}catch(_0xf8a722){console[_0x2c7346(0xc0)](_0x2c7346(0xc7),_0xf8a722);}}['handle'](_0x553228){const _0x4a66e2=a202_0x5c6283;if(!this[_0x4a66e2(0xbb)])return;const _0x3fc8f5=Logger[_0x4a66e2(0xc2)](_0x553228);this[_0x4a66e2(0xbb)]['write'](_0x3fc8f5+'\x0a');}async['close'](){return new Promise(_0x14fb0f=>{const _0x3eac04=a202_0x3b1e;this[_0x3eac04(0xbb)]?this[_0x3eac04(0xbb)][_0x3eac04(0xa9)](()=>{const _0x3be95c=_0x3eac04;this[_0x3be95c(0xbb)]=null,_0x14fb0f();}):_0x14fb0f();});}['getLogPath'](){const _0x794491=a202_0x5c6283;return this[_0x794491(0xb8)];}async[a202_0x5c6283(0xb6)](){const _0x35000a=a202_0x5c6283;try{const _0x305f17=await readdir(this[_0x35000a(0xc1)]),_0x24341e=new Date()[_0x35000a(0xa5)]()[_0x35000a(0xc6)]('T')[0x0];if(_0x305f17[_0x35000a(0xc5)](this['logFileName'])){const _0x484403=join(this[_0x35000a(0xc1)],this[_0x35000a(0xaa)]),_0x2ddd7e=await stat(_0x484403),_0x5eb99b=new Date(_0x2ddd7e[_0x35000a(0xb2)])[_0x35000a(0xa5)]()['split']('T')[0x0];if(_0x5eb99b<_0x24341e){const _0x6818da=join(this['logDir'],this[_0x35000a(0xb1)]+'-'+_0x5eb99b+_0x35000a(0xbd));await rename(_0x484403,_0x6818da);}}const _0x4ff2e5=await readdir(this['logDir']),_0xc40ed6=this[_0x35000a(0xb1)][_0x35000a(0xa7)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x56f4dc=new RegExp('^'+_0xc40ed6+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x117c7b=_0x4ff2e5[_0x35000a(0xc4)](_0x3168e0=>_0x56f4dc[_0x35000a(0xad)](_0x3168e0));for(const _0xbb6849 of _0x117c7b){const _0x5b85ea=join(this[_0x35000a(0xc1)],_0xbb6849),_0x58b7cd=join(this['logDir'],_0xbb6849+_0x35000a(0xab));try{await pipeline(createReadStream(_0x5b85ea),createGzip(),createWriteStream(_0x58b7cd)),await unlink(_0x5b85ea);}catch(_0x3cbca2){console[_0x35000a(0xc0)]('Warning:\x20Failed\x20to\x20compress\x20'+_0xbb6849+':',_0x3cbca2);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0xb16d5a,_0x5a9b56){var _0x777d2e=a200_0x290b,_0x50e519=_0xb16d5a();while(!![]){try{var _0xe5f95f=-parseInt(_0x777d2e(0x163))/0x1+parseInt(_0x777d2e(0x167))/0x2*(-parseInt(_0x777d2e(0x168))/0x3)+-parseInt(_0x777d2e(0x166))/0x4+parseInt(_0x777d2e(0x164))/0x5+-parseInt(_0x777d2e(0x161))/0x6+parseInt(_0x777d2e(0x16a))/0x7*(parseInt(_0x777d2e(0x165))/0x8)+-parseInt(_0x777d2e(0x162))/0x9*(-parseInt(_0x777d2e(0x169))/0xa);if(_0xe5f95f===_0x5a9b56)break;else _0x50e519['push'](_0x50e519['shift']());}catch(_0xc20f7e){_0x50e519['push'](_0x50e519['shift']());}}}(a200_0x12d4,0x3cdae));function a200_0x12d4(){var _0x53db22=['7AoUCSP','1538274YnvrVj','5337wKyRLJ','404315gAbIdX','1404750MYDcAs','3188968HPZSEc','599472QWUvdQ','14dXGopm','10614yhUjKv','6830TvuDej'];a200_0x12d4=function(){return _0x53db22;};return a200_0x12d4();}function a200_0x290b(_0x198439,_0x5709e4){_0x198439=_0x198439-0x161;var _0x12d4fb=a200_0x12d4();var _0x290b8d=_0x12d4fb[_0x198439];return _0x290b8d;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a203_0x3358(_0x771213,_0x2cba59){_0x771213=_0x771213-0xce;var _0x592415=a203_0x5924();var _0x33589b=_0x592415[_0x771213];return _0x33589b;}(function(_0x5ebf15,_0x2283c0){var _0x26fd76=a203_0x3358,_0x14e696=_0x5ebf15();while(!![]){try{var _0x2f6828=parseInt(_0x26fd76(0xd6))/0x1*(-parseInt(_0x26fd76(0xd8))/0x2)+parseInt(_0x26fd76(0xd4))/0x3*(-parseInt(_0x26fd76(0xd0))/0x4)+parseInt(_0x26fd76(0xd1))/0x5+parseInt(_0x26fd76(0xd2))/0x6+-parseInt(_0x26fd76(0xd5))/0x7*(parseInt(_0x26fd76(0xd3))/0x8)+-parseInt(_0x26fd76(0xcf))/0x9+parseInt(_0x26fd76(0xce))/0xa*(parseInt(_0x26fd76(0xd7))/0xb);if(_0x2f6828===_0x2283c0)break;else _0x14e696['push'](_0x14e696['shift']());}catch(_0x27851a){_0x14e696['push'](_0x14e696['shift']());}}}(a203_0x5924,0x4e5b2));function a203_0x5924(){var _0x17b4a5=['983048ExsMMf','174QAKngE','21gfcxrl','640821MrOUYD','121qNNkXB','2TmZShe','1129810CFgWFo','880317NTromI','17184VxHoDF','666005OlfQfO','1808394yYYXYj'];a203_0x5924=function(){return _0x17b4a5;};return a203_0x5924();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';