@treasuredata/tdx 0.26.4 → 0.26.5

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 (169) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-command.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/journey-command.js +1 -1
  23. package/dist/commands/journey-validate-command.js +1 -1
  24. package/dist/commands/llm-command.js +1 -1
  25. package/dist/commands/mcp-command.js +1 -1
  26. package/dist/commands/parent-segment-command.js +1 -1
  27. package/dist/commands/profile-command.js +1 -1
  28. package/dist/commands/profiles-command.js +1 -1
  29. package/dist/commands/query-command.js +1 -1
  30. package/dist/commands/schedule-command.js +1 -1
  31. package/dist/commands/segment-command.js +1 -1
  32. package/dist/commands/segment-create-command.js +1 -1
  33. package/dist/commands/segment-fields-command.js +1 -1
  34. package/dist/commands/segment-pull-command.js +1 -1
  35. package/dist/commands/segment-push-command.js +1 -1
  36. package/dist/commands/segment-update-command.js +1 -1
  37. package/dist/commands/segment-use-command.js +1 -1
  38. package/dist/commands/segment-validate-command.js +1 -1
  39. package/dist/commands/segments.js +1 -1
  40. package/dist/commands/show.js +1 -1
  41. package/dist/commands/status-command.js +1 -1
  42. package/dist/commands/tables.js +1 -1
  43. package/dist/commands/unset-command.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/command-output.js +1 -1
  49. package/dist/core/config.js +1 -1
  50. package/dist/core/connection-cache.js +1 -1
  51. package/dist/core/constants.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/core/user-cache.js +1 -1
  59. package/dist/core/version.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/mcp/server.js +1 -1
  62. package/dist/mcp/tools/index.js +1 -1
  63. package/dist/mcp/tools/tdx-run.js +1 -1
  64. package/dist/mcp/tools/tdx-search.js +1 -1
  65. package/dist/mcp/utils.js +1 -1
  66. package/dist/proxy/claude-usage-tracker.js +1 -1
  67. package/dist/proxy/passthrough-server.js +1 -1
  68. package/dist/proxy/sse-usage-parser.js +1 -1
  69. package/dist/sdk/agent/agent-config.js +1 -1
  70. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  71. package/dist/sdk/agent/agent-yaml.js +1 -1
  72. package/dist/sdk/agent/test/evaluator.js +1 -1
  73. package/dist/sdk/agent/test/executor.js +1 -1
  74. package/dist/sdk/agent/test/index.js +1 -1
  75. package/dist/sdk/agent/test/output.js +1 -1
  76. package/dist/sdk/agent/test/parser.js +1 -1
  77. package/dist/sdk/api.js +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/endpoints.js +1 -1
  80. package/dist/sdk/client/engage-api-client.js +1 -1
  81. package/dist/sdk/client/http-client.js +1 -1
  82. package/dist/sdk/client/llm-api-client.js +1 -1
  83. package/dist/sdk/client/rate-limiter.js +1 -1
  84. package/dist/sdk/client/td-api-client.js +1 -1
  85. package/dist/sdk/client/trino-api-client.js +1 -1
  86. package/dist/sdk/client/workflow-client.js +1 -1
  87. package/dist/sdk/connection-validator.js +1 -1
  88. package/dist/sdk/connection.js +1 -1
  89. package/dist/sdk/engage.js +1 -1
  90. package/dist/sdk/errors.js +1 -1
  91. package/dist/sdk/index.js +1 -1
  92. package/dist/sdk/io/index.js +1 -1
  93. package/dist/sdk/io/node-filesystem.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm/chat-cache.js +1 -1
  97. package/dist/sdk/llm/index.js +1 -1
  98. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  99. package/dist/sdk/llm/model-factors.js +1 -1
  100. package/dist/sdk/personalization.js +1 -1
  101. package/dist/sdk/query/index.js +1 -1
  102. package/dist/sdk/query/sql-parser.js +1 -1
  103. package/dist/sdk/realtime.js +1 -1
  104. package/dist/sdk/schedule.js +1 -1
  105. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  106. package/dist/sdk/segment/fields-display.js +1 -1
  107. package/dist/sdk/segment/file-discovery.js +1 -1
  108. package/dist/sdk/segment/journey-utils.js +1 -1
  109. package/dist/sdk/segment/journey-validator.js +1 -1
  110. package/dist/sdk/segment/journey-yaml.js +1 -1
  111. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  112. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  113. package/dist/sdk/segment/pull-workflow.js +1 -1
  114. package/dist/sdk/segment/push-recovery.js +1 -1
  115. package/dist/sdk/segment/push-workflow.js +1 -1
  116. package/dist/sdk/segment/resolution-context.js +1 -1
  117. package/dist/sdk/segment/segment-path-parser.js +1 -1
  118. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  119. package/dist/sdk/segment/target-resolution.js +1 -1
  120. package/dist/sdk/segment/tdx-config.js +1 -1
  121. package/dist/sdk/segment/validate-files.js +1 -1
  122. package/dist/sdk/segment/yaml-validator.js +1 -1
  123. package/dist/sdk/segment.js +1 -1
  124. package/dist/sdk/types/index.js +1 -1
  125. package/dist/sdk/types/progress.js +1 -1
  126. package/dist/sdk/user.js +1 -1
  127. package/dist/sdk/util/format-detector.js +1 -1
  128. package/dist/sdk/util/formatters.js +1 -1
  129. package/dist/sdk/util/index.js +1 -1
  130. package/dist/sdk/util/tree-formatter.js +1 -1
  131. package/dist/sdk/workflow/archive-validation.js +1 -1
  132. package/dist/sdk/workflow/clone-workflow.js +1 -1
  133. package/dist/sdk/workflow/index.js +1 -1
  134. package/dist/sdk/workflow/pull-workflow.js +1 -1
  135. package/dist/sdk/workflow/push-workflow.js +1 -1
  136. package/dist/sdk/workflow/tdx-config.js +1 -1
  137. package/dist/sdk/workflow/workflow-utils.js +1 -1
  138. package/dist/test-utils/command-runner.js +1 -1
  139. package/dist/test-utils/factories.js +1 -1
  140. package/dist/test-utils/fixtures.js +1 -1
  141. package/dist/test-utils/http-mock.js +1 -1
  142. package/dist/test-utils/index.js +1 -1
  143. package/dist/utils/async.js +1 -1
  144. package/dist/utils/colors.js +1 -1
  145. package/dist/utils/diff.js +1 -1
  146. package/dist/utils/file-permissions.js +1 -1
  147. package/dist/utils/global-cache.js +1 -1
  148. package/dist/utils/json-loader.js +1 -1
  149. package/dist/utils/local-cache.js +1 -1
  150. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  151. package/dist/utils/logger/formatters/index.js +1 -1
  152. package/dist/utils/logger/handlers/console-handler.js +1 -1
  153. package/dist/utils/logger/handlers/file-handler.js +1 -1
  154. package/dist/utils/logger/handlers/index.js +1 -1
  155. package/dist/utils/logger/handlers/null-handler.js +1 -1
  156. package/dist/utils/logger/index.js +1 -1
  157. package/dist/utils/logger/logger.js +1 -1
  158. package/dist/utils/logger/types.js +1 -1
  159. package/dist/utils/option-validation.js +1 -1
  160. package/dist/utils/port.js +1 -1
  161. package/dist/utils/process.js +1 -1
  162. package/dist/utils/prompt.js +1 -1
  163. package/dist/utils/spinner.js +1 -1
  164. package/dist/utils/sse-parser.js +1 -1
  165. package/dist/utils/string-utils.js +1 -1
  166. package/dist/utils/table-ref-parser.js +1 -1
  167. package/dist/utils/tdx-logger.js +1 -1
  168. package/dist/utils/version-check.js +1 -1
  169. package/package.json +1 -1
