@treasuredata/tdx 2026.4.12 → 2026.4.14

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 (220) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +1 -1
@@ -1 +1 @@
1
- const a207_0x2bcc65=a207_0x2919;(function(_0x53657a,_0x282c4f){const _0x50c5a9=a207_0x2919,_0x58a51f=_0x53657a();while(!![]){try{const _0x285501=parseInt(_0x50c5a9(0xfd))/0x1+-parseInt(_0x50c5a9(0xd8))/0x2+-parseInt(_0x50c5a9(0x112))/0x3+-parseInt(_0x50c5a9(0x100))/0x4+-parseInt(_0x50c5a9(0x108))/0x5+-parseInt(_0x50c5a9(0xec))/0x6*(parseInt(_0x50c5a9(0x101))/0x7)+-parseInt(_0x50c5a9(0x10d))/0x8*(-parseInt(_0x50c5a9(0xfc))/0x9);if(_0x285501===_0x282c4f)break;else _0x58a51f['push'](_0x58a51f['shift']());}catch(_0x3c0316){_0x58a51f['push'](_0x58a51f['shift']());}}}(a207_0x5a39,0x97b50));import{vi}from'vitest';function a207_0x5a39(){const _0x3ec553=['stack','getMatchCount','rfc9457','getStatusText','method','error','td-api','Unauthorized','getLastRequest','networkError','fetchMock','isArray','matcher','join','reset','text/plain','application/json','toLowerCase','66TzHniu','forEach','responder','description','searchParams','Conflict','wasCalled','stubs','push','headers','some','entries','body','function','jsonResponseWithHeaders','textResponse','31488750PcUOpQ','520328uyqHfp','Created','url','1397584sDMhtt','439768fCHLvI','mockImplementation','No\x20Content','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','withBody','No\x20stub\x20matched\x20request:\x20','createFetch','5344655lWQtgI','Bad\x20Request','test','Registered\x20stubs:\x0a','REST','8cNuALa','Unmatched\x20stub','stringify','length','registerWithInspector','3329304vXxzQk','errorResponse','Service\x20Unavailable','filter','https://api.treasuredata.com/errors/','requests','string','get','fail','parseRequest','Internal\x20Server\x20Error','matched','Request\x20body:\x20','matchCount','GET','toUpperCase','pathname','map','register','parse','Unprocessable\x20Entity','Forbidden','357054mzJfwJ','getRequests'];a207_0x5a39=function(){return _0x3ec553;};return a207_0x5a39();}export class HTTPMockRegistry{[a207_0x2bcc65(0xf3)]=[];['requests']=[];[a207_0x2bcc65(0xe4)]=null;[a207_0x2bcc65(0x10c)](_0x51aaaf,_0x2308ca){return _0x29ae98=>{const _0x45a402=a207_0x2919;if(_0x29ae98[_0x45a402(0xde)][_0x45a402(0xd1)]()!==_0x51aaaf[_0x45a402(0xd1)]())return![];const _0x5074e3=new URL(_0x29ae98[_0x45a402(0xff)]);if(typeof _0x2308ca===_0x45a402(0x118))return _0x5074e3[_0x45a402(0xd2)]===_0x2308ca||_0x5074e3[_0x45a402(0xd2)]['includes'](_0x2308ca);return _0x2308ca[_0x45a402(0x10a)](_0x5074e3['pathname']);};}['withQuery'](_0x3ddd8b,_0x64f800){return _0x3fbc19=>{const _0x306cba=a207_0x2919;if(!_0x3ddd8b(_0x3fbc19))return![];const _0xf48b28=new URL(_0x3fbc19[_0x306cba(0xff)]);return Object[_0x306cba(0xf7)](_0x64f800)['every'](([_0x584f6c,_0x475051])=>_0xf48b28[_0x306cba(0xf0)][_0x306cba(0x119)](_0x584f6c)===_0x475051);};}[a207_0x2bcc65(0x105)](_0x59837b,_0x54fc9e){return _0xc47614=>{const _0x3dc1e1=a207_0x2919;if(!_0x59837b(_0xc47614))return![];if(typeof _0x54fc9e===_0x3dc1e1(0xf9))return _0x54fc9e(_0xc47614[_0x3dc1e1(0xf8)]);return JSON[_0x3dc1e1(0x10f)](_0xc47614[_0x3dc1e1(0xf8)])===JSON[_0x3dc1e1(0x10f)](_0x54fc9e);};}['withHost'](_0x5d460a,_0x280c66){return _0x3c1f95=>{const _0x47f4fe=a207_0x2919;if(!_0x5d460a(_0x3c1f95))return![];const _0x4ea349=new URL(_0x3c1f95[_0x47f4fe(0xff)]);return _0x4ea349['host']===_0x280c66;};}[a207_0x2bcc65(0xd4)](_0x587468,_0x62cf68,_0x4b8374){const _0x26a4e0=a207_0x2bcc65;this[_0x26a4e0(0xf3)][_0x26a4e0(0xf4)]({'matcher':_0x587468,'responder':_0x62cf68,'matched':![],'matchCount':0x0,'stack':new Error()[_0x26a4e0(0xda)]??'','description':_0x4b8374?.[_0x26a4e0(0xef)]});}[a207_0x2bcc65(0x111)](_0x119908,_0x8cbf8d,_0x47eb27){const _0x2a46bf=a207_0x2bcc65,_0x25ccbf=_0x5e0e69=>{const _0x3bd16b=a207_0x2919;return _0x47eb27(_0x5e0e69[_0x3bd16b(0xf8)],_0x5e0e69),_0x8cbf8d(_0x5e0e69);};this[_0x2a46bf(0xd4)](_0x119908,_0x25ccbf);}static['jsonResponse'](_0x23aa7d,_0x1b671d=0xc8){const _0x4d6f31=a207_0x2bcc65;return()=>new Response(JSON['stringify'](_0x23aa7d),{'status':_0x1b671d,'headers':{'Content-Type':_0x4d6f31(0xea)}});}static[a207_0x2bcc65(0x113)](_0x124cc8,_0x1dd327,_0x20ad5b='simple'){return()=>{const _0x534848=a207_0x2919;let _0x1a12f1;switch(_0x20ad5b){case _0x534848(0xe0):_0x1a12f1={'errors':{'error':_0x1dd327,'message':_0x1dd327,'severity':_0x534848(0xdf),'status_code':_0x124cc8}};break;case _0x534848(0xdc):_0x1a12f1={'type':_0x534848(0x116)+_0x124cc8,'title':HTTPMockRegistry['getStatusText'](_0x124cc8),'status':_0x124cc8,'detail':_0x1dd327};break;default:_0x1a12f1={'error':_0x1dd327};}return new Response(JSON[_0x534848(0x10f)](_0x1a12f1),{'status':_0x124cc8,'headers':{'Content-Type':'application/json'}});};}static[a207_0x2bcc65(0xfa)](_0xa8342,_0x18674f,_0x48364e=0xc8){const _0x38b870=a207_0x2bcc65;return()=>new Response(JSON['stringify'](_0xa8342),{'status':_0x48364e,'headers':{'Content-Type':_0x38b870(0xea),..._0x18674f}});}static[a207_0x2bcc65(0xfb)](_0x3563f0,_0x140194=0xc8){const _0x1ed3a2=a207_0x2bcc65;return()=>new Response(_0x3563f0,{'status':_0x140194,'headers':{'Content-Type':_0x1ed3a2(0xe9)}});}static[a207_0x2bcc65(0xe3)](_0x1d318e){return()=>{throw new Error(_0x1d318e);};}[a207_0x2bcc65(0x107)](){const _0xaa15f4=a207_0x2bcc65;return this[_0xaa15f4(0xe4)]=vi['fn']()[_0xaa15f4(0x102)](async(_0x25e906,_0x38f82f)=>{const _0x1131a2=_0xaa15f4,_0x5e05ad=this[_0x1131a2(0x11b)](_0x25e906,_0x38f82f);this[_0x1131a2(0x117)][_0x1131a2(0xf4)](_0x5e05ad);for(const _0x16d323 of this[_0x1131a2(0xf3)]){if(_0x16d323[_0x1131a2(0xe6)](_0x5e05ad))return _0x16d323[_0x1131a2(0xcd)]=!![],_0x16d323[_0x1131a2(0xcf)]++,_0x16d323[_0x1131a2(0xee)](_0x5e05ad);}const _0x94ae87=this[_0x1131a2(0xf3)][_0x1131a2(0xd3)]((_0x57a3d3,_0x1ac382)=>'\x20\x20'+(_0x1ac382+0x1)+'.\x20'+(_0x57a3d3[_0x1131a2(0xef)]??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x1131a2(0x106)+_0x5e05ad['method']+'\x20'+_0x5e05ad[_0x1131a2(0xff)]+'\x0a'+(_0x1131a2(0xce)+JSON[_0x1131a2(0x10f)](_0x5e05ad['body'])+'\x0a')+(_0x1131a2(0x10b)+(_0x94ae87||'\x20\x20(none)')));}),this[_0xaa15f4(0xe4)];}[a207_0x2bcc65(0x11b)](_0x1b258d,_0x6f45c0){const _0x19aa2e=a207_0x2bcc65,_0x26eebb={};if(_0x6f45c0?.[_0x19aa2e(0xf5)]){if(_0x6f45c0[_0x19aa2e(0xf5)]instanceof Headers)_0x6f45c0[_0x19aa2e(0xf5)][_0x19aa2e(0xed)]((_0x38c216,_0x4f582e)=>{_0x26eebb[_0x4f582e['toLowerCase']()]=_0x38c216;});else{if(Array[_0x19aa2e(0xe5)](_0x6f45c0[_0x19aa2e(0xf5)]))for(const [_0x6fcdb7,_0x34bd05]of _0x6f45c0[_0x19aa2e(0xf5)]){_0x26eebb[_0x6fcdb7[_0x19aa2e(0xeb)]()]=_0x34bd05;}else for(const [_0x16bb3d,_0x57f354]of Object[_0x19aa2e(0xf7)](_0x6f45c0['headers'])){_0x57f354!==undefined&&(_0x26eebb[_0x16bb3d['toLowerCase']()]=_0x57f354);}}}let _0x3c6e9d;if(_0x6f45c0?.[_0x19aa2e(0xf8)])try{_0x3c6e9d=JSON[_0x19aa2e(0xd5)](_0x6f45c0[_0x19aa2e(0xf8)]);}catch{_0x3c6e9d=_0x6f45c0[_0x19aa2e(0xf8)];}return{'method':_0x6f45c0?.[_0x19aa2e(0xde)]??_0x19aa2e(0xd0),'url':_0x1b258d,'headers':_0x26eebb,'body':_0x3c6e9d};}['verify'](_0x34cd9d){const _0x24c632=a207_0x2bcc65,_0x5d78f8=this['stubs'][_0x24c632(0x115)](_0x1d41f8=>!_0x1d41f8[_0x24c632(0xcd)]);if(_0x5d78f8[_0x24c632(0x110)]>0x0){const _0x1fd955=_0x5d78f8[_0x24c632(0xd3)](_0x30a171=>{const _0x106389=_0x24c632,_0x12068d=_0x30a171[_0x106389(0xef)]?'\x20('+_0x30a171[_0x106389(0xef)]+')':'',_0x1726c0=_0x30a171['stack']['split']('\x0a')['slice'](0x2,0x5)[_0x106389(0xe7)]('\x0a');return _0x106389(0x10e)+_0x12068d+'\x20registered\x20at:\x0a'+_0x1726c0;});_0x34cd9d[_0x24c632(0x11a)](_0x5d78f8['length']+_0x24c632(0x104)+_0x1fd955[_0x24c632(0xe7)]('\x0a\x0a'));}}[a207_0x2bcc65(0xd9)](){const _0x292d03=a207_0x2bcc65;return[...this[_0x292d03(0x117)]];}[a207_0x2bcc65(0xe2)](){const _0x5b4e32=a207_0x2bcc65;return this[_0x5b4e32(0x117)][this['requests']['length']-0x1];}[a207_0x2bcc65(0xf2)](_0x3f237a,_0x427c87){const _0xe215c8=a207_0x2bcc65;return this[_0xe215c8(0x117)][_0xe215c8(0xf6)](_0x4474ce=>{const _0x546aa9=_0xe215c8;if(_0x4474ce[_0x546aa9(0xde)]['toUpperCase']()!==_0x3f237a[_0x546aa9(0xd1)]())return![];if(typeof _0x427c87==='string')return _0x4474ce[_0x546aa9(0xff)]['includes'](_0x427c87);return _0x427c87['test'](_0x4474ce[_0x546aa9(0xff)]);});}[a207_0x2bcc65(0xdb)](_0x24b71d){const _0x397539=a207_0x2bcc65;return this[_0x397539(0xf3)][_0x24b71d]?.['matchCount']??0x0;}[a207_0x2bcc65(0xe8)](){const _0x37c146=a207_0x2bcc65;this[_0x37c146(0xf3)]=[],this['requests']=[],this['fetchMock']=null;}static[a207_0x2bcc65(0xdd)](_0x1a0afe){const _0xfda9a6=a207_0x2bcc65,_0x5e17a1={0xc8:'OK',0xc9:_0xfda9a6(0xfe),0xcc:_0xfda9a6(0x103),0x190:_0xfda9a6(0x109),0x191:_0xfda9a6(0xe1),0x193:_0xfda9a6(0xd7),0x194:'Not\x20Found',0x199:_0xfda9a6(0xf1),0x1a6:_0xfda9a6(0xd6),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0xfda9a6(0x11c),0x1f6:'Bad\x20Gateway',0x1f7:_0xfda9a6(0x114)};return _0x5e17a1[_0x1a0afe]??'Unknown';}}function a207_0x2919(_0x3e8e25,_0x46ef2d){_0x3e8e25=_0x3e8e25-0xcd;const _0x5a39c7=a207_0x5a39();let _0x291962=_0x5a39c7[_0x3e8e25];return _0x291962;}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ function a207_0x4bb5(_0x3b4956,_0x47c141){_0x3b4956=_0x3b4956-0x1ee;const _0x4b0b=a207_0x4b0b();let _0x4bb59e=_0x4b0b[_0x3b4956];return _0x4bb59e;}const a207_0x269e64=a207_0x4bb5;(function(_0x2d1164,_0x57e23c){const _0x904d54=a207_0x4bb5,_0x176f5c=_0x2d1164();while(!![]){try{const _0x122db6=-parseInt(_0x904d54(0x1fc))/0x1+parseInt(_0x904d54(0x210))/0x2+parseInt(_0x904d54(0x1f3))/0x3*(parseInt(_0x904d54(0x21c))/0x4)+parseInt(_0x904d54(0x21b))/0x5+parseInt(_0x904d54(0x219))/0x6*(-parseInt(_0x904d54(0x225))/0x7)+parseInt(_0x904d54(0x1fd))/0x8*(-parseInt(_0x904d54(0x233))/0x9)+parseInt(_0x904d54(0x20c))/0xa;if(_0x122db6===_0x57e23c)break;else _0x176f5c['push'](_0x176f5c['shift']());}catch(_0x1c25f5){_0x176f5c['push'](_0x176f5c['shift']());}}}(a207_0x4b0b,0xcf537));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x269e64(0x220)]=[];['requests']=[];[a207_0x269e64(0x1f9)]=null;['REST'](_0x4bb8d0,_0x493534){return _0x4abc3b=>{const _0x18e070=a207_0x4bb5;if(_0x4abc3b['method'][_0x18e070(0x201)]()!==_0x4bb8d0[_0x18e070(0x201)]())return![];const _0x36bd2e=new URL(_0x4abc3b[_0x18e070(0x224)]);if(typeof _0x493534==='string')return _0x36bd2e[_0x18e070(0x226)]===_0x493534||_0x36bd2e[_0x18e070(0x226)]['includes'](_0x493534);return _0x493534[_0x18e070(0x222)](_0x36bd2e[_0x18e070(0x226)]);};}[a207_0x269e64(0x20f)](_0x1f5c70,_0x4210c5){return _0x5c5089=>{const _0x3aa3b2=a207_0x4bb5;if(!_0x1f5c70(_0x5c5089))return![];const _0x4226b0=new URL(_0x5c5089['url']);return Object[_0x3aa3b2(0x22a)](_0x4210c5)[_0x3aa3b2(0x217)](([_0x575507,_0x5ee374])=>_0x4226b0[_0x3aa3b2(0x214)][_0x3aa3b2(0x209)](_0x575507)===_0x5ee374);};}['withBody'](_0x54e66d,_0x1cae1a){return _0x1062d8=>{const _0x20fa59=a207_0x4bb5;if(!_0x54e66d(_0x1062d8))return![];if(typeof _0x1cae1a==='function')return _0x1cae1a(_0x1062d8[_0x20fa59(0x23d)]);return JSON[_0x20fa59(0x1f6)](_0x1062d8[_0x20fa59(0x23d)])===JSON[_0x20fa59(0x1f6)](_0x1cae1a);};}[a207_0x269e64(0x213)](_0x153b87,_0x52aa33){return _0x195a1b=>{const _0x107751=a207_0x4bb5;if(!_0x153b87(_0x195a1b))return![];const _0x32eb7d=new URL(_0x195a1b[_0x107751(0x224)]);return _0x32eb7d[_0x107751(0x20b)]===_0x52aa33;};}[a207_0x269e64(0x1ff)](_0x4f145c,_0x226f14,_0x463768){const _0x4c44d4=a207_0x269e64;this['stubs'][_0x4c44d4(0x1fa)]({'matcher':_0x4f145c,'responder':_0x226f14,'matched':![],'matchCount':0x0,'stack':new Error()[_0x4c44d4(0x218)]??'','description':_0x463768?.[_0x4c44d4(0x23c)]});}['registerWithInspector'](_0x998c17,_0x216dde,_0x2a94f6){const _0x2c3b89=a207_0x269e64,_0x1dfa7f=_0x5b1d07=>{return _0x2a94f6(_0x5b1d07['body'],_0x5b1d07),_0x216dde(_0x5b1d07);};this[_0x2c3b89(0x1ff)](_0x998c17,_0x1dfa7f);}static['jsonResponse'](_0x51e4db,_0x3c0106=0xc8){const _0x1f2882=a207_0x269e64;return()=>new Response(JSON['stringify'](_0x51e4db),{'status':_0x3c0106,'headers':{'Content-Type':_0x1f2882(0x216)}});}static['errorResponse'](_0x41be64,_0x3847a5,_0x72ad40='simple'){return()=>{const _0x2b974e=a207_0x4bb5;let _0x3fa52b;switch(_0x72ad40){case _0x2b974e(0x236):_0x3fa52b={'errors':{'error':_0x3847a5,'message':_0x3847a5,'severity':'error','status_code':_0x41be64}};break;case'rfc9457':_0x3fa52b={'type':_0x2b974e(0x21f)+_0x41be64,'title':HTTPMockRegistry[_0x2b974e(0x211)](_0x41be64),'status':_0x41be64,'detail':_0x3847a5};break;default:_0x3fa52b={'error':_0x3847a5};}return new Response(JSON['stringify'](_0x3fa52b),{'status':_0x41be64,'headers':{'Content-Type':_0x2b974e(0x216)}});};}static[a207_0x269e64(0x22e)](_0x49be72,_0x2c6083,_0x5dcace=0xc8){const _0x307ecb=a207_0x269e64;return()=>new Response(JSON['stringify'](_0x49be72),{'status':_0x5dcace,'headers':{'Content-Type':_0x307ecb(0x216),..._0x2c6083}});}static[a207_0x269e64(0x227)](_0x389377,_0x4a7c03=0xc8){const _0x5b9901=a207_0x269e64;return()=>new Response(_0x389377,{'status':_0x4a7c03,'headers':{'Content-Type':_0x5b9901(0x21e)}});}static['networkError'](_0x282596){return()=>{throw new Error(_0x282596);};}[a207_0x269e64(0x204)](){const _0x16a2e3=a207_0x269e64;return this[_0x16a2e3(0x1f9)]=vi['fn']()[_0x16a2e3(0x21d)](async(_0x58ed21,_0x17c85a)=>{const _0x2c743c=_0x16a2e3,_0x1f2cfd=this[_0x2c743c(0x229)](_0x58ed21,_0x17c85a);this[_0x2c743c(0x208)][_0x2c743c(0x1fa)](_0x1f2cfd);for(const _0x5f4e6f of this[_0x2c743c(0x220)]){if(_0x5f4e6f[_0x2c743c(0x1f5)](_0x1f2cfd))return _0x5f4e6f[_0x2c743c(0x239)]=!![],_0x5f4e6f[_0x2c743c(0x1ef)]++,_0x5f4e6f['responder'](_0x1f2cfd);}const _0x37e43b=this[_0x2c743c(0x220)][_0x2c743c(0x22d)]((_0x3d4ea2,_0x1f38d7)=>'\x20\x20'+(_0x1f38d7+0x1)+'.\x20'+(_0x3d4ea2[_0x2c743c(0x23c)]??_0x2c743c(0x237)))['join']('\x0a');throw new Error(_0x2c743c(0x20d)+_0x1f2cfd[_0x2c743c(0x1f7)]+'\x20'+_0x1f2cfd[_0x2c743c(0x224)]+'\x0a'+(_0x2c743c(0x205)+JSON[_0x2c743c(0x1f6)](_0x1f2cfd[_0x2c743c(0x23d)])+'\x0a')+(_0x2c743c(0x1fe)+(_0x37e43b||_0x2c743c(0x1ee))));}),this['fetchMock'];}[a207_0x269e64(0x229)](_0x2894ef,_0x15c9ba){const _0x33edc6=a207_0x269e64,_0x40b180={};if(_0x15c9ba?.[_0x33edc6(0x234)]){if(_0x15c9ba[_0x33edc6(0x234)]instanceof Headers)_0x15c9ba[_0x33edc6(0x234)][_0x33edc6(0x22c)]((_0x5ace4f,_0x3423dd)=>{_0x40b180[_0x3423dd['toLowerCase']()]=_0x5ace4f;});else{if(Array['isArray'](_0x15c9ba['headers']))for(const [_0x2df1df,_0x4113e8]of _0x15c9ba['headers']){_0x40b180[_0x2df1df['toLowerCase']()]=_0x4113e8;}else for(const [_0xef77eb,_0x111f03]of Object['entries'](_0x15c9ba[_0x33edc6(0x234)])){_0x111f03!==undefined&&(_0x40b180[_0xef77eb[_0x33edc6(0x212)]()]=_0x111f03);}}}let _0x193c34;if(_0x15c9ba?.['body'])try{_0x193c34=JSON[_0x33edc6(0x200)](_0x15c9ba['body']);}catch{_0x193c34=_0x15c9ba[_0x33edc6(0x23d)];}return{'method':_0x15c9ba?.[_0x33edc6(0x1f7)]??_0x33edc6(0x20a),'url':_0x2894ef,'headers':_0x40b180,'body':_0x193c34};}[a207_0x269e64(0x21a)](_0x2e1f2f){const _0x54ebc2=a207_0x269e64,_0x4e0b53=this[_0x54ebc2(0x220)]['filter'](_0x1dcd21=>!_0x1dcd21['matched']);if(_0x4e0b53['length']>0x0){const _0x335759=_0x4e0b53[_0x54ebc2(0x22d)](_0x3442a8=>{const _0x5540f1=_0x54ebc2,_0x1f0d6b=_0x3442a8[_0x5540f1(0x23c)]?'\x20('+_0x3442a8[_0x5540f1(0x23c)]+')':'',_0x2e0563=_0x3442a8['stack'][_0x5540f1(0x23a)]('\x0a')[_0x5540f1(0x1f8)](0x2,0x5)[_0x5540f1(0x22f)]('\x0a');return _0x5540f1(0x20e)+_0x1f0d6b+_0x5540f1(0x207)+_0x2e0563;});_0x2e1f2f[_0x54ebc2(0x231)](_0x4e0b53[_0x54ebc2(0x238)]+_0x54ebc2(0x1f0)+_0x335759['join']('\x0a\x0a'));}}[a207_0x269e64(0x1f1)](){const _0x535092=a207_0x269e64;return[...this[_0x535092(0x208)]];}[a207_0x269e64(0x1f2)](){const _0xb43c51=a207_0x269e64;return this[_0xb43c51(0x208)][this[_0xb43c51(0x208)][_0xb43c51(0x238)]-0x1];}[a207_0x269e64(0x223)](_0xc4cb8d,_0xe92fd){const _0x1abc89=a207_0x269e64;return this['requests'][_0x1abc89(0x1f4)](_0x24e100=>{const _0x278f5c=_0x1abc89;if(_0x24e100['method']['toUpperCase']()!==_0xc4cb8d[_0x278f5c(0x201)]())return![];if(typeof _0xe92fd===_0x278f5c(0x232))return _0x24e100[_0x278f5c(0x224)][_0x278f5c(0x206)](_0xe92fd);return _0xe92fd['test'](_0x24e100[_0x278f5c(0x224)]);});}['getMatchCount'](_0x4981ed){const _0x384972=a207_0x269e64;return this[_0x384972(0x220)][_0x4981ed]?.['matchCount']??0x0;}['reset'](){const _0x40c1f1=a207_0x269e64;this[_0x40c1f1(0x220)]=[],this[_0x40c1f1(0x208)]=[],this['fetchMock']=null;}static[a207_0x269e64(0x211)](_0x45e904){const _0x676af1=a207_0x269e64,_0x15c7e4={0xc8:'OK',0xc9:_0x676af1(0x215),0xcc:_0x676af1(0x221),0x190:_0x676af1(0x23b),0x191:'Unauthorized',0x193:_0x676af1(0x235),0x194:_0x676af1(0x230),0x199:_0x676af1(0x202),0x1a6:_0x676af1(0x203),0x1ad:_0x676af1(0x228),0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x676af1(0x22b)};return _0x15c7e4[_0x45e904]??_0x676af1(0x1fb);}}function a207_0x4b0b(){const _0x10cf6a=['stubs','No\x20Content','test','wasCalled','url','280fEruPM','pathname','textResponse','Too\x20Many\x20Requests','parseRequest','entries','Service\x20Unavailable','forEach','map','jsonResponseWithHeaders','join','Not\x20Found','fail','string','304137UlcxXd','headers','Forbidden','td-api','unnamed\x20stub','length','matched','split','Bad\x20Request','description','body','\x20\x20(none)','matchCount','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getRequests','getLastRequest','164676AnAITd','some','matcher','stringify','method','slice','fetchMock','push','Unknown','1079203mdAnRn','88mgzXzc','Registered\x20stubs:\x0a','register','parse','toUpperCase','Conflict','Unprocessable\x20Entity','createFetch','Request\x20body:\x20','includes','\x20registered\x20at:\x0a','requests','get','GET','host','31439100cYYTGE','No\x20stub\x20matched\x20request:\x20','Unmatched\x20stub','withQuery','461448uxFxRL','getStatusText','toLowerCase','withHost','searchParams','Created','application/json','every','stack','227994ULshZW','verify','854995FFceZq','20XlBQTe','mockImplementation','text/plain','https://api.treasuredata.com/errors/'];a207_0x4b0b=function(){return _0x10cf6a;};return a207_0x4b0b();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a208_0x10f9(){var _0x39d9de=['9TecJbd','3267616zOGAAc','55868NFAPrh','292761paOsUd','7338aWxpXS','391205hLwzeV','1548380wxjOzS','841365eMFUHc'];a208_0x10f9=function(){return _0x39d9de;};return a208_0x10f9();}(function(_0x1efa72,_0x1f063f){var _0x27d6d9=a208_0x2e8b,_0x20bc21=_0x1efa72();while(!![]){try{var _0x27f776=-parseInt(_0x27d6d9(0x16f))/0x1*(-parseInt(_0x27d6d9(0x171))/0x2)+parseInt(_0x27d6d9(0x172))/0x3+parseInt(_0x27d6d9(0x175))/0x4+parseInt(_0x27d6d9(0x174))/0x5+parseInt(_0x27d6d9(0x173))/0x6+-parseInt(_0x27d6d9(0x16e))/0x7+-parseInt(_0x27d6d9(0x170))/0x8;if(_0x27f776===_0x1f063f)break;else _0x20bc21['push'](_0x20bc21['shift']());}catch(_0x50a947){_0x20bc21['push'](_0x20bc21['shift']());}}}(a208_0x10f9,0x460b9));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a208_0x2e8b(_0x1886b2,_0x5e9547){_0x1886b2=_0x1886b2-0x16e;var _0x10f976=a208_0x10f9();var _0x2e8b1c=_0x10f976[_0x1886b2];return _0x2e8b1c;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x40f685,_0xc213dd){var _0x106ecf=a208_0x4167,_0x299a8e=_0x40f685();while(!![]){try{var _0x5df3f3=parseInt(_0x106ecf(0xe4))/0x1+-parseInt(_0x106ecf(0xe8))/0x2*(parseInt(_0x106ecf(0xee))/0x3)+parseInt(_0x106ecf(0xe5))/0x4+-parseInt(_0x106ecf(0xe9))/0x5*(parseInt(_0x106ecf(0xed))/0x6)+parseInt(_0x106ecf(0xe7))/0x7*(-parseInt(_0x106ecf(0xec))/0x8)+parseInt(_0x106ecf(0xeb))/0x9+-parseInt(_0x106ecf(0xe6))/0xa*(parseInt(_0x106ecf(0xea))/0xb);if(_0x5df3f3===_0xc213dd)break;else _0x299a8e['push'](_0x299a8e['shift']());}catch(_0x522b80){_0x299a8e['push'](_0x299a8e['shift']());}}}(a208_0x46a3,0xd252e));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a208_0x4167(_0x15c391,_0x557719){_0x15c391=_0x15c391-0xe4;var _0x46a391=a208_0x46a3();var _0x4167fe=_0x46a391[_0x15c391];return _0x4167fe;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a208_0x46a3(){var _0x52d8da=['67644VPUthu','10618810sGituj','157017ThKRnX','526892hpaukj','104680hyPTxv','11DcjdTn','12792924xBTlpj','104vOGoIi','6XqDwzM','3AFVpSw','1061005nmcwRZ'];a208_0x46a3=function(){return _0x52d8da;};return a208_0x46a3();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x471569,_0x5cbaa1){const _0x395484=a209_0x558f,_0x1d17e4=_0x471569();while(!![]){try{const _0x324d71=parseInt(_0x395484(0x140))/0x1+parseInt(_0x395484(0x13e))/0x2+-parseInt(_0x395484(0x144))/0x3*(parseInt(_0x395484(0x13b))/0x4)+-parseInt(_0x395484(0x143))/0x5+-parseInt(_0x395484(0x146))/0x6+-parseInt(_0x395484(0x141))/0x7*(parseInt(_0x395484(0x13f))/0x8)+parseInt(_0x395484(0x13c))/0x9;if(_0x324d71===_0x5cbaa1)break;else _0x1d17e4['push'](_0x1d17e4['shift']());}catch(_0x2cc0cc){_0x1d17e4['push'](_0x1d17e4['shift']());}}}(a209_0x30ee,0xdaef7));export async function batchAsync(_0x3a7e5a,_0x1195fd,_0x479c35=0xa){const _0x1759ef=a209_0x558f,_0x402276=[];for(let _0x37c133=0x0;_0x37c133<_0x3a7e5a[_0x1759ef(0x142)];_0x37c133+=_0x479c35){const _0x4a801f=_0x3a7e5a[_0x1759ef(0x13a)](_0x37c133,_0x37c133+_0x479c35),_0x3f1bbd=await Promise['all'](_0x4a801f[_0x1759ef(0x13d)](_0x1195fd));_0x402276[_0x1759ef(0x145)](..._0x3f1bbd);}return _0x402276;}function a209_0x558f(_0x3ee3f2,_0xffbbc3){_0x3ee3f2=_0x3ee3f2-0x13a;const _0x30ee71=a209_0x30ee();let _0x558fec=_0x30ee71[_0x3ee3f2];return _0x558fec;}function a209_0x30ee(){const _0x570842=['3kUcYjM','push','1072704XLVdBW','slice','1048632OyanAY','6514902cWRqAb','map','2223870cumXBT','96MRZxBv','1156394nsrowu','415457UftjzA','length','4711470UjUUtZ'];a209_0x30ee=function(){return _0x570842;};return a209_0x30ee();}
1
+ function a209_0x47fa(){const _0x40aa10=['61400FkYESu','531234MQkbeE','791PtqFgJ','422iIRBnS','1215864LApEDN','18163390afmVaD','188grMMXR','all','length','7829613GOdZHW','279vngCIh','push','7370wpyJjq'];a209_0x47fa=function(){return _0x40aa10;};return a209_0x47fa();}(function(_0x12c1e8,_0x3f3e78){const _0x10dba0=a209_0x3ba5,_0x475e3e=_0x12c1e8();while(!![]){try{const _0xdc38e8=-parseInt(_0x10dba0(0x1d9))/0x1*(parseInt(_0x10dba0(0x1df))/0x2)+parseInt(_0x10dba0(0x1dd))/0x3+-parseInt(_0x10dba0(0x1e2))/0x4*(-parseInt(_0x10dba0(0x1db))/0x5)+parseInt(_0x10dba0(0x1e0))/0x6+-parseInt(_0x10dba0(0x1de))/0x7*(parseInt(_0x10dba0(0x1dc))/0x8)+-parseInt(_0x10dba0(0x1d8))/0x9+parseInt(_0x10dba0(0x1e1))/0xa;if(_0xdc38e8===_0x3f3e78)break;else _0x475e3e['push'](_0x475e3e['shift']());}catch(_0x22b610){_0x475e3e['push'](_0x475e3e['shift']());}}}(a209_0x47fa,0x728f6));function a209_0x3ba5(_0x3430c1,_0x1ac4d8){_0x3430c1=_0x3430c1-0x1d8;const _0x47fafa=a209_0x47fa();let _0x3ba5ab=_0x47fafa[_0x3430c1];return _0x3ba5ab;}export async function batchAsync(_0x461f67,_0x2f54a1,_0x51b6aa=0xa){const _0x39c6b0=a209_0x3ba5,_0x2dc2df=[];for(let _0x48326b=0x0;_0x48326b<_0x461f67[_0x39c6b0(0x1e4)];_0x48326b+=_0x51b6aa){const _0x20cd85=_0x461f67['slice'](_0x48326b,_0x48326b+_0x51b6aa),_0x2312c0=await Promise[_0x39c6b0(0x1e3)](_0x20cd85['map'](_0x2f54a1));_0x2dc2df[_0x39c6b0(0x1da)](..._0x2312c0);}return _0x2dc2df;}
@@ -1 +1 @@
1
- const a210_0x3fcdf3=a210_0x38b1;(function(_0x358ae7,_0x63ed20){const _0x4678ca=a210_0x38b1,_0x5f0583=_0x358ae7();while(!![]){try{const _0x282bcc=-parseInt(_0x4678ca(0xc9))/0x1+parseInt(_0x4678ca(0xbc))/0x2+parseInt(_0x4678ca(0xcb))/0x3+-parseInt(_0x4678ca(0xb7))/0x4*(parseInt(_0x4678ca(0xb4))/0x5)+-parseInt(_0x4678ca(0xc5))/0x6+parseInt(_0x4678ca(0xc7))/0x7*(parseInt(_0x4678ca(0xbe))/0x8)+parseInt(_0x4678ca(0xc0))/0x9;if(_0x282bcc===_0x63ed20)break;else _0x5f0583['push'](_0x5f0583['shift']());}catch(_0x3524a8){_0x5f0583['push'](_0x5f0583['shift']());}}}(a210_0x4287,0xd1f1d));import*as a210_0x4ca9f0 from'chalk';const Chalk=a210_0x4ca9f0[a210_0x3fcdf3(0xcf)];export function shouldUseColor(_0x1214ca={}){const _0x527c0e=a210_0x3fcdf3;if(_0x1214ca['noColor']===!![])return![];if(_0x1214ca[_0x527c0e(0xb9)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x527c0e(0xc2)][_0x527c0e(0xb3)]??![];}function a210_0x4287(){const _0x1c616a=['14487705tBxQRN','cyan','stdout','string','blue','1505406ARVnFX','stringify','8393cYkDgD','length','622495RKYIij','object','834216qUtzZi','number','green','boolean','Chalk','dim','isTTY','5INMmAA','repeat','join','2881072qQWqOe','entries','color','isArray','map','774258unFzGs','null','1192HNYooE','yellow'];a210_0x4287=function(){return _0x1c616a;};return a210_0x4287();}export function getChalk(_0x278f9a={}){if(shouldUseColor(_0x278f9a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x3fa1a3,_0xdd8b2={}){const _0x341f20=a210_0x3fcdf3;return getChalk(_0xdd8b2)[_0x341f20(0xd0)](_0x3fa1a3);}export function colorHeader(_0x49e540,_0x324273={}){return getChalk(_0x324273)['cyan'](_0x49e540);}function a210_0x38b1(_0x4c8b91,_0x561495){_0x4c8b91=_0x4c8b91-0xb3;const _0x42872b=a210_0x4287();let _0x38b1ea=_0x42872b[_0x4c8b91];return _0x38b1ea;}export function colorType(_0x55d505,_0x48669c={}){const _0x49f2fc=a210_0x3fcdf3;return getChalk(_0x48669c)[_0x49f2fc(0xd0)](_0x55d505);}export function colorJSONKey(_0x2f5bcd,_0x512636={}){const _0x37787b=a210_0x3fcdf3;return getChalk(_0x512636)[_0x37787b(0xc4)](_0x2f5bcd);}export function colorJSONString(_0x3cde35,_0x3a8d5c={}){const _0xb76d02=a210_0x3fcdf3;return getChalk(_0x3a8d5c)[_0xb76d02(0xcd)](_0x3cde35);}export function colorJSONNumber(_0x1bb66d,_0x51d742={}){const _0x4ed741=a210_0x3fcdf3;return getChalk(_0x51d742)[_0x4ed741(0xc1)](_0x1bb66d);}export function colorJSONBoolean(_0x59bebe,_0xc5053e={}){const _0x1ec299=a210_0x3fcdf3;return getChalk(_0xc5053e)[_0x1ec299(0xbf)](_0x59bebe);}export function colorJSONNull(_0x3ac7e8,_0xf97754={}){const _0x3f965c=a210_0x3fcdf3;return getChalk(_0xf97754)[_0x3f965c(0xd0)](_0x3ac7e8);}export function colorizeJSONCompact(_0x5cf2df,_0x56e68e={}){const _0x2f6107=a210_0x3fcdf3;if(!shouldUseColor(_0x56e68e))return JSON['stringify'](_0x5cf2df);if(_0x5cf2df===null)return colorJSONNull(_0x2f6107(0xbd),_0x56e68e);if(typeof _0x5cf2df===_0x2f6107(0xce))return colorJSONBoolean(String(_0x5cf2df),_0x56e68e);if(typeof _0x5cf2df==='number')return colorJSONNumber(String(_0x5cf2df),_0x56e68e);if(typeof _0x5cf2df==='string')return colorJSONString(JSON[_0x2f6107(0xc6)](_0x5cf2df),_0x56e68e);if(Array[_0x2f6107(0xba)](_0x5cf2df)){if(_0x5cf2df[_0x2f6107(0xc8)]===0x0)return'[]';const _0x6d612=_0x5cf2df['map'](_0xc42186=>colorizeJSONCompact(_0xc42186,_0x56e68e));return'['+_0x6d612['join'](',')+']';}if(typeof _0x5cf2df===_0x2f6107(0xca)){const _0x41d845=Object[_0x2f6107(0xb8)](_0x5cf2df);if(_0x41d845['length']===0x0)return'{}';const _0x336a9d=_0x41d845[_0x2f6107(0xbb)](([_0x42ecfe,_0x5804dd])=>{const _0x29b8d4=colorJSONKey(JSON['stringify'](_0x42ecfe),_0x56e68e),_0x51dd12=colorizeJSONCompact(_0x5804dd,_0x56e68e);return _0x29b8d4+':'+_0x51dd12;});return'{'+_0x336a9d['join'](',')+'}';}return String(_0x5cf2df);}export function colorizeJSON(_0xc9f827,_0x2556b1={},_0x1a929f=0x0){const _0x484e19=a210_0x3fcdf3;if(!shouldUseColor(_0x2556b1))return JSON['stringify'](_0xc9f827,null,0x2);const _0x313d2a='\x20'['repeat'](_0x1a929f),_0x16e148=_0x1a929f+0x2;if(_0xc9f827===null)return colorJSONNull(_0x484e19(0xbd),_0x2556b1);if(typeof _0xc9f827===_0x484e19(0xce))return colorJSONBoolean(String(_0xc9f827),_0x2556b1);if(typeof _0xc9f827===_0x484e19(0xcc))return colorJSONNumber(String(_0xc9f827),_0x2556b1);if(typeof _0xc9f827===_0x484e19(0xc3))return colorJSONString(JSON[_0x484e19(0xc6)](_0xc9f827),_0x2556b1);if(Array[_0x484e19(0xba)](_0xc9f827)){if(_0xc9f827['length']===0x0)return'[]';const _0x4a45d1=_0xc9f827[_0x484e19(0xbb)](_0x574d9b=>{const _0xec32e4=_0x484e19,_0x379e5e=colorizeJSON(_0x574d9b,_0x2556b1,_0x16e148);return''+'\x20'[_0xec32e4(0xb5)](_0x16e148)+_0x379e5e;});return'[\x0a'+_0x4a45d1['join'](',\x0a')+('\x0a'+_0x313d2a+']');}if(typeof _0xc9f827===_0x484e19(0xca)){const _0x216053=Object['entries'](_0xc9f827);if(_0x216053['length']===0x0)return'{}';const _0x4ceb86=_0x216053[_0x484e19(0xbb)](([_0x2204f1,_0xf7f7d3])=>{const _0x4bf82e=_0x484e19,_0xedaca7=colorJSONKey(JSON[_0x4bf82e(0xc6)](_0x2204f1),_0x2556b1),_0x5435cd=colorizeJSON(_0xf7f7d3,_0x2556b1,_0x16e148);return''+'\x20'[_0x4bf82e(0xb5)](_0x16e148)+_0xedaca7+':\x20'+_0x5435cd;});return'{\x0a'+_0x4ceb86[_0x484e19(0xb6)](',\x0a')+('\x0a'+_0x313d2a+'}');}return String(_0xc9f827);}
1
+ const a210_0x4e61c9=a210_0x219d;(function(_0x30def0,_0x3134c1){const _0x6e2cdd=a210_0x219d,_0xf124c3=_0x30def0();while(!![]){try{const _0x384d9d=-parseInt(_0x6e2cdd(0x8f))/0x1*(parseInt(_0x6e2cdd(0x90))/0x2)+parseInt(_0x6e2cdd(0xa0))/0x3+parseInt(_0x6e2cdd(0x86))/0x4*(parseInt(_0x6e2cdd(0x93))/0x5)+parseInt(_0x6e2cdd(0x97))/0x6+-parseInt(_0x6e2cdd(0x9e))/0x7*(-parseInt(_0x6e2cdd(0x88))/0x8)+-parseInt(_0x6e2cdd(0x92))/0x9+-parseInt(_0x6e2cdd(0xa4))/0xa;if(_0x384d9d===_0x3134c1)break;else _0xf124c3['push'](_0xf124c3['shift']());}catch(_0x2e87e8){_0xf124c3['push'](_0xf124c3['shift']());}}}(a210_0x5cc5,0x79dbd));import*as a210_0x57a8ad from'chalk';const Chalk=a210_0x57a8ad[a210_0x4e61c9(0x9b)];export function shouldUseColor(_0x5e001f={}){const _0x47f11c=a210_0x4e61c9;if(_0x5e001f[_0x47f11c(0xa2)]===!![])return![];if(_0x5e001f[_0x47f11c(0x9a)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x47f11c(0x8c)][_0x47f11c(0x9f)]??![];}export function getChalk(_0x109ebd={}){if(shouldUseColor(_0x109ebd))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x355fea,_0x45be4a={}){const _0x55be18=a210_0x4e61c9;return getChalk(_0x45be4a)[_0x55be18(0x9c)](_0x355fea);}export function colorHeader(_0x5bbcf7,_0x27ea4c={}){const _0x3dba0b=a210_0x4e61c9;return getChalk(_0x27ea4c)[_0x3dba0b(0x95)](_0x5bbcf7);}export function colorType(_0x5080d6,_0x4465f1={}){return getChalk(_0x4465f1)['dim'](_0x5080d6);}function a210_0x219d(_0x31653f,_0x426055){_0x31653f=_0x31653f-0x85;const _0x5cc521=a210_0x5cc5();let _0x219de6=_0x5cc521[_0x31653f];return _0x219de6;}export function colorJSONKey(_0x13bf08,_0x1756b2={}){const _0x8b13a1=a210_0x4e61c9;return getChalk(_0x1756b2)[_0x8b13a1(0x85)](_0x13bf08);}export function colorJSONString(_0x4936fc,_0x270aec={}){const _0x3bcd59=a210_0x4e61c9;return getChalk(_0x270aec)[_0x3bcd59(0x89)](_0x4936fc);}export function colorJSONNumber(_0x21670c,_0x16636f={}){const _0x58e4ec=a210_0x4e61c9;return getChalk(_0x16636f)[_0x58e4ec(0x95)](_0x21670c);}export function colorJSONBoolean(_0x248982,_0x30077f={}){const _0x10b478=a210_0x4e61c9;return getChalk(_0x30077f)[_0x10b478(0x8d)](_0x248982);}export function colorJSONNull(_0x5c953a,_0x331a65={}){const _0x58abec=a210_0x4e61c9;return getChalk(_0x331a65)[_0x58abec(0x9c)](_0x5c953a);}export function colorizeJSONCompact(_0x54db0d,_0x3a83a6={}){const _0x5cb08d=a210_0x4e61c9;if(!shouldUseColor(_0x3a83a6))return JSON[_0x5cb08d(0x87)](_0x54db0d);if(_0x54db0d===null)return colorJSONNull(_0x5cb08d(0x8b),_0x3a83a6);if(typeof _0x54db0d==='boolean')return colorJSONBoolean(String(_0x54db0d),_0x3a83a6);if(typeof _0x54db0d===_0x5cb08d(0x9d))return colorJSONNumber(String(_0x54db0d),_0x3a83a6);if(typeof _0x54db0d==='string')return colorJSONString(JSON[_0x5cb08d(0x87)](_0x54db0d),_0x3a83a6);if(Array[_0x5cb08d(0x8a)](_0x54db0d)){if(_0x54db0d['length']===0x0)return'[]';const _0x4f984e=_0x54db0d['map'](_0xd79d9=>colorizeJSONCompact(_0xd79d9,_0x3a83a6));return'['+_0x4f984e[_0x5cb08d(0xa1)](',')+']';}if(typeof _0x54db0d==='object'){const _0x4865e7=Object[_0x5cb08d(0x98)](_0x54db0d);if(_0x4865e7['length']===0x0)return'{}';const _0x341847=_0x4865e7[_0x5cb08d(0xa3)](([_0x56ff30,_0x2e6b5f])=>{const _0x186358=_0x5cb08d,_0x2d4de9=colorJSONKey(JSON[_0x186358(0x87)](_0x56ff30),_0x3a83a6),_0x41c6a1=colorizeJSONCompact(_0x2e6b5f,_0x3a83a6);return _0x2d4de9+':'+_0x41c6a1;});return'{'+_0x341847[_0x5cb08d(0xa1)](',')+'}';}return String(_0x54db0d);}export function colorizeJSON(_0x2aa3d1,_0x5c3cea={},_0x30e03d=0x0){const _0x4b5ff9=a210_0x4e61c9;if(!shouldUseColor(_0x5c3cea))return JSON[_0x4b5ff9(0x87)](_0x2aa3d1,null,0x2);const _0x906c5f='\x20'['repeat'](_0x30e03d),_0x1869b6=_0x30e03d+0x2;if(_0x2aa3d1===null)return colorJSONNull(_0x4b5ff9(0x8b),_0x5c3cea);if(typeof _0x2aa3d1===_0x4b5ff9(0x8e))return colorJSONBoolean(String(_0x2aa3d1),_0x5c3cea);if(typeof _0x2aa3d1===_0x4b5ff9(0x9d))return colorJSONNumber(String(_0x2aa3d1),_0x5c3cea);if(typeof _0x2aa3d1===_0x4b5ff9(0x99))return colorJSONString(JSON[_0x4b5ff9(0x87)](_0x2aa3d1),_0x5c3cea);if(Array[_0x4b5ff9(0x8a)](_0x2aa3d1)){if(_0x2aa3d1[_0x4b5ff9(0x94)]===0x0)return'[]';const _0x50f7e5=_0x2aa3d1[_0x4b5ff9(0xa3)](_0xf46962=>{const _0x85dc8=colorizeJSON(_0xf46962,_0x5c3cea,_0x1869b6);return''+'\x20'['repeat'](_0x1869b6)+_0x85dc8;});return'[\x0a'+_0x50f7e5[_0x4b5ff9(0xa1)](',\x0a')+('\x0a'+_0x906c5f+']');}if(typeof _0x2aa3d1===_0x4b5ff9(0x96)){const _0x3084ba=Object[_0x4b5ff9(0x98)](_0x2aa3d1);if(_0x3084ba['length']===0x0)return'{}';const _0x1c7320=_0x3084ba['map'](([_0x25a3cd,_0x5bb2b3])=>{const _0x6a5c48=_0x4b5ff9,_0x237446=colorJSONKey(JSON['stringify'](_0x25a3cd),_0x5c3cea),_0x5041c1=colorizeJSON(_0x5bb2b3,_0x5c3cea,_0x1869b6);return''+'\x20'[_0x6a5c48(0x91)](_0x1869b6)+_0x237446+':\x20'+_0x5041c1;});return'{\x0a'+_0x1c7320[_0x4b5ff9(0xa1)](',\x0a')+('\x0a'+_0x906c5f+'}');}return String(_0x2aa3d1);}function a210_0x5cc5(){const _0x559a1b=['160682sWSWZm','repeat','890964ehDZQg','1461545oeoPde','length','cyan','object','2230206eVTjjU','entries','string','color','Chalk','dim','number','5072739dtOAKY','isTTY','1792512vjgMxH','join','noColor','map','18119980sMsmZT','blue','12MRHwNU','stringify','8BHRqVl','green','isArray','null','stdout','yellow','boolean','2UwrPxc'];a210_0x5cc5=function(){return _0x559a1b;};return a210_0x5cc5();}
@@ -1 +1 @@
1
- (function(_0x491c87,_0x44448e){const _0x5d8e1a=a211_0x15b7,_0x4cd58c=_0x491c87();while(!![]){try{const _0x4f9b93=parseInt(_0x5d8e1a(0x138))/0x1*(-parseInt(_0x5d8e1a(0x126))/0x2)+parseInt(_0x5d8e1a(0x12f))/0x3+parseInt(_0x5d8e1a(0x12c))/0x4*(parseInt(_0x5d8e1a(0x118))/0x5)+-parseInt(_0x5d8e1a(0x133))/0x6+-parseInt(_0x5d8e1a(0x117))/0x7*(-parseInt(_0x5d8e1a(0x12d))/0x8)+-parseInt(_0x5d8e1a(0x125))/0x9*(-parseInt(_0x5d8e1a(0x130))/0xa)+-parseInt(_0x5d8e1a(0x121))/0xb;if(_0x4f9b93===_0x44448e)break;else _0x4cd58c['push'](_0x4cd58c['shift']());}catch(_0x399f23){_0x4cd58c['push'](_0x4cd58c['shift']());}}}(a211_0x227f,0xe58ea));import a211_0x27f655 from'chalk';export function generateDiff(_0x79b794,_0x5f0dc0){const _0x113232=a211_0x15b7,_0x635ccf=_0x79b794[_0x113232(0x132)]('\x0a'),_0x49688e=_0x5f0dc0[_0x113232(0x132)]('\x0a'),_0x448d0d=[],_0x3213c8=computeLCS(_0x635ccf,_0x49688e);let _0x8ae83b=0x0,_0x4d565a=0x0,_0x54e803=0x0;while(_0x8ae83b<_0x635ccf['length']||_0x4d565a<_0x49688e[_0x113232(0x135)]){if(_0x54e803<_0x3213c8[_0x113232(0x135)]&&_0x8ae83b<_0x635ccf[_0x113232(0x135)]&&_0x635ccf[_0x8ae83b]===_0x3213c8[_0x54e803])_0x4d565a<_0x49688e['length']&&_0x49688e[_0x4d565a]===_0x3213c8[_0x54e803]?(_0x448d0d[_0x113232(0x13b)]({'type':_0x113232(0x137),'content':_0x635ccf[_0x8ae83b]}),_0x8ae83b++,_0x4d565a++,_0x54e803++):(_0x448d0d[_0x113232(0x13b)]({'type':_0x113232(0x123),'content':_0x49688e[_0x4d565a]}),_0x4d565a++);else{if(_0x54e803<_0x3213c8[_0x113232(0x135)]&&_0x4d565a<_0x49688e[_0x113232(0x135)]&&_0x49688e[_0x4d565a]===_0x3213c8[_0x54e803])_0x448d0d[_0x113232(0x13b)]({'type':'removed','content':_0x635ccf[_0x8ae83b]}),_0x8ae83b++;else{if(_0x8ae83b<_0x635ccf[_0x113232(0x135)]&&(_0x54e803>=_0x3213c8[_0x113232(0x135)]||_0x635ccf[_0x8ae83b]!==_0x3213c8[_0x54e803]))_0x448d0d[_0x113232(0x13b)]({'type':_0x113232(0x120),'content':_0x635ccf[_0x8ae83b]}),_0x8ae83b++;else _0x4d565a<_0x49688e[_0x113232(0x135)]&&(_0x448d0d[_0x113232(0x13b)]({'type':'added','content':_0x49688e[_0x4d565a]}),_0x4d565a++);}}}return _0x448d0d;}function computeLCS(_0x190d39,_0x2efb13){const _0x16de0e=a211_0x15b7,_0x3c7925=_0x190d39[_0x16de0e(0x135)],_0x5cde22=_0x2efb13[_0x16de0e(0x135)],_0x1a3fb2=Array(_0x3c7925+0x1)[_0x16de0e(0x136)](null)[_0x16de0e(0x11e)](()=>Array(_0x5cde22+0x1)[_0x16de0e(0x136)](0x0));for(let _0x56f660=0x1;_0x56f660<=_0x3c7925;_0x56f660++){for(let _0x28bbce=0x1;_0x28bbce<=_0x5cde22;_0x28bbce++){_0x190d39[_0x56f660-0x1]===_0x2efb13[_0x28bbce-0x1]?_0x1a3fb2[_0x56f660][_0x28bbce]=_0x1a3fb2[_0x56f660-0x1][_0x28bbce-0x1]+0x1:_0x1a3fb2[_0x56f660][_0x28bbce]=Math['max'](_0x1a3fb2[_0x56f660-0x1][_0x28bbce],_0x1a3fb2[_0x56f660][_0x28bbce-0x1]);}}const _0x4ef18e=[];let _0x268fd7=_0x3c7925,_0x334622=_0x5cde22;while(_0x268fd7>0x0&&_0x334622>0x0){if(_0x190d39[_0x268fd7-0x1]===_0x2efb13[_0x334622-0x1])_0x4ef18e[_0x16de0e(0x113)](_0x190d39[_0x268fd7-0x1]),_0x268fd7--,_0x334622--;else _0x1a3fb2[_0x268fd7-0x1][_0x334622]>_0x1a3fb2[_0x268fd7][_0x334622-0x1]?_0x268fd7--:_0x334622--;}return _0x4ef18e;}function a211_0x15b7(_0x1e48bb,_0x1dc274){_0x1e48bb=_0x1e48bb-0x113;const _0x227f4b=a211_0x227f();let _0x15b7b0=_0x227f4b[_0x1e48bb];return _0x15b7b0;}export function formatDiffWithColors(_0x37af71,_0x1f26a3=0x3){const _0x11e9e4=a211_0x15b7,_0x3fbeeb=new Set();_0x37af71[_0x11e9e4(0x127)]((_0x3da62a,_0x1d410a)=>{const _0x5f0339=_0x11e9e4;_0x3da62a[_0x5f0339(0x131)]!=='unchanged'&&_0x3fbeeb['add'](_0x1d410a);});if(_0x3fbeeb[_0x11e9e4(0x13a)]===0x0)return'';const _0x3cc8a4=new Set();for(const _0x6cdfe1 of _0x3fbeeb){for(let _0x4f7cb2=Math[_0x11e9e4(0x128)](0x0,_0x6cdfe1-_0x1f26a3);_0x4f7cb2<=Math[_0x11e9e4(0x11d)](_0x37af71[_0x11e9e4(0x135)]-0x1,_0x6cdfe1+_0x1f26a3);_0x4f7cb2++){_0x3cc8a4[_0x11e9e4(0x11a)](_0x4f7cb2);}}const _0x4dbeac=[];let _0x4e66a9=-0x1;const _0x5cc5bb=_0x37af71[_0x11e9e4(0x135)],_0x512e6a=Math[_0x11e9e4(0x128)](0x3,String(_0x5cc5bb)['length']),_0x4bc8d0=[];let _0x384ed0=0x0,_0x54678d=0x0;for(const _0x3455c3 of _0x37af71){if(_0x3455c3[_0x11e9e4(0x131)]===_0x11e9e4(0x120))_0x384ed0++,_0x4bc8d0[_0x11e9e4(0x13b)]({'old':_0x384ed0,'new':0x0});else _0x3455c3['type']===_0x11e9e4(0x123)?(_0x54678d++,_0x4bc8d0[_0x11e9e4(0x13b)]({'old':0x0,'new':_0x54678d})):(_0x384ed0++,_0x54678d++,_0x4bc8d0[_0x11e9e4(0x13b)]({'old':_0x384ed0,'new':_0x54678d}));}for(let _0x247ec7=0x0;_0x247ec7<_0x37af71['length'];_0x247ec7++){if(!_0x3cc8a4[_0x11e9e4(0x122)](_0x247ec7))continue;_0x4e66a9!==-0x1&&_0x247ec7>_0x4e66a9+0x1&&_0x4dbeac[_0x11e9e4(0x13b)](a211_0x27f655[_0x11e9e4(0x116)](_0x11e9e4(0x129)));_0x4e66a9=_0x247ec7;const _0x388dc4=_0x37af71[_0x247ec7],_0x54bd6e=_0x4bc8d0[_0x247ec7],_0x50097b=_0x54bd6e[_0x11e9e4(0x115)]>0x0?String(_0x54bd6e[_0x11e9e4(0x115)])[_0x11e9e4(0x124)](_0x512e6a):'\x20'[_0x11e9e4(0x12b)](_0x512e6a),_0x230472=_0x54bd6e['new']>0x0?String(_0x54bd6e[_0x11e9e4(0x114)])[_0x11e9e4(0x124)](_0x512e6a):'\x20'[_0x11e9e4(0x12b)](_0x512e6a);switch(_0x388dc4['type']){case _0x11e9e4(0x120):_0x4dbeac[_0x11e9e4(0x13b)](a211_0x27f655[_0x11e9e4(0x119)](_0x50097b+'\x20'+_0x230472+_0x11e9e4(0x12e)+_0x388dc4['content']));break;case _0x11e9e4(0x123):_0x4dbeac[_0x11e9e4(0x13b)](a211_0x27f655[_0x11e9e4(0x11b)](_0x50097b+'\x20'+_0x230472+_0x11e9e4(0x12a)+_0x388dc4[_0x11e9e4(0x11f)]));break;default:_0x4dbeac[_0x11e9e4(0x13b)](a211_0x27f655['dim'](_0x50097b+'\x20'+_0x230472+_0x11e9e4(0x11c)+_0x388dc4['content']));break;}}return _0x4dbeac[_0x11e9e4(0x139)]('\x0a');}export function hasChanges(_0x1b8b4a){const _0x29840d=a211_0x15b7;return _0x1b8b4a[_0x29840d(0x134)](_0x145a92=>_0x145a92[_0x29840d(0x131)]!==_0x29840d(0x137));}function a211_0x227f(){const _0x34ab53=['length','fill','unchanged','196nUsMDI','join','size','push','unshift','new','old','cyan','1673hvBMQs','5ydhkeg','red','add','green','\x20\x20\x20','min','map','content','removed','24283347ZyGUnY','has','added','padStart','207gwQVkw','3106nfDrpL','forEach','max','\x20\x20...','\x20+\x20','repeat','5623456vetWAy','47112mEbcRh','\x20-\x20','484062RgUJyN','442580olRhQr','type','split','3242352GrWzMX','some'];a211_0x227f=function(){return _0x34ab53;};return a211_0x227f();}
1
+ function a211_0x2815(_0x48e33c,_0x42d7d8){_0x48e33c=_0x48e33c-0x10a;const _0x52c7f0=a211_0x52c7();let _0x281560=_0x52c7f0[_0x48e33c];return _0x281560;}(function(_0x367bee,_0xca21d4){const _0x876879=a211_0x2815,_0x1019bb=_0x367bee();while(!![]){try{const _0x9d96a4=-parseInt(_0x876879(0x114))/0x1*(-parseInt(_0x876879(0x11b))/0x2)+parseInt(_0x876879(0x117))/0x3+-parseInt(_0x876879(0x11e))/0x4*(parseInt(_0x876879(0x118))/0x5)+parseInt(_0x876879(0x10e))/0x6+parseInt(_0x876879(0x121))/0x7*(parseInt(_0x876879(0x12c))/0x8)+-parseInt(_0x876879(0x12d))/0x9*(-parseInt(_0x876879(0x111))/0xa)+parseInt(_0x876879(0x10f))/0xb*(-parseInt(_0x876879(0x11f))/0xc);if(_0x9d96a4===_0xca21d4)break;else _0x1019bb['push'](_0x1019bb['shift']());}catch(_0x250224){_0x1019bb['push'](_0x1019bb['shift']());}}}(a211_0x52c7,0xbdee3));import a211_0x4000ee from'chalk';export function generateDiff(_0x235f9a,_0x49a2e4){const _0x188b73=a211_0x2815,_0x4484e7=_0x235f9a[_0x188b73(0x10d)]('\x0a'),_0x329a61=_0x49a2e4['split']('\x0a'),_0xc20bff=[],_0x7ae66a=computeLCS(_0x4484e7,_0x329a61);let _0x2c8d26=0x0,_0x5831e6=0x0,_0x55d56f=0x0;while(_0x2c8d26<_0x4484e7['length']||_0x5831e6<_0x329a61[_0x188b73(0x10c)]){if(_0x55d56f<_0x7ae66a['length']&&_0x2c8d26<_0x4484e7[_0x188b73(0x10c)]&&_0x4484e7[_0x2c8d26]===_0x7ae66a[_0x55d56f])_0x5831e6<_0x329a61['length']&&_0x329a61[_0x5831e6]===_0x7ae66a[_0x55d56f]?(_0xc20bff[_0x188b73(0x12f)]({'type':_0x188b73(0x12b),'content':_0x4484e7[_0x2c8d26]}),_0x2c8d26++,_0x5831e6++,_0x55d56f++):(_0xc20bff[_0x188b73(0x12f)]({'type':_0x188b73(0x122),'content':_0x329a61[_0x5831e6]}),_0x5831e6++);else{if(_0x55d56f<_0x7ae66a[_0x188b73(0x10c)]&&_0x5831e6<_0x329a61[_0x188b73(0x10c)]&&_0x329a61[_0x5831e6]===_0x7ae66a[_0x55d56f])_0xc20bff['push']({'type':'removed','content':_0x4484e7[_0x2c8d26]}),_0x2c8d26++;else{if(_0x2c8d26<_0x4484e7[_0x188b73(0x10c)]&&(_0x55d56f>=_0x7ae66a[_0x188b73(0x10c)]||_0x4484e7[_0x2c8d26]!==_0x7ae66a[_0x55d56f]))_0xc20bff[_0x188b73(0x12f)]({'type':'removed','content':_0x4484e7[_0x2c8d26]}),_0x2c8d26++;else _0x5831e6<_0x329a61['length']&&(_0xc20bff[_0x188b73(0x12f)]({'type':_0x188b73(0x122),'content':_0x329a61[_0x5831e6]}),_0x5831e6++);}}}return _0xc20bff;}function computeLCS(_0x44a659,_0x198cb1){const _0x557a27=a211_0x2815,_0x5215f6=_0x44a659[_0x557a27(0x10c)],_0x52d3a2=_0x198cb1['length'],_0x3d80c5=Array(_0x5215f6+0x1)[_0x557a27(0x127)](null)[_0x557a27(0x119)](()=>Array(_0x52d3a2+0x1)[_0x557a27(0x127)](0x0));for(let _0x555039=0x1;_0x555039<=_0x5215f6;_0x555039++){for(let _0x5a0711=0x1;_0x5a0711<=_0x52d3a2;_0x5a0711++){_0x44a659[_0x555039-0x1]===_0x198cb1[_0x5a0711-0x1]?_0x3d80c5[_0x555039][_0x5a0711]=_0x3d80c5[_0x555039-0x1][_0x5a0711-0x1]+0x1:_0x3d80c5[_0x555039][_0x5a0711]=Math[_0x557a27(0x113)](_0x3d80c5[_0x555039-0x1][_0x5a0711],_0x3d80c5[_0x555039][_0x5a0711-0x1]);}}const _0x36f270=[];let _0x5148ab=_0x5215f6,_0x2e425e=_0x52d3a2;while(_0x5148ab>0x0&&_0x2e425e>0x0){if(_0x44a659[_0x5148ab-0x1]===_0x198cb1[_0x2e425e-0x1])_0x36f270[_0x557a27(0x11c)](_0x44a659[_0x5148ab-0x1]),_0x5148ab--,_0x2e425e--;else _0x3d80c5[_0x5148ab-0x1][_0x2e425e]>_0x3d80c5[_0x5148ab][_0x2e425e-0x1]?_0x5148ab--:_0x2e425e--;}return _0x36f270;}export function formatDiffWithColors(_0x834d74,_0x15bd77=0x3){const _0x422b49=a211_0x2815,_0x251ae6=new Set();_0x834d74[_0x422b49(0x10a)]((_0x1ae836,_0x12f306)=>{const _0x40de0b=_0x422b49;_0x1ae836['type']!==_0x40de0b(0x12b)&&_0x251ae6['add'](_0x12f306);});if(_0x251ae6[_0x422b49(0x116)]===0x0)return'';const _0x5298d6=new Set();for(const _0x326395 of _0x251ae6){for(let _0x52aa1b=Math['max'](0x0,_0x326395-_0x15bd77);_0x52aa1b<=Math['min'](_0x834d74[_0x422b49(0x10c)]-0x1,_0x326395+_0x15bd77);_0x52aa1b++){_0x5298d6['add'](_0x52aa1b);}}const _0x50e446=[];let _0x253c04=-0x1;const _0x185988=_0x834d74[_0x422b49(0x10c)],_0x2b0b34=Math['max'](0x3,String(_0x185988)['length']),_0x3880ea=[];let _0x321dec=0x0,_0x4884e6=0x0;for(const _0x2329e7 of _0x834d74){if(_0x2329e7[_0x422b49(0x12a)]===_0x422b49(0x124))_0x321dec++,_0x3880ea[_0x422b49(0x12f)]({'old':_0x321dec,'new':0x0});else _0x2329e7[_0x422b49(0x12a)]==='added'?(_0x4884e6++,_0x3880ea[_0x422b49(0x12f)]({'old':0x0,'new':_0x4884e6})):(_0x321dec++,_0x4884e6++,_0x3880ea[_0x422b49(0x12f)]({'old':_0x321dec,'new':_0x4884e6}));}for(let _0x404a03=0x0;_0x404a03<_0x834d74['length'];_0x404a03++){if(!_0x5298d6[_0x422b49(0x129)](_0x404a03))continue;_0x253c04!==-0x1&&_0x404a03>_0x253c04+0x1&&_0x50e446['push'](a211_0x4000ee[_0x422b49(0x120)](_0x422b49(0x123)));_0x253c04=_0x404a03;const _0x26a169=_0x834d74[_0x404a03],_0x23989b=_0x3880ea[_0x404a03],_0x264c22=_0x23989b[_0x422b49(0x128)]>0x0?String(_0x23989b[_0x422b49(0x128)])[_0x422b49(0x126)](_0x2b0b34):'\x20'[_0x422b49(0x110)](_0x2b0b34),_0x1b3ed6=_0x23989b[_0x422b49(0x11d)]>0x0?String(_0x23989b[_0x422b49(0x11d)])[_0x422b49(0x126)](_0x2b0b34):'\x20'['repeat'](_0x2b0b34);switch(_0x26a169[_0x422b49(0x12a)]){case _0x422b49(0x124):_0x50e446[_0x422b49(0x12f)](a211_0x4000ee['red'](_0x264c22+'\x20'+_0x1b3ed6+_0x422b49(0x112)+_0x26a169['content']));break;case _0x422b49(0x122):_0x50e446[_0x422b49(0x12f)](a211_0x4000ee[_0x422b49(0x12e)](_0x264c22+'\x20'+_0x1b3ed6+_0x422b49(0x115)+_0x26a169[_0x422b49(0x125)]));break;default:_0x50e446[_0x422b49(0x12f)](a211_0x4000ee[_0x422b49(0x11a)](_0x264c22+'\x20'+_0x1b3ed6+'\x20\x20\x20'+_0x26a169[_0x422b49(0x125)]));break;}}return _0x50e446[_0x422b49(0x10b)]('\x0a');}function a211_0x52c7(){const _0xec8072=['7beEobR','added','\x20\x20...','removed','content','padStart','fill','old','has','type','unchanged','8292368kJtPYN','7021098NflCyZ','green','push','forEach','join','length','split','2423760bpbKBy','77AutuBv','repeat','10PaeBBi','\x20-\x20','max','51580HzbNvE','\x20+\x20','size','3261837bCmSaq','10zakPGt','map','dim','40xCbxXr','unshift','new','1400996gWTdrE','4904664ILHVYK','cyan'];a211_0x52c7=function(){return _0xec8072;};return a211_0x52c7();}export function hasChanges(_0x30e02d){const _0x1a333c=a211_0x2815;return _0x30e02d['some'](_0x954db2=>_0x954db2[_0x1a333c(0x12a)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x338ca8,_0x295bef){const _0x192a90=a212_0x4945,_0x289897=_0x338ca8();while(!![]){try{const _0x108e95=parseInt(_0x192a90(0x1e4))/0x1+parseInt(_0x192a90(0x1dd))/0x2+parseInt(_0x192a90(0x1e7))/0x3*(parseInt(_0x192a90(0x1e6))/0x4)+parseInt(_0x192a90(0x1e5))/0x5+parseInt(_0x192a90(0x1eb))/0x6+-parseInt(_0x192a90(0x1ea))/0x7*(parseInt(_0x192a90(0x1e2))/0x8)+-parseInt(_0x192a90(0x1db))/0x9;if(_0x108e95===_0x295bef)break;else _0x289897['push'](_0x289897['shift']());}catch(_0x378040){_0x289897['push'](_0x289897['shift']());}}}(a212_0x5aa9,0x29841));import*as a212_0x4adaa5 from'node:fs';import*as a212_0x44db01 from'node:path';export function setSecureFilePermissions(_0x5f16f3){const _0x5c0cf9=a212_0x4945;try{a212_0x4adaa5[_0x5c0cf9(0x1da)](_0x5f16f3,0x180);}catch{console[_0x5c0cf9(0x1e3)](_0x5c0cf9(0x1e0)+_0x5f16f3);}}export function setSecureDirectoryPermissions(_0x485a4e){const _0x5275bb=a212_0x4945;try{a212_0x4adaa5[_0x5275bb(0x1da)](_0x485a4e,0x1c0);}catch{console['warn'](_0x5275bb(0x1e0)+_0x485a4e);}}export function createSecureDirectory(_0x12fa4e){const _0x145ad1=a212_0x4945;!a212_0x4adaa5[_0x145ad1(0x1ed)](_0x12fa4e)&&(a212_0x4adaa5[_0x145ad1(0x1df)](_0x12fa4e,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x12fa4e));}export function validateSecureFilePermissions(_0x35a188){const _0x263d4e=a212_0x4945;try{const _0x5eb7ed=a212_0x4adaa5[_0x263d4e(0x1de)](_0x35a188),_0x416101=_0x5eb7ed[_0x263d4e(0x1e1)]&0x1ff,_0x50983d=(_0x416101&0x3f)!==0x0;if(_0x50983d)return console['warn'](_0x263d4e(0x1dc)+_0x35a188+'\x20has\x20insecure\x20permissions\x20('+_0x416101[_0x263d4e(0x1e8)](0x8)+').\x20'+_0x263d4e(0x1ec)),![];return!![];}catch{return!![];}}function a212_0x4945(_0x2f99ff,_0x1b8b4c){_0x2f99ff=_0x2f99ff-0x1da;const _0x5aa96e=a212_0x5aa9();let _0x494590=_0x5aa96e[_0x2f99ff];return _0x494590;}export function writeSecureFile(_0x243c64,_0x42fc1f){const _0x5c3fbb=a212_0x4945,_0x4db075=a212_0x44db01[_0x5c3fbb(0x1ee)](_0x243c64);createSecureDirectory(_0x4db075),a212_0x4adaa5[_0x5c3fbb(0x1e9)](_0x243c64,_0x42fc1f,{'mode':0x180}),setSecureFilePermissions(_0x243c64);}function a212_0x5aa9(){const _0x5d197d=['Warning:\x20','522500xsLfjX','statSync','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mode','144136KQSNvz','warn','159288wvPsln','561105DmsOkj','568jjwvbZ','6432urYaVw','toString','writeFileSync','77opKXTA','1695810oWoPdW','Should\x20be\x200600\x20or\x20more\x20restrictive.','existsSync','dirname','chmodSync','6764454lACdfo'];a212_0x5aa9=function(){return _0x5d197d;};return a212_0x5aa9();}
1
+ (function(_0x1913a4,_0x35848a){const _0x59d411=a212_0x353d,_0xdbef88=_0x1913a4();while(!![]){try{const _0xb67bef=parseInt(_0x59d411(0x1f7))/0x1+parseInt(_0x59d411(0x1f1))/0x2*(parseInt(_0x59d411(0x1f8))/0x3)+-parseInt(_0x59d411(0x1f3))/0x4+parseInt(_0x59d411(0x1eb))/0x5*(-parseInt(_0x59d411(0x1f4))/0x6)+parseInt(_0x59d411(0x1f9))/0x7*(-parseInt(_0x59d411(0x1ec))/0x8)+-parseInt(_0x59d411(0x1ed))/0x9*(parseInt(_0x59d411(0x1ea))/0xa)+parseInt(_0x59d411(0x1ee))/0xb*(parseInt(_0x59d411(0x1f6))/0xc);if(_0xb67bef===_0x35848a)break;else _0xdbef88['push'](_0xdbef88['shift']());}catch(_0x33a438){_0xdbef88['push'](_0xdbef88['shift']());}}}(a212_0x52a2,0xa8dca));import*as a212_0x31ece3 from'node:fs';function a212_0x353d(_0x537f41,_0x466f9b){_0x537f41=_0x537f41-0x1e7;const _0x52a2c2=a212_0x52a2();let _0x353d66=_0x52a2c2[_0x537f41];return _0x353d66;}import*as a212_0xec322e from'node:path';export function setSecureFilePermissions(_0x156c09){const _0x3310d5=a212_0x353d;try{a212_0x31ece3['chmodSync'](_0x156c09,0x180);}catch{console[_0x3310d5(0x1fa)](_0x3310d5(0x1ef)+_0x156c09);}}function a212_0x52a2(){const _0x3521c6=['87876fMtVVP','565681OGPTec','654oSAIiP','14cvNCPt','warn','mode','\x20has\x20insecure\x20permissions\x20(','writeFileSync','Warning:\x20','2630qzvKXN','323765aDyOBf','3235400qegmHb','37089txEjFX','3058RviClZ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','existsSync','5852MfPZfM',').\x20','1843012rnvibH','18QkVtOy','toString'];a212_0x52a2=function(){return _0x3521c6;};return a212_0x52a2();}export function setSecureDirectoryPermissions(_0x15fc8f){const _0x5aff20=a212_0x353d;try{a212_0x31ece3['chmodSync'](_0x15fc8f,0x1c0);}catch{console[_0x5aff20(0x1fa)](_0x5aff20(0x1ef)+_0x15fc8f);}}export function createSecureDirectory(_0x3290e8){const _0x10a9fa=a212_0x353d;!a212_0x31ece3[_0x10a9fa(0x1f0)](_0x3290e8)&&(a212_0x31ece3['mkdirSync'](_0x3290e8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3290e8));}export function validateSecureFilePermissions(_0x4780d8){const _0x19b8c5=a212_0x353d;try{const _0x5103e0=a212_0x31ece3['statSync'](_0x4780d8),_0x37e5bf=_0x5103e0[_0x19b8c5(0x1fb)]&0x1ff,_0x50c6c4=(_0x37e5bf&0x3f)!==0x0;if(_0x50c6c4)return console[_0x19b8c5(0x1fa)](_0x19b8c5(0x1e9)+_0x4780d8+_0x19b8c5(0x1e7)+_0x37e5bf[_0x19b8c5(0x1f5)](0x8)+_0x19b8c5(0x1f2)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1f1363,_0x154990){const _0xa31cf2=a212_0x353d,_0xe44652=a212_0xec322e['dirname'](_0x1f1363);createSecureDirectory(_0xe44652),a212_0x31ece3[_0xa31cf2(0x1e8)](_0x1f1363,_0x154990,{'mode':0x180}),setSecureFilePermissions(_0x1f1363);}
@@ -1 +1 @@
1
- function a213_0x5897(){const _0x41396b=['2674zOanIL','2160VTiQDU','\x27\x20not\x20found','1317vpEPJR','NOT_FOUND','ENOENT','12tSvBlT','801685ovkmyQ','1873080WWSsRm','9331750HeIEcu','File\x20\x27','3833656tLYuSV','236546VAfuSg','EACCES','\x27:\x20','5418QrYfIU','11gERQAQ','Error\x20reading\x20file\x20\x27','PERMISSION_DENIED','code'];a213_0x5897=function(){return _0x41396b;};return a213_0x5897();}(function(_0x24375a,_0x5dc9a5){const _0x3bbe31=a213_0x2bed,_0x2cd700=_0x24375a();while(!![]){try{const _0x126ee1=parseInt(_0x3bbe31(0x143))/0x1+-parseInt(_0x3bbe31(0x138))/0x2*(parseInt(_0x3bbe31(0x13a))/0x3)+-parseInt(_0x3bbe31(0x13d))/0x4*(parseInt(_0x3bbe31(0x13e))/0x5)+-parseInt(_0x3bbe31(0x146))/0x6*(-parseInt(_0x3bbe31(0x137))/0x7)+-parseInt(_0x3bbe31(0x142))/0x8+parseInt(_0x3bbe31(0x13f))/0x9+-parseInt(_0x3bbe31(0x140))/0xa*(-parseInt(_0x3bbe31(0x133))/0xb);if(_0x126ee1===_0x5dc9a5)break;else _0x2cd700['push'](_0x2cd700['shift']());}catch(_0x209489){_0x2cd700['push'](_0x2cd700['shift']());}}}(a213_0x5897,0x466c1));function a213_0x2bed(_0x5698b5,_0x48bd7a){_0x5698b5=_0x5698b5-0x133;const _0x5897c4=a213_0x5897();let _0x2bed9e=_0x5897c4[_0x5698b5];return _0x2bed9e;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x24fdd0){const _0x14773b=a213_0x2bed;try{return readFileSync(_0x24fdd0,'utf-8');}catch(_0x396a62){const _0x2948da=_0x396a62[_0x14773b(0x136)];if(_0x2948da===_0x14773b(0x13c))throw new SDKError(ErrorCode[_0x14773b(0x13b)],_0x14773b(0x141)+_0x24fdd0+_0x14773b(0x139),_0x396a62);else{if(_0x2948da===_0x14773b(0x144))throw new SDKError(ErrorCode[_0x14773b(0x135)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x24fdd0+'\x27',_0x396a62);else throw new SDKError(ErrorCode['INTERNAL'],_0x14773b(0x134)+_0x24fdd0+_0x14773b(0x145)+_0x396a62['message'],_0x396a62);}}}
1
+ function a213_0x9619(_0x5c43c2,_0xb74a26){_0x5c43c2=_0x5c43c2-0x1ef;const _0x1d5b5d=a213_0x1d5b();let _0x961982=_0x1d5b5d[_0x5c43c2];return _0x961982;}(function(_0x5ce90c,_0x578901){const _0x527b56=a213_0x9619,_0x3bcd4a=_0x5ce90c();while(!![]){try{const _0x31c7dc=parseInt(_0x527b56(0x1f4))/0x1+parseInt(_0x527b56(0x1f9))/0x2+-parseInt(_0x527b56(0x1f0))/0x3*(-parseInt(_0x527b56(0x1f3))/0x4)+-parseInt(_0x527b56(0x1fe))/0x5*(parseInt(_0x527b56(0x1fb))/0x6)+parseInt(_0x527b56(0x1f1))/0x7*(-parseInt(_0x527b56(0x1f5))/0x8)+-parseInt(_0x527b56(0x1fa))/0x9+-parseInt(_0x527b56(0x1f6))/0xa;if(_0x31c7dc===_0x578901)break;else _0x3bcd4a['push'](_0x3bcd4a['shift']());}catch(_0x32e876){_0x3bcd4a['push'](_0x3bcd4a['shift']());}}}(a213_0x1d5b,0x46aa2));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a213_0x1d5b(){const _0x1a7f63=['439972DEqeJT','183065FUrBCM','8bYAwKn','555680LoorhY','Error\x20reading\x20file\x20\x27','\x27\x20not\x20found','662506NIWmaX','3266829OfuMmA','930ymbgOJ','message','PERMISSION_DENIED','2035IAIgEg','utf-8','code','EACCES','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','NOT_FOUND','9MNnBXb','512547elDCqo','INTERNAL'];a213_0x1d5b=function(){return _0x1a7f63;};return a213_0x1d5b();}export function readFileContent(_0x2979ca){const _0x3b29ce=a213_0x9619;try{return readFileSync(_0x2979ca,_0x3b29ce(0x1ff));}catch(_0x32e61d){const _0x3a8875=_0x32e61d[_0x3b29ce(0x200)];if(_0x3a8875===_0x3b29ce(0x202))throw new SDKError(ErrorCode[_0x3b29ce(0x1ef)],_0x3b29ce(0x204)+_0x2979ca+_0x3b29ce(0x1f8),_0x32e61d);else{if(_0x3a8875===_0x3b29ce(0x201))throw new SDKError(ErrorCode[_0x3b29ce(0x1fd)],_0x3b29ce(0x203)+_0x2979ca+'\x27',_0x32e61d);else throw new SDKError(ErrorCode[_0x3b29ce(0x1f2)],_0x3b29ce(0x1f7)+_0x2979ca+'\x27:\x20'+_0x32e61d[_0x3b29ce(0x1fc)],_0x32e61d);}}}
@@ -1 +1 @@
1
- (function(_0x71cc49,_0x4f3adf){const _0x207e03=a214_0x5e47,_0x3e4a04=_0x71cc49();while(!![]){try{const _0x58269c=-parseInt(_0x207e03(0x1c5))/0x1*(parseInt(_0x207e03(0x1d1))/0x2)+-parseInt(_0x207e03(0x1c0))/0x3*(parseInt(_0x207e03(0x1cc))/0x4)+parseInt(_0x207e03(0x1c9))/0x5+parseInt(_0x207e03(0x1c3))/0x6*(parseInt(_0x207e03(0x1d7))/0x7)+-parseInt(_0x207e03(0x1cb))/0x8+-parseInt(_0x207e03(0x1d5))/0x9*(parseInt(_0x207e03(0x1d2))/0xa)+parseInt(_0x207e03(0x1bd))/0xb;if(_0x58269c===_0x4f3adf)break;else _0x3e4a04['push'](_0x3e4a04['shift']());}catch(_0x9b167){_0x3e4a04['push'](_0x3e4a04['shift']());}}}(a214_0x34bb,0x292ee));function a214_0x5e47(_0x5651f8,_0x53a546){_0x5651f8=_0x5651f8-0x1b9;const _0x34bb54=a214_0x34bb();let _0x5e47e3=_0x34bb54[_0x5651f8];return _0x5e47e3;}import*as a214_0x5253d6 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x34bb(){const _0x360420=['17895TSXfGu','api.github.com','find','18HPrRHE','get','55KOhuLM','fetchedAt','slice','/repos/','1578670QzzIQw','tag_name','828368NamOZZ','204cVhfBn','error','resolve','application/vnd.github+json','releases','8860frjTvQ','4700WvvFVg','length','data','4221xgUOaV','GitHub\x20API\x20returned\x20','351232iaqAdZ','next','parse','end','/releases?per_page=20','6316915bgFQoK','timeout','statusCode'];a214_0x34bb=function(){return _0x360420;};return a214_0x34bb();}export function fetchGitHubReleases(_0x481880,_0x267b12,_0x3ce2cb){const _0x53dd57=a214_0x5e47,_0x13ced4=_0x481880+'/'+_0x267b12,_0x31a825=cache[_0x53dd57(0x1c4)](_0x13ced4);if(_0x31a825&&Date['now']()-_0x31a825[_0x53dd57(0x1c6)]<CACHE_TTL_MS)return Promise[_0x53dd57(0x1ce)](_0x31a825[_0x53dd57(0x1d0)]);return new Promise((_0x363b41,_0x14abe9)=>{const _0x36a2d7=_0x53dd57,_0x41ab8a={'hostname':_0x36a2d7(0x1c1),'path':_0x36a2d7(0x1c8)+_0x481880+'/'+_0x267b12+_0x36a2d7(0x1bc),'headers':{'User-Agent':_0x3ce2cb,'Accept':_0x36a2d7(0x1cf)},'timeout':REQUEST_TIMEOUT_MS},_0xdedcfd=a214_0x5253d6[_0x36a2d7(0x1c4)](_0x41ab8a,_0x5d86f3=>{const _0x2d8bd5=_0x36a2d7;let _0x3c8e7e='';_0x5d86f3['on'](_0x2d8bd5(0x1d4),_0x4e4eed=>{_0x3c8e7e+=_0x4e4eed['toString']();}),_0x5d86f3['on'](_0x2d8bd5(0x1bb),()=>{const _0x3a13d9=_0x2d8bd5;if(_0x5d86f3['statusCode']!==0xc8){_0x14abe9(new Error(_0x3a13d9(0x1d6)+_0x5d86f3[_0x3a13d9(0x1bf)]+':\x20'+_0x3c8e7e[_0x3a13d9(0x1c7)](0x0,0xc8)));return;}try{const _0x28ed52=JSON[_0x3a13d9(0x1ba)](_0x3c8e7e);cache['set'](_0x13ced4,{'releases':_0x28ed52,'fetchedAt':Date['now']()}),_0x363b41(_0x28ed52);}catch(_0x2d2786){_0x14abe9(_0x2d2786);}});});_0xdedcfd['on'](_0x36a2d7(0x1be),()=>{_0xdedcfd['destroy'](),_0x14abe9(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0xdedcfd['on'](_0x36a2d7(0x1cd),_0x14abe9);});}export async function resolveReleaseTag(_0x35f25f,_0x41da23,_0xdf9d6,_0x88ab07){const _0xf08094=a214_0x5e47;if(_0x35f25f===_0xf08094(0x1b9))return null;const _0x36e29d=await fetchGitHubReleases(_0x41da23,_0xdf9d6,_0x88ab07);if(_0x36e29d[_0xf08094(0x1d3)]===0x0)return null;const _0x4a2adf=_0x36e29d[_0xf08094(0x1c2)](_0x3396e5=>!_0x3396e5['prerelease']);return _0x4a2adf?_0x4a2adf[_0xf08094(0x1ca)]:null;}
1
+ (function(_0x152bb5,_0xd1109d){const _0x401c35=a214_0x3ced,_0x530e5c=_0x152bb5();while(!![]){try{const _0x16e4c9=parseInt(_0x401c35(0x178))/0x1+-parseInt(_0x401c35(0x168))/0x2*(parseInt(_0x401c35(0x17e))/0x3)+-parseInt(_0x401c35(0x174))/0x4*(parseInt(_0x401c35(0x17f))/0x5)+-parseInt(_0x401c35(0x182))/0x6+parseInt(_0x401c35(0x172))/0x7*(-parseInt(_0x401c35(0x171))/0x8)+-parseInt(_0x401c35(0x175))/0x9+-parseInt(_0x401c35(0x173))/0xa*(-parseInt(_0x401c35(0x16f))/0xb);if(_0x16e4c9===_0xd1109d)break;else _0x530e5c['push'](_0x530e5c['shift']());}catch(_0x659117){_0x530e5c['push'](_0x530e5c['shift']());}}}(a214_0x361d,0x85c40));import*as a214_0x41cbe8 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x412198,_0x4e8da7,_0x21c8b0){const _0x177c4d=a214_0x3ced,_0x1d9ef0=_0x412198+'/'+_0x4e8da7,_0x242c8e=cache[_0x177c4d(0x170)](_0x1d9ef0);if(_0x242c8e&&Date['now']()-_0x242c8e['fetchedAt']<CACHE_TTL_MS)return Promise[_0x177c4d(0x169)](_0x242c8e['releases']);return new Promise((_0x56e6a8,_0x45da7d)=>{const _0x32f80f=_0x177c4d,_0x5f38a6={'hostname':_0x32f80f(0x183),'path':_0x32f80f(0x184)+_0x412198+'/'+_0x4e8da7+_0x32f80f(0x16e),'headers':{'User-Agent':_0x21c8b0,'Accept':_0x32f80f(0x16a)},'timeout':REQUEST_TIMEOUT_MS},_0x1d69f5=a214_0x41cbe8[_0x32f80f(0x170)](_0x5f38a6,_0x27e316=>{const _0x3e4628=_0x32f80f;let _0x42c09b='';_0x27e316['on'](_0x3e4628(0x16b),_0xf89542=>{_0x42c09b+=_0xf89542['toString']();}),_0x27e316['on'](_0x3e4628(0x176),()=>{const _0x5bcfa0=_0x3e4628;if(_0x27e316[_0x5bcfa0(0x181)]!==0xc8){_0x45da7d(new Error(_0x5bcfa0(0x179)+_0x27e316[_0x5bcfa0(0x181)]+':\x20'+_0x42c09b[_0x5bcfa0(0x185)](0x0,0xc8)));return;}try{const _0x32fa72=JSON[_0x5bcfa0(0x16d)](_0x42c09b);cache[_0x5bcfa0(0x180)](_0x1d9ef0,{'releases':_0x32fa72,'fetchedAt':Date[_0x5bcfa0(0x16c)]()}),_0x56e6a8(_0x32fa72);}catch(_0x41841c){_0x45da7d(_0x41841c);}});});_0x1d69f5['on']('timeout',()=>{const _0xd36c75=_0x32f80f;_0x1d69f5[_0xd36c75(0x17b)](),_0x45da7d(new Error(_0xd36c75(0x17c)+REQUEST_TIMEOUT_MS+'ms'));}),_0x1d69f5['on'](_0x32f80f(0x177),_0x45da7d);});}function a214_0x3ced(_0x492c99,_0x391624){_0x492c99=_0x492c99-0x166;const _0x361d63=a214_0x361d();let _0x3ced3c=_0x361d63[_0x492c99];return _0x3ced3c;}function a214_0x361d(){const _0x1281de=['destroy','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','next','42294NqPumP','178570eotfov','set','statusCode','6263004BGCvIc','api.github.com','/repos/','slice','length','prerelease','24pdSbzh','resolve','application/vnd.github+json','data','now','parse','/releases?per_page=20','71203FeXwDD','get','152SUvSTJ','181699RlUYtB','3950FwcsyF','52HvnQhg','6382998uzuFoc','end','error','870766aAkIgC','GitHub\x20API\x20returned\x20','tag_name'];a214_0x361d=function(){return _0x1281de;};return a214_0x361d();}export async function resolveReleaseTag(_0xdd243c,_0x5b8dda,_0x573777,_0x123578){const _0x32c9cc=a214_0x3ced;if(_0xdd243c===_0x32c9cc(0x17d))return null;const _0x9964d2=await fetchGitHubReleases(_0x5b8dda,_0x573777,_0x123578);if(_0x9964d2[_0x32c9cc(0x166)]===0x0)return null;const _0x5226dc=_0x9964d2['find'](_0x2d5a7e=>!_0x2d5a7e[_0x32c9cc(0x167)]);return _0x5226dc?_0x5226dc[_0x32c9cc(0x17a)]:null;}
@@ -1 +1 @@
1
- function a215_0x36b8(){const _0x202141=['replace','tdx','\x22\x20already\x20registered\x20by\x20\x22','14FLTOML','set','2672580pussZX','353703dlQmcp','992phOSeg','346382qpXpwe','\x22,\x20cannot\x20register\x20for\x20\x22','clear','4SKvDBK','{profile}','186408aNrJVq','1xPAGoY','11106xLJiGy','629265eFzPfU','utf-8','stringify','176xqFSHB','3390JLWxPm'];a215_0x36b8=function(){return _0x202141;};return a215_0x36b8();}(function(_0x171bab,_0x20e0b7){const _0x140cdc=a215_0x10ef,_0x1cb655=_0x171bab();while(!![]){try{const _0x97dd2=-parseInt(_0x140cdc(0x6b))/0x1*(parseInt(_0x140cdc(0x7a))/0x2)+parseInt(_0x140cdc(0x78))/0x3*(parseInt(_0x140cdc(0x68))/0x4)+-parseInt(_0x140cdc(0x6d))/0x5+parseInt(_0x140cdc(0x71))/0x6*(parseInt(_0x140cdc(0x75))/0x7)+parseInt(_0x140cdc(0x79))/0x8*(-parseInt(_0x140cdc(0x6c))/0x9)+parseInt(_0x140cdc(0x77))/0xa+parseInt(_0x140cdc(0x70))/0xb*(parseInt(_0x140cdc(0x6a))/0xc);if(_0x97dd2===_0x20e0b7)break;else _0x1cb655['push'](_0x1cb655['shift']());}catch(_0x24f621){_0x1cb655['push'](_0x1cb655['shift']());}}}(a215_0x36b8,0x2c9f5));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x30d282=a215_0x10ef;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x30d282(0x73));}const registry=new Map();export function registerGlobalCacheKey(_0x1e5a1b,_0x447965){const _0x43fbf1=a215_0x10ef,_0x3944a5=registry['get'](_0x1e5a1b);if(_0x3944a5&&_0x3944a5!==_0x447965)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1e5a1b+_0x43fbf1(0x74)+_0x3944a5+_0x43fbf1(0x66)+_0x447965+'\x22');registry[_0x43fbf1(0x76)](_0x1e5a1b,_0x447965);}export function getGlobalCachePath(_0x16815d){return join(getGlobalCacheDir(),_0x16815d);}function ensureGlobalCacheDir(){const _0x9c22ee=getGlobalCacheDir();!existsSync(_0x9c22ee)&&mkdirSync(_0x9c22ee,{'recursive':!![]});}function readCacheJson(_0xfe073f){const _0x23496f=a215_0x10ef,_0x3fc8cc=getGlobalCachePath(_0xfe073f);if(!existsSync(_0x3fc8cc))return undefined;try{const _0x3a862d=readFileSync(_0x3fc8cc,_0x23496f(0x6e));return JSON['parse'](_0x3a862d);}catch{return undefined;}}function writeCacheJson(_0xdc7b6,_0x42862e){const _0x592424=a215_0x10ef;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xdc7b6),JSON[_0x592424(0x6f)](_0x42862e,null,0x2),_0x592424(0x6e));}function readCacheText(_0x5d2c3e){const _0x22b203=a215_0x10ef,_0x29fe44=getGlobalCachePath(_0x5d2c3e);if(!existsSync(_0x29fe44))return undefined;try{return readFileSync(_0x29fe44,_0x22b203(0x6e));}catch{return undefined;}}function writeCacheText(_0xbd0604,_0x367f87){const _0x49a141=a215_0x10ef;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xbd0604),_0x367f87,_0x49a141(0x6e));}function clearCache(_0x17cf54){const _0x4a9a5a=getGlobalCachePath(_0x17cf54);if(existsSync(_0x4a9a5a))try{unlinkSync(_0x4a9a5a);}catch{}}function cacheExists(_0x15a542){return existsSync(getGlobalCachePath(_0x15a542));}export function createGlobalCache(_0x16a611,_0x4fb55c){return registerGlobalCacheKey(_0x16a611,_0x4fb55c),{'read':()=>readCacheJson(_0x16a611),'write':_0x481184=>writeCacheJson(_0x16a611,_0x481184),'clear':()=>clearCache(_0x16a611),'exists':()=>cacheExists(_0x16a611),'path':()=>getGlobalCachePath(_0x16a611)};}function a215_0x10ef(_0x44726f,_0x14ff8a){_0x44726f=_0x44726f-0x66;const _0x36b8c3=a215_0x36b8();let _0x10ef58=_0x36b8c3[_0x44726f];return _0x10ef58;}export function createGlobalTextCache(_0x158f52,_0x292058){return registerGlobalCacheKey(_0x158f52,_0x292058),{'read':()=>readCacheText(_0x158f52)?.['trim']()||undefined,'write':_0x2e29fe=>writeCacheText(_0x158f52,_0x2e29fe),'clear':()=>clearCache(_0x158f52),'exists':()=>cacheExists(_0x158f52),'path':()=>getGlobalCachePath(_0x158f52)};}export function createProfileCache(_0xfa3bc2,_0x183e68){const _0x152c3e=_0x510743=>{const _0x4319db=a215_0x10ef,_0x512d98=_0x510743||'default';return _0xfa3bc2[_0x4319db(0x72)](_0x4319db(0x69),_0x512d98);};return{'read':_0x4d0cac=>{const _0x1da3ad=_0x152c3e(_0x4d0cac);return registerGlobalCacheKey(_0x1da3ad,_0x183e68),readCacheJson(_0x1da3ad);},'write':(_0x53d827,_0x24d925)=>{const _0x417946=_0x152c3e(_0x53d827);registerGlobalCacheKey(_0x417946,_0x183e68),writeCacheJson(_0x417946,_0x24d925);},'clear':_0x180890=>{const _0x1cb168=_0x152c3e(_0x180890);clearCache(_0x1cb168);},'exists':_0x2a69f0=>{const _0x1c1775=_0x152c3e(_0x2a69f0);return cacheExists(_0x1c1775);},'path':_0x4c3c2d=>{const _0x45818c=_0x152c3e(_0x4c3c2d);return getGlobalCachePath(_0x45818c);}};}export function createOptionalProfileCache(_0x5c07f0,_0x5663d2,_0x52e7cf={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x52e7cf,_0x4de3be=_0x3019ce=>{return _0x3019ce?''+_0x5c07f0+profileSeparator+_0x3019ce+suffix:''+_0x5c07f0+suffix;};return{'read':_0x240f6a=>{const _0x2b66dd=_0x4de3be(_0x240f6a);return registerGlobalCacheKey(_0x2b66dd,_0x5663d2),readCacheJson(_0x2b66dd);},'write':(_0x112f47,_0x529dcb)=>{const _0x23b3de=_0x4de3be(_0x529dcb);registerGlobalCacheKey(_0x23b3de,_0x5663d2),writeCacheJson(_0x23b3de,_0x112f47);},'clear':_0x120346=>{const _0x4d5f5f=_0x4de3be(_0x120346);clearCache(_0x4d5f5f);},'exists':_0x27934e=>{const _0x15cab3=_0x4de3be(_0x27934e);return cacheExists(_0x15cab3);},'path':_0x40078d=>{const _0x464aa9=_0x4de3be(_0x40078d);return getGlobalCachePath(_0x464aa9);}};}export function clearGlobalRegistry(){const _0x23db05=a215_0x10ef;registry[_0x23db05(0x67)]();}
1
+ (function(_0x44ec2e,_0x6499ed){const _0x1e8f1e=a215_0xf1c5,_0x4131b8=_0x44ec2e();while(!![]){try{const _0x424c1d=parseInt(_0x1e8f1e(0x1c4))/0x1*(-parseInt(_0x1e8f1e(0x1bf))/0x2)+-parseInt(_0x1e8f1e(0x1d3))/0x3+parseInt(_0x1e8f1e(0x1c3))/0x4+parseInt(_0x1e8f1e(0x1c7))/0x5+parseInt(_0x1e8f1e(0x1cc))/0x6*(-parseInt(_0x1e8f1e(0x1ca))/0x7)+-parseInt(_0x1e8f1e(0x1c1))/0x8*(parseInt(_0x1e8f1e(0x1c8))/0x9)+parseInt(_0x1e8f1e(0x1c5))/0xa*(parseInt(_0x1e8f1e(0x1d1))/0xb);if(_0x424c1d===_0x6499ed)break;else _0x4131b8['push'](_0x4131b8['shift']());}catch(_0x576d81){_0x4131b8['push'](_0x4131b8['shift']());}}}(a215_0xeec0,0xd6252));function a215_0xf1c5(_0x159948,_0x219fe1){_0x159948=_0x159948-0x1bf;const _0xeec05f=a215_0xeec0();let _0xf1c5fa=_0xeec05f[_0x159948];return _0xf1c5fa;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5c11f7=a215_0xf1c5;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5c11f7(0x1c0),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x4e83bd,_0x5337c5){const _0x4134cb=a215_0xf1c5,_0x53eb81=registry[_0x4134cb(0x1cb)](_0x4e83bd);if(_0x53eb81&&_0x53eb81!==_0x5337c5)throw new Error('Global\x20cache\x20key\x20\x22'+_0x4e83bd+_0x4134cb(0x1ce)+_0x53eb81+_0x4134cb(0x1c9)+_0x5337c5+'\x22');registry[_0x4134cb(0x1c2)](_0x4e83bd,_0x5337c5);}export function getGlobalCachePath(_0x4f86e4){return join(getGlobalCacheDir(),_0x4f86e4);}function ensureGlobalCacheDir(){const _0x1cecb0=getGlobalCacheDir();!existsSync(_0x1cecb0)&&mkdirSync(_0x1cecb0,{'recursive':!![]});}function readCacheJson(_0x40516){const _0x47cc60=a215_0xf1c5,_0x3836b6=getGlobalCachePath(_0x40516);if(!existsSync(_0x3836b6))return undefined;try{const _0x2284cd=readFileSync(_0x3836b6,_0x47cc60(0x1d2));return JSON[_0x47cc60(0x1cd)](_0x2284cd);}catch{return undefined;}}function writeCacheJson(_0x597f12,_0x29aa5e){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x597f12),JSON['stringify'](_0x29aa5e,null,0x2),'utf-8');}function readCacheText(_0x552bf8){const _0x87c9c9=a215_0xf1c5,_0x5a9011=getGlobalCachePath(_0x552bf8);if(!existsSync(_0x5a9011))return undefined;try{return readFileSync(_0x5a9011,_0x87c9c9(0x1d2));}catch{return undefined;}}function a215_0xeec0(){const _0x1af413=['906814yEyVVo','.cache','3608biqlaB','set','349612cGPrWf','2UxGawW','5770YnExRe','default','191780yDheIh','29844VmFHoU','\x22,\x20cannot\x20register\x20for\x20\x22','4222547lUmEcV','get','6iUXtCQ','parse','\x22\x20already\x20registered\x20by\x20\x22','{profile}','trim','85525HuLRdc','utf-8','2187735hNXtJY'];a215_0xeec0=function(){return _0x1af413;};return a215_0xeec0();}function writeCacheText(_0x182b3f,_0x442b20){const _0x27fa39=a215_0xf1c5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x182b3f),_0x442b20,_0x27fa39(0x1d2));}function clearCache(_0x15daf5){const _0x3fd1d9=getGlobalCachePath(_0x15daf5);if(existsSync(_0x3fd1d9))try{unlinkSync(_0x3fd1d9);}catch{}}function cacheExists(_0x4963f5){return existsSync(getGlobalCachePath(_0x4963f5));}export function createGlobalCache(_0x1dcd3b,_0x3c7193){return registerGlobalCacheKey(_0x1dcd3b,_0x3c7193),{'read':()=>readCacheJson(_0x1dcd3b),'write':_0x458a1e=>writeCacheJson(_0x1dcd3b,_0x458a1e),'clear':()=>clearCache(_0x1dcd3b),'exists':()=>cacheExists(_0x1dcd3b),'path':()=>getGlobalCachePath(_0x1dcd3b)};}export function createGlobalTextCache(_0x1179e7,_0x4961f5){const _0x234fbd=a215_0xf1c5;return registerGlobalCacheKey(_0x1179e7,_0x4961f5),{'read':()=>readCacheText(_0x1179e7)?.[_0x234fbd(0x1d0)]()||undefined,'write':_0x23bd1c=>writeCacheText(_0x1179e7,_0x23bd1c),'clear':()=>clearCache(_0x1179e7),'exists':()=>cacheExists(_0x1179e7),'path':()=>getGlobalCachePath(_0x1179e7)};}export function createProfileCache(_0x54d805,_0x7c86aa){const _0x405b30=_0x134a4e=>{const _0x202246=a215_0xf1c5,_0x30fc9c=_0x134a4e||_0x202246(0x1c6);return _0x54d805['replace'](_0x202246(0x1cf),_0x30fc9c);};return{'read':_0x42e43b=>{const _0x144963=_0x405b30(_0x42e43b);return registerGlobalCacheKey(_0x144963,_0x7c86aa),readCacheJson(_0x144963);},'write':(_0x531b2e,_0x42a5cc)=>{const _0x2ccd10=_0x405b30(_0x531b2e);registerGlobalCacheKey(_0x2ccd10,_0x7c86aa),writeCacheJson(_0x2ccd10,_0x42a5cc);},'clear':_0x21333f=>{const _0x4c4003=_0x405b30(_0x21333f);clearCache(_0x4c4003);},'exists':_0x520f22=>{const _0x167e7b=_0x405b30(_0x520f22);return cacheExists(_0x167e7b);},'path':_0x3582e8=>{const _0x1c0fd8=_0x405b30(_0x3582e8);return getGlobalCachePath(_0x1c0fd8);}};}export function createOptionalProfileCache(_0xad765b,_0x24946d,_0x4b6649={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4b6649,_0x430de1=_0x813c00=>{return _0x813c00?''+_0xad765b+profileSeparator+_0x813c00+suffix:''+_0xad765b+suffix;};return{'read':_0x2446f2=>{const _0xac7c10=_0x430de1(_0x2446f2);return registerGlobalCacheKey(_0xac7c10,_0x24946d),readCacheJson(_0xac7c10);},'write':(_0x52b9b5,_0x182f4c)=>{const _0x1db2d1=_0x430de1(_0x182f4c);registerGlobalCacheKey(_0x1db2d1,_0x24946d),writeCacheJson(_0x1db2d1,_0x52b9b5);},'clear':_0x482303=>{const _0x3ba664=_0x430de1(_0x482303);clearCache(_0x3ba664);},'exists':_0x12f3b6=>{const _0x37f792=_0x430de1(_0x12f3b6);return cacheExists(_0x37f792);},'path':_0x3900d8=>{const _0xa21c90=_0x430de1(_0x3900d8);return getGlobalCachePath(_0xa21c90);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- (function(_0x594eb9,_0x555554){const _0x4fa664=a216_0x48f8,_0x3e6cf1=_0x594eb9();while(!![]){try{const _0x2873fe=parseInt(_0x4fa664(0x1bf))/0x1*(-parseInt(_0x4fa664(0x1ab))/0x2)+-parseInt(_0x4fa664(0x1aa))/0x3+parseInt(_0x4fa664(0x1b8))/0x4*(-parseInt(_0x4fa664(0x1be))/0x5)+-parseInt(_0x4fa664(0x1ad))/0x6+-parseInt(_0x4fa664(0x1bd))/0x7+parseInt(_0x4fa664(0x1af))/0x8+-parseInt(_0x4fa664(0x1c1))/0x9*(-parseInt(_0x4fa664(0x1ac))/0xa);if(_0x2873fe===_0x555554)break;else _0x3e6cf1['push'](_0x3e6cf1['shift']());}catch(_0x895a23){_0x3e6cf1['push'](_0x3e6cf1['shift']());}}}(a216_0x4b98,0x91fdd));import{readFile}from'fs/promises';function a216_0x4b98(){const _0x2d2b1e=['1783DcGdUD','INTERNAL','9kTcvFv','2524647orSRyf','242aeODkp','25653610AdVpCY','3296040caMazO','utf-8','4619128oGsrDx','ENOENT','INVALID_ARGUMENT','parse','\x27:\x20','Permission\x20denied\x20reading\x20file:\x20','File\x20not\x20found:\x20','message','code','3460ElLPYz','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Failed\x20to\x20load\x20JSON:\x20','EACCES','NOT_FOUND','166838cIWraf','5285sTSNZS'];a216_0x4b98=function(){return _0x2d2b1e;};return a216_0x4b98();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x5b69cf,_0x4b75c2){const _0x5622ea=a216_0x48f8;try{if(_0x4b75c2){const _0x381624=await readFile(_0x5b69cf,_0x5622ea(0x1ae));try{return JSON['parse'](_0x381624);}catch(_0x4f8b22){throw new SDKError(ErrorCode[_0x5622ea(0x1b1)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x5b69cf+_0x5622ea(0x1b3)+(_0x4f8b22 instanceof Error?_0x4f8b22[_0x5622ea(0x1b6)]:String(_0x4f8b22)));}}else try{return JSON[_0x5622ea(0x1b2)](_0x5b69cf);}catch(_0xa3d49a){throw new SDKError(ErrorCode[_0x5622ea(0x1b1)],'Invalid\x20JSON\x20string:\x20'+(_0xa3d49a instanceof Error?_0xa3d49a[_0x5622ea(0x1b6)]:String(_0xa3d49a)));}}catch(_0x42d30d){if(_0x42d30d instanceof SDKError)throw _0x42d30d;if(_0x42d30d instanceof Error&&_0x5622ea(0x1b7)in _0x42d30d){const _0x5c190f=_0x42d30d;if(_0x5c190f[_0x5622ea(0x1b7)]===_0x5622ea(0x1b0))throw new SDKError(ErrorCode[_0x5622ea(0x1bc)],_0x5622ea(0x1b5)+_0x5b69cf);else{if(_0x5c190f[_0x5622ea(0x1b7)]===_0x5622ea(0x1bb))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5622ea(0x1b4)+_0x5b69cf);}}throw new SDKError(ErrorCode[_0x5622ea(0x1c0)],_0x5622ea(0x1ba)+(_0x42d30d instanceof Error?_0x42d30d[_0x5622ea(0x1b6)]:String(_0x42d30d)));}}function a216_0x48f8(_0x5707a7,_0x467943){_0x5707a7=_0x5707a7-0x1aa;const _0x4b984b=a216_0x4b98();let _0x48f8bb=_0x4b984b[_0x5707a7];return _0x48f8bb;}export async function loadJSONFromOptions(_0x2a81fe,_0xc6f567){const _0xcf1c96=a216_0x48f8;if(_0x2a81fe&&_0xc6f567)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xcf1c96(0x1b9));if(_0x2a81fe)return await loadJSON(_0x2a81fe,![]);if(_0xc6f567)return await loadJSON(_0xc6f567,!![]);return undefined;}
1
+ (function(_0x52f339,_0x2024f2){const _0x18f54e=a216_0x4e50,_0x24432f=_0x52f339();while(!![]){try{const _0x30f035=-parseInt(_0x18f54e(0xa6))/0x1+parseInt(_0x18f54e(0xb7))/0x2+parseInt(_0x18f54e(0xb8))/0x3*(parseInt(_0x18f54e(0xba))/0x4)+parseInt(_0x18f54e(0xa4))/0x5*(parseInt(_0x18f54e(0xb1))/0x6)+-parseInt(_0x18f54e(0xb2))/0x7+parseInt(_0x18f54e(0xb3))/0x8+parseInt(_0x18f54e(0xaf))/0x9*(parseInt(_0x18f54e(0xb4))/0xa);if(_0x30f035===_0x2024f2)break;else _0x24432f['push'](_0x24432f['shift']());}catch(_0x2ab726){_0x24432f['push'](_0x24432f['shift']());}}}(a216_0x1a6a,0x1c843));import{readFile}from'fs/promises';function a216_0x4e50(_0x3a16ab,_0x1897ee){_0x3a16ab=_0x3a16ab-0xa4;const _0x1a6ad5=a216_0x1a6a();let _0x4e50ee=_0x1a6ad5[_0x3a16ab];return _0x4e50ee;}function a216_0x1a6a(){const _0x2a92aa=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','30062MvGUIq','1227rjDgrG','message','116zjCWGw','54865kNiPrm','Invalid\x20JSON\x20string:\x20','212953scaNhn','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','parse','PERMISSION_DENIED','code','NOT_FOUND','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','308421yaAaUD','INTERNAL','78fVQTtM','821905CyISyq','301976exuWgu','70RoyUjY','\x27:\x20'];a216_0x1a6a=function(){return _0x2a92aa;};return a216_0x1a6a();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x45bd9b,_0x50b190){const _0x26af70=a216_0x4e50;try{if(_0x50b190){const _0x2b5f00=await readFile(_0x45bd9b,'utf-8');try{return JSON[_0x26af70(0xa9)](_0x2b5f00);}catch(_0x597c83){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x26af70(0xae)+_0x45bd9b+_0x26af70(0xb5)+(_0x597c83 instanceof Error?_0x597c83[_0x26af70(0xb9)]:String(_0x597c83)));}}else try{return JSON[_0x26af70(0xa9)](_0x45bd9b);}catch(_0x542e37){throw new SDKError(ErrorCode[_0x26af70(0xa7)],_0x26af70(0xa5)+(_0x542e37 instanceof Error?_0x542e37[_0x26af70(0xb9)]:String(_0x542e37)));}}catch(_0x2bdf70){if(_0x2bdf70 instanceof SDKError)throw _0x2bdf70;if(_0x2bdf70 instanceof Error&&_0x26af70(0xab)in _0x2bdf70){const _0x4b0fcc=_0x2bdf70;if(_0x4b0fcc[_0x26af70(0xab)]==='ENOENT')throw new SDKError(ErrorCode[_0x26af70(0xac)],'File\x20not\x20found:\x20'+_0x45bd9b);else{if(_0x4b0fcc[_0x26af70(0xab)]==='EACCES')throw new SDKError(ErrorCode[_0x26af70(0xaa)],_0x26af70(0xad)+_0x45bd9b);}}throw new SDKError(ErrorCode[_0x26af70(0xb0)],_0x26af70(0xa8)+(_0x2bdf70 instanceof Error?_0x2bdf70[_0x26af70(0xb9)]:String(_0x2bdf70)));}}export async function loadJSONFromOptions(_0x3eadd6,_0x45cd48){const _0x1a1bea=a216_0x4e50;if(_0x3eadd6&&_0x45cd48)throw new SDKError(ErrorCode[_0x1a1bea(0xa7)],_0x1a1bea(0xb6));if(_0x3eadd6)return await loadJSON(_0x3eadd6,![]);if(_0x45cd48)return await loadJSON(_0x45cd48,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x3db350,_0x4322a3){const _0x1cca35=a217_0x1f90,_0x2e0b52=_0x3db350();while(!![]){try{const _0x4982c2=parseInt(_0x1cca35(0x101))/0x1+-parseInt(_0x1cca35(0xf6))/0x2+parseInt(_0x1cca35(0x107))/0x3+parseInt(_0x1cca35(0x100))/0x4*(parseInt(_0x1cca35(0x10a))/0x5)+-parseInt(_0x1cca35(0xf7))/0x6*(-parseInt(_0x1cca35(0xf8))/0x7)+parseInt(_0x1cca35(0x102))/0x8*(parseInt(_0x1cca35(0xfb))/0x9)+-parseInt(_0x1cca35(0xfe))/0xa*(parseInt(_0x1cca35(0x109))/0xb);if(_0x4982c2===_0x4322a3)break;else _0x2e0b52['push'](_0x2e0b52['shift']());}catch(_0x922000){_0x2e0b52['push'](_0x2e0b52['shift']());}}}(a217_0x2e9a,0x39d2c));function a217_0x2e9a(){const _0x217614=['clear','1097136AllRui','get','99QSGPYj','15qAvoHR','301310DdEZDP','539898maqgCT','7geYmQa','root','parse','18MFpCpw','utf-8','Cache\x20key\x20\x22','1047110GKMGsE','\x22\x20already\x20registered\x20by\x20\x22','21736KCqQID','421609sJpzwS','1745168BVJQux','trim','\x22,\x20cannot\x20register\x20for\x20\x22','stringify'];a217_0x2e9a=function(){return _0x217614;};return a217_0x2e9a();}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a217_0x1f90(_0x1d274f,_0x2aff28){_0x1d274f=_0x1d274f-0xf6;const _0x2e9a72=a217_0x2e9a();let _0x1f903d=_0x2e9a72[_0x1d274f];return _0x1f903d;}import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x10b44c,_0x2a6245){const _0x20ff30=a217_0x1f90,_0xb45f75=registry[_0x20ff30(0x108)](_0x10b44c);if(_0xb45f75&&_0xb45f75!==_0x2a6245)throw new Error(_0x20ff30(0xfd)+_0x10b44c+_0x20ff30(0xff)+_0xb45f75+_0x20ff30(0x104)+_0x2a6245+'\x22');registry['set'](_0x10b44c,_0x2a6245);}export function getCacheDir(){const _0x5761e1=a217_0x1f90,_0x2a14f3=process['cwd'](),_0x4a066e=_0x2a14f3===parse(_0x2a14f3)[_0x5761e1(0xf9)]?homedir():_0x2a14f3;return join(_0x4a066e,LOCAL_CACHE_DIR);}export function getCachePath(_0x178e38){return join(getCacheDir(),_0x178e38);}function ensureCacheDir(){const _0x36a3e9=getCacheDir();!existsSync(_0x36a3e9)&&mkdirSync(_0x36a3e9,{'recursive':!![]});}function readCacheJson(_0x622644){const _0x5916d5=a217_0x1f90,_0x5e8f1b=getCachePath(_0x622644);if(!existsSync(_0x5e8f1b))return undefined;try{const _0x5d0cff=readFileSync(_0x5e8f1b,'utf-8');return JSON[_0x5916d5(0xfa)](_0x5d0cff);}catch{return undefined;}}function writeCacheJson(_0x32648c,_0x34be53){const _0xf10b96=a217_0x1f90;ensureCacheDir(),writeFileSync(getCachePath(_0x32648c),JSON[_0xf10b96(0x105)](_0x34be53,null,0x2),_0xf10b96(0xfc));}function readCacheText(_0x2203f3){const _0x90409=a217_0x1f90,_0x498fc4=getCachePath(_0x2203f3);if(!existsSync(_0x498fc4))return undefined;try{return readFileSync(_0x498fc4,_0x90409(0xfc));}catch{return undefined;}}function writeCacheText(_0x186456,_0x29b6ce){const _0x300302=a217_0x1f90;ensureCacheDir(),writeFileSync(getCachePath(_0x186456),_0x29b6ce,_0x300302(0xfc));}function clearCache(_0x4d2fa4){const _0x43269c=getCachePath(_0x4d2fa4);if(existsSync(_0x43269c))try{unlinkSync(_0x43269c);}catch{}}function cacheExists(_0x5a045e){return existsSync(getCachePath(_0x5a045e));}export function createCache(_0x3f83b9,_0x982791){return registerCacheKey(_0x3f83b9,_0x982791),{'read':()=>readCacheJson(_0x3f83b9),'write':_0x127865=>writeCacheJson(_0x3f83b9,_0x127865),'clear':()=>clearCache(_0x3f83b9),'exists':()=>cacheExists(_0x3f83b9),'path':()=>getCachePath(_0x3f83b9)};}export function createTextCache(_0x1f2294,_0x289efd){const _0x33b225=a217_0x1f90;return registerCacheKey(_0x1f2294,_0x289efd),{'read':()=>readCacheText(_0x1f2294)?.[_0x33b225(0x103)]()||undefined,'write':_0x8b904b=>writeCacheText(_0x1f2294,_0x8b904b),'clear':()=>clearCache(_0x1f2294),'exists':()=>cacheExists(_0x1f2294),'path':()=>getCachePath(_0x1f2294)};}export function clearRegistry(){const _0x2cbc6d=a217_0x1f90;registry[_0x2cbc6d(0x106)]();}
1
+ const a217_0x2a3e04=a217_0x31f4;(function(_0x157fde,_0x25e525){const _0x1632cd=a217_0x31f4,_0x193686=_0x157fde();while(!![]){try{const _0x3217bc=-parseInt(_0x1632cd(0xb3))/0x1*(parseInt(_0x1632cd(0xa7))/0x2)+-parseInt(_0x1632cd(0xbb))/0x3*(-parseInt(_0x1632cd(0xae))/0x4)+parseInt(_0x1632cd(0xad))/0x5+-parseInt(_0x1632cd(0xa9))/0x6+-parseInt(_0x1632cd(0xb1))/0x7*(parseInt(_0x1632cd(0xab))/0x8)+parseInt(_0x1632cd(0xa8))/0x9+parseInt(_0x1632cd(0xb6))/0xa;if(_0x3217bc===_0x25e525)break;else _0x193686['push'](_0x193686['shift']());}catch(_0x642df4){_0x193686['push'](_0x193686['shift']());}}}(a217_0x2ecc,0x82960));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x2a3e04(0xaf),registry=new Map();export function registerCacheKey(_0x4a0065,_0x30e598){const _0x40603f=a217_0x2a3e04,_0x2384df=registry[_0x40603f(0xb4)](_0x4a0065);if(_0x2384df&&_0x2384df!==_0x30e598)throw new Error(_0x40603f(0xba)+_0x4a0065+_0x40603f(0xb8)+_0x2384df+_0x40603f(0xb9)+_0x30e598+'\x22');registry[_0x40603f(0xb2)](_0x4a0065,_0x30e598);}export function getCacheDir(){const _0x6e89cb=a217_0x2a3e04,_0x7d0042=process['cwd'](),_0x4f1202=_0x7d0042===parse(_0x7d0042)[_0x6e89cb(0xb0)]?homedir():_0x7d0042;return join(_0x4f1202,LOCAL_CACHE_DIR);}export function getCachePath(_0x3e34b4){return join(getCacheDir(),_0x3e34b4);}function ensureCacheDir(){const _0x212d46=getCacheDir();!existsSync(_0x212d46)&&mkdirSync(_0x212d46,{'recursive':!![]});}function readCacheJson(_0x112ecb){const _0x464eb6=a217_0x2a3e04,_0x5b5609=getCachePath(_0x112ecb);if(!existsSync(_0x5b5609))return undefined;try{const _0xf8ed62=readFileSync(_0x5b5609,_0x464eb6(0xb7));return JSON[_0x464eb6(0xb5)](_0xf8ed62);}catch{return undefined;}}function writeCacheJson(_0x3a96b4,_0x3a9b5a){const _0x5a6800=a217_0x2a3e04;ensureCacheDir(),writeFileSync(getCachePath(_0x3a96b4),JSON[_0x5a6800(0xac)](_0x3a9b5a,null,0x2),_0x5a6800(0xb7));}function readCacheText(_0x153653){const _0x4dc37c=a217_0x2a3e04,_0x5087f7=getCachePath(_0x153653);if(!existsSync(_0x5087f7))return undefined;try{return readFileSync(_0x5087f7,_0x4dc37c(0xb7));}catch{return undefined;}}function a217_0x2ecc(){const _0x2f9a09=['.cache/tdx','root','14iyYzCp','set','14395DkIgCp','get','parse','11838910vWZovc','utf-8','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','63cGRjQh','clear','92ASMIbx','9268083XURSQt','4872816vqjXYO','trim','2109176gojBNf','stringify','328915iUCVKv','48956TQOgbw'];a217_0x2ecc=function(){return _0x2f9a09;};return a217_0x2ecc();}function writeCacheText(_0x189ff8,_0x511869){const _0x6c9e3f=a217_0x2a3e04;ensureCacheDir(),writeFileSync(getCachePath(_0x189ff8),_0x511869,_0x6c9e3f(0xb7));}function a217_0x31f4(_0x1841fd,_0x16cba2){_0x1841fd=_0x1841fd-0xa7;const _0x2ecc3b=a217_0x2ecc();let _0x31f4f2=_0x2ecc3b[_0x1841fd];return _0x31f4f2;}function clearCache(_0x100976){const _0x3d7992=getCachePath(_0x100976);if(existsSync(_0x3d7992))try{unlinkSync(_0x3d7992);}catch{}}function cacheExists(_0x588ab8){return existsSync(getCachePath(_0x588ab8));}export function createCache(_0x2b646f,_0x5074e3){return registerCacheKey(_0x2b646f,_0x5074e3),{'read':()=>readCacheJson(_0x2b646f),'write':_0x11165=>writeCacheJson(_0x2b646f,_0x11165),'clear':()=>clearCache(_0x2b646f),'exists':()=>cacheExists(_0x2b646f),'path':()=>getCachePath(_0x2b646f)};}export function createTextCache(_0x5d5474,_0x340fbc){const _0x1a6283=a217_0x2a3e04;return registerCacheKey(_0x5d5474,_0x340fbc),{'read':()=>readCacheText(_0x5d5474)?.[_0x1a6283(0xaa)]()||undefined,'write':_0x5bd7c9=>writeCacheText(_0x5d5474,_0x5bd7c9),'clear':()=>clearCache(_0x5d5474),'exists':()=>cacheExists(_0x5d5474),'path':()=>getCachePath(_0x5d5474)};}export function clearRegistry(){const _0x5d1b86=a217_0x2a3e04;registry[_0x5d1b86(0xbc)]();}
@@ -1 +1 @@
1
- const a218_0x46a4f4=a218_0x202a;(function(_0x2f6e5b,_0x1eb4fc){const _0x5158ff=a218_0x202a,_0x41e0ea=_0x2f6e5b();while(!![]){try{const _0x3569cc=parseInt(_0x5158ff(0x19e))/0x1*(parseInt(_0x5158ff(0x195))/0x2)+parseInt(_0x5158ff(0x19d))/0x3+-parseInt(_0x5158ff(0x191))/0x4+parseInt(_0x5158ff(0x190))/0x5+-parseInt(_0x5158ff(0x1a4))/0x6*(-parseInt(_0x5158ff(0x1a0))/0x7)+-parseInt(_0x5158ff(0x197))/0x8*(parseInt(_0x5158ff(0x18b))/0x9)+-parseInt(_0x5158ff(0x18c))/0xa;if(_0x3569cc===_0x1eb4fc)break;else _0x41e0ea['push'](_0x41e0ea['shift']());}catch(_0x1d7109){_0x41e0ea['push'](_0x41e0ea['shift']());}}}(a218_0x19c2,0x905f3));function a218_0x19c2(){const _0x33ed16=['colors','3262mLYwMo','component','552WXUUyN','colorLevel','default','format','ERROR','cyan','3006300xWdEVx','562mdHbgG','chalk','4900xOVlrR','blue','dim','Chalk','4260VpdSNs','message','yellow','green','red','72279chKzcW','13137170YyJWXh','INFO','gray','level','4991000hxHhfx','3818876aFRwKM','DEBUG','timestamp'];a218_0x19c2=function(){return _0x33ed16;};return a218_0x19c2();}import a218_0x8e3788 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a218_0x202a(_0x16653d,_0xe75a4e){_0x16653d=_0x16653d-0x18a;const _0x19c2b6=a218_0x19c2();let _0x202a8f=_0x19c2b6[_0x16653d];return _0x202a8f;}const chalkModule=a218_0x8e3788,ChalkClass=chalkModule[a218_0x46a4f4(0x1a3)]||chalkModule[a218_0x46a4f4(0x199)]?.[a218_0x46a4f4(0x1a3)];export class DefaultLogFormatter{[a218_0x46a4f4(0x194)];['chalk'];constructor(_0x5b0bb0={}){const _0x3ab1ae=a218_0x46a4f4;this[_0x3ab1ae(0x194)]=_0x5b0bb0[_0x3ab1ae(0x194)]??![],this[_0x3ab1ae(0x19f)]=_0x5b0bb0[_0x3ab1ae(0x194)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x8e3788;}[a218_0x46a4f4(0x19a)](_0x1bc3fc){const _0x1ee4a4=a218_0x46a4f4,_0x12538f=formatTimestamp(_0x1bc3fc[_0x1ee4a4(0x193)]),_0x431ea2=logLevelToString(_0x1bc3fc[_0x1ee4a4(0x18f)]);if(!this[_0x1ee4a4(0x194)])return _0x12538f+'\x20['+_0x431ea2+']\x20['+_0x1bc3fc[_0x1ee4a4(0x196)]+']\x20'+_0x1bc3fc[_0x1ee4a4(0x1a5)];const _0x159e3c=this['chalk'][_0x1ee4a4(0x1a2)](_0x12538f),_0xe9e37f=this[_0x1ee4a4(0x198)](_0x431ea2,_0x1bc3fc['level']),_0x3481c8=this[_0x1ee4a4(0x19f)][_0x1ee4a4(0x1a1)]('['+_0x1bc3fc['component']+']');return _0x159e3c+'\x20'+_0xe9e37f+'\x20'+_0x3481c8+'\x20'+_0x1bc3fc[_0x1ee4a4(0x1a5)];}['colorLevel'](_0x3f4787,_0x491e68){const _0x549f6c=a218_0x46a4f4;switch(_0x491e68){case LogLevel['TRACE']:return this[_0x549f6c(0x19f)][_0x549f6c(0x18e)]('['+_0x3f4787+']');case LogLevel[_0x549f6c(0x192)]:return this[_0x549f6c(0x19f)][_0x549f6c(0x1a7)]('['+_0x3f4787+']');case LogLevel[_0x549f6c(0x18d)]:return this[_0x549f6c(0x19f)][_0x549f6c(0x19c)]('['+_0x3f4787+']');case LogLevel['WARN']:return this['chalk'][_0x549f6c(0x1a6)]('['+_0x3f4787+']');case LogLevel[_0x549f6c(0x19b)]:return this[_0x549f6c(0x19f)][_0x549f6c(0x18a)]('['+_0x3f4787+']');default:return'['+_0x3f4787+']';}}}
1
+ const a218_0x3351ea=a218_0x45ed;(function(_0x266c37,_0x30f693){const _0x46bbde=a218_0x45ed,_0x312cd0=_0x266c37();while(!![]){try{const _0x1fd977=parseInt(_0x46bbde(0xdd))/0x1+parseInt(_0x46bbde(0xf1))/0x2+-parseInt(_0x46bbde(0xe6))/0x3+parseInt(_0x46bbde(0xe5))/0x4+parseInt(_0x46bbde(0xeb))/0x5*(-parseInt(_0x46bbde(0xef))/0x6)+-parseInt(_0x46bbde(0xdc))/0x7*(parseInt(_0x46bbde(0xdb))/0x8)+-parseInt(_0x46bbde(0xe4))/0x9*(parseInt(_0x46bbde(0xf2))/0xa);if(_0x1fd977===_0x30f693)break;else _0x312cd0['push'](_0x312cd0['shift']());}catch(_0x1e99a7){_0x312cd0['push'](_0x312cd0['shift']());}}}(a218_0x24f1,0x3b573));import a218_0x178071 from'chalk';function a218_0x24f1(){const _0x771394=['14Qfhqjj','227599YrjYUu','yellow','cyan','Chalk','blue','level','green','9iYLIFV','1803964vAfNvb','774186PYrkEn','colorLevel','message','red','component','259555GsVaxg','TRACE','chalk','WARN','6kQhMic','ERROR','774890PYLUSm','2556010AVBJGW','gray','default','colors','INFO','1029608Erwffl'];a218_0x24f1=function(){return _0x771394;};return a218_0x24f1();}function a218_0x45ed(_0x190c96,_0x2c0cf4){_0x190c96=_0x190c96-0xd8;const _0x24f112=a218_0x24f1();let _0x45edf5=_0x24f112[_0x190c96];return _0x45edf5;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x178071,ChalkClass=chalkModule[a218_0x3351ea(0xe0)]||chalkModule[a218_0x3351ea(0xd8)]?.[a218_0x3351ea(0xe0)];export class DefaultLogFormatter{[a218_0x3351ea(0xd9)];[a218_0x3351ea(0xed)];constructor(_0x369889={}){const _0x5b7e3c=a218_0x3351ea;this['colors']=_0x369889[_0x5b7e3c(0xd9)]??![],this[_0x5b7e3c(0xed)]=_0x369889['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x178071;}['format'](_0x1cb639){const _0x4b7699=a218_0x3351ea,_0xc745e3=formatTimestamp(_0x1cb639['timestamp']),_0x9101aa=logLevelToString(_0x1cb639[_0x4b7699(0xe2)]);if(!this[_0x4b7699(0xd9)])return _0xc745e3+'\x20['+_0x9101aa+']\x20['+_0x1cb639[_0x4b7699(0xea)]+']\x20'+_0x1cb639[_0x4b7699(0xe8)];const _0x1217dc=this[_0x4b7699(0xed)]['dim'](_0xc745e3),_0x44dac0=this[_0x4b7699(0xe7)](_0x9101aa,_0x1cb639[_0x4b7699(0xe2)]),_0x3242ae=this[_0x4b7699(0xed)][_0x4b7699(0xe1)]('['+_0x1cb639[_0x4b7699(0xea)]+']');return _0x1217dc+'\x20'+_0x44dac0+'\x20'+_0x3242ae+'\x20'+_0x1cb639[_0x4b7699(0xe8)];}[a218_0x3351ea(0xe7)](_0xe0f9cc,_0x1a6bb2){const _0x582c15=a218_0x3351ea;switch(_0x1a6bb2){case LogLevel[_0x582c15(0xec)]:return this[_0x582c15(0xed)][_0x582c15(0xf3)]('['+_0xe0f9cc+']');case LogLevel['DEBUG']:return this['chalk'][_0x582c15(0xe3)]('['+_0xe0f9cc+']');case LogLevel[_0x582c15(0xda)]:return this[_0x582c15(0xed)][_0x582c15(0xdf)]('['+_0xe0f9cc+']');case LogLevel[_0x582c15(0xee)]:return this[_0x582c15(0xed)][_0x582c15(0xde)]('['+_0xe0f9cc+']');case LogLevel[_0x582c15(0xf0)]:return this[_0x582c15(0xed)][_0x582c15(0xe9)]('['+_0xe0f9cc+']');default:return'['+_0xe0f9cc+']';}}}
@@ -1 +1 @@
1
- function a219_0x513a(){var _0x3b84dd=['34404161QnWNnP','4755056cJcwJD','6302964JKHmax','9VucwKS','3331947VKDWmS','5yAxiFr','363884bfmRJV','11051831DrDWjp','15416590Oejxcc','8iaGABl','1GFkuPi'];a219_0x513a=function(){return _0x3b84dd;};return a219_0x513a();}function a219_0x5dee(_0x4fcaf5,_0x537493){_0x4fcaf5=_0x4fcaf5-0x13d;var _0x513ac1=a219_0x513a();var _0x5dee46=_0x513ac1[_0x4fcaf5];return _0x5dee46;}(function(_0x4e0aa7,_0x4968c0){var _0x5b6f9d=a219_0x5dee,_0x1ea565=_0x4e0aa7();while(!![]){try{var _0x17b215=-parseInt(_0x5b6f9d(0x147))/0x1*(parseInt(_0x5b6f9d(0x143))/0x2)+parseInt(_0x5b6f9d(0x141))/0x3+-parseInt(_0x5b6f9d(0x13e))/0x4*(parseInt(_0x5b6f9d(0x142))/0x5)+parseInt(_0x5b6f9d(0x13f))/0x6+-parseInt(_0x5b6f9d(0x144))/0x7*(parseInt(_0x5b6f9d(0x146))/0x8)+parseInt(_0x5b6f9d(0x140))/0x9*(-parseInt(_0x5b6f9d(0x145))/0xa)+parseInt(_0x5b6f9d(0x13d))/0xb;if(_0x17b215===_0x4968c0)break;else _0x1ea565['push'](_0x1ea565['shift']());}catch(_0x120b20){_0x1ea565['push'](_0x1ea565['shift']());}}}(a219_0x513a,0xc2b9c));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a219_0x4d3a(_0x358045,_0x534f81){_0x358045=_0x358045-0x105;var _0x4e967b=a219_0x4e96();var _0x4d3a7e=_0x4e967b[_0x358045];return _0x4d3a7e;}(function(_0xeb8e22,_0x4ac85b){var _0x4862dd=a219_0x4d3a,_0x337402=_0xeb8e22();while(!![]){try{var _0x3b9832=-parseInt(_0x4862dd(0x105))/0x1*(-parseInt(_0x4862dd(0x10a))/0x2)+-parseInt(_0x4862dd(0x108))/0x3+parseInt(_0x4862dd(0x10b))/0x4+parseInt(_0x4862dd(0x109))/0x5+-parseInt(_0x4862dd(0x10c))/0x6+parseInt(_0x4862dd(0x107))/0x7+-parseInt(_0x4862dd(0x106))/0x8;if(_0x3b9832===_0x4ac85b)break;else _0x337402['push'](_0x337402['shift']());}catch(_0x3c8015){_0x337402['push'](_0x337402['shift']());}}}(a219_0x4e96,0x7fef3));function a219_0x4e96(){var _0x1bae6c=['6mFmDnF','1824348nKOUxC','4860534yPdEzW','36347BOtRHX','4157240MVTAgz','3223346BPYfEL','78630WAfiqc','4271835NhwoQc'];a219_0x4e96=function(){return _0x1bae6c;};return a219_0x4e96();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a220_0x49a012=a220_0x5aed;(function(_0x51d83a,_0x3f9fbe){const _0x1b7183=a220_0x5aed,_0x1e5021=_0x51d83a();while(!![]){try{const _0xc345a9=parseInt(_0x1b7183(0x1b0))/0x1*(-parseInt(_0x1b7183(0x1a7))/0x2)+parseInt(_0x1b7183(0x1b3))/0x3+-parseInt(_0x1b7183(0x1a9))/0x4+parseInt(_0x1b7183(0x1a6))/0x5+parseInt(_0x1b7183(0x1ab))/0x6*(-parseInt(_0x1b7183(0x1af))/0x7)+-parseInt(_0x1b7183(0x1b1))/0x8*(parseInt(_0x1b7183(0x1b7))/0x9)+parseInt(_0x1b7183(0x1ae))/0xa*(parseInt(_0x1b7183(0x1aa))/0xb);if(_0xc345a9===_0x3f9fbe)break;else _0x1e5021['push'](_0x1e5021['shift']());}catch(_0x1d93e0){_0x1e5021['push'](_0x1e5021['shift']());}}}(a220_0x2128,0xe289d));function a220_0x5aed(_0x5dddcb,_0x275a66){_0x5dddcb=_0x5dddcb-0x1a6;const _0x2128fe=a220_0x2128();let _0x5aed6a=_0x2128fe[_0x5dddcb];return _0x5aed6a;}import{LogLevel as a220_0x5e4346}from'../types.js';function a220_0x2128(){const _0x18f2a6=['4327764APRiUm','1OkAArm','18184YlXISN','colors','4526640CurKPt','error','level','formatter','3492UFoBTD','format','7328515YZNmUZ','2978358oziXLa','useStderr','6034024eaOLQt','1586057DMvdAb','6CULQxo','WARN','minLevel','170fxNVXy'];a220_0x2128=function(){return _0x18f2a6;};return a220_0x2128();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];['useStderr'];[a220_0x49a012(0x1b6)];constructor(_0x15822e={}){const _0x50faa2=a220_0x49a012;this[_0x50faa2(0x1ad)]=_0x15822e[_0x50faa2(0x1ad)]??a220_0x5e4346[_0x50faa2(0x1ac)],this[_0x50faa2(0x1a8)]=_0x15822e[_0x50faa2(0x1a8)]??!![],this[_0x50faa2(0x1b6)]=new DefaultLogFormatter({'colors':_0x15822e[_0x50faa2(0x1b2)]??!![]});}['handle'](_0x4a8983){const _0x40d6de=a220_0x49a012;if(_0x4a8983[_0x40d6de(0x1b5)]<this[_0x40d6de(0x1ad)])return;const _0x39b678=this[_0x40d6de(0x1b6)][_0x40d6de(0x1b8)](_0x4a8983);this['useStderr']&&_0x4a8983[_0x40d6de(0x1b5)]>=a220_0x5e4346[_0x40d6de(0x1ac)]?console[_0x40d6de(0x1b4)](_0x39b678):console['log'](_0x39b678);}}
1
+ const a220_0x2843e0=a220_0xbdcd;(function(_0x54e7e4,_0x31ce50){const _0x169c51=a220_0xbdcd,_0x72137b=_0x54e7e4();while(!![]){try{const _0x3c16a5=parseInt(_0x169c51(0xf7))/0x1*(-parseInt(_0x169c51(0xec))/0x2)+-parseInt(_0x169c51(0xe6))/0x3+-parseInt(_0x169c51(0xe5))/0x4*(parseInt(_0x169c51(0xe8))/0x5)+parseInt(_0x169c51(0xe7))/0x6+parseInt(_0x169c51(0xf4))/0x7*(parseInt(_0x169c51(0xe9))/0x8)+-parseInt(_0x169c51(0xe4))/0x9*(-parseInt(_0x169c51(0xf5))/0xa)+-parseInt(_0x169c51(0xf6))/0xb*(-parseInt(_0x169c51(0xe3))/0xc);if(_0x3c16a5===_0x31ce50)break;else _0x72137b['push'](_0x72137b['shift']());}catch(_0x3a5bb3){_0x72137b['push'](_0x72137b['shift']());}}}(a220_0x3a33,0xbfb97));function a220_0xbdcd(_0x5e5103,_0x9870b8){_0x5e5103=_0x5e5103-0xe3;const _0x3a3352=a220_0x3a33();let _0xbdcd0f=_0x3a3352[_0x5e5103];return _0xbdcd0f;}import{LogLevel as a220_0x3a836e}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a220_0x3a33(){const _0xf7277a=['1388568srmIsP','709398EbigDL','65oqpfUy','419240QojYuu','formatter','colors','2iqfQbl','format','level','minLevel','useStderr','error','WARN','handle','77yNBGSN','530ERhXuJ','16099831MYNOEN','1467887fDcfIA','12soQOwE','136872vcUGjW','76396uOEoTD'];a220_0x3a33=function(){return _0xf7277a;};return a220_0x3a33();}export class ConsoleHandler{[a220_0x2843e0(0xef)];[a220_0x2843e0(0xf0)];[a220_0x2843e0(0xea)];constructor(_0x4eb9da={}){const _0x44c9b1=a220_0x2843e0;this[_0x44c9b1(0xef)]=_0x4eb9da[_0x44c9b1(0xef)]??a220_0x3a836e[_0x44c9b1(0xf2)],this[_0x44c9b1(0xf0)]=_0x4eb9da[_0x44c9b1(0xf0)]??!![],this[_0x44c9b1(0xea)]=new DefaultLogFormatter({'colors':_0x4eb9da[_0x44c9b1(0xeb)]??!![]});}[a220_0x2843e0(0xf3)](_0x118b1f){const _0x2b4980=a220_0x2843e0;if(_0x118b1f[_0x2b4980(0xee)]<this[_0x2b4980(0xef)])return;const _0x1aeb8f=this[_0x2b4980(0xea)][_0x2b4980(0xed)](_0x118b1f);this[_0x2b4980(0xf0)]&&_0x118b1f[_0x2b4980(0xee)]>=a220_0x3a836e[_0x2b4980(0xf2)]?console[_0x2b4980(0xf1)](_0x1aeb8f):console['log'](_0x1aeb8f);}}
@@ -1 +1 @@
1
- const a221_0x459469=a221_0x252a;function a221_0x4b37(){const _0x5b7f65=['239489jBkRSi','format','test','error','replace','rotateOldLogs','logDir','logStream','logs','.log','9CioPOb','includes','3840TNSHLr','logBaseName','init','write','.gz','filter','Warning:\x20Error\x20writing\x20to\x20','9oiQnmN','close','418440hMLNTC','Warning:\x20Failed\x20to\x20compress\x20','tdx.log','150118KYtRTt','mtime','3437USTxUJ','2647914zpxKOT','end','toISOString','2633460qImnWN','split','logPath','6447770owsaqQ','\x5c$&','rotate','message','logFileName','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'];a221_0x4b37=function(){return _0x5b7f65;};return a221_0x4b37();}(function(_0x68ea5d,_0x3cebf7){const _0x369587=a221_0x252a,_0x2813ac=_0x68ea5d();while(!![]){try{const _0x5535fa=-parseInt(_0x369587(0x1f1))/0x1+parseInt(_0x369587(0x209))/0x2*(parseInt(_0x369587(0x1fb))/0x3)+-parseInt(_0x369587(0x206))/0x4+parseInt(_0x369587(0x1e8))/0x5+-parseInt(_0x369587(0x1e5))/0x6+parseInt(_0x369587(0x20b))/0x7*(-parseInt(_0x369587(0x1fd))/0x8)+-parseInt(_0x369587(0x204))/0x9*(-parseInt(_0x369587(0x1eb))/0xa);if(_0x5535fa===_0x3cebf7)break;else _0x2813ac['push'](_0x2813ac['shift']());}catch(_0x4d5cda){_0x2813ac['push'](_0x2813ac['shift']());}}}(a221_0x4b37,0x5bafc));import{createWriteStream,createReadStream}from'fs';function a221_0x252a(_0x3d6aa6,_0x176a6d){_0x3d6aa6=_0x3d6aa6-0x1e5;const _0x4b37b1=a221_0x4b37();let _0x252a0c=_0x4b37b1[_0x3d6aa6];return _0x252a0c;}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x459469(0x1ea)];[a221_0x459469(0x1f7)];[a221_0x459469(0x1ef)];[a221_0x459469(0x1fe)];['logStream']=null;[a221_0x459469(0x1ed)];constructor(_0x37c490={}){const _0x1bedcd=a221_0x459469;this[_0x1bedcd(0x1ea)]=_0x37c490['filePath']??join(getGlobalCacheDir(),_0x1bedcd(0x1f9),_0x1bedcd(0x208)),this[_0x1bedcd(0x1f7)]=dirname(this[_0x1bedcd(0x1ea)]),this[_0x1bedcd(0x1ef)]=basename(this[_0x1bedcd(0x1ea)]),this[_0x1bedcd(0x1fe)]=this[_0x1bedcd(0x1ef)][_0x1bedcd(0x1f5)](/\.log$/,''),this['rotate']=_0x37c490[_0x1bedcd(0x1ed)]??!![];}async[a221_0x459469(0x1ff)](){const _0x9727c3=a221_0x459469;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x9727c3(0x1ed)]&&await this['rotateOldLogs'](),this[_0x9727c3(0x1f8)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x9727c3(0x1f8)]['on']('error',_0x3fe7ea=>{const _0x217737=_0x9727c3;console[_0x217737(0x1f4)](_0x217737(0x203)+this[_0x217737(0x1ef)]+':',_0x3fe7ea[_0x217737(0x1ee)]);});}catch(_0x2301e5){console[_0x9727c3(0x1f4)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x2301e5);}}['handle'](_0x46975a){const _0x44a2a7=a221_0x459469;if(!this[_0x44a2a7(0x1f8)])return;const _0x45d41e=Logger[_0x44a2a7(0x1f2)](_0x46975a);this[_0x44a2a7(0x1f8)][_0x44a2a7(0x200)](_0x45d41e+'\x0a');}async[a221_0x459469(0x205)](){return new Promise(_0x2f3a3c=>{const _0xa02b48=a221_0x252a;this[_0xa02b48(0x1f8)]?this[_0xa02b48(0x1f8)][_0xa02b48(0x1e6)](()=>{const _0x3e7dd4=_0xa02b48;this[_0x3e7dd4(0x1f8)]=null,_0x2f3a3c();}):_0x2f3a3c();});}['getLogPath'](){const _0x194bea=a221_0x459469;return this[_0x194bea(0x1ea)];}async[a221_0x459469(0x1f6)](){const _0x275766=a221_0x459469;try{const _0xe090d1=await readdir(this[_0x275766(0x1f7)]),_0x3cab96=new Date()['toISOString']()[_0x275766(0x1e9)]('T')[0x0];if(_0xe090d1[_0x275766(0x1fc)](this['logFileName'])){const _0x198b6e=join(this[_0x275766(0x1f7)],this[_0x275766(0x1ef)]),_0x177c42=await stat(_0x198b6e),_0x3a3707=new Date(_0x177c42[_0x275766(0x20a)])[_0x275766(0x1e7)]()[_0x275766(0x1e9)]('T')[0x0];if(_0x3a3707<_0x3cab96){const _0x41fafe=join(this[_0x275766(0x1f7)],this['logBaseName']+'-'+_0x3a3707+_0x275766(0x1fa));await rename(_0x198b6e,_0x41fafe);}}const _0xf98935=await readdir(this[_0x275766(0x1f7)]),_0x237a06=this[_0x275766(0x1fe)][_0x275766(0x1f5)](/[.*+?^${}()|[\]\\]/g,_0x275766(0x1ec)),_0x510508=new RegExp('^'+_0x237a06+_0x275766(0x1f0)),_0x151c48=_0xf98935[_0x275766(0x202)](_0x5827c8=>_0x510508[_0x275766(0x1f3)](_0x5827c8));for(const _0x4ec2d1 of _0x151c48){const _0x412588=join(this['logDir'],_0x4ec2d1),_0x1a509e=join(this[_0x275766(0x1f7)],_0x4ec2d1+_0x275766(0x201));try{await pipeline(createReadStream(_0x412588),createGzip(),createWriteStream(_0x1a509e)),await unlink(_0x412588);}catch(_0x539f81){console[_0x275766(0x1f4)](_0x275766(0x207)+_0x4ec2d1+':',_0x539f81);}}}catch{}}}
1
+ const a221_0x466cbb=a221_0x2f06;(function(_0x4080f1,_0x132ff8){const _0x49ff6a=a221_0x2f06,_0x12447f=_0x4080f1();while(!![]){try{const _0x116770=parseInt(_0x49ff6a(0x1d1))/0x1*(parseInt(_0x49ff6a(0x1cf))/0x2)+-parseInt(_0x49ff6a(0x1c1))/0x3*(-parseInt(_0x49ff6a(0x1be))/0x4)+parseInt(_0x49ff6a(0x1e1))/0x5+parseInt(_0x49ff6a(0x1c3))/0x6*(parseInt(_0x49ff6a(0x1cd))/0x7)+parseInt(_0x49ff6a(0x1e4))/0x8+-parseInt(_0x49ff6a(0x1c4))/0x9+parseInt(_0x49ff6a(0x1db))/0xa*(-parseInt(_0x49ff6a(0x1c9))/0xb);if(_0x116770===_0x132ff8)break;else _0x12447f['push'](_0x12447f['shift']());}catch(_0x34287e){_0x12447f['push'](_0x12447f['shift']());}}}(a221_0x214d,0x1a399));function a221_0x214d(){const _0x4ce9ab=['.gz','3jYgZmQ','mtime','119172mxWHLK','1088640GqYSSP','test','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','close','format','275WZoKZn','filePath','logPath','filter','21PYrcGA','end','564asmrCp','tdx.log','341LTvpmm','logBaseName','getLogPath','write','rotate','split','logDir','Warning:\x20Failed\x20to\x20compress\x20','toISOString','init','144830LdexwB','error','logStream','includes','logFileName','rotateOldLogs','83385CjfHLg','replace','.log','1692912qIBmip','825652FBweHm','handle'];a221_0x214d=function(){return _0x4ce9ab;};return a221_0x214d();}import{createWriteStream,createReadStream}from'fs';function a221_0x2f06(_0x2701d6,_0x10033f){_0x2701d6=_0x2701d6-0x1be;const _0x214da5=a221_0x214d();let _0x2f0689=_0x214da5[_0x2701d6];return _0x2f0689;}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];['logDir'];[a221_0x466cbb(0x1df)];['logBaseName'];[a221_0x466cbb(0x1dd)]=null;[a221_0x466cbb(0x1d5)];constructor(_0x1c0e47={}){const _0x165d43=a221_0x466cbb;this[_0x165d43(0x1cb)]=_0x1c0e47[_0x165d43(0x1ca)]??join(getGlobalCacheDir(),'logs',_0x165d43(0x1d0)),this[_0x165d43(0x1d7)]=dirname(this['logPath']),this['logFileName']=basename(this['logPath']),this[_0x165d43(0x1d2)]=this[_0x165d43(0x1df)][_0x165d43(0x1e2)](/\.log$/,''),this[_0x165d43(0x1d5)]=_0x1c0e47[_0x165d43(0x1d5)]??!![];}async[a221_0x466cbb(0x1da)](){const _0x19dfa4=a221_0x466cbb;try{await mkdir(this[_0x19dfa4(0x1d7)],{'recursive':!![]}),this[_0x19dfa4(0x1d5)]&&await this[_0x19dfa4(0x1e0)](),this[_0x19dfa4(0x1dd)]=createWriteStream(this[_0x19dfa4(0x1cb)],{'flags':'a'}),this[_0x19dfa4(0x1dd)]['on'](_0x19dfa4(0x1dc),_0x4e7881=>{const _0x3f2a60=_0x19dfa4;console[_0x3f2a60(0x1dc)]('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0x4e7881['message']);});}catch(_0x2c0996){console[_0x19dfa4(0x1dc)](_0x19dfa4(0x1c6),_0x2c0996);}}[a221_0x466cbb(0x1bf)](_0x4dd441){const _0x21eb91=a221_0x466cbb;if(!this[_0x21eb91(0x1dd)])return;const _0x5a8884=Logger[_0x21eb91(0x1c8)](_0x4dd441);this[_0x21eb91(0x1dd)][_0x21eb91(0x1d4)](_0x5a8884+'\x0a');}async[a221_0x466cbb(0x1c7)](){return new Promise(_0x27de7b=>{const _0x4e90a0=a221_0x2f06;this[_0x4e90a0(0x1dd)]?this[_0x4e90a0(0x1dd)][_0x4e90a0(0x1ce)](()=>{const _0x40f993=_0x4e90a0;this[_0x40f993(0x1dd)]=null,_0x27de7b();}):_0x27de7b();});}[a221_0x466cbb(0x1d3)](){const _0x322bf3=a221_0x466cbb;return this[_0x322bf3(0x1cb)];}async[a221_0x466cbb(0x1e0)](){const _0x246832=a221_0x466cbb;try{const _0x52daf8=await readdir(this[_0x246832(0x1d7)]),_0x183785=new Date()[_0x246832(0x1d9)]()[_0x246832(0x1d6)]('T')[0x0];if(_0x52daf8[_0x246832(0x1de)](this[_0x246832(0x1df)])){const _0x10bcb5=join(this[_0x246832(0x1d7)],this[_0x246832(0x1df)]),_0x4550ad=await stat(_0x10bcb5),_0x2888a8=new Date(_0x4550ad[_0x246832(0x1c2)])[_0x246832(0x1d9)]()['split']('T')[0x0];if(_0x2888a8<_0x183785){const _0x1bf227=join(this[_0x246832(0x1d7)],this[_0x246832(0x1d2)]+'-'+_0x2888a8+_0x246832(0x1e3));await rename(_0x10bcb5,_0x1bf227);}}const _0x48475c=await readdir(this[_0x246832(0x1d7)]),_0x2ebf77=this['logBaseName']['replace'](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x11626f=new RegExp('^'+_0x2ebf77+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x404c63=_0x48475c[_0x246832(0x1cc)](_0x32626b=>_0x11626f[_0x246832(0x1c5)](_0x32626b));for(const _0x18da09 of _0x404c63){const _0x1799d9=join(this[_0x246832(0x1d7)],_0x18da09),_0x4212e1=join(this[_0x246832(0x1d7)],_0x18da09+_0x246832(0x1c0));try{await pipeline(createReadStream(_0x1799d9),createGzip(),createWriteStream(_0x4212e1)),await unlink(_0x1799d9);}catch(_0x173863){console[_0x246832(0x1dc)](_0x246832(0x1d8)+_0x18da09+':',_0x173863);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5626c0,_0x56d68a){var _0x5c6c5a=a222_0x45d3,_0x5c9a4=_0x5626c0();while(!![]){try{var _0x21f9fb=-parseInt(_0x5c6c5a(0xb1))/0x1+-parseInt(_0x5c6c5a(0xb8))/0x2+parseInt(_0x5c6c5a(0xb6))/0x3*(parseInt(_0x5c6c5a(0xb4))/0x4)+-parseInt(_0x5c6c5a(0xb2))/0x5+-parseInt(_0x5c6c5a(0xb7))/0x6+-parseInt(_0x5c6c5a(0xb3))/0x7+parseInt(_0x5c6c5a(0xb5))/0x8;if(_0x21f9fb===_0x56d68a)break;else _0x5c9a4['push'](_0x5c9a4['shift']());}catch(_0x3718b7){_0x5c9a4['push'](_0x5c9a4['shift']());}}}(a222_0x4b76,0x66d25));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a222_0x45d3(_0x591623,_0x4c3e9e){_0x591623=_0x591623-0xb1;var _0x4b7682=a222_0x4b76();var _0x45d397=_0x4b7682[_0x591623];return _0x45d397;}function a222_0x4b76(){var _0x56ed9e=['20648HwgEJX','399741wHzoZJ','191830TQagkv','3059714axPRBy','2536Cbdrkd','8816648eZuBJH','3591RwXQED','3325734cLSWfW'];a222_0x4b76=function(){return _0x56ed9e;};return a222_0x4b76();}
1
+ function a222_0x599e(){var _0x1ea53b=['460956ILFmDM','2JjnvPr','208842eKSwUu','21AciELY','91wzqODR','72vnPSHF','3ZjpLCN','20421sQRjyM','3132280KsTjFE','828608ytGlOU','30XsSJpX','1168871OuTWYO','388910qXOHah'];a222_0x599e=function(){return _0x1ea53b;};return a222_0x599e();}function a222_0x31a7(_0x33fdaa,_0x2a463d){_0x33fdaa=_0x33fdaa-0x1da;var _0x599ecf=a222_0x599e();var _0x31a73b=_0x599ecf[_0x33fdaa];return _0x31a73b;}(function(_0x22a36c,_0x16db77){var _0x398502=a222_0x31a7,_0x25774e=_0x22a36c();while(!![]){try{var _0x4a63f7=-parseInt(_0x398502(0x1e4))/0x1*(-parseInt(_0x398502(0x1e2))/0x2)+-parseInt(_0x398502(0x1dc))/0x3*(-parseInt(_0x398502(0x1df))/0x4)+parseInt(_0x398502(0x1de))/0x5+-parseInt(_0x398502(0x1e5))/0x6*(parseInt(_0x398502(0x1e6))/0x7)+parseInt(_0x398502(0x1db))/0x8*(parseInt(_0x398502(0x1dd))/0x9)+-parseInt(_0x398502(0x1e0))/0xa*(parseInt(_0x398502(0x1e1))/0xb)+-parseInt(_0x398502(0x1e3))/0xc*(parseInt(_0x398502(0x1da))/0xd);if(_0x4a63f7===_0x16db77)break;else _0x25774e['push'](_0x25774e['shift']());}catch(_0x13babe){_0x25774e['push'](_0x25774e['shift']());}}}(a222_0x599e,0x867bc));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a223_0x4ebcc0=a223_0x20ae;(function(_0x11a3f1,_0x190341){var _0xd23404=a223_0x20ae,_0x4bd129=_0x11a3f1();while(!![]){try{var _0x18091b=parseInt(_0xd23404(0x1ba))/0x1+parseInt(_0xd23404(0x1b9))/0x2+-parseInt(_0xd23404(0x1b5))/0x3*(parseInt(_0xd23404(0x1bc))/0x4)+parseInt(_0xd23404(0x1bd))/0x5*(-parseInt(_0xd23404(0x1b8))/0x6)+parseInt(_0xd23404(0x1bb))/0x7*(-parseInt(_0xd23404(0x1bf))/0x8)+-parseInt(_0xd23404(0x1be))/0x9*(-parseInt(_0xd23404(0x1b7))/0xa)+parseInt(_0xd23404(0x1c0))/0xb;if(_0x18091b===_0x190341)break;else _0x4bd129['push'](_0x4bd129['shift']());}catch(_0x226ce4){_0x4bd129['push'](_0x4bd129['shift']());}}}(a223_0x483c,0x3b2da));function a223_0x20ae(_0x2a215e,_0x31184c){_0x2a215e=_0x2a215e-0x1b5;var _0x483c9c=a223_0x483c();var _0x20ae2f=_0x483c9c[_0x2a215e];return _0x20ae2f;}export class NullHandler{[a223_0x4ebcc0(0x1b6)](_0x53cd8c){}}function a223_0x483c(){var _0x6098f3=['263139oMZbHB','154917OIofXu','1771148QxzquW','55fBmkNJ','63JWhrpP','24XiuBJM','5137154tWJDsI','3rtmHHU','handle','451130SKLpbF','236766lGelwy','279402YuWQIQ'];a223_0x483c=function(){return _0x6098f3;};return a223_0x483c();}
1
+ var a223_0x198e51=a223_0x5e21;function a223_0x195b(){var _0x6406e=['handle','4203gDXcAp','867431awWFcP','16770oPCpcM','12753741hxjZyX','8FelqjN','147399cvZdxt','7518ONJfpr','5385163hFItxF','22kUAHyP','1510xEvLFR','4730036XYsEtN'];a223_0x195b=function(){return _0x6406e;};return a223_0x195b();}(function(_0x2929d1,_0x3d4962){var _0x5c8d38=a223_0x5e21,_0x370ef8=_0x2929d1();while(!![]){try{var _0xd2e6a7=parseInt(_0x5c8d38(0x1f1))/0x1+-parseInt(_0x5c8d38(0x1ec))/0x2*(parseInt(_0x5c8d38(0x1e9))/0x3)+parseInt(_0x5c8d38(0x1ee))/0x4+parseInt(_0x5c8d38(0x1ed))/0x5*(-parseInt(_0x5c8d38(0x1ea))/0x6)+parseInt(_0x5c8d38(0x1eb))/0x7*(-parseInt(_0x5c8d38(0x1e8))/0x8)+-parseInt(_0x5c8d38(0x1f0))/0x9*(parseInt(_0x5c8d38(0x1f2))/0xa)+parseInt(_0x5c8d38(0x1e7))/0xb;if(_0xd2e6a7===_0x3d4962)break;else _0x370ef8['push'](_0x370ef8['shift']());}catch(_0x549a49){_0x370ef8['push'](_0x370ef8['shift']());}}}(a223_0x195b,0xb42f2));function a223_0x5e21(_0x9e106,_0x3ec447){_0x9e106=_0x9e106-0x1e7;var _0x195bec=a223_0x195b();var _0x5e2121=_0x195bec[_0x9e106];return _0x5e2121;}export class NullHandler{[a223_0x198e51(0x1ef)](_0x2b4348){}}
@@ -1 +1 @@
1
- (function(_0x3d37c7,_0x1ac2a2){var _0x109e84=a224_0x1031,_0x9c21b4=_0x3d37c7();while(!![]){try{var _0x5ee111=parseInt(_0x109e84(0xc0))/0x1*(-parseInt(_0x109e84(0xbd))/0x2)+-parseInt(_0x109e84(0xc6))/0x3*(-parseInt(_0x109e84(0xc1))/0x4)+parseInt(_0x109e84(0xc7))/0x5*(-parseInt(_0x109e84(0xc3))/0x6)+parseInt(_0x109e84(0xc8))/0x7*(parseInt(_0x109e84(0xbe))/0x8)+-parseInt(_0x109e84(0xc5))/0x9+-parseInt(_0x109e84(0xbf))/0xa*(-parseInt(_0x109e84(0xc4))/0xb)+parseInt(_0x109e84(0xc2))/0xc;if(_0x5ee111===_0x1ac2a2)break;else _0x9c21b4['push'](_0x9c21b4['shift']());}catch(_0x1d324a){_0x9c21b4['push'](_0x9c21b4['shift']());}}}(a224_0x4473,0x44ee3));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a224_0x1031(_0x30d418,_0x218379){_0x30d418=_0x30d418-0xbd;var _0x447313=a224_0x4473();var _0x103107=_0x447313[_0x30d418];return _0x103107;}export{DefaultLogFormatter}from'./formatters/index.js';function a224_0x4473(){var _0x14fd85=['253QOKCca','2544291tnvDKE','1821dSsgqo','1812240oZrJNu','28awulEd','266zlsaPr','907904uvtvtp','124610nAPRRB','2317rBjdyU','1004wqdixD','4112820OXcJuY','6LdKJsI'];a224_0x4473=function(){return _0x14fd85;};return a224_0x4473();}
1
+ function a224_0x5b4b(_0x32885b,_0x539bdd){_0x32885b=_0x32885b-0x18c;var _0x5627ec=a224_0x5627();var _0x5b4b62=_0x5627ec[_0x32885b];return _0x5b4b62;}(function(_0x31f798,_0x43dd7a){var _0x103451=a224_0x5b4b,_0x57fd3e=_0x31f798();while(!![]){try{var _0x4c2d4f=parseInt(_0x103451(0x190))/0x1*(parseInt(_0x103451(0x194))/0x2)+-parseInt(_0x103451(0x196))/0x3+-parseInt(_0x103451(0x18d))/0x4*(-parseInt(_0x103451(0x18c))/0x5)+-parseInt(_0x103451(0x195))/0x6*(parseInt(_0x103451(0x193))/0x7)+parseInt(_0x103451(0x191))/0x8+-parseInt(_0x103451(0x192))/0x9+parseInt(_0x103451(0x18e))/0xa*(-parseInt(_0x103451(0x18f))/0xb);if(_0x4c2d4f===_0x43dd7a)break;else _0x57fd3e['push'](_0x57fd3e['shift']());}catch(_0x3d6cf2){_0x57fd3e['push'](_0x57fd3e['shift']());}}}(a224_0x5627,0xe422b));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a224_0x5627(){var _0xb6addc=['7839403AuOmWF','1qiTtdo','5335312GDMlXG','2598696wrhKir','15505SeNtXZ','3669970dFKvMC','2424crxQZs','3433308rNlYKC','5TlKiRC','5893028YrIjto','10sKtfMH'];a224_0x5627=function(){return _0xb6addc;};return a224_0x5627();}export{DefaultLogFormatter}from'./formatters/index.js';