@treasuredata/tdx 0.19.1 → 0.19.2

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 (170) 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/llm-proxy.js +1 -1
  24. package/dist/commands/mcp-command.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/schedule-command.js +1 -1
  30. package/dist/commands/segment-command.js +1 -1
  31. package/dist/commands/segment-create-command.js +1 -1
  32. package/dist/commands/segment-fields-command.js +1 -1
  33. package/dist/commands/segment-pull-command.js +1 -1
  34. package/dist/commands/segment-push-command.js +1 -1
  35. package/dist/commands/segment-update-command.js +1 -1
  36. package/dist/commands/segment-use-command.js +1 -1
  37. package/dist/commands/segment-validate-command.js +1 -1
  38. package/dist/commands/segments.js +1 -1
  39. package/dist/commands/show.js +1 -1
  40. package/dist/commands/status-command.js +1 -1
  41. package/dist/commands/tables.js +1 -1
  42. package/dist/commands/unset-command.js +1 -1
  43. package/dist/commands/use-command.js +1 -1
  44. package/dist/commands/user-command.js +1 -1
  45. package/dist/commands/workflow-command.js +1 -1
  46. package/dist/core/auth.js +1 -1
  47. package/dist/core/command-output.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/constants.js +1 -1
  51. package/dist/core/credential-cache.js +1 -1
  52. package/dist/core/global-context.js +1 -1
  53. package/dist/core/keychain.js +1 -1
  54. package/dist/core/profile.js +1 -1
  55. package/dist/core/project-config.js +1 -1
  56. package/dist/core/session.js +1 -1
  57. package/dist/core/user-cache.js +1 -1
  58. package/dist/core/version.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/mcp/server.js +1 -1
  61. package/dist/mcp/tools/index.js +1 -1
  62. package/dist/mcp/tools/tdx-run.js +1 -1
  63. package/dist/mcp/tools/tdx-search.js +1 -1
  64. package/dist/mcp/utils.js +1 -1
  65. package/dist/proxy/anthropic-adapter.js +1 -1
  66. package/dist/proxy/claude-usage-tracker.js +1 -1
  67. package/dist/proxy/context-signature.js +1 -1
  68. package/dist/proxy/conversation-utils.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/server.js +1 -1
  71. package/dist/proxy/session-cache.js +1 -1
  72. package/dist/proxy/sse-usage-parser.js +1 -1
  73. package/dist/sdk/agent/agent-config.js +1 -1
  74. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  75. package/dist/sdk/agent/agent-yaml.js +1 -1
  76. package/dist/sdk/agent/test/evaluator.js +1 -1
  77. package/dist/sdk/agent/test/executor.js +1 -1
  78. package/dist/sdk/agent/test/index.js +1 -1
  79. package/dist/sdk/agent/test/output.js +1 -1
  80. package/dist/sdk/agent/test/parser.js +1 -1
  81. package/dist/sdk/api.js +1 -1
  82. package/dist/sdk/client/cdp-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/engage.js +1 -1
  94. package/dist/sdk/errors.js +1 -1
  95. package/dist/sdk/index.js +1 -1
  96. package/dist/sdk/io/index.js +1 -1
  97. package/dist/sdk/io/node-filesystem.js +1 -1
  98. package/dist/sdk/job.js +1 -1
  99. package/dist/sdk/journey.js +1 -1
  100. package/dist/sdk/llm/chat-cache.js +1 -1
  101. package/dist/sdk/llm/index.js +1 -1
  102. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  103. package/dist/sdk/llm/model-aliases.js +1 -1
  104. package/dist/sdk/llm/model-factors.js +1 -1
  105. package/dist/sdk/query/index.js +1 -1
  106. package/dist/sdk/query/sql-parser.js +1 -1
  107. package/dist/sdk/schedule.js +1 -1
  108. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  109. package/dist/sdk/segment/fields-display.js +1 -1
  110. package/dist/sdk/segment/file-discovery.js +1 -1
  111. package/dist/sdk/segment/journey-utils.js +1 -1
  112. package/dist/sdk/segment/journey-yaml.js +1 -1
  113. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  114. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  115. package/dist/sdk/segment/pull-workflow.js +1 -1
  116. package/dist/sdk/segment/push-workflow.js +1 -1
  117. package/dist/sdk/segment/resolution-context.js +1 -1
  118. package/dist/sdk/segment/segment-path-parser.js +1 -1
  119. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  120. package/dist/sdk/segment/target-resolution.js +1 -1
  121. package/dist/sdk/segment/tdx-config.js +1 -1
  122. package/dist/sdk/segment/validate-files.js +1 -1
  123. package/dist/sdk/segment/yaml-validator.js +1 -1
  124. package/dist/sdk/segment.js +1 -1
  125. package/dist/sdk/types/index.js +1 -1
  126. package/dist/sdk/types/progress.js +1 -1
  127. package/dist/sdk/user.js +1 -1
  128. package/dist/sdk/util/format-detector.js +1 -1
  129. package/dist/sdk/util/formatters.js +1 -1
  130. package/dist/sdk/util/index.js +1 -1
  131. package/dist/sdk/util/tree-formatter.js +1 -1
  132. package/dist/sdk/workflow/archive-validation.js +1 -1
  133. package/dist/sdk/workflow/clone-workflow.js +1 -1
  134. package/dist/sdk/workflow/index.js +1 -1
  135. package/dist/sdk/workflow/pull-workflow.js +1 -1
  136. package/dist/sdk/workflow/push-workflow.js +1 -1
  137. package/dist/sdk/workflow/tdx-config.js +1 -1
  138. package/dist/sdk/workflow/workflow-utils.js +1 -1
  139. package/dist/test-utils/command-runner.js +1 -1
  140. package/dist/test-utils/factories.js +1 -1
  141. package/dist/test-utils/fixtures.js +1 -1
  142. package/dist/test-utils/http-mock.js +1 -1
  143. package/dist/test-utils/index.js +1 -1
  144. package/dist/utils/async.js +1 -1
  145. package/dist/utils/colors.js +1 -1
  146. package/dist/utils/diff.js +1 -1
  147. package/dist/utils/file-permissions.js +1 -1
  148. package/dist/utils/global-cache.js +1 -1
  149. package/dist/utils/json-loader.js +1 -1
  150. package/dist/utils/local-cache.js +1 -1
  151. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  152. package/dist/utils/logger/formatters/index.js +1 -1
  153. package/dist/utils/logger/handlers/console-handler.js +1 -1
  154. package/dist/utils/logger/handlers/file-handler.js +1 -1
  155. package/dist/utils/logger/handlers/index.js +1 -1
  156. package/dist/utils/logger/handlers/null-handler.js +1 -1
  157. package/dist/utils/logger/index.js +1 -1
  158. package/dist/utils/logger/logger.js +1 -1
  159. package/dist/utils/logger/types.js +1 -1
  160. package/dist/utils/option-validation.js +1 -1
  161. package/dist/utils/port.js +1 -1
  162. package/dist/utils/process.js +1 -1
  163. package/dist/utils/prompt.js +1 -1
  164. package/dist/utils/spinner.js +1 -1
  165. package/dist/utils/sse-parser.js +1 -1
  166. package/dist/utils/string-utils.js +1 -1
  167. package/dist/utils/table-ref-parser.js +1 -1
  168. package/dist/utils/tdx-logger.js +1 -1
  169. package/dist/utils/version-check.js +1 -1
  170. package/package.json +1 -1
