@treasuredata/tdx 0.23.1 → 0.24.0

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 (164) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.js +1 -1
  77. package/dist/sdk/client/endpoints.js +1 -1
  78. package/dist/sdk/client/engage-api-client.js +1 -1
  79. package/dist/sdk/client/http-client.js +1 -1
  80. package/dist/sdk/client/llm-api-client.js +1 -1
  81. package/dist/sdk/client/rate-limiter.js +1 -1
  82. package/dist/sdk/client/td-api-client.js +1 -1
  83. package/dist/sdk/client/trino-api-client.js +1 -1
  84. package/dist/sdk/client/workflow-client.js +1 -1
  85. package/dist/sdk/connection-validator.js +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/engage.js +1 -1
  88. package/dist/sdk/errors.js +1 -1
  89. package/dist/sdk/index.js +1 -1
  90. package/dist/sdk/io/index.js +1 -1
  91. package/dist/sdk/io/node-filesystem.js +1 -1
  92. package/dist/sdk/job.js +1 -1
  93. package/dist/sdk/journey.js +1 -1
  94. package/dist/sdk/llm/chat-cache.js +1 -1
  95. package/dist/sdk/llm/index.js +1 -1
  96. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  97. package/dist/sdk/llm/model-factors.js +1 -1
  98. package/dist/sdk/query/index.js +1 -1
  99. package/dist/sdk/query/sql-parser.js +1 -1
  100. package/dist/sdk/schedule.js +1 -1
  101. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  102. package/dist/sdk/segment/fields-display.js +1 -1
  103. package/dist/sdk/segment/file-discovery.js +1 -1
  104. package/dist/sdk/segment/journey-utils.js +1 -1
  105. package/dist/sdk/segment/journey-yaml.js +1 -1
  106. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  107. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  108. package/dist/sdk/segment/pull-workflow.js +1 -1
  109. package/dist/sdk/segment/push-workflow.js +1 -1
  110. package/dist/sdk/segment/resolution-context.js +1 -1
  111. package/dist/sdk/segment/segment-path-parser.js +1 -1
  112. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  113. package/dist/sdk/segment/target-resolution.js +1 -1
  114. package/dist/sdk/segment/tdx-config.js +1 -1
  115. package/dist/sdk/segment/validate-files.js +1 -1
  116. package/dist/sdk/segment/yaml-validator.js +1 -1
  117. package/dist/sdk/segment.js +1 -1
  118. package/dist/sdk/types/index.js +1 -1
  119. package/dist/sdk/types/progress.js +1 -1
  120. package/dist/sdk/user.js +1 -1
  121. package/dist/sdk/util/format-detector.js +1 -1
  122. package/dist/sdk/util/formatters.js +1 -1
  123. package/dist/sdk/util/index.js +1 -1
  124. package/dist/sdk/util/tree-formatter.js +1 -1
  125. package/dist/sdk/workflow/archive-validation.js +1 -1
  126. package/dist/sdk/workflow/clone-workflow.js +1 -1
  127. package/dist/sdk/workflow/index.js +1 -1
  128. package/dist/sdk/workflow/pull-workflow.js +1 -1
  129. package/dist/sdk/workflow/push-workflow.js +1 -1
  130. package/dist/sdk/workflow/tdx-config.js +1 -1
  131. package/dist/sdk/workflow/workflow-utils.js +1 -1
  132. package/dist/test-utils/command-runner.js +1 -1
  133. package/dist/test-utils/factories.js +1 -1
  134. package/dist/test-utils/fixtures.js +1 -1
  135. package/dist/test-utils/http-mock.js +1 -1
  136. package/dist/test-utils/index.js +1 -1
  137. package/dist/utils/async.js +1 -1
  138. package/dist/utils/colors.js +1 -1
  139. package/dist/utils/diff.js +1 -1
  140. package/dist/utils/file-permissions.js +1 -1
  141. package/dist/utils/global-cache.js +1 -1
  142. package/dist/utils/json-loader.js +1 -1
  143. package/dist/utils/local-cache.js +1 -1
  144. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  145. package/dist/utils/logger/formatters/index.js +1 -1
  146. package/dist/utils/logger/handlers/console-handler.js +1 -1
  147. package/dist/utils/logger/handlers/file-handler.js +1 -1
  148. package/dist/utils/logger/handlers/index.js +1 -1
  149. package/dist/utils/logger/handlers/null-handler.js +1 -1
  150. package/dist/utils/logger/index.js +1 -1
  151. package/dist/utils/logger/logger.js +1 -1
  152. package/dist/utils/logger/types.js +1 -1
  153. package/dist/utils/option-validation.js +1 -1
  154. package/dist/utils/port.js +1 -1
  155. package/dist/utils/process.js +1 -1
  156. package/dist/utils/process.js.map +1 -1
  157. package/dist/utils/prompt.js +1 -1
  158. package/dist/utils/spinner.js +1 -1
  159. package/dist/utils/sse-parser.js +1 -1
  160. package/dist/utils/string-utils.js +1 -1
  161. package/dist/utils/table-ref-parser.js +1 -1
  162. package/dist/utils/tdx-logger.js +1 -1
  163. package/dist/utils/version-check.js +1 -1
  164. package/package.json +1 -1