@@ -1 +1 @@
1
- const a153_0x48c184=a153_0x3a90;(function(_0x2b1456,_0x3906f4){const _0x697a62=a153_0x3a90,_0x4fa52c=_0x2b1456();while(!![]){try{const _0xa3ec2=-parseInt(_0x697a62(0xf0))/0x1*(parseInt(_0x697a62(0xe4))/0x2)+parseInt(_0x697a62(0xbc))/0x3*(-parseInt(_0x697a62(0xfd))/0x4)+-parseInt(_0x697a62(0xb4))/0x5*(parseInt(_0x697a62(0xcd))/0x6)+parseInt(_0x697a62(0xb3))/0x7*(-parseInt(_0x697a62(0xd1))/0x8)+parseInt(_0x697a62(0xc5))/0x9+-parseInt(_0x697a62(0xa5))/0xa+parseInt(_0x697a62(0xcc))/0xb;if(_0xa3ec2===_0x3906f4)break;else _0x4fa52c['push'](_0x4fa52c['shift']());}catch(_0x397c58){_0x4fa52c['push'](_0x4fa52c['shift']());}}}(a153_0xdc27,0xda455));function a153_0x3a90(_0x1cb549,_0x5ed96a){_0x1cb549=_0x1cb549-0x8d;const _0xdc27c3=a153_0xdc27();let _0x3a9023=_0xdc27c3[_0x1cb549];return _0x3a9023;}export const fixtures={'database':{'basic':{'name':a153_0x48c184(0x96),'count':0x5,'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xd2),'permission':'administrator'},'withTables':{'name':a153_0x48c184(0x95),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a153_0x48c184(0xf2),'permission':a153_0x48c184(0xdc)}},'table':{'basic':{'id':0x3039,'name':a153_0x48c184(0xec),'type':a153_0x48c184(0x97),'schema':JSON[a153_0x48c184(0xc9)]([['id',a153_0x48c184(0xd8)],[a153_0x48c184(0xc2),'long'],[a153_0x48c184(0x8d),a153_0x48c184(0xd8)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xd2)},'events':{'id':0x303a,'name':'events','type':'log','schema':JSON['stringify']([[a153_0x48c184(0xfa),'string'],[a153_0x48c184(0xc2),a153_0x48c184(0xf6)],['user_id',a153_0x48c184(0xd8)],[a153_0x48c184(0xe1),a153_0x48c184(0xd8)],[a153_0x48c184(0x9b),a153_0x48c184(0xd5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a153_0x48c184(0xd2),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a153_0x48c184(0x9e),'description':a153_0x48c184(0xa9),'status':a153_0x48c184(0xba),'master_table':{'database':a153_0x48c184(0xf4),'table':a153_0x48c184(0x8f)},'attributes':[{'name':a153_0x48c184(0xdb),'type':'string','key':!![]},{'name':'email','type':'string'},{'name':a153_0x48c184(0x102),'type':a153_0x48c184(0xb9)}],'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xaf)},'withBehaviors':{'id':a153_0x48c184(0xb7),'name':a153_0x48c184(0xbf),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a153_0x48c184(0xba),'master_table':{'database':a153_0x48c184(0xf4),'table':a153_0x48c184(0xe6)},'behaviors':[{'name':a153_0x48c184(0xee),'table':{'database':'events_db','table':a153_0x48c184(0xee)},'join_key':a153_0x48c184(0xdb)},{'name':a153_0x48c184(0xe5),'table':{'database':a153_0x48c184(0xeb),'table':'pageviews'},'join_key':a153_0x48c184(0xdb)}],'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xaf)}},'segment':{'basic':{'id':a153_0x48c184(0xbd),'name':a153_0x48c184(0xdf),'description':a153_0x48c184(0xcf),'parent_segment_id':'ps-123456','status':'active','rules':[{'type':a153_0x48c184(0xc8),'field':a153_0x48c184(0xc7),'operator':a153_0x48c184(0xef),'value':a153_0x48c184(0x8e)}],'count':0x1388,'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xaf)},'withMultipleRules':{'id':a153_0x48c184(0x9a),'name':a153_0x48c184(0xcb),'description':a153_0x48c184(0x98),'parent_segment_id':a153_0x48c184(0xa0),'status':'active','rules':[{'type':a153_0x48c184(0xc8),'field':a153_0x48c184(0xc7),'operator':'TimeWithinPast','value':'30d'},{'type':a153_0x48c184(0xc8),'field':a153_0x48c184(0xc3),'operator':a153_0x48c184(0xc0),'value':0x3e8}],'count':0x5dc,'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xaf)}},'journey':{'basic':{'id':a153_0x48c184(0xd0),'name':a153_0x48c184(0xad),'description':a153_0x48c184(0xc4),'status':a153_0x48c184(0xc6),'version':0x1,'steps':[{'id':a153_0x48c184(0xa3),'type':a153_0x48c184(0x100),'duration':'1d'},{'id':a153_0x48c184(0xae),'type':a153_0x48c184(0xed),'activation_id':a153_0x48c184(0x9c)}],'created_at':a153_0x48c184(0xd2),'updated_at':a153_0x48c184(0xaf)},'withDecision':{'id':a153_0x48c184(0x93),'name':a153_0x48c184(0xdd),'description':a153_0x48c184(0xa4),'status':a153_0x48c184(0xba),'version':0x2,'steps':[{'id':'step-1','type':a153_0x48c184(0xb1),'segment_id':'cs-456789','yes_path':a153_0x48c184(0xae),'no_path':'step-3'},{'id':a153_0x48c184(0xae),'type':a153_0x48c184(0xed),'activation_id':a153_0x48c184(0xda)},{'id':'step-3','type':a153_0x48c184(0xac)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a153_0x48c184(0xf5)},{'name':a153_0x48c184(0x8d),'type':a153_0x48c184(0xf5)},{'name':a153_0x48c184(0x92),'type':'bigint'}],'data':[[a153_0x48c184(0xe3),a153_0x48c184(0xf1),0x64],[a153_0x48c184(0xe7),a153_0x48c184(0xb8),0xc8],[a153_0x48c184(0x90),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a153_0x48c184(0xf5)},{'name':a153_0x48c184(0x8d),'type':a153_0x48c184(0xf5)}],'data':[]},'singleRow':{'schema':[{'name':a153_0x48c184(0xc1),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0x48c184(0xe9),'email':a153_0x48c184(0xd6),'created_at':a153_0x48c184(0xd2),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a153_0x48c184(0xca),'email':a153_0x48c184(0x9f),'created_at':a153_0x48c184(0xab),'updated_at':a153_0x48c184(0xaf),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a153_0x48c184(0x99),'database':'test_db','status':a153_0x48c184(0xce),'query':a153_0x48c184(0x9d),'start_at':'2024-01-15T10:00:00Z','end_at':a153_0x48c184(0xbb),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a153_0x48c184(0x99),'database':'test_db','status':a153_0x48c184(0xd7),'query':a153_0x48c184(0xb2),'start_at':a153_0x48c184(0xa6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a153_0x48c184(0x96),'status':a153_0x48c184(0xfc),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a153_0x48c184(0x101),'end_at':a153_0x48c184(0xbe),'duration':0x1,'result_size':null,'error':a153_0x48c184(0xe2)}},'workflow':{'basic':{'id':a153_0x48c184(0x103),'name':a153_0x48c184(0xea),'project':a153_0x48c184(0xfe),'revision':'abc123','timezone':'UTC','schedule':{'cron':a153_0x48c184(0xd3)}},'withSessions':{'id':a153_0x48c184(0xf9),'name':a153_0x48c184(0xa2),'project':'data_sync','revision':a153_0x48c184(0xe0),'timezone':a153_0x48c184(0xf7),'schedule':{'cron':a153_0x48c184(0xd4)},'last_session':{'id':a153_0x48c184(0xaa),'status':a153_0x48c184(0xce),'started_at':a153_0x48c184(0xe8),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a153_0x48c184(0xf3),'message':a153_0x48c184(0xf3),'severity':a153_0x48c184(0xfc),'status_code':0x191}},'notFound':{'errors':{'error':a153_0x48c184(0xff),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a153_0x48c184(0xa8)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':a153_0x48c184(0xfb),'instance':a153_0x48c184(0xa1)}}};export function createDatabase(_0x1bc9d3){const _0x426439=a153_0x48c184;return{...fixtures[_0x426439(0x94)]['basic'],..._0x1bc9d3};}export function createTable(_0x9a91a){const _0x211191=a153_0x48c184;return{...fixtures[_0x211191(0xd9)][_0x211191(0xb6)],..._0x9a91a};}export function createParentSegment(_0xf2d848){const _0x1964e0=a153_0x48c184;return{...fixtures[_0x1964e0(0xde)]['basic'],..._0xf2d848};}export function createSegment(_0x2f101e){const _0x4131bf=a153_0x48c184;return{...fixtures[_0x4131bf(0xf8)][_0x4131bf(0xb6)],..._0x2f101e};}function a153_0xdc27(){const _0x4f07a9=['def456','event_type','Table\x20does\x20not\x20exist:\x20nonexistent_table','user-1','5102LgZCXi','page_views','customers','user-2','2024-01-15T09:00:00Z','Test\x20User','daily_etl','events_db','users','activation','purchases','TimeWithinPast','666ZjwWdm','Alice','2024-01-15T08:00:00Z','Invalid\x20API\x20key','cdp_db','varchar','long','America/Los_Angeles','segment','wf-67890','event_id','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','error','400jJzruu','data_pipeline','Resource\x20not\x20found','wait','2024-01-15T10:10:00Z','created_at','wf-12345','name','30d','unified_customers','user-3','job','count','j-def456','database','production_db','test_db','log','Active\x20users\x20with\x20high\x20lifetime\x20value','presto','cs-111222','properties','act-123','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','Test\x20Parent\x20Segment','admin@example.com','ps-123456','/v3/database/list','hourly_sync','step-1','Journey\x20with\x20decision\x20point','511940Nzzsiy','2024-01-15T10:05:00Z','journey','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','sess-111','2023-01-01T00:00:00Z','end','Welcome\x20Journey','step-2','2024-01-15T00:00:00Z','queryResult','decision_point','SELECT\x20COUNT(*)\x20FROM\x20events','1021153BqEOkV','5Mgkgkx','completed','basic','ps-789012','Bob','timestamp','active','2024-01-15T10:00:05Z','25959qRMEvV','cs-456789','2024-01-15T10:10:01Z','Customers\x20with\x20Behaviors','Greater','total','time','lifetime_value','Onboarding\x20journey\x20for\x20new\x20users','1767303AWSsgf','draft','last_login','attribute','stringify','Admin\x20User','High\x20Value\x20Active\x20Users','55501050BlEXgk','4267602PAUKKC','success','Users\x20active\x20in\x20the\x20last\x2030\x20days','j-abc123','56jUJDZo','2024-01-01T00:00:00Z','0\x200\x20*\x20*\x20*','0\x20*\x20*\x20*\x20*','map<string,string>','test@example.com','running','string','table','act-email','customer_id','full_access','Purchase\x20Reminder','parentSegment','Active\x20Users'];a153_0xdc27=function(){return _0x4f07a9;};return a153_0xdc27();}export function createJourney(_0x53a982){const _0x42f8cf=a153_0x48c184;return{...fixtures[_0x42f8cf(0xa7)][_0x42f8cf(0xb6)],..._0x53a982};}export function createQueryResult(_0x136bba){const _0x32f47c=a153_0x48c184;return{...fixtures[_0x32f47c(0xb0)][_0x32f47c(0xb6)],..._0x136bba};}export function createUser(_0x4ccf48){const _0x4be665=a153_0x48c184;return{...fixtures['user'][_0x4be665(0xb6)],..._0x4ccf48};}export function createJob(_0x18715c){const _0x450cfd=a153_0x48c184;return{...fixtures[_0x450cfd(0x91)][_0x450cfd(0xb5)],..._0x18715c};}export function createWorkflow(_0x5110d9){return{...fixtures['workflow']['basic'],..._0x5110d9};}
1
+ const a153_0x3f2d00=a153_0x259a;(function(_0x41a2be,_0x261a3e){const _0x52301b=a153_0x259a,_0x276fd9=_0x41a2be();while(!![]){try{const _0x15f5c0=-parseInt(_0x52301b(0x17f))/0x1+-parseInt(_0x52301b(0x1c3))/0x2+-parseInt(_0x52301b(0x1a0))/0x3+parseInt(_0x52301b(0x169))/0x4*(-parseInt(_0x52301b(0x1c2))/0x5)+parseInt(_0x52301b(0x197))/0x6+-parseInt(_0x52301b(0x16c))/0x7*(parseInt(_0x52301b(0x1d4))/0x8)+parseInt(_0x52301b(0x16e))/0x9;if(_0x15f5c0===_0x261a3e)break;else _0x276fd9['push'](_0x276fd9['shift']());}catch(_0x263910){_0x276fd9['push'](_0x276fd9['shift']());}}}(a153_0x523d,0xa8367));export const fixtures={'database':{'basic':{'name':a153_0x3f2d00(0x1ac),'count':0x5,'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x1bc),'permission':a153_0x3f2d00(0x194)},'withTables':{'name':'production_db','count':0x64,'created_at':a153_0x3f2d00(0x170),'updated_at':'2024-01-15T08:00:00Z','permission':a153_0x3f2d00(0x16f)}},'table':{'basic':{'id':0x3039,'name':'users','type':a153_0x3f2d00(0x16b),'schema':JSON['stringify']([['id',a153_0x3f2d00(0x1ba)],[a153_0x3f2d00(0x177),a153_0x3f2d00(0x196)],[a153_0x3f2d00(0x1be),a153_0x3f2d00(0x1ba)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x1bc)},'events':{'id':0x303a,'name':a153_0x3f2d00(0x171),'type':a153_0x3f2d00(0x16b),'schema':JSON[a153_0x3f2d00(0x191)]([[a153_0x3f2d00(0x19d),a153_0x3f2d00(0x1ba)],[a153_0x3f2d00(0x177),a153_0x3f2d00(0x196)],[a153_0x3f2d00(0x1c1),'string'],[a153_0x3f2d00(0x1b7),a153_0x3f2d00(0x1ba)],[a153_0x3f2d00(0x1d2),a153_0x3f2d00(0x1b5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a153_0x3f2d00(0x193)}},'parentSegment':{'basic':{'id':a153_0x3f2d00(0x1cd),'name':a153_0x3f2d00(0x19e),'description':a153_0x3f2d00(0x1c9),'status':a153_0x3f2d00(0x1bd),'master_table':{'database':a153_0x3f2d00(0x184),'table':a153_0x3f2d00(0x1a2)},'attributes':[{'name':a153_0x3f2d00(0x1a8),'type':a153_0x3f2d00(0x1ba),'key':!![]},{'name':'email','type':a153_0x3f2d00(0x1ba)},{'name':'created_at','type':a153_0x3f2d00(0x1c7)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a153_0x3f2d00(0x1b1),'name':a153_0x3f2d00(0x172),'description':a153_0x3f2d00(0x186),'status':a153_0x3f2d00(0x1bd),'master_table':{'database':'cdp_db','table':a153_0x3f2d00(0x1b2)},'behaviors':[{'name':a153_0x3f2d00(0x1bb),'table':{'database':'events_db','table':a153_0x3f2d00(0x1bb)},'join_key':a153_0x3f2d00(0x1a8)},{'name':'page_views','table':{'database':a153_0x3f2d00(0x17c),'table':'pageviews'},'join_key':a153_0x3f2d00(0x1a8)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a153_0x3f2d00(0x1d0),'name':a153_0x3f2d00(0x1a9),'description':a153_0x3f2d00(0x1c8),'parent_segment_id':a153_0x3f2d00(0x1cd),'status':a153_0x3f2d00(0x1bd),'rules':[{'type':a153_0x3f2d00(0x189),'field':a153_0x3f2d00(0x18c),'operator':a153_0x3f2d00(0x18a),'value':a153_0x3f2d00(0x19f)}],'count':0x1388,'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x179)},'withMultipleRules':{'id':'cs-111222','name':'High\x20Value\x20Active\x20Users','description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a153_0x3f2d00(0x1cd),'status':a153_0x3f2d00(0x1bd),'rules':[{'type':a153_0x3f2d00(0x189),'field':a153_0x3f2d00(0x18c),'operator':a153_0x3f2d00(0x18a),'value':a153_0x3f2d00(0x19f)},{'type':a153_0x3f2d00(0x189),'field':a153_0x3f2d00(0x17b),'operator':a153_0x3f2d00(0x1b6),'value':0x3e8}],'count':0x5dc,'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x179)}},'journey':{'basic':{'id':'j-abc123','name':a153_0x3f2d00(0x1c6),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':'draft','version':0x1,'steps':[{'id':a153_0x3f2d00(0x1b8),'type':a153_0x3f2d00(0x187),'duration':'1d'},{'id':a153_0x3f2d00(0x1a4),'type':a153_0x3f2d00(0x1b4),'activation_id':a153_0x3f2d00(0x176)}],'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x179)},'withDecision':{'id':'j-def456','name':a153_0x3f2d00(0x181),'description':a153_0x3f2d00(0x1a6),'status':'active','version':0x2,'steps':[{'id':a153_0x3f2d00(0x1b8),'type':a153_0x3f2d00(0x175),'segment_id':a153_0x3f2d00(0x1d0),'yes_path':a153_0x3f2d00(0x1a4),'no_path':a153_0x3f2d00(0x1af)},{'id':a153_0x3f2d00(0x1a4),'type':'activation','activation_id':a153_0x3f2d00(0x1a3)},{'id':'step-3','type':'end'}],'created_at':a153_0x3f2d00(0x1bc),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a153_0x3f2d00(0x1be),'type':a153_0x3f2d00(0x1ce)},{'name':'count','type':'bigint'}],'data':[[a153_0x3f2d00(0x180),a153_0x3f2d00(0x1b9),0x64],['user-2',a153_0x3f2d00(0x17e),0xc8],[a153_0x3f2d00(0x18f),a153_0x3f2d00(0x1ca),0x96]]},'empty':{'schema':[{'name':'id','type':a153_0x3f2d00(0x1ce)},{'name':'name','type':a153_0x3f2d00(0x1ce)}],'data':[]},'singleRow':{'schema':[{'name':a153_0x3f2d00(0x19b),'type':a153_0x3f2d00(0x1c4)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a153_0x3f2d00(0x16d),'email':a153_0x3f2d00(0x1bf),'created_at':a153_0x3f2d00(0x1bc),'updated_at':a153_0x3f2d00(0x179),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a153_0x3f2d00(0x1c5),'created_at':a153_0x3f2d00(0x174),'updated_at':a153_0x3f2d00(0x179),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a153_0x3f2d00(0x18d),'database':'test_db','status':a153_0x3f2d00(0x1a1),'query':a153_0x3f2d00(0x195),'start_at':'2024-01-15T10:00:00Z','end_at':a153_0x3f2d00(0x16a),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a153_0x3f2d00(0x18d),'database':'test_db','status':'running','query':a153_0x3f2d00(0x1c0),'start_at':a153_0x3f2d00(0x182),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a153_0x3f2d00(0x1ac),'status':a153_0x3f2d00(0x1b0),'query':a153_0x3f2d00(0x188),'start_at':a153_0x3f2d00(0x1cb),'end_at':a153_0x3f2d00(0x17d),'duration':0x1,'result_size':null,'error':a153_0x3f2d00(0x19c)}},'workflow':{'basic':{'id':a153_0x3f2d00(0x18e),'name':a153_0x3f2d00(0x1d6),'project':a153_0x3f2d00(0x183),'revision':'abc123','timezone':'UTC','schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a153_0x3f2d00(0x1aa),'name':a153_0x3f2d00(0x17a),'project':'data_sync','revision':a153_0x3f2d00(0x192),'timezone':a153_0x3f2d00(0x18b),'schedule':{'cron':a153_0x3f2d00(0x1d5)},'last_session':{'id':a153_0x3f2d00(0x1d1),'status':a153_0x3f2d00(0x1a1),'started_at':a153_0x3f2d00(0x190),'finished_at':a153_0x3f2d00(0x178)}}},'apiError':{'unauthorized':{'errors':{'error':a153_0x3f2d00(0x1cc),'message':'Invalid\x20API\x20key','severity':a153_0x3f2d00(0x1b0),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a153_0x3f2d00(0x1b3),'severity':a153_0x3f2d00(0x1b0),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a153_0x3f2d00(0x1a5),'title':'Forbidden','status':0x193,'detail':a153_0x3f2d00(0x1ab),'instance':a153_0x3f2d00(0x1d3)}}};export function createDatabase(_0x189243){const _0x40c714=a153_0x3f2d00;return{...fixtures[_0x40c714(0x185)][_0x40c714(0x173)],..._0x189243};}export function createTable(_0x278e6b){return{...fixtures['table']['basic'],..._0x278e6b};}export function createParentSegment(_0x6f7c57){const _0x1f65a9=a153_0x3f2d00;return{...fixtures[_0x1f65a9(0x1ae)][_0x1f65a9(0x173)],..._0x6f7c57};}export function createSegment(_0x1cdea7){const _0x1e9127=a153_0x3f2d00;return{...fixtures[_0x1e9127(0x199)][_0x1e9127(0x173)],..._0x1cdea7};}export function createJourney(_0x309916){const _0x31f78b=a153_0x3f2d00;return{...fixtures[_0x31f78b(0x1a7)]['basic'],..._0x309916};}export function createQueryResult(_0x5695e7){const _0x80a35f=a153_0x3f2d00;return{...fixtures[_0x80a35f(0x1ad)][_0x80a35f(0x173)],..._0x5695e7};}export function createUser(_0xd06662){const _0x27bb80=a153_0x3f2d00;return{...fixtures[_0x27bb80(0x19a)][_0x27bb80(0x173)],..._0xd06662};}function a153_0x259a(_0x3b049f,_0x247813){_0x3b049f=_0x3b049f-0x169;const _0x523db1=a153_0x523d();let _0x259ae0=_0x523db1[_0x3b049f];return _0x259ae0;}export function createJob(_0x44420e){const _0x36b370=a153_0x3f2d00;return{...fixtures[_0x36b370(0x198)][_0x36b370(0x1cf)],..._0x44420e};}function a153_0x523d(){const _0x26dc1e=['activation','map<string,string>','Greater','event_type','step-1','Alice','string','purchases','2024-01-01T00:00:00Z','active','name','test@example.com','SELECT\x20COUNT(*)\x20FROM\x20events','user_id','983695BIqioc','2326536LgPqEe','bigint','admin@example.com','Welcome\x20Journey','timestamp','Users\x20active\x20in\x20the\x20last\x2030\x20days','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','Charlie','2024-01-15T10:10:00Z','Invalid\x20API\x20key','ps-123456','varchar','completed','cs-456789','sess-111','properties','/v3/database/list','8qPibST','0\x20*\x20*\x20*\x20*','daily_etl','4hcEsam','2024-01-15T10:00:05Z','log','9644243MjkZHC','Test\x20User','42597306TBlNgx','full_access','2023-06-15T10:30:00Z','events','Customers\x20with\x20Behaviors','basic','2023-01-01T00:00:00Z','decision_point','act-123','time','2024-01-15T09:05:00Z','2024-01-15T00:00:00Z','hourly_sync','lifetime_value','events_db','2024-01-15T10:10:01Z','Bob','953281PNReqf','user-1','Purchase\x20Reminder','2024-01-15T10:05:00Z','data_pipeline','cdp_db','database','Parent\x20segment\x20with\x20behavioral\x20data','wait','SELECT\x20*\x20FROM\x20nonexistent_table','attribute','TimeWithinPast','America/Los_Angeles','last_login','presto','wf-12345','user-3','2024-01-15T09:00:00Z','stringify','def456','2024-01-15T12:00:00Z','administrator','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','long','4370946piGuFb','job','segment','user','total','Table\x20does\x20not\x20exist:\x20nonexistent_table','event_id','Test\x20Parent\x20Segment','30d','3244467JFiZbg','success','unified_customers','act-email','step-2','https://api.treasuredata.com/errors/forbidden','Journey\x20with\x20decision\x20point','journey','customer_id','Active\x20Users','wf-67890','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','test_db','queryResult','parentSegment','step-3','error','ps-789012','customers','The\x20requested\x20resource\x20does\x20not\x20exist'];a153_0x523d=function(){return _0x26dc1e;};return a153_0x523d();}export function createWorkflow(_0x32597d){const _0x2663b3=a153_0x3f2d00;return{...fixtures['workflow'][_0x2663b3(0x173)],..._0x32597d};}
@@ -1 +1 @@
1
- const a154_0x36a0c9=a154_0x4616;(function(_0x527007,_0x163df0){const _0x2e5fe8=a154_0x4616,_0x17b84b=_0x527007();while(!![]){try{const _0x597740=parseInt(_0x2e5fe8(0x175))/0x1+parseInt(_0x2e5fe8(0x189))/0x2+parseInt(_0x2e5fe8(0x16e))/0x3*(parseInt(_0x2e5fe8(0x186))/0x4)+parseInt(_0x2e5fe8(0x17e))/0x5*(parseInt(_0x2e5fe8(0x18f))/0x6)+-parseInt(_0x2e5fe8(0x190))/0x7+-parseInt(_0x2e5fe8(0x18b))/0x8+-parseInt(_0x2e5fe8(0x159))/0x9*(parseInt(_0x2e5fe8(0x161))/0xa);if(_0x597740===_0x163df0)break;else _0x17b84b['push'](_0x17b84b['shift']());}catch(_0x2139d4){_0x17b84b['push'](_0x17b84b['shift']());}}}(a154_0x582d,0x257aa));import{vi}from'vitest';function a154_0x4616(_0x8b2ab5,_0x3ddccc){_0x8b2ab5=_0x8b2ab5-0x145;const _0x582d54=a154_0x582d();let _0x4616c7=_0x582d54[_0x8b2ab5];return _0x4616c7;}export class HTTPMockRegistry{[a154_0x36a0c9(0x18e)]=[];[a154_0x36a0c9(0x15a)]=[];[a154_0x36a0c9(0x17b)]=null;[a154_0x36a0c9(0x14e)](_0x2d4e77,_0xf8c387){return _0x26b98c=>{const _0x1e8f42=a154_0x4616;if(_0x26b98c['method'][_0x1e8f42(0x176)]()!==_0x2d4e77[_0x1e8f42(0x176)]())return![];const _0xc63e2=new URL(_0x26b98c[_0x1e8f42(0x170)]);if(typeof _0xf8c387===_0x1e8f42(0x15f))return _0xc63e2[_0x1e8f42(0x181)]===_0xf8c387||_0xc63e2[_0x1e8f42(0x181)][_0x1e8f42(0x16a)](_0xf8c387);return _0xf8c387[_0x1e8f42(0x184)](_0xc63e2['pathname']);};}['withQuery'](_0x18e652,_0x493110){return _0x3358d5=>{const _0x4c3249=a154_0x4616;if(!_0x18e652(_0x3358d5))return![];const _0x180861=new URL(_0x3358d5[_0x4c3249(0x170)]);return Object['entries'](_0x493110)[_0x4c3249(0x177)](([_0x1e8553,_0x1faeca])=>_0x180861['searchParams'][_0x4c3249(0x16d)](_0x1e8553)===_0x1faeca);};}[a154_0x36a0c9(0x17a)](_0x23ee5a,_0x59b4d2){return _0x3efcde=>{const _0x5bfa5c=a154_0x4616;if(!_0x23ee5a(_0x3efcde))return![];if(typeof _0x59b4d2===_0x5bfa5c(0x166))return _0x59b4d2(_0x3efcde[_0x5bfa5c(0x18d)]);return JSON[_0x5bfa5c(0x17f)](_0x3efcde[_0x5bfa5c(0x18d)])===JSON[_0x5bfa5c(0x17f)](_0x59b4d2);};}[a154_0x36a0c9(0x149)](_0x303404,_0x5b4a2c){return _0x5461a2=>{const _0x89320c=a154_0x4616;if(!_0x303404(_0x5461a2))return![];const _0x1a497b=new URL(_0x5461a2[_0x89320c(0x170)]);return _0x1a497b[_0x89320c(0x14d)]===_0x5b4a2c;};}['register'](_0x5d3a3c,_0x2f8e81,_0x2e93c3){const _0x1b7f54=a154_0x36a0c9;this[_0x1b7f54(0x18e)][_0x1b7f54(0x14f)]({'matcher':_0x5d3a3c,'responder':_0x2f8e81,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1b7f54(0x187)]??'','description':_0x2e93c3?.[_0x1b7f54(0x17d)]});}[a154_0x36a0c9(0x162)](_0x108045,_0x3c18ae,_0x391126){const _0x3ab90d=_0x5bcb96=>{const _0x4961f8=a154_0x4616;return _0x391126(_0x5bcb96[_0x4961f8(0x18d)],_0x5bcb96),_0x3c18ae(_0x5bcb96);};this['register'](_0x108045,_0x3ab90d);}static[a154_0x36a0c9(0x185)](_0x10f15a,_0x60b858=0xc8){const _0x57499b=a154_0x36a0c9;return()=>new Response(JSON['stringify'](_0x10f15a),{'status':_0x60b858,'headers':{'Content-Type':_0x57499b(0x145)}});}static[a154_0x36a0c9(0x192)](_0x15af02,_0x2ebe95,_0x345b22='simple'){return()=>{const _0x25ce74=a154_0x4616;let _0x1bd367;switch(_0x345b22){case'td-api':_0x1bd367={'errors':{'error':_0x2ebe95,'message':_0x2ebe95,'severity':_0x25ce74(0x180),'status_code':_0x15af02}};break;case _0x25ce74(0x16b):_0x1bd367={'type':_0x25ce74(0x196)+_0x15af02,'title':HTTPMockRegistry['getStatusText'](_0x15af02),'status':_0x15af02,'detail':_0x2ebe95};break;default:_0x1bd367={'error':_0x2ebe95};}return new Response(JSON['stringify'](_0x1bd367),{'status':_0x15af02,'headers':{'Content-Type':_0x25ce74(0x145)}});};}static[a154_0x36a0c9(0x160)](_0x65574d,_0x342341,_0x2a3fda=0xc8){const _0x41a753=a154_0x36a0c9;return()=>new Response(JSON[_0x41a753(0x17f)](_0x65574d),{'status':_0x2a3fda,'headers':{'Content-Type':_0x41a753(0x145),..._0x342341}});}static[a154_0x36a0c9(0x171)](_0x189527,_0x27fe56=0xc8){const _0x4f0445=a154_0x36a0c9;return()=>new Response(_0x189527,{'status':_0x27fe56,'headers':{'Content-Type':_0x4f0445(0x194)}});}static['networkError'](_0x1a445b){return()=>{throw new Error(_0x1a445b);};}[a154_0x36a0c9(0x164)](){const _0x2f6de3=a154_0x36a0c9;return this['fetchMock']=vi['fn']()[_0x2f6de3(0x191)](async(_0x58592f,_0x1acb87)=>{const _0x264f22=_0x2f6de3,_0x2704b0=this[_0x264f22(0x163)](_0x58592f,_0x1acb87);this[_0x264f22(0x15a)][_0x264f22(0x14f)](_0x2704b0);for(const _0x437da9 of this['stubs']){if(_0x437da9[_0x264f22(0x151)](_0x2704b0))return _0x437da9[_0x264f22(0x148)]=!![],_0x437da9[_0x264f22(0x15d)]++,_0x437da9[_0x264f22(0x153)](_0x2704b0);}const _0x4d1c6b=this[_0x264f22(0x18e)]['map']((_0x2f6e99,_0x156c6a)=>'\x20\x20'+(_0x156c6a+0x1)+'.\x20'+(_0x2f6e99[_0x264f22(0x17d)]??_0x264f22(0x15b)))[_0x264f22(0x14b)]('\x0a');throw new Error(_0x264f22(0x182)+_0x2704b0['method']+'\x20'+_0x2704b0[_0x264f22(0x170)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x264f22(0x17f)](_0x2704b0['body'])+'\x0a')+(_0x264f22(0x18a)+(_0x4d1c6b||_0x264f22(0x150))));}),this[_0x2f6de3(0x17b)];}[a154_0x36a0c9(0x163)](_0x456050,_0x5c320d){const _0x2ccbd1=a154_0x36a0c9,_0x3ea5cc={};if(_0x5c320d?.[_0x2ccbd1(0x183)]){if(_0x5c320d['headers']instanceof Headers)_0x5c320d[_0x2ccbd1(0x183)][_0x2ccbd1(0x14c)]((_0x18af79,_0x1c72f6)=>{const _0x32e173=_0x2ccbd1;_0x3ea5cc[_0x1c72f6[_0x32e173(0x16f)]()]=_0x18af79;});else{if(Array['isArray'](_0x5c320d['headers']))for(const [_0x14c6a8,_0x118998]of _0x5c320d['headers']){_0x3ea5cc[_0x14c6a8[_0x2ccbd1(0x16f)]()]=_0x118998;}else for(const [_0x293894,_0x1f3b7d]of Object['entries'](_0x5c320d['headers'])){_0x1f3b7d!==undefined&&(_0x3ea5cc[_0x293894[_0x2ccbd1(0x16f)]()]=_0x1f3b7d);}}}let _0x1e9a0c;if(_0x5c320d?.[_0x2ccbd1(0x18d)])try{_0x1e9a0c=JSON[_0x2ccbd1(0x14a)](_0x5c320d[_0x2ccbd1(0x18d)]);}catch{_0x1e9a0c=_0x5c320d[_0x2ccbd1(0x18d)];}return{'method':_0x5c320d?.[_0x2ccbd1(0x152)]??_0x2ccbd1(0x17c),'url':_0x456050,'headers':_0x3ea5cc,'body':_0x1e9a0c};}[a154_0x36a0c9(0x156)](_0x239aba){const _0x115f5d=a154_0x36a0c9,_0x5a0c84=this[_0x115f5d(0x18e)][_0x115f5d(0x18c)](_0x15b4c4=>!_0x15b4c4['matched']);if(_0x5a0c84[_0x115f5d(0x169)]>0x0){const _0x3ee34d=_0x5a0c84[_0x115f5d(0x155)](_0x7bdb8f=>{const _0x195b08=_0x115f5d,_0x470a7d=_0x7bdb8f[_0x195b08(0x17d)]?'\x20('+_0x7bdb8f['description']+')':'',_0x56e700=_0x7bdb8f[_0x195b08(0x187)][_0x195b08(0x188)]('\x0a')[_0x195b08(0x158)](0x2,0x5)[_0x195b08(0x14b)]('\x0a');return _0x195b08(0x195)+_0x470a7d+_0x195b08(0x157)+_0x56e700;});_0x239aba[_0x115f5d(0x178)](_0x5a0c84[_0x115f5d(0x169)]+_0x115f5d(0x172)+_0x3ee34d[_0x115f5d(0x14b)]('\x0a\x0a'));}}[a154_0x36a0c9(0x168)](){const _0x269dac=a154_0x36a0c9;return[...this[_0x269dac(0x15a)]];}[a154_0x36a0c9(0x15c)](){const _0x1dd073=a154_0x36a0c9;return this[_0x1dd073(0x15a)][this[_0x1dd073(0x15a)][_0x1dd073(0x169)]-0x1];}[a154_0x36a0c9(0x146)](_0x76c35f,_0x15949d){const _0x1ee521=a154_0x36a0c9;return this[_0x1ee521(0x15a)]['some'](_0x23fd8b=>{const _0x5cb9a4=_0x1ee521;if(_0x23fd8b['method'][_0x5cb9a4(0x176)]()!==_0x76c35f[_0x5cb9a4(0x176)]())return![];if(typeof _0x15949d==='string')return _0x23fd8b['url'][_0x5cb9a4(0x16a)](_0x15949d);return _0x15949d[_0x5cb9a4(0x184)](_0x23fd8b[_0x5cb9a4(0x170)]);});}[a154_0x36a0c9(0x197)](_0x3acd06){const _0xb7e5a4=a154_0x36a0c9;return this[_0xb7e5a4(0x18e)][_0x3acd06]?.['matchCount']??0x0;}['reset'](){const _0x426c29=a154_0x36a0c9;this[_0x426c29(0x18e)]=[],this[_0x426c29(0x15a)]=[],this['fetchMock']=null;}static[a154_0x36a0c9(0x193)](_0x528242){const _0x564d6b=a154_0x36a0c9,_0x537c4c={0xc8:'OK',0xc9:_0x564d6b(0x174),0xcc:_0x564d6b(0x147),0x190:'Bad\x20Request',0x191:'Unauthorized',0x193:_0x564d6b(0x167),0x194:_0x564d6b(0x15e),0x199:_0x564d6b(0x154),0x1a6:_0x564d6b(0x179),0x1ad:_0x564d6b(0x165),0x1f4:_0x564d6b(0x173),0x1f6:_0x564d6b(0x16c),0x1f7:'Service\x20Unavailable'};return _0x537c4c[_0x528242]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}function a154_0x582d(){const _0x4cded7=['parse','join','forEach','host','REST','push','\x20\x20(none)','matcher','method','responder','Conflict','map','verify','\x20registered\x20at:\x0a','slice','9usMbfm','requests','unnamed\x20stub','getLastRequest','matchCount','Not\x20Found','string','jsonResponseWithHeaders','2973170wHjVlw','registerWithInspector','parseRequest','createFetch','Too\x20Many\x20Requests','function','Forbidden','getRequests','length','includes','rfc9457','Bad\x20Gateway','get','9363QCGtQb','toLowerCase','url','textResponse','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Internal\x20Server\x20Error','Created','230870cBIbZr','toUpperCase','every','fail','Unprocessable\x20Entity','withBody','fetchMock','GET','description','5dvwjpE','stringify','error','pathname','No\x20stub\x20matched\x20request:\x20','headers','test','jsonResponse','260SCTiYb','stack','split','503212gJFlKU','Registered\x20stubs:\x0a','1134392iEQsnF','filter','body','stubs','1179924pDtOIm','2025555MplPWt','mockImplementation','errorResponse','getStatusText','text/plain','Unmatched\x20stub','https://api.treasuredata.com/errors/','getMatchCount','application/json','wasCalled','No\x20Content','matched','withHost'];a154_0x582d=function(){return _0x4cded7;};return a154_0x582d();}
1
+ const a154_0x3dd12e=a154_0x5670;(function(_0x52dac6,_0x2a9141){const _0x2f8503=a154_0x5670,_0x43f1ce=_0x52dac6();while(!![]){try{const _0x557b49=parseInt(_0x2f8503(0x16f))/0x1*(parseInt(_0x2f8503(0x146))/0x2)+-parseInt(_0x2f8503(0x178))/0x3+-parseInt(_0x2f8503(0x179))/0x4*(parseInt(_0x2f8503(0x14c))/0x5)+-parseInt(_0x2f8503(0x13e))/0x6*(parseInt(_0x2f8503(0x153))/0x7)+parseInt(_0x2f8503(0x161))/0x8+parseInt(_0x2f8503(0x16b))/0x9+-parseInt(_0x2f8503(0x15d))/0xa*(-parseInt(_0x2f8503(0x150))/0xb);if(_0x557b49===_0x2a9141)break;else _0x43f1ce['push'](_0x43f1ce['shift']());}catch(_0x46fe6f){_0x43f1ce['push'](_0x43f1ce['shift']());}}}(a154_0x58b3,0x53d9d));function a154_0x58b3(){const _0x30d85e=['rfc9457','registerWithInspector','requests','map','matcher','toLowerCase','application/json','verify','GET','parseRequest','method','No\x20stub\x20matched\x20request:\x20','Registered\x20stubs:\x0a','reset','stringify','95592gRbrLo','Internal\x20Server\x20Error','forEach','length','slice','some','withHost','url','911942tFJErZ','Service\x20Unavailable','parse','getStatusText','Unknown','fetchMock','3490aJMYnP','\x20registered\x20at:\x0a','responder','toUpperCase','2959pYNwvr','description','td-api','203Vbglwb','host','errorResponse','matchCount','body','networkError','getLastRequest','headers','\x20\x20(none)','push','3020tynJnJ','stubs','pathname','withBody','4828400nOdpbf','join','matched','simple','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Request\x20body:\x20','jsonResponse','Too\x20Many\x20Requests','error','Unmatched\x20stub','1608102jxcNfd','test','REST','register','1ZYPepV','every','textResponse','Bad\x20Request','string','Created','entries','function','mockImplementation','446706NqcEVw','2092fmcDlG','Unauthorized'];a154_0x58b3=function(){return _0x30d85e;};return a154_0x58b3();}import{vi}from'vitest';export class HTTPMockRegistry{[a154_0x3dd12e(0x15e)]=[];['requests']=[];[a154_0x3dd12e(0x14b)]=null;[a154_0x3dd12e(0x16d)](_0x519306,_0x4f5b94){return _0x268a1f=>{const _0x31afdc=a154_0x5670;if(_0x268a1f[_0x31afdc(0x139)][_0x31afdc(0x14f)]()!==_0x519306[_0x31afdc(0x14f)]())return![];const _0x99b325=new URL(_0x268a1f[_0x31afdc(0x145)]);if(typeof _0x4f5b94===_0x31afdc(0x173))return _0x99b325['pathname']===_0x4f5b94||_0x99b325[_0x31afdc(0x15f)]['includes'](_0x4f5b94);return _0x4f5b94[_0x31afdc(0x16c)](_0x99b325[_0x31afdc(0x15f)]);};}['withQuery'](_0x1c851c,_0x922d46){return _0x36b6b8=>{const _0x5de528=a154_0x5670;if(!_0x1c851c(_0x36b6b8))return![];const _0x5cb0f9=new URL(_0x36b6b8[_0x5de528(0x145)]);return Object[_0x5de528(0x175)](_0x922d46)[_0x5de528(0x170)](([_0x1e7ea8,_0x332476])=>_0x5cb0f9['searchParams']['get'](_0x1e7ea8)===_0x332476);};}[a154_0x3dd12e(0x160)](_0x46bee3,_0x42712e){return _0x159378=>{const _0x25eb20=a154_0x5670;if(!_0x46bee3(_0x159378))return![];if(typeof _0x42712e===_0x25eb20(0x176))return _0x42712e(_0x159378['body']);return JSON[_0x25eb20(0x13d)](_0x159378[_0x25eb20(0x157)])===JSON['stringify'](_0x42712e);};}[a154_0x3dd12e(0x144)](_0x117a9a,_0x339be3){return _0xd0bd8c=>{const _0x565d77=a154_0x5670;if(!_0x117a9a(_0xd0bd8c))return![];const _0x24b318=new URL(_0xd0bd8c[_0x565d77(0x145)]);return _0x24b318[_0x565d77(0x154)]===_0x339be3;};}[a154_0x3dd12e(0x16e)](_0x5970bd,_0x348154,_0x5ba5d1){const _0x2d879c=a154_0x3dd12e;this[_0x2d879c(0x15e)]['push']({'matcher':_0x5970bd,'responder':_0x348154,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x5ba5d1?.[_0x2d879c(0x151)]});}[a154_0x3dd12e(0x17c)](_0x48ee07,_0x1cc59d,_0x356bbd){const _0x21bd07=a154_0x3dd12e,_0x3cdc9e=_0x16f658=>{const _0x2afcdf=a154_0x5670;return _0x356bbd(_0x16f658[_0x2afcdf(0x157)],_0x16f658),_0x1cc59d(_0x16f658);};this[_0x21bd07(0x16e)](_0x48ee07,_0x3cdc9e);}static[a154_0x3dd12e(0x167)](_0x9e7b3a,_0x4aa247=0xc8){const _0x4dec4b=a154_0x3dd12e;return()=>new Response(JSON['stringify'](_0x9e7b3a),{'status':_0x4aa247,'headers':{'Content-Type':_0x4dec4b(0x135)}});}static[a154_0x3dd12e(0x155)](_0x364257,_0x4eda13,_0x24f02e=a154_0x3dd12e(0x164)){return()=>{const _0x2b358a=a154_0x5670;let _0x3dc52c;switch(_0x24f02e){case _0x2b358a(0x152):_0x3dc52c={'errors':{'error':_0x4eda13,'message':_0x4eda13,'severity':_0x2b358a(0x169),'status_code':_0x364257}};break;case _0x2b358a(0x17b):_0x3dc52c={'type':'https://api.treasuredata.com/errors/'+_0x364257,'title':HTTPMockRegistry['getStatusText'](_0x364257),'status':_0x364257,'detail':_0x4eda13};break;default:_0x3dc52c={'error':_0x4eda13};}return new Response(JSON[_0x2b358a(0x13d)](_0x3dc52c),{'status':_0x364257,'headers':{'Content-Type':_0x2b358a(0x135)}});};}static['jsonResponseWithHeaders'](_0x4aa34a,_0x271ab4,_0x412b92=0xc8){const _0x3bd8ec=a154_0x3dd12e;return()=>new Response(JSON[_0x3bd8ec(0x13d)](_0x4aa34a),{'status':_0x412b92,'headers':{'Content-Type':_0x3bd8ec(0x135),..._0x271ab4}});}static[a154_0x3dd12e(0x171)](_0x153e07,_0x414f53=0xc8){return()=>new Response(_0x153e07,{'status':_0x414f53,'headers':{'Content-Type':'text/plain'}});}static[a154_0x3dd12e(0x158)](_0x1d5acb){return()=>{throw new Error(_0x1d5acb);};}['createFetch'](){const _0x24e7eb=a154_0x3dd12e;return this[_0x24e7eb(0x14b)]=vi['fn']()[_0x24e7eb(0x177)](async(_0x109a26,_0x21fac5)=>{const _0x5ee600=_0x24e7eb,_0x34c722=this[_0x5ee600(0x138)](_0x109a26,_0x21fac5);this[_0x5ee600(0x131)][_0x5ee600(0x15c)](_0x34c722);for(const _0x523d73 of this[_0x5ee600(0x15e)]){if(_0x523d73[_0x5ee600(0x133)](_0x34c722))return _0x523d73[_0x5ee600(0x163)]=!![],_0x523d73[_0x5ee600(0x156)]++,_0x523d73[_0x5ee600(0x14e)](_0x34c722);}const _0x1719d2=this[_0x5ee600(0x15e)][_0x5ee600(0x132)]((_0x5dc677,_0xa2ab11)=>'\x20\x20'+(_0xa2ab11+0x1)+'.\x20'+(_0x5dc677[_0x5ee600(0x151)]??'unnamed\x20stub'))[_0x5ee600(0x162)]('\x0a');throw new Error(_0x5ee600(0x13a)+_0x34c722[_0x5ee600(0x139)]+'\x20'+_0x34c722[_0x5ee600(0x145)]+'\x0a'+(_0x5ee600(0x166)+JSON[_0x5ee600(0x13d)](_0x34c722[_0x5ee600(0x157)])+'\x0a')+(_0x5ee600(0x13b)+(_0x1719d2||_0x5ee600(0x15b))));}),this[_0x24e7eb(0x14b)];}[a154_0x3dd12e(0x138)](_0xb54e36,_0x13c970){const _0x2d7200=a154_0x3dd12e,_0x23bc62={};if(_0x13c970?.[_0x2d7200(0x15a)]){if(_0x13c970[_0x2d7200(0x15a)]instanceof Headers)_0x13c970[_0x2d7200(0x15a)][_0x2d7200(0x140)]((_0x58d68f,_0x2ec35a)=>{const _0x4ed5ad=_0x2d7200;_0x23bc62[_0x2ec35a[_0x4ed5ad(0x134)]()]=_0x58d68f;});else{if(Array['isArray'](_0x13c970['headers']))for(const [_0x21a397,_0x3f8fb9]of _0x13c970['headers']){_0x23bc62[_0x21a397['toLowerCase']()]=_0x3f8fb9;}else for(const [_0x26da31,_0x9fd0ec]of Object[_0x2d7200(0x175)](_0x13c970[_0x2d7200(0x15a)])){_0x9fd0ec!==undefined&&(_0x23bc62[_0x26da31[_0x2d7200(0x134)]()]=_0x9fd0ec);}}}let _0x46a2ca;if(_0x13c970?.[_0x2d7200(0x157)])try{_0x46a2ca=JSON[_0x2d7200(0x148)](_0x13c970[_0x2d7200(0x157)]);}catch{_0x46a2ca=_0x13c970['body'];}return{'method':_0x13c970?.[_0x2d7200(0x139)]??_0x2d7200(0x137),'url':_0xb54e36,'headers':_0x23bc62,'body':_0x46a2ca};}[a154_0x3dd12e(0x136)](_0x556861){const _0x379cba=a154_0x3dd12e,_0x401ce6=this[_0x379cba(0x15e)]['filter'](_0x8d04c7=>!_0x8d04c7['matched']);if(_0x401ce6[_0x379cba(0x141)]>0x0){const _0x6b9995=_0x401ce6[_0x379cba(0x132)](_0x40120f=>{const _0x14bc46=_0x379cba,_0x15ec78=_0x40120f[_0x14bc46(0x151)]?'\x20('+_0x40120f['description']+')':'',_0x2f2886=_0x40120f['stack']['split']('\x0a')[_0x14bc46(0x142)](0x2,0x5)[_0x14bc46(0x162)]('\x0a');return _0x14bc46(0x16a)+_0x15ec78+_0x14bc46(0x14d)+_0x2f2886;});_0x556861['fail'](_0x401ce6[_0x379cba(0x141)]+_0x379cba(0x165)+_0x6b9995[_0x379cba(0x162)]('\x0a\x0a'));}}['getRequests'](){return[...this['requests']];}[a154_0x3dd12e(0x159)](){const _0x1f8a8c=a154_0x3dd12e;return this[_0x1f8a8c(0x131)][this[_0x1f8a8c(0x131)][_0x1f8a8c(0x141)]-0x1];}['wasCalled'](_0x364dc6,_0x2858af){const _0x490356=a154_0x3dd12e;return this[_0x490356(0x131)][_0x490356(0x143)](_0x1bf92a=>{const _0x43c1d2=_0x490356;if(_0x1bf92a[_0x43c1d2(0x139)][_0x43c1d2(0x14f)]()!==_0x364dc6[_0x43c1d2(0x14f)]())return![];if(typeof _0x2858af==='string')return _0x1bf92a[_0x43c1d2(0x145)]['includes'](_0x2858af);return _0x2858af[_0x43c1d2(0x16c)](_0x1bf92a[_0x43c1d2(0x145)]);});}['getMatchCount'](_0x5b1652){const _0x31a174=a154_0x3dd12e;return this[_0x31a174(0x15e)][_0x5b1652]?.[_0x31a174(0x156)]??0x0;}[a154_0x3dd12e(0x13c)](){const _0x3cd763=a154_0x3dd12e;this[_0x3cd763(0x15e)]=[],this[_0x3cd763(0x131)]=[],this[_0x3cd763(0x14b)]=null;}static[a154_0x3dd12e(0x149)](_0x253903){const _0x207e6f=a154_0x3dd12e,_0x4c3c0d={0xc8:'OK',0xc9:_0x207e6f(0x174),0xcc:'No\x20Content',0x190:_0x207e6f(0x172),0x191:_0x207e6f(0x17a),0x193:'Forbidden',0x194:'Not\x20Found',0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x207e6f(0x168),0x1f4:_0x207e6f(0x13f),0x1f6:'Bad\x20Gateway',0x1f7:_0x207e6f(0x147)};return _0x4c3c0d[_0x253903]??_0x207e6f(0x14a);}}function a154_0x5670(_0x209005,_0x185828){_0x209005=_0x209005-0x131;const _0x58b3cc=a154_0x58b3();let _0x567068=_0x58b3cc[_0x209005];return _0x567068;}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a155_0x1a0b(_0x50a52e,_0x788e5c){_0x50a52e=_0x50a52e-0x1a9;var _0x1f525f=a155_0x1f52();var _0x1a0b5f=_0x1f525f[_0x50a52e];return _0x1a0b5f;}(function(_0x5dafcd,_0xfdc310){var _0x3da960=a155_0x1a0b,_0x12052a=_0x5dafcd();while(!![]){try{var _0x3fb7b0=parseInt(_0x3da960(0x1b0))/0x1+-parseInt(_0x3da960(0x1ac))/0x2+-parseInt(_0x3da960(0x1aa))/0x3*(-parseInt(_0x3da960(0x1ab))/0x4)+parseInt(_0x3da960(0x1af))/0x5+parseInt(_0x3da960(0x1b1))/0x6+-parseInt(_0x3da960(0x1a9))/0x7+-parseInt(_0x3da960(0x1ae))/0x8*(parseInt(_0x3da960(0x1ad))/0x9);if(_0x3fb7b0===_0xfdc310)break;else _0x12052a['push'](_0x12052a['shift']());}catch(_0x288957){_0x12052a['push'](_0x12052a['shift']());}}}(a155_0x1f52,0xeca6f));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a155_0x1f52(){var _0x4a5303=['8576095WwBagb','479703fqJbLl','8975934GsyYfr','1861209CBOWxh','657iPyNJm','4064AjqpML','3837004vrHUCF','82377slguJE','664DJNNnx'];a155_0x1f52=function(){return _0x4a5303;};return a155_0x1f52();}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x20f235,_0x5e1ac2){var _0x332faa=a155_0x5c41,_0x38e5c5=_0x20f235();while(!![]){try{var _0x2084e8=-parseInt(_0x332faa(0x126))/0x1*(-parseInt(_0x332faa(0x128))/0x2)+parseInt(_0x332faa(0x127))/0x3+parseInt(_0x332faa(0x125))/0x4*(-parseInt(_0x332faa(0x123))/0x5)+-parseInt(_0x332faa(0x12c))/0x6+-parseInt(_0x332faa(0x12a))/0x7+parseInt(_0x332faa(0x129))/0x8*(-parseInt(_0x332faa(0x124))/0x9)+parseInt(_0x332faa(0x12d))/0xa*(parseInt(_0x332faa(0x12b))/0xb);if(_0x2084e8===_0x5e1ac2)break;else _0x38e5c5['push'](_0x38e5c5['shift']());}catch(_0x128d09){_0x38e5c5['push'](_0x38e5c5['shift']());}}}(a155_0x4808,0xd6216));function a155_0x5c41(_0x1d675b,_0x2412ba){_0x1d675b=_0x1d675b-0x123;var _0x4808b5=a155_0x4808();var _0x5c4138=_0x4808b5[_0x1d675b];return _0x5c4138;}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 a155_0x4808(){var _0x188b1c=['34066xyjItn','1393239laFjvc','2GMoukW','6288184NUcdeT','1211553WCprxt','4191UJrVdA','9423564uTJiUN','108210wYIycL','5fXHLPF','18PrGAKn','1713932yImFaL'];a155_0x4808=function(){return _0x188b1c;};return a155_0x4808();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x4188c9,_0x462183){const _0x484625=a156_0x2780,_0x52b1f4=_0x4188c9();while(!![]){try{const _0x53d7b4=-parseInt(_0x484625(0x69))/0x1*(parseInt(_0x484625(0x66))/0x2)+parseInt(_0x484625(0x73))/0x3*(parseInt(_0x484625(0x67))/0x4)+parseInt(_0x484625(0x6c))/0x5+parseInt(_0x484625(0x74))/0x6*(-parseInt(_0x484625(0x6e))/0x7)+-parseInt(_0x484625(0x68))/0x8+-parseInt(_0x484625(0x70))/0x9+parseInt(_0x484625(0x6a))/0xa*(parseInt(_0x484625(0x6d))/0xb);if(_0x53d7b4===_0x462183)break;else _0x52b1f4['push'](_0x52b1f4['shift']());}catch(_0x335324){_0x52b1f4['push'](_0x52b1f4['shift']());}}}(a156_0x1000,0x4220d));function a156_0x1000(){const _0x4dba40=['map','75790XvXMEx','9143893LCzvcI','2779feDYeO','slice','214182SDNTZZ','all','length','153165ajNGKU','4962qnJAqe','push','282794vGZuaO','8ocfWuZ','1473248EMwzQd','1gxTSTd','10DntJQu'];a156_0x1000=function(){return _0x4dba40;};return a156_0x1000();}function a156_0x2780(_0xfabfd7,_0x408a51){_0xfabfd7=_0xfabfd7-0x66;const _0x1000b9=a156_0x1000();let _0x2780f4=_0x1000b9[_0xfabfd7];return _0x2780f4;}export async function batchAsync(_0xb6beb7,_0x15e001,_0x3da703=0xa){const _0x2cbec4=a156_0x2780,_0x521753=[];for(let _0x232e2e=0x0;_0x232e2e<_0xb6beb7[_0x2cbec4(0x72)];_0x232e2e+=_0x3da703){const _0x431d29=_0xb6beb7[_0x2cbec4(0x6f)](_0x232e2e,_0x232e2e+_0x3da703),_0x1f834d=await Promise[_0x2cbec4(0x71)](_0x431d29[_0x2cbec4(0x6b)](_0x15e001));_0x521753[_0x2cbec4(0x75)](..._0x1f834d);}return _0x521753;}
1
+ (function(_0x1bf7ee,_0x48c45f){const _0xf56ebb=a156_0x1f40,_0x5360e9=_0x1bf7ee();while(!![]){try{const _0x13c0b1=-parseInt(_0xf56ebb(0x19f))/0x1*(-parseInt(_0xf56ebb(0x1a0))/0x2)+-parseInt(_0xf56ebb(0x19a))/0x3+parseInt(_0xf56ebb(0x1a6))/0x4*(parseInt(_0xf56ebb(0x1a4))/0x5)+-parseInt(_0xf56ebb(0x19d))/0x6*(-parseInt(_0xf56ebb(0x19b))/0x7)+parseInt(_0xf56ebb(0x19c))/0x8*(-parseInt(_0xf56ebb(0x19e))/0x9)+parseInt(_0xf56ebb(0x1a1))/0xa*(-parseInt(_0xf56ebb(0x1a5))/0xb)+parseInt(_0xf56ebb(0x197))/0xc;if(_0x13c0b1===_0x48c45f)break;else _0x5360e9['push'](_0x5360e9['shift']());}catch(_0x284436){_0x5360e9['push'](_0x5360e9['shift']());}}}(a156_0x1f4b,0x8fa7c));export async function batchAsync(_0x25a8ee,_0x1473ce,_0x120357=0xa){const _0x49852c=a156_0x1f40,_0x117664=[];for(let _0x7cb602=0x0;_0x7cb602<_0x25a8ee[_0x49852c(0x199)];_0x7cb602+=_0x120357){const _0x4b333e=_0x25a8ee['slice'](_0x7cb602,_0x7cb602+_0x120357),_0x3babac=await Promise[_0x49852c(0x1a3)](_0x4b333e[_0x49852c(0x1a2)](_0x1473ce));_0x117664[_0x49852c(0x198)](..._0x3babac);}return _0x117664;}function a156_0x1f40(_0x1f3be6,_0x14d784){_0x1f3be6=_0x1f3be6-0x197;const _0x1f4bc7=a156_0x1f4b();let _0x1f4035=_0x1f4bc7[_0x1f3be6];return _0x1f4035;}function a156_0x1f4b(){const _0x48e8ac=['756655HrIkuj','22XalGQz','4rIJPEo','11186604DFcrrN','push','length','2371284HfmvGP','33740LHtdxn','9255272wmQjud','906nAdtjh','9ucCNLJ','19lrLBDv','112246cYhKKn','1709780ZlRpMb','map','all'];a156_0x1f4b=function(){return _0x48e8ac;};return a156_0x1f4b();}
@@ -1 +1 @@
1
- (function(_0x283fbb,_0x2e74ef){const _0x57b1f0=a157_0x1001,_0x4b0176=_0x283fbb();while(!![]){try{const _0x4998ad=-parseInt(_0x57b1f0(0x1f9))/0x1*(-parseInt(_0x57b1f0(0x1fb))/0x2)+-parseInt(_0x57b1f0(0x20c))/0x3+parseInt(_0x57b1f0(0x1f8))/0x4+-parseInt(_0x57b1f0(0x20d))/0x5+parseInt(_0x57b1f0(0x202))/0x6+-parseInt(_0x57b1f0(0x208))/0x7+-parseInt(_0x57b1f0(0x20b))/0x8;if(_0x4998ad===_0x2e74ef)break;else _0x4b0176['push'](_0x4b0176['shift']());}catch(_0x17200d){_0x4b0176['push'](_0x4b0176['shift']());}}}(a157_0x33a7,0x5a988));import*as a157_0x427cb1 from'chalk';const Chalk=a157_0x427cb1['Chalk'];export function shouldUseColor(_0x26c914={}){const _0x5a392f=a157_0x1001;if(_0x26c914[_0x5a392f(0x1f4)]===!![])return![];if(_0x26c914['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5a392f(0x1fa)][_0x5a392f(0x1fc)]??![];}export function getChalk(_0x12efeb={}){if(shouldUseColor(_0x12efeb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x277848,_0x455a92={}){const _0x208734=a157_0x1001;return getChalk(_0x455a92)[_0x208734(0x1fe)](_0x277848);}export function colorHeader(_0x451ff2,_0x54188c={}){const _0x97c6c5=a157_0x1001;return getChalk(_0x54188c)[_0x97c6c5(0x205)](_0x451ff2);}export function colorType(_0x45809b,_0x5bd4b4={}){const _0x24f223=a157_0x1001;return getChalk(_0x5bd4b4)[_0x24f223(0x1fe)](_0x45809b);}export function colorJSONKey(_0x40c705,_0x204f7a={}){const _0x198809=a157_0x1001;return getChalk(_0x204f7a)[_0x198809(0x201)](_0x40c705);}function a157_0x33a7(){const _0x2e66bf=['stringify','entries','1789536VuLNQd','396177dBiVqY','1303770BdwiOl','null','noColor','number','boolean','repeat','2632404JUtECf','3322tPUilo','stdout','130VyKrsK','isTTY','object','dim','length','join','blue','2562462cEPTDq','string','isArray','cyan','map','yellow','2194661uwSuzD'];a157_0x33a7=function(){return _0x2e66bf;};return a157_0x33a7();}export function colorJSONString(_0x53f76d,_0x226f2e={}){return getChalk(_0x226f2e)['green'](_0x53f76d);}export function colorJSONNumber(_0x99c9c,_0x37c64f={}){const _0x91f8d9=a157_0x1001;return getChalk(_0x37c64f)[_0x91f8d9(0x205)](_0x99c9c);}export function colorJSONBoolean(_0x2b1ad8,_0x38957b={}){const _0x24c04c=a157_0x1001;return getChalk(_0x38957b)[_0x24c04c(0x207)](_0x2b1ad8);}export function colorJSONNull(_0x3ce1a4,_0x564da0={}){const _0x48589d=a157_0x1001;return getChalk(_0x564da0)[_0x48589d(0x1fe)](_0x3ce1a4);}function a157_0x1001(_0x3ba45d,_0x2d2c32){_0x3ba45d=_0x3ba45d-0x1f3;const _0x33a70a=a157_0x33a7();let _0x100175=_0x33a70a[_0x3ba45d];return _0x100175;}export function colorizeJSONCompact(_0x4b9d78,_0x3b0e9f={}){const _0x4444a6=a157_0x1001;if(!shouldUseColor(_0x3b0e9f))return JSON[_0x4444a6(0x209)](_0x4b9d78);if(_0x4b9d78===null)return colorJSONNull('null',_0x3b0e9f);if(typeof _0x4b9d78==='boolean')return colorJSONBoolean(String(_0x4b9d78),_0x3b0e9f);if(typeof _0x4b9d78===_0x4444a6(0x1f5))return colorJSONNumber(String(_0x4b9d78),_0x3b0e9f);if(typeof _0x4b9d78===_0x4444a6(0x203))return colorJSONString(JSON[_0x4444a6(0x209)](_0x4b9d78),_0x3b0e9f);if(Array[_0x4444a6(0x204)](_0x4b9d78)){if(_0x4b9d78['length']===0x0)return'[]';const _0x284096=_0x4b9d78[_0x4444a6(0x206)](_0x158c86=>colorizeJSONCompact(_0x158c86,_0x3b0e9f));return'['+_0x284096[_0x4444a6(0x200)](',')+']';}if(typeof _0x4b9d78===_0x4444a6(0x1fd)){const _0x57110e=Object['entries'](_0x4b9d78);if(_0x57110e[_0x4444a6(0x1ff)]===0x0)return'{}';const _0xfce377=_0x57110e['map'](([_0x19a29b,_0x4ecf77])=>{const _0x1c6d46=colorJSONKey(JSON['stringify'](_0x19a29b),_0x3b0e9f),_0x4a21aa=colorizeJSONCompact(_0x4ecf77,_0x3b0e9f);return _0x1c6d46+':'+_0x4a21aa;});return'{'+_0xfce377['join'](',')+'}';}return String(_0x4b9d78);}export function colorizeJSON(_0x4c6008,_0x2b338a={},_0x3de56e=0x0){const _0x58290c=a157_0x1001;if(!shouldUseColor(_0x2b338a))return JSON[_0x58290c(0x209)](_0x4c6008,null,0x2);const _0x47d831='\x20'[_0x58290c(0x1f7)](_0x3de56e),_0x1a8c5b=_0x3de56e+0x2;if(_0x4c6008===null)return colorJSONNull(_0x58290c(0x1f3),_0x2b338a);if(typeof _0x4c6008===_0x58290c(0x1f6))return colorJSONBoolean(String(_0x4c6008),_0x2b338a);if(typeof _0x4c6008===_0x58290c(0x1f5))return colorJSONNumber(String(_0x4c6008),_0x2b338a);if(typeof _0x4c6008===_0x58290c(0x203))return colorJSONString(JSON[_0x58290c(0x209)](_0x4c6008),_0x2b338a);if(Array[_0x58290c(0x204)](_0x4c6008)){if(_0x4c6008[_0x58290c(0x1ff)]===0x0)return'[]';const _0x3f161f=_0x4c6008[_0x58290c(0x206)](_0x4289a8=>{const _0x5b0a95=colorizeJSON(_0x4289a8,_0x2b338a,_0x1a8c5b);return''+'\x20'['repeat'](_0x1a8c5b)+_0x5b0a95;});return'[\x0a'+_0x3f161f[_0x58290c(0x200)](',\x0a')+('\x0a'+_0x47d831+']');}if(typeof _0x4c6008==='object'){const _0x52a108=Object[_0x58290c(0x20a)](_0x4c6008);if(_0x52a108['length']===0x0)return'{}';const _0x414043=_0x52a108[_0x58290c(0x206)](([_0x374107,_0x3fc5c4])=>{const _0x5316f4=_0x58290c,_0x1bc313=colorJSONKey(JSON[_0x5316f4(0x209)](_0x374107),_0x2b338a),_0x1cf129=colorizeJSON(_0x3fc5c4,_0x2b338a,_0x1a8c5b);return''+'\x20'[_0x5316f4(0x1f7)](_0x1a8c5b)+_0x1bc313+':\x20'+_0x1cf129;});return'{\x0a'+_0x414043[_0x58290c(0x200)](',\x0a')+('\x0a'+_0x47d831+'}');}return String(_0x4c6008);}
1
+ const a157_0x1fb38d=a157_0x1f97;(function(_0xe16eed,_0x50f4c5){const _0x4e0015=a157_0x1f97,_0x13edd8=_0xe16eed();while(!![]){try{const _0x2f0d73=-parseInt(_0x4e0015(0x1f6))/0x1*(-parseInt(_0x4e0015(0x206))/0x2)+parseInt(_0x4e0015(0x208))/0x3+parseInt(_0x4e0015(0x1fd))/0x4+parseInt(_0x4e0015(0x1fe))/0x5+parseInt(_0x4e0015(0x1f7))/0x6*(-parseInt(_0x4e0015(0x20b))/0x7)+-parseInt(_0x4e0015(0x1f2))/0x8+parseInt(_0x4e0015(0x1fc))/0x9*(-parseInt(_0x4e0015(0x203))/0xa);if(_0x2f0d73===_0x50f4c5)break;else _0x13edd8['push'](_0x13edd8['shift']());}catch(_0x3dbfdf){_0x13edd8['push'](_0x13edd8['shift']());}}}(a157_0x20c8,0x22e7e));import*as a157_0x3122a6 from'chalk';const Chalk=a157_0x3122a6[a157_0x1fb38d(0x1fa)];export function shouldUseColor(_0x2f1004={}){const _0x2ec097=a157_0x1fb38d;if(_0x2f1004[_0x2ec097(0x202)]===!![])return![];if(_0x2f1004[_0x2ec097(0x1f5)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2ec097(0x1f1)][_0x2ec097(0x200)]??![];}export function getChalk(_0x5bad90={}){if(shouldUseColor(_0x5bad90))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x191bc7,_0x2e2bb0={}){const _0x218fd1=a157_0x1fb38d;return getChalk(_0x2e2bb0)[_0x218fd1(0x1f9)](_0x191bc7);}export function colorHeader(_0x3e15b6,_0x26f6d7={}){const _0x1fb41f=a157_0x1fb38d;return getChalk(_0x26f6d7)[_0x1fb41f(0x20c)](_0x3e15b6);}function a157_0x20c8(){const _0x4536eb=['stdout','564752LkwDLP','boolean','entries','color','72307TdRXvi','392298HnlqEw','repeat','dim','Chalk','join','2799yBIxLZ','397568NPAEIT','778450yesJdy','green','isTTY','null','noColor','1550hTllLC','number','map','2jsGDKs','yellow','195450PumVyk','isArray','stringify','14qVWkwV','cyan','blue','object','string','length'];a157_0x20c8=function(){return _0x4536eb;};return a157_0x20c8();}function a157_0x1f97(_0x9a3a4a,_0x4fb96a){_0x9a3a4a=_0x9a3a4a-0x1ed;const _0x20c85c=a157_0x20c8();let _0x1f9763=_0x20c85c[_0x9a3a4a];return _0x1f9763;}export function colorType(_0x59778b,_0x4b9357={}){const _0x295049=a157_0x1fb38d;return getChalk(_0x4b9357)[_0x295049(0x1f9)](_0x59778b);}export function colorJSONKey(_0xd408c4,_0x4aaa12={}){const _0x25b087=a157_0x1fb38d;return getChalk(_0x4aaa12)[_0x25b087(0x1ed)](_0xd408c4);}export function colorJSONString(_0x534562,_0x13b8f7={}){const _0x47876e=a157_0x1fb38d;return getChalk(_0x13b8f7)[_0x47876e(0x1ff)](_0x534562);}export function colorJSONNumber(_0x3cc1d7,_0x1e9c9d={}){const _0x365b83=a157_0x1fb38d;return getChalk(_0x1e9c9d)[_0x365b83(0x20c)](_0x3cc1d7);}export function colorJSONBoolean(_0x137551,_0x212774={}){const _0x5bfeb9=a157_0x1fb38d;return getChalk(_0x212774)[_0x5bfeb9(0x207)](_0x137551);}export function colorJSONNull(_0x4d4f55,_0x58ab44={}){return getChalk(_0x58ab44)['dim'](_0x4d4f55);}export function colorizeJSONCompact(_0x2e06b6,_0x5bdf5d={}){const _0xb9fd2f=a157_0x1fb38d;if(!shouldUseColor(_0x5bdf5d))return JSON[_0xb9fd2f(0x20a)](_0x2e06b6);if(_0x2e06b6===null)return colorJSONNull(_0xb9fd2f(0x201),_0x5bdf5d);if(typeof _0x2e06b6==='boolean')return colorJSONBoolean(String(_0x2e06b6),_0x5bdf5d);if(typeof _0x2e06b6===_0xb9fd2f(0x204))return colorJSONNumber(String(_0x2e06b6),_0x5bdf5d);if(typeof _0x2e06b6===_0xb9fd2f(0x1ef))return colorJSONString(JSON[_0xb9fd2f(0x20a)](_0x2e06b6),_0x5bdf5d);if(Array[_0xb9fd2f(0x209)](_0x2e06b6)){if(_0x2e06b6[_0xb9fd2f(0x1f0)]===0x0)return'[]';const _0x3a19b4=_0x2e06b6['map'](_0x64d278=>colorizeJSONCompact(_0x64d278,_0x5bdf5d));return'['+_0x3a19b4['join'](',')+']';}if(typeof _0x2e06b6===_0xb9fd2f(0x1ee)){const _0x15ed57=Object[_0xb9fd2f(0x1f4)](_0x2e06b6);if(_0x15ed57[_0xb9fd2f(0x1f0)]===0x0)return'{}';const _0x17c5e1=_0x15ed57[_0xb9fd2f(0x205)](([_0x568fbe,_0x2359cf])=>{const _0x89816a=_0xb9fd2f,_0x54b8e=colorJSONKey(JSON[_0x89816a(0x20a)](_0x568fbe),_0x5bdf5d),_0x3f2dbc=colorizeJSONCompact(_0x2359cf,_0x5bdf5d);return _0x54b8e+':'+_0x3f2dbc;});return'{'+_0x17c5e1[_0xb9fd2f(0x1fb)](',')+'}';}return String(_0x2e06b6);}export function colorizeJSON(_0x4582c6,_0x214a8d={},_0x293a84=0x0){const _0x599676=a157_0x1fb38d;if(!shouldUseColor(_0x214a8d))return JSON['stringify'](_0x4582c6,null,0x2);const _0x26d7c2='\x20'[_0x599676(0x1f8)](_0x293a84),_0x40d79d=_0x293a84+0x2;if(_0x4582c6===null)return colorJSONNull('null',_0x214a8d);if(typeof _0x4582c6===_0x599676(0x1f3))return colorJSONBoolean(String(_0x4582c6),_0x214a8d);if(typeof _0x4582c6==='number')return colorJSONNumber(String(_0x4582c6),_0x214a8d);if(typeof _0x4582c6==='string')return colorJSONString(JSON[_0x599676(0x20a)](_0x4582c6),_0x214a8d);if(Array['isArray'](_0x4582c6)){if(_0x4582c6[_0x599676(0x1f0)]===0x0)return'[]';const _0x3693b9=_0x4582c6[_0x599676(0x205)](_0x323d4a=>{const _0x26e2ca=_0x599676,_0x168635=colorizeJSON(_0x323d4a,_0x214a8d,_0x40d79d);return''+'\x20'[_0x26e2ca(0x1f8)](_0x40d79d)+_0x168635;});return'[\x0a'+_0x3693b9['join'](',\x0a')+('\x0a'+_0x26d7c2+']');}if(typeof _0x4582c6===_0x599676(0x1ee)){const _0xde7f1d=Object[_0x599676(0x1f4)](_0x4582c6);if(_0xde7f1d['length']===0x0)return'{}';const _0x8f68c6=_0xde7f1d[_0x599676(0x205)](([_0x2c0ee0,_0x30af35])=>{const _0x4c4176=_0x599676,_0x4984e4=colorJSONKey(JSON[_0x4c4176(0x20a)](_0x2c0ee0),_0x214a8d),_0x4f4f48=colorizeJSON(_0x30af35,_0x214a8d,_0x40d79d);return''+'\x20'['repeat'](_0x40d79d)+_0x4984e4+':\x20'+_0x4f4f48;});return'{\x0a'+_0x8f68c6[_0x599676(0x1fb)](',\x0a')+('\x0a'+_0x26d7c2+'}');}return String(_0x4582c6);}
@@ -1 +1 @@
1
- (function(_0x1df40d,_0x2e8929){const _0xeb4e7d=a158_0x2a46,_0x51b4e5=_0x1df40d();while(!![]){try{const _0xa91263=parseInt(_0xeb4e7d(0x188))/0x1+parseInt(_0xeb4e7d(0x174))/0x2+parseInt(_0xeb4e7d(0x184))/0x3+parseInt(_0xeb4e7d(0x18d))/0x4+-parseInt(_0xeb4e7d(0x176))/0x5+parseInt(_0xeb4e7d(0x178))/0x6*(parseInt(_0xeb4e7d(0x16f))/0x7)+-parseInt(_0xeb4e7d(0x18c))/0x8;if(_0xa91263===_0x2e8929)break;else _0x51b4e5['push'](_0x51b4e5['shift']());}catch(_0x4d87c8){_0x51b4e5['push'](_0x51b4e5['shift']());}}}(a158_0x56dc,0x1e2d9));import a158_0x1d1c45 from'chalk';export function generateDiff(_0x1787b9,_0x31f1ee){const _0x5b41b6=a158_0x2a46,_0x2ed983=_0x1787b9['split']('\x0a'),_0xb7ceb4=_0x31f1ee['split']('\x0a'),_0x212646=[],_0x51f5f3=computeLCS(_0x2ed983,_0xb7ceb4);let _0x49df41=0x0,_0x18096c=0x0,_0x3c1b8a=0x0;while(_0x49df41<_0x2ed983[_0x5b41b6(0x187)]||_0x18096c<_0xb7ceb4['length']){if(_0x3c1b8a<_0x51f5f3[_0x5b41b6(0x187)]&&_0x49df41<_0x2ed983[_0x5b41b6(0x187)]&&_0x2ed983[_0x49df41]===_0x51f5f3[_0x3c1b8a])_0x18096c<_0xb7ceb4[_0x5b41b6(0x187)]&&_0xb7ceb4[_0x18096c]===_0x51f5f3[_0x3c1b8a]?(_0x212646[_0x5b41b6(0x185)]({'type':'unchanged','content':_0x2ed983[_0x49df41]}),_0x49df41++,_0x18096c++,_0x3c1b8a++):(_0x212646[_0x5b41b6(0x185)]({'type':'added','content':_0xb7ceb4[_0x18096c]}),_0x18096c++);else{if(_0x3c1b8a<_0x51f5f3[_0x5b41b6(0x187)]&&_0x18096c<_0xb7ceb4[_0x5b41b6(0x187)]&&_0xb7ceb4[_0x18096c]===_0x51f5f3[_0x3c1b8a])_0x212646[_0x5b41b6(0x185)]({'type':_0x5b41b6(0x182),'content':_0x2ed983[_0x49df41]}),_0x49df41++;else{if(_0x49df41<_0x2ed983[_0x5b41b6(0x187)]&&(_0x3c1b8a>=_0x51f5f3['length']||_0x2ed983[_0x49df41]!==_0x51f5f3[_0x3c1b8a]))_0x212646['push']({'type':_0x5b41b6(0x182),'content':_0x2ed983[_0x49df41]}),_0x49df41++;else _0x18096c<_0xb7ceb4[_0x5b41b6(0x187)]&&(_0x212646[_0x5b41b6(0x185)]({'type':_0x5b41b6(0x175),'content':_0xb7ceb4[_0x18096c]}),_0x18096c++);}}}return _0x212646;}function computeLCS(_0x3b5415,_0x47d405){const _0x1df70e=a158_0x2a46,_0x1b3e58=_0x3b5415[_0x1df70e(0x187)],_0x303391=_0x47d405[_0x1df70e(0x187)],_0x4de1f9=Array(_0x1b3e58+0x1)[_0x1df70e(0x170)](null)[_0x1df70e(0x17d)](()=>Array(_0x303391+0x1)[_0x1df70e(0x170)](0x0));for(let _0x4dcae7=0x1;_0x4dcae7<=_0x1b3e58;_0x4dcae7++){for(let _0x23f03b=0x1;_0x23f03b<=_0x303391;_0x23f03b++){_0x3b5415[_0x4dcae7-0x1]===_0x47d405[_0x23f03b-0x1]?_0x4de1f9[_0x4dcae7][_0x23f03b]=_0x4de1f9[_0x4dcae7-0x1][_0x23f03b-0x1]+0x1:_0x4de1f9[_0x4dcae7][_0x23f03b]=Math[_0x1df70e(0x189)](_0x4de1f9[_0x4dcae7-0x1][_0x23f03b],_0x4de1f9[_0x4dcae7][_0x23f03b-0x1]);}}const _0x481a39=[];let _0x2d55cc=_0x1b3e58,_0x3ad4b5=_0x303391;while(_0x2d55cc>0x0&&_0x3ad4b5>0x0){if(_0x3b5415[_0x2d55cc-0x1]===_0x47d405[_0x3ad4b5-0x1])_0x481a39[_0x1df70e(0x171)](_0x3b5415[_0x2d55cc-0x1]),_0x2d55cc--,_0x3ad4b5--;else _0x4de1f9[_0x2d55cc-0x1][_0x3ad4b5]>_0x4de1f9[_0x2d55cc][_0x3ad4b5-0x1]?_0x2d55cc--:_0x3ad4b5--;}return _0x481a39;}function a158_0x2a46(_0x171762,_0x3c9c7f){_0x171762=_0x171762-0x16e;const _0x56dcfa=a158_0x56dc();let _0x2a46e0=_0x56dcfa[_0x171762];return _0x2a46e0;}export function formatDiffWithColors(_0x211829,_0x184be0=0x3){const _0x1f6755=a158_0x2a46,_0x30a0d2=new Set();_0x211829[_0x1f6755(0x18e)]((_0x394662,_0x3bb3e9)=>{const _0x58af5c=_0x1f6755;_0x394662[_0x58af5c(0x18f)]!==_0x58af5c(0x18b)&&_0x30a0d2[_0x58af5c(0x17c)](_0x3bb3e9);});if(_0x30a0d2[_0x1f6755(0x17b)]===0x0)return'';const _0x22b436=new Set();for(const _0x11c762 of _0x30a0d2){for(let _0x5873b7=Math[_0x1f6755(0x189)](0x0,_0x11c762-_0x184be0);_0x5873b7<=Math[_0x1f6755(0x177)](_0x211829[_0x1f6755(0x187)]-0x1,_0x11c762+_0x184be0);_0x5873b7++){_0x22b436[_0x1f6755(0x17c)](_0x5873b7);}}const _0x3de4ac=[];let _0x215072=-0x1;const _0x1db9a2=_0x211829['length'],_0x51fab0=Math['max'](0x3,String(_0x1db9a2)['length']),_0x4ba52e=[];let _0x3ec18d=0x0,_0x12df81=0x0;for(const _0x79db5b of _0x211829){if(_0x79db5b[_0x1f6755(0x18f)]===_0x1f6755(0x182))_0x3ec18d++,_0x4ba52e[_0x1f6755(0x185)]({'old':_0x3ec18d,'new':0x0});else _0x79db5b[_0x1f6755(0x18f)]===_0x1f6755(0x175)?(_0x12df81++,_0x4ba52e['push']({'old':0x0,'new':_0x12df81})):(_0x3ec18d++,_0x12df81++,_0x4ba52e['push']({'old':_0x3ec18d,'new':_0x12df81}));}for(let _0x5f3aa9=0x0;_0x5f3aa9<_0x211829[_0x1f6755(0x187)];_0x5f3aa9++){if(!_0x22b436['has'](_0x5f3aa9))continue;_0x215072!==-0x1&&_0x5f3aa9>_0x215072+0x1&&_0x3de4ac[_0x1f6755(0x185)](a158_0x1d1c45['cyan'](_0x1f6755(0x18a)));_0x215072=_0x5f3aa9;const _0xe34fef=_0x211829[_0x5f3aa9],_0x208acd=_0x4ba52e[_0x5f3aa9],_0x5ea8f9=_0x208acd[_0x1f6755(0x190)]>0x0?String(_0x208acd[_0x1f6755(0x190)])[_0x1f6755(0x172)](_0x51fab0):'\x20'[_0x1f6755(0x17a)](_0x51fab0),_0xb7a3da=_0x208acd[_0x1f6755(0x183)]>0x0?String(_0x208acd['new'])[_0x1f6755(0x172)](_0x51fab0):'\x20'[_0x1f6755(0x17a)](_0x51fab0);switch(_0xe34fef[_0x1f6755(0x18f)]){case _0x1f6755(0x182):_0x3de4ac[_0x1f6755(0x185)](a158_0x1d1c45[_0x1f6755(0x16e)](_0x5ea8f9+'\x20'+_0xb7a3da+'\x20-\x20'+_0xe34fef[_0x1f6755(0x181)]));break;case _0x1f6755(0x175):_0x3de4ac[_0x1f6755(0x185)](a158_0x1d1c45[_0x1f6755(0x173)](_0x5ea8f9+'\x20'+_0xb7a3da+_0x1f6755(0x17e)+_0xe34fef[_0x1f6755(0x181)]));break;default:_0x3de4ac[_0x1f6755(0x185)](a158_0x1d1c45[_0x1f6755(0x179)](_0x5ea8f9+'\x20'+_0xb7a3da+_0x1f6755(0x186)+_0xe34fef[_0x1f6755(0x181)]));break;}}return _0x3de4ac[_0x1f6755(0x180)]('\x0a');}export function hasChanges(_0x2030d8){const _0x5bcd12=a158_0x2a46;return _0x2030d8[_0x5bcd12(0x17f)](_0x5d7637=>_0x5d7637['type']!==_0x5bcd12(0x18b));}function a158_0x56dc(){const _0x1ca6a8=['\x20\x20...','unchanged','3889616FleDcB','690176jHklUS','forEach','type','old','red','553wmRXkO','fill','unshift','padStart','green','376576bhhhMf','added','491030zGShLl','min','5322gXFZVq','dim','repeat','size','add','map','\x20+\x20','some','join','content','removed','new','150195zWKAkq','push','\x20\x20\x20','length','227047kUyZdY','max'];a158_0x56dc=function(){return _0x1ca6a8;};return a158_0x56dc();}
1
+ (function(_0x4669a7,_0x373195){const _0x1c7af7=a158_0x8c07,_0xdb03ee=_0x4669a7();while(!![]){try{const _0x4c4b01=-parseInt(_0x1c7af7(0x122))/0x1*(-parseInt(_0x1c7af7(0x121))/0x2)+-parseInt(_0x1c7af7(0x139))/0x3*(parseInt(_0x1c7af7(0x138))/0x4)+-parseInt(_0x1c7af7(0x12a))/0x5*(-parseInt(_0x1c7af7(0x140))/0x6)+-parseInt(_0x1c7af7(0x124))/0x7+-parseInt(_0x1c7af7(0x130))/0x8*(-parseInt(_0x1c7af7(0x13a))/0x9)+parseInt(_0x1c7af7(0x13d))/0xa*(-parseInt(_0x1c7af7(0x12b))/0xb)+parseInt(_0x1c7af7(0x13f))/0xc;if(_0x4c4b01===_0x373195)break;else _0xdb03ee['push'](_0xdb03ee['shift']());}catch(_0x4ebf1b){_0xdb03ee['push'](_0xdb03ee['shift']());}}}(a158_0x5d53,0xdadac));import a158_0x2708fa from'chalk';export function generateDiff(_0x148b70,_0x3a92bf){const _0xe8dc8a=a158_0x8c07,_0x4ca881=_0x148b70[_0xe8dc8a(0x143)]('\x0a'),_0x284128=_0x3a92bf[_0xe8dc8a(0x143)]('\x0a'),_0x5d7335=[],_0x339b54=computeLCS(_0x4ca881,_0x284128);let _0x491941=0x0,_0x4c3e3d=0x0,_0x3d7fda=0x0;while(_0x491941<_0x4ca881[_0xe8dc8a(0x13e)]||_0x4c3e3d<_0x284128['length']){if(_0x3d7fda<_0x339b54[_0xe8dc8a(0x13e)]&&_0x491941<_0x4ca881[_0xe8dc8a(0x13e)]&&_0x4ca881[_0x491941]===_0x339b54[_0x3d7fda])_0x4c3e3d<_0x284128[_0xe8dc8a(0x13e)]&&_0x284128[_0x4c3e3d]===_0x339b54[_0x3d7fda]?(_0x5d7335['push']({'type':_0xe8dc8a(0x134),'content':_0x4ca881[_0x491941]}),_0x491941++,_0x4c3e3d++,_0x3d7fda++):(_0x5d7335[_0xe8dc8a(0x125)]({'type':_0xe8dc8a(0x137),'content':_0x284128[_0x4c3e3d]}),_0x4c3e3d++);else{if(_0x3d7fda<_0x339b54[_0xe8dc8a(0x13e)]&&_0x4c3e3d<_0x284128[_0xe8dc8a(0x13e)]&&_0x284128[_0x4c3e3d]===_0x339b54[_0x3d7fda])_0x5d7335[_0xe8dc8a(0x125)]({'type':'removed','content':_0x4ca881[_0x491941]}),_0x491941++;else{if(_0x491941<_0x4ca881[_0xe8dc8a(0x13e)]&&(_0x3d7fda>=_0x339b54[_0xe8dc8a(0x13e)]||_0x4ca881[_0x491941]!==_0x339b54[_0x3d7fda]))_0x5d7335[_0xe8dc8a(0x125)]({'type':_0xe8dc8a(0x128),'content':_0x4ca881[_0x491941]}),_0x491941++;else _0x4c3e3d<_0x284128['length']&&(_0x5d7335[_0xe8dc8a(0x125)]({'type':_0xe8dc8a(0x137),'content':_0x284128[_0x4c3e3d]}),_0x4c3e3d++);}}}return _0x5d7335;}function computeLCS(_0x22d7b5,_0x2c9c96){const _0xda8946=a158_0x8c07,_0x42d16f=_0x22d7b5[_0xda8946(0x13e)],_0x12ba3d=_0x2c9c96[_0xda8946(0x13e)],_0x57bbba=Array(_0x42d16f+0x1)[_0xda8946(0x120)](null)['map'](()=>Array(_0x12ba3d+0x1)[_0xda8946(0x120)](0x0));for(let _0x5ccea7=0x1;_0x5ccea7<=_0x42d16f;_0x5ccea7++){for(let _0x10f009=0x1;_0x10f009<=_0x12ba3d;_0x10f009++){_0x22d7b5[_0x5ccea7-0x1]===_0x2c9c96[_0x10f009-0x1]?_0x57bbba[_0x5ccea7][_0x10f009]=_0x57bbba[_0x5ccea7-0x1][_0x10f009-0x1]+0x1:_0x57bbba[_0x5ccea7][_0x10f009]=Math[_0xda8946(0x141)](_0x57bbba[_0x5ccea7-0x1][_0x10f009],_0x57bbba[_0x5ccea7][_0x10f009-0x1]);}}const _0x5345b5=[];let _0x5f3d34=_0x42d16f,_0x135c08=_0x12ba3d;while(_0x5f3d34>0x0&&_0x135c08>0x0){if(_0x22d7b5[_0x5f3d34-0x1]===_0x2c9c96[_0x135c08-0x1])_0x5345b5[_0xda8946(0x133)](_0x22d7b5[_0x5f3d34-0x1]),_0x5f3d34--,_0x135c08--;else _0x57bbba[_0x5f3d34-0x1][_0x135c08]>_0x57bbba[_0x5f3d34][_0x135c08-0x1]?_0x5f3d34--:_0x135c08--;}return _0x5345b5;}function a158_0x5d53(){const _0x20e0d8=['has','unshift','unchanged','add','old','added','2149796NUbfeJ','6JUgfue','9TDKzHL','type','new','12734730PldjsD','length','6627492WZtQFa','6KgdLqk','max','cyan','split','some','join','fill','1714mPmioB','1627MkKrKC','padStart','7719516dThrNE','push','content','size','removed','min','8333920EGvnpl','11pRlSDf','forEach','dim','\x20+\x20','\x20\x20...','5873384rxLzDn','repeat'];a158_0x5d53=function(){return _0x20e0d8;};return a158_0x5d53();}export function formatDiffWithColors(_0x255275,_0x1dd05c=0x3){const _0x2a9c0d=a158_0x8c07,_0x31ab01=new Set();_0x255275[_0x2a9c0d(0x12c)]((_0x2f462d,_0x5647d1)=>{const _0x2b1a5d=_0x2a9c0d;_0x2f462d[_0x2b1a5d(0x13b)]!=='unchanged'&&_0x31ab01[_0x2b1a5d(0x135)](_0x5647d1);});if(_0x31ab01[_0x2a9c0d(0x127)]===0x0)return'';const _0x384cf4=new Set();for(const _0x169200 of _0x31ab01){for(let _0xe870c2=Math['max'](0x0,_0x169200-_0x1dd05c);_0xe870c2<=Math[_0x2a9c0d(0x129)](_0x255275['length']-0x1,_0x169200+_0x1dd05c);_0xe870c2++){_0x384cf4[_0x2a9c0d(0x135)](_0xe870c2);}}const _0x2f3067=[];let _0x497e7f=-0x1;const _0x2046ab=_0x255275['length'],_0x1b31c7=Math[_0x2a9c0d(0x141)](0x3,String(_0x2046ab)[_0x2a9c0d(0x13e)]),_0xce54bc=[];let _0x4ddc6f=0x0,_0x392573=0x0;for(const _0x1933d6 of _0x255275){if(_0x1933d6[_0x2a9c0d(0x13b)]===_0x2a9c0d(0x128))_0x4ddc6f++,_0xce54bc[_0x2a9c0d(0x125)]({'old':_0x4ddc6f,'new':0x0});else _0x1933d6[_0x2a9c0d(0x13b)]===_0x2a9c0d(0x137)?(_0x392573++,_0xce54bc[_0x2a9c0d(0x125)]({'old':0x0,'new':_0x392573})):(_0x4ddc6f++,_0x392573++,_0xce54bc[_0x2a9c0d(0x125)]({'old':_0x4ddc6f,'new':_0x392573}));}for(let _0x5d446a=0x0;_0x5d446a<_0x255275[_0x2a9c0d(0x13e)];_0x5d446a++){if(!_0x384cf4[_0x2a9c0d(0x132)](_0x5d446a))continue;_0x497e7f!==-0x1&&_0x5d446a>_0x497e7f+0x1&&_0x2f3067[_0x2a9c0d(0x125)](a158_0x2708fa[_0x2a9c0d(0x142)](_0x2a9c0d(0x12f)));_0x497e7f=_0x5d446a;const _0x152e8e=_0x255275[_0x5d446a],_0x381154=_0xce54bc[_0x5d446a],_0x3b3965=_0x381154[_0x2a9c0d(0x136)]>0x0?String(_0x381154[_0x2a9c0d(0x136)])[_0x2a9c0d(0x123)](_0x1b31c7):'\x20'['repeat'](_0x1b31c7),_0x14a16f=_0x381154[_0x2a9c0d(0x13c)]>0x0?String(_0x381154[_0x2a9c0d(0x13c)])[_0x2a9c0d(0x123)](_0x1b31c7):'\x20'[_0x2a9c0d(0x131)](_0x1b31c7);switch(_0x152e8e[_0x2a9c0d(0x13b)]){case _0x2a9c0d(0x128):_0x2f3067[_0x2a9c0d(0x125)](a158_0x2708fa['red'](_0x3b3965+'\x20'+_0x14a16f+'\x20-\x20'+_0x152e8e['content']));break;case'added':_0x2f3067['push'](a158_0x2708fa['green'](_0x3b3965+'\x20'+_0x14a16f+_0x2a9c0d(0x12e)+_0x152e8e['content']));break;default:_0x2f3067['push'](a158_0x2708fa[_0x2a9c0d(0x12d)](_0x3b3965+'\x20'+_0x14a16f+'\x20\x20\x20'+_0x152e8e[_0x2a9c0d(0x126)]));break;}}return _0x2f3067[_0x2a9c0d(0x11f)]('\x0a');}function a158_0x8c07(_0x49382a,_0x46bda5){_0x49382a=_0x49382a-0x11e;const _0x5d53bc=a158_0x5d53();let _0x8c07cd=_0x5d53bc[_0x49382a];return _0x8c07cd;}export function hasChanges(_0x187477){const _0x28489f=a158_0x8c07;return _0x187477[_0x28489f(0x11e)](_0x1bf1b3=>_0x1bf1b3[_0x28489f(0x13b)]!==_0x28489f(0x134));}
@@ -1 +1 @@
1
- (function(_0x54e7b7,_0x202429){const _0xc579ad=a159_0x4149,_0x55d188=_0x54e7b7();while(!![]){try{const _0x147b12=parseInt(_0xc579ad(0x73))/0x1*(parseInt(_0xc579ad(0x7d))/0x2)+-parseInt(_0xc579ad(0x80))/0x3*(-parseInt(_0xc579ad(0x76))/0x4)+parseInt(_0xc579ad(0x72))/0x5*(parseInt(_0xc579ad(0x6e))/0x6)+parseInt(_0xc579ad(0x6f))/0x7+-parseInt(_0xc579ad(0x6b))/0x8*(-parseInt(_0xc579ad(0x81))/0x9)+parseInt(_0xc579ad(0x7f))/0xa*(parseInt(_0xc579ad(0x75))/0xb)+-parseInt(_0xc579ad(0x79))/0xc;if(_0x147b12===_0x202429)break;else _0x55d188['push'](_0x55d188['shift']());}catch(_0x55b592){_0x55d188['push'](_0x55d188['shift']());}}}(a159_0x5b1e,0xa6452));import*as a159_0x347928 from'node:fs';import*as a159_0x2577f6 from'node:path';function a159_0x4149(_0x302dff,_0x7f20f0){_0x302dff=_0x302dff-0x6a;const _0x5b1e04=a159_0x5b1e();let _0x414987=_0x5b1e04[_0x302dff];return _0x414987;}export function setSecureFilePermissions(_0x5bfc83){const _0x4d6616=a159_0x4149;try{a159_0x347928['chmodSync'](_0x5bfc83,0x180);}catch{console[_0x4d6616(0x7e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5bfc83);}}function a159_0x5b1e(){const _0x149a9b=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','48234NRwrIR','2872849mAJOeB','\x20has\x20insecure\x20permissions\x20(',').\x20','655zSbPqi','48558iCvjYK','statSync','12370897zVooxm','162112uqWvRk','writeFileSync','chmodSync','57001116zfxRnR','mkdirSync','toString','dirname','54NSOWqB','warn','10kDbhcW','93RmHHgW','18DWgLoG','Warning:\x20','1102232fSnxRl'];a159_0x5b1e=function(){return _0x149a9b;};return a159_0x5b1e();}export function setSecureDirectoryPermissions(_0x1f79da){const _0x590f53=a159_0x4149;try{a159_0x347928[_0x590f53(0x78)](_0x1f79da,0x1c0);}catch{console[_0x590f53(0x7e)](_0x590f53(0x6c)+_0x1f79da);}}export function createSecureDirectory(_0x11a2bf){const _0x447839=a159_0x4149;!a159_0x347928['existsSync'](_0x11a2bf)&&(a159_0x347928[_0x447839(0x7a)](_0x11a2bf,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x11a2bf));}export function validateSecureFilePermissions(_0x2da4fd){const _0x11dbfb=a159_0x4149;try{const _0x1706e2=a159_0x347928[_0x11dbfb(0x74)](_0x2da4fd),_0x3dbe9b=_0x1706e2['mode']&0x1ff,_0x4d1d04=(_0x3dbe9b&0x3f)!==0x0;if(_0x4d1d04)return console[_0x11dbfb(0x7e)](_0x11dbfb(0x6a)+_0x2da4fd+_0x11dbfb(0x70)+_0x3dbe9b[_0x11dbfb(0x7b)](0x8)+_0x11dbfb(0x71)+_0x11dbfb(0x6d)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x220cb5,_0x39e015){const _0x324233=a159_0x4149,_0x4e89c3=a159_0x2577f6[_0x324233(0x7c)](_0x220cb5);createSecureDirectory(_0x4e89c3),a159_0x347928[_0x324233(0x77)](_0x220cb5,_0x39e015,{'mode':0x180}),setSecureFilePermissions(_0x220cb5);}
1
+ (function(_0xfac2b,_0x256c1d){const _0x5b4faa=a159_0x81f9,_0x37b84b=_0xfac2b();while(!![]){try{const _0x3b7942=parseInt(_0x5b4faa(0x82))/0x1+-parseInt(_0x5b4faa(0x86))/0x2+parseInt(_0x5b4faa(0x7c))/0x3+parseInt(_0x5b4faa(0x85))/0x4+-parseInt(_0x5b4faa(0x7f))/0x5+-parseInt(_0x5b4faa(0x78))/0x6+parseInt(_0x5b4faa(0x88))/0x7;if(_0x3b7942===_0x256c1d)break;else _0x37b84b['push'](_0x37b84b['shift']());}catch(_0xa77bfc){_0x37b84b['push'](_0x37b84b['shift']());}}}(a159_0x399d,0xdcd11));function a159_0x399d(){const _0x4c7ef9=[').\x20','4587873oCPSQk','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3039835bIRSXX','writeFileSync','statSync','458836fTowGN','Warning:\x20','warn','4968988DlicSy','3119106EtxzSM','mode','4590292CnBiaJ','4884870HtKLjx','chmodSync','\x20has\x20insecure\x20permissions\x20('];a159_0x399d=function(){return _0x4c7ef9;};return a159_0x399d();}import*as a159_0x2ea6c4 from'node:fs';import*as a159_0x510ffd from'node:path';export function setSecureFilePermissions(_0x185915){const _0x592778=a159_0x81f9;try{a159_0x2ea6c4[_0x592778(0x79)](_0x185915,0x180);}catch{console['warn'](_0x592778(0x7e)+_0x185915);}}export function setSecureDirectoryPermissions(_0x498646){const _0x4bcae4=a159_0x81f9;try{a159_0x2ea6c4[_0x4bcae4(0x79)](_0x498646,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x498646);}}function a159_0x81f9(_0x44001a,_0x1c454c){_0x44001a=_0x44001a-0x78;const _0x399dc4=a159_0x399d();let _0x81f9cd=_0x399dc4[_0x44001a];return _0x81f9cd;}export function createSecureDirectory(_0x419714){const _0x265f5b=a159_0x81f9;!a159_0x2ea6c4[_0x265f5b(0x7d)](_0x419714)&&(a159_0x2ea6c4['mkdirSync'](_0x419714,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x419714));}export function validateSecureFilePermissions(_0x70a9cd){const _0x38f385=a159_0x81f9;try{const _0x34f222=a159_0x2ea6c4[_0x38f385(0x81)](_0x70a9cd),_0xae75b8=_0x34f222[_0x38f385(0x87)]&0x1ff,_0x4df5a2=(_0xae75b8&0x3f)!==0x0;if(_0x4df5a2)return console[_0x38f385(0x84)](_0x38f385(0x83)+_0x70a9cd+_0x38f385(0x7a)+_0xae75b8['toString'](0x8)+_0x38f385(0x7b)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x496bb5,_0x17b9c7){const _0x33d6ff=a159_0x81f9,_0x4f6895=a159_0x510ffd['dirname'](_0x496bb5);createSecureDirectory(_0x4f6895),a159_0x2ea6c4[_0x33d6ff(0x80)](_0x496bb5,_0x17b9c7,{'mode':0x180}),setSecureFilePermissions(_0x496bb5);}
@@ -1 +1 @@
1
- (function(_0x53a1d1,_0x431f6b){const _0x47bcfc=a160_0x9385,_0x461be1=_0x53a1d1();while(!![]){try{const _0x372e59=parseInt(_0x47bcfc(0x1df))/0x1*(parseInt(_0x47bcfc(0x1d4))/0x2)+parseInt(_0x47bcfc(0x1e7))/0x3+parseInt(_0x47bcfc(0x1dc))/0x4+-parseInt(_0x47bcfc(0x1d9))/0x5*(parseInt(_0x47bcfc(0x1d7))/0x6)+parseInt(_0x47bcfc(0x1e1))/0x7*(-parseInt(_0x47bcfc(0x1da))/0x8)+-parseInt(_0x47bcfc(0x1e8))/0x9+parseInt(_0x47bcfc(0x1d5))/0xa;if(_0x372e59===_0x431f6b)break;else _0x461be1['push'](_0x461be1['shift']());}catch(_0x50e1cc){_0x461be1['push'](_0x461be1['shift']());}}}(a160_0x2d98,0x4b15f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1b5b91=a160_0x9385;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1b5b91(0x1e5),_0x1b5b91(0x1e0));}const registry=new Map();function a160_0x9385(_0x49ec59,_0x38942b){_0x49ec59=_0x49ec59-0x1d4;const _0x2d98bf=a160_0x2d98();let _0x938563=_0x2d98bf[_0x49ec59];return _0x938563;}export function registerGlobalCacheKey(_0x2b51c7,_0x5a24c9){const _0x24703a=a160_0x9385,_0xc75f3e=registry[_0x24703a(0x1dd)](_0x2b51c7);if(_0xc75f3e&&_0xc75f3e!==_0x5a24c9)throw new Error(_0x24703a(0x1d6)+_0x2b51c7+'\x22\x20already\x20registered\x20by\x20\x22'+_0xc75f3e+_0x24703a(0x1e6)+_0x5a24c9+'\x22');registry[_0x24703a(0x1e3)](_0x2b51c7,_0x5a24c9);}export function getGlobalCachePath(_0x149a8a){return join(getGlobalCacheDir(),_0x149a8a);}function a160_0x2d98(){const _0x5eaad3=['utf-8','682264jelXNR','get','replace','8647wciJoh','tdx','28PRwBmA','{profile}','set','stringify','.cache','\x22,\x20cannot\x20register\x20for\x20\x22','220929hmecXi','3253185naYoEB','78AZXJnh','4453800QQLgWl','Global\x20cache\x20key\x20\x22','119622AdmjdS','parse','30KcHWrw','476368jhNnmX'];a160_0x2d98=function(){return _0x5eaad3;};return a160_0x2d98();}function ensureGlobalCacheDir(){const _0x39c104=getGlobalCacheDir();!existsSync(_0x39c104)&&mkdirSync(_0x39c104,{'recursive':!![]});}function readCacheJson(_0x4ea900){const _0x1c0e35=a160_0x9385,_0x58a61b=getGlobalCachePath(_0x4ea900);if(!existsSync(_0x58a61b))return undefined;try{const _0x45956a=readFileSync(_0x58a61b,_0x1c0e35(0x1db));return JSON[_0x1c0e35(0x1d8)](_0x45956a);}catch{return undefined;}}function writeCacheJson(_0x2a484c,_0x39c0f2){const _0x51f7be=a160_0x9385;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2a484c),JSON[_0x51f7be(0x1e4)](_0x39c0f2,null,0x2),'utf-8');}function readCacheText(_0xb02d81){const _0x2a543d=a160_0x9385,_0x3c0f82=getGlobalCachePath(_0xb02d81);if(!existsSync(_0x3c0f82))return undefined;try{return readFileSync(_0x3c0f82,_0x2a543d(0x1db));}catch{return undefined;}}function writeCacheText(_0x52a4d2,_0x9bc5c4){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x52a4d2),_0x9bc5c4,'utf-8');}function clearCache(_0x4637a7){const _0x1d8c57=getGlobalCachePath(_0x4637a7);if(existsSync(_0x1d8c57))try{unlinkSync(_0x1d8c57);}catch{}}function cacheExists(_0x4224b9){return existsSync(getGlobalCachePath(_0x4224b9));}export function createGlobalCache(_0x56f3b0,_0x19c13f){return registerGlobalCacheKey(_0x56f3b0,_0x19c13f),{'read':()=>readCacheJson(_0x56f3b0),'write':_0x7a95c9=>writeCacheJson(_0x56f3b0,_0x7a95c9),'clear':()=>clearCache(_0x56f3b0),'exists':()=>cacheExists(_0x56f3b0),'path':()=>getGlobalCachePath(_0x56f3b0)};}export function createGlobalTextCache(_0xc2a22f,_0x5b3925){return registerGlobalCacheKey(_0xc2a22f,_0x5b3925),{'read':()=>readCacheText(_0xc2a22f)?.['trim']()||undefined,'write':_0x255df8=>writeCacheText(_0xc2a22f,_0x255df8),'clear':()=>clearCache(_0xc2a22f),'exists':()=>cacheExists(_0xc2a22f),'path':()=>getGlobalCachePath(_0xc2a22f)};}export function createProfileCache(_0x47b8bb,_0x35aabc){const _0x2af487=_0x5a4b5c=>{const _0x16a1e4=a160_0x9385,_0x4ec1a3=_0x5a4b5c||'default';return _0x47b8bb[_0x16a1e4(0x1de)](_0x16a1e4(0x1e2),_0x4ec1a3);};return{'read':_0x56ac82=>{const _0x4ed4bf=_0x2af487(_0x56ac82);return registerGlobalCacheKey(_0x4ed4bf,_0x35aabc),readCacheJson(_0x4ed4bf);},'write':(_0x174e88,_0x3ccb9a)=>{const _0x8c60e1=_0x2af487(_0x174e88);registerGlobalCacheKey(_0x8c60e1,_0x35aabc),writeCacheJson(_0x8c60e1,_0x3ccb9a);},'clear':_0x2a9119=>{const _0x11cef8=_0x2af487(_0x2a9119);clearCache(_0x11cef8);},'exists':_0x292e6b=>{const _0x224fb4=_0x2af487(_0x292e6b);return cacheExists(_0x224fb4);},'path':_0x49f633=>{const _0x584637=_0x2af487(_0x49f633);return getGlobalCachePath(_0x584637);}};}export function createOptionalProfileCache(_0x772ed9,_0xd86ac0,_0xb2526={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xb2526,_0xde866b=_0x5dc928=>{return _0x5dc928?''+_0x772ed9+profileSeparator+_0x5dc928+suffix:''+_0x772ed9+suffix;};return{'read':_0x43019b=>{const _0x89f257=_0xde866b(_0x43019b);return registerGlobalCacheKey(_0x89f257,_0xd86ac0),readCacheJson(_0x89f257);},'write':(_0x2f3464,_0x46e037)=>{const _0x1ed6aa=_0xde866b(_0x46e037);registerGlobalCacheKey(_0x1ed6aa,_0xd86ac0),writeCacheJson(_0x1ed6aa,_0x2f3464);},'clear':_0x297fce=>{const _0x482780=_0xde866b(_0x297fce);clearCache(_0x482780);},'exists':_0x3c92a5=>{const _0x2f6c45=_0xde866b(_0x3c92a5);return cacheExists(_0x2f6c45);},'path':_0x23a5e4=>{const _0x29e639=_0xde866b(_0x23a5e4);return getGlobalCachePath(_0x29e639);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x2a4c56,_0xccb16b){const _0x4db470=a160_0x4f2c,_0x52dfd5=_0x2a4c56();while(!![]){try{const _0x1a8f40=-parseInt(_0x4db470(0x91))/0x1*(-parseInt(_0x4db470(0x96))/0x2)+-parseInt(_0x4db470(0x89))/0x3+-parseInt(_0x4db470(0x94))/0x4+parseInt(_0x4db470(0x8d))/0x5+-parseInt(_0x4db470(0x9c))/0x6*(-parseInt(_0x4db470(0x90))/0x7)+-parseInt(_0x4db470(0x93))/0x8*(parseInt(_0x4db470(0x8f))/0x9)+-parseInt(_0x4db470(0x8a))/0xa*(parseInt(_0x4db470(0x9b))/0xb);if(_0x1a8f40===_0xccb16b)break;else _0x52dfd5['push'](_0x52dfd5['shift']());}catch(_0x24cd5c){_0x52dfd5['push'](_0x52dfd5['shift']());}}}(a160_0x1d00,0x58e25));function a160_0x4f2c(_0x2ed559,_0x93fbd){_0x2ed559=_0x2ed559-0x89;const _0x1d003a=a160_0x1d00();let _0x4f2c69=_0x1d003a[_0x2ed559];return _0x4f2c69;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x36c4c3,_0x483570){const _0x578609=a160_0x4f2c,_0x43cf2c=registry[_0x578609(0x92)](_0x36c4c3);if(_0x43cf2c&&_0x43cf2c!==_0x483570)throw new Error(_0x578609(0x97)+_0x36c4c3+'\x22\x20already\x20registered\x20by\x20\x22'+_0x43cf2c+_0x578609(0x9a)+_0x483570+'\x22');registry['set'](_0x36c4c3,_0x483570);}export function getGlobalCachePath(_0x102698){return join(getGlobalCacheDir(),_0x102698);}function ensureGlobalCacheDir(){const _0x3139d8=getGlobalCacheDir();!existsSync(_0x3139d8)&&mkdirSync(_0x3139d8,{'recursive':!![]});}function readCacheJson(_0x4efdd8){const _0x477749=a160_0x4f2c,_0x39fe7a=getGlobalCachePath(_0x4efdd8);if(!existsSync(_0x39fe7a))return undefined;try{const _0x1470cf=readFileSync(_0x39fe7a,_0x477749(0x8b));return JSON[_0x477749(0x98)](_0x1470cf);}catch{return undefined;}}function a160_0x1d00(){const _0xc49623=['stringify','1942857koneRy','4882661ypXsvD','70709kxNogS','get','8Gvwdug','2129520rIXSxF','replace','8eSHsYR','Global\x20cache\x20key\x20\x22','parse','default','\x22,\x20cannot\x20register\x20for\x20\x22','33RVXgaI','6niBBYA','1279350shENDf','351160WTqmBz','utf-8','clear','3318805YufkyW'];a160_0x1d00=function(){return _0xc49623;};return a160_0x1d00();}function writeCacheJson(_0x4a44aa,_0x230fd8){const _0x610446=a160_0x4f2c;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4a44aa),JSON[_0x610446(0x8e)](_0x230fd8,null,0x2),_0x610446(0x8b));}function readCacheText(_0x4fefff){const _0x4923e3=a160_0x4f2c,_0x189199=getGlobalCachePath(_0x4fefff);if(!existsSync(_0x189199))return undefined;try{return readFileSync(_0x189199,_0x4923e3(0x8b));}catch{return undefined;}}function writeCacheText(_0x4a2b29,_0x1fe3e6){const _0x3e86f4=a160_0x4f2c;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4a2b29),_0x1fe3e6,_0x3e86f4(0x8b));}function clearCache(_0x50581d){const _0x3d6c99=getGlobalCachePath(_0x50581d);if(existsSync(_0x3d6c99))try{unlinkSync(_0x3d6c99);}catch{}}function cacheExists(_0x104250){return existsSync(getGlobalCachePath(_0x104250));}export function createGlobalCache(_0x282afd,_0x4972c1){return registerGlobalCacheKey(_0x282afd,_0x4972c1),{'read':()=>readCacheJson(_0x282afd),'write':_0x2b25bd=>writeCacheJson(_0x282afd,_0x2b25bd),'clear':()=>clearCache(_0x282afd),'exists':()=>cacheExists(_0x282afd),'path':()=>getGlobalCachePath(_0x282afd)};}export function createGlobalTextCache(_0x40e12b,_0x177d2f){return registerGlobalCacheKey(_0x40e12b,_0x177d2f),{'read':()=>readCacheText(_0x40e12b)?.['trim']()||undefined,'write':_0x43b431=>writeCacheText(_0x40e12b,_0x43b431),'clear':()=>clearCache(_0x40e12b),'exists':()=>cacheExists(_0x40e12b),'path':()=>getGlobalCachePath(_0x40e12b)};}export function createProfileCache(_0xe54e56,_0x28564a){const _0x3b98f=_0x39cecc=>{const _0x4a190e=a160_0x4f2c,_0x420e9c=_0x39cecc||_0x4a190e(0x99);return _0xe54e56[_0x4a190e(0x95)]('{profile}',_0x420e9c);};return{'read':_0x3e3d6f=>{const _0x1b0585=_0x3b98f(_0x3e3d6f);return registerGlobalCacheKey(_0x1b0585,_0x28564a),readCacheJson(_0x1b0585);},'write':(_0x51620,_0x4b7ed5)=>{const _0x48c88e=_0x3b98f(_0x51620);registerGlobalCacheKey(_0x48c88e,_0x28564a),writeCacheJson(_0x48c88e,_0x4b7ed5);},'clear':_0xf97e4a=>{const _0x2101b8=_0x3b98f(_0xf97e4a);clearCache(_0x2101b8);},'exists':_0x6569f=>{const _0x425bf6=_0x3b98f(_0x6569f);return cacheExists(_0x425bf6);},'path':_0xf444e4=>{const _0x551506=_0x3b98f(_0xf444e4);return getGlobalCachePath(_0x551506);}};}export function createOptionalProfileCache(_0x2a41e4,_0x3b1175,_0x2b97cd={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2b97cd,_0x1a308d=_0x5aee59=>{return _0x5aee59?''+_0x2a41e4+profileSeparator+_0x5aee59+suffix:''+_0x2a41e4+suffix;};return{'read':_0x288f27=>{const _0x3a11fb=_0x1a308d(_0x288f27);return registerGlobalCacheKey(_0x3a11fb,_0x3b1175),readCacheJson(_0x3a11fb);},'write':(_0x1a17a9,_0x30864c)=>{const _0x380544=_0x1a308d(_0x30864c);registerGlobalCacheKey(_0x380544,_0x3b1175),writeCacheJson(_0x380544,_0x1a17a9);},'clear':_0x5d8bf2=>{const _0x1d8410=_0x1a308d(_0x5d8bf2);clearCache(_0x1d8410);},'exists':_0x3c8ff5=>{const _0x1761e9=_0x1a308d(_0x3c8ff5);return cacheExists(_0x1761e9);},'path':_0x25934a=>{const _0x4de2f1=_0x1a308d(_0x25934a);return getGlobalCachePath(_0x4de2f1);}};}export function clearGlobalRegistry(){const _0x1c0508=a160_0x4f2c;registry[_0x1c0508(0x8c)]();}
@@ -1 +1 @@
1
- (function(_0x8b81e1,_0x4754ef){const _0x1be4c5=a161_0x36af,_0x2860f0=_0x8b81e1();while(!![]){try{const _0x25c0ff=-parseInt(_0x1be4c5(0x16c))/0x1*(parseInt(_0x1be4c5(0x17d))/0x2)+parseInt(_0x1be4c5(0x16f))/0x3*(-parseInt(_0x1be4c5(0x172))/0x4)+-parseInt(_0x1be4c5(0x17b))/0x5+-parseInt(_0x1be4c5(0x17c))/0x6*(parseInt(_0x1be4c5(0x16b))/0x7)+parseInt(_0x1be4c5(0x17e))/0x8*(parseInt(_0x1be4c5(0x17a))/0x9)+-parseInt(_0x1be4c5(0x178))/0xa+parseInt(_0x1be4c5(0x175))/0xb*(parseInt(_0x1be4c5(0x176))/0xc);if(_0x25c0ff===_0x4754ef)break;else _0x2860f0['push'](_0x2860f0['shift']());}catch(_0x1fe15c){_0x2860f0['push'](_0x2860f0['shift']());}}}(a161_0x4dbd,0x1fc45));function a161_0x36af(_0x3c24de,_0x257b06){_0x3c24de=_0x3c24de-0x167;const _0x4dbd33=a161_0x4dbd();let _0x36af2e=_0x4dbd33[_0x3c24de];return _0x36af2e;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x23eca9,_0x433bac){const _0x1981ae=a161_0x36af;try{if(_0x433bac){const _0x11b846=await readFile(_0x23eca9,_0x1981ae(0x17f));try{return JSON[_0x1981ae(0x177)](_0x11b846);}catch(_0x1968d3){throw new SDKError(ErrorCode[_0x1981ae(0x16a)],_0x1981ae(0x168)+_0x23eca9+'\x27:\x20'+(_0x1968d3 instanceof Error?_0x1968d3[_0x1981ae(0x16e)]:String(_0x1968d3)));}}else try{return JSON[_0x1981ae(0x177)](_0x23eca9);}catch(_0x3d9a80){throw new SDKError(ErrorCode[_0x1981ae(0x16a)],_0x1981ae(0x173)+(_0x3d9a80 instanceof Error?_0x3d9a80[_0x1981ae(0x16e)]:String(_0x3d9a80)));}}catch(_0x242812){if(_0x242812 instanceof SDKError)throw _0x242812;if(_0x242812 instanceof Error&&_0x1981ae(0x169)in _0x242812){const _0x20a9a7=_0x242812;if(_0x20a9a7['code']===_0x1981ae(0x16d))throw new SDKError(ErrorCode[_0x1981ae(0x179)],_0x1981ae(0x174)+_0x23eca9);else{if(_0x20a9a7[_0x1981ae(0x169)]===_0x1981ae(0x171))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x23eca9);}}throw new SDKError(ErrorCode['INTERNAL'],_0x1981ae(0x167)+(_0x242812 instanceof Error?_0x242812[_0x1981ae(0x16e)]:String(_0x242812)));}}export async function loadJSONFromOptions(_0x4f04e4,_0x461b65){const _0x57f54b=a161_0x36af;if(_0x4f04e4&&_0x461b65)throw new SDKError(ErrorCode[_0x57f54b(0x16a)],_0x57f54b(0x170));if(_0x4f04e4)return await loadJSON(_0x4f04e4,![]);if(_0x461b65)return await loadJSON(_0x461b65,!![]);return undefined;}function a161_0x4dbd(){const _0x44b41d=['parse','461720XyzPZQ','NOT_FOUND','1557xwUAlB','939510vhNLim','97968ROgBDf','56534sxMkQr','7008NVyORP','utf-8','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','code','INVALID_ARGUMENT','28UhXWwr','9tIBcok','ENOENT','message','33DqjESq','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','EACCES','62908jenbgC','Invalid\x20JSON\x20string:\x20','File\x20not\x20found:\x20','221683Tsxxke','420islmBy'];a161_0x4dbd=function(){return _0x44b41d;};return a161_0x4dbd();}
1
+ (function(_0x3da73c,_0x11508b){const _0x429ba6=a161_0x4fe7,_0x3646be=_0x3da73c();while(!![]){try{const _0x390ef8=parseInt(_0x429ba6(0x95))/0x1*(parseInt(_0x429ba6(0x9e))/0x2)+-parseInt(_0x429ba6(0xa3))/0x3+-parseInt(_0x429ba6(0x8f))/0x4*(parseInt(_0x429ba6(0x94))/0x5)+-parseInt(_0x429ba6(0xa0))/0x6+parseInt(_0x429ba6(0x9d))/0x7*(-parseInt(_0x429ba6(0x99))/0x8)+parseInt(_0x429ba6(0x98))/0x9*(-parseInt(_0x429ba6(0xa4))/0xa)+-parseInt(_0x429ba6(0x93))/0xb*(-parseInt(_0x429ba6(0x9a))/0xc);if(_0x390ef8===_0x11508b)break;else _0x3646be['push'](_0x3646be['shift']());}catch(_0x36f31b){_0x3646be['push'](_0x3646be['shift']());}}}(a161_0x5945,0xb5fe8));function a161_0x4fe7(_0x2c362d,_0x168a88){_0x2c362d=_0x2c362d-0x8e;const _0x5945ea=a161_0x5945();let _0x4fe7ae=_0x5945ea[_0x2c362d];return _0x4fe7ae;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a161_0x5945(){const _0x17f2bb=['1400094vrLyCV','INTERNAL','EACCES','1406364ZfagdO','4466570dIBqTy','File\x20not\x20found:\x20','24AWOTnG','Permission\x20denied\x20reading\x20file:\x20','\x27:\x20','parse','27884846cTetFx','124615pwIBuw','1EBHHtV','utf-8','code','9TzEfro','400240BexUIr','12PQnJWA','INVALID_ARGUMENT','message','70NCoUUF','18188PflZgC','Invalid\x20JSON\x20string:\x20'];a161_0x5945=function(){return _0x17f2bb;};return a161_0x5945();}export async function loadJSON(_0x434a61,_0x16cf2f){const _0x40102a=a161_0x4fe7;try{if(_0x16cf2f){const _0x32bbd0=await readFile(_0x434a61,_0x40102a(0x96));try{return JSON[_0x40102a(0x92)](_0x32bbd0);}catch(_0x39d06d){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x434a61+_0x40102a(0x91)+(_0x39d06d instanceof Error?_0x39d06d['message']:String(_0x39d06d)));}}else try{return JSON[_0x40102a(0x92)](_0x434a61);}catch(_0x283876){throw new SDKError(ErrorCode[_0x40102a(0x9b)],_0x40102a(0x9f)+(_0x283876 instanceof Error?_0x283876[_0x40102a(0x9c)]:String(_0x283876)));}}catch(_0x2991f7){if(_0x2991f7 instanceof SDKError)throw _0x2991f7;if(_0x2991f7 instanceof Error&&_0x40102a(0x97)in _0x2991f7){const _0x15b84e=_0x2991f7;if(_0x15b84e[_0x40102a(0x97)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x40102a(0x8e)+_0x434a61);else{if(_0x15b84e[_0x40102a(0x97)]===_0x40102a(0xa2))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x40102a(0x90)+_0x434a61);}}throw new SDKError(ErrorCode[_0x40102a(0xa1)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2991f7 instanceof Error?_0x2991f7[_0x40102a(0x9c)]:String(_0x2991f7)));}}export async function loadJSONFromOptions(_0x1e40f9,_0x2ce441){if(_0x1e40f9&&_0x2ce441)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x1e40f9)return await loadJSON(_0x1e40f9,![]);if(_0x2ce441)return await loadJSON(_0x2ce441,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x46515e,_0x5adad4){const _0x4cdab4=a162_0xfac8,_0x50c6d1=_0x46515e();while(!![]){try{const _0x559d0b=-parseInt(_0x4cdab4(0x19f))/0x1*(-parseInt(_0x4cdab4(0x19d))/0x2)+-parseInt(_0x4cdab4(0x1ab))/0x3*(-parseInt(_0x4cdab4(0x1a7))/0x4)+parseInt(_0x4cdab4(0x19b))/0x5*(-parseInt(_0x4cdab4(0x19e))/0x6)+-parseInt(_0x4cdab4(0x1a5))/0x7*(parseInt(_0x4cdab4(0x1aa))/0x8)+parseInt(_0x4cdab4(0x19a))/0x9+-parseInt(_0x4cdab4(0x19c))/0xa+parseInt(_0x4cdab4(0x198))/0xb*(parseInt(_0x4cdab4(0x1a3))/0xc);if(_0x559d0b===_0x5adad4)break;else _0x50c6d1['push'](_0x50c6d1['shift']());}catch(_0x20078f){_0x50c6d1['push'](_0x50c6d1['shift']());}}}(a162_0x1756,0xd2cc0));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();export function registerCacheKey(_0x539a4b,_0x3e7a8c){const _0x44da97=a162_0xfac8,_0x31ed39=registry[_0x44da97(0x1a6)](_0x539a4b);if(_0x31ed39&&_0x31ed39!==_0x3e7a8c)throw new Error(_0x44da97(0x1a8)+_0x539a4b+'\x22\x20already\x20registered\x20by\x20\x22'+_0x31ed39+_0x44da97(0x1ad)+_0x3e7a8c+'\x22');registry[_0x44da97(0x1a0)](_0x539a4b,_0x3e7a8c);}export function getCacheDir(){const _0x54e228=a162_0xfac8,_0x35498d=process[_0x54e228(0x199)](),_0x117b05=_0x35498d===parse(_0x35498d)[_0x54e228(0x1a1)]?homedir():_0x35498d;return join(_0x117b05,LOCAL_CACHE_DIR);}export function getCachePath(_0x38df87){return join(getCacheDir(),_0x38df87);}function ensureCacheDir(){const _0x286ae9=getCacheDir();!existsSync(_0x286ae9)&&mkdirSync(_0x286ae9,{'recursive':!![]});}function readCacheJson(_0x240c96){const _0x13d431=a162_0xfac8,_0x1b349=getCachePath(_0x240c96);if(!existsSync(_0x1b349))return undefined;try{const _0x2b9b2b=readFileSync(_0x1b349,_0x13d431(0x1ac));return JSON[_0x13d431(0x1a4)](_0x2b9b2b);}catch{return undefined;}}function a162_0xfac8(_0x5608a7,_0x557c8a){_0x5608a7=_0x5608a7-0x198;const _0x175646=a162_0x1756();let _0xfac884=_0x175646[_0x5608a7];return _0xfac884;}function writeCacheJson(_0x3cbb24,_0x415b6e){const _0x2f3bd9=a162_0xfac8;ensureCacheDir(),writeFileSync(getCachePath(_0x3cbb24),JSON[_0x2f3bd9(0x1a2)](_0x415b6e,null,0x2),_0x2f3bd9(0x1ac));}function a162_0x1756(){const _0x20cbd9=['7qDocNB','get','3065092Ylreou','Cache\x20key\x20\x22','clear','5107064IdImAB','3fLilBQ','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','14203101VSjAHo','cwd','12988881lDrSvJ','5DotESK','8175260wzbdPO','127222FXRLSb','9759702gOApiL','7fTGBrH','set','root','stringify','12FtnPdS','parse'];a162_0x1756=function(){return _0x20cbd9;};return a162_0x1756();}function readCacheText(_0x2ef061){const _0x35293e=a162_0xfac8,_0x37e290=getCachePath(_0x2ef061);if(!existsSync(_0x37e290))return undefined;try{return readFileSync(_0x37e290,_0x35293e(0x1ac));}catch{return undefined;}}function writeCacheText(_0x5d84ab,_0x501ac1){ensureCacheDir(),writeFileSync(getCachePath(_0x5d84ab),_0x501ac1,'utf-8');}function clearCache(_0x367591){const _0x4581f1=getCachePath(_0x367591);if(existsSync(_0x4581f1))try{unlinkSync(_0x4581f1);}catch{}}function cacheExists(_0x537eaf){return existsSync(getCachePath(_0x537eaf));}export function createCache(_0x5784c8,_0x525469){return registerCacheKey(_0x5784c8,_0x525469),{'read':()=>readCacheJson(_0x5784c8),'write':_0x5127af=>writeCacheJson(_0x5784c8,_0x5127af),'clear':()=>clearCache(_0x5784c8),'exists':()=>cacheExists(_0x5784c8),'path':()=>getCachePath(_0x5784c8)};}export function createTextCache(_0x4853b5,_0x508e92){return registerCacheKey(_0x4853b5,_0x508e92),{'read':()=>readCacheText(_0x4853b5)?.['trim']()||undefined,'write':_0x10a81e=>writeCacheText(_0x4853b5,_0x10a81e),'clear':()=>clearCache(_0x4853b5),'exists':()=>cacheExists(_0x4853b5),'path':()=>getCachePath(_0x4853b5)};}export function clearRegistry(){const _0x51a6ab=a162_0xfac8;registry[_0x51a6ab(0x1a9)]();}
1
+ (function(_0x855b95,_0x404e80){const _0xc74cac=a162_0x22c1,_0xef04db=_0x855b95();while(!![]){try{const _0x3d6dcc=parseInt(_0xc74cac(0x154))/0x1+parseInt(_0xc74cac(0x155))/0x2*(-parseInt(_0xc74cac(0x152))/0x3)+-parseInt(_0xc74cac(0x158))/0x4*(-parseInt(_0xc74cac(0x15c))/0x5)+-parseInt(_0xc74cac(0x15b))/0x6+parseInt(_0xc74cac(0x153))/0x7+parseInt(_0xc74cac(0x159))/0x8+parseInt(_0xc74cac(0x15e))/0x9*(-parseInt(_0xc74cac(0x156))/0xa);if(_0x3d6dcc===_0x404e80)break;else _0xef04db['push'](_0xef04db['shift']());}catch(_0xeba08e){_0xef04db['push'](_0xef04db['shift']());}}}(a162_0x5be6,0xafacf));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();export function registerCacheKey(_0x5aeba9,_0x450ed3){const _0x3160f1=a162_0x22c1,_0x1d02f9=registry[_0x3160f1(0x15d)](_0x5aeba9);if(_0x1d02f9&&_0x1d02f9!==_0x450ed3)throw new Error(_0x3160f1(0x150)+_0x5aeba9+'\x22\x20already\x20registered\x20by\x20\x22'+_0x1d02f9+_0x3160f1(0x160)+_0x450ed3+'\x22');registry[_0x3160f1(0x151)](_0x5aeba9,_0x450ed3);}function a162_0x5be6(){const _0x42b7fd=['parse','4pGYluk','3245576ezzUuU','utf-8','6703194CNgxxu','7155535QooHkB','get','3807rMLltd','clear','\x22,\x20cannot\x20register\x20for\x20\x22','trim','Cache\x20key\x20\x22','set','10581lzLYia','2641345dFlhXL','839468kokiQH','152qQDZkU','22430qEotFx'];a162_0x5be6=function(){return _0x42b7fd;};return a162_0x5be6();}export function getCacheDir(){const _0x488d7b=process['cwd'](),_0x2496f9=_0x488d7b===parse(_0x488d7b)['root']?homedir():_0x488d7b;return join(_0x2496f9,LOCAL_CACHE_DIR);}export function getCachePath(_0x46c0e7){return join(getCacheDir(),_0x46c0e7);}function ensureCacheDir(){const _0x342db7=getCacheDir();!existsSync(_0x342db7)&&mkdirSync(_0x342db7,{'recursive':!![]});}function readCacheJson(_0x4f010e){const _0x3ebfe8=a162_0x22c1,_0x3e7372=getCachePath(_0x4f010e);if(!existsSync(_0x3e7372))return undefined;try{const _0x2dac57=readFileSync(_0x3e7372,_0x3ebfe8(0x15a));return JSON[_0x3ebfe8(0x157)](_0x2dac57);}catch{return undefined;}}function writeCacheJson(_0x4d0111,_0x2f34){const _0x37eeca=a162_0x22c1;ensureCacheDir(),writeFileSync(getCachePath(_0x4d0111),JSON['stringify'](_0x2f34,null,0x2),_0x37eeca(0x15a));}function readCacheText(_0x115139){const _0x39eedf=a162_0x22c1,_0x2a15fc=getCachePath(_0x115139);if(!existsSync(_0x2a15fc))return undefined;try{return readFileSync(_0x2a15fc,_0x39eedf(0x15a));}catch{return undefined;}}function a162_0x22c1(_0x51f8b1,_0x5de1d6){_0x51f8b1=_0x51f8b1-0x14f;const _0x5be668=a162_0x5be6();let _0x22c140=_0x5be668[_0x51f8b1];return _0x22c140;}function writeCacheText(_0x20c88c,_0x333a2b){const _0x431c4b=a162_0x22c1;ensureCacheDir(),writeFileSync(getCachePath(_0x20c88c),_0x333a2b,_0x431c4b(0x15a));}function clearCache(_0x22932d){const _0x590e1e=getCachePath(_0x22932d);if(existsSync(_0x590e1e))try{unlinkSync(_0x590e1e);}catch{}}function cacheExists(_0x3114f5){return existsSync(getCachePath(_0x3114f5));}export function createCache(_0x2d72c6,_0x556109){return registerCacheKey(_0x2d72c6,_0x556109),{'read':()=>readCacheJson(_0x2d72c6),'write':_0x19014f=>writeCacheJson(_0x2d72c6,_0x19014f),'clear':()=>clearCache(_0x2d72c6),'exists':()=>cacheExists(_0x2d72c6),'path':()=>getCachePath(_0x2d72c6)};}export function createTextCache(_0xb68f1d,_0x37a361){const _0x5a79fc=a162_0x22c1;return registerCacheKey(_0xb68f1d,_0x37a361),{'read':()=>readCacheText(_0xb68f1d)?.[_0x5a79fc(0x14f)]()||undefined,'write':_0x143221=>writeCacheText(_0xb68f1d,_0x143221),'clear':()=>clearCache(_0xb68f1d),'exists':()=>cacheExists(_0xb68f1d),'path':()=>getCachePath(_0xb68f1d)};}export function clearRegistry(){const _0x294af9=a162_0x22c1;registry[_0x294af9(0x15f)]();}
@@ -1 +1 @@
1
- const a163_0x5609f5=a163_0x4e57;function a163_0x45eb(){const _0x5915d4=['colors','TRACE','24HVpiIH','colorLevel','DEBUG','message','4005856FDtoOA','format',']\x20[','2408652WgFcMb','879445jSsiTN','green','timestamp','Chalk','378985ehTlKg','ERROR','WARN','cyan','gray','INFO','211196jPaqUA','4203UwQIyR','1267275qjZgrK','level','red','component','1756rfTrgt','chalk'];a163_0x45eb=function(){return _0x5915d4;};return a163_0x45eb();}(function(_0x56f180,_0xe70b5f){const _0x278485=a163_0x4e57,_0x204285=_0x56f180();while(!![]){try{const _0x4866ff=parseInt(_0x278485(0x118))/0x1+parseInt(_0x278485(0x11e))/0x2+parseInt(_0x278485(0x11f))/0x3*(-parseInt(_0x278485(0x124))/0x4)+parseInt(_0x278485(0x120))/0x5+parseInt(_0x278485(0x128))/0x6*(-parseInt(_0x278485(0x114))/0x7)+parseInt(_0x278485(0x12c))/0x8+parseInt(_0x278485(0x12f))/0x9;if(_0x4866ff===_0xe70b5f)break;else _0x204285['push'](_0x204285['shift']());}catch(_0x45613f){_0x204285['push'](_0x204285['shift']());}}}(a163_0x45eb,0x5eed3));import a163_0x1e6640 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x1e6640,ChalkClass=chalkModule[a163_0x5609f5(0x117)]||chalkModule['default']?.[a163_0x5609f5(0x117)];function a163_0x4e57(_0x4e7661,_0x82bb0b){_0x4e7661=_0x4e7661-0x114;const _0x45ebff=a163_0x45eb();let _0x4e5705=_0x45ebff[_0x4e7661];return _0x4e5705;}export class DefaultLogFormatter{[a163_0x5609f5(0x126)];[a163_0x5609f5(0x125)];constructor(_0x41c12f={}){const _0x306241=a163_0x5609f5;this['colors']=_0x41c12f[_0x306241(0x126)]??![],this[_0x306241(0x125)]=_0x41c12f[_0x306241(0x126)]&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x1e6640;}[a163_0x5609f5(0x12d)](_0x250bc6){const _0x1e2f94=a163_0x5609f5,_0x57d0ca=formatTimestamp(_0x250bc6[_0x1e2f94(0x116)]),_0x22520e=logLevelToString(_0x250bc6[_0x1e2f94(0x121)]);if(!this[_0x1e2f94(0x126)])return _0x57d0ca+'\x20['+_0x22520e+_0x1e2f94(0x12e)+_0x250bc6[_0x1e2f94(0x123)]+']\x20'+_0x250bc6[_0x1e2f94(0x12b)];const _0x3da206=this[_0x1e2f94(0x125)]['dim'](_0x57d0ca),_0x122a36=this[_0x1e2f94(0x129)](_0x22520e,_0x250bc6[_0x1e2f94(0x121)]),_0x42ab61=this['chalk']['blue']('['+_0x250bc6[_0x1e2f94(0x123)]+']');return _0x3da206+'\x20'+_0x122a36+'\x20'+_0x42ab61+'\x20'+_0x250bc6[_0x1e2f94(0x12b)];}[a163_0x5609f5(0x129)](_0x12b0fb,_0x35e7e2){const _0x205aee=a163_0x5609f5;switch(_0x35e7e2){case LogLevel[_0x205aee(0x127)]:return this[_0x205aee(0x125)][_0x205aee(0x11c)]('['+_0x12b0fb+']');case LogLevel[_0x205aee(0x12a)]:return this[_0x205aee(0x125)][_0x205aee(0x115)]('['+_0x12b0fb+']');case LogLevel[_0x205aee(0x11d)]:return this[_0x205aee(0x125)][_0x205aee(0x11b)]('['+_0x12b0fb+']');case LogLevel[_0x205aee(0x11a)]:return this[_0x205aee(0x125)]['yellow']('['+_0x12b0fb+']');case LogLevel[_0x205aee(0x119)]:return this['chalk'][_0x205aee(0x122)]('['+_0x12b0fb+']');default:return'['+_0x12b0fb+']';}}}
1
+ const a163_0x4cdf88=a163_0x371f;(function(_0xfd96c3,_0xf7ea12){const _0x426ec9=a163_0x371f,_0x1bf59e=_0xfd96c3();while(!![]){try{const _0x494650=-parseInt(_0x426ec9(0x139))/0x1*(parseInt(_0x426ec9(0x12e))/0x2)+-parseInt(_0x426ec9(0x12d))/0x3*(-parseInt(_0x426ec9(0x130))/0x4)+-parseInt(_0x426ec9(0x133))/0x5*(parseInt(_0x426ec9(0x149))/0x6)+parseInt(_0x426ec9(0x146))/0x7*(-parseInt(_0x426ec9(0x144))/0x8)+parseInt(_0x426ec9(0x137))/0x9*(-parseInt(_0x426ec9(0x13a))/0xa)+parseInt(_0x426ec9(0x131))/0xb*(-parseInt(_0x426ec9(0x13f))/0xc)+-parseInt(_0x426ec9(0x138))/0xd*(-parseInt(_0x426ec9(0x134))/0xe);if(_0x494650===_0xf7ea12)break;else _0x1bf59e['push'](_0x1bf59e['shift']());}catch(_0x56b9aa){_0x1bf59e['push'](_0x1bf59e['shift']());}}}(a163_0x2164,0xcbda8));import a163_0x1840d5 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x1840d5,ChalkClass=chalkModule[a163_0x4cdf88(0x14a)]||chalkModule['default']?.[a163_0x4cdf88(0x14a)];function a163_0x371f(_0x2500a8,_0x1e839e){_0x2500a8=_0x2500a8-0x12d;const _0x216446=a163_0x2164();let _0x371f6b=_0x216446[_0x2500a8];return _0x371f6b;}export class DefaultLogFormatter{[a163_0x4cdf88(0x14c)];[a163_0x4cdf88(0x12f)];constructor(_0x548dd9={}){const _0x2d7ba5=a163_0x4cdf88;this[_0x2d7ba5(0x14c)]=_0x548dd9[_0x2d7ba5(0x14c)]??![],this['chalk']=_0x548dd9[_0x2d7ba5(0x14c)]&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x1840d5;}[a163_0x4cdf88(0x143)](_0x56b6cc){const _0x3628da=a163_0x4cdf88,_0x5b7196=formatTimestamp(_0x56b6cc[_0x3628da(0x13d)]),_0x4a8f24=logLevelToString(_0x56b6cc[_0x3628da(0x142)]);if(!this[_0x3628da(0x14c)])return _0x5b7196+'\x20['+_0x4a8f24+_0x3628da(0x13c)+_0x56b6cc[_0x3628da(0x14d)]+']\x20'+_0x56b6cc[_0x3628da(0x140)];const _0x1db055=this[_0x3628da(0x12f)][_0x3628da(0x14b)](_0x5b7196),_0x4ea0b6=this[_0x3628da(0x145)](_0x4a8f24,_0x56b6cc['level']),_0x1c7ba0=this[_0x3628da(0x12f)][_0x3628da(0x135)]('['+_0x56b6cc[_0x3628da(0x14d)]+']');return _0x1db055+'\x20'+_0x4ea0b6+'\x20'+_0x1c7ba0+'\x20'+_0x56b6cc['message'];}[a163_0x4cdf88(0x145)](_0x15baad,_0x9b4d50){const _0x8ad192=a163_0x4cdf88;switch(_0x9b4d50){case LogLevel[_0x8ad192(0x147)]:return this[_0x8ad192(0x12f)][_0x8ad192(0x132)]('['+_0x15baad+']');case LogLevel[_0x8ad192(0x13e)]:return this[_0x8ad192(0x12f)][_0x8ad192(0x141)]('['+_0x15baad+']');case LogLevel['INFO']:return this[_0x8ad192(0x12f)][_0x8ad192(0x136)]('['+_0x15baad+']');case LogLevel['WARN']:return this[_0x8ad192(0x12f)][_0x8ad192(0x148)]('['+_0x15baad+']');case LogLevel[_0x8ad192(0x13b)]:return this[_0x8ad192(0x12f)]['red']('['+_0x15baad+']');default:return'['+_0x15baad+']';}}}function a163_0x2164(){const _0x3ca08e=['Chalk','dim','colors','component','711venodd','228084mSHADt','chalk','9608UEumoZ','8272286UdmJsS','gray','835lgSyEq','28VyJCkW','blue','cyan','512109LZKeoJ','29288155OcrbpZ','10jpMXSA','70gxeQJg','ERROR',']\x20[','timestamp','DEBUG','12WZiVsz','message','green','level','format','2976CgFEAa','colorLevel','19999XaruZQ','TRACE','yellow','31854yLHKZL'];a163_0x2164=function(){return _0x3ca08e;};return a163_0x2164();}
@@ -1 +1 @@
1
- (function(_0x1d2000,_0x373f1d){var _0x6317df=a164_0xde52,_0x42261a=_0x1d2000();while(!![]){try{var _0x31fc17=parseInt(_0x6317df(0x176))/0x1+-parseInt(_0x6317df(0x179))/0x2+-parseInt(_0x6317df(0x17a))/0x3+-parseInt(_0x6317df(0x178))/0x4+parseInt(_0x6317df(0x17b))/0x5*(-parseInt(_0x6317df(0x177))/0x6)+parseInt(_0x6317df(0x17c))/0x7*(-parseInt(_0x6317df(0x17d))/0x8)+parseInt(_0x6317df(0x17e))/0x9;if(_0x31fc17===_0x373f1d)break;else _0x42261a['push'](_0x42261a['shift']());}catch(_0x5e5e4c){_0x42261a['push'](_0x42261a['shift']());}}}(a164_0x567f,0x9ea25));function a164_0x567f(){var _0x148bce=['119qedRbT','473080eVkynN','36909774XUtWFP','1003433imgnfi','3835482UReQBm','1176580boqmEW','1536858pbuxSm','3325173yFzMBo','10NMJeXv'];a164_0x567f=function(){return _0x148bce;};return a164_0x567f();}function a164_0xde52(_0x5c14ec,_0x4f2cd9){_0x5c14ec=_0x5c14ec-0x176;var _0x567f5c=a164_0x567f();var _0xde5274=_0x567f5c[_0x5c14ec];return _0xde5274;}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x1f5912,_0x494795){var _0x32914b=a164_0x1477,_0x398303=_0x1f5912();while(!![]){try{var _0x5d1600=-parseInt(_0x32914b(0xf1))/0x1+-parseInt(_0x32914b(0xf3))/0x2*(-parseInt(_0x32914b(0xf4))/0x3)+-parseInt(_0x32914b(0xed))/0x4+parseInt(_0x32914b(0xef))/0x5+-parseInt(_0x32914b(0xf2))/0x6*(parseInt(_0x32914b(0xee))/0x7)+parseInt(_0x32914b(0xf0))/0x8+parseInt(_0x32914b(0xec))/0x9;if(_0x5d1600===_0x494795)break;else _0x398303['push'](_0x398303['shift']());}catch(_0x318ea0){_0x398303['push'](_0x398303['shift']());}}}(a164_0x314e,0x9f566));function a164_0x314e(){var _0x2ceb54=['3315730dAqwKY','7446152nPprVD','1286244ioQdFD','6MNyoXE','3620tZZFkR','1686kNcykb','7021926KABqKI','1669640pHQOvi','7245343dOzMPH'];a164_0x314e=function(){return _0x2ceb54;};return a164_0x314e();}function a164_0x1477(_0x55d2ca,_0x4a6d47){_0x55d2ca=_0x55d2ca-0xec;var _0x314ec3=a164_0x314e();var _0x147787=_0x314ec3[_0x55d2ca];return _0x147787;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a165_0x13fcc1=a165_0x4874;function a165_0x4874(_0x59c397,_0x3e4b6b){_0x59c397=_0x59c397-0x112;const _0x5b4446=a165_0x5b44();let _0x48746c=_0x5b4446[_0x59c397];return _0x48746c;}(function(_0x5f1170,_0x321c34){const _0x4643db=a165_0x4874,_0x5d402b=_0x5f1170();while(!![]){try{const _0x407046=-parseInt(_0x4643db(0x120))/0x1+-parseInt(_0x4643db(0x11b))/0x2*(parseInt(_0x4643db(0x122))/0x3)+-parseInt(_0x4643db(0x113))/0x4*(parseInt(_0x4643db(0x115))/0x5)+-parseInt(_0x4643db(0x11a))/0x6+parseInt(_0x4643db(0x114))/0x7+parseInt(_0x4643db(0x119))/0x8+parseInt(_0x4643db(0x11e))/0x9;if(_0x407046===_0x321c34)break;else _0x5d402b['push'](_0x5d402b['shift']());}catch(_0x1c63dd){_0x5d402b['push'](_0x5d402b['shift']());}}}(a165_0x5b44,0xb287b));function a165_0x5b44(){const _0x5729e1=['colors','formatter','148052dIauFK','1896531jSUasa','35GqGPwu','log','useStderr','WARN','5201200nIXTiy','1336380dwWbdW','2QLpDGX','minLevel','format','12098034iFVnDW','error','81181jZJHrA','handle','2913144GyHkMd'];a165_0x5b44=function(){return _0x5729e1;};return a165_0x5b44();}import{LogLevel as a165_0x19d2d2}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x13fcc1(0x11c)];[a165_0x13fcc1(0x117)];[a165_0x13fcc1(0x112)];constructor(_0x193504={}){const _0x1c588f=a165_0x13fcc1;this[_0x1c588f(0x11c)]=_0x193504[_0x1c588f(0x11c)]??a165_0x19d2d2[_0x1c588f(0x118)],this[_0x1c588f(0x117)]=_0x193504[_0x1c588f(0x117)]??!![],this[_0x1c588f(0x112)]=new DefaultLogFormatter({'colors':_0x193504[_0x1c588f(0x123)]??!![]});}[a165_0x13fcc1(0x121)](_0x361da5){const _0x444653=a165_0x13fcc1;if(_0x361da5['level']<this['minLevel'])return;const _0xcaf7ca=this[_0x444653(0x112)][_0x444653(0x11d)](_0x361da5);this[_0x444653(0x117)]&&_0x361da5['level']>=a165_0x19d2d2[_0x444653(0x118)]?console[_0x444653(0x11f)](_0xcaf7ca):console[_0x444653(0x116)](_0xcaf7ca);}}
1
+ function a165_0x552c(_0xf57e57,_0xc91dc2){_0xf57e57=_0xf57e57-0x17b;const _0x98d372=a165_0x98d3();let _0x552c53=_0x98d372[_0xf57e57];return _0x552c53;}function a165_0x98d3(){const _0x4272b8=['format','48nXCMmu','875428IXOtlX','log','563510eZsKQl','formatter','error','minLevel','level','2611vdzOUY','307785OWpaab','1062369FviMYK','WARN','40385HNuAfB','70FoUFru','9MndmDR','475336GrUdlz','useStderr','21QFEvDy'];a165_0x98d3=function(){return _0x4272b8;};return a165_0x98d3();}const a165_0x17456d=a165_0x552c;(function(_0x25c417,_0x33fe5c){const _0x5425ea=a165_0x552c,_0x45dde2=_0x25c417();while(!![]){try{const _0xf74755=-parseInt(_0x5425ea(0x17b))/0x1*(-parseInt(_0x5425ea(0x180))/0x2)+parseInt(_0x5425ea(0x17c))/0x3+-parseInt(_0x5425ea(0x187))/0x4+-parseInt(_0x5425ea(0x17f))/0x5*(parseInt(_0x5425ea(0x186))/0x6)+-parseInt(_0x5425ea(0x184))/0x7*(-parseInt(_0x5425ea(0x182))/0x8)+parseInt(_0x5425ea(0x181))/0x9*(-parseInt(_0x5425ea(0x189))/0xa)+parseInt(_0x5425ea(0x17d))/0xb;if(_0xf74755===_0x33fe5c)break;else _0x45dde2['push'](_0x45dde2['shift']());}catch(_0x3d33d1){_0x45dde2['push'](_0x45dde2['shift']());}}}(a165_0x98d3,0x1f7da));import{LogLevel as a165_0x535050}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x17456d(0x18c)];['useStderr'];[a165_0x17456d(0x18a)];constructor(_0x1ad586={}){const _0x4ec09e=a165_0x17456d;this[_0x4ec09e(0x18c)]=_0x1ad586[_0x4ec09e(0x18c)]??a165_0x535050[_0x4ec09e(0x17e)],this[_0x4ec09e(0x183)]=_0x1ad586[_0x4ec09e(0x183)]??!![],this[_0x4ec09e(0x18a)]=new DefaultLogFormatter({'colors':_0x1ad586['colors']??!![]});}['handle'](_0x2ba7f4){const _0x52c17c=a165_0x17456d;if(_0x2ba7f4[_0x52c17c(0x18d)]<this[_0x52c17c(0x18c)])return;const _0x193e0e=this[_0x52c17c(0x18a)][_0x52c17c(0x185)](_0x2ba7f4);this[_0x52c17c(0x183)]&&_0x2ba7f4[_0x52c17c(0x18d)]>=a165_0x535050[_0x52c17c(0x17e)]?console[_0x52c17c(0x18b)](_0x193e0e):console[_0x52c17c(0x188)](_0x193e0e);}}
@@ -1 +1 @@
1
- function a166_0x4582(){const _0x2f99ae=['176450xepFwc','165uFAkwB','error','1104932YGHIbR','logBaseName','rotate','logPath','test','format','handle','1278dIbGEc','replace','mtime','filter','logDir','10416LyyTnP','init','255431TBNqok','split','Warning:\x20Failed\x20to\x20compress\x20','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','120657JKbdaE','2KdvYXC','30khOMmM','854763RzcfYL','filePath','logStream','write','100314vgfpRF','includes','.log','logFileName','rotateOldLogs','logs'];a166_0x4582=function(){return _0x2f99ae;};return a166_0x4582();}const a166_0x82b928=a166_0x261a;function a166_0x261a(_0x51bfba,_0x5deeed){_0x51bfba=_0x51bfba-0xaa;const _0x4582c0=a166_0x4582();let _0x261a90=_0x4582c0[_0x51bfba];return _0x261a90;}(function(_0xf31fa8,_0x481bc3){const _0x1051e0=a166_0x261a,_0x107645=_0xf31fa8();while(!![]){try{const _0x5a8956=parseInt(_0x1051e0(0xc7))/0x1+-parseInt(_0x1051e0(0xaa))/0x2*(parseInt(_0x1051e0(0xcb))/0x3)+-parseInt(_0x1051e0(0xb9))/0x4+parseInt(_0x1051e0(0xab))/0x5*(-parseInt(_0x1051e0(0xb0))/0x6)+parseInt(_0x1051e0(0xac))/0x7+parseInt(_0x1051e0(0xc5))/0x8*(parseInt(_0x1051e0(0xc0))/0x9)+parseInt(_0x1051e0(0xb6))/0xa*(parseInt(_0x1051e0(0xb7))/0xb);if(_0x5a8956===_0x481bc3)break;else _0x107645['push'](_0x107645['shift']());}catch(_0x2ff2e5){_0x107645['push'](_0x107645['shift']());}}}(a166_0x4582,0x642dd));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a166_0x82b928(0xbc)];[a166_0x82b928(0xc4)];[a166_0x82b928(0xb3)];['logBaseName'];[a166_0x82b928(0xae)]=null;[a166_0x82b928(0xbb)];constructor(_0xc12ad={}){const _0xc3f11f=a166_0x82b928;this[_0xc3f11f(0xbc)]=_0xc12ad[_0xc3f11f(0xad)]??join(getGlobalCacheDir(),_0xc3f11f(0xb5),'tdx.log'),this[_0xc3f11f(0xc4)]=dirname(this[_0xc3f11f(0xbc)]),this[_0xc3f11f(0xb3)]=basename(this[_0xc3f11f(0xbc)]),this[_0xc3f11f(0xba)]=this[_0xc3f11f(0xb3)]['replace'](/\.log$/,''),this[_0xc3f11f(0xbb)]=_0xc12ad['rotate']??!![];}async[a166_0x82b928(0xc6)](){const _0x39171a=a166_0x82b928;try{await mkdir(this[_0x39171a(0xc4)],{'recursive':!![]}),this['rotate']&&await this[_0x39171a(0xb4)](),this[_0x39171a(0xae)]=createWriteStream(this[_0x39171a(0xbc)],{'flags':'a'}),this[_0x39171a(0xae)]['on'](_0x39171a(0xb8),_0x1223c4=>{const _0x8cd983=_0x39171a;console['error']('Warning:\x20Error\x20writing\x20to\x20'+this[_0x8cd983(0xb3)]+':',_0x1223c4['message']);});}catch(_0x4042cf){console['error'](_0x39171a(0xca),_0x4042cf);}}[a166_0x82b928(0xbf)](_0x162c89){const _0x51e92f=a166_0x82b928;if(!this[_0x51e92f(0xae)])return;const _0x5429da=Logger[_0x51e92f(0xbe)](_0x162c89);this[_0x51e92f(0xae)][_0x51e92f(0xaf)](_0x5429da+'\x0a');}async['close'](){return new Promise(_0x4ade91=>{const _0x40b68b=a166_0x261a;this[_0x40b68b(0xae)]?this[_0x40b68b(0xae)]['end'](()=>{this['logStream']=null,_0x4ade91();}):_0x4ade91();});}['getLogPath'](){const _0x302bb0=a166_0x82b928;return this[_0x302bb0(0xbc)];}async[a166_0x82b928(0xb4)](){const _0x1f0f13=a166_0x82b928;try{const _0x535142=await readdir(this[_0x1f0f13(0xc4)]),_0x1a5f41=new Date()['toISOString']()[_0x1f0f13(0xc8)]('T')[0x0];if(_0x535142[_0x1f0f13(0xb1)](this[_0x1f0f13(0xb3)])){const _0x4701cf=join(this['logDir'],this['logFileName']),_0x6b2c33=await stat(_0x4701cf),_0x2b9268=new Date(_0x6b2c33[_0x1f0f13(0xc2)])['toISOString']()[_0x1f0f13(0xc8)]('T')[0x0];if(_0x2b9268<_0x1a5f41){const _0x1c0d7c=join(this['logDir'],this[_0x1f0f13(0xba)]+'-'+_0x2b9268+_0x1f0f13(0xb2));await rename(_0x4701cf,_0x1c0d7c);}}const _0x5b4b64=await readdir(this[_0x1f0f13(0xc4)]),_0x2967f5=this['logBaseName'][_0x1f0f13(0xc1)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x19e565=new RegExp('^'+_0x2967f5+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x359161=_0x5b4b64[_0x1f0f13(0xc3)](_0x2ca011=>_0x19e565[_0x1f0f13(0xbd)](_0x2ca011));for(const _0x3a85e4 of _0x359161){const _0x4df566=join(this[_0x1f0f13(0xc4)],_0x3a85e4),_0x4e3412=join(this[_0x1f0f13(0xc4)],_0x3a85e4+'.gz');try{await pipeline(createReadStream(_0x4df566),createGzip(),createWriteStream(_0x4e3412)),await unlink(_0x4df566);}catch(_0x500677){console['error'](_0x1f0f13(0xc9)+_0x3a85e4+':',_0x500677);}}}catch{}}}
1
+ const a166_0x590764=a166_0x241f;(function(_0x5d2705,_0x2e1733){const _0x14567b=a166_0x241f,_0x4d9d73=_0x5d2705();while(!![]){try{const _0x2c158f=parseInt(_0x14567b(0x7b))/0x1*(-parseInt(_0x14567b(0x89))/0x2)+-parseInt(_0x14567b(0x76))/0x3+parseInt(_0x14567b(0x91))/0x4+-parseInt(_0x14567b(0x8d))/0x5+-parseInt(_0x14567b(0x74))/0x6*(-parseInt(_0x14567b(0x87))/0x7)+-parseInt(_0x14567b(0x81))/0x8*(parseInt(_0x14567b(0x77))/0x9)+parseInt(_0x14567b(0x94))/0xa;if(_0x2c158f===_0x2e1733)break;else _0x4d9d73['push'](_0x4d9d73['shift']());}catch(_0x240612){_0x4d9d73['push'](_0x4d9d73['shift']());}}}(a166_0x2f5d,0x9fe1d));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a166_0x2f5d(){const _0x10e06c=['logFileName','Warning:\x20Error\x20writing\x20to\x20','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','tdx.log','toISOString','77igMDEu','message','59420xWKaAv','format','handle','end','3371095VFBzZK','mtime','error','filter','4115176JXUZmp','logStream','split','5439520mOTevL','logDir','rotateOldLogs','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','636198eZePOC','rotate','1590093ZZqyPr','1152324tLiiVu','logs','logBaseName','logPath','21fAcCjV','init','replace','.gz','close','Warning:\x20Failed\x20to\x20compress\x20','16OXCEUH'];a166_0x2f5d=function(){return _0x10e06c;};return a166_0x2f5d();}function a166_0x241f(_0xe16bac,_0x4e391d){_0xe16bac=_0xe16bac-0x71;const _0x2f5d8d=a166_0x2f5d();let _0x241f85=_0x2f5d8d[_0xe16bac];return _0x241f85;}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a166_0x590764(0x7a)];['logDir'];[a166_0x590764(0x82)];[a166_0x590764(0x79)];['logStream']=null;[a166_0x590764(0x75)];constructor(_0x1de991={}){const _0xf1602a=a166_0x590764;this[_0xf1602a(0x7a)]=_0x1de991['filePath']??join(getGlobalCacheDir(),_0xf1602a(0x78),_0xf1602a(0x85)),this[_0xf1602a(0x71)]=dirname(this[_0xf1602a(0x7a)]),this[_0xf1602a(0x82)]=basename(this[_0xf1602a(0x7a)]),this[_0xf1602a(0x79)]=this[_0xf1602a(0x82)][_0xf1602a(0x7d)](/\.log$/,''),this[_0xf1602a(0x75)]=_0x1de991[_0xf1602a(0x75)]??!![];}async[a166_0x590764(0x7c)](){const _0x283b55=a166_0x590764;try{await mkdir(this[_0x283b55(0x71)],{'recursive':!![]}),this[_0x283b55(0x75)]&&await this[_0x283b55(0x72)](),this[_0x283b55(0x92)]=createWriteStream(this[_0x283b55(0x7a)],{'flags':'a'}),this[_0x283b55(0x92)]['on'](_0x283b55(0x8f),_0x30de99=>{const _0x4e6502=_0x283b55;console[_0x4e6502(0x8f)](_0x4e6502(0x83)+this[_0x4e6502(0x82)]+':',_0x30de99[_0x4e6502(0x88)]);});}catch(_0x104ef7){console[_0x283b55(0x8f)](_0x283b55(0x84),_0x104ef7);}}[a166_0x590764(0x8b)](_0x2001e3){const _0x1ea959=a166_0x590764;if(!this[_0x1ea959(0x92)])return;const _0x3e28c9=Logger[_0x1ea959(0x8a)](_0x2001e3);this[_0x1ea959(0x92)]['write'](_0x3e28c9+'\x0a');}async[a166_0x590764(0x7f)](){return new Promise(_0x56212b=>{const _0x51e109=a166_0x241f;this[_0x51e109(0x92)]?this[_0x51e109(0x92)][_0x51e109(0x8c)](()=>{const _0x7bd401=_0x51e109;this[_0x7bd401(0x92)]=null,_0x56212b();}):_0x56212b();});}['getLogPath'](){const _0x28b752=a166_0x590764;return this[_0x28b752(0x7a)];}async['rotateOldLogs'](){const _0x1f2152=a166_0x590764;try{const _0xf866e=await readdir(this[_0x1f2152(0x71)]),_0x1095e6=new Date()[_0x1f2152(0x86)]()[_0x1f2152(0x93)]('T')[0x0];if(_0xf866e['includes'](this['logFileName'])){const _0x576b16=join(this[_0x1f2152(0x71)],this[_0x1f2152(0x82)]),_0x2a20a1=await stat(_0x576b16),_0x175cb7=new Date(_0x2a20a1[_0x1f2152(0x8e)])[_0x1f2152(0x86)]()[_0x1f2152(0x93)]('T')[0x0];if(_0x175cb7<_0x1095e6){const _0xca84a2=join(this[_0x1f2152(0x71)],this['logBaseName']+'-'+_0x175cb7+'.log');await rename(_0x576b16,_0xca84a2);}}const _0x11c9e5=await readdir(this[_0x1f2152(0x71)]),_0xc5392d=this[_0x1f2152(0x79)][_0x1f2152(0x7d)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x9c21d2=new RegExp('^'+_0xc5392d+_0x1f2152(0x73)),_0x99253f=_0x11c9e5[_0x1f2152(0x90)](_0x3c5d22=>_0x9c21d2['test'](_0x3c5d22));for(const _0xc5219a of _0x99253f){const _0x49ecb8=join(this[_0x1f2152(0x71)],_0xc5219a),_0x21a44b=join(this['logDir'],_0xc5219a+_0x1f2152(0x7e));try{await pipeline(createReadStream(_0x49ecb8),createGzip(),createWriteStream(_0x21a44b)),await unlink(_0x49ecb8);}catch(_0x53b1b7){console[_0x1f2152(0x8f)](_0x1f2152(0x80)+_0xc5219a+':',_0x53b1b7);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x3af781,_0x5dd8a7){var _0x10b536=a167_0x430a,_0x24df3c=_0x3af781();while(!![]){try{var _0x3d3dbf=-parseInt(_0x10b536(0x10f))/0x1*(-parseInt(_0x10b536(0x10e))/0x2)+-parseInt(_0x10b536(0x10c))/0x3*(-parseInt(_0x10b536(0x112))/0x4)+parseInt(_0x10b536(0x110))/0x5*(-parseInt(_0x10b536(0x106))/0x6)+-parseInt(_0x10b536(0x108))/0x7*(-parseInt(_0x10b536(0x107))/0x8)+-parseInt(_0x10b536(0x111))/0x9+-parseInt(_0x10b536(0x10a))/0xa*(parseInt(_0x10b536(0x10b))/0xb)+-parseInt(_0x10b536(0x10d))/0xc*(parseInt(_0x10b536(0x109))/0xd);if(_0x3d3dbf===_0x5dd8a7)break;else _0x24df3c['push'](_0x24df3c['shift']());}catch(_0x520166){_0x24df3c['push'](_0x24df3c['shift']());}}}(a167_0x5981,0x82651));function a167_0x430a(_0x4069fb,_0x146e0a){_0x4069fb=_0x4069fb-0x106;var _0x5981b8=a167_0x5981();var _0x430a56=_0x5981b8[_0x4069fb];return _0x430a56;}function a167_0x5981(){var _0xf1863d=['1300840unmZKd','22mmBLpS','2996163hXXyDV','12DNsiKM','814394ENSNeo','1pZLqOr','118095DIIQHM','2549682qHfnim','4qhOvlA','246oYrvls','5668008guzieE','7WGDGEl','890201TYbUQM'];a167_0x5981=function(){return _0xf1863d;};return a167_0x5981();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x1c1d43,_0xc4b0b5){var _0xa5298a=a167_0x1b67,_0x25c7db=_0x1c1d43();while(!![]){try{var _0xbf513=-parseInt(_0xa5298a(0x113))/0x1+-parseInt(_0xa5298a(0x10e))/0x2+parseInt(_0xa5298a(0x10c))/0x3*(parseInt(_0xa5298a(0x114))/0x4)+-parseInt(_0xa5298a(0x112))/0x5+parseInt(_0xa5298a(0x10f))/0x6+-parseInt(_0xa5298a(0x110))/0x7*(-parseInt(_0xa5298a(0x10b))/0x8)+parseInt(_0xa5298a(0x111))/0x9*(parseInt(_0xa5298a(0x10d))/0xa);if(_0xbf513===_0xc4b0b5)break;else _0x25c7db['push'](_0x25c7db['shift']());}catch(_0x4ff51a){_0x25c7db['push'](_0x25c7db['shift']());}}}(a167_0x2a61,0x5888c));function a167_0x1b67(_0x25dd68,_0x14755a){_0x25dd68=_0x25dd68-0x10b;var _0x2a618e=a167_0x2a61();var _0x1b67c=_0x2a618e[_0x25dd68];return _0x1b67c;}export{FileHandler}from'./file-handler.js';function a167_0x2a61(){var _0x223c69=['408ujzyyw','10WsCiZu','652698HaRsXH','2861202VwfiJa','10983PnXVig','5896863DxuSGs','2314170KEVLHn','647642DpZkOl','9892eVNDsT','1688VzvbCl'];a167_0x2a61=function(){return _0x223c69;};return a167_0x2a61();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a168_0x232d84=a168_0x2219;function a168_0x5ab2(){var _0x854641=['1204389YtQEaZ','4666940sznxBZ','997976oFlJEv','11LQwGVU','1085517mraDtc','112zwqTiY','6lGuFwT','6220ZUpART','8XmQXlC','7530384RPMTuB','handle','5MURjPu','4280122yYpRxl'];a168_0x5ab2=function(){return _0x854641;};return a168_0x5ab2();}function a168_0x2219(_0x282080,_0x1b5f5f){_0x282080=_0x282080-0x173;var _0x5ab2ea=a168_0x5ab2();var _0x2219e4=_0x5ab2ea[_0x282080];return _0x2219e4;}(function(_0x2ba86b,_0x2f1528){var _0x1a3f89=a168_0x2219,_0xaa6fa5=_0x2ba86b();while(!![]){try{var _0x143436=parseInt(_0x1a3f89(0x176))/0x1*(-parseInt(_0x1a3f89(0x174))/0x2)+-parseInt(_0x1a3f89(0x17c))/0x3+parseInt(_0x1a3f89(0x17e))/0x4*(parseInt(_0x1a3f89(0x17a))/0x5)+parseInt(_0x1a3f89(0x175))/0x6*(parseInt(_0x1a3f89(0x17b))/0x7)+-parseInt(_0x1a3f89(0x177))/0x8*(-parseInt(_0x1a3f89(0x173))/0x9)+-parseInt(_0x1a3f89(0x17d))/0xa*(parseInt(_0x1a3f89(0x17f))/0xb)+parseInt(_0x1a3f89(0x178))/0xc;if(_0x143436===_0x2f1528)break;else _0xaa6fa5['push'](_0xaa6fa5['shift']());}catch(_0xecdde7){_0xaa6fa5['push'](_0xaa6fa5['shift']());}}}(a168_0x5ab2,0x5fda0));export class NullHandler{[a168_0x232d84(0x179)](_0x39cd34){}}
1
+ function a168_0x1978(_0x350b57,_0x31370b){_0x350b57=_0x350b57-0x11f;var _0x5b1508=a168_0x5b15();var _0x19788a=_0x5b1508[_0x350b57];return _0x19788a;}(function(_0x411429,_0x188af6){var _0x482ff0=a168_0x1978,_0x772972=_0x411429();while(!![]){try{var _0x4a30ad=-parseInt(_0x482ff0(0x11f))/0x1*(parseInt(_0x482ff0(0x129))/0x2)+-parseInt(_0x482ff0(0x12a))/0x3*(-parseInt(_0x482ff0(0x126))/0x4)+parseInt(_0x482ff0(0x123))/0x5+parseInt(_0x482ff0(0x127))/0x6*(-parseInt(_0x482ff0(0x125))/0x7)+-parseInt(_0x482ff0(0x120))/0x8*(parseInt(_0x482ff0(0x121))/0x9)+parseInt(_0x482ff0(0x124))/0xa*(parseInt(_0x482ff0(0x128))/0xb)+parseInt(_0x482ff0(0x122))/0xc;if(_0x4a30ad===_0x188af6)break;else _0x772972['push'](_0x772972['shift']());}catch(_0x1a68db){_0x772972['push'](_0x772972['shift']());}}}(a168_0x5b15,0x34236));export class NullHandler{['handle'](_0x5d5900){}}function a168_0x5b15(){var _0x145f7c=['11WGvHmp','2dWfeug','1263WsoRki','42473HsILxO','200MOErWo','152757vWThIJ','3061548uhHmcs','1193585EYREFG','2294810bkpKMV','256046zdflVm','2372rECJEt','48CjIcAL'];a168_0x5b15=function(){return _0x145f7c;};return a168_0x5b15();}
@@ -1 +1 @@
1
- function a169_0x3917(){var _0x2fb234=['6825720qEByrs','119dOQbyX','12704CRvFEP','152zKccJy','38904ndWUyc','3767085KrkwIf','8zatTuF','1770oyLdRo','422742VGlTZQ','14798399dbiBzW','907475VltHlJ'];a169_0x3917=function(){return _0x2fb234;};return a169_0x3917();}(function(_0x52c496,_0xfdc163){var _0x91f00d=a169_0x3c34,_0x5aff45=_0x52c496();while(!![]){try{var _0x27805b=-parseInt(_0x91f00d(0x72))/0x1+-parseInt(_0x91f00d(0x76))/0x2*(parseInt(_0x91f00d(0x77))/0x3)+-parseInt(_0x91f00d(0x75))/0x4*(parseInt(_0x91f00d(0x6f))/0x5)+parseInt(_0x91f00d(0x70))/0x6*(parseInt(_0x91f00d(0x74))/0x7)+-parseInt(_0x91f00d(0x6e))/0x8*(-parseInt(_0x91f00d(0x78))/0x9)+parseInt(_0x91f00d(0x73))/0xa+parseInt(_0x91f00d(0x71))/0xb;if(_0x27805b===_0xfdc163)break;else _0x5aff45['push'](_0x5aff45['shift']());}catch(_0x3dcf28){_0x5aff45['push'](_0x5aff45['shift']());}}}(a169_0x3917,0x990b4));function a169_0x3c34(_0xdbcbda,_0x3d4383){_0xdbcbda=_0xdbcbda-0x6e;var _0x39170d=a169_0x3917();var _0x3c348d=_0x39170d[_0xdbcbda];return _0x3c348d;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x860327,_0x41fd52){var _0x216ea3=a169_0x3680,_0x332122=_0x860327();while(!![]){try{var _0x4504fd=-parseInt(_0x216ea3(0x15d))/0x1+parseInt(_0x216ea3(0x164))/0x2*(parseInt(_0x216ea3(0x15c))/0x3)+-parseInt(_0x216ea3(0x15f))/0x4+-parseInt(_0x216ea3(0x161))/0x5+parseInt(_0x216ea3(0x163))/0x6+parseInt(_0x216ea3(0x162))/0x7+parseInt(_0x216ea3(0x15e))/0x8*(parseInt(_0x216ea3(0x160))/0x9);if(_0x4504fd===_0x41fd52)break;else _0x332122['push'](_0x332122['shift']());}catch(_0x596ef5){_0x332122['push'](_0x332122['shift']());}}}(a169_0x29ba,0xcfb06));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a169_0x3680(_0x4ed831,_0x377b56){_0x4ed831=_0x4ed831-0x15c;var _0x29ba10=a169_0x29ba();var _0x36800d=_0x29ba10[_0x4ed831];return _0x36800d;}function a169_0x29ba(){var _0x4064bf=['4466910uuUDGv','1808191SUUNQT','3372582bWvYMr','2ECmqMC','1436622anYKWD','870478HamTHM','24QLdtDu','5235452ydPoil','7872399Fwrgxj'];a169_0x29ba=function(){return _0x4064bf;};return a169_0x29ba();}