@@ -1 +1 @@
1
- function a158_0x2719(_0x117853,_0x5414be){_0x117853=_0x117853-0xb5;const _0x883868=a158_0x8838();let _0x2719a6=_0x883868[_0x117853];return _0x2719a6;}function a158_0x8838(){const _0x2bd2b2=['13047010ikFwpx','2906190sajkLi','getLastRequest','parse','Bad\x20Request','4053dLpaAo','matched','3595455eLDVQj','searchParams','url','32UJmajm','6819304sKkBkz','matchCount','error','includes','string','push','body','requests','3249456uCpQum','Forbidden','\x20\x20(none)','forEach','td-api','Unprocessable\x20Entity','262BzNyWq','stringify','pathname','map','test','stack','Conflict','method','matcher','textResponse','getMatchCount','Unknown','networkError','Unauthorized','simple','function','wasCalled','registerWithInspector','description','split','headers','getRequests','application/json','filter','mockImplementation','stubs','toLowerCase','get','\x20registered\x20at:\x0a','Request\x20body:\x20','Internal\x20Server\x20Error','parseRequest','No\x20Content','register','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','entries','206931OPYPxy','toUpperCase','unnamed\x20stub','Not\x20Found','length','withBody','verify','getStatusText','rfc9457','Too\x20Many\x20Requests','6qDLInM','GET','Bad\x20Gateway','https://api.treasuredata.com/errors/','Registered\x20stubs:\x0a','fetchMock','reset','every','join','withQuery','REST','responder','host','Service\x20Unavailable'];a158_0x8838=function(){return _0x2bd2b2;};return a158_0x8838();}const a158_0x84265=a158_0x2719;(function(_0x206c1d,_0x545939){const _0x2b8a15=a158_0x2719,_0xe6748b=_0x206c1d();while(!![]){try{const _0x4a9207=parseInt(_0x2b8a15(0x109))/0x1*(-parseInt(_0x2b8a15(0xc8))/0x2)+parseInt(_0x2b8a15(0xec))/0x3*(parseInt(_0x2b8a15(0xb9))/0x4)+-parseInt(_0x2b8a15(0xb6))/0x5*(parseInt(_0x2b8a15(0xf6))/0x6)+parseInt(_0x2b8a15(0xc2))/0x7+-parseInt(_0x2b8a15(0xba))/0x8+parseInt(_0x2b8a15(0x105))/0x9+parseInt(_0x2b8a15(0x104))/0xa;if(_0x4a9207===_0x545939)break;else _0xe6748b['push'](_0xe6748b['shift']());}catch(_0x56ba48){_0xe6748b['push'](_0xe6748b['shift']());}}}(a158_0x8838,0x84204));import{vi}from'vitest';export class HTTPMockRegistry{[a158_0x84265(0xe1)]=[];[a158_0x84265(0xc1)]=[];[a158_0x84265(0xfb)]=null;[a158_0x84265(0x100)](_0x222a58,_0x24b8d6){return _0x467237=>{const _0x5891a5=a158_0x2719;if(_0x467237[_0x5891a5(0xcf)][_0x5891a5(0xed)]()!==_0x222a58[_0x5891a5(0xed)]())return![];const _0x4d9cef=new URL(_0x467237['url']);if(typeof _0x24b8d6===_0x5891a5(0xbe))return _0x4d9cef['pathname']===_0x24b8d6||_0x4d9cef[_0x5891a5(0xca)][_0x5891a5(0xbd)](_0x24b8d6);return _0x24b8d6['test'](_0x4d9cef[_0x5891a5(0xca)]);};}[a158_0x84265(0xff)](_0x2b93d2,_0x13b795){return _0x46af4d=>{const _0x504ff2=a158_0x2719;if(!_0x2b93d2(_0x46af4d))return![];const _0x17f963=new URL(_0x46af4d[_0x504ff2(0xb8)]);return Object[_0x504ff2(0xeb)](_0x13b795)[_0x504ff2(0xfd)](([_0x3b60e1,_0xe30b0e])=>_0x17f963[_0x504ff2(0xb7)][_0x504ff2(0xe3)](_0x3b60e1)===_0xe30b0e);};}[a158_0x84265(0xf1)](_0x5067e7,_0x3c88df){return _0x202200=>{const _0x3ce4ca=a158_0x2719;if(!_0x5067e7(_0x202200))return![];if(typeof _0x3c88df===_0x3ce4ca(0xd7))return _0x3c88df(_0x202200[_0x3ce4ca(0xc0)]);return JSON[_0x3ce4ca(0xc9)](_0x202200['body'])===JSON['stringify'](_0x3c88df);};}['withHost'](_0x46cbd8,_0x1b811c){return _0x4b9b80=>{const _0x519f5d=a158_0x2719;if(!_0x46cbd8(_0x4b9b80))return![];const _0xe188d2=new URL(_0x4b9b80[_0x519f5d(0xb8)]);return _0xe188d2[_0x519f5d(0x102)]===_0x1b811c;};}[a158_0x84265(0xe9)](_0x478bad,_0x3376c2,_0x13358a){const _0x348faf=a158_0x84265;this['stubs'][_0x348faf(0xbf)]({'matcher':_0x478bad,'responder':_0x3376c2,'matched':![],'matchCount':0x0,'stack':new Error()[_0x348faf(0xcd)]??'','description':_0x13358a?.[_0x348faf(0xda)]});}[a158_0x84265(0xd9)](_0x119f6a,_0x1bde0e,_0x445aef){const _0x4eb019=a158_0x84265,_0x525989=_0x37c34d=>{const _0x2f40b5=a158_0x2719;return _0x445aef(_0x37c34d[_0x2f40b5(0xc0)],_0x37c34d),_0x1bde0e(_0x37c34d);};this[_0x4eb019(0xe9)](_0x119f6a,_0x525989);}static['jsonResponse'](_0x25bd54,_0x2f9327=0xc8){const _0x36a6de=a158_0x84265;return()=>new Response(JSON[_0x36a6de(0xc9)](_0x25bd54),{'status':_0x2f9327,'headers':{'Content-Type':_0x36a6de(0xde)}});}static['errorResponse'](_0x2de4de,_0x5d3d17,_0x3bd9d4=a158_0x84265(0xd6)){return()=>{const _0x27af7f=a158_0x2719;let _0x14a361;switch(_0x3bd9d4){case _0x27af7f(0xc6):_0x14a361={'errors':{'error':_0x5d3d17,'message':_0x5d3d17,'severity':_0x27af7f(0xbc),'status_code':_0x2de4de}};break;case _0x27af7f(0xf4):_0x14a361={'type':_0x27af7f(0xf9)+_0x2de4de,'title':HTTPMockRegistry[_0x27af7f(0xf3)](_0x2de4de),'status':_0x2de4de,'detail':_0x5d3d17};break;default:_0x14a361={'error':_0x5d3d17};}return new Response(JSON[_0x27af7f(0xc9)](_0x14a361),{'status':_0x2de4de,'headers':{'Content-Type':_0x27af7f(0xde)}});};}static['jsonResponseWithHeaders'](_0x4feb25,_0x1784b9,_0x216914=0xc8){const _0x3d7924=a158_0x84265;return()=>new Response(JSON['stringify'](_0x4feb25),{'status':_0x216914,'headers':{'Content-Type':_0x3d7924(0xde),..._0x1784b9}});}static[a158_0x84265(0xd1)](_0x10edd9,_0x353dee=0xc8){return()=>new Response(_0x10edd9,{'status':_0x353dee,'headers':{'Content-Type':'text/plain'}});}static[a158_0x84265(0xd4)](_0x19817f){return()=>{throw new Error(_0x19817f);};}['createFetch'](){const _0x4a40c8=a158_0x84265;return this[_0x4a40c8(0xfb)]=vi['fn']()[_0x4a40c8(0xe0)](async(_0x22bacc,_0x4cf97b)=>{const _0x37be7d=_0x4a40c8,_0x4832cd=this[_0x37be7d(0xe7)](_0x22bacc,_0x4cf97b);this[_0x37be7d(0xc1)][_0x37be7d(0xbf)](_0x4832cd);for(const _0x5056b3 of this[_0x37be7d(0xe1)]){if(_0x5056b3[_0x37be7d(0xd0)](_0x4832cd))return _0x5056b3[_0x37be7d(0xb5)]=!![],_0x5056b3[_0x37be7d(0xbb)]++,_0x5056b3[_0x37be7d(0x101)](_0x4832cd);}const _0x5c06a2=this[_0x37be7d(0xe1)][_0x37be7d(0xcb)]((_0xfbb82d,_0x5e61ab)=>'\x20\x20'+(_0x5e61ab+0x1)+'.\x20'+(_0xfbb82d['description']??_0x37be7d(0xee)))['join']('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x4832cd[_0x37be7d(0xcf)]+'\x20'+_0x4832cd[_0x37be7d(0xb8)]+'\x0a'+(_0x37be7d(0xe5)+JSON[_0x37be7d(0xc9)](_0x4832cd[_0x37be7d(0xc0)])+'\x0a')+(_0x37be7d(0xfa)+(_0x5c06a2||_0x37be7d(0xc4))));}),this[_0x4a40c8(0xfb)];}['parseRequest'](_0x19e1ae,_0x1a3d5d){const _0x35e188=a158_0x84265,_0x48f883={};if(_0x1a3d5d?.['headers']){if(_0x1a3d5d[_0x35e188(0xdc)]instanceof Headers)_0x1a3d5d[_0x35e188(0xdc)][_0x35e188(0xc5)]((_0x1f76ef,_0x368f3f)=>{const _0x39e08f=_0x35e188;_0x48f883[_0x368f3f[_0x39e08f(0xe2)]()]=_0x1f76ef;});else{if(Array['isArray'](_0x1a3d5d[_0x35e188(0xdc)]))for(const [_0x474601,_0x66ca2d]of _0x1a3d5d[_0x35e188(0xdc)]){_0x48f883[_0x474601[_0x35e188(0xe2)]()]=_0x66ca2d;}else for(const [_0x4d4f3b,_0x460b6e]of Object[_0x35e188(0xeb)](_0x1a3d5d[_0x35e188(0xdc)])){_0x460b6e!==undefined&&(_0x48f883[_0x4d4f3b['toLowerCase']()]=_0x460b6e);}}}let _0x1f3577;if(_0x1a3d5d?.['body'])try{_0x1f3577=JSON[_0x35e188(0x107)](_0x1a3d5d['body']);}catch{_0x1f3577=_0x1a3d5d[_0x35e188(0xc0)];}return{'method':_0x1a3d5d?.[_0x35e188(0xcf)]??_0x35e188(0xf7),'url':_0x19e1ae,'headers':_0x48f883,'body':_0x1f3577};}[a158_0x84265(0xf2)](_0x47be15){const _0x369687=a158_0x84265,_0x51e667=this['stubs'][_0x369687(0xdf)](_0x2d0d58=>!_0x2d0d58[_0x369687(0xb5)]);if(_0x51e667['length']>0x0){const _0x179c26=_0x51e667[_0x369687(0xcb)](_0x2a8a73=>{const _0x195b5d=_0x369687,_0x5901a1=_0x2a8a73[_0x195b5d(0xda)]?'\x20('+_0x2a8a73[_0x195b5d(0xda)]+')':'',_0x4b27d2=_0x2a8a73[_0x195b5d(0xcd)][_0x195b5d(0xdb)]('\x0a')['slice'](0x2,0x5)[_0x195b5d(0xfe)]('\x0a');return'Unmatched\x20stub'+_0x5901a1+_0x195b5d(0xe4)+_0x4b27d2;});_0x47be15['fail'](_0x51e667[_0x369687(0xf0)]+_0x369687(0xea)+_0x179c26[_0x369687(0xfe)]('\x0a\x0a'));}}[a158_0x84265(0xdd)](){const _0x2bdc10=a158_0x84265;return[...this[_0x2bdc10(0xc1)]];}[a158_0x84265(0x106)](){const _0x1b6535=a158_0x84265;return this[_0x1b6535(0xc1)][this['requests']['length']-0x1];}[a158_0x84265(0xd8)](_0xf67a20,_0x5dc780){const _0x552740=a158_0x84265;return this[_0x552740(0xc1)]['some'](_0x33406d=>{const _0x581e1c=_0x552740;if(_0x33406d[_0x581e1c(0xcf)][_0x581e1c(0xed)]()!==_0xf67a20['toUpperCase']())return![];if(typeof _0x5dc780===_0x581e1c(0xbe))return _0x33406d[_0x581e1c(0xb8)][_0x581e1c(0xbd)](_0x5dc780);return _0x5dc780[_0x581e1c(0xcc)](_0x33406d[_0x581e1c(0xb8)]);});}[a158_0x84265(0xd2)](_0x2be73c){const _0x43a319=a158_0x84265;return this['stubs'][_0x2be73c]?.[_0x43a319(0xbb)]??0x0;}[a158_0x84265(0xfc)](){const _0xfd1e2c=a158_0x84265;this[_0xfd1e2c(0xe1)]=[],this[_0xfd1e2c(0xc1)]=[],this[_0xfd1e2c(0xfb)]=null;}static[a158_0x84265(0xf3)](_0x5e6314){const _0x11e105=a158_0x84265,_0x203059={0xc8:'OK',0xc9:'Created',0xcc:_0x11e105(0xe8),0x190:_0x11e105(0x108),0x191:_0x11e105(0xd5),0x193:_0x11e105(0xc3),0x194:_0x11e105(0xef),0x199:_0x11e105(0xce),0x1a6:_0x11e105(0xc7),0x1ad:_0x11e105(0xf5),0x1f4:_0x11e105(0xe6),0x1f6:_0x11e105(0xf8),0x1f7:_0x11e105(0x103)};return _0x203059[_0x5e6314]??_0x11e105(0xd3);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a158_0x3c9d88=a158_0x38e3;(function(_0x4c4914,_0x32af66){const _0x11a6de=a158_0x38e3,_0x4c50e5=_0x4c4914();while(!![]){try{const _0x210610=parseInt(_0x11a6de(0x104))/0x1+parseInt(_0x11a6de(0x11f))/0x2*(parseInt(_0x11a6de(0x13c))/0x3)+parseInt(_0x11a6de(0x11a))/0x4*(-parseInt(_0x11a6de(0x122))/0x5)+parseInt(_0x11a6de(0xfa))/0x6+parseInt(_0x11a6de(0x128))/0x7*(parseInt(_0x11a6de(0x138))/0x8)+parseInt(_0x11a6de(0x111))/0x9*(-parseInt(_0x11a6de(0x107))/0xa)+-parseInt(_0x11a6de(0x12e))/0xb;if(_0x210610===_0x32af66)break;else _0x4c50e5['push'](_0x4c50e5['shift']());}catch(_0x314f0a){_0x4c50e5['push'](_0x4c50e5['shift']());}}}(a158_0x32fb,0xa8f32));import{vi}from'vitest';export class HTTPMockRegistry{[a158_0x3c9d88(0x13a)]=[];[a158_0x3c9d88(0x11c)]=[];[a158_0x3c9d88(0x10a)]=null;['REST'](_0x503af8,_0x1184cc){return _0x1dd71f=>{const _0x3091e8=a158_0x38e3;if(_0x1dd71f[_0x3091e8(0x146)]['toUpperCase']()!==_0x503af8[_0x3091e8(0x142)]())return![];const _0x3441e9=new URL(_0x1dd71f[_0x3091e8(0x135)]);if(typeof _0x1184cc==='string')return _0x3441e9[_0x3091e8(0x12f)]===_0x1184cc||_0x3441e9[_0x3091e8(0x12f)][_0x3091e8(0x144)](_0x1184cc);return _0x1184cc['test'](_0x3441e9[_0x3091e8(0x12f)]);};}[a158_0x3c9d88(0x119)](_0x47dc89,_0x5d67f4){return _0x5c3582=>{const _0x21d92e=a158_0x38e3;if(!_0x47dc89(_0x5c3582))return![];const _0x422cc8=new URL(_0x5c3582['url']);return Object[_0x21d92e(0x12b)](_0x5d67f4)[_0x21d92e(0x13f)](([_0x34382e,_0x2dae1c])=>_0x422cc8[_0x21d92e(0x108)]['get'](_0x34382e)===_0x2dae1c);};}[a158_0x3c9d88(0x115)](_0x3783d5,_0x4ed491){return _0xd49e2d=>{const _0xd4253c=a158_0x38e3;if(!_0x3783d5(_0xd49e2d))return![];if(typeof _0x4ed491==='function')return _0x4ed491(_0xd49e2d[_0xd4253c(0x136)]);return JSON[_0xd4253c(0x118)](_0xd49e2d[_0xd4253c(0x136)])===JSON[_0xd4253c(0x118)](_0x4ed491);};}[a158_0x3c9d88(0x11e)](_0x12d967,_0x364728){return _0x353fd5=>{const _0x52d48f=a158_0x38e3;if(!_0x12d967(_0x353fd5))return![];const _0x2e862e=new URL(_0x353fd5['url']);return _0x2e862e[_0x52d48f(0x13d)]===_0x364728;};}[a158_0x3c9d88(0x132)](_0xf5f420,_0x567783,_0x378f98){const _0x3de39f=a158_0x3c9d88;this[_0x3de39f(0x13a)][_0x3de39f(0x125)]({'matcher':_0xf5f420,'responder':_0x567783,'matched':![],'matchCount':0x0,'stack':new Error()[_0x3de39f(0x12c)]??'','description':_0x378f98?.['description']});}[a158_0x3c9d88(0x141)](_0x51de2,_0x394789,_0x2ed4e2){const _0x14687a=a158_0x3c9d88,_0x32f8c0=_0x29769a=>{const _0x10262f=a158_0x38e3;return _0x2ed4e2(_0x29769a[_0x10262f(0x136)],_0x29769a),_0x394789(_0x29769a);};this[_0x14687a(0x132)](_0x51de2,_0x32f8c0);}static[a158_0x3c9d88(0x102)](_0x263172,_0x4c3f10=0xc8){const _0x194b3b=a158_0x3c9d88;return()=>new Response(JSON[_0x194b3b(0x118)](_0x263172),{'status':_0x4c3f10,'headers':{'Content-Type':'application/json'}});}static[a158_0x3c9d88(0x139)](_0x11ca80,_0x629076,_0xcfcf25='simple'){return()=>{const _0x31008b=a158_0x38e3;let _0x3cf5e7;switch(_0xcfcf25){case _0x31008b(0xff):_0x3cf5e7={'errors':{'error':_0x629076,'message':_0x629076,'severity':'error','status_code':_0x11ca80}};break;case _0x31008b(0x113):_0x3cf5e7={'type':_0x31008b(0x117)+_0x11ca80,'title':HTTPMockRegistry[_0x31008b(0x130)](_0x11ca80),'status':_0x11ca80,'detail':_0x629076};break;default:_0x3cf5e7={'error':_0x629076};}return new Response(JSON['stringify'](_0x3cf5e7),{'status':_0x11ca80,'headers':{'Content-Type':_0x31008b(0x105)}});};}static[a158_0x3c9d88(0x11d)](_0x50b997,_0x1aafac,_0x2ddc1d=0xc8){const _0x5833f3=a158_0x3c9d88;return()=>new Response(JSON['stringify'](_0x50b997),{'status':_0x2ddc1d,'headers':{'Content-Type':_0x5833f3(0x105),..._0x1aafac}});}static[a158_0x3c9d88(0x143)](_0x4f1322,_0x3fdaa9=0xc8){return()=>new Response(_0x4f1322,{'status':_0x3fdaa9,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x112075){return()=>{throw new Error(_0x112075);};}['createFetch'](){const _0x361dfa=a158_0x3c9d88;return this[_0x361dfa(0x10a)]=vi['fn']()['mockImplementation'](async(_0x2aca9e,_0x12b434)=>{const _0x95e042=_0x361dfa,_0x69d31d=this[_0x95e042(0x112)](_0x2aca9e,_0x12b434);this[_0x95e042(0x11c)][_0x95e042(0x125)](_0x69d31d);for(const _0x196044 of this['stubs']){if(_0x196044[_0x95e042(0x100)](_0x69d31d))return _0x196044[_0x95e042(0xfe)]=!![],_0x196044['matchCount']++,_0x196044['responder'](_0x69d31d);}const _0x2abe0e=this['stubs'][_0x95e042(0x145)]((_0x155e52,_0x14861e)=>'\x20\x20'+(_0x14861e+0x1)+'.\x20'+(_0x155e52[_0x95e042(0x11b)]??_0x95e042(0x106)))[_0x95e042(0x129)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x69d31d['method']+'\x20'+_0x69d31d[_0x95e042(0x135)]+'\x0a'+(_0x95e042(0x140)+JSON[_0x95e042(0x118)](_0x69d31d['body'])+'\x0a')+(_0x95e042(0xfd)+(_0x2abe0e||_0x95e042(0x103))));}),this[_0x361dfa(0x10a)];}[a158_0x3c9d88(0x112)](_0x432108,_0x5590b9){const _0x3836ed=a158_0x3c9d88,_0x2479ce={};if(_0x5590b9?.['headers']){if(_0x5590b9[_0x3836ed(0x101)]instanceof Headers)_0x5590b9[_0x3836ed(0x101)]['forEach']((_0x516954,_0x17ca68)=>{const _0x4b113c=_0x3836ed;_0x2479ce[_0x17ca68[_0x4b113c(0xf9)]()]=_0x516954;});else{if(Array[_0x3836ed(0x116)](_0x5590b9['headers']))for(const [_0x478743,_0x31568b]of _0x5590b9[_0x3836ed(0x101)]){_0x2479ce[_0x478743[_0x3836ed(0xf9)]()]=_0x31568b;}else for(const [_0x11e62e,_0x3b3e56]of Object[_0x3836ed(0x12b)](_0x5590b9[_0x3836ed(0x101)])){_0x3b3e56!==undefined&&(_0x2479ce[_0x11e62e[_0x3836ed(0xf9)]()]=_0x3b3e56);}}}let _0x324300;if(_0x5590b9?.['body'])try{_0x324300=JSON[_0x3836ed(0x13b)](_0x5590b9[_0x3836ed(0x136)]);}catch{_0x324300=_0x5590b9['body'];}return{'method':_0x5590b9?.[_0x3836ed(0x146)]??_0x3836ed(0x12d),'url':_0x432108,'headers':_0x2479ce,'body':_0x324300};}[a158_0x3c9d88(0x120)](_0x3cf90d){const _0x53cae2=a158_0x3c9d88,_0x3ada8a=this[_0x53cae2(0x13a)]['filter'](_0x18dbd1=>!_0x18dbd1[_0x53cae2(0xfe)]);if(_0x3ada8a[_0x53cae2(0x13e)]>0x0){const _0x158b4d=_0x3ada8a[_0x53cae2(0x145)](_0xd88291=>{const _0x57b654=_0x53cae2,_0x44c3c4=_0xd88291['description']?'\x20('+_0xd88291[_0x57b654(0x11b)]+')':'',_0x26f2a2=_0xd88291['stack'][_0x57b654(0x10b)]('\x0a')[_0x57b654(0x131)](0x2,0x5)['join']('\x0a');return _0x57b654(0x110)+_0x44c3c4+_0x57b654(0x12a)+_0x26f2a2;});_0x3cf90d[_0x53cae2(0x124)](_0x3ada8a[_0x53cae2(0x13e)]+_0x53cae2(0x123)+_0x158b4d[_0x53cae2(0x129)]('\x0a\x0a'));}}[a158_0x3c9d88(0x10c)](){return[...this['requests']];}[a158_0x3c9d88(0xfb)](){const _0x50bca2=a158_0x3c9d88;return this['requests'][this[_0x50bca2(0x11c)][_0x50bca2(0x13e)]-0x1];}['wasCalled'](_0x20fd42,_0x17c68c){return this['requests']['some'](_0x292eaf=>{const _0x12671c=a158_0x38e3;if(_0x292eaf[_0x12671c(0x146)][_0x12671c(0x142)]()!==_0x20fd42['toUpperCase']())return![];if(typeof _0x17c68c===_0x12671c(0x133))return _0x292eaf[_0x12671c(0x135)][_0x12671c(0x144)](_0x17c68c);return _0x17c68c['test'](_0x292eaf[_0x12671c(0x135)]);});}[a158_0x3c9d88(0xf8)](_0x8c4862){const _0x1ae8ad=a158_0x3c9d88;return this[_0x1ae8ad(0x13a)][_0x8c4862]?.[_0x1ae8ad(0x114)]??0x0;}[a158_0x3c9d88(0x109)](){const _0x4cfcb6=a158_0x3c9d88;this['stubs']=[],this['requests']=[],this[_0x4cfcb6(0x10a)]=null;}static[a158_0x3c9d88(0x130)](_0x84f971){const _0x2234d0=a158_0x3c9d88,_0x1f308c={0xc8:'OK',0xc9:_0x2234d0(0x121),0xcc:_0x2234d0(0x10d),0x190:_0x2234d0(0x134),0x191:'Unauthorized',0x193:_0x2234d0(0x10f),0x194:'Not\x20Found',0x199:'Conflict',0x1a6:_0x2234d0(0x127),0x1ad:_0x2234d0(0x126),0x1f4:_0x2234d0(0xfc),0x1f6:_0x2234d0(0x137),0x1f7:'Service\x20Unavailable'};return _0x1f308c[_0x84f971]??_0x2234d0(0x10e);}}function a158_0x38e3(_0x486eb6,_0x363ddd){_0x486eb6=_0x486eb6-0xf8;const _0x32fb2b=a158_0x32fb();let _0x38e3c1=_0x32fb2b[_0x486eb6];return _0x38e3c1;}export function createHTTPMock(){return new HTTPMockRegistry();}function a158_0x32fb(){const _0xf970e2=['3165066UaKLUi','getLastRequest','Internal\x20Server\x20Error','Registered\x20stubs:\x0a','matched','td-api','matcher','headers','jsonResponse','\x20\x20(none)','1177817IAKrlk','application/json','unnamed\x20stub','1430HFEoPX','searchParams','reset','fetchMock','split','getRequests','No\x20Content','Unknown','Forbidden','Unmatched\x20stub','56853WUOYNf','parseRequest','rfc9457','matchCount','withBody','isArray','https://api.treasuredata.com/errors/','stringify','withQuery','22228gRvmkh','description','requests','jsonResponseWithHeaders','withHost','20NAQKAb','verify','Created','580PZdKNu','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','fail','push','Too\x20Many\x20Requests','Unprocessable\x20Entity','42OvTIxx','join','\x20registered\x20at:\x0a','entries','stack','GET','4687155WFggOs','pathname','getStatusText','slice','register','string','Bad\x20Request','url','body','Bad\x20Gateway','360384qXFbQp','errorResponse','stubs','parse','207135VXpkNL','host','length','every','Request\x20body:\x20','registerWithInspector','toUpperCase','textResponse','includes','map','method','getMatchCount','toLowerCase'];a158_0x32fb=function(){return _0xf970e2;};return a158_0x32fb();}
@@ -1 +1 @@
1
- (function(_0x15151f,_0x1e3c5d){var _0x4c8389=a159_0x2435,_0x2e26c3=_0x15151f();while(!![]){try{var _0x502f63=-parseInt(_0x4c8389(0x11e))/0x1+-parseInt(_0x4c8389(0x11c))/0x2*(-parseInt(_0x4c8389(0x11f))/0x3)+-parseInt(_0x4c8389(0x11a))/0x4+parseInt(_0x4c8389(0x11b))/0x5+parseInt(_0x4c8389(0x120))/0x6*(parseInt(_0x4c8389(0x121))/0x7)+parseInt(_0x4c8389(0x11d))/0x8+parseInt(_0x4c8389(0x118))/0x9*(-parseInt(_0x4c8389(0x119))/0xa);if(_0x502f63===_0x1e3c5d)break;else _0x2e26c3['push'](_0x2e26c3['shift']());}catch(_0x1e7b6e){_0x2e26c3['push'](_0x2e26c3['shift']());}}}(a159_0x3273,0x6de90));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a159_0x3273(){var _0x5c1def=['3395232FjnCnZ','3158425VjVDPz','542tMbqnR','922848RVEiUO','554101GcAEZu','9927NZCwdz','6CQefMF','5544112JUDsyy','1048851xtRoYF','50aHPwla'];a159_0x3273=function(){return _0x5c1def;};return a159_0x3273();}function a159_0x2435(_0x3a0734,_0x1442b4){_0x3a0734=_0x3a0734-0x118;var _0x32733c=a159_0x3273();var _0x243590=_0x32733c[_0x3a0734];return _0x243590;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x4094ee,_0x45bf77){var _0x543b51=a159_0x12fb,_0x4c0e4e=_0x4094ee();while(!![]){try{var _0x491915=parseInt(_0x543b51(0x12b))/0x1*(-parseInt(_0x543b51(0x124))/0x2)+parseInt(_0x543b51(0x126))/0x3*(parseInt(_0x543b51(0x127))/0x4)+-parseInt(_0x543b51(0x12c))/0x5*(-parseInt(_0x543b51(0x123))/0x6)+-parseInt(_0x543b51(0x12d))/0x7+-parseInt(_0x543b51(0x128))/0x8+-parseInt(_0x543b51(0x125))/0x9*(parseInt(_0x543b51(0x129))/0xa)+parseInt(_0x543b51(0x12a))/0xb;if(_0x491915===_0x45bf77)break;else _0x4c0e4e['push'](_0x4c0e4e['shift']());}catch(_0x179a5f){_0x4c0e4e['push'](_0x4c0e4e['shift']());}}}(a159_0x4ad8,0x28c20));function a159_0x12fb(_0x6c82de,_0x219975){_0x6c82de=_0x6c82de-0x123;var _0x4ad85b=a159_0x4ad8();var _0x12fb0b=_0x4ad85b[_0x6c82de];return _0x12fb0b;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a159_0x4ad8(){var _0x28d082=['24470xwWKTC','7361662zQoFZo','443kussAg','115VwyYjR','2004317NCwwJV','32208nloXNK','1058okRLze','288RfHsga','63231NpiVAP','44EOpPpc','2069016iKFkSX'];a159_0x4ad8=function(){return _0x28d082;};return a159_0x4ad8();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a160_0x1a1c(_0x705690,_0xa8b8a3){_0x705690=_0x705690-0x14c;const _0x4e0c85=a160_0x4e0c();let _0x1a1ca4=_0x4e0c85[_0x705690];return _0x1a1ca4;}(function(_0x1e50d5,_0x3a7816){const _0x1c2696=a160_0x1a1c,_0x40ca38=_0x1e50d5();while(!![]){try{const _0x24d08b=parseInt(_0x1c2696(0x14c))/0x1*(-parseInt(_0x1c2696(0x158))/0x2)+-parseInt(_0x1c2696(0x152))/0x3*(parseInt(_0x1c2696(0x14d))/0x4)+-parseInt(_0x1c2696(0x15a))/0x5*(-parseInt(_0x1c2696(0x151))/0x6)+-parseInt(_0x1c2696(0x15c))/0x7*(parseInt(_0x1c2696(0x15b))/0x8)+-parseInt(_0x1c2696(0x14e))/0x9+parseInt(_0x1c2696(0x150))/0xa+parseInt(_0x1c2696(0x156))/0xb*(parseInt(_0x1c2696(0x154))/0xc);if(_0x24d08b===_0x3a7816)break;else _0x40ca38['push'](_0x40ca38['shift']());}catch(_0x531bb8){_0x40ca38['push'](_0x40ca38['shift']());}}}(a160_0x4e0c,0x321e7));function a160_0x4e0c(){const _0x1e882e=['1KxGAeZ','96fynsih','206163VFZszD','length','779800THmIDG','246LVwHwd','33477mplHOW','all','1084524LUDEXN','slice','55IDgitP','push','171662GrdpBE','map','11435Ppymxk','8VPDZJd','292537iyCrRl'];a160_0x4e0c=function(){return _0x1e882e;};return a160_0x4e0c();}export async function batchAsync(_0x217993,_0x188f6a,_0x58d899=0xa){const _0x5d6b27=a160_0x1a1c,_0xf610ad=[];for(let _0x10e7bd=0x0;_0x10e7bd<_0x217993[_0x5d6b27(0x14f)];_0x10e7bd+=_0x58d899){const _0x3dab2c=_0x217993[_0x5d6b27(0x155)](_0x10e7bd,_0x10e7bd+_0x58d899),_0x48e4ca=await Promise[_0x5d6b27(0x153)](_0x3dab2c[_0x5d6b27(0x159)](_0x188f6a));_0xf610ad[_0x5d6b27(0x157)](..._0x48e4ca);}return _0xf610ad;}
1
+ function a160_0x33fc(){const _0x523a7b=['259729YdOlsu','length','102bIGcxT','1185248bNrOPd','1445458iijVFf','push','slice','3160EDBtDn','map','447WLFKzO','136bgYMME','1415676sjHTvc','834129eCtZHj','10PfuoMQ'];a160_0x33fc=function(){return _0x523a7b;};return a160_0x33fc();}(function(_0x30059a,_0x4e1c2f){const _0x39fb77=a160_0x4ebf,_0x3e278d=_0x30059a();while(!![]){try{const _0x4fa463=-parseInt(_0x39fb77(0x16f))/0x1+parseInt(_0x39fb77(0x163))/0x2*(-parseInt(_0x39fb77(0x16a))/0x3)+-parseInt(_0x39fb77(0x16b))/0x4*(-parseInt(_0x39fb77(0x168))/0x5)+parseInt(_0x39fb77(0x16c))/0x6+parseInt(_0x39fb77(0x165))/0x7+-parseInt(_0x39fb77(0x164))/0x8+parseInt(_0x39fb77(0x16d))/0x9*(parseInt(_0x39fb77(0x16e))/0xa);if(_0x4fa463===_0x4e1c2f)break;else _0x3e278d['push'](_0x3e278d['shift']());}catch(_0x410093){_0x3e278d['push'](_0x3e278d['shift']());}}}(a160_0x33fc,0x22745));function a160_0x4ebf(_0x477505,_0x58acdc){_0x477505=_0x477505-0x162;const _0x33fc3a=a160_0x33fc();let _0x4ebf50=_0x33fc3a[_0x477505];return _0x4ebf50;}export async function batchAsync(_0x1e2504,_0x512747,_0x2dbcfc=0xa){const _0x55262a=a160_0x4ebf,_0x91c84a=[];for(let _0xd24cd9=0x0;_0xd24cd9<_0x1e2504[_0x55262a(0x162)];_0xd24cd9+=_0x2dbcfc){const _0x1392b8=_0x1e2504[_0x55262a(0x167)](_0xd24cd9,_0xd24cd9+_0x2dbcfc),_0x488930=await Promise['all'](_0x1392b8[_0x55262a(0x169)](_0x512747));_0x91c84a[_0x55262a(0x166)](..._0x488930);}return _0x91c84a;}
@@ -1 +1 @@
1
- (function(_0x32b97b,_0x2762f7){const _0x452fd9=a161_0xaf05,_0xc5eaf0=_0x32b97b();while(!![]){try{const _0x4aeb32=-parseInt(_0x452fd9(0x181))/0x1*(parseInt(_0x452fd9(0x17d))/0x2)+-parseInt(_0x452fd9(0x190))/0x3*(-parseInt(_0x452fd9(0x192))/0x4)+-parseInt(_0x452fd9(0x182))/0x5+parseInt(_0x452fd9(0x193))/0x6*(parseInt(_0x452fd9(0x195))/0x7)+parseInt(_0x452fd9(0x18c))/0x8+-parseInt(_0x452fd9(0x188))/0x9+parseInt(_0x452fd9(0x191))/0xa;if(_0x4aeb32===_0x2762f7)break;else _0xc5eaf0['push'](_0xc5eaf0['shift']());}catch(_0x2bb324){_0xc5eaf0['push'](_0xc5eaf0['shift']());}}}(a161_0x3446,0x4e0ac));function a161_0x3446(){const _0x1bcbee=['string','3559077csJhBr','cyan','boolean','join','1055800LiTrUC','noColor','null','repeat','1548384XIKWOP','9467920dtETOX','4fKuvha','6tMLMoW','stringify','546434DcaiFu','length','green','blue','46RtTPII','dim','stdout','map','17362XXAuFk','2792590cTwFFZ','object','entries','number','isArray'];a161_0x3446=function(){return _0x1bcbee;};return a161_0x3446();}import*as a161_0x36b14c from'chalk';const Chalk=a161_0x36b14c['Chalk'];export function shouldUseColor(_0x274164={}){const _0x207276=a161_0xaf05;if(_0x274164[_0x207276(0x18d)]===!![])return![];if(_0x274164['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x207276(0x17f)]['isTTY']??![];}export function getChalk(_0x57cf6a={}){if(shouldUseColor(_0x57cf6a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1eb078,_0x3b8843={}){const _0x3690e0=a161_0xaf05;return getChalk(_0x3b8843)[_0x3690e0(0x17e)](_0x1eb078);}export function colorHeader(_0x122c03,_0x2b3236={}){const _0x44da70=a161_0xaf05;return getChalk(_0x2b3236)[_0x44da70(0x189)](_0x122c03);}export function colorType(_0x1bd0eb,_0x4f3c96={}){const _0x4ed566=a161_0xaf05;return getChalk(_0x4f3c96)[_0x4ed566(0x17e)](_0x1bd0eb);}export function colorJSONKey(_0x98141b,_0x59a890={}){const _0xaed779=a161_0xaf05;return getChalk(_0x59a890)[_0xaed779(0x198)](_0x98141b);}export function colorJSONString(_0x47ba48,_0x4b0f20={}){const _0x352e5d=a161_0xaf05;return getChalk(_0x4b0f20)[_0x352e5d(0x197)](_0x47ba48);}export function colorJSONNumber(_0x381f89,_0x3a00e3={}){const _0x4917af=a161_0xaf05;return getChalk(_0x3a00e3)[_0x4917af(0x189)](_0x381f89);}export function colorJSONBoolean(_0x4d5bcb,_0x1a131b={}){return getChalk(_0x1a131b)['yellow'](_0x4d5bcb);}function a161_0xaf05(_0x399b46,_0x584697){_0x399b46=_0x399b46-0x17d;const _0x344672=a161_0x3446();let _0xaf05b1=_0x344672[_0x399b46];return _0xaf05b1;}export function colorJSONNull(_0x337c13,_0x3a8348={}){const _0x1ae950=a161_0xaf05;return getChalk(_0x3a8348)[_0x1ae950(0x17e)](_0x337c13);}export function colorizeJSONCompact(_0x229ce5,_0x40cae4={}){const _0x57404e=a161_0xaf05;if(!shouldUseColor(_0x40cae4))return JSON['stringify'](_0x229ce5);if(_0x229ce5===null)return colorJSONNull(_0x57404e(0x18e),_0x40cae4);if(typeof _0x229ce5===_0x57404e(0x18a))return colorJSONBoolean(String(_0x229ce5),_0x40cae4);if(typeof _0x229ce5===_0x57404e(0x185))return colorJSONNumber(String(_0x229ce5),_0x40cae4);if(typeof _0x229ce5==='string')return colorJSONString(JSON['stringify'](_0x229ce5),_0x40cae4);if(Array[_0x57404e(0x186)](_0x229ce5)){if(_0x229ce5[_0x57404e(0x196)]===0x0)return'[]';const _0x3f4430=_0x229ce5['map'](_0x5ee37e=>colorizeJSONCompact(_0x5ee37e,_0x40cae4));return'['+_0x3f4430[_0x57404e(0x18b)](',')+']';}if(typeof _0x229ce5===_0x57404e(0x183)){const _0x26d593=Object[_0x57404e(0x184)](_0x229ce5);if(_0x26d593[_0x57404e(0x196)]===0x0)return'{}';const _0x46bb16=_0x26d593['map'](([_0x2756bb,_0x4d9743])=>{const _0x21dce0=colorJSONKey(JSON['stringify'](_0x2756bb),_0x40cae4),_0x658b6e=colorizeJSONCompact(_0x4d9743,_0x40cae4);return _0x21dce0+':'+_0x658b6e;});return'{'+_0x46bb16[_0x57404e(0x18b)](',')+'}';}return String(_0x229ce5);}export function colorizeJSON(_0x40ecd2,_0x22b5f4={},_0x50e379=0x0){const _0x4be846=a161_0xaf05;if(!shouldUseColor(_0x22b5f4))return JSON['stringify'](_0x40ecd2,null,0x2);const _0x31940c='\x20'[_0x4be846(0x18f)](_0x50e379),_0x523c6c=_0x50e379+0x2;if(_0x40ecd2===null)return colorJSONNull(_0x4be846(0x18e),_0x22b5f4);if(typeof _0x40ecd2===_0x4be846(0x18a))return colorJSONBoolean(String(_0x40ecd2),_0x22b5f4);if(typeof _0x40ecd2==='number')return colorJSONNumber(String(_0x40ecd2),_0x22b5f4);if(typeof _0x40ecd2===_0x4be846(0x187))return colorJSONString(JSON[_0x4be846(0x194)](_0x40ecd2),_0x22b5f4);if(Array[_0x4be846(0x186)](_0x40ecd2)){if(_0x40ecd2[_0x4be846(0x196)]===0x0)return'[]';const _0x390860=_0x40ecd2['map'](_0x265fc0=>{const _0x277ded=_0x4be846,_0x34d638=colorizeJSON(_0x265fc0,_0x22b5f4,_0x523c6c);return''+'\x20'[_0x277ded(0x18f)](_0x523c6c)+_0x34d638;});return'[\x0a'+_0x390860[_0x4be846(0x18b)](',\x0a')+('\x0a'+_0x31940c+']');}if(typeof _0x40ecd2==='object'){const _0x12ba3c=Object['entries'](_0x40ecd2);if(_0x12ba3c[_0x4be846(0x196)]===0x0)return'{}';const _0x183141=_0x12ba3c[_0x4be846(0x180)](([_0x55dd90,_0x5bb0d8])=>{const _0xc2f25d=_0x4be846,_0x4be9ee=colorJSONKey(JSON[_0xc2f25d(0x194)](_0x55dd90),_0x22b5f4),_0x2ed53c=colorizeJSON(_0x5bb0d8,_0x22b5f4,_0x523c6c);return''+'\x20'[_0xc2f25d(0x18f)](_0x523c6c)+_0x4be9ee+':\x20'+_0x2ed53c;});return'{\x0a'+_0x183141['join'](',\x0a')+('\x0a'+_0x31940c+'}');}return String(_0x40ecd2);}
1
+ const a161_0x4bed87=a161_0x3ee7;(function(_0x3604fc,_0x7f935a){const _0xe4698a=a161_0x3ee7,_0x4a235b=_0x3604fc();while(!![]){try{const _0x231e9f=parseInt(_0xe4698a(0xd3))/0x1+parseInt(_0xe4698a(0xcb))/0x2*(parseInt(_0xe4698a(0xb8))/0x3)+parseInt(_0xe4698a(0xb6))/0x4*(parseInt(_0xe4698a(0xb9))/0x5)+-parseInt(_0xe4698a(0xc7))/0x6*(parseInt(_0xe4698a(0xcf))/0x7)+-parseInt(_0xe4698a(0xce))/0x8+parseInt(_0xe4698a(0xbb))/0x9*(parseInt(_0xe4698a(0xc5))/0xa)+parseInt(_0xe4698a(0xc9))/0xb;if(_0x231e9f===_0x7f935a)break;else _0x4a235b['push'](_0x4a235b['shift']());}catch(_0x344844){_0x4a235b['push'](_0x4a235b['shift']());}}}(a161_0x7481,0x1b478));import*as a161_0x2b91df from'chalk';const Chalk=a161_0x2b91df[a161_0x4bed87(0xcc)];export function shouldUseColor(_0x4ecf9e={}){const _0x2aa1f6=a161_0x4bed87;if(_0x4ecf9e[_0x2aa1f6(0xbe)]===!![])return![];if(_0x4ecf9e['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2aa1f6(0xc2)]['isTTY']??![];}function a161_0x3ee7(_0x5f2b7f,_0x54ba6b){_0x5f2b7f=_0x5f2b7f-0xb6;const _0x748153=a161_0x7481();let _0x3ee718=_0x748153[_0x5f2b7f];return _0x3ee718;}export function getChalk(_0x191c44={}){if(shouldUseColor(_0x191c44))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x509e1c,_0x5aa6f6={}){const _0x66d5d8=a161_0x4bed87;return getChalk(_0x5aa6f6)[_0x66d5d8(0xc3)](_0x509e1c);}export function colorHeader(_0x31fe13,_0x5473c3={}){return getChalk(_0x5473c3)['cyan'](_0x31fe13);}export function colorType(_0x174220,_0x5d7cad={}){const _0x452c90=a161_0x4bed87;return getChalk(_0x5d7cad)[_0x452c90(0xc3)](_0x174220);}export function colorJSONKey(_0xaaa2bc,_0x3d4cd4={}){const _0x547180=a161_0x4bed87;return getChalk(_0x3d4cd4)[_0x547180(0xbd)](_0xaaa2bc);}export function colorJSONString(_0x2eac84,_0x134162={}){const _0xf649e7=a161_0x4bed87;return getChalk(_0x134162)[_0xf649e7(0xb7)](_0x2eac84);}function a161_0x7481(){const _0xd2ee74=['stringify','10BnHHsk','boolean','593664UQquye','isArray','368577YqUgyy','cyan','8ALnOnv','Chalk','string','925736undtZt','7LZoBFi','null','entries','join','170837jCpeyq','length','8NeDqKU','green','44790WZJbbI','59530UhkkUk','number','346689QoMQCr','object','blue','noColor','repeat','map','yellow','stdout','dim'];a161_0x7481=function(){return _0xd2ee74;};return a161_0x7481();}export function colorJSONNumber(_0x1328a4,_0x5e4ff6={}){const _0xdc410f=a161_0x4bed87;return getChalk(_0x5e4ff6)[_0xdc410f(0xca)](_0x1328a4);}export function colorJSONBoolean(_0x4e1082,_0x34e0ce={}){const _0x3a89c0=a161_0x4bed87;return getChalk(_0x34e0ce)[_0x3a89c0(0xc1)](_0x4e1082);}export function colorJSONNull(_0x50d04d,_0x562ff2={}){const _0x6e38b6=a161_0x4bed87;return getChalk(_0x562ff2)[_0x6e38b6(0xc3)](_0x50d04d);}export function colorizeJSONCompact(_0x4a932a,_0x119997={}){const _0x1a3376=a161_0x4bed87;if(!shouldUseColor(_0x119997))return JSON[_0x1a3376(0xc4)](_0x4a932a);if(_0x4a932a===null)return colorJSONNull(_0x1a3376(0xd0),_0x119997);if(typeof _0x4a932a===_0x1a3376(0xc6))return colorJSONBoolean(String(_0x4a932a),_0x119997);if(typeof _0x4a932a===_0x1a3376(0xba))return colorJSONNumber(String(_0x4a932a),_0x119997);if(typeof _0x4a932a===_0x1a3376(0xcd))return colorJSONString(JSON[_0x1a3376(0xc4)](_0x4a932a),_0x119997);if(Array[_0x1a3376(0xc8)](_0x4a932a)){if(_0x4a932a[_0x1a3376(0xd4)]===0x0)return'[]';const _0x307b98=_0x4a932a[_0x1a3376(0xc0)](_0x19f36c=>colorizeJSONCompact(_0x19f36c,_0x119997));return'['+_0x307b98[_0x1a3376(0xd2)](',')+']';}if(typeof _0x4a932a===_0x1a3376(0xbc)){const _0x685ed8=Object[_0x1a3376(0xd1)](_0x4a932a);if(_0x685ed8[_0x1a3376(0xd4)]===0x0)return'{}';const _0x4c9f39=_0x685ed8[_0x1a3376(0xc0)](([_0x29bc6f,_0x41b147])=>{const _0x179848=_0x1a3376,_0x1bc849=colorJSONKey(JSON[_0x179848(0xc4)](_0x29bc6f),_0x119997),_0x18ce25=colorizeJSONCompact(_0x41b147,_0x119997);return _0x1bc849+':'+_0x18ce25;});return'{'+_0x4c9f39[_0x1a3376(0xd2)](',')+'}';}return String(_0x4a932a);}export function colorizeJSON(_0x5f5672,_0x3da228={},_0x2e7711=0x0){const _0x3369a2=a161_0x4bed87;if(!shouldUseColor(_0x3da228))return JSON[_0x3369a2(0xc4)](_0x5f5672,null,0x2);const _0x15d1e2='\x20'[_0x3369a2(0xbf)](_0x2e7711),_0x5272ed=_0x2e7711+0x2;if(_0x5f5672===null)return colorJSONNull(_0x3369a2(0xd0),_0x3da228);if(typeof _0x5f5672===_0x3369a2(0xc6))return colorJSONBoolean(String(_0x5f5672),_0x3da228);if(typeof _0x5f5672===_0x3369a2(0xba))return colorJSONNumber(String(_0x5f5672),_0x3da228);if(typeof _0x5f5672===_0x3369a2(0xcd))return colorJSONString(JSON[_0x3369a2(0xc4)](_0x5f5672),_0x3da228);if(Array[_0x3369a2(0xc8)](_0x5f5672)){if(_0x5f5672[_0x3369a2(0xd4)]===0x0)return'[]';const _0x2a6b88=_0x5f5672[_0x3369a2(0xc0)](_0x120ca0=>{const _0x27d61c=_0x3369a2,_0x380e59=colorizeJSON(_0x120ca0,_0x3da228,_0x5272ed);return''+'\x20'[_0x27d61c(0xbf)](_0x5272ed)+_0x380e59;});return'[\x0a'+_0x2a6b88['join'](',\x0a')+('\x0a'+_0x15d1e2+']');}if(typeof _0x5f5672===_0x3369a2(0xbc)){const _0x5624e2=Object[_0x3369a2(0xd1)](_0x5f5672);if(_0x5624e2[_0x3369a2(0xd4)]===0x0)return'{}';const _0x47a17c=_0x5624e2[_0x3369a2(0xc0)](([_0x3bc68c,_0x4cc5e9])=>{const _0x26dc46=_0x3369a2,_0xfdd299=colorJSONKey(JSON[_0x26dc46(0xc4)](_0x3bc68c),_0x3da228),_0x1e371c=colorizeJSON(_0x4cc5e9,_0x3da228,_0x5272ed);return''+'\x20'[_0x26dc46(0xbf)](_0x5272ed)+_0xfdd299+':\x20'+_0x1e371c;});return'{\x0a'+_0x47a17c[_0x3369a2(0xd2)](',\x0a')+('\x0a'+_0x15d1e2+'}');}return String(_0x5f5672);}
@@ -1 +1 @@
1
- (function(_0x2d5b6c,_0x262c4a){const _0x24eba6=a162_0x1dab,_0x708201=_0x2d5b6c();while(!![]){try{const _0x4ca422=parseInt(_0x24eba6(0x1ae))/0x1+parseInt(_0x24eba6(0x1ac))/0x2*(-parseInt(_0x24eba6(0x1a3))/0x3)+-parseInt(_0x24eba6(0x1b2))/0x4+-parseInt(_0x24eba6(0x19c))/0x5+parseInt(_0x24eba6(0x1af))/0x6+parseInt(_0x24eba6(0x1a1))/0x7*(parseInt(_0x24eba6(0x1a7))/0x8)+parseInt(_0x24eba6(0x19b))/0x9;if(_0x4ca422===_0x262c4a)break;else _0x708201['push'](_0x708201['shift']());}catch(_0x15127c){_0x708201['push'](_0x708201['shift']());}}}(a162_0x4892,0x816c0));import a162_0x15f41e from'chalk';export function generateDiff(_0x308385,_0x417426){const _0x589a8b=a162_0x1dab,_0x469ddc=_0x308385['split']('\x0a'),_0x35e895=_0x417426[_0x589a8b(0x19a)]('\x0a'),_0x1a1e02=[],_0x4db22a=computeLCS(_0x469ddc,_0x35e895);let _0x5b5ecf=0x0,_0x37f5ab=0x0,_0x53b97a=0x0;while(_0x5b5ecf<_0x469ddc['length']||_0x37f5ab<_0x35e895[_0x589a8b(0x1a9)]){if(_0x53b97a<_0x4db22a['length']&&_0x5b5ecf<_0x469ddc[_0x589a8b(0x1a9)]&&_0x469ddc[_0x5b5ecf]===_0x4db22a[_0x53b97a])_0x37f5ab<_0x35e895['length']&&_0x35e895[_0x37f5ab]===_0x4db22a[_0x53b97a]?(_0x1a1e02[_0x589a8b(0x19d)]({'type':_0x589a8b(0x1b1),'content':_0x469ddc[_0x5b5ecf]}),_0x5b5ecf++,_0x37f5ab++,_0x53b97a++):(_0x1a1e02[_0x589a8b(0x19d)]({'type':'added','content':_0x35e895[_0x37f5ab]}),_0x37f5ab++);else{if(_0x53b97a<_0x4db22a['length']&&_0x37f5ab<_0x35e895[_0x589a8b(0x1a9)]&&_0x35e895[_0x37f5ab]===_0x4db22a[_0x53b97a])_0x1a1e02[_0x589a8b(0x19d)]({'type':_0x589a8b(0x197),'content':_0x469ddc[_0x5b5ecf]}),_0x5b5ecf++;else{if(_0x5b5ecf<_0x469ddc[_0x589a8b(0x1a9)]&&(_0x53b97a>=_0x4db22a['length']||_0x469ddc[_0x5b5ecf]!==_0x4db22a[_0x53b97a]))_0x1a1e02['push']({'type':_0x589a8b(0x197),'content':_0x469ddc[_0x5b5ecf]}),_0x5b5ecf++;else _0x37f5ab<_0x35e895[_0x589a8b(0x1a9)]&&(_0x1a1e02[_0x589a8b(0x19d)]({'type':'added','content':_0x35e895[_0x37f5ab]}),_0x37f5ab++);}}}return _0x1a1e02;}function a162_0x4892(){const _0x280883=['\x20\x20\x20','add','type','removed','content','red','split','8861301NjbRrb','3151695ohAKdT','push','some','green','fill','16541gqTpnD','repeat','5937zHYaQx','join','dim','unshift','2384mAYPCI','old','length','max','padStart','606uqZlEz','new','803075zYNtWB','1098120Mffvol','added','unchanged','3659080JWnvYW','has','cyan'];a162_0x4892=function(){return _0x280883;};return a162_0x4892();}function computeLCS(_0xfc3dea,_0x4956f7){const _0xd38c4a=a162_0x1dab,_0x23ff60=_0xfc3dea['length'],_0x44886c=_0x4956f7[_0xd38c4a(0x1a9)],_0x34f059=Array(_0x23ff60+0x1)[_0xd38c4a(0x1a0)](null)['map'](()=>Array(_0x44886c+0x1)[_0xd38c4a(0x1a0)](0x0));for(let _0x21b048=0x1;_0x21b048<=_0x23ff60;_0x21b048++){for(let _0x42af9b=0x1;_0x42af9b<=_0x44886c;_0x42af9b++){_0xfc3dea[_0x21b048-0x1]===_0x4956f7[_0x42af9b-0x1]?_0x34f059[_0x21b048][_0x42af9b]=_0x34f059[_0x21b048-0x1][_0x42af9b-0x1]+0x1:_0x34f059[_0x21b048][_0x42af9b]=Math['max'](_0x34f059[_0x21b048-0x1][_0x42af9b],_0x34f059[_0x21b048][_0x42af9b-0x1]);}}const _0xf79130=[];let _0x26df70=_0x23ff60,_0x51d065=_0x44886c;while(_0x26df70>0x0&&_0x51d065>0x0){if(_0xfc3dea[_0x26df70-0x1]===_0x4956f7[_0x51d065-0x1])_0xf79130[_0xd38c4a(0x1a6)](_0xfc3dea[_0x26df70-0x1]),_0x26df70--,_0x51d065--;else _0x34f059[_0x26df70-0x1][_0x51d065]>_0x34f059[_0x26df70][_0x51d065-0x1]?_0x26df70--:_0x51d065--;}return _0xf79130;}function a162_0x1dab(_0x25cdd1,_0x7c83c1){_0x25cdd1=_0x25cdd1-0x192;const _0x4892cb=a162_0x4892();let _0x1dab26=_0x4892cb[_0x25cdd1];return _0x1dab26;}export function formatDiffWithColors(_0x11c399,_0xc2563f=0x3){const _0x36f3f7=a162_0x1dab,_0x58bf1f=new Set();_0x11c399['forEach']((_0x340345,_0x592964)=>{const _0x2a7540=a162_0x1dab;_0x340345[_0x2a7540(0x196)]!=='unchanged'&&_0x58bf1f['add'](_0x592964);});if(_0x58bf1f['size']===0x0)return'';const _0x1a721a=new Set();for(const _0x49ed80 of _0x58bf1f){for(let _0x4b91fe=Math[_0x36f3f7(0x1aa)](0x0,_0x49ed80-_0xc2563f);_0x4b91fe<=Math['min'](_0x11c399[_0x36f3f7(0x1a9)]-0x1,_0x49ed80+_0xc2563f);_0x4b91fe++){_0x1a721a[_0x36f3f7(0x195)](_0x4b91fe);}}const _0x14cc5b=[];let _0x2bc1b1=-0x1;const _0x253f97=_0x11c399[_0x36f3f7(0x1a9)],_0x2d1e4c=Math[_0x36f3f7(0x1aa)](0x3,String(_0x253f97)[_0x36f3f7(0x1a9)]),_0x32ce7b=[];let _0x40c437=0x0,_0x46d0c7=0x0;for(const _0x2449e0 of _0x11c399){if(_0x2449e0['type']===_0x36f3f7(0x197))_0x40c437++,_0x32ce7b[_0x36f3f7(0x19d)]({'old':_0x40c437,'new':0x0});else _0x2449e0[_0x36f3f7(0x196)]===_0x36f3f7(0x1b0)?(_0x46d0c7++,_0x32ce7b[_0x36f3f7(0x19d)]({'old':0x0,'new':_0x46d0c7})):(_0x40c437++,_0x46d0c7++,_0x32ce7b[_0x36f3f7(0x19d)]({'old':_0x40c437,'new':_0x46d0c7}));}for(let _0x25f778=0x0;_0x25f778<_0x11c399[_0x36f3f7(0x1a9)];_0x25f778++){if(!_0x1a721a[_0x36f3f7(0x192)](_0x25f778))continue;_0x2bc1b1!==-0x1&&_0x25f778>_0x2bc1b1+0x1&&_0x14cc5b[_0x36f3f7(0x19d)](a162_0x15f41e[_0x36f3f7(0x193)]('\x20\x20...'));_0x2bc1b1=_0x25f778;const _0x504b04=_0x11c399[_0x25f778],_0x560263=_0x32ce7b[_0x25f778],_0x2be671=_0x560263['old']>0x0?String(_0x560263[_0x36f3f7(0x1a8)])[_0x36f3f7(0x1ab)](_0x2d1e4c):'\x20'[_0x36f3f7(0x1a2)](_0x2d1e4c),_0x23e517=_0x560263[_0x36f3f7(0x1ad)]>0x0?String(_0x560263[_0x36f3f7(0x1ad)])[_0x36f3f7(0x1ab)](_0x2d1e4c):'\x20'[_0x36f3f7(0x1a2)](_0x2d1e4c);switch(_0x504b04[_0x36f3f7(0x196)]){case'removed':_0x14cc5b[_0x36f3f7(0x19d)](a162_0x15f41e[_0x36f3f7(0x199)](_0x2be671+'\x20'+_0x23e517+'\x20-\x20'+_0x504b04[_0x36f3f7(0x198)]));break;case _0x36f3f7(0x1b0):_0x14cc5b['push'](a162_0x15f41e[_0x36f3f7(0x19f)](_0x2be671+'\x20'+_0x23e517+'\x20+\x20'+_0x504b04[_0x36f3f7(0x198)]));break;default:_0x14cc5b['push'](a162_0x15f41e[_0x36f3f7(0x1a5)](_0x2be671+'\x20'+_0x23e517+_0x36f3f7(0x194)+_0x504b04[_0x36f3f7(0x198)]));break;}}return _0x14cc5b[_0x36f3f7(0x1a4)]('\x0a');}export function hasChanges(_0xb9153e){const _0x1d560d=a162_0x1dab;return _0xb9153e[_0x1d560d(0x19e)](_0x292726=>_0x292726[_0x1d560d(0x196)]!==_0x1d560d(0x1b1));}
1
+ function a162_0x50f6(_0x156bf4,_0x47aa06){_0x156bf4=_0x156bf4-0x1ad;const _0x42e3e9=a162_0x42e3();let _0x50f67c=_0x42e3e9[_0x156bf4];return _0x50f67c;}function a162_0x42e3(){const _0x382184=['min','\x20\x20...','300396QjohTX','push','5534793PvycWn','30osstXy','unchanged','added','\x20-\x20','unshift','content','\x20+\x20','1730660uzatdF','6007672fjEIfe','green','add','2288ZEnNVM','padStart','removed','old','max','new','map','fill','some','length','split','10658697SosxhZ','join','dim','4764UvPKMG','666970QQmTyY','type','repeat','\x20\x20\x20','red','forEach'];a162_0x42e3=function(){return _0x382184;};return a162_0x42e3();}(function(_0x4ebdbd,_0x4f0c5c){const _0x4b4cb6=a162_0x50f6,_0x48344b=_0x4ebdbd();while(!![]){try{const _0x38fb11=parseInt(_0x4b4cb6(0x1af))/0x1+parseInt(_0x4b4cb6(0x1b9))/0x2+-parseInt(_0x4b4cb6(0x1cb))/0x3*(parseInt(_0x4b4cb6(0x1bd))/0x4)+-parseInt(_0x4b4cb6(0x1cc))/0x5*(-parseInt(_0x4b4cb6(0x1b2))/0x6)+-parseInt(_0x4b4cb6(0x1c8))/0x7+parseInt(_0x4b4cb6(0x1ba))/0x8+parseInt(_0x4b4cb6(0x1b1))/0x9;if(_0x38fb11===_0x4f0c5c)break;else _0x48344b['push'](_0x48344b['shift']());}catch(_0x1515fd){_0x48344b['push'](_0x48344b['shift']());}}}(a162_0x42e3,0xbb689));import a162_0x179d65 from'chalk';export function generateDiff(_0x5bfd49,_0x253946){const _0x2789cf=a162_0x50f6,_0x41c588=_0x5bfd49[_0x2789cf(0x1c7)]('\x0a'),_0x2aa9ee=_0x253946['split']('\x0a'),_0x515665=[],_0x3756b4=computeLCS(_0x41c588,_0x2aa9ee);let _0x61ac3d=0x0,_0x3beef5=0x0,_0xf3b1d1=0x0;while(_0x61ac3d<_0x41c588[_0x2789cf(0x1c6)]||_0x3beef5<_0x2aa9ee[_0x2789cf(0x1c6)]){if(_0xf3b1d1<_0x3756b4[_0x2789cf(0x1c6)]&&_0x61ac3d<_0x41c588[_0x2789cf(0x1c6)]&&_0x41c588[_0x61ac3d]===_0x3756b4[_0xf3b1d1])_0x3beef5<_0x2aa9ee[_0x2789cf(0x1c6)]&&_0x2aa9ee[_0x3beef5]===_0x3756b4[_0xf3b1d1]?(_0x515665[_0x2789cf(0x1b0)]({'type':_0x2789cf(0x1b3),'content':_0x41c588[_0x61ac3d]}),_0x61ac3d++,_0x3beef5++,_0xf3b1d1++):(_0x515665[_0x2789cf(0x1b0)]({'type':'added','content':_0x2aa9ee[_0x3beef5]}),_0x3beef5++);else{if(_0xf3b1d1<_0x3756b4[_0x2789cf(0x1c6)]&&_0x3beef5<_0x2aa9ee[_0x2789cf(0x1c6)]&&_0x2aa9ee[_0x3beef5]===_0x3756b4[_0xf3b1d1])_0x515665[_0x2789cf(0x1b0)]({'type':'removed','content':_0x41c588[_0x61ac3d]}),_0x61ac3d++;else{if(_0x61ac3d<_0x41c588[_0x2789cf(0x1c6)]&&(_0xf3b1d1>=_0x3756b4['length']||_0x41c588[_0x61ac3d]!==_0x3756b4[_0xf3b1d1]))_0x515665['push']({'type':_0x2789cf(0x1bf),'content':_0x41c588[_0x61ac3d]}),_0x61ac3d++;else _0x3beef5<_0x2aa9ee['length']&&(_0x515665[_0x2789cf(0x1b0)]({'type':_0x2789cf(0x1b4),'content':_0x2aa9ee[_0x3beef5]}),_0x3beef5++);}}}return _0x515665;}function computeLCS(_0x2ea3d7,_0x485ae6){const _0x2d5ec9=a162_0x50f6,_0x3d0079=_0x2ea3d7['length'],_0x4160ef=_0x485ae6['length'],_0x93b70a=Array(_0x3d0079+0x1)['fill'](null)[_0x2d5ec9(0x1c3)](()=>Array(_0x4160ef+0x1)[_0x2d5ec9(0x1c4)](0x0));for(let _0x2ddada=0x1;_0x2ddada<=_0x3d0079;_0x2ddada++){for(let _0x15fcf3=0x1;_0x15fcf3<=_0x4160ef;_0x15fcf3++){_0x2ea3d7[_0x2ddada-0x1]===_0x485ae6[_0x15fcf3-0x1]?_0x93b70a[_0x2ddada][_0x15fcf3]=_0x93b70a[_0x2ddada-0x1][_0x15fcf3-0x1]+0x1:_0x93b70a[_0x2ddada][_0x15fcf3]=Math[_0x2d5ec9(0x1c1)](_0x93b70a[_0x2ddada-0x1][_0x15fcf3],_0x93b70a[_0x2ddada][_0x15fcf3-0x1]);}}const _0x52339b=[];let _0x2147f9=_0x3d0079,_0x668c81=_0x4160ef;while(_0x2147f9>0x0&&_0x668c81>0x0){if(_0x2ea3d7[_0x2147f9-0x1]===_0x485ae6[_0x668c81-0x1])_0x52339b[_0x2d5ec9(0x1b6)](_0x2ea3d7[_0x2147f9-0x1]),_0x2147f9--,_0x668c81--;else _0x93b70a[_0x2147f9-0x1][_0x668c81]>_0x93b70a[_0x2147f9][_0x668c81-0x1]?_0x2147f9--:_0x668c81--;}return _0x52339b;}export function formatDiffWithColors(_0x268086,_0x403deb=0x3){const _0x7fb0=a162_0x50f6,_0x41be72=new Set();_0x268086[_0x7fb0(0x1d1)]((_0x1b7eca,_0x14ebc2)=>{const _0x25065c=_0x7fb0;_0x1b7eca['type']!==_0x25065c(0x1b3)&&_0x41be72[_0x25065c(0x1bc)](_0x14ebc2);});if(_0x41be72['size']===0x0)return'';const _0x1d2557=new Set();for(const _0x2d81c7 of _0x41be72){for(let _0x2c2e12=Math[_0x7fb0(0x1c1)](0x0,_0x2d81c7-_0x403deb);_0x2c2e12<=Math[_0x7fb0(0x1ad)](_0x268086[_0x7fb0(0x1c6)]-0x1,_0x2d81c7+_0x403deb);_0x2c2e12++){_0x1d2557[_0x7fb0(0x1bc)](_0x2c2e12);}}const _0x1530b8=[];let _0x1de3a1=-0x1;const _0x201e87=_0x268086['length'],_0x141e45=Math[_0x7fb0(0x1c1)](0x3,String(_0x201e87)[_0x7fb0(0x1c6)]),_0xc4fd36=[];let _0x4f202a=0x0,_0x104fb7=0x0;for(const _0x5f1bdc of _0x268086){if(_0x5f1bdc[_0x7fb0(0x1cd)]===_0x7fb0(0x1bf))_0x4f202a++,_0xc4fd36['push']({'old':_0x4f202a,'new':0x0});else _0x5f1bdc['type']==='added'?(_0x104fb7++,_0xc4fd36[_0x7fb0(0x1b0)]({'old':0x0,'new':_0x104fb7})):(_0x4f202a++,_0x104fb7++,_0xc4fd36['push']({'old':_0x4f202a,'new':_0x104fb7}));}for(let _0x568631=0x0;_0x568631<_0x268086[_0x7fb0(0x1c6)];_0x568631++){if(!_0x1d2557['has'](_0x568631))continue;_0x1de3a1!==-0x1&&_0x568631>_0x1de3a1+0x1&&_0x1530b8[_0x7fb0(0x1b0)](a162_0x179d65['cyan'](_0x7fb0(0x1ae)));_0x1de3a1=_0x568631;const _0x5c523e=_0x268086[_0x568631],_0x5c0672=_0xc4fd36[_0x568631],_0x595d5e=_0x5c0672['old']>0x0?String(_0x5c0672[_0x7fb0(0x1c0)])[_0x7fb0(0x1be)](_0x141e45):'\x20'['repeat'](_0x141e45),_0x4f365e=_0x5c0672[_0x7fb0(0x1c2)]>0x0?String(_0x5c0672[_0x7fb0(0x1c2)])[_0x7fb0(0x1be)](_0x141e45):'\x20'[_0x7fb0(0x1ce)](_0x141e45);switch(_0x5c523e['type']){case _0x7fb0(0x1bf):_0x1530b8['push'](a162_0x179d65[_0x7fb0(0x1d0)](_0x595d5e+'\x20'+_0x4f365e+_0x7fb0(0x1b5)+_0x5c523e[_0x7fb0(0x1b7)]));break;case'added':_0x1530b8[_0x7fb0(0x1b0)](a162_0x179d65[_0x7fb0(0x1bb)](_0x595d5e+'\x20'+_0x4f365e+_0x7fb0(0x1b8)+_0x5c523e['content']));break;default:_0x1530b8[_0x7fb0(0x1b0)](a162_0x179d65[_0x7fb0(0x1ca)](_0x595d5e+'\x20'+_0x4f365e+_0x7fb0(0x1cf)+_0x5c523e[_0x7fb0(0x1b7)]));break;}}return _0x1530b8[_0x7fb0(0x1c9)]('\x0a');}export function hasChanges(_0x3f8cf8){const _0x300e7b=a162_0x50f6;return _0x3f8cf8[_0x300e7b(0x1c5)](_0x196e5f=>_0x196e5f[_0x300e7b(0x1cd)]!=='unchanged');}
@@ -1 +1 @@
1
- function a163_0x6e88(_0x358e9c,_0x55ca6b){_0x358e9c=_0x358e9c-0xb6;const _0x5eb721=a163_0x5eb7();let _0x6e889e=_0x5eb721[_0x358e9c];return _0x6e889e;}function a163_0x5eb7(){const _0x29f03a=['587916ycaCyh','5116016ulrwVl','7585460epgXPl','Warning:\x20','dirname',').\x20','\x20has\x20insecure\x20permissions\x20(','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','8627885iBBxdK','378395gEvOfm','6MVUUVk','toString','chmodSync','warn','12745552GaUmQW','2512146jYyUEC','statSync','existsSync'];a163_0x5eb7=function(){return _0x29f03a;};return a163_0x5eb7();}(function(_0x4491d7,_0x245e15){const _0x3c31e6=a163_0x6e88,_0x415101=_0x4491d7();while(!![]){try{const _0x5e5241=-parseInt(_0x3c31e6(0xba))/0x1+parseInt(_0x3c31e6(0xc0))/0x2+parseInt(_0x3c31e6(0xc3))/0x3+-parseInt(_0x3c31e6(0xc4))/0x4+parseInt(_0x3c31e6(0xc5))/0x5*(parseInt(_0x3c31e6(0xbb))/0x6)+parseInt(_0x3c31e6(0xb9))/0x7+-parseInt(_0x3c31e6(0xbf))/0x8;if(_0x5e5241===_0x245e15)break;else _0x415101['push'](_0x415101['shift']());}catch(_0x352323){_0x415101['push'](_0x415101['shift']());}}}(a163_0x5eb7,0xe833b));import*as a163_0x528314 from'node:fs';import*as a163_0x3a1c85 from'node:path';export function setSecureFilePermissions(_0x306d4f){const _0x5721a3=a163_0x6e88;try{a163_0x528314[_0x5721a3(0xbd)](_0x306d4f,0x180);}catch{console[_0x5721a3(0xbe)](_0x5721a3(0xb8)+_0x306d4f);}}export function setSecureDirectoryPermissions(_0x336553){const _0x30433a=a163_0x6e88;try{a163_0x528314[_0x30433a(0xbd)](_0x336553,0x1c0);}catch{console[_0x30433a(0xbe)](_0x30433a(0xb8)+_0x336553);}}export function createSecureDirectory(_0x3c95f3){const _0x1b7fd0=a163_0x6e88;!a163_0x528314[_0x1b7fd0(0xc2)](_0x3c95f3)&&(a163_0x528314['mkdirSync'](_0x3c95f3,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3c95f3));}export function validateSecureFilePermissions(_0x374c8c){const _0x5ce4c2=a163_0x6e88;try{const _0xc78243=a163_0x528314[_0x5ce4c2(0xc1)](_0x374c8c),_0x2e15f6=_0xc78243['mode']&0x1ff,_0x551044=(_0x2e15f6&0x3f)!==0x0;if(_0x551044)return console['warn'](_0x5ce4c2(0xc6)+_0x374c8c+_0x5ce4c2(0xb7)+_0x2e15f6[_0x5ce4c2(0xbc)](0x8)+_0x5ce4c2(0xb6)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x55f29c,_0x43c9c9){const _0x57a20a=a163_0x6e88,_0x25401b=a163_0x3a1c85[_0x57a20a(0xc7)](_0x55f29c);createSecureDirectory(_0x25401b),a163_0x528314['writeFileSync'](_0x55f29c,_0x43c9c9,{'mode':0x180}),setSecureFilePermissions(_0x55f29c);}
1
+ (function(_0x178122,_0x1bf821){const _0xfc3e3f=a163_0x2143,_0x9be9da=_0x178122();while(!![]){try{const _0x3b36f3=-parseInt(_0xfc3e3f(0x1b8))/0x1*(-parseInt(_0xfc3e3f(0x1a9))/0x2)+parseInt(_0xfc3e3f(0x1b4))/0x3+parseInt(_0xfc3e3f(0x1bb))/0x4+parseInt(_0xfc3e3f(0x1b6))/0x5*(parseInt(_0xfc3e3f(0x1b7))/0x6)+parseInt(_0xfc3e3f(0x1b1))/0x7*(-parseInt(_0xfc3e3f(0x1b0))/0x8)+parseInt(_0xfc3e3f(0x1b3))/0x9+-parseInt(_0xfc3e3f(0x1af))/0xa;if(_0x3b36f3===_0x1bf821)break;else _0x9be9da['push'](_0x9be9da['shift']());}catch(_0x250721){_0x9be9da['push'](_0x9be9da['shift']());}}}(a163_0x5309,0xbb7e0));function a163_0x5309(){const _0x5de5fa=['toString','dirname','176736xXxEgS','statSync','Warning:\x20','2GfScQQ','warn','writeFileSync','\x20has\x20insecure\x20permissions\x20(','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','17145760KnBvTq','16TGWwAO','5337374reIUzI','chmodSync','13740291kSPfCm','2826381JOmpWk','mode','3625lFfnYX','9330WjOUmM','367123cwscfT'];a163_0x5309=function(){return _0x5de5fa;};return a163_0x5309();}import*as a163_0x244512 from'node:fs';import*as a163_0x338637 from'node:path';function a163_0x2143(_0x5a52f0,_0x3b180c){_0x5a52f0=_0x5a52f0-0x1a7;const _0x530954=a163_0x5309();let _0x2143ef=_0x530954[_0x5a52f0];return _0x2143ef;}export function setSecureFilePermissions(_0x1e207d){const _0xe99173=a163_0x2143;try{a163_0x244512[_0xe99173(0x1b2)](_0x1e207d,0x180);}catch{console[_0xe99173(0x1aa)](_0xe99173(0x1ae)+_0x1e207d);}}export function setSecureDirectoryPermissions(_0x1ae65b){const _0x28fe5d=a163_0x2143;try{a163_0x244512['chmodSync'](_0x1ae65b,0x1c0);}catch{console[_0x28fe5d(0x1aa)](_0x28fe5d(0x1ae)+_0x1ae65b);}}export function createSecureDirectory(_0x1f2800){const _0x4a1f8d=a163_0x2143;!a163_0x244512[_0x4a1f8d(0x1ad)](_0x1f2800)&&(a163_0x244512['mkdirSync'](_0x1f2800,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1f2800));}export function validateSecureFilePermissions(_0x1ce5b2){const _0x4b3557=a163_0x2143;try{const _0x5b412b=a163_0x244512[_0x4b3557(0x1a7)](_0x1ce5b2),_0x37c0da=_0x5b412b[_0x4b3557(0x1b5)]&0x1ff,_0x208ff5=(_0x37c0da&0x3f)!==0x0;if(_0x208ff5)return console[_0x4b3557(0x1aa)](_0x4b3557(0x1a8)+_0x1ce5b2+_0x4b3557(0x1ac)+_0x37c0da[_0x4b3557(0x1b9)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x220c83,_0x117d53){const _0x169f50=a163_0x2143,_0x3ca020=a163_0x338637[_0x169f50(0x1ba)](_0x220c83);createSecureDirectory(_0x3ca020),a163_0x244512[_0x169f50(0x1ab)](_0x220c83,_0x117d53,{'mode':0x180}),setSecureFilePermissions(_0x220c83);}
@@ -1 +1 @@
1
- (function(_0x6c2413,_0x2c599a){const _0x4a2ab7=a164_0x311e,_0x50c6df=_0x6c2413();while(!![]){try{const _0x197f2c=-parseInt(_0x4a2ab7(0x76))/0x1+-parseInt(_0x4a2ab7(0x67))/0x2+parseInt(_0x4a2ab7(0x79))/0x3*(parseInt(_0x4a2ab7(0x6d))/0x4)+-parseInt(_0x4a2ab7(0x72))/0x5+parseInt(_0x4a2ab7(0x6a))/0x6+parseInt(_0x4a2ab7(0x6f))/0x7*(parseInt(_0x4a2ab7(0x69))/0x8)+-parseInt(_0x4a2ab7(0x6e))/0x9;if(_0x197f2c===_0x2c599a)break;else _0x50c6df['push'](_0x50c6df['shift']());}catch(_0x303960){_0x50c6df['push'](_0x50c6df['shift']());}}}(a164_0xd307,0x19a43));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0xcd912c=a164_0x311e;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0xcd912c(0x68));}const registry=new Map();export function registerGlobalCacheKey(_0x4d2c40,_0x2072dd){const _0x212e34=a164_0x311e,_0x4ac650=registry[_0x212e34(0x73)](_0x4d2c40);if(_0x4ac650&&_0x4ac650!==_0x2072dd)throw new Error('Global\x20cache\x20key\x20\x22'+_0x4d2c40+_0x212e34(0x6b)+_0x4ac650+_0x212e34(0x71)+_0x2072dd+'\x22');registry[_0x212e34(0x66)](_0x4d2c40,_0x2072dd);}export function getGlobalCachePath(_0x6f0f40){return join(getGlobalCacheDir(),_0x6f0f40);}function ensureGlobalCacheDir(){const _0x113dcc=getGlobalCacheDir();!existsSync(_0x113dcc)&&mkdirSync(_0x113dcc,{'recursive':!![]});}function readCacheJson(_0x1794a4){const _0x10d0f6=a164_0x311e,_0x18a59b=getGlobalCachePath(_0x1794a4);if(!existsSync(_0x18a59b))return undefined;try{const _0x192d48=readFileSync(_0x18a59b,_0x10d0f6(0x75));return JSON[_0x10d0f6(0x78)](_0x192d48);}catch{return undefined;}}function writeCacheJson(_0x5920e0,_0x4d92ea){const _0x423a76=a164_0x311e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5920e0),JSON[_0x423a76(0x6c)](_0x4d92ea,null,0x2),_0x423a76(0x75));}function readCacheText(_0x5c7bcf){const _0x59ce88=getGlobalCachePath(_0x5c7bcf);if(!existsSync(_0x59ce88))return undefined;try{return readFileSync(_0x59ce88,'utf-8');}catch{return undefined;}}function writeCacheText(_0x332963,_0x3f219a){const _0x18016f=a164_0x311e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x332963),_0x3f219a,_0x18016f(0x75));}function a164_0x311e(_0x527839,_0x26b327){_0x527839=_0x527839-0x66;const _0xd30713=a164_0xd307();let _0x311e1c=_0xd30713[_0x527839];return _0x311e1c;}function clearCache(_0x48c7d7){const _0xe3f84d=getGlobalCachePath(_0x48c7d7);if(existsSync(_0xe3f84d))try{unlinkSync(_0xe3f84d);}catch{}}function cacheExists(_0xd9793e){return existsSync(getGlobalCachePath(_0xd9793e));}export function createGlobalCache(_0x482348,_0x5b6f87){return registerGlobalCacheKey(_0x482348,_0x5b6f87),{'read':()=>readCacheJson(_0x482348),'write':_0xc6e8b0=>writeCacheJson(_0x482348,_0xc6e8b0),'clear':()=>clearCache(_0x482348),'exists':()=>cacheExists(_0x482348),'path':()=>getGlobalCachePath(_0x482348)};}export function createGlobalTextCache(_0x14609c,_0x3ae9a8){const _0x41c0ad=a164_0x311e;return registerGlobalCacheKey(_0x14609c,_0x3ae9a8),{'read':()=>readCacheText(_0x14609c)?.[_0x41c0ad(0x74)]()||undefined,'write':_0x166f69=>writeCacheText(_0x14609c,_0x166f69),'clear':()=>clearCache(_0x14609c),'exists':()=>cacheExists(_0x14609c),'path':()=>getGlobalCachePath(_0x14609c)};}export function createProfileCache(_0x3f27a2,_0x173521){const _0x571dd8=_0x4fbd94=>{const _0x47042f=a164_0x311e,_0x180fa9=_0x4fbd94||_0x47042f(0x77);return _0x3f27a2[_0x47042f(0x70)]('{profile}',_0x180fa9);};return{'read':_0x5cc940=>{const _0x125ac1=_0x571dd8(_0x5cc940);return registerGlobalCacheKey(_0x125ac1,_0x173521),readCacheJson(_0x125ac1);},'write':(_0x3dc521,_0x21d7b5)=>{const _0x55cf67=_0x571dd8(_0x3dc521);registerGlobalCacheKey(_0x55cf67,_0x173521),writeCacheJson(_0x55cf67,_0x21d7b5);},'clear':_0x480fac=>{const _0x187cf1=_0x571dd8(_0x480fac);clearCache(_0x187cf1);},'exists':_0x522def=>{const _0x4cdb7c=_0x571dd8(_0x522def);return cacheExists(_0x4cdb7c);},'path':_0x4ca2eb=>{const _0x8d20eb=_0x571dd8(_0x4ca2eb);return getGlobalCachePath(_0x8d20eb);}};}export function createOptionalProfileCache(_0x565056,_0xdc6b24,_0x2c0eea={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2c0eea,_0x3a838b=_0x28f2db=>{return _0x28f2db?''+_0x565056+profileSeparator+_0x28f2db+suffix:''+_0x565056+suffix;};return{'read':_0x52277f=>{const _0x2892e3=_0x3a838b(_0x52277f);return registerGlobalCacheKey(_0x2892e3,_0xdc6b24),readCacheJson(_0x2892e3);},'write':(_0xfabd3d,_0x502710)=>{const _0x487713=_0x3a838b(_0x502710);registerGlobalCacheKey(_0x487713,_0xdc6b24),writeCacheJson(_0x487713,_0xfabd3d);},'clear':_0x457afd=>{const _0x28902f=_0x3a838b(_0x457afd);clearCache(_0x28902f);},'exists':_0x2d23b4=>{const _0xf07de1=_0x3a838b(_0x2d23b4);return cacheExists(_0xf07de1);},'path':_0x223d8d=>{const _0x4ca08e=_0x3a838b(_0x223d8d);return getGlobalCachePath(_0x4ca08e);}};}function a164_0xd307(){const _0x5d186e=['936070CTRSwh','get','trim','utf-8','117942HjcwFC','default','parse','526962iXGFgx','set','211250hJjOPN','tdx','1400yEXmRB','1109592tUgERK','\x22\x20already\x20registered\x20by\x20\x22','stringify','4VWrBjs','31527RCazcS','6349TzmHJn','replace','\x22,\x20cannot\x20register\x20for\x20\x22'];a164_0xd307=function(){return _0x5d186e;};return a164_0xd307();}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1f43f8,_0x318511){const _0x3d84d3=a164_0x2bc8,_0xed3583=_0x1f43f8();while(!![]){try{const _0x2488f4=-parseInt(_0x3d84d3(0x8d))/0x1+-parseInt(_0x3d84d3(0x90))/0x2*(parseInt(_0x3d84d3(0x88))/0x3)+parseInt(_0x3d84d3(0x8a))/0x4*(parseInt(_0x3d84d3(0x8c))/0x5)+parseInt(_0x3d84d3(0x85))/0x6*(parseInt(_0x3d84d3(0x87))/0x7)+-parseInt(_0x3d84d3(0x91))/0x8*(parseInt(_0x3d84d3(0x80))/0x9)+parseInt(_0x3d84d3(0x81))/0xa*(-parseInt(_0x3d84d3(0x8e))/0xb)+parseInt(_0x3d84d3(0x7f))/0xc;if(_0x2488f4===_0x318511)break;else _0xed3583['push'](_0xed3583['shift']());}catch(_0x8ee922){_0xed3583['push'](_0xed3583['shift']());}}}(a164_0x883a,0xea78e));function a164_0x883a(){const _0x3d5476=['set','get','41660940XpbKXc','254547QAqNvw','10HVKGma','trim','default','\x22\x20already\x20registered\x20by\x20\x22','18LyvXKv','{profile}','829542iNUjaj','4183671nNdwIa','Global\x20cache\x20key\x20\x22','4FkyPHx','replace','1575115KAGLuC','134805ZTYPiy','4799927SvDyIa','utf-8','2ypJdAs','344qOWtwN','clear','\x22,\x20cannot\x20register\x20for\x20\x22'];a164_0x883a=function(){return _0x3d5476;};return a164_0x883a();}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x318454,_0x5905d6){const _0x438f89=a164_0x2bc8,_0x3b3970=registry[_0x438f89(0x7e)](_0x318454);if(_0x3b3970&&_0x3b3970!==_0x5905d6)throw new Error(_0x438f89(0x89)+_0x318454+_0x438f89(0x84)+_0x3b3970+_0x438f89(0x7c)+_0x5905d6+'\x22');registry[_0x438f89(0x7d)](_0x318454,_0x5905d6);}export function getGlobalCachePath(_0x3f0710){return join(getGlobalCacheDir(),_0x3f0710);}function ensureGlobalCacheDir(){const _0x614688=getGlobalCacheDir();!existsSync(_0x614688)&&mkdirSync(_0x614688,{'recursive':!![]});}function readCacheJson(_0x56a781){const _0x1a5819=getGlobalCachePath(_0x56a781);if(!existsSync(_0x1a5819))return undefined;try{const _0x4de853=readFileSync(_0x1a5819,'utf-8');return JSON['parse'](_0x4de853);}catch{return undefined;}}function writeCacheJson(_0x3f317e,_0x338f4e){const _0x5e4862=a164_0x2bc8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3f317e),JSON['stringify'](_0x338f4e,null,0x2),_0x5e4862(0x8f));}function readCacheText(_0x30f4ad){const _0x43dd60=a164_0x2bc8,_0x335f61=getGlobalCachePath(_0x30f4ad);if(!existsSync(_0x335f61))return undefined;try{return readFileSync(_0x335f61,_0x43dd60(0x8f));}catch{return undefined;}}function writeCacheText(_0x438e84,_0x31c422){const _0x27488f=a164_0x2bc8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x438e84),_0x31c422,_0x27488f(0x8f));}function clearCache(_0x31a079){const _0x3bb92e=getGlobalCachePath(_0x31a079);if(existsSync(_0x3bb92e))try{unlinkSync(_0x3bb92e);}catch{}}function cacheExists(_0x7dff7b){return existsSync(getGlobalCachePath(_0x7dff7b));}export function createGlobalCache(_0x27b0ed,_0x5db57f){return registerGlobalCacheKey(_0x27b0ed,_0x5db57f),{'read':()=>readCacheJson(_0x27b0ed),'write':_0x594071=>writeCacheJson(_0x27b0ed,_0x594071),'clear':()=>clearCache(_0x27b0ed),'exists':()=>cacheExists(_0x27b0ed),'path':()=>getGlobalCachePath(_0x27b0ed)};}export function createGlobalTextCache(_0x1530e7,_0x6f89c7){const _0x563a72=a164_0x2bc8;return registerGlobalCacheKey(_0x1530e7,_0x6f89c7),{'read':()=>readCacheText(_0x1530e7)?.[_0x563a72(0x82)]()||undefined,'write':_0x1c529b=>writeCacheText(_0x1530e7,_0x1c529b),'clear':()=>clearCache(_0x1530e7),'exists':()=>cacheExists(_0x1530e7),'path':()=>getGlobalCachePath(_0x1530e7)};}function a164_0x2bc8(_0x2449ed,_0x48efbc){_0x2449ed=_0x2449ed-0x7b;const _0x883a18=a164_0x883a();let _0x2bc8d0=_0x883a18[_0x2449ed];return _0x2bc8d0;}export function createProfileCache(_0xb8c946,_0x858eae){const _0x3550da=_0x12c1dc=>{const _0x3bacca=a164_0x2bc8,_0x12543b=_0x12c1dc||_0x3bacca(0x83);return _0xb8c946[_0x3bacca(0x8b)](_0x3bacca(0x86),_0x12543b);};return{'read':_0x123b86=>{const _0x170b82=_0x3550da(_0x123b86);return registerGlobalCacheKey(_0x170b82,_0x858eae),readCacheJson(_0x170b82);},'write':(_0x2337b1,_0x18a174)=>{const _0x402a98=_0x3550da(_0x2337b1);registerGlobalCacheKey(_0x402a98,_0x858eae),writeCacheJson(_0x402a98,_0x18a174);},'clear':_0x2acec8=>{const _0x1d3fe7=_0x3550da(_0x2acec8);clearCache(_0x1d3fe7);},'exists':_0x594a03=>{const _0x302e97=_0x3550da(_0x594a03);return cacheExists(_0x302e97);},'path':_0x2a3076=>{const _0x47e90b=_0x3550da(_0x2a3076);return getGlobalCachePath(_0x47e90b);}};}export function createOptionalProfileCache(_0x4e251d,_0x55c19b,_0xbda0d1={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0xbda0d1,_0x140448=_0x1a149b=>{return _0x1a149b?''+_0x4e251d+profileSeparator+_0x1a149b+suffix:''+_0x4e251d+suffix;};return{'read':_0x481dfd=>{const _0x246be6=_0x140448(_0x481dfd);return registerGlobalCacheKey(_0x246be6,_0x55c19b),readCacheJson(_0x246be6);},'write':(_0x109e0a,_0x568344)=>{const _0x3da14b=_0x140448(_0x568344);registerGlobalCacheKey(_0x3da14b,_0x55c19b),writeCacheJson(_0x3da14b,_0x109e0a);},'clear':_0x8c848c=>{const _0x266893=_0x140448(_0x8c848c);clearCache(_0x266893);},'exists':_0x498344=>{const _0x47c009=_0x140448(_0x498344);return cacheExists(_0x47c009);},'path':_0x313805=>{const _0x49c076=_0x140448(_0x313805);return getGlobalCachePath(_0x49c076);}};}export function clearGlobalRegistry(){const _0xb107ac=a164_0x2bc8;registry[_0xb107ac(0x7b)]();}
@@ -1 +1 @@
1
- function a165_0x192d(_0x434a1e,_0x39516f){_0x434a1e=_0x434a1e-0xf4;const _0x79fde1=a165_0x79fd();let _0x192d49=_0x79fde1[_0x434a1e];return _0x192d49;}function a165_0x79fd(){const _0x579d91=['code','Failed\x20to\x20load\x20JSON:\x20','INVALID_ARGUMENT','File\x20not\x20found:\x20','5798001ekaiWB','9hSPoFR','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','433440cGSmRq','NOT_FOUND','3370035LZpKmO','ENOENT','Permission\x20denied\x20reading\x20file:\x20','4xCRtgA','352491jWJxsr','Invalid\x20JSON\x20in\x20file\x20\x27','parse','4kuforO','7713256akuhJL','508475HrvNTf','\x27:\x20','5546142vahJXk','20GRAEHe'];a165_0x79fd=function(){return _0x579d91;};return a165_0x79fd();}(function(_0x1d2c5e,_0x176e55){const _0x3f5dee=a165_0x192d,_0x1d2882=_0x1d2c5e();while(!![]){try{const _0x4702f3=parseInt(_0x3f5dee(0xf9))/0x1+parseInt(_0x3f5dee(0xf7))/0x2*(-parseInt(_0x3f5dee(0xf4))/0x3)+-parseInt(_0x3f5dee(0x10a))/0x4*(parseInt(_0x3f5dee(0x107))/0x5)+parseInt(_0x3f5dee(0xfb))/0x6+parseInt(_0x3f5dee(0x105))/0x7+parseInt(_0x3f5dee(0xf8))/0x8*(parseInt(_0x3f5dee(0x102))/0x9)+-parseInt(_0x3f5dee(0xfc))/0xa*(parseInt(_0x3f5dee(0x101))/0xb);if(_0x4702f3===_0x176e55)break;else _0x1d2882['push'](_0x1d2882['shift']());}catch(_0x26c875){_0x1d2882['push'](_0x1d2882['shift']());}}}(a165_0x79fd,0x7906e));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x184528,_0x2d818f){const _0x804792=a165_0x192d;try{if(_0x2d818f){const _0x41ffad=await readFile(_0x184528,'utf-8');try{return JSON[_0x804792(0xf6)](_0x41ffad);}catch(_0x393117){throw new SDKError(ErrorCode[_0x804792(0xff)],_0x804792(0xf5)+_0x184528+_0x804792(0xfa)+(_0x393117 instanceof Error?_0x393117[_0x804792(0x103)]:String(_0x393117)));}}else try{return JSON[_0x804792(0xf6)](_0x184528);}catch(_0x1ac426){throw new SDKError(ErrorCode[_0x804792(0xff)],'Invalid\x20JSON\x20string:\x20'+(_0x1ac426 instanceof Error?_0x1ac426['message']:String(_0x1ac426)));}}catch(_0x437842){if(_0x437842 instanceof SDKError)throw _0x437842;if(_0x437842 instanceof Error&&'code'in _0x437842){const _0x1b5b5e=_0x437842;if(_0x1b5b5e[_0x804792(0xfd)]===_0x804792(0x108))throw new SDKError(ErrorCode[_0x804792(0x106)],_0x804792(0x100)+_0x184528);else{if(_0x1b5b5e[_0x804792(0xfd)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x804792(0x109)+_0x184528);}}throw new SDKError(ErrorCode['INTERNAL'],_0x804792(0xfe)+(_0x437842 instanceof Error?_0x437842[_0x804792(0x103)]:String(_0x437842)));}}export async function loadJSONFromOptions(_0x4a8dc0,_0x19dc6e){const _0x36a806=a165_0x192d;if(_0x4a8dc0&&_0x19dc6e)throw new SDKError(ErrorCode[_0x36a806(0xff)],_0x36a806(0x104));if(_0x4a8dc0)return await loadJSON(_0x4a8dc0,![]);if(_0x19dc6e)return await loadJSON(_0x19dc6e,!![]);return undefined;}
1
+ (function(_0x2567c6,_0x19612f){const _0x36c62d=a165_0x5dc3,_0xa79d36=_0x2567c6();while(!![]){try{const _0x4e29ac=parseInt(_0x36c62d(0xb8))/0x1*(-parseInt(_0x36c62d(0xab))/0x2)+-parseInt(_0x36c62d(0xb1))/0x3*(-parseInt(_0x36c62d(0xa9))/0x4)+parseInt(_0x36c62d(0xad))/0x5*(parseInt(_0x36c62d(0xbc))/0x6)+-parseInt(_0x36c62d(0xb5))/0x7*(-parseInt(_0x36c62d(0xb9))/0x8)+-parseInt(_0x36c62d(0xb7))/0x9+-parseInt(_0x36c62d(0xba))/0xa+parseInt(_0x36c62d(0xbe))/0xb;if(_0x4e29ac===_0x19612f)break;else _0xa79d36['push'](_0xa79d36['shift']());}catch(_0x1b305f){_0xa79d36['push'](_0xa79d36['shift']());}}}(a165_0x153a,0x43e45));function a165_0x153a(){const _0x4f63e7=['message','13868OvrnYK','Failed\x20to\x20load\x20JSON:\x20','367054nsNEGn','NOT_FOUND','5IjnjLL','EACCES','utf-8','INVALID_ARGUMENT','336DLlIJh','\x27:\x20','parse','ENOENT','253554uQWlNn','Invalid\x20JSON\x20in\x20file\x20\x27','3178161DFxluv','3TaCcFt','48oaivvc','5059760IRNALn','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','3195702BKprAk','Permission\x20denied\x20reading\x20file:\x20','6044698igdkrv','PERMISSION_DENIED','INTERNAL','code'];a165_0x153a=function(){return _0x4f63e7;};return a165_0x153a();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a165_0x5dc3(_0xfa79f,_0x2fda0d){_0xfa79f=_0xfa79f-0xa7;const _0x153aa9=a165_0x153a();let _0x5dc31d=_0x153aa9[_0xfa79f];return _0x5dc31d;}export async function loadJSON(_0x1fcd69,_0x389906){const _0x44dc18=a165_0x5dc3;try{if(_0x389906){const _0x2dab7c=await readFile(_0x1fcd69,_0x44dc18(0xaf));try{return JSON[_0x44dc18(0xb3)](_0x2dab7c);}catch(_0x21b3c1){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x44dc18(0xb6)+_0x1fcd69+_0x44dc18(0xb2)+(_0x21b3c1 instanceof Error?_0x21b3c1[_0x44dc18(0xa8)]:String(_0x21b3c1)));}}else try{return JSON['parse'](_0x1fcd69);}catch(_0x56329c){throw new SDKError(ErrorCode[_0x44dc18(0xb0)],'Invalid\x20JSON\x20string:\x20'+(_0x56329c instanceof Error?_0x56329c[_0x44dc18(0xa8)]:String(_0x56329c)));}}catch(_0x5c0631){if(_0x5c0631 instanceof SDKError)throw _0x5c0631;if(_0x5c0631 instanceof Error&&_0x44dc18(0xa7)in _0x5c0631){const _0x4a3834=_0x5c0631;if(_0x4a3834[_0x44dc18(0xa7)]===_0x44dc18(0xb4))throw new SDKError(ErrorCode[_0x44dc18(0xac)],'File\x20not\x20found:\x20'+_0x1fcd69);else{if(_0x4a3834[_0x44dc18(0xa7)]===_0x44dc18(0xae))throw new SDKError(ErrorCode[_0x44dc18(0xbf)],_0x44dc18(0xbd)+_0x1fcd69);}}throw new SDKError(ErrorCode[_0x44dc18(0xc0)],_0x44dc18(0xaa)+(_0x5c0631 instanceof Error?_0x5c0631[_0x44dc18(0xa8)]:String(_0x5c0631)));}}export async function loadJSONFromOptions(_0x18e44a,_0x10f9a2){const _0x453b74=a165_0x5dc3;if(_0x18e44a&&_0x10f9a2)throw new SDKError(ErrorCode[_0x453b74(0xb0)],_0x453b74(0xbb));if(_0x18e44a)return await loadJSON(_0x18e44a,![]);if(_0x10f9a2)return await loadJSON(_0x10f9a2,!![]);return undefined;}
@@ -1 +1 @@
1
- const a166_0x30f8d1=a166_0x486a;(function(_0xcab7c,_0x3b03e5){const _0x1bb3c6=a166_0x486a,_0x4cfe8f=_0xcab7c();while(!![]){try{const _0x33589c=parseInt(_0x1bb3c6(0x1fd))/0x1*(-parseInt(_0x1bb3c6(0x1f7))/0x2)+-parseInt(_0x1bb3c6(0x208))/0x3+-parseInt(_0x1bb3c6(0x206))/0x4+parseInt(_0x1bb3c6(0x201))/0x5*(-parseInt(_0x1bb3c6(0x20a))/0x6)+-parseInt(_0x1bb3c6(0x1fb))/0x7*(parseInt(_0x1bb3c6(0x1ff))/0x8)+-parseInt(_0x1bb3c6(0x1fe))/0x9*(-parseInt(_0x1bb3c6(0x1fc))/0xa)+parseInt(_0x1bb3c6(0x205))/0xb*(parseInt(_0x1bb3c6(0x1f6))/0xc);if(_0x33589c===_0x3b03e5)break;else _0x4cfe8f['push'](_0x4cfe8f['shift']());}catch(_0x40bb5b){_0x4cfe8f['push'](_0x4cfe8f['shift']());}}}(a166_0x7de5,0x859a9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a166_0x30f8d1(0x209),registry=new Map();export function registerCacheKey(_0x2fd9c4,_0x340411){const _0x497aea=a166_0x30f8d1,_0x5a622c=registry[_0x497aea(0x202)](_0x2fd9c4);if(_0x5a622c&&_0x5a622c!==_0x340411)throw new Error(_0x497aea(0x1f4)+_0x2fd9c4+_0x497aea(0x203)+_0x5a622c+_0x497aea(0x1f9)+_0x340411+'\x22');registry[_0x497aea(0x204)](_0x2fd9c4,_0x340411);}export function getCacheDir(){const _0x65e26e=a166_0x30f8d1;return join(process[_0x65e26e(0x200)](),LOCAL_CACHE_DIR);}export function getCachePath(_0xfe57db){return join(getCacheDir(),_0xfe57db);}function ensureCacheDir(){const _0x2d8383=getCacheDir();!existsSync(_0x2d8383)&&mkdirSync(_0x2d8383,{'recursive':!![]});}function readCacheJson(_0x5197b0){const _0x5c2bca=a166_0x30f8d1,_0x2240ab=getCachePath(_0x5197b0);if(!existsSync(_0x2240ab))return undefined;try{const _0x1b00c0=readFileSync(_0x2240ab,_0x5c2bca(0x207));return JSON[_0x5c2bca(0x1f5)](_0x1b00c0);}catch{return undefined;}}function a166_0x486a(_0x559c14,_0xcaac7b){_0x559c14=_0x559c14-0x1f4;const _0x7de500=a166_0x7de5();let _0x486ad6=_0x7de500[_0x559c14];return _0x486ad6;}function writeCacheJson(_0x29f502,_0xe2c2a1){const _0x3e46d8=a166_0x30f8d1;ensureCacheDir(),writeFileSync(getCachePath(_0x29f502),JSON[_0x3e46d8(0x1fa)](_0xe2c2a1,null,0x2),_0x3e46d8(0x207));}function readCacheText(_0x4a0537){const _0x1d677d=a166_0x30f8d1,_0x2a27fe=getCachePath(_0x4a0537);if(!existsSync(_0x2a27fe))return undefined;try{return readFileSync(_0x2a27fe,_0x1d677d(0x207));}catch{return undefined;}}function writeCacheText(_0x263987,_0x7b0e21){const _0x68dc78=a166_0x30f8d1;ensureCacheDir(),writeFileSync(getCachePath(_0x263987),_0x7b0e21,_0x68dc78(0x207));}function clearCache(_0x21e7af){const _0x417669=getCachePath(_0x21e7af);if(existsSync(_0x417669))try{unlinkSync(_0x417669);}catch{}}function cacheExists(_0x266d1b){return existsSync(getCachePath(_0x266d1b));}export function createCache(_0x347f71,_0x2ba9dc){return registerCacheKey(_0x347f71,_0x2ba9dc),{'read':()=>readCacheJson(_0x347f71),'write':_0x112dbc=>writeCacheJson(_0x347f71,_0x112dbc),'clear':()=>clearCache(_0x347f71),'exists':()=>cacheExists(_0x347f71),'path':()=>getCachePath(_0x347f71)};}export function createTextCache(_0x5f0bc4,_0x591a1b){return registerCacheKey(_0x5f0bc4,_0x591a1b),{'read':()=>readCacheText(_0x5f0bc4)?.['trim']()||undefined,'write':_0x24a4d3=>writeCacheText(_0x5f0bc4,_0x24a4d3),'clear':()=>clearCache(_0x5f0bc4),'exists':()=>cacheExists(_0x5f0bc4),'path':()=>getCachePath(_0x5f0bc4)};}function a166_0x7de5(){const _0x3cf0ba=['2982763OyVGgC','22970WLvoGR','239658LjNcvU','2043ZOIeix','16EsQcxp','cwd','696035qAxwWf','get','\x22\x20already\x20registered\x20by\x20\x22','set','6063508yiHjzZ','3211656LQUGDx','utf-8','651015aLtMrx','.cache/tdx','6pdokoa','Cache\x20key\x20\x22','parse','60nTrQgE','6BxraQi','clear','\x22,\x20cannot\x20register\x20for\x20\x22','stringify'];a166_0x7de5=function(){return _0x3cf0ba;};return a166_0x7de5();}export function clearRegistry(){const _0x480b1f=a166_0x30f8d1;registry[_0x480b1f(0x1f8)]();}
1
+ const a166_0x505359=a166_0x3fef;(function(_0x230913,_0x356a6b){const _0x14fc4a=a166_0x3fef,_0x333144=_0x230913();while(!![]){try{const _0x7718e9=parseInt(_0x14fc4a(0x1bb))/0x1*(-parseInt(_0x14fc4a(0x1ba))/0x2)+-parseInt(_0x14fc4a(0x1cb))/0x3*(parseInt(_0x14fc4a(0x1be))/0x4)+parseInt(_0x14fc4a(0x1c7))/0x5+-parseInt(_0x14fc4a(0x1c5))/0x6+-parseInt(_0x14fc4a(0x1c2))/0x7+parseInt(_0x14fc4a(0x1ca))/0x8+parseInt(_0x14fc4a(0x1c1))/0x9;if(_0x7718e9===_0x356a6b)break;else _0x333144['push'](_0x333144['shift']());}catch(_0x2e6587){_0x333144['push'](_0x333144['shift']());}}}(a166_0x4613,0x240d8));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a166_0x4613(){const _0xc963ea=['parse','.cache/tdx','6520jEUcNc','utf-8','trim','879660IEbBiU','1515829XGRQOA','stringify','clear','243600kKsrcn','set','1432220sbaldy','get','\x22\x20already\x20registered\x20by\x20\x22','2059240bmoGme','12lJsVJJ','300asHTRz','1535InoxVx'];a166_0x4613=function(){return _0xc963ea;};return a166_0x4613();}const LOCAL_CACHE_DIR=a166_0x505359(0x1bd),registry=new Map();export function registerCacheKey(_0x290b13,_0x1451dd){const _0x37ba1b=a166_0x505359,_0x5dac7f=registry[_0x37ba1b(0x1c8)](_0x290b13);if(_0x5dac7f&&_0x5dac7f!==_0x1451dd)throw new Error('Cache\x20key\x20\x22'+_0x290b13+_0x37ba1b(0x1c9)+_0x5dac7f+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x1451dd+'\x22');registry[_0x37ba1b(0x1c6)](_0x290b13,_0x1451dd);}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}function a166_0x3fef(_0x164542,_0x4c8997){_0x164542=_0x164542-0x1ba;const _0x4613cd=a166_0x4613();let _0x3fefec=_0x4613cd[_0x164542];return _0x3fefec;}export function getCachePath(_0x32dee8){return join(getCacheDir(),_0x32dee8);}function ensureCacheDir(){const _0x252cfb=getCacheDir();!existsSync(_0x252cfb)&&mkdirSync(_0x252cfb,{'recursive':!![]});}function readCacheJson(_0x4b44dd){const _0x520e30=a166_0x505359,_0x1c69dd=getCachePath(_0x4b44dd);if(!existsSync(_0x1c69dd))return undefined;try{const _0x4f44a8=readFileSync(_0x1c69dd,_0x520e30(0x1bf));return JSON[_0x520e30(0x1bc)](_0x4f44a8);}catch{return undefined;}}function writeCacheJson(_0x2a7fc8,_0x423302){const _0x136753=a166_0x505359;ensureCacheDir(),writeFileSync(getCachePath(_0x2a7fc8),JSON[_0x136753(0x1c3)](_0x423302,null,0x2),_0x136753(0x1bf));}function readCacheText(_0x794d03){const _0x5eaabb=getCachePath(_0x794d03);if(!existsSync(_0x5eaabb))return undefined;try{return readFileSync(_0x5eaabb,'utf-8');}catch{return undefined;}}function writeCacheText(_0x1e176d,_0x4d922b){ensureCacheDir(),writeFileSync(getCachePath(_0x1e176d),_0x4d922b,'utf-8');}function clearCache(_0x2cf860){const _0x12a3ae=getCachePath(_0x2cf860);if(existsSync(_0x12a3ae))try{unlinkSync(_0x12a3ae);}catch{}}function cacheExists(_0x2da761){return existsSync(getCachePath(_0x2da761));}export function createCache(_0x188e82,_0x406474){return registerCacheKey(_0x188e82,_0x406474),{'read':()=>readCacheJson(_0x188e82),'write':_0x2f9a95=>writeCacheJson(_0x188e82,_0x2f9a95),'clear':()=>clearCache(_0x188e82),'exists':()=>cacheExists(_0x188e82),'path':()=>getCachePath(_0x188e82)};}export function createTextCache(_0x232284,_0x2f0162){const _0x25522a=a166_0x505359;return registerCacheKey(_0x232284,_0x2f0162),{'read':()=>readCacheText(_0x232284)?.[_0x25522a(0x1c0)]()||undefined,'write':_0x58e57f=>writeCacheText(_0x232284,_0x58e57f),'clear':()=>clearCache(_0x232284),'exists':()=>cacheExists(_0x232284),'path':()=>getCachePath(_0x232284)};}export function clearRegistry(){const _0x345b14=a166_0x505359;registry[_0x345b14(0x1c4)]();}
@@ -1 +1 @@
1
- function a167_0x456c(){const _0x3c4cfb=['14284170hiEpdg','383070zZcRit','TRACE','yellow','1232818NKksNE','gray','DEBUG','cyan','format','ERROR',']\x20[','1722632qdPwOF','default','green','level','colors','716604qxridv','dim','1438785LVgXQR','chalk','message','80zMRgNG','red','WARN','colorLevel','3fkleVl','6973421XTyJpO','Chalk','component','56alwtFW'];a167_0x456c=function(){return _0x3c4cfb;};return a167_0x456c();}const a167_0x5409b1=a167_0x152e;function a167_0x152e(_0x2bc540,_0x411b7d){_0x2bc540=_0x2bc540-0x65;const _0x456c08=a167_0x456c();let _0x152ea0=_0x456c08[_0x2bc540];return _0x152ea0;}(function(_0x582e90,_0x556376){const _0x96772d=a167_0x152e,_0x205a2d=_0x582e90();while(!![]){try{const _0x9db02b=parseInt(_0x96772d(0x70))/0x1+parseInt(_0x96772d(0x69))/0x2*(-parseInt(_0x96772d(0x7e))/0x3)+parseInt(_0x96772d(0x7a))/0x4*(-parseInt(_0x96772d(0x66))/0x5)+parseInt(_0x96772d(0x75))/0x6+parseInt(_0x96772d(0x7f))/0x7+parseInt(_0x96772d(0x82))/0x8*(-parseInt(_0x96772d(0x77))/0x9)+parseInt(_0x96772d(0x65))/0xa;if(_0x9db02b===_0x556376)break;else _0x205a2d['push'](_0x205a2d['shift']());}catch(_0x440b45){_0x205a2d['push'](_0x205a2d['shift']());}}}(a167_0x456c,0xf3e1e));import a167_0x1b0acc from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a167_0x1b0acc,ChalkClass=chalkModule[a167_0x5409b1(0x80)]||chalkModule[a167_0x5409b1(0x71)]?.[a167_0x5409b1(0x80)];export class DefaultLogFormatter{[a167_0x5409b1(0x74)];[a167_0x5409b1(0x78)];constructor(_0x2912a9={}){const _0x5f01f3=a167_0x5409b1;this[_0x5f01f3(0x74)]=_0x2912a9[_0x5f01f3(0x74)]??![],this[_0x5f01f3(0x78)]=_0x2912a9[_0x5f01f3(0x74)]&&ChalkClass?new ChalkClass({'level':0x3}):a167_0x1b0acc;}[a167_0x5409b1(0x6d)](_0x54470e){const _0x419ff4=a167_0x5409b1,_0x80dc0e=formatTimestamp(_0x54470e['timestamp']),_0x1cd578=logLevelToString(_0x54470e['level']);if(!this[_0x419ff4(0x74)])return _0x80dc0e+'\x20['+_0x1cd578+_0x419ff4(0x6f)+_0x54470e[_0x419ff4(0x81)]+']\x20'+_0x54470e['message'];const _0x20d729=this['chalk'][_0x419ff4(0x76)](_0x80dc0e),_0x1fc330=this['colorLevel'](_0x1cd578,_0x54470e[_0x419ff4(0x73)]),_0x3652d8=this[_0x419ff4(0x78)]['blue']('['+_0x54470e['component']+']');return _0x20d729+'\x20'+_0x1fc330+'\x20'+_0x3652d8+'\x20'+_0x54470e[_0x419ff4(0x79)];}[a167_0x5409b1(0x7d)](_0x2f16f2,_0x29ec0e){const _0x431dc1=a167_0x5409b1;switch(_0x29ec0e){case LogLevel[_0x431dc1(0x67)]:return this[_0x431dc1(0x78)][_0x431dc1(0x6a)]('['+_0x2f16f2+']');case LogLevel[_0x431dc1(0x6b)]:return this[_0x431dc1(0x78)][_0x431dc1(0x72)]('['+_0x2f16f2+']');case LogLevel['INFO']:return this[_0x431dc1(0x78)][_0x431dc1(0x6c)]('['+_0x2f16f2+']');case LogLevel[_0x431dc1(0x7c)]:return this[_0x431dc1(0x78)][_0x431dc1(0x68)]('['+_0x2f16f2+']');case LogLevel[_0x431dc1(0x6e)]:return this[_0x431dc1(0x78)][_0x431dc1(0x7b)]('['+_0x2f16f2+']');default:return'['+_0x2f16f2+']';}}}
1
+ const a167_0x233387=a167_0x48aa;function a167_0x2c7b(){const _0x342efc=['chalk','312768xQzCpN','red','678342rXKZcm','colorLevel','gray','default','2oJvWPT','dim','cyan','939764nzznND','308aVJoco','timestamp','933408IkNLvc','24088QWddFj','353999RHNmoO','format','component','DEBUG','level','yellow','ERROR','message','2692500uoDJSC','colors','5FnWIVk','green'];a167_0x2c7b=function(){return _0x342efc;};return a167_0x2c7b();}(function(_0x196e22,_0x322c03){const _0x4a1b47=a167_0x48aa,_0x187fa2=_0x196e22();while(!![]){try{const _0x35fd79=parseInt(_0x4a1b47(0x15c))/0x1*(-parseInt(_0x4a1b47(0x154))/0x2)+parseInt(_0x4a1b47(0x15a))/0x3+parseInt(_0x4a1b47(0x157))/0x4*(-parseInt(_0x4a1b47(0x166))/0x5)+parseInt(_0x4a1b47(0x150))/0x6+parseInt(_0x4a1b47(0x158))/0x7*(parseInt(_0x4a1b47(0x15b))/0x8)+-parseInt(_0x4a1b47(0x169))/0x9+parseInt(_0x4a1b47(0x164))/0xa;if(_0x35fd79===_0x322c03)break;else _0x187fa2['push'](_0x187fa2['shift']());}catch(_0x2d2374){_0x187fa2['push'](_0x187fa2['shift']());}}}(a167_0x2c7b,0x315fb));function a167_0x48aa(_0x4ce127,_0x3448a7){_0x4ce127=_0x4ce127-0x14f;const _0x2c7ba3=a167_0x2c7b();let _0x48aa03=_0x2c7ba3[_0x4ce127];return _0x48aa03;}import a167_0x39279f from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a167_0x39279f,ChalkClass=chalkModule['Chalk']||chalkModule[a167_0x233387(0x153)]?.['Chalk'];export class DefaultLogFormatter{[a167_0x233387(0x165)];[a167_0x233387(0x168)];constructor(_0x280485={}){const _0x1dcfb5=a167_0x233387;this[_0x1dcfb5(0x165)]=_0x280485['colors']??![],this[_0x1dcfb5(0x168)]=_0x280485[_0x1dcfb5(0x165)]&&ChalkClass?new ChalkClass({'level':0x3}):a167_0x39279f;}[a167_0x233387(0x15d)](_0x4df94e){const _0x2b9d67=a167_0x233387,_0x3ade3c=formatTimestamp(_0x4df94e[_0x2b9d67(0x159)]),_0xba6f3d=logLevelToString(_0x4df94e[_0x2b9d67(0x160)]);if(!this[_0x2b9d67(0x165)])return _0x3ade3c+'\x20['+_0xba6f3d+']\x20['+_0x4df94e[_0x2b9d67(0x15e)]+']\x20'+_0x4df94e[_0x2b9d67(0x163)];const _0x1eced=this[_0x2b9d67(0x168)][_0x2b9d67(0x155)](_0x3ade3c),_0x2390bb=this[_0x2b9d67(0x151)](_0xba6f3d,_0x4df94e[_0x2b9d67(0x160)]),_0x78f814=this['chalk']['blue']('['+_0x4df94e['component']+']');return _0x1eced+'\x20'+_0x2390bb+'\x20'+_0x78f814+'\x20'+_0x4df94e[_0x2b9d67(0x163)];}[a167_0x233387(0x151)](_0x5a1731,_0x94dc45){const _0x4d0e7e=a167_0x233387;switch(_0x94dc45){case LogLevel['TRACE']:return this[_0x4d0e7e(0x168)][_0x4d0e7e(0x152)]('['+_0x5a1731+']');case LogLevel[_0x4d0e7e(0x15f)]:return this['chalk'][_0x4d0e7e(0x167)]('['+_0x5a1731+']');case LogLevel['INFO']:return this[_0x4d0e7e(0x168)][_0x4d0e7e(0x156)]('['+_0x5a1731+']');case LogLevel['WARN']:return this[_0x4d0e7e(0x168)][_0x4d0e7e(0x161)]('['+_0x5a1731+']');case LogLevel[_0x4d0e7e(0x162)]:return this[_0x4d0e7e(0x168)][_0x4d0e7e(0x14f)]('['+_0x5a1731+']');default:return'['+_0x5a1731+']';}}}
@@ -1 +1 @@
1
- (function(_0x2e3e19,_0x256d68){var _0x5d2929=a168_0x47c5,_0xb57558=_0x2e3e19();while(!![]){try{var _0x21728a=parseInt(_0x5d2929(0x11a))/0x1*(parseInt(_0x5d2929(0x11f))/0x2)+parseInt(_0x5d2929(0x11c))/0x3+parseInt(_0x5d2929(0x11d))/0x4*(parseInt(_0x5d2929(0x11b))/0x5)+parseInt(_0x5d2929(0x119))/0x6+-parseInt(_0x5d2929(0x11e))/0x7+parseInt(_0x5d2929(0x121))/0x8+parseInt(_0x5d2929(0x120))/0x9*(-parseInt(_0x5d2929(0x122))/0xa);if(_0x21728a===_0x256d68)break;else _0xb57558['push'](_0xb57558['shift']());}catch(_0x4b4154){_0xb57558['push'](_0xb57558['shift']());}}}(a168_0x2d40,0x2da06));function a168_0x47c5(_0x37a856,_0x41e9cf){_0x37a856=_0x37a856-0x119;var _0x2d40ef=a168_0x2d40();var _0x47c560=_0x2d40ef[_0x37a856];return _0x47c560;}export{DefaultLogFormatter}from'./default-formatter.js';function a168_0x2d40(){var _0x368e16=['214938TZzFVS','2885104EPJmYU','260HyHmFv','379542TnpzAn','1vQfsVm','19815BHjAFg','78501vYzchU','344EBOeHf','1664012EEkgKR','509308cWJdAf'];a168_0x2d40=function(){return _0x368e16;};return a168_0x2d40();}
1
+ (function(_0x5dcd5f,_0x266b35){var _0x400a7e=a168_0x3f7e,_0x111c80=_0x5dcd5f();while(!![]){try{var _0x2964e3=parseInt(_0x400a7e(0x180))/0x1*(parseInt(_0x400a7e(0x17d))/0x2)+-parseInt(_0x400a7e(0x181))/0x3*(-parseInt(_0x400a7e(0x185))/0x4)+-parseInt(_0x400a7e(0x183))/0x5+-parseInt(_0x400a7e(0x182))/0x6*(parseInt(_0x400a7e(0x187))/0x7)+parseInt(_0x400a7e(0x184))/0x8*(parseInt(_0x400a7e(0x188))/0x9)+-parseInt(_0x400a7e(0x17f))/0xa+-parseInt(_0x400a7e(0x186))/0xb*(parseInt(_0x400a7e(0x17e))/0xc);if(_0x2964e3===_0x266b35)break;else _0x111c80['push'](_0x111c80['shift']());}catch(_0x44ea53){_0x111c80['push'](_0x111c80['shift']());}}}(a168_0x1ddc,0xdcbfb));export{DefaultLogFormatter}from'./default-formatter.js';function a168_0x3f7e(_0x30e578,_0x42ae06){_0x30e578=_0x30e578-0x17d;var _0x1ddc57=a168_0x1ddc();var _0x3f7e5d=_0x1ddc57[_0x30e578];return _0x3f7e5d;}function a168_0x1ddc(){var _0x47f418=['9UwoTtX','294342dqoPQx','864fduGMN','2169330OexZFB','12LaNAlL','6jXkrRq','6LOtfQI','5269320QqOqlW','7176632MwZALD','348484PwwBKF','38511RmkyjC','2872219YxkgWc'];a168_0x1ddc=function(){return _0x47f418;};return a168_0x1ddc();}
@@ -1 +1 @@
1
- const a169_0x39fc03=a169_0x36c3;(function(_0x2da0f8,_0x4ce24b){const _0x4d1db2=a169_0x36c3,_0xe1cbdc=_0x2da0f8();while(!![]){try{const _0x53b922=-parseInt(_0x4d1db2(0x103))/0x1*(-parseInt(_0x4d1db2(0x10f))/0x2)+-parseInt(_0x4d1db2(0x100))/0x3*(parseInt(_0x4d1db2(0x110))/0x4)+-parseInt(_0x4d1db2(0x10e))/0x5*(-parseInt(_0x4d1db2(0x106))/0x6)+-parseInt(_0x4d1db2(0x101))/0x7+-parseInt(_0x4d1db2(0x10a))/0x8*(parseInt(_0x4d1db2(0xfe))/0x9)+parseInt(_0x4d1db2(0x104))/0xa+parseInt(_0x4d1db2(0x109))/0xb*(parseInt(_0x4d1db2(0xfd))/0xc);if(_0x53b922===_0x4ce24b)break;else _0xe1cbdc['push'](_0xe1cbdc['shift']());}catch(_0x51c8f1){_0xe1cbdc['push'](_0xe1cbdc['shift']());}}}(a169_0x4b7b,0xa8c40));import{LogLevel as a169_0x5cc01e}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a169_0x4b7b(){const _0x5b26b3=['1962uwJWxt','useStderr','1278ZvWPaI','5702788AzUfpW','WARN','1WiVWCU','7874820ppvkqy','formatter','5496scZXMB','level','log','75955OJLcXL','32152Wmecqn','error','minLevel','format','1215PpJsIt','2269606RRitVf','3932HkylyF','1140fWAuaS'];a169_0x4b7b=function(){return _0x5b26b3;};return a169_0x4b7b();}function a169_0x36c3(_0x4aeb2a,_0x3f67a7){_0x4aeb2a=_0x4aeb2a-0xfd;const _0x4b7b24=a169_0x4b7b();let _0x36c318=_0x4b7b24[_0x4aeb2a];return _0x36c318;}export class ConsoleHandler{[a169_0x39fc03(0x10c)];[a169_0x39fc03(0xff)];[a169_0x39fc03(0x105)];constructor(_0x451933={}){const _0x4f500f=a169_0x39fc03;this[_0x4f500f(0x10c)]=_0x451933[_0x4f500f(0x10c)]??a169_0x5cc01e['WARN'],this[_0x4f500f(0xff)]=_0x451933[_0x4f500f(0xff)]??!![],this[_0x4f500f(0x105)]=new DefaultLogFormatter({'colors':_0x451933['colors']??!![]});}['handle'](_0x3878fd){const _0x4e9164=a169_0x39fc03;if(_0x3878fd[_0x4e9164(0x107)]<this[_0x4e9164(0x10c)])return;const _0x13f4ac=this[_0x4e9164(0x105)][_0x4e9164(0x10d)](_0x3878fd);this[_0x4e9164(0xff)]&&_0x3878fd[_0x4e9164(0x107)]>=a169_0x5cc01e[_0x4e9164(0x102)]?console[_0x4e9164(0x10b)](_0x13f4ac):console[_0x4e9164(0x108)](_0x13f4ac);}}
1
+ const a169_0x601e8f=a169_0x23b9;(function(_0x159f1a,_0x4757c3){const _0xa7ac09=a169_0x23b9,_0x1e531d=_0x159f1a();while(!![]){try{const _0xf964d4=-parseInt(_0xa7ac09(0x1f7))/0x1*(-parseInt(_0xa7ac09(0x1f3))/0x2)+-parseInt(_0xa7ac09(0x1eb))/0x3*(-parseInt(_0xa7ac09(0x1ee))/0x4)+-parseInt(_0xa7ac09(0x1f6))/0x5+parseInt(_0xa7ac09(0x1f4))/0x6*(-parseInt(_0xa7ac09(0x1ea))/0x7)+-parseInt(_0xa7ac09(0x1ef))/0x8+parseInt(_0xa7ac09(0x1f9))/0x9+parseInt(_0xa7ac09(0x1f5))/0xa;if(_0xf964d4===_0x4757c3)break;else _0x1e531d['push'](_0x1e531d['shift']());}catch(_0x7edef2){_0x1e531d['push'](_0x1e531d['shift']());}}}(a169_0x24a3,0x9bd83));import{LogLevel as a169_0x468ea4}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a169_0x24a3(){const _0x3cd15a=['handle','log','level','36tjJLUE','786rTggMR','2659580iXbfFy','341525DmDaEK','15419HVJFQp','useStderr','5185251xCJABL','format','WARN','23667fqFfrY','3JGoyBg','minLevel','formatter','4347124ubKRPy','8454920XvQNdQ'];a169_0x24a3=function(){return _0x3cd15a;};return a169_0x24a3();}function a169_0x23b9(_0xc6c34d,_0x210240){_0xc6c34d=_0xc6c34d-0x1ea;const _0x24a360=a169_0x24a3();let _0x23b9ad=_0x24a360[_0xc6c34d];return _0x23b9ad;}export class ConsoleHandler{[a169_0x601e8f(0x1ec)];['useStderr'];[a169_0x601e8f(0x1ed)];constructor(_0x161e02={}){const _0x182723=a169_0x601e8f;this[_0x182723(0x1ec)]=_0x161e02[_0x182723(0x1ec)]??a169_0x468ea4[_0x182723(0x1fb)],this['useStderr']=_0x161e02[_0x182723(0x1f8)]??!![],this[_0x182723(0x1ed)]=new DefaultLogFormatter({'colors':_0x161e02['colors']??!![]});}[a169_0x601e8f(0x1f0)](_0x2a63c7){const _0x5565d0=a169_0x601e8f;if(_0x2a63c7['level']<this[_0x5565d0(0x1ec)])return;const _0x365695=this[_0x5565d0(0x1ed)][_0x5565d0(0x1fa)](_0x2a63c7);this['useStderr']&&_0x2a63c7[_0x5565d0(0x1f2)]>=a169_0x468ea4['WARN']?console['error'](_0x365695):console[_0x5565d0(0x1f1)](_0x365695);}}
@@ -1 +1 @@
1
- const a170_0x110365=a170_0x347b;(function(_0x4cdbd6,_0x4af50f){const _0x37a033=a170_0x347b,_0x307a2c=_0x4cdbd6();while(!![]){try{const _0x1f8662=parseInt(_0x37a033(0x162))/0x1*(parseInt(_0x37a033(0x14b))/0x2)+-parseInt(_0x37a033(0x152))/0x3*(parseInt(_0x37a033(0x156))/0x4)+-parseInt(_0x37a033(0x16c))/0x5+-parseInt(_0x37a033(0x168))/0x6+-parseInt(_0x37a033(0x148))/0x7*(parseInt(_0x37a033(0x14a))/0x8)+parseInt(_0x37a033(0x159))/0x9+parseInt(_0x37a033(0x163))/0xa;if(_0x1f8662===_0x4af50f)break;else _0x307a2c['push'](_0x307a2c['shift']());}catch(_0x2e83d1){_0x307a2c['push'](_0x307a2c['shift']());}}}(a170_0x2e98,0x192ef));import{createWriteStream,createReadStream}from'fs';function a170_0x2e98(){const _0x3f4bef=['getLogPath','logBaseName','469242LxsAdH','handle','Warning:\x20Error\x20writing\x20to\x20','Warning:\x20Failed\x20to\x20compress\x20','436570ubDkKs','185437evaqHW','logStream','40MQnvIr','44lgAuvC','mtime','logs','.log','split','toISOString','rotateOldLogs','321kChmsa','logDir','tdx.log','test','340HBWIaL','includes','replace','217854tZHuZA','\x5c$&','logPath','logFileName','.gz','close','end','init','error','5834BYdrhD','2576680QbbFWx','rotate','format'];a170_0x2e98=function(){return _0x3f4bef;};return a170_0x2e98();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a170_0x347b(_0x296be5,_0x524451){_0x296be5=_0x296be5-0x148;const _0x2e989b=a170_0x2e98();let _0x347b4e=_0x2e989b[_0x296be5];return _0x347b4e;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a170_0x110365(0x153)];['logFileName'];[a170_0x110365(0x167)];['logStream']=null;[a170_0x110365(0x164)];constructor(_0x3be997={}){const _0x24536d=a170_0x110365;this['logPath']=_0x3be997['filePath']??join(getGlobalCacheDir(),_0x24536d(0x14d),_0x24536d(0x154)),this['logDir']=dirname(this[_0x24536d(0x15b)]),this[_0x24536d(0x15c)]=basename(this[_0x24536d(0x15b)]),this[_0x24536d(0x167)]=this[_0x24536d(0x15c)][_0x24536d(0x158)](/\.log$/,''),this[_0x24536d(0x164)]=_0x3be997[_0x24536d(0x164)]??!![];}async[a170_0x110365(0x160)](){const _0x2900d5=a170_0x110365;try{await mkdir(this[_0x2900d5(0x153)],{'recursive':!![]}),this['rotate']&&await this[_0x2900d5(0x151)](),this[_0x2900d5(0x149)]=createWriteStream(this[_0x2900d5(0x15b)],{'flags':'a'}),this[_0x2900d5(0x149)]['on'](_0x2900d5(0x161),_0x2b3917=>{const _0x3c9497=_0x2900d5;console['error'](_0x3c9497(0x16a)+this[_0x3c9497(0x15c)]+':',_0x2b3917['message']);});}catch(_0x54403e){console[_0x2900d5(0x161)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x54403e);}}[a170_0x110365(0x169)](_0x3c226a){const _0x5d4b40=a170_0x110365;if(!this[_0x5d4b40(0x149)])return;const _0x33c71f=Logger[_0x5d4b40(0x165)](_0x3c226a);this[_0x5d4b40(0x149)]['write'](_0x33c71f+'\x0a');}async[a170_0x110365(0x15e)](){return new Promise(_0x4dbef7=>{const _0x57584a=a170_0x347b;this[_0x57584a(0x149)]?this[_0x57584a(0x149)][_0x57584a(0x15f)](()=>{const _0x52466e=_0x57584a;this[_0x52466e(0x149)]=null,_0x4dbef7();}):_0x4dbef7();});}[a170_0x110365(0x166)](){const _0x9830df=a170_0x110365;return this[_0x9830df(0x15b)];}async[a170_0x110365(0x151)](){const _0x117e8b=a170_0x110365;try{const _0x15093e=await readdir(this[_0x117e8b(0x153)]),_0x5db80d=new Date()[_0x117e8b(0x150)]()[_0x117e8b(0x14f)]('T')[0x0];if(_0x15093e[_0x117e8b(0x157)](this['logFileName'])){const _0x3caaa5=join(this[_0x117e8b(0x153)],this[_0x117e8b(0x15c)]),_0x8447da=await stat(_0x3caaa5),_0x2ed1e8=new Date(_0x8447da[_0x117e8b(0x14c)])['toISOString']()[_0x117e8b(0x14f)]('T')[0x0];if(_0x2ed1e8<_0x5db80d){const _0x1336fe=join(this[_0x117e8b(0x153)],this[_0x117e8b(0x167)]+'-'+_0x2ed1e8+_0x117e8b(0x14e));await rename(_0x3caaa5,_0x1336fe);}}const _0x4ee284=await readdir(this['logDir']),_0x43e94b=this[_0x117e8b(0x167)][_0x117e8b(0x158)](/[.*+?^${}()|[\]\\]/g,_0x117e8b(0x15a)),_0x1d5153=new RegExp('^'+_0x43e94b+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x57f819=_0x4ee284['filter'](_0x2adf09=>_0x1d5153[_0x117e8b(0x155)](_0x2adf09));for(const _0x1b4f0f of _0x57f819){const _0x4ff61c=join(this[_0x117e8b(0x153)],_0x1b4f0f),_0x34fc4b=join(this[_0x117e8b(0x153)],_0x1b4f0f+_0x117e8b(0x15d));try{await pipeline(createReadStream(_0x4ff61c),createGzip(),createWriteStream(_0x34fc4b)),await unlink(_0x4ff61c);}catch(_0x15c58b){console['error'](_0x117e8b(0x16b)+_0x1b4f0f+':',_0x15c58b);}}}catch{}}}
1
+ const a170_0x44dfbd=a170_0xd017;(function(_0x34420b,_0x185805){const _0x316c3c=a170_0xd017,_0x5007e0=_0x34420b();while(!![]){try{const _0x38a0fa=-parseInt(_0x316c3c(0x1fb))/0x1+parseInt(_0x316c3c(0x1fa))/0x2+-parseInt(_0x316c3c(0x206))/0x3*(-parseInt(_0x316c3c(0x207))/0x4)+-parseInt(_0x316c3c(0x1eb))/0x5*(-parseInt(_0x316c3c(0x1e5))/0x6)+parseInt(_0x316c3c(0x208))/0x7*(-parseInt(_0x316c3c(0x1ec))/0x8)+-parseInt(_0x316c3c(0x1e6))/0x9+parseInt(_0x316c3c(0x1f7))/0xa;if(_0x38a0fa===_0x185805)break;else _0x5007e0['push'](_0x5007e0['shift']());}catch(_0x56f36b){_0x5007e0['push'](_0x5007e0['shift']());}}}(a170_0x548f,0xa8a3d));import{createWriteStream,createReadStream}from'fs';function a170_0x548f(){const _0x34eac5=['toISOString','handle','message','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','split','filter','logStream','97773QuVhMU','12XvPOyP','1085LBWuBs','rotate','Warning:\x20Error\x20writing\x20to\x20','6Cycclx','5047335Ozzsuv','logFileName','logs','init','logBaseName','1569375mQuHCz','31512yjoEgt','close','.gz','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logDir','.log','rotateOldLogs','\x5c$&','logPath','format','15159970cslfZK','getLogPath','write','2195634hGzGWI','1163353ALkfMB','replace','mtime','end'];a170_0x548f=function(){return _0x34eac5;};return a170_0x548f();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a170_0xd017(_0x334158,_0x54f654){_0x334158=_0x334158-0x1e5;const _0x548f34=a170_0x548f();let _0xd0174a=_0x548f34[_0x334158];return _0xd0174a;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a170_0x44dfbd(0x1f5)];['logDir'];[a170_0x44dfbd(0x1e7)];['logBaseName'];['logStream']=null;[a170_0x44dfbd(0x209)];constructor(_0x2f0c17={}){const _0x4b94e2=a170_0x44dfbd;this[_0x4b94e2(0x1f5)]=_0x2f0c17['filePath']??join(getGlobalCacheDir(),_0x4b94e2(0x1e8),'tdx.log'),this[_0x4b94e2(0x1f1)]=dirname(this[_0x4b94e2(0x1f5)]),this[_0x4b94e2(0x1e7)]=basename(this[_0x4b94e2(0x1f5)]),this[_0x4b94e2(0x1ea)]=this[_0x4b94e2(0x1e7)][_0x4b94e2(0x1fc)](/\.log$/,''),this[_0x4b94e2(0x209)]=_0x2f0c17[_0x4b94e2(0x209)]??!![];}async[a170_0x44dfbd(0x1e9)](){const _0x60c8df=a170_0x44dfbd;try{await mkdir(this[_0x60c8df(0x1f1)],{'recursive':!![]}),this[_0x60c8df(0x209)]&&await this[_0x60c8df(0x1f3)](),this[_0x60c8df(0x205)]=createWriteStream(this[_0x60c8df(0x1f5)],{'flags':'a'}),this[_0x60c8df(0x205)]['on'](_0x60c8df(0x1ef),_0x29ffe1=>{const _0x5f4010=_0x60c8df;console[_0x5f4010(0x1ef)](_0x5f4010(0x20a)+this[_0x5f4010(0x1e7)]+':',_0x29ffe1[_0x5f4010(0x201)]);});}catch(_0x19c504){console[_0x60c8df(0x1ef)](_0x60c8df(0x202),_0x19c504);}}[a170_0x44dfbd(0x200)](_0x59fa11){const _0x576d31=a170_0x44dfbd;if(!this[_0x576d31(0x205)])return;const _0x25a997=Logger[_0x576d31(0x1f6)](_0x59fa11);this['logStream'][_0x576d31(0x1f9)](_0x25a997+'\x0a');}async[a170_0x44dfbd(0x1ed)](){return new Promise(_0x4ca3f5=>{const _0x369b4e=a170_0xd017;this['logStream']?this[_0x369b4e(0x205)][_0x369b4e(0x1fe)](()=>{const _0x552bc3=_0x369b4e;this[_0x552bc3(0x205)]=null,_0x4ca3f5();}):_0x4ca3f5();});}[a170_0x44dfbd(0x1f8)](){const _0x16c69b=a170_0x44dfbd;return this[_0x16c69b(0x1f5)];}async[a170_0x44dfbd(0x1f3)](){const _0x2b5475=a170_0x44dfbd;try{const _0x29d87=await readdir(this[_0x2b5475(0x1f1)]),_0x1cd350=new Date()['toISOString']()[_0x2b5475(0x203)]('T')[0x0];if(_0x29d87['includes'](this[_0x2b5475(0x1e7)])){const _0x23b894=join(this['logDir'],this[_0x2b5475(0x1e7)]),_0x2dc3c5=await stat(_0x23b894),_0x54848d=new Date(_0x2dc3c5[_0x2b5475(0x1fd)])[_0x2b5475(0x1ff)]()[_0x2b5475(0x203)]('T')[0x0];if(_0x54848d<_0x1cd350){const _0x4351c4=join(this[_0x2b5475(0x1f1)],this['logBaseName']+'-'+_0x54848d+_0x2b5475(0x1f2));await rename(_0x23b894,_0x4351c4);}}const _0x7ee1b7=await readdir(this[_0x2b5475(0x1f1)]),_0x599b50=this[_0x2b5475(0x1ea)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x2b5475(0x1f4)),_0x481e10=new RegExp('^'+_0x599b50+_0x2b5475(0x1f0)),_0x16399c=_0x7ee1b7[_0x2b5475(0x204)](_0x22da53=>_0x481e10['test'](_0x22da53));for(const _0x3b9923 of _0x16399c){const _0x2ed2f3=join(this[_0x2b5475(0x1f1)],_0x3b9923),_0x4a517e=join(this[_0x2b5475(0x1f1)],_0x3b9923+_0x2b5475(0x1ee));try{await pipeline(createReadStream(_0x2ed2f3),createGzip(),createWriteStream(_0x4a517e)),await unlink(_0x2ed2f3);}catch(_0x1ff0a){console[_0x2b5475(0x1ef)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x3b9923+':',_0x1ff0a);}}}catch{}}}
@@ -1 +1 @@
1
- function a171_0x243d(){var _0x185be1=['204280QEvzzm','99QZVTBQ','30674gqDAIm','11574828cnaSOy','72852vJQKRN','25lZlDNy','161bAwvvA','52EBzlTq','1480ETfgfH','5030316QwckeH','709990QQlUrE','9309RjJLKJ'];a171_0x243d=function(){return _0x185be1;};return a171_0x243d();}(function(_0x248279,_0x3fb17b){var _0x539e88=a171_0x2264,_0xf9607e=_0x248279();while(!![]){try{var _0x2c64c0=-parseInt(_0x539e88(0x13b))/0x1*(parseInt(_0x539e88(0x134))/0x2)+-parseInt(_0x539e88(0x138))/0x3*(parseInt(_0x539e88(0x135))/0x4)+parseInt(_0x539e88(0x13e))/0x5*(-parseInt(_0x539e88(0x13d))/0x6)+parseInt(_0x539e88(0x133))/0x7*(parseInt(_0x539e88(0x139))/0x8)+parseInt(_0x539e88(0x136))/0x9+-parseInt(_0x539e88(0x137))/0xa*(-parseInt(_0x539e88(0x13a))/0xb)+parseInt(_0x539e88(0x13c))/0xc;if(_0x2c64c0===_0x3fb17b)break;else _0xf9607e['push'](_0xf9607e['shift']());}catch(_0x3714ea){_0xf9607e['push'](_0xf9607e['shift']());}}}(a171_0x243d,0xb5815));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a171_0x2264(_0x4da3b9,_0x222cc3){_0x4da3b9=_0x4da3b9-0x133;var _0x243d5f=a171_0x243d();var _0x226482=_0x243d5f[_0x4da3b9];return _0x226482;}export{NullHandler}from'./null-handler.js';
1
+ (function(_0x5a382c,_0x110c98){var _0x4d0e4f=a171_0x2601,_0x155a73=_0x5a382c();while(!![]){try{var _0x4aa151=parseInt(_0x4d0e4f(0x170))/0x1*(parseInt(_0x4d0e4f(0x172))/0x2)+parseInt(_0x4d0e4f(0x179))/0x3+-parseInt(_0x4d0e4f(0x178))/0x4+-parseInt(_0x4d0e4f(0x177))/0x5+-parseInt(_0x4d0e4f(0x174))/0x6*(-parseInt(_0x4d0e4f(0x16f))/0x7)+parseInt(_0x4d0e4f(0x171))/0x8*(-parseInt(_0x4d0e4f(0x176))/0x9)+parseInt(_0x4d0e4f(0x173))/0xa*(parseInt(_0x4d0e4f(0x175))/0xb);if(_0x4aa151===_0x110c98)break;else _0x155a73['push'](_0x155a73['shift']());}catch(_0x4eacbf){_0x155a73['push'](_0x155a73['shift']());}}}(a171_0x493b,0xbdc03));export{FileHandler}from'./file-handler.js';function a171_0x2601(_0x242896,_0x133f12){_0x242896=_0x242896-0x16f;var _0x493b69=a171_0x493b();var _0x26013c=_0x493b69[_0x242896];return _0x26013c;}export{ConsoleHandler}from'./console-handler.js';function a171_0x493b(){var _0x3b30b3=['9xFzCNb','5958745BZfgLA','336308oWEkfF','4095342LaOxMP','3017NhWjAE','146sesGph','11210824aycdkf','19748JQOFoG','10UHxdoY','2166hlnEMW','5412979QZzhof'];a171_0x493b=function(){return _0x3b30b3;};return a171_0x493b();}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a172_0x4622c7=a172_0x167f;function a172_0x167f(_0x4eef9a,_0x585c1a){_0x4eef9a=_0x4eef9a-0x11d;var _0x4b6e8c=a172_0x4b6e();var _0x167f2f=_0x4b6e8c[_0x4eef9a];return _0x167f2f;}function a172_0x4b6e(){var _0x497984=['6IpUuUB','1069184gDRmMi','118090uIHLmJ','2685600oYRsuv','7QZSFUL','1125032pTFjaE','595360BraWbq','handle','77964fhzDgD','200554ynYRXT'];a172_0x4b6e=function(){return _0x497984;};return a172_0x4b6e();}(function(_0x45c75d,_0x2a4934){var _0x3719a1=a172_0x167f,_0x5a21c8=_0x45c75d();while(!![]){try{var _0x4b9f71=-parseInt(_0x3719a1(0x124))/0x1+-parseInt(_0x3719a1(0x121))/0x2*(-parseInt(_0x3719a1(0x122))/0x3)+-parseInt(_0x3719a1(0x123))/0x4+-parseInt(_0x3719a1(0x11e))/0x5+parseInt(_0x3719a1(0x120))/0x6+parseInt(_0x3719a1(0x126))/0x7*(parseInt(_0x3719a1(0x11d))/0x8)+parseInt(_0x3719a1(0x125))/0x9;if(_0x4b9f71===_0x2a4934)break;else _0x5a21c8['push'](_0x5a21c8['shift']());}catch(_0x2ad934){_0x5a21c8['push'](_0x5a21c8['shift']());}}}(a172_0x4b6e,0x24297));export class NullHandler{[a172_0x4622c7(0x11f)](_0x4d921b){}}
1
+ function a172_0x5b1f(){var _0xfa1b65=['63VuNvIa','3717LqvvdJ','1645658BVImSv','24aIyKHG','1873245uHCBaN','12840kPIShP','handle','2400402NgbvnR','1126492SnsAeZ','45604fmmAgp','1920130hDvvty'];a172_0x5b1f=function(){return _0xfa1b65;};return a172_0x5b1f();}var a172_0x42d78f=a172_0x27fb;function a172_0x27fb(_0x13eafe,_0xccde3a){_0x13eafe=_0x13eafe-0x1af;var _0x5b1f57=a172_0x5b1f();var _0x27fb1c=_0x5b1f57[_0x13eafe];return _0x27fb1c;}(function(_0x4b10c7,_0x53b82d){var _0x35a369=a172_0x27fb,_0x173103=_0x4b10c7();while(!![]){try{var _0x1e6dbc=parseInt(_0x35a369(0x1b9))/0x1+-parseInt(_0x35a369(0x1b3))/0x2+parseInt(_0x35a369(0x1b4))/0x3*(-parseInt(_0x35a369(0x1af))/0x4)+parseInt(_0x35a369(0x1b5))/0x5+-parseInt(_0x35a369(0x1b8))/0x6+-parseInt(_0x35a369(0x1b2))/0x7*(parseInt(_0x35a369(0x1b6))/0x8)+-parseInt(_0x35a369(0x1b1))/0x9*(-parseInt(_0x35a369(0x1b0))/0xa);if(_0x1e6dbc===_0x53b82d)break;else _0x173103['push'](_0x173103['shift']());}catch(_0x1e92ec){_0x173103['push'](_0x173103['shift']());}}}(a172_0x5b1f,0xa5bd9));export class NullHandler{[a172_0x42d78f(0x1b7)](_0x204c4e){}}
@@ -1 +1 @@
1
- (function(_0x29e676,_0x76ad28){var _0x18f68c=a173_0x4e33,_0x1b658f=_0x29e676();while(!![]){try{var _0x11321c=parseInt(_0x18f68c(0xd9))/0x1+parseInt(_0x18f68c(0xde))/0x2+parseInt(_0x18f68c(0xdf))/0x3+parseInt(_0x18f68c(0xdd))/0x4+parseInt(_0x18f68c(0xdc))/0x5+parseInt(_0x18f68c(0xdb))/0x6+-parseInt(_0x18f68c(0xda))/0x7*(parseInt(_0x18f68c(0xe0))/0x8);if(_0x11321c===_0x76ad28)break;else _0x1b658f['push'](_0x1b658f['shift']());}catch(_0x3c37f5){_0x1b658f['push'](_0x1b658f['shift']());}}}(a173_0x24fe,0x3e1ec));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a173_0x24fe(){var _0x148fba=['1016685WHnOZm','95592Bpktnr','243310BNjmFI','865554KHjdaM','24tMqPXu','43942uQvPYq','1437065EPnFIi','1133874WTaNaK'];a173_0x24fe=function(){return _0x148fba;};return a173_0x24fe();}function a173_0x4e33(_0x558738,_0x5454a0){_0x558738=_0x558738-0xd9;var _0x24fed2=a173_0x24fe();var _0x4e333d=_0x24fed2[_0x558738];return _0x4e333d;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a173_0x1800(_0x329019,_0x48b5e3){_0x329019=_0x329019-0x136;var _0xc3b678=a173_0xc3b6();var _0x18006e=_0xc3b678[_0x329019];return _0x18006e;}(function(_0x1eeadf,_0x56ff91){var _0xe6b7e9=a173_0x1800,_0x37d3d9=_0x1eeadf();while(!![]){try{var _0xc46140=-parseInt(_0xe6b7e9(0x13e))/0x1*(parseInt(_0xe6b7e9(0x13b))/0x2)+-parseInt(_0xe6b7e9(0x13f))/0x3*(-parseInt(_0xe6b7e9(0x138))/0x4)+parseInt(_0xe6b7e9(0x13d))/0x5*(-parseInt(_0xe6b7e9(0x140))/0x6)+-parseInt(_0xe6b7e9(0x137))/0x7*(parseInt(_0xe6b7e9(0x13a))/0x8)+-parseInt(_0xe6b7e9(0x141))/0x9+-parseInt(_0xe6b7e9(0x13c))/0xa*(-parseInt(_0xe6b7e9(0x139))/0xb)+parseInt(_0xe6b7e9(0x136))/0xc;if(_0xc46140===_0x56ff91)break;else _0x37d3d9['push'](_0x37d3d9['shift']());}catch(_0x2c3db9){_0x37d3d9['push'](_0x37d3d9['shift']());}}}(a173_0xc3b6,0x2d17c));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a173_0xc3b6(){var _0x2aaffe=['2550501jPjvkw','7902408zoJYNV','2443RznqZa','48560PDIDoM','405933pOYkQX','5608pHUbVW','202tcDMxr','10TFRkZZ','5VUGpaO','2323rcaAvt','90PlFlRf','673656cVGPSc'];a173_0xc3b6=function(){return _0x2aaffe;};return a173_0xc3b6();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a174_0x42ec4f=a174_0x19f0;(function(_0x372864,_0x4b6e12){const _0x2851da=a174_0x19f0,_0x4a6dab=_0x372864();while(!![]){try{const _0x30e47c=parseInt(_0x2851da(0x16f))/0x1*(-parseInt(_0x2851da(0x192))/0x2)+parseInt(_0x2851da(0x16c))/0x3*(-parseInt(_0x2851da(0x16e))/0x4)+parseInt(_0x2851da(0x162))/0x5*(-parseInt(_0x2851da(0x195))/0x6)+parseInt(_0x2851da(0x189))/0x7+parseInt(_0x2851da(0x184))/0x8*(-parseInt(_0x2851da(0x185))/0x9)+parseInt(_0x2851da(0x161))/0xa+parseInt(_0x2851da(0x160))/0xb;if(_0x30e47c===_0x4b6e12)break;else _0x4a6dab['push'](_0x4a6dab['shift']());}catch(_0x3c898e){_0x4a6dab['push'](_0x4a6dab['shift']());}}}(a174_0x5cd3,0xd1b84));import{LogLevel as a174_0x282430,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a174_0x282430[a174_0x42ec4f(0x16b)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a174_0x5cd3(){const _0x345089=['format','defaultLevel','message','24vfpjHL','1067994mKuaVT','join','slice','name','7192710ElUwTW','split','loggers','component','reset','clearHandlers','level','entries','get','62HGcFqY','pendingRecords','cause','585174NUuPdq','formatter','init','error','getEffectiveLevel','30124149Avfrop','5806300WtwuMl','75hUxUbl','ERROR','map','close','set','levelOverrides','toISOString','trace','push','INFO','3411UfSvmq','warn','2636vhZBNw','29661gYROaE','dispatch','function','TRACE','string','WARN','clear','handlers','setDefaultLevel','shouldLog','debug','log','setLogLevel','initialized','handle','getFormatter','stack','has'];a174_0x5cd3=function(){return _0x345089;};return a174_0x5cd3();}function safeStringify(_0x48d8a0){const _0x15700b=a174_0x42ec4f;if(typeof _0x48d8a0===_0x15700b(0x173))return _0x48d8a0;if(_0x48d8a0 instanceof Error)return _0x48d8a0['stack']||_0x48d8a0['name']+':\x20'+_0x48d8a0[_0x15700b(0x183)];try{return JSON['stringify'](_0x48d8a0,(_0x14fd0a,_0x3fa1ef)=>{const _0x2528b5=_0x15700b;if(_0x3fa1ef instanceof Error)return{'name':_0x3fa1ef[_0x2528b5(0x188)],'message':_0x3fa1ef[_0x2528b5(0x183)],'stack':_0x3fa1ef[_0x2528b5(0x17f)],'cause':_0x3fa1ef[_0x2528b5(0x194)]};return _0x3fa1ef;});}catch{return String(_0x48d8a0);}}function a174_0x19f0(_0x2dfb06,_0x4386d9){_0x2dfb06=_0x2dfb06-0x15d;const _0x5cd3ac=a174_0x5cd3();let _0x19f029=_0x5cd3ac[_0x2dfb06];return _0x19f029;}export class Logger{['component'];constructor(_0x28cc02){this['component']=_0x28cc02;}static['of'](_0x25763b){const _0x3d1566=a174_0x42ec4f,_0x287cfa=typeof _0x25763b===_0x3d1566(0x173)?_0x25763b:_0x25763b[_0x3d1566(0x188)];let _0x46222=state[_0x3d1566(0x18b)][_0x3d1566(0x191)](_0x287cfa);return!_0x46222&&(_0x46222=new Logger(_0x287cfa),state[_0x3d1566(0x18b)][_0x3d1566(0x166)](_0x287cfa,_0x46222)),_0x46222;}static async[a174_0x42ec4f(0x15d)](_0x1543f4={}){const _0x1924c6=a174_0x42ec4f;state[_0x1924c6(0x182)]=_0x1543f4[_0x1924c6(0x182)]??a174_0x282430[_0x1924c6(0x16b)],state[_0x1924c6(0x176)]=_0x1543f4[_0x1924c6(0x176)]??[],state['formatter']=_0x1543f4[_0x1924c6(0x196)]??null,state[_0x1924c6(0x167)]['clear']();if(_0x1543f4[_0x1924c6(0x167)])for(const [_0x384b29,_0xa384cd]of Object[_0x1924c6(0x190)](_0x1543f4['levelOverrides'])){state['levelOverrides'][_0x1924c6(0x166)](_0x384b29,_0xa384cd);}for(const _0x2fec07 of state[_0x1924c6(0x176)]){_0x2fec07['init']&&await _0x2fec07[_0x1924c6(0x15d)]();}state['initialized']=!![];for(const _0x15c0e2 of state[_0x1924c6(0x193)]){Logger[_0x1924c6(0x170)](_0x15c0e2);}state[_0x1924c6(0x193)]=[];}static[a174_0x42ec4f(0x17b)](_0x334d7b,_0x3bfe50){const _0x37e917=a174_0x42ec4f;state['levelOverrides'][_0x37e917(0x166)](_0x334d7b,_0x3bfe50);}static[a174_0x42ec4f(0x177)](_0x57a752){state['defaultLevel']=_0x57a752;}static['addHandler'](_0x1cbda5){const _0x28e427=a174_0x42ec4f;state[_0x28e427(0x176)][_0x28e427(0x16a)](_0x1cbda5),state[_0x28e427(0x17c)]&&_0x1cbda5[_0x28e427(0x15d)]&&_0x1cbda5['init']();}static[a174_0x42ec4f(0x18e)](){const _0x371d0f=a174_0x42ec4f;state[_0x371d0f(0x176)]=[];}static async['shutdown'](){const _0x3d4eda=a174_0x42ec4f;for(const _0x261ae4 of state[_0x3d4eda(0x176)]){_0x261ae4[_0x3d4eda(0x165)]&&await _0x261ae4[_0x3d4eda(0x165)]();}state[_0x3d4eda(0x176)]=[],state[_0x3d4eda(0x17c)]=![],state[_0x3d4eda(0x18b)][_0x3d4eda(0x175)](),state['pendingRecords']=[];}static[a174_0x42ec4f(0x18d)](){const _0x4cabe7=a174_0x42ec4f;state[_0x4cabe7(0x17c)]=![],state[_0x4cabe7(0x182)]=a174_0x282430['INFO'],state[_0x4cabe7(0x167)][_0x4cabe7(0x175)](),state['handlers']=[],state[_0x4cabe7(0x196)]=null,state['loggers'][_0x4cabe7(0x175)](),state[_0x4cabe7(0x193)]=[];}static['isInitialized'](){const _0x487af8=a174_0x42ec4f;return state[_0x487af8(0x17c)];}static[a174_0x42ec4f(0x15f)](_0x290286){const _0x50ccd4=a174_0x42ec4f;if(state[_0x50ccd4(0x167)][_0x50ccd4(0x180)](_0x290286))return state[_0x50ccd4(0x167)][_0x50ccd4(0x191)](_0x290286);const _0x5503f2=_0x290286[_0x50ccd4(0x18a)]('.');for(let _0xad8dc1=_0x5503f2['length']-0x1;_0xad8dc1>0x0;_0xad8dc1--){const _0x8600ad=_0x5503f2[_0x50ccd4(0x187)](0x0,_0xad8dc1)['join']('.');if(state[_0x50ccd4(0x167)][_0x50ccd4(0x180)](_0x8600ad))return state[_0x50ccd4(0x167)][_0x50ccd4(0x191)](_0x8600ad);}return state['defaultLevel'];}[a174_0x42ec4f(0x178)](_0x5d493a){const _0xd1d89=a174_0x42ec4f,_0x1f5496=Logger['getEffectiveLevel'](this[_0xd1d89(0x18c)]);return _0x5d493a>=_0x1f5496;}static[a174_0x42ec4f(0x170)](_0x43b8d3){const _0x5bcbd4=a174_0x42ec4f;for(const _0x1d4c42 of state[_0x5bcbd4(0x176)]){_0x1d4c42[_0x5bcbd4(0x17d)](_0x43b8d3);}}['log'](_0x12188a,_0x3c5ecf){const _0x2eec53=a174_0x42ec4f;if(!this[_0x2eec53(0x178)](_0x12188a))return;const _0x1af3dc=_0x3c5ecf[_0x2eec53(0x164)](_0xfe79cb=>typeof _0xfe79cb===_0x2eec53(0x171)?_0xfe79cb():_0xfe79cb),_0x45ebb3=_0x1af3dc[_0x2eec53(0x164)](safeStringify)[_0x2eec53(0x186)]('\x20'),_0x303b39={'timestamp':new Date(),'level':_0x12188a,'component':this[_0x2eec53(0x18c)],'message':_0x45ebb3};if(!state[_0x2eec53(0x17c)]){state['pendingRecords']['length']<MAX_PENDING_RECORDS&&state[_0x2eec53(0x193)][_0x2eec53(0x16a)](_0x303b39);return;}Logger[_0x2eec53(0x170)](_0x303b39);}[a174_0x42ec4f(0x169)](..._0x4e4608){const _0xc25c4=a174_0x42ec4f;this['log'](a174_0x282430[_0xc25c4(0x172)],_0x4e4608);}[a174_0x42ec4f(0x179)](..._0x31b22a){const _0x13e136=a174_0x42ec4f;this[_0x13e136(0x17a)](a174_0x282430['DEBUG'],_0x31b22a);}['info'](..._0x35f7de){const _0x1e05dc=a174_0x42ec4f;this[_0x1e05dc(0x17a)](a174_0x282430[_0x1e05dc(0x16b)],_0x35f7de);}[a174_0x42ec4f(0x16d)](..._0x8ed09f){const _0x51a688=a174_0x42ec4f;this[_0x51a688(0x17a)](a174_0x282430[_0x51a688(0x174)],_0x8ed09f);}[a174_0x42ec4f(0x15e)](..._0x2be2ae){const _0x535c0c=a174_0x42ec4f;this['log'](a174_0x282430[_0x535c0c(0x163)],_0x2be2ae);}static[a174_0x42ec4f(0x17e)](){const _0x2afc06=a174_0x42ec4f;return state[_0x2afc06(0x196)];}static[a174_0x42ec4f(0x181)](_0x135ca0){const _0x462877=a174_0x42ec4f;if(state[_0x462877(0x196)])return state[_0x462877(0x196)][_0x462877(0x181)](_0x135ca0);return _0x135ca0['timestamp'][_0x462877(0x168)]()+'\x20['+logLevelToString(_0x135ca0[_0x462877(0x18f)])+']\x20['+_0x135ca0[_0x462877(0x18c)]+']\x20'+_0x135ca0[_0x462877(0x183)];}}
1
+ const a174_0x571d29=a174_0x1921;(function(_0x50e852,_0x502a64){const _0x4fa8e5=a174_0x1921,_0xeed87d=_0x50e852();while(!![]){try{const _0x4f539a=-parseInt(_0x4fa8e5(0x7a))/0x1*(-parseInt(_0x4fa8e5(0x95))/0x2)+parseInt(_0x4fa8e5(0x6d))/0x3+parseInt(_0x4fa8e5(0x89))/0x4*(parseInt(_0x4fa8e5(0x8b))/0x5)+parseInt(_0x4fa8e5(0x73))/0x6+-parseInt(_0x4fa8e5(0x98))/0x7*(-parseInt(_0x4fa8e5(0x87))/0x8)+parseInt(_0x4fa8e5(0x7f))/0x9*(parseInt(_0x4fa8e5(0x8f))/0xa)+-parseInt(_0x4fa8e5(0x97))/0xb;if(_0x4f539a===_0x502a64)break;else _0xeed87d['push'](_0xeed87d['shift']());}catch(_0x526f95){_0xeed87d['push'](_0xeed87d['shift']());}}}(a174_0x1009,0x791f8));import{LogLevel as a174_0x23fb76,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a174_0x23fb76[a174_0x571d29(0x78)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x240a36){const _0x204e8d=a174_0x571d29;if(typeof _0x240a36===_0x204e8d(0x9a))return _0x240a36;if(_0x240a36 instanceof Error)return _0x240a36['stack']||_0x240a36[_0x204e8d(0x93)]+':\x20'+_0x240a36[_0x204e8d(0x6e)];try{return JSON[_0x204e8d(0x91)](_0x240a36,(_0x48ade2,_0x13d453)=>{const _0x33d8fa=_0x204e8d;if(_0x13d453 instanceof Error)return{'name':_0x13d453['name'],'message':_0x13d453[_0x33d8fa(0x6e)],'stack':_0x13d453[_0x33d8fa(0x99)],'cause':_0x13d453['cause']};return _0x13d453;});}catch{return String(_0x240a36);}}function a174_0x1921(_0x343eb0,_0x228809){_0x343eb0=_0x343eb0-0x66;const _0x1009d3=a174_0x1009();let _0x1921b2=_0x1009d3[_0x343eb0];return _0x1921b2;}function a174_0x1009(){const _0x1b3691=['split','timestamp','entries','handlers','debug','join','8jSnRKB','length','4SQADYq',']\x20[','3607210BIeYoj','defaultLevel','pendingRecords','shutdown','210VZrmGV','level','stringify','log','name','ERROR','14UOCYCJ','error','36577442SfctBE','5791562pHOvOa','stack','string','trace','clear','push','shouldLog','isInitialized','formatter','get','has','640560bNpelq','message','loggers','set','close','clearHandlers','3802548YLvKmG','WARN','map','addHandler','toISOString','INFO','component','138139NrCppr','levelOverrides','init','handle','initialized','196407sMEfSj','dispatch'];a174_0x1009=function(){return _0x1b3691;};return a174_0x1009();}export class Logger{[a174_0x571d29(0x79)];constructor(_0x2ed310){this['component']=_0x2ed310;}static['of'](_0x57e89f){const _0x2307a6=a174_0x571d29,_0x4b714b=typeof _0x57e89f===_0x2307a6(0x9a)?_0x57e89f:_0x57e89f[_0x2307a6(0x93)];let _0x2825fe=state[_0x2307a6(0x6f)][_0x2307a6(0x6b)](_0x4b714b);return!_0x2825fe&&(_0x2825fe=new Logger(_0x4b714b),state[_0x2307a6(0x6f)][_0x2307a6(0x70)](_0x4b714b,_0x2825fe)),_0x2825fe;}static async[a174_0x571d29(0x7c)](_0x25e243={}){const _0x3d0cdc=a174_0x571d29;state[_0x3d0cdc(0x8c)]=_0x25e243[_0x3d0cdc(0x8c)]??a174_0x23fb76[_0x3d0cdc(0x78)],state[_0x3d0cdc(0x84)]=_0x25e243[_0x3d0cdc(0x84)]??[],state[_0x3d0cdc(0x6a)]=_0x25e243[_0x3d0cdc(0x6a)]??null,state['levelOverrides'][_0x3d0cdc(0x66)]();if(_0x25e243[_0x3d0cdc(0x7b)])for(const [_0x10e27f,_0x5b39ea]of Object[_0x3d0cdc(0x83)](_0x25e243[_0x3d0cdc(0x7b)])){state[_0x3d0cdc(0x7b)][_0x3d0cdc(0x70)](_0x10e27f,_0x5b39ea);}for(const _0x3d4485 of state['handlers']){_0x3d4485['init']&&await _0x3d4485[_0x3d0cdc(0x7c)]();}state['initialized']=!![];for(const _0x79d201 of state['pendingRecords']){Logger[_0x3d0cdc(0x80)](_0x79d201);}state[_0x3d0cdc(0x8d)]=[];}static['setLogLevel'](_0x400c5c,_0x48cc3d){const _0x2364d7=a174_0x571d29;state[_0x2364d7(0x7b)][_0x2364d7(0x70)](_0x400c5c,_0x48cc3d);}static['setDefaultLevel'](_0x45aec8){const _0x20d84c=a174_0x571d29;state[_0x20d84c(0x8c)]=_0x45aec8;}static[a174_0x571d29(0x76)](_0x187aff){const _0x2cd498=a174_0x571d29;state[_0x2cd498(0x84)][_0x2cd498(0x67)](_0x187aff),state[_0x2cd498(0x7e)]&&_0x187aff[_0x2cd498(0x7c)]&&_0x187aff['init']();}static[a174_0x571d29(0x72)](){const _0x261bc5=a174_0x571d29;state[_0x261bc5(0x84)]=[];}static async[a174_0x571d29(0x8e)](){const _0x3df91f=a174_0x571d29;for(const _0x3ebe41 of state[_0x3df91f(0x84)]){_0x3ebe41[_0x3df91f(0x71)]&&await _0x3ebe41[_0x3df91f(0x71)]();}state[_0x3df91f(0x84)]=[],state[_0x3df91f(0x7e)]=![],state['loggers']['clear'](),state[_0x3df91f(0x8d)]=[];}static['reset'](){const _0x3a7edd=a174_0x571d29;state[_0x3a7edd(0x7e)]=![],state['defaultLevel']=a174_0x23fb76[_0x3a7edd(0x78)],state[_0x3a7edd(0x7b)][_0x3a7edd(0x66)](),state[_0x3a7edd(0x84)]=[],state[_0x3a7edd(0x6a)]=null,state['loggers'][_0x3a7edd(0x66)](),state[_0x3a7edd(0x8d)]=[];}static[a174_0x571d29(0x69)](){const _0x23ce65=a174_0x571d29;return state[_0x23ce65(0x7e)];}static['getEffectiveLevel'](_0x492a69){const _0xba1fc4=a174_0x571d29;if(state['levelOverrides'][_0xba1fc4(0x6c)](_0x492a69))return state[_0xba1fc4(0x7b)]['get'](_0x492a69);const _0x226f2b=_0x492a69[_0xba1fc4(0x81)]('.');for(let _0x4bf9b1=_0x226f2b[_0xba1fc4(0x88)]-0x1;_0x4bf9b1>0x0;_0x4bf9b1--){const _0x4d349f=_0x226f2b['slice'](0x0,_0x4bf9b1)[_0xba1fc4(0x86)]('.');if(state[_0xba1fc4(0x7b)]['has'](_0x4d349f))return state['levelOverrides'][_0xba1fc4(0x6b)](_0x4d349f);}return state[_0xba1fc4(0x8c)];}['shouldLog'](_0x1d3945){const _0x30c025=a174_0x571d29,_0x5250c3=Logger['getEffectiveLevel'](this[_0x30c025(0x79)]);return _0x1d3945>=_0x5250c3;}static['dispatch'](_0x33464a){const _0x2953c1=a174_0x571d29;for(const _0x36bcca of state[_0x2953c1(0x84)]){_0x36bcca[_0x2953c1(0x7d)](_0x33464a);}}['log'](_0x2c1fd2,_0x4c8314){const _0x2ced9e=a174_0x571d29;if(!this[_0x2ced9e(0x68)](_0x2c1fd2))return;const _0x1f9638=_0x4c8314[_0x2ced9e(0x75)](_0x2a8345=>typeof _0x2a8345==='function'?_0x2a8345():_0x2a8345),_0x25f029=_0x1f9638[_0x2ced9e(0x75)](safeStringify)[_0x2ced9e(0x86)]('\x20'),_0x12f287={'timestamp':new Date(),'level':_0x2c1fd2,'component':this['component'],'message':_0x25f029};if(!state[_0x2ced9e(0x7e)]){state['pendingRecords'][_0x2ced9e(0x88)]<MAX_PENDING_RECORDS&&state[_0x2ced9e(0x8d)]['push'](_0x12f287);return;}Logger[_0x2ced9e(0x80)](_0x12f287);}[a174_0x571d29(0x9b)](..._0x5f23ed){const _0x28ae17=a174_0x571d29;this[_0x28ae17(0x92)](a174_0x23fb76['TRACE'],_0x5f23ed);}[a174_0x571d29(0x85)](..._0x55cd99){this['log'](a174_0x23fb76['DEBUG'],_0x55cd99);}['info'](..._0x3c4110){const _0x213db2=a174_0x571d29;this[_0x213db2(0x92)](a174_0x23fb76[_0x213db2(0x78)],_0x3c4110);}['warn'](..._0x35d9a6){const _0x15e943=a174_0x571d29;this[_0x15e943(0x92)](a174_0x23fb76[_0x15e943(0x74)],_0x35d9a6);}[a174_0x571d29(0x96)](..._0x1e3562){const _0x167b22=a174_0x571d29;this[_0x167b22(0x92)](a174_0x23fb76[_0x167b22(0x94)],_0x1e3562);}static['getFormatter'](){const _0x5bea7d=a174_0x571d29;return state[_0x5bea7d(0x6a)];}static['format'](_0x181df7){const _0x495aa7=a174_0x571d29;if(state[_0x495aa7(0x6a)])return state['formatter']['format'](_0x181df7);return _0x181df7[_0x495aa7(0x82)][_0x495aa7(0x77)]()+'\x20['+logLevelToString(_0x181df7[_0x495aa7(0x90)])+_0x495aa7(0x8a)+_0x181df7[_0x495aa7(0x79)]+']\x20'+_0x181df7[_0x495aa7(0x6e)];}}
@@ -1 +1 @@
1
- function a175_0x41fa(){const _0x481d78=['8295952SPpUDI','INFO','1248872Bskbze','344eUGsJr','getSeconds','11118drLOaO','DEBUG','1915WdwkaE','3924462cJHSQm','getMilliseconds','9185KVjsAG','debug','16471251TiJMOi','toString','TRACE','toUpperCase','info','trace','error','getTimezoneOffset','7096040eczXIN','WARNING','WARN','ERROR','getDate','padStart','getFullYear','abs'];a175_0x41fa=function(){return _0x481d78;};return a175_0x41fa();}(function(_0x2df971,_0x17860d){const _0x51846f=a175_0x31c8,_0x133d12=_0x2df971();while(!![]){try{const _0x52f45b=parseInt(_0x51846f(0x10a))/0x1*(parseInt(_0x51846f(0x103))/0x2)+-parseInt(_0x51846f(0x108))/0x3+-parseInt(_0x51846f(0x102))/0x4+parseInt(_0x51846f(0x107))/0x5*(parseInt(_0x51846f(0x105))/0x6)+parseInt(_0x51846f(0xf8))/0x7+parseInt(_0x51846f(0x100))/0x8+-parseInt(_0x51846f(0x10c))/0x9;if(_0x52f45b===_0x17860d)break;else _0x133d12['push'](_0x133d12['shift']());}catch(_0x3f46de){_0x133d12['push'](_0x133d12['shift']());}}}(a175_0x41fa,0xd937a));export var LogLevel;function a175_0x31c8(_0x201b91,_0x5e1c9e){_0x201b91=_0x201b91-0xf6;const _0x41faf7=a175_0x41fa();let _0x31c8e4=_0x41faf7[_0x201b91];return _0x31c8e4;}(function(_0x971a5d){const _0x5aa18b=a175_0x31c8;_0x971a5d[_0x971a5d[_0x5aa18b(0x10e)]=-0x2]='TRACE',_0x971a5d[_0x971a5d[_0x5aa18b(0x106)]=-0x1]=_0x5aa18b(0x106),_0x971a5d[_0x971a5d[_0x5aa18b(0x101)]=0x0]='INFO',_0x971a5d[_0x971a5d[_0x5aa18b(0xfa)]=0x1]=_0x5aa18b(0xfa),_0x971a5d[_0x971a5d[_0x5aa18b(0xfb)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x27eeba){const _0x58dd87=a175_0x31c8;switch(_0x27eeba[_0x58dd87(0x10f)]()){case _0x58dd87(0x10e):return LogLevel[_0x58dd87(0x10e)];case _0x58dd87(0x106):return LogLevel['DEBUG'];case _0x58dd87(0x101):return LogLevel[_0x58dd87(0x101)];case _0x58dd87(0xfa):case _0x58dd87(0xf9):return LogLevel[_0x58dd87(0xfa)];case _0x58dd87(0xfb):return LogLevel[_0x58dd87(0xfb)];default:return LogLevel[_0x58dd87(0x101)];}}export function logLevelToString(_0x390fa2){const _0x5dc60e=a175_0x31c8;switch(_0x390fa2){case LogLevel[_0x5dc60e(0x10e)]:return _0x5dc60e(0x111);case LogLevel[_0x5dc60e(0x106)]:return _0x5dc60e(0x10b);case LogLevel[_0x5dc60e(0x101)]:return _0x5dc60e(0x110);case LogLevel['WARN']:return'warn';case LogLevel[_0x5dc60e(0xfb)]:return _0x5dc60e(0xf6);default:return _0x5dc60e(0x110);}}export function formatTimestamp(_0x2013fe){const _0x504654=a175_0x31c8,_0x54897f=_0x2013fe[_0x504654(0xfe)](),_0x19cb5d=(_0x2013fe['getMonth']()+0x1)[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0'),_0x390c12=_0x2013fe[_0x504654(0xfc)]()[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0'),_0x5ed31b=_0x2013fe['getHours']()[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0'),_0x24f660=_0x2013fe['getMinutes']()['toString']()[_0x504654(0xfd)](0x2,'0'),_0x8a459b=_0x2013fe[_0x504654(0x104)]()[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0'),_0xb529ce=_0x2013fe[_0x504654(0x109)]()[_0x504654(0x10d)]()[_0x504654(0xfd)](0x3,'0'),_0x15525f=-_0x2013fe[_0x504654(0xf7)](),_0x18a4f7=Math['floor'](Math[_0x504654(0xff)](_0x15525f)/0x3c),_0x4bb002=Math['abs'](_0x15525f)%0x3c,_0x25109b=_0x15525f>=0x0?'+':'-',_0x235aed=''+_0x25109b+_0x18a4f7[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0')+_0x4bb002[_0x504654(0x10d)]()[_0x504654(0xfd)](0x2,'0');return _0x54897f+'-'+_0x19cb5d+'-'+_0x390c12+'\x20'+_0x5ed31b+':'+_0x24f660+':'+_0x8a459b+'.'+_0xb529ce+_0x235aed;}
1
+ (function(_0x1c9949,_0x43f8ab){const _0x302b23=a175_0x5433,_0x3956d0=_0x1c9949();while(!![]){try{const _0x3efcfa=parseInt(_0x302b23(0xa6))/0x1*(parseInt(_0x302b23(0xa9))/0x2)+-parseInt(_0x302b23(0xa2))/0x3*(parseInt(_0x302b23(0xb0))/0x4)+-parseInt(_0x302b23(0xbf))/0x5*(-parseInt(_0x302b23(0xb3))/0x6)+-parseInt(_0x302b23(0xac))/0x7+-parseInt(_0x302b23(0xa5))/0x8+parseInt(_0x302b23(0xa3))/0x9*(-parseInt(_0x302b23(0xa7))/0xa)+-parseInt(_0x302b23(0xbd))/0xb*(-parseInt(_0x302b23(0x9f))/0xc);if(_0x3efcfa===_0x43f8ab)break;else _0x3956d0['push'](_0x3956d0['shift']());}catch(_0x3b2495){_0x3956d0['push'](_0x3956d0['shift']());}}}(a175_0xf956,0xacba4));export var LogLevel;(function(_0x3140b3){const _0x320dd9=a175_0x5433;_0x3140b3[_0x3140b3[_0x320dd9(0xa4)]=-0x2]=_0x320dd9(0xa4),_0x3140b3[_0x3140b3['DEBUG']=-0x1]='DEBUG',_0x3140b3[_0x3140b3[_0x320dd9(0xae)]=0x0]='INFO',_0x3140b3[_0x3140b3['WARN']=0x1]=_0x320dd9(0xab),_0x3140b3[_0x3140b3[_0x320dd9(0xb9)]=0x2]=_0x320dd9(0xb9);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x1addb3){const _0x500c70=a175_0x5433;switch(_0x1addb3[_0x500c70(0xbc)]()){case _0x500c70(0xa4):return LogLevel[_0x500c70(0xa4)];case _0x500c70(0xb4):return LogLevel['DEBUG'];case _0x500c70(0xae):return LogLevel[_0x500c70(0xae)];case _0x500c70(0xab):case _0x500c70(0xb2):return LogLevel['WARN'];case'ERROR':return LogLevel['ERROR'];default:return LogLevel['INFO'];}}function a175_0xf956(){const _0xc34109=['getTimezoneOffset','WARN','6844915oWIekg','getMinutes','INFO','floor','4351948BCTYKq','warn','WARNING','6744672FgPYfv','DEBUG','padStart','abs','getDate','getMilliseconds','ERROR','info','debug','toUpperCase','38291CsGXxs','getMonth','5JpMMAL','9924NUtTGw','getSeconds','toString','3ZflXts','737433oqgbHm','TRACE','8825320MWQRDq','258299SoKBiB','110cgUXRn','trace','6omZwSu'];a175_0xf956=function(){return _0xc34109;};return a175_0xf956();}function a175_0x5433(_0x44228c,_0x2a6497){_0x44228c=_0x44228c-0x9f;const _0xf95666=a175_0xf956();let _0x543365=_0xf95666[_0x44228c];return _0x543365;}export function logLevelToString(_0x419a71){const _0x95e381=a175_0x5433;switch(_0x419a71){case LogLevel['TRACE']:return _0x95e381(0xa8);case LogLevel['DEBUG']:return _0x95e381(0xbb);case LogLevel[_0x95e381(0xae)]:return'info';case LogLevel[_0x95e381(0xab)]:return _0x95e381(0xb1);case LogLevel[_0x95e381(0xb9)]:return'error';default:return _0x95e381(0xba);}}export function formatTimestamp(_0x55eea3){const _0x5134a2=a175_0x5433,_0x45aef0=_0x55eea3['getFullYear'](),_0x84f0ed=(_0x55eea3[_0x5134a2(0xbe)]()+0x1)['toString']()[_0x5134a2(0xb5)](0x2,'0'),_0x1f245a=_0x55eea3[_0x5134a2(0xb7)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x13c062=_0x55eea3['getHours']()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x3c1ca7=_0x55eea3[_0x5134a2(0xad)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x583b78=_0x55eea3[_0x5134a2(0xa0)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0'),_0x1a6163=_0x55eea3[_0x5134a2(0xb8)]()[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x3,'0'),_0x158719=-_0x55eea3[_0x5134a2(0xaa)](),_0x2fc87f=Math[_0x5134a2(0xaf)](Math[_0x5134a2(0xb6)](_0x158719)/0x3c),_0x50fe41=Math[_0x5134a2(0xb6)](_0x158719)%0x3c,_0x505531=_0x158719>=0x0?'+':'-',_0x32d256=''+_0x505531+_0x2fc87f[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0')+_0x50fe41[_0x5134a2(0xa1)]()[_0x5134a2(0xb5)](0x2,'0');return _0x45aef0+'-'+_0x84f0ed+'-'+_0x1f245a+'\x20'+_0x13c062+':'+_0x3c1ca7+':'+_0x583b78+'.'+_0x1a6163+_0x32d256;}