@@ -1 +1 @@
1
- const a149_0x20abd1=a149_0x578e;function a149_0x578e(_0x371e15,_0x338b8b){_0x371e15=_0x371e15-0xe7;const _0x29019e=a149_0x2901();let _0x578efe=_0x29019e[_0x371e15];return _0x578efe;}(function(_0x1ed602,_0x25b81a){const _0x5768ca=a149_0x578e,_0x5e5653=_0x1ed602();while(!![]){try{const _0xfc621e=parseInt(_0x5768ca(0x13a))/0x1+-parseInt(_0x5768ca(0xf0))/0x2+-parseInt(_0x5768ca(0x153))/0x3+parseInt(_0x5768ca(0x102))/0x4+parseInt(_0x5768ca(0x11a))/0x5*(-parseInt(_0x5768ca(0x115))/0x6)+parseInt(_0x5768ca(0x10e))/0x7*(-parseInt(_0x5768ca(0x143))/0x8)+-parseInt(_0x5768ca(0x130))/0x9*(-parseInt(_0x5768ca(0x142))/0xa);if(_0xfc621e===_0x25b81a)break;else _0x5e5653['push'](_0x5e5653['shift']());}catch(_0x4570ec){_0x5e5653['push'](_0x5e5653['shift']());}}}(a149_0x2901,0x1ef26));export const fixtures={'database':{'basic':{'name':a149_0x20abd1(0xfc),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x20abd1(0x137),'permission':a149_0x20abd1(0x119)},'withTables':{'name':a149_0x20abd1(0x14b),'count':0x64,'created_at':a149_0x20abd1(0x13d),'updated_at':a149_0x20abd1(0x145),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x20abd1(0xfd),'schema':JSON[a149_0x20abd1(0x12f)]([['id',a149_0x20abd1(0x141)],[a149_0x20abd1(0xf6),a149_0x20abd1(0xe9)],[a149_0x20abd1(0xff),a149_0x20abd1(0x141)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x20abd1(0x137),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a149_0x20abd1(0x11e),'type':a149_0x20abd1(0xfd),'schema':JSON['stringify']([['event_id',a149_0x20abd1(0x141)],['time',a149_0x20abd1(0xe9)],[a149_0x20abd1(0xe7),a149_0x20abd1(0x141)],[a149_0x20abd1(0xe8),a149_0x20abd1(0x141)],[a149_0x20abd1(0xeb),a149_0x20abd1(0x106)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a149_0x20abd1(0xf9),'name':a149_0x20abd1(0x104),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a149_0x20abd1(0x123),'master_table':{'database':a149_0x20abd1(0x14d),'table':'unified_customers'},'attributes':[{'name':a149_0x20abd1(0x134),'type':a149_0x20abd1(0x141),'key':!![]},{'name':a149_0x20abd1(0x105),'type':a149_0x20abd1(0x141)},{'name':a149_0x20abd1(0x11d),'type':a149_0x20abd1(0x11c)}],'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withBehaviors':{'id':'ps-789012','name':a149_0x20abd1(0x120),'description':a149_0x20abd1(0x149),'status':a149_0x20abd1(0x123),'master_table':{'database':a149_0x20abd1(0x14d),'table':a149_0x20abd1(0x13e)},'behaviors':[{'name':a149_0x20abd1(0x126),'table':{'database':a149_0x20abd1(0x12b),'table':a149_0x20abd1(0x126)},'join_key':a149_0x20abd1(0x134)},{'name':a149_0x20abd1(0x127),'table':{'database':a149_0x20abd1(0x12b),'table':a149_0x20abd1(0x132)},'join_key':'customer_id'}],'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x20abd1(0x114)}},'segment':{'basic':{'id':'cs-456789','name':a149_0x20abd1(0x136),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a149_0x20abd1(0xf9),'status':'active','rules':[{'type':a149_0x20abd1(0x139),'field':'last_login','operator':a149_0x20abd1(0xed),'value':a149_0x20abd1(0xea)}],'count':0x1388,'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withMultipleRules':{'id':a149_0x20abd1(0x129),'name':a149_0x20abd1(0x12e),'description':a149_0x20abd1(0x121),'parent_segment_id':a149_0x20abd1(0xf9),'status':a149_0x20abd1(0x123),'rules':[{'type':a149_0x20abd1(0x139),'field':a149_0x20abd1(0x109),'operator':a149_0x20abd1(0xed),'value':a149_0x20abd1(0xea)},{'type':a149_0x20abd1(0x139),'field':a149_0x20abd1(0xf3),'operator':a149_0x20abd1(0xfb),'value':0x3e8}],'count':0x5dc,'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)}},'journey':{'basic':{'id':a149_0x20abd1(0x152),'name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':a149_0x20abd1(0x108),'version':0x1,'steps':[{'id':a149_0x20abd1(0xf5),'type':a149_0x20abd1(0x150),'duration':'1d'},{'id':a149_0x20abd1(0x14a),'type':a149_0x20abd1(0x124),'activation_id':'act-123'}],'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114)},'withDecision':{'id':a149_0x20abd1(0xf1),'name':a149_0x20abd1(0x100),'description':a149_0x20abd1(0x111),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a149_0x20abd1(0x117),'segment_id':a149_0x20abd1(0x118),'yes_path':a149_0x20abd1(0x14a),'no_path':'step-3'},{'id':a149_0x20abd1(0x14a),'type':'activation','activation_id':a149_0x20abd1(0xee)},{'id':a149_0x20abd1(0x13f),'type':a149_0x20abd1(0x13b)}],'created_at':a149_0x20abd1(0x137),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x20abd1(0xff),'type':a149_0x20abd1(0x138)},{'name':a149_0x20abd1(0x14f),'type':'bigint'}],'data':[[a149_0x20abd1(0x112),a149_0x20abd1(0x125),0x64],['user-2',a149_0x20abd1(0xec),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x20abd1(0x138)},{'name':'name','type':a149_0x20abd1(0x138)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x20abd1(0x11f),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a149_0x20abd1(0x158),'email':a149_0x20abd1(0x151),'created_at':a149_0x20abd1(0x137),'updated_at':a149_0x20abd1(0x114),'administrator':![]},'admin':{'id':0x1,'name':a149_0x20abd1(0x148),'email':a149_0x20abd1(0x144),'created_at':a149_0x20abd1(0x10c),'updated_at':a149_0x20abd1(0x114),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0x12a),'query':a149_0x20abd1(0xef),'start_at':a149_0x20abd1(0x110),'end_at':a149_0x20abd1(0x10d),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x20abd1(0x11b),'database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0x103),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a149_0x20abd1(0x128),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a149_0x20abd1(0x11b),'database':a149_0x20abd1(0xfc),'status':a149_0x20abd1(0xf7),'query':a149_0x20abd1(0x135),'start_at':'2024-01-15T10:10:00Z','end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a149_0x20abd1(0x10f)}},'workflow':{'basic':{'id':a149_0x20abd1(0x12c),'name':a149_0x20abd1(0x14c),'project':a149_0x20abd1(0x131),'revision':a149_0x20abd1(0x10b),'timezone':a149_0x20abd1(0x116),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':a149_0x20abd1(0x154),'project':'data_sync','revision':a149_0x20abd1(0x14e),'timezone':a149_0x20abd1(0x156),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a149_0x20abd1(0x12a),'started_at':a149_0x20abd1(0xfe),'finished_at':a149_0x20abd1(0xf4)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x20abd1(0x10a),'message':a149_0x20abd1(0x10a),'severity':a149_0x20abd1(0xf7),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x20abd1(0x13c),'message':a149_0x20abd1(0x122),'severity':'error','status_code':0x194}},'rateLimited':{'detail':a149_0x20abd1(0xf2)},'rfc9457':{'type':a149_0x20abd1(0xfa),'title':a149_0x20abd1(0x147),'status':0x193,'detail':a149_0x20abd1(0xf8),'instance':'/v3/database/list'}}};export function createDatabase(_0x3e04a7){return{...fixtures['database']['basic'],..._0x3e04a7};}export function createTable(_0xebc011){const _0x4fe9ca=a149_0x20abd1;return{...fixtures[_0x4fe9ca(0x12d)]['basic'],..._0xebc011};}export function createParentSegment(_0x2e716a){const _0x9c2df4=a149_0x20abd1;return{...fixtures[_0x9c2df4(0x133)][_0x9c2df4(0x155)],..._0x2e716a};}export function createSegment(_0x4c79a8){const _0x3ab6e3=a149_0x20abd1;return{...fixtures['segment'][_0x3ab6e3(0x155)],..._0x4c79a8};}export function createJourney(_0x126eea){const _0x53ea2e=a149_0x20abd1;return{...fixtures[_0x53ea2e(0x107)][_0x53ea2e(0x155)],..._0x126eea};}export function createQueryResult(_0xaff0a3){const _0x30dd10=a149_0x20abd1;return{...fixtures[_0x30dd10(0x113)]['basic'],..._0xaff0a3};}export function createUser(_0x51b02a){const _0x57a74a=a149_0x20abd1;return{...fixtures[_0x57a74a(0x140)]['basic'],..._0x51b02a};}export function createJob(_0x557bbf){const _0x6d21cf=a149_0x20abd1;return{...fixtures[_0x6d21cf(0x146)][_0x6d21cf(0x157)],..._0x557bbf};}function a149_0x2901(){const _0x1a7722=['Journey\x20with\x20decision\x20point','user-1','queryResult','2024-01-15T00:00:00Z','41772oBZxtp','UTC','decision_point','cs-456789','administrator','50jlttSz','presto','timestamp','created_at','events','total','Customers\x20with\x20Behaviors','Active\x20users\x20with\x20high\x20lifetime\x20value','The\x20requested\x20resource\x20does\x20not\x20exist','active','activation','Alice','purchases','page_views','2024-01-15T10:05:00Z','cs-111222','success','events_db','wf-12345','table','High\x20Value\x20Active\x20Users','stringify','1089XhbeZL','data_pipeline','pageviews','parentSegment','customer_id','SELECT\x20*\x20FROM\x20nonexistent_table','Active\x20Users','2024-01-01T00:00:00Z','varchar','attribute','121704zkUuRN','end','Resource\x20not\x20found','2023-06-15T10:30:00Z','customers','step-3','user','string','21410gFDJvn','8ZEmvzf','admin@example.com','2024-01-15T08:00:00Z','job','Forbidden','Admin\x20User','Parent\x20segment\x20with\x20behavioral\x20data','step-2','production_db','daily_etl','cdp_db','def456','count','wait','test@example.com','j-abc123','30948GiFPSM','hourly_sync','basic','America/Los_Angeles','completed','Test\x20User','user_id','event_type','long','30d','properties','Bob','TimeWithinPast','act-email','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','242500kbDNhk','j-def456','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','lifetime_value','2024-01-15T09:05:00Z','step-1','time','error','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-123456','https://api.treasuredata.com/errors/forbidden','Greater','test_db','log','2024-01-15T09:00:00Z','name','Purchase\x20Reminder','workflow','398736EeKTCt','running','Test\x20Parent\x20Segment','email','map<string,string>','journey','draft','last_login','Invalid\x20API\x20key','abc123','2023-01-01T00:00:00Z','2024-01-15T10:00:05Z','1067535wFyMPm','Table\x20does\x20not\x20exist:\x20nonexistent_table','2024-01-15T10:00:00Z'];a149_0x2901=function(){return _0x1a7722;};return a149_0x2901();}export function createWorkflow(_0x57ce3c){const _0x4c72bb=a149_0x20abd1;return{...fixtures[_0x4c72bb(0x101)][_0x4c72bb(0x155)],..._0x57ce3c};}
1
+ const a149_0x28f26c=a149_0x2846;(function(_0x50a31f,_0x24905b){const _0x52149d=a149_0x2846,_0x36ec53=_0x50a31f();while(!![]){try{const _0x1005d4=parseInt(_0x52149d(0x1d8))/0x1+-parseInt(_0x52149d(0x1c9))/0x2+-parseInt(_0x52149d(0x1c3))/0x3*(parseInt(_0x52149d(0x1fa))/0x4)+-parseInt(_0x52149d(0x1ef))/0x5+-parseInt(_0x52149d(0x1a4))/0x6*(parseInt(_0x52149d(0x1a6))/0x7)+-parseInt(_0x52149d(0x197))/0x8*(parseInt(_0x52149d(0x1fd))/0x9)+-parseInt(_0x52149d(0x1a2))/0xa*(-parseInt(_0x52149d(0x1f2))/0xb);if(_0x1005d4===_0x24905b)break;else _0x36ec53['push'](_0x36ec53['shift']());}catch(_0x5e8620){_0x36ec53['push'](_0x36ec53['shift']());}}}(a149_0x4bc6,0x1eb11));function a149_0x2846(_0x224cc6,_0x3addf4){_0x224cc6=_0x224cc6-0x187;const _0x4bc6aa=a149_0x4bc6();let _0x2846e2=_0x4bc6aa[_0x224cc6];return _0x2846e2;}export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1c6),'permission':a149_0x28f26c(0x1ab)},'withTables':{'name':a149_0x28f26c(0x1a1),'count':0x64,'created_at':a149_0x28f26c(0x1f6),'updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a149_0x28f26c(0x1d6),'type':a149_0x28f26c(0x1c8),'schema':JSON[a149_0x28f26c(0x1d9)]([['id',a149_0x28f26c(0x1da)],[a149_0x28f26c(0x1d2),a149_0x28f26c(0x1b5)],[a149_0x28f26c(0x18d),a149_0x28f26c(0x1da)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1c6)},'events':{'id':0x303a,'name':a149_0x28f26c(0x1a0),'type':a149_0x28f26c(0x1c8),'schema':JSON[a149_0x28f26c(0x1d9)]([[a149_0x28f26c(0x1ee),a149_0x28f26c(0x1da)],[a149_0x28f26c(0x1d2),a149_0x28f26c(0x1b5)],['user_id',a149_0x28f26c(0x1da)],[a149_0x28f26c(0x1ff),a149_0x28f26c(0x1da)],[a149_0x28f26c(0x1cc),a149_0x28f26c(0x1de)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x28f26c(0x1e9)}},'parentSegment':{'basic':{'id':a149_0x28f26c(0x1b0),'name':a149_0x28f26c(0x1c4),'description':a149_0x28f26c(0x1f1),'status':'active','master_table':{'database':a149_0x28f26c(0x1ea),'table':a149_0x28f26c(0x1e3)},'attributes':[{'name':'customer_id','type':'string','key':!![]},{'name':'email','type':'string'},{'name':a149_0x28f26c(0x1f5),'type':a149_0x28f26c(0x1c5)}],'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8)},'withBehaviors':{'id':a149_0x28f26c(0x1a8),'name':'Customers\x20with\x20Behaviors','description':a149_0x28f26c(0x1ac),'status':a149_0x28f26c(0x1bd),'master_table':{'database':'cdp_db','table':a149_0x28f26c(0x1e2)},'behaviors':[{'name':a149_0x28f26c(0x1e4),'table':{'database':a149_0x28f26c(0x1ba),'table':a149_0x28f26c(0x1e4)},'join_key':a149_0x28f26c(0x18f)},{'name':'page_views','table':{'database':a149_0x28f26c(0x1ba),'table':a149_0x28f26c(0x1c7)},'join_key':a149_0x28f26c(0x18f)}],'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8)}},'segment':{'basic':{'id':a149_0x28f26c(0x1b7),'name':a149_0x28f26c(0x19c),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a149_0x28f26c(0x1b0),'status':a149_0x28f26c(0x1bd),'rules':[{'type':a149_0x28f26c(0x1d0),'field':a149_0x28f26c(0x1d4),'operator':a149_0x28f26c(0x1e7),'value':a149_0x28f26c(0x1a7)}],'count':0x1388,'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8)},'withMultipleRules':{'id':'cs-111222','name':a149_0x28f26c(0x1bb),'description':a149_0x28f26c(0x195),'parent_segment_id':a149_0x28f26c(0x1b0),'status':'active','rules':[{'type':a149_0x28f26c(0x1d0),'field':a149_0x28f26c(0x1d4),'operator':'TimeWithinPast','value':a149_0x28f26c(0x1a7)},{'type':a149_0x28f26c(0x1d0),'field':a149_0x28f26c(0x1d1),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8)}},'journey':{'basic':{'id':a149_0x28f26c(0x1e5),'name':a149_0x28f26c(0x19f),'description':a149_0x28f26c(0x1af),'status':a149_0x28f26c(0x190),'version':0x1,'steps':[{'id':a149_0x28f26c(0x1b8),'type':a149_0x28f26c(0x1c2),'duration':'1d'},{'id':a149_0x28f26c(0x1ca),'type':a149_0x28f26c(0x19a),'activation_id':a149_0x28f26c(0x1f8)}],'created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8)},'withDecision':{'id':a149_0x28f26c(0x1b3),'name':a149_0x28f26c(0x1cb),'description':a149_0x28f26c(0x1a5),'status':a149_0x28f26c(0x1bd),'version':0x2,'steps':[{'id':a149_0x28f26c(0x1b8),'type':'decision_point','segment_id':a149_0x28f26c(0x1b7),'yes_path':a149_0x28f26c(0x1ca),'no_path':'step-3'},{'id':a149_0x28f26c(0x1ca),'type':a149_0x28f26c(0x19a),'activation_id':a149_0x28f26c(0x18b)},{'id':a149_0x28f26c(0x1b4),'type':a149_0x28f26c(0x1df)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x28f26c(0x1e8)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':'varchar'},{'name':a149_0x28f26c(0x1bf),'type':'bigint'}],'data':[[a149_0x28f26c(0x1b9),a149_0x28f26c(0x1d3),0x64],[a149_0x28f26c(0x1f7),a149_0x28f26c(0x1d5),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x28f26c(0x188)},{'name':a149_0x28f26c(0x18d),'type':a149_0x28f26c(0x188)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x28f26c(0x1ce),'type':a149_0x28f26c(0x1e0)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a149_0x28f26c(0x198),'email':'test@example.com','created_at':a149_0x28f26c(0x1c6),'updated_at':a149_0x28f26c(0x1e8),'administrator':![]},'admin':{'id':0x1,'name':a149_0x28f26c(0x1e6),'email':a149_0x28f26c(0x1db),'created_at':'2023-01-01T00:00:00Z','updated_at':a149_0x28f26c(0x1e8),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a149_0x28f26c(0x1ad),'database':a149_0x28f26c(0x19d),'status':a149_0x28f26c(0x1d7),'query':a149_0x28f26c(0x1b2),'start_at':a149_0x28f26c(0x1cd),'end_at':a149_0x28f26c(0x194),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x28f26c(0x1ad),'database':a149_0x28f26c(0x19d),'status':a149_0x28f26c(0x1fb),'query':a149_0x28f26c(0x196),'start_at':a149_0x28f26c(0x1b1),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a149_0x28f26c(0x1ad),'database':a149_0x28f26c(0x19d),'status':a149_0x28f26c(0x1f3),'query':a149_0x28f26c(0x1eb),'start_at':a149_0x28f26c(0x189),'end_at':a149_0x28f26c(0x199),'duration':0x1,'result_size':null,'error':a149_0x28f26c(0x1f0)}},'workflow':{'basic':{'id':'wf-12345','name':a149_0x28f26c(0x1be),'project':a149_0x28f26c(0x1ae),'revision':'abc123','timezone':a149_0x28f26c(0x1aa),'schedule':{'cron':a149_0x28f26c(0x1ec)}},'withSessions':{'id':a149_0x28f26c(0x1f4),'name':a149_0x28f26c(0x18c),'project':a149_0x28f26c(0x1fc),'revision':a149_0x28f26c(0x187),'timezone':a149_0x28f26c(0x1dd),'schedule':{'cron':a149_0x28f26c(0x1e1)},'last_session':{'id':a149_0x28f26c(0x1dc),'status':'success','started_at':a149_0x28f26c(0x1cf),'finished_at':a149_0x28f26c(0x191)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x28f26c(0x1bc),'message':'Invalid\x20API\x20key','severity':a149_0x28f26c(0x1f3),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a149_0x28f26c(0x19e),'severity':a149_0x28f26c(0x1f3),'status_code':0x194}},'rateLimited':{'detail':a149_0x28f26c(0x1a3)},'rfc9457':{'type':a149_0x28f26c(0x1c0),'title':'Forbidden','status':0x193,'detail':a149_0x28f26c(0x200),'instance':a149_0x28f26c(0x1a9)}}};export function createDatabase(_0x1f6f94){const _0x146126=a149_0x28f26c;return{...fixtures[_0x146126(0x18e)]['basic'],..._0x1f6f94};}export function createTable(_0x1797c9){const _0x3d6a1c=a149_0x28f26c;return{...fixtures[_0x3d6a1c(0x192)]['basic'],..._0x1797c9};}export function createParentSegment(_0x138059){const _0xa84dcc=a149_0x28f26c;return{...fixtures[_0xa84dcc(0x1b6)][_0xa84dcc(0x18a)],..._0x138059};}export function createSegment(_0x170c49){const _0x3cf2fc=a149_0x28f26c;return{...fixtures[_0x3cf2fc(0x1f9)][_0x3cf2fc(0x18a)],..._0x170c49};}export function createJourney(_0x2591fc){const _0x57d630=a149_0x28f26c;return{...fixtures[_0x57d630(0x1fe)][_0x57d630(0x18a)],..._0x2591fc};}export function createQueryResult(_0x3a4139){const _0x4c88e7=a149_0x28f26c;return{...fixtures[_0x4c88e7(0x193)]['basic'],..._0x3a4139};}export function createUser(_0x17dc43){const _0x33ad91=a149_0x28f26c;return{...fixtures[_0x33ad91(0x1ed)][_0x33ad91(0x18a)],..._0x17dc43};}function a149_0x4bc6(){const _0x2805cf=['2024-01-01T00:00:00Z','pageviews','log','262602GZYAPN','step-2','Purchase\x20Reminder','properties','2024-01-15T10:00:00Z','total','2024-01-15T09:00:00Z','attribute','lifetime_value','time','Alice','last_login','Bob','users','success','23541ElEEPt','stringify','string','admin@example.com','sess-111','America/Los_Angeles','map<string,string>','end','bigint','0\x20*\x20*\x20*\x20*','customers','unified_customers','purchases','j-abc123','Admin\x20User','TimeWithinPast','2024-01-15T00:00:00Z','2024-01-15T12:00:00Z','cdp_db','SELECT\x20*\x20FROM\x20nonexistent_table','0\x200\x20*\x20*\x20*','user','event_id','421250SWhcaM','Table\x20does\x20not\x20exist:\x20nonexistent_table','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','455818SWmSeY','error','wf-67890','created_at','2023-06-15T10:30:00Z','user-2','act-123','segment','12URLcwK','running','data_sync','9eLmQfK','journey','event_type','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','def456','varchar','2024-01-15T10:10:00Z','basic','act-email','hourly_sync','name','database','customer_id','draft','2024-01-15T09:05:00Z','table','queryResult','2024-01-15T10:00:05Z','Active\x20users\x20with\x20high\x20lifetime\x20value','SELECT\x20COUNT(*)\x20FROM\x20events','295384aaAoBP','Test\x20User','2024-01-15T10:10:01Z','activation','workflow','Active\x20Users','test_db','The\x20requested\x20resource\x20does\x20not\x20exist','Welcome\x20Journey','events','production_db','130meFSDN','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','30MRJMrN','Journey\x20with\x20decision\x20point','56987QHeLDD','30d','ps-789012','/v3/database/list','UTC','administrator','Parent\x20segment\x20with\x20behavioral\x20data','presto','data_pipeline','Onboarding\x20journey\x20for\x20new\x20users','ps-123456','2024-01-15T10:05:00Z','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','j-def456','step-3','long','parentSegment','cs-456789','step-1','user-1','events_db','High\x20Value\x20Active\x20Users','Invalid\x20API\x20key','active','daily_etl','count','https://api.treasuredata.com/errors/forbidden','job','wait','143343XPbVIW','Test\x20Parent\x20Segment','timestamp'];a149_0x4bc6=function(){return _0x2805cf;};return a149_0x4bc6();}export function createJob(_0x21deea){const _0x167cfd=a149_0x28f26c;return{...fixtures[_0x167cfd(0x1c1)]['completed'],..._0x21deea};}export function createWorkflow(_0x5d9512){const _0xb9b27f=a149_0x28f26c;return{...fixtures[_0xb9b27f(0x19b)][_0xb9b27f(0x18a)],..._0x5d9512};}
@@ -1 +1 @@
1
- const a150_0xbc13d7=a150_0x512d;(function(_0x45f859,_0x2d6fbb){const _0x56ea5d=a150_0x512d,_0x5c8604=_0x45f859();while(!![]){try{const _0xb4476e=parseInt(_0x56ea5d(0x13c))/0x1*(parseInt(_0x56ea5d(0x144))/0x2)+parseInt(_0x56ea5d(0x14c))/0x3*(parseInt(_0x56ea5d(0x123))/0x4)+parseInt(_0x56ea5d(0x155))/0x5*(-parseInt(_0x56ea5d(0x130))/0x6)+parseInt(_0x56ea5d(0x14f))/0x7+parseInt(_0x56ea5d(0x128))/0x8*(-parseInt(_0x56ea5d(0x148))/0x9)+-parseInt(_0x56ea5d(0x10e))/0xa*(parseInt(_0x56ea5d(0x151))/0xb)+parseInt(_0x56ea5d(0x10b))/0xc;if(_0xb4476e===_0x2d6fbb)break;else _0x5c8604['push'](_0x5c8604['shift']());}catch(_0x149f5b){_0x5c8604['push'](_0x5c8604['shift']());}}}(a150_0x2218,0xc116c));import{vi}from'vitest';function a150_0x2218(){const _0x589631=['132715vTOFaj','https://api.treasuredata.com/errors/','matched','withBody','997095AvdpWv','join','td-api','map','text/plain','getMatchCount','mockImplementation','Conflict','slice','requests','unnamed\x20stub','31195848bWJLHs','stubs','headers','1090HXCLNy','some','Bad\x20Gateway','Unauthorized','toUpperCase','\x20\x20(none)','Not\x20Found','errorResponse','entries','host','body','Internal\x20Server\x20Error','string','stringify','GET','searchParams','Created','stack','parseRequest','networkError','url','16ujILao','createFetch','verify','parse','every','32RnjntB','withHost','error','Registered\x20stubs:\x0a','reset','pathname','Too\x20Many\x20Requests','matchCount','30wiLgNO','description','application/json','jsonResponseWithHeaders','method','function','filter','forEach','length','No\x20Content','toLowerCase','fetchMock','1USQVlL','Service\x20Unavailable','rfc9457','No\x20stub\x20matched\x20request:\x20','includes','registerWithInspector','jsonResponse','Bad\x20Request','890674BccODj','Request\x20body:\x20','split','getStatusText','1333638hXKsHd','fail','isArray','push','104250dHOYza','Unprocessable\x20Entity','test','3582663IiPGbE','register'];a150_0x2218=function(){return _0x589631;};return a150_0x2218();}function a150_0x512d(_0x453be0,_0x5ac8ed){_0x453be0=_0x453be0-0x102;const _0x221824=a150_0x2218();let _0x512d5d=_0x221824[_0x453be0];return _0x512d5d;}export class HTTPMockRegistry{[a150_0xbc13d7(0x10c)]=[];[a150_0xbc13d7(0x109)]=[];[a150_0xbc13d7(0x13b)]=null;['REST'](_0x12cd26,_0x15c3cf){return _0x3734e9=>{const _0x2a950b=a150_0x512d;if(_0x3734e9[_0x2a950b(0x134)]['toUpperCase']()!==_0x12cd26[_0x2a950b(0x112)]())return![];const _0x59b8e3=new URL(_0x3734e9[_0x2a950b(0x122)]);if(typeof _0x15c3cf===_0x2a950b(0x11a))return _0x59b8e3[_0x2a950b(0x12d)]===_0x15c3cf||_0x59b8e3[_0x2a950b(0x12d)][_0x2a950b(0x140)](_0x15c3cf);return _0x15c3cf[_0x2a950b(0x14e)](_0x59b8e3['pathname']);};}['withQuery'](_0x340046,_0x16833e){return _0x3eab03=>{const _0x2200ed=a150_0x512d;if(!_0x340046(_0x3eab03))return![];const _0x522d8c=new URL(_0x3eab03[_0x2200ed(0x122)]);return Object[_0x2200ed(0x116)](_0x16833e)[_0x2200ed(0x127)](([_0x3252f1,_0x589448])=>_0x522d8c[_0x2200ed(0x11d)]['get'](_0x3252f1)===_0x589448);};}[a150_0xbc13d7(0x154)](_0x5a14c9,_0x53a8d0){return _0x4661a9=>{const _0xbcc38e=a150_0x512d;if(!_0x5a14c9(_0x4661a9))return![];if(typeof _0x53a8d0===_0xbcc38e(0x135))return _0x53a8d0(_0x4661a9[_0xbcc38e(0x118)]);return JSON['stringify'](_0x4661a9[_0xbcc38e(0x118)])===JSON[_0xbcc38e(0x11b)](_0x53a8d0);};}[a150_0xbc13d7(0x129)](_0x4a8bb3,_0x36c32f){return _0x17733e=>{const _0x1b223f=a150_0x512d;if(!_0x4a8bb3(_0x17733e))return![];const _0x3ff4fc=new URL(_0x17733e[_0x1b223f(0x122)]);return _0x3ff4fc[_0x1b223f(0x117)]===_0x36c32f;};}[a150_0xbc13d7(0x150)](_0x506f08,_0x233862,_0x45a10b){const _0x2da925=a150_0xbc13d7;this[_0x2da925(0x10c)][_0x2da925(0x14b)]({'matcher':_0x506f08,'responder':_0x233862,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x45a10b?.[_0x2da925(0x131)]});}[a150_0xbc13d7(0x141)](_0x30b58a,_0x5c10a5,_0x188d64){const _0x33e6de=a150_0xbc13d7,_0x38324d=_0x2dd45f=>{return _0x188d64(_0x2dd45f['body'],_0x2dd45f),_0x5c10a5(_0x2dd45f);};this[_0x33e6de(0x150)](_0x30b58a,_0x38324d);}static[a150_0xbc13d7(0x142)](_0x9d78f3,_0x5a2f92=0xc8){const _0xb988a8=a150_0xbc13d7;return()=>new Response(JSON[_0xb988a8(0x11b)](_0x9d78f3),{'status':_0x5a2f92,'headers':{'Content-Type':_0xb988a8(0x132)}});}static[a150_0xbc13d7(0x115)](_0x53b6e9,_0x403360,_0x2f0c1d='simple'){return()=>{const _0x33c271=a150_0x512d;let _0x338eb6;switch(_0x2f0c1d){case _0x33c271(0x102):_0x338eb6={'errors':{'error':_0x403360,'message':_0x403360,'severity':_0x33c271(0x12a),'status_code':_0x53b6e9}};break;case _0x33c271(0x13e):_0x338eb6={'type':_0x33c271(0x152)+_0x53b6e9,'title':HTTPMockRegistry[_0x33c271(0x147)](_0x53b6e9),'status':_0x53b6e9,'detail':_0x403360};break;default:_0x338eb6={'error':_0x403360};}return new Response(JSON[_0x33c271(0x11b)](_0x338eb6),{'status':_0x53b6e9,'headers':{'Content-Type':_0x33c271(0x132)}});};}static[a150_0xbc13d7(0x133)](_0xa63872,_0x65219e,_0x25ea2f=0xc8){const _0x522b71=a150_0xbc13d7;return()=>new Response(JSON[_0x522b71(0x11b)](_0xa63872),{'status':_0x25ea2f,'headers':{'Content-Type':'application/json',..._0x65219e}});}static['textResponse'](_0xe57343,_0x3f1669=0xc8){const _0x1efb03=a150_0xbc13d7;return()=>new Response(_0xe57343,{'status':_0x3f1669,'headers':{'Content-Type':_0x1efb03(0x104)}});}static[a150_0xbc13d7(0x121)](_0x9d7473){return()=>{throw new Error(_0x9d7473);};}[a150_0xbc13d7(0x124)](){const _0xaf4669=a150_0xbc13d7;return this['fetchMock']=vi['fn']()[_0xaf4669(0x106)](async(_0x4c3498,_0x45d2d3)=>{const _0x45b17d=_0xaf4669,_0x3d3647=this[_0x45b17d(0x120)](_0x4c3498,_0x45d2d3);this[_0x45b17d(0x109)][_0x45b17d(0x14b)](_0x3d3647);for(const _0x4fa38a of this[_0x45b17d(0x10c)]){if(_0x4fa38a['matcher'](_0x3d3647))return _0x4fa38a['matched']=!![],_0x4fa38a[_0x45b17d(0x12f)]++,_0x4fa38a['responder'](_0x3d3647);}const _0x39ae38=this[_0x45b17d(0x10c)][_0x45b17d(0x103)]((_0x28a14b,_0x25e8c4)=>'\x20\x20'+(_0x25e8c4+0x1)+'.\x20'+(_0x28a14b[_0x45b17d(0x131)]??_0x45b17d(0x10a)))[_0x45b17d(0x156)]('\x0a');throw new Error(_0x45b17d(0x13f)+_0x3d3647[_0x45b17d(0x134)]+'\x20'+_0x3d3647[_0x45b17d(0x122)]+'\x0a'+(_0x45b17d(0x145)+JSON['stringify'](_0x3d3647[_0x45b17d(0x118)])+'\x0a')+(_0x45b17d(0x12b)+(_0x39ae38||_0x45b17d(0x113))));}),this[_0xaf4669(0x13b)];}[a150_0xbc13d7(0x120)](_0x36cbd8,_0x228550){const _0x4c6c8c=a150_0xbc13d7,_0x3861c7={};if(_0x228550?.['headers']){if(_0x228550[_0x4c6c8c(0x10d)]instanceof Headers)_0x228550[_0x4c6c8c(0x10d)][_0x4c6c8c(0x137)]((_0x23661e,_0x270976)=>{_0x3861c7[_0x270976['toLowerCase']()]=_0x23661e;});else{if(Array[_0x4c6c8c(0x14a)](_0x228550[_0x4c6c8c(0x10d)]))for(const [_0x39919d,_0x32fe29]of _0x228550[_0x4c6c8c(0x10d)]){_0x3861c7[_0x39919d[_0x4c6c8c(0x13a)]()]=_0x32fe29;}else for(const [_0x74283d,_0xa7592c]of Object[_0x4c6c8c(0x116)](_0x228550[_0x4c6c8c(0x10d)])){_0xa7592c!==undefined&&(_0x3861c7[_0x74283d[_0x4c6c8c(0x13a)]()]=_0xa7592c);}}}let _0x5bd8ac;if(_0x228550?.['body'])try{_0x5bd8ac=JSON[_0x4c6c8c(0x126)](_0x228550[_0x4c6c8c(0x118)]);}catch{_0x5bd8ac=_0x228550[_0x4c6c8c(0x118)];}return{'method':_0x228550?.[_0x4c6c8c(0x134)]??_0x4c6c8c(0x11c),'url':_0x36cbd8,'headers':_0x3861c7,'body':_0x5bd8ac};}[a150_0xbc13d7(0x125)](_0x4eebc0){const _0x50fa7d=a150_0xbc13d7,_0x242c57=this[_0x50fa7d(0x10c)][_0x50fa7d(0x136)](_0x4d90f1=>!_0x4d90f1[_0x50fa7d(0x153)]);if(_0x242c57[_0x50fa7d(0x138)]>0x0){const _0x335ac1=_0x242c57[_0x50fa7d(0x103)](_0x182295=>{const _0x16f3d4=_0x50fa7d,_0xdc8a65=_0x182295[_0x16f3d4(0x131)]?'\x20('+_0x182295[_0x16f3d4(0x131)]+')':'',_0x55d68d=_0x182295[_0x16f3d4(0x11f)][_0x16f3d4(0x146)]('\x0a')[_0x16f3d4(0x108)](0x2,0x5)[_0x16f3d4(0x156)]('\x0a');return'Unmatched\x20stub'+_0xdc8a65+'\x20registered\x20at:\x0a'+_0x55d68d;});_0x4eebc0[_0x50fa7d(0x149)](_0x242c57[_0x50fa7d(0x138)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x335ac1['join']('\x0a\x0a'));}}['getRequests'](){const _0x1fc76a=a150_0xbc13d7;return[...this[_0x1fc76a(0x109)]];}['getLastRequest'](){const _0x5bf811=a150_0xbc13d7;return this[_0x5bf811(0x109)][this[_0x5bf811(0x109)][_0x5bf811(0x138)]-0x1];}['wasCalled'](_0x3e40d9,_0x5c0636){const _0x3f4e44=a150_0xbc13d7;return this[_0x3f4e44(0x109)][_0x3f4e44(0x10f)](_0x11a0b6=>{const _0x5f584c=_0x3f4e44;if(_0x11a0b6['method'][_0x5f584c(0x112)]()!==_0x3e40d9[_0x5f584c(0x112)]())return![];if(typeof _0x5c0636===_0x5f584c(0x11a))return _0x11a0b6[_0x5f584c(0x122)][_0x5f584c(0x140)](_0x5c0636);return _0x5c0636[_0x5f584c(0x14e)](_0x11a0b6[_0x5f584c(0x122)]);});}[a150_0xbc13d7(0x105)](_0x4ded0a){const _0x39359c=a150_0xbc13d7;return this['stubs'][_0x4ded0a]?.[_0x39359c(0x12f)]??0x0;}[a150_0xbc13d7(0x12c)](){const _0x46ad75=a150_0xbc13d7;this[_0x46ad75(0x10c)]=[],this[_0x46ad75(0x109)]=[],this['fetchMock']=null;}static[a150_0xbc13d7(0x147)](_0xd64de8){const _0x2a1d22=a150_0xbc13d7,_0x2e4084={0xc8:'OK',0xc9:_0x2a1d22(0x11e),0xcc:_0x2a1d22(0x139),0x190:_0x2a1d22(0x143),0x191:_0x2a1d22(0x111),0x193:'Forbidden',0x194:_0x2a1d22(0x114),0x199:_0x2a1d22(0x107),0x1a6:_0x2a1d22(0x14d),0x1ad:_0x2a1d22(0x12e),0x1f4:_0x2a1d22(0x119),0x1f6:_0x2a1d22(0x110),0x1f7:_0x2a1d22(0x13d)};return _0x2e4084[_0xd64de8]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ function a150_0x3afc(_0x1e8af8,_0x595f6e){_0x1e8af8=_0x1e8af8-0x184;const _0x19cdda=a150_0x19cd();let _0x3afcec=_0x19cdda[_0x1e8af8];return _0x3afcec;}const a150_0x20329b=a150_0x3afc;(function(_0xd5ffda,_0x147709){const _0xaedc32=a150_0x3afc,_0x3b5b22=_0xd5ffda();while(!![]){try{const _0x31a273=-parseInt(_0xaedc32(0x1a7))/0x1+parseInt(_0xaedc32(0x196))/0x2+parseInt(_0xaedc32(0x1c2))/0x3*(-parseInt(_0xaedc32(0x185))/0x4)+-parseInt(_0xaedc32(0x190))/0x5+parseInt(_0xaedc32(0x1a0))/0x6*(-parseInt(_0xaedc32(0x1ce))/0x7)+-parseInt(_0xaedc32(0x1b4))/0x8*(parseInt(_0xaedc32(0x192))/0x9)+parseInt(_0xaedc32(0x1d0))/0xa;if(_0x31a273===_0x147709)break;else _0x3b5b22['push'](_0x3b5b22['shift']());}catch(_0x592d11){_0x3b5b22['push'](_0x3b5b22['shift']());}}}(a150_0x19cd,0xbc9c0));import{vi}from'vitest';export class HTTPMockRegistry{[a150_0x20329b(0x1d1)]=[];['requests']=[];[a150_0x20329b(0x1b2)]=null;[a150_0x20329b(0x1cd)](_0x415217,_0x311aec){return _0x335d4d=>{const _0x49a324=a150_0x3afc;if(_0x335d4d[_0x49a324(0x1b6)][_0x49a324(0x19d)]()!==_0x415217[_0x49a324(0x19d)]())return![];const _0x23d07b=new URL(_0x335d4d[_0x49a324(0x1a6)]);if(typeof _0x311aec===_0x49a324(0x18d))return _0x23d07b[_0x49a324(0x199)]===_0x311aec||_0x23d07b[_0x49a324(0x199)][_0x49a324(0x19a)](_0x311aec);return _0x311aec[_0x49a324(0x19c)](_0x23d07b[_0x49a324(0x199)]);};}['withQuery'](_0x2c9b98,_0x23d169){return _0x2ea5ec=>{const _0x1a71fb=a150_0x3afc;if(!_0x2c9b98(_0x2ea5ec))return![];const _0x38e540=new URL(_0x2ea5ec[_0x1a71fb(0x1a6)]);return Object[_0x1a71fb(0x1a8)](_0x23d169)[_0x1a71fb(0x1ca)](([_0x490394,_0x3c1d06])=>_0x38e540['searchParams'][_0x1a71fb(0x18c)](_0x490394)===_0x3c1d06);};}['withBody'](_0x1ac264,_0x30ac60){return _0x40326a=>{const _0x41ed51=a150_0x3afc;if(!_0x1ac264(_0x40326a))return![];if(typeof _0x30ac60===_0x41ed51(0x1ae))return _0x30ac60(_0x40326a['body']);return JSON[_0x41ed51(0x1d2)](_0x40326a[_0x41ed51(0x188)])===JSON[_0x41ed51(0x1d2)](_0x30ac60);};}[a150_0x20329b(0x1b5)](_0x58f267,_0x1bf435){return _0x12c5f6=>{const _0x19f826=a150_0x3afc;if(!_0x58f267(_0x12c5f6))return![];const _0x13c477=new URL(_0x12c5f6[_0x19f826(0x1a6)]);return _0x13c477['host']===_0x1bf435;};}[a150_0x20329b(0x1b0)](_0x1f446f,_0x3c0798,_0x5c4f28){const _0x41295f=a150_0x20329b;this[_0x41295f(0x1d1)][_0x41295f(0x194)]({'matcher':_0x1f446f,'responder':_0x3c0798,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x5c4f28?.[_0x41295f(0x195)]});}[a150_0x20329b(0x198)](_0x112dd2,_0x784d22,_0x3d3aea){const _0x4a890e=_0x3b2771=>{const _0x196e0a=a150_0x3afc;return _0x3d3aea(_0x3b2771[_0x196e0a(0x188)],_0x3b2771),_0x784d22(_0x3b2771);};this['register'](_0x112dd2,_0x4a890e);}static[a150_0x20329b(0x1c0)](_0x49bd9a,_0x3190f5=0xc8){const _0xa8d85a=a150_0x20329b;return()=>new Response(JSON[_0xa8d85a(0x1d2)](_0x49bd9a),{'status':_0x3190f5,'headers':{'Content-Type':_0xa8d85a(0x1ac)}});}static['errorResponse'](_0x36ea94,_0xdfd6be,_0x2966ef='simple'){return()=>{const _0x353349=a150_0x3afc;let _0x2adc89;switch(_0x2966ef){case _0x353349(0x1b9):_0x2adc89={'errors':{'error':_0xdfd6be,'message':_0xdfd6be,'severity':'error','status_code':_0x36ea94}};break;case _0x353349(0x1a4):_0x2adc89={'type':'https://api.treasuredata.com/errors/'+_0x36ea94,'title':HTTPMockRegistry[_0x353349(0x1a5)](_0x36ea94),'status':_0x36ea94,'detail':_0xdfd6be};break;default:_0x2adc89={'error':_0xdfd6be};}return new Response(JSON['stringify'](_0x2adc89),{'status':_0x36ea94,'headers':{'Content-Type':_0x353349(0x1ac)}});};}static[a150_0x20329b(0x1af)](_0x5ce740,_0x5ec558,_0xc5ffe8=0xc8){const _0x1a8fbf=a150_0x20329b;return()=>new Response(JSON[_0x1a8fbf(0x1d2)](_0x5ce740),{'status':_0xc5ffe8,'headers':{'Content-Type':_0x1a8fbf(0x1ac),..._0x5ec558}});}static[a150_0x20329b(0x1ad)](_0x42793c,_0x26c1d0=0xc8){const _0x6ff6bc=a150_0x20329b;return()=>new Response(_0x42793c,{'status':_0x26c1d0,'headers':{'Content-Type':_0x6ff6bc(0x1a1)}});}static[a150_0x20329b(0x1bb)](_0xc718b8){return()=>{throw new Error(_0xc718b8);};}[a150_0x20329b(0x1cf)](){const _0x676da3=a150_0x20329b;return this[_0x676da3(0x1b2)]=vi['fn']()[_0x676da3(0x1a9)](async(_0x4e5277,_0x1e2e27)=>{const _0x2d301d=_0x676da3,_0x5abb8b=this[_0x2d301d(0x1a3)](_0x4e5277,_0x1e2e27);this[_0x2d301d(0x1b3)]['push'](_0x5abb8b);for(const _0x51e588 of this['stubs']){if(_0x51e588[_0x2d301d(0x19b)](_0x5abb8b))return _0x51e588['matched']=!![],_0x51e588['matchCount']++,_0x51e588[_0x2d301d(0x1bf)](_0x5abb8b);}const _0x24ae70=this[_0x2d301d(0x1d1)]['map']((_0x31468e,_0x229387)=>'\x20\x20'+(_0x229387+0x1)+'.\x20'+(_0x31468e['description']??_0x2d301d(0x1c6)))[_0x2d301d(0x191)]('\x0a');throw new Error(_0x2d301d(0x1b7)+_0x5abb8b[_0x2d301d(0x1b6)]+'\x20'+_0x5abb8b[_0x2d301d(0x1a6)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x2d301d(0x1d2)](_0x5abb8b[_0x2d301d(0x188)])+'\x0a')+(_0x2d301d(0x18e)+(_0x24ae70||_0x2d301d(0x1c9))));}),this[_0x676da3(0x1b2)];}[a150_0x20329b(0x1a3)](_0x30be8e,_0x21b9fa){const _0xc6c4d9=a150_0x20329b,_0x8376c7={};if(_0x21b9fa?.[_0xc6c4d9(0x1aa)]){if(_0x21b9fa[_0xc6c4d9(0x1aa)]instanceof Headers)_0x21b9fa[_0xc6c4d9(0x1aa)]['forEach']((_0x1967ee,_0x4034c5)=>{const _0x399e36=_0xc6c4d9;_0x8376c7[_0x4034c5[_0x399e36(0x1bc)]()]=_0x1967ee;});else{if(Array[_0xc6c4d9(0x1c3)](_0x21b9fa['headers']))for(const [_0x230df5,_0x37ce00]of _0x21b9fa[_0xc6c4d9(0x1aa)]){_0x8376c7[_0x230df5[_0xc6c4d9(0x1bc)]()]=_0x37ce00;}else for(const [_0x18892f,_0x297a8f]of Object[_0xc6c4d9(0x1a8)](_0x21b9fa[_0xc6c4d9(0x1aa)])){_0x297a8f!==undefined&&(_0x8376c7[_0x18892f['toLowerCase']()]=_0x297a8f);}}}let _0x56fc32;if(_0x21b9fa?.[_0xc6c4d9(0x188)])try{_0x56fc32=JSON[_0xc6c4d9(0x1c4)](_0x21b9fa[_0xc6c4d9(0x188)]);}catch{_0x56fc32=_0x21b9fa['body'];}return{'method':_0x21b9fa?.[_0xc6c4d9(0x1b6)]??_0xc6c4d9(0x187),'url':_0x30be8e,'headers':_0x8376c7,'body':_0x56fc32};}[a150_0x20329b(0x1ba)](_0x663788){const _0x1b06f2=a150_0x20329b,_0x400a87=this[_0x1b06f2(0x1d1)][_0x1b06f2(0x1c1)](_0x2102ba=>!_0x2102ba['matched']);if(_0x400a87[_0x1b06f2(0x1be)]>0x0){const _0x32d944=_0x400a87[_0x1b06f2(0x184)](_0x5914a1=>{const _0x222ade=_0x1b06f2,_0x119ece=_0x5914a1['description']?'\x20('+_0x5914a1['description']+')':'',_0x35dd7e=_0x5914a1[_0x222ade(0x193)][_0x222ade(0x19f)]('\x0a')['slice'](0x2,0x5)['join']('\x0a');return _0x222ade(0x186)+_0x119ece+_0x222ade(0x19e)+_0x35dd7e;});_0x663788['fail'](_0x400a87[_0x1b06f2(0x1be)]+_0x1b06f2(0x18a)+_0x32d944[_0x1b06f2(0x191)]('\x0a\x0a'));}}[a150_0x20329b(0x18f)](){return[...this['requests']];}[a150_0x20329b(0x1cc)](){const _0x19903e=a150_0x20329b;return this['requests'][this[_0x19903e(0x1b3)]['length']-0x1];}['wasCalled'](_0x46dfee,_0x396785){const _0x596be0=a150_0x20329b;return this['requests'][_0x596be0(0x18b)](_0x1ef88a=>{const _0xd1dca6=_0x596be0;if(_0x1ef88a['method']['toUpperCase']()!==_0x46dfee[_0xd1dca6(0x19d)]())return![];if(typeof _0x396785===_0xd1dca6(0x18d))return _0x1ef88a[_0xd1dca6(0x1a6)][_0xd1dca6(0x19a)](_0x396785);return _0x396785[_0xd1dca6(0x19c)](_0x1ef88a[_0xd1dca6(0x1a6)]);});}[a150_0x20329b(0x1c5)](_0x4c395c){const _0x14a033=a150_0x20329b;return this['stubs'][_0x4c395c]?.[_0x14a033(0x197)]??0x0;}[a150_0x20329b(0x1b1)](){const _0x381b1b=a150_0x20329b;this['stubs']=[],this[_0x381b1b(0x1b3)]=[],this['fetchMock']=null;}static['getStatusText'](_0x1d6c54){const _0x58760e=a150_0x20329b,_0x2b0643={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x58760e(0x1a2),0x191:_0x58760e(0x1bd),0x193:_0x58760e(0x1c7),0x194:'Not\x20Found',0x199:_0x58760e(0x1b8),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x58760e(0x1cb),0x1f4:_0x58760e(0x189),0x1f6:_0x58760e(0x1ab),0x1f7:_0x58760e(0x1c8)};return _0x2b0643[_0x1d6c54]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}function a150_0x19cd(){const _0x52af36=['isArray','parse','getMatchCount','unnamed\x20stub','Forbidden','Service\x20Unavailable','\x20\x20(none)','every','Too\x20Many\x20Requests','getLastRequest','REST','50477EOmivi','createFetch','45383430XASerm','stubs','stringify','map','1127876NHjJqD','Unmatched\x20stub','GET','body','Internal\x20Server\x20Error','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','some','get','string','Registered\x20stubs:\x0a','getRequests','6954380rGNFhQ','join','54AHgwJt','stack','push','description','831898nEAoKd','matchCount','registerWithInspector','pathname','includes','matcher','test','toUpperCase','\x20registered\x20at:\x0a','split','414owMNmd','text/plain','Bad\x20Request','parseRequest','rfc9457','getStatusText','url','745963XkTYUS','entries','mockImplementation','headers','Bad\x20Gateway','application/json','textResponse','function','jsonResponseWithHeaders','register','reset','fetchMock','requests','1311216sVKMAj','withHost','method','No\x20stub\x20matched\x20request:\x20','Conflict','td-api','verify','networkError','toLowerCase','Unauthorized','length','responder','jsonResponse','filter','6IQoYhP'];a150_0x19cd=function(){return _0x52af36;};return a150_0x19cd();}
@@ -1 +1 @@
1
- function a151_0x1355(){var _0xb8a673=['56vwzGcw','47622nGmXGl','8230RuQNvy','112cnKmQW','20454WUQORU','54FDtwQr','1561ZmlhbB','50038632TOmjGG','844677BDHLzi','1177jvAEMZ','187685blElYJ','2414463ujBgLw'];a151_0x1355=function(){return _0xb8a673;};return a151_0x1355();}(function(_0x9ae4a6,_0x1eb9ac){var _0x23f335=a151_0x198b,_0x56481b=_0x9ae4a6();while(!![]){try{var _0x21da58=parseInt(_0x23f335(0x13d))/0x1*(-parseInt(_0x23f335(0x141))/0x2)+-parseInt(_0x23f335(0x13b))/0x3+-parseInt(_0x23f335(0x13c))/0x4*(parseInt(_0x23f335(0x13a))/0x5)+parseInt(_0x23f335(0x140))/0x6*(parseInt(_0x23f335(0x142))/0x7)+parseInt(_0x23f335(0x13f))/0x8*(-parseInt(_0x23f335(0x144))/0x9)+-parseInt(_0x23f335(0x13e))/0xa*(parseInt(_0x23f335(0x139))/0xb)+parseInt(_0x23f335(0x143))/0xc;if(_0x21da58===_0x1eb9ac)break;else _0x56481b['push'](_0x56481b['shift']());}catch(_0xa8ac57){_0x56481b['push'](_0x56481b['shift']());}}}(a151_0x1355,0xdea55));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a151_0x198b(_0x283977,_0x287e48){_0x283977=_0x283977-0x139;var _0x135593=a151_0x1355();var _0x198bdf=_0x135593[_0x283977];return _0x198bdf;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x4d2936,_0x44a849){var _0x580470=a151_0x49ed,_0x333548=_0x4d2936();while(!![]){try{var _0x37c3f2=parseInt(_0x580470(0x92))/0x1*(-parseInt(_0x580470(0x95))/0x2)+-parseInt(_0x580470(0x99))/0x3+-parseInt(_0x580470(0x98))/0x4+parseInt(_0x580470(0x93))/0x5*(-parseInt(_0x580470(0x97))/0x6)+-parseInt(_0x580470(0x94))/0x7+-parseInt(_0x580470(0x91))/0x8+parseInt(_0x580470(0x96))/0x9;if(_0x37c3f2===_0x44a849)break;else _0x333548['push'](_0x333548['shift']());}catch(_0x4a4f01){_0x333548['push'](_0x333548['shift']());}}}(a151_0x3e2d,0x63e55));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';function a151_0x49ed(_0x5b56c0,_0x30cd59){_0x5b56c0=_0x5b56c0-0x91;var _0x3e2dc8=a151_0x3e2d();var _0x49ed5c=_0x3e2dc8[_0x5b56c0];return _0x49ed5c;}function a151_0x3e2d(){var _0x1d210d=['1878394WgOyIW','18098JFsOhx','21246867DamupX','126BfxRSb','1799220YaWSSp','1705035STQjcz','1634880kbLfzJ','1bNhXvl','107545LyGkjn'];a151_0x3e2d=function(){return _0x1d210d;};return a151_0x3e2d();}
@@ -1 +1 @@
1
- function a152_0x13bc(){const _0x46227c=['624GQQwHr','20480vZxWjP','4614160scHlvc','297SbIIXV','6315tWIEON','push','338417nPjaRu','2248APwKLh','slice','366Xlsfih','map','3532BwnjSG','555114zqLQPh'];a152_0x13bc=function(){return _0x46227c;};return a152_0x13bc();}(function(_0x50d957,_0x4799f4){const _0x33a070=a152_0x3e28,_0x40c003=_0x50d957();while(!![]){try{const _0x429ce7=-parseInt(_0x33a070(0x14e))/0x1+parseInt(_0x33a070(0x149))/0x2+parseInt(_0x33a070(0x151))/0x3*(parseInt(_0x33a070(0x153))/0x4)+-parseInt(_0x33a070(0x14c))/0x5*(parseInt(_0x33a070(0x155))/0x6)+parseInt(_0x33a070(0x154))/0x7+parseInt(_0x33a070(0x14f))/0x8*(parseInt(_0x33a070(0x14b))/0x9)+parseInt(_0x33a070(0x14a))/0xa;if(_0x429ce7===_0x4799f4)break;else _0x40c003['push'](_0x40c003['shift']());}catch(_0x25bd7a){_0x40c003['push'](_0x40c003['shift']());}}}(a152_0x13bc,0x3062c));function a152_0x3e28(_0x3256d6,_0x3c1f0e){_0x3256d6=_0x3256d6-0x149;const _0x13bcfe=a152_0x13bc();let _0x3e280f=_0x13bcfe[_0x3256d6];return _0x3e280f;}export async function batchAsync(_0x116ed2,_0x33e3c9,_0x454359=0xa){const _0x37fe5a=a152_0x3e28,_0x17ecac=[];for(let _0x42d2a5=0x0;_0x42d2a5<_0x116ed2['length'];_0x42d2a5+=_0x454359){const _0x572356=_0x116ed2[_0x37fe5a(0x150)](_0x42d2a5,_0x42d2a5+_0x454359),_0x531fb1=await Promise['all'](_0x572356[_0x37fe5a(0x152)](_0x33e3c9));_0x17ecac[_0x37fe5a(0x14d)](..._0x531fb1);}return _0x17ecac;}
1
+ (function(_0x593de7,_0x3ef424){const _0x58c132=a152_0x3357,_0x4f0e01=_0x593de7();while(!![]){try{const _0x4d0275=-parseInt(_0x58c132(0x1a8))/0x1+-parseInt(_0x58c132(0x1a4))/0x2+parseInt(_0x58c132(0x1aa))/0x3+-parseInt(_0x58c132(0x1ad))/0x4*(parseInt(_0x58c132(0x1a6))/0x5)+-parseInt(_0x58c132(0x1ac))/0x6*(parseInt(_0x58c132(0x1ab))/0x7)+-parseInt(_0x58c132(0x1a9))/0x8+parseInt(_0x58c132(0x1af))/0x9;if(_0x4d0275===_0x3ef424)break;else _0x4f0e01['push'](_0x4f0e01['shift']());}catch(_0x5ae981){_0x4f0e01['push'](_0x4f0e01['shift']());}}}(a152_0x3875,0x6fee3));function a152_0x3357(_0xcaec35,_0x4d746d){_0xcaec35=_0xcaec35-0x1a4;const _0x387538=a152_0x3875();let _0x3357ba=_0x387538[_0xcaec35];return _0x3357ba;}function a152_0x3875(){const _0x1b1002=['1530512RKJOCl','2428971XpSFGY','3521917kLFYOC','6jXhfjy','4zUhxgU','slice','14898618fXJCib','916788KkGoJX','length','3045815ZtKuAt','all','244590CTYmfx'];a152_0x3875=function(){return _0x1b1002;};return a152_0x3875();}export async function batchAsync(_0x5af24d,_0x4837ad,_0x2ff337=0xa){const _0x2e6498=a152_0x3357,_0x445c46=[];for(let _0x376d86=0x0;_0x376d86<_0x5af24d[_0x2e6498(0x1a5)];_0x376d86+=_0x2ff337){const _0xf0ddea=_0x5af24d[_0x2e6498(0x1ae)](_0x376d86,_0x376d86+_0x2ff337),_0x394d0c=await Promise[_0x2e6498(0x1a7)](_0xf0ddea['map'](_0x4837ad));_0x445c46['push'](..._0x394d0c);}return _0x445c46;}
@@ -1 +1 @@
1
- const a153_0x3810e4=a153_0x4ee2;(function(_0x3a9a74,_0x3a2d45){const _0x32bbb1=a153_0x4ee2,_0x5557c3=_0x3a9a74();while(!![]){try{const _0x1b8f0f=-parseInt(_0x32bbb1(0x128))/0x1+-parseInt(_0x32bbb1(0x124))/0x2*(parseInt(_0x32bbb1(0x115))/0x3)+parseInt(_0x32bbb1(0x120))/0x4+-parseInt(_0x32bbb1(0x123))/0x5*(-parseInt(_0x32bbb1(0x131))/0x6)+-parseInt(_0x32bbb1(0x122))/0x7+-parseInt(_0x32bbb1(0x116))/0x8*(-parseInt(_0x32bbb1(0x11e))/0x9)+parseInt(_0x32bbb1(0x12f))/0xa;if(_0x1b8f0f===_0x3a2d45)break;else _0x5557c3['push'](_0x5557c3['shift']());}catch(_0x2812de){_0x5557c3['push'](_0x5557c3['shift']());}}}(a153_0x1101,0xcd726));import*as a153_0x2b3ad5 from'chalk';const Chalk=a153_0x2b3ad5[a153_0x3810e4(0x11c)];export function shouldUseColor(_0x450bca={}){const _0x3cf279=a153_0x3810e4;if(_0x450bca['noColor']===!![])return![];if(_0x450bca[_0x3cf279(0x126)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3cf279(0x11a)]['isTTY']??![];}export function getChalk(_0x29afc6={}){if(shouldUseColor(_0x29afc6))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4dc995,_0x3f1193={}){const _0x3ddd59=a153_0x3810e4;return getChalk(_0x3f1193)[_0x3ddd59(0x11b)](_0x4dc995);}export function colorHeader(_0x14d767,_0x19665b={}){const _0x256cd5=a153_0x3810e4;return getChalk(_0x19665b)[_0x256cd5(0x11d)](_0x14d767);}export function colorType(_0x4c96a1,_0x1fe4c4={}){const _0xea5209=a153_0x3810e4;return getChalk(_0x1fe4c4)[_0xea5209(0x11b)](_0x4c96a1);}export function colorJSONKey(_0x23147e,_0x2f1266={}){const _0x2b6b11=a153_0x3810e4;return getChalk(_0x2f1266)[_0x2b6b11(0x12a)](_0x23147e);}function a153_0x4ee2(_0x2c79f5,_0x63bf27){_0x2c79f5=_0x2c79f5-0x115;const _0x1101e=a153_0x1101();let _0x4ee24c=_0x1101e[_0x2c79f5];return _0x4ee24c;}export function colorJSONString(_0x25c02e,_0x93a73e={}){const _0x43880f=a153_0x3810e4;return getChalk(_0x93a73e)[_0x43880f(0x118)](_0x25c02e);}export function colorJSONNumber(_0x416387,_0x4f1a1f={}){const _0x213af4=a153_0x3810e4;return getChalk(_0x4f1a1f)[_0x213af4(0x11d)](_0x416387);}function a153_0x1101(){const _0x20c20d=['green','stringify','stdout','dim','Chalk','cyan','2889KOUYHQ','yellow','516872BKWUMo','boolean','11140052gMLUEk','5kKYMAA','587434wEjFDy','entries','color','number','1299508WacswU','isArray','blue','join','repeat','length','string','27273940dkIIHn','map','6793962iAHaGd','9dFfmMM','15568yozweT','null'];a153_0x1101=function(){return _0x20c20d;};return a153_0x1101();}export function colorJSONBoolean(_0x4a6740,_0x1785b9={}){const _0x400efd=a153_0x3810e4;return getChalk(_0x1785b9)[_0x400efd(0x11f)](_0x4a6740);}export function colorJSONNull(_0x16c627,_0xab00e0={}){return getChalk(_0xab00e0)['dim'](_0x16c627);}export function colorizeJSONCompact(_0x1f898f,_0xd35243={}){const _0x6e017e=a153_0x3810e4;if(!shouldUseColor(_0xd35243))return JSON[_0x6e017e(0x119)](_0x1f898f);if(_0x1f898f===null)return colorJSONNull(_0x6e017e(0x117),_0xd35243);if(typeof _0x1f898f==='boolean')return colorJSONBoolean(String(_0x1f898f),_0xd35243);if(typeof _0x1f898f==='number')return colorJSONNumber(String(_0x1f898f),_0xd35243);if(typeof _0x1f898f===_0x6e017e(0x12e))return colorJSONString(JSON['stringify'](_0x1f898f),_0xd35243);if(Array[_0x6e017e(0x129)](_0x1f898f)){if(_0x1f898f[_0x6e017e(0x12d)]===0x0)return'[]';const _0x37f7b8=_0x1f898f['map'](_0x2dfa38=>colorizeJSONCompact(_0x2dfa38,_0xd35243));return'['+_0x37f7b8['join'](',')+']';}if(typeof _0x1f898f==='object'){const _0x4ccef6=Object[_0x6e017e(0x125)](_0x1f898f);if(_0x4ccef6['length']===0x0)return'{}';const _0x1484b9=_0x4ccef6[_0x6e017e(0x130)](([_0xaae04,_0x359c34])=>{const _0xc379df=colorJSONKey(JSON['stringify'](_0xaae04),_0xd35243),_0x31f0a5=colorizeJSONCompact(_0x359c34,_0xd35243);return _0xc379df+':'+_0x31f0a5;});return'{'+_0x1484b9[_0x6e017e(0x12b)](',')+'}';}return String(_0x1f898f);}export function colorizeJSON(_0x2a314a,_0x22def2={},_0x579c2a=0x0){const _0x26c46d=a153_0x3810e4;if(!shouldUseColor(_0x22def2))return JSON['stringify'](_0x2a314a,null,0x2);const _0x5af2a3='\x20'['repeat'](_0x579c2a),_0x163950=_0x579c2a+0x2;if(_0x2a314a===null)return colorJSONNull(_0x26c46d(0x117),_0x22def2);if(typeof _0x2a314a===_0x26c46d(0x121))return colorJSONBoolean(String(_0x2a314a),_0x22def2);if(typeof _0x2a314a===_0x26c46d(0x127))return colorJSONNumber(String(_0x2a314a),_0x22def2);if(typeof _0x2a314a===_0x26c46d(0x12e))return colorJSONString(JSON['stringify'](_0x2a314a),_0x22def2);if(Array[_0x26c46d(0x129)](_0x2a314a)){if(_0x2a314a[_0x26c46d(0x12d)]===0x0)return'[]';const _0x57269d=_0x2a314a[_0x26c46d(0x130)](_0x453e43=>{const _0x1fa4b2=_0x26c46d,_0x2684e9=colorizeJSON(_0x453e43,_0x22def2,_0x163950);return''+'\x20'[_0x1fa4b2(0x12c)](_0x163950)+_0x2684e9;});return'[\x0a'+_0x57269d[_0x26c46d(0x12b)](',\x0a')+('\x0a'+_0x5af2a3+']');}if(typeof _0x2a314a==='object'){const _0x3107f4=Object[_0x26c46d(0x125)](_0x2a314a);if(_0x3107f4['length']===0x0)return'{}';const _0x5b0f5d=_0x3107f4[_0x26c46d(0x130)](([_0x2881fa,_0xb8f410])=>{const _0x40b25=_0x26c46d,_0xb2e4d7=colorJSONKey(JSON[_0x40b25(0x119)](_0x2881fa),_0x22def2),_0x145525=colorizeJSON(_0xb8f410,_0x22def2,_0x163950);return''+'\x20'[_0x40b25(0x12c)](_0x163950)+_0xb2e4d7+':\x20'+_0x145525;});return'{\x0a'+_0x5b0f5d[_0x26c46d(0x12b)](',\x0a')+('\x0a'+_0x5af2a3+'}');}return String(_0x2a314a);}
1
+ (function(_0x39cec0,_0x4a7b9e){const _0xa36ba4=a153_0x5625,_0x2b4a0c=_0x39cec0();while(!![]){try{const _0x3df72d=-parseInt(_0xa36ba4(0x15e))/0x1+parseInt(_0xa36ba4(0x157))/0x2+parseInt(_0xa36ba4(0x155))/0x3+-parseInt(_0xa36ba4(0x154))/0x4+parseInt(_0xa36ba4(0x14e))/0x5*(-parseInt(_0xa36ba4(0x168))/0x6)+parseInt(_0xa36ba4(0x160))/0x7+parseInt(_0xa36ba4(0x163))/0x8;if(_0x3df72d===_0x4a7b9e)break;else _0x2b4a0c['push'](_0x2b4a0c['shift']());}catch(_0x3f4531){_0x2b4a0c['push'](_0x2b4a0c['shift']());}}}(a153_0xa000,0x37e03));import*as a153_0x55ae97 from'chalk';const Chalk=a153_0x55ae97['Chalk'];export function shouldUseColor(_0x3fcf57={}){const _0x4df567=a153_0x5625;if(_0x3fcf57[_0x4df567(0x15d)]===!![])return![];if(_0x3fcf57[_0x4df567(0x15f)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x4df567(0x153)][_0x4df567(0x158)]??![];}export function getChalk(_0x24d1d8={}){if(shouldUseColor(_0x24d1d8))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x6e69e2,_0x13e2e2={}){const _0x2a8df3=a153_0x5625;return getChalk(_0x13e2e2)[_0x2a8df3(0x15c)](_0x6e69e2);}export function colorHeader(_0xa485e8,_0x1828c6={}){const _0x23ccdc=a153_0x5625;return getChalk(_0x1828c6)[_0x23ccdc(0x151)](_0xa485e8);}export function colorType(_0x5b4dde,_0xaceaef={}){const _0x526a62=a153_0x5625;return getChalk(_0xaceaef)[_0x526a62(0x15c)](_0x5b4dde);}export function colorJSONKey(_0x3e1b74,_0x3d53c8={}){const _0x4fe713=a153_0x5625;return getChalk(_0x3d53c8)[_0x4fe713(0x14f)](_0x3e1b74);}export function colorJSONString(_0x2e1f9f,_0xa5073c={}){const _0x95ec17=a153_0x5625;return getChalk(_0xa5073c)[_0x95ec17(0x15a)](_0x2e1f9f);}function a153_0x5625(_0x39041f,_0xaacb6c){_0x39041f=_0x39041f-0x14e;const _0xa00063=a153_0xa000();let _0x56254a=_0xa00063[_0x39041f];return _0x56254a;}export function colorJSONNumber(_0x1327c1,_0x136901={}){const _0xb4af3f=a153_0x5625;return getChalk(_0x136901)[_0xb4af3f(0x151)](_0x1327c1);}function a153_0xa000(){const _0x5bde50=['map','dim','noColor','399198DbuQwC','color','2284562MZrnYf','repeat','string','2672048pvbrLT','length','entries','isArray','stringify','1536498CnDTJv','boolean','5INIDKY','blue','number','cyan','object','stdout','1284128pETrlP','796074wlTkwR','null','558900coYyFr','isTTY','join','green'];a153_0xa000=function(){return _0x5bde50;};return a153_0xa000();}export function colorJSONBoolean(_0x2fb175,_0x4231a9={}){return getChalk(_0x4231a9)['yellow'](_0x2fb175);}export function colorJSONNull(_0x20649a,_0x50fa8a={}){const _0x58cd1d=a153_0x5625;return getChalk(_0x50fa8a)[_0x58cd1d(0x15c)](_0x20649a);}export function colorizeJSONCompact(_0x52b384,_0x342b6a={}){const _0x55886c=a153_0x5625;if(!shouldUseColor(_0x342b6a))return JSON[_0x55886c(0x167)](_0x52b384);if(_0x52b384===null)return colorJSONNull(_0x55886c(0x156),_0x342b6a);if(typeof _0x52b384===_0x55886c(0x169))return colorJSONBoolean(String(_0x52b384),_0x342b6a);if(typeof _0x52b384===_0x55886c(0x150))return colorJSONNumber(String(_0x52b384),_0x342b6a);if(typeof _0x52b384===_0x55886c(0x162))return colorJSONString(JSON[_0x55886c(0x167)](_0x52b384),_0x342b6a);if(Array[_0x55886c(0x166)](_0x52b384)){if(_0x52b384['length']===0x0)return'[]';const _0x48ede1=_0x52b384[_0x55886c(0x15b)](_0x1cb6ea=>colorizeJSONCompact(_0x1cb6ea,_0x342b6a));return'['+_0x48ede1[_0x55886c(0x159)](',')+']';}if(typeof _0x52b384===_0x55886c(0x152)){const _0x46a3e3=Object['entries'](_0x52b384);if(_0x46a3e3['length']===0x0)return'{}';const _0x49cc69=_0x46a3e3[_0x55886c(0x15b)](([_0x1cf8a9,_0x150e87])=>{const _0x244a03=_0x55886c,_0x57269a=colorJSONKey(JSON[_0x244a03(0x167)](_0x1cf8a9),_0x342b6a),_0x1229df=colorizeJSONCompact(_0x150e87,_0x342b6a);return _0x57269a+':'+_0x1229df;});return'{'+_0x49cc69[_0x55886c(0x159)](',')+'}';}return String(_0x52b384);}export function colorizeJSON(_0x5e1d6b,_0x15ed93={},_0x51ef0e=0x0){const _0x44e13f=a153_0x5625;if(!shouldUseColor(_0x15ed93))return JSON['stringify'](_0x5e1d6b,null,0x2);const _0x3260b6='\x20'[_0x44e13f(0x161)](_0x51ef0e),_0x304712=_0x51ef0e+0x2;if(_0x5e1d6b===null)return colorJSONNull('null',_0x15ed93);if(typeof _0x5e1d6b===_0x44e13f(0x169))return colorJSONBoolean(String(_0x5e1d6b),_0x15ed93);if(typeof _0x5e1d6b===_0x44e13f(0x150))return colorJSONNumber(String(_0x5e1d6b),_0x15ed93);if(typeof _0x5e1d6b===_0x44e13f(0x162))return colorJSONString(JSON[_0x44e13f(0x167)](_0x5e1d6b),_0x15ed93);if(Array['isArray'](_0x5e1d6b)){if(_0x5e1d6b['length']===0x0)return'[]';const _0x34f343=_0x5e1d6b[_0x44e13f(0x15b)](_0x4806ad=>{const _0x27a776=_0x44e13f,_0x1c4736=colorizeJSON(_0x4806ad,_0x15ed93,_0x304712);return''+'\x20'[_0x27a776(0x161)](_0x304712)+_0x1c4736;});return'[\x0a'+_0x34f343[_0x44e13f(0x159)](',\x0a')+('\x0a'+_0x3260b6+']');}if(typeof _0x5e1d6b===_0x44e13f(0x152)){const _0x5a3640=Object[_0x44e13f(0x165)](_0x5e1d6b);if(_0x5a3640[_0x44e13f(0x164)]===0x0)return'{}';const _0x255181=_0x5a3640[_0x44e13f(0x15b)](([_0x5f402a,_0x2ee609])=>{const _0x4ced34=_0x44e13f,_0x4a266d=colorJSONKey(JSON[_0x4ced34(0x167)](_0x5f402a),_0x15ed93),_0x35791a=colorizeJSON(_0x2ee609,_0x15ed93,_0x304712);return''+'\x20'['repeat'](_0x304712)+_0x4a266d+':\x20'+_0x35791a;});return'{\x0a'+_0x255181[_0x44e13f(0x159)](',\x0a')+('\x0a'+_0x3260b6+'}');}return String(_0x5e1d6b);}
@@ -1 +1 @@
1
- (function(_0xf104d5,_0x5acec8){const _0x4dbcff=a154_0x4f9c,_0x4eadbc=_0xf104d5();while(!![]){try{const _0x20a69f=-parseInt(_0x4dbcff(0xbb))/0x1*(-parseInt(_0x4dbcff(0xa6))/0x2)+-parseInt(_0x4dbcff(0xb1))/0x3+-parseInt(_0x4dbcff(0xa4))/0x4*(parseInt(_0x4dbcff(0xac))/0x5)+parseInt(_0x4dbcff(0xb9))/0x6*(parseInt(_0x4dbcff(0xb4))/0x7)+parseInt(_0x4dbcff(0xaa))/0x8*(-parseInt(_0x4dbcff(0xbf))/0x9)+-parseInt(_0x4dbcff(0xc1))/0xa+parseInt(_0x4dbcff(0xc5))/0xb;if(_0x20a69f===_0x5acec8)break;else _0x4eadbc['push'](_0x4eadbc['shift']());}catch(_0x2b9d07){_0x4eadbc['push'](_0x4eadbc['shift']());}}}(a154_0x4cdb,0x8e3d3));import a154_0xc12dee from'chalk';export function generateDiff(_0x6c2cb,_0x41513b){const _0x40b042=a154_0x4f9c,_0x1f222a=_0x6c2cb[_0x40b042(0xa5)]('\x0a'),_0x1c69bf=_0x41513b[_0x40b042(0xa5)]('\x0a'),_0x15494c=[],_0x4bf829=computeLCS(_0x1f222a,_0x1c69bf);let _0x39ed3a=0x0,_0x3a3d66=0x0,_0x43a4b7=0x0;while(_0x39ed3a<_0x1f222a[_0x40b042(0xa2)]||_0x3a3d66<_0x1c69bf[_0x40b042(0xa2)]){if(_0x43a4b7<_0x4bf829[_0x40b042(0xa2)]&&_0x39ed3a<_0x1f222a[_0x40b042(0xa2)]&&_0x1f222a[_0x39ed3a]===_0x4bf829[_0x43a4b7])_0x3a3d66<_0x1c69bf[_0x40b042(0xa2)]&&_0x1c69bf[_0x3a3d66]===_0x4bf829[_0x43a4b7]?(_0x15494c['push']({'type':_0x40b042(0xbe),'content':_0x1f222a[_0x39ed3a]}),_0x39ed3a++,_0x3a3d66++,_0x43a4b7++):(_0x15494c[_0x40b042(0xc4)]({'type':'added','content':_0x1c69bf[_0x3a3d66]}),_0x3a3d66++);else{if(_0x43a4b7<_0x4bf829[_0x40b042(0xa2)]&&_0x3a3d66<_0x1c69bf['length']&&_0x1c69bf[_0x3a3d66]===_0x4bf829[_0x43a4b7])_0x15494c['push']({'type':_0x40b042(0xc2),'content':_0x1f222a[_0x39ed3a]}),_0x39ed3a++;else{if(_0x39ed3a<_0x1f222a[_0x40b042(0xa2)]&&(_0x43a4b7>=_0x4bf829[_0x40b042(0xa2)]||_0x1f222a[_0x39ed3a]!==_0x4bf829[_0x43a4b7]))_0x15494c[_0x40b042(0xc4)]({'type':_0x40b042(0xc2),'content':_0x1f222a[_0x39ed3a]}),_0x39ed3a++;else _0x3a3d66<_0x1c69bf[_0x40b042(0xa2)]&&(_0x15494c[_0x40b042(0xc4)]({'type':'added','content':_0x1c69bf[_0x3a3d66]}),_0x3a3d66++);}}}return _0x15494c;}function a154_0x4f9c(_0x32ad7a,_0x582f2f){_0x32ad7a=_0x32ad7a-0xa1;const _0x4cdbf5=a154_0x4cdb();let _0x4f9cac=_0x4cdbf5[_0x32ad7a];return _0x4f9cac;}function computeLCS(_0x460e4a,_0x1485a9){const _0x229d03=a154_0x4f9c,_0x35e1a3=_0x460e4a[_0x229d03(0xa2)],_0x508069=_0x1485a9[_0x229d03(0xa2)],_0x506376=Array(_0x35e1a3+0x1)[_0x229d03(0xbd)](null)[_0x229d03(0xaf)](()=>Array(_0x508069+0x1)[_0x229d03(0xbd)](0x0));for(let _0x12cf8e=0x1;_0x12cf8e<=_0x35e1a3;_0x12cf8e++){for(let _0x251352=0x1;_0x251352<=_0x508069;_0x251352++){_0x460e4a[_0x12cf8e-0x1]===_0x1485a9[_0x251352-0x1]?_0x506376[_0x12cf8e][_0x251352]=_0x506376[_0x12cf8e-0x1][_0x251352-0x1]+0x1:_0x506376[_0x12cf8e][_0x251352]=Math[_0x229d03(0xba)](_0x506376[_0x12cf8e-0x1][_0x251352],_0x506376[_0x12cf8e][_0x251352-0x1]);}}const _0x51eb50=[];let _0x152357=_0x35e1a3,_0x33213e=_0x508069;while(_0x152357>0x0&&_0x33213e>0x0){if(_0x460e4a[_0x152357-0x1]===_0x1485a9[_0x33213e-0x1])_0x51eb50['unshift'](_0x460e4a[_0x152357-0x1]),_0x152357--,_0x33213e--;else _0x506376[_0x152357-0x1][_0x33213e]>_0x506376[_0x152357][_0x33213e-0x1]?_0x152357--:_0x33213e--;}return _0x51eb50;}export function formatDiffWithColors(_0x527da4,_0x296dac=0x3){const _0x4a6b80=a154_0x4f9c,_0x685194=new Set();_0x527da4[_0x4a6b80(0xae)]((_0x52028d,_0x54809c)=>{const _0x2be064=_0x4a6b80;_0x52028d['type']!=='unchanged'&&_0x685194[_0x2be064(0xa8)](_0x54809c);});if(_0x685194[_0x4a6b80(0xa9)]===0x0)return'';const _0x40036b=new Set();for(const _0x4f85eb of _0x685194){for(let _0x549804=Math[_0x4a6b80(0xba)](0x0,_0x4f85eb-_0x296dac);_0x549804<=Math[_0x4a6b80(0xc3)](_0x527da4[_0x4a6b80(0xa2)]-0x1,_0x4f85eb+_0x296dac);_0x549804++){_0x40036b['add'](_0x549804);}}const _0x3064b7=[];let _0x4133b3=-0x1;const _0x2347c6=_0x527da4[_0x4a6b80(0xa2)],_0x1f681c=Math['max'](0x3,String(_0x2347c6)[_0x4a6b80(0xa2)]),_0x56dc54=[];let _0xeccd37=0x0,_0x2a2e57=0x0;for(const _0x356d97 of _0x527da4){if(_0x356d97['type']==='removed')_0xeccd37++,_0x56dc54['push']({'old':_0xeccd37,'new':0x0});else _0x356d97[_0x4a6b80(0xb0)]===_0x4a6b80(0xb6)?(_0x2a2e57++,_0x56dc54['push']({'old':0x0,'new':_0x2a2e57})):(_0xeccd37++,_0x2a2e57++,_0x56dc54[_0x4a6b80(0xc4)]({'old':_0xeccd37,'new':_0x2a2e57}));}for(let _0x255287=0x0;_0x255287<_0x527da4[_0x4a6b80(0xa2)];_0x255287++){if(!_0x40036b[_0x4a6b80(0xb5)](_0x255287))continue;_0x4133b3!==-0x1&&_0x255287>_0x4133b3+0x1&&_0x3064b7[_0x4a6b80(0xc4)](a154_0xc12dee['cyan']('\x20\x20...'));_0x4133b3=_0x255287;const _0x2493dd=_0x527da4[_0x255287],_0xf1f80c=_0x56dc54[_0x255287],_0x5c5c6b=_0xf1f80c[_0x4a6b80(0xa1)]>0x0?String(_0xf1f80c[_0x4a6b80(0xa1)])['padStart'](_0x1f681c):'\x20'[_0x4a6b80(0xab)](_0x1f681c),_0x52d9b3=_0xf1f80c[_0x4a6b80(0xc0)]>0x0?String(_0xf1f80c[_0x4a6b80(0xc0)])['padStart'](_0x1f681c):'\x20'[_0x4a6b80(0xab)](_0x1f681c);switch(_0x2493dd[_0x4a6b80(0xb0)]){case _0x4a6b80(0xc2):_0x3064b7[_0x4a6b80(0xc4)](a154_0xc12dee['red'](_0x5c5c6b+'\x20'+_0x52d9b3+_0x4a6b80(0xb3)+_0x2493dd['content']));break;case _0x4a6b80(0xb6):_0x3064b7[_0x4a6b80(0xc4)](a154_0xc12dee[_0x4a6b80(0xbc)](_0x5c5c6b+'\x20'+_0x52d9b3+_0x4a6b80(0xb7)+_0x2493dd['content']));break;default:_0x3064b7['push'](a154_0xc12dee[_0x4a6b80(0xb8)](_0x5c5c6b+'\x20'+_0x52d9b3+_0x4a6b80(0xa7)+_0x2493dd[_0x4a6b80(0xb2)]));break;}}return _0x3064b7[_0x4a6b80(0xad)]('\x0a');}export function hasChanges(_0x2dad2e){const _0x3ac359=a154_0x4f9c;return _0x2dad2e[_0x3ac359(0xa3)](_0x2598c4=>_0x2598c4['type']!==_0x3ac359(0xbe));}function a154_0x4cdb(){const _0x5a13e1=['dim','132kvqdPa','max','2rlwmDl','green','fill','unchanged','4983597yMaCxa','new','3802350OiITtU','removed','min','push','31989848esqoeZ','old','length','some','465064siVtqq','split','520342EoJZxu','\x20\x20\x20','add','size','16KjMoWF','repeat','35LGHWny','join','forEach','map','type','1974294QqlWxI','content','\x20-\x20','36197fGOxiq','has','added','\x20+\x20'];a154_0x4cdb=function(){return _0x5a13e1;};return a154_0x4cdb();}
1
+ (function(_0x907f40,_0x737d5){const _0x116d15=a154_0x1c0a,_0x1a6ded=_0x907f40();while(!![]){try{const _0xa50202=-parseInt(_0x116d15(0x1d9))/0x1*(parseInt(_0x116d15(0x1ce))/0x2)+parseInt(_0x116d15(0x1d4))/0x3*(parseInt(_0x116d15(0x1c5))/0x4)+-parseInt(_0x116d15(0x1c3))/0x5*(-parseInt(_0x116d15(0x1d5))/0x6)+-parseInt(_0x116d15(0x1c0))/0x7*(-parseInt(_0x116d15(0x1c6))/0x8)+-parseInt(_0x116d15(0x1bb))/0x9+-parseInt(_0x116d15(0x1c4))/0xa*(parseInt(_0x116d15(0x1c2))/0xb)+parseInt(_0x116d15(0x1cf))/0xc*(-parseInt(_0x116d15(0x1d6))/0xd);if(_0xa50202===_0x737d5)break;else _0x1a6ded['push'](_0x1a6ded['shift']());}catch(_0x49abd4){_0x1a6ded['push'](_0x1a6ded['shift']());}}}(a154_0x46a7,0x90578));function a154_0x1c0a(_0x1bfa50,_0x511a6d){_0x1bfa50=_0x1bfa50-0x1b7;const _0x46a79e=a154_0x46a7();let _0x1c0a76=_0x46a79e[_0x1bfa50];return _0x1c0a76;}import a154_0x41bb49 from'chalk';function a154_0x46a7(){const _0xfa03cf=['1355pXVDKM','430lXPpvV','24WJrpOb','923672Kputzc','max','red','removed','old','repeat','added','new','4wjEBig','3687468KdJPdN','content','dim','map','padStart','464298lkcRIP','6408FzHHVE','13zlyfkc','\x20+\x20','push','181303KkShFN','\x20\x20...','add','fill','size','type','4459185LjAIAv','unchanged','unshift','some','length','49Tvdzao','\x20\x20\x20','68981VKXlRQ'];a154_0x46a7=function(){return _0xfa03cf;};return a154_0x46a7();}export function generateDiff(_0x2a5ea7,_0x561a05){const _0x49ac90=a154_0x1c0a,_0x21bf8b=_0x2a5ea7['split']('\x0a'),_0x1b5789=_0x561a05['split']('\x0a'),_0x1a5934=[],_0x183001=computeLCS(_0x21bf8b,_0x1b5789);let _0x1b198b=0x0,_0x496bd=0x0,_0x542442=0x0;while(_0x1b198b<_0x21bf8b[_0x49ac90(0x1bf)]||_0x496bd<_0x1b5789[_0x49ac90(0x1bf)]){if(_0x542442<_0x183001[_0x49ac90(0x1bf)]&&_0x1b198b<_0x21bf8b['length']&&_0x21bf8b[_0x1b198b]===_0x183001[_0x542442])_0x496bd<_0x1b5789[_0x49ac90(0x1bf)]&&_0x1b5789[_0x496bd]===_0x183001[_0x542442]?(_0x1a5934[_0x49ac90(0x1d8)]({'type':_0x49ac90(0x1bc),'content':_0x21bf8b[_0x1b198b]}),_0x1b198b++,_0x496bd++,_0x542442++):(_0x1a5934['push']({'type':_0x49ac90(0x1cc),'content':_0x1b5789[_0x496bd]}),_0x496bd++);else{if(_0x542442<_0x183001[_0x49ac90(0x1bf)]&&_0x496bd<_0x1b5789[_0x49ac90(0x1bf)]&&_0x1b5789[_0x496bd]===_0x183001[_0x542442])_0x1a5934['push']({'type':_0x49ac90(0x1c9),'content':_0x21bf8b[_0x1b198b]}),_0x1b198b++;else{if(_0x1b198b<_0x21bf8b['length']&&(_0x542442>=_0x183001[_0x49ac90(0x1bf)]||_0x21bf8b[_0x1b198b]!==_0x183001[_0x542442]))_0x1a5934['push']({'type':_0x49ac90(0x1c9),'content':_0x21bf8b[_0x1b198b]}),_0x1b198b++;else _0x496bd<_0x1b5789[_0x49ac90(0x1bf)]&&(_0x1a5934[_0x49ac90(0x1d8)]({'type':_0x49ac90(0x1cc),'content':_0x1b5789[_0x496bd]}),_0x496bd++);}}}return _0x1a5934;}function computeLCS(_0x155004,_0x317172){const _0x10162e=a154_0x1c0a,_0x271bd3=_0x155004['length'],_0x37220c=_0x317172[_0x10162e(0x1bf)],_0x27452a=Array(_0x271bd3+0x1)[_0x10162e(0x1b8)](null)[_0x10162e(0x1d2)](()=>Array(_0x37220c+0x1)[_0x10162e(0x1b8)](0x0));for(let _0x247ed9=0x1;_0x247ed9<=_0x271bd3;_0x247ed9++){for(let _0x4bbf30=0x1;_0x4bbf30<=_0x37220c;_0x4bbf30++){_0x155004[_0x247ed9-0x1]===_0x317172[_0x4bbf30-0x1]?_0x27452a[_0x247ed9][_0x4bbf30]=_0x27452a[_0x247ed9-0x1][_0x4bbf30-0x1]+0x1:_0x27452a[_0x247ed9][_0x4bbf30]=Math[_0x10162e(0x1c7)](_0x27452a[_0x247ed9-0x1][_0x4bbf30],_0x27452a[_0x247ed9][_0x4bbf30-0x1]);}}const _0x504cdf=[];let _0x360924=_0x271bd3,_0x3bd77a=_0x37220c;while(_0x360924>0x0&&_0x3bd77a>0x0){if(_0x155004[_0x360924-0x1]===_0x317172[_0x3bd77a-0x1])_0x504cdf[_0x10162e(0x1bd)](_0x155004[_0x360924-0x1]),_0x360924--,_0x3bd77a--;else _0x27452a[_0x360924-0x1][_0x3bd77a]>_0x27452a[_0x360924][_0x3bd77a-0x1]?_0x360924--:_0x3bd77a--;}return _0x504cdf;}export function formatDiffWithColors(_0x208505,_0x4e8b9f=0x3){const _0x41c673=a154_0x1c0a,_0x46fbcc=new Set();_0x208505['forEach']((_0x53ce8e,_0x5dd5f7)=>{const _0x25ce84=a154_0x1c0a;_0x53ce8e[_0x25ce84(0x1ba)]!==_0x25ce84(0x1bc)&&_0x46fbcc[_0x25ce84(0x1b7)](_0x5dd5f7);});if(_0x46fbcc[_0x41c673(0x1b9)]===0x0)return'';const _0x27bbb8=new Set();for(const _0x475ae1 of _0x46fbcc){for(let _0x1a9f16=Math[_0x41c673(0x1c7)](0x0,_0x475ae1-_0x4e8b9f);_0x1a9f16<=Math['min'](_0x208505[_0x41c673(0x1bf)]-0x1,_0x475ae1+_0x4e8b9f);_0x1a9f16++){_0x27bbb8[_0x41c673(0x1b7)](_0x1a9f16);}}const _0xd9d4e4=[];let _0x303216=-0x1;const _0x336983=_0x208505[_0x41c673(0x1bf)],_0x47ea14=Math['max'](0x3,String(_0x336983)['length']),_0xb8a970=[];let _0x17397c=0x0,_0x54d15c=0x0;for(const _0x42683e of _0x208505){if(_0x42683e[_0x41c673(0x1ba)]===_0x41c673(0x1c9))_0x17397c++,_0xb8a970[_0x41c673(0x1d8)]({'old':_0x17397c,'new':0x0});else _0x42683e[_0x41c673(0x1ba)]===_0x41c673(0x1cc)?(_0x54d15c++,_0xb8a970[_0x41c673(0x1d8)]({'old':0x0,'new':_0x54d15c})):(_0x17397c++,_0x54d15c++,_0xb8a970[_0x41c673(0x1d8)]({'old':_0x17397c,'new':_0x54d15c}));}for(let _0x3b59b1=0x0;_0x3b59b1<_0x208505[_0x41c673(0x1bf)];_0x3b59b1++){if(!_0x27bbb8['has'](_0x3b59b1))continue;_0x303216!==-0x1&&_0x3b59b1>_0x303216+0x1&&_0xd9d4e4[_0x41c673(0x1d8)](a154_0x41bb49['cyan'](_0x41c673(0x1da)));_0x303216=_0x3b59b1;const _0x33a780=_0x208505[_0x3b59b1],_0x59fc59=_0xb8a970[_0x3b59b1],_0x7c3d2a=_0x59fc59[_0x41c673(0x1ca)]>0x0?String(_0x59fc59[_0x41c673(0x1ca)])[_0x41c673(0x1d3)](_0x47ea14):'\x20'[_0x41c673(0x1cb)](_0x47ea14),_0x2a5830=_0x59fc59[_0x41c673(0x1cd)]>0x0?String(_0x59fc59[_0x41c673(0x1cd)])[_0x41c673(0x1d3)](_0x47ea14):'\x20'[_0x41c673(0x1cb)](_0x47ea14);switch(_0x33a780[_0x41c673(0x1ba)]){case _0x41c673(0x1c9):_0xd9d4e4['push'](a154_0x41bb49[_0x41c673(0x1c8)](_0x7c3d2a+'\x20'+_0x2a5830+'\x20-\x20'+_0x33a780['content']));break;case _0x41c673(0x1cc):_0xd9d4e4[_0x41c673(0x1d8)](a154_0x41bb49['green'](_0x7c3d2a+'\x20'+_0x2a5830+_0x41c673(0x1d7)+_0x33a780[_0x41c673(0x1d0)]));break;default:_0xd9d4e4[_0x41c673(0x1d8)](a154_0x41bb49[_0x41c673(0x1d1)](_0x7c3d2a+'\x20'+_0x2a5830+_0x41c673(0x1c1)+_0x33a780[_0x41c673(0x1d0)]));break;}}return _0xd9d4e4['join']('\x0a');}export function hasChanges(_0x7d5d97){const _0x3578af=a154_0x1c0a;return _0x7d5d97[_0x3578af(0x1be)](_0x5291f6=>_0x5291f6[_0x3578af(0x1ba)]!==_0x3578af(0x1bc));}
@@ -1 +1 @@
1
- (function(_0x11b3a9,_0x265678){const _0x2f3f05=a155_0x41e1,_0x5d92db=_0x11b3a9();while(!![]){try{const _0x25ef3c=parseInt(_0x2f3f05(0x1e3))/0x1+parseInt(_0x2f3f05(0x1ec))/0x2*(-parseInt(_0x2f3f05(0x1e5))/0x3)+parseInt(_0x2f3f05(0x1ea))/0x4*(parseInt(_0x2f3f05(0x1de))/0x5)+-parseInt(_0x2f3f05(0x1eb))/0x6+parseInt(_0x2f3f05(0x1e0))/0x7*(parseInt(_0x2f3f05(0x1ed))/0x8)+parseInt(_0x2f3f05(0x1e2))/0x9+parseInt(_0x2f3f05(0x1e1))/0xa;if(_0x25ef3c===_0x265678)break;else _0x5d92db['push'](_0x5d92db['shift']());}catch(_0xd3316d){_0x5d92db['push'](_0x5d92db['shift']());}}}(a155_0x4ec5,0x21581));import*as a155_0x4964ee from'node:fs';import*as a155_0x588d4b from'node:path';export function setSecureFilePermissions(_0x25ae38){const _0x30b455=a155_0x41e1;try{a155_0x4964ee[_0x30b455(0x1dd)](_0x25ae38,0x180);}catch{console[_0x30b455(0x1e9)](_0x30b455(0x1e8)+_0x25ae38);}}export function setSecureDirectoryPermissions(_0x560441){const _0x519d2c=a155_0x41e1;try{a155_0x4964ee['chmodSync'](_0x560441,0x1c0);}catch{console[_0x519d2c(0x1e9)](_0x519d2c(0x1e8)+_0x560441);}}function a155_0x41e1(_0x421146,_0x52d3f9){_0x421146=_0x421146-0x1dc;const _0x4ec553=a155_0x4ec5();let _0x41e1cc=_0x4ec553[_0x421146];return _0x41e1cc;}export function createSecureDirectory(_0x249ca4){!a155_0x4964ee['existsSync'](_0x249ca4)&&(a155_0x4964ee['mkdirSync'](_0x249ca4,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x249ca4));}export function validateSecureFilePermissions(_0x102cb0){const _0x21feb3=a155_0x41e1;try{const _0x337044=a155_0x4964ee[_0x21feb3(0x1e4)](_0x102cb0),_0x5ed914=_0x337044[_0x21feb3(0x1e7)]&0x1ff,_0x2a2787=(_0x5ed914&0x3f)!==0x0;if(_0x2a2787)return console[_0x21feb3(0x1e9)]('Warning:\x20'+_0x102cb0+'\x20has\x20insecure\x20permissions\x20('+_0x5ed914[_0x21feb3(0x1e6)](0x8)+_0x21feb3(0x1df)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a155_0x4ec5(){const _0x2a2d33=['warn','20dBQcWt','396720tPacdg','5656KtqTna','16gxTMNk','writeFileSync','chmodSync','154205kQWbFT',').\x20','50603ICjnTV','697500PYNZeo','1001484IAevUQ','8548Euvcqs','statSync','165tvPyKN','toString','mode','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a155_0x4ec5=function(){return _0x2a2d33;};return a155_0x4ec5();}export function writeSecureFile(_0x3d8811,_0x5b6803){const _0x3fd68f=a155_0x41e1,_0x54fced=a155_0x588d4b['dirname'](_0x3d8811);createSecureDirectory(_0x54fced),a155_0x4964ee[_0x3fd68f(0x1dc)](_0x3d8811,_0x5b6803,{'mode':0x180}),setSecureFilePermissions(_0x3d8811);}
1
+ (function(_0x230ee5,_0x19e4e9){const _0x1bfad7=a155_0x4989,_0x13710c=_0x230ee5();while(!![]){try{const _0x17f4a1=-parseInt(_0x1bfad7(0x18c))/0x1+-parseInt(_0x1bfad7(0x182))/0x2+-parseInt(_0x1bfad7(0x17d))/0x3*(-parseInt(_0x1bfad7(0x183))/0x4)+parseInt(_0x1bfad7(0x18e))/0x5+parseInt(_0x1bfad7(0x184))/0x6*(parseInt(_0x1bfad7(0x17e))/0x7)+-parseInt(_0x1bfad7(0x187))/0x8*(-parseInt(_0x1bfad7(0x18b))/0x9)+-parseInt(_0x1bfad7(0x18a))/0xa;if(_0x17f4a1===_0x19e4e9)break;else _0x13710c['push'](_0x13710c['shift']());}catch(_0x24eb99){_0x13710c['push'](_0x13710c['shift']());}}}(a155_0x2c10,0x97783));function a155_0x4989(_0x1a93ff,_0x35600b){_0x1a93ff=_0x1a93ff-0x17c;const _0x2c1021=a155_0x2c10();let _0x49891e=_0x2c1021[_0x1a93ff];return _0x49891e;}import*as a155_0x8c3777 from'node:fs';import*as a155_0x5b7dcb from'node:path';export function setSecureFilePermissions(_0x66f28b){const _0x139adc=a155_0x4989;try{a155_0x8c3777['chmodSync'](_0x66f28b,0x180);}catch{console[_0x139adc(0x186)](_0x139adc(0x18d)+_0x66f28b);}}export function setSecureDirectoryPermissions(_0x2d283f){const _0xbb4f1d=a155_0x4989;try{a155_0x8c3777[_0xbb4f1d(0x17c)](_0x2d283f,0x1c0);}catch{console[_0xbb4f1d(0x186)](_0xbb4f1d(0x18d)+_0x2d283f);}}export function createSecureDirectory(_0xb5e00c){const _0x61d694=a155_0x4989;!a155_0x8c3777[_0x61d694(0x181)](_0xb5e00c)&&(a155_0x8c3777['mkdirSync'](_0xb5e00c,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xb5e00c));}export function validateSecureFilePermissions(_0x2e30bf){const _0x5d5747=a155_0x4989;try{const _0x4e22f6=a155_0x8c3777['statSync'](_0x2e30bf),_0x29cc9c=_0x4e22f6[_0x5d5747(0x189)]&0x1ff,_0x1f7018=(_0x29cc9c&0x3f)!==0x0;if(_0x1f7018)return console[_0x5d5747(0x186)]('Warning:\x20'+_0x2e30bf+_0x5d5747(0x18f)+_0x29cc9c[_0x5d5747(0x180)](0x8)+_0x5d5747(0x190)+_0x5d5747(0x17f)),![];return!![];}catch{return!![];}}function a155_0x2c10(){const _0x5b11a8=['341056PEiYpO','31820EOAcXb','20598UzxcSR','dirname','warn','808LwrRFb','writeFileSync','mode','18159710SbIKEt','94203IRVTyd','243078DnwkLQ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4163555VjnzdL','\x20has\x20insecure\x20permissions\x20(',').\x20','chmodSync','309GIxqMn','287RfFmUH','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','existsSync'];a155_0x2c10=function(){return _0x5b11a8;};return a155_0x2c10();}export function writeSecureFile(_0x214229,_0x4c619a){const _0x538318=a155_0x4989,_0x20957c=a155_0x5b7dcb[_0x538318(0x185)](_0x214229);createSecureDirectory(_0x20957c),a155_0x8c3777[_0x538318(0x188)](_0x214229,_0x4c619a,{'mode':0x180}),setSecureFilePermissions(_0x214229);}
@@ -1 +1 @@
1
- (function(_0x2a2e4f,_0x12ffeb){const _0x45dd8f=a156_0x5edc,_0x14da0a=_0x2a2e4f();while(!![]){try{const _0x282d67=-parseInt(_0x45dd8f(0x85))/0x1+parseInt(_0x45dd8f(0x81))/0x2+parseInt(_0x45dd8f(0x7d))/0x3*(parseInt(_0x45dd8f(0x84))/0x4)+-parseInt(_0x45dd8f(0x82))/0x5*(parseInt(_0x45dd8f(0x7f))/0x6)+parseInt(_0x45dd8f(0x7b))/0x7+parseInt(_0x45dd8f(0x7a))/0x8*(parseInt(_0x45dd8f(0x8c))/0x9)+-parseInt(_0x45dd8f(0x87))/0xa;if(_0x282d67===_0x12ffeb)break;else _0x14da0a['push'](_0x14da0a['shift']());}catch(_0x5629c7){_0x14da0a['push'](_0x14da0a['shift']());}}}(a156_0x27ef,0x2edf7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x295612=a156_0x5edc;return process.env.TDX_CACHE_DIR||join(homedir(),_0x295612(0x88),_0x295612(0x86));}const registry=new Map();export function registerGlobalCacheKey(_0x536c76,_0xf221b0){const _0x19961b=a156_0x5edc,_0x55251a=registry['get'](_0x536c76);if(_0x55251a&&_0x55251a!==_0xf221b0)throw new Error(_0x19961b(0x8a)+_0x536c76+'\x22\x20already\x20registered\x20by\x20\x22'+_0x55251a+_0x19961b(0x8d)+_0xf221b0+'\x22');registry['set'](_0x536c76,_0xf221b0);}export function getGlobalCachePath(_0x1ba608){return join(getGlobalCacheDir(),_0x1ba608);}function ensureGlobalCacheDir(){const _0x5d989e=getGlobalCacheDir();!existsSync(_0x5d989e)&&mkdirSync(_0x5d989e,{'recursive':!![]});}function readCacheJson(_0x239d7b){const _0x1fd967=getGlobalCachePath(_0x239d7b);if(!existsSync(_0x1fd967))return undefined;try{const _0x2a51a2=readFileSync(_0x1fd967,'utf-8');return JSON['parse'](_0x2a51a2);}catch{return undefined;}}function writeCacheJson(_0x526a41,_0x3faaeb){const _0x2d6552=a156_0x5edc;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x526a41),JSON[_0x2d6552(0x80)](_0x3faaeb,null,0x2),_0x2d6552(0x8b));}function readCacheText(_0x1c1819){const _0x389bfb=a156_0x5edc,_0x3b4736=getGlobalCachePath(_0x1c1819);if(!existsSync(_0x3b4736))return undefined;try{return readFileSync(_0x3b4736,_0x389bfb(0x8b));}catch{return undefined;}}function writeCacheText(_0x4ec313,_0x1dc169){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ec313),_0x1dc169,'utf-8');}function a156_0x27ef(){const _0x6b730b=['963FTRvHN','\x22,\x20cannot\x20register\x20for\x20\x22','default','16888WfbGLl','2513637NzzVNL','trim','188403yFYCEN','{profile}','775878oyEacP','stringify','56226zfucTt','5jTkVlK','clear','16gEUDMZ','108092upBotq','tdx','4348890iiUmMx','.cache','replace','Global\x20cache\x20key\x20\x22','utf-8'];a156_0x27ef=function(){return _0x6b730b;};return a156_0x27ef();}function clearCache(_0x2f14ae){const _0xe8336b=getGlobalCachePath(_0x2f14ae);if(existsSync(_0xe8336b))try{unlinkSync(_0xe8336b);}catch{}}function cacheExists(_0x529dde){return existsSync(getGlobalCachePath(_0x529dde));}export function createGlobalCache(_0x54cbe6,_0x472556){return registerGlobalCacheKey(_0x54cbe6,_0x472556),{'read':()=>readCacheJson(_0x54cbe6),'write':_0x22ae80=>writeCacheJson(_0x54cbe6,_0x22ae80),'clear':()=>clearCache(_0x54cbe6),'exists':()=>cacheExists(_0x54cbe6),'path':()=>getGlobalCachePath(_0x54cbe6)};}export function createGlobalTextCache(_0x2a919f,_0x4b2833){const _0x562d9f=a156_0x5edc;return registerGlobalCacheKey(_0x2a919f,_0x4b2833),{'read':()=>readCacheText(_0x2a919f)?.[_0x562d9f(0x7c)]()||undefined,'write':_0xdb00a2=>writeCacheText(_0x2a919f,_0xdb00a2),'clear':()=>clearCache(_0x2a919f),'exists':()=>cacheExists(_0x2a919f),'path':()=>getGlobalCachePath(_0x2a919f)};}export function createProfileCache(_0xfbb3db,_0x28eb22){const _0x3c3a04=_0x3b9abd=>{const _0x562a57=a156_0x5edc,_0x233500=_0x3b9abd||_0x562a57(0x79);return _0xfbb3db[_0x562a57(0x89)](_0x562a57(0x7e),_0x233500);};return{'read':_0x29bc0b=>{const _0xb0f806=_0x3c3a04(_0x29bc0b);return registerGlobalCacheKey(_0xb0f806,_0x28eb22),readCacheJson(_0xb0f806);},'write':(_0x6a45e1,_0xeee81c)=>{const _0x3517c3=_0x3c3a04(_0x6a45e1);registerGlobalCacheKey(_0x3517c3,_0x28eb22),writeCacheJson(_0x3517c3,_0xeee81c);},'clear':_0x15eb28=>{const _0x20c3ad=_0x3c3a04(_0x15eb28);clearCache(_0x20c3ad);},'exists':_0x347668=>{const _0x4748d0=_0x3c3a04(_0x347668);return cacheExists(_0x4748d0);},'path':_0x247e10=>{const _0x497ffe=_0x3c3a04(_0x247e10);return getGlobalCachePath(_0x497ffe);}};}function a156_0x5edc(_0x24fdf6,_0x2ec147){_0x24fdf6=_0x24fdf6-0x79;const _0x27ef98=a156_0x27ef();let _0x5edce5=_0x27ef98[_0x24fdf6];return _0x5edce5;}export function createOptionalProfileCache(_0x29788b,_0x2aadad,_0x41254c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x41254c,_0x26f40a=_0x1e8a55=>{return _0x1e8a55?''+_0x29788b+profileSeparator+_0x1e8a55+suffix:''+_0x29788b+suffix;};return{'read':_0x4c53b3=>{const _0x115ae4=_0x26f40a(_0x4c53b3);return registerGlobalCacheKey(_0x115ae4,_0x2aadad),readCacheJson(_0x115ae4);},'write':(_0x3f771b,_0x4c9fdf)=>{const _0x56f1bd=_0x26f40a(_0x4c9fdf);registerGlobalCacheKey(_0x56f1bd,_0x2aadad),writeCacheJson(_0x56f1bd,_0x3f771b);},'clear':_0xc294c9=>{const _0x991172=_0x26f40a(_0xc294c9);clearCache(_0x991172);},'exists':_0xced00c=>{const _0x4bd51f=_0x26f40a(_0xced00c);return cacheExists(_0x4bd51f);},'path':_0x3f11ea=>{const _0x8dc77f=_0x26f40a(_0x3f11ea);return getGlobalCachePath(_0x8dc77f);}};}export function clearGlobalRegistry(){const _0x1e5a1a=a156_0x5edc;registry[_0x1e5a1a(0x83)]();}
1
+ (function(_0x1a8f82,_0x200b53){const _0x38ac25=a156_0x8430,_0x49fe08=_0x1a8f82();while(!![]){try{const _0x2a7cac=parseInt(_0x38ac25(0xf0))/0x1*(-parseInt(_0x38ac25(0xda))/0x2)+-parseInt(_0x38ac25(0xe6))/0x3*(-parseInt(_0x38ac25(0xe4))/0x4)+parseInt(_0x38ac25(0xe2))/0x5+-parseInt(_0x38ac25(0xe7))/0x6*(parseInt(_0x38ac25(0xee))/0x7)+-parseInt(_0x38ac25(0xdf))/0x8*(-parseInt(_0x38ac25(0xe9))/0x9)+-parseInt(_0x38ac25(0xe5))/0xa*(-parseInt(_0x38ac25(0xe3))/0xb)+parseInt(_0x38ac25(0xdd))/0xc*(-parseInt(_0x38ac25(0xde))/0xd);if(_0x2a7cac===_0x200b53)break;else _0x49fe08['push'](_0x49fe08['shift']());}catch(_0x3685fe){_0x49fe08['push'](_0x49fe08['shift']());}}}(a156_0x55c9,0x357de));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a156_0x8430(_0xff5065,_0x58aeda){_0xff5065=_0xff5065-0xda;const _0x55c964=a156_0x55c9();let _0x843039=_0x55c964[_0xff5065];return _0x843039;}import{homedir}from'os';export function getGlobalCacheDir(){const _0x2104e4=a156_0x8430;return process.env.TDX_CACHE_DIR||join(homedir(),_0x2104e4(0xdb),_0x2104e4(0xe8));}const registry=new Map();export function registerGlobalCacheKey(_0x54f176,_0xad896e){const _0x2ffbd7=a156_0x8430,_0x207107=registry[_0x2ffbd7(0xec)](_0x54f176);if(_0x207107&&_0x207107!==_0xad896e)throw new Error(_0x2ffbd7(0xed)+_0x54f176+_0x2ffbd7(0xe0)+_0x207107+_0x2ffbd7(0xe1)+_0xad896e+'\x22');registry[_0x2ffbd7(0xeb)](_0x54f176,_0xad896e);}export function getGlobalCachePath(_0x192b5a){return join(getGlobalCacheDir(),_0x192b5a);}function ensureGlobalCacheDir(){const _0x257198=getGlobalCacheDir();!existsSync(_0x257198)&&mkdirSync(_0x257198,{'recursive':!![]});}function readCacheJson(_0x4c25fe){const _0x248a22=a156_0x8430,_0x3d8699=getGlobalCachePath(_0x4c25fe);if(!existsSync(_0x3d8699))return undefined;try{const _0x186198=readFileSync(_0x3d8699,_0x248a22(0xf2));return JSON[_0x248a22(0xf3)](_0x186198);}catch{return undefined;}}function writeCacheJson(_0x4ab262,_0x8cc4c4){const _0x1a55c6=a156_0x8430;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ab262),JSON['stringify'](_0x8cc4c4,null,0x2),_0x1a55c6(0xf2));}function readCacheText(_0x4013ee){const _0x524e12=getGlobalCachePath(_0x4013ee);if(!existsSync(_0x524e12))return undefined;try{return readFileSync(_0x524e12,'utf-8');}catch{return undefined;}}function writeCacheText(_0x589b93,_0xa9c93d){const _0x4f2ec6=a156_0x8430;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x589b93),_0xa9c93d,_0x4f2ec6(0xf2));}function clearCache(_0xa1e90d){const _0x2f3d1a=getGlobalCachePath(_0xa1e90d);if(existsSync(_0x2f3d1a))try{unlinkSync(_0x2f3d1a);}catch{}}function a156_0x55c9(){const _0x10f52f=['340088rteNyd','trim','9JSmWGZ','replace','utf-8','parse','17896QBwENV','.cache','{profile}','12IjdBzc','3752086OqpHCo','664qIrXot','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','688855qHIjXQ','2193851SDyqOj','436oVRwRN','10EsGcFB','4227vAycWR','30KzlXSg','tdx','36909LJfbsH','clear','set','get','Global\x20cache\x20key\x20\x22'];a156_0x55c9=function(){return _0x10f52f;};return a156_0x55c9();}function cacheExists(_0x5747c2){return existsSync(getGlobalCachePath(_0x5747c2));}export function createGlobalCache(_0xa7eaab,_0x57b010){return registerGlobalCacheKey(_0xa7eaab,_0x57b010),{'read':()=>readCacheJson(_0xa7eaab),'write':_0xccd335=>writeCacheJson(_0xa7eaab,_0xccd335),'clear':()=>clearCache(_0xa7eaab),'exists':()=>cacheExists(_0xa7eaab),'path':()=>getGlobalCachePath(_0xa7eaab)};}export function createGlobalTextCache(_0x206f7d,_0x41df99){const _0x3d1e73=a156_0x8430;return registerGlobalCacheKey(_0x206f7d,_0x41df99),{'read':()=>readCacheText(_0x206f7d)?.[_0x3d1e73(0xef)]()||undefined,'write':_0x1a5902=>writeCacheText(_0x206f7d,_0x1a5902),'clear':()=>clearCache(_0x206f7d),'exists':()=>cacheExists(_0x206f7d),'path':()=>getGlobalCachePath(_0x206f7d)};}export function createProfileCache(_0x1f1b13,_0x25a23d){const _0x5c3aa5=_0x582346=>{const _0x248f77=a156_0x8430,_0x524c08=_0x582346||'default';return _0x1f1b13[_0x248f77(0xf1)](_0x248f77(0xdc),_0x524c08);};return{'read':_0x2d1da0=>{const _0x321ba4=_0x5c3aa5(_0x2d1da0);return registerGlobalCacheKey(_0x321ba4,_0x25a23d),readCacheJson(_0x321ba4);},'write':(_0x3f2490,_0x22a6bc)=>{const _0x303f71=_0x5c3aa5(_0x3f2490);registerGlobalCacheKey(_0x303f71,_0x25a23d),writeCacheJson(_0x303f71,_0x22a6bc);},'clear':_0x117db6=>{const _0x21078b=_0x5c3aa5(_0x117db6);clearCache(_0x21078b);},'exists':_0x422a47=>{const _0x3d2b0d=_0x5c3aa5(_0x422a47);return cacheExists(_0x3d2b0d);},'path':_0x223c30=>{const _0x17c967=_0x5c3aa5(_0x223c30);return getGlobalCachePath(_0x17c967);}};}export function createOptionalProfileCache(_0x340fee,_0x21b7bd,_0x4a6c7a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4a6c7a,_0x1751c7=_0x3973f5=>{return _0x3973f5?''+_0x340fee+profileSeparator+_0x3973f5+suffix:''+_0x340fee+suffix;};return{'read':_0x11573a=>{const _0x59b5ba=_0x1751c7(_0x11573a);return registerGlobalCacheKey(_0x59b5ba,_0x21b7bd),readCacheJson(_0x59b5ba);},'write':(_0x894191,_0x457048)=>{const _0x3401a7=_0x1751c7(_0x457048);registerGlobalCacheKey(_0x3401a7,_0x21b7bd),writeCacheJson(_0x3401a7,_0x894191);},'clear':_0x397b8e=>{const _0xe3cf95=_0x1751c7(_0x397b8e);clearCache(_0xe3cf95);},'exists':_0xaca63f=>{const _0x28ae9e=_0x1751c7(_0xaca63f);return cacheExists(_0x28ae9e);},'path':_0x22df5d=>{const _0x2a2c41=_0x1751c7(_0x22df5d);return getGlobalCachePath(_0x2a2c41);}};}export function clearGlobalRegistry(){const _0x475de1=a156_0x8430;registry[_0x475de1(0xea)]();}
@@ -1 +1 @@
1
- (function(_0x4979a5,_0x255268){const _0x2efb69=a157_0xa67f,_0x188258=_0x4979a5();while(!![]){try{const _0x4f2abf=-parseInt(_0x2efb69(0xaa))/0x1+-parseInt(_0x2efb69(0xa0))/0x2*(-parseInt(_0x2efb69(0xa7))/0x3)+-parseInt(_0x2efb69(0x9c))/0x4*(-parseInt(_0x2efb69(0xb0))/0x5)+parseInt(_0x2efb69(0xb3))/0x6*(parseInt(_0x2efb69(0xac))/0x7)+-parseInt(_0x2efb69(0x9d))/0x8+parseInt(_0x2efb69(0xaf))/0x9*(-parseInt(_0x2efb69(0xa6))/0xa)+parseInt(_0x2efb69(0xae))/0xb*(parseInt(_0x2efb69(0x9b))/0xc);if(_0x4f2abf===_0x255268)break;else _0x188258['push'](_0x188258['shift']());}catch(_0x2420c6){_0x188258['push'](_0x188258['shift']());}}}(a157_0x1ae0,0xa30e6));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x20b4f8,_0x5379b8){const _0x52e759=a157_0xa67f;try{if(_0x5379b8){const _0x3bcdff=await readFile(_0x20b4f8,_0x52e759(0x9e));try{return JSON[_0x52e759(0x9f)](_0x3bcdff);}catch(_0x49686b){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x52e759(0xa2)+_0x20b4f8+'\x27:\x20'+(_0x49686b instanceof Error?_0x49686b[_0x52e759(0xa9)]:String(_0x49686b)));}}else try{return JSON[_0x52e759(0x9f)](_0x20b4f8);}catch(_0x31af01){throw new SDKError(ErrorCode[_0x52e759(0xab)],'Invalid\x20JSON\x20string:\x20'+(_0x31af01 instanceof Error?_0x31af01['message']:String(_0x31af01)));}}catch(_0x444f22){if(_0x444f22 instanceof SDKError)throw _0x444f22;if(_0x444f22 instanceof Error&&_0x52e759(0xa4)in _0x444f22){const _0x3a8109=_0x444f22;if(_0x3a8109[_0x52e759(0xa4)]===_0x52e759(0xa1))throw new SDKError(ErrorCode[_0x52e759(0xa8)],_0x52e759(0xb4)+_0x20b4f8);else{if(_0x3a8109['code']===_0x52e759(0xb1))throw new SDKError(ErrorCode[_0x52e759(0xad)],'Permission\x20denied\x20reading\x20file:\x20'+_0x20b4f8);}}throw new SDKError(ErrorCode[_0x52e759(0xa5)],_0x52e759(0xb2)+(_0x444f22 instanceof Error?_0x444f22['message']:String(_0x444f22)));}}function a157_0x1ae0(){const _0x4f4188=['File\x20not\x20found:\x20','1337388dvgqLc','23588GxVurn','9233360sWfBXr','utf-8','parse','2eeQNOM','ENOENT','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','code','INTERNAL','10yZtuea','1076721ehxZBi','NOT_FOUND','message','1251545QzuNyF','INVALID_ARGUMENT','646667KyMlHe','PERMISSION_DENIED','286mdyspE','7484634UMXSvo','80CCJuMT','EACCES','Failed\x20to\x20load\x20JSON:\x20','36MyzeWb'];a157_0x1ae0=function(){return _0x4f4188;};return a157_0x1ae0();}function a157_0xa67f(_0x428d1b,_0x2d3496){_0x428d1b=_0x428d1b-0x9b;const _0x1ae0e5=a157_0x1ae0();let _0xa67f82=_0x1ae0e5[_0x428d1b];return _0xa67f82;}export async function loadJSONFromOptions(_0x97858,_0x4c9dc7){const _0x51b145=a157_0xa67f;if(_0x97858&&_0x4c9dc7)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x51b145(0xa3));if(_0x97858)return await loadJSON(_0x97858,![]);if(_0x4c9dc7)return await loadJSON(_0x4c9dc7,!![]);return undefined;}
1
+ function a157_0x3ebe(){const _0x310220=['Invalid\x20JSON\x20string:\x20','2QhtLfH','67076KizdKp','3699689hbnCXv','484709iebqPF','1308453gmSpNf','message','code','PERMISSION_DENIED','INTERNAL','File\x20not\x20found:\x20','3599040BqyLsp','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2421iEzfFU','NOT_FOUND','ENOENT','29352ydoMAm','849875KYvwRW','Permission\x20denied\x20reading\x20file:\x20'];a157_0x3ebe=function(){return _0x310220;};return a157_0x3ebe();}function a157_0x58cf(_0x3c37a6,_0x20f38d){_0x3c37a6=_0x3c37a6-0x8f;const _0x3ebec2=a157_0x3ebe();let _0x58cf55=_0x3ebec2[_0x3c37a6];return _0x58cf55;}(function(_0x34bf7c,_0x7458c3){const _0xd3c93f=a157_0x58cf,_0x61cbb2=_0x34bf7c();while(!![]){try{const _0x2cdba9=parseInt(_0xd3c93f(0x9a))/0x1+parseInt(_0xd3c93f(0x97))/0x2*(-parseInt(_0xd3c93f(0x9b))/0x3)+-parseInt(_0xd3c93f(0x98))/0x4+parseInt(_0xd3c93f(0x94))/0x5+parseInt(_0xd3c93f(0xa1))/0x6+parseInt(_0xd3c93f(0x99))/0x7+-parseInt(_0xd3c93f(0x93))/0x8*(parseInt(_0xd3c93f(0x90))/0x9);if(_0x2cdba9===_0x7458c3)break;else _0x61cbb2['push'](_0x61cbb2['shift']());}catch(_0x2eeec0){_0x61cbb2['push'](_0x61cbb2['shift']());}}}(a157_0x3ebe,0x53c82));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x13e0cd,_0x4acf9a){const _0x53cfbd=a157_0x58cf;try{if(_0x4acf9a){const _0x327a99=await readFile(_0x13e0cd,'utf-8');try{return JSON['parse'](_0x327a99);}catch(_0x398fa7){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x13e0cd+'\x27:\x20'+(_0x398fa7 instanceof Error?_0x398fa7[_0x53cfbd(0x9c)]:String(_0x398fa7)));}}else try{return JSON['parse'](_0x13e0cd);}catch(_0x3e5e89){throw new SDKError(ErrorCode[_0x53cfbd(0xa2)],_0x53cfbd(0x96)+(_0x3e5e89 instanceof Error?_0x3e5e89['message']:String(_0x3e5e89)));}}catch(_0x2367c2){if(_0x2367c2 instanceof SDKError)throw _0x2367c2;if(_0x2367c2 instanceof Error&&'code'in _0x2367c2){const _0x4a89a5=_0x2367c2;if(_0x4a89a5['code']===_0x53cfbd(0x92))throw new SDKError(ErrorCode[_0x53cfbd(0x91)],_0x53cfbd(0xa0)+_0x13e0cd);else{if(_0x4a89a5[_0x53cfbd(0x9d)]==='EACCES')throw new SDKError(ErrorCode[_0x53cfbd(0x9e)],_0x53cfbd(0x95)+_0x13e0cd);}}throw new SDKError(ErrorCode[_0x53cfbd(0x9f)],_0x53cfbd(0xa3)+(_0x2367c2 instanceof Error?_0x2367c2[_0x53cfbd(0x9c)]:String(_0x2367c2)));}}export async function loadJSONFromOptions(_0x5757f8,_0x19d8a0){const _0x5218ef=a157_0x58cf;if(_0x5757f8&&_0x19d8a0)throw new SDKError(ErrorCode[_0x5218ef(0xa2)],_0x5218ef(0x8f));if(_0x5757f8)return await loadJSON(_0x5757f8,![]);if(_0x19d8a0)return await loadJSON(_0x19d8a0,!![]);return undefined;}
@@ -1 +1 @@
1
- function a158_0x51c1(){const _0x32e713=['parse','Cache\x20key\x20\x22','set','378474ZHxGrx','trim','818288QYZXHw','393330fJWmPU','396725FzEwEN','7iKguBN','330244ifiuhL','\x22\x20already\x20registered\x20by\x20\x22','get','clear','.cache/tdx','4336722ibLVgd','103261zIgNkU','cwd','stringify','4okPkOU','utf-8'];a158_0x51c1=function(){return _0x32e713;};return a158_0x51c1();}const a158_0xf59969=a158_0x4b52;(function(_0x56b49b,_0x42e525){const _0x5db460=a158_0x4b52,_0x13ab5c=_0x56b49b();while(!![]){try{const _0x3267cb=-parseInt(_0x5db460(0xd0))/0x1+-parseInt(_0x5db460(0xde))/0x2+-parseInt(_0x5db460(0xd8))/0x3*(parseInt(_0x5db460(0xd3))/0x4)+parseInt(_0x5db460(0xdc))/0x5+parseInt(_0x5db460(0xdb))/0x6+-parseInt(_0x5db460(0xdd))/0x7*(parseInt(_0x5db460(0xda))/0x8)+parseInt(_0x5db460(0xcf))/0x9;if(_0x3267cb===_0x42e525)break;else _0x13ab5c['push'](_0x13ab5c['shift']());}catch(_0x56129e){_0x13ab5c['push'](_0x13ab5c['shift']());}}}(a158_0x51c1,0x1fb8b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0xf59969(0xce),registry=new Map();function a158_0x4b52(_0x44121c,_0x530d13){_0x44121c=_0x44121c-0xce;const _0x51c110=a158_0x51c1();let _0x4b5273=_0x51c110[_0x44121c];return _0x4b5273;}export function registerCacheKey(_0x12eb77,_0x2c9d9c){const _0x35bf36=a158_0xf59969,_0x10b876=registry[_0x35bf36(0xe0)](_0x12eb77);if(_0x10b876&&_0x10b876!==_0x2c9d9c)throw new Error(_0x35bf36(0xd6)+_0x12eb77+_0x35bf36(0xdf)+_0x10b876+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x2c9d9c+'\x22');registry[_0x35bf36(0xd7)](_0x12eb77,_0x2c9d9c);}export function getCacheDir(){const _0xe2f8f9=a158_0xf59969;return join(process[_0xe2f8f9(0xd1)](),LOCAL_CACHE_DIR);}export function getCachePath(_0xdd47de){return join(getCacheDir(),_0xdd47de);}function ensureCacheDir(){const _0x2f9cc0=getCacheDir();!existsSync(_0x2f9cc0)&&mkdirSync(_0x2f9cc0,{'recursive':!![]});}function readCacheJson(_0x2bde44){const _0x408a20=a158_0xf59969,_0x18efbe=getCachePath(_0x2bde44);if(!existsSync(_0x18efbe))return undefined;try{const _0x21be7b=readFileSync(_0x18efbe,_0x408a20(0xd4));return JSON[_0x408a20(0xd5)](_0x21be7b);}catch{return undefined;}}function writeCacheJson(_0x1fdcc1,_0x3ec6c0){const _0x30ebc9=a158_0xf59969;ensureCacheDir(),writeFileSync(getCachePath(_0x1fdcc1),JSON[_0x30ebc9(0xd2)](_0x3ec6c0,null,0x2),_0x30ebc9(0xd4));}function readCacheText(_0x391f16){const _0x382313=a158_0xf59969,_0x486e74=getCachePath(_0x391f16);if(!existsSync(_0x486e74))return undefined;try{return readFileSync(_0x486e74,_0x382313(0xd4));}catch{return undefined;}}function writeCacheText(_0x5518c2,_0x57ab55){ensureCacheDir(),writeFileSync(getCachePath(_0x5518c2),_0x57ab55,'utf-8');}function clearCache(_0x43cbf6){const _0x5b882c=getCachePath(_0x43cbf6);if(existsSync(_0x5b882c))try{unlinkSync(_0x5b882c);}catch{}}function cacheExists(_0x491ff4){return existsSync(getCachePath(_0x491ff4));}export function createCache(_0x87f01d,_0x16092d){return registerCacheKey(_0x87f01d,_0x16092d),{'read':()=>readCacheJson(_0x87f01d),'write':_0x862429=>writeCacheJson(_0x87f01d,_0x862429),'clear':()=>clearCache(_0x87f01d),'exists':()=>cacheExists(_0x87f01d),'path':()=>getCachePath(_0x87f01d)};}export function createTextCache(_0x493434,_0x10ac9d){const _0x1a5242=a158_0xf59969;return registerCacheKey(_0x493434,_0x10ac9d),{'read':()=>readCacheText(_0x493434)?.[_0x1a5242(0xd9)]()||undefined,'write':_0x2b1721=>writeCacheText(_0x493434,_0x2b1721),'clear':()=>clearCache(_0x493434),'exists':()=>cacheExists(_0x493434),'path':()=>getCachePath(_0x493434)};}export function clearRegistry(){const _0x4f66cd=a158_0xf59969;registry[_0x4f66cd(0xe1)]();}
1
+ const a158_0x587ace=a158_0x5eb2;function a158_0x5eb2(_0x1f20ea,_0x19cb37){_0x1f20ea=_0x1f20ea-0x195;const _0x258c30=a158_0x258c();let _0x5eb286=_0x258c30[_0x1f20ea];return _0x5eb286;}(function(_0x438573,_0x3a8b0e){const _0x4c1869=a158_0x5eb2,_0x398575=_0x438573();while(!![]){try{const _0x418e18=parseInt(_0x4c1869(0x1a4))/0x1+-parseInt(_0x4c1869(0x19e))/0x2+-parseInt(_0x4c1869(0x197))/0x3+-parseInt(_0x4c1869(0x1a3))/0x4+parseInt(_0x4c1869(0x196))/0x5+parseInt(_0x4c1869(0x199))/0x6*(parseInt(_0x4c1869(0x1a0))/0x7)+parseInt(_0x4c1869(0x1a1))/0x8*(-parseInt(_0x4c1869(0x19f))/0x9);if(_0x418e18===_0x3a8b0e)break;else _0x398575['push'](_0x398575['shift']());}catch(_0x29f2b7){_0x398575['push'](_0x398575['shift']());}}}(a158_0x258c,0x6120b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0x587ace(0x19b),registry=new Map();export function registerCacheKey(_0x23d6ae,_0x463c58){const _0x108201=a158_0x587ace,_0x524e7a=registry['get'](_0x23d6ae);if(_0x524e7a&&_0x524e7a!==_0x463c58)throw new Error(_0x108201(0x195)+_0x23d6ae+_0x108201(0x1a6)+_0x524e7a+_0x108201(0x19c)+_0x463c58+'\x22');registry['set'](_0x23d6ae,_0x463c58);}function a158_0x258c(){const _0x848d55=['Cache\x20key\x20\x22','3285825hOmwFI','725718zcaypP','trim','24GrntNI','clear','.cache/tdx','\x22,\x20cannot\x20register\x20for\x20\x22','stringify','1589772rbkjXA','148023XLUGjl','1206037nlLCaP','72AImVVo','utf-8','1843148iHpLat','697108VBvhpQ','parse','\x22\x20already\x20registered\x20by\x20\x22'];a158_0x258c=function(){return _0x848d55;};return a158_0x258c();}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}export function getCachePath(_0xda18ab){return join(getCacheDir(),_0xda18ab);}function ensureCacheDir(){const _0x41c235=getCacheDir();!existsSync(_0x41c235)&&mkdirSync(_0x41c235,{'recursive':!![]});}function readCacheJson(_0x1a9a89){const _0x49ac0f=a158_0x587ace,_0x156ab9=getCachePath(_0x1a9a89);if(!existsSync(_0x156ab9))return undefined;try{const _0x30cb4f=readFileSync(_0x156ab9,_0x49ac0f(0x1a2));return JSON[_0x49ac0f(0x1a5)](_0x30cb4f);}catch{return undefined;}}function writeCacheJson(_0x1dbfa6,_0x106f60){const _0x3e7953=a158_0x587ace;ensureCacheDir(),writeFileSync(getCachePath(_0x1dbfa6),JSON[_0x3e7953(0x19d)](_0x106f60,null,0x2),'utf-8');}function readCacheText(_0x28bf4a){const _0x4b27b5=getCachePath(_0x28bf4a);if(!existsSync(_0x4b27b5))return undefined;try{return readFileSync(_0x4b27b5,'utf-8');}catch{return undefined;}}function writeCacheText(_0x1f66ed,_0x468925){const _0x4d16aa=a158_0x587ace;ensureCacheDir(),writeFileSync(getCachePath(_0x1f66ed),_0x468925,_0x4d16aa(0x1a2));}function clearCache(_0x54c079){const _0x478374=getCachePath(_0x54c079);if(existsSync(_0x478374))try{unlinkSync(_0x478374);}catch{}}function cacheExists(_0x5f11f6){return existsSync(getCachePath(_0x5f11f6));}export function createCache(_0x387407,_0x526875){return registerCacheKey(_0x387407,_0x526875),{'read':()=>readCacheJson(_0x387407),'write':_0x207d6b=>writeCacheJson(_0x387407,_0x207d6b),'clear':()=>clearCache(_0x387407),'exists':()=>cacheExists(_0x387407),'path':()=>getCachePath(_0x387407)};}export function createTextCache(_0x527386,_0x51dcef){const _0x400564=a158_0x587ace;return registerCacheKey(_0x527386,_0x51dcef),{'read':()=>readCacheText(_0x527386)?.[_0x400564(0x198)]()||undefined,'write':_0x48ef14=>writeCacheText(_0x527386,_0x48ef14),'clear':()=>clearCache(_0x527386),'exists':()=>cacheExists(_0x527386),'path':()=>getCachePath(_0x527386)};}export function clearRegistry(){const _0x537219=a158_0x587ace;registry[_0x537219(0x19a)]();}
@@ -1 +1 @@
1
- const a159_0x4c3e9e=a159_0x3c69;function a159_0xdfd3(){const _0xf38150=['2GCENDc','timestamp','colors','chalk','20024895yInXKP','46347noMqVY','INFO','952JkPKYy','blue','442551pHuxgz','5171706cjHeOd','1632627xDXomx','green','component','WARN','dim','Chalk','TRACE','cyan','message','format','yellow','9GQXthh','4yrSxEd','level','colorLevel','7326750sDbRRd','DEBUG','112975lxPbZT'];a159_0xdfd3=function(){return _0xf38150;};return a159_0xdfd3();}(function(_0x2650bf,_0x1ebb2b){const _0x42ef91=a159_0x3c69,_0x109062=_0x2650bf();while(!![]){try{const _0x4d508c=parseInt(_0x42ef91(0x1d2))/0x1*(parseInt(_0x42ef91(0x1e6))/0x2)+parseInt(_0x42ef91(0x1d4))/0x3*(parseInt(_0x42ef91(0x1e0))/0x4)+parseInt(_0x42ef91(0x1e5))/0x5+-parseInt(_0x42ef91(0x1d3))/0x6+-parseInt(_0x42ef91(0x1ce))/0x7*(parseInt(_0x42ef91(0x1d0))/0x8)+parseInt(_0x42ef91(0x1df))/0x9*(-parseInt(_0x42ef91(0x1e3))/0xa)+parseInt(_0x42ef91(0x1ea))/0xb;if(_0x4d508c===_0x1ebb2b)break;else _0x109062['push'](_0x109062['shift']());}catch(_0x58dd2f){_0x109062['push'](_0x109062['shift']());}}}(a159_0xdfd3,0x6d32b));import a159_0x5baf7d from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x5baf7d,ChalkClass=chalkModule[a159_0x4c3e9e(0x1d9)]||chalkModule['default']?.[a159_0x4c3e9e(0x1d9)];function a159_0x3c69(_0x3969b0,_0x4821b3){_0x3969b0=_0x3969b0-0x1ce;const _0xdfd3d6=a159_0xdfd3();let _0x3c69f4=_0xdfd3d6[_0x3969b0];return _0x3c69f4;}export class DefaultLogFormatter{[a159_0x4c3e9e(0x1e8)];[a159_0x4c3e9e(0x1e9)];constructor(_0xc75c1={}){const _0x2cf85f=a159_0x4c3e9e;this['colors']=_0xc75c1[_0x2cf85f(0x1e8)]??![],this[_0x2cf85f(0x1e9)]=_0xc75c1[_0x2cf85f(0x1e8)]&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x5baf7d;}[a159_0x4c3e9e(0x1dd)](_0xb1ce52){const _0x26d102=a159_0x4c3e9e,_0x399eaa=formatTimestamp(_0xb1ce52[_0x26d102(0x1e7)]),_0x44daa9=logLevelToString(_0xb1ce52[_0x26d102(0x1e1)]);if(!this[_0x26d102(0x1e8)])return _0x399eaa+'\x20['+_0x44daa9+']\x20['+_0xb1ce52[_0x26d102(0x1d6)]+']\x20'+_0xb1ce52[_0x26d102(0x1dc)];const _0x2c3404=this[_0x26d102(0x1e9)][_0x26d102(0x1d8)](_0x399eaa),_0x29b3c7=this[_0x26d102(0x1e2)](_0x44daa9,_0xb1ce52[_0x26d102(0x1e1)]),_0x327f06=this['chalk'][_0x26d102(0x1d1)]('['+_0xb1ce52[_0x26d102(0x1d6)]+']');return _0x2c3404+'\x20'+_0x29b3c7+'\x20'+_0x327f06+'\x20'+_0xb1ce52['message'];}['colorLevel'](_0x157222,_0xbd8bf0){const _0x3cf6f0=a159_0x4c3e9e;switch(_0xbd8bf0){case LogLevel[_0x3cf6f0(0x1da)]:return this[_0x3cf6f0(0x1e9)]['gray']('['+_0x157222+']');case LogLevel[_0x3cf6f0(0x1e4)]:return this['chalk'][_0x3cf6f0(0x1d5)]('['+_0x157222+']');case LogLevel[_0x3cf6f0(0x1cf)]:return this[_0x3cf6f0(0x1e9)][_0x3cf6f0(0x1db)]('['+_0x157222+']');case LogLevel[_0x3cf6f0(0x1d7)]:return this[_0x3cf6f0(0x1e9)][_0x3cf6f0(0x1de)]('['+_0x157222+']');case LogLevel['ERROR']:return this[_0x3cf6f0(0x1e9)]['red']('['+_0x157222+']');default:return'['+_0x157222+']';}}}
1
+ const a159_0x1891b3=a159_0x1065;function a159_0x1065(_0x1f634b,_0x1f52ef){_0x1f634b=_0x1f634b-0x128;const _0x5d490e=a159_0x5d49();let _0x1065a9=_0x5d490e[_0x1f634b];return _0x1065a9;}(function(_0xaf6282,_0x2a283e){const _0xf24ca9=a159_0x1065,_0x2aa4d2=_0xaf6282();while(!![]){try{const _0x172313=-parseInt(_0xf24ca9(0x133))/0x1*(parseInt(_0xf24ca9(0x12c))/0x2)+-parseInt(_0xf24ca9(0x138))/0x3+-parseInt(_0xf24ca9(0x137))/0x4*(parseInt(_0xf24ca9(0x131))/0x5)+-parseInt(_0xf24ca9(0x13c))/0x6*(-parseInt(_0xf24ca9(0x128))/0x7)+-parseInt(_0xf24ca9(0x13b))/0x8*(-parseInt(_0xf24ca9(0x12d))/0x9)+-parseInt(_0xf24ca9(0x13d))/0xa*(parseInt(_0xf24ca9(0x12b))/0xb)+-parseInt(_0xf24ca9(0x142))/0xc*(-parseInt(_0xf24ca9(0x144))/0xd);if(_0x172313===_0x2a283e)break;else _0x2aa4d2['push'](_0x2aa4d2['shift']());}catch(_0x7a33c9){_0x2aa4d2['push'](_0x2aa4d2['shift']());}}}(a159_0x5d49,0xc0381));import a159_0x43e32a from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x43e32a,ChalkClass=chalkModule['Chalk']||chalkModule[a159_0x1891b3(0x136)]?.[a159_0x1891b3(0x13a)];function a159_0x5d49(){const _0x459f31=['3595802SZNHGH','DEBUG','yellow','11OrCxPN','396862VGOyPR','5787BUqwzw','message','cyan','component','45nmazzb','chalk','4DaeRdZ','colorLevel','ERROR','default','395540GfUvuT','2939490ticUld','colors','Chalk','5192qzOBfZ','6kcWvfz','12629470EQYDbW','blue','timestamp','level','red','7565604VftPcL','green','78jAdOQW'];a159_0x5d49=function(){return _0x459f31;};return a159_0x5d49();}export class DefaultLogFormatter{[a159_0x1891b3(0x139)];[a159_0x1891b3(0x132)];constructor(_0x145a16={}){const _0x2fd6b8=a159_0x1891b3;this['colors']=_0x145a16['colors']??![],this['chalk']=_0x145a16[_0x2fd6b8(0x139)]&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x43e32a;}['format'](_0x5bbb57){const _0x569af9=a159_0x1891b3,_0x168cbb=formatTimestamp(_0x5bbb57[_0x569af9(0x13f)]),_0x5f3b95=logLevelToString(_0x5bbb57[_0x569af9(0x140)]);if(!this[_0x569af9(0x139)])return _0x168cbb+'\x20['+_0x5f3b95+']\x20['+_0x5bbb57[_0x569af9(0x130)]+']\x20'+_0x5bbb57[_0x569af9(0x12e)];const _0x5cad29=this[_0x569af9(0x132)]['dim'](_0x168cbb),_0x122b0e=this[_0x569af9(0x134)](_0x5f3b95,_0x5bbb57[_0x569af9(0x140)]),_0x2b16b9=this['chalk'][_0x569af9(0x13e)]('['+_0x5bbb57[_0x569af9(0x130)]+']');return _0x5cad29+'\x20'+_0x122b0e+'\x20'+_0x2b16b9+'\x20'+_0x5bbb57[_0x569af9(0x12e)];}[a159_0x1891b3(0x134)](_0x202eb3,_0x221ce7){const _0x41f202=a159_0x1891b3;switch(_0x221ce7){case LogLevel['TRACE']:return this['chalk']['gray']('['+_0x202eb3+']');case LogLevel[_0x41f202(0x129)]:return this['chalk'][_0x41f202(0x143)]('['+_0x202eb3+']');case LogLevel['INFO']:return this[_0x41f202(0x132)][_0x41f202(0x12f)]('['+_0x202eb3+']');case LogLevel['WARN']:return this[_0x41f202(0x132)][_0x41f202(0x12a)]('['+_0x202eb3+']');case LogLevel[_0x41f202(0x135)]:return this[_0x41f202(0x132)][_0x41f202(0x141)]('['+_0x202eb3+']');default:return'['+_0x202eb3+']';}}}
@@ -1 +1 @@
1
- (function(_0x3e3a4f,_0x43efde){var _0x15b812=a160_0x5158,_0x1a286d=_0x3e3a4f();while(!![]){try{var _0x1acc21=parseInt(_0x15b812(0x19c))/0x1+-parseInt(_0x15b812(0x195))/0x2*(-parseInt(_0x15b812(0x196))/0x3)+parseInt(_0x15b812(0x19e))/0x4*(parseInt(_0x15b812(0x197))/0x5)+parseInt(_0x15b812(0x194))/0x6*(-parseInt(_0x15b812(0x199))/0x7)+-parseInt(_0x15b812(0x19b))/0x8+parseInt(_0x15b812(0x19d))/0x9*(-parseInt(_0x15b812(0x198))/0xa)+-parseInt(_0x15b812(0x19a))/0xb*(-parseInt(_0x15b812(0x19f))/0xc);if(_0x1acc21===_0x43efde)break;else _0x1a286d['push'](_0x1a286d['shift']());}catch(_0x2c44fc){_0x1a286d['push'](_0x1a286d['shift']());}}}(a160_0xce18,0x3e3ef));function a160_0x5158(_0xabfaee,_0xa1e6e3){_0xabfaee=_0xabfaee-0x194;var _0xce1804=a160_0xce18();var _0x515806=_0xce1804[_0xabfaee];return _0x515806;}function a160_0xce18(){var _0x563851=['730HaCaZZ','1869343Hkjfcw','12133YJznlH','1780360kKyAnn','161561yYVXWb','8028IotpRY','248hBuuLH','4308GfuUxv','6kNaNqd','2eubsrR','580623xlZgvZ','4725okoQqj'];a160_0xce18=function(){return _0x563851;};return a160_0xce18();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a160_0x28f8(_0xc75099,_0x1c4784){_0xc75099=_0xc75099-0x1bd;var _0x3a56ef=a160_0x3a56();var _0x28f881=_0x3a56ef[_0xc75099];return _0x28f881;}(function(_0xecd660,_0x5d3214){var _0x5876dd=a160_0x28f8,_0x3dac85=_0xecd660();while(!![]){try{var _0x38fa2c=parseInt(_0x5876dd(0x1bf))/0x1*(parseInt(_0x5876dd(0x1c6))/0x2)+-parseInt(_0x5876dd(0x1c2))/0x3+parseInt(_0x5876dd(0x1c1))/0x4+-parseInt(_0x5876dd(0x1c3))/0x5+parseInt(_0x5876dd(0x1bd))/0x6+parseInt(_0x5876dd(0x1c5))/0x7*(-parseInt(_0x5876dd(0x1c4))/0x8)+-parseInt(_0x5876dd(0x1be))/0x9*(parseInt(_0x5876dd(0x1c0))/0xa);if(_0x38fa2c===_0x5d3214)break;else _0x3dac85['push'](_0x3dac85['shift']());}catch(_0x16e6f1){_0x3dac85['push'](_0x3dac85['shift']());}}}(a160_0x3a56,0x637eb));export{DefaultLogFormatter}from'./default-formatter.js';function a160_0x3a56(){var _0xfcea41=['4099998VAxqyh','27APkguJ','4597wvafhn','680830BxIeuS','2152884xNpxtg','1307664VRWzYd','456320NxAfNq','336096RcGVhW','49yLKsvq','92xCgeiy'];a160_0x3a56=function(){return _0xfcea41;};return a160_0x3a56();}
@@ -1 +1 @@
1
- const a161_0x4df5c5=a161_0x47d4;(function(_0x5b7351,_0x2398e3){const _0x14bd69=a161_0x47d4,_0x31d57f=_0x5b7351();while(!![]){try{const _0x4e2075=-parseInt(_0x14bd69(0x84))/0x1*(parseInt(_0x14bd69(0x85))/0x2)+parseInt(_0x14bd69(0x8b))/0x3*(parseInt(_0x14bd69(0x90))/0x4)+parseInt(_0x14bd69(0x8c))/0x5*(-parseInt(_0x14bd69(0x93))/0x6)+-parseInt(_0x14bd69(0x95))/0x7+-parseInt(_0x14bd69(0x8d))/0x8+-parseInt(_0x14bd69(0x92))/0x9+parseInt(_0x14bd69(0x89))/0xa;if(_0x4e2075===_0x2398e3)break;else _0x31d57f['push'](_0x31d57f['shift']());}catch(_0x38122d){_0x31d57f['push'](_0x31d57f['shift']());}}}(a161_0x22c2,0x3f65a));import{LogLevel as a161_0x53982e}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a161_0x4df5c5(0x91)];['formatter'];constructor(_0xc03524={}){const _0x2cd28d=a161_0x4df5c5;this['minLevel']=_0xc03524['minLevel']??a161_0x53982e[_0x2cd28d(0x8e)],this[_0x2cd28d(0x91)]=_0xc03524[_0x2cd28d(0x91)]??!![],this[_0x2cd28d(0x87)]=new DefaultLogFormatter({'colors':_0xc03524[_0x2cd28d(0x88)]??!![]});}[a161_0x4df5c5(0x97)](_0x553c7a){const _0x358cea=a161_0x4df5c5;if(_0x553c7a['level']<this[_0x358cea(0x94)])return;const _0x276e8f=this['formatter'][_0x358cea(0x8a)](_0x553c7a);this[_0x358cea(0x91)]&&_0x553c7a[_0x358cea(0x86)]>=a161_0x53982e[_0x358cea(0x8e)]?console[_0x358cea(0x8f)](_0x276e8f):console[_0x358cea(0x96)](_0x276e8f);}}function a161_0x47d4(_0x35f90c,_0x5bd735){_0x35f90c=_0x35f90c-0x84;const _0x22c243=a161_0x22c2();let _0x47d483=_0x22c243[_0x35f90c];return _0x47d483;}function a161_0x22c2(){const _0x3da228=['2150PZfddC','level','formatter','colors','8120440trmDGd','format','33CXLzPH','10jasjEM','2608480XVGiQI','WARN','error','106552FRbhvU','useStderr','2695257EgUxMg','37482MchxYl','minLevel','179802ixXtDe','log','handle','169THtlle'];a161_0x22c2=function(){return _0x3da228;};return a161_0x22c2();}
1
+ const a161_0x4291ca=a161_0xe065;(function(_0x4838bb,_0x21ea76){const _0x45fa2d=a161_0xe065,_0x2e3b52=_0x4838bb();while(!![]){try{const _0x1a1f35=-parseInt(_0x45fa2d(0x198))/0x1+parseInt(_0x45fa2d(0x190))/0x2+-parseInt(_0x45fa2d(0x18d))/0x3*(-parseInt(_0x45fa2d(0x18c))/0x4)+-parseInt(_0x45fa2d(0x193))/0x5+-parseInt(_0x45fa2d(0x18f))/0x6*(parseInt(_0x45fa2d(0x19b))/0x7)+-parseInt(_0x45fa2d(0x194))/0x8*(-parseInt(_0x45fa2d(0x19a))/0x9)+-parseInt(_0x45fa2d(0x191))/0xa*(-parseInt(_0x45fa2d(0x18e))/0xb);if(_0x1a1f35===_0x21ea76)break;else _0x2e3b52['push'](_0x2e3b52['shift']());}catch(_0x5def99){_0x2e3b52['push'](_0x2e3b52['shift']());}}}(a161_0x5454,0x9a479));import{LogLevel as a161_0x2d18e9}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a161_0xe065(_0x1f5fca,_0x29f667){_0x1f5fca=_0x1f5fca-0x18c;const _0x5454f4=a161_0x5454();let _0xe065bc=_0x5454f4[_0x1f5fca];return _0xe065bc;}export class ConsoleHandler{[a161_0x4291ca(0x196)];[a161_0x4291ca(0x192)];[a161_0x4291ca(0x19d)];constructor(_0x1348fe={}){const _0xb22424=a161_0x4291ca;this['minLevel']=_0x1348fe[_0xb22424(0x196)]??a161_0x2d18e9[_0xb22424(0x199)],this[_0xb22424(0x192)]=_0x1348fe['useStderr']??!![],this[_0xb22424(0x19d)]=new DefaultLogFormatter({'colors':_0x1348fe['colors']??!![]});}[a161_0x4291ca(0x197)](_0x142a38){const _0x3c73a4=a161_0x4291ca;if(_0x142a38[_0x3c73a4(0x195)]<this[_0x3c73a4(0x196)])return;const _0x29d110=this['formatter']['format'](_0x142a38);this[_0x3c73a4(0x192)]&&_0x142a38[_0x3c73a4(0x195)]>=a161_0x2d18e9['WARN']?console['error'](_0x29d110):console[_0x3c73a4(0x19c)](_0x29d110);}}function a161_0x5454(){const _0x57d6fc=['204XmkUCi','21846ZKYStd','11jiQNeg','5344590RKIRnt','1139544WEInxV','4409380YdZlQe','useStderr','230490YKyjMK','536dcYpJJ','level','minLevel','handle','733143GBHCNp','WARN','123561GtgWVT','7aqxvWL','log','formatter'];a161_0x5454=function(){return _0x57d6fc;};return a161_0x5454();}
@@ -1 +1 @@
1
- const a162_0x75747b=a162_0x5248;(function(_0xb7bee,_0x773548){const _0x26d8bc=a162_0x5248,_0x23710d=_0xb7bee();while(!![]){try{const _0x5c043d=parseInt(_0x26d8bc(0x174))/0x1+parseInt(_0x26d8bc(0x154))/0x2*(parseInt(_0x26d8bc(0x177))/0x3)+parseInt(_0x26d8bc(0x172))/0x4+-parseInt(_0x26d8bc(0x16d))/0x5*(parseInt(_0x26d8bc(0x15b))/0x6)+parseInt(_0x26d8bc(0x155))/0x7+parseInt(_0x26d8bc(0x166))/0x8*(-parseInt(_0x26d8bc(0x15a))/0x9)+parseInt(_0x26d8bc(0x157))/0xa*(-parseInt(_0x26d8bc(0x161))/0xb);if(_0x5c043d===_0x773548)break;else _0x23710d['push'](_0x23710d['shift']());}catch(_0x16c927){_0x23710d['push'](_0x23710d['shift']());}}}(a162_0x512c,0x42005));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a162_0x512c(){const _0x3bd102=['2xGJSFz','2966229kjduyC','split','10USohks','.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','45nJQSKf','7386QXtTdB','rotateOldLogs','logBaseName','close','rotate','logs','4673757IUZRhm','replace','Warning:\x20Error\x20writing\x20to\x20','includes','filePath','299008oDmgXG','toISOString','handle','write','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','init','tdx.log','1385GCJIbN','format','message','Warning:\x20Failed\x20to\x20compress\x20','test','354000WXkGUU','logDir','273994kqMfue','logPath','\x5c$&','1310562tTwAEG','logStream','error','logFileName'];a162_0x512c=function(){return _0x3bd102;};return a162_0x512c();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a162_0x5248(_0x4e9793,_0xd2ac31){_0x4e9793=_0x4e9793-0x153;const _0x512c17=a162_0x512c();let _0x5248f9=_0x512c17[_0x4e9793];return _0x5248f9;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a162_0x75747b(0x175)];[a162_0x75747b(0x173)];[a162_0x75747b(0x153)];[a162_0x75747b(0x15d)];['logStream']=null;[a162_0x75747b(0x15f)];constructor(_0x5cca6f={}){const _0x3c0033=a162_0x75747b;this['logPath']=_0x5cca6f[_0x3c0033(0x165)]??join(getGlobalCacheDir(),_0x3c0033(0x160),_0x3c0033(0x16c)),this[_0x3c0033(0x173)]=dirname(this[_0x3c0033(0x175)]),this[_0x3c0033(0x153)]=basename(this[_0x3c0033(0x175)]),this[_0x3c0033(0x15d)]=this['logFileName']['replace'](/\.log$/,''),this[_0x3c0033(0x15f)]=_0x5cca6f[_0x3c0033(0x15f)]??!![];}async[a162_0x75747b(0x16b)](){const _0x37ac32=a162_0x75747b;try{await mkdir(this[_0x37ac32(0x173)],{'recursive':!![]}),this[_0x37ac32(0x15f)]&&await this['rotateOldLogs'](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x37ac32(0x178)]['on'](_0x37ac32(0x179),_0x56ae45=>{const _0x22e10b=_0x37ac32;console[_0x22e10b(0x179)](_0x22e10b(0x163)+this[_0x22e10b(0x153)]+':',_0x56ae45[_0x22e10b(0x16f)]);});}catch(_0x242adb){console[_0x37ac32(0x179)](_0x37ac32(0x159),_0x242adb);}}[a162_0x75747b(0x168)](_0x3e5d9d){const _0x46531f=a162_0x75747b;if(!this[_0x46531f(0x178)])return;const _0x5acdb0=Logger[_0x46531f(0x16e)](_0x3e5d9d);this[_0x46531f(0x178)][_0x46531f(0x169)](_0x5acdb0+'\x0a');}async[a162_0x75747b(0x15e)](){return new Promise(_0x592779=>{const _0x127d5d=a162_0x5248;this['logStream']?this[_0x127d5d(0x178)]['end'](()=>{const _0x3be28e=_0x127d5d;this[_0x3be28e(0x178)]=null,_0x592779();}):_0x592779();});}['getLogPath'](){const _0x227f13=a162_0x75747b;return this[_0x227f13(0x175)];}async[a162_0x75747b(0x15c)](){const _0x1de092=a162_0x75747b;try{const _0x39a068=await readdir(this[_0x1de092(0x173)]),_0xd3c913=new Date()[_0x1de092(0x167)]()['split']('T')[0x0];if(_0x39a068[_0x1de092(0x164)](this[_0x1de092(0x153)])){const _0x37325b=join(this[_0x1de092(0x173)],this[_0x1de092(0x153)]),_0x488e48=await stat(_0x37325b),_0x4f9cd9=new Date(_0x488e48['mtime'])[_0x1de092(0x167)]()[_0x1de092(0x156)]('T')[0x0];if(_0x4f9cd9<_0xd3c913){const _0xe103d0=join(this['logDir'],this[_0x1de092(0x15d)]+'-'+_0x4f9cd9+_0x1de092(0x158));await rename(_0x37325b,_0xe103d0);}}const _0x3a139f=await readdir(this['logDir']),_0x1a5dff=this[_0x1de092(0x15d)][_0x1de092(0x162)](/[.*+?^${}()|[\]\\]/g,_0x1de092(0x176)),_0x1106db=new RegExp('^'+_0x1a5dff+_0x1de092(0x16a)),_0x416135=_0x3a139f['filter'](_0x4a0188=>_0x1106db[_0x1de092(0x171)](_0x4a0188));for(const _0x554b38 of _0x416135){const _0x579aa3=join(this[_0x1de092(0x173)],_0x554b38),_0x5778a9=join(this[_0x1de092(0x173)],_0x554b38+'.gz');try{await pipeline(createReadStream(_0x579aa3),createGzip(),createWriteStream(_0x5778a9)),await unlink(_0x579aa3);}catch(_0x213a41){console[_0x1de092(0x179)](_0x1de092(0x170)+_0x554b38+':',_0x213a41);}}}catch{}}}
1
+ const a162_0x393664=a162_0x12c3;function a162_0x12c3(_0x595796,_0x47b292){_0x595796=_0x595796-0x17b;const _0x17ff73=a162_0x17ff();let _0x12c353=_0x17ff73[_0x595796];return _0x12c353;}(function(_0x117813,_0x25af52){const _0x30cff2=a162_0x12c3,_0x591afd=_0x117813();while(!![]){try{const _0x4ac45b=-parseInt(_0x30cff2(0x180))/0x1+parseInt(_0x30cff2(0x19a))/0x2*(parseInt(_0x30cff2(0x190))/0x3)+parseInt(_0x30cff2(0x17f))/0x4*(-parseInt(_0x30cff2(0x18f))/0x5)+parseInt(_0x30cff2(0x197))/0x6*(-parseInt(_0x30cff2(0x184))/0x7)+-parseInt(_0x30cff2(0x19f))/0x8+-parseInt(_0x30cff2(0x181))/0x9*(-parseInt(_0x30cff2(0x17d))/0xa)+parseInt(_0x30cff2(0x17b))/0xb;if(_0x4ac45b===_0x25af52)break;else _0x591afd['push'](_0x591afd['shift']());}catch(_0x190eee){_0x591afd['push'](_0x591afd['shift']());}}}(a162_0x17ff,0x35cc7));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a162_0x17ff(){const _0x5f2051=['error','write','message','logStream','4440LjDlfX','Warning:\x20Error\x20writing\x20to\x20','split','4BNTpyg','end','Warning:\x20Failed\x20to\x20compress\x20','rotateOldLogs','init','2831688BkZEqH','9994809ZaKtkM','filePath','268430PoonHB','handle','16FjsWDy','153864BClOrc','27NPHfFO','.gz','logPath','2821thSBvj','replace','format','logDir','logs','getLogPath','.log','rotate','logBaseName','test','filter','377095oySJwX','508398ixvmMj','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logFileName'];a162_0x17ff=function(){return _0x5f2051;};return a162_0x17ff();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a162_0x393664(0x187)];[a162_0x393664(0x192)];[a162_0x393664(0x18c)];[a162_0x393664(0x196)]=null;[a162_0x393664(0x18b)];constructor(_0x204c40={}){const _0x60fa3c=a162_0x393664;this['logPath']=_0x204c40[_0x60fa3c(0x17c)]??join(getGlobalCacheDir(),_0x60fa3c(0x188),'tdx.log'),this[_0x60fa3c(0x187)]=dirname(this['logPath']),this['logFileName']=basename(this[_0x60fa3c(0x183)]),this['logBaseName']=this[_0x60fa3c(0x192)][_0x60fa3c(0x185)](/\.log$/,''),this[_0x60fa3c(0x18b)]=_0x204c40[_0x60fa3c(0x18b)]??!![];}async[a162_0x393664(0x19e)](){const _0x10516a=a162_0x393664;try{await mkdir(this[_0x10516a(0x187)],{'recursive':!![]}),this[_0x10516a(0x18b)]&&await this[_0x10516a(0x19d)](),this[_0x10516a(0x196)]=createWriteStream(this[_0x10516a(0x183)],{'flags':'a'}),this[_0x10516a(0x196)]['on'](_0x10516a(0x193),_0x4a5d8b=>{const _0x1b7d06=_0x10516a;console['error'](_0x1b7d06(0x198)+this['logFileName']+':',_0x4a5d8b[_0x1b7d06(0x195)]);});}catch(_0x428915){console[_0x10516a(0x193)](_0x10516a(0x191),_0x428915);}}[a162_0x393664(0x17e)](_0x51ddda){const _0x25879e=a162_0x393664;if(!this[_0x25879e(0x196)])return;const _0x432add=Logger[_0x25879e(0x186)](_0x51ddda);this[_0x25879e(0x196)][_0x25879e(0x194)](_0x432add+'\x0a');}async['close'](){return new Promise(_0x26676c=>{const _0x3228bb=a162_0x12c3;this[_0x3228bb(0x196)]?this[_0x3228bb(0x196)][_0x3228bb(0x19b)](()=>{this['logStream']=null,_0x26676c();}):_0x26676c();});}[a162_0x393664(0x189)](){return this['logPath'];}async[a162_0x393664(0x19d)](){const _0x213738=a162_0x393664;try{const _0x589db1=await readdir(this[_0x213738(0x187)]),_0x567fd4=new Date()['toISOString']()[_0x213738(0x199)]('T')[0x0];if(_0x589db1['includes'](this[_0x213738(0x192)])){const _0x145dcb=join(this[_0x213738(0x187)],this[_0x213738(0x192)]),_0x2dc4e7=await stat(_0x145dcb),_0x11f005=new Date(_0x2dc4e7['mtime'])['toISOString']()['split']('T')[0x0];if(_0x11f005<_0x567fd4){const _0x3e365c=join(this[_0x213738(0x187)],this['logBaseName']+'-'+_0x11f005+_0x213738(0x18a));await rename(_0x145dcb,_0x3e365c);}}const _0x221940=await readdir(this['logDir']),_0xfe3bcb=this[_0x213738(0x18c)][_0x213738(0x185)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x87ffb9=new RegExp('^'+_0xfe3bcb+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x5c17fe=_0x221940[_0x213738(0x18e)](_0x4ec21b=>_0x87ffb9[_0x213738(0x18d)](_0x4ec21b));for(const _0x5c1ebf of _0x5c17fe){const _0x282527=join(this[_0x213738(0x187)],_0x5c1ebf),_0x3aba15=join(this['logDir'],_0x5c1ebf+_0x213738(0x182));try{await pipeline(createReadStream(_0x282527),createGzip(),createWriteStream(_0x3aba15)),await unlink(_0x282527);}catch(_0x160540){console['error'](_0x213738(0x19c)+_0x5c1ebf+':',_0x160540);}}}catch{}}}
@@ -1 +1 @@
1
- function a163_0x5ba1(_0x4a5f33,_0x396883){_0x4a5f33=_0x4a5f33-0xa9;var _0x5a7f74=a163_0x5a7f();var _0x5ba107=_0x5a7f74[_0x4a5f33];return _0x5ba107;}(function(_0x2dd23f,_0x2e7f09){var _0x2f5560=a163_0x5ba1,_0x53f4b8=_0x2dd23f();while(!![]){try{var _0x402ff4=parseInt(_0x2f5560(0xa9))/0x1+parseInt(_0x2f5560(0xaf))/0x2+parseInt(_0x2f5560(0xac))/0x3*(-parseInt(_0x2f5560(0xaa))/0x4)+-parseInt(_0x2f5560(0xae))/0x5+parseInt(_0x2f5560(0xb1))/0x6+parseInt(_0x2f5560(0xb0))/0x7+-parseInt(_0x2f5560(0xad))/0x8*(parseInt(_0x2f5560(0xab))/0x9);if(_0x402ff4===_0x2e7f09)break;else _0x53f4b8['push'](_0x53f4b8['shift']());}catch(_0x4c06d4){_0x53f4b8['push'](_0x53f4b8['shift']());}}}(a163_0x5a7f,0xec96f));export{FileHandler}from'./file-handler.js';function a163_0x5a7f(){var _0x28a105=['1101697hGoAYU','4QzSdbD','9BfBzpv','3640977GOgCRU','9665640fJvycc','1743100GJhVgA','1783794mBgzTl','5724257dKCPAG','5569260LvvyVH'];a163_0x5a7f=function(){return _0x28a105;};return a163_0x5a7f();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x20d1f0,_0x38e360){var _0x22af8f=a163_0x3070,_0x5c50b1=_0x20d1f0();while(!![]){try{var _0x8a7892=parseInt(_0x22af8f(0x119))/0x1+-parseInt(_0x22af8f(0x11f))/0x2*(parseInt(_0x22af8f(0x11a))/0x3)+parseInt(_0x22af8f(0x117))/0x4+parseInt(_0x22af8f(0x11e))/0x5*(-parseInt(_0x22af8f(0x11b))/0x6)+parseInt(_0x22af8f(0x11c))/0x7*(-parseInt(_0x22af8f(0x116))/0x8)+-parseInt(_0x22af8f(0x11d))/0x9+parseInt(_0x22af8f(0x118))/0xa;if(_0x8a7892===_0x38e360)break;else _0x5c50b1['push'](_0x5c50b1['shift']());}catch(_0x222af8){_0x5c50b1['push'](_0x5c50b1['shift']());}}}(a163_0x546e,0x3bfdf));function a163_0x546e(){var _0x26d5da=['30uEmzsO','378RhgHWh','1597266KpIavq','47740EhNHTv','196306yHuVBI','39112rlXYqH','1947232dTZewW','3864260wmdAtr','156172lnRXjJ','9lsvBUn'];a163_0x546e=function(){return _0x26d5da;};return a163_0x546e();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a163_0x3070(_0x1509ee,_0x1f8d17){_0x1509ee=_0x1509ee-0x116;var _0x546e92=a163_0x546e();var _0x307094=_0x546e92[_0x1509ee];return _0x307094;}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a164_0x2df2a9=a164_0x5c4a;(function(_0x21ea97,_0x32ca8c){var _0x282406=a164_0x5c4a,_0x214819=_0x21ea97();while(!![]){try{var _0x5d6499=parseInt(_0x282406(0x6d))/0x1+parseInt(_0x282406(0x72))/0x2+parseInt(_0x282406(0x79))/0x3*(parseInt(_0x282406(0x73))/0x4)+-parseInt(_0x282406(0x6f))/0x5*(-parseInt(_0x282406(0x70))/0x6)+-parseInt(_0x282406(0x75))/0x7*(parseInt(_0x282406(0x6e))/0x8)+parseInt(_0x282406(0x76))/0x9*(parseInt(_0x282406(0x78))/0xa)+-parseInt(_0x282406(0x74))/0xb*(parseInt(_0x282406(0x77))/0xc);if(_0x5d6499===_0x32ca8c)break;else _0x214819['push'](_0x214819['shift']());}catch(_0x1f971f){_0x214819['push'](_0x214819['shift']());}}}(a164_0x385c,0x57934));function a164_0x385c(){var _0xd861a6=['1221164CswPvO','18070679KGLLSg','7OvjSuq','117FwAnuH','12caPyat','135550lzfQkM','6FkpOUb','664153bcjHsH','1971336YJUrxc','355jgQTZM','7530wJmvIg','handle','1415718KVYcoM'];a164_0x385c=function(){return _0xd861a6;};return a164_0x385c();}function a164_0x5c4a(_0x25ad10,_0x181bd2){_0x25ad10=_0x25ad10-0x6d;var _0x385c11=a164_0x385c();var _0x5c4a81=_0x385c11[_0x25ad10];return _0x5c4a81;}export class NullHandler{[a164_0x2df2a9(0x71)](_0x269a64){}}
1
+ var a164_0x26f219=a164_0x2352;function a164_0x2352(_0x3796e1,_0x1b5cdb){_0x3796e1=_0x3796e1-0x1bd;var _0x1fea64=a164_0x1fea();var _0x23529c=_0x1fea64[_0x3796e1];return _0x23529c;}(function(_0x350dc0,_0x5540a0){var _0x335b9a=a164_0x2352,_0x389af0=_0x350dc0();while(!![]){try{var _0x4de3b0=parseInt(_0x335b9a(0x1bf))/0x1+-parseInt(_0x335b9a(0x1c7))/0x2+parseInt(_0x335b9a(0x1bd))/0x3*(-parseInt(_0x335b9a(0x1c1))/0x4)+-parseInt(_0x335b9a(0x1be))/0x5*(-parseInt(_0x335b9a(0x1c0))/0x6)+-parseInt(_0x335b9a(0x1c6))/0x7+-parseInt(_0x335b9a(0x1c2))/0x8*(-parseInt(_0x335b9a(0x1c3))/0x9)+parseInt(_0x335b9a(0x1c5))/0xa*(parseInt(_0x335b9a(0x1c8))/0xb);if(_0x4de3b0===_0x5540a0)break;else _0x389af0['push'](_0x389af0['shift']());}catch(_0x3fd9a0){_0x389af0['push'](_0x389af0['shift']());}}}(a164_0x1fea,0x545aa));function a164_0x1fea(){var _0x451a15=['90252PGkUmx','handle','10uQRAwL','3603208dkKDaX','1051070psqiLP','5932322mzUkTb','127221cIyFlp','150JdJlUD','549593vrBCcb','79266ScSXzr','16UPTdbh','56oZAtSb'];a164_0x1fea=function(){return _0x451a15;};return a164_0x1fea();}export class NullHandler{[a164_0x26f219(0x1c4)](_0x1870ee){}}
@@ -1 +1 @@
1
- (function(_0x33512f,_0x273f7a){var _0x4ba3dc=a165_0x1515,_0x56ee21=_0x33512f();while(!![]){try{var _0x5018c7=-parseInt(_0x4ba3dc(0x12a))/0x1+-parseInt(_0x4ba3dc(0x12e))/0x2+parseInt(_0x4ba3dc(0x130))/0x3*(parseInt(_0x4ba3dc(0x132))/0x4)+-parseInt(_0x4ba3dc(0x129))/0x5*(parseInt(_0x4ba3dc(0x12d))/0x6)+-parseInt(_0x4ba3dc(0x12f))/0x7+parseInt(_0x4ba3dc(0x12c))/0x8+-parseInt(_0x4ba3dc(0x12b))/0x9*(-parseInt(_0x4ba3dc(0x131))/0xa);if(_0x5018c7===_0x273f7a)break;else _0x56ee21['push'](_0x56ee21['shift']());}catch(_0x141ca4){_0x56ee21['push'](_0x56ee21['shift']());}}}(a165_0x42f8,0x836fc));function a165_0x42f8(){var _0x1c5322=['1613546NCuRyT','4042577EQzEBh','2035551zwVvHK','5956300cYiFlo','4htySCt','175YSCdCe','116720uyqoKm','9eoOYqB','6187008OyFcLI','1398BpJTOP'];a165_0x42f8=function(){return _0x1c5322;};return a165_0x42f8();}export{Logger}from'./logger.js';function a165_0x1515(_0x9f1382,_0x5e3a31){_0x9f1382=_0x9f1382-0x129;var _0x42f897=a165_0x42f8();var _0x1515e5=_0x42f897[_0x9f1382];return _0x1515e5;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0xf9964a,_0x4a268b){var _0x35dc81=a165_0x4010,_0x2f054b=_0xf9964a();while(!![]){try{var _0x102cfa=-parseInt(_0x35dc81(0xb5))/0x1*(parseInt(_0x35dc81(0xbc))/0x2)+-parseInt(_0x35dc81(0xb4))/0x3*(-parseInt(_0x35dc81(0xb3))/0x4)+-parseInt(_0x35dc81(0xbf))/0x5*(parseInt(_0x35dc81(0xb7))/0x6)+parseInt(_0x35dc81(0xbd))/0x7*(-parseInt(_0x35dc81(0xb8))/0x8)+-parseInt(_0x35dc81(0xb2))/0x9*(parseInt(_0x35dc81(0xbb))/0xa)+parseInt(_0x35dc81(0xb6))/0xb*(parseInt(_0x35dc81(0xba))/0xc)+-parseInt(_0x35dc81(0xb9))/0xd*(-parseInt(_0x35dc81(0xbe))/0xe);if(_0x102cfa===_0x4a268b)break;else _0x2f054b['push'](_0x2f054b['shift']());}catch(_0x109b27){_0x2f054b['push'](_0x2f054b['shift']());}}}(a165_0x5dfc,0x88bb8));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a165_0x4010(_0x14d321,_0x404223){_0x14d321=_0x14d321-0xb2;var _0x5dfc8f=a165_0x5dfc();var _0x4010a7=_0x5dfc8f[_0x14d321];return _0x4010a7;}function a165_0x5dfc(){var _0x36883c=['87INMyPe','6868334KFPwFu','28302QJxruE','640696RzYmID','221EsTcxt','12EgkMes','110lhYMKQ','9274bgfeZJ','84mRKHjt','1657586xPGISP','375QfsfCm','369513AHCLaM','4tpOALv','278232lRjDEs'];a165_0x5dfc=function(){return _0x36883c;};return a165_0x5dfc();}export{DefaultLogFormatter}from'./formatters/index.js';